(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"163c":function(t,e,n){t.exports=n.p+"static/media/crystal.826fc717.mp3"},"1de5":function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"2ec7":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.canvasId?n("v-uni-view",{staticClass:"l-f2",style:t.customStyle},[t.isMask?n("v-uni-cover-view",{staticClass:"l-f2__mask"}):t._e(),t.use2dCanvas?n("v-uni-canvas",{staticClass:"l-f2__canvas",style:"width:"+t.width+"px;height:"+t.height+"px",attrs:{type:"2d",id:t.canvasId,"disable-scroll":t.isDisableScroll},on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.touchStart.apply(void 0,arguments)},touchmove:function(e){arguments[0]=e=t.$handleEvent(e),t.touchMove.apply(void 0,arguments)},touchend:function(e){arguments[0]=e=t.$handleEvent(e),t.touchEnd.apply(void 0,arguments)}}}):n("v-uni-canvas",{staticClass:"l-f2__canvas",style:"width:"+t.width+"px;height:"+t.height+"px",attrs:{width:t.nodeWidth,height:t.nodeHeight,"canvas-id":t.canvasId,id:t.canvasId,"disable-scroll":t.isDisableScroll},on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.touchStart.apply(void 0,arguments)},touchmove:function(e){arguments[0]=e=t.$handleEvent(e),t.touchMove.apply(void 0,arguments)},touchend:function(e){arguments[0]=e=t.$handleEvent(e),t.touchEnd.apply(void 0,arguments)}}}),t.isCloud?n("v-uni-view",{staticStyle:{width:"2048px",height:"2048px",position:"fixed",left:"9999px"}},[t.use2dCanvas?n("v-uni-canvas",{staticClass:"l-f2__canvas",attrs:{type:"2d","canvas-id":t.canvasId+"_cloud",id:t.canvasId+"_cloud"}}):n("v-uni-canvas",{staticClass:"l-f2__canvas",attrs:{"canvas-id":t.canvasId+"_cloud",id:t.canvasId+"_cloud"}})],1):t._e()],1):t._e()},a=[]},"35b3":function(t,e,n){var i=n("23e7");i({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},"3c48":function(t,e,n){"use strict";function i(t,e){t=t.split("."),e=e.split(".");var n=Math.max(t.length,e.length);while(t.lengtha)return 1;if(r1&&void 0!==e[1]?e[1]:null,i.next=3,n.getContext(n.canvasId);case 3:if(r=i.sent,!n.isCloud){i.next=17;break}if(a=null,!n.imageMask){i.next=13;break}return n.isMask=!0,i.next=10,n.getImageMask(r);case 10:a=i.sent,n.imageData=a,n.isMask=!1;case 13:return i.next=15,n.getContext(n.canvasId+"_cloud");case 15:s=i.sent,r=Object.assign({},r,{cloud:s,imageMask:a});case 17:return i.next=19,t(r);case 19:o=i.sent,o&&(o.repaint(),n.chart=o,n.canvasEl=o.get("el"),n.isInited=!0);case 21:case"end":return i.stop()}}),i)})))()},changeData:function(t){this.chart&&this.chart.changeData(t||this.source)},clear:function(){this.chart&&this.chart.clear()},destroy:function(){this.chart&&this.chart.destroy()},repaint:function(){this.changeData(this.source)},reset:function(t){var e=this;this.$watch("isInited",(function(n){return n&&t(e.chart)}),{immediate:!0})},canvasToTempFilePath:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.use2dCanvas,i=this.canvasId,r=this.config;return new Promise((function(a,s){var o=Object.assign({canvasId:i,success:a,fail:s},e);if(n){var l=r[i].canvas;delete o.canvasId,o.canvas=l}uni.canvasToTempFilePath(o,t)}))},getImageMask:function(t){var e=this;return new Promise((function(n){uni.getImageInfo({src:e.imageMask,success:function(){var i=(0,r.default)(regeneratorRuntime.mark((function i(a){var s,o,l,c,u,h;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(!a.path){i.next=17;break}if(s=t.context,o=t.width,l=t.height,c=t.canvas,!e.use2dCanvas){i.next=7;break}u=function(){var t=c.createImage();t.crossOrigin="",t.src=a.path,t.onload=(0,r.default)(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:s.drawImage(t,0,0,a.width,a.height,0,0,o,l),i=s.getImageData(0,0,o,l).data,s.clearRect(0,0,o,l),n(i);case 4:case"end":return e.stop()}}),e)})))},u(),i.next=17;break;case 7:return s.drawImage(a.path,0,0,a.width,a.height,0,0,o,l),i.next=10,e.canvasDraw(s);case 10:return i.next=12,s.getImageData(0,0,o,l);case 12:return h=i.sent,s.clearRect(0,0,o,l),i.next=16,e.canvasDraw(s);case 16:n(h);case 17:case"end":return i.stop()}}),i)})));function a(t){return i.apply(this,arguments)}return a}(),fail:function(t){console.error(JSON.stringify(t)),n(null)}})}))},canvasDraw:function(t){return new Promise((function(e){t.draw(!1,(function(){setTimeout((function(){e(!0)}),100)}))}))},getContext:function(t){var e,n=this,i=this.use2dCanvas,r=this.type,o=void 0===r?"2d":r,l=this.config;return(null===(e=l[t])||void 0===e?void 0:e.context)?Promise.resolve(l[t]):new Promise(i?function(e){uni.createSelectorQuery().in(n).select("#".concat(t)).fields({node:!0,size:!0}).exec((function(i){var r=i[0],l=r.node,c=r.width,u=r.height;c=c||300,u=u||300;var h=l.getContext(o);t.includes("_cloud")||(n.width=c,n.height=u),l.width=c*s.pixelRatio,l.height=u*s.pixelRatio,n.config[t]={context:(0,a.default)(h),width:c,height:u,pixelRatio:s.pixelRatio,canvas:l},e(n.config[t])}))}:function(e){uni.createSelectorQuery().in(n).select("#".concat(t)).boundingClientRect().exec((function(i){if(i){var r=i[0],o=r.width,l=r.height;o=o||300,l=l||300;var c=uni.createCanvasContext(t,n);t.includes("_cloud")||(n.width=o,n.height=l),n.config[t]={context:(0,a.default)(c),width:o,height:l,pixelRatio:s.pixelRatio},e(n.config[t])}}))})},touchStart:function(t){this.canvasEl&&this.canvasEl.dispatchEvent("touchstart",(0,s.wrapEvent)(t))},touchMove:function(t){this.canvasEl&&this.canvasEl.dispatchEvent("touchmove",(0,s.wrapEvent)(t))},touchEnd:function(t){this.canvasEl&&this.canvasEl.dispatchEvent("touchend",(0,s.wrapEvent)(t))}}};e.default=o},"6b934":function(t,e,n){var i=n("23e7"),r=Math.log,a=Math.LOG10E;i({target:"Math",stat:!0},{log10:function(t){return r(t)*a}})},"6c57":function(t,e,n){var i=n("23e7"),r=n("da84");i({global:!0},{globalThis:r})},7039:function(t,e,n){var i=n("23e7"),r=n("d039"),a=n("057f").f,s=r((function(){return!Object.getOwnPropertyNames(1)}));i({target:"Object",stat:!0,forced:s},{getOwnPropertyNames:a})},"862c":function(t,e,n){"use strict";var i=n("53ee"),r=n.n(i);r.a},"89ef":function(t,e,n){var i=n("24fb"),r=n("1de5"),a=n("57dc");e=i(!1);var s=r(a);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 * Web唐明明\n * 匆匆数载恍如梦,岁月迢迢华发增。\n * 碌碌无为枉半生,一朝惊醒万事空。\n */.ios-bottom[data-v-218f84fe]{padding-bottom:env(safe-area-inset-bottom);padding-bottom:constant(safe-area-inset-bottom)}.ios-left[data-v-218f84fe]{padding-left:env(safe-area-inset-left);padding-left:constant(safe-area-inset-left)}.ios-right[data-v-218f84fe]{padding-right:env(safe-area-inset-right);padding-right:constant(safe-area-inset-right)}.ios-top[data-v-218f84fe]{padding-top:0}.vertical[data-v-218f84fe]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-pack:center}.nowrap[data-v-218f84fe]{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ellipsis[data-v-218f84fe]{max-width:100%;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2}.ellipsis-3[data-v-218f84fe]{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:3}.ellipsis-4[data-v-218f84fe]{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:4}.ellipsis-5[data-v-218f84fe]{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:5}\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */@font-face{font-family:uniicons;src:url('+s+') format("truetype")}.uni-icons[data-v-218f84fe]{font-family:uniicons;text-decoration:none;text-align:center}',""]),t.exports=e},"8ae7":function(t,e){t.exports="data:image/png;base64,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"},"8ba4":function(t,e,n){var i=n("23e7"),r=n("5e89");i({target:"Number",stat:!0},{isInteger:r})},"93f3":function(t,e,n){"use strict";var i=n("fe87"),r=n.n(i);r.a},9769:function(t,e){t.exports="data:image/png;base64,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"},"99a6":function(t,e,n){var i=n("c0f5");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("4f06").default;r("752da84a",i,!0,{sourceMap:!1,shadowMode:!1})},"99ac":function(t,e,n){"use strict";var i=n("a9a0"),r=n.n(i);r.a},"9e2c":function(t,e,n){"use strict";var i=n("4ea4");n("4160"),n("b64b"),n("d3b7"),n("e25e"),n("ac1f"),n("5319"),n("1276"),n("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("2909")),a=n("3c48"),s={fillStyle:"FillStyle",fontSize:"FontSize",globalAlpha:"GlobalAlpha",opacity:"GlobalAlpha",lineCap:"LineCap",lineJoin:"LineJoin",lineWidth:"LineWidth",miterLimit:"MiterLimit",strokeStyle:"StrokeStyle",textAlign:"TextAlign",textBaseline:"TextBaseline",shadow:"Shadow",font:"FontSize"};function o(t){for(var e=0,n=0;n0&&t.charCodeAt(n)<128?e++:e+=2;return e}var l=/(\d*\.?\d*)px/,c=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])\b/g,u=function(t){return t.uniTransform=t.transform,t.transform=function(){for(var e=arguments.length,n=new Array(e),i=0;i6&&n.pop(),t.uniTransform.apply(t,n)},t.getImageData||(t.getImageData=function(){for(var e=arguments.length,n=new Array(e),i=0;i uni-image[data-v-2207815a]{width:100%;position:absolute;top:0;left:0}.ore .ore-lists[data-v-2207815a]{position:absolute;top:0;left:0;height:100%;width:100%;z-index:1}.ore .ore-lists .oct-float-item[data-v-2207815a], .ore .ore-lists .ore-item-nav[data-v-2207815a], .ore .ore-lists .ore-item[data-v-2207815a], .ore .ore-lists .oct-login[data-v-2207815a]{position:absolute;text-align:center}.ore .ore-lists .oct-float-item .text[data-v-2207815a], .ore .ore-lists .ore-item-nav .text[data-v-2207815a], .ore .ore-lists .ore-item .text[data-v-2207815a], .ore .ore-lists .oct-login .text[data-v-2207815a]{color:#fff;font-size:%?22?%;line-height:%?40?%;text-shadow:0 %?3?% %?3?% rgba(0,0,0,.2)}.ore .ore-lists .oct-float-item .oct-icon[data-v-2207815a], .ore .ore-lists .ore-item-nav .oct-icon[data-v-2207815a], .ore .ore-lists .ore-item .oct-icon[data-v-2207815a], .ore .ore-lists .oct-login .oct-icon[data-v-2207815a]{display:inline-block;width:%?58?%;height:%?58?%;line-height:%?58?%;background:radial-gradient(circle at 50% 50%,rgba(202,102,224,0) 40%,#ca66e0);border-radius:50%;box-shadow:0 0 %?5?% %?5?% rgba(202,102,224,.5)}.ore .ore-lists .oct-float-item .oct-icon .icon[data-v-2207815a], .ore .ore-lists .ore-item-nav .oct-icon .icon[data-v-2207815a], .ore .ore-lists .ore-item .oct-icon .icon[data-v-2207815a], .ore .ore-lists .oct-login .oct-icon .icon[data-v-2207815a]{margin-top:%?10?%;height:%?38?%;width:%?38?%}.ore .ore-lists .ore-item-nav[data-v-2207815a]{right:%?30?%;top:12%}.ore .ore-lists .oct-login[data-v-2207815a]{left:42%;top:45%}.task-block[data-v-2207815a]{white-space:nowrap;margin-bottom:%?30?%}.task-block .item[data-v-2207815a]{background:#2b2449;display:inline-block;margin-left:%?30?%;width:%?260?%;border-radius:%?20?%;text-align:center;padding:%?20?% %?15?%}.task-block .item[data-v-2207815a]:first-child{margin-left:%?30?%}.task-block .item[data-v-2207815a]:last-child{margin-right:%?30?%}.task-block .item .icon[data-v-2207815a]{display:inline-block;margin:%?15?% 0;width:%?98?%;height:%?98?%;line-height:%?98?%;background:#1f183d;border-radius:50%;text-align:center}.task-block .item .icon uni-image[data-v-2207815a]{width:%?56?%;height:%?56?%;vertical-align:middle}.task-block .item .text[data-v-2207815a]{font-size:%?26?%;color:hsla(0,0%,100%,.4);line-height:%?40?%}.task-block .item .title[data-v-2207815a]{font-size:%?30?%;color:#fff;font-weight:700;line-height:%?50?%}.task-block .item .submit-title[data-v-2207815a]{font-size:%?22?%;color:hsla(0,0%,100%,.4);line-height:%?40?%}',""]),t.exports=e},bff0:function(t,e,n){"use strict";var i=n("4ea4");n("d3b7"),n("3ca3"),n("ddb0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("60bc"),a=i(n("e75e")),s=i(n("f052")),o={components:{lF2:s.default},data:function(){return{isAuth:!1,chains:{balance:0,height:0,number:0,score:0,up:0},account:{coin:0,crystal:0},crystalArr:[],allIds:[],categoryArr:[],help:{},userAuth:{certification:!1,company:!1,vip:!1}}},onShow:function(){this.isAuth=""!=this.$store.state.token,this.getIndex()},methods:{showHelp:function(t){uni.showModal({title:"提示",content:this.help[t],showCancel:!1,confirmColor:"#8b64fd"})},navAccount:function(t){this.isAuth?this.$Router.push({name:t}):this.$Router.push({name:"Login"})},issueGoosd:function(){var t=this,e="",n="";this.userAuth.certification&&this.userAuth.company&&this.userAuth.vip?this.$Router.push({name:"goodsManagement"}):(this.userAuth.certification||(e="暂未完成个人认证,无法发布商品权证",n="Personal"),this.userAuth.company||(e="暂未开通平台会员节点,无法发布商品权证",n="vipIndex"),this.userAuth.vip||(e="企业未认证或企业认证审核中,无法发布商品权证",n="User"),uni.showModal({title:"提示",content:e,cancelColor:"#555",cancelText:"稍后",confirmText:"vipIndex"===n?"去开通":"去认证",confirmColor:"#8b64fd",success:function(e){e.confirm&&t.$Router.push({name:n})}}))},ledCrystal:function(t){var e=this,i=uni.createInnerAudioContext();i.autoplay=!0,i.src=n("163c"),(0,r.thawlog)({thaw_id:this.crystalArr[t].log_id,all_ids:this.allIds}).then((function(i){uni.showToast({image:n("9769"),title:"+"+e.crystalArr[t].amount,duration:2e3}),e.$set(e.account,"crystal",i.crystal),e.ids=i.all_ids,"[]"!==JSON.stringify(i.last)?e.$set(e.crystalArr,t,i.last):e.$set(e.crystalArr,t,{amount:null})})).catch((function(t){uni.showToast({icon:"none",title:t})}))},getIndex:function(){var t=this;Promise.all([(0,r.crystals)(),(0,r.chain)()]).then((function(e){var n=e[0],i=e[1];n.needLogin||(t.account={coin:n.coin,crystal:n.crystal},t.userAuth={certification:n.is_certification,company:n.is_company,vip:n.is_vip},t.crystalArr=n.crystal_array,t.allIds=n.all_ids),t.chains=i.data,t.categoryArr=i.tasks,t.help=i.help,t.showCartc(i.movement)})).catch((function(t){uni.showToast({title:t.message,icon:"none"})}))},showCartc:function(t){this.$refs.chartChange.init((function(e){e.appendPadding=[10,30,10,15];var n=new a.default.Chart(e);return n.source(t,{date:{range:[0,1],type:"timeCat",mask:"MM-DD"},value:{tickCount:5}}),n.legend({position:"bottom",offsetY:0,offsetX:30}),n.area().position("date*value").color("name",["#5881d3","#ca66e0"]).shape("smooth"),n.line().position("date*value").color("name",["#5881d3","#ca66e0"]).shape("smooth",(function(t){return"预期收益率"===t?"line":"实际收益率"===t?"dash":void 0})),n.render(),n}))},JumpUrl:function(t,e){var n=t.openType;switch(n){case"switchTab":this.$Router.pushTab({name:t.path});break;case"web":window.location.href=t.path;break;case"navigateTo":this.$Router.push({name:t.path});break}}}};e.default=o},c0f5:function(t,e,n){var i=n("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/* 星球旋转 */.ball[data-v-2207815a]{position:absolute;height:%?480?%;width:%?480?%;top:50%;left:50%;margin-top:%?-240?%;margin-left:%?-240?%;border-radius:50%;-webkit-transform-style:preserve-3d;background:url(/static/background/chain-back-02.png) repeat-x;\n\t/* background-size: auto 100%; */background-size:%?1616?%;-webkit-animation:move-map-data-v-2207815a 60s infinite linear;-moz-animation:move-map-data-v-2207815a 60s infinite linear;-o-animation:move-map-data-v-2207815a 60s infinite linear;-ms-animation:move-map-data-v-2207815a 60s infinite linear;animation:move-map-data-v-2207815a 60s infinite linear;box-shadow:0 0 %?50?% %?50?% rgba(31,25,34,.2)}.shadow[data-v-2207815a]{position:absolute;top:1%;left:5%;width:90%;height:90%;border-radius:50%;-webkit-filter:blur(5px);filter:blur(5px);z-index:3;background:radial-gradient(circle at 50% 0,hsla(0,0%,100%,.6),hsla(0,0%,100%,0) 58%)}.ball[data-v-2207815a]:before,\n.ball[data-v-2207815a]::after{position:absolute;top:0;left:0;content:"";width:100%;height:100%;border-radius:50%;-webkit-filter:blur(5px);filter:blur(5px);z-index:2}.ball[data-v-2207815a]:before{background:radial-gradient(circle at 100% 50%,#5881d3,hsla(0,0%,100%,0) 45%)}.ball[data-v-2207815a]::after{background:radial-gradient(circle at 0 50%,#ca66e0,hsla(0,0%,100%,0) 45%)}@-webkit-keyframes move-map-data-v-2207815a{0%{background-position:%?-1616?% 0}100%{background-position:0 0}}@-ms-keyframes move-map-data-v-2207815a{0%{background-position:%?-1616?% 0}100%{background-position:0 0}}@keyframes move-map-data-v-2207815a{0%{background-position:%?-1616?% 0}100%{background-position:0 0}}\n/* 水晶漂浮动画 */.oct-float[data-v-2207815a]{-webkit-animation:4s octfloat-data-v-2207815a infinite;animation:4s octfloat-data-v-2207815a infinite}@-webkit-keyframes octfloat-data-v-2207815a{0%{margin-top:0}50%{margin-top:%?10?%}100%{margin-top:0}}@keyframes octfloat-data-v-2207815a{0%{margin-top:0}50%{margin-top:%?10?%}100%{margin-top:0}}',""]),t.exports=e},c35a:function(t,e,n){var i=n("23e7"),r=n("7e12");i({target:"Number",stat:!0,forced:Number.parseFloat!=r},{parseFloat:r})},c87c:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={uniIcons:n("f1a7").default,uToast:n("4d12").default},r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"total"},[i("v-uni-view",{staticClass:"item nowrap",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navAccount("walletProperty")}}},[i("v-uni-image",{attrs:{src:n("e547")}}),t._v(t._s(t.isAuth?"能量球"+t.account.coin:"查看能量球"))],1),i("v-uni-view",{staticClass:"item nowrap",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navAccount("Fragment")}}},[i("v-uni-image",{attrs:{src:n("9769")}}),t._v(t._s(t.isAuth?"能量碎片"+t.account.crystal:"查看能量碎片"))],1)],1),i("v-uni-view",{staticClass:"ore"},[i("v-uni-image",{staticClass:"ore-back",attrs:{src:n("fa4b"),mode:"widthFix"}}),i("v-uni-view",{staticClass:"ball"},[i("v-uni-view",{staticClass:"shadow"})],1),t.isAuth?[i("v-uni-view",{staticClass:"ore-lists"},[t._l(t.crystalArr,(function(e,r){return i("v-uni-view",{key:r,staticClass:"oct-float ore-item",style:{left:e.left+"%",top:e.top+"%"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.ledCrystal(r)}}},[null!==e.amount?[i("v-uni-view",{staticClass:"oct-icon"},[i("v-uni-image",{staticClass:"icon",attrs:{src:n("9769"),mode:"widthFix"}})],1),i("v-uni-view",{staticClass:"text"},[t._v(t._s(e.amount||"-"))])]:t._e()],2)})),i("v-uni-view",{staticClass:"oct-float ore-item-nav",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.issueGoosd.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"oct-icon"},[i("v-uni-image",{staticClass:"icon",attrs:{src:n("8ae7"),mode:"widthFix"}})],1),i("v-uni-view",{staticClass:"text"},[t._v("发权证"),i("uni-icons",{attrs:{type:"arrowright",color:"#FFFFFF",size:"12"}})],1)],1)],2)]:[i("v-uni-view",{staticClass:"ore-lists"},[i("v-uni-view",{staticClass:"oct-float oct-login",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$Router.push({name:"Login"})}}},[i("v-uni-view",{staticClass:"oct-icon"},[i("v-uni-image",{staticClass:"icon",attrs:{src:n("9769"),mode:"widthFix"}})],1),i("v-uni-view",{staticClass:"text"},[t._v("登录后领取")])],1)],1)]],2),i("v-uni-scroll-view",{staticClass:"task-block",attrs:{"scroll-x":"true"}},t._l(t.categoryArr,(function(e,n){return i("v-uni-view",{key:n,staticClass:"item",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.JumpUrl(e.url,e.title)}}},[i("v-uni-view",{staticClass:"text nowrap"},[t._v(t._s(e.sub_title))]),i("v-uni-view",{staticClass:"icon"},[i("v-uni-image",{attrs:{src:e.cover}})],1),i("v-uni-view",{staticClass:"title nowrap"},[t._v(t._s(e.title))]),i("v-uni-view",{staticClass:"submit-title nowrap"},[t._v("能量碎片"+t._s(e.tips))])],1)})),1),i("v-uni-view",{staticClass:"situation"},[i("v-uni-view",{staticClass:"header"},[i("v-uni-view",{staticClass:"header-item"},[i("v-uni-view",{staticClass:"title"},[t._v("平台能量球余量"),i("uni-icons",{staticClass:"help-icon",attrs:{type:"help-filled",size:"15",color:"rgba(255,255,255,.3)"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showHelp("balance")}}})],1),i("v-uni-view",{staticClass:"number nowrap"},[t._v(t._s(t.chains.balance))])],1),i("v-uni-view",{staticClass:"header-item"},[i("v-uni-view",{staticClass:"title"},[t._v("上期能量球价值"),i("uni-icons",{staticClass:"help-icon",attrs:{type:"help-filled",size:"15",color:"rgba(255,255,255,.3)"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showHelp("up")}}})],1),i("v-uni-view",{staticClass:"number nowrap"},[t._v(t._s(t.chains.up))])],1),i("v-uni-view",{staticClass:"header-item"},[i("v-uni-view",{staticClass:"title"},[t._v("昨日瓜分能量碎片"),i("uni-icons",{staticClass:"help-icon",attrs:{type:"help-filled",size:"15",color:"rgba(255,255,255,.3)"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showHelp("score")}}})],1),i("v-uni-view",{staticClass:"number nowrap"},[t._v(t._s(t.chains.score))])],1),i("v-uni-view",{staticClass:"header-item"},[i("v-uni-view",{staticClass:"title"},[t._v("区块链高度"),i("uni-icons",{staticClass:"help-icon",attrs:{type:"help-filled",size:"15",color:"rgba(255,255,255,.3)"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showHelp("height")}}})],1),i("v-uni-view",{staticClass:"number nowrap"},[t._v(t._s(t.chains.height))])],1),i("v-uni-view",{staticClass:"header-item"},[i("v-uni-view",{staticClass:"title"},[t._v("已开通节点数"),i("uni-icons",{staticClass:"help-icon",attrs:{type:"help-filled",size:"15",color:"rgba(255,255,255,.3)"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showHelp("number")}}})],1),i("v-uni-view",{staticClass:"number nowrap"},[t._v(t._s(t.chains.number))])],1)],1),i("v-uni-view",{staticClass:"chart"},[i("v-uni-view",{staticClass:"title"},[t._v("累计盈利和能量球价值走势图")]),i("v-uni-view",{staticClass:"chart-f2"},[i("l-f2",{ref:"chartChange"})],1)],1),i("u-toast",{ref:"uToast"})],1)],1)},a=[]},caa6:function(t,e,n){"use strict";var i=n("4ea4");n("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("e437")),a={name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},fontFamily:{type:String,default:""}},data:function(){return{icons:r.default}},methods:{_onClick:function(){this.$emit("click")}}};e.default=a},cb29:function(t,e,n){var i=n("23e7"),r=n("81d5"),a=n("44d2");i({target:"Array",proto:!0},{fill:r}),a("fill")},d1a6:function(t,e,n){"use strict";n.r(e);var i=n("c87c"),r=n("62f9");for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("4818"),n("862c");var s,o=n("f0c5"),l=Object(o["a"])(r["default"],i["b"],i["c"],!1,null,"2207815a",null,!1,i["a"],s);e["default"]=l.exports},dca8:function(t,e,n){var i=n("23e7"),r=n("bb2f"),a=n("d039"),s=n("861d"),o=n("f183").onFreeze,l=Object.freeze,c=a((function(){l(1)}));i({target:"Object",stat:!0,forced:c,sham:!r},{freeze:function(t){return l&&s(t)?l(o(t)):t}})},e437:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={pulldown:"",refreshempty:"",back:"",forward:"",more:"","more-filled":"",scan:"",qq:"",weibo:"",weixin:"",pengyouquan:"",loop:"",refresh:"","refresh-filled":"",arrowthindown:"",arrowthinleft:"",arrowthinright:"",arrowthinup:"","undo-filled":"",undo:"",redo:"","redo-filled":"",bars:"",chatboxes:"",camera:"","chatboxes-filled":"","camera-filled":"","cart-filled":"",cart:"","checkbox-filled":"",checkbox:"",arrowleft:"",arrowdown:"",arrowright:"","smallcircle-filled":"",arrowup:"",circle:"","eye-filled":"","eye-slash-filled":"","eye-slash":"",eye:"","flag-filled":"",flag:"","gear-filled":"",reload:"",gear:"","hand-thumbsdown-filled":"","hand-thumbsdown":"","hand-thumbsup-filled":"","heart-filled":"","hand-thumbsup":"",heart:"",home:"",info:"","home-filled":"","info-filled":"","circle-filled":"","chat-filled":"",chat:"","mail-open-filled":"","email-filled":"","mail-open":"",email:"",checkmarkempty:"",list:"","locked-filled":"",locked:"","map-filled":"","map-pin":"","map-pin-ellipse":"",map:"","minus-filled":"","mic-filled":"",minus:"",micoff:"",mic:"",clear:"",smallcircle:"",close:"",closeempty:"",paperclip:"",paperplane:"","paperplane-filled":"","person-filled":"","contact-filled":"",person:"",contact:"","images-filled":"",phone:"",images:"",image:"","image-filled":"","location-filled":"",location:"","plus-filled":"",plus:"",plusempty:"","help-filled":"",help:"","navigate-filled":"",navigate:"","mic-slash-filled":"",search:"",settings:"",sound:"","sound-filled":"","spinner-cycle":"","download-filled":"","personadd-filled":"","videocam-filled":"",personadd:"",upload:"","upload-filled":"",starhalf:"","star-filled":"",star:"",trash:"","phone-filled":"",compose:"",videocam:"","trash-filled":"",download:"","chatbubble-filled":"",chatbubble:"","cloud-download":"","cloud-upload-filled":"","cloud-upload":"","cloud-download-filled":"",headphones:"",shop:""};e.default=i},e547:function(t,e){t.exports="data:image/png;base64,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"},e75e:function(t,e,n){(function(t){n("a4d3"),n("e01a"),n("d28b"),n("99af"),n("cb29"),n("4de4"),n("4160"),n("a630"),n("caad"),n("c975"),n("d81d"),n("26e9"),n("fb6a"),n("45fc"),n("4e82"),n("a434"),n("6c57"),n("6b934"),n("a9e3"),n("35b3"),n("8ba4"),n("c35a"),n("dca8"),n("7039"),n("3410"),n("b64b"),n("131a"),n("d3b7"),n("acd8"),n("e25e"),n("4d63"),n("ac1f"),n("25f0"),n("2532"),n("3ca3"),n("466d"),n("5319"),n("1276"),n("159b"),n("ddb0"),function(t,n){n(e)}(0,(function(e){"use strict";var n=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},i=function(t,e){if(!n(t))return t;for(var i=[],r=0;r-1})(e,t)||e.push(t)})),e};function v(t){if(n(t))return t[0]}function m(t){if(n(t))return t[t.length-1]}var y=function(t,e){var n=e.toString(),i=n.indexOf(".");if(-1===i)return Math.round(t);var r=n.substr(i+1).length;return r>20&&(r=20),parseFloat(t.toFixed(r))},x=function(t){return a(t,"Number")},b=function(t){return o(t)?"":t.toString()},w=function(t){var e=b(t);return e.charAt(0).toLowerCase()+e.substring(1)};function _(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}var S=function(t){var e=b(t);return e.charAt(0).toUpperCase()+e.substring(1)},M={}.toString,k=function(t){return a(t,"Boolean")},C=function(t){return a(t,"Date")},P=Object.prototype;function A(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function T(t,e,n,i){return e&&A(t,e),n&&A(t,n),i&&A(t,i),t}function I(t,e,n,i){for(var r in n=n||0,i=i||5,e)if(e.hasOwnProperty(r)){var a=e[r];null!==a&&d(a)?(d(t[r])||(t[r]={}),n0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),C(t)&&(t=t.getTime()),t}var dt=Object.freeze({__proto__:null,Array:W,upperFirst:S,lowerFirst:w,isString:p,isNumber:x,isBoolean:k,isFunction:s,isDate:C,isArray:l,isNil:o,isObject:c,isPlainObject:d,isEqual:E,deepMix:D,mix:T,each:u,uniq:g,find:function(t,e){if(!l(t))return null;var n;if(s(e)&&(n=e),d(e)&&(n=function(t){return function(t,e){var n=h(e),i=n.length;if(o(t))return!i;for(var r=0;r=0;return n?r?2*Math.PI-i:i:r?i:2*Math.PI-i},zero:function(t){return 0===t[0]&&0===t[1]},distance:function(t,e){var n=e[0]-t[0],i=e[1]-t[1];return Math.sqrt(n*n+i*i)},clone:function(t){return[t[0],t[1]]},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},transformMat2d:function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}},Pt=[1,0,0,1,0,0],At=function(){var t=e.prototype;function e(t){var e,n;this._initDefaultCfg(),T(this,t),this.plot?(e=this.plot.bl,n=this.plot.tr,this.start=e,this.end=n):(e=this.start,n=this.end),this.init(e,n)}return t._initDefaultCfg=function(){},t._scale=function(t,e){var n=this.matrix,i=this.center;kt.translate(n,n,[i.x,i.y]),kt.scale(n,n,[t,e]),kt.translate(n,n,[-i.x,-i.y])},t.init=function(t,e){this.matrix=[].concat(Pt),this.center={x:(e.x-t.x)/2+t.x,y:(e.y-t.y)/2+t.y},this.scale&&this._scale(this.scale[0],this.scale[1])},t.convertPoint=function(t){var e=this._convertPoint(t),n=e.x,i=e.y;if(!kt.isChanged(this.matrix))return{x:n,y:i};var r=[n,i];return Ct.transformMat2d(r,r,this.matrix),{x:r[0],y:r[1]}},t.invertPoint=function(t){return this._invertPoint(t)},t._convertPoint=function(t){return t},t._invertPoint=function(t){return t},t.reset=function(t){this.plot=t;var e=t.bl,n=t.tr;this.start=e,this.end=n,this.init(e,n)},e}(),Tt=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="cartesian",this.transposed=!1,this.isRect=!0},n.init=function(e,n){t.prototype.init.call(this,e,n),this.x={start:e.x,end:n.x},this.y={start:e.y,end:n.y}},n._convertPoint=function(t){var e=this.transposed,n=e?"y":"x",i=e?"x":"y",r=this.x,a=this.y;return{x:r.start+(r.end-r.start)*t[n],y:a.start+(a.end-a.start)*t[i]}},n._invertPoint=function(t){var e=this.transposed,n=e?"y":"x",i=e?"x":"y",r=this.x,a=this.y,s={};return s[n]=(t.x-r.start)/(r.end-r.start),s[i]=(t.y-a.start)/(a.end-a.start),s},e}(At);function It(t,e){return p(e)?e:t.invert(t.scale(e))}At.Cartesian=Tt,At.Rect=Tt;var Dt=function(){function t(t){var e=this;this.type="base",this.name=null,this.method=null,this.values=[],this.scales=[],this.linear=null;var n=null,i=this.callback;if(t.callback){var r=t.callback;n=function(){for(var t=arguments.length,n=new Array(t),a=0;aa&&(a=u)}(re.max)&&e.change({min:r,max:a})},n._sort=function(t){var e=this.getXScale(),n=e.field,i=e.type;"identity"!==i&&e.values.length>1&&u(t,(function(t){t.sort((function(t,r){return"timeCat"===i?ft(t._origin[n])-ft(r._origin[n]):e.translate(t._origin[n])-e.translate(r._origin[n])}))})),this.set("hasSorted",!0),this.set("dataArray",t)},n.paint=function(){var t=this.get("mappingData"),e=[],n=this.getShapeFactory();n.setCoord(this.get("coord")),this._beforeMapping(t);for(var i=0,r=t.length;i5?c:h,u=t.slice(0,5).map((function(t){var e=t._origin;return i.getText(e[i.field])+":"+r.getText(e[r.field])}));e.push(_(o,{index:n+1,count:a,part:3,name:s[p.field],values:u.join(" ")}))}}}))}t.set("ariaLabel",e.join(""))}},n.createShapePointsCfg=function(t){var e=this.getXScale(),n=this.getYScale();return{x:this._normalizeValues(t[e.field],e),y:n?this._normalizeValues(t[n.field],n):t.y?t.y:.1,y0:n?n.scale(this.getYMinValue()):void 0}},n.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max;return this.get("startOnZero")?n<=0&&e<=0?n:e>=0?e:0:e},n._normalizeValues=function(t,e){var n=[];if(l(t))for(var i=0,r=t.length;ie);r++){if(i[i.length-1][1]<=e){r=i.length-1;break}if(i[r][0]<=e&&i[r][1]>e)break}}else{(i=t.values).sort((function(t,e){return t-e}));for(var o=i.length;re)&&!((i[r-1]+i[r])/2<=e&&(i[r+1]+i[r])/2>e);r++)if((i[i.length-2]+i[i.length-1])/2<=e){r=i.length-1;break}}return i[r]},n.getSnapRecords=function(t){var e=this,n=e.get("coord"),i=e.getXScale(),r=e.getYScale(),a=i.field,s=e.get("dataArray");this.get("hasSorted")||this._sort(s);var c=[],u=n.invertPoint(t),h=u.x;e.isInCircle()&&!n.transposed&&h>(1+i.rangeMax())/2&&(h=i.rangeMin());var f=i.invert(h);i.isCategory||(f=e._getSnap(i,f));var d=[];if(s.forEach((function(t){t.forEach((function(t){var n=o(t._origin)?t[a]:t._origin[a];e._isEqual(n,f,i)&&d.push(t)}))})),this.hasAdjust("stack")&&n.isPolar&&n.transposed){if(h>=0&&h<=1){var p=r.invert(u.y);p=e._getSnap(r,p,d),d.forEach((function(t){(l(p)?t._originY.toString()===p.toString():t._originY===p)&&c.push(t)}))}}else c=d;return c},n.getRecords=function(t){var e=this,n=this.getXScale(),i=this.get("dataArray"),r=n.field;return i.map((function(i){for(var a=i.length-1;a>=0;a--){var s=i[a],l=o(s._origin)?s[r]:s._origin[r];if(e._isEqual(l,t,n))return s}return null}))},n._isEqual=function(t,e,n){return"timeCat"===n.type?ft(t)===e:e===t},n.position=function(t){return this._setAttrOptions("position",{field:t}),this},n.color=function(t,e){return this._createAttrOption("color",t,e,mt.colors),this},n.size=function(t,e){return this._createAttrOption("size",t,e,mt.sizes),this},n.shape=function(t,e){var n=this.get("type"),i=mt.shapes[n]||[];return this._createAttrOption("shape",t,e,i),this},n.style=function(t,e){var n,i=this.get("styleOptions");return i||(i={},this.set("styleOptions",i)),c(t)&&(e=t,t=null),t&&(n=Zt(t)),i.fields=n,i.style=e,this},n.adjust=function(t){return p(t)&&(t={type:t}),this.set("adjust",t),this},n.animate=function(t){return this.set("animateCfg",t),this},n.changeData=function(t){this.set("data",t),this.set("scales",{}),this.get("isInit")&&(this.set("isInit",!1),this.init())},n.clearInner=function(){var t=this.get("container");t&&t.clear()},n.reset=function(){this.set("isInit",!1),this.set("attrs",{}),this.set("attrOptions",{}),this.set("adjust",null),this.clearInner()},n.clear=function(){this.clearInner()},n.destroy=function(){this.set("isInit",!1),this.clear(),t.prototype.destroy.call(this)},n._display=function(t){this.set("visible",t);var e=this.get("container"),n=e.get("canvas");e.set("visible",t),n.draw()},n.show=function(){this._display(!0)},n.hide=function(){this._display(!1)},e}(St),Qt={};function $t(t){return Qt[t]}function te(t,e){Qt[t]=e}var ee=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){T(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return N(this.ticks,(function(e,n){return c(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,i=n?n(t,e):t;return o(i)||!s(i.toString)?"":i.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){T(this,this.__cfg__),this.setDomain(),F(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if(p(t)){var n=$t(t);if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else s(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return v(this.range)},t.prototype.rangeMax=function(){return m(this.range)},t.prototype.calcPercent=function(t,e,n){return x(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),ne=function(t,e){return(ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)}; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */function ie(t,e){function n(){this.constructor=t}ne(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function re(){for(var t=0,e=0,n=arguments.length;ethis.max?NaN:this.values[i]},e.prototype.getText=function(e){for(var n=[],i=1;i1?t-1:t}},e}(ee),se=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,oe="[^\\s]+",le=/\[([^]*?)\]/gm;function ce(t,e){for(var n=[],i=0,r=t.length;i-1?i:null}};function he(t){for(var e=[],n=1;n3?0:(t-t%10!=10?1:0)*t%10]}},ve=he({},ge),me=function(t){return ve=he(ve,t)},ye=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},xe=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length0?"-":"+")+xe(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+xe(Math.floor(Math.abs(e)/60),2)+":"+xe(Math.abs(e)%60,2)}},we=function(t){return+t-1},_e=[null,"[1-9]\\d?"],Se=[null,oe],Me=["isPm",oe,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],ke=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],Ce={D:["day","[1-9]\\d?"],DD:["day","\\d\\d"],Do:["day","[1-9]\\d?"+oe,function(t){return parseInt(t,10)}],M:["month","[1-9]\\d?",we],MM:["month","\\d\\d",we],YY:["year","\\d\\d",function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour","[1-9]\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","[1-9]\\d?"],HH:["hour","\\d\\d"],m:["minute","[1-9]\\d?"],mm:["minute","\\d\\d"],s:["second","[1-9]\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond","\\d\\d",function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:_e,dd:_e,ddd:Se,dddd:Se,MMM:["month",oe,ue("monthNamesShort")],MMMM:["month",oe,ue("monthNames")],a:Me,A:Me,ZZ:ke,Z:ke},Pe={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Ae=function(t){return he(Pe,t)},Te=function(t,e,n){if(void 0===e&&(e=Pe.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var i=[];e=(e=Pe[e]||e).replace(le,(function(t,e){return i.push(e),"@@@"}));var r=he(he({},ve),n);return(e=e.replace(se,(function(e){return be[e](t,r)}))).replace(/@@@/g,(function(){return i.shift()}))};function Ie(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=Pe[e]||e,t.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},r=[],a=[],s=e.replace(le,(function(t,e){return a.push(ye(e)),"@@@"})),o={},l={};s=ye(s).replace(se,(function(t){var e=Ce[t],n=e[0],i=e[1],a=e[3];if(o[n])throw new Error("Invalid format. "+n+" specified twice in format");return o[n]=!0,a&&(l[a]=!0),r.push(e),"("+i+")"})),Object.keys(l).forEach((function(t){if(!o[t])throw new Error("Invalid format. "+t+" is required in specified format")})),s=s.replace(/@@@/g,(function(){return a.shift()}));var c=t.match(new RegExp(s,"i"));if(!c)return null;for(var u=he(he({},ve),n),h=1;h0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),C(t)&&(t=t.getTime()),t}var Ee=36e5,Ne=24*Ee,ze=31*Ne,Xe=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",Ee],["HH",6*Ee],["HH",12*Ee],["YYYY-MM-DD",Ne],["YYYY-MM-DD",4*Ne],["YYYY-WW",7*Ne],["YYYY-MM",ze],["YYYY-MM",4*ze],["YYYY-MM",6*ze],["YYYY",380*Ne]];function Re(t,e,n){var i,r=(i=function(t){return t[1]},function(t,e,n,r){for(var a=o(n)?0:n,s=o(r)?t.length:r;a>>1;i(t[l])>e?s=l:a=l+1}return a})(Xe,(e-t)/n)-1,a=Xe[r];return r<0?a=Xe[0]:r>=Xe.length&&(a=m(Xe)),a}var Le=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return ie(e,t),e.prototype.translate=function(t){t=Fe(t);var e=this.values.indexOf(t);return-1===e&&(e=x(t)&&t-1){var i=this.values[n],r=this.formatter;return r?r(i,e):Oe(i,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;u(e,(function(t,n){e[n]=Fe(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(ae),Be=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return ie(e,t),e.prototype.scale=function(t){if(o(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=v(e),i=m(e);nthis.max&&(this.max=i),o(this.minLimit)||(this.min=n),o(this.maxLimit)||(this.max=i)},e.prototype.setDomain=function(){var t=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(l(t[0])){for(var n=[],i=0;ithis.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=i(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(ee),je=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return ie(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(Be);function Ge(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)}function He(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function We(t,e,n){o(n)&&(n=Math.max.apply(null,t));var i=n;return u(t,(function(t){t>0&&t1&&(i=1),i}var Ve=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return ie(e,t),e.prototype.invert=function(t){var e,n=this.base,i=He(n,this.max),r=this.rangeMin(),a=this.rangeMax()-r,s=this.positiveMin;if(s){if(0===t)return 0;var o=1/(i-(e=He(n,s/n)))*a;if(t=0?1:-1;return Math.pow(a,n)*s},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var i=this.exponent;return(Ge(i,t)-Ge(i,n))/(Ge(i,e)-Ge(i,n))},e}(Be),Je=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return ie(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),i=this.formatter;return i?i(n,e):Oe(n,this.mask)},e.prototype.scale=function(e){var n=e;return(p(n)||C(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return Fe(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if(o(e)&&x(e)||(this.min=this.translate(this.min)),o(n)&&x(n)||(this.max=this.translate(this.max)),t&&t.length){var i=[],r=1/0,a=r,s=0;u(t,(function(t){var e=Fe(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");r>e?(a=r,r=e):a>e&&(a=e),s1&&(this.minTickInterval=a-r),o(e)&&(this.min=r),o(n)&&(this.max=s)}},e}(je),Ue=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return ie(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,i=this.getInvertPercent(t),r=Math.floor(i*(n-1));if(r>=n-1)return m(e);if(r<0)return v(e);var a=e[r],s=r/(n-1);return a+(i-s)/((r+1)/(n-1)-s)*(e[r+1]-a)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||(m(e)!==this.max&&e.push(this.max),v(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(tm(e))return 1;var n=0;return u(e,(function(e,i){if(!(t>=e))return!1;n=i})),n/(e.length-1)},e}(Be),Ze=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return ie(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(Ue),Ke={};function Qe(t){return Ke[t]}function $e(t,e){if(Qe(t))throw new Error("type '"+t+"' existed.");Ke[t]=e}var tn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return ie(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&x(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return te[1]?NaN:this.values[0]},e}(ee),en=[1,5,2,2.5,4,3],nn=100*Number.EPSILON;function rn(t,e,n,i,r,a){var s=z(e),o=Y(e,t),l=0,c=function(t,e){return(t%e+e)%e}(i,a);return(c=0&&(l=1),1-o/(s-1)-n+l}function an(t,e,n){var i=z(e);return 1-Y(e,t)/(i-1)-n+1}function sn(t,e,n,i,r,a){var s=(t-1)/(a-r),o=(e-1)/(Math.max(a,i)-Math.min(n,r));return 2-Math.max(s/o,o/s)}function on(t,e){return t>=e?2-(t-1)/(e-1):1}function ln(t,e,n,i){var r=e-t;return 1-.5*(Math.pow(e-i,2)+Math.pow(t-n,2))/Math.pow(.1*r,2)}function cn(t,e,n){var i=e-t;if(n>i){var r=(n-i)/2;return 1-Math.pow(r,2)/Math.pow(.1*i,2)}return 1}function un(t,e,n,i,r,a){if(void 0===n&&(n=5),void 0===i&&(i=!0),void 0===r&&(r=en),void 0===a&&(a=[.25,.2,.5,.05]),"number"!=typeof t||"number"!=typeof e)return{min:0,max:0,ticks:[]};if(t===e||1===n)return{min:t,max:e,ticks:[t]};for(var s={score:-2,lmin:0,lmax:0,lstep:0},o=1;o<1/0;){for(var l=0,c=r;lw)g+=1;else{for(var _=b;_<=w;_+=1){var S=_*(y/o),M=S+y*(f-1),k=y,C=rn(u,r,o,S,M,k),P=ln(t,e,S,M),A=sn(f,n,t,e,S,M),T=a[0]*C+a[1]*P+a[2]*A+1*a[3];T>s.score&&(!i||S<=t&&M>=e)&&(s.lmin=S,s.lmax=M,s.lstep=k,s.score=T)}g+=1}}f+=1}}o+=1}for(var I=Number.isInteger(s.lstep)?0:Math.ceil(Math.abs(Math.log10(s.lstep))),D=[],Y=s.lmin;Y<=s.lmax;Y+=s.lstep)D.push(Y);var O=I?N(D,(function(t){return Number.parseFloat(t.toFixed(I))})):D;return{min:Math.min(t,v(O)),max:Math.max(e,m(O)),ticks:O}}function hn(t){var e=t.values,n=t.tickInterval,r=t.tickCount,a=e;if(x(n))return i(a,(function(t,e){return e%n==0}));var s=t.min,l=t.max;if(o(s)&&(s=0),o(l)&&(l=e.length-1),x(r)&&r=s&&t<=l})).map((function(t){return e[t]}))}return e.slice(s,l+1)}var fn=Math.sqrt(50),dn=Math.sqrt(10),pn=Math.sqrt(2),gn=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=5);var i,r=this._domain.slice(),a=0,s=this._domain.length-1,o=this._domain[a],l=this._domain[s];return l0?i=vn(o=Math.floor(o/i)*i,l=Math.ceil(l/i)*i,t):i<0&&(i=vn(o=Math.ceil(o*i)/i,l=Math.floor(l*i)/i,t)),i>0?(r[a]=Math.floor(o/i)*i,r[s]=Math.ceil(l/i)*i,this.domain(r)):i<0&&(r[a]=Math.ceil(o*i)/i,r[s]=Math.floor(l*i)/i,this.domain(r)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var i,r,a,s,o=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((i=e0)for(t=Math.ceil(t/s),e=Math.floor(e/s),a=new Array(r=Math.ceil(e-t+1));++o=0?(a>=fn?10:a>=dn?5:a>=pn?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(a>=fn?10:a>=dn?5:a>=pn?2:1)}function mn(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}function yn(t,e,n){var i=mn(t,n,"floor"),r=mn(e,n,"ceil");i=y(i,n),r=y(r,n);for(var a=[],s=i;s<=r;s+=n){var o=y(s,n);a.push(o)}return{min:i,max:r,ticks:a}}function xn(t,e,n){var i,r=t.minLimit,a=t.maxLimit,s=t.min,l=t.max,c=t.tickCount,u=void 0===c?5:c,h=o(r)?o(e)?s:e:r,f=o(a)?o(n)?l:n:a;if(h>f&&(f=(i=[h,f])[0],h=i[1]),u<=2)return[h,f];for(var d=(f-h)/(u-1),p=[],g=0;g1&&(r*=Math.ceil(s)),i&&r31536e6)for(var l=_n(n),c=Math.ceil(a/31536e6),u=o;u<=l+c;u+=c)s.push(Sn(u));else if(a>ze){var h=Math.ceil(a/ze),f=Mn(e),d=function(t,e){var n=_n(t),i=_n(e),r=Mn(t);return 12*(i-n)+(Mn(e)-r)%12}(e,n);for(u=0;u<=d+h;u+=h)s.push(kn(o,u+f))}else if(a>Ne){var p=(x=new Date(e)).getFullYear(),g=x.getMonth(),v=x.getDate(),m=Math.ceil(a/Ne),y=function(t,e){return Math.ceil((e-t)/Ne)}(e,n);for(u=0;uEe){p=(x=new Date(e)).getFullYear(),g=x.getMonth(),m=x.getDate();var x,b=x.getHours(),w=Math.ceil(a/Ee),_=function(t,e){return Math.ceil((e-t)/Ee)}(e,n);for(u=0;u<=_+w;u+=w)s.push(new Date(p,g,m,b+u).getTime())}else if(a>6e4){var S=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),M=Math.ceil(a/6e4);for(u=0;u<=S+M;u+=M)s.push(e+6e4*u)}else{var k=a;k<1e3&&(k=1e3);var C=1e3*Math.floor(e/1e3),P=Math.ceil((n-e)/1e3),A=Math.ceil(k/1e3);for(u=0;u=512&&console.warn("Notice: current ticks length("+s.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+a+") is too small, increase the value to solve the problem!"),s})),te("log",(function(t){var e,n=t.base,i=t.tickCount,r=t.min,a=t.max,s=t.values,o=He(n,a);if(r>0)e=Math.floor(He(n,r));else{var l=We(s,n,a);e=Math.floor(He(n,l))}for(var c=o-e,u=Math.ceil(c/i),h=[],f=e;f=0?1:-1;return Math.pow(t,e)*n}))})),te("quantile",(function(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var i=n.slice().sort((function(t,e){return t-e})),r=[],a=0;a=n?r[r.length-1]=s:r.push(s)),r},Pn=[1,1.2,1.5,2,2.2,2.4,2.5,3,4,5,6,7.5,8,10];function An(t){var e=1;if(0===(t=Math.abs(t)))return e;if(t<1){for(var n=0;t<1;)e/=10,t*=10,n++;return e.toString().length>12&&(e=parseFloat(e.toFixed(n))),e}for(;t>10;)e*=10,t/=10;return e}function Tn(t){var e=t.interval,n=t.tickCount,i=t.max,r=t.min;return Math.floor(r/e)*e+(n-1)*e>=i}function In(t){var e=t.toString(),n=e.indexOf("."),i=e.indexOf("e-"),r=i>=0?parseInt(e.substr(i+2),10):e.substr(n+1).length;return r>20&&(r=20),r}function Dn(t,e){return parseFloat(t.toFixed(e))}var Yn=Qe("linear"),On=Qe("identity"),Fn=Qe("category"),En=Qe("timeCat");function Nn(t){Object.keys(t).forEach((function(e){delete t[e]}))}te("cat",Cn),te("time-cat",Cn),te("wilkinson-extended",(function(t){var e=t||{},n=e.tickCount,i=e.tickInterval,r=t||{},a=r.min,s=r.max;a=isNaN(a)?0:a,s=isNaN(s)?0:s;var o=n&&n>=2?n:5,l=i||function(t){var e=t.tickCount,n=t.min,i=t.max;if(n===i)return 1*An(i);for(var r=(i-n)/(e-1),a=An(r),s=r/a,o=i/a,l=n/a,c=0,u=0;u0?t.change({min:0}):r<0&&t.change({max:0}))},e.clear=function(){Nn(this.defs),Nn(this.scales),this.data=null},t}(),Xn=function(){var t=e.prototype;function e(t){this._initDefaultCfg(),T(this,t),this.draw()}return t._initDefaultCfg=function(){this.ticks=[],this.tickLine={},this.offsetFactor=1,this.frontContainer=null,this.backContainer=null,this.gridPoints=[]},t.draw=function(){var t=this.line,e=this.tickLine,n=this.label,i=this.grid;i&&this.drawGrid(i),e&&this.drawTicks(e),t&&this.drawLine(t),n&&this.drawLabels()},t.drawTicks=function(t){var e=this,n=e.ticks,i=t.length,r=e.getContainer(t.top);u(n,(function(n){var a=e.getOffsetPoint(n.value),s=e.getSidePoint(a,i);r.addShape("line",{className:"axis-tick",attrs:T({x1:a.x,y1:a.y,x2:s.x,y2:s.y},t)})._id=e._id+"-ticks"}))},t.drawLabels=function(){var t=this,e=t.labelOffset;u(t.labels,(function(n){var i=t.getContainer(n.get("top")),r=t.getOffsetPoint(n.get("value")),a=t.getSidePoint(r,e),s=a.x,o=a.y;n.attr(T({x:s,y:o},t.getTextAlignInfo(r,e),n.get("textStyle"))),n._id=t._id+"-"+n.attr("text"),i.add(n)}))},t.drawLine=function(){},t.drawGrid=function(t){var e=this,n=e.gridPoints,i=e.ticks,r=t,a=n.length;u(n,(function(n,o){if(s(t)){var l=i[o]||{},c=t(l.text,o,a);r=c?T({},mt._defaultAxis.grid,c):null}if(r){var u,h=r.type,f=n.points,d=e.getContainer(r.top);if("arc"===h){var p=e.center,g=e.startAngle,v=e.endAngle,m=Ct.length([f[0].x-p.x,f[0].y-p.y]);u=d.addShape("Arc",{className:"axis-grid",attrs:T({x:p.x,y:p.y,startAngle:g,endAngle:v,r:m},r)})}else u=d.addShape("Polyline",{className:"axis-grid",attrs:T({points:f},r)});u._id=n._id}}))},t.getOffsetPoint=function(){},t.getAxisVector=function(){},t.getOffsetVector=function(t,e){var n=this.getAxisVector(t),i=Ct.normalize([],n),r=this.offsetFactor,a=[-1*i[1]*r,i[0]*r];return Ct.scale([],a,e)},t.getSidePoint=function(t,e){var n=this.getOffsetVector(t,e);return{x:t.x+n[0],y:t.y+n[1]}},t.getTextAlignInfo=function(t,e){var n=this.getOffsetVector(t,e);return{textAlign:n[0]>0?"left":n[0]<0?"right":"center",textBaseline:n[1]>0?"top":n[1]<0?"bottom":"middle"}},t.getContainer=function(t){var e=this.frontContainer,n=this.backContainer;return t?e:n},e}(),Rn=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.start=null,this.end=null},n.getOffsetPoint=function(t){var e=this.start,n=this.end;return{x:e.x+(n.x-e.x)*t,y:e.y+(n.y-e.y)*t}},n.getAxisVector=function(){var t=this.start,e=this.end;return[e.x-t.x,e.y-t.y]},n.drawLine=function(t){var e=this.getContainer(t.top),n=this.start,i=this.end;e.addShape("line",{className:"axis-line",attrs:T({x1:n.x,y1:n.y,x2:i.x,y2:i.y},t)})},e}(Xn);Xn.Line=Rn;var Ln=function(){function t(t){this.axisCfg={},this.frontPlot=null,this.backPlot=null,this.axes={},T(this,t)}var e=t.prototype;return e._isHide=function(t){var e=this.axisCfg;return!e||!1===e[t]},e._getLinePosition=function(t,e,n,i){var r="",a=t.field,s=this.axisCfg;return s[a]&&s[a].position?r=s[a].position:"x"===e?r=i?"left":"bottom":"y"===e&&(r=n?"right":"left",i&&(r="bottom")),r},e._getLineCfg=function(t,e,n){var i,r,a=1;return"x"===e?(i={x:0,y:0},r={x:1,y:0}):"right"===n?(i={x:1,y:0},r={x:1,y:1}):(i={x:0,y:0},r={x:0,y:1},a=-1),t.transposed&&(a*=-1),{offsetFactor:a,start:t.convertPoint(i),end:t.convertPoint(r)}},e._getCircleCfg=function(t){return{startAngle:t.startAngle,endAngle:t.endAngle,center:t.center,radius:t.circleRadius}},e._getRadiusCfg=function(t){var e,n;return t.transposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{offsetFactor:-1,start:t.convertPoint(e),end:t.convertPoint(n)}},e._getAxisCfg=function(t,e,n,i,r){var a=this,o=this,l=this.axisCfg,c=e.getTicks(),h=D({ticks:c,frontContainer:this.frontPlot,backContainer:this.backPlot},r,l[e.field]),f=[],d=h.label,p=c.length,g=0,v=0,m=d;return u(c,(function(t,e){if(s(d)){var n=d(t.text,e,p);m=n?T({},mt._defaultAxis.label,n):null}if(m){var i={};m.textAlign&&(i.textAlign=m.textAlign),m.textBaseline&&(i.textBaseline=m.textBaseline);var r=(m.top?a.frontPlot:a.backPlot).addShape("text",{className:"axis-label",aria:!1,attrs:T({x:0,y:0,text:t.text,fontFamily:o.chart.get("canvas").get("fontFamily")},m),value:t.value,textStyle:i,top:m.top,context:o.chart.get("canvas").get("context")});f.push(r);var l=r.getBBox(),c=l.width,u=l.height;g=Math.max(g,c),v=Math.max(v,u)}})),h.labels=f,h.maxWidth=g,h.maxHeight=v,h},e._createAxis=function(t,e,n,i,r){void 0===r&&(r="");var a,s,o,l=t.type,c=t.transposed;if("cartesian"===l||"rect"===l){var u=this._getLinePosition(e,i,r,c);(o=mt.axis[u]).position=u,a="Line",s=u}else"x"===i&&!c||"y"===i&&c?(o=mt.axis.circle,a="Circle",s="circle"):(o=mt.axis.radius,a="Line",s="radius");var h=this._getAxisCfg(t,e,n,i,o);h.type=a,h.dimType=i,h.verticalScale=n,h.index=r,this.axes[s]=h},e.createAxis=function(t,e,n){var i=this;e&&!i._isHide(e.field)&&i._createAxis(t,e,n[0],"x"),u(n,(function(n,r){i._isHide(n.field)||i._createAxis(t,n,e,"y",r)}));var r=this.axes,a=i.chart;if(a._isAutoPadding()){var s=ut(a.get("padding")),l=ut(a.get("appendPadding")),c=a.get("legendRange")||{top:0,right:0,bottom:0,left:0},h=["auto"===s[0]?c.top+2*l[0]:s[0],"auto"===s[1]?c.right+l[1]:s[1],"auto"===s[2]?c.bottom+l[2]:s[2],"auto"===s[3]?c.left+l[3]:s[3]];if(t.isPolar){var f=r.circle;if(f){var d=f.maxHeight,p=f.maxWidth,g=f.labelOffset;h[0]+=d+g,h[1]+=p+g,h[2]+=d+g,h[3]+=p+g}}else{if(r.right&&"auto"===s[1]){var v=r.right,m=v.maxWidth,y=v.labelOffset;h[1]+=m+y}if(r.left&&"auto"===s[3]){var x=r.left,b=x.maxWidth,w=x.labelOffset;h[3]+=b+w}if(r.bottom&&"auto"===s[2]){var _=r.bottom,S=_.maxHeight,M=_.labelOffset;h[2]+=S+M}}a.set("_padding",h),a._updateLayout(h)}u(r,(function(e){var n,r=e.type,a=e.grid,s=e.verticalScale,l=e.ticks,c=e.dimType,h=e.position,f=e.index;if(t.isPolar?"Line"===r?n=i._getRadiusCfg(t):"Circle"===r&&(n=i._getCircleCfg(t)):n=i._getLineCfg(t,c,h),a&&s){var d=[],p=function(t){var e=t.slice(0);if(e.length>0){var n=e[0],i=e[e.length-1];0!==n.value&&e.unshift({value:0}),1!==i.value&&e.push({value:1})}return e}(s.getTicks());u(l,(function(e){var n=[];u(p,(function(i){var r="x"===c?e.value:i.value,a="x"===c?i.value:e.value;if(r>=0&&r<=1&&a>=0&&a<=1){var s=t.convertPoint({x:r,y:a});n.push(s)}})),d.push({points:n,_id:"axis-"+c+f+"-grid-"+e.tickValue})})),e.gridPoints=d,t.isPolar&&(e.center=t.center,e.startAngle=t.startAngle,e.endAngle=t.endAngle)}n._id="axis-"+c,o(f)||(n._id="axis-"+c+f),new Xn[r](T(e,n))}))},e.clear=function(){this.axes={},this.frontPlot.clear(),this.backPlot.clear()},t}(),Bn=function(t,e){var n=e.x-t.x,i=e.y-t.y;return Math.abs(n)>Math.abs(i)?n>0?"right":"left":i>0?"down":"up"},jn=function(t,e){var n=Math.abs(e.x-t.x),i=Math.abs(e.y-t.y);return Math.sqrt(n*n+i*i)},Gn=function(){function t(t){var e=this,n=t.canvas,i=t.el;yt(this,"_click",(function(t){var n=ot(t,e.canvas);t.points=n,e.emitEvent("click",t)})),yt(this,"_start",(function(t){var n,i,r=ot(t,e.canvas);r&&(t.points=r,e.emitEvent("touchstart",t),e.reset(),e.startTime=Date.now(),e.startPoints=r,r.length>1?(e.startDistance=jn(r[0],r[1]),e.center=(n=r[0],i=r[1],{x:n.x+(i.x-n.x)/2,y:n.y+(i.y-n.y)/2})):e.pressTimeout=setTimeout((function(){t.direction="none",e.emitStart("press",t),e.emitEvent("press",t),e.eventType="press",e.direction="none"}),250))})),yt(this,"_move",(function(t){var n=ot(t,e.canvas);if(n){e.clearPressTimeout(),t.points=n,e.emitEvent("touchmove",t);var i=e.startPoints;if(i)if(n.length>1){var r=e.startDistance,a=jn(n[0],n[1]);t.zoom=a/r,t.center=e.center,e.emitStart("pinch",t),e.emitEvent("pinch",t)}else{var s=n[0].x-i[0].x,o=n[0].y-i[0].y,l=e.direction||Bn(i[0],n[0]);e.direction=l;var c=e.getEventType(n);t.direction=l,t.deltaX=s,t.deltaY=o,e.emitStart(c,t),e.emitEvent(c,t);var u=e.lastMoveTime,h=Date.now();h-u>0&&(e.prevMoveTime=u,e.prevMovePoints=e.lastMovePoints,e.lastMoveTime=h,e.lastMovePoints=n)}}})),yt(this,"_end",(function(t){var n=ot(t,e.canvas);t.points=n,e.emitEnd(t),e.emitEvent("touchend",t);var i=e.lastMoveTime;if(Date.now()-i<100){var r=i-(e.prevMoveTime||e.startTime);if(r>0){var a=e.prevMovePoints||e.startPoints,s=e.lastMovePoints,o=jn(a[0],s[0])/r;o>.3&&(t.velocity=o,t.direction=Bn(a[0],s[0]),e.emitEvent("swipe",t))}}e.reset();var l=t.touches;l&&l.length>0&&e._start(t)})),yt(this,"_cancel",(function(t){e.emitEvent("touchcancel",t),e.reset()})),this.canvas=n,this.delegateEvent(i),this.processEvent={}}var e=t.prototype;return e.delegateEvent=function(t){t.addEventListener("click",this._click),t.addEventListener("touchstart",this._start),t.addEventListener("touchmove",this._move),t.addEventListener("touchend",this._end),t.addEventListener("touchcancel",this._cancel)},e.emitEvent=function(t,e){this.canvas.emit(t,e)},e.getEventType=function(t){var e,n=this.eventType,i=this.canvas,r=this.startTime,a=this.startPoints;if(n)return n;var s=i.__events.pan;return e=s&&s.length?Date.now()-r>250&&jn(a[0],t[0])<10?"press":"pan":"press",this.eventType=e,e},e.enable=function(t){this.processEvent[t]=!0},e.isProcess=function(t){return this.processEvent[t]},e.emitStart=function(t,e){this.isProcess(t)||(this.enable(t),this.emitEvent(t+"start",e))},e.emitEnd=function(t){var e=this,n=this.processEvent;Object.keys(n).forEach((function(i){e.emitEvent(i+"end",t),delete n[i]}))},e.clearPressTimeout=function(){this.pressTimeout&&(clearTimeout(this.pressTimeout),this.pressTimeout=0)},e.reset=function(){this.clearPressTimeout(),this.startTime=0,this.startPoints=null,this.startDistance=0,this.direction=null,this.eventType=null,this.pinch=!1,this.prevMoveTime=0,this.prevMovePoints=null,this.lastMoveTime=0,this.lastMovePoints=null},t}(),Hn=function(t){function e(e){var n;return(n=t.call(this)||this).context=e,n.width=0,n.height=0,n.style={},n.currentStyle={},n.attrs={},n.isCanvasElement=!0,n}bt(e,t);var n=e.prototype;return n.getContext=function(){return this.context},n.getBoundingClientRect=function(){return{top:0,right:this.width,bottom:this.height,left:0}},n.setAttribute=function(t,e){this.attrs[t]=e},n.addEventListener=function(t,e){this.on(t,e)},n.removeEventListener=function(t,e){this.off(t,e)},n.dispatchEvent=function(t,e){this.emit(t,e)},e}(_t),Wn=function(t){return t?function(t){if(!t)return!1;if(1!==t.nodeType||!t.nodeName||"canvas"!==t.nodeName.toLowerCase())return!1;var e=!1;try{t.addEventListener("eventTest",(function(){e=!0})),t.dispatchEvent(new Event("eventTest"))}catch(t){e=!1}return e}(t.canvas)?t.canvas:new Hn(t):null};function Vn(t,e){u(t,(function(t){t=t.split(":"),e.addColorStop(Number(t[0]),t[1])}))}function qn(t,e,n){if("("===t[1])try{var i=t[0];if("l"===i)return function(t,e,n){var i,r,a=t.split(" "),s=a[0].slice(2,a[0].length-1);i=parseFloat(s)*Math.PI/180,r=2*Math.PI,s=(i%r+r)%r;var o,l,c=a.slice(1),u=e.getBBox(),h=u.minX,f=u.minY,d=u.maxX,p=u.maxY;s>=0&&s<.5*Math.PI?(o={x:h,y:f},l={x:d,y:p}):.5*Math.PI<=s&&s-1?(null===t.get("canvas")&&(t=Object.assign({},t)),t.set("parent",this.get("parent")),t.set("context",this.get("context")),t):null},t.attr=function(t,e){var n=this;if(n.get("destroyed"))return null;var i=arguments.length;if(0===i)return n._attrs.attrs;if(c(t)){for(var r in this._attrs.bbox=null,t)n._setAttr(r,t[r]);return n._afterAttrsSet&&n._afterAttrsSet(),n}return 2===i?(this._attrs.bbox=null,n._setAttr(t,e),n._afterAttrsSet&&n._afterAttrsSet(),n):n._getAttr(t)},t.getParent=function(){return this.get("parent")},t.draw=function(t){this.get("destroyed")||this.get("visible")&&(this.setContext(t),this.drawInner(t),this.restoreContext(t))},t.setContext=function(t){var e=this._attrs.attrs.clip;t.save(),e&&(e.resetTransform(t),e.createPath(t),t.clip()),this.resetContext(t),this.resetTransform(t)},t.restoreContext=function(t){t.restore()},t.resetContext=function(t){var e=this._attrs.attrs;for(var n in e)if(Un.indexOf(n)>-1){var i=e[n];"fillStyle"!==n&&"strokeStyle"!==n||!i||(i=qn(i,this,t)),"lineDash"===n&&t.setLineDash&&l(i)?t.setLineDash(i):t[n]=i}},t.hasFill=function(){return this.get("canFill")&&this._attrs.attrs.fillStyle},t.hasStroke=function(){return this.get("canStroke")&&this._attrs.attrs.strokeStyle},t.drawInner=function(){},t.show=function(){return this.set("visible",!0),this},t.hide=function(){return this.set("visible",!1),this},t.isVisible=function(){return this.get("visible")},t.getAriaLabel=function(){var t=this._attrs,e=t.destroyed,n=t.visible,i=t.isShape,r=t.aria;if(!e&&n&&(!i||r))return this._getAriaLabel()},t._getAriaLabel=function(){return this._attrs.ariaLabel},t._removeFromParent=function(){var t=this.get("parent");return t&&G(t.get("children"),this),this},t.remove=function(t){t?this.destroy():this._removeFromParent()},t.destroy=function(){if(this.get("destroyed"))return null;this._removeFromParent(),this._attrs={},this.set("destroyed",!0)},t.getBBox=function(){return{minX:0,maxX:0,minY:0,maxY:0,width:0,height:0}},t.initTransform=function(){var t=this._attrs.attrs||{};t.matrix||(t.matrix=[1,0,0,1,0,0]),this._attrs.attrs=t},t.getMatrix=function(){return this._attrs.attrs.matrix},t.setMatrix=function(t){this._attrs.attrs.matrix=[t[0],t[1],t[2],t[3],t[4],t[5]]},t.transform=function(t){var e=this._attrs.attrs.matrix;return this._attrs.attrs.matrix=kt.transform(e,t),this},t.setTransform=function(t){return this._attrs.attrs.matrix=[1,0,0,1,0,0],this.transform(t)},t.translate=function(t,e){var n=this._attrs.attrs.matrix;kt.translate(n,n,[t,e])},t.rotate=function(t){var e=this._attrs.attrs.matrix;kt.rotate(e,e,t)},t.scale=function(t,e){var n=this._attrs.attrs.matrix;kt.scale(n,n,[t,e])},t.moveTo=function(t,e){var n=this._attrs.x||0,i=this._attrs.y||0;this.translate(t-n,e-i),this.set("x",t),this.set("y",e)},t.apply=function(t){var e=this._attrs.attrs.matrix;return Ct.transformMat2d(t,t,e),this},t.resetTransform=function(t){var e=this._attrs.attrs.matrix;kt.isChanged(e)&&t.transform(e[0],e[1],e[2],e[3],e[4],e[5],!0)},t.isDestroyed=function(){return this.get("destroyed")},e}(),Qn=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){this._attrs={zIndex:0,visible:!0,destroyed:!1,isShape:!0,attrs:{}}},n.getType=function(){return this._attrs.type},n.drawInner=function(t){var e=this.get("attrs");this.createPath(t);var n=t.globalAlpha;if(this.hasFill()){var i=e.fillOpacity;o(i)||1===i?t.fill():(t.globalAlpha=i,t.fill(),t.globalAlpha=n)}if(this.hasStroke()&&e.lineWidth>0){var r=e.strokeOpacity;o(r)||1===r||(t.globalAlpha=r),t.stroke()}},n.getBBox=function(){var t=this._attrs.bbox;return t||((t=this.calculateBox())&&(t.x=t.minX,t.y=t.minY,t.width=t.maxX-t.minX,t.height=t.maxY-t.minY),this._attrs.bbox=t),t},n.calculateBox=function(){return null},n.createPath=function(){},e}(Kn),$n=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="rect"},n.getDefaultAttrs=function(){return{x:0,y:0,width:0,height:0,radius:0,lineWidth:0}},n.createRadiusPath=function(t,e,n,i,r,a){a=function(t,e,n){if(!((t=ut(t))[0]||t[1]||t[2]||t[3]))return t;var i=Math.max(t[0]+t[1],t[2]+t[3]),r=Math.max(t[0]+t[3],t[1]+t[2]),a=Math.min(e/i,n/r);return a<1?t.map((function(t){return t*a})):t}(a,i,r),t.moveTo(e+a[0],n),t.lineTo(e+i-a[1],n),t.arc(e+i-a[1],n+a[1],a[1],-Math.PI/2,0,!1),t.lineTo(e+i,n+r-a[2]),t.arc(e+i-a[2],n+r-a[2],a[2],0,Math.PI/2,!1),t.lineTo(e+a[3],n+r),t.arc(e+a[3],n+r-a[3],a[3],Math.PI/2,Math.PI,!1),t.lineTo(e,n+a[0]),t.arc(e+a[0],n+a[0],a[0],Math.PI,3*Math.PI/2,!1),t.closePath()},n.createPath=function(t){var e=this.get("attrs"),n=e.x,i=e.y,r=e.width,a=e.height,s=e.radius;t.beginPath(),s&&r*a?this.createRadiusPath(t,n,i,r,a,s):t.rect(n,i,r,a)},n.calculateBox=function(){var t=this.get("attrs"),e=t.x,n=t.y;return{minX:e,minY:n,maxX:e+t.width,maxY:n+t.height}},e}(Qn),ti=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!1,this._attrs.canStroke=!1,this._attrs.loading=!1,this._attrs.image=null,this._attrs.type="image"},n.createPath=function(t){var e=this,n=this.get("attrs").src;if(!this.get("loading")){var i=this.get("image");if(i)this.drawImage(t,i);else if(n&&Image){this.set("loading",!0);var r=new Image;r.src=n,r.crossOrigin="Anonymous",r.onload=function(){e.set("loading",!1),e.set("image",r),e.drawImage(t,r)}}}},n.drawImage=function(t,e){var n=this._attrs,i=n.attrs;if(!n.destroyed){var r=i.x,a=i.y,s=i.width,l=i.height,c=i.sx,u=i.sy,h=i.swidth,f=i.sheight,d=i.radius;d&&(t.save(),this.createRadiusPath(t,r,a,s,l,d),t.clip()),o(c)||o(u)||o(h)||o(f)?t.drawImage(e,r,a,s,l):t.drawImage(e,c,u,h,f,r,a,s,l),d&&t.restore()}},e}($n),ei=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="circle"},n.getDefaultAttrs=function(){return{x:0,y:0,r:0,lineWidth:0}},n.createPath=function(t){var e=this.get("attrs"),n=e.x,i=e.y,r=e.r;t.beginPath(),t.arc(n,i,r,0,2*Math.PI,!1),t.closePath()},n.calculateBox=function(){var t=this.get("attrs"),e=t.x,n=t.y,i=t.r;return{minX:e-i,maxX:e+i,minY:n-i,maxY:n+i}},e}(Qn),ni=Ct.create(),ii=Ct.create(),ri=Ct.create();function ai(t,e,n,i,r){var a=t*t;return e+(3*-e+t*(3*e-e*t))*t+(3*n+t*(-6*n+3*n*t))*t+(3*i-3*i*t)*a+r*(a*t)}function si(t){for(var e,n,i,r,a,s=1/0,o=-1/0,l=1/0,c=-1/0,u={x:t[0],y:t[1]},h={x:t[2],y:t[3]},f={x:t[4],y:t[5]},d={x:t[6],y:t[7]},p=0;p<100;p++){var g={x:ai(a=p/100,(e=u).x,(n=h).x,(i=f).x,(r=d).x),y:ai(a,e.y,n.y,i.y,r.y)};g.xo&&(o=g.x),g.yc&&(c=g.y)}return{minX:s,minY:l,maxX:o,maxY:c}}function oi(t,e){if(0!==t.length){for(var n=t[0],i=n.x,r=n.x,a=n.y,s=n.y,o=t.length,l=1;l1e-4)return{minX:t-n,minY:e-n,maxX:t+n,maxY:e+n};ni[0]=Math.cos(i)*n+t,ni[1]=Math.sin(i)*n+e,ii[0]=Math.cos(r)*n+t,ii[1]=Math.sin(r)*n+e;var o=[0,0],l=[0,0];if(Ct.min(o,ni,ii),Ct.max(l,ni,ii),(i%=2*Math.PI)<0&&(i+=2*Math.PI),(r%=2*Math.PI)<0&&(r+=2*Math.PI),i>r&&!a?r+=2*Math.PI:ii&&(ri[0]=Math.cos(u)*n+t,ri[1]=Math.sin(u)*n+e,Ct.min(o,ri,o),Ct.max(l,ri,l));return{minX:o[0],minY:o[1],maxX:l[0],maxY:l[1]}}var ci=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canStroke=!0,this._attrs.type="line"},n.getDefaultAttrs=function(){return{x1:0,y1:0,x2:0,y2:0,lineWidth:1}},n.createPath=function(t){var e=this.get("attrs"),n=e.x1,i=e.y1,r=e.x2,a=e.y2;t.beginPath(),t.moveTo(n,i),t.lineTo(r,a)},n.calculateBox=function(){var t=this.get("attrs");return function(t,e,n,i,r){return r=r/2||0,{minX:Math.min(t,n)-r,minY:Math.min(e,i)-r,maxX:Math.max(t,n)+r,maxY:Math.max(e,i)+r}}(t.x1,t.y1,t.x2,t.y2,t.lineWidth)},e}(Qn),ui=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="polygon"},n.getDefaultAttrs=function(){return{points:null,lineWidth:0}},n.createPath=function(t){var e=this.get("attrs").points;t.beginPath();for(var n=0,i=e.length;ni&&(i=l.maxX),l.minYa&&(a=l.maxY)}return{minX:n-(e=e/2||0),minY:r-e,maxX:i+e,maxY:a+e}}(a,i)}return oi(r,i)},e}(Qn),gi=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canStroke=!0,this._attrs.canFill=!0,this._attrs.type="arc"},n.getDefaultAttrs=function(){return{x:0,y:0,r:0,startAngle:0,endAngle:2*Math.PI,anticlockwise:!1,lineWidth:1}},n.createPath=function(t){var e=this.get("attrs"),n=e.x,i=e.y,r=e.r,a=e.startAngle,s=e.endAngle,o=e.anticlockwise;t.beginPath(),a!==s&&t.arc(n,i,r,a,s,o)},n.calculateBox=function(){var t=this.get("attrs");return li(t.x,t.y,t.r,t.startAngle,t.endAngle,t.anticlockwise)},e}(Qn),vi=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="sector"},n.getDefaultAttrs=function(){return{x:0,y:0,lineWidth:0,r:0,r0:0,startAngle:0,endAngle:2*Math.PI,anticlockwise:!1}},n.createPath=function(t){var e=this.get("attrs"),n=e.x,i=e.y,r=e.startAngle,a=e.endAngle,s=e.r,o=e.r0,l=e.anticlockwise;t.beginPath();var c=Math.cos(r),u=Math.sin(r);t.moveTo(c*o+n,u*o+i),t.lineTo(c*s+n,u*s+i),(Math.abs(a-r)>1e-4||0===r&&a<0)&&(t.arc(n,i,s,r,a,l),t.lineTo(Math.cos(a)*o+n,Math.sin(a)*o+i),0!==o&&t.arc(n,i,o,a,r,!l)),t.closePath()},n.calculateBox=function(){var t=this.get("attrs"),e=t.x,n=t.y,i=t.r,r=t.r0,a=t.startAngle,s=t.endAngle,o=t.anticlockwise,l=li(e,n,i,a,s,o),c=li(e,n,r,a,s,o);return{minX:Math.min(l.minX,c.minX),minY:Math.min(l.minY,c.minY),maxX:Math.max(l.maxX,c.maxX),maxY:Math.max(l.maxY,c.maxY)}},e}(Qn),mi=function(t){var e=t.width,n=t.height,i=t.rotate,r=Math.abs(i);return{width:Math.abs(e*Math.cos(r)+n*Math.sin(r)),height:Math.abs(n*Math.cos(r)+e*Math.sin(r))}},yi=0,xi={},bi=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="text"},n.getDefaultAttrs=function(){return{lineWidth:0,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null}},n._getFontStyle=function(){var t=this._attrs.attrs,e=t.fontSize,n=t.fontFamily,i=t.fontWeight;return t.fontStyle+" "+t.fontVariant+" "+i+" "+e+"px "+n},n._afterAttrsSet=function(){var t=this._attrs.attrs;if(t.font=this._getFontStyle(),t.text){var e=t.text,n=null,i=1;p(e)&&-1!==e.indexOf("\n")&&(i=(n=e.split("\n")).length),t.lineCount=i,t.textArr=n}this.set("attrs",t)},n._getTextHeight=function(){var t=this._attrs.attrs;if(t.height)return t.height;var e=t.lineCount,n=1*t.fontSize;return e>1?n*e+this._getSpaceingY()*(e-1):n},n._getSpaceingY=function(){var t=this._attrs.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},n.drawInner=function(t){var e=this._attrs.attrs,n=e.text,i=e.x,r=e.y;if(!(o(n)||isNaN(i)||isNaN(r))){var a=e.textArr,s=1*e.fontSize,l=this._getSpaceingY();e.rotate&&(t.translate(i,r),t.rotate(e.rotate),i=0,r=0);var c,u,h=e.textBaseline;if(a&&(c=this._getTextHeight()),this.hasFill()){var f=e.fillOpacity;if(o(f)||1===f||(t.globalAlpha=f),a)for(var d=0,p=a.length;d5e3&&(yi=0,xi={}),yi++,xi[a]=s,s}},e}(Qn),wi=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.createPath=null,this._attrs.type="custom"},n.createPath=function(t){var e=this.get("createPath");e&&e.call(this,t)},n.calculateBox=function(){var t=this.get("calculateBox");return t&&t.call(this)},e}(Qn),_i={circle:function(t,e,n,i){i.arc(t,e,n,0,2*Math.PI,!1)},square:function(t,e,n,i){i.moveTo(t-n,e-n),i.lineTo(t+n,e-n),i.lineTo(t+n,e+n),i.lineTo(t-n,e+n),i.closePath()}},Si=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="marker"},n.getDefaultAttrs=function(){return{x:0,y:0,lineWidth:0}},n.createPath=function(t){var e,n=this.get("attrs"),i=n.x,r=n.y,a=n.radius,o=n.symbol||"circle";e=s(o)?o:_i[o],t.beginPath(),e(i,r,a,t,this)},n.calculateBox=function(){var t=this.get("attrs"),e=t.x,n=t.y,i=t.radius;return{minX:e-i,minY:n-i,maxX:e+i,maxY:n+i}},e}(Qn);Qn.Rect=$n,Qn.Image=ti,Qn.Circle=ei,Qn.Line=ci,Qn.Polygon=ui,Qn.Polyline=pi,Qn.Arc=gi,Qn.Sector=vi,Qn.Text=bi,Qn.Custom=wi,Qn.Marker=Si;var Mi={},ki={getGroupClass:function(){},getChildren:function(){return this.get("children")},addShape:function(t,e){void 0===e&&(e={});var n=Mi[t];n||(n=S(t),Mi[t]=n);var i=new Qn[n](e);return this.add(i),i},addGroup:function(t){var e=new(this.getGroupClass())(t);return this.add(e),e},contain:function(t){return this.get("children").indexOf(t)>-1},sort:function(){for(var t=this.get("children"),e=0,n=t.length;e=r.x&&n<=a.x&&i>=r.y&&i<=s.y}var Ei=Object.freeze({__proto__:null,getClip:Oi,isPointInPlot:Fi});function Ni(t,e){return t-e}var zi=function(t){bt(n,t),n.initPlugins=function(){return{_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach((function(t){-1===e.indexOf(t)&&e.push(t)})),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach((function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,n){var i,r,a,s,o=this.descriptors(t),l=o.length;for(i=0;i0;)t.shift().destroy()},e._clearGeoms=function(){for(var t=this.get("geoms"),e=0,n=t.length;e=0&&(e.lineWidth=t.size),T(e,t.style),T({},mt.shape.line,e)}(e);return"dash"===t&&(r.lineDash=mt.lineDash),function(t,e,n,i){var r=t.points;if(r.length&&l(r[0].y)){for(var a=[],s=[],o=0,c=r.length;o1?mt.widthRatio.multiplePie:mt.widthRatio.rose:(n.isLinear&&(s*=a[1]-a[0]),o=mt.widthRatio.column),s*=o,this.hasAdjust("dodge")&&(s/=i.length),t=s,this.set("defaultSize",t)}return t},getDimWidth:function(t){var e=this.get("coord"),n=e.convertPoint({x:0,y:0}),i=e.convertPoint({x:"x"===t?1:0,y:"x"===t?0:1}),r=0;return n&&i&&(r=Math.sqrt(Math.pow(i.x-n.x,2)+Math.pow(i.y-n.y,2))),r},_getWidth:function(){var t=this.get("_width");if(!t){var e=this.get("coord");t=e&&e.isPolar&&!e.transposed?(e.endAngle-e.startAngle)*e.circleRadius:this.getDimWidth("x"),this.set("_width",t)}return t},_toNormalizedSize:function(t){return t/this._getWidth()},_toCoordSize:function(t){return this._getWidth()*t},getNormalizedSize:function(t){var e=this.getAttrValue("size",t);return o(e)?this.getDefaultSize():this._toNormalizedSize(e)},getSize:function(t){var e=this.getAttrValue("size",t);if(o(e)){var n=this.getDefaultSize();e=this._toCoordSize(n)}return e}};function Ki(t){var e,n,i=t.x,r=t.y,a=t.y0,s=t.size,o=a,c=r;return l(r)&&(c=r[1],o=r[0]),l(i)?(e=i[0],n=i[1]):(e=i-s/2,n=i+s/2),[{x:e,y:o},{x:e,y:c},{x:n,y:c},{x:n,y:o}]}jt.registerFactory("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return Ki(t)}}),jt.registerShape("interval","rect",{draw:function(t,e){var n=this.parsePoints(t.points),i=T({fill:t.color},mt.shape.interval,t.style);if(t.isInCircle){var r=n.slice(0);this._coord.transposed&&(r=[n[0],n[3],n[2],n[1]]);var a=t.center,s=a.x,o=a.y,l=[1,0],c=[r[0].x-s,r[0].y-o],u=[r[1].x-s,r[1].y-o],h=[r[2].x-s,r[2].y-o],f=Ct.angleTo(l,u),d=Ct.angleTo(l,h),p=Ct.length(c),g=Ct.length(u);return f>=1.5*Math.PI&&(f-=2*Math.PI),d>=1.5*Math.PI&&(d-=2*Math.PI),e.addShape("Sector",{className:"interval",attrs:T({x:s,y:o,r:g,r0:p,startAngle:f,endAngle:d},i)})}var v=function(t){for(var e=[],n=[],i=0,r=t.length;i=0?"positive":"negative";r[d][f]||(r[d][f]=0),c[n]=[r[d][f],h+r[d][f]],r[d][f]+=h}}},i}(qt);qt.Stack=ar;var sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},or=function(t){var e=void 0===t?"undefined":sr(t);return null!==t&&"object"===e||"function"===e},lr=function(t,e){if(t)if(ir(t))for(var n=0,i=t.length;ni&&(n=t,i=r)})),n}},fr={merge:function(t){for(var e=[],n=0;n0&&l<=1&&(i*=l),this.x={start:this.startAngle,end:this.endAngle},this.y={start:i*a,end:i},this.center=r,this.circleRadius=i},n._convertPoint=function(t){var e=this.center,n=this.transposed,i=n?"y":"x",r=n?"x":"y",a=this.x,s=this.y,o=a.start+(a.end-a.start)*t[i],l=s.start+(s.end-s.start)*t[r];return{x:e.x+Math.cos(o)*l,y:e.y+Math.sin(o)*l}},n._invertPoint=function(t){var e=this.center,n=this.transposed,i=this.x,r=this.y,a=n?"y":"x",s=n?"x":"y",o=[1,0,0,1,0,0];kt.rotate(o,o,i.start);var l=[1,0];Ct.transformMat2d(l,l,o),l=[l[0],l[1]];var c=[t.x-e.x,t.y-e.y];if(Ct.zero(c))return{x:0,y:0};var u=Ct.angleTo(l,c,i.end0?f:-f;var d=(h-r.start)/(r.end-r.start),p={};return p[a]=f,p[s]=d,p},e}(At);At.Polar=pr;var gr=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.startAngle=-Math.PI/2,this.endAngle=3*Math.PI/2,this.radius=null,this.center=null},n.getOffsetPoint=function(t){var e=this.startAngle,n=e+(this.endAngle-e)*t;return this._getCirclePoint(n)},n._getCirclePoint=function(t,e){var n=this.center;return e=e||this.radius,{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},n.getTextAlignInfo=function(t,e){var n,i=this.getOffsetVector(t,e),r="middle";return i[0]>0?n="left":i[0]<0?n="right":(n="center",i[1]>0?r="top":i[1]<0&&(r="bottom")),{textAlign:n,textBaseline:r}},n.getAxisVector=function(t){var e=this.center,n=this.offsetFactor;return[(t.y-e.y)*n,-1*(t.x-e.x)*n]},n.drawLine=function(t){var e=this.center,n=this.radius,i=this.startAngle,r=this.endAngle;this.getContainer(t.top).addShape("arc",{className:"axis-line",attrs:T({x:e.x,y:e.y,r:n,startAngle:i,endAngle:r},t)})},e}(Xn);Xn.Circle=gr;var vr={min:0,median:.5,max:1},mr=function(){var t=e.prototype;function e(t){this._initDefaultCfg(),D(this,t)}return t._initDefaultCfg=function(){},t._getNormalizedValue=function(t,e){return o(vr[t])?e.scale(t):vr[t]},t.parsePercentPoint=function(t,e){var n=parseFloat(e[0])/100,i=parseFloat(e[1])/100,r=t.start,a=t.end,s=Math.abs(r.x-a.x),o=Math.abs(r.y-a.y);return{x:s*n+Math.min(r.x,a.x),y:o*i+Math.min(r.y,a.y)}},t.parsePoint=function(t,e){var n=this.xScale,i=this.yScales;if(s(e)&&(e=e(n,i)),p(e[0])&&-1!==e[0].indexOf("%")&&!isNaN(e[0].slice(0,-1)))return this.parsePercentPoint(t,e);var r=this._getNormalizedValue(e[0],n),a=this._getNormalizedValue(e[1],i[0]),o=t.convertPoint({x:r,y:a});return this.limitInPlot?r>=0&&r<=1&&a>=0&&a<=1?o:null:o},t.render=function(){},t.repaint=function(){this.remove();var t=this.coord,e=this.container,n=this.canvas;e&&!e.isDestroyed()&&(this.render(t,e),n.draw())},t.remove=function(){var t=this.element;t&&t.remove(!0)},t.changeVisible=function(t){this.visible=t;var e=this.element;e&&(e.set?e.set("visible",t):e.style.display=t?"":"none")},e}(),yr=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="arc",this.start=[],this.end=[],this.style={stroke:"#999",lineWidth:1}},n.render=function(t,e){var n=this.parsePoint(t,this.start),i=this.parsePoint(t,this.end);if(n&&i){var r=t.center,a=Math.sqrt((n.x-r.x)*(n.x-r.x)+(n.y-r.y)*(n.y-r.y)),s=Math.atan2(n.y-r.y,n.x-r.x),o=Math.atan2(i.y-r.y,i.x-r.x),l=e.addShape("arc",{className:"guide-arc",attrs:T({x:r.x,y:r.y,r:a,startAngle:s,endAngle:o},this.style)});return this.element=l,l}},e}(mr);function xr(t,e){for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}function br(t){var e=document.createElement("div");return t=t.replace(/(^\s*)|(\s*$)/g,""),e.innerHTML=""+t,e.childNodes[0]}mr.Arc=yr;var wr=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="html",this.position=null,this.alignX="center",this.alignY="middle",this.offsetX=null,this.offsetY=null,this.html=null},n.render=function(t,e){var n=this.parsePoint(t,this.position);if(n){var i=br(this.html);i=xr(i,{position:"absolute",top:Math.floor(n.y)+"px",left:Math.floor(n.x)+"px",visibility:"hidden"});var r=e.get("canvas").get("el"),a=r.parentNode;a=xr(a,{position:"relative"});var s=br('
');a.appendChild(s),s.appendChild(i);var o=r.offsetTop,l=r.offsetLeft,c=this.alignX,u=this.alignY,h=this.offsetX,f=this.offsetY,d=function(t,e,n,i){var r=[];return"left"===t&&"top"===e?(r[0]=0,r[1]=0):"right"===t&&"top"===e?(r[0]=-n,r[1]=0):"left"===t&&"bottom"===e?(r[0]=0,r[1]=Math.floor(-i)):"right"===t&&"bottom"===e?(r[0]=Math.floor(-n),r[1]=Math.floor(-i)):"right"===t&&"middle"===e?(r[0]=Math.floor(-n),r[1]=Math.floor(-i/2)):"left"===t&&"middle"===e?(r[0]=0,r[1]=Math.floor(-i/2)):"center"===t&&"bottom"===e?(r[0]=Math.floor(-n/2),r[1]=Math.floor(-i)):"center"===t&&"top"===e?(r[0]=Math.floor(-n/2),r[1]=0):(r[0]=Math.floor(-n/2),r[1]=Math.floor(-i/2)),r}(c,u,tt(i),et(i));n.x=n.x+d[0]+l,n.y=n.y+d[1]+o,h&&(n.x+=h),f&&(n.y+=f),xr(i,{top:Math.floor(n.y)+"px",left:Math.floor(n.x)+"px",visibility:"visible"}),this.element=s}},n.remove=function(){var t=this.element;t&&t.parentNode&&t.parentNode.removeChild(t)},e}(mr);mr.Html=wr;var _r=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="line",this.start=[],this.end=[],this.style={stroke:"#000",lineWidth:1}},n.render=function(t,e){var n=[];if(n[0]=this.parsePoint(t,this.start),n[1]=this.parsePoint(t,this.end),n[0]&&n[1]){var i=e.addShape("Line",{className:"guide-line",attrs:T({x1:n[0].x,y1:n[0].y,x2:n[1].x,y2:n[1].y},this.style)});return this.element=i,i}},e}(mr);mr.Line=_r;var Sr=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="rect",this.start=[],this.end=[],this.style={fill:"#CCD7EB",opacity:.4}},n.render=function(t,e){var n=this.parsePoint(t,this.start),i=this.parsePoint(t,this.end);if(n&&i){var r=e.addShape("rect",{className:"guide-rect",attrs:T({x:Math.min(n.x,i.x),y:Math.min(n.y,i.y),width:Math.abs(i.x-n.x),height:Math.abs(n.y-i.y)},this.style)});return this.element=r,r}},e}(mr);mr.Rect=Sr;var Mr=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="text",this.position=null,this.content=null,this.style={fill:"#000"},this.offsetX=0,this.offsetY=0},n.render=function(t,e){var n=this.position,i=this.parsePoint(t,n);if(i){var r=this.content,a=this.style,s=this.offsetX,o=this.offsetY;s&&(i.x+=s),o&&(i.y+=o);var l=e.addShape("text",{className:"guide-text",attrs:T({x:i.x,y:i.y,text:r},a)});return this.element=l,l}},e}(mr);mr.Text=Mr;var kr=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="tag",this.position=null,this.content=null,this.direct="tl",this.autoAdjust=!0,this.offsetX=0,this.offsetY=0,this.side=4,this.background={padding:5,radius:2,fill:"#1890FF"},this.textStyle={fontSize:12,fill:"#fff",textAlign:"center",textBaseline:"middle"},this.withPoint=!0,this.pointStyle={fill:"#1890FF",r:3,lineWidth:1,stroke:"#fff"}},n._getDirect=function(t,e,n,i){var r=this.direct,a=this.side,s=t.get("canvas"),o=s.get("width"),l=s.get("height"),c=e.x,u=e.y,h=r[0],f=r[1];"t"===h&&u-a-i<0?h="b":"b"===h&&u+a+i>l&&(h="t");var d="c"===h?a:0;return"l"===f&&c-d-n<0?f="r":"r"===f&&c+d+n>o?f="l":"c"===f&&(n/2+c+d>o?f="l":c-n/2-d<0&&(f="r")),h+f},n.render=function(t,e){var n=this.parsePoint(t,this.position);if(n&&!isNaN(n.x)&&!isNaN(n.y)){var i=this.content,r=this.background,a=this.textStyle,s=[],o=e.addGroup({className:"guide-tag"});if(this.withPoint){var l=o.addShape("Circle",{className:"guide-tag-point",attrs:T({x:n.x,y:n.y},this.pointStyle)});s.push(l)}var c=o.addGroup(),u=c.addShape("text",{className:"guide-tag-text",zIndex:1,attrs:T({x:0,y:0,text:i},a)});s.push(u);var h=u.getBBox(),f=ut(r.padding),d=h.width+f[1]+f[3],p=h.height+f[0]+f[2],g=h.minY-f[0],v=h.minX-f[3],m=c.addShape("rect",{className:"guide-tag-bg",zIndex:-1,attrs:T({x:v,y:g,width:d,height:p},r)});s.push(m);var y,x=this.autoAdjust?this._getDirect(e,n,d,p):this.direct,b=this.side,w=n.x+this.offsetX,_=n.y+this.offsetY,S=ut(r.radius);"tl"===x?(y=[{x:d+v-b-1,y:p+g-1},{x:d+v,y:p+g-1},{x:d+v,y:p+b+g}],S[2]=0,w-=d,_=_-b-p):"cl"===x?(y=[{x:d+v-1,y:(p-b)/2+g-1},{x:d+v-1,y:(p+b)/2+g+1},{x:d+b+v,y:p/2+g}],w=w-d-b,_-=p/2):"bl"===x?(y=[{x:d+v,y:-b+g},{x:d+v-b-1,y:g+1},{x:d+v,y:g+1}],S[1]=0,w-=d,_+=b):"bc"===x?(y=[{x:d/2+v,y:-b+g},{x:(d-b)/2+v-1,y:g+1},{x:(d+b)/2+v+1,y:g+1}],w-=d/2,_+=b):"br"===x?(y=[{x:v,y:g-b},{x:v,y:g+1},{x:v+b+1,y:g+1}],S[0]=0,_+=b):"cr"===x?(y=[{x:v-b,y:p/2+g},{x:v+1,y:(p-b)/2+g-1},{x:v+1,y:(p+b)/2+g+1}],w+=b,_-=p/2):"tr"===x?(y=[{x:v,y:p+b+g},{x:v,y:p+g-1},{x:b+v+1,y:p+g-1}],S[3]=0,_=_-p-b):"tc"===x&&(y=[{x:(d-b)/2+v-1,y:p+g-1},{x:(d+b)/2+v+1,y:p+g-1},{x:d/2+v,y:p+b+g}],w-=d/2,_=_-p-b);var M=c.addShape("Polygon",{className:"guide-tag-side",zIndex:0,attrs:{points:y,fill:r.fill}});return s.push(M),m.attr("radius",S),c.moveTo(w-v,_-g),c.sort(),this.element=o,s}},e}(mr);mr.Tag=kr;var Cr=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="point",this.position=null,this.offsetX=0,this.offsetY=0,this.style={fill:"#1890FF",r:3,lineWidth:1,stroke:"#fff"}},n.render=function(t,e){var n=this.parsePoint(t,this.position);if(!n)return null;var i=e.addShape("Circle",{className:"guide-point",attrs:T({x:n.x+this.offsetX,y:n.y+this.offsetY},this.style)});return this.element=i,i},e}(mr);mr.Point=Cr;var Pr=function(){var t=e.prototype;function e(t){D(this,this.getDefaultCfg(),t),this._init(),this._renderTitle(),this._renderItems()}return t.getDefaultCfg=function(){return{showTitle:!1,title:null,items:null,titleGap:12,itemGap:10,itemMarginBottom:12,itemFormatter:null,itemWidth:null,wordSpace:6,x:0,y:0,layout:"horizontal",joinString:": "}},t._init=function(){var t=this.parent;if(t){var e=t.addGroup({zIndex:this.zIndex||0});this.container=e;var n=e.addGroup();this.wrapper=n;var i=n.addGroup({className:"itemsGroup"});this.itemsGroup=i}},t._renderTitle=function(t){t=t||this.title;var e=this.titleShape,n=0;if(this.showTitle&&t){if(e&&!e.get("destroyed"))e.attr("text",t);else{var i=this.wrapper,r=this.titleStyle;e=i.addShape("text",{className:"title",attrs:T({x:0,y:0,text:t},r)}),this.titleShape=e}n=e.getBBox().height+this.titleGap}this._titleHeight=n},t._renderItems=function(t){var e=this;(t=t||e.items)&&(e.reversed&&t.reverse(),u(t,(function(t,n){e._addItem(t,n)})),t.length>1&&this._adjustItems(),this._renderBackground())},t._renderBackground=function(){var t=this.background;if(t){var e=this.container,n=this.wrapper.getBBox(),i=n.minX,r=n.minY,a=n.width,s=n.height,o=t.padding||[0,0,0,0],l=T({x:i-(o=ut(o))[3],y:r-o[0],width:a+o[1]+o[3],height:s+o[0]+o[2]},t),c=this.backShape;c?c.attr(l):c=e.addShape("Rect",{zIndex:-1,attrs:l}),this.backShape=c,e.sort()}},t._addItem=function(t){var e,n=this.itemsGroup.addGroup({name:t.name,value:t.value,dataValue:t.dataValue,checked:t.checked}),i=this.unCheckStyle,r=this.unCheckColor,a=this.nameStyle,s=this.valueStyle,o=this.wordSpace,l=t.marker,c=t.value,u=0;if(r&&(i.fill=r),l){var h=T({x:l.radius||3,y:this._titleHeight},l);!1===t.checked&&T(h,i),u+=n.addShape("marker",{className:"item-marker",attrs:h}).getBBox().width+o}var f=t.name;if(f){var d=this.joinString||"";f=c?f+d:f,e=n.addShape("text",{className:"name",attrs:T({x:u,y:this._titleHeight,text:this._formatItemValue(f)},a,!1===t.checked?i:null)})}if(c){var p=u;e&&(p+=e.getBBox().width),n.addShape("text",{className:"value",attrs:T({x:p,y:this._titleHeight,text:c},s,!1===t.checked?i:null)})}return n},t._formatItemValue=function(t){var e=this.itemFormatter;return e&&(t=e.call(this,t)),t},t._getMaxItemWidth=function(){var t=this.itemWidth;if(x(t)||o(t))return t;if("auto"===t){for(var e=this.itemsGroup.get("children"),n=e.length,i=0,r=0;r1e-4&&(o++,l=0),d.moveTo(l,o*e),u.push({x:l,y:o*e+s-g/2,width:1.375*v,height:1.375*g}),l+=t+r}this.legendHitBoxes=u},t._adjustVertical=function(){for(var t,e,n=this.maxLength,i=this.itemsGroup,r=this.itemGap,a=this.itemMarginBottom,s=this.itemWidth,o=this._titleHeight,l=i.get("children"),c=0,u=0,h=0,f=[],d=0,p=l.length;du&&(u=t+r),n-c=e.br.y&&(o=e.br.y-r),s<0&&(s=e.tl.x,n&&n.attr("x1",e.tl.x+a)),i.updatePosition(s,o)}},t.setXTipContent=function(t){var e=this.xTip;t=s(e)?e(t):T({text:t},e),this.xTipBox&&this.xTipBox.updateContent(t)},t.setXTipPosition=function(t){var e=this.showXTip,n=this.canvas,i=this.plotRange,r=this.xTipBox,a=this.crosshairsShapeY;if(e){var s=n.get("height"),o=r.getWidth(),l=r.getHeight(),c=t-o/2,u=i.br.y;c<=i.tl.x&&(c=i.tl.x),c+o>=i.tr.x&&(c=i.tr.x-o),s-u1?(t[0].x+t[t.length-1].x)/2:t[0].x)-h/2+i)p.x&&(g=p.x-h),s){var m=v+f;s.attr("points",[{x:o-3,y:m},{x:o+3,y:m},{x:o,y:m+4}]);var y=e.backShape,x=ut(y.attr("radius"));o===d.x?(x[3]=0,s.attr("points",[{x:d.x,y:m},{x:d.x+4,y:m},{x:d.x,y:m+4}])):o===p.x&&(x[2]=0,s.attr("points",[{x:p.x-4,y:m},{x:p.x,y:m},{x:p.x,y:m+4}])),y.attr("radius",x)}e.moveTo(g-c,v-u)}},t.setMarkers=function(t){void 0===t&&(t={});var e=t,n=e.items,i=e.style,r=e.type,a=this._getMarkerGroup(r);if("circle"===r)for(var s=0,o=n.length;s16&&(e.showTooltip(r),e.timeStamp=s)}else e.hideTooltip()}})),yt(this,"handleHideEvent",(function(){e.enable&&e.hideTooltip()})),this.enable=!0,this.cfg={},this.tooltip=null,this.chart=null,this.timeStamp=0,T(this,t);var n=this.chart.get("canvas");this.canvas=n,this.canvasDom=n.get("el")}var e=t.prototype;return e._setCrosshairsCfg=function(){var t=this.chart,e=T({},mt.tooltip),n=t.get("geoms"),i=[];u(n,(function(t){var e=t.get("type");-1===i.indexOf(e)&&i.push(e)}));var r=t.get("coord").type;return!n.length||"cartesian"!==r&&"rect"!==r||1===i.length&&-1!==["line","area","path","point"].indexOf(i[0])&&T(e,{showCrosshairs:!0}),e},e._getMaxLength=function(t){void 0===t&&(t={});var e=t,n=e.layout,i=e.plotRange;return"horizontal"===n?i.br.x-i.bl.x:i.bl.y-i.tr.y},e.render=function(){if(!this.tooltip){var t=this.chart,e=t.get("canvas"),n=t.get("frontPlot").addGroup({className:"tooltipContainer",zIndex:10}),i=t.get("backPlot").addGroup({className:"tooltipContainer"}),r=t.get("plotRange"),a=t.get("coord"),s=this._setCrosshairsCfg(),o=this.cfg,l=D({plotRange:r,frontPlot:n,backPlot:i,canvas:e,fixed:a.transposed||a.isPolar},s,o);l.maxLength=this._getMaxLength(l),this._tooltipCfg=l;var c=new Tr(l);this.tooltip=c,l.alwaysShow&&this.prePoint&&this.showTooltip(this.prePoint),this.bindEvents()}},e.clear=function(){var t=this.tooltip;t&&(t.destroy(),this.unBindEvents()),this.tooltip=null,this._lastActive=null},e._getTooltipMarkerStyle=function(t){void 0===t&&(t={});var e=t,n=e.type,i=e.items,r=this._tooltipCfg;if("rect"===n){var a,s,o,l,c=this.chart,u=c.get("plotRange"),h=u.tl,f=u.br,d=c.get("coord"),p=i[0],g=i[i.length-1],v=p.width;d.transposed?(a=h.x,s=g.y-.75*v,o=f.x-h.x,l=p.y-g.y+1.5*v):(a=p.x-.75*v,s=h.y,o=g.x-p.x+1.5*v,l=f.y-h.y),t.style=T({x:a,y:s,width:o,height:l,fill:"#CCD6EC",opacity:.3},r.tooltipMarkerStyle)}else t.style=T({radius:4,fill:"#fff",lineWidth:2},r.tooltipMarkerStyle);return t},e._setTooltip=function(t,e,n){void 0===n&&(n={}),this.prePoint=t;var i=this._lastActive,r=this.tooltip,a=this._tooltipCfg;e=Fr(e);var s=this.chart,o=s.get("coord"),l=s.getYScales()[0],c=a.snap;if(!1===c&&l.isLinear){var u,h,f=o.invertPoint(t);Fi(t,s.get("plotRange"))&&(o.transposed?(u=l.invert(f.x),h=t.x,r.setXTipContent(u),r.setXTipPosition(h),r.setYCrosshairPosition(h)):(u=l.invert(f.y),h=t.y,r.setYTipContent(u),r.setYTipPosition(h),r.setXCrosshairPosition(h)))}if(a.onShow&&a.onShow({x:t.x,y:t.y,tooltip:r,items:e,tooltipMarkerCfg:n}),d=i,p=e,JSON.stringify(d)!==JSON.stringify(p)){var d,p;this._lastActive=e;var g=a.onChange;g&&g({x:t.x,y:t.y,tooltip:r,items:e,tooltipMarkerCfg:n});var v=e[0],m=v.title||v.name,y=v.x;if(e.length>1&&(y=(e[0].x+e[e.length-1].x)/2),r.setContent(m,e,o.transposed),r.setPosition(e,t),o.transposed){var x=v.y;e.length>1&&(x=(e[0].y+e[e.length-1].y)/2),r.setYTipContent(m),r.setYTipPosition(x),r.setXCrosshairPosition(x),c&&(r.setXTipContent(v.value),r.setXTipPosition(y),r.setYCrosshairPosition(y))}else r.setXTipContent(m),r.setXTipPosition(y),r.setYCrosshairPosition(y),c&&(r.setYTipContent(v.value),r.setYTipPosition(v.y),r.setXCrosshairPosition(v.y));var b=n.items;a.showTooltipMarker&&b.length?(n=this._getTooltipMarkerStyle(n),r.setMarkers(n)):r.clearMarkers(),r.show()}else!1===c&&(ht(a.crosshairsType,"y")||a.showYTip)&&this.chart.get("canvas").draw()},e.showTooltip=function(t){var e,n,i=this.chart,r=[],a=[],s=this._tooltipCfg,o=s.showItemMarker,c=s.itemMarkerStyle,h=s.alwaysShow;o&&(n=c);var f=i.get("geoms"),d=i.get("coord");if(u(f,(function(i){if(i.get("visible")){var s=i.get("type"),o=i.getSnapRecords(t),c=i.get("adjust");if("interval"===s&&c&&"symmetric"===c.type)return;u(o,(function(t){var o=t.x,c=t.y,u=t._origin,h=t.color;if((o||!isNaN(o))&&(c||!isNaN(c))){var f={x:o,y:l(c)?c[1]:c,color:h||mt.defaultColor,origin:u,name:Dr(i,u),value:Yr(i,u),title:Or(i,u)};n&&(f.marker=T({fill:h||mt.defaultColor},n)),a.push(f),-1!==["line","area","path"].indexOf(s)?(e="circle",r.push(f)):"interval"!==s||"cartesian"!==d.type&&"rect"!==d.type||(e="rect",f.width=i.getSize(t._origin),r.push(f))}}))}})),a.length){var p={items:r,type:e};this._setTooltip(t,a,p)}else h||this.hideTooltip()},e.hideTooltip=function(){var t=this._tooltipCfg;this._lastActive=null;var e=this.tooltip;e&&(e.hide(),t.onHide&&t.onHide({tooltip:e}),this.chart.get("canvas").draw())},e._handleEvent=function(t,e,n){var i=this.canvas;u([].concat(t),(function(t){"bind"===n?i.on(t,e):i.off(t,e)}))},e.bindEvents=function(){var t=this._tooltipCfg,e=t.triggerOn,n=t.triggerOff,i=t.alwaysShow;e&&this._handleEvent(e,this.handleShowEvent,"bind"),i||this._handleEvent(n,this.handleHideEvent,"bind")},e.unBindEvents=function(){var t=this._tooltipCfg,e=t.triggerOn,n=t.triggerOff,i=t.alwaysShow;e&&this._handleEvent(e,this.handleShowEvent,"unBind"),i||this._handleEvent(n,this.handleHideEvent,"unBind")},t}();function Nr(t){var e=new Er({chart:t});t.set("tooltipController",e),t.tooltip=function(t,n){return c(t)&&(n=t,t=!0),e.enable=t,n&&(e.cfg=n),this}}function zr(t){var e=t.get("tooltipController");e.render(),t.showTooltip=function(t){return e.showTooltip(t),this},t.hideTooltip=function(){return e.hideTooltip(),this}}function Xr(t){t.get("tooltipController").clear()}var Rr={init:Nr,afterGeomDraw:zr,clearInner:Xr},Lr=Object.freeze({__proto__:null,init:Nr,afterGeomDraw:zr,clearInner:Xr,default:Rr});mt.guide=D({line:{style:{stroke:"#a3a3a3",lineWidth:1},top:!0},text:{style:{fill:"#787878",textAlign:"center",textBaseline:"middle"},offsetX:0,offsetY:0,top:!0},rect:{style:{fill:"#fafafa"},top:!1},arc:{style:{stroke:"#a3a3a3"},top:!0},html:{offsetX:0,offsetY:0,alignX:"center",alignY:"middle"},tag:{top:!0,offsetX:0,offsetY:0,side:4,background:{padding:5,radius:2,fill:"#1890FF"},textStyle:{fontSize:12,fill:"#fff",textAlign:"center",textBaseline:"middle"}},point:{top:!0,offsetX:0,offsetY:0,style:{fill:"#fff",r:3,lineWidth:2,stroke:"#1890ff"}}},mt.guide||{});var Br=function(){function t(t){this.guides=[],this.xScale=null,this.yScales=null,this.guideShapes=[],T(this,t)}var e=t.prototype;return e._toString=function(t){return s(t)&&(t=t(this.xScale,this.yScales)),t.toString()},e._getId=function(t,e){var n=e.id;if(!n){var i=e.type;n="arc"===i||"line"===i||"rect"===i?this._toString(e.start)+"-"+this._toString(e.end):this._toString(e.position)}return n},e.paint=function(t){var e=this,n=e.chart,i=e.guides,r=e.xScale,a=e.yScales,s=[];u(i,(function(i,o){var l;i.xScale=r,i.yScales=a,"regionFilter"===i.type?i.chart=n:l=i.top?e.frontPlot:e.backPlot,i.coord=t,i.container=l,i.canvas=n.get("canvas");var c=i.render(t,l);if(c){var u=e._getId(c,i);[].concat(c).forEach((function(t){t._id=t.get("className")+"-"+u,t.set("index",o),s.push(t)}))}})),e.guideShapes=s},e.clear=function(){return this.reset(),this.guides=[],this},e.reset=function(){u(this.guides,(function(t){t.remove()}))},e._createGuide=function(t,e){var n=S(t),i=new mr[n](D({},mt.guide[t],e));return this.guides.push(i),i},e.line=function(t){return void 0===t&&(t={}),this._createGuide("line",t)},e.text=function(t){return void 0===t&&(t={}),this._createGuide("text",t)},e.arc=function(t){return void 0===t&&(t={}),this._createGuide("arc",t)},e.html=function(t){return void 0===t&&(t={}),this._createGuide("html",t)},e.rect=function(t){return void 0===t&&(t={}),this._createGuide("rect",t)},e.tag=function(t){return void 0===t&&(t={}),this._createGuide("tag",t)},e.point=function(t){return void 0===t&&(t={}),this._createGuide("point",t)},e.regionFilter=function(t){return void 0===t&&(t={}),this._createGuide("regionFilter",t)},t}();function jr(t){var e=new Br({frontPlot:t.get("frontPlot").addGroup({zIndex:20,className:"guideContainer"}),backPlot:t.get("backPlot").addGroup({className:"guideContainer"})});t.set("guideController",e),t.guide=function(){return e}}function Gr(t){var e=t.get("guideController");if(e.guides.length){var n=t.getXScale(),i=t.getYScales(),r=t.get("coord");e.xScale=n,e.yScales=i,e.chart=t,e.paint(r)}}function Hr(t){t.get("guideController").clear()}function Wr(t){t.get("guideController").reset()}var Vr={init:jr,afterGeomDraw:Gr,clear:Hr,repaint:Wr},qr=Object.freeze({__proto__:null,init:jr,afterGeomDraw:Gr,clear:Hr,repaint:Wr,default:Vr}),Jr={itemMarginBottom:12,itemGap:10,showTitle:!1,titleStyle:{fontSize:12,fill:"#808080",textAlign:"start",textBaseline:"top"},nameStyle:{fill:"#808080",fontSize:12,textAlign:"start",textBaseline:"middle"},valueStyle:{fill:"#000000",fontSize:12,textAlign:"start",textBaseline:"middle"},unCheckStyle:{fill:"#bfbfbf"},itemWidth:"auto",wordSpace:6,selectedMode:"multiple"};mt.legend=D({common:Jr,right:T({position:"right",layout:"vertical"},Jr),left:T({position:"left",layout:"vertical"},Jr),top:T({position:"top",layout:"horizontal"},Jr),bottom:T({position:"bottom",layout:"horizontal"},Jr)},mt.legend||{});var Ur=function(){function t(t){var e=this;yt(this,"handleEvent",(function(t){var n=e,i=n.chart,r=lt(t,i),a=function(t,e){var i=null;return u(n.legends,(function(n){u(n,(function(n){var r=n.itemsGroup,a=n.legendHitBoxes,s=r.get("children");if(s.length){var o=n.x,l=n.y;u(a,(function(r,a){if(t>=r.x+o&&t<=r.x+r.width+o&&e>=r.y+l&&e<=r.height+r.y+l)return i={clickedItem:s[a],clickedLegend:n},!1}))}}))})),i}(r.x,r.y);if(a&&!1!==a.clickedLegend.clickable){var s=a.clickedItem,o=a.clickedLegend;if(o.onClick)t.clickedItem=s,o.onClick(t);else if(!o.custom){var l=s.get("checked"),c=s.get("dataValue"),h=o.filteredVals,f=o.field;"single"===o.selectedMode?i.filter(f,(function(t){return t===c})):(l?h.push(c):G(h,c),i.filter(f,(function(t){return-1===h.indexOf(t)}))),i.repaint()}}})),this.legendCfg={},this.enable=!0,this.position="top",T(this,t);var n=this.chart;this.canvasDom=n.get("canvas").get("el"),this.clear()}var e=t.prototype;return e.addLegend=function(t,e,n){var i=this.legendCfg,r=t.field,a=i[r];if(!1===a)return null;if(a&&a.custom)this.addCustomLegend(r);else{var s=i.position||this.position;a&&a.position&&(s=a.position),t.isCategory&&this._addCategoryLegend(t,e,s,n)}},e.addCustomLegend=function(t){var e=this.legendCfg;t&&e[t]&&(e=e[t]);var n=e.position||this.position,i=this.legends;i[n]=i[n]||[];var r=e.items;if(!r)return null;var a=this.container;u(r,(function(t){d(t.marker)?t.marker.radius=t.marker.radius||3:t.marker={symbol:t.marker||"circle",fill:t.fill,radius:3},t.checked=!!o(t.checked)||t.checked,t.name=t.name||t.value}));var s=new Pr(D({},mt.legend[n],e,{maxLength:this._getMaxLength(n),items:r,parent:a}));i[n].push(s)},e.clear=function(){u(this.legends,(function(t){u(t,(function(t){t.clear()}))})),this.legends={},this.unBindEvents()},e._isFiltered=function(t,e,n){var i=!1;return u(e,(function(e){if(i=i||t.getText(e)===t.getText(n))return!1})),i},e._getMaxLength=function(t){var e=this.chart,n=ut(e.get("appendPadding"));return"right"===t||"left"===t?e.get("height")-(n[0]+n[2]):e.get("width")-(n[1]+n[3])},e._addCategoryLegend=function(t,e,n,i){var r=this,a=r.legendCfg,s=r.legends,o=r.container,l=r.chart,c=t.field;s[n]=s[n]||[];var h="circle";a[c]&&a[c].marker?h=a[c].marker:a.marker&&(h=a.marker),u(e,(function(e){d(h)?T(e.marker,h):e.marker.symbol=h,i&&(e.checked=!r._isFiltered(t,i,e.dataValue))})),l.get("legendItems")[c]=e;var f=D({},mt.legend[n],a[c]||a,{maxLength:r._getMaxLength(n),items:e,field:c,filteredVals:i,parent:o});f.showTitle&&D(f,{title:t.alias||t.field});var p=new Pr(f);return s[n].push(p),p},e._alignLegend=function(t,e,n){var i=this.plotRange,r=i.tl,a=i.bl,s=this.chart,o=t.offsetX||0,l=t.offsetY||0,c=s.get("width"),u=s.get("height"),h=ut(s.get("appendPadding")),f=t.getHeight(),d=t.getWidth(),p=0,g=0;if("left"===n||"right"===n){var v=t.verticalAlign||"middle",m=Math.abs(r.y-a.y);p="left"===n?h[3]:c-d-h[1],g=(m-f)/2+r.y,"top"===v?g=r.y:"bottom"===v&&(g=a.y-f),e&&(g=e.get("y")-f-12)}else{var y=t.align||"left";if(p=h[3],"center"===y?p=c/2-d/2:"right"===y&&(p=c-(d+h[1])),g="top"===n?h[0]+Math.abs(t.container.getBBox().minY):u-f,e){var x=e.getWidth();p=e.x+x+12}}"bottom"===n&&l>0&&(l=0),"right"===n&&o>0&&(o=0),t.moveTo(p+o,g+l)},e.alignLegends=function(){var t=this;return u(t.legends,(function(e,n){u(e,(function(i,r){var a=e[r-1];t._alignLegend(i,a,n)}))})),t},e.bindEvents=function(){var t=this.legendCfg.triggerOn||"touchstart";rt(this.canvasDom,t,this.handleEvent)},e.unBindEvents=function(){var t=this.legendCfg.triggerOn||"touchstart";at(this.canvasDom,t,this.handleEvent)},t}();function Zr(t){var e=new Ur({container:t.get("backPlot").addGroup(),plotRange:t.get("plotRange"),chart:t});t.set("legendController",e),t.legend=function(t,n){var i=e.legendCfg;return e.enable=!0,k(t)?(e.enable=t,i=n||{}):c(t)?i=t:i[t]=n,e.legendCfg=i,this}}function Kr(t){var e=t.get("legendController");if(!e.enable)return null;var n=e.legendCfg,i=e.container;if(n&&n.custom)e.addCustomLegend();else{var r=t.getLegendItems(),a=t.get("scales"),s=t.get("filters");u(r,(function(t,n){var i,r=a[n],o=r.values;i=s&&s[n]?o.filter((function(t){return!s[n](t)})):[],e.addLegend(r,t,i)}))}n&&!1!==n.clickable&&e.bindEvents();var o=e.legends,l={top:0,right:0,bottom:0,left:0};u(o,(function(e,n){var i=0;u(e,(function(t){var e=t.getWidth(),r=t.getHeight();"top"===n||"bottom"===n?(i=Math.max(i,r),t.offsetY>0&&(i+=t.offsetY)):(i=Math.max(i,e),t.offsetX>0&&(i+=t.offsetX))})),l[n]=i+function(t,e){var n=0;switch(e=ut(e),t){case"top":n=e[0];break;case"right":n=e[1];break;case"bottom":n=e[2];break;case"left":n=e[3]}return n}(n,t.get("appendPadding"))})),t.set("legendRange",l),Object.keys(o).length?i.set("ariaLabel",vt.legend.prefix):i.set("ariaLabel",null)}function Qr(t){t.get("legendController").alignLegends()}function $r(t){t.get("legendController").clear(),t.set("legendRange",null)}var ta={init:Zr,beforeGeomDraw:Kr,afterGeomDraw:Qr,clearInner:$r},ea=Object.freeze({__proto__:null,init:Zr,beforeGeomDraw:Kr,afterGeomDraw:Qr,clearInner:$r,default:ta}),na="object"==typeof performance&&performance.now?performance:Date,ia=function(){function t(){this.anims=[],this.time=null,this.playing=!1,this.canvas=[]}var e=t.prototype;return e.play=function(){var t=this;t.time=na.now(),t.playing=!0,Pi((function e(){t.playing&&(Pi(e),t.update())}))},e.stop=function(){this.playing=!1,this.time=null,this.canvas=[]},e.pushAnim=function(t){this.playing||this.play();var e=t.delay,n=t.duration,i=this.time+e,r=i+n;t.startTime=i,t.endTime=r,this.anims.push(t)},e.update=function(){var t=na.now();if(this.canvas=[],this.anims.length){for(var e=0;e=n.startTime&&!n.hasStarted&&(n.hasStarted=!0,n.onStart&&n.onStart());var l=(t-n.startTime)/o;if(l=Math.max(0,Math.min(l,1)),l=n.easing(l),n.onFrame)n.onFrame(l);else for(var c in s){var u=(0,s[c])(l),h=void 0;if("points"===c){h=[];for(var f=Math.max(r.points.length,a.points.length),d=0;d=n.endTime&&!n.hasEnded&&(n.hasEnded=!0,n.onEnd&&n.onEnd()),1===l&&(this.anims.splice(e,1),e--)}}}this.canvas.map((function(t){return t.draw(),t})),this.time=na.now()}else this.stop()},t}();function ra(t){return t}function aa(t){return 1-sa(1-t)}function sa(t){return(t/=1)<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}var oa=Object.freeze({__proto__:null,linear:ra,quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4/(2*Math.PI)*Math.asin(1/n),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4/(2*Math.PI)*Math.asin(1/n),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i/(2*Math.PI)*Math.asin(1/n),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:aa,bounceOut:sa,bounceInOut:function(t){return t<.5?.5*aa(2*t):.5*sa(2*t-1)+.5}});function la(t){for(var e=[],n=0,i=t.length;nl.x?i.x:l.x,s=l.y+h/2):"xy"===r&&(n.isPolar?(a=n.center.x,s=n.center.y):(a=(l.x+c.x)/2,s=(l.y+c.y)/2));var d=pa(f,[a,s],r);f.isClip=!0,f.endState={matrix:d},f.set("canvas",t.get("canvas")),t.attr("clip",f),ga(f,f.endState,e,(function(){t.attr("clip",null),f.remove(!0)}))}function xa(t,e,n){for(var i=t.get("children"),r=0,a=i.length;r-1&&(t="guide-tag"),c(n)?n[t]:!1!==n&&null}function Oa(){(ka=new ia).play()}function Fa(t){if(!1!==t.get("animate")){var e=t.get("isUpdate"),n=t.get("canvas"),i=t.get("coord"),r=t.get("geoms"),a=n.get("caches")||[];0===a.length&&(e=!1);var l=Aa(r,t,i),c=t.get("axisController"),h=c.frontPlot,f=c.backPlot,d=h.get("children").concat(f.get("children")),p=[];t.get("guideController")&&(p=t.get("guideController").guideShapes);var g,v,m=[];d.concat(p).forEach((function(e){var n=Ya(e.get("className"),t);e.set("coord",i),e.set("animateCfg",n),m.push(e),l.push(e)})),n.set("caches",function(t){for(var e={},n=0,i=t.length;n1?[1-a,1]:[o,l],this.updateRange(e)}},e.updateRange=function(t){var e=this.values,n=t[0],i=t[1];n=Math.max(0,n),i=Math.min(1,i),this.range=[n,i];var r=e.length,a=n*r,s=i*r,o=e.slice(a,s);this.repaint(o)},e.repaint=function(t){var e=this.chart,n=this.getPinchScale(),i=n.values,r=n.ticks;(function(t,e){if(t.length!==e.length)return!1;var n=t.length-1;return t[0]===e[0]&&t[n]===e[n]})(i,t)||(this.updateScale(n,{ticks:r,values:t}),this.updateFollowScale(n,t),e.repaint())},e.updateFollowScale=function(t,e){var n=this.chart,i=this.getFollowScale(),r=t.field,a=t.type,s=i.field,o=[],l={};e.forEach((function(t){l[t]=!0})),n.get("data").forEach((function(t){if("timeCat"===a){var e=ft(t[r]);l[e]&&o.push(t[s])}}));var c=H(o),u=c.min,h=c.max;this.updateScale(i,{min:u,max:h,nice:!0})},e.updateScale=function(t,e){t&&t.change(e)},e.updateTicks=function(){var t=this.chart,e=this.values,n=this.getPinchScale(),i=n.values,r=n.tickCount,a=Math.round(r*e.length/i.length),s=$t("cat")({tickCount:a,values:e});this.updateScale(n,{ticks:s,values:i}),t.repaint()},e.destroy=function(){var t=this.chart;t.off("afterinit",this._afterinit),t.off("afterdatachange",this._afterdatachange)},t}(),La=function(){var t=e.prototype;function e(t,e){var n=this;yt(this,"type",""),yt(this,"startEvent","touchstart"),yt(this,"processEvent","touchmove"),yt(this,"endEvent","touchend"),yt(this,"resetEvent",null),yt(this,"context",null),yt(this,"_start",(function(t){n.preStart&&n.preStart(t),n.start(t),n.onStart&&n.onStart(t)})),yt(this,"_process",(function(t){n.preProcess&&n.preProcess(t),n.process(t),n.onProcess&&n.onProcess(t)})),yt(this,"_end",(function(t){n.preEnd&&n.preEnd(t),n.end(t),n.onEnd&&n.onEnd(t)})),yt(this,"_reset",(function(t){n.preReset&&n.preReset(t),n.reset(t),n.onReset&&n.onReset(t)})),T(this,this.getDefaultCfg(),t),this.context=this.getInteractionContext(e),this.chart=e;var i=this.range;i&&(this.context.range=i),this._bindEvents(e)}return t.getDefaultCfg=function(){return{}},t.getInteractionContext=function(t){var e=t.get("interactionContext");return e||(e=new Ra(t),t.set("interactionContext",e),e)},t._bindEvents=function(t){var e=this.startEvent,n=this.processEvent,i=this.endEvent,r=this.resetEvent,a=t.get("canvas");a.on(e,this._start),a.on(n,this._process),a.on(i,this._end),a.on(r,this._reset)},t._clearEvents=function(){var t=this.chart,e=this.startEvent,n=this.processEvent,i=this.endEvent,r=this.resetEvent,a=t.get("canvas");a.off(e,this._start),a.off(n,this._process),a.off(i,this._end),a.off(r,this._start)},t.start=function(){},t.process=function(){},t.end=function(){},t.reset=function(){},t.destroy=function(){this.context.destroy(),this._clearEvents()},e}(),Ba=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{type:"pan",startEvent:"panstart",processEvent:"pan",endEvent:"panend"}},n.start=function(){this.context.start()},n.process=function(t){var e=t.direction,n=t.deltaX;if("up"!==e&&"down"!==e){t.preventDefault&&t.preventDefault();var i=this.context,r=i.chart.get("coord"),a=r.start,s=n/(r.end.x-a.x);i.doMove(s)}},e}(La),ja=function(t){bt(n,t);var e=n.prototype;function n(e,n){var i;return T(wt(i=t.call(this,e,n)||this).context,e),i}return e.getDefaultCfg=function(){return{type:"pinch",startEvent:"pinchstart",processEvent:"pinch",endEvent:"pinchend"}},e.start=function(){this.context.start()},e.process=function(t){t.preventDefault&&t.preventDefault();var e=t.zoom,n=t.center,i=this.context,r=i.chart.get("coord"),a=r.start,s=r.end,o=s.x-a.x,l=Math.abs(n.x-a.x)/o,c=Math.abs(s.x-n.x)/o;i.doZoom(l,c,e)},e.end=function(){this.context.updateTicks()},n}(La);zi.registerInteraction("pan",Ba),zi.registerInteraction("pinch",ja);var Ga={Marker:Qn.Marker,Tooltip:Tr};zi.plugins.register([Lr,ea,qr,za]);var Ha={Component:Ga,Global:mt,Chart:zi,Shape:jt,G:Yi,Util:dt,Helper:Ei,track:Xi,Animate:da};e.Animate=da,e.Chart=zi,e.Component=Ga,e.G=Yi,e.Global=mt,e.Helper=Ei,e.Shape=jt,e.Util=dt,e.default=Ha,e.track=Xi,Object.defineProperty(e,"__esModule",{value:!0})}))}).call(this,n("c8ba"))},f052:function(t,e,n){"use strict";n.r(e);var i=n("2ec7"),r=n("4fb4");for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("93f3");var s,o=n("f0c5"),l=Object(o["a"])(r["default"],i["b"],i["c"],!1,null,"32d2e1d6",null,!1,i["a"],s);e["default"]=l.exports},f1a7:function(t,e,n){"use strict";n.r(e);var i=n("6876"),r=n("5f33");for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("99ac");var s,o=n("f0c5"),l=Object(o["a"])(r["default"],i["b"],i["c"],!1,null,"218f84fe",null,!1,i["a"],s);e["default"]=l.exports},f8cb:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".l-f2[data-v-32d2e1d6]{width:100%;height:100%;position:relative}.l-f2__mask[data-v-32d2e1d6]{position:absolute;left:0;right:0;bottom:0;top:0;background-color:#fff;z-index:1}.l-f2__canvas[data-v-32d2e1d6]{width:100%;height:100%}",""]),t.exports=e},fa4b:function(t,e,n){t.exports=n.p+"static/img/chain-back-00.599e7c68.png"},fe87:function(t,e,n){var i=n("f8cb");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("4f06").default;r("6ddd28b6",i,!0,{sourceMap:!1,shadowMode:!1})}}]);