From 7363ea6b50d1caa9a5e51a630283ff942a2f82fc Mon Sep 17 00:00:00 2001 From: Alexandre Simao Date: Thu, 23 Feb 2023 17:11:38 +0100 Subject: [PATCH] init make security presentation --- custom_plugins/mermaid/mermaid.js | 13 ++++ custom_plugins/pdfexport/pdfexport.js | 108 ++++++++++++++++++++++++++ images/make_foundation_logo.png | Bin 0 -> 43207 bytes images/make_logo.png | Bin 0 -> 44080 bytes index.html | 108 ++++++++++++++++++++++++++ 5 files changed, 229 insertions(+) create mode 100644 custom_plugins/mermaid/mermaid.js create mode 100644 custom_plugins/pdfexport/pdfexport.js create mode 100644 images/make_foundation_logo.png create mode 100644 images/make_logo.png create mode 100644 index.html diff --git a/custom_plugins/mermaid/mermaid.js b/custom_plugins/mermaid/mermaid.js new file mode 100644 index 0000000..8b51a65 --- /dev/null +++ b/custom_plugins/mermaid/mermaid.js @@ -0,0 +1,13 @@ +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).RevealMermaid=e()}(this,(function(){"use strict";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var t={exports:{}};!function(t,e){t.exports=function(){var e;function n(){return e.apply(null,arguments)}function i(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function s(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(var e in t)if(a(t,e))return;return 1}function o(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function c(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,e){for(var n=[],i=t.length,r=0;r>>0,i=0;i$t(t)?(a=t+1,e-$t(t)):(a=t,e),{year:a,dayOfYear:n}}function Wt(t,e,n){var i,r,a=zt(t.year(),e,n);return(a=Math.floor((t.dayOfYear()-a-1)/7)+1)<1?i=a+Ht(r=t.year()-1,e,n):a>Ht(t.year(),e,n)?(i=a-Ht(t.year(),e,n),r=t.year()+1):(r=t.year(),i=a),{week:i,year:r}}function Ht(t,e,n){var i=zt(t,e,n);return e=zt(t+1,e,n),($t(t)-i+e)/7}function qt(t,e){return t.slice(e,7).concat(t.slice(0,e))}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),U("week",5),U("isoWeek",5),dt("w",et),dt("ww",et,Q),dt("W",et),dt("WW",et,Q),bt(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=q(t)})),I("d",0,"do","day"),I("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),I("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),I("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),dt("d",et),dt("e",et),dt("E",et),dt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),dt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),dt("dddd",(function(t,e){return e.weekdaysRegex(t)})),bt(["dd","ddd","dddd"],(function(t,e,n,i){null!=(i=n._locale.weekdaysParse(t,i,n._strict))?e.d=i:p(n).invalidWeekday=t})),bt(["d","e","E"],(function(t,e,n,i){e[i]=q(t)}));var Vt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Gt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Zt=ut,Qt=ut,Kt=ut;function Jt(){function t(t,e){return e.length-t.length}for(var e,n,i,r=[],a=[],s=[],o=[],l=0;l<7;l++)i=d([2e3,1]).day(l),e=ft(this.weekdaysMin(i,"")),n=ft(this.weekdaysShort(i,"")),i=ft(this.weekdays(i,"")),r.push(e),a.push(n),s.push(i),o.push(e),o.push(n),o.push(i);r.sort(t),a.sort(t),s.sort(t),o.sort(t),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function te(){return this.hours()%12||12}function ee(t,e){I(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function ne(t,e){return e._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,te),I("k",["kk",2],0,(function(){return this.hours()||24})),I("hmm",0,0,(function(){return""+te.apply(this)+L(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+te.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+L(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)})),ee("a",!0),ee("A",!1),P("hour","h"),U("hour",13),dt("a",ne),dt("A",ne),dt("H",et),dt("h",et),dt("k",et),dt("HH",et,Q),dt("hh",et,Q),dt("kk",et,Q),dt("hmm",nt),dt("hmmss",it),dt("Hmm",nt),dt("Hmmss",it),mt(["H","HH"],wt),mt(["k","kk"],(function(t,e,n){t=q(t),e[wt]=24===t?0:t})),mt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),mt(["h","hh"],(function(t,e,n){e[wt]=q(t),p(n).bigHour=!0})),mt("hmm",(function(t,e,n){var i=t.length-2;e[wt]=q(t.substr(0,i)),e[Tt]=q(t.substr(i)),p(n).bigHour=!0})),mt("hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[wt]=q(t.substr(0,i)),e[Tt]=q(t.substr(i,2)),e[Ct]=q(t.substr(r)),p(n).bigHour=!0})),mt("Hmm",(function(t,e,n){var i=t.length-2;e[wt]=q(t.substr(0,i)),e[Tt]=q(t.substr(i))})),mt("Hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[wt]=q(t.substr(0,i)),e[Tt]=q(t.substr(i,2)),e[Ct]=q(t.substr(r))})),ut=V("Hours",!0);var ie,re={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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"},months:Lt,monthsShort:Ot,week:{dow:0,doy:6},weekdays:Vt,weekdaysMin:Xt,weekdaysShort:Gt,meridiemParse:/[ap]\.?m?\.?/i},ae={},se={};function oe(t){return t&&t.toLowerCase().replace("_","-")}function le(t){for(var e,n,i,r,a=0;a=e&&function(t,e){for(var n=Math.min(t.length,e.length),i=0;i=e-1)break;e--}a++}return ie}function ce(e){var n;if(void 0===ae[e]&&t&&t.exports&&null!=e.match("^[^/\\\\]*$"))try{n=ie._abbr,function(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}("./locale/"+e),he(n)}catch(n){ae[e]=null}return ae[e]}function he(t,e){return t&&((e=o(e)?de(t):ue(t,e))?ie=e:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ie._abbr}function ue(t,e){if(null===e)return delete ae[t],null;var n,i=re;if(e.abbr=t,null!=ae[t])C("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."),i=ae[t]._config;else if(null!=e.parentLocale)if(null!=ae[e.parentLocale])i=ae[e.parentLocale]._config;else{if(null==(n=ce(e.parentLocale)))return se[e.parentLocale]||(se[e.parentLocale]=[]),se[e.parentLocale].push({name:t,config:e}),null;i=n._config}return ae[t]=new A(S(i,e)),se[t]&&se[t].forEach((function(t){ue(t.name,t.config)})),he(t),ae[t]}function de(t){var e;if(!(t=t&&t._locale&&t._locale._abbr?t._locale._abbr:t))return ie;if(!i(t)){if(e=ce(t))return e;t=[t]}return le(t)}function pe(t){var e=t._a;return e&&-2===p(t).overflow&&(e=e[vt]<0||11Dt(e[xt],e[vt])?kt:e[wt]<0||24Ht(s,c,h)?p(r)._overflowWeeks=!0:null!=u?p(r)._overflowWeekday=!0:(d=Ut(s,o,l,c,h),r._a[xt]=d.year,r._dayOfYear=d.dayOfYear)),null!=t._dayOfYear&&(a=Ce(t._a[xt],i[xt]),(t._dayOfYear>$t(a)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),u=jt(a,0,t._dayOfYear),t._a[vt]=u.getUTCMonth(),t._a[kt]=u.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=f[e]=i[e];for(;e<7;e++)t._a[e]=f[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[wt]&&0===t._a[Tt]&&0===t._a[Ct]&&0===t._a[Et]&&(t._nextDay=!0,t._a[wt]=0),t._d=(t._useUTC?jt:Yt).apply(null,f),s=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[wt]=24),t._w&&void 0!==t._w.d&&t._w.d!==s&&(p(t).weekdayMismatch=!0)}}function Se(t){if(t._f===n.ISO_8601)ke(t);else if(t._f===n.RFC_2822)Te(t);else{t._a=[],p(t).empty=!0;for(var e,i,r,s,o,l=""+t._i,c=l.length,h=0,u=R(t._f,t._locale).match(O)||[],d=u.length,f=0;ft.valueOf():t.valueOf()"}),Z.toJSON=function(){return this.isValid()?this.toISOString():null},Z.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Z.unix=function(){return Math.floor(this.valueOf()/1e3)},Z.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Z.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Z.eraName=function(){for(var t,e=this.localeData().eras(),n=0,i=e.length;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Z.isLocal=function(){return!!this.isValid()&&!this._isUTC},Z.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Z.isUtc=je,Z.isUTC=je,Z.zoneAbbr=function(){return this._isUTC?"UTC":""},Z.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Z.dates=w("dates accessor is deprecated. Use date instead.",at),Z.months=w("months accessor is deprecated. Use month instead",Ft),Z.years=w("years accessor is deprecated. Use year instead",Pt),Z.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?(this.utcOffset(t="string"!=typeof t?-t:t,e),this):-this.utcOffset()})),Z.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var t,e={};return _(e,this),(e=Ae(e))._a?(t=(e._isUTC?d:Le)(e._a),this._isDSTShifted=this.isValid()&&0e?1:t>=e?0:NaN}function d(t,e){return null==t||null==e?NaN:et?1:e>=t?0:NaN}function p(t){let e,n,i;function r(t,i,r=0,a=t.length){if(r>>1;n(t[e],i)<0?r=e+1:a=e}while(ru(t(e),n),i=(e,n)=>t(e)-n):(e=t===u||t===d?t:f,n=t,i=t),{left:r,center:function(t,e,n=0,a=t.length){const s=r(t,e,n,a-1);return s>n&&i(t[s-1],e)>-i(t[s],e)?s-1:s},right:function(t,i,r=0,a=t.length){if(r>>1;n(t[e],i)<=0?r=e+1:a=e}while(r-1}(e))return e;var n=e.match(l);if(!n)return e;var i=n[0];return r.test(i)?"about:blank":e};const g=p(u).right;p((function(t){return null===t?NaN:+t})).center;var y=g;class m extends Map{constructor(t,e=_){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(b(this,t))}has(t){return super.has(b(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const i=e(n);t.has(i)&&(n=t.get(i),t.delete(i));return n}(this,t))}}function b({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function _(t){return null!==t&&"object"==typeof t?t.valueOf():t}const x=Math.sqrt(50),v=Math.sqrt(10),k=Math.sqrt(2);function w(t,e,n){const i=(e-t)/Math.max(0,n),r=Math.floor(Math.log10(i)),a=i/Math.pow(10,r),s=a>=x?10:a>=v?5:a>=k?2:1;let o,l,c;return r<0?(c=Math.pow(10,-r)/s,o=Math.round(t*c),l=Math.round(e*c),o/ce&&--l,c=-c):(c=Math.pow(10,r)*s,o=Math.round(t/c),l=Math.round(e/c),o*ce&&--l),l=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n=r)&&(n=r)}return n}function S(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function A(t){return t}var D=1,L=2,O=3,N=4,M=1e-6;function B(t){return"translate("+t+",0)"}function I(t){return"translate(0,"+t+")"}function F(t){return e=>+t(e)}function R(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function $(){return!this.__axis}function P(t,e){var n=[],i=null,r=null,a=6,s=6,o=3,l="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,c=t===D||t===N?-1:1,h=t===N||t===L?"x":"y",u=t===D||t===O?B:I;function d(d){var p=null==i?e.ticks?e.ticks.apply(e,n):e.domain():i,f=null==r?e.tickFormat?e.tickFormat.apply(e,n):A:r,g=Math.max(a,0)+o,y=e.range(),m=+y[0]+l,b=+y[y.length-1]+l,_=(e.bandwidth?R:F)(e.copy(),l),x=d.selection?d.selection():d,v=x.selectAll(".domain").data([null]),k=x.selectAll(".tick").data(p,e).order(),w=k.exit(),T=k.enter().append("g").attr("class","tick"),C=k.select("line"),E=k.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),k=k.merge(T),C=C.merge(T.append("line").attr("stroke","currentColor").attr(h+"2",c*a)),E=E.merge(T.append("text").attr("fill","currentColor").attr(h,c*g).attr("dy",t===D?"0em":t===O?"0.71em":"0.32em")),d!==x&&(v=v.transition(d),k=k.transition(d),C=C.transition(d),E=E.transition(d),w=w.transition(d).attr("opacity",M).attr("transform",(function(t){return isFinite(t=_(t))?u(t+l):this.getAttribute("transform")})),T.attr("opacity",M).attr("transform",(function(t){var e=this.parentNode.__axis;return u((e&&isFinite(e=e(t))?e:_(t))+l)}))),w.remove(),v.attr("d",t===N||t===L?s?"M"+c*s+","+m+"H"+l+"V"+b+"H"+c*s:"M"+l+","+m+"V"+b:s?"M"+m+","+c*s+"V"+l+"H"+b+"V"+c*s:"M"+m+","+l+"H"+b),k.attr("opacity",1).attr("transform",(function(t){return u(_(t)+l)})),C.attr(h+"2",c*a),E.attr(h,c*g).text(f),x.filter($).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===L?"start":t===N?"end":"middle"),x.each((function(){this.__axis=_}))}return d.scale=function(t){return arguments.length?(e=t,d):e},d.ticks=function(){return n=Array.from(arguments),d},d.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),d):n.slice()},d.tickValues=function(t){return arguments.length?(i=null==t?null:Array.from(t),d):i&&i.slice()},d.tickFormat=function(t){return arguments.length?(r=t,d):r},d.tickSize=function(t){return arguments.length?(a=s=+t,d):a},d.tickSizeInner=function(t){return arguments.length?(a=+t,d):a},d.tickSizeOuter=function(t){return arguments.length?(s=+t,d):s},d.tickPadding=function(t){return arguments.length?(o=+t,d):o},d.offset=function(t){return arguments.length?(l=+t,d):l},d}var Y={value:()=>{}};function j(){for(var t,e=0,n=arguments.length,i={};e=0&&(n=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}(t+"",i),a=-1,s=r.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a0)for(var n,i,r=new Array(n),a=0;a=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),q.hasOwnProperty(e)?{space:q[e],local:t}:t}function G(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===H&&e.documentElement.namespaceURI===H?e.createElement(t):e.createElementNS(n,t)}}function X(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Z(t){var e=V(t);return(e.local?X:G)(e)}function Q(){}function K(t){return null==t?Q:function(){return this.querySelector(t)}}function J(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function tt(){return[]}function et(t){return null==t?tt:function(){return this.querySelectorAll(t)}}function nt(t){return function(){return this.matches(t)}}function it(t){return function(e){return e.matches(t)}}var rt=Array.prototype.find;function at(){return this.firstElementChild}var st=Array.prototype.filter;function ot(){return Array.from(this.children)}function lt(t){return new Array(t.length)}function ct(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function ht(t,e,n,i,r,a){for(var s,o=0,l=e.length,c=a.length;oe?1:t>=e?0:NaN}function gt(t){return function(){this.removeAttribute(t)}}function yt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function mt(t,e){return function(){this.setAttribute(t,e)}}function bt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function _t(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function xt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function vt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function kt(t){return function(){this.style.removeProperty(t)}}function wt(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Tt(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Ct(t,e){return t.style.getPropertyValue(e)||vt(t).getComputedStyle(t,null).getPropertyValue(e)}function Et(t){return function(){delete this[t]}}function St(t,e){return function(){this[t]=e}}function At(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Dt(t){return t.trim().split(/^|\s+/)}function Lt(t){return t.classList||new Ot(t)}function Ot(t){this._node=t,this._names=Dt(t.getAttribute("class")||"")}function Nt(t,e){for(var n=Lt(t),i=-1,r=e.length;++i=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var te=[null];function ee(t,e){this._groups=t,this._parents=e}function ne(){return new ee([[document.documentElement]],te)}function ie(t){return"string"==typeof t?new ee([[document.querySelector(t)]],[document.documentElement]):new ee([[t]],te)}function re(t){return"string"==typeof t?new ee([document.querySelectorAll(t)],[document.documentElement]):new ee([J(t)],te)}function ae(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function se(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function oe(){}ee.prototype=ne.prototype={constructor:ee,select:function(t){"function"!=typeof t&&(t=K(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r=x&&(x=_+1);!(b=y[x])&&++x=0;)(i=r[a])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=ft);for(var n=this._groups,i=n.length,r=new Array(i),a=0;a1?this.each((null==e?kt:"function"==typeof e?Tt:wt)(t,e,null==n?"":n)):Ct(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Et:"function"==typeof e?At:St)(t,e)):this.node()[t]},classed:function(t,e){var n=Dt(t+"");if(arguments.length<2){for(var i=Lt(this.node()),r=-1,a=n.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),s=a.length;if(!(arguments.length<2)){for(o=e?Zt:Xt,i=0;i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Ce(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Ce(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=fe.exec(t))?new Ae(e[1],e[2],e[3],1):(e=ge.exec(t))?new Ae(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ye.exec(t))?Ce(e[1],e[2],e[3],e[4]):(e=me.exec(t))?Ce(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=be.exec(t))?Be(e[1],e[2]/100,e[3]/100,1):(e=_e.exec(t))?Be(e[1],e[2]/100,e[3]/100,e[4]):xe.hasOwnProperty(t)?Te(xe[t]):"transparent"===t?new Ae(NaN,NaN,NaN,0):null}function Te(t){return new Ae(t>>16&255,t>>8&255,255&t,1)}function Ce(t,e,n,i){return i<=0&&(t=e=n=NaN),new Ae(t,e,n,i)}function Ee(t){return t instanceof oe||(t=we(t)),t?new Ae((t=t.rgb()).r,t.g,t.b,t.opacity):new Ae}function Se(t,e,n,i){return 1===arguments.length?Ee(t):new Ae(t,e,n,null==i?1:i)}function Ae(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function De(){return`#${Me(this.r)}${Me(this.g)}${Me(this.b)}`}function Le(){const t=Oe(this.opacity);return`${1===t?"rgb(":"rgba("}${Ne(this.r)}, ${Ne(this.g)}, ${Ne(this.b)}${1===t?")":`, ${t})`}`}function Oe(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ne(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Me(t){return((t=Ne(t))<16?"0":"")+t.toString(16)}function Be(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Fe(t,e,n,i)}function Ie(t){if(t instanceof Fe)return new Fe(t.h,t.s,t.l,t.opacity);if(t instanceof oe||(t=we(t)),!t)return new Fe;if(t instanceof Fe)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),a=Math.max(e,n,i),s=NaN,o=a-r,l=(a+r)/2;return o?(s=e===a?(n-i)/o+6*(n0&&l<1?0:s,new Fe(s,o,l,t.opacity)}function Fe(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Re(t){return(t=(t||0)%360)<0?t+360:t}function $e(t){return Math.max(0,Math.min(1,t||0))}function Pe(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}ae(oe,we,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ve,formatHex:ve,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ie(this).formatHsl()},formatRgb:ke,toString:ke}),ae(Ae,Se,se(oe,{brighter(t){return t=null==t?ce:Math.pow(ce,t),new Ae(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?le:Math.pow(le,t),new Ae(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ae(Ne(this.r),Ne(this.g),Ne(this.b),Oe(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:De,formatHex:De,formatHex8:function(){return`#${Me(this.r)}${Me(this.g)}${Me(this.b)}${Me(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Le,toString:Le})),ae(Fe,(function(t,e,n,i){return 1===arguments.length?Ie(t):new Fe(t,e,n,null==i?1:i)}),se(oe,{brighter(t){return t=null==t?ce:Math.pow(ce,t),new Fe(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?le:Math.pow(le,t),new Fe(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Ae(Pe(t>=240?t-240:t+120,r,i),Pe(t,r,i),Pe(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new Fe(Re(this.h),$e(this.s),$e(this.l),Oe(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 t=Oe(this.opacity);return`${1===t?"hsl(":"hsla("}${Re(this.h)}, ${100*$e(this.s)}%, ${100*$e(this.l)}%${1===t?")":`, ${t})`}`}}));const Ye=Math.PI/180,je=180/Math.PI,ze=.96422,Ue=1,We=.82521,He=4/29,qe=6/29,Ve=3*qe*qe,Ge=qe*qe*qe;function Xe(t){if(t instanceof Ze)return new Ze(t.l,t.a,t.b,t.opacity);if(t instanceof nn)return rn(t);t instanceof Ae||(t=Ee(t));var e,n,i=tn(t.r),r=tn(t.g),a=tn(t.b),s=Qe((.2225045*i+.7168786*r+.0606169*a)/Ue);return i===r&&r===a?e=n=s:(e=Qe((.4360747*i+.3850649*r+.1430804*a)/ze),n=Qe((.0139322*i+.0971045*r+.7141733*a)/We)),new Ze(116*s-16,500*(e-s),200*(s-n),t.opacity)}function Ze(t,e,n,i){this.l=+t,this.a=+e,this.b=+n,this.opacity=+i}function Qe(t){return t>Ge?Math.pow(t,1/3):t/Ve+He}function Ke(t){return t>qe?t*t*t:Ve*(t-He)}function Je(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function tn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function en(t,e,n,i){return 1===arguments.length?function(t){if(t instanceof nn)return new nn(t.h,t.c,t.l,t.opacity);if(t instanceof Ze||(t=Xe(t)),0===t.a&&0===t.b)return new nn(NaN,0()=>t;function sn(t,e){return function(n){return t+n*e}}function on(t){return 1==(t=+t)?ln:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):an(isNaN(e)?n:e)}}function ln(t,e){var n=e-t;return n?sn(t,n):an(isNaN(t)?e:t)}var cn=function t(e){var n=on(e);function i(t,e){var i=n((t=Se(t)).r,(e=Se(e)).r),r=n(t.g,e.g),a=n(t.b,e.b),s=ln(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=a(e),t.opacity=s(e),t+""}}return i.gamma=t,i}(1);function hn(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(a){for(n=0;na&&(r=e.slice(a,r),o[s]?o[s]+=r:o[++s]=r),(n=n[0])===(i=i[0])?o[s]?o[s]+=i:o[++s]=i:(o[++s]=null,l.push({i:s,x:pn(n,i)})),a=yn.lastIndex;return a180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(r(n)+"rotate(",null,i)-2,x:pn(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}(a.rotate,s.rotate,o,l),function(t,e,n,a){t!==e?a.push({i:n.push(r(n)+"skewX(",null,i)-2,x:pn(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(a.skewX,s.skewX,o,l),function(t,e,n,i,a,s){if(t!==n||e!==i){var o=a.push(r(a)+"scale(",null,",",null,")");s.push({i:o-4,x:pn(t,n)},{i:o-2,x:pn(e,i)})}else 1===n&&1===i||a.push(r(a)+"scale("+n+","+i+")")}(a.scaleX,a.scaleY,s.scaleX,s.scaleY,o,l),a=s=null,function(t){for(var e,n=-1,i=l.length;++n180||n<-180?n-360*Math.round(n/360):n):an(isNaN(t)?e:t)})),Ln=0,On=0,Nn=0,Mn=1e3,Bn=0,In=0,Fn=0,Rn="object"==typeof performance&&performance.now?performance:Date,$n="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Pn(){return In||($n(Yn),In=Rn.now()+Fn)}function Yn(){In=0}function jn(){this._call=this._time=this._next=null}function zn(t,e,n){var i=new jn;return i.restart(t,e,n),i}function Un(){In=(Bn=Rn.now())+Fn,Ln=On=0;try{!function(){Pn(),++Ln;for(var t,e=Sn;e;)(t=In-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ln}()}finally{Ln=0,function(){var t,e,n=Sn,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Sn=e);An=t,Hn(i)}(),In=0}}function Wn(){var t=Rn.now(),e=t-Bn;e>Mn&&(Fn-=e,Bn=t)}function Hn(t){Ln||(On&&(On=clearTimeout(On)),t-In>24?(t<1/0&&(On=setTimeout(Un,t-Rn.now()-Fn)),Nn&&(Nn=clearInterval(Nn))):(Nn||(Bn=Rn.now(),Nn=setInterval(Wn,Mn)),Ln=1,$n(Un)))}function qn(t,e,n){var i=new jn;return e=null==e?0:+e,i.restart((n=>{i.stop(),t(n+e)}),e,n),i}jn.prototype=zn.prototype={constructor:jn,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Pn():+n)+(null==e?0:+e),this._next||An===this||(An?An._next=this:Sn=this,An=this),this._call=t,this._time=n,Hn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Hn())}};var Vn=j("start","end","cancel","interrupt"),Gn=[],Xn=0,Zn=1,Qn=2,Kn=3,Jn=4,ti=5,ei=6;function ni(t,e,n,i,r,a){var s=t.__transition;if(s){if(n in s)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function a(t){n.state=Zn,n.timer.restart(s,n.delay,n.time),n.delay<=t&&s(t-n.delay)}function s(a){var c,h,u,d;if(n.state!==Zn)return l();for(c in r)if((d=r[c]).name===n.name){if(d.state===Kn)return qn(s);d.state===Jn?(d.state=ei,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[c]):+cXn)throw new Error("too late; already scheduled");return n}function ri(t,e){var n=ai(t,e);if(n.state>Kn)throw new Error("too late; already running");return n}function ai(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function si(t,e){var n,i;return function(){var r=ri(this,t),a=r.tween;if(a!==n)for(var s=0,o=(i=n=a).length;s=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?ii:ri;return function(){var s=a(this,t),o=s.on;o!==i&&(r=(i=o).copy()).on(e,n),s.on=r}}(n,t,e))},attr:function(t,e){var n=V(t),i="transform"===n?En:ci;return this.attrTween(t,"function"==typeof e?(n.local?gi:fi)(n,i,li(this,"attr."+t,e)):null==e?(n.local?ui:hi)(n):(n.local?pi:di)(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=V(t);return this.tween(n,(i.local?yi:mi)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?Cn:ci;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var a=Ct(this,t),s=(this.style.removeProperty(t),Ct(this,t));return a===s?null:a===n&&s===i?r:r=e(n=a,i=s)}}(t,i)).on("end.style."+t,wi(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,a;return function(){var s=Ct(this,t),o=n(this),l=o+"";return null==o&&(this.style.removeProperty(t),l=o=Ct(this,t)),s===l?null:s===i&&l===r?a:(r=l,a=e(i=s,o))}}(t,i,li(this,"style."+t,e))).each(function(t,e){var n,i,r,a,s="style."+e,o="end."+s;return function(){var l=ri(this,t),c=l.on,h=null==l.value[s]?a||(a=wi(e)):void 0;c===n&&r===h||(i=(n=c).copy()).on(o,r=h),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,r,a=n+"";return function(){var s=Ct(this,t);return s===a?null:s===i?r:r=e(i=s,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,function(t,e,n){var i,r;function a(){var a=e.apply(this,arguments);return a!==r&&(i=(r=a)&&function(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}(t,a,n)),i}return a._value=e,a}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(li(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&function(t){return function(e){this.textContent=t.call(this,e)}}(i)),e}return i._value=t,i}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=ai(this.node(),n).tween,a=0,s=r.length;aQn&&n.state=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Bi;const n=10**e;return function(t){this._+=t[0];for(let e=1,i=t.length;eNi)if(Math.abs(h*o-l*c)>Ni&&r){let d=n-a,p=i-s,f=o*o+l*l,g=d*d+p*p,y=Math.sqrt(f),m=Math.sqrt(u),b=r*Math.tan((Li-Math.acos((f+u-g)/(2*y*m)))/2),_=b/m,x=b/y;Math.abs(_-1)>Ni&&this._append`L${t+_*c},${e+_*h}`,this._append`A${r},${r},0,0,${+(h*d>c*p)},${this._x1=t+x*o},${this._y1=e+x*l}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,n,i,r,a){if(t=+t,e=+e,a=!!a,(n=+n)<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),o=n*Math.sin(i),l=t+s,c=e+o,h=1^a,u=a?i-r:r-i;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>Ni||Math.abs(this._y1-c)>Ni)&&this._append`L${l},${c}`,n&&(u<0&&(u=u%Oi+Oi),u>Mi?this._append`A${n},${n},0,1,${h},${t-s},${e-o}A${n},${n},0,1,${h},${this._x1=l},${this._y1=c}`:u>Ni&&this._append`A${n},${n},0,${+(u>=Li)},${h},${this._x1=t+n*Math.cos(r)},${this._y1=e+n*Math.sin(r)}`)}rect(t,e,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Fi(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function Ri(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function $i(t){return(t=Ri(Math.abs(t)))?t[1]:NaN}var Pi,Yi=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ji(t){if(!(e=Yi.exec(t)))throw new Error("invalid format: "+t);var e;return new zi({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function zi(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Ui(t,e){var n=Ri(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}ji.prototype=zi.prototype,zi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Wi={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Ui(100*t,e),r:Ui,s:function(t,e){var n=Ri(t,e);if(!n)return t+"";var i=n[0],r=n[1],a=r-(Pi=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,s=i.length;return a===s?i:a>s?i+new Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+Ri(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Hi(t){return t}var qi,Vi,Gi,Xi=Array.prototype.map,Zi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Qi(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?Hi:(e=Xi.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var r=t.length,a=[],s=0,o=e[0],l=0;r>0&&o>0&&(l+o+1>i&&(o=Math.max(1,i-l)),a.push(t.substring(r-=o,r+o)),!((l+=o+1)>i));)o=e[s=(s+1)%e.length];return a.reverse().join(n)}),r=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?Hi:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Xi.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",h=void 0===t.nan?"NaN":t.nan+"";function u(t){var e=(t=ji(t)).fill,n=t.align,u=t.sign,d=t.symbol,p=t.zero,f=t.width,g=t.comma,y=t.precision,m=t.trim,b=t.type;"n"===b?(g=!0,b="g"):Wi[b]||(void 0===y&&(y=12),m=!0,b="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=");var _="$"===d?r:"#"===d&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===d?a:/[%p]/.test(b)?l:"",v=Wi[b],k=/[defgprs%]/.test(b);function w(t){var r,a,l,d=_,w=x;if("c"===b)w=v(t)+w,t="";else{var T=(t=+t)<0||1/t<0;if(t=isNaN(t)?h:v(Math.abs(t),y),m&&(t=function(t){t:for(var e,n=t.length,i=1,r=-1;i0&&(r=0)}return r>0?t.slice(0,r)+t.slice(e+1):t}(t)),T&&0==+t&&"+"!==u&&(T=!1),d=(T?"("===u?u:c:"-"===u||"("===u?"":u)+d,w=("s"===b?Zi[8+Pi/3]:"")+w+(T&&"("===u?")":""),k)for(r=-1,a=t.length;++r(l=t.charCodeAt(r))||l>57){w=(46===l?s+t.slice(r+1):t.slice(r))+w,t=t.slice(0,r);break}}g&&!p&&(t=i(t,1/0));var C=d.length+t.length+w.length,E=C>1)+d+t+w+E.slice(C);break;default:t=E+d+t+w}return o(t)}return y=void 0===y?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),w.toString=function(){return t+""},w}return{format:u,formatPrefix:function(t,e){var n=u(((t=ji(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor($i(e)/3))),r=Math.pow(10,-i),a=Zi[8+i/3];return function(t){return n(r*t)+a}}}}function Ki(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}qi=Qi({thousands:",",grouping:[3],currency:["$",""]}),Vi=qi.format,Gi=qi.formatPrefix;const Ji=Symbol("implicit");function tr(){var t=new m,e=[],n=[],i=Ji;function r(r){let a=t.get(r);if(void 0===a){if(i!==Ji)return i;t.set(r,a=e.push(r)-1)}return n[a%n.length]}return r.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new m;for(const i of n)t.has(i)||t.set(i,e.push(i)-1);return r},r.range=function(t){return arguments.length?(n=Array.from(t),r):n.slice()},r.unknown=function(t){return arguments.length?(i=t,r):i},r.copy=function(){return tr(e,n).unknown(i)},Ki.apply(r,arguments),r}function er(t){return+t}var nr=[0,1];function ir(t){return t}function rr(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function ar(t,e,n){var i=t[0],r=t[1],a=e[0],s=e[1];return re&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),i=l>2?sr:ar,r=a=null,u}function u(e){return null==e||isNaN(e=+e)?n:(r||(r=i(s.map(t),o,l)))(t(c(e)))}return u.invert=function(n){return c(e((a||(a=i(o,s.map(t),pn)))(n)))},u.domain=function(t){return arguments.length?(s=Array.from(t,er),h()):s.slice()},u.range=function(t){return arguments.length?(o=Array.from(t),h()):o.slice()},u.rangeRound=function(t){return o=Array.from(t),l=_n,h()},u.clamp=function(t){return arguments.length?(c=!!t||ir,h()):c!==ir},u.interpolate=function(t){return arguments.length?(l=t,h()):l},u.unknown=function(t){return arguments.length?(n=t,u):n},function(n,i){return t=n,e=i,h()}}function cr(){return lr()(ir,ir)}function hr(t,e,n,i){var r,a=C(t,e,n);switch((i=ji(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(r=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor($i(e)/3)))-$i(Math.abs(t)))}(a,s))||(i.precision=r),Gi(i,s);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(r=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,$i(e)-$i(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=r-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(r=function(t){return Math.max(0,-$i(Math.abs(t)))}(a))||(i.precision=r-2*("%"===i.type))}return Vi(i)}function ur(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){if(!((n=+n)>0))return[];if((t=+t)==(e=+e))return[t];const i=e=r))return[];const o=a-r+1,l=new Array(o);if(i)if(s<0)for(let t=0;t0;){if((r=T(l,c,n))===i)return a[s]=l,a[o]=c,e(a);if(r>0)l=Math.floor(l/r)*r,c=Math.ceil(c/r)*r;else{if(!(r<0))break;l=Math.ceil(l*r)/r,c=Math.floor(c*r)/r}i=r}return t},t}function dr(){var t=cr();return t.copy=function(){return or(t,dr())},Ki.apply(t,arguments),ur(t)}const pr=new Date,fr=new Date;function gr(t,e,n,i){function r(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return r.floor=e=>(t(e=new Date(+e)),e),r.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),r.round=t=>{const e=r(t),n=r.ceil(t);return t-e(e(t=new Date(+t),null==n?1:Math.floor(n)),t),r.range=(n,i,a)=>{const s=[];if(n=r.ceil(n),a=null==a?1:Math.floor(a),!(n0))return s;let o;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(ogr((e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),((t,i)=>{if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););})),n&&(r.count=(e,i)=>(pr.setTime(+e),fr.setTime(+i),t(pr),t(fr),Math.floor(n(pr,fr))),r.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(i?e=>i(e)%t==0:e=>r.count(0,e)%t==0):r:null)),r}const yr=gr((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));yr.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?gr((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t)):yr:null),yr.range;const mr=1e3,br=60*mr,_r=60*br,xr=24*_r,vr=7*xr,kr=30*xr,wr=365*xr,Tr=gr((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*mr)}),((t,e)=>(e-t)/mr),(t=>t.getUTCSeconds()));Tr.range;const Cr=gr((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mr)}),((t,e)=>{t.setTime(+t+e*br)}),((t,e)=>(e-t)/br),(t=>t.getMinutes()));Cr.range;const Er=gr((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*br)}),((t,e)=>(e-t)/br),(t=>t.getUTCMinutes()));Er.range;const Sr=gr((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mr-t.getMinutes()*br)}),((t,e)=>{t.setTime(+t+e*_r)}),((t,e)=>(e-t)/_r),(t=>t.getHours()));Sr.range;const Ar=gr((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*_r)}),((t,e)=>(e-t)/_r),(t=>t.getUTCHours()));Ar.range;const Dr=gr((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*br)/xr),(t=>t.getDate()-1));Dr.range;const Lr=gr((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/xr),(t=>t.getUTCDate()-1));Lr.range;const Or=gr((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/xr),(t=>Math.floor(t/xr)));function Nr(t){return gr((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*br)/vr))}Or.range;const Mr=Nr(0),Br=Nr(1),Ir=Nr(2),Fr=Nr(3),Rr=Nr(4),$r=Nr(5),Pr=Nr(6);function Yr(t){return gr((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/vr))}Mr.range,Br.range,Ir.range,Fr.range,Rr.range,$r.range,Pr.range;const jr=Yr(0),zr=Yr(1),Ur=Yr(2),Wr=Yr(3),Hr=Yr(4),qr=Yr(5),Vr=Yr(6);jr.range,zr.range,Ur.range,Wr.range,Hr.range,qr.range,Vr.range;const Gr=gr((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()));Gr.range;const Xr=gr((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()));Xr.range;const Zr=gr((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear()));Zr.every=t=>isFinite(t=Math.floor(t))&&t>0?gr((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,n)=>{e.setFullYear(e.getFullYear()+n*t)})):null,Zr.range;const Qr=gr((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));function Kr(t,e,n,i,r,a){const s=[[Tr,1,mr],[Tr,5,5*mr],[Tr,15,15*mr],[Tr,30,30*mr],[a,1,br],[a,5,5*br],[a,15,15*br],[a,30,30*br],[r,1,_r],[r,3,3*_r],[r,6,6*_r],[r,12,12*_r],[i,1,xr],[i,2,2*xr],[n,1,vr],[e,1,kr],[e,3,3*kr],[t,1,wr]];function o(e,n,i){const r=Math.abs(n-e)/i,a=p((([,,t])=>t)).right(s,r);if(a===s.length)return t.every(C(e/wr,n/wr,i));if(0===a)return yr.every(Math.max(C(e,n,i),1));const[o,l]=s[r/s[a-1][2]isFinite(t=Math.floor(t))&&t>0?gr((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null,Qr.range,Kr(Qr,Xr,jr,Or,Ar,Er);const[Jr,ta]=Kr(Zr,Gr,Mr,Dr,Sr,Cr);function ea(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function na(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ia(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var ra,aa,sa={"-":"",_:" ",0:"0"},oa=/^\s*\d+/,la=/^%/,ca=/[\\^$*+?|[\]().{}]/g;function ha(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",a=r.length;return i+(a[t.toLowerCase(),e])))}function fa(t,e,n){var i=oa.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function ga(t,e,n){var i=oa.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function ya(t,e,n){var i=oa.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function ma(t,e,n){var i=oa.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function ba(t,e,n){var i=oa.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function _a(t,e,n){var i=oa.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function xa(t,e,n){var i=oa.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function va(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function ka(t,e,n){var i=oa.exec(e.slice(n,n+1));return i?(t.q=3*i[0]-3,n+i[0].length):-1}function wa(t,e,n){var i=oa.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function Ta(t,e,n){var i=oa.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function Ca(t,e,n){var i=oa.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function Ea(t,e,n){var i=oa.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function Sa(t,e,n){var i=oa.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function Aa(t,e,n){var i=oa.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Da(t,e,n){var i=oa.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function La(t,e,n){var i=oa.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function Oa(t,e,n){var i=la.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function Na(t,e,n){var i=oa.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function Ma(t,e,n){var i=oa.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function Ba(t,e){return ha(t.getDate(),e,2)}function Ia(t,e){return ha(t.getHours(),e,2)}function Fa(t,e){return ha(t.getHours()%12||12,e,2)}function Ra(t,e){return ha(1+Dr.count(Zr(t),t),e,3)}function $a(t,e){return ha(t.getMilliseconds(),e,3)}function Pa(t,e){return $a(t,e)+"000"}function Ya(t,e){return ha(t.getMonth()+1,e,2)}function ja(t,e){return ha(t.getMinutes(),e,2)}function za(t,e){return ha(t.getSeconds(),e,2)}function Ua(t){var e=t.getDay();return 0===e?7:e}function Wa(t,e){return ha(Mr.count(Zr(t)-1,t),e,2)}function Ha(t){var e=t.getDay();return e>=4||0===e?Rr(t):Rr.ceil(t)}function qa(t,e){return t=Ha(t),ha(Rr.count(Zr(t),t)+(4===Zr(t).getDay()),e,2)}function Va(t){return t.getDay()}function Ga(t,e){return ha(Br.count(Zr(t)-1,t),e,2)}function Xa(t,e){return ha(t.getFullYear()%100,e,2)}function Za(t,e){return ha((t=Ha(t)).getFullYear()%100,e,2)}function Qa(t,e){return ha(t.getFullYear()%1e4,e,4)}function Ka(t,e){var n=t.getDay();return ha((t=n>=4||0===n?Rr(t):Rr.ceil(t)).getFullYear()%1e4,e,4)}function Ja(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+ha(e/60|0,"0",2)+ha(e%60,"0",2)}function ts(t,e){return ha(t.getUTCDate(),e,2)}function es(t,e){return ha(t.getUTCHours(),e,2)}function ns(t,e){return ha(t.getUTCHours()%12||12,e,2)}function is(t,e){return ha(1+Lr.count(Qr(t),t),e,3)}function rs(t,e){return ha(t.getUTCMilliseconds(),e,3)}function as(t,e){return rs(t,e)+"000"}function ss(t,e){return ha(t.getUTCMonth()+1,e,2)}function os(t,e){return ha(t.getUTCMinutes(),e,2)}function ls(t,e){return ha(t.getUTCSeconds(),e,2)}function cs(t){var e=t.getUTCDay();return 0===e?7:e}function hs(t,e){return ha(jr.count(Qr(t)-1,t),e,2)}function us(t){var e=t.getUTCDay();return e>=4||0===e?Hr(t):Hr.ceil(t)}function ds(t,e){return t=us(t),ha(Hr.count(Qr(t),t)+(4===Qr(t).getUTCDay()),e,2)}function ps(t){return t.getUTCDay()}function fs(t,e){return ha(zr.count(Qr(t)-1,t),e,2)}function gs(t,e){return ha(t.getUTCFullYear()%100,e,2)}function ys(t,e){return ha((t=us(t)).getUTCFullYear()%100,e,2)}function ms(t,e){return ha(t.getUTCFullYear()%1e4,e,4)}function bs(t,e){var n=t.getUTCDay();return ha((t=n>=4||0===n?Hr(t):Hr.ceil(t)).getUTCFullYear()%1e4,e,4)}function _s(){return"+0000"}function xs(){return"%"}function vs(t){return+t}function ks(t){return Math.floor(+t/1e3)}function ws(t){return new Date(t)}function Ts(t){return t instanceof Date?+t:+new Date(+t)}function Cs(t,e,n,i,r,a,s,o,l,c){var h=cr(),u=h.invert,d=h.domain,p=c(".%L"),f=c(":%S"),g=c("%I:%M"),y=c("%I %p"),m=c("%a %d"),b=c("%b %d"),_=c("%B"),x=c("%Y");function v(t){return(l(t)=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:vs,s:ks,S:za,u:Ua,U:Wa,V:qa,w:Va,W:Ga,x:null,X:null,y:Xa,Y:Qa,Z:Ja,"%":xs},x={a:function(t){return s[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return o[t.getUTCMonth()]},c:null,d:ts,e:ts,f:as,g:ys,G:bs,H:es,I:ns,j:is,L:rs,m:ss,M:os,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:vs,s:ks,S:ls,u:cs,U:hs,V:ds,w:ps,W:fs,x:null,X:null,y:gs,Y:ms,Z:_s,"%":xs},v={a:function(t,e,n){var i=p.exec(e.slice(n));return i?(t.w=f.get(i[0].toLowerCase()),n+i[0].length):-1},A:function(t,e,n){var i=u.exec(e.slice(n));return i?(t.w=d.get(i[0].toLowerCase()),n+i[0].length):-1},b:function(t,e,n){var i=m.exec(e.slice(n));return i?(t.m=b.get(i[0].toLowerCase()),n+i[0].length):-1},B:function(t,e,n){var i=g.exec(e.slice(n));return i?(t.m=y.get(i[0].toLowerCase()),n+i[0].length):-1},c:function(t,n,i){return T(t,e,n,i)},d:Ta,e:Ta,f:La,g:xa,G:_a,H:Ea,I:Ea,j:Ca,L:Da,m:wa,M:Sa,p:function(t,e,n){var i=c.exec(e.slice(n));return i?(t.p=h.get(i[0].toLowerCase()),n+i[0].length):-1},q:ka,Q:Na,s:Ma,S:Aa,u:ga,U:ya,V:ma,w:fa,W:ba,x:function(t,e,i){return T(t,n,e,i)},X:function(t,e,n){return T(t,i,e,n)},y:xa,Y:_a,Z:va,"%":Oa};function k(t,e){return function(n){var i,r,a,s=[],o=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++o53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=na(ia(a.y,0,1))).getUTCDay(),i=r>4||0===r?zr.ceil(i):zr(i),i=Lr.offset(i,7*(a.V-1)),a.y=i.getUTCFullYear(),a.m=i.getUTCMonth(),a.d=i.getUTCDate()+(a.w+6)%7):(r=(i=ea(ia(a.y,0,1))).getDay(),i=r>4||0===r?Br.ceil(i):Br(i),i=Dr.offset(i,7*(a.V-1)),a.y=i.getFullYear(),a.m=i.getMonth(),a.d=i.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),r="Z"in a?na(ia(a.y,0,1)).getUTCDay():ea(ia(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(r+5)%7:a.w+7*a.U-(r+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,na(a)):ea(a)}}function T(t,e,n,i){for(var r,a,s=0,o=e.length,l=n.length;s=l)return-1;if(37===(r=e.charCodeAt(s++))){if(r=e.charAt(s++),!(a=v[r in sa?e.charAt(s++):r])||(i=a(t,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return _.x=k(n,_),_.X=k(i,_),_.c=k(e,_),x.x=k(n,x),x.X=k(i,x),x.c=k(e,x),{format:function(t){var e=k(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=w(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=k(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=w(t+="",!0);return e.toString=function(){return t},e}}}(t),aa=ra.format,ra.parse,ra.utcFormat,ra.utcParse}({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"]});const As=Math.abs,Ds=Math.atan2,Ls=Math.cos,Os=Math.max,Ns=Math.min,Ms=Math.sin,Bs=Math.sqrt,Is=1e-12,Fs=Math.PI,Rs=Fs/2,$s=2*Fs;function Ps(t){return t>=1?Rs:t<=-1?-Rs:Math.asin(t)}function Ys(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new Ii(e)}function js(t){return t.innerRadius}function zs(t){return t.outerRadius}function Us(t){return t.startAngle}function Ws(t){return t.endAngle}function Hs(t){return t&&t.padAngle}function qs(t,e,n,i,r,a,s){var o=t-n,l=e-i,c=(s?a:-a)/Bs(o*o+l*l),h=c*l,u=-c*o,d=t+h,p=e+u,f=n+h,g=i+u,y=(d+f)/2,m=(p+g)/2,b=f-d,_=g-p,x=b*b+_*_,v=r-a,k=d*g-f*p,w=(_<0?-1:1)*Bs(Os(0,v*v*x-k*k)),T=(k*_-b*w)/x,C=(-k*b-_*w)/x,E=(k*_+b*w)/x,S=(-k*b+_*w)/x,A=T-y,D=C-m,L=E-y,O=S-m;return A*A+D*D>L*L+O*O&&(T=E,C=S),{cx:T,cy:C,x01:-h,y01:-u,x11:T*(r/v-1),y11:C*(r/v-1)}}function Vs(){var t=js,e=zs,n=Ss(0),i=null,r=Us,a=Ws,s=Hs,o=null,l=Ys(c);function c(){var c,h,u=+t.apply(this,arguments),d=+e.apply(this,arguments),p=r.apply(this,arguments)-Rs,f=a.apply(this,arguments)-Rs,g=As(f-p),y=f>p;if(o||(o=c=l()),dIs)if(g>$s-Is)o.moveTo(d*Ls(p),d*Ms(p)),o.arc(0,0,d,p,f,!y),u>Is&&(o.moveTo(u*Ls(f),u*Ms(f)),o.arc(0,0,u,f,p,y));else{var m,b,_=p,x=f,v=p,k=f,w=g,T=g,C=s.apply(this,arguments)/2,E=C>Is&&(i?+i.apply(this,arguments):Bs(u*u+d*d)),S=Ns(As(d-u)/2,+n.apply(this,arguments)),A=S,D=S;if(E>Is){var L=Ps(E/u*Ms(C)),O=Ps(E/d*Ms(C));(w-=2*L)>Is?(v+=L*=y?1:-1,k-=L):(w=0,v=k=(p+f)/2),(T-=2*O)>Is?(_+=O*=y?1:-1,x-=O):(T=0,_=x=(p+f)/2)}var N=d*Ls(_),M=d*Ms(_),B=u*Ls(k),I=u*Ms(k);if(S>Is){var F,R=d*Ls(x),$=d*Ms(x),P=u*Ls(v),Y=u*Ms(v);if(g1?0:t<-1?Fs:Math.acos(t)}((j*U+z*W)/(Bs(j*j+z*z)*Bs(U*U+W*W)))/2),q=Bs(F[0]*F[0]+F[1]*F[1]);A=Ns(S,(u-q)/(H-1)),D=Ns(S,(d-q)/(H+1))}else A=D=0}T>Is?D>Is?(m=qs(P,Y,N,M,d,D,y),b=qs(R,$,B,I,d,D,y),o.moveTo(m.cx+m.x01,m.cy+m.y01),DIs&&w>Is?A>Is?(m=qs(B,I,R,$,u,-A,y),b=qs(N,M,P,Y,u,-A,y),o.lineTo(m.cx+m.x01,m.cy+m.y01),At?1:e>=t?0:NaN}function eo(t){return t}function no(){}function io(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function ro(t){this._context=t}function ao(t){return new ro(t)}function so(t){this._context=t}function oo(t){this._context=t}function lo(t){this._context=t}function co(t){return t<0?-1:1}function ho(t,e,n){var i=t._x1-t._x0,r=e-t._x1,a=(t._y1-t._y0)/(i||r<0&&-0),s=(n-t._y1)/(r||i<0&&-0),o=(a*r+s*i)/(i+r);return(co(a)+co(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(o))||0}function uo(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function po(t,e,n){var i=t._x0,r=t._y0,a=t._x1,s=t._y1,o=(a-i)/3;t._context.bezierCurveTo(i+o,r+o*e,a-o,s-o*n,a,s)}function fo(t){this._context=t}function go(t){this._context=new yo(t)}function yo(t){this._context=t}function mo(t){this._context=t}function bo(t){var e,n,i=t.length-1,r=new Array(i),a=new Array(i),s=new Array(i);for(r[0]=0,a[0]=2,s[0]=t[0]+2*t[1],e=1;e=0;--e)r[e]=(s[e]-r[e+1])/a[e];for(a[i-1]=(t[i]+r[i-1])/2,e=0;et.length)&&(e=t.length);for(var n=0,i=new Array(e);n=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},xo.prototype={constructor:xo,scale:function(t){return 1===t?this:new xo(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new xo(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new xo(1,0,0),xo.prototype;var Eo=Object.hasOwnProperty,So=Object.setPrototypeOf,Ao=Object.isFrozen,Do=Object.getPrototypeOf,Lo=Object.getOwnPropertyDescriptor,Oo=Object.freeze,No=Object.seal,Mo=Object.create,Bo="undefined"!=typeof Reflect&&Reflect,Io=Bo.apply,Fo=Bo.construct;Io||(Io=function(t,e,n){return t.apply(e,n)}),Oo||(Oo=function(t){return t}),No||(No=function(t){return t}),Fo||(Fo=function(t,e){return wo(t,To(e))});var Ro,$o=Xo(Array.prototype.forEach),Po=Xo(Array.prototype.pop),Yo=Xo(Array.prototype.push),jo=Xo(String.prototype.toLowerCase),zo=Xo(String.prototype.toString),Uo=Xo(String.prototype.match),Wo=Xo(String.prototype.replace),Ho=Xo(String.prototype.indexOf),qo=Xo(String.prototype.trim),Vo=Xo(RegExp.prototype.test),Go=(Ro=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n1?n-1:0),r=1;r/gm),dl=No(/\${[\w\W]*}/gm),pl=No(/^data-[\-\w.\u00B7-\uFFFF]/),fl=No(/^aria-[\-\w]+$/),gl=No(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),yl=No(/^(?:\w+script|data):/i),ml=No(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bl=No(/^html$/i),_l=function(){return"undefined"==typeof window?null:window},xl=function(t,e){if("object"!==vo(t)||"function"!=typeof t.createPolicy)return null;var n=null,i="data-tt-policy-suffix";e.currentScript&&e.currentScript.hasAttribute(i)&&(n=e.currentScript.getAttribute(i));var r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};var vl=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_l(),n=function(e){return t(e)};if(n.version="2.4.1",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var i=e.document,r=e.document,a=e.DocumentFragment,s=e.HTMLTemplateElement,o=e.Node,l=e.Element,c=e.NodeFilter,h=e.NamedNodeMap,u=void 0===h?e.NamedNodeMap||e.MozNamedAttrMap:h,d=e.HTMLFormElement,p=e.DOMParser,f=e.trustedTypes,g=l.prototype,y=Ko(g,"cloneNode"),m=Ko(g,"nextSibling"),b=Ko(g,"childNodes"),_=Ko(g,"parentNode");if("function"==typeof s){var x=r.createElement("template");x.content&&x.content.ownerDocument&&(r=x.content.ownerDocument)}var v=xl(f,i),k=v?v.createHTML(""):"",w=r,T=w.implementation,C=w.createNodeIterator,E=w.createDocumentFragment,S=w.getElementsByTagName,A=i.importNode,D={};try{D=Qo(r).documentMode?r.documentMode:{}}catch(t){}var L={};n.isSupported="function"==typeof _&&T&&void 0!==T.createHTMLDocument&&9!==D;var O,N,M=hl,B=ul,I=dl,F=pl,R=fl,$=yl,P=ml,Y=gl,j=null,z=Zo({},[].concat(To(Jo),To(tl),To(el),To(il),To(al))),U=null,W=Zo({},[].concat(To(sl),To(ol),To(ll),To(cl))),H=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,V=null,G=!0,X=!0,Z=!1,Q=!1,K=!1,J=!1,tt=!1,et=!1,nt=!1,it=!1,rt=!0,at=!1,st=!0,ot=!1,lt={},ct=null,ht=Zo({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ut=null,dt=Zo({},["audio","video","img","source","image","track"]),pt=null,ft=Zo({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gt="http://www.w3.org/1998/Math/MathML",yt="http://www.w3.org/2000/svg",mt="http://www.w3.org/1999/xhtml",bt=mt,_t=!1,xt=null,vt=Zo({},[gt,yt,mt],zo),kt=["application/xhtml+xml","text/html"],wt=null,Tt=r.createElement("form"),Ct=function(t){return t instanceof RegExp||t instanceof Function},Et=function(t){wt&&wt===t||(t&&"object"===vo(t)||(t={}),t=Qo(t),O=O=-1===kt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,N="application/xhtml+xml"===O?zo:jo,j="ALLOWED_TAGS"in t?Zo({},t.ALLOWED_TAGS,N):z,U="ALLOWED_ATTR"in t?Zo({},t.ALLOWED_ATTR,N):W,xt="ALLOWED_NAMESPACES"in t?Zo({},t.ALLOWED_NAMESPACES,zo):vt,pt="ADD_URI_SAFE_ATTR"in t?Zo(Qo(ft),t.ADD_URI_SAFE_ATTR,N):ft,ut="ADD_DATA_URI_TAGS"in t?Zo(Qo(dt),t.ADD_DATA_URI_TAGS,N):dt,ct="FORBID_CONTENTS"in t?Zo({},t.FORBID_CONTENTS,N):ht,q="FORBID_TAGS"in t?Zo({},t.FORBID_TAGS,N):{},V="FORBID_ATTR"in t?Zo({},t.FORBID_ATTR,N):{},lt="USE_PROFILES"in t&&t.USE_PROFILES,G=!1!==t.ALLOW_ARIA_ATTR,X=!1!==t.ALLOW_DATA_ATTR,Z=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=t.SAFE_FOR_TEMPLATES||!1,K=t.WHOLE_DOCUMENT||!1,et=t.RETURN_DOM||!1,nt=t.RETURN_DOM_FRAGMENT||!1,it=t.RETURN_TRUSTED_TYPE||!1,tt=t.FORCE_BODY||!1,rt=!1!==t.SANITIZE_DOM,at=t.SANITIZE_NAMED_PROPS||!1,st=!1!==t.KEEP_CONTENT,ot=t.IN_PLACE||!1,Y=t.ALLOWED_URI_REGEXP||Y,bt=t.NAMESPACE||mt,t.CUSTOM_ELEMENT_HANDLING&&Ct(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Ct(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(X=!1),nt&&(et=!0),lt&&(j=Zo({},To(al)),U=[],!0===lt.html&&(Zo(j,Jo),Zo(U,sl)),!0===lt.svg&&(Zo(j,tl),Zo(U,ol),Zo(U,cl)),!0===lt.svgFilters&&(Zo(j,el),Zo(U,ol),Zo(U,cl)),!0===lt.mathMl&&(Zo(j,il),Zo(U,ll),Zo(U,cl))),t.ADD_TAGS&&(j===z&&(j=Qo(j)),Zo(j,t.ADD_TAGS,N)),t.ADD_ATTR&&(U===W&&(U=Qo(U)),Zo(U,t.ADD_ATTR,N)),t.ADD_URI_SAFE_ATTR&&Zo(pt,t.ADD_URI_SAFE_ATTR,N),t.FORBID_CONTENTS&&(ct===ht&&(ct=Qo(ct)),Zo(ct,t.FORBID_CONTENTS,N)),st&&(j["#text"]=!0),K&&Zo(j,["html","head","body"]),j.table&&(Zo(j,["tbody"]),delete q.tbody),Oo&&Oo(t),wt=t)},St=Zo({},["mi","mo","mn","ms","mtext"]),At=Zo({},["foreignobject","desc","title","annotation-xml"]),Dt=Zo({},["title","style","font","a","script"]),Lt=Zo({},tl);Zo(Lt,el),Zo(Lt,nl);var Ot=Zo({},il);Zo(Ot,rl);var Nt=function(t){Yo(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=k}catch(e){t.remove()}}},Mt=function(t,e){try{Yo(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){Yo(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!U[t])if(et||nt)try{Nt(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},Bt=function(t){var e,n;if(tt)t=""+t;else{var i=Uo(t,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===O&&bt===mt&&(t=''+t+"");var a=v?v.createHTML(t):t;if(bt===mt)try{e=(new p).parseFromString(a,O)}catch(t){}if(!e||!e.documentElement){e=T.createDocument(bt,"template",null);try{e.documentElement.innerHTML=_t?"":a}catch(t){}}var s=e.body||e.documentElement;return t&&n&&s.insertBefore(r.createTextNode(n),s.childNodes[0]||null),bt===mt?S.call(e,K?"html":"body")[0]:K?e.documentElement:s},It=function(t){return C.call(t.ownerDocument||t,t,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Ft=function(t){return"object"===vo(o)?t instanceof o:t&&"object"===vo(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Rt=function(t,e,i){L[t]&&$o(L[t],(function(t){t.call(n,e,i,wt)}))},$t=function(t){var e,i;if(Rt("beforeSanitizeElements",t,null),(i=t)instanceof d&&("string"!=typeof i.nodeName||"string"!=typeof i.textContent||"function"!=typeof i.removeChild||!(i.attributes instanceof u)||"function"!=typeof i.removeAttribute||"function"!=typeof i.setAttribute||"string"!=typeof i.namespaceURI||"function"!=typeof i.insertBefore||"function"!=typeof i.hasChildNodes))return Nt(t),!0;if(Vo(/[\u0080-\uFFFF]/,t.nodeName))return Nt(t),!0;var r=N(t.nodeName);if(Rt("uponSanitizeElement",t,{tagName:r,allowedTags:j}),t.hasChildNodes()&&!Ft(t.firstElementChild)&&(!Ft(t.content)||!Ft(t.content.firstElementChild))&&Vo(/<[/\w]/g,t.innerHTML)&&Vo(/<[/\w]/g,t.textContent))return Nt(t),!0;if("select"===r&&Vo(/