pages-admin-statistics-index.87b166c4.js 137 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-admin-statistics-index"],{"136c":function(t,e,a){"use strict";var i=a("4ea4");a("4de4"),a("4160"),a("b680"),a("d3b7"),a("3ca3"),a("159b"),a("ddb0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("578a")),r=i(a("94d4")),o=a("c38c"),s=null,l=(new Date).getFullYear(),c=(new Date).getMonth()+1,d=(new Date).getDate(),h={name:"Statistics",components:{uniCalendar:r.default},props:{},data:function(){return{isShowBox:!0,value:[[l,c,d-1],[l,c,d]],isrange:!0,weekSwitch:!1,ismulti:!1,monFirst:!0,clean:!1,lunar:!1,renderValues:[],monthRange:[],current:!1,where:{start:"",stop:"",type:""},types:"",time:"",title:"",growth_rate:"",increase_time:"",increase_time_status:"",time_price:"",order_num:"",loaded:!1,loading:!1,filter:{page:1,limit:10,start:"",stop:""},list:[],cWidth:"",cHeight:"",pixelRatio:1,textarea:"",LineA:{categories:["2012","2013","2014","2015","2016","2017"],series:[{data:[35,8,25,37,4,20]}]},info:{startDate:"",endDate:"",lunar:!1,range:!0,insert:!1,selected:[],showMonth:!1}}},watch:{"$route.params":function(t){var e=this;void 0!=t&&(e.setType(t.type),e.setTime(t.time),e.getIndex())}},onLoad:function(t){this.setType(t.type),this.setTime(t.time),this.cWidth=uni.upx2px(690),this.cHeight=uni.upx2px(500),this.getInfo()},computed:{monthRangeText:function(){return this.monthRange.length?"固定":"指定范围"}},methods:{getIndex:function(){var t=[],e=[],a=this;1==a.where.type?(0,o.turnoverStatistics)(a.where).then((function(i){var n=i.data.chart,r=[],o=[];n.forEach((function(t){r.push(t.time),o.push(t.num)})),a.growth_rate=i.data.growth_rate,a.increase_time=i.data.increase_time,a.increase_time_status=i.data.increase_time_status,a.time_price=i.data.time,i.data.chart.forEach((function(a,i){t.push(a.time),e.push(a.num)})),a.LineA.categories=t,a.LineA.series[0].data=e,a.showLineA("canvasLineA",a.LineA)}),(function(t){a.$dialog.error(t.msg)})):(0,o.orderNumberStatistics)(a.where).then((function(i){var n=i.data.chart,r=[],o=[];n.forEach((function(t){r.push(t.time),o.push(t.num)})),a.growth_rate=i.data.growth_rate,a.increase_time=i.data.increase_time,a.increase_time_status=i.data.increase_time_status,a.time_price=i.data.time,i.data.chart.forEach((function(a,i){t.push(a.time),e.push(a.num)})),a.LineA.categories=t,a.LineA.series[0].data=e,a.showLineA("canvasLineA",a.LineA)}),(function(t){a.$dialog.error(t.msg)}))},setTime:function(t){this.time=t;var e=(new Date).getFullYear(),a=(new Date).getMonth()+1,i=(new Date).getDate();switch(this.list=[],this.filter.page=1,this.loaded=!1,this.loading=!1,t){case"today":this.where.start=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3,this.where.stop=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3+86400-1,this.title="今日",this.getIndex(),this.getInfo();break;case"yesterday":this.where.start=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3-86400,this.where.stop=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3-1,this.title="昨日",this.getIndex(),this.getInfo();break;case"month":this.where.start=new Date(e,(new Date).getMonth(),1).getTime()/1e3,this.where.stop=new Date(e,a,1).getTime()/1e3-1,this.title="本月",this.where.month=1,this.getIndex(),this.getInfo();break;case"seven":this.where.start=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3+86400-604800,this.where.stop=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3+86400-1,this.title="七日",this.getIndex(),this.getInfo();break}},setType:function(t){switch(t){case"price":this.where.type=1;break;case"order":this.where.type=2;break}},dateTitle:function(){this.isShowBox=!1,this.$refs.calendar.open(),this.time="date",this.title="自定义"},close:function(){this.current=!1,this.isShowBox=!0},getInfo:function(){var t=this;t.loading||t.loaded||(t.loading=!0,t.filter.start=t.where.start,t.filter.stop=t.where.stop,(0,o.orderPrice)(t.filter).then((function(e){t.loading=!1,t.loaded=e.data.length<t.filter.limit,t.list.push.apply(t.list,e.data),t.filter.page=t.filter.page+1}),(function(e){t.$dialog.message(e.msg)})))},showLineA:function(t,e){var a=this;s=new n.default({$this:a,canvasId:t,type:"line",fontSize:11,padding:[15,15,0,15],legend:{show:!1,padding:5,lineHeight:11,margin:5},dataLabel:!0,dataPointShape:!0,dataPointShapeType:"hollow",background:"#FFFFFF",pixelRatio:a.pixelRatio,categories:e.categories,series:e.series,animation:!0,enableScroll:!0,xAxis:{disableGrid:!1,type:"grid",gridType:"dash",itemCount:4,scrollShow:!0,scrollAlign:"left"},yAxis:{gridType:"dash",splitNumber:8,min:0,max:30,format:function(t){return t.toFixed(0)}},width:a.cWidth*a.pixelRatio,height:a.cHeight*a.pixelRatio,extra:{line:{type:"straight"}}})},touchLineA:function(t){s.scrollStart(t)},moveLineA:function(t){s.scroll(t)},touchEndLineA:function(t){s.scrollEnd(t)},confirm:function(t){var e=this;if(t.range.after&&t.range.before){var a=new Date(t.range.after).getTime()/1e3,i=new Date(t.range.before).getTime()/1e3;e.where.start=a,e.where.stop=i,e.list=[],e.filter.page=1,e.loaded=!1,e.loading=!1,e.isShowBox=!0,Promise.all([e.getIndex(),e.getInfo()])}}},onReachBottom:function(){this.getInfo()}};e.default=h},"1f16":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"uni-calendar-item__weeks-box",class:{"uni-calendar-item--disable":t.weeks.disable,"uni-calendar-item--isDay":t.calendar.fullDate===t.weeks.fullDate&&t.weeks.isDay,"uni-calendar-item--checked":t.calendar.fullDate===t.weeks.fullDate&&!t.weeks.isDay,"uni-calendar-item--multiple":t.weeks.multiple},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.choiceDate(t.weeks)}}},[a("v-uni-view",{staticClass:"uni-calendar-item__weeks-box-item"},[t.selected&&t.weeks.extraInfo?a("v-uni-text",{staticClass:"uni-calendar-item__weeks-box-circle"}):t._e(),a("v-uni-text",{staticClass:"uni-calendar-item__weeks-box-text",class:{"uni-calendar-item--isDay-text":t.weeks.isDay,"uni-calendar-item--isDay":t.calendar.fullDate===t.weeks.fullDate&&t.weeks.isDay,"uni-calendar-item--checked":t.calendar.fullDate===t.weeks.fullDate&&!t.weeks.isDay,"uni-calendar-item--multiple":t.weeks.multiple,"uni-calendar-item--disable":t.weeks.disable}},[t._v(t._s(t.weeks.date))]),t.lunar||t.weeks.extraInfo||!t.weeks.isDay?t._e():a("v-uni-text",{staticClass:"uni-calendar-item__weeks-lunar-text",class:{"uni-calendar-item--isDay-text":t.weeks.isDay,"uni-calendar-item--isDay":t.calendar.fullDate===t.weeks.fullDate&&t.weeks.isDay,"uni-calendar-item--checked":t.calendar.fullDate===t.weeks.fullDate&&!t.weeks.isDay,"uni-calendar-item--multiple":t.weeks.multiple}},[t._v("今天")]),t.lunar&&!t.weeks.extraInfo?a("v-uni-text",{staticClass:"uni-calendar-item__weeks-lunar-text",class:{"uni-calendar-item--isDay-text":t.weeks.isDay,"uni-calendar-item--isDay":t.calendar.fullDate===t.weeks.fullDate&&t.weeks.isDay,"uni-calendar-item--checked":t.calendar.fullDate===t.weeks.fullDate&&!t.weeks.isDay,"uni-calendar-item--multiple":t.weeks.multiple,"uni-calendar-item--disable":t.weeks.disable}},[t._v(t._s(t.weeks.isDay?"今天":"初一"===t.weeks.lunar.IDayCn?t.weeks.lunar.IMonthCn:t.weeks.lunar.IDayCn))]):t._e(),t.weeks.extraInfo&&t.weeks.extraInfo.info?a("v-uni-text",{staticClass:"uni-calendar-item__weeks-lunar-text",class:{"uni-calendar-item--extra":t.weeks.extraInfo.info,"uni-calendar-item--isDay-text":t.weeks.isDay,"uni-calendar-item--isDay":t.calendar.fullDate===t.weeks.fullDate&&t.weeks.isDay,"uni-calendar-item--checked":t.calendar.fullDate===t.weeks.fullDate&&!t.weeks.isDay,"uni-calendar-item--multiple":t.weeks.multiple,"uni-calendar-item--disable":t.weeks.disable}},[t._v(t._s(t.weeks.extraInfo.info))]):t._e()],1)],1)},r=[]},"251b":function(t,e,a){"use strict";var i=a("feb3"),n=a.n(i);n.a},"2b41":function(t,e,a){"use strict";var i=a("feb8"),n=a.n(i);n.a},"326d":function(t,e,a){"use strict";a.r(e);var i=a("1f16"),n=a("76ac");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("6a37");var o,s=a("f0c5"),l=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"cdf8d7d6",null,!1,i["a"],o);e["default"]=l.exports},"352a":function(t,e,a){"use strict";var i=a("4ea4");a("99af"),a("7db0"),a("c740"),a("a9e3"),a("e25e"),a("ac1f"),a("5319"),a("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("d4ec")),r=i(a("bee2")),o=i(a("fb64")),s=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.date,i=e.selected,r=e.startDate,o=e.endDate,s=e.range;(0,n.default)(this,t),this.date=this.getDate(a),this.selected=i||[],this.startDate=r,this.endDate=o,this.range=s,this.multipleStatus={before:"",after:"",data:[]},this.weeks={},this._getWeek(this.date.fullDate)}return(0,r.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"!==typeof 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 n=i.getFullYear(),r=i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1,o=i.getDate()<10?"0"+i.getDate():i.getDate();return{fullDate:n+"-"+r+"-"+o,year:n,month:r,date:o,day:i.getDay()}}},{key:"_getLastMonthDays",value:function(t,e){for(var a=[],i=t;i>0;i--){var n=new Date(e.year,e.month-1,1-i).getDate();a.push({date:n,month:e.month-1,lunar:this.getlunar(e.year,e.month-1,n),disable:!0})}return a}},{key:"_currentMonthDys",value:function(t,e){for(var a=this,i=[],n=this.date.fullDate,r=function(t){var r=e.year+"-"+(e.month,e.month+"-")+(t<10?"0"+t:t),o=n===r,s=a.selected&&a.selected.find((function(t){if(a.dateEqual(r,t.date))return t})),l=!0,c=!0;if(a.startDate){var d=a.dateCompare(a.startDate,n);l=a.dateCompare(d?a.startDate:n,r)}if(a.endDate){var h=a.dateCompare(n,a.endDate);c=a.dateCompare(r,h?a.endDate:n)}var f=a.multipleStatus.data,u=!1,p=-1;a.range&&(f&&(p=f.findIndex((function(t){return a.dateEqual(t,r)}))),-1!==p&&(u=!0));var x={fullDate:r,year:e.year,date:t,multiple:!!a.range&&u,month:e.month,lunar:a.getlunar(e.year,e.month,t),disable:!l||!c,isDay:o};s&&(x.extraInfo=s),i.push(x)},o=1;o<=t;o++)r(o);return i}},{key:"_getNextMonthDays",value:function(t,e){for(var a=[],i=1;i<t+1;i++)a.push({date:i,month:Number(e.month)+1,lunar:this.getlunar(e.year,Number(e.month)+1,i),disable:!0});return a}},{key:"setDate",value:function(t){this._getWeek(t)}},{key:"getInfo",value:function(t){var e=this;t||(t=new Date);var a=this.canlender.find((function(a){return a.fullDate===e.getDate(t).fullDate}));return a}},{key:"dateCompare",value:function(t,e){return t=new Date(t.replace("-","/").replace("-","/")),e=new Date(e.replace("-","/").replace("-","/")),t<=e}},{key:"dateEqual",value:function(t,e){return t=new Date(t.replace("-","/").replace("-","/")),e=new Date(e.replace("-","/").replace("-","/")),t.getTime()-e.getTime()===0}},{key:"geDateAll",value:function(t,e){var a=[],i=t.split("-"),n=e.split("-"),r=new Date;r.setFullYear(i[0],i[1]-1,i[2]);var o=new Date;o.setFullYear(n[0],n[1]-1,n[2]);for(var s=r.getTime()-864e5,l=o.getTime()-864e5,c=s;c<=l;)c+=864e5,a.push(this.getDate(new Date(parseInt(c))).fullDate);return a}},{key:"getlunar",value:function(t,e,a){return o.default.solar2lunar(t,e,a)}},{key:"setSelectInfo",value:function(t,e){this.selected=e,this._getWeek(t)}},{key:"setMultiple",value:function(t){var e=this.multipleStatus,a=e.before,i=e.after;this.range&&(a&&i?(this.multipleStatus.before="",this.multipleStatus.after="",this.multipleStatus.data=[],this._getWeek(t)):a?(this.multipleStatus.after=t,this.dateCompare(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before),this._getWeek(t)):this.multipleStatus.before=t)}},{key:"_getWeek",value:function(t){var e=this.getDate(t),a=(e.fullDate,e.year),i=e.month,n=(e.date,e.day,new Date(a,i-1,1).getDay()),r=new Date(a,i,0).getDate(),o={lastMonthDays:this._getLastMonthDays(n,this.getDate(t)),currentMonthDys:this._currentMonthDys(r,this.getDate(t)),nextMonthDays:[],weeks:[]},s=[],l=42-(o.lastMonthDays.length+o.currentMonthDys.length);o.nextMonthDays=this._getNextMonthDays(l,this.getDate(t)),s=s.concat(o.lastMonthDays,o.currentMonthDys,o.nextMonthDays);for(var c={},d=0;d<s.length;d++)d%7===0&&(c[parseInt(d/7)]=new Array(7)),c[parseInt(d/7)][d%7]=s[d];this.canlender=s,this.weeks=c}}]),t}(),l=s;e.default=l},4458:function(t,e,a){"use strict";var i=a("4ea4");a("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("352a")),r=i(a("326d")),o={components:{uniCalendarItem:r.default},props:{date:{type:String,default:""},selected:{type:Array,default:function(){return[]}},lunar:{type:Boolean,default:!1},startDate:{type:String,default:""},endDate:{type:String,default:""},range:{type:Boolean,default:!1},insert:{type:Boolean,default:!0},showMonth:{type:Boolean,default:!0}},data:function(){return{show:!1,weeks:[],calendar:{},nowDate:"",aniMaskShow:!1}},watch:{selected:function(t){this.cale.setSelectInfo(this.nowDate.fullDate,t),this.weeks=this.cale.weeks}},created:function(){this.cale=new n.default({date:this.date,selected:this.selected,startDate:this.startDate,endDate:this.endDate,range:this.range}),this.init(this.cale.date.fullDate)},methods:{clean:function(){},init:function(t){this.weeks=this.cale.weeks,this.nowDate=this.calendar=this.cale.getInfo(t)},open:function(){var t=this;this.show=!0,this.$nextTick((function(){setTimeout((function(){t.aniMaskShow=!0}),50)}))},close:function(){var t=this;this.aniMaskShow=!1,this.$nextTick((function(){setTimeout((function(){t.show=!1,t.$emit("close")}),300)}))},confirm:function(){this.setEmit("confirm"),this.close()},change:function(){this.insert&&this.setEmit("change")},monthSwitch:function(){var t=this.nowDate,e=t.year,a=t.month;this.$emit("monthSwitch",{year:e,month:Number(a)})},setEmit:function(t){var e=this.calendar,a=e.year,i=e.month,n=e.date,r=e.fullDate,o=e.lunar,s=e.extraInfo;this.$emit(t,{range:this.cale.multipleStatus,year:a,month:i,date:n,fulldate:r,lunar:o,extraInfo:s||{}})},choiceDate:function(t){t.disable||(this.calendar=t,this.cale.setMultiple(this.calendar.fullDate),this.weeks=this.cale.weeks,this.change())},backtoday:function(){this.cale.setMultiple(""),this.cale.setDate(this.date),this.weeks=this.cale.weeks,this.nowDate=this.calendar=this.cale.getInfo(this.date),this.change()},pre:function(){var t=this.cale.getDate(this.nowDate.fullDate,-1,"month").fullDate;this.setDate(t),this.monthSwitch()},next:function(){var t=this.cale.getDate(this.nowDate.fullDate,1,"month").fullDate;this.setDate(t),this.monthSwitch()},setDate:function(t){this.cale.setDate(t),this.weeks=this.cale.weeks,this.nowDate=this.cale.getInfo(t)}}};e.default=o},"578a":function(t,e,a){"use strict";a("99af"),a("cb29"),a("4de4"),a("4160"),a("d81d"),a("13d5"),a("26e9"),a("fb6a"),a("4e82"),a("a9e3"),a("b680"),a("d3b7"),a("e25e"),a("ac1f"),a("25f0"),a("5319"),a("1276"),a("159b");var i={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},n=function(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),i=1;i<e;i++)a[i-1]=arguments[i];if(null==t)throw new TypeError("Cannot convert undefined or null to object");if(!a||a.length<=0)return t;function n(t,e){for(var a in e)t[a]=t[a]&&"[object Object]"===t[a].toString()?n(t[a],e[a]):t[a]=e[a];return t}return a.forEach((function(e){t=n(t,e)})),t},r={toFixed:function(t,e){return e=e||2,this.isFloat(t)&&(t=t.toFixed(e)),t},isFloat:function(t){return t%1!==0},approximatelyEqual:function(t,e){return Math.abs(t-e)<1e-10},isSameSign:function(t,e){return Math.abs(t)===t&&Math.abs(e)===e||Math.abs(t)!==t&&Math.abs(e)!==e},isSameXCoordinateArea:function(t,e){return this.isSameSign(t.x,e.x)},isCollision:function(t,e){t.end={},t.end.x=t.start.x+t.width,t.end.y=t.start.y-t.height,e.end={},e.end.x=e.start.x+e.width,e.end.y=e.start.y-e.height;var a=e.start.x>t.end.x||e.end.x<t.start.x||e.end.y>t.start.y||e.start.y<t.end.y;return!a}};function o(t,e){var a=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,i=t.replace(a,(function(t,e,a,i){return e+e+a+a+i+i})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(i),r=parseInt(n[1],16),o=parseInt(n[2],16),s=parseInt(n[3],16);return"rgba("+r+","+o+","+s+","+e+")"}function s(t,e,a){if(isNaN(t))throw new Error("[uCharts] unvalid series data!");a=a||10,e=e||"upper";var i=1;while(a<1)a*=10,i*=10;t="upper"===e?Math.ceil(t*i):Math.floor(t*i);while(t%a!==0)"upper"===e?t++:t--;return t/i}function l(t,e,a,i){for(var n=[],r=0;r<t.length;r++){for(var o={data:[],name:e[r],color:a[r]},s=0,l=i.length;s<l;s++)if(s<t[r])o.data.push(null);else{for(var c=0,d=0;d<t[r];d++)c+=i[s-d][1];o.data.push(+(c/t[r]).toFixed(3))}n.push(o)}return n}function c(t,e,a,i,n){var r=n.width-n.area[1]-n.area[3],o=a.eachSpacing*(n.chartData.xAxisData.xAxisPoints.length-1),s=e;return e>=0?(s=0,t.event.trigger("scrollLeft")):Math.abs(e)>=o-r&&(s=r-o,t.event.trigger("scrollRight")),s}function d(t,e,a){function i(t){while(t<0)t+=2*Math.PI;while(t>2*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+=2*Math.PI)),t>=e&&t<=a}function h(t,e,a){var i=t,n=a-e,r=i+(a-n-i)/Math.sqrt(2);r*=-1;var o=(a-n)*(Math.sqrt(2)-1)-(a-n-i)/Math.sqrt(2);return{transX:r,transY:o}}function f(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 n=.2,r=.2,o=null,s=null,l=null,c=null;if(e<1?(o=t[0].x+(t[1].x-t[0].x)*n,s=t[0].y+(t[1].y-t[0].y)*n):(o=t[e].x+(t[e+1].x-t[e-1].x)*n,s=t[e].y+(t[e+1].y-t[e-1].y)*n),e>t.length-3){var d=t.length-1;l=t[d].x-(t[d].x-t[d-1].x)*r,c=t[d].y-(t[d].y-t[d-1].y)*r}else l=t[e+1].x-(t[e+2].x-t[e].x)*r,c=t[e+1].y-(t[e+2].y-t[e].y)*r;return a(t,e+1)&&(c=t[e+1].y),a(t,e)&&(s=t[e].y),i(t,e+1)&&(l=t[e+1].x),i(t,e)&&(o=t[e].x),(s>=Math.max(t[e].y,t[e+1].y)||s<=Math.min(t[e].y,t[e+1].y))&&(s=t[e].y),(c>=Math.max(t[e].y,t[e+1].y)||c<=Math.min(t[e].y,t[e+1].y))&&(c=t[e+1].y),(o>=Math.max(t[e].x,t[e+1].x)||o<=Math.min(t[e].x,t[e+1].x))&&(o=t[e].x),(l>=Math.max(t[e].x,t[e+1].x)||l<=Math.min(t[e].x,t[e+1].x))&&(l=t[e+1].x),{ctrA:{x:o,y:s},ctrB:{x:l,y:c}}}function u(t,e,a){return{x:a.x+t,y:a.y-e}}function p(t,e){if(e)while(r.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 b(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 g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.fontSize;t=String(t);t=t.split("");for(var a=0,n=0;n<t.length;n++){var r=t[n];/[a-zA-Z]/.test(r)?a+=7:/[0-9]/.test(r)?a+=5.5:/\./.test(r)?a+=2.7:/-/.test(r)?a+=3.25:/[\u4e00-\u9fa5]/.test(r)?a+=10:/\(|\)/.test(r)?a+=3.73:/\s/.test(r)?a+=2.5:/%/.test(r)?a+=8:a+=10}return a*e/10}function v(t){return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data)}),[])}function y(t,e){for(var a=new Array(e),i=0;i<a.length;i++)a[i]=0;for(var n=0;n<t.length;n++)for(i=0;i<a.length;i++)a[i]+=t[n].data[i];return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data).concat(a)}),[])}function m(t,e,a){var i,n;return t.clientX?e.rotate?(n=e.height-t.clientX*e.pixelRatio,i=(t.pageY-a.currentTarget.offsetTop-e.height/e.pixelRatio/2*(e.pixelRatio-1))*e.pixelRatio):(i=t.clientX*e.pixelRatio,n=(t.pageY-a.currentTarget.offsetTop-e.height/e.pixelRatio/2*(e.pixelRatio-1))*e.pixelRatio):e.rotate?(n=e.height-t.x*e.pixelRatio,i=t.y*e.pixelRatio):(i=t.x*e.pixelRatio,n=t.y*e.pixelRatio),{x:i,y:n}}function w(t,e){for(var a=[],i=0;i<t.length;i++){var n=t[i];if(null!==n.data[e]&&"undefined"!==typeof n.data[e]&&n.show){var r={};r.color=n.color,r.type=n.type,r.style=n.style,r.pointShape=n.pointShape,r.disableLegend=n.disableLegend,r.name=n.name,r.show=n.show,r.data=n.format?n.format(n.data[e]):n.data[e],a.push(r)}}return a}function _(t){var e=t.map((function(t){return g(t)}));return Math.max.apply(null,e)}function k(t){for(var e=2*Math.PI/t,a=[],i=0;i<t;i++)a.push(e*i);return a.map((function(t){return-1*t+Math.PI/2}))}function S(t,e,a,i){for(var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=t.map((function(t){var e=[];return e=i||t.data,{text:n.format?n.format(t,e[a]):t.name+": "+t.data,color:t.color}})),o=[],s={x:0,y:0},l=0;l<e.length;l++){var c=e[l];"undefined"!==typeof c[a]&&null!==c[a]&&o.push(c[a])}for(var d=0;d<o.length;d++){var h=o[d];s.x=Math.round(h.x),s.y+=h.y}return s.y/=o.length,{textList:r,offset:s}}function D(t,e,a,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=t.map((function(t){return{text:n.format?n.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 o=[],s={x:0,y:0},l=0;l<e.length;l++){var c=e[l];"undefined"!==typeof c[a]&&null!==c[a]&&o.push(c[a])}for(var d=0;d<o.length;d++){var h=o[d];s.x=Math.round(h.x),s.y+=h.y}return s.y/=o.length,{textList:r,offset:s}}function A(t,e,a,i,n,r){var o=r.color.upFill,s=r.color.downFill,l=[o,o,s,o],c=[],d={text:n[i],color:null};c.push(d),e.map((function(e){0==i&&e.data[1]-e.data[0]<0?l[1]=s:(e.data[0]<t[i-1][1]&&(l[0]=s),e.data[1]<e.data[0]&&(l[1]=s),e.data[2]>t[i-1][1]&&(l[2]=o),e.data[3]<t[i-1][1]&&(l[3]=s));var a={text:"开盘:"+e.data[0],color:l[0]},n={text:"收盘:"+e.data[1],color:l[1]},r={text:"最低:"+e.data[2],color:l[2]},d={text:"最高:"+e.data[3],color:l[3]};c.push(a,n,r,d)}));for(var h=[],f={x:0,y:0},u=0;u<a.length;u++){var p=a[u];"undefined"!==typeof p[i]&&null!==p[i]&&h.push(p[i])}return f.x=Math.round(h[0][0].x),{textList:c,offset:f}}function T(t){for(var e=[],a=0;a<t.length;a++)1==t[a].show&&e.push(t[a]);return e}function P(t,e,a,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=-1,o=a.chartData.eachSpacing/2,s=[];if(e.length>0){if("candle"==a.type)for(var l=0;l<e[0].length;l++)s.push(e[0][l][0].x);else for(var c=0;c<e[0].length;c++)s.push(e[0][c].x);"line"!=a.type&&"area"!=a.type||"justify"!=a.xAxis.boundaryGap||(o=a.chartData.eachSpacing/2),a.categories||(o=0),L(t,a,i)&&s.forEach((function(e,a){t.x+n+o>e&&(r=a)}))}return r}function M(t,e,a){var i=-1;if(C(t,e.area)){for(var n=e.points,r=-1,o=0,s=n.length;o<s;o++)for(var l=n[o],c=0;c<l.length;c++){r+=1;var d=l[c]["area"];if(t.x>d[0]&&t.x<d[2]&&t.y>d[1]&&t.y<d[3]){i=r;break}}return i}return i}function C(t,e){return t.x>e.start.x&&t.x<e.end.x&&t.y>e.start.y&&t.y<e.end.y}function L(t,e,a){return t.x<=e.width-e.area[1]+10&&t.x>=e.area[3]-10&&t.y>=e.area[0]&&t.y<=e.height-e.area[2]}function F(t,e,a){var i=2*Math.PI/a,n=-1;if(O(t,e.center,e.radius)){var r=function(t){return t<0&&(t+=2*Math.PI),t>2*Math.PI&&(t-=2*Math.PI),t},o=Math.atan2(e.center.y-t.y,t.x-e.center.x);o*=-1,o<0&&(o+=2*Math.PI);var s=e.angleList.map((function(t){return t=r(-1*t),t}));s.forEach((function(t,e){var a=r(t-i/2),s=r(t+i/2);s<a&&(s+=2*Math.PI),(o>=a&&o<=s||o+2*Math.PI>=a&&o+2*Math.PI<=s)&&(n=e)}))}return n}function R(t,e){for(var a=-1,i=0,n=e.series.length;i<n;i++){var r=e.series[i];if(t.x>r.funnelArea[0]&&t.x<r.funnelArea[2]&&t.y>r.funnelArea[1]&&t.y<r.funnelArea[3]){a=i;break}}return a}function I(t,e){for(var a=-1,i=0,n=e.length;i<n;i++){var r=e[i];if(t.x>r.area[0]&&t.x<r.area[2]&&t.y>r.area[1]&&t.y<r.area[3]){a=i;break}}return a}function z(t,e){for(var a=-1,i=e.chartData.mapData,n=e.series,r=Bt(t.y,t.x,i.bounds,i.scale,i.xoffset,i.yoffset),o=[r.x,r.y],s=0,l=n.length;s<l;s++){var c=n[s].geometry.coordinates;if(jt(o,c)){a=s;break}}return a}function E(t,e){var a=-1;if(O(t,e.center,e.radius)){var i=Math.atan2(e.center.y-t.y,t.x-e.center.x);i=-i;for(var n=0,r=e.series.length;n<r;n++){var o=e.series[n];if(d(i,o._start_,o._start_+2*o._proportion_*Math.PI)){a=n;break}}}return a}function O(t,e,a){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(a,2)}function W(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 B(t,e,a,i){var n={area:{start:{x:0,y:0},end:{x:0,y:0},width:0,height:0,wholeWidth:0,wholeHeight:0},points:[],widthArr:[],heightArr:[]};if(!1===e.legend.show)return i.legendData=n,n;var r=e.legend.padding,o=e.legend.margin,s=e.legend.fontSize,l=15*e.pixelRatio,c=5*e.pixelRatio,d=Math.max(e.legend.lineHeight*e.pixelRatio,s);if("top"==e.legend.position||"bottom"==e.legend.position){for(var h=[],f=0,u=[],p=[],x=0;x<t.length;x++){var b=t[x],v=l+c+g(b.name||"undefined",s)+e.legend.itemGap;f+v>e.width-e.padding[1]-e.padding[3]?(h.push(p),u.push(f-e.legend.itemGap),f=v,p=[b]):(f+=v,p.push(b))}if(p.length){h.push(p),u.push(f-e.legend.itemGap),n.widthArr=u;var y=Math.max.apply(null,u);switch(e.legend.float){case"left":n.area.start.x=e.padding[3],n.area.end.x=e.padding[3]+2*r;break;case"right":n.area.start.x=e.width-e.padding[1]-y-2*r,n.area.end.x=e.width-e.padding[1];break;default:n.area.start.x=(e.width-y)/2-r,n.area.end.x=(e.width+y)/2+r}n.area.width=y+2*r,n.area.wholeWidth=y+2*r,n.area.height=h.length*d+2*r,n.area.wholeHeight=h.length*d+2*r+2*o,n.points=h}}else{var m=t.length,w=e.height-e.padding[0]-e.padding[2]-2*o-2*r,_=Math.min(Math.floor(w/d),m);switch(n.area.height=_*d+2*r,n.area.wholeHeight=_*d+2*r,e.legend.float){case"top":n.area.start.y=e.padding[0]+o,n.area.end.y=e.padding[0]+o+n.area.height;break;case"bottom":n.area.start.y=e.height-e.padding[2]-o-n.area.height,n.area.end.y=e.height-e.padding[2]-o;break;default:n.area.start.y=(e.height-n.area.height)/2,n.area.end.y=(e.height+n.area.height)/2}for(var k=m%_===0?m/_:Math.floor(m/_+1),S=[],D=0;D<k;D++){var A=t.slice(D*_,D*_+_);S.push(A)}if(n.points=S,S.length){for(var T=0;T<S.length;T++){for(var P=S[T],M=0,C=0;C<P.length;C++){var L=l+c+g(P[C].name||"undefined",s)+e.legend.itemGap;L>M&&(M=L)}n.widthArr.push(M),n.heightArr.push(P.length*d+2*r)}for(var F=0,R=0;R<n.widthArr.length;R++)F+=n.widthArr[R];n.area.width=F-e.legend.itemGap+2*r,n.area.wholeWidth=n.area.width+r}}switch(e.legend.position){case"top":n.area.start.y=e.padding[0]+o,n.area.end.y=e.padding[0]+o+n.area.height;break;case"bottom":n.area.start.y=e.height-e.padding[2]-n.area.height-o,n.area.end.y=e.height-e.padding[2]-o;break;case"left":n.area.start.x=e.padding[3],n.area.end.x=e.padding[3]+n.area.width;break;case"right":n.area.start.x=e.width-e.padding[1]-n.area.width,n.area.end.x=e.width-e.padding[1];break}return i.legendData=n,n}function N(t,e,a,i){var n={angle:0,xAxisHeight:a.xAxisHeight},r=t.map((function(t){return g(t,e.xAxis.fontSize||a.fontSize)})),o=Math.max.apply(this,r);return 1==e.xAxis.rotateLabel&&o+2*a.xAxisTextPadding>i&&(n.angle=45*Math.PI/180,n.xAxisHeight=2*a.xAxisTextPadding+o*Math.sin(n.angle)),n}function j(t,e,a){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,n=v(t),r=[];n=n.filter((function(t){return"object"===typeof t&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t})),n.map((function(t){"object"===typeof t?t.constructor==Array?"candle"==e.type?t.map((function(t){r.push(t)})):r.push(t[0]):r.push(t.value):r.push(t)}));var o=0,s=0;if(r.length>0&&(o=Math.min.apply(this,r),s=Math.max.apply(this,r)),i>-1?("number"===typeof e.xAxis.data[i].min&&(o=Math.min(e.xAxis.data[i].min,o)),"number"===typeof e.xAxis.data[i].max&&(s=Math.max(e.xAxis.data[i].max,s))):("number"===typeof e.xAxis.min&&(o=Math.min(e.xAxis.min,o)),"number"===typeof e.xAxis.max&&(s=Math.max(e.xAxis.max,s))),o===s){var l=s||10;s+=l}for(var c=o,d=s,h=[],f=(d-c)/e.xAxis.splitNumber,u=0;u<=e.xAxis.splitNumber;u++)h.push(c+f*u);return h}function $(t,e,a){var i={angle:0,xAxisHeight:a.xAxisHeight};i.ranges=j(t,e,a),i.rangesFormat=i.ranges.map((function(t){return t=e.xAxis.format?e.xAxis.format(t):r.toFixed(t,2),t}));var n=i.ranges.map((function(t){return t=r.toFixed(t,2),t=e.xAxis.format?e.xAxis.format(Number(t)):t,t}));i=Object.assign(i,tt(n,e,a));var o=i.eachSpacing,s=n.map((function(t){return g(t)})),l=Math.max.apply(this,s);return l+2*a.xAxisTextPadding>o&&(i.angle=45*Math.PI/180,i.xAxisHeight=2*a.xAxisTextPadding+l*Math.sin(i.angle)),!0===e.xAxis.disabled&&(i.xAxisHeight=0),i}function H(t,e,a,i,n){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=n.extra.radar||{};o.max=o.max||0;for(var s=Math.max(o.max,Math.max.apply(null,v(i))),l=[],c=function(n){var o=i[n],c={};c.color=o.color,c.legendShape=o.legendShape,c.pointShape=o.pointShape,c.data=[],o.data.forEach((function(i,n){var o={};o.angle=t[n],o.proportion=i/s,o.position=u(a*o.proportion*r*Math.cos(o.angle),a*o.proportion*r*Math.sin(o.angle),e),c.data.push(o)})),l.push(c)},d=0;d<i.length;d++)c(d);return l}function G(t,e){for(var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=0,n=0,r=0;r<t.length;r++){var o=t[r];o.data=null===o.data?0:o.data,i+=o.data}for(var s=0;s<t.length;s++){var l=t[s];l.data=null===l.data?0:l.data,l._proportion_=0===i?1/t.length*a:l.data/i*a,l._radius_=e}for(var c=0;c<t.length;c++){var d=t[c];d._start_=n,n+=2*d._proportion_*Math.PI}return t}function Y(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t=t.sort((function(t,e){return parseInt(e.data)-parseInt(t.data)}));for(var i=0;i<t.length;i++)t[i].radius=t[i].data/t[0].data*e*a,t[i]._proportion_=t[i].data/t[0].data;return t.reverse()}function X(t,e,a,i){for(var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=0,o=0,s=[],l=0;l<t.length;l++){var c=t[l];c.data=null===c.data?0:c.data,r+=c.data,s.push(c.data)}for(var d=Math.min.apply(null,s),h=Math.max.apply(null,s),f=i-a,u=0;u<t.length;u++){var p=t[u];p.data=null===p.data?0:p.data,0===r||"area"==e?(p._proportion_=p.data/r*n,p._rose_proportion_=1/t.length*n):(p._proportion_=p.data/r*n,p._rose_proportion_=p.data/r*n),p._radius_=a+f*((p.data-d)/(h-d))}for(var x=0;x<t.length;x++){var b=t[x];b._start_=o,o+=2*b._rose_proportion_*Math.PI}return t}function Z(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==a&&(a=.999999);for(var i=0;i<t.length;i++){var n=t[i];n.data=null===n.data?0:n.data;var r=void 0;r="circle"==e.type?2:e.endAngle<e.startAngle?2+e.endAngle-e.startAngle:e.startAngle-e.endAngle,n._proportion_=r*n.data*a+e.startAngle,n._proportion_>=2&&(n._proportion_=n._proportion_%2)}return t}function q(t,e,a){for(var i=e-a+1,n=e,r=0;r<t.length;r++)t[r].value=null===t[r].value?0:t[r].value,t[r]._startAngle_=n,t[r]._endAngle_=i*t[r].value+e,t[r]._endAngle_>=2&&(t[r]._endAngle_=t[r]._endAngle_%2),n=t[r]._endAngle_;return t}function U(t,e,a){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,n=0;n<t.length;n++){var r=t[n];if(r.data=null===r.data?0:r.data,"auto"==a.pointer.color){for(var o=0;o<e.length;o++)if(r.data<=e[o].value){r.color=e[o].color;break}}else r.color=a.pointer.color;var s=a.startAngle-a.endAngle+1;r._endAngle_=s*r.data+a.startAngle,r._oldAngle_=a.oldAngle,a.oldAngle<a.endAngle&&(r._oldAngle_+=2),r.data>=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 J(t){t=G(t);for(var e=0,a=0;a<t.length;a++){var i=t[a],n=i.format?i.format(+i._proportion_.toFixed(2)):r.toFixed(100*i._proportion_)+"%";e=Math.max(e,g(n))}return e}function V(t,e,a,i,n,r){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*n.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 K(t,e,a,i,n,r,o){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*n.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*o),t)}))}function Q(t,e,a,i,n,r,o){return t.map((function(t,a){return null===t?null:(t.width=Math.ceil((e-2*n.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 tt(t,e,a){var i=e.width-e.area[1]-e.area[3],n=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type)&&n>1&&"justify"==e.xAxis.boundaryGap&&(n-=1);var r=i/n,o=[],s=e.area[3],l=e.width-e.area[1];return t.forEach((function(t,e){o.push(s+e*r)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?o.push(s+t.length*r):o.push(l)),{xAxisPoints:o,startX:s,endX:l,eachSpacing:r}}function et(t,e,a,i,n,r,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=[],c=r.height-r.area[0]-r.area[2];return t.forEach((function(t,o){if(null===t)l.push(null);else{var d=[];t.forEach((function(t,l){var h={};h.x=i[o]+Math.round(n/2);var f=t.value||t,u=c*(f-e)/(a-e);u*=s,h.y=r.height-Math.round(u)-r.area[2],d.push(h)})),l.push(d)}})),l}function at(t,e,a,i,n,r,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l="center";"line"!=r.type&&"area"!=r.type||(l=r.xAxis.boundaryGap);var c=[],d=r.height-r.area[0]-r.area[2],h=r.width-r.area[1]-r.area[3];return t.forEach((function(t,o){if(null===t)c.push(null);else{var f={};f.color=t.color,f.x=i[o];var u,p,x,b=t;if("object"===typeof t&&null!==t)if(t.constructor==Array)u=[].concat(r.chartData.xAxisData.ranges),p=u.shift(),x=u.pop(),b=t[1],f.x=r.area[3]+h*(t[0]-p)/(x-p);else b=t.value;"center"==l&&(f.x+=Math.round(n/2));var g=d*(b-e)/(a-e);g*=s,f.y=r.height-Math.round(g)-r.area[2],c.push(f)}})),c}function it(t,e,a,i,n,r,o,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,d=[],h=r.height-r.area[0]-r.area[2];return t.forEach((function(t,o){if(null===t)d.push(null);else{var f={};if(f.color=t.color,f.x=i[o]+Math.round(n/2),s>0){for(var u=0,p=0;p<=s;p++)u+=l[p].data[o];var x=u-t,b=h*(u-e)/(a-e),g=h*(x-e)/(a-e)}else u=t,b=h*(u-e)/(a-e),g=0;var v=g;b*=c,v*=c,f.y=r.height-Math.round(b)-r.area[2],f.y0=r.height-Math.round(v)-r.area[2],d.push(f)}})),d}function nt(t,e,a,i){var n,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;n="stack"==i?y(t,e.categories.length):v(t);var o=[];n=n.filter((function(t){return"object"===typeof t&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t})),n.map((function(t){"object"===typeof t?t.constructor==Array?"candle"==e.type?t.map((function(t){o.push(t)})):o.push(t[1]):o.push(t.value):o.push(t)}));var s=0,l=0;if(o.length>0&&(s=Math.min.apply(this,o),l=Math.max.apply(this,o)),r>-1?("number"===typeof e.yAxis.data[r].min&&(s=Math.min(e.yAxis.data[r].min,s)),"number"===typeof e.yAxis.data[r].max&&(l=Math.max(e.yAxis.data[r].max,l))):("number"===typeof e.yAxis.min&&(s=Math.min(e.yAxis.min,s)),"number"===typeof e.yAxis.max&&(l=Math.max(e.yAxis.max,l))),s===l){var c=l||10;l+=c}for(var d=b(s,l),h=d.minRange,f=d.maxRange,u=[],p=(f-h)/e.yAxis.splitNumber,x=0;x<=e.yAxis.splitNumber;x++)u.push(h+p*x);return u.reverse()}function rt(t,e,a){var i=n({},{type:""},e.extra.column),o=e.yAxis.data.length,s=new Array(o);if(o>0){for(var l=0;l<o;l++){s[l]=[];for(var c=0;c<t.length;c++)t[c].index==l&&s[l].push(t[c])}for(var d=new Array(o),h=new Array(o),f=new Array(o),u=function(t){var n=e.yAxis.data[t];1==e.yAxis.disabled&&(n.disabled=!0),d[t]=nt(s[t],e,a,i.type,t);var o=n.fontSize||a.fontSize;f[t]={position:n.position?n.position:"left",width:0},h[t]=d[t].map((function(e){return e=r.toFixed(e,6),e=n.format?n.format(Number(e)):e,f[t].width=Math.max(f[t].width,g(e,o)+5),e}));var l=n.calibration?4*e.pixelRatio:0;f[t].width+=l+3*e.pixelRatio,!0===n.disabled&&(f[t].width=0)},p=0;p<o;p++)u(p)}else{d=new Array(1),h=new Array(1),f=new Array(1);d[0]=nt(t,e,a,i.type),f[0]={position:"left",width:0};var x=e.yAxis.fontSize||a.fontSize;h[0]=d[0].map((function(t){return t=r.toFixed(t,6),t=e.yAxis.format?e.yAxis.format(Number(t)):t,f[0].width=Math.max(f[0].width,g(t,x)+5),t})),f[0].width+=3*e.pixelRatio,!0===e.yAxis.disabled?(f[0]={position:"left",width:0},e.yAxis.data[0]={disabled:!0}):e.yAxis.data[0]={disabled:!1,position:"left",max:e.yAxis.max,min:e.yAxis.min,format:e.yAxis.format}}return{rangesFormat:h,ranges:d,yAxisWidth:f}}function ot(t,e,a,i,n){for(var r=[].concat(a.chartData.yAxisData.ranges),o=a.height-a.area[0]-a.area[2],s=a.area[0],l=[],c=0;c<r.length;c++){var d=r[c].shift(),h=r[c].pop(),f=d-(d-h)*(t-s)/o;f=a.yAxis.data[c].format?a.yAxis.data[c].format(Number(f)):f.toFixed(0),l.push(String(f))}return l}function st(t,e){for(var a,i,n=e.height-e.area[0]-e.area[2],r=0;r<t.length;r++){t[r].yAxisIndex=t[r].yAxisIndex?t[r].yAxisIndex:0;var o=[].concat(e.chartData.yAxisData.ranges[t[r].yAxisIndex]);a=o.pop(),i=o.shift();var s=n*(t[r].value-a)/(i-a);t[r].y=e.height-Math.round(s)-e.area[2]}return t}function lt(t,e){!0!==e.rotateLock?(t.translate(e.height,0),t.rotate(90*Math.PI/180)):!0!==e._rotate_&&(t.translate(e.height,0),t.rotate(90*Math.PI/180),e._rotate_=!0)}function ct(t,e,a,i,n){i.beginPath(),"hollow"==n.dataPointShapeType?(i.setStrokeStyle(e),i.setFillStyle(n.background),i.setLineWidth(2*n.pixelRatio)):(i.setStrokeStyle("#ffffff"),i.setFillStyle(e),i.setLineWidth(1*n.pixelRatio)),"diamond"===a?t.forEach((function(t,e){null!==t&&(i.moveTo(t.x,t.y-4.5),i.lineTo(t.x-4.5,t.y),i.lineTo(t.x,t.y+4.5),i.lineTo(t.x+4.5,t.y),i.lineTo(t.x,t.y-4.5))})):"circle"===a?t.forEach((function(t,e){null!==t&&(i.moveTo(t.x+2.5*n.pixelRatio,t.y),i.arc(t.x,t.y,3*n.pixelRatio,0,2*Math.PI,!1))})):"rect"===a?t.forEach((function(t,e){null!==t&&(i.moveTo(t.x-3.5,t.y-3.5),i.rect(t.x-3.5,t.y-3.5,7,7))})):"triangle"===a&&t.forEach((function(t,e){null!==t&&(i.moveTo(t.x,t.y-4.5),i.lineTo(t.x-4.5,t.y+4.5),i.lineTo(t.x+4.5,t.y+4.5),i.lineTo(t.x,t.y-4.5))})),i.closePath(),i.fill(),i.stroke()}function dt(t,e,a,i){var n=t.title.fontSize||e.titleFontSize,r=t.subtitle.fontSize||e.subtitleFontSize,o=t.title.name||"",s=t.subtitle.name||"",l=t.title.color||e.titleColor,c=t.subtitle.color||e.subtitleColor,d=o?n:0,h=s?r:0,f=5;if(s){var u=g(s,r),p=i.x-u/2+(t.subtitle.offsetX||0),x=i.y+r/2+(t.subtitle.offsetY||0);o&&(x+=(d+f)/2),a.beginPath(),a.setFontSize(r),a.setFillStyle(c),a.fillText(s,p,x),a.closePath(),a.stroke()}if(o){var b=g(o,n),v=i.x-b/2+(t.title.offsetX||0),y=i.y+n/2+(t.title.offsetY||0);s&&(y-=(h+f)/2),a.beginPath(),a.setFontSize(n),a.setFillStyle(l),a.fillText(o,v,y),a.closePath(),a.stroke()}}function ht(t,e,a,i){var n=e.data;t.forEach((function(t,r){if(null!==t){i.beginPath(),i.setFontSize(e.textSize||a.fontSize),i.setFillStyle(e.textColor||"#666666");var o=n[r];"object"===typeof n[r]&&null!==n[r]&&(o=n[r].constructor==Array?n[r][1]:n[r].value);var s=e.format?e.format(o):o;i.fillText(String(s),t.x-g(s,e.textSize||a.fontSize)/2,t.y-4),i.closePath(),i.stroke()}}))}function ft(t,e,a,i,n,r){e-=t.width/2+n.gaugeLabelTextMargin;for(var o=t.startAngle-t.endAngle+1,s=o/t.splitLine.splitNumber,l=t.endNumber-t.startNumber,c=l/t.splitLine.splitNumber,d=t.startAngle,h=t.startNumber,f=0;f<t.splitLine.splitNumber+1;f++){var u={x:e*Math.cos(d*Math.PI),y:e*Math.sin(d*Math.PI)},p=t.labelFormat?t.labelFormat(h):h;u.x+=a.x-g(p)/2,u.y+=a.y;var x=u.x,b=u.y;r.beginPath(),r.setFontSize(n.fontSize),r.setFillStyle(t.labelColor||"#666666"),r.fillText(p,x,b+n.fontSize/2),r.closePath(),r.stroke(),d+=s,d>=2&&(d%=2),h+=c}}function ut(t,e,a,i,n,o){var s=i.extra.radar||{};e+=n.radarLabelTextMargin,t.forEach((function(t,l){var c={x:e*Math.cos(t),y:e*Math.sin(t)},d=u(c.x,c.y,a),h=d.x,f=d.y;r.approximatelyEqual(c.x,0)?h-=g(i.categories[l]||"")/2:c.x<0&&(h-=g(i.categories[l]||"")),o.beginPath(),o.setFontSize(n.fontSize),o.setFillStyle(s.labelColor||"#666666"),o.fillText(i.categories[l]||"",h,f+n.fontSize/2),o.closePath(),o.stroke()}))}function pt(t,e,a,i,n,o){for(var s=a.pieChartLinePadding,l=[],c=null,d=t.map((function(t){var e=t.format?t.format(+t._proportion_.toFixed(2)):r.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,n=t._radius_;return{arc:a,text:e,color:i,radius:n,textColor:t.textColor,textSize:t.textSize}})),h=0;h<d.length;h++){var f=d[h],x=Math.cos(f.arc)*(f.radius+s),b=Math.sin(f.arc)*(f.radius+s),v=Math.cos(f.arc)*f.radius,y=Math.sin(f.arc)*f.radius,m=x>=0?x+a.pieChartTextPadding:x-a.pieChartTextPadding,w=b,_=g(f.text,f.textSize||a.fontSize),k=w;c&&r.isSameXCoordinateArea(c.start,{x:m})&&(k=m>0?Math.min(w,c.start.y):x<0||w>0?Math.max(w,c.start.y):Math.min(w,c.start.y)),m<0&&(m-=_);var S={lineStart:{x:v,y:y},lineEnd:{x:x,y:b},start:{x:m,y:k},width:_,height:a.fontSize,text:f.text,color:f.color,textColor:f.textColor,textSize:f.textSize};c=p(S,c),l.push(c)}for(var D=0;D<l.length;D++){var A=l[D],T=u(A.lineStart.x,A.lineStart.y,o),P=u(A.lineEnd.x,A.lineEnd.y,o),M=u(A.start.x,A.start.y,o);i.setLineWidth(1*e.pixelRatio),i.setFontSize(a.fontSize),i.beginPath(),i.setStrokeStyle(A.color),i.setFillStyle(A.color),i.moveTo(T.x,T.y);var C=A.start.x<0?M.x+A.width:M.x,L=A.start.x<0?M.x-5:M.x+5;i.quadraticCurveTo(P.x,P.y,C,M.y),i.moveTo(T.x,T.y),i.stroke(),i.closePath(),i.beginPath(),i.moveTo(M.x+A.width,M.y),i.arc(C,M.y,2,0,2*Math.PI),i.closePath(),i.fill(),i.beginPath(),i.setFontSize(A.textSize||a.fontSize),i.setFillStyle(A.textColor||"#666666"),i.fillText(A.text,L,M.y+3),i.closePath(),i.stroke(),i.closePath()}}function xt(t,e,a,i){var n=e.extra.tooltip||{};n.gridType=void 0==n.gridType?"solid":n.gridType,n.dashLength=void 0==n.dashLength?4:n.dashLength;var r=e.area[0],s=e.height-e.area[2];if("dash"==n.gridType&&i.setLineDash([n.dashLength,n.dashLength]),i.setStrokeStyle(n.gridColor||"#cccccc"),i.setLineWidth(1*e.pixelRatio),i.beginPath(),i.moveTo(t,r),i.lineTo(t,s),i.stroke(),i.setLineDash([]),n.xAxisLabel){var l=e.categories[e.tooltip.index];i.setFontSize(a.fontSize);var c=g(l,a.fontSize),d=t-.5*c,h=s;i.beginPath(),i.setFillStyle(o(n.labelBgColor||a.toolTipBackground,n.labelBgOpacity||a.toolTipOpacity)),i.setStrokeStyle(n.labelBgColor||a.toolTipBackground),i.setLineWidth(1*e.pixelRatio),i.rect(d-a.toolTipPadding,h,c+2*a.toolTipPadding,a.fontSize+2*a.toolTipPadding),i.closePath(),i.stroke(),i.fill(),i.beginPath(),i.setFontSize(a.fontSize),i.setFillStyle(n.labelFontColor||a.fontColor),i.fillText(String(l),d,h+a.toolTipPadding+a.fontSize),i.closePath(),i.stroke()}}function bt(t,e,a){for(var i=n({},{type:"solid",dashLength:4,data:[]},t.extra.markLine),r=t.area[3],s=t.width-t.area[1],l=st(i.data,t),c=0;c<l.length;c++){var d=n({},{lineColor:"#DE4A42",showLabel:!1,labelFontColor:"#666666",labelBgColor:"#DFE8FF",labelBgOpacity:.8,yAxisIndex:0},l[c]);if("dash"==i.type&&a.setLineDash([i.dashLength,i.dashLength]),a.setStrokeStyle(d.lineColor),a.setLineWidth(1*t.pixelRatio),a.beginPath(),a.moveTo(r,d.y),a.lineTo(s,d.y),a.stroke(),a.setLineDash([]),d.showLabel){var h=t.yAxis.format?t.yAxis.format(Number(d.value)):d.value;a.setFontSize(e.fontSize);var f=g(h,e.fontSize),u=t.padding[3]+e.yAxisTitleWidth-e.toolTipPadding,p=Math.max(t.area[3],f+2*e.toolTipPadding),x=p-u,b=u+(x-f)/2,v=d.y;a.setFillStyle(o(d.labelBgColor,d.labelBgOpacity)),a.setStrokeStyle(d.labelBgColor),a.setLineWidth(1*t.pixelRatio),a.beginPath(),a.rect(u,v-.5*e.fontSize-e.toolTipPadding,x,e.fontSize+2*e.toolTipPadding),a.closePath(),a.stroke(),a.fill(),a.beginPath(),a.setFontSize(e.fontSize),a.setFillStyle(d.labelFontColor),a.fillText(String(h),b,v+.5*e.fontSize),a.stroke()}}}function gt(t,e,a,i,r){var s=n({},{gridType:"solid",dashLength:4},t.extra.tooltip),l=t.area[3],c=t.width-t.area[1];if("dash"==s.gridType&&a.setLineDash([s.dashLength,s.dashLength]),a.setStrokeStyle(s.gridColor||"#cccccc"),a.setLineWidth(1*t.pixelRatio),a.beginPath(),a.moveTo(l,t.tooltip.offset.y),a.lineTo(c,t.tooltip.offset.y),a.stroke(),a.setLineDash([]),s.yAxisLabel)for(var d=ot(t.tooltip.offset.y,t.series,t,e,i),h=t.chartData.yAxisData.yAxisWidth,f=t.area[3],u=t.width-t.area[1],p=0;p<d.length;p++){a.setFontSize(e.fontSize);var x=g(d[p],e.fontSize),b=void 0,v=void 0,y=void 0;"left"==h[p].position?(b=f-h[p].width,v=Math.max(b,b+x+2*e.toolTipPadding)):(b=u,v=Math.max(b+h[p].width,b+x+2*e.toolTipPadding)),y=v-b;var m=b+(y-x)/2,w=t.tooltip.offset.y;a.beginPath(),a.setFillStyle(o(s.labelBgColor||e.toolTipBackground,s.labelBgOpacity||e.toolTipOpacity)),a.setStrokeStyle(s.labelBgColor||e.toolTipBackground),a.setLineWidth(1*t.pixelRatio),a.rect(b,w-.5*e.fontSize-e.toolTipPadding,y,e.fontSize+2*e.toolTipPadding),a.closePath(),a.stroke(),a.fill(),a.beginPath(),a.setFontSize(e.fontSize),a.setFillStyle(s.labelFontColor||e.fontColor),a.fillText(d[p],m,w+.5*e.fontSize),a.closePath(),a.stroke(),"left"==h[p].position?f-=h[p].width+t.yAxis.padding:u+=h[p].width+t.yAxis.padding}}function vt(t,e,a,i,r){var s=n({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.tooltip),l=e.area[0],c=e.height-e.area[2];i.beginPath(),i.setFillStyle(o(s.activeBgColor,s.activeBgOpacity)),i.rect(t-r/2,l,r,c-l),i.closePath(),i.fill()}function yt(t,e,a,i,r,s,l){var c=n({},{showBox:!0,bgColor:"#000000",bgOpacity:.7,fontColor:"#FFFFFF"},a.extra.tooltip),d=4*a.pixelRatio,h=5*a.pixelRatio,f=8*a.pixelRatio,u=!1;"line"!=a.type&&"area"!=a.type&&"candle"!=a.type&&"mix"!=a.type||xt(a.tooltip.offset.x,a,i,r),e=n({x:0,y:0},e),e.y-=8*a.pixelRatio;var p=t.map((function(t){return g(t.text,i.fontSize)})),x=d+h+4*i.toolTipPadding+Math.max.apply(null,p),b=2*i.toolTipPadding+t.length*i.toolTipLineHeight;0!=c.showBox&&(e.x-Math.abs(a._scrollDistance_)+f+x>a.width&&(u=!0),b+e.y>a.height&&(e.y=a.height-b),r.beginPath(),r.setFillStyle(o(c.bgColor||i.toolTipBackground,c.bgOpacity||i.toolTipOpacity)),u?(r.moveTo(e.x,e.y+10*a.pixelRatio),r.lineTo(e.x-f,e.y+10*a.pixelRatio-5*a.pixelRatio),r.lineTo(e.x-f,e.y),r.lineTo(e.x-f-Math.round(x),e.y),r.lineTo(e.x-f-Math.round(x),e.y+b),r.lineTo(e.x-f,e.y+b),r.lineTo(e.x-f,e.y+10*a.pixelRatio+5*a.pixelRatio),r.lineTo(e.x,e.y+10*a.pixelRatio)):(r.moveTo(e.x,e.y+10*a.pixelRatio),r.lineTo(e.x+f,e.y+10*a.pixelRatio-5*a.pixelRatio),r.lineTo(e.x+f,e.y),r.lineTo(e.x+f+Math.round(x),e.y),r.lineTo(e.x+f+Math.round(x),e.y+b),r.lineTo(e.x+f,e.y+b),r.lineTo(e.x+f,e.y+10*a.pixelRatio+5*a.pixelRatio),r.lineTo(e.x,e.y+10*a.pixelRatio)),r.closePath(),r.fill(),t.forEach((function(t,a){if(null!==t.color){r.beginPath(),r.setFillStyle(t.color);var n=e.x+f+2*i.toolTipPadding,o=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*a+i.toolTipPadding+1;u&&(n=e.x-x-f+2*i.toolTipPadding),r.fillRect(n,o,d,i.fontSize),r.closePath()}})),t.forEach((function(t,a){var n=e.x+f+2*i.toolTipPadding+d+h;u&&(n=e.x-x-f+2*i.toolTipPadding+ +d+h);var o=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*a+i.toolTipPadding;r.beginPath(),r.setFontSize(i.fontSize),r.setFillStyle(c.fontColor),r.fillText(t.text,n,o+i.fontSize),r.closePath(),r.stroke()})))}function mt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=e.chartData.xAxisData,s=o.xAxisPoints,l=o.eachSpacing,c=n({},{type:"group",width:l/2,meter:{border:4,fillColor:"#FFFFFF"}},e.extra.column),d=[];i.save();var h=-2,f=s.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),h=Math.floor(-e._scrollDistance_/l)-2,f=h+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===r&&vt(e.tooltip.offset.x,e,a,i,l),t.forEach((function(n,o){var u,p,x;u=[].concat(e.chartData.yAxisData.ranges[n.index]),p=u.pop(),x=u.shift();var b=n.data;switch(c.type){case"group":var g=at(b,p,x,s,l,e,a,r),v=it(b,p,x,s,l,e,a,o,t,r);d.push(v),g=V(g,l,t.length,o,a,e);for(var y=0;y<g.length;y++){var m=g[y];if(null!==m&&y>h&&y<f){i.beginPath(),i.setStrokeStyle(m.color||n.color),i.setLineWidth(1),i.setFillStyle(m.color||n.color);var w=m.x-m.width/2,_=e.height-m.y-e.area[2];i.moveTo(w,m.y),i.lineTo(w+m.width-2,m.y),i.lineTo(w+m.width-2,e.height-e.area[2]),i.lineTo(w,e.height-e.area[2]),i.lineTo(w,m.y),i.closePath(),i.stroke(),i.fill()}}break;case"stack":g=it(b,p,x,s,l,e,a,o,t,r);d.push(g),g=Q(g,l,t.length,o,a,e,t);for(var k=0;k<g.length;k++){var S=g[k];if(null!==S&&k>h&&k<f){i.beginPath(),i.setFillStyle(S.color||n.color);w=S.x-S.width/2+1,_=e.height-S.y-e.area[2];var D=e.height-S.y0-e.area[2];o>0&&(_-=D),i.moveTo(w,S.y),i.fillRect(w,S.y,S.width-2,_),i.closePath(),i.fill()}}break;case"meter":g=at(b,p,x,s,l,e,a,r);if(d.push(g),g=K(g,l,t.length,o,a,e,c.meter.border),0==o)for(var A=0;A<g.length;A++){var T=g[A];if(null!==T&&A>h&&A<f){i.beginPath(),i.setFillStyle(c.meter.fillColor);w=T.x-T.width/2,_=e.height-T.y-e.area[2];i.moveTo(w,T.y),i.fillRect(w,T.y,T.width,_),i.closePath(),i.fill(),c.meter.border>0&&(i.beginPath(),i.setStrokeStyle(n.color),i.setLineWidth(c.meter.border*e.pixelRatio),i.moveTo(w+.5*c.meter.border,T.y+_),i.lineTo(w+.5*c.meter.border,T.y+.5*c.meter.border),i.lineTo(w+T.width-.5*c.meter.border,T.y+.5*c.meter.border),i.lineTo(w+T.width-.5*c.meter.border,T.y+_),i.stroke())}}else for(var P=0;P<g.length;P++){var M=g[P];if(null!==M&&P>h&&P<f){i.beginPath(),i.setFillStyle(M.color||n.color);w=M.x-M.width/2,_=e.height-M.y-e.area[2];i.moveTo(w,M.y),i.fillRect(w,M.y,M.width,_),i.closePath(),i.fill()}}break}})),!1!==e.dataLabel&&1===r&&t.forEach((function(n,o){var d,h,f;d=[].concat(e.chartData.yAxisData.ranges[n.index]),h=d.pop(),f=d.shift();var u=n.data;switch(c.type){case"group":var p=at(u,h,f,s,l,e,a,r);p=V(p,l,t.length,o,a,e),ht(p,n,a,i);break;case"stack":p=it(u,h,f,s,l,e,a,o,t,r);ht(p,n,a,i);break;case"meter":p=at(u,h,f,s,l,e,a,r);ht(p,n,a,i);break}})),i.restore(),{xAxisPoints:s,calPoints:d,eachSpacing:l}}function wt(t,e,a,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,s=n({},{color:{},average:{}},a.extra.candle);s.color=n({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},s.color),s.average=n({},{show:!1,name:[],day:[],color:i.colors},s.average),a.extra.candle=s;var l=a.chartData.xAxisData,c=l.xAxisPoints,d=l.eachSpacing,h=[];r.save();var u=-2,p=c.length+2,x=0,b=a.width+d;return a._scrollDistance_&&0!==a._scrollDistance_&&!0===a.enableScroll&&(r.translate(a._scrollDistance_,0),u=Math.floor(-a._scrollDistance_/d)-2,p=u+a.xAxis.itemCount+4,x=-a._scrollDistance_-d+a.area[3],b=x+(a.xAxis.itemCount+4)*d),s.average.show&&e.forEach((function(t,e){var n,s,l;n=[].concat(a.chartData.yAxisData.ranges[t.index]),s=n.pop(),l=n.shift();for(var h=t.data,u=at(h,s,l,c,d,a,i,o),p=W(u),g=0;g<p.length;g++){var v=p[g];if(r.beginPath(),r.setStrokeStyle(t.color),r.setLineWidth(1),1===v.length)r.moveTo(v[0].x,v[0].y),r.arc(v[0].x,v[0].y,1,0,2*Math.PI);else{r.moveTo(v[0].x,v[0].y);for(var y=0,m=0;m<v.length;m++){var w=v[m];if(0==y&&w.x>x&&(r.moveTo(w.x,w.y),y=1),m>0&&w.x>x&&w.x<b){var _=f(v,m-1);r.bezierCurveTo(_.ctrA.x,_.ctrA.y,_.ctrB.x,_.ctrB.y,w.x,w.y)}}r.moveTo(v[0].x,v[0].y)}r.closePath(),r.stroke()}})),t.forEach((function(t,e){var n,l,f;n=[].concat(a.chartData.yAxisData.ranges[t.index]),l=n.pop(),f=n.shift();var x=t.data,b=et(x,l,f,c,d,a,i,o);h.push(b);for(var g=W(b),v=0;v<g[0].length;v++)if(v>u&&v<p){var y=g[0][v];r.beginPath(),x[v][1]-x[v][0]>0?(r.setStrokeStyle(s.color.upLine),r.setFillStyle(s.color.upFill),r.setLineWidth(1*a.pixelRatio),r.moveTo(y[3].x,y[3].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[1].x-d/4,y[1].y),r.lineTo(y[0].x-d/4,y[0].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[2].x,y[2].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[0].x+d/4,y[0].y),r.lineTo(y[1].x+d/4,y[1].y),r.lineTo(y[1].x,y[1].y),r.moveTo(y[3].x,y[3].y)):(r.setStrokeStyle(s.color.downLine),r.setFillStyle(s.color.downFill),r.setLineWidth(1*a.pixelRatio),r.moveTo(y[3].x,y[3].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[0].x-d/4,y[0].y),r.lineTo(y[1].x-d/4,y[1].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[2].x,y[2].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[1].x+d/4,y[1].y),r.lineTo(y[0].x+d/4,y[0].y),r.lineTo(y[0].x,y[0].y),r.moveTo(y[3].x,y[3].y)),r.closePath(),r.fill(),r.stroke()}})),r.restore(),{xAxisPoints:c,calPoints:h,eachSpacing:d}}function _t(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=n({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},e.extra.area),l=e.chartData.xAxisData,c=l.xAxisPoints,d=l.eachSpacing,h=e.height-e.area[2],u=[];i.save();var p=0,x=e.width+d;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),p=-e._scrollDistance_-d+e.area[3],x=p+(e.xAxis.itemCount+4)*d),t.forEach((function(t,n){var l,b,g;l=[].concat(e.chartData.yAxisData.ranges[t.index]),b=l.pop(),g=l.shift();var v=t.data,y=at(v,b,g,c,d,e,a,r);u.push(y);for(var m=W(y),w=0;w<m.length;w++){var _=m[w];if(i.beginPath(),i.setStrokeStyle(o(t.color,s.opacity)),s.gradient){var k=i.createLinearGradient(0,e.area[0],0,e.height-e.area[2]);k.addColorStop("0",o(t.color,s.opacity)),k.addColorStop("1.0",o("#FFFFFF",.1)),i.setFillStyle(k)}else i.setFillStyle(o(t.color,s.opacity));if(i.setLineWidth(s.width*e.pixelRatio),_.length>1){var S=_[0],D=_[_.length-1];i.moveTo(S.x,S.y);var A=0;if("curve"===s.type)for(var T=0;T<_.length;T++){var P=_[T];if(0==A&&P.x>p&&(i.moveTo(P.x,P.y),A=1),T>0&&P.x>p&&P.x<x){var M=f(_,T-1);i.bezierCurveTo(M.ctrA.x,M.ctrA.y,M.ctrB.x,M.ctrB.y,P.x,P.y)}}else for(var C=0;C<_.length;C++){var L=_[C];0==A&&L.x>p&&(i.moveTo(L.x,L.y),A=1),C>0&&L.x>p&&L.x<x&&i.lineTo(L.x,L.y)}i.lineTo(D.x,h),i.lineTo(S.x,h),i.lineTo(S.x,S.y)}else{var F=_[0];i.moveTo(F.x-d/2,F.y),i.lineTo(F.x+d/2,F.y),i.lineTo(F.x+d/2,h),i.lineTo(F.x-d/2,h),i.moveTo(F.x-d/2,F.y)}if(i.closePath(),i.fill(),s.addLine){if("dash"==t.lineType){var R=t.dashLength?t.dashLength:8;R*=e.pixelRatio,i.setLineDash([R,R])}if(i.beginPath(),i.setStrokeStyle(t.color),i.setLineWidth(s.width*e.pixelRatio),1===_.length)i.moveTo(_[0].x,_[0].y),i.arc(_[0].x,_[0].y,1,0,2*Math.PI);else{i.moveTo(_[0].x,_[0].y);var I=0;if("curve"===s.type)for(var z=0;z<_.length;z++){var E=_[z];if(0==I&&E.x>p&&(i.moveTo(E.x,E.y),I=1),z>0&&E.x>p&&E.x<x){var O=f(_,z-1);i.bezierCurveTo(O.ctrA.x,O.ctrA.y,O.ctrB.x,O.ctrB.y,E.x,E.y)}}else for(var B=0;B<_.length;B++){var N=_[B];0==I&&N.x>p&&(i.moveTo(N.x,N.y),I=1),B>0&&N.x>p&&N.x<x&&i.lineTo(N.x,N.y)}i.moveTo(_[0].x,_[0].y)}i.stroke(),i.setLineDash([])}}!1!==e.dataPointShape&&ct(y,t.color,t.pointShape,i,e)})),!1!==e.dataLabel&&1===r&&t.forEach((function(t,n){var o,s,l;o=[].concat(e.chartData.yAxisData.ranges[t.index]),s=o.pop(),l=o.shift();var h=t.data,f=at(h,s,l,c,d,e,a,r);ht(f,t,a,i)})),i.restore(),{xAxisPoints:c,calPoints:u,eachSpacing:d}}function kt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=n({},{type:"straight",width:2},e.extra.line);o.width*=e.pixelRatio;var s=e.chartData.xAxisData,l=s.xAxisPoints,c=s.eachSpacing,d=[];i.save();var h=0,u=e.width+c;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),h=-e._scrollDistance_-c+e.area[3],u=h+(e.xAxis.itemCount+4)*c),t.forEach((function(t,n){var s,p,x;s=[].concat(e.chartData.yAxisData.ranges[t.index]),p=s.pop(),x=s.shift();var b=t.data,g=at(b,p,x,l,c,e,a,r);d.push(g);var v=W(g);if("dash"==t.lineType){var y=t.dashLength?t.dashLength:8;y*=e.pixelRatio,i.setLineDash([y,y])}i.beginPath(),i.setStrokeStyle(t.color),i.setLineWidth(o.width),v.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"===o.type)for(var n=0;n<t.length;n++){var r=t[n];if(0==a&&r.x>h&&(i.moveTo(r.x,r.y),a=1),n>0&&r.x>h&&r.x<u){var s=f(t,n-1);i.bezierCurveTo(s.ctrA.x,s.ctrA.y,s.ctrB.x,s.ctrB.y,r.x,r.y)}}else for(var l=0;l<t.length;l++){var c=t[l];0==a&&c.x>h&&(i.moveTo(c.x,c.y),a=1),l>0&&c.x>h&&c.x<u&&i.lineTo(c.x,c.y)}i.moveTo(t[0].x,t[0].y)}})),i.stroke(),i.setLineDash([]),!1!==e.dataPointShape&&ct(g,t.color,t.pointShape,i,e)})),!1!==e.dataLabel&&1===r&&t.forEach((function(t,n){var o,s,d;o=[].concat(e.chartData.yAxisData.ranges[t.index]),s=o.pop(),d=o.shift();var h=t.data,f=at(h,s,d,l,c,e,a,r);ht(f,t,a,i)})),i.restore(),{xAxisPoints:l,calPoints:d,eachSpacing:c}}function St(t,e,a,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=e.chartData.xAxisData,s=r.xAxisPoints,l=r.eachSpacing,c=e.height-e.area[2],d=[],h=0,u=0;t.forEach((function(t,e){"column"==t.type&&(u+=1)})),i.save();var p=-2,x=s.length+2,b=0,g=e.width+l;if(e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),p=Math.floor(-e._scrollDistance_/l)-2,x=p+e.xAxis.itemCount+4,b=-e._scrollDistance_-l+e.area[3],g=b+(e.xAxis.itemCount+4)*l),t.forEach((function(t,r){var v,y,m;v=[].concat(e.chartData.yAxisData.ranges[t.index]),y=v.pop(),m=v.shift();var w=t.data,_=at(w,y,m,s,l,e,a,n);if(d.push(_),"column"==t.type){_=V(_,l,u,h,a,e);for(var k=0;k<_.length;k++){var S=_[k];if(null!==S&&k>p&&k<x){i.beginPath(),i.setStrokeStyle(S.color||t.color),i.setLineWidth(1),i.setFillStyle(S.color||t.color);var D=S.x-S.width/2;e.height,S.y,e.area[2];i.moveTo(D,S.y),i.moveTo(D,S.y),i.lineTo(D+S.width-2,S.y),i.lineTo(D+S.width-2,e.height-e.area[2]),i.lineTo(D,e.height-e.area[2]),i.lineTo(D,S.y),i.closePath(),i.stroke(),i.fill(),i.closePath(),i.fill()}}h+=1}if("area"==t.type)for(var A=W(_),T=0;T<A.length;T++){var P=A[T];if(i.beginPath(),i.setStrokeStyle(t.color),i.setFillStyle(o(t.color,.2)),i.setLineWidth(2*e.pixelRatio),P.length>1){var M=P[0],C=P[P.length-1];i.moveTo(M.x,M.y);var L=0;if("curve"===t.style)for(var F=0;F<P.length;F++){var R=P[F];if(0==L&&R.x>b&&(i.moveTo(R.x,R.y),L=1),F>0&&R.x>b&&R.x<g){var I=f(P,F-1);i.bezierCurveTo(I.ctrA.x,I.ctrA.y,I.ctrB.x,I.ctrB.y,R.x,R.y)}}else for(var z=0;z<P.length;z++){var E=P[z];0==L&&E.x>b&&(i.moveTo(E.x,E.y),L=1),z>0&&E.x>b&&E.x<g&&i.lineTo(E.x,E.y)}i.lineTo(C.x,c),i.lineTo(M.x,c),i.lineTo(M.x,M.y)}else{var O=P[0];i.moveTo(O.x-l/2,O.y),i.lineTo(O.x+l/2,O.y),i.lineTo(O.x+l/2,c),i.lineTo(O.x-l/2,c),i.moveTo(O.x-l/2,O.y)}i.closePath(),i.fill()}if("line"==t.type){var B=W(_);B.forEach((function(a,n){if("dash"==t.lineType){var r=t.dashLength?t.dashLength:8;r*=e.pixelRatio,i.setLineDash([r,r])}if(i.beginPath(),i.setStrokeStyle(t.color),i.setLineWidth(2*e.pixelRatio),1===a.length)i.moveTo(a[0].x,a[0].y),i.arc(a[0].x,a[0].y,1,0,2*Math.PI);else{i.moveTo(a[0].x,a[0].y);var o=0;if("curve"==t.style)for(var s=0;s<a.length;s++){var l=a[s];if(0==o&&l.x>b&&(i.moveTo(l.x,l.y),o=1),s>0&&l.x>b&&l.x<g){var c=f(a,s-1);i.bezierCurveTo(c.ctrA.x,c.ctrA.y,c.ctrB.x,c.ctrB.y,l.x,l.y)}}else for(var d=0;d<a.length;d++){var h=a[d];0==o&&h.x>b&&(i.moveTo(h.x,h.y),o=1),d>0&&h.x>b&&h.x<g&&i.lineTo(h.x,h.y)}i.moveTo(a[0].x,a[0].y)}i.stroke(),i.setLineDash([])}))}"point"==t.type&&(t.addPoint=!0),1==t.addPoint&&"column"!==t.type&&ct(_,t.color,t.pointShape,i,e)})),!1!==e.dataLabel&&1===n){h=0;t.forEach((function(t,r){var o,c,d;o=[].concat(e.chartData.yAxisData.ranges[t.index]),c=o.pop(),d=o.shift();var f=t.data,p=at(f,c,d,s,l,e,a,n);"column"!==t.type?ht(p,t,a,i):(p=V(p,l,u,h,a,e),ht(p,t,a,i),h+=1)}))}return i.restore(),{xAxisPoints:s,calPoints:d,eachSpacing:l}}function Dt(t,e,a,i,n,r){var o=t.extra.tooltip||{};o.horizentalLine&&t.tooltip&&1===i&&("line"==t.type||"area"==t.type||"column"==t.type||"candle"==t.type||"mix"==t.type)&&gt(t,e,a,n,r),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&&yt(t.tooltip.textList,t.tooltip.offset,t,e,a,n,r),a.restore()}function At(t,e,a,i){var n=e.chartData.xAxisData,r=n.xAxisPoints,o=n.startX,s=n.endX,l=n.eachSpacing,c="center";"line"!=e.type&&"area"!=e.type||(c=e.xAxis.boundaryGap);var d=e.height-e.area[2],f=e.area[0];if(e.enableScroll&&e.xAxis.scrollShow){var u=e.height-e.area[2]+a.xAxisHeight,p=s-o,x=l*(r.length-1),b=p*p/x,v=0;e._scrollDistance_&&(v=-e._scrollDistance_*p/x),i.beginPath(),i.setLineCap("round"),i.setLineWidth(6*e.pixelRatio),i.setStrokeStyle(e.xAxis.scrollBackgroundColor||"#EFEBEF"),i.moveTo(o,u),i.lineTo(s,u),i.stroke(),i.closePath(),i.beginPath(),i.setLineCap("round"),i.setLineWidth(6*e.pixelRatio),i.setStrokeStyle(e.xAxis.scrollColor||"#A6A6A6"),i.moveTo(o+v,u),i.lineTo(o+v+b,u),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-l/2,d),i.lineTo(t-l/2,d+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,d),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 m=Math.ceil(t.length/y),w=[],_=t.length,k=0;k<_;k++)k%m!==0?w.push(""):w.push(t[k]);w[_-1]=t[_-1];var S=e.xAxis.fontSize||a.fontSize;0===a._xAxisTextAngle_?w.forEach((function(t,n){var o=-g(String(t),S)/2;"center"==c&&(o+=l/2);var s=0;e.xAxis.scrollShow&&(s=6*e.pixelRatio),i.beginPath(),i.setFontSize(S),i.setFillStyle(e.xAxis.fontColor||"#666666"),i.fillText(String(t),r[n]+o,d+S+(a.xAxisHeight-s-S)/2),i.closePath(),i.stroke()})):w.forEach((function(t,n){i.save(),i.beginPath(),i.setFontSize(S),i.setFillStyle(e.xAxis.fontColor||"#666666");var o=g(String(t),S),s=-o;"center"==c&&(s+=l/2);var f=h(r[n]+l/2,d+S/2+5,e.height),u=f.transX,p=f.transY;i.rotate(-1*a._xAxisTextAngle_),i.translate(u,p),i.fillText(String(t),r[n]+s,d+S+5),i.closePath(),i.stroke(),i.restore()}))}i.restore(),e.xAxis.axisLine&&(i.beginPath(),i.setStrokeStyle(e.xAxis.axisLineColor),i.setLineWidth(1*e.pixelRatio),i.moveTo(o,e.height-e.area[2]),i.lineTo(s,e.height-e.area[2]),i.stroke())}function Tt(t,e,a,i){if(!0!==e.yAxis.disableGrid){for(var n=e.height-e.area[0]-e.area[2],r=n/e.yAxis.splitNumber,o=e.area[3],s=e.chartData.xAxisData.xAxisPoints,l=e.chartData.xAxisData.eachSpacing,c=l*(s.length-1),d=o+c,h=[],f=0;f<e.yAxis.splitNumber+1;f++)h.push(e.height-e.area[2]-r*f);i.save(),e._scrollDistance_&&0!==e._scrollDistance_&&i.translate(e._scrollDistance_,0),"dash"==e.yAxis.gridType&&i.setLineDash([e.yAxis.dashLength,e.yAxis.dashLength]),i.setStrokeStyle(e.yAxis.gridColor),i.setLineWidth(1*e.pixelRatio),h.forEach((function(t,e){i.beginPath(),i.moveTo(o,t),i.lineTo(d,t),i.stroke()})),i.setLineDash([]),i.restore()}}function Pt(t,e,a,i){if(!0!==e.yAxis.disabled){var n=e.height-e.area[0]-e.area[2],r=n/e.yAxis.splitNumber,o=e.area[3],s=e.width-e.area[1],l=e.height-e.area[2],c=l+a.xAxisHeight;e.xAxis.scrollShow&&(c-=3*e.pixelRatio),e.xAxis.rotateLabel&&(c=e.height-e.area[2]+3),i.beginPath(),i.setFillStyle(e.background||"#ffffff"),e._scrollDistance_<0&&i.fillRect(0,0,o,c),1==e.enableScroll&&i.fillRect(s,0,e.width,c),i.closePath(),i.stroke();for(var d=[],h=0;h<=e.yAxis.splitNumber;h++)d.push(e.area[0]+r*h);for(var f=e.area[3],u=e.width-e.area[1],p=function(t){var n=e.yAxis.data[t];if(!0!==n.disabled){var r=e.chartData.yAxisData.rangesFormat[t],o=n.fontSize||a.fontSize,s=e.chartData.yAxisData.yAxisWidth[t];if(r.forEach((function(t,a){var r=d[a]?d[a]:l;i.beginPath(),i.setFontSize(o),i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(n.axisLineColor||"#cccccc"),i.setFillStyle(n.fontColor||"#666666"),"left"==s.position?(i.fillText(String(t),f-s.width,r+o/2),1==n.calibration&&(i.moveTo(f,r),i.lineTo(f-3*e.pixelRatio,r))):(i.fillText(String(t),u+4*e.pixelRatio,r+o/2),1==n.calibration&&(i.moveTo(u,r),i.lineTo(u+3*e.pixelRatio,r))),i.closePath(),i.stroke()})),!1!==n.axisLine&&(i.beginPath(),i.setStrokeStyle(n.axisLineColor||"#cccccc"),i.setLineWidth(1*e.pixelRatio),"left"==s.position?(i.moveTo(f,e.height-e.area[2]),i.lineTo(f,e.area[0])):(i.moveTo(u,e.height-e.area[2]),i.lineTo(u,e.area[0])),i.stroke()),e.yAxis.showTitle){var c=n.titleFontSize||a.fontSize,h=n.title;i.beginPath(),i.setFontSize(c),i.setFillStyle(n.titleFontColor||"#666666"),"left"==s.position?i.fillText(h,f-g(h,c)/2,e.area[0]-10*e.pixelRatio):i.fillText(h,u-g(h,c)/2,e.area[0]-10*e.pixelRatio),i.closePath(),i.stroke()}"left"==s.position?f-=s.width+e.yAxis.padding:u+=s.width+e.yAxis.padding}},x=0;x<e.yAxis.data.length;x++)p(x)}}function Mt(t,e,a,i,n){if(!1!==e.legend.show){var r=n.legendData,o=r.points,s=r.area,l=e.legend.padding,c=e.legend.fontSize,d=15*e.pixelRatio,h=5*e.pixelRatio,f=e.legend.itemGap,u=Math.max(e.legend.lineHeight*e.pixelRatio,c);i.beginPath(),i.setLineWidth(e.legend.borderWidth),i.setStrokeStyle(e.legend.borderColor),i.setFillStyle(e.legend.backgroundColor),i.moveTo(s.start.x,s.start.y),i.rect(s.start.x,s.start.y,s.width,s.height),i.closePath(),i.fill(),i.stroke(),o.forEach((function(t,n){var o=0,p=0;o=r.widthArr[n],p=r.heightArr[n];var x=0,b=0;"top"==e.legend.position||"bottom"==e.legend.position?(x=s.start.x+(s.width-o)/2,b=s.start.y+l+n*u):(o=0==n?0:r.widthArr[n-1],x=s.start.x+l+o,b=s.start.y+l+(s.height-p)/2),i.setFontSize(a.fontSize);for(var v=0;v<t.length;v++){var y=t[v];switch(y.area=[0,0,0,0],y.area[0]=x,y.area[1]=b,y.area[3]=b+u,i.beginPath(),i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(y.show?y.color:e.legend.hiddenColor),i.setFillStyle(y.show?y.color:e.legend.hiddenColor),y.legendShape){case"line":i.moveTo(x,b+.5*u-2*e.pixelRatio),i.fillRect(x,b+.5*u-2*e.pixelRatio,15*e.pixelRatio,4*e.pixelRatio);break;case"triangle":i.moveTo(x+7.5*e.pixelRatio,b+.5*u-5*e.pixelRatio),i.lineTo(x+2.5*e.pixelRatio,b+.5*u+5*e.pixelRatio),i.lineTo(x+12.5*e.pixelRatio,b+.5*u+5*e.pixelRatio),i.lineTo(x+7.5*e.pixelRatio,b+.5*u-5*e.pixelRatio);break;case"diamond":i.moveTo(x+7.5*e.pixelRatio,b+.5*u-5*e.pixelRatio),i.lineTo(x+2.5*e.pixelRatio,b+.5*u),i.lineTo(x+7.5*e.pixelRatio,b+.5*u+5*e.pixelRatio),i.lineTo(x+12.5*e.pixelRatio,b+.5*u),i.lineTo(x+7.5*e.pixelRatio,b+.5*u-5*e.pixelRatio);break;case"circle":i.moveTo(x+7.5*e.pixelRatio,b+.5*u),i.arc(x+7.5*e.pixelRatio,b+.5*u,5*e.pixelRatio,0,2*Math.PI);break;case"rect":i.moveTo(x,b+.5*u-5*e.pixelRatio),i.fillRect(x,b+.5*u-5*e.pixelRatio,15*e.pixelRatio,10*e.pixelRatio);break;default:i.moveTo(x,b+.5*u-5*e.pixelRatio),i.fillRect(x,b+.5*u-5*e.pixelRatio,15*e.pixelRatio,10*e.pixelRatio)}i.closePath(),i.fill(),i.stroke(),x+=d+h;var m=.5*u+.5*c-2;i.beginPath(),i.setFontSize(c),i.setFillStyle(y.show?e.legend.fontColor:e.legend.hiddenColor),i.fillText(y.name,x,b+m),i.closePath(),i.stroke(),"top"==e.legend.position||"bottom"==e.legend.position?(x+=g(y.name,c)+f,y.area[2]=x):(y.area[2]=x+g(y.name,c)+f,x-=d+h,b+=u)}}))}}function Ct(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=n({},{activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,ringWidth:0,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.pie),l={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=s.activeRadius);var c=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=G(t,c,r);var d=s.activeRadius;if(t=t.map((function(t){return t._start_+=s.offsetAngle*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(i.beginPath(),i.setFillStyle(o(t.color,e.extra.pie.activeOpacity||.5)),i.moveTo(l.x,l.y),i.arc(l.x,l.y,t._radius_+d,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(s.borderWidth*e.pixelRatio),i.lineJoin="round",i.setStrokeStyle(s.borderColor),i.setFillStyle(t.color),i.moveTo(l.x,l.y),i.arc(l.x,l.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill(),1==s.border&&i.stroke()})),"ring"===e.type){var h=.6*c;"number"===typeof e.extra.pie.ringWidth&&e.extra.pie.ringWidth>0&&(h=Math.max(0,c-e.extra.pie.ringWidth)),i.beginPath(),i.setFillStyle(e.background||"#ffffff"),i.moveTo(l.x,l.y),i.arc(l.x,l.y,h,0,2*Math.PI),i.closePath(),i.fill()}if(!1!==e.dataLabel&&1===r){for(var f=!1,u=0,p=t.length;u<p;u++)if(t[u].data>0){f=!0;break}f&&pt(t,e,a,i,c,l)}return 1===r&&"ring"===e.type&&dt(e,a,i,l),{center:l,radius:c,series:t}}function Lt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=n({},{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=s.activeRadius);var l={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((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),d=s.minRadius||.5*c;t=X(t,s.type,d,c,r);var h=s.activeRadius;if(t=t.map((function(t){return t._start_+=(s.offsetAngle||0)*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(i.beginPath(),i.setFillStyle(o(t.color,s.activeOpacity||.5)),i.moveTo(l.x,l.y),i.arc(l.x,l.y,h+t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(s.borderWidth*e.pixelRatio),i.lineJoin="round",i.setStrokeStyle(s.borderColor),i.setFillStyle(t.color),i.moveTo(l.x,l.y),i.arc(l.x,l.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill(),1==s.border&&i.stroke()})),!1!==e.dataLabel&&1===r){for(var f=!1,u=0,p=t.length;u<p;u++)if(t[u].data>0){f=!0;break}f&&pt(t,e,a,i,c,l)}return{center:l,radius:c,series:t}}function Ft(t,e,a,i){var r,o,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=n({},{startAngle:.75,endAngle:.25,type:"default",width:12*e.pixelRatio,gap:2*e.pixelRatio},e.extra.arcbar);t=Z(t,l,s),r=l.center?l.center:{x:e.width/2,y:e.height/2},l.radius?o=l.radius:(o=Math.min(r.x,r.y),o-=5*e.pixelRatio,o-=l.width/2);for(var c=0;c<t.length;c++){var d=t[c];i.setLineWidth(l.width),i.setStrokeStyle(l.backgroundColor||"#E9E9E9"),i.setLineCap("round"),i.beginPath(),"default"==l.type?i.arc(r.x,r.y,o-(l.width+l.gap)*c,l.startAngle*Math.PI,l.endAngle*Math.PI,!1):i.arc(r.x,r.y,o-(l.width+l.gap)*c,0,2*Math.PI,!1),i.stroke(),i.setLineWidth(l.width),i.setStrokeStyle(d.color),i.setLineCap("round"),i.beginPath(),i.arc(r.x,r.y,o-(l.width+l.gap)*c,l.startAngle*Math.PI,d._proportion_*Math.PI,!1),i.stroke()}return dt(e,a,i,r),{center:r,radius:o,series:t}}function Rt(t,e,a,i,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,l=n({},{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==l.oldAngle&&(l.oldAngle=l.startAngle),void 0==l.oldData&&(l.oldData=0),t=q(t,l.startAngle,l.endAngle);var c={x:a.width/2,y:a.height/2},d=Math.min(c.x,c.y);d-=5*a.pixelRatio,d-=l.width/2;var h=d-l.width,f=0;if("progress"==l.type){var u=d-3*l.width;r.beginPath();var p=r.createLinearGradient(c.x,c.y-u,c.x,c.y+u);p.addColorStop("0",o(e[0].color,.3)),p.addColorStop("1.0",o("#FFFFFF",.1)),r.setFillStyle(p),r.arc(c.x,c.y,u,0,2*Math.PI,!1),r.fill(),r.setLineWidth(l.width),r.setStrokeStyle(o(e[0].color,.3)),r.setLineCap("round"),r.beginPath(),r.arc(c.x,c.y,h,l.startAngle*Math.PI,l.endAngle*Math.PI,!1),r.stroke(),f=l.startAngle-l.endAngle+1;l.splitLine.splitNumber;var x=f/l.splitLine.splitNumber/l.splitLine.childNumber,b=-d-.5*l.width-l.splitLine.fixRadius,g=-d-l.width-l.splitLine.fixRadius+l.splitLine.width;r.save(),r.translate(c.x,c.y),r.rotate((l.startAngle-1)*Math.PI);for(var v=l.splitLine.splitNumber*l.splitLine.childNumber+1,y=e[0].data*s,m=0;m<v;m++)r.beginPath(),y>m/v?r.setStrokeStyle(o(e[0].color,1)):r.setStrokeStyle(o(e[0].color,.3)),r.setLineWidth(3*a.pixelRatio),r.moveTo(b,0),r.lineTo(g,0),r.stroke(),r.rotate(x*Math.PI);r.restore(),e=Z(e,l,s),r.setLineWidth(l.width),r.setStrokeStyle(e[0].color),r.setLineCap("round"),r.beginPath(),r.arc(c.x,c.y,h,l.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),r.stroke();var w=d-2.5*l.width;r.save(),r.translate(c.x,c.y),r.rotate((e[0]._proportion_-1)*Math.PI),r.beginPath(),r.setLineWidth(l.width/3);var _=r.createLinearGradient(0,.6*-w,0,.6*w);_.addColorStop("0",o("#FFFFFF",0)),_.addColorStop("0.5",o(e[0].color,1)),_.addColorStop("1.0",o("#FFFFFF",0)),r.setStrokeStyle(_),r.arc(0,0,w,.85*Math.PI,1.15*Math.PI,!1),r.stroke(),r.beginPath(),r.setLineWidth(1),r.setStrokeStyle(e[0].color),r.setFillStyle(e[0].color),r.moveTo(-w-l.width/3/2,-4),r.lineTo(-w-l.width/3/2-4,0),r.lineTo(-w-l.width/3/2,4),r.lineTo(-w-l.width/3/2,-4),r.stroke(),r.fill(),r.restore()}else{r.setLineWidth(l.width),r.setLineCap("butt");for(var k=0;k<t.length;k++){var S=t[k];r.beginPath(),r.setStrokeStyle(S.color),r.arc(c.x,c.y,d,S._startAngle_*Math.PI,S._endAngle_*Math.PI,!1),r.stroke()}r.save(),f=l.startAngle-l.endAngle+1;var D=f/l.splitLine.splitNumber,A=f/l.splitLine.splitNumber/l.splitLine.childNumber,T=-d-.5*l.width-l.splitLine.fixRadius,P=-d-.5*l.width-l.splitLine.fixRadius+l.splitLine.width,M=-d-.5*l.width-l.splitLine.fixRadius+l.splitLine.childWidth;r.translate(c.x,c.y),r.rotate((l.startAngle-1)*Math.PI);for(var C=0;C<l.splitLine.splitNumber+1;C++)r.beginPath(),r.setStrokeStyle(l.splitLine.color),r.setLineWidth(2*a.pixelRatio),r.moveTo(T,0),r.lineTo(P,0),r.stroke(),r.rotate(D*Math.PI);r.restore(),r.save(),r.translate(c.x,c.y),r.rotate((l.startAngle-1)*Math.PI);for(var L=0;L<l.splitLine.splitNumber*l.splitLine.childNumber+1;L++)r.beginPath(),r.setStrokeStyle(l.splitLine.color),r.setLineWidth(1*a.pixelRatio),r.moveTo(T,0),r.lineTo(M,0),r.stroke(),r.rotate(A*Math.PI);r.restore(),e=U(e,t,l,s);for(var F=0;F<e.length;F++){var R=e[F];r.save(),r.translate(c.x,c.y),r.rotate((R._proportion_-1)*Math.PI),r.beginPath(),r.setFillStyle(R.color),r.moveTo(l.pointer.width,0),r.lineTo(0,-l.pointer.width/2),r.lineTo(-h,0),r.lineTo(0,l.pointer.width/2),r.lineTo(l.pointer.width,0),r.closePath(),r.fill(),r.beginPath(),r.setFillStyle("#FFFFFF"),r.arc(0,0,l.pointer.width/6,0,2*Math.PI,!1),r.fill(),r.restore()}!1!==a.dataLabel&&ft(l,d,c,a,i,r)}return dt(a,i,r,c),1===s&&"gauge"===a.type&&(a.extra.gauge.oldAngle=e[0]._proportion_,a.extra.gauge.oldData=e[0].data),{center:c,radius:d,innerRadius:h,categories:t,totalAngle:f}}function It(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=n({},{gridColor:"#cccccc",labelColor:"#666666",opacity:.2,gridCount:3},e.extra.radar),l=k(e.categories.length),c={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},d=Math.min(c.x-(_(e.categories)+a.radarLabelTextMargin),c.y-a.radarLabelTextMargin);d-=e.padding[1],i.beginPath(),i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(s.gridColor),l.forEach((function(t){var e=u(d*Math.cos(t),d*Math.sin(t),c);i.moveTo(c.x,c.y),i.lineTo(e.x,e.y)})),i.stroke(),i.closePath();for(var h=function(t){var a={};i.beginPath(),i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(s.gridColor),l.forEach((function(e,n){var r=u(d/s.gridCount*t*Math.cos(e),d/s.gridCount*t*Math.sin(e),c);0===n?(a=r,i.moveTo(r.x,r.y)):i.lineTo(r.x,r.y)})),i.lineTo(a.x,a.y),i.stroke(),i.closePath()},f=1;f<=s.gridCount;f++)h(f);var p=H(l,c,d,t,e,r);return p.forEach((function(t,a){if(i.beginPath(),i.setFillStyle(o(t.color,s.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 n=t.data.map((function(t){return t.position}));ct(n,t.color,t.pointShape,i,e)}})),ut(l,d,c,e,a,i),{center:c,radius:d,angleList:l}}function zt(t,e,a){a=0==a?1:a;for(var i=[],n=0;n<a;n++)i[n]=Math.random();return Math.floor(i.reduce((function(t,e){return t+e}))/a*(e-t))+t}function Et(t,e,a,i){for(var n=!1,r=0;r<e.length;r++)if(e[r].area){if(!(t[3]<e[r].area[1]||t[0]>e[r].area[2]||t[1]>e[r].area[3]||t[2]<e[r].area[0])){n=!0;break}if(t[0]<0||t[1]<0||t[2]>a||t[3]>i){n=!0;break}n=!1}return n}function Ot(t){var e,a={};a.xMin=180,a.xMax=0,a.yMin=90,a.yMax=0;for(var i=0;i<t.length;i++)for(var n=t[i].geometry.coordinates,r=0;r<n.length;r++){e=n[r],1==e.length&&(e=e[0]);for(var o=0;o<e.length;o++){var s=e[o][0],l=e[o][1],c={x:s,y:l};a.xMin=a.xMin<c.x?a.xMin:c.x,a.xMax=a.xMax>c.x?a.xMax:c.x,a.yMin=a.yMin<c.y?a.yMin:c.y,a.yMax=a.yMax>c.y?a.yMax:c.y}}return a}function Wt(t,e,a,i,n,r){return{x:(e-a.xMin)*i+n,y:(a.yMax-t)*i+r}}function Bt(t,e,a,i,n,r){return{x:(e-n)/i+a.xMin,y:a.yMax-(t-r)/i}}function Nt(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]&&a[1]<t[1])return!1;if(e[1]==t[1]&&a[1]>t[1])return!1;if(a[1]==t[1]&&e[1]>t[1])return!1;if(e[0]<t[0]&&a[1]<t[1])return!1;var i=a[0]-(a[0]-e[0])*(a[1]-t[1])/(a[1]-e[1]);return!(i<t[0])}function jt(t,e){for(var a=0,i=0;i<e.length;i++){var n=e[i][0];1==e.length&&(n=e[i][0]);for(var r=0;r<n.length-1;r++){var o=n[r],s=n[r+1];Nt(t,o,s)&&(a+=1)}}return a%2==1}function $t(t,e,a,i){var r,s,l=n({},{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},e.extra.map),c=t,d=Ot(c),h=e.width/Math.abs(d.xMax-d.xMin),f=e.height/Math.abs(d.yMax-d.yMin),u=h<f?h:f,p=e.width/2-Math.abs(d.xMax-d.xMin)/2*u,x=e.height/2-Math.abs(d.yMax-d.yMin)/2*u;i.beginPath(),i.clearRect(0,0,e.width,e.height),i.setFillStyle(e.background||"#FFFFFF"),i.rect(0,0,e.width,e.height),i.fill();for(var b=0;b<c.length;b++){i.beginPath(),i.setLineWidth(l.borderWidth*e.pixelRatio),i.setStrokeStyle(l.borderColor),i.setFillStyle(o(t[b].color,l.fillOpacity)),e.tooltip&&e.tooltip.index==b&&(i.setStrokeStyle(l.activeBorderColor),i.setFillStyle(o(l.activeFillColor,l.activeFillOpacity)));for(var v=c[b].geometry.coordinates,y=0;y<v.length;y++){r=v[y],1==r.length&&(r=r[0]);for(var m=0;m<r.length;m++)s=Wt(r[m][1],r[m][0],d,u,p,x),0===m?(i.beginPath(),i.moveTo(s.x,s.y)):i.lineTo(s.x,s.y);i.fill(),1==l.border&&i.stroke()}if(1==e.dataLabel){var w=c[b].properties.centroid;if(w){s=Wt(w[1],w[0],d,u,p,x);var _=c[b].textSize||a.fontSize,k=c[b].properties.name;i.beginPath(),i.setFontSize(_),i.setFillStyle(c[b].textColor||"#666666"),i.fillText(k,s.x-g(k,_)/2,s.y+_/2),i.closePath(),i.stroke()}}}e.chartData.mapData={bounds:d,scale:u,xoffset:p,yoffset:x},Dt(e,a,i,1),i.draw()}function Ht(t,e){var a=t.series.sort((function(t,e){return parseInt(e.textSize)-parseInt(t.textSize)}));switch(e){case"normal":for(var i=0;i<a.length;i++){var n=a[i].name,r=a[i].textSize,o=g(n,r),s=void 0,l=void 0,c=void 0,d=0;while(1){d++,s=zt(-t.width/2,t.width/2,5)-o/2,l=zt(-t.height/2,t.height/2,5)+r/2,c=[s-5+t.width/2,l-5-r+t.height/2,s+o+5+t.width/2,l+5+t.height/2];var h=Et(c,a,t.width,t.height);if(!h)break;if(1e3==d){c=[-100,-100,-100,-100];break}}a[i].area=c}break;case"vertical":for(var f=function(){return Math.random()>.7},u=0;u<a.length;u++){var p=a[u].name,x=a[u].textSize,b=g(p,x),v=f(),y=void 0,m=void 0,w=void 0,_=void 0,k=0;while(1){k++;var S=void 0;if(v?(y=zt(-t.width/2,t.width/2,5)-b/2,m=zt(-t.height/2,t.height/2,5)+x/2,w=[m-5-b+t.width/2,-y-5+t.height/2,m+5+t.width/2,-y+x+5+t.height/2],_=[t.width-(t.width/2-t.height/2)-(-y+x+5+t.height/2)-5,t.height/2-t.width/2+(m-5-b+t.width/2)-5,t.width-(t.width/2-t.height/2)-(-y+x+5+t.height/2)+x,t.height/2-t.width/2+(m-5-b+t.width/2)+b+5],S=Et(_,a,t.height,t.width)):(y=zt(-t.width/2,t.width/2,5)-b/2,m=zt(-t.height/2,t.height/2,5)+x/2,w=[y-5+t.width/2,m-5-x+t.height/2,y+b+5+t.width/2,m+5+t.height/2],S=Et(w,a,t.width,t.height)),!S)break;if(1e3==k){w=[-1e3,-1e3,-1e3,-1e3];break}}v?(a[u].area=_,a[u].areav=w):a[u].area=w,a[u].rotate=v}break}return a}function Gt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;n({},{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 o=e.chartData.wordCloudData;i.translate(e.width/2,e.height/2);for(var s=0;s<o.length;s++){i.save(),o[s].rotate&&i.rotate(90*Math.PI/180);var l=o[s].name,c=o[s].textSize,d=g(l,c);i.beginPath(),i.setStrokeStyle(o[s].color),i.setFillStyle(o[s].color),i.setFontSize(c),o[s].rotate?o[s].areav[0]>0&&(e.tooltip&&e.tooltip.index==s?i.strokeText(l,(o[s].areav[0]+5-e.width/2)*r-d*(1-r)/2,(o[s].areav[1]+5+c-e.height/2)*r):i.fillText(l,(o[s].areav[0]+5-e.width/2)*r-d*(1-r)/2,(o[s].areav[1]+5+c-e.height/2)*r)):o[s].area[0]>0&&(e.tooltip&&e.tooltip.index==s?i.strokeText(l,(o[s].area[0]+5-e.width/2)*r-d*(1-r)/2,(o[s].area[1]+5+c-e.height/2)*r):i.fillText(l,(o[s].area[0]+5-e.width/2)*r-d*(1-r)/2,(o[s].area[1]+5+c-e.height/2)*r)),i.stroke(),i.restore()}i.restore()}function Yt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=n({},{activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"},e.extra.funnel),l=(e.height-e.area[0]-e.area[2])/t.length,c={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},d=s.activeWidth,h=Math.min((e.width-e.area[1]-e.area[3])/2-d,(e.height-e.area[0]-e.area[2])/2-d);t=Y(t,h,r),i.save(),i.translate(c.x,c.y);for(var f=0;f<t.length;f++)0==f?(e.tooltip&&e.tooltip.index==f&&(i.beginPath(),i.setFillStyle(o(t[f].color,s.activeOpacity)),i.moveTo(-d,0),i.lineTo(-t[f].radius-d,-l),i.lineTo(t[f].radius+d,-l),i.lineTo(d,0),i.lineTo(-d,0),i.closePath(),i.fill()),t[f].funnelArea=[c.x-t[f].radius,c.y-l,c.x+t[f].radius,c.y],i.beginPath(),i.setLineWidth(s.borderWidth*e.pixelRatio),i.setStrokeStyle(s.borderColor),i.setFillStyle(o(t[f].color,s.fillOpacity)),i.moveTo(0,0),i.lineTo(-t[f].radius,-l),i.lineTo(t[f].radius,-l),i.lineTo(0,0),i.closePath(),i.fill(),1==s.border&&i.stroke()):(e.tooltip&&e.tooltip.index==f&&(i.beginPath(),i.setFillStyle(o(t[f].color,s.activeOpacity)),i.moveTo(0,0),i.lineTo(-t[f-1].radius-d,0),i.lineTo(-t[f].radius-d,-l),i.lineTo(t[f].radius+d,-l),i.lineTo(t[f-1].radius+d,0),i.lineTo(0,0),i.closePath(),i.fill()),t[f].funnelArea=[c.x-t[f].radius,c.y-l*(f+1),c.x+t[f].radius,c.y-l*f],i.beginPath(),i.setLineWidth(s.borderWidth*e.pixelRatio),i.setStrokeStyle(s.borderColor),i.setFillStyle(o(t[f].color,s.fillOpacity)),i.moveTo(0,0),i.lineTo(-t[f-1].radius,0),i.lineTo(-t[f].radius,-l),i.lineTo(t[f].radius,-l),i.lineTo(t[f-1].radius,0),i.lineTo(0,0),i.closePath(),i.fill(),1==s.border&&i.stroke()),i.translate(0,-l);return i.restore(),!1!==e.dataLabel&&1===r&&Xt(t,e,i,l,s.labelAlign,d,c),{center:c,radius:h,series:t}}function Xt(t,e,a,i,n,o,s){for(var l=0;l<t.length;l++){var c=t[l],d=void 0,h=void 0,f=void 0,u=void 0,p=c.format?c.format(+c._proportion_.toFixed(2)):r.toFixed(100*c._proportion_)+"%";"right"==n?(d=0==l?(c.funnelArea[2]+s.x)/2:(c.funnelArea[2]+t[l-1].funnelArea[2])/2,h=d+2*o,f=c.funnelArea[1]+i/2,u=c.textSize||e.fontSize,a.setLineWidth(1*e.pixelRatio),a.setStrokeStyle(c.color),a.setFillStyle(c.color),a.beginPath(),a.moveTo(d,f),a.lineTo(h,f),a.stroke(),a.closePath(),a.beginPath(),a.moveTo(h,f),a.arc(h,f,2,0,2*Math.PI),a.closePath(),a.fill(),a.beginPath(),a.setFontSize(u),a.setFillStyle(c.textColor||"#666666"),a.fillText(p,h+5,f+u/2-2),a.closePath(),a.stroke(),a.closePath()):(d=0==l?(c.funnelArea[0]+s.x)/2:(c.funnelArea[0]+t[l-1].funnelArea[0])/2,h=d-2*o,f=c.funnelArea[1]+i/2,u=c.textSize||e.fontSize,a.setLineWidth(1*e.pixelRatio),a.setStrokeStyle(c.color),a.setFillStyle(c.color),a.beginPath(),a.moveTo(d,f),a.lineTo(h,f),a.stroke(),a.closePath(),a.beginPath(),a.moveTo(h,f),a.arc(h,f,2,0,2*Math.PI),a.closePath(),a.fill(),a.beginPath(),a.setFontSize(u),a.setFillStyle(c.textColor||"#666666"),a.fillText(p,h-5-g(p),f+u/2-2),a.closePath(),a.stroke(),a.closePath())}}function Zt(t,e){e.draw()}var qt={easeIn:function(t){return Math.pow(t,3)},easeOut:function(t){return Math.pow(t-1,3)+1},easeInOut:function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},linear:function(t){return t}};function Ut(t){this.isStop=!1,t.duration="undefined"===typeof t.duration?1e3:t.duration,t.timing=t.timing||"linear";var e=17;function a(){return"undefined"!==typeof setTimeout?function(t,e){setTimeout((function(){var e=+new Date;t(e)}),e)}:"undefined"!==typeof requestAnimationFrame?requestAnimationFrame:function(t){t(null)}}var i=a(),n=null,r=function(a){if(null===a||!0===this.isStop)return t.onProcess&&t.onProcess(1),void(t.onAnimationFinish&&t.onAnimationFinish());if(null===n&&(n=a),a-n<t.duration){var o=(a-n)/t.duration,s=qt[t.timing];o=s(o),t.onProcess&&t.onProcess(o),i(r,e)}else t.onProcess&&t.onProcess(1),t.onAnimationFinish&&t.onAnimationFinish()};r=r.bind(this),i(r,e)}function Jt(t,e,a,i){var r=this,o=e.series,s=e.categories;o=x(o,e,a);var c=e.animation?e.duration:0;r.animationInstance&&r.animationInstance.stop();var d=null;if("candle"==t){var h=n({},e.extra.candle.average);h.show?(d=l(h.day,h.name,h.color,o[0].data),d=x(d,e,a),e.seriesMA=d):d=e.seriesMA?e.seriesMA=x(e.seriesMA,e,a):o}else d=o;e._series_=o=T(o),e.area=new Array(4);for(var f=0;f<4;f++)e.area[f]=e.padding[f];var u=B(d,e,a,e.chartData),p=u.area.wholeHeight,b=u.area.wholeWidth;switch(e.legend.position){case"top":e.area[0]+=p;break;case"bottom":e.area[2]+=p;break;case"left":e.area[3]+=b;break;case"right":e.area[1]+=b;break}var g={},v=0;if("line"===e.type||"column"===e.type||"area"===e.type||"mix"===e.type||"candle"===e.type){if(g=rt(o,e,a),v=g.yAxisWidth,e.yAxis.showTitle){for(var y=0,m=0;m<e.yAxis.data.length;m++)y=Math.max(y,e.yAxis.data[m].titleFontSize?e.yAxis.data[m].titleFontSize:a.fontSize);e.area[0]+=(y+6)*e.pixelRatio}for(var w=0,_=0,k=0;k<v.length;k++)"left"==v[k].position?(e.area[3]+=_>0?v[k].width+e.yAxis.padding:v[k].width,_+=1):(e.area[1]+=w>0?v[k].width+e.yAxis.padding:v[k].width,w+=1)}else a.yAxisWidth=v;if(e.chartData.yAxisData=g,e.categories&&e.categories.length){e.chartData.xAxisData=tt(e.categories,e,a);var S=N(e.categories,e,a,e.chartData.xAxisData.eachSpacing),D=S.xAxisHeight,A=S.angle;a.xAxisHeight=D,a._xAxisTextAngle_=A,e.area[2]+=D,e.chartData.categoriesData=S}else if("line"===e.type||"area"===e.type||"points"===e.type){e.chartData.xAxisData=$(o,e,a),s=e.chartData.xAxisData.rangesFormat;var P=N(s,e,a,e.chartData.xAxisData.eachSpacing),M=P.xAxisHeight,C=P.angle;a.xAxisHeight=M,a._xAxisTextAngle_=C,e.area[2]+=M,e.chartData.categoriesData=P}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var L=0,F=e.chartData.xAxisData.xAxisPoints,R=e.chartData.xAxisData.startX,I=e.chartData.xAxisData.endX,z=e.chartData.xAxisData.eachSpacing,E=z*(F.length-1),O=I-R;L=O-E,r.scrollOption={currentOffset:L,startTouchX:L,distance:0,lastMoveTime:0},e._scrollDistance_=L}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(a._pieTextMaxLength_=!1===e.dataLabel?0:J(d)),t){case"word":var W=n({},{type:"normal",autoColors:!0},e.extra.word);1!=e.updateData&&void 0!=e.updateData||(e.chartData.wordCloudData=Ht(e,W.type)),this.animationInstance=new Ut({timing:"easeInOut",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&lt(i,e),Gt(o,e,a,i,t),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"map":i.clearRect(0,0,e.width,e.height),$t(o,e,a,i);break;case"funnel":this.animationInstance=new Ut({timing:"easeInOut",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&lt(i,e),e.chartData.funnelData=Yt(o,e,a,i,t),Mt(e.series,e,a,i,e.chartData),Dt(e,a,i,t),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"line":this.animationInstance=new Ut({timing:"easeIn",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&lt(i,e),Tt(s,e,a,i),At(s,e,a,i);var n=kt(o,e,a,i,t),r=n.xAxisPoints,l=n.calPoints,c=n.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Pt(o,e,a,i),!1!==e.enableMarkLine&&1===t&&bt(e,a,i),Mt(e.series,e,a,i,e.chartData),Dt(e,a,i,t,c,r),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"mix":this.animationInstance=new Ut({timing:"easeIn",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&lt(i,e),Tt(s,e,a,i),At(s,e,a,i);var n=St(o,e,a,i,t),r=n.xAxisPoints,l=n.calPoints,c=n.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Pt(o,e,a,i),!1!==e.enableMarkLine&&1===t&&bt(e,a,i),Mt(e.series,e,a,i,e.chartData),Dt(e,a,i,t,c,r),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"column":this.animationInstance=new Ut({timing:"easeIn",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&lt(i,e),Tt(s,e,a,i),At(s,e,a,i);var n=mt(o,e,a,i,t),r=n.xAxisPoints,l=n.calPoints,c=n.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Pt(o,e,a,i),!1!==e.enableMarkLine&&1===t&&bt(e,a,i),Mt(e.series,e,a,i,e.chartData),Dt(e,a,i,t,c,r),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"area":this.animationInstance=new Ut({timing:"easeIn",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&lt(i,e),Tt(s,e,a,i),At(s,e,a,i);var n=_t(o,e,a,i,t),r=n.xAxisPoints,l=n.calPoints,c=n.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Pt(o,e,a,i),!1!==e.enableMarkLine&&1===t&&bt(e,a,i),Mt(e.series,e,a,i,e.chartData),Dt(e,a,i,t,c,r),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"ring":case"pie":this.animationInstance=new Ut({timing:"easeInOut",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&lt(i,e),e.chartData.pieData=Ct(o,e,a,i,t),Mt(e.series,e,a,i,e.chartData),Dt(e,a,i,t),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"rose":this.animationInstance=new Ut({timing:"easeInOut",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&lt(i,e),e.chartData.pieData=Lt(o,e,a,i,t),Mt(e.series,e,a,i,e.chartData),Dt(e,a,i,t),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"radar":this.animationInstance=new Ut({timing:"easeInOut",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&lt(i,e),e.chartData.radarData=It(o,e,a,i,t),Mt(e.series,e,a,i,e.chartData),Dt(e,a,i,t),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new Ut({timing:"easeInOut",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&lt(i,e),e.chartData.arcbarData=Ft(o,e,a,i,t),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new Ut({timing:"easeInOut",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&lt(i,e),e.chartData.gaugeData=Rt(s,o,e,a,i,t),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"candle":this.animationInstance=new Ut({timing:"easeIn",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&lt(i,e),Tt(s,e,a,i),At(s,e,a,i);var n=wt(o,d,e,a,i,t),r=n.xAxisPoints,l=n.calPoints,c=n.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Pt(o,e,a,i),!1!==e.enableMarkLine&&1===t&&bt(e,a,i),Mt(d||e.series,e,a,i,e.chartData),Dt(e,a,i,t,c,r),Zt(e,i)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break}}function Vt(){this.events={}}Ut.prototype.stop=function(){this.isStop=!0},Vt.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},Vt.prototype.trigger=function(){for(var t=arguments.length,e=Array(t),a=0;a<t;a++)e[a]=arguments[a];var i=e[0],n=e.slice(1);this.events[i]&&this.events[i].forEach((function(t){try{t.apply(null,n)}catch(e){}}))};var Kt=function(t){t.pixelRatio=t.pixelRatio?t.pixelRatio:1,t.fontSize=t.fontSize?t.fontSize*t.pixelRatio:13*t.pixelRatio,t.title=n({},t.title),t.subtitle=n({},t.subtitle),t.duration=t.duration?t.duration:1e3,t.yAxis=n({},{data:[],showTitle:!1,disabled:!1,disableGrid:!1,splitNumber:5,gridType:"solid",dashLength:4*t.pixelRatio,gridColor:"#cccccc",padding:10,fontColor:"#666666"},t.yAxis),t.yAxis.dashLength*=t.pixelRatio,t.yAxis.padding*=t.pixelRatio,t.xAxis=n({},{rotateLabel:!1,type:"calibration",gridType:"solid",dashLength:4,scrollAlign:"left",boundaryGap:"center",axisLine:!0,axisLineColor:"#cccccc"},t.xAxis),t.xAxis.dashLength*=t.pixelRatio,t.legend=n({},{show:!0,position:"bottom",float:"center",backgroundColor:"rgba(0,0,0,0)",borderColor:"rgba(0,0,0,0)",borderWidth:0,padding:5,margin:5,itemGap:10,fontSize:t.fontSize,lineHeight:t.fontSize,fontColor:"#333333",format:{},hiddenColor:"#CECECE"},t.legend),t.legend.borderWidth=t.legend.borderWidth*t.pixelRatio,t.legend.itemGap=t.legend.itemGap*t.pixelRatio,t.legend.padding=t.legend.padding*t.pixelRatio,t.legend.margin=t.legend.margin*t.pixelRatio,t.extra=n({},t.extra),t.rotate=!!t.rotate,t.animation=!!t.animation,t.rotate=!!t.rotate;var e=JSON.parse(JSON.stringify(i));if(e.colors=t.colors?t.colors:e.colors,e.yAxisTitleWidth=!0!==t.yAxis.disabled&&t.yAxis.title?e.yAxisTitleWidth:0,"pie"!=t.type&&"ring"!=t.type||(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.pie.labelWidth*t.pixelRatio||e.pieChartLinePadding*t.pixelRatio),"rose"==t.type&&(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.rose.labelWidth*t.pixelRatio||e.pieChartLinePadding*t.pixelRatio),e.pieChartTextPadding=!1===t.dataLabel?0:e.pieChartTextPadding*t.pixelRatio,e.yAxisSplit=t.yAxis.splitNumber?t.yAxis.splitNumber:i.yAxisSplit,e.rotate=t.rotate,t.rotate){var a=t.width,r=t.height;t.width=r,t.height=a}t.padding=t.padding?t.padding:e.padding;for(var o=0;o<4;o++)t.padding[o]*=t.pixelRatio;e.yAxisWidth=i.yAxisWidth*t.pixelRatio,e.xAxisHeight=i.xAxisHeight*t.pixelRatio,t.enableScroll&&t.xAxis.scrollShow&&(e.xAxisHeight+=6*t.pixelRatio),e.xAxisLineHeight=i.xAxisLineHeight*t.pixelRatio,e.fontSize=t.fontSize,e.titleFontSize=i.titleFontSize*t.pixelRatio,e.subtitleFontSize=i.subtitleFontSize*t.pixelRatio,e.toolTipPadding=i.toolTipPadding*t.pixelRatio,e.toolTipLineHeight=i.toolTipLineHeight*t.pixelRatio,e.columePadding=i.columePadding*t.pixelRatio,t.$this=t.$this?t.$this:this,this.context=uni.createCanvasContext(t.canvasId,t.$this),t.chartData={},this.event=new Vt,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0},this.opts=t,this.config=e,Jt.call(this,t.type,t,e,this.context)};Kt.prototype.updateData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.opts=n({},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=rt(this.opts.series,this.opts,this.config),i=a.yAxisWidth;this.config.yAxisWidth=i;var r=0,o=tt(this.opts.categories,this.opts,this.config),s=o.xAxisPoints,l=o.startX,c=o.endX,d=o.eachSpacing,h=d*(s.length-1),f=c-l;r=f-h,this.scrollOption={currentOffset:r,startTouchX:r,distance:0,lastMoveTime:0},this.opts._scrollDistance_=r;break}Jt.call(this,this.opts.type,this.opts,this.config,this.context)},Kt.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=rt(this.opts.series,this.opts,this.config),i=a.yAxisWidth;this.config.yAxisWidth=i;var n=0,r=tt(this.opts.categories,this.opts,this.config),o=r.xAxisPoints,s=r.startX,l=r.endX,c=r.eachSpacing,d=c*e,h=l-s,f=h-c*(o.length-1);n=h/2-d,n>0&&(n=0),n<f&&(n=f),this.scrollOption={currentOffset:n,startTouchX:n,distance:0,lastMoveTime:0},this.opts._scrollDistance_=n,Jt.call(this,this.opts.type,this.opts,this.config,this.context)}},Kt.prototype.stopAnimation=function(){this.animationInstance&&this.animationInstance.stop()},Kt.prototype.addEventListener=function(t,e){this.event.addEventListener(t,e)},Kt.prototype.getCurrentDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var a=m(e,this.opts,t);return"pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type?E({x:a.x,y:a.y},this.opts.chartData.pieData):"radar"===this.opts.type?F({x:a.x,y:a.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?R({x:a.x,y:a.y},this.opts.chartData.funnelData):"map"===this.opts.type?z({x:a.x,y:a.y},this.opts):"word"===this.opts.type?I({x:a.x,y:a.y},this.opts.chartData.wordCloudData):P({x:a.x,y:a.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset))}return-1},Kt.prototype.getLegendDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var a=m(e,this.opts,t);return M({x:a.x,y:a.y},this.opts.chartData.legendData)}return-1},Kt.prototype.touchLegend=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null;if(a=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],a){m(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,Jt.call(this,this.opts.type,this.opts,this.config,this.context))}},Kt.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=m(a,this.opts,t),r=this.scrollOption.currentOffset,o=n({},this.opts,{_scrollDistance_:r,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type){var s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){var l=w(this.opts.series,s);if(0!==l.length){var c=S(l,this.opts.chartData.calPoints,s,this.opts.categories,e),d=c.textList,h=c.offset;h.y=i.y,o.tooltip={textList:e.textList?e.textList:d,offset:h,option:e,index:s}}}Jt.call(this,o.type,o,this.config,this.context)}if("mix"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){r=this.scrollOption.currentOffset,o=n({},this.opts,{_scrollDistance_:r,animation:!1}),l=w(this.opts.series,s);if(0!==l.length){var f=D(l,this.opts.chartData.calPoints,s,this.opts.categories,e);d=f.textList,h=f.offset;h.y=i.y,o.tooltip={textList:e.textList?e.textList:d,offset:h,option:e,index:s}}}Jt.call(this,o.type,o,this.config,this.context)}if("candle"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){r=this.scrollOption.currentOffset,o=n({},this.opts,{_scrollDistance_:r,animation:!1}),l=w(this.opts.series,s);if(0!==l.length){c=A(this.opts.series[0].data,l,this.opts.chartData.calPoints,s,this.opts.categories,this.opts.extra.candle,e),d=c.textList,h=c.offset;h.y=i.y,o.tooltip={textList:e.textList?e.textList:d,offset:h,option:e,index:s}}}Jt.call(this,o.type,o,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){r=this.scrollOption.currentOffset,o=n({},this.opts,{_scrollDistance_:r,animation:!1}),l=this.opts._series_[s],d=[{text:e.format?e.format(l):l.name+": "+l.data,color:l.color}],h={x:i.x,y:i.y};o.tooltip={textList:e.textList?e.textList:d,offset:h,option:e,index:s}}Jt.call(this,o.type,o,this.config,this.context)}if("map"===this.opts.type||"word"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){r=this.scrollOption.currentOffset,o=n({},this.opts,{_scrollDistance_:r,animation:!1}),l=this.opts._series_[s],d=[{text:e.format?e.format(l):l.properties.name,color:l.color}],h={x:i.x,y:i.y};o.tooltip={textList:e.textList?e.textList:d,offset:h,option:e,index:s}}o.updateData=!1,Jt.call(this,o.type,o,this.config,this.context)}if("radar"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){r=this.scrollOption.currentOffset,o=n({},this.opts,{_scrollDistance_:r,animation:!1}),l=w(this.opts.series,s);if(0!==l.length){d=l.map((function(t){return{text:e.format?e.format(t):t.name+": "+t.data,color:t.color}})),h={x:i.x,y:i.y};o.tooltip={textList:e.textList?e.textList:d,offset:h,option:e,index:s}}}Jt.call(this,o.type,o,this.config,this.context)}},Kt.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=n({},this.opts,{_scrollDistance_:t,animation:!1});Jt.call(this,this.opts.type,e,this.config,this.context)},Kt.prototype.scrollStart=function(t){var e=null;e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var a=m(e,this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=a.x)},Kt.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<Math.floor(1e3/e))){this.scrollOption.lastMoveTime=a;var r=null;if(r=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],r&&!0===this.opts.enableScroll){var o,s=m(r,this.opts,t);o=s.x-this.scrollOption.startTouchX;var l=this.scrollOption.currentOffset,d=c(this,l+o,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=o=d-l;var h=n({},this.opts,{_scrollDistance_:l+o,animation:!1});return Jt.call(this,h.type,h,this.config,this.context),l+o}}},Kt.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"===typeof t.exports&&(t.exports=Kt)},"6a37":function(t,e,a){"use strict";var i=a("a798"),n=a.n(i);n.a},"76ac":function(t,e,a){"use strict";a.r(e);var i=a("98c5"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},9331:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.uni-calendar-item__weeks-box[data-v-cdf8d7d6]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.uni-calendar-item__weeks-box-text[data-v-cdf8d7d6]{font-size:%?28?%;color:#333}.uni-calendar-item__weeks-lunar-text[data-v-cdf8d7d6]{font-size:%?24?%;color:#333}.uni-calendar-item__weeks-box-item[data-v-cdf8d7d6]{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?100?%;height:%?100?%}.uni-calendar-item__weeks-box-circle[data-v-cdf8d7d6]{position:absolute;top:5px;right:5px;width:8px;height:8px;-webkit-border-radius:8px;border-radius:8px;background-color:#dd524d}.uni-calendar-item--disable[data-v-cdf8d7d6]{background-color:hsla(0,0%,97.6%,.3);color:silver}.uni-calendar-item--isDay-text[data-v-cdf8d7d6]{color:#007aff}.uni-calendar-item--isDay[data-v-cdf8d7d6]{background-color:#007aff;opacity:.8;color:#fff}.uni-calendar-item--extra[data-v-cdf8d7d6]{color:#dd524d;opacity:.8}.uni-calendar-item--checked[data-v-cdf8d7d6]{background-color:#007aff;color:#fff;opacity:.8}.uni-calendar-item--multiple[data-v-cdf8d7d6]{background-color:#007aff;color:#fff;opacity:.8}',""]),t.exports=e},"94d4":function(t,e,a){"use strict";a.r(e);var i=a("af44"),n=a("ece9");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("2b41");var o,s=a("f0c5"),l=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"70ae6a96",null,!1,i["a"],o);e["default"]=l.exports},"98c5":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{weeks:{type:Object,default:function(){return{}}},calendar:{type:Object,default:function(){return{}}},selected:{type:Array,default:function(){return[]}},lunar:{type:Boolean,default:!1}},methods:{choiceDate:function(t){this.$emit("change",t)}}};e.default=i},a798:function(t,e,a){var i=a("9331");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("776354ef",i,!0,{sourceMap:!1,shadowMode:!1})},ae04:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*交易额统计*/.statistical-page .navs[data-v-46ad4676]{width:100%;height:%?96?%;background-color:#fff;overflow:hidden;line-height:%?96?%;position:fixed;top:0;left:0;z-index:9}.statistical-page .navs .list[data-v-46ad4676]{overflow-y:hidden;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;width:100%}.statistical-page .navs .item[data-v-46ad4676]{font-size:%?32?%;color:#282828;margin-left:%?60?%;display:inline-block}.statistical-page .navs .item.on[data-v-46ad4676]{color:#2291f8}.statistical-page .navs .item .iconfont[data-v-46ad4676]{font-size:%?25?%;margin-left:%?13?%}.statistical-page .wrapper[data-v-46ad4676]{width:%?740?%;background-color:#fff;-webkit-border-radius:%?10?%;border-radius:%?10?%;margin:%?119?% auto 0 auto;padding:%?50?% %?60?%}.statistical-page .wrapper .title[data-v-46ad4676]{font-size:%?30?%;color:#999;text-align:center}.statistical-page .wrapper .money[data-v-46ad4676]{font-size:%?72?%;color:#fba02a;text-align:center;margin-top:%?10?%}.statistical-page .wrapper .increase[data-v-46ad4676]{font-size:%?28?%;color:#999;margin-top:%?20?%}.statistical-page .wrapper .increase .red[data-v-46ad4676]{color:#ff6969}.statistical-page .wrapper .increase .green[data-v-46ad4676]{color:#1abb1d}.statistical-page .wrapper .increase .iconfont[data-v-46ad4676]{font-size:%?23?%;margin-left:%?15?%}.statistical-page .chart[data-v-46ad4676]{width:%?690?%;background-color:#fff;-webkit-border-radius:%?10?%;border-radius:%?10?%;margin:%?23?% auto 0 auto\n\t/* padding: 25upx 22upx 0 22upx; */}.statistical-page .chart .chart-title[data-v-46ad4676]{padding:%?20?% %?20?% %?10?%;font-size:%?26?%;color:#999}.statistical-page .chart uni-canvas[data-v-46ad4676]{width:100%;height:%?530?%}.statistical-page .chart .company[data-v-46ad4676]{font-size:%?26?%;color:#999}.yd-confirm[data-v-46ad4676]{background-color:#fff;font-size:unset;width:%?540?%;height:%?250?%;-webkit-border-radius:%?40?%;border-radius:%?40?%}.yd-confirm-hd[data-v-46ad4676]{text-align:center}.yd-confirm-title[data-v-46ad4676]{color:#030303;font-weight:700;font-size:%?36?%}.yd-confirm-bd[data-v-46ad4676]{text-align:center;font-size:%?28?%;color:#333}.yd-confirm-ft[data-v-46ad4676]{line-height:%?90?%;margin-top:14px;border-top:%?1?% solid #eee}.yd-confirm-ft>a[data-v-46ad4676]{color:#e93323}.yd-confirm-ft>a.primary[data-v-46ad4676]{border-left:%?1?% solid #eee;color:#e93323}.echarts[data-v-46ad4676]{width:100%;height:%?550?%}.calendar-wrapper[data-v-46ad4676]{position:fixed;bottom:0;left:0;width:100%;z-index:777;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);-webkit-transition:all .3s cubic-bezier(.25,.5,.5,.9);transition:all .3s cubic-bezier(.25,.5,.5,.9)}.calendar-wrapper.on[data-v-46ad4676]{-webkit-transform:translateZ(0);transform:translateZ(0)}.statistical-page .wrapper .increase[data-v-46ad4676]{font-size:%?26?%}.statistical-page .wrapper .increase .iconfont[data-v-46ad4676]{margin-left:0}.public-wrapper .title[data-v-46ad4676]{font-size:%?30?%;color:#282828;padding:0 %?30?%;margin-bottom:%?20?%}.public-wrapper .title .iconfont[data-v-46ad4676]{color:#2291f8;font-size:%?40?%;margin-right:%?13?%;vertical-align:middle}.public-wrapper[data-v-46ad4676]{margin:%?18?% auto 0 auto;width:%?690?%;background-color:#fff;-webkit-border-radius:%?10?%;border-radius:%?10?%;padding-top:%?25?%}.public-wrapper .nav[data-v-46ad4676]{padding:0 %?30?%;height:%?70?%;line-height:%?70?%;font-size:%?24?%;color:#999}.public-wrapper .data[data-v-46ad4676]{width:%?210?%;text-align:left}.public-wrapper .browse[data-v-46ad4676]{width:%?192?%;text-align:right}.public-wrapper .turnover[data-v-46ad4676]{width:%?227?%;text-align:right}.public-wrapper .conter[data-v-46ad4676]{padding:0 %?30?%}.public-wrapper .conter .item[data-v-46ad4676]{border-bottom:1px solid #f7f7f7;height:%?70?%;font-size:%?24?%}.public-wrapper .conter .item .turnover[data-v-46ad4676]{color:#d84242}",""]),t.exports=e},af44:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"uni-calendar",on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.clean.apply(void 0,arguments)}}},[!t.insert&&t.show?a("v-uni-view",{staticClass:"uni-calendar__mask",class:{"uni-calendar--mask-show":t.aniMaskShow},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clean.apply(void 0,arguments)}}}):t._e(),t.insert||t.show?a("v-uni-view",{staticClass:"uni-calendar__content",class:{"uni-calendar--fixed":!t.insert,"uni-calendar--ani-show":t.aniMaskShow}},[t.insert?t._e():a("v-uni-view",{staticClass:"uni-calendar__header uni-calendar--fixed-top"},[a("v-uni-view",{staticClass:"uni-calendar__header-btn-box",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"uni-calendar__header-text uni-calendar--fixed-width"},[t._v("取消")])],1),a("v-uni-view",{staticClass:"uni-calendar__header-btn-box",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"uni-calendar__header-text uni-calendar--fixed-width"},[t._v("确定")])],1)],1),a("v-uni-view",{staticClass:"uni-calendar__header"},[a("v-uni-view",{staticClass:"uni-calendar__header-btn-box",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.pre.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"uni-calendar__header-btn uni-calendar--left"})],1),a("v-uni-text",{staticClass:"uni-calendar__header-text"},[t._v(t._s((t.nowDate.year||"")+"年"+(t.nowDate.month||"")+"月"))]),a("v-uni-view",{staticClass:"uni-calendar__header-btn-box",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.next.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"uni-calendar__header-btn uni-calendar--right"})],1),a("v-uni-text",{staticClass:"uni-calendar__backtoday",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.backtoday.apply(void 0,arguments)}}},[t._v("回到今天")])],1),a("v-uni-view",{staticClass:"uni-calendar__box"},[t.showMonth?a("v-uni-view",{staticClass:"uni-calendar__box-bg"},[a("v-uni-text",{staticClass:"uni-calendar__box-bg-text"},[t._v(t._s(t.nowDate.month))])],1):t._e(),a("v-uni-view",{staticClass:"uni-calendar__weeks"},[a("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[a("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v("日")])],1),a("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[a("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v("一")])],1),a("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[a("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v("二")])],1),a("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[a("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v("三")])],1),a("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[a("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v("四")])],1),a("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[a("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v("五")])],1),a("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[a("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v("六")])],1)],1),t._l(t.weeks,(function(e,i){return a("v-uni-view",{key:i,staticClass:"uni-calendar__weeks"},t._l(e,(function(e,i){return a("v-uni-view",{key:i,staticClass:"uni-calendar__weeks-item"},[a("uni-calendar-item",{attrs:{weeks:e,calendar:t.calendar,selected:t.selected,lunar:t.lunar},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.choiceDate.apply(void 0,arguments)}}})],1)})),1)}))],2)],1):t._e()],1)},r=[]},b71f:function(t,e,a){"use strict";a.r(e);var i=a("fe6e"),n=a("d75a");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("251b");var o,s=a("f0c5"),l=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"46ad4676",null,!1,i["a"],o);e["default"]=l.exports},c38c:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getStatisticsInfo=r,e.getStatisticsMonth=o,e.getAdminOrderList=s,e.setAdminOrderPrice=l,e.setAdminOrderRemark=c,e.getAdminOrderDetail=d,e.getAdminOrderDelivery=h,e.setAdminOrderDelivery=f,e.getStatisticsTime=u,e.setOfflinePay=p,e.setOrderRefund=x,e.getLogistics=b,e.orderVerific=g,e.verifierOrder=v,e.orderStatistics=y,e.orderPrice=m,e.getOrderList=w,e.turnoverStatistics=_,e.orderNumberStatistics=k;var n=i(a("112d"));function r(){return n.default.get("admin/order/statistics",{},{login:!0})}function o(t){return n.default.get("admin/order/data",t,{login:!0})}function s(t){return n.default.get("admin/order/list",t,{login:!0})}function l(t,e){return n.default.post("admin/price/"+t,e,{login:!0})}function c(t,e){return n.default.post("admin/mark/"+t,e,{login:!0})}function d(t){return n.default.get("admin/order/"+t,{},{login:!0})}function h(t){return n.default.get("admin/order/delivery/gain/"+t,{},{login:!0})}function f(t,e){return n.default.post("admin/delivery/"+t,e,{login:!0})}function u(t){return n.default.get("admin/order/time",t,{login:!0})}function p(t){return n.default.post("admin/order/offline",t,{login:!0})}function x(t){return n.default.post("admin/order/refund",t,{login:!0})}function b(){return n.default.get("logistics",{},{login:!1})}function g(t){return n.default.post("verifier/"+t)}function v(t){return n.default.get("verifier/order/"+t)}function y(){return n.default.get("admin/statistics")}function m(t){return n.default.get("admin/order_price",t,{login:!0})}function w(t){return n.default.get("admin/order_list",t,{login:!0})}function _(t){return n.default.get("admin/pay_price",t,{login:!0})}function k(t){return n.default.get("admin/pay_number",t,{login:!0})}},cb29:function(t,e,a){var i=a("23e7"),n=a("81d5"),r=a("44d2");i({target:"Array",proto:!0},{fill:n}),r("fill")},d6f9:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.uni-calendar[data-v-70ae6a96]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.uni-calendar__mask[data-v-70ae6a96]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,.4);-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-duration:.3s;transition-duration:.3s;opacity:0;z-index:99}.uni-calendar--mask-show[data-v-70ae6a96]{opacity:1}.uni-calendar--fixed[data-v-70ae6a96]{position:fixed;bottom:0;left:0;right:0;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transform:translateY(460px);transform:translateY(460px);z-index:99}.uni-calendar--ani-show[data-v-70ae6a96]{-webkit-transform:translateY(0);transform:translateY(0)}.uni-calendar__content[data-v-70ae6a96]{background-color:#fff}.uni-calendar__header[data-v-70ae6a96]{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:50px;border-bottom-color:#c8c7cc;border-bottom-style:solid;border-bottom-width:1px}.uni-calendar--fixed-top[data-v-70ae6a96]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-top-color:#c8c7cc;border-top-style:solid;border-top-width:1px}.uni-calendar--fixed-width[data-v-70ae6a96]{width:50px}.uni-calendar__backtoday[data-v-70ae6a96]{position:absolute;right:0;top:%?25?%;padding:0 5px;padding-left:10px;height:25px;line-height:25px;font-size:12px;-webkit-border-top-left-radius:25px;border-top-left-radius:25px;-webkit-border-bottom-left-radius:25px;border-bottom-left-radius:25px;color:#333;background-color:#f1f1f1}.uni-calendar__header-text[data-v-70ae6a96]{text-align:center;width:100px;font-size:%?28?%;color:#333}.uni-calendar__header-btn-box[data-v-70ae6a96]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:50px;height:50px}.uni-calendar__header-btn[data-v-70ae6a96]{width:10px;height:10px;border-left-color:grey;border-left-style:solid;border-left-width:2px;border-top-color:#555;border-top-style:solid;border-top-width:2px}.uni-calendar--left[data-v-70ae6a96]{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.uni-calendar--right[data-v-70ae6a96]{-webkit-transform:rotate(135deg);transform:rotate(135deg)}.uni-calendar__weeks[data-v-70ae6a96]{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}.uni-calendar__weeks-item[data-v-70ae6a96]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.uni-calendar__weeks-day[data-v-70ae6a96]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:45px;border-bottom-color:#f5f5f5;border-bottom-style:solid;border-bottom-width:1px}.uni-calendar__weeks-day-text[data-v-70ae6a96]{font-size:14px}.uni-calendar__box[data-v-70ae6a96]{position:relative}.uni-calendar__box-bg[data-v-70ae6a96]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0}.uni-calendar__box-bg-text[data-v-70ae6a96]{font-size:200px;font-weight:700;color:#999;opacity:.1;text-align:center;line-height:1}',""]),t.exports=e},d75a:function(t,e,a){"use strict";a.r(e);var i=a("136c"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},ece9:function(t,e,a){"use strict";a.r(e);var i=a("4458"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},fb64:function(t,e,a){"use strict";a("d3b7"),a("e25e"),a("25f0"),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){var a="魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯",i=[20,19,21,21,21,22,23,23,23,23,22,22];return a.substr(2*t-(e<i[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()],n=[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(n[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 n,r=0,o=0,s=(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(n=1900;n<2101&&s>0;n++)o=this.lYearDays(n),s-=o;s<0&&(s+=o,n--);var l=new Date,c=!1;l.getFullYear()==t&&l.getMonth()+1==e&&l.getDate()==a&&(c=!0);var d=i.getDay(),h=this.nStr1[d];0==d&&(d=7);var f=n,u=(r=this.leapMonth(n),!1);for(n=1;n<13&&s>0;n++)r>0&&n==r+1&&0==u?(--n,u=!0,o=this.leapDays(f)):o=this.monthDays(f,n),1==u&&n==r+1&&(u=!1),s-=o;0==s&&r>0&&n==r+1&&(u?u=!1:(u=!0,--n)),s<0&&(s+=o,--n);var p=n,x=s+1,b=e-1,g=this.toGanZhiYear(f),v=this.getTerm(t,2*e-1),y=this.getTerm(t,2*e),m=this.toGanZhi(12*(t-1900)+e+11);a>=v&&(m=this.toGanZhi(12*(t-1900)+e+12));var w=!1,_=null;v==a&&(w=!0,_=this.solarTerm[2*e-2]),y==a&&(w=!0,_=this.solarTerm[2*e-1]);var k=Date.UTC(t,b,1,0,0,0,0)/864e5+25567+10,S=this.toGanZhi(k+a-1),D=this.toAstro(e,a);return{lYear:f,lMonth:p,lDay:x,Animal:this.getAnimal(f),IMonthCn:(u?"闰":"")+this.toChinaMonth(p),IDayCn:this.toChinaDay(x),cYear:t,cMonth:e,cDay:a,gzYear:g,gzMonth:m,gzDay:S,isToday:c,isLeap:u,nWeek:d,ncWeek:"星期"+h,isTerm:w,Term:_,astro:D}},lunar2solar:function(t,e,a,i){i=!!i;var n=this.leapMonth(t);this.leapDays(t);if(i&&n!=e)return-1;if(2100==t&&12==e&&a>1||1900==t&&1==e&&a<31)return-1;var r=this.monthDays(t,e),o=r;if(i&&(o=this.leapDays(t,e)),t<1900||t>2100||a>o)return-1;for(var s=0,l=1900;l<t;l++)s+=this.lYearDays(l);var c=0,d=!1;for(l=1;l<e;l++)c=this.leapMonth(t),d||c<=l&&c>0&&(s+=this.leapDays(t),d=!0),s+=this.monthDays(t,l);i&&(s+=r);var h=Date.UTC(1900,1,30,0,0,0),f=new Date(864e5*(s+a-31)+h),u=f.getUTCFullYear(),p=f.getUTCMonth()+1,x=f.getUTCDate();return this.solar2lunar(u,p,x)}},n=i;e.default=n},fe6e:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uniCalendar:a("94d4").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"container",staticClass:"statistical-page"},[a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.isShowBox,expression:"isShowBox"}]},[a("div",{staticClass:"navs"},[a("div",{staticClass:"list"},[a("div",{staticClass:"item",class:"today"==t.time?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setTime("today")}}},[t._v("今天")]),a("div",{staticClass:"item",class:"yesterday"==t.time?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setTime("yesterday")}}},[t._v("昨天")]),a("div",{staticClass:"item",class:"seven"==t.time?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setTime("seven")}}},[t._v("最近7天")]),a("div",{staticClass:"item",class:"month"==t.time?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setTime("month")}}},[t._v("本月")]),a("div",{staticClass:"item",class:"date"==t.time?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.dateTitle.apply(void 0,arguments)}}},[t._v("自定义")])])]),a("div",{staticClass:"wrapper"},[a("div",{staticClass:"title"},[t._v(t._s(t.title)+t._s(1==t.where.type?"营业额(元)":"订单量(份)"))]),(t.where.type,a("div",{staticClass:"money"},[t._v(t._s(t.time_price))])),a("div",{staticClass:"increase acea-row row-between-wrapper"},[a("div",[t._v(t._s(t.title)+"增长率:"),a("span",{class:1===t.increase_time_status?"red":"green"},[t._v(t._s(1===t.increase_time_status?"":"-")+t._s(t.growth_rate)+"%"),a("span",{staticClass:"iconfont",class:1===t.increase_time_status?"icon-xiangshang1":"icon-xiangxia2"})])]),a("div",[t._v(t._s(t.title)+"增长:"),a("span",{class:1===t.increase_time_status?"red":"green"},[t._v(t._s(1===t.increase_time_status?"":"-")+t._s(t.increase_time)),a("span",{staticClass:"iconfont",class:1===t.increase_time_status?"icon-xiangshang1":"icon-xiangxia2"})])])])]),a("div",{staticClass:"chart"},[a("div",{staticClass:"chart-title"},[t._v("单位("+t._s(1==t.where.type?"元":"份")+")")]),a("v-uni-canvas",{staticClass:"charts",attrs:{"canvas-id":"canvasLineA",id:"canvasLineA","disable-scroll":"true"},on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.touchLineA.apply(void 0,arguments)},touchmove:function(e){arguments[0]=e=t.$handleEvent(e),t.moveLineA.apply(void 0,arguments)},touchend:function(e){arguments[0]=e=t.$handleEvent(e),t.touchEndLineA.apply(void 0,arguments)}}})],1),a("div",{staticClass:"public-wrapper"},[a("div",{staticClass:"title"},[a("span",{staticClass:"iconfont icon-xiangxishuju"}),t._v("详细数据")]),a("div",{staticClass:"nav acea-row row-between-wrapper"},[a("div",{staticClass:"data"},[t._v("日期")]),a("div",{staticClass:"browse"},[t._v("订单量")]),a("div",{staticClass:"turnover"},[t._v("成交额")])]),a("div",{staticClass:"conter"},t._l(t.list,(function(e,i){return a("div",{key:i,staticClass:"item acea-row row-between-wrapper"},[a("div",{staticClass:"data"},[t._v(t._s(e.day))]),a("div",{staticClass:"browse"},[t._v(t._s(e.total))]),a("div",{staticClass:"turnover"},[t._v(t._s(e.pay_price))])])})),0)])]),a("uni-calendar",{ref:"calendar",attrs:{date:t.info.date,insert:t.info.insert,lunar:t.info.lunar,startDate:t.info.startDate,endDate:t.info.endDate,range:t.info.range,showMonth:t.info.showMonth},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)},close:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}),a("div",{directives:[{name:"show",rawName:"v-show",value:!0===t.current,expression:"current === true"}],staticClass:"mask",on:{touchmove:function(e){e.preventDefault(),arguments[0]=e=t.$handleEvent(e)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}})],1)},r=[]},feb3:function(t,e,a){var i=a("ae04");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("3fc9207e",i,!0,{sourceMap:!1,shadowMode:!1})},feb8:function(t,e,a){var i=a("d6f9");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("52afcd14",i,!0,{sourceMap:!1,shadowMode:!1})}}]);