import{_ as t,a as e,b as n,c as i,i as r,s as a,d as o,S as s,e as l,f as u,g as c,j as d,l as h,q as f,r as g,u as m,v as p,w as v,x as y,y as b,z as x,t as _,o as w,h as k,p as M,k as S,L as D,m as C,A as T,n as P,D as O,E as A,F as R,G as I,B as F,C as N,R as L,X as Y,Q as W,Y as E,Z as z,$ as V,a0 as B,a1 as H,a2 as j,a3 as U,J as $,a4 as G,a5 as q,a6 as Z}from"./client.cba96f84.js";import{_ as X,h as K,L as J,c as Q,a as tt}from"./createOctokit.a795e80b.js";function et(t){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,a=e(t);if(i){var o=e(this).constructor;r=Reflect.construct(a,arguments,o)}else r=a.apply(this,arguments);return n(this,r)}}function nt(t){var e,n,i,r,a,o,s,f,g,m,p,v,y,b,O,A,R,I,F,N=t[1].name+"",L=("up"===t[1].status?x.i18n.up:x.i18n.down)+"",Y=x.i18n.overallUptimeTitle+"",W=t[1].uptime+"",E=x.i18n.averageResponseTimeTitle+"",z=t[1].time+"",V=x.i18n.ms+"";return{c:function(){e=l("h1"),n=l("a"),i=_(N),a=w(),o=l("span"),s=_(L),g=w(),m=l("dl"),p=l("dt"),v=_(Y),y=l("dd"),b=_(W),O=l("dt"),A=_(E),R=l("dd"),I=_(z),F=_(V),this.h()},l:function(t){e=u(t,"H1",{});var r=c(e);n=u(r,"A",{class:!0,href:!0});var l=c(n);i=k(l,N),l.forEach(d),a=M(r),o=u(r,"SPAN",{class:!0});var h=c(o);s=k(h,L),h.forEach(d),r.forEach(d),g=M(t),m=u(t,"DL",{});var f=c(m);p=u(f,"DT",{});var x=c(p);v=k(x,Y),x.forEach(d),y=u(f,"DD",{});var _=c(y);b=k(_,W),_.forEach(d),O=u(f,"DT",{});var w=c(O);A=k(w,E),w.forEach(d),R=u(f,"DD",{});var S=c(R);I=k(S,z),F=k(S,V),S.forEach(d),f.forEach(d),this.h()},h:function(){S(n,"class","no-underline svelte-1d3m0a"),S(n,"href",r=t[1].url.startsWith("$")?"#":t[1].url),S(o,"class",f=D("tag ".concat(t[1].status))+" svelte-1d3m0a")},m:function(t,r){h(t,e,r),C(e,n),C(n,i),C(e,a),C(e,o),C(o,s),h(t,g,r),h(t,m,r),C(m,p),C(p,v),C(m,y),C(y,b),C(m,O),C(O,A),C(m,R),C(R,I),C(R,F)},p:function(t,e){2&e&&N!==(N=t[1].name+"")&&T(i,N),2&e&&r!==(r=t[1].url.startsWith("$")?"#":t[1].url)&&S(n,"href",r),2&e&&L!==(L=("up"===t[1].status?x.i18n.up:x.i18n.down)+"")&&T(s,L),2&e&&f!==(f=D("tag ".concat(t[1].status))+" svelte-1d3m0a")&&S(o,"class",f),2&e&&W!==(W=t[1].uptime+"")&&T(b,W),2&e&&z!==(z=t[1].time+"")&&T(I,z)},i:P,o:P,d:function(t){t&&d(e),t&&d(g),t&&d(m)}}}function it(t){var e,n;return e=new J({}),{c:function(){O(e.$$.fragment)},l:function(t){A(e.$$.fragment,t)},m:function(t,i){R(e,t,i),n=!0},p:P,i:function(t){n||(v(e.$$.fragment,t),n=!0)},o:function(t){m(e.$$.fragment,t),n=!1},d:function(t){I(e,t)}}}function rt(t){var e,n,i,r,a=[it,nt],o=[];function s(t,e){return t[0]?0:t[1]?1:-1}return~(n=s(t))&&(i=o[n]=a[n](t)),{c:function(){e=l("section"),i&&i.c()},l:function(t){e=u(t,"SECTION",{});var n=c(e);i&&i.l(n),n.forEach(d)},m:function(t,i){h(t,e,i),~n&&o[n].m(e,null),r=!0},p:function(t,r){var l=f(r,1)[0],u=n;(n=s(t))===u?~n&&o[n].p(t,l):(i&&(g(),m(o[u],1,1,(function(){o[u]=null})),p()),~n?((i=o[n])?i.p(t,l):(i=o[n]=a[n](t)).c(),v(i,1),i.m(e,null)):i=null)},i:function(t){r||(v(i),r=!0)},o:function(t){m(i),r=!1},d:function(t){t&&d(e),~n&&o[n].d()}}}function at(t,e,n){var i=e.slug,r=!0,a=(x["status-website"]||{}).apiBaseUrl;a||(a="https://api.github.com");var o=a.includes("api.github.com")?"https://raw.githubusercontent.com":a,s=x.owner,l=x.repo,u=null;return y(X(b.mark((function t(){var e;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch("".concat(o,"/").concat(s,"/").concat(l,"/master/history/summary.json"));case 3:return e=t.sent,t.t0=n,t.next=7,e.json();case 7:t.t1=u=t.sent.find((function(t){return t.slug===i})),(0,t.t0)(1,t.t1),t.next=14;break;case 11:t.prev=11,t.t2=t.catch(0),K(t.t2);case 14:n(0,r=!1);case 15:case"end":return t.stop()}}),t,null,[[0,11]])})))),t.$$set=function(t){"slug"in t&&n(2,i=t.slug)},[r,u,i]}var ot=function(e){t(l,s);var n=et(l);function l(t){var e;return i(this,l),e=n.call(this),r(o(e),t,at,rt,a,{slug:2}),e}return l}();function st(t){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,a=e(t);if(i){var o=e(this).constructor;r=Reflect.construct(a,arguments,o)}else r=a.apply(this,arguments);return n(this,r)}}function lt(t,e,n){var i=t.slice();return i[6]=e[n],i}function ut(t){for(var e,n,i,r,a=x.i18n.pastIncidents+"",o=t[1],s=[],f=0;f>>0;for(e=0;e0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var L=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Y=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},V={};function B(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(V[t]=r),e&&(V[e[0]]=function(){return N(r.apply(this,arguments),e[1],e[2])}),n&&(V[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function H(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function j(t){var e,n,i=t.match(L);for(e=0,n=i.length;e=0&&Y.test(t);)t=t.replace(Y,i),Y.lastIndex=0,n-=1;return t}var G={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function q(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(L).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])}var Z="Invalid date";function X(){return this._invalidDate}var K="%d",J=/\d{1,2}/;function Q(t){return this._ordinal.replace("%d",t)}var tt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function et(t,e,n,i){var r=this._relativeTime[n];return P(r)?r(t,e,n,i):r.replace(/%d/i,t)}function nt(t,e){var n=this._relativeTime[t>0?"future":"past"];return P(n)?n(e):n.replace(/%s/i,e)}var it={};function rt(t,e){var n=t.toLowerCase();it[n]=it[n+"s"]=it[e]=t}function at(t){return"string"==typeof t?it[t]||it[t.toLowerCase()]:void 0}function ot(t){var e,n,i={};for(n in t)s(t,n)&&(e=at(n))&&(i[e]=t[n]);return i}var st={};function lt(t,e){st[t]=e}function ut(t){var e,n=[];for(e in t)s(t,e)&&n.push({unit:e,priority:st[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}function ct(t){return t%4==0&&t%100!=0||t%400==0}function dt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function ht(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=dt(e)),n}function ft(t,e){return function(n){return null!=n?(mt(this,t,n),i.updateOffset(this,e),this):gt(this,t)}}function gt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function mt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&ct(t.year())&&1===t.month()&&29===t.date()?(n=ht(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),ee(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function pt(t){return P(this[t=at(t)])?this[t]():this}function vt(t,e){if("object"===W(t)){var n,i=ut(t=ot(t));for(n=0;n68?1900:2e3)};var ye=ft("FullYear",!0);function be(){return ct(this.year())}function xe(t,e,n,i,r,a,o){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,i,r,a,o),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,i,r,a,o),s}function _e(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function we(t,e,n){var i=7+e-n;return-(7+_e(t,0,i).getUTCDay()-e)%7+i-1}function ke(t,e,n,i,r){var a,o,s=1+7*(e-1)+(7+n-i)%7+we(t,i,r);return s<=0?o=ve(a=t-1)+s:s>ve(t)?(a=t+1,o=s-ve(t)):(a=t,o=s),{year:a,dayOfYear:o}}function Me(t,e,n){var i,r,a=we(t.year(),e,n),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?i=o+Se(r=t.year()-1,e,n):o>Se(t.year(),e,n)?(i=o-Se(t.year(),e,n),r=t.year()+1):(r=t.year(),i=o),{week:i,year:r}}function Se(t,e,n){var i=we(t,e,n),r=we(t+1,e,n);return(ve(t)-i+r)/7}function De(t){return Me(t,this._week.dow,this._week.doy).week}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),rt("week","w"),rt("isoWeek","W"),lt("week",5),lt("isoWeek",5),Lt("w",Mt),Lt("ww",Mt,xt),Lt("W",Mt),Lt("WW",Mt,xt),Bt(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=ht(t)}));var Ce={dow:0,doy:6};function Te(){return this._week.dow}function Pe(){return this._week.doy}function Oe(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Ae(t){var e=Me(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Re(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Ie(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Fe(t,e){return t.slice(e,7).concat(t.slice(0,e))}B("d",0,"do","day"),B("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),B("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),B("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),rt("day","d"),rt("weekday","e"),rt("isoWeekday","E"),lt("day",11),lt("weekday",11),lt("isoWeekday",11),Lt("d",Mt),Lt("e",Mt),Lt("E",Mt),Lt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Lt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Lt("dddd",(function(t,e){return e.weekdaysRegex(t)})),Bt(["dd","ddd","dddd"],(function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:p(n).invalidWeekday=t})),Bt(["d","e","E"],(function(t,e,n,i){e[i]=ht(t)}));var Ne="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Le="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ye="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),We=Nt,Ee=Nt,ze=Nt;function Ve(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Fe(n,this._week.dow):t?n[t.day()]:n}function Be(t){return!0===t?Fe(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function He(t){return!0===t?Fe(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function je(t,e,n){var i,r,a,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=g([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=jt.call(this._weekdaysParse,o))?r:null:"ddd"===e?-1!==(r=jt.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=jt.call(this._minWeekdaysParse,o))?r:null:"dddd"===e?-1!==(r=jt.call(this._weekdaysParse,o))||-1!==(r=jt.call(this._shortWeekdaysParse,o))||-1!==(r=jt.call(this._minWeekdaysParse,o))?r:null:"ddd"===e?-1!==(r=jt.call(this._shortWeekdaysParse,o))||-1!==(r=jt.call(this._weekdaysParse,o))||-1!==(r=jt.call(this._minWeekdaysParse,o))?r:null:-1!==(r=jt.call(this._minWeekdaysParse,o))||-1!==(r=jt.call(this._weekdaysParse,o))||-1!==(r=jt.call(this._shortWeekdaysParse,o))?r:null}function Ue(t,e,n){var i,r,a;if(this._weekdaysParseExact)return je.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=g([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function $e(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Re(t,this.localeData()),this.add(t-e,"d")):e}function Ge(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function qe(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ie(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Ze(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Je.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=We),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Xe(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Je.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ee),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ke(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Je.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ze),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Je(){function t(t,e){return e.length-t.length}var e,n,i,r,a,o=[],s=[],l=[],u=[];for(e=0;e<7;e++)n=g([2e3,1]).day(e),i=Et(this.weekdaysMin(n,"")),r=Et(this.weekdaysShort(n,"")),a=Et(this.weekdays(n,"")),o.push(i),s.push(r),l.push(a),u.push(i),u.push(r),u.push(a);o.sort(t),s.sort(t),l.sort(t),u.sort(t),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Qe(){return this.hours()%12||12}function tn(){return this.hours()||24}function en(t,e){B(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function nn(t,e){return e._meridiemParse}function rn(t){return"p"===(t+"").toLowerCase().charAt(0)}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,Qe),B("k",["kk",2],0,tn),B("hmm",0,0,(function(){return""+Qe.apply(this)+N(this.minutes(),2)})),B("hmmss",0,0,(function(){return""+Qe.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)})),B("Hmm",0,0,(function(){return""+this.hours()+N(this.minutes(),2)})),B("Hmmss",0,0,(function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)})),en("a",!0),en("A",!1),rt("hour","h"),lt("hour",13),Lt("a",nn),Lt("A",nn),Lt("H",Mt),Lt("h",Mt),Lt("k",Mt),Lt("HH",Mt,xt),Lt("hh",Mt,xt),Lt("kk",Mt,xt),Lt("hmm",St),Lt("hmmss",Dt),Lt("Hmm",St),Lt("Hmmss",Dt),Vt(["H","HH"],qt),Vt(["k","kk"],(function(t,e,n){var i=ht(t);e[qt]=24===i?0:i})),Vt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),Vt(["h","hh"],(function(t,e,n){e[qt]=ht(t),p(n).bigHour=!0})),Vt("hmm",(function(t,e,n){var i=t.length-2;e[qt]=ht(t.substr(0,i)),e[Zt]=ht(t.substr(i)),p(n).bigHour=!0})),Vt("hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[qt]=ht(t.substr(0,i)),e[Zt]=ht(t.substr(i,2)),e[Xt]=ht(t.substr(r)),p(n).bigHour=!0})),Vt("Hmm",(function(t,e,n){var i=t.length-2;e[qt]=ht(t.substr(0,i)),e[Zt]=ht(t.substr(i))})),Vt("Hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[qt]=ht(t.substr(0,i)),e[Zt]=ht(t.substr(i,2)),e[Xt]=ht(t.substr(r))}));var an=/[ap]\.?m?\.?/i,on=ft("Hours",!0);function sn(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var ln,un={calendar:I,longDateFormat:G,invalidDate:Z,ordinal:K,dayOfMonthOrdinalParse:J,relativeTime:tt,months:ne,monthsShort:ie,week:Ce,weekdays:Ne,weekdaysMin:Ye,weekdaysShort:Le,meridiemParse:an},cn={},dn={};function hn(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n0;){if(i=mn(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&hn(r,n)>=e-1)break;e--}a++}return ln}function mn(e){var n=null;if(void 0===cn[e]&&t&&t.exports)try{n=ln._abbr,E("./locale/"+e),pn(n)}catch(t){cn[e]=null}return cn[e]}function pn(t,e){var n;return t&&((n=u(e)?bn(t):vn(t,e))?ln=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ln._abbr}function vn(t,e){if(null!==e){var n,i=un;if(e.abbr=t,null!=cn[t])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=cn[t]._config;else if(null!=e.parentLocale)if(null!=cn[e.parentLocale])i=cn[e.parentLocale]._config;else{if(null==(n=mn(e.parentLocale)))return dn[e.parentLocale]||(dn[e.parentLocale]=[]),dn[e.parentLocale].push({name:t,config:e}),null;i=n._config}return cn[t]=new R(A(i,e)),dn[t]&&dn[t].forEach((function(t){vn(t.name,t.config)})),pn(t),cn[t]}return delete cn[t],null}function yn(t,e){if(null!=e){var n,i,r=un;null!=cn[t]&&null!=cn[t].parentLocale?cn[t].set(A(cn[t]._config,e)):(null!=(i=mn(t))&&(r=i._config),e=A(r,e),null==i&&(e.abbr=t),(n=new R(e)).parentLocale=cn[t],cn[t]=n),pn(t)}else null!=cn[t]&&(null!=cn[t].parentLocale?(cn[t]=cn[t].parentLocale,t===pn()&&pn(t)):null!=cn[t]&&delete cn[t]);return cn[t]}function bn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ln;if(!a(t)){if(e=mn(t))return e;t=[t]}return gn(t)}function xn(){return D(cn)}function _n(t){var e,n=t._a;return n&&-2===p(t).overflow&&(e=n[$t]<0||n[$t]>11?$t:n[Gt]<1||n[Gt]>ee(n[Ut],n[$t])?Gt:n[qt]<0||n[qt]>24||24===n[qt]&&(0!==n[Zt]||0!==n[Xt]||0!==n[Kt])?qt:n[Zt]<0||n[Zt]>59?Zt:n[Xt]<0||n[Xt]>59?Xt:n[Kt]<0||n[Kt]>999?Kt:-1,p(t)._overflowDayOfYear&&(eGt)&&(e=Gt),p(t)._overflowWeeks&&-1===e&&(e=Jt),p(t)._overflowWeekday&&-1===e&&(e=Qt),p(t).overflow=e),t}var wn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Mn=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Dn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Cn=/^\/?Date\((-?\d+)/i,Tn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Pn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function On(t){var e,n,i,r,a,o,s=t._i,l=wn.exec(s)||kn.exec(s);if(l){for(p(t).iso=!0,e=0,n=Sn.length;eve(a)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),n=_e(a,0,t._dayOfYear),t._a[$t]=n.getUTCMonth(),t._a[Gt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=i[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[qt]&&0===t._a[Zt]&&0===t._a[Xt]&&0===t._a[Kt]&&(t._nextDay=!0,t._a[qt]=0),t._d=(t._useUTC?_e:xe).apply(null,o),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[qt]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(p(t).weekdayMismatch=!0)}}function Vn(t){var e,n,i,r,a,o,s,l,u;null!=(e=t._w).GG||null!=e.W||null!=e.E?(a=1,o=4,n=Wn(e.GG,t._a[Ut],Me(Xn(),1,4).year),i=Wn(e.W,1),((r=Wn(e.E,1))<1||r>7)&&(l=!0)):(a=t._locale._week.dow,o=t._locale._week.doy,u=Me(Xn(),a,o),n=Wn(e.gg,t._a[Ut],u.year),i=Wn(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+a,(e.e<0||e.e>6)&&(l=!0)):r=a),i<1||i>Se(n,a,o)?p(t)._overflowWeeks=!0:null!=l?p(t)._overflowWeekday=!0:(s=ke(n,i,r,a,o),t._a[Ut]=s.year,t._dayOfYear=s.dayOfYear)}function Bn(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],p(t).empty=!0;var e,n,r,a,o,s,l=""+t._i,u=l.length,c=0;for(r=$(t._f,t._locale).match(L)||[],e=0;e0&&p(t).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),c+=n.length),V[a]?(n?p(t).empty=!1:p(t).unusedTokens.push(a),Ht(a,n,t)):t._strict&&!n&&p(t).unusedTokens.push(a);p(t).charsLeftOver=u-c,l.length>0&&p(t).unusedInput.push(l),t._a[qt]<=12&&!0===p(t).bigHour&&t._a[qt]>0&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[qt]=Hn(t._locale,t._a[qt],t._meridiem),null!==(s=p(t).era)&&(t._a[Ut]=t._locale.erasConvertYear(s,t._a[Ut])),zn(t),_n(t)}else Ln(t);else On(t)}function Hn(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function jn(t){var e,n,i,r,a,o,s=!1;if(0===t._f.length)return p(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;rthis?this:t:y()}));function Qn(t,e){var n,i;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Xn();for(n=e[0],i=1;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function ki(){if(!u(this._isDSTShifted))return this._isDSTShifted;var t,e={};return _(e,this),(e=Gn(e))._a?(t=e._isUTC?g(e._a):Xn(e._a),this._isDSTShifted=this.isValid()&&ci(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Mi(){return!!this.isValid()&&!this._isUTC}function Si(){return!!this.isValid()&&this._isUTC}function Di(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Ci=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ti=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Pi(t,e){var n,i,r,a=t,o=null;return li(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:c(t)||!isNaN(+t)?(a={},e?a[e]=+t:a.milliseconds=+t):(o=Ci.exec(t))?(n="-"===o[1]?-1:1,a={y:0,d:ht(o[Gt])*n,h:ht(o[qt])*n,m:ht(o[Zt])*n,s:ht(o[Xt])*n,ms:ht(ui(1e3*o[Kt]))*n}):(o=Ti.exec(t))?(n="-"===o[1]?-1:1,a={y:Oi(o[2],n),M:Oi(o[3],n),w:Oi(o[4],n),d:Oi(o[5],n),h:Oi(o[6],n),m:Oi(o[7],n),s:Oi(o[8],n)}):null==a?a={}:"object"===W(a)&&("from"in a||"to"in a)&&(r=Ri(Xn(a.from),Xn(a.to)),(a={}).ms=r.milliseconds,a.M=r.months),i=new si(a),li(t)&&s(t,"_locale")&&(i._locale=t._locale),li(t)&&s(t,"_isValid")&&(i._isValid=t._isValid),i}function Oi(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ai(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ri(t,e){var n;return t.isValid()&&e.isValid()?(e=gi(e,t),t.isBefore(e)?n=Ai(t,e):((n=Ai(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ii(t,e){return function(n,i){var r;return null===i||isNaN(+i)||(T(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),Fi(this,Pi(n,i),t),this}}function Fi(t,e,n,r){var a=e._milliseconds,o=ui(e._days),s=ui(e._months);t.isValid()&&(r=null==r||r,s&&de(t,gt(t,"Month")+s*n),o&&mt(t,"Date",gt(t,"Date")+o*n),a&&t._d.setTime(t._d.valueOf()+a*n),r&&i.updateOffset(t,o||s))}Pi.fn=si.prototype,Pi.invalid=oi;var Ni=Ii(1,"add"),Li=Ii(-1,"subtract");function Yi(t){return"string"==typeof t||t instanceof String}function Wi(t){return k(t)||d(t)||Yi(t)||c(t)||zi(t)||Ei(t)||null==t}function Ei(t){var e,n,i=o(t)&&!l(t),r=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(e=0;en.valueOf():n.valueOf()9999?U(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function er(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,i,r="moment",a="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),t="["+r+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=a+'[")]',this.format(t+e+n+i)}function nr(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)}function ir(t,e){return this.isValid()&&(k(t)&&t.isValid()||Xn(t).isValid())?Pi({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function rr(t){return this.from(Xn(),t)}function ar(t,e){return this.isValid()&&(k(t)&&t.isValid()||Xn(t).isValid())?Pi({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function or(t){return this.to(Xn(),t)}function sr(t){var e;return void 0===t?this._locale._abbr:(null!=(e=bn(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var lr=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ur(){return this._locale}var cr=1e3,dr=60*cr,hr=60*dr,fr=3506328*hr;function gr(t,e){return(t%e+e)%e}function mr(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-fr:new Date(t,e,n).valueOf()}function pr(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-fr:Date.UTC(t,e,n)}function vr(t){var e,n;if(void 0===(t=at(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?pr:mr,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=gr(e+(this._isUTC?0:this.utcOffset()*dr),hr);break;case"minute":e=this._d.valueOf(),e-=gr(e,dr);break;case"second":e=this._d.valueOf(),e-=gr(e,cr)}return this._d.setTime(e),i.updateOffset(this,!0),this}function yr(t){var e,n;if(void 0===(t=at(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?pr:mr,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=hr-gr(e+(this._isUTC?0:this.utcOffset()*dr),hr)-1;break;case"minute":e=this._d.valueOf(),e+=dr-gr(e,dr)-1;break;case"second":e=this._d.valueOf(),e+=cr-gr(e,cr)-1}return this._d.setTime(e),i.updateOffset(this,!0),this}function br(){return this._d.valueOf()-6e4*(this._offset||0)}function xr(){return Math.floor(this.valueOf()/1e3)}function _r(){return new Date(this.valueOf())}function wr(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function kr(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Mr(){return this.isValid()?this.toISOString():null}function Sr(){return v(this)}function Dr(){return f({},p(this))}function Cr(){return p(this).overflow}function Tr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Pr(t,e){var n,r,a,o=this._eras||bn("en")._eras;for(n=0,r=o.length;n=0)return l[i]}function Ar(t,e){var n=t.since<=t.until?1:-1;return void 0===e?i(t.since).year():i(t.since).year()+(e-t.offset)*n}function Rr(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t(a=Se(t,i,r))&&(e=a),Jr.call(this,t,e,n,i,r))}function Jr(t,e,n,i,r){var a=ke(t,e,n,i,r),o=_e(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Qr(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}B("N",0,0,"eraAbbr"),B("NN",0,0,"eraAbbr"),B("NNN",0,0,"eraAbbr"),B("NNNN",0,0,"eraName"),B("NNNNN",0,0,"eraNarrow"),B("y",["y",1],"yo","eraYear"),B("y",["yy",2],0,"eraYear"),B("y",["yyy",3],0,"eraYear"),B("y",["yyyy",4],0,"eraYear"),Lt("N",Er),Lt("NN",Er),Lt("NNN",Er),Lt("NNNN",zr),Lt("NNNNN",Vr),Vt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,i){var r=n._locale.erasParse(t,i,n._strict);r?p(n).era=r:p(n).invalidEra=t})),Lt("y",Ot),Lt("yy",Ot),Lt("yyy",Ot),Lt("yyyy",Ot),Lt("yo",Br),Vt(["y","yy","yyy","yyyy"],Ut),Vt(["yo"],(function(t,e,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Ut]=n._locale.eraYearOrdinalParse(t,r):e[Ut]=parseInt(t,10)})),B(0,["gg",2],0,(function(){return this.weekYear()%100})),B(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),jr("gggg","weekYear"),jr("ggggg","weekYear"),jr("GGGG","isoWeekYear"),jr("GGGGG","isoWeekYear"),rt("weekYear","gg"),rt("isoWeekYear","GG"),lt("weekYear",1),lt("isoWeekYear",1),Lt("G",At),Lt("g",At),Lt("GG",Mt,xt),Lt("gg",Mt,xt),Lt("GGGG",Tt,wt),Lt("gggg",Tt,wt),Lt("GGGGG",Pt,kt),Lt("ggggg",Pt,kt),Bt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,i){e[i.substr(0,2)]=ht(t)})),Bt(["gg","GG"],(function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)})),B("Q",0,"Qo","quarter"),rt("quarter","Q"),lt("quarter",7),Lt("Q",bt),Vt("Q",(function(t,e){e[$t]=3*(ht(t)-1)})),B("D",["DD",2],"Do","date"),rt("date","D"),lt("date",9),Lt("D",Mt),Lt("DD",Mt,xt),Lt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Vt(["D","DD"],Gt),Vt("Do",(function(t,e){e[Gt]=ht(t.match(Mt)[0])}));var ta=ft("Date",!0);function ea(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}B("DDD",["DDDD",3],"DDDo","dayOfYear"),rt("dayOfYear","DDD"),lt("dayOfYear",4),Lt("DDD",Ct),Lt("DDDD",_t),Vt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=ht(t)})),B("m",["mm",2],0,"minute"),rt("minute","m"),lt("minute",14),Lt("m",Mt),Lt("mm",Mt,xt),Vt(["m","mm"],Zt);var na=ft("Minutes",!1);B("s",["ss",2],0,"second"),rt("second","s"),lt("second",15),Lt("s",Mt),Lt("ss",Mt,xt),Vt(["s","ss"],Xt);var ia,ra,aa=ft("Seconds",!1);for(B("S",0,0,(function(){return~~(this.millisecond()/100)})),B(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),B(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),B(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),B(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),B(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),B(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),rt("millisecond","ms"),lt("millisecond",16),Lt("S",Ct,bt),Lt("SS",Ct,xt),Lt("SSS",Ct,_t),ia="SSSS";ia.length<=9;ia+="S")Lt(ia,Ot);function oa(t,e){e[Kt]=ht(1e3*("0."+t))}for(ia="S";ia.length<=9;ia+="S")Vt(ia,oa);function sa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}ra=ft("Milliseconds",!1),B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var ua=w.prototype;function ca(t){return Xn(1e3*t)}function da(){return Xn.apply(null,arguments).parseZone()}function ha(t){return t}ua.add=Ni,ua.calendar=Hi,ua.clone=ji,ua.diff=Ki,ua.endOf=yr,ua.format=nr,ua.from=ir,ua.fromNow=rr,ua.to=ar,ua.toNow=or,ua.get=pt,ua.invalidAt=Cr,ua.isAfter=Ui,ua.isBefore=$i,ua.isBetween=Gi,ua.isSame=qi,ua.isSameOrAfter=Zi,ua.isSameOrBefore=Xi,ua.isValid=Sr,ua.lang=lr,ua.locale=sr,ua.localeData=ur,ua.max=Jn,ua.min=Kn,ua.parsingFlags=Dr,ua.set=vt,ua.startOf=vr,ua.subtract=Li,ua.toArray=wr,ua.toObject=kr,ua.toDate=_r,ua.toISOString=tr,ua.inspect=er,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ua[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ua.toJSON=Mr,ua.toString=Qi,ua.unix=xr,ua.valueOf=br,ua.creationData=Tr,ua.eraName=Rr,ua.eraNarrow=Ir,ua.eraAbbr=Fr,ua.eraYear=Nr,ua.year=ye,ua.isLeapYear=be,ua.weekYear=Ur,ua.isoWeekYear=$r,ua.quarter=ua.quarters=Qr,ua.month=he,ua.daysInMonth=fe,ua.week=ua.weeks=Oe,ua.isoWeek=ua.isoWeeks=Ae,ua.weeksInYear=Zr,ua.weeksInWeekYear=Xr,ua.isoWeeksInYear=Gr,ua.isoWeeksInISOWeekYear=qr,ua.date=ta,ua.day=ua.days=$e,ua.weekday=Ge,ua.isoWeekday=qe,ua.dayOfYear=ea,ua.hour=ua.hours=on,ua.minute=ua.minutes=na,ua.second=ua.seconds=aa,ua.millisecond=ua.milliseconds=ra,ua.utcOffset=pi,ua.utc=yi,ua.local=bi,ua.parseZone=xi,ua.hasAlignedHourOffset=_i,ua.isDST=wi,ua.isLocal=Mi,ua.isUtcOffset=Si,ua.isUtc=Di,ua.isUTC=Di,ua.zoneAbbr=sa,ua.zoneName=la,ua.dates=S("dates accessor is deprecated. Use date instead.",ta),ua.months=S("months accessor is deprecated. Use month instead",he),ua.years=S("years accessor is deprecated. Use year instead",ye),ua.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vi),ua.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",ki);var fa=R.prototype;function ga(t,e,n,i){var r=bn(),a=g().set(i,e);return r[n](a,t)}function ma(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return ga(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=ga(t,i,n,"month");return r}function pa(t,e,n,i){"boolean"==typeof t?(c(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,c(e)&&(n=e,e=void 0),e=e||"");var r,a=bn(),o=t?a._week.dow:0,s=[];if(null!=n)return ga(e,(n+o)%7,i,"day");for(r=0;r<7;r++)s[r]=ga(e,(r+o)%7,i,"day");return s}function va(t,e){return ma(t,e,"months")}function ya(t,e){return ma(t,e,"monthsShort")}function ba(t,e,n){return pa(t,e,n,"weekdays")}function xa(t,e,n){return pa(t,e,n,"weekdaysShort")}function _a(t,e,n){return pa(t,e,n,"weekdaysMin")}fa.calendar=F,fa.longDateFormat=q,fa.invalidDate=X,fa.ordinal=Q,fa.preparse=ha,fa.postformat=ha,fa.relativeTime=et,fa.pastFuture=nt,fa.set=O,fa.eras=Pr,fa.erasParse=Or,fa.erasConvertYear=Ar,fa.erasAbbrRegex=Yr,fa.erasNameRegex=Lr,fa.erasNarrowRegex=Wr,fa.months=se,fa.monthsShort=le,fa.monthsParse=ce,fa.monthsRegex=me,fa.monthsShortRegex=ge,fa.week=De,fa.firstDayOfYear=Pe,fa.firstDayOfWeek=Te,fa.weekdays=Ve,fa.weekdaysMin=He,fa.weekdaysShort=Be,fa.weekdaysParse=Ue,fa.weekdaysRegex=Ze,fa.weekdaysShortRegex=Xe,fa.weekdaysMinRegex=Ke,fa.isPM=rn,fa.meridiem=sn,pn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===ht(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=S("moment.lang is deprecated. Use moment.locale instead.",pn),i.langData=S("moment.langData is deprecated. Use moment.localeData instead.",bn);var wa=Math.abs;function ka(){var t=this._data;return this._milliseconds=wa(this._milliseconds),this._days=wa(this._days),this._months=wa(this._months),t.milliseconds=wa(t.milliseconds),t.seconds=wa(t.seconds),t.minutes=wa(t.minutes),t.hours=wa(t.hours),t.months=wa(t.months),t.years=wa(t.years),this}function Ma(t,e,n,i){var r=Pi(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function Sa(t,e){return Ma(this,t,e,1)}function Da(t,e){return Ma(this,t,e,-1)}function Ca(t){return t<0?Math.floor(t):Math.ceil(t)}function Ta(){var t,e,n,i,r,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Ca(Oa(s)+o),o=0,s=0),l.milliseconds=a%1e3,t=dt(a/1e3),l.seconds=t%60,e=dt(t/60),l.minutes=e%60,n=dt(e/60),l.hours=n%24,o+=dt(n/24),s+=r=dt(Pa(o)),o-=Ca(Oa(r)),i=dt(s/12),s%=12,l.days=o,l.months=s,l.years=i,this}function Pa(t){return 4800*t/146097}function Oa(t){return 146097*t/4800}function Aa(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=at(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+Pa(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Oa(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function Ra(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ht(this._months/12):NaN}function Ia(t){return function(){return this.as(t)}}var Fa=Ia("ms"),Na=Ia("s"),La=Ia("m"),Ya=Ia("h"),Wa=Ia("d"),Ea=Ia("w"),za=Ia("M"),Va=Ia("Q"),Ba=Ia("y");function Ha(){return Pi(this)}function ja(t){return t=at(t),this.isValid()?this[t+"s"]():NaN}function Ua(t){return function(){return this.isValid()?this._data[t]:NaN}}var $a=Ua("milliseconds"),Ga=Ua("seconds"),qa=Ua("minutes"),Za=Ua("hours"),Xa=Ua("days"),Ka=Ua("months"),Ja=Ua("years");function Qa(){return dt(this.days()/7)}var to=Math.round,eo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function no(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}function io(t,e,n,i){var r=Pi(t).abs(),a=to(r.as("s")),o=to(r.as("m")),s=to(r.as("h")),l=to(r.as("d")),u=to(r.as("M")),c=to(r.as("w")),d=to(r.as("y")),h=a<=n.ss&&["s",a]||a0,h[4]=i,no.apply(null,h)}function ro(t){return void 0===t?to:"function"==typeof t&&(to=t,!0)}function ao(t,e){return void 0!==eo[t]&&(void 0===e?eo[t]:(eo[t]=e,"s"===t&&(eo.ss=e-1),!0))}function oo(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,a=eo;return"object"===W(t)&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"===W(e)&&(a=Object.assign({},eo,e),null!=e.s&&null==e.ss&&(a.ss=e.s-1)),i=io(this,!r,a,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)}var so=Math.abs;function lo(t){return(t>0)-(t<0)||+t}function uo(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,r,a,o,s,l=so(this._milliseconds)/1e3,u=so(this._days),c=so(this._months),d=this.asSeconds();return d?(t=dt(l/60),e=dt(t/60),l%=60,t%=60,n=dt(c/12),c%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",a=lo(this._months)!==lo(d)?"-":"",o=lo(this._days)!==lo(d)?"-":"",s=lo(this._milliseconds)!==lo(d)?"-":"",r+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(u?o+u+"D":"")+(e||t||l?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(l?s+i+"S":"")):"P0D"}var co=si.prototype;return co.isValid=ai,co.abs=ka,co.add=Sa,co.subtract=Da,co.as=Aa,co.asMilliseconds=Fa,co.asSeconds=Na,co.asMinutes=La,co.asHours=Ya,co.asDays=Wa,co.asWeeks=Ea,co.asMonths=za,co.asQuarters=Va,co.asYears=Ba,co.valueOf=Ra,co._bubble=Ta,co.clone=Ha,co.get=ja,co.milliseconds=$a,co.seconds=Ga,co.minutes=qa,co.hours=Za,co.days=Xa,co.weeks=Qa,co.months=Ka,co.years=Ja,co.humanize=oo,co.toISOString=uo,co.toString=uo,co.toJSON=uo,co.locale=sr,co.localeData=ur,co.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",uo),co.lang=lr,B("X",0,0,"unix"),B("x",0,0,"valueOf"),Lt("x",At),Lt("X",Ft),Vt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),Vt("x",(function(t,e,n){n._d=new Date(ht(t))})),//! moment.js i.version="2.29.1",r(Xn),i.fn=ua,i.min=ti,i.max=ei,i.now=ni,i.utc=g,i.unix=ca,i.months=va,i.isDate=d,i.locale=pn,i.invalid=y,i.duration=Pi,i.isMoment=k,i.weekdays=ba,i.parseZone=da,i.localeData=bn,i.isDuration=li,i.monthsShort=ya,i.weekdaysMin=_a,i.defineLocale=vn,i.updateLocale=yn,i.locales=xn,i.weekdaysShort=xa,i.normalizeUnits=at,i.relativeTimeRounding=ro,i.relativeTimeThreshold=ao,i.calendarFormat=Bi,i.prototype=ua,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()})),vt=L((function(t,e){t.exports=function(t){function e(t,e){return t(e={exports:{}},e.exports),e.exports}function n(t){return t&&t.default||t}t=t&&t.hasOwnProperty("default")?t.default:t;var i={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},r=e((function(t){var e={};for(var n in i)i.hasOwnProperty(n)&&(e[i[n]]=n);var r=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in r)if(r.hasOwnProperty(a)){if(!("channels"in r[a]))throw new Error("missing channels property: "+a);if(!("labels"in r[a]))throw new Error("missing channel labels property: "+a);if(r[a].labels.length!==r[a].channels)throw new Error("channel and label counts mismatch: "+a);var o=r[a].channels,s=r[a].labels;delete r[a].channels,delete r[a].labels,Object.defineProperty(r[a],"channels",{value:o}),Object.defineProperty(r[a],"labels",{value:s})}function l(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}r.rgb.hsl=function(t){var e,n,i=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),l=s-o;return s===o?e=0:i===s?e=(r-a)/l:r===s?e=2+(a-i)/l:a===s&&(e=4+(i-r)/l),(e=Math.min(60*e,360))<0&&(e+=360),n=(o+s)/2,[e,100*(s===o?0:n<=.5?l/(s+o):l/(2-s-o)),100*n]},r.rgb.hsv=function(t){var e,n,i,r,a,o=t[0]/255,s=t[1]/255,l=t[2]/255,u=Math.max(o,s,l),c=u-Math.min(o,s,l),d=function(t){return(u-t)/6/c+.5};return 0===c?r=a=0:(a=c/u,e=d(o),n=d(s),i=d(l),o===u?r=i-n:s===u?r=1/3+e-i:l===u&&(r=2/3+n-e),r<0?r+=1:r>1&&(r-=1)),[360*r,100*a,100*u]},r.rgb.hwb=function(t){var e=t[0],n=t[1],i=t[2];return[r.rgb.hsl(t)[0],1/255*Math.min(e,Math.min(n,i))*100,100*(i=1-1/255*Math.max(e,Math.max(n,i)))]},r.rgb.cmyk=function(t){var e,n=t[0]/255,i=t[1]/255,r=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-i,1-r)))/(1-e)||0),100*((1-i-e)/(1-e)||0),100*((1-r-e)/(1-e)||0),100*e]},r.rgb.keyword=function(t){var n=e[t];if(n)return n;var r,a=1/0;for(var o in i)if(i.hasOwnProperty(o)){var s=l(t,i[o]);s.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*e+.7152*n+.0722*i),100*(.0193*e+.1192*n+.9505*i)]},r.rgb.lab=function(t){var e=r.rgb.xyz(t),n=e[0],i=e[1],a=e[2];return i/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},r.hsl.rgb=function(t){var e,n,i,r,a,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[a=255*l,a,a];e=2*l-(n=l<.5?l*(1+s):l+s-l*s),r=[0,0,0];for(var u=0;u<3;u++)(i=o+1/3*-(u-1))<0&&i++,i>1&&i--,a=6*i<1?e+6*(n-e)*i:2*i<1?n:3*i<2?e+(n-e)*(2/3-i)*6:e,r[u]=255*a;return r},r.hsl.hsv=function(t){var e=t[0],n=t[1]/100,i=t[2]/100,r=n,a=Math.max(i,.01);return n*=(i*=2)<=1?i:2-i,r*=a<=1?a:2-a,[e,100*(0===i?2*r/(a+r):2*n/(i+n)),(i+n)/2*100]},r.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,r=Math.floor(e)%6,a=e-Math.floor(e),o=255*i*(1-n),s=255*i*(1-n*a),l=255*i*(1-n*(1-a));switch(i*=255,r){case 0:return[i,l,o];case 1:return[s,i,o];case 2:return[o,i,l];case 3:return[o,s,i];case 4:return[l,o,i];case 5:return[i,o,s]}},r.hsv.hsl=function(t){var e,n,i,r=t[0],a=t[1]/100,o=t[2]/100,s=Math.max(o,.01);return i=(2-a)*o,n=a*s,[r,100*(n=(n/=(e=(2-a)*s)<=1?e:2-e)||0),100*(i/=2)]},r.hwb.rgb=function(t){var e,n,i,r,a,o,s,l=t[0]/360,u=t[1]/100,c=t[2]/100,d=u+c;switch(d>1&&(u/=d,c/=d),i=6*l-(e=Math.floor(6*l)),0!=(1&e)&&(i=1-i),r=u+i*((n=1-c)-u),e){default:case 6:case 0:a=n,o=r,s=u;break;case 1:a=r,o=n,s=u;break;case 2:a=u,o=n,s=r;break;case 3:a=u,o=r,s=n;break;case 4:a=r,o=u,s=n;break;case 5:a=n,o=u,s=r}return[255*a,255*o,255*s]},r.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,r=t[3]/100;return[255*(1-Math.min(1,e*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,i*(1-r)+r))]},r.xyz.rgb=function(t){var e,n,i,r=t[0]/100,a=t[1]/100,o=t[2]/100;return n=-.9689*r+1.8758*a+.0415*o,i=.0557*r+-.204*a+1.057*o,e=(e=3.2406*r+-1.5372*a+-.4986*o)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]},r.xyz.lab=function(t){var e=t[0],n=t[1],i=t[2];return n/=100,i/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},r.lab.xyz=function(t){var e,n,i,r=t[0];e=t[1]/500+(n=(r+16)/116),i=n-t[2]/200;var a=Math.pow(n,3),o=Math.pow(e,3),s=Math.pow(i,3);return n=a>.008856?a:(n-16/116)/7.787,e=o>.008856?o:(e-16/116)/7.787,i=s>.008856?s:(i-16/116)/7.787,[e*=95.047,n*=100,i*=108.883]},r.lab.lch=function(t){var e,n=t[0],i=t[1],r=t[2];return(e=360*Math.atan2(r,i)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(i*i+r*r),e]},r.lch.lab=function(t){var e,n=t[0],i=t[1];return e=t[2]/360*2*Math.PI,[n,i*Math.cos(e),i*Math.sin(e)]},r.rgb.ansi16=function(t){var e=t[0],n=t[1],i=t[2],a=1 in arguments?arguments[1]:r.rgb.hsv(t)[2];if(0===(a=Math.round(a/50)))return 30;var o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===a&&(o+=60),o},r.hsv.ansi16=function(t){return r.rgb.ansi16(r.hsv.rgb(t),t[2])},r.rgb.ansi256=function(t){var e=t[0],n=t[1],i=t[2];return e===n&&n===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},r.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},r.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var n;return t-=16,[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},r.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map((function(t){return t+t})).join(""));var i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},r.rgb.hcg=function(t){var e,n=t[0]/255,i=t[1]/255,r=t[2]/255,a=Math.max(Math.max(n,i),r),o=Math.min(Math.min(n,i),r),s=a-o;return e=s<=0?0:a===n?(i-r)/s%6:a===i?2+(r-n)/s:4+(n-i)/s+4,e/=6,[360*(e%=1),100*s,100*(s<1?o/(1-s):0)]},r.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=1,r=0;return(i=n<.5?2*e*n:2*e*(1-n))<1&&(r=(n-.5*i)/(1-i)),[t[0],100*i,100*r]},r.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=e*n,r=0;return i<1&&(r=(n-i)/(1-i)),[t[0],100*i,100*r]},r.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100;if(0===n)return[255*i,255*i,255*i];var r=[0,0,0],a=e%1*6,o=a%1,s=1-o,l=0;switch(Math.floor(a)){case 0:r[0]=1,r[1]=o,r[2]=0;break;case 1:r[0]=s,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=o;break;case 3:r[0]=0,r[1]=s,r[2]=1;break;case 4:r[0]=o,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=s}return l=(1-n)*i,[255*(n*r[0]+l),255*(n*r[1]+l),255*(n*r[2]+l)]},r.hcg.hsv=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e),i=0;return n>0&&(i=e/n),[t[0],100*i,100*n]},r.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],100*i,100*n]},r.hcg.hwb=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},r.hwb.hcg=function(t){var e=t[1]/100,n=1-t[2]/100,i=n-e,r=0;return i<1&&(r=(n-i)/(1-i)),[t[0],100*i,100*r]},r.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},r.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},r.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},r.gray.hsl=r.gray.hsv=function(t){return[0,0,t[0]]},r.gray.hwb=function(t){return[0,100,t[0]]},r.gray.cmyk=function(t){return[0,0,0,t[0]]},r.gray.lab=function(t){return[t[0],0,0]},r.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}}));function a(){for(var t={},e=Object.keys(r),n=e.length,i=0;i1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}function h(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"===W(n))for(var i=n.length,r=0;r=0&&e<1?R(Math.round(255*e)):"")}function k(t,e){return e<1||t[3]&&t[3]<1?M(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"}function M(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function S(t,e){return e<1||t[3]&&t[3]<1?D(t,e):"rgb("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%)"}function D(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function C(t,e){return e<1||t[3]&&t[3]<1?T(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"}function T(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function P(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"}function O(t){return I[t.slice(0,3)]}function A(t,e,n){return Math.min(Math.max(e,t),n)}function R(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var I={};for(var F in g)I[g[F]]=F;var N=function t(e){return e instanceof t?e:this instanceof t?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof e?(n=m.getRgba(e))?this.setValues("rgb",n):(n=m.getHsla(e))?this.setValues("hsl",n):(n=m.getHwb(e))&&this.setValues("hwb",n):"object"===W(e)&&(void 0!==(n=e).r||void 0!==n.red?this.setValues("rgb",n):void 0!==n.l||void 0!==n.lightness?this.setValues("hsl",n):void 0!==n.v||void 0!==n.value?this.setValues("hsv",n):void 0!==n.w||void 0!==n.whiteness?this.setValues("hwb",n):void 0===n.c&&void 0===n.cyan||this.setValues("cmyk",n)))):new t(e);var n};N.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t=(t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return m.hexString(this.values.rgb)},rgbString:function(){return m.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return m.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return m.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return m.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return m.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return m.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return m.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;nn?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=this,i=t,r=void 0===e?.5:e,a=2*r-1,o=n.alpha()-i.alpha(),s=((a*o==-1?a:(a+o)/(1+a*o))+1)/2,l=1-s;return this.rgb(s*n.red()+l*i.red(),s*n.green()+l*i.green(),s*n.blue()+l*i.blue()).alpha(n.alpha()*r+i.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new N,i=this.values,r=n.values;for(var a in i)i.hasOwnProperty(a)&&(t=i[a],"[object Array]"===(e={}.toString.call(t))?r[a]=t.slice(0):"[object Number]"===e?r[a]=t:console.error("unexpected color value:",t));return n}},N.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},N.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},N.prototype.getValues=function(t){for(var e=this.values,n={},i=0;i=0;r--)e.call(n,t[r],r);else for(r=0;r=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),e=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),e=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),e=n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-B.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*B.easeInBounce(2*t):.5*B.easeOutBounce(2*t-1)+.5}},H={effects:B};V.easingEffects=B;var j=Math.PI,U=j/180,$=2*j,G=j/2,q=j/4,Z=2*j/3,X={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,r,a){if(a){var o=Math.min(a,r/2,i/2),s=e+o,l=n+o,u=e+i-o,c=n+r-o;t.moveTo(e,l),se.left-n&&t.xe.top-n&&t.y0&&t.requestAnimationFrame()},advance:function(){for(var t,e,n,i,r=this.animations,a=0;a=n?(st.callback(t.onAnimationComplete,[t],e),e.animating=!1,r.splice(a,1)):++a}},bt=st.options.resolve,xt=["push","pop","shift","splice","unshift"];function _t(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),xt.forEach((function(e){var n="onData"+e.charAt(0).toUpperCase()+e.slice(1),i=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),r=i.apply(this,e);return st.each(t._chartjs.listeners,(function(t){"function"==typeof t[n]&&t[n].apply(t,e)})),r}})})))}function wt(t,e){var n=t._chartjs;if(n){var i=n.listeners,r=i.indexOf(e);-1!==r&&i.splice(r,1),i.length>0||(xt.forEach((function(e){delete t[e]})),delete t._chartjs)}}var kt=function(t,e){this.initialize(t,e)};st.extend(kt.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.chart,i=n.scales,r=t.getDataset(),a=n.options.scales;null!==e.xAxisID&&e.xAxisID in i&&!r.xAxisID||(e.xAxisID=r.xAxisID||a.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in i&&!r.yAxisID||(e.yAxisID=r.yAxisID||a.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&wt(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,i=n.getMeta(),r=n.getDataset().data||[],a=i.data;for(t=0,e=r.length;ti&&t.insertElements(i,r-i)},insertElements:function(t,e){for(var n=0;nr?(a=r/e.innerRadius,t.arc(o,s,e.innerRadius-r,i+a,n-a,!0)):t.arc(o,s,r,i+Math.PI/2,n-Math.PI/2),t.closePath(),t.clip()}function Ct(t,e,n,i){var r,a=n.endAngle;for(i&&(n.endAngle=n.startAngle+St,Dt(t,n),n.endAngle=a,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=St,n.fullCircles--)),t.beginPath(),t.arc(n.x,n.y,n.innerRadius,n.startAngle+St,n.startAngle,!0),r=0;rs;)r-=St;for(;r=o&&r<=s,u=a>=n.innerRadius&&a<=n.outerRadius;return l&&u}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t,e=this._chart.ctx,n=this._view,i="inner"===n.borderAlign?.33:0,r={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-i,0),pixelMargin:i,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/St)};if(e.save(),e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,r.fullCircles){for(r.endAngle=r.startAngle+St,e.beginPath(),e.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),e.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),e.closePath(),t=0;tt.x&&(e=Vt(e,"left","right")):t.basen?n:i,r:l.right||r<0?0:r>e?e:r,b:l.bottom||a<0?0:a>n?n:a,l:l.left||o<0?0:o>e?e:o}}function jt(t){var e=zt(t),n=e.right-e.left,i=e.bottom-e.top,r=Ht(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i},inner:{x:e.left+r.l,y:e.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b}}}function Ut(t,e,n){var i=null===e,r=null===n,a=!(!t||i&&r)&&zt(t);return a&&(i||e>=a.left&&e<=a.right)&&(r||n>=a.top&&n<=a.bottom)}Q._set("global",{elements:{rectangle:{backgroundColor:Wt,borderColor:Wt,borderSkipped:"bottom",borderWidth:0}}});var $t=mt.extend({_type:"rectangle",draw:function(){var t=this._chart.ctx,e=this._view,n=jt(e),i=n.outer,r=n.inner;t.fillStyle=e.backgroundColor,t.fillRect(i.x,i.y,i.w,i.h),i.w===r.w&&i.h===r.h||(t.save(),t.beginPath(),t.rect(i.x,i.y,i.w,i.h),t.clip(),t.fillStyle=e.borderColor,t.rect(r.x,r.y,r.w,r.h),t.fill("evenodd"),t.restore())},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){return Ut(this._view,t,e)},inLabelRange:function(t,e){var n=this._view;return Et(n)?Ut(n,t,null):Ut(n,null,e)},inXRange:function(t){return Ut(this._view,t,null)},inYRange:function(t){return Ut(this._view,null,t)},getCenterPoint:function(){var t,e,n=this._view;return Et(n)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return Et(t)?t.width*Math.abs(t.y-t.base):t.height*Math.abs(t.x-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}}),Gt={},qt=Pt,Zt=Rt,Xt=Yt,Kt=$t;Gt.Arc=qt,Gt.Line=Zt,Gt.Point=Xt,Gt.Rectangle=Kt;var Jt=st._deprecated,Qt=st.valueOrDefault;function te(t,e){var n,i,r,a,o=t._length;for(r=1,a=e.length;r0?Math.min(o,Math.abs(i-n)):o,n=i;return o}function ee(t,e,n){var i,r,a=n.barThickness,o=e.stackCount,s=e.pixels[t],l=st.isNullOrUndef(a)?te(e.scale,e.pixels):-1;return st.isNullOrUndef(a)?(i=l*n.categoryPercentage,r=n.barPercentage):(i=a*o,r=1),{chunk:i/o,ratio:r,start:s-i/2}}function ne(t,e,n){var i,r=e.pixels,a=r[t],o=t>0?r[t-1]:null,s=t=0&&p.min>=0?p.min:p.max,_=void 0===p.start?p.end:p.max>=0&&p.min>=0?p.max-p.min:p.min-p.max,w=m.length;if(y||void 0===y&&void 0!==b)for(i=0;i=0&&u.max>=0?u.max:u.min,(p.min<0&&a<0||p.max>=0&&a>0)&&(x+=a));return o=h.getPixelForValue(x),l=(s=h.getPixelForValue(x+_))-o,void 0!==v&&Math.abs(l)=0&&!f||_<0&&f?o-v:o+v),{size:l,base:o,head:s,center:s+l/2}},calculateBarIndexPixels:function(t,e,n,i){var r=this,a="flex"===i.barThickness?ne(e,n,i):ee(e,n,i),o=r.getStackIndex(t,r.getMeta().stack),s=a.start+a.chunk*o+a.chunk/2,l=Math.min(Qt(i.maxBarThickness,1/0),a.chunk*a.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}},draw:function(){var t=this,e=t.chart,n=t._getValueScale(),i=t.getMeta().data,r=t.getDataset(),a=i.length,o=0;for(st.canvas.clipArea(e.ctx,e.chartArea);o=le?-ue:y<-le?ue:0)+p,x=Math.cos(y),_=Math.sin(y),w=Math.cos(b),k=Math.sin(b),M=y<=0&&b>=0||b>=ue,S=y<=ce&&b>=ce||b>=ue+ce,D=y<=-ce&&b>=-ce||b>=le+ce,C=y===-le||b>=le?-1:Math.min(x,x*m,w,w*m),T=D?-1:Math.min(_,_*m,k,k*m),P=M?1:Math.max(x,x*m,w,w*m),O=S?1:Math.max(_,_*m,k,k*m);u=(P-C)/2,c=(O-T)/2,d=-(P+C)/2,h=-(O+T)/2}for(i=0,r=g.length;i0&&!isNaN(t)?ue*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){var e,n,i,r,a,o,s,l,u=this,c=0,d=u.chart;if(!t)for(e=0,n=d.data.datasets.length;e(c=s>c?s:c)?l:c);return c},setHoverStyle:function(t){var e=t._model,n=t._options,i=st.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=se(n.hoverBackgroundColor,i(n.backgroundColor)),e.borderColor=se(n.hoverBorderColor,i(n.borderColor)),e.borderWidth=se(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(t){for(var e=0,n=0;n0&&me(u[t-1]._model,l)&&(n.controlPointPreviousX=c(n.controlPointPreviousX,l.left,l.right),n.controlPointPreviousY=c(n.controlPointPreviousY,l.top,l.bottom)),t0&&(a=t.getDatasetMeta(a[0]._datasetIndex).data),a},"x-axis":function(t,e){return Ae(t,e,{intersect:!1})},point:function(t,e){return Te(t,De(e,t))},nearest:function(t,e,n){var i=De(e,t);n.axis=n.axis||"xy";var r=Oe(n.axis);return Pe(t,i,n.intersect,r)},x:function(t,e,n){var i=De(e,t),r=[],a=!1;return Ce(t,(function(t){t.inXRange(i.x)&&r.push(t),t.inRange(i.x,i.y)&&(a=!0)})),n.intersect&&!a&&(r=[]),r},y:function(t,e,n){var i=De(e,t),r=[],a=!1;return Ce(t,(function(t){t.inYRange(i.y)&&r.push(t),t.inRange(i.x,i.y)&&(a=!0)})),n.intersect&&!a&&(r=[]),r}}},Ie=st.extend;function Fe(t,e){return st.where(t,(function(t){return t.pos===e}))}function Ne(t,e){return t.sort((function(t,n){var i=e?n:t,r=e?t:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight}))}function Le(t){var e,n,i,r=[];for(e=0,n=(t||[]).length;e div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n",qe=n(Object.freeze({__proto__:null,default:Ge})),Ze="$chartjs",Xe="chartjs-",Ke=Xe+"size-monitor",Je=Xe+"render-monitor",Qe=Xe+"render-animation",tn=["animationstart","webkitAnimationStart"],en={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function nn(t,e){var n=st.getStyle(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}function rn(t,e){var n=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[Ze]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===r||""===r){var a=nn(t,"width");void 0!==a&&(t.width=a)}if(null===i||""===i)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var o=nn(t,"height");void 0!==a&&(t.height=o)}return t}var an=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};function on(t,e,n){t.addEventListener(e,n,an)}function sn(t,e,n){t.removeEventListener(e,n,an)}function ln(t,e,n,i,r){return{type:t,chart:e,native:r||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function un(t,e){var n=en[t.type]||t.type,i=st.getRelativePosition(t,e);return ln(n,e,i.x,i.y,t)}function cn(t,e){var n=!1,i=[];return function(){i=Array.prototype.slice.call(arguments),e=e||this,n||(n=!0,st.requestAnimFrame.call(window,(function(){n=!1,t.apply(e,i)})))}}function dn(t){var e=document.createElement("div");return e.className=t||"",e}function hn(t){var e=1e6,n=dn(Ke),i=dn(Ke+"-expand"),r=dn(Ke+"-shrink");i.appendChild(dn()),r.appendChild(dn()),n.appendChild(i),n.appendChild(r),n._reset=function(){i.scrollLeft=e,i.scrollTop=e,r.scrollLeft=e,r.scrollTop=e};var a=function(){n._reset(),t()};return on(i,"scroll",a.bind(i,"expand")),on(r,"scroll",a.bind(r,"shrink")),n}function fn(t,e){var n=t[Ze]||(t[Ze]={}),i=n.renderProxy=function(t){t.animationName===Qe&&e()};st.each(tn,(function(e){on(t,e,i)})),n.reflow=!!t.offsetParent,t.classList.add(Je)}function gn(t){var e=t[Ze]||{},n=e.renderProxy;n&&(st.each(tn,(function(e){sn(t,e,n)})),delete e.renderProxy),t.classList.remove(Je)}function mn(t,e,n){var i=t[Ze]||(t[Ze]={}),r=i.resizer=hn(cn((function(){if(i.resizer){var r=n.options.maintainAspectRatio&&t.parentNode,a=r?r.clientWidth:0;e(ln("resize",n)),r&&r.clientWidth0){var a=t[0];a.label?n=a.label:a.xLabel?n=a.xLabel:r>0&&a.index-1?t.split("\n"):t}function Tn(t){var e=t._xScale,n=t._yScale||t._scale,i=t._index,r=t._datasetIndex,a=t._chart.getDatasetMeta(r).controller,o=a._getIndexScale(),s=a._getValueScale();return{xLabel:e?e.getLabelForIndex(i,r):"",yLabel:n?n.getLabelForIndex(i,r):"",label:o?""+o.getLabelForIndex(i,r):"",value:s?""+s.getLabelForIndex(i,r):"",index:i,datasetIndex:r,x:t._model.x,y:t._model.y}}function Pn(t){var e=Q.global;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,rtl:t.rtl,textDirection:t.textDirection,bodyFontColor:t.bodyFontColor,_bodyFontFamily:kn(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:kn(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:kn(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:kn(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:kn(t.titleFontStyle,e.defaultFontStyle),titleFontSize:kn(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:kn(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:kn(t.footerFontStyle,e.defaultFontStyle),footerFontSize:kn(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function On(t,e){var n=t._chart.ctx,i=2*e.yPadding,r=0,a=e.body,o=a.reduce((function(t,e){return t+e.before.length+e.lines.length+e.after.length}),0);o+=e.beforeBody.length+e.afterBody.length;var s=e.title.length,l=e.footer.length,u=e.titleFontSize,c=e.bodyFontSize,d=e.footerFontSize;i+=s*u,i+=s?(s-1)*e.titleSpacing:0,i+=s?e.titleMarginBottom:0,i+=o*c,i+=o?(o-1)*e.bodySpacing:0,i+=l?e.footerMarginTop:0,i+=l*d,i+=l?(l-1)*e.footerSpacing:0;var h=0,f=function(t){r=Math.max(r,n.measureText(t).width+h)};return n.font=st.fontString(u,e._titleFontStyle,e._titleFontFamily),st.each(e.title,f),n.font=st.fontString(c,e._bodyFontStyle,e._bodyFontFamily),st.each(e.beforeBody.concat(e.afterBody),f),h=e.displayColors?c+2:0,st.each(a,(function(t){st.each(t.before,f),st.each(t.lines,f),st.each(t.after,f)})),h=0,n.font=st.fontString(d,e._footerFontStyle,e._footerFontFamily),st.each(e.footer,f),{width:r+=2*e.xPadding,height:i}}function An(t,e){var n,i,r,a,o,s=t._model,l=t._chart,u=t._chart.chartArea,c="center",d="center";s.yl.height-e.height&&(d="bottom");var h=(u.left+u.right)/2,f=(u.top+u.bottom)/2;"center"===d?(n=function(t){return t<=h},i=function(t){return t>h}):(n=function(t){return t<=e.width/2},i=function(t){return t>=l.width-e.width/2}),r=function(t){return t+e.width+s.caretSize+s.caretPadding>l.width},a=function(t){return t-e.width-s.caretSize-s.caretPadding<0},o=function(t){return t<=f?"top":"bottom"},n(s.x)?(c="left",r(s.x)&&(c="center",d=o(s.y))):i(s.x)&&(c="right",a(s.x)&&(c="center",d=o(s.y)));var g=t._options;return{xAlign:g.xAlign?g.xAlign:c,yAlign:g.yAlign?g.yAlign:d}}function Rn(t,e,n,i){var r=t.x,a=t.y,o=t.caretSize,s=t.caretPadding,l=t.cornerRadius,u=n.xAlign,c=n.yAlign,d=o+s,h=l+s;return"right"===u?r-=e.width:"center"===u&&((r-=e.width/2)+e.width>i.width&&(r=i.width-e.width),r<0&&(r=0)),"top"===c?a+=d:a-="bottom"===c?e.height+d:e.height/2,"center"===c?"left"===u?r+=d:"right"===u&&(r-=d):"left"===u?r-=h:"right"===u&&(r+=h),{x:r,y:a}}function In(t,e){return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-t.xPadding:t.x+t.xPadding}function Fn(t){return Dn([],Cn(t))}var Nn=mt.extend({initialize:function(){this._model=Pn(this._options),this._lastActive=[]},getTitle:function(){var t=this,e=t._options.callbacks,n=e.beforeTitle.apply(t,arguments),i=e.title.apply(t,arguments),r=e.afterTitle.apply(t,arguments),a=[];return a=Dn(a,Cn(n)),a=Dn(a,Cn(i)),a=Dn(a,Cn(r))},getBeforeBody:function(){return Fn(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(t,e){var n=this,i=n._options.callbacks,r=[];return st.each(t,(function(t){var a={before:[],lines:[],after:[]};Dn(a.before,Cn(i.beforeLabel.call(n,t,e))),Dn(a.lines,i.label.call(n,t,e)),Dn(a.after,Cn(i.afterLabel.call(n,t,e))),r.push(a)})),r},getAfterBody:function(){return Fn(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var t=this,e=t._options.callbacks,n=e.beforeFooter.apply(t,arguments),i=e.footer.apply(t,arguments),r=e.afterFooter.apply(t,arguments),a=[];return a=Dn(a,Cn(n)),a=Dn(a,Cn(i)),a=Dn(a,Cn(r))},update:function(t){var e,n,i=this,r=i._options,a=i._model,o=i._model=Pn(r),s=i._active,l=i._data,u={xAlign:a.xAlign,yAlign:a.yAlign},c={x:a.x,y:a.y},d={width:a.width,height:a.height},h={x:a.caretX,y:a.caretY};if(s.length){o.opacity=1;var f=[],g=[];h=Sn[r.position].call(i,s,i._eventPosition);var m=[];for(e=0,n=s.length;e0&&n.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},i={x:e.x,y:e.y},r=Math.abs(e.opacity<.001)?0:e.opacity,a=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(i,e,t,n),i.y+=e.yPadding,st.rtl.overrideTextDirection(t,e.textDirection),this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),st.rtl.restoreTextDirection(t,e.textDirection),t.restore())}},handleEvent:function(t){var e=this,n=e._options,i=!1;return e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:(e._active=e._chart.getElementsAtEventForMode(t,n.mode,n),n.reverse&&e._active.reverse()),(i=!st.arrayEquals(e._active,e._lastActive))&&(e._lastActive=e._active,(n.enabled||n.custom)&&(e._eventPosition={x:t.x,y:t.y},e.update(!0),e.pivot())),i}}),Ln=Sn,Yn=Nn;Yn.positioners=Ln;var Wn=st.valueOrDefault;function En(){return st.merge(Object.create(null),[].slice.call(arguments),{merger:function(t,e,n,i){if("xAxes"===t||"yAxes"===t){var r,a,o,s=n[t].length;for(e[t]||(e[t]=[]),r=0;r=e[t].length&&e[t].push({}),!e[t][r].type||o.type&&o.type!==e[t][r].type?st.merge(e[t][r],[wn.getScaleDefaults(a),o]):st.merge(e[t][r],o)}else st._merger(t,e,n,i)}})}function zn(){return st.merge(Object.create(null),[].slice.call(arguments),{merger:function(t,e,n,i){var r=e[t]||Object.create(null),a=n[t];"scales"===t?e[t]=En(r,a):"scale"===t?e[t]=st.merge(r,[wn.getScaleDefaults(a.type),a]):st._merger(t,e,n,i)}})}function Vn(t){var e=(t=t||Object.create(null)).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=zn(Q.global,Q[t.type],t.options||{}),t}function Bn(t){var e=t.options;st.each(t.scales,(function(e){Ue.removeBox(t,e)})),e=zn(Q.global,Q[t.config.type],e),t.options=t.config.options=e,t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.tooltip._options=e.tooltips,t.tooltip.initialize()}function Hn(t,e,n){var i,r=function(t){return t.id===i};do{i=e+n++}while(st.findIndex(t,r)>=0);return i}function jn(t){return"top"===t||"bottom"===t}function Un(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}Q._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var $n=function(t,e){return this.construct(t,e),this};st.extend($n.prototype,{construct:function(t,e){var n=this;e=Vn(e);var i=xn.acquireContext(t,e),r=i&&i.canvas,a=r&&r.height,o=r&&r.width;n.id=st.uid(),n.ctx=i,n.canvas=r,n.config=e,n.width=o,n.height=a,n.aspectRatio=a?o/a:null,n.options=e.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,$n.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(t){n.config.data=t}}),i&&r?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return _n.notify(t,"beforeInit"),st.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.initToolTip(),_n.notify(t,"afterInit"),t},clear:function(){return st.canvas.clear(this),this},stop:function(){return yt.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,r=n.maintainAspectRatio&&e.aspectRatio||null,a=Math.max(0,Math.floor(st.getMaximumWidth(i))),o=Math.max(0,Math.floor(r?a/r:st.getMaximumHeight(i)));if((e.width!==a||e.height!==o)&&(i.width=e.width=a,i.height=e.height=o,i.style.width=a+"px",i.style.height=o+"px",st.retinaScale(e,n.devicePixelRatio),!t)){var s={width:a,height:o};_n.notify(e,"resize",[s]),n.onResize&&n.onResize(e,s),e.stop(),e.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;st.each(e.xAxes,(function(t,n){t.id||(t.id=Hn(e.xAxes,"x-axis-",n))})),st.each(e.yAxes,(function(t,n){t.id||(t.id=Hn(e.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var t=this,e=t.options,n=t.scales||{},i=[],r=Object.keys(n).reduce((function(t,e){return t[e]=!1,t}),{});e.scales&&(i=i.concat((e.scales.xAxes||[]).map((function(t){return{options:t,dtype:"category",dposition:"bottom"}})),(e.scales.yAxes||[]).map((function(t){return{options:t,dtype:"linear",dposition:"left"}})))),e.scale&&i.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),st.each(i,(function(e){var i=e.options,a=i.id,o=Wn(i.type,e.dtype);jn(i.position)!==jn(e.dposition)&&(i.position=e.dposition),r[a]=!0;var s=null;if(a in n&&n[a].type===o)(s=n[a]).options=i,s.ctx=t.ctx,s.chart=t;else{var l=wn.getScaleConstructor(o);if(!l)return;s=new l({id:a,type:o,options:i,ctx:t.ctx,chart:t}),n[s.id]=s}s.mergeTicksOptions(),e.isDefault&&(t.scale=s)})),st.each(r,(function(t,e){t||delete n[e]})),t.scales=n,wn.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t,e,n=this,i=[],r=n.data.datasets;for(t=0,e=r.length;t=0;--n)i.drawDataset(e[n],t);_n.notify(i,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this,i={meta:t,index:t.index,easingValue:e};!1!==_n.notify(n,"beforeDatasetDraw",[i])&&(t.controller.draw(e),_n.notify(n,"afterDatasetDraw",[i]))},_drawTooltip:function(t){var e=this,n=e.tooltip,i={tooltip:n,easingValue:t};!1!==_n.notify(e,"beforeTooltipDraw",[i])&&(n.draw(),_n.notify(e,"afterTooltipDraw",[i]))},getElementAtEvent:function(t){return Re.modes.single(this,t)},getElementsAtEvent:function(t){return Re.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return Re.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var i=Re.modes[e];return"function"==typeof i?i(this,t,n):[]},getDatasetAtEvent:function(t){return Re.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,n=e.data.datasets[t];n._meta||(n._meta={});var i=n._meta[e.id];return i||(i=n._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n.order||0,index:t}),i},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e=0;i--){var r=t[i];if(e(r))return r}},st.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},st.almostEquals=function(t,e,n){return Math.abs(t-e)=t},st.max=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.max(t,e)}),Number.NEGATIVE_INFINITY)},st.min=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.min(t,e)}),Number.POSITIVE_INFINITY)},st.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:t>0?1:-1},st.toRadians=function(t){return t*(Math.PI/180)},st.toDegrees=function(t){return t*(180/Math.PI)},st._decimalPlaces=function(t){if(st.isFinite(t)){for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}},st.getAngleFromPoint=function(t,e){var n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i),a=Math.atan2(i,n);return a<-.5*Math.PI&&(a+=2*Math.PI),{angle:a,distance:r}},st.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},st.aliasPixel=function(t){return t%2==0?0:.5},st._alignPixel=function(t,e,n){var i=t.currentDevicePixelRatio,r=n/2;return Math.round((e-r)*i)/i+r},st.splineCurve=function(t,e,n,i){var r=t.skip?e:t,a=e,o=n.skip?e:n,s=Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),l=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),u=s/(s+l),c=l/(s+l),d=i*(u=isNaN(u)?0:u),h=i*(c=isNaN(c)?0:c);return{previous:{x:a.x-d*(o.x-r.x),y:a.y-d*(o.y-r.y)},next:{x:a.x+h*(o.x-r.x),y:a.y+h*(o.y-r.y)}}},st.EPSILON=Number.EPSILON||1e-14,st.splineCurveMonotone=function(t){var e,n,i,r,a,o,s,l,u,c=(t||[]).map((function(t){return{model:t._model,deltaK:0,mK:0}})),d=c.length;for(e=0;e0?c[e-1]:null,(r=e0?c[e-1]:null,r=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},st.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},st.niceNum=function(t,e){var n=Math.floor(st.log10(t)),i=t/Math.pow(10,n);return(e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},st.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},st.getRelativePosition=function(t,e){var n,i,r=t.originalEvent||t,a=t.target||t.srcElement,o=a.getBoundingClientRect(),s=r.touches;s&&s.length>0?(n=s[0].clientX,i=s[0].clientY):(n=r.clientX,i=r.clientY);var l=parseFloat(st.getStyle(a,"padding-left")),u=parseFloat(st.getStyle(a,"padding-top")),c=parseFloat(st.getStyle(a,"padding-right")),d=parseFloat(st.getStyle(a,"padding-bottom")),h=o.right-o.left-l-c,f=o.bottom-o.top-u-d;return{x:n=Math.round((n-o.left-l)/h*a.width/e.currentDevicePixelRatio),y:i=Math.round((i-o.top-u)/f*a.height/e.currentDevicePixelRatio)}},st.getConstraintWidth=function(t){return n(t,"max-width","clientWidth")},st.getConstraintHeight=function(t){return n(t,"max-height","clientHeight")},st._calculatePadding=function(t,e,n){return(e=st.getStyle(t,e)).indexOf("%")>-1?n*parseInt(e,10)/100:parseInt(e,10)},st._getParentNode=function(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e},st.getMaximumWidth=function(t){var e=st._getParentNode(t);if(!e)return t.clientWidth;var n=e.clientWidth,i=n-st._calculatePadding(e,"padding-left",n)-st._calculatePadding(e,"padding-right",n),r=st.getConstraintWidth(t);return isNaN(r)?i:Math.min(i,r)},st.getMaximumHeight=function(t){var e=st._getParentNode(t);if(!e)return t.clientHeight;var n=e.clientHeight,i=n-st._calculatePadding(e,"padding-top",n)-st._calculatePadding(e,"padding-bottom",n),r=st.getConstraintHeight(t);return isNaN(r)?i:Math.min(i,r)},st.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},st.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var i=t.canvas,r=t.height,a=t.width;i.height=r*n,i.width=a*n,t.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=r+"px",i.style.width=a+"px")}},st.fontString=function(t,e,n){return e+" "+t+"px "+n},st.longestText=function(t,e,n,i){var r=(i=i||{}).data=i.data||{},a=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(r=i.data={},a=i.garbageCollect=[],i.font=e),t.font=e;var o,s,l,u,c,d=0,h=n.length;for(o=0;on.length){for(o=0;oi&&(i=a),i},st.numberOfLabelLines=function(t){var e=1;return st.each(t,(function(t){st.isArray(t)&&t.length>e&&(e=t.length)})),e},st.color=L?function(t){return t instanceof CanvasGradient&&(t=Q.global.defaultColor),L(t)}:function(t){return console.error("Color.js not found!"),t},st.getHoverColor=function(t){return t instanceof CanvasPattern||t instanceof CanvasGradient?t:st.color(t).saturate(.5).darken(.1).rgbString()}};function Zn(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Xn(t){this.options=t||{}}st.extend(Xn.prototype,{formats:Zn,parse:Zn,format:Zn,add:Zn,diff:Zn,startOf:Zn,endOf:Zn,_create:function(t){return t}}),Xn.override=function(t){st.extend(Xn.prototype,t)};var Kn={_date:Xn},Jn={formatters:{values:function(t){return st.isArray(t)?t:""+t},linear:function(t,e,n){var i=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(i)>1&&t!==Math.floor(t)&&(i=t-Math.floor(t));var r=st.log10(Math.abs(i)),a="";if(0!==t)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var o=st.log10(Math.abs(t)),s=Math.floor(o)-Math.floor(r);s=Math.max(Math.min(s,20),0),a=t.toExponential(s)}else{var l=-1*Math.floor(r);l=Math.max(Math.min(l,20),0),a=t.toFixed(l)}else a="0";return a},logarithmic:function(t,e,n){var i=t/Math.pow(10,Math.floor(st.log10(t)));return 0===t?"0":1===i||2===i||5===i||0===e||e===n.length-1?t.toExponential():""}}},Qn=st.isArray,ti=st.isNullOrUndef,ei=st.valueOrDefault,ni=st.valueAtIndexOrDefault;function ii(t,e){for(var n=[],i=t.length/e,r=0,a=t.length;rl+u)))return o}function ai(t,e){st.each(t,(function(t){var n,i=t.gc,r=i.length/2;if(r>e){for(n=0;nu)return a;return Math.max(u,1)}function gi(t){var e,n,i=[];for(e=0,n=t.length;e=h||c<=1||!s.isHorizontal()?s.labelRotation=d:(e=(t=s._getLabelSizes()).widest.width,n=t.highest.height-t.highest.offset,i=Math.min(s.maxWidth,s.chart.width-e),e+6>(r=l.offset?s.maxWidth/c:i/(c-1))&&(r=i/(c-(l.offset?.5:1)),a=s.maxHeight-si(l.gridLines)-u.padding-li(l.scaleLabel),o=Math.sqrt(e*e+n*n),f=st.toDegrees(Math.min(Math.asin(Math.min((t.highest.height+6)/r,1)),Math.asin(Math.min(a/o,1))-Math.asin(n/o))),f=Math.max(d,Math.min(h,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){st.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){st.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},n=t.chart,i=t.options,r=i.ticks,a=i.scaleLabel,o=i.gridLines,s=t._isVisible(),l="bottom"===i.position,u=t.isHorizontal();if(u?e.width=t.maxWidth:s&&(e.width=si(o)+li(a)),u?s&&(e.height=si(o)+li(a)):e.height=t.maxHeight,r.display&&s){var c=ci(r),d=t._getLabelSizes(),h=d.first,f=d.last,g=d.widest,m=d.highest,p=.4*c.minor.lineHeight,v=r.padding;if(u){var y=0!==t.labelRotation,b=st.toRadians(t.labelRotation),x=Math.cos(b),_=Math.sin(b),w=_*g.width+x*(m.height-(y?m.offset:0))+(y?0:p);e.height=Math.min(t.maxHeight,e.height+w+v);var k,M,S=t.getPixelForTick(0)-t.left,D=t.right-t.getPixelForTick(t.getTicks().length-1);y?(k=l?x*h.width+_*h.offset:_*(h.height-h.offset),M=l?_*(f.height-f.offset):x*f.width+_*f.offset):(k=h.width/2,M=f.width/2),t.paddingLeft=Math.max((k-S)*t.width/(t.width-S),0)+3,t.paddingRight=Math.max((M-D)*t.width/(t.width-D),0)+3}else{var C=r.mirror?0:g.width+v+p;e.width=Math.min(t.maxWidth,e.width+C),t.paddingTop=h.height/2,t.paddingBottom=f.height/2}}t.handleMargins(),u?(t.width=t._length=n.width-t.margins.left-t.margins.right,t.height=e.height):(t.width=e.width,t.height=t._length=n.height-t.margins.top-t.margins.bottom)},handleMargins:function(){var t=this;t.margins&&(t.margins.left=Math.max(t.paddingLeft,t.margins.left),t.margins.top=Math.max(t.paddingTop,t.margins.top),t.margins.right=Math.max(t.paddingRight,t.margins.right),t.margins.bottom=Math.max(t.paddingBottom,t.margins.bottom))},afterFit:function(){st.callback(this.options.afterFit,[this])},isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(ti(t))return NaN;if(("number"==typeof t||t instanceof Number)&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},_convertTicksToLabels:function(t){var e,n,i,r=this;for(r.ticks=t.map((function(t){return t.value})),r.beforeTickToLabelConversion(),e=r.convertTicksToLabels(t)||r.ticks,r.afterTickToLabelConversion(),n=0,i=t.length;ni-1?null:e.getPixelForDecimal(t*r+(n?r/2:0))},getPixelForDecimal:function(t){var e=this;return e._reversePixels&&(t=1-t),e._startPixel+t*e._length},getDecimalForPixel:function(t){var e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,n=t.max;return t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0},_autoSkip:function(t){var e,n,i,r,a=this,o=a.options.ticks,s=a._length,l=o.maxTicksLimit||s/a._tickSize()+1,u=o.major.enabled?gi(t):[],c=u.length,d=u[0],h=u[c-1];if(c>l)return mi(t,u,c/l),di(t);if(i=fi(u,t,s,l),c>0){for(e=0,n=c-1;e1?(h-d)/(c-1):null,pi(t,i,st.isNullOrUndef(r)?0:d-r,d),pi(t,i,h,st.isNullOrUndef(r)?t.length:h+r),di(t)}return pi(t,i),di(t)},_tickSize:function(){var t=this,e=t.options.ticks,n=st.toRadians(t.labelRotation),i=Math.abs(Math.cos(n)),r=Math.abs(Math.sin(n)),a=t._getLabelSizes(),o=e.autoSkipPadding||0,s=a?a.widest.width+o:0,l=a?a.highest.height+o:0;return t.isHorizontal()?l*i>s*r?s/i:l/r:l*r=0&&(o=t),void 0!==a&&(t=n.indexOf(a))>=0&&(s=t),e.minIndex=o,e.maxIndex=s,e.min=n[o],e.max=n[s]},buildTicks:function(){var t=this,e=t._getLabels(),n=t.minIndex,i=t.maxIndex;t.ticks=0===n&&i===e.length-1?e:e.slice(n,i+1)},getLabelForIndex:function(t,e){var n=this,i=n.chart;return i.getDatasetMeta(e).controller._getValueScaleId()===n.id?n.getRightValue(i.data.datasets[e].data[t]):n._getLabels()[t]},_configure:function(){var t=this,e=t.options.offset,n=t.ticks;yi.prototype._configure.call(t),t.isHorizontal()||(t._reversePixels=!t._reversePixels),n&&(t._startValue=t.minIndex-(e?.5:0),t._valueRange=Math.max(n.length-(e?0:1),1))},getPixelForValue:function(t,e,n){var i,r,a,o=this;return bi(e)||bi(n)||(t=o.chart.data.datasets[n].data[e]),bi(t)||(i=o.isHorizontal()?t.x:t.y),(void 0!==i||void 0!==t&&isNaN(e))&&(r=o._getLabels(),t=st.valueOrDefault(i,t),e=-1!==(a=r.indexOf(t))?a:e,isNaN(e)&&(e=t)),o.getPixelForDecimal((e-o._startValue)/o._valueRange)},getPixelForTick:function(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t],t+this.minIndex)},getValueForPixel:function(t){var e=this,n=Math.round(e._startValue+e.getDecimalForPixel(t)*e._valueRange);return Math.min(Math.max(n,0),e.ticks.length-1)},getBasePixel:function(){return this.bottom}}),wi=xi;_i._defaults=wi;var ki=st.noop,Mi=st.isNullOrUndef;function Si(t,e){var n,i,r,a,o=[],s=1e-14,l=t.stepSize,u=l||1,c=t.maxTicks-1,d=t.min,h=t.max,f=t.precision,g=e.min,m=e.max,p=st.niceNum((m-g)/c/u)*u;if(pc&&(p=st.niceNum(a*p/c/u)*u),l||Mi(f)?n=Math.pow(10,st._decimalPlaces(p)):(n=Math.pow(10,f),p=Math.ceil(p*n)/n),i=Math.floor(g/p)*p,r=Math.ceil(m/p)*p,l&&(!Mi(d)&&st.almostWhole(d/p,p/1e3)&&(i=d),!Mi(h)&&st.almostWhole(h/p,p/1e3)&&(r=h)),a=(r-i)/p,a=st.almostEquals(a,Math.round(a),p/1e3)?Math.round(a):Math.ceil(a),i=Math.round(i*n)/n,r=Math.round(r*n)/n,o.push(Mi(d)?i:d);for(var v=1;v0&&i>0&&(t.min=0)}var r=void 0!==e.min||void 0!==e.suggestedMin,a=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),r!==a&&t.min>=t.max&&(r?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:function(){var t,e=this,n=e.options.ticks,i=n.stepSize,r=n.maxTicksLimit;return i?t=Math.ceil(e.max/i)-Math.floor(e.min/i)+1:(t=e._computeTickLimit(),r=r||11),r&&(t=Math.min(r,t)),t},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:ki,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,precision:e.precision,stepSize:st.valueOrDefault(e.fixedStepSize,e.stepSize)},r=t.ticks=Si(i,t);t.handleDirectionalChanges(),t.max=st.max(r),t.min=st.min(r),e.reverse?(r.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice(),t.zeroLineIndex=t.ticks.indexOf(0),yi.prototype.convertTicksToLabels.call(t)},_configure:function(){var t,e=this,n=e.getTicks(),i=e.min,r=e.max;yi.prototype._configure.call(e),e.options.offset&&n.length&&(i-=t=(r-i)/Math.max(n.length-1,1)/2,r+=t),e._startValue=i,e._endValue=r,e._valueRange=r-i}}),Ci={position:"left",ticks:{callback:Jn.formatters.linear}},Ti=0,Pi=1;function Oi(t,e,n){var i=[n.type,void 0===e&&void 0===n.stack?n.index:"",n.stack].join(".");return void 0===t[i]&&(t[i]={pos:[],neg:[]}),t[i]}function Ai(t,e,n,i){var r,a,o=t.options,s=Oi(e,o.stacked,n),l=s.pos,u=s.neg,c=i.length;for(r=0;re.length-1?null:this.getPixelForValue(e[t])}}),Fi=Ci;Ii._defaults=Fi;var Ni=st.valueOrDefault,Li=st.math.log10;function Yi(t,e){var n,i,r=[],a=Ni(t.min,Math.pow(10,Math.floor(Li(e.min)))),o=Math.floor(Li(e.max)),s=Math.ceil(e.max/Math.pow(10,o));0===a?(n=Math.floor(Li(e.minNotZero)),i=Math.floor(e.minNotZero/Math.pow(10,n)),r.push(a),a=i*Math.pow(10,n)):(n=Math.floor(Li(a)),i=Math.floor(a/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{r.push(a),10==++i&&(i=1,l=++n>=0?1:l),a=Math.round(i*Math.pow(10,n)*l)/l}while(n=0?t:e}var zi=yi.extend({determineDataLimits:function(){var t,e,n,i,r,a,o=this,s=o.options,l=o.chart,u=l.data.datasets,c=o.isHorizontal();function d(t){return c?t.xAxisID===o.id:t.yAxisID===o.id}o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,o.minNotZero=Number.POSITIVE_INFINITY;var h=s.stacked;if(void 0===h)for(t=0;t0){var e=st.min(t),n=st.max(t);o.min=Math.min(o.min,e),o.max=Math.max(o.max,n)}}))}else for(t=0;t0?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(Li(t.max))):t.minNotZero=n)},buildTicks:function(){var t=this,e=t.options.ticks,n=!t.isHorizontal(),i={min:Ei(e.min),max:Ei(e.max)},r=t.ticks=Yi(i,t);t.max=st.max(r),t.min=st.min(r),e.reverse?(n=!n,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),n&&r.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),yi.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return this._getScaleLabel(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){var e=this.tickValues;return t<0||t>e.length-1?null:this.getPixelForValue(e[t])},_getFirstTickValue:function(t){var e=Math.floor(Li(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},_configure:function(){var t=this,e=t.min,n=0;yi.prototype._configure.call(t),0===e&&(e=t._getFirstTickValue(t.minNotZero),n=Ni(t.options.ticks.fontSize,Q.global.defaultFontSize)/t._length),t._startValue=Li(e),t._valueOffset=n,t._valueRange=(Li(t.max)-Li(e))/(1-n)},getPixelForValue:function(t){var e=this,n=0;return(t=+e.getRightValue(t))>e.min&&t>0&&(n=(Li(t)-e._startValue)/e._valueRange+e._valueOffset),e.getPixelForDecimal(n)},getValueForPixel:function(t){var e=this,n=e.getDecimalForPixel(t);return 0===n&&0===e.min?0:Math.pow(10,e._startValue+(n-e._valueOffset)*e._valueRange)}}),Vi=Wi;zi._defaults=Vi;var Bi=st.valueOrDefault,Hi=st.valueAtIndexOrDefault,ji=st.options.resolve,Ui={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:Jn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function $i(t){var e=t.ticks;return e.display&&t.display?Bi(e.fontSize,Q.global.defaultFontSize)+2*e.backdropPaddingY:0}function Gi(t,e,n){return st.isArray(n)?{w:st.longestText(t,t.font,n),h:n.length*e}:{w:t.measureText(n).width,h:e}}function qi(t,e,n,i,r){return t===i||t===r?{start:e-n/2,end:e+n/2}:tr?{start:e-n,end:e}:{start:e,end:e+n}}function Zi(t){var e,n,i,r=st.options._parseFont(t.options.pointLabels),a={l:0,r:t.width,t:0,b:t.height-t.paddingTop},o={};t.ctx.font=r.string,t._pointLabelSizes=[];var s=t.chart.data.labels.length;for(e=0;ea.r&&(a.r=c.end,o.r=l),d.starta.b&&(a.b=d.end,o.b=l)}t.setReductions(t.drawingArea,a,o)}function Xi(t){return 0===t||180===t?"center":t<180?"left":"right"}function Ki(t,e,n,i){var r,a,o=n.y+i/2;if(st.isArray(e))for(r=0,a=e.length;r270||t<90)&&(n.y-=e.h)}function Qi(t){var e=t.ctx,n=t.options,i=n.pointLabels,r=$i(n),a=t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max),o=st.options._parseFont(i);e.save(),e.font=o.string,e.textBaseline="middle";for(var s=t.chart.data.labels.length-1;s>=0;s--){var l=0===s?r/2:0,u=t.getPointPosition(s,a+l+5),c=Hi(i.fontColor,s,Q.global.defaultFontColor);e.fillStyle=c;var d=t.getIndexAngle(s),h=st.toDegrees(d);e.textAlign=Xi(h),Ji(h,t._pointLabelSizes[s],u),Ki(e,t.pointLabels[s],u,o.lineHeight)}e.restore()}function tr(t,e,n,i){var r,a=t.ctx,o=e.circular,s=t.chart.data.labels.length,l=Hi(e.color,i-1),u=Hi(e.lineWidth,i-1);if((o||s)&&l&&u){if(a.save(),a.strokeStyle=l,a.lineWidth=u,a.setLineDash&&(a.setLineDash(e.borderDash||[]),a.lineDashOffset=e.borderDashOffset||0),a.beginPath(),o)a.arc(t.xCenter,t.yCenter,n,0,2*Math.PI);else{r=t.getPointPosition(0,n),a.moveTo(r.x,r.y);for(var c=1;c0&&i>0?n:0)},_drawGrid:function(){var t,e,n,i=this,r=i.ctx,a=i.options,o=a.gridLines,s=a.angleLines,l=Bi(s.lineWidth,o.lineWidth),u=Bi(s.color,o.color);if(a.pointLabels.display&&Qi(i),o.display&&st.each(i.ticks,(function(t,n){0!==n&&(e=i.getDistanceFromCenterForValue(i.ticksAsNumbers[n]),tr(i,o,e,n))})),s.display&&l&&u){for(r.save(),r.lineWidth=l,r.strokeStyle=u,r.setLineDash&&(r.setLineDash(ji([s.borderDash,o.borderDash,[]])),r.lineDashOffset=ji([s.borderDashOffset,o.borderDashOffset,0])),t=i.chart.data.labels.length-1;t>=0;t--)e=i.getDistanceFromCenterForValue(a.ticks.reverse?i.min:i.max),n=i.getPointPosition(t,e),r.beginPath(),r.moveTo(i.xCenter,i.yCenter),r.lineTo(n.x,n.y),r.stroke();r.restore()}},_drawLabels:function(){var t=this,e=t.ctx,n=t.options.ticks;if(n.display){var i,r,a=t.getIndexAngle(0),o=st.options._parseFont(n),s=Bi(n.fontColor,Q.global.defaultFontColor);e.save(),e.font=o.string,e.translate(t.xCenter,t.yCenter),e.rotate(a),e.textAlign="center",e.textBaseline="middle",st.each(t.ticks,(function(a,l){(0!==l||n.reverse)&&(i=t.getDistanceFromCenterForValue(t.ticksAsNumbers[l]),n.showLabelBackdrop&&(r=e.measureText(a).width,e.fillStyle=n.backdropColor,e.fillRect(-r/2-n.backdropPaddingX,-i-o.size/2-n.backdropPaddingY,r+2*n.backdropPaddingX,o.size+2*n.backdropPaddingY)),e.fillStyle=s,e.fillText(a,0,-i))})),e.restore()}},_drawTitle:st.noop}),ir=Ui;nr._defaults=ir;var rr=st._deprecated,ar=st.options.resolve,or=st.valueOrDefault,sr=Number.MIN_SAFE_INTEGER||-9007199254740991,lr=Number.MAX_SAFE_INTEGER||9007199254740991,ur={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},cr=Object.keys(ur);function dr(t,e){return t-e}function hr(t){var e,n,i,r={},a=[];for(e=0,n=t.length;ee&&s=0&&o<=s;){if(r=t[(i=o+s>>1)-1]||null,a=t[i],!r)return{lo:null,hi:a};if(a[e]n))return{lo:r,hi:a};s=i-1}}return{lo:a,hi:null}}function vr(t,e,n,i){var r=pr(t,e,n),a=r.lo?r.hi?r.lo:t[t.length-2]:t[0],o=r.lo?r.hi?r.hi:t[t.length-1]:t[1],s=o[e]-a[e],l=s?(n-a[e])/s:0,u=(o[i]-a[i])*l;return a[i]+u}function yr(t,e){var n=t._adapter,i=t.options.time,r=i.parser,a=r||i.format,o=e;return"function"==typeof r&&(o=r(o)),st.isFinite(o)||(o="string"==typeof a?n.parse(o,a):n.parse(o)),null!==o?+o:(r||"function"!=typeof a||(o=a(e),st.isFinite(o)||(o=n.parse(o))),o)}function br(t,e){if(st.isNullOrUndef(e))return null;var n=t.options.time,i=yr(t,t.getRightValue(e));return null===i||n.round&&(i=+t._adapter.startOf(i,n.round)),i}function xr(t,e,n,i){var r,a,o,s=cr.length;for(r=cr.indexOf(t);r=cr.indexOf(n);a--)if(o=cr[a],ur[o].common&&t._adapter.diff(r,i,o)>=e-1)return o;return cr[n?cr.indexOf(n):0]}function wr(t){for(var e=cr.indexOf(t)+1,n=cr.length;e1e5*u)throw e+" and "+n+" are too far apart with stepSize of "+u+" "+l;for(r=d;r=0&&(e[a].major=!0);return e}function Dr(t,e,n){var i,r,a=[],o={},s=e.length;for(i=0;i1?hr(g).sort(dr):g.sort(dr),h=Math.min(h,g[0]),f=Math.max(f,g[g.length-1])),h=br(s,fr(c))||h,f=br(s,gr(c))||f,h=h===lr?+u.startOf(Date.now(),d):h,f=f===sr?+u.endOf(Date.now(),d)+1:f,s.min=Math.min(h,f),s.max=Math.max(h+1,f),s._table=[],s._timestamps={data:g,datasets:m,labels:p}},buildTicks:function(){var t,e,n,i=this,r=i.min,a=i.max,o=i.options,s=o.ticks,l=o.time,u=i._timestamps,c=[],d=i.getLabelCapacity(r),h=s.source,f=o.distribution;for(u="data"===h||"auto"===h&&"series"===f?u.data:"labels"===h?u.labels:kr(i,r,a,d),"ticks"===o.bounds&&u.length&&(r=u[0],a=u[u.length-1]),r=br(i,fr(o))||r,a=br(i,gr(o))||a,t=0,e=u.length;t=r&&n<=a&&c.push(n);return i.min=r,i.max=a,i._unit=l.unit||(s.autoSkip?xr(l.minUnit,i.min,i.max,d):_r(i,c.length,l.minUnit,i.min,i.max)),i._majorUnit=s.major.enabled&&"year"!==i._unit?wr(i._unit):void 0,i._table=mr(i._timestamps.data,r,a,f),i._offsets=Mr(i._table,c,r,a,o),s.reverse&&c.reverse(),Dr(i,c,i._majorUnit)},getLabelForIndex:function(t,e){var n=this,i=n._adapter,r=n.chart.data,a=n.options.time,o=r.labels&&t=0&&t0?s:1}}),Pr=Cr;Tr._defaults=Pr;var Or={category:_i,linear:Ii,logarithmic:zi,radialLinear:nr,time:Tr},Ar={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Kn._date.override("function"==typeof t?{_id:"moment",formats:function(){return Ar},parse:function(e,n){return"string"==typeof e&&"string"==typeof n?e=t(e,n):e instanceof t||(e=t(e)),e.isValid()?e.valueOf():null},format:function(e,n){return t(e).format(n)},add:function(e,n,i){return t(e).add(n,i).valueOf()},diff:function(e,n,i){return t(e).diff(t(n),i)},startOf:function(e,n,i){return e=t(e),"isoWeek"===n?e.isoWeekday(i).valueOf():e.startOf(n).valueOf()},endOf:function(e,n){return t(e).endOf(n).valueOf()},_create:function(e){return t(e)}}:{}),Q._set("global",{plugins:{filler:{propagate:!0}}});var Rr={dataset:function(t){var e=t.fill,n=t.chart,i=n.getDatasetMeta(e),r=i&&n.isDatasetVisible(e)&&i.dataset._children||[],a=r.length||0;return a?function(t,e){return e=n)&&i;switch(a){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return a;default:return!1}}function Fr(t){var e,n=t.el._model||{},i=t.el._scale||{},r=t.fill,a=null;if(isFinite(r))return null;if("start"===r?a=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===r?a=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?a=n.scaleZero:i.getBasePixel&&(a=i.getBasePixel()),null!=a){if(void 0!==a.x&&void 0!==a.y)return a;if(st.isFinite(a))return{x:(e=i.isHorizontal())?a:null,y:e?null:a}}return null}function Nr(t){var e,n,i,r,a,o=t.el._scale,s=o.options,l=o.chart.data.labels.length,u=t.fill,c=[];if(!l)return null;for(e=s.ticks.reverse?o.max:o.min,n=s.ticks.reverse?o.min:o.max,i=o.getPointPositionForValue(0,e),r=0;r0;--a)st.canvas.lineTo(t,n[a],n[a-1],!0);else for(o=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-o,2)+Math.pow(n[0].y-s,2)),a=r-1;a>0;--a)t.arc(o,s,l,n[a].angle,n[a-1].angle,!0)}}function Vr(t,e,n,i,r,a){var o,s,l,u,c,d,h,f,g=e.length,m=i.spanGaps,p=[],v=[],y=0,b=0;for(t.beginPath(),o=0,s=g;o=0;--n)(e=l[n].$filler)&&e.visible&&(r=(i=e.el)._view,a=i._children||[],o=e.mapper,s=r.backgroundColor||Q.global.defaultColor,o&&s&&a.length&&(st.canvas.clipArea(u,t.chartArea),Vr(u,a,o,r,s,i._loop),st.canvas.unclipArea(u)))}},Hr=st.rtl.getRtlAdapter,jr=st.noop,Ur=st.valueOrDefault;function $r(t,e){return t.usePointStyle&&t.boxWidth>e?e:t.boxWidth}Q._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var n=e.datasetIndex,i=this.chart,r=i.getDatasetMeta(n);r.hidden=null===r.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data.datasets,n=t.options.legend||{},i=n.labels&&n.labels.usePointStyle;return t._getSortedDatasetMetas().map((function(n){var r=n.controller.getStyle(i?0:void 0);return{text:e[n.index].label,fillStyle:r.backgroundColor,hidden:!t.isDatasetVisible(n.index),lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:r.borderWidth,strokeStyle:r.borderColor,pointStyle:r.pointStyle,rotation:r.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(t){var e,n,i,r=document.createElement("ul"),a=t.data.datasets;for(r.setAttribute("class",t.id+"-legend"),e=0,n=a.length;el.width)&&(d+=o+n.padding,c[c.length-(e>0?0:1)]=0),s[e]={left:0,top:0,width:i,height:o},c[c.length-1]+=i+n.padding})),l.height+=d}else{var h=n.padding,f=t.columnWidths=[],g=t.columnHeights=[],m=n.padding,p=0,v=0;st.each(t.legendItems,(function(t,e){var i=$r(n,o)+o/2+r.measureText(t.text).width;e>0&&v+o+2*h>l.height&&(m+=p+n.padding,f.push(p),g.push(v),p=0,v=0),p=Math.max(p,i),v+=o+h,s[e]={left:0,top:0,width:i,height:o}})),m+=p,f.push(p),g.push(v),l.width+=m}t.width=l.width,t.height=l.height}else t.width=l.width=t.height=l.height=0},afterFit:jr,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,e=t.options,n=e.labels,i=Q.global,r=i.defaultColor,a=i.elements.line,o=t.height,s=t.columnHeights,l=t.width,u=t.lineWidths;if(e.display){var c,d=Hr(e.rtl,t.left,t.minSize.width),h=t.ctx,f=Ur(n.fontColor,i.defaultFontColor),g=st.options._parseFont(n),m=g.size;h.textAlign=d.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=g.string;var p=$r(n,m),v=t.legendHitBoxes,y=function(t,e,i){if(!(isNaN(p)||p<=0)){h.save();var o=Ur(i.lineWidth,a.borderWidth);if(h.fillStyle=Ur(i.fillStyle,r),h.lineCap=Ur(i.lineCap,a.borderCapStyle),h.lineDashOffset=Ur(i.lineDashOffset,a.borderDashOffset),h.lineJoin=Ur(i.lineJoin,a.borderJoinStyle),h.lineWidth=o,h.strokeStyle=Ur(i.strokeStyle,r),h.setLineDash&&h.setLineDash(Ur(i.lineDash,a.borderDash)),n&&n.usePointStyle){var s=p*Math.SQRT2/2,l=d.xPlus(t,p/2),u=e+m/2;st.canvas.drawPoint(h,i.pointStyle,s,l,u,i.rotation)}else h.fillRect(d.leftForLtr(t,p),e,p,m),0!==o&&h.strokeRect(d.leftForLtr(t,p),e,p,m);h.restore()}},b=function(t,e,n,i){var r=m/2,a=d.xPlus(t,p+r),o=e+r;h.fillText(n.text,a,o),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(a,o),h.lineTo(d.xPlus(a,i),o),h.stroke())},x=function(t,i){switch(e.align){case"start":return n.padding;case"end":return t-i;default:return(t-i+n.padding)/2}},_=t.isHorizontal();c=_?{x:t.left+x(l,u[0]),y:t.top+n.padding,line:0}:{x:t.left+n.padding,y:t.top+x(o,s[0]),line:0},st.rtl.overrideTextDirection(t.ctx,e.textDirection);var w=m+n.padding;st.each(t.legendItems,(function(e,i){var r=h.measureText(e.text).width,a=p+m/2+r,f=c.x,g=c.y;d.setWidth(t.minSize.width),_?i>0&&f+a+n.padding>t.left+t.minSize.width&&(g=c.y+=w,c.line++,f=c.x=t.left+x(l,u[c.line])):i>0&&g+w>t.top+t.minSize.height&&(f=c.x=f+t.columnWidths[c.line]+n.padding,c.line++,g=c.y=t.top+x(o,s[c.line]));var k=d.x(f);y(k,g,e),v[i].left=d.leftForLtr(k,v[i].width),v[i].top=g,b(k,g,e,r),_?c.x+=a+n.padding:c.y+=w})),st.rtl.restoreTextDirection(t.ctx,e.textDirection)}},_getLegendItemAt:function(t,e){var n,i,r,a=this;if(t>=a.left&&t<=a.right&&e>=a.top&&e<=a.bottom)for(r=a.legendHitBoxes,n=0;n=(i=r[n]).left&&t<=i.left+i.width&&e>=i.top&&e<=i.top+i.height)return a.legendItems[n];return null},handleEvent:function(t){var e,n=this,i=n.options,r="mouseup"===t.type?"click":t.type;if("mousemove"===r){if(!i.onHover&&!i.onLeave)return}else{if("click"!==r)return;if(!i.onClick)return}e=n._getLegendItemAt(t.x,t.y),"click"===r?e&&i.onClick&&i.onClick.call(n,t.native,e):(i.onLeave&&e!==n._hoveredItem&&(n._hoveredItem&&i.onLeave.call(n,t.native,n._hoveredItem),n._hoveredItem=e),i.onHover&&e&&i.onHover.call(n,t.native,e))}});function qr(t,e){var n=new Gr({ctx:t.ctx,options:e,chart:t});Ue.configure(t,n,e),Ue.addBox(t,n),t.legend=n}var Zr={id:"legend",_element:Gr,beforeInit:function(t){var e=t.options.legend;e&&qr(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(st.mergeIf(e,Q.global.legend),n?(Ue.configure(t,n,e),n.options=e):qr(t,e)):n&&(Ue.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}},Xr=st.noop;Q._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Kr=mt.extend({initialize:function(t){var e=this;st.extend(e,t),e.legendHitBoxes=[]},beforeUpdate:Xr,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:Xr,beforeSetDimensions:Xr,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:Xr,beforeBuildLabels:Xr,buildLabels:Xr,afterBuildLabels:Xr,beforeFit:Xr,fit:function(){var t,e=this,n=e.options,i=e.minSize={},r=e.isHorizontal();n.display?(t=(st.isArray(n.text)?n.text.length:1)*st.options._parseFont(n).lineHeight+2*n.padding,e.width=i.width=r?e.maxWidth:t,e.height=i.height=r?t:e.maxHeight):e.width=i.width=e.height=i.height=0},afterFit:Xr,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=t.options;if(n.display){var i,r,a,o=st.options._parseFont(n),s=o.lineHeight,l=s/2+n.padding,u=0,c=t.top,d=t.left,h=t.bottom,f=t.right;e.fillStyle=st.valueOrDefault(n.fontColor,Q.global.defaultFontColor),e.font=o.string,t.isHorizontal()?(r=d+(f-d)/2,a=c+l,i=f-d):(r="left"===n.position?d+l:f-l,a=c+(h-c)/2,i=h-c,u=Math.PI*("left"===n.position?-.5:.5)),e.save(),e.translate(r,a),e.rotate(u),e.textAlign="center",e.textBaseline="middle";var g=n.text;if(st.isArray(g))for(var m=0,p=0;p