andoncloud-metrics-pie-chart-widget 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- var e=require("react"),t=require("andoncloud-dashboard-toolkit"),n=require("andoncloud-widget-base"),r=require("react-i18next"),i=require("@mui/lab"),a=require("@mui/material"),s=require("react-dom"),o=require("react/jsx-runtime");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,t}var l=/*#__PURE__*/u(e),f=/*#__PURE__*/c(e);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(null,arguments)}var h={en:{translation:{Loading:"Loading",Workplace:"Workplace",Metrics:"Metrics","Choose workplace":"Choose workplace","Select and arrange the order":"Select and arrange the order",Cancel:"Cancel",Save:"Save",Settings:"Settings"}},pl:{translation:{Loading:"Wczytywanie",Workplace:"Stanowisko",Metrics:"Metryki","Choose workplace":"Wybierz stanowisko","Select and arrange the order":"Wybierz i ustal kolejność",Cancel:"Anuluj",Save:"Zapisz",Settings:"Ustawienia"}}},p="1.2.3",m=function(n){var s,o,u=n.data,c=n.formProps,f=e.useState("1"),d=f[0],h=f[1],p=r.useTranslation().t;return l.default.createElement(i.TabContext,{value:d},l.default.createElement(a.Box,{sx:{borderBottom:1,borderColor:"divider"}},l.default.createElement(i.TabList,{onChange:function(e,t){h(t)}},l.default.createElement(a.Tab,{label:p("Workplace"),value:"1"}),l.default.createElement(a.Tab,{label:p("Metrics"),value:"2"}))),l.default.createElement(i.TabPanel,{value:"1"},l.default.createElement(a.FormControl,{fullWidth:!0},l.default.createElement(a.InputLabel,{id:"workplace-select-label"},p("Workplace")),l.default.createElement(a.Select,{name:"workplaceId",labelId:"workplace-select-label",value:c.values.workplaceId||"",onChange:c.handleChange,fullWidth:!0},null==(s=u.workplaces)?void 0:s.map(function(e){return l.default.createElement(a.MenuItem,{key:e.id,value:e.id},e.name)})))),l.default.createElement(i.TabPanel,{value:"2"},l.default.createElement(t.SortableSelect,{placeholder:p("Select and arrange the order")+"...",options:null==(o=u.metrics)?void 0:o.map(function(e){return{label:e.name,value:e.id}}),selected:c.values.metricIds,onChange:function(e){return c.setFieldValue("metricIds",[].concat(e))}})))},g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function b(e){var t={exports:{}};return e(t,t.exports),t.exports}var y=b(function(e,t){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function d(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return Et(e,t,n,r,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){var t=null,r=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(t=p(e),r=n.call(t.parsedDateParts,function(e){return null!=e}),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function g(e){var t=h(NaN);return null!=e?d(p(t),e):p(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=r.momentProperties=[],y=!1;function _(e,t){var n,r,i,a=b.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=p(t)),u(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)u(i=t[r=b[n]])||(e[r]=i);return e}function v(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,r.updateOffset(this),y=!1)}function x(e){return e instanceof v||null!=e&&null!=e._isAMomentObject}function w(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(e,t){var n=!0;return d(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,a,o,u=[],c=arguments.length;for(a=0;a<c;a++){if(i="","object"==typeof arguments[a]){for(o in i+="\n["+a+"] ",arguments[0])s(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[a];u.push(i)}w(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var M,S={};function O(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),S[e]||(w(t),S[e]=!0)}function T(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function A(e,t){var n,r=d({},e);for(n in t)s(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&a(e[n])&&(r[n]=d({},r[n]));return r}function C(e){null!=e&&this.set(e)}function D(e,t,n){var r=""+Math.abs(e);return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,M=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var R=/(\[[^\[]*\])|(\\)?([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,j=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},E={};function F(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(E[e]=i),t&&(E[t[0]]=function(){return D(i.apply(this,arguments),t[1],t[2])}),n&&(E[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function P(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function N(e,t){return e.isValid()?(t=Y(t,e.localeData()),L[t]=L[t]||function(e){var t,n,r=e.match(R);for(t=0,n=r.length;t<n;t++)r[t]=E[r[t]]?E[r[t]]:P(r[t]);return function(t){var i,a="";for(i=0;i<n;i++)a+=T(r[i])?r[i].call(t,e):r[i];return a}}(t),L[t](e)):e.localeData().invalidDate()}function Y(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(j.lastIndex=0;n>=0&&j.test(e);)e=e.replace(j,r),j.lastIndex=0,n-=1;return e}var I={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 $(e){return"string"==typeof e?I[e]||I[e.toLowerCase()]:void 0}function z(e){var t,n,r={};for(n in e)s(e,n)&&(t=$(n))&&(r[t]=e[n]);return r}var W,V={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},U=/\d/,H=/\d\d/,q=/\d{3}/,G=/\d{4}/,B=/[+-]?\d{6}/,Z=/\d\d?/,Q=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,J=/\d{1,3}/,K=/\d{1,4}/,ee=/[+-]?\d{1,6}/,te=/\d+/,ne=/[+-]?\d+/,re=/Z|[+-]\d\d:?\d\d/gi,ie=/Z|[+-]\d\d(?::?\d\d)?/gi,ae=/[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,se=/^[1-9]\d?/,oe=/^([1-9]\d|\d)/;function ue(e,t,n){W[e]=T(t)?t:function(e,r){return e&&n?n:t}}function ce(e,t){return s(W,e)?W[e](t._strict,t._locale):new RegExp(function(e){return le(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}(e))}function le(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function fe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function de(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=fe(t)),n}W={};var he={};function pe(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),c(t)&&(i=function(e,n){n[t]=de(e)}),r=e.length,n=0;n<r;n++)he[e[n]]=i}function me(e,t){pe(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function ge(e,t,n){null!=t&&s(he,e)&&he[e](t,n._a,n,e)}function be(e){return e%4==0&&e%100!=0||e%400==0}var ye=0,_e=1,ve=2,xe=3,we=4,ke=5,Me=6,Se=7,Oe=8;function Te(e){return be(e)?366:365}F("Y",0,0,function(){var e=this.year();return e<=9999?D(e,4):"+"+e}),F(0,["YY",2],0,function(){return this.year()%100}),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),ue("Y",ne),ue("YY",Z,H),ue("YYYY",K,G),ue("YYYYY",ee,B),ue("YYYYYY",ee,B),pe(["YYYYY","YYYYYY"],ye),pe("YYYY",function(e,t){t[ye]=2===e.length?r.parseTwoDigitYear(e):de(e)}),pe("YY",function(e,t){t[ye]=r.parseTwoDigitYear(e)}),pe("Y",function(e,t){t[ye]=parseInt(e,10)}),r.parseTwoDigitYear=function(e){return de(e)+(de(e)>68?1900:2e3)};var Ae,Ce=De("FullYear",!0);function De(e,t){return function(n){return null!=n?(je(this,e,n),r.updateOffset(this,t),this):Re(this,e)}}function Re(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 je(e,t,n){var r,i,a,s,o;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,s=e.month(),o=29!==(o=e.date())||1!==s||be(a)?o:28,i?r.setUTCFullYear(a,s,o):r.setFullYear(a,s,o)}}function Le(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=function(e){return(e%12+12)%12}(t);return e+=(t-n)/12,1===n?be(e)?29:28:31-n%7%2}Ae=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},F("M",["MM",2],"Mo",function(){return this.month()+1}),F("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),F("MMMM",0,0,function(e){return this.localeData().months(this,e)}),ue("M",Z,se),ue("MM",Z,H),ue("MMM",function(e,t){return t.monthsShortRegex(e)}),ue("MMMM",function(e,t){return t.monthsRegex(e)}),pe(["M","MM"],function(e,t){t[_e]=de(e)-1}),pe(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[_e]=i:p(n).invalidMonth=e});var Ee="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Fe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Pe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ne=ae,Ye=ae;function Ie(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ae.call(this._shortMonthsParse,s))?i:null:-1!==(i=Ae.call(this._longMonthsParse,s))?i:null:"MMM"===t?-1!==(i=Ae.call(this._shortMonthsParse,s))||-1!==(i=Ae.call(this._longMonthsParse,s))?i:null:-1!==(i=Ae.call(this._longMonthsParse,s))||-1!==(i=Ae.call(this._shortMonthsParse,s))?i:null}function $e(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=de(t);else if(!c(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,Le(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function ze(e){return null!=e?($e(this,e),r.updateOffset(this,!0),this):Re(this,"Month")}function We(){function e(e,t){return t.length-e.length}var t,n,r,i,a=[],s=[],o=[];for(t=0;t<12;t++)n=h([2e3,t]),r=le(this.monthsShort(n,"")),i=le(this.months(n,"")),a.push(r),s.push(i),o.push(i),o.push(r);a.sort(e),s.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ve(e,t,n,r,i,a,s){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,r,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,r,i,a,s),o}function Ue(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[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 He(e,t,n){var r=7+t-n;return-(7+Ue(e,0,r).getUTCDay()-t)%7+r-1}function qe(e,t,n,r,i){var a,s,o=1+7*(t-1)+(7+n-r)%7+He(e,r,i);return o<=0?s=Te(a=e-1)+o:o>Te(e)?(a=e+1,s=o-Te(e)):(a=e,s=o),{year:a,dayOfYear:s}}function Ge(e,t,n){var r,i,a=He(e.year(),t,n),s=Math.floor((e.dayOfYear()-a-1)/7)+1;return s<1?r=s+Be(i=e.year()-1,t,n):s>Be(e.year(),t,n)?(r=s-Be(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function Be(e,t,n){var r=He(e,t,n),i=He(e+1,t,n);return(Te(e)-r+i)/7}function Ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),ue("w",Z,se),ue("ww",Z,H),ue("W",Z,se),ue("WW",Z,H),me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=de(e)}),F("d",0,"do","day"),F("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),F("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),F("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),ue("d",Z),ue("e",Z),ue("E",Z),ue("dd",function(e,t){return t.weekdaysMinRegex(e)}),ue("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ue("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,r){t[r]=de(e)});var Qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Je="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ke=ae,et=ae,tt=ae;function nt(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=h([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?"dddd"===t?-1!==(i=Ae.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ae.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Ae.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=Ae.call(this._weekdaysParse,s))||-1!==(i=Ae.call(this._shortWeekdaysParse,s))||-1!==(i=Ae.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ae.call(this._shortWeekdaysParse,s))||-1!==(i=Ae.call(this._weekdaysParse,s))||-1!==(i=Ae.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Ae.call(this._minWeekdaysParse,s))||-1!==(i=Ae.call(this._weekdaysParse,s))||-1!==(i=Ae.call(this._shortWeekdaysParse,s))?i:null}function rt(){function e(e,t){return t.length-e.length}var t,n,r,i,a,s=[],o=[],u=[],c=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=le(this.weekdaysMin(n,"")),i=le(this.weekdaysShort(n,"")),a=le(this.weekdays(n,"")),s.push(r),o.push(i),u.push(a),c.push(r),c.push(i),c.push(a);s.sort(e),o.sort(e),u.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function it(){return this.hours()%12||12}function at(e,t){F(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function st(e,t){return t._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,it),F("k",["kk",2],0,function(){return this.hours()||24}),F("hmm",0,0,function(){return""+it.apply(this)+D(this.minutes(),2)}),F("hmmss",0,0,function(){return""+it.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)}),F("Hmm",0,0,function(){return""+this.hours()+D(this.minutes(),2)}),F("Hmmss",0,0,function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)}),at("a",!0),at("A",!1),ue("a",st),ue("A",st),ue("H",Z,oe),ue("h",Z,se),ue("k",Z,se),ue("HH",Z,H),ue("hh",Z,H),ue("kk",Z,H),ue("hmm",Q),ue("hmmss",X),ue("Hmm",Q),ue("Hmmss",X),pe(["H","HH"],xe),pe(["k","kk"],function(e,t,n){var r=de(e);t[xe]=24===r?0:r}),pe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pe(["h","hh"],function(e,t,n){t[xe]=de(e),p(n).bigHour=!0}),pe("hmm",function(e,t,n){var r=e.length-2;t[xe]=de(e.substr(0,r)),t[we]=de(e.substr(r)),p(n).bigHour=!0}),pe("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[xe]=de(e.substr(0,r)),t[we]=de(e.substr(r,2)),t[ke]=de(e.substr(i)),p(n).bigHour=!0}),pe("Hmm",function(e,t,n){var r=e.length-2;t[xe]=de(e.substr(0,r)),t[we]=de(e.substr(r))}),pe("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[xe]=de(e.substr(0,r)),t[we]=de(e.substr(r,2)),t[ke]=de(e.substr(i))});var ot,ut=De("Hours",!0),ct={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:Ee,monthsShort:Fe,week:{dow:0,doy:6},weekdays:Qe,weekdaysMin:Je,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},lt={},ft={};function dt(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 ht(e){return e?e.toLowerCase().replace("_","-"):e}function pt(t){var n=null;if(void 0===lt[t]&&e&&e.exports&&function(e){return!(!e||!e.match("^[^/\\\\]*$"))}(t))try{n=ot._abbr,function(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.')}("./locale/"+t),mt(n)}catch(e){lt[t]=null}return lt[t]}function mt(e,t){var n;return e&&((n=u(t)?bt(e):gt(e,t))?ot=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ot._abbr}function gt(e,t){if(null!==t){var n,r=ct;if(t.abbr=e,null!=lt[e])O("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=lt[e]._config;else if(null!=t.parentLocale)if(null!=lt[t.parentLocale])r=lt[t.parentLocale]._config;else{if(null==(n=pt(t.parentLocale)))return ft[t.parentLocale]||(ft[t.parentLocale]=[]),ft[t.parentLocale].push({name:e,config:t}),null;r=n._config}return lt[e]=new C(A(r,t)),ft[e]&&ft[e].forEach(function(e){gt(e.name,e.config)}),mt(e),lt[e]}return delete lt[e],null}function bt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ot;if(!i(e)){if(t=pt(e))return t;e=[e]}return function(e){for(var t,n,r,i,a=0;a<e.length;){for(t=(i=ht(e[a]).split("-")).length,n=(n=ht(e[a+1]))?n.split("-"):null;t>0;){if(r=pt(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&dt(i,n)>=t-1)break;t--}a++}return ot}(e)}function yt(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[_e]<0||n[_e]>11?_e:n[ve]<1||n[ve]>Le(n[ye],n[_e])?ve:n[xe]<0||n[xe]>24||24===n[xe]&&(0!==n[we]||0!==n[ke]||0!==n[Me])?xe:n[we]<0||n[we]>59?we:n[ke]<0||n[ke]>59?ke:n[Me]<0||n[Me]>999?Me:-1,p(e)._overflowDayOfYear&&(t<ye||t>ve)&&(t=ve),p(e)._overflowWeeks&&-1===t&&(t=Se),p(e)._overflowWeekday&&-1===t&&(t=Oe),p(e).overflow=t),e}var _t=/^\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)?)?$/,vt=/^\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)?)?$/,xt=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["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]],kt=[["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/]],Mt=/^\/?Date\((-?\d+)/i,St=/^(?:(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}))$/,Ot={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tt(e){var t,n,r,i,a,s,o=e._i,u=_t.exec(o)||vt.exec(o),c=wt.length,l=kt.length;if(u){for(p(e).iso=!0,t=0,n=c;t<n;t++)if(wt[t][1].exec(u[1])){i=wt[t][0],r=!1!==wt[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=l;t<n;t++)if(kt[t][1].exec(u[3])){a=(u[2]||" ")+kt[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(u[4]){if(!xt.exec(u[4]))return void(e._isValid=!1);s="Z"}e._f=i+(a||"")+(s||""),jt(e)}else e._isValid=!1}function At(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Ct(e){var t,n,r,i,a,s,o,u=St.exec(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(e._i));if(u){if(n=u[3],r=u[2],i=u[5],a=u[6],s=u[7],o=[At(u[4]),Fe.indexOf(n),parseInt(r,10),parseInt(i,10),parseInt(a,10)],s&&o.push(parseInt(s,10)),!function(e,t,n){return!e||Xe.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(p(n).weekdayMismatch=!0,n._isValid=!1,!1)}(u[1],t=o,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return Ot[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(u[8],u[9],u[10]),e._d=Ue.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function Dt(e,t,n){return null!=e?e:null!=t?t:n}function Rt(e){var t,n,i,a,s,o=[];if(!e._d){for(i=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ve]&&null==e._a[_e]&&function(e){var t,n,r,i,a,s,o,u,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,s=4,n=Dt(t.GG,e._a[ye],Ge(Ft(),1,4).year),r=Dt(t.W,1),((i=Dt(t.E,1))<1||i>7)&&(u=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,c=Ge(Ft(),a,s),n=Dt(t.gg,e._a[ye],c.year),r=Dt(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(u=!0)):i=a),r<1||r>Be(n,a,s)?p(e)._overflowWeeks=!0:null!=u?p(e)._overflowWeekday=!0:(o=qe(n,r,i,a,s),e._a[ye]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(s=Dt(e._a[ye],i[ye]),(e._dayOfYear>Te(s)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Ue(s,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[xe]&&0===e._a[we]&&0===e._a[ke]&&0===e._a[Me]&&(e._nextDay=!0,e._a[xe]=0),e._d=(e._useUTC?Ue:Ve).apply(null,o),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[xe]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(p(e).weekdayMismatch=!0)}}function jt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],p(e).empty=!0;var t,n,i,a,s,o,u,c=""+e._i,l=c.length,f=0;for(u=(i=Y(e._f,e._locale).match(R)||[]).length,t=0;t<u;t++)(n=(c.match(ce(a=i[t],e))||[])[0])&&((s=c.substr(0,c.indexOf(n))).length>0&&p(e).unusedInput.push(s),c=c.slice(c.indexOf(n)+n.length),f+=n.length),E[a]?(n?p(e).empty=!1:p(e).unusedTokens.push(a),ge(a,n,e)):e._strict&&!n&&p(e).unusedTokens.push(a);p(e).charsLeftOver=l-f,c.length>0&&p(e).unusedInput.push(c),e._a[xe]<=12&&!0===p(e).bigHour&&e._a[xe]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[xe]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[xe],e._meridiem),null!==(o=p(e).era)&&(e._a[ye]=e._locale.erasConvertYear(o,e._a[ye])),Rt(e),yt(e)}else Ct(e);else Tt(e)}function Lt(e){var t=e._i,n=e._f;return e._locale=e._locale||bt(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),x(t)?new v(yt(t)):(l(t)?e._d=t:i(n)?function(e){var t,n,r,i,a,s,o=!1,u=e._f.length;if(0===u)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<u;i++)a=0,s=!1,t=_({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],jt(t),m(t)&&(s=!0),a+=p(t).charsLeftOver,a+=10*p(t).unusedTokens.length,p(t).score=a,o?a<r&&(r=a,n=t):(null==r||a<r||s)&&(r=a,n=t,s&&(o=!0));d(e,n||t)}(e):n?jt(e):function(e){var t=e._i;u(t)?e._d=new Date(r.now()):l(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=Mt.exec(e._i);null===t?(Tt(e),!1===e._isValid&&(delete e._isValid,Ct(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):i(t)?(e._a=f(t.slice(0),function(e){return parseInt(e,10)}),Rt(e)):a(t)?function(e){if(!e._d){var t=z(e._i);e._a=f([t.year,t.month,void 0===t.day?t.date:t.day,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Rt(e)}}(e):c(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function Et(e,t,n,r,s){var u={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&o(e)||i(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=n,u._i=e,u._f=t,u._strict=r,function(e){var t=new v(yt(Lt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}(u)}function Ft(e,t,n,r){return Et(e,t,n,r,!1)}r.createFromInputFallback=k("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":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var Pt=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ft.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),Nt=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ft.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()});function Yt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Ft();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var It=["year","quarter","month","week","day","hour","minute","second","millisecond"];function $t(e){var t=z(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,u=t.hour||0,c=t.minute||0,l=t.second||0,f=t.millisecond||0;this._isValid=function(e){var t,n,r=!1,i=It.length;for(t in e)if(s(e,t)&&(-1===Ae.call(It,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[It[n]]){if(r)return!1;parseFloat(e[It[n]])!==de(e[It[n]])&&(r=!0)}return!0}(t),this._milliseconds=+f+1e3*l+6e4*c+1e3*u*60*60,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=bt(),this._bubble()}function zt(e){return e instanceof $t}function Wt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Vt(e,t){F(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+D(~~(e/60),2)+t+D(~~e%60,2)})}Vt("Z",":"),Vt("ZZ",""),ue("Z",ie),ue("ZZ",ie),pe(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ht(ie,e)});var Ut=/([\+\-]|\d\d)/gi;function Ht(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(Ut)||["-",0,0])[1]+de(n[2]))?0:"+"===n[0]?r:-r}function qt(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(x(e)||l(e)?e.valueOf():Ft(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Ft(e).local()}function Gt(e){return-Math.round(e._d.getTimezoneOffset())}function Bt(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Zt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Qt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Xt(e,t){var n,r,i,a,o,u,l=e,f=null;return zt(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(l={},t?l[t]=+e:l.milliseconds=+e):(f=Zt.exec(e))?(n="-"===f[1]?-1:1,l={y:0,d:de(f[ve])*n,h:de(f[xe])*n,m:de(f[we])*n,s:de(f[ke])*n,ms:de(Wt(1e3*f[Me]))*n}):(f=Qt.exec(e))?l={y:Jt(f[2],n="-"===f[1]?-1:1),M:Jt(f[3],n),w:Jt(f[4],n),d:Jt(f[5],n),h:Jt(f[6],n),m:Jt(f[7],n),s:Jt(f[8],n)}:null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(a=Ft(l.from),o=Ft(l.to),i=a.isValid()&&o.isValid()?(o=qt(o,a),a.isBefore(o)?u=Kt(a,o):((u=Kt(o,a)).milliseconds=-u.milliseconds,u.months=-u.months),u):{milliseconds:0,months:0},(l={}).ms=i.milliseconds,l.M=i.months),r=new $t(l),zt(e)&&s(e,"_locale")&&(r._locale=e._locale),zt(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Jt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Kt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function en(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(O(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."),i=n,n=r,r=i),tn(this,Xt(n,r),e),this}}function tn(e,t,n,i){var a=t._milliseconds,s=Wt(t._days),o=Wt(t._months);e.isValid()&&(i=null==i||i,o&&$e(e,Re(e,"Month")+o*n),s&&je(e,"Date",Re(e,"Date")+s*n),a&&e._d.setTime(e._d.valueOf()+a*n),i&&r.updateOffset(e,s||o))}Xt.fn=$t.prototype,Xt.invalid=function(){return Xt(NaN)};var nn=en(1,"add"),rn=en(-1,"subtract");function an(e){return"string"==typeof e||e instanceof String}function sn(e,t){if(e.date()<t.date())return-sn(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function on(e){var t;return void 0===e?this._locale._abbr:(null!=(t=bt(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var un=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function cn(){return this._locale}var ln=1e3,fn=6e4,dn=36e5,hn=126227808e5;function pn(e,t){return(e%t+t)%t}function mn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-hn:new Date(e,t,n).valueOf()}function gn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-hn:Date.UTC(e,t,n)}function bn(e,t){return t.erasAbbrRegex(e)}function yn(){var e,t,n,r,i,a=[],s=[],o=[],u=[],c=this.eras();for(e=0,t=c.length;e<t;++e)n=le(c[e].name),r=le(c[e].abbr),i=le(c[e].narrow),s.push(n),a.push(r),o.push(i),u.push(n),u.push(r),u.push(i);this._erasRegex=new RegExp("^("+u.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function _n(e,t){F(0,[e,e.length],0,t)}function vn(e,t,n,r,i){var a;return null==e?Ge(this,r,i).year:(t>(a=Be(e,r,i))&&(t=a),xn.call(this,e,t,n,r,i))}function xn(e,t,n,r,i){var a=qe(e,t,n,r,i),s=Ue(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),ue("N",bn),ue("NN",bn),ue("NNN",bn),ue("NNNN",function(e,t){return t.erasNameRegex(e)}),ue("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),pe(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?p(n).era=i:p(n).invalidEra=e}),ue("y",te),ue("yy",te),ue("yyy",te),ue("yyyy",te),ue("yo",function(e,t){return t._eraYearOrdinalRegex||te}),pe(["y","yy","yyy","yyyy"],ye),pe(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),t[ye]=n._locale.eraYearOrdinalParse?n._locale.eraYearOrdinalParse(e,i):parseInt(e,10)}),F(0,["gg",2],0,function(){return this.weekYear()%100}),F(0,["GG",2],0,function(){return this.isoWeekYear()%100}),_n("gggg","weekYear"),_n("ggggg","weekYear"),_n("GGGG","isoWeekYear"),_n("GGGGG","isoWeekYear"),ue("G",ne),ue("g",ne),ue("GG",Z,H),ue("gg",Z,H),ue("GGGG",K,G),ue("gggg",K,G),ue("GGGGG",ee,B),ue("ggggg",ee,B),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=de(e)}),me(["gg","GG"],function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)}),F("Q",0,"Qo","quarter"),ue("Q",U),pe("Q",function(e,t){t[_e]=3*(de(e)-1)}),F("D",["DD",2],"Do","date"),ue("D",Z,se),ue("DD",Z,H),ue("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),pe(["D","DD"],ve),pe("Do",function(e,t){t[ve]=de(e.match(Z)[0])});var wn=De("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),ue("DDD",J),ue("DDDD",q),pe(["DDD","DDDD"],function(e,t,n){n._dayOfYear=de(e)}),F("m",["mm",2],0,"minute"),ue("m",Z,oe),ue("mm",Z,H),pe(["m","mm"],we);var kn=De("Minutes",!1);F("s",["ss",2],0,"second"),ue("s",Z,oe),ue("ss",Z,H),pe(["s","ss"],ke);var Mn,Sn,On=De("Seconds",!1);for(F("S",0,0,function(){return~~(this.millisecond()/100)}),F(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,function(){return 10*this.millisecond()}),F(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),F(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),F(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),F(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),F(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ue("S",J,U),ue("SS",J,H),ue("SSS",J,q),Mn="SSSS";Mn.length<=9;Mn+="S")ue(Mn,te);function Tn(e,t){t[Me]=de(1e3*("0."+e))}for(Mn="S";Mn.length<=9;Mn+="S")pe(Mn,Tn);Sn=De("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var An=v.prototype;function Cn(e){return e}An.add=nn,An.calendar=function(e,t){var n;1===arguments.length&&(arguments[0]?x(n=arguments[0])||l(n)||an(n)||c(n)||function(e){var t=i(e),n=!1;return t&&(n=0===e.filter(function(t){return!c(t)&&an(e)}).length),t&&n}(n)||function(e){var t,n=a(e)&&!o(e),r=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=i.length;for(t=0;t<u;t+=1)r=r||s(e,i[t]);return n&&r}(n)||null==n?(e=arguments[0],t=void 0):function(e){var t,n=a(e)&&!o(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)r=r||s(e,i[t]);return n&&r}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var u=e||Ft(),f=qt(u,this).startOf("day"),d=r.calendarFormat(this,f)||"sameElse",h=t&&(T(t[d])?t[d].call(this,u):t[d]);return this.format(h||this.localeData().calendar(d,this,Ft(u)))},An.clone=function(){return new v(this)},An.diff=function(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=qt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=$(t)){case"year":a=sn(this,r)/12;break;case"month":a=sn(this,r);break;case"quarter":a=sn(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:fe(a)},An.endOf=function(e){var t,n;if(void 0===(e=$(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gn:mn,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+=dn-pn(t+(this._isUTC?0:this.utcOffset()*fn),dn)-1;break;case"minute":t=this._d.valueOf(),t+=fn-pn(t,fn)-1;break;case"second":t=this._d.valueOf(),t+=ln-pn(t,ln)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},An.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=N(this,e);return this.localeData().postformat(t)},An.from=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||Ft(e).isValid())?Xt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},An.fromNow=function(e){return this.from(Ft(),e)},An.to=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||Ft(e).isValid())?Xt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},An.toNow=function(e){return this.to(Ft(),e)},An.get=function(e){return T(this[e=$(e)])?this[e]():this},An.invalidAt=function(){return p(this).overflow},An.isAfter=function(e,t){var n=x(e)?e:Ft(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=$(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},An.isBefore=function(e,t){var n=x(e)?e:Ft(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=$(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},An.isBetween=function(e,t,n,r){var i=x(e)?e:Ft(e),a=x(t)?t:Ft(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))},An.isSame=function(e,t){var n,r=x(e)?e:Ft(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=$(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},An.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},An.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},An.isValid=function(){return m(this)},An.lang=un,An.locale=on,An.localeData=cn,An.max=Nt,An.min=Pt,An.parsingFlags=function(){return d({},p(this))},An.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:V[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=z(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(T(this[e=$(e)]))return this[e](t);return this},An.startOf=function(e){var t,n;if(void 0===(e=$(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gn:mn,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-=pn(t+(this._isUTC?0:this.utcOffset()*fn),dn);break;case"minute":t=this._d.valueOf(),t-=pn(t,fn);break;case"second":t=this._d.valueOf(),t-=pn(t,ln)}return this._d.setTime(t),r.updateOffset(this,!0),this},An.subtract=rn,An.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},An.toObject=function(){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()}},An.toDate=function(){return new Date(this.valueOf())},An.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?N(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(n,"Z")):N(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},An.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n="moment",r="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+r+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(An[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),An.toJSON=function(){return this.isValid()?this.toISOString():null},An.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},An.unix=function(){return Math.floor(this.valueOf()/1e3)},An.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},An.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},An.eraName=function(){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)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},An.eraNarrow=function(){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)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},An.eraAbbr=function(){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)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},An.eraYear=function(){var e,t,n,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-r(a[e].since).year())*n+a[e].offset;return this.year()},An.year=Ce,An.isLeapYear=function(){return be(this.year())},An.weekYear=function(e){return vn.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},An.isoWeekYear=function(e){return vn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},An.quarter=An.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},An.month=ze,An.daysInMonth=function(){return Le(this.year(),this.month())},An.week=An.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},An.isoWeek=An.isoWeeks=function(e){var t=Ge(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},An.weeksInYear=function(){var e=this.localeData()._week;return Be(this.year(),e.dow,e.doy)},An.weeksInWeekYear=function(){var e=this.localeData()._week;return Be(this.weekYear(),e.dow,e.doy)},An.isoWeeksInYear=function(){return Be(this.year(),1,4)},An.isoWeeksInISOWeekYear=function(){return Be(this.isoWeekYear(),1,4)},An.date=wn,An.day=An.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=Re(this,"Day");return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},An.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},An.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},An.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},An.hour=An.hours=ut,An.minute=An.minutes=kn,An.second=An.seconds=On,An.millisecond=An.milliseconds=Sn,An.utcOffset=function(e,t,n){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ht(ie,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Gt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?tn(this,Xt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Gt(this)},An.utc=function(e){return this.utcOffset(0,e)},An.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Gt(this),"m")),this},An.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ht(re,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},An.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ft(e).utcOffset():0,(this.utcOffset()-e)%60==0)},An.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},An.isLocal=function(){return!!this.isValid()&&!this._isUTC},An.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},An.isUtc=Bt,An.isUTC=Bt,An.zoneAbbr=function(){return this._isUTC?"UTC":""},An.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},An.dates=k("dates accessor is deprecated. Use date instead.",wn),An.months=k("months accessor is deprecated. Use month instead",ze),An.years=k("years accessor is deprecated. Use year instead",Ce),An.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),An.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=Lt(t))._a?(e=t._isUTC?h(t._a):Ft(t._a),this._isDSTShifted=this.isValid()&&function(e,t){var n,r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(n=0;n<r;n++)de(e[n])!==de(t[n])&&a++;return a+i}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var Dn=C.prototype;function Rn(e,t,n,r){var i=bt(),a=h().set(r,t);return i[n](a,e)}function jn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return Rn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Rn(e,r,n,"month");return i}function Ln(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,a=bt(),s=e?a._week.dow:0,o=[];if(null!=n)return Rn(t,(n+s)%7,r,"day");for(i=0;i<7;i++)o[i]=Rn(t,(i+s)%7,r,"day");return o}Dn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return T(r)?r.call(t,n):r},Dn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(R).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},Dn.invalidDate=function(){return this._invalidDate},Dn.ordinal=function(e){return this._ordinal.replace("%d",e)},Dn.preparse=Cn,Dn.postformat=Cn,Dn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return T(i)?i(e,t,n,r):i.replace(/%d/i,e)},Dn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},Dn.set=function(e){var t,n;for(n in e)s(e,n)&&(T(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Dn.eras=function(e,t){var n,i,a,s=this._eras||bt("en")._eras;for(n=0,i=s.length;n<i;++n)switch("string"==typeof s[n].since&&(a=r(s[n].since).startOf("day"),s[n].since=a.valueOf()),typeof s[n].until){case"undefined":s[n].until=Infinity;break;case"string":a=r(s[n].until).startOf("day").valueOf(),s[n].until=a.valueOf()}return s},Dn.erasParse=function(e,t,n){var r,i,a,s,o,u=this.eras();for(e=e.toUpperCase(),r=0,i=u.length;r<i;++r)if(a=u[r].name.toUpperCase(),s=u[r].abbr.toUpperCase(),o=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return u[r];break;case"NNNN":if(a===e)return u[r];break;case"NNNNN":if(o===e)return u[r]}else if([a,s,o].indexOf(e)>=0)return u[r]},Dn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},Dn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||yn.call(this),e?this._erasAbbrRegex:this._erasRegex},Dn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||yn.call(this),e?this._erasNameRegex:this._erasRegex},Dn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||yn.call(this),e?this._erasNarrowRegex:this._erasRegex},Dn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Pe).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},Dn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Pe.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Dn.monthsParse=function(e,t,n){var r,i,a;if(this._monthsParseExact)return Ie.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=h([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&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},Dn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||We.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Ye),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Dn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||We.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Ne),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Dn.week=function(e){return Ge(e,this._week.dow,this._week.doy).week},Dn.firstDayOfYear=function(){return this._week.doy},Dn.firstDayOfWeek=function(){return this._week.dow},Dn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ze(n,this._week.dow):e?n[e.day()]:n},Dn.weekdaysMin=function(e){return!0===e?Ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Dn.weekdaysShort=function(e){return!0===e?Ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Dn.weekdaysParse=function(e,t,n){var r,i,a;if(this._weekdaysParseExact)return nt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([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&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},Dn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Dn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=et),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Dn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=tt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Dn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Dn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},mt("en",{eras:[{since:"0001-01-01",until:Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===de(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=k("moment.lang is deprecated. Use moment.locale instead.",mt),r.langData=k("moment.langData is deprecated. Use moment.localeData instead.",bt);var En=Math.abs;function Fn(e,t,n,r){var i=Xt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Pn(e){return e<0?Math.floor(e):Math.ceil(e)}function Nn(e){return 4800*e/146097}function Yn(e){return 146097*e/4800}function In(e){return function(){return this.as(e)}}var $n=In("ms"),zn=In("s"),Wn=In("m"),Vn=In("h"),Un=In("d"),Hn=In("w"),qn=In("M"),Gn=In("Q"),Bn=In("y"),Zn=$n;function Qn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Xn=Qn("milliseconds"),Jn=Qn("seconds"),Kn=Qn("minutes"),er=Qn("hours"),tr=Qn("days"),nr=Qn("months"),rr=Qn("years"),ir=Math.round,ar={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function sr(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var or=Math.abs;function ur(e){return(e>0)-(e<0)||+e}function cr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,a,s,o,u=or(this._milliseconds)/1e3,c=or(this._days),l=or(this._months),f=this.asSeconds();return f?(e=fe(u/60),t=fe(e/60),u%=60,e%=60,n=fe(l/12),l%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=f<0?"-":"",a=ur(this._months)!==ur(f)?"-":"",s=ur(this._days)!==ur(f)?"-":"",o=ur(this._milliseconds)!==ur(f)?"-":"",i+"P"+(n?a+n+"Y":"")+(l?a+l+"M":"")+(c?s+c+"D":"")+(t||e||u?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(u?o+r+"S":"")):"P0D"}var lr=$t.prototype;return lr.isValid=function(){return this._isValid},lr.abs=function(){var e=this._data;return this._milliseconds=En(this._milliseconds),this._days=En(this._days),this._months=En(this._months),e.milliseconds=En(e.milliseconds),e.seconds=En(e.seconds),e.minutes=En(e.minutes),e.hours=En(e.hours),e.months=En(e.months),e.years=En(e.years),this},lr.add=function(e,t){return Fn(this,e,t,1)},lr.subtract=function(e,t){return Fn(this,e,t,-1)},lr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=$(e))||"quarter"===e||"year"===e)switch(n=this._months+Nn(t=this._days+r/864e5),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Yn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},lr.asMilliseconds=$n,lr.asSeconds=zn,lr.asMinutes=Wn,lr.asHours=Vn,lr.asDays=Un,lr.asWeeks=Hn,lr.asMonths=qn,lr.asQuarters=Gn,lr.asYears=Bn,lr.valueOf=Zn,lr._bubble=function(){var e,t,n,r,i,a=this._milliseconds,s=this._days,o=this._months,u=this._data;return a>=0&&s>=0&&o>=0||a<=0&&s<=0&&o<=0||(a+=864e5*Pn(Yn(o)+s),s=0,o=0),u.milliseconds=a%1e3,e=fe(a/1e3),u.seconds=e%60,t=fe(e/60),u.minutes=t%60,n=fe(t/60),u.hours=n%24,s+=fe(n/24),o+=i=fe(Nn(s)),s-=Pn(Yn(i)),r=fe(o/12),o%=12,u.days=s,u.months=o,u.years=r,this},lr.clone=function(){return Xt(this)},lr.get=function(e){return e=$(e),this.isValid()?this[e+"s"]():NaN},lr.milliseconds=Xn,lr.seconds=Jn,lr.minutes=Kn,lr.hours=er,lr.days=tr,lr.weeks=function(){return fe(this.days()/7)},lr.months=nr,lr.years=rr,lr.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=ar;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(a=Object.assign({},ar,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),r=function(e,t,n,r){var i=Xt(e).abs(),a=ir(i.as("s")),s=ir(i.as("m")),o=ir(i.as("h")),u=ir(i.as("d")),c=ir(i.as("M")),l=ir(i.as("w")),f=ir(i.as("y")),d=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||s<=1&&["m"]||s<n.m&&["mm",s]||o<=1&&["h"]||o<n.h&&["hh",o]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(d=d||l<=1&&["w"]||l<n.w&&["ww",l]),(d=d||c<=1&&["M"]||c<n.M&&["MM",c]||f<=1&&["y"]||["yy",f])[2]=t,d[3]=+e>0,d[4]=r,sr.apply(null,d)}(this,!i,a,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)},lr.toISOString=cr,lr.toString=cr,lr.toJSON=cr,lr.locale=on,lr.localeData=cn,lr.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",cr),lr.lang=un,F("X",0,0,"unix"),F("x",0,0,"valueOf"),ue("x",ne),ue("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),pe("x",function(e,t,n){n._d=new Date(de(e))}),r.version="2.30.1",t=Ft,r.fn=An,r.min=function(){return Yt("isBefore",[].slice.call(arguments,0))},r.max=function(){return Yt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=h,r.unix=function(e){return Ft(1e3*e)},r.months=function(e,t){return jn(e,t,"months")},r.isDate=l,r.locale=mt,r.invalid=g,r.duration=Xt,r.isMoment=x,r.weekdays=function(e,t,n){return Ln(e,t,n,"weekdays")},r.parseZone=function(){return Ft.apply(null,arguments).parseZone()},r.localeData=bt,r.isDuration=zt,r.monthsShort=function(e,t){return jn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return Ln(e,t,n,"weekdaysMin")},r.defineLocale=gt,r.updateLocale=function(e,t){if(null!=t){var n,r,i=ct;null!=lt[e]&&null!=lt[e].parentLocale?lt[e].set(A(lt[e]._config,t)):(null!=(r=pt(e))&&(i=r._config),t=A(i,t),null==r&&(t.abbr=e),(n=new C(t)).parentLocale=lt[e],lt[e]=n),mt(e)}else null!=lt[e]&&(null!=lt[e].parentLocale?(lt[e]=lt[e].parentLocale,e===mt()&&mt(e)):null!=lt[e]&&delete lt[e]);return lt[e]},r.locales=function(){return M(lt)},r.weekdaysShort=function(e,t,n){return Ln(e,t,n,"weekdaysShort")},r.normalizeUnits=$,r.relativeTimeRounding=function(e){return void 0===e?ir:"function"==typeof e&&(ir=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==ar[e]&&(void 0===t?ar[e]:(ar[e]=t,"s"===e&&(ar.ss=t-1),!0))},r.calendarFormat=function(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"},r.prototype=An,r.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"},r}()});b(function(e,t){!function(t,n){try{e.exports=n(y)}catch(t){e.exports=n}t&&(t.momentDurationFormatSetup=t.moment?n(t.moment):n)}(g,function(e){var t=!1,n=!1,r=!1,i=!1,a="escape years months weeks days hours minutes seconds milliseconds general".split(" "),s=[{type:"seconds",targets:[{type:"minutes",value:60},{type:"hours",value:3600},{type:"days",value:86400},{type:"weeks",value:604800},{type:"months",value:2678400},{type:"years",value:31536e3}]},{type:"minutes",targets:[{type:"hours",value:60},{type:"days",value:1440},{type:"weeks",value:10080},{type:"months",value:44640},{type:"years",value:525600}]},{type:"hours",targets:[{type:"days",value:24},{type:"weeks",value:168},{type:"months",value:744},{type:"years",value:8760}]},{type:"days",targets:[{type:"weeks",value:7},{type:"months",value:31},{type:"years",value:365}]},{type:"months",targets:[{type:"years",value:12}]}];function o(e,t){return!(t.length>e.length)&&-1!==e.indexOf(t)}function u(e){for(var t="";e;)t+="0",e-=1;return t}function c(e,t){var n=e+"+"+b(M(t).sort(),function(e){return e+":"+t[e]}).join(",");return c.cache[n]||(c.cache[n]=Intl.NumberFormat(e,t)),c.cache[n]}function l(e,t,a){var s,o,f,d=t.useToLocaleString,h=t.useGrouping,p=h&&t.grouping.slice(),m=t.maximumSignificantDigits,g=t.minimumIntegerDigits||1,b=t.fractionDigits||0,y=t.groupingSeparator,_=t.decimalSeparator;if(d&&a){var v,x={minimumIntegerDigits:g,useGrouping:h};return b&&(x.maximumFractionDigits=b,x.minimumFractionDigits=b),m&&e>0&&(x.maximumSignificantDigits=m),r?(i||((v=k({},t)).useGrouping=!1,v.decimalSeparator=".",e=parseFloat(l(e,v),10)),c(a,x).format(e)):(n||((v=k({},t)).useGrouping=!1,v.decimalSeparator=".",e=parseFloat(l(e,v),10)),e.toLocaleString(a,x))}var w=(m?e.toPrecision(m+1):e.toFixed(b+1)).split("e");f=w[1]||"";var M=(s=(w=w[0].split("."))[0]||"").length,S=(o=w[1]||"").length,O=M+S,T=s+o;(m&&O===m+1||!m&&S===b+1)&&(T=function(e){for(var t=e.split("").reverse(),n=0,r=!0;r&&n<t.length;)n?"9"===t[n]?t[n]="0":(t[n]=(parseInt(t[n],10)+1).toString(),r=!1):(parseInt(t[n],10)<5&&(r=!1),t[n]="0"),n+=1;return r&&t.push("1"),t.reverse().join("")}(T),T.length===O+1&&(M+=1),S&&(T=T.slice(0,-1)),s=T.slice(0,M),o=T.slice(M)),m&&(o=o.replace(/0*$/,""));var A=parseInt(f,10);A>0?o.length<=A?(s+=o+=u(A-o.length),o=""):(s+=o.slice(0,A),o=o.slice(A)):A<0&&(o=u(Math.abs(A)-s.length)+s+o,s="0"),m||((o=o.slice(0,b)).length<b&&(o+=u(b-o.length)),s.length<g&&(s=u(g-s.length)+s));var C,D="";if(h)for(w=s;w.length;)p.length&&(C=p.shift()),D&&(D=y+D),D=w.slice(-C)+D,w=w.slice(0,-C);else D=s;return o&&(D=D+_+o),D}function f(e,t){return e.label.length>t.label.length?-1:e.label.length<t.label.length?1:0}c.cache={};var d={durationLabelsStandard:{S:"millisecond",SS:"milliseconds",s:"second",ss:"seconds",m:"minute",mm:"minutes",h:"hour",hh:"hours",d:"day",dd:"days",w:"week",ww:"weeks",M:"month",MM:"months",y:"year",yy:"years"},durationLabelsShort:{S:"msec",SS:"msecs",s:"sec",ss:"secs",m:"min",mm:"mins",h:"hr",hh:"hrs",d:"dy",dd:"dys",w:"wk",ww:"wks",M:"mo",MM:"mos",y:"yr",yy:"yrs"},durationTimeTemplates:{HMS:"h:mm:ss",HM:"h:mm",MS:"m:ss"},durationLabelTypes:[{type:"standard",string:"__"},{type:"short",string:"_"}],durationPluralKey:function(e,t,n){return 1===t&&null===n?e:e+e}};function h(e){return"[object Array]"===Object.prototype.toString.call(e)}function p(e){return"[object Object]"===Object.prototype.toString.call(e)}function m(e,t){var n,r=0,i=e&&e.length||0;for("function"!=typeof t&&(n=t,t=function(e){return e===n});r<i;){if(t(e[r]))return e[r];r+=1}}function g(e,t){var n=0,r=e.length;if(e&&r)for(;n<r;){if(!1===t(e[n],n))return;n+=1}}function b(e,t){var n=0,r=e.length,i=[];if(!e||!r)return i;for(;n<r;)i[n]=t(e[n],n),n+=1;return i}function y(e,t){return b(e,function(e){return e[t]})}function _(e){var t=[];return g(e,function(e){e&&t.push(e)}),t}function v(e){var t=[];return g(e,function(e){m(t,e)||t.push(e)}),t}function x(e,t){var n=[];return g(e,function(e){g(t,function(t){e===t&&n.push(e)})}),v(n)}function w(e,t){var n=[];return g(e,function(r,i){if(!t(r))return n=e.slice(i),!1}),n}function k(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function M(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function S(e,t){var n=0,r=e.length;if(!e||!r)return!1;for(;n<r;){if(!0===t(e[n],n))return!0;n+=1}return!1}function O(e){return"3.6"===e(3.55,"en",{useGrouping:!1,minimumIntegerDigits:1,minimumFractionDigits:1,maximumFractionDigits:1})}function T(e){var t=!0;return!!((t=(t=(t=t&&"1"===e(1,"en",{minimumIntegerDigits:1}))&&"01"===e(1,"en",{minimumIntegerDigits:2}))&&"001"===e(1,"en",{minimumIntegerDigits:3}))&&(t=(t=(t=(t=t&&"100"===e(99.99,"en",{maximumFractionDigits:0,minimumFractionDigits:0}))&&"100.0"===e(99.99,"en",{maximumFractionDigits:1,minimumFractionDigits:1}))&&"99.99"===e(99.99,"en",{maximumFractionDigits:2,minimumFractionDigits:2}))&&"99.990"===e(99.99,"en",{maximumFractionDigits:3,minimumFractionDigits:3}))&&(t=(t=(t=(t=(t=t&&"100"===e(99.99,"en",{maximumSignificantDigits:1}))&&"100"===e(99.99,"en",{maximumSignificantDigits:2}))&&"100"===e(99.99,"en",{maximumSignificantDigits:3}))&&"99.99"===e(99.99,"en",{maximumSignificantDigits:4}))&&"99.99"===e(99.99,"en",{maximumSignificantDigits:5}))&&(t=(t=t&&"1,000"===e(1e3,"en",{useGrouping:!0}))&&"1000"===e(1e3,"en",{useGrouping:!1})))}function A(){var e,t=[].slice.call(arguments),n={};if(g(t,function(t,r){if(!r){if(!h(t))throw"Expected array as the first argument to durationsFormat.";e=t}"string"!=typeof t&&"function"!=typeof t?"number"!=typeof t?p(t)&&k(n,t):n.precision=t:n.template=t}),!e||!e.length)return[];n.returnMomentTypes=!0;var r=b(e,function(e){return e.format(n)}),i=x(a,v(y(function(e){var t=[];return g(e,function(e){t=t.concat(e)}),t}(r),"type"))),s=n.largest;return s&&(i=i.slice(0,s)),n.returnMomentTypes=!1,n.outputTypes=i,b(e,function(e){return e.format(n)})}function C(){var n=[].slice.call(arguments),i=k({},this.format.defaults),u=this.asMilliseconds(),c=this.asMonths();"function"==typeof this.isValid&&!1===this.isValid()&&(u=0,c=0);var O=u<0,T=e.duration(Math.abs(u),"milliseconds"),A=e.duration(Math.abs(c),"months");g(n,function(e){"string"!=typeof e&&"function"!=typeof e?"number"!=typeof e?p(e)&&k(i,e):i.precision=e:i.template=e});var C={years:"y",months:"M",weeks:"w",days:"d",hours:"h",minutes:"m",seconds:"s",milliseconds:"S"},D={escape:/\[(.+?)\]/,years:/\*?[Yy]+/,months:/\*?M+/,weeks:/\*?[Ww]+/,days:/\*?[Dd]+/,hours:/\*?[Hh]+/,minutes:/\*?m+/,seconds:/\*?s+/,milliseconds:/\*?S+/,general:/.+?/};i.types=a;var R=function(e){return m(a,function(t){return D[t].test(e)})},j=new RegExp(b(a,function(e){return D[e].source}).join("|"),"g");i.duration=this;var L="function"==typeof i.template?i.template.apply(i):i.template,E=i.outputTypes,F=i.returnMomentTypes,P=i.largest,N=[];E||(h(i.stopTrim)&&(i.stopTrim=i.stopTrim.join("")),i.stopTrim&&g(i.stopTrim.match(j),function(e){var t=R(e);"escape"!==t&&"general"!==t&&N.push(t)}));var Y=e.localeData();Y||(Y={}),g(M(d),function(e){"function"!=typeof d[e]?Y["_"+e]||(Y["_"+e]=d[e]):Y[e]||(Y[e]=d[e])}),g(M(Y._durationTimeTemplates),function(e){L=L.replace("_"+e+"_",Y._durationTimeTemplates[e])});var I=i.userLocale||e.locale(),$=i.useLeftUnits,z=i.usePlural,W=i.precision,V=i.forceLength,U=i.useGrouping,H=i.trunc,q=i.useSignificantDigits&&W>0,G=q?i.precision:0,B=G,Z=i.minValue,Q=!1,X=i.maxValue,J=!1,K=i.useToLocaleString,ee=i.groupingSeparator,te=i.decimalSeparator,ne=i.grouping;K=K&&(t||r);var re=i.trim;h(re)&&(re=re.join(" ")),null===re&&(P||X||q)&&(re="all"),null!==re&&!0!==re&&"left"!==re&&"right"!==re||(re="large"),!1===re&&(re="");var ie=function(e){return e.test(re)},ae=/both/,se=/^all|[^sm]all/,oe=P>0||S([/large/,ae,se],ie),ue=S([/small/,ae,se],ie),ce=S([/mid/,se],ie),le=S([/final/,se],ie),fe=b(L.match(j),function(e,t){var n=R(e);return"*"===e.slice(0,1)&&(e=e.slice(1),"escape"!==n&&"general"!==n&&N.push(n)),{index:t,length:e.length,text:"",token:"escape"===n?e.replace(D.escape,"$1"):e,type:"escape"===n||"general"===n?null:n}}),de={index:0,length:0,token:"",text:"",type:null},he=[];$&&fe.reverse(),g(fe,function(e){if(e.type)return(de.type||de.text)&&he.push(de),void(de=e);$?de.text=e.token+de.text:de.text+=e.token}),(de.type||de.text)&&he.push(de),$&&he.reverse();var pe=x(a,v(_(y(he,"type"))));if(!pe.length)return y(he,"text").join("");pe=b(pe,function(e,t){var n,r=t+1===pe.length,a=!t;n="years"===e||"months"===e?A.as(e):T.as(e);var s=Math.floor(n),o=n-s,u=m(he,function(t){return e===t.type});return a&&X&&n>X&&(J=!0),r&&Z&&Math.abs(i.duration.as(e))<Z&&(Q=!0),a&&null===V&&u.length>1&&(V=!0),T.subtract(s,e),A.subtract(s,e),{rawValue:n,wholeValue:s,decimalValue:r?o:0,isSmallest:r,isLargest:a,type:e,tokenLength:u.length}});var me=H?Math.floor:Math.round,ge=function(e,t){var n=Math.pow(10,t);return me(e*n)/n},be=!1,ye=!1,_e=function(e,t){var n={useGrouping:U,groupingSeparator:ee,decimalSeparator:te,grouping:ne,useToLocaleString:K};return q&&(G<=0?(e.rawValue=0,e.wholeValue=0,e.decimalValue=0):(n.maximumSignificantDigits=G,e.significantDigits=G)),J&&!ye&&(e.isLargest?(e.wholeValue=X,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),Q&&!ye&&(e.isSmallest?(e.wholeValue=Z,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),e.isSmallest||e.significantDigits&&e.significantDigits-e.wholeValue.toString().length<=0?W<0?e.value=ge(e.wholeValue,W):0===W?e.value=me(e.wholeValue+e.decimalValue):q?(e.value=H?ge(e.rawValue,G-e.wholeValue.toString().length):e.rawValue,e.wholeValue&&(G-=e.wholeValue.toString().length)):(n.fractionDigits=W,e.value=H?e.wholeValue+ge(e.decimalValue,W):e.wholeValue+e.decimalValue):q&&e.wholeValue?(e.value=Math.round(ge(e.wholeValue,e.significantDigits-e.wholeValue.toString().length)),G-=e.wholeValue.toString().length):e.value=e.wholeValue,e.tokenLength>1&&(V||be)&&(n.minimumIntegerDigits=e.tokenLength,ye&&n.maximumSignificantDigits<e.tokenLength&&delete n.maximumSignificantDigits),!be&&(e.value>0||""===re||m(N,e.type)||m(E,e.type))&&(be=!0),e.formattedValue=l(e.value,n,I),n.useGrouping=!1,n.decimalSeparator=".",e.formattedValueEn=l(e.value,n,"en"),2===e.tokenLength&&"milliseconds"===e.type&&(e.formattedValueMS=l(e.value,{minimumIntegerDigits:3,useGrouping:!1},"en").slice(0,2)),e};if((pe=_(pe=b(pe,_e))).length>1){var ve=function(e){return m(pe,function(t){return t.type===e})};g(s,function(e){var t=ve(e.type);t&&g(e.targets,function(e){var n=ve(e.type);n&&parseInt(t.formattedValueEn,10)===e.value&&(t.rawValue=0,t.wholeValue=0,t.decimalValue=0,n.rawValue+=1,n.wholeValue+=1,n.decimalValue=0,n.formattedValueEn=n.wholeValue.toString(),ye=!0)})})}return ye&&(be=!1,G=B,pe=_(pe=b(pe,_e))),!E||J&&!i.trim?(oe&&(pe=w(pe,function(e){return!e.isSmallest&&!e.wholeValue&&!m(N,e.type)})),P&&pe.length&&(pe=pe.slice(0,P)),ue&&pe.length>1&&(pe=function(e){return w(e.slice().reverse(),function(e){return!e.wholeValue&&!m(N,e.type)&&!e.isLargest}).reverse()}(pe)),ce&&(pe=_(pe=b(pe,function(e,t){return t>0&&t<pe.length-1&&!e.wholeValue?null:e}))),!le||1!==pe.length||pe[0].wholeValue||!H&&pe[0].isSmallest&&pe[0].rawValue<Z||(pe=[])):pe=_(pe=b(pe,function(e){return m(E,function(t){return e.type===t})?e:null})),F?pe:(g(he,function(e){var t=C[e.type],n=m(pe,function(t){return t.type===e.type});if(t&&n){var r=n.formattedValueEn.split(".");r[0]=parseInt(r[0],10),r[1]=r[1]?parseFloat("0."+r[1],10):null;var i=Y.durationPluralKey(t,r[0],r[1]),a=function(e,t){var n=[];return g(M(t),function(r){if("_durationLabels"===r.slice(0,15)){var i=r.slice(15).toLowerCase();g(M(t[r]),function(a){a.slice(0,1)===e&&n.push({type:i,key:a,label:t[r][a]})})}}),n}(t,Y),s=!1,u={};g(Y._durationLabelTypes,function(t){var n=m(a,function(e){return e.type===t.type&&e.key===i});n&&(u[n.type]=n.label,o(e.text,t.string)&&(e.text=e.text.replace(t.string,n.label),s=!0))}),z&&!s&&(a.sort(f),g(a,function(t){return u[t.type]===t.label?!o(e.text,t.label)&&void 0:o(e.text,t.label)?(e.text=e.text.replace(t.label,u[t.type]),!1):void 0}))}}),(he=b(he,function(e){if(!e.type)return e.text;var t=m(pe,function(t){return t.type===e.type});if(!t)return"";var n="";return $&&(n+=e.text),(O&&J||!O&&Q)&&(n+="< ",J=!1,Q=!1),(O&&Q||!O&&J)&&(n+="> ",J=!1,Q=!1),O&&(t.value>0||""===re||m(N,t.type)||m(E,t.type))&&(n+="-",O=!1),n+="milliseconds"===e.type&&t.formattedValueMS?t.formattedValueMS:t.formattedValue,$||(n+=e.text),n})).join("").replace(/(,| |:|\.)*$/,"").replace(/^(,| |:|\.)*/,""))}function D(){var e=this.duration,t=function(t){return e._data[t]},n=m(this.types,t),r=function(e,t){for(var n=e.length;n-=1;)if(t(e[n]))return e[n]}(this.types,t);switch(n){case"milliseconds":return"S __";case"seconds":case"minutes":return"*_MS_";case"hours":return"_HMS_";case"days":if(n===r)return"d __";case"weeks":return n===r?"w __":(null===this.trim&&(this.trim="both"),"w __, d __, h __");case"months":if(n===r)return"M __";case"years":return n===r?"y __":(null===this.trim&&(this.trim="both"),"y __, M __, d __");default:return null===this.trim&&(this.trim="both"),"y __, d __, h __, m __, s __"}}function R(e){if(!e)throw"Moment Duration Format init cannot find moment instance.";e.duration.format=A,e.duration.fn.format=C,e.duration.fn.format.defaults={trim:null,stopTrim:null,largest:null,maxValue:null,minValue:null,precision:0,trunc:!1,forceLength:null,userLocale:null,usePlural:!0,useLeftUnits:!1,useGrouping:!0,useSignificantDigits:!1,template:D,useToLocaleString:!0,groupingSeparator:",",decimalSeparator:".",grouping:[3]},e.updateLocale("en",d)}var j=function(e,t,n){return e.toLocaleString(t,n)};t=function(){try{(0).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1}()&&T(j),n=t&&O(j);var L=function(e,t,n){if("undefined"!=typeof window&&window&&window.Intl&&window.Intl.NumberFormat)return window.Intl.NumberFormat(t,n).format(e)};return r=T(L),i=r&&O(L),R(e),R})});var _=F(),v=e=>R(e,_),x=F();v.write=e=>R(e,x);var w=F();v.onStart=e=>R(e,w);var k=F();v.onFrame=e=>R(e,k);var M=F();v.onFinish=e=>R(e,M);var S=[];v.setTimeout=(e,t)=>{const n=v.now()+t,r=()=>{const e=S.findIndex(e=>e.cancel==r);~e&&S.splice(e,1),C-=~e?1:0},i={time:n,handler:e,cancel:r};return S.splice(O(n),0,i),C+=1,j(),i};var O=e=>~(~S.findIndex(t=>t.time>e)||~S.length);v.cancel=e=>{w.delete(e),k.delete(e),M.delete(e),_.delete(e),x.delete(e)},v.sync=e=>{D=!0,v.batchedUpdates(e),D=!1},v.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,v.onStart(n)}return r.handler=e,r.cancel=()=>{w.delete(n),t=null},r};var T="undefined"!=typeof window?window.requestAnimationFrame:()=>{};v.use=e=>T=e,v.now="undefined"!=typeof performance?()=>performance.now():Date.now,v.batchedUpdates=e=>e(),v.catch=console.error,v.frameLoop="always",v.advance=()=>{"demand"!==v.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):E()};var A=-1,C=0,D=!1;function R(e,t){D?(t.delete(e),e(0)):(t.add(e),j())}function j(){A<0&&(A=0,"demand"!==v.frameLoop&&T(L))}function L(){~A&&(T(L),v.batchedUpdates(E))}function E(){const e=A;A=v.now();const t=O(A);t&&(P(S.splice(0,t),e=>e.handler()),C-=t),C?(w.flush(),_.flush(e?Math.min(64,A-e):16.667),k.flush(),x.flush(),M.flush()):A=-1}function F(){let e=/* @__PURE__ */new Set,t=e;return{add(n){C+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(C-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=/* @__PURE__ */new Set,C-=t.size,P(t,t=>t(n)&&e.add(t)),C+=e.size,t=e)}}}function P(e,t){e.forEach(e=>{try{t(e)}catch(e){v.catch(e)}})}var N=Object.defineProperty,Y={};function I(){}((e,t)=>{for(var n in t)N(e,n,{get:t[n],enumerable:!0})})(Y,{assign:()=>K,colors:()=>Q,createStringInterpolator:()=>q,skipAnimation:()=>X,to:()=>G,willAdvance:()=>J});var $={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function z(e,t){if($.arr(e)){if(!$.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var W=(e,t)=>e.forEach(t);function V(e,t,n){if($.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var U=e=>$.und(e)?[]:$.arr(e)?e:[e];function H(e,t){if(e.size){const n=Array.from(e);e.clear(),W(n,t)}}var q,G,B=(e,...t)=>H(e,e=>e(...t)),Z=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Q=null,X=!1,J=I,K=e=>{e.to&&(G=e.to),e.now&&(v.now=e.now),void 0!==e.colors&&(Q=e.colors),null!=e.skipAnimation&&(X=e.skipAnimation),e.createStringInterpolator&&(q=e.createStringInterpolator),e.requestAnimationFrame&&v.use(e.requestAnimationFrame),e.batchedUpdates&&(v.batchedUpdates=e.batchedUpdates),e.willAdvance&&(J=e.willAdvance),e.frameLoop&&(v.frameLoop=e.frameLoop)},ee=/* @__PURE__ */new Set,te=[],ne=[],re=0,ie={get idle(){return!ee.size&&!te.length},start(e){re>e.priority?(ee.add(e),v.onStart(ae)):(se(e),v(ue))},advance:ue,sort(e){if(re)v.onFrame(()=>ie.sort(e));else{const t=te.indexOf(e);~t&&(te.splice(t,1),oe(e))}},clear(){te=[],ee.clear()}};function ae(){ee.forEach(se),ee.clear(),v(ue)}function se(e){te.includes(e)||oe(e)}function oe(e){te.splice(function(t){const n=t.findIndex(t=>t.priority>e.priority);return n<0?t.length:n}(te),0,e)}function ue(e){const t=ne;for(let n=0;n<te.length;n++){const r=te[n];re=r.priority,r.idle||(J(r),r.advance(e),r.idle||t.push(r))}return re=0,(ne=te).length=0,(te=t).length>0}var ce="[-+]?\\d*\\.?\\d+",le=ce+"%";function fe(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var de=new RegExp("rgb"+fe(ce,ce,ce)),he=new RegExp("rgba"+fe(ce,ce,ce,ce)),pe=new RegExp("hsl"+fe(ce,le,le)),me=new RegExp("hsla"+fe(ce,le,le,ce)),ge=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,be=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ye=/^#([0-9a-fA-F]{6})$/,_e=/^#([0-9a-fA-F]{8})$/;function ve(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function xe(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=ve(i,r,e+1/3),s=ve(i,r,e),o=ve(i,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*s)<<16|Math.round(255*o)<<8}function we(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ke(e){return(parseFloat(e)%360+360)%360/360}function Me(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Se(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Oe(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ye.exec(e))?parseInt(t[1]+"ff",16)>>>0:Q&&void 0!==Q[e]?Q[e]:(t=de.exec(e))?(we(t[1])<<24|we(t[2])<<16|we(t[3])<<8|255)>>>0:(t=he.exec(e))?(we(t[1])<<24|we(t[2])<<16|we(t[3])<<8|Me(t[4]))>>>0:(t=ge.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=_e.exec(e))?parseInt(t[1],16)>>>0:(t=be.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=pe.exec(e))?(255|xe(ke(t[1]),Se(t[2]),Se(t[3])))>>>0:(t=me.exec(e))?(xe(ke(t[1]),Se(t[2]),Se(t[3]))|Me(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}var Te=(e,t,n)=>{if($.fun(e))return e;if($.arr(e))return Te({range:e,output:t,extrapolate:n});if($.str(e.output[0]))return q(e);const r=e,i=r.output,a=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",o=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,a);return function(e,t,n,r,i,a,s,o,u){let c=u?u(e):e;if(c<t){if("identity"===s)return c;"clamp"===s&&(c=t)}if(c>n){if("identity"===o)return c;"clamp"===o&&(c=n)}return r===i?r:t===n?e<=t?r:i:(-Infinity===t?c=-c:Infinity===n?c-=t:c=(c-t)/(n-t),c=a(c),-Infinity===r?c=-c:Infinity===i?c+=r:c=c*(i-r)+r,c)}(e,a[t],a[t+1],i[t],i[t+1],u,s,o,r.map)}},Ae=1.70158,Ce=1.525*Ae,De=Ae+1,Re=2*Math.PI/3,je=2*Math.PI/4.5,Le=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},Ee={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>De*e*e*e-Ae*e*e,easeOutBack:e=>1+De*Math.pow(e-1,3)+Ae*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Ce)/2:(Math.pow(2*e-2,2)*((Ce+1)*(2*e-2)+Ce)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Re),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Re)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*je)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*je)/2+1,easeInBounce:e=>1-Le(1-e),easeOutBounce:Le,easeInOutBounce:e=>e<.5?(1-Le(1-2*e))/2:(1+Le(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return i=("end"===t?Math.floor(r):Math.ceil(r))/e,Math.min(Math.max(i,0),1);var i}},Fe=Symbol.for("FluidValue.get"),Pe=Symbol.for("FluidValue.observers"),Ne=e=>Boolean(e&&e[Fe]),Ye=e=>e&&e[Fe]?e[Fe]():e,Ie=e=>e[Pe]||null;function $e(e,t){const n=e[Pe];n&&n.forEach(e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)})}var ze=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");We(this,e)}},We=(e,t)=>qe(e,Fe,t);function Ve(e,t){if(e[Fe]){let n=e[Pe];n||qe(e,Pe,n=/* @__PURE__ */new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Ue(e,t){const n=e[Pe];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Pe]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var He,qe=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ge=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Be=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ze=new RegExp(`(${Ge.source})(%|[a-z]+)`,"i"),Qe=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Xe=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Je=e=>{const[t,n]=Ke(e);if(!t||Z())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r?r.trim():n&&n.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(n)||e:n&&Xe.test(n)?Je(n):n||e},Ke=e=>{const t=Xe.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},et=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,tt=e=>{He||(He=Q?new RegExp(`(${Object.keys(Q).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(e=>Ye(e).replace(Xe,Je).replace(Be,Oe).replace(He,Oe)),n=t.map(e=>e.match(Ge).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})),i=r.map(t=>Te({...e,output:t}));return e=>{const n=!Ze.test(t[0])&&t.find(e=>Ze.test(e))?.replace(Ge,"");let r=0;return t[0].replace(Ge,()=>`${i[r++](e)}${n||""}`).replace(Qe,et)}},nt="react-spring: ",rt=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${nt}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},it=rt(console.warn),at=rt(console.warn);function st(e){return $.str(e)&&("#"==e[0]||/\d/.test(e)||!Z()&&Xe.test(e)||e in(Q||{}))}var ot=Z()?e.useEffect:e.useLayoutEffect;function ut(){const t=e.useState()[1],n=(()=>{const t=e.useRef(!1);return ot(()=>(t.current=!0,()=>{t.current=!1}),[]),t})();return()=>{n.current&&t(Math.random())}}var ct=t=>e.useEffect(t,lt),lt=[];function ft(t){const n=e.useRef(void 0);return e.useEffect(()=>{n.current=t}),n.current}var dt=Symbol.for("Animated:node"),ht=e=>e&&e[dt],pt=(e,t)=>Object.defineProperty(e,dt,{value:t,writable:!0,configurable:!0}),mt=e=>e&&e[dt]&&e[dt].getPayload(),gt=class{constructor(){pt(this,this)}getPayload(){return this.payload||[]}},bt=class e extends gt{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,$.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new e(t)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return $.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,$.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},yt=class e extends bt{constructor(e){super(0),this._string=null,this._toString=Te({output:[e,e]})}static create(t){return new e(t)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if($.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Te({output:[this.getValue(),e]})),this._value=0,super.reset()}},_t={dependencies:null},vt=class extends gt{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return V(this.source,(n,r)=>{var i;(i=n)&&i[dt]===i?t[r]=n.getValue(e):Ne(n)?t[r]=Ye(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&W(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=/* @__PURE__ */new Set;return V(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){_t.dependencies&&Ne(e)&&_t.dependencies.add(e);const t=mt(e);t&&W(t,e=>this.add(e))}},xt=class e extends vt{constructor(e){super(e)}static create(t){return new e(t)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(wt)),!0)}};function wt(e){return(st(e)?yt:bt).create(e)}function kt(e){const t=ht(e);return t?t.constructor:$.arr(e)?xt:st(e)?yt:bt}var Mt=(t,n)=>{const r=!$.fun(t)||t.prototype&&t.prototype.isReactComponent;return e.forwardRef((i,a)=>{const s=e.useRef(null),o=r&&e.useCallback(e=>{s.current=function(e,t){return e&&($.fun(e)?e(t):e.current=t),t}(a,e)},[a]),[u,c]=function(e,t){const n=/* @__PURE__ */new Set;return _t.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new vt(e),_t.dependencies=null,[e,n]}(i,n),l=ut(),d=()=>{const e=s.current;r&&!e||!1===(!!e&&n.applyAnimatedValues(e,u.getValue(!0)))&&l()},h=new St(d,c),p=e.useRef(void 0);ot(()=>(p.current=h,W(c,e=>Ve(e,h)),()=>{p.current&&(W(p.current.deps,e=>Ue(e,p.current)),v.cancel(p.current.update))})),e.useEffect(d,[]),ct(()=>()=>{const e=p.current;W(e.deps,t=>Ue(t,e))});const m=n.getComponentProps(u.getValue());/* @__PURE__ */
2
- return f.createElement(t,{...m,ref:o})})},St=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&v.write(this.update)}},Ot=Symbol.for("AnimatedComponent"),Tt=e=>$.str(e)?e:e&&$.str(e.displayName)?e.displayName:$.fun(e)&&e.name||null;function At(e,...t){return $.fun(e)?e(...t):e}var Ct=(e,t)=>!0===e||!!(t&&e&&($.fun(e)?e(t):U(e).includes(t))),Dt=(e,t)=>$.obj(e)?t&&e[t]:e,Rt=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,jt=e=>e,Lt=(e,t=jt)=>{let n=Et;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const n=t(e[i],i);$.und(n)||(r[i]=n)}return r},Et=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Ft={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Pt(e){const t=function(e){const t={};let n=0;if(V(e,(e,r)=>{Ft[r]||(t[r]=e,n++)}),n)return t}(e);if(t){const n={to:t};return V(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function Nt(e){return e=Ye(e),$.arr(e)?e.map(Nt):st(e)?Y.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Yt(e){for(const t in e)return!0;return!1}function It(e){return $.fun(e)||$.arr(e)&&$.obj(e[0])}function $t(e,t){e.ref?.delete(e),t?.delete(e)}function zt(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Wt={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Vt={...Wt.default,mass:1,damping:1,easing:Ee.linear,clamp:!1},Ut=class{constructor(){this.velocity=0,Object.assign(this,Vt)}};function Ht(e,t){if($.und(t.decay)){const n=!$.und(t.tension)||!$.und(t.friction);!n&&$.und(t.frequency)&&$.und(t.damping)&&$.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var qt=[],Gt=class{constructor(){this.changed=!1,this.values=qt,this.toValues=null,this.fromValues=qt,this.config=new Ut,this.immediate=!1}};function Bt(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((s,o)=>{let u,c,l=Ct(n.cancel??r?.cancel,t);if(l)h();else{$.und(n.pause)||(i.paused=Ct(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||Ct(e,t)),u=At(n.delay||0,t),e?(i.resumeQueue.add(d),a.pause()):(a.resume(),d())}function f(){i.resumeQueue.add(d),i.timeouts.delete(c),c.cancel(),u=c.time-v.now()}function d(){u>0&&!Y.skipAnimation?(i.delayed=!0,c=v.setTimeout(h,u),i.pauseQueue.add(f),i.timeouts.add(c)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(f),i.timeouts.delete(c),e<=(i.cancelId||0)&&(l=!0);try{a.start({...n,callId:e,cancel:l},s)}catch(e){o(e)}}})}var Zt=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?Jt(e.get()):t.every(e=>e.noop)?Qt(e.get()):Xt(e.get(),t.every(e=>e.finished)),Qt=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Xt=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Jt=e=>({value:e,cancelled:!0,finished:!1});function Kt(e,t,n,r){const{callId:i,parentId:a,onRest:s}=t,{asyncTo:o,promise:u}=n;return a||e!==o||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const c=Lt(t,(e,t)=>"onRest"===t?void 0:e);let l,f;const d=new Promise((e,t)=>(l=e,f=t)),h=e=>{const t=i<=(n.cancelId||0)&&Jt(r)||i!==n.asyncId&&Xt(r,!1);if(t)throw e.result=t,f(e),e},p=(e,t)=>{const a=new tn,s=new nn;return(async()=>{if(Y.skipAnimation)throw en(n),s.result=Xt(r,!1),f(s),s;h(a);const o=$.obj(e)?{...e}:{...t,to:e};o.parentId=i,V(c,(e,t)=>{$.und(o[t])&&(o[t]=e)});const u=await r.start(o);return h(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),u})()};let m;if(Y.skipAnimation)return en(n),Xt(r,!1);try{let t;t=$.arr(e)?(async e=>{for(const t of e)await p(t)})(e):Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([t.then(l),d]),m=Xt(r.get(),!0,!1)}catch(e){if(e instanceof tn)m=e.result;else{if(!(e instanceof nn))throw e;m=e.result}}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?o:void 0,n.promise=a?u:void 0)}return $.fun(s)&&v.batchedUpdates(()=>{s(m,r,r.item)}),m})():u}function en(e,t){H(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var tn=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},nn=class extends Error{constructor(){super("SkipAnimationSignal")}},rn=e=>e instanceof sn,an=1,sn=class extends ze{constructor(){super(...arguments),this.id=an++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ht(this);return e&&e.getValue()}to(...e){return Y.to(this,e)}interpolate(...e){return it(`${nt}The "interpolate" function is deprecated in v9 (use "to" instead)`),Y.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){$e(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ie.sort(this),$e(this,{type:"priority",parent:this,priority:e})}},on=Symbol.for("SpringPhase"),un=e=>(1&e[on])>0,cn=e=>(2&e[on])>0,ln=e=>(4&e[on])>0,fn=(e,t)=>t?e[on]|=3:e[on]&=-3,dn=(e,t)=>t?e[on]|=4:e[on]&=-5,hn=class extends sn{constructor(e,t){if(super(),this.animation=new Gt,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:/* @__PURE__ */new Set,resumeQueue:/* @__PURE__ */new Set,timeouts:/* @__PURE__ */new Set},this._pendingCalls=/* @__PURE__ */new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!$.und(e)||!$.und(t)){const n=$.obj(e)?{...e}:{...t,from:e};$.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(cn(this)||this._state.asyncTo)||ln(this)}get goal(){return Ye(this.animation.to)}get velocity(){const e=ht(this);return e instanceof bt?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return un(this)}get isAnimating(){return cn(this)}get isPaused(){return ln(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:a}=r,s=mt(r.to);!s&&Ne(r.to)&&(i=U(Ye(r.to))),r.values.forEach((o,u)=>{if(o.done)return;const c=o.constructor==yt?1:s?s[u].lastPosition:i[u];let l=r.immediate,f=c;if(!l){if(f=o.lastPosition,a.tension<=0)return void(o.done=!0);let t=o.elapsedTime+=e;const n=r.fromValues[u],i=null!=o.v0?o.v0:o.v0=$.arr(a.velocity)?a.velocity[u]:a.velocity;let s;const d=a.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if($.und(a.duration))if(a.decay){const e=!0===a.decay?.998:a.decay,r=Math.exp(-(1-e)*t);f=n+i/(1-e)*(1-r),l=Math.abs(o.lastPosition-f)<=d,s=i*r}else{s=null==o.lastVelocity?i:o.lastVelocity;const t=a.restVelocity||d/10,r=a.clamp?0:a.bounce,u=!$.und(r),h=n==c?o.v0>0:n<c;let p,m=!1;const g=1,b=Math.ceil(e/g);for(let e=0;e<b&&(p=Math.abs(s)>t,p||(l=Math.abs(c-f)<=d,!l));++e)u&&(m=f==c||f>c==h,m&&(s=-s*r,f=c)),s+=(1e-6*-a.tension*(f-c)+.001*-a.friction*s)/a.mass*g,f+=s*g}else{let r=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,o.durationProgress>0&&(o.elapsedTime=a.duration*o.durationProgress,t=o.elapsedTime+=e)),r=(a.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,o.durationProgress=r),f=n+a.easing(r)*(c-n),s=(f-o.lastPosition)/e,l=1==r}o.lastVelocity=s,Number.isNaN(f)&&(console.warn("Got NaN while animating:",this),l=!0)}s&&!s[u].done&&(l=!1),l?o.done=!0:t=!1,o.setValue(f,a.round)&&(n=!0)});const o=ht(this),u=o.getValue();if(t){const e=Ye(r.to);u===e&&!n||a.decay?n&&a.decay&&this._onChange(u):(o.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(u)}set(e){return v.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(cn(this)){const{to:e,config:t}=this.animation;v.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return $.und(e)?(n=this.queue||[],this.queue=[]):n=[$.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>Zt(this,e))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),en(this._state,e&&this._lastCallId),v.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=$.obj(n)?n[t]:n,(null==n||It(n))&&(n=void 0),r=$.obj(r)?r[t]:r,null==r&&(r=void 0);const i={to:n,from:r};return un(this)||(e.reverse&&([n,r]=[r,n]),r=Ye(r),$.und(r)?ht(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Lt(e,(e,t)=>/^on/.test(t)?Dt(e,n):e)),vn(this,e,"onProps"),xn(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return Bt(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{ln(this)||(dn(this,!0),B(a.pauseQueue),xn(this,"onPause",Xt(this,pn(this,this.animation.to)),this))},resume:()=>{ln(this)&&(dn(this,!1),cn(this)&&this._resume(),B(a.resumeQueue),xn(this,"onResume",Xt(this,pn(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=mn(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Jt(this));const r=!$.und(e.to),i=!$.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(Jt(this));this._lastToId=t.callId}const{key:a,defaultProps:s,animation:o}=this,{to:u,from:c}=o;let{to:l=u,from:f=c}=e;!i||r||t.default&&!$.und(l)||(l=f),t.reverse&&([l,f]=[f,l]);const d=!z(f,c);d&&(o.from=f),f=Ye(f);const h=!z(l,u);h&&this._focus(l);const p=It(t.to),{config:m}=o,{decay:g,velocity:b}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){n&&(Ht(n={...n},t),t={...n,...t}),Ht(e,t),Object.assign(e,t);for(const t in Vt)null==e[t]&&(e[t]=Vt[t]);let{frequency:r,damping:i}=e;const{mass:a}=e;$.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*i*a/r)}(m,At(t.config,a),t.config!==s.config?At(s.config,a):void 0);let y=ht(this);if(!y||$.und(l))return n(Xt(this,!0));const _=$.und(t.reset)?i&&!t.default:!$.und(f)&&Ct(t.reset,a),x=_?f:this.get(),w=Nt(l),k=$.num(w)||$.arr(w)||st(w),M=!p&&(!k||Ct(s.immediate||t.immediate,a));if(h){const e=kt(l);if(e!==y.constructor){if(!M)throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`);y=this._set(w)}}const S=y.constructor;let O=Ne(l),T=!1;if(!O){const e=_||!un(this)&&d;(h||e)&&(T=z(Nt(x),w),O=!T),(z(o.immediate,M)||M)&&z(m.decay,g)&&z(m.velocity,b)||(O=!0)}if(T&&cn(this)&&(o.changed&&!_?O=!0:O||this._stop(u)),!p&&((O||Ne(u))&&(o.values=y.getPayload(),o.toValues=Ne(l)?null:S==yt?[1]:U(w)),o.immediate!=M&&(o.immediate=M,M||_||this._set(u)),O)){const{onRest:e}=o;W(_n,e=>vn(this,t,e));const r=Xt(this,pn(this,u));B(this._pendingCalls,r),this._pendingCalls.add(n),o.changed&&v.batchedUpdates(()=>{o.changed=!_,e?.(r,this),_?At(s.onRest,r):o.onStart?.(r,this)})}_&&this._set(x),p?n(Kt(t.to,t,this._state,this)):O?this._start():cn(this)&&!h?this._pendingCalls.add(n):n(Qt(x))}_focus(e){const t=this.animation;e!==t.to&&(Ie(this)&&this._detach(),t.to=e,Ie(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ne(t)&&(Ve(t,this),rn(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ne(e)&&Ue(e,this)}_set(e,t=!0){const n=Ye(e);if(!$.und(n)){const e=ht(this);if(!e||!z(n,e.getValue())){const r=kt(n);e&&e.constructor==r?e.setValue(n):pt(this,r.create(n)),e&&v.batchedUpdates(()=>{this._onChange(n,t)})}}return ht(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,xn(this,"onStart",Xt(this,pn(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),At(this.animation.onChange,e,this)),At(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ht(this).reset(Ye(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),cn(this)||(fn(this,!0),ln(this)||this._resume())}_resume(){Y.skipAnimation?this.finish():ie.start(this)}_stop(e,t){if(cn(this)){fn(this,!1);const n=this.animation;W(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),$e(this,{type:"idle",parent:this});const r=t?Jt(this.get()):Xt(this.get(),pn(this,e??n.to));B(this._pendingCalls,r),n.changed&&(n.changed=!1,xn(this,"onRest",r,this))}}};function pn(e,t){const n=Nt(t);return z(Nt(e.get()),n)}function mn(e,t=e.loop,n=e.to){const r=At(t);if(r){const i=!0!==r&&Pt(r),a=(i||e).reverse,s=!i||i.reset;return gn({...e,loop:t,default:!1,pause:void 0,to:!a||It(n)?n:void 0,from:s?e.from:void 0,reset:s,...i})}}function gn(e){const{to:t,from:n}=e=Pt(e),r=/* @__PURE__ */new Set;return $.obj(t)&&yn(t,r),$.obj(n)&&yn(n,r),e.keys=r.size?Array.from(r):null,e}function bn(e){const t=gn(e);return $.und(t.default)&&(t.default=Lt(t)),t}function yn(e,t){V(e,(e,n)=>null!=e&&t.add(n))}var _n=["onStart","onRest","onChange","onPause","onResume"];function vn(e,t,n){e.animation[n]=t[n]!==Rt(t,n)?Dt(t[n],e.key):void 0}function xn(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var wn=["onStart","onChange","onRest"],kn=1,Mn=class{constructor(e,t){this.id=kn++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=/* @__PURE__ */new Set,this._changed=/* @__PURE__ */new Set,this._started=!1,this._state={paused:!1,pauseQueue:/* @__PURE__ */new Set,resumeQueue:/* @__PURE__ */new Set,timeouts:/* @__PURE__ */new Set},this._events={onStart:/* @__PURE__ */new Map,onChange:/* @__PURE__ */new Map,onRest:/* @__PURE__ */new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];$.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(gn(e)),this}start(e){let{queue:t}=this;return e?t=U(e).map(gn):this.queue=[],this._flush?this._flush(this,t):(Rn(this,t),Sn(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;W(U(t),t=>n[t].stop(!!e))}else en(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if($.und(e))this.start({pause:!0});else{const t=this.springs;W(U(e),e=>t[e].pause())}return this}resume(e){if($.und(e))this.start({pause:!1});else{const t=this.springs;W(U(e),e=>t[e].resume())}return this}each(e){V(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,H(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));const a=!r&&this._started,s=i||a&&n.size?this.get():null;i&&t.size&&H(t,([e,t])=>{t.value=s,e(t,this,this._item)}),a&&(this._started=!1,H(n,([e,t])=>{t.value=s,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}v.onFrame(this._onFrame)}};function Sn(e,t){return Promise.all(t.map(t=>On(e,t))).then(t=>Zt(e,t))}async function On(e,t,n){const{keys:r,to:i,from:a,loop:s,onRest:o,onResolve:u}=t,c=$.obj(t.default)&&t.default;s&&(t.loop=!1),!1===i&&(t.to=null),!1===a&&(t.from=null);const l=$.arr(i)||$.fun(i)?i:void 0;l?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):W(wn,n=>{const r=t[n];if($.fun(r)){const i=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}});const f=e._state;t.pause===!f.paused?(f.paused=t.pause,B(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);const d=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===Rt(t,"cancel");(l||h&&f.asyncId)&&d.push(Bt(++e._lastAsyncId,{props:t,state:f,actions:{pause:I,resume:I,start(t,n){h?(en(f,e._lastAsyncId),n(Jt(e))):(t.onRest=o,n(Kt(l,t,f,e)))}}})),f.paused&&await new Promise(e=>{f.resumeQueue.add(e)});const p=Zt(e,await Promise.all(d));if(s&&p.finished&&(!n||!p.noop)){const n=mn(t,s,i);if(n)return Rn(e,[n]),On(e,n,!0)}return u&&v.batchedUpdates(()=>u(p,e,e.item)),p}function Tn(e,t){const n={...e.springs};return t&&W(U(t),e=>{$.und(e.keys)&&(e=gn(e)),$.obj(e.to)||(e={...e,to:void 0}),Dn(n,e,e=>Cn(e))}),An(e,n),n}function An(e,t){V(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,Ve(t,e))})}function Cn(e,t){const n=new hn;return n.key=e,t&&Ve(n,t),n}function Dn(e,t,n){t.keys&&W(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Rn(e,t){W(t,t=>{Dn(e.springs,t,t=>Cn(t,e))})}var jn=f.createContext({pause:!1,immediate:!1}),Ln=()=>{const e=[],t=function(t){at(`${nt}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return W(e,(e,i)=>{if($.und(t))r.push(e.start());else{const a=n(t,e,i);a&&r.push(e.start(a))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return W(e,e=>e.pause(...arguments)),this},t.resume=function(){return W(e,e=>e.resume(...arguments)),this},t.set=function(t){W(e,(e,n)=>{const r=$.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){const n=[];return W(e,(e,r)=>{if($.und(t))n.push(e.start());else{const i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return W(e,e=>e.stop(...arguments)),this},t.update=function(t){return W(e,(e,n)=>e.update(this._getProps(t,e,n))),this};const n=function(e,t,n){return $.fun(e)?e(n,t):e};return t._getProps=n,t};function En(t,n){const r=$.fun(t),[[i],a]=function(t,n,r){const i=$.fun(n)&&n;i&&!r&&(r=[]);const a=e.useMemo(()=>i||3==arguments.length?Ln():void 0,[]),s=e.useRef(0),o=ut(),u=e.useMemo(()=>({ctrls:[],queue:[],flush(e,t){const n=Tn(e,t);return s.current>0&&!u.queue.length&&!Object.keys(n).some(t=>!e.springs[t])?Sn(e,t):new Promise(r=>{An(e,n),u.queue.push(()=>{r(Sn(e,t))}),o()})}}),[]),c=e.useRef([...u.ctrls]),l=e.useRef([]),f=ft(t)||0;function d(e,t){for(let r=e;r<t;r++){const e=c.current[r]||(c.current[r]=new Mn(null,u.flush)),t=i?i(r,e):n[r];t&&(l.current[r]=bn(t))}}e.useMemo(()=>{W(c.current.slice(t,f),e=>{$t(e,a),e.stop(!0)}),c.current.length=t,d(f,t)},[t]),e.useMemo(()=>{d(0,Math.min(f,t))},r);const h=c.current.map((e,t)=>Tn(e,l.current[t])),p=e.useContext(jn),m=ft(p),g=p!==m&&Yt(p);ot(()=>{s.current++,u.ctrls=c.current;const{queue:e}=u;e.length&&(u.queue=[],W(e,e=>e())),W(c.current,(e,t)=>{a?.add(e),g&&e.start({default:p});const n=l.current[t];n&&(zt(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),ct(()=>()=>{W(u.ctrls,e=>e.stop(!0))});const b=h.map(e=>({...e}));return a?[b,a]:b}(1,r?t:[t],r?n||[]:n);return r||2==arguments.length?[i,a]:i}function Fn(t,n,r){const i=$.fun(n)&&n,{reset:a,sort:s,trail:o=0,expires:u=!0,exitBeforeEnter:c=!1,onDestroyed:l,ref:d,config:h}=i?i():n,p=e.useMemo(()=>i||3==arguments.length?Ln():void 0,[]),m=U(t),g=[],b=e.useRef(null),y=a?null:b.current;ot(()=>{b.current=g}),ct(()=>(W(g,e=>{p?.add(e.ctrl),e.ctrl.ref=p}),()=>{W(b.current,e=>{e.expired&&clearTimeout(e.expirationId),$t(e.ctrl,p),e.ctrl.stop(!0)})}));const _=function(e,{key:t,keys:n=t},r){if(null===n){const t=/* @__PURE__ */new Set;return e.map(e=>{const n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):Pn++})}return $.und(n)?e:$.fun(n)?e.map(n):U(n)}(m,i?i():n,y),v=a&&b.current||[];ot(()=>W(v,({ctrl:e,item:t,key:n})=>{$t(e,p),At(l,t,n)}));const x=[];if(y&&W(y,(e,t)=>{e.expired?(clearTimeout(e.expirationId),v.push(e)):~(t=x[t]=_.indexOf(e.key))&&(g[t]=e)}),W(m,(e,t)=>{g[t]||(g[t]={key:_[t],item:e,phase:"mount",ctrl:new Mn},g[t].ctrl.item=e)}),x.length){let e=-1;const{leave:t}=i?i():n;W(x,(n,r)=>{const i=y[r];~n?(e=g.indexOf(i),g[e]={...i,item:m[n]}):t&&g.splice(++e,0,i)})}$.fun(s)&&g.sort((e,t)=>s(e.item,t.item));let w=-o;const k=ut(),M=Lt(n),S=/* @__PURE__ */new Map,O=e.useRef(/* @__PURE__ */new Map),T=e.useRef(!1);W(g,(e,t)=>{const r=e.key,a=e.phase,s=i?i():n;let l,f;const p=At(s.delay||0,r);if("mount"==a)l=s.enter,f="enter";else{const e=_.indexOf(r)<0;if("leave"!=a)if(e)l=s.leave,f="leave";else{if(!(l=s.update))return;f="update"}else{if(e)return;l=s.enter,f="enter"}}l=At(l,e.item,t),l=$.obj(l)?Pt(l):{to:l},l.config||(l.config=At(h||M.config,e.item,t,f)),w+=o;const m={...M,delay:p+w,ref:d,immediate:s.immediate,reset:!1,...l};if("enter"==f&&$.und(m.from)){const r=i?i():n,a=$.und(r.initial)||y?r.from:r.initial;m.from=At(a,e.item,t)}const{onResolve:g}=m;m.onResolve=e=>{At(g,e);const t=b.current,n=t.find(e=>e.key===r);if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){const e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){const t=At(u,n.item);if(!1!==t){const r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(k,r)))}}e&&t.some(e=>e.expired)&&(O.current.delete(n),c&&(T.current=!0),k())}};const v=Tn(e.ctrl,m);"leave"===f&&c?O.current.set(e,{phase:f,springs:v,payload:m}):S.set(e,{phase:f,springs:v,payload:m})});const A=e.useContext(jn),C=ft(A),D=A!==C&&Yt(A);ot(()=>{D&&W(g,e=>{e.ctrl.start({default:A})})},[A]),W(S,(e,t)=>{if(O.current.size){const e=g.findIndex(e=>e.key===t.key);g.splice(e,1)}}),ot(()=>{W(O.current.size?O.current:S,({phase:e,payload:t},n)=>{const{ctrl:r}=n;n.phase=e,p?.add(r),D&&"enter"==e&&r.start({default:A}),t&&(zt(r,t.ref),!r.ref&&!p||T.current?(r.start(t),T.current&&(T.current=!1)):r.update(t))})},a?void 0:r);const R=e=>/* @__PURE__ */f.createElement(f.Fragment,null,g.map((t,n)=>{const{springs:r}=S.get(t)||t.ctrl,i=e({...r},t.item,t,n),a=$.str(t.key)||$.num(t.key)?t.key:t.ctrl.id,s=f.version<"19.0.0",o=i?.props??{},u=s?i?.ref:o?.ref;return i&&i.type?/* @__PURE__ */f.createElement(i.type,{...o,key:a,ref:u}):i}));return p?[R,p]:R}var Pn=1,Nn=class extends sn{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=/* @__PURE__ */new Set,this.calc=Te(...t);const n=this._get(),r=kt(n);pt(this,r.create(n))}advance(e){const t=this._get();z(t,this.get())||(ht(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&In(this._active)&&$n(this)}_get(){const e=$.arr(this.source)?this.source.map(Ye):U(Ye(this.source));return this.calc(...e)}_start(){this.idle&&!In(this._active)&&(this.idle=!1,W(mt(this),e=>{e.done=!1}),Y.skipAnimation?(v.batchedUpdates(()=>this.advance()),$n(this)):ie.start(this))}_attach(){let e=1;W(U(this.source),t=>{Ne(t)&&Ve(t,this),rn(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){W(U(this.source),e=>{Ne(e)&&Ue(e,this)}),this._active.clear(),$n(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=U(this.source).reduce((e,t)=>Math.max(e,(rn(t)?t.priority:0)+1),0))}};function Yn(e){return!1!==e.idle}function In(e){return!e.size||Array.from(e).every(Yn)}function $n(e){e.idle||(e.idle=!0,W(mt(e),e=>{e.done=!0}),$e(e,{type:"idle",parent:e}))}var zn=(e,...t)=>new Nn(e,t);Y.assign({createStringInterpolator:tt,to:(e,t)=>new Nn(e,t)});var Wn=/^--/;function Vn(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Wn.test(e)||Hn.hasOwnProperty(e)&&Hn[e]?(""+t).trim():t+"px"}var Un={},Hn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qn=["Webkit","Ms","Moz","O"];Hn=Object.keys(Hn).reduce((e,t)=>(qn.forEach(n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t]),e),Hn);var Gn=/^(matrix|translate|scale|rotate|skew)/,Bn=/^(translate)/,Zn=/^(rotate|skew)/,Qn=(e,t)=>$.num(e)&&0!==e?e+t:e,Xn=(e,t)=>$.arr(e)?e.every(e=>Xn(e,t)):$.num(e)?e===t:parseFloat(e)===t,Jn=class extends vt{constructor({x:e,y:t,z:n,...r}){const i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(e=>[`translate3d(${e.map(e=>Qn(e,"px")).join(",")})`,Xn(e,0)])),V(r,(e,t)=>{if("transform"===t)i.push([e||""]),a.push(e=>[e,""===e]);else if(Gn.test(t)){if(delete r[t],$.und(e))return;const n=Bn.test(t)?"px":Zn.test(t)?"deg":"";i.push(U(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${Qn(i,n)})`,Xn(i,0)]:e=>[`${t}(${e.map(e=>Qn(e,n)).join(",")})`,Xn(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new Kn(i,a)),super(r)}},Kn=class extends ze{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return W(this.inputs,(n,r)=>{const i=Ye(n[0]),[a,s]=this.transforms[r]($.arr(i)?i:n.map(Ye));e+=" "+a,t=t&&s}),t?"none":e}observerAdded(e){1==e&&W(this.inputs,e=>W(e,e=>Ne(e)&&Ve(e,this)))}observerRemoved(e){0==e&&W(this.inputs,e=>W(e,e=>Ne(e)&&Ue(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),$e(this,e)}};Y.assign({batchedUpdates:s.unstable_batchedUpdates,createStringInterpolator:tt,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var er=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new vt(e),getComponentProps:r=e=>e}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{const t=Tt(e)||"Anonymous";return(e=$.str(e)?a[e]||(a[e]=Mt(e,i)):e[Ot]||(e[Ot]=Mt(e,i))).displayName=`Animated(${t})`,e};return V(e,(t,n)=>{$.arr(e)&&(n=Tt(t)),a[n]=a(t)}),{animated:a}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:r,style:i,children:a,scrollTop:s,scrollLeft:o,viewBox:u,...c}=t,l=Object.values(c),f=Object.keys(c).map(t=>n||e.hasAttribute(t)?t:Un[t]||(Un[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));void 0!==a&&(e.textContent=a);for(const t in i)if(i.hasOwnProperty(t)){const n=Vn(t,i[t]);Wn.test(t)?e.style.setProperty(t,n):e.style[t]=n}f.forEach((t,n)=>{e.setAttribute(t,l[n])}),void 0!==r&&(e.className=r),void 0!==s&&(e.scrollTop=s),void 0!==o&&(e.scrollLeft=o),void 0!==u&&e.setAttribute("viewBox",u)},createAnimatedStyle:e=>new Jn(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),tr=er.animated,nr=function(e,t){return e===t||e!=e&&t!=t},rr=function(e,t){for(var n=e.length;n--;)if(nr(e[n][0],t))return n;return-1},ir=Array.prototype.splice;function ar(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ar.prototype.clear=function(){this.__data__=[],this.size=0},ar.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0||(n==t.length-1?t.pop():ir.call(t,n,1),--this.size,0))},ar.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?void 0:t[n][1]},ar.prototype.has=function(e){return rr(this.__data__,e)>-1},ar.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var sr,or=ar,ur="object"==typeof g&&g&&g.Object===Object&&g,cr="object"==typeof self&&self&&self.Object===Object&&self,lr=ur||cr||Function("return this")(),fr=lr.Symbol,dr=Object.prototype,hr=dr.hasOwnProperty,pr=dr.toString,mr=fr?fr.toStringTag:void 0,gr=Object.prototype.toString,br=fr?fr.toStringTag:void 0,yr=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":br&&br in Object(e)?function(e){var t=hr.call(e,mr),n=e[mr];try{e[mr]=void 0;var r=!0}catch(e){}var i=pr.call(e);return r&&(t?e[mr]=n:delete e[mr]),i}(e):function(e){return gr.call(e)}(e)},_r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},vr=function(e){if(!_r(e))return!1;var t=yr(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},xr=lr["__core-js_shared__"],wr=(sr=/[^.]+$/.exec(xr&&xr.keys&&xr.keys.IE_PROTO||""))?"Symbol(src)_1."+sr:"",kr=Function.prototype.toString,Mr=function(e){if(null!=e){try{return kr.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Sr=/^\[object .+?Constructor\]$/,Or=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tr=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!_r(e)||(t=e,wr&&wr in t))&&(vr(e)?Or:Sr).test(Mr(e));var t}(n)?n:void 0},Ar=Tr(lr,"Map"),Cr=Tr(Object,"create"),Dr=Object.prototype.hasOwnProperty,Rr=Object.prototype.hasOwnProperty;function jr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}jr.prototype.clear=function(){this.__data__=Cr?Cr(null):{},this.size=0},jr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},jr.prototype.get=function(e){var t=this.__data__;if(Cr){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Dr.call(t,e)?t[e]:void 0},jr.prototype.has=function(e){var t=this.__data__;return Cr?void 0!==t[e]:Rr.call(t,e)},jr.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Cr&&void 0===t?"__lodash_hash_undefined__":t,this};var Lr=jr,Er=function(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map};function Fr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Fr.prototype.clear=function(){this.size=0,this.__data__={hash:new Lr,map:new(Ar||or),string:new Lr}},Fr.prototype.delete=function(e){var t=Er(this,e).delete(e);return this.size-=t?1:0,t},Fr.prototype.get=function(e){return Er(this,e).get(e)},Fr.prototype.has=function(e){return Er(this,e).has(e)},Fr.prototype.set=function(e,t){var n=Er(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var Pr=Fr;function Nr(e){var t=this.__data__=new or(e);this.size=t.size}Nr.prototype.clear=function(){this.__data__=new or,this.size=0},Nr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Nr.prototype.get=function(e){return this.__data__.get(e)},Nr.prototype.has=function(e){return this.__data__.has(e)},Nr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof or){var r=n.__data__;if(!Ar||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Pr(r)}return n.set(e,t),this.size=n.size,this};var Yr=Nr,Ir=function(){try{var e=Tr(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),$r=function(e,t,n){"__proto__"==t&&Ir?Ir(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},zr=function(e,t,n){(void 0!==n&&!nr(e[t],n)||void 0===n&&!(t in e))&&$r(e,t,n)},Wr=b(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n?lr.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}),Vr=lr.Uint8Array,Ur=Object.create,Hr=function(){function e(){}return function(t){if(!_r(t))return{};if(Ur)return Ur(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),qr=Hr,Gr=function(e,t){return function(n){return e(t(n))}},Br=Gr(Object.getPrototypeOf,Object),Zr=Object.prototype,Qr=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Zr)},Xr=function(e){return null!=e&&"object"==typeof e},Jr=function(e){return Xr(e)&&"[object Arguments]"==yr(e)},Kr=Object.prototype,ei=Kr.hasOwnProperty,ti=Kr.propertyIsEnumerable,ni=Jr(function(){return arguments}())?Jr:function(e){return Xr(e)&&ei.call(e,"callee")&&!ti.call(e,"callee")},ri=Array.isArray,ii=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},ai=function(e){return null!=e&&ii(e.length)&&!vr(e)},si=function(e){return Xr(e)&&ai(e)},oi=function(){return!1},ui=b(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n?lr.Buffer:void 0;e.exports=(i?i.isBuffer:void 0)||oi}),ci=Function.prototype.toString,li=Object.prototype.hasOwnProperty,fi=ci.call(Object),di=function(e){if(!Xr(e)||"[object Object]"!=yr(e))return!1;var t=Br(e);if(null===t)return!0;var n=li.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ci.call(n)==fi},hi={};hi["[object Float32Array]"]=hi["[object Float64Array]"]=hi["[object Int8Array]"]=hi["[object Int16Array]"]=hi["[object Int32Array]"]=hi["[object Uint8Array]"]=hi["[object Uint8ClampedArray]"]=hi["[object Uint16Array]"]=hi["[object Uint32Array]"]=!0,hi["[object Arguments]"]=hi["[object Array]"]=hi["[object ArrayBuffer]"]=hi["[object Boolean]"]=hi["[object DataView]"]=hi["[object Date]"]=hi["[object Error]"]=hi["[object Function]"]=hi["[object Map]"]=hi["[object Number]"]=hi["[object Object]"]=hi["[object RegExp]"]=hi["[object Set]"]=hi["[object String]"]=hi["[object WeakMap]"]=!1;var pi,mi,gi,bi,yi=b(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&ur.process,a=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}),_i=yi&&yi.isTypedArray,vi=_i?function(e){return function(t){return e(t)}}(_i):function(e){return Xr(e)&&ii(e.length)&&!!hi[yr(e)]},xi=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},wi=Object.prototype.hasOwnProperty,ki=function(e,t,n){var r=e[t];wi.call(e,t)&&nr(r,n)&&(void 0!==n||t in e)||$r(e,t,n)},Mi=/^(?:0|[1-9]\d*)$/,Si=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Mi.test(e))&&e>-1&&e%1==0&&e<t},Oi=Object.prototype.hasOwnProperty,Ti=function(e,t){var n=ri(e),r=!n&&ni(e),i=!n&&!r&&ui(e),a=!n&&!r&&!i&&vi(e),s=n||r||i||a,o=s?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=o.length;for(var c in e)!t&&!Oi.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Si(c,u))||o.push(c);return o},Ai=Object.prototype.hasOwnProperty,Ci=function(e){return ai(e)?Ti(e,!0):function(e){if(!_r(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Qr(e),n=[];for(var r in e)("constructor"!=r||!t&&Ai.call(e,r))&&n.push(r);return n}(e)},Di=function e(t,n,r,i,a){t!==n&&function(e,t,n){for(var r=-1,i=Object(e),a=n(e),s=a.length;s--;){var o=a[++r];if(!1===t(i[o],o))break}}(n,function(s,o){if(a||(a=new Yr),_r(s))!function(e,t,n,r,i,a,s){var o,u=xi(e,n),c=xi(t,n),l=s.get(c);if(l)zr(e,n,l);else{var f=a?a(u,c,n+"",e,t,s):void 0,d=void 0===f;if(d){var h=ri(c),p=!h&&ui(c),m=!h&&!p&&vi(c);f=c,h||p||m?ri(u)?f=u:si(u)?f=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(u):p?(d=!1,f=Wr(c,!0)):m?(d=!1,f=function(e){var t,n,r=(n=new(t=e.buffer).constructor(t.byteLength),new Vr(n).set(new Vr(t)),n);return new e.constructor(r,e.byteOffset,e.length)}(c)):f=[]:di(c)||ni(c)?(f=u,ni(u)?f=function(e,t,n){var r=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],o=void 0;void 0===o&&(o=e[s]),r?$r(n,s,o):ki(n,s,o)}return n}(o=u,Ci(o)):_r(u)&&!vr(u)||(f=function(e){return"function"!=typeof e.constructor||Qr(e)?{}:qr(Br(e))}(c))):d=!1}d&&(s.set(c,f),i(f,c,r,a,s),s.delete(c)),zr(e,n,f)}}(t,n,o,r,e,i,a);else{var u=i?i(xi(t,o),s,o+"",t,n,a):void 0;void 0===u&&(u=s),zr(t,o,u)}},Ci)},Ri=function(e){return e},ji=Math.max,Li=function(e,t,n){return t=ji(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=ji(r.length-t,0),s=Array(a);++i<a;)s[i]=r[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=r[i];return o[t]=n(s),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,o)}},Ei=Ir?function(e,t){return Ir(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ri,Fi=Date.now,Pi=(pi=Ei,mi=0,gi=0,function(){var e=Fi(),t=16-(e-gi);if(gi=e,t>0){if(++mi>=800)return arguments[0]}else mi=0;return pi.apply(void 0,arguments)}),Ni=function(e,t){return Pi(Li(e,t,Ri),e+"")},Yi=(bi=function(e,t,n){Di(e,t,n)},Ni(function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(i=bi.length>3&&"function"==typeof i?(r--,i):void 0,a&&function(e,t,n){if(!_r(n))return!1;var r=typeof t;return!!("number"==r?ai(n)&&Si(t,n.length):"string"==r&&t in n)&&nr(n[t],e)}(t[0],t[1],a)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var s=t[n];s&&bi(e,s,n)}return e})),Ii=Yi,$i=function(e){return"symbol"==typeof e||Xr(e)&&"[object Symbol]"==yr(e)},zi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wi=/^\w*$/;function Vi(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(Vi.Cache||Pr),n}Vi.Cache=Pr;var Ui,Hi,qi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gi=/\\(\\)?/g,Bi=(Ui=Vi(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(qi,function(e,n,r,i){t.push(r?i.replace(Gi,"$1"):n||e)}),t},function(e){return 500===Hi.size&&Hi.clear(),e}),Hi=Ui.cache,Ui),Zi=Bi,Qi=fr?fr.prototype:void 0,Xi=Qi?Qi.toString:void 0,Ji=function e(t){if("string"==typeof t)return t;if(ri(t))return function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}(t,e)+"";if($i(t))return Xi?Xi.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},Ki=function(e,t){return ri(e)?e:function(e,t){if(ri(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!$i(e))||Wi.test(e)||!zi.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:Zi(function(e){return null==e?"":Ji(e)}(e))},ea=function(e){if("string"==typeof e||$i(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},ta=function(e,t){for(var n=0,r=(t=Ki(t,e)).length;null!=e&&n<r;)e=e[ea(t[n++])];return n&&n==r?e:void 0},na=function(e,t,n){var r=null==e?void 0:ta(e,t);return void 0===r?n:r},ra=function(e,t,n,r){if(!_r(e))return e;for(var i=-1,a=(t=Ki(t,e)).length,s=a-1,o=e;null!=o&&++i<a;){var u=ea(t[i]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=s){var l=o[u];void 0===(c=r?r(l,u,o):void 0)&&(c=_r(l)?l:Si(t[i+1])?[]:{})}ki(o,u,c),o=o[u]}return e},ia=function(e,t,n){return null==e?e:ra(e,t,n)};function aa(){return aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aa.apply(null,arguments)}var sa=["outlineWidth","outlineColor","outlineOpacity"],oa=function(e){return function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,sa)},ua=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],ca={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"#ffffff",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}},la=e.createContext(null),fa={},da=function(t){var n=t.theme,r=t.children,i=function(t){return e.useMemo(function(){return function(e,t){var n=Ii({},ca,t);return ua.forEach(function(e){ia(n,e,function(e,t){return aa({},t,e)}(na(n,e),n.text))}),n}(0,t)},[t])}(void 0===n?fa:n);return o.jsx(la.Provider,{value:i,children:r})},ha=function(){var t=e.useContext(la);if(null===t)throw new Error("Unable to find the theme, did you forget to wrap your component with ThemeProvider?");return t};function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pa.apply(null,arguments)}var ma=["basic","chip","container","table","tableCell","tableCellValue"],ga={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},ba=function(e,t){return"translate("+e+"px, "+t+"px)"},ya=e.memo(function(t){var n,r=t.position,i=t.anchor,a=t.children,s=ha(),u=Ad(),c=u.animate,l=u.config,f=rh(),d=f[0],h=f[1],p=e.useRef(!1),m=void 0,g=!1,b=h.width>0&&h.height>0,y=Math.round(r[0]),_=Math.round(r[1]);b&&("top"===i?(y-=h.width/2,_-=h.height+14):"right"===i?(y+=14,_-=h.height/2):"bottom"===i?(y-=h.width/2,_+=14):"left"===i?(y-=h.width+14,_-=h.height/2):"center"===i&&(y-=h.width/2,_-=h.height/2),m={transform:ba(y,_)},p.current||(g=!0),p.current=[y,_]);var v=En({to:m,config:l,immediate:!c||g}),x=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(s.tooltip,ma),w=pa({},ga,x,{transform:null!=(n=v.transform)?n:ba(y,_),opacity:v.transform?1:0});return o.jsx(tr.div,{ref:d,style:w,children:a})});ya.displayName="TooltipWrapper";var _a=e.memo(function(e){var t=e.size,n=void 0===t?12:t,r=e.style;return o.jsx("span",{style:pa({display:"block",width:n,height:n,background:e.color},void 0===r?{}:r)})}),va=e.memo(function(e){var t,n=e.id,r=e.value,i=e.format,a=e.enableChip,s=void 0!==a&&a,u=e.color,c=e.renderContent,l=ha(),f=ih(i);if("function"==typeof c)t=c();else{var d=r;void 0!==f&&void 0!==d&&(d=f(d)),t=o.jsxs("div",{style:l.tooltip.basic,children:[s&&o.jsx(_a,{color:u,style:l.tooltip.chip}),void 0!==d?o.jsxs("span",{children:[n,": ",o.jsx("strong",{children:""+d})]}):n]})}return o.jsx("div",{style:l.tooltip.container,role:"tooltip",children:t})}),xa={width:"100%",borderCollapse:"collapse"},wa=e.memo(function(e){var t,n=e.title,r=e.rows,i=void 0===r?[]:r,a=e.renderContent,s=ha();return i.length?(t="function"==typeof a?a():o.jsxs("div",{children:[n&&n,o.jsx("table",{style:pa({},xa,s.tooltip.table),children:o.jsx("tbody",{children:i.map(function(e,t){return o.jsx("tr",{children:e.map(function(e,t){return o.jsx("td",{style:s.tooltip.tableCell,children:e},t)})},t)})})})]}),o.jsx("div",{style:s.tooltip.container,children:t})):null});wa.displayName="TableTooltip";var ka=e.memo(function(t){var n=t.x0,r=t.x1,i=t.y0,a=t.y1,s=ha(),u=Ad(),c=u.animate,l=u.config,f=e.useMemo(function(){return pa({},s.crosshair.line,{pointerEvents:"none"})},[s.crosshair.line]),d=En({x1:n,x2:r,y1:i,y2:a,config:l,immediate:!c});return o.jsx(tr.line,pa({},d,{fill:"none",style:f}))});ka.displayName="CrosshairLine";var Ma=e.memo(function(e){var t,n,r=e.width,i=e.height,a=e.type,s=e.x,u=e.y;return"cross"===a?(t={x0:s,x1:s,y0:0,y1:i},n={x0:0,x1:r,y0:u,y1:u}):"top-left"===a?(t={x0:s,x1:s,y0:0,y1:u},n={x0:0,x1:s,y0:u,y1:u}):"top"===a?t={x0:s,x1:s,y0:0,y1:u}:"top-right"===a?(t={x0:s,x1:s,y0:0,y1:u},n={x0:s,x1:r,y0:u,y1:u}):"right"===a?n={x0:s,x1:r,y0:u,y1:u}:"bottom-right"===a?(t={x0:s,x1:s,y0:u,y1:i},n={x0:s,x1:r,y0:u,y1:u}):"bottom"===a?t={x0:s,x1:s,y0:u,y1:i}:"bottom-left"===a?(t={x0:s,x1:s,y0:u,y1:i},n={x0:0,x1:s,y0:u,y1:u}):"left"===a?n={x0:0,x1:s,y0:u,y1:u}:"x"===a?t={x0:s,x1:s,y0:0,y1:i}:"y"===a&&(n={x0:0,x1:r,y0:u,y1:u}),o.jsxs(o.Fragment,{children:[t&&o.jsx(ka,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&o.jsx(ka,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});Ma.displayName="Crosshair";var Sa=e.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),Oa={isVisible:!1,position:[null,null],content:null,anchor:null},Ta=e.createContext(Oa),Aa=function(){var t=e.useContext(Sa);if(void 0===t)throw new Error("useTooltip must be used within a TooltipProvider");return t},Ca=function(){var t=function(){var t=e.useContext(Ta);if(void 0===t)throw new Error("useTooltipState must be used within a TooltipProvider");return t}();return function(e){return e.isVisible}(t)?o.jsx(ya,{position:t.position,anchor:t.anchor,children:t.content}):null},Da=function(t){var n=t.children,r=function(t){var n=e.useState(Oa),r=n[0],i=n[1],a=e.useCallback(function(e,t,n){void 0===n&&(n="top"),i({isVisible:!0,position:[t[0],t[1]],anchor:n,content:e})},[i]),s=e.useCallback(function(e,n,r){void 0===r&&(r="top");var a=t.current.getBoundingClientRect(),s=t.current.offsetWidth,o=s===a.width?1:s/a.width,u="touches"in n?n.touches[0]:n,c=(u.clientX-a.left)*o;"left"!==r&&"right"!==r||(r=c<a.width/2?"right":"left"),i({isVisible:!0,position:[c,(u.clientY-a.top)*o],anchor:r,content:e})},[t,i]),o=e.useCallback(function(){i(Oa)},[i]);return{actions:e.useMemo(function(){return{showTooltipAt:a,showTooltipFromEvent:s,hideTooltip:o}},[a,s,o]),state:r}}(t.container);return o.jsx(Sa.Provider,{value:r.actions,children:o.jsx(Ta.Provider,{value:r.state,children:n})})};let Ra;Ra="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let ja=null,La=null;const Ea=Ra.clearTimeout,Fa=Ra.setTimeout,Pa=Ra.cancelAnimationFrame||Ra.mozCancelAnimationFrame||Ra.webkitCancelAnimationFrame,Na=Ra.requestAnimationFrame||Ra.mozRequestAnimationFrame||Ra.webkitRequestAnimationFrame;null==Pa||null==Na?(ja=Ea,La=function(e){return Fa(e,20)}):(ja=function([e,t]){Pa(e),Ea(t)},La=function(e){const t=Na(function(){Ea(n),e()}),n=Fa(function(){Pa(t),e()},20);return[t,n]});class Ya extends e.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},i=parseFloat(r.paddingLeft||"0"),a=parseFloat(r.paddingRight||"0"),s=parseFloat(r.paddingTop||"0"),o=parseFloat(r.paddingBottom||"0"),u=this._parentNode.getBoundingClientRect(),c=u.height-s-o,l=u.width-i-a;if(!e&&this.state.height!==c||!t&&this.state.width!==l){this.setState({height:c,width:l});const e=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};"function"==typeof n&&n({height:c,width:l,get scaledHeight(){return e(),c},get scaledWidth(){return e(),l}})}}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(t)):(this._detectElementResize=function(e){let t,n,r,i,a,s,o;const u="undefined"!=typeof document&&document.attachEvent;if(!u){s=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},a=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},o=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;s(this),this.__resizeRAF__&&ja(this.__resizeRAF__),this.__resizeRAF__=La(function(){a(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})};let e=!1,u="";r="animationstart";const c="Webkit Moz O ms".split(" ");let l="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){f=c[n],u="-"+f.toLowerCase()+"-",r=l[n],e=!0;break}}n="resizeanim",t="@"+u+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=u+"animation: 1ms "+n+"; "}return{addResizeListener:function(a,c){if(u)a.attachEvent("onresize",c);else{if(!a.__resizeTriggers__){const u=a.ownerDocument,c=Ra.getComputedStyle(a);c&&"static"===c.position&&(a.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',a=n.head||n.getElementsByTagName("head")[0],s=n.createElement("style");s.id="detectElementResize",s.type="text/css",null!=e&&s.setAttribute("nonce",e),s.styleSheet?s.styleSheet.cssText=r:s.appendChild(n.createTextNode(r)),a.appendChild(s)}}(u),a.__resizeLast__={},a.__resizeListeners__=[],(a.__resizeTriggers__=u.createElement("div")).className="resize-triggers";const l=u.createElement("div");l.className="expand-trigger",l.appendChild(u.createElement("div"));const f=u.createElement("div");f.className="contract-trigger",a.__resizeTriggers__.appendChild(l),a.__resizeTriggers__.appendChild(f),a.appendChild(a.__resizeTriggers__),s(a),a.addEventListener("scroll",o,!0),r&&(a.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&s(a)},a.__resizeTriggers__.addEventListener(r,a.__resizeTriggers__.__animationListener__))}a.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(u)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",o,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:a=!1,doNotBailOutOnEmptyChildren:s=!1,nonce:o,onResize:u,style:c={},tagName:l="div",...f}=this.props,{height:d,width:h}=this.state,p={overflow:"visible"},m={};let g=!1;return i||(0===d&&(g=!0),p.height=0,m.height=d,m.scaledHeight=d),a||(0===h&&(g=!0),p.width=0,m.width=h,m.scaledWidth=h),s&&(g=!1),e.createElement(l,{ref:this._setRef,style:{...p,...c},...f},!g&&t(m))}}function Ia(e,t){return e===t}function $a(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function za(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Wa(){}var Va=.7,Ua=1/Va,Ha="\\s*([+-]?\\d+)\\s*",qa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ga="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ba=/^#([0-9a-f]{3,8})$/,Za=new RegExp(`^rgb\\(${Ha},${Ha},${Ha}\\)$`),Qa=new RegExp(`^rgb\\(${Ga},${Ga},${Ga}\\)$`),Xa=new RegExp(`^rgba\\(${Ha},${Ha},${Ha},${qa}\\)$`),Ja=new RegExp(`^rgba\\(${Ga},${Ga},${Ga},${qa}\\)$`),Ka=new RegExp(`^hsl\\(${qa},${Ga},${Ga}\\)$`),es=new RegExp(`^hsla\\(${qa},${Ga},${Ga},${qa}\\)$`),ts={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};function ns(){return this.rgb().formatHex()}function rs(){return this.rgb().formatRgb()}function is(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ba.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?as(t):3===n?new cs(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ss(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ss(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Za.exec(e))?new cs(t[1],t[2],t[3],1):(t=Qa.exec(e))?new cs(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Xa.exec(e))?ss(t[1],t[2],t[3],t[4]):(t=Ja.exec(e))?ss(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ka.exec(e))?ms(t[1],t[2]/100,t[3]/100,1):(t=es.exec(e))?ms(t[1],t[2]/100,t[3]/100,t[4]):ts.hasOwnProperty(e)?as(ts[e]):"transparent"===e?new cs(NaN,NaN,NaN,0):null}function as(e){return new cs(e>>16&255,e>>8&255,255&e,1)}function ss(e,t,n,r){return r<=0&&(e=t=n=NaN),new cs(e,t,n,r)}function os(e){return e instanceof Wa||(e=is(e)),e?new cs((e=e.rgb()).r,e.g,e.b,e.opacity):new cs}function us(e,t,n,r){return 1===arguments.length?os(e):new cs(e,t,n,null==r?1:r)}function cs(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ls(){return`#${ps(this.r)}${ps(this.g)}${ps(this.b)}`}function fs(){const e=ds(this.opacity);return`${1===e?"rgb(":"rgba("}${hs(this.r)}, ${hs(this.g)}, ${hs(this.b)}${1===e?")":`, ${e})`}`}function ds(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function hs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ps(e){return((e=hs(e))<16?"0":"")+e.toString(16)}function ms(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new bs(e,t,n,r)}function gs(e){if(e instanceof bs)return new bs(e.h,e.s,e.l,e.opacity);if(e instanceof Wa||(e=is(e)),!e)return new bs;if(e instanceof bs)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,o=a-i,u=(a+i)/2;return o?(s=t===a?(n-r)/o+6*(n<r):n===a?(r-t)/o+2:(t-n)/o+4,o/=u<.5?a+i:2-a-i,s*=60):o=u>0&&u<1?0:s,new bs(s,o,u,e.opacity)}function bs(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ys(e){return(e=(e||0)%360)<0?e+360:e}function _s(e){return Math.max(0,Math.min(1,e||0))}function vs(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}$a(Wa,is,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ns,formatHex:ns,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return gs(this).formatHsl()},formatRgb:rs,toString:rs}),$a(cs,us,za(Wa,{brighter(e){return e=null==e?Ua:Math.pow(Ua,e),new cs(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Va:Math.pow(Va,e),new cs(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new cs(hs(this.r),hs(this.g),hs(this.b),ds(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:ls,formatHex:ls,formatHex8:function(){return`#${ps(this.r)}${ps(this.g)}${ps(this.b)}${ps(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:fs,toString:fs})),$a(bs,function(e,t,n,r){return 1===arguments.length?gs(e):new bs(e,t,n,null==r?1:r)},za(Wa,{brighter(e){return e=null==e?Ua:Math.pow(Ua,e),new bs(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Va:Math.pow(Va,e),new bs(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),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 cs(vs(e>=240?e-240:e+120,i,r),vs(e,i,r),vs(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new bs(ys(this.h),_s(this.s),_s(this.l),ds(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=ds(this.opacity);return`${1===e?"hsl(":"hsla("}${ys(this.h)}, ${100*_s(this.s)}%, ${100*_s(this.l)}%${1===e?")":`, ${e})`}`}}));const xs=Math.PI/180,ws=180/Math.PI;var ks=-.14861,Ms=1.78277,Ss=-.29227,Os=-.90649,Ts=1.97294,As=Ts*Os,Cs=Ts*Ms,Ds=Ms*Ss-Os*ks;function Rs(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof js)return new js(e.h,e.s,e.l,e.opacity);e instanceof cs||(e=os(e));var t=e.g/255,n=e.b/255,r=(Ds*n+As*(e.r/255)-Cs*t)/(Ds+As-Cs),i=n-r,a=(Ts*(t-r)-Ss*i)/Os,s=Math.sqrt(a*a+i*i)/(Ts*r*(1-r)),o=s?Math.atan2(a,i)*ws-120:NaN;return new js(o<0?o+360:o,s,r,e.opacity)}(e):new js(e,t,n,null==r?1:r)}function js(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}$a(js,Rs,za(Wa,{brighter(e){return e=null==e?Ua:Math.pow(Ua,e),new js(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Va:Math.pow(Va,e),new js(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*xs,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new cs(255*(t+n*(ks*r+Ms*i)),255*(t+n*(Ss*r+Os*i)),255*(t+n*(Ts*r)),this.opacity)}}));var Ls=e=>()=>e;function Es(e,t){return function(n){return e+n*t}}function Fs(e,t){var n=t-e;return n?Es(e,n):Ls(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?Fs:function(t,n){return n-t?function(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)}}(t,n,e):Ls(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=us(e)).r,(t=us(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),s=Fs(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=s(t),e+""}}return r.gamma=e,r}(1);var Ps,Ns=(Ps=function(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];return function(e,t,n,r,i){var a=e*e,s=a*e;return((1-3*e+3*a-s)*t+(4-6*a+3*s)*n+(1+3*e+3*a-3*s)*r+s*i)/6}((n-r/t)*t,r>0?e[r-1]:2*i-a,i,a,r<t-1?e[r+2]:2*a-i)}},function(e){var t,n,r=e.length,i=new Array(r),a=new Array(r),s=new Array(r);for(t=0;t<r;++t)n=us(e[t]),i[t]=n.r||0,a[t]=n.g||0,s[t]=n.b||0;return i=Ps(i),a=Ps(a),s=Ps(s),n.opacity=1,function(e){return n.r=i(e),n.g=a(e),n.b=s(e),n+""}});function Ys(e){return function t(n){function r(t,r){var i=e((t=Rs(t)).h,(r=Rs(r)).h),a=Fs(t.s,r.s),s=Fs(t.l,r.l),o=Fs(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=a(e),t.l=s(Math.pow(e,n)),t.opacity=o(e),t+""}}return n=+n,r.gamma=t,r}(1)}Ys(function(e,t){var n=t-e;return n?Es(e,n>180||n<-180?n-360*Math.round(n/360):n):Ls(isNaN(e)?t:e)});var Is=Ys(Fs);function $s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Pr;++t<n;)this.add(e[t])}$s.prototype.add=$s.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},$s.prototype.has=function(e){return this.__data__.has(e)};var zs=$s,Ws=function(e){return e!=e},Vs=function(e,t){return!(null==e||!e.length)&&function(e,t){return t==t?function(e,t){for(var n=-1,r=e.length;++n<r;)if(e[n]===t)return n;return-1}(e,t):function(e,t){for(var n=e.length,r=-1;++r<n;)if(t(e[r],r,e))return r;return-1}(e,Ws)}(e,t)>-1},Us=function(e,t){return e.has(t)},Hs=Ni(function(e,t){return si(e)?function(e,t){var n=-1,r=Vs,i=!0,a=e.length,s=[],o=t.length;if(!a)return s;t.length>=200&&(r=Us,i=!1,t=new zs(t));e:for(;++n<a;){var u=e[n],c=u;if(u=0!==u?u:0,i&&c==c){for(var l=o;l--;)if(t[l]===c)continue e;s.push(u)}else r(t,c,void 0)||s.push(u)}return s}(e,t):[]}),qs=Hs;function Gs(e){return function(){return e}}const Bs=Math.abs,Zs=Math.atan2,Qs=Math.cos,Xs=Math.max,Js=Math.min,Ks=Math.sin,eo=Math.sqrt,to=1e-12,no=Math.PI,ro=no/2,io=2*no;function ao(e){return e>=1?ro:e<=-1?-ro:Math.asin(e)}const so=Math.PI,oo=2*so,uo=1e-6,co=oo-uo;function lo(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class fo{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?lo:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return lo;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let a=this._x1,s=this._y1,o=n-e,u=r-t,c=a-e,l=s-t,f=c*c+l*l;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(f>uo)if(Math.abs(l*o-u*c)>uo&&i){let d=n-a,h=r-s,p=o*o+u*u,m=d*d+h*h,g=Math.sqrt(p),b=Math.sqrt(f),y=i*Math.tan((so-Math.acos((p+f-m)/(2*g*b)))/2),_=y/b,v=y/g;Math.abs(_-1)>uo&&this._append`L${e+_*c},${t+_*l}`,this._append`A${i},${i},0,0,${+(l*d>c*h)},${this._x1=e+v*o},${this._y1=t+v*u}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,i,a){if(e=+e,t=+t,a=!!a,(n=+n)<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(r),o=n*Math.sin(r),u=e+s,c=t+o,l=1^a,f=a?r-i:i-r;null===this._x1?this._append`M${u},${c}`:(Math.abs(this._x1-u)>uo||Math.abs(this._y1-c)>uo)&&this._append`L${u},${c}`,n&&(f<0&&(f=f%oo+oo),f>co?this._append`A${n},${n},0,1,${l},${e-s},${t-o}A${n},${n},0,1,${l},${this._x1=u},${this._y1=c}`:f>uo&&this._append`A${n},${n},0,${+(f>=so)},${l},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function ho(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new fo(t)}function po(e){return e.innerRadius}function mo(e){return e.outerRadius}function go(e){return e.startAngle}function bo(e){return e.endAngle}function yo(e){return e&&e.padAngle}function _o(e,t,n,r,i,a,s){var o=e-n,u=t-r,c=(s?a:-a)/eo(o*o+u*u),l=c*u,f=-c*o,d=e+l,h=t+f,p=n+l,m=r+f,g=(d+p)/2,b=(h+m)/2,y=p-d,_=m-h,v=y*y+_*_,x=i-a,w=d*m-p*h,k=(_<0?-1:1)*eo(Xs(0,x*x*v-w*w)),M=(w*_-y*k)/v,S=(-w*y-_*k)/v,O=(w*_+y*k)/v,T=(-w*y+_*k)/v,A=M-g,C=S-b,D=O-g,R=T-b;return A*A+C*C>D*D+R*R&&(M=O,S=T),{cx:M,cy:S,x01:-l,y01:-f,x11:M*(i/x-1),y11:S*(i/x-1)}}function vo(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function xo(e){this._context=e}function wo(e){return new xo(e)}function ko(e){return e[0]}function Mo(e){return e[1]}function So(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Oo(e){return e}function To(){}function Ao(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 Co(e){this._context=e}function Do(e){this._context=e}function Ro(e){this._context=e}function jo(e,t){this._basis=new Co(e),this._beta=t}xo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&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)}}},Co.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:Ao(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&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:Ao(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Do.prototype={areaStart:To,areaEnd:To,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ao(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Ro.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||0!==this._line&&3===this._point)&&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:Ao(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},jo.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,i=e[0],a=t[0],s=e[n]-i,o=t[n]-a,u=-1;++u<=n;)this._basis.point(this._beta*e[u]+(1-this._beta)*(i+(r=u/n)*s),this._beta*t[u]+(1-this._beta)*(a+r*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Lo=function e(t){function n(e){return 1===t?new Co(e):new jo(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function Eo(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 Fo(e,t){this._context=e,this._k=(1-t)/6}Fo.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:Eo(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&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:Eo(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Po=function e(t){function n(e){return new Fo(e,t)}return n.tension=function(t){return e(+t)},n}(0);function No(e,t){this._context=e,this._k=(1-t)/6}No.prototype={areaStart:To,areaEnd:To,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Eo(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Yo=function e(t){function n(e){return new No(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Io(e,t){this._context=e,this._k=(1-t)/6}Io.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||0!==this._line&&3===this._point)&&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:Eo(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var $o=function e(t){function n(e){return new Io(e,t)}return n.tension=function(t){return e(+t)},n}(0);function zo(e,t,n){var r=e._x1,i=e._y1,a=e._x2,s=e._y2;if(e._l01_a>to){var o=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*o-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*o-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>to){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/l,s=(s*c+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,i,a,s,e._x2,e._y2)}function Wo(e,t){this._context=e,this._alpha=t}Wo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&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:zo(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Vo=function e(t){function n(e){return t?new Wo(e,t):new Fo(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Uo(e,t){this._context=e,this._alpha=t}Uo.prototype={areaStart:To,areaEnd:To,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=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:zo(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ho=function e(t){function n(e){return t?new Uo(e,t):new No(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function qo(e,t){this._context=e,this._alpha=t}qo.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||0!==this._line&&3===this._point)&&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:zo(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Go=function e(t){function n(e){return t?new qo(e,t):new Io(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Bo(e){this._context=e}function Zo(e){return e<0?-1:1}function Qo(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),o=(a*i+s*r)/(r+i);return(Zo(a)+Zo(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(o))||0}function Xo(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Jo(e,t,n){var r=e._x0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,e._y0+s*t,i-s,a-s*n,i,a)}function Ko(e){this._context=e}function eu(e){this._context=new tu(e)}function tu(e){this._context=e}function nu(e){this._context=e}function ru(e){var t,n,r=e.length-1,i=new Array(r),a=new Array(r),s=new Array(r);for(i[0]=0,a[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)a[t]-=n=i[t]/a[t-1],s[t]-=n*s[t-1];for(i[r-1]=s[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(s[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function iu(e,t){this._context=e,this._t=t}Bo.prototype={areaStart:To,areaEnd:To,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))}},Ko.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:Jo(this,this._t0,Xo(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+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,Jo(this,Xo(this,n=Qo(this,e,t)),n);break;default:Jo(this,this._t0,n=Qo(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(eu.prototype=Object.create(Ko.prototype)).point=function(e,t){Ko.prototype.point.call(this,t,e)},tu.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)}},nu.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]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=ru(e),i=ru(t),a=0,s=1;s<n;++a,++s)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[s],t[s]);(this._line||0!==this._line&&1===n)&&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)}},iu.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&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};class au extends Map{constructor(e,t=ou){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(su(this,e))}has(e){return super.has(su(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function su({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function ou(e){return null!==e&&"object"==typeof e?e.valueOf():e}function uu(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}const cu=Symbol("implicit");function lu(){var e=new au,t=[],n=[],r=cu;function i(i){let a=e.get(i);if(void 0===a){if(r!==cu)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new au;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return lu(t,n).unknown(r)},uu.apply(i,arguments),i}function fu(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)]}var du,hu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pu(e){if(!(t=hu.exec(e)))throw new Error("invalid format: "+e);var t;return new mu({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function mu(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function gu(e,t){var n=fu(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")}pu.prototype=mu.prototype,mu.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 bu={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return gu(100*e,t)},r:gu,s:function(e,t){var n=fu(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(du=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return a===s?r:a>s?r+new Array(a-s+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+fu(e,Math.max(0,t+a-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function yu(e){return e}var _u,vu,xu=Array.prototype.map,wu=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];_u=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?yu:(t=xu.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,a=[],s=0,o=t[0],u=0;i>0&&o>0&&(u+o+1>r&&(o=Math.max(1,r-u)),a.push(e.substring(i-=o,i+o)),!((u+=o+1)>r));)o=t[s=(s+1)%t.length];return a.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",o=void 0===e.numerals?yu:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(xu.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"-":e.minus+"",l=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=pu(e)).fill,n=e.align,f=e.sign,d=e.symbol,h=e.zero,p=e.width,m=e.comma,g=e.precision,b=e.trim,y=e.type;"n"===y?(m=!0,y="g"):bu[y]||(void 0===g&&(g=12),b=!0,y="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var _="$"===d?i:"#"===d&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",v="$"===d?a:/[%p]/.test(y)?u:"",x=bu[y],w=/[defgprs%]/.test(y);function k(e){var i,a,u,d=_,k=v;if("c"===y)k=x(e)+k,e="";else{var M=(e=+e)<0||1/e<0;if(e=isNaN(e)?l:x(Math.abs(e),g),b&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),M&&0===+e&&"+"!==f&&(M=!1),d=(M?"("===f?f:c:"-"===f||"("===f?"":f)+d,k=("s"===y?wu[8+du/3]:"")+k+(M&&"("===f?")":""),w)for(i=-1,a=e.length;++i<a;)if(48>(u=e.charCodeAt(i))||u>57){k=(46===u?s+e.slice(i+1):e.slice(i))+k,e=e.slice(0,i);break}}m&&!h&&(e=r(e,Infinity));var S=d.length+e.length+k.length,O=S<p?new Array(p-S+1).join(t):"";switch(m&&h&&(e=r(O+e,O.length?p-k.length:Infinity),O=""),n){case"<":e=d+e+k+O;break;case"=":e=d+O+e+k;break;case"^":e=O.slice(0,S=O.length>>1)+d+e+k+O.slice(S);break;default:e=O+d+e+k}return o(e)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return e+""},k}return{format:f,formatPrefix:function(e,t){var n=f(((e=pu(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(function(e){return(e=fu(Math.abs(e)))?e[1]:NaN}(t)/3))),i=Math.pow(10,-r),a=wu[8+r/3];return function(e){return n(i*e)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),vu=_u.format;var ku=new Date,Mu=new Date;function Su(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,a){var s,o=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return o;do{o.push(s=new Date(+n)),t(n,a),e(n)}while(s<n&&n<r);return o},i.filter=function(n){return Su(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(i.count=function(t,r){return ku.setTime(+t),Mu.setTime(+r),e(ku),e(Mu),Math.floor(n(ku,Mu))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i:null}),i}const Ou=864e5,Tu=6048e5;var Au=Su(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/Ou,e=>e.getDate()-1),Cu=Au;function Du(e){return Su(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/Tu})}var Ru=Du(0),ju=Du(1);Du(2),Du(3);var Lu=Du(4);Du(5),Du(6);var Eu=Su(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Eu.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Su(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var Fu=Eu,Pu=Su(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Ou},function(e){return e.getUTCDate()-1}),Nu=Pu;function Yu(e){return Su(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/Tu})}var Iu=Yu(0),$u=Yu(1);Yu(2),Yu(3);var zu=Yu(4);Yu(5),Yu(6);var Wu=Su(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Wu.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Su(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var Vu=Wu;function Uu(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 Hu(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 qu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var Gu,Bu,Zu={"-":"",_:" ",0:"0"},Qu=/^\s*\d+/,Xu=/^%/,Ju=/[\\^$*+?|[\]().{}]/g;function Ku(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 ec(e){return e.replace(Ju,"\\$&")}function tc(e){return new RegExp("^(?:"+e.map(ec).join("|")+")","i")}function nc(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function rc(e,t,n){var r=Qu.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ic(e,t,n){var r=Qu.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ac(e,t,n){var r=Qu.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function sc(e,t,n){var r=Qu.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function oc(e,t,n){var r=Qu.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function uc(e,t,n){var r=Qu.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function cc(e,t,n){var r=Qu.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function lc(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 fc(e,t,n){var r=Qu.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function dc(e,t,n){var r=Qu.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function hc(e,t,n){var r=Qu.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function pc(e,t,n){var r=Qu.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function mc(e,t,n){var r=Qu.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function gc(e,t,n){var r=Qu.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function bc(e,t,n){var r=Qu.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function yc(e,t,n){var r=Qu.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function _c(e,t,n){var r=Qu.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function vc(e,t,n){var r=Xu.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function xc(e,t,n){var r=Qu.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function wc(e,t,n){var r=Qu.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function kc(e,t){return Ku(e.getDate(),t,2)}function Mc(e,t){return Ku(e.getHours(),t,2)}function Sc(e,t){return Ku(e.getHours()%12||12,t,2)}function Oc(e,t){return Ku(1+Cu.count(Fu(e),e),t,3)}function Tc(e,t){return Ku(e.getMilliseconds(),t,3)}function Ac(e,t){return Tc(e,t)+"000"}function Cc(e,t){return Ku(e.getMonth()+1,t,2)}function Dc(e,t){return Ku(e.getMinutes(),t,2)}function Rc(e,t){return Ku(e.getSeconds(),t,2)}function jc(e){var t=e.getDay();return 0===t?7:t}function Lc(e,t){return Ku(Ru.count(Fu(e)-1,e),t,2)}function Ec(e){var t=e.getDay();return t>=4||0===t?Lu(e):Lu.ceil(e)}function Fc(e,t){return e=Ec(e),Ku(Lu.count(Fu(e),e)+(4===Fu(e).getDay()),t,2)}function Pc(e){return e.getDay()}function Nc(e,t){return Ku(ju.count(Fu(e)-1,e),t,2)}function Yc(e,t){return Ku(e.getFullYear()%100,t,2)}function Ic(e,t){return Ku((e=Ec(e)).getFullYear()%100,t,2)}function $c(e,t){return Ku(e.getFullYear()%1e4,t,4)}function zc(e,t){var n=e.getDay();return Ku((e=n>=4||0===n?Lu(e):Lu.ceil(e)).getFullYear()%1e4,t,4)}function Wc(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ku(t/60|0,"0",2)+Ku(t%60,"0",2)}function Vc(e,t){return Ku(e.getUTCDate(),t,2)}function Uc(e,t){return Ku(e.getUTCHours(),t,2)}function Hc(e,t){return Ku(e.getUTCHours()%12||12,t,2)}function qc(e,t){return Ku(1+Nu.count(Vu(e),e),t,3)}function Gc(e,t){return Ku(e.getUTCMilliseconds(),t,3)}function Bc(e,t){return Gc(e,t)+"000"}function Zc(e,t){return Ku(e.getUTCMonth()+1,t,2)}function Qc(e,t){return Ku(e.getUTCMinutes(),t,2)}function Xc(e,t){return Ku(e.getUTCSeconds(),t,2)}function Jc(e){var t=e.getUTCDay();return 0===t?7:t}function Kc(e,t){return Ku(Iu.count(Vu(e)-1,e),t,2)}function el(e){var t=e.getUTCDay();return t>=4||0===t?zu(e):zu.ceil(e)}function tl(e,t){return e=el(e),Ku(zu.count(Vu(e),e)+(4===Vu(e).getUTCDay()),t,2)}function nl(e){return e.getUTCDay()}function rl(e,t){return Ku($u.count(Vu(e)-1,e),t,2)}function il(e,t){return Ku(e.getUTCFullYear()%100,t,2)}function al(e,t){return Ku((e=el(e)).getUTCFullYear()%100,t,2)}function sl(e,t){return Ku(e.getUTCFullYear()%1e4,t,4)}function ol(e,t){var n=e.getUTCDay();return Ku((e=n>=4||0===n?zu(e):zu.ceil(e)).getUTCFullYear()%1e4,t,4)}function ul(){return"+0000"}function cl(){return"%"}function ll(e){return+e}function fl(e){return Math.floor(+e/1e3)}function dl(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n}Gu=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,s=e.shortDays,o=e.months,u=e.shortMonths,c=tc(i),l=nc(i),f=tc(a),d=nc(a),h=tc(s),p=nc(s),m=tc(o),g=nc(o),b=tc(u),y=nc(u),_={a:function(e){return s[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return o[e.getMonth()]},c:null,d:kc,e:kc,f:Ac,g:Ic,G:zc,H:Mc,I:Sc,j:Oc,L:Tc,m:Cc,M:Dc,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:ll,s:fl,S:Rc,u:jc,U:Lc,V:Fc,w:Pc,W:Nc,x:null,X:null,y:Yc,Y:$c,Z:Wc,"%":cl},v={a:function(e){return s[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return o[e.getUTCMonth()]},c:null,d:Vc,e:Vc,f:Bc,g:al,G:ol,H:Uc,I:Hc,j:qc,L:Gc,m:Zc,M:Qc,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:ll,s:fl,S:Xc,u:Jc,U:Kc,V:tl,w:nl,W:rl,x:null,X:null,y:il,Y:sl,Z:ul,"%":cl},x={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return M(e,t,n,r)},d:hc,e:hc,f:_c,g:cc,G:uc,H:mc,I:mc,j:pc,L:yc,m:dc,M:gc,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:fc,Q:xc,s:wc,S:bc,u:ic,U:ac,V:sc,w:rc,W:oc,x:function(e,t,r){return M(e,n,t,r)},X:function(e,t,n){return M(e,r,t,n)},y:cc,Y:uc,Z:lc,"%":vc};function w(e,t){return function(n){var r,i,a,s=[],o=-1,u=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++o<c;)37===e.charCodeAt(o)&&(s.push(e.slice(u,o)),null!=(i=Zu[r=e.charAt(++o)])?r=e.charAt(++o):i="e"===r?" ":"0",(a=t[r])&&(r=a(n,i)),s.push(r),u=o+1);return s.push(e.slice(u,o)),s.join("")}}function k(e,t){return function(n){var r,i,a=qu(1900,void 0,1);if(M(a,e,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(t&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=Hu(qu(a.y,0,1))).getUTCDay(),r=i>4||0===i?$u.ceil(r):$u(r),r=Nu.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=Uu(qu(a.y,0,1))).getDay(),r=i>4||0===i?ju.ceil(r):ju(r),r=Cu.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.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),i="Z"in a?Hu(qu(a.y,0,1)).getUTCDay():Uu(qu(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Hu(a)):Uu(a)}}function M(e,t,n,r){for(var i,a,s=0,o=t.length,u=n.length;s<o;){if(r>=u)return-1;if(37===(i=t.charCodeAt(s++))){if(i=t.charAt(s++),!(a=x[i in Zu?t.charAt(s++):i])||(r=a(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return _.x=w(n,_),_.X=w(r,_),_.c=w(t,_),v.x=w(n,v),v.X=w(r,v),v.c=w(t,v),{format:function(e){var t=w(e+="",_);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",v);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}({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"]}),Bu=Gu.format;var hl=dl("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),pl=dl("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),ml=dl("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),gl=dl("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),bl=dl("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),yl=dl("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),_l=dl("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),vl=dl("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),xl=dl("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),wl=dl("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),kl=e=>Ns(e[e.length-1]),Ml=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(dl),Sl=kl(Ml),Ol=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(dl),Tl=kl(Ol),Al=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(dl),Cl=kl(Al),Dl=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(dl),Rl=kl(Dl),jl=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(dl),Ll=kl(jl),El=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(dl),Fl=kl(El),Pl=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(dl),Nl=kl(Pl),Yl=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(dl),Il=kl(Yl),$l=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(dl),zl=kl($l),Wl=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(dl),Vl=kl(Wl),Ul=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(dl),Hl=kl(Ul),ql=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(dl),Gl=kl(ql),Bl=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(dl),Zl=kl(Bl),Ql=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(dl),Xl=kl(Ql),Jl=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(dl),Kl=kl(Jl),ef=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(dl),tf=kl(ef),nf=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(dl),rf=kl(nf),af=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(dl),sf=kl(af),of=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(dl),uf=kl(of),cf=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(dl),lf=kl(cf),ff=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(dl),df=kl(ff),hf=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(dl),pf=kl(hf),mf=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(dl),gf=kl(mf),bf=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(dl),yf=kl(bf),_f=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(dl),vf=kl(_f),xf=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(dl),wf=kl(xf),kf=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(dl),Mf=kl(kf),Sf=Is(Rs(300,.5,0),Rs(-240,.5,1)),Of=Is(Rs(-100,.75,.35),Rs(80,1.5,.8)),Tf=Is(Rs(260,.75,.35),Rs(80,1.5,.8)),Af=Rs(),Cf=us(),Df=Math.PI/3,Rf=2*Math.PI/3;function jf(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var Lf=jf(dl("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Ef=jf(dl("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Ff=jf(dl("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Pf=jf(dl("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),Nf=function(e,t){return null!=e&&t in Object(e)},Yf=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},If=fr?fr.isConcatSpreadable:void 0,$f=function(e){return ri(e)||ni(e)||!!(If&&e&&e[If])},zf=function e(t,n,r,i,a){var s=-1,o=t.length;for(r||(r=$f),a||(a=[]);++s<o;){var u=t[s];n>0&&r(u)?n>1?e(u,n-1,r,i,a):Yf(a,u):i||(a[a.length]=u)}return a},Wf=function(e){return null!=e&&e.length?zf(e,1):[]},Vf=function(e){return Pi(Li(e,void 0,Wf),e+"")}(function(e,t){return null==e?{}:function(e,t){return function(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var s=t[r],o=ta(e,s);n(0,s)&&ra(a,Ki(s,e),o)}return a}(e,t,function(t,n){return function(e,t){return null!=e&&function(e,t,n){for(var r=-1,i=(t=Ki(t,e)).length,a=!1;++r<i;){var s=ea(t[r]);if(!(a=null!=e&&n(e,s)))break;e=e[s]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&ii(i)&&Si(s,i)&&(ri(e)||ni(e))}(e,t,Nf)}(e,n)})}(e,t)}),Uf=Vf,Hf=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},qf=function(e,t,n,r,i,a){var s=1&n,o=e.length,u=t.length;if(o!=u&&!(s&&u>o))return!1;var c=a.get(e),l=a.get(t);if(c&&l)return c==t&&l==e;var f=-1,d=!0,h=2&n?new zs:void 0;for(a.set(e,t),a.set(t,e);++f<o;){var p=e[f],m=t[f];if(r)var g=s?r(m,p,f,t,e,a):r(p,m,f,e,t,a);if(void 0!==g){if(g)continue;d=!1;break}if(h){if(!Hf(t,function(e,t){if(!Us(h,t)&&(p===e||i(p,e,n,r,a)))return h.push(t)})){d=!1;break}}else if(p!==m&&!i(p,m,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d},Gf=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n},Bf=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},Zf=fr?fr.prototype:void 0,Qf=Zf?Zf.valueOf:void 0,Xf=Object.prototype.propertyIsEnumerable,Jf=Object.getOwnPropertySymbols,Kf=Jf?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var s=e[n];t(s)&&(a[i++]=s)}return a}(Jf(e),function(t){return Xf.call(e,t)}))}:function(){return[]},ed=Kf,td=Gr(Object.keys,Object),nd=Object.prototype.hasOwnProperty,rd=function(e){return function(e,t,n){var r=function(e){return ai(e)?Ti(e):function(e){if(!Qr(e))return td(e);var t=[];for(var n in Object(e))nd.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}(e);return ri(e)?r:Yf(r,n(e))}(e,0,ed)},id=Object.prototype.hasOwnProperty,ad=Tr(lr,"DataView"),sd=Tr(lr,"Promise"),od=Tr(lr,"Set"),ud=Tr(lr,"WeakMap"),cd="[object Map]",ld="[object Promise]",fd="[object Set]",dd="[object WeakMap]",hd="[object DataView]",pd=Mr(ad),md=Mr(Ar),gd=Mr(sd),bd=Mr(od),yd=Mr(ud),_d=yr;(ad&&_d(new ad(new ArrayBuffer(1)))!=hd||Ar&&_d(new Ar)!=cd||sd&&_d(sd.resolve())!=ld||od&&_d(new od)!=fd||ud&&_d(new ud)!=dd)&&(_d=function(e){var t=yr(e),n="[object Object]"==t?e.constructor:void 0,r=n?Mr(n):"";if(r)switch(r){case pd:return hd;case md:return cd;case gd:return ld;case bd:return fd;case yd:return dd}return t});var vd=_d,xd="[object Arguments]",wd="[object Array]",kd="[object Object]",Md=Object.prototype.hasOwnProperty,Sd=function e(t,n,r,i,a){return t===n||(null==t||null==n||!Xr(t)&&!Xr(n)?t!=t&&n!=n:function(e,t,n,r,i,a){var s=ri(e),o=ri(t),u=s?wd:vd(e),c=o?wd:vd(t),l=(u=u==xd?kd:u)==kd,f=(c=c==xd?kd:c)==kd,d=u==c;if(d&&ui(e)){if(!ui(t))return!1;s=!0,l=!1}if(d&&!l)return a||(a=new Yr),s||vi(e)?qf(e,t,n,r,i,a):function(e,t,n,r,i,a,s){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new Vr(e),new Vr(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return nr(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var o=Gf;case"[object Set]":if(o||(o=Bf),e.size!=t.size&&!(1&r))return!1;var u=s.get(e);if(u)return u==t;r|=2,s.set(e,t);var c=qf(o(e),o(t),r,i,a,s);return s.delete(e),c;case"[object Symbol]":if(Qf)return Qf.call(e)==Qf.call(t)}return!1}(e,t,u,n,r,i,a);if(!(1&n)){var h=l&&Md.call(e,"__wrapped__"),p=f&&Md.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,g=p?t.value():t;return a||(a=new Yr),i(m,g,n,r,a)}}return!!d&&(a||(a=new Yr),function(e,t,n,r,i,a){var s=1&n,o=rd(e),u=o.length;if(u!=rd(t).length&&!s)return!1;for(var c=u;c--;){var l=o[c];if(!(s?l in t:id.call(t,l)))return!1}var f=a.get(e),d=a.get(t);if(f&&d)return f==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var p=s;++c<u;){var m=e[l=o[c]],g=t[l];if(r)var b=s?r(g,m,l,t,e,a):r(m,g,l,e,t,a);if(!(void 0===b?m===g||i(m,g,n,r,a):b)){h=!1;break}p||(p="constructor"==l)}if(h&&!p){var y=e.constructor,_=t.constructor;y==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof _&&_ instanceof _||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,i,a))}(t,n,r,i,e,a))},Od=e.createContext(),Td=function(t){var n=t.children,r=t.animate,i=void 0===r||r,a=t.config,s=void 0===a?"default":a,u=e.useMemo(function(){var e,t="string"==typeof(e=s)||!ri(e)&&Xr(e)&&"[object String]"==yr(e)?Wt[s]:s;return{animate:i,config:t}},[i,s]);return o.jsx(Od.Provider,{value:u,children:n})},Ad=function(){return e.useContext(Od)},Cd=function(t){var n=t.children;return t.condition?e.cloneElement(t.wrapper,{},n):n},Dd={position:"relative"},Rd=function(t){var n=t.children,r=t.theme,i=t.renderWrapper,a=void 0===i||i,s=t.isInteractive,u=void 0===s||s,c=t.animate,l=t.motionConfig,f=e.useRef(null);return o.jsx(da,{theme:r,children:o.jsx(Td,{animate:c,config:l,children:o.jsx(Da,{container:f,children:o.jsxs(Cd,{condition:a,wrapper:o.jsx("div",{style:Dd,ref:f}),children:[n,u&&o.jsx(Ca,{})]})})})})},jd=function(e,t){return e.width===t.width&&e.height===t.height},Ld=function(t){var n=t.children,r=t.onResize,i=function(t,n,r){var i=r&&r.equalityFn||Ia,a=e.useRef(t),s=e.useState({})[1],o=function(t,n,r,i){var a=this,s=e.useRef(null),o=e.useRef(0),u=e.useRef(0),c=e.useRef(null),l=e.useRef([]),f=e.useRef(),d=e.useRef(),h=e.useRef(t),p=e.useRef(!0);h.current=t;var m="undefined"!=typeof window,g=!n&&0!==n&&m;if("function"!=typeof t)throw new TypeError("Expected a function");n=+n||0;var b=!!(r=r||{}).leading,y=!("trailing"in r)||!!r.trailing,_="maxWait"in r,v="debounceOnServer"in r&&!!r.debounceOnServer,x=_?Math.max(+r.maxWait||0,n):null;e.useEffect(function(){return p.current=!0,function(){p.current=!1}},[]);var w=e.useMemo(function(){var e=function(e){var t=l.current,n=f.current;return l.current=f.current=null,o.current=e,u.current=u.current||e,d.current=h.current.apply(n,t)},t=function(e,t){g&&cancelAnimationFrame(c.current),c.current=g?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!p.current)return!1;var t=e-s.current;return!s.current||t>=n||t<0||_&&e-o.current>=x},w=function(t){return c.current=null,y&&l.current?e(t):(l.current=f.current=null,d.current)},k=function e(){var i=Date.now();if(b&&u.current===o.current&&M(),r(i))return w(i);if(p.current){var a=n-(i-s.current),c=_?Math.min(a,x-(i-o.current)):a;t(e,c)}},M=function(){i&&i({})},S=function(){if(m||v){var i=Date.now(),u=r(i);if(l.current=[].slice.call(arguments),f.current=a,s.current=i,u){if(!c.current&&p.current)return o.current=s.current,t(k,n),b?e(s.current):d.current;if(_)return t(k,n),e(s.current)}return c.current||t(k,n),d.current}};return S.cancel=function(){var e=c.current;e&&(g?cancelAnimationFrame(c.current):clearTimeout(c.current)),o.current=0,l.current=s.current=f.current=c.current=null,e&&i&&i({})},S.isPending=function(){return!!c.current},S.flush=function(){return c.current?w(Date.now()):d.current},S},[b,_,n,x,y,g,m,v,i]);return w}(e.useCallback(function(e){a.current=e,s({})},[s]),n,r,s),u=e.useRef(t);return i(u.current,t)||(o(t),u.current=t),[a.current,o]}({width:t.width,height:t.height},t.debounceResize,{equalityFn:jd})[0];return e.useEffect(function(){null==r||r(i)},[i,r]),o.jsx(o.Fragment,{children:n(i)})},Ed=function(e){var t=e.children,n=e.onResize,r=e.debounceResize,i=void 0===r?0:r;return o.jsx(Ya,{defaultWidth:e.defaultWidth,defaultHeight:e.defaultHeight,children:function(e){return o.jsx(Ld,{width:e.width,height:e.height,onResize:n,debounceResize:i,children:t})}})};function Fd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pd(){return Pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pd.apply(null,arguments)}function Nd(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var Yd=["id","colors"],Id={linearGradient:function(e){var t=e.id,n=e.colors,r=Nd(e,Yd);return o.jsx("linearGradient",Pd({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(e){var t=e.offset,n=e.opacity;return o.jsx("stop",{offset:t+"%",stopColor:e.color,stopOpacity:void 0!==n?n:1},t)})}))}},$d=e.memo(function(e){var t=e.background,n=e.color,r=void 0===n?"#000000":n,i=e.size,a=void 0===i?4:i,s=e.padding,u=void 0===s?4:s,c=e.stagger,l=void 0!==c&&c,f=a+u,d=a/2,h=u/2;return!0===l&&(f=2*a+2*u),o.jsxs("pattern",{id:e.id,width:f,height:f,patternUnits:"userSpaceOnUse",children:[o.jsx("rect",{width:f,height:f,fill:void 0===t?"#ffffff":t}),o.jsx("circle",{cx:h+d,cy:h+d,r:d,fill:r}),l&&o.jsx("circle",{cx:1.5*u+a+d,cy:1.5*u+a+d,r:d,fill:r})]})}),zd=function(e){return e*Math.PI/180},Wd=function(e){return 180*e/Math.PI},Vd=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},Ud={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},Hd=e.memo(function(e){var t=e.id,n=e.spacing,r=void 0===n?5:n,i=e.rotation,a=e.background,s=void 0===a?"#000000":a,u=e.color,c=void 0===u?"#ffffff":u,l=e.lineWidth,f=void 0===l?2:l,d=Math.round(void 0===i?0:i)%360,h=Math.abs(r);d>180?d-=360:d>90?d-=180:d<-180?d+=360:d<-90&&(d+=180);var p,m=h,g=h;return 0===d?p="\n M 0 0 L "+m+" 0\n M 0 "+g+" L "+m+" "+g+"\n ":90===d?p="\n M 0 0 L 0 "+g+"\n M "+m+" 0 L "+m+" "+g+"\n ":(m=Math.abs(h/Math.sin(zd(d))),g=h/Math.sin(zd(90-d)),p=d>0?"\n M 0 "+-g+" L "+2*m+" "+g+"\n M "+-m+" "+-g+" L "+m+" "+g+"\n M "+-m+" 0 L "+m+" "+2*g+"\n ":"\n M "+-m+" "+g+" L "+m+" "+-g+"\n M "+-m+" "+2*g+" L "+2*m+" "+-g+"\n M 0 "+2*g+" L "+2*m+" 0\n "),o.jsxs("pattern",{id:t,width:m,height:g,patternUnits:"userSpaceOnUse",children:[o.jsx("rect",{width:m,height:g,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),o.jsx("path",{d:p,strokeWidth:f,stroke:c,strokeLinecap:"square"})]})}),qd=e.memo(function(e){var t=e.color,n=void 0===t?"#000000":t,r=e.background,i=e.size,a=void 0===i?4:i,s=e.padding,u=void 0===s?4:s,c=e.stagger,l=void 0!==c&&c,f=a+u,d=u/2;return!0===l&&(f=2*a+2*u),o.jsxs("pattern",{id:e.id,width:f,height:f,patternUnits:"userSpaceOnUse",children:[o.jsx("rect",{width:f,height:f,fill:void 0===r?"#ffffff":r}),o.jsx("rect",{x:d,y:d,width:a,height:a,fill:n}),l&&o.jsx("rect",{x:1.5*u+a,y:1.5*u+a,width:a,height:a,fill:n})]})}),Gd={patternDots:$d,patternLines:Hd,patternSquares:qd},Bd=["type"],Zd=Pd({},Id,Gd),Qd=e.memo(function(t){var n=t.defs;return!n||n.length<1?null:o.jsx("defs",{"aria-hidden":!0,children:n.map(function(t){var n=t.type,r=Nd(t,Bd);return Zd[n]?e.createElement(Zd[n],Pd({key:r.id},r)):null})})}),Xd=e.forwardRef(function(e,t){var n=e.width,r=e.height,i=e.margin,a=e.defs,s=e.children,u=e.role,c=e.ariaLabel,l=e.ariaLabelledBy,f=e.ariaDescribedBy,d=e.isFocusable,h=ha();return o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:r,role:u,"aria-label":c,"aria-labelledby":l,"aria-describedby":f,focusable:d,tabIndex:d?0:void 0,ref:t,children:[o.jsx(Qd,{defs:a}),o.jsx("rect",{width:n,height:r,fill:h.background}),o.jsx("g",{transform:"translate("+i.left+","+i.top+")",children:s})]})}),Jd=e.memo(function(e){return o.jsx("circle",{r:e.size/2,fill:e.color,stroke:e.borderColor,strokeWidth:e.borderWidth,style:{pointerEvents:"none"}})});e.memo(function(t){var n=t.x,r=t.y,i=t.symbol,a=void 0===i?Jd:i,s=t.size,u=t.datum,c=t.color,l=t.borderWidth,f=t.borderColor,d=t.label,h=t.labelTextAnchor,p=void 0===h?"middle":h,m=t.labelYOffset,g=void 0===m?-12:m,b=t.ariaLabel,y=t.ariaLabelledBy,_=t.ariaDescribedBy,v=t.ariaHidden,x=t.ariaDisabled,w=t.isFocusable,k=void 0!==w&&w,M=t.tabIndex,S=void 0===M?0:M,O=t.onFocus,T=t.onBlur,A=t.testId,C=ha(),D=Ad(),R=En({transform:"translate("+n+", "+r+")",config:D.config,immediate:!D.animate}),j=e.useCallback(function(e){null==O||O(u,e)},[O,u]),L=e.useCallback(function(e){null==T||T(u,e)},[T,u]);return o.jsxs(tr.g,{transform:R.transform,style:{pointerEvents:"none"},focusable:k,tabIndex:k?S:void 0,"aria-label":b,"aria-labelledby":y,"aria-describedby":_,"aria-disabled":x,"aria-hidden":v,onFocus:k&&O?j:void 0,onBlur:k&&T?L:void 0,"data-testid":A,children:[e.createElement(a,{size:s,color:c,datum:u,borderWidth:l,borderColor:f}),d&&o.jsx("text",{textAnchor:p,y:g,style:oa(C.dots.text),children:d})]})});var Kd=e.memo(function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,a=e.value,s=e.lineStyle,u=e.textStyle,c=e.legend,l=e.legendNode,f=e.legendPosition,d=void 0===f?"top-right":f,h=e.legendOffsetX,p=void 0===h?14:h,m=e.legendOffsetY,g=void 0===m?14:m,b=e.legendOrientation,y=void 0===b?"horizontal":b,_=ha(),v=0,x=0,w=0,k=0;if("y"===r?(w=i(a),x=t):(v=i(a),k=n),c&&!l){var M=function(e){var t=e.width,n=e.height,r=e.position,i=e.offsetX,a=e.offsetY,s=e.orientation,o=0,u=0,c="vertical"===s?-90:0,l="start";if("x"===e.axis)switch(r){case"top-left":o=-i,u=a,l="end";break;case"top":u=-a,l="horizontal"===s?"middle":"start";break;case"top-right":o=i,u=a,l="horizontal"===s?"start":"end";break;case"right":o=i,u=n/2,l="horizontal"===s?"start":"middle";break;case"bottom-right":o=i,u=n-a,l="start";break;case"bottom":u=n+a,l="horizontal"===s?"middle":"end";break;case"bottom-left":u=n-a,o=-i,l="horizontal"===s?"end":"start";break;case"left":o=-i,u=n/2,l="horizontal"===s?"end":"middle"}else switch(r){case"top-left":o=i,u=-a,l="start";break;case"top":o=t/2,u=-a,l="horizontal"===s?"middle":"start";break;case"top-right":o=t-i,u=-a,l="horizontal"===s?"end":"start";break;case"right":o=t+i,l="horizontal"===s?"start":"middle";break;case"bottom-right":o=t-i,u=a,l="end";break;case"bottom":o=t/2,u=a,l="horizontal"===s?"middle":"end";break;case"bottom-left":o=i,u=a,l="horizontal"===s?"start":"end";break;case"left":o=-i,l="horizontal"===s?"end":"middle"}return{x:o,y:u,rotation:c,textAnchor:l}}({axis:r,width:t,height:n,position:d,offsetX:p,offsetY:g,orientation:y});l=o.jsx("text",{transform:"translate("+M.x+", "+M.y+") rotate("+M.rotation+")",textAnchor:M.textAnchor,dominantBaseline:"central",style:u,children:c})}return o.jsxs("g",{transform:"translate("+v+", "+w+")",children:[o.jsx("line",{x1:0,x2:x,y1:0,y2:k,stroke:_.markers.lineColor,strokeWidth:_.markers.lineStrokeWidth,style:s}),l]})});e.memo(function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,a=e.yScale;return t&&0!==t.length?t.map(function(e,t){return o.jsx(Kd,Pd({},e,{width:n,height:r,scale:"y"===e.axis?a:i}),t)}):null}),e.createContext(void 0);var eh=Object.keys({basis:function(e){return new Co(e)},basisClosed:function(e){return new Do(e)},basisOpen:function(e){return new Ro(e)},bundle:Lo,cardinal:Po,cardinalClosed:Yo,cardinalOpen:$o,catmullRom:Vo,catmullRomClosed:Ho,catmullRomOpen:Go,linear:wo,linearClosed:function(e){return new Bo(e)},monotoneX:function(e){return new Ko(e)},monotoneY:function(e){return new eu(e)},natural:function(e){return new nu(e)},step:function(e){return new iu(e,.5)},stepAfter:function(e){return new iu(e,1)},stepBefore:function(e){return new iu(e,0)}});eh.filter(function(e){return e.endsWith("Closed")}),qs(eh,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),qs(eh,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),lu(xl);var th={top:0,right:0,bottom:0,left:0},nh=function(t,n,r){return void 0===r&&(r={}),e.useMemo(function(){var e=Pd({},th,r);return{margin:e,innerWidth:t-e.left-e.right,innerHeight:n-e.top-e.bottom,outerWidth:t,outerHeight:n}},[t,n,r])},rh=function(){var t=e.useRef(null),n=e.useState({left:0,top:0,width:0,height:0}),r=n[0],i=n[1],a=e.useState(function(){return"undefined"==typeof ResizeObserver?null:new ResizeObserver(function(e){return i(e[0].contentRect)})})[0];return e.useEffect(function(){return t.current&&null!==a&&a.observe(t.current),function(){null!==a&&a.disconnect()}},[a]),[t,r]},ih=function(t){return e.useMemo(function(){return function(e){return"function"==typeof e?e:"string"==typeof e?0===e.indexOf("time:")?Bu(e.slice("5")):vu(e):function(e){return""+e}}(t)},[t])},ah=function(t){return e.useMemo(function(){return function(e){return vr(e)?e:function(t){return na(t,e)}}(t)},[t])},sh=Object.keys(Id),oh=Object.keys(Gd);function uh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=0,r=t;n<r.length;n++){var i=r[n];"function"==typeof i?i(e):null!=i&&(i.current=e)}}}var ch=function(e,t){e.font=(t.fontWeight?t.fontWeight+" ":"")+t.fontSize+"px "+t.fontFamily},lh=function(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=0),t.outlineWidth>0&&(e.strokeStyle=t.outlineColor,e.lineWidth=2*t.outlineWidth,e.lineJoin="round",e.strokeText(n,r,i)),e.fillStyle=t.fill,e.fillText(n,r,i)};function fh(){return fh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fh.apply(null,arguments)}function dh(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var hh=["style","children"],ph=["outlineWidth","outlineColor","outlineOpacity"],mh=function(e){var t=e.style,n=e.children,r=dh(e,hh),i=t.outlineWidth,a=t.outlineColor,s=t.outlineOpacity,u=dh(t,ph);return o.jsxs(o.Fragment,{children:[i>0&&o.jsx(tr.text,fh({},r,{style:fh({},u,{strokeWidth:2*i,stroke:a,strokeOpacity:s,strokeLinejoin:"round"}),children:n})),o.jsx(tr.text,fh({},r,{style:u,children:n}))]})};function gh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bh(){return bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bh.apply(null,arguments)}var yh={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:hl,accent:pl,dark2:ml,paired:gl,pastel1:bl,pastel2:yl,set1:_l,set2:vl,set3:xl,tableau10:wl},_h=Object.keys(yh),vh={brown_blueGreen:Ml,purpleRed_green:Ol,pink_yellowGreen:Al,purple_orange:Dl,red_blue:jl,red_grey:El,red_yellow_blue:Pl,red_yellow_green:Yl,spectral:$l},xh=Object.keys(vh),wh={brown_blueGreen:Sl,purpleRed_green:Tl,pink_yellowGreen:Cl,purple_orange:Rl,red_blue:Ll,red_grey:Fl,red_yellow_blue:Nl,red_yellow_green:Il,spectral:zl},kh={blues:hf,greens:mf,greys:bf,oranges:kf,purples:_f,reds:xf,blue_green:Wl,blue_purple:Ul,green_blue:ql,orange_red:Bl,purple_blue_green:Ql,purple_blue:Jl,purple_red:ef,red_purple:nf,yellow_green_blue:af,yellow_green:of,yellow_orange_brown:cf,yellow_orange_red:ff},Mh=Object.keys(kh),Sh={blues:pf,greens:gf,greys:yf,oranges:Mf,purples:vf,reds:wf,turbo:function(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-14825.05*e)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+")"},viridis:Lf,inferno:Ff,magma:Ef,plasma:Pf,cividis:function(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-2710.57*e)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-67.37*e)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-2475.67*e)))))))+")"},warm:Of,cool:Tf,cubehelixDefault:Sf,blue_green:Vl,blue_purple:Hl,green_blue:Gl,orange_red:Zl,purple_blue_green:Xl,purple_blue:Kl,purple_red:tf,red_purple:rf,yellow_green_blue:sf,yellow_green:uf,yellow_orange_brown:lf,yellow_orange_red:df},Oh=bh({},yh,vh,kh),Th={rainbow:function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Af.h=360*e-100,Af.s=1.5-1.5*t,Af.l=.8-.9*t,Af+""},sinebow:function(e){var t;return e=(.5-e)*Math.PI,Cf.r=255*(t=Math.sin(e))*t,Cf.g=255*(t=Math.sin(e+Df))*t,Cf.b=255*(t=Math.sin(e+Rf))*t,Cf+""}};bh({},wh,Sh,Th);var Ah=function(t,n){return e.useMemo(function(){return function(e,t){if("function"==typeof e)return e;if(di(e)){if(function(e){return void 0!==e.theme}(e)){if(void 0===t)throw new Error("Unable to use color from theme as no theme was provided");var n=na(t,e.theme);if(void 0===n)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(e){return void 0!==e.from}(e)){var r=function(t){return na(t,e.from)};if(Array.isArray(e.modifiers)){for(var i,a=[],s=function(){var e=i.value,t=e[0],n=e[1];if("brighter"===t)a.push(function(e){return e.brighter(n)});else if("darker"===t)a.push(function(e){return e.darker(n)});else{if("opacity"!==t)throw new Error("Invalid color modifier: '"+t+"', must be one of: 'brighter', 'darker', 'opacity'");a.push(function(e){return e.opacity=n,e})}},o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,t){if(e){if("string"==typeof e)return gh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gh(e,t):void 0}}(e))){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.modifiers);!(i=o()).done;)s();return 0===a.length?r:function(e){return a.reduce(function(e,t){return t(e)},us(r(e))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}}(t,n)},[t,n])};function Ch(){return Ch=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ch.apply(null,arguments)}var Dh={pointerEvents:"none"},Rh=function(e){var t=e.label,n=e.style,r=ha();return o.jsx(tr.g,{transform:n.transform,opacity:n.progress,style:Dh,children:o.jsx(mh,{textAnchor:"middle",dominantBaseline:"central",style:Ch({},r.labels.text,{fill:n.textColor}),children:t})})},jh=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},Lh=function(e,t){return e.filter(function(e){return Math.abs(Wd(e.arc.endAngle-e.arc.startAngle))>=t})},Eh={startAngle:{enter:function(e){return Ch({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return Ch({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Ch({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Ch({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return Ch({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return Ch({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return Ch({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Ch({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Ch({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Ch({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return Ch({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return Ch({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return Ch({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Ch({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return Ch({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return Ch({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},Fh=function(t,n){return e.useMemo(function(){var e=Eh[t];return{enter:function(t){return Ch({progress:0},e.enter(t.arc),n?n.enter(t):{})},update:function(t){return Ch({progress:1},e.update(t.arc),n?n.update(t):{})},leave:function(t){return Ch({progress:0},e.leave(t.arc),n?n.leave(t):{})}}},[t,n])},Ph=function(e,t){var n=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2}(e)-Math.PI/2;return Vd(n,e.innerRadius+(e.outerRadius-e.innerRadius)*t)},Nh=function(e){return function(t,n,r,i){return zn([t,n,r,i],function(t,n,r,i){var a=Ph({startAngle:t,endAngle:n,innerRadius:r,outerRadius:i},e);return"translate("+a.x+","+a.y+")"})}},Yh=function(t){var n=t.center,r=t.data,i=t.transitionMode,a=t.radiusOffset,s=t.skipAngle,u=t.skipRadius,c=t.textColor,l=t.component,f=void 0===l?Rh:l,d=ah(t.label),h=ha(),p=Ah(c,h),m=e.useMemo(function(){return r.filter(function(e){var t=Math.abs(Wd(e.arc.endAngle-e.arc.startAngle)),n=Math.abs(e.arc.outerRadius-e.arc.innerRadius);return t>=s&&n>=u})},[r,s,u]),g=function(e,t,n){void 0===t&&(t=.5),void 0===n&&(n="innerRadius");var r=Ad(),i=r.animate,a=r.config,s=Fh(n,void 0);return{transition:Fn(e,{keys:function(e){return e.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:a,immediate:!i}),interpolate:Nh(t)}}(m,a,i),b=g.interpolate,y=f;return o.jsx("g",{transform:"translate("+n[0]+","+n[1]+")",children:(0,g.transition)(function(t,n){return e.createElement(y,{key:n.id,datum:n,label:d(n),style:{progress:t.progress,transform:b(t.startAngle,t.endAngle,t.innerRadius,t.outerRadius),textColor:p(n)}})})})},Ih=function(e,t,n){ch(e,n.labels.text),e.textAlign="center",e.textBaseline="middle",t.forEach(function(t){lh(e,Ch({},n.labels.text,{fill:t.textColor}),String(t.label),t.x,t.y)})},$h=function(e){var t=e.label,n=e.style,r=ha();return o.jsxs(tr.g,{opacity:n.opacity,children:[o.jsx(tr.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),o.jsx(mh,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Ch({},r.labels.text,{fill:n.textColor}),children:t})]})},zh=function(e,t,n,r){var i,a,s=jh(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),o=Vd(s,e.outerRadius+t),u=Vd(s,e.outerRadius+t+n);return s<Math.PI/2||s>1.5*Math.PI?(i="after",a={x:u.x+r,y:u.y}):(i="before",a={x:u.x-r,y:u.y}),{side:i,points:[o,u,a]}},Wh=function(e,t){var n=Gs(!0),r=null,i=wo,a=null,s=ho(o);function o(o){var u,c,l,f=(o=vo(o)).length,d=!1;for(null==r&&(a=i(l=s())),u=0;u<=f;++u)!(u<f&&n(c=o[u],u,o))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(c,u,o),+t(c,u,o));if(l)return a=null,l+""||null}return e="function"==typeof e?e:void 0===e?ko:Gs(e),t="function"==typeof t?t:void 0===t?Mo:Gs(t),o.x=function(t){return arguments.length?(e="function"==typeof t?t:Gs(+t),o):e},o.y=function(e){return arguments.length?(t="function"==typeof e?e:Gs(+e),o):t},o.defined=function(e){return arguments.length?(n="function"==typeof e?e:Gs(!!e),o):n},o.curve=function(e){return arguments.length?(i=e,null!=r&&(a=i(r)),o):i},o.context=function(e){return arguments.length?(null==e?r=a=null:a=i(r=e),o):r},o}().x(function(e){return e.x}).y(function(e){return e.y}),Vh=function(e,t,n,r,i,a,s){return zn([e,t,n,r,i,a,s],function(e,t,n,r,i,a,s){var o=zh({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},i,a,s).points;return Wh(o)})},Uh=function(e,t,n,r){return zn([e,t,n,r],function(e,t,n,r){return function(e){var t=jh(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"}({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r})})},Hh=function(e,t,n,r,i,a,s,o){return zn([e,t,n,r,i,a,s,o],function(e,t,n,r,i,a,s,o){var u=zh({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},i,a,s),c=u.points[2];return"before"===u.side?c.x-=o:c.x+=o,"translate("+c.x+","+c.y+")"})},qh=function(t){var n=t.center,r=t.data,i=t.skipAngle,a=t.offset,s=t.diagonalLength,u=t.straightLength,c=t.strokeWidth,l=t.textOffset,f=t.textColor,d=t.linkColor,h=t.component,p=void 0===h?$h:h,m=ah(t.label),g=function(t){var n=t.data,r=t.offset,i=void 0===r?0:r,a=t.diagonalLength,s=t.straightLength,o=t.skipAngle,u=void 0===o?0:o,c=t.textOffset,l=t.linkColor,f=t.textColor,d=Ad(),h=d.animate,p=d.config,m=ha(),g=Ah(l,m),b=Ah(f,m),y=function(t,n){return e.useMemo(function(){return Lh(t,n)},[t,n])}(n,u),_=function(t){var n=t.offset,r=t.diagonalLength,i=t.straightLength,a=t.textOffset,s=t.getLinkColor,o=t.getTextColor;return e.useMemo(function(){return{enter:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:n,diagonalLength:0,straightLength:0,textOffset:a,linkColor:s(e),textColor:o(e),opacity:0}},update:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:n,diagonalLength:r,straightLength:i,textOffset:a,linkColor:s(e),textColor:o(e),opacity:1}},leave:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:n,diagonalLength:0,straightLength:0,textOffset:a,linkColor:s(e),textColor:o(e),opacity:0}}}},[r,i,a,s,o,n])}({offset:i,diagonalLength:a,straightLength:s,textOffset:c,getLinkColor:g,getTextColor:b});return{transition:Fn(y,{keys:function(e){return e.id},initial:_.update,from:_.enter,enter:_.update,update:_.update,leave:_.leave,config:p,immediate:!h}),interpolateLink:Vh,interpolateTextAnchor:Uh,interpolateTextPosition:Hh}}({data:r,skipAngle:i,offset:a,diagonalLength:s,straightLength:u,textOffset:l,linkColor:d,textColor:f}),b=g.interpolateLink,y=g.interpolateTextAnchor,_=g.interpolateTextPosition,v=p;return o.jsx("g",{transform:"translate("+n[0]+","+n[1]+")",children:(0,g.transition)(function(t,n){return e.createElement(v,{key:n.id,datum:n,label:m(n),style:Ch({},t,{thickness:c,path:b(t.startAngle,t.endAngle,t.innerRadius,t.outerRadius,t.offset,t.diagonalLength,t.straightLength),textAnchor:y(t.startAngle,t.endAngle,t.innerRadius,t.outerRadius),textPosition:_(t.startAngle,t.endAngle,t.innerRadius,t.outerRadius,t.offset,t.diagonalLength,t.straightLength,t.textOffset)})})})})},Gh=function(e,t,n,r){e.textBaseline="middle",ch(e,n.labels.text),t.forEach(function(t){e.textAlign=Ud.canvas.align[t.textAnchor],lh(e,Ch({},n.labels.text,{fill:t.textColor}),String(t.label),t.x,t.y),e.beginPath(),e.strokeStyle=t.linkColor,e.lineWidth=r,t.points.forEach(function(t,n){0===n?e.moveTo(t.x,t.y):e.lineTo(t.x,t.y)}),e.stroke()})},Bh=function(t){var n=t.datum,r=t.style,i=t.onClick,a=t.onMouseEnter,s=t.onMouseMove,u=t.onMouseLeave,c=e.useCallback(function(e){return null==i?void 0:i(n,e)},[i,n]),l=e.useCallback(function(e){return null==a?void 0:a(n,e)},[a,n]),f=e.useCallback(function(e){return null==s?void 0:s(n,e)},[s,n]),d=e.useCallback(function(e){return null==u?void 0:u(n,e)},[u,n]);return o.jsx(tr.path,{d:r.path,opacity:r.opacity,fill:n.fill||r.color,stroke:r.borderColor,strokeWidth:r.borderWidth,onClick:i?c:void 0,onMouseEnter:a?l:void 0,onMouseMove:s?f:void 0,onMouseLeave:u?d:void 0,"data-testid":"arc."+n.id})},Zh=function(e,t,n,r,i){return zn([e,t,n,r],function(e,t,n,r){return i({startAngle:e,endAngle:t,innerRadius:Math.max(0,n),outerRadius:Math.max(0,r)})})},Qh=function(t){var n=t.center,r=t.data,i=t.arcGenerator,a=t.borderWidth,s=t.borderColor,u=t.onClick,c=t.onMouseEnter,l=t.onMouseMove,f=t.onMouseLeave,d=t.transitionMode,h=t.component,p=void 0===h?Bh:h,m=ha(),g=Ah(s,m),b=function(e,t,n){void 0===t&&(t="innerRadius");var r=Ad(),i=r.animate,a=r.config,s=Fh(t,n);return{transition:Fn(e,{keys:function(e){return e.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:a,immediate:!i}),interpolate:Zh}}(r,d,{enter:function(e){return{opacity:0,color:e.color,borderColor:g(e)}},update:function(e){return{opacity:1,color:e.color,borderColor:g(e)}},leave:function(e){return{opacity:0,color:e.color,borderColor:g(e)}}}),y=b.interpolate,_=p;return o.jsx("g",{transform:"translate("+n[0]+","+n[1]+")",children:(0,b.transition)(function(t,n){return e.createElement(_,{key:n.id,datum:n,style:Ch({},t,{borderWidth:a,path:y(t.startAngle,t.endAngle,t.innerRadius,t.outerRadius,i)}),onClick:u,onMouseEnter:c,onMouseMove:l,onMouseLeave:f})})})},Xh=function(t){var n=void 0===t?{}:t,r=n.cornerRadius,i=void 0===r?0:r,a=n.padAngle,s=void 0===a?0:a;return e.useMemo(function(){return function(){var e=po,t=mo,n=Gs(0),r=null,i=go,a=bo,s=yo,o=null,u=ho(c);function c(){var c,l,f=+e.apply(this,arguments),d=+t.apply(this,arguments),h=i.apply(this,arguments)-ro,p=a.apply(this,arguments)-ro,m=Bs(p-h),g=p>h;if(o||(o=c=u()),d<f&&(l=d,d=f,f=l),d>to)if(m>io-to)o.moveTo(d*Qs(h),d*Ks(h)),o.arc(0,0,d,h,p,!g),f>to&&(o.moveTo(f*Qs(p),f*Ks(p)),o.arc(0,0,f,p,h,g));else{var b,y,_=h,v=p,x=h,w=p,k=m,M=m,S=s.apply(this,arguments)/2,O=S>to&&(r?+r.apply(this,arguments):eo(f*f+d*d)),T=Js(Bs(d-f)/2,+n.apply(this,arguments)),A=T,C=T;if(O>to){var D=ao(O/f*Ks(S)),R=ao(O/d*Ks(S));(k-=2*D)>to?(x+=D*=g?1:-1,w-=D):(k=0,x=w=(h+p)/2),(M-=2*R)>to?(_+=R*=g?1:-1,v-=R):(M=0,_=v=(h+p)/2)}var j=d*Qs(_),L=d*Ks(_),E=f*Qs(w),F=f*Ks(w);if(T>to){var P,N=d*Qs(v),Y=d*Ks(v),I=f*Qs(x),$=f*Ks(x);if(m<no)if(P=function(e,t,n,r,i,a,s,o){var u=n-e,c=r-t,l=s-i,f=o-a,d=f*u-l*c;if(!(d*d<to))return[e+(d=(l*(t-a)-f*(e-i))/d)*u,t+d*c]}(j,L,I,$,N,Y,E,F)){var z=j-P[0],W=L-P[1],V=N-P[0],U=Y-P[1],H=1/Ks(function(e){return e>1?0:e<-1?no:Math.acos(e)}((z*V+W*U)/(eo(z*z+W*W)*eo(V*V+U*U)))/2),q=eo(P[0]*P[0]+P[1]*P[1]);A=Js(T,(f-q)/(H-1)),C=Js(T,(d-q)/(H+1))}else A=C=0}M>to?C>to?(b=_o(I,$,j,L,d,C,g),y=_o(N,Y,E,F,d,C,g),o.moveTo(b.cx+b.x01,b.cy+b.y01),C<T?o.arc(b.cx,b.cy,C,Zs(b.y01,b.x01),Zs(y.y01,y.x01),!g):(o.arc(b.cx,b.cy,C,Zs(b.y01,b.x01),Zs(b.y11,b.x11),!g),o.arc(0,0,d,Zs(b.cy+b.y11,b.cx+b.x11),Zs(y.cy+y.y11,y.cx+y.x11),!g),o.arc(y.cx,y.cy,C,Zs(y.y11,y.x11),Zs(y.y01,y.x01),!g))):(o.moveTo(j,L),o.arc(0,0,d,_,v,!g)):o.moveTo(j,L),f>to&&k>to?A>to?(b=_o(E,F,N,Y,f,-A,g),y=_o(j,L,I,$,f,-A,g),o.lineTo(b.cx+b.x01,b.cy+b.y01),A<T?o.arc(b.cx,b.cy,A,Zs(b.y01,b.x01),Zs(y.y01,y.x01),!g):(o.arc(b.cx,b.cy,A,Zs(b.y01,b.x01),Zs(b.y11,b.x11),!g),o.arc(0,0,f,Zs(b.cy+b.y11,b.cx+b.x11),Zs(y.cy+y.y11,y.cx+y.x11),g),o.arc(y.cx,y.cy,A,Zs(y.y11,y.x11),Zs(y.y01,y.x01),!g))):o.arc(0,0,f,w,x,g):o.lineTo(E,F)}else o.moveTo(0,0);if(o.closePath(),c)return o=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-no/2;return[Qs(r)*n,Ks(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Gs(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Gs(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:Gs(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Gs(+e),c):r},c.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:Gs(+e),c):i},c.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:Gs(+e),c):a},c.padAngle=function(e){return arguments.length?(s="function"==typeof e?e:Gs(+e),c):s},c.context=function(e){return arguments.length?(o=null==e?null:e,c):o},c}().innerRadius(function(e){return e.innerRadius}).outerRadius(function(e){return e.outerRadius}).cornerRadius(i).padAngle(s)},[i,s])};function Jh(){return Jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jh.apply(null,arguments)}var Kh="left-to-right",ep={top:0,right:0,bottom:0,left:0},tp=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,a=e.itemCount,s=e.itemWidth,o=e.itemHeight;if("number"!=typeof i&&("object"!=typeof(t=i)||Array.isArray(t)||null===t))throw new Error("Invalid property padding, must be one of: number, object");var u="number"==typeof i?{top:i,right:i,bottom:i,left:i}:Jh({},ep,i),c=u.left+u.right,l=u.top+u.bottom,f=s+c,d=o+l,h=(a-1)*r;return"row"===n?f=s*a+h+c:"column"===n&&(d=o*a+h+l),{width:f,height:d,padding:u}},np=function(e){var t=e.containerWidth,n=e.containerHeight,r=e.width,i=e.height,a=e.translateX,s=e.translateY;switch(e.anchor){case"top":a+=(t-r)/2;break;case"top-right":a+=t-r;break;case"right":a+=t-r,s+=(n-i)/2;break;case"bottom-right":a+=t-r,s+=n-i;break;case"bottom":a+=(t-r)/2,s+=n-i;break;case"bottom-left":s+=n-i;break;case"left":s+=(n-i)/2;break;case"center":a+=(t-r)/2,s+=(n-i)/2}return{x:a,y:s}},rp=function(e){var t,n,r,i,a,s,o=e.justify,u=e.symbolSize,c=e.symbolSpacing,l=e.width,f=e.height;switch(e.direction){case"left-to-right":t=0,n=(f-u)/2,i=f/2,s="central",o?(r=l,a="end"):(r=u+c,a="start");break;case"right-to-left":t=l-u,n=(f-u)/2,i=f/2,s="central",o?(r=0,a="start"):(r=l-u-c,a="end");break;case"top-to-bottom":t=(l-u)/2,n=0,r=l/2,a="middle",o?(i=f,s="alphabetic"):(i=u+c,s="text-before-edge");break;case"bottom-to-top":t=(l-u)/2,n=f-u,r=l/2,a="middle",o?(i=0,s="text-before-edge"):(i=f-u-c,s="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:a,labelAlignment:s}},ip={circle:function(e){var t=e.size,n=e.opacity,r=e.borderWidth,i=e.borderColor;return o.jsx("circle",{r:t/2,cx:e.x+t/2,cy:e.y+t/2,fill:e.fill,opacity:void 0===n?1:n,strokeWidth:void 0===r?0:r,stroke:void 0===i?"transparent":i,style:{pointerEvents:"none"}})},diamond:function(e){var t=e.size,n=e.opacity,r=e.borderWidth,i=e.borderColor;return o.jsx("g",{transform:"translate("+e.x+","+e.y+")",children:o.jsx("path",{d:"\n M"+t/2+" 0\n L"+.8*t+" "+t/2+"\n L"+t/2+" "+t+"\n L"+.2*t+" "+t/2+"\n L"+t/2+" 0\n ",fill:e.fill,opacity:void 0===n?1:n,strokeWidth:void 0===r?0:r,stroke:void 0===i?"transparent":i,style:{pointerEvents:"none"}})})},square:function(e){var t=e.size,n=e.opacity,r=e.borderWidth,i=e.borderColor;return o.jsx("rect",{x:e.x,y:e.y,fill:e.fill,opacity:void 0===n?1:n,strokeWidth:void 0===r?0:r,stroke:void 0===i?"transparent":i,width:t,height:t,style:{pointerEvents:"none"}})},triangle:function(e){var t=e.size,n=e.opacity,r=e.borderWidth,i=e.borderColor;return o.jsx("g",{transform:"translate("+e.x+","+e.y+")",children:o.jsx("path",{d:"\n M"+t/2+" 0\n L"+t+" "+t+"\n L0 "+t+"\n L"+t/2+" 0\n ",fill:e.fill,opacity:void 0===n?1:n,strokeWidth:void 0===r?0:r,stroke:void 0===i?"transparent":i,style:{pointerEvents:"none"}})})}},ap=function(t){var n,r,i,a,s,u,c,l,d,h,p,m=t.x,g=t.y,b=t.width,y=t.height,_=t.data,v=t.direction,x=void 0===v?Kh:v,w=t.justify,k=void 0!==w&&w,M=t.textColor,S=t.background,O=void 0===S?"transparent":S,T=t.opacity,A=void 0===T?1:T,C=t.symbolShape,D=void 0===C?"square":C,R=t.symbolSize,j=void 0===R?16:R,L=t.symbolSpacing,E=void 0===L?8:L,F=t.symbolBorderWidth,P=void 0===F?0:F,N=t.symbolBorderColor,Y=void 0===N?"transparent":N,I=t.onClick,$=t.onMouseEnter,z=t.onMouseLeave,W=t.toggleSerie,V=t.effects,U=e.useState({}),H=U[0],q=U[1],G=ha(),B=e.useCallback(function(e){if(V){var t=V.filter(function(e){return"hover"===e.on}).reduce(function(e,t){return Jh({},e,t.style)},{});q(t)}null==$||$(_,e)},[$,_,V]),Z=e.useCallback(function(e){if(V){var t=V.filter(function(e){return"hover"!==e.on}).reduce(function(e,t){return Jh({},e,t.style)},{});q(t)}null==z||z(_,e)},[z,_,V]),Q=rp({direction:x,justify:k,symbolSize:null!=(n=H.symbolSize)?n:j,symbolSpacing:E,width:b,height:y}),X=Q.symbolX,J=Q.symbolY,K=Q.labelX,ee=Q.labelY,te=Q.labelAnchor,ne=Q.labelAlignment,re=[I,$,z,W].some(function(e){return void 0!==e}),ie="function"==typeof D?D:ip[D];return o.jsxs("g",{transform:"translate("+m+","+g+")",style:{opacity:null!=(r=H.itemOpacity)?r:A},children:[o.jsx("rect",{width:b,height:y,fill:null!=(i=H.itemBackground)?i:O,style:{cursor:re?"pointer":"auto"},onClick:function(e){null==I||I(_,e),null==W||W(_.id)},onMouseEnter:B,onMouseLeave:Z}),f.createElement(ie,Jh({id:_.id,x:X,y:J,size:null!=(a=H.symbolSize)?a:j,fill:null!=(s=null!=(u=_.fill)?u:_.color)?s:"black",borderWidth:null!=(c=H.symbolBorderWidth)?c:P,borderColor:null!=(l=H.symbolBorderColor)?l:Y},_.hidden?G.legends.hidden.symbol:void 0)),o.jsx(mh,{textAnchor:te,style:Jh({},G.legends.text,{fill:null!=(d=null!=(h=null!=(p=H.itemTextColor)?p:M)?h:G.legends.text.fill)?d:"black",dominantBaseline:ne,pointerEvents:"none",userSelect:"none"},_.hidden?G.legends.hidden.text:void 0),x:K,y:ee,children:_.label})]})},sp=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,a=e.padding,s=e.justify,u=e.effects,c=e.itemWidth,l=e.itemHeight,f=e.itemDirection,d=void 0===f?Kh:f,h=e.itemsSpacing,p=void 0===h?0:h,m=e.itemTextColor,g=e.itemBackground,b=void 0===g?"transparent":g,y=e.itemOpacity,_=void 0===y?1:y,v=e.symbolShape,x=e.symbolSize,w=e.symbolSpacing,k=e.symbolBorderWidth,M=e.symbolBorderColor,S=e.onClick,O=e.onMouseEnter,T=e.onMouseLeave,A=e.toggleSerie,C=tp({itemCount:t.length,itemWidth:c,itemHeight:l,itemsSpacing:p,direction:i,padding:void 0===a?0:a}).padding,D="row"===i?c+p:0,R="column"===i?l+p:0;return o.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(e,t){return o.jsx(ap,{data:e,x:t*D+C.left,y:t*R+C.top,width:c,height:l,direction:d,justify:s,effects:u,textColor:m,background:b,opacity:_,symbolShape:v,symbolSize:x,symbolSpacing:w,symbolBorderWidth:k,symbolBorderColor:M,onClick:S,onMouseEnter:O,onMouseLeave:T,toggleSerie:A},t)})})},op=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,a=void 0===i?0:i,s=e.translateY,u=void 0===s?0:s,c=e.anchor,l=e.direction,f=e.padding,d=void 0===f?0:f,h=e.justify,p=e.itemsSpacing,m=void 0===p?0:p,g=e.itemWidth,b=e.itemHeight,y=e.itemDirection,_=e.itemTextColor,v=e.itemBackground,x=e.itemOpacity,w=e.symbolShape,k=e.symbolSize,M=e.symbolSpacing,S=e.symbolBorderWidth,O=e.symbolBorderColor,T=e.onClick,A=e.onMouseEnter,C=e.onMouseLeave,D=e.toggleSerie,R=e.effects,j=tp({itemCount:t.length,itemsSpacing:m,itemWidth:g,itemHeight:b,direction:l,padding:d}),L=np({anchor:c,translateX:a,translateY:u,containerWidth:n,containerHeight:r,width:j.width,height:j.height});return o.jsx(sp,{data:t,x:L.x,y:L.y,direction:l,padding:d,justify:h,effects:R,itemsSpacing:m,itemWidth:g,itemHeight:b,itemDirection:y,itemTextColor:_,itemBackground:v,itemOpacity:x,symbolShape:w,symbolSize:k,symbolSpacing:M,symbolBorderWidth:S,symbolBorderColor:O,onClick:T,onMouseEnter:A,onMouseLeave:C,toggleSerie:"boolean"==typeof D?void 0:D})},up={start:"left",middle:"center",end:"right"},cp=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,a=t.translateX,s=void 0===a?0:a,o=t.translateY,u=void 0===o?0:o,c=t.anchor,l=t.direction,f=t.padding,d=t.justify,h=void 0!==d&&d,p=t.itemsSpacing,m=void 0===p?0:p,g=t.itemWidth,b=t.itemHeight,y=t.itemDirection,_=void 0===y?"left-to-right":y,v=t.itemTextColor,x=t.symbolSize,w=void 0===x?16:x,k=t.symbolSpacing,M=void 0===k?8:k,S=t.theme,O=tp({itemCount:n.length,itemWidth:g,itemHeight:b,itemsSpacing:m,direction:l,padding:void 0===f?0:f}),T=O.padding,A=np({anchor:c,translateX:s,translateY:u,containerWidth:r,containerHeight:i,width:O.width,height:O.height}),C=A.x,D=A.y,R="row"===l?g+m:0,j="column"===l?b+m:0;e.save(),e.translate(C,D),ch(e,S.legends.text),n.forEach(function(t,n){var r,i=n*R+T.left,a=n*j+T.top,s=rp({direction:_,justify:h,symbolSize:w,symbolSpacing:M,width:g,height:b}),o=s.symbolX,u=s.symbolY,c=s.labelX,l=s.labelY,f=s.labelAnchor,d=s.labelAlignment;e.fillStyle=null!=(r=t.color)?r:"black",e.fillRect(i+o,a+u,w,w),e.textAlign=up[f],"central"===d&&(e.textBaseline="middle"),lh(e,Jh({},S.legends.text,{fill:null!=v?v:S.legends.text.fill}),String(t.label),i+c,a+l)}),e.restore()};function lp(){return lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lp.apply(null,arguments)}function fp(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var dp,hp=function(e){var t=e.width,n=e.height,r=e.data,i=e.toggleSerie;return o.jsx(o.Fragment,{children:e.legends.map(function(e,a){var s;return o.jsx(op,lp({},e,{containerWidth:t,containerHeight:n,data:null!=(s=e.data)?s:r,toggleSerie:e.toggleSerie?i:void 0}),a)})})},pp={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcs","arcLinkLabels","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsSkipRadius:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return o.jsx(va,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:"undefined"!=typeof window&&null!=(dp=window.devicePixelRatio)?dp:1},mp=["points"],gp=function(t){var n=t.data,r=t.id,i=t.value,a=void 0===i?pp.value:i,s=t.valueFormat,o=t.colors,u=void 0===o?pp.colors:o,c=ah(void 0===r?pp.id:r),l=ah(a),f=ih(s),d=function(t){return e.useMemo(function(){return function(e){if("function"==typeof e)return e;var t=function(e){return na(e,"id")};if(Array.isArray(e)){var n=lu(e),r=function(e){return n(t(e))};return r.scale=n,r}if(di(e)){if(function(e){return void 0!==e.datum}(e))return function(t){return na(t,e.datum)};if(function(e){return void 0!==e.scheme}(e)){if(function(e){return _h.includes(e)}(e.scheme)){var i=lu(Oh[e.scheme]),a=function(e){return i(t(e))};return a.scale=i,a}if(function(e){return xh.includes(e)}(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var s=lu(Oh[e.scheme][e.size||11]),o=function(e){return s(t(e))};return o.scale=s,o}if(function(e){return Mh.includes(e)}(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var u=lu(Oh[e.scheme][e.size||9]),c=function(e){return u(t(e))};return c.scale=u,c}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}}(t)},[t,"id"])}(u);return e.useMemo(function(){return n.map(function(e){var t,n=c(e),r=l(e),i={id:n,label:null!=(t=e.label)?t:n,hidden:!1,value:r,formattedValue:f(r),data:e};return lp({},i,{color:d(i)})})},[n,c,l,f,d])},bp=function(t){var n=t.data,r=t.width,i=t.height,a=t.innerRadius,s=void 0===a?pp.innerRadius:a,o=t.startAngle,u=void 0===o?pp.startAngle:o,c=t.endAngle,l=void 0===c?pp.endAngle:c,f=t.padAngle,d=void 0===f?pp.padAngle:f,h=t.sortByValue,p=void 0===h?pp.sortByValue:h,m=t.cornerRadius,g=void 0===m?pp.cornerRadius:m,b=t.fit,y=void 0===b?pp.fit:b,_=t.activeInnerRadiusOffset,v=void 0===_?pp.activeInnerRadiusOffset:_,x=t.activeOuterRadiusOffset,w=void 0===x?pp.activeOuterRadiusOffset:x,k=t.forwardLegendData,M=function(t){var n=t.activeId,r=t.onActiveIdChange,i=t.defaultActiveId,a=void 0!==n,s=e.useState(a||void 0===i?null:i),o=s[1];return{activeId:a?n:s[0],setActiveId:e.useCallback(function(e){r&&r(e),a||o(e)},[a,r,o])}}({activeId:t.activeId,onActiveIdChange:t.onActiveIdChange,defaultActiveId:t.defaultActiveId}),S=M.activeId,O=M.setActiveId,T=e.useState([]),A=T[0],C=T[1],D=e.useMemo(function(){var e,t=Math.min(r,i)/2,n=t*Math.min(s,1),a=r/2,o=i/2;if(y){var c=function(e,t,n,r,i,a){void 0===a&&(a=!0);var s=[],o=Vd(zd(r),n);s.push([o.x,o.y]);var u=Vd(zd(i),n);s.push([u.x,u.y]);for(var c=Math.round(Math.min(r,i));c<=Math.round(Math.max(r,i));c++)if(c%90==0){var l=Vd(zd(c),n);s.push([l.x,l.y])}s=s.map(function(n){return[e+n[0],t+n[1]]}),a&&s.push([e,t]);var f=s.map(function(e){return e[0]}),d=s.map(function(e){return e[1]}),h=Math.min.apply(Math,f),p=Math.max.apply(Math,f),m=Math.min.apply(Math,d);return{points:s,x:h,y:m,width:p-h,height:Math.max.apply(Math,d)-m}}(a,o,t,u-90,l-90),f=c.points,d=fp(c,mp),h=Math.min(r/d.width,i/d.height),p={width:d.width*h,height:d.height*h};p.x=(r-p.width)/2,p.y=(i-p.height)/2,a=(a-d.x)/d.width*d.width*h+p.x,o=(o-d.y)/d.height*d.height*h+p.y,e={box:d,ratio:h,points:f},t*=h,n*=h}return{centerX:a,centerY:o,radius:t,innerRadius:n,debug:e}},[r,i,s,u,l,y]),R=function(t){var n=t.data,r=t.startAngle,i=t.endAngle,a=t.innerRadius,s=t.outerRadius,o=t.padAngle,u=t.sortByValue,c=t.activeId,l=t.activeInnerRadiusOffset,f=t.activeOuterRadiusOffset,d=t.hiddenIds,h=t.forwardLegendData,p=e.useMemo(function(){var e=function(){var e=Oo,t=So,n=null,r=Gs(0),i=Gs(io),a=Gs(0);function s(s){var o,u,c,l,f,d=(s=vo(s)).length,h=0,p=new Array(d),m=new Array(d),g=+r.apply(this,arguments),b=Math.min(io,Math.max(-io,i.apply(this,arguments)-g)),y=Math.min(Math.abs(b)/d,a.apply(this,arguments)),_=y*(b<0?-1:1);for(o=0;o<d;++o)(f=m[p[o]=o]=+e(s[o],o,s))>0&&(h+=f);for(null!=t?p.sort(function(e,n){return t(m[e],m[n])}):null!=n&&p.sort(function(e,t){return n(s[e],s[t])}),o=0,c=h?(b-d*_)/h:0;o<d;++o,g=l)m[u=p[o]]={data:s[u],index:o,value:f=m[u],startAngle:g,endAngle:l=g+(f>0?f*c:0)+_,padAngle:y};return m}return s.value=function(t){return arguments.length?(e="function"==typeof t?t:Gs(+t),s):e},s.sortValues=function(e){return arguments.length?(t=e,n=null,s):t},s.sort=function(e){return arguments.length?(n=e,t=null,s):n},s.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Gs(+e),s):r},s.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:Gs(+e),s):i},s.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:Gs(+e),s):a},s}().value(function(e){return e.value}).startAngle(zd(r)).endAngle(zd(i)).padAngle(zd(o));return u||e.sortValues(null),e},[r,i,o,u]),m=e.useMemo(function(){var e=n.filter(function(e){return!d.includes(e.id)});return{dataWithArc:p(e).map(function(e){var t=Math.abs(e.endAngle-e.startAngle);return lp({},e.data,{arc:{index:e.index,startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:c===e.data.id?a-l:a,outerRadius:c===e.data.id?s+f:s,thickness:s-a,padAngle:e.padAngle,angle:t,angleDeg:Wd(t)}})}),legendData:n.map(function(e){return{id:e.id,label:e.label,color:e.color,hidden:d.includes(e.id),data:e}})}},[p,n,d,c,a,l,s,f]),g=m.legendData,b=e.useRef(h);return e.useEffect(function(){"function"==typeof b.current&&b.current(g)},[b,g]),m}({data:n,startAngle:u,endAngle:l,innerRadius:D.innerRadius,outerRadius:D.radius,padAngle:d,sortByValue:p,activeId:S,activeInnerRadiusOffset:v,activeOuterRadiusOffset:w,hiddenIds:A,forwardLegendData:k}),j=e.useCallback(function(e){C(function(t){return t.indexOf(e)>-1?t.filter(function(t){return t!==e}):[].concat(t,[e])})},[]);return lp({arcGenerator:Xh({cornerRadius:g,padAngle:zd(d)}),activeId:S,setActiveId:O,toggleSerie:j},R,D)},yp=function(t){var n=t.center,r=t.data,i=t.arcGenerator,a=t.borderWidth,s=t.borderColor,u=t.isInteractive,c=t.onClick,l=t.onMouseEnter,f=t.onMouseMove,d=t.onMouseLeave,h=t.setActiveId,p=t.tooltip,m=t.transitionMode,g=Aa(),b=g.showTooltipFromEvent,y=g.hideTooltip,_=e.useMemo(function(){if(u)return function(e,t){null==c||c(e,t)}},[u,c]),v=e.useMemo(function(){if(u)return function(t,n){b(e.createElement(p,{datum:t}),n),h(t.id),null==l||l(t,n)}},[u,b,h,l,p]),x=e.useMemo(function(){if(u)return function(t,n){b(e.createElement(p,{datum:t}),n),null==f||f(t,n)}},[u,b,f,p]),w=e.useMemo(function(){if(u)return function(e,t){y(),h(null),null==d||d(e,t)}},[u,y,h,d]);return o.jsx(Qh,{center:n,data:r,arcGenerator:i,borderWidth:a,borderColor:s,transitionMode:m,onClick:_,onMouseEnter:v,onMouseMove:x,onMouseLeave:w})},_p=["isInteractive","animate","motionConfig","theme","renderWrapper"],vp=function(t){var n=t.data,r=t.id,i=void 0===r?pp.id:r,a=t.value,s=void 0===a?pp.value:a,u=t.valueFormat,c=t.sortByValue,l=void 0===c?pp.sortByValue:c,f=t.layers,d=void 0===f?pp.layers:f,h=t.startAngle,p=void 0===h?pp.startAngle:h,m=t.endAngle,g=void 0===m?pp.endAngle:m,b=t.padAngle,y=void 0===b?pp.padAngle:b,_=t.fit,v=void 0===_?pp.fit:_,x=t.innerRadius,w=void 0===x?pp.innerRadius:x,k=t.cornerRadius,M=void 0===k?pp.cornerRadius:k,S=t.activeInnerRadiusOffset,O=void 0===S?pp.activeInnerRadiusOffset:S,T=t.activeOuterRadiusOffset,A=void 0===T?pp.activeOuterRadiusOffset:T,C=t.colors,D=void 0===C?pp.colors:C,R=t.borderWidth,j=void 0===R?pp.borderWidth:R,L=t.borderColor,E=void 0===L?pp.borderColor:L,F=t.enableArcLabels,P=void 0===F?pp.enableArcLabels:F,N=t.arcLabel,Y=void 0===N?pp.arcLabel:N,I=t.arcLabelsSkipAngle,$=void 0===I?pp.arcLabelsSkipAngle:I,z=t.arcLabelsSkipRadius,W=void 0===z?pp.arcLabelsSkipRadius:z,V=t.arcLabelsTextColor,U=void 0===V?pp.arcLabelsTextColor:V,H=t.arcLabelsRadiusOffset,q=void 0===H?pp.arcLabelsRadiusOffset:H,G=t.arcLabelsComponent,B=t.enableArcLinkLabels,Z=void 0===B?pp.enableArcLinkLabels:B,Q=t.arcLinkLabel,X=void 0===Q?pp.arcLinkLabel:Q,J=t.arcLinkLabelsSkipAngle,K=void 0===J?pp.arcLinkLabelsSkipAngle:J,ee=t.arcLinkLabelsOffset,te=void 0===ee?pp.arcLinkLabelsOffset:ee,ne=t.arcLinkLabelsDiagonalLength,re=void 0===ne?pp.arcLinkLabelsDiagonalLength:ne,ie=t.arcLinkLabelsStraightLength,ae=void 0===ie?pp.arcLinkLabelsStraightLength:ie,se=t.arcLinkLabelsThickness,oe=void 0===se?pp.arcLinkLabelsThickness:se,ue=t.arcLinkLabelsTextOffset,ce=void 0===ue?pp.arcLinkLabelsTextOffset:ue,le=t.arcLinkLabelsTextColor,fe=void 0===le?pp.arcLinkLabelsTextColor:le,de=t.arcLinkLabelsColor,he=void 0===de?pp.arcLinkLabelsColor:de,pe=t.arcLinkLabelComponent,me=t.defs,ge=void 0===me?pp.defs:me,be=t.fill,ye=void 0===be?pp.fill:be,_e=t.isInteractive,ve=void 0===_e?pp.isInteractive:_e,xe=t.onClick,we=t.onMouseEnter,ke=t.onMouseMove,Me=t.onMouseLeave,Se=t.tooltip,Oe=void 0===Se?pp.tooltip:Se,Te=t.activeId,Ae=t.onActiveIdChange,Ce=t.defaultActiveId,De=t.transitionMode,Re=void 0===De?pp.transitionMode:De,je=t.legends,Le=void 0===je?pp.legends:je,Ee=t.forwardLegendData,Fe=t.role,Pe=void 0===Fe?pp.role:Fe,Ne=t.forwardedRef,Ye=nh(t.width,t.height,t.margin),Ie=Ye.outerWidth,$e=Ye.outerHeight,ze=Ye.margin,We=Ye.innerWidth,Ve=Ye.innerHeight,Ue=gp({data:n,id:i,value:s,valueFormat:u,colors:D}),He=bp({data:Ue,width:We,height:Ve,fit:v,innerRadius:w,startAngle:p,endAngle:g,padAngle:y,sortByValue:l,cornerRadius:M,activeInnerRadiusOffset:O,activeOuterRadiusOffset:A,activeId:Te,onActiveIdChange:Ae,defaultActiveId:Ce,forwardLegendData:Ee}),qe=He.dataWithArc,Ge=He.legendData,Be=He.arcGenerator,Ze=He.centerX,Qe=He.centerY,Xe=He.radius,Je=He.innerRadius,Ke=He.setActiveId,et=He.toggleSerie,tt=function(e,t,n){var r={},i=r.dataKey,a=r.colorKey,s=void 0===a?"color":a,o=r.targetKey,u=void 0===o?"fill":o,c=[],l={};return e.length&&t.length&&(c=[].concat(e),t.forEach(function(t){for(var r,a=function(){var n=r.value,a=n.id;if(function(e,t,n){if("*"===e)return!0;if(vr(e))return e(t);if(di(e)){var r=n?na(t,n):t;return i=Uf(r,Object.keys(e)),Sd(i,e)}var i;return!1}(n.match,t,i)){var o=e.find(function(e){return e.id===a});if(o)if(oh.includes(o.type))if("inherit"===o.background||"inherit"===o.color){var f=na(t,s),d=o.background,h=o.color,p=a;"inherit"===o.background&&(p=p+".bg."+f,d=f),"inherit"===o.color&&(p=p+".fg."+f,h=f),ia(t,u,"url(#"+p+")"),l[p]||(c.push(Pd({},o,{id:p,background:d,color:h})),l[p]=1)}else ia(t,u,"url(#"+a+")");else if(sh.includes(o.type))if(o.colors.map(function(e){return e.color}).includes("inherit")){var m=na(t,s),g=a,b=Pd({},o,{colors:o.colors.map(function(e,t){return"inherit"!==e.color?e:(g=g+"."+t+"."+m,Pd({},e,{color:"inherit"===e.color?m:e.color}))})});b.id=g,ia(t,u,"url(#"+g+")"),l[g]||(c.push(b),l[g]=1)}else ia(t,u,"url(#"+a+")");return 1}},o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,t){if(e){if("string"==typeof e)return Fd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fd(e,t):void 0}}(e))){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(r=o()).done&&!a(););})),c}(ge,qe,ye),nt={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};d.includes("arcs")&&(nt.arcs=o.jsx(yp,{center:[Ze,Qe],data:qe,arcGenerator:Be,borderWidth:j,borderColor:E,isInteractive:ve,onClick:xe,onMouseEnter:we,onMouseMove:ke,onMouseLeave:Me,setActiveId:Ke,tooltip:Oe,transitionMode:Re},"arcs")),Z&&d.includes("arcLinkLabels")&&(nt.arcLinkLabels=o.jsx(qh,{center:[Ze,Qe],data:qe,label:X,skipAngle:K,offset:te,diagonalLength:re,straightLength:ae,strokeWidth:oe,textOffset:ce,textColor:fe,linkColor:he,component:pe},"arcLinkLabels")),P&&d.includes("arcLabels")&&(nt.arcLabels=o.jsx(Yh,{center:[Ze,Qe],data:qe,label:Y,radiusOffset:q,skipAngle:$,skipRadius:W,textColor:U,transitionMode:Re,component:G},"arcLabels")),Le.length>0&&d.includes("legends")&&(nt.legends=o.jsx(hp,{width:We,height:Ve,data:Ge,legends:Le,toggleSerie:et},"legends"));var rt=function(t){var n=t.dataWithArc,r=t.arcGenerator,i=t.centerX,a=t.centerY,s=t.radius,o=t.innerRadius;return e.useMemo(function(){return{dataWithArc:n,arcGenerator:r,centerX:i,centerY:a,radius:s,innerRadius:o}},[n,r,i,a,s,o])}({dataWithArc:qe,arcGenerator:Be,centerX:Ze,centerY:Qe,radius:Xe,innerRadius:Je});return o.jsx(Xd,{width:Ie,height:$e,margin:ze,defs:tt,role:Pe,ref:Ne,children:d.map(function(t,n){return void 0!==nt[t]?nt[t]:"function"==typeof t?o.jsx(e.Fragment,{children:e.createElement(t,rt)},n):null})})},xp=e.forwardRef(function(e,t){var n=e.isInteractive,r=void 0===n?pp.isInteractive:n,i=e.animate,a=void 0===i?pp.animate:i,s=e.motionConfig,u=void 0===s?pp.motionConfig:s,c=e.theme,l=e.renderWrapper,f=fp(e,_p);return o.jsx(Rd,{animate:a,isInteractive:r,motionConfig:u,renderWrapper:l,theme:c,children:o.jsx(vp,lp({isInteractive:r},f,{forwardedRef:t}))})}),wp=["defaultWidth","defaultHeight","onResize","debounceResize"],kp=e.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,s=fp(e,wp);return o.jsx(Ed,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(e){return o.jsx(xp,lp({width:e.width,height:e.height},s,{ref:t}))}})}),Mp=["isInteractive","theme","renderWrapper"],Sp=function(t){var n=t.data,r=t.id,i=void 0===r?pp.id:r,a=t.value,s=void 0===a?pp.value:a,u=t.valueFormat,c=t.sortByValue,l=void 0===c?pp.sortByValue:c,f=t.startAngle,d=void 0===f?pp.startAngle:f,h=t.endAngle,p=void 0===h?pp.endAngle:h,m=t.padAngle,g=void 0===m?pp.padAngle:m,b=t.fit,y=void 0===b?pp.fit:b,_=t.innerRadius,v=void 0===_?pp.innerRadius:_,x=t.cornerRadius,w=void 0===x?pp.cornerRadius:x,k=t.activeInnerRadiusOffset,M=void 0===k?pp.activeInnerRadiusOffset:k,S=t.activeOuterRadiusOffset,O=void 0===S?pp.activeOuterRadiusOffset:S,T=t.width,A=t.height,C=t.margin,D=t.pixelRatio,R=void 0===D?pp.pixelRatio:D,j=t.colors,L=void 0===j?pp.colors:j,E=t.borderWidth,F=void 0===E?pp.borderWidth:E,P=t.borderColor,N=void 0===P?pp.borderColor:P,Y=t.enableArcLabels,I=void 0===Y?pp.enableArcLabels:Y,$=t.arcLabel,z=void 0===$?pp.arcLabel:$,W=t.arcLabelsSkipAngle,V=void 0===W?pp.arcLabelsSkipAngle:W,U=t.arcLabelsTextColor,H=void 0===U?pp.arcLabelsTextColor:U,q=t.arcLabelsRadiusOffset,G=void 0===q?pp.arcLabelsRadiusOffset:q,B=t.enableArcLinkLabels,Z=void 0===B?pp.enableArcLinkLabels:B,Q=t.arcLinkLabel,X=void 0===Q?pp.arcLinkLabel:Q,J=t.arcLinkLabelsSkipAngle,K=void 0===J?pp.arcLinkLabelsSkipAngle:J,ee=t.arcLinkLabelsOffset,te=void 0===ee?pp.arcLinkLabelsOffset:ee,ne=t.arcLinkLabelsDiagonalLength,re=void 0===ne?pp.arcLinkLabelsDiagonalLength:ne,ie=t.arcLinkLabelsStraightLength,ae=void 0===ie?pp.arcLinkLabelsStraightLength:ie,se=t.arcLinkLabelsThickness,oe=void 0===se?pp.arcLinkLabelsThickness:se,ue=t.arcLinkLabelsTextOffset,ce=void 0===ue?pp.arcLinkLabelsTextOffset:ue,le=t.arcLinkLabelsTextColor,fe=void 0===le?pp.arcLinkLabelsTextColor:le,de=t.arcLinkLabelsColor,he=void 0===de?pp.arcLinkLabelsColor:de,pe=t.isInteractive,me=void 0===pe?pp.isInteractive:pe,ge=t.onClick,be=t.onMouseMove,ye=t.tooltip,_e=void 0===ye?pp.tooltip:ye,ve=t.activeId,xe=t.onActiveIdChange,we=t.defaultActiveId,ke=t.legends,Me=void 0===ke?pp.legends:ke,Se=t.forwardLegendData,Oe=t.role,Te=t.forwardedRef,Ae=e.useRef(null),Ce=ha(),De=nh(T,A,C),Re=De.margin,je=De.innerWidth,Le=De.innerHeight,Ee=De.outerWidth,Fe=De.outerHeight,Pe=gp({data:n,id:i,value:s,valueFormat:u,colors:L}),Ne=bp({data:Pe,width:je,height:Le,fit:y,innerRadius:v,startAngle:d,endAngle:p,padAngle:g,sortByValue:l,cornerRadius:w,activeInnerRadiusOffset:M,activeOuterRadiusOffset:O,activeId:ve,onActiveIdChange:xe,defaultActiveId:we,forwardLegendData:Se}),Ye=Ne.dataWithArc,Ie=Ne.arcGenerator,$e=Ne.centerX,ze=Ne.centerY,We=Ne.radius,Ve=Ne.innerRadius,Ue=Ne.setActiveId,He=Ah(N,Ce),qe=function(t){var n=t.data,r=t.offset,i=t.skipAngle,a=t.textColor,s=ah(t.label),o=ha(),u=Ah(a,o),c=e.useCallback(function(e){return{label:s(e),textColor:u(e)}},[s,u]);return function(t){var n=t.data,r=t.offset,i=void 0===r?.5:r,a=t.skipAngle,s=void 0===a?0:a,o=t.computeExtraProps,u=void 0===o?function(){return{}}:o;return e.useMemo(function(){return Lh(n,s).map(function(e){var t=Ph(e.arc,i);return Ch({},u(e),{x:t.x,y:t.y,data:e})})},[n,i,s,u])}({data:n,offset:r,skipAngle:i,computeExtraProps:c})}({data:Ye,label:z,skipAngle:V,offset:G,textColor:H}),Ge=function(t){var n=t.data,r=t.skipAngle,i=t.offset,a=t.diagonalLength,s=t.straightLength,o=t.textOffset,u=void 0===o?0:o,c=t.linkColor,l=t.textColor,f=ah(t.label),d=ha(),h=Ah(c,d),p=Ah(l,d),m=e.useCallback(function(e){var t,n={x:e.points[2].x,y:e.points[2].y};return"before"===e.side?(n.x-=u,t="end"):(n.x+=u,t="start"),Ch({},n,{label:f(e.data),linkColor:h(e.data),textAnchor:t,textColor:p(e.data)})},[f,h,p,u]);return function(t){var n=t.data,r=t.skipAngle,i=void 0===r?0:r,a=t.offset,s=void 0===a?.5:a,o=t.diagonalLength,u=t.straightLength,c=t.computeExtraProps,l=void 0===c?function(){return{}}:c,f=e.useMemo(function(){return n.filter(function(e){return Math.abs(Wd(e.arc.endAngle-e.arc.startAngle))>=i}).map(function(e){return Ch({},zh(e.arc,s,o,u),{data:e})})},[n,i,s,o,u]);return e.useMemo(function(){return f.map(function(e){return Ch({},l(e),e)})},[f,l])}({data:n,skipAngle:r,offset:i,diagonalLength:a,straightLength:s,computeExtraProps:m})}({data:Ye,skipAngle:K,offset:te,diagonalLength:re,straightLength:ae,label:X,linkColor:he,textOffset:ce,textColor:fe});e.useEffect(function(){if(Ae.current){Ae.current.width=Ee*R,Ae.current.height=Fe*R;var e=Ae.current.getContext("2d");e.scale(R,R),e.fillStyle=Ce.background,e.fillRect(0,0,Ee,Fe),e.save(),e.translate(Re.left,Re.top),Ie.context(e),e.save(),e.translate($e,ze),Ye.forEach(function(t){e.beginPath(),e.fillStyle=t.color,e.strokeStyle=He(t),e.lineWidth=F,Ie(t.arc),e.fill(),F>0&&e.stroke()}),!0===Z&&Gh(e,Ge,Ce,oe),!0===I&&Ih(e,qe,Ce),e.restore(),Me.forEach(function(t){cp(e,lp({},t,{data:Ye,containerWidth:je,containerHeight:Le,theme:Ce}))})}},[Ae,je,Le,Ee,Fe,Re.top,Re.left,R,$e,ze,Ie,Ye,F,He,I,qe,Z,Ge,oe,Me,Ce]);var Be=e.useMemo(function(){return Ye.map(function(e){return lp({id:e.id},e.arc)})},[Ye]),Ze=function(e){if(!Ae.current)return null;var t=function(e,t){var n,r="touches"in t?t.touches[0]:t,i=r.clientX,a=r.clientY,s=e.getBoundingClientRect(),o=(n=void 0!==e.getBBox?e.getBBox():{width:e.offsetWidth||0,height:e.offsetHeight||0}).width===s.width?1:n.width/s.width;return[(i-s.left)*o,(a-s.top)*o]}(Ae.current,e),n=function(e,t,n,r,i,a,s){if(function(e,t,n,r,i,a){var s=function(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}(i,a,e,t);return s<n&&s>r}(e,t,n,r,a,s)){var o=function(e,t,n,r){var i=Math.atan2(r-t,n-e)-Math.PI/2;return i>0?i:2*Math.PI+i}(a,s,e,t);return i.find(function(e){return o>=e.startAngle&&o<e.endAngle})}}(Re.left+$e,Re.top+ze,We,Ve,Be,t[0],t[1]);return n?Ye.find(function(e){return e.id===n.id}):null},Qe=Aa(),Xe=Qe.showTooltipFromEvent,Je=Qe.hideTooltip,Ke=function(t){var n=Ze(t);n?(null==be||be(n,t),Ue(n.id),Xe(e.createElement(_e,{datum:n}),t)):(Ue(null),Je())};return o.jsx("canvas",{ref:uh(Ae,Te),width:Ee*R,height:Fe*R,style:{width:Ee,height:Fe,cursor:me?"auto":"normal"},onMouseEnter:me?Ke:void 0,onMouseMove:me?Ke:void 0,onMouseLeave:me?function(){Je()}:void 0,onClick:me?function(e){if(ge){var t=Ze(e);t&&ge(t,e)}}:void 0,role:Oe})},Op=e.forwardRef(function(e,t){var n=e.isInteractive,r=void 0===n?pp.isInteractive:n,i=e.theme,a=e.renderWrapper,s=fp(e,Mp);return o.jsx(Rd,{isInteractive:r,renderWrapper:a,theme:i,children:o.jsx(Sp,lp({isInteractive:r},s,{forwardedRef:t}))})}),Tp=["defaultWidth","defaultHeight","onResize","debounceResize"];e.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,s=fp(e,Tp);return o.jsx(Ed,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(e){return o.jsx(Op,lp({width:e.width,height:e.height},s,{ref:t}))}})});var Ap=function(e){var n=e.metrics,r=function(e){var t;return(null==n||null==(t=n.find(function(t){return t.id===e}))?void 0:t.name)||""},i=function(e){return e.toFixed(1).replace(".",",")},a=function(e,n){if(e&&n)switch(n){case t.MetricUnitEnum.Duration:return y.duration(e,"seconds").format("m[m] s[s]");case t.MetricUnitEnum.Round:return i(parseFloat(e));case t.MetricUnitEnum.Percent:return i(100*parseFloat(e))+"%";default:return e.toString()}return""};return l.default.createElement(kp,{theme:{legends:{text:{fill:"#FFFFFF"}}},data:(e.metricsValues||[]).map(function(e){var t=e.metricId,n=e.textValue,i=e.unit;return{id:r(t),label:r(t),value:n,unit:i}}),innerRadius:.5,margin:{top:20,right:0,bottom:20,left:220},enableArcLinkLabels:!1,arcLabel:function(e){var t=e.data;return a(t.textValue||"",t.unit)},tooltip:function(e){var t=e.datum,n=t.data;return l.default.createElement(va,{id:t.id,value:a(n.textValue||"",n.unit),enableChip:!0,color:t.color})},defs:[{id:"lines",type:"patternLines",background:"inherit",color:"rgba(0, 0, 0, 0.01)",rotation:-45,lineWidth:5,spacing:10}],fill:[{match:"*",id:"lines"}],legends:[{anchor:"left",direction:"column",translateX:-180,itemWidth:200,itemHeight:20,symbolShape:"circle"}]})},Cp=function(e){var t=e.data;return l.default.createElement(Ap,{metrics:null==t?void 0:t.metrics,metricsValues:null==t?void 0:t.metricsValues})};function Dp(e){this._maxSize=e,this.clear()}Dp.prototype.clear=function(){this._size=0,this._values=Object.create(null)},Dp.prototype.get=function(e){return this._values[e]},Dp.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var Rp=/[^.^\]^[]+|(?=\[\]|\.\.)/g,jp=/^\d+$/,Lp=/^\d/,Ep=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Fp=/^\s*(['"]?)(.*?)(\1)\s*$/,Pp=new Dp(512),Np=new Dp(512),Yp=new Dp(512),Ip={Cache:Dp,split:zp,normalizePath:$p,setter:function(e){var t=$p(e);return Np.get(e)||Np.set(e,function(e,n){for(var r=0,i=t.length,a=e;r<i-1;){var s=t[r];if("__proto__"===s||"constructor"===s||"prototype"===s)return e;a=a[t[r++]]}a[t[r]]=n})},getter:function(e,t){var n=$p(e);return Yp.get(e)||Yp.set(e,function(e){for(var r=0,i=n.length;r<i;){if(null==e&&t)return;e=e[n[r++]]}return e})},join:function(e){return e.reduce(function(e,t){return e+(Wp(t)||jp.test(t)?"["+t+"]":(e?".":"")+t)},"")},forEach:function(e,t,n){!function(e,t,n){var r,i,a,s,o=e.length;for(i=0;i<o;i++)(r=e[i])&&(Vp(r)&&(r='"'+r+'"'),a=!(s=Wp(r))&&/^\d+$/.test(r),t.call(n,r,s,a,i,e))}(Array.isArray(e)?e:zp(e),t,n)}};function $p(e){return Pp.get(e)||Pp.set(e,zp(e).map(function(e){return e.replace(Fp,"$2")}))}function zp(e){return e.match(Rp)||[""]}function Wp(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function Vp(e){return!Wp(e)&&(function(e){return e.match(Lp)&&!e.match(jp)}(e)||function(e){return Ep.test(e)}(e))}const Up=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,Hp=e=>e.match(Up)||[];var qp=e=>Hp(e).reduce((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`,""),Gp=e=>(e=>Hp(e).join("_").toLowerCase())(e),Bp=function(e){return Zp(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}(e),e)};function Zp(e,t){var n=e.length,r=new Array(n),i={},a=n,s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),o=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach(function(e){if(!o.has(e[0])||!o.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});a--;)i[a]||u(e[a],a,new Set);return r;function u(e,t,a){if(a.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(e){c=""}throw new Error("Cyclic dependency"+c)}if(!o.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var l=s.get(e)||new Set;if(t=(l=Array.from(l)).length){a.add(e);do{var f=l[--t];u(f,o.get(f),a)}while(t);a.delete(e)}r[--n]=e}}}Bp.array=Zp;const Qp=Object.prototype.toString,Xp=Error.prototype.toString,Jp=RegExp.prototype.toString,Kp="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",em=/^Symbol\((.*)\)(.*)$/;function tm(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return Kp.call(e).replace(em,"Symbol($1)");const r=Qp.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+Xp.call(e)+"]":"RegExp"===r?Jp.call(e):null}function nm(e,t){let n=tm(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let r=tm(this[e],t);return null!==r?r:n},2)}function rm(e){return null==e?[]:[].concat(e)}let im,am,sm,om=/\$\{\s*(\w+)\s*\}/g;im=Symbol.toStringTag;class um{constructor(e,t,n,r){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[im]="Error",this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],rm(e).forEach(e=>{cm.isError(e)?(this.errors.push(...e.errors),this.inner.push(...e.inner.length?e.inner:[e])):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}am=Symbol.hasInstance,sm=Symbol.toStringTag;class cm extends Error{static formatError(e,t){return t=Object.assign({},t,{path:t.label||t.path||"this",originalPath:t.path}),"string"==typeof e?e.replace(om,(e,n)=>nm(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r,i){const a=new um(e,t,n,r);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[sm]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,cm)}static[am](e){return um[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let lm={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=null!=r&&r!==n?` (cast from the value \`${nm(r,!0)}\`).`:".";return"mixed"!==t?`${e} must be a \`${t}\` type, but the final value was: \`${nm(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${nm(n,!0)}\``+i}},fm={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},dm={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},hm={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},pm={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},mm={notType:e=>{const{path:t,value:n,spec:r}=e,i=r.types.length;if(Array.isArray(n)){if(n.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${n.length} for value: \`${nm(n,!0)}\``;if(n.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${nm(n,!0)}\``}return cm.formatError(lm.notType,e)}};var gm=Object.assign(Object.create(null),{mixed:lm,string:fm,number:{min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},date:dm,object:hm,array:pm,boolean:{isValue:"${path} field must be ${value}"},tuple:mm});const bm=e=>e&&e.__isYupSchema__;class ym{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:i}=t,a="function"==typeof n?n:(...e)=>e.every(e=>e===n);return new ym(e,(e,t)=>{var n;let s=a(...e)?r:i;return null!=(n=null==s?void 0:s(t))?n:t})}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn(n,e,t);if(void 0===r||r===e)return e;if(!bm(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}}class _m{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext="$"===this.key[0],this.isValue="."===this.key[0],this.isSibling=!this.isContext&&!this.isValue,this.path=this.key.slice((this.isContext?"$":this.isValue?".":"").length),this.getter=this.path&&Ip.getter(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}_m.prototype.__isYupRef=!0;const vm=e=>null==e;function xm(e){function t({value:t,path:n="",options:r,originalValue:i,schema:a},s,o){const{name:u,test:c,params:l,message:f,skipAbsent:d}=e;let{parent:h,context:p,abortEarly:m=a.spec.abortEarly,disableStackTrace:g=a.spec.disableStackTrace}=r;const b={value:t,parent:h,context:p};function y(e={}){const r=wm(Object.assign({value:t,originalValue:i,label:a.spec.label,path:e.path||n,spec:a.spec,disableStackTrace:e.disableStackTrace||g},l,e.params),b),s=new cm(cm.formatError(e.message||f,r),t,r.path,e.type||u,r.disableStackTrace);return s.params=r,s}const _=m?s:o;let v={path:n,parent:h,type:u,from:r.from,createError:y,resolve:e=>km(e,b),options:r,originalValue:i,schema:a};const x=e=>{cm.isError(e)?_(e):e?o(null):_(y())},w=e=>{cm.isError(e)?_(e):s(e)};if(d&&vm(t))return x(!0);let k;try{var M;if(k=c.call(v,t,v),"function"==typeof(null==(M=k)?void 0:M.then)){if(r.sync)throw new Error(`Validation test of type: "${v.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(k).then(x,w)}}catch(e){return void w(e)}x(k)}return t.OPTIONS=e,t}function wm(e,t){if(!e)return e;for(const n of Object.keys(e))e[n]=km(e[n],t);return e}function km(e,t){return _m.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function Mm(e,t,n,r=n){let i,a,s;return t?(Ip.forEach(t,(o,u,c)=>{let l=u?o.slice(1,o.length-1):o,f="tuple"===(e=e.resolve({context:r,parent:i,value:n})).type,d=c?parseInt(l,10):0;if(e.innerType||f){if(f&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(n&&d>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${o}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[d],e=f?e.spec.types[d]:e.innerType}if(!c){if(!e.fields||!e.fields[l])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e.type}")`);i=n,n=n&&n[l],e=e.fields[l]}a=l,s=u?"["+o+"]":"."+o}),{schema:e,parent:i,parentPath:a}):{parent:i,parentPath:t,schema:e}}class Sm extends Set{describe(){const e=[];for(const t of this.values())e.push(_m.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const n of this.values())t.push(e(n));return t}clone(){return new Sm(this.values())}merge(e,t){const n=this.clone();return e.forEach(e=>n.add(e)),t.forEach(e=>n.delete(e)),n}}function Om(e,t=new Map){if(bm(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Om(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,Om(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Om(r,t))}else{if(!(e instanceof Object))throw Error(`Unable to clone ${e}`);n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=Om(i,t)}return n}function Tm(e){if(null==e||!e.length)return;const t=[];let n="",r=!1,i=!1;for(let a=0;a<e.length;a++){const s=e[a];"["!==s||i?"]"!==s||i?'"'!==s?"."!==s||r||i?n+=s:n&&(t.push(n),n=""):i=!i:(n&&(/^\d+$/.test(n)?t.push(n):t.push(n.replace(/^"|"$/g,"")),n=""),r=!1):(n&&(t.push(...n.split(".").filter(Boolean)),n=""),r=!0)}return n&&t.push(...n.split(".").filter(Boolean)),t}function Am(e,t){var n;if((null==(n=e.inner)||!n.length)&&e.errors.length)return function(e,t){const n=t?`${t}.${e.path}`:e.path;return e.errors.map(e=>({message:e,path:Tm(n)}))}(e,t);const r=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(e=>Am(e,r))}class Cm{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Sm,this._blacklist=new Sm,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(lm.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation(e=>{e.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=Om(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,n=e.clone();const r=Object.assign({},t.spec,n.spec);return n.spec=r,n.internalTests=Object.assign({},t.internalTests,n.internalTests),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return null==e?!(!this.spec.nullable||null!==e)||!(!this.spec.optional||void 0!==e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce((t,n)=>n.resolve(t,e),t),t=t.resolve(e)}return t}resolveOptions(e){var t,n,r,i;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(n=e.abortEarly)?n:this.spec.abortEarly,recursive:null!=(r=e.recursive)?r:this.spec.recursive,disableStackTrace:null!=(i=e.disableStackTrace)?i:this.spec.disableStackTrace})}cast(e,t={}){let n=this.resolve(Object.assign({},t,{value:e})),r="ignore-optionality"===t.assert,i=n._cast(e,t);if(!1!==t.assert&&!n.isType(i)){if(r&&vm(i))return i;let a=nm(e),s=nm(i);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}". \n\nattempted value: ${a} \n`+(s!==a?`result of cast: ${s}`:""))}return i}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((n,r)=>r.call(this,n,e,this,t),e);return void 0===n&&(n=this.getDefault(t)),n}_validate(e,t={},n,r){let{path:i,originalValue:a=e,strict:s=this.spec.strict}=t,o=e;s||(o=this._cast(o,Object.assign({assert:!1},t)));let u=[];for(let e of Object.values(this.internalTests))e&&u.push(e);this.runTests({path:i,value:o,originalValue:a,options:t,tests:u},n,e=>{if(e.length)return r(e,o);this.runTests({path:i,value:o,originalValue:a,options:t,tests:this.tests},n,r)})}runTests(e,t,n){let r=!1,{tests:i,value:a,originalValue:s,path:o,options:u}=e,c=e=>{r||(r=!0,t(e,a))},l=e=>{r||(r=!0,n(e,a))},f=i.length,d=[];if(!f)return l([]);let h={value:a,originalValue:s,path:o,options:u,schema:this};for(let e=0;e<i.length;e++)(0,i[e])(h,c,function(e){e&&(Array.isArray(e)?d.push(...e):d.push(e)),--f<=0&&l(d)})}asNestedTest({key:e,index:t,parent:n,parentPath:r,originalParent:i,options:a}){const s=null!=e?e:t;if(null==s)throw TypeError("Must include `key` or `index` for nested validations");const o="number"==typeof s;let u=n[s];const c=Object.assign({},a,{strict:!0,parent:n,value:u,originalValue:i[s],key:void 0,[o?"index":"key"]:s,path:o||s.includes(".")?`${r||""}[${o?s:`"${s}"`}]`:(r?`${r}.`:"")+e});return(e,t,n)=>this.resolve(c)._validate(u,c,t,n)}validate(e,t){var n;let r=this.resolve(Object.assign({},t,{value:e})),i=null!=(n=null==t?void 0:t.disableStackTrace)?n:r.spec.disableStackTrace;return new Promise((n,a)=>r._validate(e,t,(e,t)=>{cm.isError(e)&&(e.value=t),a(e)},(e,t)=>{e.length?a(new cm(e,t,void 0,void 0,i)):n(t)}))}validateSync(e,t){var n;let r,i=this.resolve(Object.assign({},t,{value:e})),a=null!=(n=null==t?void 0:t.disableStackTrace)?n:i.spec.disableStackTrace;return i._validate(e,Object.assign({},t,{sync:!0}),(e,t)=>{throw cm.isError(e)&&(e.value=t),e},(t,n)=>{if(t.length)throw new cm(t,e,void 0,void 0,a);r=n}),r}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(cm.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(cm.isError(e))return!1;throw e}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):Om(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return 0===arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){const n=this.clone({nullable:e});return n.internalTests.nullable=xm({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),n}optionality(e,t){const n=this.clone({optional:e});return n.internalTests.optionality=xm({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),n}optional(){return this.optionality(!0)}defined(e=lm.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=lm.notNull){return this.nullability(!1,e)}required(e=lm.required){return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=lm.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let n=this.clone(),r=xm(t),i=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>{if(e.OPTIONS.name===t.name){if(i)return!1;if(e.OPTIONS.test===r.OPTIONS.test)return!1}return!0}),n.tests.push(r),n}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let n=this.clone(),r=rm(e).map(e=>new _m(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push("function"==typeof t?new ym(r,t):ym.fromOptions(r,t)),n}typeError(e){let t=this.clone();return t.internalTests.typeError=xm({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=lm.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n.internalTests.whiteList=xm({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}notOneOf(e,t=lm.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n.internalTests.blacklist=xm({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:n,meta:r,optional:i,nullable:a}=t.spec,s={meta:r,label:n,optional:i,nullable:a,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.filter((e,t,n)=>n.findIndex(t=>t.OPTIONS.name===e.OPTIONS.name)===t).map(t=>{const n=t.OPTIONS.params&&e?wm(Object.assign({},t.OPTIONS.params),e):t.OPTIONS.params;return{name:t.OPTIONS.name,params:n}})};return s}get"~standard"(){const e=this;return{version:1,vendor:"yup",async validate(t){try{return{value:await e.validate(t,{abortEarly:!1})}}catch(e){if(e instanceof cm)return{issues:Am(e)};throw e}}}}}Cm.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Cm.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:a,schema:s}=Mm(this,t,n,r.context);return s[e](i&&i[a],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Cm.prototype[e]=Cm.prototype.oneOf;for(const e of["not","nope"])Cm.prototype[e]=Cm.prototype.notOneOf;const Dm=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Rm(e){var t,n;const r=Dm.exec(e);return r?{year:jm(r[1]),month:jm(r[2],1)-1,day:jm(r[3],1),hour:jm(r[4]),minute:jm(r[5]),second:jm(r[6]),millisecond:r[7]?jm(r[7].substring(0,3)):0,precision:null!=(t=null==(n=r[7])?void 0:n.length)?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:jm(r[10]),minuteOffset:jm(r[11])}:null}function jm(e,t=0){return Number(e)||t}let Lm=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Em=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Fm=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Pm=new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),Nm=e=>vm(e)||e===e.trim(),Ym={}.toString();function Im(){return new $m}class $m extends Cm{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"==typeof e)}),this.withMutation(()=>{this.transform((e,t)=>{if(!this.spec.coerce||this.isType(e))return e;if(Array.isArray(e))return e;const n=null!=e&&e.toString?e.toString():e;return n===Ym?e:n})})}required(e){return super.required(e).withMutation(t=>t.test({message:e||lm.required,name:"required",skipAbsent:!0,test:e=>!!e.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e))}length(e,t=fm.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t=fm.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t=fm.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"==typeof t?({excludeEmptyString:i=!1,message:n,name:r}=t):n=t),this.test({name:r||"matches",message:n||fm.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&i||-1!==t.search(e)})}email(e=fm.email){return this.matches(Lm,{name:"email",message:e,excludeEmptyString:!0})}url(e=fm.url){return this.matches(Em,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=fm.uuid){return this.matches(Fm,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,n,r="";return e&&("object"==typeof e?({message:r="",allowOffset:t=!1,precision:n}=e):r=e),this.matches(Pm,{name:"datetime",message:r||fm.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||fm.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;const n=Rm(e);return!!n&&!!n.z}}).test({name:"datetime_precision",message:r||fm.datetime_precision,params:{precision:n},skipAbsent:!0,test:e=>{if(!e||null==n)return!0;const t=Rm(e);return!!t&&t.precision===n}})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=fm.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:Nm})}lowercase(e=fm.lowercase){return this.transform(e=>vm(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>vm(e)||e===e.toLowerCase()})}uppercase(e=fm.uppercase){return this.transform(e=>vm(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>vm(e)||e===e.toUpperCase()})}}Im.prototype=$m.prototype;let zm=new Date("");class Wm extends Cm{constructor(){super({type:"date",check:e=>"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())}),this.withMutation(()=>{this.transform((e,t)=>!this.spec.coerce||this.isType(e)||null===e?e:(e=function(e){const t=Rm(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(n=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}(e),isNaN(e)?Wm.INVALID_DATE:new Date(e)))})}prepareParam(e,t){let n;if(_m.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=dm.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(n)}})}max(e,t=dm.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(n)}})}}function Vm(e,t){let n=Infinity;return e.some((e,r)=>{var i;if(null!=(i=t.path)&&i.includes(e))return n=r,!0}),n}function Um(e){return(t,n)=>Vm(e,t)-Vm(e,n)}Wm.INVALID_DATE=zm;const Hm=(e,t,n)=>{if("string"!=typeof e)return e;let r=e;try{r=JSON.parse(e)}catch(e){}return n.isType(r)?r:e};function qm(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=qm(r);return e.setFields(t)}if("array"===e.type){const t=e.optional();return t.innerType&&(t.innerType=qm(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(qm)}):"optional"in e?e.optional():e}let Gm=e=>"[object Object]"===Object.prototype.toString.call(e);function Bm(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(e=>-1===n.indexOf(e))}const Zm=Um([]);function Qm(e){return new Xm(e)}class Xm extends Cm{constructor(e){super({type:"object",check:e=>Gm(e)||"function"==typeof e}),this.fields=Object.create(null),this._sortErrors=Zm,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault(t);if(!this._typeCheck(r))return r;let i=this.fields,a=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(r).filter(e=>!this._nodes.includes(e))),o={},u=Object.assign({},t,{parent:o,__validating:t.__validating||!1}),c=!1;for(const e of s){let n=i[e],s=e in r,l=r[e];if(n){let i;u.path=(t.path?`${t.path}.`:"")+e,n=n.resolve({value:l,context:t.context,parent:o});let a=n instanceof Cm?n.spec:void 0,s=null==a?void 0:a.strict;if(null!=a&&a.strip){c=c||e in r;continue}i=t.__validating&&s?l:n.cast(l,u),void 0!==i&&(o[e]=i)}else s&&!a&&(o[e]=l);s===e in o&&o[e]===l||(c=!0)}return c?o:r}_validate(e,t={},n,r){let{from:i=[],originalValue:a=e,recursive:s=this.spec.recursive}=t;t.from=[{schema:this,value:a},...i],t.__validating=!0,t.originalValue=a,super._validate(e,t,n,(e,i)=>{if(!s||!Gm(i))return void r(e,i);a=a||i;let o=[];for(let e of this._nodes){let n=this.fields[e];n&&!_m.isRef(n)&&o.push(n.asNestedTest({options:t,key:e,parent:i,parentPath:t.path,originalParent:a}))}this.runTests({tests:o,value:i,originalValue:a,options:t},n,t=>{r(t.sort(this._sortErrors).concat(e),i)})})}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){const r=n[e];n[e]=void 0===r?t:r}return t.withMutation(t=>t.setFields(n,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach(n=>{var r;const i=this.fields[n];let a=e;null!=(r=a)&&r.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[n]})),t[n]=i&&"getDefault"in i?i.getDefault(a):void 0}),t}setFields(e,t){let n=this.clone();return n.fields=e,n._nodes=function(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function a(e,t){let a=Ip.split(e)[0];r.add(a),i.has(`${t}-${a}`)||n.push([t,a])}for(const t of Object.keys(e)){let n=e[t];r.add(t),_m.isRef(n)&&n.isSibling?a(n.path,t):bm(n)&&"deps"in n&&n.deps.forEach(e=>a(e,t))}return Bp.array(Array.from(r),n).reverse()}(e,t),n._sortErrors=Um(Object.keys(e)),t&&(n._excludedEdges=t),n}shape(e,t=[]){return this.clone().withMutation(n=>{let r=n._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),r=[...n._excludedEdges,...t]),n.setFields(Object.assign(n.fields,e),r)})}partial(){const e={};for(const[t,n]of Object.entries(this.fields))e[t]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(e)}deepPartial(){return qm(this)}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.setFields(t,this._excludedEdges.filter(([t,n])=>e.includes(t)&&e.includes(n)))}omit(e){const t=[];for(const n of Object.keys(this.fields))e.includes(n)||t.push(n);return this.pick(t)}from(e,t,n){let r=Ip.getter(e,!0);return this.transform(i=>{if(!i)return i;let a=i;return((e,t)=>{const n=[...Ip.normalizePath(t)];if(1===n.length)return n[0]in e;let r=n.pop(),i=Ip.getter(Ip.join(n),!0)(e);return!(!i||!(r in i))})(i,e)&&(a=Object.assign({},i),n||delete a[e],a[t]=r(i)),a})}json(){return this.transform(Hm)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||hm.exact,test(e){if(null==e)return!0;const t=Bm(this.schema,e);return 0===t.length||this.createError({params:{properties:t.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,t=hm.noUnknown){"boolean"!=typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=Bm(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=hm.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>{if(!t)return t;const n={};for(const r of Object.keys(t))n[e(r)]=t[r];return n})}camelCase(){return this.transformKeys(qp)}snakeCase(){return this.transformKeys(Gp)}constantCase(){return this.transformKeys(e=>Gp(e).toUpperCase())}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);n.fields={};for(const[i,a]of Object.entries(t.fields)){var r;let t=e;null!=(r=t)&&r.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[i]})),n.fields[i]=a.describe(t)}return n}}function Jm(e){return new Km(e)}Qm.prototype=Xm.prototype;class Km extends Cm{constructor(e){super({type:"array",spec:{types:e},check:e=>Array.isArray(e)}),this.innerType=void 0,this.innerType=e}_cast(e,t){const n=super._cast(e,t);if(!this._typeCheck(n)||!this.innerType)return n;let r=!1;const i=n.map((e,i)=>{const a=this.innerType.cast(e,Object.assign({},t,{path:`${t.path||""}[${i}]`,parent:n,originalValue:e,value:e,index:i}));return a!==e&&(r=!0),a});return r?i:n}_validate(e,t={},n,r){var i;let a=this.innerType,s=null!=(i=t.recursive)?i:this.spec.recursive;super._validate(e,t,n,(i,o)=>{var u;if(!s||!a||!this._typeCheck(o))return void r(i,o);let c=new Array(o.length);for(let n=0;n<o.length;n++){var l;c[n]=a.asNestedTest({options:t,index:n,parent:o,parentPath:t.path,originalParent:null!=(l=t.originalValue)?l:e})}this.runTests({value:o,tests:c,originalValue:null!=(u=t.originalValue)?u:e,options:t},n,e=>r(e.concat(i),o))})}clone(e){const t=super.clone(e);return t.innerType=this.innerType,t}json(){return this.transform(Hm)}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!bm(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+nm(e));return t.innerType=e,t.spec=Object.assign({},t.spec,{types:e}),t}length(e,t=pm.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t){return this.test({message:t=t||pm.min,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t){return this.test({message:t=t||pm.max,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t))}compact(e){let t=e?(t,n,r)=>!e(t,n,r):e=>!!e;return this.transform(e=>null!=e?e.filter(t):e)}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);if(t.innerType){var r;let i=e;null!=(r=i)&&r.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),n.innerType=t.innerType.describe(i)}return n}}Jm.prototype=Km.prototype;var eg=function(e){var t;return t={mixed:{required:e("This field is required")}},Object.keys(t).forEach(e=>{Object.keys(t[e]).forEach(n=>{gm[e][n]=t[e][n]})}),{initialValues:{workplaceId:"",metricIds:[]},validationSchema:Qm({workplaceId:Im().required(),metricIds:Jm().of(Im().required())})}},tg=["url","wsUrl","lang","data","settings"];exports.Widget=function(r){var i=r.url,a=r.wsUrl,s=r.lang,o=r.data,u=r.settings,c=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(r,tg),f=t.useGqlClients({url:i,wsUrl:a,lang:s}),g=f.graphqlSdk,b=f.gqlWsClient,y=e.useState(o),_=y[0],v=y[1],x=e.useState(u),w=x[0],k=x[1];e.useEffect(function(){if(g&&(o||(g.listWorkplaces().then(function(e){var t=e.workplaces;return v(function(e){return d({},e||{},{workplaces:t})})}).catch(function(){}),g.metrics().then(function(e){var t=e.metrics;return v(function(e){return d({},e||{},{metrics:t})})}).catch(function(){})),w)){var e=w.workplaceId,t=w.metricIds,n=function(){try{return e&&t&&g.metricValues({workplaceIds:[e],metricIds:t}).then(function(n){var r=n.metricValues;return v(function(n){return d({},n||{},{metricsValues:r.filter(function(n){return n.workplaceId===e&&t.includes(n.metricId)})})})}).catch(function(){}),Promise.resolve()}catch(e){return Promise.reject(e)}};n();var r=setInterval(function(){n()},1e4);return function(){clearInterval(r)}}return function(){}},[o,g,w]);var M=e.useCallback(function(e){k(d({},e))},[k]);return l.default.createElement(n.BaseWidget,d({lang:s,locales:h,data:_,settings:u,gqlClients:{graphqlSdk:g,gqlWsClient:b},onSettingsChange:M,WidgetView:Cp,getSettingsFormProps:eg,SettingsFormContent:m,version:p,"data-testid":"metrics-pie-chart-widget"},c))},exports.extraPermissions=[],exports.getDisplayName=function(e){switch(e){case"en":return"Metrics pie chart";case"pl":return"Wykres kołowy metryk";default:return"metrics-pie-chart-widget"}},exports.requiredFeatures=["feature.metrics-pie-chart-widget"],exports.version=p;
1
+ var e=require("react"),t=require("andoncloud-dashboard-toolkit"),n=require("andoncloud-widget-base"),r=require("react-i18next"),i=require("@mui/lab"),a=require("@mui/material"),o=require("react-dom"),s=require("react/jsx-runtime"),c=require("dayjs"),u=require("dayjs/plugin/duration");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function f(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,t}var d=/*#__PURE__*/l(e),h=/*#__PURE__*/f(e),p=/*#__PURE__*/l(c),b=/*#__PURE__*/l(u);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(null,arguments)}var m={en:{translation:{Loading:"Loading",Workplace:"Workplace",Metrics:"Metrics","Choose workplace":"Choose workplace","Select and arrange the order":"Select and arrange the order",Cancel:"Cancel",Save:"Save",Settings:"Settings"}},pl:{translation:{Loading:"Wczytywanie",Workplace:"Stanowisko",Metrics:"Metryki","Choose workplace":"Wybierz stanowisko","Select and arrange the order":"Wybierz i ustal kolejność",Cancel:"Anuluj",Save:"Zapisz",Settings:"Ustawienia"}}},v="1.2.4",y=function(n){var o,s,c=n.data,u=n.formProps,l=e.useState("1"),f=l[0],h=l[1],p=r.useTranslation().t;return d.default.createElement(i.TabContext,{value:f},d.default.createElement(a.Box,{sx:{borderBottom:1,borderColor:"divider"}},d.default.createElement(i.TabList,{onChange:function(e,t){h(t)}},d.default.createElement(a.Tab,{label:p("Workplace"),value:"1"}),d.default.createElement(a.Tab,{label:p("Metrics"),value:"2"}))),d.default.createElement(i.TabPanel,{value:"1"},d.default.createElement(a.FormControl,{fullWidth:!0},d.default.createElement(a.InputLabel,{id:"workplace-select-label"},p("Workplace")),d.default.createElement(a.Select,{name:"workplaceId",labelId:"workplace-select-label",value:u.values.workplaceId||"",onChange:u.handleChange,fullWidth:!0},null==(o=c.workplaces)?void 0:o.map(function(e){return d.default.createElement(a.MenuItem,{key:e.id,value:e.id},e.name)})))),d.default.createElement(i.TabPanel,{value:"2"},d.default.createElement(t.SortableSelect,{placeholder:p("Select and arrange the order")+"...",options:null==(s=c.metrics)?void 0:s.map(function(e){return{label:e.name,value:e.id}}),selected:u.values.metricIds,onChange:function(e){return u.setFieldValue("metricIds",[].concat(e))}})))},_=z(),x=e=>E(e,_),w=z();x.write=e=>E(e,w);var k=z();x.onStart=e=>E(e,k);var A=z();x.onFrame=e=>E(e,A);var M=z();x.onFinish=e=>E(e,M);var O=[];x.setTimeout=(e,t)=>{const n=x.now()+t,r=()=>{const e=O.findIndex(e=>e.cancel==r);~e&&O.splice(e,1),j-=~e?1:0},i={time:n,handler:e,cancel:r};return O.splice(C(n),0,i),j+=1,L(),i};var C=e=>~(~O.findIndex(t=>t.time>e)||~O.length);x.cancel=e=>{k.delete(e),A.delete(e),M.delete(e),_.delete(e),w.delete(e)},x.sync=e=>{R=!0,x.batchedUpdates(e),R=!1},x.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,x.onStart(n)}return r.handler=e,r.cancel=()=>{k.delete(n),t=null},r};var S="undefined"!=typeof window?window.requestAnimationFrame:()=>{};x.use=e=>S=e,x.now="undefined"!=typeof performance?()=>performance.now():Date.now,x.batchedUpdates=e=>e(),x.catch=console.error,x.frameLoop="always",x.advance=()=>{"demand"!==x.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):F()};var T=-1,j=0,R=!1;function E(e,t){R?(t.delete(e),e(0)):(t.add(e),L())}function L(){T<0&&(T=0,"demand"!==x.frameLoop&&S($))}function $(){~T&&(S($),x.batchedUpdates(F))}function F(){const e=T;T=x.now();const t=C(T);t&&(I(O.splice(0,t),e=>e.handler()),j-=t),j?(k.flush(),_.flush(e?Math.min(64,T-e):16.667),A.flush(),w.flush(),M.flush()):T=-1}function z(){let e=/* @__PURE__ */new Set,t=e;return{add(n){j+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(j-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=/* @__PURE__ */new Set,j-=t.size,I(t,t=>t(n)&&e.add(t)),j+=e.size,t=e)}}}function I(e,t){e.forEach(e=>{try{t(e)}catch(e){x.catch(e)}})}var P=Object.defineProperty,D={};function N(){}((e,t)=>{for(var n in t)P(e,n,{get:t[n],enumerable:!0})})(D,{assign:()=>ee,colors:()=>G,createStringInterpolator:()=>Y,skipAnimation:()=>J,to:()=>Z,willAdvance:()=>K});var W={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function V(e,t){if(W.arr(e)){if(!W.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var U=(e,t)=>e.forEach(t);function q(e,t,n){if(W.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var H=e=>W.und(e)?[]:W.arr(e)?e:[e];function B(e,t){if(e.size){const n=Array.from(e);e.clear(),U(n,t)}}var Y,Z,X=(e,...t)=>B(e,e=>e(...t)),Q=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),G=null,J=!1,K=N,ee=e=>{e.to&&(Z=e.to),e.now&&(x.now=e.now),void 0!==e.colors&&(G=e.colors),null!=e.skipAnimation&&(J=e.skipAnimation),e.createStringInterpolator&&(Y=e.createStringInterpolator),e.requestAnimationFrame&&x.use(e.requestAnimationFrame),e.batchedUpdates&&(x.batchedUpdates=e.batchedUpdates),e.willAdvance&&(K=e.willAdvance),e.frameLoop&&(x.frameLoop=e.frameLoop)},te=/* @__PURE__ */new Set,ne=[],re=[],ie=0,ae={get idle(){return!te.size&&!ne.length},start(e){ie>e.priority?(te.add(e),x.onStart(oe)):(se(e),x(ue))},advance:ue,sort(e){if(ie)x.onFrame(()=>ae.sort(e));else{const t=ne.indexOf(e);~t&&(ne.splice(t,1),ce(e))}},clear(){ne=[],te.clear()}};function oe(){te.forEach(se),te.clear(),x(ue)}function se(e){ne.includes(e)||ce(e)}function ce(e){ne.splice(function(t){const n=t.findIndex(t=>t.priority>e.priority);return n<0?t.length:n}(ne),0,e)}function ue(e){const t=re;for(let n=0;n<ne.length;n++){const r=ne[n];ie=r.priority,r.idle||(K(r),r.advance(e),r.idle||t.push(r))}return ie=0,(re=ne).length=0,(ne=t).length>0}var le="[-+]?\\d*\\.?\\d+",fe=le+"%";function de(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var he=new RegExp("rgb"+de(le,le,le)),pe=new RegExp("rgba"+de(le,le,le,le)),be=new RegExp("hsl"+de(le,fe,fe)),ge=new RegExp("hsla"+de(le,fe,fe,le)),me=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ve=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ye=/^#([0-9a-fA-F]{6})$/,_e=/^#([0-9a-fA-F]{8})$/;function xe(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function we(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=xe(i,r,e+1/3),o=xe(i,r,e),s=xe(i,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*o)<<16|Math.round(255*s)<<8}function ke(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Ae(e){return(parseFloat(e)%360+360)%360/360}function Me(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Oe(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Ce(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ye.exec(e))?parseInt(t[1]+"ff",16)>>>0:G&&void 0!==G[e]?G[e]:(t=he.exec(e))?(ke(t[1])<<24|ke(t[2])<<16|ke(t[3])<<8|255)>>>0:(t=pe.exec(e))?(ke(t[1])<<24|ke(t[2])<<16|ke(t[3])<<8|Me(t[4]))>>>0:(t=me.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=_e.exec(e))?parseInt(t[1],16)>>>0:(t=ve.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=be.exec(e))?(255|we(Ae(t[1]),Oe(t[2]),Oe(t[3])))>>>0:(t=ge.exec(e))?(we(Ae(t[1]),Oe(t[2]),Oe(t[3]))|Me(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}var Se=(e,t,n)=>{if(W.fun(e))return e;if(W.arr(e))return Se({range:e,output:t,extrapolate:n});if(W.str(e.output[0]))return Y(e);const r=e,i=r.output,a=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",c=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,a);return function(e,t,n,r,i,a,o,s,c){let u=c?c(e):e;if(u<t){if("identity"===o)return u;"clamp"===o&&(u=t)}if(u>n){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(-Infinity===t?u=-u:Infinity===n?u-=t:u=(u-t)/(n-t),u=a(u),-Infinity===r?u=-u:Infinity===i?u+=r:u=u*(i-r)+r,u)}(e,a[t],a[t+1],i[t],i[t+1],c,o,s,r.map)}},Te=1.70158,je=1.525*Te,Re=Te+1,Ee=2*Math.PI/3,Le=2*Math.PI/4.5,$e=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},Fe={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Re*e*e*e-Te*e*e,easeOutBack:e=>1+Re*Math.pow(e-1,3)+Te*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-je)/2:(Math.pow(2*e-2,2)*((je+1)*(2*e-2)+je)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Ee),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Ee)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Le)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Le)/2+1,easeInBounce:e=>1-$e(1-e),easeOutBounce:$e,easeInOutBounce:e=>e<.5?(1-$e(1-2*e))/2:(1+$e(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return i=("end"===t?Math.floor(r):Math.ceil(r))/e,Math.min(Math.max(i,0),1);var i}},ze=Symbol.for("FluidValue.get"),Ie=Symbol.for("FluidValue.observers"),Pe=e=>Boolean(e&&e[ze]),De=e=>e&&e[ze]?e[ze]():e,Ne=e=>e[Ie]||null;function We(e,t){const n=e[Ie];n&&n.forEach(e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)})}var Ve=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ue(this,e)}},Ue=(e,t)=>Ye(e,ze,t);function qe(e,t){if(e[ze]){let n=e[Ie];n||Ye(e,Ie,n=/* @__PURE__ */new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function He(e,t){const n=e[Ie];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ie]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Be,Ye=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ze=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Xe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Qe=new RegExp(`(${Ze.source})(%|[a-z]+)`,"i"),Ge=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Je=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ke=e=>{const[t,n]=et(e);if(!t||Q())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r?r.trim():n&&n.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(n)||e:n&&Je.test(n)?Ke(n):n||e},et=e=>{const t=Je.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},tt=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,nt=e=>{Be||(Be=G?new RegExp(`(${Object.keys(G).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(e=>De(e).replace(Je,Ke).replace(Xe,Ce).replace(Be,Ce)),n=t.map(e=>e.match(Ze).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})),i=r.map(t=>Se({...e,output:t}));return e=>{const n=!Qe.test(t[0])&&t.find(e=>Qe.test(e))?.replace(Ze,"");let r=0;return t[0].replace(Ze,()=>`${i[r++](e)}${n||""}`).replace(Ge,tt)}},rt="react-spring: ",it=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${rt}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},at=it(console.warn),ot=it(console.warn);function st(e){return W.str(e)&&("#"==e[0]||/\d/.test(e)||!Q()&&Je.test(e)||e in(G||{}))}var ct=Q()?e.useEffect:e.useLayoutEffect;function ut(){const t=e.useState()[1],n=(()=>{const t=e.useRef(!1);return ct(()=>(t.current=!0,()=>{t.current=!1}),[]),t})();return()=>{n.current&&t(Math.random())}}var lt=t=>e.useEffect(t,ft),ft=[];function dt(t){const n=e.useRef(void 0);return e.useEffect(()=>{n.current=t}),n.current}var ht=Symbol.for("Animated:node"),pt=e=>e&&e[ht],bt=(e,t)=>Object.defineProperty(e,ht,{value:t,writable:!0,configurable:!0}),gt=e=>e&&e[ht]&&e[ht].getPayload(),mt=class{constructor(){bt(this,this)}getPayload(){return this.payload||[]}},vt=class e extends mt{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,W.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new e(t)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return W.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,W.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},yt=class e extends vt{constructor(e){super(0),this._string=null,this._toString=Se({output:[e,e]})}static create(t){return new e(t)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(W.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Se({output:[this.getValue(),e]})),this._value=0,super.reset()}},_t={dependencies:null},xt=class extends mt{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return q(this.source,(n,r)=>{var i;(i=n)&&i[ht]===i?t[r]=n.getValue(e):Pe(n)?t[r]=De(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&U(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=/* @__PURE__ */new Set;return q(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){_t.dependencies&&Pe(e)&&_t.dependencies.add(e);const t=gt(e);t&&U(t,e=>this.add(e))}},wt=class e extends xt{constructor(e){super(e)}static create(t){return new e(t)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(kt)),!0)}};function kt(e){return(st(e)?yt:vt).create(e)}function At(e){const t=pt(e);return t?t.constructor:W.arr(e)?wt:st(e)?yt:vt}var Mt=(t,n)=>{const r=!W.fun(t)||t.prototype&&t.prototype.isReactComponent;return e.forwardRef((i,a)=>{const o=e.useRef(null),s=r&&e.useCallback(e=>{o.current=function(e,t){return e&&(W.fun(e)?e(t):e.current=t),t}(a,e)},[a]),[c,u]=function(e,t){const n=/* @__PURE__ */new Set;return _t.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new xt(e),_t.dependencies=null,[e,n]}(i,n),l=ut(),f=()=>{const e=o.current;r&&!e||!1===(!!e&&n.applyAnimatedValues(e,c.getValue(!0)))&&l()},d=new Ot(f,u),p=e.useRef(void 0);ct(()=>(p.current=d,U(u,e=>qe(e,d)),()=>{p.current&&(U(p.current.deps,e=>He(e,p.current)),x.cancel(p.current.update))})),e.useEffect(f,[]),lt(()=>()=>{const e=p.current;U(e.deps,t=>He(t,e))});const b=n.getComponentProps(c.getValue());/* @__PURE__ */
2
+ return h.createElement(t,{...b,ref:s})})},Ot=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&x.write(this.update)}},Ct=Symbol.for("AnimatedComponent"),St=e=>W.str(e)?e:e&&W.str(e.displayName)?e.displayName:W.fun(e)&&e.name||null;function Tt(e,...t){return W.fun(e)?e(...t):e}var jt=(e,t)=>!0===e||!!(t&&e&&(W.fun(e)?e(t):H(e).includes(t))),Rt=(e,t)=>W.obj(e)?t&&e[t]:e,Et=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Lt=e=>e,$t=(e,t=Lt)=>{let n=Ft;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const n=t(e[i],i);W.und(n)||(r[i]=n)}return r},Ft=["config","onProps","onStart","onChange","onPause","onResume","onRest"],zt={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function It(e){const t=function(e){const t={};let n=0;if(q(e,(e,r)=>{zt[r]||(t[r]=e,n++)}),n)return t}(e);if(t){const n={to:t};return q(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function Pt(e){return e=De(e),W.arr(e)?e.map(Pt):st(e)?D.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Dt(e){for(const t in e)return!0;return!1}function Nt(e){return W.fun(e)||W.arr(e)&&W.obj(e[0])}function Wt(e,t){e.ref?.delete(e),t?.delete(e)}function Vt(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Ut={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},qt={...Ut.default,mass:1,damping:1,easing:Fe.linear,clamp:!1},Ht=class{constructor(){this.velocity=0,Object.assign(this,qt)}};function Bt(e,t){if(W.und(t.decay)){const n=!W.und(t.tension)||!W.und(t.friction);!n&&W.und(t.frequency)&&W.und(t.damping)&&W.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Yt=[],Zt=class{constructor(){this.changed=!1,this.values=Yt,this.toValues=null,this.fromValues=Yt,this.config=new Ht,this.immediate=!1}};function Xt(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let c,u,l=jt(n.cancel??r?.cancel,t);if(l)h();else{W.und(n.pause)||(i.paused=jt(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||jt(e,t)),c=Tt(n.delay||0,t),e?(i.resumeQueue.add(d),a.pause()):(a.resume(),d())}function f(){i.resumeQueue.add(d),i.timeouts.delete(u),u.cancel(),c=u.time-x.now()}function d(){c>0&&!D.skipAnimation?(i.delayed=!0,u=x.setTimeout(h,c),i.pauseQueue.add(f),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(f),i.timeouts.delete(u),e<=(i.cancelId||0)&&(l=!0);try{a.start({...n,callId:e,cancel:l},o)}catch(e){s(e)}}})}var Qt=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?Kt(e.get()):t.every(e=>e.noop)?Gt(e.get()):Jt(e.get(),t.every(e=>e.finished)),Gt=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Jt=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Kt=e=>({value:e,cancelled:!0,finished:!1});function en(e,t,n,r){const{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:c}=n;return a||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const u=$t(t,(e,t)=>"onRest"===t?void 0:e);let l,f;const d=new Promise((e,t)=>(l=e,f=t)),h=e=>{const t=i<=(n.cancelId||0)&&Kt(r)||i!==n.asyncId&&Jt(r,!1);if(t)throw e.result=t,f(e),e},p=(e,t)=>{const a=new nn,o=new rn;return(async()=>{if(D.skipAnimation)throw tn(n),o.result=Jt(r,!1),f(o),o;h(a);const s=W.obj(e)?{...e}:{...t,to:e};s.parentId=i,q(u,(e,t)=>{W.und(s[t])&&(s[t]=e)});const c=await r.start(s);return h(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),c})()};let b;if(D.skipAnimation)return tn(n),Jt(r,!1);try{let t;t=W.arr(e)?(async e=>{for(const t of e)await p(t)})(e):Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([t.then(l),d]),b=Jt(r.get(),!0,!1)}catch(e){if(e instanceof nn)b=e.result;else{if(!(e instanceof rn))throw e;b=e.result}}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?c:void 0)}return W.fun(o)&&x.batchedUpdates(()=>{o(b,r,r.item)}),b})():c}function tn(e,t){B(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var nn=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},rn=class extends Error{constructor(){super("SkipAnimationSignal")}},an=e=>e instanceof sn,on=1,sn=class extends Ve{constructor(){super(...arguments),this.id=on++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=pt(this);return e&&e.getValue()}to(...e){return D.to(this,e)}interpolate(...e){return at(`${rt}The "interpolate" function is deprecated in v9 (use "to" instead)`),D.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){We(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ae.sort(this),We(this,{type:"priority",parent:this,priority:e})}},cn=Symbol.for("SpringPhase"),un=e=>(1&e[cn])>0,ln=e=>(2&e[cn])>0,fn=e=>(4&e[cn])>0,dn=(e,t)=>t?e[cn]|=3:e[cn]&=-3,hn=(e,t)=>t?e[cn]|=4:e[cn]&=-5,pn=class extends sn{constructor(e,t){if(super(),this.animation=new Zt,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:/* @__PURE__ */new Set,resumeQueue:/* @__PURE__ */new Set,timeouts:/* @__PURE__ */new Set},this._pendingCalls=/* @__PURE__ */new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!W.und(e)||!W.und(t)){const n=W.obj(e)?{...e}:{...t,from:e};W.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(ln(this)||this._state.asyncTo)||fn(this)}get goal(){return De(this.animation.to)}get velocity(){const e=pt(this);return e instanceof vt?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return un(this)}get isAnimating(){return ln(this)}get isPaused(){return fn(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:a}=r,o=gt(r.to);!o&&Pe(r.to)&&(i=H(De(r.to))),r.values.forEach((s,c)=>{if(s.done)return;const u=s.constructor==yt?1:o?o[c].lastPosition:i[c];let l=r.immediate,f=u;if(!l){if(f=s.lastPosition,a.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[c],i=null!=s.v0?s.v0:s.v0=W.arr(a.velocity)?a.velocity[c]:a.velocity;let o;const d=a.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(W.und(a.duration))if(a.decay){const e=!0===a.decay?.998:a.decay,r=Math.exp(-(1-e)*t);f=n+i/(1-e)*(1-r),l=Math.abs(s.lastPosition-f)<=d,o=i*r}else{o=null==s.lastVelocity?i:s.lastVelocity;const t=a.restVelocity||d/10,r=a.clamp?0:a.bounce,c=!W.und(r),h=n==u?s.v0>0:n<u;let p,b=!1;const g=1,m=Math.ceil(e/g);for(let e=0;e<m&&(p=Math.abs(o)>t,p||(l=Math.abs(u-f)<=d,!l));++e)c&&(b=f==u||f>u==h,b&&(o=-o*r,f=u)),o+=(1e-6*-a.tension*(f-u)+.001*-a.friction*o)/a.mass*g,f+=o*g}else{let r=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,s.durationProgress>0&&(s.elapsedTime=a.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(a.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),f=n+a.easing(r)*(u-n),o=(f-s.lastPosition)/e,l=1==r}s.lastVelocity=o,Number.isNaN(f)&&(console.warn("Got NaN while animating:",this),l=!0)}o&&!o[c].done&&(l=!1),l?s.done=!0:t=!1,s.setValue(f,a.round)&&(n=!0)});const s=pt(this),c=s.getValue();if(t){const e=De(r.to);c===e&&!n||a.decay?n&&a.decay&&this._onChange(c):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(c)}set(e){return x.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ln(this)){const{to:e,config:t}=this.animation;x.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return W.und(e)?(n=this.queue||[],this.queue=[]):n=[W.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>Qt(this,e))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),tn(this._state,e&&this._lastCallId),x.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=W.obj(n)?n[t]:n,(null==n||Nt(n))&&(n=void 0),r=W.obj(r)?r[t]:r,null==r&&(r=void 0);const i={to:n,from:r};return un(this)||(e.reverse&&([n,r]=[r,n]),r=De(r),W.und(r)?pt(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,$t(e,(e,t)=>/^on/.test(t)?Rt(e,n):e)),xn(this,e,"onProps"),wn(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return Xt(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{fn(this)||(hn(this,!0),X(a.pauseQueue),wn(this,"onPause",Jt(this,bn(this,this.animation.to)),this))},resume:()=>{fn(this)&&(hn(this,!1),ln(this)&&this._resume(),X(a.resumeQueue),wn(this,"onResume",Jt(this,bn(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=gn(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Kt(this));const r=!W.und(e.to),i=!W.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(Kt(this));this._lastToId=t.callId}const{key:a,defaultProps:o,animation:s}=this,{to:c,from:u}=s;let{to:l=c,from:f=u}=e;!i||r||t.default&&!W.und(l)||(l=f),t.reverse&&([l,f]=[f,l]);const d=!V(f,u);d&&(s.from=f),f=De(f);const h=!V(l,c);h&&this._focus(l);const p=Nt(t.to),{config:b}=s,{decay:g,velocity:m}=b;(r||i)&&(b.velocity=0),t.config&&!p&&function(e,t,n){n&&(Bt(n={...n},t),t={...n,...t}),Bt(e,t),Object.assign(e,t);for(const t in qt)null==e[t]&&(e[t]=qt[t]);let{frequency:r,damping:i}=e;const{mass:a}=e;W.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*i*a/r)}(b,Tt(t.config,a),t.config!==o.config?Tt(o.config,a):void 0);let v=pt(this);if(!v||W.und(l))return n(Jt(this,!0));const y=W.und(t.reset)?i&&!t.default:!W.und(f)&&jt(t.reset,a),_=y?f:this.get(),w=Pt(l),k=W.num(w)||W.arr(w)||st(w),A=!p&&(!k||jt(o.immediate||t.immediate,a));if(h){const e=At(l);if(e!==v.constructor){if(!A)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(w)}}const M=v.constructor;let O=Pe(l),C=!1;if(!O){const e=y||!un(this)&&d;(h||e)&&(C=V(Pt(_),w),O=!C),(V(s.immediate,A)||A)&&V(b.decay,g)&&V(b.velocity,m)||(O=!0)}if(C&&ln(this)&&(s.changed&&!y?O=!0:O||this._stop(c)),!p&&((O||Pe(c))&&(s.values=v.getPayload(),s.toValues=Pe(l)?null:M==yt?[1]:H(w)),s.immediate!=A&&(s.immediate=A,A||y||this._set(c)),O)){const{onRest:e}=s;U(_n,e=>xn(this,t,e));const r=Jt(this,bn(this,c));X(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&x.batchedUpdates(()=>{s.changed=!y,e?.(r,this),y?Tt(o.onRest,r):s.onStart?.(r,this)})}y&&this._set(_),p?n(en(t.to,t,this._state,this)):O?this._start():ln(this)&&!h?this._pendingCalls.add(n):n(Gt(_))}_focus(e){const t=this.animation;e!==t.to&&(Ne(this)&&this._detach(),t.to=e,Ne(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Pe(t)&&(qe(t,this),an(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Pe(e)&&He(e,this)}_set(e,t=!0){const n=De(e);if(!W.und(n)){const e=pt(this);if(!e||!V(n,e.getValue())){const r=At(n);e&&e.constructor==r?e.setValue(n):bt(this,r.create(n)),e&&x.batchedUpdates(()=>{this._onChange(n,t)})}}return pt(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,wn(this,"onStart",Jt(this,bn(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Tt(this.animation.onChange,e,this)),Tt(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;pt(this).reset(De(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),ln(this)||(dn(this,!0),fn(this)||this._resume())}_resume(){D.skipAnimation?this.finish():ae.start(this)}_stop(e,t){if(ln(this)){dn(this,!1);const n=this.animation;U(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),We(this,{type:"idle",parent:this});const r=t?Kt(this.get()):Jt(this.get(),bn(this,e??n.to));X(this._pendingCalls,r),n.changed&&(n.changed=!1,wn(this,"onRest",r,this))}}};function bn(e,t){const n=Pt(t);return V(Pt(e.get()),n)}function gn(e,t=e.loop,n=e.to){const r=Tt(t);if(r){const i=!0!==r&&It(r),a=(i||e).reverse,o=!i||i.reset;return mn({...e,loop:t,default:!1,pause:void 0,to:!a||Nt(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function mn(e){const{to:t,from:n}=e=It(e),r=/* @__PURE__ */new Set;return W.obj(t)&&yn(t,r),W.obj(n)&&yn(n,r),e.keys=r.size?Array.from(r):null,e}function vn(e){const t=mn(e);return W.und(t.default)&&(t.default=$t(t)),t}function yn(e,t){q(e,(e,n)=>null!=e&&t.add(n))}var _n=["onStart","onRest","onChange","onPause","onResume"];function xn(e,t,n){e.animation[n]=t[n]!==Et(t,n)?Rt(t[n],e.key):void 0}function wn(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var kn=["onStart","onChange","onRest"],An=1,Mn=class{constructor(e,t){this.id=An++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=/* @__PURE__ */new Set,this._changed=/* @__PURE__ */new Set,this._started=!1,this._state={paused:!1,pauseQueue:/* @__PURE__ */new Set,resumeQueue:/* @__PURE__ */new Set,timeouts:/* @__PURE__ */new Set},this._events={onStart:/* @__PURE__ */new Map,onChange:/* @__PURE__ */new Map,onRest:/* @__PURE__ */new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];W.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(mn(e)),this}start(e){let{queue:t}=this;return e?t=H(e).map(mn):this.queue=[],this._flush?this._flush(this,t):(En(this,t),On(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;U(H(t),t=>n[t].stop(!!e))}else tn(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(W.und(e))this.start({pause:!0});else{const t=this.springs;U(H(e),e=>t[e].pause())}return this}resume(e){if(W.und(e))this.start({pause:!1});else{const t=this.springs;U(H(e),e=>t[e].resume())}return this}each(e){q(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,B(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));const a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&B(t,([e,t])=>{t.value=o,e(t,this,this._item)}),a&&(this._started=!1,B(n,([e,t])=>{t.value=o,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}x.onFrame(this._onFrame)}};function On(e,t){return Promise.all(t.map(t=>Cn(e,t))).then(t=>Qt(e,t))}async function Cn(e,t,n){const{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:c}=t,u=W.obj(t.default)&&t.default;o&&(t.loop=!1),!1===i&&(t.to=null),!1===a&&(t.from=null);const l=W.arr(i)||W.fun(i)?i:void 0;l?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):U(kn,n=>{const r=t[n];if(W.fun(r)){const i=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});const f=e._state;t.pause===!f.paused?(f.paused=t.pause,X(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);const d=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===Et(t,"cancel");(l||h&&f.asyncId)&&d.push(Xt(++e._lastAsyncId,{props:t,state:f,actions:{pause:N,resume:N,start(t,n){h?(tn(f,e._lastAsyncId),n(Kt(e))):(t.onRest=s,n(en(l,t,f,e)))}}})),f.paused&&await new Promise(e=>{f.resumeQueue.add(e)});const p=Qt(e,await Promise.all(d));if(o&&p.finished&&(!n||!p.noop)){const n=gn(t,o,i);if(n)return En(e,[n]),Cn(e,n,!0)}return c&&x.batchedUpdates(()=>c(p,e,e.item)),p}function Sn(e,t){const n={...e.springs};return t&&U(H(t),e=>{W.und(e.keys)&&(e=mn(e)),W.obj(e.to)||(e={...e,to:void 0}),Rn(n,e,e=>jn(e))}),Tn(e,n),n}function Tn(e,t){q(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,qe(t,e))})}function jn(e,t){const n=new pn;return n.key=e,t&&qe(n,t),n}function Rn(e,t,n){t.keys&&U(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function En(e,t){U(t,t=>{Rn(e.springs,t,t=>jn(t,e))})}var Ln=h.createContext({pause:!1,immediate:!1}),$n=()=>{const e=[],t=function(t){ot(`${rt}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return U(e,(e,i)=>{if(W.und(t))r.push(e.start());else{const a=n(t,e,i);a&&r.push(e.start(a))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return U(e,e=>e.pause(...arguments)),this},t.resume=function(){return U(e,e=>e.resume(...arguments)),this},t.set=function(t){U(e,(e,n)=>{const r=W.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){const n=[];return U(e,(e,r)=>{if(W.und(t))n.push(e.start());else{const i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return U(e,e=>e.stop(...arguments)),this},t.update=function(t){return U(e,(e,n)=>e.update(this._getProps(t,e,n))),this};const n=function(e,t,n){return W.fun(e)?e(n,t):e};return t._getProps=n,t};function Fn(t,n){const r=W.fun(t),[[i],a]=function(t,n,r){const i=W.fun(n)&&n;i&&!r&&(r=[]);const a=e.useMemo(()=>i||3==arguments.length?$n():void 0,[]),o=e.useRef(0),s=ut(),c=e.useMemo(()=>({ctrls:[],queue:[],flush(e,t){const n=Sn(e,t);return o.current>0&&!c.queue.length&&!Object.keys(n).some(t=>!e.springs[t])?On(e,t):new Promise(r=>{Tn(e,n),c.queue.push(()=>{r(On(e,t))}),s()})}}),[]),u=e.useRef([...c.ctrls]),l=e.useRef([]),f=dt(t)||0;function d(e,t){for(let r=e;r<t;r++){const e=u.current[r]||(u.current[r]=new Mn(null,c.flush)),t=i?i(r,e):n[r];t&&(l.current[r]=vn(t))}}e.useMemo(()=>{U(u.current.slice(t,f),e=>{Wt(e,a),e.stop(!0)}),u.current.length=t,d(f,t)},[t]),e.useMemo(()=>{d(0,Math.min(f,t))},r);const h=u.current.map((e,t)=>Sn(e,l.current[t])),p=e.useContext(Ln),b=dt(p),g=p!==b&&Dt(p);ct(()=>{o.current++,c.ctrls=u.current;const{queue:e}=c;e.length&&(c.queue=[],U(e,e=>e())),U(u.current,(e,t)=>{a?.add(e),g&&e.start({default:p});const n=l.current[t];n&&(Vt(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),lt(()=>()=>{U(c.ctrls,e=>e.stop(!0))});const m=h.map(e=>({...e}));return a?[m,a]:m}(1,r?t:[t],r?n||[]:n);return r||2==arguments.length?[i,a]:i}function zn(t,n,r){const i=W.fun(n)&&n,{reset:a,sort:o,trail:s=0,expires:c=!0,exitBeforeEnter:u=!1,onDestroyed:l,ref:f,config:d}=i?i():n,p=e.useMemo(()=>i||3==arguments.length?$n():void 0,[]),b=H(t),g=[],m=e.useRef(null),v=a?null:m.current;ct(()=>{m.current=g}),lt(()=>(U(g,e=>{p?.add(e.ctrl),e.ctrl.ref=p}),()=>{U(m.current,e=>{e.expired&&clearTimeout(e.expirationId),Wt(e.ctrl,p),e.ctrl.stop(!0)})}));const y=function(e,{key:t,keys:n=t},r){if(null===n){const t=/* @__PURE__ */new Set;return e.map(e=>{const n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):In++})}return W.und(n)?e:W.fun(n)?e.map(n):H(n)}(b,i?i():n,v),_=a&&m.current||[];ct(()=>U(_,({ctrl:e,item:t,key:n})=>{Wt(e,p),Tt(l,t,n)}));const x=[];if(v&&U(v,(e,t)=>{e.expired?(clearTimeout(e.expirationId),_.push(e)):~(t=x[t]=y.indexOf(e.key))&&(g[t]=e)}),U(b,(e,t)=>{g[t]||(g[t]={key:y[t],item:e,phase:"mount",ctrl:new Mn},g[t].ctrl.item=e)}),x.length){let e=-1;const{leave:t}=i?i():n;U(x,(n,r)=>{const i=v[r];~n?(e=g.indexOf(i),g[e]={...i,item:b[n]}):t&&g.splice(++e,0,i)})}W.fun(o)&&g.sort((e,t)=>o(e.item,t.item));let w=-s;const k=ut(),A=$t(n),M=/* @__PURE__ */new Map,O=e.useRef(/* @__PURE__ */new Map),C=e.useRef(!1);U(g,(e,t)=>{const r=e.key,a=e.phase,o=i?i():n;let l,h;const p=Tt(o.delay||0,r);if("mount"==a)l=o.enter,h="enter";else{const e=y.indexOf(r)<0;if("leave"!=a)if(e)l=o.leave,h="leave";else{if(!(l=o.update))return;h="update"}else{if(e)return;l=o.enter,h="enter"}}l=Tt(l,e.item,t),l=W.obj(l)?It(l):{to:l},l.config||(l.config=Tt(d||A.config,e.item,t,h)),w+=s;const b={...A,delay:p+w,ref:f,immediate:o.immediate,reset:!1,...l};if("enter"==h&&W.und(b.from)){const r=i?i():n,a=W.und(r.initial)||v?r.from:r.initial;b.from=Tt(a,e.item,t)}const{onResolve:g}=b;b.onResolve=e=>{Tt(g,e);const t=m.current,n=t.find(e=>e.key===r);if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){const e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){const t=Tt(c,n.item);if(!1!==t){const r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(k,r)))}}e&&t.some(e=>e.expired)&&(O.current.delete(n),u&&(C.current=!0),k())}};const _=Sn(e.ctrl,b);"leave"===h&&u?O.current.set(e,{phase:h,springs:_,payload:b}):M.set(e,{phase:h,springs:_,payload:b})});const S=e.useContext(Ln),T=dt(S),j=S!==T&&Dt(S);ct(()=>{j&&U(g,e=>{e.ctrl.start({default:S})})},[S]),U(M,(e,t)=>{if(O.current.size){const e=g.findIndex(e=>e.key===t.key);g.splice(e,1)}}),ct(()=>{U(O.current.size?O.current:M,({phase:e,payload:t},n)=>{const{ctrl:r}=n;n.phase=e,p?.add(r),j&&"enter"==e&&r.start({default:S}),t&&(Vt(r,t.ref),!r.ref&&!p||C.current?(r.start(t),C.current&&(C.current=!1)):r.update(t))})},a?void 0:r);const R=e=>/* @__PURE__ */h.createElement(h.Fragment,null,g.map((t,n)=>{const{springs:r}=M.get(t)||t.ctrl,i=e({...r},t.item,t,n),a=W.str(t.key)||W.num(t.key)?t.key:t.ctrl.id,o=h.version<"19.0.0",s=i?.props??{},c=o?i?.ref:s?.ref;return i&&i.type?/* @__PURE__ */h.createElement(i.type,{...s,key:a,ref:c}):i}));return p?[R,p]:R}var In=1,Pn=class extends sn{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=/* @__PURE__ */new Set,this.calc=Se(...t);const n=this._get(),r=At(n);bt(this,r.create(n))}advance(e){const t=this._get();V(t,this.get())||(pt(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Nn(this._active)&&Wn(this)}_get(){const e=W.arr(this.source)?this.source.map(De):H(De(this.source));return this.calc(...e)}_start(){this.idle&&!Nn(this._active)&&(this.idle=!1,U(gt(this),e=>{e.done=!1}),D.skipAnimation?(x.batchedUpdates(()=>this.advance()),Wn(this)):ae.start(this))}_attach(){let e=1;U(H(this.source),t=>{Pe(t)&&qe(t,this),an(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){U(H(this.source),e=>{Pe(e)&&He(e,this)}),this._active.clear(),Wn(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=H(this.source).reduce((e,t)=>Math.max(e,(an(t)?t.priority:0)+1),0))}};function Dn(e){return!1!==e.idle}function Nn(e){return!e.size||Array.from(e).every(Dn)}function Wn(e){e.idle||(e.idle=!0,U(gt(e),e=>{e.done=!0}),We(e,{type:"idle",parent:e}))}var Vn=(e,...t)=>new Pn(e,t);D.assign({createStringInterpolator:nt,to:(e,t)=>new Pn(e,t)});var Un=/^--/;function qn(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Un.test(e)||Bn.hasOwnProperty(e)&&Bn[e]?(""+t).trim():t+"px"}var Hn={},Bn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Yn=["Webkit","Ms","Moz","O"];Bn=Object.keys(Bn).reduce((e,t)=>(Yn.forEach(n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t]),e),Bn);var Zn=/^(matrix|translate|scale|rotate|skew)/,Xn=/^(translate)/,Qn=/^(rotate|skew)/,Gn=(e,t)=>W.num(e)&&0!==e?e+t:e,Jn=(e,t)=>W.arr(e)?e.every(e=>Jn(e,t)):W.num(e)?e===t:parseFloat(e)===t,Kn=class extends xt{constructor({x:e,y:t,z:n,...r}){const i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(e=>[`translate3d(${e.map(e=>Gn(e,"px")).join(",")})`,Jn(e,0)])),q(r,(e,t)=>{if("transform"===t)i.push([e||""]),a.push(e=>[e,""===e]);else if(Zn.test(t)){if(delete r[t],W.und(e))return;const n=Xn.test(t)?"px":Qn.test(t)?"deg":"";i.push(H(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${Gn(i,n)})`,Jn(i,0)]:e=>[`${t}(${e.map(e=>Gn(e,n)).join(",")})`,Jn(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new er(i,a)),super(r)}},er=class extends Ve{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return U(this.inputs,(n,r)=>{const i=De(n[0]),[a,o]=this.transforms[r](W.arr(i)?i:n.map(De));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){1==e&&U(this.inputs,e=>U(e,e=>Pe(e)&&qe(e,this)))}observerRemoved(e){0==e&&U(this.inputs,e=>U(e,e=>Pe(e)&&He(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),We(this,e)}};D.assign({batchedUpdates:o.unstable_batchedUpdates,createStringInterpolator:nt,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var tr=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new xt(e),getComponentProps:r=e=>e}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{const t=St(e)||"Anonymous";return(e=W.str(e)?a[e]||(a[e]=Mt(e,i)):e[Ct]||(e[Ct]=Mt(e,i))).displayName=`Animated(${t})`,e};return q(e,(t,n)=>{W.arr(e)&&(n=St(t)),a[n]=a(t)}),{animated:a}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:r,style:i,children:a,scrollTop:o,scrollLeft:s,viewBox:c,...u}=t,l=Object.values(u),f=Object.keys(u).map(t=>n||e.hasAttribute(t)?t:Hn[t]||(Hn[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));void 0!==a&&(e.textContent=a);for(const t in i)if(i.hasOwnProperty(t)){const n=qn(t,i[t]);Un.test(t)?e.style.setProperty(t,n):e.style[t]=n}f.forEach((t,n)=>{e.setAttribute(t,l[n])}),void 0!==r&&(e.className=r),void 0!==o&&(e.scrollTop=o),void 0!==s&&(e.scrollLeft=s),void 0!==c&&e.setAttribute("viewBox",c)},createAnimatedStyle:e=>new Kn(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),nr=tr.animated,rr=function(e,t){return e===t||e!=e&&t!=t},ir=function(e,t){for(var n=e.length;n--;)if(rr(e[n][0],t))return n;return-1},ar=Array.prototype.splice;function or(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}or.prototype.clear=function(){this.__data__=[],this.size=0},or.prototype.delete=function(e){var t=this.__data__,n=ir(t,e);return!(n<0||(n==t.length-1?t.pop():ar.call(t,n,1),--this.size,0))},or.prototype.get=function(e){var t=this.__data__,n=ir(t,e);return n<0?void 0:t[n][1]},or.prototype.has=function(e){return ir(this.__data__,e)>-1},or.prototype.set=function(e,t){var n=this.__data__,r=ir(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var sr=or,cr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ur(e){var t={exports:{}};return e(t,t.exports),t.exports}var lr,fr="object"==typeof cr&&cr&&cr.Object===Object&&cr,dr="object"==typeof self&&self&&self.Object===Object&&self,hr=fr||dr||Function("return this")(),pr=hr.Symbol,br=Object.prototype,gr=br.hasOwnProperty,mr=br.toString,vr=pr?pr.toStringTag:void 0,yr=Object.prototype.toString,_r=pr?pr.toStringTag:void 0,xr=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_r&&_r in Object(e)?function(e){var t=gr.call(e,vr),n=e[vr];try{e[vr]=void 0;var r=!0}catch(e){}var i=mr.call(e);return r&&(t?e[vr]=n:delete e[vr]),i}(e):function(e){return yr.call(e)}(e)},wr=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},kr=function(e){if(!wr(e))return!1;var t=xr(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Ar=hr["__core-js_shared__"],Mr=(lr=/[^.]+$/.exec(Ar&&Ar.keys&&Ar.keys.IE_PROTO||""))?"Symbol(src)_1."+lr:"",Or=Function.prototype.toString,Cr=function(e){if(null!=e){try{return Or.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Sr=/^\[object .+?Constructor\]$/,Tr=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jr=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!wr(e)||(t=e,Mr&&Mr in t))&&(kr(e)?Tr:Sr).test(Cr(e));var t}(n)?n:void 0},Rr=jr(hr,"Map"),Er=jr(Object,"create"),Lr=Object.prototype.hasOwnProperty,$r=Object.prototype.hasOwnProperty;function Fr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Fr.prototype.clear=function(){this.__data__=Er?Er(null):{},this.size=0},Fr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Fr.prototype.get=function(e){var t=this.__data__;if(Er){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Lr.call(t,e)?t[e]:void 0},Fr.prototype.has=function(e){var t=this.__data__;return Er?void 0!==t[e]:$r.call(t,e)},Fr.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Er&&void 0===t?"__lodash_hash_undefined__":t,this};var zr=Fr,Ir=function(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map};function Pr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pr.prototype.clear=function(){this.size=0,this.__data__={hash:new zr,map:new(Rr||sr),string:new zr}},Pr.prototype.delete=function(e){var t=Ir(this,e).delete(e);return this.size-=t?1:0,t},Pr.prototype.get=function(e){return Ir(this,e).get(e)},Pr.prototype.has=function(e){return Ir(this,e).has(e)},Pr.prototype.set=function(e,t){var n=Ir(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var Dr=Pr;function Nr(e){var t=this.__data__=new sr(e);this.size=t.size}Nr.prototype.clear=function(){this.__data__=new sr,this.size=0},Nr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Nr.prototype.get=function(e){return this.__data__.get(e)},Nr.prototype.has=function(e){return this.__data__.has(e)},Nr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof sr){var r=n.__data__;if(!Rr||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Dr(r)}return n.set(e,t),this.size=n.size,this};var Wr=Nr,Vr=function(){try{var e=jr(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ur=function(e,t,n){"__proto__"==t&&Vr?Vr(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},qr=function(e,t,n){(void 0!==n&&!rr(e[t],n)||void 0===n&&!(t in e))&&Ur(e,t,n)},Hr=ur(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n?hr.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}),Br=hr.Uint8Array,Yr=Object.create,Zr=function(){function e(){}return function(t){if(!wr(t))return{};if(Yr)return Yr(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Xr=Zr,Qr=function(e,t){return function(n){return e(t(n))}},Gr=Qr(Object.getPrototypeOf,Object),Jr=Object.prototype,Kr=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Jr)},ei=function(e){return null!=e&&"object"==typeof e},ti=function(e){return ei(e)&&"[object Arguments]"==xr(e)},ni=Object.prototype,ri=ni.hasOwnProperty,ii=ni.propertyIsEnumerable,ai=ti(function(){return arguments}())?ti:function(e){return ei(e)&&ri.call(e,"callee")&&!ii.call(e,"callee")},oi=Array.isArray,si=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},ci=function(e){return null!=e&&si(e.length)&&!kr(e)},ui=function(e){return ei(e)&&ci(e)},li=function(){return!1},fi=ur(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n?hr.Buffer:void 0;e.exports=(i?i.isBuffer:void 0)||li}),di=Function.prototype.toString,hi=Object.prototype.hasOwnProperty,pi=di.call(Object),bi=function(e){if(!ei(e)||"[object Object]"!=xr(e))return!1;var t=Gr(e);if(null===t)return!0;var n=hi.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&di.call(n)==pi},gi={};gi["[object Float32Array]"]=gi["[object Float64Array]"]=gi["[object Int8Array]"]=gi["[object Int16Array]"]=gi["[object Int32Array]"]=gi["[object Uint8Array]"]=gi["[object Uint8ClampedArray]"]=gi["[object Uint16Array]"]=gi["[object Uint32Array]"]=!0,gi["[object Arguments]"]=gi["[object Array]"]=gi["[object ArrayBuffer]"]=gi["[object Boolean]"]=gi["[object DataView]"]=gi["[object Date]"]=gi["[object Error]"]=gi["[object Function]"]=gi["[object Map]"]=gi["[object Number]"]=gi["[object Object]"]=gi["[object RegExp]"]=gi["[object Set]"]=gi["[object String]"]=gi["[object WeakMap]"]=!1;var mi,vi,yi,_i,xi=ur(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&fr.process,a=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}),wi=xi&&xi.isTypedArray,ki=wi?function(e){return function(t){return e(t)}}(wi):function(e){return ei(e)&&si(e.length)&&!!gi[xr(e)]},Ai=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Mi=Object.prototype.hasOwnProperty,Oi=function(e,t,n){var r=e[t];Mi.call(e,t)&&rr(r,n)&&(void 0!==n||t in e)||Ur(e,t,n)},Ci=/^(?:0|[1-9]\d*)$/,Si=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Ci.test(e))&&e>-1&&e%1==0&&e<t},Ti=Object.prototype.hasOwnProperty,ji=function(e,t){var n=oi(e),r=!n&&ai(e),i=!n&&!r&&fi(e),a=!n&&!r&&!i&&ki(e),o=n||r||i||a,s=o?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var u in e)!t&&!Ti.call(e,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Si(u,c))||s.push(u);return s},Ri=Object.prototype.hasOwnProperty,Ei=function(e){return ci(e)?ji(e,!0):function(e){if(!wr(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Kr(e),n=[];for(var r in e)("constructor"!=r||!t&&Ri.call(e,r))&&n.push(r);return n}(e)},Li=function e(t,n,r,i,a){t!==n&&function(e,t,n){for(var r=-1,i=Object(e),a=n(e),o=a.length;o--;){var s=a[++r];if(!1===t(i[s],s))break}}(n,function(o,s){if(a||(a=new Wr),wr(o))!function(e,t,n,r,i,a,o){var s,c=Ai(e,n),u=Ai(t,n),l=o.get(u);if(l)qr(e,n,l);else{var f=a?a(c,u,n+"",e,t,o):void 0,d=void 0===f;if(d){var h=oi(u),p=!h&&fi(u),b=!h&&!p&&ki(u);f=u,h||p||b?oi(c)?f=c:ui(c)?f=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(c):p?(d=!1,f=Hr(u,!0)):b?(d=!1,f=function(e){var t,n,r=(n=new(t=e.buffer).constructor(t.byteLength),new Br(n).set(new Br(t)),n);return new e.constructor(r,e.byteOffset,e.length)}(u)):f=[]:bi(u)||ai(u)?(f=c,ai(c)?f=function(e,t,n){var r=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var o=t[i],s=void 0;void 0===s&&(s=e[o]),r?Ur(n,o,s):Oi(n,o,s)}return n}(s=c,Ei(s)):wr(c)&&!kr(c)||(f=function(e){return"function"!=typeof e.constructor||Kr(e)?{}:Xr(Gr(e))}(u))):d=!1}d&&(o.set(u,f),i(f,u,r,a,o),o.delete(u)),qr(e,n,f)}}(t,n,s,r,e,i,a);else{var c=i?i(Ai(t,s),o,s+"",t,n,a):void 0;void 0===c&&(c=o),qr(t,s,c)}},Ei)},$i=function(e){return e},Fi=Math.max,zi=function(e,t,n){return t=Fi(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Fi(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}},Ii=Vr?function(e,t){return Vr(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:$i,Pi=Date.now,Di=(mi=Ii,vi=0,yi=0,function(){var e=Pi(),t=16-(e-yi);if(yi=e,t>0){if(++vi>=800)return arguments[0]}else vi=0;return mi.apply(void 0,arguments)}),Ni=function(e,t){return Di(zi(e,t,$i),e+"")},Wi=(_i=function(e,t,n){Li(e,t,n)},Ni(function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(i=_i.length>3&&"function"==typeof i?(r--,i):void 0,a&&function(e,t,n){if(!wr(n))return!1;var r=typeof t;return!!("number"==r?ci(n)&&Si(t,n.length):"string"==r&&t in n)&&rr(n[t],e)}(t[0],t[1],a)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var o=t[n];o&&_i(e,o,n)}return e})),Vi=Wi,Ui=function(e){return"symbol"==typeof e||ei(e)&&"[object Symbol]"==xr(e)},qi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hi=/^\w*$/;function Bi(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Bi.Cache||Dr),n}Bi.Cache=Dr;var Yi,Zi,Xi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qi=/\\(\\)?/g,Gi=(Yi=Bi(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Xi,function(e,n,r,i){t.push(r?i.replace(Qi,"$1"):n||e)}),t},function(e){return 500===Zi.size&&Zi.clear(),e}),Zi=Yi.cache,Yi),Ji=Gi,Ki=pr?pr.prototype:void 0,ea=Ki?Ki.toString:void 0,ta=function e(t){if("string"==typeof t)return t;if(oi(t))return function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}(t,e)+"";if(Ui(t))return ea?ea.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},na=function(e,t){return oi(e)?e:function(e,t){if(oi(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ui(e))||Hi.test(e)||!qi.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:Ji(function(e){return null==e?"":ta(e)}(e))},ra=function(e){if("string"==typeof e||Ui(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},ia=function(e,t){for(var n=0,r=(t=na(t,e)).length;null!=e&&n<r;)e=e[ra(t[n++])];return n&&n==r?e:void 0},aa=function(e,t,n){var r=null==e?void 0:ia(e,t);return void 0===r?n:r},oa=function(e,t,n,r){if(!wr(e))return e;for(var i=-1,a=(t=na(t,e)).length,o=a-1,s=e;null!=s&&++i<a;){var c=ra(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=o){var l=s[c];void 0===(u=r?r(l,c,s):void 0)&&(u=wr(l)?l:Si(t[i+1])?[]:{})}Oi(s,c,u),s=s[c]}return e},sa=function(e,t,n){return null==e?e:oa(e,t,n)};function ca(){return ca=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ca.apply(null,arguments)}var ua=["outlineWidth","outlineColor","outlineOpacity"],la=function(e){return function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,ua)},fa=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],da={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"#ffffff",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}},ha=e.createContext(null),pa={},ba=function(t){var n=t.theme,r=t.children,i=function(t){return e.useMemo(function(){return function(e,t){var n=Vi({},da,t);return fa.forEach(function(e){sa(n,e,function(e,t){return ca({},t,e)}(aa(n,e),n.text))}),n}(0,t)},[t])}(void 0===n?pa:n);return s.jsx(ha.Provider,{value:i,children:r})},ga=function(){var t=e.useContext(ha);if(null===t)throw new Error("Unable to find the theme, did you forget to wrap your component with ThemeProvider?");return t};function ma(){return ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ma.apply(null,arguments)}var va=["basic","chip","container","table","tableCell","tableCellValue"],ya={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},_a=function(e,t){return"translate("+e+"px, "+t+"px)"},xa=e.memo(function(t){var n,r=t.position,i=t.anchor,a=t.children,o=ga(),c=Rd(),u=c.animate,l=c.config,f=oh(),d=f[0],h=f[1],p=e.useRef(!1),b=void 0,g=!1,m=h.width>0&&h.height>0,v=Math.round(r[0]),y=Math.round(r[1]);m&&("top"===i?(v-=h.width/2,y-=h.height+14):"right"===i?(v+=14,y-=h.height/2):"bottom"===i?(v-=h.width/2,y+=14):"left"===i?(v-=h.width+14,y-=h.height/2):"center"===i&&(v-=h.width/2,y-=h.height/2),b={transform:_a(v,y)},p.current||(g=!0),p.current=[v,y]);var _=Fn({to:b,config:l,immediate:!u||g}),x=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(o.tooltip,va),w=ma({},ya,x,{transform:null!=(n=_.transform)?n:_a(v,y),opacity:_.transform?1:0});return s.jsx(nr.div,{ref:d,style:w,children:a})});xa.displayName="TooltipWrapper";var wa=e.memo(function(e){var t=e.size,n=void 0===t?12:t,r=e.style;return s.jsx("span",{style:ma({display:"block",width:n,height:n,background:e.color},void 0===r?{}:r)})}),ka=e.memo(function(e){var t,n=e.id,r=e.value,i=e.format,a=e.enableChip,o=void 0!==a&&a,c=e.color,u=e.renderContent,l=ga(),f=sh(i);if("function"==typeof u)t=u();else{var d=r;void 0!==f&&void 0!==d&&(d=f(d)),t=s.jsxs("div",{style:l.tooltip.basic,children:[o&&s.jsx(wa,{color:c,style:l.tooltip.chip}),void 0!==d?s.jsxs("span",{children:[n,": ",s.jsx("strong",{children:""+d})]}):n]})}return s.jsx("div",{style:l.tooltip.container,role:"tooltip",children:t})}),Aa={width:"100%",borderCollapse:"collapse"},Ma=e.memo(function(e){var t,n=e.title,r=e.rows,i=void 0===r?[]:r,a=e.renderContent,o=ga();return i.length?(t="function"==typeof a?a():s.jsxs("div",{children:[n&&n,s.jsx("table",{style:ma({},Aa,o.tooltip.table),children:s.jsx("tbody",{children:i.map(function(e,t){return s.jsx("tr",{children:e.map(function(e,t){return s.jsx("td",{style:o.tooltip.tableCell,children:e},t)})},t)})})})]}),s.jsx("div",{style:o.tooltip.container,children:t})):null});Ma.displayName="TableTooltip";var Oa=e.memo(function(t){var n=t.x0,r=t.x1,i=t.y0,a=t.y1,o=ga(),c=Rd(),u=c.animate,l=c.config,f=e.useMemo(function(){return ma({},o.crosshair.line,{pointerEvents:"none"})},[o.crosshair.line]),d=Fn({x1:n,x2:r,y1:i,y2:a,config:l,immediate:!u});return s.jsx(nr.line,ma({},d,{fill:"none",style:f}))});Oa.displayName="CrosshairLine";var Ca=e.memo(function(e){var t,n,r=e.width,i=e.height,a=e.type,o=e.x,c=e.y;return"cross"===a?(t={x0:o,x1:o,y0:0,y1:i},n={x0:0,x1:r,y0:c,y1:c}):"top-left"===a?(t={x0:o,x1:o,y0:0,y1:c},n={x0:0,x1:o,y0:c,y1:c}):"top"===a?t={x0:o,x1:o,y0:0,y1:c}:"top-right"===a?(t={x0:o,x1:o,y0:0,y1:c},n={x0:o,x1:r,y0:c,y1:c}):"right"===a?n={x0:o,x1:r,y0:c,y1:c}:"bottom-right"===a?(t={x0:o,x1:o,y0:c,y1:i},n={x0:o,x1:r,y0:c,y1:c}):"bottom"===a?t={x0:o,x1:o,y0:c,y1:i}:"bottom-left"===a?(t={x0:o,x1:o,y0:c,y1:i},n={x0:0,x1:o,y0:c,y1:c}):"left"===a?n={x0:0,x1:o,y0:c,y1:c}:"x"===a?t={x0:o,x1:o,y0:0,y1:i}:"y"===a&&(n={x0:0,x1:r,y0:c,y1:c}),s.jsxs(s.Fragment,{children:[t&&s.jsx(Oa,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&s.jsx(Oa,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});Ca.displayName="Crosshair";var Sa=e.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),Ta={isVisible:!1,position:[null,null],content:null,anchor:null},ja=e.createContext(Ta),Ra=function(){var t=e.useContext(Sa);if(void 0===t)throw new Error("useTooltip must be used within a TooltipProvider");return t},Ea=function(){var t=function(){var t=e.useContext(ja);if(void 0===t)throw new Error("useTooltipState must be used within a TooltipProvider");return t}();return function(e){return e.isVisible}(t)?s.jsx(xa,{position:t.position,anchor:t.anchor,children:t.content}):null},La=function(t){var n=t.children,r=function(t){var n=e.useState(Ta),r=n[0],i=n[1],a=e.useCallback(function(e,t,n){void 0===n&&(n="top"),i({isVisible:!0,position:[t[0],t[1]],anchor:n,content:e})},[i]),o=e.useCallback(function(e,n,r){void 0===r&&(r="top");var a=t.current.getBoundingClientRect(),o=t.current.offsetWidth,s=o===a.width?1:o/a.width,c="touches"in n?n.touches[0]:n,u=(c.clientX-a.left)*s;"left"!==r&&"right"!==r||(r=u<a.width/2?"right":"left"),i({isVisible:!0,position:[u,(c.clientY-a.top)*s],anchor:r,content:e})},[t,i]),s=e.useCallback(function(){i(Ta)},[i]);return{actions:e.useMemo(function(){return{showTooltipAt:a,showTooltipFromEvent:o,hideTooltip:s}},[a,o,s]),state:r}}(t.container);return s.jsx(Sa.Provider,{value:r.actions,children:s.jsx(ja.Provider,{value:r.state,children:n})})};let $a;$a="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let Fa=null,za=null;const Ia=$a.clearTimeout,Pa=$a.setTimeout,Da=$a.cancelAnimationFrame||$a.mozCancelAnimationFrame||$a.webkitCancelAnimationFrame,Na=$a.requestAnimationFrame||$a.mozRequestAnimationFrame||$a.webkitRequestAnimationFrame;null==Da||null==Na?(Fa=Ia,za=function(e){return Pa(e,20)}):(Fa=function([e,t]){Da(e),Ia(t)},za=function(e){const t=Na(function(){Ia(n),e()}),n=Pa(function(){Da(t),e()},20);return[t,n]});class Wa extends e.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},i=parseFloat(r.paddingLeft||"0"),a=parseFloat(r.paddingRight||"0"),o=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),c=this._parentNode.getBoundingClientRect(),u=c.height-o-s,l=c.width-i-a;if(!e&&this.state.height!==u||!t&&this.state.width!==l){this.setState({height:u,width:l});const e=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};"function"==typeof n&&n({height:u,width:l,get scaledHeight(){return e(),u},get scaledWidth(){return e(),l}})}}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(t)):(this._detectElementResize=function(e){let t,n,r,i,a,o,s;const c="undefined"!=typeof document&&document.attachEvent;if(!c){o=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},a=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;o(this),this.__resizeRAF__&&Fa(this.__resizeRAF__),this.__resizeRAF__=za(function(){a(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})};let e=!1,c="";r="animationstart";const u="Webkit Moz O ms".split(" ");let l="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<u.length;n++)if(void 0!==t.style[u[n]+"AnimationName"]){f=u[n],c="-"+f.toLowerCase()+"-",r=l[n],e=!0;break}}n="resizeanim",t="@"+c+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=c+"animation: 1ms "+n+"; "}return{addResizeListener:function(a,u){if(c)a.attachEvent("onresize",u);else{if(!a.__resizeTriggers__){const c=a.ownerDocument,u=$a.getComputedStyle(a);u&&"static"===u.position&&(a.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',a=n.head||n.getElementsByTagName("head")[0],o=n.createElement("style");o.id="detectElementResize",o.type="text/css",null!=e&&o.setAttribute("nonce",e),o.styleSheet?o.styleSheet.cssText=r:o.appendChild(n.createTextNode(r)),a.appendChild(o)}}(c),a.__resizeLast__={},a.__resizeListeners__=[],(a.__resizeTriggers__=c.createElement("div")).className="resize-triggers";const l=c.createElement("div");l.className="expand-trigger",l.appendChild(c.createElement("div"));const f=c.createElement("div");f.className="contract-trigger",a.__resizeTriggers__.appendChild(l),a.__resizeTriggers__.appendChild(f),a.appendChild(a.__resizeTriggers__),o(a),a.addEventListener("scroll",s,!0),r&&(a.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&o(a)},a.__resizeTriggers__.addEventListener(r,a.__resizeTriggers__.__animationListener__))}a.__resizeListeners__.push(u)}},removeResizeListener:function(e,t){if(c)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:a=!1,doNotBailOutOnEmptyChildren:o=!1,nonce:s,onResize:c,style:u={},tagName:l="div",...f}=this.props,{height:d,width:h}=this.state,p={overflow:"visible"},b={};let g=!1;return i||(0===d&&(g=!0),p.height=0,b.height=d,b.scaledHeight=d),a||(0===h&&(g=!0),p.width=0,b.width=h,b.scaledWidth=h),o&&(g=!1),e.createElement(l,{ref:this._setRef,style:{...p,...u},...f},!g&&t(b))}}function Va(e,t){return e===t}function Ua(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function qa(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ha(){}var Ba=.7,Ya=1/Ba,Za="\\s*([+-]?\\d+)\\s*",Xa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ga=/^#([0-9a-f]{3,8})$/,Ja=new RegExp(`^rgb\\(${Za},${Za},${Za}\\)$`),Ka=new RegExp(`^rgb\\(${Qa},${Qa},${Qa}\\)$`),eo=new RegExp(`^rgba\\(${Za},${Za},${Za},${Xa}\\)$`),to=new RegExp(`^rgba\\(${Qa},${Qa},${Qa},${Xa}\\)$`),no=new RegExp(`^hsl\\(${Xa},${Qa},${Qa}\\)$`),ro=new RegExp(`^hsla\\(${Xa},${Qa},${Qa},${Xa}\\)$`),io={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};function ao(){return this.rgb().formatHex()}function oo(){return this.rgb().formatRgb()}function so(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ga.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?co(t):3===n?new ho(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?uo(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?uo(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Ja.exec(e))?new ho(t[1],t[2],t[3],1):(t=Ka.exec(e))?new ho(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=eo.exec(e))?uo(t[1],t[2],t[3],t[4]):(t=to.exec(e))?uo(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=no.exec(e))?yo(t[1],t[2]/100,t[3]/100,1):(t=ro.exec(e))?yo(t[1],t[2]/100,t[3]/100,t[4]):io.hasOwnProperty(e)?co(io[e]):"transparent"===e?new ho(NaN,NaN,NaN,0):null}function co(e){return new ho(e>>16&255,e>>8&255,255&e,1)}function uo(e,t,n,r){return r<=0&&(e=t=n=NaN),new ho(e,t,n,r)}function lo(e){return e instanceof Ha||(e=so(e)),e?new ho((e=e.rgb()).r,e.g,e.b,e.opacity):new ho}function fo(e,t,n,r){return 1===arguments.length?lo(e):new ho(e,t,n,null==r?1:r)}function ho(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function po(){return`#${vo(this.r)}${vo(this.g)}${vo(this.b)}`}function bo(){const e=go(this.opacity);return`${1===e?"rgb(":"rgba("}${mo(this.r)}, ${mo(this.g)}, ${mo(this.b)}${1===e?")":`, ${e})`}`}function go(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function mo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function vo(e){return((e=mo(e))<16?"0":"")+e.toString(16)}function yo(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new xo(e,t,n,r)}function _o(e){if(e instanceof xo)return new xo(e.h,e.s,e.l,e.opacity);if(e instanceof Ha||(e=so(e)),!e)return new xo;if(e instanceof xo)return e;var t=(e=e.rgb()).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,c=(a+i)/2;return s?(o=t===a?(n-r)/s+6*(n<r):n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new xo(o,s,c,e.opacity)}function xo(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function wo(e){return(e=(e||0)%360)<0?e+360:e}function ko(e){return Math.max(0,Math.min(1,e||0))}function Ao(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ua(Ha,so,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ao,formatHex:ao,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return _o(this).formatHsl()},formatRgb:oo,toString:oo}),Ua(ho,fo,qa(Ha,{brighter(e){return e=null==e?Ya:Math.pow(Ya,e),new ho(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Ba:Math.pow(Ba,e),new ho(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ho(mo(this.r),mo(this.g),mo(this.b),go(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:po,formatHex:po,formatHex8:function(){return`#${vo(this.r)}${vo(this.g)}${vo(this.b)}${vo(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:bo,toString:bo})),Ua(xo,function(e,t,n,r){return 1===arguments.length?_o(e):new xo(e,t,n,null==r?1:r)},qa(Ha,{brighter(e){return e=null==e?Ya:Math.pow(Ya,e),new xo(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Ba:Math.pow(Ba,e),new xo(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),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 ho(Ao(e>=240?e-240:e+120,i,r),Ao(e,i,r),Ao(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new xo(wo(this.h),ko(this.s),ko(this.l),go(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=go(this.opacity);return`${1===e?"hsl(":"hsla("}${wo(this.h)}, ${100*ko(this.s)}%, ${100*ko(this.l)}%${1===e?")":`, ${e})`}`}}));const Mo=Math.PI/180,Oo=180/Math.PI;var Co=-.14861,So=1.78277,To=-.29227,jo=-.90649,Ro=1.97294,Eo=Ro*jo,Lo=Ro*So,$o=So*To-jo*Co;function Fo(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof zo)return new zo(e.h,e.s,e.l,e.opacity);e instanceof ho||(e=lo(e));var t=e.g/255,n=e.b/255,r=($o*n+Eo*(e.r/255)-Lo*t)/($o+Eo-Lo),i=n-r,a=(Ro*(t-r)-To*i)/jo,o=Math.sqrt(a*a+i*i)/(Ro*r*(1-r)),s=o?Math.atan2(a,i)*Oo-120:NaN;return new zo(s<0?s+360:s,o,r,e.opacity)}(e):new zo(e,t,n,null==r?1:r)}function zo(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Ua(zo,Fo,qa(Ha,{brighter(e){return e=null==e?Ya:Math.pow(Ya,e),new zo(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Ba:Math.pow(Ba,e),new zo(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Mo,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new ho(255*(t+n*(Co*r+So*i)),255*(t+n*(To*r+jo*i)),255*(t+n*(Ro*r)),this.opacity)}}));var Io=e=>()=>e;function Po(e,t){return function(n){return e+n*t}}function Do(e,t){var n=t-e;return n?Po(e,n):Io(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?Do:function(t,n){return n-t?function(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)}}(t,n,e):Io(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=fo(e)).r,(t=fo(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Do(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+""}}return r.gamma=e,r}(1);var No,Wo=(No=function(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];return function(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}((n-r/t)*t,r>0?e[r-1]:2*i-a,i,a,r<t-1?e[r+2]:2*a-i)}},function(e){var t,n,r=e.length,i=new Array(r),a=new Array(r),o=new Array(r);for(t=0;t<r;++t)n=fo(e[t]),i[t]=n.r||0,a[t]=n.g||0,o[t]=n.b||0;return i=No(i),a=No(a),o=No(o),n.opacity=1,function(e){return n.r=i(e),n.g=a(e),n.b=o(e),n+""}});function Vo(e){return function t(n){function r(t,r){var i=e((t=Fo(t)).h,(r=Fo(r)).h),a=Do(t.s,r.s),o=Do(t.l,r.l),s=Do(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=a(e),t.l=o(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}Vo(function(e,t){var n=t-e;return n?Po(e,n>180||n<-180?n-360*Math.round(n/360):n):Io(isNaN(e)?t:e)});var Uo=Vo(Do);function qo(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Dr;++t<n;)this.add(e[t])}qo.prototype.add=qo.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},qo.prototype.has=function(e){return this.__data__.has(e)};var Ho=qo,Bo=function(e){return e!=e},Yo=function(e,t){return!(null==e||!e.length)&&function(e,t){return t==t?function(e,t){for(var n=-1,r=e.length;++n<r;)if(e[n]===t)return n;return-1}(e,t):function(e,t){for(var n=e.length,r=-1;++r<n;)if(t(e[r],r,e))return r;return-1}(e,Bo)}(e,t)>-1},Zo=function(e,t){return e.has(t)},Xo=Ni(function(e,t){return ui(e)?function(e,t){var n=-1,r=Yo,i=!0,a=e.length,o=[],s=t.length;if(!a)return o;t.length>=200&&(r=Zo,i=!1,t=new Ho(t));e:for(;++n<a;){var c=e[n],u=c;if(c=0!==c?c:0,i&&u==u){for(var l=s;l--;)if(t[l]===u)continue e;o.push(c)}else r(t,u,void 0)||o.push(c)}return o}(e,t):[]}),Qo=Xo;function Go(e){return function(){return e}}const Jo=Math.abs,Ko=Math.atan2,es=Math.cos,ts=Math.max,ns=Math.min,rs=Math.sin,is=Math.sqrt,as=1e-12,os=Math.PI,ss=os/2,cs=2*os;function us(e){return e>=1?ss:e<=-1?-ss:Math.asin(e)}const ls=Math.PI,fs=2*ls,ds=1e-6,hs=fs-ds;function ps(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class bs{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?ps:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return ps;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,u=a-e,l=o-t,f=u*u+l*l;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(f>ds)if(Math.abs(l*s-c*u)>ds&&i){let d=n-a,h=r-o,p=s*s+c*c,b=d*d+h*h,g=Math.sqrt(p),m=Math.sqrt(f),v=i*Math.tan((ls-Math.acos((p+f-b)/(2*g*m)))/2),y=v/m,_=v/g;Math.abs(y-1)>ds&&this._append`L${e+y*u},${t+y*l}`,this._append`A${i},${i},0,0,${+(l*d>u*h)},${this._x1=e+_*s},${this._y1=t+_*c}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,i,a){if(e=+e,t=+t,a=!!a,(n=+n)<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,u=t+s,l=1^a,f=a?r-i:i-r;null===this._x1?this._append`M${c},${u}`:(Math.abs(this._x1-c)>ds||Math.abs(this._y1-u)>ds)&&this._append`L${c},${u}`,n&&(f<0&&(f=f%fs+fs),f>hs?this._append`A${n},${n},0,1,${l},${e-o},${t-s}A${n},${n},0,1,${l},${this._x1=c},${this._y1=u}`:f>ds&&this._append`A${n},${n},0,${+(f>=ls)},${l},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function gs(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new bs(t)}function ms(e){return e.innerRadius}function vs(e){return e.outerRadius}function ys(e){return e.startAngle}function _s(e){return e.endAngle}function xs(e){return e&&e.padAngle}function ws(e,t,n,r,i,a,o){var s=e-n,c=t-r,u=(o?a:-a)/is(s*s+c*c),l=u*c,f=-u*s,d=e+l,h=t+f,p=n+l,b=r+f,g=(d+p)/2,m=(h+b)/2,v=p-d,y=b-h,_=v*v+y*y,x=i-a,w=d*b-p*h,k=(y<0?-1:1)*is(ts(0,x*x*_-w*w)),A=(w*y-v*k)/_,M=(-w*v-y*k)/_,O=(w*y+v*k)/_,C=(-w*v+y*k)/_,S=A-g,T=M-m,j=O-g,R=C-m;return S*S+T*T>j*j+R*R&&(A=O,M=C),{cx:A,cy:M,x01:-l,y01:-f,x11:A*(i/x-1),y11:M*(i/x-1)}}function ks(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function As(e){this._context=e}function Ms(e){return new As(e)}function Os(e){return e[0]}function Cs(e){return e[1]}function Ss(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Ts(e){return e}function js(){}function Rs(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 Es(e){this._context=e}function Ls(e){this._context=e}function $s(e){this._context=e}function Fs(e,t){this._basis=new Es(e),this._beta=t}As.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&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)}}},Es.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:Rs(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&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:Rs(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Ls.prototype={areaStart:js,areaEnd:js,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Rs(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},$s.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||0!==this._line&&3===this._point)&&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:Rs(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Fs.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,i=e[0],a=t[0],o=e[n]-i,s=t[n]-a,c=-1;++c<=n;)this._basis.point(this._beta*e[c]+(1-this._beta)*(i+(r=c/n)*o),this._beta*t[c]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var zs=function e(t){function n(e){return 1===t?new Es(e):new Fs(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function Is(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 Ps(e,t){this._context=e,this._k=(1-t)/6}Ps.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:Is(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&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:Is(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ds=function e(t){function n(e){return new Ps(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ns(e,t){this._context=e,this._k=(1-t)/6}Ns.prototype={areaStart:js,areaEnd:js,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Is(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ws=function e(t){function n(e){return new Ns(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Vs(e,t){this._context=e,this._k=(1-t)/6}Vs.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||0!==this._line&&3===this._point)&&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:Is(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Us=function e(t){function n(e){return new Vs(e,t)}return n.tension=function(t){return e(+t)},n}(0);function qs(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>as){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>as){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/l,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function Hs(e,t){this._context=e,this._alpha=t}Hs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&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:qs(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Bs=function e(t){function n(e){return t?new Hs(e,t):new Ps(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ys(e,t){this._context=e,this._alpha=t}Ys.prototype={areaStart:js,areaEnd:js,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=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:qs(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Zs=function e(t){function n(e){return t?new Ys(e,t):new Ns(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Xs(e,t){this._context=e,this._alpha=t}Xs.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||0!==this._line&&3===this._point)&&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:qs(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Qs=function e(t){function n(e){return t?new Xs(e,t):new Vs(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Gs(e){this._context=e}function Js(e){return e<0?-1:1}function Ks(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(Js(a)+Js(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function ec(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function tc(e,t,n){var r=e._x0,i=e._x1,a=e._y1,o=(i-r)/3;e._context.bezierCurveTo(r+o,e._y0+o*t,i-o,a-o*n,i,a)}function nc(e){this._context=e}function rc(e){this._context=new ic(e)}function ic(e){this._context=e}function ac(e){this._context=e}function oc(e){var t,n,r=e.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)a[t]-=n=i[t]/a[t-1],o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function sc(e,t){this._context=e,this._t=t}Gs.prototype={areaStart:js,areaEnd:js,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))}},nc.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:tc(this,this._t0,ec(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+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,tc(this,ec(this,n=Ks(this,e,t)),n);break;default:tc(this,this._t0,n=Ks(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(rc.prototype=Object.create(nc.prototype)).point=function(e,t){nc.prototype.point.call(this,t,e)},ic.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)}},ac.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]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=oc(e),i=oc(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||0!==this._line&&1===n)&&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)}},sc.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&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};class cc extends Map{constructor(e,t=lc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(uc(this,e))}has(e){return super.has(uc(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function uc({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function lc(e){return null!==e&&"object"==typeof e?e.valueOf():e}function fc(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}const dc=Symbol("implicit");function hc(){var e=new cc,t=[],n=[],r=dc;function i(i){let a=e.get(i);if(void 0===a){if(r!==dc)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new cc;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return hc(t,n).unknown(r)},fc.apply(i,arguments),i}function pc(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)]}var bc,gc=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function mc(e){if(!(t=gc.exec(e)))throw new Error("invalid format: "+e);var t;return new vc({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function vc(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function yc(e,t){var n=pc(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")}mc.prototype=vc.prototype,vc.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 _c={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return yc(100*e,t)},r:yc,s:function(e,t){var n=pc(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(bc=3*Math.max(-8,Math.min(8,Math.floor(i/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")+pc(e,Math.max(0,t+a-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function xc(e){return e}var wc,kc,Ac=Array.prototype.map,Mc=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];wc=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?xc:(t=Ac.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,a=[],o=0,s=t[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(e.substring(i-=s,i+s)),!((c+=s+1)>r));)s=t[o=(o+1)%t.length];return a.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?xc:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(Ac.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"-":e.minus+"",l=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=mc(e)).fill,n=e.align,f=e.sign,d=e.symbol,h=e.zero,p=e.width,b=e.comma,g=e.precision,m=e.trim,v=e.type;"n"===v?(b=!0,v="g"):_c[v]||(void 0===g&&(g=12),m=!0,v="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var y="$"===d?i:"#"===d&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",_="$"===d?a:/[%p]/.test(v)?c:"",x=_c[v],w=/[defgprs%]/.test(v);function k(e){var i,a,c,d=y,k=_;if("c"===v)k=x(e)+k,e="";else{var A=(e=+e)<0||1/e<0;if(e=isNaN(e)?l:x(Math.abs(e),g),m&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),A&&0===+e&&"+"!==f&&(A=!1),d=(A?"("===f?f:u:"-"===f||"("===f?"":f)+d,k=("s"===v?Mc[8+bc/3]:"")+k+(A&&"("===f?")":""),w)for(i=-1,a=e.length;++i<a;)if(48>(c=e.charCodeAt(i))||c>57){k=(46===c?o+e.slice(i+1):e.slice(i))+k,e=e.slice(0,i);break}}b&&!h&&(e=r(e,Infinity));var M=d.length+e.length+k.length,O=M<p?new Array(p-M+1).join(t):"";switch(b&&h&&(e=r(O+e,O.length?p-k.length:Infinity),O=""),n){case"<":e=d+e+k+O;break;case"=":e=d+O+e+k;break;case"^":e=O.slice(0,M=O.length>>1)+d+e+k+O.slice(M);break;default:e=O+d+e+k}return s(e)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return e+""},k}return{format:f,formatPrefix:function(e,t){var n=f(((e=mc(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(function(e){return(e=pc(Math.abs(e)))?e[1]:NaN}(t)/3))),i=Math.pow(10,-r),a=Mc[8+r/3];return function(e){return n(i*e)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),kc=wc.format;var Oc=new Date,Cc=new Date;function Sc(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,a){var o,s=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(o=new Date(+n)),t(n,a),e(n)}while(o<n&&n<r);return s},i.filter=function(n){return Sc(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(i.count=function(t,r){return Oc.setTime(+t),Cc.setTime(+r),e(Oc),e(Cc),Math.floor(n(Oc,Cc))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i:null}),i}const Tc=864e5,jc=6048e5;var Rc=Sc(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/Tc,e=>e.getDate()-1),Ec=Rc;function Lc(e){return Sc(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/jc})}var $c=Lc(0),Fc=Lc(1);Lc(2),Lc(3);var zc=Lc(4);Lc(5),Lc(6);var Ic=Sc(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Ic.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Sc(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var Pc=Ic,Dc=Sc(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Tc},function(e){return e.getUTCDate()-1}),Nc=Dc;function Wc(e){return Sc(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/jc})}var Vc=Wc(0),Uc=Wc(1);Wc(2),Wc(3);var qc=Wc(4);Wc(5),Wc(6);var Hc=Sc(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Hc.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Sc(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var Bc=Hc;function Yc(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 Zc(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 Xc(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var Qc,Gc,Jc={"-":"",_:" ",0:"0"},Kc=/^\s*\d+/,eu=/^%/,tu=/[\\^$*+?|[\]().{}]/g;function nu(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 ru(e){return e.replace(tu,"\\$&")}function iu(e){return new RegExp("^(?:"+e.map(ru).join("|")+")","i")}function au(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function ou(e,t,n){var r=Kc.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function su(e,t,n){var r=Kc.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function cu(e,t,n){var r=Kc.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function uu(e,t,n){var r=Kc.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function lu(e,t,n){var r=Kc.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function fu(e,t,n){var r=Kc.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function du(e,t,n){var r=Kc.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function hu(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 pu(e,t,n){var r=Kc.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function bu(e,t,n){var r=Kc.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function gu(e,t,n){var r=Kc.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function mu(e,t,n){var r=Kc.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function vu(e,t,n){var r=Kc.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function yu(e,t,n){var r=Kc.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function _u(e,t,n){var r=Kc.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function xu(e,t,n){var r=Kc.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function wu(e,t,n){var r=Kc.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ku(e,t,n){var r=eu.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Au(e,t,n){var r=Kc.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Mu(e,t,n){var r=Kc.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Ou(e,t){return nu(e.getDate(),t,2)}function Cu(e,t){return nu(e.getHours(),t,2)}function Su(e,t){return nu(e.getHours()%12||12,t,2)}function Tu(e,t){return nu(1+Ec.count(Pc(e),e),t,3)}function ju(e,t){return nu(e.getMilliseconds(),t,3)}function Ru(e,t){return ju(e,t)+"000"}function Eu(e,t){return nu(e.getMonth()+1,t,2)}function Lu(e,t){return nu(e.getMinutes(),t,2)}function $u(e,t){return nu(e.getSeconds(),t,2)}function Fu(e){var t=e.getDay();return 0===t?7:t}function zu(e,t){return nu($c.count(Pc(e)-1,e),t,2)}function Iu(e){var t=e.getDay();return t>=4||0===t?zc(e):zc.ceil(e)}function Pu(e,t){return e=Iu(e),nu(zc.count(Pc(e),e)+(4===Pc(e).getDay()),t,2)}function Du(e){return e.getDay()}function Nu(e,t){return nu(Fc.count(Pc(e)-1,e),t,2)}function Wu(e,t){return nu(e.getFullYear()%100,t,2)}function Vu(e,t){return nu((e=Iu(e)).getFullYear()%100,t,2)}function Uu(e,t){return nu(e.getFullYear()%1e4,t,4)}function qu(e,t){var n=e.getDay();return nu((e=n>=4||0===n?zc(e):zc.ceil(e)).getFullYear()%1e4,t,4)}function Hu(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+nu(t/60|0,"0",2)+nu(t%60,"0",2)}function Bu(e,t){return nu(e.getUTCDate(),t,2)}function Yu(e,t){return nu(e.getUTCHours(),t,2)}function Zu(e,t){return nu(e.getUTCHours()%12||12,t,2)}function Xu(e,t){return nu(1+Nc.count(Bc(e),e),t,3)}function Qu(e,t){return nu(e.getUTCMilliseconds(),t,3)}function Gu(e,t){return Qu(e,t)+"000"}function Ju(e,t){return nu(e.getUTCMonth()+1,t,2)}function Ku(e,t){return nu(e.getUTCMinutes(),t,2)}function el(e,t){return nu(e.getUTCSeconds(),t,2)}function tl(e){var t=e.getUTCDay();return 0===t?7:t}function nl(e,t){return nu(Vc.count(Bc(e)-1,e),t,2)}function rl(e){var t=e.getUTCDay();return t>=4||0===t?qc(e):qc.ceil(e)}function il(e,t){return e=rl(e),nu(qc.count(Bc(e),e)+(4===Bc(e).getUTCDay()),t,2)}function al(e){return e.getUTCDay()}function ol(e,t){return nu(Uc.count(Bc(e)-1,e),t,2)}function sl(e,t){return nu(e.getUTCFullYear()%100,t,2)}function cl(e,t){return nu((e=rl(e)).getUTCFullYear()%100,t,2)}function ul(e,t){return nu(e.getUTCFullYear()%1e4,t,4)}function ll(e,t){var n=e.getUTCDay();return nu((e=n>=4||0===n?qc(e):qc.ceil(e)).getUTCFullYear()%1e4,t,4)}function fl(){return"+0000"}function dl(){return"%"}function hl(e){return+e}function pl(e){return Math.floor(+e/1e3)}function bl(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n}Qc=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,u=iu(i),l=au(i),f=iu(a),d=au(a),h=iu(o),p=au(o),b=iu(s),g=au(s),m=iu(c),v=au(c),y={a:function(e){return o[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Ou,e:Ou,f:Ru,g:Vu,G:qu,H:Cu,I:Su,j:Tu,L:ju,m:Eu,M:Lu,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:hl,s:pl,S:$u,u:Fu,U:zu,V:Pu,w:Du,W:Nu,x:null,X:null,y:Wu,Y:Uu,Z:Hu,"%":dl},_={a:function(e){return o[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Bu,e:Bu,f:Gu,g:cl,G:ll,H:Yu,I:Zu,j:Xu,L:Qu,m:Ju,M:Ku,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:hl,s:pl,S:el,u:tl,U:nl,V:il,w:al,W:ol,x:null,X:null,y:sl,Y:ul,Z:fl,"%":dl},x={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return A(e,t,n,r)},d:gu,e:gu,f:wu,g:du,G:fu,H:vu,I:vu,j:mu,L:xu,m:bu,M:yu,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:pu,Q:Au,s:Mu,S:_u,u:su,U:cu,V:uu,w:ou,W:lu,x:function(e,t,r){return A(e,n,t,r)},X:function(e,t,n){return A(e,r,t,n)},y:du,Y:fu,Z:hu,"%":ku};function w(e,t){return function(n){var r,i,a,o=[],s=-1,c=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(o.push(e.slice(c,s)),null!=(i=Jc[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(a=t[r])&&(r=a(n,i)),o.push(r),c=s+1);return o.push(e.slice(c,s)),o.join("")}}function k(e,t){return function(n){var r,i,a=Xc(1900,void 0,1);if(A(a,e,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(t&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=Zc(Xc(a.y,0,1))).getUTCDay(),r=i>4||0===i?Uc.ceil(r):Uc(r),r=Nc.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=Yc(Xc(a.y,0,1))).getDay(),r=i>4||0===i?Fc.ceil(r):Fc(r),r=Ec.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.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),i="Z"in a?Zc(Xc(a.y,0,1)).getUTCDay():Yc(Xc(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Zc(a)):Yc(a)}}function A(e,t,n,r){for(var i,a,o=0,s=t.length,c=n.length;o<s;){if(r>=c)return-1;if(37===(i=t.charCodeAt(o++))){if(i=t.charAt(o++),!(a=x[i in Jc?t.charAt(o++):i])||(r=a(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return y.x=w(n,y),y.X=w(r,y),y.c=w(t,y),_.x=w(n,_),_.X=w(r,_),_.c=w(t,_),{format:function(e){var t=w(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}({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"]}),Gc=Qc.format;var gl=bl("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),ml=bl("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),vl=bl("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),yl=bl("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),_l=bl("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),xl=bl("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),wl=bl("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),kl=bl("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Al=bl("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Ml=bl("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Ol=e=>Wo(e[e.length-1]),Cl=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(bl),Sl=Ol(Cl),Tl=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(bl),jl=Ol(Tl),Rl=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(bl),El=Ol(Rl),Ll=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(bl),$l=Ol(Ll),Fl=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(bl),zl=Ol(Fl),Il=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(bl),Pl=Ol(Il),Dl=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(bl),Nl=Ol(Dl),Wl=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(bl),Vl=Ol(Wl),Ul=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(bl),ql=Ol(Ul),Hl=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(bl),Bl=Ol(Hl),Yl=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(bl),Zl=Ol(Yl),Xl=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(bl),Ql=Ol(Xl),Gl=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(bl),Jl=Ol(Gl),Kl=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(bl),ef=Ol(Kl),tf=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(bl),nf=Ol(tf),rf=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(bl),af=Ol(rf),of=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(bl),sf=Ol(of),cf=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(bl),uf=Ol(cf),lf=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(bl),ff=Ol(lf),df=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(bl),hf=Ol(df),pf=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(bl),bf=Ol(pf),gf=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(bl),mf=Ol(gf),vf=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(bl),yf=Ol(vf),_f=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(bl),xf=Ol(_f),wf=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(bl),kf=Ol(wf),Af=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(bl),Mf=Ol(Af),Of=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(bl),Cf=Ol(Of),Sf=Uo(Fo(300,.5,0),Fo(-240,.5,1)),Tf=Uo(Fo(-100,.75,.35),Fo(80,1.5,.8)),jf=Uo(Fo(260,.75,.35),Fo(80,1.5,.8)),Rf=Fo(),Ef=fo(),Lf=Math.PI/3,$f=2*Math.PI/3;function Ff(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var zf=Ff(bl("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),If=Ff(bl("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Pf=Ff(bl("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Df=Ff(bl("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),Nf=function(e,t){return null!=e&&t in Object(e)},Wf=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},Vf=pr?pr.isConcatSpreadable:void 0,Uf=function(e){return oi(e)||ai(e)||!!(Vf&&e&&e[Vf])},qf=function e(t,n,r,i,a){var o=-1,s=t.length;for(r||(r=Uf),a||(a=[]);++o<s;){var c=t[o];n>0&&r(c)?n>1?e(c,n-1,r,i,a):Wf(a,c):i||(a[a.length]=c)}return a},Hf=function(e){return null!=e&&e.length?qf(e,1):[]},Bf=function(e){return Di(zi(e,void 0,Hf),e+"")}(function(e,t){return null==e?{}:function(e,t){return function(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=ia(e,o);n(0,o)&&oa(a,na(o,e),s)}return a}(e,t,function(t,n){return function(e,t){return null!=e&&function(e,t,n){for(var r=-1,i=(t=na(t,e)).length,a=!1;++r<i;){var o=ra(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&si(i)&&Si(o,i)&&(oi(e)||ai(e))}(e,t,Nf)}(e,n)})}(e,t)}),Yf=Bf,Zf=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},Xf=function(e,t,n,r,i,a){var o=1&n,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var u=a.get(e),l=a.get(t);if(u&&l)return u==t&&l==e;var f=-1,d=!0,h=2&n?new Ho:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var p=e[f],b=t[f];if(r)var g=o?r(b,p,f,t,e,a):r(p,b,f,e,t,a);if(void 0!==g){if(g)continue;d=!1;break}if(h){if(!Zf(t,function(e,t){if(!Zo(h,t)&&(p===e||i(p,e,n,r,a)))return h.push(t)})){d=!1;break}}else if(p!==b&&!i(p,b,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d},Qf=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n},Gf=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},Jf=pr?pr.prototype:void 0,Kf=Jf?Jf.valueOf:void 0,ed=Object.prototype.propertyIsEnumerable,td=Object.getOwnPropertySymbols,nd=td?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o)&&(a[i++]=o)}return a}(td(e),function(t){return ed.call(e,t)}))}:function(){return[]},rd=nd,id=Qr(Object.keys,Object),ad=Object.prototype.hasOwnProperty,od=function(e){return function(e,t,n){var r=function(e){return ci(e)?ji(e):function(e){if(!Kr(e))return id(e);var t=[];for(var n in Object(e))ad.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}(e);return oi(e)?r:Wf(r,n(e))}(e,0,rd)},sd=Object.prototype.hasOwnProperty,cd=jr(hr,"DataView"),ud=jr(hr,"Promise"),ld=jr(hr,"Set"),fd=jr(hr,"WeakMap"),dd="[object Map]",hd="[object Promise]",pd="[object Set]",bd="[object WeakMap]",gd="[object DataView]",md=Cr(cd),vd=Cr(Rr),yd=Cr(ud),_d=Cr(ld),xd=Cr(fd),wd=xr;(cd&&wd(new cd(new ArrayBuffer(1)))!=gd||Rr&&wd(new Rr)!=dd||ud&&wd(ud.resolve())!=hd||ld&&wd(new ld)!=pd||fd&&wd(new fd)!=bd)&&(wd=function(e){var t=xr(e),n="[object Object]"==t?e.constructor:void 0,r=n?Cr(n):"";if(r)switch(r){case md:return gd;case vd:return dd;case yd:return hd;case _d:return pd;case xd:return bd}return t});var kd=wd,Ad="[object Arguments]",Md="[object Array]",Od="[object Object]",Cd=Object.prototype.hasOwnProperty,Sd=function e(t,n,r,i,a){return t===n||(null==t||null==n||!ei(t)&&!ei(n)?t!=t&&n!=n:function(e,t,n,r,i,a){var o=oi(e),s=oi(t),c=o?Md:kd(e),u=s?Md:kd(t),l=(c=c==Ad?Od:c)==Od,f=(u=u==Ad?Od:u)==Od,d=c==u;if(d&&fi(e)){if(!fi(t))return!1;o=!0,l=!1}if(d&&!l)return a||(a=new Wr),o||ki(e)?Xf(e,t,n,r,i,a):function(e,t,n,r,i,a,o){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new Br(e),new Br(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return rr(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Qf;case"[object Set]":if(s||(s=Gf),e.size!=t.size&&!(1&r))return!1;var c=o.get(e);if(c)return c==t;r|=2,o.set(e,t);var u=Xf(s(e),s(t),r,i,a,o);return o.delete(e),u;case"[object Symbol]":if(Kf)return Kf.call(e)==Kf.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var h=l&&Cd.call(e,"__wrapped__"),p=f&&Cd.call(t,"__wrapped__");if(h||p){var b=h?e.value():e,g=p?t.value():t;return a||(a=new Wr),i(b,g,n,r,a)}}return!!d&&(a||(a=new Wr),function(e,t,n,r,i,a){var o=1&n,s=od(e),c=s.length;if(c!=od(t).length&&!o)return!1;for(var u=c;u--;){var l=s[u];if(!(o?l in t:sd.call(t,l)))return!1}var f=a.get(e),d=a.get(t);if(f&&d)return f==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var p=o;++u<c;){var b=e[l=s[u]],g=t[l];if(r)var m=o?r(g,b,l,t,e,a):r(b,g,l,e,t,a);if(!(void 0===m?b===g||i(b,g,n,r,a):m)){h=!1;break}p||(p="constructor"==l)}if(h&&!p){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,i,a))}(t,n,r,i,e,a))},Td=e.createContext(),jd=function(t){var n=t.children,r=t.animate,i=void 0===r||r,a=t.config,o=void 0===a?"default":a,c=e.useMemo(function(){var e,t="string"==typeof(e=o)||!oi(e)&&ei(e)&&"[object String]"==xr(e)?Ut[o]:o;return{animate:i,config:t}},[i,o]);return s.jsx(Td.Provider,{value:c,children:n})},Rd=function(){return e.useContext(Td)},Ed=function(t){var n=t.children;return t.condition?e.cloneElement(t.wrapper,{},n):n},Ld={position:"relative"},$d=function(t){var n=t.children,r=t.theme,i=t.renderWrapper,a=void 0===i||i,o=t.isInteractive,c=void 0===o||o,u=t.animate,l=t.motionConfig,f=e.useRef(null);return s.jsx(ba,{theme:r,children:s.jsx(jd,{animate:u,config:l,children:s.jsx(La,{container:f,children:s.jsxs(Ed,{condition:a,wrapper:s.jsx("div",{style:Ld,ref:f}),children:[n,c&&s.jsx(Ea,{})]})})})})},Fd=function(e,t){return e.width===t.width&&e.height===t.height},zd=function(t){var n=t.children,r=t.onResize,i=function(t,n,r){var i=r&&r.equalityFn||Va,a=e.useRef(t),o=e.useState({})[1],s=function(t,n,r,i){var a=this,o=e.useRef(null),s=e.useRef(0),c=e.useRef(0),u=e.useRef(null),l=e.useRef([]),f=e.useRef(),d=e.useRef(),h=e.useRef(t),p=e.useRef(!0),b=e.useRef(),g=e.useRef();h.current=t;var m="undefined"!=typeof window,v=!n&&0!==n&&m;if("function"!=typeof t)throw new TypeError("Expected a function");n=+n||0;var y=!!(r=r||{}).leading,_=!("trailing"in r)||!!r.trailing,x=!!r.flushOnExit&&_,w="maxWait"in r,k="debounceOnServer"in r&&!!r.debounceOnServer,A=w?Math.max(+r.maxWait||0,n):null,M=e.useMemo(function(){var e=function(e){var t=l.current,n=f.current;return l.current=f.current=null,s.current=e,c.current=c.current||e,d.current=h.current.apply(n,t)},t=function(e,t){v&&cancelAnimationFrame(u.current),u.current=v?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!p.current)return!1;var t=e-o.current;return!o.current||t>=n||t<0||w&&e-s.current>=A},M=function(t){return u.current=null,_&&l.current?e(t):(l.current=f.current=null,d.current)},O=function e(){var i=Date.now();if(y&&c.current===s.current&&C(),r(i))return M(i);if(p.current){var a=n-(i-o.current),u=w?Math.min(a,A-(i-s.current)):a;t(e,u)}},C=function(){i&&i({})},S=function(){if(m||k){var i,c=Date.now(),h=r(c);if(l.current=[].slice.call(arguments),f.current=a,o.current=c,x&&!b.current&&(b.current=function(){var e;"hidden"===(null==(e=global.document)?void 0:e.visibilityState)&&g.current.flush()},null==(i=global.document)||null==i.addEventListener||i.addEventListener("visibilitychange",b.current)),h){if(!u.current&&p.current)return s.current=o.current,t(O,n),y?e(o.current):d.current;if(w)return t(O,n),e(o.current)}return u.current||t(O,n),d.current}};return S.cancel=function(){var e=u.current;e&&(v?cancelAnimationFrame(u.current):clearTimeout(u.current)),s.current=0,l.current=o.current=f.current=u.current=null,e&&i&&i({})},S.isPending=function(){return!!u.current},S.flush=function(){return u.current?M(Date.now()):d.current},S},[y,w,n,A,_,x,v,m,k,i]);return g.current=M,e.useEffect(function(){return p.current=!0,function(){var e;x&&g.current.flush(),b.current&&(null==(e=global.document)||null==e.removeEventListener||e.removeEventListener("visibilitychange",b.current),b.current=null),p.current=!1}},[x]),M}(e.useCallback(function(e){a.current=e,o({})},[o]),n,r,o),c=e.useRef(t);return i(c.current,t)||(s(t),c.current=t),[a.current,s]}({width:t.width,height:t.height},t.debounceResize,{equalityFn:Fd})[0];return e.useEffect(function(){null==r||r(i)},[i,r]),s.jsx(s.Fragment,{children:n(i)})},Id=function(e){var t=e.children,n=e.onResize,r=e.debounceResize,i=void 0===r?0:r;return s.jsx(Wa,{defaultWidth:e.defaultWidth,defaultHeight:e.defaultHeight,children:function(e){return s.jsx(zd,{width:e.width,height:e.height,onResize:n,debounceResize:i,children:t})}})};function Pd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Dd(){return Dd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dd.apply(null,arguments)}function Nd(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var Wd=["id","colors"],Vd={linearGradient:function(e){var t=e.id,n=e.colors,r=Nd(e,Wd);return s.jsx("linearGradient",Dd({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(e){var t=e.offset,n=e.opacity;return s.jsx("stop",{offset:t+"%",stopColor:e.color,stopOpacity:void 0!==n?n:1},t)})}))}},Ud=e.memo(function(e){var t=e.background,n=e.color,r=void 0===n?"#000000":n,i=e.size,a=void 0===i?4:i,o=e.padding,c=void 0===o?4:o,u=e.stagger,l=void 0!==u&&u,f=a+c,d=a/2,h=c/2;return!0===l&&(f=2*a+2*c),s.jsxs("pattern",{id:e.id,width:f,height:f,patternUnits:"userSpaceOnUse",children:[s.jsx("rect",{width:f,height:f,fill:void 0===t?"#ffffff":t}),s.jsx("circle",{cx:h+d,cy:h+d,r:d,fill:r}),l&&s.jsx("circle",{cx:1.5*c+a+d,cy:1.5*c+a+d,r:d,fill:r})]})}),qd=function(e){return e*Math.PI/180},Hd=function(e){return 180*e/Math.PI},Bd=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},Yd={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},Zd=e.memo(function(e){var t=e.id,n=e.spacing,r=void 0===n?5:n,i=e.rotation,a=e.background,o=void 0===a?"#000000":a,c=e.color,u=void 0===c?"#ffffff":c,l=e.lineWidth,f=void 0===l?2:l,d=Math.round(void 0===i?0:i)%360,h=Math.abs(r);d>180?d-=360:d>90?d-=180:d<-180?d+=360:d<-90&&(d+=180);var p,b=h,g=h;return 0===d?p="\n M 0 0 L "+b+" 0\n M 0 "+g+" L "+b+" "+g+"\n ":90===d?p="\n M 0 0 L 0 "+g+"\n M "+b+" 0 L "+b+" "+g+"\n ":(b=Math.abs(h/Math.sin(qd(d))),g=h/Math.sin(qd(90-d)),p=d>0?"\n M 0 "+-g+" L "+2*b+" "+g+"\n M "+-b+" "+-g+" L "+b+" "+g+"\n M "+-b+" 0 L "+b+" "+2*g+"\n ":"\n M "+-b+" "+g+" L "+b+" "+-g+"\n M "+-b+" "+2*g+" L "+2*b+" "+-g+"\n M 0 "+2*g+" L "+2*b+" 0\n "),s.jsxs("pattern",{id:t,width:b,height:g,patternUnits:"userSpaceOnUse",children:[s.jsx("rect",{width:b,height:g,fill:o,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),s.jsx("path",{d:p,strokeWidth:f,stroke:u,strokeLinecap:"square"})]})}),Xd=e.memo(function(e){var t=e.color,n=void 0===t?"#000000":t,r=e.background,i=e.size,a=void 0===i?4:i,o=e.padding,c=void 0===o?4:o,u=e.stagger,l=void 0!==u&&u,f=a+c,d=c/2;return!0===l&&(f=2*a+2*c),s.jsxs("pattern",{id:e.id,width:f,height:f,patternUnits:"userSpaceOnUse",children:[s.jsx("rect",{width:f,height:f,fill:void 0===r?"#ffffff":r}),s.jsx("rect",{x:d,y:d,width:a,height:a,fill:n}),l&&s.jsx("rect",{x:1.5*c+a,y:1.5*c+a,width:a,height:a,fill:n})]})}),Qd={patternDots:Ud,patternLines:Zd,patternSquares:Xd},Gd=["type"],Jd=Dd({},Vd,Qd),Kd=e.memo(function(t){var n=t.defs;return!n||n.length<1?null:s.jsx("defs",{"aria-hidden":!0,children:n.map(function(t){var n=t.type,r=Nd(t,Gd);return Jd[n]?e.createElement(Jd[n],Dd({key:r.id},r)):null})})}),eh=e.forwardRef(function(e,t){var n=e.width,r=e.height,i=e.margin,a=e.defs,o=e.children,c=e.role,u=e.ariaLabel,l=e.ariaLabelledBy,f=e.ariaDescribedBy,d=e.isFocusable,h=ga();return s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:r,role:c,"aria-label":u,"aria-labelledby":l,"aria-describedby":f,focusable:d,tabIndex:d?0:void 0,ref:t,children:[s.jsx(Kd,{defs:a}),s.jsx("rect",{width:n,height:r,fill:h.background}),s.jsx("g",{transform:"translate("+i.left+","+i.top+")",children:o})]})}),th=e.memo(function(e){return s.jsx("circle",{r:e.size/2,fill:e.color,stroke:e.borderColor,strokeWidth:e.borderWidth,style:{pointerEvents:"none"}})});e.memo(function(t){var n=t.x,r=t.y,i=t.symbol,a=void 0===i?th:i,o=t.size,c=t.datum,u=t.color,l=t.borderWidth,f=t.borderColor,d=t.label,h=t.labelTextAnchor,p=void 0===h?"middle":h,b=t.labelYOffset,g=void 0===b?-12:b,m=t.ariaLabel,v=t.ariaLabelledBy,y=t.ariaDescribedBy,_=t.ariaHidden,x=t.ariaDisabled,w=t.isFocusable,k=void 0!==w&&w,A=t.tabIndex,M=void 0===A?0:A,O=t.onFocus,C=t.onBlur,S=t.testId,T=ga(),j=Rd(),R=Fn({transform:"translate("+n+", "+r+")",config:j.config,immediate:!j.animate}),E=e.useCallback(function(e){null==O||O(c,e)},[O,c]),L=e.useCallback(function(e){null==C||C(c,e)},[C,c]);return s.jsxs(nr.g,{transform:R.transform,style:{pointerEvents:"none"},focusable:k,tabIndex:k?M:void 0,"aria-label":m,"aria-labelledby":v,"aria-describedby":y,"aria-disabled":x,"aria-hidden":_,onFocus:k&&O?E:void 0,onBlur:k&&C?L:void 0,"data-testid":S,children:[e.createElement(a,{size:o,color:u,datum:c,borderWidth:l,borderColor:f}),d&&s.jsx("text",{textAnchor:p,y:g,style:la(T.dots.text),children:d})]})});var nh=e.memo(function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,a=e.value,o=e.lineStyle,c=e.textStyle,u=e.legend,l=e.legendNode,f=e.legendPosition,d=void 0===f?"top-right":f,h=e.legendOffsetX,p=void 0===h?14:h,b=e.legendOffsetY,g=void 0===b?14:b,m=e.legendOrientation,v=void 0===m?"horizontal":m,y=ga(),_=0,x=0,w=0,k=0;if("y"===r?(w=i(a),x=t):(_=i(a),k=n),u&&!l){var A=function(e){var t=e.width,n=e.height,r=e.position,i=e.offsetX,a=e.offsetY,o=e.orientation,s=0,c=0,u="vertical"===o?-90:0,l="start";if("x"===e.axis)switch(r){case"top-left":s=-i,c=a,l="end";break;case"top":c=-a,l="horizontal"===o?"middle":"start";break;case"top-right":s=i,c=a,l="horizontal"===o?"start":"end";break;case"right":s=i,c=n/2,l="horizontal"===o?"start":"middle";break;case"bottom-right":s=i,c=n-a,l="start";break;case"bottom":c=n+a,l="horizontal"===o?"middle":"end";break;case"bottom-left":c=n-a,s=-i,l="horizontal"===o?"end":"start";break;case"left":s=-i,c=n/2,l="horizontal"===o?"end":"middle"}else switch(r){case"top-left":s=i,c=-a,l="start";break;case"top":s=t/2,c=-a,l="horizontal"===o?"middle":"start";break;case"top-right":s=t-i,c=-a,l="horizontal"===o?"end":"start";break;case"right":s=t+i,l="horizontal"===o?"start":"middle";break;case"bottom-right":s=t-i,c=a,l="end";break;case"bottom":s=t/2,c=a,l="horizontal"===o?"middle":"end";break;case"bottom-left":s=i,c=a,l="horizontal"===o?"start":"end";break;case"left":s=-i,l="horizontal"===o?"end":"middle"}return{x:s,y:c,rotation:u,textAnchor:l}}({axis:r,width:t,height:n,position:d,offsetX:p,offsetY:g,orientation:v});l=s.jsx("text",{transform:"translate("+A.x+", "+A.y+") rotate("+A.rotation+")",textAnchor:A.textAnchor,dominantBaseline:"central",style:c,children:u})}return s.jsxs("g",{transform:"translate("+_+", "+w+")",children:[s.jsx("line",{x1:0,x2:x,y1:0,y2:k,stroke:y.markers.lineColor,strokeWidth:y.markers.lineStrokeWidth,style:o}),l]})});e.memo(function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,a=e.yScale;return t&&0!==t.length?t.map(function(e,t){return s.jsx(nh,Dd({},e,{width:n,height:r,scale:"y"===e.axis?a:i}),t)}):null}),e.createContext(void 0);var rh=Object.keys({basis:function(e){return new Es(e)},basisClosed:function(e){return new Ls(e)},basisOpen:function(e){return new $s(e)},bundle:zs,cardinal:Ds,cardinalClosed:Ws,cardinalOpen:Us,catmullRom:Bs,catmullRomClosed:Zs,catmullRomOpen:Qs,linear:Ms,linearClosed:function(e){return new Gs(e)},monotoneX:function(e){return new nc(e)},monotoneY:function(e){return new rc(e)},natural:function(e){return new ac(e)},step:function(e){return new sc(e,.5)},stepAfter:function(e){return new sc(e,1)},stepBefore:function(e){return new sc(e,0)}});rh.filter(function(e){return e.endsWith("Closed")}),Qo(rh,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),Qo(rh,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),hc(Al);var ih={top:0,right:0,bottom:0,left:0},ah=function(t,n,r){return void 0===r&&(r={}),e.useMemo(function(){var e=Dd({},ih,r);return{margin:e,innerWidth:t-e.left-e.right,innerHeight:n-e.top-e.bottom,outerWidth:t,outerHeight:n}},[t,n,r])},oh=function(){var t=e.useRef(null),n=e.useState({left:0,top:0,width:0,height:0}),r=n[0],i=n[1],a=e.useState(function(){return"undefined"==typeof ResizeObserver?null:new ResizeObserver(function(e){return i(e[0].contentRect)})})[0];return e.useEffect(function(){return t.current&&null!==a&&a.observe(t.current),function(){null!==a&&a.disconnect()}},[a]),[t,r]},sh=function(t){return e.useMemo(function(){return function(e){return"function"==typeof e?e:"string"==typeof e?0===e.indexOf("time:")?Gc(e.slice("5")):kc(e):function(e){return""+e}}(t)},[t])},ch=function(t){return e.useMemo(function(){return function(e){return kr(e)?e:function(t){return aa(t,e)}}(t)},[t])},uh=Object.keys(Vd),lh=Object.keys(Qd);function fh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=0,r=t;n<r.length;n++){var i=r[n];"function"==typeof i?i(e):null!=i&&(i.current=e)}}}var dh=function(e,t){e.font=(t.fontWeight?t.fontWeight+" ":"")+t.fontSize+"px "+t.fontFamily},hh=function(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=0),t.outlineWidth>0&&(e.strokeStyle=t.outlineColor,e.lineWidth=2*t.outlineWidth,e.lineJoin="round",e.strokeText(n,r,i)),e.fillStyle=t.fill,e.fillText(n,r,i)};function ph(){return ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ph.apply(null,arguments)}function bh(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var gh=["style","children"],mh=["outlineWidth","outlineColor","outlineOpacity"],vh=function(e){var t=e.style,n=e.children,r=bh(e,gh),i=t.outlineWidth,a=t.outlineColor,o=t.outlineOpacity,c=bh(t,mh);return s.jsxs(s.Fragment,{children:[i>0&&s.jsx(nr.text,ph({},r,{style:ph({},c,{strokeWidth:2*i,stroke:a,strokeOpacity:o,strokeLinejoin:"round"}),children:n})),s.jsx(nr.text,ph({},r,{style:c,children:n}))]})};function yh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _h(){return _h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_h.apply(null,arguments)}var xh={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:gl,accent:ml,dark2:vl,paired:yl,pastel1:_l,pastel2:xl,set1:wl,set2:kl,set3:Al,tableau10:Ml},wh=Object.keys(xh),kh={brown_blueGreen:Cl,purpleRed_green:Tl,pink_yellowGreen:Rl,purple_orange:Ll,red_blue:Fl,red_grey:Il,red_yellow_blue:Dl,red_yellow_green:Wl,spectral:Ul},Ah=Object.keys(kh),Mh={brown_blueGreen:Sl,purpleRed_green:jl,pink_yellowGreen:El,purple_orange:$l,red_blue:zl,red_grey:Pl,red_yellow_blue:Nl,red_yellow_green:Vl,spectral:ql},Oh={blues:gf,greens:vf,greys:_f,oranges:Of,purples:wf,reds:Af,blue_green:Hl,blue_purple:Yl,green_blue:Xl,orange_red:Gl,purple_blue_green:Kl,purple_blue:tf,purple_red:rf,red_purple:of,yellow_green_blue:cf,yellow_green:lf,yellow_orange_brown:df,yellow_orange_red:pf},Ch=Object.keys(Oh),Sh={blues:mf,greens:yf,greys:xf,oranges:Cf,purples:kf,reds:Mf,turbo:function(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-14825.05*e)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+")"},viridis:zf,inferno:Pf,magma:If,plasma:Df,cividis:function(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-2710.57*e)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-67.37*e)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-2475.67*e)))))))+")"},warm:Tf,cool:jf,cubehelixDefault:Sf,blue_green:Bl,blue_purple:Zl,green_blue:Ql,orange_red:Jl,purple_blue_green:ef,purple_blue:nf,purple_red:af,red_purple:sf,yellow_green_blue:uf,yellow_green:ff,yellow_orange_brown:hf,yellow_orange_red:bf},Th=_h({},xh,kh,Oh),jh={rainbow:function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Rf.h=360*e-100,Rf.s=1.5-1.5*t,Rf.l=.8-.9*t,Rf+""},sinebow:function(e){var t;return e=(.5-e)*Math.PI,Ef.r=255*(t=Math.sin(e))*t,Ef.g=255*(t=Math.sin(e+Lf))*t,Ef.b=255*(t=Math.sin(e+$f))*t,Ef+""}};_h({},Mh,Sh,jh);var Rh=function(t,n){return e.useMemo(function(){return function(e,t){if("function"==typeof e)return e;if(bi(e)){if(function(e){return void 0!==e.theme}(e)){if(void 0===t)throw new Error("Unable to use color from theme as no theme was provided");var n=aa(t,e.theme);if(void 0===n)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(e){return void 0!==e.from}(e)){var r=function(t){return aa(t,e.from)};if(Array.isArray(e.modifiers)){for(var i,a=[],o=function(){var e=i.value,t=e[0],n=e[1];if("brighter"===t)a.push(function(e){return e.brighter(n)});else if("darker"===t)a.push(function(e){return e.darker(n)});else{if("opacity"!==t)throw new Error("Invalid color modifier: '"+t+"', must be one of: 'brighter', 'darker', 'opacity'");a.push(function(e){return e.opacity=n,e})}},s=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,t){if(e){if("string"==typeof e)return yh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yh(e,t):void 0}}(e))){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.modifiers);!(i=s()).done;)o();return 0===a.length?r:function(e){return a.reduce(function(e,t){return t(e)},fo(r(e))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}}(t,n)},[t,n])};function Eh(){return Eh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eh.apply(null,arguments)}var Lh={pointerEvents:"none"},$h=function(e){var t=e.label,n=e.style,r=ga();return s.jsx(nr.g,{transform:n.transform,opacity:n.progress,style:Lh,children:s.jsx(vh,{textAnchor:"middle",dominantBaseline:"central",style:Eh({},r.labels.text,{fill:n.textColor}),children:t})})},Fh=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},zh=function(e,t){return e.filter(function(e){return Math.abs(Hd(e.arc.endAngle-e.arc.startAngle))>=t})},Ih={startAngle:{enter:function(e){return Eh({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return Eh({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Eh({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Eh({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return Eh({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return Eh({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return Eh({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Eh({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Eh({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Eh({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return Eh({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return Eh({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return Eh({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Eh({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return Eh({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return Eh({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},Ph=function(t,n){return e.useMemo(function(){var e=Ih[t];return{enter:function(t){return Eh({progress:0},e.enter(t.arc),n?n.enter(t):{})},update:function(t){return Eh({progress:1},e.update(t.arc),n?n.update(t):{})},leave:function(t){return Eh({progress:0},e.leave(t.arc),n?n.leave(t):{})}}},[t,n])},Dh=function(e,t){var n=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2}(e)-Math.PI/2;return Bd(n,e.innerRadius+(e.outerRadius-e.innerRadius)*t)},Nh=function(e){return function(t,n,r,i){return Vn([t,n,r,i],function(t,n,r,i){var a=Dh({startAngle:t,endAngle:n,innerRadius:r,outerRadius:i},e);return"translate("+a.x+","+a.y+")"})}},Wh=function(t){var n=t.center,r=t.data,i=t.transitionMode,a=t.radiusOffset,o=t.skipAngle,c=t.skipRadius,u=t.textColor,l=t.component,f=void 0===l?$h:l,d=ch(t.label),h=ga(),p=Rh(u,h),b=e.useMemo(function(){return r.filter(function(e){var t=Math.abs(Hd(e.arc.endAngle-e.arc.startAngle)),n=Math.abs(e.arc.outerRadius-e.arc.innerRadius);return t>=o&&n>=c})},[r,o,c]),g=function(e,t,n){void 0===t&&(t=.5),void 0===n&&(n="innerRadius");var r=Rd(),i=r.animate,a=r.config,o=Ph(n,void 0);return{transition:zn(e,{keys:function(e){return e.id},initial:o.update,from:o.enter,enter:o.update,update:o.update,leave:o.leave,config:a,immediate:!i}),interpolate:Nh(t)}}(b,a,i),m=g.interpolate,v=f;return s.jsx("g",{transform:"translate("+n[0]+","+n[1]+")",children:(0,g.transition)(function(t,n){return e.createElement(v,{key:n.id,datum:n,label:d(n),style:{progress:t.progress,transform:m(t.startAngle,t.endAngle,t.innerRadius,t.outerRadius),textColor:p(n)}})})})},Vh=function(e,t,n){dh(e,n.labels.text),e.textAlign="center",e.textBaseline="middle",t.forEach(function(t){hh(e,Eh({},n.labels.text,{fill:t.textColor}),String(t.label),t.x,t.y)})},Uh=function(e){var t=e.label,n=e.style,r=ga();return s.jsxs(nr.g,{opacity:n.opacity,children:[s.jsx(nr.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),s.jsx(vh,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Eh({},r.labels.text,{fill:n.textColor}),children:t})]})},qh=function(e,t,n,r){var i,a,o=Fh(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=Bd(o,e.outerRadius+t),c=Bd(o,e.outerRadius+t+n);return o<Math.PI/2||o>1.5*Math.PI?(i="after",a={x:c.x+r,y:c.y}):(i="before",a={x:c.x-r,y:c.y}),{side:i,points:[s,c,a]}},Hh=function(e,t){var n=Go(!0),r=null,i=Ms,a=null,o=gs(s);function s(s){var c,u,l,f=(s=ks(s)).length,d=!1;for(null==r&&(a=i(l=o())),c=0;c<=f;++c)!(c<f&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(l)return a=null,l+""||null}return e="function"==typeof e?e:void 0===e?Os:Go(e),t="function"==typeof t?t:void 0===t?Cs:Go(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:Go(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:Go(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:Go(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,null!=r&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(null==e?r=a=null:a=i(r=e),s):r},s}().x(function(e){return e.x}).y(function(e){return e.y}),Bh=function(e,t,n,r,i,a,o){return Vn([e,t,n,r,i,a,o],function(e,t,n,r,i,a,o){var s=qh({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},i,a,o).points;return Hh(s)})},Yh=function(e,t,n,r){return Vn([e,t,n,r],function(e,t,n,r){return function(e){var t=Fh(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"}({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r})})},Zh=function(e,t,n,r,i,a,o,s){return Vn([e,t,n,r,i,a,o,s],function(e,t,n,r,i,a,o,s){var c=qh({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},i,a,o),u=c.points[2];return"before"===c.side?u.x-=s:u.x+=s,"translate("+u.x+","+u.y+")"})},Xh=function(t){var n=t.center,r=t.data,i=t.skipAngle,a=t.offset,o=t.diagonalLength,c=t.straightLength,u=t.strokeWidth,l=t.textOffset,f=t.textColor,d=t.linkColor,h=t.component,p=void 0===h?Uh:h,b=ch(t.label),g=function(t){var n=t.data,r=t.offset,i=void 0===r?0:r,a=t.diagonalLength,o=t.straightLength,s=t.skipAngle,c=void 0===s?0:s,u=t.textOffset,l=t.linkColor,f=t.textColor,d=Rd(),h=d.animate,p=d.config,b=ga(),g=Rh(l,b),m=Rh(f,b),v=function(t,n){return e.useMemo(function(){return zh(t,n)},[t,n])}(n,c),y=function(t){var n=t.offset,r=t.diagonalLength,i=t.straightLength,a=t.textOffset,o=t.getLinkColor,s=t.getTextColor;return e.useMemo(function(){return{enter:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:n,diagonalLength:0,straightLength:0,textOffset:a,linkColor:o(e),textColor:s(e),opacity:0}},update:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:n,diagonalLength:r,straightLength:i,textOffset:a,linkColor:o(e),textColor:s(e),opacity:1}},leave:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:n,diagonalLength:0,straightLength:0,textOffset:a,linkColor:o(e),textColor:s(e),opacity:0}}}},[r,i,a,o,s,n])}({offset:i,diagonalLength:a,straightLength:o,textOffset:u,getLinkColor:g,getTextColor:m});return{transition:zn(v,{keys:function(e){return e.id},initial:y.update,from:y.enter,enter:y.update,update:y.update,leave:y.leave,config:p,immediate:!h}),interpolateLink:Bh,interpolateTextAnchor:Yh,interpolateTextPosition:Zh}}({data:r,skipAngle:i,offset:a,diagonalLength:o,straightLength:c,textOffset:l,linkColor:d,textColor:f}),m=g.interpolateLink,v=g.interpolateTextAnchor,y=g.interpolateTextPosition,_=p;return s.jsx("g",{transform:"translate("+n[0]+","+n[1]+")",children:(0,g.transition)(function(t,n){return e.createElement(_,{key:n.id,datum:n,label:b(n),style:Eh({},t,{thickness:u,path:m(t.startAngle,t.endAngle,t.innerRadius,t.outerRadius,t.offset,t.diagonalLength,t.straightLength),textAnchor:v(t.startAngle,t.endAngle,t.innerRadius,t.outerRadius),textPosition:y(t.startAngle,t.endAngle,t.innerRadius,t.outerRadius,t.offset,t.diagonalLength,t.straightLength,t.textOffset)})})})})},Qh=function(e,t,n,r){e.textBaseline="middle",dh(e,n.labels.text),t.forEach(function(t){e.textAlign=Yd.canvas.align[t.textAnchor],hh(e,Eh({},n.labels.text,{fill:t.textColor}),String(t.label),t.x,t.y),e.beginPath(),e.strokeStyle=t.linkColor,e.lineWidth=r,t.points.forEach(function(t,n){0===n?e.moveTo(t.x,t.y):e.lineTo(t.x,t.y)}),e.stroke()})},Gh=function(t){var n=t.datum,r=t.style,i=t.onClick,a=t.onMouseEnter,o=t.onMouseMove,c=t.onMouseLeave,u=e.useCallback(function(e){return null==i?void 0:i(n,e)},[i,n]),l=e.useCallback(function(e){return null==a?void 0:a(n,e)},[a,n]),f=e.useCallback(function(e){return null==o?void 0:o(n,e)},[o,n]),d=e.useCallback(function(e){return null==c?void 0:c(n,e)},[c,n]);return s.jsx(nr.path,{d:r.path,opacity:r.opacity,fill:n.fill||r.color,stroke:r.borderColor,strokeWidth:r.borderWidth,onClick:i?u:void 0,onMouseEnter:a?l:void 0,onMouseMove:o?f:void 0,onMouseLeave:c?d:void 0,"data-testid":"arc."+n.id})},Jh=function(e,t,n,r,i){return Vn([e,t,n,r],function(e,t,n,r){return i({startAngle:e,endAngle:t,innerRadius:Math.max(0,n),outerRadius:Math.max(0,r)})})},Kh=function(t){var n=t.center,r=t.data,i=t.arcGenerator,a=t.borderWidth,o=t.borderColor,c=t.onClick,u=t.onMouseEnter,l=t.onMouseMove,f=t.onMouseLeave,d=t.transitionMode,h=t.component,p=void 0===h?Gh:h,b=ga(),g=Rh(o,b),m=function(e,t,n){void 0===t&&(t="innerRadius");var r=Rd(),i=r.animate,a=r.config,o=Ph(t,n);return{transition:zn(e,{keys:function(e){return e.id},initial:o.update,from:o.enter,enter:o.update,update:o.update,leave:o.leave,config:a,immediate:!i}),interpolate:Jh}}(r,d,{enter:function(e){return{opacity:0,color:e.color,borderColor:g(e)}},update:function(e){return{opacity:1,color:e.color,borderColor:g(e)}},leave:function(e){return{opacity:0,color:e.color,borderColor:g(e)}}}),v=m.interpolate,y=p;return s.jsx("g",{transform:"translate("+n[0]+","+n[1]+")",children:(0,m.transition)(function(t,n){return e.createElement(y,{key:n.id,datum:n,style:Eh({},t,{borderWidth:a,path:v(t.startAngle,t.endAngle,t.innerRadius,t.outerRadius,i)}),onClick:c,onMouseEnter:u,onMouseMove:l,onMouseLeave:f})})})},ep=function(t){var n=void 0===t?{}:t,r=n.cornerRadius,i=void 0===r?0:r,a=n.padAngle,o=void 0===a?0:a;return e.useMemo(function(){return function(){var e=ms,t=vs,n=Go(0),r=null,i=ys,a=_s,o=xs,s=null,c=gs(u);function u(){var u,l,f=+e.apply(this,arguments),d=+t.apply(this,arguments),h=i.apply(this,arguments)-ss,p=a.apply(this,arguments)-ss,b=Jo(p-h),g=p>h;if(s||(s=u=c()),d<f&&(l=d,d=f,f=l),d>as)if(b>cs-as)s.moveTo(d*es(h),d*rs(h)),s.arc(0,0,d,h,p,!g),f>as&&(s.moveTo(f*es(p),f*rs(p)),s.arc(0,0,f,p,h,g));else{var m,v,y=h,_=p,x=h,w=p,k=b,A=b,M=o.apply(this,arguments)/2,O=M>as&&(r?+r.apply(this,arguments):is(f*f+d*d)),C=ns(Jo(d-f)/2,+n.apply(this,arguments)),S=C,T=C;if(O>as){var j=us(O/f*rs(M)),R=us(O/d*rs(M));(k-=2*j)>as?(x+=j*=g?1:-1,w-=j):(k=0,x=w=(h+p)/2),(A-=2*R)>as?(y+=R*=g?1:-1,_-=R):(A=0,y=_=(h+p)/2)}var E=d*es(y),L=d*rs(y),$=f*es(w),F=f*rs(w);if(C>as){var z,I=d*es(_),P=d*rs(_),D=f*es(x),N=f*rs(x);if(b<os)if(z=function(e,t,n,r,i,a,o,s){var c=n-e,u=r-t,l=o-i,f=s-a,d=f*c-l*u;if(!(d*d<as))return[e+(d=(l*(t-a)-f*(e-i))/d)*c,t+d*u]}(E,L,D,N,I,P,$,F)){var W=E-z[0],V=L-z[1],U=I-z[0],q=P-z[1],H=1/rs(function(e){return e>1?0:e<-1?os:Math.acos(e)}((W*U+V*q)/(is(W*W+V*V)*is(U*U+q*q)))/2),B=is(z[0]*z[0]+z[1]*z[1]);S=ns(C,(f-B)/(H-1)),T=ns(C,(d-B)/(H+1))}else S=T=0}A>as?T>as?(m=ws(D,N,E,L,d,T,g),v=ws(I,P,$,F,d,T,g),s.moveTo(m.cx+m.x01,m.cy+m.y01),T<C?s.arc(m.cx,m.cy,T,Ko(m.y01,m.x01),Ko(v.y01,v.x01),!g):(s.arc(m.cx,m.cy,T,Ko(m.y01,m.x01),Ko(m.y11,m.x11),!g),s.arc(0,0,d,Ko(m.cy+m.y11,m.cx+m.x11),Ko(v.cy+v.y11,v.cx+v.x11),!g),s.arc(v.cx,v.cy,T,Ko(v.y11,v.x11),Ko(v.y01,v.x01),!g))):(s.moveTo(E,L),s.arc(0,0,d,y,_,!g)):s.moveTo(E,L),f>as&&k>as?S>as?(m=ws($,F,I,P,f,-S,g),v=ws(E,L,D,N,f,-S,g),s.lineTo(m.cx+m.x01,m.cy+m.y01),S<C?s.arc(m.cx,m.cy,S,Ko(m.y01,m.x01),Ko(v.y01,v.x01),!g):(s.arc(m.cx,m.cy,S,Ko(m.y01,m.x01),Ko(m.y11,m.x11),!g),s.arc(0,0,f,Ko(m.cy+m.y11,m.cx+m.x11),Ko(v.cy+v.y11,v.cx+v.x11),g),s.arc(v.cx,v.cy,S,Ko(v.y11,v.x11),Ko(v.y01,v.x01),!g))):s.arc(0,0,f,w,x,g):s.lineTo($,F)}else s.moveTo(0,0);if(s.closePath(),u)return s=null,u+""||null}return u.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-os/2;return[es(r)*n,rs(r)*n]},u.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Go(+t),u):e},u.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Go(+e),u):t},u.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:Go(+e),u):n},u.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Go(+e),u):r},u.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:Go(+e),u):i},u.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:Go(+e),u):a},u.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:Go(+e),u):o},u.context=function(e){return arguments.length?(s=null==e?null:e,u):s},u}().innerRadius(function(e){return e.innerRadius}).outerRadius(function(e){return e.outerRadius}).cornerRadius(i).padAngle(o)},[i,o])};function tp(){return tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tp.apply(null,arguments)}var np="left-to-right",rp={top:0,right:0,bottom:0,left:0},ip=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,a=e.itemCount,o=e.itemWidth,s=e.itemHeight;if("number"!=typeof i&&("object"!=typeof(t=i)||Array.isArray(t)||null===t))throw new Error("Invalid property padding, must be one of: number, object");var c="number"==typeof i?{top:i,right:i,bottom:i,left:i}:tp({},rp,i),u=c.left+c.right,l=c.top+c.bottom,f=o+u,d=s+l,h=(a-1)*r;return"row"===n?f=o*a+h+u:"column"===n&&(d=s*a+h+l),{width:f,height:d,padding:c}},ap=function(e){var t=e.containerWidth,n=e.containerHeight,r=e.width,i=e.height,a=e.translateX,o=e.translateY;switch(e.anchor){case"top":a+=(t-r)/2;break;case"top-right":a+=t-r;break;case"right":a+=t-r,o+=(n-i)/2;break;case"bottom-right":a+=t-r,o+=n-i;break;case"bottom":a+=(t-r)/2,o+=n-i;break;case"bottom-left":o+=n-i;break;case"left":o+=(n-i)/2;break;case"center":a+=(t-r)/2,o+=(n-i)/2}return{x:a,y:o}},op=function(e){var t,n,r,i,a,o,s=e.justify,c=e.symbolSize,u=e.symbolSpacing,l=e.width,f=e.height;switch(e.direction){case"left-to-right":t=0,n=(f-c)/2,i=f/2,o="central",s?(r=l,a="end"):(r=c+u,a="start");break;case"right-to-left":t=l-c,n=(f-c)/2,i=f/2,o="central",s?(r=0,a="start"):(r=l-c-u,a="end");break;case"top-to-bottom":t=(l-c)/2,n=0,r=l/2,a="middle",s?(i=f,o="alphabetic"):(i=c+u,o="text-before-edge");break;case"bottom-to-top":t=(l-c)/2,n=f-c,r=l/2,a="middle",s?(i=0,o="text-before-edge"):(i=f-c-u,o="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:a,labelAlignment:o}},sp={circle:function(e){var t=e.size,n=e.opacity,r=e.borderWidth,i=e.borderColor;return s.jsx("circle",{r:t/2,cx:e.x+t/2,cy:e.y+t/2,fill:e.fill,opacity:void 0===n?1:n,strokeWidth:void 0===r?0:r,stroke:void 0===i?"transparent":i,style:{pointerEvents:"none"}})},diamond:function(e){var t=e.size,n=e.opacity,r=e.borderWidth,i=e.borderColor;return s.jsx("g",{transform:"translate("+e.x+","+e.y+")",children:s.jsx("path",{d:"\n M"+t/2+" 0\n L"+.8*t+" "+t/2+"\n L"+t/2+" "+t+"\n L"+.2*t+" "+t/2+"\n L"+t/2+" 0\n ",fill:e.fill,opacity:void 0===n?1:n,strokeWidth:void 0===r?0:r,stroke:void 0===i?"transparent":i,style:{pointerEvents:"none"}})})},square:function(e){var t=e.size,n=e.opacity,r=e.borderWidth,i=e.borderColor;return s.jsx("rect",{x:e.x,y:e.y,fill:e.fill,opacity:void 0===n?1:n,strokeWidth:void 0===r?0:r,stroke:void 0===i?"transparent":i,width:t,height:t,style:{pointerEvents:"none"}})},triangle:function(e){var t=e.size,n=e.opacity,r=e.borderWidth,i=e.borderColor;return s.jsx("g",{transform:"translate("+e.x+","+e.y+")",children:s.jsx("path",{d:"\n M"+t/2+" 0\n L"+t+" "+t+"\n L0 "+t+"\n L"+t/2+" 0\n ",fill:e.fill,opacity:void 0===n?1:n,strokeWidth:void 0===r?0:r,stroke:void 0===i?"transparent":i,style:{pointerEvents:"none"}})})}},cp=function(t){var n,r,i,a,o,c,u,l,f,d,p,b=t.x,g=t.y,m=t.width,v=t.height,y=t.data,_=t.direction,x=void 0===_?np:_,w=t.justify,k=void 0!==w&&w,A=t.textColor,M=t.background,O=void 0===M?"transparent":M,C=t.opacity,S=void 0===C?1:C,T=t.symbolShape,j=void 0===T?"square":T,R=t.symbolSize,E=void 0===R?16:R,L=t.symbolSpacing,$=void 0===L?8:L,F=t.symbolBorderWidth,z=void 0===F?0:F,I=t.symbolBorderColor,P=void 0===I?"transparent":I,D=t.onClick,N=t.onMouseEnter,W=t.onMouseLeave,V=t.toggleSerie,U=t.effects,q=e.useState({}),H=q[0],B=q[1],Y=ga(),Z=e.useCallback(function(e){if(U){var t=U.filter(function(e){return"hover"===e.on}).reduce(function(e,t){return tp({},e,t.style)},{});B(t)}null==N||N(y,e)},[N,y,U]),X=e.useCallback(function(e){if(U){var t=U.filter(function(e){return"hover"!==e.on}).reduce(function(e,t){return tp({},e,t.style)},{});B(t)}null==W||W(y,e)},[W,y,U]),Q=op({direction:x,justify:k,symbolSize:null!=(n=H.symbolSize)?n:E,symbolSpacing:$,width:m,height:v}),G=Q.symbolX,J=Q.symbolY,K=Q.labelX,ee=Q.labelY,te=Q.labelAnchor,ne=Q.labelAlignment,re=[D,N,W,V].some(function(e){return void 0!==e}),ie="function"==typeof j?j:sp[j];return s.jsxs("g",{transform:"translate("+b+","+g+")",style:{opacity:null!=(r=H.itemOpacity)?r:S},children:[s.jsx("rect",{width:m,height:v,fill:null!=(i=H.itemBackground)?i:O,style:{cursor:re?"pointer":"auto"},onClick:function(e){null==D||D(y,e),null==V||V(y.id)},onMouseEnter:Z,onMouseLeave:X}),h.createElement(ie,tp({id:y.id,x:G,y:J,size:null!=(a=H.symbolSize)?a:E,fill:null!=(o=null!=(c=y.fill)?c:y.color)?o:"black",borderWidth:null!=(u=H.symbolBorderWidth)?u:z,borderColor:null!=(l=H.symbolBorderColor)?l:P},y.hidden?Y.legends.hidden.symbol:void 0)),s.jsx(vh,{textAnchor:te,style:tp({},Y.legends.text,{fill:null!=(f=null!=(d=null!=(p=H.itemTextColor)?p:A)?d:Y.legends.text.fill)?f:"black",dominantBaseline:ne,pointerEvents:"none",userSelect:"none"},y.hidden?Y.legends.hidden.text:void 0),x:K,y:ee,children:y.label})]})},up=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,a=e.padding,o=e.justify,c=e.effects,u=e.itemWidth,l=e.itemHeight,f=e.itemDirection,d=void 0===f?np:f,h=e.itemsSpacing,p=void 0===h?0:h,b=e.itemTextColor,g=e.itemBackground,m=void 0===g?"transparent":g,v=e.itemOpacity,y=void 0===v?1:v,_=e.symbolShape,x=e.symbolSize,w=e.symbolSpacing,k=e.symbolBorderWidth,A=e.symbolBorderColor,M=e.onClick,O=e.onMouseEnter,C=e.onMouseLeave,S=e.toggleSerie,T=ip({itemCount:t.length,itemWidth:u,itemHeight:l,itemsSpacing:p,direction:i,padding:void 0===a?0:a}).padding,j="row"===i?u+p:0,R="column"===i?l+p:0;return s.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(e,t){return s.jsx(cp,{data:e,x:t*j+T.left,y:t*R+T.top,width:u,height:l,direction:d,justify:o,effects:c,textColor:b,background:m,opacity:y,symbolShape:_,symbolSize:x,symbolSpacing:w,symbolBorderWidth:k,symbolBorderColor:A,onClick:M,onMouseEnter:O,onMouseLeave:C,toggleSerie:S},t)})})},lp=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,a=void 0===i?0:i,o=e.translateY,c=void 0===o?0:o,u=e.anchor,l=e.direction,f=e.padding,d=void 0===f?0:f,h=e.justify,p=e.itemsSpacing,b=void 0===p?0:p,g=e.itemWidth,m=e.itemHeight,v=e.itemDirection,y=e.itemTextColor,_=e.itemBackground,x=e.itemOpacity,w=e.symbolShape,k=e.symbolSize,A=e.symbolSpacing,M=e.symbolBorderWidth,O=e.symbolBorderColor,C=e.onClick,S=e.onMouseEnter,T=e.onMouseLeave,j=e.toggleSerie,R=e.effects,E=ip({itemCount:t.length,itemsSpacing:b,itemWidth:g,itemHeight:m,direction:l,padding:d}),L=ap({anchor:u,translateX:a,translateY:c,containerWidth:n,containerHeight:r,width:E.width,height:E.height});return s.jsx(up,{data:t,x:L.x,y:L.y,direction:l,padding:d,justify:h,effects:R,itemsSpacing:b,itemWidth:g,itemHeight:m,itemDirection:v,itemTextColor:y,itemBackground:_,itemOpacity:x,symbolShape:w,symbolSize:k,symbolSpacing:A,symbolBorderWidth:M,symbolBorderColor:O,onClick:C,onMouseEnter:S,onMouseLeave:T,toggleSerie:"boolean"==typeof j?void 0:j})},fp={start:"left",middle:"center",end:"right"},dp=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,a=t.translateX,o=void 0===a?0:a,s=t.translateY,c=void 0===s?0:s,u=t.anchor,l=t.direction,f=t.padding,d=t.justify,h=void 0!==d&&d,p=t.itemsSpacing,b=void 0===p?0:p,g=t.itemWidth,m=t.itemHeight,v=t.itemDirection,y=void 0===v?"left-to-right":v,_=t.itemTextColor,x=t.symbolSize,w=void 0===x?16:x,k=t.symbolSpacing,A=void 0===k?8:k,M=t.theme,O=ip({itemCount:n.length,itemWidth:g,itemHeight:m,itemsSpacing:b,direction:l,padding:void 0===f?0:f}),C=O.padding,S=ap({anchor:u,translateX:o,translateY:c,containerWidth:r,containerHeight:i,width:O.width,height:O.height}),T=S.x,j=S.y,R="row"===l?g+b:0,E="column"===l?m+b:0;e.save(),e.translate(T,j),dh(e,M.legends.text),n.forEach(function(t,n){var r,i=n*R+C.left,a=n*E+C.top,o=op({direction:y,justify:h,symbolSize:w,symbolSpacing:A,width:g,height:m}),s=o.symbolX,c=o.symbolY,u=o.labelX,l=o.labelY,f=o.labelAnchor,d=o.labelAlignment;e.fillStyle=null!=(r=t.color)?r:"black",e.fillRect(i+s,a+c,w,w),e.textAlign=fp[f],"central"===d&&(e.textBaseline="middle"),hh(e,tp({},M.legends.text,{fill:null!=_?_:M.legends.text.fill}),String(t.label),i+u,a+l)}),e.restore()};function hp(){return hp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hp.apply(null,arguments)}function pp(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var bp,gp=function(e){var t=e.width,n=e.height,r=e.data,i=e.toggleSerie;return s.jsx(s.Fragment,{children:e.legends.map(function(e,a){var o;return s.jsx(lp,hp({},e,{containerWidth:t,containerHeight:n,data:null!=(o=e.data)?o:r,toggleSerie:e.toggleSerie?i:void 0}),a)})})},mp={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcs","arcLinkLabels","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsSkipRadius:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return s.jsx(ka,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:"undefined"!=typeof window&&null!=(bp=window.devicePixelRatio)?bp:1},vp=["points"],yp=function(t){var n=t.data,r=t.id,i=t.value,a=void 0===i?mp.value:i,o=t.valueFormat,s=t.colors,c=void 0===s?mp.colors:s,u=ch(void 0===r?mp.id:r),l=ch(a),f=sh(o),d=function(t){return e.useMemo(function(){return function(e){if("function"==typeof e)return e;var t=function(e){return aa(e,"id")};if(Array.isArray(e)){var n=hc(e),r=function(e){return n(t(e))};return r.scale=n,r}if(bi(e)){if(function(e){return void 0!==e.datum}(e))return function(t){return aa(t,e.datum)};if(function(e){return void 0!==e.scheme}(e)){if(function(e){return wh.includes(e)}(e.scheme)){var i=hc(Th[e.scheme]),a=function(e){return i(t(e))};return a.scale=i,a}if(function(e){return Ah.includes(e)}(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var o=hc(Th[e.scheme][e.size||11]),s=function(e){return o(t(e))};return s.scale=o,s}if(function(e){return Ch.includes(e)}(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var c=hc(Th[e.scheme][e.size||9]),u=function(e){return c(t(e))};return u.scale=c,u}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}}(t)},[t,"id"])}(c);return e.useMemo(function(){return n.map(function(e){var t,n=u(e),r=l(e),i={id:n,label:null!=(t=e.label)?t:n,hidden:!1,value:r,formattedValue:f(r),data:e};return hp({},i,{color:d(i)})})},[n,u,l,f,d])},_p=function(t){var n=t.data,r=t.width,i=t.height,a=t.innerRadius,o=void 0===a?mp.innerRadius:a,s=t.startAngle,c=void 0===s?mp.startAngle:s,u=t.endAngle,l=void 0===u?mp.endAngle:u,f=t.padAngle,d=void 0===f?mp.padAngle:f,h=t.sortByValue,p=void 0===h?mp.sortByValue:h,b=t.cornerRadius,g=void 0===b?mp.cornerRadius:b,m=t.fit,v=void 0===m?mp.fit:m,y=t.activeInnerRadiusOffset,_=void 0===y?mp.activeInnerRadiusOffset:y,x=t.activeOuterRadiusOffset,w=void 0===x?mp.activeOuterRadiusOffset:x,k=t.forwardLegendData,A=function(t){var n=t.activeId,r=t.onActiveIdChange,i=t.defaultActiveId,a=void 0!==n,o=e.useState(a||void 0===i?null:i),s=o[1];return{activeId:a?n:o[0],setActiveId:e.useCallback(function(e){r&&r(e),a||s(e)},[a,r,s])}}({activeId:t.activeId,onActiveIdChange:t.onActiveIdChange,defaultActiveId:t.defaultActiveId}),M=A.activeId,O=A.setActiveId,C=e.useState([]),S=C[0],T=C[1],j=e.useMemo(function(){var e,t=Math.min(r,i)/2,n=t*Math.min(o,1),a=r/2,s=i/2;if(v){var u=function(e,t,n,r,i,a){void 0===a&&(a=!0);var o=[],s=Bd(qd(r),n);o.push([s.x,s.y]);var c=Bd(qd(i),n);o.push([c.x,c.y]);for(var u=Math.round(Math.min(r,i));u<=Math.round(Math.max(r,i));u++)if(u%90==0){var l=Bd(qd(u),n);o.push([l.x,l.y])}o=o.map(function(n){return[e+n[0],t+n[1]]}),a&&o.push([e,t]);var f=o.map(function(e){return e[0]}),d=o.map(function(e){return e[1]}),h=Math.min.apply(Math,f),p=Math.max.apply(Math,f),b=Math.min.apply(Math,d);return{points:o,x:h,y:b,width:p-h,height:Math.max.apply(Math,d)-b}}(a,s,t,c-90,l-90),f=u.points,d=pp(u,vp),h=Math.min(r/d.width,i/d.height),p={width:d.width*h,height:d.height*h};p.x=(r-p.width)/2,p.y=(i-p.height)/2,a=(a-d.x)/d.width*d.width*h+p.x,s=(s-d.y)/d.height*d.height*h+p.y,e={box:d,ratio:h,points:f},t*=h,n*=h}return{centerX:a,centerY:s,radius:t,innerRadius:n,debug:e}},[r,i,o,c,l,v]),R=function(t){var n=t.data,r=t.startAngle,i=t.endAngle,a=t.innerRadius,o=t.outerRadius,s=t.padAngle,c=t.sortByValue,u=t.activeId,l=t.activeInnerRadiusOffset,f=t.activeOuterRadiusOffset,d=t.hiddenIds,h=t.forwardLegendData,p=e.useMemo(function(){var e=function(){var e=Ts,t=Ss,n=null,r=Go(0),i=Go(cs),a=Go(0);function o(o){var s,c,u,l,f,d=(o=ks(o)).length,h=0,p=new Array(d),b=new Array(d),g=+r.apply(this,arguments),m=Math.min(cs,Math.max(-cs,i.apply(this,arguments)-g)),v=Math.min(Math.abs(m)/d,a.apply(this,arguments)),y=v*(m<0?-1:1);for(s=0;s<d;++s)(f=b[p[s]=s]=+e(o[s],s,o))>0&&(h+=f);for(null!=t?p.sort(function(e,n){return t(b[e],b[n])}):null!=n&&p.sort(function(e,t){return n(o[e],o[t])}),s=0,u=h?(m-d*y)/h:0;s<d;++s,g=l)b[c=p[s]]={data:o[c],index:s,value:f=b[c],startAngle:g,endAngle:l=g+(f>0?f*u:0)+y,padAngle:v};return b}return o.value=function(t){return arguments.length?(e="function"==typeof t?t:Go(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Go(+e),o):r},o.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:Go(+e),o):i},o.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:Go(+e),o):a},o}().value(function(e){return e.value}).startAngle(qd(r)).endAngle(qd(i)).padAngle(qd(s));return c||e.sortValues(null),e},[r,i,s,c]),b=e.useMemo(function(){var e=n.filter(function(e){return!d.includes(e.id)});return{dataWithArc:p(e).map(function(e){var t=Math.abs(e.endAngle-e.startAngle);return hp({},e.data,{arc:{index:e.index,startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:u===e.data.id?a-l:a,outerRadius:u===e.data.id?o+f:o,thickness:o-a,padAngle:e.padAngle,angle:t,angleDeg:Hd(t)}})}),legendData:n.map(function(e){return{id:e.id,label:e.label,color:e.color,hidden:d.includes(e.id),data:e}})}},[p,n,d,u,a,l,o,f]),g=b.legendData,m=e.useRef(h);return e.useEffect(function(){"function"==typeof m.current&&m.current(g)},[m,g]),b}({data:n,startAngle:c,endAngle:l,innerRadius:j.innerRadius,outerRadius:j.radius,padAngle:d,sortByValue:p,activeId:M,activeInnerRadiusOffset:_,activeOuterRadiusOffset:w,hiddenIds:S,forwardLegendData:k}),E=e.useCallback(function(e){T(function(t){return t.indexOf(e)>-1?t.filter(function(t){return t!==e}):[].concat(t,[e])})},[]);return hp({arcGenerator:ep({cornerRadius:g,padAngle:qd(d)}),activeId:M,setActiveId:O,toggleSerie:E},R,j)},xp=function(t){var n=t.center,r=t.data,i=t.arcGenerator,a=t.borderWidth,o=t.borderColor,c=t.isInteractive,u=t.onClick,l=t.onMouseEnter,f=t.onMouseMove,d=t.onMouseLeave,h=t.setActiveId,p=t.tooltip,b=t.transitionMode,g=Ra(),m=g.showTooltipFromEvent,v=g.hideTooltip,y=e.useMemo(function(){if(c)return function(e,t){null==u||u(e,t)}},[c,u]),_=e.useMemo(function(){if(c)return function(t,n){m(e.createElement(p,{datum:t}),n),h(t.id),null==l||l(t,n)}},[c,m,h,l,p]),x=e.useMemo(function(){if(c)return function(t,n){m(e.createElement(p,{datum:t}),n),null==f||f(t,n)}},[c,m,f,p]),w=e.useMemo(function(){if(c)return function(e,t){v(),h(null),null==d||d(e,t)}},[c,v,h,d]);return s.jsx(Kh,{center:n,data:r,arcGenerator:i,borderWidth:a,borderColor:o,transitionMode:b,onClick:y,onMouseEnter:_,onMouseMove:x,onMouseLeave:w})},wp=["isInteractive","animate","motionConfig","theme","renderWrapper"],kp=function(t){var n=t.data,r=t.id,i=void 0===r?mp.id:r,a=t.value,o=void 0===a?mp.value:a,c=t.valueFormat,u=t.sortByValue,l=void 0===u?mp.sortByValue:u,f=t.layers,d=void 0===f?mp.layers:f,h=t.startAngle,p=void 0===h?mp.startAngle:h,b=t.endAngle,g=void 0===b?mp.endAngle:b,m=t.padAngle,v=void 0===m?mp.padAngle:m,y=t.fit,_=void 0===y?mp.fit:y,x=t.innerRadius,w=void 0===x?mp.innerRadius:x,k=t.cornerRadius,A=void 0===k?mp.cornerRadius:k,M=t.activeInnerRadiusOffset,O=void 0===M?mp.activeInnerRadiusOffset:M,C=t.activeOuterRadiusOffset,S=void 0===C?mp.activeOuterRadiusOffset:C,T=t.colors,j=void 0===T?mp.colors:T,R=t.borderWidth,E=void 0===R?mp.borderWidth:R,L=t.borderColor,$=void 0===L?mp.borderColor:L,F=t.enableArcLabels,z=void 0===F?mp.enableArcLabels:F,I=t.arcLabel,P=void 0===I?mp.arcLabel:I,D=t.arcLabelsSkipAngle,N=void 0===D?mp.arcLabelsSkipAngle:D,W=t.arcLabelsSkipRadius,V=void 0===W?mp.arcLabelsSkipRadius:W,U=t.arcLabelsTextColor,q=void 0===U?mp.arcLabelsTextColor:U,H=t.arcLabelsRadiusOffset,B=void 0===H?mp.arcLabelsRadiusOffset:H,Y=t.arcLabelsComponent,Z=t.enableArcLinkLabels,X=void 0===Z?mp.enableArcLinkLabels:Z,Q=t.arcLinkLabel,G=void 0===Q?mp.arcLinkLabel:Q,J=t.arcLinkLabelsSkipAngle,K=void 0===J?mp.arcLinkLabelsSkipAngle:J,ee=t.arcLinkLabelsOffset,te=void 0===ee?mp.arcLinkLabelsOffset:ee,ne=t.arcLinkLabelsDiagonalLength,re=void 0===ne?mp.arcLinkLabelsDiagonalLength:ne,ie=t.arcLinkLabelsStraightLength,ae=void 0===ie?mp.arcLinkLabelsStraightLength:ie,oe=t.arcLinkLabelsThickness,se=void 0===oe?mp.arcLinkLabelsThickness:oe,ce=t.arcLinkLabelsTextOffset,ue=void 0===ce?mp.arcLinkLabelsTextOffset:ce,le=t.arcLinkLabelsTextColor,fe=void 0===le?mp.arcLinkLabelsTextColor:le,de=t.arcLinkLabelsColor,he=void 0===de?mp.arcLinkLabelsColor:de,pe=t.arcLinkLabelComponent,be=t.defs,ge=void 0===be?mp.defs:be,me=t.fill,ve=void 0===me?mp.fill:me,ye=t.isInteractive,_e=void 0===ye?mp.isInteractive:ye,xe=t.onClick,we=t.onMouseEnter,ke=t.onMouseMove,Ae=t.onMouseLeave,Me=t.tooltip,Oe=void 0===Me?mp.tooltip:Me,Ce=t.activeId,Se=t.onActiveIdChange,Te=t.defaultActiveId,je=t.transitionMode,Re=void 0===je?mp.transitionMode:je,Ee=t.legends,Le=void 0===Ee?mp.legends:Ee,$e=t.forwardLegendData,Fe=t.role,ze=void 0===Fe?mp.role:Fe,Ie=t.forwardedRef,Pe=ah(t.width,t.height,t.margin),De=Pe.outerWidth,Ne=Pe.outerHeight,We=Pe.margin,Ve=Pe.innerWidth,Ue=Pe.innerHeight,qe=yp({data:n,id:i,value:o,valueFormat:c,colors:j}),He=_p({data:qe,width:Ve,height:Ue,fit:_,innerRadius:w,startAngle:p,endAngle:g,padAngle:v,sortByValue:l,cornerRadius:A,activeInnerRadiusOffset:O,activeOuterRadiusOffset:S,activeId:Ce,onActiveIdChange:Se,defaultActiveId:Te,forwardLegendData:$e}),Be=He.dataWithArc,Ye=He.legendData,Ze=He.arcGenerator,Xe=He.centerX,Qe=He.centerY,Ge=He.radius,Je=He.innerRadius,Ke=He.setActiveId,et=He.toggleSerie,tt=function(e,t,n){var r={},i=r.dataKey,a=r.colorKey,o=void 0===a?"color":a,s=r.targetKey,c=void 0===s?"fill":s,u=[],l={};return e.length&&t.length&&(u=[].concat(e),t.forEach(function(t){for(var r,a=function(){var n=r.value,a=n.id;if(function(e,t,n){if("*"===e)return!0;if(kr(e))return e(t);if(bi(e)){var r=n?aa(t,n):t;return i=Yf(r,Object.keys(e)),Sd(i,e)}var i;return!1}(n.match,t,i)){var s=e.find(function(e){return e.id===a});if(s)if(lh.includes(s.type))if("inherit"===s.background||"inherit"===s.color){var f=aa(t,o),d=s.background,h=s.color,p=a;"inherit"===s.background&&(p=p+".bg."+f,d=f),"inherit"===s.color&&(p=p+".fg."+f,h=f),sa(t,c,"url(#"+p+")"),l[p]||(u.push(Dd({},s,{id:p,background:d,color:h})),l[p]=1)}else sa(t,c,"url(#"+a+")");else if(uh.includes(s.type))if(s.colors.map(function(e){return e.color}).includes("inherit")){var b=aa(t,o),g=a,m=Dd({},s,{colors:s.colors.map(function(e,t){return"inherit"!==e.color?e:(g=g+"."+t+"."+b,Dd({},e,{color:"inherit"===e.color?b:e.color}))})});m.id=g,sa(t,c,"url(#"+g+")"),l[g]||(u.push(m),l[g]=1)}else sa(t,c,"url(#"+a+")");return 1}},s=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,t){if(e){if("string"==typeof e)return Pd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pd(e,t):void 0}}(e))){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(r=s()).done&&!a(););})),u}(ge,Be,ve),nt={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};d.includes("arcs")&&(nt.arcs=s.jsx(xp,{center:[Xe,Qe],data:Be,arcGenerator:Ze,borderWidth:E,borderColor:$,isInteractive:_e,onClick:xe,onMouseEnter:we,onMouseMove:ke,onMouseLeave:Ae,setActiveId:Ke,tooltip:Oe,transitionMode:Re},"arcs")),X&&d.includes("arcLinkLabels")&&(nt.arcLinkLabels=s.jsx(Xh,{center:[Xe,Qe],data:Be,label:G,skipAngle:K,offset:te,diagonalLength:re,straightLength:ae,strokeWidth:se,textOffset:ue,textColor:fe,linkColor:he,component:pe},"arcLinkLabels")),z&&d.includes("arcLabels")&&(nt.arcLabels=s.jsx(Wh,{center:[Xe,Qe],data:Be,label:P,radiusOffset:B,skipAngle:N,skipRadius:V,textColor:q,transitionMode:Re,component:Y},"arcLabels")),Le.length>0&&d.includes("legends")&&(nt.legends=s.jsx(gp,{width:Ve,height:Ue,data:Ye,legends:Le,toggleSerie:et},"legends"));var rt=function(t){var n=t.dataWithArc,r=t.arcGenerator,i=t.centerX,a=t.centerY,o=t.radius,s=t.innerRadius;return e.useMemo(function(){return{dataWithArc:n,arcGenerator:r,centerX:i,centerY:a,radius:o,innerRadius:s}},[n,r,i,a,o,s])}({dataWithArc:Be,arcGenerator:Ze,centerX:Xe,centerY:Qe,radius:Ge,innerRadius:Je});return s.jsx(eh,{width:De,height:Ne,margin:We,defs:tt,role:ze,ref:Ie,children:d.map(function(t,n){return void 0!==nt[t]?nt[t]:"function"==typeof t?s.jsx(e.Fragment,{children:e.createElement(t,rt)},n):null})})},Ap=e.forwardRef(function(e,t){var n=e.isInteractive,r=void 0===n?mp.isInteractive:n,i=e.animate,a=void 0===i?mp.animate:i,o=e.motionConfig,c=void 0===o?mp.motionConfig:o,u=e.theme,l=e.renderWrapper,f=pp(e,wp);return s.jsx($d,{animate:a,isInteractive:r,motionConfig:c,renderWrapper:l,theme:u,children:s.jsx(kp,hp({isInteractive:r},f,{forwardedRef:t}))})}),Mp=["defaultWidth","defaultHeight","onResize","debounceResize"],Op=e.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=pp(e,Mp);return s.jsx(Id,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(e){return s.jsx(Ap,hp({width:e.width,height:e.height},o,{ref:t}))}})}),Cp=["isInteractive","theme","renderWrapper"],Sp=function(t){var n=t.data,r=t.id,i=void 0===r?mp.id:r,a=t.value,o=void 0===a?mp.value:a,c=t.valueFormat,u=t.sortByValue,l=void 0===u?mp.sortByValue:u,f=t.startAngle,d=void 0===f?mp.startAngle:f,h=t.endAngle,p=void 0===h?mp.endAngle:h,b=t.padAngle,g=void 0===b?mp.padAngle:b,m=t.fit,v=void 0===m?mp.fit:m,y=t.innerRadius,_=void 0===y?mp.innerRadius:y,x=t.cornerRadius,w=void 0===x?mp.cornerRadius:x,k=t.activeInnerRadiusOffset,A=void 0===k?mp.activeInnerRadiusOffset:k,M=t.activeOuterRadiusOffset,O=void 0===M?mp.activeOuterRadiusOffset:M,C=t.width,S=t.height,T=t.margin,j=t.pixelRatio,R=void 0===j?mp.pixelRatio:j,E=t.colors,L=void 0===E?mp.colors:E,$=t.borderWidth,F=void 0===$?mp.borderWidth:$,z=t.borderColor,I=void 0===z?mp.borderColor:z,P=t.enableArcLabels,D=void 0===P?mp.enableArcLabels:P,N=t.arcLabel,W=void 0===N?mp.arcLabel:N,V=t.arcLabelsSkipAngle,U=void 0===V?mp.arcLabelsSkipAngle:V,q=t.arcLabelsTextColor,H=void 0===q?mp.arcLabelsTextColor:q,B=t.arcLabelsRadiusOffset,Y=void 0===B?mp.arcLabelsRadiusOffset:B,Z=t.enableArcLinkLabels,X=void 0===Z?mp.enableArcLinkLabels:Z,Q=t.arcLinkLabel,G=void 0===Q?mp.arcLinkLabel:Q,J=t.arcLinkLabelsSkipAngle,K=void 0===J?mp.arcLinkLabelsSkipAngle:J,ee=t.arcLinkLabelsOffset,te=void 0===ee?mp.arcLinkLabelsOffset:ee,ne=t.arcLinkLabelsDiagonalLength,re=void 0===ne?mp.arcLinkLabelsDiagonalLength:ne,ie=t.arcLinkLabelsStraightLength,ae=void 0===ie?mp.arcLinkLabelsStraightLength:ie,oe=t.arcLinkLabelsThickness,se=void 0===oe?mp.arcLinkLabelsThickness:oe,ce=t.arcLinkLabelsTextOffset,ue=void 0===ce?mp.arcLinkLabelsTextOffset:ce,le=t.arcLinkLabelsTextColor,fe=void 0===le?mp.arcLinkLabelsTextColor:le,de=t.arcLinkLabelsColor,he=void 0===de?mp.arcLinkLabelsColor:de,pe=t.isInteractive,be=void 0===pe?mp.isInteractive:pe,ge=t.onClick,me=t.onMouseMove,ve=t.tooltip,ye=void 0===ve?mp.tooltip:ve,_e=t.activeId,xe=t.onActiveIdChange,we=t.defaultActiveId,ke=t.legends,Ae=void 0===ke?mp.legends:ke,Me=t.forwardLegendData,Oe=t.role,Ce=t.forwardedRef,Se=e.useRef(null),Te=ga(),je=ah(C,S,T),Re=je.margin,Ee=je.innerWidth,Le=je.innerHeight,$e=je.outerWidth,Fe=je.outerHeight,ze=yp({data:n,id:i,value:o,valueFormat:c,colors:L}),Ie=_p({data:ze,width:Ee,height:Le,fit:v,innerRadius:_,startAngle:d,endAngle:p,padAngle:g,sortByValue:l,cornerRadius:w,activeInnerRadiusOffset:A,activeOuterRadiusOffset:O,activeId:_e,onActiveIdChange:xe,defaultActiveId:we,forwardLegendData:Me}),Pe=Ie.dataWithArc,De=Ie.arcGenerator,Ne=Ie.centerX,We=Ie.centerY,Ve=Ie.radius,Ue=Ie.innerRadius,qe=Ie.setActiveId,He=Rh(I,Te),Be=function(t){var n=t.data,r=t.offset,i=t.skipAngle,a=t.textColor,o=ch(t.label),s=ga(),c=Rh(a,s),u=e.useCallback(function(e){return{label:o(e),textColor:c(e)}},[o,c]);return function(t){var n=t.data,r=t.offset,i=void 0===r?.5:r,a=t.skipAngle,o=void 0===a?0:a,s=t.computeExtraProps,c=void 0===s?function(){return{}}:s;return e.useMemo(function(){return zh(n,o).map(function(e){var t=Dh(e.arc,i);return Eh({},c(e),{x:t.x,y:t.y,data:e})})},[n,i,o,c])}({data:n,offset:r,skipAngle:i,computeExtraProps:u})}({data:Pe,label:W,skipAngle:U,offset:Y,textColor:H}),Ye=function(t){var n=t.data,r=t.skipAngle,i=t.offset,a=t.diagonalLength,o=t.straightLength,s=t.textOffset,c=void 0===s?0:s,u=t.linkColor,l=t.textColor,f=ch(t.label),d=ga(),h=Rh(u,d),p=Rh(l,d),b=e.useCallback(function(e){var t,n={x:e.points[2].x,y:e.points[2].y};return"before"===e.side?(n.x-=c,t="end"):(n.x+=c,t="start"),Eh({},n,{label:f(e.data),linkColor:h(e.data),textAnchor:t,textColor:p(e.data)})},[f,h,p,c]);return function(t){var n=t.data,r=t.skipAngle,i=void 0===r?0:r,a=t.offset,o=void 0===a?.5:a,s=t.diagonalLength,c=t.straightLength,u=t.computeExtraProps,l=void 0===u?function(){return{}}:u,f=e.useMemo(function(){return n.filter(function(e){return Math.abs(Hd(e.arc.endAngle-e.arc.startAngle))>=i}).map(function(e){return Eh({},qh(e.arc,o,s,c),{data:e})})},[n,i,o,s,c]);return e.useMemo(function(){return f.map(function(e){return Eh({},l(e),e)})},[f,l])}({data:n,skipAngle:r,offset:i,diagonalLength:a,straightLength:o,computeExtraProps:b})}({data:Pe,skipAngle:K,offset:te,diagonalLength:re,straightLength:ae,label:G,linkColor:he,textOffset:ue,textColor:fe});e.useEffect(function(){if(Se.current){Se.current.width=$e*R,Se.current.height=Fe*R;var e=Se.current.getContext("2d");e.scale(R,R),e.fillStyle=Te.background,e.fillRect(0,0,$e,Fe),e.save(),e.translate(Re.left,Re.top),De.context(e),e.save(),e.translate(Ne,We),Pe.forEach(function(t){e.beginPath(),e.fillStyle=t.color,e.strokeStyle=He(t),e.lineWidth=F,De(t.arc),e.fill(),F>0&&e.stroke()}),!0===X&&Qh(e,Ye,Te,se),!0===D&&Vh(e,Be,Te),e.restore(),Ae.forEach(function(t){dp(e,hp({},t,{data:Pe,containerWidth:Ee,containerHeight:Le,theme:Te}))})}},[Se,Ee,Le,$e,Fe,Re.top,Re.left,R,Ne,We,De,Pe,F,He,D,Be,X,Ye,se,Ae,Te]);var Ze=e.useMemo(function(){return Pe.map(function(e){return hp({id:e.id},e.arc)})},[Pe]),Xe=function(e){if(!Se.current)return null;var t=function(e,t){var n,r="touches"in t?t.touches[0]:t,i=r.clientX,a=r.clientY,o=e.getBoundingClientRect(),s=(n=void 0!==e.getBBox?e.getBBox():{width:e.offsetWidth||0,height:e.offsetHeight||0}).width===o.width?1:n.width/o.width;return[(i-o.left)*s,(a-o.top)*s]}(Se.current,e),n=function(e,t,n,r,i,a,o){if(function(e,t,n,r,i,a){var o=function(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}(i,a,e,t);return o<n&&o>r}(e,t,n,r,a,o)){var s=function(e,t,n,r){var i=Math.atan2(r-t,n-e)-Math.PI/2;return i>0?i:2*Math.PI+i}(a,o,e,t);return i.find(function(e){return s>=e.startAngle&&s<e.endAngle})}}(Re.left+Ne,Re.top+We,Ve,Ue,Ze,t[0],t[1]);return n?Pe.find(function(e){return e.id===n.id}):null},Qe=Ra(),Ge=Qe.showTooltipFromEvent,Je=Qe.hideTooltip,Ke=function(t){var n=Xe(t);n?(null==me||me(n,t),qe(n.id),Ge(e.createElement(ye,{datum:n}),t)):(qe(null),Je())};return s.jsx("canvas",{ref:fh(Se,Ce),width:$e*R,height:Fe*R,style:{width:$e,height:Fe,cursor:be?"auto":"normal"},onMouseEnter:be?Ke:void 0,onMouseMove:be?Ke:void 0,onMouseLeave:be?function(){Je()}:void 0,onClick:be?function(e){if(ge){var t=Xe(e);t&&ge(t,e)}}:void 0,role:Oe})},Tp=e.forwardRef(function(e,t){var n=e.isInteractive,r=void 0===n?mp.isInteractive:n,i=e.theme,a=e.renderWrapper,o=pp(e,Cp);return s.jsx($d,{isInteractive:r,renderWrapper:a,theme:i,children:s.jsx(Sp,hp({isInteractive:r},o,{forwardedRef:t}))})}),jp=["defaultWidth","defaultHeight","onResize","debounceResize"];e.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=pp(e,jp);return s.jsx(Id,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(e){return s.jsx(Tp,hp({width:e.width,height:e.height},o,{ref:t}))}})}),p.default.extend(b.default);var Rp=function(e){var n=e.metrics,r=function(e){var t;return(null==n||null==(t=n.find(function(t){return t.id===e}))?void 0:t.name)||""},i=function(e){return e.toFixed(1).replace(".",",")},a=function(e,n){if(e&&n)switch(n){case t.MetricUnitEnum.Duration:return p.default.duration(parseFloat(e),"seconds").format("m[m] s[s]");case t.MetricUnitEnum.Round:return i(parseFloat(e));case t.MetricUnitEnum.Percent:return i(100*parseFloat(e))+"%";default:return e.toString()}return""};return d.default.createElement(Op,{theme:{legends:{text:{fill:"#FFFFFF"}}},data:(e.metricsValues||[]).map(function(e){var t=e.metricId,n=e.textValue,i=e.unit;return{id:r(t),label:r(t),value:n,unit:i}}),innerRadius:.5,margin:{top:20,right:0,bottom:20,left:220},enableArcLinkLabels:!1,arcLabel:function(e){var t=e.data;return a(t.textValue||"",t.unit)},tooltip:function(e){var t=e.datum,n=t.data;return d.default.createElement(ka,{id:t.id,value:a(n.textValue||"",n.unit),enableChip:!0,color:t.color})},defs:[{id:"lines",type:"patternLines",background:"inherit",color:"rgba(0, 0, 0, 0.01)",rotation:-45,lineWidth:5,spacing:10}],fill:[{match:"*",id:"lines"}],legends:[{anchor:"left",direction:"column",translateX:-180,itemWidth:200,itemHeight:20,symbolShape:"circle"}]})},Ep=function(e){var t=e.data;return d.default.createElement(Rp,{metrics:null==t?void 0:t.metrics,metricsValues:null==t?void 0:t.metricsValues})};function Lp(e){this._maxSize=e,this.clear()}Lp.prototype.clear=function(){this._size=0,this._values=Object.create(null)},Lp.prototype.get=function(e){return this._values[e]},Lp.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var $p=/[^.^\]^[]+|(?=\[\]|\.\.)/g,Fp=/^\d+$/,zp=/^\d/,Ip=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Pp=/^\s*(['"]?)(.*?)(\1)\s*$/,Dp=new Lp(512),Np=new Lp(512),Wp=new Lp(512),Vp={Cache:Lp,split:qp,normalizePath:Up,setter:function(e){var t=Up(e);return Np.get(e)||Np.set(e,function(e,n){for(var r=0,i=t.length,a=e;r<i-1;){var o=t[r];if("__proto__"===o||"constructor"===o||"prototype"===o)return e;a=a[t[r++]]}a[t[r]]=n})},getter:function(e,t){var n=Up(e);return Wp.get(e)||Wp.set(e,function(e){for(var r=0,i=n.length;r<i;){if(null==e&&t)return;e=e[n[r++]]}return e})},join:function(e){return e.reduce(function(e,t){return e+(Hp(t)||Fp.test(t)?"["+t+"]":(e?".":"")+t)},"")},forEach:function(e,t,n){!function(e,t,n){var r,i,a,o,s=e.length;for(i=0;i<s;i++)(r=e[i])&&(Bp(r)&&(r='"'+r+'"'),a=!(o=Hp(r))&&/^\d+$/.test(r),t.call(n,r,o,a,i,e))}(Array.isArray(e)?e:qp(e),t,n)}};function Up(e){return Dp.get(e)||Dp.set(e,qp(e).map(function(e){return e.replace(Pp,"$2")}))}function qp(e){return e.match($p)||[""]}function Hp(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function Bp(e){return!Hp(e)&&(function(e){return e.match(zp)&&!e.match(Fp)}(e)||function(e){return Ip.test(e)}(e))}const Yp=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,Zp=e=>e.match(Yp)||[];var Xp=e=>Zp(e).reduce((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`,""),Qp=e=>(e=>Zp(e).join("_").toLowerCase())(e),Gp=function(e){return Jp(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}(e),e)};function Jp(e,t){var n=e.length,r=new Array(n),i={},a=n,o=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach(function(e){if(!s.has(e[0])||!s.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});a--;)i[a]||c(e[a],a,new Set);return r;function c(e,t,a){if(a.has(e)){var u;try{u=", node was:"+JSON.stringify(e)}catch(e){u=""}throw new Error("Cyclic dependency"+u)}if(!s.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var l=o.get(e)||new Set;if(t=(l=Array.from(l)).length){a.add(e);do{var f=l[--t];c(f,s.get(f),a)}while(t);a.delete(e)}r[--n]=e}}}Gp.array=Jp;const Kp=Object.prototype.toString,eb=Error.prototype.toString,tb=RegExp.prototype.toString,nb="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",rb=/^Symbol\((.*)\)(.*)$/;function ib(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return nb.call(e).replace(rb,"Symbol($1)");const r=Kp.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+eb.call(e)+"]":"RegExp"===r?tb.call(e):null}function ab(e,t){let n=ib(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let r=ib(this[e],t);return null!==r?r:n},2)}function ob(e){return null==e?[]:[].concat(e)}let sb,cb,ub,lb=/\$\{\s*(\w+)\s*\}/g;sb=Symbol.toStringTag;class fb{constructor(e,t,n,r){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[sb]="Error",this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],ob(e).forEach(e=>{db.isError(e)?(this.errors.push(...e.errors),this.inner.push(...e.inner.length?e.inner:[e])):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}cb=Symbol.hasInstance,ub=Symbol.toStringTag;class db extends Error{static formatError(e,t){return t=Object.assign({},t,{path:t.label||t.path||"this",originalPath:t.path}),"string"==typeof e?e.replace(lb,(e,n)=>ab(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r,i){const a=new fb(e,t,n,r);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[ub]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,db)}static[cb](e){return fb[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let hb={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=null!=r&&r!==n?` (cast from the value \`${ab(r,!0)}\`).`:".";return"mixed"!==t?`${e} must be a \`${t}\` type, but the final value was: \`${ab(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${ab(n,!0)}\``+i}},pb={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},bb={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},gb={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},mb={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},vb={notType:e=>{const{path:t,value:n,spec:r}=e,i=r.types.length;if(Array.isArray(n)){if(n.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${n.length} for value: \`${ab(n,!0)}\``;if(n.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${ab(n,!0)}\``}return db.formatError(hb.notType,e)}};var yb=Object.assign(Object.create(null),{mixed:hb,string:pb,number:{min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},date:bb,object:gb,array:mb,boolean:{isValue:"${path} field must be ${value}"},tuple:vb});const _b=e=>e&&e.__isYupSchema__;class xb{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:i}=t,a="function"==typeof n?n:(...e)=>e.every(e=>e===n);return new xb(e,(e,t)=>{var n;let o=a(...e)?r:i;return null!=(n=null==o?void 0:o(t))?n:t})}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn(n,e,t);if(void 0===r||r===e)return e;if(!_b(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}}class wb{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext="$"===this.key[0],this.isValue="."===this.key[0],this.isSibling=!this.isContext&&!this.isValue,this.path=this.key.slice((this.isContext?"$":this.isValue?".":"").length),this.getter=this.path&&Vp.getter(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}wb.prototype.__isYupRef=!0;const kb=e=>null==e;function Ab(e){function t({value:t,path:n="",options:r,originalValue:i,schema:a},o,s){const{name:c,test:u,params:l,message:f,skipAbsent:d}=e;let{parent:h,context:p,abortEarly:b=a.spec.abortEarly,disableStackTrace:g=a.spec.disableStackTrace}=r;const m={value:t,parent:h,context:p};function v(e={}){const r=Mb(Object.assign({value:t,originalValue:i,label:a.spec.label,path:e.path||n,spec:a.spec,disableStackTrace:e.disableStackTrace||g},l,e.params),m),o=new db(db.formatError(e.message||f,r),t,r.path,e.type||c,r.disableStackTrace);return o.params=r,o}const y=b?o:s;let _={path:n,parent:h,type:c,from:r.from,createError:v,resolve:e=>Ob(e,m),options:r,originalValue:i,schema:a};const x=e=>{db.isError(e)?y(e):e?s(null):y(v())},w=e=>{db.isError(e)?y(e):o(e)};if(d&&kb(t))return x(!0);let k;try{var A;if(k=u.call(_,t,_),"function"==typeof(null==(A=k)?void 0:A.then)){if(r.sync)throw new Error(`Validation test of type: "${_.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(k).then(x,w)}}catch(e){return void w(e)}x(k)}return t.OPTIONS=e,t}function Mb(e,t){if(!e)return e;for(const n of Object.keys(e))e[n]=Ob(e[n],t);return e}function Ob(e,t){return wb.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function Cb(e,t,n,r=n){let i,a,o;return t?(Vp.forEach(t,(s,c,u)=>{let l=c?s.slice(1,s.length-1):s,f="tuple"===(e=e.resolve({context:r,parent:i,value:n})).type,d=u?parseInt(l,10):0;if(e.innerType||f){if(f&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(n&&d>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[d],e=f?e.spec.types[d]:e.innerType}if(!u){if(!e.fields||!e.fields[l])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);i=n,n=n&&n[l],e=e.fields[l]}a=l,o=c?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:a}):{parent:i,parentPath:t,schema:e}}class Sb extends Set{describe(){const e=[];for(const t of this.values())e.push(wb.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const n of this.values())t.push(e(n));return t}clone(){return new Sb(this.values())}merge(e,t){const n=this.clone();return e.forEach(e=>n.add(e)),t.forEach(e=>n.delete(e)),n}}function Tb(e,t=new Map){if(_b(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Tb(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,Tb(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Tb(r,t))}else{if(!(e instanceof Object))throw Error(`Unable to clone ${e}`);n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=Tb(i,t)}return n}function jb(e){if(null==e||!e.length)return;const t=[];let n="",r=!1,i=!1;for(let a=0;a<e.length;a++){const o=e[a];"["!==o||i?"]"!==o||i?'"'!==o?"."!==o||r||i?n+=o:n&&(t.push(n),n=""):i=!i:(n&&(/^\d+$/.test(n)?t.push(n):t.push(n.replace(/^"|"$/g,"")),n=""),r=!1):(n&&(t.push(...n.split(".").filter(Boolean)),n=""),r=!0)}return n&&t.push(...n.split(".").filter(Boolean)),t}function Rb(e,t){var n;if((null==(n=e.inner)||!n.length)&&e.errors.length)return function(e,t){const n=t?`${t}.${e.path}`:e.path;return e.errors.map(e=>({message:e,path:jb(n)}))}(e,t);const r=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(e=>Rb(e,r))}class Eb{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Sb,this._blacklist=new Sb,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(hb.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation(e=>{e.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=Tb(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,n=e.clone();const r=Object.assign({},t.spec,n.spec);return n.spec=r,n.internalTests=Object.assign({},t.internalTests,n.internalTests),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return null==e?!(!this.spec.nullable||null!==e)||!(!this.spec.optional||void 0!==e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce((t,n)=>n.resolve(t,e),t),t=t.resolve(e)}return t}resolveOptions(e){var t,n,r,i;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(n=e.abortEarly)?n:this.spec.abortEarly,recursive:null!=(r=e.recursive)?r:this.spec.recursive,disableStackTrace:null!=(i=e.disableStackTrace)?i:this.spec.disableStackTrace})}cast(e,t={}){let n=this.resolve(Object.assign({},t,{value:e})),r="ignore-optionality"===t.assert,i=n._cast(e,t);if(!1!==t.assert&&!n.isType(i)){if(r&&kb(i))return i;let a=ab(e),o=ab(i);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}". \n\nattempted value: ${a} \n`+(o!==a?`result of cast: ${o}`:""))}return i}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((n,r)=>r.call(this,n,e,this,t),e);return void 0===n&&(n=this.getDefault(t)),n}_validate(e,t={},n,r){let{path:i,originalValue:a=e,strict:o=this.spec.strict}=t,s=e;o||(s=this._cast(s,Object.assign({assert:!1},t)));let c=[];for(let e of Object.values(this.internalTests))e&&c.push(e);this.runTests({path:i,value:s,originalValue:a,options:t,tests:c},n,e=>{if(e.length)return r(e,s);this.runTests({path:i,value:s,originalValue:a,options:t,tests:this.tests},n,r)})}runTests(e,t,n){let r=!1,{tests:i,value:a,originalValue:o,path:s,options:c}=e,u=e=>{r||(r=!0,t(e,a))},l=e=>{r||(r=!0,n(e,a))},f=i.length,d=[];if(!f)return l([]);let h={value:a,originalValue:o,path:s,options:c,schema:this};for(let e=0;e<i.length;e++)(0,i[e])(h,u,function(e){e&&(Array.isArray(e)?d.push(...e):d.push(e)),--f<=0&&l(d)})}asNestedTest({key:e,index:t,parent:n,parentPath:r,originalParent:i,options:a}){const o=null!=e?e:t;if(null==o)throw TypeError("Must include `key` or `index` for nested validations");const s="number"==typeof o;let c=n[o];const u=Object.assign({},a,{strict:!0,parent:n,value:c,originalValue:i[o],key:void 0,[s?"index":"key"]:o,path:s||o.includes(".")?`${r||""}[${s?o:`"${o}"`}]`:(r?`${r}.`:"")+e});return(e,t,n)=>this.resolve(u)._validate(c,u,t,n)}validate(e,t){var n;let r=this.resolve(Object.assign({},t,{value:e})),i=null!=(n=null==t?void 0:t.disableStackTrace)?n:r.spec.disableStackTrace;return new Promise((n,a)=>r._validate(e,t,(e,t)=>{db.isError(e)&&(e.value=t),a(e)},(e,t)=>{e.length?a(new db(e,t,void 0,void 0,i)):n(t)}))}validateSync(e,t){var n;let r,i=this.resolve(Object.assign({},t,{value:e})),a=null!=(n=null==t?void 0:t.disableStackTrace)?n:i.spec.disableStackTrace;return i._validate(e,Object.assign({},t,{sync:!0}),(e,t)=>{throw db.isError(e)&&(e.value=t),e},(t,n)=>{if(t.length)throw new db(t,e,void 0,void 0,a);r=n}),r}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(db.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(db.isError(e))return!1;throw e}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):Tb(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return 0===arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){const n=this.clone({nullable:e});return n.internalTests.nullable=Ab({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),n}optionality(e,t){const n=this.clone({optional:e});return n.internalTests.optionality=Ab({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),n}optional(){return this.optionality(!0)}defined(e=hb.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=hb.notNull){return this.nullability(!1,e)}required(e=hb.required){return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=hb.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let n=this.clone(),r=Ab(t),i=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>{if(e.OPTIONS.name===t.name){if(i)return!1;if(e.OPTIONS.test===r.OPTIONS.test)return!1}return!0}),n.tests.push(r),n}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let n=this.clone(),r=ob(e).map(e=>new wb(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push("function"==typeof t?new xb(r,t):xb.fromOptions(r,t)),n}typeError(e){let t=this.clone();return t.internalTests.typeError=Ab({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=hb.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n.internalTests.whiteList=Ab({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}notOneOf(e,t=hb.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n.internalTests.blacklist=Ab({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:n,meta:r,optional:i,nullable:a}=t.spec,o={meta:r,label:n,optional:i,nullable:a,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.filter((e,t,n)=>n.findIndex(t=>t.OPTIONS.name===e.OPTIONS.name)===t).map(t=>{const n=t.OPTIONS.params&&e?Mb(Object.assign({},t.OPTIONS.params),e):t.OPTIONS.params;return{name:t.OPTIONS.name,params:n}})};return o}get"~standard"(){const e=this;return{version:1,vendor:"yup",async validate(t){try{return{value:await e.validate(t,{abortEarly:!1})}}catch(e){if(e instanceof db)return{issues:Rb(e)};throw e}}}}}Eb.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Eb.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:a,schema:o}=Cb(this,t,n,r.context);return o[e](i&&i[a],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Eb.prototype[e]=Eb.prototype.oneOf;for(const e of["not","nope"])Eb.prototype[e]=Eb.prototype.notOneOf;const Lb=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function $b(e){var t,n;const r=Lb.exec(e);return r?{year:Fb(r[1]),month:Fb(r[2],1)-1,day:Fb(r[3],1),hour:Fb(r[4]),minute:Fb(r[5]),second:Fb(r[6]),millisecond:r[7]?Fb(r[7].substring(0,3)):0,precision:null!=(t=null==(n=r[7])?void 0:n.length)?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:Fb(r[10]),minuteOffset:Fb(r[11])}:null}function Fb(e,t=0){return Number(e)||t}let zb=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ib=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Pb=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Db=new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),Nb=e=>kb(e)||e===e.trim(),Wb={}.toString();function Vb(){return new Ub}class Ub extends Eb{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"==typeof e)}),this.withMutation(()=>{this.transform((e,t)=>{if(!this.spec.coerce||this.isType(e))return e;if(Array.isArray(e))return e;const n=null!=e&&e.toString?e.toString():e;return n===Wb?e:n})})}required(e){return super.required(e).withMutation(t=>t.test({message:e||hb.required,name:"required",skipAbsent:!0,test:e=>!!e.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e))}length(e,t=pb.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t=pb.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t=pb.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"==typeof t?({excludeEmptyString:i=!1,message:n,name:r}=t):n=t),this.test({name:r||"matches",message:n||pb.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&i||-1!==t.search(e)})}email(e=pb.email){return this.matches(zb,{name:"email",message:e,excludeEmptyString:!0})}url(e=pb.url){return this.matches(Ib,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=pb.uuid){return this.matches(Pb,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,n,r="";return e&&("object"==typeof e?({message:r="",allowOffset:t=!1,precision:n}=e):r=e),this.matches(Db,{name:"datetime",message:r||pb.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||pb.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;const n=$b(e);return!!n&&!!n.z}}).test({name:"datetime_precision",message:r||pb.datetime_precision,params:{precision:n},skipAbsent:!0,test:e=>{if(!e||null==n)return!0;const t=$b(e);return!!t&&t.precision===n}})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=pb.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:Nb})}lowercase(e=pb.lowercase){return this.transform(e=>kb(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>kb(e)||e===e.toLowerCase()})}uppercase(e=pb.uppercase){return this.transform(e=>kb(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>kb(e)||e===e.toUpperCase()})}}Vb.prototype=Ub.prototype;let qb=new Date("");class Hb extends Eb{constructor(){super({type:"date",check:e=>"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())}),this.withMutation(()=>{this.transform((e,t)=>!this.spec.coerce||this.isType(e)||null===e?e:(e=function(e){const t=$b(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(n=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}(e),isNaN(e)?Hb.INVALID_DATE:new Date(e)))})}prepareParam(e,t){let n;if(wb.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=bb.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(n)}})}max(e,t=bb.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(n)}})}}function Bb(e,t){let n=Infinity;return e.some((e,r)=>{var i;if(null!=(i=t.path)&&i.includes(e))return n=r,!0}),n}function Yb(e){return(t,n)=>Bb(e,t)-Bb(e,n)}Hb.INVALID_DATE=qb;const Zb=(e,t,n)=>{if("string"!=typeof e)return e;let r=e;try{r=JSON.parse(e)}catch(e){}return n.isType(r)?r:e};function Xb(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Xb(r);return e.setFields(t)}if("array"===e.type){const t=e.optional();return t.innerType&&(t.innerType=Xb(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(Xb)}):"optional"in e?e.optional():e}let Qb=e=>"[object Object]"===Object.prototype.toString.call(e);function Gb(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(e=>-1===n.indexOf(e))}const Jb=Yb([]);function Kb(e){return new eg(e)}class eg extends Eb{constructor(e){super({type:"object",check:e=>Qb(e)||"function"==typeof e}),this.fields=Object.create(null),this._sortErrors=Jb,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault(t);if(!this._typeCheck(r))return r;let i=this.fields,a=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,o=[].concat(this._nodes,Object.keys(r).filter(e=>!this._nodes.includes(e))),s={},c=Object.assign({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(const e of o){let n=i[e],o=e in r,l=r[e];if(n){let i;c.path=(t.path?`${t.path}.`:"")+e,n=n.resolve({value:l,context:t.context,parent:s});let a=n instanceof Eb?n.spec:void 0,o=null==a?void 0:a.strict;if(null!=a&&a.strip){u=u||e in r;continue}i=t.__validating&&o?l:n.cast(l,c),void 0!==i&&(s[e]=i)}else o&&!a&&(s[e]=l);o===e in s&&s[e]===l||(u=!0)}return u?s:r}_validate(e,t={},n,r){let{from:i=[],originalValue:a=e,recursive:o=this.spec.recursive}=t;t.from=[{schema:this,value:a},...i],t.__validating=!0,t.originalValue=a,super._validate(e,t,n,(e,i)=>{if(!o||!Qb(i))return void r(e,i);a=a||i;let s=[];for(let e of this._nodes){let n=this.fields[e];n&&!wb.isRef(n)&&s.push(n.asNestedTest({options:t,key:e,parent:i,parentPath:t.path,originalParent:a}))}this.runTests({tests:s,value:i,originalValue:a,options:t},n,t=>{r(t.sort(this._sortErrors).concat(e),i)})})}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){const r=n[e];n[e]=void 0===r?t:r}return t.withMutation(t=>t.setFields(n,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach(n=>{var r;const i=this.fields[n];let a=e;null!=(r=a)&&r.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[n]})),t[n]=i&&"getDefault"in i?i.getDefault(a):void 0}),t}setFields(e,t){let n=this.clone();return n.fields=e,n._nodes=function(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function a(e,t){let a=Vp.split(e)[0];r.add(a),i.has(`${t}-${a}`)||n.push([t,a])}for(const t of Object.keys(e)){let n=e[t];r.add(t),wb.isRef(n)&&n.isSibling?a(n.path,t):_b(n)&&"deps"in n&&n.deps.forEach(e=>a(e,t))}return Gp.array(Array.from(r),n).reverse()}(e,t),n._sortErrors=Yb(Object.keys(e)),t&&(n._excludedEdges=t),n}shape(e,t=[]){return this.clone().withMutation(n=>{let r=n._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),r=[...n._excludedEdges,...t]),n.setFields(Object.assign(n.fields,e),r)})}partial(){const e={};for(const[t,n]of Object.entries(this.fields))e[t]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(e)}deepPartial(){return Xb(this)}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.setFields(t,this._excludedEdges.filter(([t,n])=>e.includes(t)&&e.includes(n)))}omit(e){const t=[];for(const n of Object.keys(this.fields))e.includes(n)||t.push(n);return this.pick(t)}from(e,t,n){let r=Vp.getter(e,!0);return this.transform(i=>{if(!i)return i;let a=i;return((e,t)=>{const n=[...Vp.normalizePath(t)];if(1===n.length)return n[0]in e;let r=n.pop(),i=Vp.getter(Vp.join(n),!0)(e);return!(!i||!(r in i))})(i,e)&&(a=Object.assign({},i),n||delete a[e],a[t]=r(i)),a})}json(){return this.transform(Zb)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||gb.exact,test(e){if(null==e)return!0;const t=Gb(this.schema,e);return 0===t.length||this.createError({params:{properties:t.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,t=gb.noUnknown){"boolean"!=typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=Gb(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=gb.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>{if(!t)return t;const n={};for(const r of Object.keys(t))n[e(r)]=t[r];return n})}camelCase(){return this.transformKeys(Xp)}snakeCase(){return this.transformKeys(Qp)}constantCase(){return this.transformKeys(e=>Qp(e).toUpperCase())}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);n.fields={};for(const[i,a]of Object.entries(t.fields)){var r;let t=e;null!=(r=t)&&r.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[i]})),n.fields[i]=a.describe(t)}return n}}function tg(e){return new ng(e)}Kb.prototype=eg.prototype;class ng extends Eb{constructor(e){super({type:"array",spec:{types:e},check:e=>Array.isArray(e)}),this.innerType=void 0,this.innerType=e}_cast(e,t){const n=super._cast(e,t);if(!this._typeCheck(n)||!this.innerType)return n;let r=!1;const i=n.map((e,i)=>{const a=this.innerType.cast(e,Object.assign({},t,{path:`${t.path||""}[${i}]`,parent:n,originalValue:e,value:e,index:i}));return a!==e&&(r=!0),a});return r?i:n}_validate(e,t={},n,r){var i;let a=this.innerType,o=null!=(i=t.recursive)?i:this.spec.recursive;super._validate(e,t,n,(i,s)=>{var c;if(!o||!a||!this._typeCheck(s))return void r(i,s);let u=new Array(s.length);for(let n=0;n<s.length;n++){var l;u[n]=a.asNestedTest({options:t,index:n,parent:s,parentPath:t.path,originalParent:null!=(l=t.originalValue)?l:e})}this.runTests({value:s,tests:u,originalValue:null!=(c=t.originalValue)?c:e,options:t},n,e=>r(e.concat(i),s))})}clone(e){const t=super.clone(e);return t.innerType=this.innerType,t}json(){return this.transform(Zb)}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!_b(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+ab(e));return t.innerType=e,t.spec=Object.assign({},t.spec,{types:e}),t}length(e,t=mb.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t){return this.test({message:t=t||mb.min,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t){return this.test({message:t=t||mb.max,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t))}compact(e){let t=e?(t,n,r)=>!e(t,n,r):e=>!!e;return this.transform(e=>null!=e?e.filter(t):e)}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);if(t.innerType){var r;let i=e;null!=(r=i)&&r.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),n.innerType=t.innerType.describe(i)}return n}}tg.prototype=ng.prototype;var rg=function(e){var t;return t={mixed:{required:e("This field is required")}},Object.keys(t).forEach(e=>{Object.keys(t[e]).forEach(n=>{yb[e][n]=t[e][n]})}),{initialValues:{workplaceId:"",metricIds:[]},validationSchema:Kb({workplaceId:Vb().required(),metricIds:tg().of(Vb().required())})}},ig=["url","wsUrl","lang","data","settings"];exports.Widget=function(r){var i=r.url,a=r.wsUrl,o=r.lang,s=r.data,c=r.settings,u=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(r,ig),l=t.useGqlClients({url:i,wsUrl:a,lang:o}),f=l.graphqlSdk,h=l.gqlWsClient,p=e.useState(s),b=p[0],_=p[1],x=e.useState(c),w=x[0],k=x[1];e.useEffect(function(){if(f&&(s||(f.listWorkplaces().then(function(e){var t=e.workplaces;return _(function(e){return g({},e||{},{workplaces:t})})}).catch(function(){}),f.metrics().then(function(e){var t=e.metrics;return _(function(e){return g({},e||{},{metrics:t})})}).catch(function(){})),w)){var e=w.workplaceId,t=w.metricIds,n=function(){try{return e&&t&&f.metricValues({workplaceIds:[e],metricIds:t}).then(function(n){var r=n.metricValues;return _(function(n){return g({},n||{},{metricsValues:r.filter(function(n){return n.workplaceId===e&&t.includes(n.metricId)})})})}).catch(function(){}),Promise.resolve()}catch(e){return Promise.reject(e)}};n();var r=setInterval(function(){n()},1e4);return function(){clearInterval(r)}}return function(){}},[s,f,w]);var A=e.useCallback(function(e){k(g({},e))},[k]);return d.default.createElement(n.BaseWidget,g({lang:o,locales:m,data:b,settings:c,gqlClients:{graphqlSdk:f,gqlWsClient:h},onSettingsChange:A,WidgetView:Ep,getSettingsFormProps:rg,SettingsFormContent:y,version:v,"data-testid":"metrics-pie-chart-widget"},u))},exports.extraPermissions=[],exports.getDisplayName=function(e){switch(e){case"en":return"Metrics pie chart";case"pl":return"Wykres kołowy metryk";default:return"metrics-pie-chart-widget"}},exports.requiredFeatures=["feature.metrics-pie-chart-widget"],exports.version=v;
3
3
  //# sourceMappingURL=index.js.map