fluency-v8-components 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fluency-v8-components.es.js +1 -1
- package/dist/fluency-v8-components.umd.js +1 -1
- package/dist/{index-Br4jyWhU.mjs → index-Mo0fYImu.mjs} +2 -2
- package/dist/{index.es-jnmHZtX5.mjs → index.es-YVbpQZsk.mjs} +1 -1
- package/package.json +1 -1
- package/src/components/common/DatePickerInput.vue +1 -1
|
@@ -87,7 +87,7 @@ var $N;function mt(){return $N.apply(null,arguments)}function dge(e){$N=e}functi
|
|
|
87
87
|
[`+a+"] ";for(o in arguments[0])rr(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[a];r.push(i)}nF(e+`
|
|
88
88
|
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
89
89
|
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var rF={};function iF(e,t){mt.deprecationHandler!=null&&mt.deprecationHandler(e,t),rF[e]||(nF(t),rF[e]=!0)}mt.suppressDeprecationWarnings=!1,mt.deprecationHandler=null;function su(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function hge(e){var t,n;for(n in e)rr(e,n)&&(t=e[n],su(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 R5(e,t){var n=bA({},e),r;for(r in t)rr(t,r)&&(zd(e[r])&&zd(t[r])?(n[r]={},bA(n[r],e[r]),bA(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)rr(e,r)&&!rr(t,r)&&zd(e[r])&&(n[r]=bA({},n[r]));return n}function Q5(e){e!=null&&this.set(e)}var j5;Object.keys?j5=Object.keys:j5=function(e){var t,n=[];for(t in e)rr(e,t)&&n.push(t);return n};var pge={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function mge(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return su(r)?r.call(t,n):r}function lu(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 V5=/(\[[^\[]*\])|(\\)?([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,w1=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z5={},Bh={};function an(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(Bh[e]=i),t&&(Bh[t[0]]=function(){return lu(i.apply(this,arguments),t[1],t[2])}),n&&(Bh[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function gge(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function vge(e){var t=e.match(V5),n,r;for(n=0,r=t.length;n<r;n++)Bh[t[n]]?t[n]=Bh[t[n]]:t[n]=gge(t[n]);return function(i){var a="",o;for(o=0;o<r;o++)a+=su(t[o])?t[o].call(i,e):t[o];return a}}function B1(e,t){return e.isValid()?(t=aF(t,e.localeData()),z5[t]=z5[t]||vge(t),z5[t](e)):e.localeData().invalidDate()}function aF(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(w1.lastIndex=0;n>=0&&w1.test(e);)e=e.replace(w1,r),w1.lastIndex=0,n-=1;return e}var yge={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 _ge(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(V5).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var bge="Invalid date";function wge(){return this._invalidDate}var Bge="%d",xge=/\d{1,2}/;function Cge(e){return this._ordinal.replace("%d",e)}var Sge={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 su(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Mge(e,t){var n=this._relativeTime[e>0?"future":"past"];return su(n)?n(t):n.replace(/%s/i,t)}var oF={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 ws(e){return typeof e=="string"?oF[e]||oF[e.toLowerCase()]:void 0}function q5(e){var t={},n,r;for(r in e)rr(e,r)&&(n=ws(r),n&&(t[n]=e[r]));return t}var Ege={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 Lge(e){var t=[],n;for(n in e)rr(e,n)&&t.push({unit:n,priority:Ege[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var sF=/\d/,Wo=/\d\d/,lF=/\d{3}/,K5=/\d{4}/,x1=/[+-]?\d{6}/,zr=/\d\d?/,uF=/\d\d\d\d?/,cF=/\d\d\d\d\d\d?/,C1=/\d{1,3}/,G5=/\d{1,4}/,S1=/[+-]?\d{1,6}/,xh=/\d+/,k1=/[+-]?\d+/,Tge=/Z|[+-]\d\d:?\d\d/gi,M1=/Z|[+-]\d\d(?::?\d\d)?/gi,Nge=/[+-]?\d+(\.\d{1,3})?/,Vm=/[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,Ch=/^[1-9]\d?/,W5=/^([1-9]\d|\d)/,E1;E1={};function Dt(e,t,n){E1[e]=su(t)?t:function(r,i){return r&&n?n:t}}function Fge(e,t){return rr(E1,e)?E1[e](t._strict,t._locale):new RegExp(Oge(e))}function Oge(e){return ac(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function ac(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Bs(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function jn(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Bs(t)),n}var X5={};function Cr(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),ic(t)&&(r=function(a,o){o[t]=jn(a)}),i=e.length,n=0;n<i;n++)X5[e[n]]=r}function zm(e,t){Cr(e,function(n,r,i,a){i._w=i._w||{},t(n,i._w,i,a)})}function Ige(e,t,n){t!=null&&rr(X5,e)&&X5[e](t,n._a,n,e)}function L1(e){return e%4===0&&e%100!==0||e%400===0}var Da=0,oc=1,uu=2,Ki=3,cl=4,sc=5,qd=6,Dge=7,Uge=8;an("Y",0,0,function(){var e=this.year();return e<=9999?lu(e,4):"+"+e}),an(0,["YY",2],0,function(){return this.year()%100}),an(0,["YYYY",4],0,"year"),an(0,["YYYYY",5],0,"year"),an(0,["YYYYYY",6,!0],0,"year"),Dt("Y",k1),Dt("YY",zr,Wo),Dt("YYYY",G5,K5),Dt("YYYYY",S1,x1),Dt("YYYYYY",S1,x1),Cr(["YYYYY","YYYYYY"],Da),Cr("YYYY",function(e,t){t[Da]=e.length===2?mt.parseTwoDigitYear(e):jn(e)}),Cr("YY",function(e,t){t[Da]=mt.parseTwoDigitYear(e)}),Cr("Y",function(e,t){t[Da]=parseInt(e,10)});function qm(e){return L1(e)?366:365}mt.parseTwoDigitYear=function(e){return jn(e)+(jn(e)>68?1900:2e3)};var AF=Sh("FullYear",!0);function Pge(){return L1(this.year())}function Sh(e,t){return function(n){return n!=null?(dF(this,e,n),mt.updateOffset(this,t),this):Km(this,e)}}function Km(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 dF(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&&!L1(a)?28:s,i?r.setUTCFullYear(a,o,s):r.setFullYear(a,o,s)}}function Hge(e){return e=ws(e),su(this[e])?this[e]():this}function Yge(e,t){if(typeof e=="object"){e=q5(e);var n=Lge(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=ws(e),su(this[e]))return this[e](t);return this}function Rge(e,t){return(e%t+t)%t}var xi;Array.prototype.indexOf?xi=Array.prototype.indexOf:xi=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function J5(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Rge(t,12);return e+=(t-n)/12,n===1?L1(e)?29:28:31-n%7%2}an("M",["MM",2],"Mo",function(){return this.month()+1}),an("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),an("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Dt("M",zr,Ch),Dt("MM",zr,Wo),Dt("MMM",function(e,t){return t.monthsShortRegex(e)}),Dt("MMMM",function(e,t){return t.monthsRegex(e)}),Cr(["M","MM"],function(e,t){t[oc]=jn(e)-1}),Cr(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[oc]=i:Tn(n).invalidMonth=e});var Qge="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),fF="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),hF=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,jge=Vm,Vge=Vm;function zge(e,t){return e?ll(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||hF).test(t)?"format":"standalone"][e.month()]:ll(this._months)?this._months:this._months.standalone}function qge(e,t){return e?ll(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[hF.test(t)?"format":"standalone"][e.month()]:ll(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Kge(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=ou([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?t==="MMM"?(i=xi.call(this._shortMonthsParse,o),i!==-1?i:null):(i=xi.call(this._longMonthsParse,o),i!==-1?i:null):t==="MMM"?(i=xi.call(this._shortMonthsParse,o),i!==-1?i:(i=xi.call(this._longMonthsParse,o),i!==-1?i:null)):(i=xi.call(this._longMonthsParse,o),i!==-1?i:(i=xi.call(this._shortMonthsParse,o),i!==-1?i:null))}function Gge(e,t,n){var r,i,a;if(this._monthsParseExact)return Kge.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=ou([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 pF(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=jn(t);else if(t=e.localeData().monthsParse(t),!ic(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,J5(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function mF(e){return e!=null?(pF(this,e),mt.updateOffset(this,!0),this):Km(this,"Month")}function Wge(){return J5(this.year(),this.month())}function Xge(e){return this._monthsParseExact?(rr(this,"_monthsRegex")||gF.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(rr(this,"_monthsShortRegex")||(this._monthsShortRegex=jge),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Jge(e){return this._monthsParseExact?(rr(this,"_monthsRegex")||gF.call(this),e?this._monthsStrictRegex:this._monthsRegex):(rr(this,"_monthsRegex")||(this._monthsRegex=Vge),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function gF(){function e(u,c){return c.length-u.length}var t=[],n=[],r=[],i,a,o,s;for(i=0;i<12;i++)a=ou([2e3,i]),o=ac(this.monthsShort(a,"")),s=ac(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 Zge(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 Gm(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 T1(e,t,n){var r=7+t-n,i=(7+Gm(e,0,r).getUTCDay()-t)%7;return-i+r-1}function vF(e,t,n,r,i){var a=(7+n-r)%7,o=T1(e,r,i),s=1+7*(t-1)+a+o,u,c;return s<=0?(u=e-1,c=qm(u)+s):s>qm(e)?(u=e+1,c=s-qm(e)):(u=e,c=s),{year:u,dayOfYear:c}}function Wm(e,t,n){var r=T1(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,o;return i<1?(o=e.year()-1,a=i+lc(o,t,n)):i>lc(e.year(),t,n)?(a=i-lc(e.year(),t,n),o=e.year()+1):(o=e.year(),a=i),{week:a,year:o}}function lc(e,t,n){var r=T1(e,t,n),i=T1(e+1,t,n);return(qm(e)-r+i)/7}an("w",["ww",2],"wo","week"),an("W",["WW",2],"Wo","isoWeek"),Dt("w",zr,Ch),Dt("ww",zr,Wo),Dt("W",zr,Ch),Dt("WW",zr,Wo),zm(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=jn(e)});function $ge(e){return Wm(e,this._week.dow,this._week.doy).week}var e0e={dow:0,doy:6};function t0e(){return this._week.dow}function n0e(){return this._week.doy}function r0e(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function i0e(e){var t=Wm(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}an("d",0,"do","day"),an("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),an("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),an("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),an("e",0,0,"weekday"),an("E",0,0,"isoWeekday"),Dt("d",zr),Dt("e",zr),Dt("E",zr),Dt("dd",function(e,t){return t.weekdaysMinRegex(e)}),Dt("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Dt("dddd",function(e,t){return t.weekdaysRegex(e)}),zm(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Tn(n).invalidWeekday=e}),zm(["d","e","E"],function(e,t,n,r){t[r]=jn(e)});function a0e(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function o0e(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Z5(e,t){return e.slice(t,7).concat(e.slice(0,t))}var s0e="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),yF="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),l0e="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),u0e=Vm,c0e=Vm,A0e=Vm;function d0e(e,t){var n=ll(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Z5(n,this._week.dow):e?n[e.day()]:n}function f0e(e){return e===!0?Z5(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function h0e(e){return e===!0?Z5(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function p0e(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=ou([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=xi.call(this._weekdaysParse,o),i!==-1?i:null):t==="ddd"?(i=xi.call(this._shortWeekdaysParse,o),i!==-1?i:null):(i=xi.call(this._minWeekdaysParse,o),i!==-1?i:null):t==="dddd"?(i=xi.call(this._weekdaysParse,o),i!==-1||(i=xi.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=xi.call(this._minWeekdaysParse,o),i!==-1?i:null)):t==="ddd"?(i=xi.call(this._shortWeekdaysParse,o),i!==-1||(i=xi.call(this._weekdaysParse,o),i!==-1)?i:(i=xi.call(this._minWeekdaysParse,o),i!==-1?i:null)):(i=xi.call(this._minWeekdaysParse,o),i!==-1||(i=xi.call(this._weekdaysParse,o),i!==-1)?i:(i=xi.call(this._shortWeekdaysParse,o),i!==-1?i:null))}function m0e(e,t,n){var r,i,a;if(this._weekdaysParseExact)return p0e.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=ou([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 g0e(e){if(!this.isValid())return e!=null?this:NaN;var t=Km(this,"Day");return e!=null?(e=a0e(e,this.localeData()),this.add(e-t,"d")):t}function v0e(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 y0e(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=o0e(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function _0e(e){return this._weekdaysParseExact?(rr(this,"_weekdaysRegex")||$5.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(rr(this,"_weekdaysRegex")||(this._weekdaysRegex=u0e),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function b0e(e){return this._weekdaysParseExact?(rr(this,"_weekdaysRegex")||$5.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(rr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=c0e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function w0e(e){return this._weekdaysParseExact?(rr(this,"_weekdaysRegex")||$5.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(rr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=A0e),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function $5(){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=ou([2e3,1]).day(a),s=ac(this.weekdaysMin(o,"")),u=ac(this.weekdaysShort(o,"")),c=ac(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 eB(){return this.hours()%12||12}function B0e(){return this.hours()||24}an("H",["HH",2],0,"hour"),an("h",["hh",2],0,eB),an("k",["kk",2],0,B0e),an("hmm",0,0,function(){return""+eB.apply(this)+lu(this.minutes(),2)}),an("hmmss",0,0,function(){return""+eB.apply(this)+lu(this.minutes(),2)+lu(this.seconds(),2)}),an("Hmm",0,0,function(){return""+this.hours()+lu(this.minutes(),2)}),an("Hmmss",0,0,function(){return""+this.hours()+lu(this.minutes(),2)+lu(this.seconds(),2)});function _F(e,t){an(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}_F("a",!0),_F("A",!1);function bF(e,t){return t._meridiemParse}Dt("a",bF),Dt("A",bF),Dt("H",zr,W5),Dt("h",zr,Ch),Dt("k",zr,Ch),Dt("HH",zr,Wo),Dt("hh",zr,Wo),Dt("kk",zr,Wo),Dt("hmm",uF),Dt("hmmss",cF),Dt("Hmm",uF),Dt("Hmmss",cF),Cr(["H","HH"],Ki),Cr(["k","kk"],function(e,t,n){var r=jn(e);t[Ki]=r===24?0:r}),Cr(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Cr(["h","hh"],function(e,t,n){t[Ki]=jn(e),Tn(n).bigHour=!0}),Cr("hmm",function(e,t,n){var r=e.length-2;t[Ki]=jn(e.substr(0,r)),t[cl]=jn(e.substr(r)),Tn(n).bigHour=!0}),Cr("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ki]=jn(e.substr(0,r)),t[cl]=jn(e.substr(r,2)),t[sc]=jn(e.substr(i)),Tn(n).bigHour=!0}),Cr("Hmm",function(e,t,n){var r=e.length-2;t[Ki]=jn(e.substr(0,r)),t[cl]=jn(e.substr(r))}),Cr("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ki]=jn(e.substr(0,r)),t[cl]=jn(e.substr(r,2)),t[sc]=jn(e.substr(i))});function x0e(e){return(e+"").toLowerCase().charAt(0)==="p"}var C0e=/[ap]\.?m?\.?/i,S0e=Sh("Hours",!0);function k0e(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var wF={calendar:pge,longDateFormat:yge,invalidDate:bge,ordinal:Bge,dayOfMonthOrdinalParse:xge,relativeTime:Sge,months:Qge,monthsShort:fF,week:e0e,weekdays:s0e,weekdaysMin:l0e,weekdaysShort:yF,meridiemParse:C0e},Zr={},Xm={},Jm;function M0e(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 BF(e){return e&&e.toLowerCase().replace("_","-")}function E0e(e){for(var t=0,n,r,i,a;t<e.length;){for(a=BF(e[t]).split("-"),n=a.length,r=BF(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=N1(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&M0e(a,r)>=n-1)break;n--}t++}return Jm}function L0e(e){return!!(e&&e.match("^[^/\\\\]*$"))}function N1(e){var t=null,n;if(Zr[e]===void 0&&typeof module<"u"&&module&&module.exports&&L0e(e))try{t=Jm._abbr,n=require,n("./locale/"+e),wA(t)}catch{Zr[e]=null}return Zr[e]}function wA(e,t){var n;return e&&(So(t)?n=uc(e):n=tB(e,t),n?Jm=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Jm._abbr}function tB(e,t){if(t!==null){var n,r=wF;if(t.abbr=e,Zr[e]!=null)iF("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=Zr[e]._config;else if(t.parentLocale!=null)if(Zr[t.parentLocale]!=null)r=Zr[t.parentLocale]._config;else if(n=N1(t.parentLocale),n!=null)r=n._config;else return Xm[t.parentLocale]||(Xm[t.parentLocale]=[]),Xm[t.parentLocale].push({name:e,config:t}),null;return Zr[e]=new Q5(R5(r,t)),Xm[e]&&Xm[e].forEach(function(i){tB(i.name,i.config)}),wA(e),Zr[e]}else return delete Zr[e],null}function T0e(e,t){if(t!=null){var n,r,i=wF;Zr[e]!=null&&Zr[e].parentLocale!=null?Zr[e].set(R5(Zr[e]._config,t)):(r=N1(e),r!=null&&(i=r._config),t=R5(i,t),r==null&&(t.abbr=e),n=new Q5(t),n.parentLocale=Zr[e],Zr[e]=n),wA(e)}else Zr[e]!=null&&(Zr[e].parentLocale!=null?(Zr[e]=Zr[e].parentLocale,e===wA()&&wA(e)):Zr[e]!=null&&delete Zr[e]);return Zr[e]}function uc(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Jm;if(!ll(e)){if(t=N1(e),t)return t;e=[e]}return E0e(e)}function N0e(){return j5(Zr)}function nB(e){var t,n=e._a;return n&&Tn(e).overflow===-2&&(t=n[oc]<0||n[oc]>11?oc:n[uu]<1||n[uu]>J5(n[Da],n[oc])?uu:n[Ki]<0||n[Ki]>24||n[Ki]===24&&(n[cl]!==0||n[sc]!==0||n[qd]!==0)?Ki:n[cl]<0||n[cl]>59?cl:n[sc]<0||n[sc]>59?sc:n[qd]<0||n[qd]>999?qd:-1,Tn(e)._overflowDayOfYear&&(t<Da||t>uu)&&(t=uu),Tn(e)._overflowWeeks&&t===-1&&(t=Dge),Tn(e)._overflowWeekday&&t===-1&&(t=Uge),Tn(e).overflow=t),e}var F0e=/^\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)?)?$/,O0e=/^\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)?)?$/,I0e=/Z|[+-]\d\d(?::?\d\d)?/,F1=[["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]],rB=[["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/]],D0e=/^\/?Date\((-?\d+)/i,U0e=/^(?:(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}))$/,P0e={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xF(e){var t,n,r=e._i,i=F0e.exec(r)||O0e.exec(r),a,o,s,u,c=F1.length,A=rB.length;if(i){for(Tn(e).iso=!0,t=0,n=c;t<n;t++)if(F1[t][1].exec(i[1])){o=F1[t][0],a=F1[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(i[3]){for(t=0,n=A;t<n;t++)if(rB[t][1].exec(i[3])){s=(i[2]||" ")+rB[t][0];break}if(s==null){e._isValid=!1;return}}if(!a&&s!=null){e._isValid=!1;return}if(i[4])if(I0e.exec(i[4]))u="Z";else{e._isValid=!1;return}e._f=o+(s||"")+(u||""),aB(e)}else e._isValid=!1}function H0e(e,t,n,r,i,a){var o=[Y0e(e),fF.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function Y0e(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function R0e(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Q0e(e,t,n){if(e){var r=yF.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return Tn(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function j0e(e,t,n){if(e)return P0e[e];if(t)return 0;var r=parseInt(n,10),i=r%100,a=(r-i)/100;return a*60+i}function CF(e){var t=U0e.exec(R0e(e._i)),n;if(t){if(n=H0e(t[4],t[3],t[2],t[5],t[6],t[7]),!Q0e(t[1],n,e))return;e._a=n,e._tzm=j0e(t[8],t[9],t[10]),e._d=Gm.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Tn(e).rfc2822=!0}else e._isValid=!1}function V0e(e){var t=D0e.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(xF(e),e._isValid===!1)delete e._isValid;else return;if(CF(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:mt.createFromInputFallback(e)}mt.createFromInputFallback=bs("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 kh(e,t,n){return e??t??n}function z0e(e){var t=new Date(mt.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function iB(e){var t,n,r=[],i,a,o;if(!e._d){for(i=z0e(e),e._w&&e._a[uu]==null&&e._a[oc]==null&&q0e(e),e._dayOfYear!=null&&(o=kh(e._a[Da],i[Da]),(e._dayOfYear>qm(o)||e._dayOfYear===0)&&(Tn(e)._overflowDayOfYear=!0),n=Gm(o,0,e._dayOfYear),e._a[oc]=n.getUTCMonth(),e._a[uu]=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[cl]===0&&e._a[sc]===0&&e._a[qd]===0&&(e._nextDay=!0,e._a[Ki]=0),e._d=(e._useUTC?Gm:Zge).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&&(Tn(e).weekdayMismatch=!0)}}function q0e(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=kh(t.GG,e._a[Da],Wm(qr(),1,4).year),r=kh(t.W,1),i=kh(t.E,1),(i<1||i>7)&&(u=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,c=Wm(qr(),a,o),n=kh(t.gg,e._a[Da],c.year),r=kh(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>lc(n,a,o)?Tn(e)._overflowWeeks=!0:u!=null?Tn(e)._overflowWeekday=!0:(s=vF(n,r,i,a,o),e._a[Da]=s.year,e._dayOfYear=s.dayOfYear)}mt.ISO_8601=function(){},mt.RFC_2822=function(){};function aB(e){if(e._f===mt.ISO_8601){xF(e);return}if(e._f===mt.RFC_2822){CF(e);return}e._a=[],Tn(e).empty=!0;var t=""+e._i,n,r,i,a,o,s=t.length,u=0,c,A;for(i=aF(e._f,e._locale).match(V5)||[],A=i.length,n=0;n<A;n++)a=i[n],r=(t.match(Fge(a,e))||[])[0],r&&(o=t.substr(0,t.indexOf(r)),o.length>0&&Tn(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),u+=r.length),Bh[a]?(r?Tn(e).empty=!1:Tn(e).unusedTokens.push(a),Ige(a,r,e)):e._strict&&!r&&Tn(e).unusedTokens.push(a);Tn(e).charsLeftOver=s-u,t.length>0&&Tn(e).unusedInput.push(t),e._a[Ki]<=12&&Tn(e).bigHour===!0&&e._a[Ki]>0&&(Tn(e).bigHour=void 0),Tn(e).parsedDateParts=e._a.slice(0),Tn(e).meridiem=e._meridiem,e._a[Ki]=K0e(e._locale,e._a[Ki],e._meridiem),c=Tn(e).era,c!==null&&(e._a[Da]=e._locale.erasConvertYear(c,e._a[Da])),iB(e),nB(e)}function K0e(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 G0e(e){var t,n,r,i,a,o,s=!1,u=e._f.length;if(u===0){Tn(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<u;i++)a=0,o=!1,t=Y5({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],aB(t),P5(t)&&(o=!0),a+=Tn(t).charsLeftOver,a+=Tn(t).unusedTokens.length*10,Tn(t).score=a,s?a<r&&(r=a,n=t):(r==null||a<r||o)&&(r=a,n=t,o&&(s=!0));bA(e,n||t)}function W0e(e){if(!e._d){var t=q5(e._i),n=t.day===void 0?t.date:t.day;e._a=eF([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),iB(e)}}function X0e(e){var t=new jm(nB(SF(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function SF(e){var t=e._i,n=e._f;return e._locale=e._locale||uc(e._l),t===null||n===void 0&&t===""?b1({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),ul(t)?new jm(nB(t)):(Qm(t)?e._d=t:ll(n)?G0e(e):n?aB(e):J0e(e),P5(e)||(e._d=null),e))}function J0e(e){var t=e._i;So(t)?e._d=new Date(mt.now()):Qm(t)?e._d=new Date(t.valueOf()):typeof t=="string"?V0e(e):ll(t)?(e._a=eF(t.slice(0),function(n){return parseInt(n,10)}),iB(e)):zd(t)?W0e(e):ic(t)?e._d=new Date(t):mt.createFromInputFallback(e)}function kF(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),(zd(e)&&D5(e)||ll(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,X0e(a)}function qr(e,t,n,r){return kF(e,t,n,r,!1)}var Z0e=bs("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=qr.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b1()}),$0e=bs("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=qr.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b1()});function MF(e,t){var n,r;if(t.length===1&&ll(t[0])&&(t=t[0]),!t.length)return qr();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function eve(){var e=[].slice.call(arguments,0);return MF("isBefore",e)}function tve(){var e=[].slice.call(arguments,0);return MF("isAfter",e)}var nve=function(){return Date.now?Date.now():+new Date},Zm=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rve(e){var t,n=!1,r,i=Zm.length;for(t in e)if(rr(e,t)&&!(xi.call(Zm,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[Zm[r]]){if(n)return!1;parseFloat(e[Zm[r]])!==jn(e[Zm[r]])&&(n=!0)}return!0}function ive(){return this._isValid}function ave(){return Al(NaN)}function O1(e){var t=q5(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=rve(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=uc(),this._bubble()}function I1(e){return e instanceof O1}function oB(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function ove(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++)jn(e[o])!==jn(t[o])&&a++;return a+i}function EF(e,t){an(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+lu(~~(n/60),2)+t+lu(~~n%60,2)})}EF("Z",":"),EF("ZZ",""),Dt("Z",M1),Dt("ZZ",M1),Cr(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=sB(M1,e)});var sve=/([\+\-]|\d\d)/gi;function sB(e,t){var n=(t||"").match(e),r,i,a;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(sve)||["-",0,0],a=+(i[1]*60)+jn(i[2]),a===0?0:i[0]==="+"?a:-a)}function lB(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(ul(e)||Qm(e)?e.valueOf():qr(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),mt.updateOffset(n,!1),n):qr(e).local()}function uB(e){return-Math.round(e._d.getTimezoneOffset())}mt.updateOffset=function(){};function lve(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=sB(M1,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=uB(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?FF(this,Al(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,mt.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:uB(this)}function uve(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function cve(e){return this.utcOffset(0,e)}function Ave(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(uB(this),"m")),this}function dve(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=sB(Tge,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function fve(e){return this.isValid()?(e=e?qr(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function hve(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function pve(){if(!So(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Y5(e,this),e=SF(e),e._a?(t=e._isUTC?ou(e._a):qr(e._a),this._isDSTShifted=this.isValid()&&ove(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function mve(){return this.isValid()?!this._isUTC:!1}function gve(){return this.isValid()?this._isUTC:!1}function LF(){return this.isValid()?this._isUTC&&this._offset===0:!1}var vve=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,yve=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Al(e,t){var n=e,r=null,i,a,o;return I1(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:ic(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=vve.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:jn(r[uu])*i,h:jn(r[Ki])*i,m:jn(r[cl])*i,s:jn(r[sc])*i,ms:jn(oB(r[qd]*1e3))*i}):(r=yve.exec(e))?(i=r[1]==="-"?-1:1,n={y:Kd(r[2],i),M:Kd(r[3],i),w:Kd(r[4],i),d:Kd(r[5],i),h:Kd(r[6],i),m:Kd(r[7],i),s:Kd(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=_ve(qr(n.from),qr(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),a=new O1(n),I1(e)&&rr(e,"_locale")&&(a._locale=e._locale),I1(e)&&rr(e,"_isValid")&&(a._isValid=e._isValid),a}Al.fn=O1.prototype,Al.invalid=ave;function Kd(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function TF(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 _ve(e,t){var n;return e.isValid()&&t.isValid()?(t=lB(t,e),e.isBefore(t)?n=TF(e,t):(n=TF(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function NF(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(iF(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=Al(n,r),FF(this,i,e),this}}function FF(e,t,n,r){var i=t._milliseconds,a=oB(t._days),o=oB(t._months);e.isValid()&&(r=r??!0,o&&pF(e,Km(e,"Month")+o*n),a&&dF(e,"Date",Km(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&mt.updateOffset(e,a||o))}var bve=NF(1,"add"),wve=NF(-1,"subtract");function OF(e){return typeof e=="string"||e instanceof String}function Bve(e){return ul(e)||Qm(e)||OF(e)||ic(e)||Cve(e)||xve(e)||e===null||e===void 0}function xve(e){var t=zd(e)&&!D5(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||rr(e,a);return t&&n}function Cve(e){var t=ll(e),n=!1;return t&&(n=e.filter(function(r){return!ic(r)&&OF(e)}).length===0),t&&n}function Sve(e){var t=zd(e)&&!D5(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||rr(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 Mve(e,t){arguments.length===1&&(arguments[0]?Bve(arguments[0])?(e=arguments[0],t=void 0):Sve(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||qr(),r=lB(n,this).startOf("day"),i=mt.calendarFormat(this,r)||"sameElse",a=t&&(su(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,qr(n)))}function Eve(){return new jm(this)}function Lve(e,t){var n=ul(e)?e:qr(e);return this.isValid()&&n.isValid()?(t=ws(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function Tve(e,t){var n=ul(e)?e:qr(e);return this.isValid()&&n.isValid()?(t=ws(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function Nve(e,t,n,r){var i=ul(e)?e:qr(e),a=ul(t)?t:qr(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 Fve(e,t){var n=ul(e)?e:qr(e),r;return this.isValid()&&n.isValid()?(t=ws(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 Ove(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Ive(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Dve(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(r=lB(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=ws(t),t){case"year":a=D1(this,r)/12;break;case"month":a=D1(this,r);break;case"quarter":a=D1(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:Bs(a)}function D1(e,t){if(e.date()<t.date())return-D1(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}mt.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",mt.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Uve(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Pve(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?B1(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):su(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",B1(n,"Z")):B1(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Hve(){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 Yve(e){e||(e=this.isUtc()?mt.defaultFormatUtc:mt.defaultFormat);var t=B1(this,e);return this.localeData().postformat(t)}function Rve(e,t){return this.isValid()&&(ul(e)&&e.isValid()||qr(e).isValid())?Al({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Qve(e){return this.from(qr(),e)}function jve(e,t){return this.isValid()&&(ul(e)&&e.isValid()||qr(e).isValid())?Al({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Vve(e){return this.to(qr(),e)}function IF(e){var t;return e===void 0?this._locale._abbr:(t=uc(e),t!=null&&(this._locale=t),this)}var DF=bs("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 UF(){return this._locale}var U1=1e3,Mh=60*U1,P1=60*Mh,PF=(365*400+97)*24*P1;function Eh(e,t){return(e%t+t)%t}function HF(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-PF:new Date(e,t,n).valueOf()}function YF(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-PF:Date.UTC(e,t,n)}function zve(e){var t,n;if(e=ws(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?YF:HF,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-=Eh(t+(this._isUTC?0:this.utcOffset()*Mh),P1);break;case"minute":t=this._d.valueOf(),t-=Eh(t,Mh);break;case"second":t=this._d.valueOf(),t-=Eh(t,U1);break}return this._d.setTime(t),mt.updateOffset(this,!0),this}function qve(e){var t,n;if(e=ws(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?YF:HF,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+=P1-Eh(t+(this._isUTC?0:this.utcOffset()*Mh),P1)-1;break;case"minute":t=this._d.valueOf(),t+=Mh-Eh(t,Mh)-1;break;case"second":t=this._d.valueOf(),t+=U1-Eh(t,U1)-1;break}return this._d.setTime(t),mt.updateOffset(this,!0),this}function Kve(){return this._d.valueOf()-(this._offset||0)*6e4}function Gve(){return Math.floor(this.valueOf()/1e3)}function Wve(){return new Date(this.valueOf())}function Xve(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Jve(){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 Zve(){return this.isValid()?this.toISOString():null}function $ve(){return P5(this)}function e1e(){return bA({},Tn(this))}function t1e(){return Tn(this).overflow}function n1e(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}an("N",0,0,"eraAbbr"),an("NN",0,0,"eraAbbr"),an("NNN",0,0,"eraAbbr"),an("NNNN",0,0,"eraName"),an("NNNNN",0,0,"eraNarrow"),an("y",["y",1],"yo","eraYear"),an("y",["yy",2],0,"eraYear"),an("y",["yyy",3],0,"eraYear"),an("y",["yyyy",4],0,"eraYear"),Dt("N",cB),Dt("NN",cB),Dt("NNN",cB),Dt("NNNN",f1e),Dt("NNNNN",h1e),Cr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Tn(n).era=i:Tn(n).invalidEra=e}),Dt("y",xh),Dt("yy",xh),Dt("yyy",xh),Dt("yyyy",xh),Dt("yo",p1e),Cr(["y","yy","yyy","yyyy"],Da),Cr(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Da]=n._locale.eraYearOrdinalParse(e,i):t[Da]=parseInt(e,10)});function r1e(e,t){var n,r,i,a=this._eras||uc("en")._eras;for(n=0,r=a.length;n<r;++n){switch(typeof a[n].since){case"string":i=mt(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=mt(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf();break}}return a}function i1e(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 a1e(e,t){var n=e.since<=e.until?1:-1;return t===void 0?mt(e.since).year():mt(e.since).year()+(t-e.offset)*n}function o1e(){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 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].narrow;return""}function l1e(){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 u1e(){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()-mt(i[e].since).year())*n+i[e].offset;return this.year()}function c1e(e){return rr(this,"_erasNameRegex")||AB.call(this),e?this._erasNameRegex:this._erasRegex}function A1e(e){return rr(this,"_erasAbbrRegex")||AB.call(this),e?this._erasAbbrRegex:this._erasRegex}function d1e(e){return rr(this,"_erasNarrowRegex")||AB.call(this),e?this._erasNarrowRegex:this._erasRegex}function cB(e,t){return t.erasAbbrRegex(e)}function f1e(e,t){return t.erasNameRegex(e)}function h1e(e,t){return t.erasNarrowRegex(e)}function p1e(e,t){return t._eraYearOrdinalRegex||xh}function AB(){var e=[],t=[],n=[],r=[],i,a,o,s,u,c=this.eras();for(i=0,a=c.length;i<a;++i)o=ac(c[i].name),s=ac(c[i].abbr),u=ac(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")}an(0,["gg",2],0,function(){return this.weekYear()%100}),an(0,["GG",2],0,function(){return this.isoWeekYear()%100});function H1(e,t){an(0,[e,e.length],0,t)}H1("gggg","weekYear"),H1("ggggg","weekYear"),H1("GGGG","isoWeekYear"),H1("GGGGG","isoWeekYear"),Dt("G",k1),Dt("g",k1),Dt("GG",zr,Wo),Dt("gg",zr,Wo),Dt("GGGG",G5,K5),Dt("gggg",G5,K5),Dt("GGGGG",S1,x1),Dt("ggggg",S1,x1),zm(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=jn(e)}),zm(["gg","GG"],function(e,t,n,r){t[r]=mt.parseTwoDigitYear(e)});function m1e(e){return RF.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function g1e(e){return RF.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function v1e(){return lc(this.year(),1,4)}function y1e(){return lc(this.isoWeekYear(),1,4)}function _1e(){var e=this.localeData()._week;return lc(this.year(),e.dow,e.doy)}function b1e(){var e=this.localeData()._week;return lc(this.weekYear(),e.dow,e.doy)}function RF(e,t,n,r,i){var a;return e==null?Wm(this,r,i).year:(a=lc(e,r,i),t>a&&(t=a),w1e.call(this,e,t,n,r,i))}function w1e(e,t,n,r,i){var a=vF(e,t,n,r,i),o=Gm(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}an("Q",0,"Qo","quarter"),Dt("Q",sF),Cr("Q",function(e,t){t[oc]=(jn(e)-1)*3});function B1e(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}an("D",["DD",2],"Do","date"),Dt("D",zr,Ch),Dt("DD",zr,Wo),Dt("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Cr(["D","DD"],uu),Cr("Do",function(e,t){t[uu]=jn(e.match(zr)[0])});var QF=Sh("Date",!0);an("DDD",["DDDD",3],"DDDo","dayOfYear"),Dt("DDD",C1),Dt("DDDD",lF),Cr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=jn(e)});function x1e(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}an("m",["mm",2],0,"minute"),Dt("m",zr,W5),Dt("mm",zr,Wo),Cr(["m","mm"],cl);var C1e=Sh("Minutes",!1);an("s",["ss",2],0,"second"),Dt("s",zr,W5),Dt("ss",zr,Wo),Cr(["s","ss"],sc);var S1e=Sh("Seconds",!1);an("S",0,0,function(){return~~(this.millisecond()/100)}),an(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),an(0,["SSS",3],0,"millisecond"),an(0,["SSSS",4],0,function(){return this.millisecond()*10}),an(0,["SSSSS",5],0,function(){return this.millisecond()*100}),an(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),an(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),an(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),an(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Dt("S",C1,sF),Dt("SS",C1,Wo),Dt("SSS",C1,lF);var BA,jF;for(BA="SSSS";BA.length<=9;BA+="S")Dt(BA,xh);function k1e(e,t){t[qd]=jn(("0."+e)*1e3)}for(BA="S";BA.length<=9;BA+="S")Cr(BA,k1e);jF=Sh("Milliseconds",!1),an("z",0,0,"zoneAbbr"),an("zz",0,0,"zoneName");function M1e(){return this._isUTC?"UTC":""}function E1e(){return this._isUTC?"Coordinated Universal Time":""}var yt=jm.prototype;yt.add=bve,yt.calendar=Mve,yt.clone=Eve,yt.diff=Dve,yt.endOf=qve,yt.format=Yve,yt.from=Rve,yt.fromNow=Qve,yt.to=jve,yt.toNow=Vve,yt.get=Hge,yt.invalidAt=t1e,yt.isAfter=Lve,yt.isBefore=Tve,yt.isBetween=Nve,yt.isSame=Fve,yt.isSameOrAfter=Ove,yt.isSameOrBefore=Ive,yt.isValid=$ve,yt.lang=DF,yt.locale=IF,yt.localeData=UF,yt.max=$0e,yt.min=Z0e,yt.parsingFlags=e1e,yt.set=Yge,yt.startOf=zve,yt.subtract=wve,yt.toArray=Xve,yt.toObject=Jve,yt.toDate=Wve,yt.toISOString=Pve,yt.inspect=Hve,typeof Symbol<"u"&&Symbol.for!=null&&(yt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),yt.toJSON=Zve,yt.toString=Uve,yt.unix=Gve,yt.valueOf=Kve,yt.creationData=n1e,yt.eraName=o1e,yt.eraNarrow=s1e,yt.eraAbbr=l1e,yt.eraYear=u1e,yt.year=AF,yt.isLeapYear=Pge,yt.weekYear=m1e,yt.isoWeekYear=g1e,yt.quarter=yt.quarters=B1e,yt.month=mF,yt.daysInMonth=Wge,yt.week=yt.weeks=r0e,yt.isoWeek=yt.isoWeeks=i0e,yt.weeksInYear=_1e,yt.weeksInWeekYear=b1e,yt.isoWeeksInYear=v1e,yt.isoWeeksInISOWeekYear=y1e,yt.date=QF,yt.day=yt.days=g0e,yt.weekday=v0e,yt.isoWeekday=y0e,yt.dayOfYear=x1e,yt.hour=yt.hours=S0e,yt.minute=yt.minutes=C1e,yt.second=yt.seconds=S1e,yt.millisecond=yt.milliseconds=jF,yt.utcOffset=lve,yt.utc=cve,yt.local=Ave,yt.parseZone=dve,yt.hasAlignedHourOffset=fve,yt.isDST=hve,yt.isLocal=mve,yt.isUtcOffset=gve,yt.isUtc=LF,yt.isUTC=LF,yt.zoneAbbr=M1e,yt.zoneName=E1e,yt.dates=bs("dates accessor is deprecated. Use date instead.",QF),yt.months=bs("months accessor is deprecated. Use month instead",mF),yt.years=bs("years accessor is deprecated. Use year instead",AF),yt.zone=bs("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",uve),yt.isDSTShifted=bs("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",pve);function L1e(e){return qr(e*1e3)}function T1e(){return qr.apply(null,arguments).parseZone()}function VF(e){return e}var ir=Q5.prototype;ir.calendar=mge,ir.longDateFormat=_ge,ir.invalidDate=wge,ir.ordinal=Cge,ir.preparse=VF,ir.postformat=VF,ir.relativeTime=kge,ir.pastFuture=Mge,ir.set=hge,ir.eras=r1e,ir.erasParse=i1e,ir.erasConvertYear=a1e,ir.erasAbbrRegex=A1e,ir.erasNameRegex=c1e,ir.erasNarrowRegex=d1e,ir.months=zge,ir.monthsShort=qge,ir.monthsParse=Gge,ir.monthsRegex=Jge,ir.monthsShortRegex=Xge,ir.week=$ge,ir.firstDayOfYear=n0e,ir.firstDayOfWeek=t0e,ir.weekdays=d0e,ir.weekdaysMin=h0e,ir.weekdaysShort=f0e,ir.weekdaysParse=m0e,ir.weekdaysRegex=_0e,ir.weekdaysShortRegex=b0e,ir.weekdaysMinRegex=w0e,ir.isPM=x0e,ir.meridiem=k0e;function Y1(e,t,n,r){var i=uc(),a=ou().set(r,t);return i[n](a,e)}function zF(e,t,n){if(ic(e)&&(t=e,e=void 0),e=e||"",t!=null)return Y1(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Y1(e,r,n,"month");return i}function dB(e,t,n,r){typeof e=="boolean"?(ic(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,ic(t)&&(n=t,t=void 0),t=t||"");var i=uc(),a=e?i._week.dow:0,o,s=[];if(n!=null)return Y1(t,(n+a)%7,r,"day");for(o=0;o<7;o++)s[o]=Y1(t,(o+a)%7,r,"day");return s}function N1e(e,t){return zF(e,t,"months")}function F1e(e,t){return zF(e,t,"monthsShort")}function O1e(e,t,n){return dB(e,t,n,"weekdays")}function I1e(e,t,n){return dB(e,t,n,"weekdaysShort")}function D1e(e,t,n){return dB(e,t,n,"weekdaysMin")}wA("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=jn(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),mt.lang=bs("moment.lang is deprecated. Use moment.locale instead.",wA),mt.langData=bs("moment.langData is deprecated. Use moment.localeData instead.",uc);var cc=Math.abs;function U1e(){var e=this._data;return this._milliseconds=cc(this._milliseconds),this._days=cc(this._days),this._months=cc(this._months),e.milliseconds=cc(e.milliseconds),e.seconds=cc(e.seconds),e.minutes=cc(e.minutes),e.hours=cc(e.hours),e.months=cc(e.months),e.years=cc(e.years),this}function qF(e,t,n,r){var i=Al(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function P1e(e,t){return qF(this,e,t,1)}function H1e(e,t){return qF(this,e,t,-1)}function KF(e){return e<0?Math.floor(e):Math.ceil(e)}function Y1e(){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+=KF(fB(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Bs(e/1e3),r.seconds=i%60,a=Bs(i/60),r.minutes=a%60,o=Bs(a/60),r.hours=o%24,t+=Bs(o/24),u=Bs(GF(t)),n+=u,t-=KF(fB(u)),s=Bs(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function GF(e){return e*4800/146097}function fB(e){return e*146097/4800}function R1e(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=ws(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+GF(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(fB(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 Ac(e){return function(){return this.as(e)}}var WF=Ac("ms"),Q1e=Ac("s"),j1e=Ac("m"),V1e=Ac("h"),z1e=Ac("d"),q1e=Ac("w"),K1e=Ac("M"),G1e=Ac("Q"),W1e=Ac("y"),X1e=WF;function J1e(){return Al(this)}function Z1e(e){return e=ws(e),this.isValid()?this[e+"s"]():NaN}function Gd(e){return function(){return this.isValid()?this._data[e]:NaN}}var $1e=Gd("milliseconds"),eye=Gd("seconds"),tye=Gd("minutes"),nye=Gd("hours"),rye=Gd("days"),iye=Gd("months"),aye=Gd("years");function oye(){return Bs(this.days()/7)}var dc=Math.round,Lh={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function sye(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function lye(e,t,n,r){var i=Al(e).abs(),a=dc(i.as("s")),o=dc(i.as("m")),s=dc(i.as("h")),u=dc(i.as("d")),c=dc(i.as("M")),A=dc(i.as("w")),f=dc(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,sye.apply(null,h)}function uye(e){return e===void 0?dc:typeof e=="function"?(dc=e,!0):!1}function cye(e,t){return Lh[e]===void 0?!1:t===void 0?Lh[e]:(Lh[e]=t,e==="s"&&(Lh.ss=t-1),!0)}function Aye(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Lh,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Lh,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=lye(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var hB=Math.abs;function Th(e){return(e>0)-(e<0)||+e}function R1(){if(!this.isValid())return this.localeData().invalidDate();var e=hB(this._milliseconds)/1e3,t=hB(this._days),n=hB(this._months),r,i,a,o,s=this.asSeconds(),u,c,A,f;return s?(r=Bs(e/60),i=Bs(r/60),e%=60,r%=60,a=Bs(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=s<0?"-":"",c=Th(this._months)!==Th(s)?"-":"",A=Th(this._days)!==Th(s)?"-":"",f=Th(this._milliseconds)!==Th(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 Xn=O1.prototype;Xn.isValid=ive,Xn.abs=U1e,Xn.add=P1e,Xn.subtract=H1e,Xn.as=R1e,Xn.asMilliseconds=WF,Xn.asSeconds=Q1e,Xn.asMinutes=j1e,Xn.asHours=V1e,Xn.asDays=z1e,Xn.asWeeks=q1e,Xn.asMonths=K1e,Xn.asQuarters=G1e,Xn.asYears=W1e,Xn.valueOf=X1e,Xn._bubble=Y1e,Xn.clone=J1e,Xn.get=Z1e,Xn.milliseconds=$1e,Xn.seconds=eye,Xn.minutes=tye,Xn.hours=nye,Xn.days=rye,Xn.weeks=oye,Xn.months=iye,Xn.years=aye,Xn.humanize=Aye,Xn.toISOString=R1,Xn.toString=R1,Xn.toJSON=R1,Xn.locale=IF,Xn.localeData=UF,Xn.toIsoString=bs("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",R1),Xn.lang=DF,an("X",0,0,"unix"),an("x",0,0,"valueOf"),Dt("x",k1),Dt("X",Nge),Cr("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),Cr("x",function(e,t,n){n._d=new Date(jn(e))});//! moment.js
|
|
90
|
-
mt.version="2.30.1",dge(qr),mt.fn=yt,mt.min=eve,mt.max=tve,mt.now=nve,mt.utc=ou,mt.unix=L1e,mt.months=N1e,mt.isDate=Qm,mt.locale=wA,mt.invalid=b1,mt.duration=Al,mt.isMoment=ul,mt.weekdays=O1e,mt.parseZone=T1e,mt.localeData=uc,mt.isDuration=I1,mt.monthsShort=F1e,mt.weekdaysMin=D1e,mt.defineLocale=tB,mt.updateLocale=T0e,mt.locales=N0e,mt.weekdaysShort=I1e,mt.normalizeUnits=ws,mt.relativeTimeRounding=uye,mt.relativeTimeThreshold=cye,mt.calendarFormat=kve,mt.prototype=yt,mt.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 dye={class:"col"},fye={__name:"DatePickerInput",props:{from:Number,to:Number},emits:["selectTime"],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 p=!1;c(A)&&(d[0]=s(A),p=!0),c(f)&&(d[1]=s(f),p=!0),p?i.value=d:o()},{immediate:!0}),l.watch(i,A=>{Array.isArray(A)&&A.length===2&&A[0]&&A[1]&&r("selectTime",[mt(A[0]).valueOf(),mt(A[1]).valueOf()])},{deep:!0});function a(){const A=mt().valueOf();return[{label:"Last Hour",atClick:()=>[mt().subtract(1,"hours").valueOf(),A]},{label:"Last Three Hours",atClick:()=>[mt().subtract(3,"hours").valueOf(),A]},{label:"Last Six Hours",atClick:()=>[mt().subtract(6,"hours").valueOf(),A]},{label:"Last Twelve Hours",atClick:()=>[mt().subtract(12,"hours").valueOf(),A]},{label:"Last Day",atClick:()=>[mt().subtract(1,"days").valueOf(),A]},{label:"Last Three Days",atClick:()=>[mt().subtract(3,"days").valueOf(),A]},{label:"Last Week",atClick:()=>[mt().subtract(7,"days").valueOf(),A]}]}function o(){i.value=u()}function s(A){return mt(A).format("YYYY-MM-DD HH:mm:ss")}function u(){return[s(mt().subtract(1,"hours")),s(mt())]}function c(A){return typeof A=="number"&&!Number.isNaN(A)}return(A,f)=>(l.openBlock(),l.createElementBlock("div",dye,[l.createVNode(l.unref(_1),{shortcuts:a,modelValue:i.value,"onUpdate:modelValue":f[0]||(f[0]=h=>i.value=h)},null,8,["modelValue"])]))}},hye={key:0},pye={key:1},mye={key:2},gye=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",hye,[l.createVNode(l.unref(lA))])):l.createCommentVNode("",!0),i.value==="checked"?(l.openBlock(),l.createElementBlock("div",pye,[l.createVNode(l.unref(lA),{checked:!0})])):l.createCommentVNode("",!0),i.value==="ignored"?(l.openBlock(),l.createElementBlock("div",mye,[l.createVNode(l.unref(lA),{indeterminate:!0})])):l.createCommentVNode("",!0)]))}}),vye={class:"text-sm font-light"},yye={class:"flex justify-between pt-3 pb-1 relative"},_ye={class:"font-light"},bye={class:"flex"},wye={class:"flex justify-between py-1"},Bye={class:"flex items-center min-w-0"},xye={class:"px-2 truncate"},Cye=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);function o(){return i.value<n.children.length?"text-sky-600 cursor-pointer":"text-gray-400 cursor-not-allowed"}function s(){return i.value===0||n.children.length===0?"text-gray-400 cursor-not-allowed":"text-sky-600 cursor-pointer"}function u(){i.value<n.children.length&&(i.value+=5)}function c(){i.value>0&&(i.value-=5)}function A(f,h,d){r("newState",f,h,d)}return(f,h)=>(l.openBlock(),l.createElementBlock("div",vye,[l.createElementVNode("div",yye,[l.createElementVNode("div",{class:"text-base font-normal max-w-3/4 truncate",onMouseover:h[0]||(h[0]=d=>a.value=!0),onMouseout:h[1]||(h[1]=d=>a.value=!1)},[l.createTextVNode(l.toDisplayString(e.parent.title)+" ",1),l.createElementVNode("span",_ye,"("+l.toDisplayString(e.children.length)+")",1)],32),l.createElementVNode("div",bye,[l.createVNode(l.unref(qne),{class:l.normalizeClass(["icon-lg",o()]),onClick:h[2]||(h[2]=d=>u())},null,8,["class"]),l.createVNode(l.unref(jne),{class:l.normalizeClass(["icon-lg",s()]),onClick:h[3]||(h[3]=d=>c())},null,8,["class"])]),n.tooltip?(l.openBlock(),l.createBlock(l.unref($u),{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(e.children.slice(0,i.value),d=>(l.openBlock(),l.createElementBlock("div",wye,[l.createElementVNode("div",Bye,[l.createVNode(gye,{state:d.state,onNewState:p=>A(e.parent.label,d.label,p)},null,8,["state","onNewState"]),l.createElementVNode("div",xye,l.toDisplayString(d.label?d.label:"-"),1)]),l.createElementVNode("div",null,l.toDisplayString(d.count),1)]))),256))]))}}),Sye={class:"hidden md:col md:h-full overflow-hidden"},kye={key:0,class:"flex"},Mye={class:"h-0 flex-1 overflow-y-auto px-1"},Eye={key:0,class:"q-ml-md text-bold"},Lye={key:1,class:"flex flex-shrink-0 px-1 py-1"},Tye={class:"relative isolate inline-flex rounded-md shadow-xs"},Nye=pr(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}},emits:["search","updateStr","reset","edit","save","download","search"],setup(e,{emit:t}){var y,v,_;const n=e,r=t,i=l.ref((y=n.facetOptions)==null?void 0:y.mustFilters),a=l.ref((v=n.facetOptions)==null?void 0:v.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 M=w.find(x=>x.field===b.parent);typeof M<"u"?M.terms.push(b.child):w.push({field:b.parent,terms:[b.child]})}function f(b,w){const M=w.find(x=>x.field===b.parent);if(typeof M<"u"){const x=M.terms.indexOf(b.child);if(x>-1&&(M.terms.splice(x,1),M.terms.length===0)){const L=w.findIndex(N=>N.field===b.parent);w.splice(L,1)}}}function h(b,w,M){M==="checked"?d({parent:b,child:w}):M==="ignored"?p({parent:b,child:w}):m({parent:b,child:w})}function d(b){A(b,i.value)}function p(b){f(b,i.value),A(b,a.value)}function m(b){f(b,a.value)}function g(b,w=""){u.value=b,c.value=w}return(b,w)=>(l.openBlock(),l.createElementBlock("div",Sye,[e.searchBar?(l.openBlock(),l.createElementBlock("div",kye,[l.createVNode(l.unref(dN),{class:"w-full",str:o.value,onSearch:w[0]||(w[0]=M=>r("search")),onUpdate:w[1]||(w[1]=M=>r("updateStr",M))},null,8,["str"])])):l.createCommentVNode("",!0),l.createElementVNode("div",Mye,[e.tree.length==0?(l.openBlock(),l.createElementBlock("div",Eye," No Facet data. Please select a search query. ")):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.tree,M=>(l.openBlock(),l.createElementBlock("div",{key:M.id,class:"primary"},[l.createVNode(Cye,{parent:M,children:M.children,clear:s.value,"facet-options":e.facetOptions,tooltip:e.tooltip,onNewState:h},null,8,["parent","children","clear","facet-options","tooltip"]),l.createVNode(l.unref(Cw))]))),128))]),e.buttons?(l.openBlock(),l.createElementBlock("div",Lye,[l.createElementVNode("span",Tye,[l.createElementVNode("button",{type:"button",class:"action-btn std-red rounded-l-md",onClick:w[2]||(w[2]=M=>r("reset")),onMouseover:w[3]||(w[3]=M=>g(!0,"Reset Facet")),onMouseout:w[4]||(w[4]=M=>g(!1))},[l.createVNode(l.unref(Td),{class:"icon-md","aria-hidden":"true"})],32),l.createElementVNode("button",{type:"button",class:"action-btn std-blue",onClick:w[5]||(w[5]=M=>r("edit")),onMouseover:w[6]||(w[6]=M=>g(!0,"Edit Facet")),onMouseout:w[7]||(w[7]=M=>g(!1))},[l.createVNode(l.unref(I6),{class:"icon-md","aria-hidden":"true"})],32),l.createElementVNode("button",{type:"button",class:"action-btn std-blue",onClick:w[8]||(w[8]=M=>r("save")),onMouseover:w[9]||(w[9]=M=>g(!0,"Save Facet")),onMouseout:w[10]||(w[10]=M=>g(!1))},[l.createVNode(l.unref(ZF),{class:"icon-md","aria-hidden":"true"})],32),l.createElementVNode("button",{type:"button",class:"action-btn std-blue rounded-r-md",onClick:w[11]||(w[11]=M=>r("search")),onMouseover:w[12]||(w[12]=M=>g(!0,"Search")),onMouseout:w[13]||(w[13]=M=>g(!1))},[l.createVNode(l.unref(ww),{class:"icon-md","aria-hidden":"true"})],32),l.createVNode(l.unref($u),{tooltip:c.value,showingTooltip:u.value,direction:"top",style:{transform:"translateY(-40%)"}},null,8,["tooltip","showingTooltip"])])])):l.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-0f89cff2"]]),Fye=[{label:"Hourly",value:"hourly"},{label:"Daily",value:"daily"},{label:"Weekly",value:"weekly"},{label:"Monthly",value:"monthly"}],Oye=[{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}],Iye=Array.from({length:24},(e,t)=>({label:t.toString(),value:t})),Dye=Array.from({length:31},(e,t)=>({label:(t+1).toString(),value:t+1})),Uye=[{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"}],Pye={class:"px-2"},Hye={class:"flex gap-x-3"},Yye={__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(l.unref(mm),{sectionName:"Schedule Details"},{default:l.withCtx(()=>[l.createElementVNode("div",Pye,[l.createVNode(l.unref(zi),{fieldName:"Interval"},{default:l.withCtx(()=>[l.createVNode(l.unref(dr),{modelValue:n.value.interval,"onUpdate:modelValue":a[0]||(a[0]=o=>n.value.interval=o),options:l.unref(Fye)},null,8,["modelValue","options"])]),_:1}),l.createElementVNode("div",Hye,[n.value.interval==="monthly"?(l.openBlock(),l.createBlock(l.unref(zi),{key:0,fieldName:"Day",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(l.unref(dr),{modelValue:n.value.day,"onUpdate:modelValue":a[1]||(a[1]=o=>n.value.day=o),options:l.unref(Dye)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),n.value.interval==="weekly"?(l.openBlock(),l.createBlock(l.unref(zi),{key:1,fieldName:"Weekday",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(l.unref(dr),{modelValue:n.value.weekday,"onUpdate:modelValue":a[2]||(a[2]=o=>n.value.weekday=o),options:l.unref(Oye)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),n.value.interval!=="minute"&&n.value.interval!=="hourly"?(l.openBlock(),l.createBlock(l.unref(zi),{key:2,fieldName:"Hour",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(l.unref(dr),{modelValue:n.value.hour,"onUpdate:modelValue":a[3]||(a[3]=o=>n.value.hour=o),options:l.unref(Iye)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),n.value.interval==="minute"||n.value.interval==="hourly"||n.value.interval==="daily"?(l.openBlock(),l.createBlock(l.unref(zi),{key:3,fieldName:"Minute",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(l.unref(dr),{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(l.unref(zi),{key:0,fieldName:"Timezone"},{default:l.withCtx(()=>[l.createVNode(l.unref(dr),{modelValue:n.value.timezone,"onUpdate:modelValue":a[5]||(a[5]=o=>n.value.timezone=o),options:l.unref(Uye)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0)])]),_:1}))}};function Rye(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 Qye(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 XF=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 $m(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 jye(e){return mt(e).fromNow()}const Vye={role:"list",class:"space-y-6"},zye={class:"relative flex gap-x-4"},qye={class:"relative flex icon-lg flex-none items-center justify-center bg-white dark:bg-black"},Kye={key:2,class:"h-1.5 w-1.5 rounded-full bg-gray-100 ring-1 ring-gray-300"},Gye={class:"flex-auto py-0.5 text-xs leading-5 text-gray-500 dark:text-gray-400"},Wye={class:"font-medium text-gray-900 dark:text-gray-200"},Xye=["datetime"],Jye={__name:"Feed",props:{data:Array},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("ul",Vye,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.data,(r,i)=>(l.openBlock(),l.createElementBlock("li",zye,[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 bg-gray-200"},null,-1)]),2),l.createElementVNode("div",qye,[r.action==="resolve"?(l.openBlock(),l.createBlock(l.unref(Rye),{key:0,class:"icon-lg icon-green","aria-hidden":"true"})):r.action==="trigger"?(l.openBlock(),l.createBlock(l.unref(Qye),{key:1,class:"icon-lg icon-red","aria-hidden":"true"})):(l.openBlock(),l.createElementBlock("div",Kye))]),l.createElementVNode("p",Gye,[l.createElementVNode("span",Wye,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 text-gray-500 dark:text-gray-400"},l.toDisplayString(l.unref(jye)(r.timestamp)),9,Xye)]))),256))]))}},Zye={class:"mb-3 flex items-center justify-between relative"},$ye={class:"min-w-0 flex-1"},e_e={class:"row truncate font-medium"},t_e={class:"flex mt-0 ml-4"},n_e={__name:"CategoryCard",props:{category:{type:[Object,String],required:!0}},setup(e){return(t,n)=>(l.openBlock(),l.createBlock(l.unref(U6),null,{default:l.withCtx(()=>[l.createElementVNode("div",Zye,[l.renderSlot(t.$slots,"icon"),l.createElementVNode("div",$ye,[l.createElementVNode("h3",e_e,[l.createTextVNode(l.toDisplayString(e.category.name||e.category)+" ",1),l.renderSlot(t.$slots,"title")])]),l.createElementVNode("div",t_e,[l.renderSlot(t.$slots,"header")])]),l.renderSlot(t.$slots,"default")]),_:3}))}},r_e={},i_e={class:"bg-gray-400 pl-3 py-1 sm:flex sm:items-center sm:justify-between content-center dark:bg-neutral-600 dark:text-white"},a_e={class:"mt-3 flex sm:mt-0"};function o_e(e,t){return l.openBlock(),l.createElementBlock("div",i_e,[l.renderSlot(e.$slots,"title"),l.createElementVNode("div",a_e,[l.renderSlot(e.$slots,"buttons")])])}const s_e=pr(r_e,[["render",o_e]]),l_e={class:"py-1"},u_e=["onClick"],JF={__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(l.unref(Vu),{as:"div",class:"relative inline-block text-left"},{default:l.withCtx(()=>[l.createVNode(l.unref(zu),{class:l.normalizeClass(`group inline-flex justify-center text-${e.size} font-medium`)},{default:l.withCtx(()=>[l.createVNode(l.unref(X8),{class:l.normalizeClass(`${i.value} mr-2`)},null,8,["class"]),o[0]||(o[0]=l.createTextVNode(" Sort By ",-1)),l.createVNode(l.unref(i1),{class:l.normalizeClass(`${i.value} ml-2`)},null,8,["class"])]),_:1,__:[0]},8,["class"]),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(qu),{class:l.normalizeClass(["z-50 absolute z-50 mt-0.5 w-40 origin-top-right rounded-md py-2 shadow-lg max-h-96 overflow-y-auto break-all white-bg text-gray-700 dark:bg-black dark:text-gray-300",e.direction==="right"?"left-0 ":"right-0"])},{default:l.withCtx(()=>[l.createElementVNode("div",l_e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,s=>(l.openBlock(),l.createBlock(l.unref(ps),{key:s},{default:l.withCtx(({active:u})=>[l.createElementVNode("span",{class:l.normalizeClass([u?"outline-hidden white-bg-hover dark:dark-bg-hover":"",{"bg-gray-400 dark:bg-slate-800":e.current.label===s.label},`group flex w-full items-center rounded-md px-2 py-2 text-${e.size} cursor-pointer`]),onClick:l.withModifiers(c=>r("sort",s),["stop"])},l.toDisplayString(s.label),11,u_e)]),_:2},1024))),128))])]),_:1},8,["class"])]),_:1})]),_:1}))}},c_e=["title"],A_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,c_e)):l.createCommentVNode("",!0),e.city?(l.openBlock(),l.createElementBlock("span",A_e,l.toDisplayString(e.city)+", "+l.toDisplayString(e.org),1)):l.createCommentVNode("",!0)]))}},f_e="data:image/svg+xml,%3csvg%20viewBox='0%200%20512%20512'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3ctitle%3eai%3c/title%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='icon'%20fill='%230097f5'%20transform='translate(64.000000,%2064.000000)'%3e%3cpath%20d='M320,64%20L320,320%20L64,320%20L64,64%20L320,64%20Z%20M171.749388,128%20L146.817842,128%20L99.4840387,256%20L121.976629,256%20L130.913039,230.977%20L187.575039,230.977%20L196.319607,256%20L220.167172,256%20L171.749388,128%20Z%20M260.093778,128%20L237.691519,128%20L237.691519,256%20L260.093778,256%20L260.093778,128%20Z%20M159.094727,149.47526%20L181.409039,213.333%20L137.135039,213.333%20L159.094727,149.47526%20Z%20M341.333333,256%20L384,256%20L384,298.666667%20L341.333333,298.666667%20L341.333333,256%20Z%20M85.3333333,341.333333%20L128,341.333333%20L128,384%20L85.3333333,384%20L85.3333333,341.333333%20Z%20M170.666667,341.333333%20L213.333333,341.333333%20L213.333333,384%20L170.666667,384%20L170.666667,341.333333%20Z%20M85.3333333,0%20L128,0%20L128,42.6666667%20L85.3333333,42.6666667%20L85.3333333,0%20Z%20M256,341.333333%20L298.666667,341.333333%20L298.666667,384%20L256,384%20L256,341.333333%20Z%20M170.666667,0%20L213.333333,0%20L213.333333,42.6666667%20L170.666667,42.6666667%20L170.666667,0%20Z%20M256,0%20L298.666667,0%20L298.666667,42.6666667%20L256,42.6666667%20L256,0%20Z%20M341.333333,170.666667%20L384,170.666667%20L384,213.333333%20L341.333333,213.333333%20L341.333333,170.666667%20Z%20M0,256%20L42.6666667,256%20L42.6666667,298.666667%20L0,298.666667%20L0,256%20Z%20M341.333333,85.3333333%20L384,85.3333333%20L384,128%20L341.333333,128%20L341.333333,85.3333333%20Z%20M0,170.666667%20L42.6666667,170.666667%20L42.6666667,213.333333%20L0,213.333333%20L0,170.666667%20Z%20M0,85.3333333%20L42.6666667,85.3333333%20L42.6666667,128%20L0,128%20L0,85.3333333%20Z'%20id='Combined-Shape'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",h_e="data:image/svg+xml,%3csvg%20viewBox='0%200%2017%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%23fff'%20fill-rule='evenodd'%3e%3cpath%20d='m8.20003216%200c-4.5281696%200-8.20003216%203.67233045-8.20003216%208.2025137%200%203.6241466%202.34955472%206.6987785%205.60770169%207.7833978.40979259.0759104.5602814-.1779394.5602814-.3946059%200-.195566-.00765306-.84177-.01112588-1.5271516-2.28132027.4961843-2.76269151-.9677944-2.76269151-.9677944-.37300645-.948109-.91045728-1.2001576-.91045728-1.2001576-.74395492-.5091149.05607959-.4986933.05607959-.4986933.82344388.0578979%201.25703171.8453083%201.25703171.8453083.73134987%201.2540026%201.9182821.8914335%202.38621225.6819077.07357231-.5302154.28612167-.8920125.52060124-1.0968421-1.82130043-.2074672-3.73598109-.9107972-3.73598109-4.05374848%200-.89548638.32033536-1.62725057.84492391-2.20166134-.08514837-.20663091-.36580356-1.04087425.07942464-2.17071817%200%200%20.68858276-.22046205%202.25559569.8408051.6540475-.18179917%201.35555686-.27289175%202.0524358-.27597964.69687893.00308789%201.39890278.09418047%202.05423654.27597964%201.5651479-1.06126715%202.252766-.8408051%202.252766-.8408051.4463215%201.12984392.1655376%201.96408726.0803893%202.17071817.5257461.57441077.8438949%201.30611063.8438949%202.20166134%200%203.15041368-1.9182821%203.84415838-3.74421295%204.04718668.29409628.2545575.55616545.7537654.55616545%201.5189817%200%201.0974854-.0095181%201.9808133-.0095181%202.2510031%200%20.2182748.1475948.4740546.5633041.3935122%203.2563462-1.0858415%205.6029426-4.1593798%205.6029426-7.7823041%200-4.53018325-3.6713481-8.2025137-8.19996784-8.2025137'/%3e%3cpath%20d='m3.07518929%2011.6824029c-.01787762.0408541-.08159856.0531168-.13950928.0251063-.05905999-.0268489-.09226129-.0826118-.07310669-.1236596.01755837-.0420803.08127932-.0538267.14021161-.025558.05918769.0267843.09289978.0830636.07240436.1241113m.40045868.3611685c-.03881997.0364008-.11473601.0194912-.16626186-.0380143-.05324977-.0573765-.06321015-.1340506-.02381554-.1710323.0400331-.0363363.11365058-.0193621.16702804.0380789.05324977.0580219.06359325.1342442.02298552.1710322m.27480455.4620452c-.04992964.0350455-.1315282.0021944-.18190478-.0709945-.04986579-.0731243-.04986579-.1608994.00108543-.1960739.05056812-.0351746.13088971-.0035497.18196863.0690583.04980194.0744151.04980194.1621902-.00121313.1980747m.46462657.5351695c-.0446302.0496962-.13963698.0364009-.209232-.0314957-.07112739-.0663476-.09098432-.1605121-.04622642-.2102728.04514099-.0498253.14072241-.03582.21082822.0314957.07068044.0662185.09226128.161093.04469405.2102728m.60036877.1807134c-.01960153.0644113-.11116048.0937127-.20335792.0663476-.09206974-.0282042-.15234286-.1037166-.1337629-.1688379.01915459-.0648632.11109663-.0953908.20399641-.0660894.09194204.0280751.15234286.1030065.13318826.1685797m.68337202.0766095c.00229855.0678966-.07591604.1241759-.17271058.1254021-.09736918.0021299-.17609455-.0527941-.17711613-.1195289%200-.068542.07642682-.124305.17373215-.1259185.09679454-.0019362.17609456.0526005.17609456.1200453m.67130462-.0260098c.01162045.0662185-.05567602.1342442-.15176823.1523155-.09449599.0174259-.18196862-.0234282-.19403602-.0890659-.01174815-.0678965.05682529-.1358576.15112974-.1534772.09628375-.0169096.18241557.0229119.19467451.0902276'%20fill-rule='nonzero'/%3e%3c/g%3e%3c/svg%3e",p_e="data:image/svg+xml,%3csvg%20width='98'%20height='96'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M48.854%200C21.839%200%200%2022%200%2049.217c0%2021.756%2013.993%2040.172%2033.405%2046.69%202.427.49%203.316-1.059%203.316-2.362%200-1.141-.08-5.052-.08-9.127-13.59%202.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015%204.934.326%207.523%205.052%207.523%205.052%204.367%207.496%2011.404%205.378%2014.235%204.074.404-3.178%201.699-5.378%203.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283%200-5.378%201.94-9.778%205.014-13.2-.485-1.222-2.184-6.275.486-13.038%200%200%204.125-1.304%2013.426%205.052a46.97%2046.97%200%200%201%2012.214-1.63c4.125%200%208.33.571%2012.213%201.63%209.302-6.356%2013.427-5.052%2013.427-5.052%202.67%206.763.97%2011.816.485%2013.038%203.155%203.422%205.015%207.822%205.015%2013.2%200%2018.905-11.404%2023.06-22.324%2024.283%201.78%201.548%203.316%204.481%203.316%209.126%200%206.6-.08%2011.897-.08%2013.526%200%201.304.89%202.853%203.316%202.364%2019.412-6.52%2033.405-24.935%2033.405-46.691C97.707%2022%2075.788%200%2048.854%200z'%20fill='%2324292f'/%3e%3c/svg%3e",m_e="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23C10015'%3e%3cpath%20d='M480-120q-33%200-56.5-23.5T400-200q0-33%2023.5-56.5T480-280q33%200%2056.5%2023.5T560-200q0%2033-23.5%2056.5T480-120Zm-80-240v-480h160v480H400Z'/%3e%3c/svg%3e",g_e="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23C10015'%3e%3cpath%20d='M380-120v-120L240-380v-220q0-24%2011-45t32-32l77%2077h-40v186l140%20140v74h40v-74l37-37L56-792l56-56%20736%20736-56%2056-198-198-14%2014v120H380Zm306-268-46-46v-166H474L320-754v-86h80v160h160v-160h80v200l-40-40h40q33%200%2056.5%2023.5T720-600v178l-34%2034ZM558-516Zm-130%2097Z'/%3e%3c/svg%3e",v_e="data:image/svg+xml,%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3%205.75C3%204.23122%204.23122%203%205.75%203H15.7145C16.5764%203%2017.4031%203.34241%2018.0126%203.9519L20.0481%205.98744C20.6576%206.59693%2021%207.42358%2021%208.28553V18.25C21%2019.7688%2019.7688%2021%2018.25%2021H5.75C4.23122%2021%203%2019.7688%203%2018.25V5.75ZM5.75%204.5C5.05964%204.5%204.5%205.05964%204.5%205.75V18.25C4.5%2018.9404%205.05964%2019.5%205.75%2019.5H6V14.25C6%2013.0074%207.00736%2012%208.25%2012H15.75C16.9926%2012%2018%2013.0074%2018%2014.25V19.5H18.25C18.9404%2019.5%2019.5%2018.9404%2019.5%2018.25V8.28553C19.5%207.8214%2019.3156%207.37629%2018.9874%207.0481L16.9519%205.01256C16.6918%204.75246%2016.3582%204.58269%2016%204.52344V7.25C16%208.49264%2014.9926%209.5%2013.75%209.5H9.25C8.00736%209.5%207%208.49264%207%207.25V4.5H5.75ZM16.5%2019.5V14.25C16.5%2013.8358%2016.1642%2013.5%2015.75%2013.5H8.25C7.83579%2013.5%207.5%2013.8358%207.5%2014.25V19.5H16.5ZM8.5%204.5V7.25C8.5%207.66421%208.83579%208%209.25%208H13.75C14.1642%208%2014.5%207.66421%2014.5%207.25V4.5H8.5Z'%20fill='%23FFFFFF'/%3e%3c/svg%3e",y_e=["src"],__e={__name:"AiIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(f_e),alt:"avatar"},null,8,y_e))}},b_e=["src"],w_e={__name:"GithubIcon",props:{theme:{type:String,default:"light"}},setup(e){const t=e,n=l.computed(()=>t.theme==="dark"?h_e:p_e);return(r,i)=>(l.openBlock(),l.createElementBlock("img",{src:n.value,alt:"avatar"},null,8,b_e))}},B_e=["src"],x_e=l.defineComponent({__name:"HighPriorityIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(m_e),alt:"avatar"},null,8,B_e))}}),C_e=["src"],S_e=l.defineComponent({__name:"PowerOffIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(g_e),alt:"avatar"},null,8,C_e))}}),k_e=["src"],ZF=l.defineComponent({__name:"SaveIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(v_e),alt:"avatar"},null,8,k_e))}});function xA(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function eg(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Q1(e){let t,n,r;e.length!==2?(t=xA,n=(s,u)=>xA(e(s),u),r=(s,u)=>e(s)-u):(t=e===xA||e===eg?e:M_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 M_e(){return 0}function $F(e){return e===null?NaN:+e}function*E_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=Q1(xA).right;Q1($F).center;function pB(e,t){let n=0;for(let r of e)r!=null&&(r=+r)>=r&&++n;return n}function L_e(e){return e.length|0}function T_e(e){return!(e>0)}function N_e(e){return typeof e!="object"||"length"in e?e:Array.from(e)}function F_e(e){return t=>e(...t)}function O_e(...e){const t=typeof e[e.length-1]=="function"&&F_e(e.pop());e=e.map(N_e);const n=e.map(L_e),r=e.length-1,i=new Array(r+1).fill(0),a=[];if(r<0||n.some(T_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 e7(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 t7(e,t){const n=e7(e,t);return n&&Math.sqrt(n)}function Ci(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 Wd{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 tg extends Map{constructor(t,n=i7){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(mB(this,t))}has(t){return super.has(mB(this,t))}set(t,n){return super.set(n7(this,t),n)}delete(t){return super.delete(r7(this,t))}}class ng extends Set{constructor(t,n=i7){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(mB(this,t))}add(t){return super.add(n7(this,t))}delete(t){return super.delete(r7(this,t))}}function mB({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function n7({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function r7({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function i7(e){return e!==null&&typeof e=="object"?e.valueOf():e}function V1(e){return e}function a7(e,...t){return q1(e,V1,V1,t)}function z1(e,t,...n){return q1(e,V1,t,n)}function I_e(e,t,...n){return q1(e,Array.from,t,n)}function o7(e,...t){return q1(e,V1,D_e,t)}function D_e(e){if(e.length!==1)throw new Error("duplicate key");return e[0]}function q1(e,t,n,r){return function i(a,o){if(o>=r.length)return n(a);const s=new tg,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 U_e(e,t){return Array.from(t,n=>e[n])}function s7(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=K1(o[i],o[a]);if(s)return s}})):(n=e.map(n),r.sort((i,a)=>K1(n[i],n[a]))),U_e(e,r)}return e.sort(l7(n))}function l7(e=xA){if(e===xA)return K1;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 K1(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const P_e=Math.sqrt(50),H_e=Math.sqrt(10),Y_e=Math.sqrt(2);function G1(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>=P_e?10:a>=H_e?5:a>=Y_e?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?G1(e,t,n*2):[s,u,c]}function Xd(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?G1(t,e,n):G1(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 W1(e,t,n){return t=+t,e=+e,n=+n,G1(e,t,n)[2]}function gB(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?W1(t,e,n):W1(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function R_e(e){return Math.max(1,Math.ceil(Math.log(pB(e))/Math.LN2)+1)}function ma(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 Q_e(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 Nh(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 j_e(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 u7(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?K1:l7(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)),p=Math.min(r,Math.floor(t+(u-c)*f/u+h));u7(e,t,d,p,i)}const a=e[t];let o=n,s=r;for(rg(e,n,t),i(e[r],a)>0&&rg(e,n,r);o<s;){for(rg(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?rg(e,n,s):(++s,rg(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function rg(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Fh(e,t,n){if(e=Float64Array.from(E_e(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Nh(e);if(t>=1)return ma(e);var r,i=(r-1)*t,a=Math.floor(i),o=ma(u7(e,a).subarray(0,a+1)),s=Nh(e.subarray(a+1));return o+(s-o)*(i-a)}}function V_e(e,t,n=$F){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 z_e(e,t,n){const r=pB(e),i=Fh(e,.75)-Fh(e,.25);return r&&i?Math.ceil((n-t)/(2*i*Math.pow(r,-1/3))):1}function c7(e,t,n){const r=pB(e),i=t7(e);return r&&i?Math.ceil((n-t)*Math.cbrt(r)/(3.49*i)):1}function q_e(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 vB(e,t){return Fh(e,.5,t)}function*K_e(e){for(const t of e)yield*t}function A7(e){return Array.from(K_e(e))}function G_e(e,t){const n=new tg;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 W_e(e,t=X_e){const n=[];let r,i=!1;for(const a of e)i&&n.push(t(r,a)),r=a,i=!0;return n}function X_e(e,t){return[e,t]}function yB(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 X1(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 J1(e){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(e).reverse()}function d7(...e){const t=new ng;for(const n of e)for(const r of n)t.add(r);return t}function J_e(e){return e}var Z1=1,$1=2,_B=3,ig=4,f7=1e-6;function Z_e(e){return"translate("+e+",0)"}function $_e(e){return"translate(0,"+e+")"}function ebe(e){return t=>+e(t)}function tbe(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function nbe(){return!this.__axis}function ey(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===Z1||e===ig?-1:1,A=e===ig||e===$1?"x":"y",f=e===Z1||e===_B?Z_e:$_e;function h(d){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,n):J_e),g=Math.max(a,0)+s,y=t.range(),v=+y[0]+u,_=+y[y.length-1]+u,b=(t.bandwidth?tbe:ebe)(t.copy(),u),w=d.selection?d.selection():d,M=w.selectAll(".domain").data([null]),x=w.selectAll(".tick").data(p,t).order(),L=x.exit(),N=x.enter().append("g").attr("class","tick"),H=x.select("line"),S=x.select("text");M=M.merge(M.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(N),H=H.merge(N.append("line").attr("stroke","currentColor").attr(A+"2",c*a)),S=S.merge(N.append("text").attr("fill","currentColor").attr(A,c*g).attr("dy",e===Z1?"0em":e===_B?"0.71em":"0.32em")),d!==w&&(M=M.transition(d),x=x.transition(d),H=H.transition(d),S=S.transition(d),L=L.transition(d).attr("opacity",f7).attr("transform",function(F){return isFinite(F=b(F))?f(F+u):this.getAttribute("transform")}),N.attr("opacity",f7).attr("transform",function(F){var I=this.parentNode.__axis;return f((I&&isFinite(I=I(F))?I:b(F))+u)})),L.remove(),M.attr("d",e===ig||e===$1?o?"M"+c*o+","+v+"H"+u+"V"+_+"H"+c*o:"M"+u+","+v+"V"+_:o?"M"+v+","+c*o+"V"+u+"H"+_+"V"+c*o:"M"+v+","+u+"H"+_),x.attr("opacity",1).attr("transform",function(F){return f(b(F)+u)}),H.attr(A+"2",c*a),S.attr(A,c*g).text(m),w.filter(nbe).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===$1?"start":e===ig?"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 rbe(e){return ey(Z1,e)}function ibe(e){return ey($1,e)}function ko(e){return ey(_B,e)}function Jd(e){return ey(ig,e)}var abe={value:()=>{}};function bB(){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 ty(n)}function ty(e){this._=e}function obe(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}})}ty.prototype=bB.prototype={constructor:ty,on:function(e,t){var n=this._,r=obe(e+"",n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=sbe(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]=h7(n[i],e.name,t);else if(t==null)for(i in n)n[i]=h7(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 ty(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 sbe(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function h7(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=abe,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var wB="http://www.w3.org/1999/xhtml";const Oh={svg:"http://www.w3.org/2000/svg",xhtml:wB,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ny(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Oh.hasOwnProperty(t)?{space:Oh[t],local:e}:e}function lbe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===wB&&t.documentElement.namespaceURI===wB?t.createElement(e):t.createElementNS(n,e)}}function ube(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ry(e){var t=ny(e);return(t.local?ube:lbe)(t)}function cbe(){}function BB(e){return e==null?cbe:function(){return this.querySelector(e)}}function Abe(e){typeof e!="function"&&(e=BB(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 oo(r,this._parents)}function p7(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function dbe(){return[]}function m7(e){return e==null?dbe:function(){return this.querySelectorAll(e)}}function fbe(e){return function(){return p7(e.apply(this,arguments))}}function hbe(e){typeof e=="function"?e=fbe(e):e=m7(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 oo(r,i)}function g7(e){return function(){return this.matches(e)}}function v7(e){return function(t){return t.matches(e)}}var pbe=Array.prototype.find;function mbe(e){return function(){return pbe.call(this.children,e)}}function gbe(){return this.firstElementChild}function vbe(e){return this.select(e==null?gbe:mbe(typeof e=="function"?e:v7(e)))}var ybe=Array.prototype.filter;function _be(){return Array.from(this.children)}function bbe(e){return function(){return ybe.call(this.children,e)}}function wbe(e){return this.selectAll(e==null?_be:bbe(typeof e=="function"?e:v7(e)))}function Bbe(e){typeof e!="function"&&(e=g7(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 oo(r,this._parents)}function y7(e){return new Array(e.length)}function xbe(){return new oo(this._enter||this._groups.map(y7),this._parents)}function iy(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}iy.prototype={constructor:iy,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 Cbe(e){return function(){return e}}function Sbe(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 iy(e,a[o]);for(;o<u;++o)(s=t[o])&&(i[o]=s)}function kbe(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 iy(e,a[s]);for(s=0;s<A;++s)(u=t[s])&&c.get(h[s])===u&&(i[s]=u)}function Mbe(e){return e.__data__}function Ebe(e,t){if(!arguments.length)return Array.from(this,Mbe);var n=t?kbe:Sbe,r=this._parents,i=this._groups;typeof e!="function"&&(e=Cbe(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=Lbe(e.call(A,A&&A.__data__,c,r)),p=d.length,m=s[c]=new Array(p),g=o[c]=new Array(p),y=u[c]=new Array(h);n(A,f,m,g,y,d,t);for(var v=0,_=0,b,w;v<p;++v)if(b=m[v]){for(v>=_&&(_=v+1);!(w=g[_])&&++_<p;);b._next=w||null}}return o=new oo(o,r),o._enter=s,o._exit=u,o}function Lbe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Tbe(){return new oo(this._exit||this._groups.map(y7),this._parents)}function Nbe(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 Fbe(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,p=0;p<f;++p)(d=c[p]||A[p])&&(h[p]=d);for(;u<i;++u)s[u]=n[u];return new oo(s,this._parents)}function Obe(){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 Ibe(e){e||(e=Dbe);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 oo(i,this._parents).order()}function Dbe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ube(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Pbe(){return Array.from(this)}function Hbe(){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 Ybe(){let e=0;for(const t of this)++e;return e}function Rbe(){return!this.node()}function Qbe(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 jbe(e){return function(){this.removeAttribute(e)}}function Vbe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zbe(e,t){return function(){this.setAttribute(e,t)}}function qbe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Kbe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Gbe(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 Wbe(e,t){var n=ny(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?Vbe:jbe:typeof t=="function"?n.local?Gbe:Kbe:n.local?qbe:zbe)(n,t))}function _7(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Xbe(e){return function(){this.style.removeProperty(e)}}function Jbe(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Zbe(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function $be(e,t,n){return arguments.length>1?this.each((t==null?Xbe:typeof t=="function"?Zbe:Jbe)(e,t,n??"")):Ih(this.node(),e)}function Ih(e,t){return e.style.getPropertyValue(t)||_7(e).getComputedStyle(e,null).getPropertyValue(t)}function e2e(e){return function(){delete this[e]}}function t2e(e,t){return function(){this[e]=t}}function n2e(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function r2e(e,t){return arguments.length>1?this.each((t==null?e2e:typeof t=="function"?n2e:t2e)(e,t)):this.node()[e]}function b7(e){return e.trim().split(/^|\s+/)}function xB(e){return e.classList||new w7(e)}function w7(e){this._node=e,this._names=b7(e.getAttribute("class")||"")}w7.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 B7(e,t){for(var n=xB(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function x7(e,t){for(var n=xB(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function i2e(e){return function(){B7(this,e)}}function a2e(e){return function(){x7(this,e)}}function o2e(e,t){return function(){(t.apply(this,arguments)?B7:x7)(this,e)}}function s2e(e,t){var n=b7(e+"");if(arguments.length<2){for(var r=xB(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?o2e:t?i2e:a2e)(n,t))}function l2e(){this.textContent=""}function u2e(e){return function(){this.textContent=e}}function c2e(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function A2e(e){return arguments.length?this.each(e==null?l2e:(typeof e=="function"?c2e:u2e)(e)):this.node().textContent}function d2e(){this.innerHTML=""}function f2e(e){return function(){this.innerHTML=e}}function h2e(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function p2e(e){return arguments.length?this.each(e==null?d2e:(typeof e=="function"?h2e:f2e)(e)):this.node().innerHTML}function m2e(){this.nextSibling&&this.parentNode.appendChild(this)}function g2e(){return this.each(m2e)}function v2e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function y2e(){return this.each(v2e)}function _2e(e){var t=typeof e=="function"?e:ry(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function b2e(){return null}function w2e(e,t){var n=typeof e=="function"?e:ry(e),r=t==null?b2e:typeof t=="function"?t:BB(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function B2e(){var e=this.parentNode;e&&e.removeChild(this)}function x2e(){return this.each(B2e)}function C2e(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function S2e(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function k2e(e){return this.select(e?S2e:C2e)}function M2e(e){return arguments.length?this.property("__data__",e):this.node().__data__}function E2e(e){return function(t){e.call(this,t,this.__data__)}}function L2e(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 T2e(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 N2e(e,t,n){return function(){var r=this.__on,i,a=E2e(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 F2e(e,t,n){var r=L2e(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?N2e:T2e,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function C7(e,t,n){var r=_7(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 O2e(e,t){return function(){return C7(this,e,t)}}function I2e(e,t){return function(){return C7(this,e,t.apply(this,arguments))}}function D2e(e,t){return this.each((typeof t=="function"?I2e:O2e)(e,t))}function*U2e(){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 CB=[null];function oo(e,t){this._groups=e,this._parents=t}function ag(){return new oo([[document.documentElement]],CB)}function P2e(){return this}oo.prototype=ag.prototype={constructor:oo,select:Abe,selectAll:hbe,selectChild:vbe,selectChildren:wbe,filter:Bbe,data:Ebe,enter:xbe,exit:Tbe,join:Nbe,merge:Fbe,selection:P2e,order:Obe,sort:Ibe,call:Ube,nodes:Pbe,node:Hbe,size:Ybe,empty:Rbe,each:Qbe,attr:Wbe,style:$be,property:r2e,classed:s2e,text:A2e,html:p2e,raise:g2e,lower:y2e,append:_2e,insert:w2e,remove:x2e,clone:k2e,datum:M2e,on:F2e,dispatch:D2e,[Symbol.iterator]:U2e};function zt(e){return typeof e=="string"?new oo([[document.querySelector(e)]],[document.documentElement]):new oo([[e]],CB)}function H2e(e){let t;for(;t=e.sourceEvent;)e=t;return e}function SB(e,t){if(e=H2e(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 Dn(e){return typeof e=="string"?new oo([document.querySelectorAll(e)],[document.documentElement]):new oo([p7(e)],CB)}const kB={capture:!0,passive:!1};function MB(e){e.preventDefault(),e.stopImmediatePropagation()}function Y2e(e){var t=e.document.documentElement,n=zt(e).on("dragstart.drag",MB,kB);"onselectstart"in t?n.on("selectstart.drag",MB,kB):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function R2e(e,t){var n=e.document.documentElement,r=zt(e).on("dragstart.drag",null);t&&(r.on("click.drag",MB,kB),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 Dh(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function og(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function CA(){}var Zd=.7,Uh=1/Zd,Ph="\\s*([+-]?\\d+)\\s*",sg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",cu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Q2e=/^#([0-9a-f]{3,8})$/,j2e=new RegExp(`^rgb\\(${Ph},${Ph},${Ph}\\)$`),V2e=new RegExp(`^rgb\\(${cu},${cu},${cu}\\)$`),z2e=new RegExp(`^rgba\\(${Ph},${Ph},${Ph},${sg}\\)$`),q2e=new RegExp(`^rgba\\(${cu},${cu},${cu},${sg}\\)$`),K2e=new RegExp(`^hsl\\(${sg},${cu},${cu}\\)$`),G2e=new RegExp(`^hsla\\(${sg},${cu},${cu},${sg}\\)$`),S7={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};Dh(CA,$d,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:k7,formatHex:k7,formatHex8:W2e,formatHsl:X2e,formatRgb:M7,toString:M7});function k7(){return this.rgb().formatHex()}function W2e(){return this.rgb().formatHex8()}function X2e(){return F7(this).formatHsl()}function M7(){return this.rgb().formatRgb()}function $d(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Q2e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?E7(t):n===3?new oa(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ay(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ay(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=j2e.exec(e))?new oa(t[1],t[2],t[3],1):(t=V2e.exec(e))?new oa(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=z2e.exec(e))?ay(t[1],t[2],t[3],t[4]):(t=q2e.exec(e))?ay(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=K2e.exec(e))?N7(t[1],t[2]/100,t[3]/100,1):(t=G2e.exec(e))?N7(t[1],t[2]/100,t[3]/100,t[4]):S7.hasOwnProperty(e)?E7(S7[e]):e==="transparent"?new oa(NaN,NaN,NaN,0):null}function E7(e){return new oa(e>>16&255,e>>8&255,e&255,1)}function ay(e,t,n,r){return r<=0&&(e=t=n=NaN),new oa(e,t,n,r)}function EB(e){return e instanceof CA||(e=$d(e)),e?(e=e.rgb(),new oa(e.r,e.g,e.b,e.opacity)):new oa}function SA(e,t,n,r){return arguments.length===1?EB(e):new oa(e,t,n,r??1)}function oa(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Dh(oa,SA,og(CA,{brighter(e){return e=e==null?Uh:Math.pow(Uh,e),new oa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Zd:Math.pow(Zd,e),new oa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new oa(ef(this.r),ef(this.g),ef(this.b),oy(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:L7,formatHex:L7,formatHex8:J2e,formatRgb:T7,toString:T7}));function L7(){return`#${tf(this.r)}${tf(this.g)}${tf(this.b)}`}function J2e(){return`#${tf(this.r)}${tf(this.g)}${tf(this.b)}${tf((isNaN(this.opacity)?1:this.opacity)*255)}`}function T7(){const e=oy(this.opacity);return`${e===1?"rgb(":"rgba("}${ef(this.r)}, ${ef(this.g)}, ${ef(this.b)}${e===1?")":`, ${e})`}`}function oy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ef(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tf(e){return e=ef(e),(e<16?"0":"")+e.toString(16)}function N7(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new dl(e,t,n,r)}function F7(e){if(e instanceof dl)return new dl(e.h,e.s,e.l,e.opacity);if(e instanceof CA||(e=$d(e)),!e)return new dl;if(e instanceof dl)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 dl(o,s,u,e.opacity)}function LB(e,t,n,r){return arguments.length===1?F7(e):new dl(e,t,n,r??1)}function dl(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Dh(dl,LB,og(CA,{brighter(e){return e=e==null?Uh:Math.pow(Uh,e),new dl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Zd:Math.pow(Zd,e),new dl(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 oa(TB(e>=240?e-240:e+120,i,r),TB(e,i,r),TB(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new dl(O7(this.h),sy(this.s),sy(this.l),oy(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=oy(this.opacity);return`${e===1?"hsl(":"hsla("}${O7(this.h)}, ${sy(this.s)*100}%, ${sy(this.l)*100}%${e===1?")":`, ${e})`}`}}));function O7(e){return e=(e||0)%360,e<0?e+360:e}function sy(e){return Math.max(0,Math.min(1,e||0))}function TB(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 I7=Math.PI/180,D7=180/Math.PI,ly=18,U7=.96422,P7=1,H7=.82521,Y7=4/29,Hh=6/29,R7=3*Hh*Hh,Z2e=Hh*Hh*Hh;function Q7(e){if(e instanceof Au)return new Au(e.l,e.a,e.b,e.opacity);if(e instanceof fc)return j7(e);e instanceof oa||(e=EB(e));var t=DB(e.r),n=DB(e.g),r=DB(e.b),i=FB((.2225045*t+.7168786*n+.0606169*r)/P7),a,o;return t===n&&n===r?a=o=i:(a=FB((.4360747*t+.3850649*n+.1430804*r)/U7),o=FB((.0139322*t+.0971045*n+.7141733*r)/H7)),new Au(116*i-16,500*(a-i),200*(i-o),e.opacity)}function NB(e,t,n,r){return arguments.length===1?Q7(e):new Au(e,t,n,r??1)}function Au(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Dh(Au,NB,og(CA,{brighter(e){return new Au(this.l+ly*(e??1),this.a,this.b,this.opacity)},darker(e){return new Au(this.l-ly*(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=U7*OB(t),e=P7*OB(e),n=H7*OB(n),new oa(IB(3.1338561*t-1.6168667*e-.4906146*n),IB(-.9787684*t+1.9161415*e+.033454*n),IB(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function FB(e){return e>Z2e?Math.pow(e,1/3):e/R7+Y7}function OB(e){return e>Hh?e*e*e:R7*(e-Y7)}function IB(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function DB(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function $2e(e){if(e instanceof fc)return new fc(e.h,e.c,e.l,e.opacity);if(e instanceof Au||(e=Q7(e)),e.a===0&&e.b===0)return new fc(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*D7;return new fc(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function UB(e,t,n,r){return arguments.length===1?$2e(e):new fc(e,t,n,r??1)}function fc(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function j7(e){if(isNaN(e.h))return new Au(e.l,0,0,e.opacity);var t=e.h*I7;return new Au(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Dh(fc,UB,og(CA,{brighter(e){return new fc(this.h,this.c,this.l+ly*(e??1),this.opacity)},darker(e){return new fc(this.h,this.c,this.l-ly*(e??1),this.opacity)},rgb(){return j7(this).rgb()}}));var V7=-.14861,PB=1.78277,HB=-.29227,uy=-.90649,lg=1.97294,z7=lg*uy,q7=lg*PB,K7=PB*HB-uy*V7;function ewe(e){if(e instanceof nf)return new nf(e.h,e.s,e.l,e.opacity);e instanceof oa||(e=EB(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(K7*r+z7*t-q7*n)/(K7+z7-q7),a=r-i,o=(lg*(n-i)-HB*a)/uy,s=Math.sqrt(o*o+a*a)/(lg*i*(1-i)),u=s?Math.atan2(o,a)*D7-120:NaN;return new nf(u<0?u+360:u,s,i,e.opacity)}function du(e,t,n,r){return arguments.length===1?ewe(e):new nf(e,t,n,r??1)}function nf(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Dh(nf,du,og(CA,{brighter(e){return e=e==null?Uh:Math.pow(Uh,e),new nf(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Zd:Math.pow(Zd,e),new nf(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*I7,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new oa(255*(t+n*(V7*r+PB*i)),255*(t+n*(HB*r+uy*i)),255*(t+n*(lg*r)),this.opacity)}}));function twe(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 nwe(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 twe((n-r/t)*t,o,i,a,s)}}const cy=e=>()=>e;function G7(e,t){return function(n){return e+n*t}}function rwe(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 YB(e,t){var n=t-e;return n?G7(e,n>180||n<-180?n-360*Math.round(n/360):n):cy(isNaN(e)?t:e)}function iwe(e){return(e=+e)==1?Ua:function(t,n){return n-t?rwe(t,n,e):cy(isNaN(t)?n:t)}}function Ua(e,t){var n=t-e;return n?G7(e,n):cy(isNaN(e)?t:e)}const rf=function e(t){var n=iwe(t);function r(i,a){var o=n((i=SA(i)).r,(a=SA(a)).r),s=n(i.g,a.g),u=n(i.b,a.b),c=Ua(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 awe(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=SA(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 owe=awe(nwe);function swe(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 uwe(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]=fu(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 cwe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Pa(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Awe(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]=fu(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var RB=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,QB=new RegExp(RB.source,"g");function dwe(e){return function(){return e}}function fwe(e){return function(t){return e(t)+""}}function W7(e,t){var n=RB.lastIndex=QB.lastIndex=0,r,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(r=RB.exec(e))&&(i=QB.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:Pa(r,i)})),n=QB.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?fwe(u[0].x):dwe(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 fu(e,t){var n=typeof t,r;return t==null||n==="boolean"?cy(t):(n==="number"?Pa:n==="string"?(r=$d(t))?(t=r,rf):W7:t instanceof $d?rf:t instanceof Date?cwe:lwe(t)?swe:Array.isArray(t)?uwe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Awe:Pa)(e,t)}function Ay(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var X7=180/Math.PI,jB={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function J7(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)*X7,skewX:Math.atan(u)*X7,scaleX:o,scaleY:s}}var dy;function hwe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?jB:J7(t.a,t.b,t.c,t.d,t.e,t.f)}function pwe(e){return e==null||(dy||(dy=document.createElementNS("http://www.w3.org/2000/svg","g")),dy.setAttribute("transform",e),!(e=dy.transform.baseVal.consolidate()))?jB:(e=e.matrix,J7(e.a,e.b,e.c,e.d,e.e,e.f))}function Z7(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function a(c,A,f,h,d,p){if(c!==f||A!==h){var m=d.push("translate(",null,t,null,n);p.push({i:m-4,x:Pa(c,f)},{i:m-2,x:Pa(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:Pa(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:Pa(c,A)}):A&&f.push(i(f)+"skewX("+A+r)}function u(c,A,f,h,d,p){if(c!==f||A!==h){var m=d.push(i(d)+"scale(",null,",",null,")");p.push({i:m-4,x:Pa(c,f)},{i:m-2,x:Pa(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 p=-1,m=h.length,g;++p<m;)f[(g=h[p]).i]=g.x(d);return f.join("")}}}var mwe=Z7(hwe,"px, ","px)","deg)"),gwe=Z7(pwe,", ",")",")");function vwe(e){return function(t,n){var r=e((t=LB(t)).h,(n=LB(n)).h),i=Ua(t.s,n.s),a=Ua(t.l,n.l),o=Ua(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 ywe=vwe(YB);function _we(e,t){var n=Ua((e=NB(e)).l,(t=NB(t)).l),r=Ua(e.a,t.a),i=Ua(e.b,t.b),a=Ua(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 bwe(e){return function(t,n){var r=e((t=UB(t)).h,(n=UB(n)).h),i=Ua(t.c,n.c),a=Ua(t.l,n.l),o=Ua(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 wwe=bwe(YB);function $7(e){return function t(n){n=+n;function r(i,a){var o=e((i=du(i)).h,(a=du(a)).h),s=Ua(i.s,a.s),u=Ua(i.l,a.l),c=Ua(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)}$7(YB);var VB=$7(Ua);function fy(e,t){t===void 0&&(t=e,e=fu);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 fl(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}var Yh=0,ug=0,cg=0,eO=1e3,hy,Ag,py=0,af=0,my=0,dg=typeof performance=="object"&&performance.now?performance:Date,tO=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function zB(){return af||(tO(Bwe),af=dg.now()+my)}function Bwe(){af=0}function gy(){this._call=this._time=this._next=null}gy.prototype=nO.prototype={constructor:gy,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?zB():+n)+(t==null?0:+t),!this._next&&Ag!==this&&(Ag?Ag._next=this:hy=this,Ag=this),this._call=e,this._time=n,qB()},stop:function(){this._call&&(this._call=null,this._time=1/0,qB())}};function nO(e,t,n){var r=new gy;return r.restart(e,t,n),r}function xwe(){zB(),++Yh;for(var e=hy,t;e;)(t=af-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Yh}function rO(){af=(py=dg.now())+my,Yh=ug=0;try{xwe()}finally{Yh=0,Swe(),af=0}}function Cwe(){var e=dg.now(),t=e-py;t>eO&&(my-=t,py=e)}function Swe(){for(var e,t=hy,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:hy=n);Ag=e,qB(r)}function qB(e){if(!Yh){ug&&(ug=clearTimeout(ug));var t=e-af;t>24?(e<1/0&&(ug=setTimeout(rO,e-dg.now()-my)),cg&&(cg=clearInterval(cg))):(cg||(py=dg.now(),cg=setInterval(Cwe,eO)),Yh=1,tO(rO))}}function iO(e,t,n){var r=new gy;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var kwe=bB("start","end","cancel","interrupt"),Mwe=[],aO=0,oO=1,KB=2,vy=3,sO=4,GB=5,yy=6;function _y(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Ewe(e,n,{name:t,index:r,group:i,on:kwe,tween:Mwe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:aO})}function WB(e,t){var n=hl(e,t);if(n.state>aO)throw new Error("too late; already scheduled");return n}function hu(e,t){var n=hl(e,t);if(n.state>vy)throw new Error("too late; already running");return n}function hl(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Ewe(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=nO(a,0,n.time);function a(c){n.state=oO,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!==oO)return u();for(A in r)if(d=r[A],d.name===n.name){if(d.state===vy)return iO(o);d.state===sO?(d.state=yy,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete r[A]):+A<t&&(d.state=yy,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete r[A])}if(iO(function(){n.state===vy&&(n.state=sO,n.timer.restart(s,n.delay,n.time),s(c))}),n.state=KB,n.on.call("start",e,e.__data__,n.index,n.group),n.state===KB){for(n.state=vy,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=GB,1),f=-1,h=i.length;++f<h;)i[f].call(e,A);n.state===GB&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=yy,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function XB(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>KB&&r.state<GB,r.state=yy,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Lwe(e){return this.each(function(){XB(this,e)})}function Twe(e,t){var n,r;return function(){var i=hu(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Nwe(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=hu(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},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 Fwe(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=hl(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?Twe:Nwe)(n,e,t))}function JB(e,t,n){var r=e._id;return e.each(function(){var i=hu(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return hl(i,r).value[t]}}function lO(e,t){var n;return(typeof t=="number"?Pa:t instanceof $d?rf:(n=$d(t))?(t=n,rf):W7)(e,t)}function Owe(e){return function(){this.removeAttribute(e)}}function Iwe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Dwe(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 Uwe(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 Pwe(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 Hwe(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 Ywe(e,t){var n=ny(e),r=n==="transform"?gwe:lO;return this.attrTween(e,typeof t=="function"?(n.local?Hwe:Pwe)(n,r,JB(this,"attr."+e,t)):t==null?(n.local?Iwe:Owe)(n):(n.local?Uwe:Dwe)(n,r,t))}function Rwe(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Qwe(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function jwe(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&Qwe(e,a)),n}return i._value=t,i}function Vwe(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&Rwe(e,a)),n}return i._value=t,i}function zwe(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=ny(e);return this.tween(n,(r.local?jwe:Vwe)(r,t))}function qwe(e,t){return function(){WB(this,e).delay=+t.apply(this,arguments)}}function Kwe(e,t){return t=+t,function(){WB(this,e).delay=t}}function Gwe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?qwe:Kwe)(t,e)):hl(this.node(),t).delay}function Wwe(e,t){return function(){hu(this,e).duration=+t.apply(this,arguments)}}function Xwe(e,t){return t=+t,function(){hu(this,e).duration=t}}function Jwe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Wwe:Xwe)(t,e)):hl(this.node(),t).duration}function Zwe(e,t){if(typeof t!="function")throw new Error;return function(){hu(this,e).ease=t}}function $we(e){var t=this._id;return arguments.length?this.each(Zwe(t,e)):hl(this.node(),t).ease}function e5e(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;hu(this,e).ease=n}}function t5e(e){if(typeof e!="function")throw new Error;return this.each(e5e(this._id,e))}function n5e(e){typeof e!="function"&&(e=g7(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 hc(r,this._parents,this._name,this._id)}function r5e(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 hc(o,this._parents,this._name,this._id)}function i5e(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 a5e(e,t,n){var r,i,a=i5e(t)?WB:hu;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function o5e(e,t){var n=this._id;return arguments.length<2?hl(this.node(),n).on.on(e):this.each(a5e(n,e,t))}function s5e(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",s5e(this._id))}function u5e(e){var t=this._name,n=this._id;typeof e!="function"&&(e=BB(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,_y(c[h],t,n,h,c,hl(A,n)));return new hc(a,this._parents,t,n)}function c5e(e){var t=this._name,n=this._id;typeof e!="function"&&(e=m7(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,p=hl(A,n),m=0,g=h.length;m<g;++m)(d=h[m])&&_y(d,t,n,m,h,p);a.push(h),o.push(A)}return new hc(a,o,t,n)}var A5e=ag.prototype.constructor;function d5e(){return new A5e(this._groups,this._parents)}function f5e(e,t){var n,r,i;return function(){var a=Ih(this,e),o=(this.style.removeProperty(e),Ih(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function uO(e){return function(){this.style.removeProperty(e)}}function h5e(e,t,n){var r,i=n+"",a;return function(){var o=Ih(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function p5e(e,t,n){var r,i,a;return function(){var o=Ih(this,e),s=n(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),Ih(this,e))),o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s))}}function m5e(e,t){var n,r,i,a="style."+t,o="end."+a,s;return function(){var u=hu(this,e),c=u.on,A=u.value[a]==null?s||(s=uO(t)):void 0;(c!==n||i!==A)&&(r=(n=c).copy()).on(o,i=A),u.on=r}}function g5e(e,t,n){var r=(e+="")=="transform"?mwe:lO;return t==null?this.styleTween(e,f5e(e,r)).on("end.style."+e,uO(e)):typeof t=="function"?this.styleTween(e,p5e(e,r,JB(this,"style."+e,t))).each(m5e(this._id,e)):this.styleTween(e,h5e(e,r,t),n).on("end.style."+e,null)}function v5e(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function y5e(e,t,n){var r,i;function a(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&v5e(e,o,n)),r}return a._value=t,a}function _5e(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,y5e(e,t,n??""))}function b5e(e){return function(){this.textContent=e}}function w5e(e){return function(){var t=e(this);this.textContent=t??""}}function B5e(e){return this.tween("text",typeof e=="function"?w5e(JB(this,"text",e)):b5e(e==null?"":e+""))}function x5e(e){return function(t){this.textContent=e.call(this,t)}}function C5e(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&x5e(i)),t}return r._value=e,r}function S5e(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,C5e(e))}function k5e(){for(var e=this._name,t=this._id,n=cO(),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=hl(u,t);_y(u,e,n,c,o,{time:A.time+A.delay+A.duration,delay:0,duration:A.duration,ease:A.ease})}return new hc(r,this._parents,e,n)}function M5e(){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=hu(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 E5e=0;function hc(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function cO(){return++E5e}var pc=ag.prototype;hc.prototype={constructor:hc,select:u5e,selectAll:c5e,selectChild:pc.selectChild,selectChildren:pc.selectChildren,filter:n5e,merge:r5e,selection:d5e,transition:k5e,call:pc.call,nodes:pc.nodes,node:pc.node,size:pc.size,empty:pc.empty,each:pc.each,on:o5e,attr:Ywe,attrTween:zwe,style:g5e,styleTween:_5e,text:B5e,textTween:S5e,remove:l5e,tween:Fwe,delay:Gwe,duration:Jwe,ease:$we,easeVarying:t5e,end:M5e,[Symbol.iterator]:pc[Symbol.iterator]};const L5e=e=>+e;function T5e(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var N5e={time:null,delay:0,duration:250,ease:T5e};function F5e(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 O5e(e){var t,n;e instanceof hc?(t=e._id,e=e._name):(t=cO(),(n=N5e).time=zB(),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])&&_y(u,e,t,c,o,n||F5e(u,t));return new hc(r,this._parents,e,t)}ag.prototype.interrupt=Lwe,ag.prototype.transition=O5e;const ZB=e=>()=>e;function I5e(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 D5e(e){e.stopImmediatePropagation()}function $B(e){e.preventDefault(),e.stopImmediatePropagation()}var AO={name:"drag"},ex={name:"space"},Rh={name:"handle"},Qh={name:"center"};const{abs:dO,max:Ha,min:Ya}=Math;function fO(e){return[+e[0],+e[1]]}function hO(e){return[fO(e[0]),fO(e[1])]}var by={name:"x",handles:["w","e"].map(nx),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]]}},tx={},mc={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"},pO={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},mO={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},U5e={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},P5e={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function nx(e){return{type:e}}function H5e(e){return!e.ctrlKey&&!e.button}function Y5e(){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 R5e(){return navigator.maxTouchPoints||"ontouchstart"in this}function rx(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function Q5e(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function j5e(){return V5e(by)}function V5e(e){var t=Y5e,n=H5e,r=R5e,i=!0,a=bB("start","brush","end"),o=6,s;function u(g){var y=g.property("__brush",m).selectAll(".overlay").data([nx("overlay")]);y.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",mc.overlay).merge(y).each(function(){var _=rx(this).extent;zt(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([nx("selection")]).enter().append("rect").attr("class","selection").attr("cursor",mc.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var v=g.selectAll(".handle").data(e.handles,function(_){return _.type});v.exit().remove(),v.enter().append("rect").attr("class",function(_){return"handle handle--"+_.type}).attr("cursor",function(_){return mc[_.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",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}u.move=function(g,y,v){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),M=b.selection,x=e.input(typeof y=="function"?y.apply(this,arguments):y,b.extent),L=fu(M,x);function N(H){b.selection=H===1&&x===null?null:L(H),c.call(_),w.brush()}return M!==null&&x!==null?N:N(1)}):g.each(function(){var _=this,b=arguments,w=_.__brush,M=e.input(typeof y=="function"?y.apply(_,b):y,w.extent),x=A(_,b).beforestart();XB(_),w.selection=M===null?null:M,c.call(_),x.start(v).brush(v).end(v)})},u.clear=function(g,y){u.move(g,null,y)};function c(){var g=zt(this),y=rx(this).selection;y?(g.selectAll(".selection").style("display",null).attr("x",y[0][0]).attr("y",y[0][1]).attr("width",y[1][0]-y[0][0]).attr("height",y[1][1]-y[0][1]),g.selectAll(".handle").style("display",null).attr("x",function(v){return v.type[v.type.length-1]==="e"?y[1][0]-o/2:y[0][0]-o/2}).attr("y",function(v){return v.type[0]==="s"?y[1][1]-o/2:y[0][1]-o/2}).attr("width",function(v){return v.type==="n"||v.type==="s"?y[1][0]-y[0][0]+o:o}).attr("height",function(v){return v.type==="e"||v.type==="w"?y[1][1]-y[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,y,v){var _=g.__brush.emitter;return _&&(!v||!_.clean)?_:new f(g,y,v)}function f(g,y,v){this.that=g,this.args=y,this.state=g.__brush,this.active=0,this.clean=v}f.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(g,y){return this.starting?(this.starting=!1,this.emit("start",g,y)):this.emit("brush",g),this},brush:function(g,y){return this.emit("brush",g,y),this},end:function(g,y){return--this.active===0&&(delete this.state.emitter,this.emit("end",g,y)),this},emit:function(g,y,v){var _=zt(this.that).datum();a.call(g,this.that,new I5e(g,{sourceEvent:y,target:u,selection:e.output(this.state.selection),mode:v,dispatch:a}),_)}};function h(g){if(s&&!g.touches||!n.apply(this,arguments))return;var y=this,v=g.target.__data__.type,_=(i&&g.metaKey?v="overlay":v)==="selection"?AO:i&&g.altKey?Qh:Rh,b=e===tx?null:U5e[v],w=e===by?null:P5e[v],M=rx(y),x=M.extent,L=M.selection,N=x[0][0],H,S,F=x[0][1],I,E,P=x[1][0],K,q,z=x[1][1],J,re,X=0,D=0,W,ee=b&&w&&i&&g.shiftKey,te,pe,me=Array.from(g.touches||[g],Z=>{const $=Z.identifier;return Z=SB(Z,y),Z.point0=Z.slice(),Z.identifier=$,Z});XB(y);var ve=A(y,arguments,!0).beforestart();if(v==="overlay"){L&&(W=!0);const Z=[me[0],me[1]||me[0]];M.selection=L=[[H=e===tx?N:Ya(Z[0][0],Z[1][0]),I=e===by?F:Ya(Z[0][1],Z[1][1])],[K=e===tx?P:Ha(Z[0][0],Z[1][0]),J=e===by?z:Ha(Z[0][1],Z[1][1])]],me.length>1&&Pe(g)}else H=L[0][0],I=L[0][1],K=L[1][0],J=L[1][1];S=H,E=I,q=K,re=J;var le=zt(y).attr("pointer-events","none"),_e=le.selectAll(".overlay").attr("cursor",mc[v]);if(g.touches)ve.moved=ke,ve.ended=Y;else{var Le=zt(g.view).on("mousemove.brush",ke,!0).on("mouseup.brush",Y,!0);i&&Le.on("keydown.brush",ie,!0).on("keyup.brush",de,!0),Y2e(g.view)}c.call(y),ve.start(g,_.name);function ke(Z){for(const $ of Z.changedTouches||[Z])for(const ae of me)ae.identifier===$.identifier&&(ae.cur=SB($,y));if(ee&&!te&&!pe&&me.length===1){const $=me[0];dO($.cur[0]-$[0])>dO($.cur[1]-$[1])?pe=!0:te=!0}for(const $ of me)$.cur&&($[0]=$.cur[0],$[1]=$.cur[1]);W=!0,$B(Z),Pe(Z)}function Pe(Z){const $=me[0],ae=$.point0;var we;switch(X=$[0]-ae[0],D=$[1]-ae[1],_){case ex:case AO:{b&&(X=Ha(N-H,Ya(P-K,X)),S=H+X,q=K+X),w&&(D=Ha(F-I,Ya(z-J,D)),E=I+D,re=J+D);break}case Rh:{me[1]?(b&&(S=Ha(N,Ya(P,me[0][0])),q=Ha(N,Ya(P,me[1][0])),b=1),w&&(E=Ha(F,Ya(z,me[0][1])),re=Ha(F,Ya(z,me[1][1])),w=1)):(b<0?(X=Ha(N-H,Ya(P-H,X)),S=H+X,q=K):b>0&&(X=Ha(N-K,Ya(P-K,X)),S=H,q=K+X),w<0?(D=Ha(F-I,Ya(z-I,D)),E=I+D,re=J):w>0&&(D=Ha(F-J,Ya(z-J,D)),E=I,re=J+D));break}case Qh:{b&&(S=Ha(N,Ya(P,H-X*b)),q=Ha(N,Ya(P,K+X*b))),w&&(E=Ha(F,Ya(z,I-D*w)),re=Ha(F,Ya(z,J+D*w)));break}}q<S&&(b*=-1,we=H,H=K,K=we,we=S,S=q,q=we,v in pO&&_e.attr("cursor",mc[v=pO[v]])),re<E&&(w*=-1,we=I,I=J,J=we,we=E,E=re,re=we,v in mO&&_e.attr("cursor",mc[v=mO[v]])),M.selection&&(L=M.selection),te&&(S=L[0][0],q=L[1][0]),pe&&(E=L[0][1],re=L[1][1]),(L[0][0]!==S||L[0][1]!==E||L[1][0]!==q||L[1][1]!==re)&&(M.selection=[[S,E],[q,re]],c.call(y),ve.brush(Z,_.name))}function Y(Z){if(D5e(Z),Z.touches){if(Z.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500)}else R2e(Z.view,W),Le.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);le.attr("pointer-events","all"),_e.attr("cursor",mc.overlay),M.selection&&(L=M.selection),Q5e(L)&&(M.selection=null,c.call(y)),ve.end(Z,_.name)}function ie(Z){switch(Z.keyCode){case 16:{ee=b&&w;break}case 18:{_===Rh&&(b&&(K=q-X*b,H=S+X*b),w&&(J=re-D*w,I=E+D*w),_=Qh,Pe(Z));break}case 32:{(_===Rh||_===Qh)&&(b<0?K=q-X:b>0&&(H=S-X),w<0?J=re-D:w>0&&(I=E-D),_=ex,_e.attr("cursor",mc.selection),Pe(Z));break}default:return}$B(Z)}function de(Z){switch(Z.keyCode){case 16:{ee&&(te=pe=ee=!1,Pe(Z));break}case 18:{_===Qh&&(b<0?K=q:b>0&&(H=S),w<0?J=re:w>0&&(I=E),_=Rh,Pe(Z));break}case 32:{_===ex&&(Z.altKey?(b&&(K=q-X*b,H=S+X*b),w&&(J=re-D*w,I=E+D*w),_=Qh):(b<0?K=q:b>0&&(H=S),w<0?J=re:w>0&&(I=E),_=Rh),_e.attr("cursor",mc[v]),Pe(Z));break}default:return}$B(Z)}}function d(g){A(this,arguments).moved(g)}function p(g){A(this,arguments).ended(g)}function m(){var g=this.__brush||{selection:null};return g.extent=hO(t.apply(this,arguments)),g.dim=e,g}return u.extent=function(g){return arguments.length?(t=typeof g=="function"?g:ZB(hO(g)),u):t},u.filter=function(g){return arguments.length?(n=typeof g=="function"?g:ZB(!!g),u):n},u.touchable=function(g){return arguments.length?(r=typeof g=="function"?g:ZB(!!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 ix=Math.PI,ax=2*ix,of=1e-6,z5e=ax-of;function gO(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function q5e(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return gO;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 vO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?gO:q5e(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>of)if(!(Math.abs(f*u-c*A)>of)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let d=r-o,p=i-s,m=u*u+c*c,g=d*d+p*p,y=Math.sqrt(m),v=Math.sqrt(h),_=a*Math.tan((ix-Math.acos((m+h-g)/(2*y*v)))/2),b=_/v,w=_/y;Math.abs(b-1)>of&&this._append`L${t+b*A},${n+b*f}`,this._append`A${a},${a},0,0,${+(f*d>A*p)},${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)>of||Math.abs(this._y1-A)>of)&&this._append`L${c},${A}`,r&&(h<0&&(h=h%ax+ax),h>z5e?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>of&&this._append`A${r},${r},0,${+(h>=ix)},${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 sf(e=3){return new vO(+e)}function K5e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function wy(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 jh(e){return e=wy(Math.abs(e)),e?e[1]:NaN}function G5e(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 W5e(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var X5e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function fg(e){if(!(t=X5e.exec(e)))throw new Error("invalid format: "+e);var t;return new ox({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]})}fg.prototype=ox.prototype;function ox(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+""}ox.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 J5e(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 yO;function Z5e(e,t){var n=wy(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(yO=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")+wy(e,Math.max(0,t+a-1))[0]}function _O(e,t){var n=wy(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 bO={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:K5e,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)=>_O(e*100,t),r:_O,s:Z5e,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function wO(e){return e}var BO=Array.prototype.map,xO=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function $5e(e){var t=e.grouping===void 0||e.thousands===void 0?wO:G5e(BO.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?wO:W5e(BO.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=fg(f);var h=f.fill,d=f.align,p=f.sign,m=f.symbol,g=f.zero,y=f.width,v=f.comma,_=f.precision,b=f.trim,w=f.type;w==="n"?(v=!0,w="g"):bO[w]||(_===void 0&&(_=12),b=!0,w="g"),(g||h==="0"&&d==="=")&&(g=!0,h="0",d="=");var M=m==="$"?n:m==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",x=m==="$"?r:/[%p]/.test(w)?o:"",L=bO[w],N=/[defgprs%]/.test(w);_=_===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function H(S){var F=M,I=x,E,P,K;if(w==="c")I=L(S)+I,S="";else{S=+S;var q=S<0||1/S<0;if(S=isNaN(S)?u:L(Math.abs(S),_),b&&(S=J5e(S)),q&&+S==0&&p!=="+"&&(q=!1),F=(q?p==="("?p:s:p==="-"||p==="("?"":p)+F,I=(w==="s"?xO[8+yO/3]:"")+I+(q&&p==="("?")":""),N){for(E=-1,P=S.length;++E<P;)if(K=S.charCodeAt(E),48>K||K>57){I=(K===46?i+S.slice(E+1):S.slice(E))+I,S=S.slice(0,E);break}}}v&&!g&&(S=t(S,1/0));var z=F.length+S.length+I.length,J=z<y?new Array(y-z+1).join(h):"";switch(v&&g&&(S=t(J+S,J.length?y-I.length:1/0),J=""),d){case"<":S=F+S+I+J;break;case"=":S=F+J+S+I;break;case"^":S=J.slice(0,z=J.length>>1)+F+S+I+J.slice(z);break;default:S=J+F+S+I;break}return a(S)}return H.toString=function(){return f+""},H}function A(f,h){var d=c((f=fg(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(jh(h)/3)))*3,m=Math.pow(10,-p),g=xO[8+p/3];return function(y){return d(m*y)+g}}return{format:c,formatPrefix:A}}var By,pu,CO;eBe({thousands:",",grouping:[3],currency:["$",""]});function eBe(e){return By=$5e(e),pu=By.format,CO=By.formatPrefix,By}function tBe(e){return Math.max(0,-jh(Math.abs(e)))}function nBe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(jh(t)/3)))*3-jh(Math.abs(e)))}function rBe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,jh(t)-jh(e))+1}var Nn=1e-6,SO=1e-12,Hn=Math.PI,di=Hn/2,kO=Hn/4,Xo=Hn*2,so=180/Hn,fi=Hn/180,yr=Math.abs,Vh=Math.atan,gc=Math.atan2,Un=Math.cos,MO=Math.exp,xy=Math.log,sx=Math.pow,Sn=Math.sin,xs=Math.sign||function(e){return e>0?1:e<0?-1:0},Mo=Math.sqrt,lx=Math.tan;function EO(e){return e>1?0:e<-1?Hn:Math.acos(e)}function Cs(e){return e>1?di:e<-1?-di:Math.asin(e)}function Ss(){}function Cy(e,t){e&&TO.hasOwnProperty(e.type)&&TO[e.type](e,t)}var LO={Feature:function(e,t){Cy(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)Cy(n[r].geometry,t)}},TO={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){ux(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)ux(n[r],t,0)},Polygon:function(e,t){NO(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)NO(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)Cy(n[r],t)}};function ux(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 NO(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)ux(e[n],t,1);t.polygonEnd()}function lf(e,t){e&&LO.hasOwnProperty(e.type)?LO[e.type](e,t):Cy(e,t)}function cx(e){return[gc(e[1],e[0]),Cs(e[2])]}function zh(e){var t=e[0],n=e[1],r=Un(n);return[r*Un(t),r*Sn(t),Sn(n)]}function Sy(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function ky(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 Ax(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function My(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function dx(e){var t=Mo(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function fx(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 hx(e,t){return yr(e)>Hn&&(e-=Math.round(e/Xo)*Xo),[e,t]}hx.invert=hx;function FO(e,t,n){return(e%=Xo)?t||n?fx(IO(e),DO(t,n)):IO(e):t||n?DO(t,n):hx}function OO(e){return function(t,n){return t+=e,yr(t)>Hn&&(t-=Math.round(t/Xo)*Xo),[t,n]}}function IO(e){var t=OO(e);return t.invert=OO(-e),t}function DO(e,t){var n=Un(e),r=Sn(e),i=Un(t),a=Sn(t);function o(s,u){var c=Un(u),A=Un(s)*c,f=Sn(s)*c,h=Sn(u),d=h*n+A*r;return[gc(f*i-d*a,A*n-h*r),Cs(d*i+f*a)]}return o.invert=function(s,u){var c=Un(u),A=Un(s)*c,f=Sn(s)*c,h=Sn(u),d=h*i-f*a;return[gc(f*i+h*a,A*n+d*r),Cs(d*n-A*r)]},o}function iBe(e){e=FO(e[0]*fi,e[1]*fi,e.length>2?e[2]*fi:0);function t(n){return n=e(n[0]*fi,n[1]*fi),n[0]*=so,n[1]*=so,n}return t.invert=function(n){return n=e.invert(n[0]*fi,n[1]*fi),n[0]*=so,n[1]*=so,n},t}function aBe(e,t,n,r,i,a){if(n){var o=Un(t),s=Sn(t),u=r*n;i==null?(i=t+r*Xo,a=t-u/2):(i=UO(o,i),a=UO(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=cx([o,-s*Un(A),-s*Sn(A)]),e.point(c[0],c[1])}}function UO(e,t){t=zh(t),t[0]-=e,dx(t);var n=EO(-t[1]);return((-t[2]<0?-n:n)+Xo-Nn)%Xo}function PO(){var e=[],t;return{point:function(n,r,i){t.push([n,r,i])},lineStart:function(){e.push(t=[])},lineEnd:Ss,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Ey(e,t){return yr(e[0]-t[0])<Nn&&yr(e[1]-t[1])<Nn}function Ly(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 HO(e,t,n,r,i){var a=[],o=[],s,u;if(e.forEach(function(p){if(!((m=p.length-1)<=0)){var m,g=p[0],y=p[m],v;if(Ey(g,y)){if(!g[2]&&!y[2]){for(i.lineStart(),s=0;s<m;++s)i.point((g=p[s])[0],g[1]);i.lineEnd();return}y[0]+=2*Nn}a.push(v=new Ly(g,p,null,!0)),o.push(v.o=new Ly(g,null,v,!1)),a.push(v=new Ly(y,p,null,!1)),o.push(v.o=new Ly(y,null,v,!0))}}),!!a.length){for(o.sort(t),YO(a),YO(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 YO(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 px(e){return yr(e[0])<=Hn?e[0]:xs(e[0])*((yr(e[0])+Hn)%Xo-Hn)}function oBe(e,t){var n=px(t),r=t[1],i=Sn(r),a=[Sn(n),-Un(n),0],o=0,s=0,u=new Wd;i===1?r=di+Nn:i===-1&&(r=-di-Nn);for(var c=0,A=e.length;c<A;++c)if(h=(f=e[c]).length)for(var f,h,d=f[h-1],p=px(d),m=d[1]/2+kO,g=Sn(m),y=Un(m),v=0;v<h;++v,p=b,g=M,y=x,d=_){var _=f[v],b=px(_),w=_[1]/2+kO,M=Sn(w),x=Un(w),L=b-p,N=L>=0?1:-1,H=N*L,S=H>Hn,F=g*M;if(u.add(gc(F*N*Sn(H),y*x+F*Un(H))),o+=S?L+N*Xo:L,S^p>=n^b>=n){var I=ky(zh(d),zh(_));dx(I);var E=ky(a,I);dx(E);var P=(S^L>=0?-1:1)*Cs(E[2]);(r>P||r===P&&(I[0]||I[1]))&&(s+=S^L>=0?1:-1)}}return(o<-Nn||o<Nn&&u<-SO)^s&1}function RO(e,t,n,r){return function(i){var a=t(i),o=PO(),s=t(o),u=!1,c,A,f,h={point:d,lineStart:m,lineEnd:g,polygonStart:function(){h.point=y,h.lineStart=v,h.lineEnd=_,A=[],c=[]},polygonEnd:function(){h.point=d,h.lineStart=m,h.lineEnd=g,A=A7(A);var b=oBe(c,r);A.length?(u||(i.polygonStart(),u=!0),HO(A,lBe,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 p(b,w){a.point(b,w)}function m(){h.point=p,a.lineStart()}function g(){h.point=d,a.lineEnd()}function y(b,w){f.push([b,w]),s.point(b,w)}function v(){s.lineStart(),f=[]}function _(){y(f[0][0],f[0][1]),s.lineEnd();var b=s.clean(),w=o.result(),M,x=w.length,L,N,H;if(f.pop(),c.push(f),f=null,!!x){if(b&1){if(N=w[0],(L=N.length-1)>0){for(u||(i.polygonStart(),u=!0),i.lineStart(),M=0;M<L;++M)i.point((H=N[M])[0],H[1]);i.lineEnd()}return}x>1&&b&2&&w.push(w.pop().concat(w.shift())),A.push(w.filter(sBe))}}return h}}function sBe(e){return e.length>1}function lBe(e,t){return((e=e.x)[0]<0?e[1]-di-Nn:di-e[1])-((t=t.x)[0]<0?t[1]-di-Nn:di-t[1])}const QO=RO(function(){return!0},uBe,ABe,[-Hn,-di]);function uBe(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(a,o){var s=a>0?Hn:-Hn,u=yr(a-t);yr(u-Hn)<Nn?(e.point(t,n=(n+o)/2>0?di:-di),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),e.point(a,n),i=0):r!==s&&u>=Hn&&(yr(t-r)<Nn&&(t-=r*Nn),yr(a-s)<Nn&&(a-=s*Nn),n=cBe(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 cBe(e,t,n,r){var i,a,o=Sn(e-n);return yr(o)>Nn?Vh((Sn(t)*(a=Un(r))*Sn(n)-Sn(r)*(i=Un(t))*Sn(e))/(i*a*o)):(t+r)/2}function ABe(e,t,n,r){var i;if(e==null)i=n*di,r.point(-Hn,i),r.point(0,i),r.point(Hn,i),r.point(Hn,0),r.point(Hn,-i),r.point(0,-i),r.point(-Hn,-i),r.point(-Hn,0),r.point(-Hn,i);else if(yr(e[0]-t[0])>Nn){var a=e[0]<t[0]?Hn:-Hn;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(t[0],t[1])}function dBe(e){var t=Un(e),n=2*fi,r=t>0,i=yr(t)>Nn;function a(A,f,h,d){aBe(d,e,n,h,A,f)}function o(A,f){return Un(A)*Un(f)>t}function s(A){var f,h,d,p,m;return{lineStart:function(){p=d=!1,m=1},point:function(g,y){var v=[g,y],_,b=o(g,y),w=r?b?0:c(g,y):b?c(g+(g<0?Hn:-Hn),y):0;if(!f&&(p=d=b)&&A.lineStart(),b!==d&&(_=u(f,v),(!_||Ey(f,_)||Ey(v,_))&&(v[2]=1)),b!==d)m=0,b?(A.lineStart(),_=u(v,f),A.point(_[0],_[1])):(_=u(f,v),A.point(_[0],_[1],2),A.lineEnd()),f=_;else if(i&&f&&r^b){var M;!(w&h)&&(M=u(v,f,!0))&&(m=0,r?(A.lineStart(),A.point(M[0][0],M[0][1]),A.point(M[1][0],M[1][1]),A.lineEnd()):(A.point(M[1][0],M[1][1]),A.lineEnd(),A.lineStart(),A.point(M[0][0],M[0][1],3)))}b&&(!f||!Ey(f,v))&&A.point(v[0],v[1]),f=v,d=b,h=w},lineEnd:function(){d&&A.lineEnd(),f=null},clean:function(){return m|(p&&d)<<1}}}function u(A,f,h){var d=zh(A),p=zh(f),m=[1,0,0],g=ky(d,p),y=Sy(g,g),v=g[0],_=y-v*v;if(!_)return!h&&A;var b=t*y/_,w=-t*v/_,M=ky(m,g),x=My(m,b),L=My(g,w);Ax(x,L);var N=M,H=Sy(x,N),S=Sy(N,N),F=H*H-S*(Sy(x,x)-1);if(!(F<0)){var I=Mo(F),E=My(N,(-H-I)/S);if(Ax(E,x),E=cx(E),!h)return E;var P=A[0],K=f[0],q=A[1],z=f[1],J;K<P&&(J=P,P=K,K=J);var re=K-P,X=yr(re-Hn)<Nn,D=X||re<Nn;if(!X&&z<q&&(J=q,q=z,z=J),D?X?q+z>0^E[1]<(yr(E[0]-P)<Nn?q:z):q<=E[1]&&E[1]<=z:re>Hn^(P<=E[0]&&E[0]<=K)){var W=My(N,(-H+I)/S);return Ax(W,x),[E,cx(W)]}}}function c(A,f){var h=r?e:Hn-e,d=0;return A<-h?d|=1:A>h&&(d|=2),f<-h?d|=4:f>h&&(d|=8),d}return RO(o,s,a,r?[0,-e]:[-Hn,e-Hn])}function fBe(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,p;if(p=n-o,!(!h&&p>0)){if(p/=h,h<0){if(p<A)return;p<f&&(f=p)}else if(h>0){if(p>f)return;p>A&&(A=p)}if(p=i-o,!(!h&&p<0)){if(p/=h,h<0){if(p>f)return;p>A&&(A=p)}else if(h>0){if(p<A)return;p<f&&(f=p)}if(p=r-s,!(!d&&p>0)){if(p/=d,d<0){if(p<A)return;p<f&&(f=p)}else if(d>0){if(p>f)return;p>A&&(A=p)}if(p=a-s,!(!d&&p<0)){if(p/=d,d<0){if(p>f)return;p>A&&(A=p)}else if(d>0){if(p<A)return;p<f&&(f=p)}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 hg=1e9,Ty=-hg;function jO(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,p=0;if(c==null||(d=o(c,f))!==(p=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)!==p);else h.point(A[0],A[1])}function o(c,A){return yr(c[0]-e)<Nn?A>0?0:3:yr(c[0]-n)<Nn?A>0?2:1:yr(c[1]-t)<Nn?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=PO(),h,d,p,m,g,y,v,_,b,w,M,x={point:L,lineStart:F,lineEnd:I,polygonStart:H,polygonEnd:S};function L(P,K){i(P,K)&&A.point(P,K)}function N(){for(var P=0,K=0,q=d.length;K<q;++K)for(var z=d[K],J=1,re=z.length,X=z[0],D,W,ee=X[0],te=X[1];J<re;++J)D=ee,W=te,X=z[J],ee=X[0],te=X[1],W<=r?te>r&&(ee-D)*(r-W)>(te-W)*(e-D)&&++P:te<=r&&(ee-D)*(r-W)<(te-W)*(e-D)&&--P;return P}function H(){A=f,h=[],d=[],M=!0}function S(){var P=N(),K=M&&P,q=(h=A7(h)).length;(K||q)&&(c.polygonStart(),K&&(c.lineStart(),a(null,null,1,c),c.lineEnd()),q&&HO(h,s,P,a,c),c.polygonEnd()),A=c,h=d=p=null}function F(){x.point=E,d&&d.push(p=[]),w=!0,b=!1,v=_=NaN}function I(){h&&(E(m,g),y&&b&&f.rejoin(),h.push(f.result())),x.point=L,b&&A.lineEnd()}function E(P,K){var q=i(P,K);if(d&&p.push([P,K]),w)m=P,g=K,y=q,w=!1,q&&(A.lineStart(),A.point(P,K));else if(q&&b)A.point(P,K);else{var z=[v=Math.max(Ty,Math.min(hg,v)),_=Math.max(Ty,Math.min(hg,_))],J=[P=Math.max(Ty,Math.min(hg,P)),K=Math.max(Ty,Math.min(hg,K))];fBe(z,J,e,t,n,r)?(b||(A.lineStart(),A.point(z[0],z[1])),A.point(J[0],J[1]),q||A.lineEnd(),M=!1):q&&(A.lineStart(),A.point(P,K),M=!1)}v=P,_=K,b=q}return x}}const mx=e=>e;var gx=new Wd,vx=new Wd,VO,zO,yx,_x,vc={point:Ss,lineStart:Ss,lineEnd:Ss,polygonStart:function(){vc.lineStart=hBe,vc.lineEnd=mBe},polygonEnd:function(){vc.lineStart=vc.lineEnd=vc.point=Ss,gx.add(yr(vx)),vx=new Wd},result:function(){var e=gx/2;return gx=new Wd,e}};function hBe(){vc.point=pBe}function pBe(e,t){vc.point=qO,VO=yx=e,zO=_x=t}function qO(e,t){vx.add(_x*e-yx*t),yx=e,_x=t}function mBe(){qO(VO,zO)}var qh=1/0,Ny=qh,pg=-qh,Fy=pg,Oy={point:gBe,lineStart:Ss,lineEnd:Ss,polygonStart:Ss,polygonEnd:Ss,result:function(){var e=[[qh,Ny],[pg,Fy]];return pg=Fy=-(Ny=qh=1/0),e}};function gBe(e,t){e<qh&&(qh=e),e>pg&&(pg=e),t<Ny&&(Ny=t),t>Fy&&(Fy=t)}var bx=0,wx=0,mg=0,Iy=0,Dy=0,Kh=0,Bx=0,xx=0,gg=0,KO,GO,mu,gu,ks={point:uf,lineStart:WO,lineEnd:XO,polygonStart:function(){ks.lineStart=_Be,ks.lineEnd=bBe},polygonEnd:function(){ks.point=uf,ks.lineStart=WO,ks.lineEnd=XO},result:function(){var e=gg?[Bx/gg,xx/gg]:Kh?[Iy/Kh,Dy/Kh]:mg?[bx/mg,wx/mg]:[NaN,NaN];return bx=wx=mg=Iy=Dy=Kh=Bx=xx=gg=0,e}};function uf(e,t){bx+=e,wx+=t,++mg}function WO(){ks.point=vBe}function vBe(e,t){ks.point=yBe,uf(mu=e,gu=t)}function yBe(e,t){var n=e-mu,r=t-gu,i=Mo(n*n+r*r);Iy+=i*(mu+e)/2,Dy+=i*(gu+t)/2,Kh+=i,uf(mu=e,gu=t)}function XO(){ks.point=uf}function _Be(){ks.point=wBe}function bBe(){JO(KO,GO)}function wBe(e,t){ks.point=JO,uf(KO=mu=e,GO=gu=t)}function JO(e,t){var n=e-mu,r=t-gu,i=Mo(n*n+r*r);Iy+=i*(mu+e)/2,Dy+=i*(gu+t)/2,Kh+=i,i=gu*e-mu*t,Bx+=i*(mu+e),xx+=i*(gu+t),gg+=i*3,uf(mu=e,gu=t)}function ZO(e){this._context=e}ZO.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:Ss};var Cx=new Wd,Sx,$O,eI,vg,yg,_g={point:Ss,lineStart:function(){_g.point=BBe},lineEnd:function(){Sx&&tI($O,eI),_g.point=Ss},polygonStart:function(){Sx=!0},polygonEnd:function(){Sx=null},result:function(){var e=+Cx;return Cx=new Wd,e}};function BBe(e,t){_g.point=tI,$O=vg=e,eI=yg=t}function tI(e,t){vg-=e,yg-=t,Cx.add(Mo(vg*vg+yg*yg)),vg=e,yg=t}let nI,Uy,rI,iI;class aI{constructor(t){this._append=t==null?oI:xBe(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!==rI||this._append!==Uy){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`,rI=r,Uy=this._append,iI=this._,this._=i}this._+=iI;break}}}result(){const t=this._;return this._="",t.length?t:null}}function oI(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function xBe(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return oI;if(t!==nI){const n=10**t;nI=t,Uy=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 Uy}function kx(e,t){let n=3,r=4.5,i,a;function o(s){return s&&(typeof r=="function"&&a.pointRadius(+r.apply(this,arguments)),lf(s,i(a))),a.result()}return o.area=function(s){return lf(s,i(vc)),vc.result()},o.measure=function(s){return lf(s,i(_g)),_g.result()},o.bounds=function(s){return lf(s,i(Oy)),Oy.result()},o.centroid=function(s){return lf(s,i(ks)),ks.result()},o.projection=function(s){return arguments.length?(i=s==null?(e=null,mx):(e=s).stream,o):e},o.context=function(s){return arguments.length?(a=s==null?(t=null,new aI(n)):new ZO(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 aI(n)),o},o.projection(e).digits(n).context(t)}function Py(e){return{stream:Hy(e)}}function Hy(e){return function(t){var n=new Mx;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Mx(){}Mx.prototype={constructor:Mx,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 Ex(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),lf(n,e.stream(Oy)),t(Oy.result()),r!=null&&e.clipExtent(r),e}function Lx(e,t,n){return Ex(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 sI(e,t,n){return Lx(e,[[0,0],t],n)}function lI(e,t,n){return Ex(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 uI(e,t,n){return Ex(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 cI=16,CBe=Un(30*fi);function AI(e,t){return+t?kBe(e,t):SBe(e)}function SBe(e){return Hy({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function kBe(e,t){function n(r,i,a,o,s,u,c,A,f,h,d,p,m,g){var y=c-r,v=A-i,_=y*y+v*v;if(_>4*t&&m--){var b=o+h,w=s+d,M=u+p,x=Mo(b*b+w*w+M*M),L=Cs(M/=x),N=yr(yr(M)-1)<Nn||yr(a-f)<Nn?(a+f)/2:gc(w,b),H=e(N,L),S=H[0],F=H[1],I=S-r,E=F-i,P=v*I-y*E;(P*P/_>t||yr((y*I+v*E)/_-.5)>.3||o*h+s*d+u*p<CBe)&&(n(r,i,a,o,s,u,S,F,N,b/=x,w/=x,M,m,g),g.point(S,F),n(S,F,N,b,w,M,c,A,f,h,d,p,m,g))}}return function(r){var i,a,o,s,u,c,A,f,h,d,p,m,g={point:y,lineStart:v,lineEnd:b,polygonStart:function(){r.polygonStart(),g.lineStart=w},polygonEnd:function(){r.polygonEnd(),g.lineStart=v}};function y(L,N){L=e(L,N),r.point(L[0],L[1])}function v(){f=NaN,g.point=_,r.lineStart()}function _(L,N){var H=zh([L,N]),S=e(L,N);n(f,h,A,d,p,m,f=S[0],h=S[1],A=L,d=H[0],p=H[1],m=H[2],cI,r),r.point(f,h)}function b(){g.point=y,r.lineEnd()}function w(){v(),g.point=M,g.lineEnd=x}function M(L,N){_(i=L,N),a=f,o=h,s=d,u=p,c=m,g.point=_}function x(){n(f,h,A,d,p,m,a,o,i,s,u,c,cI,r),g.lineEnd=b,b()}return g}}var MBe=Hy({point:function(e,t){this.stream.point(e*fi,t*fi)}});function EBe(e){return Hy({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function LBe(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 dI(e,t,n,r,i,a){if(!a)return LBe(e,t,n,r,i);var o=Un(a),s=Sn(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 p(m,g){return m*=r,g*=i,[u*m-c*g+t,n-c*m-u*g]}return p.invert=function(m,g){return[r*(A*m-f*g+h),i*(d-f*m-A*g)]},p}function kA(e){return fI(function(){return e})()}function fI(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,p=null,m=QO,g=null,y,v,_,b=mx,w=.5,M,x,L,N,H;function S(P){return L(P[0]*fi,P[1]*fi)}function F(P){return P=L.invert(P[0],P[1]),P&&[P[0]*so,P[1]*so]}S.stream=function(P){return N&&H===P?N:N=MBe(EBe(A)(m(M(b(H=P)))))},S.preclip=function(P){return arguments.length?(m=P,p=void 0,E()):m},S.postclip=function(P){return arguments.length?(b=P,g=y=v=_=null,E()):b},S.clipAngle=function(P){return arguments.length?(m=+P?dBe(p=P*fi):(p=null,QO),E()):p*so},S.clipExtent=function(P){return arguments.length?(b=P==null?(g=y=v=_=null,mx):jO(g=+P[0][0],y=+P[0][1],v=+P[1][0],_=+P[1][1]),E()):g==null?null:[[g,y],[v,_]]},S.scale=function(P){return arguments.length?(n=+P,I()):n},S.translate=function(P){return arguments.length?(r=+P[0],i=+P[1],I()):[r,i]},S.center=function(P){return arguments.length?(a=P[0]%360*fi,o=P[1]%360*fi,I()):[a*so,o*so]},S.rotate=function(P){return arguments.length?(s=P[0]%360*fi,u=P[1]%360*fi,c=P.length>2?P[2]%360*fi:0,I()):[s*so,u*so,c*so]},S.angle=function(P){return arguments.length?(f=P%360*fi,I()):f*so},S.reflectX=function(P){return arguments.length?(h=P?-1:1,I()):h<0},S.reflectY=function(P){return arguments.length?(d=P?-1:1,I()):d<0},S.precision=function(P){return arguments.length?(M=AI(x,w=P*P),E()):Mo(w)},S.fitExtent=function(P,K){return Lx(S,P,K)},S.fitSize=function(P,K){return sI(S,P,K)},S.fitWidth=function(P,K){return lI(S,P,K)},S.fitHeight=function(P,K){return uI(S,P,K)};function I(){var P=dI(n,0,0,h,d,f).apply(null,t(a,o)),K=dI(n,r-P[0],i-P[1],h,d,f);return A=FO(s,u,c),x=fx(t,K),L=fx(A,x),M=AI(x,w),E()}function E(){return N=H=null,S}return function(){return t=e.apply(this,arguments),S.invert=t.invert&&F,I()}}function Tx(e){var t=0,n=Hn/3,r=fI(e),i=r(t,n);return i.parallels=function(a){return arguments.length?r(t=a[0]*fi,n=a[1]*fi):[t*so,n*so]},i}function TBe(e){var t=Un(e);function n(r,i){return[r*t,Sn(i)/t]}return n.invert=function(r,i){return[r/t,Cs(i*t)]},n}function NBe(e,t){var n=Sn(e),r=(n+Sn(t))/2;if(yr(r)<Nn)return TBe(e);var i=1+n*(2*r-n),a=Mo(i)/r;function o(s,u){var c=Mo(i-2*r*Sn(u))/r;return[c*Sn(s*=r),a-c*Un(s)]}return o.invert=function(s,u){var c=a-u,A=gc(s,yr(c))*xs(c);return c*r<0&&(A-=Hn*xs(s)*xs(c)),[A/r,Cs((i-(s*s+c*c)*r*r)/(2*r))]},o}function Yy(){return Tx(NBe).scale(155.424).center([0,33.6442])}function hI(){return Yy().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function FBe(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 OBe(){var e,t,n=hI(),r,i=Yy().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a,o=Yy().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],p=h[1];return u=null,r.point(d,p),u||(a.point(d,p),u)||(s.point(d,p),u)}A.invert=function(h){var d=n.scale(),p=n.translate(),m=(h[0]-p[0])/d,g=(h[1]-p[1])/d;return(g>=.12&&g<.234&&m>=-.425&&m<-.214?i:g>=.166&&g<.234&&m>=-.214&&m<-.115?o:n).invert(h)},A.stream=function(h){return e&&t===h?e:e=FBe([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(),p=+h[0],m=+h[1];return r=n.translate(h).clipExtent([[p-.455*d,m-.238*d],[p+.455*d,m+.238*d]]).stream(c),a=i.translate([p-.307*d,m+.201*d]).clipExtent([[p-.425*d+Nn,m+.12*d+Nn],[p-.214*d-Nn,m+.234*d-Nn]]).stream(c),s=o.translate([p-.205*d,m+.212*d]).clipExtent([[p-.214*d+Nn,m+.166*d+Nn],[p-.115*d-Nn,m+.234*d-Nn]]).stream(c),f()},A.fitExtent=function(h,d){return Lx(A,h,d)},A.fitSize=function(h,d){return sI(A,h,d)},A.fitWidth=function(h,d){return lI(A,h,d)},A.fitHeight=function(h,d){return uI(A,h,d)};function f(){return e=t=null,A}return A.scale(1070)}function pI(e){return function(t,n){var r=Un(t),i=Un(n),a=e(r*i);return a===1/0?[2,0]:[a*i*Sn(t),a*Sn(n)]}}function bg(e){return function(t,n){var r=Mo(t*t+n*n),i=e(r),a=Sn(i),o=Un(i);return[gc(t*a,r*o),Cs(r&&n*a/r)]}}var mI=pI(function(e){return Mo(2/(1+e))});mI.invert=bg(function(e){return 2*Cs(e/2)});function IBe(){return kA(mI).scale(124.75).clipAngle(180-.001)}var gI=pI(function(e){return(e=EO(e))&&e/Sn(e)});gI.invert=bg(function(e){return e});function DBe(){return kA(gI).scale(79.4188).clipAngle(180-.001)}function Ry(e,t){return[e,xy(lx((di+t)/2))]}Ry.invert=function(e,t){return[e,2*Vh(MO(t))-di]};function UBe(){return vI(Ry).scale(961/Xo)}function vI(e){var t=kA(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=Hn*r(),h=t(iBe(t.rotate()).invert([0,0]));return a(o==null?[[h[0]-f,h[1]-f],[h[0]+f,h[1]+f]]:e===Ry?[[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 Qy(e){return lx((di+e)/2)}function PBe(e,t){var n=Un(e),r=e===t?Sn(e):xy(n/Un(t))/xy(Qy(t)/Qy(e)),i=n*sx(Qy(e),r)/r;if(!r)return Ry;function a(o,s){i>0?s<-di+Nn&&(s=-di+Nn):s>di-Nn&&(s=di-Nn);var u=i/sx(Qy(s),r);return[u*Sn(r*o),i-u*Un(r*o)]}return a.invert=function(o,s){var u=i-s,c=xs(r)*Mo(o*o+u*u),A=gc(o,yr(u))*xs(u);return u*r<0&&(A-=Hn*xs(o)*xs(u)),[A/r,2*Vh(sx(i/c,1/r))-di]},a}function HBe(){return Tx(PBe).scale(109.5).parallels([30,30])}function jy(e,t){return[e,t]}jy.invert=jy;function YBe(){return kA(jy).scale(152.63)}function RBe(e,t){var n=Un(e),r=e===t?Sn(e):(n-Un(t))/(t-e),i=n/r+e;if(yr(r)<Nn)return jy;function a(o,s){var u=i-s,c=r*o;return[u*Sn(c),i-u*Un(c)]}return a.invert=function(o,s){var u=i-s,c=gc(o,yr(u))*xs(u);return u*r<0&&(c-=Hn*xs(o)*xs(u)),[c/r,i-xs(r)*Mo(o*o+u*u)]},a}function QBe(){return Tx(RBe).scale(131.154).center([0,13.9389])}var wg=1.340264,Bg=-.081106,xg=893e-6,Cg=.003796,Vy=Mo(3)/2,jBe=12;function yI(e,t){var n=Cs(Vy*Sn(t)),r=n*n,i=r*r*r;return[e*Un(n)/(Vy*(wg+3*Bg*r+i*(7*xg+9*Cg*r))),n*(wg+Bg*r+i*(xg+Cg*r))]}yI.invert=function(e,t){for(var n=t,r=n*n,i=r*r*r,a=0,o,s,u;a<jBe&&(s=n*(wg+Bg*r+i*(xg+Cg*r))-t,u=wg+3*Bg*r+i*(7*xg+9*Cg*r),n-=o=s/u,r=n*n,i=r*r*r,!(yr(o)<SO));++a);return[Vy*e*(wg+3*Bg*r+i*(7*xg+9*Cg*r))/Un(n),Cs(Sn(n)/Vy)]};function VBe(){return kA(yI).scale(177.158)}function _I(e,t){var n=Un(t),r=Un(e)*n;return[n*Sn(e)/r,Sn(t)/r]}_I.invert=bg(Vh);function zBe(){return kA(_I).scale(144.049).clipAngle(60)}function bI(e,t){return[Un(t)*Sn(e),Sn(t)]}bI.invert=bg(Cs);function qBe(){return kA(bI).scale(249.5).clipAngle(90+Nn)}function wI(e,t){var n=Un(t),r=1+Un(e)*n;return[n*Sn(e)/r,Sn(t)/r]}wI.invert=bg(function(e){return 2*Vh(e)});function KBe(){return kA(wI).scale(250).clipAngle(142)}function BI(e,t){return[xy(lx((di+t)/2)),-e]}BI.invert=function(e,t){return[-t,2*Vh(MO(e))-di]};function GBe(){var e=vI(BI),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 vu(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Sg(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 Nx=Symbol("implicit");function Fx(){var e=new tg,t=[],n=[],r=Nx;function i(a){let o=e.get(a);if(o===void 0){if(r!==Nx)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 tg;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 Fx(t,n).unknown(r)},vu.apply(i,arguments),i}function MA(){var e=Fx().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,p=d?i:r,m=d?r:i;a=(m-p)/Math.max(1,h-u+c*2),s&&(a=Math.floor(a)),p+=(m-p-a*(h-u))*A,o=a*(1-u),s&&(p=Math.round(p),o=Math.round(o));var g=yB(h).map(function(y){return p+a*y});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 MA(t(),[r,i]).round(s).paddingInner(u).paddingOuter(c).align(A)},vu.apply(f(),arguments)}function xI(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return xI(t())},e}function WBe(){return xI(MA.apply(null,arguments).paddingInner(1))}function XBe(e){return function(){return e}}function Ox(e){return+e}var CI=[0,1];function Eo(e){return e}function Ix(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:XBe(isNaN(t)?NaN:.5)}function JBe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function ZBe(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Ix(i,r),a=n(o,a)):(r=Ix(r,i),a=n(a,o)),function(s){return a(r(s))}}function $Be(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]=Ix(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 kg(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function zy(){var e=CI,t=CI,n=fu,r,i,a,o=Eo,s,u,c;function A(){var h=Math.min(e.length,t.length);return o!==Eo&&(o=JBe(e[0],e[h-1])),s=h>2?$Be:ZBe,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),Pa)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,Ox),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=Ay,A()},f.clamp=function(h){return arguments.length?(o=h?!0:Eo,A()):o!==Eo},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 SI(){return zy()(Eo,Eo)}function exe(e,t,n,r){var i=gB(e,t,n),a;switch(r=fg(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=nBe(i,o))&&(r.precision=a),CO(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=rBe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=tBe(i))&&(r.precision=a-(r.type==="%")*2);break}}return pu(r)}function Gh(e){var t=e.domain;return e.ticks=function(n){var r=t();return Xd(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return exe(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=W1(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 Ms(){var e=SI();return e.copy=function(){return kg(e,Ms())},vu.apply(e,arguments),Gh(e)}function kI(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,Ox),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return kI(e).unknown(t)},e=arguments.length?Array.from(e,Ox):[0,1],Gh(n)}function MI(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 EI(e){return Math.log(e)}function LI(e){return Math.exp(e)}function txe(e){return-Math.log(-e)}function nxe(e){return-Math.exp(-e)}function rxe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function ixe(e){return e===10?rxe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function axe(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 TI(e){return(t,n)=>-e(-t,n)}function NI(e){const t=e(EI,LI),n=t.domain;let r=10,i,a;function o(){return i=axe(r),a=ixe(r),n()[0]<0?(i=TI(i),a=TI(a),e(txe,nxe)):e(EI,LI),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),p,m;const g=s==null?10:+s;let y=[];if(!(r%1)&&d-h<g){if(h=Math.floor(h),d=Math.ceil(d),c>0){for(;h<=d;++h)for(p=1;p<r;++p)if(m=h<0?p/a(-h):p*a(h),!(m<c)){if(m>A)break;y.push(m)}}else for(;h<=d;++h)for(p=r-1;p>=1;--p)if(m=h>0?p/a(-h):p*a(h),!(m<c)){if(m>A)break;y.push(m)}y.length*2<g&&(y=Xd(c,A,g))}else y=Xd(h,d,Math.min(d-h,g)).map(a);return f?y.reverse():y},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=fg(u)).precision==null&&(u.trim=!0),u=pu(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(MI(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function FI(){const e=NI(zy()).domain([1,10]);return e.copy=()=>kg(e,FI()).base(e.base()),vu.apply(e,arguments),e}function OI(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function II(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function DI(e){var t=1,n=e(OI(t),II(t));return n.constant=function(r){return arguments.length?e(OI(t=+r),II(t)):t},Gh(n)}function UI(){var e=DI(zy());return e.copy=function(){return kg(e,UI()).constant(e.constant())},vu.apply(e,arguments)}function PI(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function oxe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function sxe(e){return e<0?-e*e:e*e}function HI(e){var t=e(Eo,Eo),n=1;function r(){return n===1?e(Eo,Eo):n===.5?e(oxe,sxe):e(PI(n),PI(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Gh(t)}function YI(){var e=HI(zy());return e.copy=function(){return kg(e,YI()).exponent(e.exponent())},vu.apply(e,arguments),e}function RI(){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]=V_e(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(xA),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 RI().domain(e).range(t).unknown(r)},vu.apply(a,arguments)}function QI(){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 QI().domain(e).range(t).unknown(n)},vu.apply(i,arguments)}const Dx=new Date,Ux=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)=>(Dx.setTime(+a),Ux.setTime(+o),e(Dx),e(Ux),Math.floor(n(Dx,Ux))),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 qy=Gi(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);qy.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):qy),qy.range;const yc=1e3,Es=yc*60,_c=Es*60,bc=_c*24,Px=bc*7,jI=bc*30,Hx=bc*365,pl=Gi(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*yc)},(e,t)=>(t-e)/yc,e=>e.getUTCSeconds());pl.range;const Mg=Gi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*yc)},(e,t)=>{e.setTime(+e+t*Es)},(e,t)=>(t-e)/Es,e=>e.getMinutes());Mg.range;const Eg=Gi(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Es)},(e,t)=>(t-e)/Es,e=>e.getUTCMinutes());Eg.range;const Lg=Gi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*yc-e.getMinutes()*Es)},(e,t)=>{e.setTime(+e+t*_c)},(e,t)=>(t-e)/_c,e=>e.getHours());Lg.range;const Tg=Gi(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*_c)},(e,t)=>(t-e)/_c,e=>e.getUTCHours());Tg.range;const cf=Gi(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Es)/bc,e=>e.getDate()-1);cf.range;const Ky=Gi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/bc,e=>e.getUTCDate()-1);Ky.range;const Gy=Gi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/bc,e=>Math.floor(e/bc));Gy.range;function Af(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())*Es)/Px)}const Wh=Af(0),Ng=Af(1),VI=Af(2),zI=Af(3),df=Af(4),qI=Af(5),KI=Af(6);Wh.range,Ng.range,VI.range,zI.range,df.range,qI.range,KI.range;function ff(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)/Px)}const Xh=ff(0),Fg=ff(1),GI=ff(2),WI=ff(3),hf=ff(4),XI=ff(5),JI=ff(6);Xh.range,Fg.range,GI.range,WI.range,hf.range,XI.range,JI.range;const Og=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());Og.range;const Ig=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());Ig.range;const ml=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());ml.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)}),ml.range;const gl=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());gl.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)}),gl.range;function ZI(e,t,n,r,i,a){const o=[[pl,1,yc],[pl,5,5*yc],[pl,15,15*yc],[pl,30,30*yc],[a,1,Es],[a,5,5*Es],[a,15,15*Es],[a,30,30*Es],[i,1,_c],[i,3,3*_c],[i,6,6*_c],[i,12,12*_c],[r,1,bc],[r,2,2*bc],[n,1,Px],[t,1,jI],[t,3,3*jI],[e,1,Hx]];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),p=d?d.range(c,+A+1):[];return h?p.reverse():p}function u(c,A,f){const h=Math.abs(A-c)/f,d=Q1(([,,g])=>g).right(o,h);if(d===o.length)return e.every(gB(c/Hx,A/Hx,f));if(d===0)return qy.every(Math.max(gB(c,A,f),1));const[p,m]=o[h/o[d-1][2]<o[d][2]/h?d-1:d];return p.every(m)}return[s,u]}const[lxe,$I]=ZI(gl,Ig,Xh,Gy,Tg,Eg),[uxe,cxe]=ZI(ml,Og,Wh,cf,Lg,Mg);function Yx(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 Rx(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 Dg(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Axe(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=Ug(i),A=Pg(i),f=Ug(a),h=Pg(a),d=Ug(o),p=Pg(o),m=Ug(s),g=Pg(s),y=Ug(u),v=Pg(u),_={a:q,A:z,b:J,B:re,c:null,d:aD,e:aD,f:Oxe,g:Vxe,G:qxe,H:Txe,I:Nxe,j:Fxe,L:oD,m:Ixe,M:Dxe,p:X,q:D,Q:dD,s:fD,S:Uxe,u:Pxe,U:Hxe,V:Yxe,w:Rxe,W:Qxe,x:null,X:null,y:jxe,Y:zxe,Z:Kxe,"%":AD},b={a:W,A:ee,b:te,B:pe,c:null,d:lD,e:lD,f:Jxe,g:sCe,G:uCe,H:Gxe,I:Wxe,j:Xxe,L:uD,m:Zxe,M:$xe,p:me,q:ve,Q:dD,s:fD,S:eCe,u:tCe,U:nCe,V:rCe,w:iCe,W:aCe,x:null,X:null,y:oCe,Y:lCe,Z:cCe,"%":AD},w={a:H,A:S,b:F,B:I,c:E,d:rD,e:rD,f:kxe,g:nD,G:tD,H:iD,I:iD,j:Bxe,L:Sxe,m:wxe,M:xxe,p:N,q:bxe,Q:Exe,s:Lxe,S:Cxe,u:mxe,U:gxe,V:vxe,w:pxe,W:yxe,x:P,X:K,y:nD,Y:tD,Z:_xe,"%":Mxe};_.x=M(n,_),_.X=M(r,_),_.c=M(t,_),b.x=M(n,b),b.X=M(r,b),b.c=M(t,b);function M(le,_e){return function(Le){var ke=[],Pe=-1,Y=0,ie=le.length,de,Z,$;for(Le instanceof Date||(Le=new Date(+Le));++Pe<ie;)le.charCodeAt(Pe)===37&&(ke.push(le.slice(Y,Pe)),(Z=eD[de=le.charAt(++Pe)])!=null?de=le.charAt(++Pe):Z=de==="e"?" ":"0",($=_e[de])&&(de=$(Le,Z)),ke.push(de),Y=Pe+1);return ke.push(le.slice(Y,Pe)),ke.join("")}}function x(le,_e){return function(Le){var ke=Dg(1900,void 0,1),Pe=L(ke,le,Le+="",0),Y,ie;if(Pe!=Le.length)return null;if("Q"in ke)return new Date(ke.Q);if("s"in ke)return new Date(ke.s*1e3+("L"in ke?ke.L:0));if(_e&&!("Z"in ke)&&(ke.Z=0),"p"in ke&&(ke.H=ke.H%12+ke.p*12),ke.m===void 0&&(ke.m="q"in ke?ke.q:0),"V"in ke){if(ke.V<1||ke.V>53)return null;"w"in ke||(ke.w=1),"Z"in ke?(Y=Rx(Dg(ke.y,0,1)),ie=Y.getUTCDay(),Y=ie>4||ie===0?Fg.ceil(Y):Fg(Y),Y=Ky.offset(Y,(ke.V-1)*7),ke.y=Y.getUTCFullYear(),ke.m=Y.getUTCMonth(),ke.d=Y.getUTCDate()+(ke.w+6)%7):(Y=Yx(Dg(ke.y,0,1)),ie=Y.getDay(),Y=ie>4||ie===0?Ng.ceil(Y):Ng(Y),Y=cf.offset(Y,(ke.V-1)*7),ke.y=Y.getFullYear(),ke.m=Y.getMonth(),ke.d=Y.getDate()+(ke.w+6)%7)}else("W"in ke||"U"in ke)&&("w"in ke||(ke.w="u"in ke?ke.u%7:"W"in ke?1:0),ie="Z"in ke?Rx(Dg(ke.y,0,1)).getUTCDay():Yx(Dg(ke.y,0,1)).getDay(),ke.m=0,ke.d="W"in ke?(ke.w+6)%7+ke.W*7-(ie+5)%7:ke.w+ke.U*7-(ie+6)%7);return"Z"in ke?(ke.H+=ke.Z/100|0,ke.M+=ke.Z%100,Rx(ke)):Yx(ke)}}function L(le,_e,Le,ke){for(var Pe=0,Y=_e.length,ie=Le.length,de,Z;Pe<Y;){if(ke>=ie)return-1;if(de=_e.charCodeAt(Pe++),de===37){if(de=_e.charAt(Pe++),Z=w[de in eD?_e.charAt(Pe++):de],!Z||(ke=Z(le,Le,ke))<0)return-1}else if(de!=Le.charCodeAt(ke++))return-1}return ke}function N(le,_e,Le){var ke=c.exec(_e.slice(Le));return ke?(le.p=A.get(ke[0].toLowerCase()),Le+ke[0].length):-1}function H(le,_e,Le){var ke=d.exec(_e.slice(Le));return ke?(le.w=p.get(ke[0].toLowerCase()),Le+ke[0].length):-1}function S(le,_e,Le){var ke=f.exec(_e.slice(Le));return ke?(le.w=h.get(ke[0].toLowerCase()),Le+ke[0].length):-1}function F(le,_e,Le){var ke=y.exec(_e.slice(Le));return ke?(le.m=v.get(ke[0].toLowerCase()),Le+ke[0].length):-1}function I(le,_e,Le){var ke=m.exec(_e.slice(Le));return ke?(le.m=g.get(ke[0].toLowerCase()),Le+ke[0].length):-1}function E(le,_e,Le){return L(le,t,_e,Le)}function P(le,_e,Le){return L(le,n,_e,Le)}function K(le,_e,Le){return L(le,r,_e,Le)}function q(le){return o[le.getDay()]}function z(le){return a[le.getDay()]}function J(le){return u[le.getMonth()]}function re(le){return s[le.getMonth()]}function X(le){return i[+(le.getHours()>=12)]}function D(le){return 1+~~(le.getMonth()/3)}function W(le){return o[le.getUTCDay()]}function ee(le){return a[le.getUTCDay()]}function te(le){return u[le.getUTCMonth()]}function pe(le){return s[le.getUTCMonth()]}function me(le){return i[+(le.getUTCHours()>=12)]}function ve(le){return 1+~~(le.getUTCMonth()/3)}return{format:function(le){var _e=M(le+="",_);return _e.toString=function(){return le},_e},parse:function(le){var _e=x(le+="",!1);return _e.toString=function(){return le},_e},utcFormat:function(le){var _e=M(le+="",b);return _e.toString=function(){return le},_e},utcParse:function(le){var _e=x(le+="",!0);return _e.toString=function(){return le},_e}}}var eD={"-":"",_:" ",0:"0"},sa=/^\s*\d+/,dxe=/^%/,fxe=/[\\^$*+?|[\]().{}]/g;function ar(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 hxe(e){return e.replace(fxe,"\\$&")}function Ug(e){return new RegExp("^(?:"+e.map(hxe).join("|")+")","i")}function Pg(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function pxe(e,t,n){var r=sa.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function mxe(e,t,n){var r=sa.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function gxe(e,t,n){var r=sa.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function vxe(e,t,n){var r=sa.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function yxe(e,t,n){var r=sa.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function tD(e,t,n){var r=sa.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function nD(e,t,n){var r=sa.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _xe(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 bxe(e,t,n){var r=sa.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function wxe(e,t,n){var r=sa.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function rD(e,t,n){var r=sa.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Bxe(e,t,n){var r=sa.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function iD(e,t,n){var r=sa.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function xxe(e,t,n){var r=sa.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Cxe(e,t,n){var r=sa.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Sxe(e,t,n){var r=sa.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function kxe(e,t,n){var r=sa.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Mxe(e,t,n){var r=dxe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Exe(e,t,n){var r=sa.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Lxe(e,t,n){var r=sa.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function aD(e,t){return ar(e.getDate(),t,2)}function Txe(e,t){return ar(e.getHours(),t,2)}function Nxe(e,t){return ar(e.getHours()%12||12,t,2)}function Fxe(e,t){return ar(1+cf.count(ml(e),e),t,3)}function oD(e,t){return ar(e.getMilliseconds(),t,3)}function Oxe(e,t){return oD(e,t)+"000"}function Ixe(e,t){return ar(e.getMonth()+1,t,2)}function Dxe(e,t){return ar(e.getMinutes(),t,2)}function Uxe(e,t){return ar(e.getSeconds(),t,2)}function Pxe(e){var t=e.getDay();return t===0?7:t}function Hxe(e,t){return ar(Wh.count(ml(e)-1,e),t,2)}function sD(e){var t=e.getDay();return t>=4||t===0?df(e):df.ceil(e)}function Yxe(e,t){return e=sD(e),ar(df.count(ml(e),e)+(ml(e).getDay()===4),t,2)}function Rxe(e){return e.getDay()}function Qxe(e,t){return ar(Ng.count(ml(e)-1,e),t,2)}function jxe(e,t){return ar(e.getFullYear()%100,t,2)}function Vxe(e,t){return e=sD(e),ar(e.getFullYear()%100,t,2)}function zxe(e,t){return ar(e.getFullYear()%1e4,t,4)}function qxe(e,t){var n=e.getDay();return e=n>=4||n===0?df(e):df.ceil(e),ar(e.getFullYear()%1e4,t,4)}function Kxe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ar(t/60|0,"0",2)+ar(t%60,"0",2)}function lD(e,t){return ar(e.getUTCDate(),t,2)}function Gxe(e,t){return ar(e.getUTCHours(),t,2)}function Wxe(e,t){return ar(e.getUTCHours()%12||12,t,2)}function Xxe(e,t){return ar(1+Ky.count(gl(e),e),t,3)}function uD(e,t){return ar(e.getUTCMilliseconds(),t,3)}function Jxe(e,t){return uD(e,t)+"000"}function Zxe(e,t){return ar(e.getUTCMonth()+1,t,2)}function $xe(e,t){return ar(e.getUTCMinutes(),t,2)}function eCe(e,t){return ar(e.getUTCSeconds(),t,2)}function tCe(e){var t=e.getUTCDay();return t===0?7:t}function nCe(e,t){return ar(Xh.count(gl(e)-1,e),t,2)}function cD(e){var t=e.getUTCDay();return t>=4||t===0?hf(e):hf.ceil(e)}function rCe(e,t){return e=cD(e),ar(hf.count(gl(e),e)+(gl(e).getUTCDay()===4),t,2)}function iCe(e){return e.getUTCDay()}function aCe(e,t){return ar(Fg.count(gl(e)-1,e),t,2)}function oCe(e,t){return ar(e.getUTCFullYear()%100,t,2)}function sCe(e,t){return e=cD(e),ar(e.getUTCFullYear()%100,t,2)}function lCe(e,t){return ar(e.getUTCFullYear()%1e4,t,4)}function uCe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?hf(e):hf.ceil(e),ar(e.getUTCFullYear()%1e4,t,4)}function cCe(){return"+0000"}function AD(){return"%"}function dD(e){return+e}function fD(e){return Math.floor(+e/1e3)}var Jh,Qx,Hg;ACe({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 ACe(e){return Jh=Axe(e),Qx=Jh.format,Jh.parse,Hg=Jh.utcFormat,Jh.utcParse,Jh}function dCe(e){return new Date(e)}function fCe(e){return e instanceof Date?+e:+new Date(+e)}function jx(e,t,n,r,i,a,o,s,u,c){var A=SI(),f=A.invert,h=A.domain,d=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),y=c("%a %d"),v=c("%b %d"),_=c("%B"),b=c("%Y");function w(M){return(u(M)<M?d:s(M)<M?p:o(M)<M?m:a(M)<M?g:r(M)<M?i(M)<M?y:v:n(M)<M?_:b)(M)}return A.invert=function(M){return new Date(f(M))},A.domain=function(M){return arguments.length?h(Array.from(M,fCe)):h().map(dCe)},A.ticks=function(M){var x=h();return e(x[0],x[x.length-1],M??10)},A.tickFormat=function(M,x){return x==null?w:c(x)},A.nice=function(M){var x=h();return(!M||typeof M.range!="function")&&(M=t(x[0],x[x.length-1],M??10)),M?h(MI(x,M)):A},A.copy=function(){return kg(A,jx(e,t,n,r,i,a,o,s,u,c))},A}function hD(){return vu.apply(jx(uxe,cxe,ml,Og,Wh,cf,Lg,Mg,pl,Qx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function EA(){return vu.apply(jx(lxe,$I,gl,Ig,Xh,Ky,Tg,Eg,pl,Hg).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function hCe(){var e=0,t=1,n,r,i,a,o=Eo,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,p;return arguments.length?([d,p]=h,o=f(d,p),c):[o(0),o(1)]}}return c.range=A(fu),c.rangeRound=A(Ay),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 Yg(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function yu(){var e=Gh(hCe()(Eo));return e.copy=function(){return Yg(e,yu())},Sg.apply(e,arguments)}function Wy(){var e=0,t=.5,n=1,r=1,i,a,o,s,u,c=Eo,A,f=!1,h;function d(m){return isNaN(m=+m)?h:(m=.5+((m=+A(m))-a)*(r*m<r*a?s:u),c(f?Math.max(0,Math.min(1,m)):m))}d.domain=function(m){return arguments.length?([e,t,n]=m,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(m){return arguments.length?(f=!!m,d):f},d.interpolator=function(m){return arguments.length?(c=m,d):c};function p(m){return function(g){var y,v,_;return arguments.length?([y,v,_]=g,c=fy(m,[y,v,_]),d):[c(0),c(.5),c(1)]}}return d.range=p(fu),d.rangeRound=p(Ay),d.unknown=function(m){return arguments.length?(h=m,d):h},function(m){return A=m,i=m(e),a=m(t),o=m(n),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),r=a<i?-1:1,d}}function pD(){var e=Gh(Wy()(Eo));return e.copy=function(){return Yg(e,pD())},Sg.apply(e,arguments)}function mD(){var e=NI(Wy()).domain([.1,1,10]);return e.copy=function(){return Yg(e,mD()).base(e.base())},Sg.apply(e,arguments)}function gD(){var e=DI(Wy());return e.copy=function(){return Yg(e,gD()).constant(e.constant())},Sg.apply(e,arguments)}function vD(){var e=HI(Wy());return e.copy=function(){return Yg(e,vD()).exponent(e.exponent())},Sg.apply(e,arguments)}function kn(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 pCe=kn("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),mCe=kn("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),gCe=kn("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),vCe=kn("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),yCe=kn("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),_Ce=kn("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),bCe=kn("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),wCe=kn("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),BCe=kn("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),xCe=kn("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),CCe=kn("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Tr=e=>owe(e[e.length-1]);var yD=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(kn);const _D=Tr(yD);var bD=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(kn);const wD=Tr(bD);var BD=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(kn);const xD=Tr(BD);var CD=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(kn);const SD=Tr(CD);var Vx=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(kn);const Xy=Tr(Vx);var kD=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(kn);const MD=Tr(kD);var zx=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(kn);const Jy=Tr(zx);var ED=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(kn);const LD=Tr(ED);var TD=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(kn);const ND=Tr(TD);var FD=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(kn);const OD=Tr(FD);var ID=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(kn);const DD=Tr(ID);var UD=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(kn);const PD=Tr(UD);var HD=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(kn);const YD=Tr(HD);var RD=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(kn);const QD=Tr(RD);var jD=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(kn);const VD=Tr(jD);var zD=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(kn);const qD=Tr(zD);var KD=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(kn);const GD=Tr(KD);var WD=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(kn);const XD=Tr(WD);var JD=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(kn);const ZD=Tr(JD);var $D=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(kn);const eU=Tr($D);var tU=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(kn);const nU=Tr(tU);var rU=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(kn);const Zy=Tr(rU);var iU=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(kn);const $y=Tr(iU);var aU=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(kn);const Rg=Tr(aU);var oU=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(kn);const sU=Tr(oU);var lU=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(kn);const qx=Tr(lU);var uU=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(kn);const Kx=Tr(uU);function cU(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 AU=VB(du(300,.5,0),du(-240,.5,1));var dU=VB(du(-100,.75,.35),du(80,1.5,.8)),fU=VB(du(260,.75,.35),du(80,1.5,.8)),e_=du();function hU(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return e_.h=360*e-100,e_.s=1.5-1.5*t,e_.l=.8-.9*t,e_+""}var t_=SA(),SCe=Math.PI/3,kCe=Math.PI*2/3;function pU(e){var t;return e=(.5-e)*Math.PI,t_.r=255*(t=Math.sin(e))*t,t_.g=255*(t=Math.sin(e+SCe))*t,t_.b=255*(t=Math.sin(e+kCe))*t,t_+""}function mU(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 n_(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const gU=n_(kn("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var vU=n_(kn("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),yU=n_(kn("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),_U=n_(kn("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Pn(e){return function(){return e}}const bU=Math.abs,Ra=Math.atan2,wc=Math.cos,MCe=Math.max,Zh=Math.min,Lo=Math.sin,Kr=Math.sqrt,Qa=1e-12,LA=Math.PI,r_=LA/2,TA=2*LA;function ECe(e){return e>1?0:e<-1?LA:Math.acos(e)}function wU(e){return e>=1?r_:e<=-1?-r_:Math.asin(e)}function i_(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 vO(t)}function LCe(e){return e.innerRadius}function TCe(e){return e.outerRadius}function NCe(e){return e.startAngle}function FCe(e){return e.endAngle}function OCe(e){return e&&e.padAngle}function ICe(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<Qa))return h=(A*(t-a)-f*(e-i))/h,[e+h*u,t+h*c]}function a_(e,t,n,r,i,a,o){var s=e-n,u=t-r,c=(o?a:-a)/Kr(s*s+u*u),A=c*u,f=-c*s,h=e+A,d=t+f,p=n+A,m=r+f,g=(h+p)/2,y=(d+m)/2,v=p-h,_=m-d,b=v*v+_*_,w=i-a,M=h*m-p*d,x=(_<0?-1:1)*Kr(MCe(0,w*w*b-M*M)),L=(M*_-v*x)/b,N=(-M*v-_*x)/b,H=(M*_+v*x)/b,S=(-M*v+_*x)/b,F=L-g,I=N-y,E=H-g,P=S-y;return F*F+I*I>E*E+P*P&&(L=H,N=S),{cx:L,cy:N,x01:-A,y01:-f,x11:L*(i/w-1),y11:N*(i/w-1)}}function Gx(){var e=LCe,t=TCe,n=Pn(0),r=null,i=NCe,a=FCe,o=OCe,s=null,u=i_(c);function c(){var A,f,h=+e.apply(this,arguments),d=+t.apply(this,arguments),p=i.apply(this,arguments)-r_,m=a.apply(this,arguments)-r_,g=bU(m-p),y=m>p;if(s||(s=A=u()),d<h&&(f=d,d=h,h=f),!(d>Qa))s.moveTo(0,0);else if(g>TA-Qa)s.moveTo(d*wc(p),d*Lo(p)),s.arc(0,0,d,p,m,!y),h>Qa&&(s.moveTo(h*wc(m),h*Lo(m)),s.arc(0,0,h,m,p,y));else{var v=p,_=m,b=p,w=m,M=g,x=g,L=o.apply(this,arguments)/2,N=L>Qa&&(r?+r.apply(this,arguments):Kr(h*h+d*d)),H=Zh(bU(d-h)/2,+n.apply(this,arguments)),S=H,F=H,I,E;if(N>Qa){var P=wU(N/h*Lo(L)),K=wU(N/d*Lo(L));(M-=P*2)>Qa?(P*=y?1:-1,b+=P,w-=P):(M=0,b=w=(p+m)/2),(x-=K*2)>Qa?(K*=y?1:-1,v+=K,_-=K):(x=0,v=_=(p+m)/2)}var q=d*wc(v),z=d*Lo(v),J=h*wc(w),re=h*Lo(w);if(H>Qa){var X=d*wc(_),D=d*Lo(_),W=h*wc(b),ee=h*Lo(b),te;if(g<LA)if(te=ICe(q,z,W,ee,X,D,J,re)){var pe=q-te[0],me=z-te[1],ve=X-te[0],le=D-te[1],_e=1/Lo(ECe((pe*ve+me*le)/(Kr(pe*pe+me*me)*Kr(ve*ve+le*le)))/2),Le=Kr(te[0]*te[0]+te[1]*te[1]);S=Zh(H,(h-Le)/(_e-1)),F=Zh(H,(d-Le)/(_e+1))}else S=F=0}x>Qa?F>Qa?(I=a_(W,ee,q,z,d,F,y),E=a_(X,D,J,re,d,F,y),s.moveTo(I.cx+I.x01,I.cy+I.y01),F<H?s.arc(I.cx,I.cy,F,Ra(I.y01,I.x01),Ra(E.y01,E.x01),!y):(s.arc(I.cx,I.cy,F,Ra(I.y01,I.x01),Ra(I.y11,I.x11),!y),s.arc(0,0,d,Ra(I.cy+I.y11,I.cx+I.x11),Ra(E.cy+E.y11,E.cx+E.x11),!y),s.arc(E.cx,E.cy,F,Ra(E.y11,E.x11),Ra(E.y01,E.x01),!y))):(s.moveTo(q,z),s.arc(0,0,d,v,_,!y)):s.moveTo(q,z),!(h>Qa)||!(M>Qa)?s.lineTo(J,re):S>Qa?(I=a_(J,re,X,D,h,-S,y),E=a_(q,z,W,ee,h,-S,y),s.lineTo(I.cx+I.x01,I.cy+I.y01),S<H?s.arc(I.cx,I.cy,S,Ra(I.y01,I.x01),Ra(E.y01,E.x01),!y):(s.arc(I.cx,I.cy,S,Ra(I.y01,I.x01),Ra(I.y11,I.x11),!y),s.arc(0,0,h,Ra(I.cy+I.y11,I.cx+I.x11),Ra(E.cy+E.y11,E.cx+E.x11),y),s.arc(E.cx,E.cy,S,Ra(E.y11,E.x11),Ra(E.y01,E.x01),!y))):s.arc(0,0,h,w,b,y)}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-LA/2;return[wc(f)*A,Lo(f)*A]},c.innerRadius=function(A){return arguments.length?(e=typeof A=="function"?A:Pn(+A),c):e},c.outerRadius=function(A){return arguments.length?(t=typeof A=="function"?A:Pn(+A),c):t},c.cornerRadius=function(A){return arguments.length?(n=typeof A=="function"?A:Pn(+A),c):n},c.padRadius=function(A){return arguments.length?(r=A==null?null:typeof A=="function"?A:Pn(+A),c):r},c.startAngle=function(A){return arguments.length?(i=typeof A=="function"?A:Pn(+A),c):i},c.endAngle=function(A){return arguments.length?(a=typeof A=="function"?A:Pn(+A),c):a},c.padAngle=function(A){return arguments.length?(o=typeof A=="function"?A:Pn(+A),c):o},c.context=function(A){return arguments.length?(s=A??null,c):s},c}var DCe=Array.prototype.slice;function o_(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function BU(e){this._context=e}BU.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 BU(e)}function Wx(e){return e[0]}function Xx(e){return e[1]}function jg(e,t){var n=Pn(!0),r=null,i=Qg,a=null,o=i_(s);e=typeof e=="function"?e:e===void 0?Wx:Pn(e),t=typeof t=="function"?t:t===void 0?Xx:Pn(t);function s(u){var c,A=(u=o_(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:Pn(+u),s):e},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:Pn(+u),s):t},s.defined=function(u){return arguments.length?(n=typeof u=="function"?u:Pn(!!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 UCe(e,t,n){var r=null,i=Pn(!0),a=null,o=Qg,s=null,u=i_(c);e=typeof e=="function"?e:e===void 0?Wx:Pn(+e),t=typeof t=="function"?t:Pn(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Xx:Pn(+n);function c(f){var h,d,p,m=(f=o_(f)).length,g,y=!1,v,_=new Array(m),b=new Array(m);for(a==null&&(s=o(v=u())),h=0;h<=m;++h){if(!(h<m&&i(g=f[h],h,f))===y)if(y=!y)d=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),p=h-1;p>=d;--p)s.point(_[p],b[p]);s.lineEnd(),s.areaEnd()}y&&(_[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(v)return s=null,v+""||null}function A(){return jg().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:Pn(+f),r=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Pn(+f),c):e},c.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Pn(+f),c):r},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Pn(+f),n=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Pn(+f),c):t},c.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Pn(+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:Pn(!!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 PCe(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function HCe(e){return e}function YCe(){var e=HCe,t=PCe,n=null,r=Pn(0),i=Pn(TA),a=Pn(0);function o(s){var u,c=(s=o_(s)).length,A,f,h=0,d=new Array(c),p=new Array(c),m=+r.apply(this,arguments),g=Math.min(TA,Math.max(-TA,i.apply(this,arguments)-m)),y,v=Math.min(Math.abs(g)/c,a.apply(this,arguments)),_=v*(g<0?-1:1),b;for(u=0;u<c;++u)(b=p[d[u]=u]=+e(s[u],u,s))>0&&(h+=b);for(t!=null?d.sort(function(w,M){return t(p[w],p[M])}):n!=null&&d.sort(function(w,M){return n(s[w],s[M])}),u=0,f=h?(g-c*_)/h:0;u<c;++u,m=y)A=d[u],b=p[A],y=m+(b>0?b*f:0)+_,p[A]={data:s[A],index:u,value:b,startAngle:m,endAngle:y,padAngle:v};return p}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:Pn(+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:Pn(+s),o):r},o.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:Pn(+s),o):i},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:Pn(+s),o):a},o}class xU{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 CU(e){return new xU(e,!0)}function RCe(e){return new xU(e,!1)}function QCe(e){return e.source}function jCe(e){return e.target}function VCe(e){let t=QCe,n=jCe,r=Wx,i=Xx,a=null,o=null,s=i_(u);function u(){let c;const A=DCe.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:Pn(+c),u):r},u.y=function(c){return arguments.length?(i=typeof c=="function"?c:Pn(+c),u):i},u.context=function(c){return arguments.length?(c==null?a=o=null:o=e(a=c),u):a},u}function zCe(){return VCe(CU)}const qCe=Kr(3),SU={draw(e,t){const n=Kr(t+Zh(t/28,.75))*.59436,r=n/2,i=r*qCe;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-i,-r),e.lineTo(i,r),e.moveTo(-i,r),e.lineTo(i,-r)}},Vg={draw(e,t){const n=Kr(t/LA);e.moveTo(n,0),e.arc(0,0,n,0,TA)}},kU={draw(e,t){const n=Kr(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()}},MU=Kr(1/3),KCe=MU*2,EU={draw(e,t){const n=Kr(t/KCe),r=n*MU;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},LU={draw(e,t){const n=Kr(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},TU={draw(e,t){const n=Kr(t-Zh(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},NU={draw(e,t){const n=Kr(t),r=-n/2;e.rect(r,r,n,n)}},FU={draw(e,t){const n=Kr(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},GCe=.8908130915292852,OU=Lo(LA/10)/Lo(7*LA/10),WCe=Lo(TA/10)*OU,XCe=-wc(TA/10)*OU,IU={draw(e,t){const n=Kr(t*GCe),r=WCe*n,i=XCe*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=TA*a/5,s=wc(o),u=Lo(o);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},Jx=Kr(3),DU={draw(e,t){const n=-Kr(t/(Jx*3));e.moveTo(0,n*2),e.lineTo(-Jx*n,-n),e.lineTo(Jx*n,-n),e.closePath()}},JCe=Kr(3),UU={draw(e,t){const n=Kr(t)*.6824,r=n/2,i=n*JCe/2;e.moveTo(0,-n),e.lineTo(i,r),e.lineTo(-i,r),e.closePath()}},Ls=-.5,Ts=Kr(3)/2,Zx=1/Kr(12),ZCe=(Zx/2+1)*3,PU={draw(e,t){const n=Kr(t/ZCe),r=n/2,i=n*Zx,a=r,o=n*Zx+n,s=-a,u=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,u),e.lineTo(Ls*r-Ts*i,Ts*r+Ls*i),e.lineTo(Ls*a-Ts*o,Ts*a+Ls*o),e.lineTo(Ls*s-Ts*u,Ts*s+Ls*u),e.lineTo(Ls*r+Ts*i,Ls*i-Ts*r),e.lineTo(Ls*a+Ts*o,Ls*o-Ts*a),e.lineTo(Ls*s+Ts*u,Ls*u-Ts*s),e.closePath()}},HU={draw(e,t){const n=Kr(t-Zh(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},$Ce=[Vg,kU,EU,NU,IU,DU,PU],e4e=[Vg,TU,HU,UU,SU,FU,LU];function NA(){}function s_(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 l_(e){this._context=e}l_.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:s_(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:s_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function t4e(e){return new l_(e)}function YU(e){this._context=e}YU.prototype={areaStart:NA,areaEnd:NA,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:s_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function n4e(e){return new YU(e)}function RU(e){this._context=e}RU.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:s_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function r4e(e){return new RU(e)}function QU(e,t){this._basis=new l_(e),this._beta=t}QU.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 i4e=function e(t){function n(r){return t===1?new l_(r):new QU(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function u_(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 $x(e,t){this._context=e,this._k=(1-t)/6}$x.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:u_(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:u_(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 a4e=function e(t){function n(r){return new $x(r,t)}return n.tension=function(r){return e(+r)},n}(0);function eC(e,t){this._context=e,this._k=(1-t)/6}eC.prototype={areaStart:NA,areaEnd:NA,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:u_(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 o4e=function e(t){function n(r){return new eC(r,t)}return n.tension=function(r){return e(+r)},n}(0);function tC(e,t){this._context=e,this._k=(1-t)/6}tC.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:u_(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 s4e=function e(t){function n(r){return new tC(r,t)}return n.tension=function(r){return e(+r)},n}(0);function nC(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Qa){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>Qa){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 jU(e,t){this._context=e,this._alpha=t}jU.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:nC(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 l4e=function e(t){function n(r){return t?new jU(r,t):new $x(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function VU(e,t){this._context=e,this._alpha=t}VU.prototype={areaStart:NA,areaEnd:NA,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:nC(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 u4e=function e(t){function n(r){return t?new VU(r,t):new eC(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function zU(e,t){this._context=e,this._alpha=t}zU.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:nC(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 c4e=function e(t){function n(r){return t?new zU(r,t):new tC(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function qU(e){this._context=e}qU.prototype={areaStart:NA,areaEnd:NA,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 A4e(e){return new qU(e)}function KU(e){return e<0?-1:1}function GU(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(KU(a)+KU(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function WU(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function rC(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 c_(e){this._context=e}c_.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:rC(this,this._t0,WU(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,rC(this,WU(this,n=GU(this,e,t)),n);break;default:rC(this,this._t0,n=GU(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function XU(e){this._context=new JU(e)}(XU.prototype=Object.create(c_.prototype)).point=function(e,t){c_.prototype.point.call(this,t,e)};function JU(e){this._context=e}JU.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 d4e(e){return new c_(e)}function f4e(e){return new XU(e)}function ZU(e){this._context=e}ZU.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=$U(e),i=$U(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 $U(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 h4e(e){return new ZU(e)}function A_(e,t){this._context=e,this._t=t}A_.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 p4e(e){return new A_(e,.5)}function m4e(e){return new A_(e,0)}function g4e(e){return new A_(e,1)}function eP(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 tP(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function v4e(e,t){return e[t]}function y4e(e){const t=[];return t.key=e,t}function nP(){var e=Pn([]),t=tP,n=eP,r=v4e;function i(a){var o=Array.from(e.apply(this,arguments),y4e),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=o_(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:Pn(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:Pn(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?tP:typeof a=="function"?a:Pn(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??eP,i):n},i}function zg(e,t,n){this.k=e,this.x=t,this.y=n}zg.prototype={constructor:zg,scale:function(e){return e===1?this:new zg(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new zg(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+")"}},zg.prototype;const Pi={light:{canvas:"#f3f4f6",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"}},FA={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:yu(Zy),input:yu($y),output:yu($y),drop:yu(Kx),abort:yu(Rg),compressed:yu(Rg),error:yu(qx),ignored:yu(Rg),buffer:yu(Zy)}},iC={light:{ingressdata:"#007D11",egresstootherregion:"#ef9b20",egresstointernet:"#27aeef"},dark:{ingressdata:"#03FC1C",egresstootherregion:"#ef9b20",egresstointernet:"#27aeef"}},Kn=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf","#1c9099","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],d_={light:{Average:"#ff7f0e",Upper_Bound:"#2ca02c",Lower_Bound:"#e377c2",Alert:"#27aeef"},dark:{Average:"#ff7f0e",Upper_Bound:"#2ca02c",Lower_Bound:"#e377c2",Alert:"#27aeef"}},_4e={green:["#3FA83F","#93CE07","#43B446","#73B142","#259940","#00695C","#3ec995"],compute15:b4e("#b50101","#7f7f7f",15)};function rP(e){return e<0?"00":e<16?"0"+e.toString(16):e.toString(16)}function aC(e,t,n,r){return e>t?rP(Math.floor((t-e)*(n/r))+e):rP(Math.floor((e-t)*(1-n/r))+t)}function b4e(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=aC(r,o,A,n),d=aC(i,s,A,n),p=aC(a,u,A,n);f=f+h+d+p,c.push(f)}return c}function w4e(e,t){const n=_4e[e];return n[t%n.length]}function B4e(e,t){let n=0;for(let r=0;r<t.length;r++)n+=t.charCodeAt(r);return w4e(e,n)}const pf=e=>`$${e.toFixed(2)}`,$r=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]}`},ei=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]}`},iP=e=>e>6e4?e>36e5?e>864e5?Math.floor(e/864e5)+" days":Math.floor(e/36e5)+" hrs":Math.floor(e/6e4)+" mins":e+" ms",aP=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]}`},x4e={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=zt("#"+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 p=new Date(d.slots).toUTCString(),m=this.unit==="Bytes (B)"?ei(d.values)+"B":this.unit==="Percent (%)"?d.values.toFixed(2)+"%":$r(d.values),g=d.action?`${d.action}<br>Time: ${p}<br>Value: ${m}`:`Alert<br>Time: ${p}<br>Value: ${m}`;h.target.r.baseVal.value=5,zt("#"+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,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};(()=>{const h=t.filter(_=>!u.includes(_.index)),d=this.getAxisLargest(h),p=EA(Ci(d[0]),[s,n-a]),m=Ms([0,d[1]],[r-o,i]),g=this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${r-o})`).call(ko(p).ticks(n/80).tickSizeOuter(0));if(this.svg.append("g").attr("class",this.id+"yaxis").attr("transform",`translate(${s},0)`).call(Jd(m).ticks(r/40).tickFormat(_=>this.unit==="Bytes (B)"?ei(_):$r(_))).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=(x,L)=>{const N=x.selection;if(N)p.domain([p.invert(N[0]),p.invert(N[1])]),this.svg.select("."+this.id+"brush").call(M.move,null);else{if(!_)return _=setTimeout(b,500);p.domain(Ci(e.slots))}g.transition().duration(1e3).call(ko(p)),this.svg.selectAll("."+this.id+"line").attr("d",function(H){return y(H.values.map((S,F)=>({slots:e.slots[F],values:S})))}),this.svg.selectAll("."+this.id+"points").attr("cx",H=>p(H.slots))},M=j5e().extent([[0,0],[n,r]]).on("end",w);this.svg.append("g").attr("class",x=>this.id+"brush").call(M),this.svg.on("dblclick",function(){p.domain(Ci(d[0],function(x){return x})),g.transition().call(ko(p)),this.svg.selectAll("."+this.id+"line").attr("d",function(x){return y(x.values.map((L,N)=>({slots:e.slots[N],values:L})))}),this.svg.selectAll("."+this.id+"points").attr("cx",x=>p(x.slots))})}const y=jg().x((_,b)=>p(_.slots)).y((_,b)=>m(_.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",_=>d_[this.theme][_.action]||Kn[_.index%Kn.length]).style("stroke-dasharray","3, 3").attr("stroke-width",1).attr("d",function(_){return y(_.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",d_[this.theme].Alert).attr("stroke-width",1.5).attr("d",function(_){return y(_.slots.map((b,w)=>({slots:b,values:_.values[w]})))});const v=e.slots.map((_,b)=>({slots:_,values:e.values[b],isAlert:e.metric.bools[b]}));this.svg.selectAll(".point").data(v).enter().append("circle").attr("class",(_,b)=>this.id+b+"points "+this.id+"points").attr("fill",Kn[3]).attr("display",_=>_.isAlert?"":"none").attr("r",3).attr("cx",_=>p(_.slots)).attr("cy",_=>m(_.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=zt("#"+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=>d_[this.theme][h.action]||Kn[h.index%Kn.length]),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=>d_[this.theme][h.action]||Kn[h.index%Kn.length]).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]}}},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,class:"float-left"},[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(`height: ${n.height}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,k4e)],4)],64)}const oC=pr(x4e,[["render",M4e]]),E4e={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=zt("#"+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)=>{Dn("."+this.id+"run").attr("opacity","0.5"),zt("."+this.id+f.taskID).attr("opacity","1");const h=mt(f.launchTime).format("YYYY-MM-DD HH:mm:ss"),d=mt(f.completeTime).format("YYYY-MM-DD HH:mm:ss"),p=mt(f.completeTime).diff(mt(f.launchTime)),m=`Task: ${f.taskID}<br>Status: ${f.status}<br>Launch Time: ${h}<br>Complete Time: ${d}<br>Duration: ${iP(p)}`;zt("#"+this.id+"tooltip").html(m).style("opacity",1).style("left",A[this.tooltipOffset+"X"]+10+"px").style("top",A[this.tooltipOffset+"Y"]+"px")},s=(A,f)=>{Dn("."+this.id+"run").attr("opacity","1"),zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},u=this.runs.map(A=>mt(A.launchTime).valueOf());u.length===1&&(u.push(mt(u[0]).add(2,"minute").valueOf()),u.push(mt(u[0]).subtract(2,"minute").valueOf()));const c=hD(Ci(u),[a,e-r]);this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${t-i})`).call(ko(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(mt(A.launchTime).valueOf())).attr("y",n).attr("width",A=>{const f=c(mt(A.completeTime).valueOf())-c(mt(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 FA[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)}}},L4e=["id"],T4e=["id"];function N4e(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,T4e)],8,L4e)}const F4e=pr(E4e,[["render",N4e]]),O4e={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=zt("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(e){let t=[];e.forEach((g,y)=>{g.index=y,g.values=g.values.map(_=>isNaN(_)?0:_);const v=g.values.reduce((_,b)=>_+b,0);g.total=isNaN(v)?0:v,this.hideZeros?v>0&&t.push(g):t.push(g)}),t=t.sort((g,y)=>y.total-g.total),e=e.sort((g,y)=>y.total-g.total);const n=this.width,r=this.height,i=20,a=15,o=30,s=50,u=[],c=(g,y)=>{const v=this.isTime?new Date(y.slots).toUTCString():y.slots,_=this.unit==="Bytes (B)"||this.unit==="B"?ei(y.values)+"B":this.unit==="Percent (%)"?y.values.toFixed(2)+"%":this.unit==="$"?"$"+y.values.toFixed(2):$r(y.values),b=y.action?`${y.action}<br>${this.isTime?"Time":this.slotName}: ${v}<br>${this.valueName}: ${_}`:`${this.isTime?"Time":this.slotName}: ${v}<br>${this.valueName}: ${_}`;g.target.r.baseVal.value=5,zt("#"+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,y)=>{g.target.r.baseVal.value=3,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},f=(g,y)=>{const v=y.index;g.target.classList.contains("show")&&(Dn("."+this.id+"line").attr("stroke-width",1),Dn("."+this.id+v+"line").attr("stroke-width",2.5),Dn("."+this.id+"points").attr("r",1),Dn("."+this.id+v+"points").attr("r",3),Dn("#"+this.id+v+"dots").attr("r",6),Dn("."+this.id+v+"labels").attr("font-weight",1e3))},h=(g,y)=>{const v=y.index;Dn("."+this.id+"line").attr("stroke-width",1.5),Dn("."+this.id+"points").attr("r",2.5),Dn("#"+this.id+v+"dots").attr("r",5),Dn("."+this.id+v+"labels").attr("font-weight",500)},d=(g,y)=>{const v=y.index;g.target.classList.contains("show")?(u.push(v),g.target.classList.remove("show"),g.target.classList.add("hide"),Dn("#"+this.id+v+"dots").attr("opacity","0.5")):(u.splice(u.indexOf(v),1),g.target.classList.remove("hide"),g.target.classList.add("show"),Dn("#"+this.id+v+"dots").attr("opacity","1")),Dn("."+this.id+"line").remove(),Dn("."+this.id+"points").remove(),zt("."+this.id+"xaxis").remove(),zt("."+this.id+"yaxis").remove(),p()},p=()=>{var L;const g=t.filter(N=>!u.includes(N.index)),y=this.getAxisLargest(g),v=this.isTime?EA(Ci(y[0]),[s,n-a]):MA(y[0],[s,n-a]),_=Ms([0,y[1]],[r-o,i]);this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${r-o})`).call(this.isTime?ko(v).ticks(n/80).tickSizeOuter(0):ko(v).ticks(n/20).tickSizeOuter(0).tickFormat(N=>{if(!this.isTime)return mA(N,(n-a)/y[0].length*8)})),this.svg.append("g").attr("class",this.id+"yaxis").attr("transform",`translate(${s},0)`).call(Jd(_).ticks(r/40).tickFormat(N=>this.unit==="Bytes (B)"||this.unit==="B"?ei(N):$r(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=jg().x((N,H)=>v(N.slots)).y((N,H)=>_(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=>FA[this.theme][N.action]||Kn[N.index%Kn.length]).attr("stroke-width",1.5).attr("d",function(N){return b(N.slots.map((H,S)=>({slots:H,values:N.values[S]})))}),M=((L=w.node())==null?void 0:L.getTotalLength())||0,x=1200;w.attr("stroke-dasharray",M+" "+M).attr("stroke-dashoffset",M).transition().duration(x).ease(L5e).attr("stroke-dashoffset",0);for(const N of g){const H=N.slots.map((S,F)=>({index:N.index,action:N.action,slots:S,values:N.values[F]}));this.svg.selectAll(".point").data(H).enter().append("circle").attr("class",S=>this.id+S.index+"points "+this.id+"points").attr("fill",S=>FA[this.theme][N.action]||Kn[S.index%Kn.length]).attr("r",2.5).attr("cx",S=>v(S.slots)).attr("cy",S=>_(S.values)).attr("opacity",0).on("mouseover",c).on("mouseout",A).transition().delay((S,F)=>F/H.length*x).duration(250).attr("opacity",1)}};p(),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 m=Math.max(...e.map(g=>phe(g.action||"(no name)")),0);this.legend=zt("#"+this.id+"legend").append("svg").attr("width",m/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,y)=>r/(e.length+1)+y*25+4).attr("r",5).style("fill",g=>FA[this.theme][g.action]||Kn[g.index%Kn.length]).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,y)=>r/(e.length+1)+y*25+5).style("fill",g=>FA[this.theme][g.action]||Kn[g.index%Kn.length]).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]}}},I4e=["id"],D4e=["id"],U4e=["id"];function P4e(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,D4e)],8,I4e),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,U4e)],4)):l.createCommentVNode("",!0)],64)}const qg=pr(O4e,[["render",P4e]]),H4e={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=zt("#"+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=EA(Ci(e.slots),[o,t-i]),c=this.title?[n-a,r+30]:[n-a,r],A=Ms([0,s],c),f=(d,p)=>{const m=new Date(p.slots).toUTCString(),g=this.unit==="Bytes (B)"||this.unit==="B"?ei(p.values)+"B":this.unit==="Percent (%)"?p.values.toFixed(2)+"%":this.unit==="Cost ($)"?pf(p.values):$r(p.values),y=zt("#"+this.id+"tooltip").html(`${this.data.name}<br>${m}<br>${this.valueName}: ${g}`).style("opacity",1).style("top",d.layerY+"px");if(d.layerX>t*3/4){const v=y.node().getBoundingClientRect().width;y.style("left",d.layerX-v+"px")}else y.style("left",d.layerX+"px")},h=(d,p)=>{zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};if(this.svg.append("g").attr("transform",`translate(0,${n-a})`).call(ko(u).ticks(t/80).tickSizeOuter(0)),this.svg.append("g").attr("transform",`translate(${o},0)`).call(Jd(A).ticks(n/40).tickFormat(d=>this.unit==="Bytes (B)"||this.unit==="B"?ei(d):this.unit==="Cost ($)"?pf(d):$r(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((p,m)=>({slots:p,values:e.values[m]}));this.svg.selectAll(".rect").data(d).enter().append("rect").attr("class",p=>this.id+"bar").attr("z-index",1).attr("x",p=>u(p.slots)-2).attr("y",p=>A(p.values)).attr("width",10).attr("height",p=>n-a-A(p.values)).attr("fill",Kn[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")}}},Y4e=["id"],R4e=["id"];function Q4e(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,R4e)],8,Y4e)}const j4e=pr(H4e,[["render",Q4e]]),V4e={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=zt("#"+this.id).append("svg").attr("viewBox",`0 0 ${this.width} ${this.title?this.height+40:this.height}`):this.svg=zt("#"+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((A,f,h)=>(A[h]=f||"(no name)",A),{}),u=(A,f)=>{const h=this.unit==="Bytes (B)"||this.unit==="B"?ei(f.values)+"B":this.unit==="Percent (%)"?f.values.toFixed(2)+"%":$r(f.values);A.target.style.opacity=.4,zt("#"+this.id+"tooltip").html(`${f.field?f.field:"(no name)"}<br>${this.valueName}: ${h}`).style("opacity",1).style("left",A[this.tooltipOffset+"X"]+10+"px").style("top",A[this.tooltipOffset+"Y"]+"px")},c=(A,f)=>{A.target.style.opacity=0,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};if(e.fields&&e.fields.length>0){let A=this.unit==="Percent (%)"?100:0;e.values.forEach(m=>{m>A&&(A=m)}),A===0&&(A=1);const f=Ms([0,A],[o,t-i-o]),h=this.title?[n-a,r+30]:[n-a,r],d=MA().range(h).domain(e.fields.map((m,g)=>g)).padding(.2),p=e.fields.map((m,g)=>({field:m,values:e.values[g]||0}));this.svg.selectAll(".rect").data(p).enter().append("rect").attr("class",m=>this.id+"bar").attr("z-index",1).attr("x",m=>f(0)).attr("y",(m,g)=>d(g)).attr("width",m=>0).attr("height",d.bandwidth()).attr("fill",(m,g)=>Kn[g%Kn.length]).style("opacity",.8),this.svg.selectAll("rect").transition().duration(500).attr("x",m=>f(0)).attr("width",m=>f(m.values)-o).delay((m,g)=>g*50),this.svg.selectAll(".rect").data(p).enter().append("rect").attr("class",m=>this.id+"barEmpty").attr("z-index",1).attr("x",m=>f(0)).attr("y",(m,g)=>d(g)).attr("width",this.width-o).attr("height",d.bandwidth()).attr("fill",(m,g)=>Kn[g%Kn.length]).style("opacity",0).on("mouseover",u).on("mouseout",c),this.svg.append("g").attr("transform",`translate(0,${r})`).call(rbe(f).ticks(5).tickFormat(m=>this.unit==="Bytes (B)"||this.unit==="B"?ei(m):this.unit==="Cost ($)"?pf(m):$r(m))),this.svg.append("g").attr("transform",`translate(${o},0)`).call(ibe(d).tickSize(0).tickFormat(m=>s[m])).call(m=>m.select(".domain").remove()).call(m=>m.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")}}},z4e=["id"],q4e=["id"];function K4e(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,q4e)],8,z4e)}const oP=pr(V4e,[["render",K4e]]),G4e={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}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.resizable?this.svg=zt("#"+this.id).append("svg").attr("viewBox",`0 0 ${this.width} ${this.height}`):this.svg=zt("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height);const e=this.data.color?this.data.color:Pi[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",Pi[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:Pi[this.theme][this.change];let A=this.unit==="Percent (%)"?100:0;e.values.forEach(w=>{w>A&&(A=w)});const f=EA(Ci(e.slots),[o,t-i]),h=Ms([0,A],[n-a,r]),d=(w,M)=>{const x=new Date(M.slots).toUTCString(),L=this.unit==="Bytes (B)"?ei(M.values)+"B":this.unit==="Percent (%)"?M.values.toFixed(2)+"%":$r(M.values);w.target.r.baseVal.value=u,zt("#"+this.id+"tooltip").html(`Time: ${x}<br>${this.valueName}: ${L}`).style("opacity",1).style("left",w[this.tooltipOffset+"X"]+15+"px").style("top",w[this.tooltipOffset+"Y"]+"px")},p=(w,M)=>{w.target.r.baseVal.value=s,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},m=jg().x((w,M)=>f(w.slots)).y((w,M)=>h(w.values)),g=UCe().x((w,M)=>f(w.slots)).y0(n-a).y1((w,M)=>h(w.values)),y=this.svg,v=this;y.selectAll("g").data([e]).join(w=>_(w),w=>_(w),w=>b(w));function _(w){w.append("g").call(M=>{M.append("g").call(x=>{x.append("g").attr("id",v.id+"xaxis").attr("transform",`translate(0,${n-a})`).call(ko(f).ticks(v.hideAxis?0:t/80).tickSizeOuter(0)),x.append("g").attr("id",v.id+"yaxis").attr("transform",`translate(${o},0)`).call(Jd(h).ticks(v.hideAxis?0:n/40).tickFormat(L=>v.unit==="Bytes (B)"?ei(L):$r(L))).call(L=>v.hideAxis?L.select(".domain").attr("stroke-width",.5):L.select(".domain").remove()).call(L=>L.selectAll(".tick line").clone().attr("x2",t-o-i).attr("stroke-opacity",.1)).call(L=>L.append("text").attr("x",-o).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(v.hideAxis?"":v.unit))})}).call(M=>{M.append("g").call(x=>{if(x.append("path").attr("class",L=>v.id+"line").attr("z-index",1).attr("stroke",c).attr("stroke-width",1.5).attr("d",function(L){const N=L.slots.map((H,S)=>({slots:H,values:e.values[S]}));return m(N)}).attr("class","area").attr("d",function(L){const N=L.slots.map((H,S)=>({slots:H,values:e.values[S]}));return g(N)}).attr("fill","url(#gradientFill"+v.id+")"),!v.hideTooltip){const L=v.data.slots.map((N,H)=>({slots:N,values:v.data.values[H]}));x.append("g").call(N=>L.forEach(H=>{N.append("circle").attr("class",S=>v.id+"points").attr("stroke",c).attr("r",s).attr("cx",S=>f(H.slots)).attr("cy",S=>h(H.values)).on("mouseover",S=>d(S,H)).on("mouseout",S=>p(S))}))}})})}function b(w){w.call(M=>M.style("opacity",0).remove())}}}},W4e=["id"],X4e=["id"];function J4e(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,X4e)],8,W4e)}const sP=pr(G4e,[["render",J4e]]),Z4e={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=zt("#"+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,y)=>{const v=this.isTime?new Date(y.data[0]).toUTCString():y.data[0],_=y[1]-y[0],b=this.names[y.key]||y.key,w=this.unit==="Bytes (B)"?ei(_)+"B":this.unit==="Percent (%)"?_.toFixed(2)+"%":this.unit==="Cost ($)"?"$"+_.toFixed(2):$r(_);g.target.style.opacity=.7,zt("#"+this.id+"tooltip").html(`${b}<br>${this.isTime?"Time":this.slotName}: ${v}<br>${this.valueName}: ${w}`).style("opacity",1).style("left",g[this.tooltipOffset+"X"]+10+"px").style("top",g[this.tooltipOffset+"Y"]+"px")},A=(g,y)=>{g.target.style.opacity=1,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},f=(g,y)=>{const v=u.indexOf(y.key);Dn("."+this.id+"bar").style("opacity",.7),Dn("."+this.id+v+"bar").style("opacity",1),Dn("#"+this.id+v+"dots").attr("r",6),Dn("."+this.id+v+"labels").attr("font-weight",1e3)},h=(g,y)=>{const v=u.indexOf(y.key);Dn("."+this.id+"bar").style("opacity",1),Dn("#"+this.id+v+"dots").attr("r",5),Dn("."+this.id+v+"labels").attr("font-weight",500)},d=(g,y)=>{const v=u.indexOf(y.key);zt("."+this.id+"xaxis").remove(),zt("."+this.id+"yaxis").remove(),Dn("#"+this.id+" rect").remove(),g.target.classList.contains("show")?(s.push(y.key),g.target.classList.remove("show"),g.target.classList.add("hide"),Dn("#"+this.id+v+"dots").attr("opacity","0.5")):(s.splice(s.indexOf(y.key),1),g.target.classList.remove("hide"),g.target.classList.add("show"),Dn("#"+this.id+v+"dots").attr("opacity","1")),p()},p=()=>{const g=e.series.filter(w=>!s.includes(w.name)),y=nP().keys(d7(g.map(w=>w.name))).value((w,M)=>w[1].get(M)===void 0?0:w[1].get(M).value)(o7(g,w=>w.slot,w=>w.name)),v=this.isTime?EA(Ci(e.slots),[o,t-i]):MA(e.slots,[o,t-i]),_=this.title?[n-a,r+30]:[n-a,r],b=Ms([0,ma(y,w=>ma(w,M=>M[1]))],_);return this.svg.append("g").attr("transform",`translate(0,${n-a})`).attr("class",this.id+"xaxis").call(this.isTime?ko(v).ticks(t/80).tickSizeOuter(0):ko(v).ticks(t/20).tickSizeOuter(0).tickFormat(w=>{if(!this.isTime)return mA(w,(t-i)/e.slots.length*8)})),this.svg.append("g").attr("transform",`translate(${o},0)`).attr("class",this.id+"yaxis").call(Jd(b).ticks(n/40).tickFormat(w=>this.unit==="Bytes (B)"?ei(w):this.unit==="Cost ($)"?pf(w):$r(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(y).join("g").attr("fill",w=>iC[this.theme][w.key]||Kn[u.indexOf(w.key)%Kn.length]).selectAll("rect").data(w=>w.map(M=>(M.key=w.key,M))).join("rect").attr("class",w=>{const M=u.indexOf(w.key);return`${this.id}${M}bar ${this.id}bar`}).attr("x",w=>v(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(v.step()-5,15)).on("mouseover",c).on("mouseout",A),y},m=p();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=zt("#"+this.id+"legend").append("svg").attr("width",Math.max(this.width,m.length*125)).attr("height",20),this.legend.selectAll("legendDots").data(m).enter().append("circle").attr("id",g=>this.id+u.indexOf(g.key)+"dots").attr("class","show").attr("cx",(g,y)=>t/(m.length+1)+y*120-10).attr("cy",15).attr("r",5).attr("fill",(g,y)=>iC[this.theme][g.key]||Kn[y%Kn.length]).on("mouseover",f).on("mouseout",h).on("click",d),this.legend.selectAll("legendLabels").data(m).enter().append("text").attr("class",g=>this.id+u.indexOf(g.key)+"labels").attr("x",(g,y)=>t/(m.length+1)+y*120).attr("y",15).attr("fill",(g,y)=>iC[this.theme][g.key]||Kn[y%Kn.length]).text((g,y)=>mA(this.names[g[0].key],700)).attr("font-weight",500).attr("text-anchor","left").attr("font-size","11px").style("alignment-baseline","middle")}}},$4e=["id"],eSe=["id"],tSe=["id"];function nSe(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,eSe)],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,tSe)],4)],64)}const Kg=pr(Z4e,[["render",nSe]]),rSe={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=zt("#"+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],M=b[1]-b[0],x=b.key.split(":")[0],L=this.names[b.key.split(":")[1]]||b.key.split(":")[1],N=this.unit==="Bytes (B)"?ei(M)+"B":this.unit==="Percent (%)"?M.toFixed(2)+"%":this.unit==="Cost ($)"?"$"+M.toFixed(2):$r(M);_.target.style.opacity=.7,zt("#"+this.id+"tooltip").html(`${x}<br>Instance: ${L}<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")},p=(_,b)=>{_.target.style.opacity=1,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},m=(_,b)=>{const w=A.indexOf(b);Dn("."+this.id+"bar").style("opacity",.7),Dn("."+this.id+w+"bar").style("opacity",1),Dn("#"+this.id+w+"dots").attr("r",6),Dn("."+this.id+w+"labels").attr("font-weight",1e3)},g=(_,b)=>{const w=A.indexOf(b);Dn("."+this.id+"bar").style("opacity",1),Dn("#"+this.id+w+"dots").attr("r",5),Dn("."+this.id+w+"labels").attr("font-weight",500)},y=(_,b)=>{const w=A.indexOf(b);zt("."+this.id+"xaxis").remove(),zt("."+this.id+"yaxis").remove(),Dn("#"+this.id+" rect").remove(),_.target.classList.contains("show")?(c.push(b),_.target.classList.remove("show"),_.target.classList.add("hide"),Dn("#"+this.id+w+"dots").attr("opacity","0.5")):(c.splice(c.indexOf(b),1),_.target.classList.remove("hide"),_.target.classList.add("show"),Dn("#"+this.id+w+"dots").attr("opacity","1")),v()},v=()=>{const _=h.filter(I=>!c.includes(I.action)),b=_.map(I=>I.slot).filter((I,E,P)=>P.indexOf(I)===E),w=ma(b),M=Nh(b),x=(w-M)/20,L=!w||!M?null:w+x,N=this.isTime?EA(Ci([...b,L]),[o,t-i]):MA(b,[o,t-i]),H=ma(_,I=>I.value),S=[n-a,r];for(const I of A)if(!c.includes(I)){const E=A.indexOf(I),P=h.filter(z=>z.action===I),K=nP().keys(d7(P.map(z=>z.action+":"+z.instance))).value((z,J)=>z[1].get(J)===void 0?0:z[1].get(J).value)(o7(P,z=>z.slot,z=>z.action+":"+z.instance)),q=Ms([0,H],S);this.svg.append("g").selectAll().data(K).join("g").attr("fill",z=>FA.scale[z.key.split(":")[0]](.5*f.indexOf(z.key.split(":")[1])/f.length+.5)||Kn[A.indexOf(z.key.split(":")[0])%Kn.length]).selectAll("rect").data(z=>z.map(J=>(J.key=z.key,J))).join("rect").attr("class",z=>`${this.id}${E}bar ${this.id}bar`).attr("x",z=>N(z.data[0])+30*E/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",p).transition().duration(1e3).attr("y",z=>q(z[1])).attr("height",z=>q(z[0])-q(z[1]))}const F=Ms([0,H],S);this.svg.append("g").attr("transform",`translate(0,${n-a})`).attr("class",this.id+"xaxis").call(this.isTime?ko(N).ticks(t/80).tickSizeOuter(0):ko(N).ticks(t/20).tickSizeOuter(0).tickFormat(I=>{if(!this.isTime)return mA(I,(t-i)/b.length*8)})),this.svg.append("g").attr("transform",`translate(${o},0)`).attr("class",this.id+"yaxis").call(Jd(F).ticks(n/40).tickFormat(I=>this.unit==="Bytes (B)"?ei(I):this.unit==="Cost ($)"?pf(I):$r(I))).call(I=>I.select(".domain").remove()).call(I=>I.selectAll(".tick line").clone().attr("x2",t-o-i).attr("stroke-opacity",.1)).call(I=>I.append("text").attr("x",-o).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit))};v(),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=zt("#"+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)=>FA[this.theme][_]||Kn[b%Kn.length]).on("mouseover",m).on("mouseout",g).on("click",y),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)=>FA[this.theme][_]||Kn[b%Kn.length]).text((_,b)=>mA(_,700)).attr("font-weight",500).attr("text-anchor","left").attr("font-size","11px").style("alignment-baseline","middle")}}},iSe=["id"],aSe=["id"],oSe=["id"];function sSe(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,aSe)],8,iSe),l.createElementVNode("div",{class:"overflow-auto",style:l.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,oSe)],4)],64)}const lSe=pr(rSe,[["render",sSe]]),uSe={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()},methods:{initializeChart(){this.svg=zt("#"+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=YCe().value(b=>b.values),o=Gx().innerRadius(0).outerRadius(r),s=Gx().innerRadius(r*.9).outerRadius(r*.9),u=(b,w)=>{const M=!b.target.id||b.target.id.endsWith("dots")?t/2:b[this.tooltipOffset+"Y"],x=!b.target.id||b.target.id.endsWith("dots")?0:b[this.tooltipOffset+"X"],L=i[w.data.field],N=this.unit==="Bytes (B)"||this.unit==="B"?ei(w.data.values)+"B":this.unit==="Percent (%)"?w.data.values.toFixed(2)+"%":$r(w.data.values);Dn("."+this.id+"pie").style("opacity",.4),zt("#"+this.id+L+"pie").style("opacity",1),Dn("."+this.id+"labels").style("opacity",.4),zt("#"+this.id+L+"labels").style("opacity",1),zt("#"+this.id+L+"polyline").style("opacity",1),zt("#"+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",x+10+"px").style("top",M+"px")},c=()=>{Dn("."+this.id+"pie").style("opacity",.8),Dn("."+this.id+"labels").style("opacity",1),zt("#"+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,m=(b=>{const w=r<100?12:14;return b.map((M,x)=>{if(x===0)return M;if(!f){const H=b[x-1].pos[1]-M.pos[1]+w;return M.pos[1]+=H,M}const L=(b[x-1].startAngle+b[x-1].endAngle)/2,N=(M.startAngle+M.endAngle)/2;if(L<Math.PI&&N>Math.PI)return M;if(L>Math.PI&&N<Math.PI)return M;if(N>Math.PI){const H=b[x-1].pos[1]-M.pos[1]+w;H>0&&(M.pos[1]+=H)}else{const H=M.pos[1]-b[x-1].pos[1]+w;H>0&&(M.pos[1]-=H)}return M})})(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,y=this;g.selectAll("g").data(m).join(b=>v(b),b=>v(b),b=>_(b));function v(b){const w=b.append("g"),M=b.append("g");w.append("path").attr("class",y.id+"pie").attr("id",x=>y.id+i[x.data.field]+"pie").attr("transform",`translate(${e/2},${t/2+10})`).attr("d",x=>(f||(x.endAngle=Math.PI*A.length),o(x))).attr("fill",(x,L)=>f?Kn[L%Kn.length]:Kn[0]).style("opacity",.8).style("fill-opacity",0).on("mouseover",u).on("mouseout",c).transition().duration(800).attrTween("d",function(x){const L=fu(y._current,x);return y._current=L(1),N=>o(L(N))}).style("fill-opacity",1),M.append("polyline").attr("class",y.id+"labels").attr("id",x=>y.id+i[x.data.field]+"polyline").attr("points",x=>{const L=x.pos,H=(x.startAngle+x.endAngle)/2<Math.PI?r*1.1:-r*1.1;if(!f){const S=-r*1.1;return[o.centroid({startAngle:0,endAngle:0}),s.centroid({startAngle:0,endAngle:0}),[S,L[1]]]}return[o.centroid(x),s.centroid(x),[H,L[1]]]}).attr("fill","none").style("stroke",y.theme==="dark"?"white":"black").attr("transform",`translate(${e/2},${t/2})`).style("opacity",0).transition().duration(800).style("opacity",1),M.append("text").attr("class",y.id+"labels").attr("id",x=>y.id+i[x.data.field]+"labels").attr("transform",x=>{const L=x.pos;return`translate(${((x.startAngle+x.endAngle)/2<Math.PI?r*1.15:-r*1.15)+e/2},${L[1]+t/2})`}).attr("text-anchor",x=>(x.startAngle+x.endAngle)/2<Math.PI?"start":"end").attr("font-size",r<100?"9px":"11px").style("fill",y.theme==="dark"?"white":"black").text(x=>x.data.field===0?0:x.data.field?mA(x.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())}}}},cSe=["id"],ASe=["id"],dSe=["id"];function fSe(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,ASe)],8,cSe),l.createElementVNode("div",{class:"overflow-auto",style:l.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,dSe)],4)],64)}const lP=pr(uSe,[["render",fSe]]),hSe={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}},mounted(){this.initializeChart(),this.createChart()},methods:{initializeChart(){this.svg=zt("#"+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=Gx().innerRadius(n*.7).outerRadius(n).startAngle(0);this.svg.append("path").datum({endAngle:2*Math.PI}).attr("d",i).attr("fill",Pi[this.theme].canvas).attr("transform",`translate(${e/2},${t/2})`),this.svg.append("path").datum({endAngle:0}).attr("d",i).attr("fill",Pi[this.theme].secondary).attr("transform",`translate(${e/2},${t/2})`).transition().duration(1e3).call(a=>a.attrTween("d",o=>{const s=fu(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",Pi[this.theme].text).attr("transform",`translate(${e/2},${t/2})`).transition().duration(1e3).tween("text",function(){const a=fu(0,r*100);return function(o){this.textContent=`${Math.round(a(o))}%`}})}}},pSe=["id"];function mSe(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id,class:"float-left"},null,8,pSe)}const gSe=pr(hSe,[["render",mSe]]);function OA(e){return e!=null&&!Number.isNaN(e)}function mf(e,t){return+OA(t)-+OA(e)||xA(e,t)}function sC(e,t){return+OA(t)-+OA(e)||eg(e,t)}function lC(e){return e!=null&&`${e}`!=""}function uP(e){return isFinite(e)?e:NaN}function f_(e){return e>0&&isFinite(e)?e:NaN}function uC(e){return e<0&&isFinite(e)?e:NaN}function vSe(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`${ySe(e.getUTCFullYear())}-${Bc(e.getUTCMonth()+1,2)}-${Bc(e.getUTCDate(),2)}${n||r||i||a?`T${Bc(n,2)}:${Bc(r,2)}${i||a?`:${Bc(i,2)}${a?`.${Bc(a,3)}`:""}`:""}Z`:""}`}function ySe(e){return e<0?`-${Bc(-e,6)}`:e>9999?`+${Bc(e,6)}`:Bc(e,4)}function Bc(e,t){return`${e}`.padStart(t,"0")}const _Se=/^(?:[-+]\d{2})?\d{4}(?:-\d{2}(?:-\d{2})?)?(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{3})?)?(?:Z|[-+]\d{2}:?\d{2})?)?$/;function cP(e,t){return _Se.test(e+="")?new Date(e):typeof t=="function"?t(e):t}function $h(e){if(e==null)return;const t=e[0],n=e[e.length-1];return eg(t,n)}const ep=1e3,IA=ep*60,DA=IA*60,_u=DA*24,bu=_u*7,gf=_u*30,UA=_u*365,cC=[["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",ep],["5 seconds",5*ep],["15 seconds",15*ep],["30 seconds",30*ep],["minute",IA],["5 minutes",5*IA],["15 minutes",15*IA],["30 minutes",30*IA],["hour",DA],["3 hours",3*DA],["6 hours",6*DA],["12 hours",12*DA],["day",_u],["2 days",2*_u],["week",bu],["2 weeks",2*bu],["month",gf],["3 months",3*gf],["6 months",6*gf],["year",UA],["2 years",2*UA],["5 years",5*UA],["10 years",10*UA],["20 years",20*UA],["50 years",50*UA],["100 years",100*UA]],AC=new Map([["second",ep],["minute",IA],["hour",DA],["day",_u],["monday",bu],["tuesday",bu],["wednesday",bu],["thursday",bu],["friday",bu],["saturday",bu],["sunday",bu],["week",bu],["month",gf],["year",UA]]),AP=new Map([["second",pl],["minute",Mg],["hour",Lg],["day",cf],["monday",Ng],["tuesday",VI],["wednesday",zI],["thursday",df],["friday",qI],["saturday",KI],["sunday",Wh],["week",Wh],["month",Og],["year",ml]]),dC=new Map([["second",pl],["minute",Eg],["hour",Tg],["day",Gy],["monday",Fg],["tuesday",GI],["wednesday",WI],["thursday",hf],["friday",XI],["saturday",JI],["sunday",Xh],["week",Xh],["month",Ig],["year",gl]]),Gg=Symbol("intervalDuration"),h_=Symbol("intervalType");for(const[e,t]of AP)t[Gg]=AC.get(e),t[h_]="time";for(const[e,t]of dC)t[Gg]=AC.get(e),t[h_]="utc";const Wg=[["year",gl,"utc"],["month",Ig,"utc"],["day",Gy,"utc",6*gf],["hour",Tg,"utc",3*_u],["minute",Eg,"utc",6*DA],["second",pl,"utc",30*IA]],p_=[["year",ml,"time"],["month",Og,"time"],["day",cf,"time",6*gf],["hour",Lg,"time",3*_u],["minute",Mg,"time",6*DA],["second",pl,"time",30*IA]],bSe=[Wg[0],p_[0],Wg[1],p_[1],Wg[2],p_[2],...Wg.slice(3)];function dP(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=dC.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 fP(e){return hP(dP(e),"time")}function fC(e){return hP(dP(e),"utc")}function hP([e,t],n){let r=(n==="time"?AP:dC).get(e);return t>1&&(r=r.every(t),r[Gg]=AC.get(e)*t,r[h_]=n),r}function pP(e,t){if(!(t>1))return;const n=e[Gg];if(!cC.some(([,i])=>i===n)||n%_u===0&&_u<n&&n<gf)return;const[r]=cC[Q1(([,i])=>Math.log(i)).center(cC,Math.log(n*t))];return(e[h_]==="time"?fP:fC)(r)}function mP(e,t,n){const r=t==="time"?Qx:Hg;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=wSe(n);switch(e){case"millisecond":return tp(r(".%L"),r(":%M:%S"),i);case"second":return tp(r(":%S"),r("%-I:%M"),i);case"minute":return tp(r("%-I:%M"),r("%p"),i);case"hour":return tp(r("%-I %p"),r("%b %-d"),i);case"day":return tp(r("%-d"),r("%b"),i);case"month":return tp(r("%b"),r("%Y"),i);case"year":return r("%Y")}throw new Error("unable to format time ticks")}function wSe(e){return e==="left"||e==="right"?(t,n)=>`
|
|
90
|
+
mt.version="2.30.1",dge(qr),mt.fn=yt,mt.min=eve,mt.max=tve,mt.now=nve,mt.utc=ou,mt.unix=L1e,mt.months=N1e,mt.isDate=Qm,mt.locale=wA,mt.invalid=b1,mt.duration=Al,mt.isMoment=ul,mt.weekdays=O1e,mt.parseZone=T1e,mt.localeData=uc,mt.isDuration=I1,mt.monthsShort=F1e,mt.weekdaysMin=D1e,mt.defineLocale=tB,mt.updateLocale=T0e,mt.locales=N0e,mt.weekdaysShort=I1e,mt.normalizeUnits=ws,mt.relativeTimeRounding=uye,mt.relativeTimeThreshold=cye,mt.calendarFormat=kve,mt.prototype=yt,mt.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 dye={class:"col"},fye={__name:"DatePickerInput",props:{from:Number,to:Number},emits:["selectTime"],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 p=!1;c(A)&&(d[0]=s(A),p=!0),c(f)&&(d[1]=s(f),p=!0),p?i.value=d:o()},{immediate:!0}),l.watch(i,A=>{Array.isArray(A)&&A.length===2&&A[0]&&A[1]&&r("selectTime",[mt(A[0]).valueOf(),mt(A[1]).valueOf()])},{deep:!0});function a(){const A=mt().valueOf();return[{label:"Last Hour",atClick:()=>[mt().subtract(1,"hours").valueOf(),A]},{label:"Last Three Hours",atClick:()=>[mt().subtract(3,"hours").valueOf(),A]},{label:"Last Six Hours",atClick:()=>[mt().subtract(6,"hours").valueOf(),A]},{label:"Last Twelve Hours",atClick:()=>[mt().subtract(12,"hours").valueOf(),A]},{label:"Last Day",atClick:()=>[mt().subtract(1,"days").valueOf(),A]},{label:"Last Three Days",atClick:()=>[mt().subtract(3,"days").valueOf(),A]},{label:"Last Week",atClick:()=>[mt().subtract(7,"days").valueOf(),A]}]}function o(){i.value=u()}function s(A){return mt(A).format("YYYY-MM-DD HH:mm:ss")}function u(){return[s(mt().subtract(1,"hours")),s(mt())]}function c(A){return typeof A=="number"&&!Number.isNaN(A)&&A>0}return(A,f)=>(l.openBlock(),l.createElementBlock("div",dye,[l.createVNode(l.unref(_1),{shortcuts:a,modelValue:i.value,"onUpdate:modelValue":f[0]||(f[0]=h=>i.value=h)},null,8,["modelValue"])]))}},hye={key:0},pye={key:1},mye={key:2},gye=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",hye,[l.createVNode(l.unref(lA))])):l.createCommentVNode("",!0),i.value==="checked"?(l.openBlock(),l.createElementBlock("div",pye,[l.createVNode(l.unref(lA),{checked:!0})])):l.createCommentVNode("",!0),i.value==="ignored"?(l.openBlock(),l.createElementBlock("div",mye,[l.createVNode(l.unref(lA),{indeterminate:!0})])):l.createCommentVNode("",!0)]))}}),vye={class:"text-sm font-light"},yye={class:"flex justify-between pt-3 pb-1 relative"},_ye={class:"font-light"},bye={class:"flex"},wye={class:"flex justify-between py-1"},Bye={class:"flex items-center min-w-0"},xye={class:"px-2 truncate"},Cye=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);function o(){return i.value<n.children.length?"text-sky-600 cursor-pointer":"text-gray-400 cursor-not-allowed"}function s(){return i.value===0||n.children.length===0?"text-gray-400 cursor-not-allowed":"text-sky-600 cursor-pointer"}function u(){i.value<n.children.length&&(i.value+=5)}function c(){i.value>0&&(i.value-=5)}function A(f,h,d){r("newState",f,h,d)}return(f,h)=>(l.openBlock(),l.createElementBlock("div",vye,[l.createElementVNode("div",yye,[l.createElementVNode("div",{class:"text-base font-normal max-w-3/4 truncate",onMouseover:h[0]||(h[0]=d=>a.value=!0),onMouseout:h[1]||(h[1]=d=>a.value=!1)},[l.createTextVNode(l.toDisplayString(e.parent.title)+" ",1),l.createElementVNode("span",_ye,"("+l.toDisplayString(e.children.length)+")",1)],32),l.createElementVNode("div",bye,[l.createVNode(l.unref(qne),{class:l.normalizeClass(["icon-lg",o()]),onClick:h[2]||(h[2]=d=>u())},null,8,["class"]),l.createVNode(l.unref(jne),{class:l.normalizeClass(["icon-lg",s()]),onClick:h[3]||(h[3]=d=>c())},null,8,["class"])]),n.tooltip?(l.openBlock(),l.createBlock(l.unref($u),{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(e.children.slice(0,i.value),d=>(l.openBlock(),l.createElementBlock("div",wye,[l.createElementVNode("div",Bye,[l.createVNode(gye,{state:d.state,onNewState:p=>A(e.parent.label,d.label,p)},null,8,["state","onNewState"]),l.createElementVNode("div",xye,l.toDisplayString(d.label?d.label:"-"),1)]),l.createElementVNode("div",null,l.toDisplayString(d.count),1)]))),256))]))}}),Sye={class:"hidden md:col md:h-full overflow-hidden"},kye={key:0,class:"flex"},Mye={class:"h-0 flex-1 overflow-y-auto px-1"},Eye={key:0,class:"q-ml-md text-bold"},Lye={key:1,class:"flex flex-shrink-0 px-1 py-1"},Tye={class:"relative isolate inline-flex rounded-md shadow-xs"},Nye=pr(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}},emits:["search","updateStr","reset","edit","save","download","search"],setup(e,{emit:t}){var y,v,_;const n=e,r=t,i=l.ref((y=n.facetOptions)==null?void 0:y.mustFilters),a=l.ref((v=n.facetOptions)==null?void 0:v.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 M=w.find(x=>x.field===b.parent);typeof M<"u"?M.terms.push(b.child):w.push({field:b.parent,terms:[b.child]})}function f(b,w){const M=w.find(x=>x.field===b.parent);if(typeof M<"u"){const x=M.terms.indexOf(b.child);if(x>-1&&(M.terms.splice(x,1),M.terms.length===0)){const L=w.findIndex(N=>N.field===b.parent);w.splice(L,1)}}}function h(b,w,M){M==="checked"?d({parent:b,child:w}):M==="ignored"?p({parent:b,child:w}):m({parent:b,child:w})}function d(b){A(b,i.value)}function p(b){f(b,i.value),A(b,a.value)}function m(b){f(b,a.value)}function g(b,w=""){u.value=b,c.value=w}return(b,w)=>(l.openBlock(),l.createElementBlock("div",Sye,[e.searchBar?(l.openBlock(),l.createElementBlock("div",kye,[l.createVNode(l.unref(dN),{class:"w-full",str:o.value,onSearch:w[0]||(w[0]=M=>r("search")),onUpdate:w[1]||(w[1]=M=>r("updateStr",M))},null,8,["str"])])):l.createCommentVNode("",!0),l.createElementVNode("div",Mye,[e.tree.length==0?(l.openBlock(),l.createElementBlock("div",Eye," No Facet data. Please select a search query. ")):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.tree,M=>(l.openBlock(),l.createElementBlock("div",{key:M.id,class:"primary"},[l.createVNode(Cye,{parent:M,children:M.children,clear:s.value,"facet-options":e.facetOptions,tooltip:e.tooltip,onNewState:h},null,8,["parent","children","clear","facet-options","tooltip"]),l.createVNode(l.unref(Cw))]))),128))]),e.buttons?(l.openBlock(),l.createElementBlock("div",Lye,[l.createElementVNode("span",Tye,[l.createElementVNode("button",{type:"button",class:"action-btn std-red rounded-l-md",onClick:w[2]||(w[2]=M=>r("reset")),onMouseover:w[3]||(w[3]=M=>g(!0,"Reset Facet")),onMouseout:w[4]||(w[4]=M=>g(!1))},[l.createVNode(l.unref(Td),{class:"icon-md","aria-hidden":"true"})],32),l.createElementVNode("button",{type:"button",class:"action-btn std-blue",onClick:w[5]||(w[5]=M=>r("edit")),onMouseover:w[6]||(w[6]=M=>g(!0,"Edit Facet")),onMouseout:w[7]||(w[7]=M=>g(!1))},[l.createVNode(l.unref(I6),{class:"icon-md","aria-hidden":"true"})],32),l.createElementVNode("button",{type:"button",class:"action-btn std-blue",onClick:w[8]||(w[8]=M=>r("save")),onMouseover:w[9]||(w[9]=M=>g(!0,"Save Facet")),onMouseout:w[10]||(w[10]=M=>g(!1))},[l.createVNode(l.unref(ZF),{class:"icon-md","aria-hidden":"true"})],32),l.createElementVNode("button",{type:"button",class:"action-btn std-blue rounded-r-md",onClick:w[11]||(w[11]=M=>r("search")),onMouseover:w[12]||(w[12]=M=>g(!0,"Search")),onMouseout:w[13]||(w[13]=M=>g(!1))},[l.createVNode(l.unref(ww),{class:"icon-md","aria-hidden":"true"})],32),l.createVNode(l.unref($u),{tooltip:c.value,showingTooltip:u.value,direction:"top",style:{transform:"translateY(-40%)"}},null,8,["tooltip","showingTooltip"])])])):l.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-0f89cff2"]]),Fye=[{label:"Hourly",value:"hourly"},{label:"Daily",value:"daily"},{label:"Weekly",value:"weekly"},{label:"Monthly",value:"monthly"}],Oye=[{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}],Iye=Array.from({length:24},(e,t)=>({label:t.toString(),value:t})),Dye=Array.from({length:31},(e,t)=>({label:(t+1).toString(),value:t+1})),Uye=[{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"}],Pye={class:"px-2"},Hye={class:"flex gap-x-3"},Yye={__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(l.unref(mm),{sectionName:"Schedule Details"},{default:l.withCtx(()=>[l.createElementVNode("div",Pye,[l.createVNode(l.unref(zi),{fieldName:"Interval"},{default:l.withCtx(()=>[l.createVNode(l.unref(dr),{modelValue:n.value.interval,"onUpdate:modelValue":a[0]||(a[0]=o=>n.value.interval=o),options:l.unref(Fye)},null,8,["modelValue","options"])]),_:1}),l.createElementVNode("div",Hye,[n.value.interval==="monthly"?(l.openBlock(),l.createBlock(l.unref(zi),{key:0,fieldName:"Day",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(l.unref(dr),{modelValue:n.value.day,"onUpdate:modelValue":a[1]||(a[1]=o=>n.value.day=o),options:l.unref(Dye)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),n.value.interval==="weekly"?(l.openBlock(),l.createBlock(l.unref(zi),{key:1,fieldName:"Weekday",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(l.unref(dr),{modelValue:n.value.weekday,"onUpdate:modelValue":a[2]||(a[2]=o=>n.value.weekday=o),options:l.unref(Oye)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),n.value.interval!=="minute"&&n.value.interval!=="hourly"?(l.openBlock(),l.createBlock(l.unref(zi),{key:2,fieldName:"Hour",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(l.unref(dr),{modelValue:n.value.hour,"onUpdate:modelValue":a[3]||(a[3]=o=>n.value.hour=o),options:l.unref(Iye)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),n.value.interval==="minute"||n.value.interval==="hourly"||n.value.interval==="daily"?(l.openBlock(),l.createBlock(l.unref(zi),{key:3,fieldName:"Minute",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(l.unref(dr),{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(l.unref(zi),{key:0,fieldName:"Timezone"},{default:l.withCtx(()=>[l.createVNode(l.unref(dr),{modelValue:n.value.timezone,"onUpdate:modelValue":a[5]||(a[5]=o=>n.value.timezone=o),options:l.unref(Uye)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0)])]),_:1}))}};function Rye(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 Qye(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 XF=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 $m(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 jye(e){return mt(e).fromNow()}const Vye={role:"list",class:"space-y-6"},zye={class:"relative flex gap-x-4"},qye={class:"relative flex icon-lg flex-none items-center justify-center bg-white dark:bg-black"},Kye={key:2,class:"h-1.5 w-1.5 rounded-full bg-gray-100 ring-1 ring-gray-300"},Gye={class:"flex-auto py-0.5 text-xs leading-5 text-gray-500 dark:text-gray-400"},Wye={class:"font-medium text-gray-900 dark:text-gray-200"},Xye=["datetime"],Jye={__name:"Feed",props:{data:Array},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("ul",Vye,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.data,(r,i)=>(l.openBlock(),l.createElementBlock("li",zye,[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 bg-gray-200"},null,-1)]),2),l.createElementVNode("div",qye,[r.action==="resolve"?(l.openBlock(),l.createBlock(l.unref(Rye),{key:0,class:"icon-lg icon-green","aria-hidden":"true"})):r.action==="trigger"?(l.openBlock(),l.createBlock(l.unref(Qye),{key:1,class:"icon-lg icon-red","aria-hidden":"true"})):(l.openBlock(),l.createElementBlock("div",Kye))]),l.createElementVNode("p",Gye,[l.createElementVNode("span",Wye,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 text-gray-500 dark:text-gray-400"},l.toDisplayString(l.unref(jye)(r.timestamp)),9,Xye)]))),256))]))}},Zye={class:"mb-3 flex items-center justify-between relative"},$ye={class:"min-w-0 flex-1"},e_e={class:"row truncate font-medium"},t_e={class:"flex mt-0 ml-4"},n_e={__name:"CategoryCard",props:{category:{type:[Object,String],required:!0}},setup(e){return(t,n)=>(l.openBlock(),l.createBlock(l.unref(U6),null,{default:l.withCtx(()=>[l.createElementVNode("div",Zye,[l.renderSlot(t.$slots,"icon"),l.createElementVNode("div",$ye,[l.createElementVNode("h3",e_e,[l.createTextVNode(l.toDisplayString(e.category.name||e.category)+" ",1),l.renderSlot(t.$slots,"title")])]),l.createElementVNode("div",t_e,[l.renderSlot(t.$slots,"header")])]),l.renderSlot(t.$slots,"default")]),_:3}))}},r_e={},i_e={class:"bg-gray-400 pl-3 py-1 sm:flex sm:items-center sm:justify-between content-center dark:bg-neutral-600 dark:text-white"},a_e={class:"mt-3 flex sm:mt-0"};function o_e(e,t){return l.openBlock(),l.createElementBlock("div",i_e,[l.renderSlot(e.$slots,"title"),l.createElementVNode("div",a_e,[l.renderSlot(e.$slots,"buttons")])])}const s_e=pr(r_e,[["render",o_e]]),l_e={class:"py-1"},u_e=["onClick"],JF={__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(l.unref(Vu),{as:"div",class:"relative inline-block text-left"},{default:l.withCtx(()=>[l.createVNode(l.unref(zu),{class:l.normalizeClass(`group inline-flex justify-center text-${e.size} font-medium`)},{default:l.withCtx(()=>[l.createVNode(l.unref(X8),{class:l.normalizeClass(`${i.value} mr-2`)},null,8,["class"]),o[0]||(o[0]=l.createTextVNode(" Sort By ",-1)),l.createVNode(l.unref(i1),{class:l.normalizeClass(`${i.value} ml-2`)},null,8,["class"])]),_:1,__:[0]},8,["class"]),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(qu),{class:l.normalizeClass(["z-50 absolute z-50 mt-0.5 w-40 origin-top-right rounded-md py-2 shadow-lg max-h-96 overflow-y-auto break-all white-bg text-gray-700 dark:bg-black dark:text-gray-300",e.direction==="right"?"left-0 ":"right-0"])},{default:l.withCtx(()=>[l.createElementVNode("div",l_e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,s=>(l.openBlock(),l.createBlock(l.unref(ps),{key:s},{default:l.withCtx(({active:u})=>[l.createElementVNode("span",{class:l.normalizeClass([u?"outline-hidden white-bg-hover dark:dark-bg-hover":"",{"bg-gray-400 dark:bg-slate-800":e.current.label===s.label},`group flex w-full items-center rounded-md px-2 py-2 text-${e.size} cursor-pointer`]),onClick:l.withModifiers(c=>r("sort",s),["stop"])},l.toDisplayString(s.label),11,u_e)]),_:2},1024))),128))])]),_:1},8,["class"])]),_:1})]),_:1}))}},c_e=["title"],A_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,c_e)):l.createCommentVNode("",!0),e.city?(l.openBlock(),l.createElementBlock("span",A_e,l.toDisplayString(e.city)+", "+l.toDisplayString(e.org),1)):l.createCommentVNode("",!0)]))}},f_e="data:image/svg+xml,%3csvg%20viewBox='0%200%20512%20512'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3ctitle%3eai%3c/title%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='icon'%20fill='%230097f5'%20transform='translate(64.000000,%2064.000000)'%3e%3cpath%20d='M320,64%20L320,320%20L64,320%20L64,64%20L320,64%20Z%20M171.749388,128%20L146.817842,128%20L99.4840387,256%20L121.976629,256%20L130.913039,230.977%20L187.575039,230.977%20L196.319607,256%20L220.167172,256%20L171.749388,128%20Z%20M260.093778,128%20L237.691519,128%20L237.691519,256%20L260.093778,256%20L260.093778,128%20Z%20M159.094727,149.47526%20L181.409039,213.333%20L137.135039,213.333%20L159.094727,149.47526%20Z%20M341.333333,256%20L384,256%20L384,298.666667%20L341.333333,298.666667%20L341.333333,256%20Z%20M85.3333333,341.333333%20L128,341.333333%20L128,384%20L85.3333333,384%20L85.3333333,341.333333%20Z%20M170.666667,341.333333%20L213.333333,341.333333%20L213.333333,384%20L170.666667,384%20L170.666667,341.333333%20Z%20M85.3333333,0%20L128,0%20L128,42.6666667%20L85.3333333,42.6666667%20L85.3333333,0%20Z%20M256,341.333333%20L298.666667,341.333333%20L298.666667,384%20L256,384%20L256,341.333333%20Z%20M170.666667,0%20L213.333333,0%20L213.333333,42.6666667%20L170.666667,42.6666667%20L170.666667,0%20Z%20M256,0%20L298.666667,0%20L298.666667,42.6666667%20L256,42.6666667%20L256,0%20Z%20M341.333333,170.666667%20L384,170.666667%20L384,213.333333%20L341.333333,213.333333%20L341.333333,170.666667%20Z%20M0,256%20L42.6666667,256%20L42.6666667,298.666667%20L0,298.666667%20L0,256%20Z%20M341.333333,85.3333333%20L384,85.3333333%20L384,128%20L341.333333,128%20L341.333333,85.3333333%20Z%20M0,170.666667%20L42.6666667,170.666667%20L42.6666667,213.333333%20L0,213.333333%20L0,170.666667%20Z%20M0,85.3333333%20L42.6666667,85.3333333%20L42.6666667,128%20L0,128%20L0,85.3333333%20Z'%20id='Combined-Shape'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",h_e="data:image/svg+xml,%3csvg%20viewBox='0%200%2017%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%23fff'%20fill-rule='evenodd'%3e%3cpath%20d='m8.20003216%200c-4.5281696%200-8.20003216%203.67233045-8.20003216%208.2025137%200%203.6241466%202.34955472%206.6987785%205.60770169%207.7833978.40979259.0759104.5602814-.1779394.5602814-.3946059%200-.195566-.00765306-.84177-.01112588-1.5271516-2.28132027.4961843-2.76269151-.9677944-2.76269151-.9677944-.37300645-.948109-.91045728-1.2001576-.91045728-1.2001576-.74395492-.5091149.05607959-.4986933.05607959-.4986933.82344388.0578979%201.25703171.8453083%201.25703171.8453083.73134987%201.2540026%201.9182821.8914335%202.38621225.6819077.07357231-.5302154.28612167-.8920125.52060124-1.0968421-1.82130043-.2074672-3.73598109-.9107972-3.73598109-4.05374848%200-.89548638.32033536-1.62725057.84492391-2.20166134-.08514837-.20663091-.36580356-1.04087425.07942464-2.17071817%200%200%20.68858276-.22046205%202.25559569.8408051.6540475-.18179917%201.35555686-.27289175%202.0524358-.27597964.69687893.00308789%201.39890278.09418047%202.05423654.27597964%201.5651479-1.06126715%202.252766-.8408051%202.252766-.8408051.4463215%201.12984392.1655376%201.96408726.0803893%202.17071817.5257461.57441077.8438949%201.30611063.8438949%202.20166134%200%203.15041368-1.9182821%203.84415838-3.74421295%204.04718668.29409628.2545575.55616545.7537654.55616545%201.5189817%200%201.0974854-.0095181%201.9808133-.0095181%202.2510031%200%20.2182748.1475948.4740546.5633041.3935122%203.2563462-1.0858415%205.6029426-4.1593798%205.6029426-7.7823041%200-4.53018325-3.6713481-8.2025137-8.19996784-8.2025137'/%3e%3cpath%20d='m3.07518929%2011.6824029c-.01787762.0408541-.08159856.0531168-.13950928.0251063-.05905999-.0268489-.09226129-.0826118-.07310669-.1236596.01755837-.0420803.08127932-.0538267.14021161-.025558.05918769.0267843.09289978.0830636.07240436.1241113m.40045868.3611685c-.03881997.0364008-.11473601.0194912-.16626186-.0380143-.05324977-.0573765-.06321015-.1340506-.02381554-.1710323.0400331-.0363363.11365058-.0193621.16702804.0380789.05324977.0580219.06359325.1342442.02298552.1710322m.27480455.4620452c-.04992964.0350455-.1315282.0021944-.18190478-.0709945-.04986579-.0731243-.04986579-.1608994.00108543-.1960739.05056812-.0351746.13088971-.0035497.18196863.0690583.04980194.0744151.04980194.1621902-.00121313.1980747m.46462657.5351695c-.0446302.0496962-.13963698.0364009-.209232-.0314957-.07112739-.0663476-.09098432-.1605121-.04622642-.2102728.04514099-.0498253.14072241-.03582.21082822.0314957.07068044.0662185.09226128.161093.04469405.2102728m.60036877.1807134c-.01960153.0644113-.11116048.0937127-.20335792.0663476-.09206974-.0282042-.15234286-.1037166-.1337629-.1688379.01915459-.0648632.11109663-.0953908.20399641-.0660894.09194204.0280751.15234286.1030065.13318826.1685797m.68337202.0766095c.00229855.0678966-.07591604.1241759-.17271058.1254021-.09736918.0021299-.17609455-.0527941-.17711613-.1195289%200-.068542.07642682-.124305.17373215-.1259185.09679454-.0019362.17609456.0526005.17609456.1200453m.67130462-.0260098c.01162045.0662185-.05567602.1342442-.15176823.1523155-.09449599.0174259-.18196862-.0234282-.19403602-.0890659-.01174815-.0678965.05682529-.1358576.15112974-.1534772.09628375-.0169096.18241557.0229119.19467451.0902276'%20fill-rule='nonzero'/%3e%3c/g%3e%3c/svg%3e",p_e="data:image/svg+xml,%3csvg%20width='98'%20height='96'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M48.854%200C21.839%200%200%2022%200%2049.217c0%2021.756%2013.993%2040.172%2033.405%2046.69%202.427.49%203.316-1.059%203.316-2.362%200-1.141-.08-5.052-.08-9.127-13.59%202.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015%204.934.326%207.523%205.052%207.523%205.052%204.367%207.496%2011.404%205.378%2014.235%204.074.404-3.178%201.699-5.378%203.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283%200-5.378%201.94-9.778%205.014-13.2-.485-1.222-2.184-6.275.486-13.038%200%200%204.125-1.304%2013.426%205.052a46.97%2046.97%200%200%201%2012.214-1.63c4.125%200%208.33.571%2012.213%201.63%209.302-6.356%2013.427-5.052%2013.427-5.052%202.67%206.763.97%2011.816.485%2013.038%203.155%203.422%205.015%207.822%205.015%2013.2%200%2018.905-11.404%2023.06-22.324%2024.283%201.78%201.548%203.316%204.481%203.316%209.126%200%206.6-.08%2011.897-.08%2013.526%200%201.304.89%202.853%203.316%202.364%2019.412-6.52%2033.405-24.935%2033.405-46.691C97.707%2022%2075.788%200%2048.854%200z'%20fill='%2324292f'/%3e%3c/svg%3e",m_e="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23C10015'%3e%3cpath%20d='M480-120q-33%200-56.5-23.5T400-200q0-33%2023.5-56.5T480-280q33%200%2056.5%2023.5T560-200q0%2033-23.5%2056.5T480-120Zm-80-240v-480h160v480H400Z'/%3e%3c/svg%3e",g_e="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23C10015'%3e%3cpath%20d='M380-120v-120L240-380v-220q0-24%2011-45t32-32l77%2077h-40v186l140%20140v74h40v-74l37-37L56-792l56-56%20736%20736-56%2056-198-198-14%2014v120H380Zm306-268-46-46v-166H474L320-754v-86h80v160h160v-160h80v200l-40-40h40q33%200%2056.5%2023.5T720-600v178l-34%2034ZM558-516Zm-130%2097Z'/%3e%3c/svg%3e",v_e="data:image/svg+xml,%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3%205.75C3%204.23122%204.23122%203%205.75%203H15.7145C16.5764%203%2017.4031%203.34241%2018.0126%203.9519L20.0481%205.98744C20.6576%206.59693%2021%207.42358%2021%208.28553V18.25C21%2019.7688%2019.7688%2021%2018.25%2021H5.75C4.23122%2021%203%2019.7688%203%2018.25V5.75ZM5.75%204.5C5.05964%204.5%204.5%205.05964%204.5%205.75V18.25C4.5%2018.9404%205.05964%2019.5%205.75%2019.5H6V14.25C6%2013.0074%207.00736%2012%208.25%2012H15.75C16.9926%2012%2018%2013.0074%2018%2014.25V19.5H18.25C18.9404%2019.5%2019.5%2018.9404%2019.5%2018.25V8.28553C19.5%207.8214%2019.3156%207.37629%2018.9874%207.0481L16.9519%205.01256C16.6918%204.75246%2016.3582%204.58269%2016%204.52344V7.25C16%208.49264%2014.9926%209.5%2013.75%209.5H9.25C8.00736%209.5%207%208.49264%207%207.25V4.5H5.75ZM16.5%2019.5V14.25C16.5%2013.8358%2016.1642%2013.5%2015.75%2013.5H8.25C7.83579%2013.5%207.5%2013.8358%207.5%2014.25V19.5H16.5ZM8.5%204.5V7.25C8.5%207.66421%208.83579%208%209.25%208H13.75C14.1642%208%2014.5%207.66421%2014.5%207.25V4.5H8.5Z'%20fill='%23FFFFFF'/%3e%3c/svg%3e",y_e=["src"],__e={__name:"AiIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(f_e),alt:"avatar"},null,8,y_e))}},b_e=["src"],w_e={__name:"GithubIcon",props:{theme:{type:String,default:"light"}},setup(e){const t=e,n=l.computed(()=>t.theme==="dark"?h_e:p_e);return(r,i)=>(l.openBlock(),l.createElementBlock("img",{src:n.value,alt:"avatar"},null,8,b_e))}},B_e=["src"],x_e=l.defineComponent({__name:"HighPriorityIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(m_e),alt:"avatar"},null,8,B_e))}}),C_e=["src"],S_e=l.defineComponent({__name:"PowerOffIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(g_e),alt:"avatar"},null,8,C_e))}}),k_e=["src"],ZF=l.defineComponent({__name:"SaveIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(v_e),alt:"avatar"},null,8,k_e))}});function xA(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function eg(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Q1(e){let t,n,r;e.length!==2?(t=xA,n=(s,u)=>xA(e(s),u),r=(s,u)=>e(s)-u):(t=e===xA||e===eg?e:M_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 M_e(){return 0}function $F(e){return e===null?NaN:+e}function*E_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=Q1(xA).right;Q1($F).center;function pB(e,t){let n=0;for(let r of e)r!=null&&(r=+r)>=r&&++n;return n}function L_e(e){return e.length|0}function T_e(e){return!(e>0)}function N_e(e){return typeof e!="object"||"length"in e?e:Array.from(e)}function F_e(e){return t=>e(...t)}function O_e(...e){const t=typeof e[e.length-1]=="function"&&F_e(e.pop());e=e.map(N_e);const n=e.map(L_e),r=e.length-1,i=new Array(r+1).fill(0),a=[];if(r<0||n.some(T_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 e7(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 t7(e,t){const n=e7(e,t);return n&&Math.sqrt(n)}function Ci(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 Wd{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 tg extends Map{constructor(t,n=i7){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(mB(this,t))}has(t){return super.has(mB(this,t))}set(t,n){return super.set(n7(this,t),n)}delete(t){return super.delete(r7(this,t))}}class ng extends Set{constructor(t,n=i7){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(mB(this,t))}add(t){return super.add(n7(this,t))}delete(t){return super.delete(r7(this,t))}}function mB({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function n7({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function r7({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function i7(e){return e!==null&&typeof e=="object"?e.valueOf():e}function V1(e){return e}function a7(e,...t){return q1(e,V1,V1,t)}function z1(e,t,...n){return q1(e,V1,t,n)}function I_e(e,t,...n){return q1(e,Array.from,t,n)}function o7(e,...t){return q1(e,V1,D_e,t)}function D_e(e){if(e.length!==1)throw new Error("duplicate key");return e[0]}function q1(e,t,n,r){return function i(a,o){if(o>=r.length)return n(a);const s=new tg,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 U_e(e,t){return Array.from(t,n=>e[n])}function s7(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=K1(o[i],o[a]);if(s)return s}})):(n=e.map(n),r.sort((i,a)=>K1(n[i],n[a]))),U_e(e,r)}return e.sort(l7(n))}function l7(e=xA){if(e===xA)return K1;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 K1(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const P_e=Math.sqrt(50),H_e=Math.sqrt(10),Y_e=Math.sqrt(2);function G1(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>=P_e?10:a>=H_e?5:a>=Y_e?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?G1(e,t,n*2):[s,u,c]}function Xd(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?G1(t,e,n):G1(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 W1(e,t,n){return t=+t,e=+e,n=+n,G1(e,t,n)[2]}function gB(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?W1(t,e,n):W1(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function R_e(e){return Math.max(1,Math.ceil(Math.log(pB(e))/Math.LN2)+1)}function ma(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 Q_e(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 Nh(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 j_e(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 u7(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?K1:l7(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)),p=Math.min(r,Math.floor(t+(u-c)*f/u+h));u7(e,t,d,p,i)}const a=e[t];let o=n,s=r;for(rg(e,n,t),i(e[r],a)>0&&rg(e,n,r);o<s;){for(rg(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?rg(e,n,s):(++s,rg(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function rg(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Fh(e,t,n){if(e=Float64Array.from(E_e(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Nh(e);if(t>=1)return ma(e);var r,i=(r-1)*t,a=Math.floor(i),o=ma(u7(e,a).subarray(0,a+1)),s=Nh(e.subarray(a+1));return o+(s-o)*(i-a)}}function V_e(e,t,n=$F){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 z_e(e,t,n){const r=pB(e),i=Fh(e,.75)-Fh(e,.25);return r&&i?Math.ceil((n-t)/(2*i*Math.pow(r,-1/3))):1}function c7(e,t,n){const r=pB(e),i=t7(e);return r&&i?Math.ceil((n-t)*Math.cbrt(r)/(3.49*i)):1}function q_e(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 vB(e,t){return Fh(e,.5,t)}function*K_e(e){for(const t of e)yield*t}function A7(e){return Array.from(K_e(e))}function G_e(e,t){const n=new tg;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 W_e(e,t=X_e){const n=[];let r,i=!1;for(const a of e)i&&n.push(t(r,a)),r=a,i=!0;return n}function X_e(e,t){return[e,t]}function yB(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 X1(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 J1(e){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(e).reverse()}function d7(...e){const t=new ng;for(const n of e)for(const r of n)t.add(r);return t}function J_e(e){return e}var Z1=1,$1=2,_B=3,ig=4,f7=1e-6;function Z_e(e){return"translate("+e+",0)"}function $_e(e){return"translate(0,"+e+")"}function ebe(e){return t=>+e(t)}function tbe(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function nbe(){return!this.__axis}function ey(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===Z1||e===ig?-1:1,A=e===ig||e===$1?"x":"y",f=e===Z1||e===_B?Z_e:$_e;function h(d){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,n):J_e),g=Math.max(a,0)+s,y=t.range(),v=+y[0]+u,_=+y[y.length-1]+u,b=(t.bandwidth?tbe:ebe)(t.copy(),u),w=d.selection?d.selection():d,M=w.selectAll(".domain").data([null]),x=w.selectAll(".tick").data(p,t).order(),L=x.exit(),N=x.enter().append("g").attr("class","tick"),H=x.select("line"),S=x.select("text");M=M.merge(M.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(N),H=H.merge(N.append("line").attr("stroke","currentColor").attr(A+"2",c*a)),S=S.merge(N.append("text").attr("fill","currentColor").attr(A,c*g).attr("dy",e===Z1?"0em":e===_B?"0.71em":"0.32em")),d!==w&&(M=M.transition(d),x=x.transition(d),H=H.transition(d),S=S.transition(d),L=L.transition(d).attr("opacity",f7).attr("transform",function(F){return isFinite(F=b(F))?f(F+u):this.getAttribute("transform")}),N.attr("opacity",f7).attr("transform",function(F){var I=this.parentNode.__axis;return f((I&&isFinite(I=I(F))?I:b(F))+u)})),L.remove(),M.attr("d",e===ig||e===$1?o?"M"+c*o+","+v+"H"+u+"V"+_+"H"+c*o:"M"+u+","+v+"V"+_:o?"M"+v+","+c*o+"V"+u+"H"+_+"V"+c*o:"M"+v+","+u+"H"+_),x.attr("opacity",1).attr("transform",function(F){return f(b(F)+u)}),H.attr(A+"2",c*a),S.attr(A,c*g).text(m),w.filter(nbe).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===$1?"start":e===ig?"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 rbe(e){return ey(Z1,e)}function ibe(e){return ey($1,e)}function ko(e){return ey(_B,e)}function Jd(e){return ey(ig,e)}var abe={value:()=>{}};function bB(){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 ty(n)}function ty(e){this._=e}function obe(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}})}ty.prototype=bB.prototype={constructor:ty,on:function(e,t){var n=this._,r=obe(e+"",n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=sbe(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]=h7(n[i],e.name,t);else if(t==null)for(i in n)n[i]=h7(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 ty(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 sbe(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function h7(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=abe,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var wB="http://www.w3.org/1999/xhtml";const Oh={svg:"http://www.w3.org/2000/svg",xhtml:wB,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ny(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Oh.hasOwnProperty(t)?{space:Oh[t],local:e}:e}function lbe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===wB&&t.documentElement.namespaceURI===wB?t.createElement(e):t.createElementNS(n,e)}}function ube(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ry(e){var t=ny(e);return(t.local?ube:lbe)(t)}function cbe(){}function BB(e){return e==null?cbe:function(){return this.querySelector(e)}}function Abe(e){typeof e!="function"&&(e=BB(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 oo(r,this._parents)}function p7(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function dbe(){return[]}function m7(e){return e==null?dbe:function(){return this.querySelectorAll(e)}}function fbe(e){return function(){return p7(e.apply(this,arguments))}}function hbe(e){typeof e=="function"?e=fbe(e):e=m7(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 oo(r,i)}function g7(e){return function(){return this.matches(e)}}function v7(e){return function(t){return t.matches(e)}}var pbe=Array.prototype.find;function mbe(e){return function(){return pbe.call(this.children,e)}}function gbe(){return this.firstElementChild}function vbe(e){return this.select(e==null?gbe:mbe(typeof e=="function"?e:v7(e)))}var ybe=Array.prototype.filter;function _be(){return Array.from(this.children)}function bbe(e){return function(){return ybe.call(this.children,e)}}function wbe(e){return this.selectAll(e==null?_be:bbe(typeof e=="function"?e:v7(e)))}function Bbe(e){typeof e!="function"&&(e=g7(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 oo(r,this._parents)}function y7(e){return new Array(e.length)}function xbe(){return new oo(this._enter||this._groups.map(y7),this._parents)}function iy(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}iy.prototype={constructor:iy,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 Cbe(e){return function(){return e}}function Sbe(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 iy(e,a[o]);for(;o<u;++o)(s=t[o])&&(i[o]=s)}function kbe(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 iy(e,a[s]);for(s=0;s<A;++s)(u=t[s])&&c.get(h[s])===u&&(i[s]=u)}function Mbe(e){return e.__data__}function Ebe(e,t){if(!arguments.length)return Array.from(this,Mbe);var n=t?kbe:Sbe,r=this._parents,i=this._groups;typeof e!="function"&&(e=Cbe(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=Lbe(e.call(A,A&&A.__data__,c,r)),p=d.length,m=s[c]=new Array(p),g=o[c]=new Array(p),y=u[c]=new Array(h);n(A,f,m,g,y,d,t);for(var v=0,_=0,b,w;v<p;++v)if(b=m[v]){for(v>=_&&(_=v+1);!(w=g[_])&&++_<p;);b._next=w||null}}return o=new oo(o,r),o._enter=s,o._exit=u,o}function Lbe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Tbe(){return new oo(this._exit||this._groups.map(y7),this._parents)}function Nbe(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 Fbe(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,p=0;p<f;++p)(d=c[p]||A[p])&&(h[p]=d);for(;u<i;++u)s[u]=n[u];return new oo(s,this._parents)}function Obe(){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 Ibe(e){e||(e=Dbe);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 oo(i,this._parents).order()}function Dbe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ube(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Pbe(){return Array.from(this)}function Hbe(){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 Ybe(){let e=0;for(const t of this)++e;return e}function Rbe(){return!this.node()}function Qbe(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 jbe(e){return function(){this.removeAttribute(e)}}function Vbe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zbe(e,t){return function(){this.setAttribute(e,t)}}function qbe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Kbe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Gbe(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 Wbe(e,t){var n=ny(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?Vbe:jbe:typeof t=="function"?n.local?Gbe:Kbe:n.local?qbe:zbe)(n,t))}function _7(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Xbe(e){return function(){this.style.removeProperty(e)}}function Jbe(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Zbe(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function $be(e,t,n){return arguments.length>1?this.each((t==null?Xbe:typeof t=="function"?Zbe:Jbe)(e,t,n??"")):Ih(this.node(),e)}function Ih(e,t){return e.style.getPropertyValue(t)||_7(e).getComputedStyle(e,null).getPropertyValue(t)}function e2e(e){return function(){delete this[e]}}function t2e(e,t){return function(){this[e]=t}}function n2e(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function r2e(e,t){return arguments.length>1?this.each((t==null?e2e:typeof t=="function"?n2e:t2e)(e,t)):this.node()[e]}function b7(e){return e.trim().split(/^|\s+/)}function xB(e){return e.classList||new w7(e)}function w7(e){this._node=e,this._names=b7(e.getAttribute("class")||"")}w7.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 B7(e,t){for(var n=xB(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function x7(e,t){for(var n=xB(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function i2e(e){return function(){B7(this,e)}}function a2e(e){return function(){x7(this,e)}}function o2e(e,t){return function(){(t.apply(this,arguments)?B7:x7)(this,e)}}function s2e(e,t){var n=b7(e+"");if(arguments.length<2){for(var r=xB(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?o2e:t?i2e:a2e)(n,t))}function l2e(){this.textContent=""}function u2e(e){return function(){this.textContent=e}}function c2e(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function A2e(e){return arguments.length?this.each(e==null?l2e:(typeof e=="function"?c2e:u2e)(e)):this.node().textContent}function d2e(){this.innerHTML=""}function f2e(e){return function(){this.innerHTML=e}}function h2e(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function p2e(e){return arguments.length?this.each(e==null?d2e:(typeof e=="function"?h2e:f2e)(e)):this.node().innerHTML}function m2e(){this.nextSibling&&this.parentNode.appendChild(this)}function g2e(){return this.each(m2e)}function v2e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function y2e(){return this.each(v2e)}function _2e(e){var t=typeof e=="function"?e:ry(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function b2e(){return null}function w2e(e,t){var n=typeof e=="function"?e:ry(e),r=t==null?b2e:typeof t=="function"?t:BB(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function B2e(){var e=this.parentNode;e&&e.removeChild(this)}function x2e(){return this.each(B2e)}function C2e(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function S2e(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function k2e(e){return this.select(e?S2e:C2e)}function M2e(e){return arguments.length?this.property("__data__",e):this.node().__data__}function E2e(e){return function(t){e.call(this,t,this.__data__)}}function L2e(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 T2e(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 N2e(e,t,n){return function(){var r=this.__on,i,a=E2e(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 F2e(e,t,n){var r=L2e(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?N2e:T2e,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function C7(e,t,n){var r=_7(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 O2e(e,t){return function(){return C7(this,e,t)}}function I2e(e,t){return function(){return C7(this,e,t.apply(this,arguments))}}function D2e(e,t){return this.each((typeof t=="function"?I2e:O2e)(e,t))}function*U2e(){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 CB=[null];function oo(e,t){this._groups=e,this._parents=t}function ag(){return new oo([[document.documentElement]],CB)}function P2e(){return this}oo.prototype=ag.prototype={constructor:oo,select:Abe,selectAll:hbe,selectChild:vbe,selectChildren:wbe,filter:Bbe,data:Ebe,enter:xbe,exit:Tbe,join:Nbe,merge:Fbe,selection:P2e,order:Obe,sort:Ibe,call:Ube,nodes:Pbe,node:Hbe,size:Ybe,empty:Rbe,each:Qbe,attr:Wbe,style:$be,property:r2e,classed:s2e,text:A2e,html:p2e,raise:g2e,lower:y2e,append:_2e,insert:w2e,remove:x2e,clone:k2e,datum:M2e,on:F2e,dispatch:D2e,[Symbol.iterator]:U2e};function zt(e){return typeof e=="string"?new oo([[document.querySelector(e)]],[document.documentElement]):new oo([[e]],CB)}function H2e(e){let t;for(;t=e.sourceEvent;)e=t;return e}function SB(e,t){if(e=H2e(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 Dn(e){return typeof e=="string"?new oo([document.querySelectorAll(e)],[document.documentElement]):new oo([p7(e)],CB)}const kB={capture:!0,passive:!1};function MB(e){e.preventDefault(),e.stopImmediatePropagation()}function Y2e(e){var t=e.document.documentElement,n=zt(e).on("dragstart.drag",MB,kB);"onselectstart"in t?n.on("selectstart.drag",MB,kB):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function R2e(e,t){var n=e.document.documentElement,r=zt(e).on("dragstart.drag",null);t&&(r.on("click.drag",MB,kB),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 Dh(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function og(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function CA(){}var Zd=.7,Uh=1/Zd,Ph="\\s*([+-]?\\d+)\\s*",sg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",cu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Q2e=/^#([0-9a-f]{3,8})$/,j2e=new RegExp(`^rgb\\(${Ph},${Ph},${Ph}\\)$`),V2e=new RegExp(`^rgb\\(${cu},${cu},${cu}\\)$`),z2e=new RegExp(`^rgba\\(${Ph},${Ph},${Ph},${sg}\\)$`),q2e=new RegExp(`^rgba\\(${cu},${cu},${cu},${sg}\\)$`),K2e=new RegExp(`^hsl\\(${sg},${cu},${cu}\\)$`),G2e=new RegExp(`^hsla\\(${sg},${cu},${cu},${sg}\\)$`),S7={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};Dh(CA,$d,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:k7,formatHex:k7,formatHex8:W2e,formatHsl:X2e,formatRgb:M7,toString:M7});function k7(){return this.rgb().formatHex()}function W2e(){return this.rgb().formatHex8()}function X2e(){return F7(this).formatHsl()}function M7(){return this.rgb().formatRgb()}function $d(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Q2e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?E7(t):n===3?new oa(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ay(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ay(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=j2e.exec(e))?new oa(t[1],t[2],t[3],1):(t=V2e.exec(e))?new oa(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=z2e.exec(e))?ay(t[1],t[2],t[3],t[4]):(t=q2e.exec(e))?ay(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=K2e.exec(e))?N7(t[1],t[2]/100,t[3]/100,1):(t=G2e.exec(e))?N7(t[1],t[2]/100,t[3]/100,t[4]):S7.hasOwnProperty(e)?E7(S7[e]):e==="transparent"?new oa(NaN,NaN,NaN,0):null}function E7(e){return new oa(e>>16&255,e>>8&255,e&255,1)}function ay(e,t,n,r){return r<=0&&(e=t=n=NaN),new oa(e,t,n,r)}function EB(e){return e instanceof CA||(e=$d(e)),e?(e=e.rgb(),new oa(e.r,e.g,e.b,e.opacity)):new oa}function SA(e,t,n,r){return arguments.length===1?EB(e):new oa(e,t,n,r??1)}function oa(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Dh(oa,SA,og(CA,{brighter(e){return e=e==null?Uh:Math.pow(Uh,e),new oa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Zd:Math.pow(Zd,e),new oa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new oa(ef(this.r),ef(this.g),ef(this.b),oy(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:L7,formatHex:L7,formatHex8:J2e,formatRgb:T7,toString:T7}));function L7(){return`#${tf(this.r)}${tf(this.g)}${tf(this.b)}`}function J2e(){return`#${tf(this.r)}${tf(this.g)}${tf(this.b)}${tf((isNaN(this.opacity)?1:this.opacity)*255)}`}function T7(){const e=oy(this.opacity);return`${e===1?"rgb(":"rgba("}${ef(this.r)}, ${ef(this.g)}, ${ef(this.b)}${e===1?")":`, ${e})`}`}function oy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ef(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tf(e){return e=ef(e),(e<16?"0":"")+e.toString(16)}function N7(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new dl(e,t,n,r)}function F7(e){if(e instanceof dl)return new dl(e.h,e.s,e.l,e.opacity);if(e instanceof CA||(e=$d(e)),!e)return new dl;if(e instanceof dl)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 dl(o,s,u,e.opacity)}function LB(e,t,n,r){return arguments.length===1?F7(e):new dl(e,t,n,r??1)}function dl(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Dh(dl,LB,og(CA,{brighter(e){return e=e==null?Uh:Math.pow(Uh,e),new dl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Zd:Math.pow(Zd,e),new dl(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 oa(TB(e>=240?e-240:e+120,i,r),TB(e,i,r),TB(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new dl(O7(this.h),sy(this.s),sy(this.l),oy(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=oy(this.opacity);return`${e===1?"hsl(":"hsla("}${O7(this.h)}, ${sy(this.s)*100}%, ${sy(this.l)*100}%${e===1?")":`, ${e})`}`}}));function O7(e){return e=(e||0)%360,e<0?e+360:e}function sy(e){return Math.max(0,Math.min(1,e||0))}function TB(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 I7=Math.PI/180,D7=180/Math.PI,ly=18,U7=.96422,P7=1,H7=.82521,Y7=4/29,Hh=6/29,R7=3*Hh*Hh,Z2e=Hh*Hh*Hh;function Q7(e){if(e instanceof Au)return new Au(e.l,e.a,e.b,e.opacity);if(e instanceof fc)return j7(e);e instanceof oa||(e=EB(e));var t=DB(e.r),n=DB(e.g),r=DB(e.b),i=FB((.2225045*t+.7168786*n+.0606169*r)/P7),a,o;return t===n&&n===r?a=o=i:(a=FB((.4360747*t+.3850649*n+.1430804*r)/U7),o=FB((.0139322*t+.0971045*n+.7141733*r)/H7)),new Au(116*i-16,500*(a-i),200*(i-o),e.opacity)}function NB(e,t,n,r){return arguments.length===1?Q7(e):new Au(e,t,n,r??1)}function Au(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Dh(Au,NB,og(CA,{brighter(e){return new Au(this.l+ly*(e??1),this.a,this.b,this.opacity)},darker(e){return new Au(this.l-ly*(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=U7*OB(t),e=P7*OB(e),n=H7*OB(n),new oa(IB(3.1338561*t-1.6168667*e-.4906146*n),IB(-.9787684*t+1.9161415*e+.033454*n),IB(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function FB(e){return e>Z2e?Math.pow(e,1/3):e/R7+Y7}function OB(e){return e>Hh?e*e*e:R7*(e-Y7)}function IB(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function DB(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function $2e(e){if(e instanceof fc)return new fc(e.h,e.c,e.l,e.opacity);if(e instanceof Au||(e=Q7(e)),e.a===0&&e.b===0)return new fc(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*D7;return new fc(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function UB(e,t,n,r){return arguments.length===1?$2e(e):new fc(e,t,n,r??1)}function fc(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function j7(e){if(isNaN(e.h))return new Au(e.l,0,0,e.opacity);var t=e.h*I7;return new Au(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Dh(fc,UB,og(CA,{brighter(e){return new fc(this.h,this.c,this.l+ly*(e??1),this.opacity)},darker(e){return new fc(this.h,this.c,this.l-ly*(e??1),this.opacity)},rgb(){return j7(this).rgb()}}));var V7=-.14861,PB=1.78277,HB=-.29227,uy=-.90649,lg=1.97294,z7=lg*uy,q7=lg*PB,K7=PB*HB-uy*V7;function ewe(e){if(e instanceof nf)return new nf(e.h,e.s,e.l,e.opacity);e instanceof oa||(e=EB(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(K7*r+z7*t-q7*n)/(K7+z7-q7),a=r-i,o=(lg*(n-i)-HB*a)/uy,s=Math.sqrt(o*o+a*a)/(lg*i*(1-i)),u=s?Math.atan2(o,a)*D7-120:NaN;return new nf(u<0?u+360:u,s,i,e.opacity)}function du(e,t,n,r){return arguments.length===1?ewe(e):new nf(e,t,n,r??1)}function nf(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Dh(nf,du,og(CA,{brighter(e){return e=e==null?Uh:Math.pow(Uh,e),new nf(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Zd:Math.pow(Zd,e),new nf(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*I7,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new oa(255*(t+n*(V7*r+PB*i)),255*(t+n*(HB*r+uy*i)),255*(t+n*(lg*r)),this.opacity)}}));function twe(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 nwe(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 twe((n-r/t)*t,o,i,a,s)}}const cy=e=>()=>e;function G7(e,t){return function(n){return e+n*t}}function rwe(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 YB(e,t){var n=t-e;return n?G7(e,n>180||n<-180?n-360*Math.round(n/360):n):cy(isNaN(e)?t:e)}function iwe(e){return(e=+e)==1?Ua:function(t,n){return n-t?rwe(t,n,e):cy(isNaN(t)?n:t)}}function Ua(e,t){var n=t-e;return n?G7(e,n):cy(isNaN(e)?t:e)}const rf=function e(t){var n=iwe(t);function r(i,a){var o=n((i=SA(i)).r,(a=SA(a)).r),s=n(i.g,a.g),u=n(i.b,a.b),c=Ua(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 awe(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=SA(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 owe=awe(nwe);function swe(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 uwe(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]=fu(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 cwe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Pa(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Awe(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]=fu(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var RB=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,QB=new RegExp(RB.source,"g");function dwe(e){return function(){return e}}function fwe(e){return function(t){return e(t)+""}}function W7(e,t){var n=RB.lastIndex=QB.lastIndex=0,r,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(r=RB.exec(e))&&(i=QB.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:Pa(r,i)})),n=QB.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?fwe(u[0].x):dwe(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 fu(e,t){var n=typeof t,r;return t==null||n==="boolean"?cy(t):(n==="number"?Pa:n==="string"?(r=$d(t))?(t=r,rf):W7:t instanceof $d?rf:t instanceof Date?cwe:lwe(t)?swe:Array.isArray(t)?uwe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Awe:Pa)(e,t)}function Ay(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var X7=180/Math.PI,jB={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function J7(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)*X7,skewX:Math.atan(u)*X7,scaleX:o,scaleY:s}}var dy;function hwe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?jB:J7(t.a,t.b,t.c,t.d,t.e,t.f)}function pwe(e){return e==null||(dy||(dy=document.createElementNS("http://www.w3.org/2000/svg","g")),dy.setAttribute("transform",e),!(e=dy.transform.baseVal.consolidate()))?jB:(e=e.matrix,J7(e.a,e.b,e.c,e.d,e.e,e.f))}function Z7(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function a(c,A,f,h,d,p){if(c!==f||A!==h){var m=d.push("translate(",null,t,null,n);p.push({i:m-4,x:Pa(c,f)},{i:m-2,x:Pa(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:Pa(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:Pa(c,A)}):A&&f.push(i(f)+"skewX("+A+r)}function u(c,A,f,h,d,p){if(c!==f||A!==h){var m=d.push(i(d)+"scale(",null,",",null,")");p.push({i:m-4,x:Pa(c,f)},{i:m-2,x:Pa(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 p=-1,m=h.length,g;++p<m;)f[(g=h[p]).i]=g.x(d);return f.join("")}}}var mwe=Z7(hwe,"px, ","px)","deg)"),gwe=Z7(pwe,", ",")",")");function vwe(e){return function(t,n){var r=e((t=LB(t)).h,(n=LB(n)).h),i=Ua(t.s,n.s),a=Ua(t.l,n.l),o=Ua(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 ywe=vwe(YB);function _we(e,t){var n=Ua((e=NB(e)).l,(t=NB(t)).l),r=Ua(e.a,t.a),i=Ua(e.b,t.b),a=Ua(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 bwe(e){return function(t,n){var r=e((t=UB(t)).h,(n=UB(n)).h),i=Ua(t.c,n.c),a=Ua(t.l,n.l),o=Ua(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 wwe=bwe(YB);function $7(e){return function t(n){n=+n;function r(i,a){var o=e((i=du(i)).h,(a=du(a)).h),s=Ua(i.s,a.s),u=Ua(i.l,a.l),c=Ua(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)}$7(YB);var VB=$7(Ua);function fy(e,t){t===void 0&&(t=e,e=fu);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 fl(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}var Yh=0,ug=0,cg=0,eO=1e3,hy,Ag,py=0,af=0,my=0,dg=typeof performance=="object"&&performance.now?performance:Date,tO=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function zB(){return af||(tO(Bwe),af=dg.now()+my)}function Bwe(){af=0}function gy(){this._call=this._time=this._next=null}gy.prototype=nO.prototype={constructor:gy,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?zB():+n)+(t==null?0:+t),!this._next&&Ag!==this&&(Ag?Ag._next=this:hy=this,Ag=this),this._call=e,this._time=n,qB()},stop:function(){this._call&&(this._call=null,this._time=1/0,qB())}};function nO(e,t,n){var r=new gy;return r.restart(e,t,n),r}function xwe(){zB(),++Yh;for(var e=hy,t;e;)(t=af-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Yh}function rO(){af=(py=dg.now())+my,Yh=ug=0;try{xwe()}finally{Yh=0,Swe(),af=0}}function Cwe(){var e=dg.now(),t=e-py;t>eO&&(my-=t,py=e)}function Swe(){for(var e,t=hy,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:hy=n);Ag=e,qB(r)}function qB(e){if(!Yh){ug&&(ug=clearTimeout(ug));var t=e-af;t>24?(e<1/0&&(ug=setTimeout(rO,e-dg.now()-my)),cg&&(cg=clearInterval(cg))):(cg||(py=dg.now(),cg=setInterval(Cwe,eO)),Yh=1,tO(rO))}}function iO(e,t,n){var r=new gy;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var kwe=bB("start","end","cancel","interrupt"),Mwe=[],aO=0,oO=1,KB=2,vy=3,sO=4,GB=5,yy=6;function _y(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Ewe(e,n,{name:t,index:r,group:i,on:kwe,tween:Mwe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:aO})}function WB(e,t){var n=hl(e,t);if(n.state>aO)throw new Error("too late; already scheduled");return n}function hu(e,t){var n=hl(e,t);if(n.state>vy)throw new Error("too late; already running");return n}function hl(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Ewe(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=nO(a,0,n.time);function a(c){n.state=oO,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!==oO)return u();for(A in r)if(d=r[A],d.name===n.name){if(d.state===vy)return iO(o);d.state===sO?(d.state=yy,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete r[A]):+A<t&&(d.state=yy,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete r[A])}if(iO(function(){n.state===vy&&(n.state=sO,n.timer.restart(s,n.delay,n.time),s(c))}),n.state=KB,n.on.call("start",e,e.__data__,n.index,n.group),n.state===KB){for(n.state=vy,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=GB,1),f=-1,h=i.length;++f<h;)i[f].call(e,A);n.state===GB&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=yy,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function XB(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>KB&&r.state<GB,r.state=yy,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Lwe(e){return this.each(function(){XB(this,e)})}function Twe(e,t){var n,r;return function(){var i=hu(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Nwe(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=hu(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},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 Fwe(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=hl(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?Twe:Nwe)(n,e,t))}function JB(e,t,n){var r=e._id;return e.each(function(){var i=hu(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return hl(i,r).value[t]}}function lO(e,t){var n;return(typeof t=="number"?Pa:t instanceof $d?rf:(n=$d(t))?(t=n,rf):W7)(e,t)}function Owe(e){return function(){this.removeAttribute(e)}}function Iwe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Dwe(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 Uwe(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 Pwe(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 Hwe(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 Ywe(e,t){var n=ny(e),r=n==="transform"?gwe:lO;return this.attrTween(e,typeof t=="function"?(n.local?Hwe:Pwe)(n,r,JB(this,"attr."+e,t)):t==null?(n.local?Iwe:Owe)(n):(n.local?Uwe:Dwe)(n,r,t))}function Rwe(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Qwe(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function jwe(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&Qwe(e,a)),n}return i._value=t,i}function Vwe(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&Rwe(e,a)),n}return i._value=t,i}function zwe(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=ny(e);return this.tween(n,(r.local?jwe:Vwe)(r,t))}function qwe(e,t){return function(){WB(this,e).delay=+t.apply(this,arguments)}}function Kwe(e,t){return t=+t,function(){WB(this,e).delay=t}}function Gwe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?qwe:Kwe)(t,e)):hl(this.node(),t).delay}function Wwe(e,t){return function(){hu(this,e).duration=+t.apply(this,arguments)}}function Xwe(e,t){return t=+t,function(){hu(this,e).duration=t}}function Jwe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Wwe:Xwe)(t,e)):hl(this.node(),t).duration}function Zwe(e,t){if(typeof t!="function")throw new Error;return function(){hu(this,e).ease=t}}function $we(e){var t=this._id;return arguments.length?this.each(Zwe(t,e)):hl(this.node(),t).ease}function e5e(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;hu(this,e).ease=n}}function t5e(e){if(typeof e!="function")throw new Error;return this.each(e5e(this._id,e))}function n5e(e){typeof e!="function"&&(e=g7(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 hc(r,this._parents,this._name,this._id)}function r5e(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 hc(o,this._parents,this._name,this._id)}function i5e(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 a5e(e,t,n){var r,i,a=i5e(t)?WB:hu;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function o5e(e,t){var n=this._id;return arguments.length<2?hl(this.node(),n).on.on(e):this.each(a5e(n,e,t))}function s5e(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",s5e(this._id))}function u5e(e){var t=this._name,n=this._id;typeof e!="function"&&(e=BB(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,_y(c[h],t,n,h,c,hl(A,n)));return new hc(a,this._parents,t,n)}function c5e(e){var t=this._name,n=this._id;typeof e!="function"&&(e=m7(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,p=hl(A,n),m=0,g=h.length;m<g;++m)(d=h[m])&&_y(d,t,n,m,h,p);a.push(h),o.push(A)}return new hc(a,o,t,n)}var A5e=ag.prototype.constructor;function d5e(){return new A5e(this._groups,this._parents)}function f5e(e,t){var n,r,i;return function(){var a=Ih(this,e),o=(this.style.removeProperty(e),Ih(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function uO(e){return function(){this.style.removeProperty(e)}}function h5e(e,t,n){var r,i=n+"",a;return function(){var o=Ih(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function p5e(e,t,n){var r,i,a;return function(){var o=Ih(this,e),s=n(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),Ih(this,e))),o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s))}}function m5e(e,t){var n,r,i,a="style."+t,o="end."+a,s;return function(){var u=hu(this,e),c=u.on,A=u.value[a]==null?s||(s=uO(t)):void 0;(c!==n||i!==A)&&(r=(n=c).copy()).on(o,i=A),u.on=r}}function g5e(e,t,n){var r=(e+="")=="transform"?mwe:lO;return t==null?this.styleTween(e,f5e(e,r)).on("end.style."+e,uO(e)):typeof t=="function"?this.styleTween(e,p5e(e,r,JB(this,"style."+e,t))).each(m5e(this._id,e)):this.styleTween(e,h5e(e,r,t),n).on("end.style."+e,null)}function v5e(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function y5e(e,t,n){var r,i;function a(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&v5e(e,o,n)),r}return a._value=t,a}function _5e(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,y5e(e,t,n??""))}function b5e(e){return function(){this.textContent=e}}function w5e(e){return function(){var t=e(this);this.textContent=t??""}}function B5e(e){return this.tween("text",typeof e=="function"?w5e(JB(this,"text",e)):b5e(e==null?"":e+""))}function x5e(e){return function(t){this.textContent=e.call(this,t)}}function C5e(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&x5e(i)),t}return r._value=e,r}function S5e(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,C5e(e))}function k5e(){for(var e=this._name,t=this._id,n=cO(),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=hl(u,t);_y(u,e,n,c,o,{time:A.time+A.delay+A.duration,delay:0,duration:A.duration,ease:A.ease})}return new hc(r,this._parents,e,n)}function M5e(){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=hu(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 E5e=0;function hc(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function cO(){return++E5e}var pc=ag.prototype;hc.prototype={constructor:hc,select:u5e,selectAll:c5e,selectChild:pc.selectChild,selectChildren:pc.selectChildren,filter:n5e,merge:r5e,selection:d5e,transition:k5e,call:pc.call,nodes:pc.nodes,node:pc.node,size:pc.size,empty:pc.empty,each:pc.each,on:o5e,attr:Ywe,attrTween:zwe,style:g5e,styleTween:_5e,text:B5e,textTween:S5e,remove:l5e,tween:Fwe,delay:Gwe,duration:Jwe,ease:$we,easeVarying:t5e,end:M5e,[Symbol.iterator]:pc[Symbol.iterator]};const L5e=e=>+e;function T5e(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var N5e={time:null,delay:0,duration:250,ease:T5e};function F5e(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 O5e(e){var t,n;e instanceof hc?(t=e._id,e=e._name):(t=cO(),(n=N5e).time=zB(),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])&&_y(u,e,t,c,o,n||F5e(u,t));return new hc(r,this._parents,e,t)}ag.prototype.interrupt=Lwe,ag.prototype.transition=O5e;const ZB=e=>()=>e;function I5e(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 D5e(e){e.stopImmediatePropagation()}function $B(e){e.preventDefault(),e.stopImmediatePropagation()}var AO={name:"drag"},ex={name:"space"},Rh={name:"handle"},Qh={name:"center"};const{abs:dO,max:Ha,min:Ya}=Math;function fO(e){return[+e[0],+e[1]]}function hO(e){return[fO(e[0]),fO(e[1])]}var by={name:"x",handles:["w","e"].map(nx),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]]}},tx={},mc={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"},pO={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},mO={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},U5e={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},P5e={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function nx(e){return{type:e}}function H5e(e){return!e.ctrlKey&&!e.button}function Y5e(){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 R5e(){return navigator.maxTouchPoints||"ontouchstart"in this}function rx(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function Q5e(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function j5e(){return V5e(by)}function V5e(e){var t=Y5e,n=H5e,r=R5e,i=!0,a=bB("start","brush","end"),o=6,s;function u(g){var y=g.property("__brush",m).selectAll(".overlay").data([nx("overlay")]);y.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",mc.overlay).merge(y).each(function(){var _=rx(this).extent;zt(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([nx("selection")]).enter().append("rect").attr("class","selection").attr("cursor",mc.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var v=g.selectAll(".handle").data(e.handles,function(_){return _.type});v.exit().remove(),v.enter().append("rect").attr("class",function(_){return"handle handle--"+_.type}).attr("cursor",function(_){return mc[_.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",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}u.move=function(g,y,v){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),M=b.selection,x=e.input(typeof y=="function"?y.apply(this,arguments):y,b.extent),L=fu(M,x);function N(H){b.selection=H===1&&x===null?null:L(H),c.call(_),w.brush()}return M!==null&&x!==null?N:N(1)}):g.each(function(){var _=this,b=arguments,w=_.__brush,M=e.input(typeof y=="function"?y.apply(_,b):y,w.extent),x=A(_,b).beforestart();XB(_),w.selection=M===null?null:M,c.call(_),x.start(v).brush(v).end(v)})},u.clear=function(g,y){u.move(g,null,y)};function c(){var g=zt(this),y=rx(this).selection;y?(g.selectAll(".selection").style("display",null).attr("x",y[0][0]).attr("y",y[0][1]).attr("width",y[1][0]-y[0][0]).attr("height",y[1][1]-y[0][1]),g.selectAll(".handle").style("display",null).attr("x",function(v){return v.type[v.type.length-1]==="e"?y[1][0]-o/2:y[0][0]-o/2}).attr("y",function(v){return v.type[0]==="s"?y[1][1]-o/2:y[0][1]-o/2}).attr("width",function(v){return v.type==="n"||v.type==="s"?y[1][0]-y[0][0]+o:o}).attr("height",function(v){return v.type==="e"||v.type==="w"?y[1][1]-y[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,y,v){var _=g.__brush.emitter;return _&&(!v||!_.clean)?_:new f(g,y,v)}function f(g,y,v){this.that=g,this.args=y,this.state=g.__brush,this.active=0,this.clean=v}f.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(g,y){return this.starting?(this.starting=!1,this.emit("start",g,y)):this.emit("brush",g),this},brush:function(g,y){return this.emit("brush",g,y),this},end:function(g,y){return--this.active===0&&(delete this.state.emitter,this.emit("end",g,y)),this},emit:function(g,y,v){var _=zt(this.that).datum();a.call(g,this.that,new I5e(g,{sourceEvent:y,target:u,selection:e.output(this.state.selection),mode:v,dispatch:a}),_)}};function h(g){if(s&&!g.touches||!n.apply(this,arguments))return;var y=this,v=g.target.__data__.type,_=(i&&g.metaKey?v="overlay":v)==="selection"?AO:i&&g.altKey?Qh:Rh,b=e===tx?null:U5e[v],w=e===by?null:P5e[v],M=rx(y),x=M.extent,L=M.selection,N=x[0][0],H,S,F=x[0][1],I,E,P=x[1][0],K,q,z=x[1][1],J,re,X=0,D=0,W,ee=b&&w&&i&&g.shiftKey,te,pe,me=Array.from(g.touches||[g],Z=>{const $=Z.identifier;return Z=SB(Z,y),Z.point0=Z.slice(),Z.identifier=$,Z});XB(y);var ve=A(y,arguments,!0).beforestart();if(v==="overlay"){L&&(W=!0);const Z=[me[0],me[1]||me[0]];M.selection=L=[[H=e===tx?N:Ya(Z[0][0],Z[1][0]),I=e===by?F:Ya(Z[0][1],Z[1][1])],[K=e===tx?P:Ha(Z[0][0],Z[1][0]),J=e===by?z:Ha(Z[0][1],Z[1][1])]],me.length>1&&Pe(g)}else H=L[0][0],I=L[0][1],K=L[1][0],J=L[1][1];S=H,E=I,q=K,re=J;var le=zt(y).attr("pointer-events","none"),_e=le.selectAll(".overlay").attr("cursor",mc[v]);if(g.touches)ve.moved=ke,ve.ended=Y;else{var Le=zt(g.view).on("mousemove.brush",ke,!0).on("mouseup.brush",Y,!0);i&&Le.on("keydown.brush",ie,!0).on("keyup.brush",de,!0),Y2e(g.view)}c.call(y),ve.start(g,_.name);function ke(Z){for(const $ of Z.changedTouches||[Z])for(const ae of me)ae.identifier===$.identifier&&(ae.cur=SB($,y));if(ee&&!te&&!pe&&me.length===1){const $=me[0];dO($.cur[0]-$[0])>dO($.cur[1]-$[1])?pe=!0:te=!0}for(const $ of me)$.cur&&($[0]=$.cur[0],$[1]=$.cur[1]);W=!0,$B(Z),Pe(Z)}function Pe(Z){const $=me[0],ae=$.point0;var we;switch(X=$[0]-ae[0],D=$[1]-ae[1],_){case ex:case AO:{b&&(X=Ha(N-H,Ya(P-K,X)),S=H+X,q=K+X),w&&(D=Ha(F-I,Ya(z-J,D)),E=I+D,re=J+D);break}case Rh:{me[1]?(b&&(S=Ha(N,Ya(P,me[0][0])),q=Ha(N,Ya(P,me[1][0])),b=1),w&&(E=Ha(F,Ya(z,me[0][1])),re=Ha(F,Ya(z,me[1][1])),w=1)):(b<0?(X=Ha(N-H,Ya(P-H,X)),S=H+X,q=K):b>0&&(X=Ha(N-K,Ya(P-K,X)),S=H,q=K+X),w<0?(D=Ha(F-I,Ya(z-I,D)),E=I+D,re=J):w>0&&(D=Ha(F-J,Ya(z-J,D)),E=I,re=J+D));break}case Qh:{b&&(S=Ha(N,Ya(P,H-X*b)),q=Ha(N,Ya(P,K+X*b))),w&&(E=Ha(F,Ya(z,I-D*w)),re=Ha(F,Ya(z,J+D*w)));break}}q<S&&(b*=-1,we=H,H=K,K=we,we=S,S=q,q=we,v in pO&&_e.attr("cursor",mc[v=pO[v]])),re<E&&(w*=-1,we=I,I=J,J=we,we=E,E=re,re=we,v in mO&&_e.attr("cursor",mc[v=mO[v]])),M.selection&&(L=M.selection),te&&(S=L[0][0],q=L[1][0]),pe&&(E=L[0][1],re=L[1][1]),(L[0][0]!==S||L[0][1]!==E||L[1][0]!==q||L[1][1]!==re)&&(M.selection=[[S,E],[q,re]],c.call(y),ve.brush(Z,_.name))}function Y(Z){if(D5e(Z),Z.touches){if(Z.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500)}else R2e(Z.view,W),Le.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);le.attr("pointer-events","all"),_e.attr("cursor",mc.overlay),M.selection&&(L=M.selection),Q5e(L)&&(M.selection=null,c.call(y)),ve.end(Z,_.name)}function ie(Z){switch(Z.keyCode){case 16:{ee=b&&w;break}case 18:{_===Rh&&(b&&(K=q-X*b,H=S+X*b),w&&(J=re-D*w,I=E+D*w),_=Qh,Pe(Z));break}case 32:{(_===Rh||_===Qh)&&(b<0?K=q-X:b>0&&(H=S-X),w<0?J=re-D:w>0&&(I=E-D),_=ex,_e.attr("cursor",mc.selection),Pe(Z));break}default:return}$B(Z)}function de(Z){switch(Z.keyCode){case 16:{ee&&(te=pe=ee=!1,Pe(Z));break}case 18:{_===Qh&&(b<0?K=q:b>0&&(H=S),w<0?J=re:w>0&&(I=E),_=Rh,Pe(Z));break}case 32:{_===ex&&(Z.altKey?(b&&(K=q-X*b,H=S+X*b),w&&(J=re-D*w,I=E+D*w),_=Qh):(b<0?K=q:b>0&&(H=S),w<0?J=re:w>0&&(I=E),_=Rh),_e.attr("cursor",mc[v]),Pe(Z));break}default:return}$B(Z)}}function d(g){A(this,arguments).moved(g)}function p(g){A(this,arguments).ended(g)}function m(){var g=this.__brush||{selection:null};return g.extent=hO(t.apply(this,arguments)),g.dim=e,g}return u.extent=function(g){return arguments.length?(t=typeof g=="function"?g:ZB(hO(g)),u):t},u.filter=function(g){return arguments.length?(n=typeof g=="function"?g:ZB(!!g),u):n},u.touchable=function(g){return arguments.length?(r=typeof g=="function"?g:ZB(!!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 ix=Math.PI,ax=2*ix,of=1e-6,z5e=ax-of;function gO(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function q5e(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return gO;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 vO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?gO:q5e(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>of)if(!(Math.abs(f*u-c*A)>of)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let d=r-o,p=i-s,m=u*u+c*c,g=d*d+p*p,y=Math.sqrt(m),v=Math.sqrt(h),_=a*Math.tan((ix-Math.acos((m+h-g)/(2*y*v)))/2),b=_/v,w=_/y;Math.abs(b-1)>of&&this._append`L${t+b*A},${n+b*f}`,this._append`A${a},${a},0,0,${+(f*d>A*p)},${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)>of||Math.abs(this._y1-A)>of)&&this._append`L${c},${A}`,r&&(h<0&&(h=h%ax+ax),h>z5e?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>of&&this._append`A${r},${r},0,${+(h>=ix)},${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 sf(e=3){return new vO(+e)}function K5e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function wy(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 jh(e){return e=wy(Math.abs(e)),e?e[1]:NaN}function G5e(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 W5e(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var X5e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function fg(e){if(!(t=X5e.exec(e)))throw new Error("invalid format: "+e);var t;return new ox({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]})}fg.prototype=ox.prototype;function ox(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+""}ox.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 J5e(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 yO;function Z5e(e,t){var n=wy(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(yO=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")+wy(e,Math.max(0,t+a-1))[0]}function _O(e,t){var n=wy(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 bO={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:K5e,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)=>_O(e*100,t),r:_O,s:Z5e,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function wO(e){return e}var BO=Array.prototype.map,xO=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function $5e(e){var t=e.grouping===void 0||e.thousands===void 0?wO:G5e(BO.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?wO:W5e(BO.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=fg(f);var h=f.fill,d=f.align,p=f.sign,m=f.symbol,g=f.zero,y=f.width,v=f.comma,_=f.precision,b=f.trim,w=f.type;w==="n"?(v=!0,w="g"):bO[w]||(_===void 0&&(_=12),b=!0,w="g"),(g||h==="0"&&d==="=")&&(g=!0,h="0",d="=");var M=m==="$"?n:m==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",x=m==="$"?r:/[%p]/.test(w)?o:"",L=bO[w],N=/[defgprs%]/.test(w);_=_===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function H(S){var F=M,I=x,E,P,K;if(w==="c")I=L(S)+I,S="";else{S=+S;var q=S<0||1/S<0;if(S=isNaN(S)?u:L(Math.abs(S),_),b&&(S=J5e(S)),q&&+S==0&&p!=="+"&&(q=!1),F=(q?p==="("?p:s:p==="-"||p==="("?"":p)+F,I=(w==="s"?xO[8+yO/3]:"")+I+(q&&p==="("?")":""),N){for(E=-1,P=S.length;++E<P;)if(K=S.charCodeAt(E),48>K||K>57){I=(K===46?i+S.slice(E+1):S.slice(E))+I,S=S.slice(0,E);break}}}v&&!g&&(S=t(S,1/0));var z=F.length+S.length+I.length,J=z<y?new Array(y-z+1).join(h):"";switch(v&&g&&(S=t(J+S,J.length?y-I.length:1/0),J=""),d){case"<":S=F+S+I+J;break;case"=":S=F+J+S+I;break;case"^":S=J.slice(0,z=J.length>>1)+F+S+I+J.slice(z);break;default:S=J+F+S+I;break}return a(S)}return H.toString=function(){return f+""},H}function A(f,h){var d=c((f=fg(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(jh(h)/3)))*3,m=Math.pow(10,-p),g=xO[8+p/3];return function(y){return d(m*y)+g}}return{format:c,formatPrefix:A}}var By,pu,CO;eBe({thousands:",",grouping:[3],currency:["$",""]});function eBe(e){return By=$5e(e),pu=By.format,CO=By.formatPrefix,By}function tBe(e){return Math.max(0,-jh(Math.abs(e)))}function nBe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(jh(t)/3)))*3-jh(Math.abs(e)))}function rBe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,jh(t)-jh(e))+1}var Nn=1e-6,SO=1e-12,Hn=Math.PI,di=Hn/2,kO=Hn/4,Xo=Hn*2,so=180/Hn,fi=Hn/180,yr=Math.abs,Vh=Math.atan,gc=Math.atan2,Un=Math.cos,MO=Math.exp,xy=Math.log,sx=Math.pow,Sn=Math.sin,xs=Math.sign||function(e){return e>0?1:e<0?-1:0},Mo=Math.sqrt,lx=Math.tan;function EO(e){return e>1?0:e<-1?Hn:Math.acos(e)}function Cs(e){return e>1?di:e<-1?-di:Math.asin(e)}function Ss(){}function Cy(e,t){e&&TO.hasOwnProperty(e.type)&&TO[e.type](e,t)}var LO={Feature:function(e,t){Cy(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)Cy(n[r].geometry,t)}},TO={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){ux(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)ux(n[r],t,0)},Polygon:function(e,t){NO(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)NO(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)Cy(n[r],t)}};function ux(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 NO(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)ux(e[n],t,1);t.polygonEnd()}function lf(e,t){e&&LO.hasOwnProperty(e.type)?LO[e.type](e,t):Cy(e,t)}function cx(e){return[gc(e[1],e[0]),Cs(e[2])]}function zh(e){var t=e[0],n=e[1],r=Un(n);return[r*Un(t),r*Sn(t),Sn(n)]}function Sy(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function ky(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 Ax(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function My(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function dx(e){var t=Mo(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function fx(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 hx(e,t){return yr(e)>Hn&&(e-=Math.round(e/Xo)*Xo),[e,t]}hx.invert=hx;function FO(e,t,n){return(e%=Xo)?t||n?fx(IO(e),DO(t,n)):IO(e):t||n?DO(t,n):hx}function OO(e){return function(t,n){return t+=e,yr(t)>Hn&&(t-=Math.round(t/Xo)*Xo),[t,n]}}function IO(e){var t=OO(e);return t.invert=OO(-e),t}function DO(e,t){var n=Un(e),r=Sn(e),i=Un(t),a=Sn(t);function o(s,u){var c=Un(u),A=Un(s)*c,f=Sn(s)*c,h=Sn(u),d=h*n+A*r;return[gc(f*i-d*a,A*n-h*r),Cs(d*i+f*a)]}return o.invert=function(s,u){var c=Un(u),A=Un(s)*c,f=Sn(s)*c,h=Sn(u),d=h*i-f*a;return[gc(f*i+h*a,A*n+d*r),Cs(d*n-A*r)]},o}function iBe(e){e=FO(e[0]*fi,e[1]*fi,e.length>2?e[2]*fi:0);function t(n){return n=e(n[0]*fi,n[1]*fi),n[0]*=so,n[1]*=so,n}return t.invert=function(n){return n=e.invert(n[0]*fi,n[1]*fi),n[0]*=so,n[1]*=so,n},t}function aBe(e,t,n,r,i,a){if(n){var o=Un(t),s=Sn(t),u=r*n;i==null?(i=t+r*Xo,a=t-u/2):(i=UO(o,i),a=UO(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=cx([o,-s*Un(A),-s*Sn(A)]),e.point(c[0],c[1])}}function UO(e,t){t=zh(t),t[0]-=e,dx(t);var n=EO(-t[1]);return((-t[2]<0?-n:n)+Xo-Nn)%Xo}function PO(){var e=[],t;return{point:function(n,r,i){t.push([n,r,i])},lineStart:function(){e.push(t=[])},lineEnd:Ss,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Ey(e,t){return yr(e[0]-t[0])<Nn&&yr(e[1]-t[1])<Nn}function Ly(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 HO(e,t,n,r,i){var a=[],o=[],s,u;if(e.forEach(function(p){if(!((m=p.length-1)<=0)){var m,g=p[0],y=p[m],v;if(Ey(g,y)){if(!g[2]&&!y[2]){for(i.lineStart(),s=0;s<m;++s)i.point((g=p[s])[0],g[1]);i.lineEnd();return}y[0]+=2*Nn}a.push(v=new Ly(g,p,null,!0)),o.push(v.o=new Ly(g,null,v,!1)),a.push(v=new Ly(y,p,null,!1)),o.push(v.o=new Ly(y,null,v,!0))}}),!!a.length){for(o.sort(t),YO(a),YO(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 YO(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 px(e){return yr(e[0])<=Hn?e[0]:xs(e[0])*((yr(e[0])+Hn)%Xo-Hn)}function oBe(e,t){var n=px(t),r=t[1],i=Sn(r),a=[Sn(n),-Un(n),0],o=0,s=0,u=new Wd;i===1?r=di+Nn:i===-1&&(r=-di-Nn);for(var c=0,A=e.length;c<A;++c)if(h=(f=e[c]).length)for(var f,h,d=f[h-1],p=px(d),m=d[1]/2+kO,g=Sn(m),y=Un(m),v=0;v<h;++v,p=b,g=M,y=x,d=_){var _=f[v],b=px(_),w=_[1]/2+kO,M=Sn(w),x=Un(w),L=b-p,N=L>=0?1:-1,H=N*L,S=H>Hn,F=g*M;if(u.add(gc(F*N*Sn(H),y*x+F*Un(H))),o+=S?L+N*Xo:L,S^p>=n^b>=n){var I=ky(zh(d),zh(_));dx(I);var E=ky(a,I);dx(E);var P=(S^L>=0?-1:1)*Cs(E[2]);(r>P||r===P&&(I[0]||I[1]))&&(s+=S^L>=0?1:-1)}}return(o<-Nn||o<Nn&&u<-SO)^s&1}function RO(e,t,n,r){return function(i){var a=t(i),o=PO(),s=t(o),u=!1,c,A,f,h={point:d,lineStart:m,lineEnd:g,polygonStart:function(){h.point=y,h.lineStart=v,h.lineEnd=_,A=[],c=[]},polygonEnd:function(){h.point=d,h.lineStart=m,h.lineEnd=g,A=A7(A);var b=oBe(c,r);A.length?(u||(i.polygonStart(),u=!0),HO(A,lBe,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 p(b,w){a.point(b,w)}function m(){h.point=p,a.lineStart()}function g(){h.point=d,a.lineEnd()}function y(b,w){f.push([b,w]),s.point(b,w)}function v(){s.lineStart(),f=[]}function _(){y(f[0][0],f[0][1]),s.lineEnd();var b=s.clean(),w=o.result(),M,x=w.length,L,N,H;if(f.pop(),c.push(f),f=null,!!x){if(b&1){if(N=w[0],(L=N.length-1)>0){for(u||(i.polygonStart(),u=!0),i.lineStart(),M=0;M<L;++M)i.point((H=N[M])[0],H[1]);i.lineEnd()}return}x>1&&b&2&&w.push(w.pop().concat(w.shift())),A.push(w.filter(sBe))}}return h}}function sBe(e){return e.length>1}function lBe(e,t){return((e=e.x)[0]<0?e[1]-di-Nn:di-e[1])-((t=t.x)[0]<0?t[1]-di-Nn:di-t[1])}const QO=RO(function(){return!0},uBe,ABe,[-Hn,-di]);function uBe(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(a,o){var s=a>0?Hn:-Hn,u=yr(a-t);yr(u-Hn)<Nn?(e.point(t,n=(n+o)/2>0?di:-di),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),e.point(a,n),i=0):r!==s&&u>=Hn&&(yr(t-r)<Nn&&(t-=r*Nn),yr(a-s)<Nn&&(a-=s*Nn),n=cBe(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 cBe(e,t,n,r){var i,a,o=Sn(e-n);return yr(o)>Nn?Vh((Sn(t)*(a=Un(r))*Sn(n)-Sn(r)*(i=Un(t))*Sn(e))/(i*a*o)):(t+r)/2}function ABe(e,t,n,r){var i;if(e==null)i=n*di,r.point(-Hn,i),r.point(0,i),r.point(Hn,i),r.point(Hn,0),r.point(Hn,-i),r.point(0,-i),r.point(-Hn,-i),r.point(-Hn,0),r.point(-Hn,i);else if(yr(e[0]-t[0])>Nn){var a=e[0]<t[0]?Hn:-Hn;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(t[0],t[1])}function dBe(e){var t=Un(e),n=2*fi,r=t>0,i=yr(t)>Nn;function a(A,f,h,d){aBe(d,e,n,h,A,f)}function o(A,f){return Un(A)*Un(f)>t}function s(A){var f,h,d,p,m;return{lineStart:function(){p=d=!1,m=1},point:function(g,y){var v=[g,y],_,b=o(g,y),w=r?b?0:c(g,y):b?c(g+(g<0?Hn:-Hn),y):0;if(!f&&(p=d=b)&&A.lineStart(),b!==d&&(_=u(f,v),(!_||Ey(f,_)||Ey(v,_))&&(v[2]=1)),b!==d)m=0,b?(A.lineStart(),_=u(v,f),A.point(_[0],_[1])):(_=u(f,v),A.point(_[0],_[1],2),A.lineEnd()),f=_;else if(i&&f&&r^b){var M;!(w&h)&&(M=u(v,f,!0))&&(m=0,r?(A.lineStart(),A.point(M[0][0],M[0][1]),A.point(M[1][0],M[1][1]),A.lineEnd()):(A.point(M[1][0],M[1][1]),A.lineEnd(),A.lineStart(),A.point(M[0][0],M[0][1],3)))}b&&(!f||!Ey(f,v))&&A.point(v[0],v[1]),f=v,d=b,h=w},lineEnd:function(){d&&A.lineEnd(),f=null},clean:function(){return m|(p&&d)<<1}}}function u(A,f,h){var d=zh(A),p=zh(f),m=[1,0,0],g=ky(d,p),y=Sy(g,g),v=g[0],_=y-v*v;if(!_)return!h&&A;var b=t*y/_,w=-t*v/_,M=ky(m,g),x=My(m,b),L=My(g,w);Ax(x,L);var N=M,H=Sy(x,N),S=Sy(N,N),F=H*H-S*(Sy(x,x)-1);if(!(F<0)){var I=Mo(F),E=My(N,(-H-I)/S);if(Ax(E,x),E=cx(E),!h)return E;var P=A[0],K=f[0],q=A[1],z=f[1],J;K<P&&(J=P,P=K,K=J);var re=K-P,X=yr(re-Hn)<Nn,D=X||re<Nn;if(!X&&z<q&&(J=q,q=z,z=J),D?X?q+z>0^E[1]<(yr(E[0]-P)<Nn?q:z):q<=E[1]&&E[1]<=z:re>Hn^(P<=E[0]&&E[0]<=K)){var W=My(N,(-H+I)/S);return Ax(W,x),[E,cx(W)]}}}function c(A,f){var h=r?e:Hn-e,d=0;return A<-h?d|=1:A>h&&(d|=2),f<-h?d|=4:f>h&&(d|=8),d}return RO(o,s,a,r?[0,-e]:[-Hn,e-Hn])}function fBe(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,p;if(p=n-o,!(!h&&p>0)){if(p/=h,h<0){if(p<A)return;p<f&&(f=p)}else if(h>0){if(p>f)return;p>A&&(A=p)}if(p=i-o,!(!h&&p<0)){if(p/=h,h<0){if(p>f)return;p>A&&(A=p)}else if(h>0){if(p<A)return;p<f&&(f=p)}if(p=r-s,!(!d&&p>0)){if(p/=d,d<0){if(p<A)return;p<f&&(f=p)}else if(d>0){if(p>f)return;p>A&&(A=p)}if(p=a-s,!(!d&&p<0)){if(p/=d,d<0){if(p>f)return;p>A&&(A=p)}else if(d>0){if(p<A)return;p<f&&(f=p)}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 hg=1e9,Ty=-hg;function jO(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,p=0;if(c==null||(d=o(c,f))!==(p=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)!==p);else h.point(A[0],A[1])}function o(c,A){return yr(c[0]-e)<Nn?A>0?0:3:yr(c[0]-n)<Nn?A>0?2:1:yr(c[1]-t)<Nn?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=PO(),h,d,p,m,g,y,v,_,b,w,M,x={point:L,lineStart:F,lineEnd:I,polygonStart:H,polygonEnd:S};function L(P,K){i(P,K)&&A.point(P,K)}function N(){for(var P=0,K=0,q=d.length;K<q;++K)for(var z=d[K],J=1,re=z.length,X=z[0],D,W,ee=X[0],te=X[1];J<re;++J)D=ee,W=te,X=z[J],ee=X[0],te=X[1],W<=r?te>r&&(ee-D)*(r-W)>(te-W)*(e-D)&&++P:te<=r&&(ee-D)*(r-W)<(te-W)*(e-D)&&--P;return P}function H(){A=f,h=[],d=[],M=!0}function S(){var P=N(),K=M&&P,q=(h=A7(h)).length;(K||q)&&(c.polygonStart(),K&&(c.lineStart(),a(null,null,1,c),c.lineEnd()),q&&HO(h,s,P,a,c),c.polygonEnd()),A=c,h=d=p=null}function F(){x.point=E,d&&d.push(p=[]),w=!0,b=!1,v=_=NaN}function I(){h&&(E(m,g),y&&b&&f.rejoin(),h.push(f.result())),x.point=L,b&&A.lineEnd()}function E(P,K){var q=i(P,K);if(d&&p.push([P,K]),w)m=P,g=K,y=q,w=!1,q&&(A.lineStart(),A.point(P,K));else if(q&&b)A.point(P,K);else{var z=[v=Math.max(Ty,Math.min(hg,v)),_=Math.max(Ty,Math.min(hg,_))],J=[P=Math.max(Ty,Math.min(hg,P)),K=Math.max(Ty,Math.min(hg,K))];fBe(z,J,e,t,n,r)?(b||(A.lineStart(),A.point(z[0],z[1])),A.point(J[0],J[1]),q||A.lineEnd(),M=!1):q&&(A.lineStart(),A.point(P,K),M=!1)}v=P,_=K,b=q}return x}}const mx=e=>e;var gx=new Wd,vx=new Wd,VO,zO,yx,_x,vc={point:Ss,lineStart:Ss,lineEnd:Ss,polygonStart:function(){vc.lineStart=hBe,vc.lineEnd=mBe},polygonEnd:function(){vc.lineStart=vc.lineEnd=vc.point=Ss,gx.add(yr(vx)),vx=new Wd},result:function(){var e=gx/2;return gx=new Wd,e}};function hBe(){vc.point=pBe}function pBe(e,t){vc.point=qO,VO=yx=e,zO=_x=t}function qO(e,t){vx.add(_x*e-yx*t),yx=e,_x=t}function mBe(){qO(VO,zO)}var qh=1/0,Ny=qh,pg=-qh,Fy=pg,Oy={point:gBe,lineStart:Ss,lineEnd:Ss,polygonStart:Ss,polygonEnd:Ss,result:function(){var e=[[qh,Ny],[pg,Fy]];return pg=Fy=-(Ny=qh=1/0),e}};function gBe(e,t){e<qh&&(qh=e),e>pg&&(pg=e),t<Ny&&(Ny=t),t>Fy&&(Fy=t)}var bx=0,wx=0,mg=0,Iy=0,Dy=0,Kh=0,Bx=0,xx=0,gg=0,KO,GO,mu,gu,ks={point:uf,lineStart:WO,lineEnd:XO,polygonStart:function(){ks.lineStart=_Be,ks.lineEnd=bBe},polygonEnd:function(){ks.point=uf,ks.lineStart=WO,ks.lineEnd=XO},result:function(){var e=gg?[Bx/gg,xx/gg]:Kh?[Iy/Kh,Dy/Kh]:mg?[bx/mg,wx/mg]:[NaN,NaN];return bx=wx=mg=Iy=Dy=Kh=Bx=xx=gg=0,e}};function uf(e,t){bx+=e,wx+=t,++mg}function WO(){ks.point=vBe}function vBe(e,t){ks.point=yBe,uf(mu=e,gu=t)}function yBe(e,t){var n=e-mu,r=t-gu,i=Mo(n*n+r*r);Iy+=i*(mu+e)/2,Dy+=i*(gu+t)/2,Kh+=i,uf(mu=e,gu=t)}function XO(){ks.point=uf}function _Be(){ks.point=wBe}function bBe(){JO(KO,GO)}function wBe(e,t){ks.point=JO,uf(KO=mu=e,GO=gu=t)}function JO(e,t){var n=e-mu,r=t-gu,i=Mo(n*n+r*r);Iy+=i*(mu+e)/2,Dy+=i*(gu+t)/2,Kh+=i,i=gu*e-mu*t,Bx+=i*(mu+e),xx+=i*(gu+t),gg+=i*3,uf(mu=e,gu=t)}function ZO(e){this._context=e}ZO.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:Ss};var Cx=new Wd,Sx,$O,eI,vg,yg,_g={point:Ss,lineStart:function(){_g.point=BBe},lineEnd:function(){Sx&&tI($O,eI),_g.point=Ss},polygonStart:function(){Sx=!0},polygonEnd:function(){Sx=null},result:function(){var e=+Cx;return Cx=new Wd,e}};function BBe(e,t){_g.point=tI,$O=vg=e,eI=yg=t}function tI(e,t){vg-=e,yg-=t,Cx.add(Mo(vg*vg+yg*yg)),vg=e,yg=t}let nI,Uy,rI,iI;class aI{constructor(t){this._append=t==null?oI:xBe(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!==rI||this._append!==Uy){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`,rI=r,Uy=this._append,iI=this._,this._=i}this._+=iI;break}}}result(){const t=this._;return this._="",t.length?t:null}}function oI(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function xBe(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return oI;if(t!==nI){const n=10**t;nI=t,Uy=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 Uy}function kx(e,t){let n=3,r=4.5,i,a;function o(s){return s&&(typeof r=="function"&&a.pointRadius(+r.apply(this,arguments)),lf(s,i(a))),a.result()}return o.area=function(s){return lf(s,i(vc)),vc.result()},o.measure=function(s){return lf(s,i(_g)),_g.result()},o.bounds=function(s){return lf(s,i(Oy)),Oy.result()},o.centroid=function(s){return lf(s,i(ks)),ks.result()},o.projection=function(s){return arguments.length?(i=s==null?(e=null,mx):(e=s).stream,o):e},o.context=function(s){return arguments.length?(a=s==null?(t=null,new aI(n)):new ZO(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 aI(n)),o},o.projection(e).digits(n).context(t)}function Py(e){return{stream:Hy(e)}}function Hy(e){return function(t){var n=new Mx;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Mx(){}Mx.prototype={constructor:Mx,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 Ex(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),lf(n,e.stream(Oy)),t(Oy.result()),r!=null&&e.clipExtent(r),e}function Lx(e,t,n){return Ex(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 sI(e,t,n){return Lx(e,[[0,0],t],n)}function lI(e,t,n){return Ex(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 uI(e,t,n){return Ex(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 cI=16,CBe=Un(30*fi);function AI(e,t){return+t?kBe(e,t):SBe(e)}function SBe(e){return Hy({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function kBe(e,t){function n(r,i,a,o,s,u,c,A,f,h,d,p,m,g){var y=c-r,v=A-i,_=y*y+v*v;if(_>4*t&&m--){var b=o+h,w=s+d,M=u+p,x=Mo(b*b+w*w+M*M),L=Cs(M/=x),N=yr(yr(M)-1)<Nn||yr(a-f)<Nn?(a+f)/2:gc(w,b),H=e(N,L),S=H[0],F=H[1],I=S-r,E=F-i,P=v*I-y*E;(P*P/_>t||yr((y*I+v*E)/_-.5)>.3||o*h+s*d+u*p<CBe)&&(n(r,i,a,o,s,u,S,F,N,b/=x,w/=x,M,m,g),g.point(S,F),n(S,F,N,b,w,M,c,A,f,h,d,p,m,g))}}return function(r){var i,a,o,s,u,c,A,f,h,d,p,m,g={point:y,lineStart:v,lineEnd:b,polygonStart:function(){r.polygonStart(),g.lineStart=w},polygonEnd:function(){r.polygonEnd(),g.lineStart=v}};function y(L,N){L=e(L,N),r.point(L[0],L[1])}function v(){f=NaN,g.point=_,r.lineStart()}function _(L,N){var H=zh([L,N]),S=e(L,N);n(f,h,A,d,p,m,f=S[0],h=S[1],A=L,d=H[0],p=H[1],m=H[2],cI,r),r.point(f,h)}function b(){g.point=y,r.lineEnd()}function w(){v(),g.point=M,g.lineEnd=x}function M(L,N){_(i=L,N),a=f,o=h,s=d,u=p,c=m,g.point=_}function x(){n(f,h,A,d,p,m,a,o,i,s,u,c,cI,r),g.lineEnd=b,b()}return g}}var MBe=Hy({point:function(e,t){this.stream.point(e*fi,t*fi)}});function EBe(e){return Hy({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function LBe(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 dI(e,t,n,r,i,a){if(!a)return LBe(e,t,n,r,i);var o=Un(a),s=Sn(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 p(m,g){return m*=r,g*=i,[u*m-c*g+t,n-c*m-u*g]}return p.invert=function(m,g){return[r*(A*m-f*g+h),i*(d-f*m-A*g)]},p}function kA(e){return fI(function(){return e})()}function fI(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,p=null,m=QO,g=null,y,v,_,b=mx,w=.5,M,x,L,N,H;function S(P){return L(P[0]*fi,P[1]*fi)}function F(P){return P=L.invert(P[0],P[1]),P&&[P[0]*so,P[1]*so]}S.stream=function(P){return N&&H===P?N:N=MBe(EBe(A)(m(M(b(H=P)))))},S.preclip=function(P){return arguments.length?(m=P,p=void 0,E()):m},S.postclip=function(P){return arguments.length?(b=P,g=y=v=_=null,E()):b},S.clipAngle=function(P){return arguments.length?(m=+P?dBe(p=P*fi):(p=null,QO),E()):p*so},S.clipExtent=function(P){return arguments.length?(b=P==null?(g=y=v=_=null,mx):jO(g=+P[0][0],y=+P[0][1],v=+P[1][0],_=+P[1][1]),E()):g==null?null:[[g,y],[v,_]]},S.scale=function(P){return arguments.length?(n=+P,I()):n},S.translate=function(P){return arguments.length?(r=+P[0],i=+P[1],I()):[r,i]},S.center=function(P){return arguments.length?(a=P[0]%360*fi,o=P[1]%360*fi,I()):[a*so,o*so]},S.rotate=function(P){return arguments.length?(s=P[0]%360*fi,u=P[1]%360*fi,c=P.length>2?P[2]%360*fi:0,I()):[s*so,u*so,c*so]},S.angle=function(P){return arguments.length?(f=P%360*fi,I()):f*so},S.reflectX=function(P){return arguments.length?(h=P?-1:1,I()):h<0},S.reflectY=function(P){return arguments.length?(d=P?-1:1,I()):d<0},S.precision=function(P){return arguments.length?(M=AI(x,w=P*P),E()):Mo(w)},S.fitExtent=function(P,K){return Lx(S,P,K)},S.fitSize=function(P,K){return sI(S,P,K)},S.fitWidth=function(P,K){return lI(S,P,K)},S.fitHeight=function(P,K){return uI(S,P,K)};function I(){var P=dI(n,0,0,h,d,f).apply(null,t(a,o)),K=dI(n,r-P[0],i-P[1],h,d,f);return A=FO(s,u,c),x=fx(t,K),L=fx(A,x),M=AI(x,w),E()}function E(){return N=H=null,S}return function(){return t=e.apply(this,arguments),S.invert=t.invert&&F,I()}}function Tx(e){var t=0,n=Hn/3,r=fI(e),i=r(t,n);return i.parallels=function(a){return arguments.length?r(t=a[0]*fi,n=a[1]*fi):[t*so,n*so]},i}function TBe(e){var t=Un(e);function n(r,i){return[r*t,Sn(i)/t]}return n.invert=function(r,i){return[r/t,Cs(i*t)]},n}function NBe(e,t){var n=Sn(e),r=(n+Sn(t))/2;if(yr(r)<Nn)return TBe(e);var i=1+n*(2*r-n),a=Mo(i)/r;function o(s,u){var c=Mo(i-2*r*Sn(u))/r;return[c*Sn(s*=r),a-c*Un(s)]}return o.invert=function(s,u){var c=a-u,A=gc(s,yr(c))*xs(c);return c*r<0&&(A-=Hn*xs(s)*xs(c)),[A/r,Cs((i-(s*s+c*c)*r*r)/(2*r))]},o}function Yy(){return Tx(NBe).scale(155.424).center([0,33.6442])}function hI(){return Yy().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function FBe(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 OBe(){var e,t,n=hI(),r,i=Yy().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a,o=Yy().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],p=h[1];return u=null,r.point(d,p),u||(a.point(d,p),u)||(s.point(d,p),u)}A.invert=function(h){var d=n.scale(),p=n.translate(),m=(h[0]-p[0])/d,g=(h[1]-p[1])/d;return(g>=.12&&g<.234&&m>=-.425&&m<-.214?i:g>=.166&&g<.234&&m>=-.214&&m<-.115?o:n).invert(h)},A.stream=function(h){return e&&t===h?e:e=FBe([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(),p=+h[0],m=+h[1];return r=n.translate(h).clipExtent([[p-.455*d,m-.238*d],[p+.455*d,m+.238*d]]).stream(c),a=i.translate([p-.307*d,m+.201*d]).clipExtent([[p-.425*d+Nn,m+.12*d+Nn],[p-.214*d-Nn,m+.234*d-Nn]]).stream(c),s=o.translate([p-.205*d,m+.212*d]).clipExtent([[p-.214*d+Nn,m+.166*d+Nn],[p-.115*d-Nn,m+.234*d-Nn]]).stream(c),f()},A.fitExtent=function(h,d){return Lx(A,h,d)},A.fitSize=function(h,d){return sI(A,h,d)},A.fitWidth=function(h,d){return lI(A,h,d)},A.fitHeight=function(h,d){return uI(A,h,d)};function f(){return e=t=null,A}return A.scale(1070)}function pI(e){return function(t,n){var r=Un(t),i=Un(n),a=e(r*i);return a===1/0?[2,0]:[a*i*Sn(t),a*Sn(n)]}}function bg(e){return function(t,n){var r=Mo(t*t+n*n),i=e(r),a=Sn(i),o=Un(i);return[gc(t*a,r*o),Cs(r&&n*a/r)]}}var mI=pI(function(e){return Mo(2/(1+e))});mI.invert=bg(function(e){return 2*Cs(e/2)});function IBe(){return kA(mI).scale(124.75).clipAngle(180-.001)}var gI=pI(function(e){return(e=EO(e))&&e/Sn(e)});gI.invert=bg(function(e){return e});function DBe(){return kA(gI).scale(79.4188).clipAngle(180-.001)}function Ry(e,t){return[e,xy(lx((di+t)/2))]}Ry.invert=function(e,t){return[e,2*Vh(MO(t))-di]};function UBe(){return vI(Ry).scale(961/Xo)}function vI(e){var t=kA(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=Hn*r(),h=t(iBe(t.rotate()).invert([0,0]));return a(o==null?[[h[0]-f,h[1]-f],[h[0]+f,h[1]+f]]:e===Ry?[[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 Qy(e){return lx((di+e)/2)}function PBe(e,t){var n=Un(e),r=e===t?Sn(e):xy(n/Un(t))/xy(Qy(t)/Qy(e)),i=n*sx(Qy(e),r)/r;if(!r)return Ry;function a(o,s){i>0?s<-di+Nn&&(s=-di+Nn):s>di-Nn&&(s=di-Nn);var u=i/sx(Qy(s),r);return[u*Sn(r*o),i-u*Un(r*o)]}return a.invert=function(o,s){var u=i-s,c=xs(r)*Mo(o*o+u*u),A=gc(o,yr(u))*xs(u);return u*r<0&&(A-=Hn*xs(o)*xs(u)),[A/r,2*Vh(sx(i/c,1/r))-di]},a}function HBe(){return Tx(PBe).scale(109.5).parallels([30,30])}function jy(e,t){return[e,t]}jy.invert=jy;function YBe(){return kA(jy).scale(152.63)}function RBe(e,t){var n=Un(e),r=e===t?Sn(e):(n-Un(t))/(t-e),i=n/r+e;if(yr(r)<Nn)return jy;function a(o,s){var u=i-s,c=r*o;return[u*Sn(c),i-u*Un(c)]}return a.invert=function(o,s){var u=i-s,c=gc(o,yr(u))*xs(u);return u*r<0&&(c-=Hn*xs(o)*xs(u)),[c/r,i-xs(r)*Mo(o*o+u*u)]},a}function QBe(){return Tx(RBe).scale(131.154).center([0,13.9389])}var wg=1.340264,Bg=-.081106,xg=893e-6,Cg=.003796,Vy=Mo(3)/2,jBe=12;function yI(e,t){var n=Cs(Vy*Sn(t)),r=n*n,i=r*r*r;return[e*Un(n)/(Vy*(wg+3*Bg*r+i*(7*xg+9*Cg*r))),n*(wg+Bg*r+i*(xg+Cg*r))]}yI.invert=function(e,t){for(var n=t,r=n*n,i=r*r*r,a=0,o,s,u;a<jBe&&(s=n*(wg+Bg*r+i*(xg+Cg*r))-t,u=wg+3*Bg*r+i*(7*xg+9*Cg*r),n-=o=s/u,r=n*n,i=r*r*r,!(yr(o)<SO));++a);return[Vy*e*(wg+3*Bg*r+i*(7*xg+9*Cg*r))/Un(n),Cs(Sn(n)/Vy)]};function VBe(){return kA(yI).scale(177.158)}function _I(e,t){var n=Un(t),r=Un(e)*n;return[n*Sn(e)/r,Sn(t)/r]}_I.invert=bg(Vh);function zBe(){return kA(_I).scale(144.049).clipAngle(60)}function bI(e,t){return[Un(t)*Sn(e),Sn(t)]}bI.invert=bg(Cs);function qBe(){return kA(bI).scale(249.5).clipAngle(90+Nn)}function wI(e,t){var n=Un(t),r=1+Un(e)*n;return[n*Sn(e)/r,Sn(t)/r]}wI.invert=bg(function(e){return 2*Vh(e)});function KBe(){return kA(wI).scale(250).clipAngle(142)}function BI(e,t){return[xy(lx((di+t)/2)),-e]}BI.invert=function(e,t){return[-t,2*Vh(MO(e))-di]};function GBe(){var e=vI(BI),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 vu(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Sg(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 Nx=Symbol("implicit");function Fx(){var e=new tg,t=[],n=[],r=Nx;function i(a){let o=e.get(a);if(o===void 0){if(r!==Nx)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 tg;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 Fx(t,n).unknown(r)},vu.apply(i,arguments),i}function MA(){var e=Fx().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,p=d?i:r,m=d?r:i;a=(m-p)/Math.max(1,h-u+c*2),s&&(a=Math.floor(a)),p+=(m-p-a*(h-u))*A,o=a*(1-u),s&&(p=Math.round(p),o=Math.round(o));var g=yB(h).map(function(y){return p+a*y});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 MA(t(),[r,i]).round(s).paddingInner(u).paddingOuter(c).align(A)},vu.apply(f(),arguments)}function xI(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return xI(t())},e}function WBe(){return xI(MA.apply(null,arguments).paddingInner(1))}function XBe(e){return function(){return e}}function Ox(e){return+e}var CI=[0,1];function Eo(e){return e}function Ix(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:XBe(isNaN(t)?NaN:.5)}function JBe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function ZBe(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Ix(i,r),a=n(o,a)):(r=Ix(r,i),a=n(a,o)),function(s){return a(r(s))}}function $Be(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]=Ix(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 kg(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function zy(){var e=CI,t=CI,n=fu,r,i,a,o=Eo,s,u,c;function A(){var h=Math.min(e.length,t.length);return o!==Eo&&(o=JBe(e[0],e[h-1])),s=h>2?$Be:ZBe,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),Pa)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,Ox),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=Ay,A()},f.clamp=function(h){return arguments.length?(o=h?!0:Eo,A()):o!==Eo},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 SI(){return zy()(Eo,Eo)}function exe(e,t,n,r){var i=gB(e,t,n),a;switch(r=fg(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=nBe(i,o))&&(r.precision=a),CO(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=rBe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=tBe(i))&&(r.precision=a-(r.type==="%")*2);break}}return pu(r)}function Gh(e){var t=e.domain;return e.ticks=function(n){var r=t();return Xd(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return exe(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=W1(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 Ms(){var e=SI();return e.copy=function(){return kg(e,Ms())},vu.apply(e,arguments),Gh(e)}function kI(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,Ox),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return kI(e).unknown(t)},e=arguments.length?Array.from(e,Ox):[0,1],Gh(n)}function MI(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 EI(e){return Math.log(e)}function LI(e){return Math.exp(e)}function txe(e){return-Math.log(-e)}function nxe(e){return-Math.exp(-e)}function rxe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function ixe(e){return e===10?rxe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function axe(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 TI(e){return(t,n)=>-e(-t,n)}function NI(e){const t=e(EI,LI),n=t.domain;let r=10,i,a;function o(){return i=axe(r),a=ixe(r),n()[0]<0?(i=TI(i),a=TI(a),e(txe,nxe)):e(EI,LI),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),p,m;const g=s==null?10:+s;let y=[];if(!(r%1)&&d-h<g){if(h=Math.floor(h),d=Math.ceil(d),c>0){for(;h<=d;++h)for(p=1;p<r;++p)if(m=h<0?p/a(-h):p*a(h),!(m<c)){if(m>A)break;y.push(m)}}else for(;h<=d;++h)for(p=r-1;p>=1;--p)if(m=h>0?p/a(-h):p*a(h),!(m<c)){if(m>A)break;y.push(m)}y.length*2<g&&(y=Xd(c,A,g))}else y=Xd(h,d,Math.min(d-h,g)).map(a);return f?y.reverse():y},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=fg(u)).precision==null&&(u.trim=!0),u=pu(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(MI(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function FI(){const e=NI(zy()).domain([1,10]);return e.copy=()=>kg(e,FI()).base(e.base()),vu.apply(e,arguments),e}function OI(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function II(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function DI(e){var t=1,n=e(OI(t),II(t));return n.constant=function(r){return arguments.length?e(OI(t=+r),II(t)):t},Gh(n)}function UI(){var e=DI(zy());return e.copy=function(){return kg(e,UI()).constant(e.constant())},vu.apply(e,arguments)}function PI(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function oxe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function sxe(e){return e<0?-e*e:e*e}function HI(e){var t=e(Eo,Eo),n=1;function r(){return n===1?e(Eo,Eo):n===.5?e(oxe,sxe):e(PI(n),PI(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Gh(t)}function YI(){var e=HI(zy());return e.copy=function(){return kg(e,YI()).exponent(e.exponent())},vu.apply(e,arguments),e}function RI(){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]=V_e(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(xA),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 RI().domain(e).range(t).unknown(r)},vu.apply(a,arguments)}function QI(){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 QI().domain(e).range(t).unknown(n)},vu.apply(i,arguments)}const Dx=new Date,Ux=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)=>(Dx.setTime(+a),Ux.setTime(+o),e(Dx),e(Ux),Math.floor(n(Dx,Ux))),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 qy=Gi(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);qy.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):qy),qy.range;const yc=1e3,Es=yc*60,_c=Es*60,bc=_c*24,Px=bc*7,jI=bc*30,Hx=bc*365,pl=Gi(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*yc)},(e,t)=>(t-e)/yc,e=>e.getUTCSeconds());pl.range;const Mg=Gi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*yc)},(e,t)=>{e.setTime(+e+t*Es)},(e,t)=>(t-e)/Es,e=>e.getMinutes());Mg.range;const Eg=Gi(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Es)},(e,t)=>(t-e)/Es,e=>e.getUTCMinutes());Eg.range;const Lg=Gi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*yc-e.getMinutes()*Es)},(e,t)=>{e.setTime(+e+t*_c)},(e,t)=>(t-e)/_c,e=>e.getHours());Lg.range;const Tg=Gi(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*_c)},(e,t)=>(t-e)/_c,e=>e.getUTCHours());Tg.range;const cf=Gi(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Es)/bc,e=>e.getDate()-1);cf.range;const Ky=Gi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/bc,e=>e.getUTCDate()-1);Ky.range;const Gy=Gi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/bc,e=>Math.floor(e/bc));Gy.range;function Af(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())*Es)/Px)}const Wh=Af(0),Ng=Af(1),VI=Af(2),zI=Af(3),df=Af(4),qI=Af(5),KI=Af(6);Wh.range,Ng.range,VI.range,zI.range,df.range,qI.range,KI.range;function ff(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)/Px)}const Xh=ff(0),Fg=ff(1),GI=ff(2),WI=ff(3),hf=ff(4),XI=ff(5),JI=ff(6);Xh.range,Fg.range,GI.range,WI.range,hf.range,XI.range,JI.range;const Og=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());Og.range;const Ig=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());Ig.range;const ml=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());ml.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)}),ml.range;const gl=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());gl.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)}),gl.range;function ZI(e,t,n,r,i,a){const o=[[pl,1,yc],[pl,5,5*yc],[pl,15,15*yc],[pl,30,30*yc],[a,1,Es],[a,5,5*Es],[a,15,15*Es],[a,30,30*Es],[i,1,_c],[i,3,3*_c],[i,6,6*_c],[i,12,12*_c],[r,1,bc],[r,2,2*bc],[n,1,Px],[t,1,jI],[t,3,3*jI],[e,1,Hx]];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),p=d?d.range(c,+A+1):[];return h?p.reverse():p}function u(c,A,f){const h=Math.abs(A-c)/f,d=Q1(([,,g])=>g).right(o,h);if(d===o.length)return e.every(gB(c/Hx,A/Hx,f));if(d===0)return qy.every(Math.max(gB(c,A,f),1));const[p,m]=o[h/o[d-1][2]<o[d][2]/h?d-1:d];return p.every(m)}return[s,u]}const[lxe,$I]=ZI(gl,Ig,Xh,Gy,Tg,Eg),[uxe,cxe]=ZI(ml,Og,Wh,cf,Lg,Mg);function Yx(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 Rx(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 Dg(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Axe(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=Ug(i),A=Pg(i),f=Ug(a),h=Pg(a),d=Ug(o),p=Pg(o),m=Ug(s),g=Pg(s),y=Ug(u),v=Pg(u),_={a:q,A:z,b:J,B:re,c:null,d:aD,e:aD,f:Oxe,g:Vxe,G:qxe,H:Txe,I:Nxe,j:Fxe,L:oD,m:Ixe,M:Dxe,p:X,q:D,Q:dD,s:fD,S:Uxe,u:Pxe,U:Hxe,V:Yxe,w:Rxe,W:Qxe,x:null,X:null,y:jxe,Y:zxe,Z:Kxe,"%":AD},b={a:W,A:ee,b:te,B:pe,c:null,d:lD,e:lD,f:Jxe,g:sCe,G:uCe,H:Gxe,I:Wxe,j:Xxe,L:uD,m:Zxe,M:$xe,p:me,q:ve,Q:dD,s:fD,S:eCe,u:tCe,U:nCe,V:rCe,w:iCe,W:aCe,x:null,X:null,y:oCe,Y:lCe,Z:cCe,"%":AD},w={a:H,A:S,b:F,B:I,c:E,d:rD,e:rD,f:kxe,g:nD,G:tD,H:iD,I:iD,j:Bxe,L:Sxe,m:wxe,M:xxe,p:N,q:bxe,Q:Exe,s:Lxe,S:Cxe,u:mxe,U:gxe,V:vxe,w:pxe,W:yxe,x:P,X:K,y:nD,Y:tD,Z:_xe,"%":Mxe};_.x=M(n,_),_.X=M(r,_),_.c=M(t,_),b.x=M(n,b),b.X=M(r,b),b.c=M(t,b);function M(le,_e){return function(Le){var ke=[],Pe=-1,Y=0,ie=le.length,de,Z,$;for(Le instanceof Date||(Le=new Date(+Le));++Pe<ie;)le.charCodeAt(Pe)===37&&(ke.push(le.slice(Y,Pe)),(Z=eD[de=le.charAt(++Pe)])!=null?de=le.charAt(++Pe):Z=de==="e"?" ":"0",($=_e[de])&&(de=$(Le,Z)),ke.push(de),Y=Pe+1);return ke.push(le.slice(Y,Pe)),ke.join("")}}function x(le,_e){return function(Le){var ke=Dg(1900,void 0,1),Pe=L(ke,le,Le+="",0),Y,ie;if(Pe!=Le.length)return null;if("Q"in ke)return new Date(ke.Q);if("s"in ke)return new Date(ke.s*1e3+("L"in ke?ke.L:0));if(_e&&!("Z"in ke)&&(ke.Z=0),"p"in ke&&(ke.H=ke.H%12+ke.p*12),ke.m===void 0&&(ke.m="q"in ke?ke.q:0),"V"in ke){if(ke.V<1||ke.V>53)return null;"w"in ke||(ke.w=1),"Z"in ke?(Y=Rx(Dg(ke.y,0,1)),ie=Y.getUTCDay(),Y=ie>4||ie===0?Fg.ceil(Y):Fg(Y),Y=Ky.offset(Y,(ke.V-1)*7),ke.y=Y.getUTCFullYear(),ke.m=Y.getUTCMonth(),ke.d=Y.getUTCDate()+(ke.w+6)%7):(Y=Yx(Dg(ke.y,0,1)),ie=Y.getDay(),Y=ie>4||ie===0?Ng.ceil(Y):Ng(Y),Y=cf.offset(Y,(ke.V-1)*7),ke.y=Y.getFullYear(),ke.m=Y.getMonth(),ke.d=Y.getDate()+(ke.w+6)%7)}else("W"in ke||"U"in ke)&&("w"in ke||(ke.w="u"in ke?ke.u%7:"W"in ke?1:0),ie="Z"in ke?Rx(Dg(ke.y,0,1)).getUTCDay():Yx(Dg(ke.y,0,1)).getDay(),ke.m=0,ke.d="W"in ke?(ke.w+6)%7+ke.W*7-(ie+5)%7:ke.w+ke.U*7-(ie+6)%7);return"Z"in ke?(ke.H+=ke.Z/100|0,ke.M+=ke.Z%100,Rx(ke)):Yx(ke)}}function L(le,_e,Le,ke){for(var Pe=0,Y=_e.length,ie=Le.length,de,Z;Pe<Y;){if(ke>=ie)return-1;if(de=_e.charCodeAt(Pe++),de===37){if(de=_e.charAt(Pe++),Z=w[de in eD?_e.charAt(Pe++):de],!Z||(ke=Z(le,Le,ke))<0)return-1}else if(de!=Le.charCodeAt(ke++))return-1}return ke}function N(le,_e,Le){var ke=c.exec(_e.slice(Le));return ke?(le.p=A.get(ke[0].toLowerCase()),Le+ke[0].length):-1}function H(le,_e,Le){var ke=d.exec(_e.slice(Le));return ke?(le.w=p.get(ke[0].toLowerCase()),Le+ke[0].length):-1}function S(le,_e,Le){var ke=f.exec(_e.slice(Le));return ke?(le.w=h.get(ke[0].toLowerCase()),Le+ke[0].length):-1}function F(le,_e,Le){var ke=y.exec(_e.slice(Le));return ke?(le.m=v.get(ke[0].toLowerCase()),Le+ke[0].length):-1}function I(le,_e,Le){var ke=m.exec(_e.slice(Le));return ke?(le.m=g.get(ke[0].toLowerCase()),Le+ke[0].length):-1}function E(le,_e,Le){return L(le,t,_e,Le)}function P(le,_e,Le){return L(le,n,_e,Le)}function K(le,_e,Le){return L(le,r,_e,Le)}function q(le){return o[le.getDay()]}function z(le){return a[le.getDay()]}function J(le){return u[le.getMonth()]}function re(le){return s[le.getMonth()]}function X(le){return i[+(le.getHours()>=12)]}function D(le){return 1+~~(le.getMonth()/3)}function W(le){return o[le.getUTCDay()]}function ee(le){return a[le.getUTCDay()]}function te(le){return u[le.getUTCMonth()]}function pe(le){return s[le.getUTCMonth()]}function me(le){return i[+(le.getUTCHours()>=12)]}function ve(le){return 1+~~(le.getUTCMonth()/3)}return{format:function(le){var _e=M(le+="",_);return _e.toString=function(){return le},_e},parse:function(le){var _e=x(le+="",!1);return _e.toString=function(){return le},_e},utcFormat:function(le){var _e=M(le+="",b);return _e.toString=function(){return le},_e},utcParse:function(le){var _e=x(le+="",!0);return _e.toString=function(){return le},_e}}}var eD={"-":"",_:" ",0:"0"},sa=/^\s*\d+/,dxe=/^%/,fxe=/[\\^$*+?|[\]().{}]/g;function ar(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 hxe(e){return e.replace(fxe,"\\$&")}function Ug(e){return new RegExp("^(?:"+e.map(hxe).join("|")+")","i")}function Pg(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function pxe(e,t,n){var r=sa.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function mxe(e,t,n){var r=sa.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function gxe(e,t,n){var r=sa.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function vxe(e,t,n){var r=sa.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function yxe(e,t,n){var r=sa.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function tD(e,t,n){var r=sa.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function nD(e,t,n){var r=sa.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _xe(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 bxe(e,t,n){var r=sa.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function wxe(e,t,n){var r=sa.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function rD(e,t,n){var r=sa.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Bxe(e,t,n){var r=sa.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function iD(e,t,n){var r=sa.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function xxe(e,t,n){var r=sa.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Cxe(e,t,n){var r=sa.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Sxe(e,t,n){var r=sa.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function kxe(e,t,n){var r=sa.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Mxe(e,t,n){var r=dxe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Exe(e,t,n){var r=sa.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Lxe(e,t,n){var r=sa.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function aD(e,t){return ar(e.getDate(),t,2)}function Txe(e,t){return ar(e.getHours(),t,2)}function Nxe(e,t){return ar(e.getHours()%12||12,t,2)}function Fxe(e,t){return ar(1+cf.count(ml(e),e),t,3)}function oD(e,t){return ar(e.getMilliseconds(),t,3)}function Oxe(e,t){return oD(e,t)+"000"}function Ixe(e,t){return ar(e.getMonth()+1,t,2)}function Dxe(e,t){return ar(e.getMinutes(),t,2)}function Uxe(e,t){return ar(e.getSeconds(),t,2)}function Pxe(e){var t=e.getDay();return t===0?7:t}function Hxe(e,t){return ar(Wh.count(ml(e)-1,e),t,2)}function sD(e){var t=e.getDay();return t>=4||t===0?df(e):df.ceil(e)}function Yxe(e,t){return e=sD(e),ar(df.count(ml(e),e)+(ml(e).getDay()===4),t,2)}function Rxe(e){return e.getDay()}function Qxe(e,t){return ar(Ng.count(ml(e)-1,e),t,2)}function jxe(e,t){return ar(e.getFullYear()%100,t,2)}function Vxe(e,t){return e=sD(e),ar(e.getFullYear()%100,t,2)}function zxe(e,t){return ar(e.getFullYear()%1e4,t,4)}function qxe(e,t){var n=e.getDay();return e=n>=4||n===0?df(e):df.ceil(e),ar(e.getFullYear()%1e4,t,4)}function Kxe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ar(t/60|0,"0",2)+ar(t%60,"0",2)}function lD(e,t){return ar(e.getUTCDate(),t,2)}function Gxe(e,t){return ar(e.getUTCHours(),t,2)}function Wxe(e,t){return ar(e.getUTCHours()%12||12,t,2)}function Xxe(e,t){return ar(1+Ky.count(gl(e),e),t,3)}function uD(e,t){return ar(e.getUTCMilliseconds(),t,3)}function Jxe(e,t){return uD(e,t)+"000"}function Zxe(e,t){return ar(e.getUTCMonth()+1,t,2)}function $xe(e,t){return ar(e.getUTCMinutes(),t,2)}function eCe(e,t){return ar(e.getUTCSeconds(),t,2)}function tCe(e){var t=e.getUTCDay();return t===0?7:t}function nCe(e,t){return ar(Xh.count(gl(e)-1,e),t,2)}function cD(e){var t=e.getUTCDay();return t>=4||t===0?hf(e):hf.ceil(e)}function rCe(e,t){return e=cD(e),ar(hf.count(gl(e),e)+(gl(e).getUTCDay()===4),t,2)}function iCe(e){return e.getUTCDay()}function aCe(e,t){return ar(Fg.count(gl(e)-1,e),t,2)}function oCe(e,t){return ar(e.getUTCFullYear()%100,t,2)}function sCe(e,t){return e=cD(e),ar(e.getUTCFullYear()%100,t,2)}function lCe(e,t){return ar(e.getUTCFullYear()%1e4,t,4)}function uCe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?hf(e):hf.ceil(e),ar(e.getUTCFullYear()%1e4,t,4)}function cCe(){return"+0000"}function AD(){return"%"}function dD(e){return+e}function fD(e){return Math.floor(+e/1e3)}var Jh,Qx,Hg;ACe({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 ACe(e){return Jh=Axe(e),Qx=Jh.format,Jh.parse,Hg=Jh.utcFormat,Jh.utcParse,Jh}function dCe(e){return new Date(e)}function fCe(e){return e instanceof Date?+e:+new Date(+e)}function jx(e,t,n,r,i,a,o,s,u,c){var A=SI(),f=A.invert,h=A.domain,d=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),y=c("%a %d"),v=c("%b %d"),_=c("%B"),b=c("%Y");function w(M){return(u(M)<M?d:s(M)<M?p:o(M)<M?m:a(M)<M?g:r(M)<M?i(M)<M?y:v:n(M)<M?_:b)(M)}return A.invert=function(M){return new Date(f(M))},A.domain=function(M){return arguments.length?h(Array.from(M,fCe)):h().map(dCe)},A.ticks=function(M){var x=h();return e(x[0],x[x.length-1],M??10)},A.tickFormat=function(M,x){return x==null?w:c(x)},A.nice=function(M){var x=h();return(!M||typeof M.range!="function")&&(M=t(x[0],x[x.length-1],M??10)),M?h(MI(x,M)):A},A.copy=function(){return kg(A,jx(e,t,n,r,i,a,o,s,u,c))},A}function hD(){return vu.apply(jx(uxe,cxe,ml,Og,Wh,cf,Lg,Mg,pl,Qx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function EA(){return vu.apply(jx(lxe,$I,gl,Ig,Xh,Ky,Tg,Eg,pl,Hg).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function hCe(){var e=0,t=1,n,r,i,a,o=Eo,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,p;return arguments.length?([d,p]=h,o=f(d,p),c):[o(0),o(1)]}}return c.range=A(fu),c.rangeRound=A(Ay),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 Yg(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function yu(){var e=Gh(hCe()(Eo));return e.copy=function(){return Yg(e,yu())},Sg.apply(e,arguments)}function Wy(){var e=0,t=.5,n=1,r=1,i,a,o,s,u,c=Eo,A,f=!1,h;function d(m){return isNaN(m=+m)?h:(m=.5+((m=+A(m))-a)*(r*m<r*a?s:u),c(f?Math.max(0,Math.min(1,m)):m))}d.domain=function(m){return arguments.length?([e,t,n]=m,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(m){return arguments.length?(f=!!m,d):f},d.interpolator=function(m){return arguments.length?(c=m,d):c};function p(m){return function(g){var y,v,_;return arguments.length?([y,v,_]=g,c=fy(m,[y,v,_]),d):[c(0),c(.5),c(1)]}}return d.range=p(fu),d.rangeRound=p(Ay),d.unknown=function(m){return arguments.length?(h=m,d):h},function(m){return A=m,i=m(e),a=m(t),o=m(n),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),r=a<i?-1:1,d}}function pD(){var e=Gh(Wy()(Eo));return e.copy=function(){return Yg(e,pD())},Sg.apply(e,arguments)}function mD(){var e=NI(Wy()).domain([.1,1,10]);return e.copy=function(){return Yg(e,mD()).base(e.base())},Sg.apply(e,arguments)}function gD(){var e=DI(Wy());return e.copy=function(){return Yg(e,gD()).constant(e.constant())},Sg.apply(e,arguments)}function vD(){var e=HI(Wy());return e.copy=function(){return Yg(e,vD()).exponent(e.exponent())},Sg.apply(e,arguments)}function kn(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 pCe=kn("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),mCe=kn("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),gCe=kn("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),vCe=kn("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),yCe=kn("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),_Ce=kn("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),bCe=kn("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),wCe=kn("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),BCe=kn("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),xCe=kn("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),CCe=kn("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Tr=e=>owe(e[e.length-1]);var yD=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(kn);const _D=Tr(yD);var bD=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(kn);const wD=Tr(bD);var BD=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(kn);const xD=Tr(BD);var CD=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(kn);const SD=Tr(CD);var Vx=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(kn);const Xy=Tr(Vx);var kD=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(kn);const MD=Tr(kD);var zx=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(kn);const Jy=Tr(zx);var ED=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(kn);const LD=Tr(ED);var TD=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(kn);const ND=Tr(TD);var FD=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(kn);const OD=Tr(FD);var ID=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(kn);const DD=Tr(ID);var UD=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(kn);const PD=Tr(UD);var HD=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(kn);const YD=Tr(HD);var RD=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(kn);const QD=Tr(RD);var jD=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(kn);const VD=Tr(jD);var zD=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(kn);const qD=Tr(zD);var KD=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(kn);const GD=Tr(KD);var WD=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(kn);const XD=Tr(WD);var JD=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(kn);const ZD=Tr(JD);var $D=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(kn);const eU=Tr($D);var tU=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(kn);const nU=Tr(tU);var rU=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(kn);const Zy=Tr(rU);var iU=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(kn);const $y=Tr(iU);var aU=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(kn);const Rg=Tr(aU);var oU=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(kn);const sU=Tr(oU);var lU=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(kn);const qx=Tr(lU);var uU=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(kn);const Kx=Tr(uU);function cU(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 AU=VB(du(300,.5,0),du(-240,.5,1));var dU=VB(du(-100,.75,.35),du(80,1.5,.8)),fU=VB(du(260,.75,.35),du(80,1.5,.8)),e_=du();function hU(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return e_.h=360*e-100,e_.s=1.5-1.5*t,e_.l=.8-.9*t,e_+""}var t_=SA(),SCe=Math.PI/3,kCe=Math.PI*2/3;function pU(e){var t;return e=(.5-e)*Math.PI,t_.r=255*(t=Math.sin(e))*t,t_.g=255*(t=Math.sin(e+SCe))*t,t_.b=255*(t=Math.sin(e+kCe))*t,t_+""}function mU(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 n_(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const gU=n_(kn("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var vU=n_(kn("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),yU=n_(kn("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),_U=n_(kn("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Pn(e){return function(){return e}}const bU=Math.abs,Ra=Math.atan2,wc=Math.cos,MCe=Math.max,Zh=Math.min,Lo=Math.sin,Kr=Math.sqrt,Qa=1e-12,LA=Math.PI,r_=LA/2,TA=2*LA;function ECe(e){return e>1?0:e<-1?LA:Math.acos(e)}function wU(e){return e>=1?r_:e<=-1?-r_:Math.asin(e)}function i_(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 vO(t)}function LCe(e){return e.innerRadius}function TCe(e){return e.outerRadius}function NCe(e){return e.startAngle}function FCe(e){return e.endAngle}function OCe(e){return e&&e.padAngle}function ICe(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<Qa))return h=(A*(t-a)-f*(e-i))/h,[e+h*u,t+h*c]}function a_(e,t,n,r,i,a,o){var s=e-n,u=t-r,c=(o?a:-a)/Kr(s*s+u*u),A=c*u,f=-c*s,h=e+A,d=t+f,p=n+A,m=r+f,g=(h+p)/2,y=(d+m)/2,v=p-h,_=m-d,b=v*v+_*_,w=i-a,M=h*m-p*d,x=(_<0?-1:1)*Kr(MCe(0,w*w*b-M*M)),L=(M*_-v*x)/b,N=(-M*v-_*x)/b,H=(M*_+v*x)/b,S=(-M*v+_*x)/b,F=L-g,I=N-y,E=H-g,P=S-y;return F*F+I*I>E*E+P*P&&(L=H,N=S),{cx:L,cy:N,x01:-A,y01:-f,x11:L*(i/w-1),y11:N*(i/w-1)}}function Gx(){var e=LCe,t=TCe,n=Pn(0),r=null,i=NCe,a=FCe,o=OCe,s=null,u=i_(c);function c(){var A,f,h=+e.apply(this,arguments),d=+t.apply(this,arguments),p=i.apply(this,arguments)-r_,m=a.apply(this,arguments)-r_,g=bU(m-p),y=m>p;if(s||(s=A=u()),d<h&&(f=d,d=h,h=f),!(d>Qa))s.moveTo(0,0);else if(g>TA-Qa)s.moveTo(d*wc(p),d*Lo(p)),s.arc(0,0,d,p,m,!y),h>Qa&&(s.moveTo(h*wc(m),h*Lo(m)),s.arc(0,0,h,m,p,y));else{var v=p,_=m,b=p,w=m,M=g,x=g,L=o.apply(this,arguments)/2,N=L>Qa&&(r?+r.apply(this,arguments):Kr(h*h+d*d)),H=Zh(bU(d-h)/2,+n.apply(this,arguments)),S=H,F=H,I,E;if(N>Qa){var P=wU(N/h*Lo(L)),K=wU(N/d*Lo(L));(M-=P*2)>Qa?(P*=y?1:-1,b+=P,w-=P):(M=0,b=w=(p+m)/2),(x-=K*2)>Qa?(K*=y?1:-1,v+=K,_-=K):(x=0,v=_=(p+m)/2)}var q=d*wc(v),z=d*Lo(v),J=h*wc(w),re=h*Lo(w);if(H>Qa){var X=d*wc(_),D=d*Lo(_),W=h*wc(b),ee=h*Lo(b),te;if(g<LA)if(te=ICe(q,z,W,ee,X,D,J,re)){var pe=q-te[0],me=z-te[1],ve=X-te[0],le=D-te[1],_e=1/Lo(ECe((pe*ve+me*le)/(Kr(pe*pe+me*me)*Kr(ve*ve+le*le)))/2),Le=Kr(te[0]*te[0]+te[1]*te[1]);S=Zh(H,(h-Le)/(_e-1)),F=Zh(H,(d-Le)/(_e+1))}else S=F=0}x>Qa?F>Qa?(I=a_(W,ee,q,z,d,F,y),E=a_(X,D,J,re,d,F,y),s.moveTo(I.cx+I.x01,I.cy+I.y01),F<H?s.arc(I.cx,I.cy,F,Ra(I.y01,I.x01),Ra(E.y01,E.x01),!y):(s.arc(I.cx,I.cy,F,Ra(I.y01,I.x01),Ra(I.y11,I.x11),!y),s.arc(0,0,d,Ra(I.cy+I.y11,I.cx+I.x11),Ra(E.cy+E.y11,E.cx+E.x11),!y),s.arc(E.cx,E.cy,F,Ra(E.y11,E.x11),Ra(E.y01,E.x01),!y))):(s.moveTo(q,z),s.arc(0,0,d,v,_,!y)):s.moveTo(q,z),!(h>Qa)||!(M>Qa)?s.lineTo(J,re):S>Qa?(I=a_(J,re,X,D,h,-S,y),E=a_(q,z,W,ee,h,-S,y),s.lineTo(I.cx+I.x01,I.cy+I.y01),S<H?s.arc(I.cx,I.cy,S,Ra(I.y01,I.x01),Ra(E.y01,E.x01),!y):(s.arc(I.cx,I.cy,S,Ra(I.y01,I.x01),Ra(I.y11,I.x11),!y),s.arc(0,0,h,Ra(I.cy+I.y11,I.cx+I.x11),Ra(E.cy+E.y11,E.cx+E.x11),y),s.arc(E.cx,E.cy,S,Ra(E.y11,E.x11),Ra(E.y01,E.x01),!y))):s.arc(0,0,h,w,b,y)}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-LA/2;return[wc(f)*A,Lo(f)*A]},c.innerRadius=function(A){return arguments.length?(e=typeof A=="function"?A:Pn(+A),c):e},c.outerRadius=function(A){return arguments.length?(t=typeof A=="function"?A:Pn(+A),c):t},c.cornerRadius=function(A){return arguments.length?(n=typeof A=="function"?A:Pn(+A),c):n},c.padRadius=function(A){return arguments.length?(r=A==null?null:typeof A=="function"?A:Pn(+A),c):r},c.startAngle=function(A){return arguments.length?(i=typeof A=="function"?A:Pn(+A),c):i},c.endAngle=function(A){return arguments.length?(a=typeof A=="function"?A:Pn(+A),c):a},c.padAngle=function(A){return arguments.length?(o=typeof A=="function"?A:Pn(+A),c):o},c.context=function(A){return arguments.length?(s=A??null,c):s},c}var DCe=Array.prototype.slice;function o_(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function BU(e){this._context=e}BU.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 BU(e)}function Wx(e){return e[0]}function Xx(e){return e[1]}function jg(e,t){var n=Pn(!0),r=null,i=Qg,a=null,o=i_(s);e=typeof e=="function"?e:e===void 0?Wx:Pn(e),t=typeof t=="function"?t:t===void 0?Xx:Pn(t);function s(u){var c,A=(u=o_(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:Pn(+u),s):e},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:Pn(+u),s):t},s.defined=function(u){return arguments.length?(n=typeof u=="function"?u:Pn(!!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 UCe(e,t,n){var r=null,i=Pn(!0),a=null,o=Qg,s=null,u=i_(c);e=typeof e=="function"?e:e===void 0?Wx:Pn(+e),t=typeof t=="function"?t:Pn(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Xx:Pn(+n);function c(f){var h,d,p,m=(f=o_(f)).length,g,y=!1,v,_=new Array(m),b=new Array(m);for(a==null&&(s=o(v=u())),h=0;h<=m;++h){if(!(h<m&&i(g=f[h],h,f))===y)if(y=!y)d=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),p=h-1;p>=d;--p)s.point(_[p],b[p]);s.lineEnd(),s.areaEnd()}y&&(_[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(v)return s=null,v+""||null}function A(){return jg().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:Pn(+f),r=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Pn(+f),c):e},c.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Pn(+f),c):r},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Pn(+f),n=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Pn(+f),c):t},c.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Pn(+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:Pn(!!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 PCe(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function HCe(e){return e}function YCe(){var e=HCe,t=PCe,n=null,r=Pn(0),i=Pn(TA),a=Pn(0);function o(s){var u,c=(s=o_(s)).length,A,f,h=0,d=new Array(c),p=new Array(c),m=+r.apply(this,arguments),g=Math.min(TA,Math.max(-TA,i.apply(this,arguments)-m)),y,v=Math.min(Math.abs(g)/c,a.apply(this,arguments)),_=v*(g<0?-1:1),b;for(u=0;u<c;++u)(b=p[d[u]=u]=+e(s[u],u,s))>0&&(h+=b);for(t!=null?d.sort(function(w,M){return t(p[w],p[M])}):n!=null&&d.sort(function(w,M){return n(s[w],s[M])}),u=0,f=h?(g-c*_)/h:0;u<c;++u,m=y)A=d[u],b=p[A],y=m+(b>0?b*f:0)+_,p[A]={data:s[A],index:u,value:b,startAngle:m,endAngle:y,padAngle:v};return p}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:Pn(+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:Pn(+s),o):r},o.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:Pn(+s),o):i},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:Pn(+s),o):a},o}class xU{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 CU(e){return new xU(e,!0)}function RCe(e){return new xU(e,!1)}function QCe(e){return e.source}function jCe(e){return e.target}function VCe(e){let t=QCe,n=jCe,r=Wx,i=Xx,a=null,o=null,s=i_(u);function u(){let c;const A=DCe.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:Pn(+c),u):r},u.y=function(c){return arguments.length?(i=typeof c=="function"?c:Pn(+c),u):i},u.context=function(c){return arguments.length?(c==null?a=o=null:o=e(a=c),u):a},u}function zCe(){return VCe(CU)}const qCe=Kr(3),SU={draw(e,t){const n=Kr(t+Zh(t/28,.75))*.59436,r=n/2,i=r*qCe;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-i,-r),e.lineTo(i,r),e.moveTo(-i,r),e.lineTo(i,-r)}},Vg={draw(e,t){const n=Kr(t/LA);e.moveTo(n,0),e.arc(0,0,n,0,TA)}},kU={draw(e,t){const n=Kr(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()}},MU=Kr(1/3),KCe=MU*2,EU={draw(e,t){const n=Kr(t/KCe),r=n*MU;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},LU={draw(e,t){const n=Kr(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},TU={draw(e,t){const n=Kr(t-Zh(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},NU={draw(e,t){const n=Kr(t),r=-n/2;e.rect(r,r,n,n)}},FU={draw(e,t){const n=Kr(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},GCe=.8908130915292852,OU=Lo(LA/10)/Lo(7*LA/10),WCe=Lo(TA/10)*OU,XCe=-wc(TA/10)*OU,IU={draw(e,t){const n=Kr(t*GCe),r=WCe*n,i=XCe*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=TA*a/5,s=wc(o),u=Lo(o);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},Jx=Kr(3),DU={draw(e,t){const n=-Kr(t/(Jx*3));e.moveTo(0,n*2),e.lineTo(-Jx*n,-n),e.lineTo(Jx*n,-n),e.closePath()}},JCe=Kr(3),UU={draw(e,t){const n=Kr(t)*.6824,r=n/2,i=n*JCe/2;e.moveTo(0,-n),e.lineTo(i,r),e.lineTo(-i,r),e.closePath()}},Ls=-.5,Ts=Kr(3)/2,Zx=1/Kr(12),ZCe=(Zx/2+1)*3,PU={draw(e,t){const n=Kr(t/ZCe),r=n/2,i=n*Zx,a=r,o=n*Zx+n,s=-a,u=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,u),e.lineTo(Ls*r-Ts*i,Ts*r+Ls*i),e.lineTo(Ls*a-Ts*o,Ts*a+Ls*o),e.lineTo(Ls*s-Ts*u,Ts*s+Ls*u),e.lineTo(Ls*r+Ts*i,Ls*i-Ts*r),e.lineTo(Ls*a+Ts*o,Ls*o-Ts*a),e.lineTo(Ls*s+Ts*u,Ls*u-Ts*s),e.closePath()}},HU={draw(e,t){const n=Kr(t-Zh(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},$Ce=[Vg,kU,EU,NU,IU,DU,PU],e4e=[Vg,TU,HU,UU,SU,FU,LU];function NA(){}function s_(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 l_(e){this._context=e}l_.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:s_(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:s_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function t4e(e){return new l_(e)}function YU(e){this._context=e}YU.prototype={areaStart:NA,areaEnd:NA,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:s_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function n4e(e){return new YU(e)}function RU(e){this._context=e}RU.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:s_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function r4e(e){return new RU(e)}function QU(e,t){this._basis=new l_(e),this._beta=t}QU.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 i4e=function e(t){function n(r){return t===1?new l_(r):new QU(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function u_(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 $x(e,t){this._context=e,this._k=(1-t)/6}$x.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:u_(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:u_(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 a4e=function e(t){function n(r){return new $x(r,t)}return n.tension=function(r){return e(+r)},n}(0);function eC(e,t){this._context=e,this._k=(1-t)/6}eC.prototype={areaStart:NA,areaEnd:NA,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:u_(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 o4e=function e(t){function n(r){return new eC(r,t)}return n.tension=function(r){return e(+r)},n}(0);function tC(e,t){this._context=e,this._k=(1-t)/6}tC.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:u_(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 s4e=function e(t){function n(r){return new tC(r,t)}return n.tension=function(r){return e(+r)},n}(0);function nC(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Qa){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>Qa){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 jU(e,t){this._context=e,this._alpha=t}jU.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:nC(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 l4e=function e(t){function n(r){return t?new jU(r,t):new $x(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function VU(e,t){this._context=e,this._alpha=t}VU.prototype={areaStart:NA,areaEnd:NA,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:nC(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 u4e=function e(t){function n(r){return t?new VU(r,t):new eC(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function zU(e,t){this._context=e,this._alpha=t}zU.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:nC(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 c4e=function e(t){function n(r){return t?new zU(r,t):new tC(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function qU(e){this._context=e}qU.prototype={areaStart:NA,areaEnd:NA,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 A4e(e){return new qU(e)}function KU(e){return e<0?-1:1}function GU(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(KU(a)+KU(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function WU(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function rC(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 c_(e){this._context=e}c_.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:rC(this,this._t0,WU(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,rC(this,WU(this,n=GU(this,e,t)),n);break;default:rC(this,this._t0,n=GU(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function XU(e){this._context=new JU(e)}(XU.prototype=Object.create(c_.prototype)).point=function(e,t){c_.prototype.point.call(this,t,e)};function JU(e){this._context=e}JU.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 d4e(e){return new c_(e)}function f4e(e){return new XU(e)}function ZU(e){this._context=e}ZU.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=$U(e),i=$U(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 $U(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 h4e(e){return new ZU(e)}function A_(e,t){this._context=e,this._t=t}A_.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 p4e(e){return new A_(e,.5)}function m4e(e){return new A_(e,0)}function g4e(e){return new A_(e,1)}function eP(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 tP(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function v4e(e,t){return e[t]}function y4e(e){const t=[];return t.key=e,t}function nP(){var e=Pn([]),t=tP,n=eP,r=v4e;function i(a){var o=Array.from(e.apply(this,arguments),y4e),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=o_(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:Pn(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:Pn(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?tP:typeof a=="function"?a:Pn(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??eP,i):n},i}function zg(e,t,n){this.k=e,this.x=t,this.y=n}zg.prototype={constructor:zg,scale:function(e){return e===1?this:new zg(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new zg(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+")"}},zg.prototype;const Pi={light:{canvas:"#f3f4f6",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"}},FA={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:yu(Zy),input:yu($y),output:yu($y),drop:yu(Kx),abort:yu(Rg),compressed:yu(Rg),error:yu(qx),ignored:yu(Rg),buffer:yu(Zy)}},iC={light:{ingressdata:"#007D11",egresstootherregion:"#ef9b20",egresstointernet:"#27aeef"},dark:{ingressdata:"#03FC1C",egresstootherregion:"#ef9b20",egresstointernet:"#27aeef"}},Kn=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf","#1c9099","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],d_={light:{Average:"#ff7f0e",Upper_Bound:"#2ca02c",Lower_Bound:"#e377c2",Alert:"#27aeef"},dark:{Average:"#ff7f0e",Upper_Bound:"#2ca02c",Lower_Bound:"#e377c2",Alert:"#27aeef"}},_4e={green:["#3FA83F","#93CE07","#43B446","#73B142","#259940","#00695C","#3ec995"],compute15:b4e("#b50101","#7f7f7f",15)};function rP(e){return e<0?"00":e<16?"0"+e.toString(16):e.toString(16)}function aC(e,t,n,r){return e>t?rP(Math.floor((t-e)*(n/r))+e):rP(Math.floor((e-t)*(1-n/r))+t)}function b4e(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=aC(r,o,A,n),d=aC(i,s,A,n),p=aC(a,u,A,n);f=f+h+d+p,c.push(f)}return c}function w4e(e,t){const n=_4e[e];return n[t%n.length]}function B4e(e,t){let n=0;for(let r=0;r<t.length;r++)n+=t.charCodeAt(r);return w4e(e,n)}const pf=e=>`$${e.toFixed(2)}`,$r=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]}`},ei=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]}`},iP=e=>e>6e4?e>36e5?e>864e5?Math.floor(e/864e5)+" days":Math.floor(e/36e5)+" hrs":Math.floor(e/6e4)+" mins":e+" ms",aP=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]}`},x4e={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=zt("#"+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 p=new Date(d.slots).toUTCString(),m=this.unit==="Bytes (B)"?ei(d.values)+"B":this.unit==="Percent (%)"?d.values.toFixed(2)+"%":$r(d.values),g=d.action?`${d.action}<br>Time: ${p}<br>Value: ${m}`:`Alert<br>Time: ${p}<br>Value: ${m}`;h.target.r.baseVal.value=5,zt("#"+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,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};(()=>{const h=t.filter(_=>!u.includes(_.index)),d=this.getAxisLargest(h),p=EA(Ci(d[0]),[s,n-a]),m=Ms([0,d[1]],[r-o,i]),g=this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${r-o})`).call(ko(p).ticks(n/80).tickSizeOuter(0));if(this.svg.append("g").attr("class",this.id+"yaxis").attr("transform",`translate(${s},0)`).call(Jd(m).ticks(r/40).tickFormat(_=>this.unit==="Bytes (B)"?ei(_):$r(_))).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=(x,L)=>{const N=x.selection;if(N)p.domain([p.invert(N[0]),p.invert(N[1])]),this.svg.select("."+this.id+"brush").call(M.move,null);else{if(!_)return _=setTimeout(b,500);p.domain(Ci(e.slots))}g.transition().duration(1e3).call(ko(p)),this.svg.selectAll("."+this.id+"line").attr("d",function(H){return y(H.values.map((S,F)=>({slots:e.slots[F],values:S})))}),this.svg.selectAll("."+this.id+"points").attr("cx",H=>p(H.slots))},M=j5e().extent([[0,0],[n,r]]).on("end",w);this.svg.append("g").attr("class",x=>this.id+"brush").call(M),this.svg.on("dblclick",function(){p.domain(Ci(d[0],function(x){return x})),g.transition().call(ko(p)),this.svg.selectAll("."+this.id+"line").attr("d",function(x){return y(x.values.map((L,N)=>({slots:e.slots[N],values:L})))}),this.svg.selectAll("."+this.id+"points").attr("cx",x=>p(x.slots))})}const y=jg().x((_,b)=>p(_.slots)).y((_,b)=>m(_.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",_=>d_[this.theme][_.action]||Kn[_.index%Kn.length]).style("stroke-dasharray","3, 3").attr("stroke-width",1).attr("d",function(_){return y(_.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",d_[this.theme].Alert).attr("stroke-width",1.5).attr("d",function(_){return y(_.slots.map((b,w)=>({slots:b,values:_.values[w]})))});const v=e.slots.map((_,b)=>({slots:_,values:e.values[b],isAlert:e.metric.bools[b]}));this.svg.selectAll(".point").data(v).enter().append("circle").attr("class",(_,b)=>this.id+b+"points "+this.id+"points").attr("fill",Kn[3]).attr("display",_=>_.isAlert?"":"none").attr("r",3).attr("cx",_=>p(_.slots)).attr("cy",_=>m(_.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=zt("#"+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=>d_[this.theme][h.action]||Kn[h.index%Kn.length]),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=>d_[this.theme][h.action]||Kn[h.index%Kn.length]).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]}}},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,class:"float-left"},[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(`height: ${n.height}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,k4e)],4)],64)}const oC=pr(x4e,[["render",M4e]]),E4e={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=zt("#"+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)=>{Dn("."+this.id+"run").attr("opacity","0.5"),zt("."+this.id+f.taskID).attr("opacity","1");const h=mt(f.launchTime).format("YYYY-MM-DD HH:mm:ss"),d=mt(f.completeTime).format("YYYY-MM-DD HH:mm:ss"),p=mt(f.completeTime).diff(mt(f.launchTime)),m=`Task: ${f.taskID}<br>Status: ${f.status}<br>Launch Time: ${h}<br>Complete Time: ${d}<br>Duration: ${iP(p)}`;zt("#"+this.id+"tooltip").html(m).style("opacity",1).style("left",A[this.tooltipOffset+"X"]+10+"px").style("top",A[this.tooltipOffset+"Y"]+"px")},s=(A,f)=>{Dn("."+this.id+"run").attr("opacity","1"),zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},u=this.runs.map(A=>mt(A.launchTime).valueOf());u.length===1&&(u.push(mt(u[0]).add(2,"minute").valueOf()),u.push(mt(u[0]).subtract(2,"minute").valueOf()));const c=hD(Ci(u),[a,e-r]);this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${t-i})`).call(ko(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(mt(A.launchTime).valueOf())).attr("y",n).attr("width",A=>{const f=c(mt(A.completeTime).valueOf())-c(mt(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 FA[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)}}},L4e=["id"],T4e=["id"];function N4e(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,T4e)],8,L4e)}const F4e=pr(E4e,[["render",N4e]]),O4e={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=zt("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(e){let t=[];e.forEach((g,y)=>{g.index=y,g.values=g.values.map(_=>isNaN(_)?0:_);const v=g.values.reduce((_,b)=>_+b,0);g.total=isNaN(v)?0:v,this.hideZeros?v>0&&t.push(g):t.push(g)}),t=t.sort((g,y)=>y.total-g.total),e=e.sort((g,y)=>y.total-g.total);const n=this.width,r=this.height,i=20,a=15,o=30,s=50,u=[],c=(g,y)=>{const v=this.isTime?new Date(y.slots).toUTCString():y.slots,_=this.unit==="Bytes (B)"||this.unit==="B"?ei(y.values)+"B":this.unit==="Percent (%)"?y.values.toFixed(2)+"%":this.unit==="$"?"$"+y.values.toFixed(2):$r(y.values),b=y.action?`${y.action}<br>${this.isTime?"Time":this.slotName}: ${v}<br>${this.valueName}: ${_}`:`${this.isTime?"Time":this.slotName}: ${v}<br>${this.valueName}: ${_}`;g.target.r.baseVal.value=5,zt("#"+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,y)=>{g.target.r.baseVal.value=3,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},f=(g,y)=>{const v=y.index;g.target.classList.contains("show")&&(Dn("."+this.id+"line").attr("stroke-width",1),Dn("."+this.id+v+"line").attr("stroke-width",2.5),Dn("."+this.id+"points").attr("r",1),Dn("."+this.id+v+"points").attr("r",3),Dn("#"+this.id+v+"dots").attr("r",6),Dn("."+this.id+v+"labels").attr("font-weight",1e3))},h=(g,y)=>{const v=y.index;Dn("."+this.id+"line").attr("stroke-width",1.5),Dn("."+this.id+"points").attr("r",2.5),Dn("#"+this.id+v+"dots").attr("r",5),Dn("."+this.id+v+"labels").attr("font-weight",500)},d=(g,y)=>{const v=y.index;g.target.classList.contains("show")?(u.push(v),g.target.classList.remove("show"),g.target.classList.add("hide"),Dn("#"+this.id+v+"dots").attr("opacity","0.5")):(u.splice(u.indexOf(v),1),g.target.classList.remove("hide"),g.target.classList.add("show"),Dn("#"+this.id+v+"dots").attr("opacity","1")),Dn("."+this.id+"line").remove(),Dn("."+this.id+"points").remove(),zt("."+this.id+"xaxis").remove(),zt("."+this.id+"yaxis").remove(),p()},p=()=>{var L;const g=t.filter(N=>!u.includes(N.index)),y=this.getAxisLargest(g),v=this.isTime?EA(Ci(y[0]),[s,n-a]):MA(y[0],[s,n-a]),_=Ms([0,y[1]],[r-o,i]);this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${r-o})`).call(this.isTime?ko(v).ticks(n/80).tickSizeOuter(0):ko(v).ticks(n/20).tickSizeOuter(0).tickFormat(N=>{if(!this.isTime)return mA(N,(n-a)/y[0].length*8)})),this.svg.append("g").attr("class",this.id+"yaxis").attr("transform",`translate(${s},0)`).call(Jd(_).ticks(r/40).tickFormat(N=>this.unit==="Bytes (B)"||this.unit==="B"?ei(N):$r(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=jg().x((N,H)=>v(N.slots)).y((N,H)=>_(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=>FA[this.theme][N.action]||Kn[N.index%Kn.length]).attr("stroke-width",1.5).attr("d",function(N){return b(N.slots.map((H,S)=>({slots:H,values:N.values[S]})))}),M=((L=w.node())==null?void 0:L.getTotalLength())||0,x=1200;w.attr("stroke-dasharray",M+" "+M).attr("stroke-dashoffset",M).transition().duration(x).ease(L5e).attr("stroke-dashoffset",0);for(const N of g){const H=N.slots.map((S,F)=>({index:N.index,action:N.action,slots:S,values:N.values[F]}));this.svg.selectAll(".point").data(H).enter().append("circle").attr("class",S=>this.id+S.index+"points "+this.id+"points").attr("fill",S=>FA[this.theme][N.action]||Kn[S.index%Kn.length]).attr("r",2.5).attr("cx",S=>v(S.slots)).attr("cy",S=>_(S.values)).attr("opacity",0).on("mouseover",c).on("mouseout",A).transition().delay((S,F)=>F/H.length*x).duration(250).attr("opacity",1)}};p(),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 m=Math.max(...e.map(g=>phe(g.action||"(no name)")),0);this.legend=zt("#"+this.id+"legend").append("svg").attr("width",m/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,y)=>r/(e.length+1)+y*25+4).attr("r",5).style("fill",g=>FA[this.theme][g.action]||Kn[g.index%Kn.length]).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,y)=>r/(e.length+1)+y*25+5).style("fill",g=>FA[this.theme][g.action]||Kn[g.index%Kn.length]).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]}}},I4e=["id"],D4e=["id"],U4e=["id"];function P4e(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,D4e)],8,I4e),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,U4e)],4)):l.createCommentVNode("",!0)],64)}const qg=pr(O4e,[["render",P4e]]),H4e={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=zt("#"+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=EA(Ci(e.slots),[o,t-i]),c=this.title?[n-a,r+30]:[n-a,r],A=Ms([0,s],c),f=(d,p)=>{const m=new Date(p.slots).toUTCString(),g=this.unit==="Bytes (B)"||this.unit==="B"?ei(p.values)+"B":this.unit==="Percent (%)"?p.values.toFixed(2)+"%":this.unit==="Cost ($)"?pf(p.values):$r(p.values),y=zt("#"+this.id+"tooltip").html(`${this.data.name}<br>${m}<br>${this.valueName}: ${g}`).style("opacity",1).style("top",d.layerY+"px");if(d.layerX>t*3/4){const v=y.node().getBoundingClientRect().width;y.style("left",d.layerX-v+"px")}else y.style("left",d.layerX+"px")},h=(d,p)=>{zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};if(this.svg.append("g").attr("transform",`translate(0,${n-a})`).call(ko(u).ticks(t/80).tickSizeOuter(0)),this.svg.append("g").attr("transform",`translate(${o},0)`).call(Jd(A).ticks(n/40).tickFormat(d=>this.unit==="Bytes (B)"||this.unit==="B"?ei(d):this.unit==="Cost ($)"?pf(d):$r(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((p,m)=>({slots:p,values:e.values[m]}));this.svg.selectAll(".rect").data(d).enter().append("rect").attr("class",p=>this.id+"bar").attr("z-index",1).attr("x",p=>u(p.slots)-2).attr("y",p=>A(p.values)).attr("width",10).attr("height",p=>n-a-A(p.values)).attr("fill",Kn[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")}}},Y4e=["id"],R4e=["id"];function Q4e(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,R4e)],8,Y4e)}const j4e=pr(H4e,[["render",Q4e]]),V4e={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=zt("#"+this.id).append("svg").attr("viewBox",`0 0 ${this.width} ${this.title?this.height+40:this.height}`):this.svg=zt("#"+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((A,f,h)=>(A[h]=f||"(no name)",A),{}),u=(A,f)=>{const h=this.unit==="Bytes (B)"||this.unit==="B"?ei(f.values)+"B":this.unit==="Percent (%)"?f.values.toFixed(2)+"%":$r(f.values);A.target.style.opacity=.4,zt("#"+this.id+"tooltip").html(`${f.field?f.field:"(no name)"}<br>${this.valueName}: ${h}`).style("opacity",1).style("left",A[this.tooltipOffset+"X"]+10+"px").style("top",A[this.tooltipOffset+"Y"]+"px")},c=(A,f)=>{A.target.style.opacity=0,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};if(e.fields&&e.fields.length>0){let A=this.unit==="Percent (%)"?100:0;e.values.forEach(m=>{m>A&&(A=m)}),A===0&&(A=1);const f=Ms([0,A],[o,t-i-o]),h=this.title?[n-a,r+30]:[n-a,r],d=MA().range(h).domain(e.fields.map((m,g)=>g)).padding(.2),p=e.fields.map((m,g)=>({field:m,values:e.values[g]||0}));this.svg.selectAll(".rect").data(p).enter().append("rect").attr("class",m=>this.id+"bar").attr("z-index",1).attr("x",m=>f(0)).attr("y",(m,g)=>d(g)).attr("width",m=>0).attr("height",d.bandwidth()).attr("fill",(m,g)=>Kn[g%Kn.length]).style("opacity",.8),this.svg.selectAll("rect").transition().duration(500).attr("x",m=>f(0)).attr("width",m=>f(m.values)-o).delay((m,g)=>g*50),this.svg.selectAll(".rect").data(p).enter().append("rect").attr("class",m=>this.id+"barEmpty").attr("z-index",1).attr("x",m=>f(0)).attr("y",(m,g)=>d(g)).attr("width",this.width-o).attr("height",d.bandwidth()).attr("fill",(m,g)=>Kn[g%Kn.length]).style("opacity",0).on("mouseover",u).on("mouseout",c),this.svg.append("g").attr("transform",`translate(0,${r})`).call(rbe(f).ticks(5).tickFormat(m=>this.unit==="Bytes (B)"||this.unit==="B"?ei(m):this.unit==="Cost ($)"?pf(m):$r(m))),this.svg.append("g").attr("transform",`translate(${o},0)`).call(ibe(d).tickSize(0).tickFormat(m=>s[m])).call(m=>m.select(".domain").remove()).call(m=>m.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")}}},z4e=["id"],q4e=["id"];function K4e(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,q4e)],8,z4e)}const oP=pr(V4e,[["render",K4e]]),G4e={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}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.resizable?this.svg=zt("#"+this.id).append("svg").attr("viewBox",`0 0 ${this.width} ${this.height}`):this.svg=zt("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height);const e=this.data.color?this.data.color:Pi[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",Pi[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:Pi[this.theme][this.change];let A=this.unit==="Percent (%)"?100:0;e.values.forEach(w=>{w>A&&(A=w)});const f=EA(Ci(e.slots),[o,t-i]),h=Ms([0,A],[n-a,r]),d=(w,M)=>{const x=new Date(M.slots).toUTCString(),L=this.unit==="Bytes (B)"?ei(M.values)+"B":this.unit==="Percent (%)"?M.values.toFixed(2)+"%":$r(M.values);w.target.r.baseVal.value=u,zt("#"+this.id+"tooltip").html(`Time: ${x}<br>${this.valueName}: ${L}`).style("opacity",1).style("left",w[this.tooltipOffset+"X"]+15+"px").style("top",w[this.tooltipOffset+"Y"]+"px")},p=(w,M)=>{w.target.r.baseVal.value=s,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},m=jg().x((w,M)=>f(w.slots)).y((w,M)=>h(w.values)),g=UCe().x((w,M)=>f(w.slots)).y0(n-a).y1((w,M)=>h(w.values)),y=this.svg,v=this;y.selectAll("g").data([e]).join(w=>_(w),w=>_(w),w=>b(w));function _(w){w.append("g").call(M=>{M.append("g").call(x=>{x.append("g").attr("id",v.id+"xaxis").attr("transform",`translate(0,${n-a})`).call(ko(f).ticks(v.hideAxis?0:t/80).tickSizeOuter(0)),x.append("g").attr("id",v.id+"yaxis").attr("transform",`translate(${o},0)`).call(Jd(h).ticks(v.hideAxis?0:n/40).tickFormat(L=>v.unit==="Bytes (B)"?ei(L):$r(L))).call(L=>v.hideAxis?L.select(".domain").attr("stroke-width",.5):L.select(".domain").remove()).call(L=>L.selectAll(".tick line").clone().attr("x2",t-o-i).attr("stroke-opacity",.1)).call(L=>L.append("text").attr("x",-o).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(v.hideAxis?"":v.unit))})}).call(M=>{M.append("g").call(x=>{if(x.append("path").attr("class",L=>v.id+"line").attr("z-index",1).attr("stroke",c).attr("stroke-width",1.5).attr("d",function(L){const N=L.slots.map((H,S)=>({slots:H,values:e.values[S]}));return m(N)}).attr("class","area").attr("d",function(L){const N=L.slots.map((H,S)=>({slots:H,values:e.values[S]}));return g(N)}).attr("fill","url(#gradientFill"+v.id+")"),!v.hideTooltip){const L=v.data.slots.map((N,H)=>({slots:N,values:v.data.values[H]}));x.append("g").call(N=>L.forEach(H=>{N.append("circle").attr("class",S=>v.id+"points").attr("stroke",c).attr("r",s).attr("cx",S=>f(H.slots)).attr("cy",S=>h(H.values)).on("mouseover",S=>d(S,H)).on("mouseout",S=>p(S))}))}})})}function b(w){w.call(M=>M.style("opacity",0).remove())}}}},W4e=["id"],X4e=["id"];function J4e(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,X4e)],8,W4e)}const sP=pr(G4e,[["render",J4e]]),Z4e={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=zt("#"+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,y)=>{const v=this.isTime?new Date(y.data[0]).toUTCString():y.data[0],_=y[1]-y[0],b=this.names[y.key]||y.key,w=this.unit==="Bytes (B)"?ei(_)+"B":this.unit==="Percent (%)"?_.toFixed(2)+"%":this.unit==="Cost ($)"?"$"+_.toFixed(2):$r(_);g.target.style.opacity=.7,zt("#"+this.id+"tooltip").html(`${b}<br>${this.isTime?"Time":this.slotName}: ${v}<br>${this.valueName}: ${w}`).style("opacity",1).style("left",g[this.tooltipOffset+"X"]+10+"px").style("top",g[this.tooltipOffset+"Y"]+"px")},A=(g,y)=>{g.target.style.opacity=1,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},f=(g,y)=>{const v=u.indexOf(y.key);Dn("."+this.id+"bar").style("opacity",.7),Dn("."+this.id+v+"bar").style("opacity",1),Dn("#"+this.id+v+"dots").attr("r",6),Dn("."+this.id+v+"labels").attr("font-weight",1e3)},h=(g,y)=>{const v=u.indexOf(y.key);Dn("."+this.id+"bar").style("opacity",1),Dn("#"+this.id+v+"dots").attr("r",5),Dn("."+this.id+v+"labels").attr("font-weight",500)},d=(g,y)=>{const v=u.indexOf(y.key);zt("."+this.id+"xaxis").remove(),zt("."+this.id+"yaxis").remove(),Dn("#"+this.id+" rect").remove(),g.target.classList.contains("show")?(s.push(y.key),g.target.classList.remove("show"),g.target.classList.add("hide"),Dn("#"+this.id+v+"dots").attr("opacity","0.5")):(s.splice(s.indexOf(y.key),1),g.target.classList.remove("hide"),g.target.classList.add("show"),Dn("#"+this.id+v+"dots").attr("opacity","1")),p()},p=()=>{const g=e.series.filter(w=>!s.includes(w.name)),y=nP().keys(d7(g.map(w=>w.name))).value((w,M)=>w[1].get(M)===void 0?0:w[1].get(M).value)(o7(g,w=>w.slot,w=>w.name)),v=this.isTime?EA(Ci(e.slots),[o,t-i]):MA(e.slots,[o,t-i]),_=this.title?[n-a,r+30]:[n-a,r],b=Ms([0,ma(y,w=>ma(w,M=>M[1]))],_);return this.svg.append("g").attr("transform",`translate(0,${n-a})`).attr("class",this.id+"xaxis").call(this.isTime?ko(v).ticks(t/80).tickSizeOuter(0):ko(v).ticks(t/20).tickSizeOuter(0).tickFormat(w=>{if(!this.isTime)return mA(w,(t-i)/e.slots.length*8)})),this.svg.append("g").attr("transform",`translate(${o},0)`).attr("class",this.id+"yaxis").call(Jd(b).ticks(n/40).tickFormat(w=>this.unit==="Bytes (B)"?ei(w):this.unit==="Cost ($)"?pf(w):$r(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(y).join("g").attr("fill",w=>iC[this.theme][w.key]||Kn[u.indexOf(w.key)%Kn.length]).selectAll("rect").data(w=>w.map(M=>(M.key=w.key,M))).join("rect").attr("class",w=>{const M=u.indexOf(w.key);return`${this.id}${M}bar ${this.id}bar`}).attr("x",w=>v(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(v.step()-5,15)).on("mouseover",c).on("mouseout",A),y},m=p();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=zt("#"+this.id+"legend").append("svg").attr("width",Math.max(this.width,m.length*125)).attr("height",20),this.legend.selectAll("legendDots").data(m).enter().append("circle").attr("id",g=>this.id+u.indexOf(g.key)+"dots").attr("class","show").attr("cx",(g,y)=>t/(m.length+1)+y*120-10).attr("cy",15).attr("r",5).attr("fill",(g,y)=>iC[this.theme][g.key]||Kn[y%Kn.length]).on("mouseover",f).on("mouseout",h).on("click",d),this.legend.selectAll("legendLabels").data(m).enter().append("text").attr("class",g=>this.id+u.indexOf(g.key)+"labels").attr("x",(g,y)=>t/(m.length+1)+y*120).attr("y",15).attr("fill",(g,y)=>iC[this.theme][g.key]||Kn[y%Kn.length]).text((g,y)=>mA(this.names[g[0].key],700)).attr("font-weight",500).attr("text-anchor","left").attr("font-size","11px").style("alignment-baseline","middle")}}},$4e=["id"],eSe=["id"],tSe=["id"];function nSe(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,eSe)],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,tSe)],4)],64)}const Kg=pr(Z4e,[["render",nSe]]),rSe={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=zt("#"+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],M=b[1]-b[0],x=b.key.split(":")[0],L=this.names[b.key.split(":")[1]]||b.key.split(":")[1],N=this.unit==="Bytes (B)"?ei(M)+"B":this.unit==="Percent (%)"?M.toFixed(2)+"%":this.unit==="Cost ($)"?"$"+M.toFixed(2):$r(M);_.target.style.opacity=.7,zt("#"+this.id+"tooltip").html(`${x}<br>Instance: ${L}<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")},p=(_,b)=>{_.target.style.opacity=1,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},m=(_,b)=>{const w=A.indexOf(b);Dn("."+this.id+"bar").style("opacity",.7),Dn("."+this.id+w+"bar").style("opacity",1),Dn("#"+this.id+w+"dots").attr("r",6),Dn("."+this.id+w+"labels").attr("font-weight",1e3)},g=(_,b)=>{const w=A.indexOf(b);Dn("."+this.id+"bar").style("opacity",1),Dn("#"+this.id+w+"dots").attr("r",5),Dn("."+this.id+w+"labels").attr("font-weight",500)},y=(_,b)=>{const w=A.indexOf(b);zt("."+this.id+"xaxis").remove(),zt("."+this.id+"yaxis").remove(),Dn("#"+this.id+" rect").remove(),_.target.classList.contains("show")?(c.push(b),_.target.classList.remove("show"),_.target.classList.add("hide"),Dn("#"+this.id+w+"dots").attr("opacity","0.5")):(c.splice(c.indexOf(b),1),_.target.classList.remove("hide"),_.target.classList.add("show"),Dn("#"+this.id+w+"dots").attr("opacity","1")),v()},v=()=>{const _=h.filter(I=>!c.includes(I.action)),b=_.map(I=>I.slot).filter((I,E,P)=>P.indexOf(I)===E),w=ma(b),M=Nh(b),x=(w-M)/20,L=!w||!M?null:w+x,N=this.isTime?EA(Ci([...b,L]),[o,t-i]):MA(b,[o,t-i]),H=ma(_,I=>I.value),S=[n-a,r];for(const I of A)if(!c.includes(I)){const E=A.indexOf(I),P=h.filter(z=>z.action===I),K=nP().keys(d7(P.map(z=>z.action+":"+z.instance))).value((z,J)=>z[1].get(J)===void 0?0:z[1].get(J).value)(o7(P,z=>z.slot,z=>z.action+":"+z.instance)),q=Ms([0,H],S);this.svg.append("g").selectAll().data(K).join("g").attr("fill",z=>FA.scale[z.key.split(":")[0]](.5*f.indexOf(z.key.split(":")[1])/f.length+.5)||Kn[A.indexOf(z.key.split(":")[0])%Kn.length]).selectAll("rect").data(z=>z.map(J=>(J.key=z.key,J))).join("rect").attr("class",z=>`${this.id}${E}bar ${this.id}bar`).attr("x",z=>N(z.data[0])+30*E/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",p).transition().duration(1e3).attr("y",z=>q(z[1])).attr("height",z=>q(z[0])-q(z[1]))}const F=Ms([0,H],S);this.svg.append("g").attr("transform",`translate(0,${n-a})`).attr("class",this.id+"xaxis").call(this.isTime?ko(N).ticks(t/80).tickSizeOuter(0):ko(N).ticks(t/20).tickSizeOuter(0).tickFormat(I=>{if(!this.isTime)return mA(I,(t-i)/b.length*8)})),this.svg.append("g").attr("transform",`translate(${o},0)`).attr("class",this.id+"yaxis").call(Jd(F).ticks(n/40).tickFormat(I=>this.unit==="Bytes (B)"?ei(I):this.unit==="Cost ($)"?pf(I):$r(I))).call(I=>I.select(".domain").remove()).call(I=>I.selectAll(".tick line").clone().attr("x2",t-o-i).attr("stroke-opacity",.1)).call(I=>I.append("text").attr("x",-o).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit))};v(),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=zt("#"+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)=>FA[this.theme][_]||Kn[b%Kn.length]).on("mouseover",m).on("mouseout",g).on("click",y),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)=>FA[this.theme][_]||Kn[b%Kn.length]).text((_,b)=>mA(_,700)).attr("font-weight",500).attr("text-anchor","left").attr("font-size","11px").style("alignment-baseline","middle")}}},iSe=["id"],aSe=["id"],oSe=["id"];function sSe(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,aSe)],8,iSe),l.createElementVNode("div",{class:"overflow-auto",style:l.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,oSe)],4)],64)}const lSe=pr(rSe,[["render",sSe]]),uSe={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()},methods:{initializeChart(){this.svg=zt("#"+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=YCe().value(b=>b.values),o=Gx().innerRadius(0).outerRadius(r),s=Gx().innerRadius(r*.9).outerRadius(r*.9),u=(b,w)=>{const M=!b.target.id||b.target.id.endsWith("dots")?t/2:b[this.tooltipOffset+"Y"],x=!b.target.id||b.target.id.endsWith("dots")?0:b[this.tooltipOffset+"X"],L=i[w.data.field],N=this.unit==="Bytes (B)"||this.unit==="B"?ei(w.data.values)+"B":this.unit==="Percent (%)"?w.data.values.toFixed(2)+"%":$r(w.data.values);Dn("."+this.id+"pie").style("opacity",.4),zt("#"+this.id+L+"pie").style("opacity",1),Dn("."+this.id+"labels").style("opacity",.4),zt("#"+this.id+L+"labels").style("opacity",1),zt("#"+this.id+L+"polyline").style("opacity",1),zt("#"+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",x+10+"px").style("top",M+"px")},c=()=>{Dn("."+this.id+"pie").style("opacity",.8),Dn("."+this.id+"labels").style("opacity",1),zt("#"+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,m=(b=>{const w=r<100?12:14;return b.map((M,x)=>{if(x===0)return M;if(!f){const H=b[x-1].pos[1]-M.pos[1]+w;return M.pos[1]+=H,M}const L=(b[x-1].startAngle+b[x-1].endAngle)/2,N=(M.startAngle+M.endAngle)/2;if(L<Math.PI&&N>Math.PI)return M;if(L>Math.PI&&N<Math.PI)return M;if(N>Math.PI){const H=b[x-1].pos[1]-M.pos[1]+w;H>0&&(M.pos[1]+=H)}else{const H=M.pos[1]-b[x-1].pos[1]+w;H>0&&(M.pos[1]-=H)}return M})})(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,y=this;g.selectAll("g").data(m).join(b=>v(b),b=>v(b),b=>_(b));function v(b){const w=b.append("g"),M=b.append("g");w.append("path").attr("class",y.id+"pie").attr("id",x=>y.id+i[x.data.field]+"pie").attr("transform",`translate(${e/2},${t/2+10})`).attr("d",x=>(f||(x.endAngle=Math.PI*A.length),o(x))).attr("fill",(x,L)=>f?Kn[L%Kn.length]:Kn[0]).style("opacity",.8).style("fill-opacity",0).on("mouseover",u).on("mouseout",c).transition().duration(800).attrTween("d",function(x){const L=fu(y._current,x);return y._current=L(1),N=>o(L(N))}).style("fill-opacity",1),M.append("polyline").attr("class",y.id+"labels").attr("id",x=>y.id+i[x.data.field]+"polyline").attr("points",x=>{const L=x.pos,H=(x.startAngle+x.endAngle)/2<Math.PI?r*1.1:-r*1.1;if(!f){const S=-r*1.1;return[o.centroid({startAngle:0,endAngle:0}),s.centroid({startAngle:0,endAngle:0}),[S,L[1]]]}return[o.centroid(x),s.centroid(x),[H,L[1]]]}).attr("fill","none").style("stroke",y.theme==="dark"?"white":"black").attr("transform",`translate(${e/2},${t/2})`).style("opacity",0).transition().duration(800).style("opacity",1),M.append("text").attr("class",y.id+"labels").attr("id",x=>y.id+i[x.data.field]+"labels").attr("transform",x=>{const L=x.pos;return`translate(${((x.startAngle+x.endAngle)/2<Math.PI?r*1.15:-r*1.15)+e/2},${L[1]+t/2})`}).attr("text-anchor",x=>(x.startAngle+x.endAngle)/2<Math.PI?"start":"end").attr("font-size",r<100?"9px":"11px").style("fill",y.theme==="dark"?"white":"black").text(x=>x.data.field===0?0:x.data.field?mA(x.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())}}}},cSe=["id"],ASe=["id"],dSe=["id"];function fSe(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,ASe)],8,cSe),l.createElementVNode("div",{class:"overflow-auto",style:l.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,dSe)],4)],64)}const lP=pr(uSe,[["render",fSe]]),hSe={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}},mounted(){this.initializeChart(),this.createChart()},methods:{initializeChart(){this.svg=zt("#"+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=Gx().innerRadius(n*.7).outerRadius(n).startAngle(0);this.svg.append("path").datum({endAngle:2*Math.PI}).attr("d",i).attr("fill",Pi[this.theme].canvas).attr("transform",`translate(${e/2},${t/2})`),this.svg.append("path").datum({endAngle:0}).attr("d",i).attr("fill",Pi[this.theme].secondary).attr("transform",`translate(${e/2},${t/2})`).transition().duration(1e3).call(a=>a.attrTween("d",o=>{const s=fu(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",Pi[this.theme].text).attr("transform",`translate(${e/2},${t/2})`).transition().duration(1e3).tween("text",function(){const a=fu(0,r*100);return function(o){this.textContent=`${Math.round(a(o))}%`}})}}},pSe=["id"];function mSe(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id,class:"float-left"},null,8,pSe)}const gSe=pr(hSe,[["render",mSe]]);function OA(e){return e!=null&&!Number.isNaN(e)}function mf(e,t){return+OA(t)-+OA(e)||xA(e,t)}function sC(e,t){return+OA(t)-+OA(e)||eg(e,t)}function lC(e){return e!=null&&`${e}`!=""}function uP(e){return isFinite(e)?e:NaN}function f_(e){return e>0&&isFinite(e)?e:NaN}function uC(e){return e<0&&isFinite(e)?e:NaN}function vSe(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`${ySe(e.getUTCFullYear())}-${Bc(e.getUTCMonth()+1,2)}-${Bc(e.getUTCDate(),2)}${n||r||i||a?`T${Bc(n,2)}:${Bc(r,2)}${i||a?`:${Bc(i,2)}${a?`.${Bc(a,3)}`:""}`:""}Z`:""}`}function ySe(e){return e<0?`-${Bc(-e,6)}`:e>9999?`+${Bc(e,6)}`:Bc(e,4)}function Bc(e,t){return`${e}`.padStart(t,"0")}const _Se=/^(?:[-+]\d{2})?\d{4}(?:-\d{2}(?:-\d{2})?)?(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{3})?)?(?:Z|[-+]\d{2}:?\d{2})?)?$/;function cP(e,t){return _Se.test(e+="")?new Date(e):typeof t=="function"?t(e):t}function $h(e){if(e==null)return;const t=e[0],n=e[e.length-1];return eg(t,n)}const ep=1e3,IA=ep*60,DA=IA*60,_u=DA*24,bu=_u*7,gf=_u*30,UA=_u*365,cC=[["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",ep],["5 seconds",5*ep],["15 seconds",15*ep],["30 seconds",30*ep],["minute",IA],["5 minutes",5*IA],["15 minutes",15*IA],["30 minutes",30*IA],["hour",DA],["3 hours",3*DA],["6 hours",6*DA],["12 hours",12*DA],["day",_u],["2 days",2*_u],["week",bu],["2 weeks",2*bu],["month",gf],["3 months",3*gf],["6 months",6*gf],["year",UA],["2 years",2*UA],["5 years",5*UA],["10 years",10*UA],["20 years",20*UA],["50 years",50*UA],["100 years",100*UA]],AC=new Map([["second",ep],["minute",IA],["hour",DA],["day",_u],["monday",bu],["tuesday",bu],["wednesday",bu],["thursday",bu],["friday",bu],["saturday",bu],["sunday",bu],["week",bu],["month",gf],["year",UA]]),AP=new Map([["second",pl],["minute",Mg],["hour",Lg],["day",cf],["monday",Ng],["tuesday",VI],["wednesday",zI],["thursday",df],["friday",qI],["saturday",KI],["sunday",Wh],["week",Wh],["month",Og],["year",ml]]),dC=new Map([["second",pl],["minute",Eg],["hour",Tg],["day",Gy],["monday",Fg],["tuesday",GI],["wednesday",WI],["thursday",hf],["friday",XI],["saturday",JI],["sunday",Xh],["week",Xh],["month",Ig],["year",gl]]),Gg=Symbol("intervalDuration"),h_=Symbol("intervalType");for(const[e,t]of AP)t[Gg]=AC.get(e),t[h_]="time";for(const[e,t]of dC)t[Gg]=AC.get(e),t[h_]="utc";const Wg=[["year",gl,"utc"],["month",Ig,"utc"],["day",Gy,"utc",6*gf],["hour",Tg,"utc",3*_u],["minute",Eg,"utc",6*DA],["second",pl,"utc",30*IA]],p_=[["year",ml,"time"],["month",Og,"time"],["day",cf,"time",6*gf],["hour",Lg,"time",3*_u],["minute",Mg,"time",6*DA],["second",pl,"time",30*IA]],bSe=[Wg[0],p_[0],Wg[1],p_[1],Wg[2],p_[2],...Wg.slice(3)];function dP(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=dC.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 fP(e){return hP(dP(e),"time")}function fC(e){return hP(dP(e),"utc")}function hP([e,t],n){let r=(n==="time"?AP:dC).get(e);return t>1&&(r=r.every(t),r[Gg]=AC.get(e)*t,r[h_]=n),r}function pP(e,t){if(!(t>1))return;const n=e[Gg];if(!cC.some(([,i])=>i===n)||n%_u===0&&_u<n&&n<gf)return;const[r]=cC[Q1(([,i])=>Math.log(i)).center(cC,Math.log(n*t))];return(e[h_]==="time"?fP:fC)(r)}function mP(e,t,n){const r=t==="time"?Qx:Hg;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=wSe(n);switch(e){case"millisecond":return tp(r(".%L"),r(":%M:%S"),i);case"second":return tp(r(":%S"),r("%-I:%M"),i);case"minute":return tp(r("%-I:%M"),r("%p"),i);case"hour":return tp(r("%-I %p"),r("%b %-d"),i);case"day":return tp(r("%-d"),r("%b"),i);case"month":return tp(r("%b"),r("%Y"),i);case"year":return r("%Y")}throw new Error("unable to format time ticks")}function wSe(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}
|