!function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=536)}([function(e,t,n){"use strict";e.exports=n(90)},function(e,t,n){"use strict";t.__esModule=!0;var r=n(275),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=a.default||function(e){for(var t=1;t0)for(n=0;n0?"future":"past"];return S(n)?n(t):n.replace(/%s/i,t)}function Y(e,t){var n=e.toLowerCase();Ir[n]=Ir[n+"s"]=Ir[t]=e}function R(e){return"string"==typeof e?Ir[e]||Ir[e.toLowerCase()]:void 0}function I(e){var t,n,r={};for(n in e)c(e,n)&&(t=R(n))&&(r[t]=e[n]);return r}function F(e,t){Fr[e]=t}function H(e){var t=[];for(var n in e)t.push({unit:n,priority:Fr[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function W(e,t,n){var r=""+Math.abs(e),a=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}function V(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(zr[e]=a),t&&(zr[t[0]]=function(){return W(a.apply(this,arguments),t[1],t[2])}),n&&(zr[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function B(e){var t,n,r=e.match(Hr);for(t=0,n=r.length;t=0&&Wr.test(e);)e=e.replace(Wr,n),Wr.lastIndex=0,r-=1;return e}function K(e,t,n){sa[e]=S(t)?t:function(e,r){return e&&n?n:t}}function G(e,t){return c(sa,e)?sa[e](t._strict,t._locale):new RegExp(X(e))}function X(e){return J(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,a){return t||n||r||a}))}function J(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function $(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),s(t)&&(r=function(e,n){n[t]=x(e)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function xe(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Me(e,t,n){var r=7+t-n;return-(7+xe(e,0,r).getUTCDay()-t)%7+r-1}function we(e,t,n,r,a){var i,o,s=(7+n-r)%7,l=Me(e,r,a),u=1+7*(t-1)+s+l;return u<=0?(i=e-1,o=ee(i)+u):u>ee(e)?(i=e+1,o=u-ee(e)):(i=e,o=u),{year:i,dayOfYear:o}}function ke(e,t,n){var r,a,i=Me(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?(a=e.year()-1,r=o+Ee(a,t,n)):o>Ee(e.year(),t,n)?(r=o-Ee(e.year(),t,n),a=e.year()+1):(a=e.year(),r=o),{week:r,year:a}}function Ee(e,t,n){var r=Me(e,t,n),a=Me(e+1,t,n);return(ee(e)-r+a)/7}function Se(e){return ke(e,this._week.dow,this._week.doy).week}function Ce(){return this._week.dow}function Te(){return this._week.doy}function Le(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Oe(e){var t=ke(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Pe(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function De(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ne(e,t){return e?r(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:r(this._weekdays)?this._weekdays:this._weekdays.standalone}function Ae(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function je(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ye(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?(a=ya.call(this._weekdaysParse,o),-1!==a?a:null):"ddd"===t?(a=ya.call(this._shortWeekdaysParse,o),-1!==a?a:null):(a=ya.call(this._minWeekdaysParse,o),-1!==a?a:null):"dddd"===t?-1!==(a=ya.call(this._weekdaysParse,o))?a:-1!==(a=ya.call(this._shortWeekdaysParse,o))?a:(a=ya.call(this._minWeekdaysParse,o),-1!==a?a:null):"ddd"===t?-1!==(a=ya.call(this._shortWeekdaysParse,o))?a:-1!==(a=ya.call(this._weekdaysParse,o))?a:(a=ya.call(this._minWeekdaysParse,o),-1!==a?a:null):-1!==(a=ya.call(this._minWeekdaysParse,o))?a:-1!==(a=ya.call(this._weekdaysParse,o))?a:(a=ya.call(this._shortWeekdaysParse,o),-1!==a?a:null)}function Re(e,t,n){var r,a,i;if(this._weekdaysParseExact)return Ye.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ie(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Pe(e,this.localeData()),this.add(e-t,"d")):t}function Fe(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function He(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=De(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function We(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=La),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ve(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Oa),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ze(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pa),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Be(){function e(e,t){return t.length-e.length}var t,n,r,a,i,o=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=this.weekdaysMin(n,""),a=this.weekdaysShort(n,""),i=this.weekdays(n,""),o.push(r),s.push(a),l.push(i),u.push(r),u.push(a),u.push(i);for(o.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=J(s[t]),l[t]=J(l[t]),u[t]=J(u[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 Ue(){return this.hours()%12||12}function qe(){return this.hours()||24}function Ke(e,t){V(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ge(e,t){return t._meridiemParse}function Xe(e){return"p"===(e+"").toLowerCase().charAt(0)}function Je(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function $e(e){return e?e.toLowerCase().replace("_","-"):e}function Qe(e){for(var t,n,r,a,i=0;i0;){if(r=Ze(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&M(a,n,!0)>=t-1)break;t--}i++}return null}function Ze(t){var r=null;if(!Ya[t]&&void 0!==e&&e&&e.exports)try{r=Da._abbr;n(709)("./"+t),et(r)}catch(e){}return Ya[t]}function et(e,t){var n;return e&&(n=o(t)?rt(e):tt(e,t))&&(Da=n),Da._abbr}function tt(e,t){if(null!==t){var n=ja;if(t.abbr=e,null!=Ya[e])E("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."),n=Ya[e]._config;else if(null!=t.parentLocale){if(null==Ya[t.parentLocale])return Ra[t.parentLocale]||(Ra[t.parentLocale]=[]),Ra[t.parentLocale].push({name:e,config:t}),null;n=Ya[t.parentLocale]._config}return Ya[e]=new L(T(n,t)),Ra[e]&&Ra[e].forEach(function(e){tt(e.name,e.config)}),et(e),Ya[e]}return delete Ya[e],null}function nt(e,t){if(null!=t){var n,r=ja;null!=Ya[e]&&(r=Ya[e]._config),t=T(r,t),n=new L(t),n.parentLocale=Ya[e],Ya[e]=n,et(e)}else null!=Ya[e]&&(null!=Ya[e].parentLocale?Ya[e]=Ya[e].parentLocale:null!=Ya[e]&&delete Ya[e]);return Ya[e]}function rt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Da;if(!r(e)){if(t=Ze(e))return t;e=[e]}return Qe(e)}function at(){return Nr(Ya)}function it(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ca]<0||n[ca]>11?ca:n[da]<1||n[da]>ue(n[ua],n[ca])?da:n[fa]<0||n[fa]>24||24===n[fa]&&(0!==n[pa]||0!==n[ha]||0!==n[ma])?fa:n[pa]<0||n[pa]>59?pa:n[ha]<0||n[ha]>59?ha:n[ma]<0||n[ma]>999?ma:-1,h(e)._overflowDayOfYear&&(tda)&&(t=da),h(e)._overflowWeeks&&-1===t&&(t=va),h(e)._overflowWeekday&&-1===t&&(t=ga),h(e).overflow=t),e}function ot(e,t,n){return null!=e?e:null!=t?t:n}function st(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function lt(e){var t,n,r,a,i=[];if(!e._d){for(r=st(e),e._w&&null==e._a[da]&&null==e._a[ca]&&ut(e),null!=e._dayOfYear&&(a=ot(e._a[ua],r[ua]),(e._dayOfYear>ee(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=xe(a,0,e._dayOfYear),e._a[ca]=n.getUTCMonth(),e._a[da]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[fa]&&0===e._a[pa]&&0===e._a[ha]&&0===e._a[ma]&&(e._nextDay=!0,e._a[fa]=0),e._d=(e._useUTC?xe:be).apply(null,i),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[fa]=24),e._w&&void 0!==e._w.d&&e._w.d!==e._d.getDay()&&(h(e).weekdayMismatch=!0)}}function ut(e){var t,n,r,a,i,o,s,l;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)i=1,o=4,n=ot(t.GG,e._a[ua],ke(St(),1,4).year),r=ot(t.W,1),((a=ot(t.E,1))<1||a>7)&&(l=!0);else{i=e._locale._week.dow,o=e._locale._week.doy;var u=ke(St(),i,o);n=ot(t.gg,e._a[ua],u.year),r=ot(t.w,u.week),null!=t.d?((a=t.d)<0||a>6)&&(l=!0):null!=t.e?(a=t.e+i,(t.e<0||t.e>6)&&(l=!0)):a=i}r<1||r>Ee(n,i,o)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=we(n,r,a,i,o),e._a[ua]=s.year,e._dayOfYear=s.dayOfYear)}function ct(e){var t,n,r,a,i,o,s=e._i,l=Ia.exec(s)||Fa.exec(s);if(l){for(h(e).iso=!0,t=0,n=Wa.length;t0&&h(e).unusedInput.push(o),s=s.slice(s.indexOf(r)+r.length),u+=r.length),zr[i]?(r?h(e).empty=!1:h(e).unusedTokens.push(i),Z(i,r,e)):e._strict&&!r&&h(e).unusedTokens.push(i);h(e).charsLeftOver=l-u,s.length>0&&h(e).unusedInput.push(s),e._a[fa]<=12&&!0===h(e).bigHour&&e._a[fa]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[fa]=_t(e._locale,e._a[fa],e._meridiem),lt(e),it(e)}function _t(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function bt(e){var t,n,r,a,i;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;athis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Kt(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),e=wt(e),e._a){var t=e._isUTC?f(e._a):St(e._a);this._isDSTShifted=this.isValid()&&M(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Gt(){return!!this.isValid()&&!this._isUTC}function Xt(){return!!this.isValid()&&this._isUTC}function Jt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function $t(e,t){var n,r,a,i=e,o=null;return At(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(i={},t?i[t]=e:i.milliseconds=e):(o=$a.exec(e))?(n="-"===o[1]?-1:1,i={y:0,d:x(o[da])*n,h:x(o[fa])*n,m:x(o[pa])*n,s:x(o[ha])*n,ms:x(jt(1e3*o[ma]))*n}):(o=Qa.exec(e))?(n="-"===o[1]?-1:(o[1],1),i={y:Qt(o[2],n),M:Qt(o[3],n),w:Qt(o[4],n),d:Qt(o[5],n),h:Qt(o[6],n),m:Qt(o[7],n),s:Qt(o[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(a=en(St(i.from),St(i.to)),i={},i.ms=a.milliseconds,i.M=a.months),r=new Nt(i),At(e)&&c(e,"_locale")&&(r._locale=e._locale),r}function Qt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Zt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function en(e,t){var n;return e.isValid()&&t.isValid()?(t=It(t,e),e.isBefore(t)?n=Zt(e,t):(n=Zt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function tn(e,t){return function(n,r){var a,i;return null===r||isNaN(+r)||(E(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),n="string"==typeof n?+n:n,a=$t(n,r),nn(this,a,e),this}}function nn(e,n,r,a){var i=n._milliseconds,o=jt(n._days),s=jt(n._months);e.isValid()&&(a=null==a||a,s&&he(e,ae(e,"Month")+s*r),o&&ie(e,"Date",ae(e,"Date")+o*r),i&&e._d.setTime(e._d.valueOf()+i*r),a&&t.updateOffset(e,o||s))}function rn(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function an(e,n){var r=e||St(),a=It(r,this).startOf("day"),i=t.calendarFormat(this,a)||"sameElse",o=n&&(S(n[i])?n[i].call(this,r):n[i]);return this.format(o||this.localeData().calendar(i,this,St(r)))}function on(){return new y(this)}function sn(e,t){var n=_(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&(t=R(o(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()9999?U(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):S(Date.prototype.toISOString)?this.toDate().toISOString():U(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function gn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+a)}function yn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=U(this,e);return this.localeData().postformat(n)}function _n(e,t){return this.isValid()&&(_(e)&&e.isValid()||St(e).isValid())?$t({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function bn(e){return this.from(St(),e)}function xn(e,t){return this.isValid()&&(_(e)&&e.isValid()||St(e).isValid())?$t({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Mn(e){return this.to(St(),e)}function wn(e){var t;return void 0===e?this._locale._abbr:(t=rt(e),null!=t&&(this._locale=t),this)}function kn(){return this._locale}function En(e){switch(e=R(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function Sn(e){return void 0===(e=R(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function Cn(){return this._d.valueOf()-6e4*(this._offset||0)}function Tn(){return Math.floor(this.valueOf()/1e3)}function Ln(){return new Date(this.valueOf())}function On(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Pn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Dn(){return this.isValid()?this.toISOString():null}function Nn(){return m(this)}function An(){return d({},h(this))}function jn(){return h(this).overflow}function Yn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Rn(e,t){V(0,[e,e.length],0,t)}function In(e){return Vn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Fn(e){return Vn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Hn(){return Ee(this.year(),1,4)}function Wn(){var e=this.localeData()._week;return Ee(this.year(),e.dow,e.doy)}function Vn(e,t,n,r,a){var i;return null==e?ke(this,r,a).year:(i=Ee(e,r,a),t>i&&(t=i),zn.call(this,e,t,n,r,a))}function zn(e,t,n,r,a){var i=we(e,t,n,r,a),o=xe(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Bn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Un(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function qn(e,t){t[ma]=x(1e3*("0."+e))}function Kn(){return this._isUTC?"UTC":""}function Gn(){return this._isUTC?"Coordinated Universal Time":""}function Xn(e){return St(1e3*e)}function Jn(){return St.apply(null,arguments).parseZone()}function $n(e){return e}function Qn(e,t,n,r){var a=rt(),i=f().set(r,t);return a[n](i,e)}function Zn(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return Qn(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Qn(e,r,n,"month");return a}function er(e,t,n,r){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var a=rt(),i=e?a._week.dow:0;if(null!=n)return Qn(t,(n+i)%7,r,"day");var o,l=[];for(o=0;o<7;o++)l[o]=Qn(t,(o+i)%7,r,"day");return l}function tr(e,t){return Zn(e,t,"months")}function nr(e,t){return Zn(e,t,"monthsShort")}function rr(e,t,n){return er(e,t,n,"weekdays")}function ar(e,t,n){return er(e,t,n,"weekdaysShort")}function ir(e,t,n){return er(e,t,n,"weekdaysMin")}function or(){var e=this._data;return this._milliseconds=ui(this._milliseconds),this._days=ui(this._days),this._months=ui(this._months),e.milliseconds=ui(e.milliseconds),e.seconds=ui(e.seconds),e.minutes=ui(e.minutes),e.hours=ui(e.hours),e.months=ui(e.months),e.years=ui(e.years),this}function sr(e,t,n,r){var a=$t(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function lr(e,t){return sr(this,e,t,1)}function ur(e,t){return sr(this,e,t,-1)}function cr(e){return e<0?Math.floor(e):Math.ceil(e)}function dr(){var e,t,n,r,a,i=this._milliseconds,o=this._days,s=this._months,l=this._data;return i>=0&&o>=0&&s>=0||i<=0&&o<=0&&s<=0||(i+=864e5*cr(pr(s)+o),o=0,s=0),l.milliseconds=i%1e3,e=b(i/1e3),l.seconds=e%60,t=b(e/60),l.minutes=t%60,n=b(t/60),l.hours=n%24,o+=b(n/24),a=b(fr(o)),s+=a,o-=cr(pr(a)),r=b(s/12),s%=12,l.days=o,l.months=s,l.years=r,this}function fr(e){return 4800*e/146097}function pr(e){return 146097*e/4800}function hr(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=R(e))||"year"===e)return t=this._days+r/864e5,n=this._months+fr(t),"month"===e?n:n/12;switch(t=this._days+Math.round(pr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function mr(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN}function vr(e){return function(){return this.as(e)}}function gr(){return $t(this)}function yr(e){return e=R(e),this.isValid()?this[e+"s"]():NaN}function _r(e){return function(){return this.isValid()?this._data[e]:NaN}}function br(){return b(this.days()/7)}function xr(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function Mr(e,t,n){var r=$t(e).abs(),a=Ei(r.as("s")),i=Ei(r.as("m")),o=Ei(r.as("h")),s=Ei(r.as("d")),l=Ei(r.as("M")),u=Ei(r.as("y")),c=a<=Si.ss&&["s",a]||a0,c[4]=n,xr.apply(null,c)}function wr(e){return void 0===e?Ei:"function"==typeof e&&(Ei=e,!0)}function kr(e,t){return void 0!==Si[e]&&(void 0===t?Si[e]:(Si[e]=t,"s"===e&&(Si.ss=t-1),!0))}function Er(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=Mr(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function Sr(e){return(e>0)-(e<0)||+e}function Cr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r=Ci(this._milliseconds)/1e3,a=Ci(this._days),i=Ci(this._months);e=b(r/60),t=b(e/60),r%=60,e%=60,n=b(i/12),i%=12;var o=n,s=i,l=a,u=t,c=e,d=r?r.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var p=f<0?"-":"",h=Sr(this._months)!==Sr(f)?"-":"",m=Sr(this._days)!==Sr(f)?"-":"",v=Sr(this._milliseconds)!==Sr(f)?"-":"";return p+"P"+(o?h+o+"Y":"")+(s?h+s+"M":"")+(l?m+l+"D":"")+(u||c||d?"T":"")+(u?v+u+"H":"")+(c?v+c+"M":"")+(d?v+d+"S":"")}var Tr,Lr;Lr=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r68?1900:2e3)};var ya,_a=re("FullYear",!0);ya=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;tthis?this:e:v()}),Ga=function(){return Date.now?Date.now():+new Date},Xa=["year","quarter","month","week","day","hour","minute","second","millisecond"];Yt("Z",":"),Yt("ZZ",""),K("Z",aa),K("ZZ",aa),$(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Rt(aa,e)});var Ja=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var $a=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Qa=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;$t.fn=Nt.prototype,$t.invalid=Dt;var Za=tn(1,"add"),ei=tn(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ti=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});V(0,["gg",2],0,function(){return this.weekYear()%100}),V(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Rn("gggg","weekYear"),Rn("ggggg","weekYear"),Rn("GGGG","isoWeekYear"),Rn("GGGGG","isoWeekYear"),Y("weekYear","gg"),Y("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),K("G",na),K("g",na),K("GG",Xr,Ur),K("gg",Xr,Ur),K("GGGG",Zr,Kr),K("gggg",Zr,Kr),K("GGGGG",ea,Gr),K("ggggg",ea,Gr),Q(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=x(e)}),Q(["gg","GG"],function(e,n,r,a){n[a]=t.parseTwoDigitYear(e)}),V("Q",0,"Qo","quarter"),Y("quarter","Q"),F("quarter",7),K("Q",Br),$("Q",function(e,t){t[ca]=3*(x(e)-1)}),V("D",["DD",2],"Do","date"),Y("date","D"),F("date",9),K("D",Xr),K("DD",Xr,Ur),K("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),$(["D","DD"],da),$("Do",function(e,t){t[da]=x(e.match(Xr)[0],10)});var ni=re("Date",!0);V("DDD",["DDDD",3],"DDDo","dayOfYear"),Y("dayOfYear","DDD"),F("dayOfYear",4),K("DDD",Qr),K("DDDD",qr),$(["DDD","DDDD"],function(e,t,n){n._dayOfYear=x(e)}),V("m",["mm",2],0,"minute"),Y("minute","m"),F("minute",14),K("m",Xr),K("mm",Xr,Ur),$(["m","mm"],pa);var ri=re("Minutes",!1);V("s",["ss",2],0,"second"),Y("second","s"),F("second",15),K("s",Xr),K("ss",Xr,Ur),$(["s","ss"],ha);var ai=re("Seconds",!1);V("S",0,0,function(){return~~(this.millisecond()/100)}),V(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),V(0,["SSS",3],0,"millisecond"),V(0,["SSSS",4],0,function(){return 10*this.millisecond()}),V(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),V(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),V(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),V(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),V(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Y("millisecond","ms"),F("millisecond",16),K("S",Qr,Br),K("SS",Qr,Ur),K("SSS",Qr,qr);var ii;for(ii="SSSS";ii.length<=9;ii+="S")K(ii,ta);for(ii="S";ii.length<=9;ii+="S")$(ii,qn);var oi=re("Milliseconds",!1);V("z",0,0,"zoneAbbr"),V("zz",0,0,"zoneName");var si=y.prototype;si.add=Za,si.calendar=an,si.clone=on,si.diff=pn,si.endOf=Sn,si.format=yn,si.from=_n,si.fromNow=bn,si.to=xn,si.toNow=Mn,si.get=oe,si.invalidAt=jn,si.isAfter=sn,si.isBefore=ln,si.isBetween=un,si.isSame=cn,si.isSameOrAfter=dn,si.isSameOrBefore=fn,si.isValid=Nn,si.lang=ti,si.locale=wn,si.localeData=kn,si.max=Ka,si.min=qa,si.parsingFlags=An,si.set=se,si.startOf=En,si.subtract=ei,si.toArray=On,si.toObject=Pn,si.toDate=Ln,si.toISOString=vn,si.inspect=gn,si.toJSON=Dn,si.toString=mn,si.unix=Tn,si.valueOf=Cn,si.creationData=Yn,si.year=_a,si.isLeapYear=ne,si.weekYear=In,si.isoWeekYear=Fn,si.quarter=si.quarters=Bn,si.month=me,si.daysInMonth=ve,si.week=si.weeks=Le,si.isoWeek=si.isoWeeks=Oe,si.weeksInYear=Wn,si.isoWeeksInYear=Hn,si.date=ni,si.day=si.days=Ie,si.weekday=Fe,si.isoWeekday=He,si.dayOfYear=Un,si.hour=si.hours=Aa,si.minute=si.minutes=ri,si.second=si.seconds=ai,si.millisecond=si.milliseconds=oi,si.utcOffset=Ht,si.utc=Vt,si.local=zt,si.parseZone=Bt,si.hasAlignedHourOffset=Ut,si.isDST=qt,si.isLocal=Gt,si.isUtcOffset=Xt,si.isUtc=Jt,si.isUTC=Jt,si.zoneAbbr=Kn,si.zoneName=Gn,si.dates=k("dates accessor is deprecated. Use date instead.",ni),si.months=k("months accessor is deprecated. Use month instead",me),si.years=k("years accessor is deprecated. Use year instead",_a),si.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Wt),si.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Kt);var li=L.prototype;li.calendar=O,li.longDateFormat=P,li.invalidDate=D,li.ordinal=N,li.preparse=$n,li.postformat=$n,li.relativeTime=A,li.pastFuture=j,li.set=C,li.months=ce,li.monthsShort=de,li.monthsParse=pe,li.monthsRegex=ye,li.monthsShortRegex=ge,li.week=Se,li.firstDayOfYear=Te,li.firstDayOfWeek=Ce,li.weekdays=Ne,li.weekdaysMin=je,li.weekdaysShort=Ae,li.weekdaysParse=Re,li.weekdaysRegex=We,li.weekdaysShortRegex=Ve,li.weekdaysMinRegex=ze,li.isPM=Xe,li.meridiem=Je,et("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===x(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),t.lang=k("moment.lang is deprecated. Use moment.locale instead.",et),t.langData=k("moment.langData is deprecated. Use moment.localeData instead.",rt);var ui=Math.abs,ci=vr("ms"),di=vr("s"),fi=vr("m"),pi=vr("h"),hi=vr("d"),mi=vr("w"),vi=vr("M"),gi=vr("y"),yi=_r("milliseconds"),_i=_r("seconds"),bi=_r("minutes"),xi=_r("hours"),Mi=_r("days"),wi=_r("months"),ki=_r("years"),Ei=Math.round,Si={ss:44,s:45,m:45,h:22,d:26,M:11},Ci=Math.abs,Ti=Nt.prototype;return Ti.isValid=Pt,Ti.abs=or,Ti.add=lr,Ti.subtract=ur,Ti.as=hr,Ti.asMilliseconds=ci,Ti.asSeconds=di,Ti.asMinutes=fi,Ti.asHours=pi,Ti.asDays=hi,Ti.asWeeks=mi,Ti.asMonths=vi,Ti.asYears=gi,Ti.valueOf=mr,Ti._bubble=dr,Ti.clone=gr,Ti.get=yr,Ti.milliseconds=yi,Ti.seconds=_i,Ti.minutes=bi,Ti.hours=xi,Ti.days=Mi,Ti.weeks=br,Ti.months=wi,Ti.years=ki,Ti.humanize=Er,Ti.toISOString=Cr,Ti.toString=Cr,Ti.toJSON=Cr,Ti.locale=wn,Ti.localeData=kn,Ti.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Cr),Ti.lang=ti,V("X",0,0,"unix"),V("x",0,0,"valueOf"),K("x",na),K("X",ia),$("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),$("x",function(e,t,n){n._d=new Date(x(e))}),t.version="2.19.1",function(e){Tr=e}(St),t.fn=si,t.min=Tt,t.max=Lt,t.now=Ga,t.utc=f,t.unix=Xn,t.months=tr,t.isDate=l,t.locale=et,t.invalid=v,t.duration=$t,t.isMoment=_,t.weekdays=rr,t.parseZone=Jn,t.localeData=rt,t.isDuration=At,t.monthsShort=nr,t.weekdaysMin=ir,t.defineLocale=tt,t.updateLocale=nt,t.locales=at,t.weekdaysShort=ar,t.normalizeUnits=R,t.relativeTimeRounding=wr,t.relativeTimeThreshold=kr,t.calendarFormat=rn,t.prototype=si,t})}).call(t,n(136)(e))},function(e,t,n){"use strict";t.__esModule=!0;var r=n(39),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,a.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(738),i=r(a),o=n(742),s=r(o),l=n(39),u=r(l);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,u.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(300),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){"use strict";n(14)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(816),i=r(a),o=n(817),s=r(o);i.default.Group=s.default,t.default=i.default,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return 1===e.nodeType&&e.getAttribute(h)===String(t)||8===e.nodeType&&e.nodeValue===" react-text: "+t+" "||8===e.nodeType&&e.nodeValue===" react-empty: "+t+" "}function a(e){for(var t;t=e._renderedComponent;)e=t;return e}function i(e,t){var n=a(e);n._hostNode=t,t[v]=n}function o(e){var t=e._hostNode;t&&(delete t[v],e._hostNode=null)}function s(e,t){if(!(e._flags&m.hasCachedChildNodes)){var n=e._renderedChildren,o=t.firstChild;e:for(var s in n)if(n.hasOwnProperty(s)){var l=n[s],u=a(l)._domID;if(0!==u){for(;null!==o;o=o.nextSibling)if(r(o,u)){i(l,o);continue e}d("32",u)}}e._flags|=m.hasCachedChildNodes}}function l(e){if(e[v])return e[v];for(var t=[];!e[v];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}for(var n,r;e&&(r=e[v]);e=t.pop())n=r,t.length&&s(r,e);return n}function u(e){var t=l(e);return null!=t&&t._hostNode===e?t:null}function c(e){if(void 0===e._hostNode&&d("33"),e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent||d("34"),e=e._hostParent;for(;t.length;e=t.pop())s(e,e._hostNode);return e._hostNode}var d=n(17),f=n(95),p=n(301),h=(n(11),f.ID_ATTRIBUTE_NAME),m=p,v="__reactInternalInstance$"+Math.random().toString(36).slice(2),g={getClosestInstanceFromNode:l,getInstanceFromNode:u,getNodeFromInstance:c,precacheChildNodes:s,precacheNode:i,uncacheNode:o};e.exports=g},function(e,t,n){"use strict";n(14),n(794)},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n=i)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(e){return"[Circular]"}break;default:return e}}),s=t[r];r2?n-2:0),a=2;a=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},Y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);a=936&&!this.state.widerPadding&&this.setState({widerPadding:!0},function(){e.updateWiderPaddingCalled=!0}),this.container.offsetWidth<936&&this.state.widerPadding&&this.setState({widerPadding:!1},function(){e.updateWiderPaddingCalled=!0})}}},{key:"isContainGrid",value:function(){var e=void 0;return y.Children.forEach(this.props.children,function(t){t&&t.type&&t.type===C.default&&(e=!0)}),e}},{key:"getAction",value:function(e){return e&&e.length?e.map(function(t,n){return _.default.createElement("li",{style:{width:100/e.length+"%"},key:"action-"+n},_.default.createElement("span",null,t))}):null}},{key:"getCompatibleHoverable",value:function(){var e=this.props,t=e.noHovering,n=e.hoverable;return"noHovering"in this.props?!t||n:!!n}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,r=void 0===n?"ant-card":n,a=t.className,o=t.extra,l=t.bodyStyle,u=(t.noHovering,t.hoverable,t.title),c=t.loading,d=t.bordered,f=void 0===d||d,p=t.type,h=t.cover,m=t.actions,v=t.tabList,g=t.children,y=Y(t,["prefixCls","className","extra","bodyStyle","noHovering","hoverable","title","loading","bordered","type","cover","actions","tabList","children"]),b=(0,x.default)(r,a,(e={},(0,s.default)(e,r+"-loading",c),(0,s.default)(e,r+"-bordered",f),(0,s.default)(e,r+"-hoverable",this.getCompatibleHoverable()),(0,s.default)(e,r+"-wider-padding",this.state.widerPadding),(0,s.default)(e,r+"-padding-transition",this.updateWiderPaddingCalled),(0,s.default)(e,r+"-contain-grid",this.isContainGrid()),(0,s.default)(e,r+"-contain-tabs",v&&v.length),(0,s.default)(e,r+"-type-"+p,!!p),e)),M=_.default.createElement("div",{className:r+"-loading-content"},_.default.createElement("p",{className:r+"-loading-block",style:{width:"94%"}}),_.default.createElement("p",null,_.default.createElement("span",{className:r+"-loading-block",style:{width:"28%"}}),_.default.createElement("span",{className:r+"-loading-block",style:{width:"62%"}})),_.default.createElement("p",null,_.default.createElement("span",{className:r+"-loading-block",style:{width:"22%"}}),_.default.createElement("span",{className:r+"-loading-block",style:{width:"66%"}})),_.default.createElement("p",null,_.default.createElement("span",{className:r+"-loading-block",style:{width:"56%"}}),_.default.createElement("span",{className:r+"-loading-block",style:{width:"39%"}})),_.default.createElement("p",null,_.default.createElement("span",{className:r+"-loading-block",style:{width:"21%"}}),_.default.createElement("span",{className:r+"-loading-block",style:{width:"15%"}}),_.default.createElement("span",{className:r+"-loading-block",style:{width:"40%"}}))),w=void 0,k=v&&v.length?_.default.createElement(P.default,{className:r+"-head-tabs",onChange:this.onTabChange},v.map(function(e){return _.default.createElement(P.default.TabPane,{tab:e.tab,key:e.key})})):null;(u||o||k)&&(w=_.default.createElement("div",{className:r+"-head"},_.default.createElement("div",{className:r+"-head-wrapper"},u&&_.default.createElement("div",{className:r+"-head-title"},u),o&&_.default.createElement("div",{className:r+"-extra"},o)),k));var S=h?_.default.createElement("div",{className:r+"-cover"},h):null,C=_.default.createElement("div",{className:r+"-body",style:l},c?M:_.default.createElement("div",null,g)),T=_.default.createElement("div",null,w,S,g?C:null),L=m&&m.length?_.default.createElement("ul",{className:r+"-actions"},this.getAction(m)):null,O=(0,E.default)(y,["onTabChange"]);return _.default.createElement("div",(0,i.default)({},O,{className:b,ref:this.saveRef}),T,L)}}]),t}(y.Component);t.default=R,R.Grid=C.default,R.Meta=L.default,j([(0,D.throttleByAnimationFrameDecorator)()],R.prototype,"updateWiderPadding",null),e.exports=t.default},function(e,t,n){"use strict";n(14),n(237)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(158);t.default=r.Row,e.exports=t.default},function(e,t,n){"use strict";n(14),n(237)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(158);t.default=r.Col,e.exports=t.default},function(e,t,n){e.exports=n(549)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(551),i=r(a),o=n(561),s=r(o),l="function"==typeof s.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===l(i.default)?function(e){return void 0===e?"undefined":l(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":void 0===e?"undefined":l(e)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(493),i=r(a),o=n(949),s=r(o),l=n(950),u=r(l),c=n(494),d=r(c);i.default.Group=s.default,i.default.Search=u.default,i.default.TextArea=d.default,t.default=i.default,e.exports=t.default},function(e,t,n){var r=n(178)("wks"),a=n(131),i=n(47).Symbol,o="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=o&&i[e]||(o?i:a)("Symbol."+e))}).store=r},function(e,t,n){"use strict";t.__esModule=!0;var r=n(570),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&e<.01&&(t=(1/e+"").indexOf(".")+1),e.toFixed(t)+"%"}function a(e){for(var t in u)u.hasOwnProperty(t)&&delete u[t];var n;n=o.isObject(e)?e:-1!==o.indexOf(l,e)?s[e]:s.default,o.mix(!0,u,i,n),u.setTheme=a}var i,o=n(1),s=n(328),l=["default","dark","cheery"],u={};i={animate:!0,percentFormat:r,widthRatio:{column:.5,rose:.9999999,multiplePie:1/1.3},showSinglePoint:!1,scales:{"..x":{type:"linear",min:0,max:1,nice:!1},"..y":{type:"linear",min:0,max:1,nice:!1},"..level":{type:"linear",min:0,nice:!1},"..value":{type:"linear",min:0},"..count":{type:"linear",min:0,alias:"count"},"..percent":{type:"linear",min:0,max:1,alias:"percent",formatter:r},"..proportion":{type:"linear",min:0,max:1,alias:"proportion",formatter:r},"..density":{type:"linear",min:0,alias:"density"},"..long":{type:"linear",alias:"longitude",nice:!1},"..lant":{type:"linear",alias:"latitude",nice:!1},"..pieX":{type:"cat",values:["..pieX"],ticks:["..pieX"]}},connectNulls:!1,heatmapColors:"rgb(125,125,248)-rgb(0,0,255)-rgb(0,255,0)-yellow-rgb(255,0,0)",heatmap:{radius:50}},a("default"),e.exports=u},function(e,t,n){var r=n(157),a=n(66);r.G=a,r.Group=a.Group,r.Shape={},r.Shape.Marker=a.Marker,r.Util=n(81),r.Matrix=n(3),e.exports=r},function(e,t,n){var r=n(218);e.exports=r},function(e,t,n){var r=n(1),a=n(64),i=n(8),o=n(3).Vector3,s=function(e){s.superclass.constructor.call(this,e)};s.ATTRS={},r.extend(s,a),r.augment(s,{isShape:!0,createPath:function(){},drawInner:function(e){var t=this,n=t.__attrs;t.createPath(e);var a=e.globalAlpha;if(t.hasFill()){var i=n.fillOpacity;r.isNull(i)||1===i?e.fill():(e.globalAlpha=i,e.fill(),e.globalAlpha=a)}if(t.hasStroke()){if(t.__attrs.lineWidth>0){var o=n.strokeOpacity;r.isNull(o)||1===o||(e.globalAlpha=o),e.stroke()}}},isPointInPath:function(){return!1},isHitBox:function(){return!0},isHit:function(e,t){var n=this,r=new o(e,t,1);if(n.invert(r),n.isHitBox()){var a=n.getBBox();if(a&&!i.box(a.minX,a.maxX,a.minY,a.maxY,r.x,r.y))return!1}var s=n.__attrs.clip;return s?!!s.inside(e,t)&&n.isPointInPath(r.x,r.y):n.isPointInPath(r.x,r.y)},calculateBox:function(){return null},clearTotalMatrix:function(){this.__cfg.totalMatrix=null,this.__cfg.region=null},clearBBox:function(){this.__cfg.box=null,this.__cfg.region=null},getBBox:function(){var e=this.__cfg.box;return e||(e=this.calculateBox(),e&&(e.x=e.minX,e.y=e.minY,e.width=e.maxX-e.minX,e.height=e.maxY-e.minY),this.__cfg.box=e),e}}),e.exports=s},function(e,t,n){var r=n(43),a=n(44),i=n(32),o=n(42);e.exports={line:function(e,t,n,a,i,o,s){var l=r.box(e,t,n,a,i);if(!this.box(l.minX,l.maxX,l.minY,l.maxY,o,s))return!1;var u=r.pointDistance(e,t,n,a,o,s);return!isNaN(u)&&u<=i/2},polyline:function(e,t,n,r){var a=e.length-1;if(a<1)return!1;for(var i=0;i1&&(i=n.slice(0,r-1),e=[]),a.each(i,function(t){0!==t.indexOf("..")&&e.push(t)}),e},groupFrames:function(e){var t=this,n=t.getGroupCondition();return n?i.group(e,n):[e]},transformGroup:function(e,t){var n=this,r=[];return a.each(e,function(e){r.push(n.transform(e,t))}),r},execFrame:function(e){var t=this,n=t.getStatDims()[0],r=t.groupFrames(e),a=t.transformGroup(r,n);return i.merge.apply(null,a)},transform:function(e){return e}}),e.exports=o},function(e,t,n){var r=n(145);e.exports=r},function(e,t,n){"use strict";var r=n(1),a=["min","max"],i=function(e){r.mix(this,e)};r.augment(i,{xScale:null,yScale:null,cfg:{},parsePoint:function(e,t){var n=this,i=n.xScale,o=n.yScale;r.isFunction(t)&&(t=t(i,o));var s=t[0],l=t[1];return i&&(s=-1!==r.indexOf(a,s)?i.scale(i[s]):i.scale(s)),o&&(l=-1!==r.indexOf(a,l)?o.scale(o[l]):o.scale(l)),e.convert({x:s,y:l})},paint:function(){}}),e.exports=i},function(e,t,n){"use strict";var r=n(1),a=n(51),i=function(e){i.superclass.constructor.call(this,e)};r.extend(i,a),r.augment(i,{regressionType:"base",isRegression:!0,getRegressionString:function(){return""},execSmooth:function(e){return e}}),e.exports=i},function(e,t,n){"use strict";var r=n(94),a=n(17),i=n(1);i.mix(r.GeomShape,{getMarkerCfg:function(e,t){return this.getShape(e).getMarkerCfg(t)},drawShape:function(e,t,n){var r=this.getShape(e),a=r.drawShape(t,n);return a&&(a.set("origin",t.origin),a.animateType=a.animateType?a.animateType:t.geomType,a.id=t.id,t.splitedIndex&&(a.id+="splI"+t.splitedIndex)),a},getActiveCfg:function(e,t){return this.getShape(e).getActiveCfg(t)},getSelectedCfg:function(e,t){return this.getShape(e).getSelectedCfg(t)}}),i.mix(r.ShapeBase,{getActiveCfg:function(){return{}},getSelectedCfg:function(){return{}},setCoord:function(e){this._coord=e},parsePath:function(e,t){var n=this._coord;return e=i.parsePathString(e),e=n.isPolar&&!1!==t?a.convertPolarPath(e,n):a.convertNormalPath(e,n)},parsePoint:function(e){return this._coord.convertPoint(e)},parsePoints:function(e){if(!e)return!1;var t=this._coord,n=[];return i.each(e,function(e){n.push(t.convertPoint(e))}),n}}),e.exports=r},function(e,t,n){"use strict";var r=n(1),a=n(10),i=n(5).Matrix,o=i.Matrix3,s=function(e){s.superclass.constructor.call(this,e)};s.ATTRS={easing:"easeInOutQuad",duration:1e3,callback:null,group:null,rect:null,before:null},r.extend(s,a),r.augment(s,{start:function(){return this.startAnimate(),this},startAnimate:function(){var e=this.getTarget(),t=this.get("group");this.set("originMatrix",t.getMatrix().clone()),this.set("rect",this.getAnimRect()),this.set("target",e),this.beforeAnimate(e),this.execAnimate(e)},beforeAnimate:function(e){var t=this.getInitMatrix(),n=this.getInitAttrs(),r=this.get("originMatrix");t=o.multiply(r,t),e.setMatrix(t),e.attr(n)},execAnimate:function(e){var t,n=this,a=n.get("before"),i=n.get("callback"),s=n.get("duration"),l=n.get("easing"),u=n.getEndAttrs(),c=n.get("originMatrix"),d=n.getEndMatrix();d=o.multiply(c,d),t=r.mix({},u,{matrix:d}),e.animate(t,s,l,function(){i&&i(),n.afterAnimate(e)}),a&&a()},afterAnimate:function(e){var t=this.get("group"),n=t.get("canvas");return t==e||(t.attr("clip",!1),void n.draw())},getTarget:function(){return this.get("group")},getInitMatrix:function(){return new o},getInitAttrs:function(){return{}},getEndMatrix:function(){return new o},getEndAttrs:function(){return{}},getAnimRect:function(){var e=this.get("rect"),t=this.get("group");return e||(e=t.getBBBox()),e},getCircleInfo:function(){var e=this.get("rect"),t=this.get("circle"),n=this.getRectCenter(e),r=Math.min(e.width,e.height)/2;return t||(t={center:n,r:r}),t},getRectCenter:function(e){return{x:e.x+e.width/2,y:e.y+e.height/2}},stop:function(){return this.stopAnimate(),this},stopAnimate:function(){var e=this.getTarget();e&&e.stopAnimate()}}),e.exports=s},function(e,t,n){var r=n(29);r.summary=n(267),r.bin=n(243),r.smooth=n(257),r.density=n(247),r.region=n(250);var a=n(2);a.execStat=function(e,t){t.init();var n=t.exec([e]);return a.merge.apply(null,n)},e.exports=r},function(e,t,n){"use strict";var r=n(1),a=n(10),i=n(86),o=n(94),s=n(289),l="_origin",u=function(e){u.superclass.constructor.call(this,e)};u.ATTRS={id:"",type:null,container:null,attrs:null,shapeObj:null,createTime:null,styleCfg:{},shapeDatas:[]},r.extend(u,a),r.mixin(u,[s]),r.augment(u,{_mapping:function(e){var t=this,n=e.toJSON(),a=t.get("attrs"),o=[];return r.each(n,function(e){var n={};n[l]=e[l],n.points=e.points,n.nextPoints=e.nextPoints,r.each(a,function(a){var i=a.names,o=t._getAttrValues(a,e);r.each(o,function(e,t){var a=i[t];n[a]=r.isArray(e)&&1===e.length?e[0]:e})}),o.push(n)}),new i(o)},_processShapePoints:function(e){var t,n,a=this,s=a.get("shapeType")||a.get("type"),l=o.getShape(s),u=[];return l._coord=a.getCoord(),r.each(e,function(e){var t=[];e.each(function(e){var n=a.getAttrValue("shape",e),r=a.getShapePointInfo(e),i=l.getShapePoints(n,r);e.points=i,t.push(e)}),t=new i(t),u.push(t)}),r.each(u,function(e,r){t=u[r+1],n=t?t.colArray("points")[0]:null,e.addCol("nextPoints",function(){return n})}),a.set("shapeObj",l),u},_getAttrValues:function(e,t){var n=e.scales,a=[];return r.each(n,function(e){var n=e.dim;"identity"===e.type?a.push(e.value):a.push(t[n])}),e.mappingValues.apply(e,a)},draw:function(e){var t=this,n=[];return e=t.sortFrames(e),e=t.processFrames(e),e=t._processShapePoints(e),r.each(e,function(e,r){e=t.beforeMapping(e),e=t._mapping(e),e.rowCount()&&t.drawFrame(e,r),n.push(e)}),n},sortFrames:function(e){var t=this.getXScale();return r.indexOf(["time","timeCat"],t.type)>-1?this.sort(e):e},processFrames:function(e){return e},beforeMapping:function(e){return e},isInCircle:function(){return this.getCoord().isPolar},getShapePointInfo:function(e){var t,n,r=this.getXScale(),a=this.getYScale();return t=r?this._normalizeValues(e[r.dim],r):e.x?e.x:.1,n=a?this._normalizeValues(e[a.dim],a):e.y?e.y:.1,{x:t,y:n,y0:a?a.scale(this.getYMinValue()):void 0,size:this.getSize(e)}},_normalizeValues:function(e,t){var n=[];return r.isArray(e)?r.each(e,function(e){n.push(t.scale(e))}):n=t.scale(e),n},getDefalutSize:function(){return.1},_getSize:function(e){var t,n=this.getCoord();return t=this.isInCircle()&&!n.isTransposed?(n.get("endAngle")-n.get("startAngle"))*n.get("radius"):this.getDimWidth("x"),e/t},getDimWidth:function(e){var t=this,n=t.getCoord(),r=n.convertPoint({x:0,y:0}),a=n.convertPoint({x:"x"===e?1:0,y:"x"===e?0:1}),i=0;return r&&a&&(i=Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2))),i},getSize:function(e){var t=this.getAttrValue("size",e);return t=r.isNull(t)?this.getDefalutSize():this._getSize(t)},drawFrame:function(e){var t,n,a,i=this,o=e.toJSON(),s=i.get("container"),l=i.get("shapeObj"),u=i.getYDim(),c=i.get("shapeDatas");r.each(o,function(e,o){c.push(e),u&&r.isNull(e._origin[u])||(e.index=o,t=i.getDrawCfg(e),n=i.getDrawShape(e.shape),a=l.drawShape(n,t,s),i.afterDraw(a,e))})},afterDraw:function(){},getDrawShape:function(e){return r.isArray(e)?e[0]:e},getDrawCfg:function(e){var t=this.get("styleCfg"),n=this.isInCircle(),r=e._origin,a={points:e.points,nextPoints:e.nextPoints,color:e.color,isInCircle:n,style:t,size:e.size,shape:e.shape,opacity:e.opacity,x:e.x,y:e.y,origin:e,id:this._getId(r),geomType:this.get("type")};return n&&(a.center=this.getCoord().get("center")),a},_getId:function(e){var t=this.get("idDims"),n=this.get("id"),r=n;if(t&&t.length>0)t.forEach(function(t){r+=" "+e[t]});else{var a=this.get("groupScales");a&&a.length>0&&a.forEach(function(t){var n=t.dim;"identity"!==t.type&&".."!==n.slice(0,2)&&(r+=" "+e[n])});var i=this.getAttr("position"),o=i.getDims(),s=o[0],l=o[1],u=this.get("type");r+="interval"===u||"intervalStack"===u||"schemal"===u?" "+e[s]:"line"===u||"area"===u?" "+u:" "+e[s]+" "+e[l]+" "+u}return r},getYMinValue:function(){var e=this.getYScale(),t=e.min;return t>=0?t:0},getAttrValue:function(e,t){var n=this.getAttr(e),r=null;return n&&(r=this._getAttrValues(n,t)[0]),r},getAttr:function(e){var t=this.get("attrs"),n=null;return r.each(t,function(t){t.type===e&&(n=t)}),n},getCoord:function(){return this.getAttr("position").coord},getXDim:function(){return this.getXScale().dim},getYDim:function(){var e=this.getYScale();return e?e.dim:null},getXScale:function(){return this.getAttr("position").scales[0]},getYScale:function(){return this.getAttr("position").scales[1]}}),e.exports=u},function(e,t,n){"use strict";function r(e,t,n){if(!e.length)return"";var r="",a="";e.length<=2&&(n=!1);for(var i=0,o=e.length;i=c[p]?1:0,v=h>Math.PI?1:0,g=n.convertPoint(d),y=a(n,g);if(y>=.5)if(h===2*Math.PI){var _={x:(d.x+c.x)/2,y:(d.y+c.y)/2},b=n.convertPoint(_);f.push(["A",y,y,0,v,m,b.x,b.y]),f.push(["A",y,y,0,v,m,g.x,g.y])}else f.push(["A",y,y,0,v,m,g.x,g.y]);return f}function s(e){l.each(e,function(t,n){if("a"===t[0].toLowerCase()){var r=e[n-1],a=e[n+1];a&&"a"===a[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&a&&"l"===a[0].toLowerCase()&&(a[0]="M")}})}var l=n(1),u=n(227),c={getLinePath:function(e,t,n){return r(e,t,n)},getSplinePath:function(e,t){var n=[],r=e[0],a=null;l.each(e,function(e){a&&a.x===e.x&&a.y===e.y||(n.push(e.x),n.push(e.y),a=e)});var i=[[0,0],[1,1]],o=u.catmullRom2bezier(n,t,i);return"M"+r.x+" "+r.y+l.parsePathArray(o)},getPointRadius:function(e,t){return a(e,t)},getPointAngle:function(e,t){var n=e.getCenter();return Math.atan2(t.y-n.y,t.x-n.x)},convertNormalPath:function(e,t){var n=[];return l.each(e,function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(i(e,t));break;case"z":default:n.push(e)}}),n},convertPolarPath:function(e,t){var n=[];return l.each(e,function(r,a){switch(r[0].toLowerCase()){case"m":case"c":case"q":n.push(i(r,t));break;case"l":var s=e[a-1],l=r;(t.isTransposed?s[s.length-2]===l[1]:s[s.length-1]===l[2])?n=n.concat(o(s,l,t)):n.push(i(r,t));break;case"z":default:n.push(r)}}),s(n),n}};e.exports=c},function(e,t,n){"use strict";var r=n(1),a=function(e){r.mix(this,e)};a.prototype={type:"base",names:null,scales:[],min:0,max:10,method:function(e){return e*(this.max-this.min)+this.min},callback:function(){var e,t,n,a=this,i=a.arr,o=a.scales,s=r.toArray(arguments),l=[];return r.each(o,function(o,u){e=s[u],n=o.scale(e),t=o.translate(e),"identity"===o.type?l.push(o.value):r.isArray(i)?l.push(a._getArrValue(i,o,n,t)):a.method?l.push(a.method(n)):l.push(null)}),l},getNames:function(){var e=this.scales,t=this.names,n=[];return r.each(e,function(e,r){n.push(t[r])}),n},getDims:function(){var e=this.scales,t=[];return r.each(e,function(e){t.push(e.dim)}),t},getScale:function(e){return this.scales[this.names.indexOf(e)]},mappingValues:function(){var e=this.scales,t=r.toArray(arguments),n=this.callback,a=t;if(n){for(var i=0;i1?(a=0===s?n[0]:n[s-1],i=s===l-1?n[l-1]:n[s+1],0!==s?a+=(t-a)/2:a-=(i-t)/2,s!==l-1?i-=(i-t)/2:i+=(t-n[l-2])/2):(a=0===t?0:t-.5,i=0===t?1:t+.5),{pre:a,next:i}},groupData:function(e,t){var n={};return r.each(e,function(e){var r=e[t];void 0===r&&(r=e[t]=0),n[r]||(n[r]=[]),n[r].push(e)}),n}}),e.exports=i},function(e,t,n){"use strict";var r={Axis:n(149),Plot:{Back:n(155),Range:n(61)},Labels:n(58),Tooltip:n(156),Legend:n(154),Range:n(62)};e.exports=r},function(e,t,n){"use strict";var r=n(1),a=n(3),i=a.Matrix3,o=a.Vector3,s=function(e){this._attrs={},this._attrs.matrix=new i,r.mix(this._attrs,s.ATTRS,e),this.init()};r.augment(s,{isTransposed:!1,set:function(e,t){return this._attrs[e]=t,this},get:function(e){return this._attrs[e]},getDim:function(e){switch(e){case"x":return this.get("x");case"y":return this.get("y");case"z":return this.get("z");default:console.error("\u6ca1\u6709"+e+"\u4ee3\u8868\u7684\u7ef4\u5ea6!")}},init:function(){var e=this,t=e.get("start"),n=e.get("end"),r={x:(t.x+n.x)/2,y:(t.y+n.y)/2};e.set("center",r),e.set("width",Math.abs(n.x-t.x)),e.set("height",Math.abs(n.y-t.y))},getWidth:function(){return this.get("width")},getHeight:function(){return this.get("height")},convertDim:function(e,t){return t=this.get(t),t.start+e*(t.end-t.start)},invertDim:function(e,t){return t=this.get(t),(e-t.start)/(t.end-t.start)},rotate:function(e){var t=this,n=t.get("matrix"),r=t.get("center");return n.translate(-r.x,-r.y),n.rotate(e),n.translate(r.x,r.y),this},reflect:function(e){var t=this;switch(e){case"x":t._swapDim("x");break;case"y":t._swapDim("y");break;default:t._swapDim("y")}return this},_swapDim:function(e){var t=this,n=t.get(e);if(n){var r=n.start;n.start=n.end,n.end=r}},scale:function(e,t){var n=this,r=n.get("matrix"),a=n.get("center");return r.translate(-a.x,-a.y),r.scale(e,t),r.translate(a.x,a.y),this},translate:function(e,t){return this.get("matrix").translate(e,t),this},transpose:function(){this.isTransposed=!this.isTransposed},convertPoint:function(e){return e},invertPoint:function(e){return e},convert:function(e){var t=this;e=this.convertPoint(e);var n=t.trans(e.x,e.y,1);return{x:n.x,y:n.y}},invert:function(e){var t=this,n=t.reverse(e.x,e.y,1);return this.invertPoint({x:n.x,y:n.y})},trans:function(e,t,n){n=n||0;var r=this,a=r.get("matrix"),i=new o(e,t,n);return i.applyMatrix(a),i},reverse:function(e,t,n){n=n||0;var r=this,a=r.get("matrix"),i=a.getInverse(),s=new o(e,t,n);return s.applyMatrix(i),s}}),e.exports=s},function(e,t,n){"use strict";var r=n(1),a=function(e){r.mix(this,e)};r.augment(a,{xValue:null,yValue:null,region:null,frame:null}),e.exports=a},function(e,t,n){"use strict";var r=n(15),a=n(1),i=n(2),o=function(e){o.superclass.constructor.call(this,e)};a.extend(o,r),a.augment(o,{type:"map",mapData:{},initDims:function(e){var t=e[0];e=e.slice(1).concat([t]),e.unshift("..lant"),e.unshift("..long"),this.dims=e},getStatDims:function(){return this.getDims().filter(function(e){return e.indexOf("..")>-1})},execFrame:function(e){var t=this,n=t.getStatDims(),r=[];return e=e.toJSON(),a.each(e,function(e){r.push(t.addGeoInfo(e,n))}),new i(r)},addGeoInfo:function(e){return e}}),e.exports=o},function(e,t,n){"use strict";var r=n(1),a=function(e){r.mix(this,e)};r.augment(a,{isStat:!0,initDims:function(){},getDims:function(){return this.dims},getStatDims:function(){return this.getDims()},init:function(){var e=this,t=e.dims;if(r.isString(t)&&(t=t.split("*"),e.dims=t),t&&t.isStat){var n=t;n.init(),e.stat=n,t=n.dims,e.dims=t}t||(t=[],e.dims=t),e.initDims(t)},preExecute:function(){},exec:function(e){var t=this;t.preExecute(e);var n=[];return this.stat&&(e=this.stat.exec(e)),r.each(e,function(a){var i=t.execFrame(a,e);r.isArray(i)?n=n.concat(i):n.push(i)}),n},execFrame:function(e){return e}}),e.exports=a},function(e,t,n){var r={caculate:n(143),Time:{caculate:n(144)},Category:{caculate:n(142)}};e.exports=r},function(e,t,n){"use strict";var r=n(1),a=n(58),i=n(5).Group,o=a.ShowLabels,s="x-chart-axis",l=n(147),u=function(e){u.superclass.constructor.call(this,e)};u.CFG={zIndex:4,ticks:null,line:null,tickLine:null,subTick:null,grid:null,labels:{label:{},autoRotate:!0},title:{},autoPaint:!0,labelOffset:10,titleOffset:20,formatter:null,firstTick:!0},r.mixin(u,[o]),r.extend(u,i),r.augment(u,{_renderUI:function(){this.get("labels")&&this.renderLabels(),this.get("autoPaint")&&this.paint(),r.isNull(this.get("title"))||this.renderTitle(),this.sort()},_parseTicks:function(e){e=e||[];for(var t=e.length,n=0;n=1?"center":e.x>0?"left":"right"},addLabel:function(e,t,n,r){var a,i=this.get("id")+"label"+r,o=this.get("labelsGroup"),s={};if(o){var l=this.get("labelOffset")||10,u=this.getSideVector(l,t,n);t={x:t.x+u.x,y:t.y+u.y},s.text=e,s.x=t.x,s.y=t.y,s.textAlign=this.getTextAnchor(u),s.id=i||e,a=o.addLabel(s)}return a},getMaxLabelWidth:function(e){var t=e.get("children"),n=0;return r.each(t,function(e){var t=e.getBBox(),r=t.width;n=0&&v=0&&a<=1&&d.push(a);else{var f=l*l-4*s*u;c.equal(f,0)?d.push(-l/(2*s)):f>0&&(o=Math.sqrt(f),a=(-l+o)/(2*s),i=(-l-o)/(2*s),a>=0&&a<=1&&d.push(a),i>=0&&i<=1&&d.push(i))}return d}function s(e,t,n,r,a){return e*(e*(-3*t+9*n-9*r+3*a)+6*t-12*n+6*r)-3*t+3*n}function l(e,t,n,r,a,i,o,l,u){d.isNull(u)&&(u=1),u=u>1?1:u<0?0:u;for(var c=u/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,m=0;m<12;m++){var v=c*f[m]+c,g=s(v,e,n,a,o),y=s(v,t,r,i,l),_=g*g+y*y;h+=p[m]*Math.sqrt(_)}return c*h}var u=n(3).Vector2,c=n(6),d=n(1);e.exports={at:r,derivativeAt:a,projectPoint:function(e,t,n,r,a,o,s,l,u,c){var d={};return i(e,t,n,r,a,o,s,l,u,c,d),d},pointDistance:i,extrema:o,len:l}},function(e,t,n){e.exports=n(170)},function(e,t,n){"use strict";var r=n(1),a=n(26),i=n(3),o=n(6),s=i.Vector2,l=i.Matrix3,u=i.Vector3,c=function(e){var t={};r.mix(t,c.ATTRS,e),c.superclass.constructor.call(this,t),this._init()};c.ATTRS={startAngle:-Math.PI/2,endAngle:3*Math.PI/2,inner:.5},r.extend(c,a),r.augment(c,{type:"plus",isPolar:!0,_init:function(){var e,t,n=this,r=n.get("radius"),a=n.get("inner"),i=n.get("startAngle"),o=n.get("endAngle"),s=n.get("center"),l=n.getOneBox(),u=l.maxX-l.minX,c=l.maxY-l.minY,d=Math.abs(l.minX)/u,f=Math.abs(l.minY)/c,p=n.getWidth(),h=n.getHeight();h/c>p/u?(e=p/u,t={x:s.x-(.5-d)*p,y:s.y-(.5-f)*e*c}):(e=h/c,t={x:s.x-(.5-d)*e*u,y:s.y-(.5-f)*h}),r=r?r>0&&r<=1?e*r:r>0&&r<=e?r:e:e;var m={start:i,end:o},v={start:a*r,end:r};n.set("x",m),n.set("y",v),n.set("radius",r),n.set("circleCentre",t),n.set("center",t)},getCenter:function(){return this.get("circleCentre")},getOneBox:function(){var e=this,t=e.get("startAngle"),n=e.get("endAngle");if(n-t>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var r=[0,Math.cos(t),Math.cos(n)],a=[0,Math.sin(t),Math.sin(n)],i=5*-Math.PI/2;i<3*Math.PI/2;i+=Math.PI/2)t<=i&&i<=n&&(r.push(Math.cos(i)),a.push(Math.sin(i)));return{minX:Math.min.apply(Math,r),maxX:Math.max.apply(Math,r),minY:Math.min.apply(Math,a),maxY:Math.max.apply(Math,a)}},getRadius:function(){return this.get("radius")},convertPoint:function(e){var t=this,n=t.getCenter(),r=t.isTransposed?e.y:e.x,a=t.isTransposed?e.x:e.y;return r=t.convertDim(r,"x"),a=t.convertDim(a,"y"),{x:n.x+Math.cos(r)*a,y:n.y+Math.sin(r)*a}},invertPoint:function(e){var t=this,n=t.getCenter(),r=new s(e.x-n.x,e.y-n.y),a=t.get("x"),i=new l;i.rotate(a.start);var c=new u(1,0,0);c.applyMatrix(i),c=new s(c.x,c.y);var d=c.angleTo(r,a.end0?p:-p;var h=t.invertDim(f,"y"),m={};return m.x=t.isTransposed?h:p,m.y=t.isTransposed?p:h,m}}),e.exports=c},function(e,t,n){"use strict";var r=n(1),a=n(2),i=function(e){r.mix(this,e)};r.augment(i,{dims:[],margin:0,defs:{},facetTitle:{titleOffset:25,colDimTitle:{title:{"font-size":16,"text-anchor":"middle",fill:"#444"}},colTitle:{title:{"font-size":14,"text-anchor":"middle",fill:"#444"}},rowTitle:{title:{"font-size":14,"text-anchor":"middle",rotate:90,fill:"#444"}},rowDimTitle:{title:{"font-size":16,"text-anchor":"middle",rotate:90,fill:"#444"}}},plotRange:null,getDimValues:function(e,t){var n=this,r=n.defs[e];return r&&r.values?r.values:a.values(t,e)},getFilter:function(e){var t=this.defs;return function(n){var a=!0;return r.each(e,function(e){var i=e.dim,o=e.value,s=e.values,l=!0;!r.isNull(o)&&i&&(l=t[i]&&t[i].group?t[i].group(n)===r.indexOf(s,o):n[i]===o||n[i]===r.indexOf(s,o)),a=a&&l}),a}},drawTitles:function(e,t){var n=this,a=n.dims;r.each(e,function(e){n.drawFacetTitle("col",e,t)}),n.drawDimTitle("col",a[0],t)},generateFacets:function(){},drawFacetTitle:function(e,t,n){var a=this,i=a.facetTitle,o=i.titleOffset,s="row"===e?i.rowTitle:i.colTitle,l=t.region,u=l.start,c=l.end,d="row"===e?"y":"x",f="row"===e?"x":"y",p={};p[d]=(c[d]-u[d])/2+u[d],p[f]=c[f];var h="x"===d?-1:1,m=r.mix({text:t[d+"Value"]},s.title);m[d]=p[d],m[f]=p[f]+o*h,n.addShape("Text",{attrs:m})},drawDimTitle:function(e,t,n){if(!r.isNull(t)){var a=this,i=a.plotRange,o=a.defs,s="row"===e?"y":"x",l=a.facetTitle,u=l.titleOffset,c="x"===s?l.colDimTitle:l.rowDimTitle,d=o[t]&&o[t].alias||t,f={};f="x"===s?{y:i.tl.y+-1*(u+40),x:(i.tr.x-i.tl.x)/2+i.tl.x}:{x:i.tr.x+(u+40),y:(i.br.y-i.tr.y)/2+i.tr.y},d=r.mix({text:d,x:f.x,y:f.y},c.title),n.addShape("Text",{attrs:d})}}}),e.exports=i},function(e,t,n){"use strict";function r(e,t){if(i.isNumeric(e)&&i.isNumeric(t))return o.number(e,t);if(i.isString(e)&&i.isString(t)){var n=new l(e),r=new l(t);if(n.getType()&&r.getType())return s.color(n,r)}}function a(e,t){if(i.isNumeric(e)&&i.isNumeric(t))return o.unNumber(e,t);if(i.isString(e)&&i.isString(t)){var n=new l(e),r=new l(t);if(n.getType()&&r.getType())return s.unColor(n,r)}}var i=n(1),o=n(206),s=n(203),l=n(33);e.exports={singular:r,unSingular:a}},function(e,t,n){"use strict";var r=n(38),a=n(1),i=n(30),o=function(e){o.superclass.constructor.call(this,e)};a.extend(o,r),a.augment(o,{type:"linear",isLinear:!0,min:null,max:null,nice:!1,tickCount:null,tickInterval:null,init:function(){var e=this;if(e.ticks){var t=e.ticks,n=e.translate(t[0]),r=e.translate(t[t.length-1]);(a.isNull(e.min)||e.min>n)&&(e.min=n),(a.isNull(e.max)||e.max=e.min&&t<=e.max&&n.push(t)}),e.ticks=n}},scale:function(e){if(null===e||void 0===e)return NaN;var t=this.max,n=this.min;if(t===n)return 0;var r=(e-n)/(t-n),a=this.rangeMin();return a+r*(this.rangeMax()-a)},invert:function(e){var t=(e-this.rangeMin())/(this.rangeMax()-this.rangeMin());return this.min+t*(this.max-this.min)}}),e.exports=o},function(e,t,n){"use strict";var r=n(1),a=function(e){r.mix(this,e),this.init()};r.augment(a,{formatter:null,range:[0,1],ticks:null,values:[],init:function(){},getTicks:function(){var e=this,t=e.ticks,n=[];return r.each(t,function(t){var a;a=r.isObject(t)?t:{text:e.getText(t),tickValue:t,value:e.scale(t)},n.push(a)}),n},getText:function(e){var t=this.formatter;return e=t?t(e):e,!r.isNull(e)&&e.toString||(e=""),e.toString()},rangeMin:function(){return this.range[0]},rangeMax:function(){var e=this.range;return e[e.length-1]},invert:function(){},translate:function(e){return e},scale:function(){},clone:function(){var e=this,t=e.constructor,n={};return r.each(e,function(t,r){n[r]=e[r]}),new t(n)},change:function(e){return this.ticks=null,r.mix(this,e),this.init(),this}}),e.exports=a},function(e,t,n){"use strict";var r=n(1),a=n(29),i=n(2),o=function(e){o.superclass.constructor.call(this,e),this.colRange={},this.binWidth||(this.binWidth=.03)};r.extend(o,a),r.augment(o,{type:"bin",binWidth:.03,colRange:{},binDims:null,setRange:function(e,t){this.colRange[e]=t},getStatDims:function(){return this.getDims()},getBinDims:function(){var e=this.binDims||this.getDims(),t=[];return r.each(e,function(e){-1===e.indexOf("..")&&t.push(e)}),t},getBinWidth:function(){return this.binWidth||.03},getCenterValue:function(e,t,n){var r=this.getBinWidth(),a=(e-n)/(t-n);return 1===a&&(a-=r/4),(t-n)*(Math.floor(a/r)*r+r/2)+n},toBin:function(e){for(var t=this,n=t.getBinDims(),r=0;rn&&(a=2*Math.PI-e+t,i=e-n):(a=e-t,i=n-e),a>i?n:t}function i(e,t,n,r){var i=0;return n-t>=2*Math.PI&&(i=2*Math.PI),t=u.mod(t,2*Math.PI),n=u.mod(n,2*Math.PI)+i,e=u.mod(e,2*Math.PI),r?t>=n?e>n&&en?e:a(e,t,n):t<=n?tt||ee.x&&(h=e.x),me.y&&(v=e.y),g=0&&f<_?(d=x,_=f):(h=new o(r(e,n,i,M),r(t,a,s,M)),v=h.distanceToSquared(b),M<=1&&v<_?(d=M,_=v):y*=.5)}return c&&(c.x=r(e,n,i,d),c.y=r(t,a,s,d)),Math.sqrt(_)}function i(e,t,n){var r=e+n-2*t;if(s.equal(r,0))return[.5];var a=(e-t)/r;return a<=1&&a>=0?[a]:[]}var o=n(3).Vector2,s=n(6);e.exports={at:r,projectPoint:function(e,t,n,r,i,o,s,l){var u={};return a(e,t,n,r,i,o,s,l,u),u},pointDistance:a,extrema:i}},function(e,t,n){"use strict";var r=n(1),a=n(34),i=function(e){e.inner=e.inner||0,i.superclass.constructor.call(this,e)};r.extend(i,a),r.augment(i,{type:"polar"}),e.exports=i},function(e,t,n){var r=n(182);e.exports=r},function(e,t,n){var r=n(183);e.exports=r},function(e,t,n){"use strict";var r=n(1),a=Math.PI/180,i=180/Math.PI,o=function(e){r.mix(this,e)};r.augment(o,{basic:null,toRadians:function(e){return a*e},toDegrees:function(e){return e*i},project:function(e,t){return{x:e,y:t}},invert:function(e){return{x:e.x,y:e.y}}}),e.exports=o},function(e,t,n){"use strict";var r=(n(1),"\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029"),a=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),i=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig"),o=function(e){if(!e)return null;if(typeof e==typeof[])return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(e).replace(a,function(e,r,a){var o=[],s=r.toLowerCase();if(a.replace(i,function(e,t){t&&o.push(+t)}),"m"==s&&o.length>2&&(n.push([r].concat(o.splice(0,2))),s="l",r="m"==r?"l":"L"),"o"==s&&1==o.length&&n.push([r,o[0]]),"r"==s)n.push([r].concat(o));else for(;o.length>=t[s]&&(n.push([r].concat(o.splice(0,t[s]))),t[s]););}),n},s=function(e,t){for(var n=[],r=0,a=e.length;a-2*!t>r;r+=2){var i=[{x:+e[r-2],y:+e[r-1]},{x:+e[r],y:+e[r+1]},{x:+e[r+2],y:+e[r+3]},{x:+e[r+4],y:+e[r+5]}];t?r?a-4==r?i[3]={x:+e[0],y:+e[1]}:a-2==r&&(i[2]={x:+e[0],y:+e[1]},i[3]={x:+e[2],y:+e[3]}):i[0]={x:+e[a-2],y:+e[a-1]}:a-4==r?i[3]=i[2]:r||(i[0]={x:+e[r],y:+e[r+1]}),n.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return n},l=function(e,t,n,r,a){if(null==a&&null==r&&(r=n),e=+e,t=+t,n=+n,r=+r,null!=a)var i=Math.PI/180,o=e+n*Math.cos(-r*i),s=e+n*Math.cos(-a*i),l=t+n*Math.sin(-r*i),u=t+n*Math.sin(-a*i),c=[["M",o,l],["A",n,n,0,+(a-r>180),0,s,u]];else c=[["M",e,t],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return c},u=function(e){if(!(e=o(e))||!e.length)return[["M",0,0]];var t,n=[],r=0,a=0,i=0,u=0,c=0;"M"==e[0][0]&&(r=+e[0][1],a=+e[0][2],i=r,u=a,c++,n[0]=["M",r,a]);for(var d,f,p=3==e.length&&"M"==e[0][0]&&"R"==e[1][0].toUpperCase()&&"Z"==e[2][0].toUpperCase(),h=c,m=e.length;h1&&(y=Math.sqrt(y),n*=y,r*=y);var _=n*n,b=r*r,x=(i==o?-1:1)*Math.sqrt(Math.abs((_*b-_*g*g-b*v*v)/(_*g*g+b*v*v))),M=x*n*g/r+(e+s)/2,w=x*-r*v/n+(t+l)/2,k=Math.asin(((t-w)/r).toFixed(9)),E=Math.asin(((l-w)/r).toFixed(9));k=eE&&(k-=2*Math.PI),!o&&E>k&&(E-=2*Math.PI)}var S=E-k;if(Math.abs(S)>d){var C=E,T=s,L=l;E=k+d*(o&&E>k?1:-1),s=M+n*Math.cos(E),l=w+r*Math.sin(E),h=f(s,l,n,r,a,0,o,T,L,[E,C,M,w])}S=E-k;var O=Math.cos(k),P=Math.sin(k),D=Math.cos(E),N=Math.sin(E),A=Math.tan(S/4),j=4/3*n*A,Y=4/3*r*A,R=[e,t],I=[e+j*P,t-Y*O],F=[s+j*N,l-Y*D],H=[s,l];if(I[0]=2*R[0]-I[0],I[1]=2*R[1]-I[1],u)return[I,F,H].concat(h);h=[I,F,H].concat(h).join().split(",");for(var W=[],V=0,z=h.length;V7){e[t].shift();for(var a=e[t];a.length;)p[t]="A",r&&(h[t]="A"),e.splice(t++,0,["C"].concat(a.splice(0,6)));e.splice(t,1),y=Math.max(n.length,r&&r.length||0)}},l=function(e,t,a,i,o){e&&t&&"M"==e[o][0]&&"M"!=t[o][0]&&(t.splice(o,0,["M",i.x,i.y]),a.bx=0,a.by=0,a.x=e[o][1],a.y=e[o][2],y=Math.max(n.length,r&&r.length||0))},p=[],h=[],m="",v="",g=0,y=Math.max(n.length,r&&r.length||0);g1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+6*(t-e)*(2/3-n):e},o=r<=.5?r*(1+n):r+n-r*n,s=2*r-o;a.r=i(s,o,t+1/3),a.g=i(s,o,t),a.b=i(s,o,t-1/3)}return a.r=Math.min(Math.round(255*a.r),255),a.g=Math.min(Math.round(255*a.g),255),a.b=Math.min(Math.round(255*a.b),255),"#"+this.toHex(a.r)+this.toHex(a.g)+this.toHex(a.b)},rgb2hsl:function(e){var t,n,r,a=this.rgb2arr(e),i=a[0]/255,o=a[1]/255,s=a[2]/255,l=Math.min(i,o,s),u=Math.max(i,o,s),c=u-l;return u===l?t=0:i===u?t=(o-s)/c:o===u?t=2+(s-i)/c:s===u&&(t=4+(i-o)/c),t=Math.min(60*t,360),t<0&&(t+=360),r=(l+u)/2,n=u===l?0:r<=.5?c/(u+l):c/(2-u-l),[t/360,n,r]},arr2rgb:function(e){return"#"+this.toHex(e[0])+this.toHex(e[1])+this.toHex(e[2])},rgb2arr:function(e){var t=[];return t.push(parseInt(e.substr(1,2),16)),t.push(parseInt(e.substr(3,2),16)),t.push(parseInt(e.substr(5,2),16)),t}}},function(e,t,n){"use strict";var r=n(14),a=n(1),i=function(e){i.superclass.constructor.call(this,e)};a.extend(i,r),a.augment(i,{getEndAttrs:function(){var e=this.get("rect");return{width:e.width,height:e.height}},getTarget:function(){var e=this.get("group"),t=e.getParent(),n=t.addShape("Rect");return e.attr("clip",n),n}}),e.exports=i},function(e,t){function n(e){var t=1;if(e<1){for(var n=0;e<1;)t/=10,e*=10,n++;t.toString().length>20&&(t=parseFloat(t.toFixed(n)))}else for(;e>10;)t*=10,e/=10;return t}function r(e,t){var n=e.length;if(0===n)return NaN;var r=e[0];if(t=e[n-1])return e[n-1];for(var a=1;ae[n-1])return NaN;if(t20){s=e/parseInt(1/a)*(a>0?1:-1)}return s},snapMultiple:function(e,t,n){return("ceil"===n?Math.ceil(e/t):"floor"===n?Math.floor(e/t):Math.round(e/t))*t},snapTo:function(e,t){var n=r(e,t),i=a(e,t);if(isNaN(n)||isNaN(i)){if(e[0]>=t)return e[0];var o=e[e.length-1];if(o<=t)return o}return Math.abs(t-n)i.x)&&(l=!0),s.vertical(l).multiplyScaler(e*n)},getAxisVector:function(){var e=this.get("start"),t=this.get("end");return new l(t.x-e.x,t.y-e.y)},getLinePath:function(){var e=this,t=e.get("start"),n=e.get("end"),r=[];return r.push(["M",t.x,t.y]),r.push(["L",n.x,n.y]),r},getTickEnd:function(e,t){var n,r=this,a=r.get("tickLine");return t=t||a.value,n=r.getSideVector(t),{x:e.x+n.x,y:e.y+n.y}},getTickPoint:function(e){var t=this,n=t.get("start"),r=t.get("end"),a=r.x-n.x,i=r.y-n.y;return{x:n.x+a*e,y:n.y+i*e}},renderTitle:function(){var e=this,t=e.get("title"),n=e.getTickPoint(.5),r=e.get("titleOffset"),a=e.get("labelsGroup");if(a){var s=e.getMaxLabelWidth(a),c=e.get("labelOffset")||10;s+c+20l-s&&(r=-1*Math.acos((l-s)/(a+o)));else if(u.equal(c.y,0)&&t.getCount()>1){var d=Math.abs(e._getAvgLabelLength(t));(a=e.getMaxLabelWidth(t))>d&&(r=Math.atan2(1.5*o,d))}if(r){var f=e.get("factor");i.each(t.get("children"),function(e){e.rotateAtStart(r),u.equal(c.y,0)&&(f>0?e.attr("textAlign","left"):e.attr("textAlign","right"))})}}}}),e.exports=r},function(e,t,n){var r=n(59);r.ShowLabels=n(151),e.exports=r},function(e,t,n){"use strict";var r=n(5).Group,a=n(1),i=function(e){i.superclass.constructor.call(this,e)};i.CFG={zIndex:6,items:null,label:null,renderer:null,custom:!1,animate:!1,html:'
',itemTpl:'
{text}
',duration:400},a.extend(i,r),a.augment(i,{_renderUI:function(){this._drawLabels()},_drawLabels:function(){var e=this,t=e.get("items");a.each(t,function(t,n){e._addLabel(t,n)})},_addLabel:function(e,t){var n=this._getLabelCfg(e,t);return this._createText(n)},_getLabelCfg:function(e,t){var n=this.get("label")||{},r=this.get("renderer");if(!a.isObject(e)){var i=e;e={},e.text=i}return r&&(e.text=r(e.text,e,t)),a.isNull(e.text)&&(e.text=""),e.text=e.text+"",a.mix({},e,n,{x:(e.x||0)+(n.x||0),y:(e.y||0)+(n.y||0)})},_createText:function(e){var t,n=this,r=n.get("custom"),i=n.get("customDiv");if(!r)return t=this.addShape("text",{attrs:e}),t.id=e.id,t.animateType="label",t;if(!i){var o=n.get("html"),s=n.get("canvas").get("el").parentNode;i=a.createDom(o),s.style.position="relative",s.appendChild(i),n.set("customDiv",i)}var l=n._createDom(e);i.appendChild(l),n._setCustomPosition(e,l)},_setCustomPosition:function(e,t){var n=e.textAlign||"left",r=e.y,i=e.x,o=a.getWidth(t);r-=a.getHeight(t)/2,"center"===n?i-=o/2:"right"===n&&(i-=o),t.style.top=parseInt(r,10)+"px",t.style.left=parseInt(i,10)+"px"},_createDom:function(e){var t=this,n=t.get("itemTpl"),r=a.substitute(n,e);return a.createDom(r)},getLabels:function(){var e=this,t=e.get("customDiv");return t?a.toArray(t.childNodes):e.get("children")},addLabel:function(e){var t=this.get("items"),n=t.length;return t.push(e),this._addLabel(e,n)},changeLabel:function(e,t){var n,r,i=this,o=i.get("custom");if(n=a.indexOf(i.get("children"),e),r=i._getLabelCfg(t,n),e)if(o){var s=i._createDom(r);e.innerHTML=s.innerHTML,i._setCustomPosition(r,e)}else if(e.attr("text",r.text),e.attr("x")!==r.x||e.attr("y")!==r.y){var l=e.get("attrs").rotate;l&&e.rotateAtStart(-l),e.attr(r),l&&e.rotateAtStart(l)}},clear:function(){var e=this,t=e.get("customDiv");t&&(t.innerHTML=""),i.superclass.clear.call(e)},setItems:function(e){var t=this;t.clear(),t.set("items",e),t._drawLabels()},remove:function(){var e=this.get("customDiv");e&&e.parentNode.removeChild(e),i.superclass.remove.call(this)}}),e.exports=i},function(e,t,n){"use strict";var r=n(1);e.exports={addEachItem:function(e,t){var n,a=e.addGroup(t),i=r.mix({fill:"#fff",textBaseline:"middle"},t.word),o=t.wordSpaceing||6,s=r.mix({fill:"red",lineWidth:0,radius:2.5},t.marker),l=t.markerAlign||"center",u=t.items,c=0;if(u.marker&&(n=r.mix({},s,u.marker,{x:"center"===l?0:u.marker.radius,y:0}),n.x+=t.x,n.y+=t.y,n.symbol)){var d=a.addShape("marker",{type:"marker",attrs:n});c+=d.getBBox().width+o}return r.each(u.words,function(e){n=r.mix({},i,e,{x:c,y:0}),n.x+=t.x,n.y+=t.y;var s=a.addShape("text",{attrs:n});c+=o+s.getBBox().width}),a}}},function(e,t,n){"use strict";function r(e,t){return e>t?t:e}function a(e,t){return e>t?e:t}var i=n(1),o=function(e,t){this.reset(e,t)};o.CFG={start:null,end:null,background:null},i.augment(o,{init:function(){var e=this.start,t=this.end,n=this.tl={x:r(e.x,t.x),y:r(e.y,t.y)};this.tr={x:a(e.x,t.x),y:r(e.y,t.y)},this.bl={x:r(e.x,t.x),y:a(e.y,t.y)};var i=this.br={x:a(e.x,t.x),y:a(e.y,t.y)};this.cc={x:(i.x-n.x)/2+n.x,y:(i.y-n.y)/2+n.y}},reset:function(e,t){this.start=e,this.end=t,this.init()},isInRange:function(e,t){i.isObject(e)&&(t=e.y,e=e.x);var n=this.tl,r=this.br;return e>=n.x&&e<=r.x&&t>=n.y&&t<=r.y},isInVertical:function(e){i.isObject(e)&&(e=e.y);var t=this.tl,n=this.br;return e>=t.y&&e<=n.y},isInHorizontal:function(e){i.isObject(e)&&(e=e.x);var t=this.tl,n=this.br;return e>=t.x&&e<=n.x},getWidth:function(){var e=this.tl;return this.br.x-e.x},getHeight:function(){var e=this.tl;return this.br.y-e.y}}),e.exports=o},function(e,t,n){"use strict";var r=n(1),a=n(5).Group,i=function(e){i.superclass.constructor.call(this,e)};i.CFG={range:null,middleAttr:null,backgroundElement:null,minHandleElement:null,maxHandleElement:null,middleHandleElement:null,currentTarget:null,layout:"vertical",width:null,height:null,pageX:null,pageY:null,animate:!1,operable:!0},r.extend(i,a),r.augment(i,{_beforeRenderUI:function(){var e=this.get("layout"),t=this.get("backgroundElement"),n=this.get("minHandleElement"),r=this.get("maxHandleElement"),a=this.addShape("rect",{attrs:this.get("middleAttr")}),i="vertical"===e?"ns-resize":"ew-resize";this.add([t,n,r]),this.set("middleHandleElement",a),t.set("zIndex",0),a.set("zIndex",1),n.set("zIndex",2),r.set("zIndex",2),this.get("operable")&&(a.set("cursor","move"),n.set("cursor",i),r.set("cursor",i)),this.sort()},_renderUI:function(){"horizontal"===this.get("layout")?this._renderHorizontal():this._renderVertical()},_transform:function(e){var t=this.get("range"),n=t[0]/100,r=t[1]/100,a=this.get("width"),i=this.get("height"),o=this.get("minHandleElement"),s=this.get("maxHandleElement"),l=this.get("middleHandleElement");o.initTransform(),s.initTransform(),"horizontal"===e?(l.attr({x:a*n,y:0,width:(r-n)*a,height:i}),o.translate(n*a,0),s.translate(r*a,0)):(l.attr({x:0,y:i*(1-r),width:a,height:(r-n)*i}),o.translate(a/2,(1-n)*i),s.translate(a/2,(1-r)*i))},_renderHorizontal:function(){this._transform("horizontal")},_renderVertical:function(){this._transform("vertical")},_bindUI:function(){this.get("operable")&&(this.on("mousedown",r.wrapBehavior(this,"_onMouseDown")),this.on("mousemove",r.wrapBehavior(this,"_onMouseMove")),this.on("mouseleave",r.wrapBehavior(this,"_onMouseLeave")))},_isElement:function(e,t){var n=this.get(t);if(e===n)return!0;if(n.isGroup){return n.get("children").indexOf(e)>-1}return!1},_getRange:function(e,t){var n=e+t;return n=n>100?100:n,n=n<0?0:n},_updateStatus:function(e,t){var n,a="x"===e?this.get("width"):this.get("height"),i=r.ucfirst(e),o=this.get("range"),s=this.get("page"+i),l=this.get("currentTarget"),u=this.get("rangeStash"),c=this.get("layout"),d="vertical"===c?-1:1,f=t["page"+i],p=f-s,h=p/a*100*d;o[1]<=o[0]?(this._isElement(l,"minHandleElement")||this._isElement(l,"maxHandleElement"))&&(o[0]=this._getRange(h,o[0]),o[1]=this._getRange(h,o[0])):(this._isElement(l,"minHandleElement")&&(o[0]=this._getRange(h,o[0])),this._isElement(l,"maxHandleElement")&&(o[1]=this._getRange(h,o[1]))),this._isElement(l,"middleHandleElement")&&(n=u[1]-u[0],o[0]=this._getRange(h,o[0]),o[1]=o[0]+n,o[1]>100&&(o[1]=100,o[0]=o[1]-n)),this.fire("rangeChange",{range:o}),this.set("page"+i,f),this._renderUI(),this.get("canvas").draw()},_onMouseLeave:function(){this.get("canvas").get("containerDOM").style.cursor="default"},_onMouseMove:function(e){var t=e.currentTarget.get("cursor"),n=this.get("canvas").get("containerDOM");n&&(n.style.cursor=t||"default")},_onMouseDown:function(e){var t=e.currentTarget,n=e.event,r=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",t),this.set("rangeStash",[r[0],r[1]]),this._bindCanvasEvents()},_bindCanvasEvents:function(){this.onMouseMoveListener=r.addEventListener(document,"mousemove",r.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=r.addEventListener(document,"mouseup",r.wrapBehavior(this,"_onCanvasMouseUp"))},_onCanvasMouseMove:function(e){"horizontal"===this.get("layout")?this._updateStatus("x",e):this._updateStatus("y",e)},_onCanvasMouseUp:function(){this._removeDocumentEvents()},_removeDocumentEvents:function(){this.onMouseMoveListener.remove(),this.onMouseUpListener.remove()}}),e.exports=i},function(e,t){e.exports={prefix:"g",backupContext:document.createElement("canvas").getContext("2d"),debug:!1,warn:function(){}}},function(e,t,n){var r=n(1),a=n(163),i=n(164),o=n(162),s=n(65),l=n(159),u=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash"],c=function(e){this.__cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},r.simpleMix(this.__cfg,this.getDefaultCfg(),e),this.initAttrs(this.__cfg.attrs),this.initTransform(),this.initEventDispatcher(),this.init()};c.CFG={id:null,zIndex:0,canvas:null,parent:null,capture:!0,context:null,visible:!0,destroyed:!1},r.augment(c,a,l,i,o,{init:function(){this.setSilent("animable",!0);var e=this.__attrs;e&&e.rotate&&this.rotateAtStart(e.rotate)},getParent:function(){return this.get("parent")},getDefaultCfg:function(){return{}},set:function(e,t){var n="__set"+r.ucfirst(e);return this[n]&&(t=this[n](t)),this.__cfg[e]=t,this},setSilent:function(e,t){this.__cfg[e]=t},get:function(e){return this.__cfg[e]},draw:function(e){this.get("destroyed")||this.get("visible")&&(this.setContext(e),this.drawInner(e),this.restoreContext(e))},setContext:function(e){var t=this.__attrs.clip;e.save(),t&&(t.resetTransform(e),t.createPath(e),e.clip()),this.resetContext(e),this.resetTransform(e)},restoreContext:function(e){e.restore()},resetContext:function(e){var t=this.__attrs;if(!this.isGroup)for(var n in t)if(u.indexOf(n)>-1){var a=t[n];"fillStyle"===n&&(a=s.parseStyle(a,this)),"strokeStyle"===n&&(a=s.parseStyle(a,this)),"lineDash"===n&&e.setLineDash?r.isArray(a)?e.setLineDash(a):r.isString(a)&&e.setLineDash(a.split(" ")):e[n]=a}},drawInner:function(){},show:function(){return this.set("visible",!0),this},hide:function(){return this.set("visible",!1),this},remove:function(e){if(void 0===e&&(e=!0),this.get("parent")){var t=this.get("parent"),n=t.get("children");r.remove(n,this)}return e&&this.destroy(),this},destroy:function(){this.get("destroyed")||(this.__cfg={},this.__attrs=null,this.__listeners=null,this.__m=null,this.set("destroyed",!0))},__setZIndex:function(e){return this.__cfg.zIndex=e,r.notNull(this.get("parent"))&&this.get("parent").sort(),e},__setAttrs:function(e){return this.attr(e),e},clone:function(){return r.clone(this)},getBBox:function(){return{minX:0,maxX:0,minY:0,maxY:0}}}),e.exports=c},function(e,t,n){function r(e,t){if(void 0===t)return e;e=new c(e),e.multiplyA(t);var n=e.getType();return"hsl"===n?e.getHSLStyle():"rgb"===n?e.getRGBStyle():void 0}function a(e,t,n){var a=e.match(v);l.each(a,function(e){e=e.split(":");var a=r(e[1],n);t.addColorStop(e[0],a)})}function i(e,t,n){var r,i,o=p.exec(e),s=u.mod(u.degreeToRad(parseFloat(o[1])),2*Math.PI),l=o[2],c=t.getBBox();s>=0&&s<.5*Math.PI?(r={x:c.minX,y:c.minY},i={x:c.maxX,y:c.maxY}):.5*Math.PI<=s&&s1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}l.each(t,function(e,n){isNaN(e)||(t[n]=+e)}),e[n]=t}),e):void 0},parseStyle:function(e,t,n){if(l.isString(e)){if("("===e[1]||"("===e[2]){if("l"===e[0])return i(e,t,n);if("r"===e[0])return o(e,t,n);if("p"===e[0])return s(e,t)}return l.isNull(n)?e:r(e,n)}},numberToColor:function(e){var t=g[e];if(!t){for(var n=e.toString(16),r=n.length;r<6;r++)n="0"+n;t="#"+n,g[e]=t}return t}}},function(e,t,n){var r=n(63),a={Group:n(161),Shape:n(7),Rect:n(79),Circle:n(68),Ellipse:n(70),Path:n(75),Text:n(80),Line:n(73),Image:n(72),Polygon:n(76),Polyline:n(77),Arc:n(67),Fan:n(71),Cubic:n(69),Quadratic:n(78),Marker:n(74),debug:function(e){r.debug=e}};e.exports=a},function(e,t,n){var r=n(1),a=n(3).Vector2,i=n(7),o=n(8),s=n(42),l=n(19),u=function(e){u.superclass.constructor.call(this,e)};u.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,arrow:!1},r.extend(u,i),r.augment(u,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,arrow:!1}},calculateBox:function(){var e=this.__attrs,t=e.x,n=e.y,r=e.r,a=e.startAngle,i=e.endAngle,o=e.clockwise,l=e.lineWidth,u=l/2,c=s.box(t,n,r,a,i,o);return c.minX-=u,c.minY-=u,c.maxX+=u,c.maxY+=u,c},isPointInPath:function(e,t){var n=this.__attrs,r=n.x,a=n.y,i=n.r,s=n.startAngle,l=n.endAngle,u=n.clockwise,c=n.lineWidth;return!!this.hasStroke()&&o.arcline(r,a,i,s,l,u,c,e,t)},createPath:function(e){var t=this.__attrs,n=t.x,r=t.y,i=t.r,o=t.startAngle,s=t.endAngle,u=t.clockwise,c=t.lineWidth,d=t.arrow;if(e=e||self.get("context"),e.beginPath(),e.arc(n,r,i,o,s,u),d){var f={x:n+i*Math.cos(s),y:r+i*Math.sin(s)},p=new a(-i*Math.sin(s),i*Math.cos(s));u&&p.multiplyScaler(-1),l.makeArrow(e,p,f,c)}}}),e.exports=u},function(e,t,n){var r=n(1),a=n(7),i=n(8),o=function(e){o.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,r:0,lineWidth:1},r.extend(o,a),r.augment(o,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var e=this.__attrs,t=e.x,n=e.y,r=e.r,a=e.lineWidth,i=a/2+r;return{minX:t-i,minY:n-i,maxX:t+i,maxY:n+i}},isPointInPath:function(e,t){var n=this.hasFill(),r=this.hasStroke();return n&&r?this.__isPointInFill(e,t)||this.__isPointInStroke(e,t):n?this.__isPointInFill(e,t):!!r&&this.__isPointInStroke(e,t)},__isPointInFill:function(e,t){var n=this.__attrs,r=n.x,a=n.y,o=n.r;return i.circle(r,a,o,e,t)},__isPointInStroke:function(e,t){var n=this.__attrs,r=n.x,a=n.y,o=n.r,s=n.lineWidth;return i.arcline(r,a,o,0,2*Math.PI,!1,s,e,t)},createPath:function(e){var t=this.__attrs,n=t.x,r=t.y,a=t.r;e=e||self.get("context"),e.beginPath(),e.arc(n,r,a,0,2*Math.PI,!1)}}),e.exports=o},function(e,t,n){var r=n(1),a=n(7),i=n(8),o=n(19),s=n(32),l=n(3).Vector2,u=function(e){u.superclass.constructor.call(this,e)};u.ATTRS={p1:null,p2:null,p3:null,p4:null,lineWidth:1,arrow:!1},r.extend(u,a),r.augment(u,{canStroke:!0,type:"cubic",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var e,t,n=this.__attrs,a=n.p1,i=n.p2,o=n.p3,l=n.p4;if(r.isNull(a)||r.isNull(i)||r.isNull(o)||r.isNull(l))return null;var u=n.lineWidth/2,c=s.extrema(a[0],i[0],o[0],l[0]);for(e=0,t=c.length;eu?o:u,d=o>u?1:o/u,f=o>u?u/o:1,p=new l(e,t,1),h=new s;h.scale(d,f),h.translate(r,a);var m=h.getInverse();return p.applyMatrix(m),i.circle(0,0,c,p.x,p.y)},__isPointInStroke:function(e,t){var n=this.__attrs,r=n.x,a=n.y,o=n.rx,u=n.ry,c=n.lineWidth,d=o>u?o:u,f=o>u?1:o/u,p=o>u?u/o:1,h=new l(e,t,1),m=new s;m.scale(f,p),m.translate(r,a);var v=m.getInverse();return h.applyMatrix(v),i.arcline(0,0,d,0,2*Math.PI,!1,c,h.x,h.y)},createPath:function(e){var t=this.__attrs,n=t.x,r=t.y,a=t.rx,i=t.ry;e=e||self.get("context");var o=a>i?a:i,l=a>i?1:a/i,u=a>i?i/a:1,c=new s;c.scale(l,u),c.translate(n,r);var d=c.to2DObject();e.beginPath(),e.save(),e.transform(d.a,d.b,d.c,d.d,d.e,d.f),e.arc(0,0,o,0,2*Math.PI),e.restore(),e.closePath()}}),e.exports=u},function(e,t,n){var r=n(1),a=n(7),i=n(8),o=n(6),s=n(42),l=n(3),u=l.Vector2,c=function(e){c.superclass.constructor.call(this,e)};c.ATTRS={x:0,y:0,rs:0,re:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1},r.extend(c,a),r.augment(c,{canFill:!0,canStroke:!0,type:"fan",getDefaultAttrs:function(){return{clockwise:!1,lineWidth:1,rs:0,re:0}},calculateBox:function(){var e=this,t=e.__attrs,n=t.x,r=t.y,a=t.rs,i=t.re,o=t.startAngle,l=t.endAngle,u=t.clockwise,c=t.lineWidth,d=s.box(n,r,a,o,l,u),f=s.box(n,r,i,o,l,u),p=Math.min(d.minX,f.minX),h=Math.min(d.minY,f.minY),m=Math.max(d.maxX,f.maxX),v=Math.max(d.maxY,f.maxY),g=c/2;return{minX:p-g,minY:h-g,maxX:m+g,maxY:v+g}},isPointInPath:function(e,t){var n=this.hasFill(),r=this.hasStroke();return n&&r?this.__isPointInFill(e,t)||this.__isPointInStroke(e,t):n?this.__isPointInFill(e,t):!!r&&this.__isPointInStroke(e,t)},__isPointInFill:function(e,t){var n=this.__attrs,r=n.x,a=n.y,i=n.rs,l=n.re,c=n.startAngle,d=n.endAngle,f=n.clockwise,p=new u(1,0),h=new u(e-r,t-a),m=p.angleTo(h),v=s.nearAngle(m,c,d,f);if(o.equal(m,v)){var g=h.lengthSq();if(i*i<=g&&g<=l*l)return!0}return!1},__isPointInStroke:function(e,t){var n=this.__attrs,r=n.x,a=n.y,o=n.rs,s=n.re,l=n.startAngle,u=n.endAngle,c=n.clockwise,d=n.lineWidth,f={x:Math.cos(l)*o+r,y:Math.sin(l)*o+a},p={x:Math.cos(l)*s+r,y:Math.sin(l)*s+a},h={x:Math.cos(u)*o+r,y:Math.sin(u)*o+a},m={x:Math.cos(u)*s+r,y:Math.sin(u)*s+a};return!!(i.line(f.x,f.y,p.x,p.y,d,e,t)||i.line(h.x,h.y,m.x,m.y,d,e,t)||i.arcline(r,a,o,l,u,c,d,e,t)||i.arcline(r,a,s,l,u,c,d,e,t))},createPath:function(e){var t=this.__attrs,n=t.x,r=t.y,a=t.rs,i=t.re,o=t.startAngle,s=t.endAngle,l=t.clockwise,u={x:Math.cos(o)*a+n,y:Math.sin(o)*a+r},c={x:Math.cos(o)*i+n,y:Math.sin(o)*i+r},d={x:Math.cos(s)*a+n,y:Math.sin(s)*a+r};e=e||self.get("context"),e.beginPath(),e.moveTo(u.x,u.y),e.lineTo(c.x,c.y),e.arc(n,r,i,o,s,l),e.lineTo(d.x,d.y),e.arc(n,r,a,s,o,!l),e.closePath()}}),e.exports=c},function(e,t,n){var r=n(1),a=n(7),i=n(8),o=function(e){o.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,img:void 0,width:0,height:0,sx:null,sy:null,swidth:null,sheight:null},r.extend(o,a),r.augment(o,{type:"image",__afterSetAttrImg:function(e){this.__setAttrImg(e)},__afterSetAttrAll:function(e){e.img&&this.__setAttrImg(e.img)},isHitBox:function(){return!1},calculateBox:function(){var e=this.__attrs,t=e.x,n=e.y;return{minX:t,minY:n,maxX:t+e.width,maxY:n+e.height}},isPointInPath:function(e,t){var n=this.__attrs;if(this.get("toDraw")||!n.img)return!1;var r=n.x,a=n.y,o=n.width,s=n.height;return i.rect(r,a,o,s,e,t)},__setLoading:function(e){var t=this.get("canvas");return!1===e&&!0===this.get("toDraw")&&(this.__cfg.loading=!1,t.draw()),e},__setAttrImg:function(e){var t=this,n=t.__attrs;if(!r.isString(e))return e instanceof Image?(n.width||t.attr("width",e.width),n.height||t.attr("height",e.height),e):e instanceof HTMLElement&&r.isString(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase()?(n.width||t.attr("width",Number(e.getAttribute("width"))),n.height||t.attr("height",Number(e.getAttribute("height"))),e):e instanceof ImageData?(n.width||t.attr("width",e.width),n.height||t.attr("height",e.height),e):null;var a=new Image;a.onload=function(){if(t.get("destroyed"))return!1;t.attr("imgSrc",e),t.attr("img",a);var n=t.get("callback");n&&n.call(t),t.set("loading",!1)},a.src=e,t.set("loading",!0)},drawInner:function(e){return this.get("loading")?void this.set("toDraw",!0):void this.__drawImage(e)},__drawImage:function(e){var t=this.__attrs,n=t.x,a=t.y,i=t.img,o=t.width,s=t.height,l=t.sx,u=t.sy,c=t.swidth,d=t.sheight;if(this.set("toDraw",!1),i instanceof Image||i instanceof HTMLElement&&r.isString(i.nodeName)&&"CANVAS"===i.nodeName.toUpperCase()){if(r.isNull(l)||r.isNull(u)||r.isNull(c)||r.isNull(d))return void e.drawImage(i,n,a,o,s);if(r.notNull(l)&&r.notNull(u)&&r.notNull(c)&&r.notNull(d))return void e.drawImage(i,l,u,c,d,n,a,o,s)}else if(i instanceof ImageData)return void e.putImageData(i,n,a,l||0,u||0,c||o,d||s)}}),e.exports=o},function(e,t,n){var r=n(1),a=n(7),i=n(8),o=n(19),s=n(43),l=n(3),u=l.Vector2,c=function(e){c.superclass.constructor.call(this,e)};c.ATTRS={x1:0,y1:0,x2:0,y2:0,lineWidth:1,arrow:!1},r.extend(c,a),r.augment(c,{canStroke:!0,type:"line",getDefaultAttrs:function(){return{lineWidth:1,arrow:!1}},calculateBox:function(){var e=this.__attrs,t=e.x1,n=e.y1,r=e.x2,a=e.y2,i=e.lineWidth;return s.box(t,n,r,a,i)},isPointInPath:function(e,t){var n=this.__attrs,r=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.lineWidth;return!!this.hasStroke()&&i.line(r,a,o,s,l,e,t)},createPath:function(e){var t=this.__attrs,n=t.x1,r=t.y1,a=t.x2,i=t.y2,s=t.arrow,l=t.lineWidth;if(e=e||self.get("context"),e.beginPath(),e.moveTo(n,r),s){var c=new u(a-n,i-r),d=o.getEndPoint(c,new u(a,i),l);e.lineTo(d.x,d.y),o.makeArrow(e,c,d,l)}else e.lineTo(a,i)},getPoint:function(e){var t=this.__attrs;return{x:s.at(t.x1,t.x2,e),y:s.at(t.y1,t.y2,e)}}}),e.exports=c},function(e,t,n){var r=n(1),a=n(7),i=n(8),o=function(e){o.superclass.constructor.call(this,e)};o.Symbols={circle:function(e,t,n,r){r.arc(e,t,n,0,2*Math.PI,!1)},square:function(e,t,n,r){r.moveTo(e-n,t-n),r.lineTo(e+n,t-n),r.lineTo(e+n,t+n),r.lineTo(e-n,t+n),r.closePath()},diamond:function(e,t,n,r){r.moveTo(e-n,t),r.lineTo(e,t-n),r.lineTo(e+n,t),r.lineTo(e,t+n),r.closePath()},triangle:function(e,t,n,r){var a=n/.966,i=n;r.moveTo(e,t-n),r.lineTo(e+a,t+i),r.lineTo(e-a,t+i),r.closePath()},"triangle-down":function(e,t,n,r){var a=n/.966,i=n;r.moveTo(e,t+n),r.lineTo(e+a,t-i),r.lineTo(e-a,t-i),r.closePath()}},o.ATTRS={path:null,lineWidth:1},r.extend(o,a),r.augment(o,{type:"marker",canFill:!0,canStroke:!0,getDefaultAttrs:function(){return{x:0,y:0,lineWidth:1}},calculateBox:function(){var e=this.__attrs,t=e.x,n=e.y,r=e.radius,a=e.lineWidth,i=a/2+r;return{minX:t-i,minY:n-i,maxX:t+i,maxY:n+i}},isPointInPath:function(e,t){var n=this.__attrs,r=n.x,a=n.y,o=n.radius;return i.circle(r,a,o,e,t)},createPath:function(e){var t,n=this.__attrs,a=n.x,i=n.y,s=n.radius,l=n.symbol||"circle";t=r.isFunction(l)?l:o.Symbols[l],e.beginPath(),t(a,i,s,e)}}),e.exports=o},function(e,t,n){var r=n(1),a=n(7),i=n(167),o=n(65),s=n(19),l=n(49),u=n(32),c=n(3),d=c.Vector2,f=function(e){f.superclass.constructor.call(this,e)};f.ATTRS={path:null,lineWidth:1,curve:null,tCache:null},r.extend(f,a),r.augment(f,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1}},__afterSetAttrPath:function(e){var t=this;if(r.isNull(e))return t.setSilent("segments",null),void t.setSilent("box",void 0);var n,a=o.parsePath(e),s=[];if(r.isArray(a)&&0!==a.length&&("M"===a[0][0]||"m"===a[0][0])){for(var l=a.length,u=0;us&&(s=t.maxX),t.minYu&&(u=t.maxY))}),{minX:o,minY:l,maxX:s,maxY:u}},isPointInPath:function(e,t){var n=this,r=n.hasFill(),a=n.hasStroke();return r&&a?n.__isPointInFill(e,t)||n.__isPointInStroke(e,t):r?n.__isPointInFill(e,t):!!a&&n.__isPointInStroke(e,t)},__isPointInFill:function(e,t){var n=this,r=n.get("context");if(r)return n.createPath(),r.isPointInPath(e,t)},__isPointInStroke:function(e,t){var n=this,r=n.get("segments"),a=n.__attrs,i=a.lineWidth;i+=a.lineAppendWidth||0;for(var o=0,s=r.length;o=t[0]&&e<=t[1]&&(n=(e-t[0])/(t[1]-t[0]),a=r)}),i=t[a],r.isNull(i)||r.isNull(a)?null:(o=i.length,s=t[a+1],{x:u.at(i[o-2],s[1],s[3],s[5],1-n),y:u.at(i[o-1],s[2],s[4],s[6],1-n)})):t?{x:t[0][1],y:t[0][2]}:null},createPath:function(e){var t=this,n=t.__attrs,a=t.get("segments"),i=n.lineWidth,o=n.arrow;if(r.isArray(a)){e=e||t.get("context"),e.beginPath();for(var l=0,u=a.length;ls&&(s=t),nl&&(l=n)});var u=a/2;return{minX:i-u,minY:o-u,maxX:s+u,maxY:l+u}},isPointInPath:function(e,t){var n=this,r=n.hasFill(),a=n.hasStroke();return r&&a?n.__isPointInFill(e,t)||n.__isPointInStroke(e,t):r?n.__isPointInFill(e,t):!!a&&n.__isPointInStroke(e,t)},__isPointInFill:function(e,t){var n=this,r=n.get("context");return n.createPath(),r.isPointInPath(e,t)},__isPointInStroke:function(e,t){var n=this,r=n.__attrs,a=r.points;if(a.length<2)return!1;var o=r.lineWidth,s=a.slice(0);return a.length>=3&&s.push(a[0]),i.polyline(s,o,e,t)},createPath:function(e){var t=this,n=t.__attrs,a=n.points;a.length<2||(e=e||t.get("context"),e.beginPath(),r.each(a,function(t,n){0===n?e.moveTo(t[0],t[1]):e.lineTo(t[0],t[1])}),e.closePath())}}),e.exports=o},function(e,t,n){var r=n(1),a=n(7),i=n(8),o=n(19),s=n(43),l=n(3),u=l.Vector2,c=function(e){c.superclass.constructor.call(this,e)};c.ATTRS={points:null,lineWidth:1,arrow:!1,tCache:null},r.extend(c,a),r.augment(c,{canStroke:!0,type:"polyline",tCache:null,getDefaultAttrs:function(){return{lineWidth:1,arrow:!1}},calculateBox:function(){var e=this,t=e.__attrs,n=t.lineWidth,a=t.points;if(!a||0===a.length)return null;var i=1/0,o=1/0,s=-1/0,l=-1/0;r.each(a,function(e){var t=e[0],n=e[1];ts&&(s=t),nl&&(l=n)});var u=n/2;return{minX:i-u,minY:o-u,maxX:s+u,maxY:l+u}},__setTcache:function(){var e,t,n=this,a=n.__attrs,i=a.points,o=0,l=0,u=[];i&&0!==i.length&&(r.each(i,function(e,t){i[t+1]&&(o+=s.len(e[0],e[1],i[t+1][0],i[t+1][1]))}),o<=0||(r.each(i,function(n,r){i[r+1]&&(e=[],e[0]=l/o,t=s.len(n[0],n[1],i[r+1][0],i[r+1][1]),l+=t,e[1]=l/o,u.push(e))}),this.tCache=u))},isPointInPath:function(e,t){var n=this,r=n.__attrs;if(n.hasStroke()){var a=r.points;if(a.length<2)return!1;var o=r.lineWidth;return i.polyline(a,o,e,t)}return!1},createPath:function(e){var t,n,r=this,a=r.__attrs,i=a.points,s=a.arrow,l=a.lineWidth;if(!(i.length<2)){for(e=e||r.get("context"),e.beginPath(),e.moveTo(i[0][0],i[0][1]),n=1,t=i.length-1;n=r[0]&&e<=r[1]&&(t=(e-r[0])/(r[1]-r[0]),n=a)}),{x:s.at(i[n][0],i[n+1][0],t),y:s.at(i[n][1],i[n+1][1],t)}}}),e.exports=c},function(e,t,n){var r=n(1),a=n(7),i=n(8),o=n(19),s=n(44),l=n(3).Vector2,u=function(e){u.superclass.constructor.call(this,e)};u.ATTRS={p1:null,p2:null,p3:null,lineWidth:1,arrow:!1},r.extend(u,a),r.augment(u,{canStroke:!0,type:"quadratic",getDefaultAttrs:function(){return{lineWidth:1,arrow:!1}},calculateBox:function(){var e,t,n=this,a=n.__attrs,i=a.p1,o=a.p2,l=a.p3;if(r.isNull(i)||r.isNull(o)||r.isNull(l))return null;var u=a.lineWidth/2,c=s.extrema(i[0],o[0],l[0]);for(e=0,t=c.length;e1){return n*t+this.__getSpaceingY()*(t-1)}return n},__afterSetAttrAll:function(e){var t=this;("fontSize"in e||"fontWeight"in e||"fontStyle"in e||"fontVariant"in e||"fontFamily"in e)&&t.__assembleFont(),"text"in e&&t.__afterSetAttrText(e.text)},isHitBox:function(){return!1},calculateBox:function(){var e=this,t=e.__attrs,n=t.x,r=t.y,a=e.measureText();if(!a)return{minX:n,minY:r,maxX:n,maxY:r};var i=e.__getTextHeight(),o=t.textAlign,s=t.textBaseline,l=t.lineWidth,u={x:n,y:r-i};o&&("end"===o||"right"===o?u.x-=a:"center"===o&&(u.x-=a/2)),s&&("top"===s?u.y+=i:"middle"===s&&(u.y+=i/2)),this.set("startPoint",u);var c=l/2;return{minX:u.x-c,minY:u.y-c,maxX:u.x+a+c,maxY:u.y+i+c}},__getSpaceingY:function(){var e=this.__attrs,t=e.lineHeight,n=1*e.fontSize;return t?t-n:.14*n},isPointInPath:function(e,t){var n=this,r=n.getBBox();if(n.hasFill()||n.hasStroke())return i.box(r.minX,r.maxX,r.minY,r.maxY,e,t)},drawInner:function(e){var t=this,n=t.__attrs,a=n.text;if(a){var i,o=n.textArr,s=1*n.fontSize,l=t.__getSpaceingY(),u=n.x,c=n.y,d=n.textBaseline;if(o){var f=t.getBBox();i=f.maxY-f.minY}var p;if(e.beginPath(),t.hasFill()){var h=n.fillOpacity;r.isNull(h)||1===h||(e.globalAlpha=h),o?r.each(o,function(t,n){p=c+n*(l+s)-i+s,"middle"===d&&(p+=i-s-(i-s)/2),"top"===d&&(p+=i-s),e.fillText(t,u,p)}):e.fillText(a,u,c)}t.hasStroke()&&(o?r.each(o,function(t,n){p=c+n*(l+s)-i+s,"middle"===d&&(p+=i-s-(i-s)/2),"top"===d&&(p+=i-s),e.strokeText(t,u,p)}):e.strokeText(a,u,c))}},measureText:function(){var e,t=this,n=t.__attrs,a=n.text,i=n.font,s=n.textArr,l=0;if(!r.isNull(a)){var u=o.backupContext;return u.save(),u.font=i,s?r.each(s,function(t){e=u.measureText(t).width,l0&&e.rowIndex===e.rows-1&&n.drawFacetTitle("col",e,t),e.rows>0&&e.colIndex===e.cols-1&&n.drawFacetTitle("row",e,t)}),a&&(a.cols>1&&n.drawDimTitle("col",a.xDim,t),a.rows>1&&n.drawDimTitle("row",a.yDim,t))}},getRegion:function(e,t,n,r){var a=this,i=a.plotRange,o=1===e&&1===t?0:a.margin,s=i.bl,l=i.tr,u=(l.x-s.x)/t,c=(l.y-s.y)/e,d={x:s.x+u*n,y:s.y+c*r-o};return{start:d,end:{x:d.x+u-o,y:d.y+c+o}}},generateFacets:function(e){var t=this,n=t.dims,i=[],s=1,l=1,u=n[0],c=n[1],d=[""],f=[""];u&&(d=t.getDimValues(u,e),l=d.length),c&&(f=t.getDimValues(c,e),s=f.length);var p=0;return r.each(d,function(n,h){r.each(f,function(r,m){var v=[{dim:u,value:n,values:d},{dim:c,value:r,values:f}],g=t.getFilter(v),y=a.filter(e,g),_=new o({type:t.type,xValue:n,yValue:r,xDim:u,yDim:c,colIndex:h,rowIndex:m,cols:l,rows:s,frame:y,region:t.getRegion(s,l,h,m),index:p++});i.push(_)})}),i}}),e.exports=s},function(e,t,n){var r=n(20);n(87),e.exports=r},function(e,t,n){var r=n(1),a=n(88),i=n(20);r.mix(i,{values:function(e,t){var n=[],r={},i=e.colArray(t);i=a.formatArray(i);for(var o=0,s=i.length;o=0;i--)a+=e[i].width+2*t;n.x=t+.5*n.width+a})},reset:function(){this._init()}}),e.exports=a},function(e,t,n){var r=n(1),a=n(38);a.Linear=n(37),a.linear=function(e){return new a.Linear(e)},a.Cat=n(92),a.cat=function(e){return new a.Cat(e)},a.Pow=n(224),a.pow=function(e){return new a.Pow(e)},a.Log=n(223),a.log=function(e){return new a.Log(e)},a.Identity=n(222),a.I=function(e){return new a.Identity(e)},a.Time=n(226),a.time=function(e){return new a.Time(e)},a.TimeCat=n(225),a.timeCat=function(e){return new a.TimeCat(e)},a.I_TYPE="identity",a.isCategory=function(e){if("cat"===e)return!0;var t=r.ucfirst(e);return!(!a[t]||!a[t].superclass||"cat"!==a[t].superclass.type)},e.exports=a},function(e,t,n){"use strict";var r=n(38),a=n(1),i=n(30),o=function(e){o.superclass.constructor.call(this,e)};a.extend(o,r),a.augment(o,{type:"cat",tickCount:null,isCategory:!0,init:function(){var e=this,t=e.values,n=e.tickCount;if(a.each(t,function(e,n){t[n]=e.toString()}),!e.ticks){var r=t;if(n){r=i.Category.caculate({maxCount:n,data:t}).ticks}this.ticks=r}},getText:function(e){return this.values.indexOf(e)>-1?e=e:a.isNumber(e)&&(e=this.values[Math.round(e)]),o.superclass.getText.call(this,e)},translate:function(e){var t=this.values.indexOf(e);return-1===t&&a.isNumber(e)?t=e:-1===t&&(t=NaN),t},scale:function(e){var t,n=this.rangeMin(),r=this.rangeMax();return(a.isString(e)||-1!==this.values.indexOf(e))&&(e=this.translate(e)),t=this.values.length>1?e/(this.values.length-1):e,n+t*(r-n)},invert:function(e){if(a.isString(e))return e;var t=this.rangeMin(),n=this.rangeMax();en&&(e=n);var r=(e-t)/(n-t),i=Math.round(r*(this.values.length-1))%this.values.length;return i=i||0,this.values[i]}}),e.exports=o},function(e,t,n){var r=n(1);e.exports={toTimeStamp:function(e){return r.isString(e)&&(e=e.indexOf("T")>0?new Date(e).getTime():new Date(e.replace(/-/gi,"/")).getTime()),r.isDate(e)&&(e=e.getTime()),e}}},function(e,t,n){"use strict";var r=n(1),a={},i={defaultShapeType:null,getShape:function(e){var t=this,n=t[e]||t[t.defaultShapeType]||r.mix({},a.ShapeBase,{getActiveCfg:t.getActiveCfg,getSelectedCfg:t.getSelectedCfg});return n._coord=t._coord,n},getShapePoints:function(e,t){return this.getShape(e).getShapePoints(t)},drawShape:function(e,t,n){return this.getShape(e).drawShape(t,n)}},o={_coord:null,drawShape:function(){},getShapePoints:function(){}};a.registGeom=function(e,t){var n=r.ucfirst(e),o=r.mix({},i,t);return a[n]=o,o.className=n,o},a.registShape=function(e,t,n){var i=r.ucfirst(e),o=a[i],s=o.getShape(),l=r.mix({},s,n);return o[t]=l,l},a.getShape=function(e){var t=this;return e=e||"point",e=r.ucfirst(e),t[e]||a.ShapeBase},a.GeomShape=i,a.ShapeBase=o,e.exports=a},function(e,t,n){var r=n(1),a=n(2),i=n(96),o="..x",s="..y",l=function(e){l.superclass.constructor.call(this,e)};r.extend(l,i),r.augment(l,{type:"weight",detachment:!1,PRECISION:.001,_getFromWeightField:function(){return this.getDims()[4]},_getToWeightField:function(){return this.getDims()[5]},initDims:function(e){e.unshift(s),e.unshift(o),this.fromWeightField=this._getFromWeightField(),this.toWeightField=this._getToWeightField()?this._getToWeightField():this.fromWeightField},execFrame:function(e){var t,n,i=this,l=i._getFromField(),u=i._getToField(),c=i.detachment,d=c?"inputStart":"start",f=c?"outputStart":"start",p=[];return e.each(function(e){var a=e[l],c=e[u];if(r.isArray(a)&&r.isArray(c))t=e[i.fromWeightField],n=e[i.toWeightField],e[o]=[a[0],a[0]+t,c[0],c[0]+n],e[s]=[a[1],a[1],c[1],c[1]],p.push(e);else{var h=i._findObj(a),m=i._findObj(c);if(h&&m){var v=h[d]?h[d]:h.x-.5*h.width,g=m[f]?m[f]:m.x-.5*m.width;t=e[i.fromWeightField]*h.width/h.value,n=e[i.toWeightField]*m.width/m.value;var y=v+t,_=g+n;y-(h.x+.5*h.width)a.levels&&(a.levels=n+1))})},getNodeValue:function(e){return e[this.getValueField()]},getNodeRange:function(e,t,n){var r,a=this,i=e[s],o=a.levels,l=t.indexOf(e),u=e.parent,c=0,d=1,f=0;if(u?(r=a.getNodeValue(u),d=n.end.x-n.start.x,f=n.start.x):r=a.getTotalValue(t),l>0){var p=t.slice(0,l);c=a.getTotalValue(p)}return{start:{x:c/r*d+f,y:i/o},end:{x:(c+a.getNodeValue(e))/r*d+f,y:(i+1)/o}}},getTotalValue:function(e){var t=this,n=t.getValueField(),a=0;return r.each(e,function(e){a+=e[n]}),a},getStatObject:function(e,t){var n=r.mix({},e);return n["..x"]=(t.end.x+t.start.x)/2,n["..y"]=(t.end.y+t.start.y)/2,n},_extractData:function(e,t,n){var a=this,i=a.getChildrenField();r.each(e,function(r){var o=a.getNodeRange(r,e,n),s=a.getStatObject(r,o);t.push(s),r[i]&&a._extractData(r[i],t,o)})},execFrame:function(e){var t=this,n=e.toJSON(),r=[];t._traverseNodes(n),t._extractData(n,r,0);var e=new i(r);return e}}),e.exports=l},function(e,t,n){"use strict";var r=n(1),a=n(39),i=n(2),o=function(e){o.superclass.constructor.call(this,e)};r.extend(o,a),r.augment(o,{fractions:10,execFrame:function(e){var t=this,n=e.toJSON();r.each(n,function(e){t.toBin(e)});var a=new i(n);return t.execQuantile(a)},getSplitArray:function(){for(var e=this,t=e.fractions,n=[],r=1/t,a=0;a<=1;a+=r)n.push(a);return n},execQuantile:function(e){var t=this,n=[],a=t.getDims(),o=a[a.length-1],s=a.slice(0,a.length-1),l=i.group(e,s),u=t.getSplitArray();return r.each(l,function(e){var t=e.rowObject(0);t[o]=i.quantile(e,o,u),n.push(t)}),new i(n)}}),e.exports=o},function(e,t,n){"use strict";var r=n(29),a=n(1),i=n(2),o=function(e){o.superclass.constructor.call(this,e)};a.extend(o,r),a.augment(o,{type:"density",bandWidth:.01,colRange:{},initDims:function(e){e.push("..density")},execFrame:function(e){return e},getWindowWidth:function(e,t){return(i.max(e,t)-i.min(e,t))*this.bandWidth},getCoordinate:function(e,t,n){for(var r=this,a=r.getDimRange(e,t),i=a.max,o=a.min,s=[],l=o;l<=i;l+=n)s.push(l);return s},getDimRange:function(e,t){var n=this,r=n.colRange[t];if(!r){var a=i.range(e,t);r={min:a[0],max:a[1]}}return r},setRange:function(e,t){this.colRange[e]=t}}),e.exports=o},function(e,t,n){"use strict";var r=n(1),a=n(2);e.exports={exec:function(e){var t=this;t.preExecute(e),this.stat&&(e=this.stat.exec(e));var n=[],i=a.merge.apply(null,e),o=t.getGroupCondition(),s=a.groupToMap(i,o);return r.each(e,function(e){var r;r=t.innerCompare?t.execFrame(e):t.execFrame(e,s),n.push(r)}),n},execFrame:function(e,t){var n=this,i=n.getGroupCondition(),o=a.groupToMap(e,i),s=[],l=n.getStatDims()[0];return r.each(o,function(r,a){var i=t?t[a]:e,o=n.transform(r,l,i);s.push(o)}),a.merge.apply(null,s)}}},function(e,t,n){"use strict";function r(e,t){e.sort(function(e,n){return e[t]-n[t]})}function a(e,t){var n=0;return i.each(e,function(e){n+=e[t]}),n}var i=n(1),o=function(e){return e},s=function(e){i.mix(this,e),this.rect=this.rect||{x:0,y:0,dx:1,dy:1},this.init()};i.augment(s,{nodes:null,rect:null,valueField:"value",childrenField:"children",init:function(){var e=this,t=e.nodes,n=e.rect,o=e.valueField;r(t,o),i.each(t,function(t){e._traverse(t)});var s=a(t,o);e.processNodes(t,n,s)},_traverse:function(e,t){var n=this;t=t||0,e.depth=t;var a=n.childrenField;e.parent||(e.parent=null);var o=e[a];i.isArray(o)&&(r(o,n.valueField),i.each(o,function(r){r.parent=e,n._traverse(r,t+1)}))},getNodes:function(){return this.nodes},changeNodes:function(e){return this.nodes=e,this.init(),this},processNodes:function(){},pad:function(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}},position:function(e,t,n,r){var a,i=-1,s=e.length,l=n.x,u=n.y,c=t?o(e.area/t):0;if(t===n.dx){for((r||c>n.dy)&&(c=n.dy);++in.dx)&&(c=n.dx);++i=1?e:-1*(Math.sqrt(1-(e/=1)*e)-1)},easeOutCirc:function(e){return 1*Math.sqrt(1-(e=e/1-1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1==(e/=1)?1:(n||(n=.3),r=1?1:n,o=p(n),t=r.getFrame(o,d,f,h,s),t.attrs&&s.attr(t.attrs),t.matrix&&s.setMatrix(t.matrix),this.ratio=n,this.currentFrame=t,this.updateStatus(),s},updateStatus:function(){var e=this.ratio,t=this.callBack,n=this.destroyTarget,r=this.target,a=this.repeat;if(e>=1)if(a){var i=this.startTime,o=this.endTime,s=this.duration;this.startTime=i+s,this.endTime=o+s,this.reset()}else this.needsDestroy=!0,t&&t.call(r),n&&!r.get("destroyed")&&r.remove(!0)},reset:function(){var e=this.target,t=this.startKeyFrame;t.attrs&&e.attr(t.attrs),t.matrix&&e.setMatrix(t.matrix),this.ratio=0,this.needsDestroy=!1},destroy:function(){var e=this.target,t=this.endKeyFrame;e&&!e.get("destroyed")&&(t.attrs&&e.attr(t.attrs),t.matrix&&e.setMatrix(t.matrix)),this.destroyed=!0}}),e.exports=o},function(e,t,n){"use strict";var r=n(1),a=["color","shape","size","opacity"];e.exports={getShapeData:function(e){var t={},n=e.toJSON(),i=n[0],o=e.colArray("_origin");return r.each(a,function(e){i.hasOwnProperty(e)&&(t[e]=i[e])}),t._origin=o,t}}},function(e,t,n){"use strict";var r=n(1);e.exports={splitData:function(e){if(!e.length)return[];var t,n=[],a=[],i=this.getYDim();return r.each(e,function(e){t=e._origin?e._origin[i]:e[i],r.isArray(t)&&r.isNull(t[0])||r.isNull(t)?(n.push(a),a=[]):a.push(e)}),n.push(a),n}}},function(e,t,n){"use strict";function r(e){r.superclass.constructor.call(this,e)}var a=n(1),i=n(16),o=n(106),s=n(105);a.extend(r,i),a.mixin(r,[o,s]),r.ATTRS={type:"path",shapeType:"line"},a.augment(r,{drawFrame:function(e,t){var n,r,i,o=this,s=e.toJSON(),l=this.splitData(s),u=this.get("container"),c=this.get("shapeObj"),d=s[0],f=this.getDrawCfg(d),p=d.points.length;d.index=t,f=this.getDrawCfg(d),f.origin=s;var h=o.get("adjusts"),m=h&&-1!==a.indexOf(h,"Stack"),v=o.getShapeData(e);o.get("shapeDatas").push(v),a.each(l,function(e,t){f.splitedIndex=t;for(var a=0;ae.x?e.x:n,r=re.y?e.y:a,i=i=Math.PI?1:0;return 0===r?[["M",s.x,s.y],["L",l.x,l.y],["A",a,a,0,d,1,c.x,c.y],["L",u.x,u.y],["Z"]]:[["M",s.x,s.y],["L",l.x,l.y],["A",a,a,0,d,1,c.x,c.y],["L",u.x,u.y],["A",r,r,0,d,0,s.x,s.y],["Z"]]}function s(e,t,n,r){var a={};return e.delay&&(r.delay=b.isFunction(e.delay)?e.delay(t,n):e.delay),a.easing=b.isFunction(e.easing)?e.easing(t,n):e.easing,a.duration=b.isFunction(e.duration)?e.duration(t,n):e.duration,a}function l(e,t){var n,r,a=e.getBBox(),i=e.get("origin").points,o=(a.minX+a.maxX)/2,l=e.id||e.get("id"),u=e.get("origin")&&e.get("origin").index||0;n=i[0].y-i[1].y<=0?a.maxY:a.minY,r=new M(o,n,1),e.apply(r),e.transform([["t",-r.x,-r.y],["s",1,.01],["t",r.x,r.y]]);var c={transform:[["t",-r.x,-r.y],["s",1,100],["t",r.x,r.y]]},d=s(t,u,l,c);e.animate(c,d.duration,d.easing)}function u(e,t){var n,r,a=e.getBBox(),i=e.get("origin").points,o=(a.minY+a.maxY)/2,l=e.id||e.get("id"),u=e.get("origin")&&e.get("origin").index||0;n=i[0].y-i[1].y>0?a.maxX:a.minX,r=new M(n,o,1),e.apply(r),e.transform([["t",-r.x,-r.y],["s",.01,1],["t",r.x,r.y]]);var c={transform:[["t",-r.x,-r.y],["s",100,1],["t",r.x,r.y]]},d=s(t,u,l,c);e.animate(c,d.duration,d.easing)}function c(e,t){var n={lineWidth:0,destroy:!0},r=e.id||e.get("id"),a=e.get("index")||e.get("origin")&&e.get("origin").index||0,i=s(t,a,r,n);e.animate(n,i.duration,i.easing)}function d(e,t){var n=e.getBBox(),r=(n.minX+n.maxX)/2,a=(n.minY+n.maxY)/2,i=new M(r,a,1),o=e.id||e.get("id"),l=e.get("origin")&&e.get("origin").index||0;e.apply(i),e.transform([["t",-i.x,-i.y],["s",.01,.01],["t",i.x,i.y]]);var u={transform:[["t",-i.x,-i.y],["s",100,100],["t",i.x,i.y]]},c=s(t,l,o,u);e.animate(u,c.duration,c.easing)}function f(e,t){var n=e.getBBox(),r=(n.minX+n.maxX)/2,a=(n.minY+n.maxY)/2,i=new M(r,a,1),o=e.id||e.get("id"),l=e.get("index")||e.get("origin")&&e.get("origin").index||0;e.apply(i);var u={transform:[["t",-i.x,-i.y],["s",.1,.1],["t",i.x,i.y]],destroy:!0},c=s(t,l,o,u);e.animate(u,c.duration,c.easing)}function p(e,t){if("path"===e.get("type")){var n=e.id||e.get("id"),r=e.get("origin")&&e.get("origin").index||0,a=b.pathToAbsolute(e.attr("path"));e.attr("path",[a[0]]);var i={path:a},o=s(t,r,n,i);e.animate(i,o.duration,o.easing)}}function h(e,t){if("path"===e.get("type")){var n=e.id||e.get("id"),r=e.get("index")||e.get("origin")&&e.get("origin").index||0,a=b.pathToAbsolute(e.attr("path")),i={path:[a[0]],destroy:!0},o=s(t,r,n,i);e.animate(i,o.duration,o.easing)}}function m(e,t,n,a,i){var o,l=r(n,!0),u=e.get("canvas"),c=e.id||e.get("id"),d=e.get("origin")&&e.get("origin").index||0;a?(l.attr("startAngle",a),l.attr("endAngle",a),o={endAngle:i}):o=l.endState,l.set("canvas",u),e.attr("clip",l);var f=s(t,d,c,o);l.animate(o,f.duration,f.easing,function(){e&&!e.get("destroyed")&&e.attr("clip",null)&&l.destroy()})}function v(e,t){var n=e.id||e.get("id"),r=e.get("origin")&&e.get("origin").index||0,a=b.isNull(e._getAttr("fillOpacity"))?1:e._getAttr("fillOpacity"),i=b.isNull(e._getAttr("strokeOpacity"))?1:e._getAttr("strokeOpacity");e.attr("fillOpacity",0),e.attr("strokeOpacity",0);var o={fillOpacity:a,strokeOpacity:i},l=s(t,r,n,o);e.animate(o,l.duration,l.easing)}function g(e,t){var n=e.id||e.get("id"),r=e.get("index")||e.get("origin")&&e.get("origin").index||0,a=e._getAttr("strokeOpacity")||0,i=e._getAttr("fillOpacity")||0,o={onUpdate:function(e,t){e.attrs.strokeOpacity=a*(1-t),e.attrs.fillOpacity=i*(1-t)}},l=s(t,r,n,o);e.animate(o,l.duration,l.easing,function(){e.remove(!0)})}function y(e,t,n){var r=i(e,n),a=r.endAngle;m(e,t,n,r.startAngle,a)}function _(e,t,n,r){var a=i(e,r),l=i(t,r),u=a.endAngle,c=a.startAngle,d=l.endAngle,f=l.startAngle,p=r.getRadius(),h=r.get("inner"),m=r.getCenter(),v=e.id||e.get("id"),g=void 0===e.index?e.get("origin")&&e.get("origin").index:e.index;t.__attrs.path=e.attrs.path;var y={onUpdate:function(e,t){var n={x:m.x,y:m.y,rs:p*h,re:p,startAngle:c+(f-c)*t,endAngle:u+(d-u)*t};e.attrs.path=o(n)}},_=s(n,g,v,y);t.animate(y,_.duration,_.easing)}var b=n(1),x=n(5),M=x.Matrix.Vector3,w=x.G,k={line:{appear:function(){return k.animation.appear.clipIn},enter:function(){return k.animation.enter.clipIn},leave:function(){return k.animation.leave.lineWidthOut},cfg:{appear:{duration:900,easing:"easeInOutQuart"}}},path:{appear:function(){return k.animation.appear.clipIn},enter:function(){return k.animation.enter.clipIn},leave:function(){return k.animation.leave.lineWidthOut},cfg:{appear:{duration:900,easing:"easeInOutQuart"}}},area:{appear:function(){return k.animation.appear.clipIn},enter:function(){return k.animation.enter.fadeIn},leave:function(){return k.animation.leave.fadeOut},cfg:{appear:{duration:900,easing:"easeInOutQuart"},enter:{easing:"easeInQuart"},leave:{easing:"easeOutQuart",duration:600}}},polygon:{appear:function(){return k.animation.appear.zoomIn},enter:function(){return k.animation.enter.zoomIn},leave:function(){return k.animation.leave.zoomOut}},edge:{appear:function(){return k.animation.appear.pathIn},enter:function(){return k.animation.enter.pathIn},leave:function(){return k.animation.leave.pathOut}},interval:{appear:function(e){var t=k.animation.appear.pathIn;return e.isRect?t=e.isTransposed?k.animation.appear.scaleInX:k.animation.appear.scaleInY:(e.isTransposed&&e.isPolar||"theta"===e.type)&&(t=k.animation.appear.fanIn),t},enter:function(e){return e.isRect||e.isTransposed||"theta"===e.type?k.animation.enter.fadeIn:k.animation.enter.pathIn},leave:function(e){return e.isRect||e.isTransposed||"theta"===e.type?k.animation.leave.fadeOut:k.animation.leave.pathOut},update:function(e){if("theta"===e.type)return k.animation.update.fanUpdate},cfg:{appear:{duration:450},leave:{easing:"easeOutQuart"},enter:{easing:"easeInQuart"}}},point:{appear:function(){return k.animation.appear.zoomIn},enter:function(){return k.animation.enter.zoomIn},leave:function(){return k.animation.leave.zoomOut}},schema:null,contour:null,heatmap:null,label:{appear:function(){return k.animation.appear.fadeIn},enter:function(){return k.animation.enter.fadeIn},leave:function(){return k.animation.leave.fadeOut},cfg:{appear:{duration:900}}},axisLine:{},gridLine:{},labelLine:{appear:function(){return k.animation.appear.pathIn},enter:function(){return k.animation.enter.pathIn},leave:function(){return k.animation.leave.pathOut}}};k.animation={enter:{clipIn:m,zoomIn:d,pathIn:p,scaleInY:l,scaleInX:u,fanIn:y,fadeIn:v},leave:{lineWidthOut:c,zoomOut:f,pathOut:h,fadeOut:g},appear:{clipIn:m,zoomIn:d,pathIn:p,scaleInY:l,scaleInX:u,fanIn:y,fadeIn:v},update:{fanUpdate:_}},k.defaultCfg={update:{duration:600,easing:"easeInOutQuart"},enter:{duration:610,easing:"easeInOutQuart"},leave:{duration:300,easing:"easeInQuart"},appear:{duration:450,easing:"easeOutQuart"}},k.getAnimation=function(e,t,n){var r=this[e];if(r){var a=r[n];if(b.isFunction(a))return a(t)}return!1},k.getAnimateCfg=function(e,t){var n=this.defaultCfg[t];return b.simpleMix({},n,this[e]&&this[e].cfg&&this[e].cfg[t])},k.registAnimation=function(e,t,n){this.animation[e]||(this.animation[e]={}),this.animation[e][t]=n},e.exports=k},function(e,t,n){"use strict";function r(e,t){if(_.isArray(e)&&!1!==t.get("animate")){var n=t.get("children");_.each(n,function(t){t.isGroup?r(e,t):t.isShape&&e.push(t)})}}function a(e,t){var n,r,a,i,o=e.length,s=t.length,l=s>o?t:e,u={attrs1:{},attrs2:{}},c=!1;return _.each(l,function(o,s){n=e[s],r=t[s],_.isObject(n)||_.isObject(r)||"path"===s&&(n=_.parsePathString(n),r=_.parsePathString(r),a=_.path2string(n),i=_.path2string(r),a===i||-1!==a.indexOf("NaN")||-1!==i.indexOf("NaN"))||_.isArray(n)&&_.isArray(r)&&_.equalsArray(n,r)||n===r||k[s]||(u.attrs1[s]=n,u.attrs2[s]=r,c=!0)}),!!c&&u}function i(e,t){for(var n=0;n1500?void n.draw():void(s?_.each(k,function(s){if(!s.isStash&&s.realShape&&s.realShape.isTem)return void s.realShape.remove(!0);if(s.isTem&&!s.get("destroyed")&&s.remove(!0),!(m=s.id))return void(n&&!n.get("destroyed")&&n.draw());if(s.isStash?(u=s,d=i(m,t)):(u=i(m,e),d=s),u&&d&&!d.get("destroyed")){if(!f(u,d))return;if(M=h(u.animateType,"update",u),g=p(u.animateType,r,"update",M.animation),_.isFunction(g))g=g(u,d,M,r);else{if(y=d.getMatrix(),v=a(u.attrs,o(d)),x=w.equal(u.matrix,y),!v&&x)return;v&&x?(d.attr(v.attrs1),b=v.attrs2):v||x?(d.attr(v.attrs1),d.setMatrix(u.matrix),b=_.simpleMix({matrix:y},v.attrs2)):(d.setMatrix(u.matrix),b={matrix:y}),d.animate(b,M.duration,M.easing)}}else if(u&&!d){if(!c(u.matrix))return;M=h(u.animateType,"leave",u),g=p(u.animateType,r,"leave",M.animation),_.isFunction(g)?(l=n.addShape(u.type,{attrs:u.attrs,points:u.points,index:u.index,id:u.id,animateCfg:u.animateCfg}),-1===u.animateType.indexOf("label")&&u.matrix.multiply(r.get("matrix")),l.setMatrix(u.matrix),l.isTem=!0,g(l,M,r)):n&&!n.get("destroyed")&&n.draw()}else if(!u&&d&&!d.get("destroyed")){if(!c(d.getMatrix()))return;M=h(d.animateType,"enter",d),g=p(d.animateType,r,"enter",M.animation),_.isFunction(g)?g(d,M,r):n&&!n.get("destroyed")&&n.draw()}}):_.each(t,function(e){c(e.getMatrix())&&(M=h(e.animateType,"appear",e),g=p(e.animateType,r,"appear",M.animation),_.isFunction(g)?g(e,M,r):n&&!n.get("destroyed")&&n.draw())}))}function v(e,t,n,a){var i=n||!a,o=e.get("shapesStash"),s=[];o=o||[],r(s,e),e.set("shapesStash",l(s)),i&&m(o,s,e,t,n),e.draw()}function g(e){var t=e.geom,n=e.fn,r=t.get("coord"),a=x[e.animateCfg.animation];if(!a&&!_.isFunction(a))return!1;var i=r.get("start"),o=r.get("end"),s=r.get("width"),l=r.get("height"),u={group:t.get("group"),rect:{x:i.x,y:o.y,width:s,height:l},before:n};return _.simpleMix(u,e.animateCfg),r.isPolar&&_.simpleMix(u,{circle:{center:r.getCenter(),startAngle:r.get("startAngle"),endAngle:r.get("endAngle"),r:Math.max(s,l)/2}}),new a(u)}var y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_=n(1),b=n(5),x=n(127),M=n(110),w=b.Matrix.Matrix3,k={text:"text",elements:"elements",rotate:"rotate",textAlign:"textAlign",textBaseline:"textBaseline",fontStyle:"fontStyle",font:"font",fontWeight:"fontWeight",fontFamily:"fontFamily",points:"points"};e.exports={shapeAnimation:v,getGroupAnimation:g}},function(e,t,n){"use strict";var r=n(22);r.Interval=n(311),r.Schema=n(312),r.Heatmap=n(310),r.Contour=n(308),r.Edge=n(309),e.exports=r},function(e,t,n){"use strict";function r(e){for(var t=e.length,n=e[1]-e[0],r=2;ra&&(n=a)}return n}var a=n(4),i={getDefalutSize:function(){var e=this.get("defaultSize");if(!e){var t,n=this.getCoord(),i=this.getXScale(),o=i.values;if(i.isLinear&&o.length>1){o.sort();var s=r(o);t=(i.max-i.min)/s,o.length>t&&(t=o.length)}else t=o.length;var l=1/t,u=1;this.isInCircle()&&"schema"!==this.get("type")?n.isTransposed&&t>1&&(u=a.widthRatio.multiplePie):u=a.widthRatio.column,l*=u;var c=this.get("adjusts");if(c&&-1!==c.indexOf("Dodge")){l/=this.get("frames").length}e=l,this.set("defaultSize",e)}return e}};e.exports=i},function(e,t,n){"use strict";var r=n(1),a=n(115),i=n(17),o=function e(t){e.superclass.constructor.call(this,t)};r.extend(o,a),r.augment(o,{getPointRauis:function(e,t){return i.getPointRadius(e,t)},getCirclePoint:function(e,t,n){var r=this,a=r.get("coord"),i=a.getCenter(),o=r._isEmitLabels(),s=r.getPointRauis(a,n);if(a.isTransposed&&s>t&&!o){e+=2*Math.asin(t/(2*s))}else s+=t;return{x:i.x+s*Math.cos(e),y:i.y+s*Math.sin(e),angle:e,r:s}},getArcPoint:function(e,t){var n,a=this;return t=t||0,n=r.isArray(e.x)||r.isArray(e.y)?{x:r.isArray(e.x)?e.x[t]:e.x,y:r.isArray(e.y)?e.y[t]:e.y}:e,a.transLabelPoint(n),n},getPointAngle:function(e){var t=this,n=t.get("coord");return i.getPointAngle(n,e)},getMiddlePoint:function(e){var t=this,n=t.get("coord"),a=e.length,i={x:0,y:0};return r.each(e,function(e){i.x+=e.x,i.y+=e.y}),i.x/=a,i.y/=a,i=n.convert(i)},_isToMiddle:function(e){return e.x.length>2},getLabelPoint:function(e,t,n){var r,a=this,i=e[n],o=1;a._isToMiddle(t)?r=a.getMiddlePoint(t.points):(1===e.length&&0===n?n=1:0===n&&(o=-1),r=a.getArcPoint(t,n));var s=a.getDefaultOffset();s*=o;var l=a.getPointAngle(r),u=a.getCirclePoint(l,s,r);return u.text=i,u.angle=l,u.color=t.color,u.rotate=a.getLabelRotate(l,s,t),u},_isEmitLabels:function(){return this.get("labels").labelEmit},getLabelRotate:function(e){var t,n=this;return t=180*e/Math.PI,t+=90,n._isEmitLabels()&&(t-=90),t&&(t>90?t-=180:t<-90&&(t+=180)),t/180*Math.PI},getLabelAlign:function(e){var t,n=this,r=n.get("coord");if(n._isEmitLabels())t=e.angle<=Math.PI/2&&e.angle>-Math.PI/2?"left":"right";else if(r.isTransposed){var a=r.getCenter(),i=n.getDefaultOffset();t=Math.abs(e.x-a.x)<1?"center":e.angle>Math.PI||e.angle<=0?i>0?"left":"right":i>0?"right":"left"}else t="center";return t}}),e.exports=o},function(e,t,n){"use strict";function r(e){var t=0;return l.each(e,function(e){t+=e}),t/e.length}var a=n(5),i=n(25),o=i.Labels,s=a.Group,l=n(1),u=n(4),c=["line","point","path"],d=function e(t){e.superclass.constructor.call(this,t)};d.CFG={labels:u.labels,labelsCfg:null,coord:null,geomType:null,zIndex:6},l.extend(d,s),l.mixin(d,[o.ShowLabels]),l.augment(d,{_renderUI:function(){d.superclass._renderUI.call(this),this.initLabelsCfg(),this.renderLabels()},_getLabelValue:function(e){var t,n=this,r=e._origin,a=n.get("labelsCfg"),i=a.scales,o=a.callback;if(o){var s=[];l.each(i,function(e){s.push(r[e.dim])}),t=o.apply(null,s)}else{var u=i[0];if(t=r[u.dim],l.isArray(t)){var c=[];l.each(t,function(e){c.push(u.getText(e))}),t=c}else t=u.getText(t)}return t},initLabelsCfg:function(){var e=this,t=e.getDefaultLabelCfg(),n=e.get("labelsCfg");l.mix(!0,t,n.cfg),e.set("labels",t)},getDefaultLabelCfg:function(){var e=this,t=e.get("labelsCfg").cfg,n=e.get("geomType");return"polygon"===n||t&&t.offset<0&&-1===l.indexOf(c,n)?l.mix(!0,{},u.innerLabels):this.getGlobalLabelCfg()},getGlobalLabelCfg:function(){return l.mix({},u.labels)},getLabelsItems:function(e){var t,n=this,r=[],a=n.get("labels"),i=n.get("geom"),o=i?i.getXDim():"x",s=i?i.getYDim():"y";return l.each(e,function(e){t=e._origin;var i=n._getLabelValue(e);l.isArray(i)||(i=[i]);var u=i.length;l.each(i,function(c,d){var f=n.getLabelPoint(i,e,d);if(f){f=l.mix({},t,f);var p;p=a&&a.label&&a.label.textAlign?a.label.textAlign:n.getLabelAlign(f,d,u),f.textAlign=p,f.id=n.get("id")+"LabelText"+t[o]+" "+t[s]+f.text,r.push(f)}})}),r},adjustItems:function(e){return e},drawLines:function(){},getLabelPoint:function(e,t,n){function a(t,n){return l.isArray(t)&&(t=1===e.length?t.length<=2?t[t.length-1]:r(t):t[n]),t}var i=this,o={x:a(t.x,n),y:a(t.y,n),text:e[n]},s=i.getLabelOffset(o,n,e.length);return i.transLabelPoint(o),o.x+=s.x,o.y+=s.y,o},transLabelPoint:function(e){var t=this,n=t.get("coord"),r=n.trans(e.x,e.y,1);e.x=r.x,e.y=r.y},getOffsetVector:function(){var e=this,t=e.get("labels"),n=t.offset||0,r=e.get("coord");return r.isTransposed?r.trans(n,0):r.trans(0,n)},getDefaultOffset:function(){var e=this,t=e.get("coord"),n=e.getOffsetVector();return t.isTransposed?n.x:n.y},getLabelOffset:function(e,t,n){var r=this,a=r.getDefaultOffset(),i=r.get("coord"),o=i.isTransposed,s=o?"x":"y",l=o?1:-1,u={x:0,y:0};return u[s]=t>0||1===n?a*l:a*l*-1,u},getLabelAlign:function(e,t,n){var r=this,a="center";if(r.get("coord").isTransposed){var i=r.getDefaultOffset();a=i<0?"right":0===i?"center":"left",n>1&&0===t&&("right"===a?a="left":"left"===a&&(a="right"))}return a},showLabels:function(e){var t=this,n=t.getLabelsItems(e),r=t.get("labels");n=t.adjustItems(n),t.resetLabels(n),r.labelLine&&t.drawLines(n,r.labelLine)},destroy:function(){this.removeLabels(),d.superclass.destroy.call(this)}}),e.exports=d},function(e,t,n){"use strict";var r=n(13);n(321),n(322),n(323),n(324),n(319),n(325),n(320),r.Path=r.Line,e.exports=r},function(e,t){"use strict";function n(){var e=document.createElement("i");return e.title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),e}var r=/rgb\((\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/;e.exports={toRGB:function(){var e;return document.body&&(e=n()),function(t){e||(e=n()),e.style.color=t;var a=document.defaultView.getComputedStyle(e,"").getPropertyValue("color"),i=r.exec(a);return i.shift(),this.arr2rgb(i)}}(),toHex:function(e){return e=Math.round(e),e=e.toString(16),1===e.length&&(e="0"+e),e},hsl2Rgb:function(e){var t=e[0],n=e[1],r=e[2],a={};if(0===n)a.r=a.g=a.b=r;else{var i=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+6*(t-e)*(2/3-n):e},o=r<=.5?r*(1+n):r+n-r*n,s=2*r-o;a.r=i(s,o,t+1/3),a.g=i(s,o,t),a.b=i(s,o,t-1/3)}return a.r=Math.min(Math.round(255*a.r),255),a.g=Math.min(Math.round(255*a.g),255),a.b=Math.min(Math.round(255*a.b),255),"#"+this.toHex(a.r)+this.toHex(a.g)+this.toHex(a.b)},rgb2hsl:function(e){var t,n,r,a=this.rgb2arr(e),i=a[0]/255,o=a[1]/255,s=a[2]/255,l=Math.min(i,o,s),u=Math.max(i,o,s),c=u-l;return u==l?t=0:i==u?t=(o-s)/c:o==u?t=2+(s-i)/c:s==u&&(t=4+(i-o)/c),t=Math.min(60*t,360),t<0&&(t+=360),r=(l+u)/2,n=u==l?0:r<=.5?c/(u+l):c/(2-u-l),[t/360,n,r]},arr2rgb:function(e){return"#"+this.toHex(e[0])+this.toHex(e[1])+this.toHex(e[2])},rgb2arr:function(e){var t=[];return t.push(parseInt(e.substr(1,2),16)),t.push(parseInt(e.substr(3,2),16)),t.push(parseInt(e.substr(5,2),16)),t}}},function(e,t,n){"use strict";function r(e,t,n,r){return e[r]+(t[r]-e[r])*n}var a=n(54),i=n(1),o={calColor:function(e,t,n){var i,o=e.length-1,s=Math.floor(o*t),l=o*t-s,u=e[s],c=s===o?u:e[s+1];return"hsl"===n?i=a.hsl2Rgb([r(u,c,l,0),r(u,c,l,1),r(u,c,l,2)]):(i={r:r(u,c,l,0),g:r(u,c,l,1),b:r(u,c,l,2)},i="#"+a.toHex(i.r)+a.toHex(i.g)+a.toHex(i.b)),i},lightness:function(e,t){t=t||0;var n=[[t,1,.9],[t,1,.5]];return o.calColor(n,e,"hsl")},red:function(e){return o.lightness(e,0)},blue:function(e){return o.lightness(e,.66)},green:function(e){return o.lightness(e,.33)},gradient:function(e){var t=[];return i.isString(e)&&(e=e.split("-")),i.each(e,function(e){-1===e.indexOf("#")&&(e=a.toRGB(e)),t.push(a.rgb2arr(e))}),function(e){return o.calColor(t,e)}},gradientHsl:function(e){var t=[];return i.isString(e)&&(e=e.split("-")),i.each(e,function(e){-1===e.indexOf("#")&&(e=a.toRGB(e)),t.push(a.rgb2hsl(e))}),function(e){return o.calColor(t,e,"hsl")}},saturation:function(e,t){t=t||0;var n=[[t,0,.5],[t,1,.5]];return o.calColor(n,e,"hsl")},hue:function(e){var t=[[0,1,.5],[1,1,.5]];return o.calColor(t,e,"hsl")},brightness:function(e){var t=[[255,255,255],[0,0,0]];return o.calColor(t,e)},heat:function(e){var t=[[255,255,255],[255,127.5,0],[0,0,0]];return o.calColor(t,e)},rainbow:function(e){var t=[[0,255,255],[0,0,255],[0,255,0],[255,0,0]];return o.calColor(t,e)},circular:function(e){var t=[[0,0,255],[0,255,0],[255,255,0],[255,0,0],[0,0,255]];return o.calColor(t,e)},bipolar:function(e){var t=[[0,255,0],[0,0,0],[255,0,0]];return o.calColor(t,e)}};e.exports=o},function(e,t,n){var r=n(120);r.Group=n(121),e.exports=r},function(e,t,n){"use strict";var r=n(1),a=function(){};a.ATTRS={actived:!1},r.augment(a,{isActived:function(){return this.get("actived")},setActived:function(){this.setActiveStatus(!0),this.set("actived",!0)},setActiveStatus:function(){},clearActived:function(){this.setActiveStatus(!1),this.set("actived",!1),this.clearActivedItem&&this.clearActivedItem()}}),e.exports=a},function(e,t,n){"use strict";var r=n(1),a=function(){};a.ATTRS={multipleActive:!1},r.augment(a,{isItemActived:function(e){return e.isActived()},getActiveItems:function(){return this.get("children")},setItemActived:function(e,t){t?e.setActived():e.clearActived()},onActived:function(e){this.fire("itemactived",{item:e}),this.fireUpGroup&&this.fireUpGroup("actived",e)},onUnActived:function(e){this.fire("itemunactived",{item:e}),this.fireUpGroup&&this.fireUpGroup("unactived",e)},setActivedItem:function(e){var t=this;t.get("multipleActive")||t.clearActivedItem(),e&&!t.isItemActived(e)&&(t.setItemActived(e,!0),t.onActived(e))},getActived:function(){var e=this,t=e.getActiveItems(),n=null;return r.each(t,function(t){if(e.isItemActived(t))return n=t,!1}),n},getAllActived:function(){var e=this,t=e.getActiveItems(),n=[];return r.each(t,function(t){e.isItemActived(t)&&n.push(t)}),n},clearAllActived:function(){var e=this,t=e.getAllActived();return r.each(t,function(t){e.setItemActived(t,!1),e.onUnActived(t)}),this},clearActivedItem:function(e){var t=this;return e=e||t.getActived(),e&&(t.setItemActived(e,!1),t.onUnActived(e)),this}}),e.exports=a},function(e,t,n){var r=n(24);r.Dodge=n(123),r.Jitter=n(124),r.Stack=n(125),r.Symmetric=n(126),e.exports=r},function(e,t,n){"use strict";var r=n(1),a=n(24),i=n(2),o=function(e){o.superclass.constructor.call(this,e)};r.extend(o,a),r.augment(o,{marginRatio:.5,dodgeRatio:.5,_getDodgeDim:function(e){var t=this,n=null;return r.each(e,function(e){if(e!==t.xDim)return n=e,!1}),n},processAdjust:function(e){var t=this,n=i.merge.apply(null,e),r=t.groupDims,a=t._getDodgeDim(r);return a&&(e=i.group(n,a)),t.adjFrames=e,t.mergeFrame=n,e=t.adjustFrames(e,n),a&&(n=i.merge.apply(null,e),e=i.group(n,r)),t.adjFrames=null,t.mergeFrame=null,e},getDistribution:function(e){var t=this,n=t.adjFrames,a={};return r.each(n,function(t,n){var o=i.values(t,e);o.length||o.push(0),r.each(o,function(e){a[e]||(a[e]=[]),a[e].push(n)})}),a},adjustDim:function(e,t,n,a,i){var o=this,s=o.getDistribution(e),l=o.groupData(n,e);r.each(l,function(n,a){a=parseFloat(a);var l;l=1===t.length?{pre:-1,next:1}:o.getAdjustRange(e,a,t),r.each(n,function(t){var n=t[e],a=s[n],u=r.indexOf(a,i);t[e]=o.getDodgeOffset(l,u,a.length)})})},getDodgeOffset:function(e,t,n){var r,a=this,i=e.pre,o=e.next,s=o-i,l=s*a.dodgeRatio/n,u=a.marginRatio*l;return r=.5*(s-n*l-(n-1)*u)+((t+1)*l+t*u)-.5*l-.5*s,(i+o)/2+r}}),e.exports=o},function(e,t,n){"use strict";var r=n(1),a=n(24),i=function(e){i.superclass.constructor.call(this,e)};r.extend(i,a),r.augment(i,{getAdjustOffset:function(e,t){var n=Math.random(),r=t-e;return e+.05*r+.9*r*n},_adjustGroup:function(e,t,n,a){var i=this,o=i.getAdjustRange(t,n,a);r.each(e,function(e){e[t]=i.getAdjustOffset(o.pre,o.next)})},adjustDim:function(e,t,n){var a=this,i=a.groupData(n,e);r.each(i,function(n,r){r=parseFloat(r),a._adjustGroup(n,e,r,t)})}}),e.exports=i},function(e,t,n){"use strict";var r=n(1),a=n(2),i=n(24),o=function(e){o.superclass.constructor.call(this,e)};r.extend(o,i),r.augment(o,{height:null,size:10,reverseOrder:!1,adjustNames:["y"],processOneDimStack:function(e){var t=this,n=t.xDim,r=t.yDim||"y",i=t.height,o={},s=[];t.reverseOrder&&(e=e.slice(0).reverse());for(var l=0;l=0?"positive":"negative";l[g][v]||(l[g][v]=0),p[i]=[l[g][v],m+l[g][v]],l[g][v]+=m}s.push(d)}return t.reverseOrder&&s.reverse(),r.each(s,function(e){var t=new a(e);u.push(t)}),u}}),e.exports=o},function(e,t,n){"use strict";var r=n(1),a=n(2),i=n(24),o=function(e){o.superclass.constructor.call(this,e)};r.extend(o,i),r.augment(o,{cacheMax:null,adjustNames:["y"],_getMax:function(e){var t=this,n=t.mergeFrame;return a.max(n,e)},_getXValuesMax:function(){var e=this,t=e.yDim,n=e.xDim,a={};return e.mergeFrame.each(function(e){var i=e[n],o=e[t],s=r.isArray(o)?Math.max.apply(null,o):o;a[i]=a[i]||0,a[i]0?n=l?s-l:0:s=l?s+l:0,s-n<5&&!l&&s-n>=1&&(l=1)),i(l)){var p=(s-n)/(f-1);l=o.snapFactorTo(p,a,"ceil"),d!==c?(t=parseInt((s-n)/l,10),t>d&&(t=d),tn&&(h-=l),s=r.fixedBase(y,l),n=r.fixedBase(h,l)}u.push(n);for(var _=1;_g&&(g=y),b=g/C;var T=r(t);if(b>.51){x=Math.ceil(b);for(var L=r(n),O=T;O<=L+x;O+=x)_.push(a(O));g=null}else if(b>.0834){x=r(t),M=Math.ceil(b/.0834);for(var P=i(t),D=o(t,n),N=0;N<=D+M;N+=M)_.push(s(T,N+P));g=null}else if(g>.5*S){w=new Date(t),x=w.getFullYear(),M=w.getMonth(t),k=Math.ceil(g/S);var A=w.getDate(),j=l(t,n);g=k*S;for(var Y=0;Yh){w=new Date(t),x=w.getFullYear(),M=w.getMonth(t),k=w.getDate();var R=w.getHours(),I=v.snapTo(f,Math.ceil(g/h)),F=u(t,n);g=I*h;for(var H=0;H<=F+I;H+=I)_.push(new Date(x,M,k,R+H).getTime())}else if(g>p){var W=c(t,n),V=Math.ceil(g/p);g=V*p;for(var z=0;z<=W+V;z+=V)_.push(t+z*p)}else{g<1e3&&(g=1e3),t=1e3*Math.floor(t/1e3);var B=Math.ceil((n-t)/1e3),U=Math.ceil(g/1e3);g=1e3*U;for(var q=0;q0?t="left":e.x<0&&(t="right"),t},getLinePath:function(){var e=this,t=e.get("center"),n=t.x,r=t.y,a=e.get("radius"),i=a,o=e.get("startAngle"),s=e.get("endAngle"),l=e.get("inner"),u=[];if(Math.abs(s-o)===2*Math.PI)u=[["M",n,r],["m",0,-i],["a",a,i,0,1,1,0,2*i],["a",a,i,0,1,1,0,-2*i],["z"]];else{var c=e._getCirclePoint(o),d=e._getCirclePoint(s),f=Math.abs(s-o)>Math.PI?1:0,p=o>s?0:1;if(l){var h=e.getSideVector(l*a,c),m=e.getSideVector(l*a,d),v={x:h.x+n,y:h.y+r},g={x:m.x+n,y:m.y+r};u=[["M",v.x,v.y],["L",c.x,c.y],["A",a,i,0,f,p,d.x,d.y],["L",g.x,g.y],["A",a*l,i*l,0,f,Math.abs(p-1),v.x,v.y]]}else u=[["M",n,r],["L",c.x,c.y],["A",a,i,0,f,p,d.x,d.y],["L",n,r]]}return u},addLabel:function(e,t,n,r){var a=this,i=a.get("labelOffset")||.001;t=a.getSidePoint(t,i),l.superclass.addLabel.call(a,e,t,n,r)},autoRotateLabels:function(){var e=this,t=e.get("ticks"),n=e.get("labelsGroup");if(n&&t.length>12){var a=e.get("radius"),i=e.get("startAngle"),o=e.get("endAngle"),s=o-i,l=s/(t.length-1),u=Math.sin(l/2)*a*2,c=e.getMaxLabelWidth(n);r.each(n.get("children"),function(e,n){var r=t[n],a=r.value*s+i,o=a%(2*Math.PI);cMath.PI&&(a-=Math.PI),a-=Math.PI/2,e.attr("textAlign","center")):o>Math.PI/2?a-=Math.PI:o0&&(e._precessItems(n),e._drawGridLines(n,t,o+"-line"))},_precessItems:function(e){var t,n=this;i.each(e,function(e,r){t&&(n.get("odd")||n.get("even"))&&n._drawOddEven(e,t,r),t=e})},_drawGridLines:function(e,t,n){var r,a,o,s,l=this,u=this.get("type"),c=this.get("smooth"),d=this.get("start");"line"===u||"polygon"===u?i.each(e,function(e){d&&d.x===e[0].x&&e[0].y===d.y||(c?(a=[],i.each(e,function(e){a.push(e.x),a.push(e.y)}),o=i.catmullRom2bezier(a),o.unshift(["M",e[0].x,e[0].y])):(o=[],i.each(e,function(e,t){0===t?o.push(["M",e.x,e.y]):o.push(["L",e.x,e.y])})),s=i.mix({},t,{path:o}),r=l.addShape("path",{elCls:n,attrs:s}),r.animateType="gridLine",r.id=e.id+"grid",l.set("gridLine"+n,r))}):i.each(e,function(e){d&&d.x===e[0].x&&e[0].y===d.y||(o=[],i.each(e,function(e,t){var n=e.radius;0===t?o.push(["M",e.x,e.y]):o.push(["A",n,n,0,0,e.flag,e.x,e.y])}),s=i.mix({},t,{path:o}),r=l.addShape("path",{elCls:n,attrs:s}),r.animateType="gridLine",r.id=e.id+"grid",l.set("gridLine"+n,r))})},_drawOddEven:function(e,t,n){var r,a,i=this,s=i.get("odd"),l=i.get("even");n%2==0?l&&(a=i._getBackItem(t,e,l),r="even"):s&&(a=i._getBackItem(t,e,s),r="odd"),a&&i.addShape("Path",{elCls:o+"-"+r,attrs:a})},_getBackItem:function(e,t,n){var r=[],a=this.get("type");if("line"===a||"polygon"===a){i.each(e,function(e,t){0===t?r.push(["M",e.x,e.y]):r.push(["L",e.x,e.y])});for(var o=t.length-1;o>=0;o--){var s=t[o];r.push(["L",s.x,s.y])}r.push(["Z"])}else{var l=e[0].flag;i.each(e,function(e,t){var n=e.radius;0===t?r.push(["M",e.x,e.y]):r.push(["A",n,n,0,0,e.flag,e.x,e.y])});for(var u=t.length-1;u>=0;u--){var c=t[u],d=c.radius;u===t.length-1?r.push(["M",c.x,c.y]):r.push(["A",d,d,0,0,1===l?0:1,c.x,c.y])}}return n=i.mix({},n,{path:r})}}),e.exports=r},function(e,t,n){"use strict";var r=n(1),a=n(31),i=n(3),o=i.Vector2,s=function(e){s.superclass.constructor.call(this,e)};r.extend(s,a),s.CFG={type:"helix",grid:{line:{"stroke-width":1,stroke:"#C0D0E0"}},labelOffset:5,startAngle:1.25*Math.PI,endAngle:7.25*Math.PI,a:0,center:null,axisStart:null,crp:[]},r.augment(s,{getLinePath:function(){var e=this,t=e.get("crp"),n=e.get("axisStart"),a=r.catmullRom2bezier(t);return a.unshift(["M",n.x,n.y]),a},getTickPoint:function(e){var t=this,n=t.get("startAngle"),r=t.get("endAngle"),a=n+(r-n)*e;return t._getHelixPoint(a)},_getHelixPoint:function(e){var t=this,n=t.get("center"),r=t.get("a"),a=r*e;return{x:n.x+Math.cos(e)*a,y:n.y+Math.sin(e)*a}},getSideVector:function(e,t){var n=this,r=n.get("center"),a=new o(t.x-r.x,t.y-r.y);return e&&a.setLength(e),a},getSidePoint:function(e,t){var n=this,r=n.getSideVector(t,e);return{x:e.x+r.x,y:e.y+r.y}},getTickEnd:function(e,t){var n=this,r=n.get("tickLine");return t=t||r.value,n.getSidePoint(e,t)}}),e.exports=s},function(e,t,n){var r=n(57);r.Abstract=n(31),r.Circle=n(146),r.MultLine=n(150),r.Helix=n(148),e.exports=r},function(e,t,n){"use strict";var r=n(1),a=n(57),i=n(3),o=i.Vector2,s=function(e){s.superclass.constructor.call(this,e)};s.CFG={type:"multLine"},r.extend(s,a),r.augment(s,{getLinePath:function(){var e=this,t=e.get("tickPoints"),n=e.get("start"),a=e.get("end"),i=[];i.push(n.x),i.push(n.y),r.each(t,function(e){i.push(e.x),i.push(e.y)}),i.push(a.x),i.push(a.y);var o=r.catmullRom2bezier(i);return o.unshift(["M",n.x,n.y]),o},getTickPoint:function(e,t){return this.get("tickPoints")[t]},getTickEnd:function(e,t,n){var r=this,a=r.get("tickLine"),i=t||a.value,o=r.getSideVector(i,e,n);return{x:e.x+o.x,y:e.y+o.y}},getSideVector:function(e,t,n){var r,a=this;if(0===n)r=a.get("start");else{r=a.get("tickPoints")[n-1]}return new o(t.x-r.x,t.y-r.y).normalize().vertical(!1).multiplyScaler(e)}}),e.exports=s},function(e,t,n){"use strict";var r=n(1),a=n(59),i=function(){};i.ATTRS={labels:null},r.augment(i,{renderLabels:function(){var e,t=this,n=t.get("labels");n&&(n.items||(n.items=[]),r.isNull(n.animate)&&(n.animate=t.get("animate")),e=t.addGroup(a,n),t.set("labelsGroup",e))},resetLabels:function(e){var t=this,n=t.get("labels");if(n){var a=t.get("labelsGroup"),i=a.getLabels(),o=i.length;e=e||n.items,r.each(e,function(e,n){if(n=e.length;s--)i[s].remove()}},addLabel:function(e,t){var n,r=this,a=r.get("labelsGroup"),i={};return a&&(i.text=e,i.x=t.x,i.y=t.y,i.point=t,i.textAlign=t.textAlign,i.id=t.id,t.rotate&&(i.rotate=t.rotate),n=a.addLabel(i)),n},removeLabels:function(){var e=this,t=e.get("labelsGroup");t&&t.remove(),e.set("labelsGroup",null)}}),e.exports=i},function(e,t,n){"use strict";function r(e,t){var n=null;return a.each(e,function(e){if(e.name===t.get("value"))return n=e,!1}),n}var a=n(1),i=n(60),o=n(47),s=n(41),l=function(e){l.superclass.constructor.call(this,e)};l.CFG={type:"category-legend",items:null,spacingX:5,spacingY:10,wordSpaceing:2,itemsGroup:null,layout:"horizontal",leaveChecked:!0,backPadding:[0,0,0,0],checkable:!0,itemsbeginX:0,itemsbeginY:0,unChecked:"#CCC",back:null,itemWrap:!1,maxLength:100,word:{fill:"#333",textBaseline:"middle"},formatter:null},a.extend(l,s),a.augment(l,i,{_formatPoint:function(e){var t=this.get("formatter");return t&&(e=t.call(this,e)),e},_beforeRenderUI:function(){l.superclass._beforeRenderUI.call(this),this.set("back",{})},_renderUI:function(){l.superclass._renderUI.call(this),this._renderTitle(),this._renderItems(),this._wrapItems(),this._renderBack(),this.setPosition()},_wrapItems:function(){var e=this.get("itemWrap"),t=this.get("layout"),n=this.get("maxLength");e&&n>0&&("horizontal"===t?this._warpHorizontal():"vertical"===t&&this._warpVertical())},_warpVertical:function(){var e,t,n,r,i=this.get("itemsGroup"),o=this.get("titleShape"),s=i.get("children"),l=this.get("maxLength"),u=this.get("spacingX"),c=this.get("spacingY"),d=o.getBBox().height+c,f=1,p=d,h=0,m=0,v=0;i.getBBox().height>l&&a.each(s,function(a){r=a.getBBox(),t=r.width+u,n=r.height+c,h=m,m=t>m?t:m,e=p,p+=n,p>l?(v+=h,p=n+d,f++,m=0,h=0,a.move(v,d)):a.move(v,e)})},_warpHorizontal:function(){var e,t,n,r=this.get("itemsGroup"),i=r.get("children"),o=this.get("maxLength"),s=this.get("spacingX"),l=this.get("spacingY"),u=0,c=0,d=0;r.getBBox().width>o&&a.each(i,function(r){n=r.getBBox(),e=n.width+s,t=n.height+l,d=c,c+=e,c>o?(c=e,u++,r.move(0,u*t+l)):r.move(d,u*t+l)})},_bindUI:function(){this._bindOverOut(),this._bindClick()},_bindClick:function(){this.get("checkable")&&this.on("click",a.wrapBehavior(this,"_onClick"))},_bindOverOut:function(){this.on("mouseenter",a.wrapBehavior(this,"_onMouseenter")),this.on("mouseleave",a.wrapBehavior(this,"_onMouseleave"))},_onClick:function(e){var t,n,a,i,s=this.get("leaveChecked"),l=this._getLi(e.currentTarget),u=this.get("items");if(l){var c=r(u,l);if(i=l.get("checked"),t=new o("itemclick",e),t.item=c,this.trigger(t),s&&i&&1===this.getLeaveCount())return;i?(a=new o("itemunchecked",e),a.item=c,a.currentTarget=l,this.trigger(a)):(n=new o("itemchecked",e),n.item=c,n.currentTarget=l,this.trigger(n))}},_onMouseenter:function(e){var t=this.get("canvas"),n=this._getLi(e.currentTarget);if(n){var i=new o("itemover",e),s=e.currentTarget,l=s.get("canvas").get("el");i.item=n,this.trigger(i),a.modiCSS(l,{cursor:"pointer"});var u=this.get("items"),c=r(u,n);if(n.get("checked")){var d=new o("itemactived",e);d.item=c,d.currentTarget=n,this.trigger(d),t.draw()}}},_onMouseleave:function(e){var t=this.get("canvas"),n=this._getLi(e.currentTarget);if(n){var r=new o("itemout",e),i=t.get("el");if(r.item=n,this.trigger(r),a.modiCSS(i,{cursor:"default"}),n.get("checked")){var s=new o("itemunactived",e);this.trigger(s),t.draw()}}},_renderBack:function(){var e=this.get("itemsGroup"),t=this.get("backPadding"),n=this.get("back");e.renderBack(t,n)},_renderItems:function(){var e=this,t=e.get("items");a.each(t,function(t,n){e._addItem(t,n)})},_addItem:function(e){var t=this.get("itemsGroup"),n=this._getNextX(),r=this._getNextY(),i=this.get("unChecked"),o={words:[{text:this._formatPoint(e.name)}]},s={};e.marker&&(e.checked||(e.marker.fill=i,e.marker.stroke&&(e.marker.stroke=i),s.fill=i),o.marker=e.marker),s=a.mix({},this.get("word"),s),this.addEachItem(t,{word:s,wordSpaceing:this.get("wordSpaceing"),x:n,y:r,items:o,class:"legend-item",checked:e.checked,value:e.name})},_getNextX:function(){var e=this.get("layout"),t=this.get("spacingX"),n=this.get("itemsGroup"),r=n.get("children"),i=0;return"horizontal"===e&&a.each(r,function(e){i+=e.getBBox().width+t}),i},_getNextY:function(){var e=this.get("spacingY"),t=this.get("layout"),n=this.get("itemsGroup"),r=this.get("titleShape"),i=n.get("children"),o=r.getBBox().height+e;return"vertical"===t&&a.each(i,function(t){o+=t.getBBox().height+e}),o},_getLi:function(e){var t=e.get("parent");return"legend-item"===t.get("class")?t:null}}),e.exports=l},function(e,t,n){"use strict";var r=n(1),a=n(41),i=n(33),o=n(47),s=n(5).Group,l=n(62),u=16,c=function(e){c.superclass.constructor.call(this,e)};c.CFG={type:"continuous-legend",items:null,layout:"vertical",width:200,height:60,attrType:null,titleOffset:20,nameOffset:10,range:[0,100],outRange:{fill:"#ccc"},inRange:{fill:"#4E7CCC"},word:{fill:"#333",textAlign:"center",textBaseline:"middle"},middleAttr:{fill:"#fff",fillOpacity:0},checkable:!0,attr:null},r.extend(c,a),r.augment(c,{_formatPoint:function(e){var t=this.get("formatter");return t&&(e=t.call(this,e)),e},_calStartPoint:function(){var e=this.get("titleShape"),t=e.getBBox(),n=this.get("titleOffset");return{x:0,y:t.height+n}},_beforeRenderUI:function(){var e=this.get("items");if(r.isArray(e)&&e.length){c.superclass._beforeRenderUI.call(this);var t=new s,n=new s,a=new s,i=this._calStartPoint(),o=this.addGroup(l,{minHandleElement:t,maxHandleElement:n,backgroundElement:a,middleAttr:this.get("middleAttr"),layout:this.get("layout"),range:this.get("range"),width:this.get("width"),height:this.get("height"),operable:this.get("checkable")});o.translate(i.x,i.y),this.set("rangeElement",o),this.set("firstItem",e[0]),this.set("lastItem",e[e.length-1])}},_bindUI:function(){if(this.get("checkable")){var e=this;e.get("rangeElement").on("rangeChange",function(t){var n=t.range,r=1*e.get("firstItem").name,a=1*e.get("lastItem").name,i=r+n[0]/100*(a-r),s=r+n[1]/100*(a-r);s>1&&(i=parseInt(i,10),s=parseInt(s,10)),e._updateElement(i,s);var l=new o("itemfiltered",t);l.range=[i,s],e.trigger(l)})}},_updateElement:function(e,t){var n=this.get("minTextElement"),r=this.get("maxTextElement");if(n.attr("text",this._formatPoint(e)+""),r.attr("text",this._formatPoint(t)+""),"color"===this.get("attrType")){var a=this.get("attr"),i=this.get("minButtonElement"),o=this.get("maxButtonElement");i.attr("fill",a.mappingValues(e).join("")),o.attr("fill",a.mappingValues(t).join(""))}},_renderUI:function(){c.superclass._renderUI.call(this),this._renderBackground(),this._renderTrigger()},_renderBackground:function(){var e,t=this.get("attrType"),n=this.get("rangeElement"),r=n.get("middleHandleElement");"color"===t?e=this._renderGradient():"size"===t&&(e=this._renderTriangle()),e.attr("clip",r)},_renderGradient:function(){var e,t=this.get("rangeElement"),n=t.get("backgroundElement"),a=this.get("width"),o=this.get("height"),s=this.get("layout"),l=this.get("items"),u="";return"vertical"===s?(u+="l (90) ",r.each(l,function(t){e=new i(t.color).getRGBStyle(),u+=1-t.value+":"+e+" "})):(u+="l (0) ",r.each(l,function(t){e=new i(t.color).getRGBStyle(),u+=t.value+":"+e+" "})),this._addBackground(n,"Rect",{x:0,y:0,width:a,height:o,fill:u,strokeOpacity:0})},_renderTriangle:function(){var e=this.get("rangeElement"),t=e.get("backgroundElement"),n=this.get("width"),a=this.get("height"),i=this.get("inRange"),o=this.get("layout"),s="vertical"===o?[[0,0],[n,0],[n,a]]:[[0,a],[n,0],[n,a]];return this._addBackground(t,"Polygon",r.mix({points:s},i))},_addBackground:function(e,t,n){return e.addShape(t,{attrs:r.mix({},n,this.get("outRange"))}),e.addShape(t,{attrs:n})},_renderTrigger:function(){var e,t,n,a,i=this.get("firstItem"),o=this.get("lastItem"),s=this.get("layout"),l=this.get("attrType"),u=this.get("word"),c=this.get("inRange");"color"===l?(e={fill:i.color},t={fill:o.color}):(e=r.mix({},c),t=r.mix({},c)),n=r.mix({text:i.name},u),a=r.mix({text:o.name},u),"vertical"===s?(this._addVerticalTrigger("min",e,n),this._addVerticalTrigger("max",t,a)):(this._addHorizontalTrigger("min",e,n),this._addHorizontalTrigger("max",t,a))},_addVerticalTrigger:function(e,t,n){var a=this.get("rangeElement"),i=a.get(e+"HandleElement"),o=this.get("width"),s=i.addShape("polygon",{attrs:r.mix({points:[[o/2+u,0],[o/2+1,0],[o/2+u,"min"===e?u:-u]]},t)}),l=i.addShape("text",{attrs:r.mix(n,{x:o+8,y:"max"===e?-8:8,textAlign:"start",textBaseline:"middle"})}),c=this.get("layout"),d="vertical"===c?"ns-resize":"ew-resize";s.set("cursor",d),l.set("cursor",d),this.set(e+"ButtonElement",s),this.set(e+"TextElement",l)},_addHorizontalTrigger:function(e,t,n){var a=this.get("rangeElement"),i=a.get(e+"HandleElement"),o=i.addShape("polygon",{attrs:r.mix({points:[[0,0],[0,-16],["min"===e?-u:u,-16]]},t)}),s=i.addShape("text",{attrs:r.mix(n,{x:"min"===e?-8:8,y:-24,textAlign:"min"===e?"end":"start",textBaseline:"middle"})}),l=this.get("layout"),c="vertical"===l?"ns-resize":"ew-resize";o.set("cursor",c),s.set("cursor",c),this.set(e+"ButtonElement",o),this.set(e+"TextElement",s)}}),e.exports=c},function(e,t,n){var r=n(41);r.Category=n(152),r.Continuous=n(153),e.exports=r},function(e,t,n){"use strict";var r=n(1),a=n(5).Group,i=n(61),o=function(e){o.superclass.constructor.call(this,e)};o.CFG={type:"plotBack",margin:null,border:null,plotRange:null,background:null},r.extend(o,a),r.augment(o,{_beforeRenderUI:function(){this._calculateRange()},_renderUI:function(){this._renderBorder(),this._renderBackground()},_renderBorder:function(){var e,t=this,n=t.get("border"),a=t.get("canvas"),i=t.get("borderShape");if(n){var o=t.get("width")||a.get("width"),s=t.get("height")||a.get("height");i?i.attr({x:0,y:0,width:o,height:s}):(e=r.mix({x:0,y:0,width:o,height:s},n),i=this.addShape("rect",{attrs:e}),this.set("borderShape",i))}},_renderBackground:function(){var e,t,n,a,i=this,o=i.get("background"),s=i.get("plotRange"),l=i.get("backShape");o&&(e=s.getWidth(),t=s.getHeight(),n=s.tl,a={x:n.x,y:n.y,width:e,height:t},l?l.attr(a):(o.image?(a.img=o.image,l=i.addShape("image",{attrs:a})):(r.mix(a,o),l=i.addShape("rect",{attrs:a})),i.set("backShape",l)))},_calculateRange:function(){var e,t,n=this,a=n.get("margin"),o=n.get("canvas"),s=n.get("width")||o.get("width"),l=n.get("height")||o.get("height"),u=n.get("plotRange"),c=0,d=0,f=0,p=0;r.isNumber(a)&&(c=d=f=p=a),r.isArray(a)&&(c=a[0],f=r.isNull(a[1])?a[0]:a[1],p=r.isNull(a[2])?a[0]:a[2],d=r.isNull(a[3])?f:a[3]),e={x:d,y:l-p},t={x:s-f,y:c},u?u.reset(e,t):(u=new i(e,t),n.set("plotRange",u))},repaint:function(){return this._calculateRange(),this._renderBorder(),this._renderBackground(),this}}),e.exports=o},function(e,t,n){"use strict";function r(e,t){return e.getElementsByClassName(t)[0]}var a=n(1),i=n(3),o=n(5).Group,s=n(60),l="ac-title",u="ac-list",c=[10,10,10,10],d=function(e){d.superclass.constructor.call(this,e)};d.CFG={zIndex:10,x:0,y:0,items:null,title:{fill:"#fff"},name:{},value:{},crossLine:{stroke:"#999",lineWidth:1},markerCfg:null,titleText:void 0,wordSpaceing:6,crosshairs:!1,titleShape:null,contentGroup:null,crossLineShapeX:null,crossLineShapeY:null,background:{radius:6,fill:"#000",fillOpacity:.7},plotRange:null,shared:!1,offset:10,animate:!0,duration:50,visible:!1,valueSplit:"",valueSuffix:"",custom:!1,customDiv:null,customFollow:!0,timeStamp:0,html:'',itemTpl:'
  • {name} : {value}
  • ',inPlot:!0},a.extend(d,o),a.augment(d,s,{_beforeRenderUI:function(){var e=this.get("custom"),t=this.get("crossLine"),n=this.addGroup({attrs:t}),r=this.addGroup({zIndex:10,attrs:{fill:"#fff",textAlign:"left"}});this.set("crossLineGroup",n),this.set("contentGroup",r),this.set("itemsGroup",r.addGroup()),e&&this._setCustomDiv()},_renderUI:function(){if(this.get("items")){this.get("custom")?this._renderCustom():this._renderContent()}this._renderCrossLine()},_renderContent:function(){var e=this,t=e.get("items"),n=e.get("title"),r=e.get("titleText"),i=e.get("name"),o=e.get("value"),s=e.get("valueSplit"),l=e.get("valueSuffix"),u=e.get("markerCfg"),d=this.get("itemsGroup");if(d&&d.clear(),n){var f=d.addShape("text",{attrs:a.mix({},n,{x:c[3],y:c[0]+14,text:r})});this.set("titleShape",f)}a.each(t,function(t,n){var r=a.mix({},i,{text:t.name?t.name+":":""}),f=a.mix({},o,{text:t.value+s+l});!0===t.marker&&(t.marker="circle");var p=t.marker?{symbol:t.marker,fill:t.color}:{};e.addEachItem(d,{x:c[3],y:20*(n+1)+c[0]+8,items:{color:t.color,words:[r,f],marker:a.mix(p,u)}})}),d.renderBack(c,this.get("background"))},_renderCrossLine:function(){var e=this.get("crosshairs"),t=this.get("canvas"),n=this.get("plotRange");if(e)switch(this.clearCrossLineGroup(),e.type){case"x":this._renderCrossLineX(t,n);break;case"y":this._renderCrossLineY(t,n);break;case"cross":this._renderCrossLineX(t,n),this._renderCrossLineY(t,n);break;default:this._renderCrossLineY(t,n)}},_renderCrossLineY:function(e,t){var n=a.mix({x1:0,y1:t?t.bl.y:e.get("height"),x2:0,y2:t?t.tl.y:0},this.get("crossLine"));"dash"===this.get("crosshairs").shape&&(n.lineDash="6 3"),this._addCrossLineShape(n,"Y")},_renderCrossLineX:function(e,t){var n=a.mix({x1:t?t.bl.x:e.get("width"),y1:0,x2:t?t.br.x:0,y2:0},this.get("crossLine"));"dash"===this.get("crosshairs").shape&&(n.lineDash="6 3"),this._addCrossLineShape(n,"X")},_addCrossLineShape:function(e,t){var n=this.get("crossLineGroup"),r=n.addShape("line",{attrs:e});return this.set("crossLineShape"+t,r),r},clearCrossLineGroup:function(){var e=this.get("crossLineGroup");this.set("crossLineShapeX",null),this.set("crossLineShapeY",null),e.clear()},setMarkers:function(e,t){var n=this,r=n.get("markerGroup");r?r.clear():(r=n.addGroup({zIndex:2}),n.set("markerGroup",r)),a.each(e,function(e){r.addShape("marker",{attrs:a.mix({},t,{stroke:e.color,x:e.point.x,y:e.point.y})})})},clearMarkers:function(){var e=this.get("markerGroup");e&&e.clear()},setCross:function(e){this.set("crosshairs",{type:e}),this._renderCrossLine()},setContent:function(e,t){if(this._isContentChange(e,t)){var n=this.get("custom"),r=+new Date;this.set("items",t),this.set("titleText",e),this.set("timeStamp",r),n?this._renderCustom():this._renderContent()}return this},_isContentChange:function(e,t){var n=this.get("titleText"),r=this.get("items"),i=!(e===n&&r.length===t.length);return i||a.each(t,function(e,t){var n=r[t];if(i=e.value!==n.value||e.color!==n.color||e.name!==n.name||e.title!==n.title)return!1}),i},getTitle:function(){return this.get("titleShape")},setPosition:function(e,t){var n,r=this.get("canvas"),o=this.get("custom"),s=this.get("customDiv"),l=this.get("plotRange"),u=this.get("offset"),c=this.get("crossLineShapeX"),d=this.get("crossLineShapeY"),f=this.get("contentGroup"),p=(this.get("markerGroup"),f.getBBox()),h=this.get("animate"),m=!0,v=e,g=t;if(s&&this.get("customFollow")?(n=a.getWidth(s)+2*u,e-=n,t=t-a.getHeight(s)-2*u):(n=p.width+u,e-=n,t-=p.height),this.get("inPlot")&&l&&(l.isInRange(e,t)||(l.isInHorizontal(e)||(l.tr.x-l.tl.x>=2*n?(e=Math.max(l.tl.x,v)+u,m=!1):(e=l.tl.x,t-=u)),l.isInVertical(t)||(t=l.tl.y))),this.get("x")!==e||this.get("y")!==t)if(d&&(m?d.move(v,0):d.move(e-u,0)),c&&c.move(0,g),o)this.moveCustom(e,t,m);else{var y=new i.Matrix3;y.translate(e,t),h&&this.get("visible")?f.animate({matrix:y},this.get("duration")):(f.setMatrix(y),this.get("visible")||this.show(),r.draw())}},_setCustomDiv:function(){var e,t,n=this,r=n.get("html"),i=n.get("canvas").get("el").parentNode;/^\#/.test(r)?(t=r.replace("#",""),e=document.getElementById(t)):e=a.createDom(r),n.set("customDiv",e),n.get("customFollow")&&(i.appendChild(e),i.style.position="relative")},_renderCustom:function(){var e=this,t=e.get("title"),n=e.get("titleText"),i=e.get("customDiv"),o=r(i,l),s=r(i,u),c=e.get("items");e._clearCustom(),o&&t&&(o.innerHTML=n),s&&(e.set("titleText",n),a.each(c,function(t,n){e.addCustomItem(t,n)}))},_clearCustom:function(){var e=this.get("customDiv"),t=r(e,l),n=r(e,u);t&&(t.innerHTML=""),n&&(n.innerHTML="")},addCustomItem:function(e,t){var n,i,o=this.get("customDiv"),s=r(o,u),l=this.get("itemTpl"),c=a.mix({index:t},e);n=a.substitute(l,c),i=a.createDom(n),s.appendChild(i)},moveCustom:function(e,t){var n=this.get("customDiv");n&&this.get("customFollow")&&(n.style.left=e+"px",n.style.top=t+"px")},show:function(){var e=this.get("crossLineShapeX"),t=this.get("crossLineShapeY"),n=this.get("markerGroup"),r=this.get("customDiv"),a=this.get("hideHandler");a&&clearTimeout(a),this.sort(),e&&e.show(),t&&t.show(),n&&n.show(),d.superclass.show.call(this),r&&this.get("customFollow")&&(r.style.visibility="visible",this.get("canvas").draw())},hide:function(){var e=this,t=e.get("customDiv"),n=e.get("crossLineShapeX"),r=e.get("crossLineShapeY"),a=e.get("markerGroup"),i=e.get("canvas"),o=setTimeout(function(){t&&e.get("customFollow")&&(t.style.visibility="hidden"),e.set("hideHandler",null),e.get("destroyed")||(d.superclass.hide.call(e),i.draw())},e.get("duration"));e.set("hideHandler",o),n&&n.hide(),r&&r.hide(),a&&a.hide()},remove:function(){var e=this,t=e.get("crossLineShapeX"),n=e.get("crossLineShapeY"),r=e.get("markerGroup"),a=e.get("customDiv"),i=e.get("html");t&&t.remove(),n&&n.remove(),r&&r.remove(),d.superclass.remove.call(this),a&&!/^\#/.test(i)&&a.parentNode.removeChild(a)}}),e.exports=d},function(e,t,n){"use strict";var r=n(81),a=n(160),i=n(66),o=function(e){o.superclass.constructor.call(this,e)};o.CFG={eventEnable:!0,width:null,height:null,widthCanvas:null,heightCanvas:null,widthStyle:null,heightStyle:null,containerDOM:null,canvasDOM:null,pixelRatio:null},r.extend(o,i.Group),r.augment(o,{init:function(){o.superclass.init.call(this),this._setGlobalParam(),this._setDOM(),this._setInitSize(),this._setCanvas(),this._scale(),this.get("eventEnable")&&this._registEvents()},_registEvents:function(){var e=this,t=e.get("el"),n=new a(e);t.addEventListener("mouseout",function(e){n.mouseout(e)},!1),t.addEventListener("mouseover",function(e){n.mouseover(e)},!1),t.addEventListener("mousemove",function(e){n.mousemove(e)},!1),t.addEventListener("mousedown",function(e){n.mousedown(e)},!1),t.addEventListener("mouseup",function(e){n.mouseup(e)},!1),t.addEventListener("click",function(e){n.click(e)},!1),t.addEventListener("dblclick",function(e){n.dblclick(e)},!1)},_scale:function(){var e=this.get("pixelRatio");this.scale(e,e)},_setCanvas:function(){var e=this.get("canvasDOM");this.set("el",e),this.set("context",e.getContext("2d")),this.set("canvas",this)},_setGlobalParam:function(){this.get("pixelRatio")||this.set("pixelRatio",r.getRatio())},_setDOM:function(){this._setContainer(),this._setLayer()},_setContainer:function(){var e=this.get("containerId"),t=this.get("containerDOM");t||(t=document.getElementById(e),this.set("containerDOM",t)),r.modiCSS(t,{position:"relative"})},_setLayer:function(){var e=this.get("containerDOM"),t=r.guid("canvas_");if(e){var n=r.createDom('');e.appendChild(n),this.set("canvasDOM",n)}},_setInitSize:function(){this.get("widthStyle")?this.changeSizeByCss(this.get("widthStyle"),this.get("heightStyle")):this.get("width")&&this.changeSize(this.get("width"),this.get("height"))},_getPx:function(e,t){var n=this.get("canvasDOM");n.style[e]=t;var a=r.getBoundingClientRect(n);return"width"===e?a.right-a.left:"height"===e?a.bottom-a.top:void 0},_reSize:function(){var e=this.get("canvasDOM"),t=this.get("widthCanvas"),n=this.get("heightCanvas"),r=this.get("widthStyle"),a=this.get("heightStyle");e.style.width=r,e.style.height=a,e.setAttribute("width",t),e.setAttribute("height",n)},getWidth:function(){var e=this.get("pixelRatio");return this.get("width")*e},getHeight:function(){var e=this.get("pixelRatio");return this.get("height")*e},changeSizeByCss:function(e,t){var n=this.get("pixelRatio");e=this._getPx("width",e),t=this._getPx("height",t);var r=e*n,a=t*n;this.set("widthStyle",e),this.set("heightStyle",t),this.set("widthCanvas",r),this.set("heightCanvas",a),this.set("width",e),this.set("height",t),this._reSize()},changeSize:function(e,t){var n=this.get("pixelRatio"),r=e*n,a=t*n;this.set("widthCanvas",r),this.set("heightCanvas",a),this.set("widthStyle",e+"px"),this.set("heightStyle",t+"px"),this.set("width",e),this.set("height",t),this._reSize()},getPointByClient:function(e,t){var n=this.get("el"),r=n.getBoundingClientRect(),a=r.right-r.left,i=r.bottom-r.top;return{x:(e-r.left)*(n.width/a),y:(t-r.top)*(n.height/i)}},getClientByPoint:function(e,t){var n=this.get("el"),r=n.getBoundingClientRect(),a=r.right-r.left,i=r.bottom-r.top;return{clientX:e/(n.width/a)+r.left,clientY:t/(n.height/i)+r.top}},beforeDraw:function(){var e=this.get("context"),t=this.get("el");e&&e.clearRect(0,0,t.width,t.height)},_beginDraw:function(){this.setSilent("toDraw",!0)},_endDraw:function(){this.setSilent("toDraw",!1)},draw:function(){function e(){t.set("animateHandler",r.requestAnimationFrame(function(){t.set("animateHandler",void 0),t.get("toDraw")&&e()})),t.beforeDraw();try{var n=t.get("context");o.superclass.draw.call(t,n)}catch(e){console.warn("error in draw canvas, detail as:"),console.warn(e),t._endDraw()}t._endDraw()}var t=this;t.get("destroyed")||(t.get("animateHandler")?this._beginDraw():e())},destroy:function(){var e=this.get("containerDOM"),t=this.get("canvasDOM");t&&e&&e.removeChild(t),o.superclass.destroy.call(this)}}),e.exports=o},function(e,t,n){"use strict";var r=n(1),a=function(e,t,n,r){this.type=e,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=r,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=t};r.augment(a,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return r.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),e.exports=a},function(e,t,n){var r=n(1),a=n(158);e.exports={initEventDispatcher:function(){this.__listeners={}},on:function(e,t){var n=this.__listeners;return r.isNull(n[e])&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t),this},off:function(e,t){var n=this.__listeners;return 0===arguments.length?(this.__listeners={},this):1===arguments.length&&r.isString(e)?(n[e]=[],this):2===arguments.length&&r.isString(e)&&r.isFunction(t)?(r.remove(n[e],t),this):void 0},has:function(e,t){var n=this.__listeners;return 0===arguments.length&&!r.isBlank(n)||!(1!==arguments.length||!n[e]||r.isBlank(n[e]))||!(2!==arguments.length||!n[e]||-1===n[e].indexOf(t))},trigger:function(e){var t=this,n=t.__listeners,a=n[e.type];if(e.target=t,r.notNull(a)&&a.forEach(function(n){n.call(t,e)}),e.bubbles){var i=t.get("parent");i&&!e.propagationStopped&&i.trigger(e)}return t},fire:function(e,t){var n=new a(e);r.each(t,function(e,t){n[t]=e}),this.trigger(n)}}},function(e,t,n){"use strict";var r=n(1),a=n(47),i=function(e){this.canvas=e,this.el=e.get("el"),this.current=null,this.pre=null};r.augment(i,{tryTrigger:function(e,t){e.__listeners&&e.trigger(t)},getCurrent:function(e){var t=this.canvas,n=t.getPointByClient(e.clientX,e.clientY);this.point=n,this.pre=this.current,this.current=t.getShape(n.x,n.y)},mousemove:function(e){this.getCurrent(e);var t=this.point,n=this.canvas;if(n.has("canvas-mousemove")){var r=new a("canvas-mousemove",e,!0,!0);r.x=t.x,r.y=t.y,r.clientX=e.clientX,r.clientY=e.clientY,r.currentTarget=n,this.tryTrigger(n,r)}if(this.pre&&this.pre!==this.current){var i=new a("mouseleave",e,!0,!0);i.x=t.x,i.y=t.y,i.clientX=e.clientX,i.clientY=e.clientY,i.currentTarget=this.pre,i.target=this.pre,this.tryTrigger(this.pre,i)}if(this.current){var o=new a("mousemove",e,!0,!0);if(o.x=t.x,o.y=t.y,o.clientX=e.clientX,o.clientY=e.clientY,o.currentTarget=this.current,o.target=this.current,this.tryTrigger(this.current,o),this.pre!==this.current){var s=new a("mouseenter",e,!0,!0);s.x=t.x,s.y=t.y,s.clientX=e.clientX,s.clientY=e.clientY,s.currentTarget=this.current,s.target=this.current,this.tryTrigger(this.current,s)}}},mousedown:function(e){var t=this.point,n=this.canvas;if(n.has("canvas-mousedown")){var r=new a("canvas-mousedown",e,!0,!0);r.x=t.x,r.y=t.y,r.clientX=e.clientX,r.clientY=e.clientY,r.currentTarget=n,this.tryTrigger(n,r)}if(this.current){var i=new a("mousedown",e,!0,!0);i.x=t.x,i.y=t.y,i.clientX=e.clientX,i.clientY=e.clientY,i.currentTarget=this.current,i.target=this.current,this.tryTrigger(this.current,i)}},mouseup:function(e){var t=this.point,n=this.canvas;if(n.has("canvas-mouseup")){var r=new a("canvas-mouseup",e,!0,!0);r.x=t.x,r.y=t.y,r.clientX=e.clientX,r.clientY=e.clientY,r.currentTarget=n,this.tryTrigger(n,r)}if(this.current){var i=new a("mouseup",e,!0,!0);i.x=t.x,i.y=t.y,i.clientX=e.clientX,i.clientY=e.clientY,i.currentTarget=this.current,i.target=this.current,this.tryTrigger(this.current,i)}},click:function(e){this.getCurrent(e);var t=this.point,n=this.canvas;if(n.has("canvas-click")){var r=new a("canvas-click",e,!0,!0);r.x=t.x,r.y=t.y,r.clientX=e.clientX,r.clientY=e.clientY,r.currentTarget=n,this.tryTrigger(n,r)}if(this.current){var i=new a("click",e,!0,!0);i.x=t.x,i.y=t.y,i.clientX=e.clientX,i.clientY=e.clientY,i.currentTarget=this.current,i.target=this.current,this.tryTrigger(this.current,i)}},dblclick:function(e){var t=this.point,n=this.canvas;if(n.has("canvas-dblclick")){var r=new a("canvas-dblclick",e,!0,!0);r.x=t.x,r.y=t.y,r.clientX=e.clientX,r.clientY=e.clientY,r.currentTarget=n,this.tryTrigger(n,r)}if(this.current){var i=new a("dblclick",e,!0,!0);i.x=t.x,i.y=t.y,i.clientX=e.clientX,i.clientY=e.clientY,i.currentTarget=this.current,i.target=this.current,this.tryTrigger(this.current,i)}},mouseout:function(e){var t=this.point,n=this.canvas,r=new a("canvas-mouseleave",e,!0,!0);r.x=t.x,r.y=t.y,r.currentTarget=n,this.tryTrigger(n,r)},mouseover:function(e){var t=this.canvas,n=new a("canvas-mouseenter",e,!0,!0);n.currentTarget=t,this.tryTrigger(t,n)}}),e.exports=i},function(e,t,n){function r(e,t,n){for(var r,a=e.length-1;a>=0;a--){var i=e[a];if(i.__cfg.visible&&i.__cfg.capture&&(i.isGroup?r=i.getShape(t,n):i.isHit(t,n)&&(r=i)),r)break}return r}function a(e){if(!e.__cfg&&e!==c){var t=e.superclass.constructor;t&&!t.__cfg&&a(t),e.__cfg={},i.mix(!0,e.__cfg,t.__cfg),i.mix(!0,e.__cfg,e.CFG)}}var i=n(1),o=n(3).Vector3,s=n(64),l=n(165),u={},c=function(e){c.superclass.constructor.call(this,e),this.set("children",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};i.extend(c,s),i.augment(c,{isGroup:!0,canFill:!0,canStroke:!0,getDefaultCfg:function(){return a(this.constructor),i.mix(!0,{},this.constructor.__cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(e,t){var n,r=this.get("canvas");t=t||{};var a=u[e];if(a||(a=i.ucfirst(e),u[e]=a),t.attrs){var o=t.attrs;if("text"===e){var s=r.get("fontFamily");s&&(o.fontFamily=o.fontFamily?o.fontFamily:s)}}return t.canvas=r,t.type=e,n=new l[a](t),this.add(n),n},addGroup:function(e,t){var n,r=this.get("canvas");if(t=i.mix({},t),i.isFunction(e))t?(t.canvas=r,t.parent=this,n=new e(t)):n=new e({canvas:r,parent:this}),this.add(n);else if(i.isObject(e))e.canvas=r,n=new c(e),this.add(n);else{if(void 0!==e)return!1;n=new c,this.add(n)}return n},renderBack:function(e,t){var n=this.get("backShape"),r=this.getBBox(),a=this.get("parent");return i.mix(t,{x:r.minX-e[3],y:r.minY-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2]}),n?n.attr(t):n=a.addShape("rect",{zIndex:-1,attrs:t}),this.set("backShape",n),a.sort(),n},removeChild:function(e,t){if(arguments.length>=2)this.contain(e)&&e.remove(t);else{if(1===arguments.length){if(!i.isBoolean(e))return this.contain(e)&&e.remove(!0),this;t=e}0===arguments.length&&(t=!0),c.superclass.remove.call(this,t)}return this},add:function(e){var t=this,n=t.get("children");if(i.isArray(e))i.each(e,function(e){var n=e.get("parent");n&&n.removeChild(e,!1),t.__setEvn(e)}),n.push.apply(n,e);else{var r=e,a=r.get("parent");a&&a.removeChild(r,!1),t.__setEvn(r),n.push(r)}return t},contain:function(e){return this.get("children").indexOf(e)>-1},getChildByIndex:function(e){return this.get("children")[e]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var e=this.get("children").length-1;return this.getChildByIndex(e)},__setEvn:function(e){var t=this;e.__cfg.parent=t,e.__cfg.context=t.__cfg.context,e.__cfg.canvas=t.__cfg.canvas,e.__cfg.totalMatrix=null;var n=e.__attrs.clip;n&&(n.setSilent("parent",t),n.setSilent("context",t.get("context")));var r=e.__cfg.children;r&&i.each(r,function(t){e.__setEvn(t)})},getBBox:function(){var e=this,t=1/0,n=-1/0,r=1/0,a=-1/0,s=e.get("children");i.each(s,function(e){if(e.get("visible")){var i=e.getBBox();if(!i)return!0;var s=new o(i.minX,i.minY,1),l=new o(i.minX,i.maxY,1),u=new o(i.maxX,i.minY,1),c=new o(i.maxX,i.maxY,1);e.apply(s),e.apply(l),e.apply(u),e.apply(c);var d=Math.min(s.x,l.x,u.x,c.x),f=Math.max(s.x,l.x,u.x,c.x),p=Math.min(s.y,l.y,u.y,c.y),h=Math.max(s.y,l.y,u.y,c.y);dn&&(n=f),pa&&(a=h)}});var l={minX:t,minY:r,maxX:n,maxY:a};return l.x=l.minX,l.y=l.minY,l.width=l.maxX-l.minX,l.height=l.maxY-l.minY,l},drawInner:function(e){for(var t=this.get("children"),n=0;n-1?(null===e.get("canvas")&&(e=r.clone(e)),e.set("parent",t.get("parent")),e.set("context",t.get("context")),e.inside=function(n,r){var i=new a(n,r,1);return e.invert(i,t.get("canvas")),e.__isPointInFill(i.x,i.y)},e):null}}},function(e,t,n){function r(e){var t=e.elements;return 1===t[0]&&0===t[1]&&0===t[3]&&1===t[4]&&0===t[6]&&0===t[7]}function a(e){var t=e.elements;return 0===t[1]&&0===t[3]&&0===t[6]&&0===t[7]}function i(e,t){r(t)||(a(t)?(e.elements[0]*=t.elements[0],e.elements[4]*=t.elements[4]):e.multiply(t))}var o=n(1),s=n(3).Matrix3;e.exports={initTransform:function(){this.__m=new s},translate:function(e,t){return this.__m.translate(e,t),this.clearTotalMatrix(),this},rotate:function(e){return this.__m.rotate(e),this.clearTotalMatrix(),this},scale:function(e,t){return this.__m.scale(e,t),this.clearTotalMatrix(),this},rotateAtStart:function(e){var t=this.attr("x"),n=this.attr("y");Math.abs(e)>2*Math.PI&&(e=e/180*Math.PI),this.transform([["t",-t,-n],["r",e],["t",t,n]])},move:function(e,t){var n=this.get("x")||0,r=this.get("y")||0;this.translate(e-n,t-r),this.set("x",e),this.set("y",t)},transform:function(e){var t=this;return o.each(e,function(e){switch(e[0]){case"t":t.translate(e[1],e[2]);break;case"s":t.scale(e[1],e[2]);break;case"r":t.rotate(e[1]);break;case"m":t.__m=s.multiply(e[1],t.__m),t.clearTotalMatrix()}}),t},setTransform:function(e){return this.__m.identity(),this.transform(e)},getMatrix:function(){return this.__m},setMatrix:function(e){return this.__m=e,this.clearTotalMatrix(),this},apply:function(e,t){var n;return n=t?this._getMatrixByRoot(t):this.__m,e.applyMatrix(n),this},_getMatrixByRoot:function(e){var t=this;e=e||t;for(var n=t,r=[];n!==e;)r.unshift(n),n=n.get("parent");r.unshift(n);var a=new s;return o.each(r,function(e){a.multiply(e.__m)}),a},getTotalMatrix:function(){var e=this.__cfg.totalMatrix;if(!e){e=new s;var t=this.__cfg.parent;if(t){i(e,t.getTotalMatrix())}i(e,this.__m),this.__cfg.totalMatrix=e}return e},clearTotalMatrix:function(){},invert:function(e){var t=this.getTotalMatrix();if(a(t))e.x/=t.elements[0],e.y/=t.elements[4];else{var n=t.getInverse();e.applyMatrix(n)}return this},resetTransform:function(e){var t=this.__m.to2DObject();r(this.__m)||e.transform(t.a,t.b,t.c,t.d,t.e,t.f)}}},function(e,t,n){var r={Rect:n(79),Circle:n(68),Ellipse:n(70),Path:n(75),Text:n(80),Line:n(73),Image:n(72),Polygon:n(76),Polyline:n(77),Arc:n(67),Fan:n(71),Cubic:n(69),Quadratic:n(78),Marker:n(74)};e.exports=r},function(e,t){e.exports={xAt:function(e,t,n,r,a){return t*Math.cos(e)*Math.cos(a)-n*Math.sin(e)*Math.sin(a)+r},yAt:function(e,t,n,r,a){return t*Math.sin(e)*Math.cos(a)+n*Math.cos(e)*Math.sin(a)+r},xExtrema:function(e,t,n){return Math.atan(-n/t*Math.tan(e))},yExtrema:function(e,t,n){return Math.atan(n/(t*Math.tan(e)))}}},function(e,t,n){function r(e,t,n){return{x:n.x+e,y:n.y+t}}function a(e,t){return{x:t.x+(t.x-e.x),y:t.y+(t.y-e.y)}}function i(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function o(e,t){return(e[0]*t[0]+e[1]*t[1])/(i(e)*i(t))}function s(e,t){return(e[0]*t[1]1&&(a*=Math.sqrt(g),i*=Math.sqrt(g));var y=Math.sqrt((a*a*(i*i)-a*a*(v*v)-i*i*(m*m))/(a*a*(v*v)+i*i*(m*m)));n===r&&(y*=-1),isNaN(y)&&(y=0);var _=y*a*v/i,b=y*-i*m/a,x=(d+p)/2+Math.cos(u)*_-Math.sin(u)*b,M=(f+h)/2+Math.sin(u)*_+Math.cos(u)*b,w=s([1,0],[(m-_)/a,(v-b)/i]),k=[(m-_)/a,(v-b)/i],E=[(-1*m-_)/a,(-1*v-b)/i],S=s(k,E);return o(k,E)<=-1&&(S=Math.PI),o(k,E)>=1&&(S=0),0===r&&S>0&&(S-=2*Math.PI),1===r&&S<0&&(S+=2*Math.PI),[e,x,M,a,i,w,S,u,r]}var u=n(1),c=n(6),d=n(8),f=n(32),p=n(44),h=n(166),m=n(3),v=m.Vector2,g=m.Vector3,y=m.Matrix3,_=["m","l","c","a","q","h","v","t","s","z"],b=function(e,t,n){this.preSegment=t,this.isLast=n,this.init(e,t)};u.augment(b,{init:function(e,t){var n=e[0];t=t||{endPoint:{x:0,y:0}};var i,o,s,u,c=_.indexOf(n)>=0,d=c?n.toUpperCase():n,f=e,p=t.endPoint,h=f[1],m=f[2];switch(d){default:break;case"M":u=c?r(h,m,p):{x:h,y:m},this.command="M",this.params=[p,u],this.subStart=u,this.endPoint=u;break;case"L":u=c?r(h,m,p):{x:h,y:m},this.command="L",this.params=[p,u],this.subStart=t.subStart,this.endPoint=u,this.isLast&&(this.endTangent=function(){return new v(u.x-p.x,u.y-p.y)});break;case"H":u=c?r(h,0,p):{x:h,y:p.y},this.command="L",this.params=[p,u],this.subStart=t.subStart,this.endPoint=u,this.endTangent=function(){return new v(u.x-p.x,u.y-p.y)};break;case"V":u=c?r(0,h,p):{x:p.x,y:h},this.command="L",this.params=[p,u],this.subStart=t.subStart,this.endPoint=u,this.endTangent=function(){return new v(u.x-p.x,u.y-p.y)};break;case"Q":c?(i=r(h,m,p),o=r(f[3],f[4],p)):(i={x:h,y:m},o={x:f[3],y:f[4]}),this.command="Q",this.params=[p,i,o],this.subStart=t.subStart,this.endPoint=o,this.endTangent=function(){return new v(o.x-i.x,o.y-i.y)};break;case"T":o=c?r(h,m,p):{x:h,y:m},"Q"===t.command?(i=a(t.params[1],p),this.command="Q",this.params=[p,i,o],this.subStart=t.subStart,this.endPoint=o,this.endTangent=function(){return new v(o.x-i.x,o.y-i.y)}):(this.command="TL",this.params=[p,o],this.subStart=t.subStart,this.endPoint=o,this.endTangent=function(){return new v(o.x-p.x,o.y-p.y)});break;case"C":c?(i=r(h,m,p),o=r(f[3],f[4],p),s=r(f[5],f[6],p)):(i={x:h,y:m},o={x:f[3],y:f[4]},s={x:f[5],y:f[6]}),this.command="C",this.params=[p,i,o,s],this.subStart=t.subStart,this.endPoint=s,this.endTangent=function(){return new v(s.x-o.x,s.y-o.y)};break;case"S":c?(o=r(h,m,p),s=r(f[3],f[4],p)):(o={x:h,y:m},s={x:f[3],y:f[4]}),"C"===t.command?(i=a(t.params[2],p),this.command="C",this.params=[p,i,o,s],this.subStart=t.subStart,this.endPoint=s,this.endTangent=function(){return new v(s.x-o.x,s.y-o.y)}):(this.command="SQ",this.params=[p,o,s],this.subStart=t.subStart,this.endPoint=s,this.endTangent=function(){return new v(s.x-o.x,s.y-o.y)});break;case"A":var g=h,y=m,b=f[3],x=f[4],M=f[5];u=c?r(f[6],f[7],p):{x:f[6],y:f[7]},this.command="A",this.params=l(p,u,x,M,g,y,b),this.subStart=t.subStart,this.endPoint=u;break;case"Z":this.command="Z",this.params=[p,t.subStart],this.subStart=t.subStart,this.endPoint=t.subStart}},isInside:function(e,t,n){var r=this,a=r.command,i=r.params,o=r.box;if(o&&!d.box(o.minX,o.maxX,o.minY,o.maxY,e,t))return!1;switch(a){default:break;case"M":return!1;case"TL":case"L":case"Z":return d.line(i[0].x,i[0].y,i[1].x,i[1].y,n,e,t);case"SQ":case"Q":return d.quadraticline(i[0].x,i[0].y,i[1].x,i[1].y,i[2].x,i[2].y,n,e,t);case"C":return d.cubicline(i[0].x,i[0].y,i[1].x,i[1].y,i[2].x,i[2].y,i[3].x,i[3].y,n,e,t);case"A":var s=i,l=s[1],u=s[2],c=s[3],f=s[4],p=s[5],h=s[6],m=s[7],v=s[8],_=c>f?c:f,b=c>f?1:c/f,x=c>f?f/c:1;s=new g(e,t,1);var M=new y;return M.translate(-l,-u),M.rotate(-m),M.scale(1/b,1/x),s.applyMatrix(M),d.arcline(0,0,_,p,p+h,1-v,n,s.x,s.y)}return!1},draw:function(e){var t,n,r,a=this.command,i=this.params;switch(a){default:break;case"M":e.moveTo(i[1].x,i[1].y);break;case"TL":case"L":e.lineTo(i[1].x,i[1].y);break;case"SQ":case"Q":t=i[1],n=i[2],e.quadraticCurveTo(t.x,t.y,n.x,n.y);break;case"C":t=i[1],n=i[2],r=i[3],e.bezierCurveTo(t.x,t.y,n.x,n.y,r.x,r.y);break;case"A":var o=i,s=o[1],l=o[2],u=s,c=l,d=o[3],f=o[4],p=o[5],h=o[6],m=o[7],v=o[8],g=d>f?d:f,y=d>f?1:d/f,_=d>f?f/d:1;e.translate(u,c),e.rotate(m),e.scale(y,_),e.arc(0,0,g,p,p+h,1-v),e.scale(1/y,1/_),e.rotate(-m),e.translate(-u,-c);break;case"Z":e.closePath()}},getBBox:function(e){var t,n,r,a,i=e/2,o=this.params;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(o[0].x,o[1].x)-i,maxX:Math.max(o[0].x,o[1].x)+i,minY:Math.min(o[0].y,o[1].y)-i,maxY:Math.max(o[0].y,o[1].y)+i};break;case"SQ":case"Q":for(n=p.extrema(o[0].x,o[1].x,o[2].x),r=0,a=n.length;rw&&(w=S)}var C=h.yExtrema(g,c,d),T=1/0,L=-1/0,O=[_,b];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var P=C+r;1===y?_L&&(L=D)}this.box={minX:M-i,maxX:w+i,minY:T-i,maxY:L+i}}}}),e.exports=b},function(e,t){var n=document.createElement("table"),r=document.createElement("tr"),a=/^\s*<(\w+|!)[^>]*>/,i={tr:document.createElement("tbody"),tbody:n,thead:n,tfoot:n,td:r,th:r,"*":document.createElement("div")};e.exports={getBoundingClientRect:function(e){var t=e.getBoundingClientRect(),n=document.documentElement.clientTop,r=document.documentElement.clientLeft;return{top:t.top-n,bottom:t.bottom-n,left:t.left-r,right:t.right-r}},getStyle:function(e,t){return window.getComputedStyle?window.getComputedStyle(e,null)[t]:e.currentStyle[t]},modiCSS:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);return e},createDom:function(e){var t=a.test(e)&&RegExp.$1;t in i||(t="*");var n=i[t];return e=e.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+e,n.childNodes[0]},addEventListener:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0}}},function(e,t){e.exports={transform:function(e,t){e=e.clone();for(var n=0,r=t.length;n>16&255)/255,this.space.g=(e>>8&255)/255,this.space.b=(255&e)/255,this},setStyle:function(e){var t;if(t=l.hex.exec(e)){var n=t[1],r=n.length;if(3===r)return this.setRGB(parseInt(n.charAt(0)+n.charAt(0),16)/255,parseInt(n.charAt(1)+n.charAt(1),16)/255,parseInt(n.charAt(2)+n.charAt(2),16)/255),this;if(6===r)return this.setRGB(parseInt(n.charAt(0)+n.charAt(1),16)/255,parseInt(n.charAt(2)+n.charAt(3),16)/255,parseInt(n.charAt(4)+n.charAt(5),16)/255),this}else if(t=l.space.exec(e)){var a,i=t[1],o=t[2];switch(i){case"rgb":if(a=l.rgbNum.exec(o))return this.setRGB(parseInt(a[1],10)/255,parseInt(a[2],10)/255,parseInt(a[3],10)/255),this;if(a=l.rgbPre.exec(o))return this.setRGB(parseInt(a[1],10)/100,parseInt(a[2],10)/100,parseInt(a[3],10)/100),this;break;case"rgba":if(a=l.rgbaNum.exec(o))return this.setRGB(parseInt(a[1],10)/255,parseInt(a[2],10)/255,parseInt(a[3],10)/255,parseFloat(a[4])),this;if(a=l.rgbaPre.exec(o))return this.setRGB(parseInt(a[1],10)/100,parseInt(a[2],10)/100,parseInt(a[3],10)/100,parseFloat(a[4])),this;break;case"hsl":if(a=l.hsl.exec(o))return this.setHSL(parseInt(a[1],10)/360,parseInt(a[2],10)/100,parseInt(a[3],10)/100),this;break;case"hsla":if(a=l.hsla.exec(o))return this.setHSL(parseInt(a[1],10)/360,parseInt(a[2],10)/100,parseInt(a[3],10)/100,parseFloat(a[4])),this}}else e=e.toLowerCase(),void 0!==s[e]?this.setHex(s[e]):this.setHex(s.black)},copy:function(e){this.space=e.space.clone()},clone:function(){return new r(this)}}),e.exports=r},function(e,t){e.exports={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074}},function(e,t,n){"use strict";var r=n(1),a=n(6),i=function(){this.h=0,this.s=0,this.l=0};r.augment(i,{type:"hsl",setHSL:function(e,t,n,r){this.h=a.mod(e,1),this.s=a.clamp(t,0,1),this.l=a.clamp(n,0,1),this.a=void 0!==r?a.clamp(r,0,1):void 0},toRGB:function(){function e(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+6*(t-e)*(2/3-n):e}return function(){var t=this,n=t.h,r=t.s,a=t.l;if(0===r)return{r:a,g:a,b:a,a:t.a};var i=a<=.5?a*(1+r):a+r-a*r,o=2*a-i;return{r:e(o,i,n+1/3),g:e(o,i,n),b:e(o,i,n-1/3),a:t.a}}}(),clone:function(){var e=new i;return e.h=this.h,e.s=this.s,e.l=this.l,e.a=this.a,e},copy:function(e){return this.h=e.h,this.s=e.s,this.l=e.l,this.a=e.a,this},getStyle:function(){var e=this;return void 0===e.a?"hsl("+Math.round(360*e.h)+", "+Math.round(100*e.s)+"%, "+Math.round(100*e.l)+"%)":"hsla("+Math.round(360*e.h)+", "+Math.round(100*e.s)+"%, "+Math.round(100*e.l)+"%, "+e.a+")"}}),e.exports=i},function(e,t,n){"use strict";var r=n(1),a=n(6),i=function(){this.r=0,this.g=0,this.b=0,this.type="rgb"};r.augment(i,{type:"rgb",setRGB:function(e,t,n,r){this.r=a.clamp(e,0,1),this.g=a.clamp(t,0,1),this.b=a.clamp(n,0,1),this.a=void 0!==r?a.clamp(r,0,1):void 0},toHSL:function(){var e,t,n=this.r,r=this.g,a=this.b,i=Math.max(n,r,a),o=Math.min(n,r,a),s=(o+i)/2;if(o===i)e=0,t=0;else{var l=i-o;switch(t=s<=.5?l/(i+o):l/(2-i-o),i){case n:e=(r-a)/l+(r1&&w>1&&(y=e[0][0][0],b=e[0][0][1],_=e[1][0][0]-e[0][0][0],x=e[0][1][1]-e[0][0][1])}function r(e,t){return[a(!0,e,t),a(!1,e,t)]}function a(e,t,n){var r=M,a=w,o=[];e?a--:r--;for(var s=0;s0&&h<1}else p>0?(o[s][l].rate=-2,o[s][l].have_iso_point=!1):p<0&&(o[s][l].rate=(n-u)/(c-u),o[s][l].have_iso_point=!0)}}}return o}function i(e,t){return Math.abs(e-t)<1e-9}function o(e,t,n,r){var a=0,i=0,o=u(),l=u();for(a=0;aa.row?(e.clone(r),e.isHorizon=!1,t.clone(e),t.col+=1,n.clone(r),void(n.row+=1)):r.col>a.col?(t.clone(r),t.isHorizon=!0,e.clone(t),e.row+=1,n.clone(r),void(n.col+=1)):r.isHorizon?(t.clone(r),t.row-=1,t.isHorizon=!1,e.clone(t),e.col+=1,n.clone(r),void(n.row-=1)):(e.clone(r),e.col-=1,e.isHorizon=!0,t.clone(e),t.row+=1,n.clone(r),void(n.col-=1))}function h(e,t,n){var r=n.row,a=n.col;return n.isHorizon?e[r][a].have_iso_point:t[r][a].have_iso_point}function m(e,t,n,r){var a=l(e,n,r),i=l(t,n,r),o=a.x-i.x,s=a.y-i.y;return Math.sqrt(o*o+s*s)}function v(e,t,n,r){var a,i,o=u(),s=u();for(i=0;i0?f:-f,{x:f}}}),e.exports=c},function(e,t,n){"use strict";function r(e){var t={};a.mix(t,r.ATTRS,e),r.superclass.constructor.call(this,t),this._init()}var a=n(1),i=n(26);r.ATTRS={start:{x:0,y:0},end:{x:0,y:0},top:.5},a.extend(r,i),a.augment(r,{type:"triAngle",triAngle:!0,_init:function(){return this.setTopfactor(),this},setTopfactor:function(){var e=this,t=e.get("start"),n=e.get("end"),r={x:n.x,y:t.y},a={x:t.x+(n.x-t.x)*e.get("top"),y:n.y};e.getXStart=function(e){return t.x+(a.x-t.x)/(a.y-t.y)*(e-t.y)},e.getXEnd=function(e){return r.x+(a.x-r.x)/(a.y-r.y)*(e-r.y)}},set:function(e,t){return this._attrs[e]=t,"top"===e&&this.setTopfactor(),this},convertPoint:function(e){var t=this,n=t.get("start"),r=t.get("end"),a=e.y,i=e.x;isNaN(a)&&(a=0),a=n.y+(r.y-n.y)*a;var o=t.getXStart(a);return i=o+(t.getXEnd(a)-o)*i,{x:i,y:a}},invertPoint:function(e){var t=this,n=t.get("start"),r=t.get("end"),a=t.getXStart(e.y),i=t.getXEnd(e.y);return{x:-(e.x-a)/(a-i),y:-(e.y-n.y)/(r.y-n.y)}}}),e.exports=r},function(e,t){"use strict";function n(e){return e instanceof Date?e:new Date(e)}function r(e,t,n){var r=new Date(n);switch(isNaN(r)&&(r=new Date),t=parseInt(t,10),e){case"s":r=new Date(r.getTime()+1e3*t);break;case"n":r=new Date(r.getTime()+6e4*t);break;case"h":r=new Date(r.getTime()+36e5*t);break;case"d":r=new Date(r.getTime()+864e5*t);break;case"w":r=new Date(r.getTime()+6048e5*t);break;case"m":r=new Date(r.getFullYear(),r.getMonth()+t,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds());break;case"y":r=new Date(r.getFullYear()+t,r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds())}return r}var a=/^(?:(?!0000)[0-9]{4}([-\/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-\/.]?)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/,i=function(){var e=/w{1}|d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,t=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,n=/[^-+\dA-Z]/g,r=function(e,t){for(e=String(e),t=t||2;e.length99?Math.round(g/10):g,void 0),t:h<12?"a":"p",tt:h<12?"am":"pm",T:h<12?"A":"P",TT:h<12?"AM":"PM",Z:l?"UTC":(String(o).match(t)||[""]).pop().replace(n,""),o:(y>0?"-":"+")+r(100*Math.floor(Math.abs(y)/60)+Math.abs(y)%60,4),S:["th","st","nd","rd"][c%10>3?0:(c%100-c%10!=10)*c%10]};return s.replace(e,function(e){return e in _?_[e]:e.slice(1,e.length-1)})}}(),o={add:function(e,t,n){return r(e,t,n)},addHour:function(e,t){return r("h",e,t)},addMinute:function(e,t){return r("n",e,t)},addSecond:function(e,t){return r("s",e,t)},addDay:function(e,t){return r("d",e,t)},addWeek:function(e,t){return r("w",e,t)},addMonths:function(e,t){return r("m",e,t)},addYear:function(e,t){return r("y",e,t)},isDateEquals:function(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()},isEquals:function(e,t){return e===t||!(!e||!t)&&!(!e.getTime||!t.getTime)&&e.getTime()===t.getTime()},isDateString:function(e){return a.test(e)},format:function(e,t,n){return i(e,t,n)},parse:function(e){return"string"==typeof e&&(e=e.replace(/-/g,"/")),n(e)},today:function(){var e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate())},getDate:function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}};e.exports=o},function(e,t,n){"use strict";var r=n(1),a=function(e,t,n,r){this.type=e,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=r,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=t};r.augment(a,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return r.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),e.exports=a},function(e,t,n){var r=n(35);r.Facet=n(27),r.Rect=n(85),r.List=n(84),r.Circle=n(185),r.Tree=n(187),r.Mirror=n(186),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){return{x:e.x+t*Math.cos(n),y:e.y+t*Math.sin(n)}}var a=n(1),i=n(35),o=n(2),s=n(27),l=function(e){l.superclass.constructor.call(this,e)};a.extend(l,i),a.augment(l,{getRegion:function(e,t){var n=this,a=n.plotRange,i=Math.min(a.getWidth(),a.getHeight())/2,o=2*Math.PI/e,s=-1*Math.PI/2+o*t,l=i/(1+1/Math.sin(o/2)),u=n.getCenter(),c=r(u,i-l,s);return n.getFacetRegion(c,l)},getFacetRegion:function(e,t){var n=3*Math.PI/4,a=-1*Math.PI*1/4;return{start:r(e,t,n),end:r(e,t,a)}},getCenter:function(){var e=this,t=e.plotRange,n=t.tl,r=t.getWidth(),a=t.getHeight();return{x:n.x+r/2,y:n.y+a/2}},generateFacets:function(e){var t=this,n=t.dims,r=n[0];if(!r)throw new Error("Please specify for the field for facet!");var i=t.getDimValues(r,e),l=i.length,u=[],c=0;return a.each(i,function(n,a){var d=[{dim:r,value:n,values:i}],f=t.getFilter(d),p=o.filter(e,f),h=new s({type:t.type,xValue:n,xDim:r,colIndex:a,cols:l,rows:1,rowIndex:0,frame:p,region:t.getRegion(l,a),index:c++});u.push(h)}),u}}),e.exports=l},function(e,t,n){"use strict";var r=n(1),a=n(84),i=function(e){i.superclass.constructor.call(this,e),this._init()};r.extend(i,a),r.augment(i,{type:"mirror",transpose:!1,drawTitles:function(e,t){var n=this,a=n.dims,i=n.transpose?"col":"row";r.each(e,function(e){n.drawFacetTitle(i,e,t)}),n.drawDimTitle(i,a[0],t)},_init:function(){var e=this;if(!e.dims[0])throw new Error("Please specify for the field for facet!");e.transpose?(e.cols=2,e.rows=1):(e.cols=1,e.rows=2)},getRegion:function(e,t,n,r){var a,i,o=this,s=o.plotRange,l=o.margin,u=s.tl,c=s.br;t>1?(a=(c.x-u.x-l)/t,i=c.y-u.y):(a=c.x-u.x,i=(c.y-u.y-l)/e);var d={x:u.x+a*n+n*l,y:u.y+i*(r+1)+l*r};return{start:d,end:{x:d.x+a,y:d.y-i}}}}),e.exports=i},function(e,t,n){"use strict";var r=n(1),a=n(35),i=n(2),o=n(27),s=function(e){s.superclass.constructor.call(this,e)};r.extend(s,a),r.augment(s,{rootTitle:"",line:{stroke:"red"},smooth:!1,generateFacets:function(e){var t=this;if(!t.dims.length)throw new Error("Please specify for the fields for facet!");var n=[],r=t.getRootFacet(e);return n.push(r),r.children=t.getChildFacets(e,1,n),t.setRegion(n),n},getRows:function(){return this.dims.length+1},drawTitles:function(e,t){var n=this;n.drawLines(e,t),r.each(e,function(e){n.drawFacetTitle("col",e,t)})},drawLines:function(e,t){var n=this,a=t.addGroup();r.each(e,function(e){if(!n.isLeaf(e)){var t=e.children;n._addFacetLines(e,t,a)}})},_addFacetLines:function(e,t,n){var a=this,i=e.region,o={x:i.start.x+(i.end.x-i.start.x)/2,y:i.start.y};r.each(t,function(e){var t=e.region,r={x:t.start.x+(t.end.x-t.start.x)/2,y:t.end.y},i={x:o.x,y:o.y+(r.y-o.y)/2},s={x:r.x,y:i.y};a._drawLine([o,i,s,r],n)})},_getPath:function(e){var t=this,n="";if(t.smooth){var a=[];a.push(["M",e[0].x,e[0].y]),a.push(["C",e[1].x,e[1].y,e[2].x,e[2].y,e[3].x,e[3].y]),n=a.join(" ")}else r.each(e,function(e,t){var a=0===t?"M {x} {y}":"L {x} {y}";n+=r.substitute(a,e)});return n},_drawLine:function(e,t){var n=this,a=n._getPath(e),i=n.line;t.addShape("Path",{attrs:r.mix({path:a},i)})},getRootFacet:function(e){var t=this;return new o({type:t.type,rows:t.getRows(),rowIndex:0,colIndex:0,xValue:t.rootTitle,frame:e,index:0})},getChildFacets:function(e,t,n){var a=this,s=[],l=a.dims;if(l.length=0;o--)for(var s=t.getFacetsByLevel(e,o),l=0;l=0;s--){r[s]=i[s];for(var l=s+1;l0?s=l.getElementsByClassName("guideWapper")[0]:(s=a.createDom('
    '),s=a.modiCSS(s,{position:"absolute",top:0,left:0}),l.appendChild(s)),s.appendChild(o);var u=n.cfg;if(u.align){var c=u.align,d=a.getWidth(o),f=a.getHeight(o),p=r(c,d,f);i.x=i.x+p[0],i.y=i.y+p[1]}if(u.offset){var h=u.offset;i.x=i.x+h[0],i.y=i.y+h[1]}a.modiCSS(o,{top:Math.floor(i.y)+"px",left:Math.floor(i.x)+"px",visibility:"visible"})}}),e.exports=o},function(e,t,n){"use strict";var r=n(1),a=n(11),i=function(e){i.superclass.constructor.call(this,e)};r.extend(i,a),r.augment(i,{start:[],end:null,src:"",paint:function(e,t){var n=this,a=n.parsePoint(e,n.start),i=n.cfg;if(i.img=i.src,i=r.mix({src:n.src},i,a),n.end){var o=n.parsePoint(e,n.end);i.x=a.x,i.y=o.y,i.width=o.x-a.x,i.height=a.y-o.y}else i.y=i.y-i.height;t.addShape("Image",{attrs:i})}}),e.exports=i},function(e,t,n){"use strict";var r=n(1),a=n(11),i=function(e){i.superclass.constructor.call(this,e)};r.extend(i,a),r.augment(i,{from:[],to:[],cfg:{stroke:"#000",lineWidth:1},paint:function(e,t){var n=this,a=n.parsePoint(e,n.from),i=n.parsePoint(e,n.to),o=n.cfg,s=r.substitute("M {x} {y}",a)+r.substitute("L {x} {y}",i);o=r.mix({path:s},o),t.addShape("Path",{attrs:o})}}),e.exports=i},function(e,t,n){"use strict";var r=n(1),a=n(11),i=function(e){i.superclass.constructor.call(this,e)};r.extend(i,a),r.augment(i,{start:[],end:[],cfg:{stroke:"#000"},getPath:function(e){var t=this,n=t.parsePoint(e,t.start),r=t.parsePoint(e,t.end),a=[];return a.push(["M",n.x,n.y]),a.push(["L",r.x,n.y]),a.push(["L",r.x,r.y]),a.push(["L",n.x,r.y]),a.push(["z"]),a},paint:function(e,t){var n=this,a=n.cfg,i=n.getPath(e);a=r.mix({path:i},a),t.addShape("Path",{attrs:a})}}),e.exports=i},function(e,t,n){"use strict";var r=n(1),a=n(11),i=function(e){i.superclass.constructor.call(this,e)};r.extend(i,a),r.augment(i,{from:[],to:[],text:"",cfg:{line:{stroke:"#000",lineWidth:1},text:{fill:"#000"},rect:{stroke:"#000",lineWidth:1,fill:"#fff"}},paint:function(e,t){var n=this,r=n.parsePoint(e,n.from),a=n.parsePoint(e,n.to),i=t.addGroup();n.drawLine(r,a,i),n.drawText(a,i)},drawLine:function(e,t,n){var a=this,i=r.substitute("M {x} {y}",e)+r.substitute("L {x} {y}",t),o=r.mix({path:i},a.cfg.line);n.addShape("Path",{attrs:o})},drawText:function(e,t){var n=this,a=r.mix({text:n.text},n.cfg.text,e),i=t.addShape("Text",{zIndex:1,attrs:a}),o=i.getBBox(),s=r.mix({x:o.minX-10,y:o.minY-10,width:o.width+20,height:o.height+20},n.cfg.rect);t.addShape("rect",{attrs:s}),t.sort()}}),e.exports=i},function(e,t,n){"use strict";var r=n(1),a=n(11),i=function(e){i.superclass.constructor.call(this,e)};r.extend(i,a),r.augment(i,{position:[],text:"",cfg:{fill:"#000",textAlign:"center"},paint:function(e,t){var n=this,a=n.position,i=n.parsePoint(e,a),o=n.cfg;o=r.mix({text:n.text},o,i),t.addShape("Text",{attrs:o})}}),e.exports=i},function(e,t,n){"use strict";var r=n(1),a=document.createElement("table"),i=document.createElement("tr"),o=/^\s*<(\w+|!)[^>]*>/,s={tr:document.createElement("tbody"),tbody:a,thead:a,tfoot:a,td:i,th:i,"*":document.createElement("div")};r.mix(r,{modiCSS:function(e,t){var n;for(n in t)!0===t.hasOwnProperty(n)&&(e.style[n]=t[n]);return e},createDom:function(e){var t=o.test(e)&&RegExp.$1;t in s||(t="*");var n=s[t];return e=e.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+e,n.childNodes[0]},getStyle:function(e,t){return window.getComputedStyle?window.getComputedStyle(e,null)[t]:e.currentStyle[t]},getWidth:function(e){var t=this.getStyle(e,"width");return"auto"===t&&(t=e.offsetWidth),parseFloat(t)},getHeight:function(e){var t=this.getStyle(e,"height");return"auto"===t&&(t=e.offsetHeight),parseFloat(t)}}),e.exports=r},function(e,t,n){"use strict";var r=n(1),a=n(330),i=function(e){r.mix(this,e)};r.augment(i,{get:function(e){return this[e]},set:function(e,t){this[e]=t},width:500,height:500,x:0,y:0,min:null,max:null,formatter:function(e){return e},radius:60,blur:0,colors:["rgb(0,0,255)","rgb(0,0,255)","rgb(0,255,0)","yellow","rgb(255,0,0)"],_mkcircle:function(e,t,n,r){var a=this.blur,i=this.radius,o=r.createRadialGradient(e,t,i*a,e,t,i);o.addColorStop(0,"rgba(0, 0, 0, 1)"),o.addColorStop(1,"rgba(0, 0, 0, 0)"),r.globalAlpha=n,r.fillStyle=o},_colorise:function(e){for(var t=this.width,n=this.height,r=e.getImageData(this.x,this.y,t,n),i=r.data,o=i.length,s=this.colors,l=a.gradient(s),u=3;u=0;n--)t.push(e[n][2]);var a=r.isNull(this.max)?Math.max.apply(null,t):this.max,i=r.isNull(this.min)?Math.min.apply(null,t):this.min;if(a===i)return!1;var o=document.createElement("canvas"),s=o.getContext("2d");o.width=this.width+this.x,o.height=this.height+this.y;for(var l=this.formatter,n=e.length-1;n>=0;n--){var u=(l(e[n][2])-l(i))/(l(a)-l(i));this._mkcircle(e[n][0],e[n][1],u,s),s.fillRect(0,0,this.width+this.x,this.height+this.y)}return this._colorise(s)}}),e.exports=i},function(e,t,n){var r=n(204);e.exports={interpolation:r.interpolation,unInterpolation:r.unInterpolation}},function(e,t,n){"use strict";function r(e,t){for(var n=[],a=Math.min(e.length,t.length),s=0;s=1)return t.path;if(n<=0)return e.path;for(var o=0;o0&&e.inEdges.forEach(function(e){var i,o=t._findObj(e[n]);i=r.isNull(o.step)?t._getStepFromEdges(o):o.step,a=Math.max(i+1,a)}),e.step=a,t.totalStep=Math.max(t.totalStep,a+1),a},_findObj:function(e){return this.nodesMap[e]},getNodes:function(){var e=this,t=e.nodes,n=e.sourceField,a=e.targetField,i=e.stepField,o=e.valueField,s=[],l=[],u=[];t.forEach(function(e){var t=e[i];void 0===l[t]&&(l[t]=[]),l[t].push(e),r.isNull(s[t])?s[t]=e[o]:s[t]+=e[o]}),e.maxValue=Math.max.apply(null,s),e.totalStep=l.length,e._setMarginWidth(l[0]),e._layoutByWeight(l[0]),e._layoutNodes(l,n);for(var c=e.calculationTimes;c>0;c--)e._layoutNodes(l.reverse(),a),e._layoutNodes(l.reverse(),n);return l.forEach(function(e){u=u.concat(e)}),e.normalization(u),u},normalization:function(e){var t=1;e.forEach(function(e){e.x>t&&(t=e.x)}),t>1&&e.map(function(e){e.x=e.x/t,e.width=e.width/t})},_layoutNodes:function(e,t){var n=this;if(e.length>=2){var r;for(r=1;r0&&n.x-.5*n.width<=e[r-1].x+.5*e[r-1].width+2*t&&(n.x=e[r-1].x+.5*e[r-1].width+2*t+.5*n.width)})},_layoutHighStep:function(e,t){var n=this,r=n.valueField,a=n.maxValue,i=n.thickness,o=n.marginWidth,s=n.y,l=t===n.sourceField?n.targetField:n.sourceField;e.map(function(e){var u,c=n._getEdgeOfCurNode(e,l),d=0;c.forEach(function(a){u=n._findObj(a[t]);var i=a[r];d+=u.x*i/e[r]}),e.x=d,e.weight=e[r]/a,e.width=e.weight*(1-o),e.height=i,e.y=void 0===e.y?s:e.y})},getEdges:function(){for(var e=this.calculationTimes;e>0;e--)this._layoutEdges();return this.edges},_layoutEdges:function(){var e=this,t=e.nodes,n=e.stepField,r=e.targetField,a=e.sourceField,i=e.totalStep;t.forEach(function(t){0!==t[n]&&e._edgeSort(t.inEdges,a)}),t.forEach(function(t){t[n]!==i&&e._edgeSort(t.outEdges,r)})},_edgeSort:function(e,t){var n=this,a=n.edges;e.sort(function(e,r){return n._findObj(e[t]).x-n._findObj(r[t]).x}),e.forEach(function(i,o){for(var s=0;sn._findObj(i[t]).x?r.insertBefore(a,u,l):r.insertAfter(a,u,l)}})},_findIndex:function(e,t){var n=this.sourceField,r=this.targetField;return e.findIndex(function(e){return e[n]===t[n]&&e[r]===t[r]})}}),e.exports=i},function(e,t,n){"use strict";var r=n(1),a=function(e){r.mix(this,e)};r.augment(a,{parent:null,level:0,children:null,x:0,y:0}),e.exports=a},function(e,t,n){"use strict";function r(e){return e/2}var a=n(1),i="level",o=n(211),s=function(e){a.mix(this,e),this._init()};a.augment(s,{nodes:null,childrenField:"children",collapsedField:"collapsed",width:1,height:1,_levels:1,idField:null,edgeFields:null,_preX:{},dx:0,dy:0,nodeAlign:"start",_totalLeafCount:0,_init:function(){var e=this,t=e.nodes.slice(0);e._traverseNodes(t),e.originDx=e.dx,e.originDy=e.dy,e.nodes=t,e._initDxDy()},_initDxDy:function(){var e=this,t=e.nodes,n=e._levels;e._preX={};var r=e._getAlignCount(t);e._totalLeafCount=r,e.originDx||(e.dx=e.width/(r+.5)),e.originDy||(e.dy=e.height/n)},reset:function(){this._initDxDy()},_traverseNodes:function(e,t){var n,r,o=this;t?(n=t[i]+1,r=t.id):(n=0,r="");var s=o.childrenField,l=o.idField;a.each(e,function(e,a){e[i]=n,e.parent=t,l&&(e.id=e[l]),e.id||(e.id=r?r+"-"+a:a.toString());var u=e[s];u&&u.length?o._traverseNodes(e[s],e):n+1>o._levels&&(o._levels=n+1)})},_getAlignCount:function(e){var t=this,n=0,i=0,o=0,s=t.childrenField,l=e.length,u=t.collapsedField;return a.each(e,function(e,a){var c=e[s];if(c&&c.length&&!e[u]){var d=o/2;n+=d,d>1&&d0&&s;){var u=o-1,c=n[u]||0;if(c>i&&(i=c,l=s),o=u,s.parent&&s.parent.children[0]!==s)break;s=s.parent}return l},_layoutNodes:function(e,t){var n=this,r=n.childrenField,s=n.collapsedField,l=e.length;a.each(e,function(e,a){var u=e[r],c=e[i],d=n.dx,f=n.dy,p=new o(e);t.push(p),p.y=c*f,"middle"===n.nodeAlign?p.y+=.5*f:"end"===n.nodeAlign&&(p.y+=f);var h=n._preX[c]||0;if(u&&u.length&&!e[s]){n._layoutNodes(u,t);var m=u[0],v=u[u.length-1],g=(m.x+v.x)/2;p.x=Math.max(g,h+d),n._preX[c]=p.x}else{if(e.parent&&0===a){var y=n._getMaxPreXParent(e.parent),_=n._preX[c-1]||0;if(y)if(_=n._preX[y.level]||0,y===e.parent&&1===e.parent.children.length);else{var b=y._alignCount;_-=_1&&(n._preX[c]+=.5*d)}e.x=p.x,e.y=p.y})},_getEdges:function(e,t){var n=this,r=[],i=n.childrenField,o=n.collapsedField,s=n.edgeFields;return t&&t[o]?r:(a.each(e,function(e){if(t){var o={source:t.id,target:e.id};s&&a.each(s,function(t){o[t]=e[t]}),r.push(o)}e[i]&&(r=r.concat(n._getEdges(e[i],e)))}),r)},getNodes:function(){var e=this,t=e.nodes,n=[];return e._layoutNodes(t,n),e._fixedRange(n),n},_fixedRange:function(e){var t=0,n=this.width;if(this._totalLeafCount>3){a.each(this._preX,function(e){t=n)){var r=e.splice(t,1)[0];e.splice(n,0,r)}}}),e.exports=r},function(e,t,n){var r;r={albers:n(215),mercator:n(216),orthographic:n(217)},e.exports=r},function(e,t,n){"use strict";var r=n(1),a=n(48),i=function(e){i.superclass.constructor.call(this,e),this._init()};r.extend(i,a),r.augment(i,{"\u03bb0":0,"\u03c60":0,"\u03c61":0,"\u03c62":0,basic:[0,0,0,60],_init:function(){this.\u03bb0=this.toRadians(this.basic[0]),this.\u03c60=this.toRadians(this.basic[1]),this.\u03c61=this.toRadians(this.basic[2]),this.\u03c62=this.toRadians(this.basic[3])},project:function(e,t){var n=this.\u03bb0,r=(this.\u03c60,this.\u03c61),a=this.\u03c62,i=.5*(Math.sin(r)+Math.sin(a)),o=Math.cos(r),s=o*o+2*i*Math.sin(r),l=Math.sqrt(s-2*i*Math.sin(n))/i,u=i*(this.toRadians(e)-n),c=Math.sqrt(s-2*i*Math.sin(this.toRadians(t)))/i;return{x:this.toDegrees(c*Math.sin(u)),y:this.toDegrees(l-c*Math.cos(u))}},invert:function(e){var t=this.\u03bb0,n=(this.\u03c60,this.\u03c61),r=this.\u03c62,a=this.toRadians(e.x),i=this.toRadians(e.y),o=.5*(Math.sin(n)+Math.sin(r)),s=Math.cos(n),l=s*s+2*o*Math.sin(n),u=Math.sqrt(l-2*o*Math.sin(t))/o,c=Math.atan(a/(u-i)),d=Math.sqrt(a*a+Math.pow(u-i,2));return{x:this.toDegrees(t+c/o),y:this.toDegrees(Math.asin((l-d*d*o*o)/(2*o)))}}}),e.exports=i},function(e,t,n){"use strict";var r=n(1),a=n(48),i=function(e){i.superclass.constructor.call(this,e),this._init()};r.extend(i,a),r.augment(i,{"\u03bb0":0,_init:function(){this.\u03bb0=this.toRadians(this.\u03bb0)},project:function(e,t){return e=this.toRadians(e),t=this.toRadians(t),{x:this.toDegrees(e-this.\u03bb0),y:this.toDegrees(Math.log(Math.tan(Math.PI/4+t/2)))}},invert:function(e){var t=this.toRadians(e.x),n=this.toRadians(e.y);return{x:this.toDegrees(t+this.\u03bb0),y:this.toDegrees(2*Math.atan(Math.exp(n))-Math.PI/2)}}}),e.exports=i},function(e,t,n){"use strict";var r=n(1),a=n(48),i=function(e){i.superclass.constructor.call(this,e),this._init()};r.extend(i,a),r.augment(i,{"\u03bb0":110,"\u03c61":25,_init:function(){this.\u03bb0=this.toRadians(this.\u03bb0),this.\u03c61=this.toRadians(this.\u03c61)},project:function(e,t){e=this.toRadians(e),t=this.toRadians(t);var n=Math.cos(t)*Math.sin(e-this.\u03bb0),r=Math.cos(\u03c61)*Math.sin(t)-Math.sin(\u03c61)*Math.cos(t)*Math.cos(e-\u03bb0);return{x:this.toDegrees(n),y:this.toDegrees(r)}},invert:function(e){var t=this.toRadians(e.x),n=this.toRadians(e.y),r=Math.sqrt(t*t+n*n),a=Math.asin(r),i=this.\u03bb0+Math.atan(t*Math.sin(a)/(r*Math.cos(this.\u03c61)*Math.cos(a)-n*Math.sin(this.\u03c611)*Math.sin(a))),o=Math.asin(Math.cos(a)*Math.sin(this.\u03c61)+n*Math.sin(a)*Math.cos(this.\u03c61)/r);return{x:this.toDegrees(i),y:this.toDegrees(o)}}}),e.exports=i},function(e,t){"use strict";function n(e,t){var n=e.length;if(0===n)return NaN;var r=e[0];if(t=e[n-1])return e[n-1];for(var a=1;ae[n-1])return NaN;if(tn?n:e},snapTo:function(e,t){var a=n(e,t),i=r(e,t);if(isNaN(a)||isNaN(i)){if(e[0]>=t)return e[0];var o=e[e.length-1];if(o<=t)return o}return Math.abs(t-a)e.x&&(this.x=e.x),this.y>e.y&&(this.y=e.y),this},max:function(e){return this.xt.x&&(this.x=t.x),this.yt.y&&(this.y=t.y),this},clampScale:function(){var e,t;return function(n,a){return void 0===e&&(e=new r,t=new r),e.set(n,n),t.set(a,a),this.clamp(e,t)}}(),floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this},negate:function(){return this.x=-this.x,this.y=-this.y,this},dot:function(e){return this.x*e.x+this.y*e.y},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.lengthSq())},normalize:function(){return this.divideScaler(this.length())},distanceToSquared:function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},distanceTo:function(e){return Math.sqrt(this.distanceToSquared(e))},angleTo:function(e,t){var n=this.angle(e),a=r.direction(this,e)>=0;return t?a?2*Math.PI-n:n:a?n:2*Math.PI-n},vertical:function(e){return e?new r(this.y,-this.x):new r(-this.y,this.x)},angle:function(e){return r.angle(this,e)},setLength:function(e){var t=this.length();return 0!==t&&e!==t&&this.multiplyScaler(e/t),this},isZero:function(){return 0===this.x&&0===this.y},lerp:function(e,t){return this.copy(r.lerp(this,e,t))},equal:function(e){return i.equal(this.x,e.x)&&i.equal(this.y,e.y)},clone:function(){return new r(this.x,this.y)},rotate:function(e){var t=this.x*Math.cos(e)-this.y*Math.sin(e),n=this.x*Math.sin(e)+this.y*Math.cos(e);return this.x=t,this.y=n,this}}),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){if(1===arguments.length)if(a.isArray(e)){var r=e;e=r[0],t=r[1],n=r[2]}else if("vector2"===e.type){var i=e;e=i.x,t=i.y,n=1}this.x=e||0,this.y=t||0,this.z=n||0}var a=n(1),i=n(6);r.add=function(e,t){return new r(e.x+t.x,e.y+t.y,e.z+t.z)},r.sub=function(e,t){return new r(e.x-t.x,e.y-t.y,e.z-t.z)},r.lerp=function(e,t,n){return new r(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n,e.z+(t.z-e.z)*n)},r.cross=function(e,t){var n=e.x,a=e.y,i=e.z,o=t.x,s=t.y,l=t.z;return new r(a*l-i*s,i*o-n*l,n*s-a*o)},r.angle=function(e,t){var n=e.dot(t)/(e.length()*t.length());return Math.acos(i.clamp(n,-1,1))},a.augment(r,{type:"vector3",set:function(e,t,n){return this.x=e,this.y=t,this.z=n,this},setComponent:function(e,t){switch(e){case 0:return this.x=t,this;case 1:return this.y=t,this;case 2:return this.z=t,this;default:throw new Error("index is out of range:"+e)}},getComponent:function(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range:"+e)}},add:function(e){return this.copy(r.add(this,e))},sub:function(e){return this.copy(r.sub(this,e))},subBy:function(e){return this.copy(r.sub(e,this))},multiplyScaler:function(e){return this.x*=e,this.y*=e,this.z*=e,this},divideScaler:function(e){if(0!==e){var t=1/e;this.x*=t,this.y*=t,this.z*=t}else this.x=0,this.y=0,this.z=0;return this},min:function(e){return this.x>e.x&&(this.x=e.x),this.y>e.y&&(this.y=e.y),this.z>e.z&&(this.z=e.z),this},max:function(e){return this.xt.x&&(this.x=t.x),this.yt.y&&(this.y=t.y),this.zt.z&&(this.z=t.z),this},clampScale:function(){var e,t;return function(n,a){return void 0===e&&(e=new r,t=new r),e.set(n,n,n),t.set(a,a,a),this.clamp(e,t)}}(),floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},dot:function(e){return this.x*e.x+this.y*e.y+this.z*e.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.lengthSq())},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScaler(this.length())},setLength:function(e){var t=this.length();return 0!==t&&e!==t&&this.multiplyScaler(e/t),this},lerp:function(e,t){return this.copy(r.lerp(this,e,t))},cross:function(e){return this.copy(r.cross(this,e))},angle:function(e){return r.angle(this,e)},distanceToSquared:function(e){var t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r},distanceTo:function(e){return Math.sqrt(this.distanceToSquared(e))},applyMatrix:function(e){var t=e.elements,n=t[0]*this.x+t[3]*this.y+t[6]*this.z,r=t[1]*this.x+t[4]*this.y+t[7]*this.z,a=t[2]*this.x+t[5]*this.y+t[8]*this.z;return this.x=n,this.y=r,this.z=a,this},copy:function(e){return this.x=e.x,this.y=e.y,this.z=void 0!==e.z?e.z:1,this},equal:function(e){return i.equal(this.x,e.x)&&i.equal(this.y,e.y)&&i.equal(this.z,e.z)},clone:function(){return new r(this.x,this.y,this.z)}}),e.exports=r},function(e,t,n){"use strict";var r=n(38),a=n(1),i=function(e){i.superclass.constructor.call(this,e)};a.extend(i,r),a.augment(i,{type:"identity",value:null,getText:function(){return this.value.toString()},scale:function(){return 1},invert:function(){return this.value}}),e.exports=i},function(e,t,n){"use strict";function r(e,t){return 1===e?1:Math.log(t)/Math.log(e)}var a=n(1),i=n(37),o=function(e){o.superclass.constructor.call(this,e)};a.extend(o,i),a.augment(o,{type:"log",base:2,tickCount:10,_minTick:null,calculateTicks:function(){var e,t=this,n=t.base;if(t.min<0)throw new Error("The minimum value must be greater than zero");var i=r(n,t.max);if(t.min>0)e=Math.floor(r(n,t.min));else{var o=t.values,s=t.max;a.each(o,function(e){e>0&&e1&&(s=1),e=Math.floor(r(n,s)),t._minTick=e,t.positiveMin=s}for(var l=i-e,u=t.tickCount,c=Math.ceil(l/u),d=[],f=e;f=0?Math.round(r(n,t.min)):0)>a){var i=a;a=e,e=i}for(var o=a-e,s=t.tickCount,l=Math.ceil(o/s),u=[],c=e;c-1?a/(this.values.length-1):0,n+t*(r-n)},getText:function(e){var t="",n=this.translate(e);n>-1&&(t=this.values[n]);var r=this.formatter;return t=parseInt(t,10),t=r?r(t):i.format(t,this.mask)},getTicks:function(){var e=this,t=this.calculateTicks(!1),n=[];return a.each(t,function(t){var r;r=a.isObject(t)?t:{text:e.getText(t),value:e.scale(t)},n.push(r)}),n},_toTimeStamp:function(e){return s.toTimeStamp(e)}}),e.exports=l},function(e,t,n){"use strict";var r=n(37),a=n(1),i=n(30),o=n(46),s=n(93),l=function(e){l.superclass.constructor.call(this,e)};a.extend(l,r),a.augment(l,{type:"time",mask:"yyyy-mm-dd",init:function(){var e=this,t=e.values;if(t){var n=[],r=1/0,i=r,o=0;a.each(t,function(t){var a=e._toTimeStamp(t);r>a?(i=r,r=a):i>a&&(i=a),o1&&(e.minTickInterval=i-r),(a.isNull(e.min)||e._toTimeStamp(e.min)>r)&&(e.min=r),(a.isNull(e.max)||e._toTimeStamp(e.max)0){e[u].sort(l.bind(a));var i=e.x-.5*e.width;e[u].forEach(function(l){var u=l[c]*t,d=i+u;d-(e.x+.5*e.width)r!=c>r&&n<(u-s)*(r-l)/(c-l)+s&&(a=!a)}return a}})};e.exports=i},function(e,t,n){"use strict";var r=n(1),a=n(28),i=function(e,t){return new a({dims:e,mapData:t,addGeoInfo:function(e,t){var n=this,a=n.getDims(),i=a[a.length-1],o=e[i],s=n.mapData,l=s.features,u=t[0],c=t[1];return e[u]=[],e[c]=[],l&&r.each(l,function(t){if((t.properties?t.properties.name:"")===o){var r=t.geometry,a=r.coordinates;return"Polygon"===r.type?a.forEach(function(t){n._getCoordinates(t,e[u],e[c])}):"MultiPolygon"===r.type?a.forEach(function(t){t.forEach(function(t){n._getCoordinates(t,e[u],e[c])})}):"MultiLineString"===r.type&&a.forEach(function(t){n._getCoordinates(t,e[u],e[c],"line")}),!1}}),e},_getCoordinates:function(e,t,n,a){return r.each(e,function(e){t.push(e[0]),n.push(e[1])}),a&&"line"===a&&(t.push(e[0][0]),n.push(e[0][1])),!1}})};e.exports=i},function(e,t,n){"use strict";var r=n(15),a={dot:n(237),rect:n(238)};r.tree=a,e.exports=a},function(e,t,n){"use strict";var r=n(97),a=function(e){return new r({dims:e})};e.exports=a},function(e,t,n){"use strict";var r=n(1),a=n(97),i=function(e){return new a({dims:e,getStatObject:function(e,t){var n=r.mix({},e);return n["..x"]=[t.start.x,t.start.x,t.end.x,t.end.x],n["..y"]=[t.start.y,t.end.y,t.end.y,t.start.y],n}})};e.exports=i},function(e,t,n){"use strict";function r(e,t,n){return t=t||1,new a({dims:e,ratio:t,mode:n})}var a=n(240),i=function(e,t){return r(e,t,"squarify")};i.squarify=function(e,t){return r(e,t,"squarify")},i.sliceDice=function(e,t){return r(e,t,"slice-dice")},e.exports=i},function(e,t,n){"use strict";function r(e){return 1-e}var a=n(1),i=n(15),o=n(278),s=n(2),l="..x",u="..y",c=function(e){c.superclass.constructor.call(this,e)};a.extend(c,i),a.augment(c,{type:"treemap",mode:"squarify",ratio:1,getValueField:function(){return this.getDims()[3]||"_value"},getChildrenField:function(){return this.getDims()[2]},initDims:function(e){e.unshift(u),e.unshift(l)},_copyObject:function(e){return a.mix({},e)},_extractData:function(e,t){for(var n=this,i=e.length-1;i>=0;i--){var o=e[i],s=n._copyObject(o);s[l]=[],s[u]=[],s[l].push(o.x),s[u].push(r(o.y+o.dy)),s[l].push(o.x),s[u].push(r(o.y)),s[l].push(o.x+o.dx),s[u].push(r(o.y)),s[l].push(o.x+o.dx),s[u].push(r(o.y+o.dy)),t.push(s);var c=n.getChildrenField();a.isArray(o[c])&&n._extractData(o[c],t)}},exec:function(e){var t=this,n=[],r=s.merge.apply(null,e);return n.push(t.execFrame(r)),n},execFrame:function(e){var t=this,n=e.toJSON(),r=(t.getDims(),new o.Squarify({nodes:n,mode:t.mode,childrenField:t.getChildrenField(),valueField:t.getValueField(),ratio:t.ratio})),a=r.getNodes(),n=[];t._extractData(a,n);var e=new s(n);return e}}),e.exports=c},function(e,t,n){"use strict";var r=n(39),a=function(e,t){return new r({dims:e,binWidth:t})};e.exports=a},function(e,t,n){"use strict";function r(e,t,n){var r=[];return o.each(e,function(e){r.push(e*t*n/2)}),r}function a(e,t){var n=[];return o.each(e,function(e){n.push(e*t/2)}),n}var i=n(39),o=n(1),s=function(e,t,n){return new i({ratio:n||.5,dims:e,binWidth:t||.03,_getDimVaues:function(e,t,n){var r=this,a=r.getDimRange(t),i=a.max-a.min,s=[];return o.each(n,function(t){s.push(e+i*t)}),s},toBin:function(e){var t=this,n=t.getBinDims();if(n<2)throw"the bin.rect method only support 2 dimenssion!";var i=n[0],o=n[1],s=t.binWidth,l=t.ratio,u=t._center([e[i],e[o]]),c=r([-.5,-1.5,-.5,.5,1.5,.5],s,l),d=a([-1,0,1,1,0,-1],s);e[i]=t._getDimVaues(u[0],i,c),e[o]=t._getDimVaues(u[1],o,d)},_center:function(e){var t,n,r=this,a=r.binWidth,i=r.getBinDims(),o=i[0],s=r.getDimRange(o),l=a*(s.max-s.min)/2,u=i[1],c=r.getDimRange(u),d=a*(c.max-c.min)/2,f=r.ratio;return t=[e[0]/(l*f),e[1]/d],n=r._centerForBasis(t),[n[0]*l,n[1]*d]},_chkOdd:function(e){var t=parseInt(e);return t?!!(t%2):"0"},_aroundX:function(e){var t,n,r=this;return e=e<1?1:e,r._chkOdd(e)?t=n=parseInt(e)+.5:e%2==0?t=n=parseInt(e)-.5:(t=parseInt(e)-.5,n=t+2),[t,n]},_aroundY:function(e){var t,n;return e=e<1?1:e,t=parseInt(e),n=t+1,[t,n]},_shortPoint:function(e,t,n){var r,a,i=this;1==(e[1]-.5)%4?i._chkOdd(t[1])?(r=[e[0],t[0]],a=[e[1],t[1]]):(r=[e[1],t[0]],a=[e[0],t[1]]):i._chkOdd(t[0])?(r=[e[0],t[0]],a=[e[1],t[1]]):(r=[e[1],t[0]],a=[e[0],t[1]]);var o=Math.abs(n[0]-r[0])+Math.abs(n[1]-r[1]),s=Math.abs(n[0]-a[0])+Math.abs(n[1]-a[1]);return o===s?r[0]2&&i._chkOdd(r/2)?(e[1]=e[1]<1?1:e[1],a=i._chkOdd(parseInt(e[1]))?parseInt(e[1])+1:parseInt(e[1])):(e[1]=e[1]<1?1:e[1],a=i._chkOdd(parseInt(e[1]))?parseInt(e[1]):parseInt(e[1])-1),t=[r,a]):(e[1]=e[1]<1?1:e[1],n=i._aroundY(e[1]),t=i._shortPoint(o,n,e)),t[0]=t[0]*s,t}})};e.exports=s},function(e,t,n){var r={dot:n(241),rect:n(246),hex:n(242),quantile:n(244)};e.exports=r},function(e,t,n){var r=n(98);r.letter=n(245),e.exports=r},function(e,t,n){"use strict";var r=n(98),a=function(e,t){return new r({dims:e,binWidth:t,fractions:4})};e.exports=a},function(e,t,n){"use strict";var r=n(39),a=function(e,t){return new r({dims:e,binWidth:t,toBin:function(e){var t=this,n=t.getBinDims();if(n.length<1)throw"the bin.rect method support for minimum one dimension!";if(1===n.length){var r=n[0];e[r]=t._getValueRange(r,e[r])}else{var a=n[0],i=n[1],o=t._getValueRange(a,e[a]),s=t._getValueRange(i,e[i]);e[a]=[o[0],o[0],o[1],o[1]],e[i]=[s[0],s[1],s[1],s[0]]}},_getValueRange:function(e,t){var n=this,r=n.binWidth,a=n.getDimRange(e),i=a.max-a.min,o=n.getCenterValue(t,a.max,a.min);return[o-i*r*1/2,o+i*r*1/2]}})};e.exports=a},function(e,t,n){"use strict";function r(e,t,n){return t=t||.01,new a({dims:e,bandWidth:t,kernelType:n})}var a=n(248),i=n(249),o={};o.kernel={},o.kernel.uniform=function(e,t){return r(e,t,"uniform")},o.kernel.triangular=function(e,t){return r(e,t,"triangular")},o.kernel.epanechnikov=function(e,t){return r(e,t,"epanechnikov")},o.kernel.quartic=function(e,t){return r(e,t,"quartic")},o.kernel.triweight=function(e,t){return r(e,t,"triweight")},o.kernel.tricube=function(e,t){return r(e,t,"tricube")},o.kernel.gaussian=function(e,t){return r(e,t,"gaussian")},o.kernel.cosine=function(e,t){return r(e,t,"cosine")},o.normal=function(e,t){return t=t||.01,new i({dims:e,bandWidth:t})},e.exports=o},function(e,t,n){"use strict";var r=n(1),a=n(2),i=n(89),o=n(99),s="..density",l=function(e){l.superclass.constructor.call(this,e)};r.extend(l,o),r.augment(l,{kernelType:"",execFrame:function(e){var t=this,n=t.kernelType;if(!n)return e;var r=i[n],o=t.getDims(),s=[];return 2===o.length?s=t._getOneDimDensity(e,r,o):3===o.length&&(s=t._getTwoDimDensity(e,r,o)),new a(s)},_getOneDimDensity:function(e,t,n){for(var a=n[n.length-2],i=e.colArray(a),o=this.getWindowWidth(e,a),l=this.getCoordinate(e,a,o),u=l.length,c=i.length,d=e.rowObject(0),f=[],p=0;p=0?o.poly(t,n):o[e]?o[e](t[0],t[1],n):n},linear:function(e,t,n){return r([t,e],n)},poly:function(e,t){return r(e,t)},log:function(e,t,n){return e+t*Math.log(n)},pow:function(e,t,n){return e*Math.pow(n,t)},exp:function(e,t,n){return e*Math.pow(Math.E,t*n)}};e.exports=o},function(e,t,n){"use strict";function r(e,t,n){return t=t||.01,new i({dims:e,bandWidth:t,kernelType:n})}var a=n(51);a.mean=n(261),a.median=n(262),a.linear=n(258),a.quadratic=n(264),a.cubic=n(254),a.log=n(260),a.pow=n(263),a.exp=n(255);var i=n(259);a.loess={},a.loess.uniform=function(e,t){return r(e,t,"uniform")},a.loess.triangular=function(e,t){return r(e,t,"triangular")},a.loess.epanechnikov=function(e,t){return r(e,t,"epanechnikov")},a.loess.quartic=function(e,t){return r(e,t,"quartic")},a.loess.triweight=function(e,t){return r(e,t,"triweight")},a.loess.tricube=function(e,t){return r(e,t,"tricube")},a.loess.gaussian=function(e,t){return r(e,t,"gaussian")},a.loess.cosine=function(e,t){return r(e,t,"cosine")},e.exports=a},function(e,t,n){"use strict";var r=n(1),a=n(12),i=n(23),o=n(21),s=function(e){return new a(r.mix({},o,{dims:e,regressionType:"linear",getRegression:function(e){return i("polynomial",e,1)}}))};e.exports=s},function(e,t,n){"use strict";var r=n(51),a=n(1),i=n(89),o=n(2),s=n(190),l=function(e){l.superclass.constructor.call(this,e)};a.extend(l,r),a.augment(l,{kernelType:"",k:10,execFrame:function(e){var t=this,n=t.getDims(),r=[];if(2===n.length){var i=t.getXDim(),s=t.getYDim(),l=t.getData(e),u=t.getInterArray(e,i),c=t.execSmooth(l,u),d=e.rowObject(0);a.each(c,function(e){var t=a.mix({},d);t[i]=e[0],t[s]=e[1],r.push(t)})}else{var i=t.getXDim(),s=t.getYDim(),f=t.getZDim(),l=t.getData(e),u=[];u[0]=t.getInterArray(e,i),u[1]=t.getInterArray(e,s);var c=t.execSmoothThreeDim(l,u),d=e.rowObject(0);a.each(c,function(e){var t=a.mix({},d);t[i]=e[0],t[s]=e[1],t[f]=e[2],r.push(t)})}return new o(r)},execSmooth:function(e,t){for(var n=this,r=t.length,a=e.length,o=n.kernelType,s=i[o],l=[],u=[],c=t[1]-t[0],d=0;d0;)l.push(i=p[s-1]),l.area+=i.area,"squarify"!==c||(o=a.worst(l,m))<=h?(p.pop(),h=o):(l.area-=l.pop().area,a.position(l,m,t,!1),m=Math.min(t.dx,t.dy),l.length=l.area=0,h=1/0);l.length&&(a.position(l,m,t,!0),l.length=l.area=0),e.forEach(function(e){a.processNodes(e[f],a.pad(e),e[d])})}},worst:function(e,t){for(var n,r=this,a=e.area,i=0,o=1/0,s=-1,l=e.length;++si&&(i=n));return a*=a,t*=t,a?Math.max(t*i*r.ratio/a,a/(t*o*r.ratio)):1/0}}),e.exports=i},function(e,t,n){var r=n(281);r.Tween=n(104),r.Ease=n(102),e.exports=r},function(e,t,n){"use strict";var r=n(1),a=n(10),i=n(282),o=function(e){o.superclass.constructor.call(this,e),this._init()};o.ATTRS={time:0,createTime:null,playTime:null,pauseTimeSpace:0,available:!1,canvases:[],tweens:[],endTime:0,autoPlay:!1,status:"silent",autoDraw:!0},r.extend(o,a),r.augment(o,{_init:function(){var e=this.get("autoPlay");this.set("createTime",+new Date),e&&this.play()},_trySetEndTime:function(e){var t=this;r.isObject(e)?t._setEndTime(e):r.isArray(e)&&r.each(e,function(e,n){t._setEndTime(e)})},_trySetCanvases:function(e){var t=this;r.isObject(e)?t._setCanvases(e):r.isArray(e)&&r.each(e,function(e,n){t._setCanvases(e)})},_setEndTime:function(e){var t=this.get("endTime"),n=e.endTime;n>t&&this.set("endTime",n)},_setCanvases:function(e){var t=e.canvas,n=this.get("canvases");-1===n.indexOf(t)&&n.push(t)},_resetTweens:function(){var e=this.get("tweens");e.sort(function(e,t){return t.get("startTime")-e.get("startTime")}),r.each(e,function(e){e.reset()})},_getTime:function(){var e=this.get("playTime"),t=this.get("pauseTimeSpace");return+new Date-e+t},_refresh:function(e){for(var t,n,a=this.get("tweens"),i=(this.get("canvases"),this.get("autoDraw")),o=[],s=[],l=0;l0&&(e=t._getTime(),t._refresh(e)),t.fire("update"),r.requestAnimationFrame(function(){t._update()})}},animate:function(e,t){return new i({target:e,timeline:this,startTime:t||0})},add:function(e){var t,n=this.get("tweens");return r.isArray(e)?t=n.concat(e):r.isObject(e)&&"tween"===e.type?(n.push(e),t=n):console.error("Timeline not Support this type"),this.set("tweens",t),this._trySetCanvases(e),this._trySetEndTime(e),this},getNow:function(){var e=this.get("playTime");return e?+new Date-e:0},getTime:function(){var e=this.get("playTime");return e?+new Date-e:0},play:function(){return"silent"===this.get("status")&&(this.set("playTime",+new Date),this.set("available",!0),this.set("status","playing"),this._update()),this},stop:function(){this.set("status","silent"),this.set("available",!1),this.set("pauseTimeSpace",0),this._resetTweens(),this._refresh(0),this.draw()},pause:function(){return this.get("available")&&this.set("pauseTimeSpace",+new Date-this.get("playTime")),this.set("available",!1),this.set("status","silent"),this},reset:function(){this.set("status","silent"),this.set("available",!1),this.set("pauseTimeSpace",0),this.set("playTime",0),this.set("endTime",0),this.set("tweens",[]),this.set("canvases",[])},draw:function(){for(var e,t=this.get("canvases"),n=0;n20&&(a=20),parseFloat(e.toFixed(a))}function a(e,t){for(var n in t)t.hasOwnProperty(n)&&"constructor"!==n&&void 0!==t[n]&&(e[n]=t[n])}var i=n(283);i.mix(i,{mixin:function(e,t){if(e&&t){e._mixins=t,e.ATTRS=e.ATTRS||{};var n={};i.each(t,function(t){i.augment(e,t);var r=t.ATTRS;r&&i.mix(n,r)}),e.ATTRS=i.mix(n,e.ATTRS)}},map:function(e,t){var n=[];return i.each(e,function(e,r){n.push(t(e,r))}),n},filter:function(e,t){var n=[];return i.each(e,function(e,r){t(e,r)&&n.push(e)}),n},guid:function(){var e={};return function(t){return t=t||"g",e[t]?e[t]+=1:e[t]=1,t+e[t]}}(),inArray:function(e,t){return-1!==i.indexOf(e,t)},indexOf:function(e,t){var n=Array.prototype.indexOf;if(n)return n.call(e,t);for(var r=-1,a=0;a=0;t--)delete e[t];e.length=0},equalsArray:function(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var n=!0,r=0;r0){t=e.slice(0);var n=t[0],r=t[t.length-1];0!==n.value&&t.unshift({value:0}),1!==r.value&&t.push({value:1})}return t}var a=n(1),i=n(25),o=i.Axis,s=n(3),l=s.Vector2,u=n(4),c=["..x","..y","..long","..lant","..pieX"],d=function(e){this.axisCfg={},a.mix(this,e)};a.augment(d,{axisCfg:null,visible:!0,container:null,chart:null,_isHide:function(e){var t=this.axisCfg;return!(!a.inArray(c,e)||!a.isNull(t[e]))||t&&!1===t[e]},_getMiddleValue:function(e,t,n){return n===t.length-1?null:(e+t[n+1].value)/2},_getLineRange:function(e,t,n,r){var a,i,o,s=t.dim,l=this.axisCfg,u="";return l[s]&&l[s].position&&(u=l[s].position),"x"===n?(a={x:0,y:"top"===u?1:0},i={x:1,y:"top"===u?1:0},o=!1):(r?(a={x:"left"===u?0:1,y:0},i={x:"left"===u?0:1,y:1}):(a={x:"right"===u?1:0,y:0},i={x:"right"===u?1:0,y:1}),o=!0),a=e.convert(a),i=e.convert(i),{start:a,end:i,isVertical:o}},_getLineCfg:function(e,t,n,r){var a,i=this._getLineRange(e,t,n,r),o=i.isVertical,s=i.start,l=i.end,u=e.get("center");return e.isTransposed&&(o=!o),a=o&&s.x>u.x||!o&&s.y>u.y?1:-1,{isVertical:o,factor:a,start:s,end:l}},_getCircleCfg:function(e){var t,n={},r=e.get("x"),a=e.get("y"),i=a.start>a.end;t=e.isTransposed?{x:i?0:1,y:0}:{x:0,y:i?0:1},t=e.convert(t);var o,s=e.get("circleCentre"),u=new l(t.x-s.x,t.y-s.y),c=new l(1,0);o=t.y>s.y?l.angle(u,c):-1*l.angle(u,c);var d=o+(r.end-r.start);return n.startAngle=o,n.endAngle=d,n.center=s,n.radius=Math.sqrt(Math.pow(t.x-s.x,2)+Math.pow(t.y-s.y,2)),n.inner=e.get("inner")||0,n},_getRadiusCfg:function(e){var t,n,r=e.get("x").start,a=r<0?-1:1;return e.isTransposed?(t={x:0,y:0},n={x:1,y:0}):(t={x:0,y:0},n={x:0,y:1}),{factor:a,start:e.convert(t),end:e.convert(n)}},_getMultiLineCfg:function(e,t,n){var r=t.getTicks(),i=[],o=this._getLineRange(e,t,n),s=o.isVertical;return a.each(r,function(t){var n=e.convert({x:s?0:t.value,y:s?t.value:0});i.push(n)}),{start:o.start,end:o.end,tickPoints:i}},_getAxisPosition:function(e,t,n){var r=e.type,a="";return e.isRect?(this.facet&&this.facet.type,"x"===t&&(a="bottom"),"y"===t&&(a=n?"right":"left")):a="clock"===r?"clock":"gauge"===r?"gauge":"helix"===r?"helix":"x"===t?e.isTransposed?"radius":"circle":e.isTransposed?"circle":"radius",a},_getAxisDefaultCfg:function(e,t,n,r,i){var o={},s=this,l=s.facet,c=s.axisCfg,d=e.getHeight(),f=e.type,p=!(!u.axis[r]||!u.axis[r].title);if("cartesian"!==f||a.isNull(l)||l&&1===l.rows&&1===l.cols)"cartesian"===f&&p&&(o.title={text:t.alias||t.dim});else{var h=l.rows,m=l.cols,v=l.rowIndex,g=l.colIndex,y=l.type;p&&(o.title={text:t.alias||t.dim}),"tree"===y?("y"===n&&0!==l.originColIndex&&0!==g||"x"===n&&l.children)&&(o.labels=null,o.title=null):"circle"===y?(o.labels=null,o.title=null):("mirror"!==y&&"y"===n&&(0!==g&&"left"===r||g!==m-1&&"right"===r)&&(o.labels=null,o.title=null),"rect"===y?"x"===n&&0!==v&&(o.labels=null,o.title=null):"list"===y?"x"===n&&v!==h-1&&m*v+g+1+m<=l.count&&(o.labels=null,o.title=null):"mirror"===y&&"x"===n&&(1===h&&1===g||2===h&&0===v)&&(o.labels=null,o.title=null)),"y"===n&&o.title&&v!==Math.floor(h/2)&&(o.title=null),"x"===n&&o.title&&g!==Math.floor(m/2)&&(o.title=null)}if(o=a.mix(!0,{},u.axis[r],o,c[t.dim]),o.ticks=t.getTicks(),e.isPolar&&!t.isCategory&&"x"===n&&("clock"===e.type?o.ticks[0].text="":"gauge"!==e.type&&o.ticks.pop()),"y"===n){var _=o.ticks,b=_.length;if(d/b<16){var x=[],M=Math.floor(d/16)+1,w=Math.floor(b/M);w<1&&(w=1),x.push(_[0]);for(var k=w;k<=b-2;k+=w)x.push(_[k]);x.push(_[b-1]),o.ticks=x}}return o.coord=e,o.id=s._getViewId()+i+n,o.labels&&a.isNull(o.labels.autoRotate)&&(o.labels.autoRotate=!0),o},_getAxisCfg:function(e,t,n,i,o){a.isNull(o)&&(o="");var s=this,l={},u=s._getAxisPosition(e,i,o),c=s._getViewId();if(l=s._getAxisDefaultCfg(e,t,i,u,o),l.grid&&n){var d=[],f=r(n.getTicks());if(f.length){var p=l.ticks;a.each(p,function(t,n){var r=[],u=t.value;if("middle"===l.gridAlign&&(u=s._getMiddleValue(u,p,n)),!a.isNull(u)){var h=e.get("x"),m=e.get("y");a.each(f,function(t){var n="x"===i?u:t.value,a="x"===i?t.value:u,o=e.convert({x:n,y:a});if(e.isPolar){var s=e.get("circleCentre");m.start>m.end&&(a=1-a),o.flag=h.start>h.end?0:1,o.radius=Math.sqrt(Math.pow(o.x-s.x,2)+Math.pow(o.y-s.y,2))}r.push(o)}),r.id=c+o+i+t.text,d.push(r)}})}l.grid.items=d,l.grid.id=c+o+i+t.dim,"map"===l.coord.type&&(l.grid.smooth=!0)}return l},_getHelixCfg:function(e){for(var t={},n=e.get("a"),r=e.get("startAngle"),a=e.get("endAngle"),i=[],o=0;o<=100;o++){var s=e.convert({x:o/100,y:0});i.push(s.x),i.push(s.y)}var l=e.convert({x:0,y:0});return t.a=n,t.startAngle=r,t.endAngle=a,t.crp=i,t.axisStart=l,t.center=e.get("center"),t},_getViewId:function(){var e=this.chart;return e?e.get("viewId"):""},_drawAxis:function(e,t,n,r,i,s){var l,u,c=this.container,d=this._getViewId();e.isRect?"map"===e.type&&"x"===r?(l=o.MultLine,u=this._getMultiLineCfg(e,t,r)):(l=o,u=this._getLineCfg(e,t,r,s)):e.isHelix&&"x"===r?(l=o.Helix,u=this._getHelixCfg(e)):"x"===r?(l=o.Circle,u=this._getCircleCfg(e)):(l=o,u=this._getRadiusCfg(e));var f=this._getAxisCfg(e,t,n,r,s);return f=a.mix(!0,{id:d+s+r+t.dim},f,u),"y"===r&&i&&"circle"===i.get("type")&&(f.circle=i),c.addGroup(l,f)},createAxis:function(e,t,n,r){var i=this,o=r&&a.isBoolean(r.visible)?r.visible:i.visible;if(o){var s={};r&&a.each(r,function(e,t){t!==o&&(s[t]=e)}),i.axisCfg=s;var l=e.get("coord"),u=l.type;if(this.facet=e.get("facet"),"theta"!==u&&("polar"!==u||!l.isTransposed)){var c;t&&!i._isHide(t.dim)&&(c=i._drawAxis(l,t,n[0],"x")),n&&n.length&&"helix"!==u&&a.each(n,function(e,n){i._isHide(e.dim)||i._drawAxis(l,e,t,"y",c,n)})}}}}),e.exports=d},function(e,t,n){"use strict";var r=n(1),a=n(82),i=function(e){r.mix(this,e),this.resetActions()};r.augment(i,{type:"rect",chart:null,actions:null,_getCoordOptions:function(){var e=this.chart;return e.get("options").coord||e._setOptions("coord",{}),e.get("options").coord},_execActions:function(e){var t=this._getCoordOptions(),n=t.actions;r.each(n,function(t){var n=t[0];e[n](t[1],t[2])})},hasAction:function(e){var t=this.actions,n=!1;return r.each(t,function(t){if(e===t[0])return n=!0,!1}),n},createCoord:function(e,t){var n,i,o=this.chart.get("options"),s=o.coord,l=this,u=s&&s.type?s.type:l.type,c=r.mix({start:e,end:t},s&&s.cfg);return"theta"===u?(n=a.Polar,l.hasAction("transpose")||l.transpose(),i=new n(c),i.type=u):(n=a[r.ucfirst(u)]||a.Rect,i=new n(c)),l._execActions(i),i},rotate:function(e){return e=e*Math.PI/180,this.actions.push(["rotate",e]),this._getCoordOptions().actions=this.actions,this},reflect:function(e){return this.actions.push(["reflect",e]),this._getCoordOptions().actions=this.actions,this},scale:function(e,t){return this.actions.push(["scale",e,t]),this._getCoordOptions().actions=this.actions,this},transpose:function(){return this.actions.push(["transpose"]),this._getCoordOptions().actions=this.actions,this},resetActions:function(){var e=this.chart.get("options");return e.coord&&e.coord.actions?this.actions=e.coord.actions:this.actions=[],this}}),e.exports=i},function(e,t,n){"use strict";var r=n(1),a=function(e){r.mix(this,e),this._init()};r.augment(a,{chart:null,rangePlot:null,startPoint:null,rangeSelected:!1,selectable:!1,selectMode:"",_init:function(){this.pixelRatio=this._getCanvas().get("pixelRatio")},_getCanvas:function(){return this.chart.get("frontCanvas")},_getShape:function(e,t){return this.chart.get("canvas").getShape(e,t)},_getPointInfo:function(e){var t=this.chart,n={x:e.x/this.pixelRatio,y:e.y/this.pixelRatio},r=t.getViewsByPoint(n);return n.views=r,n},_getShapeEventObj:function(e){return{x:e.x/this.pixelRatio,y:e.y/this.pixelRatio,target:e.target,toElement:e.event.toElement||e.event.relatedTarget}},_getEventObj:function(e,t,n){return{x:t.x,y:t.y,target:e.target,toElement:e.event.toElement||e.event.relatedTarget,views:n}},_getActiveShape:function(e){var t=null;return r.each(e,function(e){var n=e.getActiveShape();if(n)return t=n,!1}),t},_limitCoordScope:function(e){var t=this.chart,n=t.get("plotRange"),r=n.tl,a=n.br;return e.xa.x&&(e.x=a.x),e.ya.y&&(e.y=a.y),e},_getSelectedValues:function(e,t){var n=null;if(e){var r=[];if(e.isCategory)for(var a=t[0];a<=t[1];a+=1/e.values.length){var i=e.invert(a);r.push(i)}else{var o=e.invert(t[0]),s=e.invert(t[1]);r.push(o),r.push(s)}n={dim:e.dim,values:r}}return n},_filterRangeValues:function(e,t,n){var a=this,i={};return r.each(n,function(n,r){var o=a._getSelectedValues(t[r],n);o&&(i[o.dim]=o.values,e.filter(o.dim,o.values))}),e.repaint(),i},bindEvents:function(){var e=this,t=e._getCanvas();t.on("canvas-mousedown",r.wrapBehavior(e,"onDown")),t.on("canvas-mousemove",r.wrapBehavior(e,"onMove")),t.on("canvas-mouseleave",r.wrapBehavior(e,"onOut")),t.on("canvas-mouseup",r.wrapBehavior(e,"onUp")),t.on("canvas-click",r.wrapBehavior(e,"onClick")),t.on("canvas-dblclick",r.wrapBehavior(e,"onClick"))},onUp:function(e){var t=this.chart,n=this._getShapeEventObj(e);n.shape=this.currentShape,t.fire("mouseup",n)},onDown:function(e){var t=this.chart,n=this._getShapeEventObj(e);n.shape=this.currentShape,t.fire("mousedown",n);var r=t.get("plotRange"),a=r.tl,i=r.br,o=e.x/this.pixelRatio,s=e.y/this.pixelRatio;if(!(oi.x||si.y)&&(this.startPoint={x:o,y:s},this.selectable)){this.rangeSelected=!0;var l=this.rangePlot;if(!l){l=this._getCanvas().addGroup(),l.initTransform(),this.rangePlot=l}var u=this._getPointInfo(e);t.fire("rangeselectstart",this._getEventObj(e,u,u.views));var c=e.event;c.stopPropagation(),c.preventDefault(),this._bindCanvasEvent()}},_bindCanvasEvent:function(){var e=this._getCanvas(),t=e.get("canvasDOM");this.onMouseMoveListener=r.addEventListener(t,"mousemove",r.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=r.addEventListener(t,"mouseup",r.wrapBehavior(this,"_onCanvasMouseUp"))},_onCanvasMouseMove:function(e){if(this.rangeSelected){var t,n,a,i,o=e.offsetX,s=e.offsetY,l=this._limitCoordScope({x:o,y:s}),u=this.startPoint,c=this.chart.get("plotRange"),d=this._getCanvas(),f=this.rangePlot,p=this.rectShape;"rangeY"===this.selectMode?(t=c.tl.x,n=l.y>=u.y?u.y:l.y,a=Math.abs(c.tl.x-c.tr.x),i=Math.abs(u.y-l.y)):"rangeX"===this.selectMode?(t=l.x>=u.x?u.x:l.x,n=c.tl.y,a=Math.abs(u.x-l.x),i=Math.abs(c.tl.y-c.bl.y)):"rangeXY"===this.selectMode&&(l.x>=u.x?(t=u.x,n=s>=u.y?u.y:l.y):(t=l.x,n=l.y>=u.y?u.y:l.y),a=Math.abs(u.x-l.x),i=Math.abs(u.y-l.y)),p?p.attr(r.mix({},p.__attrs,{x:t,y:n,width:a,height:i})):(p=f.addShape("rect",{attrs:{x:t,y:n,width:a,height:i,fill:"#CCD7EB",opacity:.4}}),this.rectShape=p),d.draw(),e.cancelBubble=!0,e.returnValue=!1}},_onCanvasMouseUp:function(e){var t=this._getCanvas(),n=this.startPoint,a=this.rangePlot;this.onMouseMoveListener.remove(),this.onMouseUpListener.remove(),this.rangePlot.clear(),this.rangeSelected=!1,this.rectShape=null,t.draw();var i=e.offsetX,o=e.offsetY;if(!(Math.abs(n.x-i)<=1&&Math.abs(n.y-o)<=1)){var s,l={},u=this.chart,c=this._limitCoordScope({x:i,y:o}),d=this._getPointInfo({x:c.x*this.pixelRatio,y:c.y*this.pixelRatio});if(r.each(d.views,function(e){if(e.get("data"))return s=e,!1}),s){var f=s.getXScale(),p=s.getYScales()[0],h=u.get("plotRange"),m=Math.abs(h.start.y-h.end.y),v=Math.abs(h.start.x-h.end.x),g=[(n.x-h.start.x)/v,(c.x-h.start.x)/v].sort(),y=[(h.bl.y-c.y)/m,(h.bl.y-n.y)/m].sort();"rangeX"===this.selectMode?l=this._filterRangeValues(s,[f],[g]):"rangeY"===this.selectMode?l=this._filterRangeValues(s,[p],[y]):"rangeXY"===this.selectMode&&(l=this._filterRangeValues(s,[f,p],[g,y]))}var _={x:i,y:o,selected:l,view:s,rangePlot:a};u.fire("rangeselectend",_)}},onOut:function(e){var t=this,n=t.chart,r=t._getPointInfo(e);n.fire("plotleave",t._getEventObj(e,r,t.curViews))},onMove:function(e){var t=this,n=t.chart,r=t.currentShape,a=t._getShape(e.x,e.y),i=t._getShapeEventObj(e);if(i.shape=a,n.fire("mousemove",i),r!==a){if(r){var o=t._getShapeEventObj(e);o.shape=r,o.toShape=a,n.fire("mouseleave",o)}if(a){var s=t._getShapeEventObj(e);s.shape=a,s.fromShape=r,n.fire("mouseenter",s)}t.currentShape=a}var l=t._getPointInfo(e),u=t.curViews||[];if(0===u.length&&l.views.length&&n.fire("plotenter",t._getEventObj(e,l,l.views)),u.length&&0===l.views.length&&n.fire("plotleave",t._getEventObj(e,l,u)),l.views.length){i=t._getEventObj(e,l,l.views),a=t._getActiveShape(l.views),i.shape=a,n.fire("plotmove",i);var c=n.get("frontCanvas").get("el");a&&a.attr("cursor")?c.style.cursor=a.attr("cursor"):c.style.cursor=""}t.curViews=l.views},onClick:function(e){var t=this,n=t.chart,r=this._getShapeEventObj(e);r.shape=this.currentShape,n.fire("click",r);var a=t._getPointInfo(e),i=a.views;if(i&&i.length){for(var o=t._getEventObj(e,a,i),s=null,l=i.length-1;l>=0;l--){for(var u,c=i[l],d=c.get("geoms"),f=d.length-1;f>=0&&(u=d[f],!(s=u.getSingleShape(a)));f--);if(s){u&&s&&u.allowSelected()&&u.setSelected(s.get("origin"),c),o.geom=u;break}}s&&(o.shape=s,o.data=s.get("origin")),n.fire("plotclick",o),"canvas-dblclick"===e.type&&(n.fire("plotdblclick",o),n.fire("dblclick",r))}},clearEvents:function(){var e=this,t=e._getCanvas();t.off("canvas-mousemove",r.getWrapBehavior(e,"onMove")),t.off("canvas-mouseleave",r.getWrapBehavior(e,"onOut")),t.off("canvas-mousedown",r.getWrapBehavior(e,"onDown")),t.off("canvas-mouseup",r.getWrapBehavior(e,"onUp")),t.off("canvas-click",r.getWrapBehavior(e,"onClick")),t.off("canvas-dblclick",r.getWrapBehavior(e,"onClick"))}}),e.exports=a},function(e,t,n){"use strict";var r=n(1),a=n(184),i=n(4),o=function(e){r.mix(this,e)};r.augment(o,{chart:null,_getFacetClass:function(e){return e=r.ucfirst(e),a[e]},_createFacetView:function(e){var t=this.chart;t.set("animate",!1);var n=t.createView({index:e.index,data:e.frame,region:e.region,facet:e});return n.set("options",t.get("options")),n.set("plotContainer",t.get("plotContainer")),n.set("frontPlot",t.get("frontPlot")),n.set("backPlot",t.get("backPlot")),n.set("scales",t.get("scales")),n.set("stats",t.get("stats")),n.set("guideAssist",t.get("guideAssist")),n},generateFacets:function(e,t){var n=this,a=[],o=n.chart,s=o.get("scaleAssist");t.defs=s.defs,t.plotRange=o.get("plotRange"),t=r.mix({},i.facetCfg,t),t.facetTitle=r.mix({},i.facetCfg.facetTitle,t.facetTitle),t.dims||(t.dims=t.fields);var l=n._getFacetClass(t.type),u=new l(t),c=u.generateFacets(e),d=o.get("plotContainer"),f=d.addGroup();return u.drawTitles(c,f),o.set("views",[]),r.each(c,function(e){a.push(n._createFacetView(e))}),a}}),e.exports=o},function(e,t,n){"use strict";var r=n(1),a=n(191),i=n(4),o=["text","tag","html"],s=function(e){this.guides=[],this.options=[],r.mix(this,e)};r.augment(s,{guides:null,xScale:null,yScale:null,backPlot:null,frontPlot:null,options:[],_addGuide:function(e){this.guides.push(e)},_getDefault:function(){return{xScale:this.xScale,yScale:this.yScale}},setScale:function(e,t){var n=this.guides;this.xScale=e,this.yScale=t,r.each(n,function(n){n.xScale=e,n.yScale=t})},_setOptions:function(e){this.options.push(e)},creatGuide:function(){var e=this,t=["line","text","rect","arc","tag","html"];this.options.forEach(function(n){var o=n.type;-1!==t.indexOf(n.type)&&(n.cfg=r.mix({},i.guide[o],n.cfg)),o=r.ucfirst(o);var s=r.mix({},e._getDefault(),n),l=new a[o](s);e._addGuide(l)})},line:function(e,t,n){var r={type:"line",from:e,to:t,cfg:n};return this._setOptions(r),this},text:function(e,t,n){var r={type:"text",position:e,text:t,cfg:n};return this._setOptions(r),this},image:function(e,t,n){var a={type:"image",start:e};return r.isArray(t)&&(a.end=t),r.isObject(t)&&(n=t),n&&(a.cfg=n),this._setOptions(a),this},rect:function(e,t,n){var r={type:"rect",start:e,end:t,cfg:n};return this._setOptions(r),this},arc:function(e,t,n){var r={type:"arc",start:e,end:t,cfg:n};return this._setOptions(r),this},tag:function(e,t,n,r){var a={type:"tag",from:e,to:t,text:n,cfg:r};return this._setOptions(a),this},html:function(e,t,n){var r={type:"html",point:e,html:t,cfg:n};return this._setOptions(r),this},paint:function(e,t,n){var a=this.guides;t=t||this.backPlot,n=n||this.frontPlot,r.each(a,function(a){r.inArray(o,a.type)?a.paint(e,n):a.paint(e,t)})},clear:function(){this.options=[],this.reset()},reset:function(){this.guides=[];var e=this.frontPlot;if(e&&!e.get("destroyed")){var t=e.get("parent")?e.get("parent").get("el").parentNode:e.get("el").parentNode,n=t.getElementsByClassName("guideWapper")[0];n&&t.removeChild(n)}}}),e.exports=s},function(e,t,n){"use strict";function r(e){for(var t=!0,n=e[0],r=n.attrValue,a=1;aa[1]?e.set("visible",!1):e.set("visible",!0)}),e.setShapesFiltered(r)})})},_getOrigin:function(e){var t=e.get("origin");return u.isArray(t)&&(t=t[0]),t._origin},_bindActiveEvent:function(e,t){var n=this,r=n.chart;e.on("itemactived",function(e){var a=e.item.value,i=r.getAllGeoms();u.each(i,function(e){var r=e.getShapes(),i=e.getScales()[t],o=[];u.each(r,function(e){l(n._getOrigin(e)[t],a,i)&&o.push(e)}),e.setShapesActive(o)})}),e.on("itemunactived",function(){var e=r.getAllGeoms();u.each(e,function(e){e.clearShapeActived()})})},_getLayoutType:function(e){return"right"===e||"left"===e?"vertical":"horizontal"},_getRegion:function(e){var t=0,n=0;return u.each(e,function(e){var r=e.getBBox();t0){var n=e.geoms;u.each(n,function(e){e.setVisible(!1)}),e.checked=!1}else e.checked=!0});var o=t.container,s=this.getPosition(),l=t.legends;l[s]=l[s]||[];var c=o.addGroup(d.Category,u.mix({},{checkable:!(!1===n.mode),layout:t._getLayoutType(s),items:e},f.legend[s],n));return l[s].push(c),c.on("itemchecked",function(e){t._setItemChecked(this,e,!0,r)}),c.on("itemunchecked",function(e){t._setItemChecked(this,e,!1,r)}),c},getPosition:function(e){var t=this.legendCfg,n=t.position||this.position;return t[e]&&t[e].position&&(n=t[e].position),n},addLegend:function(e,t,n,l){var c=this;if(c.legendCfg.visible){var d=c.legendCfg,p=e.dim;if(!d||!1!==d[p]){var h=c.getPosition(p),v=u.mix(!0,{titleText:o(e),attrType:t.type},f.legend[h],d,d[p]);v.checkable=!(!1===v.mode);var g,y,_=t.scales,b=[];if(1===_.length||e.isLinear)b=c._getLegendItems(e,t,n,l),y=e.dim,g=c._addLegend(e,v,b,h,t);else{var x=_[1],M=e.getTicks(),w=[];if(y=e.dim+"*"+x.dim,v.titleText&&(v.titleText=i(o(x),o(e))),u.each(M,function(a){var i=e.invert(a.value),o=c._getCategoryItems(x,t,n,l,i);if(r(o)){var s=o[0];s[m]=i,s.name=e.getText(i),s.attrValue=i,b.push(s)}else w=w.concat(o)}),w.length){var k=x.getTicks();u.each(k,function(e){var t=x.invert(e.value),n=a(w,t);if(n.length===M.length&&r(n)){var i=n[0];i[m]="*"+t,i.name=x.getText(t),i.attrValue=t,b.push(i)}else b=b.concat(n)})}s(b,y,l),g=c._addLegend(e,v,b,h,t)}g.get("checkable")&&c._bindClickEvent(g,y),c._bindActiveEvent(g,y)}}},_getLegendItems:function(e,t,n,r,a){var i=this;return e.isLinear?i._getContinuousItems(e,t,a):i._getCategoryItems(e,t,n,r,a)},_getContinuousItems:function(e,t,n){var r,a,i=this,o=[],s=e.getTicks();return u.each(s,function(s){var l=s.value,u=e.invert(l),c=i._mappingValues(u,t,n);o.push({name:s.text,color:c,value:l}),0===l&&(r=!0),1===l&&(a=!0)}),r||o.unshift({name:e.getText(e.invert(0)),color:i._mappingValues(e.invert(0),t,n),value:0}),a||o.push({name:e.getText(e.invert(1)),color:i._mappingValues(e.invert(1),t,n),value:1}),o},_getCategoryItems:function(e,t,n,r,a){var o,s,l=this,c=e.getTicks(),d=l.legendCfg,f=[],h="point",m=e.dim,v=d.marker||d[m]&&d[m].marker||"circle",g="single"===d.mode||d[m]&&"single"===d[m].mode;return u.each(c,function(c,d){var m=c.text;s=m;var y=c.value,_=e.invert(y),b={isInCircle:n.isInCircle()},x=l._mappingValues(_,t,a);"color"===t.type?b.color=x:"shape"===t.type?(h=n.get("shapeType")||n.get("type"),v=x):"size"===t.type&&(o=x);var M=p.getShape(h),w=M.getMarkerCfg(v,b);u.isNull(o)||(w.radius=o);var k=!0;u.isNull(a)?k=g?r?l._isFiltered(e,r,y):0===d:!r||l._isFiltered(e,r,y):(_=a+"*"+_,s=i(s,a)),f.push({name:s,checked:k,type:null,marker:w,attrValue:x,value:_})}),f},_mappingValues:function(e,t,n){var r;if(u.isNull(n))r=t.mappingValues(e).join("");else{var a=[n,e];r=t.mappingValues.apply(t,a).join("")}return r},_addLegend:function(e,t,n,r,a){var i,o,s=this,l=s._getLayoutType(r);if(e.isLinear)o=d.Continuous,i=u.mix({layout:l,attr:a},t);else{o=d.Category;var c=s.plotRange,f="right"===r||"left"===r?c.bl.y-c.tr.y:c.tr.x-c.bl.x;i=u.mix(!0,{maxLength:f,layout:l,items:n},t)}i.items=n;var p=s.container,h=s.legends,m=p.addGroup(o,i);return h[r]=h[r]||[],h[r].push(m),m},alignLegends:function(){var e=this,t=e.legends;return u.each(t,function(t,n){var r=e._getRegion(t);u.each(t,function(a,i){var o=t[i-1];e._alignLegend(a,o,r,n)})}),this},clear:function(){var e=this,t=e.legends;u.each(t,function(e){u.each(e,function(e){e.remove()})}),this.legends={}}}),e.exports=v},function(e,t,n){"use strict";var r=n(1),a=n(91),i=n(46),o=n(2),s=n(4),l={LINEAR:"linear",CAT:"cat",TIME:"time"},u=function(e){r.mix(this,e),this.defs=this.defs||{}};r.augment(u,{defs:null,_addNewCol:function(e,t,n){var a=this,i=a._getDefs(),o=t.dims,s=[];r.each(o,function(e){var t=i[e]&&i[e].type||a._getDefaultType(e,n);if(0===s.length)s.push(t);else if(!r.inArray(s,t))throw new Error('Sorry, the values that are involved in "+" must be of the same type.')}),r.isNull(t.type)&&(t.type=s[0]);var l=[];r.each(o,function(e){l.push(n.colArray(e))});for(var u=[],c=0;c0)){var u=this.defs,c={};c[t]={min:0},this.defs=r.mix(!0,c,u)}return s},_getDefaultType:function(e,t){var n=l.LINEAR,a=o.values(t,e),s=a[0];return r.isArray(s)&&(s=s[0]),i.isDateString(s)?n=l.TIME:r.isString(s)&&(n=l.CAT),n},_syncScales:function(e,t){if("identity"!==e.type){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);e.change(n)}},createDefaultScale:function(e,t,n){var r=this._getDefaultType(e,t),i=this._getScaleCfg(r,e,t,n);return a[r](i)},createScale:function(e,t,n){var i,o=this,s=o._getDef(e);if(r.isNumber(e))i=a.I({value:e,dim:e.toString()});else if(s||-1!==r.indexOf(t.colNames(),e))if(s){s.dims&&!t.contains(e)&&o._addNewCol(e,s,t);var l=s.type||o._getDefaultType(e,t),u=o._getScaleCfg(l,e,t,n);r.mix(u,s),i=a[l](u)}else i=o.createDefaultScale(e,t,n);else i=a.I({value:e,dim:e});return i},sortScales:function(e,t,n){var a=this;return n?(e=o.sortBy(e,n),void r.each(t,function(t,n){if("identity"!==t.type&&e.contains(n)){var r=a.createScale(n,e);t.values=r.values}})):null},trainScales:function(e,t){var n=this;r.each(t,function(t){var r=t.type,a=t.dim;if("identity"!==r&&e.contains(a)){var i=n.createScale(a,e);n._syncScales(t,i)}})},_getFilterFunction:function(e,t){var n,a,i,o=e.dim;return e.isCategory?"timeCat"===e.type?function(e){return n=new Date(e[o]).getTime(),a=new Date(t[0]).getTime(),i=new Date(t[1]).getTime(),n>=a&&n<=i}:function(a){var i=!1;return r.each(t,function(t){if(n=a[o],i=i||e.getText(t)===e.getText(n))return!1}),i}:e.isLinear?function(r){return n=e.translate(r[o]),a=e.translate(t[0]),i=e.translate(t[1]),n>=a&&n<=i}:function(e){return n=e[o],r.inArray(t,n)}},_getMultpleFilterFunction:function(e,t){return function(n){var a=!1;return r.each(t,function(t){var i=t.split("*"),o=!0;if(r.each(i,function(t,r){if(t){var a=e[r],i=n[a.dim];o=o&&a.getText(t)===a.getText(i)}}),a=a||o)return!1}),a}},filterData:function(e,t,n){var a=this;e=a.convertToString(e,n);var i=[];r.each(t,function(e,t){var r;if(-1!==t.indexOf("*")){var o=t.split("*"),s=o.map(function(e){return n[e]});e&&s.length&&(r=a._getMultpleFilterFunction(s,e),i.push(r))}else{var l=n[t];e&&l&&(r=a._getFilterFunction(l,e),i.push(r))}});var s=e;return i.length&&(s=o.filter(e,function(e){var t=!0;return r.each(i,function(n){t=t&&n(e)}),t})),s},convertToString:function(e,t){var n=this;return r.each(t,function(t,a){var i=t.type;if(t.isCategory&&"timeCat"!==i&&e.contains(a)){var o=n._getDef(a);if(o&&!o.hasOwnProperty("values")||!o){var s=e.colArray(a);r.each(s,function(e,t){r.isNull(e)||(s[t]=e.toString())}),e.colReplace(a,s)}}}),e}}),e.exports=u},function(e,t,n){"use strict";function r(e,t){var n=-1;return s.each(e,function(e,r){if(e.title===t.title&&e.name===t.name&&e.value===t.value&&e.color===t.color)return n=r,!1}),n}function a(e,t){if(!e)return!1;var n="";return!!e.className&&(n=s.isNull(e.className.baseVal)?e.className:e.className.baseVal,-1!==n.indexOf(t))}function i(e,t){for(var n=e.parentNode,r=!1;n&&n!==document.body;){if(a(n,t)){r=!0;break}n=n.parentNode}return r}function o(e){var t=[];return s.each(e,function(e){var n=r(t,e);-1===n?t.push(e):t[n]=e}),t}var s=n(1),l=n(4),u=n(25),c=u.Tooltip,d=["line","area","path","areaStack"],f=["line","area"],p=function(e){this.cfg={visible:!0},s.mix(this,e)};s.augment(p,{cfg:null,tooltip:null,chart:null,timeStamp:0,get:function(e){return this[e]},set:function(e,t){this[e]=t},_setTooltipCrosshairs:function(){var e=this,t=s.mix({},l.tooltip),n=e.get("chart"),r=n.getAllGeoms(),a=[];return s.each(r,function(e){var t=e.get("type");-1===s.indexOf(a,t)&&a.push(t)}),r.length&&"cartesian"===r[0].get("coord").type&&1===a.length&&s.indexOf(f,a[0])>-1&&s.mix(t,{crosshairs:!0}),t},_getCanvas:function(){return this.chart.get("frontCanvas")},_setTooltip:function(e,t,n,r){var a=this,i=a.get("tooltip"),u=a.get("prePoint");if(!u||u.x!==e.x||u.y!==e.y){t=o(t),a.set("prePoint",e);var c=a.chart,d=s.isArray(e.x)?e.x[e.x.length-1]:e.x,f=s.isArray(e.y)?e.y[e.y.length-1]:e.y;i.get("visible")||c.fire("tooltipshow",{x:d,y:f,tooltip:i}),c.fire("tooltipchange",{tooltip:i,x:d,y:f,items:t});var p=t[0],h=p.title||p.name;i.setContent(h,t),n.length?(i.setMarkers(n,l.tooltipMarker),i.get("markerGroup").setMatrix(r.get("matrix").clone())):i.clearMarkers(),i.setPosition(d,f),i.show()}},_clearActive:function(){var e=this,t=e.get("chart"),n=t.getAllGeoms();s.each(n,function(e){e.clearShapeActived()})},_bindEvent:function(){var e=this,t=e.chart;t.on("plotmove",s.wrapBehavior(e,"onMouseMove")),t.on("plotleave",s.wrapBehavior(e,"onMouseOut"))},_offEvent:function(){var e=this,t=e.chart;t.off("plotmove",s.getWrapBehavior(e,"onMouseMove")),t.off("plotleave",s.getWrapBehavior(e,"onMouseOut"))},renderTooltip:function(){var e=this;if(!e.get("tooltip")){var t=e.get("chart"),n=e.get("cfg"),r=e._setTooltipCrosshairs();n=s.mix({plotRange:t.get("plotRange"),capture:!1},r,n),n.visible=!1;var a=e._getCanvas(),i=a.addGroup(c,n);a.sort(),e.set("tooltip",i),e._bindEvent()}},showTooltip:function(e,t){var n=this;if((!t||t.length)&&e){this.get("tooltip")||this.renderTooltip();var r=n.get("cfg"),a=r&&r.map,i=[],o=[];if(s.each(t,function(t){if(!t.get("tooltipEnable"))return!0;var n=t.get("geoms");s.each(n,function(t){if(t.get("container").get("visible")){var n=t.get("frames");if(t.isShareTooltip()){var r=[];s.each(n,function(n){var l=t.findPoint(e,n);if(l){r.push(l);var u=t.getTipItems(l,a);o=o.concat(u);var c=t.get("type");-1!==s.indexOf(d,c)&&(i=i.concat(u))}}),r.length&&t.setActiveByPoint(r[0])}else{var l=t.getSingleShape(e,n);l&&l.get("visible")&&(o=t.getTipItems(l.get("origin"),a),t.setShapesActive([l]))}}})}),o.length){var l=o[0],u=t[0].get("coord");if(i.length){l=i[0],e=l.point;var c=s.isArray(e.x)?e.x[e.x.length-1]:e.x,f=s.isArray(e.y)?e.y[e.y.length-1]:e.y;e=u.trans(c,f,1)}n._setTooltip(e,o,i,u)}else n._clearActive()}},hideTooltip:function(){var e=this,t=e.get("tooltip"),n=e.chart,r=e._getCanvas();e.set("prePoint",null),t.hide(),e._clearActive(),n.fire("tooltiphide",{tooltip:t}),r.draw()},onMouseMove:function(e){var t=this.get("timeStamp"),n=+new Date;if(this.cfg.visible&&e.views&&e.views.length){var r=this,a={x:e.x,y:e.y};n-t>16&&(r.showTooltip(a,e.views),this.set("timeStamp",n))}},onMouseOut:function(e){var t=this,n=t.get("tooltip"),r=t._getCanvas();n.get("visible")&&(e&&e.target!==r||e&&n.get("custom")&&e.toElement&&(a(e.toElement,"ac-tooltip")||i(e.toElement,"ac-tooltip"))||t.hideTooltip())},clear:function(){var e=this,t=e.get("tooltip");t&&t.remove(),e.set("tooltip",null),e.set("prePoint",null),e._offEvent()}}),e.exports=p},function(e,t,n){"use strict";function r(e){return e.replace(/([a-z](?=[A-Z]))/g,"$1 ").split(" ")}var a=n(1),i=n(136),o=n(4),s=["pointStack","pointJitter","pointDodge","intervalStack","intervalDodge","intervalSymmetric","areaStack","schemaDodge"];e.exports={_initAttrs:function(){var e=this,t=this.get("options").geoms;a.each(t,function(t){if(a.inArray(s,t.type)){var n=r(t.type);t.type=n[0],t.adjusts?t.adjusts=[n[1]].concat(t.adjusts):t.adjusts=[n[1]]}var i=[],o=["position","color","shape","opacity","size"];a.each(t,function(n,r){if(-1!==o.indexOf(r)){var s,l;!a.isObject(n)||n.isStat?(l={},l.field=n):l=n,s="color"===r?e._initColor(l,t.type):"size"===r?e._initSize(l):"shape"===r?e._initShape(l,t.type):l;var u=e._getScalesAndStat(l.field,t.type,t.adjusts,r);s=a.mix({},s,u);var c=e._getAttr(r,s);i.push(c)}}),t.attrs=i})},_initColor:function(e,t){var n={};return e.callback?n.callback=e.callback:e.colors?a.isArray(e.colors)?n.arr=e.colors:n.methodType=e.colors:"heatmap"===t?n.methodType=o.heatmapColors:n.arr=o.colors.default,n},_initSize:function(e){var t={};return e.callback&&(t.callback=e.callback),t.min=e.min||1,t.max=e.max||10,t},_initShape:function(e,t){var n={};if(e.callback&&(n.callback=e.callback),e.shapes)n.arr=e.shapes;else{var r=/[A-Z].*$/;t=t.replace(r),n.arr=o.shapes[t]}return n},_getScalesAndStat:function(e,t,n,r){var a=this._parseDims(e,t,n,r);return{scales:a.scales,stat:a.stat}},_parseDims:function(e,t,n,r){var i,o=this;if(e.isStat&&(i=e,e.hasInited||(i.init(),i.hasInited=!0),e=i.getDims(),o._addStat(i)),a.isString(e)&&-1!==e.indexOf("+")){var s=[],l=this.get("scaleAssist"),u=e.replace(/\s+/g,"").split("*");a.each(u,function(e){var t=e.replace(/\(|\)|\s+/g,"").split("+"),n=t.join("+");s.push(n),t.length>1&&(l.defs[n]=a.mix({},l.defs[n],{dims:t}))}),e=s}else a.isString(e)&&-1!==e.indexOf("*")?(e=e.split("*"),e=a.map(e,function(e){return e.trim()})):(a.isNumber(e)||a.isString(e))&&(e=[e]);var c=this.get("coord");"position"===r&&"theta"===c.type&&"interval"===t&&"Stack"===n[0]&&"..pieX"!==e[0]&&e.unshift("..pieX"),"position"===r&&1===e.length&&(a.inArray(n,"Jitter")||a.inArray(n,"Stack"))&&"..y"!==e[e.length-1]&&e.push("..y");var d=[];return a.each(e,function(e,n){var r=1===n&&"interval"===t,a=o.createScale(e,r);d.push(a)}),{dims:e,stat:i,scales:d}},_addStat:function(e){this.get("stats").push(e)},_getAttr:function(e,t){return e=a.ucfirst(e),new(0,i[e])(t)}}},function(e,t,n){"use strict";function r(e,t){var n=[];return d.each(t,function(t){t.getYScale()===e&&e.values&&e.values.length>0&&n.push(t)}),n}function a(e,t){var n=!1;return d.each(e,function(e){var r=[].concat(e.values),a=[].concat(t.values);if(e.type===t.type&&e.dim===t.dim&&r.sort().toString()===a.sort().toString())return void(n=!0)}),n}function i(e){var t=e.get("el");t.style.position="absolute",t.style.top=0,t.style.left=0}function o(e,t){var n=new f(e);return t&&i(n),n.set("fontFamily",m.fontFamily),n}function s(e){var t=e.id,n=document.getElementById(t),r=e.container;if(!n&&!r)throw new Error("please specify the canvas container Id !");if(n&&r)throw new Error('"container" and "id" can not be declared at the same time!');if(!r){var a=d.guid("g-chart");r=d.createDom("
    "),r.id=a,n.appendChild(r)}return r}function l(e){var t=e.container,n=d.getWidth(t);return e.width=n,e}function u(e){var t=e.width,n=e.height,r=e.container,a={width:t,height:n,containerDOM:r,pixelRatio:e.pixelRatio||m.pixelRatio,capture:!1},i=o(a,!1),s=o(a,!0),l=o(a,!0);return s.set("capture",!0),e.backCanvas=i,e.canvas=s,e.frontCanvas=l,e}function c(e){var t=d.mix({},m.plotCfg,e.plotCfg),n=s(e);e.plotCfg=t,e.container=n,e.forceFit&&(e=l(e)),e=u(e);var r=e.backCanvas,a=r.addGroup(h.Back,t);return e.backPlotBg=a,e.plotRange=a.get("plotRange"),e}var d=n(1),f=n(5),p=n(25),h=p.Plot,m=n(4),v=n(305),g=n(109),y=function e(t){t=c(t),e.superclass.constructor.call(this,t),this.init()};y.ATTRS={id:null,width:null,height:null,plotCfg:null,forceFit:!1},d.extend(y,v),d.augment(y,{init:function(){var e=this.get("plotRange");this.set("region",{start:e.start,end:e.end}),this.set("viewId","chart"),this.get("forceFit")&&window.addEventListener("resize",d.wrapBehavior(this,"_initForceFitEvent")),g.initEvent(this),g.initLegend(this),g.initTooltip(this)},_initForceFitEvent:function(){var e=setTimeout(d.wrapBehavior(this,"forceFit"),200);clearTimeout(this.get("resizeTimer")),this.set("resizeTimer",e)},_getAllYScales:function(){var e=[],t=this.get("views");return e=e.concat(this.getYScales()),d.each(t,function(t){e=e.concat(t.getYScales())}),e},_renderLegends:function(e){var t=this.get("legendAssist"),n=this.getAllGeoms(),i=this._getAllYScales(),o=[];if(d.mix(t.legendCfg,e),d.each(n,function(e){var n=e.getLegendAttr();d.each(n,function(n){var r=n.type,i=n.getScale(r);if("identity"!==i.type&&!a(o,i)){o.push(i);var s,l=n.scales,u=1===l.length?i.dim:i.dim+"*"+l[1].dim,c=e.get("chart"),d=c.get("options").filters;d&&d[u]&&(s=d[u]),t.addLegend(i,n,e,s)}})}),!o.length&&i.length>1){var s=[];d.each(i,function(e){var t=r(e,n);t.length&&s.push({name:e.alias||e.dim,color:t[0].getDefaultValue("color"),geoms:t})}),t.addMixedLegend(s)}t.alignLegends()},_renderTooltip:function(){var e=this.get("options"),t=this.get("tooltipAssist");d.mix(t.cfg,e.tooltip),t.cfg.visible&&t.renderTooltip()},legend:function(e,t){var n=!0,r={};return d.isBoolean(e)&&(n=e),d.isObject(e)?r=e:r[e]=t,r.visible=n,this._setOptions("legends",r),this},tooltip:function(e,t){return d.isObject(e)?(t=e,t.visible=!0):(t||(t={}),t.visible=e),this._setOptions("tooltip",t),this},facet:function(e,t){var n=d.isString(e)?[e]:e;return t||(t={}),t.dims=n,this._setOptions("facet",t),this},changeSize:function(e,t){var n=this,r=n.get("backCanvas"),a=n.get("canvas"),i=n.get("frontCanvas");r.changeSize(e,t),a.changeSize(e,t),i.changeSize(e,t),n.set("width",e),n.set("height",t);var o=n.get("backPlotBg");o.repaint();var s=o.get("plotRange");n.set("region",{start:s.start,end:s.end});var l=n.get("views");return d.each(l,function(e){var t=n._getRegion(e);e.set("region",t)}),n.repaint(),n},destroy:function(){if(!this.destroyed){var e=this.get("container");this.fire("destroy"),clearTimeout(this.get("resizeTimer")),this.clear(),this.get("backCanvas").destroy(),this.get("canvas").destroy(),this.get("frontCanvas").destroy(),this.events={},this._attrs={},this.destroyed=!0,e.parentNode.removeChild(e),window.removeEventListener("resize",d.getWrapBehavior(this,"_initForceFitEvent"))}},showTooltip:function(e){var t=this,n=t.getViewsByPoint(e);if(n.length){t.get("tooltipAssist").showTooltip(e,n)}return t},hideTooltip:function(){this.get("tooltipAssist").hideTooltip()},getTooltipItems:function(e){var t=this,n=t.getViewsByPoint(e),r=[];return d.each(n,function(n){var a=n.getGeoms(),i=t.get("tooltipAssist"),o=i.cfg&&i.cfg.map;d.each(a,function(t){var n=t.get("frames"),a=[];d.each(n,function(n){var r=t.findPoint(e,n);if(r){var i=t.getTipItems(r,o);a=a.concat(i)}}),r=r.concat(a)})}),r},forceFit:function(){var e=this.get("container"),t=d.getWidth(e),n=this.get("height");t!==this.get("width")&&this.changeSize(t,n)},setMode:function(e){var t=this.get("eventAssist");return!1===e?t.selectable=!1:"select"===e&&(t.selectable=!0),this},select:function(e){return this.get("eventAssist").selectMode=e,this},toImage:function(){var e=this.get("frontCanvas"),t=this.get("canvas"),n=this.get("backCanvas"),r=n.get("el"),a=r.getContext("2d");a.drawImage(t.get("el"),0,0),a.drawImage(e.get("el"),0,0);var i=r.toDataURL("image/png");return n.draw(),i},downloadImage:function(e){var t=this.toImage(),n=document.createElement("a");return n.download=(e||"chart")+".png",n.href=t.replace("image/png","image/octet-stream"),n.click(),t}}),e.exports=y},function(e,t,n){"use strict";var r=n(1),a=n(4),i=function(e){r.mix(this,e),this._init()};r.augment(i,{options:{},_init:function(){var e=this.options.adjusts;e&&(r.each(e,function(t,n){e[n]=r.ucfirst(t)}),this.options.adjusts=e)},_setOptions:function(e,t){var n=this.options;n[e]=r.mix({},n[e],t)},_getDefaultShapes:function(e){var t=/[A-Z].*$/;return e=e.replace(t),a.shapes[e]},position:function(e){return this._setOptions("position",{field:e}),this},color:function(e,t){var n={};return n.field=e,t?r.isFunction(t)?n.callback=t:n.colors=t:n.colors="heatmap"===this.options.type?a.heatmapColors:a.colors.default,this._setOptions("color",n),this},shape:function(e,t){var n={};return n.field=e,t?r.isFunction(t)?n.callback=t:n.shapes=t:n.shapes=this._getDefaultShapes(this.options.type),this._setOptions("shape",n),this},opacity:function(e,t){var n={};return n.field=e,r.isFunction(t)&&(n.callback=t),this._setOptions("opacity",n),this},size:function(e,t,n){var a={};return a.field=e,a.min=r.isNull(n)?1:n,r.isFunction(t)?a.callback=t:a.max=t||10,this._setOptions("size",a),this},label:function(e,t,n){var a={};return a.field=e,r.isObject(t)&&(n=t,t=null),a.callback=t,a.cfg=n,this._setOptions("label",a),this},tooltip:function(e){return this.options.tooltip=e,this},style:function(e){return this.options.style=e,this},selected:function(e,t){var n={};return!1===e?n.mode=!1:n=!0===e?t:e,this._setOptions("selected",n),this},animate:function(e){return this._setOptions("animate",e),this}}),e.exports=i},function(e,t,n){"use strict";function r(e){var t=["polar","plus","theta"];return s.inArray(t,e.type)}function a(e){var t=e.get("startAngle"),n=e.get("endAngle");return!(!s.isNull(t)&&!s.isNull(n)&&n-t<2*Math.PI)}function i(e,t){var n=!!e[t];return n||s.each(e,function(e,r){if(-1!==r.split("*").indexOf(t))return n=!0,!1}),n}function o(e){for(var t=e[0].min,n=e[0].max,r=1;ra.min&&(t=a.min),n=0&&r<=1}function i(e,t){var n=!1;if(e){if("theta"===e.type){var r=e.get("start"),i=e.get("end");n=a(t.x,r.x,i.x)&&a(t.y,r.y,i.y)}else{var o=e.invert(t);n=o.x>=0&&o.y>=0&&o.x<=1&&o.y<=1}}return n}function o(e,t){return function(n){var r=this,a=[];t&&(a=a.concat(t)),n&&(a=a.concat(n));var i=r.get("options");i.geoms||(i.geoms=[]);var o={type:e,adjusts:a};return i.geoms.push(o),new p({options:o})}}var s=n(1),l=n(10),u=n(2),c=n(4),d=n(109),f=n(112),p=n(303),h=n(301),m=n(304),v=["pointStack","pointJitter","pointDodge","intervalStack","intervalDodge","intervalSymmetric","areaStack","schemaDodge"],g=function e(t){e.superclass.constructor.call(this,t),this._init()};g.ATTRS={start:{x:0,y:0},end:{x:1,y:1},tooltipEnable:!0,id:"",data:null,geoms:[],scales:{},animate:c.animate,views:[],facets:[],syncXYScales:!1,options:{},stats:[]},s.extend(g,l),s.augment(g,h,m,{_init:function(){var e=this.get("options"),t=this.get("data");s.isNull(t)&&(t=[],this.set("data",[])),this._initAssists(),this._initData(t,e.appendFields),this.set("views",[]),this.set("geoms",[]),this.set("scales",{})},_initAssists:function(){d.initScale(this),d.initCoord(this),d.initAxis(this),d.initGuide(this)},_setOptions:function(e,t){var n=this.get("options");n[e]=s.mix({},n[e],t),this.set("options",n)},_getRegion:function(e){var t=this.get("plotRange"),n=e.get("start"),r=e.get("end"),a=t.tl,i=t.br;return{start:{x:n.x*(i.x-a.x)+a.x,y:r.y*(i.y-a.y)+a.y},end:{x:r.x*(i.x-a.x)+a.x,y:n.y*(i.y-a.y)+a.y}}},_clearInner:function(e){var t=this.get("geoms");return t.length&&s.each(t,function(e){e.destroy()}),this.set("geoms",[]),this.get("guideAssist").reset(),this.get("legendAssist")&&this.get("legendAssist").clear(),this.get("tooltipAssist")&&this.get("tooltipAssist").clear(),this.get("plotContainer")&&this.get("plotContainer").clear(),this.get("backPlot")&&this.get("backPlot").clear(),this.get("frontPlot")&&this.get("frontPlot").clear(),e&&(this.get("guideAssist").clear(),this.set("scales",{})),this},source:function(e,t,n){return this.get("options").appendFields=n,t&&this._setOptions("scales",t),this._initData(e,n),this},col:function(e,t){var n=this.get("options");return n.scales||(n.scales={}),n.scales[e]=t,this},cols:function(e){var t=this.get("options");return t.scales||(t.scales={}),s.mix(t.scales,e),this},coord:function(e,t){this._setOptions("coord",{type:e,cfg:t,actions:[]});var n=this.get("coordAssist");return n.resetActions(),n},axis:function(e,t){var n=!0,r=this.get("options");r.axes||(r.axes={});var a=r.axes;return!1===e?n=!1:a[e]=t,a.visible=n,this},guide:function(){return this.get("guideAssist")},filter:function(e,t){var n=this.get("options");return n.filters||(n.filters={}),n.filters[e]=t,this},tooltip:function(e){return this.set("tooltipEnable",e),this},animate:function(e){return this.get("options").animate=e,this.set("animate",e),this},createView:function(e){var t=this.get("views"),n=new g(e);n.get("region")||n.set("region",this._getRegion(n)),n.set("backCanvas",this.get("backCanvas")),n.set("frontCanvas",this.get("frontCanvas")),n.set("canvas",this.get("canvas")),n.set("viewId",this.get("viewId")+t.length),n.set("parent",this),n.set("animate",this.get("animate")),n.set("syncXYScales",this.get("syncXYScales")),e&&e.id||n.set("id","view"+t.length);var r=this.get("options"),a=e&&e.options||n.get("options");return a.scales=a.scales||{},a.scales=s.mix({},r.scales,a.scales),a.axes=a.axes||{},a.axes=s.mix({},r.axes,a.axes),a.coord=a.coord||{},a.coord=s.mix({},r.coord,a.coord),!1===a.tooltip&&n.set("tooltipEnable",!1),t.push(n),this.set("views",t),n},removeView:function(e){for(var t=[],n=this.get("views"),r=null,a=0;a0&&(s.each(e,function(e){e._clearInner(!0)}),this.set("views",[])),this.get("options").geoms=[],this._clearInner(!0),!this.get("parent")&&this.get("frontCanvas").clear(),this.get("backCanvas").draw(),this.get("canvas").draw(),this.get("frontCanvas").draw(),this.set("plotContainer",null),this.set("backPlot",null),this.set("frontPlot",null),this.set("facets",[]),this},repaint:function(){var e=this.get("views");return e.length>0&&s.each(e,function(e){e._clearInner(!1)}),this._clearInner(!1),this.set("isUpdate",!0),this.set("stats",[]),this.render(),this},getActiveShape:function(){var e=this,t=e.get("geoms"),n=null;return s.each(t,function(e){var t=e.get("activeShapes");if(t&&t.length)return n=t[0],!1}),n},getSnapRecords:function(e){var t=this,n=t.get("geoms"),r=[];return s.each(n,function(t){var n,a=t.get("frames");if("point"===t.get("type")){var i=u.merge.apply(null,a);(n=t.findPoint(e,i))&&r.push(n)}else s.each(a,function(a){(n=t.findPoint(e,a))&&r.push(n)})}),r},getPosition:function(e){var t,n,r,a=this,i=a.get("coord"),o=a.getXScale();o&&(r=o.dim,t=o.scale(e[r]));var l=this.get("scales");return s.each(l,function(t){if(t&&t.dim!==r&&!s.isNull(e[t.dim])){var a=t.dim;return void(n=t.scale(e[a]))}}),i.convert({x:t,y:n})},getXScale:function(){var e=this.get("geoms"),t=null;return e.length&&(t=e[0].getXScale()),t},getYScales:function(){var e=this.get("geoms"),t=[];return s.each(e,function(e){var n=e.getYScale();n&&-1===s.indexOf(t,n)&&t.push(n)}),t},getViews:function(){return this.get("views")},getView:function(e){var t=null,n=this.get("views");return s.each(n,function(n){if(n.get("id")===e)return t=n,!1}),t},getGeoms:function(){return this.get("geoms")},getAllGeoms:function(){var e=[];e=e.concat(this.getGeoms());var t=this.get("views");return s.each(t,function(t){e=e.concat(t.getGeoms())}),e},getScale:function(e){return this.get("scales")[e]},createScale:function(e,t){var n=this.get("data"),r=this.get("scaleAssist"),a=this.get("scales");return a[e]||(a[e]=r.createScale(e,n,t)),a[e]},getViewsByPoint:function(e){var t=[],n=this.get("views");return i(this.get("coord"),e)&&t.push(this),s.each(n,function(n){i(n.get("coord"),e)&&t.push(n)}),t}});for(var y in f)f.hasOwnProperty(y)&&(y=y.toLowerCase(),g.prototype[y]=o(y));s.each(v,function(e){var t=r(e),n=t[0],a=s.ucfirst(t[1]);"pointDodge"===e&&(a=["Dodge"]),g.prototype[e]=o(n,a)}),e.exports=g},function(e,t,n){"use strict";var r=n(1),a=n(5),i=n(119),o=function e(t){e.superclass.constructor.call(this,t)};r.extend(o,a.Group),r.mixin(o,[i.Group]),r.augment(o,{isItemActived:function(e){return e.get("actived")},setItemActived:function(e,t){e.set("actived",t)}}),e.exports=o},function(e,t,n){"use strict";var r=n(1),a=n(10),i=n(313),o=n(315),s=n(317),l=n(318),u=n(316),c=n(306),d=n(112),f=["size","shape","color"],p=n(111),h=n(4),m=function e(t){e.superclass.constructor.call(this,t),this._init()};m.ATTRS={type:"point",chart:null,attrs:null,stats:null,scales:null,styleCfg:null,labelCfg:null,animate:h.animate},r.extend(m,a),r.mixin(m,[u,l,o,s]),r.augment(m,{_init:function(){var e=this.get("chart"),t=e.get("plotContainer");t||(t=e.get("canvas").addGroup());var n=t.addGroup({zIndex:10});this.set("container",n)},_addLabels:function(e){var t=this,n=t.get("type"),a=t.get("coord"),o=i.getLabelsClass(a.type,n),s=this.get("id"),l=t.get("container"),u=l.addGroup(o,{id:s,labelsCfg:t.get("labelCfg"),coord:a,geom:t,geomType:n}),c=[];r.each(e,function(e){c=c.concat(e.toJSON())}),u.showLabels(c),t.set("labelGroup",u)},_draw:function(e){var t=this.get("group"),n=this.get("type"),a=this.get("id"),i=this._getGroupScales(),o=this.get("chart").get("idDims");n=r.ucfirst(n);var s=new d[n]({id:a,container:t,attrs:this.get("attrs"),styleCfg:this.get("styleCfg"),adjusts:this.get("adjusts"),frames:e,groupScales:i,idDims:o}),l=s.draw(e);return this.set("geomShape",s.get("shapeObj")),this.set("shapeType",s.get("shapeType")),this.set("shapeDatas",s.get("shapeDatas")),l},paint:function(e,t,n){function r(){var e=a._draw(t);n&&n(e),a.get("labelCfg")&&a._addLabels(e)}var a=this;if("map"===e.type){var i=a.get("scales"),o=i["..long"],s=i["..lant"];e.set("originMin",[o.min,s.min]),e.set("originMax",[o.max,s.max]),a.set("coord",e)}a.getAttr("position").coord=e;var l=a.get("container"),u=l.addGroup(c,{geom:a,coord:e,multipleActive:a.isShareTooltip(),capture:!0});return u.setMatrix(e.get("matrix").clone()),a.set("group",u),a._groupAnimate(r),a},_groupAnimate:function(e){var t=this,n=t.get("chart"),r=n.get("isUpdate"),a=n.get("animate")||t.get("animate"),i=t.get("animateCfg"),o=i&&i.appear&&i.appear.animation;if(!r&&a&&t._isGroupAnimation(o)){n.set("groupAnimate",!0);var s=p.getGroupAnimation({geom:t,animateCfg:i.appear,fn:function(){e()}});s?s.start():e()}else e()},getDefaultValue:function(e){var t=this,n=t.get(e),r=t.getAttr(e);if(r){var a=r.getScale(e);"identity"===a.type&&(n=a.value)}return n},getLegendAttr:function(){var e=this,t=e.get("attrs"),n=[];return r.each(t,function(e){-1!==r.indexOf(f,e.type)&&n.push(e)}),n},getScales:function(){return this.get("scales")},destroy:function(){var e=this.get("group");e&&!e.get("destroyed")&&(e.clear(),e.remove()),this.clearShapeActived(),this._attrs={},this.events={}},getXDistance:function(){var e,t=this,n=t.getXScale();if(n.isCategory)e=1;else{var r=n.values,a=r.length,i=Math.min.apply(null,r);e=(Math.max.apply(null,r)-i)/(a-1)}return e},getAttr:function(e){var t=this.get("attrs"),n=null;return r.each(t,function(t){t.type===e&&(n=t)}),n},getXDim:function(){return this.getXScale().dim},getYDim:function(){var e=this.getYScale();return e?e.dim:"y"},getXScale:function(){return this.getAttr("position").scales[0]},getYScale:function(){return this.getAttr("position").scales[1]},isInCircle:function(){return this.get("coord").isPolar},getData:function(){return this.get("shapeDatas")},setVisible:function(e){this.get("container").set("visible",e)},_isGroupAnimation:function(e){return e&&"group"===e.slice(0,5)}}),e.exports=m},function(e,t,n){"use strict";var r=n(1),a=n(174),i=n(2),o=n(22),s=function e(t){e.superclass.constructor.call(this,t)};s.ATTRS={type:"contour"},r.extend(s,o.Path),r.augment(s,{_beql:function(e,t){return Math.abs(e-t)<1e-6},_getZScale:function(){return this.getAttr("position").getScale("z")},_getData:function(e){var t=this,n=[],a=t.getAttr("position"),o=a.getDims(),s=o[0],l=o[1],u=o[2],c=i.values(e,s),d=i.values(e,l),f=0,p=0,h=null;return r.each(c,function(e){h&&t._beql(h,e)||f++,h=e}),h=null,r.each(d,function(e){h&&t._beql(h,e)||p++,h=e}),e.each(function(e,t){var r=Math.floor(t/p),a=Math.floor(t%p),i=[e[s],e[l],e[u]];Array.isArray(n[r])||(n[r]=[]),n[r][a]=i}),n},processFrames:function(e){var t=this,n=t.getXDim(),o=t.getYDim(),s=t._getZScale(),l=s.dim,u=i.merge.apply(null,e),c=u.rowObject(0),d=t._getData(u),f=s.ticks,p=a(d,f),h=[];return r.each(p,function(e){var t=e.path,a=e.value,s=[];r.each(t,function(e){var t=r.mix({},c);t[n]=e[0],t[o]=e[1],t[l]=a,s.push(t)}),h.push(new i(s))}),h}}),e.exports=s},function(e,t,n){"use strict";var r=n(1),a=n(22),i=function e(t){e.superclass.constructor.call(this,t)};i.ATTRS={type:"edge"},r.extend(i,a.Base),e.exports=i},function(e,t,n){"use strict";var r=n(1),a=n(200),i=n(22),o=n(4),s=function e(t){e.superclass.constructor.call(this,t)};s.ATTRS={type:"heatmap"},r.extend(s,i.Base),r.augment(s,{_getHeatmapData:function(e){var t=this,n=[],r=t.getAttr("color"),a=r.getDims(),i=a[0];return e.each(function(e){var t=[e.x,e.y,e._origin[i]];n.push(t)}),n},_getImageRegion:function(){var e=this,t=e.getCoord(),n=t.get("start"),r=t.get("end");return{x:n.x,y:r.y,width:r.x-n.x,height:n.y-r.y}},_getColorScale:function(){return this.getAttr("color").getScale("color")},_getRadius:function(){var e=this,t=e.getAttr("position"),n=e.getCoord(),r=t.stat,a=null;if(r){var i=r.bandWidth;a=Math.min(n.getWidth(),n.getHeight())*i}return 2*a},drawFrame:function(e){var t=this,n=t.get("container"),i=t._getHeatmapData(e),s=t._getImageRegion(),l=t._getColorScale(),u=e.rowObject(0).size,c=t.getAttr("color"),d=r.mix({min:l.min,max:l.max,formatter:function(e){return l.scale(e)}},o.heatmap,s);d.colors=[c.mappingValues(l.invert(0)).join(""),c.mappingValues(l.invert(.25)).join(""),c.mappingValues(l.invert(.5)).join(""),c.mappingValues(l.invert(.75)).join(""),c.mappingValues(l.invert(1)).join("")];var f=u?parseInt(u,10):t._getRadius();f&&(d.radius=f);var p=new a(d),h=p.getData(i),m=document.createElement("canvas"),v=m.getContext("2d");m.width=s.width,m.height=s.height,v.putImageData(h,0,0);var g=n.addShape("Image",{attrs:s});g.attr("img",m),g.animateType="heatmap",g.id=this.get("viewId")+"heatmap"}}),e.exports=s},function(e,t,n){"use strict";var r=n(1),a=n(22),i=n(113),o=function e(t){e.superclass.constructor.call(this,t)};o.ATTRS={adjusts:null,frames:null},r.extend(o,a.Interval),r.mixin(o,[i]),r.augment(o,{processFrames:function(e){var t=this.getCoord(),n=t.type,a=this.get("adjusts");if(("theta"===n||"polar"===n&&t.isTransposed)&&"Stack"===a.toString()){var i=[],o=this.getYDim();return r.each(e,function(e){e.colArray("_origin")[0][o]>=0&&i.push(e)}),i}return e}}),e.exports=o},function(e,t,n){"use strict";var r=n(1),a=n(22),i=n(113),o=function e(t){e.superclass.constructor.call(this,t)};o.ATTRS={adjusts:null,frames:null},r.extend(o,a.Schema),r.mixin(o,[i]),e.exports=o},function(e,t,n){"use strict";var r=n(115),a=n(114),i=n(314),o={getLabelsClass:function(e){var t=r;return"polar"===e||"plus"===e?t=a:"theta"===e&&(t=i),t}};e.exports=o},function(e,t,n){"use strict";function r(e,t,n){return{x:e.x+n*Math.cos(t),y:e.y+n*Math.sin(t)}}function a(e,t,n,r,a){var i,o=!0,s=n.start,l=n.end,u=Math.min(s.y,l.y),c=Math.abs(s.y-l.y),d=0,f=Number.MIN_VALUE,p=e.map(function(e){return e.y>d&&(d=e.y),e.yc&&(c=d-u);o;)for(p.forEach(function(e){var t=(Math.min.apply(f,e.targets)+Math.max.apply(f,e.targets))/2;e.pos=Math.min(Math.max(f,t-e.size/2),c-e.size)}),o=!1,i=p.length;i--;)if(i>0){var h=p[i-1],m=p[i];h.pos+h.size>m.pos&&(h.size+=m.size,h.targets=h.targets.concat(m.targets),h.pos+h.size>c&&(h.pos=c-h.size),p.splice(i,1),o=!0)}i=0,p.forEach(function(n){var r=u+t/2;n.targets.forEach(function(){e[i].y=n.pos+r,r+=t,i++})}),e.forEach(function(e){var t=e.r*e.r,n=Math.pow(Math.abs(e.y-r.y),2);if(t0&&(e=t._distribute(e,n)),e},getGlobalLabelCfg:function(){return i.mix({},l.thetaLabels)},_distribute:function(e,t){var n=this,r=n.get("coord"),i=r.getRadius(),o=n.get("labels").labelHeight,s=r.getCenter(),l=i+t,u=2*l+2*o,c={start:r.get("start"),end:r.get("end")},d=n.get("geom");if(d){var f=d.get("chart");(c=f.get("plotRange"))||(c=f.get("region"))}var p=[[],[]];return e.forEach(function(e){"right"===e.textAlign?p[0].push(e):p[1].push(e)}),p.forEach(function(e,t){var n=parseInt(u/o,10);e.length>n&&(e.sort(function(e,t){return t["..percent"]-e["..percent"]}),e.splice(n,e.length-n)),e.sort(function(e,t){return e.y-t.y}),a(e,o,c,s,t)}),p[0].concat(p[1])},drawLines:function(e,t){var n=this;n.getDefaultOffset()>0&&i.each(e,function(e){n.lineToLabel(e,t)})},lineToLabel:function(e,t){var n=this,a=n.get("coord"),o=a.getRadius(),s=n.getDefaultOffset(),l=e.orignAngle||e.angle,u=a.getCenter(),c=r(u,l,o+2.5),d=r(u,l,o+s/2),f=n.get("lineGroup");f||(f=n.addGroup({elCls:"x-line-group",animate:!1}),n.set("lineGroup",f)),f.addShape("path",{attrs:i.mix({path:["M"+c.x,c.y+" Q"+d.x,d.y+" "+e.x,e.y].join(","),fill:null,stroke:e.color},t)})},getLabelRotate:function(e,t){var n;return t<0&&(n=180*e/Math.PI,n>90&&(n-=180),n<-90&&(n+=180)),n/180*Math.PI},getLabelAlign:function(e){var t,n=this,r=n.get("coord"),a=r.getCenter();return t=e.angle<=Math.PI/2&&e.x>=a.x?"left":"right",n.getDefaultOffset()<=0&&(t="right"===t?"left":"right"),t},getArcPoint:function(e){return e},getPointAngle:function(e){var t,n=this,r=n.get("coord"),a={x:i.isArray(e.x)?e.x[0]:e.x,y:e.y[0]},o={x:i.isArray(e.x)?e.x[1]:e.x,y:e.y[1]},l=s.getPointAngle(r,a);if(e.points&&e.points[0].y===e.points[1].y)t=l;else{var u=s.getPointAngle(r,o);l>=u&&(u+=2*Math.PI),t=l+(u-l)/2}return t},getCirclePoint:function(e,t){var n=this,a=n.get("coord"),i=a.getCenter(),o=a.getRadius()+t,s=r(i,e,o);return s.angle=e,s.r=o,s}}),e.exports=u},function(e,t,n){"use strict";function r(e,t){if(!e)return!0;if(e.length!==t.length)return!0;var n=!1;return i.each(t,function(t,r){if(t!==e[r])return n=!0,!1}),n}function a(e,t){for(var n=e.points,r=n[0].x,a=n[0].y,i=n[0].x,o=n[0].y,s=0;s=i&&(i=l),u<=a&&(a=u),u>=o&&(o=u)}return t.x>=r&&t.x<=i&&t.y>=a&&t.y<=o}var i=n(1),o=n(2),s=Math.abs,l="_origin",u=function(){};u.ATTRS={localRefresh:!1,allowActiveShape:!0,snapAll:!0,snapDistance:10},i.augment(u,{isAllowActiveShape:function(){var e=this.get("type");return!i.inArray(["contour","path","line","area"],e)&&this.get("allowActiveShape")},isSnapAll:function(){var e=this.get("type");return"interval"!==e&&"schema"!==e&&this.get("snapAll")},setActiveByPoint:function(e){var t=this,n=t.get("coord"),a=null;if(!t.isAllowActiveShape())return[];if(t.isShareTooltip())a=t._getSharedShapes(e,n);else{a=[];var i=t.getSingleShape(e);i&&i.get("visible")&&a.push(i)}return r(t.get("preShapes"),a)&&t.setShapesActive(a),t.set("preShapes",a),a},_getSharedShapes:function(e){var t=this,n=t.get("group"),r=[];if(n){var a=t.getXDim(),o=n.get("children");i.each(o,function(t){var n=t.get("origin");if(t.get("visible")&&n){var o=n[l][a],s=e[l][a];(i.isArray(o)&&i.isArray(s)&&i.equalsArray(o,s)||o===s)&&r.push(t)}})}return r},getSingleShape:function(e){var t,n=this,r=null,a=o.forceMerge.apply(null,n.get("frames"));if("contour"===n.get("type"))return t=n.findPoint(e,a),i.length(t)&&(r={origin:t,get:function(e){return this[e]}}),r;var s=n.get("group"),l=n.get("coord"),u=s.get("canvas"),c=u.get("pixelRatio");if(s){var d=s.get("children"),f=[];if(d.length>30){var p=o.max(a,"size");i.each(d,function(t){n.isSnapPoint(e,t,l,p)&&f.push(t)})}else f=d;for(var h=f.length-1;h>=0;h--){var m=f[h];if(m.get("origin")&&m.isHit(e.x*c,e.y*c)){r=m;break}}}return r},_isSnapPointOfPolygon:function(e,t,n){var r,o=this,u=o.get("snapDistance"),c=o.getXScale(),d=o.getYScale(),f=t[l],p=n.invert(e);if(i.isArray(t.x)&&i.isArray(t.y))r=a(t,p);else{var h=n.trans(t.x,t.y,1),m=!1,v=!1;m=c.isCategory?c.translate(c.invert(p.x))===c.translate(f[c.dim]):s(h.x-e.x)=p&&e.x<=h&&e.y>=m&&e.y<=v}else if(this.isSnapAll()){var g=o.y;i.isArray(o.y)&&(g=(g[0]+g[g.length-1])/2);var y=n.trans(o.x,g,1);f=s(y.x-e.x)0){var a=n.getXDim(),o=n.getYDim(),s=e.get("origin")._origin,l=n.get("labelGroup"),u=l.get("labelsGroup").get("children");i.each(u,function(n){var r=n.get("attrs").point;r[a]===s[a]&&r[o]===s[o]&&(n.set("visible",t),e.set("gLabel",n))})}}},setShapesFiltered:function(e){var t=this,n=t.get("chart"),r=n.get("canvas");i.each(e,function(e){e.get("visible")?t._setLabelsVisible(e,!0):t._setLabelsVisible(e,!1)}),r.draw()},_setActiveShape:function(e,t){var n,r=this,a=e.get("type"),o=e.get("origin"),s=o.shape||r.getDefaultValue("shape");i.isArray(s)&&(s=s[0]);var l=r.get("geomShape"),u=l[s]||l,c=u.getActiveCfg(s,o);n=i.mix({},c,{fill:"white",fillOpacity:.15,clip:null});var d=i.mix({},e.__attrs,n),f=t.addShape(a,{attrs:d});f.setMatrix(e.getMatrix()),f.set("origin",o)},clearShapeActived:function(){var e=this,t=e.get("activeGroup");t&&t.clear(),e.set("activeShapes",null),e.set("preShapes",null)}}),e.exports=u},function(e,t,n){"use strict";function r(e){return e.binWidth||e.bandWidth}var a=n(1),i=n(2),o=n(122),s=n(4),l=["size","shape","color"],u=["Dodge","Jitter","Stack","Symmetric"],c=function(){};c.ATTRS={adjusts:null},a.augment(c,{_getScale:function(e){var t=this,n=t.get("scales"),r=null;return a.each(n,function(t){if(t.dim===e)return r=t,!1}),r},_getGroupScales:function(){var e=this,t=[],n=e.get("attrs");return a.each(n,function(e){if(-1!==l.indexOf(e.type)){var n=e.scales;a.each(n,function(e){e.isCategory&&-1===a.indexOf(t,e)&&t.push(e)})}}),t},_saveOriginData:function(e){return a.each(e,function(e){var t=e.toJSON();e.addCol("_origin",t)}),e},_setStatRange:function(e){var t=this,n=e.getDims(),r=[];a.each(n,function(n){var a=t._getScale(n);a.isCategory||"identity"===a.type||(isNaN(a.min)||isNaN(a.max)||e.setRange(n,{min:a.min,max:a.max}),"bin"===e.type&&r.push(n))}),r.length&&(e.binDims=r)},_getBinStat:function(e){var t=null;if(r(e))t=e;else if(e.stat){for(var n=e.stat;n&&!r(n);)n=n.stat;n&&r(n)&&(t=n)}return t},_execStat:function(e,t){var n=this,r=n._getBinStat(e);return r&&n._setStatRange(r),(e.isRegression||e.setRange)&&n._setStatRange(e),e.exec(t)},_execStats:function(e){var t=this,n=e;if(a.isNull(e)||e&&0===e.length)return n;var r=t.get("attrs"),o=t.getAttr("position"),s=o.stat,l=[];a.each(r,function(e){"position"!==e.type&&e.stat&&l.push(e.stat)}),s&&(n=t._execStat(s,n));var u=t.get("labelCfg");if(u&&u.stat&&(n=t._execStat(u.stat,n)),l.length){var c=[],d=o.getDims();a.each(n,function(e){c=c.concat(i.group(e,d))}),n=c,a.each(l,function(e){n=t._execStat(e,n)}),n=[i.merge.apply(this,n)]}return n},_getGroupDims:function(){var e=[],t=this._getGroupScales();return a.each(t,function(t){e.push(t.dim)}),e},_groupFrames:function(e){var t=this._getGroupDims();return i.group(e,t)},_filterNullValue:function(e){var t=this.getXDim();return i.filter(e,function(e){return a.isArray(e[t])||!a.isNull(e[t])})},_createFrame:function(e){var t=this,n=t.get("scales"),r=e.clone();return a.each(n,function(t){var n=t.dim;if(!e.contains(n)){var a,o=!t.value&&s.scales[n]?0:t.value;a=i.Array.repeat(o,e.rowCount()),r.addCol(n,a)}}),r},processData:function(e){var t=this._createFrame(e);return t=this._filterNullValue(t),e=this._groupFrames(t),e=this._execStats(e),e=this._saveOriginData(e)},numbericFrames:function(e){var t=this,n=t.get("scales");return a.each(e,function(e){a.each(n,function(t){var n=t.dim;if(t.isCategory||"time"===t.type){var r=e.colArray(n);a.each(r,function(e,n){r[n]=t.translate(e)}),e.colReplace(n,r)}})}),e},_paddingNullValue:function(e){var t=this;if(e.length){var n=t.getXDim(),r=t.getYDim(),o=i.merge.apply(null,e),s=i.values(o,n);a.each(e,function(e){if(e.rowCount()0&&(e.get("selectedCfg")&&"multiple"===e.get("selectedCfg").mode?(n=[],r.each(t,function(e){n.push(e.get("origin"))})):n=t[0].get("origin")),n},clearSelected:function(){var e=this,t=e.getSelectedShapes();r.each(t,function(t){e.setShapeSelected(t,!1)})}}),e.exports=i},function(e,t,n){"use strict";function r(e){return e.alias||e.dim}var a=n(1),i=n(4),o="_origin",s=function(){};s.ATTRS={tooltipMap:{},tooltipDims:null,shareTooltip:!0},a.augment(s,{_snapEqual:function(e,t,n){return e=n.translate(e),t=n.translate(t),n.isCategory?e===t:Math.abs(e-t)<=.001},_getScaleValueByPoint:function(e){var t=0,n=this.get("coord"),r=this.getXScale(),a=n.invert(e),i=a.x;return this.isInCircle()&&i>(1+r.rangeMax())/2&&(i=r.rangeMin()),t=r.invert(i),r.isCategory&&(t=r.translate(t)),t},_getTipMapScale:function(e){var t=this.get("tooltipMap"),n=t&&t[e];return this._getScale(n)},_getTipValueScale:function(){var e=this._getTipMapScale("value");if(!e){var t=this.getLegendAttr();a.each(t,function(t){var n=t.getScale(t.type);if(n.isLinear)return e=n,!1})}var n=this.getXScale(),r=this.getYScale();return!e&&r&&"..y"===r.dim?n:e||r||n},_getTipTitleScale:function(){var e=this,t=e._getTipMapScale("title");if(!t){var n,r=e.getAttr("position"),i=r.getDims();a.each(i,function(e){if(-1===e.indexOf(".."))return n=e,!1}),t=e._getScale(n)}return t},_filterValue:function(e,t){var n=this.get("coord"),r=this.getYScale(),i=r.dim,s=n.invert(t),l=s.y;l=r.invert(l);var u=e[e.length-1];return a.each(e,function(e){var t=e[o];if(t[i][0]<=l&&t[i][1]>=l)return u=e,!1}),u},findPoint:function(e,t){var n=this,r=n.getXScale(),i=n.getYScale(),s=r.dim,l=i.dim,u=n.get("type"),c=t.toJSON(),d=null;if(a.indexOf(["heatmap","contour","point"],u)>-1){var f,p=n.get("coord"),h=p.invert(e),m=r.invert(h.x),v=i.invert(h.y),g={};a.each(c,function(e){var t=(e._origin[s]-m)*(e._origin[s]-m)+(e._origin[l]-v)*(e._origin[l]-v);(a.isNull(f)||t=b){if(!k)return d=e,!1;a.isArray(d)||(d=[]),d.push(e)}}),a.isArray(d)&&(d=this._filterValue(d,e));else{var E;if(r.isLinear||"timeCat"===r.type){if((b>r.translate(w)||br.max||bMath.abs(r.translate(E[o][s])-b)&&(_=E)}var O=n.getXDistance();!d&&Math.abs(r.translate(_[o][s])-b)<=O/2&&(d=_)}return d},getTipTitle:function(e){var t,n="",r=this.get("tooltipMap"),a=r.title;if(a){if(!(t=this._getScale(a)))return a}else t=this._getTipTitleScale();if(t){var i=e[t.dim];n=t.getText(i)}else if("heatmap"===this.get("type")){var o=this.getXScale(),s=this.getYScale(),l=o.getText(e[o.dim]),u=s.getText(e[s.dim]);n="( "+l+", "+u+" )"}return n},getTipValue:function(e,t){var n;if(n=e[t.dim],a.isArray(n)){var r=[];a.each(n,function(e){r.push(t.getText(e))}),n=r.join("-")}else n=t.getText(n);return n},getTipName:function(e){var t,n,i=this.get("tooltipMap"),o=i.name;if(o&&!(n=this._getScale(o)))return o;var s=this._getGroupScales();if(!n&&s.length&&a.each(s,function(e){return n=e,!1}),n){var l=n.dim;t=n.getText(e[l])}else{t=r(this._getTipValueScale())}return t},getTipItems:function(e,t){function n(t,n){a.isNull(n)||""===n||p.push({title:d,point:e,name:t||d,value:n,color:e.color||i.defaultColor,marker:!0})}var s=this,l=e[o];t&&s.set("tooltipMap",t);var u,c,d=s.getTipTitle(l),f=s.get("tooltipDims"),p=[];if(f)a.each(f,function(e){if(!a.isNull(l[e])){var t=s._getScale(e);u=r(t),c=t.getText(l[e]),n(u,c)}});else{var h=s._getTipValueScale();a.isNull(l[h.dim])||(c=s.getTipValue(l,h),u=s.getTipName(l),n(u,c))}return p},isShareTooltip:function(){var e=this.get("shareTooltip"),t=this.get("type");if("interval"===t){var n=this.get("coord"),r=n.type;("theta"===r||"polar"===r&&n.isTransposed)&&(e=!1)}else this.getYScale()&&!a.inArray(["contour","point","polygon","edge"],t)||(e=!1);return e}}),e.exports=s},function(e,t,n){"use strict";function r(e){var t=h.shape.hollowArea;return d.mix(!0,{},t,{stroke:e.color,lineWidth:e.size,strokeOpacity:e.opacity},e.style)}function a(e){var t=h.shape.area;return d.mix(!0,{},t,{fill:e.color,stroke:e.color,lineWidth:e.size,fillOpacity:e.opacity},e.style)}function i(e,t){var n="",r=[],a=[],i=[],o=e.isInCircle;return d.each(e.points,function(e){a.push(e[0]),i.push(e[1])}),i=i.reverse(),r.push(a,i),d.each(r,function(e,r){var a="";if(a=t?p.getSplinePath(e,!1):p.getLinePath(e,!1),o){var i=e[0];a+=d.substitute("L {x} {y}",i)}else r>0&&(a=a.replace("M","L"));n+=a}),n+="z"}function o(e,t,n){return[["M",e-n,t+n],["L",e-n,t-n],["L",e,t],["L",e+n,t-n],["L",e+n,t+n],["z"]]}function s(e,t,n){return d.path2Absolute([["M",e-n,t+n],["L",e-n,t],["R",e-n/2,t-n/2,e,t,e+n/2,t+n/2,e+n,t],["L",e+n,t+n],["z"]])}function l(e,t,n){var i=n?r(e):a(e);return d.mix({symbol:t?s:o},i)}function u(e){return e&&-1!==e.indexOf("line")?h.activeShape.hollowArea:h.activeShape.area}function c(e,t,n){var r=e._coord,a=r.convertPoint(t.points[0][1]);return n.addShape("circle",{attrs:d.mix({x:a.x,y:a.y,r:2,fill:t.color},t.style)})}var d=n(1),f=n(13),p=n(17),h=n(4),m=[2,1],v=f.registGeom("area",{defaultShapeType:"area",getActiveCfg:function(e){return u(e)},drawShape:function(e,t,n){var r,a=this.getShape(e);return r=1===t.points.length&&h.showSinglePoint?c(this,t,n):a.drawShape(t,n),r&&(r.set("origin",t.origin),r.animateType=r.animateType?r.animateType:t.geomType,r.id=t.id,t.splitedIndex&&(r.id+="splI"+t.splitedIndex)),r},getSelectedCfg:function(e,t){return t&&t.style?t.style:this.getActiveCfg(e)}});f.registShape("area","area",{getShapePoints:function(e){var t=[],n=e.x,r=e.y,a=e.y0;return r=d.isArray(r)?r:[a,r],d.each(r,function(e){t.push({x:n,y:e})}),t},drawShape:function(e,t){var n=a(e),r=i(e,!1);return r=this.parsePath(r,!1),t.addShape("path",{attrs:d.mix(n,{path:r})})},getMarkerCfg:function(e){return l(e,!1,!1)}}),f.registShape("area","smooth",{drawShape:function(e,t){var n=a(e),r=i(e,!0);return r=this.parsePath(r,!1),t.addShape("path",{attrs:d.mix(n,{path:r})})},getMarkerCfg:function(e){return l(e,!0,!1)}}),f.registShape("area","line",{drawShape:function(e,t){var n=r(e),a=i(e,!1);return a=this.parsePath(a,!1),t.addShape("path",{attrs:d.mix(n,{path:a})})},getMarkerCfg:function(e){return l(e,!1,!0)}}),f.registShape("area","dotLine",{drawShape:function(e,t){var n=r(e),a=i(e,!1);return n.lineDash=m,a=this.parsePath(a),t.addShape("path",{attrs:d.mix(n,{path:a})})},getMarkerCfg:function(e){var t=l(e,!1,!0);return t.lineDash=m,t}}),f.registShape("area","smoothLine",{drawShape:function(e,t){var n=r(e),a=i(e,!0);return a=this.parsePath(a,!1),t.addShape("path",{attrs:d.mix(n,{path:a})})},getMarkerCfg:function(e){return l(e,!0,!0)}}),f.registShape("area","dotSmoothLine",{drawShape:function(e,t){var n=r(e),a=i(e,!0);return n.lineDash=m,a=this.parsePath(a,!1),t.addShape("path",{attrs:d.mix(n,{path:a})})},getMarkerCfg:function(e){var t=l(e,!0,!0);return t.lineDash=m,t}}),v.spline=v.smooth,e.exports=v},function(e,t,n){"use strict";function r(e){var t=p.shape.line;return c.mix(!0,{},t,{stroke:e.color,lineWidth:e.size,strokeOpacity:e.opacity,opacity:e.opacity},e.style)}function a(e,t){var n=[];n.push({x:e.x,y:.5*e.y+1*t.y/2}),n.push({y:.5*e.y+1*t.y/2,x:t.x}),n.push(t);var r=["C"];return c.each(n,function(e){r.push(e.x,e.y)}),r}function i(e,t){var n=[];n.push({x:t.x,y:t.y}),n.push(e);var r=["Q"];return c.each(n,function(e){r.push(e.x,e.y)}),r}function o(e,t){var n=a(e,t),r=[["M",e.x,e.y]];return r.push(n),r}function s(e,t,n){var r=i(t,n),a=[["M",e.x,e.y]];return a.push(r),a}function l(e,t){var n=i(e[1],t),r=i(e[3],t),a=[["M",e[0].x,e[0].y]];return a.push(r),a.push(["L",e[3].x,e[3].y]),a.push(["L",e[2].x,e[2].y]),a.push(n),a.push(["L",e[1].x,e[1].y]),a.push(["L",e[0].x,e[0].y]),a.push(["Z"]),a}function u(e,t){var n=[];n.push({y:e.y*(1-m)+t.y*m,x:e.x}),n.push({y:e.y*(1-m)+t.y*m,x:t.x}),n.push(t);var r=[["M",e.x,e.y]];return c.each(n,function(e){r.push(["L",e.x,e.y])}),r}var c=n(1),d=n(13),f=n(52),p=n(4),h=n(17),m=1/3,v=d.registGeom("edge",{defaultShapeType:"line",getShapePoints:function(e,t){return f.splitPoints(t)},getActiveCfg:function(){return{strokeOpacity:.7}}});d.registShape("edge","line",{drawShape:function(e,t){var n=this.parsePoints(e.points),a=r(e),i=h.getLinePath(n);return t.addShape("path",{attrs:c.mix(a,{path:i})})}}),d.registShape("edge","vhv",{drawShape:function(e,t){var n=e.points,a=r(e),i=u(n[0],n[1]);return i=this.parsePath(i),t.addShape("path",{attrs:c.mix(a,{path:i})})}}),d.registShape("edge","smooth",{drawShape:function(e,t){var n=e.points,a=r(e),i=o(n[0],n[1]);return i=this.parsePath(i),t.addShape("path",{attrs:c.mix(a,{path:i})})}}),d.registShape("edge","arc",{drawShape:function(e,t){var n,i,o=e.points,u=o.length>2?"weight":"normal",d=r(e);if(e.isInCircle){var f={x:0,y:1};"normal"===u?i=s(o[0],o[1],f):(d.fill=d.stroke,i=l(o,f)),i=this.parsePath(i),n=t.addShape("path",{attrs:c.mix(d,{path:i})})}else if("normal"===u)o=this.parsePoints(o),n=t.addShape("arc",{attrs:c.mix(d,{x:(o[1].x+o[0].x)/2,y:o[0].y,r:Math.abs(o[1].x-o[0].x)/2,startAngle:Math.PI,endAngle:2*Math.PI})});else{i=[["M",o[0].x,o[0].y],["L",o[1].x,o[1].y]];var p=a(o[1],o[3]),h=a(o[2],o[0]);i.push(p),i.push(["L",o[3].x,o[3].y]),i.push(["L",o[2].x,o[2].y]),i.push(h),i.push(["Z"]),i=this.parsePath(i),d.fill=d.stroke,n=t.addShape("path",{attrs:c.mix(d,{path:i})})}return n}}),e.exports=v},function(e,t,n){"use strict";function r(e,t){var n=e.x,r=e.y,a=e.y0,i=e.size,o=a,s=r;h.isArray(r)&&(s=r[1],o=r[0]);var l,u;h.isArray(n)?(l=n[0],u=n[1]):(l=n-i/2,u=n+i/2);var c=[];return c.push({x:l,y:o},{x:l,y:s}),t?c.push({x:u,y:(s+o)/2}):c.push({x:u,y:s},{x:u,y:o}),c}function a(e){for(var t=[],n=0;n1?e[1]:t;return{min:t,max:n,min1:r,max1:e.length>3?e[3]:n,median:e.length>2?e[2]:r}}function a(e,t){f.each(e,function(e){t.push({x:e[0],y:e[1]})})}function i(e){var t=h.shape.line;return f.mix(!0,{},t,{stroke:e.color,fill:"#fff",fillOpacity:0,strokeOpacity:e.opacity})}function o(e,t,n){var i,o,s=[];return f.isArray(t)?(o=r(t),i=[[e-n/2,o.max],[e+n/2,o.max],[e,o.max],[e,o.max1],[e-n/2,o.min1],[e-n/2,o.max1],[e+n/2,o.max1],[e+n/2,o.min1],[e,o.min1],[e,o.min],[e-n/2,o.min],[e+n/2,o.min],[e-n/2,o.median],[e+n/2,o.median]]):(t=t||.5,o=r(e),i=[[o.min,t-n/2],[o.min,t+n/2],[o.min,t],[o.min1,t],[o.min1,t-n/2],[o.min1,t+n/2],[o.max1,t+n/2],[o.max1,t-n/2],[o.max1,t],[o.max,t],[o.max,t-n/2],[o.max,t+n/2],[o.median,t-n/2],[o.median,t+n/2]]),a(i,s),s}function s(e){f.isArray(e)||(e=[e]);var t=e.sort(function(e,t){return eMath.abs(e[n][i])&&(i=r);for(a=n;a=n;a--)e[a][r]-=e[a][n]*e[n][r]/e[n][n]}for(r=s-1;r>=0;r--){for(o=0,a=r+1;a=0;l--)g+=l>1?Math.round(h[l]*Math.pow(10,l))/Math.pow(10,l)+"x^"+l+" + ":1==l?Math.round(100*h[l])/100+"x + ":Math.round(100*h[l])/100;return{equation:h,points:i,string:g}},lastvalue:function(e){for(var t=[],n=null,r=0;rt||void 0===t)&&(t=e[n]);return t}function d(e){if(0===e.length)return null;for(var t=i(e),n=[],r=0;ra&&(a=i,t=r),i=1,r=n[o]):i++;return t}function b(e,t){return(i(e)-t)/(f(e)/Math.sqrt(e.length))}function x(e,t,n){var r=e.length,a=t.length;if(!r||!a)return null;n||(n=0);var o=i(e),s=i(t),l=((r-1)*h(e)+(a-1)*h(t))/(r+a-2);return(o-s-n)/Math.sqrt(l*(1/r+1/a))}function M(e,t){var n=[];if(t<=0)return null;for(var r=0;r0;)r=Math.floor(t()*a--),n=e[a],e[a]=e[r],e[r]=n;return e}function k(e,t){return e=e.slice(),w(e.slice(),t)}function E(e,t,n){return k(e,n).slice(0,t)}function S(e,t){if(0===e.length)return null;var n=e.slice().sort(function(e,t){return e-t});if(t.length){for(var r=[],a=0;a1?null:1===t?e[e.length-1]:0===t?e[0]:n%1!=0?e[Math.ceil(n)-1]:e.length%2==0?(e[n-1]+e[n])/2:e[n]}function T(e){return 0===e.length?null:S(e,.75)-S(e,.25)}function L(e){if(!e||0===e.length)return null;for(var t=y(e),n=[],r=0;r=o+i[p][r-1]&&(a[u][r]=m,i[u][r]=o+i[p][r-1])}a[u][1]=1,i[u][1]=o}return{lower_class_limits:a,variance_combinations:i}}function P(e,t,n){var r=e.length-1,a=[],i=n;for(a[n]=e[e.length-1],a[0]=e[0];i>1;)a[i-1]=e[t[r][i]-2],r=t[r][i]-1,i--;return a}function D(e,t){return t>e.length?null:(e=e.slice().sort(function(e,t){return e-t}),P(e,O(e,t).lower_class_limits,t))}function N(e){if(e.length<3)return null;var t=e.length,n=Math.pow(m(e),3);return t*p(e,3)/((t-1)*(t-2)*n)}function A(e){var t=Math.abs(e),n=Math.floor(10*t),r=10*(Math.floor(100*t)/10-Math.floor(100*t/10)),a=Math.min(10*n+r,z.length-1);return e>=0?z[a]:+(1-z[a]).toFixed(4)}function j(e,t,n){return(e-t)/n}function Y(e){if(e<0)return null;for(var t=1,n=2;n<=e;n++)t*=n;return t}function R(e){return e<0||e>1?null:I(1,e)}function I(e,t){if(t<0||t>1||e<=0||e%1!=0)return null;var n=0,r=0,a={};do{a[n]=function(e,t,n){return Y(t)/(Y(e)*Y(t-e))*(Math.pow(n,e)*Math.pow(1-n,t-e))}(n,e,t),r+=a[n],n++}while(r<1-B);return a}function F(e){if(e<=0)return null;var t=0,n=0,r={};do{r[t]=function(e,t){return Math.pow(Math.E,-t)*Math.pow(t,e)/Y(e)}(t,e),n+=r[t],t++}while(n<1-B);return r}function H(e,t,n){for(var r,a,o=i(e),s=0,l=t(o),u=[],c=[],d=0;d=0;a--)c[a]<3&&(c[a-1]+=c[a],c.pop(),u[a-1]+=u[a],u.pop());for(a=0;a children");return y.a.createElement(M.a,{key:n.key,ref:function(t){return e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)}));var a=t.component;if(a){var i=t;return"string"==typeof a&&(i=o()({className:t.className,style:t.style},t.componentProps)),y.a.createElement(a,i,r)}return r[0]||null}}]),t}(y.a.Component);E.propTypes={component:b.a.any,componentProps:b.a.object,animation:b.a.object,transitionName:b.a.oneOfType([b.a.string,b.a.object]),transitionEnter:b.a.bool,transitionAppear:b.a.bool,exclusive:b.a.bool,transitionLeave:b.a.bool,onEnd:b.a.func,onEnter:b.a.func,onLeave:b.a.func,onAppear:b.a.func,showProp:b.a.string},E.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:a,onEnter:a,onLeave:a,onAppear:a};var S=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var a=e.props;if(delete e.currentlyAnimatingKeys[t],!a.exclusive||a===e.nextProps){var i=Object(x.e)(r(a));e.isValidChildByKey(i,t)?"appear"===n?w.a.allowAppearCallback(a)&&(a.onAppear(t),a.onEnd(t,!0)):w.a.allowEnterCallback(a)&&(a.onEnter(t),a.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var a=Object(x.e)(r(n));if(e.isValidChildByKey(a,t))e.performEnter(t);else{var i=function(){w.a.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};Object(x.c)(e.state.children,a,n.showProp)?i():e.setState({children:a},i)}}}};t.default=E},function(e,t){e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l=0||a.indexOf("Bottom")>=0?o.top=i.height-t.offset[1]+"px":(a.indexOf("Top")>=0||a.indexOf("bottom")>=0)&&(o.top=-t.offset[1]+"px"),a.indexOf("left")>=0||a.indexOf("Right")>=0?o.left=i.width-t.offset[0]+"px":(a.indexOf("right")>=0||a.indexOf("Left")>=0)&&(o.left=-t.offset[0]+"px"),e.style.transformOrigin=o.left+" "+o.top}},n.saveTooltip=function(e){n.tooltip=e},n.state={visible:!!e.visible},n}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentWillReceiveProps",value:function(e){"visible"in e&&this.setState({visible:e.visible})}},{key:"getPopupDomNode",value:function(){return this.tooltip.getPopupDomNode()}},{key:"getPlacements",value:function(){var e=this.props,t=e.builtinPlacements,n=e.arrowPointAtCenter,r=e.autoAdjustOverflow;return t||(0,w.default)({arrowPointAtCenter:n,verticalArrowShift:8,autoAdjustOverflow:r})}},{key:"isHoverTrigger",value:function(){var e=this.props.trigger;return!e||"hover"===e||!!Array.isArray(e)&&e.indexOf("hover")>=0}},{key:"getDisabledCompatibleChildren",value:function(e){if((e.type.__ANT_BUTTON||"button"===e.type)&&e.props.disabled&&this.isHoverTrigger()){var t=k(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),n=t.picked,r=t.omited,a=(0,m.default)({display:"inline-block"},n,{cursor:"not-allowed"}),i=(0,m.default)({},r,{pointerEvents:"none"}),o=(0,v.cloneElement)(e,{style:i,className:null});return g.default.createElement("span",{style:a,className:e.props.className},o)}return e}},{key:"isNoTitle",value:function(){var e=this.props,t=e.title,n=e.overlay;return!t&&!n}},{key:"render",value:function(){var e=this.props,t=this.state,n=e.prefixCls,r=e.title,a=e.overlay,o=e.openClassName,s=e.getPopupContainer,l=e.getTooltipContainer,u=e.children,c=t.visible;"visible"in e||!this.isNoTitle()||(c=!1);var d=this.getDisabledCompatibleChildren(g.default.isValidElement(u)?u:g.default.createElement("span",null,u)),f=d.props,p=(0,x.default)(f.className,(0,i.default)({},o||n+"-open",!0));return g.default.createElement(_.default,(0,m.default)({},this.props,{getTooltipContainer:s||l,ref:this.saveTooltip,builtinPlacements:this.getPlacements(),overlay:a||r||"",visible:c,onVisibleChange:this.onVisibleChange,onPopupAlign:this.onPopupAlign}),c?(0,v.cloneElement)(d,{className:p}):d)}}]),t}(g.default.Component);t.default=E,E.defaultProps={prefixCls:"ant-tooltip",placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0},e.exports=t.default},function(e,t,n){"use strict";function r(e){var t=e.match(/^https?:\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}function a(e){var t=r(e),n="",a="",i=t.indexOf("#");-1!==i&&(a=t.substring(i),t=t.substring(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substring(o),t=t.substring(0,o)),""===t&&(t="/"),{pathname:t,search:n,hash:a}}t.__esModule=!0,t.extractPath=r,t.parsePath=a;var i=n(27);!function(e){e&&e.__esModule}(i)},function(e,t,n){var r=n(62),a=n(107);e.exports=n(67)?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(267),a=n(172);e.exports=function(e){return r(a(e))}},function(e,t,n){e.exports={default:n(574),__esModule:!0}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(17),a=(n(11),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},o=function(e,t,n){var r=this;if(r.instancePool.length){var a=r.instancePool.pop();return r.call(a,e,t,n),a}return new r(e,t,n)},s=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},l=function(e){var t=this;e instanceof t||r("25"),e.destructor(),t.instancePool.length should not have a "'+t+'" prop')}t.__esModule=!0,t.routes=t.route=t.components=t.component=t.history=void 0,t.falsy=r;var a=n(0),i=a.PropTypes.func,o=a.PropTypes.object,s=a.PropTypes.arrayOf,l=a.PropTypes.oneOfType,u=a.PropTypes.element,c=a.PropTypes.shape,d=a.PropTypes.string,f=(t.history=c({listen:i.isRequired,push:i.isRequired,replace:i.isRequired,go:i.isRequired,goBack:i.isRequired,goForward:i.isRequired}),t.component=l([i,d])),p=(t.components=l([f,o]),t.route=l([o,u]));t.routes=l([p,s(p)])},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(468),i=r(a),o=n(815),s=r(o);i.default.Button=s.default,t.default=i.default,e.exports=t.default},function(e,t,n){"use strict";n(14),n(824)},function(e,t,n){function r(e,t){var n=i(e,t);return a(n)?n:void 0}var a=n(852),i=n(855);e.exports=r},function(e,t,n){"use strict";n(14),n(971),n(234),n(497),n(498)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),o=n(9),s=r(o),l=n(2),u=r(l),c=n(6),d=r(c),f=n(4),p=r(f),h=n(5),m=r(h),v=n(0),g=r(v),y=n(7),_=r(y),b=n(8),x=r(b),M=n(235),w=r(M),k=n(499),E=r(k),S=n(158),C=n(980),T=r(C),L=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);a1){for(var h=Array(p),m=0;m1){for(var g=Array(v),y=0;y=0&&e.splice(n,1)}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=v({},e),n=new Promise(function(e,n){t.resolve=e,t.reject=n});return t.promise=n,t}function l(e){for(var t=[],n=0;n1&&void 0!==arguments[1])||arguments[1],n=void 0,r=new Promise(function(r){n=setTimeout(function(){return r(t)},e)});return r[x]=function(){return clearTimeout(n)},r}function c(){var e,t=!0,n=void 0,a=void 0;return e={},r(e,_,!0),r(e,"isRunning",function(){return t}),r(e,"result",function(){return n}),r(e,"error",function(){return a}),r(e,"setRunning",function(e){return t=e}),r(e,"setResult",function(e){return n=e}),r(e,"setError",function(e){return a=e}),e}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(){return++e}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments[3],a={name:n,next:e,throw:t,return:T};return r&&(a[b]=!0),"undefined"!=typeof Symbol&&(a[Symbol.iterator]=function(){return a}),a}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";"undefined"==typeof window?console.log("redux-saga "+e+": "+t+"\n"+(n&&n.stack||n)):console[e](t,n)}function h(e,t){return function(){return k&&p("warn",t),e.apply(void 0,arguments)}}function m(e){return function(t){var n=Object.defineProperty(t,M,{value:!0});return e(n)}}Object.defineProperty(t,"__esModule",{value:!0});var v=Object.assign||function(e){for(var t=1;t0||(0,d.default)(!1),null!=c&&(o+=encodeURI(c))):"("===l?a+=1:")"===l?a-=1:":"===l.charAt(0)?(u=l.substring(1),c=t[u],null!=c||a>0||(0,d.default)(!1),null!=c&&(o+=encodeURIComponent(c))):o+=l;return o.replace(/\/+/g,"/")}t.__esModule=!0,t.compilePattern=i,t.matchPattern=o,t.getParamNames=s,t.getParams=l,t.formatPattern=u;var c=n(28),d=function(e){return e&&e.__esModule?e:{default:e}}(c),f=Object.create(null)},function(e,t,n){"use strict";n(14),n(793),n(23)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){var r=l.default.unstable_batchedUpdates?function(e){l.default.unstable_batchedUpdates(n,e)}:n;return(0,o.default)(e,t,r)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var i=n(469),o=r(i),s=n(13),l=r(s);e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e+t}function a(e,t,n){var r=n;{if("object"!==(void 0===t?"undefined":C(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):L(e,t);for(var i in t)t.hasOwnProperty(i)&&a(e,i,t[i])}}function i(e){var t=void 0,n=void 0,r=void 0,a=e.ownerDocument,i=a.body,o=a&&a.documentElement;return t=e.getBoundingClientRect(),n=t.left,r=t.top,n-=o.clientLeft||i.clientLeft||0,r-=o.clientTop||i.clientTop||0,{left:n,top:r}}function o(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var a=e.document;n=a.documentElement[r],"number"!=typeof n&&(n=a.body[r])}return n}function s(e){return o(e)}function l(e){return o(e,!0)}function u(e){var t=i(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=s(r),t.top+=l(r),t}function c(e){return null!==e&&void 0!==e&&e==e.window}function d(e){return c(e)?e.document:9===e.nodeType?e:e.ownerDocument}function f(e,t,n){var r=n,a="",i=d(e);return r=r||i.defaultView.getComputedStyle(e,null),r&&(a=r.getPropertyValue(t)||r[t]),a}function p(e,t){var n=e[D]&&e[D][t];if(O.test(n)&&!P.test(t)){var r=e.style,a=r[A],i=e[N][A];e[N][A]=e[D][A],r[A]="fontSize"===t?"1em":n||0,n=r.pixelLeft+j,r[A]=a,e[N][A]=i}return""===n?"auto":n}function h(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function m(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function v(e,t,n){"static"===a(e,"position")&&(e.style.position="relative");var i=-999,o=-999,s=h("left",n),l=h("top",n),c=m(s),d=m(l);"left"!==s&&(i=999),"top"!==l&&(o=999);var f="",p=u(e);("left"in t||"top"in t)&&(f=Object(S.c)(e)||"",Object(S.e)(e,"none")),"left"in t&&(e.style[c]="",e.style[s]=i+"px"),"top"in t&&(e.style[d]="",e.style[l]=o+"px");var v=u(e),g={};for(var y in t)if(t.hasOwnProperty(y)){var _=h(y,n),b="left"===y?i:o,x=p[y]-v[y];g[_]=_===y?b+x:b-x}a(e,g),r(e.offsetTop,e.offsetLeft),("left"in t||"top"in t)&&Object(S.e)(e,f);var M={};for(var w in t)if(t.hasOwnProperty(w)){var k=h(w,n),E=t[w]-p[w];M[k]=w===k?g[k]+E:g[k]-E}a(e,M)}function g(e,t){var n=u(e),r=Object(S.b)(e),a={x:r.x,y:r.y};"left"in t&&(a.x=r.x+t.left-n.left),"top"in t&&(a.y=r.y+t.top-n.top),Object(S.d)(e,a)}function y(e,t,n){n.useCssRight||n.useCssBottom?v(e,t,n):n.useCssTransform&&Object(S.a)()in document.body.style?g(e,t,n):v(e,t,n)}function _(e,t){for(var n=0;n=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},r.isCharacterKey=function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigation.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=(0,v.default)();return t.locale(e.locale()).utcOffset(e.utcOffset()),t}function i(e){return e.format("L")}function o(e){return i(a(e))}function s(e){var t=e.locale();return e.localeData()["zh-cn"===t?"months":"monthsShort"](e)}function l(e,t){v.default.isMoment(e)&&v.default.isMoment(t)&&(t.hour(e.hour()),t.minute(e.minute()),t.second(e.second()))}function u(e,t){var n=t?t(e):{};return n=(0,h.default)({},g,n)}function c(e,t){var n=!1;if(e){var r=e.hour(),a=e.minute(),i=e.second();if(-1===t.disabledHours().indexOf(r)){if(-1===t.disabledMinutes(r).indexOf(a)){n=-1!==t.disabledSeconds(r,a).indexOf(i)}else n=!0}else n=!0}return!n}function d(e,t){return c(e,u(e,t))}function f(e,t,n){return(!t||!t(e))&&!(n&&!d(e,n))}Object.defineProperty(t,"__esModule",{value:!0});var p=n(1),h=r(p);t.getTodayTime=a,t.getTitleString=i,t.getTodayTimeStr=o,t.getMonthName=s,t.syncTime=l,t.getTimeConfig=u,t.isTimeValidByConfig=c,t.isTimeValid=d,t.isAllowedDate=f;var m=n(3),v=r(m),g={disabledHours:function(){return[]},disabledMinutes:function(){return[]},disabledSeconds:function(){return[]}}},function(e,t,n){"use strict";function r(e,t){var n=!0;for(var r in e)"function"==typeof e[r]&&"function"==typeof t[r]?e[r].toString()!=t[r].toString()&&(n=!1):e[r]!=t[r]&&(n=!1);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t,n){"use strict";var r=n(553)(!0);n(263)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(266),a=n(179);e.exports=Object.keys||function(e){return r(e,a)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(172);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r=0&&"small"===l),"Tabs[type=card|editable-card] doesn't have small size, it's by designed.");var N=(0,T.default)(o,(e={},(0,s.default)(e,r+"-mini","small"===l||"mini"===l),(0,s.default)(e,r+"-vertical","left"===f||"right"===f),(0,s.default)(e,r+"-card",d.indexOf("card")>=0),(0,s.default)(e,r+"-"+d,!0),(0,s.default)(e,r+"-no-animation",!P),e)),A=void 0;"editable-card"===d&&(A=[],_.default.Children.forEach(p,function(e,n){var a=e.props.closable;a=void 0===a||a;var i=a?_.default.createElement(O.default,{type:"close",onClick:function(n){return t.removeTab(e.key,n)}}):null;A.push((0,y.cloneElement)(e,{tab:_.default.createElement("div",{className:a?void 0:r+"-tab-unclosable"},e.props.tab,i),key:e.key||n}))}),v||(h=_.default.createElement("span",null,_.default.createElement(O.default,{type:"plus",className:r+"-new-tab",onClick:this.createNewTab}),h))),h=h?_.default.createElement("div",{className:r+"-extra-content"},h):null;var j=function(){return _.default.createElement(k.default,{inkBarAnimated:L,extraContent:h,onTabClick:g,onPrevClick:b,onNextClick:x,style:m})};return _.default.createElement(M.default,(0,i.default)({},this.props,{className:N,tabBarPosition:f,renderTabBar:j,renderTabContent:function(){return _.default.createElement(S.default,{animated:P,animatedWithMargin:!0})},onChange:this.handleChange}),A||p)}}]),t}(_.default.Component);t.default=j,j.TabPane=x.TabPane,j.defaultProps={prefixCls:"ant-tabs",hideAdd:!1},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Group=t.Button=void 0;var a=n(238),i=r(a),o=n(990),s=r(o),l=n(991),u=r(l);i.default.Button=u.default,i.default.Group=s.default,t.Button=u.default,t.Group=s.default,t.default=i.default},function(e,t,n){"use strict";n(14),n(992),n(159),n(506),n(99),n(234),n(497)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(994),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=a.default,e.exports=t.default},function(e,t,n){"use strict";function r(e){var t=m()();return t.locale(e.locale()).utcOffset(e.utcOffset()),t}function a(e){return e.format("L")}function i(e){return a(r(e))}function o(e){var t=e.locale();return e.localeData()["zh-cn"===t?"months":"monthsShort"](e)}function s(e,t){m.a.isMoment(e)&&m.a.isMoment(t)&&(t.hour(e.hour()),t.minute(e.minute()),t.second(e.second()))}function l(e,t){var n=t?t(e):{};return n=p()({},v,n)}function u(e,t){var n=!1;if(e){var r=e.hour(),a=e.minute(),i=e.second();if(-1===t.disabledHours().indexOf(r)){if(-1===t.disabledMinutes(r).indexOf(a)){n=-1!==t.disabledSeconds(r,a).indexOf(i)}else n=!0}else n=!0}return!n}function c(e,t){return u(e,l(e,t))}function d(e,t,n){return(!t||!t(e))&&!(n&&!c(e,n))}t.d=r,t.c=a,t.e=i,t.a=o,t.g=s,t.b=l,t.f=d;var f=n(1),p=n.n(f),h=n(3),m=n.n(h),v={disabledHours:function(){return[]},disabledMinutes:function(){return[]},disabledSeconds:function(){return[]}}},function(e,t,n){"use strict";t.__esModule=!0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);t.canUseDOM=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return l.stringify(e).replace(/%20/g,"+")}function i(e){return function(){function t(e){if(null==e.query){var t=e.search;e.query=M(t.substring(1)),e[h]={search:t,searchBase:""}}return e}function n(e,t){var n,r=e[h],a=t?x(t):"";if(!r&&!a)return e;"string"==typeof e&&(e=d.parsePath(e));var i=void 0;i=r&&e.search===r.search?r.searchBase:e.search||"";var s=i;return a&&(s+=(s?"&":"?")+a),o({},e,(n={search:s},n[h]={search:s,searchBase:i},n))}function r(e){return b.listenBefore(function(n,r){c.default(e,t(n),r)})}function i(e){return b.listen(function(n){e(t(n))})}function s(e){b.push(n(e,e.query))}function l(e){b.replace(n(e,e.query))}function u(e,t){return b.createPath(n(e,t||e.query))}function f(e,t){return b.createHref(n(e,t||e.query))}function v(e){for(var r=arguments.length,a=Array(r>1?r-1:0),i=1;i=0&&e.splice(n,1)}function o(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=void 0,r=new Promise(function(r){n=setTimeout(function(){return r(t)},e)});return r[m]=function(){return clearTimeout(n)},r}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments[3],a={name:n,next:e,throw:t,return:S};return r&&(a[p]=!0),"undefined"!=typeof Symbol&&(a[Symbol.iterator]=function(){return a}),a}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";"undefined"==typeof window?console.log("redux-saga "+e+": "+t+"\n"+(n&&n.stack||n)):console[e](t,n)}function u(e,t){return function(){return M&&l("warn",t),e.apply(void 0,arguments)}}n.d(t,"o",function(){return d}),n.d(t,"a",function(){return h}),n.d(t,"b",function(){return v}),n.d(t,"c",function(){return g}),n.d(t,"k",function(){return _}),n.d(t,"m",function(){return b}),n.d(t,"h",function(){return x}),t.d=r,n.d(t,"j",function(){return k}),t.n=i,t.f=o,t.l=s,t.g=u,n.d(t,"i",function(){return C}),n.d(t,"e",function(){return T});var c=(Object.assign,"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}),d=function(e){return"@@redux-saga/"+e},f=d("TASK"),p=d("HELPER"),h=d("MATCH"),m=d("cancelPromise"),v=d("SAGA_ACTION"),g=d("SELF_CANCELLATION"),y=function(e){return function(){return e}},_=y(!0),b=(y(!1),function(){}),x=function(e){return e},M=!1,w=Object.prototype.hasOwnProperty,k={undef:function(e){return null===e||void 0===e},notUndef:function(e){return null!==e&&void 0!==e},func:function(e){return"function"==typeof e},number:function(e){return"number"==typeof e},string:function(e){return"string"==typeof e},array:Array.isArray,object:function(e){return e&&!k.array(e)&&"object"===(void 0===e?"undefined":c(e))},promise:function(e){return e&&k.func(e.then)},iterator:function(e){return e&&k.func(e.next)&&k.func(e.throw)},iterable:function(e){return e&&k.func(Symbol)?k.func(e[Symbol.iterator]):k.array(e)},task:function(e){return e&&e[f]},observable:function(e){return e&&k.func(e.subscribe)},buffer:function(e){return e&&k.func(e.isEmpty)&&k.func(e.take)&&k.func(e.put)},pattern:function(e){return e&&(k.string(e)||"symbol"===(void 0===e?"undefined":c(e))||k.func(e)||k.array(e))},channel:function(e){return e&&k.func(e.take)&&k.func(e.close)},helper:function(e){return e&&e[p]},stringableFunc:function(e){return k.func(e)&&a(e,"toString")}},E=(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0}(),function(e){throw e}),S=function(e){return{value:e,done:!0}},C=function(e){return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: "+e+"\n")},T=function(e,t){return(e?e+".":"")+"setContext(props): argument "+t+" is not a plain object"}},function(e,t,n){"use strict";var r=n(17),a=(n(11),{}),i={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,a,i,o,s,l){this.isInTransaction()&&r("27");var u,c;try{this._isInTransaction=!0,u=!0,this.initializeAll(0),c=e.call(t,n,a,i,o,s,l),u=!1}finally{try{if(u)try{this.closeAll(0)}catch(e){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return c},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n]/,l=n(199),u=l(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML=""+t+"";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(a.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t,n){"use strict";function r(e){var t=""+e,n=i.exec(t);if(!n)return t;var r,a="",o=0,s=0;for(o=n.index;o]/;e.exports=a},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=p++,d[e[m]]={}),d[e[m]]}var a,i=n(18),o=n(191),s=n(662),l=n(309),u=n(663),c=n(195),d={},f=!1,p=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,a=r(n),i=o.registrationNameDependencies[e],s=0;s1&&void 0!==arguments[1]?arguments[1]:f,n=arguments[2],r=arguments[3],i={info:"info-circle",success:"check-circle",error:"cross-circle",warning:"exclamation-circle",loading:"loading"}[n];return a(function(a){a.notice({key:m,duration:t,style:{},content:s.default.createElement("div",{className:v+"-custom-content "+v+"-"+n},s.default.createElement(d.default,{type:i}),s.default.createElement("span",null,e)),onClose:r})}),function(){var e=m++;return function(){h&&h.removeNotice(e)}}()}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),s=r(o),l=n(736),u=r(l),c=n(10),d=r(c),f=3,p=void 0,h=void 0,m=1,v="ant-message",g=void 0;t.default={info:function(e,t,n){return i(e,t,"info",n)},success:function(e,t,n){return i(e,t,"success",n)},error:function(e,t,n){return i(e,t,"error",n)},warn:function(e,t,n){return i(e,t,"warning",n)},warning:function(e,t,n){return i(e,t,"warning",n)},loading:function(e,t,n){return i(e,t,"loading",n)},config:function(e){void 0!==e.top&&(p=e.top,h=null),void 0!==e.duration&&(f=e.duration),void 0!==e.prefixCls&&(v=e.prefixCls),void 0!==e.getContainer&&(g=e.getContainer)},destroy:function(){h&&(h.destroy(),h=null)}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.canUseMembrane=void 0;var r=n(31),a=(function(e){e&&e.__esModule}(r),t.canUseMembrane=!1,function(e){return e});t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;tl?l+"+":r;v&&(y="");var _="0"===y||0===y,b=null===y||void 0===y||""===y,M=(b||_&&!a)&&!v,k=(0,E.default)((e={},(0,s.default)(e,o+"-dot",v),(0,s.default)(e,o+"-count",!v),e)),S=(0,E.default)(u,o,(t={},(0,s.default)(t,o+"-status",!!p),(0,s.default)(t,o+"-not-a-wrapper",!d),t));if((0,C.default)(!(d&&p),"`Badge[children]` and `Badge[status]` cannot be used at the same time."),!d&&p){var L,O=(0,E.default)((L={},(0,s.default)(L,o+"-status-dot",!!p),(0,s.default)(L,o+"-status-"+p,!0),L));return g.default.createElement("span",{className:S},g.default.createElement("span",{className:O}),g.default.createElement("span",{className:o+"-status-text"},h))}var P=M?null:g.default.createElement(w.default,{"data-show":!M,className:k,count:y,title:r,style:c}),D=M||!h?null:g.default.createElement("span",{className:o+"-status-text"},h);return g.default.createElement("span",(0,i.default)({},m,{className:S}),d,g.default.createElement(x.default,{component:"",showProp:"data-show",transitionName:d?o+"-zoom":"",transitionAppear:!0},P),D)}}]),t}(g.default.Component);t.default=L,L.defaultProps={prefixCls:"ant-badge",count:null,showZero:!1,dot:!1,overflowCount:99},L.propTypes={count:_.default.oneOfType([_.default.string,_.default.number]),showZero:_.default.bool,dot:_.default.bool,overflowCount:_.default.number},e.exports=t.default},function(e,t,n){"use strict";n(14),n(959)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=[];return b.default.Children.forEach(e,function(e){e&&t.push(e)}),t}function i(e,t){for(var n=a(e),r=0;r=1e12&&!i||"t"===i?(v+=f.abbreviations.trillion,e/=1e12):o<1e12&&o>=1e9&&!i||"b"===i?(v+=f.abbreviations.billion,e/=1e9):o<1e9&&o>=1e6&&!i||"m"===i?(v+=f.abbreviations.million,e/=1e6):(o<1e6&&o>=1e3&&!i||"k"===i)&&(v+=f.abbreviations.thousand,e/=1e3)),t._.includes(n,"[.]")&&(h=!0,n=n.replace("[.]",".")),s=e.toString().split(".")[0],l=n.split(".")[1],c=n.indexOf(","),m=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(t._.includes(l,"[")?(l=l.replace("]",""),l=l.split("["),g=t._.toFixed(e,l[0].length+l[1].length,r,l[1].length)):g=t._.toFixed(e,l.length,r),s=g.split(".")[0],g=t._.includes(g,".")?f.delimiters.decimal+g.split(".")[1]:"",h&&0===Number(g.slice(1))&&(g="")):s=t._.toFixed(e,0,r),v&&!i&&Number(s)>=1e3&&v!==f.abbreviations.trillion)switch(s=String(Number(s)/1e3),v){case f.abbreviations.thousand:v=f.abbreviations.million;break;case f.abbreviations.million:v=f.abbreviations.billion;break;case f.abbreviations.billion:v=f.abbreviations.trillion}if(t._.includes(s,"-")&&(s=s.slice(1),y=!0),s.length0;_--)s="0"+s;return c>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),0===n.indexOf(".")&&(s=""),d=s+g+(v||""),p?d=(p&&y?"(":"")+d+(p&&y?")":""):u>=0?d=0===u?(y?"-":"+")+d:d+(y?"-":"+"):y&&(d="-"+d),d},stringToNumber:function(e){var t,n,r,i=a[o.currentLocale],s=e,l={thousand:3,million:6,billion:9,trillion:12};if(o.zeroFormat&&e===o.zeroFormat)n=0;else if(o.nullFormat&&e===o.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{n=1,"."!==i.delimiters.decimal&&(e=e.replace(/\./g,"").replace(i.delimiters.decimal,"."));for(t in l)if(r=new RegExp("[^a-zA-Z]"+i.abbreviations[t]+"(?:\\)|(\\"+i.currency.symbol+")?(?:\\))?)?$"),s.match(r)){n*=Math.pow(10,l[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),a=r.length>>>0,i=0;if(3===arguments.length)n=arguments[2];else{for(;i=a)throw new TypeError("Reduce of empty array with no initial value");n=r[i++]}for(;ir?e:r},1)},toFixed:function(e,t,n,r){var a,i,o,s,l=e.toString().split("."),u=t-(r||0);return a=2===l.length?Math.min(Math.max(l[1].length,u),t):u,o=Math.pow(10,a),s=(n(e+"e+"+a)/o).toFixed(a),r>t-a&&(i=new RegExp("\\.?0{1,"+(r-(t-a))+"}$"),s=s.replace(i,"")),s}},t.options=o,t.formats=r,t.locales=a,t.locale=function(e){return e&&(o.currentLocale=e.toLowerCase()),o.currentLocale},t.localeData=function(e){if(!e)return a[o.currentLocale];if(e=e.toLowerCase(),!a[e])throw new Error("Unknown locale : "+e);return a[e]},t.reset=function(){for(var e in i)o[e]=i[e]},t.zeroFormat=function(e){o.zeroFormat="string"==typeof e?e:null},t.nullFormat=function(e){o.nullFormat="string"==typeof e?e:null},t.defaultFormat=function(e){o.defaultFormat="string"==typeof e?e:"0.0"},t.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},t.validate=function(e,n){var r,a,i,o,s,l,u,c;if("string"!=typeof e&&(e+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",e)),e=e.trim(),e.match(/^\d+$/))return!0;if(""===e)return!1;try{u=t.localeData(n)}catch(e){u=t.localeData(t.locale())}return i=u.currency.symbol,s=u.abbreviations,r=u.delimiters.decimal,a="."===u.delimiters.thousands?"\\.":u.delimiters.thousands,(null===(c=e.match(/^[^\d]+/))||(e=e.substr(1),c[0]===i))&&((null===(c=e.match(/[^\d]+$/))||(e=e.slice(0,-1),c[0]===s.thousand||c[0]===s.million||c[0]===s.billion||c[0]===s.trillion))&&(l=new RegExp(a+"{2}"),!e.match(/[^\d.,]/g)&&(o=e.split(r),!(o.length>2)&&(o.length<2?!!o[0].match(/^\d+.*\d$/)&&!o[0].match(l):1===o[0].length?!!o[0].match(/^\d+$/)&&!o[0].match(l)&&!!o[1].match(/^\d+$/):!!o[0].match(/^\d+.*\d$/)&&!o[0].match(l)&&!!o[1].match(/^\d+$/)))))},t.fn=e.prototype={clone:function(){return t(this)},format:function(e,n){var a,i,s,l=this._value,u=e||o.defaultFormat;if(n=n||Math.round,0===l&&null!==o.zeroFormat)i=o.zeroFormat;else if(null===l&&null!==o.nullFormat)i=o.nullFormat;else{for(a in r)if(u.match(r[a].regexps.format)){s=r[a].format;break}s=s||t._.numberToFormat,i=s(l,u,n)}return i},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){function t(e,t,n,a){return e+Math.round(r*t)}var r=n.correctionFactor.call(null,this._value,e);return this._value=n.reduce([this._value,e],t,0)/r,this},subtract:function(e){function t(e,t,n,a){return e-Math.round(r*t)}var r=n.correctionFactor.call(null,this._value,e);return this._value=n.reduce([e],t,Math.round(this._value*r))/r,this},multiply:function(e){function t(e,t,r,a){var i=n.correctionFactor(e,t);return Math.round(e*i)*Math.round(t*i)/Math.round(i*i)}return this._value=n.reduce([this._value,e],t,1),this},divide:function(e){function t(e,t,r,a){var i=n.correctionFactor(e,t);return Math.round(e*i)/Math.round(t*i)}return this._value=n.reduce([this._value,e],t),this},difference:function(e){return Math.abs(t(this._value).subtract(e).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(e,n,r){var a,i=t._.includes(n," BPS")?" ":"";return e*=1e4,n=n.replace(/\s?BPS/,""),a=t._.numberToFormat(e,n,r),t._.includes(a,")")?(a=a.split(""),a.splice(-1,0,i+"BPS"),a=a.join("")):a=a+i+"BPS",a},unformat:function(e){return+(1e-4*t._.stringToNumber(e)).toFixed(15)}})}(),function(){var e={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r=e.suffixes.concat(n.suffixes.filter(function(t){return e.suffixes.indexOf(t)<0})),a=r.join("|");a="("+a.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(a)},format:function(r,a,i){var o,s,l,u=t._.includes(a,"ib")?n:e,c=t._.includes(a," b")||t._.includes(a," ib")?" ":"";for(a=a.replace(/\s?i?b/,""),o=0;o<=u.suffixes.length;o++)if(s=Math.pow(u.base,o),l=Math.pow(u.base,o+1),null===r||0===r||r>=s&&r0&&(r/=s);break}return t._.numberToFormat(r,a,i)+c},unformat:function(r){var a,i,o=t._.stringToNumber(r);if(o){for(a=e.suffixes.length-1;a>=0;a--){if(t._.includes(r,e.suffixes[a])){i=Math.pow(e.base,a);break}if(t._.includes(r,n.suffixes[a])){i=Math.pow(n.base,a);break}}o*=i||1}return o}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(e,n,r){var a,i,o=t.locales[t.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),a=t._.numberToFormat(e,n,r),e>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):e<0&&!t._.includes(s.before,"-")&&!t._.includes(s.before,"(")&&(s.before="-"+s.before),i=0;i=0;i--)switch(s.after[i]){case"$":a=i===s.after.length-1?a+o.currency.symbol:t._.insert(a,o.currency.symbol,-(s.after.length-(1+i)));break;case" ":a=i===s.after.length-1?a+" ":t._.insert(a," ",-(s.after.length-(1+i)+o.currency.symbol.length-1))}return a}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(e,n,r){var a="number"!=typeof e||t._.isNaN(e)?"0e+0":e.toExponential(),i=a.split("e");return n=n.replace(/e[\+|\-]{1}0/,""),t._.numberToFormat(Number(i[0]),n,r)+"e"+i[1]},unformat:function(e){function n(e,n,r,a){var i=t._.correctionFactor(e,n);return e*i*(n*i)/(i*i)}var r=t._.includes(e,"e+")?e.split("e+"):e.split("e-"),a=Number(r[0]),i=Number(r[1]);return i=t._.includes(e,"e-")?i*=-1:i,t._.reduce([a,Math.pow(10,i)],n,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(e,n,r){var a=t.locales[t.options.currentLocale],i=t._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),i+=a.ordinal(e),t._.numberToFormat(e,n,r)+i}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(e,n,r){var a,i=t._.includes(n," %")?" ":"";return t.options.scalePercentBy100&&(e*=100),n=n.replace(/\s?\%/,""),a=t._.numberToFormat(e,n,r),t._.includes(a,")")?(a=a.split(""),a.splice(-1,0,i+"%"),a=a.join("")):a=a+i+"%",a},unformat:function(e){var n=t._.stringToNumber(e);return t.options.scalePercentBy100?.01*n:n}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),a=Math.floor((e-60*r*60)/60),i=Math.round(e-60*r*60-60*a);return r+":"+(a<10?"0"+a:a)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}})}(),t})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(164),i=r(a),o=n(1071),s=r(o),l=n(1073),u=r(l),c=n(1074),d=r(c),f=n(1076),p=r(f),h=n(1078),m=r(h),v=n(1079),g=r(v),y=n(1080),_=r(y),b=n(1081),x=r(b),M=n(1083),w=r(M),k=n(1085),E=r(k),S=n(1087),C=r(S),T=n(1089),L=r(T),O=n(1091),P=r(O),D=n(1093),N=r(D),A=n(1098),j=function(e){return"¥ "+(0,i.default)(e).format("0,0")};t.default={IconUp:A.IconUp,IconDown:A.IconDown,yuan:j,Bar:u.default,Pie:d.default,Gauge:m.default,Radar:p.default,MiniBar:_.default,MiniArea:g.default,MiniProgress:x.default,ChartCard:s.default,Trend:w.default,Field:E.default,NumberInfo:C.default,WaterWave:L.default,TagCloud:P.default,TimelineChart:N.default},e.exports=t.default},function(e,t){e.exports={card:"card___kLDIF",heading:"heading___31KEF",steps:"steps___33UUb",divider:"divider___1SXj5",errorIcon:"errorIcon___3dzef",errorPopover:"errorPopover___2aoQw",errorListItem:"errorListItem___3fOPZ",errorField:"errorField___3ZJw1",editable:"editable___wnNz7",withFooterToolbar:"withFooterToolbar___3fDWY",optional:"optional___1oyxh"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=e.className,n=e.type,r=e.title,a=e.description,i=e.extra,s=e.actions,u=(0,c.default)(e,["className","type","title","description","extra","actions"]),d={error:f.default.createElement(l.default,{className:v.default.error,type:"close-circle"}),success:f.default.createElement(l.default,{className:v.default.success,type:"check-circle"})},p=(0,h.default)(v.default.result,t);return f.default.createElement("div",(0,o.default)({className:p},u),f.default.createElement("div",{className:v.default.icon},d[n]),f.default.createElement("div",{className:v.default.title},r),a&&f.default.createElement("div",{className:v.default.description},a),i&&f.default.createElement("div",{className:v.default.extra},i),s&&f.default.createElement("div",{className:v.default.actions},s))}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=r(i),s=(n(20),n(10)),l=r(s),u=n(19),c=r(u);t.default=a;var d=n(0),f=r(d),p=n(8),h=r(p),m=n(1214),v=r(m);e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function a(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function i(){return window.location.href.split("#")[1]||""}function o(e){window.location.replace(window.location.pathname+window.location.search+"#"+e)}function s(){return window.location.pathname+window.location.search+window.location.hash}function l(e){e&&window.history.go(e)}function u(e,t){t(window.confirm(e))}function c(){var e=navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}function d(){return-1===navigator.userAgent.indexOf("Firefox")}t.__esModule=!0,t.addEventListener=r,t.removeEventListener=a,t.getHashPath=i,t.replaceHashPath=o,t.getWindowPath=s,t.go=l,t.getUserConfirmation=u,t.supportsHistory=c,t.supportsGoWithoutReloadUsingHash=d},function(e,t,n){"use strict";function r(e,t,n){var r=e(t,n);e.length<2&&n(r)}t.__esModule=!0;var a=n(27);!function(e){e&&e.__esModule}(a);t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return function(){return e.apply(this,arguments)}}t.__esModule=!0;var a=n(27);!function(e){e&&e.__esModule}(a);t.default=r,e.exports=t.default},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(74),a=n(47).document,i=r(a)&&r(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},function(e,t,n){var r=n(74);e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(57),a=n(555),i=n(179),o=n(177)("IE_PROTO"),s=function(){},l=function(){var e,t=n(173)("iframe"),r=i.length;for(t.style.display="none",n(268).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("