(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/admin/common/vendor"],{"0ced":function(t,e,a){"use strict";(function(t,e){var i=a("7037"),o={yAxisWidth:15,yAxisSplit:5,xAxisHeight:15,xAxisLineHeight:15,legendHeight:15,yAxisTitleWidth:15,padding:[10,10,10,10],pixelRatio:1,rotate:!1,columePadding:3,fontSize:13,dataPointShape:["circle","circle","circle","circle"],colors:["#1890ff","#2fc25b","#facc14","#f04864","#8543e0","#90ed7d"],pieChartLinePadding:15,pieChartTextPadding:5,xAxisTextPadding:3,titleColor:"#333333",titleFontSize:20,subtitleColor:"#999999",subtitleFontSize:15,toolTipPadding:3,toolTipBackground:"#000000",toolTipOpacity:.7,toolTipLineHeight:20,radarLabelTextMargin:15,gaugeLabelTextMargin:15},r=function(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),i=1;it.end.x||e.end.xt.start.y||e.start.y2*Math.PI)t-=2*Math.PI;return t}return t=i(t),e=i(e),a=i(a),e>a&&(a+=2*Math.PI,t=e&&t<=a}function c(t,e){function a(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].y>=Math.max(t[e-1].y,t[e+1].y)||t[e].y<=Math.min(t[e-1].y,t[e+1].y))}function i(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].x>=Math.max(t[e-1].x,t[e+1].x)||t[e].x<=Math.min(t[e-1].x,t[e+1].x))}var o=.2,r=.2,n=null,l=null,s=null,h=null;if(e<1?(n=t[0].x+(t[1].x-t[0].x)*o,l=t[0].y+(t[1].y-t[0].y)*o):(n=t[e].x+(t[e+1].x-t[e-1].x)*o,l=t[e].y+(t[e+1].y-t[e-1].y)*o),e>t.length-3){var c=t.length-1;s=t[c].x-(t[c].x-t[c-1].x)*r,h=t[c].y-(t[c].y-t[c-1].y)*r}else s=t[e+1].x-(t[e+2].x-t[e].x)*r,h=t[e+1].y-(t[e+2].y-t[e].y)*r;return a(t,e+1)&&(h=t[e+1].y),a(t,e)&&(l=t[e].y),i(t,e+1)&&(s=t[e+1].x),i(t,e)&&(n=t[e].x),(l>=Math.max(t[e].y,t[e+1].y)||l<=Math.min(t[e].y,t[e+1].y))&&(l=t[e].y),(h>=Math.max(t[e].y,t[e+1].y)||h<=Math.min(t[e].y,t[e+1].y))&&(h=t[e+1].y),(n>=Math.max(t[e].x,t[e+1].x)||n<=Math.min(t[e].x,t[e+1].x))&&(n=t[e].x),(s>=Math.max(t[e].x,t[e+1].x)||s<=Math.min(t[e].x,t[e+1].x))&&(s=t[e+1].x),{ctrA:{x:n,y:l},ctrB:{x:s,y:h}}}function f(t,e,a){return{x:a.x+t,y:a.y-e}}function d(t,e){if(e)while(n.isCollision(t,e))t.start.x>0?t.start.y--:t.start.x<0||t.start.y>0?t.start.y++:t.start.y--;return t}function x(t,e,a){var i=0;return t.map((function(t){if(t.color||(t.color=a.colors[i],i=(i+1)%a.colors.length),t.index||(t.index=0),t.type||(t.type=e.type),"undefined"==typeof t.show&&(t.show=!0),t.type||(t.type=e.type),t.pointShape||(t.pointShape="circle"),!t.legendShape)switch(t.type){case"line":t.legendShape="line";break;case"column":t.legendShape="rect";break;case"area":t.legendShape="triangle";break;default:t.legendShape="circle"}return t}))}function p(t,e){var a=0,i=e-t;return a=i>=1e4?1e3:i>=1e3?100:i>=100?10:i>=10?5:i>=1?1:i>=.1?.1:i>=.01?.01:i>=.001?.001:i>=1e-4?1e-4:i>=1e-5?1e-5:1e-6,{minRange:s(t,"lower",a),maxRange:s(e,"upper",a)}}function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.fontSize;t=String(t);t=t.split("");for(var a=0,i=0;i4&&void 0!==arguments[4]?arguments[4]:{},r=t.map((function(t){var e=[];return e=i||t.data,{text:o.format?o.format(t,e[a]):t.name+": "+t.data,color:t.color}})),n=[],l={x:0,y:0},s=0;s4&&void 0!==arguments[4]?arguments[4]:{},r=t.map((function(t){return{text:o.format?o.format(t,i[a]):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend}}));r=r.filter((function(t){if(!0!==t.disableLegend)return t}));for(var n=[],l={x:0,y:0},s=0;st[i-1][1]&&(s[2]=n),e.data[3]=e.area[3]-10&&t.y>=e.area[0]&&t.y<=e.height-e.area[2]}function w(t,e,a){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(a,2)}function _(t){var e=[],a=[];return t.forEach((function(t,i){null!==t?a.push(t):(a.length&&e.push(a),a=[])})),a.length&&e.push(a),e}function M(t,e,a,i){var o={angle:0,xAxisHeight:a.xAxisHeight},r=t.map((function(t){return b(t,e.xAxis.fontSize||a.fontSize)})),n=Math.max.apply(this,r);return 1==e.xAxis.rotateLabel&&n+2*a.xAxisTextPadding>i&&(o.angle=45*Math.PI/180,o.xAxisHeight=2*a.xAxisTextPadding+n*Math.sin(o.angle)),o}function L(t,e,a){var o={angle:0,xAxisHeight:a.xAxisHeight};o.ranges=function(t,e,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,r=u(t),n=[];r=r.filter((function(t){return"object"===i(t)&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t})),r.map((function(t){"object"===i(t)?t.constructor==Array?"candle"==e.type?t.map((function(t){n.push(t)})):n.push(t[0]):n.push(t.value):n.push(t)}));var l=0,s=0;if(n.length>0&&(l=Math.min.apply(this,n),s=Math.max.apply(this,n)),o>-1?("number"===typeof e.xAxis.data[o].min&&(l=Math.min(e.xAxis.data[o].min,l)),"number"===typeof e.xAxis.data[o].max&&(s=Math.max(e.xAxis.data[o].max,s))):("number"===typeof e.xAxis.min&&(l=Math.min(e.xAxis.min,l)),"number"===typeof e.xAxis.max&&(s=Math.max(e.xAxis.max,s))),l===s){var h=s||10;s+=h}for(var c=l,f=s,d=[],x=(f-c)/e.xAxis.splitNumber,p=0;p<=e.xAxis.splitNumber;p++)d.push(c+x*p);return d}(t,e,a),o.rangesFormat=o.ranges.map((function(t){return t=e.xAxis.format?e.xAxis.format(t):n.toFixed(t,2),t}));var r=o.ranges.map((function(t){return t=n.toFixed(t,2),t=e.xAxis.format?e.xAxis.format(Number(t)):t,t}));o=Object.assign(o,B(r,e,a));var l=o.eachSpacing,s=r.map((function(t){return b(t)})),h=Math.max.apply(this,s);return h+2*a.xAxisTextPadding>l&&(o.angle=45*Math.PI/180,o.xAxisHeight=2*a.xAxisTextPadding+h*Math.sin(o.angle)),!0===e.xAxis.disabled&&(o.xAxisHeight=0),o}function F(t,e,a,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,n=o.extra.radar||{};n.max=n.max||0;for(var l=Math.max(n.max,Math.max.apply(null,u(i))),s=[],h=function(o){var n=i[o],h={};h.color=n.color,h.legendShape=n.legendShape,h.pointShape=n.pointShape,h.data=[],n.data.forEach((function(i,o){var n={};n.angle=t[o],n.proportion=i/l,n.position=f(a*n.proportion*r*Math.cos(n.angle),a*n.proportion*r*Math.sin(n.angle),e),h.data.push(n)})),s.push(h)},c=0;c2&&void 0!==arguments[2]?arguments[2]:1,i=0,o=0,r=0;r2&&void 0!==arguments[2]?arguments[2]:1;t=t.sort((function(t,e){return parseInt(e.data)-parseInt(t.data)}));for(var i=0;i4&&void 0!==arguments[4]?arguments[4]:1,r=0,n=0,l=[],s=0;s2&&void 0!==arguments[2]?arguments[2]:1;1==a&&(a=.999999);for(var i=0;i=2&&(o._proportion_=o._proportion_%2)}return t}function z(t,e,a){for(var i=e-a+1,o=e,r=0;r=2&&(t[r]._endAngle_=t[r]._endAngle_%2),o=t[r]._endAngle_;return t}function W(t,e,a){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=0;o=a.oldData?r._proportion_=(r._endAngle_-r._oldAngle_)*i+a.oldAngle:r._proportion_=r._oldAngle_-(r._oldAngle_-r._endAngle_)*i,r._proportion_>=2&&(r._proportion_=r._proportion_%2)}return t}function O(t,e,a,i,o,r){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*o.columePadding)/a),r.extra.column&&r.extra.column.width&&+r.extra.column.width>0&&(t.width=Math.min(t.width,+r.extra.column.width)),t.width<=0&&(t.width=1),t.x+=(i+.5-a/2)*t.width,t)}))}function E(t,e,a,i,o,r,n){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*o.columePadding)/2),r.extra.column&&r.extra.column.width&&+r.extra.column.width>0&&(t.width=Math.min(t.width,+r.extra.column.width)),i>0&&(t.width-=2*n),t)}))}function N(t,e,a,i,o,r,n){return t.map((function(t,a){return null===t?null:(t.width=Math.ceil((e-2*o.columePadding)/2),r.extra.column&&r.extra.column.width&&+r.extra.column.width>0&&(t.width=Math.min(t.width,+r.extra.column.width)),t)}))}function B(t,e,a){var i=e.width-e.area[1]-e.area[3],o=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type)&&o>1&&"justify"==e.xAxis.boundaryGap&&(o-=1);var r=i/o,n=[],l=e.area[3],s=e.width-e.area[1];return t.forEach((function(t,e){n.push(l+e*r)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?n.push(l+t.length*r):n.push(s)),{xAxisPoints:n,startX:l,endX:s,eachSpacing:r}}function H(t,e,a,i,o,r,n){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,s=[],h=r.height-r.area[0]-r.area[2];return t.forEach((function(t,n){if(null===t)s.push(null);else{var c=[];t.forEach((function(t,s){var f={};f.x=i[n]+Math.round(o/2);var d=t.value||t,x=h*(d-e)/(a-e);x*=l,f.y=r.height-Math.round(x)-r.area[2],c.push(f)})),s.push(c)}})),s}function G(t,e,a,o,r,n,l){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,h="center";"line"!=n.type&&"area"!=n.type||(h=n.xAxis.boundaryGap);var c=[],f=n.height-n.area[0]-n.area[2],d=n.width-n.area[1]-n.area[3];return t.forEach((function(t,l){if(null===t)c.push(null);else{var x={};x.color=t.color,x.x=o[l];var p,b,u,g=t;if("object"===i(t)&&null!==t)if(t.constructor==Array)p=[].concat(n.chartData.xAxisData.ranges),b=p.shift(),u=p.pop(),g=t[1],x.x=n.area[3]+d*(t[0]-b)/(u-b);else g=t.value;"center"==h&&(x.x+=Math.round(r/2));var y=f*(g-e)/(a-e);y*=s,x.y=n.height-Math.round(y)-n.area[2],c.push(x)}})),c}function X(t,e,a,i,o,r,n,l,s){var h=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,c=[],f=r.height-r.area[0]-r.area[2];return t.forEach((function(t,n){if(null===t)c.push(null);else{var d={};if(d.color=t.color,d.x=i[n]+Math.round(o/2),l>0){for(var x=0,p=0;p<=l;p++)x+=s[p].data[n];var b=x-t,u=f*(x-e)/(a-e),g=f*(b-e)/(a-e)}else x=t,u=f*(x-e)/(a-e),g=0;var y=g;u*=h,y*=h,d.y=r.height-Math.round(u)-r.area[2],d.y0=r.height-Math.round(y)-r.area[2],c.push(d)}})),c}function Y(t,e,a,o){var r,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;r="stack"==o?g(t,e.categories.length):u(t);var l=[];r=r.filter((function(t){return"object"===i(t)&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t})),r.map((function(t){"object"===i(t)?t.constructor==Array?"candle"==e.type?t.map((function(t){l.push(t)})):l.push(t[1]):l.push(t.value):l.push(t)}));var s=0,h=0;if(l.length>0&&(s=Math.min.apply(this,l),h=Math.max.apply(this,l)),n>-1?("number"===typeof e.yAxis.data[n].min&&(s=Math.min(e.yAxis.data[n].min,s)),"number"===typeof e.yAxis.data[n].max&&(h=Math.max(e.yAxis.data[n].max,h))):("number"===typeof e.yAxis.min&&(s=Math.min(e.yAxis.min,s)),"number"===typeof e.yAxis.max&&(h=Math.max(e.yAxis.max,h))),s===h){var c=h||10;h+=c}for(var f=p(s,h),d=f.minRange,x=f.maxRange,b=[],y=(x-d)/e.yAxis.splitNumber,v=0;v<=e.yAxis.splitNumber;v++)b.push(d+y*v);return b.reverse()}function j(t,e,a){var i=r({},{type:""},e.extra.column),o=e.yAxis.data.length,l=new Array(o);if(o>0){for(var s=0;s=2&&(c%=2),f+=h}}function K(t,e,a,i,o,r){var l=i.extra.radar||{};e+=o.radarLabelTextMargin,t.forEach((function(t,s){var h={x:e*Math.cos(t),y:e*Math.sin(t)},c=f(h.x,h.y,a),d=c.x,x=c.y;n.approximatelyEqual(h.x,0)?d-=b(i.categories[s]||"")/2:h.x<0&&(d-=b(i.categories[s]||"")),r.beginPath(),r.setFontSize(o.fontSize),r.setFillStyle(l.labelColor||"#666666"),r.fillText(i.categories[s]||"",d,x+o.fontSize/2),r.closePath(),r.stroke()}))}function Q(t,e,a,i,o,r){for(var l=a.pieChartLinePadding,s=[],h=null,c=t.map((function(t){var e=t.format?t.format(+t._proportion_.toFixed(2)):n.toFixed(100*t._proportion_.toFixed(4))+"%";t._rose_proportion_&&(t._proportion_=t._rose_proportion_);var a=2*Math.PI-(t._start_+2*Math.PI*t._proportion_/2),i=t.color,o=t._radius_;return{arc:a,text:e,color:i,radius:o,textColor:t.textColor,textSize:t.textSize}})),x=0;x=0?u+a.pieChartTextPadding:u-a.pieChartTextPadding,S=g,A=b(p.text,p.textSize||a.fontSize),T=S;h&&n.isSameXCoordinateArea(h.start,{x:m})&&(T=m>0?Math.min(S,h.start.y):u<0||S>0?Math.max(S,h.start.y):Math.min(S,h.start.y)),m<0&&(m-=A);var P={lineStart:{x:y,y:v},lineEnd:{x:u,y:g},start:{x:m,y:T},width:A,height:a.fontSize,text:p.text,color:p.color,textColor:p.textColor,textSize:p.textSize};h=d(P,h),s.push(h)}for(var D=0;Da.width&&(x=!0),g+e.y>a.height&&(e.y=a.height-g),o.beginPath(),o.setFillStyle(l(h.bgColor||i.toolTipBackground,h.bgOpacity||i.toolTipOpacity)),x?(o.moveTo(e.x,e.y+10*a.pixelRatio),o.lineTo(e.x-d,e.y+10*a.pixelRatio-5*a.pixelRatio),o.lineTo(e.x-d,e.y),o.lineTo(e.x-d-Math.round(u),e.y),o.lineTo(e.x-d-Math.round(u),e.y+g),o.lineTo(e.x-d,e.y+g),o.lineTo(e.x-d,e.y+10*a.pixelRatio+5*a.pixelRatio),o.lineTo(e.x,e.y+10*a.pixelRatio)):(o.moveTo(e.x,e.y+10*a.pixelRatio),o.lineTo(e.x+d,e.y+10*a.pixelRatio-5*a.pixelRatio),o.lineTo(e.x+d,e.y),o.lineTo(e.x+d+Math.round(u),e.y),o.lineTo(e.x+d+Math.round(u),e.y+g),o.lineTo(e.x+d,e.y+g),o.lineTo(e.x+d,e.y+10*a.pixelRatio+5*a.pixelRatio),o.lineTo(e.x,e.y+10*a.pixelRatio)),o.closePath(),o.fill(),t.forEach((function(t,a){if(null!==t.color){o.beginPath(),o.setFillStyle(t.color);var r=e.x+d+2*i.toolTipPadding,n=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*a+i.toolTipPadding+1;x&&(r=e.x-u-d+2*i.toolTipPadding),o.fillRect(r,n,c,i.fontSize),o.closePath()}})),t.forEach((function(t,a){var r=e.x+d+2*i.toolTipPadding+c+f;x&&(r=e.x-u-d+2*i.toolTipPadding+ +c+f);var n=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*a+i.toolTipPadding;o.beginPath(),o.setFontSize(i.fontSize),o.setFillStyle(h.fontColor),o.fillText(t.text,r,n+i.fontSize),o.closePath(),o.stroke()})))}function it(t,e,a,i,o,r){var n=t.extra.tooltip||{};n.horizentalLine&&t.tooltip&&1===i&&("line"==t.type||"area"==t.type||"column"==t.type||"candle"==t.type||"mix"==t.type)&&tt(t,e,a),a.save(),t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&a.translate(t._scrollDistance_,0),t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===i&&at(t.tooltip.textList,t.tooltip.offset,t,e,a),a.restore()}function ot(t,e,a,i){var o=e.chartData.xAxisData,r=o.xAxisPoints,n=o.startX,l=o.endX,s=o.eachSpacing,h="center";"line"!=e.type&&"area"!=e.type||(h=e.xAxis.boundaryGap);var c=e.height-e.area[2],f=e.area[0];if(e.enableScroll&&e.xAxis.scrollShow){var d=e.height-e.area[2]+a.xAxisHeight,x=l-n,p=s*(r.length-1),u=x*x/p,g=0;e._scrollDistance_&&(g=-e._scrollDistance_*x/p),i.beginPath(),i.setLineCap("round"),i.setLineWidth(6*e.pixelRatio),i.setStrokeStyle(e.xAxis.scrollBackgroundColor||"#EFEBEF"),i.moveTo(n,d),i.lineTo(l,d),i.stroke(),i.closePath(),i.beginPath(),i.setLineCap("round"),i.setLineWidth(6*e.pixelRatio),i.setStrokeStyle(e.xAxis.scrollColor||"#A6A6A6"),i.moveTo(n+g,d),i.lineTo(n+g+u,d),i.stroke(),i.closePath(),i.setLineCap("butt")}if(i.save(),e._scrollDistance_&&0!==e._scrollDistance_&&i.translate(e._scrollDistance_,0),!0===e.xAxis.calibration&&(i.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),i.setLineCap("butt"),i.setLineWidth(1*e.pixelRatio),r.forEach((function(t,a){a>0&&(i.beginPath(),i.moveTo(t-s/2,c),i.lineTo(t-s/2,c+3*e.pixelRatio),i.closePath(),i.stroke())}))),!0!==e.xAxis.disableGrid&&(i.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),i.setLineCap("butt"),i.setLineWidth(1*e.pixelRatio),"dash"==e.xAxis.gridType&&i.setLineDash([e.xAxis.dashLength,e.xAxis.dashLength]),e.xAxis.gridEval=e.xAxis.gridEval||1,r.forEach((function(t,a){a%e.xAxis.gridEval==0&&(i.beginPath(),i.moveTo(t,c),i.lineTo(t,f),i.stroke())})),i.setLineDash([])),!0!==e.xAxis.disabled){var y=t.length;e.xAxis.labelCount&&(y=e.xAxis.itemCount?Math.ceil(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,y-=1);for(var v=Math.ceil(t.length/y),m=[],S=t.length,A=0;Ae[r].area[2]||t[1]>e[r].area[3]||t[2]a||t[3]>i){o=!0;break}o=!1}return o}function ct(t,e,a,i,o,r){return{x:(e-a.xMin)*i+o,y:(a.yMax-t)*i+r}}function ft(t,e,a){if(e[1]==a[1])return!1;if(e[1]>t[1]&&a[1]>t[1])return!1;if(e[1]t[1])return!1;if(a[1]==t[1]&&e[1]>t[1])return!1;if(e[0]e.width-e.padding[1]-e.padding[3]?(f.push(p),x.push(d-e.legend.itemGap),d=y,p=[g]):(d+=y,p.push(g))}if(p.length){f.push(p),x.push(d-e.legend.itemGap),o.widthArr=x;var v=Math.max.apply(null,x);switch(e.legend.float){case"left":o.area.start.x=e.padding[3],o.area.end.x=e.padding[3]+2*r;break;case"right":o.area.start.x=e.width-e.padding[1]-v-2*r,o.area.end.x=e.width-e.padding[1];break;default:o.area.start.x=(e.width-v)/2-r,o.area.end.x=(e.width+v)/2+r}o.area.width=v+2*r,o.area.wholeWidth=v+2*r,o.area.height=f.length*c+2*r,o.area.wholeHeight=f.length*c+2*r+2*n,o.points=f}}else{var m=t.length,S=e.height-e.padding[0]-e.padding[2]-2*n-2*r,A=Math.min(Math.floor(S/c),m);switch(o.area.height=A*c+2*r,o.area.wholeHeight=A*c+2*r,e.legend.float){case"top":o.area.start.y=e.padding[0]+n,o.area.end.y=e.padding[0]+n+o.area.height;break;case"bottom":o.area.start.y=e.height-e.padding[2]-n-o.area.height,o.area.end.y=e.height-e.padding[2]-n;break;default:o.area.start.y=(e.height-o.area.height)/2,o.area.end.y=(e.height+o.area.height)/2}for(var T=m%A===0?m/A:Math.floor(m/A+1),P=[],D=0;DL&&(L=k)}o.widthArr.push(L),o.heightArr.push(M.length*c+2*r)}for(var C=0,R=0;R0?P[at].width+e.yAxis.padding:P[at].width,tt+=1):(e.area[1]+=Y>0?P[at].width+e.yAxis.padding:P[at].width,Y+=1)}else a.yAxisWidth=P;if(e.chartData.yAxisData=T,e.categories&&e.categories.length){e.chartData.xAxisData=B(e.categories,e);var ft=M(e.categories,e,a,e.chartData.xAxisData.eachSpacing),dt=ft.xAxisHeight,bt=ft.angle;a.xAxisHeight=dt,a._xAxisTextAngle_=bt,e.area[2]+=dt,e.chartData.categoriesData=ft}else if("line"===e.type||"area"===e.type||"points"===e.type){e.chartData.xAxisData=L(s,e,a),h=e.chartData.xAxisData.rangesFormat;var gt=M(h,e,a,e.chartData.xAxisData.eachSpacing),yt=gt.xAxisHeight,vt=gt.angle;a.xAxisHeight=yt,a._xAxisTextAngle_=vt,e.area[2]+=yt,e.chartData.categoriesData=gt}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var mt,St=e.chartData.xAxisData.xAxisPoints,At=e.chartData.xAxisData.startX,Tt=e.chartData.xAxisData.endX,Pt=e.chartData.xAxisData.eachSpacing,Dt=Pt*(St.length-1),wt=Tt-At;mt=wt-Dt,o.scrollOption={currentOffset:mt,startTouchX:mt,distance:0,lastMoveTime:0},e._scrollDistance_=mt}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(a._pieTextMaxLength_=!1===e.dataLabel?0:function(t){t=k(t);for(var e=0,a=0;a.7},x=0;x4&&void 0!==arguments[4]?arguments[4]:1;r({},{type:"normal",autoColors:!0},e.extra.word),i.beginPath(),i.setFillStyle(e.background||"#FFFFFF"),i.rect(0,0,e.width,e.height),i.fill(),i.save();var n=e.chartData.wordCloudData;i.translate(e.width/2,e.height/2);for(var l=0;l0&&(e.tooltip&&e.tooltip.index==l?i.strokeText(s,(n[l].areav[0]+5-e.width/2)*o-c*(1-o)/2,(n[l].areav[1]+5+h-e.height/2)*o):i.fillText(s,(n[l].areav[0]+5-e.width/2)*o-c*(1-o)/2,(n[l].areav[1]+5+h-e.height/2)*o)):n[l].area[0]>0&&(e.tooltip&&e.tooltip.index==l?i.strokeText(s,(n[l].area[0]+5-e.width/2)*o-c*(1-o)/2,(n[l].area[1]+5+h-e.height/2)*o):i.fillText(s,(n[l].area[0]+5-e.width/2)*o-c*(1-o)/2,(n[l].area[1]+5+h-e.height/2)*o)),i.stroke(),i.restore()}i.restore()}(s,e,a,i,t),pt(0,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"map":i.clearRect(0,0,e.width,e.height),function(t,e,a,i){var o,n,s=r({},{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},e.extra.map),h=t,c=function(t){for(var e,a={xMin:180,xMax:0,yMin:90,yMax:0},i=0;ih.x?a.xMax:h.x,a.yMin=a.yMinh.y?a.yMax:h.y}}return a}(h),f=e.width/Math.abs(c.xMax-c.xMin),d=e.height/Math.abs(c.yMax-c.yMin),x=f4&&void 0!==arguments[4]?arguments[4]:1,n=r({},{activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"},e.extra.funnel),s=(e.height-e.area[0]-e.area[2])/t.length,h={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},c=n.activeWidth,f=Math.min((e.width-e.area[1]-e.area[3])/2-c,(e.height-e.area[0]-e.area[2])/2-c);t=C(t,f,o),i.save(),i.translate(h.x,h.y);for(var d=0;d4&&void 0!==arguments[4]?arguments[4]:1,n=r({},{type:"straight",width:2},e.extra.line);n.width*=e.pixelRatio;var l=e.chartData.xAxisData,s=l.xAxisPoints,h=l.eachSpacing,f=[];i.save();var d=0,x=e.width+h;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),d=-e._scrollDistance_-h+e.area[3],x=d+(e.xAxis.itemCount+4)*h),t.forEach((function(t,r){var l,p,b;l=[].concat(e.chartData.yAxisData.ranges[t.index]),p=l.pop(),b=l.shift();var u=t.data,g=G(u,p,b,s,h,e,a,o);f.push(g);var y=_(g);if("dash"==t.lineType){var v=t.dashLength?t.dashLength:8;v*=e.pixelRatio,i.setLineDash([v,v])}i.beginPath(),i.setStrokeStyle(t.color),i.setLineWidth(n.width),y.forEach((function(t,e){if(1===t.length)i.moveTo(t[0].x,t[0].y),i.arc(t[0].x,t[0].y,1,0,2*Math.PI);else{i.moveTo(t[0].x,t[0].y);var a=0;if("curve"===n.type)for(var o=0;od&&(i.moveTo(r.x,r.y),a=1),o>0&&r.x>d&&r.xd&&(i.moveTo(h.x,h.y),a=1),s>0&&h.x>d&&h.x4&&void 0!==arguments[4]?arguments[4]:1,r=e.chartData.xAxisData,n=r.xAxisPoints,s=r.eachSpacing,h=e.height-e.area[2],f=[],d=0,x=0;t.forEach((function(t,e){"column"==t.type&&(x+=1)})),i.save();var p=-2,b=n.length+2,u=0,g=e.width+s;if(e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),p=Math.floor(-e._scrollDistance_/s)-2,b=p+e.xAxis.itemCount+4,u=-e._scrollDistance_-s+e.area[3],g=u+(e.xAxis.itemCount+4)*s),t.forEach((function(t,r){var y,v,m;y=[].concat(e.chartData.yAxisData.ranges[t.index]),v=y.pop(),m=y.shift();var S=t.data,A=G(S,v,m,n,s,e,a,o);if(f.push(A),"column"==t.type){A=O(A,s,x,d,a,e);for(var T=0;Tp&&T1){var F=L[0],k=L[L.length-1];i.moveTo(F.x,F.y);var C=0;if("curve"===t.style)for(var R=0;Ru&&(i.moveTo(I.x,I.y),C=1),R>0&&I.x>u&&I.xu&&(i.moveTo(E.x,E.y),C=1),W>0&&E.x>u&&E.xu&&(i.moveTo(s.x,s.y),n=1),l>0&&s.x>u&&s.xu&&(i.moveTo(d.x,d.y),n=1),f>0&&d.x>u&&d.x4&&void 0!==arguments[4]?arguments[4]:1,n=e.chartData.xAxisData,l=n.xAxisPoints,s=n.eachSpacing,h=r({},{type:"group",width:s/2,meter:{border:4,fillColor:"#FFFFFF"}},e.extra.column),c=[];i.save();var f=-2,d=l.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),f=Math.floor(-e._scrollDistance_/s)-2,d=f+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===o&&et(e.tooltip.offset.x,e,0,i,s),t.forEach((function(r,n){var x,p,b;x=[].concat(e.chartData.yAxisData.ranges[r.index]),p=x.pop(),b=x.shift();var u=r.data;switch(h.type){case"group":var g=G(u,p,b,l,s,e,a,o),y=X(u,p,b,l,s,e,a,n,t,o);c.push(y),g=O(g,s,t.length,n,a,e);for(var v=0;vf&&vf&&T0&&(A-=D),i.moveTo(S,P.y),i.fillRect(S,P.y,P.width-2,A),i.closePath(),i.fill()}}break;case"meter":g=G(u,p,b,l,s,e,a,o);if(c.push(g),g=E(g,s,t.length,n,a,e,h.meter.border),0==n)for(var w=0;wf&&w0&&(i.beginPath(),i.setStrokeStyle(r.color),i.setLineWidth(h.meter.border*e.pixelRatio),i.moveTo(S+.5*h.meter.border,_.y+A),i.lineTo(S+.5*h.meter.border,_.y+.5*h.meter.border),i.lineTo(S+_.width-.5*h.meter.border,_.y+.5*h.meter.border),i.lineTo(S+_.width-.5*h.meter.border,_.y+A),i.stroke())}}else for(var M=0;Mf&&M4&&void 0!==arguments[4]?arguments[4]:1,n=r({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},e.extra.area),s=e.chartData.xAxisData,h=s.xAxisPoints,f=s.eachSpacing,d=e.height-e.area[2],x=[];i.save();var p=0,b=e.width+f;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),p=-e._scrollDistance_-f+e.area[3],b=p+(e.xAxis.itemCount+4)*f),t.forEach((function(t,r){var s,u,g;s=[].concat(e.chartData.yAxisData.ranges[t.index]),u=s.pop(),g=s.shift();var y=t.data,v=G(y,u,g,h,f,e,a,o);x.push(v);for(var m=_(v),S=0;S1){var P=A[0],D=A[A.length-1];i.moveTo(P.x,P.y);var w=0;if("curve"===n.type)for(var M=0;Mp&&(i.moveTo(L.x,L.y),w=1),M>0&&L.x>p&&L.xp&&(i.moveTo(C.x,C.y),w=1),k>0&&C.x>p&&C.xp&&(i.moveTo(O.x,O.y),z=1),W>0&&O.x>p&&O.xp&&(i.moveTo(B.x,B.y),z=1),N>0&&B.x>p&&B.x4&&void 0!==arguments[4]?arguments[4]:1,n=r({},{activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,ringWidth:0,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.pie),s={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2};0==a.pieChartLinePadding&&(a.pieChartLinePadding=n.activeRadius);var h=Math.min((e.width-e.area[1]-e.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding);t=k(t,h,o);var c=n.activeRadius;if(t=t.map((function(t){return t._start_+=n.offsetAngle*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(i.beginPath(),i.setFillStyle(l(t.color,e.extra.pie.activeOpacity||.5)),i.moveTo(s.x,s.y),i.arc(s.x,s.y,t._radius_+c,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(n.borderWidth*e.pixelRatio),i.lineJoin="round",i.setStrokeStyle(n.borderColor),i.setFillStyle(t.color),i.moveTo(s.x,s.y),i.arc(s.x,s.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill(),1==n.border&&i.stroke()})),"ring"===e.type){var f=.6*h;"number"===typeof e.extra.pie.ringWidth&&e.extra.pie.ringWidth>0&&(f=Math.max(0,h-e.extra.pie.ringWidth)),i.beginPath(),i.setFillStyle(e.background||"#ffffff"),i.moveTo(s.x,s.y),i.arc(s.x,s.y,f,0,2*Math.PI),i.closePath(),i.fill()}if(!1!==e.dataLabel&&1===o){for(var d=!1,x=0,p=t.length;x0){d=!0;break}d&&Q(t,e,a,i,0,s)}return 1===o&&"ring"===e.type&&U(e,a,i,s),{center:s,radius:h,series:t}}(s,e,a,i,t),lt(e.series,e,a,i,e.chartData),it(e,a,i,t),pt(0,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"rose":this.animationInstance=new ut({timing:"easeInOut",duration:d,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&q(i,e),e.chartData.pieData=function(t,e,a,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=r({},{type:"area",activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.rose);0==a.pieChartLinePadding&&(a.pieChartLinePadding=n.activeRadius);var s={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},h=Math.min((e.width-e.area[1]-e.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding),c=n.minRadius||.5*h;t=R(t,n.type,c,h,o);var f=n.activeRadius;if(t=t.map((function(t){return t._start_+=(n.offsetAngle||0)*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(i.beginPath(),i.setFillStyle(l(t.color,n.activeOpacity||.5)),i.moveTo(s.x,s.y),i.arc(s.x,s.y,f+t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(n.borderWidth*e.pixelRatio),i.lineJoin="round",i.setStrokeStyle(n.borderColor),i.setFillStyle(t.color),i.moveTo(s.x,s.y),i.arc(s.x,s.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill(),1==n.border&&i.stroke()})),!1!==e.dataLabel&&1===o){for(var d=!1,x=0,p=t.length;x0){d=!0;break}d&&Q(t,e,a,i,0,s)}return{center:s,radius:h,series:t}}(s,e,a,i,t),lt(e.series,e,a,i,e.chartData),it(e,a,i,t),pt(0,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"radar":this.animationInstance=new ut({timing:"easeInOut",duration:d,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&q(i,e),e.chartData.radarData=function(t,e,a,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=r({},{gridColor:"#cccccc",labelColor:"#666666",opacity:.2,gridCount:3},e.extra.radar),s=S(e.categories.length),h={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},c=Math.min(h.x-(m(e.categories)+a.radarLabelTextMargin),h.y-a.radarLabelTextMargin);c-=e.padding[1],i.beginPath(),i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(n.gridColor),s.forEach((function(t){var e=f(c*Math.cos(t),c*Math.sin(t),h);i.moveTo(h.x,h.y),i.lineTo(e.x,e.y)})),i.stroke(),i.closePath();for(var d=function(t){var a={};i.beginPath(),i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(n.gridColor),s.forEach((function(e,o){var r=f(c/n.gridCount*t*Math.cos(e),c/n.gridCount*t*Math.sin(e),h);0===o?(a=r,i.moveTo(r.x,r.y)):i.lineTo(r.x,r.y)})),i.lineTo(a.x,a.y),i.stroke(),i.closePath()},x=1;x<=n.gridCount;x++)d(x);var p=F(s,h,c,t,e,o);return p.forEach((function(t,a){if(i.beginPath(),i.setFillStyle(l(t.color,n.opacity)),t.data.forEach((function(t,e){0===e?i.moveTo(t.position.x,t.position.y):i.lineTo(t.position.x,t.position.y)})),i.closePath(),i.fill(),!1!==e.dataPointShape){var o=t.data.map((function(t){return t.position}));Z(o,t.color,t.pointShape,i,e)}})),K(s,c,h,e,a,i),{center:h,radius:c,angleList:s}}(s,e,a,i,t),lt(e.series,e,a,i,e.chartData),it(e,a,i,t),pt(0,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new ut({timing:"easeInOut",duration:d,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&q(i,e),e.chartData.arcbarData=function(t,e,a,i){var o,n,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=r({},{startAngle:.75,endAngle:.25,type:"default",width:12*e.pixelRatio,gap:2*e.pixelRatio},e.extra.arcbar);t=I(t,s,l),o=s.center?s.center:{x:e.width/2,y:e.height/2},s.radius?n=s.radius:(n=Math.min(o.x,o.y),n-=5*e.pixelRatio,n-=s.width/2);for(var h=0;h5&&void 0!==arguments[5]?arguments[5]:1,s=r({},{type:"default",startAngle:.75,endAngle:.25,width:15,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},a.extra.gauge);void 0==s.oldAngle&&(s.oldAngle=s.startAngle),void 0==s.oldData&&(s.oldData=0),t=z(t,s.startAngle,s.endAngle);var h={x:a.width/2,y:a.height/2},c=Math.min(h.x,h.y);c-=5*a.pixelRatio,c-=s.width/2;var f=c-s.width,d=0;if("progress"==s.type){var x=c-3*s.width;o.beginPath();var p=o.createLinearGradient(h.x,h.y-x,h.x,h.y+x);p.addColorStop("0",l(e[0].color,.3)),p.addColorStop("1.0",l("#FFFFFF",.1)),o.setFillStyle(p),o.arc(h.x,h.y,x,0,2*Math.PI,!1),o.fill(),o.setLineWidth(s.width),o.setStrokeStyle(l(e[0].color,.3)),o.setLineCap("round"),o.beginPath(),o.arc(h.x,h.y,f,s.startAngle*Math.PI,s.endAngle*Math.PI,!1),o.stroke(),d=s.startAngle-s.endAngle+1;s.splitLine.splitNumber;var b=d/s.splitLine.splitNumber/s.splitLine.childNumber,u=-c-.5*s.width-s.splitLine.fixRadius,g=-c-s.width-s.splitLine.fixRadius+s.splitLine.width;o.save(),o.translate(h.x,h.y),o.rotate((s.startAngle-1)*Math.PI);for(var y=s.splitLine.splitNumber*s.splitLine.childNumber+1,v=e[0].data*n,m=0;mm/y?o.setStrokeStyle(l(e[0].color,1)):o.setStrokeStyle(l(e[0].color,.3)),o.setLineWidth(3*a.pixelRatio),o.moveTo(u,0),o.lineTo(g,0),o.stroke(),o.rotate(b*Math.PI);o.restore(),e=I(e,s,n),o.setLineWidth(s.width),o.setStrokeStyle(e[0].color),o.setLineCap("round"),o.beginPath(),o.arc(h.x,h.y,f,s.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),o.stroke();var S=c-2.5*s.width;o.save(),o.translate(h.x,h.y),o.rotate((e[0]._proportion_-1)*Math.PI),o.beginPath(),o.setLineWidth(s.width/3);var A=o.createLinearGradient(0,.6*-S,0,.6*S);A.addColorStop("0",l("#FFFFFF",0)),A.addColorStop("0.5",l(e[0].color,1)),A.addColorStop("1.0",l("#FFFFFF",0)),o.setStrokeStyle(A),o.arc(0,0,S,.85*Math.PI,1.15*Math.PI,!1),o.stroke(),o.beginPath(),o.setLineWidth(1),o.setStrokeStyle(e[0].color),o.setFillStyle(e[0].color),o.moveTo(-S-s.width/3/2,-4),o.lineTo(-S-s.width/3/2-4,0),o.lineTo(-S-s.width/3/2,4),o.lineTo(-S-s.width/3/2,-4),o.stroke(),o.fill(),o.restore()}else{o.setLineWidth(s.width),o.setLineCap("butt");for(var T=0;T5&&void 0!==arguments[5]?arguments[5]:1,l=r({},{color:{},average:{}},a.extra.candle);l.color=r({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},l.color),l.average=r({},{show:!1,name:[],day:[],color:i.colors},l.average),a.extra.candle=l;var s=a.chartData.xAxisData,h=s.xAxisPoints,f=s.eachSpacing,d=[];o.save();var x=-2,p=h.length+2,b=0,u=a.width+f;return a._scrollDistance_&&0!==a._scrollDistance_&&!0===a.enableScroll&&(o.translate(a._scrollDistance_,0),x=Math.floor(-a._scrollDistance_/f)-2,p=x+a.xAxis.itemCount+4,b=-a._scrollDistance_-f+a.area[3],u=b+(a.xAxis.itemCount+4)*f),l.average.show&&e.forEach((function(t,e){var r,l,s;r=[].concat(a.chartData.yAxisData.ranges[t.index]),l=r.pop(),s=r.shift();for(var d=t.data,x=G(d,l,s,h,f,a,i,n),p=_(x),g=0;gb&&(o.moveTo(S.x,S.y),v=1),m>0&&S.x>b&&S.xx&&y0?(o.setStrokeStyle(l.color.upLine),o.setFillStyle(l.color.upFill),o.setLineWidth(1*a.pixelRatio),o.moveTo(v[3].x,v[3].y),o.lineTo(v[1].x,v[1].y),o.lineTo(v[1].x-f/4,v[1].y),o.lineTo(v[0].x-f/4,v[0].y),o.lineTo(v[0].x,v[0].y),o.lineTo(v[2].x,v[2].y),o.lineTo(v[0].x,v[0].y),o.lineTo(v[0].x+f/4,v[0].y),o.lineTo(v[1].x+f/4,v[1].y),o.lineTo(v[1].x,v[1].y),o.moveTo(v[3].x,v[3].y)):(o.setStrokeStyle(l.color.downLine),o.setFillStyle(l.color.downFill),o.setLineWidth(1*a.pixelRatio),o.moveTo(v[3].x,v[3].y),o.lineTo(v[0].x,v[0].y),o.lineTo(v[0].x-f/4,v[0].y),o.lineTo(v[1].x-f/4,v[1].y),o.lineTo(v[1].x,v[1].y),o.lineTo(v[2].x,v[2].y),o.lineTo(v[1].x,v[1].y),o.lineTo(v[1].x+f/4,v[1].y),o.lineTo(v[0].x+f/4,v[0].y),o.lineTo(v[0].x,v[0].y),o.moveTo(v[3].x,v[3].y)),o.closePath(),o.fill(),o.stroke()}})),o.restore(),{xAxisPoints:h,calPoints:d,eachSpacing:f}}(s,p,e,a,i,t),n=o.xAxisPoints,l=o.calPoints,f=o.eachSpacing;e.chartData.xAxisPoints=n,e.chartData.calPoints=l,e.chartData.eachSpacing=f,nt(0,e,a,i),!1!==e.enableMarkLine&&1===t&&V(e,a,i),lt(p?0:e.series,e,a,i,e.chartData),it(e,a,i,t),pt(0,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break}}function yt(){this.events={}}ut.prototype.stop=function(){this.isStop=!0},yt.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},yt.prototype.trigger=function(){for(var t=arguments.length,e=Array(t),a=0;a0&&void 0!==arguments[0]?arguments[0]:{};this.opts=r({},this.opts,t),this.opts.updateData=!0;var e=t.scrollPosition||"current";switch(e){case"current":this.opts._scrollDistance_=this.scrollOption.currentOffset;break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var a=j(this.opts.series,this.opts,this.config),i=a.yAxisWidth;this.config.yAxisWidth=i;var o=0,n=B(this.opts.categories,this.opts,this.config),l=n.xAxisPoints,s=n.startX,h=n.endX,c=n.eachSpacing,f=c*(l.length-1),d=h-s;o=d-f,this.scrollOption={currentOffset:o,startTouchX:o,distance:0,lastMoveTime:0},this.opts._scrollDistance_=o;break}gt.call(this,this.opts.type,this.opts,this.config,this.context)},vt.prototype.zoom=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var e=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=t.itemCount;var a=j(this.opts.series,this.opts,this.config),i=a.yAxisWidth;this.config.yAxisWidth=i;var o=0,r=B(this.opts.categories,this.opts,this.config),n=r.xAxisPoints,l=r.startX,s=r.endX,h=r.eachSpacing,c=h*e,f=s-l,d=f-h*(n.length-1);o=f/2-c,o>0&&(o=0),o2*Math.PI&&(t-=2*Math.PI),t},n=Math.atan2(e.center.y-t.y,t.x-e.center.x);n*=-1,n<0&&(n+=2*Math.PI);var l=e.angleList.map((function(t){return t=r(-1*t),t}));l.forEach((function(t,e){var a=r(t-i/2),l=r(t+i/2);l=a&&n<=l||n+2*Math.PI>=a&&n+2*Math.PI<=l)&&(o=e)}))}return o}({x:a.x,y:a.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?function(t,e){for(var a=-1,i=0,o=e.series.length;ir.funnelArea[0]&&t.xr.funnelArea[1]&&t.yr.area[0]&&t.xr.area[1]&&t.y4&&void 0!==arguments[4]?arguments[4]:0,r=-1,n=a.chartData.eachSpacing/2,l=[];if(e.length>0){if("candle"==a.type)for(var s=0;se&&(r=a)}))}return r}({x:a.x,y:a.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset))}return-1},vt.prototype.getLegendDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var a=y(e,this.opts,t);return function(t,e,a){var i=-1;if(function(t,e){return t.x>e.start.x&&t.xe.start.y&&t.yc[0]&&t.xc[1]&&t.y1&&void 0!==arguments[1]?arguments[1]:{},a=null;if(a=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],a){y(a,this.opts,t);var i=this.getLegendDataIndex(t);i>=0&&(this.opts.series[i].show=!this.opts.series[i].show,this.opts.animation=!!e.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,gt.call(this,this.opts.type,this.opts,this.config,this.context))}},vt.prototype.showToolTip=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null;a=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var i=y(a,this.opts,t),o=this.scrollOption.currentOffset,n=r({},this.opts,{_scrollDistance_:o,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type){var l=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(l>-1){var s=v(this.opts.series,l);if(0!==s.length){var h=A(s,this.opts.chartData.calPoints,l,this.opts.categories,e),c=h.textList,f=h.offset;f.y=i.y,n.tooltip={textList:e.textList?e.textList:c,offset:f,option:e,index:l}}}gt.call(this,n.type,n,this.config,this.context)}if("mix"===this.opts.type){l=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(l>-1){o=this.scrollOption.currentOffset,n=r({},this.opts,{_scrollDistance_:o,animation:!1}),s=v(this.opts.series,l);if(0!==s.length){var d=T(s,this.opts.chartData.calPoints,l,this.opts.categories,e);c=d.textList,f=d.offset;f.y=i.y,n.tooltip={textList:e.textList?e.textList:c,offset:f,option:e,index:l}}}gt.call(this,n.type,n,this.config,this.context)}if("candle"===this.opts.type){l=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(l>-1){o=this.scrollOption.currentOffset,n=r({},this.opts,{_scrollDistance_:o,animation:!1}),s=v(this.opts.series,l);if(0!==s.length){h=P(this.opts.series[0].data,s,this.opts.chartData.calPoints,l,this.opts.categories,this.opts.extra.candle,e),c=h.textList,f=h.offset;f.y=i.y,n.tooltip={textList:e.textList?e.textList:c,offset:f,option:e,index:l}}}gt.call(this,n.type,n,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){l=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(l>-1){o=this.scrollOption.currentOffset,n=r({},this.opts,{_scrollDistance_:o,animation:!1}),s=this.opts._series_[l],c=[{text:e.format?e.format(s):s.name+": "+s.data,color:s.color}],f={x:i.x,y:i.y};n.tooltip={textList:e.textList?e.textList:c,offset:f,option:e,index:l}}gt.call(this,n.type,n,this.config,this.context)}if("map"===this.opts.type||"word"===this.opts.type){l=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(l>-1){o=this.scrollOption.currentOffset,n=r({},this.opts,{_scrollDistance_:o,animation:!1}),s=this.opts._series_[l],c=[{text:e.format?e.format(s):s.properties.name,color:s.color}],f={x:i.x,y:i.y};n.tooltip={textList:e.textList?e.textList:c,offset:f,option:e,index:l}}n.updateData=!1,gt.call(this,n.type,n,this.config,this.context)}if("radar"===this.opts.type){l=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(l>-1){o=this.scrollOption.currentOffset,n=r({},this.opts,{_scrollDistance_:o,animation:!1}),s=v(this.opts.series,l);if(0!==s.length){c=s.map((function(t){return{text:e.format?e.format(t):t.name+": "+t.data,color:t.color}})),f={x:i.x,y:i.y};n.tooltip={textList:e.textList?e.textList:c,offset:f,option:e,index:l}}}gt.call(this,n.type,n,this.config,this.context)}},vt.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=r({},this.opts,{_scrollDistance_:t,animation:!1});gt.call(this,this.opts.type,e,this.config,this.context)},vt.prototype.scrollStart=function(t){var e=null;e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var a=y(e,this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=a.x)},vt.prototype.scroll=function(t){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var e=this.opts.extra.touchMoveLimit||20,a=Date.now(),i=a-this.scrollOption.lastMoveTime;if(!(i=0?(l=0,t.event.trigger("scrollLeft")):Math.abs(e)>=n-r&&(l=r-n,t.event.trigger("scrollRight")),l}(this,s+n,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=n=h-s;var c=r({},this.opts,{_scrollDistance_:s+n,animation:!1});return gt.call(this,c.type,c,this.config,this.context),s+n}}},vt.prototype.scrollEnd=function(t){if(!0===this.opts.enableScroll){var e=this.scrollOption,a=e.currentOffset,i=e.distance;this.scrollOption.currentOffset=a+i,this.scrollOption.distance=0}},"object"===i(e)&&"object"===i(e.exports)&&(e.exports=vt)}).call(this,a("543d")["default"],a("62e4")(t))},"7c87":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={lunarInfo:[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,23232,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,41696,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,41680,53584,62034,54560],solarMonth:[31,28,31,30,31,30,31,31,30,31,30,31],Gan:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],Zhi:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],Animals:["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],solarTerm:["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"],sTermInfo:["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],nStr1:["日","一","二","三","四","五","六","七","八","九","十"],nStr2:["初","十","廿","卅"],nStr3:["正","二","三","四","五","六","七","八","九","十","冬","腊"],lYearDays:function(t){var e,a=348;for(e=32768;e>8;e>>=1)a+=this.lunarInfo[t-1900]&e?1:0;return a+this.leapDays(t)},leapMonth:function(t){return 15&this.lunarInfo[t-1900]},leapDays:function(t){return this.leapMonth(t)?65536&this.lunarInfo[t-1900]?30:29:0},monthDays:function(t,e){return e>12||e<1?-1:this.lunarInfo[t-1900]&65536>>e?30:29},solarDays:function(t,e){if(e>12||e<1)return-1;var a=e-1;return 1==a?t%4==0&&t%100!=0||t%400==0?29:28:this.solarMonth[a]},toGanZhiYear:function(t){var e=(t-3)%10,a=(t-3)%12;return 0==e&&(e=10),0==a&&(a=12),this.Gan[e-1]+this.Zhi[a-1]},toAstro:function(t,e){return"魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯".substr(2*t-(e<[20,19,21,21,21,22,23,23,23,23,22,22][t-1]?2:0),2)+"座"},toGanZhi:function(t){return this.Gan[t%10]+this.Zhi[t%12]},getTerm:function(t,e){if(t<1900||t>2100)return-1;if(e<1||e>24)return-1;var a=this.sTermInfo[t-1900],i=[parseInt("0x"+a.substr(0,5)).toString(),parseInt("0x"+a.substr(5,5)).toString(),parseInt("0x"+a.substr(10,5)).toString(),parseInt("0x"+a.substr(15,5)).toString(),parseInt("0x"+a.substr(20,5)).toString(),parseInt("0x"+a.substr(25,5)).toString()],o=[i[0].substr(0,1),i[0].substr(1,2),i[0].substr(3,1),i[0].substr(4,2),i[1].substr(0,1),i[1].substr(1,2),i[1].substr(3,1),i[1].substr(4,2),i[2].substr(0,1),i[2].substr(1,2),i[2].substr(3,1),i[2].substr(4,2),i[3].substr(0,1),i[3].substr(1,2),i[3].substr(3,1),i[3].substr(4,2),i[4].substr(0,1),i[4].substr(1,2),i[4].substr(3,1),i[4].substr(4,2),i[5].substr(0,1),i[5].substr(1,2),i[5].substr(3,1),i[5].substr(4,2)];return parseInt(o[e-1])},toChinaMonth:function(t){if(t>12||t<1)return-1;var e=this.nStr3[t-1];return e+="月",e},toChinaDay:function(t){var e;switch(t){case 10:e="初十";break;case 20:e="二十";break;case 30:e="三十";break;default:e=this.nStr2[Math.floor(t/10)],e+=this.nStr1[t%10]}return e},getAnimal:function(t){return this.Animals[(t-4)%12]},solar2lunar:function(t,e,a){if(t<1900||t>2100)return-1;if(1900==t&&1==e&&a<31)return-1;if(t)i=new Date(t,parseInt(e)-1,a);else var i=new Date;var o,r=0,n=(t=i.getFullYear(),e=i.getMonth()+1,a=i.getDate(),(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate())-Date.UTC(1900,0,31))/864e5);for(o=1900;o<2101&&n>0;o++)r=this.lYearDays(o),n-=r;n<0&&(n+=r,o--);var l=new Date,s=!1;l.getFullYear()==t&&l.getMonth()+1==e&&l.getDate()==a&&(s=!0);var h=i.getDay(),c=this.nStr1[h];0==h&&(h=7);var f=o,d=this.leapMonth(o),x=!1;for(o=1;o<13&&n>0;o++)d>0&&o==d+1&&0==x?(--o,x=!0,r=this.leapDays(f)):r=this.monthDays(f,o),1==x&&o==d+1&&(x=!1),n-=r;0==n&&d>0&&o==d+1&&(x?x=!1:(x=!0,--o)),n<0&&(n+=r,--o);var p=o,b=n+1,u=e-1,g=this.toGanZhiYear(f),y=this.getTerm(t,2*e-1),v=this.getTerm(t,2*e),m=this.toGanZhi(12*(t-1900)+e+11);a>=y&&(m=this.toGanZhi(12*(t-1900)+e+12));var S=!1,A=null;y==a&&(S=!0,A=this.solarTerm[2*e-2]),v==a&&(S=!0,A=this.solarTerm[2*e-1]);var T=Date.UTC(t,u,1,0,0,0,0)/864e5+25567+10,P=this.toGanZhi(T+a-1),D=this.toAstro(e,a);return{lYear:f,lMonth:p,lDay:b,Animal:this.getAnimal(f),IMonthCn:(x?"闰":"")+this.toChinaMonth(p),IDayCn:this.toChinaDay(b),cYear:t,cMonth:e,cDay:a,gzYear:g,gzMonth:m,gzDay:P,isToday:s,isLeap:x,nWeek:h,ncWeek:"星期"+c,isTerm:S,Term:A,astro:D}},lunar2solar:function(t,e,a,i){i=!!i;var o=this.leapMonth(t);this.leapDays(t);if(i&&o!=e)return-1;if(2100==t&&12==e&&a>1||1900==t&&1==e&&a<31)return-1;var r=this.monthDays(t,e),n=r;if(i&&(n=this.leapDays(t,e)),t<1900||t>2100||a>n)return-1;for(var l=0,s=1900;s0&&(l+=this.leapDays(t),c=!0),l+=this.monthDays(t,s);i&&(l+=r);var f=Date.UTC(1900,1,30,0,0,0),d=new Date(864e5*(l+a-31)+f),x=d.getUTCFullYear(),p=d.getUTCMonth()+1,b=d.getUTCDate();return this.solar2lunar(x,p,b)}},o=i;e.default=o},dc86:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(a("7037")),r=i(a("970b")),n=i(a("5bc3")),l=i(a("7c87")),s=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.date,i=e.selected,o=e.startDate,n=e.endDate,l=e.range;(0,r.default)(this,t),this.date=this.getDate(a),this.selected=i||[],this.startDate=o,this.endDate=n,this.range=l,this.multipleStatus={before:"",after:"",data:[]},this.weeks={},this._getWeek(this.date.fullDate)}return(0,n.default)(t,[{key:"getDate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"day";t||(t=new Date),"object"!==(0,o.default)(t)&&(t=t.replace(/-/g,"/"));var i=new Date(t);switch(a){case"day":i.setDate(i.getDate()+e);break;case"month":31===i.getDate()?i.setDate(i.getDate()+e):i.setMonth(i.getMonth()+e);break;case"year":i.setFullYear(i.getFullYear()+e);break}var r=i.getFullYear(),n=i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1,l=i.getDate()<10?"0"+i.getDate():i.getDate();return{fullDate:r+"-"+n+"-"+l,year:r,month:n,date:l,day:i.getDay()}}},{key:"_getLastMonthDays",value:function(t,e){for(var a=[],i=t;i>0;i--){var o=new Date(e.year,e.month-1,1-i).getDate();a.push({date:o,month:e.month-1,lunar:this.getlunar(e.year,e.month-1,o),disable:!0})}return a}},{key:"_currentMonthDys",value:function(t,e){for(var a=this,i=[],o=this.date.fullDate,r=function(t){var r=e.year+"-"+(e.month,e.month+"-")+(t<10?"0"+t:t),n=o===r,l=a.selected&&a.selected.find((function(t){if(a.dateEqual(r,t.date))return t})),s=!0,h=!0;if(a.startDate){var c=a.dateCompare(a.startDate,o);s=a.dateCompare(c?a.startDate:o,r)}if(a.endDate){var f=a.dateCompare(o,a.endDate);h=a.dateCompare(r,f?a.endDate:o)}var d=a.multipleStatus.data,x=!1,p=-1;a.range&&(d&&(p=d.findIndex((function(t){return a.dateEqual(t,r)}))),-1!==p&&(x=!0));var b={fullDate:r,year:e.year,date:t,multiple:!!a.range&&x,month:e.month,lunar:a.getlunar(e.year,e.month,t),disable:!s||!h,isDay:n};l&&(b.extraInfo=l),i.push(b)},n=1;n<=t;n++)r(n);return i}},{key:"_getNextMonthDays",value:function(t,e){for(var a=[],i=1;i