(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2b7da225"],{"000e":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a})); /*! ***************************************************************************** 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. ***************************************************************************** */ var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)};function r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var a=function(){return a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0&&t.charCodeAt(e)<128?1:2}function s(t,e,n){void 0===n&&(n="tail");var i=t.length,a="";if("tail"===n){for(var s=0,c=0;s=19968&&c<=40869?2:1}o>n&&(n=o,r=a)}return t[r].getBBox().width}function f(t){if(t.length>u)return h(t);var e=0;return Object(i["j"])(t,(function(t){var n=t.getBBox(),i=n.width;e=0?s(u,y,r):c,m&&(e.attr("text",m),v=!0)}return v?e.set("tip",u):e.set("tip",null),v}},"09cc":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAABOCAYAAACOqiAdAAAAAXNSR0IArs4c6QAACwBJREFUeF7tXHuMHVUZ/74z58y9tt3SVlu1xEeEaKKRgIGmUfGVGIQQbbUUfKGFlkrpFtoEqYY/qkgp1QCR8qhBfKQYIlULxBSjQSlUsCWiQDEgjzaWtNAn7ra7e8+Z8zPfOrvO3jtzn3PvdtedpGmyd+Y8fud7Pw7TxNMUAtzUVxMf0agAB2AaEc10zp1MRGcy83sAfADAJPk7M88kGlwbABwgogPMfJyZn/bev8DMz2qt98Z/Pzoa59gx4A4fPnxSV1eXgHOmUmqu934OM7+diDQRKSIKYrCycAARRUTkicgB2KeU2uG9f4KZn+zp6dk1Y8aMNzoFYluBA6AHBgZOCYJgHhF9gohOJ6K3tWFz+4nob0T0pyiKthQKhZeY2bVhnuEh2wJczHLvt9auIKKPMrOwZNjOjcRjlwC8SkSPGWN+SETPCYu3Y95cgQOgrLVnKKUWE9HCWJYJG3b68cx81Ht/HxFtDMPwqbwXkBtwAN7snFvKzEsAvDvvhTY7HjO/zMwblVI/ZuZDzY5T/l3LwIkcc86dTUTXiYYkokJei8txnAEi2kFEq7XWO/KQfy0BB6DLWruImb/VJqGfI3aDQ+0DsM4Y8xNm7mll8KaBAzDTWruOmb/SIcHfyj6T34oC2WSMWc3MYiM29TQFHIDZ1tqbmHlBbH81NfkofhQB2GytXTl58uR9zayjYeDEwnfO3SZmxhgFbQgnMab/6L1fWSgUnm0UvIaAO3bs2OwwDDcR0ScbnegEfv8PWuuLmbkhyqsbuJ6enpmFQmEDM19QwzU6gTFKXVrEzJv7+vq6u7q66pZ5dQEHYLK1VkD76hhnz6xDFfB+FgRBd72eRk3gABjv/eXe+/UnqI2WC4ULYCLvjDF312Pn1QTOWvspIhK5JpGMcf0A+BczX2iMebzWRqsCF7tRDxDRh2sNNF5+B7C9v79/3tSpUw9W21MmcAAC7/013vtriehN4wWYOvbRR0Tf0VqvZ2aJAaY+mcCVSqUziOh+Zn5HHZONq1cA7DbGzGPmvzcEnMTToii6CcDScYVIA5uRiEoQBKuytGwqxQGY45zbSkQzGpir1qtC9jWVUa1BMn4XL0BC73k+h7XW5zKzRFUqnoqNiGyz1kr04MtxLqClxYimCoJgvfwfRdEcpdQyIpJkTasPmPkVZr4FwCsAPkZEEkCd3urA8fcSDN0UBIFEfyTPMeKpAG5gYOC0IAgeBPDOVhcAYI8cgNb6cZkcQBhF0ecASFi71dzDdgBXGmOeiscuRFF0MYDvE9FJra5dvpeDcc6dWywWn68JnLV2NRGtycPYBdBtjLktqZ0AcBRFCwDcSkRvbXKD26IoWlwsFv+Z/B5A0Tl3DxHNz0ksSAB0jTFmXVXgjhw5Mm3KlCm/JKJPN7mhkeTMfL7W+rdpYznnBLwNDYIncvKxGLQXyseVQ3HOfZeIJLCal8z7fW9v78Lp06ePyN+OYFVrrRi6v8qBjYb2dL3Wek2aCyOJnSiKhDI2AKiXbVMpbWgyAFOstQ8ws6Qi81JE+wHMD8PwieRBDQ8up+W9X+G9vznHSY8w89IgCDanGZMyZ6lUWqCUqodtt2mtL2XmF9MoWOSnc+6bEsaP05N5MI2MIdUEVxhj7kzuYRi4o0ePTp80adLtzHxRXjPG4+xn5hVaa0nVpT7CtjHlpck8Yc9HoyhaUiwWK9gz3pkEIi7x3q/N2YQaXC+Ae48fP75s2rRpR4Y2MAxcf3//qVrrhwCckjNwMpyAtzwIgt+kqfYhtgUgkeUkeIOgaa0XM/MIRZBgzyHQRIDnYeZUbJ+ZX3LOfaZYLA5T+zBw1lqJ6oogb5df+hozL4vBq/ABY/C+UKZta7KntfYSZhZKy8t+S6Mb8V/PN8Y8XEFx1tqrieh77cxYMbPUeFRl24GBgYVKKdG2z2utBZRMSrPWisy7vh3sWYaeZMauDsNQ7M/BZ5jinHN3AFiSoxrP4vghtt3CzOIqjXiE8ohoLhEdZebnMhSBiSmtbexZNq8T31VrvTyN4rbFmau81HimqIwpT2Ter6uFbjJACzvEnsnpB+1HY4y4dSMprlQq7WRmKWHo1CMyr7uatk2hRqG0TrFnOSc8GYbhWWnA7Wbmd3UKtXieIbaVuF/Vejax0+Jyi06xZzlwe8IwHC4mSmpVqSNrl0atdh4HtNYSNPxztZdKpdLXmVmM87aYHHUQTJ8xRkptR7KqtXa0gHtUsmiFQmFXtcU7574I4BYimlXHJtvxygkDXE2PYIR0/m9U5fMpRnI7QEobMx0459xuAJ2UcVUd9gyNKoEBAU9823oDA7kAy8x7tNaVMq7DWlU8gkw3qtZOnXMXtBjPqzVFxe8A0rWqtbYTdtygPRRHObI8AokSXxRF0UAYhvdl+LadZttsO65DnkOteNqgR6CUugFAiZmvqBIYCKIomhcHQ9vNtlU9h3b7qo/EoaFMSotDQ0nf8zXvfXehUKgWkuoE22b7qm2MjlQNd4swkcIe8QiUUmsBlEc5xEjujt2zimxTnMNot7bNjo4AONVa+zvpq2pYclb/YHsURYvKEytDn8SgSRSkmkdQK54XlEql+UEQ3NpAGL7ubQJ42RhzTjL6nAydT7PW3pFnBFgmCoLgQmb+a4Z50YjvKb7tcq315qwdi5FMRLelUG3dIGWs815jzOXSdFLhObQh5wCl1JVKKQnHp4WPhkJDNzQQhByUeWEYZuUwTBRFGwF8LY9kegxS9ZyDvJRzluvfRPRZY8wj5adYJ3tmUUlVtrXWriKiG+OuxJYoLf64epZLXso5rypKQcql1jKzTco07/2lcWKl2XB3KttKya1z7uc5JqRl2Vt7e3u/VDWvGlNdbpl8IhrcYBAE90uPKRFNcs5J7YgkjJsFbegMhPJWSeoxMbZQm6x/OIrRIslJJv9aY8wPysepiPb29/e/Tyn1EDPn1cj2OoCtzPwPIpKeL0kK5bIxZj7svZdDeUYpdTaAc/IaW4CSBjrn3Hl11Y7E2aafAsilWik+KbG/5F+tLuhmCETGFeUjndZ5hv2lSOhuY4x0RNauVooN0nbUxzUDymh+cxjAeWEY/iVtEVmFhZOstTcz82WjufLRnBvAj4wxKxuqyJQFl0qlDymltgD4f6wB3kNE88IwlD7/1Gei6rwSltaqzmNZJ+3iE30OKTRXUwtNdNY0yKpllr70ckltbSeuwBgtndAH4Krcerlilp0cRZFUTo7b7kEAdx08eHDV7Nmz67qnpCarDh3/eO9XDYJgOTNX7d9KskLdwMlHEx3S/4OuIeBitp3oyW/Wt4tvgRDPQmp3R+MKoFYViPihcgvEVR27BSKhbeXekRvj1qWxpG37mPmeIAi+3fF7RxLgdXnvF3nvx8pNN3uVUtcdOnToF7NmzepthWwblnHlk42xu5Wuie9WqsiBNApiy8AlqE/cM6kHuQxA3inGRvc1/L4EIyXSobW+64S6zat8R3Fn9Tfi+0mki280lIcEHt8AIBUAd57Q98clAUzcWCjpwY8A6NiNhcy813sv/QgST9tV7z0ijZJ0bqyaNnHijkxpdvs4M5/ejky7VLEDkFsJH9ZaP0hEL6blchsFp9r7bQUuOXHiVlap3J6rlDoLQNO3sspdSN77nUQkt7LuHFe3smadmDTcFYvFmUEQnAzgg0T0XmY+TYq3Acxi5rck7gE+yMyvE5FEL54mIrkH+Jkoil7t7+8/kGxMy5Oiao3VMYqrtZCx9vsEcE2e2ARwTQL3H9nGvJr0GlsWAAAAAElFTkSuQmCC"},"0a1f":function(t,e,n){"use strict";n.r(e),n.d(e,"Html",(function(){return m}));var i,r=n("9ab4"),a=n("e945"),o=n("7c8a"),s=n("8937"),c=n("75ed"),l=n("e546"),u=n("bbad"),h=n("2f5e"),f=(i={},i[""+u["CONTAINER_CLASS"]]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:h["a"].fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},i[""+u["TITLE_CLASS"]]={marginBottom:"4px"},i[""+u["LIST_CLASS"]]={margin:"0px",listStyleType:"none",padding:"0px"},i[""+u["LIST_ITEM_CLASS"]]={listStyleType:"none",marginBottom:"4px"},i[""+u["MARKER_CLASS"]]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},i[""+u["VALUE_CLASS"]]={display:"inline-block",float:"right",marginLeft:"30px"},i[""+u["CROSSHAIR_X"]]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},i[""+u["CROSSHAIR_Y"]]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},i);function p(t,e,n,i,r){var a={left:tr.x+r.width,top:er.y+r.height};return a}function d(t,e,n,i,r,a){var o=t,s=e;switch(a){case"left":o=t-i-n,s=e-r/2;break;case"right":o=t+n,s=e-r/2;break;case"top":o=t-i/2,s=e-r-n;break;case"bottom":o=t-i/2,s=e+n;break;default:o=t+n,s=e-r-n;break}return{x:o,y:s}}function g(t,e,n,i,r,a,o){var s=d(t,e,n,i,r,a);if(o){var c=p(s.x,s.y,i,r,o);"auto"===a?(c.right&&(s.x=Math.max(0,t-i-n)),c.top&&(s.y=Math.max(0,e-r-n))):"top"===a||"bottom"===a?(c.left&&(s.x=o.x),c.right&&(s.x=o.x+o.width-i),"top"===a&&c.top&&(s.y=e+n),"bottom"===a&&c.bottom&&(s.y=e-r-n)):(c.top&&(s.y=o.y),c.bottom&&(s.y=o.y+o.height-r),"left"===a&&c.left&&(s.x=t+n),"right"===a&&c.right&&(s.x=t-i-n))}return s}function v(t,e){var n=!1;return Object(s["j"])(e,(function(e){if(Object(s["y"])(t,e))return n=!0,!1})),n}var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r["a"])(Object(r["a"])({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'
    ',itemTpl:'
  • \n \n {name}:\n {value}\n
  • ',xCrosshairTpl:'
    ',yCrosshairTpl:'
    ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:u["CONTAINER_CLASS"],crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:f})},e.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},e.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},e.prototype.show=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!0),Object(o["e"])(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),Object(o["e"])(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},e.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},e.prototype.setCrossHairsVisible=function(t){var e=t?"":"none",n=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");n&&Object(o["e"])(n,{display:e}),i&&Object(o["e"])(i,{display:e})},e.prototype.initContainer=function(){if(t.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var e=this.getHtmlContentNode();this.get("parent").appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()}},e.prototype.updateInner=function(e){this.get("customContent")?this.renderCustomContent():(v(e,["title","showTitle"])&&this.resetTitle(),Object(s["y"])(e,"items")&&this.renderItems()),t.prototype.updateInner.call(this,e)},e.prototype.initDom=function(){this.cacheDoms()},e.prototype.removeDom=function(){t.prototype.removeDom.call(this),this.clearCrosshairs()},e.prototype.resetPosition=function(){var t,e=this.get("x"),n=this.get("y"),i=this.get("offset"),r=this.getOffset(),a=r.offsetX,s=r.offsetY,c=this.get("position"),u=this.get("region"),h=this.getContainer(),f=this.getBBox(),p=f.width,d=f.height;u&&(t=Object(l["k"])(u));var v=g(e,n,i,p,d,c,t);Object(o["e"])(h,{left:Object(l["l"])(v.x+a),top:Object(l["l"])(v.y+s)}),this.resetCrosshairs()},e.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),e=this.get("parent"),n=this.get("container");n&&n.parentNode===e?e.replaceChild(t,n):e.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},e.prototype.getHtmlContentNode=function(){var t,e=this.get("customContent");if(e){var n=e(this.get("title"),this.get("items"));t=Object(s["F"])(n)?n:Object(o["b"])(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(u["TITLE_CLASS"])[0],n=t.getElementsByClassName(u["LIST_CLASS"])[0];this.set("titleDom",e),this.set("listDom",n)},e.prototype.resetTitle=function(){var t=this.get("title"),e=this.get("showTitle");e&&t?this.setTitle(t):this.setTitle("")},e.prototype.setTitle=function(t){var e=this.get("titleDom");e&&(e.innerText=t)},e.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),e=this.get("crosshairs");if(t&&e){var n=Object(l["k"])(t),i=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",n),r&&(r.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",n),i&&(i.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},e.prototype.resetCrosshair=function(t,e){var n=this.checkCrosshair(t),i=this.get(t);"x"===t?Object(o["e"])(n,{left:Object(l["l"])(i),top:Object(l["l"])(e.y),height:Object(l["l"])(e.height)}):Object(o["e"])(n,{top:Object(l["l"])(i),left:Object(l["l"])(e.x),width:Object(l["l"])(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",i="CROSSHAIR_"+t.toUpperCase(),r=u[i],a=this.get(e),s=this.get("parent");return a||(a=Object(o["b"])(this.get(n)),this.applyStyle(r,a),s.appendChild(a),this.set(e,a)),a},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&(Object(s["j"])(t,(function(t){var i=a["a"].toCSSGradient(t.color),c=Object(r["a"])(Object(r["a"])({},t),{color:i}),l=Object(s["pb"])(e,c),u=Object(o["b"])(l);n.appendChild(u)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&Object(l["a"])(this.get("listDom"))},e.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),e=this.get("yCrosshairDom");t&&t.remove(),e&&e.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},e}(c["a"]),m=y},1148:function(t,e,n){"use strict";var i=n("da84"),r=n("5926"),a=n("577e"),o=n("1d80"),s=i.RangeError;t.exports=function(t){var e=a(o(this)),n="",i=r(t);if(i<0||i==1/0)throw s("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},1183:function(t,e,n){"use strict";n.d(e,"e",(function(){return x})),n.d(e,"b",(function(){return S})),n.d(e,"a",(function(){return z})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return W})),n.d(e,"f",(function(){return i}));var i={};n.r(i),n.d(i,"distance",(function(){return a})),n.d(i,"isNumberEqual",(function(){return o})),n.d(i,"getBBoxByArray",(function(){return s})),n.d(i,"getBBoxRange",(function(){return c})),n.d(i,"piMod",(function(){return l}));var r=n("8937");function a(t,e,n,i){var r=t-n,a=e-i;return Math.sqrt(r*r+a*a)}function o(t,e){return Math.abs(t-e)<.001}function s(t,e){var n=Object(r["bb"])(t),i=Object(r["bb"])(e),a=Object(r["Y"])(t),o=Object(r["Y"])(e);return{x:n,y:i,width:a-n,height:o-i}}function c(t,e,n,i){return{minX:Object(r["bb"])([t,n]),maxX:Object(r["Y"])([t,n]),minY:Object(r["bb"])([e,i]),maxY:Object(r["Y"])([e,i])}}function l(t){return(t+2*Math.PI)%(2*Math.PI)}var u=n("6711"),h={box:function(t,e,n,i){return s([t,n],[e,i])},length:function(t,e,n,i){return a(t,e,n,i)},pointAt:function(t,e,n,i,r){return{x:(1-r)*t+r*n,y:(1-r)*e+r*i}},pointDistance:function(t,e,n,i,r,o){var s=(n-t)*(r-t)+(i-e)*(o-e);if(s<0)return a(t,e,r,o);var c=(n-t)*(n-t)+(i-e)*(i-e);return s>c?a(n,i,r,o):this.pointToLine(t,e,n,i,r,o)},pointToLine:function(t,e,n,i,r,a){var o=[n-t,i-e];if(u["exactEquals"](o,[0,0]))return Math.sqrt((r-t)*(r-t)+(a-e)*(a-e));var s=[-o[1],o[0]];u["normalize"](s,s);var c=[r-t,a-e];return Math.abs(u["dot"](c,s))},tangentAngle:function(t,e,n,i){return Math.atan2(i-e,n-t)}},f=1e-4;function p(t,e,n,i,r,o){var s,c=1/0,l=[n,i],u=20;o&&o>200&&(u=o/10);for(var h=1/u,p=h/10,d=0;d<=u;d++){var g=d*h,v=[r.apply(null,t.concat([g])),r.apply(null,e.concat([g]))],y=a(l[0],l[1],v[0],v[1]);y=0&&y=0?[r]:[]}function y(t,e,n,i){return 2*(1-i)*(e-t)+2*i*(n-e)}function m(t,e,n,i,r,a,o){var s=g(t,n,r,o),c=g(e,i,a,o),l=h.pointAt(t,e,n,i,o),u=h.pointAt(n,i,r,a,o);return[[t,e,l.x,l.y,s,c],[s,c,u.x,u.y,r,a]]}function b(t,e,n,i,r,o,s){if(0===s)return(a(t,e,n,i)+a(n,i,r,o)+a(t,e,r,o))/2;var c=m(t,e,n,i,r,o,.5),l=c[0],u=c[1];return l.push(s-1),u.push(s-1),b.apply(null,l)+b.apply(null,u)}var x={box:function(t,e,n,i,r,a){var o=v(t,n,r)[0],c=v(e,i,a)[0],l=[t,r],u=[e,a];return void 0!==o&&l.push(g(t,n,r,o)),void 0!==c&&u.push(g(e,i,a,c)),s(l,u)},length:function(t,e,n,i,r,a){return b(t,e,n,i,r,a,3)},nearestPoint:function(t,e,n,i,r,a,o,s){return p([t,n,r],[e,i,a],o,s,g)},pointDistance:function(t,e,n,i,r,o,s,c){var l=this.nearestPoint(t,e,n,i,r,o,s,c);return a(l.x,l.y,s,c)},interpolationAt:g,pointAt:function(t,e,n,i,r,a,o){return{x:g(t,n,r,o),y:g(e,i,a,o)}},divide:function(t,e,n,i,r,a,o){return m(t,e,n,i,r,a,o)},tangentAngle:function(t,e,n,i,r,a,o){var s=y(t,n,r,o),c=y(e,i,a,o),u=Math.atan2(c,s);return l(u)}};function O(t,e,n,i,r){var a=1-r;return a*a*a*t+3*e*r*a*a+3*n*r*r*a+i*r*r*r}function j(t,e,n,i,r){var a=1-r;return 3*(a*a*(e-t)+2*a*r*(n-e)+r*r*(i-n))}function w(t,e,n,i){var r,a,s,c=-3*t+9*e-9*n+3*i,l=6*t-12*e+6*n,u=3*e-3*t,h=[];if(o(c,0))o(l,0)||(r=-u/l,r>=0&&r<=1&&h.push(r));else{var f=l*l-4*c*u;o(f,0)?h.push(-l/(2*c)):f>0&&(s=Math.sqrt(f),r=(-l+s)/(2*c),a=(-l-s)/(2*c),r>=0&&r<=1&&h.push(r),a>=0&&a<=1&&h.push(a))}return h}function C(t,e,n,i,r,a,o,s,c){var l=O(t,n,r,o,c),u=O(e,i,a,s,c),f=h.pointAt(t,e,n,i,c),p=h.pointAt(n,i,r,a,c),d=h.pointAt(r,a,o,s,c),g=h.pointAt(f.x,f.y,p.x,p.y,c),v=h.pointAt(p.x,p.y,d.x,d.y,c);return[[t,e,f.x,f.y,g.x,g.y,l,u],[l,u,v.x,v.y,d.x,d.y,o,s]]}function M(t,e,n,i,r,a,o,s,c){if(0===c)return d([t,n,r,o],[e,i,a,s]);var l=C(t,e,n,i,r,a,o,s,.5),u=l[0],h=l[1];return u.push(c-1),h.push(c-1),M.apply(null,u)+M.apply(null,h)}var S={extrema:w,box:function(t,e,n,i,r,a,o,c){for(var l=[t,o],u=[e,c],h=w(t,n,r,o),f=w(e,i,a,c),p=0;p0?n:-1*n}var k={box:function(t,e,n,i){return{x:t-n,y:e-i,width:2*n,height:2*i}},length:function(t,e,n,i){return Math.PI*(3*(n+i)-Math.sqrt((3*n+i)*(n+3*i)))},nearestPoint:function(t,e,n,i,r,a){var o=n,s=i;if(0===o||0===s)return{x:t,y:e};for(var c,l,u=r-t,h=a-e,f=Math.abs(u),p=Math.abs(h),d=o*o,g=s*s,v=Math.PI/4,y=0;y<4;y++){c=o*Math.cos(v),l=s*Math.sin(v);var m=(d-g)*Math.pow(Math.cos(v),3)/o,b=(g-d)*Math.pow(Math.sin(v),3)/s,x=c-m,O=l-b,j=f-m,w=p-b,C=Math.hypot(O,x),M=Math.hypot(w,j),S=C*Math.asin((x*w-O*j)/(C*M)),k=S/Math.sqrt(d+g-c*c-l*l);v+=k,v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+A(c,u),y:e+A(l,h)}},pointDistance:function(t,e,n,i,r,o){var s=this.nearestPoint(t,e,n,i,r,o);return a(s.x,s.y,r,o)},pointAt:function(t,e,n,i,r){var a=2*Math.PI*r;return{x:t+n*Math.cos(a),y:e+i*Math.sin(a)}},tangentAngle:function(t,e,n,i,r){var a=2*Math.PI*r,o=Math.atan2(i*Math.cos(a),-n*Math.sin(a));return l(o)}};function F(t,e,n,i,r,a,o,s){return-1*n*Math.cos(r)*Math.sin(s)-i*Math.sin(r)*Math.cos(s)}function E(t,e,n,i,r,a,o,s){return-1*n*Math.sin(r)*Math.sin(s)+i*Math.cos(r)*Math.cos(s)}function I(t,e,n){return Math.atan(-e/t*Math.tan(n))}function T(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function P(t,e,n,i,r,a){return n*Math.cos(r)*Math.cos(a)-i*Math.sin(r)*Math.sin(a)+t}function B(t,e,n,i,r,a){return n*Math.sin(r)*Math.cos(a)+i*Math.cos(r)*Math.sin(a)+e}function L(t,e,n,i){var r=Math.atan2(i*t,n*e);return(r+2*Math.PI)%(2*Math.PI)}function D(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function R(t,e,n){var i=Math.cos(n),r=Math.sin(n);return[t*i-e*r,t*r+e*i]}var z={box:function(t,e,n,i,r,a,o){for(var s=I(n,i,r),c=1/0,l=-1/0,u=[a,o],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var f=s+h;al&&(l=p)}var d=T(n,i,r),g=1/0,v=-1/0,y=[a,o];for(h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var m=d+h;av&&(v=b)}return{x:c,y:g,width:l-c,height:v-g}},length:function(t,e,n,i,r,a,o){},nearestPoint:function(t,e,n,i,r,a,o,s,c){var l=R(s-t,c-e,-r),u=l[0],h=l[1],f=k.nearestPoint(0,0,n,i,u,h),p=L(n,i,f.x,f.y);po&&(f=D(n,i,o));var d=R(f.x,f.y,r);return{x:d[0]+t,y:d[1]+e}},pointDistance:function(t,e,n,i,r,o,s,c,l){var u=this.nearestPoint(t,e,n,i,c,l);return a(u.x,u.y,c,l)},pointAt:function(t,e,n,i,r,a,o,s){var c=(o-a)*s+a;return{x:P(t,e,n,i,r,c),y:B(t,e,n,i,r,c)}},tangentAngle:function(t,e,n,i,r,a,o,s){var c=(o-a)*s+a,u=F(t,e,n,i,r,a,o,c),h=E(t,e,n,i,r,a,o,c);return l(Math.atan2(h,u))}};function _(t){for(var e=0,n=[],i=0;i1||e<0||t.length<2)return null;var n=_(t),i=n.segments,r=n.totalLength;if(0===r)return{x:t[0][0],y:t[0][1]};for(var a=0,o=null,s=0;s=a&&e<=a+f){var p=(e-a)/f;o=h.pointAt(l[0],l[1],u[0],u[1],p);break}a+=f}return o}function G(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=_(t),i=n.segments,r=n.totalLength,a=0,o=0,s=0;s=a&&e<=a+h){o=Math.atan2(u[1]-l[1],u[0]-l[0]);break}a+=h}return o}function V(t,e,n){for(var i=1/0,r=0;r=0&&e._call.call(null,t),e=e._next;--u}function C(){g=(d=y.now())+v,u=h=0;try{w()}finally{u=0,S(),g=0}}function M(){var t=y.now(),e=t-d;e>p&&(v-=e,d=t)}function S(){var t,e,n=i,a=1/0;while(n)n._call?(a>n._time&&(a=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:i=e);r=t,A(a)}function A(t){if(!u){h&&(h=clearTimeout(h));var e=t-g;e>24?(t<1/0&&(h=setTimeout(C,t-y.now()-v)),f&&(f=clearInterval(f))):(f||(d=y.now(),f=setInterval(M,p)),u=1,m(C))}}O.prototype=j.prototype={constructor:O,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?b():+n)+(null==e?0:+e),this._next||r===this||(r?r._next=this:i=this,r=this),this._call=t,this._time=n,A()},stop:function(){this._call&&(this._call=null,this._time=1/0,A())}};var k=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function F(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function E(){}var I=.7,T=1/I,P="\\s*([+-]?\\d+)\\s*",B="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",L="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",D=/^#([0-9a-f]{3,8})$/,R=new RegExp(`^rgb\\(${P},${P},${P}\\)$`),z=new RegExp(`^rgb\\(${L},${L},${L}\\)$`),_=new RegExp(`^rgba\\(${P},${P},${P},${B}\\)$`),N=new RegExp(`^rgba\\(${L},${L},${L},${B}\\)$`),Y=new RegExp(`^hsl\\(${B},${L},${L}\\)$`),G=new RegExp(`^hsla\\(${B},${L},${L},${B}\\)$`),V={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function W(){return this.rgb().formatHex()}function X(){return this.rgb().formatHex8()}function H(){return st(this).formatHsl()}function q(){return this.rgb().formatRgb()}function U(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=D.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?K(e):3===n?new $(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Q(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Q(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=R.exec(t))?new $(e[1],e[2],e[3],1):(e=z.exec(t))?new $(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=_.exec(t))?Q(e[1],e[2],e[3],e[4]):(e=N.exec(t))?Q(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Y.exec(t))?ot(e[1],e[2]/100,e[3]/100,1):(e=G.exec(t))?ot(e[1],e[2]/100,e[3]/100,e[4]):V.hasOwnProperty(t)?K(V[t]):"transparent"===t?new $(NaN,NaN,NaN,0):null}function K(t){return new $(t>>16&255,t>>8&255,255&t,1)}function Q(t,e,n,i){return i<=0&&(t=e=n=NaN),new $(t,e,n,i)}function Z(t){return t instanceof E||(t=U(t)),t?(t=t.rgb(),new $(t.r,t.g,t.b,t.opacity)):new $}function J(t,e,n,i){return 1===arguments.length?Z(t):new $(t,e,n,null==i?1:i)}function $(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function tt(){return`#${at(this.r)}${at(this.g)}${at(this.b)}`}function et(){return`#${at(this.r)}${at(this.g)}${at(this.b)}${at(255*(isNaN(this.opacity)?1:this.opacity))}`}function nt(){const t=it(this.opacity);return`${1===t?"rgb(":"rgba("}${rt(this.r)}, ${rt(this.g)}, ${rt(this.b)}${1===t?")":`, ${t})`}`}function it(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function rt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function at(t){return t=rt(t),(t<16?"0":"")+t.toString(16)}function ot(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new lt(t,e,n,i)}function st(t){if(t instanceof lt)return new lt(t.h,t.s,t.l,t.opacity);if(t instanceof E||(t=U(t)),!t)return new lt;if(t instanceof lt)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),a=Math.max(e,n,i),o=NaN,s=a-r,c=(a+r)/2;return s?(o=e===a?(n-i)/s+6*(n0&&c<1?0:o,new lt(o,s,c,t.opacity)}function ct(t,e,n,i){return 1===arguments.length?st(t):new lt(t,e,n,null==i?1:i)}function lt(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function ut(t){return t=(t||0)%360,t<0?t+360:t}function ht(t){return Math.max(0,Math.min(1,t||0))}function ft(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function pt(t,e,n,i,r){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*i+o*r)/6}k(E,U,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:W,formatHex:W,formatHex8:X,formatHsl:H,formatRgb:q,toString:q}),k($,J,F(E,{brighter(t){return t=null==t?T:Math.pow(T,t),new $(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?I:Math.pow(I,t),new $(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new $(rt(this.r),rt(this.g),rt(this.b),it(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tt,formatHex:tt,formatHex8:et,formatRgb:nt,toString:nt})),k(lt,ct,F(E,{brighter(t){return t=null==t?T:Math.pow(T,t),new lt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?I:Math.pow(I,t),new lt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new $(ft(t>=240?t-240:t+120,r,i),ft(t,r,i),ft(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new lt(ut(this.h),ht(this.s),ht(this.l),it(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=it(this.opacity);return`${1===t?"hsl(":"hsla("}${ut(this.h)}, ${100*ht(this.s)}%, ${100*ht(this.l)}%${1===t?")":`, ${t})`}`}}));var dt=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],a=t[i+1],o=i>0?t[i-1]:2*r-a,s=i()=>t;function yt(t,e){return function(n){return t+n*e}}function mt(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function bt(t){return 1===(t=+t)?xt:function(e,n){return n-e?mt(e,n,t):vt(isNaN(e)?n:e)}}function xt(t,e){var n=e-t;return n?yt(t,n):vt(isNaN(t)?e:t)}var Ot=function t(e){var n=bt(e);function i(t,e){var i=n((t=J(t)).r,(e=J(e)).r),r=n(t.g,e.g),a=n(t.b,e.b),o=xt(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=a(e),t.opacity=o(e),t+""}}return i.gamma=t,i}(1);function jt(t){return function(e){var n,i,r=e.length,a=new Array(r),o=new Array(r),s=new Array(r);for(n=0;na&&(r=e.slice(a,r),s[o]?s[o]+=r:s[++o]=r),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:kt(n,i)})),a=It.lastIndex;return au.length?(c=Rt["parsePathString"](a[s]),u=Rt["parsePathString"](r[s]),u=Rt["fillPathByDiff"](u,c),u=Rt["formatPath"](u,c),e.fromAttrs.path=u,e.toAttrs.path=c):e.pathFormatted||(c=Rt["parsePathString"](a[s]),u=Rt["parsePathString"](r[s]),u=Rt["formatPath"](u,c),e.fromAttrs.path=u,e.toAttrs.path=c,e.pathFormatted=!0),i[s]=[];for(var h=0;h0){for(var o=i.animators.length-1;o>=0;o--)if(t=i.animators[o],t.destroyed)i.removeAnimator(o);else{if(!t.isAnimatePaused()){e=t.get("animations");for(var s=e.length-1;s>=0;s--)n=e[s],r=Gt(t,n,a),r&&(e.splice(s,1),r=!1,n.callback&&n.callback())}0===e.length&&i.removeAnimator(o)}var c=i.canvas.get("autoDraw");c||i.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),Wt=Vt,Xt=n("e5e2"),Ht=40,qt=0,Ut=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Kt(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function Qt(t,e,n){if(n.bubbles){var i=void 0,r=!1;if("mouseenter"===e?(i=n.fromShape,r=!0):"mouseleave"===e&&(r=!0,i=n.toShape),t.isCanvas()&&r)return;if(i&&Object(c["g"])(t,i))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var Zt=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){var n=e.canvas,i=n.get("el");if(i!==t.target&&(e.dragging||e.currentShape)){var r=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,r,e.draggingShape)}},this._onDocumentMouseUp=function(t){var n=e.canvas,i=n.get("el");if(i!==t.target&&e.dragging){var r=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,r,null),e._emitEvent("dragend",t,r,e.draggingShape),e._afterDrag(e.draggingShape,r,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");Object(c["a"])(Ut,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");Object(c["a"])(Ut,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,i,r,a){var o=new Xt["a"](t,e);return o.fromShape=r,o.toShape=a,o.x=n.x,o.y=n.y,o.clientX=n.clientX,o.clientY=n.clientY,o.propagationPath.push(i),o},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),i=e.getPointByEvent(t);return{x:i.x,y:i.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),i=this._getShape(n,e),r=this["_on"+t],a=!1;if(r)r.call(this,n,i,e);else{var o=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,i),i&&this._emitEvent(t,e,n,i,null,i),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(a=!0,o&&this._emitEvent(t,e,n,o,o,null),this._emitEvent(t,e,n,null,o,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,i,null,null)}if(a||(this.currentShape=i),i&&!i.get("destroyed")){var s=this.canvas,c=s.get("el");c.style.cursor=i.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){n.button===qt&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,i){var r=this.canvas.get("el");n!==i&&(n&&(this._emitEvent("mouseout",t,e,n,n,i),this._emitEvent("mouseleave",t,e,n,n,i),i&&!i.get("destroyed")||(r.style.cursor=this.canvas.get("cursor"))),i&&(this._emitEvent("mouseover",t,e,i,n,i),this._emitEvent("mouseenter",t,e,i,n,i)))},t.prototype._emitDragoverEvents=function(t,e,n,i,r){i?(i!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,i),this._emitEvent("dragenter",t,e,i,n,i)),r||this._emitEvent("dragover",t,e,i)):n&&this._emitEvent("dragleave",t,e,n,n,i),r&&this._emitEvent("dragover",t,e,i)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var i=this._getShape(e,n);i!==t&&this._emitMouseoverEvents(n,e,t,i),this.currentShape=i},t.prototype._onmouseup=function(t,e,n){if(n.button===qt){var i=this.draggingShape;this.dragging?(i&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,i),this._afterDrag(i,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var i=this.currentShape;this._emitDragoverEvents(n,t,i,e,!0)},t.prototype._onmousemove=function(t,e,n){var i=this.canvas,r=this.currentShape,a=this.draggingShape;if(this.dragging)a&&this._emitDragoverEvents(n,t,r,e,!1),this._emitEvent("drag",n,t,a);else{var o=this.mousedownPoint;if(o){var s=this.mousedownShape,c=n.timeStamp,l=c-this.mousedownTimeStamp,u=o.clientX-t.clientX,h=o.clientY-t.clientY,f=u*u+h*h;l>120||f>Ht?s&&s.get("draggable")?(a=this.mousedownShape,a.set("capture",!1),this.draggingShape=a,this.dragging=!0,this._emitEvent("dragstart",n,t,a),this.mousedownShape=null,this.mousedownPoint=null):!s&&i.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,i,r,a){var o=this._getEventObj(t,e,n,i,r,a);if(i){o.shape=i,Kt(i,t,o);var s=i.getParent();while(s)s.emitDelegation(t,o),o.propagationStopped||Qt(s,t,o),o.propagationPath.push(s),s=s.getParent()}else{var c=this.canvas;Kt(c,t,o)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),Jt=Zt,$t="px",te=Object(o["a"])(),ee=te&&"firefox"===te.name,ne=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return Object(a["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["cursor"]="default",e["supportCSSTransform"]=!1,e},e.prototype.initContainer=function(){var t=this.get("container");Object(c["h"])(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t);var e=this.get("container");e.appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new Jt({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new Wt(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");c["c"]&&(n.style.width=t+$t,n.style.height=e+$t)},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");c["c"]&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){var e=this.get("supportCSSTransform");if(e){if(ee&&!Object(c["e"])(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Object(c["e"])(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var n=this.getClientByEvent(t),i=n.x,r=n.y;return this.getPointByClient(i,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el"),i=n.getBoundingClientRect();return{x:t-i.left,y:e-i.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el"),i=n.getBoundingClientRect();return{x:t+i.left,y:e+i.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){var t=this.get("eventController");t.destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(s["a"]);e["a"]=ne},"147d":function(t,e,n){"use strict";n.d(e,"getAdjust",(function(){return r})),n.d(e,"registerAdjust",(function(){return a}));n("41c8"),n("59b0");var i={},r=function(t){return i[t.toLowerCase()]},a=function(t,e){if(r(t))throw new Error("Adjust type '"+t+"' existed.");i[t.toLowerCase()]=e}},1710:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var i=n("40ef"),r=n("8f9b"),a="undefined"!==typeof ResizeObserver?r.createSensor:i.createSensor;e.createSensor=a},"20e7":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return R})),n.d(e,"c",(function(){return z}));var i={};n.r(i),n.d(i,"create",(function(){return a})),n.d(i,"fromMat4",(function(){return o})),n.d(i,"clone",(function(){return s})),n.d(i,"copy",(function(){return c})),n.d(i,"fromValues",(function(){return l})),n.d(i,"set",(function(){return u})),n.d(i,"identity",(function(){return h})),n.d(i,"transpose",(function(){return f})),n.d(i,"invert",(function(){return p})),n.d(i,"adjoint",(function(){return d})),n.d(i,"determinant",(function(){return g})),n.d(i,"multiply",(function(){return v})),n.d(i,"translate",(function(){return y})),n.d(i,"rotate",(function(){return m})),n.d(i,"scale",(function(){return b})),n.d(i,"fromTranslation",(function(){return x})),n.d(i,"fromRotation",(function(){return O})),n.d(i,"fromScaling",(function(){return j})),n.d(i,"fromMat2d",(function(){return w})),n.d(i,"fromQuat",(function(){return C})),n.d(i,"normalFromMat4",(function(){return M})),n.d(i,"projection",(function(){return S})),n.d(i,"str",(function(){return A})),n.d(i,"frob",(function(){return k})),n.d(i,"add",(function(){return F})),n.d(i,"subtract",(function(){return E})),n.d(i,"multiplyScalar",(function(){return I})),n.d(i,"multiplyScalarAndAdd",(function(){return T})),n.d(i,"exactEquals",(function(){return P})),n.d(i,"equals",(function(){return B})),n.d(i,"mul",(function(){return L})),n.d(i,"sub",(function(){return D}));var r=n("c94d");function a(){var t=new r["a"](9);return r["a"]!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function s(t){var e=new r["a"](9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function l(t,e,n,i,a,o,s,c,l){var u=new r["a"](9);return u[0]=t,u[1]=e,u[2]=n,u[3]=i,u[4]=a,u[5]=o,u[6]=s,u[7]=c,u[8]=l,u}function u(t,e,n,i,r,a,o,s,c,l){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l,t}function h(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function f(t,e){if(t===e){var n=e[1],i=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=i,t[7]=r}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function p(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],h=u*o-s*l,f=-u*a+s*c,p=l*a-o*c,d=n*h+i*f+r*p;return d?(d=1/d,t[0]=h*d,t[1]=(-u*i+r*l)*d,t[2]=(s*i-r*o)*d,t[3]=f*d,t[4]=(u*n-r*c)*d,t[5]=(-s*n+r*a)*d,t[6]=p*d,t[7]=(-l*n+i*c)*d,t[8]=(o*n-i*a)*d,t):null}function d(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8];return t[0]=o*u-s*l,t[1]=r*l-i*u,t[2]=i*s-r*o,t[3]=s*c-a*u,t[4]=n*u-r*c,t[5]=r*a-n*s,t[6]=a*l-o*c,t[7]=i*c-n*l,t[8]=n*o-i*a,t}function g(t){var e=t[0],n=t[1],i=t[2],r=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8];return e*(l*a-o*c)+n*(-l*r+o*s)+i*(c*r-a*s)}function v(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],c=e[5],l=e[6],u=e[7],h=e[8],f=n[0],p=n[1],d=n[2],g=n[3],v=n[4],y=n[5],m=n[6],b=n[7],x=n[8];return t[0]=f*i+p*o+d*l,t[1]=f*r+p*s+d*u,t[2]=f*a+p*c+d*h,t[3]=g*i+v*o+y*l,t[4]=g*r+v*s+y*u,t[5]=g*a+v*c+y*h,t[6]=m*i+b*o+x*l,t[7]=m*r+b*s+x*u,t[8]=m*a+b*c+x*h,t}function y(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],c=e[5],l=e[6],u=e[7],h=e[8],f=n[0],p=n[1];return t[0]=i,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=c,t[6]=f*i+p*o+l,t[7]=f*r+p*s+u,t[8]=f*a+p*c+h,t}function m(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],c=e[5],l=e[6],u=e[7],h=e[8],f=Math.sin(n),p=Math.cos(n);return t[0]=p*i+f*o,t[1]=p*r+f*s,t[2]=p*a+f*c,t[3]=p*o-f*i,t[4]=p*s-f*r,t[5]=p*c-f*a,t[6]=l,t[7]=u,t[8]=h,t}function b(t,e,n){var i=n[0],r=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function x(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function O(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=0,t[3]=-n,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function j(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function w(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function C(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=n+n,s=i+i,c=r+r,l=n*o,u=i*o,h=i*s,f=r*o,p=r*s,d=r*c,g=a*o,v=a*s,y=a*c;return t[0]=1-h-d,t[3]=u-y,t[6]=f+v,t[1]=u+y,t[4]=1-l-d,t[7]=p-g,t[2]=f-v,t[5]=p+g,t[8]=1-l-h,t}function M(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],h=e[9],f=e[10],p=e[11],d=e[12],g=e[13],v=e[14],y=e[15],m=n*s-i*o,b=n*c-r*o,x=n*l-a*o,O=i*c-r*s,j=i*l-a*s,w=r*l-a*c,C=u*g-h*d,M=u*v-f*d,S=u*y-p*d,A=h*v-f*g,k=h*y-p*g,F=f*y-p*v,E=m*F-b*k+x*A+O*S-j*M+w*C;return E?(E=1/E,t[0]=(s*F-c*k+l*A)*E,t[1]=(c*S-o*F-l*M)*E,t[2]=(o*k-s*S+l*C)*E,t[3]=(r*k-i*F-a*A)*E,t[4]=(n*F-r*S+a*M)*E,t[5]=(i*S-n*k-a*C)*E,t[6]=(g*w-v*j+y*O)*E,t[7]=(v*x-d*w-y*b)*E,t[8]=(d*j-g*x+y*m)*E,t):null}function S(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function A(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function k(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function F(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}function E(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function I(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function T(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t[4]=e[4]+n[4]*i,t[5]=e[5]+n[5]*i,t[6]=e[6]+n[6]*i,t[7]=e[7]+n[7]*i,t[8]=e[8]+n[8]*i,t}function P(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function B(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],h=t[8],f=e[0],p=e[1],d=e[2],g=e[3],v=e[4],y=e[5],m=e[6],b=e[7],x=e[8];return Math.abs(n-f)<=r["b"]*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(i-p)<=r["b"]*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(a-d)<=r["b"]*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(o-g)<=r["b"]*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(s-v)<=r["b"]*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(c-y)<=r["b"]*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(l-m)<=r["b"]*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(u-b)<=r["b"]*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(h-x)<=r["b"]*Math.max(1,Math.abs(h),Math.abs(x))}var L=v,D=E,R=n("6711"),z=n("9fe7")},"22f9":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}));var i={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},r={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"}},"23eb":function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t,e,n,i){i=i||{};var r=i.maxIterations||100,a=i.tolerance||1e-10,o=t(e),s=t(n),c=n-e;if(o*s>0)throw"Initial bisect points must have opposite signs";if(0===o)return e;if(0===s)return n;for(var l=0;l=0&&(e=u),Math.abs(c)=g[d-1].fx){var k=!1;if(O.fx>A.fx?(s(j,1+f,x,-f,A),j.fx=t(j),j.fx=1)break;for(v=1;vl+o*a*u||h>=g)d=a;else{if(Math.abs(p)<=-c*u)return a;p*(d-f)>=0&&(d=f),f=a,g=h}return 0}a=a||1,o=o||1e-6,c=c||.1;for(var v=0;v<10;++v){if(s(i.x,1,n.x,a,e),h=i.fx=t(i.x,i.fxprime),p=r(i.fxprime,e),h>l+o*a*u||v&&h>=f)return g(d,a,f);if(Math.abs(p)<=-c*u)return a;if(p>=0)return g(a,d,h);f=h,d=a,a*=2}return a}function u(t,e,n){var i,c,u,h={x:e.slice(),fx:0,fxprime:e.slice()},f={x:e.slice(),fx:0,fxprime:e.slice()},p=e.slice(),d=1;n=n||{},u=n.maxIterations||20*e.length,h.fx=t(h.x,h.fxprime),i=h.fxprime.slice(),o(i,h.fxprime,-1);for(var g=0;g=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,i=t.minY,r=t.maxX,o=t.maxY;if(e){var s=Object(a["c"])(e,[t.minX,t.minY]),c=Object(a["c"])(e,[t.maxX,t.minY]),l=Object(a["c"])(e,[t.minX,t.maxY]),u=Object(a["c"])(e,[t.maxX,t.maxY]);n=Math.min(s[0],c[0],l[0],u[0]),r=Math.max(s[0],c[0],l[0],u[0]),i=Math.min(s[1],c[1],l[1],u[1]),o=Math.max(s[1],c[1],l[1],u[1])}var h=this.attrs;if(h.shadowColor){var f=h.shadowBlur,p=void 0===f?0:f,d=h.shadowOffsetX,g=void 0===d?0:d,v=h.shadowOffsetY,y=void 0===v?0:v,m=n-p+g,b=r+p+g,x=i-p+y,O=o+p+y;n=Math.min(n,m),r=Math.max(r,b),i=Math.min(i,x),o=Math.max(o,O)}return{x:n,y:i,minX:n,minY:i,maxX:r,maxY:o,width:r-n,height:o-i}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),i=this.get("endArrowShape"),r=[t,e,1];r=this.invertFromMatrix(r);var a=r[0],o=r[1],s=this._isInBBox(a,o);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(a,o)){if(this.isInShape(a,o))return!0;if(n&&n.isHit(a,o))return!0;if(i&&i.isHit(a,o))return!0}return!1},e}(r["a"]);e["a"]=o},"31e6":function(t,e,n){"use strict";var i=n("9ab4"),r=n("8937"),a=n("d7ff"),o=n("8ea8"),s=n("e546"),c=n("3665"),l="update_status",u=["visible","tip","delegateObject"],h=["container","group","shapesMap","isRegister","isUpdating","destroyed"],f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear();var t=this.get("group");t.remove()},e.prototype.clear=function(){var t=this.get("group");t.clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t),n=e&&e.get("component");return n},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},e.prototype.getElementsByName=function(t){var e=[];return Object(r["j"])(this.get("shapesMap"),(function(n){n.get("name")===t&&e.push(n)})),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){var t=this.get("group");t.show(),this.set("visible",!0)},e.prototype.hide=function(){var t=this.get("group");t.hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){var e=this.get("group");e.set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=Object(o["a"])(n,e)),e},e.prototype.on=function(t,e,n){var i=this.get("group");return i.on(t,e,n),this},e.prototype.off=function(t,e){var n=this.get("group");return n&&n.off(t,e),this},e.prototype.emit=function(t,e){var n=this.get("group");n.emit(t,e)},e.prototype.init=function(){t.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,e){var n=this.get("group");e.target=n,n.emit(t,e),Object(a["a"])(n,t,e)},e.prototype.createOffScreenGroup=function(){var t=this.get("group"),e=t.getGroupBase(),n=new e({delegateObject:this.getDelegateObject()});return n},e.prototype.applyOffset=function(){var t=this.get("offsetX"),e=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:e})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",Object(s["d"])(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var n=t.addGroup(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var n=t.addShape(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,e){var n=e.id,r=e.component,a=Object(i["f"])(e,["id","component"]),o=new r(Object(i["a"])(Object(i["a"])({},a),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return o.init(),o.render(),this.get("isRegister")&&this.registerElement(o.get("group")),o},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){var t=this.get("group");t.off()},e.prototype.getElementId=function(t){var e=this.get("id"),n=this.get("name");return e+"-"+n+"-"+t},e.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},e.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},e.prototype.moveElementTo=function(t,e){var n=Object(o["f"])(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var i=e.attr("opacity");Object(r["K"])(i)&&(i=1),e.attr("opacity",0),e.animate({opacity:i},n)},e.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,e,n,i){e.animate(n,i)},e.prototype.updateElements=function(t,e){var n,i=this,a=this.get("animate"),o=this.get("animateOption"),c=t.getChildren().slice(0);Object(r["j"])(c,(function(t){var c=t.get("id"),f=i.getElementById(c),p=t.get("name");if(f)if(t.get("isComponent")){var d=t.get("component"),g=f.get("component"),v=Object(r["hb"])(d.cfg,Object(r["i"])(Object(r["T"])(d.cfg),h));g.update(v),f.set(l,"update")}else{var y=i.getReplaceAttrs(f,t);a&&o.update?i.updateAnimation(p,f,y,o.update):f.attr(y),t.isGroup()&&i.updateElements(t,f),Object(r["j"])(u,(function(e){f.set(e,t.get(e))})),Object(s["m"])(f,t),n=f,f.set(l,"update")}else{e.add(t);var m=e.getChildren();if(m.splice(m.length-1,1),n){var b=m.indexOf(n);m.splice(b+1,0,t)}else m.unshift(t);if(i.registerElement(t),t.set(l,"add"),t.get("isComponent")){d=t.get("component");d.set("container",e)}else t.isGroup()&&i.registerNewGroup(t);if(n=t,a){var x=i.get("isInit")?o.appear:o.enter;x&&i.addAnimation(p,t,x)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();Object(r["j"])(e,(function(t){t.set(l,null)}))},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t,e=this.get("name"),n=(t={},t[e]=this,t.component=this,t);return n},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),Object(r["db"])(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),i=e.attr();return Object(r["j"])(n,(function(t,e){void 0===i[e]&&(i[e]=void 0)})),i},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();Object(r["j"])(n,(function(t){e.registerElement(t),t.set(l,"add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];Object(r["j"])(e,(function(t,e){!t.get(l)||t.destroyed?n.push([e,t]):t.set(l,null)}));var i=this.get("animate"),a=this.get("animateOption");Object(r["j"])(n,(function(n){var o=n[0],s=n[1];if(!s.destroyed){var c=s.get("name");if(i&&a.leave){var l=Object(r["db"])({callback:function(){t.removeElement(s)}},a.leave);t.removeAnimation(c,s,l)}else t.removeElement(s)}delete e[o]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(c["a"]);e["a"]=f},"330d":function(t,e,n){"use strict";var i=n("9ab4"),r=n("ccaf"),a=n("b2cb"),o={},s="_INDEX";function c(t,e){if(t.set("canvas",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){c(t,e)}))}}function l(t,e){if(t.set("timeline",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){l(t,e)}))}}function u(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),Object(a["j"])(t.getChildren(),e)}function h(t){return function(e,n){var i=t(e,n);return 0===i?e[s]-n[s]:i}}var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,r=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));r.length>0?Object(a["a"])(r,(function(r){var a=r.getBBox(),o=a.minX,s=a.maxX,c=a.minY,l=a.maxY;oe&&(e=s),ci&&(i=l)})):(t=0,e=0,n=0,i=0);var o={x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n};return o},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,r=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));r.length>0?Object(a["a"])(r,(function(r){var a=r.getCanvasBBox(),o=a.minX,s=a.maxX,c=a.minY,l=a.maxY;oe&&(e=s),ci&&(i=l)})):(t=0,e=0,n=0,i=0);var o={x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n};return o},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["children"]=[],e},e.prototype.onAttrChange=function(e,n,i){if(t.prototype.onAttrChange.call(this,e,n,i),"matrix"===e){var r=this.getTotalMatrix();this._applyChildrenMarix(r)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var i=this.getTotalMatrix();i!==n&&this._applyChildrenMarix(i)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();Object(a["a"])(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e=0;o--){var s=t[o];if(Object(a["b"])(s)&&(s.isGroup()?r=s.getShape(e,n,i):s.isHit(e,n)&&(r=s)),r)break}return r},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),i=this.get("timeline"),r=t.getParent();r&&u(r,t,!1),t.set("parent",this),e&&c(t,e),i&&l(t,i),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t=this.getChildren();Object(a["a"])(t,(function(t,e){return t[s]=e,t})),t.sort(h((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){var e=this.getChildren();return e[t]},e.prototype.getCount=function(){var t=this.getChildren();return t.length},e.prototype.contain=function(t){var e=this.getChildren();return e.indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return Object(a["a"])(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return Object(a["a"])(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(r["a"]);e["a"]=f},3665:function(t,e,n){"use strict";var i=n("9ab4"),r=n("6855"),a=n("8937"),o={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},s=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return Object(i["c"])(e,t),e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var e=this,n=this.get("defaultCfg")||{};Object(a["j"])(t,(function(t,i){var r=e.get(i),o=t;r!==t&&(Object(a["O"])(t)&&n[i]&&(o=Object(a["h"])({},n[i],t)),e.set(i,o))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){Object(a["y"])(t,"visible")&&(t.visible?this.show():this.hide()),Object(a["y"])(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},e.prototype.setLocation=function(t){var e=Object(i["a"])({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),i=o[n];return Object(a["j"])(i,(function(n){e[n]=t.get(n)})),e},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,e=this.get("defaultCfg");Object(a["j"])(e,(function(e,n){var i=t.get(n);if(Object(a["O"])(i)){var r=Object(a["h"])({},e,i);t.set(n,r)}}))},e}(r["Base"]);e["a"]=s},3688:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var i=this,r=arguments.length,a=new Array(r),o=0;o=0},t.prototype.getAdjustRange=function(t,e,n){var i,r,a=this.yField,o=n.indexOf(e),s=n.length;return!a&&this.isAdjust("y")?(i=0,r=1):s>1?(i=n[0===o?0:o-1],r=n[o===s-1?s-1:o+1],0!==o?i+=(e-i)/2:i-=(r-e)/2,o!==s-1?r-=(r-e)/2:r+=(e-n[s-2])/2):(i=0===e?0:e-.5,r=0===e?1:e+.5),{pre:i,next:r}},t.prototype.adjustData=function(t,e){var n=this,r=this.getDimValues(e);i["j"](t,(function(t,e){i["j"](r,(function(i,r){n.adjustDim(r,i,t,e)}))}))},t.prototype.groupData=function(t,e){return i["j"](t,(function(t){void 0===t[e]&&(t[e]=r["a"])})),i["w"](t,e)},t.prototype.adjustDim=function(t,e,n,i){},t.prototype.getDimValues=function(t){var e=this,n=e.xField,a=e.yField,o=i["b"]({},this.dimValuesMap),s=[];if(n&&this.isAdjust("x")&&s.push(n),a&&this.isAdjust("y")&&s.push(a),s.forEach((function(e){o&&o[e]||(o[e]=i["yb"](t,e).sort((function(t,e){return t-e})))})),!a&&this.isAdjust("y")){var c="y";o[c]=[r["a"],1]}return o},t}();e["a"]=a},"41e3":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAmxJREFUeF7t2j1rVEEUBuDzzt4ttZCkTWVtsXvtbSWFICjaiWBhFzC9sRUlYBEQTLRSUWwifvwDi934B6xs0tkoKJKdObIhG/JhNnfna+fMTuqdM/M+cybF4YJm/A8znp8KQOmAGRcoT2DGG6D8EyxPoMkT6DBfUMwbBGwz0dMt4EOTdeN+U+/sXGKluiDqEvNmv6peu9a0Wd+oA2pjfhDRudEGDFzfAt7abDhaUzOvEvPSfg3mB/1Wa8Wlps3aUwG6zAtg/n60uCtCrfVLAm4eqjsFhFMBhge8qPUaA3d9ItSDwQ1S6tWxW4uM0AhgeMjamDdEdM0rgtYrBNyfJkJjgFwRJgLIEWFigNwQrAByQrAGyAXBCSAHBGcA6QheACQjeAOQiuAVQCKCdwBpCEEAJCEEA5CCEBRAAkJwgNQRogCkjBANYBwCAYt94KPNTK92HKpEBTgJAczPeq3WHRuA3Zr/R/jdBua+AH/G1U0DAHjcA5Y9A/yaB+Y/AX+TAThprgitL/fa7c82AGKeQKpD1ShPINXww44LDpBy+OAAqYcPCiAhfDAAKeGDAEgK7x1AWnivABLDewOQGt4LgOTwzgDSwzsB5BDeGiCX8FYAOYWfGCC38BMB5Bi+MUCt9ToBt49ObFy+FewMBreUUs+PTYFS+0yuw3xeMX/zGX5vOPqOiK4eqhs5fPMOMOYnEZ0ZHdbl5kc1ulrfA/BoH2AK4RsD7HXBEyI6S8DDPrBpM8A8uGb4sTRV1RViXjDGvP9aVS9ca9qsDz4SszlUzDUFIKZ2inuVDkjxVmKeqXRATO0U9yodkOKtxDzTPxlNY184/yEeAAAAAElFTkSuQmCC"},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,i="/";e.cwd=function(){return i},e.chdir=function(e){t||(t=n("df7c")),i=t.resolve(e,i)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},4390:function(t,e,n){t.exports=n.p+"img/bottomloginimg.d0c3f8a6.png"},4799:function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return u})),n.d(e,"Circle",(function(){return f})),n.d(e,"Ellipse",(function(){return g})),n.d(e,"Image",(function(){return m})),n.d(e,"Line",(function(){return w})),n.d(e,"Marker",(function(){return X})),n.d(e,"Path",(function(){return st})),n.d(e,"Polygon",(function(){return ut})),n.d(e,"Polyline",(function(){return ft})),n.d(e,"Rect",(function(){return yt})),n.d(e,"Text",(function(){return bt}));var i={};n.r(i),n.d(i,"Base",(function(){return u})),n.d(i,"Circle",(function(){return f})),n.d(i,"Ellipse",(function(){return g})),n.d(i,"Image",(function(){return m})),n.d(i,"Line",(function(){return w})),n.d(i,"Marker",(function(){return X})),n.d(i,"Path",(function(){return st})),n.d(i,"Polygon",(function(){return ut})),n.d(i,"Polyline",(function(){return ft})),n.d(i,"Rect",(function(){return yt})),n.d(i,"Text",(function(){return bt}));var r=n("9ab4"),a=n("6855"),o=n("7326"),s=n("f5e5"),c=n("c2ad"),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return i},e.prototype.getGroupBase=function(){return c["a"]},e.prototype.onCanvasChange=function(t){Object(s["h"])(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=Object(a["getBBoxMethod"])(t),i=n(this),r=e/2,o=i.x-r,s=i.y-r,c=i.x+i.width+r,l=i.y+i.height+r;return{x:o,minX:o,y:s,minY:s,width:i.width+e,height:i.height+e,maxX:c,maxY:l}},e.prototype.isFill=function(){return!!this.attrs["fill"]||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs["stroke"]},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(s["a"])(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);var i=this.getCanvasBBox();if(!Object(o["f"])(e,i))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),Object(s["a"])(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=Object(o["f"])(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,i=e.opacity,r=e.strokeOpacity,a=e.fillOpacity;this.isFill()&&(Object(o["i"])(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=i)),this.isStroke()&&n>0&&(Object(o["i"])(r)||1===r||(t.globalAlpha=r),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),i=this.isFill(),r=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,i,r)},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t["lineWidth"]+t["lineAppendWidth"]},e}(a["AbstractShape"]),u=l,h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var a=this.attr(),s=a.x,c=a.y,l=a.r,u=r/2,h=Object(o["b"])(s,c,t,e);return i&&n?h<=l+u:i?h<=l:!!n&&(h>=l-u&&h<=l+u)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.r;t.beginPath(),t.arc(n,i,r,0,2*Math.PI,!1),t.closePath()},e}(u),f=h;function p(t,e,n,i){return t/(n*n)+e/(i*i)}var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var a=this.attr(),o=r/2,s=a.x,c=a.y,l=a.rx,u=a.ry,h=(t-s)*(t-s),f=(e-c)*(e-c);return i&&n?p(h,f,l+o,u+o)<=1:i?p(h,f,l,u)<=1:!!n&&(p(h,f,l-o,u-o)>=1&&p(h,f,l+o,u+o)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.rx,a=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,i,r,a,0,0,2*Math.PI,!1);else{var o=r>a?r:a,s=r>a?1:r/a,c=r>a?a/r:1;t.save(),t.translate(n,i),t.scale(s,c),t.arc(0,0,o,0,2*Math.PI),t.restore(),t.closePath()}},e}(u),g=d;function v(t){return t instanceof HTMLElement&&Object(o["k"])(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(Object(o["k"])(t)){var i=new Image;i.onload=function(){if(e.destroyed)return!1;e.attr("img",i),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},i.crossOrigin="Anonymous",i.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):v(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,i=e.y,r=e.width,a=e.height,s=e.sx,c=e.sy,l=e.swidth,u=e.sheight,h=e.img;(h instanceof Image||v(h))&&(Object(o["i"])(s)||Object(o["i"])(c)||Object(o["i"])(l)||Object(o["i"])(u)?t.drawImage(h,n,i,r,a):t.drawImage(h,s,c,l,u,n,i,r,a))},e}(u),m=y,b=n("1183");function x(t,e,n,i,r,a,o){var s=Math.min(t,n),c=Math.max(t,n),l=Math.min(e,i),u=Math.max(e,i),h=r/2;return a>=s-h&&a<=c+h&&o>=l-h&&o<=u+h&&b["c"].pointToLine(t,e,n,i,a,o)<=r/2}var O=n("9f27"),j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,i=t.x2,r=t.y2,a=t.startArrow,o=t.endArrow;a&&O["b"](this,t,i,r,e,n),o&&O["a"](this,t,e,n,i,r)},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){if(!n||!r)return!1;var a=this.attr(),o=a.x1,s=a.y1,c=a.x2,l=a.y2;return x(o,s,c,l,r,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,a=e.y2,o=e.startArrow,s=e.endArrow,c={dx:0,dy:0},l={dx:0,dy:0};o&&o.d&&(c=O["c"](n,i,r,a,e.startArrow.d)),s&&s.d&&(l=O["c"](n,i,r,a,e.endArrow.d)),t.beginPath(),t.moveTo(n+c.dx,i+c.dy),t.lineTo(r-l.dx,a-l.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,i=t.x2,r=t.y2;return b["c"].length(e,n,i,r)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,a=e.y2;return b["c"].pointAt(n,i,r,a,t)},e}(u),w=j,C=n("8937"),M=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,S=/[^\s\,]+/gi;function A(t){var e=t||[];return Object(C["C"])(e)?e:Object(C["Q"])(e)?(e=e.match(M),Object(C["j"])(e,(function(t,n){if(t=t.match(S),t[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}Object(C["j"])(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}var k=A;n("20e7");var F="\t\n\v\f\r   ᠎              \u2028\u2029",E=new RegExp("([a-z])["+F+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+F+"]*,?["+F+"]*)+)","ig"),I=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+F+"]*,?["+F+"]*","ig");function T(t){if(!t)return null;if(Object(C["C"])(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(E,(function(t,i,r){var a=[],o=i.toLowerCase();if(r.replace(I,(function(t,e){e&&a.push(+e)})),"m"===o&&a.length>2&&(n.push([i].concat(a.splice(0,2))),o="l",i="m"===i?"l":"L"),"o"===o&&1===a.length&&n.push([i,a[0]]),"r"===o)n.push([i].concat(a));else while(a.length>=e[o])if(n.push([i].concat(a.splice(0,e[o]))),!e[o])break;return""})),n}var P=/[a-z]/;function B(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function L(t){var e=T(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,i=0;i=0){n=!0;break}}if(!n)return e;var a=[],o=0,s=0,c=0,l=0,u=0,h=e[0];"M"!==h[0]&&"m"!==h[0]||(o=+h[1],s=+h[2],c=o,l=s,u++,a[0]=["M",o,s]);i=u;for(var f=e.length;i1&&(n*=Math.sqrt(p),i*=Math.sqrt(p));var d=n*n*(f*f)+i*i*(h*h),g=d?Math.sqrt((n*n*(i*i)-d)/d):1;a===o&&(g*=-1),isNaN(g)&&(g=0);var v=i?g*n*f/i:0,y=n?g*-i*h/n:0,m=(s+l)/2+Math.cos(r)*v-Math.sin(r)*y,b=(c+u)/2+Math.sin(r)*v+Math.cos(r)*y,x=[(h-v)/n,(f-y)/i],O=[(-1*h-v)/n,(-1*f-y)/i],j=z([1,0],x),w=z(x,O);return R(x,O)<=-1&&(w=Math.PI),R(x,O)>=1&&(w=0),0===o&&w>0&&(w-=2*Math.PI),1===o&&w<0&&(w+=2*Math.PI),{cx:m,cy:b,rx:_(t,[l,u])?0:n,ry:_(t,[l,u])?0:i,startAngle:j,endAngle:j+w,xRotation:r,arcFlag:a,sweepFlag:o}}function Y(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function G(t){t=k(t);for(var e=[],n=null,i=null,r=null,a=0,o=t.length,s=0;s0!==U(s[1]-n)>0&&U(e-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(i=!i)}return i}var Z=n("e897"),J=n("9fe7");function $(t,e,n,i,r,a,s,c){var l=(Math.atan2(c-e,s-t)+2*Math.PI)%(2*Math.PI);if(lr)return!1;var u={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return Object(o["b"])(u.x,u.y,s,c)<=a/2}var tt=Z["a"].transform;function et(t){for(var e=!1,n=t.length,i=0;ij?O:j,k=O>j?1:O/j,F=O>j?j/O:1,E=tt(null,[["t",-y,-m],["r",-M],["s",1/k,1/F]]);J["transformMat3"](S,S,E),a=$(0,0,A,w,C,e,S[0],S[1]);break;default:break}if(a)break}}return a}function it(t){for(var e=t.length,n=[],i=[],r=[],a=0;a0&&i.push(r),{polygons:n,polylines:i}}var rt=Object(r["a"])({hasArc:et,extractPolygons:it,isPointInStroke:nt},a["PathUtil"]);function at(t,e,n){for(var i=!1,r=0;r=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)}));var a=r[n];if(Object(C["K"])(a)||Object(C["K"])(n))return null;var o=a.length,s=r[n+1];return b["b"].pointAt(a[o-2],a[o-1],s[1],s[2],s[3],s[4],s[5],s[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",rt.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,i,r=0,a=0,o=[],s=this.get("curve");s&&(Object(C["j"])(s,(function(t,e){n=s[e+1],i=t.length,n&&(r+=b["b"].length(t[i-2],t[i-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",r),0!==r?(Object(C["j"])(s,(function(c,l){n=s[l+1],i=c.length,n&&(t=[],t[0]=a/r,e=b["b"].length(c[i-2],c[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),a+=e||0,t[1]=a/r,o.push(t))})),this.set("tCache",o)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,i=e[1].currentPoint,r=e[1].startTangent;t=[],r?(t.push([n[0]-r[0],n[1]-r[1]]),t.push([n[0],n[1]])):(t.push([i[0],i[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var i=e[n-2].currentPoint,r=e[n-1].currentPoint,a=e[n-1].endTangent;t=[],a?(t.push([r[0]-a[0],r[1]-a[1]]),t.push([r[0],r[1]])):(t.push([i[0],i[1]]),t.push([r[0],r[1]]))}return t},e}(u),st=ot;function ct(t,e,n,i,r){var a=t.length;if(a<2)return!1;for(var o=0;o=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)})),b["c"].pointAt(i[n][0],i[n][1],i[n+1][0],i[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,i,r=0,a=[];Object(C["j"])(t,(function(o,s){t[s+1]&&(n=[],n[0]=r/e,i=b["c"].length(o[0],o[1],t[s+1][0],t[s+1][1]),r+=i,n[1]=r/e,a.push(n))})),this.set("tCache",a)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(u),ft=ht,pt=n("af40");function dt(t,e,n,i,r,a,s){var c=r/2;return Object(o["e"])(t-c,e-c,n,r,a,s)||Object(o["e"])(t+n-c,e-c,r,i,a,s)||Object(o["e"])(t+c,e+i-c,n,r,a,s)||Object(o["e"])(t-c,e+c,r,i,a,s)}function gt(t,e,n,i,r,a,o,s){return x(t+r,e,t+n-r,e,a,o,s)||x(t+n,e+r,t+n,e+i-r,a,o,s)||x(t+n-r,e+i,t+r,e+i,a,o,s)||x(t,e+i-r,t,e+r,a,o,s)||$(t+n-r,e+r,r,1.5*Math.PI,2*Math.PI,a,o,s)||$(t+n-r,e+i-r,r,0,.5*Math.PI,a,o,s)||$(t+r,e+i-r,r,.5*Math.PI,Math.PI,a,o,s)||$(t+r,e+r,r,Math.PI,1.5*Math.PI,a,o,s)}var vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var a=this.attr(),s=a.x,c=a.y,l=a.width,u=a.height,h=a.radius;if(h){var f=!1;return n&&(f=gt(s,c,l,u,h,r,t,e)),!f&&i&&(f=H(this,t,e)),f}var p=r/2;return i&&n?Object(o["e"])(s-p,c-p,l+p,u+p,t,e):i?Object(o["e"])(s,c,l,u,t,e):n?dt(s,c,l,u,r,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.width,a=e.height,o=e.radius;if(t.beginPath(),0===o)t.rect(n,i,r,a);else{var s=Object(pt["a"])(o),c=s[0],l=s[1],u=s[2],h=s[3];t.moveTo(n+c,i),t.lineTo(n+r-l,i),0!==l&&t.arc(n+r-l,i+l,l,-Math.PI/2,0),t.lineTo(n+r,i+a-u),0!==u&&t.arc(n+r-u,i+a-u,u,0,Math.PI/2),t.lineTo(n+h,i+a),0!==h&&t.arc(n+h,i+a-h,h,Math.PI/2,Math.PI),t.lineTo(n,i+c),0!==c&&t.arc(n+c,i+c,c,Math.PI,1.5*Math.PI),t.closePath()}},e}(u),yt=vt,mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=Object(a["assembleFont"])(t)},e.prototype._setText=function(t){var e=null;Object(o["k"])(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var i,r=this.attrs,s=r.textBaseline,c=r.x,l=r.y,u=1*r.fontSize,h=this._getSpaceingY(),f=Object(a["getTextHeight"])(r.text,r.fontSize,r.lineHeight);Object(o["c"])(e,(function(e,r){i=l+r*(h+u)-f+u,"middle"===s&&(i+=f-u-(f-u)/2),"top"===s&&(i+=f-u),Object(o["i"])(e)||(n?t.fillText(e,c,i):t.strokeText(e,c,i))}))},e.prototype._drawText=function(t,e){var n=this.attr(),i=n.x,r=n.y,a=this.get("textArr");if(a)this._drawTextArr(t,a,e);else{var s=n.text;Object(o["i"])(s)||(e?t.fillText(s,i,r):t.strokeText(s,i,r))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,i=e.opacity,r=e.strokeOpacity,a=e.fillOpacity;this.isStroke()&&n>0&&(Object(o["i"])(r)||1===r||(t.globalAlpha=i),this.stroke(t)),this.isFill()&&(Object(o["i"])(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=i)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(u),bt=mt},"4c48":function(t,e,n){t.exports=n.p+"img/toprightimg.479811ab.png"},"4dce":function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t,e){return n(t)||i(t,e)||r()}function n(t){if(Array.isArray(t))return t}function i(t,e){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(n.push(o.value),e&&n.length===e)break}catch(c){r=!0,a=c}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw a}}return n}function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function a(t,e,n,i){t=t.filter((function(t,i){var r=e(t,i),a=n(t,i);return null!=r&&isFinite(r)&&null!=a&&isFinite(a)})),i&&t.sort((function(t,n){return e(t)-e(n)}));for(var r,a,o,s=t.length,c=new Float64Array(s),l=new Float64Array(s),u=0,h=0,f=0;fr&&(t.splice(i+1,0,f),n=!0)}return n}}function h(t,e,n,i){var r=i-t*t,a=Math.abs(r)<1e-24?0:(n-t*e)/r,o=e-a*t;return[o,a]}function f(){var t,n=function(t){return t[0]},i=function(t){return t[1]};function r(r){var a=0,c=0,l=0,f=0,p=0,d=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;o(r,n,i,(function(e,n){var i=Math.log(n),r=e*n;++a,c+=(n-c)/a,f+=(r-f)/a,d+=(e*r-d)/a,l+=(n*i-l)/a,p+=(r*i-p)/a,t||(ev&&(v=e))}));var y=h(f/c,l/c,p/c,d/c),m=e(y,2),b=m[0],x=m[1];b=Math.exp(b);var O=function(t){return b*Math.exp(x*t)},j=u(g,v,O);return j.a=b,j.b=x,j.predict=O,j.rSquared=s(r,n,i,c,O),j}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(n=t,r):n},r.y=function(t){return arguments.length?(i=t,r):i},r}function p(){var t,n=function(t){return t[0]},i=function(t){return t[1]};function r(r){var a=0,c=0,l=0,u=0,f=0,p=t?+t[0]:1/0,d=t?+t[1]:-1/0;o(r,n,i,(function(e,n){++a,c+=(e-c)/a,l+=(n-l)/a,u+=(e*n-u)/a,f+=(e*e-f)/a,t||(ed&&(d=e))}));var g=h(c,l,u,f),v=e(g,2),y=v[0],m=v[1],b=function(t){return m*t+y},x=[[p,b(p)],[d,b(d)]];return x.a=m,x.b=y,x.predict=b,x.rSquared=s(r,n,i,l,b),x}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(n=t,r):n},r.y=function(t){return arguments.length?(i=t,r):i},r}function d(t){t.sort((function(t,e){return t-e}));var e=t.length/2;return e%1===0?(t[e-1]+t[e])/2:t[Math.floor(e)]}var g=2,v=1e-12;function y(){var t=function(t){return t[0]},n=function(t){return t[1]},i=.3;function r(r){for(var o=a(r,t,n,!0),s=e(o,4),c=s[0],l=s[1],u=s[2],f=s[3],p=c.length,y=Math.max(2,~~(i*p)),O=new Float64Array(p),j=new Float64Array(p),w=new Float64Array(p).fill(1),C=-1;++C<=g;){for(var M=[0,y-1],S=0;Sc[F]-A?k:F,I=0,T=0,P=0,B=0,L=0,D=1/Math.abs(c[E]-A||1),R=k;R<=F;++R){var z=c[R],_=l[R],N=m(Math.abs(A-z)*D)*w[R],Y=z*N;I+=N,T+=Y,P+=_*N,B+=_*Y,L+=z*Y}var G=h(T/I,P/I,B/I,L/I),V=e(G,2),W=V[0],X=V[1];O[S]=W+X*A,j[S]=Math.abs(l[S]-O[S]),b(c,S+1,M)}if(C===g)break;var H=d(j);if(Math.abs(H)=1?v:(U=1-q*q)*U}return x(c,O,u,f)}return r.bandwidth=function(t){return arguments.length?(i=t,r):i},r.x=function(e){return arguments.length?(t=e,r):t},r.y=function(t){return arguments.length?(n=t,r):n},r}function m(t){return(t=1-t*t*t)*t*t}function b(t,e,n){var i=t[e],r=n[0],a=n[1]+1;if(!(a>=t.length))while(e>r&&t[a]-i<=i-t[r])n[0]=++r,n[1]=a,++a}function x(t,e,n,i){for(var r,a=t.length,o=[],s=0,c=0,l=[];sv&&(v=e))}));var m=h(l,f,p,d),b=e(m,2),x=b[0],O=b[1],j=function(t){return O*Math.log(t)/y+x},w=u(g,v,j);return w.a=O,w.b=x,w.predict=j,w.rSquared=s(a,n,i,f,j),w}return a.domain=function(e){return arguments.length?(t=e,a):t},a.x=function(t){return arguments.length?(n=t,a):n},a.y=function(t){return arguments.length?(i=t,a):i},a.base=function(t){return arguments.length?(r=t,a):r},a}function j(){var t,n=function(t){return t[0]},i=function(t){return t[1]};function r(r){var c,l,h,f,p=a(r,n,i),d=e(p,4),g=d[0],v=d[1],y=d[2],m=d[3],b=g.length,x=0,O=0,j=0,w=0,C=0;for(c=0;ck&&(k=e))}));var F=j-x*x,E=x*F-O*O,I=(C*x-w*O)/E,T=(w*F-C*O)/E,P=-I*x,B=function(t){return t-=y,I*t*t+T*t+P+m},L=u(A,k,B);return L.a=I,L.b=T-2*I*y,L.c=P-T*y+I*y*y+m,L.predict=B,L.rSquared=s(r,n,i,M,B),L}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(n=t,r):n},r.y=function(t){return arguments.length?(i=t,r):i},r}function w(){var t,n=function(t){return t[0]},i=function(t){return t[1]},r=3;function c(c){if(1===r){var l=p().x(n).y(i).domain(t)(c);return l.coefficients=[l.b,l.a],delete l.a,delete l.b,l}if(2===r){var h=j().x(n).y(i).domain(t)(c);return h.coefficients=[h.c,h.b,h.a],delete h.a,delete h.b,delete h.c,h}var f,d,g,v,y,m=a(c,n,i),b=e(m,4),x=b[0],O=b[1],w=b[2],S=b[3],A=x.length,k=[],F=[],E=r+1,I=0,T=0,P=t?+t[0]:1/0,B=t?+t[1]:-1/0;for(o(c,n,i,(function(e,n){++T,I+=(n-I)/T,t||(eB&&(B=e))})),f=0;f=0;--r)for(o=e[r],s=1,c[r]+=o,a=1;a<=r;++a)s*=(r+1-a)/a,c[r-a]+=o*Math.pow(n,a)*s;return c[0]+=i,c}function M(t){var e,n,i,r,a,o=t.length-1,s=[];for(e=0;eMath.abs(t[e][r])&&(r=n);for(i=e;i=e;i--)t[i][n]-=t[i][e]*t[e][n]/t[e][e]}for(n=o-1;n>=0;--n){for(a=0,i=n+1;iv&&(v=e))}));var y=h(c,l,f,p),m=e(y,2),b=m[0],x=m[1];b=Math.exp(b);var O=function(t){return b*Math.pow(t,x)},j=u(g,v,O);return j.a=b,j.b=x,j.predict=O,j.rSquared=s(r,n,i,d,O),j}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(n=t,r):n},r.y=function(t){return arguments.length?(i=t,r):i},r}t.regressionExp=f,t.regressionLinear=p,t.regressionLoess=y,t.regressionLog=O,t.regressionPoly=w,t.regressionPow=S,t.regressionQuad=j,Object.defineProperty(t,"__esModule",{value:!0})}))},"53c8":function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return l}));var i=n("4799");n.d(e,"Shape",(function(){return i}));var r=n("6855");for(var a in r)["default","Canvas","Group","Shape","getArcParams","version"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);var o=n("b182");n.d(e,"Canvas",(function(){return o["a"]}));var s=n("c2ad");n.d(e,"Group",(function(){return s["a"]}));var c=n("9c29");n.d(e,"getArcParams",(function(){return c["a"]}));var l="0.5.12"},"54ca":function(t,e,n){"use strict";n.d(e,"a",(function(){return Z})),n.d(e,"b",(function(){return J}));var i={};function r(t){return+t}function a(t){return t*t}function o(t){return t*(2-t)}function s(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function c(t){return t*t*t}function l(t){return--t*t*t+1}function u(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.r(i),n.d(i,"easeLinear",(function(){return r})),n.d(i,"easeQuad",(function(){return s})),n.d(i,"easeQuadIn",(function(){return a})),n.d(i,"easeQuadOut",(function(){return o})),n.d(i,"easeQuadInOut",(function(){return s})),n.d(i,"easeCubic",(function(){return u})),n.d(i,"easeCubicIn",(function(){return c})),n.d(i,"easeCubicOut",(function(){return l})),n.d(i,"easeCubicInOut",(function(){return u})),n.d(i,"easePoly",(function(){return d})),n.d(i,"easePolyIn",(function(){return f})),n.d(i,"easePolyOut",(function(){return p})),n.d(i,"easePolyInOut",(function(){return d})),n.d(i,"easeSin",(function(){return b})),n.d(i,"easeSinIn",(function(){return y})),n.d(i,"easeSinOut",(function(){return m})),n.d(i,"easeSinInOut",(function(){return b})),n.d(i,"easeExp",(function(){return w})),n.d(i,"easeExpIn",(function(){return O})),n.d(i,"easeExpOut",(function(){return j})),n.d(i,"easeExpInOut",(function(){return w})),n.d(i,"easeCircle",(function(){return S})),n.d(i,"easeCircleIn",(function(){return C})),n.d(i,"easeCircleOut",(function(){return M})),n.d(i,"easeCircleInOut",(function(){return S})),n.d(i,"easeBounce",(function(){return z})),n.d(i,"easeBounceIn",(function(){return R})),n.d(i,"easeBounceOut",(function(){return z})),n.d(i,"easeBounceInOut",(function(){return _})),n.d(i,"easeBack",(function(){return V})),n.d(i,"easeBackIn",(function(){return Y})),n.d(i,"easeBackOut",(function(){return G})),n.d(i,"easeBackInOut",(function(){return V})),n.d(i,"easeElastic",(function(){return U})),n.d(i,"easeElasticIn",(function(){return q})),n.d(i,"easeElasticOut",(function(){return U})),n.d(i,"easeElasticInOut",(function(){return K}));var h=3,f=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(h),p=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(h),d=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(h),g=Math.PI,v=g/2;function y(t){return 1===+t?1:1-Math.cos(t*v)}function m(t){return Math.sin(t*v)}function b(t){return(1-Math.cos(g*t))/2}function x(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function O(t){return x(1-+t)}function j(t){return 1-x(t)}function w(t){return((t*=2)<=1?x(1-t):2-x(t-1))/2}function C(t){return 1-Math.sqrt(1-t*t)}function M(t){return Math.sqrt(1- --t*t)}function S(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var A=4/11,k=6/11,F=8/11,E=3/4,I=9/11,T=10/11,P=15/16,B=21/22,L=63/64,D=1/A/A;function R(t){return 1-z(1-t)}function z(t){return(t=+t)0&&(r=1/Math.sqrt(r)),t[0]=e[0]*r,t[1]=e[1]*r,t}function A(t,e){return t[0]*e[0]+t[1]*e[1]}function k(t,e,n){var i=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=i,t}function F(t,e,n,i){var r=e[0],a=e[1];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t}function E(t,e){e=e||1;var n=2*i["c"]()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function I(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r,t[1]=n[1]*i+n[3]*r,t}function T(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}function P(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[3]*r+n[6],t[1]=n[1]*i+n[4]*r+n[7],t}function B(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[4]*r+n[12],t[1]=n[1]*i+n[5]*r+n[13],t}function L(t,e,n,i){var r=e[0]-n[0],a=e[1]-n[1],o=Math.sin(i),s=Math.cos(i);return t[0]=r*s-a*o+n[0],t[1]=r*o+a*s+n[1],t}function D(t,e){var n=t[0],i=t[1],r=e[0],a=e[1],o=Math.sqrt(n*n+i*i)*Math.sqrt(r*r+a*a),s=o&&(n*r+i*a)/o;return Math.acos(Math.min(Math.max(s,-1),1))}function R(t){return t[0]=0,t[1]=0,t}function z(t){return"vec2("+t[0]+", "+t[1]+")"}function _(t,e){return t[0]===e[0]&&t[1]===e[1]}function N(t,e){var n=t[0],r=t[1],a=e[0],o=e[1];return Math.abs(n-a)<=i["b"]*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=i["b"]*Math.max(1,Math.abs(r),Math.abs(o))}var Y=j,G=u,V=h,W=f,X=x,H=O,q=w,U=function(){var t=r();return function(e,n,i,r,a,o){var s,c;for(n||(n=2),i||(i=0),c=r?Math.min(r*n+i,e.length):e.length,s=i;s0&&(e?"stroke"in n?this._setColor(t,"stroke",a):"strokeStyle"in n&&this._setColor(t,"stroke",o):this._setColor(t,"stroke",a||o),c&&h.setAttribute(l["b"]["strokeOpacity"],c),u&&h.setAttribute(l["b"]["lineWidth"],u))},e.prototype._setColor=function(t,e,n){var i=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var r=t.find("gradient",n);r||(r=t.addGradient(n)),i.setAttribute(l["b"][e],"url(#"+r+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){r=t.find("pattern",n);r||(r=t.addPattern(n)),i.setAttribute(l["b"][e],"url(#"+r+")")}else i.setAttribute(l["b"][e],n);else i.setAttribute(l["b"][e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),i=e||n,r=i.shadowOffsetX,a=i.shadowOffsetY,s=i.shadowBlur,c=i.shadowColor;(r||a||s||c)&&Object(o["b"])(this,t)},e.prototype.transform=function(t){var e=this.attr(),n=(t||e).matrix;n&&Object(o["c"])(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),i=this.get("canvas"),r=i.get("el").getBoundingClientRect(),a=t+r.left,o=e+r.top,s=document.elementFromPoint(a,o);return!(!s||!s.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(a["AbstractShape"]),f=h,p=n("8937"),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return Object(r["c"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(p["j"])(e||n,(function(t,e){"x"===e||"y"===e?i.setAttribute("c"+e,t):l["b"][e]&&i.setAttribute(l["b"][e],t)}))},e}(f),g=d,v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return Object(r["c"])(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");if(Object(p["j"])(e||n,(function(t,e){l["b"][e]&&i.setAttribute(l["b"][e],t)})),"function"===typeof n["html"]){var r=n["html"].call(this,n);if(r instanceof Element||r instanceof HTMLDocument){for(var a=i.childNodes,o=a.length-1;o>=0;o--)i.removeChild(a[o]);i.appendChild(r)}else i.innerHTML=r}else i.innerHTML=n["html"]},e}(f),y=v,m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return Object(r["c"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(p["j"])(e||n,(function(t,e){"x"===e||"y"===e?i.setAttribute("c"+e,t):l["b"][e]&&i.setAttribute(l["b"][e],t)}))},e}(f),b=m,x=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return Object(r["c"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");Object(p["j"])(e||i,(function(t,e){"img"===e?n._setImage(i.img):l["b"][e]&&r.setAttribute(l["b"][e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if(Object(p["Q"])(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&Object(p["Q"])(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var i=document.createElement("canvas");i.setAttribute("width",""+t.width),i.setAttribute("height",""+t.height),i.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",i.toDataURL())}},e}(f),O=x,j=n("1183"),w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return Object(r["c"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(p["j"])(e||n,(function(e,r){if("startArrow"===r||"endArrow"===r)if(e){var a=Object(p["O"])(e)?t.addArrow(n,l["b"][r]):t.getDefaultArrow(n,l["b"][r]);i.setAttribute(l["b"][r],"url(#"+a+")")}else i.removeAttribute(l["b"][r]);else l["b"][r]&&i.setAttribute(l["b"][r],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,i=t.x2,r=t.y2;return j["c"].length(e,n,i,r)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,a=e.y2;return j["c"].pointAt(n,i,r,a,t)},e}(f),C=w,M={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+i],["L",t,e-i],["L",t+n,e+i],["z"]]},triangleDown:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-i],["L",t+n,e-i],["L",t,e+i],["Z"]]}},S={get:function(t){return M[t]},register:function(t,e){M[t]=e},remove:function(t){delete M[t]},getAll:function(){return M}},A=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return Object(r["c"])(e,t),e.prototype.createPath=function(t){var e=this.get("el");e.setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return Object(p["C"])(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,i=e.y,r=e.r||e.radius,a=e.symbol||"circle";return t=Object(p["I"])(a)?a:S.get(a),t?t(n,i,r):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=S,e}(f),k=A,F=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return Object(r["c"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");Object(p["j"])(e||i,(function(e,a){if("path"===a&&Object(p["C"])(e))r.setAttribute("d",n._formatPath(e));else if("startArrow"===a||"endArrow"===a)if(e){var o=Object(p["O"])(e)?t.addArrow(i,l["b"][a]):t.getDefaultArrow(i,l["b"][a]);r.setAttribute(l["b"][a],"url(#"+o+")")}else r.removeAttribute(l["b"][a]);else l["b"][a]&&r.setAttribute(l["b"][a],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var i=e?e.getPointAtLength(t*n):null;return i?{x:i.x,y:i.y}:null},e}(f),E=F,I=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return Object(r["c"])(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(p["j"])(e||n,(function(t,e){"points"===e&&Object(p["C"])(t)&&t.length>=2?i.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):l["b"][e]&&i.setAttribute(l["b"][e],t)}))},e}(f),T=I,P=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return Object(r["c"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(p["j"])(e||n,(function(t,e){"points"===e&&Object(p["C"])(t)&&t.length>=2?i.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):l["b"][e]&&i.setAttribute(l["b"][e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(p["K"])(e)?(this.set("totalLength",j["d"].length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,i=this.attr().points,r=this.get("tCache");return r||(this._setTcache(),r=this.get("tCache")),Object(p["j"])(r,(function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)})),j["c"].pointAt(i[n][0],i[n][1],i[n+1][0],i[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,i,r=0,a=[];Object(p["j"])(t,(function(o,s){t[s+1]&&(n=[],n[0]=r/e,i=j["c"].length(o[0],o[1],t[s+1][0],t[s+1][1]),r+=i,n[1]=r/e,a.push(n))})),this.set("tCache",a)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(f),B=P;function L(t){var e=0,n=0,i=0,r=0;return Object(p["C"])(t)?1===t.length?e=n=i=r=t[0]:2===t.length?(e=i=t[0],n=r=t[1]):3===t.length?(e=t[0],n=r=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],r=t[3]):e=n=i=r=t,{r1:e,r2:n,r3:i,r4:r}}var D=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return Object(r["c"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el"),a=!1,o=["x","y","width","height","radius"];Object(p["j"])(e||i,(function(t,e){-1===o.indexOf(e)||a?-1===o.indexOf(e)&&l["b"][e]&&r.setAttribute(l["b"][e],t):(r.setAttribute("d",n._assembleRect(i)),a=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,i=t.width,r=t.height,a=t.radius;if(!a)return"M "+e+","+n+" l "+i+",0 l 0,"+r+" l"+-i+" 0 z";var o=L(a);Object(p["C"])(a)?1===a.length?o.r1=o.r2=o.r3=o.r4=a[0]:2===a.length?(o.r1=o.r3=a[0],o.r2=o.r4=a[1]):3===a.length?(o.r1=a[0],o.r2=o.r4=a[1],o.r3=a[2]):(o.r1=a[0],o.r2=a[1],o.r3=a[2],o.r4=a[3]):o.r1=o.r2=o.r3=o.r4=a;var s=[["M "+(e+o.r1)+","+n],["l "+(i-o.r1-o.r2)+",0"],["a "+o.r2+","+o.r2+",0,0,1,"+o.r2+","+o.r2],["l 0,"+(r-o.r2-o.r3)],["a "+o.r3+","+o.r3+",0,0,1,"+-o.r3+","+o.r3],["l "+(o.r3+o.r4-i)+",0"],["a "+o.r4+","+o.r4+",0,0,1,"+-o.r4+","+-o.r4],["l 0,"+(o.r4+o.r1-r)],["a "+o.r1+","+o.r1+",0,0,1,"+o.r1+","+-o.r1],["z"]];return s.join(" ")},e}(f),R=D,z=n("7b46"),_=.3,N={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},Y={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},G={left:"left",start:"left",center:"middle",right:"end",end:"end"},V=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return Object(r["c"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");this._setFont(),Object(p["j"])(e||i,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?Object(o["c"])(n):l["b"][e]&&r.setAttribute(l["b"][e],t)})),r.setAttribute("paint-order","stroke"),r.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,i=e.textAlign,r=Object(z["a"])();r&&"firefox"===r.name?t.setAttribute("dominant-baseline",Y[n]||"alphabetic"):t.setAttribute("alignment-baseline",N[n]||"baseline"),t.setAttribute("text-anchor",G[i]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),i=n.x,r=n.textBaseline,a=void 0===r?"bottom":r;if(t)if(~t.indexOf("\n")){var o=t.split("\n"),s=o.length-1,c="";Object(p["j"])(o,(function(t,e){0===e?"alphabetic"===a?c+=''+t+"":"top"===a?c+=''+t+"":"middle"===a?c+=''+t+"":"bottom"===a?c+=''+t+"":"hanging"===a&&(c+=''+t+""):c+=''+t+""})),e.innerHTML=c}else e.innerHTML=t;else e.innerHTML=""},e}(f),W=V},6928:function(t,e,n){"use strict";function i(t,e){var n=[],i=t[0],r=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],h=t[8],f=e[0],p=e[1],d=e[2],g=e[3],v=e[4],y=e[5],m=e[6],b=e[7],x=e[8];return n[0]=f*i+p*o+d*l,n[1]=f*r+p*s+d*u,n[2]=f*a+p*c+d*h,n[3]=g*i+v*o+y*l,n[4]=g*r+v*s+y*u,n[5]=g*a+v*c+y*h,n[6]=m*i+b*o+x*l,n[7]=m*r+b*s+x*u,n[8]=m*a+b*c+x*h,n}function r(t,e){var n=[],i=e[0],r=e[1];return n[0]=t[0]*i+t[3]*r+t[6],n[1]=t[1]*i+t[4]*r+t[7],n}function a(t){var e=[],n=t[0],i=t[1],r=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],h=u*o-s*l,f=-u*a+s*c,p=l*a-o*c,d=n*h+i*f+r*p;return d?(d=1/d,e[0]=h*d,e[1]=(-u*i+r*l)*d,e[2]=(s*i-r*o)*d,e[3]=f*d,e[4]=(u*n-r*c)*d,e[5]=(-s*n+r*a)*d,e[6]=p*d,e[7]=(-l*n+i*c)*d,e[8]=(o*n-i*a)*d,e):null}n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}))},"717f":function(t,e,n){t.exports=n.p+"img/leftsign.74c6ba5e.png"},"721a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var i=1,r=function(){return"".concat(i++)};e["default"]=r},7326:function(t,e,n){"use strict";n.d(e,"d",(function(){return r})),n.d(e,"b",(function(){return a})),n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return s})),n.d(e,"l",(function(){return c})),n.d(e,"j",(function(){return l}));var i=n("8937");function r(){return window?window.devicePixelRatio:1}function a(t,e,n,i){var r=t-n,a=e-i;return Math.sqrt(r*r+a*a)}function o(t,e,n,i,r,a){return r>=t&&r<=t+n&&a>=e&&a<=e+i}function s(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxYe)n.insertBefore(t,r);else if(a",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){var t=this.get("container");t.style.display="",this.set("visible",!0)},e.prototype.hide=function(){var t=this.get("container");t.style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=this.getContainer(),n=t?"auto":"none";e.style.pointerEvents=n,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return Object(o["b"])(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");Object(o["a"])(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if(Object(a["K"])(t)){t=this.createDom();var e=this.get("parent");Object(a["Q"])(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else Object(a["Q"])(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?Object(a["h"])({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&Object(o["h"])(e,n)){var i=t[n];Object(r["e"])(e,i)}}},e.prototype.applyChildrenStyles=function(t,e){Object(a["j"])(e,(function(e,n){var i=t.getElementsByClassName(n);Object(a["j"])(i,(function(t){Object(r["e"])(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");Object(r["e"])(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return Object(r["b"])(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){Object(a["y"])(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(s["a"]);e["a"]=c},"796a":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAYAAABXuSs3AAAAAXNSR0IArs4c6QAABrtJREFUaEPtWWtsFFUU/s7dpVKKvHwjFW0ian22O1sVnzWiBgSVuLMiagRMVbQ79f2KumJ8EQRmqkUgRlAC3aloAghqJKABgnRbigIqaDCKxietQGmlu3PMXahZye7O3Sn+MPH+28w53/fd7945c+5dwn900H9UN3IKj9vGlwBOU5kcgZcGdGtMtljbDvlKMHg1gItV8MC8SQtb52WLdREe2QNQXyUiAILFiPLwjI8yxTfZRpiBelUsAG2abg70KNx4AcCjeZCt0XTzkkPjU27z4BYQzlLGIn5WC1lPeRLeYt93Yhec7QQUqhIKdkaUh2v/4Xr+bnOrr5coKbthZpsn4TKp0TZqCbhXVTgYzYEvBgYpGnVkDtshXxNOaAFI2W0ijgZC1jO5OF2ryoZFk4uFr9dXyMN1Bq4L6uYSSdwUi+hMFFOeONBW0LW/5Jzxs1p7JDzleixiEVG1InkbAZ8EdPO6lHDbWMHAcAD9VPKZOBp0cVviuDoug9YvqB7iLxDbMrlOwF4AHzLxCiSTzUd1tG89ZcK8znSRq+zJffskxel+4Stj4lEAXQmgKMNElNxWFn7Q9VeI6J40sq8Bmu5rx6KyCdlfokwuxxdWHc2+wlsFIcLAyWkxUzTdfFplZZQcT7m+uHqIP0lfMYgE8PTu9j9qKw86G41GxehhrWexD5cDXMFEJUQoAkMAvA+Mb4WgZieB1djd0azdOadLYsZnV/XhAb0fJiJZcvcnEjj1gpvNnw+r8AMVJvIEBC8P3li7Uf5e8/rEIwv79ZvE7EwE6GwVQgDbGTzf3y5e7V6pDTHjUkE8XNOtFxUx1PZ4JrCmhurxzOIlACeqkqXHEfCLwzxF0606InC+GMpbpRt405sPFiV6J2Yx+NZ8ybLEvyfgTCjXa3/NBy8v4Z8vNI7r9PMKApXlQ6IQ+7WT9F1RMW769wqxqRBl4esXVPfzFYiVBGiq4HnGfdPL32v4uWOn/aKSpyw8bhs2gJAKqIxhYA+BEwBl7fAOxWLG2r1fbLq8Mro64cajJHxDzLhFEN5yA0t73o5EUoNf7JNVD6Bj1HP5MZXq4io8blf1BwrlV/NYVXJinhoIW4/I+KaGmhpmnqGaC6Ad4FJNt77LleMqvDEWkR8IWfZUx14HXadW6HU/yYT40qo+1FG4jfMqmzxd060HPAuXX8RrS1u3qh7fUkTM07Sw9VA6adyOPAqQPJSojl2/d+466erb3mrPlpDT8Wa75kIHvE6RrQ3gn/zwXXmePuOH9BxZkfwFYjWYTwZhAECuK02E0YGQucyT8Hgs8hiIns+SvB2M2QRsZkr+uAfOjkq9TnaKWYfcNtxRWMxJHiIIpSzotqzllTFXC5tV3oTbxrsArs+UzESVwdBMeWr3PJrqa85gwXIrZhqfarp5gVfhspnKeEVAwBJu7bixu9Pzoj4eM14FYXKW3O803RzqSXiTbWxhoDS7KH57zzGDxlVWRl0/GIdgULzBqAPjrqzCCG2BkPfrCbmMZ+RykxmLf/3ZGT8yUvuniuup3v3MXXOZaaJL/G5NN/t7cjxuRz5T6bMZ/L62ddCo7pN9zhc0FpkFoqxOd+cysDOom8WehDfGjPeIMNLVSca3Ad2Upx7XvjpuG+sBnO+GyeCNQd0q9ya8wXiOGI8rkCwN5rg3TM+PN0TmgukON0wACzXdHO9JeLy++ioI8YEbiWB+oTxsuU5Q4jTWG3eSwGtumGC+XQtb8z0JX25VH3Hs8UI2OzkbLIc5XBG2ZNv792i0jTFwMED7cuCC9L1/4HyJj3O/8NxJyc5i7eY5v3kSLpPiduRlgO7PReQQX1QRslKtQWOs5iKQM5VA8hJINubNIOcpTa9dLn/J+8gEnJ258IhRHwib43LGuC2ZvAzyFYhtuS4+mfGGIF7qgO4mYEQWzDUgWHBwMQiRbLwMTvohtDJ9ZkuPhKdcj0WeBNEUt0kepuezNN3M9jX9m8K1S5ORW+xQwT4MXvsvnjcP7ireQegs0/Q5f7iZoCRcghy8tZX7eIgbqMfnu9jhy4I3WZtV8pWFS7Bmu7o0CVpJoONVwPOI+Z3hjAzqtRtUc/ISnhK/+J6hTtIv777PUSXJWfrAO+DHmOBYNae7sfIWLhNXvXF77759+kfpQHVQ/pslfQKyegA0r7Nr/0OXuFziZ5q4J+HdQC3v3D8skXQeB7OexwT2M7CMHbxYcZPZ6HXVeiS8m3SdPWlQAReNZtA1BAwDcBIo9Q+ExN8N5p0gkif9D7rw5/vD9df+cSb1Iv6wCPdC3NOc/4X31MF88/8CXJ55TegdXroAAAAASUVORK5CYII="},"7b46":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return d}));var i=function(t,e,n){if(n||2===arguments.length)for(var i,r=0,a=e.length;rf&&(i=[f,h],h=i[0],f=i[1],a=[n,e],e=a[0],n=a[1],p=!0);var d=e.getBBox(),g=n.getBBox(),v=d.width>h-l?{x:h+u/2+l,textAlign:"left"}:{x:h-u/2-l,textAlign:"right"},y=g.width>c-f-l?{x:f-u/2-l,textAlign:"right"}:{x:f+u/2+l,textAlign:"left"};return p?[y,v]:[v,y]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(a["a"])},"7c8a":function(t,e,n){"use strict";function i(t,e,n){if(t){if("function"===typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"===typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}var r,a,o,s;function c(){r=document.createElement("table"),a=document.createElement("tr"),o=/^\s*<(\w+|!)[^>]*>/,s={tr:document.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:a,th:a,"*":document.createElement("div")}}function l(t){r||c();var e=o.test(t)&&RegExp.$1;e&&e in s||(e="*");var n=s[e];t="string"===typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var i=n.childNodes[0];return i&&n.contains(i)&&n.removeChild(i),i}function u(t,e,n){var i;try{i=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(r){}finally{i=void 0===i?n:i}return i}function h(t,e){var n=u(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}function f(t,e){var n=h(t,e),i=parseFloat(u(t,"borderTopWidth"))||0,r=parseFloat(u(t,"paddingTop"))||0,a=parseFloat(u(t,"paddingBottom"))||0,o=parseFloat(u(t,"borderBottomWidth"))||0,s=parseFloat(u(t,"marginTop"))||0,c=parseFloat(u(t,"marginBottom"))||0;return n+i+o+r+a+s+c}function p(t,e){var n=u(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}function d(t,e){var n=p(t,e),i=parseFloat(u(t,"borderLeftWidth"))||0,r=parseFloat(u(t,"paddingLeft"))||0,a=parseFloat(u(t,"paddingRight"))||0,o=parseFloat(u(t,"borderRightWidth"))||0,s=parseFloat(u(t,"marginRight"))||0,c=parseFloat(u(t,"marginLeft"))||0;return n+i+o+r+a+c+s}function g(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return d})),n.d(e,"e",(function(){return g}))},"7cfd":function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return N})),n.d(e,"Circle",(function(){return G})),n.d(e,"Base",(function(){return g}));var i={};n.r(i),n.d(i,"getDefault",(function(){return m})),n.d(i,"ellipsisHead",(function(){return b})),n.d(i,"ellipsisTail",(function(){return x})),n.d(i,"ellipsisMiddle",(function(){return O}));var r={};n.r(r),n.d(r,"getDefault",(function(){return k})),n.d(r,"reserveFirst",(function(){return F})),n.d(r,"reserveLast",(function(){return E})),n.d(r,"reserveBoth",(function(){return I})),n.d(r,"equidistance",(function(){return T})),n.d(r,"equidistanceWithReverseBoth",(function(){return P}));var a={};n.r(a),n.d(a,"getDefault",(function(){return D})),n.d(a,"fixedAngle",(function(){return R})),n.d(a,"unfixedAngle",(function(){return z}));var o={};n.r(o),n.d(o,"autoHide",(function(){return r})),n.d(o,"autoRotate",(function(){return a})),n.d(o,"autoEllipsis",(function(){return i}));var s=n("9ab4"),c=n("e897"),l=n("8937"),u=n("31e6"),h=n("8ea8"),f=n("9778"),p=n("2f5e"),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s["a"])(Object(s["a"])({},e),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:p["a"].lineColor}},tickLine:{style:{lineWidth:1,stroke:p["a"].lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:p["a"].lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:p["a"].textColor,fontFamily:p["a"].fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:p["a"].textColor,textBaseline:"middle",fontFamily:p["a"].fontFamily,textAlign:"center"},iconStyle:{fill:p["a"].descriptionIconFill,stroke:p["a"].descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:p["a"].uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},e.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("ticks")},e.prototype.setItems=function(t){this.update({ticks:t})},e.prototype.updateItem=function(t,e){Object(l["db"])(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n,this.updateTickStates(t)},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("tickStates"),n=[];return Object(l["j"])(e,(function(e,i){t[i]&&n.push(i)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(l["j"])(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(l["l"])(n,(function(n){return e.hasState(n,t)}))},e.prototype.getSidePoint=function(t,e){var n=this,i=n.getSideVector(e,t);return{x:t.x+i[0],y:t.y+i[1]}},e.prototype.getTextAnchor=function(t){var e;return Object(l["N"])(t[0],0)?e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e},e.prototype.getTextBaseline=function(t){var e;return Object(l["N"])(t[1],0)?e="middle":t[1]>0?e="top":t[1]<0&&(e="bottom"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:Object(l["db"])({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],i=this.get("tickLine"),r=i.alignTick,a=i.length,o=1,s=t.length;return s>=2&&(o=t[1].value-t[0].value),Object(l["j"])(t,(function(t){var i=t.point;r||(i=e.getTickPoint(t.value-o/2));var s=e.getSidePoint(i,a);n.push({startPoint:i,tickValue:t.value,endPoint:s,tickId:t.id,id:"tickline-"+t.id})})),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),i=n.count,r=t.length;if(r>=2)for(var a=0;a0){var n=Object(l["mb"])(e);if(n>t.threshold){var i=Math.ceil(n/t.threshold),r=e.filter((function(t,e){return e%i===0}));this.set("ticks",r),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,n){var i=this.get("label"),r=i.offset,a=i.offsetX,o=i.offsetY,s=i.rotate,c=i.formatter,u=this.getSidePoint(t.point,r),f=this.getSideVector(r,u),p=c?c(t.name,t,e):t.name,d=i.style;d=Object(l["I"])(d)?Object(l["s"])(this.get("theme"),["label","style"],{}):d;var g=Object(l["db"])({x:u.x+a,y:u.y+o,text:p,textAlign:this.getTextAnchor(f),textBaseline:this.getTextBaseline(f)},d);return s&&(g.matrix=Object(h["e"])(u,s)),g},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),i=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});Object(l["j"])(n,(function(t,r){e.addShape(i,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,r,n),delegateObject:{tick:t,item:t,index:r}})})),this.processOverlap(i);var r=i.getChildren(),a=Object(l["s"])(this.get("theme"),["label","style"],{}),o=this.get("label"),s=o.style,c=o.formatter;if(Object(l["I"])(s)){var u=r.map((function(t){return Object(l["s"])(t.get("delegateObject"),"tick")}));Object(l["j"])(r,(function(t,e){var n=t.get("delegateObject").tick,i=c?c(n.name,n,e):n.name,r=Object(l["db"])({},a,s(i,e,u));t.attr(r)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,i=t.offset,r=t.spacing,a=void 0===r?0:r,o=t.autoRotate,s=e.fontSize,u=.5;"start"===n?u=0:"end"===n&&(u=1);var f=this.getTickPoint(u),p=this.getSidePoint(f,i||a+s/2),d=Object(l["db"])({x:p.x,y:p.y,text:t.text},e),g=t.rotate,v=g;if(Object(l["K"])(g)&&o){var y=this.getAxisVector(f),m=[1,0];v=c["a"].angleTo(y,m,!0)}if(v){var b=Object(h["e"])(p,v);d.matrix=b}return d},e.prototype.drawTitle=function(t){var e,n=this.getTitleAttrs(),i=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});(null===(e=this.get("title"))||void 0===e?void 0:e.description)&&this.drawDescriptionIcon(t,i,n.matrix)},e.prototype.drawDescriptionIcon=function(t,e,n){var i=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),r=e.getBBox(),a=r.maxX,o=r.maxY,c=r.height,l=this.get("title").iconStyle,u=4,h=c/2,f=h/6,p=a+u,d=o-c/2,g=[p+h,d-h],v=g[0],y=g[1],m=[v+h,y+h],b=m[0],x=m[1],O=[v,x+h],j=O[0],w=O[1],C=[p,y+h],M=C[0],S=C[1],A=[p+h,d-c/4],k=A[0],F=A[1],E=[k,F+f],I=E[0],T=E[1],P=[I,T+f],B=P[0],L=P[1],D=[B,L+3*h/4],R=D[0],z=D[1];this.addShape(i,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:Object(s["a"])({path:[["M",v,y],["A",h,h,0,0,1,b,x],["A",h,h,0,0,1,j,w],["A",h,h,0,0,1,M,S],["A",h,h,0,0,1,v,y],["M",k,F],["L",I,T],["M",B,L],["L",R,z]],lineWidth:f,matrix:n},l)}),this.addShape(i,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:p,y:d-c/2,width:c,height:c,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},e.prototype.applyTickStates=function(t,e){var n=this.getItemStates(t);if(n.length){var i=this.get("tickStates"),r=this.getElementId("label-"+t.id),a=e.findById(r);if(a){var o=Object(f["a"])(t,"label",i);o&&a.attr(o)}var s=this.getElementId("tickline-"+t.id),c=e.findById(s);if(c){var l=Object(f["a"])(t,"tickLine",i);l&&c.attr(l)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),i=this.get("label"),r=this.getElementByLocalId("label-"+t.id),a=this.get("tickLine"),o=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(r){var s=Object(f["a"])(t,"label",n);s&&r.attr(s)}if(o){var c=Object(f["a"])(t,"tickLine",n);c&&o.attr(c)}}else r&&r.attr(i.style),o&&o.attr(a.style)},e}(u["a"]),g=d,v=n("060b");function y(t,e,n,i){var r=e.getChildren(),a=!1;return Object(l["j"])(r,(function(e){var r=Object(v["a"])(t,e,n,i);a=a||r})),a}function m(){return x}function b(t,e,n){return y(t,e,n,"head")}function x(t,e,n){return y(t,e,n,"tail")}function O(t,e,n){return y(t,e,n,"middle")}var j=n("e546");function w(t){var e=t.attr("matrix");return e&&1!==e[0]}function C(t){var e=w(t)?Object(h["d"])(t.attr("matrix")):0;return e%360}function M(t,e,n,i){var r=!1,a=C(e),o=t?Math.abs(n.attr("y")-e.attr("y")):Math.abs(n.attr("x")-e.attr("x")),s=(t?n.attr("y")>e.attr("y"):n.attr("x")>e.attr("x"))?e.getBBox():n.getBBox();if(t){var c=Math.abs(Math.cos(a));r=Object(j["i"])(c,0,Math.PI/180)?s.width+i>o:s.height/c+i>o}else{c=Math.abs(Math.sin(a));r=Object(j["i"])(c,0,Math.PI/180)?s.width+i>o:s.height/c+i>o}return r}function S(t,e,n,i){var r=(null===i||void 0===i?void 0:i.minGap)||0,a=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!a.length)return!1;var o=!1;n&&a.reverse();for(var s=a.length,c=a[0],l=c,u=1;u1){f=Math.ceil(f);for(var g=0;g2){var o=r[0],s=r[r.length-1];o.get("visible")||(o.show(),S(t,e,!1,i)&&(a=!0)),s.get("visible")||(s.show(),S(t,e,!0,i)&&(a=!0))}return a}function B(t,e){Object(l["j"])(t,(function(t){var n=t.attr("x"),i=t.attr("y"),r=Object(h["e"])({x:n,y:i},e);t.attr("matrix",r)}))}function L(t,e,n,i){var r=e.getChildren();if(!r.length)return!1;if(!t&&r.length<2)return!1;var a=Object(v["b"])(r),o=!1;if(t)o=!!n&&a>n;else{var s=Math.abs(r[1].attr("x")-r[0].attr("x"));o=a>s}if(o){var c=i(n,a);B(r,c)}return o}function D(){return R}function R(t,e,n,i){return L(t,e,n,(function(){return Object(l["M"])(i)?i:t?p["a"].verticalAxisRotate:p["a"].horizontalAxisRotate}))}function z(t,e,n){return L(t,e,n,(function(e,n){if(!e)return t?p["a"].verticalAxisRotate:p["a"].horizontalAxisRotate;if(t)return-Math.acos(e/n);var i=0;return e>n?i=Math.PI/4:(i=Math.asin(e/n),i>Math.PI/4&&(i=Math.PI/4)),i}))}var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s["a"])(Object(s["a"])({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),n=this.get("end"),i=t.prototype.getInnerLayoutBBox.call(this),r=Math.min(e.x,n.x,i.x),a=Math.min(e.y,n.y,i.y),o=Math.max(e.x,n.x,i.maxX),s=Math.max(e.y,n.y,i.maxY);return{x:r,y:a,minX:r,minY:a,maxX:o,maxY:s,width:o-r,height:s-a}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return Object(l["N"])(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return Object(l["N"])(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this,n=e.get("start"),i=e.get("end"),r=i.x-n.x,a=i.y-n.y;return{x:n.x+r*t,y:n.y+a*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=c["c"].normalize([0,0],e),i=this.get("verticalFactor"),r=[n[1],-1*n[0]];return c["c"].scale([0,0],r,t*i)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.processOverlap=function(t){var e=this,n=this.isVertical(),i=this.isHorizontal();if(n||i){var r=this.get("label"),a=this.get("title"),o=this.get("verticalLimitLength"),s=r.offset,c=o,u=0,h=0;a&&(u=a.style.fontSize,h=a.spacing),c&&(c=c-s-h-u);var f=this.get("overlapOrder");if(Object(l["j"])(f,(function(n){r[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,r[n],t,c)})),a&&Object(l["K"])(a.offset)){var p=t.getCanvasBBox(),d=n?p.width:p.height;a.offset=s+d+h+u/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||Object(l["K"])(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,n,i){var r=this,a=this.isVertical(),s=!1,c=o[t];if(!0===e){this.get("label");s=c.getDefault()(a,n,i)}else if(Object(l["I"])(e))s=e(a,n,i);else if(Object(l["O"])(e)){var u=e;c[u.type]&&(s=c[u.type](a,n,i,u.cfg))}else c[e]&&(s=c[e](a,n,i));if("autoRotate"===t){if(s){var h=n.getChildren(),f=this.get("verticalFactor");Object(l["j"])(h,(function(t){var e=t.attr("textAlign");if("center"===e){var n=f>0?"end":"start";t.attr("textAlign",n)}}))}}else if("autoHide"===t){var p=n.getChildren().slice(0);Object(l["j"])(p,(function(t){t.get("visible")||(r.get("isRegister")&&r.unregisterElement(t),t.remove())}))}},e}(g),N=_,Y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s["a"])(Object(s["a"])({},e),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,i=this.get("radius"),r=i,a=this.get("startAngle"),o=this.get("endAngle"),s=[];if(Math.abs(o-a)===2*Math.PI)s=[["M",e,n-r],["A",i,r,0,1,1,e,n+r],["A",i,r,0,1,1,e,n-r],["Z"]];else{var c=this.getCirclePoint(a),l=this.getCirclePoint(o),u=Math.abs(o-a)>Math.PI?1:0,h=a>o?0:1;s=[["M",e,n],["L",c.x,c.y],["A",i,r,0,u,h,l.x,l.y],["L",e,n]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=this.get("endAngle"),i=e+(n-e)*t;return this.getCirclePoint(i)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),i=[e.x-n.x,e.y-n.y],r=this.get("verticalFactor"),a=c["c"].length(i);return c["c"].scale(i,i,r*t/a),i},e.prototype.getAxisVector=function(t){var e=this.get("center"),n=[t.x-e.x,t.y-e.y];return[n[1],-1*n[0]]},e.prototype.getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||Object(l["K"])(e.rotate)},e.prototype.processOverlap=function(t){var e=this,n=this.get("label"),i=this.get("title"),r=this.get("verticalLimitLength"),a=n.offset,o=r,s=0,c=0;i&&(s=i.style.fontSize,c=i.spacing),o&&(o=o-a-c-s);var u=this.get("overlapOrder");if(Object(l["j"])(u,(function(i){n[i]&&e.canProcessOverlap(i)&&e.autoProcessOverlap(i,n[i],t,o)})),i&&Object(l["K"])(i.offset)){var h=t.getCanvasBBox().height;i.offset=a+h+c+s/2}},e.prototype.autoProcessOverlap=function(t,e,n,i){var r=this,a=!1,s=o[t];if(i>0)if(!0===e)a=s.getDefault()(!1,n,i);else if(Object(l["I"])(e))a=e(!1,n,i);else if(Object(l["O"])(e)){var c=e;s[c.type]&&(a=s[c.type](!1,n,i,c.cfg))}else s[e]&&(a=s[e](!1,n,i));if("autoRotate"===t){if(a){var u=n.getChildren(),h=this.get("verticalFactor");Object(l["j"])(u,(function(t){var e=t.attr("textAlign");if("center"===e){var n=h>0?"end":"start";t.attr("textAlign",n)}}))}}else if("autoHide"===t){var f=n.getChildren().slice(0);Object(l["j"])(f,(function(t){t.get("visible")||(r.get("isRegister")&&r.unregisterElement(t),t.remove())}))}},e}(g),G=Y},"7fa2":function(t,e,n){"use strict";var i="*",r=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0)},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r-1},o=a,s=function(t,e){if(!r(t))return t;for(var n=[],i=0;ie[r])return 1;if(t[r]n?n:t},ft=ht,pt=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))},dt=pt,gt=function(t){return p(t,"Number")},vt=gt,yt=(Number.isInteger&&Number.isInteger,1e-5);function mt(t,e,n){return void 0===n&&(n=yt),Math.abs(t-e)i&&(n=a,i=o)}return n}},xt=function(t,e){if(y(t)){for(var n,i=1/0,r=0;re?(i&&(clearTimeout(i),i=null),s=l,o=t.apply(r,a),i||(r=a=null)):i||!1===n.trailing||(i=setTimeout(c,u)),o};return l.cancel=function(){clearTimeout(i),s=0,i=r=a=null},l},Ee=function(t){return r(t)?Array.prototype.slice.call(t):[]},Ie={},Te=function(t){return t=t||"g",Ie[t]?Ie[t]+=1:Ie[t]=1,t+Ie[t]},Pe=function(){};function Be(t){return v(t)?0:r(t)?t.length:Object.keys(t).length}var Le,De=n("9ab4"),Re=ce((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,r=e.fontWeight,a=e.fontStyle,o=e.fontVariant;return Le||(Le=document.createElement("canvas").getContext("2d")),Le.font=[a,o,r,n+"px",i].join(" "),Le.measureText(K(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(De["h"])([t],Et(e)).join("")})),ze=function(t,e,n,i){void 0===i&&(i="...");var r,a,o=16,s=Re(i,n),c=K(t)?t:It(t),l=e,u=[];if(Re(t,n)<=e)return t;while(1){if(r=c.substr(0,o),a=Re(r,n),a+s>l&&a>l)break;if(u.push(r),l-=a,c=c.substr(o),!c)return u.join("")}while(1){if(r=c.substr(0,1),a=Re(r,n),a+s>l)break;if(u.push(r),l-=a,c=c.substr(1),!c)return u.join("")}return""+u.join("")+i},_e=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}(),Ne=_e},"8dc7":function(t,e,n){},"8ea8":function(t,e,n){"use strict";n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return h}));var i=n("e897"),r=[1,0,0,0,1,0,0,0,1];function a(t,e,n){if(void 0===n&&(n=r),!e)return null;var a=i["a"].transform(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]);return a}function o(t,e){return t.x||t.y?i["a"].transform(e||r,[["t",t.x,t.y]]):null}function s(t){var e=[1,0,0],n=[0,0,0];return i["d"].transformMat3(n,e,t),Math.atan2(n[1],n[0])}function c(t,e){var n=[0,0];return i["c"].transformMat3(n,e,t),n}function l(t,e){var n=c(t,[e.minX,e.minY]),i=c(t,[e.maxX,e.minY]),r=c(t,[e.minX,e.maxY]),a=c(t,[e.maxX,e.maxY]),o=Math.min(n[0],i[0],r[0],a[0]),s=Math.max(n[0],i[0],r[0],a[0]),l=Math.min(n[1],i[1],r[1],a[1]),u=Math.max(n[1],i[1],r[1],a[1]);return{x:o,y:l,minX:o,minY:l,maxX:s,maxY:u,width:s-o,height:u-l}}function u(t,e,n,i){if(e){var r=a({x:n,y:i},e,t.getMatrix());t.setMatrix(r)}}function h(t,e,n){var i=o({x:e,y:n});t.attr("matrix",i)}},"8f9b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var i=r(n("3688"));function r(t){return t&&t.__esModule?t:{default:t}}var a=function(t){var e=void 0,n=[],r=(0,i["default"])((function(){n.forEach((function(e){e(t)}))})),a=function(){var e=new ResizeObserver(r);return e.observe(t),r(),e},o=function(t){e||(e=a()),-1===n.indexOf(t)&&n.push(t)},s=function(){e.disconnect(),n=[],e=void 0},c=function(t){var i=n.indexOf(t);-1!==i&&n.splice(i,1),0===n.length&&e&&s()};return{element:t,bind:o,destroy:s,unbind:c}};e.createSensor=a},9464:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAYAAABXuSs3AAAAAXNSR0IArs4c6QAABBtJREFUaEPVmXvIn2MYxz9fx1CO5axYhGiRiGjEEhJFyUgyyyiHlWjiP4eslkLJrCkTtsIfMiXHmlebiSSHOeRcwkhOOeTSd+737d1vz+997uf6/X5vvXetX++z6/B5ru7nuq77usUMXZqh3AwFPCJ2AI4Ejin/9gR2A34AxoAnJf0yzCANBB4RBrwRuBiYNQXYJ8DZkvw7lJUGj4iDgVcA/9YsR/xn4AtgJbBcUtQoNsmkwCNiJ+AN4OisY+BuSbdk9bPgVwHLsk6L3t/AoZK+zNjJgr8KnJpx2KMzT9KqjJ3O4CWDfAXsnXHYo7NI0r0ZOxnww4D3ge0yDnt0bpB0X8ZOBtxbxFtlGGuJpMUZQxnwM4HnM84adJZKuiljKwM+D3g846xBZ7GkJRlbGXBXyScyzhp0Fkp6KGMrA34CsA4G7nOeBeZL+n66wP2yjtKCjMNJOnMkrc3a6BxxO4qIXUvnt33WMXCUJKfV1MqCW28DcFzK6//t7iGSfk3q5/dpRNwO3JZ0/Lqkk5O6m9VSES/b5SDgQ2DnBMD1ku5P6E2opMELvHPwzR0BNgLHSvqjo94W4oOCO9qvGaQS4jfA2eStSvm+YgOBl6jvD7wMHF4Bc42kByvkWkUGBi/wLkrrW73BpZKG0i4MC9xp8c2ZCO6xxNsV4FdKerhCrlVk4IhHxH7AdUDNwfcjYJH7+WnNKhGxLeCP8RTABcS/PhF1zeXfAc8BjwFrJf3ZGuIegdaIlzPmicAFwGnA7EEKVwPg18BTwCpJ7jqr1pTgEXEesLREtcagexAXmN5y7jHcScA2LUbeAx5xvy/JL9Q9j0fEucDTQG0H+A5wUZlWGWCv4tVRnAPY3gPAvhUR+B24U9Jd/WQbI14mVf6QDqxwMi4yMWqIiPnACuAvD0ElfVDy/fKOffxcSS81MfQDPwdY0wHaou9K8v53v34F4LT3j8d0kjaWHv4zwIPS2rVS0uVdwO8Abq21XuT+LX3IWEQ4W1xSnm8u8xHhv/28y9ogyVV5q9Uv4h4/eAzRda2QtCAiPp00dn5G0vkR8SJwRkeDPo/OajpwbAVe9vfHwAEdnVjcWeX4klk87PfyuM753rPx2g993LXH0Ab/vJelCfyIMmJrzfF9XuxR4LKe/3NjNb51usbjdEmew2+xmsCd0lZ3tT5C+cbZSxO4j1TXjhCkq+l7JPm6pjXiLwBzu1ofofxqSZ6etYI719be64yQd8L0mCR/3K3gvljq/bimA7Cfj2WSrq4BdyN0IXBWaa5c9n37sMuI6V1l3e5+C3zjSlxmlGskubhNHfFegYjwzcPuwB7l0tUlex/AB4gdy7Pxl/JtnGUnXwM6AWwqfYvN+8rQowlfWv0E/Ai40Pj5ptrePJurRxz8dvMzFvw/u6gzPt6LNe4AAAAASUVORK5CYII="},"94e3":function(t,e,n){"use strict";var i=n("000e"),r=n("8937"),a=n("d177"),o=n("41c8"),s=function(t){function e(e){var n=t.call(this,e)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var i=e.marginRatio,r=void 0===i?a["d"]:i,o=e.dodgeRatio,s=void 0===o?a["b"]:o,c=e.dodgeBy,l=e.intervalPadding,u=e.dodgePadding,h=e.xDimensionLength,f=e.groupNum,p=e.defaultSize,d=e.maxColumnWidth,g=e.minColumnWidth,v=e.columnWidthRatio,y=e.customOffset;return n.marginRatio=r,n.dodgeRatio=s,n.dodgeBy=c,n.intervalPadding=l,n.dodgePadding=u,n.xDimensionLegenth=h,n.groupNum=f,n.defaultSize=p,n.maxColumnWidth=d,n.minColumnWidth=g,n.columnWidthRatio=v,n.customOffset=y,n}return Object(i["b"])(e,t),e.prototype.process=function(t){var e=r["e"](t),n=r["q"](e),i=this.dodgeBy,a=i?r["v"](n,i):e;return this.cacheMap={},this.adjustDataArray=a,this.mergeData=n,this.adjustData(a,n),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,n,i){var a=this,o=this.customOffset,s=this.getDistribution(t),c=this.groupData(n,t);return r["j"](c,(function(n,c){var l;l=1===e.length?{pre:e[0]-1,next:e[0]+1}:a.getAdjustRange(t,parseFloat(c),e),r["j"](n,(function(e){var n=e[t],c=s[n],u=c.indexOf(i);if(r["K"](o))e[t]=a.getDodgeOffset(l,u,c.length);else{var h=l.pre,f=l.next;e[t]=r["I"](o)?o(e,l):(h+f)/2+o}}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var i,a=this,o=a.dodgeRatio,s=a.marginRatio,c=a.intervalPadding,l=a.dodgePadding,u=t.pre,h=t.next,f=h-u;if(!r["K"](c)&&r["K"](l)&&c>=0){var p=this.getIntervalOnlyOffset(n,e);i=u+p}else if(!r["K"](l)&&r["K"](c)&&l>=0){p=this.getDodgeOnlyOffset(n,e);i=u+p}else if(!r["K"](c)&&!r["K"](l)&&c>=0&&l>=0){p=this.getIntervalAndDodgeOffset(n,e);i=u+p}else{var d=f*o/n,g=s*d;p=.5*(f-n*d-(n-1)*g)+((e+1)*d+e*g)-.5*d-.5*f;i=(u+h)/2+p}return i},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,i=n.defaultSize,a=n.intervalPadding,o=n.xDimensionLegenth,s=n.groupNum,c=n.dodgeRatio,l=n.maxColumnWidth,u=n.minColumnWidth,h=n.columnWidthRatio,f=a/o,p=(1-(s-1)*f)/s*c/(t-1),d=((1-f*(s-1))/s-p*(t-1))/t;if(d=r["K"](h)?d:1/s/t*h,!r["K"](l)){var g=l/o;d=Math.min(d,g)}if(!r["K"](u)){var v=u/o;d=Math.max(d,v)}d=i?i/o:d,p=((1-(s-1)*f)/s-t*d)/(t-1);var y=((.5+e)*d+e*p+.5*f)*s-f/2;return y},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,i=n.defaultSize,a=n.dodgePadding,o=n.xDimensionLegenth,s=n.groupNum,c=n.marginRatio,l=n.maxColumnWidth,u=n.minColumnWidth,h=n.columnWidthRatio,f=a/o,p=1*c/(s-1),d=((1-p*(s-1))/s-f*(t-1))/t;if(d=h?1/s/t*h:d,!r["K"](l)){var g=l/o;d=Math.min(d,g)}if(!r["K"](u)){var v=u/o;d=Math.max(d,v)}d=i?i/o:d,p=(1-(d*t+f*(t-1))*s)/(s-1);var y=((.5+e)*d+e*f+.5*p)*s-p/2;return y},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this,i=n.intervalPadding,r=n.dodgePadding,a=n.xDimensionLegenth,o=n.groupNum,s=i/a,c=r/a,l=((1-s*(o-1))/o-c*(t-1))/t,u=((.5+e)*l+e*c+.5*s)*o-s/2;return u},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,i=n[t];return i||(i={},r["j"](e,(function(e,n){var a=r["yb"](e,t);a.length||a.push(0),r["j"](a,(function(t){i[t]||(i[t]=[]),i[t].push(n)}))})),n[t]=i),i},e}(o["a"]);e["a"]=s},"96de":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=null;function r(){if(!i){var t=document.createElement("canvas");t.width=1,t.height=1,i=t.getContext("2d")}return i}},9778:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("8937");function r(t,e,n){var r=e+"Style",a=null;return Object(i["j"])(n,(function(e,n){t[n]&&e[r]&&(a||(a={}),Object(i["db"])(a,e[r]))})),a}},"9c29":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("7326");function r(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return r(t)*r(e)?(t[0]*e[0]+t[1]*e[1])/(r(t)*r(e)):1}function o(t,e){return(t[0]*e[1]1&&(n*=Math.sqrt(v),r*=Math.sqrt(v));var y=n*n*(g*g)+r*r*(d*d),m=y?Math.sqrt((n*n*(r*r)-y)/y):1;c===l&&(m*=-1),isNaN(m)&&(m=0);var b=r?m*n*g/r:0,x=n?m*-r*d/n:0,O=(u+f)/2+Math.cos(s)*b-Math.sin(s)*x,j=(h+p)/2+Math.sin(s)*b+Math.cos(s)*x,w=[(d-b)/n,(g-x)/r],C=[(-1*d-b)/n,(-1*g-x)/r],M=o([1,0],w),S=o(w,C);return a(w,C)<=-1&&(S=Math.PI),a(w,C)>=1&&(S=0),0===l&&S>0&&(S-=2*Math.PI),1===l&&S<0&&(S+=2*Math.PI),{cx:O,cy:j,rx:Object(i["j"])(t,[f,p])?0:n,ry:Object(i["j"])(t,[f,p])?0:r,startAngle:M,endAngle:M+S,xRotation:s,arcFlag:c,sweepFlag:l}}},"9f27":function(t,e,n){"use strict";n.d(e,"c",(function(){return h})),n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return p}));var i=n("9ab4"),r=n("4799"),a=Math.sin,o=Math.cos,s=Math.atan2,c=Math.PI;function l(t,e,n,i,l,u,h){var f=e.stroke,p=e.lineWidth,d=n-l,g=i-u,v=s(g,d),y=new r["Path"]({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*o(c/6)+","+10*a(c/6)+" L0,0 L"+10*o(c/6)+",-"+10*a(c/6),stroke:f,lineWidth:p}});y.translate(l,u),y.rotateAtPoint(l,u,v),t.set(h?"startArrowShape":"endArrowShape",y)}function u(t,e,n,c,l,u,h){var f=e.startArrow,p=e.endArrow,d=e.stroke,g=e.lineWidth,v=h?f:p,y=v.d,m=v.fill,b=v.stroke,x=v.lineWidth,O=Object(i["f"])(v,["d","fill","stroke","lineWidth"]),j=n-l,w=c-u,C=s(w,j);y&&(l-=o(C)*y,u-=a(C)*y);var M=new r["Path"]({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:Object(i["a"])(Object(i["a"])({},O),{stroke:b||d,lineWidth:x||g,fill:m})});M.translate(l,u),M.rotateAtPoint(l,u,C),t.set(h?"startArrowShape":"endArrowShape",M)}function h(t,e,n,i,r){var c=s(i-e,n-t);return{dx:o(c)*r,dy:a(c)*r}}function f(t,e,n,i,r,a){"object"===typeof e.startArrow?u(t,e,n,i,r,a,!0):e.startArrow?l(t,e,n,i,r,a,!0):t.set("startArrowShape",null)}function p(t,e,n,i,r,a){"object"===typeof e.endArrow?u(t,e,n,i,r,a,!1):e.endArrow?l(t,e,n,i,r,a,!1):t.set("startArrowShape",null)}},"9fe7":function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return r})),n.d(e,"clone",(function(){return a})),n.d(e,"length",(function(){return o})),n.d(e,"fromValues",(function(){return s})),n.d(e,"copy",(function(){return c})),n.d(e,"set",(function(){return l})),n.d(e,"add",(function(){return u})),n.d(e,"subtract",(function(){return h})),n.d(e,"multiply",(function(){return f})),n.d(e,"divide",(function(){return p})),n.d(e,"ceil",(function(){return d})),n.d(e,"floor",(function(){return g})),n.d(e,"min",(function(){return v})),n.d(e,"max",(function(){return y})),n.d(e,"round",(function(){return m})),n.d(e,"scale",(function(){return b})),n.d(e,"scaleAndAdd",(function(){return x})),n.d(e,"distance",(function(){return O})),n.d(e,"squaredDistance",(function(){return j})),n.d(e,"squaredLength",(function(){return w})),n.d(e,"negate",(function(){return C})),n.d(e,"inverse",(function(){return M})),n.d(e,"normalize",(function(){return S})),n.d(e,"dot",(function(){return A})),n.d(e,"cross",(function(){return k})),n.d(e,"lerp",(function(){return F})),n.d(e,"hermite",(function(){return E})),n.d(e,"bezier",(function(){return I})),n.d(e,"random",(function(){return T})),n.d(e,"transformMat4",(function(){return P})),n.d(e,"transformMat3",(function(){return B})),n.d(e,"transformQuat",(function(){return L})),n.d(e,"rotateX",(function(){return D})),n.d(e,"rotateY",(function(){return R})),n.d(e,"rotateZ",(function(){return z})),n.d(e,"angle",(function(){return _})),n.d(e,"zero",(function(){return N})),n.d(e,"str",(function(){return Y})),n.d(e,"exactEquals",(function(){return G})),n.d(e,"equals",(function(){return V})),n.d(e,"sub",(function(){return W})),n.d(e,"mul",(function(){return X})),n.d(e,"div",(function(){return H})),n.d(e,"dist",(function(){return q})),n.d(e,"sqrDist",(function(){return U})),n.d(e,"len",(function(){return K})),n.d(e,"sqrLen",(function(){return Q})),n.d(e,"forEach",(function(){return Z}));var i=n("c94d");function r(){var t=new i["a"](3);return i["a"]!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function a(t){var e=new i["a"](3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(t){var e=t[0],n=t[1],i=t[2];return Math.hypot(e,n,i)}function s(t,e,n){var r=new i["a"](3);return r[0]=t,r[1]=e,r[2]=n,r}function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function l(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function p(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function d(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function g(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function v(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function y(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function m(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function b(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function x(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t}function O(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.hypot(n,i,r)}function j(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r}function w(t){var e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function M(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e){var n=e[0],i=e[1],r=e[2],a=n*n+i*i+r*r;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function k(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[0],s=n[1],c=n[2];return t[0]=r*c-a*s,t[1]=a*o-i*c,t[2]=i*s-r*o,t}function F(t,e,n,i){var r=e[0],a=e[1],o=e[2];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t[2]=o+i*(n[2]-o),t}function E(t,e,n,i,r,a){var o=a*a,s=o*(2*a-3)+1,c=o*(a-2)+a,l=o*(a-1),u=o*(3-2*a);return t[0]=e[0]*s+n[0]*c+i[0]*l+r[0]*u,t[1]=e[1]*s+n[1]*c+i[1]*l+r[1]*u,t[2]=e[2]*s+n[2]*c+i[2]*l+r[2]*u,t}function I(t,e,n,i,r,a){var o=1-a,s=o*o,c=a*a,l=s*o,u=3*a*s,h=3*c*o,f=c*a;return t[0]=e[0]*l+n[0]*u+i[0]*h+r[0]*f,t[1]=e[1]*l+n[1]*u+i[1]*h+r[1]*f,t[2]=e[2]*l+n[2]*u+i[2]*h+r[2]*f,t}function T(t,e){e=e||1;var n=2*i["c"]()*Math.PI,r=2*i["c"]()-1,a=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=r*e,t}function P(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[3]*i+n[7]*r+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*i+n[4]*r+n[8]*a+n[12])/o,t[1]=(n[1]*i+n[5]*r+n[9]*a+n[13])/o,t[2]=(n[2]*i+n[6]*r+n[10]*a+n[14])/o,t}function B(t,e,n){var i=e[0],r=e[1],a=e[2];return t[0]=i*n[0]+r*n[3]+a*n[6],t[1]=i*n[1]+r*n[4]+a*n[7],t[2]=i*n[2]+r*n[5]+a*n[8],t}function L(t,e,n){var i=n[0],r=n[1],a=n[2],o=n[3],s=e[0],c=e[1],l=e[2],u=r*l-a*c,h=a*s-i*l,f=i*c-r*s,p=r*f-a*h,d=a*u-i*f,g=i*h-r*u,v=2*o;return u*=v,h*=v,f*=v,p*=2,d*=2,g*=2,t[0]=s+u+p,t[1]=c+h+d,t[2]=l+f+g,t}function D(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[0],a[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),a[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function R(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),a[1]=r[1],a[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function z(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),a[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),a[2]=r[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function _(t,e){var n=t[0],i=t[1],r=t[2],a=e[0],o=e[1],s=e[2],c=Math.sqrt(n*n+i*i+r*r),l=Math.sqrt(a*a+o*o+s*s),u=c*l,h=u&&A(t,e)/u;return Math.acos(Math.min(Math.max(h,-1),1))}function N(t){return t[0]=0,t[1]=0,t[2]=0,t}function Y(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function G(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function V(t,e){var n=t[0],r=t[1],a=t[2],o=e[0],s=e[1],c=e[2];return Math.abs(n-o)<=i["b"]*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=i["b"]*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-c)<=i["b"]*Math.max(1,Math.abs(a),Math.abs(c))}var W=h,X=f,H=p,q=O,U=j,K=o,Q=w,Z=function(){var t=r();return function(e,n,i,r,a,o){var s,c;for(n||(n=3),i||(i=0),c=r?Math.min(r*n+i,e.length):e.length,s=i;s=g.length)){var n=Math.max(e-a,0),i=e,r=Math.min(e+a,g.length-1),o=n-(e-a),c=e+a-r,l=m[-a-1+o]||0,u=m[-a-1+c]||0,h=b/(b-l-u);o>0&&(O+=h*(o-1)*x);var f=Math.max(0,e-a+1);s.inside(0,g.length-1,f)&&(g[f].y+=1*h*x),s.inside(0,g.length-1,i+1)&&(g[i+1].y-=2*h*x),s.inside(0,g.length-1,r+1)&&(g[r+1].y+=1*h*x)}}));var j=O,w=0,C=0;return g.forEach((function(t){w+=t.y,j+=w,t.y=j,C+=j})),C>0&&g.forEach((function(t){t.y/=C})),g},t.exports.getExpectedValueFromPdf=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){e+=t.x*t.y})),e}},t.exports.getXWithLeftTailArea=function(t,e){if(t&&0!==t.length){for(var n=0,i=0,r=0;r=e)break;return t[i].x}},t.exports.getPerplexity=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){var n=Math.log(t.y);isFinite(n)&&(e+=t.y*n)})),e=-e/a,Math.pow(2,e)}}},af40:function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return p}));var i=n("7326"),r=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function c(t,e){var n=t.match(s);Object(i["c"])(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function l(t,e,n){var i,a,o=r.exec(n),s=parseFloat(o[1])%360*(Math.PI/180),l=o[2],u=e.getBBox();s>=0&&s<.5*Math.PI?(i={x:u.minX,y:u.minY},a={x:u.maxX,y:u.maxY}):.5*Math.PI<=s&&s=c.minX&&e<=c.maxX&&n>=c.minY&&n<=c.maxY}function c(t,e,n){if(!s(t,e,n))return null;for(var i=null,r=t.getChildren(),a=r.length,l=a-1;l>=0;l--){var u=r[l];if(u.isGroup())i=c(u,e,n);else if(s(u,e,n)){var h=u,f=o(u,e,n),p=f[0],d=f[1];h.isInShape(p,d)&&(i=u)}if(i)break}return i}var l=n("4799"),u=n("c2ad"),h=n("7326"),f=n("f5e5"),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["renderer"]="canvas",e["autoDraw"]=!0,e["localRefresh"]=!0,e["refreshElements"]=[],e["clipView"]=!0,e["quickHit"]=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return l},e.prototype.getGroupBase=function(){return u["a"]},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||Object(h["d"])();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var i=this.get("context"),r=this.get("el"),a=this.getPixelRatio();r.width=a*e,r.height=a*n,a>1&&i.scale(a,a)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){var i;return i=this.get("quickHit")?c(this,e,n):t.prototype.getShape.call(this,e,n,null),i},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();if(e.length&&e[0]===this)t=n;else if(t=Object(f["f"])(e),t){t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1;var i=this.get("clipView");i&&(t=Object(f["g"])(t,n))}return t},e.prototype.refreshElement=function(t){var e=this.get("refreshElements");e.push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(Object(h["a"])(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),Object(f["a"])(t,this),Object(f["d"])(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),i=this._getRefreshRegion();i?(t.clearRect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),t.save(),t.beginPath(),t.rect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),t.clip(),Object(f["a"])(t,this),Object(f["b"])(this,n,i),Object(f["d"])(t,n,i),t.restore()):e.length&&Object(f["c"])(e),Object(h["c"])(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=Object(h["n"])((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)})),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(r["AbstractCanvas"]);e["a"]=p},b2cb:function(t,e,n){"use strict";n.d(e,"j",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"g",(function(){return o})),n.d(e,"b",(function(){return s}));var i=n("8937");function r(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}n.d(e,"e",(function(){return i["K"]})),n.d(e,"d",(function(){return i["I"]})),n.d(e,"h",(function(){return i["Q"]})),n.d(e,"f",(function(){return i["O"]})),n.d(e,"i",(function(){return i["db"]})),n.d(e,"a",(function(){return i["j"]})),n.d(e,"k",(function(){return i["wb"]}));var a="undefined"!==typeof window&&"undefined"!==typeof window.document;function o(t,e){if(t.isCanvas())return!0;var n=e.getParent(),i=!1;while(n){if(n===t){i=!0;break}n=n.getParent()}return i}function s(t){return t.cfg.visible&&t.cfg.capture}},b5d5:function(t,e){},b680:function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),a=n("e330"),o=n("5926"),s=n("408a"),c=n("1148"),l=n("d039"),u=r.RangeError,h=r.String,f=Math.floor,p=a(c),d=a("".slice),g=a(1..toFixed),v=function(t,e,n){return 0===e?n:e%2===1?v(t,e-1,n*t):v(t*t,e/2,n)},y=function(t){var e=0,n=t;while(n>=4096)e+=12,n/=4096;while(n>=2)e+=1,n/=2;return e},m=function(t,e,n){var i=-1,r=n;while(++i<6)r+=e*t[i],t[i]=r%1e7,r=f(r/1e7)},b=function(t,e){var n=6,i=0;while(--n>=0)i+=t[n],t[n]=f(i/e),i=i%e*1e7},x=function(t){var e=6,n="";while(--e>=0)if(""!==n||0===e||0!==t[e]){var i=h(t[e]);n=""===n?i:n+p("0",7-i.length)+i}return n},O=l((function(){return"0.000"!==g(8e-5,3)||"1"!==g(.9,0)||"1.25"!==g(1.255,2)||"1000000000000000128"!==g(0xde0b6b3a7640080,0)}))||!l((function(){g({})}));i({target:"Number",proto:!0,forced:O},{toFixed:function(t){var e,n,i,r,a=s(this),c=o(t),l=[0,0,0,0,0,0],f="",g="0";if(c<0||c>20)throw u("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return h(a);if(a<0&&(f="-",a=-a),a>1e-21)if(e=y(a*v(2,69,1))-69,n=e<0?a*v(2,-e,1):a/v(2,e,1),n*=4503599627370496,e=52-e,e>0){m(l,0,n),i=c;while(i>=7)m(l,1e7,0),i-=7;m(l,v(10,i,1),0),i=e-1;while(i>=23)b(l,1<<23),i-=23;b(l,1<0?(r=g.length,g=f+(r<=c?"0."+p("0",c-r)+g:d(g,0,r-c)+"."+d(g,r-c))):g=f+g,g}})},b6fb:function(t,e,n){"use strict";n.r(e),n.d(e,"catmullRomToBezier",(function(){return c})),n.d(e,"fillPath",(function(){return P})),n.d(e,"fillPathByDiff",(function(){return R})),n.d(e,"formatPath",(function(){return N})),n.d(e,"intersection",(function(){return F})),n.d(e,"parsePathArray",(function(){return v})),n.d(e,"parsePathString",(function(){return s})),n.d(e,"pathToAbsolute",(function(){return u})),n.d(e,"pathToCurve",(function(){return d})),n.d(e,"rectPath",(function(){return j}));var i=n("8937"),r="\t\n\v\f\r   ᠎              \u2028\u2029",a=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig"),s=function(t){if(!t)return null;if(Object(i["C"])(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(a,(function(i,r,a){var s=[],c=r.toLowerCase();if(a.replace(o,(function(t,e){e&&s.push(+e)})),"m"===c&&s.length>2&&(n.push([r].concat(s.splice(0,2))),c="l",r="m"===r?"l":"L"),"o"===c&&1===s.length&&n.push([r,s[0]]),"r"===c)n.push([r].concat(s));else while(s.length>=e[c])if(n.push([r].concat(s.splice(0,e[c]))),!e[c])break;return t})),n},c=function(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var a=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4===i?a[3]={x:+t[0],y:+t[1]}:r-2===i&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[r-2],y:+t[r-1]}:r-4===i?a[3]=a[2]:i||(a[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},l=function(t,e,n,i,r){var a=[];if(null===r&&null===i&&(i=n),t=+t,e=+e,n=+n,i=+i,null!==r){var o=Math.PI/180,s=t+n*Math.cos(-i*o),c=t+n*Math.cos(-r*o),l=e+n*Math.sin(-i*o),u=e+n*Math.sin(-r*o);a=[["M",s,l],["A",n,n,0,+(r-i>180),0,c,u]]}else a=[["M",t,e],["m",0,-i],["a",n,i,0,1,1,0,2*i],["a",n,i,0,1,1,0,-2*i],["z"]];return a},u=function(t){if(t=s(t),!t||!t.length)return[["M",0,0]];var e,n,i=[],r=0,a=0,o=0,u=0,h=0;"M"===t[0][0]&&(r=+t[0][1],a=+t[0][2],o=r,u=a,h++,i[0]=["M",r,a]);for(var f=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,d=void 0,g=h,v=t.length;g1&&(j=Math.sqrt(j),n*=j,i*=j);var w=n*n,C=i*i,M=(a===o?-1:1)*Math.sqrt(Math.abs((w*C-w*O*O-C*x*x)/(w*O*O+C*x*x)));d=M*n*O/i+(t+s)/2,g=M*-i*x/n+(e+c)/2,h=Math.asin(((e-g)/i).toFixed(9)),f=Math.asin(((c-g)/i).toFixed(9)),h=tf&&(h-=2*Math.PI),!o&&f>h&&(f-=2*Math.PI)}var S=f-h;if(Math.abs(S)>v){var A=f,k=s,F=c;f=h+v*(o&&f>h?1:-1),s=d+n*Math.cos(f),c=g+i*Math.sin(f),m=p(s,c,n,i,r,0,o,k,F,[f,A,d,g])}S=f-h;var E=Math.cos(h),I=Math.sin(h),T=Math.cos(f),P=Math.sin(f),B=Math.tan(S/4),L=4/3*n*B,D=4/3*i*B,R=[t,e],z=[t+L*I,e-D*E],_=[s+L*P,c-D*T],N=[s,c];if(z[0]=2*R[0]-z[0],z[1]=2*R[1]-z[1],l)return[z,_,N].concat(m);m=[z,_,N].concat(m).join().split(",");for(var Y=[],G=0,V=m.length;G7){t[e].shift();var a=t[e];while(a.length)s[e]="A",r&&(c[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(i.length,r&&r.length||0)}},y=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(i.length,r&&r.length||0))};n=Math.max(i.length,r&&r.length||0);for(var m=0;m1?1:c<0?0:c;for(var l=c/2,u=12,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,d=0;d0&&h<1&&f.push(h)}else{var g=l*l-4*u*c,v=Math.sqrt(g);if(!(g<0)){var y=(-l+v)/(2*c);y>0&&y<1&&f.push(y);var m=(-l-v)/(2*c);m>0&&m<1&&f.push(m)}}var b,x=f.length,O=x;while(x--)h=f[x],b=1-h,p[0][x]=b*b*b*t+3*b*b*h*n+3*b*h*h*r+h*h*h*o,p[1][x]=b*b*b*e+3*b*b*h*i+3*b*h*h*a+h*h*h*s;return p[0][O]=t,p[1][O]=e,p[0][O+1]=o,p[1][O+1]=s,p[0].length=p[1].length=O+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},x=function(t,e,n,i,r,a,o,s){if(!(Math.max(t,n)Math.max(r,o)||Math.max(e,i)Math.max(a,s))){var c=(t*i-e*n)*(r-o)-(t-n)*(r*s-a*o),l=(t*i-e*n)*(a-s)-(e-i)*(r*s-a*o),u=(t-n)*(a-s)-(e-i)*(r-o);if(u){var h=c/u,f=l/u,p=+h.toFixed(2),d=+f.toFixed(2);if(!(p<+Math.min(t,n).toFixed(2)||p>+Math.max(t,n).toFixed(2)||p<+Math.min(r,o).toFixed(2)||p>+Math.max(r,o).toFixed(2)||d<+Math.min(e,i).toFixed(2)||d>+Math.max(e,i).toFixed(2)||d<+Math.min(a,s).toFixed(2)||d>+Math.max(a,s).toFixed(2)))return{x:h,y:f}}}},O=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},j=function(t,e,n,i,r){if(r)return[["M",+t+ +r,e],["l",n-2*r,0],["a",r,r,0,0,1,r,r],["l",0,i-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-n,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-i],["a",r,r,0,0,1,r,-r],["z"]];var a=[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]];return a.parsePathArray=v,a},w=function(t,e,n,i){return null===t&&(t=e=n=i=0),null===e&&(e=t.y,n=t.width,i=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:i,h:i,x2:t+n,y2:e+i,cx:t+n/2,cy:e+i/2,r1:Math.min(n,i)/2,r2:Math.max(n,i)/2,r0:Math.sqrt(n*n+i*i)/2,path:j(t,e,n,i),vb:[t,e,n,i].join(" ")}},C=function(t,e){return t=w(t),e=w(e),O(e,t.x,t.y)||O(e,t.x2,t.y)||O(e,t.x,t.y2)||O(e,t.x2,t.y2)||O(t,e.x,e.y)||O(t,e.x2,e.y)||O(t,e.x,e.y2)||O(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)},M=function(t,e,n,r,a,o,s,c){Object(i["C"])(t)||(t=[t,e,n,r,a,o,s,c]);var l=b.apply(null,t);return w(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},S=function(t,e,n,i,r,a,o,s,c){var l=1-c,u=Math.pow(l,3),h=Math.pow(l,2),f=c*c,p=f*c,d=u*t+3*h*c*n+3*l*c*c*r+p*o,g=u*e+3*h*c*i+3*l*c*c*a+p*s,v=t+2*c*(n-t)+f*(r-2*n+t),y=e+2*c*(i-e)+f*(a-2*i+e),m=n+2*c*(r-n)+f*(o-2*r+n),b=i+2*c*(a-i)+f*(s-2*a+i),x=l*t+c*n,O=l*e+c*i,j=l*r+c*o,w=l*a+c*s,C=90-180*Math.atan2(v-m,y-b)/Math.PI;return{x:d,y:g,m:{x:v,y:y},n:{x:m,y:b},start:{x:x,y:O},end:{x:j,y:w},alpha:C}},A=function(t,e,n){var i=M(t),r=M(e);if(!C(i,r))return n?0:[];for(var a=m.apply(0,t),o=m.apply(0,e),s=~~(a/8),c=~~(o/8),l=[],u=[],h={},f=n?0:[],p=0;p=0&&k<=1&&F>=0&&F<=1&&(n?f+=1:f.push({x:A.x,y:A.y,t1:k,t2:F}))}}return f},k=function(t,e,n){var i,r,a,o,s,c,l,u,h,f;t=d(t),e=d(e);for(var p=n?0:[],g=0,v=t.length;g=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1]),e}));return u}var T=function(t,e,n){if(1===n)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(I(t,e,n));else{var r=[].concat(t);"M"===r[0]&&(r[0]="L");for(var a=0;a<=n-1;a++)i.push(r)}return i},P=function(t,e){if(1===t.length)return t;var n=t.length-1,i=e.length-1,r=n/i,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o=0;c--)o=a[c].index,"add"===a[c].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}i=t.length;var h=r-i;if(i0)){t[i]=e[i];break}n=z(n,t[i-1],1)}t[i]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[i]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(i>0)){t[i]=e[i];break}n=z(n,t[i-1],2)}t[i]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=z(n,t[i-1],1)}t[i]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[i]=e[i]}return t}},b825:function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return f})),n.d(e,"Text",(function(){return d})),n.d(e,"Arc",(function(){return v})),n.d(e,"Region",(function(){return m})),n.d(e,"Image",(function(){return x})),n.d(e,"DataMarker",(function(){return j})),n.d(e,"DataRegion",(function(){return C})),n.d(e,"RegionFilter",(function(){return S})),n.d(e,"Shape",(function(){return k})),n.d(e,"Html",(function(){return T}));var i=n("9ab4"),r=n("8937"),a=n("31e6"),o=n("060b"),s=n("8ea8"),c=n("e546");function l(t,e){var n=e.x,a=e.y,l=e.content,u=e.style,h=e.id,f=e.name,p=e.rotate,d=e.maxLength,g=e.autoEllipsis,v=e.isVertical,y=e.ellipsisPosition,m=e.background,b=t.addGroup({id:h+"-group",name:f+"-group",attrs:{x:n,y:a}}),x=b.addShape({type:"text",id:h,name:f,attrs:Object(i["a"])({x:0,y:0,text:l},u)}),O=Object(c["c"])(Object(r["s"])(m,"padding",0));if(d&&g){var j=d-(O[1]+O[3]);Object(o["a"])(!v,x,j,y)}if(m){var w=Object(r["s"])(m,"style",{}),C=x.getCanvasBBox(),M=C.minX,S=C.minY,A=C.width,k=C.height,F=b.addShape("rect",{id:h+"-bg",name:h+"-bg",attrs:Object(i["a"])({x:M-O[3],y:S-O[0],width:A+O[1]+O[3],height:k+O[0]+O[2]},w)});F.toBack()}Object(s["c"])(b,n,a),Object(s["b"])(b,p,n,a)}var u=n("2f5e"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:u["a"].textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:u["a"].fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:u["a"].lineColor,lineWidth:1}}}})},e.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},e.prototype.renderLine=function(t){var e=this.get("start"),n=this.get("end"),r=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:Object(i["a"])({x1:e.x,y1:e.y,x2:n.x,y2:n.y},r)})},e.prototype.getLabelPoint=function(t,e,n){var i;return i="start"===n?0:"center"===n?.5:Object(r["Q"])(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:Object(r["M"])(n)?n:1,(i>1||i<0)&&(i=1),{x:Object(c["g"])(t.x,e.x,i),y:Object(c["g"])(t.y,e.y,i)}},e.prototype.renderLabel=function(t){var e=this.get("text"),n=this.get("start"),i=this.get("end"),r=e.position,a=e.content,o=e.style,s=e.offsetX,c=e.offsetY,u=e.autoRotate,h=e.maxLength,f=e.autoEllipsis,p=e.ellipsisPosition,d=e.background,g=e.isVertical,v=void 0!==g&&g,y=this.getLabelPoint(n,i,r),m=y.x+s,b=y.y+c,x={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:b,content:a,style:o,maxLength:h,autoEllipsis:f,ellipsisPosition:p,background:d,isVertical:v};if(u){var O=[i.x-n.x,i.y-n.y];x.rotate=Math.atan2(O[1],O[0])}l(t,x)},e}(a["a"]),f=h,p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:u["a"].textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:u["a"].fontFamily}}})},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.renderInner=function(t){var e=this.getLocation(),n=e.x,i=e.y,r=this.get("content"),a=this.get("style"),o=this.getElementId("text"),s=this.get("name")+"-text",c=this.get("maxLength"),u=this.get("autoEllipsis"),h=this.get("isVertical"),f=this.get("ellipsisPosition"),p=this.get("background"),d=this.get("rotate"),g={id:o,name:s,x:n,y:i,content:r,style:a,maxLength:c,autoEllipsis:u,isVertical:h,ellipsisPosition:f,background:p,rotate:d};l(t,g)},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var e=this.getLocation(),n=e.x,i=e.y,r=this.get("rotate");Object(s["c"])(t,n,i),Object(s["b"])(t,r,n,i)}},e}(a["a"]),d=p,g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),e=t.center,n=t.radius,i=t.startAngle,r=t.endAngle,a=Object(c["e"])(e,n,i),o=Object(c["e"])(e,n,r),s=r-i>Math.PI?1:0,l=[["M",a.x,a.y]];if(r-i===2*Math.PI){var u=Object(c["e"])(e,n,i+Math.PI);l.push(["A",n,n,0,s,1,u.x,u.y]),l.push(["A",n,n,0,s,1,o.x,o.y])}else l.push(["A",n,n,0,s,1,o.x,o.y]);return l},e.prototype.renderArc=function(t){var e=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:Object(i["a"])({path:e},n)})},e}(a["a"]),v=g,y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:u["a"].regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var e=this.get("start"),n=this.get("end"),r=this.get("style"),a=Object(c["k"])({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:Object(i["a"])({x:a.x,y:a.y,width:a.width,height:a.height},r)})},e}(a["a"]),m=y,b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),r=Object(c["k"])({start:t,end:e}),a=this.get("src");return Object(i["a"])({x:r.x,y:r.y,img:a,width:r.width,height:r.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(a["a"]),x=b,O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:u["a"].lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:u["a"].textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:u["a"].fontFamily}}}})},e.prototype.renderInner=function(t){Object(r["s"])(this.get("line"),"display")&&this.renderLine(t),Object(r["s"])(this.get("text"),"display")&&this.renderText(t),Object(r["s"])(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},e.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},e.prototype.renderText=function(t){var e=this.getShapeAttrs().text,n=e.x,r=e.y,a=e.text,o=Object(i["f"])(e,["x","y","text"]),s=this.get("text"),c=s.background,u=s.maxLength,h=s.autoEllipsis,f=s.isVertival,p=s.ellipsisPosition,d={x:n,y:r,id:this.getElementId("text"),name:"annotation-text",content:a,style:o,background:c,maxLength:u,autoEllipsis:h,isVertival:f,ellipsisPosition:p};l(t,d)},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),i=this.get("y"),a=Object(r["s"])(this.get("line"),"length",0),o=this.get("coordinateBBox"),c=t.getBBox(),l=c.minX,u=c.maxX,h=c.minY,f=c.maxY,p=t.findById(this.getElementId("text-group")),d=t.findById(this.getElementId("text")),g=t.findById(this.getElementId("line"));if(o&&p){var v=p.attr("x"),y=p.attr("y"),m=d.getCanvasBBox(),b=m.width,x=m.height,O=0,j=0;if(n+l<=o.minX)if("leftward"===e)O=1;else{var w=o.minX-(n+l);v=p.attr("x")+w}else if(n+u>=o.maxX)if("rightward"===e)O=-1;else{w=n+u-o.maxX;v=p.attr("x")-w}if(O&&(g&&g.attr("path",[["M",0,0],["L",a*O,0]]),v=(a+2+b)*O),i+h<=o.minY)if("upward"===e)j=1;else{w=o.minY-(i+h);y=p.attr("y")+w}else if(i+f>=o.maxY)if("downward"===e)j=-1;else{w=i+f-o.maxY;y=p.attr("y")-w}j&&(g&&g.attr("path",[["M",0,0],["L",0,a*j]]),y=(a+2+x)*j),v===p.attr("x")&&y===p.attr("y")||Object(s["c"])(p,v,y)}},e.prototype.getShapeAttrs=function(){var t=Object(r["s"])(this.get("line"),"display"),e=Object(r["s"])(this.get("point"),"style",{}),n=Object(r["s"])(this.get("line"),"style",{}),a=Object(r["s"])(this.get("text"),"style",{}),o=this.get("direction"),s=t?Object(r["s"])(this.get("line"),"length",0):0,c=0,l=0,u="top",h="start";switch(o){case"upward":l=-1,u="bottom";break;case"downward":l=1,u="top";break;case"leftward":c=-1,h="end";break;case"rightward":c=1,h="start";break}return{point:Object(i["a"])({x:0,y:0},e),line:Object(i["a"])({path:[["M",0,0],["L",s*c,s*l]]},n),text:Object(i["a"])({x:(s+2)*c,y:(s+2)*l,text:Object(r["s"])(this.get("text"),"content",""),textBaseline:u,textAlign:h},a)}},e}(a["a"]),j=O,w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:u["a"].regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:u["a"].textColor,fontFamily:u["a"].fontFamily}}}})},e.prototype.renderInner=function(t){var e=Object(r["s"])(this.get("region"),"style",{}),n=(Object(r["s"])(this.get("text"),"style",{}),this.get("lineLength")||0),a=this.get("points");if(a.length){var o=Object(c["j"])(a),s=[];s.push(["M",a[0].x,o.minY-n]),a.forEach((function(t){s.push(["L",t.x,t.y])})),s.push(["L",a[a.length-1].x,a[a.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:Object(i["a"])({path:s},e)});var u=Object(i["a"])({id:this.getElementId("text"),name:"annotation-text",x:(o.minX+o.maxX)/2,y:o.minY-n},this.get("text"));l(t,u)}},e}(a["a"]),C=w,M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,n=this.get("start"),i=this.get("end"),a=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});Object(r["j"])(this.get("shapes"),(function(t,n){var i=t.get("type"),o=Object(r["e"])(t.attr());e.adjustShapeAttrs(o),e.addShape(a,{id:e.getElementId("shape-"+i+"-"+n),capture:!1,type:i,attrs:o})}));var o=Object(c["k"])({start:n,end:i});a.setClip({type:"rect",attrs:{x:o.minX,y:o.minY,width:o.width,height:o.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(a["a"]),S=M,A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"annotation",type:"shape",draw:r["fb"]})},e.prototype.renderInner=function(t){var e=this.get("render");Object(r["I"])(e)&&e(t)},e}(a["a"]),k=A,F=n("7c8a"),E=n("75ed"),I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
    ',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");Object(c["a"])(t);var n=Object(r["I"])(e)?e(t):e;if(Object(r["F"])(n))t.appendChild(n);else if(Object(r["Q"])(n)||Object(r["M"])(n)){var i=Object(F["b"])(""+n);i&&t.appendChild(i)}this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,i=e.y,r=this.get("alignX"),a=this.get("alignY"),o=this.get("offsetX"),s=this.get("offsetY"),c=Object(F["d"])(t),l=Object(F["c"])(t),u={x:n,y:i};"middle"===r?u.x-=Math.round(c/2):"right"===r&&(u.x-=Math.round(c)),"middle"===a?u.y-=Math.round(l/2):"bottom"===a&&(u.y-=Math.round(l)),o&&(u.x+=o),s&&(u.y+=s),Object(F["e"])(t,{position:"absolute",left:u.x+"px",top:u.y+"px",zIndex:this.get("zIndex")})},e}(E["a"]),T=I},bb31:function(t,e){},bb7a:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ver=e.clear=e.bind=void 0;var i=n("3f84"),r=function(t,e){var n=(0,i.getSensor)(t);return n.bind(e),function(){n.unbind(e)}};e.bind=r;var a=function(t){var e=(0,i.getSensor)(t);(0,i.removeSensor)(e)};e.clear=a;var o="1.0.1";e.ver=o},bbad:function(t,e,n){"use strict";n.r(e),n.d(e,"CONTAINER_CLASS",(function(){return i})),n.d(e,"TITLE_CLASS",(function(){return r})),n.d(e,"LIST_CLASS",(function(){return a})),n.d(e,"LIST_ITEM_CLASS",(function(){return o})),n.d(e,"MARKER_CLASS",(function(){return s})),n.d(e,"VALUE_CLASS",(function(){return c})),n.d(e,"NAME_CLASS",(function(){return l})),n.d(e,"CROSSHAIR_X",(function(){return u})),n.d(e,"CROSSHAIR_Y",(function(){return h}));var i="g2-tooltip",r="g2-tooltip-title",a="g2-tooltip-list",o="g2-tooltip-list-item",s="g2-tooltip-marker",c="g2-tooltip-value",l="g2-tooltip-name",u="g2-tooltip-crosshair-x",h="g2-tooltip-crosshair-y"},bc88:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return c}));var i=n("b2cb"),r=n("96de");function a(t,e,n){var r=1;if(Object(i["h"])(t)&&(r=t.split("\n").length),r>1){var a=o(e,n);return e*r+a*(r-1)}return e}function o(t,e){return e?e-t:.14*t}function s(t,e){var n=Object(r["a"])(),a=0;if(Object(i["e"])(t)||""===t)return a;if(n.save(),n.font=e,Object(i["h"])(t)&&t.includes("\n")){var o=t.split("\n");Object(i["a"])(o,(function(t){var e=n.measureText(t).width;a'})),n}function v(t,e){var n,i,r=f.exec(t),a=Object(h["eb"])(Object(h["sb"])(parseFloat(r[1])),2*Math.PI),o=r[2];a>=0&&a<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=a&&a';e.innerHTML=n},t}(),w=j,C=function(){function t(t,e){this.cfg={};var n=Object(c["b"])("marker"),i=Object(h["vb"])("marker_");n.setAttribute("id",i);var r=Object(c["b"])("path");r.setAttribute("stroke",t.stroke||"none"),r.setAttribute("fill",t.fill||"none"),n.appendChild(r),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=r,this.id=i;var a=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===a?this._setDefaultPath(e,r):(this.cfg=a,this._setMarker(t.lineWidth,r)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,i=this.cfg.path,r=this.cfg.d;Object(h["C"])(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),r&&n.setAttribute("refX",""+r/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}(),M=C,S=function(){function t(t){this.type="clip",this.cfg={};var e=Object(c["b"])("clipPath");this.el=e,this.id=Object(h["vb"])("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}(),A=S,k=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,F=function(){function t(t){this.cfg={};var e=Object(c["b"])("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=Object(c["b"])("image");e.appendChild(n);var i=Object(h["vb"])("pattern_");e.id=i,this.el=e,this.id=i,this.cfg=t;var r=k.exec(t),a=r[2];n.setAttribute("href",a);var o=new Image;function s(){e.setAttribute("width",""+o.width),e.setAttribute("height",""+o.height)}return a.match(/^data:/i)||(o.crossOrigin="Anonymous"),o.src=a,o.complete?s():(o.onload=s,o.src=o.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),E=F,I=function(){function t(t){var e=Object(c["b"])("defs"),n=Object(h["vb"])("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,i=null,r=0;r0){var p=e.getElementId("region-"+l),d=c%2===0;if(Object(r["Q"])(a))d&&e.drawAlternateRegion(p,t,o.points,s.points,a);else{var g=d?a[1]:a[0];e.drawAlternateRegion(p,t,o.points,s.points,g)}}o=s}))},e.prototype.drawAlternateRegion=function(t,e,n,i,r){var a=this.getAlternatePath(n,i);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:a,fill:r}})},e}(a["a"]),c=s;function l(t,e,n,i){var r=n-t,a=i-e;return Math.sqrt(r*r+a*a)}var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n=this.getLineType(),i=this.get("closed"),a=[];if(t.length)if("circle"===n){var o=this.get("center"),s=t[0],c=l(o.x,o.y,s.x,s.y),u=e?0:1;i?(a.push(["M",o.x,o.y-c]),a.push(["A",c,c,0,0,u,o.x,o.y+c]),a.push(["A",c,c,0,0,u,o.x,o.y-c]),a.push(["Z"])):Object(r["j"])(t,(function(t,e){0===e?a.push(["M",t.x,t.y]):a.push(["A",c,c,0,0,u,t.x,t.y])}))}else Object(r["j"])(t,(function(t,e){0===e?a.push(["M",t.x,t.y]):a.push(["L",t.x,t.y])})),i&&a.push(["Z"]);return a},e}(c),h=u,f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return Object(r["j"])(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(c),p=f},c94c:function(t,e,n){"use strict";var i=t.exports;t.exports.isNumber=function(t){return"number"===typeof t},t.exports.findMin=function(t){if(0===t.length)return 1/0;for(var e=t[0],n=1;nt.delay&&Object(r["j"])(e.toAttrs,(function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var b=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var i=n.getDefaultAttrs();return Object(r["db"])(i,e.attrs),n.attrs=i,n.initAttrs(i),n.initAnimate(),n}return Object(i["c"])(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n0?i=m(i,j):n.addAnimator(this),i.push(j),this.set("animations",i),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");Object(r["j"])(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return Object(r["j"])(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline"),e=t.getTime(),n=this.get("animations"),i=this.get("_pause").pauseTime;return Object(r["j"])(n,(function(t){t.startTime=t.startTime+(e-i),t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",n),this},e.prototype.emitDelegation=function(t,e){var n,i=this,a=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var s=function(t){var s=a[t],l=s.get("name");if(l){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&Object(o["g"])(s,n))return"break";Object(r["C"])(l)?Object(r["j"])(l,(function(t){i.emitDelegateEvent(s,t,e)})):c.emitDelegateEvent(s,l,e)}},c=this,l=0;l1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}Object(g["j"])(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}var b=m;n("20e7");var x="\t\n\v\f\r   ᠎              \u2028\u2029";new RegExp("([a-z])["+x+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+x+"]*,?["+x+"]*)+)","ig"),new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+x+"]*,?["+x+"]*","ig");Math.PI;function O(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function j(t,e){return O(t)*O(e)?(t[0]*e[0]+t[1]*e[1])/(O(t)*O(e)):1}function w(t,e){return(t[0]*e[1]1&&(n*=Math.sqrt(p),i*=Math.sqrt(p));var d=n*n*(f*f)+i*i*(h*h),v=d?Math.sqrt((n*n*(i*i)-d)/d):1;a===o&&(v*=-1),isNaN(v)&&(v=0);var y=i?v*n*f/i:0,m=n?v*-i*h/n:0,b=(s+l)/2+Math.cos(r)*y-Math.sin(r)*m,x=(c+u)/2+Math.sin(r)*y+Math.cos(r)*m,O=[(h-y)/n,(f-m)/i],M=[(-1*h-y)/n,(-1*f-m)/i],S=w([1,0],O),A=w(O,M);return j(O,M)<=-1&&(A=Math.PI),j(O,M)>=1&&(A=0),0===o&&A>0&&(A-=2*Math.PI),1===o&&A<0&&(A+=2*Math.PI),{cx:b,cy:x,rx:C(t,[l,u])?0:n,ry:C(t,[l,u])?0:i,startAngle:S,endAngle:S+A,xRotation:r,arcFlag:a,sweepFlag:o}}function S(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function A(t){t=b(t);for(var e=[],n=null,i=null,r=null,a=0,o=t.length,s=0;sMath.PI/2?Math.PI-l:l,u=u>Math.PI/2?Math.PI-u:u;var h={xExtra:Math.cos(c/2-l)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(u-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0};return h}var E=function(t){var e=t.attr(),n=e.path,i=e.stroke,r=i?e.lineWidth:0,a=t.get("segments")||A(n),o=k(a,r),s=o.x,c=o.y,l=o.width,h=o.height,f={minX:s,minY:c,maxX:s+l,maxY:c+h};return f=u(t,f),{x:f.minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}},I=function(t){var e=t.attr(),n=e.x1,i=e.y1,r=e.x2,a=e.y2,o=Math.min(n,r),s=Math.max(n,r),c=Math.min(i,a),l=Math.max(i,a),h={minX:o,maxX:s,minY:c,maxY:l};return h=u(t,h),{x:h.minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}},T=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.rx,a=e.ry;return{x:n-r,y:i-a,width:2*r,height:2*a}};r("rect",o),r("image",o),r("circle",s),r("marker",s),r("polyline",h),r("polygon",f),r("text",d),r("path",E),r("line",I),r("ellipse",T)},d53c:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAiVJREFUWEftWL9rFEEUft/dgq36L1jZiJUYhIDgMbPLNWKrEbwUVgmIFhpMEUkEQRFsLIzgj1Zsjp1ZLiAIYrASGyv/BbUV9u7JHONxmty9mc0dGNgt973ve998897uMKD/7EGIHmPMAoDzLrfZbL5ttVpfJVyv1zvZ7/cvujxmfpem6UcJ4+JBgoqi2GLm20MA0FFKPZfIi6K4xszbHnNfKXVHwgQLstbeJaINT3hVa/1SIrfWLhHRC5+3rrW+J2FGgrrd7rEkSdaJ6Ph+IGY+DeCUt/8DgG8SOTOfAHDOY74A+DwB870sy412u/1jJMgYcwvAA6nIHOM3tdYPR4KstW5/N+dYUKJe01pvTRK0ycw74wyNRuMyM3f8O9fgPakCgBYRDRsZwPZgMHg9jgFwgYjW/LupgvY07fiUMfNymqbD6Zn2GGM6AJ5NmrJ/mj5OUJ7nZ/2KKEmSN6HfobIsL/mm3smybHd8AQcSJLlRJX54BTHzIwDvq6w6BsPMiwBuhDR1DO+scqc29ayKxPBMFeRG9VMMW8XcM0S0HLJlS1rrVxWLBMOstVeI6M9POu47FFwlIvHwjj0RBZ13IszYN7V2SHKwdqh2SHJAitc9VDskOSDFY3roKREFXQxIRYX4AhFdDzl+HLBOJfie48cqET2uRDUDEIAVpdQTRzW8jsnz/Ii7ZgFwdAb8URTM/NNd22RZ9mskKIphzslBF1Zz1vAX/W/z6HM0CTwjiAAAAABJRU5ErkJggg=="},d7b4:function(t,e,n){"use strict";var i=n("b825");n.d(e,"Annotation",(function(){return i}));var r=n("7cfd");n.d(e,"Axis",(function(){return r}));var a=n("ff7f");n.d(e,"Crosshair",(function(){return a}));var o=n("c771");n.d(e,"Grid",(function(){return o}));var s=n("e5b1");n.d(e,"Legend",(function(){return s}));var c=n("0a1f");n.d(e,"Tooltip",(function(){return c}));n("3665"),n("31e6"),n("75ed");var l=n("7c50");n.d(e,"Slider",(function(){return l["a"]}));var u=n("deef");n.d(e,"Scrollbar",(function(){return u["a"]}));n("be4e"),n("bb31");var h=n("d7ff");n.d(e,"propagationDelegate",(function(){return h["a"]}));var f=n("bbad");n.d(e,"TOOLTIP_CSS_CONST",(function(){return f}))},d7ff:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("6855");function r(t,e,n){var r=new i["Event"](e,n);r.target=t,r.propagationPath.push(t),t.emitDelegation(e,r);var a=t.getParent();while(a)a.emitDelegation(e,r),r.propagationPath.push(a),a=a.getParent()}},db86:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SensorTabIndex=e.SensorClassName=e.SizeSensorId=void 0;var i="size-sensor-id";e.SizeSensorId=i;var r="size-sensor-object";e.SensorClassName=r;var a="-1";e.SensorTabIndex=a},dd40:function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},deef:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("9ab4"),r=n("7c8a"),a=n("8937"),o=n("31e6"),s={trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},c={default:s,hover:{thumbColor:"rgba(0,0,0,0.2)"}},l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=a["fb"],e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var i=t?Object(a["s"])(n.originalEvent,"touches.0.clientX"):n.clientX,r=t?Object(a["s"])(n.originalEvent,"touches.0.clientY"):n.clientY;e.startPos=e.cfg.isHorizontal?i:r,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),n=[];n=e.isMobile?[Object(r["a"])(t,"touchmove",e.onMouseMove),Object(r["a"])(t,"touchend",e.onMouseUp),Object(r["a"])(t,"touchcancel",e.onMouseUp)]:[Object(r["a"])(t,"mousemove",e.onMouseMove),Object(r["a"])(t,"mouseup",e.onMouseUp),Object(r["a"])(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){n.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var n=e.cfg,i=n.isHorizontal,r=n.thumbOffset;t.preventDefault();var o=e.isMobile?Object(a["s"])(t,"touches.0.clientX"):t.clientX,s=e.isMobile?Object(a["s"])(t,"touches.0.clientY"):t.clientY,c=i?o:s,l=c-e.startPos;e.startPos=c,e.updateThumbOffset(r+l)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,i=n.isHorizontal,r=n.x,a=n.y,o=n.thumbLen,s=e.getContainerDOM(),c=s.getBoundingClientRect(),l=t.clientX,u=t.clientY,h=i?l-c.left-r-o/2:u-c.top-a-o/2,f=e.validateRange(h);e.updateThumbOffset(f)},e.onThumbMouseOver=function(){var t=e.cfg.theme.hover.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e.onThumbMouseOut=function(){var t=e.cfg.theme.default.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e}return Object(i["c"])(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),i=Object(a["c"])(n,t,e);n===i||this.get("isInit")||this.setValue(i)},e.prototype.getRange=function(){var t=this.get("minLimit")||0,e=this.get("maxLimit")||1;return{min:t,max:e}},e.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*Object(a["c"])(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},e.prototype.getValue=function(){return Object(a["c"])(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:c})},e.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.renderTrackShape=function(t){var e=this.cfg,n=e.trackLen,i=e.theme,r=void 0===i?{default:{}}:i,o=Object(a["h"])({},c,r).default,s=o.lineCap,l=o.trackColor,u=o.size,h=Object(a["s"])(this.cfg,"size",u),f=this.get("isHorizontal")?{x1:0+h/2,y1:h/2,x2:n-h/2,y2:h/2,lineWidth:h,stroke:l,lineCap:s}:{x1:h/2,y1:0+h/2,x2:h/2,y2:n-h/2,lineWidth:h,stroke:l,lineCap:s};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:f})},e.prototype.renderThumbShape=function(t){var e=this.cfg,n=e.thumbOffset,i=e.thumbLen,r=e.theme,o=Object(a["h"])({},c,r).default,s=o.size,l=o.lineCap,u=o.thumbColor,h=Object(a["s"])(this.cfg,"size",s),f=this.get("isHorizontal")?{x1:n+h/2,y1:h/2,x2:n+i-h/2,y2:h/2,lineWidth:h,stroke:u,lineCap:l,cursor:"default"}:{x1:h/2,y1:n+h/2,x2:h/2,y2:n+i-h/2,lineWidth:h,stroke:u,lineCap:l,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:f})},e.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp);var e=t.findById(this.getElementId("track"));e.on("click",this.onTrackClick);var n=t.findById(this.getElementId("thumb"));n.on("mouseover",this.onThumbMouseOver),n.on("mouseout",this.onThumbMouseOut)},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e.prototype.validateRange=function(t){var e=this.cfg,n=e.thumbLen,i=e.trackLen,r=t;return t+n>i?r=i-n:t+n=0;i--){var r=t[i];"."===r?t.splice(i,1):".."===r?(t.splice(i,1),n++):n&&(t.splice(i,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function i(t){"string"!==typeof t&&(t+="");var e,n=0,i=-1,r=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!r){n=e+1;break}}else-1===i&&(r=!1,i=e+1);return-1===i?"":t.slice(n,i)}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],i=0;i=-1&&!i;a--){var o=a>=0?arguments[a]:t.cwd();if("string"!==typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(e=o+"/"+e,i="/"===o.charAt(0))}return e=n(r(e.split("/"),(function(t){return!!t})),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var i=e.isAbsolute(t),o="/"===a(t,-1);return t=n(r(t.split("/"),(function(t){return!!t})),!i).join("/"),t||i||(t="."),t&&o&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function i(t){for(var e=0;e=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var r=i(t.split("/")),a=i(n.split("/")),o=Math.min(r.length,a.length),s=o,c=0;c=1;--a)if(e=t.charCodeAt(a),47===e){if(!r){i=a;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"/":t.slice(0,i)},e.basename=function(t,e){var n=i(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,i=-1,r=!0,a=0,o=t.length-1;o>=0;--o){var s=t.charCodeAt(o);if(47!==s)-1===i&&(r=!1,i=o+1),46===s?-1===e?e=o:1!==a&&(a=1):-1!==e&&(a=-1);else if(!r){n=o+1;break}}return-1===e||-1===i||0===a||1===a&&e===i-1&&e===n+1?"":t.slice(e,i)};var a="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},e155:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAYAAABXuSs3AAAAAXNSR0IArs4c6QAABr1JREFUaEPtWX+MHGUZfp5v73pn2yu9nW1LrnftzUBRGjTWVIsFlSrldra01UTbkIpRNOLPxmhAwAhnjfIjigkI1fQPIRjFi8bY42buFGI1YATNFQk00nIzS61Nue7uXX96vdud18y2C5uyu/PtXP2DxO+/zbzv8zzfM+9+3/d+Q7xFB9+iutFQeN41/wnw7TqTI2Qwafub6sXKABKFDmsPgKt18AD5h2H7764X21B4zrVOEJivRwQkiPUL096TteLzTu9WUD2uiwWRSSPjd8YSXnCtuwW4TZsMeNqwvQ+cHz8wgMRH5lvPg7hCG0vku0bGvzOW8Nxg91IkWg+QfJsuYS3X8yO9WxE04TZkQk2J1fmx7GQs4WFSzjEfJPkVXeECjBpp770kgjCnXNvNug30G7b3nUackatKfqSrR0ptLzfjegDZvMj2d4fE+WFzC4S/0p04BJOJoGgtvP7gxKyEh8kFx3xAyK9qkQsmhfLnlO1vLgt3TRfgWgALtPI13A5xIh0vkztLu8E5+4GatX4SwO9BcQMEo6k27uO67FS1yPGBRfM5r+MdKiGrRLCBwLUA571pIppuawsv17pr/pjglytkAryiBPfzTPDLRn+iWi4fHuxKtbW030hguwC9r8cQO4y0d5fOm9FyvMr1l0VARdx1rF0eNM85K/1Q42vMKxKQayDqfaRYDB0VKCFOA5KlcDSQYE/2UHZ09c2YCTEPD3bNbVPtt4rCbQSmi9OyYslm/7ULKvzcCvOtRGvgdK5/dW/4++jvUh2qdcFnAdwE4p06hBAcEMijiTPyUOVNjQ+ZH2xRXJu0vXu0MHRrvBZYwbG2CXAviKW6ZOfFjUsgO4yM/zAJaRZDu1Rer+2RJfMmgrk7BbyxWbJa8QSGWuX0ZzoyR442g9eU8JNPmkumpuGSXNUMSVRs+Een4oeNvrF/RcVWnmsLzzuXLhAET5FYrQveTByBsVbFtR19Y+M6efrCXXMA4Cd0QMsxghOgFAHWPeHVWMefeeE575p1/ShG8WgJz7nmJwk+FgX2xnM5JUVZrdrV6aCIvxNYpJtL4Had1SVSeOEP1kVSxH4Ai3XJRXBfKuN98+z63/s1UP1INxeQU5zhyuQm72CjnEjhOaf3VlLdq0+Mk6UgWLF4Q/ZIuWIGu+YWWtrDiTezbN5v2N43YgsPd8TCGmsfAK327SyR/MCw/VuqSXOuFe6Md+tOnpDCtDq97OK+107Vy4noOZe/H0j8RYtQMAnKESnOXJvaeOjf1TnhikSW9oigF+RCnY2PChuTfd4TsYTnXOt2At+vlSyCA1TyU4i8yEAdLp464S/ecjQ8KdYdYdnkWtp6CHZDZCXJTwF1lleRXUbG/3ws4YVh67ci+GitZIVgXaedDbv22CP3xPLLmUiEpfjmIfKskfGvjCU875h7Qda8IiC4u/Pg2Md57qQXR33OtR4i8KXawnHQyHjL4wl3rZcArGzw8n+dbPdv4LroDaMaQwBOONbDQnyhrjBiMpn24l1P5IfNfRBe3tBNwW8KUNtWZF45o+N6eaW60toFwU0R8ccN27soluMF13pBoHPOluHks/4G9p/t7BuNnGPtZAOnq3IPGbbXE0t43rGGQGSixIQdTjLtWzrn6vyw+VcI10RhisjeVMZ/TyzhBcf8npB3RJJABlMN7g2r8/PD5i4IPxeJKfhFKuNtiyU875jXgRyJIgl3xaTtRU4wxCm4vTcL1E+iMAXBp1N29tFYwg84l7YlGYSHncYHLMpWI+0PVJMcdc1NFCw0bP/nlVut8HnYXyYU/9RIuABT08Wpnq6Nh3OxhIdJedf6IYCvN3RIla4y+l4tHw0KziVXCeU+AOElUNhMjirizs605xCQ8D6SLXMORTj+uGF7NzSKiTwdhpdBgjn7G17BCX6myMGSyBdJrK9D+DQgDwhwNcHt9UVJSSVkded12ednJbzsumN+G+SOqLq8EM9J7Eymvdq7aRVBpONh7EsDmLNkvvXM/6rffEOP+DzBVckt3rEoE7SEl10fuaQHgYR13B0FGud5eAZHSX0oef3Yizr52sLPlsyylYLEUyQv1gHXjSElHwCZVNp/TjtHN7ASNzFkLg8UdgN8V7O5tePFp1Kbkn16TlcwmnK8kuT/sbe94z+qn5Ttda6eNeYkJQCPJEqlW6Iu8WuBxRJeATo+ZF02o+QOCLeA0PtOJJgWImzJ7knZ3t80ZlgzZFbCK4jHhruTM9KykVBpAS6jYFn5CwRBUo6LINxwwk5/RIozw+f3pHHEXxDhcYhnm/N/4bN1sNn8/wLkInZNHAaLqgAAAABJRU5ErkJggg=="},e1c6:function(t,e){},e546:function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"h",(function(){return o})),n.d(e,"k",(function(){return s})),n.d(e,"j",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"e",(function(){return h})),n.d(e,"i",(function(){return p})),n.d(e,"d",(function(){return g})),n.d(e,"m",(function(){return v})),n.d(e,"l",(function(){return y})),n.d(e,"f",(function(){return m}));var i=n("8937");function r(t){var e=0,n=0,r=0,a=0;return Object(i["M"])(t)?e=n=r=a=t:Object(i["C"])(t)&&(e=t[0],r=Object(i["K"])(t[1])?t[0]:t[1],a=Object(i["K"])(t[2])?t[0]:t[2],n=Object(i["K"])(t[3])?r:t[3]),[e,r,a,n]}function a(t){for(var e=t.childNodes,n=e.length,i=n-1;i>=0;i--)t.removeChild(e[i])}function o(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function s(t){var e=t.start,n=t.end,i=Math.min(e.x,n.x),r=Math.min(e.y,n.y),a=Math.max(e.x,n.x),o=Math.max(e.y,n.y);return{x:i,y:r,minX:i,minY:r,maxX:a,maxY:o,width:a-i,height:o-r}}function c(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),i=Math.min.apply(Math,e),r=Math.min.apply(Math,n),a=Math.max.apply(Math,e),o=Math.max.apply(Math,n);return{x:i,y:r,minX:i,minY:r,maxX:a,maxY:o,width:a-i,height:o-r}}function l(t,e,n,i){var r=t+n,a=e+i;return{x:t,y:e,width:n,height:i,minX:t,minY:e,maxX:isNaN(r)?0:r,maxY:isNaN(a)?0:a}}function u(t,e,n){return(1-n)*t+e*n}function h(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}}function f(t,e){var n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)}var p=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)0?Object(i["j"])(u,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=g(t),n=t.applyToMatrix([e.minX,e.minY,1]),i=t.applyToMatrix([e.minX,e.maxY,1]),r=t.applyToMatrix([e.maxX,e.minY,1]),l=t.applyToMatrix([e.maxX,e.maxY,1]),u=Math.min(n[0],i[0],r[0],l[0]),h=Math.max(n[0],i[0],r[0],l[0]),f=Math.min(n[1],i[1],r[1],l[1]),p=Math.max(n[1],i[1],r[1],l[1]);uo&&(o=h),fc&&(c=p)}})):(a=0,o=0,s=0,c=0),e=l(a,s,o-a,c-s)}else e=t.getBBox();return r?d(e,r):e}function v(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var i={type:n.get("type"),attrs:n.attr()};t.setClip(i)}else t.setClip(null)}}function y(t){return t+"px"}function m(t,e,n,i){var r=f(t,e),a=i/r,o=0;return"start"===n?o=0-a:"end"===n&&(o=1+a),{x:u(t.x,e.x,o),y:u(t.y,e.y,o)}}},e5b1:function(t,e,n){"use strict";n.r(e),n.d(e,"Category",(function(){return b})),n.d(e,"Continuous",(function(){return w})),n.d(e,"Base",(function(){return f}));var i=n("9ab4"),r=n("8937"),a=n("060b"),o=n("8ea8"),s=n("9778"),c=n("2f5e"),l=n("31e6"),u=n("e546"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),i=this.get("maxHeight"),r=e.width,a=e.height;return n&&(r=Math.min(r,n)),i&&(a=Math.min(a,i)),Object(u["b"])(e.minX,e.minY,r,a)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),i=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+i})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var e=this.get("background"),n=t.getBBox(),r=Object(u["c"])(e.padding),a=Object(i["a"])({x:0,y:0,width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},e.style),o=this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:a});o.toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),r=n.spacing,a=n.style,o=n.text,s=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:Object(i["a"])({text:o,x:e.x,y:e.y},a)}),c=s.getBBox();this.set("currentPoint",{x:e.x,y:c.maxY+r})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=Object(u["c"])(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(l["a"]),f=h,p={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},d={fill:c["a"].textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:c["a"].fontFamily,fontWeight:"normal",lineHeight:12},g="navigation-arrow-right",v="navigation-arrow-left",y={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPageIndex=1,e.totalPagesCnt=1,e.pageWidth=0,e.pageHeight=0,e.startX=0,e.startY=0,e.onNavigationBack=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex>1){e.currentPageIndex-=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndexg&&(g=m),"horizontal"===f?(v&&vc}if("horizontal"===o){var C=this.get("maxRow")||1,M=f+(1===C?0:j),S=c-h-v.width-v.minX;this.pageHeight=M*C,this.pageWidth=S,Object(r["j"])(s,(function(t){var e=t.getBBox(),r=u||e.width;(b&&bx&&(x=e.width)})),O=x,x+=h,c&&(x=Math.min(c,x),O=Math.min(c,O)),this.pageWidth=x,this.pageHeight=l-Math.max(v.height,f+j);var A=Math.floor(this.pageHeight/(f+j));Object(r["j"])(s,(function(t,e){0!==e&&e%A===0&&(m+=1,y.x+=x,y.y=a),n.moveElementTo(t,y),t.getParent().setClip({type:"rect",attrs:{x:y.x,y:y.y,width:x,height:f}}),y.y+=f+j})),this.totalPagesCnt=m,this.moveElementTo(g,{x:i+O/2-v.width/2-v.minX,y:l-v.height-v.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),"horizontal"===o&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(m/this.get("maxRow")):this.totalPagesCnt=m,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(g),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,n,a){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),c=Object(r["s"])(a.marker,"style",{}),l=c.size,u=void 0===l?12:l,h=Object(i["f"])(c,["size"]),f=this.drawArrow(s,o,v,"horizontal"===e?"up":"left",u,h);f.on("click",this.onNavigationBack);var p=f.getBBox();o.x+=p.width+2;var d=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:Object(i["a"])({x:o.x,y:o.y+u/2,text:n,textBaseline:"middle"},Object(r["s"])(a.text,"style"))}),y=d.getBBox();o.x+=y.width+2;var m=this.drawArrow(s,o,g,"horizontal"===e?"down":"right",u,h);return m.on("click",this.onNavigationAfter),s},e.prototype.updateNavigation=function(t){var e=Object(r["h"])({},p,this.get("pageNavigator")),n=e.marker.style,i=n.fill,a=n.opacity,o=n.inactiveFill,s=n.inactiveOpacity,c=this.currentPageIndex+"/"+this.totalPagesCnt,l=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),u=t?t.findById(this.getElementId(v)):this.getElementByLocalId(v),h=t?t.findById(this.getElementId(g)):this.getElementByLocalId(g);l.attr("text",c),u.attr("opacity",1===this.currentPageIndex?s:a),u.attr("fill",1===this.currentPageIndex?o:i),u.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),h.attr("opacity",this.currentPageIndex===this.totalPagesCnt?s:a),h.attr("fill",this.currentPageIndex===this.totalPagesCnt?o:i),h.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var f=u.getBBox().maxX+2;l.attr("x",f),f+=l.getBBox().width+2,this.updateArrowPath(h,{x:f,y:0})},e.prototype.drawArrow=function(t,e,n,r,a,s){var c=e.x,l=e.y,u=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:Object(i["a"])({size:a,direction:r,path:[["M",c+a/2,l],["L",c,l+a],["L",c+a,l+a],["Z"]],cursor:"pointer"},s)});return u.attr("matrix",Object(o["e"])({x:c+a/2,y:l+a/2},y[r])),u},e.prototype.updateArrowPath=function(t,e){var n=e.x,i=e.y,r=t.attr(),a=r.size,s=r.direction,c=Object(o["e"])({x:n+a/2,y:i+a/2},y[s]);t.attr("path",[["M",n+a/2,i],["L",n,i+a],["L",n+a,i+a],["Z"]]),t.attr("matrix",c)},e.prototype.getCurrentNavigationMatrix=function(){var t=this,e=t.currentPageIndex,n=t.pageWidth,i=t.pageHeight,r=this.get("layout"),a="horizontal"===r?{x:0,y:i*(1-e)}:{x:n*(1-e),y:0};return Object(o["f"])(a)},e.prototype.applyItemStates=function(t,e){var n=this.getItemStates(t),i=n.length>0;if(i){var a=e.getChildren(),o=this.get("itemStates");Object(r["j"])(a,(function(e){var n=e.get("name"),i=n.split("-")[2],r=Object(s["a"])(t,i,o);r&&(e.attr(r),"marker"!==i||e.get("isStroke")&&e.get("isFill")||(e.get("isStroke")&&e.attr("fill",null),e.get("isFill")&&e.attr("stroke",null)))}))}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),e=this.get("maxItemWidth");return e?t&&(e=t<=e?t:e):t&&(e=t),e},e}(f),b=m,x=1.4,O=.4,j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:c["a"].textColor,textBaseline:"middle",fontFamily:c["a"].fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:c["a"].textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},e.prototype.isSlider=function(){return!0},e.prototype.getValue=function(){return this.getCurrentValue()},e.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},e.prototype.setRange=function(t,e){this.update({min:t,max:e})},e.prototype.setValue=function(t){var e=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:e,value:t})},e.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},e.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},e.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},e.prototype.bindHandlersEvent=function(t){var e=this;t.on("legend-handler-min:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),i=e.getCurrentValue(),r=i[1];rn&&(r=n),e.setValue([r,n])}))},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,n=null;t.on("legend-track:dragstart",(function(t){n={x:t.x,y:t.y}})),t.on("legend-track:drag",(function(t){if(n){var i=e.getValueByCanvasPoint(n.x,n.y),r=e.getValueByCanvasPoint(t.x,t.y),a=e.getCurrentValue(),o=a[1]-a[0],s=e.getRange(),c=r-i;c<0?a[0]+c>s.min?e.setValue([a[0]+c,a[1]+c]):e.setValue([s.min,s.min+o]):c>0&&(c>0&&a[1]+ca&&(l=a),l0&&this.changeRailLength(i,o,n[o]-f)}},e.prototype.changeRailLength=function(t,e,n){var i,r=t.getBBox();i="height"===e?this.getRailPath(r.x,r.y,r.width,n):this.getRailPath(r.x,r.y,n,r.height),t.attr("path",i)},e.prototype.changeRailPosition=function(t,e,n){var i=t.getBBox(),r=this.getRailPath(e,n,i.width,i.height);t.attr("path",r)},e.prototype.fixedHorizontal=function(t,e,n,i){var r=this.get("label"),a=r.align,o=r.spacing,s=n.getBBox(),c=t.getBBox(),l=e.getBBox(),u=s.height;this.fitRailLength(c,l,s,n),s=n.getBBox(),"rail"===a?(t.attr({x:i.x,y:i.y+u/2}),this.changeRailPosition(n,i.x+c.width+o,i.y),e.attr({x:i.x+c.width+s.width+2*o,y:i.y+u/2})):"top"===a?(t.attr({x:i.x,y:i.y}),e.attr({x:i.x+s.width,y:i.y}),this.changeRailPosition(n,i.x,i.y+c.height+o)):(this.changeRailPosition(n,i.x,i.y),t.attr({x:i.x,y:i.y+s.height+o}),e.attr({x:i.x+s.width,y:i.y+s.height+o}))},e.prototype.fixedVertail=function(t,e,n,i){var r=this.get("label"),a=r.align,o=r.spacing,s=n.getBBox(),c=t.getBBox(),l=e.getBBox();if(this.fitRailLength(c,l,s,n),s=n.getBBox(),"rail"===a)t.attr({x:i.x,y:i.y}),this.changeRailPosition(n,i.x,i.y+c.height+o),e.attr({x:i.x,y:i.y+c.height+s.height+2*o});else if("right"===a)t.attr({x:i.x+s.width+o,y:i.y}),this.changeRailPosition(n,i.x,i.y),e.attr({x:i.x+s.width+o,y:i.y+s.height});else{var u=Math.max(c.width,l.width);t.attr({x:i.x,y:i.y}),this.changeRailPosition(n,i.x+u+o,i.y),e.attr({x:i.x,y:i.y+s.height})}},e}(f),w=j},e5e2:function(t,e,n){"use strict";var i=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){var t=this.type;return"[Event (type="+t+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e["a"]=i},e73e:function(t,e,n){"use strict";var i=n("9ab4"),r=n("6855"),a=n("8937"),o=n("68de"),s=n("7349"),c=n("00f9"),l=n("22f9"),u=n("73ec"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=Object(u["b"])("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context");this.createPath(i,e)}},e.prototype.onCanvasChange=function(t){Object(s["b"])(this,t)},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),Object(c["a"])(this,t),this.createPath(t),e.length&&Object(s["a"])(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(a["j"])(e||n,(function(t,e){l["b"][e]&&i.setAttribute(l["b"][e],t)})),Object(c["c"])(this)},e}(r["AbstractGroup"]);e["a"]=h},e897:function(t,e,n){"use strict";n.d(e,"b",(function(){return r["a"]})),n.d(e,"c",(function(){return r["b"]})),n.d(e,"d",(function(){return r["c"]})),n.d(e,"a",(function(){return i}));var i={};n.r(i),n.d(i,"leftTranslate",(function(){return a})),n.d(i,"leftRotate",(function(){return o})),n.d(i,"leftScale",(function(){return s})),n.d(i,"transform",(function(){return l})),n.d(i,"direction",(function(){return u})),n.d(i,"angleTo",(function(){return h})),n.d(i,"vertical",(function(){return f}));var r=n("20e7");function a(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r["a"].fromTranslation(i,n),r["a"].multiply(t,i,e)}function o(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r["a"].fromRotation(i,n),r["a"].multiply(t,i,e)}function s(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r["a"].fromScaling(i,n),r["a"].multiply(t,i,e)}function c(t,e,n){return r["a"].multiply(t,n,e)}function l(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],i=0,r=e.length;i=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i}function f(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},e945:function(t,e,n){"use strict";var i=n("8937"),r=/rgba?\(([\s.,0-9]+)\)/,a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,c=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},l=function(){var t=document.createElement("i");return t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t},u=function(t,e,n,i){return t[i]+(e[i]-t[i])*n};function h(t){return"#"+d(t[0])+d(t[1])+d(t[2])}var f,p=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},d=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},g=function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),i=t.length-1,r=Math.floor(i*n),a=i*n-r,o=t[r],s=r===i?o:t[r+1];return h([u(o,s,a,0),u(o,s,a,1),u(o,s,a,2)])},v=function(t){if("#"===t[0]&&7===t.length)return t;f||(f=l()),f.style.color=t;var e=document.defaultView.getComputedStyle(f,"").getPropertyValue("color"),n=r.exec(e),i=n[1].split(/\s*,\s*/).map((function(t){return Number(t)}));return e=h(i),e},y=function(t){var e=Object(i["Q"])(t)?t.split("-"):t,n=Object(i["W"])(e,(function(t){return p(-1===t.indexOf("#")?v(t):t)}));return function(t){return g(n,t)}},m=function(t){if(c(t)){var e,n=void 0;if("l"===t[0]){var r=a.exec(t),l=+r[1]+90;n=r[2],e="linear-gradient("+l+"deg, "}else if("r"===t[0]){e="radial-gradient(";r=o.exec(t);n=r[4]}var u=n.match(s);return Object(i["j"])(u,(function(t,n){var i=t.split(":");e+=i[1]+" "+100*i[0]+"%",n!==u.length-1&&(e+=", ")})),e+=")",e}return t};e["a"]={rgb2arr:p,gradient:y,toRGB:Object(i["ab"])(v),toCSSGradient:m}},ebd2:function(t,e,n){"use strict";n.r(e);var i={};n.r(i),n.d(i,"cluster",(function(){return sw})),n.d(i,"hierarchy",(function(){return Ub})),n.d(i,"pack",(function(){return Fb})),n.d(i,"packSiblings",(function(){return wb})),n.d(i,"packEnclose",(function(){return lb})),n.d(i,"partition",(function(){return Zj})),n.d(i,"stratify",(function(){return fw})),n.d(i,"tree",(function(){return Ow})),n.d(i,"treemap",(function(){return Sw})),n.d(i,"treemapBinary",(function(){return Aw})),n.d(i,"treemapDice",(function(){return Qj})),n.d(i,"treemapSlice",(function(){return jw})),n.d(i,"treemapSliceDice",(function(){return kw})),n.d(i,"treemapSquarify",(function(){return Mw})),n.d(i,"treemapResquarify",(function(){return Fw}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"intelanaly clearfix"},[i("div",{staticClass:"timebox"},[t.code?i("div",{staticClass:"pull-right",on:{click:t.logoutap}},[i("div",{staticClass:"logout colorC7C7C7 pointer"},[t._v("退出登录")])]):t._e(),i("div",{staticClass:"pull-right timediv"},[i("img",{staticClass:"pull-left",attrs:{src:n("309b")}}),i("div",{staticClass:"pull-left font16 colorC7C7C7 lh20"},[t._v(t._s(t.date)+" "+t._s(t.time))])])]),i("img",{staticClass:"topicon",attrs:{src:n("c283")}}),i("div",{staticClass:"title"},[t._v(t._s(t.title?t.title:"志远装饰营销")+"数字化智能平台")]),i("div",{staticClass:"clearfix titbtn"},[t._m(0),i("div",{staticClass:"pull-right colorC7C7C7"},[i("div",{staticClass:"pointer pull-left timetit",class:{nowtime:1==t.timenum},on:{click:function(e){return t.setime(1)}}},[t._v("今日")]),i("div",{staticClass:"pointer pull-left timetit",class:{nowtime:2==t.timenum},on:{click:function(e){return t.setime(2)}}},[t._v("本周")]),i("div",{staticClass:"pointer pull-left timetit",class:{nowtime:3==t.timenum},on:{click:function(e){return t.setime(3)}}},[t._v("本月")]),i("div",{staticClass:"pointer pull-left timetit",class:{nowtime:4==t.timenum},on:{click:function(e){return t.setime(4)}}},[t._v("累计")]),i("div",{staticClass:"pointer pull-left timsg",class:{nowtime:5==t.timenum},on:{click:function(e){return t.setime(5)}}},[i("img",{staticClass:"pull-left",attrs:{src:n("d53c")}}),i("div",{staticClass:"pull-left"},[t._v(t._s(t.start_date?t.start_date:"开始时间")+"—"+t._s(t.end_date))]),i("div",{staticClass:"timebox1",staticStyle:{display:"none"}},[i("el-date-picker",{ref:"datepicker1",attrs:{"popper-class":"textbox",type:"daterange",align:"left",clearable:!1,"range-separator":"——","default-value":t.nowdate,"start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.onPick},model:{value:t.time1,callback:function(e){t.time1=e},expression:"time1"}})],1)])])]),i("div",{staticClass:"leftbox"},[i("div",{staticClass:"everyleftbox relative cluechartbox"},[i("div",{staticClass:"leftitlebox clearfix"},[i("div",{staticClass:"leftext pull-left"},[t._v("获客线索累计:"+t._s(t.clueobj&&t.clueobj.count?t.clueobj.count:0)+"条")]),i("div",{staticClass:"pull-right lh14 gotomsg",on:{click:function(e){return t.setypetap(1)}}},[i("div",{staticClass:"pull-left color2BF5F6 font14"},[t._v("查看详情")]),i("img",{staticClass:"pull-left gotoicon",attrs:{src:n("41e3")}})])]),i("div",{staticClass:"cluechart",attrs:{id:"cluechart"}})]),i("div",{staticClass:"everyleftbox relative"},[i("div",{staticClass:"leftitlebox clearfix"},[i("div",{staticClass:"leftext pull-left"},[t._v("加微客户累计:"+t._s(t.adwxobj&&t.adwxobj.count?t.adwxobj.count:"0")+"个")]),i("div",{staticClass:"pull-right lh14 gotomsg",on:{click:function(e){return t.setypetap(2)}}},[i("div",{staticClass:"pull-left color2BF5F6 font14"},[t._v("查看详情")]),i("img",{staticClass:"pull-left gotoicon",attrs:{src:n("41e3")}})])]),i("div",{staticClass:"adwxchart",attrs:{id:"adwxchart"}})]),i("div",{staticClass:"everyleftbox relative clearfix"},[i("div",{staticClass:"leftitlebox clearfix "},[i("div",{staticClass:"leftext pull-left"},[t._v("意向客户")]),i("div",{staticClass:"pull-right lh14 gotomsg",on:{click:function(e){return t.setypetap(3)}}},[i("div",{staticClass:"pull-left color2BF5F6 font14"},[t._v("查看详情")]),i("img",{staticClass:"pull-left gotoicon",attrs:{src:n("41e3")}})])]),i("div",{staticClass:"intentionchart relative clearfix"},[i("div",{staticClass:"pull-left",attrs:{id:"leftintentionchart"}}),i("div",{staticClass:"leftintention clearfix center"},[i("div",{staticClass:"intention1"},[t._v(t._s(t.intentionobj&&t.intentionobj.data&&t.intentionobj.data[0]&&t.intentionobj.data[0].count?t.intentionobj.data[0].count:"0"))]),i("div",{staticClass:"intention2"},[t._v(t._s(t.intentionobj&&t.intentionobj.data&&t.intentionobj.data[1]&&t.intentionobj.data[1].count?t.intentionobj.data[1].count:"0"))]),i("div",{staticClass:"intention3"},[t._v(t._s(t.intentionobj&&t.intentionobj.data&&t.intentionobj.data[2]&&t.intentionobj.data[2].count?t.intentionobj.data[2].count:"0"))]),i("div",{staticClass:"intention4"},[t._v(t._s(t.intentionobj&&t.intentionobj.data&&t.intentionobj.data[3]&&t.intentionobj.data[3].count?t.intentionobj.data[3].count:"0"))])]),i("div",{staticClass:"pull-left",attrs:{id:"rightintentionchart"}}),t.intentionobj&&t.intentionobj.data?i("div",{staticClass:"rightintention"},t._l(t.intentionobj.data,(function(e,n){return i("div",{key:n,staticClass:"pull-left",class:{rightint1:0==n,rightint2:1==n,rightint3:2==n,rightint4:3==n}},[t._v(t._s(e.intention))])})),0):t._e()])]),i("div",{staticClass:"everyleftbox relative clearfix lifangbox"},[i("div",{staticClass:"leftitlebox clearfix "},[i("div",{staticClass:"pull-right lh14 gotomsg",on:{click:function(e){return t.setypetap(4)}}},[i("div",{staticClass:"pull-left color2BF5F6 font14"},[t._v("查看详情")]),i("img",{staticClass:"pull-left gotoicon",attrs:{src:n("41e3")}})])]),i("div",{staticClass:"tanseebox clearfix"},[i("div",{staticClass:"pull-left lifangtext"},[t._v("量房客户累计:"+t._s(t.lfcount)+"个")]),i("div",{staticClass:"pull-left getstorebox relative"},[i("span"),t._v("到店客户累计:"+t._s(t.dcount)+"个")])]),i("div",{staticClass:"intentionchart relative clearfix",attrs:{id:"tanechart"}})])]),i("div",{staticClass:"centerbox"},[i("div",{attrs:{id:"container"}}),i("div",{staticClass:"despoitbox relative"},[i("div",{staticClass:"leftitlebox clearfix"},[i("div",{staticClass:"leftext pull-left"},[t._v("签单客户")]),i("div",{staticClass:"pull-right lh14 gotomsg",on:{click:function(e){return t.setypetap(5)}}},[i("div",{staticClass:"pull-left color2BF5F6 font14"},[t._v("查看详情")]),i("img",{staticClass:"pull-left gotoicon",attrs:{src:n("41e3")}})])]),i("div",{staticClass:"leftdespoitbox"},[i("div",{staticStyle:{"text-align":"left"}},[i("img",{attrs:{src:n("7334")}}),i("div",{staticClass:"mb18",staticStyle:{color:"#1890FE"}},[t._v("累计签单:"+t._s(t.dingnum)+"组")]),i("div",{staticStyle:{color:"#1EE7E7"}},[t._v("签单金额:"+t._s(t.dingmoney)+"元")])])]),i("div",{staticClass:"despoitechart",attrs:{id:"despoitechart"}})]),i("div",{staticClass:"signbox relative"},[i("div",{staticClass:"leftitlebox clearfix"},[i("div",{staticClass:"leftext pull-left"},[t._v("转单客户")]),i("div",{staticClass:"pull-right lh14 gotomsg",on:{click:function(e){return t.setypetap(6)}}},[i("div",{staticClass:"pull-left color2BF5F6 font14"},[t._v("查看详情")]),i("img",{staticClass:"pull-left gotoicon",attrs:{src:n("41e3")}})])]),i("div",{staticClass:"leftsign"},[i("div",{staticClass:"leftsigncenter"},[i("div",{staticClass:"allsignum"},[t._v("累计转单:"+t._s(t.signum)+"组")]),i("div",{staticClass:"signmoney"},[t._v("转单金额:"+t._s(t.signmoney)+"元")]),i("img",{staticClass:"leftsignicon",attrs:{src:n("717f")}})])]),i("div",{staticClass:"signechart",attrs:{id:"signechart"}})])]),i("div",{staticClass:"rightbox"},[i("div",{staticClass:"performancebox"},[i("div",{staticClass:"performtit"},[t._v("业绩排名")]),i("div",{staticClass:"performancechartbox clearfix"},[i("div",{staticClass:"pull-left",attrs:{id:"performancechart"}}),i("div",{staticClass:"allperformance pull-left"},[t._v("总业绩:"+t._s(t.allmoney?t.allmoney:0)+"元")])]),i("div",{staticClass:"performancerank clearfix "},[i("div",{staticClass:"everyperformancebtn pull-left center pointer",class:{nowperformancebtn:1==t.titype},on:{click:function(e){return t.setperftap(1)}}},[t._m(1)]),i("div",{staticClass:"everyperformancebtn pull-left center pointer",class:{nowperformancebtn:2==t.titype},on:{click:function(e){return t.setperftap(2)}}},[t._m(2)])]),i("div",{directives:[{name:"show",rawName:"v-show",value:1==t.titype,expression:"titype==1"}],staticClass:"personlistbox"},t._l(t.perforlist,(function(e,r){return i("div",{key:"p"+r,staticClass:"clearfix everyperson"},[i("img",{directives:[{name:"show",rawName:"v-show",value:0==r,expression:"index==0"}],staticClass:"pull-left performnumimg",attrs:{src:n("e155")}}),i("img",{directives:[{name:"show",rawName:"v-show",value:1==r,expression:"index==1"}],staticClass:"pull-left performnumimg",attrs:{src:n("58b6")}}),i("img",{directives:[{name:"show",rawName:"v-show",value:2==r,expression:"index==2"}],staticClass:"pull-left performnumimg",attrs:{src:n("796a")}}),i("div",{directives:[{name:"show",rawName:"v-show",value:r>2,expression:"index>2"}],staticClass:"pull-left performnum"},[t._v(t._s(r+1))]),i("div",{staticClass:"pull-left ellipsis personame"},[t._v(t._s(e.employee_name))]),i("div",{staticClass:"pull-left perconebox",style:{width:"calc(1.38rem * "+e.width+")"}}),i("span",{staticClass:"pull-left performoney"},[t._v("总业绩:"+t._s(e.money?e.money:0)+"元")])])})),0),i("div",{directives:[{name:"show",rawName:"v-show",value:2==t.titype,expression:"titype==2"}],staticClass:"personlistbox teamerbox"},t._l(t.perforlist,(function(e,r){return i("div",{key:"t"+r,staticClass:"clearfix everyperson"},[i("img",{directives:[{name:"show",rawName:"v-show",value:0==r,expression:"index==0"}],staticClass:"pull-left performnumimg",attrs:{src:n("e155")}}),i("img",{directives:[{name:"show",rawName:"v-show",value:1==r,expression:"index==1"}],staticClass:"pull-left performnumimg",attrs:{src:n("58b6")}}),i("img",{directives:[{name:"show",rawName:"v-show",value:2==r,expression:"index==2"}],staticClass:"pull-left performnumimg",attrs:{src:n("796a")}}),i("div",{directives:[{name:"show",rawName:"v-show",value:r>2,expression:"index>2"}],staticClass:"pull-left performnum"},[t._v(t._s(r+1))]),i("div",{staticClass:"pull-left ellipsis teamame"},[t._v(t._s(e.org_name))]),i("div",{staticClass:"pull-left perconebox",style:{width:"calc(1.34rem * "+e.width+")"}}),i("span",{staticClass:"pull-left performoney"},[t._v("总业绩:"+t._s(e.money?e.money:0)+"元")])])})),0)]),i("div",{staticClass:"allcrmbox"},[i("div",{staticClass:"allcrmtit"},[t._v("数据转化")]),i("div",{staticClass:"allcrm"},t._l(t.performancearr,(function(e,n){return i("div",{key:n,staticClass:"everyallcrm clearfix"},[i("div",{staticClass:"leftcrmname pull-left"},[t._v(t._s(e.type))]),i("div",{staticClass:"allcrmnum pull-left",class:{adcrmwx:"加微客户"==e.type,descrmbox:"转单客户"==e.type,signcrm:"签单客户"==e.type,twoseecrm:"二访客户"==e.type,gocrm:"意向客户"==e.type,crmlf:"量房客户"==e.type,storecrm:"到店客户"==e.type}},[i("span",{style:{width:e.width+"%"}},[t._v(t._s(e.count))])]),i("div",{staticClass:"pull-left"},[t._v(t._s(e.lv))])])})),0)])]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.showflag,expression:"showflag"}],staticClass:"layerbox",on:{click:function(e){t.showflag=!1}}},[i("div",{staticClass:"crmlistbox",on:{click:function(t){t.stopPropagation()}}},[i("img",{staticClass:"closeimg pointer",attrs:{src:n("09cc")},on:{click:function(e){t.showflag=!1}}}),i("div",{staticClass:"crmtitle clearfix"},[i("div",{directives:[{name:"show",rawName:"v-show",value:1==t.type,expression:"type==1"}],staticClass:"pull-left leftcrmtitle"},[t._v("获客线索详情")]),i("div",{directives:[{name:"show",rawName:"v-show",value:2==t.type,expression:"type==2"}],staticClass:"pull-left leftcrmtitle"},[t._v("加微客户累计详情")]),i("div",{directives:[{name:"show",rawName:"v-show",value:3==t.type,expression:"type==3"}],staticClass:"pull-left leftcrmtitle"},[t._v("意向客户详情")]),t.intentionobj&&t.intentionobj.data&&3==t.type?i("div",{staticClass:"pull-right intentionbox pointer"},[i("div",{staticClass:"pull-left",class:{nowbtn:!t.listQuery.type},on:{click:function(e){return t.setextap("")}}},[t._v("全部")]),t._l(t.intentionobj.data,(function(e,n){return i("div",{key:n,staticClass:"pull-left",class:{rightint1:0==n,rightint2:1==n,rightint3:2==n,rightint4:3==n,nowbtn:t.listQuery.type==e.intention},on:{click:function(n){return t.setextap(e.intention)}}},[t._v(t._s(e.intention))])}))],2):t._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:4==t.type,expression:"type==4"}],staticClass:"pull-left leftcrmtitle"},[t._v("量房客户、到店客户详情")]),i("div",{directives:[{name:"show",rawName:"v-show",value:4==t.type,expression:"type==4"}],staticClass:"pull-right intentionbox pointer"},[i("div",{staticClass:"pull-left",class:{nowbtn:"量房"==t.listQuery.type},on:{click:function(e){return t.setextap("量房")}}},[t._v("量房")]),i("div",{staticClass:"pull-left",class:{nowbtn:"到店"==t.listQuery.type},on:{click:function(e){return t.setextap("到店")}}},[t._v("到店")])]),i("div",{directives:[{name:"show",rawName:"v-show",value:5==t.type||6==t.type,expression:"type==5||type==6"}],staticClass:"pull-left leftcrmtitle"},[t._v("签单、转单客户详情")]),i("div",{directives:[{name:"show",rawName:"v-show",value:5==t.type||6==t.type,expression:"type==5||type==6"}],staticClass:"pull-right intentionbox pointer"},[i("div",{staticClass:"pull-left",class:{nowbtn:"交定"==t.listQuery.type},on:{click:function(e){return t.setextap("交定")}}},[t._v("签单")]),i("div",{staticClass:"pull-left",class:{nowbtn:"签单"==t.listQuery.type},on:{click:function(e){return t.setextap("签单")}}},[t._v("转单")])]),i("div",{directives:[{name:"show",rawName:"v-show",value:7==t.type,expression:"type==7"}],staticClass:"pull-left leftcrmtitle"},[t._v(t._s(t.nowtext)+"区域")])]),i("div",{staticClass:"listbox"},[1==t.type?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"adminTable",staticStyle:{width:"100%"},attrs:{data:t.crmlist,border:""}},[i("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"50",index:t.indexMethod}}),i("el-table-column",{attrs:{label:"线索名称",align:"center",prop:"nickname"}}),i("el-table-column",{attrs:{label:"所属业务员",align:"center",prop:"employee_name"}}),i("el-table-column",{attrs:{label:"部门",align:"center",prop:"org_name"}}),i("el-table-column",{attrs:{label:"获取时间",align:"center",prop:"addtime"}})],1):t._e(),2==t.type?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.crmlist,border:""}},[i("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"50",index:t.indexMethod}}),i("el-table-column",{attrs:{label:"客户姓名",align:"center",prop:"name"}}),i("el-table-column",{attrs:{label:"加微时间",align:"center",prop:"add_wechat_time"}}),i("el-table-column",{attrs:{label:"所属业务员",align:"center",prop:"employee.name"}}),i("el-table-column",{attrs:{label:"部门",align:"center",prop:"addtime"}}),i("el-table-column",{attrs:{label:"小区",align:"center",prop:"community_name"}}),i("el-table-column",{attrs:{label:"面积",align:"center",prop:"square"}}),i("el-table-column",{attrs:{label:"客户来源",align:"center",prop:"source.source"}})],1):t._e(),3==t.type?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.crmlist,border:""}},[i("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"50",index:t.indexMethod}}),i("el-table-column",{attrs:{label:"客户姓名",align:"center",prop:"name"}}),i("el-table-column",{attrs:{label:"所属业务员",align:"center",prop:"employee.name"}}),i("el-table-column",{attrs:{label:"部门",align:"center",prop:"org_name"}}),i("el-table-column",{attrs:{label:"小区",align:"center",prop:"community_name"}}),i("el-table-column",{attrs:{label:"面积",align:"center",prop:"square"}}),i("el-table-column",{attrs:{label:"客户来源",align:"center",prop:"source.source"}})],1):t._e(),4==t.type&&"量房"==t.listQuery.type?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.crmlist,border:""}},[i("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"50",index:t.indexMethod}}),i("el-table-column",{attrs:{label:"客户姓名",align:"center",prop:"name"}}),i("el-table-column",{attrs:{label:"量房时间",align:"center",prop:"addtime"}}),i("el-table-column",{attrs:{label:"所属业务员",align:"center",prop:"employee_name"}}),i("el-table-column",{attrs:{label:"部门",align:"center",prop:"org_name"}}),i("el-table-column",{attrs:{label:"小区",align:"center",prop:"community_name"}}),i("el-table-column",{attrs:{label:"面积",align:"center",prop:"square"}}),i("el-table-column",{attrs:{label:"客户来源",align:"center",prop:"source"}})],1):t._e(),4==t.type&&"到店"==t.listQuery.type?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.crmlist,border:""}},[i("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"50",index:t.indexMethod}}),i("el-table-column",{attrs:{label:"客户姓名",align:"center",prop:"name"}}),i("el-table-column",{attrs:{label:"到店时间",align:"center",prop:"addtime"}}),i("el-table-column",{attrs:{label:"所属业务员",align:"center",prop:"employee_name"}}),i("el-table-column",{attrs:{label:"部门",align:"center",prop:"org_name"}}),i("el-table-column",{attrs:{label:"小区",align:"center",prop:"community_name"}}),i("el-table-column",{attrs:{label:"面积",align:"center",prop:"square"}}),i("el-table-column",{attrs:{label:"客户来源",align:"center",prop:"source"}})],1):t._e(),5==t.type?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.crmlist,border:""}},[i("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"50",index:t.indexMethod}}),i("el-table-column",{attrs:{label:"客户姓名",align:"center",prop:"name"}}),i("el-table-column",{attrs:{label:"签单时间",align:"center",prop:"addtime"}}),i("el-table-column",{attrs:{label:"所属业务员",align:"center",prop:"employee_name"}}),i("el-table-column",{attrs:{label:"部门",align:"center",prop:"org_name"}}),i("el-table-column",{attrs:{label:"小区",align:"center",prop:"community_name"}}),i("el-table-column",{attrs:{label:"面积",align:"center",prop:"square"}}),i("el-table-column",{attrs:{label:"客户来源",align:"center",prop:"source"}})],1):t._e(),6==t.type?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.crmlist,border:""}},[i("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"50",index:t.indexMethod}}),i("el-table-column",{attrs:{label:"客户姓名",align:"center",prop:"name"}}),i("el-table-column",{attrs:{label:"转单时间",align:"center",prop:"addtime"}}),i("el-table-column",{attrs:{label:"所属业务员",align:"center",prop:"employee_name"}}),i("el-table-column",{attrs:{label:"部门",align:"center",prop:"org_name"}}),i("el-table-column",{attrs:{label:"小区",align:"center",prop:"community_name"}}),i("el-table-column",{attrs:{label:"面积",align:"center",prop:"square"}}),i("el-table-column",{attrs:{label:"客户来源",align:"center",prop:"source"}})],1):t._e(),7==t.type?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.crmlist,border:""}},[i("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"50",index:t.indexMethod}}),i("el-table-column",{attrs:{label:"客户姓名",align:"center",prop:"name"}}),i("el-table-column",{attrs:{label:"所属业务员",align:"center",prop:"employee.name"}}),i("el-table-column",{attrs:{label:"部门",align:"center",prop:"org_name"}}),i("el-table-column",{attrs:{label:"小区",align:"center",prop:"community_name"}}),i("el-table-column",{attrs:{label:"面积",align:"center",prop:"square"}}),i("el-table-column",{attrs:{label:"客户来源",align:"center",prop:"source.source"}})],1):t._e()],1),i("div",{staticClass:"pagination-container "},[i("el-pagination",{attrs:{background:"",layout:"total,prev, pager, next,jumper","current-page":t.listQuery.current,"page-size":t.listQuery.limit,total:t.total},on:{"current-change":t.handleCurrentChange,"update:currentPage":function(e){return t.$set(t.listQuery,"current",e)},"update:current-page":function(e){return t.$set(t.listQuery,"current",e)}}})],1)])]),t.code?t._e():i("div",{staticClass:"loginbox"},[i("img",{staticClass:"topicon",attrs:{src:n("c283")}}),i("div",{staticClass:"title"},[t._v(t._s(t.title?t.title:"志远装饰营销")+"数字化智能平台")]),t._m(3)])])},a=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pull-left leftitle colorfff "},[n("div",{staticClass:"pointer pull-left nowtit"},[t._v("客户分析")]),n("div",{staticClass:"pointer pull-left"},[t._v("活动分析")]),n("div",{staticClass:"pointer pull-left"},[t._v("内容分析")]),n("div",{staticClass:"pointer pull-left"},[t._v("培训分析")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"inline-block"},[i("img",{attrs:{src:n("9464")}}),i("div",[t._v("员工业绩排行")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"inline-block"},[i("img",{attrs:{src:n("81f8")}}),i("div",[t._v("团队业绩排行")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"logindiv"},[i("div",{staticClass:"logintit"},[t._v("用户扫码登录")]),i("div",{staticClass:"login_container",attrs:{id:"login_container"}}),i("div",{staticClass:"leftloginimg"},[i("img",{attrs:{src:n("75a2")}}),i("div",[t._v("实时数据")])]),i("div",{staticClass:"leftloginimg leftloginimg1"},[i("img",{attrs:{src:n("75a2")}}),i("div",[t._v("数字营销")])]),i("div",{staticClass:"leftloginimg toprightimg"},[i("img",{attrs:{src:n("4c48")}}),i("div",[t._v("快速触达")])]),i("div",{staticClass:"leftloginimg bottomrightimg"},[i("img",{attrs:{src:n("4390")}}),i("div",[t._v("精准分析")])])])}],o=(n("b680"),n("b0c0"),n("a15b"),n("ac1f"),n("1276"),n("fb6a"),n("b775"));function s(t){return Object(o["a"])({url:"/index/platform/clue",method:"post",data:t})}function c(t){return Object(o["a"])({url:"/index/platform/intention",method:"post",data:t})}function l(t){return Object(o["a"])({url:"/index/platform/clueDetail",method:"post",data:t})}function u(t){return Object(o["a"])({url:"/index/platform/wx",method:"post",data:t})}function h(t){return Object(o["a"])({url:"/index/platform/wxDetail",method:"post",data:t})}function f(t){return Object(o["a"])({url:"/index/platform/intentionDetail",method:"post",data:t})}function p(t){return Object(o["a"])({url:"/index/platform/tan",method:"post",data:t})}function d(t){return Object(o["a"])({url:"/index/platform/detail",method:"post",data:t})}function g(t){return Object(o["a"])({url:"/index/platform/yeji",method:"post",data:t})}function v(t){return Object(o["a"])({url:"/index/platform/employee",method:"post",data:t})}function y(t){return Object(o["a"])({url:"/index/platform/team",method:"post",data:t})}function m(t){return Object(o["a"])({url:"/index/platform/performance",method:"post",data:t})}function b(t){return Object(o["a"])({url:"/index/platform/region",method:"post",data:t})}function x(t){return Object(o["a"])({url:"/index/platform/regionDetail",method:"post",data:t})}function O(t){return Object(o["a"])({url:"/index/platform/sign",method:"post",data:t})}function j(t){return Object(o["a"])({url:"/index/platform/ding",method:"post",data:t})}function w(t){return Object(o["a"])({url:"/index/wx/platformLogin",method:"post",data:t})}function C(t){return Object(o["a"])({url:"/index/wx/getQrcodeConfig",method:"post",data:t})}function M(t){return Object(o["a"])({url:"/index/platform/logout",method:"post",data:t})}var S,A,k,F=n("9ab4"),E=n("8937");(function(t){t["FORE"]="fore",t["MID"]="mid",t["BG"]="bg"})(S||(S={})),function(t){t["TOP"]="top",t["TOP_LEFT"]="top-left",t["TOP_RIGHT"]="top-right",t["RIGHT"]="right",t["RIGHT_TOP"]="right-top",t["RIGHT_BOTTOM"]="right-bottom",t["LEFT"]="left",t["LEFT_TOP"]="left-top",t["LEFT_BOTTOM"]="left-bottom",t["BOTTOM"]="bottom",t["BOTTOM_LEFT"]="bottom-left",t["BOTTOM_RIGHT"]="bottom-right",t["RADIUS"]="radius",t["CIRCLE"]="circle",t["NONE"]="none"}(A||(A={})),function(t){t["AXIS"]="axis",t["GRID"]="grid",t["LEGEND"]="legend",t["TOOLTIP"]="tooltip",t["ANNOTATION"]="annotation",t["SLIDER"]="slider",t["SCROLLBAR"]="scrollbar",t["OTHER"]="other"}(k||(k={}));var I,T,P,B,L={FORE:3,MID:2,BG:1};(function(t){t["BEFORE_RENDER"]="beforerender",t["AFTER_RENDER"]="afterrender",t["BEFORE_PAINT"]="beforepaint",t["AFTER_PAINT"]="afterpaint",t["BEFORE_CHANGE_DATA"]="beforechangedata",t["AFTER_CHANGE_DATA"]="afterchangedata",t["BEFORE_CLEAR"]="beforeclear",t["AFTER_CLEAR"]="afterclear",t["BEFORE_DESTROY"]="beforedestroy",t["BEFORE_CHANGE_SIZE"]="beforechangesize",t["AFTER_CHANGE_SIZE"]="afterchangesize"})(I||(I={})),function(t){t["BEFORE_DRAW_ANIMATE"]="beforeanimate",t["AFTER_DRAW_ANIMATE"]="afteranimate",t["BEFORE_RENDER_LABEL"]="beforerenderlabel",t["AFTER_RENDER_LABEL"]="afterrenderlabel"}(T||(T={})),function(t){t["MOUSE_ENTER"]="plot:mouseenter",t["MOUSE_DOWN"]="plot:mousedown",t["MOUSE_MOVE"]="plot:mousemove",t["MOUSE_UP"]="plot:mouseup",t["MOUSE_LEAVE"]="plot:mouseleave",t["TOUCH_START"]="plot:touchstart",t["TOUCH_MOVE"]="plot:touchmove",t["TOUCH_END"]="plot:touchend",t["TOUCH_CANCEL"]="plot:touchcancel",t["CLICK"]="plot:click",t["DBLCLICK"]="plot:dblclick",t["CONTEXTMENU"]="plot:contextmenu",t["LEAVE"]="plot:leave",t["ENTER"]="plot:enter"}(P||(P={})),function(t){t["ACTIVE"]="active",t["INACTIVE"]="inactive",t["SELECTED"]="selected",t["DEFAULT"]="default"}(B||(B={}));var D=["color","shape","size"],R="_origin",z=1,_=1,N=.25,Y={};function G(t){var e=Y[t];if(!e)throw new Error("G engine '".concat(t,"' is not exist, please register it at first."));return e}function V(t,e){Y[t]=e}var W=n("7c8a");function X(t){var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}function H(t){return"number"===typeof t&&!isNaN(t)}function q(t,e,n,i){var r=n,a=i;if(e){var o=X(t);r=o.width?o.width:r,a=o.height?o.height:a}return{width:Math.max(H(r)?r:z,z),height:Math.max(H(a)?a:_,_)}}function U(t){var e=t.parentNode;e&&e.removeChild(t)}var K=n("7fa2"),Q=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var i=e.visible,r=void 0===i||i;return n.visible=r,n}return Object(F["c"])(e,t),e.prototype.show=function(){var t=this.visible;t||this.changeVisible(!0)},e.prototype.hide=function(){var t=this.visible;t&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(K["a"]),Z=Q,J=n("6855"),$=n("eecd"),tt=function(t,e){return Object(E["Q"])(e)?e:t.invert(t.scale(e))},et=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},e.prototype.convertPoint=function(t){var e,n=t.x,i=t.y;this.isTransposed&&(e=[i,n],n=e[0],i=e[1]);var r=this.convertDim(n,"x"),a=this.a*r,o=this.convertDim(i,"y");return{x:this.center.x+Math.cos(r)*(a+o),y:this.center.y+Math.sin(r)*(a+o)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,i=xt["c"].subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),r=xt["a"].angleTo(i,[1,0],!0),a=r*this.a;xt["c"].length(i)this.width/i?(e=this.width/i,this.circleCenter={x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*e*r}):(e=this.height/r,this.circleCenter={x:this.center.x-(.5-a)*e*i,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),i=t.x,r=t.y;return this.isTransposed&&(e=[r,i],i=e[0],r=e[1]),i=this.convertDim(i,"x"),r=this.convertDim(r,"y"),{x:n.x+Math.cos(i)*r,y:n.y+Math.sin(i)*r}},e.prototype.invertPoint=function(t){var e,n=this.getCenter(),i=[t.x-n.x,t.y-n.y],r=this,a=r.startAngle,o=r.endAngle;this.isReflect("x")&&(e=[o,a],a=e[0],o=e[1]);var s=[1,0,0,0,1,0,0,0,1];xt["a"].leftRotate(s,s,a);var c=[1,0,0];xt["d"].transformMat3(c,c,s);var l=[c[0],c[1]],u=xt["a"].angleTo(l,i,o0?f:-f;var p=this.invertDim(h,"y"),d={x:0,y:0};return d.x=this.isTransposed?p:f,d.y=this.isTransposed?f:p,d},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],i=[0,Math.sin(t),Math.sin(e)],r=Math.min(t,e);rt.x?t.x:e,n=nt.y?t.y:i,r=r=i&&t<=r}function Qt(t,e,n){if(Object(E["Q"])(t))return t.padEnd(e,n);if(Object(E["C"])(t)){var i=t.length;if(i=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;et.minX&&this.minYt.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}();function te(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}function ee(t){if(t.isPolar&&!t.isTransposed)return(t.endAngle-t.startAngle)*t.getRadius();var e=t.convert({x:0,y:0}),n=t.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function ne(t){if(t.isPolar){var e=t.startAngle,n=t.endAngle;return n-e===2*Math.PI}return!1}function ie(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function re(t,e){var n=!1;if(t)if("theta"===t.type){var i=t.start,r=t.end;n=Kt(e.x,i.x,r.x)&&Kt(e.y,i.y,r.y)}else{var a=t.invert(e);n=Kt(a.x,0,1)&&Kt(a.y,0,1)}return n}function ae(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function oe(t,e){void 0===e&&(e=0);var n,i=t.start,r=t.end,a=t.getWidth(),o=t.getHeight();if(t.isPolar){var s=t.startAngle,c=t.endAngle,l=t.getCenter(),u=t.getRadius();return{type:"path",startState:{path:Wt(l.x,l.y,u+e,s,s)},endState:function(t){var n=(c-s)*t+s,i=Wt(l.x,l.y,u+e,s,n);return{path:i}},attrs:{path:Wt(l.x,l.y,u+e,s,c)}}}return n=t.isTransposed?{height:o+2*e}:{width:a+2*e},{type:"rect",startState:{x:i.x-e,y:r.y-e,width:t.isTransposed?a+2*e:0,height:t.isTransposed?0:o+2*e},endState:n,attrs:{x:i.x-e,y:r.y-e,width:a+2*e,height:o+2*e}}}function se(t,e){void 0===e&&(e=0);var n=t.start,i=t.end,r=t.getWidth(),a=t.getHeight(),o=Math.min(n.x,i.x),s=Math.min(n.y,i.y);return $t.fromRange(o-e,s-e,o+r+e,s+a+e)}var ce=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function le(t){var e="linear";return ce.test(t)?e="timeCat":Object(E["Q"])(t)&&(e="cat"),e}function ue(t,e,n,i){return void 0===e&&(e={}),e.type?e.type:"identity"!==t.type&&D.includes(n)&&["interval"].includes(i)||t.isCategory?"cat":t.type}function he(t,e,n){var i=e||[];if(Object(E["M"])(t)||Object(E["K"])(Object(E["o"])(i,t))&&Object(E["G"])(n)){var r=Object(vt["c"])("identity");return new r({field:t.toString(),values:[t]})}var a=Object(E["yb"])(i,t),o=Object(E["s"])(n,"type",le(a[0])),s=Object(vt["c"])(o);return new s(Object(F["a"])({field:t,values:a},n))}function fe(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);t.change(n)}}function pe(t){return t.alias||t.field}function de(t,e,n){var i,r=t.values,a=r.length;if(1===a)i=[.5,1];else{var o=1,s=0;ne(e)?e.isTransposed?(o=Object(E["s"])(n,"widthRatio.multiplePie",1/1.3),s=1/a*o,i=[s/2,1-s/2]):i=[0,1-1/a]:(s=1/a/2,i=[s,1-s])}return i}function ge(t){var e=t.values.filter((function(t){return!Object(E["K"])(t)&&!isNaN(t)}));return Math.max.apply(Math,Object(F["g"])(Object(F["g"])([],Object(F["e"])(e),!1),[Object(E["K"])(t.max)?-1/0:t.max],!1))}function ve(t){var e,n;switch(t){case A.TOP:e={x:0,y:1},n={x:1,y:1};break;case A.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case A.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case A.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}function ye(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}function me(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=ve(e):t.isPolar&&(n=ye(t));var i=n.start,r=n.end;return{start:t.convert(i),end:t.convert(r)}}function be(t){var e=t.start,n=t.end;return e.x===n.x}function xe(t,e){var n=t.start,i=t.end,r=be(t);return r?(n.y-i.y)*(e.x-n.x)>0?1:-1:(i.x-n.x)*(n.y-e.y)>0?-1:1}function Oe(t,e){var n=Object(E["s"])(t,["components","axis"],{});return Object(E["h"])({},Object(E["s"])(n,["common"],{}),Object(E["h"])({},Object(E["s"])(n,[e],{})))}function je(t,e,n){var i=Object(E["s"])(t,["components","axis"],{});return Object(E["h"])({},Object(E["s"])(i,["common","title"],{}),Object(E["h"])({},Object(E["s"])(i,[e,"title"],{})),n)}function we(t){var e=t.x,n=t.y,i=t.circleCenter,r=n.start>n.end,a=t.isTransposed?t.convert({x:r?0:1,y:0}):t.convert({x:0,y:r?0:1}),o=[a.x-i.x,a.y-i.y],s=[1,0],c=a.y>i.y?xt["c"].angle(o,s):-1*xt["c"].angle(o,s),l=c+(e.end-e.start),u=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2));return{center:i,radius:u,startAngle:c,endAngle:l}}function Ce(t,e){return Object(E["D"])(t)?!1!==t&&{}:Object(E["s"])(t,[e])}function Me(t,e){return Object(E["s"])(t,"position",e)}function Se(t,e){return Object(E["s"])(e,["title","text"],pe(t))}var Ae=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=Object(E["h"])({},this.getDefaultCfg(),e)}return t.prototype.init=function(){this.container||(this.container=this.createContainer());var t=this.view.getData();this.facets=this.generateFacets(t)},t.prototype.render=function(){this.renderViews()},t.prototype.update=function(){},t.prototype.clear=function(){this.clearFacetViews()},t.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},t.prototype.facetToView=function(t){var e=t.region,n=t.data,i=t.padding,r=void 0===i?this.cfg.padding:i,a=this.view.createView({region:e,padding:r});a.data(n||[]),t.view=a,this.beforeEachView(a,t);var o=this.cfg.eachView;return o&&o(a,t),this.afterEachView(a,t),a},t.prototype.createContainer=function(){var t=this.view.getLayer(S.FORE);return t.addGroup()},t.prototype.renderViews=function(){this.createFacetViews()},t.prototype.createFacetViews=function(){var t=this;return this.facets.map((function(e){return t.facetToView(e)}))},t.prototype.clearFacetViews=function(){var t=this;Object(E["j"])(this.facets,(function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)}))},t.prototype.parseSpacing=function(){var t=this.view.viewBBox,e=t.width,n=t.height,i=this.cfg.spacing;return i.map((function(t,i){return Object(E["M"])(t)?t/(0===i?e:n):parseFloat(t)/100}))},t.prototype.getFieldValues=function(t,e){var n=[],i={};return Object(E["j"])(t,(function(t){var r=t[e];Object(E["K"])(r)||i[r]||(n.push(r),i[r]=!0)})),n},t.prototype.getRegion=function(t,e,n,i){var r=Object(F["e"])(this.parseSpacing(),2),a=r[0],o=r[1],s=(1+a)/(0===e?1:e)-a,c=(1+o)/(0===t?1:t)-o,l={x:(s+a)*n,y:(c+o)*i},u={x:l.x+s,y:l.y+c};return{start:l,end:u}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){var t=this.view.getTheme().fontFamily;return{style:{fontSize:14,fill:"#666",fontFamily:t}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),i=n.coordinate,r=t.geometries,a=Object(E["s"])(i,"type","rect");if("rect"===a&&r.length){Object(E["K"])(n.axes)&&(n.axes={});var o=n.axes,s=Object(F["e"])(r[0].getXYFields(),2),c=s[0],l=s[1],u=Ce(o,c),h=Ce(o,l);!1!==u&&(n.axes[c]=this.getXAxisOption(c,o,u,e)),!1!==h&&(n.axes[l]=this.getYAxisOption(l,o,h,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return Object(E["k"])(t,(function(t){var n=t.field,i=t.value;return!(!Object(E["K"])(i)&&n)||e[n]===i}))}},t}(),ke={},Fe=function(t){return ke[Object(E["V"])(t)]},Ee=function(t,e){ke[Object(E["V"])(t)]=e},Ie=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){Object(E["b"])(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}(),Te=Ie,Pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.callback=null},e}(Te),Be=Pe,Le={};function De(t,e){var n=Le[t],i=null;if(n){var r=n.ActionClass,a=n.cfg;i=new r(e,a),i.name=t,i.init()}return i}function Re(t){var e=Le[t];return Object(E["s"])(e,"ActionClass")}function ze(t,e,n){Le[t]={ActionClass:e,cfg:n}}function _e(t,e){var n=new Be(e);return n.callback=t,n.name="callback",n}function Ne(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var i=1,r=t.length;i=o[l]?1:0,f=u>Math.PI?1:0,p=n.convert(s),d=ie(n,p);if(d>=.5)if(u===2*Math.PI){var g={x:(s.x+o.x)/2,y:(s.y+o.y)/2},v=n.convert(g);c.push(["A",d,d,0,f,h,v.x,v.y]),c.push(["A",d,d,0,f,h,p.x,p.y])}else c.push(["A",d,d,0,f,h,p.x,p.y]);return c}function We(t){Object(E["j"])(t,(function(e,n){var i=e;if("a"===i[0].toLowerCase()){var r=t[n-1],a=t[n+1];a&&"a"===a[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&a&&"l"===a[0].toLowerCase()&&(a[0]="M")}}))}var Xe=function(t,e,n,i){var r,a,o,s,c,l,u,h,f=[],p=!!i;if(p){r=Object(F["e"])(i,2),s=r[0],c=r[1];for(var d=0,g=t.length;d2&&(n.push([i].concat(a.splice(0,2))),o="l",i="m"===i?"l":"L"),"o"===o&&1===a.length&&n.push([i,a[0]]),"r"===o)n.push([i].concat(a));else while(a.length>=e[o])if(n.push([i].concat(a.splice(0,e[o]))),!e[o])break;return""})),n}Math.PI;var en=function(t,e,n){return t>=e&&t<=n};function nn(t,e,n,i){var r=.001,a={x:n.x-t.x,y:n.y-t.y},o={x:e.x-t.x,y:e.y-t.y},s={x:i.x-n.x,y:i.y-n.y},c=o.x*s.y-o.y*s.x,l=c*c,u=o.x*o.x+o.y*o.y,h=s.x*s.x+s.y*s.y,f=null;if(l>r*u*h){var p=(a.x*s.y-a.y*s.x)/c,d=(a.x*o.y-a.y*o.x)/c;en(p,0,1)&&en(d,0,1)&&(f={x:t.x+p*o.x,y:t.y+p*o.y})}return f}var rn=1e-6;function an(t){return Math.abs(t)0!==an(s[1]-n)>0&&an(e-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(i=!i)}return i}function cn(t){for(var e=[],n=t.length,i=0;i1){var o=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function ln(t,e){var n=!1;return Object(E["j"])(t,(function(t){if(nn(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function un(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function hn(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY0&&r>0&&(i>=e||r>=e)}function gn(t,e){var n=t.getCanvasBBox();return dn(t,e)?n:null}function vn(t,e){var n=t.event.maskShapes;return n.map((function(t){return gn(t,e)})).filter((function(t){return!!t}))}function yn(t,e){var n=t.event,i=n.target;return mn(i,e)}function mn(t,e){return dn(t,e)?t.attr("path"):null}function bn(t,e){var n=t.event.maskShapes;return n.map((function(t){return mn(t,e)}))}function xn(t){var e,n=t.event,i=n.target;return i&&(e=i.get("element")),e}function On(t){var e,n=t.event,i=n.target;return i&&(e=i.get("delegateObject")),e}function jn(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function wn(t){return t&&t.component&&t.component.isList()}function Cn(t){return t&&t.component&&t.component.isSlider()}function Mn(t){var e=t.event,n=e.target;return n&&"mask"===(null===n||void 0===n?void 0:n.get("name"))||Sn(t)}function Sn(t){var e;return"multi-mask"===(null===(e=t.event.target)||void 0===e?void 0:e.get("name"))}function An(t,e){var n=t.event.target;if(Sn(t))return kn(t,e);if("path"===n.get("type")){var i=yn(t,e);if(!i)return;return _n(t.view,i)}var r=pn(t,e);return r?Rn(t.view,r):null}function kn(t,e){var n=t.event.target;if("path"===n.get("type")){var i=bn(t,e);return i.length>0?i.flatMap((function(e){return _n(t.view,e)})):null}var r=vn(t,e);return r.length>0?r.flatMap((function(e){return Rn(t.view,e)})):null}function Fn(t,e,n){if(Sn(t))return In(t,e,n);var i=pn(t,n);return i?En(i,t,e):null}function En(t,e,n){var i=e.view,r=Hn(i,n,{x:t.x,y:t.y}),a=Hn(i,n,{x:t.maxX,y:t.maxY}),o={minX:r.x,minY:r.y,maxX:a.x,maxY:a.y};return Rn(n,o)}function In(t,e,n){var i=vn(t,n);return i.length>0?i.flatMap((function(n){return En(n,t,e)})):null}function Tn(t){var e=t.geometries,n=[];return Object(E["j"])(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&Object(E["j"])(t.views,(function(t){n=n.concat(Tn(t))})),n}function Pn(t,e,n){var i=Tn(t);return i.filter((function(t){return Ln(t,e)===n}))}function Bn(t,e){var n=t.geometries,i=[];return Object(E["j"])(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));i=i.concat(n)})),i}function Ln(t,e){var n,i=t.getModel(),r=i.data;return n=Object(E["C"])(r)?r[0][e]:r[e],n}function Dn(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=e.x&&t.y<=e.y&&t.maxY>e.y}function Wn(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function Xn(t,e){var n=t.getCoordinate();return n.invert(e)}function Hn(t,e,n){var i=Xn(t,n);return e.getCoordinate().convert(i)}function qn(t,e,n,i){var r=!1;return Object(E["j"])(t,(function(t){if(t[n]===e[n]&&t[i]===e[i])return r=!0,!1})),r}function Un(t,e){var n=t.getScaleByField(e);return!n&&t.views&&Object(E["j"])(t.views,(function(t){if(n=Un(t,e),n)return!1})),n}var Kn=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;if(t){if(t.target instanceof HTMLElement){var e=this.view.getCanvas(),n=e.getPointByClient(t.clientX,t.clientY);return n}return{x:t.x,y:t.y}}return null},t.prototype.getCurrentShape=function(){return Object(E["s"])(this.event,["gEvent","shape"])},t.prototype.isInPlot=function(){var t=this.getCurrentPoint();return!!t&&this.view.isPointInPlot(t)},t.prototype.isInShape=function(t){var e=this.getCurrentShape();return!!e&&e.get("name")===t},t.prototype.isInComponent=function(t){var e=Nn(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var i=e.getBBox();return t?e.get("name")===t&&Vn(i,n):Vn(i,n)}))},t.prototype.destroy=function(){Object(E["j"])(this.actions.slice(),(function(t){t.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},t}(),Qn=Kn,Zn=function(){function t(t,e){this.view=t,this.cfg=e}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t}(),Jn=Zn;function $n(t,e,n){var i=t.split(":"),r=i[0],a=e.getAction(r)||De(r,e);if(!a)throw new Error("There is no action named ".concat(r));var o=i[1];return{action:a,methodName:o,arg:n}}function ti(t){var e=t.action,n=t.methodName,i=t.arg;if(!e[n])throw new Error("Action(".concat(e.name,") doesn't have a method called ").concat(n));e[n](i)}var ei={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},ni=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.callbackCaches={},i.emitCaches={},i.steps=n,i}return Object(F["c"])(e,t),e.prototype.init=function(){this.initContext(),t.prototype.init.call(this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;Object(E["j"])(this.steps,(function(e,n){Object(E["j"])(e,(function(e){var i=t.getActionCallback(n,e);i&&t.bindEvent(e.trigger,i)}))}))},e.prototype.clearEvents=function(){var t=this;Object(E["j"])(this.steps,(function(e,n){Object(E["j"])(e,(function(e){var i=t.getActionCallback(n,e);i&&t.offEvent(e.trigger,i)}))}))},e.prototype.initContext=function(){var t=this.view,e=new Qn(t);this.context=e;var n=this.steps;Object(E["j"])(n,(function(t){Object(E["j"])(t,(function(t){if(Object(E["I"])(t.action))t.actionObject={action:_e(t.action,e),methodName:"execute"};else if(Object(E["Q"])(t.action))t.actionObject=$n(t.action,e,t.arg);else if(Object(E["C"])(t.action)){var n=t.action,i=Object(E["C"])(t.arg)?t.arg:[t.arg];t.actionObject=[],Object(E["j"])(n,(function(n,r){t.actionObject.push($n(n,e,i[r]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===ei.SHOW_ENABLE)return!0;if(t===ei.PROCESSING)return e===ei.START;if(t===ei.START)return e!==ei.PROCESSING;if(t===ei.END)return e===ei.PROCESSING||e===ei.START;if(t===ei.ROLLBACK){if(n[ei.END])return e===ei.END;if(e===ei.START)return!0}return!1},e.prototype.isAllowExecute=function(t,e){if(this.isAllowStep(t)){var n=this.getKey(t,e);return(!e.once||!this.emitCaches[n])&&(!e.isEnable||e.isEnable(this.context))}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,e){t!==ei.SHOW_ENABLE&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,e);this.emitCaches[n]=!0},e.prototype.getKey=function(t,e){return t+e.trigger+e.action},e.prototype.getActionCallback=function(t,e){var n=this,i=this.context,r=this.callbackCaches,a=e.actionObject;if(e.action&&a){var o=this.getKey(t,e);if(!r[o]){var s=function(r){i.event=r,n.isAllowExecute(t,e)?(Object(E["C"])(a)?Object(E["j"])(a,(function(t){i.event=r,ti(t)})):(i.event=r,ti(a)),n.afterExecute(t,e),e.callback&&(i.event=r,e.callback(i))):i.event=null};e.debounce?r[o]=Object(E["g"])(s,e.debounce.wait,e.debounce.immediate):e.throttle?r[o]=Object(E["qb"])(s,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):r[o]=s}return r[o]}return null},e.prototype.bindEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.addEventListener(n[1],e):"document"===n[0]?document.addEventListener(n[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.removeEventListener(n[1],e):"document"===n[0]?document.removeEventListener(n[1],e):this.view.off(t,e)},e}(Jn),ii=ni,ri={};function ai(t){return ri[Object(E["V"])(t)]}function oi(t,e){ri[Object(E["V"])(t)]=e}function si(t,e,n){var i=ai(t);if(!i)return null;if(Object(E["P"])(i)){var r=Object(E["db"])(Object(E["e"])(i),n);return new ii(e,r)}var a=i;return new a(e,n)}function ci(t){return{title:{autoRotate:!0,position:"center",spacing:t.axisTitleSpacing,style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily},iconStyle:{fill:t.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:t.axisLabelOffset,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0}}function li(t){return{title:null,marker:{symbol:"circle",spacing:t.legendMarkerSpacing,style:{r:t.legendCircleMarkerSize,fill:t.legendMarkerColor}},itemName:{spacing:5,style:{fill:t.legendItemNameFillColor,fontFamily:t.fontFamily,fontSize:t.legendItemNameFontSize,lineHeight:t.legendItemNameLineHeight,fontWeight:t.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:t.legendPageNavigatorMarkerSize,inactiveFill:t.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:t.legendPageNavigatorMarkerInactiveFillOpacity,fill:t.legendPageNavigatorMarkerFillColor,opacity:t.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:t.legendPageNavigatorTextFillColor,fontSize:t.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:t.legendItemSpacing,itemMarginBottom:t.legendItemMarginBottom,padding:t.legendPadding}}function ui(t){var e,n={point:{default:{fill:t.pointFillColor,r:t.pointSize,stroke:t.pointBorderColor,lineWidth:t.pointBorder,fillOpacity:t.pointFillOpacity},active:{stroke:t.pointActiveBorderColor,lineWidth:t.pointActiveBorder},selected:{stroke:t.pointSelectedBorderColor,lineWidth:t.pointSelectedBorder},inactive:{fillOpacity:t.pointInactiveFillOpacity,strokeOpacity:t.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:t.hollowPointFillColor,lineWidth:t.hollowPointBorder,stroke:t.hollowPointBorderColor,strokeOpacity:t.hollowPointBorderOpacity,r:t.hollowPointSize},active:{stroke:t.hollowPointActiveBorderColor,strokeOpacity:t.hollowPointActiveBorderOpacity},selected:{lineWidth:t.hollowPointSelectedBorder,stroke:t.hollowPointSelectedBorderColor,strokeOpacity:t.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:t.hollowPointInactiveBorderOpacity}},area:{default:{fill:t.areaFillColor,fillOpacity:t.areaFillOpacity,stroke:null},active:{fillOpacity:t.areaActiveFillOpacity},selected:{fillOpacity:t.areaSelectedFillOpacity},inactive:{fillOpacity:t.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:t.hollowAreaBorderColor,lineWidth:t.hollowAreaBorder,strokeOpacity:t.hollowAreaBorderOpacity},active:{fill:null,lineWidth:t.hollowAreaActiveBorder},selected:{fill:null,lineWidth:t.hollowAreaSelectedBorder},inactive:{strokeOpacity:t.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:t.intervalFillColor,fillOpacity:t.intervalFillOpacity},active:{stroke:t.intervalActiveBorderColor,lineWidth:t.intervalActiveBorder},selected:{stroke:t.intervalSelectedBorderColor,lineWidth:t.intervalSelectedBorder},inactive:{fillOpacity:t.intervalInactiveFillOpacity,strokeOpacity:t.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:t.hollowIntervalFillColor,stroke:t.hollowIntervalBorderColor,lineWidth:t.hollowIntervalBorder,strokeOpacity:t.hollowIntervalBorderOpacity},active:{stroke:t.hollowIntervalActiveBorderColor,lineWidth:t.hollowIntervalActiveBorder,strokeOpacity:t.hollowIntervalActiveBorderOpacity},selected:{stroke:t.hollowIntervalSelectedBorderColor,lineWidth:t.hollowIntervalSelectedBorder,strokeOpacity:t.hollowIntervalSelectedBorderOpacity},inactive:{stroke:t.hollowIntervalInactiveBorderColor,lineWidth:t.hollowIntervalInactiveBorder,strokeOpacity:t.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:t.lineBorderColor,lineWidth:t.lineBorder,strokeOpacity:t.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:t.lineActiveBorder},selected:{lineWidth:t.lineSelectedBorder},inactive:{strokeOpacity:t.lineInactiveBorderOpacity}}},i=ci(t),r=li(t);return{background:t.backgroundColor,defaultColor:t.brandColor,subColor:t.subColor,semanticRed:t.paletteSemanticRed,semanticGreen:t.paletteSemanticGreen,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,sequenceColors:t.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:function(t){var e=t.geometry.coordinate;if(e.isPolar&&e.isTransposed){var i=Ht(t.getModel(),e),r=i.startAngle,a=i.endAngle,o=(r+a)/2,s=7.5,c=s*Math.cos(o),l=s*Math.sin(o);return{matrix:xt["a"].transform(null,[["t",c,l]])}}return n.interval.selected}}},"hollow-rect":{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},line:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},tick:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},funnel:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}},pyramid:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},line:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},dot:{default:{style:Object(F["a"])(Object(F["a"])({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:Object(F["a"])(Object(F["a"])({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:Object(F["a"])(Object(F["a"])({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:Object(F["a"])(Object(F["a"])({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:Object(F["a"])(Object(F["a"])({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:Object(F["a"])(Object(F["a"])({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:Object(F["a"])(Object(F["a"])({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:Object(F["a"])(Object(F["a"])({},n.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hvh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},polygon:{polygon:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},point:{circle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},square:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},bowtie:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},diamond:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},hexagon:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},triangle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"triangle-down":{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"hollow-circle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-square":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-bowtie":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-diamond":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-hexagon":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle-down":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},cross:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},tick:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},plus:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},hyphen:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},line:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}}},area:{area:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},smooth:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},line:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"smooth-line":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}},schema:{candle:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},box:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}}},edge:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},arc:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},violin:{violin:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hollow:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"hollow-smooth":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}}},components:{axis:{common:i,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:Object(E["h"])({},i.grid,{line:{type:"line"}})},radius:{title:null,grid:Object(E["h"])({},i.grid,{line:{type:"circle"}})}},legend:{common:r,right:{layout:"vertical",padding:t.legendVerticalPadding},left:{layout:"vertical",padding:t.legendVerticalPadding},top:{layout:"horizontal",padding:t.legendHorizontalPadding},bottom:{layout:"horizontal",padding:t.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:t.sliderRailHeight,defaultLength:t.sliderRailWidth,style:{fill:t.sliderRailFillColor,stroke:t.sliderRailBorderColor,lineWidth:t.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:t.sliderLabelTextFillColor,fontSize:t.sliderLabelTextFontSize,lineHeight:t.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},handler:{size:t.sliderHandlerWidth,style:{fill:t.sliderHandlerFillColor,stroke:t.sliderHandlerBorderColor}},slidable:!0,padding:r.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:t.tooltipCrosshairsBorderColor,lineWidth:t.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e["".concat(Tt["TOOLTIP_CSS_CONST"].CONTAINER_CLASS)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:t.tooltipContainerFillColor,opacity:t.tooltipContainerFillOpacity,boxShadow:t.tooltipContainerShadow,borderRadius:"".concat(t.tooltipContainerBorderRadius,"px"),color:t.tooltipTextFillColor,fontSize:"".concat(t.tooltipTextFontSize,"px"),fontFamily:t.fontFamily,lineHeight:"".concat(t.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},e["".concat(Tt["TOOLTIP_CSS_CONST"].TITLE_CLASS)]={marginBottom:"12px",marginTop:"12px"},e["".concat(Tt["TOOLTIP_CSS_CONST"].LIST_CLASS)]={margin:0,listStyleType:"none",padding:0},e["".concat(Tt["TOOLTIP_CSS_CONST"].LIST_ITEM_CLASS)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e["".concat(Tt["TOOLTIP_CSS_CONST"].MARKER_CLASS)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e["".concat(Tt["TOOLTIP_CSS_CONST"].VALUE_CLASS)]={display:"inline-block",float:"right",marginLeft:"30px"},e)},annotation:{arc:{style:{stroke:t.annotationArcBorderColor,lineWidth:t.annotationArcBorder},animate:!0},line:{style:{stroke:t.annotationLineBorderColor,lineDash:t.annotationLineDash,lineWidth:t.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textAlign:"start",fontFamily:t.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:t.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:t.annotationRegionBorder,stroke:t.annotationRegionBorderColor,fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:t.brandColor,lineWidth:2}},line:{style:{stroke:t.annotationLineBorderColor,lineWidth:t.annotationLineBorder},length:t.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:t.cSliderBackgroundFillColor,opacity:t.cSliderBackgroundFillOpacity},foregroundStyle:{fill:t.cSliderForegroundFillColor,opacity:t.cSliderForegroundFillOpacity},handlerStyle:{width:t.cSliderHandlerWidth,height:t.cSliderHandlerHeight,fill:t.cSliderHandlerFillColor,opacity:t.cSliderHandlerFillOpacity,stroke:t.cSliderHandlerBorderColor,lineWidth:t.cSliderHandlerBorder,radius:t.cSliderHandlerBorderRadius,highLightFill:t.cSliderHandlerHighlightFillColor},textStyle:{fill:t.cSliderTextFillColor,opacity:t.cSliderTextFillOpacity,fontSize:t.cSliderTextFontSize,lineHeight:t.cSliderTextLineHeight,fontWeight:t.cSliderTextFontWeight,stroke:t.cSliderTextBorderColor,lineWidth:t.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:t.scrollbarTrackFillColor,thumbColor:t.scrollbarThumbFillColor}},hover:{style:{thumbColor:t.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:t.labelFillColor,fontSize:t.labelFontSize,fontFamily:t.fontFamily,stroke:t.labelBorderColor,lineWidth:t.labelBorder},fillColorDark:t.labelFillColorDark,fillColorLight:t.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:t.innerLabelFillColor,fontSize:t.innerLabelFontSize,fontFamily:t.fontFamily,stroke:t.innerLabelBorderColor,lineWidth:t.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:t.overflowLabelFillColor,fontSize:t.overflowLabelFontSize,fontFamily:t.fontFamily,stroke:t.overflowLabelBorderColor,lineWidth:t.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:t.labelLineBorder}},autoRotate:!0}}}var hi={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},fi={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},pi=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],di=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],gi=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],vi=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?pi:e,i=t.paletteQualitative20,r=void 0===i?di:i,a=t.brandColor,o=void 0===a?n[0]:a,s={backgroundColor:"transparent",brandColor:o,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:n,paletteQualitative20:r,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:gi,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:hi[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:hi[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:fi[85],axisTickLineBorderColor:hi[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:hi[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:hi[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:hi[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:hi[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:o,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:hi[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:hi[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:hi[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:hi[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:hi[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:hi[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:hi[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:hi[25],annotationArcBorderColor:hi[15],annotationArcBorder:1,annotationLineBorderColor:hi[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:hi[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:hi[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:hi[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:hi[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:hi[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:fi[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:hi[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:fi[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:hi[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:o,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:fi[100],pointBorderOpacity:1,pointActiveBorderColor:hi[100],pointSelectedBorder:2,pointSelectedBorderColor:hi[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:o,hollowPointBorderOpacity:.95,hollowPointFillColor:fi[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:hi[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:hi[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:o,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:o,areaFillOpacity:.25,areaActiveFillColor:o,areaActiveFillOpacity:.5,areaSelectedFillColor:o,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:o,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:hi[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:hi[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:o,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:hi[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:hi[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:o,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:fi[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:hi[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:hi[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return Object(F["a"])(Object(F["a"])({},s),t)};vi();function yi(t){var e=t.styleSheet,n=void 0===e?{}:e,i=Object(F["f"])(t,["styleSheet"]),r=vi(n);return Object(E["h"])({},ui(r),i)}var mi=yi({}),bi={default:mi};function xi(t){return Object(E["s"])(bi,Object(E["V"])(t),bi.default)}function Oi(t,e){bi[Object(E["V"])(t)]=yi(e)}function ji(t,e,n){var i=n.translate(t),r=n.translate(e);return Object(E["N"])(i,r)}function wi(t,e){var n=e.coordinate,i=e.getXScale(),r=i.range,a=r[r.length-1],o=r[0],s=n.invert(t),c=s.x;return n.isPolar&&c>(1+a)/2&&(c=o),i.translate(i.invert(c))}function Ci(t,e,n){var i=n.coordinate,r=n.getYScale(),a=r.field,o=i.invert(e),s=r.invert(o.y),c=Object(E["m"])(t,(function(t){var e=t[R];return e[a][0]<=s&&e[a][1]>=s}));return c||t[t.length-1]}var Mi=Object(E["ab"])((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,i=t.translate(e[0]),r=i,a=0;ar&&(r=s)}return(r-i)/(n-1)}));function Si(t,e,n){var i=e.getAttribute("position"),r=i.getFields(),a=e.scales,o=Object(E["I"])(n)||!n?r[0]:n,s=a[o],c=s?s.getText(t[o]):t[o]||o;return Object(E["I"])(n)?n(c,t):c}function Ai(t){var e=Object(E["xb"])(t.attributes);return Object(E["l"])(e,(function(t){return Object(E["f"])(D,t.type)}))}function ki(t){var e,n,i,r=Ai(t);try{for(var a=Object(F["i"])(r),o=a.next();!o.done;o=a.next()){var s=o.value,c=s.getScale(s.type);if(c&&c.isLinear){var l=Object(E["s"])(t.scaleDefs,c.field),u=ue(c,l,s.type,t.type);if("cat"!==u){i=c;break}}}}catch(p){e={error:p}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}var h=t.getXScale(),f=t.getYScale();return i||f||h}function Fi(t,e){var n=e.field,i=t[n];if(Object(E["C"])(i)){var r=i.map((function(t){return e.getText(t)}));return r.join("-")}return e.getText(i)}function Ei(t,e){var n,i=e.getGroupScales();if(i.length&&(n=i[0]),n){var r=n.field;return n.getText(t[r])}var a=ki(e);return pe(a)}function Ii(t,e,n){if(0===e.length)return null;var i=n.type,r=n.getXScale(),a=n.getYScale(),o=r.field,s=a.field,c=null;if("heatmap"===i||"point"===i){for(var l=n.coordinate,u=l.invert(t),h=r.invert(u.x),f=a.invert(u.y),p=1/0,d=0;d=x){if(!C){c=M;break}Object(E["C"])(c)||(c=[]),c.push(M)}}Object(E["C"])(c)&&(c=Ci(c,t,n))}else{var S=void 0;if(r.isLinear||"timeCat"===r.type){if((x>r.translate(w)||xr.max||xMath.abs(r.translate(S[R][o])-x)&&(b=S)}var T=Mi(n.getXScale());return!c&&Math.abs(r.translate(b[R][o])-x)<=T/2&&(c=b),c}function Ti(t,e,n,i){var r,a;void 0===n&&(n=""),void 0===i&&(i=!1);var o,s,c=t[R],l=Si(c,e,n),u=e.tooltipOption,h=e.theme.defaultColor,f=[];function p(e,n){if(i||!Object(E["K"])(n)&&""!==n){var r={title:l,data:c,mappingData:t,name:e,value:n,color:t.color||h,marker:!0};f.push(r)}}if(Object(E["O"])(u)){var d=u.fields,g=u.callback;if(g){var v=d.map((function(e){return t[R][e]})),y=g.apply(void 0,Object(F["g"])([],Object(F["e"])(v),!1)),m=Object(F["a"])({data:t[R],mappingData:t,title:l,color:t.color||h,marker:!0},y);f.push(m)}else{var b=e.scales;try{for(var x=Object(F["i"])(d),O=x.next();!O.done;O=x.next()){var j=O.value;if(!Object(E["K"])(c[j])){var w=b[j];o=pe(w),s=w.getText(c[j]),p(o,s)}}}catch(M){r={error:M}}finally{try{O&&!O.done&&(a=x.return)&&a.call(x)}finally{if(r)throw r.error}}}}else{var C=ki(e);s=Fi(c,C),o=Ei(c,e),p(o,s)}return f}function Pi(t,e,n,i){var r,a,o=i.showNil,s=[],c=t.dataArray;if(!Object(E["G"])(c)){t.sort(c);try{for(var l=Object(F["i"])(c),u=l.next();!u.done;u=l.next()){var h=u.value,f=Ii(e,h,t);if(f){var p=t.getElementId(f),d=t.elementsMap[p];if("heatmap"===t.type||d.visible){var g=Ti(f,t,n,o);g.length&&s.push(g)}}}}catch(v){r={error:v}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}}return s}function Bi(t,e,n,i){var r=i.showNil,a=[],o=t.container,s=o.getShape(e.x,e.y);if(s&&s.get("visible")&&s.get("origin")){var c=s.get("origin").mappingData,l=Ti(c,t,n,r);l.length&&a.push(l)}return a}function Li(t,e,n){var i,r,a=[],o=t.geometries,s=n.shared,c=n.title,l=n.reversed;try{for(var u=Object(F["i"])(o),h=u.next();!h.done;h=u.next()){var f=h.value;if(f.visible&&!1!==f.tooltipOption){var p=f.type,d=void 0;d=["point","edge","polygon"].includes(p)?Bi(f,e,c,n):["area","line","path","heatmap"].includes(p)||!1!==s?Pi(f,e,c,n):Bi(f,e,c,n),d.length&&(l&&d.reverse(),a.push(d))}}}catch(g){i={error:g}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}return a}function Di(t,e,n){var i,r,a=Li(t,e,n);try{for(var o=Object(F["i"])(t.views),s=o.next();!s.done;s=o.next()){var c=s.value;a=a.concat(Li(c,e,n))}}catch(l){i={error:l}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function Ri(t){return!Object(E["M"])(t)&&!Object(E["C"])(t)}function zi(t){void 0===t&&(t=0);var e=Object(E["C"])(t)?t:[t];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=Object(F["g"])(Object(F["g"])([],Object(F["e"])(e),!1),Object(F["e"])(e),!1);break;case 3:e=Object(F["g"])(Object(F["g"])([],Object(F["e"])(e),!1),[e[1]],!1);break;default:e=e.slice(0,4);break}return e}var _i={};function Ni(t,e){_i[t]=e}function Yi(){return Object.keys(_i)}function Gi(t){return _i[t]}var Vi=function(){function t(t){this.option=this.wrapperOption(t)}return t.prototype.update=function(t){return this.option=this.wrapperOption(t),this},t.prototype.hasAction=function(t){var e=this.option.actions;return Object(E["nb"])(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,i=n.type,r=n.cfg,a="theta"===i,o=Object(F["a"])({start:t,end:e},r),s=Et(a?"polar":i);return this.coordinate=new s(o),this.coordinate.type=i,a&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},t.prototype.adjust=function(t,e){return this.coordinate.update({start:t,end:e}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},t.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.option.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},t.prototype.getOption=function(){return this.option},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.wrapperOption=function(t){return Object(F["a"])({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;Object(E["j"])(n,(function(n){var i,r=Object(F["e"])(n),a=r[0],o=r.slice(1),s=!!Object(E["K"])(t)||t.includes(a);s&&(i=e.coordinate)[a].apply(i,Object(F["g"])([],Object(F["e"])(o),!1))}))},t}(),Wi=Vi,Xi=function(){function t(t,e,n){this.view=t,this.gEvent=e,this.data=n,this.type=e.type}return t.fromData=function(e,n,i){return new t(e,new J["Event"](n,{}),i)},Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}(),Hi=Xi;function qi(t){var e=t.getController("axis"),n=t.getController("legend"),i=t.getController("annotation"),r=t.getController("slider"),a=t.getController("scrollbar");[e,r,a,n,i].forEach((function(t){t&&t.layout()}))}var Ui=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,i){var r=n,a=this.getScaleMeta(i);if(0===e.length&&a){var o=a.scale,s={type:o.type};o.isCategory&&(s.values=o.values),r=Object(E["h"])(s,a.scaleDef,n)}var c=he(t,e,r);return this.cacheScale(c,n,i),c},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach((function(i,r){var a=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,s=[];Object(E["j"])(i,(function(t){var e=n.getScale(t);o=Object(E["M"])(e.max)?Math.max(o,e.max):o,a=Object(E["M"])(e.min)?Math.min(a,e.min):a,Object(E["j"])(e.values,(function(t){s.includes(t)||s.push(t)}))})),Object(E["j"])(i,(function(i){var r=n.getScale(i);if(r.isContinuous)r.change({min:a,max:o,values:s});else if(r.isCategory){var c=r.range,l=n.getScaleMeta(i);s&&!Object(E["s"])(l,["scaleDef","range"])&&(c=de(Object(E["h"])({},r,{values:s}),t,e)),r.change({values:s,range:c})}}))}))},t.prototype.cacheScale=function(t,e,n){var i=this.getScaleMeta(n);i&&i.scale.type===t.type?(fe(i.scale,t),i.scaleDef=e):(i={key:n,scale:t,scaleDef:e},this.scales.set(n,i));var r=this.getSyncKey(i);if(i.syncKey=r,this.removeFromSyncScales(n),r){var a=this.syncScales.get(r);a||(a=[],this.syncScales.set(r,a)),a.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=Object(E["U"])(t.split("-")),i=this.syncScales.get(n);i&&i.length&&(e=this.getScaleMeta(i[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var n=e.syncKey,i=this.syncScales.get(n);if(i&&i.length){var r=i.indexOf(t);-1!==r&&i.splice(r,1)}}this.scales.delete(t)},t.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},t.prototype.removeFromSyncScales=function(t){var e=this;this.syncScales.forEach((function(n,i){var r=n.indexOf(t);if(-1!==r)return n.splice(r,1),0===n.length&&e.syncScales.delete(i),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,n=t.scaleDef,i=e.field,r=Object(E["s"])(n,["sync"]);return!0===r?i:!1===r?void 0:r},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}(),Ki=function(){function t(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),this.top=t,this.right=e,this.bottom=n,this.left=i}return t.instance=function(e,n,i,r){return void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0),new t(e,n,i,r)},t.prototype.max=function(t){var e=Object(F["e"])(t,4),n=e[0],i=e[1],r=e[2],a=e[3];return this.top=Math.max(this.top,n),this.right=Math.max(this.right,i),this.bottom=Math.max(this.bottom,r),this.left=Math.max(this.left,a),this},t.prototype.shrink=function(t){var e=Object(F["e"])(t,4),n=e[0],i=e[1],r=e[2],a=e[3];return this.top+=n,this.right+=i,this.bottom+=r,this.left+=a,this},t.prototype.inc=function(t,e){var n=t.width,i=t.height;switch(e){case A.TOP:case A.TOP_LEFT:case A.TOP_RIGHT:this.top+=i;break;case A.RIGHT:case A.RIGHT_TOP:case A.RIGHT_BOTTOM:this.right+=n;break;case A.BOTTOM:case A.BOTTOM_LEFT:case A.BOTTOM_RIGHT:this.bottom+=i;break;case A.LEFT:case A.LEFT_TOP:case A.LEFT_BOTTOM:this.left+=n;break;default:break}return this},t.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},t.prototype.clone=function(){return new(t.bind.apply(t,Object(F["g"])([void 0],Object(F["e"])(this.getPadding()),!1)))},t}();function Qi(t){var e=t.padding;if(!Ri(e))return new(Ki.bind.apply(Ki,Object(F["g"])([void 0],Object(F["e"])(zi(e)),!1)));var n=t.viewBBox,i=new Ki,r=[],a=[],o=[];return Object(E["j"])(t.getComponents(),(function(t){var e=t.type;e===k.AXIS?r.push(t):[k.LEGEND,k.SLIDER,k.SCROLLBAR].includes(e)?a.push(t):e!==k.GRID&&e!==k.TOOLTIP&&o.push(t)})),Object(E["j"])(r,(function(t){var e=t.component,r=e.getLayoutBBox(),a=new $t(r.x,r.y,r.width,r.height),o=a.exceed(n);i.max(o)})),Object(E["j"])(a,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),a=e.get("padding"),o=new $t(r.x,r.y,r.width,r.height).expand(a);i.inc(o,n)})),Object(E["j"])(o,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),a=new $t(r.x,r.y,r.width,r.height);i.inc(a,n)})),i}function Zi(t,e,n){var i=n.instance();e.forEach((function(t){t.autoPadding=i.max(t.autoPadding.getPadding())}))}var Ji=function(t){function e(e){var n=t.call(this,{visible:e.visible})||this;n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=Yi(),n.scalePool=new Ui,n.layoutFunc=qi,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var i=n.createViewEvent(t);n.doPlotEvent(i),n.emit(e,i)}},n.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var i=n.createViewEvent(t);n.emit(e,i)}};var i=e.id,r=void 0===i?Object(E["vb"])("view"):i,a=e.parent,o=e.canvas,s=e.backgroundGroup,c=e.middleGroup,l=e.foregroundGroup,u=e.region,h=void 0===u?{start:{x:0,y:0},end:{x:1,y:1}}:u,f=e.padding,p=e.appendPadding,d=e.theme,g=e.options,v=e.limitInPlot,y=e.syncViewPadding;return n.parent=a,n.canvas=o,n.backgroundGroup=s,n.middleGroup=c,n.foregroundGroup=l,n.region=h,n.padding=f,n.appendPadding=p,n.options=Object(F["a"])(Object(F["a"])({},n.options),g),n.limitInPlot=v,n.id=r,n.syncViewPadding=y,n.themeObject=Object(E["O"])(d)?Object(E["h"])({},xi("default"),yi(d)):xi(d),n.init(),n}return Object(F["c"])(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},e.prototype.render=function(t,e){void 0===t&&(t=!1),this.emit(I.BEFORE_RENDER,Hi.fromData(this,I.BEFORE_RENDER,e)),this.paint(t),this.emit(I.AFTER_RENDER,Hi.fromData(this,I.AFTER_RENDER,e)),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(I.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n');M.appendChild(S);var A=q(M,s,r,a),k=G(h),I=new k.Canvas(Object(F["a"])({container:S,pixelRatio:f,localRefresh:d,supportCSSTransform:m},A));return n=t.call(this,{parent:null,canvas:I,backgroundGroup:I.addGroup({zIndex:L.BG}),middleGroup:I.addGroup({zIndex:L.MID}),foregroundGroup:I.addGroup({zIndex:L.FORE}),padding:c,appendPadding:l,visible:v,options:O,limitInPlot:j,theme:w,syncViewPadding:C})||this,n.onResize=Object(E["g"])((function(){n.forceFit()}),300),n.ele=M,n.canvas=I,n.width=A.width,n.height=A.height,n.autoFit=s,n.localRefresh=d,n.renderer=h,n.wrapperElement=S,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(x),n}return Object(F["c"])(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;Object(E["j"])(t,(function(t){e.interaction(t)}))},e.prototype.aria=function(t){var e="aria-label";!1===t?this.ele.removeAttribute(e):this.ele.setAttribute(e,t.label)},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(I.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(I.AFTER_CHANGE_SIZE)),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.aria(!1)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),U(this.wrapperElement),this.wrapperElement=null},e.prototype.changeVisible=function(e){return t.prototype.changeVisible.call(this,e),this.wrapperElement.style.display=e?"":"none",this},e.prototype.forceFit=function(){if(!this.destroyed){var t=q(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){Object(W["e"])(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},e.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},e.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},e}(tr),nr=er,ir=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){Object(E["j"])(this.components,(function(t){t.component.destroy()})),this.components=[]},t.prototype.destroy=function(){this.clear()},t.prototype.getComponents=function(){return this.components},t.prototype.changeVisible=function(t){this.visible!==t&&(this.components.forEach((function(e){t?e.component.show():e.component.hide()})),this.visible=t)},t}();function rr(t){for(var e=[],n=function(n){var i=t[n],r=Object(E["m"])(e,(function(t){return t.color===i.color&&t.name===i.name&&t.value===i.value&&t.title===i.title}));r||e.push(i)},i=0;i1){var m=s[0],b=Math.abs(t.y-m[0].y);try{for(var x=Object(F["i"])(s),O=x.next();!O.done;O=x.next()){var j=O.value,w=Math.abs(t.y-j[0].y);w<=b&&(m=j,b=w)}}catch(S){a={error:S}}finally{try{O&&!O.done&&(o=x.return)&&o.call(x)}finally{if(a)throw a.error}}s=[m]}return rr(Object(E["q"])(s))}return[]},e.prototype.layout=function(){},e.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},e.prototype.isCursorEntered=function(t){if(this.tooltip){var e=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(e&&n){var i=e.getBoundingClientRect(),r=i.x,a=i.y,o=i.width,s=i.height;return new $t(r,a,o,s).isPointIn(t)}}return!1},e.prototype.getTooltipCfg=function(){var t=this.view,e=t.getOptions().tooltip,n=this.processCustomContent(e),i=t.getTheme(),r=Object(E["s"])(i,["components","tooltip"],{}),a=Object(E["s"])(n,"enterable",r.enterable);return Object(E["h"])({},r,n,{capture:!(!a&&!this.isLocked)})},e.prototype.processCustomContent=function(t){if(Object(E["D"])(t)||!Object(E["s"])(t,"customContent"))return t;var e=t.customContent,n=function(t,n){var i=e(t,n)||"";return Object(E["Q"])(i)?'
    '+i+"
    ":i};return Object(F["a"])(Object(F["a"])({},t),{customContent:n})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),i=new _t(Object(F["a"])(Object(F["a"])({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},e.prototype.renderTooltipMarkers=function(t,e){var n,i,r=this.getTooltipMarkersGroup(),a=this.view.getRootView(),o=a.limitInPlot;try{for(var s=Object(F["i"])(t),c=s.next();!c.done;c=s.next()){var l=c.value,u=l.x,h=l.y;if(o||(null===r||void 0===r?void 0:r.getClip())){var f=oe(a.getCoordinate()),p=f.type,d=f.attrs;null===r||void 0===r||r.setClip({type:p,attrs:d})}else null===r||void 0===r||r.setClip(void 0);var g=this.view.getTheme(),v=Object(E["s"])(g,["components","tooltip","marker"],{}),y=Object(F["a"])(Object(F["a"])({fill:l.color,symbol:"circle",shadowColor:l.color},Object(E["I"])(e)?Object(F["a"])(Object(F["a"])({},v),e(l)):e),{x:u,y:h});r.addShape("marker",{attrs:y})}}catch(m){n={error:m}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}},e.prototype.renderCrosshairs=function(t,e){var n=Object(E["s"])(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n,i,r=this.getViewWithGeometry(this.view).getCoordinate();if(r.isRect)r.isTransposed?(n={x:r.start.x,y:t.y},i={x:r.end.x,y:t.y}):(n={x:t.x,y:r.end.y},i={x:t.x,y:r.start.y});else{var a=ae(r,t),o=r.getCenter(),s=r.getRadius();i=Vt(o.x,o.y,s,a),n=o}var c=Object(E["h"])({start:n,end:i,container:this.getTooltipCrosshairsGroup()},Object(E["s"])(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete c.type;var l=this.xCrosshair;l?l.update(c):(l=new Tt["Crosshair"].Line(c),l.init()),l.render(),l.show(),this.xCrosshair=l},e.prototype.renderYCrosshairs=function(t,e){var n,i,r=this.getViewWithGeometry(this.view).getCoordinate();if(r.isRect){var a=void 0,o=void 0;r.isTransposed?(a={x:t.x,y:r.end.y},o={x:t.x,y:r.start.y}):(a={x:r.start.x,y:t.y},o={x:r.end.x,y:t.y}),n={start:a,end:o},i="Line"}else n={center:r.getCenter(),radius:ie(r,t),startAngle:r.startAngle,endAngle:r.endAngle},i="Circle";n=Object(E["h"])({container:this.getTooltipCrosshairsGroup()},n,Object(E["s"])(e,"crosshairs",{}),this.getCrosshairsText("y",t,e)),delete n.type;var s=this.yCrosshair;s?r.isRect&&"circle"===s.get("type")||!r.isRect&&"line"===s.get("type")?(s=new Tt["Crosshair"][i](n),s.init()):s.update(n):(s=new Tt["Crosshair"][i](n),s.init()),s.render(),s.show(),this.yCrosshair=s},e.prototype.getCrosshairsText=function(t,e,n){var i=Object(E["s"])(n,["crosshairs","text"]),r=Object(E["s"])(n,["crosshairs","follow"]),a=this.items;if(i){var o=this.getViewWithGeometry(this.view),s=a[0],c=o.getXScale(),l=o.getYScales()[0],u=void 0,h=void 0;if(r){var f=this.view.getCoordinate().invert(e);u=c.invert(f.x),h=l.invert(f.y)}else u=s.data[c.field],h=s.data[l.field];var p="x"===t?u:h;return Object(E["I"])(i)?i=i(t,p,a,e):i.content=p,{text:i}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):(t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"}),t.toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||(t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1}),t.toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,e){var n,i;if(!1===t.getOptions().tooltip)return[];var r=this.getTooltipCfg(),a=Li(t,e,r);try{for(var o=Object(F["i"])(t.views),s=o.next();!s.done;s=o.next()){var c=s.value;a=a.concat(this.findItemsFromView(c,e))}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:Object(E["m"])(t.views,(function(t){return e.getViewWithGeometry(t)}))},e.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems,n=e||function(t){return t};return n(t)},e}(ir),or=ar,sr={};function cr(t){return sr[t.toLowerCase()]}function lr(t,e){sr[t.toLowerCase()]=e}var ur={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},hr={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},fr={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){var e;return e=t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy",{animation:e}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function pr(t,e){return{delay:Object(E["I"])(t.delay)?t.delay(e):t.delay,easing:Object(E["I"])(t.easing)?t.easing(e):t.easing,duration:Object(E["I"])(t.duration)?t.duration(e):t.duration,callback:t.callback,repeat:t.repeat}}function dr(t,e,n){var i=hr[t];return i&&(Object(E["I"])(i)&&(i=i(e)),i=Object(E["h"])({},ur,i),n)?i[n]:i}function gr(t,e,n){var i=Object(E["s"])(t.get("origin"),"data",R),r=e.animation,a=pr(e,i);if(r){var o=cr(r);o&&o(t,a,n)}else t.animate(n.toAttrs,a)}function vr(t,e,n,i,r){if(fr[n]){var a=fr[n](i),o=cr(Object(E["s"])(a,"animation",""));if(o){var s=Object(F["a"])(Object(F["a"])(Object(F["a"])({},ur.appear),a),e);t.stopAnimate(),o(t,s,{coordinate:i,minYPoint:r,toAttrs:null})}}}var yr="element-background",mr=function(t){function e(e){var n=t.call(this,e)||this;n.labelShape=[],n.states=[];var i=e.shapeFactory,r=e.container,a=e.offscreenGroup,o=e.elementIndex,s=e.visible,c=void 0===s||s;return n.shapeFactory=i,n.container=r,n.offscreenGroup=a,n.visible=c,n.elementIndex=o,n}return Object(F["c"])(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this,n=e.shapeFactory,i=e.shape;if(i){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(i,t);var r=this.getOffscreenGroup(),a=n.drawShape(this.shapeType,t,r);a.cfg.data=this.data,a.cfg.origin=t,a.cfg.element=this,this.syncShapeStyle(i,a,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this,n=e.shapeFactory,i=e.shape;if(i){var r=this.getAnimateCfg("leave");r?gr(i,r,{coordinate:n.coordinate,toAttrs:Object(F["a"])({},i.attr())}):i.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(t){t.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(t){t.hide()})))},e.prototype.setState=function(t,e){var n=this,i=n.states,r=n.shapeFactory,a=n.model,o=n.shape,s=n.shapeType,c=i.indexOf(t);if(e){if(c>-1)return;i.push(t),"active"!==t&&"selected"!==t||null===o||void 0===o||o.toFront()}else{if(-1===c)return;if(i.splice(c,1),"active"===t||"selected"===t){var l=this.geometry,u=l.sortZIndex,h=l.zIndexReversed,f=h?this.geometry.elements.length-this.elementIndex:this.elementIndex;u?o.setZIndex(f):o.set("zIndex",f)}}var p=r.drawShape(s,a,this.getOffscreenGroup());i.length?this.syncShapeStyle(o,p,i,null):this.syncShapeStyle(o,p,["reset"],null),p.remove(!0);var d={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",d),Object(Tt["propagationDelegate"])(this.shape,"statechange",d)},e.prototype.clearStates=function(){var t=this,e=this.states;Object(E["j"])(e,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this,e=t.shape,n=t.labelShape,i={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return e&&(i=e.getCanvasBBox()),n&&n.forEach((function(t){var e=t.getCanvasBBox();i.x=Math.min(e.x,i.x),i.y=Math.min(e.y,i.y),i.minX=Math.min(e.minX,i.minX),i.minY=Math.min(e.minY,i.minY),i.maxX=Math.max(e.maxX,i.maxX),i.maxY=Math.max(e.maxY,i.maxY)})),i.width=i.maxX-i.minX,i.height=i.maxY-i.minY,i},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,e=t.shapeType,n=t.geometry,i=t.shapeFactory,r=n.stateOption,a=i.defaultShapeType,o=i.theme[e]||i.theme[a];this.statesStyle=Object(E["h"])({},o,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),i=Object(E["s"])(n,[t,"style"],{}),r=i[e]||i;return Object(E["I"])(r)?r(this):r},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var i=n[t];return i?Object(F["a"])(Object(F["a"])({},i),{callback:function(){var t;Object(E["I"])(i.callback)&&i.callback(),null===(t=e.geometry)||void 0===t||t.emit(T.AFTER_DRAW_ANIMATE)}}):i}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var i=this,r=i.shapeFactory,a=i.container,o=i.shapeType;if(this.shape=r.drawShape(o,t,a),this.shape){this.setShapeInfo(this.shape,t);var s=this.shape.cfg.name;s?Object(E["Q"])(s)&&(this.shape.cfg.name=["element",s]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var c=e?"enter":"appear",l=this.getAnimateCfg(c);l&&(null===(n=this.geometry)||void 0===n||n.emit(T.BEFORE_DRAW_ANIMATE),gr(this.shape,l,{coordinate:r.coordinate,toAttrs:Object(F["a"])({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;if(t.cfg.origin=e,t.cfg.element=this,t.isGroup()){var i=t.get("children");i.forEach((function(t){n.setShapeInfo(t,e)}))}},e.prototype.syncShapeStyle=function(t,e,n,i,r){var a,o=this;if(void 0===n&&(n=[]),void 0===r&&(r=0),t&&e){var s=t.get("clipShape"),c=e.get("clipShape");if(this.syncShapeStyle(s,c,n,i),t.isGroup())for(var l=t.get("children"),u=e.get("children"),h=0;h=0?n:i<=0?i:0,t},e.prototype.createAttrOption=function(t,e,n){if(Object(E["K"])(e)||Object(E["O"])(e))Object(E["O"])(e)&&Object(E["H"])(Object.keys(e),["values"])?Object(E["lb"])(this.attributeOption,t,{fields:e.values}):Object(E["lb"])(this.attributeOption,t,e);else{var i={};Object(E["M"])(e)?i.values=[e]:i.fields=Br(e),n&&(Object(E["I"])(n)?i.callback=n:i.values=n),Object(E["lb"])(this.attributeOption,t,i)}},e.prototype.initAttributes=function(){var t=this,e=this,n=e.attributes,i=e.attributeOption,r=e.theme,a=e.shapeType;this.groupScales=[];var o={},s=function(e){if(i.hasOwnProperty(e)){var s=i[e];if(!s)return{value:void 0};var c=Object(F["a"])({},s),l=c.callback,u=c.values,h=c.fields,f=void 0===h?[]:h,p=f.map((function(n){var i=t.scales[n];if(!o[n]&&D.includes(e)){var r=ue(i,Object(E["s"])(t.scaleDefs,n),e,t.type);"cat"===r&&(t.groupScales.push(i),o[n]=!0)}return i}));c.scales=p,"position"!==e&&1===p.length&&"identity"===p[0].type?c.values=p[0].values:l||u||("size"===e?c.values=r.sizes:"shape"===e?c.values=r.shapes[a]||[]:"color"===e&&(p.length?c.values=p[0].values.length<=10?r.colors10:r.colors20:c.values=r.colors10));var d=mt(e);n[e]=new d(c)}};for(var c in i){var l=s(c);if("object"===typeof l)return l.value}},e.prototype.processData=function(t){var e,n;this.hasSorted=!1;for(var i=this.getAttribute("position").scales,r=i.filter((function(t){return t.isCategory})),a=this.groupData(t),o=[],s=0,c=a.length;sa&&(a=l)}var u=this.scaleDefs,h={};rt.max&&!Object(E["s"])(u,[i,"max"])&&(h.max=a),t.change(h)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,i=e.length;n1)for(var u=0;u0}))}function qr(t,e,n){var i=n.data,r=n.origin,a=n.animateCfg,o=n.coordinate,s=Object(E["s"])(a,"update");t.set("data",i),t.set("origin",r),t.set("animateCfg",a),t.set("coordinate",o),t.set("visible",e.get("visible")),(t.getChildren()||[]).forEach((function(c,l){var u=e.getChildByIndex(l);if(u){c.set("data",i),c.set("origin",r),c.set("animateCfg",a),c.set("coordinate",o);var h=Ut(c,u);s?gr(c,s,{toAttrs:h,coordinate:o}):c.attr(h),u.isGroup()&&qr(c,u,n)}else t.removeChild(c),c.remove(!0)})),Object(E["j"])(e.getChildren(),(function(e,n){n>=t.getCount()&&(e.destroyed||t.add(e))}))}var Ur=function(){function t(t){this.shapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){return void 0===n&&(n=!1),Object(F["b"])(this,void 0,void 0,(function(){var i,r,a,o,s,c,l,u,h=this;return Object(F["d"])(this,(function(f){switch(f.label){case 0:if(i={},r=this.createOffscreenGroup(),!t.length)return[3,2];try{for(a=Object(F["i"])(t),o=a.next();!o.done;o=a.next())s=o.value,s&&(i[s.id]=this.renderLabel(s,r))}catch(p){l={error:p}}finally{try{o&&!o.done&&(u=a.return)&&u.call(a)}finally{if(l)throw l.error}}return[4,this.doLayout(t,e,i)];case 1:f.sent(),this.renderLabelLine(t,i),this.renderLabelBackground(t,i),this.adjustLabel(t,i),f.label=2;case 2:return c=this.shapesMap,Object(E["j"])(i,(function(t,e){if(t.destroyed)delete i[e];else{if(c[e]){var r=t.get("data"),a=t.get("origin"),o=t.get("coordinate"),s=t.get("animateCfg"),l=c[e];qr(l,i[e],{data:r,origin:a,animateCfg:s,coordinate:o}),i[e]=l}else{if(h.container.destroyed)return;h.container.add(t);var u=Object(E["s"])(t.get("animateCfg"),n?"enter":"appear");u&&gr(t,u,{toAttrs:Object(F["a"])({},t.attr()),coordinate:t.get("coordinate")})}delete c[e]}})),Object(E["j"])(c,(function(t){var e=Object(E["s"])(t.get("animateCfg"),"leave");e?gr(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.shapesMap=i,r.destroy(),[2]}}))}))},t.prototype.clear=function(){this.container.clear(),this.shapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},t.prototype.renderLabel=function(t,e){var n,i=t.id,r=t.elementId,a=t.data,o=t.mappingData,s=t.coordinate,c=t.animate,l=t.content,u=t.capture,h={id:i,elementId:r,capture:u,data:a,origin:Object(F["a"])(Object(F["a"])({},o),{data:o[R]}),coordinate:s},f=e.addGroup(Object(F["a"])({name:"label",animateCfg:!1!==this.animate&&null!==c&&!1!==c&&Object(E["h"])({},this.animate,c)},h));if(l.isGroup&&l.isGroup()||l.isShape&&l.isShape()){var p=l.getCanvasBBox(),d=p.width,g=p.height,v=Object(E["s"])(t,"textAlign","left"),y=t.x,m=t.y-g/2;"center"===v?y-=d/2:"right"!==v&&"end"!==v||(y-=d),_r(l,y,m),n=l,f.add(l)}else{var b=Object(E["s"])(t,["style","fill"]);n=f.addShape("text",Object(F["a"])({attrs:Object(F["a"])(Object(F["a"])({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:Object(E["s"])(t,"textBaseline","middle"),text:t.content},t.style),{fill:Object(E["L"])(b)?t.color:b})},h))}return t.rotate&&Yr(n,t.rotate),f},t.prototype.doLayout=function(t,e,n){return Object(F["b"])(this,void 0,void 0,(function(){var i,r=this;return Object(F["d"])(this,(function(a){switch(a.label){case 0:return this.layout?(i=Object(E["C"])(this.layout)?this.layout:[this.layout],[4,Promise.all(i.map((function(i){var a=Cr(Object(E["s"])(i,"type",""));if(a){var o=[],s=[];return Object(E["j"])(n,(function(t,n){o.push(t),s.push(e[t.get("elementId")])})),a(t,o,s,r.region,i.cfg)}})))]):[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}}))}))},t.prototype.renderLabelLine=function(t,e){Object(E["j"])(t,(function(t){var n=Object(E["s"])(t,"coordinate");if(t&&n){var i=n.getCenter(),r=n.getRadius();if(t.labelLine){var a=Object(E["s"])(t,"labelLine",{}),o=t.id,s=a.path;if(!s){var c=Vt(i.x,i.y,r,t.angle);s=[["M",c.x,c.y],["L",t.x,t.y]]}var l=e[o];l.destroyed||l.addShape("path",{capture:!1,attrs:Object(F["a"])({path:s,stroke:t.color?t.color:Object(E["s"])(t,["style","fill"],"#000"),fill:null},a.style),id:o,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t,e){Object(E["j"])(t,(function(t){var n=Object(E["s"])(t,"coordinate"),i=Object(E["s"])(t,"background");if(i&&n){var r=t.id,a=e[r];if(!a.destroyed){var o=a.getChildren()[0];if(o){var s=Wr(a,t,i.padding),c=s.rotation,l=Object(F["f"])(s,["rotation"]),u=a.addShape("rect",{attrs:Object(F["a"])(Object(F["a"])({},l),i.style||{}),id:r,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(u.setZIndex(-1),c){var h=o.getMatrix();u.setMatrix(h)}}}}}))},t.prototype.createOffscreenGroup=function(){var t=this.container,e=t.getGroupBase(),n=new e({});return n},t.prototype.adjustLabel=function(t,e){Object(E["j"])(t,(function(t){if(t){var n=t.id,i=e[n];if(!i.destroyed){var r=i.findAll((function(t){return"path"!==t.get("type")}));Object(E["j"])(r,(function(e){e&&(t.offsetX&&e.attr("x",e.attr("x")+t.offsetX),t.offsetY&&e.attr("y",e.attr("y")+t.offsetY))}))}}}))},t}(),Kr=Ur;function Qr(t){var e=0;return Object(E["j"])(t,(function(t){e+=t})),e/t.length}var Zr=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],i=this.getLabelCfgs(t);return Object(E["j"])(t,(function(t,r){var a=i[r];if(!a||Object(E["K"])(t.x)||Object(E["K"])(t.y))n.push(null);else{var o=Object(E["C"])(a.content)?a.content:[a.content];a.content=o;var s=o.length;Object(E["j"])(o,(function(i,r){if(Object(E["K"])(i)||""===i)n.push(null);else{var o=Object(F["a"])(Object(F["a"])({},a),e.getLabelPoint(a,t,r));o.textAlign||(o.textAlign=e.getLabelAlign(o,r,s)),o.offset<=0&&(o.labelLine=null),n.push(o)}}))}})),n},t.prototype.render=function(t,e){return void 0===e&&(e=!1),Object(F["b"])(this,void 0,void 0,(function(){var n,i,r;return Object(F["d"])(this,(function(a){switch(a.label){case 0:return n=this.getLabelItems(t),i=this.getLabelsRenderer(),r=this.getGeometryShapes(),[4,i.render(n,r,e)];case 1:return a.sent(),[2]}}))}))},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(t,e){var n=this.geometry,i=n.type,r=n.theme;return"polygon"===i||"interval"===i&&"middle"===e||t<0&&!["line","point","path"].includes(i)?Object(E["s"])(r,"innerLabels",{}):Object(E["s"])(r,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e,n=this.geometry,i=this.getDefaultLabelCfg(),r=n.type,a=n.theme;return e="polygon"===r||t.offset<0&&!["line","point","path"].includes(r)?Object(E["h"])({},i,a.innerLabels,t):Object(E["h"])({},i,a.labels,t),e},t.prototype.setLabelPosition=function(t,e,n,i){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffsetPoint=function(t,e,n){var i=t.offset,r=this.getCoordinate(),a=r.isTransposed,o=a?"x":"y",s=a?1:-1,c={x:0,y:0};return c[o]=e>0||1===n?i*s:i*s*-1,c},t.prototype.getLabelPoint=function(t,e,n){var i=this.getCoordinate(),r=t.content.length;function a(e,n,i){void 0===i&&(i=!1);var r=e;return Object(E["C"])(r)&&(r=1===t.content.length?i?Qr(r):r.length<=2?r[e.length-1]:Qr(r):r[n]),r}var o={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},s=Object(E["C"])(e.shape)?e.shape[0]:e.shape,c="funnel"===s||"pyramid"===s;if("polygon"===this.geometry.type){var l=qt(e.x,e.y);o.x=l[0],o.y=l[1]}else"interval"!==this.geometry.type||c?(o.x=a(e.x,n),o.y=a(e.y,n)):(o.x=a(e.x,n,!0),o.y=a(e.y,n));if(c){var u=Object(E["s"])(e,"nextPoints"),h=Object(E["s"])(e,"points");if(u){var f=i.convert(h[1]),p=i.convert(u[1]);o.x=(f.x+p.x)/2,o.y=(f.y+p.y)/2}else if("pyramid"===s){f=i.convert(h[1]),p=i.convert(h[2]);o.x=(f.x+p.x)/2,o.y=(f.y+p.y)/2}}t.position&&this.setLabelPosition(o,e,n,t.position);var d=this.getLabelOffsetPoint(t,n,r);return o.start={x:o.x,y:o.y},o.x+=d.x,o.y+=d.y,o.color=e.color,o},t.prototype.getLabelAlign=function(t,e,n){var i="center",r=this.getCoordinate();if(r.isTransposed){var a=t.offset;i=a<0?"right":0===a?"center":"left",n>1&&0===e&&("right"===i?i="left":"left"===i&&(i="right"))}return i},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,i=e.getXScale(),r=e.getYScale(),a=t[R],o=e.getElementId(t);return"line"===n||"area"===n?o+=" ".concat(a[i.field]):"path"===n&&(o+=" ".concat(a[i.field],"-").concat(a[r.field])),o},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,i=t.canvasRegion,r=t.animateOption,a=this.geometry.coordinate,o=this.labelsRenderer;return o||(o=new Kr({container:e,layout:Object(E["s"])(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=o),o.region=i,o.animate=!!r&&dr("label",a),o},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,i=n.labelOption,r=n.scales,a=n.coordinate,o=i,s=o.fields,c=o.callback,l=o.cfg,u=s.map((function(t){return r[t]})),h=[];return Object(E["j"])(t,(function(t,n){var i,r=t[R],o=e.getLabelText(r,u);if(c){var f=s.map((function(t){return r[t]}));if(i=c.apply(void 0,Object(F["g"])([],Object(F["e"])(f),!1)),Object(E["K"])(i))return void h.push(null)}var p=Object(F["a"])(Object(F["a"])({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:r,mappingData:t,coordinate:a},l),i);Object(E["I"])(p.position)&&(p.position=p.position(r,t,n));var d=e.getLabelOffset(p.offset||0),g=e.getDefaultLabelCfg(d,p.position);p=Object(E["h"])({},g,p),p.offset=e.getLabelOffset(p.offset||0);var v=p.content;Object(E["I"])(v)?p.content=v(r,t,n):Object(E["S"])(v)&&(p.content=o[0]),h.push(p)})),h},t.prototype.getLabelText=function(t,e){var n=[];return Object(E["j"])(e,(function(e){var i=t[e.field];i=Object(E["C"])(i)?i.map((function(t){return e.getText(t)})):e.getText(i),Object(E["K"])(i)||""===i?n.push(null):n.push(i)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return Object(E["M"])(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return Object(E["j"])(t.elementsMap,(function(t,n){e[n]=t.shape})),Object(E["j"])(t.getOffscreenGroup().getChildren(),(function(n){var i=t.getElementId(n.get("origin").mappingData);e[i]=n})),e},t}(),Jr=Zr;function $r(t,e,n){if(!t)return n;var i;if(t.callback&&t.callback.length>1){var r=Array(t.callback.length-1).fill("");i=t.mapping.apply(t,Object(F["g"])([e],Object(F["e"])(r),!1)).join("")}else i=t.mapping(e).join("");return i||n}var ta={hexagon:function(t,e,n){var i=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+i,e-n/2],["L",t+i,e+n/2],["L",t,e+n],["L",t-i,e+n/2],["L",t-i,e-n/2],["Z"]]},bowtie:function(t,e,n){var i=n-1.5;return[["M",t-n,e-i],["L",t+n,e+i],["L",t+n,e-i],["L",t-n,e+i],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}},ea=["line","cross","tick","plus","hyphen"];function na(t,e){return Object(E["I"])(e)?e(t):Object(E["h"])({},t,e)}function ia(t,e){var n=t.symbol;if(Object(E["Q"])(n)&&-1!==ea.indexOf(n)){var i=Object(E["s"])(t,"style",{}),r=Object(E["s"])(i,"lineWidth",1),a=i.stroke||i.fill||e;t.style=Object(E["h"])({},t.style,{lineWidth:r,stroke:a,fill:null})}}function ra(t){var e=t.symbol;Object(E["Q"])(e)&&ta[e]&&(t.symbol=ta[e])}function aa(t){return t.startsWith(A.LEFT)||t.startsWith(A.RIGHT)?"vertical":"horizontal"}function oa(t,e,n,i,r){var a=n.getScale(n.type);if(a.isCategory){var o=a.field,s=e.getAttribute("color"),c=e.getAttribute("shape"),l=t.getTheme().defaultColor,u=e.coordinate.isPolar;return a.getTicks().map((function(n,h){var f,p=n.text,d=n.value,g=p,v=a.invert(d),y=0===t.filterFieldData(o,[(f={},f[o]=v,f)]).length;Object(E["j"])(t.views,(function(t){var e;t.filterFieldData(o,[(e={},e[o]=v,e)]).length||(y=!0)}));var m=$r(s,v,l),b=$r(c,v,"point"),x=e.getShapeMarker(b,{color:m,isInPolar:u}),O=r;return Object(E["I"])(O)&&(O=O(g,h,Object(F["a"])({name:g,value:v},Object(E["h"])({},i,x)))),x=Object(E["h"])({},i,x,Zt(Object(F["a"])({},O),["style"])),ia(x,m),O&&O.style&&(x.style=na(x.style,O.style)),ra(x),{id:v,name:g,value:v,marker:x,unchecked:y}}))}return[]}function sa(t,e,n){return n.map((function(n,i){var r=e;Object(E["I"])(r)&&(r=r(n.name,i,Object(E["h"])({},t,n)));var a=Object(E["I"])(n.marker)?n.marker(n.name,i,Object(E["h"])({},t,n)):n.marker,o=Object(E["h"])({},t,r,a);return ra(o),n.marker=o,n}))}function ca(t,e){var n=Object(E["s"])(t,["components","legend"],{});return Object(E["h"])({},Object(E["s"])(n,["common"],{}),Object(E["h"])({},Object(E["s"])(n,[e],{})))}function la(t){return!t&&(null===t||void 0===t||isNaN(t))}function ua(t){if(Object(E["C"])(t))return la(t[1].y);var e=t.y;return Object(E["C"])(e)?la(e[0]):la(e)}function ha(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!0),!t.length||1===t.length&&!n)return[];if(e){for(var i=[],r=0,a=t.length;r0&&(l[0][0]="L")),a=a.concat(l)})),a.push(["Z"])}return a}function Da(t,e,n,i,r){for(var a=da(t,e,!e,"lineWidth"),o=t.connectNulls,s=t.isInCircle,c=t.points,l=t.showSinglePoint,u=ha(c,o,l),h=[],f=0,p=u.length;fr&&(r=e),e=e[0]})));var d=this.scales[f];try{for(var g=Object(F["i"])(t),v=g.next();!v.done;v=g.next()){var y=v.value,m=this.getDrawCfg(y),b=m.x,x=m.y,O=d.scale(y[R][f]);this.drawGrayScaleBlurredCircle(b-s.x,x-c.y,n+i,O,p)}}catch(C){r={error:C}}finally{try{v&&!v.done&&(a=g.return)&&a.call(g)}finally{if(r)throw r.error}}var j=p.getImageData(0,0,l,u);this.clearShadowCanvasCtx(),this.colorize(j),p.putImageData(j,0,0);var w=this.getImageShape();w.attr("x",s.x),w.attr("y",c.y),w.attr("width",l),w.attr("height",u),w.attr("img",p.canvas),w.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),e=this.coordinate;return Math.min(e.getWidth()/(4*t.scales[0].ticks.length),e.getHeight()/(4*t.scales[1].ticks.length))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,e,n,i,r){var a=this.getGrayScaleBlurredCanvas();r.globalAlpha=i,r.drawImage(a,t-n,e-n)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,i=this.paletteCache,r=3;re&&(n=n?e/(1+i/n):0,i=e-n),r+a>e&&(r=r?e/(1+a/r):0,a=e-r),[n||0,i||0,r||0,a||0]}function qa(t,e,n){var i=[];if(n.isRect){var r=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},a=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},o=Object(E["s"])(t,["background","style","radius"]);if(o){var s=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,c=n.isTransposed?n.getWidth():n.getHeight(),l=Object(F["e"])(Ha(o,Math.min(s,c)),4),u=l[0],h=l[1],f=l[2],p=l[3],d=n.isTransposed&&n.isReflect("y"),g=d?0:1,v=function(t){return d?-t:t};i.push(["M",r.x,a.y+v(u)]),0!==u&&i.push(["A",u,u,0,0,g,r.x+u,a.y]),i.push(["L",a.x-h,a.y]),0!==h&&i.push(["A",h,h,0,0,g,a.x,a.y+v(h)]),i.push(["L",a.x,r.y-v(f)]),0!==f&&i.push(["A",f,f,0,0,g,a.x-f,r.y]),i.push(["L",r.x+p,r.y]),0!==p&&i.push(["A",p,p,0,0,g,r.x,r.y-v(p)])}else i.push(["M",r.x,r.y]),i.push(["L",a.x,r.y]),i.push(["L",a.x,a.y]),i.push(["L",r.x,a.y]),i.push(["L",r.x,r.y]);i.push(["z"])}if(n.isPolar){var y=n.getCenter(),m=Ht(t,n),b=m.startAngle,x=m.endAngle;if("theta"===n.type||n.isTransposed){var O=function(t){return Math.pow(t,2)};u=Math.sqrt(O(y.x-e[0].x)+O(y.y-e[0].y)),h=Math.sqrt(O(y.x-e[2].x)+O(y.y-e[2].y));i=Wt(y.x,y.y,u,n.startAngle,n.endAngle,h)}else i=Wt(y.x,y.y,n.getRadius(),b,x)}return i}function Ua(t,e,n){var i=n.getWidth(),r=n.getHeight(),a="rect"===n.type,o=[],s=(t[2].x-t[1].x)/2,c=n.isTransposed?s*r/i:s*i/r;return"round"===e?(a?(o.push(["M",t[0].x,t[0].y+c]),o.push(["L",t[1].x,t[1].y-c]),o.push(["A",s,s,0,0,1,t[2].x,t[2].y-c]),o.push(["L",t[3].x,t[3].y+c]),o.push(["A",s,s,0,0,1,t[0].x,t[0].y+c])):(o.push(["M",t[0].x,t[0].y]),o.push(["L",t[1].x,t[1].y]),o.push(["A",s,s,0,0,1,t[2].x,t[2].y]),o.push(["L",t[3].x,t[3].y]),o.push(["A",s,s,0,0,1,t[0].x,t[0].y])),o.push(["z"])):o=Xa(t),o}function Ka(t,e,n){var i=[];return Object(E["K"])(e)?n?i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",(t[2].x+t[3].x)/2,(t[2].y+t[3].y)/2],["Z"]):i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),i}function Qa(t,e){return[e,t]}function Za(t,e,n){var i,r,a,o,s,c,l,u=Object(F["e"])(Object(F["g"])([],Object(F["e"])(t),!1),4),h=u[0],f=u[1],p=u[2],d=u[3],g=Object(F["e"])("number"===typeof n?Array(4).fill(n):n,4),v=g[0],y=g[1],m=g[2],b=g[3];e.isTransposed&&(i=Object(F["e"])(Qa(f,d),2),f=i[0],d=i[1]),e.isReflect("y")&&(r=Object(F["e"])(Qa(h,f),2),h=r[0],f=r[1],a=Object(F["e"])(Qa(p,d),2),p=a[0],d=a[1]),e.isReflect("x")&&(o=Object(F["e"])(Qa(h,d),2),h=o[0],d=o[1],s=Object(F["e"])(Qa(f,p),2),f=s[0],p=s[1]);var x=[],O=function(t){return Math.abs(t)};return c=Object(F["e"])(Ha([v,y,m,b],Math.min(O(d.x-h.x),O(f.y-h.y))).map((function(t){return O(t)})),4),v=c[0],y=c[1],m=c[2],b=c[3],e.isTransposed&&(l=Object(F["e"])([b,v,y,m],4),v=l[0],y=l[1],m=l[2],b=l[3]),h.yo&&(r=o)}return r}function $a(t,e){if(e){var n=Object(E["q"])(t),i=Object(E["yb"])(n,e);return i.length}return t.length}function to(t){var e=t.theme,n=t.coordinate,i=t.getXScale(),r=i.values,a=t.beforeMappingData,o=r.length,s=ee(t.coordinate),c=t.intervalPadding,l=t.dodgePadding,u=t.maxColumnWidth||e.maxColumnWidth,h=t.minColumnWidth||e.minColumnWidth,f=t.columnWidthRatio||e.columnWidthRatio,p=t.multiplePieWidthRatio||e.multiplePieWidthRatio,d=t.roseWidthRatio||e.roseWidthRatio;if(i.isLinear&&r.length>1){r.sort();var g=Ja(r,i);o=(i.max-i.min)/g,r.length>o&&(o=r.length)}var v=i.range,y=1/o,m=1;if(n.isPolar?m=n.isTransposed&&o>1?p:d:(i.isLinear&&(y*=v[1]-v[0]),m=f),!Object(E["K"])(c)&&c>=0){var b=c/s;y=(1-(o-1)*b)/o}else y*=m;if(t.getAdjust("dodge")){var x=t.getAdjust("dodge"),O=x.dodgeBy,j=$a(a,O);if(!Object(E["K"])(l)&&l>=0){var w=l/s;y=(y-w*(j-1))/j}else!Object(E["K"])(c)&&c>=0?(y*=m,y/=j):y/=j;y=y>=0?y:0}if(!Object(E["K"])(u)&&u>=0){var C=u/s;y>C&&(y=C)}if(!Object(E["K"])(h)&&h>=0){var M=h/s;y0&&!Object(E["s"])(n,[i,"min"])&&e.change({min:0}),a<=0&&!Object(E["s"])(n,[i,"max"])&&e.change({max:0}))}},e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.background=this.background,n},e}(Rr),no=eo,io=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var i=e.sortable,r=void 0!==i&&i;return n.sortable=r,n}return Object(F["c"])(e,t),e}(Ba),ro=io,ao=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],oo=["cross","tick","plus","hyphen","line"];function so(t,e,n,i,r){var a,o,s=da(e,r,!r,"r"),c=t.parsePoints(e.points),l=c[0];if(e.isStack)l=c[1];else if(c.length>1){var u=n.addGroup();try{for(var h=Object(F["i"])(c),f=h.next();!f.done;f=h.next()){var p=f.value;u.addShape({type:"marker",attrs:Object(F["a"])(Object(F["a"])(Object(F["a"])({},s),{symbol:ta[i]||i}),p)})}}catch(d){a={error:d}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(a)throw a.error}}return u}return n.addShape({type:"marker",attrs:Object(F["a"])(Object(F["a"])(Object(F["a"])({},s),{symbol:ta[i]||i}),l)})}Fr("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return va(t)}});Object(E["j"])(ao,(function(t){Er("point","hollow-".concat(t),{draw:function(e,n){return so(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:ta[t]||t,style:{r:4.5,stroke:n,fill:null}}}})}));var co=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e.shapeType="point",e.generatePoints=!0,e}return Object(F["c"])(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return Object(F["a"])(Object(F["a"])({},n),{isStack:!!this.getAdjust("stack")})},e}(Rr),lo=co;function uo(t){var e=t[0],n=1,i=[["M",e.x,e.y]];while(n2?"weight":"normal";if(t.isInCircle){var o={x:0,y:1};return"normal"===a?n=Oo(r[0],r[1],o):(i.fill=i.stroke,n=jo(r,o)),n=this.parsePath(n),e.addShape("path",{attrs:Object(F["a"])(Object(F["a"])({},i),{path:n})})}if("normal"===a)return r=this.parsePoints(r),n=Xt((r[1].x+r[0].x)/2,r[0].y,Math.abs(r[1].x-r[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:Object(F["a"])(Object(F["a"])({},i),{path:n})});var s=bo(r[1],r[3]),c=bo(r[2],r[0]);return n=[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],s,["L",r[3].x,r[3].y],["L",r[2].x,r[2].y],c,["Z"]],n=this.parsePath(n),i.fill=i.stroke,e.addShape("path",{attrs:Object(F["a"])(Object(F["a"])({},i),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Er("edge","smooth",{draw:function(t,e){var n=da(t,!0,!1,"lineWidth"),i=t.points,r=this.parsePath(wo(i[0],i[1]));return e.addShape("path",{attrs:Object(F["a"])(Object(F["a"])({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var Co=1/3;function Mo(t,e){var n=[];n.push({x:t.x,y:t.y*(1-Co)+e.y*Co}),n.push({x:e.x,y:t.y*(1-Co)+e.y*Co}),n.push(e);var i=[["M",t.x,t.y]];return Object(E["j"])(n,(function(t){i.push(["L",t.x,t.y])})),i}function So(t){var e=t.x,n=t.y,i=t.y0;return Object(E["C"])(n)?n.map((function(t,n){return{x:Object(E["C"])(e)?e[n]:e,y:t}})):[{x:e,y:i},{x:e,y:n}]}function Ao(t){var e,n,i,r=t.x,a=t.y,o=t.y0,s=t.size;Object(E["C"])(a)?(e=Object(F["e"])(a,2),n=e[0],i=e[1]):(n=o,i=a);var c=r+s/2,l=r-s/2;return[{x:r,y:n},{x:r,y:i},{x:l,y:n},{x:c,y:n},{x:l,y:i},{x:c,y:i}]}function ko(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y]]}Er("edge","vhv",{draw:function(t,e){var n=da(t,!0,!1,"lineWidth"),i=t.points,r=this.parsePath(Mo(i[0],i[1]));return e.addShape("path",{attrs:Object(F["a"])(Object(F["a"])({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Er("interval","funnel",{getPoints:function(t){return t.size=2*t.size,Wa(t)},draw:function(t,e){var n=da(t,!1,!0),i=this.parsePath(Ka(t.points,t.nextPoints,!1)),r=e.addShape("path",{attrs:Object(F["a"])(Object(F["a"])({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),Er("interval","hollow-rect",{draw:function(t,e){var n=da(t,!0,!1),i=e,r=null===t||void 0===t?void 0:t.background;if(r){i=e.addGroup();var a=ga(t),o=qa(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:Object(F["a"])(Object(F["a"])({},a),{path:o}),capture:!1,zIndex:-1,name:yr})}var s=this.parsePath(Xa(t.points)),c=i.addShape("path",{attrs:Object(F["a"])(Object(F["a"])({},n),{path:s}),name:"interval"});return r?i:c},getMarker:function(t){var e=t.color,n=t.isInPolar;return n?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}}),Er("interval","line",{getPoints:function(t){return So(t)},draw:function(t,e){var n=da(t,!0,!1,"lineWidth"),i=Zt(Object(F["a"])({},n),["fill"]),r=this.parsePath(Xa(t.points,!1)),a=e.addShape("path",{attrs:Object(F["a"])(Object(F["a"])({},i),{path:r}),name:"interval"});return a},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:e}}}}),Er("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,Wa(t)},draw:function(t,e){var n=da(t,!1,!0),i=this.parsePath(Ka(t.points,t.nextPoints,!0)),r=e.addShape("path",{attrs:Object(F["a"])(Object(F["a"])({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),Er("interval","tick",{getPoints:function(t){return Ao(t)},draw:function(t,e){var n=da(t,!0,!1),i=this.parsePath(ko(t.points)),r=e.addShape("path",{attrs:Object(F["a"])(Object(F["a"])({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},style:{r:5,stroke:e}}}});var Fo=function(t,e,n){var i,r=t.x,a=t.y,o=e.x,s=e.y;switch(n){case"hv":i=[{x:o,y:a}];break;case"vh":i=[{x:r,y:s}];break;case"hvh":var c=(o+r)/2;i=[{x:c,y:a},{x:c,y:s}];break;case"vhv":var l=(a+s)/2;i=[{x:r,y:l},{x:o,y:l}];break;default:break}return i};function Eo(t,e){var n=[];return Object(E["j"])(t,(function(i,r){var a=t[r+1];if(n.push(i),a){var o=Fo(i,a,e);n=n.concat(o)}})),n}function Io(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}function To(t,e){var n=ha(t.points,t.connectNulls,t.showSinglePoint),i=[];return Object(E["j"])(n,(function(t){var n=Eo(t,e);i=i.concat(Io(n))})),Object(F["a"])(Object(F["a"])({},da(t,!0,!1,"lineWidth")),{path:i})}function Po(t){var e=Object(E["C"])(t)?t:[t],n=e[0],i=e[e.length-1],r=e.length>1?e[1]:n,a=e.length>3?e[3]:i,o=e.length>2?e[2]:r;return{min:n,max:i,min1:r,max1:a,median:o}}function Bo(t,e,n){var i,r=n/2;if(Object(E["C"])(e)){var a=Po(e),o=a.min,s=a.max,c=a.median,l=a.min1,u=a.max1,h=t-r,f=t+r;i=[[h,s],[f,s],[t,s],[t,u],[h,l],[h,u],[f,u],[f,l],[t,l],[t,o],[h,o],[f,o],[h,c],[f,c]]}else{e=Object(E["K"])(e)?.5:e;var p=Po(t),d=(o=p.min,s=p.max,c=p.median,l=p.min1,u=p.max1,e-r),g=e+r;i=[[o,d],[o,g],[o,e],[l,e],[l,d],[l,g],[u,g],[u,d],[u,e],[s,e],[s,d],[s,g],[c,d],[c,g]]}return i.map((function(t){return{x:t[0],y:t[1]}}))}function Lo(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y],["L",t[6].x,t[6].y],["L",t[7].x,t[7].y],["L",t[4].x,t[4].y],["Z"],["M",t[8].x,t[8].y],["L",t[9].x,t[9].y],["M",t[10].x,t[10].y],["L",t[11].x,t[11].y],["M",t[12].x,t[12].y],["L",t[13].x,t[13].y]]}function Do(t){var e=Object(E["C"])(t)?t:[t],n=e.sort((function(t,e){return e-t}));return Qt(n,4,n[n.length-1])}function Ro(t,e,n){var i=Do(e);return[{x:t,y:i[0]},{x:t,y:i[1]},{x:t-n/2,y:i[2]},{x:t-n/2,y:i[1]},{x:t+n/2,y:i[1]},{x:t+n/2,y:i[2]},{x:t,y:i[2]},{x:t,y:i[3]}]}function zo(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["L",t[4].x,t[4].y],["L",t[5].x,t[5].y],["Z"],["M",t[6].x,t[6].y],["L",t[7].x,t[7].y]]}function _o(t,e){var n=Math.abs(t[0].x-t[2].x),i=Math.abs(t[0].y-t[2].y),r=Math.min(n,i);e&&(r=Object(E["c"])(e,0,Math.min(n,i))),r/=2;var a=(t[0].x+t[2].x)/2,o=(t[0].y+t[2].y)/2;return{x:a-r,y:o-r,width:2*r,height:2*r}}Object(E["j"])(["hv","vh","hvh","vhv"],(function(t){Er("line",t,{draw:function(e,n){var i=To(e,t),r=n.addShape({type:"path",attrs:i,name:"line"});return r},getMarker:function(e){return ma(e,t)}})})),Object(E["j"])(oo,(function(t){Er("point",t,{draw:function(e,n){return so(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:ta[t],style:{r:4.5,stroke:n,fill:null}}}})})),Er("point","image",{draw:function(t,e){var n,i,r=da(t,!1,!1,"r").r,a=this.parsePoints(t.points),o=a[0];if(t.isStack)o=a[1];else if(a.length>1){var s=e.addGroup();try{for(var c=Object(F["i"])(a),l=c.next();!l.done;l=c.next()){var u=l.value;s.addShape("image",{attrs:{x:u.x-r/2,y:u.y-r,width:r,height:r,img:t.shape[1]}})}}catch(h){n={error:h}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}return s}return e.addShape("image",{attrs:{x:o.x-r/2,y:o.y-r,width:r,height:r,img:t.shape[1]}})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4.5,fill:e}}}}),Object(E["j"])(ao,(function(t){Er("point",t,{draw:function(e,n){return so(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:ta[t]||t,style:{r:4.5,fill:n}}}})})),Er("schema","box",{getPoints:function(t){var e=t.x,n=t.y,i=t.size;return Bo(e,n,i)},draw:function(t,e){var n=da(t,!0,!1),i=this.parsePath(Lo(t.points)),r=e.addShape("path",{attrs:Object(F["a"])(Object(F["a"])({},n),{path:i,name:"schema"})});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var i=[e-6,e-3,e,e+3,e+6],r=Bo(t,i,n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},style:{r:6,lineWidth:1,stroke:e}}}}),Er("schema","candle",{getPoints:function(t){var e=t.x,n=t.y,i=t.size;return Ro(e,n,i)},draw:function(t,e){var n=da(t,!0,!0),i=this.parsePath(zo(t.points)),r=e.addShape("path",{attrs:Object(F["a"])(Object(F["a"])({},n),{path:i,name:"schema"})});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var i=[e+7.5,e+3,e-3,e-7.5],r=Ro(t,i,n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}}),Er("polygon","square",{draw:function(t,e){if(!Object(E["G"])(t.points)){var n=da(t,!0,!0),i=this.parsePoints(t.points);return e.addShape("rect",{attrs:Object(F["a"])(Object(F["a"])({},n),_o(i,t.size)),name:"polygon"})}},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),Er("violin","smooth",{draw:function(t,e){var n=da(t,!0,!0),i=this.parsePath(pa(t.points));return e.addShape("path",{attrs:Object(F["a"])(Object(F["a"])({},n),{path:i})})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{stroke:null,r:4,fill:e}}}}),Er("violin","hollow",{draw:function(t,e){var n=da(t,!0,!1),i=this.parsePath(fa(t.points));return e.addShape("path",{attrs:Object(F["a"])(Object(F["a"])({},n),{path:i})})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4,fill:null,stroke:e}}}}),Er("violin","hollow-smooth",{draw:function(t,e){var n=da(t,!0,!1),i=this.parsePath(pa(t.points));return e.addShape("path",{attrs:Object(F["a"])(Object(F["a"])({},n),{path:i})})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4,fill:null,stroke:e}}}});var No=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.getLabelValueDir=function(t){var e="y",n=t.points;return n[0][e]<=n[2][e]?1:-1},e.prototype.getLabelOffsetPoint=function(e,n,i,r){var a,o=t.prototype.getLabelOffsetPoint.call(this,e,n,i),s=this.getCoordinate(),c=s.isTransposed,l=c?"x":"y",u=this.getLabelValueDir(e.mappingData);return o=Object(F["a"])(Object(F["a"])({},o),(a={},a[l]=o[l]*u,a)),s.isReflect("x")&&(o=Object(F["a"])(Object(F["a"])({},o),{x:-1*o.x})),s.isReflect("y")&&(o=Object(F["a"])(Object(F["a"])({},o),{y:-1*o.y})),o},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),i=e.theme;return Object(E["h"])({},n,i.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,i){var r,a,o,s,c=this.getCoordinate(),l=c.isTransposed,u=e.points,h=c.convert(u[0]),f=c.convert(u[2]),p=this.getLabelValueDir(e),d=Object(E["C"])(e.shape)?e.shape[0]:e.shape;if("funnel"===d||"pyramid"===d){var g=Object(E["s"])(e,"nextPoints"),v=Object(E["s"])(e,"points");if(g){var y=c.convert(v[0]),m=c.convert(v[1]),b=c.convert(g[0]),x=c.convert(g[1]);l?(r=Math.min(b.y,y.y),o=Math.max(b.y,y.y),a=(m.x+x.x)/2,s=(y.x+b.x)/2):(r=Math.min((m.y+x.y)/2,(y.y+b.y)/2),o=Math.max((m.y+x.y)/2,(y.y+b.y)/2),a=x.x,s=y.x)}else r=Math.min(f.y,h.y),o=Math.max(f.y,h.y),a=f.x,s=h.x}else r=Math.min(f.y,h.y),o=Math.max(f.y,h.y),a=f.x,s=h.x;switch(i){case"right":t.x=a,t.y=(r+o)/2,t.textAlign=Object(E["s"])(t,"textAlign",p>0?"left":"right");break;case"left":t.x=s,t.y=(r+o)/2,t.textAlign=Object(E["s"])(t,"textAlign",p>0?"left":"right");break;case"bottom":l&&(t.x=(a+s)/2),t.y=o,t.textAlign=Object(E["s"])(t,"textAlign","center"),t.textBaseline=Object(E["s"])(t,"textBaseline",p>0?"bottom":"top");break;case"middle":l&&(t.x=(a+s)/2),t.y=(r+o)/2,t.textAlign=Object(E["s"])(t,"textAlign","center"),t.textBaseline=Object(E["s"])(t,"textBaseline","middle");break;case"top":l&&(t.x=(a+s)/2),t.y=r,t.textAlign=Object(E["s"])(t,"textAlign","center"),t.textBaseline=Object(E["s"])(t,"textBaseline",p>0?"bottom":"top");break;default:break}},e}(Jr),Yo=No,Go=Math.PI/2,Vo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if(Object(E["M"])(t))n=t;else if(Object(E["Q"])(t)&&-1!==t.indexOf("%")){var i=e.getRadius();e.innerRadius>0&&(i*=1-e.innerRadius),n=.01*parseFloat(t)*i}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),i=this.geometry.getYScale();return Object(E["W"])(n,(function(t){if(t&&i){var e=i.scale(Object(E["s"])(t.data,i.field));return Object(F["a"])(Object(F["a"])({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var i=n.getCenter(),r=t.offset;e=Math.abs(t.x-i.x)<1?"center":t.angle>Math.PI||t.angle<=0?r>0?"left":"right":r>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var i,r=1,a=t.content[n];this.isToMiddle(e)?i=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(r=-1),i=this.getArcPoint(e,n));var o=t.offset*r,s=this.getPointAngle(i),c=t.labelEmit,l=this.getCirclePoint(s,o,i,c);return 0===l.r?l.content="":(l.content=a,l.angle=s,l.color=e.color),l.rotate=t.autoRotate?this.getLabelRotate(s,o,c):t.rotate,l.start={x:i.x,y:i.y},l},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),Object(E["C"])(t.x)||Object(E["C"])(t.y)?{x:Object(E["C"])(t.x)?t.x[e]:t.x,y:Object(E["C"])(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return ae(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,i){var r=this.getCoordinate(),a=r.getCenter(),o=ie(r,n);if(0===o)return Object(F["a"])(Object(F["a"])({},a),{r:o});var s=t;if(r.isTransposed&&o>e&&!i){var c=Math.asin(e/(2*o));s=t+2*c}else o+=e;return{x:a.x+o*Math.cos(s),y:a.y+o*Math.sin(s),r:o}},e.prototype.getLabelRotate=function(t,e,n){var i=t+Go;return n&&(i-=Go),i&&(i>Go?i-=Math.PI:i<-Go&&(i+=Math.PI)),i},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,i={x:0,y:0};return Object(E["j"])(t,(function(t){i.x+=t.x,i.y+=t.y})),i.x/=n,i.y/=n,i=e.convert(i),i},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(Jr),Wo=Vo,Xo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return Object(F["c"])(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var i=t.prototype.getDefaultLabelCfg.call(this,e,n);return Object(E["h"])({},i,Object(E["s"])(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(e){return t.prototype.getLabelOffset.call(this,e)||0},e.prototype.getLabelRotate=function(t,e,n){var i;return e<0&&(i=t,i>Math.PI/2&&(i-=Math.PI),i<-Math.PI/2&&(i+=Math.PI)),i},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate(),i=n.getCenter();return e=t.angle<=Math.PI/2&&t.x>=i.x?"left":"right",t.offset<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,n=this.getCoordinate(),i={x:Object(E["C"])(t.x)?t.x[0]:t.x,y:t.y[0]},r={x:Object(E["C"])(t.x)?t.x[1]:t.x,y:t.y[1]},a=ae(n,i);if(t.points&&t.points[0].y===t.points[1].y)e=a;else{var o=ae(n,r);a>=o&&(o+=2*Math.PI),e=a+(o-a)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),i=n.getCenter(),r=n.getRadius()+e;return Object(F["a"])(Object(F["a"])({},Vt(i.x,i.y,r,t)),{angle:t,r:r})},e}(Wo),Ho=Xo,qo=4;function Uo(t,e,n,i,r,a){var o,s,c,l=!0,u=i.start,h=i.end,f=Math.min(u.y,h.y),p=Math.abs(u.y-h.y),d=0,g=Number.MIN_VALUE,v=e.map((function(t){return t.y>d&&(d=t.y),t.yp&&(p=d-f);while(l){v.forEach((function(t){var e=(Math.min.apply(g,t.targets)+Math.max.apply(g,t.targets))/2;t.pos=Math.min(Math.max(g,e-t.size/2),p-t.size)})),l=!1,c=v.length;while(c--)if(c>0){var y=v[c-1],m=v[c];y.pos+y.size>m.pos&&(y.size+=m.size,y.targets=y.targets.concat(m.targets),y.pos+y.size>p&&(y.pos=p-y.size),v.splice(c,1),l=!0)}}c=0,v.forEach((function(t){var i=f+n/2;t.targets.forEach((function(){e[c].y=t.pos+i,i+=n,c++}))}));var b={};try{for(var x=Object(F["i"])(t),O=x.next();!O.done;O=x.next()){var j=O.value;b[j.get("id")]=j}}catch(w){o={error:w}}finally{try{O&&!O.done&&(s=x.return)&&s.call(x)}finally{if(o)throw o.error}}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-r.y),2);if(e0){var c=14,l=o+r,u=2*l+2*c,h={start:a.start,end:a.end},f=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?f[0].push(t):f[1].push(t))})),f.forEach((function(t,n){var i=u/c;t.length>i&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(i,t.length-i)),t.sort((function(t,e){return t.y-e.y})),Uo(e,t,c,h,s,n)}))}Object(E["j"])(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,i=Vt(s.x,s.y,o,n),r=Vt(s.x,s.y,o+e/2,n),a=t.x+Object(E["s"])(t,"offsetX",0),c=t.y+Object(E["s"])(t,"offsetY",0),l={x:a-Math.cos(n)*qo,y:c-Math.sin(n)*qo};Object(E["O"])(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M ".concat(i.x),"".concat(i.y," Q").concat(r.x),"".concat(r.y," ").concat(l.x),l.y].join(",")}}))}}function Qo(t,e,n){var i=t.filter((function(t){return!t.invisible}));i.sort((function(t,e){return t.y-e.y}));var r,a=!0,o=n.minY,s=n.maxY,c=Math.abs(o-s),l=0,u=Number.MIN_VALUE,h=i.map((function(t){return t.y>l&&(l=t.y),t.yc&&(c=l-o);while(a){h.forEach((function(t){var e=(Math.min.apply(u,t.targets)+Math.max.apply(u,t.targets))/2;t.pos=Math.min(Math.max(u,e-t.size/2),c-t.size),t.pos=Math.max(0,t.pos)})),a=!1,r=h.length;while(r--)if(r>0){var f=h[r-1],p=h[r];f.pos+f.size>p.pos&&(f.size+=p.size,f.targets=f.targets.concat(p.targets),f.pos+f.size>c&&(f.pos=c-f.size),h.splice(r,1),a=!0)}}r=0,h.forEach((function(t){var n=o+e/2;t.targets.forEach((function(){i[r].y=t.pos+n,n+=e,r++}))}))}var Zo=4;function Jo(t,e){var n=e.getCenter(),i=e.getRadius();if(t&&t.labelLine){var r=t.angle,a=t.offset,o=Vt(n.x,n.y,i,r),s=t.x+Object(E["s"])(t,"offsetX",0)*(Math.cos(r)>0?1:-1),c=t.y+Object(E["s"])(t,"offsetY",0)*(Math.sin(r)>0?1:-1),l={x:s-Math.cos(r)*Zo,y:c-Math.sin(r)*Zo},u=t.labelLine.smooth,h=[],f=l.x-n.x,p=l.y-n.y,d=Math.atan(p/f);if(f<0&&(d+=Math.PI),!1===u){Object(E["O"])(t.labelLine)||(t.labelLine={});var g=0;(r<0&&r>-Math.PI/2||r>1.5*Math.PI)&&l.y>o.y&&(g=1),r>=0&&ro.y&&(g=1),r>=Math.PI/2&&rl.y&&(g=1),(r<-Math.PI/2||r>=Math.PI&&r<1.5*Math.PI)&&o.y>l.y&&(g=1);var v=a/2>4?4:Math.max(a/2-1,0),y=Vt(n.x,n.y,i+v,r),m=Vt(n.x,n.y,i+a/2,d),b=0;h.push("M ".concat(o.x," ").concat(o.y)),h.push("L ".concat(y.x," ").concat(y.y)),h.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(b," ").concat(g," ").concat(m.x," ").concat(m.y)),h.push("L ".concat(l.x," ").concat(l.y))}else{y=Vt(n.x,n.y,i+(a/2>4?4:Math.max(a/2-1,0)),r);var x=o.xMath.pow(Math.E,-16)&&h.push.apply(h,["C",l.x+4*x,l.y,2*y.x-o.x,2*y.y-o.y,o.x,o.y]),h.push("L ".concat(o.x," ").concat(o.y))}t.labelLine.path=h.join(" ")}}function $o(t,e,n,i){var r,a,o=Object(E["l"])(t,(function(t){return!Object(E["K"])(t)})),s=e[0]&&e[0].get("coordinate");if(s){var c=s.getCenter(),l=s.getRadius(),u={};try{for(var h=Object(F["i"])(e),f=h.next();!f.done;f=h.next()){var p=f.value;u[p.get("id")]=p}}catch(C){r={error:C}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}var d=Object(E["s"])(o[0],"labelHeight",14),g=Object(E["s"])(o[0],"offset",0);if(!(g<=0)){var v="left",y="right",m=Object(E["w"])(o,(function(t){return t.xn&&(t.sort((function(t,e){return e.percent-t.percent})),Object(E["j"])(t,(function(t,e){e+1>n&&(u[t.id].set("visible",!1),t.invisible=!0)}))),Qo(t,d,w)})),Object(E["j"])(m,(function(t,e){Object(E["j"])(t,(function(t){var n=e===y,i=u[t.id],r=i.getChildByIndex(0);if(r){var a=l+g,o=t.y-c.y,h=Math.pow(a,2),f=Math.pow(o,2),p=h-f>0?h-f:0,d=Math.sqrt(p),v=Math.abs(Math.cos(t.angle)*a);t.x=n?c.x+Math.max(d,v):c.x-Math.max(d,v)}r&&(r.attr("y",t.y),r.attr("x",t.x)),Jo(t,s)}))}))}}}var ts=4,es=4,ns=4;function is(t,e,n){var i=e.getCenter(),r=e.getRadius(),a={x:t.x-(n?ns:-ns),y:t.y},o=Vt(i.x,i.y,r+ts,t.angle),s={x:a.x,y:a.y},c={x:o.x,y:o.y},l=Vt(i.x,i.y,r,t.angle),u="";if(a.y!==o.y){var h=n?4:-4;s.y=a.y,t.angle<0&&t.angle>=-Math.PI/2&&(s.x=Math.max(o.x,a.x-h),a.y0&&t.angleo.y?c.y=s.y:(c.y=o.y,c.x=Math.max(c.x,s.x-h))),t.angle>Math.PI/2&&(s.x=Math.min(o.x,a.x-h),a.y>o.y?c.y=s.y:(c.y=o.y,c.x=Math.min(c.x,s.x-h))),t.angle<-Math.PI/2&&(s.x=Math.min(o.x,a.x-h),a.ys.x||t.x===s.x&&t.y>s.y,i=Object(E["K"])(t.offsetX)?es:t.offsetX,r=Vt(s.x,s.y,c+ts,t.angle),a=d+i;t.x=s.x+(n?1:-1)*(c+a),t.y=r.y}}}));var g=o.start,v=o.end,y="left",m="right",b=Object(E["w"])(t,(function(t){return t.xx&&(x=Math.min(e,Math.abs(g.y-v.y)))}));var O={minX:g.x,maxX:v.x,minY:s.y-x/2,maxY:s.y+x/2};Object(E["j"])(b,(function(t,e){var n=x/p;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(E["j"])(t,(function(t,e){e>n&&(l[t.id].set("visible",!1),t.invisible=!0)}))),Qo(t,p,O)}));var j=O.minY,w=O.maxY;Object(E["j"])(b,(function(t,e){var n=e===m;Object(E["j"])(t,(function(t){var e=Object(E["s"])(l,t&&[t.id]);if(e)if(t.yw)e.set("visible",!1);else{var i=e.getChildByIndex(0),r=i.getCanvasBBox(),a={x:n?r.x:r.maxX,y:r.y+r.height/2};_r(i,t.x-a.x,t.y-a.y),t.labelLine&&is(t,o,n)}}))}))}}function as(t,e,n,i){Object(E["j"])(e,(function(t){var e=i.minX,n=i.minY,r=i.maxX,a=i.maxY,o=t.getCanvasBBox(),s=o.minX,c=o.minY,l=o.maxX,u=o.maxY,h=o.x,f=o.y,p=o.width,d=o.height,g=h,v=f;(sr?g=r-p:l>r&&(g-=l-r),c>a?v=a-d:u>a&&(v-=u-a),g===h&&v===f||_r(t,g-h,v-f)}))}function os(t,e,n,i){Object(E["j"])(e,(function(t,e){var i=t.getCanvasBBox(),r=n[e].getBBox();(i.minXr.maxX||i.maxY>r.maxY)&&t.remove(!0)}))}var ss=100,cs=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=void 0===e?1:e,i=t.yGap,r=void 0===i?8:i;this.xGap=n,this.yGap=r}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,i=Math.round(t.minX),r=Math.round(t.maxX),a=Math.round(t.minY),o=Math.round(t.maxY),s=i;s<=r;s+=1)if(n[s]){if(s===i||s===r){for(var c=a;c<=o;c++)if(n[s][c]){e=!1;break}}else if(n[s][a]||n[s][o]){e=!1;break}}else n[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),i=Math.round(t.maxX),r=Math.round(t.minY),a=Math.round(t.maxY),o=n;o<=i;o+=1)e[o]||(e[o]={});for(o=n;o<=i;o+=this.xGap){for(var s=r;s<=a;s+=this.yGap)e[o][s]=!0;e[o][a]=!0}if(1!==this.yGap)for(o=r;o<=a;o+=1)e[n][o]=!0,e[i][o]=!0;if(1!==this.xGap)for(o=n;o<=i;o+=1)e[o][r]=!0,e[o][a]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function ls(t,e,n){void 0===n&&(n=ss);var i,r=-1,a=t.attr(),o=a.x,s=a.y,c=t.getCanvasBBox(),l=Math.sqrt(c.width*c.width+c.height*c.height),u=-r,h=0,f=0,p=function(t){var e=.1*t;return[e*Math.cos(e),e*Math.sin(e)]};if(e.hasGap(c))return e.fillGap(c),!0;var d=!1,g=0,v={};while(Math.min(Math.abs(h),Math.abs(f))4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]},n=e(t[0],t[1]),i=e(t[1],t[2]);return[n,i]}function gs(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var i=t.x,r=t.y;return{x:(i-n.x)*Math.cos(-e)+(r-n.y)*Math.sin(-e)+n.x,y:(n.x-i)*Math.sin(-e)+(r-n.y)*Math.cos(-e)+n.y}}function vs(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],n=t.rotation;return n?[gs(e[0],n,e[0]),gs(e[1],n,e[0]),gs(e[2],n,e[0]),gs(e[3],n,e[0])]:e}function ys(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){n.push(ps([t.x,t.y],e))})),{min:Math.min.apply(Math,Object(F["g"])([],Object(F["e"])(n),!1)),max:Math.max.apply(Math,Object(F["g"])([],Object(F["e"])(n),!1))}}function ms(t,e){return t.max>e.min&&t.mint.x+t.width+n||e.x+e.widtht.y+t.height+n||e.y+e.height4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]},n=e(t[0],t[1]),i=e(t[1],t[2]);return[n,i]}function n(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var i=t.x,r=t.y;return{x:(i-n.x)*Math.cos(-e)+(r-n.y)*Math.sin(-e)+n.x,y:(n.x-i)*Math.sin(-e)+(r-n.y)*Math.cos(-e)+n.y}}function i(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],i=t.rotation;return i?[n(e[0],i,e[0]),n(e[1],i,e[0]),n(e[2],i,e[0]),n(e[3],i,e[0])]:e}function r(e,n){if(e.length>4)return{min:0,max:0};var i=[];return e.forEach((function(e){i.push(t([e.x,e.y],n))})),{min:Math.min.apply(null,i),max:Math.max.apply(null,i)}}function a(t,e){return t.max>e.min&&t.mint.x+t.width+n||e.x+e.widtht.y+t.height+n||e.y+e.height=a.height:o.width>=a.width}function Ds(t,e,n){var i=!!t.getAdjust("stack");return i||e.every((function(e,i){var r=n[i];return Ls(t,e,r)}))}function Rs(t,e,n){var i=t.coordinate,r=$t.fromObject(n.getBBox()),a=Vr(e);i.isTransposed?a.attr({x:r.minX+r.width/2,textAlign:"center"}):a.attr({y:r.minY+r.height/2,textBaseline:"middle"})}function zs(t,e,n){var i;if(0!==n.length){var r=null===(i=n[0])||void 0===i?void 0:i.get("element"),a=null===r||void 0===r?void 0:r.geometry;if(a&&"interval"===a.type){var o=Ds(a,e,n);o&&n.forEach((function(t,n){var i=e[n];Rs(a,i,t)}))}}}function _s(t){var e=500,n=[],i=Math.max(Math.floor(t.length/e),1);return Object(E["j"])(t,(function(t,e){e%i===0?n.push(t):t.set("visible",!1)})),n}function Ns(t,e,n){var i;if(0!==n.length){var r=null===(i=n[0])||void 0===i?void 0:i.get("element"),a=null===r||void 0===r?void 0:r.geometry;if(a&&"interval"===a.type){var o,s=_s(e),c=Object(F["e"])(a.getXYFields(),1),l=c[0],u=[],h=[],f=Object(E["w"])(s,(function(t){return t.get("data")[l]})),p=Object(E["ub"])(Object(E["W"])(s,(function(t){return t.get("data")[l]})));s.forEach((function(t){t.set("visible",!0)}));var d=function(t){t&&(t.length&&h.push(t.pop()),h.push.apply(h,Object(F["g"])([],Object(F["e"])(t),!1)))};Object(E["mb"])(p)>0&&(o=p.shift(),d(f[o])),Object(E["mb"])(p)>0&&(o=p.pop(),d(f[o])),Object(E["j"])(p.reverse(),(function(t){d(f[t])}));while(h.length>0){var g=h.shift();g.get("visible")&&(Hr(g,u)?g.set("visible",!1):u.push(g))}}}}function Ys(t,e){var n=t.getXYFields()[1],i=[],r=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return r.length>0&&i.push(r.shift()),r.length>0&&i.push(r.pop()),i.push.apply(i,Object(F["g"])([],Object(F["e"])(r),!1)),i}function Gs(t,e,n){return t.some((function(t){return n(t,e)}))}function Vs(t,e,n){void 0===n&&(n=0);var i=Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n)),r=Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n));return i*r}function Ws(t,e){return Gs(t,e,(function(t,e){var n=Vr(t),i=Vr(e);return Vs(n.getCanvasBBox(),i.getCanvasBBox(),2)>0}))}function Xs(t,e,n,i,r){var a,o;if(0!==n.length){var s=null===(a=n[0])||void 0===a?void 0:a.get("element"),c=null===s||void 0===s?void 0:s.geometry;if(c&&"point"===c.type){var l=Object(F["e"])(c.getXYFields(),2),u=l[0],h=l[1],f=Object(E["w"])(e,(function(t){return t.get("data")[u]})),p=[],d=r&&r.offset||(null===(o=t[0])||void 0===o?void 0:o.offset)||12;Object(E["W"])(Object(E["T"])(f).reverse(),(function(t){var e=Ys(c,f[t]);while(e.length){var n=e.shift(),i=Vr(n);if(Gs(p,n,(function(t,e){return t.get("data")[u]===e.get("data")[u]&&t.get("data")[h]===e.get("data")[h]})))i.set("visible",!1);else{var r=Ws(p,n),a=!1;r&&(i.attr("y",i.attr("y")+2*d),a=Ws(p,n)),a?i.set("visible",!1):p.push(n)}}}))}}}function Hs(t,e){var n=t.getXYFields()[1],i=[],r=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return r.length>0&&i.push(r.shift()),r.length>0&&i.push(r.pop()),i.push.apply(i,Object(F["g"])([],Object(F["e"])(r),!1)),i}function qs(t,e,n){return t.some((function(t){return n(t,e)}))}function Us(t,e,n){void 0===n&&(n=0);var i=Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n)),r=Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n));return i*r}function Ks(t,e){return qs(t,e,(function(t,e){var n=Vr(t),i=Vr(e);return Us(n.getCanvasBBox(),i.getCanvasBBox(),2)>0}))}function Qs(t,e,n,i,r){var a,o;if(0!==n.length){var s=null===(a=n[0])||void 0===a?void 0:a.get("element"),c=null===s||void 0===s?void 0:s.geometry;if(c&&!(["path","line","area"].indexOf(c.type)<0)){var l=Object(F["e"])(c.getXYFields(),2),u=l[0],h=l[1],f=Object(E["w"])(e,(function(t){return t.get("data")[u]})),p=[],d=r&&r.offset||(null===(o=t[0])||void 0===o?void 0:o.offset)||12;Object(E["W"])(Object(E["T"])(f).reverse(),(function(t){var e=Hs(c,f[t]);while(e.length){var n=e.shift(),i=Vr(n);if(qs(p,n,(function(t,e){return t.get("data")[u]===e.get("data")[u]&&t.get("data")[h]===e.get("data")[h]})))i.set("visible",!1);else{var r=Ks(p,n),a=!1;r&&(i.attr("y",i.attr("y")+2*d),a=Ks(p,n)),a?i.set("visible",!1):p.push(n)}}}))}}}function Zs(){return Is||(Is=document.createElement("canvas").getContext("2d")),Is}var Js=Object(E["ab"])((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,r=e.fontWeight,a=e.fontStyle,o=e.fontVariant,s=Zs();return s.font=[a,o,r,"".concat(n,"px"),i].join(" "),s.measureText(Object(E["Q"])(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(F["g"])([t],Object(F["e"])(Object(E["xb"])(e)),!1).join("")})),$s=function(t,e,n){var i,r=16,a=Js("...",n);i=Object(E["Q"])(t)?t:Object(E["tb"])(t);var o,s,c=e,l=[];if(Js(t,n)<=e)return t;while(1){if(o=i.substr(0,r),s=Js(o,n),s+a>c&&s>c)break;if(l.push(o),c-=s,i=i.substr(r),!i)return l.join("")}while(1){if(o=i.substr(0,1),s=Js(o,n),s+a>c)break;if(l.push(o),c-=s,i=i.substr(1),!i)return l.join("")}return"".concat(l.join(""),"...")};function tc(t,e,n,i,r){if(!(e.length<=0)){var a=(null===r||void 0===r?void 0:r.direction)||["top","right","bottom","left"],o=(null===r||void 0===r?void 0:r.action)||"translate",s=(null===r||void 0===r?void 0:r.margin)||0,c=e[0].get("coordinate");if(c){var l=se(c,s),u=l.minX,h=l.minY,f=l.maxX,p=l.maxY;Object(E["j"])(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,i=e.minY,r=e.maxX,s=e.maxY,c=e.x,l=e.y,d=e.width,g=e.height,v=c,y=l;if(a.indexOf("left")>=0&&(n=0&&(i=0&&(n>f?v=f-d:r>f&&(v-=r-f)),a.indexOf("bottom")>=0&&(i>p?y=p-g:s>p&&(y-=s-p)),v!==c||y!==l){var m=v-c;if("translate"===o)_r(t,m,y-l);else if("ellipsis"===o){var b=t.findAll((function(t){return"text"===t.get("type")}));b.forEach((function(t){var e=Object(E["hb"])(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),i=$s(t.attr("text"),n.width-Math.abs(m),e);t.attr("text",i)}))}else t.hide()}}))}}}function ec(t,e,n){var i={fillOpacity:Object(E["K"])(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:Object(E["K"])(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:Object(E["K"])(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(i,e)}function nc(t,e,n){var i={fillOpacity:0,strokeOpacity:0,opacity:0},r=e.easing,a=e.duration,o=e.delay;t.animate(i,a,r,(function(){t.remove(!0)}),o)}function ic(t,e,n){var i,r=Object(F["e"])(e,2),a=r[0],o=r[1];return t.applyToMatrix([a,o,1]),"x"===n?(t.setMatrix(xt["a"].transform(t.getMatrix(),[["t",-a,-o],["s",.01,1],["t",a,o]])),i=xt["a"].transform(t.getMatrix(),[["t",-a,-o],["s",100,1],["t",a,o]])):"y"===n?(t.setMatrix(xt["a"].transform(t.getMatrix(),[["t",-a,-o],["s",1,.01],["t",a,o]])),i=xt["a"].transform(t.getMatrix(),[["t",-a,-o],["s",1,100],["t",a,o]])):"xy"===n&&(t.setMatrix(xt["a"].transform(t.getMatrix(),[["t",-a,-o],["s",.01,.01],["t",a,o]])),i=xt["a"].transform(t.getMatrix(),[["t",-a,-o],["s",100,100],["t",a,o]])),i}function rc(t,e,n,i,r){var a,o,s=n.start,c=n.end,l=n.getWidth(),u=n.getHeight();"y"===r?(a=s.x+l/2,o=i.ys.x?i.x:s.x,o=s.y+u/2):"xy"===r&&(n.isPolar?(a=n.getCenter().x,o=n.getCenter().y):(a=(s.x+c.x)/2,o=(s.y+c.y)/2));var h=ic(t,[a,o],r);t.animate({matrix:h},e)}function ac(t,e,n){var i=n.coordinate,r=n.minYPoint;rc(t,e,i,r,"x")}function oc(t,e,n){var i=n.coordinate,r=n.minYPoint;rc(t,e,i,r,"y")}function sc(t,e,n){var i=n.coordinate,r=n.minYPoint;rc(t,e,i,r,"xy")}function cc(t,e,n){var i=t.getTotalLength();t.attr("lineDash",[i]),t.animate((function(t){return{lineDashOffset:(1-t)*i}}),e)}function lc(t,e,n){var i=n.toAttrs,r=i.x,a=i.y;delete i.x,delete i.y,t.attr(i),t.animate({x:r,y:a},e)}function uc(t,e,n){var i=t.getBBox(),r=t.get("origin").mappingData,a=r.points,o=a[0].y-a[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;t.applyToMatrix([o,s,1]);var c=xt["a"].transform(t.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);t.setMatrix(c),t.animate({matrix:xt["a"].transform(t.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},e)}function hc(t,e,n){var i=t.getBBox(),r=t.get("origin").mappingData,a=(i.minX+i.maxX)/2,o=r.points,s=o[0].y-o[1].y<=0?i.maxY:i.minY;t.applyToMatrix([a,s,1]);var c=xt["a"].transform(t.getMatrix(),[["t",-a,-s],["s",1,.01],["t",a,s]]);t.setMatrix(c),t.animate({matrix:xt["a"].transform(t.getMatrix(),[["t",-a,-s],["s",1,100],["t",a,s]])},e)}function fc(t,e){var n,i=Object(Ia["getArcParams"])(t,e),r=i.startAngle,a=i.endAngle;return!Object(E["N"])(r,.5*-Math.PI)&&r<.5*-Math.PI&&(r+=2*Math.PI),!Object(E["N"])(a,.5*-Math.PI)&&a<.5*-Math.PI&&(a+=2*Math.PI),0===e[5]&&(n=Object(F["e"])([a,r],2),r=n[0],a=n[1]),Object(E["N"])(r,1.5*Math.PI)&&(r=-.5*Math.PI),Object(E["N"])(a,-.5*Math.PI)&&!Object(E["N"])(r,a)&&(a=1.5*Math.PI),{startAngle:r,endAngle:a}}function pc(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:"a"!==t[0]&&"A"!==t[0]&&"C"!==t[0]||(e=[t[t.length-2],t[t.length-1]]),e}function dc(t){var e,n,i,r=t.filter((function(t){return"A"===t[0]||"a"===t[0]}));if(0===r.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var a=r[0],o=r.length>1?r[1]:r[0],s=t.indexOf(a),c=t.indexOf(o),l=pc(t[s-1]),u=pc(t[c-1]),h=fc(l,a),f=h.startAngle,p=h.endAngle,d=fc(u,o),g=d.startAngle,v=d.endAngle;Object(E["N"])(f,g)&&Object(E["N"])(p,v)?(n=f,i=p):(n=Math.min(f,g),i=Math.max(p,v));var y=a[1],m=r[r.length-1][1];return y=0;s--){var c=this.getFacetsByLevel(t,s);try{for(var l=(e=void 0,Object(F["i"])(c)),u=l.next();!u.done;u=l.next()){var h=u.value;this.isLeaf(h)||(h.originColIndex=h.columnIndex,h.columnIndex=this.getRegionIndex(h.children),h.columnValuesLength=r.length)}}catch(f){e={error:f}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}}},e.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach((function(t){t.rowIndex===e&&n.push(t)})),n},e.prototype.getRegionIndex=function(t){var e=t[0],n=t[t.length-1];return(n.columnIndex-e.columnIndex)/2+e.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,e,n){var i=this,r=this.cfg.fields,a=r.length;if(!(a=n){var r=i.parsePosition([t[s],t[o.field]]);r&&h.push(r)}if(t[s]===u)return!1})),h},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,i=this.view.getCoordinate(),r=i.start,a=i.end,o={x:Math.min(r.x,a.x),y:Math.min(r.y,a.y)},s=i.getWidth()*e+o.x,c=i.getHeight()*n+o.y;return{x:s,y:c}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,i=t.getWidth(),r=t.getHeight(),a={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:a.x,y:a.y,minX:a.x,minY:a.y,maxX:a.x+i,maxY:a.y+r,width:i,height:r}},e.prototype.getAnnotationCfg=function(t,e,n){var i=this,r=this.view.getCoordinate(),a=this.view.getCanvas(),o={};if(Object(E["K"])(e))return null;var s=e.start,c=e.end,l=e.position,u=this.parsePosition(s),h=this.parsePosition(c),f=this.parsePosition(l);if(!(!["arc","image","line","region","regionFilter"].includes(t)||u&&h))return null;if(["text","dataMarker","html"].includes(t)&&!f)return null;if("arc"===t){var p=e,d=(p.start,p.end,Object(F["f"])(p,["start","end"])),g=ae(r,u),v=ae(r,h);g>v&&(v=2*Math.PI+v),o=Object(F["a"])(Object(F["a"])({},d),{center:r.getCenter(),radius:ie(r,u),startAngle:g,endAngle:v})}else if("image"===t){var y=e;y.start,y.end,d=Object(F["f"])(y,["start","end"]);o=Object(F["a"])(Object(F["a"])({},d),{start:u,end:h,src:e.src})}else if("line"===t){var m=e;m.start,m.end,d=Object(F["f"])(m,["start","end"]);o=Object(F["a"])(Object(F["a"])({},d),{start:u,end:h,text:Object(E["s"])(e,"text",null)})}else if("region"===t){var b=e;b.start,b.end,d=Object(F["f"])(b,["start","end"]);o=Object(F["a"])(Object(F["a"])({},d),{start:u,end:h})}else if("text"===t){var x=this.view.getData(),O=e,j=(O.position,O.content),w=(d=Object(F["f"])(O,["position","content"]),j);Object(E["I"])(j)&&(w=j(x)),o=Object(F["a"])(Object(F["a"])(Object(F["a"])({},f),d),{content:w})}else if("dataMarker"===t){var C=e,M=(C.position,C.point),S=C.line,A=C.text,k=C.autoAdjust,I=C.direction;d=Object(F["f"])(C,["position","point","line","text","autoAdjust","direction"]);o=Object(F["a"])(Object(F["a"])(Object(F["a"])({},d),f),{coordinateBBox:this.getCoordinateBBox(),point:M,line:S,text:A,autoAdjust:k,direction:I})}else if("dataRegion"===t){var T=e,P=T.start,B=T.end,L=T.region,D=(A=T.text,T.lineLength);d=Object(F["f"])(T,["start","end","region","text","lineLength"]);o=Object(F["a"])(Object(F["a"])({},d),{points:this.getRegionPoints(P,B),region:L,text:A,lineLength:D})}else if("regionFilter"===t){var R=e,z=(R.start,R.end,R.apply),_=R.color,N=(d=Object(F["f"])(R,["start","end","apply","color"]),this.view.geometries),Y=[],G=function(t){t&&(t.isGroup()?t.getChildren().forEach((function(t){return G(t)})):Y.push(t))};Object(E["j"])(N,(function(t){z?Object(E["f"])(z,t.type)&&Object(E["j"])(t.elements,(function(t){G(t.shape)})):Object(E["j"])(t.elements,(function(t){G(t.shape)}))})),o=Object(F["a"])(Object(F["a"])({},d),{color:_,shapes:Y,start:u,end:h})}else if("shape"===t){var V=e,W=V.render,X=Object(F["f"])(V,["render"]),H=function(t){if(Object(E["I"])(e.render))return W(t,i.view,{parsePosition:i.parsePosition.bind(i)})};o=Object(F["a"])(Object(F["a"])({},X),{render:H})}else if("html"===t){var q=e,U=q.html,K=(q.position,X=Object(F["f"])(q,["html","position"]),function(t){return Object(E["I"])(U)?U(t,i.view):U});o=Object(F["a"])(Object(F["a"])(Object(F["a"])({},X),f),{parent:a.get("el").parentNode,html:K})}var Q=Object(E["h"])({},n,Object(F["a"])(Object(F["a"])({},o),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(Q.container=this.getComponentContainer(Q)),Q.animate=this.view.getOptions().animate&&Q.animate&&Object(E["s"])(e,"animate",Q.animate),Q.animateOption=Object(E["h"])({},ur,Q.animateOption,e.animateOption),Q},e.prototype.isTop=function(t){return Object(E["s"])(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return Object(E["s"])(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var e=this.cache.get(this.getCacheKey(t));if(e){var n=t.type,i=this.getAnnotationTheme(n),r=this.getAnnotationCfg(n,t,i);r&&Zt(r,["container"]),e.component.update(Object(F["a"])(Object(F["a"])({},r||{}),{visible:!!r})),Object(E["A"])(Rc,t.type)&&e.component.render()}else e=this.createAnnotation(t),e&&(e.component.init(),Object(E["A"])(Rc,t.type)&&e.component.render());return e},e.prototype.syncCache=function(t){var e=this,n=new Map(this.cache);return t.forEach((function(t,e){n.set(e,t)})),n.forEach((function(t,i){Object(E["m"])(e.option,(function(t){return i===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(i))})),n},e.prototype.getCacheKey=function(t){return t},e}(ir),_c=zc;function Nc(t,e){var n=Object(E["h"])({},Object(E["s"])(t,["components","axis","common"]),Object(E["s"])(t,["components","axis",e]));return Object(E["s"])(n,["grid"],{})}function Yc(t,e,n,i){var r=[],a=e.getTicks();return t.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce((function(e,a,o){var s=a.value;if(i)r.push({points:[t.convert("y"===n?{x:0,y:s}:{x:s,y:0}),t.convert("y"===n?{x:1,y:s}:{x:s,y:1})]});else if(o){var c=e.value,l=(c+s)/2;r.push({points:[t.convert("y"===n?{x:0,y:l}:{x:l,y:0}),t.convert("y"===n?{x:1,y:l}:{x:l,y:1})]})}return a}),a[0]),r}function Gc(t,e,n,i,r){var a=e.values.length,o=[],s=n.getTicks();return s.reduce((function(e,n){var s=e?e.value:n.value,c=n.value,l=(s+c)/2;return"x"===r?o.push({points:[t.convert({x:i?c:l,y:0}),t.convert({x:i?c:l,y:1})]}):o.push({points:Object(E["W"])(Array(a+1),(function(e,n){return t.convert({x:n/a,y:i?c:l})}))}),n}),s[0]),o}function Vc(t,e){var n=Object(E["s"])(e,"grid");if(null===n)return!1;var i=Object(E["s"])(t,"grid");return!(void 0===n&&null===i)}var Wc=["container"],Xc=Object(F["a"])(Object(F["a"])({},ur),{appear:null}),Hc=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(S.BG).addGroup(),n.gridForeContainer=n.view.getLayer(S.FORE).addGroup(),n.axisContainer=n.view.getLayer(S.BG).addGroup(),n.axisForeContainer=n.view.getLayer(S.FORE).addGroup(),n}return Object(F["c"])(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this,e=this.view.getCoordinate();Object(E["j"])(this.getComponents(),(function(n){var i,r=n.component,a=n.direction,o=n.type,s=n.extra,c=s.dim,l=s.scale,u=s.alignTick;if(o===k.AXIS)e.isPolar?"x"===c?i=e.isTransposed?me(e,a):we(e):"y"===c&&(i=e.isTransposed?we(e):me(e,a)):i=me(e,a);else if(o===k.GRID)if(e.isPolar){var h=void 0;h=e.isTransposed?"x"===c?Gc(e,t.view.getYScales()[0],l,u,c):Yc(e,l,c,u):"x"===c?Yc(e,l,c,u):Gc(e,t.view.getXScale(),l,u,c),i={items:h,center:t.view.getCoordinate().getCenter()}}else i={items:Yc(e,l,c,u)};r.update(i)}))},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach((function(n,i){t.has(i)?e.set(i,n):n.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.updateXAxes=function(t){var e=this.view.getXScale();if(e&&!e.isIdentity){var n=Ce(this.option,e.field);if(!1!==n){var i=Me(n,A.BOTTOM),r=S.BG,a="x",o=this.view.getCoordinate(),s=this.getId("axis",e.field),c=this.getId("grid",e.field);if(o.isRect){var l=this.cache.get(s);if(l){var u=this.getLineAxisCfg(e,n,i);Zt(u,Wc),l.component.update(u),t.set(s,l)}else l=this.createLineAxis(e,n,r,i,a),this.cache.set(s,l),t.set(s,l);var h=this.cache.get(c);if(h){u=this.getLineGridCfg(e,n,i,a);Zt(u,Wc),h.component.update(u),t.set(c,h)}else h=this.createLineGrid(e,n,r,i,a),h&&(this.cache.set(c,h),t.set(c,h))}else if(o.isPolar){l=this.cache.get(s);if(l){u=o.isTransposed?this.getLineAxisCfg(e,n,A.RADIUS):this.getCircleAxisCfg(e,n,i);Zt(u,Wc),l.component.update(u),t.set(s,l)}else{if(o.isTransposed){if(Object(E["S"])(n))return;l=this.createLineAxis(e,n,r,A.RADIUS,a)}else l=this.createCircleAxis(e,n,r,i,a);this.cache.set(s,l),t.set(s,l)}h=this.cache.get(c);if(h){u=o.isTransposed?this.getCircleGridCfg(e,n,A.RADIUS,a):this.getLineGridCfg(e,n,A.CIRCLE,a);Zt(u,Wc),h.component.update(u),t.set(c,h)}else{if(o.isTransposed){if(Object(E["S"])(n))return;h=this.createCircleGrid(e,n,r,A.RADIUS,a)}else h=this.createLineGrid(e,n,r,A.CIRCLE,a);h&&(this.cache.set(c,h),t.set(c,h))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();Object(E["j"])(n,(function(n,i){if(n&&!n.isIdentity){var r=n.field,a=Ce(e.option,r);if(!1!==a){var o=S.BG,s="y",c=e.getId("axis",r),l=e.getId("grid",r),u=e.view.getCoordinate();if(u.isRect){var h=Me(a,0===i?A.LEFT:A.RIGHT),f=e.cache.get(c);if(f){var p=e.getLineAxisCfg(n,a,h);Zt(p,Wc),f.component.update(p),t.set(c,f)}else f=e.createLineAxis(n,a,o,h,s),e.cache.set(c,f),t.set(c,f);var d=e.cache.get(l);if(d){p=e.getLineGridCfg(n,a,h,s);Zt(p,Wc),d.component.update(p),t.set(l,d)}else d=e.createLineGrid(n,a,o,h,s),d&&(e.cache.set(l,d),t.set(l,d))}else if(u.isPolar){f=e.cache.get(c);if(f){p=u.isTransposed?e.getCircleAxisCfg(n,a,A.CIRCLE):e.getLineAxisCfg(n,a,A.RADIUS);Zt(p,Wc),f.component.update(p),t.set(c,f)}else{if(u.isTransposed){if(Object(E["S"])(a))return;f=e.createCircleAxis(n,a,o,A.CIRCLE,s)}else f=e.createLineAxis(n,a,o,A.RADIUS,s);e.cache.set(c,f),t.set(c,f)}d=e.cache.get(l);if(d){p=u.isTransposed?e.getLineGridCfg(n,a,A.CIRCLE,s):e.getCircleGridCfg(n,a,A.RADIUS,s);Zt(p,Wc),d.component.update(p),t.set(l,d)}else{if(u.isTransposed){if(Object(E["S"])(a))return;d=e.createLineGrid(n,a,o,A.CIRCLE,s)}else d=e.createCircleGrid(n,a,o,A.RADIUS,s);d&&(e.cache.set(l,d),t.set(l,d))}}}}}))},e.prototype.createLineAxis=function(t,e,n,i,r){var a={component:new Pt(this.getLineAxisCfg(t,e,i)),layer:n,direction:i===A.RADIUS?A.NONE:i,type:k.AXIS,extra:{dim:r,scale:t}};return a.component.set("field",t.field),a.component.init(),a},e.prototype.createLineGrid=function(t,e,n,i,r){var a=this.getLineGridCfg(t,e,i,r);if(a){var o={component:new Lt(a),layer:n,direction:A.NONE,type:k.GRID,extra:{dim:r,scale:t,alignTick:Object(E["s"])(a,"alignTick",!0)}};return o.component.init(),o}},e.prototype.createCircleAxis=function(t,e,n,i,r){var a={component:new Bt(this.getCircleAxisCfg(t,e,i)),layer:n,direction:i,type:k.AXIS,extra:{dim:r,scale:t}};return a.component.set("field",t.field),a.component.init(),a},e.prototype.createCircleGrid=function(t,e,n,i,r){var a=this.getCircleGridCfg(t,e,i,r);if(a){var o={component:new Dt(a),layer:n,direction:A.NONE,type:k.GRID,extra:{dim:r,scale:t,alignTick:Object(E["s"])(a,"alignTick",!0)}};return o.component.init(),o}},e.prototype.getLineAxisCfg=function(t,e,n){var i=Object(E["s"])(e,["top"])?this.axisForeContainer:this.axisContainer,r=this.view.getCoordinate(),a=me(r,n),o=Se(t,e),s=Oe(this.view.getTheme(),n),c=Object(E["s"])(e,["title"])?Object(E["h"])({title:{style:{text:o}}},{title:je(this.view.getTheme(),n,e.title)},e):e,l=Object(E["h"])(Object(F["a"])(Object(F["a"])({container:i},a),{ticks:t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}})),verticalFactor:r.isPolar?-1*xe(a,r.getCenter()):xe(a,r.getCenter()),theme:s}),s,c),u=this.getAnimateCfg(l),h=u.animate,f=u.animateOption;l.animateOption=f,l.animate=h;var p=be(a),d=Object(E["s"])(l,"verticalLimitLength",p?1/3:.5);if(d<=1){var g=this.view.getCanvas().get("width"),v=this.view.getCanvas().get("height");l.verticalLimitLength=d*(p?g:v)}return l},e.prototype.getLineGridCfg=function(t,e,n,i){if(Vc(Oe(this.view.getTheme(),n),e)){var r=Nc(this.view.getTheme(),n),a=Object(E["h"])({container:Object(E["s"])(e,["top"])?this.gridForeContainer:this.gridContainer},r,Object(E["s"])(e,"grid"),this.getAnimateCfg(e));return a.items=Yc(this.view.getCoordinate(),t,i,Object(E["s"])(a,"alignTick",!0)),a}},e.prototype.getCircleAxisCfg=function(t,e,n){var i=Object(E["s"])(e,["top"])?this.axisForeContainer:this.axisContainer,r=this.view.getCoordinate(),a=t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}}));t.isCategory||Math.abs(r.endAngle-r.startAngle)!==2*Math.PI||a.length&&(a[a.length-1].name="");var o=Se(t,e),s=Oe(this.view.getTheme(),A.CIRCLE),c=Object(E["s"])(e,["title"])?Object(E["h"])({title:{style:{text:o}}},{title:je(this.view.getTheme(),n,e.title)},e):e,l=Object(E["h"])(Object(F["a"])(Object(F["a"])({container:i},we(this.view.getCoordinate())),{ticks:a,verticalFactor:1,theme:s}),s,c),u=this.getAnimateCfg(l),h=u.animate,f=u.animateOption;return l.animate=h,l.animateOption=f,l},e.prototype.getCircleGridCfg=function(t,e,n,i){if(Vc(Oe(this.view.getTheme(),n),e)){var r=Nc(this.view.getTheme(),A.RADIUS),a=Object(E["h"])({container:Object(E["s"])(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},r,Object(E["s"])(e,"grid"),this.getAnimateCfg(e)),o=Object(E["s"])(a,"alignTick",!0),s="x"===i?this.view.getYScales()[0]:this.view.getXScale();return a.items=Gc(this.view.getCoordinate(),s,t,o,i),a}},e.prototype.getId=function(t,e){var n=this.view.getCoordinate();return"".concat(t,"-").concat(e,"-").concat(n.type)},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&Object(E["s"])(t,"animate"),animateOption:t&&t.animateOption?Object(E["h"])({},Xc,t.animateOption):Xc}},e}(ir),qc=Hc;function Uc(t,e,n){return n===A.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===A.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===A.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===A.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===A.TOP_LEFT||n===A.LEFT_TOP?[t.tl.x,t.tl.y]:n===A.TOP_RIGHT||n===A.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===A.BOTTOM_LEFT||n===A.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===A.BOTTOM_RIGHT||n===A.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]}function Kc(t,e){return Object(E["D"])(t)?!1!==t&&{}:Object(E["s"])(t,[e],t)}function Qc(t){return Object(E["s"])(t,"position",A.BOTTOM)}var Zc=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(S.FORE).addGroup(),n}return Object(F["c"])(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,Object(E["j"])(this.components,(function(e){var n=e.component,i=e.direction,r=aa(i),a=n.get("maxWidthRatio"),o=n.get("maxHeightRatio"),s=t.getCategoryLegendSizeCfg(r,a,o),c=n.get("maxWidth"),l=n.get("maxHeight");n.update({maxWidth:Math.min(s.maxWidth,c||0),maxHeight:Math.min(s.maxHeight,l||0)});var u=n.get("padding"),h=n.getLayoutBBox(),f=new $t(h.x,h.y,h.width,h.height).expand(u),p=Object(F["e"])(Uc(t.view.viewBBox,f,i),2),d=p[0],g=p[1],v=Object(F["e"])(Uc(t.layoutBBox,f,i),2),y=v[0],m=v[1],b=0,x=0;i.startsWith("top")||i.startsWith("bottom")?(b=d,x=m):(b=y,x=g),n.setLocation({x:b+u[3],y:x+u[0]}),t.layoutBBox=t.layoutBBox.cut(f,i)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={},n=function(n,i,r){var a=t.getId(r.field),o=t.getComponentById(a);if(o){var s=void 0,c=Kc(t.option,r.field);!1!==c&&(Object(E["s"])(c,"custom")?s=t.getCategoryCfg(n,i,r,c,!0):r.isLinear?s=t.getContinuousCfg(n,i,r,c):r.isCategory&&(s=t.getCategoryCfg(n,i,r,c))),s&&(Zt(s,["container"]),o.direction=Qc(c),o.component.update(s),e[a]=!0)}else{var l=t.createFieldLegend(n,i,r);l&&(l.component.init(),t.components.push(l),e[a]=!0)}};if(Object(E["s"])(this.option,"custom")){var i="global-custom",r=this.getComponentById(i);if(r){var a=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);Zt(a,["container"]),r.component.update(a),e[i]=!0}else{var o=this.createCustomLegend(void 0,void 0,void 0,this.option);if(o){o.init();var s=S.FORE,c=Qc(this.option);this.components.push({id:i,component:o,layer:s,direction:c,type:k.LEGEND,extra:void 0}),e[i]=!0}}}else this.loopLegends(n);var l=[];Object(E["j"])(this.getComponents(),(function(t){e[t.id]?l.push(t):t.component.destroy()})),this.components=l},e.prototype.clear=function(){t.prototype.clear.call(this),this.container.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.container.remove(!0)},e.prototype.getGeometries=function(t){var e=this,n=t.geometries;return Object(E["j"])(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){var e=this.view.getRootView()===this.view;if(e){var n=this.getGeometries(this.view),i={};Object(E["j"])(n,(function(e){var n=e.getGroupAttributes();Object(E["j"])(n,(function(n){var r=n.getScale(n.type);r&&"identity"!==r.type&&!i[r.field]&&(t(e,n,r),i[r.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,n){var i,r=Kc(this.option,n.field),a=S.FORE,o=Qc(r);if(!1!==r&&(Object(E["s"])(r,"custom")?i=this.createCustomLegend(t,e,n,r):n.isLinear?i=this.createContinuousLegend(t,e,n,r):n.isCategory&&(i=this.createCategoryLegend(t,e,n,r))),i)return i.set("field",n.field),{id:this.getId(n.field),component:i,layer:a,direction:o,type:k.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,i){var r=this.getCategoryCfg(t,e,n,i,!0);return new Rt(r)},e.prototype.createContinuousLegend=function(t,e,n,i){var r=this.getContinuousCfg(t,e,n,Zt(i,["value"]));return new zt(r)},e.prototype.createCategoryLegend=function(t,e,n,i){var r=this.getCategoryCfg(t,e,n,i);return new Rt(r)},e.prototype.getContinuousCfg=function(t,e,n,i){var r=n.getTicks(),a=Object(E["m"])(r,(function(t){return 0===t.value})),o=Object(E["m"])(r,(function(t){return 1===t.value})),s=r.map((function(t){var i=t.value,r=t.tickValue,a=e.mapping(n.invert(i)).join("");return{value:r,attrValue:a,color:a,scaleValue:i}}));a||s.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),o||s.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),s.sort((function(t,e){return t.value-e.value}));var c={min:Object(E["z"])(s).value,max:Object(E["U"])(s).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(c.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(c.colors=s.map((function(t){return t.attrValue})));var l=this.container,u=Qc(i),h=aa(u),f=Object(E["s"])(i,"title");return f&&(f=Object(E["h"])({text:pe(n)},f)),c.container=l,c.layout=h,c.title=f,c.animateOption=ur,this.mergeLegendCfg(c,i,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,i,r){var a=this.container,o=Object(E["s"])(i,"position",A.BOTTOM),s=ca(this.view.getTheme(),o),c=Object(E["s"])(s,["marker"]),l=Object(E["s"])(i,"marker"),u=aa(o),h=Object(E["s"])(s,["pageNavigator"]),f=Object(E["s"])(i,"pageNavigator"),p=r?sa(c,l,i.items):oa(this.view,t,e,c,l),d=Object(E["s"])(i,"title");d&&(d=Object(E["h"])({text:n?pe(n):""},d));var g=Object(E["s"])(i,"maxWidthRatio"),v=Object(E["s"])(i,"maxHeightRatio"),y=this.getCategoryLegendSizeCfg(u,g,v);y.container=a,y.layout=u,y.items=p,y.title=d,y.animateOption=ur,y.pageNavigator=Object(E["h"])({},h,f);var m=this.mergeLegendCfg(y,i,o);m.reversed&&m.items.reverse();var b=Object(E["s"])(m,"maxItemWidth");return b&&b<=1&&(m.maxItemWidth=this.view.viewBBox.width*b),m},e.prototype.mergeLegendCfg=function(t,e,n){var i=n.split("-")[0],r=ca(this.view.getTheme(),i);return Object(E["h"])({},r,t,e)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},e.prototype.getComponentById=function(t){return Object(E["m"])(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t,e,n){void 0===e&&(e=N),void 0===n&&(n=N);var i=this.view.viewBBox,r=i.width,a=i.height;return"vertical"===t?{maxWidth:r*e,maxHeight:a}:{maxWidth:r,maxHeight:a*n}},e}(ir),Jc=Zc,$c=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=E["fb"],n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=Object(F["e"])(t,2),i=e[0],r=e[1];n.start=i,n.end=r,n.changeViewData(i,r)},n.container=n.view.getLayer(S.FORE).addGroup(),n.onChangeFn=Object(E["qb"])(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(I.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(I.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(F["c"])(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(I.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(I.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),e=t.start,n=t.end;Object(E["K"])(this.start)&&(this.start=e,this.end=n);var i=this.view.getOptions().data;this.option&&!Object(E["G"])(i)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.start,t.end)}),0)),this.slider){var e=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),i=Object(F["e"])(n,4),r=i[0],a=(i[1],i[2],i[3]),o=this.slider.component.getLayoutBBox(),s=new $t(o.x,o.y,Math.min(o.width,e),o.height).expand(n),c=this.getMinMaxText(this.start,this.end),l=c.minText,u=c.maxText,h=Object(F["e"])(Uc(this.view.viewBBox,s,A.BOTTOM),2),f=(h[0],h[1]),p=Object(F["e"])(Uc(this.view.coordinateBBox,s,A.BOTTOM),2),d=p[0];p[1];this.slider.component.update(Object(F["a"])(Object(F["a"])({},this.getSliderCfg()),{x:d+a,y:f+r,width:this.width,start:this.start,end:this.end,minText:l,maxText:u})),this.view.viewBBox=this.view.viewBBox.cut(s,A.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new Tt["Slider"](Object(F["a"])({container:this.container},t));return e.init(),{component:e,layer:S.FORE,direction:A.BOTTOM,type:k.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var e=this.getMinMaxText(this.start,this.end),n=e.minText,i=e.maxText;t=Object(F["a"])(Object(F["a"])({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:i})}return this.slider.component.update(t),this.slider},e.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},e.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if(Object(E["O"])(this.option)){var e=Object(F["a"])({data:this.getData()},Object(E["s"])(this.option,"trendCfg",{}));t=Object(E["h"])({},t,this.getThemeOptions(),this.option),t=Object(F["a"])(Object(F["a"])({},t),{trendCfg:e})}return t.start=Object(E["c"])(Math.min(Object(E["K"])(t.start)?0:t.start,Object(E["K"])(t.end)?1:t.end),0,1),t.end=Object(E["c"])(Math.max(Object(E["K"])(t.start)?0:t.start,Object(E["K"])(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=Object(F["e"])(this.view.getYScales(),1),n=e[0],i=this.view.getGroupScales();if(i.length){var r=i[0],a=r.field,o=r.ticks;return t.reduce((function(t,e){return e[a]===o[0]&&t.push(e[n.field]),t}),[])}return t.map((function(t){return t[n.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(E["s"])(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,i=this.view.getXScale(),r=!0,a=Object(E["yb"])(n,i.field);i.isLinear&&(a=a.sort());var o=r?a:a.reverse(),s=Object(E["mb"])(n);if(!i||!s)return{};var c=Object(E["mb"])(o),l=Math.round(t*(c-1)),u=Math.round(e*(c-1)),h=Object(E["s"])(o,[l]),f=Object(E["s"])(o,[u]),p=this.getSliderCfg().formatter;return p&&(h=p(h,n[l],l),f=p(f,n[u],u)),{minText:h,maxText:f}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,i=this.view.getXScale(),r=Object(E["mb"])(n);if(i&&r){var a=!0,o=Object(E["yb"])(n,i.field),s=this.view.getXScale().isLinear?o.sort((function(t,e){return Number(t)-Number(e)})):o,c=a?s:s.reverse(),l=Object(E["mb"])(c),u=Math.round(t*(l-1)),h=Math.round(e*(l-1));this.view.filter(i.field,(function(t,e){var n=c.indexOf(t);return!(n>-1)||Kt(n,u,h)})),this.view.render(!0)}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},e}(ir),tl=$c,el=0,nl=8,il=32,rl=20,al=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=E["fb"],n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,i=n.getValidScrollbarCfg().animate;n.ratio=Object(E["c"])(e,0,1);var r=n.view.getOptions().animate;i||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(r)},n.container=n.view.getLayer(S.FORE).addGroup(),n.onChangeFn=Object(E["qb"])(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(I.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(I.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(F["c"])(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(I.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(I.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)}))),this.scrollbar){var e=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),i=this.scrollbar.component.getLayoutBBox(),r=new $t(i.x,i.y,Math.min(i.width,e),i.height).expand(n),a=this.getScrollbarComponentCfg(),o=void 0,s=void 0;if(a.isHorizontal){var c=Object(F["e"])(Uc(this.view.viewBBox,r,A.BOTTOM),2),l=(c[0],c[1]),u=Object(F["e"])(Uc(this.view.coordinateBBox,r,A.BOTTOM),2),h=u[0];u[1];o=h,s=l}else{var f=Object(F["e"])(Uc(this.view.viewBBox,r,A.RIGHT),2),p=(f[0],l=f[1],Object(F["e"])(Uc(this.view.viewBBox,r,A.RIGHT),2));h=p[0],p[1];o=h,s=l}o+=n[3],s+=n[0],this.trackLen?this.scrollbar.component.update(Object(F["a"])(Object(F["a"])({},a),{x:o,y:s,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(Object(F["a"])(Object(F["a"])({},a),{x:o,y:s})),this.view.viewBBox=this.view.viewBBox.cut(r,a.isHorizontal?A.BOTTOM:A.RIGHT)}},e.prototype.update=function(){this.render()},e.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},e.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},e.prototype.setValue=function(t){this.onValueChange({ratio:t})},e.prototype.getValue=function(){return this.ratio},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(E["s"])(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=Object(E["s"])(this.view.getTheme(),["components","scrollbar"]),n=t||{},i=n.thumbHighlightColor,r=Object(F["f"])(n,["thumbHighlightColor"]);return{default:Object(E["h"])({},Object(E["s"])(e,["default","style"],{}),r),hover:Object(E["h"])({},Object(E["s"])(e,["hover","style"],{}),{thumbColor:i})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),i=n.trackLen,r=n.thumbLen;this.trackLen=i,this.thumbLen=r,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*Object(E["c"])(this.ratio,0,1)),e=Math.min(t+this.step-1,this.cnt-1);return[t,e]},e.prototype.changeViewData=function(t,e){var n=this,i=Object(F["e"])(t,2),r=i[0],a=i[1],o=this.getValidScrollbarCfg().type,s="vertical"!==o,c=Object(E["yb"])(this.data,this.xScaleCfg.field),l=this.view.getXScale().isLinear?c.sort((function(t,e){return Number(t)-Number(e)})):c,u=s?l:l.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max,tickMethod:t.tickMethod})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=u.indexOf(t);return!(e>-1)||Kt(e,r,a)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t=this.getValidScrollbarCfg().type,e="vertical"!==t,n=new Tt["Scrollbar"](Object(F["a"])(Object(F["a"])({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return n.init(),{component:n,layer:S.FORE,direction:e?A.BOTTOM:A.RIGHT,type:k.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?Object(F["a"])(Object(F["a"])({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):Object(F["a"])({},t);return this.scrollbar.component.update(e),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,e=this.getValidScrollbarCfg(),n=e.type,i=e.categorySize,r="vertical"!==n;return Math.floor((r?t.width:t.height)/i)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.getScrollbarData(),n=Object(E["yb"])(e,t.field);return Object(E["mb"])(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,i=this.getValidScrollbarCfg(),r=i.type,a=i.padding,o=i.width,s=i.height,c=i.style,l="vertical"!==r,u=Object(F["e"])(a,4),h=u[0],f=u[1],p=u[2],d=u[3],g=l?{x:e.minX+d,y:n.maxY-s-p}:{x:n.maxX-o-f,y:e.minY+h},v=this.getStep(),y=this.getCnt(),m=l?e.width-d-f:e.height-h-p,b=Math.max(m*Object(E["c"])(v/y,0,1),rl);return Object(F["a"])(Object(F["a"])({},this.getThemeOptions()),{x:g.x,y:g.y,size:l?s:o,isHorizontal:l,trackLen:m,thumbLen:b,thumbOffset:0,theme:this.getScrollbarTheme(c)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:il,width:nl,height:nl,padding:[0,0,0,0],animate:!0,style:{}};return Object(E["O"])(this.option)&&(t=Object(F["a"])(Object(F["a"])({},t),this.option)),Object(E["O"])(this.option)&&this.option.padding||(t.padding="horizontal"===t.type?[el,0,el,0]:[0,el,0,el]),t},e.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),e=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return t.isReflect("y")&&"vertical"===e.type&&(n=Object(F["g"])([],Object(F["e"])(n),!1).reverse()),n},e}(ir),ol=al,sl={fill:"#CCD6EC",opacity:.3};function cl(t,e,n){var i,r,a,o,s,c,l=Di(t,e,n);if(l.length){l=Object(E["q"])(l);try{for(var u=Object(F["i"])(l),h=u.next();!h.done;h=u.next()){var f=h.value;try{for(var p=(a=void 0,Object(F["i"])(f)),d=p.next();!d.done;d=p.next()){var g=d.value,v=g.mappingData,y=v.x,m=v.y;g.x=Object(E["C"])(y)?y[y.length-1]:y,g.y=Object(E["C"])(m)?m[m.length-1]:m}}catch(S){a={error:S}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(a)throw a.error}}}}catch(A){i={error:A}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}var b=n.shared;if(!1===b&&l.length>1){var x=l[0],O=Math.abs(e.y-x[0].y);try{for(var j=Object(F["i"])(l),w=j.next();!w.done;w=j.next()){var C=w.value,M=Math.abs(e.y-C[0].y);M<=O&&(x=C,O=M)}}catch(k){s={error:k}}finally{try{w&&!w.done&&(c=j.return)&&c.call(j)}finally{if(s)throw s.error}}l=[x]}return Object(E["ub"])(Object(E["q"])(l))}return[]}var ll=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.show=function(t){var e=this.context.view,n=this.context.event,i=e.getController("tooltip").getTooltipCfg(),r=cl(e,{x:n.x,y:n.y},i);if(!Object(E["H"])(r,this.items)&&(this.items=r,r.length)){var a=e.getXScale().field,o=r[0].data[a],s=[],c=e.geometries;if(Object(E["j"])(c,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){var e=t.getData();return e[a]===o}));s=s.concat(e)}})),s.length){var l=e.getCoordinate(),u=s[0].shape.getCanvasBBox(),h=s[0].shape.getCanvasBBox(),f=u;Object(E["j"])(s,(function(t){var e=t.shape.getCanvasBBox();l.isTransposed?(e.minYh.maxY&&(h=e)):(e.minXh.maxX&&(h=e)),f.x=Math.min(e.minX,f.minX),f.y=Math.min(e.minY,f.minY),f.width=Math.max(e.maxX,f.maxX)-f.x,f.height=Math.max(e.maxY,f.maxY)-f.y}));var p=e.backgroundGroup,d=e.coordinateBBox,g=void 0;if(l.isRect){var v=e.getXScale(),y=t||{},m=y.appendRatio,b=y.appendWidth;Object(E["K"])(b)&&(m=Object(E["K"])(m)?v.isLinear?0:.25:m,b=l.isTransposed?m*h.height:m*u.width);var x=void 0,O=void 0,j=void 0,w=void 0;l.isTransposed?(x=d.minX,O=Math.min(h.minY,u.minY)-b,j=d.width,w=f.height+2*b):(x=Math.min(u.minX,h.minX)-b,O=d.minY,j=f.width+2*b,w=d.height),g=[["M",x,O],["L",x+j,O],["L",x+j,O+w],["L",x,O+w],["Z"]]}else{var C=Object(E["z"])(s),M=Object(E["U"])(s),S=Ht(C.getModel(),l).startAngle,A=Ht(M.getModel(),l).endAngle,k=l.getCenter(),I=l.getRadius(),T=l.innerRadius*I;g=Wt(k.x,k.y,I,S,A,T)}if(this.regionPath)this.regionPath.attr("path",g),this.regionPath.show();else{var P=Object(E["s"])(t,"style",sl);this.regionPath=p.addShape({type:"path",name:"active-region",capture:!1,attrs:Object(F["a"])(Object(F["a"])({},P),{path:g})})}}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),t.prototype.destroy.call(this)},e}(Te),ul=ll,hl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(F["c"])(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view,i=n.isTooltipLocked();if(!i){var r=this.timeStamp,a=+new Date,o=Object(E["s"])(t.view.getOptions(),"tooltip.showDelay",16);if(a-r>o){var s=this.location,c={x:e.x,y:e.y};s&&Object(E["H"])(s,c)||this.showTooltip(n,c),this.timeStamp=a,this.location=c}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,i=n.clientX,r=n.clientY;e.isCursorEntered({x:i,y:r})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(Te),fl=hl,pl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.showTooltip=function(t,e){var n=Wn(t);Object(E["j"])(n,(function(n){var i=Hn(t,n,e);n.showTooltip(i)}))},e.prototype.hideTooltip=function(t){var e=Wn(t);Object(E["j"])(e,(function(t){t.hideTooltip()}))},e}(fl),dl=pl,gl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(F["c"])(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context,e=t.event,n=this.timeStamp,i=+new Date;if(i-n>16){var r=this.location,a={x:e.x,y:e.y};r&&Object(E["H"])(r,a)||this.showTooltip(a),this.timeStamp=i,this.location=a}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event,i=n.target;if(i&&i.get("tip")){this.tooltip||this.renderTooltip();var r=i.get("tip");this.tooltip.update(Object(F["a"])({title:r},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,i={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},r=e.getTheme(),a=Object(E["s"])(r,["components","tooltip","domStyles"],{}),o=new _t({parent:n.get("el").parentNode,region:i,visible:!1,crosshairs:null,domStyles:Object(F["a"])({},Object(E["h"])({},a,(t={},t[Tt["TOOLTIP_CSS_CONST"].CONTAINER_CLASS]={"max-width":"50%"},t[Tt["TOOLTIP_CSS_CONST"].TITLE_CLASS]={"word-break":"break-all"},t)))});o.init(),o.setCapture(!1),this.tooltip=o},e}(Te),vl=gl,yl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return Object(F["c"])(e,t),e.prototype.hasState=function(t){return t.hasState(this.stateName)},e.prototype.setElementState=function(t,e){t.setState(this.stateName,e)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},e.prototype.clearViewState=function(t){var e=this,n=Bn(t,this.stateName);Object(E["j"])(n,(function(t){e.setElementState(t,!1)}))},e}(Te),ml=yl;function bl(t){return Object(E["s"])(t.get("delegateObject"),"item")}var xl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return Object(F["c"])(e,t),e.prototype.isItemIgnore=function(t,e){var n=this.ignoreListItemStates,i=n.filter((function(n){return e.hasState(t,n)}));return!!i.length},e.prototype.setStateByComponent=function(t,e,n){var i=this.context.view,r=t.get("field"),a=Tn(i);this.setElementsStateByItem(a,r,e,n)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,n){var i=this.context.view,r=Un(i,e),a=Ln(t,e);return!Object(E["K"])(a)&&n.name===r.getText(a)},e.prototype.setElementsStateByItem=function(t,e,n,i){var r=this;Object(E["j"])(t,(function(t){r.isMathItem(t,e,n)&&t.setState(r.stateName,i)}))},e.prototype.setStateEnable=function(t){var e=xn(this.context);if(e)jn(this.context)&&this.setStateByElement(e,t);else{var n=On(this.context);if(wn(n)){var i=n.item,r=n.component;if(i&&r&&!this.isItemIgnore(i,r)){var a=this.context.event.gEvent;if(a&&a.fromShape&&a.toShape&&bl(a.fromShape)===bl(a.toShape))return;this.setStateByComponent(r,i,t)}}}},e.prototype.toggle=function(){var t=xn(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(ml),Ol=xl,jl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(F["c"])(e,t),e.prototype.active=function(){this.setState()},e}(Ol),wl=jl,Cl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return Object(F["c"])(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");if(!n)return null;var i=t.getScaleByField(n.getFields()[0]);return i},e.prototype.getLinkPath=function(t,e){var n=this.context.view,i=n.getCoordinate().isTransposed,r=t.shape.getCanvasBBox(),a=e.shape.getCanvasBBox(),o=i?[["M",r.minX,r.minY],["L",a.minX,a.maxY],["L",a.maxX,a.maxY],["L",r.maxX,r.minY],["Z"]]:[["M",r.maxX,r.minY],["L",a.minX,a.minY],["L",a.minX,a.maxY],["L",r.maxX,r.maxY],["Z"]];return o},e.prototype.addLinkShape=function(t,e,n,i){var r={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:Object(F["a"])(Object(F["a"])({},Object(E["h"])({},r,Object(E["I"])(i)?i(r,e):i)),{path:this.getLinkPath(e,n)})})},e.prototype.linkByElement=function(t,e){var n=this,i=this.context.view,r=this.getColorScale(i,t);if(r){var a=Ln(t,r.field);if(!this.cache[a]){var o=Pn(i,r.field,a),s=this.linkGroup,c=s.addGroup();this.cache[a]=c;var l=o.length;Object(E["j"])(o,(function(t,i){if(i=0}),e)},e}(Al),Ul=ql,Kl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(F["c"])(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){var n=this.context.view,i=Tn(n);Rl(i,(function(e){return t===e}),e)},e.prototype.clear=function(){var t=this.context.view;Dl(t)},e}(Il),Ql=Kl,Zl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(F["c"])(e,t),e.prototype.selected=function(){this.setState()},e}(Al),Jl=Zl,$l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(F["c"])(e,t),e.prototype.selected=function(){this.setState()},e}(Ol),tu=$l,eu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(F["c"])(e,t),e.prototype.selected=function(){this.setState()},e}(Il),nu=eu,iu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return Object(F["c"])(e,t),e.prototype.getTriggerListInfo=function(){var t=On(this.context),e=null;return wn(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=this.context.view,n=Nn(e),i=[];return Object(E["j"])(n,(function(e){e.isList()&&t.allowSetStateByElement(e)&&i.push(e)})),i},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();Object(E["j"])(e,(function(e){e.clearItemsState(t.stateName)}))},e.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var i=this.context.view,r=Un(i,e);return r&&r.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;if(n.length){var i=n.filter((function(n){return e.hasState(t,n)}));return 0===i.length}return!0},e.prototype.setStateByElement=function(t,e,n){var i=t.get("field"),r=this.context.view,a=Un(r,i),o=Ln(e,i),s=a.getText(o);this.setItemsState(t,s,n)},e.prototype.setStateEnable=function(t){var e=this,n=xn(this.context);if(n){var i=this.getAllowComponents();Object(E["j"])(i,(function(i){e.setStateByElement(i,n,t)}))}else{var r=On(this.context);if(wn(r)){var a=r.item,o=r.component;this.allowSetStateByElement(o)&&this.allowSetStateByItem(a,o)&&this.setItemState(o,a,t)}}},e.prototype.setItemsState=function(t,e,n){var i=this,r=t.getItems();Object(E["j"])(r,(function(r){r.name===e&&i.setItemState(t,r,n)}))},e.prototype.setItemState=function(t,e,n){t.setItemState(e,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,i=this.hasState(e,n);this.setItemState(e,n,!i)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(Te),ru=iu,au=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(F["c"])(e,t),e.prototype.active=function(){this.setState()},e}(ru),ou=au,su="inactive",cu="active";function lu(t){var e=t.getItems();Object(E["j"])(e,(function(e){t.hasState(e,cu)&&t.setItemState(e,cu,!1),t.hasState(e,su)&&t.setItemState(e,su,!1)}))}var uu="inactive",hu="active",fu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=hu,e.ignoreItemStates=["unchecked"],e}return Object(F["c"])(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,(function(t){return t.name===e}),n)},e.prototype.setItemState=function(t,e,n){t.getItems();this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var i=t.getItems();if(n)Object(E["j"])(i,(function(n){e(n)?(t.hasState(n,uu)&&t.setItemState(n,uu,!1),t.setItemState(n,hu,!0)):t.hasState(n,hu)||t.setItemState(n,uu,!0)}));else{var r=t.getItemsByState(hu),a=!0;Object(E["j"])(r,(function(t){if(!e(t))return a=!1,!1})),a?this.clear():Object(E["j"])(i,(function(n){e(n)&&(t.hasState(n,hu)&&t.setItemState(n,hu,!1),t.setItemState(n,uu,!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)lu(t.list);else{var e=this.getAllowComponents();Object(E["j"])(e,(function(t){t.clearItemsState(hu),t.clearItemsState(uu)}))}},e}(ru),pu=fu,du=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(F["c"])(e,t),e.prototype.selected=function(){this.setState()},e}(ru),gu=du,vu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return Object(F["c"])(e,t),e.prototype.unchecked=function(){this.setState()},e}(ru),yu=vu,mu="unchecked",bu="checked",xu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=bu,e}return Object(F["c"])(e,t),e.prototype.setItemState=function(t,e,n){this.setCheckedBy(t,(function(t){return t===e}),n)},e.prototype.setCheckedBy=function(t,e,n){var i=t.getItems();n&&Object(E["j"])(i,(function(n){e(n)?(t.hasState(n,mu)&&t.setItemState(n,mu,!1),t.setItemState(n,bu,!0)):t.hasState(n,bu)||t.setItemState(n,mu,!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,i=!Object(E["nb"])(e.getItems(),(function(t){return e.hasState(t,mu)}));i||e.hasState(n,mu)?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();Object(E["j"])(t,(function(t){t.clearItemsState(bu),t.clearItemsState(mu)}))},e}(ru),Ou=xu,ju="unchecked",wu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.toggle=function(){var t,e,n,i,r,a,o,s,c=this.getTriggerListInfo();if(null===c||void 0===c?void 0:c.item){var l=c.list,u=c.item,h=l.getItems(),f=h.filter((function(t){return!l.hasState(t,ju)})),p=h.filter((function(t){return l.hasState(t,ju)})),d=f[0];if(h.length===f.length)try{for(var g=Object(F["i"])(h),v=g.next();!v.done;v=g.next()){var y=v.value;l.setItemState(y,ju,y.id!==u.id)}}catch(C){t={error:C}}finally{try{v&&!v.done&&(e=g.return)&&e.call(g)}finally{if(t)throw t.error}}else if(h.length-p.length===1)if(d.id===u.id)try{for(var m=Object(F["i"])(h),b=m.next();!b.done;b=m.next()){y=b.value;l.setItemState(y,ju,!1)}}catch(M){n={error:M}}finally{try{b&&!b.done&&(i=m.return)&&i.call(m)}finally{if(n)throw n.error}}else try{for(var x=Object(F["i"])(h),O=x.next();!O.done;O=x.next()){y=O.value;l.setItemState(y,ju,y.id!==u.id)}}catch(S){r={error:S}}finally{try{O&&!O.done&&(a=x.return)&&a.call(x)}finally{if(r)throw r.error}}else try{for(var j=Object(F["i"])(h),w=j.next();!w.done;w=j.next()){y=w.value;l.setItemState(y,ju,y.id!==u.id)}}catch(A){o={error:A}}finally{try{w&&!w.done&&(s=j.return)&&s.call(j)}finally{if(o)throw o.error}}}},e}(ru),Cu=wu,Mu="showRadio",Su="legend-radio-tip",Au=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(F["c"])(e,t),e.prototype.show=function(){var t=this.getTriggerListInfo();if(null===t||void 0===t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,Mu,!0)}},e.prototype.hide=function(){var t=this.getTriggerListInfo();if(null===t||void 0===t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,Mu,!1)}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.showTip=function(){var t=this.context,e=t.event,n=this.timeStamp,i=+new Date,r=this.context.event.target;if(i-n>16&&"legend-item-radio"===r.get("name")){var a=this.location,o={x:e.x,y:e.y};this.timeStamp=i,this.location=o,a&&Object(E["H"])(a,o)||this.showTooltip(o)}},e.prototype.hideTip=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event,i=n.target;if(i&&i.get("tip")){this.tooltip||this.renderTooltip();var r=e.view.getCanvas().get("el").getBoundingClientRect(),a=r.x,o=r.y;this.tooltip.update(Object(F["a"])(Object(F["a"])({title:i.get("tip")},t),{x:t.x+a,y:t.y+o})),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=(t={},t[Tt["TOOLTIP_CSS_CONST"].CONTAINER_CLASS]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[Tt["TOOLTIP_CSS_CONST"].TITLE_CLASS]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(Su)&&document.body.removeChild(document.getElementById(Su));var n=new _t({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:e,containerId:Su});n.init(),n.setCapture(!1),this.tooltip=n},e}(ru),ku=Au,Fu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShape=null,e.points=[],e.starting=!1,e.moving=!1,e.preMovePoint=null,e.shapeType="path",e}return Object(F["c"])(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="mask:".concat(t),n=this.context.view,i=this.context.event;n.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:i.x,y:i.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs(),n=t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:Object(F["a"])({fill:"#C5D4EB",opacity:.3},e)});return n},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null===t||void 0===t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,i=t.y-e.y,r=this.points;Object(E["j"])(r,(function(t){t.x+=n,t.y+=i})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(t){var e=Object(E["h"])({},this.getMaskAttrs(),t);this.maskShape.attr(e)},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},e.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},e.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},e.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,t.prototype.destroy.call(this)},e}(Te),Eu=Fu;function Iu(t){var e=Object(E["U"])(t),n=0,i=0,r=0;if(t.length){var a=t[0];n=Yn(a,e)/2,i=(e.x+a.x)/2,r=(e.y+a.y)/2}return{x:i,y:r,r:n}}var Tu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return Object(F["c"])(e,t),e.prototype.getMaskAttrs=function(){return Iu(this.points)},e}(Eu),Pu=Tu;function Bu(t){return{start:Object(E["z"])(t),end:Object(E["U"])(t)}}function Lu(t,e){var n=Math.min(t.x,e.x),i=Math.min(t.y,e.y),r=Math.abs(e.x-t.x),a=Math.abs(e.y-t.y);return{x:n,y:i,width:r,height:a}}var Du=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return Object(F["c"])(e,t),e.prototype.getRegion=function(){return Bu(this.points)},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end;return Lu(e,n)},e}(Eu),Ru=Du;function zu(t){t.x=Object(E["c"])(t.x,0,1),t.y=Object(E["c"])(t.y,0,1)}function _u(t,e,n,i){var r=null,a=null,o=i.invert(Object(E["z"])(t)),s=i.invert(Object(E["U"])(t));return n&&(zu(o),zu(s)),"x"===e?(r=i.convert({x:o.x,y:0}),a=i.convert({x:s.x,y:1})):(r=i.convert({x:0,y:o.y}),a=i.convert({x:1,y:s.y})),{start:r,end:a}}var Nu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(F["c"])(e,t),e.prototype.getRegion=function(){var t=this.context.view.getCoordinate();return _u(this.points,this.dim,this.inPlot,t)},e}(Ru),Yu=Nu;function Gu(t){var e=[];return t.length&&(Object(E["j"])(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e}function Vu(t){return{path:Gu(t)}}var Wu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.getMaskPath=function(){return Gu(this.points)},e.prototype.getMaskAttrs=function(){return Vu(this.points)},e.prototype.addPoint=function(){this.resize()},e}(Eu),Xu=Wu;function Hu(t){return Gn(t,!0)}function qu(t){return{path:Hu(t)}}var Uu,Ku=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.getMaskPath=function(){return Hu(this.points)},e.prototype.getMaskAttrs=function(){return qu(this.points)},e}(Xu),Qu=Ku,Zu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShapes=[],e.starting=!1,e.moving=!1,e.recordPoints=null,e.preMovePoint=null,e.shapeType="path",e.maskType="multi-mask",e}return Object(F["c"])(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="".concat(this.maskType,":").concat(t),n=this.context.view,i=this.context.event,r={type:this.shapeType,name:this.maskType,get:function(t){return r.hasOwnProperty(t)?r[t]:void 0}};n.emit(e,{target:r,maskShapes:this.maskShapes,multiPoints:this.recordPoints,x:i.x,y:i.y})},e.prototype.createMask=function(t){var e=this.context.view,n=this.recordPoints[t],i=this.getMaskAttrs(n),r=e.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:Object(F["a"])({fill:"#C5D4EB",opacity:.3},i)});this.maskShapes.push(r)},e.prototype.getMaskPath=function(t){return[]},e.prototype.show=function(){this.maskShapes.length>0&&(this.maskShapes.forEach((function(t){return t.show()})),this.emitEvent("show"))},e.prototype.start=function(t){this.recordPointStart(),this.starting=!0,this.moving=!1;var e=this.recordPoints.length-1;this.createMask(e),this.updateShapesCapture(!1),this.updateMask(null===t||void 0===t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint(),this.updateShapesCapture(!1)},e.prototype.move=function(){if(this.moving&&0!==this.maskShapes.length){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,i=t.y-e.y,r=this.getCurMaskShapeIndex();r>-1&&(this.recordPoints[r].forEach((function(t){t.x+=n,t.y+=i})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t)}},e.prototype.updateMask=function(t){var e=this;this.recordPoints.forEach((function(n,i){var r=Object(E["h"])({},e.getMaskAttrs(n),t);e.maskShapes[i].attr(r)}))},e.prototype.resize=function(){this.starting&&this.maskShapes.length>0&&(this.recordPointContinue(),this.updateMask(),this.emitEvent("change"))},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null,this.updateShapesCapture(!0)},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.updateShapesCapture(!0)},e.prototype.hide=function(){this.maskShapes.length>0&&(this.maskShapes.forEach((function(t){return t.hide()})),this.emitEvent("hide"))},e.prototype.remove=function(){var t=this.getCurMaskShapeIndex();t>-1&&(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.updateShapesCapture(!0),this.emitEvent("change"))},e.prototype.clearAll=function(){this.recordPointClear(),this.maskShapes.forEach((function(t){return t.remove()})),this.maskShapes=[],this.preMovePoint=null},e.prototype.clear=function(){var t=this.getCurMaskShapeIndex();-1===t?(this.recordPointClear(),this.maskShapes.forEach((function(t){return t.remove()})),this.maskShapes=[],this.emitEvent("clearAll")):(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.emitEvent("clearSingle")),this.preMovePoint=null},e.prototype.destroy=function(){this.clear(),t.prototype.destroy.call(this)},e.prototype.getRecordPoints=function(){var t;return Object(F["g"])([],Object(F["e"])(null!==(t=this.recordPoints)&&void 0!==t?t:[]),!1)},e.prototype.recordPointStart=function(){var t=this.getRecordPoints(),e=this.getCurrentPoint();this.recordPoints=Object(F["g"])(Object(F["g"])([],Object(F["e"])(t),!1),[[e]],!1)},e.prototype.recordPointContinue=function(){var t=this.getRecordPoints(),e=this.getCurrentPoint(),n=t.splice(-1,1)[0]||[];n.push(e),this.recordPoints=Object(F["g"])(Object(F["g"])([],Object(F["e"])(t),!1),[n],!1)},e.prototype.recordPointClear=function(){this.recordPoints=[]},e.prototype.updateShapesCapture=function(t){this.maskShapes.forEach((function(e){return e.set("capture",t)}))},e.prototype.getCurMaskShapeIndex=function(){var t=this.getCurrentPoint();return this.maskShapes.findIndex((function(e){var n=e.attrs,i=n.width,r=n.height,a=n.r,o=0===i||0===r||0===a;return!o&&e.isHit(t.x,t.y)}))},e}(Te),Ju=Zu,$u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return Object(F["c"])(e,t),e.prototype.getRegion=function(t){return Bu(t)},e.prototype.getMaskAttrs=function(t){var e=this.getRegion(t),n=e.start,i=e.end;return Lu(n,i)},e}(Ju),th=$u,eh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(F["c"])(e,t),e.prototype.getRegion=function(t){var e=this.context.view.getCoordinate();return _u(t,this.dim,this.inPlot,e)},e}(th),nh=eh,ih=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e.getMaskAttrs=Iu,e}return Object(F["c"])(e,t),e}(Ju),rh=ih,ah=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getMaskPath=Gu,e.getMaskAttrs=Vu,e}return Object(F["c"])(e,t),e.prototype.addPoint=function(){this.resize()},e}(Ju),oh=ah,sh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getMaskPath=Hu,e.getMaskAttrs=qu,e}return Object(F["c"])(e,t),e}(oh),ch=sh,lh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.setCursor=function(t){var e=this.context.view;e.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e.prototype.zoomIn=function(){this.setCursor("zoom-in")},e.prototype.zoomOut=function(){this.setCursor("zoom-out")},e}(Te),uh=lh,hh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.filterView=function(t,e,n){var i=this;t.getScaleByField(e)&&t.filter(e,n),t.views&&t.views.length&&Object(E["j"])(t.views,(function(t){i.filterView(t,e,n)}))},e.prototype.filter=function(){var t=On(this.context);if(t){var e=this.context.view,n=t.component,i=n.get("field");if(wn(t)){if(i){var r=n.getItemsByState("unchecked"),a=Un(e,i),o=r.map((function(t){return t.name}));o.length?this.filterView(e,i,(function(t){var e=a.getText(t);return!o.includes(e)})):this.filterView(e,i,null),e.render(!0)}}else if(Cn(t)){var s=n.getValue(),c=Object(F["e"])(s,2),l=c[0],u=c[1];this.filterView(e,i,(function(t){return t>=l&&t<=u})),e.render(!0)}}},e}(Te),fh=hh;function ph(t,e,n,i){var r=Math.min(n[e],i[e]),a=Math.max(n[e],i[e]),o=Object(F["e"])(t.range,2),s=o[0],c=o[1];if(rc&&(a=c),r===c&&a===c)return null;var l=t.invert(r),u=t.invert(a);if(t.isCategory){var h=t.values.indexOf(l),f=t.values.indexOf(u),p=t.values.slice(h,f+1);return function(t){return p.includes(t)}}return function(t){return t>=l&&t<=u}}(function(t){t["FILTER"]="brush-filter-processing",t["RESET"]="brush-filter-reset",t["BEFORE_FILTER"]="brush-filter:beforefilter",t["AFTER_FILTER"]="brush-filter:afterfilter",t["BEFORE_RESET"]="brush-filter:beforereset",t["AFTER_RESET"]="brush-filter:afterreset"})(Uu||(Uu={}));var dh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.startPoint=null,e.isStarted=!1,e}return Object(F["c"])(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if(Mn(this.context)){var n=this.context.event.target,i=n.getCanvasBBox();t={x:i.x,y:i.y},e={x:i.maxX,y:i.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var r=this.context,a=r.view,o=r.event,s={view:a,event:o,dims:this.dims};a.emit(Uu.BEFORE_FILTER,Hi.fromData(a,Uu.BEFORE_FILTER,s));var c=a.getCoordinate(),l=c.invert(e),u=c.invert(t);if(this.hasDim("x")){var h=a.getXScale(),f=ph(h,"x",l,u);this.filterView(a,h.field,f)}if(this.hasDim("y")){var p=a.getYScales()[0];f=ph(p,"y",l,u);this.filterView(a,p.field,f)}this.reRender(a,{source:Uu.FILTER}),a.emit(Uu.AFTER_FILTER,Hi.fromData(a,Uu.AFTER_FILTER,s))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(Uu.BEFORE_RESET,Hi.fromData(t,Uu.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:Uu.RESET}),t.emit(Uu.AFTER_RESET,Hi.fromData(t,Uu.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(Te),gh=dh,vh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.filterView=function(t,e,n){var i=Wn(t);Object(E["j"])(i,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=Wn(t);Object(E["j"])(e,(function(t){t.render(!0)}))},e}(gh),yh=vh,mh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.filter=function(){var t=On(this.context),e=this.context.view,n=Tn(e);if(Mn(this.context)){var i=An(this.context,10);i&&Object(E["j"])(n,(function(t){i.includes(t)?t.show():t.hide()}))}else if(t){var r=t.component,a=r.get("field");if(wn(t)){if(a){var o=r.getItemsByState("unchecked"),s=Un(e,a),c=o.map((function(t){return t.name}));Object(E["j"])(n,(function(t){var e=Ln(t,a),n=s.getText(e);c.indexOf(n)>=0?t.hide():t.show()}))}}else if(Cn(t)){var l=r.getValue(),u=Object(F["e"])(l,2),h=u[0],f=u[1];Object(E["j"])(n,(function(t){var e=Ln(t,a);e>=h&&e<=f?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=Tn(this.context.view);Object(E["j"])(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(Te),bh=mh,xh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return Object(F["c"])(e,t),e.prototype.filter=function(){Mn(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=An(this.context,10);if(e){var n=t.getXScale().field,i=t.getYScales()[0].field,r=e.map((function(t){return t.getModel().data})),a=Wn(t);Object(E["j"])(a,(function(t){var e=Tn(t);Object(E["j"])(e,(function(t){var e=t.getModel().data;qn(r,e,n,i)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=Wn(e);Object(E["j"])(n,(function(e){var n=Fn(t.context,e,10),i=Tn(e);n&&Object(E["j"])(i,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=Wn(this.context.view);Object(E["j"])(t,(function(t){var e=Tn(t);Object(E["j"])(e,(function(t){t.show()}))}))},e}(Te),Oh=xh,jh=10,wh=5,Ch=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},e}return Object(F["c"])(e,t),e.prototype.getButtonCfg=function(){return Object(E["h"])(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=e.addShape({type:"text",name:"button-text",attrs:Object(F["a"])({text:t.text},t.textStyle)}),i=n.getBBox(),r=zi(t.padding),a=e.addShape({type:"rect",name:"button-rect",attrs:Object(F["a"])({x:i.x-r[3],y:i.y-r[0],width:i.width+r[1]+r[3],height:i.height+r[0]+r[2]},t.style)});a.toBack(),e.on("mouseenter",(function(){a.attr(t.activeStyle)})),e.on("mouseleave",(function(){a.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view,e=t.getCoordinate(),n=e.convert({x:1,y:1}),i=this.buttonGroup,r=i.getBBox(),a=xt["a"].transform(null,[["t",n.x-r.width-jh,n.y+r.height+wh]]);i.setMatrix(a)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(Te),Mh=Ch,Sh=4,Ah=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return Object(F["c"])(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,n=this.context.event;this.dragStart?e.emit("drag",{target:n.target,x:n.x,y:n.y}):Yn(t,this.startPoint)>Sh&&(e.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},e}(Te),kh=Ah,Fh=5,Eh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.isMoving=!1,e.startPoint=null,e.startMatrix=null,e}return Object(F["c"])(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint(),n=Yn(t,e);if(n>Fh&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var i=this.context.view,r=xt["a"].transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);i.backgroundGroup.setMatrix(r),i.foregroundGroup.setMatrix(r),i.middleGroup.setMatrix(r)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(Te),Ih=Eh,Th="x",Ph="y",Bh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=[Th,Ph],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return Object(F["c"])(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim(Th),this.resetDim(Ph);var t=this.context.view;t.render(!0)},e}(Te),Lh=Bh,Dh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return Object(F["c"])(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;Object(E["j"])(e,(function(e){var n=t.getScale(e),i=n.min,r=n.max,a=n.values;t.startCache[e]={min:i,max:r,values:a}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),i=this.context.getCurrentPoint(),r=n.invert(e),a=n.invert(i),o=a.x-r.x,s=a.y-r.y,c=this.context.view,l=this.dims;Object(E["j"])(l,(function(e){t.translateDim(e,{x:-1*o,y:-1*s})})),c.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var i=this.context.view,r=this.startCache[t],a=r.min,o=r.max,s=o-a,c=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:a,max:o}),i.scale(e.field,{nice:!1,min:a+c,max:o+c})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(Lh),Rh=Dh,zh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return Object(F["c"])(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;Object(E["j"])(n,(function(n){e.zoomDim(n,t)})),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},e.prototype.zoomLinear=function(t,e,n){var i=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var r=this.cacheScaleDefs[t],a=r.max-r.min,o=e.min,s=e.max,c=n*a,l=o-c,u=s+c,h=u-l,f=h/a;u>l&&f<100&&f>.01&&i.scale(e.field,{nice:!1,min:o-c,max:s+c})},e}(Lh),_h=zh;function Nh(t){var e=t.gEvent.originalEvent;return e.deltaY>0}var Yh=1,Gh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.scroll=function(t){var e=this.context,n=e.view,i=e.event;if(n.getOptions().scrollbar){var r=(null===t||void 0===t?void 0:t.wheelDelta)||Yh,a=n.getController("scrollbar"),o=n.getXScale(),s=n.getOptions().data,c=Object(E["mb"])(Object(E["yb"])(s,o.field)),l=Object(E["mb"])(o.values),u=a.getValue(),h=Math.floor((c-l)*u),f=h+(Nh(i)?r:-r),p=r/(c-l)/1e4,d=Object(E["c"])(f/(c-l)+p,0,1);a.setValue(d)}},e}(Te),Vh=Gh,Wh="aixs-description-tooltip",Xh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.show=function(){var t=this.context,e=On(t).axis,n=e.cfg.title,i=n.description,r=n.text,a=n.descriptionTooltipStyle,o=t.event,s=o.x,c=o.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:r||"",customContent:function(){return'\n
    \n
    \n 字段说明:').concat(i,"\n
    \n
    \n ")},x:s,y:c}),this.tooltip.show()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,i={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},r=new _t({parent:n.get("el").parentNode,region:i,visible:!1,containerId:Wh,domStyles:Object(F["a"])({},Object(E["h"])({},(t={},t[Tt["TOOLTIP_CSS_CONST"].CONTAINER_CLASS]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[Tt["TOOLTIP_CSS_CONST"].TITLE_CLASS]={"word-break":"break-all","margin-bottom":"3px"},t)))});r.init(),r.setCapture(!1),this.tooltip=r},e}(Te),Hh=Xh;function qh(t){return t.isInPlot()}function Uh(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}Oi("dark",ui(Ea)),V("canvas",Ia),V("svg",Ta),$i("Polygon",fo),$i("Interval",no),$i("Schema",go),$i("Path",Ba),$i("Point",lo),$i("Line",ro),$i("Area",_a),$i("Edge",Ya),$i("Heatmap",Va),$i("Violin",mo),wr("base",Jr),wr("interval",Yo),wr("pie",Ho),wr("polar",Wo),Mr("overlap",fs),Mr("distribute",Ko),Mr("fixed-overlap",hs),Mr("hide-overlap",Es),Mr("limit-in-shape",os),Mr("limit-in-canvas",as),Mr("limit-in-plot",tc),Mr("pie-outer",$o),Mr("adjust-color",Bs),Mr("interval-adjust-position",zs),Mr("interval-hide-overlap",Ns),Mr("point-adjust-position",Xs),Mr("pie-spider",rs),Mr("path-adjust-position",Qs),lr("fade-in",ec),lr("fade-out",nc),lr("grow-in-x",ac),lr("grow-in-xy",sc),lr("grow-in-y",oc),lr("scale-in-x",uc),lr("scale-in-y",hc),lr("wave-in",vc),lr("zoom-in",mc),lr("zoom-out",bc),lr("position-update",lc),lr("sector-path-update",gc),lr("path-in",cc),Ee("rect",Ic),Ee("mirror",Fc),Ee("list",Mc),Ee("matrix",Ac),Ee("circle",wc),Ee("tree",Pc),Ni("axis",qc),Ni("legend",Jc),Ni("tooltip",or),Ni("annotation",_c),Ni("slider",tl),Ni("scrollbar",ol),ze("tooltip",fl),ze("sibling-tooltip",dl),ze("ellipsis-text",vl),ze("element-active",wl),ze("element-single-active",Pl),ze("element-range-active",Fl),ze("element-highlight",Gl),ze("element-highlight-by-x",Hl),ze("element-highlight-by-color",Wl),ze("element-single-highlight",Ql),ze("element-range-highlight",Ul),ze("element-sibling-highlight",Ul,{effectSiblings:!0,effectByRecord:!0}),ze("element-selected",tu),ze("element-single-selected",nu),ze("element-range-selected",Jl),ze("element-link-by-color",Ml),ze("active-region",ul),ze("list-active",ou),ze("list-selected",gu),ze("list-highlight",pu),ze("list-unchecked",yu),ze("list-checked",Ou),ze("list-focus",Cu),ze("list-radio",ku),ze("legend-item-highlight",pu,{componentNames:["legend"]}),ze("axis-label-highlight",pu,{componentNames:["axis"]}),ze("axis-description",Hh),ze("rect-mask",Ru),ze("x-rect-mask",Yu,{dim:"x"}),ze("y-rect-mask",Yu,{dim:"y"}),ze("circle-mask",Pu),ze("path-mask",Xu),ze("smooth-path-mask",Qu),ze("rect-multi-mask",th),ze("x-rect-multi-mask",nh,{dim:"x"}),ze("y-rect-multi-mask",nh,{dim:"y"}),ze("circle-multi-mask",rh),ze("path-multi-mask",oh),ze("smooth-path-multi-mask",ch),ze("cursor",uh),ze("data-filter",fh),ze("brush",gh),ze("brush-x",gh,{dims:["x"]}),ze("brush-y",gh,{dims:["y"]}),ze("sibling-filter",yh),ze("sibling-x-filter",yh,{dims:"x"}),ze("sibling-y-filter",yh,{dims:"y"}),ze("element-filter",bh),ze("element-sibling-filter",Oh),ze("element-sibling-filter-record",Oh,{byRecord:!0}),ze("view-drag",kh),ze("view-move",Ih),ze("scale-translate",Rh),ze("scale-zoom",_h),ze("reset-button",Mh,{name:"reset-button",text:"reset"}),ze("mousewheel-scroll",Vh),oi("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),oi("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),oi("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),oi("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),oi("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),oi("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),oi("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),oi("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),oi("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),oi("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),oi("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),oi("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),oi("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:qh,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:qh,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:qh,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),oi("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),oi("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:qh,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:qh,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:qh,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),oi("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:qh,action:"path-mask:start"},{trigger:"mousedown",isEnable:qh,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),oi("brush-x-multi",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"mousedown",isEnable:qh,action:["x-rect-multi-mask:start","x-rect-multi-mask:show"]},{trigger:"mask:dragstart",action:["x-rect-multi-mask:moveStart"]}],processing:[{trigger:"mousemove",isEnable:function(t){return!Sn(t)},action:["x-rect-multi-mask:resize"]},{trigger:"multi-mask:change",action:"element-range-highlight:highlight"},{trigger:"mask:drag",action:["x-rect-multi-mask:move"]}],end:[{trigger:"mouseup",action:["x-rect-multi-mask:end"]},{trigger:"mask:dragend",action:["x-rect-multi-mask:moveEnd"]}],rollback:[{trigger:"dblclick",action:["x-rect-multi-mask:clear","cursor:crosshair"]},{trigger:"multi-mask:clearAll",action:["element-range-highlight:clear"]},{trigger:"multi-mask:clearSingle",action:["element-range-highlight:highlight"]}]}),oi("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),oi("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(t){return!t.isInShape("legend-item-radio")},action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),oi("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),oi("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),oi("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]}),oi("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),oi("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),oi("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Uh(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Uh(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),oi("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),oi("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var Kh,Qh=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"];(function(t){t["ERROR"]="error",t["WARN"]="warn",t["INFO"]="log"})(Kh||(Kh={}));var Zh="AntV/G2Plot";function Jh(t){for(var e=[],n=1;n=0})),r=n.every((function(t){return Object(E["s"])(t,[e])<=0}));return i?{min:0}:r?{max:0}:{}}function nf(t,e,n,i,r){if(void 0===r&&(r=[]),!Array.isArray(t))return{nodes:[],links:[]};var a=[],o={},s=-1;return t.forEach((function(t){var c=t[e],l=t[n],u=t[i],h=tf(t,r);o[c]||(o[c]=Object(F["a"])({id:++s,name:c},h)),o[l]||(o[l]=Object(F["a"])({id:++s,name:l},h)),a.push(Object(F["a"])({source:o[c].id,target:o[l].id,value:u},h))})),{nodes:Object.values(o).sort((function(t,e){return t.id-e.id})),links:a}}function rf(t,e){var n=Object(E["l"])(t,(function(t){var n=t[e];return null===n||"number"===typeof n&&!isNaN(n)}));return $h(Kh.WARN,n.length===t.length,"illegal data existed in chart data."),n}var af,of=5,sf={}.toString,cf=function(t,e){return sf.call(t)==="[object "+e+"]"},lf=function(t){return cf(t,"Array")},uf=function(t){return"object"===typeof t&&null!==t},hf=function(t){if(!uf(t)||!cf(t,"Object"))return!1;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},ff=function(t,e,n,i){for(var r in n=n||0,i=i||of,e)if(Object.prototype.hasOwnProperty.call(e,r)){var a=e[r];a?hf(a)?(hf(t[r])||(t[r]={}),n=i&&t<=r}function Mf(t){if(Object(E["M"])(t))return[t,t,t,t];if(Object(E["C"])(t)){var e=t.length;if(1===e)return[t[0],t[0],t[0],t[0]];if(2===e)return[t[0],t[1],t[0],t[1]];if(3===e)return[t[0],t[1],t[2],t[1]];if(4===e)return t}return[0,0,0,0]}function Sf(t,e,n){void 0===e&&(e="bottom"),void 0===n&&(n=25);var i=Mf(t),r=[e.startsWith("top")?n:0,e.startsWith("right")?n:0,e.startsWith("bottom")?n:0,e.startsWith("left")?n:0];return[i[0]+r[0],i[1]+r[1],i[2]+r[2],i[3]+r[3]]}function Af(t){var e=t.map((function(t){return Mf(t)})),n=[0,0,0,0];return e.length>0&&(n=n.map((function(t,n){return e.forEach((function(i,r){t+=e[r][n]})),t}))),n}function kf(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var i=1,r=t.length;i"},key:"".concat(0===i?"top":"bottom","-statistic")},tf(e,["offsetX","offsetY","rotate","style","formatter"])))}}))},Lf=function(t,e,n){var i=e.statistic,r=i.title,a=i.content;[r,a].forEach((function(e){if(e){var i=Object(E["I"])(e.style)?e.style(n):e.style;t.annotation().html(Object(F["a"])({position:["50%","100%"],html:function(t,r){var a=r.getCoordinate(),o=r.views[0].getCoordinate(),s=o.getCenter(),c=o.getRadius(),l=Math.max(Math.sin(o.startAngle),Math.sin(o.endAngle))*c,u=s.y+l-a.y.start-parseFloat(Object(E["s"])(i,"fontSize",0)),h=a.getRadius()*a.innerRadius*2;Pf(t,Object(F["a"])({width:"".concat(h,"px"),transform:"translate(-50%, ".concat(u,"px)")},Tf(i)));var f=r.getData();if(e.customHtml)return e.customHtml(t,r,n,f);var p=e.content;return e.formatter&&(p=e.formatter(n,f)),p?Object(E["Q"])(p)?p:"".concat(p):"
    "}},tf(e,["offsetX","offsetY","rotate","style","formatter"])))}}))};function Df(t,e){return e?Object(E["ib"])(e,(function(t,e,n){return t.replace(new RegExp("{\\s*".concat(n,"\\s*}"),"g"),e)}),t):t}function Rf(t,e){return t.views.find((function(t){return t.id===e}))}function zf(t){var e=t.parent;return e?e.views:[]}function _f(t){return zf(t).filter((function(e){return e!==t}))}function Nf(t,e,n){void 0===n&&(n=t.geometries),"boolean"===typeof e?t.animate(e):t.animate(!0),Object(E["j"])(n,(function(t){var n;n=Object(E["I"])(e)?e(t.type||t.shapeType,t)||!0:e,t.animate(n)}))}function Yf(){return"object"===typeof window?null===window||void 0===window?void 0:window.devicePixelRatio:2}function Gf(t,e){void 0===e&&(e=t);var n=document.createElement("canvas"),i=Yf();n.width=t*i,n.height=e*i,n.style.width="".concat(t,"px"),n.style.height="".concat(e,"px");var r=n.getContext("2d");return r.scale(i,i),n}function Vf(t,e,n,i){void 0===i&&(i=n);var r=e.backgroundColor,a=e.opacity;t.globalAlpha=a,t.fillStyle=r,t.beginPath(),t.fillRect(0,0,n,i),t.closePath()}function Wf(t,e,n){var i=t+e;return n?2*i:i}function Xf(t,e){var n=e?[[t*(1/4),t*(1/4)],[t*(3/4),t*(3/4)]]:[[.5*t,.5*t]];return n}function Hf(t,e){var n=e*Math.PI/180,i={a:Math.cos(n)*(1/t),b:Math.sin(n)*(1/t),c:-Math.sin(n)*(1/t),d:Math.cos(n)*(1/t),e:0,f:0};return i}var qf={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function Uf(t,e,n,i){var r=e.size,a=e.fill,o=e.lineWidth,s=e.stroke,c=e.fillOpacity;t.beginPath(),t.globalAlpha=c,t.fillStyle=a,t.strokeStyle=s,t.lineWidth=o,t.arc(n,i,r/2,0,2*Math.PI,!1),t.fill(),o&&t.stroke(),t.closePath()}function Kf(t){var e=pf({},qf,t),n=e.size,i=e.padding,r=e.isStagger,a=e.rotation,o=Wf(n,i,r),s=Xf(o,r),c=Gf(o,o),l=c.getContext("2d");Vf(l,e,o);for(var u=0,h=s;ub){var O=x/g.length,j=Math.max(1,Math.ceil(b/O)-1),w="".concat(g.slice(0,j),"...");m.attr("text",w)}}}}function md(t,e,n){vd(t,e,n),yd(t,e,n)}function bd(t,e,n){return void 0===e&&(e=!0),void 0===n&&(n=!1),function(i){var r=i.options,a=i.chart,o=r.conversionTag,s=r.theme;return o&&!n&&(a.theme(pf({},Object(E["O"])(s)?s:xi(s),{columnWidthRatio:1/3})),a.annotation().shape({render:function(n,i){var r=n.addGroup({id:"".concat(a.id,"-conversion-tag-group"),name:"conversion-tag-group"}),s=Object(E["m"])(a.geometries,(function(t){return"interval"===t.type})),c={view:i,geometry:s,group:r,field:t,horizontal:e,options:dd(o,e)},l=s.elements;Object(E["j"])(l,(function(t,e){e>0&&md(c,l[e-1],t)}))}})),i}}function xd(t){var e=t.options,n=e.legend,i=e.seriesField,r=e.isStack;return i?!1!==n&&(n=Object(F["a"])({position:r?"right-top":"top-left"},n)):n=!1,t.options.legend=n,t}function Od(t){var e=t.chart,n=t.options,i=n.data,r=n.columnStyle,a=n.color,o=n.columnWidthRatio,s=n.isPercent,c=n.isGroup,l=n.isStack,u=n.xField,h=n.yField,f=n.seriesField,p=n.groupField,d=n.tooltip,g=n.shape,v=s&&c&&l?Np(i,h,[u,p],h):Yp(i,h,u,h,s),y=[];l&&f&&!c?v.forEach((function(t){var e=y.find((function(e){return e[u]===t[u]&&e[f]===t[f]}));e?e[h]+=t[h]||0:y.push(Object(F["a"])({},t))})):y=v,e.data(y);var m=s?Object(F["a"])({formatter:function(t){var e;return{name:c&&l?"".concat(t[f]," - ").concat(t[p]):null!==(e=t[f])&&void 0!==e?e:t[u],value:(100*Number(t[h])).toFixed(2)+"%"}}},d):d,b=pf({},t,{options:{data:y,widthRatio:o,tooltip:m,interval:{shape:g,style:r,color:a}}});return Fp(b),b}function jd(t){var e,n,i=t.options,r=i.xAxis,a=i.yAxis,o=i.xField,s=i.yField,c=i.data,l=i.isPercent,u=l?{max:1,min:0,minLimit:0,maxLimit:1}:{};return gf(fp((e={},e[o]=r,e[s]=a,e),(n={},n[o]={type:"cat"},n[s]=Object(F["a"])(Object(F["a"])({},ef(c,s)),u),n)))(t)}function wd(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,a=n.xField,o=n.yField;return!1===i?e.axis(a,!1):e.axis(a,i),!1===r?e.axis(o,!1):e.axis(o,r),t}function Cd(t){var e=t.chart,n=t.options,i=n.legend,r=n.seriesField;return i&&r?e.legend(r,i):!1===i&&e.legend(!1),t}function Md(t){var e=t.chart,n=t.options,i=n.label,r=n.yField,a=n.isRange,o=vf(e,"interval");if(i){var s=i.callback,c=Object(F["f"])(i,["callback"]);o.label({fields:[r],callback:s,cfg:Object(F["a"])({layout:(null===c||void 0===c?void 0:c.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Of(a?Object(F["a"])({content:function(t){var e;return null===(e=t[r])||void 0===e?void 0:e.join("-")}},c):c))})}else o.label(!1);return t}function Sd(t){var e=t.chart,n=t.options,i=n.tooltip,r=n.isGroup,a=n.isStack,o=n.groupField,s=n.data,c=n.xField,l=n.yField,u=n.seriesField;if(!1===i)e.tooltip(!1);else{var h=i;if(r&&a){var f=h.customItems,p=(null===h||void 0===h?void 0:h.formatter)||function(t){return{name:"".concat(t[u]," - ").concat(t[o]),value:t[l]}};h=Object(F["a"])(Object(F["a"])({},h),{customItems:function(t){var e=[];return Object(E["j"])(t,(function(t){var n=Object(E["l"])(s,(function(e){return Object(E["J"])(e,tf(t.data,[c,u]))}));n.forEach((function(n){e.push(Object(F["a"])(Object(F["a"])(Object(F["a"])({},t),{value:n[l],data:n,mappingData:{_origin:n}}),p(n)))}))})),f?f(e):e}})}e.tooltip(h)}return t}function Ad(t,e){void 0===e&&(e=!1);var n=t.options,i=n.seriesField;return gf(xd,cp,ip("columnStyle"),lp,gp("rect"),Od,jd,wd,Cd,Sd,up,hp,Md,ld,op,sp,pp(),bd(n.yField,!e,!!i),fd(!n.isStack),dp)(t)}function kd(t){var e=t.options,n=e.xField,i=e.yField,r=e.xAxis,a=e.yAxis,o={left:"bottom",right:"top",top:"left",bottom:"right"},s=!1!==a&&Object(F["a"])({position:o[(null===a||void 0===a?void 0:a.position)||"left"]},a),c=!1!==r&&Object(F["a"])({position:o[(null===r||void 0===r?void 0:r.position)||"bottom"]},r);return Object(F["a"])(Object(F["a"])({},t),{options:Object(F["a"])(Object(F["a"])({},e),{xField:i,yField:n,xAxis:s,yAxis:c})})}function Fd(t){var e=t.options,n=e.label;return n&&!n.position&&(n.position="left",n.layout||(n.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),pf({},t,{options:{label:n}})}function Ed(t){var e=t.options,n=e.seriesField,i=e.isStack,r=e.legend;return n?!1!==r&&(r=Object(F["a"])({position:i?"top-left":"right-top"},r||{})):r=!1,pf({},t,{options:{legend:r}})}function Id(t){var e=t.options,n=[{type:"transpose"},{type:"reflectY"}].concat(e.coordinate||[]);return pf({},t,{options:{coordinate:n}})}function Td(t){var e=t.chart,n=t.options,i=n.barStyle,r=n.barWidthRatio,a=n.minBarWidth,o=n.maxBarWidth,s=n.barBackground;return Ad({chart:e,options:Object(F["a"])(Object(F["a"])({},n),{columnStyle:i,columnWidthRatio:r,minColumnWidth:a,maxColumnWidth:o,columnBackground:s})},!0)}function Pd(t){return gf(kd,Fd,Ed,ap,Id,Td)(t)}oi(ud.hover,{start:hd(ud.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),oi(ud.click,{start:hd(ud.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});var Bd,Ld=pf({},zp.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),Dd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bar",e}return Object(F["c"])(e,t),e.getDefaultOptions=function(){return Ld},e.prototype.changeData=function(t){var e,n;this.updateOption({data:t});var i=this,r=i.chart,a=i.options,o=a.isPercent,s=a.xField,c=a.yField,l=a.xAxis,u=a.yAxis;e=[c,s],s=e[0],c=e[1],n=[u,l],l=n[0],u=n[1];var h=Object(F["a"])(Object(F["a"])({},a),{xField:s,yField:c,yAxis:u,xAxis:l});jd({chart:r,options:h}),r.changeData(Yp(t,s,c,s,o))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Pd},e}(zp),Rd=pf({},zp.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),zd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="column",e}return Object(F["c"])(e,t),e.getDefaultOptions=function(){return Rd},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.yField,i=e.xField,r=e.isPercent,a=this,o=a.chart,s=a.options;jd({chart:o,options:s}),this.chart.changeData(Yp(t,n,i,n,r))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Ad},e}(zp),_d="$$percentage$$",Nd="$$mappingValue$$",Yd="$$conversion$$",Gd="$$totalPercentage$$",Vd="$$x$$",Wd="$$y$$",Xd={appendPadding:[0,80],minSize:0,maxSize:1,meta:(Bd={},Bd[Nd]={min:0,max:1,nice:!1},Bd),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}},Hd="CONVERSION_TAG_NAME";function qd(t,e,n){var i=[],r=n.yField,a=n.maxSize,o=n.minSize,s=Object(E["s"])(Object(E["Z"])(e,r),[r]),c=Object(E["M"])(a)?a:1,l=Object(E["M"])(o)?o:0;return i=Object(E["W"])(t,(function(e,n){var i=(e[r]||0)/s;return e[_d]=i,e[Nd]=(c-l)*i+l,e[Yd]=[Object(E["s"])(t,[n-1,r]),e[r]],e})),i}function Ud(t){return function(e){var n=e.chart,i=e.options,r=i.conversionTag,a=i.filteredData,o=a||n.getOptions().data;if(r){var s=r.formatter;o.forEach((function(e,i){if(!(i<=0||Number.isNaN(e[Nd]))){var a=t(e,i,o,{top:!0,name:Hd,text:{content:Object(E["I"])(s)?s(e,o):s,offsetX:r.offsetX,offsetY:r.offsetY,position:"end",autoRotate:!1,style:Object(F["a"])({textAlign:"start",textBaseline:"middle"},r.style)}});n.annotation().line(a)}}))}return e}}function Kd(t){var e=t.chart,n=t.options,i=n.data,r=void 0===i?[]:i,a=n.yField,o=n.maxSize,s=n.minSize,c=qd(r,r,{yField:a,maxSize:o,minSize:s});return e.data(c),t}function Qd(t){var e=t.chart,n=t.options,i=n.xField,r=n.yField,a=n.color,o=n.tooltip,s=n.label,c=n.shape,l=void 0===c?"funnel":c,u=n.funnelStyle,h=n.state,f=jp(o,[i,r]),p=f.fields,d=f.formatter;Mp({chart:e,options:{type:"interval",xField:i,yField:Nd,colorField:i,tooltipFields:Object(E["C"])(p)&&p.concat([_d,Yd]),mapping:{shape:l,tooltip:d,color:a,style:u},label:s,state:h}});var g=vf(t.chart,"interval");return g.adjust("symmetric"),t}function Zd(t){var e=t.chart,n=t.options,i=n.isTransposed;return e.coordinate({type:"rect",actions:i?[]:[["transpose"],["scale",1,-1]]}),t}function Jd(t){var e=t.options,n=t.chart,i=e.maxSize,r=Object(E["s"])(n,["geometries","0","dataArray"],[]),a=Object(E["s"])(n,["options","data","length"]),o=Object(E["W"])(r,(function(t){return Object(E["s"])(t,["0","nextPoints","0","x"])*a-.5})),s=function(t,e,n,r){var a=i-(i-t[Nd])/2;return Object(F["a"])(Object(F["a"])({},r),{start:[o[e-1]||e-.5,a],end:[o[e-1]||e-.5,a+.05]})};return Ud(s)(t),t}function $d(t){return gf(Kd,Qd,Zd,Jd)(t)}function tg(t){var e,n=t.chart,i=t.options,r=i.data,a=void 0===r?[]:r,o=i.yField;return n.data(a),n.scale((e={},e[o]={sync:!0},e)),t}function eg(t){var e=t.chart,n=t.options,i=n.data,r=n.xField,a=n.yField,o=n.color,s=n.compareField,c=n.isTransposed,l=n.tooltip,u=n.maxSize,h=n.minSize,f=n.label,p=n.funnelStyle,d=n.state,g=n.showFacetTitle;return e.facet("mirror",{fields:[s],transpose:!c,padding:c?0:[32,0,0,0],showTitle:g,eachView:function(t,e){var n=c?e.rowIndex:e.columnIndex;c||t.coordinate({type:"rect",actions:[["transpose"],["scale",0===n?-1:1,-1]]});var g=qd(e.data,i,{yField:a,maxSize:u,minSize:h});t.data(g);var v=jp(l,[r,a,s]),y=v.fields,m=v.formatter,b=c?{offset:0===n?10:-23,position:0===n?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===n?"end":"start"}};Mp({chart:t,options:{type:"interval",xField:r,yField:Nd,colorField:r,tooltipFields:Object(E["C"])(y)&&y.concat([_d,Yd]),mapping:{shape:"funnel",tooltip:m,color:o,style:p},label:!1!==f&&pf({},b,f),state:d}})}}),t}function ng(t){var e=t.chart,n=t.index,i=t.options,r=i.conversionTag,a=i.isTransposed;(Object(E["M"])(n)?[e]:e.views).forEach((function(t,e){var o=Object(E["s"])(t,["geometries","0","dataArray"],[]),s=Object(E["s"])(t,["options","data","length"]),c=Object(E["W"])(o,(function(t){return Object(E["s"])(t,["0","nextPoints","0","x"])*s-.5})),l=function(t,i,o,s){var l=0===(n||e)?-1:1;return pf({},s,{start:[c[i-1]||i-.5,t[Nd]],end:[c[i-1]||i-.5,t[Nd]+.05],text:a?{style:{textAlign:"start"}}:{offsetX:!1!==r?l*r.offsetX:0,style:{textAlign:0===(n||e)?"end":"start"}}})};Ud(l)(pf({},{chart:t,options:i}))}))}function ig(t){var e=t.chart;return e.once("beforepaint",(function(){return ng(t)})),t}function rg(t){return gf(tg,eg,ig)(t)}function ag(t){var e=t.chart,n=t.options,i=n.data,r=void 0===i?[]:i,a=n.yField,o=Object(E["ib"])(r,(function(t,e){return t+(e[a]||0)}),0),s=Object(E["Z"])(r,a)[a],c=Object(E["W"])(r,(function(t,e){var n=[],i=[];if(t[Gd]=(t[a]||0)/o,e){var c=r[e-1][Vd],l=r[e-1][Wd];n[0]=c[3],i[0]=l[3],n[1]=c[2],i[1]=l[2]}else n[0]=-.5,i[0]=1,n[1]=.5,i[1]=1;return i[2]=i[1]-t[Gd],n[2]=(i[2]+1)/4,i[3]=i[2],n[3]=-n[2],t[Vd]=n,t[Wd]=i,t[_d]=(t[a]||0)/s,t[Yd]=[Object(E["s"])(r,[e-1,a]),t[a]],t}));return e.data(c),t}function og(t){var e=t.chart,n=t.options,i=n.xField,r=n.yField,a=n.color,o=n.tooltip,s=n.label,c=n.funnelStyle,l=n.state,u=jp(o,[i,r]),h=u.fields,f=u.formatter;return Mp({chart:e,options:{type:"polygon",xField:Vd,yField:Wd,colorField:i,tooltipFields:Object(E["C"])(h)&&h.concat([_d,Yd]),label:s,state:l,mapping:{tooltip:f,color:a,style:c}}}),t}function sg(t){var e=t.chart,n=t.options,i=n.isTransposed;return e.coordinate({type:"rect",actions:i?[["transpose"],["reflect","x"]]:[]}),t}function cg(t){var e=function(t,e,n,i){return Object(F["a"])(Object(F["a"])({},i),{start:[t[Vd][1],t[Wd][1]],end:[t[Vd][1]+.05,t[Wd][1]]})};return Ud(e)(t),t}function lg(t){return gf(ag,og,sg,cg)(t)}function ug(t){var e,n=t.chart,i=t.options,r=i.data,a=void 0===r?[]:r,o=i.yField;return n.data(a),n.scale((e={},e[o]={sync:!0},e)),t}function hg(t){var e=t.chart,n=t.options,i=n.seriesField,r=n.isTransposed,a=n.showFacetTitle;return e.facet("rect",{fields:[i],padding:[r?0:32,10,0,10],showTitle:a,eachView:function(e,n){$d(pf({},t,{chart:e,options:{data:n.data}}))}}),t}function fg(t){return gf(ug,hg)(t)}var pg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.rendering=!1,e}return Object(F["c"])(e,t),e.prototype.change=function(t){var e=this;if(!this.rendering){var n=t.seriesField,i=t.compareField,r=i?ng:Jd,a=this.context.view,o=n||i?a.views:[a];Object(E["W"])(o,(function(n,i){var a=n.getController("annotation"),o=Object(E["l"])(Object(E["s"])(a,["option"],[]),(function(t){var e=t.name;return e!==Hd}));a.clear(!0),Object(E["j"])(o,(function(t){"object"===typeof t&&n.annotation()[t.type](t)}));var s=Object(E["s"])(n,["filteredData"],n.getOptions().data);r({chart:n,index:i,options:Object(F["a"])(Object(F["a"])({},t),{filteredData:qd(s,s,t)})}),n.filterData(s),e.rendering=!0,n.render(!0)}))}this.rendering=!1},e}(Te),dg="funnel-conversion-tag",gg="funnel-afterrender",vg={trigger:"afterrender",action:"".concat(dg,":change")};function yg(t){var e,n=t.options,i=n.compareField,r=n.xField,a=n.yField,o=n.locale,s=n.funnelStyle,c=n.data,l=bp(o),u={label:i?{fields:[r,a,i,_d,Yd],formatter:function(t){return"".concat(t[a])}}:{fields:[r,a,_d,Yd],offset:0,position:"middle",formatter:function(t){return"".concat(t[r]," ").concat(t[a])}},tooltip:{title:r,formatter:function(t){return{name:t[r],value:t[a]}}},conversionTag:{formatter:function(t){return"".concat(l.get(["conversionTag","label"]),": ").concat(pd.apply(void 0,t[Yd]))}}};return(i||s)&&(e=function(t){return pf({},i&&{lineWidth:1,stroke:"#fff"},Object(E["I"])(s)?s(t):s)}),pf({options:u},t,{options:{funnelStyle:e,data:Object(E["e"])(c)}})}function mg(t){var e=t.options,n=e.compareField,i=e.dynamicHeight,r=e.seriesField;return r?fg(t):n?rg(t):i?lg(t):$d(t)}function bg(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,a=n.xField,o=n.yField;return gf(fp((e={},e[a]=i,e[o]=r,e)))(t)}function xg(t){var e=t.chart;return e.axis(!1),t}function Og(t){var e=t.chart,n=t.options,i=n.legend;return!1===i?e.legend(!1):e.legend(i),t}function jg(t){var e=t.chart,n=t.options,i=n.interactions,r=n.dynamicHeight;return Object(E["j"])(i,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})})),r?e.removeInteraction(gg):e.interaction(gg,{start:[Object(F["a"])(Object(F["a"])({},vg),{arg:n})]}),t}function wg(t){return gf(yg,mg,bg,xg,ap,jg,Og,sp,cp,pp())(t)}ze(dg,pg),oi(gg,{start:[vg]});var Cg,Mg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="funnel",e}return Object(F["c"])(e,t),e.getDefaultOptions=function(){return Xd},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return wg},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var i=mf(this.chart);Object(E["j"])(i,(function(i){e(i.getData())&&i.setState(t,n)}))},e.prototype.getStates=function(){var t=mf(this.chart),e=[];return Object(E["j"])(t,(function(t){var n=t.getData(),i=t.getStates();Object(E["j"])(i,(function(i){e.push({data:n,state:i,geometry:t.geometry,element:t})}))})),e},e.CONVERSATION_FIELD=Yd,e.PERCENT_FIELD=_d,e.TOTAL_PERCENT_FIELD=Gd,e}(zp),Sg="range",Ag="type",kg="percent",Fg="#f0f0f0",Eg="indicator-view",Ig="range-view",Tg={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(Cg={},Cg[Sg]={sync:"v"},Cg[kg]={sync:"v",tickCount:5,tickInterval:.2},Cg),animation:!1};function Pg(t,e){return t.map((function(n,i){var r;return r={},r[Sg]=n-(t[i-1]||0),r[Ag]="".concat(i),r[kg]=e,r}))}function Bg(t){var e;return[(e={},e[kg]=Object(E["c"])(t,0,1),e)]}function Lg(t,e){var n=Object(E["s"])(e,["ticks"],[]),i=Object(E["mb"])(n)?Object(E["ub"])(n):[0,Object(E["c"])(t,0,1),1];return i[0]||i.shift(),Pg(i,t)}function Dg(t){var e=t.chart,n=t.options,i=n.percent,r=n.range,a=n.radius,o=n.innerRadius,s=n.startAngle,c=n.endAngle,l=n.axis,u=n.indicator,h=n.gaugeStyle,f=n.type,p=n.meter,d=r.color,g=r.width;if(u){var v=Bg(i),y=e.createView({id:Eg});y.data(v),y.point().position("".concat(kg,"*1")).shape(u.shape||"gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:u}),y.coordinate("polar",{startAngle:s,endAngle:c,radius:o*a}),y.axis(kg,l),y.scale(kg,tf(l,Qh))}var m=Lg(i,n.range),b=e.createView({id:Ig});b.data(m);var x=Object(E["Q"])(d)?[d,Fg]:d,O=Fp({chart:b,options:{xField:"1",yField:Sg,seriesField:Ag,rawFields:[kg],isStack:!0,interval:{color:x,style:h,shape:"meter"===f?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:g,maxColumnWidth:g}}).ext,j=O.geometry;return j.customInfo({meter:p}),b.coordinate("polar",{innerRadius:o,radius:a,startAngle:s,endAngle:c}).transpose(),t}function Rg(t){var e;return gf(fp((e={range:{min:0,max:1,maxLimit:1,minLimit:0}},e[kg]={},e)))(t)}function zg(t,e){var n=t.chart,i=t.options,r=i.statistic,a=i.percent;if(n.getController("annotation").clear(!0),r){var o=r.content,s=void 0;o&&(s=pf({},{content:"".concat((100*a).toFixed(2),"%"),style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},o)),Lf(n,{statistic:Object(F["a"])(Object(F["a"])({},r),{content:s})},{percent:a})}return e&&n.render(!0),t}function _g(t){var e=t.chart,n=t.options,i=n.tooltip;return i?e.tooltip(pf({showTitle:!1,showMarkers:!1,containerTpl:'
    ',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(t,e){var n=Object(E["s"])(e,[0,"data",kg],0);return"".concat((100*n).toFixed(2),"%")}},i)):e.tooltip(!1),t}function Ng(t){var e=t.chart;return e.legend(!1),t}function Yg(t){return gf(cp,sp,Dg,Rg,_g,zg,op,pp(),Ng)(t)}Er("point","gauge-indicator",{draw:function(t,e){var n=t.customInfo,i=n.indicator,r=n.defaultColor,a=i,o=a.pointer,s=a.pin,c=e.addGroup(),l=this.parsePoint({x:0,y:0});return o&&c.addShape("line",{name:"pointer",attrs:Object(F["a"])({x1:l.x,y1:l.y,x2:t.x,y2:t.y,stroke:r},o.style)}),s&&c.addShape("circle",{name:"pin",attrs:Object(F["a"])({x:l.x,y:l.y,stroke:r},s.style)}),c}}),Er("interval","meter-gauge",{draw:function(t,e){var n=t.customInfo.meter,i=void 0===n?{}:n,r=i.steps,a=void 0===r?50:r,o=i.stepRatio,s=void 0===o?.5:o;a=a<1?1:a,s=Object(E["c"])(s,0,1);var c=this.coordinate,l=c.startAngle,u=c.endAngle,h=0;if(s>0&&s<1){var f=u-l;h=f/a/(s/(1-s)+1-1/a)}for(var p=h/(1-s)*s,d=e.addGroup(),g=this.coordinate.getCenter(),v=this.coordinate.getRadius(),y=wa.getAngle(t,this.coordinate),m=y.startAngle,b=y.endAngle,x=m;x1?c/(i-1):s.max),!n&&!i){var u=Wg(o);l=c/u}var h={},f=Object(E["w"])(a,r);Object(E["G"])(f)?Object(E["j"])(a,(function(t){var n=t[e],r=Vg(n,l,i),a="".concat(r[0],"-").concat(r[1]);Object(E["y"])(h,a)||(h[a]={range:r,count:0}),h[a].count+=1})):Object.keys(f).forEach((function(t){Object(E["j"])(f[t],(function(n){var a=n[e],o=Vg(a,l,i),s="".concat(o[0],"-").concat(o[1]),c="".concat(s,"-").concat(t);Object(E["y"])(h,c)||(h[c]={range:o,count:0},h[c][r]=t),h[c].count+=1}))}));var p=[];return Object(E["j"])(h,(function(t){p.push(t)})),p}var Hg="range",qg="count",Ug=pf({},zp.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function Kg(t){var e=t.chart,n=t.options,i=n.data,r=n.binField,a=n.binNumber,o=n.binWidth,s=n.color,c=n.stackField,l=n.legend,u=n.columnStyle,h=Xg(i,r,o,a,c);e.data(h);var f=pf({},t,{options:{xField:Hg,yField:qg,seriesField:c,isStack:!0,interval:{color:s,style:u}}});return Fp(f),l&&c?e.legend(c,l):e.legend(!1),t}function Qg(t){var e,n=t.options,i=n.xAxis,r=n.yAxis;return gf(fp((e={},e[Hg]=i,e[qg]=r,e)))(t)}function Zg(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis;return!1===i?e.axis(Hg,!1):e.axis(Hg,i),!1===r?e.axis(qg,!1):e.axis(qg,r),t}function Jg(t){var e=t.chart,n=t.options,i=n.label,r=vf(e,"interval");if(i){var a=i.callback,o=Object(F["f"])(i,["callback"]);r.label({fields:[qg],callback:a,cfg:Of(o)})}else r.label(!1);return t}function $g(t){return gf(cp,ip("columnStyle"),Kg,Qg,Zg,lp,Jg,ap,op,sp)(t)}var tv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="histogram",e}return Object(F["c"])(e,t),e.getDefaultOptions=function(){return Ug},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.binField,i=e.binNumber,r=e.binWidth,a=e.stackField;this.chart.changeData(Xg(t,n,r,i,a))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return $g},e}(zp),ev=pf({},zp.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1}),nv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.active=function(){var t=this.getView(),e=this.context.event;if(e.data){var n=e.data.items,i=t.geometries.filter((function(t){return"point"===t.type}));Object(E["j"])(i,(function(t){Object(E["j"])(t.elements,(function(t){var e=-1!==Object(E["n"])(n,(function(e){return e.data===t.data}));t.setState("active",e)}))}))}},e.prototype.reset=function(){var t=this.getView(),e=t.geometries.filter((function(t){return"point"===t.type}));Object(E["j"])(e,(function(t){Object(E["j"])(t.elements,(function(t){t.setState("active",!1)}))}))},e.prototype.getView=function(){return this.context.view},e}(Te);ze("marker-active",nv),oi("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var iv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e}return Object(F["c"])(e,t),e.getDefaultOptions=function(){return ev},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,i=e.options;Vp({chart:n,options:i}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Kp},e}(zp),rv=pf({},zp.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}}),av=[1,0,0,0,1,0,0,0,1];function ov(t,e){var n=e?Object(F["g"])([],e,!0):Object(F["g"])([],av,!0);return wa.transform(n,t)}var sv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.getActiveElements=function(){var t=wa.getDelegationObject(this.context);if(t){var e=this.context.view,n=t.component,i=t.item,r=n.get("field");if(r){var a=e.geometries[0].elements;return a.filter((function(t){return t.getModel().data[r]===i.value}))}}return[]},e.prototype.getActiveElementLabels=function(){var t=this.context.view,e=this.getActiveElements(),n=t.geometries[0].labelsContainer.getChildren();return n.filter((function(t){return e.find((function(e){return Object(E["H"])(e.getData(),t.get("data"))}))}))},e.prototype.transfrom=function(t){void 0===t&&(t=7.5);var e=this.getActiveElements(),n=this.getActiveElementLabels();e.forEach((function(e,i){var r=n[i],a=e.geometry.coordinate;if(a.isPolar&&a.isTransposed){var o=wa.getAngle(e.getModel(),a),s=o.startAngle,c=o.endAngle,l=(s+c)/2,u=t,h=u*Math.cos(l),f=u*Math.sin(l);e.shape.setMatrix(ov([["t",h,f]])),r.setMatrix(ov([["t",h,f]]))}}))},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(Te);function cv(t){var e,n=t.event,i=n.target;return i&&(e=i.get("element")),e}var lv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.getAnnotations=function(t){var e=t||this.context.view;return e.getController("annotation").option},e.prototype.getInitialAnnotation=function(){return this.initialAnnotation},e.prototype.init=function(){var t=this,e=this.context.view;e.removeInteraction("tooltip"),e.on("afterchangesize",(function(){var n=t.getAnnotations(e);t.initialAnnotation=n}))},e.prototype.change=function(t){var e=this.context,n=e.view,i=e.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var r=Object(E["s"])(i,["data","data"]);if(i.type.match("legend-item")){var a=wa.getDelegationObject(this.context),o=n.getGroupedFields()[0];if(a&&o){var s=a.item;r=n.getData().find((function(t){return t[o]===s.value}))}}if(r){var c=Object(E["s"])(t,"annotations",[]),l=Object(E["s"])(t,"statistic",{});n.getController("annotation").clear(!0),Object(E["j"])(c,(function(t){"object"===typeof t&&n.annotation()[t.type](t)})),Bf(n,{statistic:l,plotType:"pie"},r),n.render(!0)}var u=cv(this.context);u&&u.shape.toFront()},e.prototype.reset=function(){var t=this.context.view,e=t.getController("annotation");e.clear(!0);var n=this.getInitialAnnotation();Object(E["j"])(n,(function(e){t.annotation()[e.type](e)})),t.render(!0)},e}(Te),uv="pie-statistic";function hv(t,e){var n=null;return Object(E["j"])(t,(function(t){"number"===typeof t[e]&&(n+=t[e])})),n}function fv(t,e){var n;switch(t){case"inner":return n="-30%",Object(E["Q"])(e)&&e.endsWith("%")?.01*parseFloat(e)>0?n:e:e<0?e:n;case"outer":return n=12,Object(E["Q"])(e)&&e.endsWith("%")?.01*parseFloat(e)<0?n:e:e>0?e:n;default:return e}}function pv(t,e){return Object(E["k"])(rf(t,e),(function(t){return 0===t[e]}))}function dv(t){var e=t.chart,n=t.options,i=n.data,r=n.angleField,a=n.colorField,o=n.color,s=n.pieStyle,c=n.shape,l=rf(i,r);if(pv(l,r)){var u="$$percentage$$";l=l.map((function(t){var e;return Object(F["a"])(Object(F["a"])({},t),(e={},e[u]=1/l.length,e))})),e.data(l);var h=pf({},t,{options:{xField:"1",yField:u,seriesField:a,isStack:!0,interval:{color:o,shape:c,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});Fp(h)}else{e.data(l);h=pf({},t,{options:{xField:"1",yField:r,seriesField:a,isStack:!0,interval:{color:o,shape:c,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});Fp(h)}return t}function gv(t){var e,n=t.chart,i=t.options,r=i.meta,a=i.colorField,o=pf({},r);return n.scale(o,(e={},e[a]={type:"cat"},e)),t}function vv(t){var e=t.chart,n=t.options,i=n.radius,r=n.innerRadius,a=n.startAngle,o=n.endAngle;return e.coordinate({type:"theta",cfg:{radius:i,innerRadius:r,startAngle:a,endAngle:o}}),t}function yv(t){var e=t.chart,n=t.options,i=n.label,r=n.colorField,a=n.angleField,o=e.geometries[0];if(i){var s=i.callback,c=Object(F["f"])(i,["callback"]),l=Of(c);if(l.content){var u=l.content;l.content=function(t,n,i){var o=t[r],s=t[a],c=e.getScaleByField(a),l=null===c||void 0===c?void 0:c.scale(s);return Object(E["I"])(u)?u(Object(F["a"])(Object(F["a"])({},t),{percent:l}),n,i):Object(E["Q"])(u)?Df(u,{value:s,name:o,percentage:Object(E["M"])(l)&&!Object(E["K"])(s)?"".concat((100*l).toFixed(2),"%"):null}):u}}var h={inner:"",outer:"pie-outer",spider:"pie-spider"},f=l.type?h[l.type]:"pie-outer",p=l.layout?Object(E["C"])(l.layout)?l.layout:[l.layout]:[];l.layout=(f?[{type:f}]:[]).concat(p),o.label({fields:r?[a,r]:[a],callback:s,cfg:Object(F["a"])(Object(F["a"])({},l),{offset:fv(l.type,l.offset),type:"pie"})})}else o.label(!1);return t}function mv(t){var e=t.innerRadius,n=t.statistic,i=t.angleField,r=t.colorField,a=t.meta,o=t.locale,s=bp(o);if(e&&n){var c=pf({},rv.statistic,n),l=c.title,u=c.content;return!1!==l&&(l=pf({},{formatter:function(t){var e=t?t[r]:Object(E["K"])(l.content)?s.get(["statistic","total"]):l.content,n=Object(E["s"])(a,[r,"formatter"])||function(t){return t};return n(e)}},l)),!1!==u&&(u=pf({},{formatter:function(t,e){var n=t?t[i]:hv(e,i),r=Object(E["s"])(a,[i,"formatter"])||function(t){return t};return t||Object(E["K"])(u.content)?r(n):u.content}},u)),pf({},{statistic:{title:l,content:u}},t)}return t}function bv(t){var e=t.chart,n=t.options,i=mv(n),r=i.innerRadius,a=i.statistic;return e.getController("annotation").clear(!0),gf(pp())(t),r&&a&&Bf(e,{statistic:a,plotType:"pie"}),t}function xv(t){var e=t.chart,n=t.options,i=n.tooltip,r=n.colorField,a=n.angleField,o=n.data;if(!1===i)e.tooltip(i);else if(e.tooltip(pf({},i,{shared:!1})),pv(o,a)){var s=Object(E["s"])(i,"fields"),c=Object(E["s"])(i,"formatter");Object(E["G"])(Object(E["s"])(i,"fields"))&&(s=[r,a],c=c||function(t){return{name:t[r],value:Object(E["tb"])(t[a])}}),e.geometries[0].tooltip(s.join("*"),Cp(s,c))}return t}function Ov(t){var e=t.chart,n=t.options,i=mv(n),r=i.interactions,a=i.statistic,o=i.annotations;return Object(E["j"])(r,(function(t){var n,i;if(!1===t.enable)e.removeInteraction(t.type);else if("pie-statistic-active"===t.type){var r=[];(null===(n=t.cfg)||void 0===n?void 0:n.start)||(r=[{trigger:"element:mouseenter",action:"".concat(uv,":change"),arg:{statistic:a,annotations:o}}]),Object(E["j"])(null===(i=t.cfg)||void 0===i?void 0:i.start,(function(t){r.push(Object(F["a"])(Object(F["a"])({},t),{arg:{statistic:a,annotations:o}}))})),e.interaction(t.type,pf({},t.cfg,{start:r}))}else e.interaction(t.type,t.cfg||{})})),t}function jv(t){return gf(ip("pieStyle"),dv,gv,cp,vv,rp,xv,yv,lp,bv,Ov,sp)(t)}ze(uv,lv),oi("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),ze("pie-legend",sv),oi("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});var wv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e}return Object(F["c"])(e,t),e.getDefaultOptions=function(){return rv},e.prototype.changeData=function(t){this.chart.emit(I.BEFORE_CHANGE_DATA,Hi.fromData(this.chart,I.BEFORE_CHANGE_DATA,null));var e=this.options,n=this.options.angleField,i=rf(e.data,n),r=rf(t,n);pv(i,n)||pv(r,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(r),bv({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(I.AFTER_CHANGE_DATA,Hi.fromData(this.chart,I.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return jv},e}(zp),Cv=["#FAAD14","#E8EDF3"],Mv={percent:.2,color:Cv,animation:{}};function Sv(t){var e=Object(E["c"])(wf(t)?t:0,0,1);return[{current:"".concat(e),type:"current",percent:e},{current:"".concat(e),type:"target",percent:1}]}function Av(t){var e=t.chart,n=t.options,i=n.percent,r=n.progressStyle,a=n.color,o=n.barWidthRatio;e.data(Sv(i));var s=pf({},t,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:o,interval:{style:r,color:Object(E["Q"])(a)?[a,Cv[1]]:a},args:{zIndexReversed:!0,sortZIndex:!0}}});return Fp(s),e.tooltip(!1),e.axis(!1),e.legend(!1),t}function kv(t){var e=t.chart;return e.coordinate("rect").transpose(),t}function Fv(t){return gf(Av,fp({}),kv,sp,cp,pp())(t)}var Ev=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="process",e}return Object(F["c"])(e,t),e.getDefaultOptions=function(){return Mv},e.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData(Sv(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Fv},e}(zp);function Iv(t){var e=t.chart,n=t.options,i=n.innerRadius,r=n.radius;return e.coordinate("theta",{innerRadius:i,radius:r}),t}function Tv(t,e){var n=t.chart,i=t.options,r=i.innerRadius,a=i.statistic,o=i.percent,s=i.meta;if(n.getController("annotation").clear(!0),r&&a){var c=Object(E["s"])(s,["percent","formatter"])||function(t){return"".concat((100*t).toFixed(2),"%")},l=a.content;l&&(l=pf({},l,{content:Object(E["K"])(l.content)?c(o):l.content})),Bf(n,{statistic:Object(F["a"])(Object(F["a"])({},a),{content:l}),plotType:"ring-progress"},{percent:o})}return e&&n.render(!0),t}function Pv(t){return gf(Av,fp({}),Iv,Tv,sp,cp,pp())(t)}var Bv={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},Lv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ring-process",e}return Object(F["c"])(e,t),e.getDefaultOptions=function(){return Bv},e.prototype.changeData=function(t){this.chart.emit(I.BEFORE_CHANGE_DATA,Hi.fromData(this.chart,I.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(Sv(t)),Tv({chart:this.chart,options:this.options},!0),this.chart.emit(I.AFTER_CHANGE_DATA,Hi.fromData(this.chart,I.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Pv},e}(zp),Dv=n("4dce"),Rv={exp:Dv["regressionExp"],linear:Dv["regressionLinear"],loess:Dv["regressionLoess"],log:Dv["regressionLog"],poly:Dv["regressionPoly"],pow:Dv["regressionPow"],quad:Dv["regressionQuad"]};function zv(t,e){var n=10,i={regionStyle:[{position:{start:[t,"max"],end:["max",e]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[t,e]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",e],end:[t,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[t,e],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",e],offsetX:-n,offsetY:-n,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:n,offsetY:-n,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:n,offsetY:n,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",e],offsetX:-n,offsetY:n,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]};return i}var _v=function(t,e){var n=e.view,i=e.options,r=i.xField,a=i.yField,o=n.getScaleByField(r),s=n.getScaleByField(a),c=t.map((function(t){return n.getCoordinate().convert({x:o.scale(t[0]),y:s.scale(t[1])})}));return If(c,!1)},Nv=function(t){var e,n=t.options,i=n.xField,r=n.yField,a=n.data,o=n.regressionLine,s=o.type,c=void 0===s?"linear":s,l=o.algorithm,u=o.equation,h=null;if(l)e=Object(E["C"])(l)?l:l(a),h=u;else{var f=Rv[c]().x((function(t){return t[i]})).y((function(t){return t[r]}));e=f(a),h=Gv(c,e)}return[_v(e,t),h]},Yv=function(t){var e,n=t.meta,i=void 0===n?{}:n,r=t.xField,a=t.yField,o=t.data,s=o[0][r],c=o[0][a],l=s>0,u=c>0;function h(t,e){var n=Object(E["s"])(i,[t]);function r(t){return Object(E["s"])(n,t)}var a={};return"x"===e?(Object(E["M"])(s)&&(Object(E["M"])(r("min"))||(a["min"]=l?0:2*s),Object(E["M"])(r("max"))||(a["max"]=l?2*s:0)),a):(Object(E["M"])(c)&&(Object(E["M"])(r("min"))||(a["min"]=u?0:2*c),Object(E["M"])(r("max"))||(a["max"]=u?2*c:0)),a)}return Object(F["a"])(Object(F["a"])({},i),(e={},e[r]=Object(F["a"])(Object(F["a"])({},i[r]),h(r,"x")),e[a]=Object(F["a"])(Object(F["a"])({},i[a]),h(a,"y")),e))};function Gv(t,e){var n,i,r,a=function(t,e){return void 0===e&&(e=4),Math.round(t*Math.pow(10,e))/Math.pow(10,e)},o=function(t){return Number.isFinite(t)?a(t):"?"};switch(t){case"linear":return"y = ".concat(o(e.a),"x + ").concat(o(e.b),", R^2 = ").concat(o(e.rSquared));case"exp":return"y = ".concat(o(e.a),"e^(").concat(o(e.b),"x), R^2 = ").concat(o(e.rSquared));case"log":return"y = ".concat(o(e.a),"ln(x) + ").concat(o(e.b),", R^2 = ").concat(o(e.rSquared));case"quad":return"y = ".concat(o(e.a),"x^2 + ").concat(o(e.b),"x + ").concat(o(e.c),", R^2 = ").concat(o(e.rSquared));case"poly":for(var s="y = ".concat(o(null===(n=e.coefficients)||void 0===n?void 0:n[0])," + ").concat(o(null===(i=e.coefficients)||void 0===i?void 0:i[1]),"x + ").concat(o(null===(r=e.coefficients)||void 0===r?void 0:r[2]),"x^2"),c=3;c
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},by={appendPadding:2,tooltip:Object(F["a"])({},my),animation:{}};function xy(t){var e=t.chart,n=t.options,i=n.data,r=n.color,a=n.areaStyle,o=n.point,s=n.line,c=null===o||void 0===o?void 0:o.state,l=gy(i);e.data(l);var u=pf({},t,{options:{xField:vy,yField:yy,area:{color:r,style:a},line:s,point:o}}),h=pf({},u,{options:{tooltip:!1}}),f=pf({},u,{options:{tooltip:!1,state:c}});return Sp(u),Ep(h),Ip(f),e.axis(!1),e.legend(!1),t}function Oy(t){var e,n,i=t.options,r=i.xAxis,a=i.yAxis,o=i.data,s=gy(o);return gf(fp((e={},e[vy]=r,e[yy]=a,e),(n={},n[vy]={type:"cat"},n[yy]=ef(s,yy),n)))(t)}function jy(t){return gf(ip("areaStyle"),xy,Oy,ap,cp,sp,pp())(t)}var wy={appendPadding:2,tooltip:Object(F["a"])({},my),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},Cy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-area",e}return Object(F["c"])(e,t),e.getDefaultOptions=function(){return wy},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,i=e.options;Oy({chart:n,options:i}),n.changeData(gy(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return jy},e}(zp);function My(t){var e=t.chart,n=t.options,i=n.data,r=n.color,a=n.columnStyle,o=n.columnWidthRatio,s=gy(i);e.data(s);var c=pf({},t,{options:{xField:vy,yField:yy,widthRatio:o,interval:{style:a,color:r}}});return Fp(c),e.axis(!1),e.legend(!1),e.interaction("element-active"),t}function Sy(t){return gf(cp,ip("columnStyle"),My,Oy,ap,sp,pp())(t)}var Ay={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return"".concat(Object(E["s"])(e,[0,"data","y"],0))},containerTpl:'
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},ky={appendPadding:2,tooltip:Object(F["a"])({},Ay),animation:{}},Fy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-column",e}return Object(F["c"])(e,t),e.getDefaultOptions=function(){return ky},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,i=e.options;Oy({chart:n,options:i}),n.changeData(gy(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Sy},e}(zp);function Ey(t){var e=t.chart,n=t.options,i=n.data,r=n.color,a=n.lineStyle,o=n.point,s=null===o||void 0===o?void 0:o.state,c=gy(i);e.data(c);var l=pf({},t,{options:{xField:vy,yField:yy,line:{color:r,style:a},point:o}}),u=pf({},l,{options:{tooltip:!1,state:s}});return Ep(l),Ip(u),e.axis(!1),e.legend(!1),t}function Iy(t){return gf(Ey,Oy,cp,ap,sp,pp())(t)}var Ty=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-line",e}return Object(F["c"])(e,t),e.getDefaultOptions=function(){return by},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,i=e.options;Oy({chart:n,options:i}),n.changeData(gy(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Iy},e}(zp),Py={line:Kp,pie:jv,column:Ad,bar:Pd,area:$p,gauge:Yg,"tiny-line":Iy,"tiny-column":Sy,"tiny-area":jy,"ring-progress":Pv,progress:Fv,scatter:Jv,histogram:$g,funnel:wg,stock:py},By={line:iv,pie:wv,column:zd,bar:Dd,area:ed,gauge:Gg,"tiny-line":Ty,"tiny-column":Fy,"tiny-area":Cy,"ring-progress":Lv,progress:Ev,scatter:ty,histogram:tv,funnel:Mg,stock:dy},Ly={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function Dy(t,e,n){var i=By[t];if(i){var r=Py[t];r({chart:e,options:pf({},i.getDefaultOptions(),Object(E["s"])(Ly,t,{}),n)})}else console.error("could not find ".concat(t," plot"))}function Ry(t){var e=t.chart,n=t.options,i=n.views,r=n.legend;return Object(E["j"])(i,(function(t){var n=t.region,i=t.data,r=t.meta,a=t.axes,o=t.coordinate,s=t.interactions,c=t.annotations,l=t.tooltip,u=t.geometries,h=e.createView({region:n});h.data(i);var f={};a&&Object(E["j"])(a,(function(t,e){f[e]=tf(t,Qh)})),f=pf({},r,f),h.scale(f),a?Object(E["j"])(a,(function(t,e){h.axis(e,t)})):h.axis(!1),h.coordinate(o),Object(E["j"])(u,(function(t){var e=Mp({chart:h,options:t}).ext,n=t.adjust;n&&e.geometry.adjust(n)})),Object(E["j"])(s,(function(t){!1===t.enable?h.removeInteraction(t.type):h.interaction(t.type,t.cfg)})),Object(E["j"])(c,(function(t){h.annotation()[t.type](Object(F["a"])({},t))})),"boolean"===typeof t.animation?h.animate(!1):(h.animate(!0),Object(E["j"])(h.geometries,(function(e){e.animate(t.animation)}))),l&&(h.interaction("tooltip"),h.tooltip(l))})),r?Object(E["j"])(r,(function(t,n){e.legend(n,t)})):e.legend(!1),e.tooltip(n.tooltip),t}function zy(t){var e=t.chart,n=t.options,i=n.plots,r=n.data,a=void 0===r?[]:r;return Object(E["j"])(i,(function(t){var n=t.type,i=t.region,r=t.options,o=void 0===r?{}:r,s=t.top,c=o.tooltip;if(s)Dy(n,e,Object(F["a"])(Object(F["a"])({},o),{data:a}));else{var l=e.createView(Object(F["a"])({region:i},tf(o,Rp)));c&&l.interaction("tooltip"),Dy(n,l,Object(F["a"])({data:a},o))}})),t}function _y(t){var e=t.chart,n=t.options;return e.option("slider",n.slider),t}function Ny(t){return gf(sp,Ry,zy,op,sp,cp,ap,_y,pp())(t)}function Yy(t,e){var n,i=t.getModel(),r=i.data;return n=Object(E["C"])(r)?r[0][e]:r[e],n}function Gy(t){var e=yf(t);Object(E["j"])(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))}var Vy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.getAssociationItems=function(t,e){var n,i=this.context.event,r=e||{},a=r.linkField,o=r.dim,s=[];if(null===(n=i.data)||void 0===n?void 0:n.data){var c=i.data.data;Object(E["j"])(t,(function(t){var e,n,i=a;if("x"===o?i=t.getXScale().field:"y"===o?i=null===(e=t.getYScales().find((function(t){return t.field===i})))||void 0===e?void 0:e.field:i||(i=null===(n=t.getGroupScales()[0])||void 0===n?void 0:n.field),i){var r=Object(E["W"])(yf(t),(function(e){var n=!1,r=!1,a=Object(E["C"])(c)?Object(E["s"])(c[0],i):Object(E["s"])(c,i);return Yy(e,i)===a?n=!0:r=!0,{element:e,view:t,active:n,inactive:r}}));s.push.apply(s,r)}}))}return s},e.prototype.showTooltip=function(t){var e=_f(this.context.view),n=this.getAssociationItems(e,t);Object(E["j"])(n,(function(t){if(t.active){var e=t.element.shape.getCanvasBBox();t.view.showTooltip({x:e.minX+e.width/2,y:e.minY+e.height/2})}}))},e.prototype.hideTooltip=function(){var t=_f(this.context.view);Object(E["j"])(t,(function(t){t.hideTooltip()}))},e.prototype.active=function(t){var e=zf(this.context.view),n=this.getAssociationItems(e,t);Object(E["j"])(n,(function(t){var e=t.active,n=t.element;e&&n.setState("active",!0)}))},e.prototype.selected=function(t){var e=zf(this.context.view),n=this.getAssociationItems(e,t);Object(E["j"])(n,(function(t){var e=t.active,n=t.element;e&&n.setState("selected",!0)}))},e.prototype.highlight=function(t){var e=zf(this.context.view),n=this.getAssociationItems(e,t);Object(E["j"])(n,(function(t){var e=t.inactive,n=t.element;e&&n.setState("inactive",!0)}))},e.prototype.reset=function(){var t=zf(this.context.view);Object(E["j"])(t,(function(t){Gy(t)}))},e}(Te);ze("association",Vy),oi("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),oi("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),oi("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),oi("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var Wy,Xy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="mix",e}return Object(F["c"])(e,t),e.prototype.getSchemaAdaptor=function(){return Ny},e}(zp);function Hy(t,e){console.warn(t===Wy.DEV?"Plot '".concat(e,"' is in DEV stage, just give us issues."):t===Wy.BETA?"Plot '".concat(e,"' is in BETA stage, DO NOT use it in production env."):t===Wy.STABLE?"Plot '".concat(e,"' is in STABLE stage, import it by \"import { ").concat(e," } from '@antv/g2plot'\"."):"invalid Stage type.")}(function(t){t["DEV"]="DEV",t["BETA"]="BETA",t["STABLE"]="STABLE"})(Wy||(Wy={}));(function(){function t(){}Object.defineProperty(t,"MultiView",{get:function(){return Hy(Wy.STABLE,"MultiView"),Xy},enumerable:!1,configurable:!0})})();var qy="first-axes-view",Uy="second-axes-view",Ky="series-field-key";function Qy(t,e,n,i,r){var a=[];e.forEach((function(e){i.forEach((function(i){var r,o=(r={},r[t]=i[t],r[n]=e,r[e]=i[e],r);a.push(o)}))}));var o=Object.values(Object(E["w"])(a,n)),s=o[0],c=void 0===s?[]:s,l=o[1],u=void 0===l?[]:l;return r?[c.reverse(),u.reverse()]:[c,u]}function Zy(t){return"vertical"!==t}function Jy(t,e,n){var i=e[0],r=e[1],a=i.autoPadding,o=r.autoPadding,s=t.__axisPosition,c=s.layout,l=s.position;if(Zy(c)&&"top"===l&&(i.autoPadding=n.instance(a.top,0,a.bottom,a.left),r.autoPadding=n.instance(o.top,a.left,o.bottom,0)),Zy(c)&&"bottom"===l&&(i.autoPadding=n.instance(a.top,a.right/2+5,a.bottom,a.left),r.autoPadding=n.instance(o.top,o.right,o.bottom,a.right/2+5)),!Zy(c)&&"bottom"===l){var u=a.left>=o.left?a.left:o.left;i.autoPadding=n.instance(a.top,a.right,a.bottom/2+5,u),r.autoPadding=n.instance(a.bottom/2+5,o.right,o.bottom,u)}if(!Zy(c)&&"top"===l){u=a.left>=o.left?a.left:o.left;i.autoPadding=n.instance(a.top,a.right,0,u),r.autoPadding=n.instance(0,o.right,a.top,u)}}function $y(t){var e,n,i=t.chart,r=t.options,a=r.data,o=r.xField,s=r.yField,c=r.color,l=r.barStyle,u=r.widthRatio,h=r.legend,f=r.layout,p=Qy(o,s,Ky,a,Zy(f));h?i.legend(Ky,h):!1===h&&i.legend(!1);var d=p[0],g=p[1];Zy(f)?(e=i.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:qy}),e.coordinate().transpose().reflect("x"),n=i.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:Uy}),n.coordinate().transpose(),e.data(d),n.data(g)):(e=i.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:qy}),n=i.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:Uy}),n.coordinate().reflect("y"),e.data(d),n.data(g));var v=pf({},t,{chart:e,options:{widthRatio:u,xField:o,yField:s[0],seriesField:Ky,interval:{color:c,style:l}}});Fp(v);var y=pf({},t,{chart:n,options:{xField:o,yField:s[1],seriesField:Ky,widthRatio:u,interval:{color:c,style:l}}});return Fp(y),t}function tm(t){var e,n,i,r=t.options,a=t.chart,o=r.xAxis,s=r.yAxis,c=r.xField,l=r.yField,u=Rf(a,qy),h=Rf(a,Uy),f={};return Object(E["T"])((null===r||void 0===r?void 0:r.meta)||{}).map((function(t){Object(E["s"])(null===r||void 0===r?void 0:r.meta,[t,"alias"])&&(f[t]=r.meta[t].alias)})),a.scale((e={},e[Ky]={sync:!0,formatter:function(t){return Object(E["s"])(f,t,t)}},e)),fp((n={},n[c]=o,n[l[0]]=s[l[0]],n))(pf({},t,{chart:u})),fp((i={},i[c]=o,i[l[1]]=s[l[1]],i))(pf({},t,{chart:h})),t}function em(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,a=n.xField,o=n.yField,s=n.layout,c=Rf(e,qy),l=Rf(e,Uy);return"bottom"===(null===i||void 0===i?void 0:i.position)?l.axis(a,Object(F["a"])(Object(F["a"])({},i),{label:{formatter:function(){return""}}})):l.axis(a,!1),!1===i?c.axis(a,!1):c.axis(a,Object(F["a"])({position:Zy(s)?"top":"bottom"},i)),!1===r?(c.axis(o[0],!1),l.axis(o[1],!1)):(c.axis(o[0],r[o[0]]),l.axis(o[1],r[o[1]])),e.__axisPosition={position:c.getOptions().axes[a].position,layout:s},t}function nm(t){var e=t.chart;return op(pf({},t,{chart:Rf(e,qy)})),op(pf({},t,{chart:Rf(e,Uy)})),t}function im(t){var e=t.chart,n=t.options,i=n.yField,r=n.yAxis;return dp(pf({},t,{chart:Rf(e,qy),options:{yAxis:r[i[0]]}})),dp(pf({},t,{chart:Rf(e,Uy),options:{yAxis:r[i[1]]}})),t}function rm(t){var e=t.chart;return cp(pf({},t,{chart:Rf(e,qy)})),cp(pf({},t,{chart:Rf(e,Uy)})),cp(t),t}function am(t){var e=t.chart;return sp(pf({},t,{chart:Rf(e,qy)})),sp(pf({},t,{chart:Rf(e,Uy)})),t}function om(t){var e,n,i=this,r=t.chart,a=t.options,o=a.label,s=a.yField,c=a.layout,l=Rf(r,qy),u=Rf(r,Uy),h=vf(l,"interval"),f=vf(u,"interval");if(o){var p=o.callback,d=Object(F["f"])(o,["callback"]);d.position||(d.position="middle"),void 0===d.offset&&(d.offset=2);var g=Object(F["a"])({},d);if(Zy(c)){var v=(null===(e=g.style)||void 0===e?void 0:e.textAlign)||("middle"===d.position?"center":"left");d.style=pf({},d.style,{textAlign:v});var y={left:"right",right:"left",center:"center"};g.style=pf({},g.style,{textAlign:y[v]})}else{var m={top:"bottom",bottom:"top",middle:"middle"};"string"===typeof d.position?d.position=m[d.position]:"function"===typeof d.position&&(d.position=function(){for(var t=[],e=0;e1?"".concat(e,"_").concat(n):"".concat(e)}function jm(t){var e=t.data,n=t.xField,i=t.measureField,r=t.rangeField,a=t.targetField,o=t.layout,s=[],c=[];e.forEach((function(t,e){var o=[t[r]].flat();o.sort((function(t,e){return t-e})),o.forEach((function(i,a){var c,l=0===a?i:o[a]-o[a-1];s.push((c={rKey:"".concat(r,"_").concat(a)},c[n]=n?t[n]:String(e),c[r]=l,c))}));var l=[t[i]].flat();l.forEach((function(r,a){var o;s.push((o={mKey:Om(l,i,a)},o[n]=n?t[n]:String(e),o[i]=r,o))}));var u=[t[a]].flat();u.forEach((function(i,r){var o;s.push((o={tKey:Om(u,a,r)},o[n]=n?t[n]:String(e),o[a]=i,o))})),c.push(t[r],t[i],t[a])}));var l=Math.min.apply(Math,c.flat(1/0)),u=Math.max.apply(Math,c.flat(1/0));return l=l>0?0:l,"vertical"===o&&s.reverse(),{min:l,max:u,ds:s}}function wm(t){var e=t.chart,n=t.options,i=n.bulletStyle,r=n.targetField,a=n.rangeField,o=n.measureField,s=n.xField,c=n.color,l=n.layout,u=n.size,h=n.label,f=jm(n),p=f.min,d=f.max,g=f.ds;e.data(g);var v=pf({},t,{options:{xField:s,yField:a,seriesField:"rKey",isStack:!0,label:Object(E["s"])(h,"range"),interval:{color:Object(E["s"])(c,"range"),style:Object(E["s"])(i,"range"),size:Object(E["s"])(u,"range")}}});Fp(v),e.geometries[0].tooltip(!1);var y=pf({},t,{options:{xField:s,yField:o,seriesField:"mKey",isStack:!0,label:Object(E["s"])(h,"measure"),interval:{color:Object(E["s"])(c,"measure"),style:Object(E["s"])(i,"measure"),size:Object(E["s"])(u,"measure")}}});Fp(y);var m=pf({},t,{options:{xField:s,yField:r,seriesField:"tKey",label:Object(E["s"])(h,"target"),point:{color:Object(E["s"])(c,"target"),style:Object(E["s"])(i,"target"),size:Object(E["I"])(Object(E["s"])(u,"target"))?function(t){return Object(E["s"])(u,"target")(t)/2}:Object(E["s"])(u,"target")/2,shape:"horizontal"===l?"line":"hyphen"}}});return Ip(m),"horizontal"===l&&e.coordinate().transpose(),Object(F["a"])(Object(F["a"])({},t),{ext:{data:{min:p,max:d}}})}function Cm(t){var e,n,i=t.options,r=t.ext,a=i.xAxis,o=i.yAxis,s=i.targetField,c=i.rangeField,l=i.measureField,u=i.xField,h=r.data;return gf(fp((e={},e[u]=a,e[l]=o,e),(n={},n[l]={min:null===h||void 0===h?void 0:h.min,max:null===h||void 0===h?void 0:h.max,sync:!0},n[s]={sync:"".concat(l)},n[c]={sync:"".concat(l)},n)))(t)}function Mm(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,a=n.xField,o=n.measureField,s=n.rangeField,c=n.targetField;return e.axis("".concat(s),!1),e.axis("".concat(c),!1),!1===i?e.axis("".concat(a),!1):e.axis("".concat(a),i),!1===r?e.axis("".concat(o),!1):e.axis("".concat(o),r),t}function Sm(t){var e=t.chart,n=t.options,i=n.legend;return e.removeInteraction("legend-filter"),e.legend(i),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),t}function Am(t){var e=t.chart,n=t.options,i=n.label,r=n.measureField,a=n.targetField,o=n.rangeField,s=e.geometries,c=s[0],l=s[1],u=s[2];return Object(E["s"])(i,"range")?c.label("".concat(o),Object(F["a"])({layout:[{type:"limit-in-plot"}]},Of(i.range))):c.label(!1),Object(E["s"])(i,"measure")?l.label("".concat(r),Object(F["a"])({layout:[{type:"limit-in-plot"}]},Of(i.measure))):l.label(!1),Object(E["s"])(i,"target")?u.label("".concat(a),Object(F["a"])({layout:[{type:"limit-in-plot"}]},Of(i.target))):u.label(!1),t}function km(t){gf(wm,Cm,Mm,Sm,cp,Am,ap,op,sp)(t)}var Fm=pf({},zp.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}}),Em=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e}Object(F["c"])(e,t),e.getDefaultOptions=function(){return Fm},e.prototype.changeData=function(t){this.updateOption({data:t});var e=jm(this.options),n=e.min,i=e.max,r=e.ds;Cm({options:this.options,ext:{data:{min:n,max:i}},chart:this.chart}),this.chart.changeData(r)},e.prototype.getSchemaAdaptor=function(){return km},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}}(zp),{y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(t){return t.id},source:function(t){return t.source},target:function(t){return t.target},sourceWeight:function(t){return t.value||1},targetWeight:function(t){return t.value||1},sortBy:null});function Im(t,e,n){Object(E["r"])(t,(function(t,i){t.inEdges=e.filter((function(t){return"".concat(n.target(t))==="".concat(i)})),t.outEdges=e.filter((function(t){return"".concat(n.source(t))==="".concat(i)})),t.edges=t.outEdges.concat(t.inEdges),t.frequency=t.edges.length,t.value=0,t.inEdges.forEach((function(e){t.value+=n.targetWeight(e)})),t.outEdges.forEach((function(e){t.value+=n.sourceWeight(e)}))}))}function Tm(t,e){var n={weight:function(t,e){return e.value-t.value},frequency:function(t,e){return e.frequency-t.frequency},id:function(t,n){return"".concat(e.id(t)).localeCompare("".concat(e.id(n)))}},i=n[e.sortBy];!i&&Object(E["I"])(e.sortBy)&&(i=e.sortBy),i&&t.sort(i)}function Pm(t,e){var n=t.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(e.weight){var i=e.nodePaddingRatio;if(i<0||i>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var r=i/(2*n),a=e.nodeWidthRatio;if(a<=0||a>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var o=0;t.forEach((function(t){o+=t.value})),t.forEach((function(t){t.weight=t.value/o,t.width=t.weight*(1-i),t.height=a})),t.forEach((function(n,i){for(var o=0,s=i-1;s>=0;s--)o+=t[s].width+2*r;var c=n.minX=r+o,l=n.maxX=n.minX+n.width,u=n.minY=e.y-a/2,h=n.maxY=u+a;n.x=[c,l,l,c],n.y=[u,u,h,h]}))}else{var s=1/n;t.forEach((function(t,n){t.x=(n+.5)*s,t.y=e.y}))}return t}function Bm(t,e,n){if(n.weight){var i={};Object(E["r"])(t,(function(t,e){i[e]=t.value})),e.forEach((function(e){var r=n.source(e),a=n.target(e),o=t[r],s=t[a];if(o&&s){var c=i[r],l=n.sourceWeight(e),u=o.minX+(o.value-c)/o.value*o.width,h=u+l/o.value*o.width;i[r]-=l;var f=i[a],p=n.targetWeight(e),d=s.minX+(s.value-f)/s.value*s.width,g=d+p/s.value*s.width;i[a]-=p;var v=n.y;e.x=[u,h,d,g],e.y=[v,v,v,v],e.source=o,e.target=s}}))}else e.forEach((function(e){var i=t[n.source(e)],r=t[n.target(e)];i&&r&&(e.x=[i.x,r.x],e.y=[i.y,r.y],e.source=i,e.target=r)}));return e}function Lm(t){return Object(E["b"])({},Em,t)}function Dm(t,e){var n=Lm(t),i={},r=e.nodes,a=e.links;r.forEach((function(t){var e=n.id(t);i[e]=t})),Im(i,a,n),Tm(r,n);var o=Pm(r,n),s=Bm(i,a,n);return{nodes:o,links:s}}var Rm="x",zm="y",_m="name",Nm="source",Ym={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(t,e){var n=(t[0]+t[1])/2,i=n>.5?-4:4;return{offsetX:i,content:e}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(t){return!Object(E["s"])(t,[0,"data","isNode"])},formatter:function(t){var e=t.source,n=t.target,i=t.value;return{name:"".concat(e," -> ").concat(n),value:i}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function Gm(t){var e=t.options,n=e.data,i=e.sourceField,r=e.targetField,a=e.weightField,o=e.nodePaddingRatio,s=e.nodeWidthRatio,c=e.rawFields,l=void 0===c?[]:c,u=nf(n,i,r,a),h=Dm({weight:!0,nodePaddingRatio:o,nodeWidthRatio:s},u),f=h.nodes,p=h.links,d=f.map((function(t){return Object(F["a"])(Object(F["a"])({},tf(t,Object(F["g"])(["id","x","y","name"],l,!0))),{isNode:!0})})),g=p.map((function(t){return Object(F["a"])(Object(F["a"])({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},tf(t,Object(F["g"])(["x","y","value"],l,!0))),{isNode:!1})}));return Object(F["a"])(Object(F["a"])({},t),{ext:Object(F["a"])(Object(F["a"])({},t.ext),{chordData:{nodesData:d,edgesData:g}})})}function Vm(t){var e,n=t.chart;return n.scale((e={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}},e[_m]={sync:"color"},e[Nm]={sync:"color"},e)),t}function Wm(t){var e=t.chart;return e.axis(!1),t}function Xm(t){var e=t.chart;return e.legend(!1),t}function Hm(t){var e=t.chart,n=t.options,i=n.tooltip;return e.tooltip(i),t}function qm(t){var e=t.chart;return e.coordinate("polar").reflect("y"),t}function Um(t){var e=t.chart,n=t.options,i=t.ext.chordData.nodesData,r=n.nodeStyle,a=n.label,o=n.tooltip,s=e.createView();return s.data(i),Tp({chart:s,options:{xField:Rm,yField:zm,seriesField:_m,polygon:{style:r},label:a,tooltip:o}}),t}function Km(t){var e=t.chart,n=t.options,i=t.ext.chordData.edgesData,r=n.edgeStyle,a=n.tooltip,o=e.createView();o.data(i);var s={xField:Rm,yField:zm,seriesField:Nm,edge:{style:r,shape:"arc"},tooltip:a};return Ap({chart:o,options:s}),t}function Qm(t){var e=t.chart,n=t.options,i=n.animation;return Nf(e,i,bf(e)),t}function Zm(t){return gf(cp,Gm,qm,Vm,Wm,Xm,Hm,Km,Um,op,lp,Qm)(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="chord",e}Object(F["c"])(e,t),e.getDefaultOptions=function(){return Ym},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Zm}})(zp);var Jm=["x","y","r","name","value","path","depth"],$m={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}},tb=4,eb=0,nb=5,ib="drilldown-bread-crumb",rb={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},ab="hierarchy-data-transform-params",ob=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="drill-down",e.historyCache=[],e.breadCrumbGroup=null,e.breadCrumbCfg=rb,e}return Object(F["c"])(e,t),e.prototype.click=function(){var t=Object(E["s"])(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},e.prototype.resetPosition=function(){if(this.breadCrumbGroup){var t=this.context.view.getCoordinate(),e=this.breadCrumbGroup,n=e.getBBox(),i=this.getButtonCfg().position,r={x:t.start.x,y:t.end.y-(n.height+2*nb)};t.isPolar&&(r={x:0,y:0}),"bottom-left"===i&&(r={x:t.start.x,y:t.start.y});var a=wa.transform(null,[["t",r.x+eb,r.y+n.height+nb]]);e.setMatrix(a)}},e.prototype.back=function(){Object(E["mb"])(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},e.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},e.prototype.drill=function(t){var e=this.context.view,n=Object(E["s"])(e,["interactions","drill-down","cfg","transformData"],(function(t){return t})),i=n(Object(F["a"])({data:t.data},t[ab]));e.changeData(i);var r=[],a=t;while(a){var o=a.data;r.unshift({id:"".concat(o.name,"_").concat(a.height,"_").concat(a.depth),name:o.name,children:n(Object(F["a"])({data:o},t[ab]))}),a=a.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(r)},e.prototype.backTo=function(t){if(t&&!(t.length<=0)){var e=this.context.view,n=Object(E["U"])(t).children;e.changeData(n),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},e.prototype.getButtonCfg=function(){var t=this.context.view,e=Object(E["s"])(t,["interactions","drill-down","cfg","drillDownConfig"]);return pf(this.breadCrumbCfg,null===e||void 0===e?void 0:e.breadCrumb,this.cfg)},e.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},e.prototype.drawBreadCrumbGroup=function(){var t=this,e=this.getButtonCfg(),n=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:ib});var i=0;n.forEach((function(r,a){var o=t.breadCrumbGroup.addShape({type:"text",id:r.id,name:"".concat(ib,"_").concat(r.name,"_text"),attrs:Object(F["a"])(Object(F["a"])({text:0!==a||Object(E["K"])(e.rootText)?r.name:e.rootText},e.textStyle),{x:i,y:0})}),s=o.getBBox();if(i+=s.width+tb,o.on("click",(function(e){var i,r=e.target.get("id");if(r!==(null===(i=Object(E["U"])(n))||void 0===i?void 0:i.id)){var a=n.slice(0,n.findIndex((function(t){return t.id===r}))+1);t.backTo(a)}})),o.on("mouseenter",(function(t){var i,r=t.target.get("id");r!==(null===(i=Object(E["U"])(n))||void 0===i?void 0:i.id)?o.attr(e.activeTextStyle):o.attr({cursor:"default"})})),o.on("mouseleave",(function(){o.attr(e.textStyle)})),a0&&n*n>i*i+r*r}function pb(t,e){for(var n=0;no?(i=(l+o-r)/(2*l),a=Math.sqrt(Math.max(0,o/l-i*i)),n.x=t.x-i*s-a*c,n.y=t.y-i*c+a*s):(i=(l+r-o)/(2*l),a=Math.sqrt(Math.max(0,r/l-i*i)),n.x=e.x+i*s-a*c,n.y=e.y+i*c+a*s)):(n.x=e.x+n.r,n.y=e.y)}function bb(t,e){var n=t.r+e.r-1e-6,i=e.x-t.x,r=e.y-t.y;return n>0&&n*n>i*i+r*r}function xb(t){var e=t._,n=t.next._,i=e.r+n.r,r=(e.x*n.r+n.x*e.r)/i,a=(e.y*n.r+n.y*e.r)/i;return r*r+a*a}function Ob(t){this._=t,this.next=null,this.previous=null}function jb(t){if(!(r=(t=sb(t)).length))return 0;var e,n,i,r,a,o,s,c,l,u,h;if(e=t[0],e.x=0,e.y=0,!(r>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(r>2))return e.r+n.r;mb(n,e,i=t[2]),e=new Ob(e),n=new Ob(n),i=new Ob(i),e.next=i.previous=n,n.next=e.previous=i,i.next=n.previous=e;t:for(s=3;s=0)e+=n[i].value;else e=1;t.value=e}var Bb=function(){return this.eachAfter(Pb)},Lb=function(t,e){let n=-1;for(const i of this)t.call(e,i,++n,this);return this},Db=function(t,e){var n,i,r=this,a=[r],o=-1;while(r=a.pop())if(t.call(e,r,++o,this),n=r.children)for(i=n.length-1;i>=0;--i)a.push(n[i]);return this},Rb=function(t,e){var n,i,r,a=this,o=[a],s=[],c=-1;while(a=o.pop())if(s.push(a),n=a.children)for(i=0,r=n.length;i=0)n+=i[r].value;e.value=n}))},Nb=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},Yb=function(t){var e=this,n=Gb(e,t),i=[e];while(e!==n)e=e.parent,i.push(e);var r=i.length;while(t!==n)i.splice(r,0,t),t=t.parent;return i};function Gb(t,e){if(t===e)return t;var n=t.ancestors(),i=e.ancestors(),r=null;t=n.pop(),e=i.pop();while(t===e)r=t,t=n.pop(),e=i.pop();return r}var Vb=function(){var t=this,e=[t];while(t=t.parent)e.push(t);return e},Wb=function(){return Array.from(this)},Xb=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},Hb=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},qb=function*(){var t,e,n,i,r=this,a=[r];do{t=a.reverse(),a=[];while(r=t.pop())if(yield r,e=r.children)for(n=0,i=e.length;n=0;--a)c.push(i=r[a]=new tx(r[a])),i.parent=n,i.depth=n.depth+1;return s.eachBefore($b)}function Kb(){return Ub(this).eachBefore(Jb)}function Qb(t){return t.children}function Zb(t){return Array.isArray(t)?t[1]:null}function Jb(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function $b(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function tx(t){this.data=t,this.depth=this.height=0,this.parent=null}tx.prototype=Ub.prototype={constructor:tx,count:Bb,each:Lb,eachAfter:Rb,eachBefore:Db,find:zb,sum:_b,sort:Nb,path:Yb,ancestors:Vb,descendants:Wb,leaves:Xb,links:Hb,copy:Kb,[Symbol.iterator]:qb};var ex="nodeIndex",nx="childNodeCount",ix="nodeAncestor",rx="Invalid field: it must be a string!";function ax(t,e){var n=t.field,i=t.fields;if(Object(E["Q"])(n))return n;if(Object(E["C"])(n))return console.warn(rx),n[0];if(console.warn("".concat(rx," will try to get fields instead.")),Object(E["Q"])(i))return i;if(Object(E["C"])(i)&&i.length)return i[0];if(e)return e;throw new TypeError(rx)}function ox(t){var e,n,i=[];t&&t.each?t.each((function(t){var r,a;t.parent!==e?(e=t.parent,n=0):n+=1;var o=Object(E["l"])(((null===(r=t.ancestors)||void 0===r?void 0:r.call(t))||[]).map((function(t){return i.find((function(e){return e.name===t.name}))||t})),(function(e){var n=e.depth;return n>0&&n1)i="".concat(null===(e=o.parent.data)||void 0===e?void 0:e.name," / ").concat(i),o=o.parent;if(a&&t.depth>2)return null;var c=pf({},t.data,Object(F["a"])(Object(F["a"])(Object(F["a"])({},tf(t.data,r)),{path:i}),t));c.ext=n,c[ab]={hierarchyConfig:n,rawFields:r,enableDrillDown:a},s.push(c)})),s}function ux(t,e,n){var i=Af([t,e]),r=i[0],a=i[1],o=i[2],s=i[3],c=n.width,l=n.height,u=c-(s+a),h=l-(r+o),f=Math.min(u,h),p=(u-f)/2,d=(h-f)/2,g=r+d,v=a+p,y=o+d,m=s+p,b=[g,v,y,m],x=f<0?0:f;return{finalPadding:b,finalSize:x}}function hx(t){var e=t.chart,n=Math.min(e.viewBBox.width,e.viewBBox.height);return pf({options:{size:function(t){var e=t.r;return e*n}}},t)}function fx(t){var e=t.options,n=t.chart,i=n.viewBBox,r=e.padding,a=e.appendPadding,o=e.drilldown,s=a;if(null===o||void 0===o?void 0:o.enabled){var c=Sf(n.appendPadding,Object(E["s"])(o,["breadCrumb","position"]));s=Af([c,a])}var l=ux(r,s,i).finalPadding;return n.padding=l,n.appendPadding=0,t}function px(t){var e=t.chart,n=t.options,i=e.padding,r=e.appendPadding,a=n.color,o=n.colorField,s=n.pointStyle,c=n.hierarchyConfig,l=n.sizeField,u=n.rawFields,h=void 0===u?[]:u,f=n.drilldown,p=lx({data:n.data,hierarchyConfig:c,enableDrillDown:null===f||void 0===f?void 0:f.enabled,rawFields:h});e.data(p);var d=e.viewBBox,g=ux(i,r,d).finalSize,v=function(t){var e=t.r;return e*g};return l&&(v=function(t){return t[l]*g}),Ip(pf({},t,{options:{xField:"x",yField:"y",seriesField:o,sizeField:l,rawFields:Object(F["g"])(Object(F["g"])([],Jm,!0),h,!0),point:{color:a,style:s,shape:"circle",size:v}}})),t}function dx(t){return gf(fp({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(t)}function gx(t){var e=t.chart,n=t.options,i=n.tooltip;if(!1===i)e.tooltip(!1);else{var r=i;Object(E["s"])(i,"fields")||(r=pf({},{customItems:function(t){return t.map((function(t){var n=Object(E["s"])(e.getOptions(),"scales"),i=Object(E["s"])(n,["name","formatter"],(function(t){return t})),r=Object(E["s"])(n,["value","formatter"],(function(t){return t}));return Object(F["a"])(Object(F["a"])({},t),{name:i(t.data.name),value:r(t.data.value)})}))}},r)),e.tooltip(r)}return t}function vx(t){var e=t.chart;return e.axis(!1),t}function yx(t){var e=t.drilldown,n=t.interactions,i=void 0===n?[]:n;return(null===e||void 0===e?void 0:e.enabled)?pf({},t,{interactions:Object(F["g"])(Object(F["g"])([],i,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:lx,enableDrillDown:!0}}],!1)}):t}function mx(t){var e=t.chart,n=t.options;return op({chart:e,options:yx(n)}),t}function bx(t){return gf(ip("pointStyle"),hx,fx,cp,dx,px,vx,rp,gx,mx,sp,pp())(t)}function xx(t){var e=Object(E["s"])(t,["event","data","data"],{});return Object(E["C"])(e.children)&&e.children.length>0}function Ox(t){var e=t.view.getCoordinate(),n=e.innerRadius;if(n){var i=t.event,r=i.x,a=i.y,o=e.center,s=o.x,c=o.y,l=e.getRadius()*n,u=Math.sqrt(Math.pow(s-r,2)+Math.pow(c-a,2));return u-1)||Cf(e,h,f)})),t.getRootView().render(!0)}};function Rx(t){var e,n=t.options,i=n.geometryOptions,r=void 0===i?[]:i,a=n.xField,o=n.yField,s=Object(E["k"])(r,(function(t){var e=t.geometry;return e===wx.Line||void 0===e}));return pf({},{options:{geometryOptions:[],meta:(e={},e[a]={type:"cat",sync:!0,range:s?[0,1]:void 0},e),tooltip:{showMarkers:s,showCrosshairs:s,shared:!0,crosshairs:{type:"x"}},interactions:s?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},t,{options:{yAxis:Tx(o,n.yAxis),geometryOptions:[Ix(a,o[0],r[0]),Ix(a,o[1],r[1])],annotations:Tx(o,n.annotations)}})}function zx(t){var e,n,i=t.chart,r=t.options,a=r.geometryOptions,o={line:0,column:1},s=[{type:null===(e=a[0])||void 0===e?void 0:e.geometry,id:Cx},{type:null===(n=a[1])||void 0===n?void 0:n.geometry,id:Mx}];return s.sort((function(t,e){return-o[t.type]+o[e.type]})).forEach((function(t){return i.createView({id:t.id})})),t}function _x(t){var e=t.chart,n=t.options,i=n.xField,r=n.yField,a=n.geometryOptions,o=n.data,s=n.tooltip,c=[Object(F["a"])(Object(F["a"])({},a[0]),{id:Cx,data:o[0],yField:r[0]}),Object(F["a"])(Object(F["a"])({},a[1]),{id:Mx,data:o[1],yField:r[1]})];return c.forEach((function(t){var n=t.id,r=t.data,a=t.yField,o=Ex(t)&&t.isPercent,c=o?_p(r,a,i,a):r,l=Rf(e,n).data(c),u=o?Object(F["a"])({formatter:function(e){return{name:e[t.seriesField]||a,value:(100*Number(e[a])).toFixed(2)+"%"}}},s):s;Bx({chart:l,options:{xField:i,yField:a,tooltip:u,geometryOption:t}})})),t}function Nx(t){var e,n=t.chart,i=t.options,r=i.geometryOptions,a=(null===(e=n.getTheme())||void 0===e?void 0:e.colors10)||[],o=0;return n.once("beforepaint",(function(){Object(E["j"])(r,(function(t,e){var i=Rf(n,0===e?Cx:Mx);if(!t.color){var r=i.getGroupScales(),s=Object(E["s"])(r,[0,"values","length"],1),c=a.slice(o,o+s).concat(0===e?[]:a);i.geometries.forEach((function(e){t.seriesField?e.color(t.seriesField,c):e.color(c[0])})),o+=s}})),n.render(!0)})),t}function Yx(t){var e,n,i=t.chart,r=t.options,a=r.xAxis,o=r.yAxis,s=r.xField,c=r.yField;return fp((e={},e[s]=a,e[c[0]]=o[0],e))(pf({},t,{chart:Rf(i,Cx)})),fp((n={},n[s]=a,n[c[1]]=o[1],n))(pf({},t,{chart:Rf(i,Mx)})),t}function Gx(t){var e=t.chart,n=t.options,i=Rf(e,Cx),r=Rf(e,Mx),a=n.xField,o=n.yField,s=n.xAxis,c=n.yAxis;return e.axis(a,!1),e.axis(o[0],!1),e.axis(o[1],!1),i.axis(a,s),i.axis(o[0],Px(c[0],jx.Left)),r.axis(a,!1),r.axis(o[1],Px(c[1],jx.Right)),t}function Vx(t){var e=t.chart,n=t.options,i=n.tooltip,r=Rf(e,Cx),a=Rf(e,Mx);return e.tooltip(i),r.tooltip({shared:!0}),a.tooltip({shared:!0}),t}function Wx(t){var e=t.chart;return op(pf({},t,{chart:Rf(e,Cx)})),op(pf({},t,{chart:Rf(e,Mx)})),t}function Xx(t){var e=t.chart,n=t.options,i=n.annotations,r=Object(E["s"])(i,[0]),a=Object(E["s"])(i,[1]);return pp(r)(pf({},t,{chart:Rf(e,Cx),options:{annotations:r}})),pp(a)(pf({},t,{chart:Rf(e,Mx),options:{annotations:a}})),t}function Hx(t){var e=t.chart;return cp(pf({},t,{chart:Rf(e,Cx)})),cp(pf({},t,{chart:Rf(e,Mx)})),cp(t),t}function qx(t){var e=t.chart;return sp(pf({},t,{chart:Rf(e,Cx)})),sp(pf({},t,{chart:Rf(e,Mx)})),t}function Ux(t){var e=t.chart,n=t.options,i=n.yAxis;return dp(pf({},t,{chart:Rf(e,Cx),options:{yAxis:i[0]}})),dp(pf({},t,{chart:Rf(e,Mx),options:{yAxis:i[1]}})),t}function Kx(t){var e=t.chart,n=t.options,i=n.legend,r=n.geometryOptions,a=n.yField,o=n.data,s=Rf(e,Cx),c=Rf(e,Mx);if(!1===i)e.legend(!1);else if(Object(E["O"])(i)&&!0===i.custom)e.legend(i);else{var l=Object(E["s"])(r,[0,"legend"],i),u=Object(E["s"])(r,[1,"legend"],i);e.once("beforepaint",(function(){var t=o[0].length?Lx({view:s,geometryOption:r[0],yField:a[0],legend:l}):[],n=o[1].length?Lx({view:c,geometryOption:r[1],yField:a[1],legend:u}):[];e.legend(pf({},i,{custom:!0,items:t.concat(n)}))})),r[0].seriesField&&s.legend(r[0].seriesField,l),r[1].seriesField&&c.legend(r[1].seriesField,u),e.on("legend-item:click",(function(t){var n=Object(E["s"])(t,"gEvent.delegateObject",{});if(n&&n.item){var i=n.item,r=i.value,o=i.isGeometry,s=i.viewId;if(o){var c=Object(E["n"])(a,(function(t){return t===r}));if(c>-1){var l=Object(E["s"])(Rf(e,s),"geometries");Object(E["j"])(l,(function(t){t.changeVisible(!n.item.unchecked)}))}}else{var u=Object(E["s"])(e.getController("legend"),"option.items",[]);Object(E["j"])(e.views,(function(t){var n=t.getGroupScales();Object(E["j"])(n,(function(e){e.values&&e.values.indexOf(r)>-1&&t.filter(e.field,(function(t){var e=Object(E["m"])(u,(function(e){return e.value===t}));return!e.unchecked}))})),e.render(!0)}))}}}))}return t}function Qx(t){var e=t.chart,n=t.options,i=n.slider,r=Rf(e,Cx),a=Rf(e,Mx);return i&&(r.option("slider",i),r.on("slider:valuechanged",(function(t){var e=t.event,n=e.value,i=e.originValue;Object(E["H"])(n,i)||Dx(a,n)})),e.once("afterpaint",(function(){if(!Object(E["D"])(i)){var t=i.start,e=i.end;(t||e)&&Dx(a,[t,e])}}))),t}function Zx(t){return gf(Rx,zx,Hx,_x,Yx,Gx,Ux,Vx,Wx,Xx,qx,Nx,Kx,Qx)(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dual-axes",e}Object(F["c"])(e,t),e.prototype.getDefaultOptions=function(){return pf({},t.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},e.prototype.getSchemaAdaptor=function(){return Zx}})(zp);function Jx(t,e){var n=e.data,i=e.coordinate,r=e.interactions,a=e.annotations,o=e.animation,s=e.tooltip,c=e.axes,l=e.meta,u=e.geometries;n&&t.data(n);var h={};c&&Object(E["j"])(c,(function(t,e){h[e]=tf(t,Qh)})),h=pf({},l,h),t.scale(h),i&&t.coordinate(i),!1===c?t.axis(!1):Object(E["j"])(c,(function(e,n){t.axis(n,e)})),Object(E["j"])(u,(function(e){var n=Mp({chart:t,options:e}).ext,i=e.adjust;i&&n.geometry.adjust(i)})),Object(E["j"])(r,(function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg)})),Object(E["j"])(a,(function(e){t.annotation()[e.type](Object(F["a"])({},e))})),Nf(t,o),s?(t.interaction("tooltip"),t.tooltip(s)):!1===s&&t.removeInteraction("tooltip")}function $x(t){var e=t.chart,n=t.options,i=n.type,r=n.data,a=n.fields,o=n.eachView,s=Object(E["gb"])(n,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return e.data(r),e.facet(i,Object(F["a"])(Object(F["a"])({},s),{fields:a,eachView:function(t,e){var n=o(t,e);if(n.geometries)Jx(t,n);else{var i=n,r=i.options;r.tooltip&&t.interaction("tooltip"),Dy(i.type,t,r)}}})),t}function tO(t){var e=t.chart,n=t.options,i=n.axes,r=n.meta,a=n.tooltip,o=n.coordinate,s=n.theme,c=n.legend,l=n.interactions,u=n.annotations,h={};return i&&Object(E["j"])(i,(function(t,e){h[e]=tf(t,Qh)})),h=pf({},r,h),e.scale(h),e.coordinate(o),i?Object(E["j"])(i,(function(t,n){e.axis(n,t)})):e.axis(!1),a?(e.interaction("tooltip"),e.tooltip(a)):!1===a&&e.removeInteraction("tooltip"),e.legend(c),s&&e.theme(s),Object(E["j"])(l,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg)})),Object(E["j"])(u,(function(t){e.annotation()[t.type](Object(F["a"])({},t))})),t}function eO(t){return gf(cp,$x,tO)(t)}var nO={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}};(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}Object(F["c"])(e,t),e.getDefaultOptions=function(){return nO},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return eO}})(zp);function iO(t){var e=t.chart,n=t.options,i=n.data,r=n.type,a=n.xField,o=n.yField,s=n.colorField,c=n.sizeField,l=n.sizeRatio,u=n.shape,h=n.color,f=n.tooltip,p=n.heatmapStyle,d=n.meta;e.data(i);var g="polygon";"density"===r&&(g="heatmap");var v=jp(f,[a,o,s]),y=v.fields,m=v.formatter,b=1;return(l||0===l)&&(u||c?l<0||l>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):b=l:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),Mp(pf({},t,{options:{type:g,colorField:s,tooltipFields:y,shapeField:c||"",label:void 0,mapping:{tooltip:m,shape:u&&(c?function(t){var e=i.map((function(t){return t[c]})),n=(null===d||void 0===d?void 0:d[c])||{},r=n.min,a=n.max;return r=Object(E["M"])(r)?r:Math.min.apply(Math,e),a=Object(E["M"])(a)?a:Math.max.apply(Math,e),[u,(Object(E["s"])(t,c)-r)/(a-r),b]}:function(){return[u,1,b]}),color:h||s&&e.getTheme().sequenceColors.join("-"),style:p}}})),t}function rO(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,a=n.xField,o=n.yField;return gf(fp((e={},e[a]=i,e[o]=r,e)))(t)}function aO(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,a=n.xField,o=n.yField;return!1===i?e.axis(a,!1):e.axis(a,i),!1===r?e.axis(o,!1):e.axis(o,r),t}function oO(t){var e=t.chart,n=t.options,i=n.legend,r=n.colorField,a=n.sizeField,o=n.sizeLegend,s=!1!==i;return r&&e.legend(r,!!s&&i),a&&e.legend(a,void 0===o?i:o),s||o||e.legend(!1),t}function sO(t){var e=t.chart,n=t.options,i=n.label,r=n.colorField,a=n.type,o=vf(e,"density"===a?"heatmap":"polygon");if(i){if(r){var s=i.callback,c=Object(F["f"])(i,["callback"]);o.label({fields:[r],callback:s,cfg:Of(c)})}}else o.label(!1);return t}function cO(t){var e,n,i=t.chart,r=t.options,a=r.coordinate,o=r.reflect,s=pf({actions:[]},null!==a&&void 0!==a?a:{type:"rect"});return o&&(null===(n=null===(e=s.actions)||void 0===e?void 0:e.push)||void 0===n||n.call(e,["reflect",o])),i.coordinate(s),t}function lO(t){return gf(cp,ip("heatmapStyle"),rO,cO,iO,aO,oO,ap,sO,pp(),op,sp,lp)(t)}var uO=pf({},zp.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});Er("polygon","circle",{draw:function(t,e){var n,i,r=t.x,a=t.y,o=this.parsePoints(t.points),s=Math.abs(o[2].x-o[1].x),c=Math.abs(o[1].y-o[0].y),l=Math.min(s,c)/2,u=Number(t.shape[1]),h=Number(t.shape[2]),f=Math.sqrt(h),p=l*f*Math.sqrt(u),d=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill),g=e.addShape("circle",{attrs:Object(F["a"])(Object(F["a"])(Object(F["a"])({x:r,y:a,r:p},t.defaultStyle),t.style),{fill:d})});return g}}),Er("polygon","square",{draw:function(t,e){var n,i,r=t.x,a=t.y,o=this.parsePoints(t.points),s=Math.abs(o[2].x-o[1].x),c=Math.abs(o[1].y-o[0].y),l=Math.min(s,c),u=Number(t.shape[1]),h=Number(t.shape[2]),f=Math.sqrt(h),p=l*f*Math.sqrt(u),d=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill),g=e.addShape("rect",{attrs:Object(F["a"])(Object(F["a"])(Object(F["a"])({x:r-p/2,y:a-p/2,width:p,height:p},t.defaultStyle),t.style),{fill:d})});return g}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e}Object(F["c"])(e,t),e.getDefaultOptions=function(){return uO},e.prototype.getSchemaAdaptor=function(){return lO},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}})(zp);var hO="liquid";function fO(t){return[{percent:t,type:hO}]}function pO(t){var e=t.chart,n=t.options,i=n.percent,r=n.liquidStyle,a=n.radius,o=n.outline,s=n.wave,c=n.shape,l=n.shapeStyle,u=n.animation;e.scale({percent:{min:0,max:1}}),e.data(fO(i));var h=n.color||e.getTheme().defaultColor,f=pf({},t,{options:{xField:"type",yField:"percent",widthRatio:a,interval:{color:h,style:r,shape:"liquid-fill-gauge"}}}),p=Fp(f).ext,d=p.geometry,g=e.getTheme().background,v={percent:i,radius:a,outline:o,wave:s,shape:c,shapeStyle:l,background:g,animation:u};return d.customInfo(v),e.legend(!1),e.axis(!1),e.tooltip(!1),t}function dO(t,e){var n=t.chart,i=t.options,r=i.statistic,a=i.percent,o=i.meta;n.getController("annotation").clear(!0);var s=Object(E["s"])(o,["percent","formatter"])||function(t){return"".concat((100*t).toFixed(2),"%")},c=r.content;return c&&(c=pf({},c,{content:Object(E["K"])(c.content)?s(a):c.content})),Bf(n,{statistic:Object(F["a"])(Object(F["a"])({},r),{content:c}),plotType:"liquid"},{percent:a}),e&&n.render(!0),t}function gO(t){return gf(cp,ip("liquidStyle"),pO,dO,fp({}),sp,op)(t)}var vO={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"},yO=5e3;function mO(t,e,n){return t+(e-t)*n}function bO(t){var e=Object(F["a"])({opacity:1},t.style);return t.color&&!e.fill&&(e.fill=t.color),e}function xO(t){var e={fill:"#fff",fillOpacity:0,lineWidth:4},n=Object(E["db"])({},e,t.style);return t.color&&!n.stroke&&(n.stroke=t.color),Object(E["M"])(t.opacity)&&(n.opacity=n.strokeOpacity=t.opacity),n}function OO(t,e,n,i){return 0===e?[[t+.5*n/Math.PI/2,i/2],[t+.5*n/Math.PI,i],[t+n/4,i]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),i],[t+.5*n/Math.PI/2*(Math.PI-1),i/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-i/2],[t+.5*n/Math.PI,-i],[t+n/4,-i]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-i],[t+.5*n/Math.PI/2*(Math.PI-1),-i/2],[t+n/4,0]]}function jO(t,e,n,i,r,a,o){var s=4*Math.ceil(2*t/n*4),c=[],l=i;while(l<2*-Math.PI)l+=2*Math.PI;while(l>0)l-=2*Math.PI;l=l/Math.PI/2*n;var u=a-t+l-2*t;c.push(["M",u,e]);for(var h=0,f=0;f0){var k=e.addGroup({name:"waves"}),I=k.setClip({type:"path",attrs:{path:A}});wO(b.x,b.y,1-t.points[1].y,v,w,k,I,2*j,y,h)}return e.addShape("path",{name:"distance",attrs:{path:A,fill:"transparent",lineWidth:d+2*g,stroke:"transparent"===u?"#fff":u}}),e.addShape("path",{name:"wrap",attrs:Object(E["db"])(C,{path:A,fill:"transparent",lineWidth:d})}),e}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="liquid",e}Object(F["c"])(e,t),e.getDefaultOptions=function(){return vO},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.chart.emit(I.BEFORE_CHANGE_DATA,Hi.fromData(this.chart,I.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(fO(t)),dO({chart:this.chart,options:this.options},!0),this.chart.emit(I.AFTER_CHANGE_DATA,Hi.fromData(this.chart,I.AFTER_CHANGE_DATA,null))},e.prototype.getSchemaAdaptor=function(){return gO}})(zp);function EO(t){var e=t.chart,n=t.options,i=n.data,r=n.lineStyle,a=n.color,o=n.point,s=n.area;e.data(i);var c=pf({},t,{options:{line:{style:r,color:a},point:o?Object(F["a"])({color:a},o):o,area:s?Object(F["a"])({color:a},s):s,label:void 0}}),l=pf({},c,{options:{tooltip:!1}}),u=(null===o||void 0===o?void 0:o.state)||n.state,h=pf({},c,{options:{tooltip:!1,state:u}});return Ep(c),Ip(h),Sp(l),t}function IO(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,a=n.xField,o=n.yField;return gf(fp((e={},e[a]=i,e[o]=r,e)))(t)}function TO(t){var e=t.chart,n=t.options,i=n.radius,r=n.startAngle,a=n.endAngle;return e.coordinate("polar",{radius:i,startAngle:r,endAngle:a}),t}function PO(t){var e=t.chart,n=t.options,i=n.xField,r=n.xAxis,a=n.yField,o=n.yAxis;return e.axis(i,r),e.axis(a,o),t}function BO(t){var e=t.chart,n=t.options,i=n.label,r=n.yField,a=vf(e,"line");if(i){var o=i.callback,s=Object(F["f"])(i,["callback"]);a.label({fields:[r],callback:o,cfg:Of(s)})}else a.label(!1);return t}function LO(t){return gf(EO,IO,cp,TO,PO,rp,ap,BO,op,sp,pp())(t)}var DO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),e.prototype.getTooltipItems=function(e){var n=this.getTooltipCfg(),i=n.shared,r=n.title,a=t.prototype.getTooltipItems.call(this,e);if(a.length>0){var o=this.view.geometries[0],s=o.dataArray,c=a[0].name,l=[];return s.forEach((function(t){t.forEach((function(t){var e=wa.getTooltipItems(t,o),n=e[0];if(!i&&n&&n.name===c){var a=Object(E["K"])(r)?c:r;l.push(Object(F["a"])(Object(F["a"])({},n),{name:n.title,title:a}))}else if(i&&n){a=Object(E["K"])(r)?n.name||c:r;l.push(Object(F["a"])(Object(F["a"])({},n),{name:n.title,title:a}))}}))})),l}return[]},e}(or);Ni("radar-tooltip",DO);var RO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.init=function(){var t=this.context.view;t.removeInteraction("tooltip")},e.prototype.show=function(){var t=this.context.event,e=this.getTooltipController();e.showTooltip({x:t.x,y:t.y})},e.prototype.hide=function(){var t=this.getTooltipController();t.hideTooltip()},e.prototype.getTooltipController=function(){var t=this.context.view;return t.getController("radar-tooltip")},e}(Te);ze("radar-tooltip",RO),oi("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e}Object(F["c"])(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return pf({},t.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},e.prototype.getSchemaAdaptor=function(){return LO}})(zp);function zO(t,e,n){var i=n.map((function(t){return t[e]})).filter((function(t){return void 0!==t})),r=i.length>0?Math.max.apply(Math,i):0,a=Math.abs(t)%360;return a?360*r/a:r}function _O(t,e,n){var i=[];return t.forEach((function(t){var r=i.find((function(n){return n[e]===t[e]}));r?r[n]+=t[n]||null:i.push(Object(F["a"])({},t))})),i}function NO(t){var e=t.chart,n=t.options,i=n.barStyle,r=n.color,a=n.tooltip,o=n.colorField,s=n.type,c=n.xField,l=n.yField,u=n.data,h=n.shape,f=rf(u,l);e.data(f);var p=pf({},t,{options:{tooltip:a,seriesField:o,interval:{style:i,color:r,shape:h||("line"===s?"line":"intervel")},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}});return Fp(p),"line"===s&&Ip({chart:e,options:{xField:c,yField:l,seriesField:o,point:{shape:"circle",color:r}}}),t}function YO(t){var e,n=t.options,i=n.yField,r=n.xField,a=n.data,o=n.isStack,s=n.isGroup,c=n.colorField,l=n.maxAngle,u=o&&!s&&c?_O(a,r,i):a,h=rf(u,i);return gf(fp((e={},e[i]={min:0,max:zO(l,i,h)},e)))(t)}function GO(t){var e=t.chart,n=t.options,i=n.radius,r=n.innerRadius,a=n.startAngle,o=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:i,innerRadius:r,startAngle:a,endAngle:o}}).transpose(),t}function VO(t){var e=t.chart,n=t.options,i=n.xField,r=n.xAxis;return e.axis(i,r),t}function WO(t){var e=t.chart,n=t.options,i=n.label,r=n.yField,a=vf(e,"interval");if(i){var o=i.callback,s=Object(F["f"])(i,["callback"]);a.label({fields:[r],callback:o,cfg:Object(F["a"])(Object(F["a"])({},Of(s)),{type:"polar"})})}else a.label(!1);return t}function XO(t){return gf(ip("barStyle"),NO,YO,VO,GO,op,sp,cp,ap,rp,pp(),WO)(t)}var HO=pf({},zp.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radial-bar",e}Object(F["c"])(e,t),e.getDefaultOptions=function(){return HO},e.prototype.changeData=function(t){this.updateOption({data:t}),YO({chart:this.chart,options:this.options}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return XO}})(zp);function qO(t){var e=t.chart,n=t.options,i=n.data,r=n.sectorStyle,a=n.shape,o=n.color;return e.data(i),gf(Fp)(pf({},t,{options:{marginRatio:1,interval:{style:r,color:o,shape:a}}})),t}function UO(t){var e=t.chart,n=t.options,i=n.label,r=n.xField,a=vf(e,"interval");if(!1===i)a.label(!1);else if(Object(E["O"])(i)){var o=i.callback,s=i.fields,c=Object(F["f"])(i,["callback","fields"]),l=c.offset,u=c.layout;(void 0===l||l>=0)&&(u=u?Object(E["C"])(u)?u:[u]:[],c.layout=Object(E["l"])(u,(function(t){return"limit-in-shape"!==t.type})),c.layout.length||delete c.layout),a.label({fields:s||[r],callback:o,cfg:Of(c)})}else $h(Kh.WARN,null===i,"the label option must be an Object."),a.label({fields:[r]});return t}function KO(t){var e=t.chart,n=t.options,i=n.legend,r=n.seriesField;return!1===i?e.legend(!1):r&&e.legend(r,i),t}function QO(t){var e=t.chart,n=t.options,i=n.radius,r=n.innerRadius,a=n.startAngle,o=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:i,innerRadius:r,startAngle:a,endAngle:o}}),t}function ZO(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,a=n.xField,o=n.yField;return gf(fp((e={},e[a]=i,e[o]=r,e)))(t)}function JO(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,a=n.xField,o=n.yField;return i?e.axis(a,i):e.axis(a,!1),r?e.axis(o,r):e.axis(o,!1),t}function $O(t){gf(ip("sectorStyle"),qO,ZO,UO,QO,JO,KO,ap,op,sp,cp,pp(),lp)(t)}var tj=pf({},zp.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]}),ej=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}Object(F["c"])(e,t),e.getDefaultOptions=function(){return tj},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return $O}}(zp),"x"),nj="y",ij="name",rj="nodes",aj="edges";function oj(t,e,n){var i=[];return t.forEach((function(t){var r=t[e],a=t[n];i.includes(r)||i.push(r),i.includes(a)||i.push(a)})),i}function sj(t,e,n,i){var r={};return e.forEach((function(t){r[t]={},e.forEach((function(e){r[t][e]=0}))})),t.forEach((function(t){r[t[n]][t[i]]=1})),r}function cj(t,e,n){if(!Object(E["C"])(t))return[];var i=[],r=oj(t,e,n),a=sj(t,r,e,n),o={};function s(t){o[t]=1,r.forEach((function(e){if(0!=a[t][e])if(1==o[e])i.push("".concat(t,"_").concat(e));else{if(-1==o[e])return;s(e)}})),o[t]=-1}return r.forEach((function(t){o[t]=0})),r.forEach((function(t){-1!=o[t]&&s(t)})),0!==i.length&&console.warn("sankey data contains circle, ".concat(i.length," records removed."),i),t.filter((function(t){return i.findIndex((function(i){return i==="".concat(t[e],"_").concat(t[n])}))<0}))}function lj(t){return t.target.depth}function uj(t){return t.depth}function hj(t,e){return e-1-t.height}function fj(t,e){return t.sourceLinks.length?t.depth:e-1}function pj(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Object(E["cb"])(t.sourceLinks,lj)-1:0}function dj(t){return function(){return t}}function gj(t,e){for(var n=0,i=0;ii)throw new Error("circular link");r=a,a=new Set}if(e)for(var s=Math.max(vj(n,(function(t){return t.depth}))+1,0),c=void 0,l=0;ln)throw new Error("circular link");i=r,r=new Set}}function x(t){for(var e=t.nodes,i=Math.max(vj(e,(function(t){return t.depth}))+1,0),a=(o-r-c)/(i-1),s=new Array(i).fill(0).map((function(){return[]})),l=0,u=e;l0){var m=(u/h-l.y0)*e;l.y0+=m,l.y1+=m,k(l)}}void 0===n&&o.sort(xj),o.length&&M(o,i)}}function C(t,e,i){for(var r=t.length,a=r-2;a>=0;--a){for(var o=t[a],s=0,c=o;s0){var m=(u/h-l.y0)*e;l.y0+=m,l.y1+=m,k(l)}}void 0===n&&o.sort(xj),o.length&&M(o,i)}}function M(e,n){var i=e.length>>1,r=e[i];A(e,r.y0-t,i-1,n),S(e,r.y1+t,i+1,n),A(e,s,e.length-1,n),S(e,a,0,n)}function S(e,n,i,r){for(;i1e-6&&(a.y0+=o,a.y1+=o),n=a.y1+t}}function A(e,n,i,r){for(;i>=0;--i){var a=e[i],o=(a.y1-n)*r;o>1e-6&&(a.y0-=o,a.y1-=o),n=a.y0-t}}function k(t){var e=t.sourceLinks,n=t.targetLinks;if(void 0===i){for(var r=0,a=n;r "+n,value:i}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},e.prototype.changeData=function(t){this.updateOption({data:t});var e=Dj(this.options,this.chart.width,this.chart.height),n=e.nodes,i=e.edges,r=Rf(this.chart,rj),a=Rf(this.chart,aj);r.changeData(n),a.changeData(i)},e.prototype.getSchemaAdaptor=function(){return Gj},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}})(zp);var Wj="ancestor-node",Xj="value",Hj="path",qj=[Hj,ex,ix,nx,"name","depth","height"],Uj=pf({},zp.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}}),Kj=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},Qj=function(t,e,n,i,r){var a,o=t.children,s=-1,c=o.length,l=t.value&&(i-e)/t.value;while(++s0)throw new Error("cycle");return a}return n.id=function(e){return arguments.length?(t=Mb(e),n):t},n.parentId=function(t){return arguments.length?(e=Mb(t),n):e},n};function pw(t,e){return t.parent===e.parent?1:2}function dw(t){var e=t.children;return e?e[0]:t.t}function gw(t){var e=t.children;return e?e[e.length-1]:t.t}function vw(t,e,n){var i=n/(e.i-t.i);e.c-=i,e.s+=n,t.c+=i,e.z+=n,e.m+=n}function yw(t){var e,n=0,i=0,r=t.children,a=r.length;while(--a>=0)e=r[a],e.z+=n,e.m+=n,n+=e.s+(i+=e.c)}function mw(t,e,n){return t.a.parent===e.parent?t.a:n}function bw(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function xw(t){var e,n,i,r,a,o=new bw(t,0),s=[o];while(e=s.pop())if(i=e._.children)for(e.children=new Array(a=i.length),r=a-1;r>=0;--r)s.push(n=e.children[r]=new bw(i[r],r)),n.parent=e;return(o.parent=new bw(null,0)).children=[o],o}bw.prototype=Object.create(tx.prototype);var Ow=function(){var t=pw,e=1,n=1,i=null;function r(r){var s=xw(r);if(s.eachAfter(a),s.parent.m=-s.z,s.eachBefore(o),i)r.eachBefore(c);else{var l=r,u=r,h=r;r.eachBefore((function(t){t.xu.x&&(u=t),t.depth>h.depth&&(h=t)}));var f=l===u?1:t(l,u)/2,p=f-l.x,d=e/(u.x+f+p),g=n/(h.depth||1);r.eachBefore((function(t){t.x=(t.x+p)*d,t.y=t.depth*g}))}return r}function a(e){var n=e.children,i=e.parent.children,r=e.i?i[e.i-1]:null;if(n){yw(e);var a=(n[0].z+n[n.length-1].z)/2;r?(e.z=r.z+t(e._,r._),e.m=e.z-a):e.z=a}else r&&(e.z=r.z+t(e._,r._));e.parent.A=s(e,r,e.parent.A||i[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(e,n,i){if(n){var r,a=e,o=e,s=n,c=a.parent.children[0],l=a.m,u=o.m,h=s.m,f=c.m;while(s=gw(s),a=dw(a),s&&a)c=dw(c),o=gw(o),o.a=e,r=s.z+h-a.z-l+t(s._,a._),r>0&&(vw(mw(s,e,i),e,r),l+=r,u+=r),h+=s.m,l+=a.m,f+=c.m,u+=o.m;s&&!gw(o)&&(o.t=s,o.m+=h-u),a&&!dw(c)&&(c.t=a,c.m+=l-f,i=e)}return i}function c(t){t.x*=e,t.y=t.depth*n}return r.separation=function(e){return arguments.length?(t=e,r):t},r.size=function(t){return arguments.length?(i=!1,e=+t[0],n=+t[1],r):i?null:[e,n]},r.nodeSize=function(t){return arguments.length?(i=!0,e=+t[0],n=+t[1],r):i?[e,n]:null},r},jw=function(t,e,n,i,r){var a,o=t.children,s=-1,c=o.length,l=t.value&&(r-n)/t.value;while(++sf&&(f=s),v=u*u*g,p=Math.max(f/v,v/h),p>d){u-=s;break}d=p}y.push(o={value:u,dice:c1?e:1)},n}(ww),Sw=function(){var t=Mw,e=!1,n=1,i=1,r=[0],a=Sb,o=Sb,s=Sb,c=Sb,l=Sb;function u(t){return t.x0=t.y0=0,t.x1=n,t.y1=i,t.eachBefore(h),r=[0],e&&t.eachBefore(Kj),t}function h(e){var n=r[e.depth],i=e.x0+n,u=e.y0+n,h=e.x1-n,f=e.y1-n;h=e-1){var c=s[t];return c.x0=i,c.y0=r,c.x1=a,void(c.y1=o)}var h=l[t],f=n/2+h,p=t+1,d=e-1;while(p>>1;l[g]o-r){var m=n?(i*y+a*v)/n:a;u(t,p,v,i,r,m,o),u(p,e,y,m,r,a,o)}else{var b=n?(r*y+o*v)/n:o;u(t,p,v,i,r,a,b),u(p,e,y,i,b,a,o)}}u(0,c,t.value,e,n,i,r)},kw=function(t,e,n,i,r){(1&t.depth?jw:Qj)(t,e,n,i,r)},Fw=function t(e){function n(t,n,i,r,a){if((o=t._squarify)&&o.ratio===e){var o,s,c,l,u,h=-1,f=o.length,p=t.value;while(++h1?e:1)},n}(ww),Ew={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(t,e){return e.value-t.value},ratio:.5*(1+Math.sqrt(5))};function Iw(t,e){return"treemapSquarify"===t?i[t].ratio(e):i[t]}function Tw(t,e){e=Object(E["b"])({},Ew,e);var n,i=e.as;if(!Object(E["C"])(i)||2!==i.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=ax(e)}catch(l){console.warn(l)}var r=Iw(e.tile,e.ratio),a=function(t){return Sw().tile(r).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(Ub(t).sum((function(t){return e.ignoreParentValue&&t.children?0:t[n]})).sort(e.sort))},o=a(t),s=i[0],c=i[1];return o.each((function(t){t[s]=[t.x0,t.x1,t.x1,t.x0],t[c]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===i.indexOf(e)&&delete t[e]}))})),ox(o)}function Pw(t){var e=t.data,n=t.colorField,i=t.rawFields,r=t.hierarchyConfig,a=void 0===r?{}:r,o=a.activeDepth,s={partition:$j,treemap:Tw},c=t.seriesField,l=t.type||"partition",u=s[l](e,Object(F["a"])(Object(F["a"])({field:c||"value"},Object(E["gb"])(a,["activeDepth"])),{type:"hierarchy.".concat(l),as:["x","y"]})),h=[];return u.forEach((function(t){var e,r,s,l,u,f;if(0===t.depth)return null;if(o>0&&t.depth>o)return null;var p=t.data.name,d=Object(F["a"])({},t);while(d.depth>1)p="".concat(null===(r=d.parent.data)||void 0===r?void 0:r.name," / ").concat(p),d=d.parent;var g=Object(F["a"])(Object(F["a"])(Object(F["a"])({},tf(t.data,Object(F["g"])(Object(F["g"])([],i||[],!0),[a.field],!1))),(e={},e[Hj]=p,e[Wj]=d.data.name,e)),t);c&&(g[c]=t.data[c]||(null===(l=null===(s=t.parent)||void 0===s?void 0:s.data)||void 0===l?void 0:l[c])),n&&(g[n]=t.data[n]||(null===(f=null===(u=t.parent)||void 0===u?void 0:u.data)||void 0===f?void 0:f[n])),g.ext=a,g[ab]={hierarchyConfig:a,colorField:n,rawFields:i},h.push(g)})),h}function Bw(t){var e,n=t.chart,i=t.options,r=i.color,a=i.colorField,o=void 0===a?Wj:a,s=i.sunburstStyle,c=i.rawFields,l=void 0===c?[]:c,u=i.shape,h=Pw(i);return n.data(h),s&&(e=function(t){return pf({},{fillOpacity:Math.pow(.85,t.depth)},Object(E["I"])(s)?s(t):s)}),Tp(pf({},t,{options:{xField:"x",yField:"y",seriesField:o,rawFields:Object(E["ub"])(Object(F["g"])(Object(F["g"])([],qj,!0),l,!0)),polygon:{color:r,style:e,shape:u}}})),t}function Lw(t){var e=t.chart;return e.axis(!1),t}function Dw(t){var e=t.chart,n=t.options,i=n.label,r=vf(e,"polygon");if(i){var a=i.fields,o=void 0===a?["name"]:a,s=i.callback,c=Object(F["f"])(i,["fields","callback"]);r.label({fields:o,callback:s,cfg:Of(c)})}else r.label(!1);return t}function Rw(t){var e=t.chart,n=t.options,i=n.innerRadius,r=n.radius,a=n.reflect,o=e.coordinate({type:"polar",cfg:{innerRadius:i,radius:r}});return a&&o.reflect(a),t}function zw(t){var e,n=t.options,i=n.hierarchyConfig,r=n.meta;return gf(fp({},(e={},e[Xj]=Object(E["s"])(r,Object(E["s"])(i,["field"],"value")),e)))(t)}function _w(t){var e=t.chart,n=t.options,i=n.tooltip;if(!1===i)e.tooltip(!1);else{var r=i;Object(E["s"])(i,"fields")||(r=pf({},{customItems:function(t){return t.map((function(t){var n=Object(E["s"])(e.getOptions(),"scales"),i=Object(E["s"])(n,[Hj,"formatter"],(function(t){return t})),r=Object(E["s"])(n,[Xj,"formatter"],(function(t){return t}));return Object(F["a"])(Object(F["a"])({},t),{name:i(t.data[Hj]),value:r(t.data.value)})}))}},r)),e.tooltip(r)}return t}function Nw(t){var e=t.drilldown,n=t.interactions,i=void 0===n?[]:n;return(null===e||void 0===e?void 0:e.enabled)?pf({},t,{interactions:Object(F["g"])(Object(F["g"])([],i,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:Pw}}],!1)}):t}function Yw(t){var e=t.chart,n=t.options,i=n.drilldown;return op({chart:e,options:Nw(n)}),(null===i||void 0===i?void 0:i.enabled)&&(e.appendPadding=Sf(e.appendPadding,Object(E["s"])(i,["breadCrumb","position"]))),t}function Gw(t){return gf(cp,ip("sunburstStyle"),Bw,Lw,zw,rp,Rw,_w,Dw,Yw,sp,pp())(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sunburst",e}Object(F["c"])(e,t),e.getDefaultOptions=function(){return Uj},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Gw},e.SUNBURST_ANCESTOR_FIELD=Wj,e.SUNBURST_PATH_FIELD=Hj,e.NODE_ANCESTORS_FIELD=ix})(zp);function Vw(t,e){if(Object(E["C"])(t))return t.find((function(t){return t.type===e}))}function Ww(t,e){var n=Vw(t,e);return n&&!1!==n.enable}function Xw(t){var e=t.interactions,n=t.drilldown;return Object(E["s"])(n,"enabled")||Ww(e,"treemap-drill-down")}function Hw(t){var e=t.interactions["drill-down"];if(e){var n=e.context.actions.find((function(t){return"drill-down-action"===t.name}));n.reset()}}function qw(t){var e=t.data,n=t.colorField,i=t.enableDrillDown,r=t.hierarchyConfig,a=Tw(e,Object(F["a"])(Object(F["a"])({},r),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),o=[];return a.forEach((function(t){if(0===t.depth)return null;if(i&&1!==t.depth)return null;if(!i&&t.children)return null;var a=t.ancestors().map((function(t){return{data:t.data,height:t.height,value:t.value}})),s=i&&Object(E["C"])(e.path)?a.concat(e.path.slice(1)):a,c=Object.assign({},t.data,Object(F["a"])({x:t.x,y:t.y,depth:t.depth,value:t.value,path:s},t));if(!t.data[n]&&t.parent){var l=t.ancestors().find((function(t){return t.data[n]}));c[n]=null===l||void 0===l?void 0:l.data[n]}else c[n]=t.data[n];c[ab]={hierarchyConfig:r,colorField:n,enableDrillDown:i},o.push(c)})),o}function Uw(t){var e=t.options,n=e.colorField;return pf({options:{rawFields:["value"],tooltip:{fields:["name","value",n,"path"],formatter:function(t){return{name:t.name,value:t.value}}}}},t)}function Kw(t){var e=t.chart,n=t.options,i=n.color,r=n.colorField,a=n.rectStyle,o=n.hierarchyConfig,s=n.rawFields,c=qw({data:n.data,colorField:n.colorField,enableDrillDown:Xw(n),hierarchyConfig:o});return e.data(c),Tp(pf({},t,{options:{xField:"x",yField:"y",seriesField:r,rawFields:s,polygon:{color:i,style:a}}})),e.coordinate().reflect("y"),t}function Qw(t){var e=t.chart;return e.axis(!1),t}function Zw(t){var e=t.drilldown,n=t.interactions,i=void 0===n?[]:n,r=Xw(t);return r?pf({},t,{interactions:Object(F["g"])(Object(F["g"])([],i,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:qw}}],!1)}):t}function Jw(t){var e=t.chart,n=t.options,i=n.interactions,r=n.drilldown;op({chart:e,options:Zw(n)});var a=Vw(i,"view-zoom");a&&(!1!==a.enable?e.getCanvas().on("mousewheel",(function(t){t.preventDefault()})):e.getCanvas().off("mousewheel"));var o=Xw(n);return o&&(e.appendPadding=Sf(e.appendPadding,Object(E["s"])(r,["breadCrumb","position"]))),t}function $w(t){return gf(Uw,cp,ip("rectStyle"),Kw,Qw,rp,ap,Jw,sp,pp())(t)}var tC={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"初始",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}},eC=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e}Object(F["c"])(e,t),e.getDefaultOptions=function(){return tC},e.prototype.changeData=function(t){var e=this.options,n=e.colorField,i=e.interactions,r=e.hierarchyConfig;this.updateOption({data:t});var a=qw({data:t,colorField:n,enableDrillDown:Ww(i,"treemap-drill-down"),hierarchyConfig:r});this.chart.changeData(a),Hw(this.chart)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return $w}}(zp),"id"),nC="path",iC={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(t){return{name:t.id,value:t.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]};function rC(t){if(t){var e=t.geometries[0].elements;e.forEach((function(t){t.shape.toFront()}))}}var aC=Re("element-active"),oC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.syncElementsPos=function(){rC(this.context.view)},e.prototype.active=function(){t.prototype.active.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(aC),sC=Re("element-highlight"),cC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.syncElementsPos=function(){rC(this.context.view)},e.prototype.highlight=function(){t.prototype.highlight.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.clear=function(){t.prototype.clear.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(sC),lC=Re("element-selected"),uC=Re("element-single-selected"),hC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.syncElementsPos=function(){rC(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(lC),fC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.syncElementsPos=function(){rC(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(uC);ze("venn-element-active",oC),ze("venn-element-highlight",cC),ze("venn-element-selected",hC),ze("venn-element-single-selected",fC),oi("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),oi("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),oi("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),oi("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),oi("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),oi("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]});var pC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F["c"])(e,t),e.prototype.getLabelPoint=function(t,e,n){var i=t.data,r=i.x,a=i.y,o=t.customLabelInfo,s=o.offsetX,c=o.offsetY;return{content:t.content[n],x:r+s,y:a+c}},e}(Jr);wr("venn",pC);var dC=Array.isArray,gC=dC,vC=n("26ee"),yC=vC["a"].Symbol,mC=yC,bC=Object.prototype,xC=bC.hasOwnProperty,OC=bC.toString,jC=mC?mC.toStringTag:void 0;function wC(t){var e=xC.call(t,jC),n=t[jC];try{t[jC]=void 0;var i=!0}catch(a){}var r=OC.call(t);return i&&(e?t[jC]=n:delete t[jC]),r}var CC=wC,MC=Object.prototype,SC=MC.toString;function AC(t){return SC.call(t)}var kC=AC,FC="[object Null]",EC="[object Undefined]",IC=mC?mC.toStringTag:void 0;function TC(t){return null==t?void 0===t?EC:FC:IC&&IC in Object(t)?CC(t):kC(t)}var PC=TC;function BC(t){return null!=t&&"object"==typeof t}var LC=BC;function DC(t){return function(e,n,i){var r=-1,a=Object(e),o=i(e),s=o.length;while(s--){var c=o[t?s:++r];if(!1===n(a[c],c,a))break}return e}}var RC=DC,zC=RC(),_C=zC;function NC(t,e){var n=-1,i=Array(t);while(++n-1&&t%1==0&&t-1&&t%1==0&&t<=eM}var iM=nM,rM="[object Arguments]",aM="[object Array]",oM="[object Boolean]",sM="[object Date]",cM="[object Error]",lM="[object Function]",uM="[object Map]",hM="[object Number]",fM="[object Object]",pM="[object RegExp]",dM="[object Set]",gM="[object String]",vM="[object WeakMap]",yM="[object ArrayBuffer]",mM="[object DataView]",bM="[object Float32Array]",xM="[object Float64Array]",OM="[object Int8Array]",jM="[object Int16Array]",wM="[object Int32Array]",CM="[object Uint8Array]",MM="[object Uint8ClampedArray]",SM="[object Uint16Array]",AM="[object Uint32Array]",kM={};function FM(t){return LC(t)&&iM(t.length)&&!!kM[PC(t)]}kM[bM]=kM[xM]=kM[OM]=kM[jM]=kM[wM]=kM[CM]=kM[MM]=kM[SM]=kM[AM]=!0,kM[rM]=kM[aM]=kM[yM]=kM[oM]=kM[mM]=kM[sM]=kM[cM]=kM[lM]=kM[uM]=kM[hM]=kM[fM]=kM[pM]=kM[dM]=kM[gM]=kM[vM]=!1;var EM=FM;function IM(t){return function(e){return t(e)}}var TM=IM,PM=n("c6eb"),BM=PM["a"]&&PM["a"].isTypedArray,LM=BM?TM(BM):EM,DM=LM,RM=Object.prototype,zM=RM.hasOwnProperty;function _M(t,e){var n=gC(t),i=!n&&KC(t),r=!n&&!i&&Object(QC["a"])(t),a=!n&&!i&&!r&&DM(t),o=n||i||r||a,s=o?YC(t.length,String):[],c=s.length;for(var l in t)!e&&!zM.call(t,l)||o&&("length"==l||r&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||tM(l,c))||s.push(l);return s}var NM=_M,YM=Object.prototype;function GM(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||YM;return t===n}var VM=GM;function WM(t,e){return function(n){return t(e(n))}}var XM=WM,HM=XM(Object.keys,Object),qM=HM,UM=Object.prototype,KM=UM.hasOwnProperty;function QM(t){if(!VM(t))return qM(t);var e=[];for(var n in Object(t))KM.call(t,n)&&"constructor"!=n&&e.push(n);return e}var ZM=QM;function JM(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var $M=JM,tS="[object AsyncFunction]",eS="[object Function]",nS="[object GeneratorFunction]",iS="[object Proxy]";function rS(t){if(!$M(t))return!1;var e=PC(t);return e==eS||e==nS||e==tS||e==iS}var aS=rS;function oS(t){return null!=t&&iM(t.length)&&!aS(t)}var sS=oS;function cS(t){return sS(t)?NM(t):ZM(t)}var lS=cS;function uS(t,e){return t&&_C(t,e,lS)}var hS=uS;function fS(t,e){return function(n,i){if(null==n)return n;if(!sS(n))return t(n,i);var r=n.length,a=e?r:-1,o=Object(n);while(e?a--:++a-1}var AS=SS;function kS(t,e){var n=this.__data__,i=bS(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}var FS=kS;function ES(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e2&&(n.push([i].concat(a.splice(0,2))),o="l",i="m"===i?"l":"L"),"o"===o&&1===a.length&&n.push([i,a[0]]),"r"===o)n.push([i].concat(a));else while(a.length>=e[o])if(n.push([i].concat(a.splice(0,e[o]))),!e[o])break;return""})),n}Math.PI;function Ek(t){return pf({},t.defaultStyle,{fill:t.color},t.style)}Er("schema","venn",{draw:function(t,e){var n=t.data,i=Fk(n[nC]),r=Ek(t),a=e.addGroup({name:"venn-shape"});a.addShape("path",{attrs:Object(F["a"])(Object(F["a"])({},r),{path:i}),name:"venn-path"});var o=t.customInfo,s=o.offsetX,c=o.offsetY,l=wa.transform(null,[["t",s,c]]);return a.setMatrix(l),a},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{lineWidth:0,stroke:e,fill:e,r:4}}}});var Ik=function(t){return function(e,n){var i=[];return i[0]=t(e[0],n[0]),i[1]=t(e[1],n[1]),i[2]=t(e[2],n[2]),i}},Tk={normal:function(t){return t},multiply:function(t,e){return t*e/255},screen:function(t,e){return 255*(1-(1-t/255)*(1-e/255))},overlay:function(t,e){return e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255))},darken:function(t,e){return t>e?e:t},lighten:function(t,e){return t>e?t:e},dodge:function(t,e){return 255===t?255:(t=e/255*255/(1-t/255),t>255?255:t)},burn:function(t,e){return 255===e?255:0===t?0:255*(1-Math.min(1,(1-e/255)/(t/255)))}},Pk=function(t){if(!Tk[t])throw new Error("unknown blend mode "+t);return Tk[t]};function Bk(t,e,n){void 0===n&&(n="normal");var i=Ik(Pk(n))(Lk(t),Lk(e)),r=Lk(t),a=r[0],o=r[1],s=r[2],c=r[3],l=Lk(e),u=l[0],h=l[1],f=l[2],p=l[3],d=Number((c+p*(1-c)).toFixed(2)),g=Math.round((c*(1-p)*(a/255)+c*p*(i[0]/255)+(1-c)*p*(u/255))/d*255),v=Math.round((c*(1-p)*(o/255)+c*p*(i[1]/255)+(1-c)*p*(h/255))/d*255),y=Math.round((c*(1-p)*(s/255)+c*p*(i[2]/255)+(1-c)*p*(f/255))/d*255);return"rgba(".concat(g,", ").concat(v,", ").concat(y,", ").concat(d,")")}function Lk(t){var e,n=t.replace("/s+/g","");return"string"!==typeof n||n.startsWith("rgba")||n.startsWith("#")?(n.startsWith("rgba")&&(e=n.replace("rgba(","").replace(")","").split(",")),n.startsWith("#")&&(e=at["a"].rgb2arr(n).concat([1])),e.map((function(t,e){return 3===e?Number(t):0|t}))):at["a"].rgb2arr(at["a"].toRGB(n)).concat([1])}var Dk=n("23eb"),Rk=1e-10;function zk(t,e){var n,i=Nk(t),r=i.filter((function(e){return _k(e,t)})),a=0,o=0,s=[];if(r.length>1){var c=Xk(r);for(n=0;n-1){var g=t[h.parentIndex[d]],v=Math.atan2(h.x-g.x,h.y-g.y),y=Math.atan2(u.x-g.x,u.y-g.y),m=y-v;m<0&&(m+=2*Math.PI);var b=y-m/2,x=Gk(f,{x:g.x+g.radius*Math.sin(b),y:g.y+g.radius*Math.cos(b)});x>2*g.radius&&(x=2*g.radius),(null===p||p.width>x)&&(p={circle:g,width:x,p1:h,p2:u})}null!==p&&(s.push(p),a+=Yk(p.circle.radius,p.width),u=h)}}else{var O=t[0];for(n=1;nMath.abs(O.radius-t[n].radius)){j=!0;break}j?a=o=0:(a=O.radius*O.radius*Math.PI,s.push({circle:O,p1:{x:O.x,y:O.y+O.radius},p2:{x:O.x-Rk,y:O.y+O.radius},width:2*O.radius}))}return o/=2,e&&(e.area=a+o,e.arcArea=a,e.polygonArea=o,e.arcs=s,e.innerPoints=r,e.intersectionPoints=i),a+o}function _k(t,e){for(var n=0;ne[n].radius+Rk)return!1;return!0}function Nk(t){for(var e=[],n=0;n=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var i=t-(n*n-e*e+t*t)/(2*n),r=e-(n*n-t*t+e*e)/(2*n);return Yk(t,i)+Yk(e,r)}function Wk(t,e){var n=Gk(t,e),i=t.radius,r=e.radius;if(n>=i+r||n<=Math.abs(i-r))return[];var a=(i*i-r*r+n*n)/(2*n),o=Math.sqrt(i*i-a*a),s=t.x+a*(e.x-t.x)/n,c=t.y+a*(e.y-t.y)/n,l=-(e.y-t.y)*(o/n),u=-(e.x-t.x)*(o/n);return[{x:s+l,y:c-u},{x:s-l,y:c+u}]}function Xk(t){for(var e={x:0,y:0},n=0;n=o&&(a=i[n],o=s)}var c=Object(Dk["nelderMead"])((function(n){return-1*Hk({x:n[0],y:n[1]},t,e)}),[a.x,a.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:c[0],y:c[1]},u=!0;for(n=0;nt[n].radius){u=!1;break}for(n=0;n0&&console.log("WARNING: area "+a+" not represented on screen")}return n}function Qk(t,e,n){var i=[],r=t-n,a=e;return i.push("M",r,a),i.push("A",n,n,0,1,0,r+2*n,a),i.push("A",n,n,0,1,0,r,a),i.join(" ")}function Zk(t){var e={};zk(t,e);var n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var i=n[0].circle;return Qk(i.x,i.y,i.radius)}for(var r=["\nM",n[0].p2.x,n[0].p2.y],a=0;as;r.push("\nA",s,s,0,c?1:0,1,o.p1.x,o.p1.y)}return r.join(" ")}function Jk(t,e){e=e||{},e.maxIterations=e.maxIterations||500;var n=e.initialLayout||rF,i=e.lossFunction||sF;t=eF(t);var r,a=n(t,e),o=[],s=[];for(r in a)a.hasOwnProperty(r)&&(o.push(a[r].x),o.push(a[r].y),s.push(r));for(var c=Object(Dk["nelderMead"])((function(e){for(var n={},r=0;re?1:-1})),e=0;e=Math.min(e[a].size,e[o].size)?u=1:t.size<=1e-10&&(u=-1),r[a][o]=r[o][a]=u})),{distances:i,constraints:r}}function iF(t,e,n,i){var r,a=0;for(r=0;r0&&d<=h||f<0&&d>=h||(a+=2*g*g,e[2*r]+=4*g*(o-l),e[2*r+1]+=4*g*(s-u),e[2*c]+=4*g*(l-o),e[2*c+1]+=4*g*(u-s))}return a}function rF(t,e){var n=oF(t,e),i=e.lossFunction||sF;if(t.length>=8){var r=aF(t,e),a=i(r,t),o=i(n,t);a+1e-8=Math.min(r[u].size,r[h].size)&&(l=0),a[u].push({set:h,size:c.size,weight:l}),a[h].push({set:u,size:c.size,weight:l})}var f=[];for(n in a)if(a.hasOwnProperty(n)){var p=0;for(o=0;o1)throw new Error("quantiles must be between 0 and 1");return 1===e?t[t.length-1]:0===e?t[0]:n%1!==0?t[Math.ceil(n)-1]:t.length%2===0?(t[n-1]+t[n])/2:t[n]}function zF(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function _F(t,e,n,i){n=n||0,i=i||t.length-1;while(i>n){if(i-n>600){var r=i-n+1,a=e-n+1,o=Math.log(r),s=.5*Math.exp(2*o/3),c=.5*Math.sqrt(o*s*(r-s)/r);a-r/2<0&&(c*=-1);var l=Math.max(n,Math.floor(e-a*s/r+c)),u=Math.min(i,Math.floor(e+(r-a)*s/r+c));_F(t,e,l,u)}var h=t[e],f=n,p=i;zF(t,n,e),t[i]>h&&zF(t,n,i);while(fh)p--}t[n]===h?zF(t,n,p):(p++,zF(t,p,i)),p<=e&&(n=p+1),e<=p&&(i=p-1)}}function NF(t,e){var n=t.slice();if(Array.isArray(e)){GF(n,e);for(var i=[],r=0;r0?u:h},v=pf({},t,{options:{xField:r,yField:aE,seriesField:r,rawFields:[a,oE,cE,aE],widthRatio:c,interval:{style:l,shape:p||"waterfall",color:g}}}),y=Fp(v).ext,m=y.geometry;return m.customInfo(Object(F["a"])(Object(F["a"])({},d),{leaderLine:s})),t}function vE(t){var e,n,i=t.options,r=i.xAxis,a=i.yAxis,o=i.xField,s=i.yField,c=i.meta,l=pf({},{alias:s},Object(E["s"])(c,s));return gf(fp((e={},e[o]=r,e[s]=a,e[aE]=a,e),pf({},c,(n={},n[aE]=l,n[oE]=l,n[sE]=l,n))))(t)}function yE(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,a=n.xField,o=n.yField;return!1===i?e.axis(a,!1):e.axis(a,i),!1===r?(e.axis(o,!1),e.axis(aE,!1)):(e.axis(o,r),e.axis(aE,r)),t}function mE(t){var e=t.chart,n=t.options,i=n.legend,r=n.total,a=n.risingFill,o=n.fallingFill,s=n.locale,c=bp(s);if(!1===i)e.legend(!1);else{var l=[{name:c.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:a}}},{name:c.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:o}}}];r&&l.push({name:r.label||"",value:"total",marker:{symbol:"square",style:pf({},{r:5},Object(E["s"])(r,"style"))}}),e.legend(pf({},{custom:!0,position:"top",items:l},i)),e.removeInteraction("legend-filter")}return t}function bE(t){var e=t.chart,n=t.options,i=n.label,r=n.labelMode,a=n.xField,o=vf(e,"interval");if(i){var s=i.callback,c=Object(F["f"])(i,["callback"]);o.label({fields:"absolute"===r?[sE,a]:[oE,a],callback:s,cfg:Of(c)})}else o.label(!1);return t}function xE(t){var e=t.chart,n=t.options,i=n.tooltip,r=n.xField,a=n.yField;if(!1!==i){e.tooltip(Object(F["a"])({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[a]},i));var o=e.geometries[0];(null===i||void 0===i?void 0:i.formatter)?o.tooltip("".concat(r,"*").concat(a),i.formatter):o.tooltip(a)}else e.tooltip(!1);return t}function OE(t){return gf(dE,cp,gE,vE,yE,mE,xE,bE,lp,op,sp,pp())(t)}Er("interval","waterfall",{draw:function(t,e){var n=t.customInfo,i=t.points,r=t.nextPoints,a=e.addGroup(),o=this.parsePath(uE(i)),s=hE(t);a.addShape("path",{attrs:Object(F["a"])(Object(F["a"])({},s),{path:o})});var c=Object(E["s"])(n,"leaderLine");if(c&&r){var l=[["M",i[2].x,i[2].y],["L",r[0].x,r[0].y]];i[2].y===r[1].y&&(l[1]=["L",r[1].x,r[1].y]),l=this.parsePath(l),a.addShape("path",{attrs:Object(F["a"])({path:l},c.style||{})})}return a}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="waterfall",e}Object(F["c"])(e,t),e.getDefaultOptions=function(){return lE},e.prototype.changeData=function(t){var e=this.options,n=e.xField,i=e.yField,r=e.total;this.updateOption({data:t}),this.chart.changeData(pE(t,n,i,r))},e.prototype.getSchemaAdaptor=function(){return OE},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}})(zp);var jE="color",wE=pf({},zp.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",jE],formatter:function(t){return{name:t.text,value:t.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}}),CE={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function ME(t,e){return e=Object(E["b"])({},CE,e),SE(t,e)}function SE(t,e){var n=HE();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(t){Object(E["K"])(e[t])||n[t](e[t])})),n.words(t),e.imageMask&&n.createMask(e.imageMask);var i=n.start(),r=i._tags;r.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var a=e.size,o=a[0],s=a[1];return r.push({text:"",value:0,x:0,y:0,opacity:0}),r.push({text:"",value:0,x:o,y:s,opacity:0}),r}var AE=Math.PI/180,kE=64,FE=2048;function EE(t){return t.text}function IE(){return"serif"}function TE(){return"normal"}function PE(t){return t.value}function BE(){return 90*~~(2*Math.random())}function LE(){return 1}function DE(t,e,n,i){if(!e.sprite){var r=t.context,a=t.ratio;r.clearRect(0,0,(kE<<5)/a,FE/a);var o=0,s=0,c=0,l=n.length;--i;while(++i>5<<5,h=~~Math.max(Math.abs(g+v),Math.abs(g-v))}else u=u+31>>5<<5;if(h>c&&(c=h),o+u>=kE<<5&&(o=0,s+=c,c=0),s+h>=FE)break;r.translate((o+(u>>1))/a,(s+(h>>1))/a),e.rotate&&r.rotate(e.rotate*AE),r.fillText(e.text,0,0),e.padding&&(r.lineWidth=2*e.padding,r.strokeText(e.text,0,0)),r.restore(),e.width=u,e.height=h,e.xoff=o,e.yoff=s,e.x1=u>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,o+=u}var m=r.getImageData(0,0,(kE<<5)/a,FE/a).data,b=[];while(--i>=0)if(e=n[i],e.hasText){u=e.width;for(var x=u>>5,O=(h=e.y1-e.y0,0);O>5),S=m[(s+C)*(kE<<5)+(o+O)<<2]?1<<31-O%32:0;b[M]|=S,j|=S}j?w=C:(e.y0++,h--,C--,s++)}e.y1=e.y0+w,e.sprite=b.slice(0,(e.y1-e.y0)*x)}}}function RE(t,e,n){n>>=5;for(var i,r=t.sprite,a=t.width>>5,o=t.x-(a<<4),s=127&o,c=32-s,l=t.y1-t.y0,u=(t.y+t.y0)*n+(o>>5),h=0;h>>s:0))&e[u+f])return!0;u+=n}return!1}function zE(t,e){var n=t[0],i=t[1];e.x+e.x0i.x&&(i.x=e.x+e.x1),e.y+e.y1>i.y&&(i.y=e.y+e.y1)}function _E(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0e[0].y&&t.y+t.y0>2);t.width=(kE<<5)/e,t.height=FE/e;var n=t.getContext("2d",{willReadFrequently:!0});return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}function g(e,n,i){var r,a,c,l=n.x,u=n.y,h=Math.sqrt(t[0]*t[0]+t[1]*t[1]),f=o(t),p=s()<.5?1:-1,d=-p;while(r=f(d+=p)){if(a=~~r[0],c=~~r[1],Math.min(Math.abs(a),Math.abs(c))>=h)break;if(n.x=l+a,n.y=u+c,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!i||!RE(n,e,t[0]))&&(!i||_E(n,i))){for(var g=n.sprite,v=n.width>>5,y=t[0]>>5,m=n.x-(v<<4),b=127&m,x=32-b,O=n.y1-n.y0,j=void 0,w=(n.y+n.y0)*y+(m>>5),C=0;C>>b:0);w+=y}return delete n.sprite,!0}}return!1}return p.start=function(){var o=t[0],v=t[1],y=d(f()),m=p.board?p.board:GE((t[0]>>5)*t[1]),b=c.length,x=[],O=c.map((function(t,o,s){return t.text=u.call(this,t,o,s),t.font=e.call(this,t,o,s),t.style=h.call(this,t,o,s),t.weight=i.call(this,t,o,s),t.rotate=r.call(this,t,o,s),t.size=~~n.call(this,t,o,s),t.padding=a.call(this,t,o,s),t})).sort((function(t,e){return e.size-t.size})),j=-1,w=p.board?[{x:0,y:0},{x:o,y:v}]:null;function C(){var e=Date.now();while(Date.now()-e>1,n.y=v*(s()+.5)>>1,DE(y,n,O,j),n.hasText&&g(m,n,w)&&(x.push(n),w?p.hasImage||zE(w,n):w=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}p._tags=x,p._bounds=w}return C(),p},p.createMask=function(e){var n=document.createElement("canvas"),i=t[0],r=t[1];if(i&&r){var a=i>>5,o=GE((i>>5)*r);n.width=i,n.height=r;var s=n.getContext("2d");s.drawImage(e,0,0,e.width,e.height,0,0,i,r);for(var c=s.getImageData(0,0,i,r).data,l=0;l>5),f=l*i+u<<2,d=c[f]>=250&&c[f+1]>=250&&c[f+2]>=250,g=d?1<<31-u%32:0;o[h]|=g}p.board=o,p.hasImage=!0}},p.timeInterval=function(t){l=null==t?1/0:t},p.words=function(t){c=t},p.size=function(e){t=[+e[0],+e[1]]},p.font=function(t){e=WE(t)},p.fontWeight=function(t){i=WE(t)},p.rotate=function(t){r=WE(t)},p.spiral=function(t){o=XE[t]||t},p.fontSize=function(t){n=WE(t)},p.padding=function(t){a=WE(t)},p.random=function(t){s=WE(t)},p}function qE(t){var e=t.options,n=t.chart,i=n,r=i.width,a=i.height,o=i.padding,s=i.appendPadding,c=i.ele,l=e.data,u=e.imageMask,h=e.wordField,f=e.weightField,p=e.colorField,d=e.wordStyle,g=e.timeInterval,v=e.random,y=e.spiral,m=e.autoFit,b=void 0===m||m,x=e.placementStrategy;if(!l||!l.length)return[];var O=d.fontFamily,j=d.fontWeight,w=d.padding,C=d.fontSize,M=JE(l,f),S=[eI(M),nI(M)],A=l.map((function(t){return{text:t[h],value:t[f],color:t[p],datum:t}})),k={imageMask:u,font:O,fontSize:ZE(C,S),fontWeight:j,size:UE({width:r,height:a,padding:o,appendPadding:s,autoFit:b,container:c}),padding:w,timeInterval:g,random:v,spiral:y,rotate:$E(e)};if(Object(E["I"])(x)){var I=A.map((function(t,e,i){return Object(F["a"])(Object(F["a"])(Object(F["a"])({},t),{hasText:!!t.text,font:WE(k.font)(t,e,i),weight:WE(k.fontWeight)(t,e,i),rotate:WE(k.rotate)(t,e,i),size:WE(k.fontSize)(t,e,i),style:"normal"}),x.call(n,t,e,i))}));return I.push({text:"",value:0,x:0,y:0,opacity:0}),I.push({text:"",value:0,x:k.size[0],y:k.size[1],opacity:0}),I}return ME(A,k)}function UE(t){var e=t.width,n=t.height,i=t.container,r=t.autoFit,a=t.padding,o=t.appendPadding;if(r){var s=df(i);e=s.width,n=s.height}e=e||400,n=n||400;var c=KE({padding:a,appendPadding:o}),l=c[0],u=c[1],h=c[2],f=c[3],p=[e-(f+u),n-(l+h)];return p}function KE(t){var e=Mf(t.padding),n=Mf(t.appendPadding),i=e[0]+n[0],r=e[1]+n[1],a=e[2]+n[2],o=e[3]+n[3];return[i,r,a,o]}function QE(t){return new Promise((function(e,n){if(t instanceof HTMLImageElement)e(t);else{if(Object(E["Q"])(t)){var i=new Image;return i.crossOrigin="anonymous",i.src=t,i.onload=function(){e(i)},void(i.onerror=function(){$h(Kh.ERROR,!1,"image %s load failed !!!",t),n()})}$h(Kh.WARN,void 0===t,"The type of imageMask option must be String or HTMLImageElement."),n()}}))}function ZE(t,e){if(Object(E["I"])(t))return t;if(Object(E["C"])(t)){var n=t[0],i=t[1];if(!e)return function(){return(i+n)/2};var r=e[0],a=e[1];return a===r?function(){return(i+n)/2}:function(t){var e=t.value;return(i-n)/(a-r)*(e-r)+n}}return function(){return t}}function JE(t,e){return t.map((function(t){return t[e]})).filter((function(t){return"number"===typeof t&&!isNaN(t)}))}function $E(t){var e=tI(t),n=e.rotation,i=e.rotationSteps;if(!Object(E["C"])(n))return n;var r=n[0],a=n[1],o=1===i?0:(a-r)/(i-1);return function(){return a===r?a:Math.floor(Math.random()*i)*o}}function tI(t){var e=t.wordStyle.rotationSteps;return e<1&&($h(Kh.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1),{rotation:t.wordStyle.rotation,rotationSteps:e}}function eI(t){return Math.min.apply(Math,t)}function nI(t){return Math.max.apply(Math,t)}function iI(t){var e=t.chart,n=t.options,i=n.colorField,r=n.color,a=qE(t);e.data(a);var o=pf({},t,{options:{xField:"x",yField:"y",seriesField:i&&jE,rawFields:Object(E["I"])(r)&&Object(F["g"])(Object(F["g"])([],Object(E["s"])(n,"rawFields",[]),!0),["datum"],!1),point:{color:r,shape:"word-cloud"}}}),s=Ip(o).ext;return s.geometry.label(!1),e.coordinate().reflect("y"),e.axis(!1),t}function rI(t){return gf(fp({x:{nice:!1},y:{nice:!1}}))(t)}function aI(t){var e=t.chart,n=t.options,i=n.legend,r=n.colorField;return!1===i?e.legend(!1):r&&e.legend(jE,i),t}function oI(t){gf(iI,rI,ap,aI,op,sp,cp,lp)(t)}function sI(t){return{fontSize:t.data.size,text:t.data.text,textAlign:"center",fontFamily:t.data.font,fontWeight:t.data.weight,fill:t.color||t.defaultStyle.stroke,textBaseline:"alphabetic"}}Er("point","word-cloud",{draw:function(t,e){var n=t.x,i=t.y,r=e.addShape("text",{attrs:Object(F["a"])(Object(F["a"])({},sI(t)),{x:n,y:i})}),a=t.data.rotate;return"number"===typeof a&&wa.rotate(r,a*Math.PI/180),r}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="word-cloud",e}Object(F["c"])(e,t),e.getDefaultOptions=function(){return wE},e.prototype.changeData=function(t){this.updateOption({data:t}),this.options.imageMask?this.render():this.chart.changeData(qE({chart:this.chart,options:this.options}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){var e=this;return new Promise((function(n){var i=e.options.imageMask;if(!i)return t.prototype.render.call(e),void n();var r=function(i){e.options=Object(F["a"])(Object(F["a"])({},e.options),{imageMask:i||null}),t.prototype.render.call(e),n()};QE(i).then(r).catch(r)}))},e.prototype.getSchemaAdaptor=function(){return oI},e.prototype.triggerResize=function(){var e=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout((function(){t.prototype.triggerResize.call(e)})))}})(zp),function(t){function e(e,n,i,r){var a=t.call(this,e,pf({},r,n))||this;return a.type="g2-plot",a.defaultOptions=r,a.adaptor=i,a}Object(F["c"])(e,t),e.prototype.getDefaultOptions=function(){return this.defaultOptions},e.prototype.getSchemaAdaptor=function(){return this.adaptor}}(zp);mp("en-US",xp),mp("zh-CN",Op);var cI,lI={current:1,limit:10,type:""};function uI(t,e,n,i){this._point=e,this._map=t,this._num=n,this._BMapGL=i,this._div=null}uI.prototype=new BMapGL.Overlay,uI.prototype.initialize=function(t){var e=document.createElement("div");e.style.position="relative",e.style.width="26px",e.style.height="12px",e.style.zIndex=this._BMapGL.Overlay.getZIndex(this._point.lat),e.style.background="transparent";var n=document.createElement("img");n.src="https://saastest.zhuangqixiaoguan.com/static/images/intelanalycirclebox.png",n.style.width="26px",n.style.height="12px",e.appendChild(n);var i=document.createElement("div");i.style.width="1px",i.style.height="42px",i.style.position="absolute",i.style.top="-41px",i.style.left="50%",i.style.background="linear-gradient(0deg, rgba(2,246,248,0) 0%, #02F6F8 100%)",e.appendChild(i);var r=document.createElement("div");r.style.width="38px",r.style.height="38px",r.style.position="absolute",r.style.top="-71px",r.style.left="50%",r.style.transform="translateX(-50%)",r.style.borderRadius="50%",r.style.background="url(https://saastest.zhuangqixiaoguan.com/static/images/centerintelanalybg.png)",r.style.backgroundSize="100% 100%",r.style.overflow="hidden",e.appendChild(r);var a=document.createElement("img");a.src="https://saastest.zhuangqixiaoguan.com/static/images/intelanalyindex.png",a.style.display="block",a.style.width="13px",a.style.height="13px",a.style.margin="6px auto 0",r.appendChild(a);var o=document.createElement("div");return o.style.textAlign="center",o.appendChild(document.createTextNode(this._num+"套")),o.style.fontSize="8px",o.style.color="#00FBFF",o.style.transform="scale(0.8)",r.appendChild(o),this._div=e,this._map.getPanes().labelPane.appendChild(e),e},uI.prototype.addEventListener=function(t,e){this._div["on"+t]=e},uI.prototype.draw=function(){var t=this._map.pointToOverlayPixel(this._point);this._div.style.left=t.x-13+"px",this._div.style.top=t.y-6+"px",this._div.style.display=""};var hI=null,fI=0,pI={name:"intelanaly",data:function(){return{date:"",time:"",time1:"",start_date:"",end_date:"",clueobj:null,adwxobj:null,intentionobj:null,titype:1,type:1,listLoading:!1,crmlist:null,total:0,listQuery:Object.assign({},lI),showflag:!1,lfcount:0,dcount:0,allmoney:"0",perforlist:null,performancearr:null,citylist:null,province_city:"",signum:0,signmoney:0,dingnum:0,dingmoney:0,dingarr:null,timenum:1,rid:"",code:"",nowtext:"",title:""}},components:{},watch:{},computed:{},methods:{indexMethod:function(t){return 10*(this.listQuery.current-1)+t+1},configfun:function(){var t=this,e={r:this.rid};C(e).then((function(e){if(sessionStorage.setItem(t.rid,e.data.company_name),t.title=e.data.company_name,document.title=(t.title?t.title:"志远装饰")+"数字化大屏",0==e.data.code){var n=escape(window.location.origin+"/largescreen.html#/intelanaly?r="+t.rid);new WxLogin({self_redirect:!1,id:"login_container",appid:e.data.data.appid,scope:"snsapi_login",redirect_uri:n,state:e.data.data.state,style:"white",href:e.data.data.domain+"/static/css/wechat.css"})}}))},logoutap:function(){var t=this,e={};M(e).then((function(e){sessionStorage.removeItem("wzhcode"),window.location.href=window.location.origin+"/largescreen.html#/intelanaly?r="+t.rid}))},loginfun:function(){var t=this;sessionStorage.setItem("wzhcode",this.code);var e={r:this.rid,code:this.code};w(e).then((function(e){0==e.data.code&&(cI=t.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),t.cluefun(),t.intentionfun(),t.platformwxfun(),t.platformtanfun(),t.platformyejifun(),1==t.titype?t.personfun():t.teamfun(),t.performancefun(),t.regionfun(),t.platformsignfun(),t.platformdingfun(),clearInterval(hI),hI=setInterval((function(e){fI=1*hI+1,fI%600==0&&(t.cluefun(),t.intentionfun(),t.platformwxfun(),t.platformtanfun(),t.platformyejifun(),1==t.titype?t.personfun():t.teamfun(),t.performancefun(),t.regionfun(),t.platformsignfun(),t.platformdingfun())}),1e3))}))},onPick:function(t){var e=new Date(t[0]),n=new Date(t[1]),i=e.getFullYear()+"-"+(1*e.getMonth()+1)+"-"+e.getDate(),r=n.getFullYear()+"-"+(1*n.getMonth()+1)+"-"+n.getDate();this.time1=i+"——"+r,this.start_date=i,this.end_date=r,cI=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),this.cluefun(),this.intentionfun(),this.platformwxfun(),this.platformtanfun(),this.platformyejifun(),1==this.titype?this.personfun():this.teamfun(),this.performancefun(),this.regionfun(),this.platformsignfun(),this.platformdingfun()},setime:function(t){this.timenum=t;var e=new Date,n=e.getFullYear(),i=e.getMonth()+1,r=e.getDate();1==this.timenum?(this.start_date=n+"-"+(i<10?"0"+i:i)+"-"+(r<10?"0"+r:r),this.end_date=n+"-"+(i<10?"0"+i:i)+"-"+(r<10?"0"+r:r)):2==this.timenum?(this.start_date=this.utils.getCurrentWeekFirstDay(),this.end_date=this.utils.getCurrentWeekLastDay()):3==this.timenum?(this.start_date=this.utils.getmonthfirstday(),this.end_date=this.utils.getmonthlastday()):4==this.timenum&&(this.start_date="",this.end_date=n+"-"+(i<10?"0"+i:i)+"-"+(r<10?"0"+r:r)),5!=this.timenum?(cI=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),this.cluefun(),this.intentionfun(),this.platformwxfun(),this.platformtanfun(),this.platformyejifun(),1==this.titype?this.personfun():this.teamfun(),this.performancefun(),this.regionfun(),this.platformsignfun(),this.platformdingfun()):this.$refs.datepicker1.focus()},regionfun:function(){var t=this,e=this,n={start_date:e.start_date,end_date:e.end_date};b(n).then((function(n){0==n.data.code&&(e.citylist=n.data.data,t.province_city=n.data.province_city,t.$nextTick((function(){e.getmapfun()})))}))},setperftap:function(t){this.titype=t,this.perforlist=[],1==this.titype?this.personfun():this.teamfun()},personfun:function(){var t=this,e={start_date:t.start_date,end_date:t.end_date};v(e).then((function(e){if(0==e.data.code){var n=e.data.data.length>0?e.data.data[0].money:0;for(var i in e.data.data){if(0==i)e.data.data[i].width=1;else{var r=e.data.data[i].money/n;e.data.data[i].width=r.toFixed(2)}e.data.data[i].width=e.data.data[i].width<.02?.02:e.data.data[i].width}t.perforlist=e.data.data}}))},teamfun:function(){var t=this,e={start_date:t.start_date,end_date:t.end_date};y(e).then((function(e){if(0==e.data.code){var n=e.data.data.length>0?e.data.data[0].money:0;for(var i in e.data.data){if(0==i)e.data.data[i].width=1;else{var r=e.data.data[i].money/n;e.data.data[i].width=r.toFixed(2)}e.data.data[i].width=e.data.data[i].width<.02?.02:e.data.data[i].width}t.perforlist=e.data.data}}))},timefun:function(){var t=new Date,e=t.getHours(),n=t.getMinutes(),i=t.getSeconds();this.time=(e<10?"0"+e:e)+":"+(n<10?"0"+n:n)+":"+(i<10?"0"+i:i)},cluefun:function(){var t=this,e=this,n={start_date:e.start_date,end_date:e.end_date};s(n).then((function(n){if(0==n.data.code){e.clueobj=n.data;var i=[],r=[],a=n.data.data.reverse();for(var o in a)a[o].day?i.push(a[o].year+"/"+a[o].month+"/"+a[o].day):i.push(a[o].year+"/"+a[o].month),r.push(a[o].clue_num);var s={type:"inside",start:0,end:80,startValue:0,endValue:10};a.length>40&&(s={type:"inside",start:0,end:10,startValue:0,endValue:10}),a.length>30&&(s={type:"inside",start:0,end:20,startValue:0,endValue:10}),a.length>20&&(s={type:"inside",start:0,end:50,startValue:0,endValue:10}),a.length>12&&(s={type:"inside",start:0,end:60,startValue:0,endValue:10}),t.$nextTick((function(){t.getclueEchart(i,r,s)}))}}))},getclueEchart:function(t,e,n){var i=this,r=this.$echarts.init(document.getElementById("cluechart")),a={tooltip:{trigger:"axis",triggerOn:"mousemove|click",axisPointer:{type:"none"},className:"clue-tooltip",formatter:"{c}"},grid:{left:"3%",right:"4%",bottom:"7%",top:"5%",containLabel:!0},xAxis:{type:"category",axisLabel:{textStyle:{color:"#107A7A",fontSize:"12"}},axisTick:{show:!1},axisLine:{lineStyle:{color:"#118282"}},animation:!0,animationDuration:function(t){return 100*t},data:t},yAxis:{type:"value",axisLabel:{show:!0,interval:"auto",textStyle:{color:"#107A7A ",fontSize:"12"}},splitLine:{lineStyle:{type:"dashed",color:"#094246"}}},dataZoom:[n],series:{type:"line",lineStyle:{color:"#00EAFF"},showSymbol:!1,smooth:!0,areaStyle:{color:new i.$echarts.graphic.LinearGradient(0,1,0,0,[{offset:0,color:"rgba(0, 234, 255,0)"},{offset:1,color:"rgba(0, 234, 255,0.6)"}]),origin:"start"},data:e}};r.setOption(a,!0),window.addEventListener("resize",(function(){r.resize()}))},intentionfun:function(){var t=this,e=this,n={start_date:e.start_date,end_date:e.end_date};c(n).then((function(n){if(0==n.data.code){e.intentionobj=n.data;var i=[],r=[{value:0,name:"非常高",itemStyle:{color:"rgba(153,39,251,0.5)",borderColor:"#9927FB",borderWidth:1}},{value:0,name:"高",itemStyle:{color:"rgba(84,93,255,0.5)",borderColor:"#545DFF",borderWidth:1}},{value:0,name:"中",itemStyle:{color:"rgba(5,219,220,0.5)",borderColor:"#05DBDC",borderWidth:1}},{value:0,name:"低",itemStyle:{color:"rgba(80,166,249,0.5)",borderColor:"#50A6F9",borderWidth:1}}],a=[{type:"bar",name:"非常高",stack:"total",barMaxWidth:"15",barMinHeight:5,stackStrategy:"all",data:[]},{type:"bar",name:"高",barMinHeight:5,stack:"total",barMaxWidth:"15",stackStrategy:"all",data:[]},{type:"bar",stack:"total",barMinHeight:5,name:"中",barMaxWidth:"15",stackStrategy:"all",data:[]},{type:"bar",name:"低",stack:"total",barMinHeight:5,barMaxWidth:"15",stackStrategy:"all",data:[]}];for(var o in n.data.data){r[o].value=n.data.data[o].count,a[o].name=n.data.data[o].intention;var s=n.data.data[o].data.reverse();for(var c in s){var l={value:s[c].num,itemStyle:{color:0==o?"rgba(153,39,251,0.5)":1==o?"rgba(84,93,255,0.5)":2==o?"rgba(5,219,220,0.5)":"rgba(80,166,249,0.5)",borderColor:0==o?"#9927FB":1==o?"#545DFF":2==o?"#05DBDC":"#50A6F9",borderWidth:1}};a[o].data.push(l)}}for(var u in n.data.data[0].data)n.data.data[0].data[u].day?i.push(n.data.data[0].data[u].year+"/"+n.data.data[0].data[u].month+"/"+n.data.data[0].data[u].day):i.push(n.data.data[0].data[u].year+"/"+n.data.data[0].data[u].month);var h={type:"inside",start:0,end:40,startValue:0,endValue:2};i.length>40&&(h={type:"inside",start:0,end:10,startValue:0,endValue:2}),i.length>30&&(h={type:"inside",start:0,end:20,startValue:0,endValue:2}),i.length>20&&(h={type:"inside",start:0,end:30,startValue:0,endValue:2}),i.length>12&&(h={type:"inside",start:0,end:40,startValue:0,endValue:2}),t.$nextTick((function(){t.intentionEchart(r),t.rightintentionchart(i,a,h)}))}}))},intentionEchart:function(t){var e=this.$echarts.init(document.getElementById("leftintentionchart")),n={tooltip:{show:!1,triggerOn:"none"},grid:{left:"3%",right:"4%",bottom:"7%",top:"5%",containLabel:!0},series:{type:"pie",center:["50%","46%"],radius:["54%","67%"],labelLine:{show:!1},label:{show:!1},selectedMode:!1,selectedOffset:0,minAngle:10,select:{disabled:!0},hoverAnimation:!1,animation:!0,animationDuration:function(t){return 300*t},data:t}};e.setOption(n,!0),window.addEventListener("resize",(function(){e.resize()}))},rightintentionchart:function(t,e,n){var i=this.$echarts.init(document.getElementById("rightintentionchart")),r={tooltip:{trigger:"axis",triggerOn:"mousemove|click",axisPointer:{type:"none"},confine:!0},grid:{left:"3%",right:"4%",bottom:"7%",top:"20%",containLabel:!0},yAxis:{type:"value",axisLabel:{show:!0,interval:"0",textStyle:{color:"#107A7A",fontSize:"12"}},axisLine:{show:!0,lineStyle:{color:"#118282"}},splitLine:{show:!1}},xAxis:{type:"category",axisLabel:{textStyle:{color:"#107A7A",fontSize:"12"}},axisTick:{show:!1},axisLine:{lineStyle:{color:"#118282"}},animation:!0,animationDuration:function(t){return 100*t},data:t},dataZoom:[n],series:e};i.setOption(r,!0),window.addEventListener("resize",(function(){i.resize()}))},platformwxfun:function(){var t=this,e=this,n={start_date:e.start_date,end_date:e.end_date};u(n).then((function(n){if(0==n.data.code){e.adwxobj=n.data;var i=[],r=[],a=n.data.data.reverse();i.push("");var o={value:"",itemStyle:{color:"rgba(24,143,254,0.4)",borderColor:"#188FFE",borderWidth:2}};for(var s in r.push(o),a){a[s].day?i.push(a[s].year+"/"+a[s].month+"/"+a[s].day):i.push(a[s].year+"/"+a[s].month);var c={value:a[s].wx_num,itemStyle:{color:"rgba(24,143,254,0.4)",borderColor:"#188FFE",borderWidth:2}};r.push(c)}i.push(""),r.push(o);var l={type:"inside",start:0,end:80,startValue:0,endValue:10};a.length>40&&(l={type:"inside",start:0,end:5,startValue:0,endValue:10}),a.length>30&&(l={type:"inside",start:0,end:10,startValue:0,endValue:10}),a.length>20&&(l={type:"inside",start:0,end:20,startValue:0,endValue:10}),a.length>12&&(l={type:"inside",start:0,end:60,startValue:0,endValue:10}),t.$nextTick((function(){t.adwxfun(i,r,l)}))}}))},adwxfun:function(t,e,n){var i=this.$echarts.init(document.getElementById("adwxchart")),r={tooltip:{trigger:"axis",triggerOn:"mousemove|click",axisPointer:{type:"none"},className:"clue-tooltip",formatter:"{c}",confine:!0},grid:{left:"3%",right:"4%",bottom:"1",top:"10",containLabel:!0},yAxis:{type:"value",axisLabel:{show:!0,interval:"0",textStyle:{color:"#107A7A",fontSize:"12"}},axisLine:{show:!0,lineStyle:{color:"#118282"}},splitLine:{show:!1}},xAxis:{type:"category",boundaryGap:!1,axisLabel:{textStyle:{color:"#107A7A",fontSize:"12"}},axisTick:{show:!1},axisLine:{lineStyle:{color:"#118282"}},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#094449",width:1}},animation:!0,animationDuration:function(t){return 100*t},data:t},dataZoom:[n],series:[{type:"bar",barMaxWidth:"15",data:e}]};i.setOption(r,!0),window.addEventListener("resize",(function(){i.resize()}))},tanfun:function(t,e,n,i){var r=this.$echarts.init(document.getElementById("tanechart")),a={tooltip:{trigger:"axis",triggerOn:"mousemove|click",axisPointer:{type:"none"},confine:!0},grid:{left:"3%",right:"4%",bottom:"4",top:"10",containLabel:!0},yAxis:{type:"value",axisLabel:{show:!0,interval:"0",textStyle:{color:"#107A7A",fontSize:"12"}},axisLine:{show:!0,lineStyle:{color:"#118282"}},splitLine:{show:!1}},xAxis:{type:"category",axisLabel:{textStyle:{color:"#107A7A",fontSize:"12"}},axisTick:{show:!1},axisLine:{lineStyle:{color:"#118282"}},animation:!0,animationDuration:function(t){return 100*t},data:t},dataZoom:[i],series:[{name:"量房客户",type:"bar",barMaxWidth:"15",data:e},{name:"到店客户",type:"line",lineStyle:{color:"#05DBDC",width:2},symbol:"circle",symbolSize:10,itemStyle:{show:!0,borderWidth:3,borderColor:"#4ECAD9",color:"#4ECAD9",shadowColor:"rgba(78,202,217,1)",shadowBlur:12,shadowOffsetX:0,shadowOffsetY:0},data:n}]};r.setOption(a,!0),window.addEventListener("resize",(function(){r.resize()}))},platformtanfun:function(){var t=this,e=this,n={start_date:e.start_date,end_date:e.end_date};p(n).then((function(e){if(0==e.data.code){t.lfcount=e.data.data.liangfang.count,t.dcount=e.data.data.daodian.count;var n=[],i=[],r=[],a=e.data.data.liangfang.data.reverse();for(var o in a){a[o].day?n.push(a[o].year+"/"+a[o].month+"/"+a[o].day):n.push(a[o].year+"/"+a[o].month);var s={value:a[o].num,itemStyle:{color:"rgba(78,202,217,0.4)",borderColor:"#4ECAD9",borderWidth:2}};i.push(s)}var c=e.data.data.daodian.data.reverse();for(var l in c)r.push(c[l].num);var u={type:"inside",start:0,end:80,startValue:0,endValue:10};a.length>40&&(u={type:"inside",start:0,end:5,startValue:0,endValue:10}),a.length>30&&(u={type:"inside",start:0,end:10,startValue:0,endValue:10}),a.length>20&&(u={type:"inside",start:0,end:20,startValue:0,endValue:10}),a.length>12&&(u={type:"inside",start:0,end:60,startValue:0,endValue:10}),t.$nextTick((function(){t.tanfun(n,i,r,u)}))}}))},performancechartfun:function(t,e){var n=this.$echarts.init(document.getElementById("performancechart")),i={series:[{type:"gauge",startAngle:180,endAngle:0,center:["50%","94%"],radius:"110%",splitNumber:8,axisLine:{lineStyle:{width:10,color:[[.33,"#249efb"],[.67,"#05DBDC"],[1,"#f95757"]]}},axisTick:{length:0,lineStyle:{width:0}},splitLine:{length:4,distance:-15,lineStyle:{color:"#BAE7FF",width:1}},axisLabel:{color:"#ffffff",fontSize:8,distance:-13,rotate:"tangential"},min:0,max:t,data:[e]}]};n.setOption(i,!0),window.addEventListener("resize",(function(){n.resize()}))},getmapfun:function(){var t=this,e=new BMapGL.Map("container");e.setMapStyleV2({styleId:"141233634dbb4fe7e512895d270b38e7"}),e.disableDoubleClickZoom(),e.disablePinchToZoom();var n=new BMapGL.Geocoder,i=this.province_city.split("/").join("");n.getPoint(i,(function(r){if(r)for(var a in e.centerAndZoom(r,13),e.enableKeyboard(),e.enableScrollWheelZoom(),t.citylist)t.setcityfun(n,e,i,t.citylist[a].county,t.citylist[a].count,BMapGL);else alert("您选择的地址没有解析到结果!")}),i)},setcityfun:function(t,e,n,i,r,a){this.creatmap(t,e,n,i,r,a)},creatmap:function(t,e,n,i,r){var a=this;t.getPoint(n+i,(function(t){if(t){var n=new uI(e,t,r,BMapGL);e.addOverlay(n),n.addEventListener("click",(function(t){a.total=0,a.showflag=!0,a.nowtext=i,a.type=7,a.listQuery={current:1,limit:10,type:""},a.listLoading=!0,a.regionDetailfun(i)}))}}),n)},regionDetailfun:function(t){var e=this,n=this,i={page:this.listQuery.current,start_date:n.start_date,end_date:n.end_date,qu:t};x(i).then((function(t){console.log(t),0==t.data.code&&(n.crmlist=t.data.data,n.total=t.data.count),e.listLoading=!1}))},signfun:function(t,e,n,i){var r=this.$echarts.init(document.getElementById("signechart")),a={tooltip:{trigger:"axis",triggerOn:"mousemove|click",axisPointer:{type:"none"},confine:!0},grid:{left:"3%",right:"4%",bottom:"1",top:"35",containLabel:!0},yAxis:[{type:"value",name:"(组)",axisLabel:{show:!0,textStyle:{color:"#107A7A",fontSize:"12"}},axisLine:{show:!0,lineStyle:{color:"#118282"}},splitLine:{show:!1}},{type:"value",name:"(万元)",axisLabel:{show:!0,interval:"0",textStyle:{color:"#107A7A",fontSize:"12"}},axisLine:{show:!0,lineStyle:{color:"#118282"}},splitLine:{show:!1}}],xAxis:{type:"category",axisLabel:{textStyle:{color:"#107A7A",fontSize:"12"}},axisTick:{show:!1},axisLine:{lineStyle:{color:"#118282"}},animation:!0,animationDuration:function(t){return 100*t},data:t},dataZoom:[i],series:[{name:"转单金额",type:"bar",barMaxWidth:"15",yAxisIndex:0,data:e},{name:"累计转单",type:"line",yAxisIndex:1,lineStyle:{color:"#05DBDC",width:2},symbol:"circle",symbolSize:10,itemStyle:{show:!0,borderWidth:3,borderColor:"#4ECAD9",color:"#4ECAD9",shadowColor:"rgba(78,202,217,1)",shadowBlur:12,shadowOffsetX:0,shadowOffsetY:0},data:n}]};r.setOption(a,!0),window.addEventListener("resize",(function(){r.resize()}))},despoitechartfun:function(t,e,n,i){var r=this,a=this.$echarts.init(document.getElementById("despoitechart")),o={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},confine:!0},grid:[{left:"5%",width:"41%",top:"10%",containLabel:!0,bottom:4},{right:"5%",width:"48%",containLabel:!0,bottom:4,top:"10%"}],xAxis:[{type:"value",gridIndex:0,name:"组",nameTextStyle:{color:"#107A7A"},axisLine:{show:!0,lineStyle:{color:"#118282"}},axisLabel:{show:!0,color:"#118282"},inverse:!0,splitLine:{show:!1}},{type:"value",name:"元",nameTextStyle:{color:"#107A7A"},axisLine:{show:!0,lineStyle:{color:"#118282"}},axisLabel:{show:!0,color:"#118282",hideOverlap:!0},gridIndex:1,inverse:!1,splitLine:{show:!1}}],yAxis:[{type:"category",axisLine:{show:!0,lineStyle:{color:"#118282"}},axisTick:{show:!1},axisLabel:{show:!0,color:"#118282"},gridIndex:0,position:"right"},{type:"category",gridIndex:1,axisLine:{show:!0,lineStyle:{color:"#118282"}},axisLabel:{show:!1},axisTick:{show:!1}}],dataZoom:[i],series:[{name:"签单数量",type:"bar",seriesLayoutBy:"row",barWidth:8,itemStyle:{color:r.$echarts.graphic.LinearGradient(0,0,1,0,[{offset:0,color:"#083461"},{offset:1,color:"#188FFD"}],!1),barBorderRadius:5},xAxisIndex:0,yAxisIndex:0},{name:"签单金额",type:"bar",seriesLayoutBy:"row",barWidth:8,itemStyle:{color:r.$echarts.graphic.LinearGradient(0,1,1,0,[{offset:0,color:"#0C575C"},{offset:1,color:"#1EE7E7"}],!1),barBorderRadius:5},xAxisIndex:1,yAxisIndex:1}],dataset:{source:[t,e,n]}};a.setOption(o,!0),window.addEventListener("resize",(function(){a.resize()}))},setypetap:function(t){this.type=t,this.showflag=!0,this.listQuery={current:1,limit:10,type:""},this.total=0,this.listLoading=!0,3==this.type?this.listQuery.type="":4==this.type?this.listQuery.type="量房":5==this.type?this.listQuery.type="交定":6==this.type&&(this.listQuery.type="签单"),this.handleCurrentChange()},cluedetailfun:function(){var t=this,e=this,n={start_date:e.start_date,end_date:e.end_date,page:this.listQuery.current};l(n).then((function(n){0==n.data.code&&(e.crmlist=n.data.data,e.total=n.data.count),t.listLoading=!1}))},adwxdetailfun:function(){var t=this,e=this,n={start_date:e.start_date,end_date:e.end_date,page:this.listQuery.current};h(n).then((function(n){0==n.data.code&&(e.crmlist=n.data.data,e.total=n.data.count),t.listLoading=!1}))},setextap:function(t){"交定"==t?this.type=5:"签单"==t&&(this.type=6),this.listQuery.type=t,this.handleCurrentChange()},intentionDetailfun:function(){var t=this,e=this,n={start_date:e.start_date,end_date:e.end_date,page:this.listQuery.current,intention:this.listQuery.type};f(n).then((function(n){0==n.data.code&&(e.crmlist=n.data.data,e.total=n.data.count),t.listLoading=!1}))},platformDetailfun:function(){var t=this,e=this,n={start_date:e.start_date,end_date:e.end_date,page:this.listQuery.current,type:this.listQuery.type};d(n).then((function(n){0==n.data.code&&(e.crmlist=n.data.data,e.total=n.data.count),t.listLoading=!1}))},handleCurrentChange:function(){this.listLoading=!0,1==this.type?this.cluedetailfun():2==this.type?this.adwxdetailfun():3==this.type?this.intentionDetailfun():(4==this.type||5==this.type||6==this.type)&&this.platformDetailfun()},platformyejifun:function(){var t=this,e=this,n={start_date:e.start_date,end_date:e.end_date};g(n).then((function(n){if(0==n.data.code){e.allmoney=n.data.data;var i=e.allmoney/1e5,r=e.allmoney<1e5?e.allmoney:parseInt(1e5*parseInt(i)*1.3);t.$nextTick((function(){e.performancechartfun(r,n.data.data)}))}}))},performancefun:function(){var t=this,e={start_date:t.start_date,end_date:t.end_date};m(e).then((function(e){if(0==e.data.code){for(var n in e.data.data){var i=e.data.data[n].lv,r=i.slice(0,-1);e.data.data[n].width=r<10?10:r>100?100:r}t.performancearr=e.data.data}}))},platformsignfun:function(){var t=this,e=this,n={start_date:e.start_date,end_date:e.end_date};O(n).then((function(e){if(0==e.data.code){t.signum=e.data.data.total.count,t.signmoney=e.data.data.total.money;var n=[],i=[],r=[],a=e.data.data.month.reverse();for(var o in a){a[o].day?n.push(a[o].year+"/"+a[o].month+"/"+a[o].day):n.push(a[o].year+"/"+a[o].month);var s={value:a[o].money,itemStyle:{color:"rgba(247,181,0,0.4)",borderColor:"#F7B500",borderWidth:2}};i.push(s),r.push(a[o].num)}var c={type:"inside",start:0,end:80,startValue:0,endValue:10};a.length>40&&(c={type:"inside",start:0,end:5,startValue:0,endValue:10}),a.length>30&&(c={type:"inside",start:0,end:10,startValue:0,endValue:10}),a.length>20&&(c={type:"inside",start:0,end:20,startValue:0,endValue:10}),a.length>12&&(c={type:"inside",start:0,end:60,startValue:0,endValue:10}),t.$nextTick((function(){t.signfun(n,i,r,c)}))}}))},platformdingfun:function(){var t=this,e=this,n={start_date:e.start_date,end_date:e.end_date};j(n).then((function(e){if(0==e.data.code){t.dingnum=e.data.count,t.dingmoney=e.data.money,t.dingarr=e.data.data;var n=e.data.data.reverse(),i=["product"],r=["签单数量"],a=["签单金额"];for(var o in n){var s="";s=n[o].day?n[o].year+"/"+n[o].month+"/"+n[o].day:n[o].year+"/"+n[o].month,i.push(s),r.push(n[o].num),a.push(n[o].money?n[o].money:0)}var c={yAxisIndex:[0,1],type:"inside",start:0,end:80,startValue:0,endValue:10};n.length>40&&(c={yAxisIndex:[0,1],type:"inside",start:0,end:5,startValue:0,endValue:10}),n.length>30&&(c={yAxisIndex:[0,1],type:"inside",start:0,end:10,startValue:0,endValue:10}),n.length>20&&(c={yAxisIndex:[0,1],type:"inside",start:0,end:20,startValue:0,endValue:10}),n.length>12&&(c={yAxisIndex:[0,1],type:"inside",start:0,end:60,startValue:0,endValue:10}),t.$nextTick((function(){t.despoitechartfun(i,r,a,c)}))}cI.close()}))}},created:function(){var t=this,e=new Date,n=e.getFullYear(),i=e.getMonth()+1,r=e.getDate();this.start_date=n+"-"+(i<10?"0"+i:i)+"-"+(r<10?"0"+r:r),this.end_date=n+"-"+(i<10?"0"+i:i)+"-"+(r<10?"0"+r:r),this.date=n+"-"+(i<10?"0"+i:i)+"-"+(r<10?"0"+r:r);var a=this.utils.getQueryStringArgs(window.location.href);a.r&&(this.rid=a.r),sessionStorage.getItem("wzhcode")?(this.rid=a.r,this.code=sessionStorage.getItem("wzhcode"),cI=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),sessionStorage.getItem(this.rid)&&(this.title=sessionStorage.getItem(this.rid),document.title=(this.title?this.title:"志远装饰")+"数字化大屏"),this.cluefun(),this.intentionfun(),this.platformwxfun(),this.platformtanfun(),this.platformyejifun(),1==this.titype?this.personfun():this.teamfun(),this.performancefun(),this.regionfun(),this.platformsignfun(),this.platformdingfun(),clearInterval(hI),hI=setInterval((function(e){fI=1*hI+1,fI%600==0&&(t.cluefun(),t.intentionfun(),t.platformwxfun(),t.platformtanfun(),t.platformyejifun(),1==t.titype?t.personfun():t.teamfun(),t.performancefun(),t.regionfun(),t.platformsignfun(),t.platformdingfun())}),1e3)):a.code?(sessionStorage.getItem(this.rid)&&(this.title=sessionStorage.getItem(this.rid),document.title=(this.title?this.title:"志远装饰")+"数字化大屏"),this.code=a.code,this.loginfun()):this.configfun(),this.timefun(),setInterval((function(){t.timefun()}),1e3)},mounted:function(){}},dI=pI,gI=(n("f612"),n("0c7c")),vI=Object(gI["a"])(dI,r,a,!1,null,"4f8daf42",null);e["default"]=vI.exports},eecd:function(t,e,n){"use strict";var i=n("147d");n.d(e,"getAdjust",(function(){return i["getAdjust"]}));n("41c8");var r=n("94e3"),a=n("29ab"),o=n("f05a"),s=n("f7a9");n("59b0");Object(i["registerAdjust"])("Dodge",r["a"]),Object(i["registerAdjust"])("Jitter",a["a"]),Object(i["registerAdjust"])("Stack",o["a"]),Object(i["registerAdjust"])("Symmetric",s["a"])},f05a:function(t,e,n){"use strict";var i=n("000e"),r=n("8937"),a=n("41c8"),o=r["a"],s=function(t){function e(e){var n=t.call(this,e)||this,i=e.adjustNames,r=void 0===i?["y"]:i,a=e.height,o=void 0===a?NaN:a,s=e.size,c=void 0===s?10:s,l=e.reverseOrder,u=void 0!==l&&l;return n.adjustNames=r,n.height=o,n.size=c,n.reverseOrder=u,n}return Object(i["b"])(e,t),e.prototype.process=function(t){var e=this,n=e.yField,i=e.reverseOrder,r=n?this.processStack(t):this.processOneDimStack(t);return i?this.reverse(r):r},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this,n=e.xField,a=e.yField,s=e.reverseOrder,c=s?this.reverse(t):t,l=new o,u=new o;return c.map((function(t){return t.map((function(t){var e,o=r["s"](t,n,0),s=r["s"](t,[a]),c=o.toString();if(s=r["C"](s)?s[1]:s,!r["K"](s)){var h=s>=0?l:u;h.has(c)||h.set(c,0);var f=h.get(c),p=s+f;return h.set(c,p),Object(i["a"])(Object(i["a"])({},t),(e={},e[a]=[f,p],e))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this,r=n.xField,a=n.height,s=n.reverseOrder,c="y",l=s?this.reverse(t):t,u=new o;return l.map((function(t){return t.map((function(t){var n,o=e.size,s=t[r],l=2*o/a;u.has(s)||u.set(s,l/2);var h=u.get(s);return u.set(s,h+l),Object(i["a"])(Object(i["a"])({},t),(n={},n[c]=h,n))}))}))},e}(a["a"]);e["a"]=s},f2fb:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return ct})),n.d(e,"c",(function(){return wt}));var i={};n.r(i),n.d(i,"default",(function(){return W})),n.d(i,"assign",(function(){return j})),n.d(i,"format",(function(){return Y})),n.d(i,"parse",(function(){return G})),n.d(i,"defaultI18n",(function(){return A})),n.d(i,"setGlobalDateI18n",(function(){return F})),n.d(i,"setGlobalDateMasks",(function(){return N}));var r=n("8937"),a={};function o(t){return a[t]}function s(t,e){a[t]=e}var c=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){Object(r["b"])(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return Object(r["W"])(this.ticks,(function(e,n){return Object(r["O"])(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 Object(r["K"])(i)||!Object(r["I"])(i.toString)?"":i.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){Object(r["b"])(this,this.__cfg__),this.setDomain(),Object(r["G"])(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(Object(r["Q"])(t)){var n=o(t);if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else Object(r["I"])(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return this.range[0]},t.prototype.rangeMax=function(){return this.range[1]},t.prototype.calcPercent=function(t,e,n){return Object(r["M"])(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),l=c,u=n("9ab4"),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return Object(u["c"])(e,t),e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;tthis.max?NaN:this.values[i]},e.prototype.getText=function(e){for(var n=[],i=1;i1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(l),f=h,p=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,d="\\d\\d?",g="\\d\\d",v="\\d{3}",y="\\d{4}",m="[^\\s]+",b=/\[([^]*?)\]/gm;function x(t,e){for(var n=[],i=0,r=t.length;i-1?r:null}};function j(t){for(var e=[],n=1;n3?0:(t-t%10!==10?1:0)*t%10]}},k=j({},A),F=function(t){return k=j(k,t)},E=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},I=function(t,e){void 0===e&&(e=2),t=String(t);while(t.length0?"-":"+")+I(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+I(Math.floor(Math.abs(e)/60),2)+":"+I(Math.abs(e)%60,2)}},P=function(t){return+t-1},B=[null,d],L=[null,m],D=["isPm",m,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],R=["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}],z={D:["day",d],DD:["day",g],Do:["day",d+m,function(t){return parseInt(t,10)}],M:["month",d,P],MM:["month",g,P],YY:["year",g,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",d,void 0,"isPm"],hh:["hour",g,void 0,"isPm"],H:["hour",d],HH:["hour",g],m:["minute",d],mm:["minute",g],s:["second",d],ss:["second",g],YYYY:["year",y],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond",g,function(t){return 10*+t}],SSS:["millisecond",v],d:B,dd:B,ddd:L,dddd:L,MMM:["month",m,O("monthNamesShort")],MMMM:["month",m,O("monthNames")],a:D,A:D,ZZ:R,Z:R},_={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"},N=function(t){return j(_,t)},Y=function(t,e,n){if(void 0===e&&(e=_["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");e=_[e]||e;var i=[];e=e.replace(b,(function(t,e){return i.push(e),"@@@"}));var r=j(j({},k),n);return e=e.replace(p,(function(e){return T[e](t,r)})),e.replace(/@@@/g,(function(){return i.shift()}))};function G(t,e,n){if(void 0===n&&(n={}),"string"!==typeof e)throw new Error("Invalid format in fecha parse");if(e=_[e]||e,t.length>1e3)return null;var i=new Date,r={year:i.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},a=[],o=[],s=e.replace(b,(function(t,e){return o.push(E(e)),"@@@"})),c={},l={};s=E(s).replace(p,(function(t){var e=z[t],n=e[0],i=e[1],r=e[3];if(c[n])throw new Error("Invalid format. "+n+" specified twice in format");return c[n]=!0,r&&(l[r]=!0),a.push(e),"("+i+")"})),Object.keys(l).forEach((function(t){if(!c[t])throw new Error("Invalid format. "+t+" is required in specified format")})),s=s.replace(/@@@/g,(function(){return o.shift()}));var u=t.match(new RegExp(s,"i"));if(!u)return null;for(var h,f=j(j({},k),n),d=1;d11||r.month<0||r.day>31||r.day<1||r.hour>23||r.hour<0||r.minute>59||r.minute<0||r.second>59||r.second<0)return null;return h}var V={format:Y,parse:G,defaultI18n:A,setGlobalDateI18n:F,setGlobalDateMasks:N},W=V,X=function(t){return function(e,n,i,a){var o=Object(r["K"])(i)?0:i,s=Object(r["K"])(a)?e.length:a;while(o>>1;t(e[c])>n?s=c:o=c+1}return o}},H="format";function q(t,e){var n=i[H]||W[H];return n(t,e)}function U(t){return Object(r["Q"])(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(r["E"])(t)&&(t=t.getTime()),t}var K=1e3,Q=60*K,Z=60*Q,J=24*Z,$=31*J,tt=365*J,et=[["HH:mm:ss",K],["HH:mm:ss",10*K],["HH:mm:ss",30*K],["HH:mm",Q],["HH:mm",10*Q],["HH:mm",30*Q],["HH",Z],["HH",6*Z],["HH",12*Z],["YYYY-MM-DD",J],["YYYY-MM-DD",4*J],["YYYY-WW",7*J],["YYYY-MM",$],["YYYY-MM",4*$],["YYYY-MM",6*$],["YYYY",380*J]];function nt(t,e,n){var i=(e-t)/n,a=X((function(t){return t[1]}))(et,i)-1,o=et[a];return a<0?o=et[0]:a>=et.length&&(o=Object(r["U"])(et)),o}var it=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return Object(u["c"])(e,t),e.prototype.translate=function(t){t=U(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(r["M"])(t)&&t-1){var i=this.values[n],r=this.formatter;return i=r?r(i,e):q(i,this.mask),i}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;Object(r["j"])(e,(function(t,n){e[n]=U(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(f),rt=it,at=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return Object(u["c"])(e,t),e.prototype.scale=function(t){if(Object(r["K"])(t))return NaN;var e=this.rangeMin(),n=this.rangeMax(),i=this.max,a=this.min;if(i===a)return e;var o=this.getScalePercent(t);return e+o*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=Object(r["z"])(e),i=Object(r["U"])(e);nthis.max&&(this.max=i),Object(r["K"])(this.minLimit)||(this.min=n),Object(r["K"])(this.maxLimit)||(this.max=i)},e.prototype.setDomain=function(){var t=Object(r["u"])(this.values),e=t.min,n=t.max;Object(r["K"])(this.min)&&(this.min=e),Object(r["K"])(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=Object(r["l"])(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}(l),ot=at,st=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return Object(u["c"])(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}(ot),ct=st;function lt(t,e){var n,i=Math.E;return n=e>=0?Math.pow(i,Math.log(e)/t):-1*Math.pow(i,Math.log(-e)/t),n}function ut(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function ht(t,e,n){Object(r["K"])(n)&&(n=Math.max.apply(null,t));var i=n;return Object(r["j"])(t,(function(t){t>0&&t1&&(i=1),i}var ft=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return Object(u["c"])(e,t),e.prototype.invert=function(t){var e,n=this.base,i=ut(n,this.max),r=this.rangeMin(),a=this.rangeMax()-r,o=this.positiveMin;if(o){if(0===t)return 0;e=ut(n,o/n);var s=1/(i-e)*a;if(t=0?1:-1;return Math.pow(a,n)*o},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,r=(lt(i,t)-lt(i,n))/(lt(i,e)-lt(i,n));return r},e}(ot),gt=dt,vt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return Object(u["c"])(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),i=this.formatter;return i?i(n,e):q(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(r["Q"])(n)||Object(r["E"])(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return U(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(Object(r["K"])(e)&&Object(r["M"])(e)||(this.min=this.translate(this.min)),Object(r["K"])(n)&&Object(r["M"])(n)||(this.max=this.translate(this.max)),t&&t.length){var i=[],a=1/0,o=a,s=0;Object(r["j"])(t,(function(t){var e=U(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");a>e?(o=a,a=e):o>e&&(o=e),s1&&(this.minTickInterval=o-a),Object(r["K"])(e)&&(this.min=a),Object(r["K"])(n)&&(this.max=s)}},e}(ct),yt=vt,mt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return Object(u["c"])(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,i=this.getInvertPercent(t),a=Math.floor(i*(n-1));if(a>=n-1)return Object(r["U"])(e);if(a<0)return Object(r["z"])(e);var o=e[a],s=e[a+1],c=a/(n-1),l=(a+1)/(n-1);return o+(i-c)/(l-c)*(s-o)},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||(Object(r["U"])(e)!==this.max&&e.push(this.max),Object(r["z"])(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(tObject(r["U"])(e))return 1;var n=0;return Object(r["j"])(e,(function(e,i){if(!(t>=e))return!1;n=i})),n/(e.length-1)},e}(ot),bt=mt,xt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return Object(u["c"])(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(bt),Ot=xt,jt={};function wt(t){return jt[t]}function Ct(t,e){if(wt(t))throw new Error("type '"+t+"' existed.");jt[t]=e}var Mt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return Object(u["c"])(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(r["M"])(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return te[1]?NaN:this.values[0]},e}(l),St=Mt;function At(t){var e=t.values,n=t.tickInterval,i=t.tickCount,a=t.showLast;if(Object(r["M"])(n)){var o=Object(r["l"])(e,(function(t,e){return e%n===0})),s=Object(r["U"])(e);return a&&Object(r["U"])(o)!==s&&o.push(s),o}var c=e.length,l=t.min,u=t.max;if(Object(r["K"])(l)&&(l=0),Object(r["K"])(u)&&(u=e.length-1),!Object(r["M"])(i)||i>=c)return e.slice(l,u+1);if(i<=0||u<=0)return[];for(var h=1===i?c:Math.floor(c/(i-1)),f=[],p=l,d=0;d=u)break;p=Math.min(l+d*h,u),d===i-1&&a?f.push(e[u]):f.push(e[p])}return f}function kt(t){var e=t.min,n=t.max,i=t.nice,r=t.tickCount,a=new Pt;return a.domain([e,n]),i&&a.nice(r),a.ticks(r)}var Ft=5,Et=Math.sqrt(50),It=Math.sqrt(10),Tt=Math.sqrt(2),Pt=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=Ft);var i,r=this._domain.slice(),a=0,o=this._domain.length-1,s=this._domain[a],c=this._domain[o];return c0?(s=Math.floor(s/i)*i,c=Math.ceil(c/i)*i,i=Lt(s,c,t)):i<0&&(s=Math.ceil(s*i)/i,c=Math.floor(c*i)/i,i=Lt(s,c,t)),i>0?(r[a]=Math.floor(s/i)*i,r[o]=Math.ceil(c/i)*i,this.domain(r)):i<0&&(r[a]=Math.ceil(s*i)/i,r[o]=Math.floor(c*i)/i,this.domain(r)),this},t.prototype.ticks=function(t){return void 0===t&&(t=Ft),Bt(this._domain[0],this._domain[this._domain.length-1],t||Ft)},t}();function Bt(t,e,n){var i,r,a,o,s=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((i=e0){t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(r=Math.ceil(e-t+1));while(++s=0?(a>=Et?10:a>=It?5:a>=Tt?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(a>=Et?10:a>=It?5:a>=Tt?2:1)}function Dt(t,e,n){var i;return i="ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e),i*e}function Rt(t,e,n){var i=Dt(t,n,"floor"),a=Dt(e,n,"ceil");i=Object(r["p"])(i,n),a=Object(r["p"])(a,n);for(var o=[],s=Math.max((a-i)/(Math.pow(2,12)-1),n),c=i;c<=a;c+=s){var l=Object(r["p"])(c,s);o.push(l)}return{min:i,max:a,ticks:o}}function zt(t,e,n){var i,a=t.minLimit,o=t.maxLimit,s=t.min,c=t.max,l=t.tickCount,u=void 0===l?5:l,h=Object(r["K"])(a)?Object(r["K"])(e)?s:e:a,f=Object(r["K"])(o)?Object(r["K"])(n)?c:n:o;if(h>f&&(i=[h,f],f=i[0],h=i[1]),u<=2)return[h,f];for(var p=(f-h)/(u-1),d=[],g=0;g=0&&(l=1),1-c/(s-1)-n+l}function Ht(t,e,n){var i=Object(r["mb"])(e),a=Object(r["B"])(e,t),o=1;return 1-a/(i-1)-n+o}function qt(t,e,n,i,r,a){var o=(t-1)/(a-r),s=(e-1)/(Math.max(a,i)-Math.min(n,r));return 2-Math.max(o/s,s/o)}function Ut(t,e){return t>=e?2-(t-1)/(e-1):1}function Kt(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 Qt(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 Zt(){return 1}function Jt(t,e,n,i,a,o){void 0===n&&(n=5),void 0===i&&(i=!0),void 0===a&&(a=Yt),void 0===o&&(o=[.25,.2,.5,.05]);var s=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!==typeof t||"number"!==typeof e||!s)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===s)return{min:t,max:e,ticks:[t]};if(e-t>1e148){var c=n||5,l=(e-t)/c;return{min:t,max:e,ticks:Array(c).fill(null).map((function(e,n){return Nt(t+l*n)}))}}var u={score:-2,lmin:0,lmax:0,lstep:0},h=1;while(h<1/0){for(var f=0;fu.score&&(!i||M<=t&&S>=e)&&(u.lmin=M,u.lmax=S,u.lstep=A,u.score=T)}}m+=1}g+=1}}h+=1}var P=Nt(u.lmax),B=Nt(u.lmin),L=Nt(u.lstep),D=Math.floor(Wt((P-B)/L))+1,R=new Array(D);R[0]=Nt(B);for(f=1;f0)e=Math.floor(ut(n,r));else{var c=ht(o,n,a);e=Math.floor(ut(n,c))}for(var l=s-e,u=Math.ceil(l/i),h=[],f=e;f=0?1:-1;return Math.pow(t,e)*n}))}function ie(t,e){var n=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:n%1!==0?t[Math.ceil(n)-1]:t.length%2===0?(t[n-1]+t[n])/2:t[n]}function re(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;a1&&(r*=Math.ceil(s)),i&&rtt)for(var c=ce(n),l=Math.ceil(a/tt),u=s;u<=c+l;u+=l)o.push(le(u));else if(a>$){var h=Math.ceil(a/$),f=ue(e),p=he(e,n);for(u=0;u<=p+h;u+=h)o.push(fe(s,u+f))}else if(a>J){var d=new Date(e),g=d.getFullYear(),v=d.getMonth(),y=d.getDate(),m=Math.ceil(a/J),b=pe(e,n);for(u=0;uZ){d=new Date(e),g=d.getFullYear(),v=d.getMonth(),m=d.getDate();var x=d.getHours(),O=Math.ceil(a/Z),j=de(e,n);for(u=0;u<=j+O;u+=O)o.push(new Date(g,v,m,x+u).getTime())}else if(a>Q){var w=ge(e,n),C=Math.ceil(a/Q);for(u=0;u<=w+C;u+=C)o.push(e+u*Q)}else{var M=a;M=512&&console.warn("Notice: current ticks length("+o.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!"),o}s("cat",At),s("time-cat",se),s("wilkinson-extended",$t),s("r-pretty",ae),s("time",oe),s("time-pretty",ve),s("log",te),s("pow",ne),s("quantile",re),s("d3-linear",_t),Ct("cat",f),Ct("category",f),Ct("identity",St),Ct("linear",ct),Ct("log",pt),Ct("pow",gt),Ct("time",yt),Ct("timeCat",rt),Ct("quantize",bt),Ct("quantile",Ot)},f5e5:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"d",(function(){return u})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return p})),n.d(e,"e",(function(){return v})),n.d(e,"h",(function(){return y})),n.d(e,"f",(function(){return b})),n.d(e,"g",(function(){return x}));var i=n("8937"),r=n("af40"),a=n("9c29"),o=n("7326"),s=n("9f27"),c={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function l(t,e){var n=e.attr();for(var a in n){var o=n[a],s=c[a]?c[a]:a;"matrix"===s&&o?t.transform(o[0],o[1],o[3],o[4],o[6],o[7]):"lineDash"===s&&t.setLineDash?Object(i["C"])(o)&&t.setLineDash(o):("strokeStyle"===s||"fillStyle"===s?o=Object(r["b"])(t,e,o):"globalAlpha"===s&&(o*=t.globalAlpha),t[s]=o)}}function u(t,e,n){for(var i=0;iw?j:w,F=j>w?1:j/w,E=j>w?w/j:1;e.translate(x,O),e.rotate(S),e.scale(F,E),e.arc(0,0,k,C,M,1-A),e.scale(1/F,1/E),e.rotate(-S),e.translate(-x,-O)}break;case"Z":e.closePath();break;default:break}if("Z"===d)l=u;else{var I=p.length;l=[p[I-2],p[I-1]]}}}}function y(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))}function m(t){var e;if(t.destroyed)e=t["_cacheCanvasBBox"];else{var n=t.get("cacheCanvasBBox"),i=n&&!(!n.width||!n.height),r=t.getCanvasBBox(),a=r&&!(!r.width||!r.height);i&&a?e=Object(o["l"])(n,r):i?e=n:a&&(e=r)}return e}function b(t){if(!t.length)return null;var e=[],n=[],r=[],a=[];return Object(i["j"])(t,(function(t){var i=m(t);i&&(e.push(i.minX),n.push(i.minY),r.push(i.maxX),a.push(i.maxY))})),{minX:Object(i["bb"])(e),minY:Object(i["bb"])(n),maxX:Object(i["Y"])(r),maxY:Object(i["Y"])(a)}}function x(t,e){return t&&e&&Object(o["f"])(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}},f612:function(t,e,n){"use strict";n("8dc7")},f7a9:function(t,e,n){"use strict";var i=n("000e"),r=n("8937"),a=n("41c8"),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.process=function(t){var e=r["q"](t),n=this,a=n.xField,o=n.yField,s=this.getXValuesMaxMap(e),c=Math.max.apply(Math,Object.keys(s).map((function(t){return s[t]})));return r["W"](t,(function(t){return r["W"](t,(function(t){var e,n,l=t[o],u=t[a];if(r["C"](l)){var h=(c-s[u])/2;return Object(i["a"])(Object(i["a"])({},t),(e={},e[o]=r["W"](l,(function(t){return h+t})),e))}var f=(c-l)/2;return Object(i["a"])(Object(i["a"])({},t),(n={},n[o]=[f,l+f],n))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this,i=n.xField,a=n.yField,o=r["w"](t,(function(t){return t[i]}));return r["X"](o,(function(t){return e.getDimMaxValue(t,a)}))},e.prototype.getDimMaxValue=function(t,e){var n=r["W"](t,(function(t){return r["s"](t,e,[])})),i=r["q"](n);return Math.max.apply(Math,i)},e}(a["a"]);e["a"]=o},f83c:function(t,e,n){"use strict";var i=n("9ab4"),r=n("330d"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),i=0;iMath.PI?1:0,f=i>r?0:1;o=[["M",l.x,l.y],["A",n,n,0,h,f,u.x,u.y]]}return o},e}(h),g=d,v=n("7c8a"),y=n("75ed"),m="g2-crosshair",b=m+"-line",x=m+"-text",O=(i={},i[""+m]={position:"relative"},i[""+b]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},i[""+x]={position:"absolute",color:l["a"].textColor,fontFamily:l["a"].fontFamily},i),j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r["a"])(Object(r["a"])({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'
    ',crosshairTpl:'
    ',textTpl:'{content}',domStyles:null,containerClassName:m,defaultStyles:O,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),e=this.get("crosshairTpl"),n=Object(v["b"])(e);t.appendChild(n),this.applyStyle(b,n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,i=this.get("text"),r=i.position,o=i.offset;return Object(a["f"])(e,n,r,o)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var i=this.getContainer(),r=Object(o["pb"])(this.get("textTpl"),t);e=Object(v["b"])(r),i.appendChild(e),this.applyStyle(x,e),this.set("textEl",e)}e.innerHTML=n}else e&&e.remove()},e.prototype.isVertical=function(t,e){return t.x===e.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var e=this.get("start"),n=this.get("end"),i=Math.min(e.x,n.x),r=Math.min(e.y,n.y);this.isVertical(e,n)?Object(v["e"])(t,{width:"1px",height:Object(a["l"])(Math.abs(n.y-e.y))}):Object(v["e"])(t,{height:"1px",width:Object(a["l"])(Math.abs(n.x-e.x))}),Object(v["e"])(t,{top:Object(a["l"])(r),left:Object(a["l"])(i)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,n=t.clientWidth,i=this.getTextPoint();switch(e){case"center":i.x=i.x-n/2;break;case"right":i.x=i.x-n;case"left":break}Object(v["e"])(t,{top:Object(a["l"])(i.y),left:Object(a["l"])(i.x)})}},e.prototype.updateInner=function(e){Object(o["y"])(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(y["a"]),w=j}}]);