From a0c4c906fb45dc37be38683f3caf13d310e8961d Mon Sep 17 00:00:00 2001 From: Determinant Date: Tue, 19 Feb 2019 17:28:31 -0500 Subject: more improvements --- dist/background.js | 2 +- dist/index.js | 2 +- dist/tab.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'dist') diff --git a/dist/background.js b/dist/background.js index c599655..7cc7a31 100644 --- a/dist/background.js +++ b/dist/background.js @@ -39,5 +39,5 @@ object-assign * @website https://github.com/jsstyles/css-vendor * @license MIT */ -t.prefix=a.default,t.supportedProperty=r.default,t.supportedValue=s.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!o)return e;if(null!=d[e])return d[e];(0,s.default)(e)in o.style?d[e]=e:r.default.js+(0,s.default)("-"+e)in o.style?d[e]=r.default.css+e:d[e]=!1;return d[e]};var a=i(n(41)),r=i(n(56)),s=i(n(356));function i(e){return e&&e.__esModule?e:{default:e}}var o=void 0,d={};if(a.default){o=document.createElement("p");var u=window.getComputedStyle(document.documentElement,"");for(var l in u)isNaN(l)||(d[u[l]]=u[l])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(a,r)};var a=/[-\s]+(.)?/g;function r(e,t){return t?t.toUpperCase():""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!o)return t;if("string"!=typeof t||!isNaN(parseInt(t,10)))return t;var n=e+t;if(null!=i[n])return i[n];try{o.style[e]=t}catch(e){return i[n]=!1,!1}""!==o.style[e]?i[n]=t:("-ms-flex"===(t=r.default.css+t)&&(t="-ms-flexbox"),o.style[e]=t,""!==o.style[e]&&(i[n]=t));i[n]||(i[n]=!1);return o.style[e]="",i[n]};var a=s(n(41)),r=s(n(56));function s(e){return e&&e.__esModule?e:{default:e}}var i={},o=void 0;a.default&&(o=document.createElement("p"))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){function e(e,t){return e.length-t.length}return{onProcessStyle:function(t,n){if("style"!==n.type)return t;var a={},r=Object.keys(t).sort(e);for(var s in r)a[r[s]]=t[r[s]];return a}}}},function(e,t,n){"use strict";var a=n(360),r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MuiThemeProviderOld=void 0;var s=r(n(5)),i=r(n(8)),o=r(n(13)),d=r(n(14)),u=r(n(15)),l=r(n(16)),_=r(n(17)),c=r(n(3)),m=r(n(1)),h=(r(n(9)),r(n(364))),f=n(10),y=a(n(57)),M=function(e){function t(e,n){var a;return(0,o.default)(this,t),(a=(0,u.default)(this,(0,l.default)(t).call(this))).broadcast=(0,h.default)(),a.outerTheme=y.default.initial(n),a.broadcast.setState(a.mergeOuterLocalTheme(e.theme)),a}return(0,_.default)(t,e),(0,d.default)(t,[{key:"getChildContext",value:function(){var e,t=this.props,n=t.disableStylesGeneration,a=t.sheetsCache,r=t.sheetsManager,s=this.context.muiThemeProviderOptions||{};return void 0!==n&&(s.disableStylesGeneration=n),void 0!==a&&(s.sheetsCache=a),void 0!==r&&(s.sheetsManager=r),e={},(0,i.default)(e,y.CHANNEL,this.broadcast),(0,i.default)(e,"muiThemeProviderOptions",s),e}},{key:"componentDidMount",value:function(){var e=this;this.unsubscribeId=y.default.subscribe(this.context,function(t){e.outerTheme=t,e.broadcast.setState(e.mergeOuterLocalTheme(e.props.theme))})}},{key:"componentDidUpdate",value:function(e){this.props.theme!==e.theme&&this.broadcast.setState(this.mergeOuterLocalTheme(this.props.theme))}},{key:"componentWillUnmount",value:function(){null!==this.unsubscribeId&&y.default.unsubscribe(this.context,this.unsubscribeId)}},{key:"mergeOuterLocalTheme",value:function(e){return"function"==typeof e?e(this.outerTheme):this.outerTheme?(0,s.default)({},this.outerTheme,e):e}},{key:"render",value:function(){return this.props.children}}]),t}(c.default.Component);t.MuiThemeProviderOld=M,M.childContextTypes=(0,s.default)({},y.default.contextTypes,{muiThemeProviderOptions:m.default.object}),M.contextTypes=(0,s.default)({},y.default.contextTypes,{muiThemeProviderOptions:m.default.object}),f.ponyfillGlobal.__MUI_STYLES__||(f.ponyfillGlobal.__MUI_STYLES__={}),f.ponyfillGlobal.__MUI_STYLES__.MuiThemeProvider||(f.ponyfillGlobal.__MUI_STYLES__.MuiThemeProvider=M);var p=f.ponyfillGlobal.__MUI_STYLES__.MuiThemeProvider;t.default=p},function(e,t){e.exports=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};a.get||a.set?Object.defineProperty(t,n,a):t[n]=e[n]}return t.default=e,t}},function(e,t){function n(t,a){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,a)}e.exports=n},function(e,t,n){"use strict";var a=n(363);function r(){}e.exports=function(){function e(e,t,n,r,s,i){if(i!==a){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";n.r(t),t.default=function(e){var t={},n=1,a=e;return{getState:function(){return a},setState:function(e){a=e;for(var n=Object.keys(t),r=0,s=n.length;r0&&r[r.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]this.options.maxCachedItems))if(a===r)this.getSlot(a)[e.id]=new y(e.start,e.end,e.id);else{this.getSlot(a)[e.id]=new y(e.start,this.slotEndDate(a),e.id),this.getSlot(r)[e.id]=new y(this.slotStartDate(r),e.end,e.id);for(var d=a+1;d=t.end||n[r].end<=t.start||a.push(new M(n[r].startt.end?t.end:n[r].end,r,this.eventMeta[r].summary));return a},e.prototype.getCachedEvents=function(e){for(var t=this.dateRangeToCacheKeys(e),n=t.start,a=t.end,r=this.getSlotEvents(n,e),s=n+1;sn&&r.push.apply(r,this.getSlotEvents(a,e)),r},e.prototype.sync=function(){return a(this,void 0,void 0,function(){var e,t,n,s=this;return r(this,function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),[4,this.token];case 1:return e=o.sent(),[4,f(this.calId,e,this.syncToken)];case 2:return t=o.sent(),[4,Promise.all(t.results.map(function(t){return t.start?Promise.resolve(t):function(e,t,n){return a(this,void 0,void 0,function(){return r(this,function(a){switch(a.label){case 0:return[4,fetch(d+"/calendars/"+e+"/events/"+t+"?"+l({access_token:n}),{method:"GET"})];case 1:return[2,a.sent().json()]}})})}(s.calId,t.id,e)}))];case 3:return o.sent().forEach(function(e){e.start=new Date(e.start.dateTime),e.end=new Date(e.end.dateTime),"confirmed"===e.status?s.addEvent(e):"cancelled"===e.status&&s.removeEvent(e)}),this.syncToken=t.nextSyncToken,[3,5];case 4:if((n=o.sent())!==i.invalidSyncToken)throw n;return this.syncToken="",this.sync(),[3,5];case 5:return[2]}})})},e.prototype.getEvents=function(e,t,n){return void 0===n&&(n=!1),a(this,void 0,void 0,function(){var a,s,i,o,d,u,l,_=this;return r(this,function(r){switch(r.label){case 0:for(a=this.dateRangeToCacheKeys({start:e,end:t}),s={start:null,end:null},i=a.start;i<=a.end;i++)this.cache.has(i)||(null===s.start&&(s.start=i),s.end=i);return null===s.start?[3,9]:(console.assert(s.start<=s.end),s.end-s.start+1>this.options.largeQuery?(console.log("encounter large query, use direct fetch"),[4,this.token]):[3,3]);case 1:return o=r.sent(),[4,f(this.calId,o,null,e.toISOString(),t.toISOString())];case 2:return d=r.sent(),[2,{events:d.results.map(function(e){return console.assert(e.start),e.start=new Date(e.start.dateTime),e.end=new Date(e.end.dateTime),e}).filter(function(n){return!(n.start>=t||n.end<=e)}).map(function(n){return new M(n.startt?t:n.end,n.id,n.summary)}),changed:!1}];case 3:return console.log("fetching short event list"),[4,this.token];case 4:return u=r.sent(),[4,f(this.calId,u,null,this.slotStartDate(s.start).toISOString(),this.slotEndDate(s.end).toISOString())];case 5:return(l=r.sent()).results.forEach(function(e){"confirmed"===e.status&&(console.assert(e.start),e.start=new Date(e.start.dateTime),e.end=new Date(e.end.dateTime),_.addEvent(e,!0))}),""===this.syncToken&&(this.syncToken=l.nextSyncToken),n?[4,this.sync()]:[3,7];case 6:r.sent(),r.label=7;case 7:return[4,this.getCachedEvents({start:e,end:t})];case 8:return[2,{events:r.sent(),changed:!0}];case 9:return console.log("cache hit"),n?[4,this.sync()]:[3,11];case 10:r.sent(),r.label=11;case 11:return[4,this.getCachedEvents({start:e,end:t})];case 12:return[2,{events:r.sent(),changed:!1}]}})})},e}();t.GCalendar=p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";const a=n(641),r=Symbol("max"),s=Symbol("length"),i=Symbol("lengthCalculator"),o=Symbol("allowStale"),d=Symbol("maxAge"),u=Symbol("dispose"),l=Symbol("noDisposeOnSet"),_=Symbol("lruList"),c=Symbol("cache"),m=Symbol("updateAgeOnGet"),h=()=>1;const f=(e,t,n)=>{const a=e[c].get(t);if(a){const t=a.value;if(y(e,t)){if(p(e,a),!e[o])return}else n&&(e[m]&&(a.value.now=Date.now()),e[_].unshiftNode(a));return t.value}},y=(e,t)=>{if(!t||!t.maxAge&&!e[d])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[d]&&n>e[d]},M=e=>{if(e[s]>e[r])for(let t=e[_].tail;e[s]>e[r]&&null!==t;){const n=t.prev;p(e,t),t=n}},p=(e,t)=>{if(t){const n=t.value;e[u]&&e[u](n.key,n.value),e[s]-=n.length,e[c].delete(n.key),e[_].removeNode(t)}};class L{constructor(e,t,n,a,r){this.key=e,this.value=t,this.length=n,this.now=a,this.maxAge=r||0}}const Y=(e,t,n,a)=>{let r=n.value;y(e,r)&&(p(e,n),e[o]||(r=void 0)),r&&t.call(a,r.value,r.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[r]=e.max||1/0;const t=e.length||h;if(this[i]="function"!=typeof t?h:t,this[o]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[d]=e.maxAge||0,this[u]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[m]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[r]=e||1/0,M(this)}get max(){return this[r]}set allowStale(e){this[o]=!!e}get allowStale(){return this[o]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[d]=e,M(this)}get maxAge(){return this[d]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[i]&&(this[i]=e,this[s]=0,this[_].forEach(e=>{e.length=this[i](e.value,e.key),this[s]+=e.length})),M(this)}get lengthCalculator(){return this[i]}get length(){return this[s]}get itemCount(){return this[_].length}rforEach(e,t){t=t||this;for(let n=this[_].tail;null!==n;){const a=n.prev;Y(this,e,n,t),n=a}}forEach(e,t){t=t||this;for(let n=this[_].head;null!==n;){const a=n.next;Y(this,e,n,t),n=a}}keys(){return this[_].toArray().map(e=>e.key)}values(){return this[_].toArray().map(e=>e.value)}reset(){this[u]&&this[_]&&this[_].length&&this[_].forEach(e=>this[u](e.key,e.value)),this[c]=new Map,this[_]=new a,this[s]=0}dump(){return this[_].map(e=>!y(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[_]}set(e,t,n){if((n=n||this[d])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const a=n?Date.now():0,o=this[i](t,e);if(this[c].has(e)){if(o>this[r])return p(this,this[c].get(e)),!1;const i=this[c].get(e).value;return this[u]&&(this[l]||this[u](e,i.value)),i.now=a,i.maxAge=n,i.value=t,this[s]+=o-i.length,i.length=o,this.get(e),M(this),!0}const m=new L(e,t,o,a,n);return m.length>this[r]?(this[u]&&this[u](e,t),!1):(this[s]+=m.length,this[_].unshift(m),this[c].set(e,this[_].head),M(this),!0)}has(e){if(!this[c].has(e))return!1;const t=this[c].get(e).value;return!y(this,t)}get(e){return f(this,e,!0)}peek(e){return f(this,e,!1)}pop(){const e=this[_].tail;return e?(p(this,e),e.value):null}del(e){p(this,this[c].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const a=e[n],r=a.e||0;if(0===r)this.set(a.k,a.v);else{const e=r-t;e>0&&this.set(a.k,a.v,e)}}}prune(){this[c].forEach((e,t)=>f(this,t,!1))}}},function(e,t,n){"use strict";function a(e){var t=this;if(t instanceof a||(t=new a),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var n=0,r=arguments.length;n1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");a=this.head.next,n=this.head.value}for(var r=0;null!==a;r++)n=e(n,a.value,r),a=a.next;return n},a.prototype.reduceReverse=function(e,t){var n,a=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");a=this.tail.prev,n=this.tail.value}for(var r=this.length-1;null!==a;r--)n=e(n,a.value,r),a=a.prev;return n},a.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},a.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},a.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new a;if(tthis.length&&(t=this.length);for(var r=0,s=this.head;null!==s&&rthis.length&&(t=this.length);for(var r=this.length,s=this.tail;null!==s&&r>t;r--)s=s.prev;for(;null!==s&&r>e;r--,s=s.prev)n.push(s.value);return n},a.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var a=n.prev;n.prev=n.next,n.next=a}return this.head=t,this.tail=e,this};try{n(642)(a)}catch(e){}},function(e,t,n){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))(function(r,s){function i(e){try{d(a.next(e))}catch(e){s(e)}}function o(e){try{d(a.throw(e))}catch(e){s(e)}}function d(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(i,o)}d((a=a.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var n,a,r,s,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,a&&(r=2&s[0]?a.return:s[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;switch(a=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]=t)return[2,{patternGraphData:[],calendarGraphData:[]}];for(L in a=[],d=function(r){if(!i[r].enabled)return"continue";var s=n.filter(function(e){return e.cal.regex.test(i[r].name)});s.length>0&&a.push(o(r,e,t).then(function(e){return{id:r,events:e,filtered:s}}))},i)d(L);return[4,Promise.all(a)];case 1:for(u=r.sent(),l={},_={},c={},m={},u.forEach(function(e){l[e.id]=e.events,_[e.id]=e.filtered}),p=0;p0&&r[r.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]0&&r[r.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]this.options.maxCachedItems))if(a===r)this.getSlot(a)[e.id]=new y(e.start,e.end,e.id);else{this.getSlot(a)[e.id]=new y(e.start,this.slotEndDate(a),e.id),this.getSlot(r)[e.id]=new y(this.slotStartDate(r),e.end,e.id);for(var d=a+1;d=t.end||n[r].end<=t.start||a.push(new M(n[r].startt.end?t.end:n[r].end,r,this.eventMeta[r].summary));return a},e.prototype.getCachedEvents=function(e){for(var t=this.dateRangeToCacheKeys(e),n=t.start,a=t.end,r=this.getSlotEvents(n,e),s=n+1;sn&&r.push.apply(r,this.getSlotEvents(a,e)),r},e.prototype.sync=function(){return a(this,void 0,void 0,function(){var e,t,n,s=this;return r(this,function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),[4,this.token];case 1:return e=o.sent(),[4,f(this.calId,e,this.syncToken)];case 2:return t=o.sent(),[4,Promise.all(t.results.map(function(t){return t.start?Promise.resolve(t):function(e,t,n){return a(this,void 0,void 0,function(){return r(this,function(a){switch(a.label){case 0:return[4,fetch(d+"/calendars/"+e+"/events/"+t+"?"+l({access_token:n}),{method:"GET"})];case 1:return[2,a.sent().json()]}})})}(s.calId,t.id,e)}))];case 3:return o.sent().forEach(function(e){e.start=new Date(e.start.dateTime),e.end=new Date(e.end.dateTime),"confirmed"===e.status?s.addEvent(e):"cancelled"===e.status&&s.removeEvent(e)}),this.syncToken=t.nextSyncToken,[3,5];case 4:if((n=o.sent())!==i.invalidSyncToken)throw n;return this.syncToken="",this.sync(),[3,5];case 5:return[2]}})})},e.prototype.getEvents=function(e,t,n){return void 0===n&&(n=!1),a(this,void 0,void 0,function(){var a,s,i,o,d,u,l,_=this;return r(this,function(r){switch(r.label){case 0:for(a=this.dateRangeToCacheKeys({start:e,end:t}),s={start:null,end:null},i=a.start;i<=a.end;i++)this.cache.has(i)||(null===s.start&&(s.start=i),s.end=i);return null===s.start?[3,9]:(console.assert(s.start<=s.end),s.end-s.start+1>this.options.largeQuery?(console.log("encounter large query, use direct fetch"),[4,this.token]):[3,3]);case 1:return o=r.sent(),[4,f(this.calId,o,null,e.toISOString(),t.toISOString())];case 2:return d=r.sent(),[2,{events:d.results.map(function(e){return console.assert(e.start),e.start=new Date(e.start.dateTime),e.end=new Date(e.end.dateTime),e}).filter(function(n){return!(n.start>=t||n.end<=e)}).map(function(n){return new M(n.startt?t:n.end,n.id,n.summary)}),changed:!1}];case 3:return console.log("fetching short event list"),[4,this.token];case 4:return u=r.sent(),[4,f(this.calId,u,null,this.slotStartDate(s.start).toISOString(),this.slotEndDate(s.end).toISOString())];case 5:return(l=r.sent()).results.forEach(function(e){"confirmed"===e.status&&(console.assert(e.start),e.start=new Date(e.start.dateTime),e.end=new Date(e.end.dateTime),_.addEvent(e,!0))}),""===this.syncToken&&(this.syncToken=l.nextSyncToken),n?[4,this.sync()]:[3,7];case 6:r.sent(),r.label=7;case 7:return[4,this.getCachedEvents({start:e,end:t})];case 8:return[2,{events:r.sent(),changed:!0}];case 9:return console.log("cache hit"),n?[4,this.sync()]:[3,11];case 10:r.sent(),r.label=11;case 11:return[4,this.getCachedEvents({start:e,end:t})];case 12:return[2,{events:r.sent(),changed:!1}]}})})},e}();t.GCalendar=p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";const a=n(641),r=Symbol("max"),s=Symbol("length"),i=Symbol("lengthCalculator"),o=Symbol("allowStale"),d=Symbol("maxAge"),u=Symbol("dispose"),l=Symbol("noDisposeOnSet"),_=Symbol("lruList"),c=Symbol("cache"),m=Symbol("updateAgeOnGet"),h=()=>1;const f=(e,t,n)=>{const a=e[c].get(t);if(a){const t=a.value;if(y(e,t)){if(p(e,a),!e[o])return}else n&&(e[m]&&(a.value.now=Date.now()),e[_].unshiftNode(a));return t.value}},y=(e,t)=>{if(!t||!t.maxAge&&!e[d])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[d]&&n>e[d]},M=e=>{if(e[s]>e[r])for(let t=e[_].tail;e[s]>e[r]&&null!==t;){const n=t.prev;p(e,t),t=n}},p=(e,t)=>{if(t){const n=t.value;e[u]&&e[u](n.key,n.value),e[s]-=n.length,e[c].delete(n.key),e[_].removeNode(t)}};class L{constructor(e,t,n,a,r){this.key=e,this.value=t,this.length=n,this.now=a,this.maxAge=r||0}}const Y=(e,t,n,a)=>{let r=n.value;y(e,r)&&(p(e,n),e[o]||(r=void 0)),r&&t.call(a,r.value,r.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[r]=e.max||1/0;const t=e.length||h;if(this[i]="function"!=typeof t?h:t,this[o]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[d]=e.maxAge||0,this[u]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[m]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[r]=e||1/0,M(this)}get max(){return this[r]}set allowStale(e){this[o]=!!e}get allowStale(){return this[o]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[d]=e,M(this)}get maxAge(){return this[d]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[i]&&(this[i]=e,this[s]=0,this[_].forEach(e=>{e.length=this[i](e.value,e.key),this[s]+=e.length})),M(this)}get lengthCalculator(){return this[i]}get length(){return this[s]}get itemCount(){return this[_].length}rforEach(e,t){t=t||this;for(let n=this[_].tail;null!==n;){const a=n.prev;Y(this,e,n,t),n=a}}forEach(e,t){t=t||this;for(let n=this[_].head;null!==n;){const a=n.next;Y(this,e,n,t),n=a}}keys(){return this[_].toArray().map(e=>e.key)}values(){return this[_].toArray().map(e=>e.value)}reset(){this[u]&&this[_]&&this[_].length&&this[_].forEach(e=>this[u](e.key,e.value)),this[c]=new Map,this[_]=new a,this[s]=0}dump(){return this[_].map(e=>!y(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[_]}set(e,t,n){if((n=n||this[d])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const a=n?Date.now():0,o=this[i](t,e);if(this[c].has(e)){if(o>this[r])return p(this,this[c].get(e)),!1;const i=this[c].get(e).value;return this[u]&&(this[l]||this[u](e,i.value)),i.now=a,i.maxAge=n,i.value=t,this[s]+=o-i.length,i.length=o,this.get(e),M(this),!0}const m=new L(e,t,o,a,n);return m.length>this[r]?(this[u]&&this[u](e,t),!1):(this[s]+=m.length,this[_].unshift(m),this[c].set(e,this[_].head),M(this),!0)}has(e){if(!this[c].has(e))return!1;const t=this[c].get(e).value;return!y(this,t)}get(e){return f(this,e,!0)}peek(e){return f(this,e,!1)}pop(){const e=this[_].tail;return e?(p(this,e),e.value):null}del(e){p(this,this[c].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const a=e[n],r=a.e||0;if(0===r)this.set(a.k,a.v);else{const e=r-t;e>0&&this.set(a.k,a.v,e)}}}prune(){this[c].forEach((e,t)=>f(this,t,!1))}}},function(e,t,n){"use strict";function a(e){var t=this;if(t instanceof a||(t=new a),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var n=0,r=arguments.length;n1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");a=this.head.next,n=this.head.value}for(var r=0;null!==a;r++)n=e(n,a.value,r),a=a.next;return n},a.prototype.reduceReverse=function(e,t){var n,a=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");a=this.tail.prev,n=this.tail.value}for(var r=this.length-1;null!==a;r--)n=e(n,a.value,r),a=a.prev;return n},a.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},a.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},a.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new a;if(tthis.length&&(t=this.length);for(var r=0,s=this.head;null!==s&&rthis.length&&(t=this.length);for(var r=this.length,s=this.tail;null!==s&&r>t;r--)s=s.prev;for(;null!==s&&r>e;r--,s=s.prev)n.push(s.value);return n},a.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var a=n.prev;n.prev=n.next,n.next=a}return this.head=t,this.tail=e,this};try{n(642)(a)}catch(e){}},function(e,t,n){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))(function(r,s){function i(e){try{d(a.next(e))}catch(e){s(e)}}function o(e){try{d(a.throw(e))}catch(e){s(e)}}function d(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(i,o)}d((a=a.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var n,a,r,s,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,a&&(r=2&s[0]?a.return:s[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;switch(a=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]=t)return[2,{patternGraphData:[],calendarGraphData:[]}];for(L in a=[],d=function(r){if(!i[r].enabled)return"continue";var s=n.filter(function(e){return e.cal.regex.test(i[r].name)});s.length>0&&a.push(o(r,e,t).then(function(e){return{id:r,events:e,filtered:s}}))},i)d(L);return[4,Promise.all(a)];case 1:for(u=r.sent(),l={},_={},c={},m={},u.forEach(function(e){l[e.id]=e.events,_[e.id]=e.filtered}),p=0;p0&&r[r.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]=t){r=e;break}e=e.next}while(e!==n);null===r?r=n:r===n&&(n=u,l()),(t=r.previous).next=r.previous=u,u.next=r,u.previous=t}}function d(){if(-1===o&&null!==n&&1===n.priorityLevel){s=!0;try{do{c()}while(null!==n&&1===n.priorityLevel)}finally{s=!1,null!==n?l():u=!1}}}function f(e){s=!0;var a=r;r=e;try{if(e)for(;null!==n;){var o=t.unstable_now();if(!(n.expirationTime<=o))break;do{c()}while(null!==n&&n.expirationTime<=o)}else if(null!==n)do{c()}while(null!==n&&!D())}finally{s=!1,r=a,null!==n?l():u=!1,d()}}var p,h,m=Date,y="function"==typeof setTimeout?setTimeout:void 0,v="function"==typeof clearTimeout?clearTimeout:void 0,b="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,g="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function A(e){p=b(function(t){v(h),e(t)}),h=y(function(){g(p),e(t.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var k=performance;t.unstable_now=function(){return k.now()}}else t.unstable_now=function(){return m.now()};var M,w,D,T=null;if("undefined"!=typeof window?T=window:void 0!==e&&(T=e),T&&T._schedMock){var x=T._schedMock;M=x[0],w=x[1],D=x[2],t.unstable_now=x[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var S=null,P=function(e){if(null!==S)try{S(e)}finally{S=null}};M=function(e){null!==S?setTimeout(M,0,e):(S=e,setTimeout(P,0,!1))},w=function(){S=null},D=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof b&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var O=null,L=!1,E=-1,C=!1,j=!1,Y=0,R=33,_=33;D=function(){return Y<=t.unstable_now()};var N=new MessageChannel,F=N.port2;N.port1.onmessage=function(){L=!1;var e=O,n=E;O=null,E=-1;var r=t.unstable_now(),a=!1;if(0>=Y-r){if(!(-1!==n&&n<=r))return C||(C=!0,A(I)),O=e,void(E=n);a=!0}if(null!==e){j=!0;try{e(a)}finally{j=!1}}};var I=function(e){if(null!==O){A(I);var t=e-Y+_;t<_&&R<_?(8>t&&(t=8),_=tt?F.postMessage(void 0):C||(C=!0,A(I))},w=function(){O=null,L=!1,E=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=a,i=o;a=e,o=t.unstable_now();try{return n()}finally{a=r,o=i,d()}},t.unstable_scheduleCallback=function(e,r){var i=-1!==o?o:t.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=i+r.timeout;else switch(a){case 1:r=i+-1;break;case 2:r=i+250;break;case 5:r=i+1073741823;break;case 4:r=i+1e4;break;default:r=i+5e3}if(e={callback:e,priorityLevel:a,expirationTime:r,next:null,previous:null},null===n)n=e.next=e.previous=e,l();else{i=null;var s=n;do{if(s.expirationTime>r){i=s;break}s=s.next}while(s!==n);null===i?i=n:i===n&&(n=e,l()),(r=i.previous).next=i.previous=e,e.next=i,e.previous=r}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=a;return function(){var r=a,i=o;a=n,o=t.unstable_now();try{return e.apply(this,arguments)}finally{a=r,o=i,d()}}},t.unstable_getCurrentPriorityLevel=function(){return a},t.unstable_shouldYield=function(){return!r&&(null!==n&&n.expirationTime=0?r=setTimeout(u,t-l):(r=null,n||(s=e.apply(o,a),o=a=null))}null==t&&(t=100);var l=function(){o=this,a=arguments,i=Date.now();var l=n&&!r;return r||(r=setTimeout(u,t)),l&&(s=e.apply(o,a),o=a=null),s};return l.clear=function(){r&&(clearTimeout(r),r=null)},l.flush=function(){r&&(s=e.apply(o,a),o=a=null,clearTimeout(r),r=null)},l}n.debounce=n,e.exports=n},function(e,t,n){"use strict";var r=n(2);t.__esModule=!0,t.default=void 0;var a=r(n(406)),o=n(3),i=(r(n(256)),r(n(257)),function(e){return function(t){var n=(0,o.createFactory)(t);return function(t){function r(){return t.apply(this,arguments)||this}(0,a.default)(r,t);var o=r.prototype;return o.shouldComponentUpdate=function(t){return e(this.props,t)},o.render=function(){return n(this.props)},r}(o.Component)}});t.default=i},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(e,t){return function(n){return n[e]=t,n}};t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":void 0};t.default=r},function(e,t,n){"use strict";var r=n(2);t.__esModule=!0,t.default=void 0;var a=r(n(77)).default;t.default=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(5)),o=r(n(8)),i=r(n(6)),s=r(n(3)),u=(r(n(1)),r(n(12))),l=(n(10),r(n(11))),c=n(29),d=function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:24,transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:20},fontSizeLarge:{fontSize:35}}};function f(e){var t,n=e.children,r=e.classes,l=e.className,d=e.color,f=e.component,p=e.fontSize,h=e.nativeColor,m=e.titleAccess,y=e.viewBox,v=(0,i.default)(e,["children","classes","className","color","component","fontSize","nativeColor","titleAccess","viewBox"]);return s.default.createElement(f,(0,a.default)({className:(0,u.default)(r.root,(t={},(0,o.default)(t,r["color".concat((0,c.capitalize)(d))],"inherit"!==d),(0,o.default)(t,r["fontSize".concat((0,c.capitalize)(p))],"default"!==p),t),l),focusable:"false",viewBox:y,color:h,"aria-hidden":m?"false":"true",role:m?"img":"presentation"},v),n,m?s.default.createElement("title",null,m):null)}t.styles=d,f.defaultProps={color:"inherit",component:"svg",fontSize:"default",viewBox:"0 0 24 24"},f.muiName="SvgIcon";var p=(0,l.default)(d,{name:"MuiSvgIcon"})(f);t.default=p},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(5)),o=r(n(8)),i=r(n(6)),s=r(n(13)),u=r(n(14)),l=r(n(15)),c=r(n(16)),d=r(n(17)),f=r(n(60)),p=r(n(3)),h=(r(n(1)),r(n(25))),m=r(n(12)),y=(n(10),r(n(258))),v=r(n(11)),b=r(n(412)),g=n(414),A=r(n(415)),k=r(n(423)),M={root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:"none",border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"}},disabled:{},focusVisible:{}};t.styles=M;var w=function(e){function t(){var e,n;(0,s.default)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o3&&void 0!==arguments[3]?arguments[3]:1;t.focusVisibleTimeout=setTimeout(function(){var s=(0,a.default)(n),u=function(e){var t=e.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}(s);o.focusKeyPressed&&(u===n||n.contains(u))?r():i-1})(e)&&(o.focusKeyPressed=!0,clearTimeout(o.keyUpEventTimeout),o.keyUpEventTimeout=setTimeout(function(){o.focusKeyPressed=!1},500))}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=t.DELAY_RIPPLE=void 0;var a=r(n(5)),o=r(n(6)),i=r(n(382)),s=r(n(13)),u=r(n(14)),l=r(n(15)),c=r(n(16)),d=r(n(17)),f=r(n(60)),p=r(n(3)),h=(r(n(1)),r(n(25))),m=r(n(419)),y=r(n(12)),v=r(n(11)),b=r(n(421)),g=550,A=80;t.DELAY_RIPPLE=A;var k=function(e){return{root:{display:"block",position:"absolute",overflow:"hidden",borderRadius:"inherit",width:"100%",height:"100%",left:0,top:0,pointerEvents:"none",zIndex:0},ripple:{width:50,height:50,left:0,top:0,opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"mui-ripple-enter ".concat(g,"ms ").concat(e.transitions.easing.easeInOut),animationName:"$mui-ripple-enter"},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"mui-ripple-exit ".concat(g,"ms ").concat(e.transitions.easing.easeInOut),animationName:"$mui-ripple-exit"},childPulsate:{position:"absolute",left:0,top:0,animation:"mui-ripple-pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite"),animationName:"$mui-ripple-pulsate"},"@keyframes mui-ripple-enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes mui-ripple-exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes mui-ripple-pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}};t.styles=k;var M=function(e){function t(){var e,n;(0,s.default)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,a=t.pulsate,o=void 0!==a&&a,i=t.center,s=void 0===i?n.props.center||t.pulsate:i,u=t.fakeElement,l=void 0!==u&&u;if("mousedown"===e.type&&n.ignoringMouseDown)n.ignoringMouseDown=!1;else{"touchstart"===e.type&&(n.ignoringMouseDown=!0);var c,d,p,m=l?null:h.default.findDOMNode((0,f.default)((0,f.default)(n))),y=m?m.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(y.width/2),d=Math.round(y.height/2);else{var v=e.clientX?e.clientX:e.touches[0].clientX,b=e.clientY?e.clientY:e.touches[0].clientY;c=Math.round(v-y.left),d=Math.round(b-y.top)}if(s)(p=Math.sqrt((2*Math.pow(y.width,2)+Math.pow(y.height,2))/3))%2==0&&(p+=1);else{var g=2*Math.max(Math.abs((m?m.clientWidth:0)-c),c)+2,k=2*Math.max(Math.abs((m?m.clientHeight:0)-d),d)+2;p=Math.sqrt(Math.pow(g,2)+Math.pow(k,2))}e.touches?(n.startTimerCommit=function(){n.startCommit({pulsate:o,rippleX:c,rippleY:d,rippleSize:p,cb:r})},n.startTimer=setTimeout(function(){n.startTimerCommit&&(n.startTimerCommit(),n.startTimerCommit=null)},A)):n.startCommit({pulsate:o,rippleX:c,rippleY:d,rippleSize:p,cb:r})}},n.startCommit=function(e){var t=e.pulsate,r=e.rippleX,a=e.rippleY,o=e.rippleSize,s=e.cb;n.setState(function(e){return{nextKey:e.nextKey+1,ripples:[].concat((0,i.default)(e.ripples),[p.default.createElement(b.default,{key:e.nextKey,classes:n.props.classes,timeout:{exit:g,enter:g},pulsate:t,rippleX:r,rippleY:a,rippleSize:o})])}},s)},n.stop=function(e,t){clearTimeout(n.startTimer);var r=n.state.ripples;if("touchend"===e.type&&n.startTimerCommit)return e.persist(),n.startTimerCommit(),n.startTimerCommit=null,void(n.startTimer=setTimeout(function(){n.stop(e,t)}));n.startTimerCommit=null,r&&r.length&&n.setState({ripples:r.slice(1)},t)},n}return(0,d.default)(t,e),(0,u.default)(t,[{key:"componentWillUnmount",value:function(){clearTimeout(this.startTimer)}},{key:"render",value:function(){var e=this.props,t=(e.center,e.classes),n=e.className,r=(0,o.default)(e,["center","classes","className"]);return p.default.createElement(m.default,(0,a.default)({component:"span",enter:!0,exit:!0,className:(0,y.default)(t.root,n)},r),this.state.ripples)}}]),t}(p.default.PureComponent);M.defaultProps={center:!1};var w=(0,v.default)(k,{flip:!1,name:"MuiTouchRipple"})(M);t.default=w},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(a[n]=e[n]);return a}(e,["component","childFactory"]),o=c(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o:a.default.createElement(t,r,o)},r}(a.default.Component);d.childContextTypes={transitionGroup:r.default.object.isRequired},d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};var f=(0,o.polyfill)(d);t.default=f,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=a,t.mergeChildMappings=o,t.getInitialChildMapping=function(e,t){return a(e.children,function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:i(n,"appear",e),enter:i(n,"enter",e),exit:i(n,"exit",e)})})},t.getNextChildMapping=function(e,t,n){var s=a(e.children),u=o(t,s);return Object.keys(u).forEach(function(a){var o=u[a];if((0,r.isValidElement)(o)){var l=a in t,c=a in s,d=t[a],f=(0,r.isValidElement)(d)&&!d.props.in;!c||l&&!f?c||!l||f?c&&l&&(0,r.isValidElement)(d)&&(u[a]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:d.props.in,exit:i(o,"exit",e),enter:i(o,"enter",e)})):u[a]=(0,r.cloneElement)(o,{in:!1}):u[a]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:i(o,"exit",e),enter:i(o,"enter",e)})}}),u};var r=n(3);function a(e,t){var n=Object.create(null);return e&&r.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)}),n}function o(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,a=Object.create(null),o=[];for(var i in e)i in t?o.length&&(a[i]=o,o=[]):o.push(i);var s={};for(var u in t){if(a[u])for(r=0;r2?arguments[2]:{},o=r(t);a&&(o=i.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s $item":{padding:e/2}})}),n}(0,"xs"),c.keys.reduce(function(t,n){return function(e,t,n){var r={};f.forEach(function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var a="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:a,flexGrow:0,maxWidth:a}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}}),"xs"===n?(0,i.default)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t},{}))};function h(e){var t,n=e.alignContent,r=e.alignItems,l=e.classes,c=e.className,d=e.component,f=e.container,p=e.direction,m=e.item,y=e.justify,v=e.lg,b=e.md,g=e.sm,A=e.spacing,k=e.wrap,M=e.xl,w=e.xs,D=e.zeroMinWidth,T=(0,o.default)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),x=(0,u.default)((t={},(0,a.default)(t,l.container,f),(0,a.default)(t,l.item,m),(0,a.default)(t,l.zeroMinWidth,D),(0,a.default)(t,l["spacing-xs-".concat(String(A))],f&&0!==A),(0,a.default)(t,l["direction-xs-".concat(String(p))],p!==h.defaultProps.direction),(0,a.default)(t,l["wrap-xs-".concat(String(k))],k!==h.defaultProps.wrap),(0,a.default)(t,l["align-items-xs-".concat(String(r))],r!==h.defaultProps.alignItems),(0,a.default)(t,l["align-content-xs-".concat(String(n))],n!==h.defaultProps.alignContent),(0,a.default)(t,l["justify-xs-".concat(String(y))],y!==h.defaultProps.justify),(0,a.default)(t,l["grid-xs-".concat(String(w))],!1!==w),(0,a.default)(t,l["grid-sm-".concat(String(g))],!1!==g),(0,a.default)(t,l["grid-md-".concat(String(b))],!1!==b),(0,a.default)(t,l["grid-lg-".concat(String(v))],!1!==v),(0,a.default)(t,l["grid-xl-".concat(String(M))],!1!==M),t),c);return s.default.createElement(d,(0,i.default)({className:x},T))}t.styles=p,h.defaultProps={alignContent:"stretch",alignItems:"stretch",component:"div",container:!1,direction:"row",item:!1,justify:"flex-start",lg:!1,md:!1,sm:!1,spacing:0,wrap:"wrap",xl:!1,xs:!1,zeroMinWidth:!1};var m=(0,l.default)(p,{name:"MuiGrid"})(h);t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return function(){return null}};t.default=r},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var a=r(n(5)),o=r(n(8)),i=r(n(6)),s=r(n(3)),u=(r(n(1)),r(n(12))),l=(n(10),r(n(11))),c=n(53),d=r(n(252)),f=n(29),p=function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,c.fade)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,c.fade)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,c.fade)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}};function h(e){var t,n=e.children,r=e.classes,l=e.className,c=e.color,p=e.disabled,h=(0,i.default)(e,["children","classes","className","color","disabled"]);return s.default.createElement(d.default,(0,a.default)({className:(0,u.default)(r.root,(t={},(0,o.default)(t,r["color".concat((0,f.capitalize)(c))],"default"!==c),(0,o.default)(t,r.disabled,p),t),l),centerRipple:!0,focusRipple:!0,disabled:p},h),s.default.createElement("span",{className:r.label},n))}t.styles=p,h.defaultProps={color:"default",disabled:!1};var m=(0,l.default)(p,{name:"MuiIconButton"})(h);t.default=m},function(e,t,n){var r=n(394);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(715),a=n(633);e.exports=Object.keys||function(e){return r(e,a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n,r){this.id=e,this.isRegex=t,this.value=n,this.label=r}return Object.defineProperty(e.prototype,"regex",{get:function(){return new RegExp(this.isRegex?this.value:"^"+this.value+"$")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return null===this.label},enumerable:!0,configurable:!0}),e.prototype.deflate=function(){return{id:this.id,isRegex:this.isRegex,value:this.value,label:this.label}},e.emptyPattern=function(){return new e(0,!0,"",null)},e.anyPattern=function(){return new e("any",!0,".*","Any")},e.inflate=function(t){return new e(t.id,t.isRegex,t.value,t.label)},e}();t.Pattern=r;var a=function(){function e(e,t,n,r,a){this.name=e,this.idx=t,this.cal=n,this.event=r,this.color=a}return e.prototype.deflate=function(){return{name:this.name,idx:this.idx,cal:this.cal.deflate(),event:this.event.deflate(),color:this.color}},e.defaultPatternEntry=function(t){return new e("",t,r.emptyPattern(),r.anyPattern(),{background:null})},e.inflate=function(t){return new e(t.name,t.idx,r.inflate(t.cal),r.inflate(t.event),t.color)},e}();t.PatternEntry=a},function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(3)),s=n(33),u=o(n(376)),l=n(440),c=n(78),d=function(e){return{pieChart:{margin:"0 auto"}}},f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e=this.props,t=(e.height,e.data),n={labels:{text:{fontSize:e.labelFontSize}}};return i.default.createElement(l.ResponsivePie,{data:t.map(function(e){return{id:e.name,label:e.name,value:e.value,color:e.color?e.color:c.defaultChartColor}}),margin:{top:this.props.marginTop,right:this.props.marginRight,bottom:this.props.marginBottom,left:this.props.marginLeft},innerRadius:.5,padAngle:this.props.padAngle,cornerRadius:3,colorBy:function(e){return e.color},borderWidth:this.props.borderWidth,borderColor:"inherit:darker(0.2)",radialLabelsSkipAngle:10,radialLabelsTextXOffset:6,radialLabelsTextColor:"#333333",radialLabelsLinkOffset:0,radialLabelsLinkDiagonalLength:this.props.radialLabelsLinkDiagonalLength,radialLabelsLinkHorizontalLength:24,radialLabelsLinkStrokeWidth:this.props.radialLabelsLinkStrokeWidth,radialLabelsLinkColor:"inherit",sliceLabel:function(e){return e.value.toFixed(2)+" hr"},slicesLabelsSkipAngle:10,slicesLabelsTextColor:"#ffffff",animate:!0,motionStiffness:90,motionDamping:15,theme:n,tooltipFormat:function(e){return e.toFixed(2)+" hr"}})},t.defaultProps={radialLabelsLinkStrokeWidth:1,borderWidth:1,radialLabelsLinkDiagonalLength:16,labelFontSize:12,marginTop:40,marginBottom:40,marginLeft:80,marginRight:80,padAngle:.7},t}(i.default.Component);t.PatternPieChart=f,t.StyledPatternPieChart=s.withStyles(d)(f),t.AnalyzePieChart=s.withStyles(d)(function(e){return i.default.createElement(u.default,{container:!0,spacing:0},i.default.createElement(u.default,{item:!0,md:12,lg:12,style:{height:300}},i.default.createElement(t.StyledPatternPieChart,{data:e.patternGraphData})),i.default.createElement(u.default,{item:!0,md:12,lg:12,style:{height:300}},i.default.createElement(t.StyledPatternPieChart,{data:e.calendarGraphData})))})},function(e,t,n){e.exports=n(441)},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),o=r(a),i=r(n(1)),s=n(308),u=r(n(46)),l=r(n(443)),c=r(n(444)),d=r(n(447)),f=r(n(448)),p=n(450),h=n(585),m=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},y=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},g=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},A=function(e){function t(){return m(this,t),g(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this.props,t=e.arcs,n=e.arcGenerator,r=e.startAngle,a=e.endAngle,o=e.width,i=e.height,s=e.centerX,u=e.centerY,l=e.radius,c=e.innerRadius,d=e.debug,f=e.children;return f({arcs:t,arcGenerator:n,startAngle:r,endAngle:a,width:o,height:i,centerX:s,centerY:u,radius:l,innerRadius:c,debug:d})},t}(a.Component);A.propTypes={data:i.arrayOf(i.shape({id:i.string.isRequired,value:i.number.isRequired})).isRequired,width:i.number.isRequired,height:i.number.isRequired,fit:i.bool.isRequired,sortByValue:i.bool.isRequired,startAngle:i.number.isRequired,endAngle:i.number.isRequired,padAngle:i.number.isRequired,arcs:i.array.isRequired,arcGenerator:i.func.isRequired,centerX:i.number.isRequired,centerY:i.number.isRequired,radius:i.number.isRequired,innerRadius:i.number.isRequired,cornerRadius:i.number.isRequired,debug:i.shape({points:i.array.isRequired,box:i.shape({x:i.number.isRequired,y:i.number.isRequired,width:i.number.isRequired,height:i.number.isRequired}).isRequired,ratio:i.number.isRequired}),children:i.func.isRequired};var k,M={fit:!0,sortByValue:!1,innerRadius:0,startAngle:0,endAngle:360,padAngle:0,cornerRadius:0},w=u("PieLayout")((k=A,l(d(M),p.withColors(),f(["width","height","innerRadius","startAngle","endAngle","fit","cornerRadius"],function(e){var t=e.width,n=e.height,r=e.innerRadius,a=e.startAngle,o=e.endAngle,i=e.fit,u=e.cornerRadius,l=Math.min(t,n)/2,c=l*Math.min(r,1),d=t/2,f=n/2,h=void 0;if(!0===i){var m=p.computeArcBoundingBox(d,f,l,a-90,o-90),y=m.points,v=b(m,["points"]),g=Math.min(t/v.width,n/v.height),A={width:v.width*g,height:v.height*g};A.x=(t-A.width)/2,A.y=(n-A.height)/2,d=(d-v.x)/v.width*v.width*g+A.x,f=(f-v.y)/v.height*v.height*g+A.y,h={box:v,ratio:g,points:y},l*=g,c*=g}return{centerX:d,centerY:f,radius:l,innerRadius:c,arcGenerator:s.arc().outerRadius(l).innerRadius(c).cornerRadius(u),debug:h}}),f(["sortByValue","padAngle","startAngle","endAngle"],function(e){var t=e.sortByValue,n=e.padAngle,r=e.startAngle,a=e.endAngle,o=s.pie().value(function(e){return e.value}).padAngle(p.degreesToRadians(n)).startAngle(p.degreesToRadians(r)).endAngle(p.degreesToRadians(a));return!0!==t&&o.sortValues(null),{pie:o}}),f(["pie","data"],function(e){return{arcs:(0,e.pie)(e.data).map(function(e){var t=Math.abs(e.endAngle-e.startAngle);return y({},e,{angle:t,angleDeg:p.radiansToDegrees(t)})})}}),f(["arcs","getColor"],function(e){var t=e.arcs,n=e.getColor;return{arcs:t.map(function(e){return y({},e,{color:n(e.data)})})}}),c)(k))),D=i.shape({startAngle:i.number.isRequired,endAngle:i.number.isRequired,angle:i.number.isRequired,angleDeg:i.number.isRequired,color:i.string.isRequired,data:i.shape({id:i.oneOfType([i.string,i.number]).isRequired,value:i.number.isRequired}).isRequired}),T={data:i.arrayOf(i.shape({id:i.oneOfType([i.string,i.number]),value:i.number.isRequired})).isRequired,startAngle:i.number.isRequired,endAngle:i.number.isRequired,fit:i.bool.isRequired,padAngle:i.number.isRequired,sortByValue:i.bool.isRequired,innerRadius:i.number.isRequired,cornerRadius:i.number.isRequired,borderWidth:i.number.isRequired,borderColor:i.oneOfType([i.string,i.func]),enableRadialLabels:i.bool.isRequired,radialLabel:i.oneOfType([i.string,i.func]),radialLabelsSkipAngle:i.number,radialLabelsTextXOffset:i.number,radialLabelsTextColor:i.oneOfType([i.string,i.func]),radialLabelsLinkOffset:i.number,radialLabelsLinkDiagonalLength:i.number,radialLabelsLinkHorizontalLength:i.number,radialLabelsLinkStrokeWidth:i.number,radialLabelsLinkColor:i.oneOfType([i.string,i.func]),enableSlicesLabels:i.bool.isRequired,sliceLabel:i.oneOfType([i.string,i.func]),slicesLabelsSkipAngle:i.number,slicesLabelsTextColor:i.oneOfType([i.string,i.func]),defs:i.arrayOf(i.shape({id:i.string.isRequired})).isRequired,fill:i.arrayOf(i.shape({id:i.string,match:i.oneOfType([i.oneOf(["*"]),i.object,i.func]).isRequired})).isRequired,isInteractive:i.bool,onClick:i.func.isRequired,onMouseEnter:i.func.isRequired,onMouseLeave:i.func.isRequired,lockTooltip:i.bool.isRequired,tooltipFormat:i.oneOfType([i.func,i.string]),tooltip:i.func,legends:i.arrayOf(i.shape(h.LegendPropShape)).isRequired},x={sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,startAngle:0,endAngle:p.radiansToDegrees(2*Math.PI),fit:!0,borderWidth:0,borderColor:"inherit:darker(1)",enableRadialLabels:!0,radialLabel:"id",radialLabelsTextColor:"theme",radialLabelsLinkColor:"theme",enableSlicesLabels:!0,sliceLabel:"value",slicesLabelsTextColor:"theme",defs:[],fill:[],isInteractive:!0,onClick:p.noop,onMouseEnter:p.noop,onMouseLeave:p.noop,lockTooltip:!0,legends:[]},S=function(e){var t=e.data,n=e.path,r=e.color,a=e.fill,i=e.borderWidth,s=e.borderColor,u=e.showTooltip,l=e.hideTooltip,c=e.onClick,d=e.onMouseEnter,f=e.onMouseLeave,h=e.tooltipFormat,m=e.tooltip,v=e.theme,b=function(e){return u(o.createElement(p.BasicTooltip,{id:t.label,value:t.value,enableChip:!0,color:r,theme:v,format:h,renderContent:"function"==typeof m?m.bind(null,y({color:r},t)):null}),e)};return o.createElement("path",{key:t.id,d:n,fill:a,strokeWidth:i,stroke:s,onMouseEnter:function(e){d(t,e),b(e)},onMouseMove:b,onMouseLeave:function(e){f(t,e),l(e)},onClick:c})};S.propTypes={data:i.shape({id:i.oneOfType([i.string,i.number]).isRequired,value:i.number.isRequired}).isRequired,path:i.string.isRequired,color:i.string.isRequired,fill:i.string.isRequired,borderWidth:i.number.isRequired,borderColor:i.string.isRequired,tooltipFormat:i.oneOfType([i.func,i.string]),tooltip:i.func,showTooltip:i.func.isRequired,hideTooltip:i.func.isRequired,onClick:i.func,onMouseEnter:i.func,onMouseLeave:i.func,theme:i.shape({tooltip:i.shape({}).isRequired}).isRequired};var P=l(f(["data","onClick"],function(e){var t=e.data,n=e.onClick;return{onClick:function(e){return n(t,e)}}}),c)(S),O=function(e,t){var n=t.getLabel,r=t.radius,a=t.skipAngle,o=t.linkOffset,i=t.linkDiagonalLength,s=t.linkHorizontalLength,u=t.textXOffset;return e.filter(function(e){return 0===a||e.angleDeg>a}).map(function(e){var t=p.absoluteAngleRadians(p.midAngle(e)-Math.PI/2),a=p.positionFromAngle(t,r+o),l=p.positionFromAngle(t,r+o+i),c=void 0,d=void 0,f=void 0;return p.absoluteAngleDegrees(p.radiansToDegrees(t))<90||p.absoluteAngleDegrees(p.radiansToDegrees(t))>=270?(c={x:l.x+s,y:l.y},d={x:l.x+s+u,y:l.y},f="left"):(c={x:l.x-s,y:l.y},d={x:l.x-s-u,y:l.y},f="right"),{arc:e,text:n(e.data),position:d,align:f,line:[a,l,c]}})},L=s.line().x(function(e){return e.x}).y(function(e){return e.y}),E=function(e){function t(){return m(this,t),g(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this.props,t=e.arcs,n=e.label,r=e.radius,i=e.skipAngle,s=e.linkOffset,u=e.linkDiagonalLength,l=e.linkHorizontalLength,c=e.linkStrokeWidth,d=e.textXOffset,f=e.textColor,h=e.linkColor,m=e.theme;return O(t,{getLabel:n,radius:r,skipAngle:i,linkOffset:s,linkDiagonalLength:u,linkHorizontalLength:l,textXOffset:d}).map(function(e){return o.createElement(a.Fragment,{key:e.arc.data.id},o.createElement("path",{d:L(e.line),fill:"none",style:{fill:"none",stroke:h(e.arc,m)},strokeWidth:c}),o.createElement("g",{transform:"translate("+e.position.x+", "+e.position.y+")"},o.createElement("text",{textAnchor:p.textPropsByEngine.svg.align[e.align],dy:"0.3em",style:y({},m.labels.text,{fill:f(e.arc.data,m)})},e.text)))})},t}(a.Component);E.propTypes={arcs:i.arrayOf(D).isRequired,label:i.func.isRequired,skipAngle:i.number.isRequired,radius:i.number.isRequired,linkOffset:i.number.isRequired,linkDiagonalLength:i.number.isRequired,linkHorizontalLength:i.number.isRequired,linkStrokeWidth:i.number.isRequired,textXOffset:i.number.isRequired,textColor:i.func.isRequired,linkColor:i.func.isRequired,theme:i.shape({axis:p.axisThemePropType.isRequired,labels:p.labelsThemePropType.isRequired}).isRequired},E.defaultProps={skipAngle:0,linkOffset:0,linkDiagonalLength:16,linkHorizontalLength:24,linkStrokeWidth:1,textXOffset:6};var C={pointerEvents:"none"},j=function(e){function t(){return m(this,t),g(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this.props,t=e.arcs,n=e.label,r=e.radius,i=e.skipAngle,s=e.innerRadius,u=e.textColor,l=e.theme,c=s+(r-s)/2;return o.createElement(a.Fragment,null,t.filter(function(e){return 0===i||e.angleDeg>i}).map(function(e){var t=p.midAngle(e)-Math.PI/2,r=p.positionFromAngle(t,c);return o.createElement("g",{key:e.data.id,transform:"translate("+r.x+", "+r.y+")",style:C},o.createElement("text",{textAnchor:"middle",style:y({},l.labels.text,{fill:u(e.data,l)})},n(e.data)))}))},t}(a.Component);j.propTypes={arcs:i.arrayOf(D).isRequired,label:i.oneOfType([i.string,i.func]),skipAngle:i.number.isRequired,radius:i.number.isRequired,innerRadius:i.number.isRequired,textColor:i.func.isRequired,theme:i.shape({labels:p.labelsThemePropType.isRequired}).isRequired},j.defaultProps={skipAngle:0};var Y=function(e){function t(){return m(this,t),g(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this.props,t=e.width,n=e.height,r=e.legends,a=e.data,i=e.theme;return r.map(function(e,r){return o.createElement(h.BoxLegendSvg,y({key:r},e,{containerWidth:t,containerHeight:n,data:a,theme:i}))})},t}(a.Component);Y.propTypes={width:i.number.isRequired,height:i.number.isRequired,arcs:i.arrayOf(D).isRequired,data:i.arrayOf(i.object).isRequired,legends:i.arrayOf(i.shape(h.LegendPropShape)).isRequired,theme:p.themePropType.isRequired};var R=u("PieLegends")(function(e){return l(f(["arcs"],function(e){return{data:e.arcs.map(function(e){return{id:e.data.id,label:e.data.id,color:e.color,fill:e.fill}})}}),c)(e)}(Y)),_=function(e){function t(){return m(this,t),g(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this.props,t=e.data,n=e.sortByValue,r=e.startAngle,a=e.endAngle,i=e.padAngle,s=e.fit,u=e.innerRadius,l=e.cornerRadius,c=e.margin,d=e.width,f=e.height,h=e.outerWidth,m=e.outerHeight,y=e.colors,v=e.colorBy,b=e.borderWidth,g=e.borderColor,A=e.enableRadialLabels,k=e.getRadialLabel,M=e.radialLabelsSkipAngle,D=e.radialLabelsLinkOffset,T=e.radialLabelsLinkDiagonalLength,x=e.radialLabelsLinkHorizontalLength,S=e.radialLabelsLinkStrokeWidth,O=e.radialLabelsTextXOffset,L=e.radialLabelsTextColor,C=e.radialLabelsLinkColor,Y=e.enableSlicesLabels,_=e.getSliceLabel,N=e.slicesLabelsSkipAngle,F=e.slicesLabelsTextColor,I=e.theme,H=e.defs,B=e.fill,z=e.isInteractive,W=e.onClick,V=e.onMouseEnter,q=e.onMouseLeave,U=e.tooltipFormat,G=e.tooltip,K=e.legends,Z=p.getInheritedColorGenerator(g);return o.createElement(w,{width:d,height:f,data:t,sortByValue:n,startAngle:r,endAngle:a,fit:s,padAngle:i,innerRadius:u,cornerRadius:l,colors:y,colorBy:v},function(e){var t=e.centerX,n=e.centerY,r=e.radius,a=e.innerRadius,i=e.arcs,s=e.arcGenerator,u=p.bindDefs(H,i,B,{dataKey:"data"});return o.createElement(p.Container,{isInteractive:z,theme:I},function(e){var l=e.showTooltip,y=e.hideTooltip;return o.createElement(p.SvgWrapper,{width:h,height:m,margin:c,defs:u,theme:I},o.createElement("g",{transform:"translate("+t+","+n+")"},i.map(function(e){return o.createElement(P,{key:e.data.id,data:e.data,path:s(e),color:e.color,fill:e.fill?e.fill:e.color,borderWidth:b,borderColor:Z(e),showTooltip:l,hideTooltip:y,tooltipFormat:U,tooltip:G,onClick:W,onMouseEnter:V,onMouseLeave:q,theme:I})}),A&&o.createElement(E,{arcs:i,radius:r,label:k,skipAngle:M,linkOffset:D,linkDiagonalLength:T,linkHorizontalLength:x,linkStrokeWidth:S,textXOffset:O,textColor:p.getInheritedColorGenerator(L,"labels.text.fill"),linkColor:p.getInheritedColorGenerator(C,"axis.ticks.line.stroke"),theme:I}),Y&&o.createElement(j,{arcs:i,radius:r,innerRadius:a,theme:I,label:_,skipAngle:N,textColor:p.getInheritedColorGenerator(F,"labels.text.fill")})),o.createElement(R,{width:d,height:f,arcs:i,legends:K,theme:I}))})})},t}(a.Component);_.propTypes=T;var N=u("Pie")(function(e){return l(d(x),p.withTheme(),p.withDimensions(),f(["radialLabel"],function(e){var t=e.radialLabel;return{getRadialLabel:p.getLabelGenerator(t)}}),f(["sliceLabel"],function(e){var t=e.sliceLabel;return{getSliceLabel:p.getLabelGenerator(t)}}),c)(e)}(_)),F=function(e){var t=e.data,n=e.color,r=e.tooltipFormat,a=e.tooltip,i=e.theme;return o.createElement(p.BasicTooltip,{id:t.label,value:t.value,enableChip:!0,color:n,theme:i,format:r,renderContent:"function"==typeof a?a.bind(null,y({color:n},t)):null})};F.propTypes={data:i.shape({id:i.oneOfType([i.string,i.number]).isRequired,value:i.number.isRequired}).isRequired,color:i.string.isRequired,tooltipFormat:i.oneOfType([i.func,i.string]),tooltip:i.func,theme:i.shape({tooltip:i.shape({}).isRequired}).isRequired};var I=c(F),H=function(e){function t(){var n,r;m(this,t);for(var a=arguments.length,i=Array(a),s=0;s0&&t.ctx.stroke()}),!0===b){var w=e.sliceLabel,D=e.slicesLabelsSkipAngle,T=e.slicesLabelsTextColor;!function(e,t,n){var r=n.arcGenerator,a=n.getLabel,o=n.skipAngle,i=n.getTextColor,s=n.theme;e.textAlign="center",e.textBaseline="middle",e.font=s.labels.text.fontSize+"px "+(s.labels.text.fontFamily||"sans-serif"),t.filter(function(e){return 0===o||e.angleDeg>o}).forEach(function(t){var n=r.centroid(t),o=n[0],u=n[1],l=a(t.data),c=i(t,s);e.save(),e.translate(o,u),e.fillStyle=c,e.fillText(l,0,0),e.restore()})}(this.ctx,n,{arcGenerator:r,skipAngle:D,getLabel:p.getLabelGenerator(w),getTextColor:p.getInheritedColorGenerator(T,"labels.text.fill"),theme:k})}if(!0===g){var x=e.radialLabel,S=e.radialLabelsSkipAngle,P=e.radialLabelsLinkOffset,L=e.radialLabelsLinkStrokeWidth,E=e.radialLabelsLinkDiagonalLength,C=e.radialLabelsLinkHorizontalLength,j=e.radialLabelsTextXOffset,Y=e.radialLabelsTextColor,R=e.radialLabelsLinkColor;!function(e,t,n){var r=n.radius,a=n.getLabel,o=n.skipAngle,i=n.linkOffset,s=n.linkDiagonalLength,u=n.linkHorizontalLength,l=n.linkStrokeWidth,c=n.textXOffset,d=n.getTextColor,f=n.getLinkColor,h=n.theme,m=O(t,{getLabel:a,radius:r,skipAngle:o,linkOffset:i,linkDiagonalLength:s,linkHorizontalLength:u,textXOffset:c});e.textBaseline="middle",e.font=h.labels.text.fontSize+"px "+(h.labels.text.fontFamily||"sans-serif"),m.forEach(function(t){var n=y({},t.arc.data,{color:t.arc.color});e.save(),e.translate(t.position.x,t.position.y),e.fillStyle=d(n,h),e.textAlign=p.textPropsByEngine.canvas.align[t.align],e.fillText(t.text,0,0),e.restore(),e.beginPath(),e.strokeStyle=f(n,h),e.lineWidth=l,t.line.forEach(function(t,n){0===n?e.moveTo(t.x,t.y):e.lineTo(t.x,t.y)}),l>0&&e.stroke()})}(this.ctx,n,{radius:u,getLabel:p.getLabelGenerator(x),skipAngle:S,linkOffset:P,linkDiagonalLength:E,linkHorizontalLength:C,linkStrokeWidth:L,textXOffset:j,getTextColor:p.getInheritedColorGenerator(Y,"labels.text.fill"),getLinkColor:p.getInheritedColorGenerator(R,"axis.ticks.line.stroke"),theme:k})}this.ctx.restore(),A.forEach(function(e){h.renderLegendToCanvas(t.ctx,y({},e,{data:n.map(function(e){return{id:e.data.id,label:e.data.id,color:e.color}}),containerWidth:a,containerHeight:o}))})},t.prototype.render=function(){var e=this,t=this.props,n=t.outerWidth,r=t.outerHeight,a=t.pixelRatio,i=t.isInteractive,s=t.theme;return o.createElement(p.Container,{isInteractive:i,theme:s},function(t){var i=t.showTooltip,s=t.hideTooltip;return o.createElement("canvas",{ref:function(t){e.surface=t},width:n*a,height:r*a,style:{width:n,height:r},onMouseEnter:e.handleMouseHover(i,s),onMouseMove:e.handleMouseHover(i,s),onMouseLeave:e.handleMouseLeave(s),onClick:e.handleClick})})},t}(a.Component);H.propTypes={arcs:i.arrayOf(D).isRequired,arcGenerator:i.func.isRequired,pixelRatio:i.number.isRequired,outerWidth:i.number.isRequired,outerHeight:i.number.isRequired,centerX:i.number.isRequired,centerY:i.number.isRequired,margin:i.object.isRequired,radius:i.number.isRequired,innerRadius:i.number.isRequired,isInteractive:i.bool.isRequired,onClick:i.func.isRequired,theme:i.object.isRequired};var B=function(e){function t(){return m(this,t),g(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this.props,t=e.data,n=e.sortByValue,r=e.startAngle,a=e.endAngle,i=e.fit,s=e.padAngle,u=e.innerRadius,l=e.cornerRadius,c=e.width,d=e.height,f=e.colors,p=e.colorBy,h=b(e,["data","sortByValue","startAngle","endAngle","fit","padAngle","innerRadius","cornerRadius","width","height","colors","colorBy"]);return o.createElement(w,{width:c,height:d,data:t,sortByValue:n,startAngle:r,endAngle:a,fit:i,padAngle:s,innerRadius:u,cornerRadius:l,colors:f,colorBy:p},function(e){return o.createElement(H,y({},h,e))})},t}(a.Component);B.propTypes=T;var z=u("PieCanvas")(function(e){return l(d(x),p.withTheme(),p.withDimensions(),c)(e)}(B));t.PieLayout=w,t.Pie=N,t.ResponsivePie=function(e){return o.createElement(p.ResponsiveWrapper,null,function(t){var n=t.width,r=t.height;return o.createElement(N,y({width:n,height:r},e))})},t.PieCanvas=z,t.ResponsivePieCanvas=function(e){return o.createElement(p.ResponsiveWrapper,null,function(t){var n=t.width,r=t.height;return o.createElement(z,y({width:n,height:r},e))})},t.arcPropType=D,t.PiePropTypes=T,t.PieDefaultProps=x},function(e,t,n){"use strict";t.__esModule=!0;t.default=function(e,t){return function(n){return n[e]=t,n}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},W=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},V={position:"relative"},q={pointerEvents:"none",position:"absolute",zIndex:10},U={showTooltip:F,hideTooltip:F},G=function(e){function t(){var n,r;I(this,t);for(var a=arguments.length,o=Array(a),i=0;i0&&r>0;return o.createElement(s,{bounds:!0,onResize:function(t){e.setState({dimensions:t.bounds})}},function(t){var i=t.measureRef;return o.createElement("div",{ref:i,style:{width:"100%",height:"100%"}},a&&e.props.children({width:n,height:r}))})},t}(a.Component);K.propTypes={children:i.func.isRequired};var Z=function(e){var t=e.id,n=e.colors;return o.createElement("linearGradient",{id:t,x1:0,x2:0,y1:0,y2:1},n.map(function(e){var t=e.offset,n=e.color,r=e.opacity;return o.createElement("stop",{key:t,offset:t+"%",stopColor:n,stopOpacity:void 0!==r?r:1})}))};Z.propTypes={id:i.string.isRequired,colors:i.arrayOf(i.shape({offset:i.number.isRequired,color:i.string.isRequired})).isRequired};var Q={linearGradient:Z},X=u(function(e){var t=e.id,n=e.background,r=e.color,a=e.size,i=e.padding,s=e.stagger,u=a+i,l=a/2,c=i/2;return!0===s&&(u=2*a+2*i),o.createElement("pattern",{id:t,width:u,height:u,patternUnits:"userSpaceOnUse"},o.createElement("rect",{width:u,height:u,fill:n}),o.createElement("circle",{cx:c+l,cy:c+l,r:l,fill:r}),s&&o.createElement("circle",{cx:1.5*i+a+l,cy:1.5*i+a+l,r:l,fill:r}))});X.propTypes={id:i.string.isRequired,color:i.string.isRequired,background:i.string.isRequired,size:i.number.isRequired,padding:i.number.isRequired,stagger:i.bool.isRequired},X.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var J=2*Math.PI,$=function(e){return e*Math.PI/180},ee=function(e){return 180*e/Math.PI},te=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},ne={svg:{align:{left:"start",center:"middle",right:"end"},baseline:{top:"before-edge",center:"central",bottom:"after-edge"}},canvas:{align:{left:"left",center:"center",right:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},re=u(function(e){var t=e.id,n=e.spacing,r=e.rotation,a=e.background,i=e.color,s=e.lineWidth,u=Math.round(r)%360,l=Math.abs(n);u>180?u-=360:u>90?u-=180:u<-180?u+=360:u<-90&&(u+=180);var c=l,d=l,f=void 0;return 0===u?f="\n M 0 0 L "+c+" 0\n M 0 "+d+" L "+c+" "+d+"\n ":90===u?f="\n M 0 0 L 0 "+d+"\n M "+c+" 0 L "+c+" "+d+"\n ":(c=Math.abs(l/Math.sin($(u))),d=l/Math.sin($(90-u)),f=u>0?"\n M 0 "+-d+" L "+2*c+" "+d+"\n M "+-c+" "+-d+" L "+c+" "+d+"\n M "+-c+" 0 L "+c+" "+2*d+"\n ":"\n M "+-c+" "+d+" L "+c+" "+-d+"\n M "+-c+" "+2*d+" L "+2*c+" "+-d+"\n M 0 "+2*d+" L "+2*c+" 0\n "),o.createElement("pattern",{id:t,width:c,height:d,patternUnits:"userSpaceOnUse"},o.createElement("rect",{width:c,height:d,fill:a,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),o.createElement("path",{d:f,strokeWidth:s,stroke:i,strokeLinecap:"square"}))});re.propTypes={id:i.string.isRequired,spacing:i.number.isRequired,rotation:i.number.isRequired,background:i.string.isRequired,color:i.string.isRequired,lineWidth:i.number.isRequired},re.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var ae=u(function(e){var t=e.id,n=e.background,r=e.color,a=e.size,i=e.padding,s=e.stagger,u=a+i,l=i/2;return!0===s&&(u=2*a+2*i),o.createElement("pattern",{id:t,width:u,height:u,patternUnits:"userSpaceOnUse"},o.createElement("rect",{width:u,height:u,fill:n}),o.createElement("rect",{x:l,y:l,width:a,height:a,fill:r}),s&&o.createElement("rect",{x:1.5*i+a,y:1.5*i+a,width:a,height:a,fill:r}))});ae.propTypes={id:i.string.isRequired,color:i.string.isRequired,background:i.string.isRequired,size:i.number.isRequired,padding:i.number.isRequired,stagger:i.bool.isRequired},ae.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var oe={patternDots:X,patternLines:re,patternSquares:ae},ie=H({},Q,oe),se=u(function(e){var t=e.defs;return!t||t.length<1?null:o.createElement("defs",null,t.map(function(e){var t=e.type,n=z(e,["type"]);return ie[t]?o.createElement(ie[t],H({key:n.id},n)):null}))});se.propTypes={defs:i.arrayOf(i.shape({type:i.oneOf(Object.keys(ie)).isRequired,id:i.string.isRequired}))};var ue=i.shape({domain:i.shape({line:i.shape({stroke:i.string.isRequired,strokeWidth:i.number.isRequired,strokeDasharray:i.string}).isRequired}).isRequired,ticks:i.shape({line:i.shape({stroke:i.string.isRequired,strokeWidth:i.number.isRequired,strokeDasharray:i.string}).isRequired,text:i.shape({fill:i.string.isRequired,fontSize:i.number.isRequired}).isRequired}).isRequired,legend:i.shape({text:i.shape({fill:i.string.isRequired,fontSize:i.number.isRequired}).isRequired}).isRequired}),le=i.shape({line:i.shape({stroke:i.string.isRequired,strokeWidth:i.number.isRequired,strokeDasharray:i.string}).isRequired}),ce=i.shape({text:i.shape({fill:i.string.isRequired,fontSize:i.number.isRequired}).isRequired}),de=i.shape({text:i.shape({fill:i.string.isRequired,fontSize:i.number.isRequired}).isRequired}),fe=i.shape({text:i.shape({fill:i.string.isRequired,fontSize:i.number.isRequired}).isRequired}),pe=i.shape({background:i.string.isRequired,axis:ue.isRequired,grid:le.isRequired,legends:ce.isRequired,labels:de.isRequired,dots:fe.isRequired}),he={background:"transparent",axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777",strokeWidth:1},text:{fill:"#333333",fontSize:11}},legend:{text:{fill:"#333333",fontSize:11}}},grid:{line:{stroke:"#ddd",strokeWidth:1}},legends:{text:{fill:"#333333",fontSize:11}},labels:{text:{fill:"#333333",fontSize:11}},markers:{lineColor:"#000",lineStrokeWidth:1,textColor:"#333333",fontSize:11},dots:{text:{fill:"#333333",fontSize:11}},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"},table:{},tableCell:{padding:"3px 5px"}}},me=function(e){var t=e.width,n=e.height,r=e.margin,a=e.defs,i=e.children,s=e.theme;return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",role:"img",width:t,height:n},o.createElement(se,{defs:a}),o.createElement("rect",{width:t,height:n,fill:s.background}),o.createElement("g",{transform:"translate("+r.left+","+r.top+")"},i))};me.propTypes={width:i.number.isRequired,height:i.number.isRequired,margin:i.shape({top:i.number.isRequired,left:i.number.isRequired}).isRequired,defs:i.array,children:i.oneOfType([i.arrayOf(i.node),i.node]).isRequired,theme:pe.isRequired};var ye=function(e,t){return"number"!=typeof e?{value:e,config:t,interpolator:t&&t.interpolator?t.interpolator:c.interpolate}:l.spring(e,t)},ve=function(e){function t(){var n,r;I(this,t);for(var a=arguments.length,o=Array(a),i=0;i0?(x=v.align.right,S=v.baseline.center):("bottom"===b&&d>0||"top"===b&&d<0)&&(x=v.align.left,S=v.baseline.center)):gt.includes(b)&&(T=function(e){return{x:0,y:A(e)}},k.lineX=s*("right"===b?1:-1),M.textX=(s+l)*("right"===b?1:-1),"right"===b?(w=t,x=v.align.left):x=v.align.right),{x:w,y:D,ticks:y.map(function(e){return H({key:e,value:e},T(e),k,M)}),textAlign:x,textBaseline:S}},wt=function(e){var t=e.width,n=e.height,r=e.scale,a=e.axis,o=e.values,i=void 0===o?kt(r):o,s=r.bandwidth?At(r):r,u=void 0;return"x"===a?u=i.map(function(e){return{key:""+e,x1:s(e),x2:s(e),y1:0,y2:n}}):"y"===a&&(u=i.map(function(e){return{key:""+e,x1:0,x2:t,y1:s(e),y2:s(e)}})),u},Dt=function(e){function t(){return I(this,t),W(this,e.apply(this,arguments))}return B(t,e),t.prototype.render=function(){var e=this.props,t=e.value,n=e.x,r=e.y,a=e.opacity,i=e.rotate,s=e.format,u=e.lineX,l=e.lineY,c=e.onClick,d=e.textX,f=e.textY,p=e.textBaseline,h=e.textAnchor,m=e.theme,y=t;void 0!==s&&(y=s(y));var v={opacity:a};return c&&(v.cursor="pointer"),o.createElement("g",H({transform:"translate("+n+","+r+")"},c?{onClick:function(e){return c(e,y)}}:{},{style:v}),o.createElement("line",{x1:0,x2:u,y1:0,y2:l,style:m.axis.ticks.line}),o.createElement("text",{alignmentBaseline:p,textAnchor:h,transform:"translate("+d+","+f+") rotate("+i+")",style:m.axis.ticks.text},y))},t}(a.Component);Dt.propTypes={value:i.oneOfType([i.number,i.string,i.instanceOf(Date)]).isRequired,format:i.func,x:i.number.isRequired,y:i.number.isRequired,lineX:i.number.isRequired,lineY:i.number.isRequired,textX:i.number.isRequired,textY:i.number.isRequired,textBaseline:i.string.isRequired,textAnchor:i.string.isRequired,opacity:i.number.isRequired,rotate:i.number.isRequired,onClick:i.func,theme:i.shape({axis:ue.isRequired}).isRequired},Dt.defaultProps={opacity:1,rotate:0};var Tt=["top","right","bottom","left"],xt=["start","center","end"],St=i.shape({orient:i.oneOf(Tt),tickValues:i.oneOfType([i.number,i.arrayOf(i.oneOfType([i.number,i.string,i.instanceOf(Date)]))]),tickSize:i.number,tickPadding:i.number,tickRotation:i.number,format:i.oneOfType([i.func,i.string]),legend:i.node,legendPosition:i.oneOf(xt),legendOffset:i.number}),Pt=function(){return{opacity:0,x:0,y:0}},Ot=function(e){return function(t){var n=t.style,r=n.x,a=n.y;return{opacity:l.spring(0,e),x:l.spring(r.val,e),y:l.spring(a.val,e)}}},Lt=function(e){var t=e.scale,n=e.width,r=e.height,a=e.position,i=e.tickValues,s=e.tickSize,u=e.tickPadding,c=e.tickRotation,d=e.format,f=e.legend,p=e.legendPosition,h=e.legendOffset,m=e.theme,y=e.animate,v=e.motionStiffness,b=e.motionDamping,g=e.onClick,A=Mt({width:n,height:r,scale:t,position:a,tickValues:i,tickSize:s,tickPadding:u,tickRotation:c}),k=A.x,M=A.y,w=A.ticks,D=A.textAlign,T=A.textBaseline,x=["top","bottom"].includes(a),S=null;if(void 0!==f){var P=0,O=0,L=0,E=void 0;!x?(L=-90,P=h,"start"===p?(E="start",O=r):"center"===p?(E="middle",O=r/2):"end"===p&&(E="end")):(O=h,"start"===p?E="start":"center"===p?(E="middle",P=n/2):"end"===p&&(E="end",P=n)),S=o.createElement("text",{transform:"translate("+P+", "+O+") rotate("+L+")",textAnchor:E,style:m.axis.legend.text},f)}var C=void 0;if(y){var j={stiffness:v,damping:b};C=o.createElement(l.TransitionMotion,{willEnter:Pt,willLeave:Ot(j),styles:w.map(function(e){return{key:""+e.key,data:e,style:{opacity:l.spring(1,j),x:l.spring(e.x,j),y:l.spring(e.y,j)}}})},function(e){return o.createElement("g",null,e.map(function(e){var t=e.key,n=e.style,r=e.data;return o.createElement(Dt,H({key:t,value:t,format:d,lineX:r.lineX,lineY:r.lineY,rotate:c,textX:r.textX,textY:r.textY,textBaseline:T,textAnchor:D,theme:m},g?{onClick:g}:{},n))}))})}else C=o.createElement("g",null,w.map(function(e){return o.createElement(Dt,H({key:e.key,value:e.key,format:d,lineX:e.lineX,lineY:e.lineY,rotate:c,textX:e.textX,textY:e.textY,textBaseline:T,textAnchor:D,theme:m,x:e.x,y:e.y},g?{onClick:g}:{}))}));return o.createElement("g",{transform:"translate("+k+","+M+")"},S,C,o.createElement("line",{style:m.axis.domain.line,x1:0,x2:x?n:0,y1:0,y2:x?0:r}))};Lt.propTypes=H({width:i.number.isRequired,height:i.number.isRequired,position:i.oneOf(Tt).isRequired,scale:i.func.isRequired,tickValues:i.oneOfType([i.number,i.arrayOf(i.oneOfType([i.number,i.string,i.instanceOf(Date)]))]),tickSize:i.number.isRequired,tickPadding:i.number.isRequired,tickRotation:i.number.isRequired,format:i.oneOfType([i.func,i.string]),legend:i.node,legendPosition:i.oneOf(xt).isRequired,legendOffset:i.number.isRequired,theme:i.shape({axis:ue.isRequired}).isRequired,onClick:i.func},dt),Lt.defaultProps={tickSize:5,tickPadding:5,tickRotation:0,legendPosition:"end",legendOffset:0};var Et=p(vt(),h(["format","scale"],function(e){var t=e.format,n=e.scale;if(!t||d(t))return{format:t};if("time"===n.type){var r=j.timeFormat(t);return{format:function(e){return r(new Date(e))}}}return{format:f.format(t)}}),u)(Lt),Ct=["top","bottom"],jt=[].concat(Ct,["left","right"]),Yt=function(e){var t=e.xScale,n=e.yScale,r=e.width,a=e.height,i=e.top,s=e.right,u=e.bottom,l=e.left,c=e.theme,d=e.animate,f=e.motionStiffness,p=e.motionDamping,h={top:i,right:s,bottom:u,left:l};return o.createElement("g",null,jt.map(function(e){var i=h[e];if(!i)return null;var s=Ct.includes(e)?t:n;return o.createElement(Et,H({theme:c},i,{key:e,width:r,height:a,position:e,scale:s,animate:d,motionDamping:p,motionStiffness:f}))}))};Yt.propTypes=H({xScale:i.func.isRequired,yScale:i.func.isRequired,width:i.number.isRequired,height:i.number.isRequired,top:St,right:St,bottom:St,left:St,theme:i.shape({axis:ue.isRequired}).isRequired},dt);var Rt=Y(function(e,t){return!(e.xScale===t.xScale&&e.yScale===t.yScale&&e.width===t.width&&e.height===t.height&&e.theme===t.theme&&e.animate===t.animate&&e.motionDamping===t.motionDamping&&e.motionStiffness===t.motionStiffness&&O(e.top,t.top)&&O(e.right,t.right)&&O(e.bottom,t.bottom)&&O(e.left,t.left))})(Yt),_t=function(e){return o.createElement("line",e)};_t.propTypes={x1:i.number.isRequired,x2:i.number.isRequired,y1:i.number.isRequired,y2:i.number.isRequired},_t.defaultProps={x1:0,x2:0,y1:0,y2:0};var Nt=function(e){function t(n){I(this,t);var r=W(this,e.call(this,n));return r.willEnter=r.willEnter.bind(r),r.willLeave=r.willLeave.bind(r),r}return B(t,e),t.prototype.willEnter=function(e){var t=e.style,n=this.props.type;return{opacity:0,x1:"x"===n?0:t.x1.val,x2:"x"===n?0:t.x2.val,y1:"y"===n?0:t.y1.val,y2:"y"===n?0:t.y2.val}},t.prototype.willLeave=function(e){var t=e.style,n=this.props,r={stiffness:n.motionStiffness,damping:n.motionDamping};return{opacity:l.spring(0,r),x1:l.spring(t.x1.val,r),x2:l.spring(t.x2.val,r),y1:l.spring(t.y1.val,r),y2:l.spring(t.y2.val,r)}},t.prototype.render=function(){var e=this.props,t=e.lines,n=e.animate,r=e.motionStiffness,a=e.motionDamping,i=e.theme;if(!n)return o.createElement("g",null,t.map(function(e){return o.createElement(_t,H({key:e.key},e,i.grid.line))}));var s={stiffness:r,damping:a};return o.createElement(l.TransitionMotion,{willEnter:this.willEnter,willLeave:this.willLeave,styles:t.map(function(e){return{key:e.key,style:{opacity:l.spring(1,s),x1:l.spring(e.x1||0,s),x2:l.spring(e.x2||0,s),y1:l.spring(e.y1||0,s),y2:l.spring(e.y2||0,s)}}})},function(e){return o.createElement("g",null,e.map(function(e){var t=e.key,n=e.style;return o.createElement(_t,H({key:t},i.grid.line,n))}))})},t}(a.Component);Nt.propTypes={type:i.oneOf(["x","y"]).isRequired,lines:i.arrayOf(i.shape({key:i.string.isRequired,x1:i.number,x2:i.number,y1:i.number,y2:i.number})).isRequired,theme:i.object.isRequired,animate:i.bool.isRequired,motionStiffness:i.number.isRequired,motionDamping:i.number.isRequired};var Ft=function(e){var t=e.width,n=e.height,r=e.xScale,a=e.yScale,i=e.xValues,s=e.yValues,u=e.theme,l=e.animate,c=e.motionStiffness,d=e.motionDamping,f=!!r&&wt({width:t,height:n,scale:r,axis:"x",values:i}),p=!!a&&wt({width:t,height:n,scale:a,axis:"y",values:s});return o.createElement("g",null,f&&o.createElement(Nt,{type:"x",lines:f,theme:u,animate:l,motionStiffness:c,motionDamping:d}),p&&o.createElement(Nt,{type:"y",lines:p,theme:u,animate:l,motionStiffness:c,motionDamping:d}))};Ft.propTypes=H({width:i.number.isRequired,height:i.number.isRequired,xScale:i.func,yScale:i.func,xValues:i.arrayOf(i.oneOfType([i.number,i.string])),yValues:i.arrayOf(i.oneOfType([i.number,i.string])),theme:i.object.isRequired},dt),Ft.defaultProps={animate:!0,motionStiffness:90,motionDamping:13};var It=u(Ft),Ht=function(e){var t=e.width,n=e.height,r=e.axis,a=e.scale,i=e.value,s=e.theme,u=e.lineStyle,l=e.textStyle,c=e.legend,d=e.legendPosition,f=e.legendOffsetX,p=e.legendOffsetY,h=e.legendOrientation,m=0,y=0,v=0,b=0;"y"===r?(v=a(i),y=t):(m=a(i),b=n);var g=null;if(c){var A=function(e){var t=e.axis,n=e.width,r=e.height,a=e.position,o=e.offsetX,i=e.offsetY,s=e.orientation,u=0,l=0,c="vertical"===s?-90:0,d="start";if("x"===t)switch(a){case"top-left":u=-o,l=i,d="end";break;case"top":l=-i,d="horizontal"===s?"middle":"start";break;case"top-right":u=o,l=i,d="horizontal"===s?"start":"end";break;case"right":u=o,l=r/2,d="horizontal"===s?"start":"middle";break;case"bottom-right":u=o,l=r-i,d="start";break;case"bottom":l=r+i,d="horizontal"===s?"middle":"end";break;case"bottom-left":l=r-i,u=-o,d="horizontal"===s?"end":"start";break;case"left":u=-o,l=r/2,d="horizontal"===s?"end":"middle"}else switch(a){case"top-left":u=o,l=-i,d="start";break;case"top":u=n/2,l=-i,d="horizontal"===s?"middle":"start";break;case"top-right":u=n-o,l=-i,d="horizontal"===s?"end":"start";break;case"right":u=n+o,d="horizontal"===s?"start":"middle";break;case"bottom-right":u=n-o,l=i,d="end";break;case"bottom":u=n/2,l=i,d="horizontal"===s?"middle":"end";break;case"bottom-left":u=o,l=i,d="horizontal"===s?"start":"end";break;case"left":u=-o,d="horizontal"===s?"end":"middle"}return{x:u,y:l,rotation:c,textAnchor:d}}({axis:r,width:t,height:n,position:d,offsetX:f,offsetY:p,orientation:h});g=o.createElement("text",{transform:"translate("+A.x+", "+A.y+") rotate("+A.rotation+")",textAnchor:A.textAnchor,alignmentBaseline:"central",style:l},c)}return o.createElement("g",{transform:"translate("+m+", "+v+")"},o.createElement("line",{x1:0,x2:y,y1:0,y2:b,stroke:s.markers.lineColor,strokeWidth:s.markers.lineStrokeWidth,style:u}),g)};Ht.propTypes={width:i.number.isRequired,height:i.number.isRequired,axis:i.oneOf(["x","y"]).isRequired,scale:i.func.isRequired,value:i.oneOfType([i.number,i.string]).isRequired,lineStyle:i.object,textStyle:i.object,legend:i.string,legendPosition:i.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:i.number.isRequired,legendOffsetY:i.number.isRequired,legendOrientation:i.oneOf(["horizontal","vertical"]).isRequired,theme:i.shape({markers:i.shape({textColor:i.string.isRequired,fontSize:i.oneOfType([i.number,i.string]).isRequired}).isRequired}).isRequired},Ht.defaultProps={legendPosition:"top-right",legendOffsetX:14,legendOffsetY:14,legendOrientation:"horizontal"};var Bt=u(Ht),zt=function(e){var t=e.markers,n=e.width,r=e.height,a=e.xScale,i=e.yScale,s=e.theme;return t&&0!==t.length?o.createElement("g",null,t.map(function(e,t){return o.createElement(Bt,H({key:t},e,{width:n,height:r,scale:"y"===e.axis?i:a,theme:s}))})):null};zt.propTypes={width:i.number.isRequired,height:i.number.isRequired,xScale:i.func.isRequired,yScale:i.func.isRequired,theme:i.shape({markers:i.shape({lineColor:i.string.isRequired,lineStrokeWidth:i.number.isRequired,textColor:i.string.isRequired,fontSize:i.oneOfType([i.number,i.string]).isRequired}).isRequired}).isRequired,markers:i.arrayOf(i.shape({axis:i.oneOf(["x","y"]).isRequired,value:i.oneOfType([i.number,i.string]).isRequired,lineStyle:i.object,textStyle:i.object}))};var Wt=u(zt),Vt=function(e,t,n,r){var a=n-e,o=r-t;return a*=a,o*=o,Math.sqrt(a+o)},qt=function(e,t,n,r){var a=Math.atan2(r-t,n-e)-Math.PI/2;return a>0?a:2*Math.PI+a},Ut=function(e,t,n,r,a,o){var i=Vt(a,o,e,t);return ir},Gt=["top","bottom"],Kt=["top","right","bottom","left"],Zt=function(e,t){var n=t.width,r=t.height,a=t.position,o=t.scale,i=t.tickSize,s=void 0===i?5:i,u=t.tickPadding,l=void 0===u?5:u,c=t.tickRotation,d=void 0===c?0:c,f=t.format,p=t.theme,h=Mt({width:n,height:r,position:a,scale:o,tickSize:s,tickPadding:l,tickRotation:d,engine:"canvas"}),m=h.x,y=h.y,v=h.ticks,b=h.textAlign,g=h.textBaseline;e.save(),e.translate(m,y),e.textAlign=b,e.textBaseline=g,e.font=p.axis.ticks.text.fontSize+"px sans-serif",v.forEach(function(t){e.lineWidth=p.axis.ticks.line.strokeWidth,e.strokeStyle=p.axis.ticks.line.stroke,e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(t.x+t.lineX,t.y+t.lineY),e.stroke();var n=void 0!==f?f(t.value):t.value;e.save(),e.translate(t.x+t.textX,t.y+t.textY),e.rotate($(d)),e.fillStyle=p.axis.ticks.text.fill,e.fillText(n,0,0),e.restore()}),e.restore()},Qt=Object.keys(Q),Xt=Object.keys(oe),Jt=function(e,t,n){if("*"===e)return!0;if(d(e))return e(t);if(R(e)){var r=n?y(t,n):t;return O(_(r,Object.keys(e)),e)}return!1};t.Container=G,t.ResponsiveWrapper=K,t.SvgWrapper=me,t.SmartMotion=ve,t.noop=F,t.DotsItem=Me,t.DotsItemDefaultProps=ke,t.gradientTypes=Q,t.LinearGradient=Z,t.linearGradientDef=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return H({id:e,type:"linearGradient",colors:t},n)},t.patternTypes=oe,t.PatternDots=X,t.patternDotsDef=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return H({id:e,type:"patternDots"},t)},t.PatternLines=re,t.patternLinesDef=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return H({id:e,type:"patternLines"},t)},t.PatternSquares=ae,t.patternSquaresDef=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return H({id:e,type:"patternSquares"},t)},t.defsMapping=ie,t.Defs=se,t.BasicTooltip=Se,t.Chip=De,t.TableTooltip=Le,t.Axis=Et,t.Axes=Rt,t.Grid=It,t.CartesianMarkers=Wt,t.CartesianMarkersItem=Bt,t.withColors=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.colorsKey,a=void 0===r?"colors":r,o=n.colorByKey,s=void 0===o?"colorBy":o,u=n.destKey,l=void 0===u?"getColor":u,c=n.defaultColors,d=void 0===c?"nivo":c,f=n.defaultColorBy,m=void 0===f?"id":f;return p(D(((e={})[a]=d,e[s]=m,e)),w(((t={})[a]=i.any.isRequired,t[s]=i.oneOfType([i.string,i.func]),t)),h([a,s],function(e){var t;return(t={})[l]=Be(e[a],e[s]),t}))},t.withCurve=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.srcKey,n=void 0===t?"curve":t,r=e.destKey,a=void 0===r?"curveInterpolator":r;return P(function(e){var t;return(t={})[a]=Je(e[n]),t})},t.withDimensions=function(){return p(D({margin:mt}),w({width:i.number.isRequired,height:i.number.isRequired,margin:ct}),h(function(e,t){return e.width!==t.width||e.height!==t.height||!O(e.margin,t.margin)},function(e){var t=Object.assign({},mt,e.margin);return{margin:t,width:e.width-t.left-t.right,height:e.height-t.top-t.bottom,outerWidth:e.width,outerHeight:e.height}}))},t.withHierarchy=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.srcKey,a=void 0===r?"root":r,o=n.destKey,s=void 0===o?"root":o,u=n.valueKey,l=void 0===u?"value":u,c=n.valueDefault;return p(D(((e={})[l]=void 0===c?"value":c,e)),w(((t={})[a]=i.object.isRequired,t[l]=i.oneOfType([i.string,i.func]).isRequired,t)),h([a,l],function(e){var t;return(t={})[s]=S.hierarchy(e[a]).sum(yt(e[l])),t}))},t.withMotion=vt,t.withTheme=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.srcKey,r=void 0===n?"theme":n,a=t.destKey,o=void 0===a?"theme":a;return p(w(((e={})[r]=i.object,e)),h([r],function(e){var t;return(t={})[o]=E({},he,e[r]),t}))},t.getLabelGenerator=function(e,t){var n=d(e)?e:function(t){return y(t,e)},r=void 0;return t&&(r=d(t)?t:f.format(t)),r?function(e){return r(n(e))}:n},t.getAccessorFor=yt,t.getAccessorOrValue=function(e){return d(e)?e:function(){return e}},t.scalePropType=lt,t.marginPropType=ct,t.motionPropTypes=dt,t.blendModePropType=ft,t.quantizeColorScalePropType=ze,t.curvePropMapping=We,t.curvePropKeys=Ve,t.curvePropType=qe,t.closedCurvePropKeys=Ue,t.closedCurvePropType=Ge,t.areaCurvePropKeys=Ke,t.areaCurvePropType=Ze,t.lineCurvePropKeys=Qe,t.lineCurvePropType=Xe,t.curveFromProp=Je,t.defsPropTypes=$e,t.stackOrderPropMapping=et,t.stackOrderPropKeys=tt,t.stackOrderPropType=nt,t.stackOrderFromProp=function(e){return et[e]},t.stackOffsetPropMapping=rt,t.stackOffsetPropKeys=at,t.stackOffsetPropType=ot,t.stackOffsetFromProp=function(e){return rt[e]},t.treeMapTilePropMapping=it,t.treeMapTilePropKeys=st,t.treeMapTilePropType=ut,t.treeMapTileFromProp=function(e){return it[e]},t.colorSchemes=_e,t.colorSchemeIds=["nivo","category10","accent","dark2","paired","pastel1","pastel2","set1","set2","set3","brown_blueGreen","purpleRed_green","pink_yellowGreen","purple_orange","red_blue","red_grey","red_yellow_blue","red_yellow_green","spectral","blues","greens","greys","oranges","purples","reds","blue_green","blue_purple","green_blue","orange_red","purple_blue_green","purple_blue","purple_red","red_purple","yellow_green_blue","yellow_green","yellow_orange_brown","yellow_orange_red"],t.colorInterpolators=Ne,t.colorInterpolatorIds=["brown_blueGreen","purpleRed_green","pink_yellowGreen","purple_orange","red_blue","red_grey","red_yellow_blue","red_yellow_green","spectral","blues","greens","greys","oranges","purples","reds","viridis","inferno","magma","plasma","warm","cool","cubehelixDefault","blue_green","blue_purple","green_blue","orange_red","purple_blue_green","purple_blue","purple_red","red_purple","yellow_green_blue","yellow_green","yellow_orange_brown","yellow_orange_red","rainbow","sinebow"],t.nivoCategoricalColors=Ie,t.getColorRange=function(e){return"data"===e?He:"nivo"===e?Ie():d(e)?e:Fe[e]?Fe[e]:g(e)?A.scaleOrdinal(e):function(){return e}},t.getColorScale=function(e,t){if(M(e)){var n=_e[e];if(void 0!==n){var r=A.scaleOrdinal(n);return r.type="ordinal",r}if(void 0!==t&&0===e.indexOf("seq:")){var a=Ne[e.slice(4)];if(void 0!==a){var o=A.scaleSequential(a).domain(t.domain());return o.type="sequential",o}}}if(g(e)){var i=A.scaleOrdinal(e);return i.type="ordinal",i}return function(){return e}},t.getColorsGenerator=Be,t.getInheritedColorGenerator=function(e,t){if("none"===e)return Ce;if(d(e))return e;if("theme"===e){if(!t)throw new Error("Cannot use 'theme' directive without providing 'themeKey'");return function(e,n){return y(n,t)}}if("inherit"===e)return je;var n=e.match(/inherit:(darker|brighter)\(([0-9.]+)\)/);if(n){var r=n[1],a=n[2];return Ee(r,a)}return function(){return e}},t.colorMotionSpring=function(e,t){var n=v.rgb(e);if(!t)return{colorR:n.r,colorG:n.g,colorB:n.b};var r=Object.assign({},t,{precision:1});return{colorR:l.spring(n.r,r),colorG:l.spring(n.g,r),colorB:l.spring(n.b,r)}},t.getInterpolatedColor=function(e){var t=e.colorR,n=e.colorG,r=e.colorB;return"rgb("+Math.round(Math.max(t,0))+","+Math.round(Math.max(n,0))+","+Math.round(Math.max(r,0))+")"},t.quantizeColorScales=Ye,t.quantizeColorScalesKeys=Re,t.guessQuantizeColorScale=function(e){if(d(e)){if(!d(e.domain))throw new Error("Provided colors should be a valid quantize scale providing a 'domain()' function");return e}if(Ye[e])return A.scaleQuantize().range(Ye[e]);if(g(e))return A.scaleQuantize().range(e);throw new Error("Unable to guess quantize color scale from '"+e+"',\nmust be a function or one of:\n'"+Re.join("', '")+"'")},t.TWO_PI=J,t.degreesToRadians=$,t.radiansToDegrees=ee,t.midAngle=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},t.positionFromAngle=te,t.absoluteAngleDegrees=function(e){var t=e%360;return t<0&&(t+=360),t},t.absoluteAngleRadians=function(e){return e-J*Math.floor((e+Math.PI)/J)},t.computeArcBoundingBox=function(e,t,n,r,a){var o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],i=[],s=te($(r),n);i.push([s.x,s.y]);var u=te($(a),n);i.push([u.x,u.y]);for(var l=Math.round(Math.min(r,a));l<=Math.round(Math.max(r,a));l++)if(l%90==0){var c=te($(l),n);i.push([c.x,c.y])}i=i.map(function(n){var r=n[0],a=n[1];return[e+r,t+a]}),!0===o&&i.push([e,t]);var d=i.map(function(e){return e[0]}),f=i.map(function(e){return e[1]}),p=Math.min.apply(Math,d),h=Math.max.apply(Math,d),m=Math.min.apply(Math,f);return{points:i,x:p,y:m,width:h-p,height:Math.max.apply(Math,f)-m}},t.getPolarLabelProps=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"svg",a=ne[r],o=te(t-Math.PI/2,e),i=o.x,s=o.y,u=ee(t),l=a.align.center,c=a.baseline.bottom;return n>0?(l=a.align.right,c=a.baseline.center):n<0&&(l=a.align.left,c=a.baseline.center),0!==n&&u>180&&(u-=180,l=l===a.align.right?a.align.left:a.align.right),{x:i,y:s,rotate:u+=n,align:l,baseline:c}},t.getRelativeCursor=function(e,t){var n=t.clientX,r=t.clientY,a=e.getBoundingClientRect();return[n-a.left,r-a.top]},t.getDistance=Vt,t.getAngle=qt,t.isCursorInRect=function(e,t,n,r,a,o){return e<=a&&a<=e+n&&t<=o&&o<=t+r},t.isCursorInRing=Ut,t.getHoveredArc=function(e,t,n,r,a,o,i){if(!Ut(e,t,n,r,o,i))return null;var s=qt(o,i,e,t);return a.find(function(e){var t=e.startAngle,n=e.endAngle;return s>=t&&s3&&void 0!==arguments[3]?arguments[3]:{},a=r.dataKey,o=r.colorKey,i=void 0===o?"color":o,s=r.targetKey,u=void 0===s?"fill":s,l=[],c={};return e.length&&t.length&&(l=[].concat(e),t.forEach(function(t){for(var r=function(r){var o=n[r],s=o.id,d=o.match;if(Jt(d,t,a)){var f=e.find(function(e){return e.id===s});if(f)if(Xt.includes(f.type))if("inherit"===f.background||"inherit"===f.color){var p=y(t,i),h=f.background,m=f.color,v=s;"inherit"===f.background&&(v=v+".bg."+p,h=p),"inherit"===f.color&&(v=v+".fg."+p,m=p),N(t,u,"url(#"+v+")"),c[v]||(l.push(H({},f,{id:v,background:h,color:m})),c[v]=1)}else N(t,u,"url(#"+s+")");else if(Qt.includes(f.type))if(f.colors.map(function(e){return e.color}).includes("inherit")){var b=y(t,i),g=s,A=H({},f,{colors:f.colors.map(function(e,t){return"inherit"!==e.color?e:(g=g+"."+t+"."+b,H({},e,{color:"inherit"===e.color?b:e.color}))})});A.id=g,N(t,u,"url(#"+g+")"),c[g]||(l.push(A),c[g]=1)}else N(t,u,"url(#"+s+")");return"break"}},o=0;o10*h&&(a.accumulatedTime=0),0===a.accumulatedTime)return a.animationID=null,void a.startAnimationIfNecessary();var o=(a.accumulatedTime-Math.floor(a.accumulatedTime/h)*h)/h,i=Math.floor(a.accumulatedTime/h),s={},c={},f={},p={};for(var m in t)if(Object.prototype.hasOwnProperty.call(t,m)){var y=t[m];if("number"==typeof y)f[m]=y,p[m]=0,s[m]=y,c[m]=0;else{for(var v=a.state.lastIdealStyle[m],b=a.state.lastIdealVelocity[m],g=0;g10*h&&(a.accumulatedTime=0),0===a.accumulatedTime)return a.animationID=null,void a.startAnimationIfNecessary();for(var o=(a.accumulatedTime-Math.floor(a.accumulatedTime/h)*h)/h,i=Math.floor(a.accumulatedTime/h),s=[],c=[],f=[],p=[],m=0;m10*m&&(a.accumulatedTime=0),0===a.accumulatedTime)return a.animationID=null,void a.startAnimationIfNecessary();for(var i=(a.accumulatedTime-Math.floor(a.accumulatedTime/m)*m)/m,s=Math.floor(a.accumulatedTime/m),l=v(a.props.willEnter,a.props.willLeave,a.props.didLeave,a.state.mergedPropsStyles,n,a.state.currentStyles,a.state.currentVelocities,a.state.lastIdealStyles,a.state.lastIdealVelocities),d=l[0],p=l[1],h=l[2],b=l[3],g=l[4],A=0;Ar[c])return-1;if(a>o[c]&&ur[c])return 1;if(i>o[c]&&s-1}},function(e,t,n){var r=n(66);e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},function(e,t,n){var r=n(67);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(67);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(67);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(67);e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},function(e,t,n){var r=n(274);e.exports=function(e,t,n){var a=null==e?void 0:r(e,t);return void 0===a?n:a}},function(e,t,n){var r=n(20),a=n(61),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!a(e))||i.test(e)||!o.test(e)||null!=t&&e in Object(t)}},function(e,t,n){var r=n(489),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,function(e,n,r,a){t.push(r?a.replace(o,"$1"):n||e)}),t});e.exports=i},function(e,t,n){var r=n(272),a=500;e.exports=function(e){var t=r(e,function(e){return n.size===a&&n.clear(),e}),n=t.cache;return t}},function(e,t,n){var r=n(491);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(45),a=n(275),o=n(20),i=n(61),s=1/0,u=r?r.prototype:void 0,l=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return a(t,e)+"";if(i(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){var r=n(30),a=n(20),o=n(23),i="[object String]";e.exports=function(e){return"string"==typeof e||!a(e)&&o(e)&&r(e)==i}},function(e,t,n){"use strict";t.__esModule=!0;var r,a=n(268),o=(r=a)&&r.__esModule?r:{default:r};t.default=function(e){return(0,o.default)("propTypes",e)}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(3);a(n(36)),a(n(37));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return function(t){var n=(0,r.createFactory)(t),a=function(e){return n(e)};return a.defaultProps=e,a}}},function(e,t,n){var r=n(497),a=n(235),o=n(283),i=a(function(e,t){return o(e)?r(e,t):[]});e.exports=i},function(e,t,n){var r=n(276),a=n(277),o=n(504),i=n(275),s=n(278),u=n(279),l=200;e.exports=function(e,t,n,c){var d=-1,f=a,p=!0,h=e.length,m=[],y=t.length;if(!h)return m;n&&(t=i(t,s(n))),c?(f=o,p=!1):t.length>=l&&(f=u,p=!1,t=new r(t));e:for(;++d1?"& ":"")+t[a],t=t.join(r>2?", ":" "),e.replace(n,"{\n/* [wrapped with "+t+"] */\n")}},function(e,t,n){var r=n(553),a=n(277),o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return r(o,function(n){var r="_."+n[0];t&n[1]&&!a(e,r)&&e.push(r)}),e.sort()}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,s&&a(n[0],n[1],s)&&(i=o<3?void 0:i,o=1),t=Object(t);++r0&&o(c)?n>1?e(c,n-1,o,i,s):r(s,c):i||(s[s.length]=c)}return s}},function(e,t,n){var r=n(45),a=n(70),o=n(20),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||a(e)||!!(i&&e&&e[i])}},function(e,t,n){var r=n(307);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},function(e,t,n){e.exports=n(586)},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(1)),o=r(n(306)),i=r(n(248)),s=n(3),u=r(s),l=r(n(47)),c=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},d=Object.assign||function(e){for(var t=1;t0){var i=o.filter(function(e){return"hover"===e.on}).reduce(function(e,t){return d({},e,t.style)},{});r.setState({style:i})}void 0!==n&&n(a,e)},r.handleMouseLeave=function(){var e=r.props,t=e.onMouseLeave,n=e.data,a=e.effects;if(a.length>0){var o=a.filter(function(e){return"hover"!==e.on}).reduce(function(e,t){return d({},e,t.style)},{});r.setState({style:o})}void 0!==t&&t(n,event)},p(r,n)}return f(t,e),t.prototype.render=function(){var e=this.props,t=e.x,n=e.y,r=e.width,a=e.height,o=e.data,i=e.direction,s=e.justify,c=e.textColor,f=e.background,p=e.opacity,h=e.symbolShape,m=e.symbolSize,y=e.symbolSpacing,v=e.symbolBorderWidth,b=e.symbolBorderColor,g=e.onClick,A=e.onMouseEnter,k=e.onMouseLeave,w=e.theme,D=this.state.style,T=M({direction:i,justify:s,symbolSize:D.symbolSize||m,symbolSpacing:y,width:r,height:a}),x=T.symbolX,S=T.symbolY,P=T.labelX,L=T.labelY,E=T.labelAnchor,C=T.labelAlignment,j=[g,A,k].some(function(e){return void 0!==e}),Y=void 0;return Y=l(h)?h:O[h],u.createElement("g",{transform:"translate("+t+","+n+")",style:{opacity:void 0!==D.itemOpacity?D.itemOpacity:p}},u.createElement("rect",{width:r,height:a,fill:D.itemBackground||f,style:{cursor:j?"pointer":"auto"},onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}),u.createElement(Y,{x:x,y:S,size:D.symbolSize||m,fill:o.fill||o.color,borderWidth:void 0!==D.symbolBorderWidth?D.symbolBorderWidth:v,borderColor:D.symbolBorderColor||b}),u.createElement("text",{textAnchor:E,style:d({},w.legends.text,{fill:D.itemTextColor||c,alignmentBaseline:C,pointerEvents:"none",userSelect:"none"}),x:P,y:L},o.label))},t}(s.Component);L.propTypes=d({data:v.isRequired,x:a.number.isRequired,y:a.number.isRequired,width:a.number.isRequired,height:a.number.isRequired,textColor:a.string,background:a.string,opacity:a.number,direction:a.oneOf(["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]).isRequired,justify:a.bool.isRequired},m,y),L.defaultProps={direction:"left-to-right",justify:!1,textColor:"black",background:"transparent",opacity:1,symbolShape:"square",symbolSize:16,symbolSpacing:8,symbolBorderWidth:0,symbolBorderColor:"transparent",effects:[]};var E=function(e){var t=e.data,n=e.x,r=e.y,a=e.direction,o=e.padding,i=e.justify,s=e.effects,l=e.itemWidth,c=e.itemHeight,d=e.itemDirection,f=e.itemsSpacing,p=e.itemTextColor,h=e.itemBackground,m=e.itemOpacity,y=e.symbolShape,v=e.symbolSize,b=e.symbolSpacing,g=e.symbolBorderWidth,k=e.symbolBorderColor,M=e.onClick,w=e.onMouseEnter,D=e.onMouseLeave,T=e.theme,x=A({itemCount:t.length,itemWidth:l,itemHeight:c,itemsSpacing:f,direction:a,padding:o}).padding,S=0,P=0;return"row"===a?S=l+f:"column"===a&&(P=c+f),u.createElement("g",{transform:"translate("+n+","+r+")"},t.map(function(e,t){return u.createElement(L,{key:t,data:e,x:t*S+x.left,y:t*P+x.top,width:l,height:c,direction:d,justify:i,effects:s,textColor:p,background:h,opacity:m,symbolShape:y,symbolSize:v,symbolSpacing:b,symbolBorderWidth:g,symbolBorderColor:k,onClick:M,onMouseEnter:w,onMouseLeave:D,theme:T})}))};E.propTypes=d({data:a.arrayOf(v).isRequired,x:a.number.isRequired,y:a.number.isRequired,direction:a.oneOf(["column","row"]).isRequired,padding:a.oneOfType([a.number,a.shape({top:a.number,right:a.number,bottom:a.number,left:a.number})]).isRequired,justify:a.bool.isRequired,itemsSpacing:a.number.isRequired,itemWidth:a.number.isRequired,itemHeight:a.number.isRequired,itemDirection:a.oneOf(["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]).isRequired,itemTextColor:a.string.isRequired,itemBackground:a.string.isRequired,itemOpacity:a.number.isRequired},m,y),E.defaultProps={padding:0,justify:!1,itemsSpacing:0,itemDirection:"left-to-right",itemTextColor:"black",itemBackground:"transparent",itemOpacity:1};var C=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,a=e.translateX,o=e.translateY,i=e.anchor,s=e.direction,l=e.padding,c=e.justify,d=e.itemsSpacing,f=e.itemWidth,p=e.itemHeight,h=e.itemDirection,m=e.itemTextColor,y=e.itemBackground,v=e.itemOpacity,b=e.symbolShape,g=e.symbolSize,M=e.symbolSpacing,w=e.symbolBorderWidth,D=e.symbolBorderColor,T=e.onClick,x=e.onMouseEnter,S=e.onMouseLeave,P=e.effects,O=e.theme,L=A({itemCount:t.length,itemsSpacing:d,itemWidth:f,itemHeight:p,direction:s,padding:l}),C=L.width,j=L.height,Y=k({anchor:i,translateX:a,translateY:o,containerWidth:n,containerHeight:r,width:C,height:j}),R=Y.x,_=Y.y;return u.createElement(E,{data:t,x:R,y:_,direction:s,padding:l,justify:c,effects:P,itemsSpacing:d,itemWidth:f,itemHeight:p,itemDirection:h,itemTextColor:m,itemBackground:y,itemOpacity:v,symbolShape:b,symbolSize:g,symbolSpacing:M,symbolBorderWidth:w,symbolBorderColor:D,onClick:T,onMouseEnter:x,onMouseLeave:S,theme:O})};C.propTypes=d({data:a.arrayOf(v).isRequired,containerWidth:a.number.isRequired,containerHeight:a.number.isRequired,translateX:a.number.isRequired,translateY:a.number.isRequired,anchor:a.oneOf(["top","top-right","right","bottom-right","bottom","bottom-left","left","top-left","center"]).isRequired,direction:a.oneOf(["row","column"]).isRequired,padding:a.oneOfType([a.number,a.shape({top:a.number,right:a.number,bottom:a.number,left:a.number})]).isRequired,justify:a.bool,itemWidth:a.number.isRequired,itemHeight:a.number.isRequired,itemDirection:a.oneOf(["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]),itemsSpacing:a.number.isRequired,itemTextColor:a.string,itemBackground:a.string,itemOpacity:a.number},m,y),C.defaultProps={translateX:0,translateY:0,itemsSpacing:E.defaultProps.itemsSpacing,padding:E.defaultProps.padding};var j={align:{start:"left",middle:"center",end:"right"},baseline:{hanging:"top",middle:"middle",baseline:"bottom"}};t.BoxLegendSvg=C,t.LegendSvg=E,t.LegendSvgItem=L,t.renderLegendToCanvas=function(e,t){var n=t.data,r=t.containerWidth,a=t.containerHeight,o=t.translateX,i=void 0===o?C.defaultProps.translateX:o,s=t.translateY,u=void 0===s?C.defaultProps.translateY:s,l=t.anchor,c=t.direction,d=t.padding,f=void 0===d?E.defaultProps.padding:d,p=t.justify,h=void 0===p?L.defaultProps.justify:p,m=t.itemsSpacing,y=void 0===m?E.defaultProps.itemsSpacing:m,v=t.itemWidth,b=t.itemHeight,g=t.itemDirection,w=void 0===g?L.defaultProps.direction:g,D=t.itemTextColor,T=void 0===D?E.defaultProps.textColor:D,x=t.symbolSize,S=void 0===x?L.defaultProps.symbolSize:x,P=t.symbolSpacing,O=void 0===P?L.defaultProps.symbolSpacing:P,Y=A({itemCount:n.length,itemWidth:v,itemHeight:b,itemsSpacing:y,direction:c,padding:f}),R=Y.width,_=Y.height,N=Y.padding,F=k({anchor:l,translateX:i,translateY:u,containerWidth:r,containerHeight:a,width:R,height:_}),I=F.x,H=F.y,B=0,z=0;"row"===c?B=v+y:"column"===c&&(z=b+y),e.save(),e.translate(I,H),n.forEach(function(t,n){var r=n*B+N.left,a=n*z+N.top,o=M({direction:w,justify:h,symbolSize:S,symbolSpacing:O,width:v,height:b}),i=o.symbolX,s=o.symbolY,u=o.labelX,l=o.labelY,c=o.labelAnchor,d=o.labelAlignment;e.fillStyle=t.color,e.fillRect(r+i,a+s,S,S),e.textAlign=j.align[c],e.textBaseline=j.baseline[d],e.fillStyle=T,e.fillText(t.label,r+u,a+l)}),e.restore()},t.DIRECTION_ROW="row",t.DIRECTION_COLUMN="column",t.ANCHOR_TOP="top",t.ANCHOR_TOP_RIGHT="top-right",t.ANCHOR_RIGHT="right",t.ANCHOR_BOTTOM_RIGHT="bottom-right",t.ANCHOR_BOTTOM="bottom",t.ANCHOR_BOTTOM_LEFT="bottom-left",t.ANCHOR_LEFT="left",t.ANCHOR_TOP_LEFT="top-left",t.ANCHOR_CENTER="center",t.DIRECTION_LEFT_TO_RIGHT="left-to-right",t.DIRECTION_RIGHT_TO_LEFT="right-to-left",t.DIRECTION_TOP_TO_BOTTOM="top-to-bottom",t.DIRECTION_BOTTOM_TO_TOP="bottom-to-top",t.legendEffectPropType=h,t.symbolPropTypes=m,t.interactivityPropTypes=y,t.datumPropType=v,t.LegendPropShape=b},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(3)),o=(0,r(n(225)).default)(a.default.createElement(a.default.Fragment,null,a.default.createElement("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),a.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),"Refresh");t.default=o},function(e,t,n){"use strict";n.r(t);var r=function(e,t){return et?1:e>=t?0:NaN},a=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return r(t(e),n)}),{left:function(t,n,r,a){for(null==r&&(r=0),null==a&&(a=t.length);r>>1;e(t[o],n)<0?r=o+1:a=o}return r},right:function(t,n,r,a){for(null==r&&(r=0),null==a&&(a=t.length);r>>1;e(t[o],n)>0?a=o:r=o+1}return r}}};var o=a(r),i=o.right,s=(o.left,i);var u=function(e){return null===e?NaN:+e},l=Array.prototype,c=(l.slice,l.map,function(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(a);++r0)return[e];if((r=t0)for(e=Math.ceil(e/i),t=Math.floor(t/i),o=new Array(a=Math.ceil(t-e+1));++s=0?(o>=d?10:o>=f?5:o>=p?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(o>=d?10:o>=f?5:o>=p?2:1)}function y(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),a=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/a;return o>=d?a*=10:o>=f?a*=5:o>=p&&(a*=2),t=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,o=Math.floor(a),i=+n(e[o],o,e);return i+(+n(e[o+1],o+1,e)-i)*(a-o)}};function b(){}function g(e,t){var n=new b;if(e instanceof b)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var r,a=-1,o=e.length;if(null==t)for(;++a2?N:_,r=a=null,c}function c(t){return(r||(r=n(o,i,u?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}(e):e,s)))(+t)}return c.invert=function(e){return(a||(a=n(i,o,R,u?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}(t):t)))(+e)},c.domain=function(e){return arguments.length?(o=T.call(e,j),l()):o.slice()},c.range=function(e){return arguments.length?(i=x.call(e),l()):i.slice()},c.rangeRound=function(e){return i=x.call(e),s=E.interpolateRound,l()},c.clamp=function(e){return arguments.length?(u=!!e,l()):u},c.interpolate=function(e){return arguments.length?(s=e,l()):s},l()}var H=n(24),B=function(e,t,n){var r,a=e[0],o=e[e.length-1],i=y(a,o,null==t?10:t);switch((n=Object(H.formatSpecifier)(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(a),Math.abs(o));return null!=n.precision||isNaN(r=Object(H.precisionPrefix)(i,s))||(n.precision=r),Object(H.formatPrefix)(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=Object(H.precisionRound)(i,Math.max(Math.abs(a),Math.abs(o))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=Object(H.precisionFixed)(i))||(n.precision=r-2*("%"===n.type))}return Object(H.format)(n)};function z(e){var t=e.domain;return e.ticks=function(e){var n=t();return h(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return B(t(),e,n)},e.nice=function(n){null==n&&(n=10);var r,a=t(),o=0,i=a.length-1,s=a[o],u=a[i];return u0?r=m(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=m(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,n)),r>0?(a[o]=Math.floor(s/r)*r,a[i]=Math.ceil(u/r)*r,t(a)):r<0&&(a[o]=Math.ceil(s*r)/r,a[i]=Math.floor(u*r)/r,t(a)),e},e}function W(){var e=I(R,E.interpolateNumber);return e.copy=function(){return F(e,W())},z(e)}function V(){var e=[0,1];function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=T.call(n,j),t):e.slice()},t.copy=function(){return V().domain(e)},z(t)}var q=function(e,t){var n,r=0,a=(e=e.slice()).length-1,o=e[r],i=e[a];return i0){for(;fu)break;y.push(d)}}else for(;f=1;--c)if(!((d=l*c)u)break;y.push(d)}}else y=h(f,p,Math.min(p-f,m)).map(a);return o?y.reverse():y},e.tickFormat=function(t,o){if(null==o&&(o=10===n?".0e":","),"function"!=typeof o&&(o=Object(H.format)(o)),t===1/0)return o;null==t&&(t=10);var i=Math.max(1,n*t/e.ticks().length);return function(e){var t=e/a(Math.round(r(e)));return t*n0?n[a-1]:e[0],a=n?[r[n-1],t]:[r[i-1],r[i]]},o.copy=function(){return re().domain([e,t]).range(a)},z(o)}function ae(){var e=[.5],t=[0,1],n=1;function r(r){if(r<=r)return t[s(e,r,0,n)]}return r.domain=function(a){return arguments.length?(e=x.call(a),n=Math.min(e.length,t.length-1),r):e.slice()},r.range=function(a){return arguments.length?(t=x.call(a),n=Math.min(e.length,t.length-1),r):t.slice()},r.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},r.copy=function(){return ae().domain(e).range(t)},r}var oe=n(4),ie=n(50),se=1e3,ue=60*se,le=60*ue,ce=24*le,de=7*ce,fe=30*ce,pe=365*ce;function he(e){return new Date(e)}function me(e){return e instanceof Date?+e:+new Date(+e)}function ye(e,t,n,r,o,i,s,u,l){var c=I(R,E.interpolateNumber),d=c.invert,f=c.domain,p=l(".%L"),h=l(":%S"),m=l("%I:%M"),v=l("%I %p"),b=l("%a %d"),g=l("%b %d"),A=l("%B"),k=l("%Y"),M=[[s,1,se],[s,5,5*se],[s,15,15*se],[s,30,30*se],[i,1,ue],[i,5,5*ue],[i,15,15*ue],[i,30,30*ue],[o,1,le],[o,3,3*le],[o,6,6*le],[o,12,12*le],[r,1,ce],[r,2,2*ce],[n,1,de],[t,1,fe],[t,3,3*fe],[e,1,pe]];function w(a){return(s(a)1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return ge.h=360*e-100,ge.s=1.5-1.5*t,ge.l=.8-.9*t,ge+""},ke=Object(me.rgb)(),Me=Math.PI/3,we=2*Math.PI/3,De=function(e){var t;return e=(.5-e)*Math.PI,ke.r=255*(t=Math.sin(e))*t,ke.g=255*(t=Math.sin(e+Me))*t,ke.b=255*(t=Math.sin(e+we))*t,ke+""};function Te(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var xe=Te(r("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Se=Te(r("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Pe=Te(r("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Oe=Te(r("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));n.d(t,"schemeCategory10",function(){return a}),n.d(t,"schemeAccent",function(){return o}),n.d(t,"schemeDark2",function(){return i}),n.d(t,"schemePaired",function(){return s}),n.d(t,"schemePastel1",function(){return u}),n.d(t,"schemePastel2",function(){return l}),n.d(t,"schemeSet1",function(){return c}),n.d(t,"schemeSet2",function(){return d}),n.d(t,"schemeSet3",function(){return f}),n.d(t,"interpolateBrBG",function(){return y}),n.d(t,"schemeBrBG",function(){return m}),n.d(t,"interpolatePRGn",function(){return b}),n.d(t,"schemePRGn",function(){return v}),n.d(t,"interpolatePiYG",function(){return A}),n.d(t,"schemePiYG",function(){return g}),n.d(t,"interpolatePuOr",function(){return M}),n.d(t,"schemePuOr",function(){return k}),n.d(t,"interpolateRdBu",function(){return D}),n.d(t,"schemeRdBu",function(){return w}),n.d(t,"interpolateRdGy",function(){return x}),n.d(t,"schemeRdGy",function(){return T}),n.d(t,"interpolateRdYlBu",function(){return P}),n.d(t,"schemeRdYlBu",function(){return S}),n.d(t,"interpolateRdYlGn",function(){return L}),n.d(t,"schemeRdYlGn",function(){return O}),n.d(t,"interpolateSpectral",function(){return C}),n.d(t,"schemeSpectral",function(){return E}),n.d(t,"interpolateBuGn",function(){return Y}),n.d(t,"schemeBuGn",function(){return j}),n.d(t,"interpolateBuPu",function(){return _}),n.d(t,"schemeBuPu",function(){return R}),n.d(t,"interpolateGnBu",function(){return F}),n.d(t,"schemeGnBu",function(){return N}),n.d(t,"interpolateOrRd",function(){return H}),n.d(t,"schemeOrRd",function(){return I}),n.d(t,"interpolatePuBuGn",function(){return z}),n.d(t,"schemePuBuGn",function(){return B}),n.d(t,"interpolatePuBu",function(){return V}),n.d(t,"schemePuBu",function(){return W}),n.d(t,"interpolatePuRd",function(){return U}),n.d(t,"schemePuRd",function(){return q}),n.d(t,"interpolateRdPu",function(){return K}),n.d(t,"schemeRdPu",function(){return G}),n.d(t,"interpolateYlGnBu",function(){return Q}),n.d(t,"schemeYlGnBu",function(){return Z}),n.d(t,"interpolateYlGn",function(){return J}),n.d(t,"schemeYlGn",function(){return X}),n.d(t,"interpolateYlOrBr",function(){return ee}),n.d(t,"schemeYlOrBr",function(){return $}),n.d(t,"interpolateYlOrRd",function(){return ne}),n.d(t,"schemeYlOrRd",function(){return te}),n.d(t,"interpolateBlues",function(){return ae}),n.d(t,"schemeBlues",function(){return re}),n.d(t,"interpolateGreens",function(){return ie}),n.d(t,"schemeGreens",function(){return oe}),n.d(t,"interpolateGreys",function(){return ue}),n.d(t,"schemeGreys",function(){return se}),n.d(t,"interpolatePurples",function(){return ce}),n.d(t,"schemePurples",function(){return le}),n.d(t,"interpolateReds",function(){return fe}),n.d(t,"schemeReds",function(){return de}),n.d(t,"interpolateOranges",function(){return he}),n.d(t,"schemeOranges",function(){return pe}),n.d(t,"interpolateCubehelixDefault",function(){return ye}),n.d(t,"interpolateRainbow",function(){return Ae}),n.d(t,"interpolateWarm",function(){return ve}),n.d(t,"interpolateCool",function(){return be}),n.d(t,"interpolateSinebow",function(){return De}),n.d(t,"interpolateViridis",function(){return xe}),n.d(t,"interpolateMagma",function(){return Se}),n.d(t,"interpolateInferno",function(){return Pe}),n.d(t,"interpolatePlasma",function(){return Oe})},function(e,t,n){"use strict";function r(e,t){return e.parent===t.parent?1:2}function a(e,t){return e+t.x}function o(e,t){return Math.max(e,t.y)}n.r(t);var i=function(){var e=r,t=1,n=1,i=!1;function s(r){var s,u=0;r.eachAfter(function(t){var n=t.children;n?(t.x=function(e){return e.reduce(a,0)/e.length}(n),t.y=function(e){return 1+e.reduce(o,0)}(n)):(t.x=s?u+=e(t,s):0,t.y=0,s=t)});var l=function(e){for(var t;t=e.children;)e=t[0];return e}(r),c=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(r),d=l.x-e(l,c)/2,f=c.x+e(c,l)/2;return r.eachAfter(i?function(e){e.x=(e.x-r.x)*t,e.y=(r.y-e.y)*n}:function(e){e.x=(e.x-d)/(f-d)*t,e.y=(1-(r.y?e.y/r.y:1))*n})}return s.separation=function(t){return arguments.length?(e=t,s):e},s.size=function(e){return arguments.length?(i=!1,t=+e[0],n=+e[1],s):i?null:[t,n]},s.nodeSize=function(e){return arguments.length?(i=!0,t=+e[0],n=+e[1],s):i?[t,n]:null},s};function s(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function u(e,t){var n,r,a,o,i,s=new f(e),u=+e.value&&(s.value=e.value),c=[s];for(null==t&&(t=l);n=c.pop();)if(u&&(n.value=+n.data.value),(a=t(n.data))&&(i=a.length))for(n.children=new Array(i),o=i-1;o>=0;--o)c.push(r=n.children[o]=new f(a[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(d)}function l(e){return e.children}function c(e){e.data=e.data.data}function d(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function f(e){this.data=e,this.depth=this.height=0,this.parent=null}f.prototype=u.prototype={constructor:f,count:function(){return this.eachAfter(s)},each:function(e){var t,n,r,a,o=this,i=[o];do{for(t=i.reverse(),i=[];o=t.pop();)if(e(o),n=o.children)for(r=0,a=n.length;r=0;--n)a.push(t[n]);return this},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,a=r&&r.length;--a>=0;)n+=r[a].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),a=null;for(e=n.pop(),t=r.pop();e===t;)a=e,e=n.pop(),t=r.pop();return a}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var a=r.length;e!==n;)r.splice(a,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each(function(t){e.push(t)}),e},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return u(this).eachBefore(c)}};var p=Array.prototype.slice;var h=function(e){for(var t,n,r=0,a=(e=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}(p.call(e))).length,o=[];r0&&n*n>r*r+a*a}function b(e,t){for(var n=0;n(i*=i)?(r=(l+i-a)/(2*l),o=Math.sqrt(Math.max(0,i/l-r*r)),n.x=e.x-r*s-o*u,n.y=e.y-r*u+o*s):(r=(l+a-i)/(2*l),o=Math.sqrt(Math.max(0,a/l-r*r)),n.x=t.x+r*s-o*u,n.y=t.y+r*u+o*s)):(n.x=t.x+n.r,n.y=t.y)}function w(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,a=t.y-e.y;return n>0&&n*n>r*r+a*a}function D(e){var t=e._,n=e.next._,r=t.r+n.r,a=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return a*a+o*o}function T(e){this._=e,this.next=null,this.previous=null}function x(e){if(!(a=e.length))return 0;var t,n,r,a,o,i,s,u,l,c,d;if((t=e[0]).x=0,t.y=0,!(a>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(a>2))return t.r+n.r;M(n,t,r=e[2]),t=new T(t),n=new T(n),r=new T(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;s0)throw new Error("cycle");return o}return n.id=function(t){return arguments.length?(e=P(t),n):e},n.parentId=function(e){return arguments.length?(t=P(e),n):t},n};function q(e,t){return e.parent===t.parent?1:2}function U(e){var t=e.children;return t?t[0]:e.t}function G(e){var t=e.children;return t?t[t.length-1]:e.t}function K(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Z(e,t,n){return e.a.parent===t.parent?e.a:n}function Q(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}Q.prototype=Object.create(f.prototype);var X=function(){var e=q,t=1,n=1,r=null;function a(a){var u=function(e){for(var t,n,r,a,o,i=new Q(e,0),s=[i];t=s.pop();)if(r=t._.children)for(t.children=new Array(o=r.length),a=o-1;a>=0;--a)s.push(n=t.children[a]=new Q(r[a],a)),n.parent=t;return(i.parent=new Q(null,0)).children=[i],i}(a);if(u.eachAfter(o),u.parent.m=-u.z,u.eachBefore(i),r)a.eachBefore(s);else{var l=a,c=a,d=a;a.eachBefore(function(e){e.xc.x&&(c=e),e.depth>d.depth&&(d=e)});var f=l===c?1:e(l,c)/2,p=f-l.x,h=t/(c.x+f+p),m=n/(d.depth||1);a.eachBefore(function(e){e.x=(e.x+p)*h,e.y=e.depth*m})}return a}function o(t){var n=t.children,r=t.parent.children,a=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,a=e.children,o=a.length;--o>=0;)(t=a[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;a?(t.z=a.z+e(t._,a._),t.m=t.z-o):t.z=o}else a&&(t.z=a.z+e(t._,a._));t.parent.A=function(t,n,r){if(n){for(var a,o=t,i=t,s=n,u=o.parent.children[0],l=o.m,c=i.m,d=s.m,f=u.m;s=G(s),o=U(o),s&&o;)u=U(u),(i=G(i)).a=t,(a=s.z+d-o.z-l+e(s._,o._))>0&&(K(Z(s,t,r),t,a),l+=a,c+=a),d+=s.m,l+=o.m,f+=u.m,c+=i.m;s&&!G(i)&&(i.t=s,i.m+=d-c),o&&!U(u)&&(u.t=o,u.m+=l-f,r=t)}return r}(t,a,t.parent.A||r[0])}function i(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return a.separation=function(t){return arguments.length?(e=t,a):e},a.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],a):r?null:[t,n]},a.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],a):r?[t,n]:null},a},J=function(e,t,n,r,a){for(var o,i=e.children,s=-1,u=i.length,l=e.value&&(a-n)/e.value;++sf&&(f=s),y=c*c*m,(p=Math.max(f/y,y/d))>h){c-=s;break}h=p}v.push(i={value:c,dice:u1?t:1)},n}($),ne=function(){var e=te,t=!1,n=1,r=1,a=[0],o=O,i=O,s=O,u=O,l=O;function c(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),a=[0],t&&e.eachBefore(_),e}function d(t){var n=a[t.depth],r=t.x0+n,c=t.y0+n,d=t.x1-n,f=t.y1-n;d=n-1){var c=s[t];return c.x0=a,c.y0=o,c.x1=i,void(c.y1=u)}var d=l[t],f=r/2+d,p=t+1,h=n-1;for(;p>>1;l[m]u-o){var b=(a*v+i*y)/r;e(t,p,y,a,o,b,u),e(p,n,v,b,o,i,u)}else{var g=(o*v+u*y)/r;e(t,p,y,a,o,i,g),e(p,n,v,a,g,i,u)}}(0,u,e.value,t,n,r,a)},ae=function(e,t,n,r,a){(1&e.depth?J:N)(e,t,n,r,a)},oe=function e(t){function n(e,n,r,a,o){if((i=e._squarify)&&i.ratio===t)for(var i,s,u,l,c,d=-1,f=i.length,p=e.value;++d1?t:1)},n}($);n.d(t,"cluster",function(){return i}),n.d(t,"hierarchy",function(){return u}),n.d(t,"pack",function(){return C}),n.d(t,"packSiblings",function(){return S}),n.d(t,"packEnclose",function(){return h}),n.d(t,"partition",function(){return F}),n.d(t,"stratify",function(){return V}),n.d(t,"tree",function(){return X}),n.d(t,"treemap",function(){return ne}),n.d(t,"treemapBinary",function(){return re}),n.d(t,"treemapDice",function(){return N}),n.d(t,"treemapSlice",function(){return J}),n.d(t,"treemapSliceDice",function(){return ae}),n.d(t,"treemapSquarify",function(){return te}),n.d(t,"treemapResquarify",function(){return oe})},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t-1&&(n.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(n.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(n.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var r=e.getBoundingClientRect();n.bounds={top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}}if(t.indexOf("margin")>-1){var a=getComputedStyle(e);n.margin={top:a?parseInt(a.marginTop):0,right:a?parseInt(a.marginRight):0,bottom:a?parseInt(a.marginBottom):0,left:a?parseInt(a.marginLeft):0}}return n}(t._node,e||(r=t.props,a=[],u.forEach(function(e){r[e]&&a.push(e)}),a));n&&(o.entry=n[0].contentRect),t._animationFrameID=window.requestAnimationFrame(function(){null!==t._resizeObserver&&t.setState({contentRect:o})}),"function"==typeof t.props.onResize&&t.props.onResize(o)},t._handleRef=function(e){null!==t._resizeObserver&&null!==t._node&&t._resizeObserver.unobserve(t._node),t._node=e,null!==t._resizeObserver&&null!==t._node&&t._resizeObserver.observe(t._node);var n=t.props.innerRef;n&&("function"==typeof n?n(t._node):n.current=t._node)},t}i=n,(o=l).prototype=Object.create(i.prototype),o.prototype.constructor=o,o.__proto__=i;var c=l.prototype;return c.componentDidMount=function(){this._resizeObserver=new s.a(this.measure),null!==this._node&&this._resizeObserver.observe(this._node)},c.componentWillUnmount=function(){null!==this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null),window.cancelAnimationFrame(this._animationFrameID)},c.render=function(){var e=this.props,n=(e.innerRef,e.onResize,function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}(e,["innerRef","onResize"]));return Object(a.createElement)(t,r({},n,{measureRef:this._handleRef,measure:this.measure,contentRect:this.state.contentRect}))},l}(a.Component),n.propTypes={client:i.a.bool,offset:i.a.bool,scroll:i.a.bool,bounds:i.a.bool,margin:i.a.bool,innerRef:i.a.oneOfType([i.a.object,i.a.func]),onResize:i.a.func},o}}var c=l()(function(e){var t=e.measure,n=e.measureRef,r=e.contentRect;return(0,e.children)({measure:t,measureRef:n,contentRect:r})});c.displayName="Measure",c.propTypes.children=i.a.func;t.default=c},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(763))},function(e,t,n){"use strict";var r=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=Object.getPrototypeOf||function(e){return e.__proto__},i=void 0,s="undefined"==typeof Uint8Array?void 0:o(Uint8Array),u={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":a?o([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":i&&a&&Symbol.asyncIterator?i[Symbol.asyncIterator]():void 0,"$ %Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":a?o(o([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&a?o((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?void 0:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&a?o((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":a?o(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":a?Symbol:void 0,"$ %SymbolPrototype%":a?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":r,"$ %TypedArray%":s,"$ %TypedArrayPrototype%":s?s.prototype:void 0,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype};e.exports=function(e,t){if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in u))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===u[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return u[n]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a=(r=n(1))&&r.__esModule?r:{default:r};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t2?n-2:0),i=2;i0&&a[a.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]this.options.maxCachedItems))if(r===a)this.getSlot(r)[e.id]=new y(e.start,e.end,e.id);else{this.getSlot(r)[e.id]=new y(e.start,this.slotEndDate(r),e.id),this.getSlot(a)[e.id]=new y(this.slotStartDate(a),e.end,e.id);for(var u=r+1;u=t.end||n[a].end<=t.start||r.push(new v(n[a].startt.end?t.end:n[a].end,a,this.eventMeta[a].summary));return r},e.prototype.getCachedEvents=function(e){for(var t=this.dateRangeToCacheKeys(e),n=t.start,r=t.end,a=this.getSlotEvents(n,e),o=n+1;on&&a.push.apply(a,this.getSlotEvents(r,e)),a},e.prototype.sync=function(){return r(this,void 0,void 0,function(){var e,t,n,o=this;return a(this,function(s){switch(s.label){case 0:return s.trys.push([0,4,,5]),[4,this.token];case 1:return e=s.sent(),[4,m(this.calId,e,this.syncToken)];case 2:return t=s.sent(),[4,Promise.all(t.results.map(function(t){return t.start?Promise.resolve(t):function(e,t,n){return r(this,void 0,void 0,function(){return a(this,function(r){switch(r.label){case 0:return[4,fetch(u+"/calendars/"+e+"/events/"+t+"?"+c({access_token:n}),{method:"GET"})];case 1:return[2,r.sent().json()]}})})}(o.calId,t.id,e)}))];case 3:return s.sent().forEach(function(e){e.start=new Date(e.start.dateTime),e.end=new Date(e.end.dateTime),"confirmed"===e.status?o.addEvent(e):"cancelled"===e.status&&o.removeEvent(e)}),this.syncToken=t.nextSyncToken,[3,5];case 4:if((n=s.sent())!==i.invalidSyncToken)throw n;return this.syncToken="",this.sync(),[3,5];case 5:return[2]}})})},e.prototype.getEvents=function(e,t,n){return void 0===n&&(n=!1),r(this,void 0,void 0,function(){var r,o,i,s,u,l,c,d=this;return a(this,function(a){switch(a.label){case 0:for(r=this.dateRangeToCacheKeys({start:e,end:t}),o={start:null,end:null},i=r.start;i<=r.end;i++)this.cache.has(i)||(null===o.start&&(o.start=i),o.end=i);return null===o.start?[3,9]:(console.assert(o.start<=o.end),o.end-o.start+1>this.options.largeQuery?(console.log("encounter large query, use direct fetch"),[4,this.token]):[3,3]);case 1:return s=a.sent(),[4,m(this.calId,s,null,e.toISOString(),t.toISOString())];case 2:return u=a.sent(),[2,{events:u.results.map(function(e){return console.assert(e.start),e.start=new Date(e.start.dateTime),e.end=new Date(e.end.dateTime),e}).filter(function(n){return!(n.start>=t||n.end<=e)}).map(function(n){return new v(n.startt?t:n.end,n.id,n.summary)}),changed:!1}];case 3:return console.log("fetching short event list"),[4,this.token];case 4:return l=a.sent(),[4,m(this.calId,l,null,this.slotStartDate(o.start).toISOString(),this.slotEndDate(o.end).toISOString())];case 5:return(c=a.sent()).results.forEach(function(e){"confirmed"===e.status&&(console.assert(e.start),e.start=new Date(e.start.dateTime),e.end=new Date(e.end.dateTime),d.addEvent(e,!0))}),""===this.syncToken&&(this.syncToken=c.nextSyncToken),n?[4,this.sync()]:[3,7];case 6:a.sent(),a.label=7;case 7:return[4,this.getCachedEvents({start:e,end:t})];case 8:return[2,{events:a.sent(),changed:!0}];case 9:return console.log("cache hit"),n?[4,this.sync()]:[3,11];case 10:a.sent(),a.label=11;case 11:return[4,this.getCachedEvents({start:e,end:t})];case 12:return[2,{events:a.sent(),changed:!1}]}})})},e}();t.GCalendar=b},function(e,t,n){var r=n(775);e.exports=p,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t))},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,i=0,s="",c=t&&t.delimiter||"/";null!=(n=a.exec(e));){var d=n[0],f=n[1],p=n.index;if(s+=e.slice(i,p),i=p+d.length,f)s+=f[1];else{var h=e[i],m=n[2],y=n[3],v=n[4],b=n[5],g=n[6],A=n[7];s&&(r.push(s),s="");var k=null!=m&&null!=h&&h!==m,M="+"===g||"*"===g,w="?"===g||"*"===g,D=n[2]||c,T=v||b;r.push({name:y||o++,prefix:m||"",delimiter:D,optional:w,repeat:M,partial:k,asterisk:!!A,pattern:T?l(T):A?".*":"[^"+u(D)+"]+?"})}}return i1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)},t.isAdornedStart=function(e){return e.startAdornment}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(3)).default.createContext();t.default=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(842))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(843))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransitionProps=function(e,t){var n=e.timeout,r=e.style,a=void 0===r?{}:r;return{duration:a.transitionDuration||"number"==typeof n?n:n[t.mode],delay:a.transitionDelay}},t.reflow=void 0;t.reflow=function(e){return e.scrollTop}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(3)).default.createContext({});t.default=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(888))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(893))},function(e,t,n){var r=n(394);e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(632)("keys"),a=n(605);e.exports=function(e){return r[e]||(r[e]=a(e))}},function(e,t,n){var r=n(226),a=n(264),o=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(604)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){e.exports={}},function(e,t,n){var r=n(436),a=n(925),o=n(633),i=n(631)("IE_PROTO"),s=function(){},u=function(){var e,t=n(714)("iframe"),r=o.length;for(t.style.display="none",n(926).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("