chunk-e74d9d66.8a254fab.js 942 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e74d9d66"],{"00c6":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));
  2. /*! *****************************************************************************
  3. Copyright (c) Microsoft Corporation.
  4. Permission to use, copy, modify, and/or distribute this software for any
  5. purpose with or without fee is hereby granted.
  6. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  7. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  8. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  9. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  10. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  11. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  12. PERFORMANCE OF THIS SOFTWARE.
  13. ***************************************************************************** */
  14. 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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create},"00f9":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var i=n("73ec");function r(t,e){var n=t.cfg.el,i=t.attr(),r={dx:i.shadowOffsetX,dy:i.shadowOffsetY,blur:i.shadowBlur,color:i.shadowColor};if(r.dx||r.dy||r.blur||r.color){var o=e.find("filter",r);o||(o=e.addShadow(r)),n.setAttribute("filter","url(#"+o+")")}else n.removeAttribute("filter")}function o(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,i=[],r=0;r<9;r+=3)i.push(e[r]+","+e[r+1]);i=i.join(","),-1===i.indexOf("NaN")?n.setAttribute("transform","matrix("+i+")"):console.warn("invalid matrix:",e)}}function a(t,e){var n=t.getClip(),r=t.get("el");if(n){if(n&&!r.hasAttribute("clip-path")){Object(i["a"])(n),n.createPath(e);var o=e.addClip(n);r.setAttribute("clip-path","url(#"+o+")")}}else r.removeAttribute("clip-path")}},"0587":function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("8937"),a=n("c34d"),s=n("62e3"),c=n("b4aa");function l(t){var e=t.data,n=t.xField,i=t.measureField,r=t.rangeField,o=t.targetField,a=t.layout,s=[],c=[];e.forEach((function(t,e){var a;t[r].sort((function(t,e){return t-e})),t[r].forEach((function(i,o){var a,c=0===o?i:t[r][o]-t[r][o-1];s.push((a={rKey:r+"_"+o},a[n]=n?t[n]:String(e),a[r]=c,a))})),t[i].forEach((function(r,o){var a;s.push((a={mKey:t[i].length>1?i+"_"+o:""+i},a[n]=n?t[n]:String(e),a[i]=r,a))})),s.push((a={tKey:""+o},a[n]=n?t[n]:String(e),a[o]=t[o],a)),c.push(t[r],t[i],t[o])}));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"===a&&s.reverse(),{min:l,max:u,ds:s}}function u(t){var e=t.chart,n=t.options,r=n.bulletStyle,a=n.targetField,u=n.rangeField,h=n.measureField,f=n.xField,p=n.color,d=n.layout,g=n.size,v=n.label,y=l(n),m=y.min,b=y.max,x=y.ds;e.data(x);var O=Object(s["c"])({},t,{options:{xField:f,yField:u,seriesField:"rKey",isStack:!0,label:Object(o["s"])(v,"range"),interval:{color:Object(o["s"])(p,"range"),style:Object(o["s"])(r,"range"),size:Object(o["s"])(g,"range")}}});Object(c["c"])(O),e.geometries[0].tooltip(!1);var j=Object(s["c"])({},t,{options:{xField:f,yField:h,seriesField:"mKey",isStack:!0,label:Object(o["s"])(v,"measure"),interval:{color:Object(o["s"])(p,"measure"),style:Object(o["s"])(r,"measure"),size:Object(o["s"])(g,"measure")}}});Object(c["c"])(j);var w=Object(s["c"])({},t,{options:{xField:f,yField:a,seriesField:"tKey",label:Object(o["s"])(v,"target"),point:{color:Object(o["s"])(p,"target"),style:Object(o["s"])(r,"target"),size:Object(o["I"])(Object(o["s"])(g,"target"))?function(t){return Object(o["s"])(g,"target")(t)/2}:Object(o["s"])(g,"target")/2,shape:"horizontal"===d?"line":"hyphen"}}});return Object(c["e"])(w),"horizontal"===d&&e.coordinate().transpose(),Object(i["a"])(Object(i["a"])({},t),{ext:{data:{min:m,max:b}}})}function h(t){var e,n,i=t.options,r=t.ext,o=i.xAxis,c=i.yAxis,l=i.targetField,u=i.rangeField,h=i.measureField,f=i.xField,p=r.data;return Object(s["f"])(Object(a["g"])((e={},e[f]=o,e[h]=c,e),(n={},n[h]={min:null===p||void 0===p?void 0:p.min,max:null===p||void 0===p?void 0:p.max,sync:!0},n[l]={sync:""+h},n[u]={sync:""+h},n)))(t)}function f(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.measureField,s=n.rangeField,c=n.targetField;return e.axis(""+s,!1),e.axis(""+c,!1),!1===i?e.axis(""+o,!1):e.axis(""+o,i),!1===r?e.axis(""+a,!1):e.axis(""+a,r),t}function p(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 d(t){var e=t.chart,n=t.options,r=n.label,a=n.measureField,c=n.targetField,l=n.rangeField,u=e.geometries,h=u[0],f=u[1],p=u[2];return Object(o["s"])(r,"range")?h.label(""+l,Object(i["a"])({layout:[{type:"limit-in-plot"}]},Object(s["A"])(r.range))):h.label(!1),Object(o["s"])(r,"measure")?f.label(""+a,Object(i["a"])({layout:[{type:"limit-in-plot"}]},Object(s["A"])(r.measure))):f.label(!1),Object(o["s"])(r,"target")?p.label(""+c,Object(i["a"])({layout:[{type:"limit-in-plot"}]},Object(s["A"])(r.target))):p.label(!1),t}function g(t){Object(s["f"])(u,h,f,p,a["k"],d,a["l"],a["c"],a["a"])(t)}var v=Object(s["c"])({},r["b"].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}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return v},e.prototype.changeData=function(t){this.updateOption({data:t});var e=l(this.options),n=e.min,i=e.max,r=e.ds;h({options:this.options,ext:{data:{min:n,max:i}},chart:this.chart}),this.chart.changeData(r)},e.prototype.getSchemaAdaptor=function(){return g},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}})(r["b"])},"060b":function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return d}));var i=n("8937"),r="…";function o(t){for(var e=0,n=0;n<t.length;n++)e+=a(t,n);return e}function a(t,e){return t.charCodeAt(e)>0&&t.charCodeAt(e)<128?1:2}function s(t,e,n){void 0===n&&(n="tail");var i=t.length,o="";if("tail"===n){for(var s=0,c=0;s<e;){var l=a(t,c);if(!(s+l<=e))break;o+=t[c],s+=a(t,c),c++}o+=r}else if("head"===n){for(s=0,c=i-1;s<e;){l=a(t,c);if(!(s+l<=e))break;o+=t[c],s+=a(t,c),c--}o=r+o}else{for(var u="",h="",f=(s=0,0),p=i-1;s<e;){var d=a(t,f),g=!1;d+s<=e&&(u+=t[f],f++,s+=d,g=!0);var v=a(t,p);if(v+s<=e&&(h=t[p]+h,s+=v,p--,g=!0),!g)break}o=u+r+h}return o}var c="…",l=2,u=400;function h(t){for(var e=t.map((function(t){var e=t.attr("text");return Object(i["K"])(e)?"":""+e})),n=0,r=0,o=0;o<e.length;o+=1){for(var a=0,s=0;s<=e[o].length;s+=1){var c=e[o].charCodeAt(s);a+=c>=19968&&c<=40869?2:1}a>n&&(n=a,r=o)}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<i&&(e=i)})),e}function p(t,e){var n=e.getCanvasBBox();return t?n.width:n.height}function d(t,e,n,r){var a;void 0===r&&(r="tail");var u=null!==(a=e.attr("text"))&&void 0!==a?a:"";if("tail"===r){var h=Object(i["hb"])(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),f=Object(i["t"])(u,n,h,"…");return u!==f?(e.attr("text",f),e.set("tip",u),!0):(e.set("tip",null),!1)}var d=p(t,e),g=o(u),v=!1;if(n<d){var y=Math.floor(n/d*g)-l,m=void 0;m=y>=0?s(u,y,r):c,m&&(e.attr("text",m),v=!0)}return v?e.set("tip",u):e.set("tip",null),v}},"0704":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("5809"),r=n("cc94"),o=n("7eff"),a=n("3456"),s=n("b3de"),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="histogram",e}return Object(i["b"])(e,t),e.getDefaultOptions=function(){return s["a"]},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(Object(o["a"])(t,n,r,i,a))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a["a"]},e}(r["b"])},"074b":function(t,e){},"0767":function(t,e){},"0770":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("8937"),r=n("17f7");function o(t){var e=Object(i["c"])(Object(r["b"])(t)?t:0,0,1);return[{type:"current",percent:e},{type:"target",percent:1-e}]}},"092b":function(t,e,n){"use strict";function i(){return 0}n.d(e,"a",(function(){return i})),e["b"]=function(t){return function(){return t}}},"0a1f":function(t,e,n){"use strict";n.r(e),n.d(e,"Html",(function(){return m}));var i,r=n("2c79"),o=n("e945"),a=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 o={left:t<r.x,right:t+n>r.x+r.width,top:e<r.y,bottom:e+i>r.y+r.height};return o}function d(t,e,n,i,r,o){var a=t,s=e;switch(o){case"left":a=t-i-n,s=e-r/2;break;case"right":a=t+n,s=e-r/2;break;case"top":a=t-i/2,s=e-r-n;break;case"bottom":a=t-i/2,s=e+n;break;default:a=t+n,s=e-r-n;break}return{x:a,y:s}}function g(t,e,n,i,r,o,a){var s=d(t,e,n,i,r,o);if(a){var c=p(s.x,s.y,i,r,a);"auto"===o?(c.right&&(s.x=Math.max(0,t-i-n)),c.top&&(s.y=Math.max(0,e-r-n))):"top"===o||"bottom"===o?(c.left&&(s.x=a.x),c.right&&(s.x=a.x+a.width-i),"top"===o&&c.top&&(s.y=e+n),"bottom"===o&&c.bottom&&(s.y=e-r-n)):(c.top&&(s.y=a.y),c.bottom&&(s.y=a.y+a.height-r),"left"===o&&c.left&&(s.x=t+n),"right"===o&&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["b"])(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:'<div class="'+u["CONTAINER_CLASS"]+'"><div class="'+u["TITLE_CLASS"]+'"></div><ul class="'+u["LIST_CLASS"]+'"></ul></div>',itemTpl:'<li class="'+u["LIST_ITEM_CLASS"]+'" data-index={index}>\n <span class="'+u["MARKER_CLASS"]+'" style="background:{color}"></span>\n <span class="'+u["NAME_CLASS"]+'">{name}</span>:\n <span class="'+u["VALUE_CLASS"]+'">{value}</span>\n </li>',xCrosshairTpl:'<div class="'+u["CROSSHAIR_X"]+'"></div>',yCrosshairTpl:'<div class="'+u["CROSSHAIR_Y"]+'"></div>',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(a["e"])(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),Object(a["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(a["e"])(n,{display:e}),i&&Object(a["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(),o=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(a["e"])(h,{left:Object(l["l"])(v.x+o),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(a["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(a["e"])(n,{left:Object(l["l"])(i),top:Object(l["l"])(e.y),height:Object(l["l"])(e.height)}):Object(a["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],o=this.get(e),s=this.get("parent");return o||(o=Object(a["b"])(this.get(n)),this.applyStyle(r,o),s.appendChild(o),this.set(e,o)),o},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=o["a"].toCSSGradient(t.color),c=Object(r["a"])(Object(r["a"])({},t),{color:i}),l=Object(s["pb"])(e,c),u=Object(a["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},"0abd":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("5809"),r=n("917c"),o=n("cc94"),a=n("62e3"),s=n("4d99"),c=n("3cbb"),l=n("888a"),u=(n("9e6a"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e}return Object(i["b"])(e,t),e.getDefaultOptions=function(){return c["a"]},e.prototype.changeData=function(t){this.chart.emit(r["i"].BEFORE_CHANGE_DATA,r["d"].fromData(this.chart,r["i"].BEFORE_CHANGE_DATA,null));var e=this.options,n=this.options.angleField,i=Object(a["u"])(e.data,n),o=Object(a["u"])(t,n);Object(l["c"])(i,n)||Object(l["c"])(o,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(o),Object(s["b"])({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(r["i"].AFTER_CHANGE_DATA,r["d"].fromData(this.chart,r["i"].AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s["a"]},e}(o["b"]))},"0b42":function(t,e,n){var i=n("da84"),r=n("e8b5"),o=n("68ee"),a=n("861d"),s=n("b622"),c=s("species"),l=i.Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,o(e)&&(e===l||r(e.prototype))?e=void 0:a(e)&&(e=e[c],null===e&&(e=void 0))),void 0===e?l:e}},"0c22":function(t,e,n){"use strict";n.d(e,"a",(function(){return D}));var i=n("8937"),r=n("c34d"),o=n("afaa"),a=n("62e3"),s=n("e4ea"),c=n("5809"),l=n("e474"),u=n("58e4"),h=n("7b42");function f(t,e,n){var r=[],o=n.yField,a=n.maxSize,s=n.minSize,c=Object(i["s"])(Object(i["Z"])(e,o),[o]),l=Object(i["M"])(a)?a:1,u=Object(i["M"])(s)?s:0;return r=Object(i["W"])(t,(function(e,n){var r=(e[o]||0)/c;return e[h["d"]]=r,e[h["c"]]=(l-u)*r+u,e[h["b"]]=[Object(i["s"])(t,[n-1,o]),e[o]],e})),r}function p(t){return function(e){var n=e.chart,r=e.options,o=r.conversionTag,a=n.getOptions().data;if(o){var s=o.formatter;a.forEach((function(e,r){if(!(r<=0||Number.isNaN(e[h["c"]]))){var l=t(e,r,a,{top:!0,text:{content:Object(i["I"])(s)?s(e,a):s,offsetX:o.offsetX,offsetY:o.offsetY,position:"end",autoRotate:!1,style:Object(c["a"])({textAlign:"start",textBaseline:"middle"},o.style)}});n.annotation().line(l)}}))}return e}}function d(t){var e=t.chart,n=t.options,i=n.data,r=void 0===i?[]:i,o=n.yField,a=n.maxSize,s=n.minSize,c=f(r,r,{yField:o,maxSize:a,minSize:s});return e.data(c),t}function g(t){var e=t.chart,n=t.options,r=n.xField,o=n.yField,s=n.color,c=n.tooltip,f=n.label,p=n.shape,d=void 0===p?"funnel":p,g=n.funnelStyle,v=n.state,y=Object(l["a"])(c,[r,o]),m=y.fields,b=y.formatter;Object(u["a"])({chart:e,options:{type:"interval",xField:r,yField:h["c"],colorField:r,tooltipFields:Object(i["C"])(m)&&m.concat([h["d"],h["b"]]),mapping:{shape:d,tooltip:b,color:s,style:g},label:f,state:v}});var x=Object(a["d"])(t.chart,"interval");return x.adjust("symmetric"),t}function v(t){var e=t.chart,n=t.options,i=n.isTransposed;return e.coordinate({type:"rect",actions:i?[]:[["transpose"],["scale",1,-1]]}),t}function y(t){var e=t.options,n=e.maxSize,i=function(t,e,i,r){var o=n-(n-t[h["c"]])/2;return Object(c["a"])(Object(c["a"])({},r),{start:[e-.5,o],end:[e-.5,o+.05]})};return p(i)(t),t}function m(t){return Object(a["f"])(d,g,v,y)(t)}function b(t){var e,n=t.chart,i=t.options,r=i.data,o=void 0===r?[]:r,a=i.yField;return n.data(o),n.scale((e={},e[a]={sync:!0},e)),t}function x(t){var e=t.chart,n=t.options,r=n.data,o=n.xField,s=n.yField,c=n.color,p=n.compareField,d=n.isTransposed,g=n.tooltip,v=n.maxSize,y=n.minSize,m=n.label,b=n.funnelStyle,x=n.state;return e.facet("mirror",{fields:[p],transpose:!d,padding:d?0:[32,0,0,0],eachView:function(t,e){var n=d?e.rowIndex:e.columnIndex;d||t.coordinate({type:"rect",actions:[["transpose"],["scale",0===n?-1:1,-1]]});var O=f(e.data,r,{yField:s,maxSize:v,minSize:y});t.data(O);var j=Object(l["a"])(g,[o,s,p]),w=j.fields,C=j.formatter,M=d?{offset:0===n?10:-23,position:0===n?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===n?"end":"start"}};Object(u["a"])({chart:t,options:{type:"interval",xField:o,yField:h["c"],colorField:o,tooltipFields:Object(i["C"])(w)&&w.concat([h["d"],h["b"]]),mapping:{shape:"funnel",tooltip:C,color:c,style:b},label:!1!==m&&Object(a["c"])({},M,m),state:x}})}}),t}function O(t){var e=t.chart,n=t.options,i=n.conversionTag,r=n.isTransposed;return e.once("beforepaint",(function(){e.views.forEach((function(t,e){var o=function(t,n,o,s){var c=0===e?-1:1;return Object(a["c"])({},s,{start:[n-.5,t[h["c"]]],end:[n-.5,t[h["c"]]+.05],text:r?{style:{textAlign:"start"}}:{offsetX:!1!==i?c*i.offsetX:0,style:{textAlign:0===e?"end":"start"}}})};p(o)(Object(a["c"])({},{chart:t,options:n}))}))})),t}function j(t){return Object(a["f"])(b,x,O)(t)}function w(t){var e,n=t.chart,i=t.options,r=i.data,o=void 0===r?[]:r,a=i.yField;return n.data(o),n.scale((e={},e[a]={sync:!0},e)),t}function C(t){var e=t.chart,n=t.options,i=n.seriesField,r=n.isTransposed;return e.facet("rect",{fields:[i],padding:[r?0:32,10,0,10],eachView:function(e,n){m(Object(a["c"])({},t,{chart:e,options:{data:n.data}}))}}),t}function M(t){return Object(a["f"])(w,C)(t)}function S(t){var e=t.chart,n=t.options,r=n.data,o=void 0===r?[]:r,a=n.yField,s=Object(i["ib"])(o,(function(t,e){return t+(e[a]||0)}),0),c=Object(i["Z"])(o,a)[a],l=Object(i["W"])(o,(function(t,e){var n=[],r=[];if(t[h["e"]]=(t[a]||0)/s,e){var l=o[e-1][h["f"]],u=o[e-1][h["g"]];n[0]=l[3],r[0]=u[3],n[1]=l[2],r[1]=u[2]}else n[0]=-.5,r[0]=1,n[1]=.5,r[1]=1;return r[2]=r[1]-t[h["e"]],n[2]=(r[2]+1)/4,r[3]=r[2],n[3]=-n[2],t[h["f"]]=n,t[h["g"]]=r,t[h["d"]]=(t[a]||0)/c,t[h["b"]]=[Object(i["s"])(o,[e-1,a]),t[a]],t}));return e.data(l),t}function A(t){var e=t.chart,n=t.options,r=n.xField,o=n.yField,a=n.color,s=n.tooltip,c=n.label,f=n.funnelStyle,p=n.state,d=Object(l["a"])(s,[r,o]),g=d.fields,v=d.formatter;return Object(u["a"])({chart:e,options:{type:"polygon",xField:h["f"],yField:h["g"],colorField:r,tooltipFields:Object(i["C"])(g)&&g.concat([h["d"],h["b"]]),label:c,state:p,mapping:{tooltip:v,color:a,style:f}}}),t}function k(t){var e=t.chart,n=t.options,i=n.isTransposed;return e.coordinate({type:"rect",actions:i?[["transpose"],["reflect","x"]]:[]}),t}function F(t){var e=function(t,e,n,i){return Object(c["a"])(Object(c["a"])({},i),{start:[t[h["f"]][1],t[h["g"]][1]],end:[t[h["f"]][1]+.05,t[h["g"]][1]]})};return p(e)(t),t}function E(t){return Object(a["f"])(S,A,k,F)(t)}function T(t){var e,n=t.options,r=n.compareField,c=n.xField,l=n.yField,u=n.locale,f=n.funnelStyle,p=n.data,d=Object(o["a"])(u),g={label:r?{fields:[c,l,r,h["d"],h["b"]],formatter:function(t){return""+t[l]}}:{fields:[c,l,h["d"],h["b"]],offset:0,position:"middle",formatter:function(t){return t[c]+" "+t[l]}},tooltip:{title:c,formatter:function(t){return{name:t[c],value:t[l]}}},conversionTag:{formatter:function(t){return d.get(["conversionTag","label"])+": "+s["a"].apply(void 0,t[h["b"]])}}};return(r||f)&&(e=function(t){return Object(a["c"])({},r&&{lineWidth:1,stroke:"#fff"},Object(i["I"])(f)?f(t):f)}),Object(a["c"])({options:g},t,{options:{funnelStyle:e,data:Object(i["e"])(p)}})}function P(t){var e=t.options,n=e.compareField,i=e.dynamicHeight,r=e.seriesField;return r?M(t):n?j(t):i?E(t):m(t)}function I(t){var e,n=t.options,i=n.xAxis,o=n.yAxis,s=n.xField,c=n.yField;return Object(a["f"])(Object(r["g"])((e={},e[s]=i,e[c]=o,e)))(t)}function B(t){var e=t.chart;return e.axis(!1),t}function L(t){var e=t.chart,n=t.options,i=n.legend;return!1===i?e.legend(!1):e.legend(i),t}function D(t){return Object(a["f"])(T,P,I,B,r["l"],r["c"],L,r["a"],r["k"],Object(r["b"])())(t)}},"0cc4":function(t,e,n){"use strict";n.d(e,"b",(function(){return C})),n.d(e,"a",(function(){return F}));var i=n("5809"),r=n("8937"),o=n("c34d"),a=n("917c"),s=n("62e3"),c=n("e4ea");function l(t,e){return Object(s["c"])({size:e?32:80,spacing:e?8:12,offset:e?32:0,arrow:!1!==t.arrow&&{headSize:12,style:{fill:"rgba(0, 0, 0, 0.05)"}},text:!1!==t.text&&{style:{fontSize:12,fill:"rgba(0, 0, 0, 0.85)",textAlign:"center",textBaseline:"middle"},formatter:c["a"]}},t)}function u(t,e){return Object(r["W"])(e.getModel().points,(function(e){return t.convertPoint(e)}))}function h(t,e,n){var r=t.view,o=t.geometry,a=t.group,s=t.options,c=t.horizontal,l=s.offset,h=s.size,f=s.arrow,p=r.getCoordinate(),d=u(p,e)[3],g=u(p,n)[0],v=g.y-d.y,y=g.x-d.x;if("boolean"!==typeof f){var m,b=f.headSize,x=s.spacing;c?(y-b)/2<x?(x=Math.max(1,(y-b)/2),m=[[d.x+x,d.y-l],[d.x+x,d.y-l-h],[g.x-x,g.y-l-h/2]]):m=[[d.x+x,d.y-l],[d.x+x,d.y-l-h],[g.x-x-b,g.y-l-h],[g.x-x,g.y-l-h/2],[g.x-x-b,g.y-l]]:(v-b)/2<x?(x=Math.max(1,(v-b)/2),m=[[d.x+l,d.y+x],[d.x+l+h,d.y+x],[g.x+l+h/2,g.y-x]]):m=[[d.x+l,d.y+x],[d.x+l+h,d.y+x],[g.x+l+h,g.y-x-b],[g.x+l+h/2,g.y-x],[g.x+l,g.y-x-b]],a.addShape("polygon",{id:r.id+"-conversion-tag-arrow-"+o.getElementId(e.getModel().mappingData),name:"conversion-tag-arrow",origin:{element:e,nextElement:n},attrs:Object(i["a"])(Object(i["a"])({},f.style||{}),{points:m})})}}function f(t,e,n){var r,o,a,s=t.view,c=t.geometry,l=t.group,h=t.options,f=t.field,p=t.horizontal,d=h.offset,g=h.size;if("boolean"!==typeof h.text){var v=s.getCoordinate(),y=(null===(r=h.text)||void 0===r?void 0:r.formatter)&&(null===(o=h.text)||void 0===o?void 0:o.formatter(e.getData()[f],n.getData()[f])),m=u(v,e)[p?3:0],b=u(v,n)[p?0:3],x=l.addShape("text",{id:s.id+"-conversion-tag-text-"+c.getElementId(e.getModel().mappingData),name:"conversion-tag-text",origin:{element:e,nextElement:n},attrs:Object(i["a"])(Object(i["a"])({},(null===(a=h.text)||void 0===a?void 0:a.style)||{}),{text:y,x:p?(m.x+b.x)/2:m.x+d+g/2,y:p?m.y-d-g/2:(m.y+b.y)/2})});if(p){var O=b.x-m.x,j=x.getBBox().width;if(j>O){var w=j/y.length,C=Math.max(1,Math.ceil(O/w)-1),M=y.slice(0,C)+"...";x.attr("text",M)}}}}function p(t,e,n){h(t,e,n),f(t,e,n)}function d(t,e,n){return void 0===e&&(e=!0),void 0===n&&(n=!1),function(i){var o=i.options,c=i.chart,u=o.conversionTag,h=o.theme;return u&&!n&&(c.theme(Object(s["c"])({},Object(r["O"])(h)?h:Object(a["k"])(h),{columnWidthRatio:1/3})),c.annotation().shape({render:function(n,i){var o=n.addGroup({id:c.id+"-conversion-tag-group",name:"conversion-tag-group"}),a=Object(r["m"])(c.geometries,(function(t){return"interval"===t.type})),s={view:i,geometry:a,group:o,field:t,horizontal:e,options:l(u,e)},h=a.elements;Object(r["j"])(h,(function(t,e){e>0&&p(s,h[e-1],t)}))}})),i}}var g={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"},v=function(t,e){return"hover"===t?[{trigger:"interval:mouseenter",action:["element-highlight-by-color:highlight","element-link-by-color:link"],arg:[null,{style:e}]}]:[{trigger:"interval:click",action:["element-highlight-by-color:clear","element-highlight-by-color:highlight","element-link-by-color:clear","element-link-by-color:unlink","element-link-by-color:link"],arg:[null,null,null,null,{style:e}]}]};function y(t){return void 0===t&&(t=!1),function(e){var n=e.chart,i=e.options,r=i.connectedArea,o=function(){n.removeInteraction(g.hover),n.removeInteraction(g.click)};if(!t&&r){var a=r.trigger||"hover";o(),n.interaction(g[a],{start:v(a,r.style)})}else o();return e}}Object(a["o"])(g.hover,{start:v(g.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),Object(a["o"])(g.click,{start:v(g.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});var m=n("b4aa"),b=n("87d0"),x=n("9cae"),O=n("b2a0");function j(t){var e=t.options,n=e.legend,r=e.seriesField,o=e.isStack;return r?!1!==n&&(n=Object(i["a"])({position:o?"right-top":"top-left"},n)):n=!1,t.options.legend=n,t}function w(t){var e=t.chart,n=t.options,r=n.data,o=n.columnStyle,a=n.color,c=n.columnWidthRatio,l=n.isPercent,u=n.isGroup,h=n.isStack,f=n.xField,p=n.yField,d=n.seriesField,g=n.groupField,v=n.tooltip,y=n.shape,b=l&&u&&h?Object(O["b"])(r,p,[f,g],p):Object(O["a"])(r,p,f,p,l),x=[];h&&d&&!u?b.forEach((function(t){var e=x.find((function(e){return e[f]===t[f]&&e[d]===t[d]}));e?e[p]+=t[p]||0:x.push(Object(i["a"])({},t))})):x=b,e.data(x);var j=l?Object(i["a"])({formatter:function(t){return{name:u&&h?t[d]+" - "+t[g]:t[d]||t[f],value:(100*Number(t[p])).toFixed(2)+"%"}}},v):v,w=Object(s["c"])({},t,{options:{data:x,widthRatio:c,tooltip:j,interval:{shape:y,style:o,color:a}}});return Object(m["c"])(w),w}function C(t){var e,n,r=t.options,a=r.xAxis,c=r.yAxis,l=r.xField,u=r.yField,h=r.data,f=r.isPercent,p=f?{max:1,min:0,minLimit:0,maxLimit:1}:{};return Object(s["f"])(Object(o["g"])((e={},e[l]=a,e[u]=c,e),(n={},n[l]={type:"cat"},n[u]=Object(i["a"])(Object(i["a"])({},Object(s["b"])(h,u)),p),n)))(t)}function M(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return!1===i?e.axis(o,!1):e.axis(o,i),!1===r?e.axis(a,!1):e.axis(a,r),t}function S(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 A(t){var e=t.chart,n=t.options,r=n.label,o=n.yField,a=n.isRange,c=Object(s["d"])(e,"interval");if(r){var l=r.callback,u=Object(i["c"])(r,["callback"]);c.label({fields:[o],callback:l,cfg:Object(i["a"])({layout:(null===u||void 0===u?void 0:u.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Object(s["A"])(a?Object(i["a"])({content:function(t){var e;return null===(e=t[o])||void 0===e?void 0:e.join("-")}},u):u))})}else c.label(!1);return t}function k(t){var e=t.chart,n=t.options,o=n.tooltip,a=n.isGroup,c=n.isStack,l=n.groupField,u=n.data,h=n.xField,f=n.yField,p=n.seriesField;if(!1===o)e.tooltip(!1);else{var d=o;if(a&&c){var g=(null===d||void 0===d?void 0:d.formatter)||function(t){return{name:t[p]+" - "+t[l],value:t[f]}};d=Object(i["a"])(Object(i["a"])({},d),{customItems:function(t){var e=[];return Object(r["j"])(t,(function(t){var n=Object(r["l"])(u,(function(e){return Object(r["J"])(e,Object(s["t"])(t.data,[h,p]))}));n.forEach((function(n){e.push(Object(i["a"])(Object(i["a"])(Object(i["a"])({},t),{value:n[f],data:n,mappingData:{_origin:n}}),g(n)))}))})),e}})}e.tooltip(d)}return t}function F(t,e){void 0===e&&(e=!1);var n=t.options,i=n.seriesField;return Object(s["f"])(j,o["k"],Object(b["a"])("columnStyle"),o["j"],w,C,M,S,k,o["i"],o["h"],A,x["a"],o["c"],o["a"],Object(o["b"])(),d(n.yField,!e,!!i),y(!n.isStack),o["e"])(t)}},"0dd4":function(t,e,n){"use strict";e["a"]=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)}},"0e37":function(t,e,n){"use strict";n("5e24"),n("878f"),n("37d8"),n("dd3e"),n("074b"),n("0767"),n("c3a5"),n("e4c3"),n("3e28"),n("8944"),n("a0ae")},"0f20":function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return l}));var i=n("5809"),r=n("8937"),o=n("f2ce"),a=n("3f35");function s(t,e){if(!t)return{};var n=t.filter((function(t){var n=Object(r["s"])(t,[e]);return Object(r["M"])(n)&&!isNaN(n)})),i=n.every((function(t){return Object(r["s"])(t,[e])>=0})),o=n.every((function(t){return Object(r["s"])(t,[e])<=0}));return i?{min:0}:o?{max:0}:{}}function c(t,e,n,r,o){if(void 0===o&&(o=[]),!Array.isArray(t))return{nodes:[],links:[]};var s=[],c={},l=-1;return t.forEach((function(t){var u=t[e],h=t[n],f=t[r],p=Object(a["a"])(t,o);c[u]||(c[u]=Object(i["a"])({id:++l,name:u},p)),c[h]||(c[h]=Object(i["a"])({id:++l,name:h},p)),s.push(Object(i["a"])({source:c[u].id,target:c[h].id,value:f},p))})),{nodes:Object.values(c).sort((function(t,e){return t.id-e.id})),links:s}}function l(t,e){var n=Object(r["l"])(t,(function(t){var n=t[e];return null===n||"number"===typeof n&&!isNaN(n)}));return Object(o["b"])(o["a"].WARN,n.length===t.length,"illegal data existed in chart data."),n}},1183:function(t,e,n){"use strict";n.d(e,"e",(function(){return O})),n.d(e,"b",(function(){return A})),n.d(e,"a",(function(){return z})),n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return H})),n.d(e,"f",(function(){return i}));var i={};function r(t){return Math.min.apply(null,t)}function o(t){return Math.max.apply(null,t)}function a(t,e,n,i){var r=t-n,o=e-i;return Math.sqrt(r*r+o*o)}function s(t,e){return Math.abs(t-e)<.001}function c(t,e){var n=r(t),i=r(e),a=o(t),s=o(e);return{x:n,y:i,width:a-n,height:s-i}}function l(t,e,n,i){return{minX:r([t,n]),maxX:o([t,n]),minY:r([e,i]),maxY:o([e,i])}}function u(t){return(t+2*Math.PI)%(2*Math.PI)}n.r(i),n.d(i,"distance",(function(){return a})),n.d(i,"isNumberEqual",(function(){return s})),n.d(i,"getBBoxByArray",(function(){return c})),n.d(i,"getBBoxRange",(function(){return l})),n.d(i,"piMod",(function(){return u}));var h=n("6711"),f={box:function(t,e,n,i){return c([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,o){var a=[n-t,i-e];if(h["exactEquals"](a,[0,0]))return Math.sqrt((r-t)*(r-t)+(o-e)*(o-e));var s=[-a[1],a[0]];h["normalize"](s,s);var c=[r-t,o-e];return Math.abs(h["dot"](c,s))},tangentAngle:function(t,e,n,i){return Math.atan2(i-e,n-t)}},p=1e-4;function d(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,f=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<c&&(s=g,c=y)}if(0===s)return{x:t[0],y:e[0]};if(1===s){var m=t.length;return{x:t[m-1],y:e[m-1]}}c=1/0;for(d=0;d<32;d++){if(f<p)break;var b=s-f,x=s+f;v=[r.apply(null,t.concat([b])),r.apply(null,e.concat([b]))],y=a(l[0],l[1],v[0],v[1]);if(b>=0&&y<c)s=b,c=y;else{var O=[r.apply(null,t.concat([x])),r.apply(null,e.concat([x]))],j=a(l[0],l[1],O[0],O[1]);x<=1&&j<c?(s=x,c=j):f*=.5}}return{x:r.apply(null,t.concat([s])),y:r.apply(null,e.concat([s]))}}function g(t,e){for(var n=0,i=t.length,r=0;r<i;r++){var o=t[r],s=e[r],c=t[(r+1)%i],l=e[(r+1)%i];n+=a(o,s,c,l)}return n/2}function v(t,e,n,i){var r=1-i;return r*r*t+2*i*r*e+i*i*n}function y(t,e,n){var i=t+n-2*e;if(s(i,0))return[.5];var r=(t-e)/i;return r<=1&&r>=0?[r]:[]}function m(t,e,n,i){return 2*(1-i)*(e-t)+2*i*(n-e)}function b(t,e,n,i,r,o,a){var s=v(t,n,r,a),c=v(e,i,o,a),l=f.pointAt(t,e,n,i,a),u=f.pointAt(n,i,r,o,a);return[[t,e,l.x,l.y,s,c],[s,c,u.x,u.y,r,o]]}function x(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=b(t,e,n,i,r,o,.5),l=c[0],u=c[1];return l.push(s-1),u.push(s-1),x.apply(null,l)+x.apply(null,u)}var O={box:function(t,e,n,i,r,o){var a=y(t,n,r)[0],s=y(e,i,o)[0],l=[t,r],u=[e,o];return void 0!==a&&l.push(v(t,n,r,a)),void 0!==s&&u.push(v(e,i,o,s)),c(l,u)},length:function(t,e,n,i,r,o){return x(t,e,n,i,r,o,3)},nearestPoint:function(t,e,n,i,r,o,a,s){return d([t,n,r],[e,i,o],a,s,v)},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:v,pointAt:function(t,e,n,i,r,o,a){return{x:v(t,n,r,a),y:v(e,i,o,a)}},divide:function(t,e,n,i,r,o,a){return b(t,e,n,i,r,o,a)},tangentAngle:function(t,e,n,i,r,o,a){var s=m(t,n,r,a),c=m(e,i,o,a),l=Math.atan2(c,s);return u(l)}};function j(t,e,n,i,r){var o=1-r;return o*o*o*t+3*e*r*o*o+3*n*r*r*o+i*r*r*r}function w(t,e,n,i,r){var o=1-r;return 3*(o*o*(e-t)+2*o*r*(n-e)+r*r*(i-n))}function C(t,e,n,i){var r,o,a,c=-3*t+9*e-9*n+3*i,l=6*t-12*e+6*n,u=3*e-3*t,h=[];if(s(c,0))s(l,0)||(r=-u/l,r>=0&&r<=1&&h.push(r));else{var f=l*l-4*c*u;s(f,0)?h.push(-l/(2*c)):f>0&&(a=Math.sqrt(f),r=(-l+a)/(2*c),o=(-l-a)/(2*c),r>=0&&r<=1&&h.push(r),o>=0&&o<=1&&h.push(o))}return h}function M(t,e,n,i,r,o,a,s,c){var l=j(t,n,r,a,c),u=j(e,i,o,s,c),h=f.pointAt(t,e,n,i,c),p=f.pointAt(n,i,r,o,c),d=f.pointAt(r,o,a,s,c),g=f.pointAt(h.x,h.y,p.x,p.y,c),v=f.pointAt(p.x,p.y,d.x,d.y,c);return[[t,e,h.x,h.y,g.x,g.y,l,u],[l,u,v.x,v.y,d.x,d.y,a,s]]}function S(t,e,n,i,r,o,a,s,c){if(0===c)return g([t,n,r,a],[e,i,o,s]);var l=M(t,e,n,i,r,o,a,s,.5),u=l[0],h=l[1];return u.push(c-1),h.push(c-1),S.apply(null,u)+S.apply(null,h)}var A={extrema:C,box:function(t,e,n,i,r,o,a,s){for(var l=[t,a],u=[e,s],h=C(t,n,r,a),f=C(e,i,o,s),p=0;p<h.length;p++)l.push(j(t,n,r,a,h[p]));for(p=0;p<f.length;p++)u.push(j(e,i,o,s,f[p]));return c(l,u)},length:function(t,e,n,i,r,o,a,s){return S(t,e,n,i,r,o,a,s,3)},nearestPoint:function(t,e,n,i,r,o,a,s,c,l,u){return d([t,n,r,a],[e,i,o,s],c,l,j,u)},pointDistance:function(t,e,n,i,r,o,s,c,l,u,h){var f=this.nearestPoint(t,e,n,i,r,o,s,c,l,u,h);return a(f.x,f.y,l,u)},interpolationAt:j,pointAt:function(t,e,n,i,r,o,a,s,c){return{x:j(t,n,r,a,c),y:j(e,i,o,s,c)}},divide:function(t,e,n,i,r,o,a,s,c){return M(t,e,n,i,r,o,a,s,c)},tangentAngle:function(t,e,n,i,r,o,a,s,c){var l=w(t,n,r,a,c),h=w(e,i,o,s,c);return u(Math.atan2(h,l))}};function k(t,e){var n=Math.abs(t);return e>0?n:-1*n}var F={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,o){var a=n,s=i;if(0===a||0===s)return{x:t,y:e};for(var c,l,u=r-t,h=o-e,f=Math.abs(u),p=Math.abs(h),d=a*a,g=s*s,v=Math.PI/4,y=0;y<4;y++){c=a*Math.cos(v),l=s*Math.sin(v);var m=(d-g)*Math.pow(Math.cos(v),3)/a,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)),A=S/Math.sqrt(d+g-c*c-l*l);v+=A,v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+k(c,u),y:e+k(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 o=2*Math.PI*r;return{x:t+n*Math.cos(o),y:e+i*Math.sin(o)}},tangentAngle:function(t,e,n,i,r){var o=2*Math.PI*r,a=Math.atan2(i*Math.cos(o),-n*Math.sin(o));return u(a)}};function E(t,e,n,i,r,o,a,s){return-1*n*Math.cos(r)*Math.sin(s)-i*Math.sin(r)*Math.cos(s)}function T(t,e,n,i,r,o,a,s){return-1*n*Math.sin(r)*Math.sin(s)+i*Math.cos(r)*Math.cos(s)}function P(t,e,n){return Math.atan(-e/t*Math.tan(n))}function I(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function B(t,e,n,i,r,o){return n*Math.cos(r)*Math.cos(o)-i*Math.sin(r)*Math.sin(o)+t}function L(t,e,n,i,r,o){return n*Math.sin(r)*Math.cos(o)+i*Math.cos(r)*Math.sin(o)+e}function D(t,e,n,i){var r=Math.atan2(i*t,n*e);return(r+2*Math.PI)%(2*Math.PI)}function R(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function _(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,o,a){for(var s=P(n,i,r),c=1/0,l=-1/0,u=[o,a],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var f=s+h;o<a?o<f&&f<a&&u.push(f):a<f&&f<o&&u.push(f)}for(h=0;h<u.length;h++){var p=B(t,e,n,i,r,u[h]);p<c&&(c=p),p>l&&(l=p)}var d=I(n,i,r),g=1/0,v=-1/0,y=[o,a];for(h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var m=d+h;o<a?o<m&&m<a&&y.push(m):a<m&&m<o&&y.push(m)}for(h=0;h<y.length;h++){var b=L(t,e,n,i,r,y[h]);b<g&&(g=b),b>v&&(v=b)}return{x:c,y:g,width:l-c,height:v-g}},length:function(t,e,n,i,r,o,a){},nearestPoint:function(t,e,n,i,r,o,a,s,c){var l=_(s-t,c-e,-r),u=l[0],h=l[1],f=F.nearestPoint(0,0,n,i,u,h),p=D(n,i,f.x,f.y);p<o?f=R(n,i,o):p>a&&(f=R(n,i,a));var d=_(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,o,a,s){var c=(a-o)*s+o;return{x:B(t,e,n,i,r,c),y:L(t,e,n,i,r,c)}},tangentAngle:function(t,e,n,i,r,o,a,s){var c=(a-o)*s+o,l=E(t,e,n,i,r,o,a,c),h=T(t,e,n,i,r,o,a,c);return u(Math.atan2(h,l))}};function Y(t){for(var e=0,n=[],i=0;i<t.length-1;i++){var r=t[i],o=t[i+1],s=a(r[0],r[1],o[0],o[1]),c={from:r,to:o,length:s};n.push(c),e+=s}return{segments:n,totalLength:e}}function N(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var i=t[n],r=t[n+1];e+=a(i[0],i[1],r[0],r[1])}return e}function G(t,e){if(e>1||e<0||t.length<2)return null;var n=Y(t),i=n.segments,r=n.totalLength;if(0===r)return{x:t[0][0],y:t[0][1]};for(var o=0,a=null,s=0;s<i.length;s++){var c=i[s],l=c.from,u=c.to,h=c.length/r;if(e>=o&&e<=o+h){var p=(e-o)/h;a=f.pointAt(l[0],l[1],u[0],u[1],p);break}o+=h}return a}function X(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=Y(t),i=n.segments,r=n.totalLength,o=0,a=0,s=0;s<i.length;s++){var c=i[s],l=c.from,u=c.to,h=c.length/r;if(e>=o&&e<=o+h){a=Math.atan2(u[1]-l[1],u[0]-l[0]);break}o+=h}return a}function V(t,e,n){for(var i=1/0,r=0;r<t.length-1;r++){var o=t[r],a=t[r+1],s=f.pointDistance(o[0],o[1],a[0],a[1],e,n);s<i&&(i=s)}return i}var H={box:function(t){for(var e=[],n=[],i=0;i<t.length;i++){var r=t[i];e.push(r[0]),n.push(r[1])}return c(e,n)},length:function(t){return N(t)},pointAt:function(t,e){return G(t,e)},pointDistance:function(t,e,n){return V(t,e,n)},tangentAngle:function(t,e){return X(t,e)}}},1243:function(t,e,n){"use strict";var i=n("00c6"),r=n("7b46"),o=n("330d"),a=n("b2cb"),s=n("8937"),c=n("74f4"),l=n("fb77"),u=n("ea1d"),h=n("6730"),f=n("b6fb"),p=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},d=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},g=[1,0,0,0,1,0,0,0,1];function v(t,e,n){var i={},r=e.fromAttrs,o=e.toAttrs;if(!t.destroyed){var a;for(var c in o)if(!Object(s["H"])(r[c],o[c]))if("path"===c){var l=o[c],v=r[c];l.length>v.length?(l=f["parsePathString"](o[c]),v=f["parsePathString"](r[c]),v=f["fillPathByDiff"](v,l),v=f["formatPath"](v,l),e.fromAttrs.path=v,e.toAttrs.path=l):e.pathFormatted||(l=f["parsePathString"](o[c]),v=f["parsePathString"](r[c]),v=f["formatPath"](v,l),e.fromAttrs.path=v,e.toAttrs.path=l,e.pathFormatted=!0),i[c]=[];for(var y=0;y<l.length;y++){for(var m=l[y],b=v[y],x=[],O=0;O<m.length;O++)Object(s["M"])(m[O])&&b&&Object(s["M"])(b[O])?(a=Object(u["a"])(b[O],m[O]),x.push(a(n))):x.push(m[O]);i[c].push(x)}}else if("matrix"===c){var j=Object(h["a"])(r[c]||g,o[c]||g),w=j(n);i[c]=w}else p(c)&&d(o[c])?i[c]=o[c]:Object(s["I"])(o[c])||(a=Object(u["a"])(r[c],o[c]),i[c]=a(n));t.attr(i)}}function y(t,e,n){var i,r=e.startTime,o=e.delay;if(n<r+o||e._paused)return!1;var a=e.duration,s=e.easing;if(n=n-r-e.delay,e.repeat)i=n%a/a,i=l[s](i);else{if(i=n/a,!(i<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;i=l[s](i)}if(e.onFrame){var c=e.onFrame(i);t.attr(c)}else v(t,e,i);return!1}var m=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,i=this,r=!1;this.timer=c["a"]((function(o){if(i.current=o,i.animators.length>0){for(var a=i.animators.length-1;a>=0;a--)if(t=i.animators[a],t.destroyed)i.removeAnimator(a);else{if(!t.isAnimatePaused()){e=t.get("animations");for(var s=e.length-1;s>=0;s--)n=e[s],r=y(t,n,o),r&&(e.splice(s,1),r=!1,n.callback&&n.callback())}0===e.length&&i.removeAnimator(a)}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}(),b=m,x=n("e5e2"),O=40,j=0,w=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function C(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function M(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(a["g"])(t,i))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var S=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(a["a"])(w,(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(a["a"])(w,(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,o){var a=new x["a"](t,e);return a.fromShape=r,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(i),a},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],o=!1;if(r)r.call(this,n,i,e);else{var a=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?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,i,null,null)}if(o||(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===j&&(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===j){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,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,r,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,c=n.timeStamp,l=c-this.mousedownTimeStamp,u=a.clientX-t.clientX,h=a.clientY-t.clientY,f=u*u+h*h;l>120||f>O?s&&s.get("draggable")?(o=this.mousedownShape,o.set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),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,o){var a=this._getEventObj(t,e,n,i,r,o);if(i){a.shape=i,C(i,t,a);var s=i.getParent();while(s)s.emitDelegation(t,a),a.propagationStopped||M(s,t,a),a.propagationPath.push(s),s=s.getParent()}else{var c=this.canvas;C(c,t,a)}},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}(),A=S,k="px",F=Object(r["a"])(),E=F&&"firefox"===F.name,T=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return Object(i["a"])(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(a["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 A({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new b(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");a["c"]&&(n.style.width=t+k,n.style.height=e+k)},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");a["c"]&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){var e=this.get("supportCSSTransform");if(e){if(E&&!Object(a["e"])(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Object(a["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}(o["a"]);e["a"]=T},1405:function(t,e,n){"use strict";var i=n("5809"),r=n("917c"),o=n("cc94"),a=n("8937"),s=n("c34d"),c=n("62e3"),l=n("b4aa"),u="liquid";function h(t){return[{percent:t,type:u}]}function f(t){var e=t.chart,n=t.options,i=n.percent,r=n.liquidStyle,o=n.radius,a=n.outline,s=n.wave,u=n.shape;e.scale({percent:{min:0,max:1}}),e.data(h(i));var f=n.color||e.getTheme().defaultColor,p=Object(c["c"])({},t,{options:{xField:"type",yField:"percent",widthRatio:o,interval:{color:f,style:r,shape:"liquid-fill-gauge"}}}),d=Object(l["c"])(p).ext,g=d.geometry,v=e.getTheme().background,y={radius:o,outline:a,wave:s,shape:u,background:v};return g.customInfo(y),e.legend(!1),e.axis(!1),e.tooltip(!1),t}function p(t,e){var n=t.chart,r=t.options,o=r.statistic,s=r.percent,l=r.meta;n.getController("annotation").clear(!0);var u=Object(a["s"])(l,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},h=o.content;return h&&(h=Object(c["c"])({},h,{content:Object(a["K"])(h.content)?u(s):h.content})),Object(c["w"])(n,{statistic:Object(i["a"])(Object(i["a"])({},o),{content:h}),plotType:"liquid"},{percent:s}),e&&n.render(!0),t}function d(t){return Object(c["f"])(s["k"],Object(s["f"])("liquidStyle"),f,p,Object(s["g"])({}),s["a"],s["c"])(t)}var g={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"},v=n("a9a0"),y=5e3;function m(t,e,n){return t+(e-t)*n}function b(t){var e=Object(i["a"])({opacity:1},t.style);return t.color&&!e.fill&&(e.fill=t.color),e}function x(t){var e={fill:"#fff",fillOpacity:0,lineWidth:4},n=Object(a["db"])({},e,t.style);return t.color&&!n.stroke&&(n.stroke=t.color),Object(a["M"])(t.opacity)&&(n.opacity=n.strokeOpacity=t.opacity),n}function O(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 j(t,e,n,i,r,o,a){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=o-t+l-2*t;c.push(["M",u,e]);for(var h=0,f=0;f<s;++f){var p=f%4,d=O(f*n/4,p,n,r);c.push(["C",d[0][0]+u,-d[0][1]+e,d[1][0]+u,-d[1][1]+e,d[2][0]+u,-d[2][1]+e]),f===s-1&&(h=d[2][0])}return c.push(["L",h+u,a+t]),c.push(["L",u,a+t]),c.push(["Z"]),c}function w(t,e,n,i,r,o,a,s,c){for(var l=r.fill,u=r.opacity,h=a.getBBox(),f=h.maxX-h.minX,p=h.maxY-h.minY,d=0;d<i;d++){var g=i<=1?0:d/(i-1),b=o.addShape("path",{name:"waterwave-path",attrs:{path:j(s,h.minY+p*n,c,0,f/32,t,e),fill:l,opacity:m(.2,.9,g)*u}});try{var x=Object(v["a"])([["t",c,0]]);b.stopAnimate(),b.animate({matrix:x},{duration:m(.5*y,y,g),repeat:!0})}catch(O){console.warn("off-screen group animate error!")}}}function C(t,e,n,i){var r=2*n/3,o=Math.max(r,i),a=r/2,s=t,c=a+e-o/2,l=Math.asin(a/(.85*(o-a))),u=Math.sin(l)*a,h=Math.cos(l)*a,f=s-h,p=c+u,d=t,g=c+a/Math.sin(l);return"\n M "+f+" "+p+"\n A "+a+" "+a+" 0 1 1 "+(f+2*h)+" "+p+"\n Q "+d+" "+g+" "+t+" "+(e+o/2)+"\n Q "+d+" "+g+" "+f+" "+p+"\n Z \n "}function M(t,e,n,i){var r=n/2,o=i/2;return"\n M "+t+" "+(e-o)+" \n a "+r+" "+o+" 0 1 0 0 "+2*o+"\n a "+r+" "+o+" 0 1 0 0 "+2*-o+"\n Z\n "}function S(t,e,n,i){var r=i/2,o=n/2;return"\n M "+t+" "+(e-r)+"\n L "+(t+o)+" "+e+"\n L "+t+" "+(e+r)+"\n L "+(t-o)+" "+e+"\n Z\n "}function A(t,e,n,i){var r=i/2,o=n/2;return"\n M "+t+" "+(e-r)+"\n L "+(t+o)+" "+(e+r)+"\n L "+(t-o)+" "+(e+r)+"\n Z\n "}function k(t,e,n,i){var r=.618,o=i/2,a=n/2*r;return"\n M "+(t-a)+" "+(e-o)+"\n L "+(t+a)+" "+(e-o)+"\n L "+(t+a)+" "+(e+o)+"\n L "+(t-a)+" "+(e+o)+"\n Z\n "}Object(r["p"])("interval","liquid-fill-gauge",{draw:function(t,e){var n=.5,i=.5,r=t.customInfo,o=r,s=o.radius,c=o.shape,l=o.background,u=r.outline,h=r.wave,f=u.border,p=u.distance,d=h.count,g=h.length,v=Object(a["ib"])(t.points,(function(t,e){return Math.min(t,e.x)}),1/0),y=this.parsePoint({x:n,y:i}),m=this.parsePoint({x:v,y:i}),O=y.x-m.x,j=Math.min(O,m.y*s),F=b(t),E=x(Object(a["db"])({},t,u)),T=j-f/2,P={pin:C,circle:M,diamond:S,triangle:A,rect:k},I="function"===typeof c?c:P[c]||P["circle"],B=I(y.x,y.y,2*T,2*T),L=e.addGroup({name:"waves"}),D=L.setClip({type:"path",attrs:{path:B}});return w(y.x,y.y,1-t.points[1].y,d,F,L,D,2*j,g),e.addShape("path",{name:"distance",attrs:{path:B,fill:"transparent",lineWidth:f+2*p,stroke:"transparent"===l?"#fff":l}}),e.addShape("path",{name:"wrap",attrs:Object(a["db"])(E,{path:B,fill:"transparent",lineWidth:f})}),e}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="liquid",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return g},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.chart.emit(r["i"].BEFORE_CHANGE_DATA,r["d"].fromData(this.chart,r["i"].BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(h(t)),p({chart:this.chart,options:this.options},!0),this.chart.emit(r["i"].AFTER_CHANGE_DATA,r["d"].fromData(this.chart,r["i"].AFTER_CHANGE_DATA,null))},e.prototype.getSchemaAdaptor=function(){return d}})(o["b"])},"147d":function(t,e,n){"use strict";n.d(e,"getAdjust",(function(){return r})),n.d(e,"registerAdjust",(function(){return o}));n("41c8"),n("59b0");var i={},r=function(t){return i[t.toLowerCase()]},o=function(t,e){if(r(t))throw new Error("Adjust type '"+t+"' existed.");i[t.toLowerCase()]=e}},"14b2":function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("8937"),a=n("c34d"),s=n("b4aa"),c=n("afaa"),l=n("62e3"),u="$$yField$$",h="$$diffField$$",f="$$absoluteField$$",p="$$isTotal$$",d={label:{},leaderLine:{style:{lineWidth:1,stroke:"#8c8c8c",lineDash:[4,2]}},total:{style:{fill:"rgba(0, 0, 0, 0.25)"}},interactions:[{type:"element-active"}],risingFill:"#f4664a",fallingFill:"#30bf78",waterfallStyle:{fill:"rgba(0, 0, 0, 0.25)"},yAxis:{grid:{line:{style:{lineDash:[4,2]}}}}};function g(t,e,n,r,a){var s,c=[];if(Object(o["ib"])(t,(function(t,e){var a;Object(l["r"])(l["a"].WARN,Object(o["M"])(e[n]),e[n]+" is not a valid number");var s=Object(o["S"])(e[n])?null:e[n];return c.push(Object(i["a"])(Object(i["a"])({},e),(a={},a[r]=[t,t+s],a))),t+s}),0),c.length&&a){var u=Object(o["s"])(c,[[t.length-1],r,[1]]);c.push((s={},s[e]=a.label,s[n]=u,s[r]=[0,u],s))}return c}function v(t,e,n,r){var a=g(t,e,n,u,r);return a.map((function(e,n){var r;return Object(o["O"])(e)?Object(i["a"])(Object(i["a"])({},e),(r={},r[f]=e[u][1],r[h]=e[u][1]-e[u][0],r[p]=n===t.length,r)):e}))}var y=n("917c");function m(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(i){var r=0===n?"M":"L";e.push([r,i.x,i.y])}}var o=t[0];return e.push(["L",o.x,o.y]),e.push(["z"]),e}function b(t){return Object(l["c"])({},t.defaultStyle,t.style,{fill:t.color})}function x(t){var e=t.options,n=e.locale,i=e.total,r=Object(c["a"])(n).get(["waterfall","total"]);return i&&"string"!==typeof i.label&&r&&(t.options.total.label=r),t}function O(t){var e=t.chart,n=t.options,i=n.data,r=n.xField,a=n.yField,c=n.total,f=n.leaderLine,d=n.columnWidthRatio,g=n.waterfallStyle,y=n.risingFill,m=n.fallingFill,b=n.color;e.data(v(i,r,a,c));var x=b||function(t){return Object(o["s"])(t,[p])?Object(o["s"])(c,["style","fill"],""):Object(o["s"])(t,[u,1])-Object(o["s"])(t,[u,0])>0?y:m},O=Object(l["c"])({},t,{options:{xField:r,yField:u,seriesField:r,rawFields:[a,h,p,u],widthRatio:d,interval:{style:g,shape:"waterfall",color:x}}}),j=Object(s["c"])(O).ext,w=j.geometry;return w.customInfo({leaderLine:f}),t}function j(t){var e,n,i=t.options,r=i.xAxis,s=i.yAxis,c=i.xField,p=i.yField,d=i.meta,g=Object(l["c"])({},{alias:p},Object(o["s"])(d,p));return Object(l["f"])(Object(a["g"])((e={},e[c]=r,e[p]=s,e[u]=s,e),Object(l["c"])({},d,(n={},n[u]=g,n[h]=g,n[f]=g,n))))(t)}function w(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return!1===i?e.axis(o,!1):e.axis(o,i),!1===r?(e.axis(a,!1),e.axis(u,!1)):(e.axis(a,r),e.axis(u,r)),t}function C(t){var e=t.chart,n=t.options,i=n.legend,r=n.total,a=n.risingFill,s=n.fallingFill,u=n.locale,h=Object(c["a"])(u);if(!1===i)e.legend(!1);else{var f=[{name:h.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:a}}},{name:h.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:s}}}];r&&f.push({name:r.label||"",value:"total",marker:{symbol:"square",style:Object(l["c"])({},{r:5},Object(o["s"])(r,"style"))}}),e.legend(Object(l["c"])({},{custom:!0,position:"top",items:f},i)),e.removeInteraction("legend-filter")}return t}function M(t){var e=t.chart,n=t.options,r=n.label,o=n.labelMode,a=n.xField,s=Object(l["d"])(e,"interval");if(r){var c=r.callback,u=Object(i["c"])(r,["callback"]);s.label({fields:"absolute"===o?[f,a]:[h,a],callback:c,cfg:Object(l["A"])(u)})}else s.label(!1);return t}function S(t){var e=t.chart,n=t.options,r=n.tooltip,o=n.xField,a=n.yField;if(!1!==r){e.tooltip(Object(i["a"])({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[a]},r));var s=e.geometries[0];(null===r||void 0===r?void 0:r.formatter)?s.tooltip(o+"*"+a,r.formatter):s.tooltip(a)}else e.tooltip(!1);return t}function A(t){return Object(l["f"])(x,a["k"],O,j,w,C,S,M,a["j"],a["c"],a["a"],Object(a["b"])())(t)}Object(y["p"])("interval","waterfall",{draw:function(t,e){var n=t.customInfo,r=t.points,a=t.nextPoints,s=e.addGroup(),c=this.parsePath(m(r)),l=b(t);s.addShape("path",{attrs:Object(i["a"])(Object(i["a"])({},l),{path:c})});var u=Object(o["s"])(n,"leaderLine");if(u&&a){var h=[["M",r[2].x,r[2].y],["L",a[0].x,a[0].y]];r[2].y===a[1].y&&(h[1]=["L",a[1].x,a[1].y]),h=this.parsePath(h),s.addShape("path",{attrs:Object(i["a"])({path:h},u.style||{})})}return s}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="waterfall",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return d},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(v(t,n,i,r))},e.prototype.getSchemaAdaptor=function(){return A},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}})(r["b"])},"14f3":function(t,e,n){"use strict";e["a"]=function(t,e,n,i,r){var o,a=t.children,s=-1,c=a.length,l=t.value&&(i-e)/t.value;while(++s<c)o=a[s],o.y0=n,o.y1=r,o.x0=e,o.x1=e+=o.value*l}},"16fb":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i={locale:"en-US",general:{increase:"Increase",decrease:"Decrease",root:"Root"},statistic:{total:"Total"},conversionTag:{label:"Rate"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"Total"}}},1710:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var i=n("40ef"),r=n("8f9b"),o="undefined"!==typeof ResizeObserver?r.createSensor:i.createSensor;e.createSensor=o},"17f7":function(t,e,n){"use strict";function i(t){return"number"===typeof t&&!isNaN(t)}function r(t,e,n){var i=Math.min(e,n),r=Math.max(e,n);return t>=i&&t<=r}n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return r}))},"1a0e":function(t,e,n){"use strict";var i=n("2c79"),r=n("612d");(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(i["b"])(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;i<n.length;i++){var r=n[i];e.add(r.clone())}return e}})(r["a"])},"1d73":function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var i=n("5809"),r=n("8937"),o=n("c34d"),a=n("62e3"),s=n("b4aa"),c=n("b2a0"),l=n("849a");function u(t){var e=t.chart,n=t.options,r=n.data,o=n.areaStyle,l=n.color,u=n.point,h=n.line,f=n.isPercent,p=n.xField,d=n.yField,g=n.tooltip,v=n.seriesField,y=n.startOnZero,m=null===u||void 0===u?void 0:u.state,b=Object(c["a"])(r,d,p,d,f);e.data(b);var x=f?Object(i["a"])({formatter:function(t){return{name:t[v]||t[p],value:(100*Number(t[d])).toFixed(2)+"%"}}},g):g,O=Object(a["c"])({},t,{options:{area:{color:l,style:o},line:h&&Object(i["a"])({color:l},h),point:u&&Object(i["a"])({color:l},u),tooltip:x,label:void 0,args:{startOnZero:y}}}),j=Object(a["c"])({options:{line:{size:2}}},O,{options:{sizeField:v,tooltip:!1}}),w=Object(a["c"])({},O,{options:{tooltip:!1,state:m}});return Object(s["a"])(O),Object(s["d"])(j),Object(s["e"])(w),t}function h(t){var e=t.chart,n=t.options,r=n.label,o=n.yField,s=Object(a["d"])(e,"area");if(r){var c=r.callback,l=Object(i["c"])(r,["callback"]);s.label({fields:[o],callback:c,cfg:Object(i["a"])({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Object(a["A"])(l))})}else s.label(!1);return t}function f(t){var e=t.chart,n=t.options,i=n.isStack,o=n.isPercent,a=n.seriesField;return(o||i)&&a&&Object(r["j"])(e.geometries,(function(t){t.adjust("stack")})),t}function p(t){return Object(a["f"])(o["k"],Object(o["f"])("areaStyle"),u,l["d"],f,l["b"],l["c"],o["l"],h,o["i"],Object(o["b"])(),o["c"],o["a"],o["e"])(t)}n.d(e,"b",(function(){return l["d"]}))},"1dde":function(t,e,n){var i=n("d039"),r=n("b622"),o=n("2d00"),a=r("species");t.exports=function(t){return o>=51||!i((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"1fb2":function(t,e,n){"use strict";var i=n("2c79"),r=n("7b46"),o=n("612d"),a=n("f049"),s=n("8937"),c=n("74f4"),l=n("fb77"),u=n("ea1d"),h=n("6730"),f=n("91da"),p=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},d=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},g=[1,0,0,0,1,0,0,0,1];function v(t,e,n){var i={},r=e.fromAttrs,o=e.toAttrs;if(!t.destroyed){var a;for(var c in o)if(!Object(s["H"])(r[c],o[c]))if("path"===c){var l=o[c],v=r[c];l.length>v.length?(l=f["c"](o[c]),v=f["c"](r[c]),v=f["a"](v,l),v=f["b"](v,l),e.fromAttrs.path=v,e.toAttrs.path=l):e.pathFormatted||(l=f["c"](o[c]),v=f["c"](r[c]),v=f["b"](v,l),e.fromAttrs.path=v,e.toAttrs.path=l,e.pathFormatted=!0),i[c]=[];for(var y=0;y<l.length;y++){for(var m=l[y],b=v[y],x=[],O=0;O<m.length;O++)Object(s["M"])(m[O])&&b&&Object(s["M"])(b[O])?(a=Object(u["a"])(b[O],m[O]),x.push(a(n))):x.push(m[O]);i[c].push(x)}}else if("matrix"===c){var j=Object(h["a"])(r[c]||g,o[c]||g),w=j(n);i[c]=w}else p(c)&&d(o[c])?i[c]=o[c]:Object(s["I"])(o[c])||(a=Object(u["a"])(r[c],o[c]),i[c]=a(n));t.attr(i)}}function y(t,e,n){var i,r=e.startTime,o=e.delay;if(n<r+o||e._paused)return!1;var a=e.duration,s=e.easing;if(n=n-r-e.delay,e.repeat)i=n%a/a,i=l[s](i);else{if(i=n/a,!(i<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;i=l[s](i)}if(e.onFrame){var c=e.onFrame(i);t.attr(c)}else v(t,e,i);return!1}var m=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,i=this,r=!1;this.timer=c["a"]((function(o){if(i.current=o,i.animators.length>0){for(var a=i.animators.length-1;a>=0;a--)if(t=i.animators[a],t.destroyed)i.removeAnimator(a);else{if(!t.isAnimatePaused()){e=t.get("animations");for(var s=e.length-1;s>=0;s--)n=e[s],r=y(t,n,o),r&&(e.splice(s,1),r=!1,n.callback&&n.callback())}0===e.length&&i.removeAnimator(a)}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}(),b=m,x=n("c1e2"),O=40,j=0,w=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function C(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function M(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(a["g"])(t,i))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var S=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(a["a"])(w,(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(a["a"])(w,(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,o){var a=new x["a"](t,e);return a.fromShape=r,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(i),a},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],o=!1;if(r)r.call(this,n,i,e);else{var a=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?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,i,null,null)}if(o||(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===j&&(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===j){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,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,r,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,c=n.timeStamp,l=c-this.mousedownTimeStamp,u=a.clientX-t.clientX,h=a.clientY-t.clientY,f=u*u+h*h;l>120||f>O?s&&s.get("draggable")?(o=this.mousedownShape,o.set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),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,o){var a=this._getEventObj(t,e,n,i,r,o);if(i){a.shape=i,C(i,t,a);var s=i.getParent();while(s)s.emitDelegation(t,a),a.propagationStopped||M(s,t,a),a.propagationPath.push(s),s=s.getParent()}else{var c=this.canvas;C(c,t,a)}},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}(),A=S,k="px",F=Object(r["a"])(),E=F&&"firefox"===F.name;(function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}Object(i["b"])(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(a["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 A({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new b(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");a["c"]&&(n.style.width=t+k,n.style.height=e+k)},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");a["c"]&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){var e=this.get("supportCSSTransform");if(e){if(E&&!Object(a["e"])(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Object(a["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))}})(o["a"])},"1fc0":function(t,e,n){},"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 _}));var i={};n.r(i),n.d(i,"create",(function(){return o})),n.d(i,"fromMat4",(function(){return a})),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 T})),n.d(i,"multiplyScalarAndAdd",(function(){return P})),n.d(i,"exactEquals",(function(){return I})),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 o(){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 a(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,o,a,s,c,l){var u=new r["a"](9);return u[0]=t,u[1]=e,u[2]=n,u[3]=i,u[4]=o,u[5]=a,u[6]=s,u[7]=c,u[8]=l,u}function u(t,e,n,i,r,o,a,s,c,l){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=a,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],o=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8],h=u*a-s*l,f=-u*o+s*c,p=l*o-a*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*a)*d,t[3]=f*d,t[4]=(u*n-r*c)*d,t[5]=(-s*n+r*o)*d,t[6]=p*d,t[7]=(-l*n+i*c)*d,t[8]=(a*n-i*o)*d,t):null}function d(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8];return t[0]=a*u-s*l,t[1]=r*l-i*u,t[2]=i*s-r*a,t[3]=s*c-o*u,t[4]=n*u-r*c,t[5]=r*o-n*s,t[6]=o*l-a*c,t[7]=i*c-n*l,t[8]=n*a-i*o,t}function g(t){var e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],c=t[7],l=t[8];return e*(l*o-a*c)+n*(-l*r+a*s)+i*(c*r-o*s)}function v(t,e,n){var i=e[0],r=e[1],o=e[2],a=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*a+d*l,t[1]=f*r+p*s+d*u,t[2]=f*o+p*c+d*h,t[3]=g*i+v*a+y*l,t[4]=g*r+v*s+y*u,t[5]=g*o+v*c+y*h,t[6]=m*i+b*a+x*l,t[7]=m*r+b*s+x*u,t[8]=m*o+b*c+x*h,t}function y(t,e,n){var i=e[0],r=e[1],o=e[2],a=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]=o,t[3]=a,t[4]=s,t[5]=c,t[6]=f*i+p*a+l,t[7]=f*r+p*s+u,t[8]=f*o+p*c+h,t}function m(t,e,n){var i=e[0],r=e[1],o=e[2],a=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*a,t[1]=p*r+f*s,t[2]=p*o+f*c,t[3]=p*a-f*i,t[4]=p*s-f*r,t[5]=p*c-f*o,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],o=e[3],a=n+n,s=i+i,c=r+r,l=n*a,u=i*a,h=i*s,f=r*a,p=r*s,d=r*c,g=o*a,v=o*s,y=o*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],o=e[3],a=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*a,b=n*c-r*a,x=n*l-o*a,O=i*c-r*s,j=i*l-o*s,w=r*l-o*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-a*F-l*M)*E,t[2]=(a*k-s*S+l*C)*E,t[3]=(r*k-i*F-o*A)*E,t[4]=(n*F-r*S+o*M)*E,t[5]=(i*S-n*k-o*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 T(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 P(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 I(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],o=t[2],a=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(o-d)<=r["b"]*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(a-g)<=r["b"]*Math.max(1,Math.abs(a),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"),_=n("9fe7")},"21e5":function(t,e,n){"use strict";function i(t){return null==t?null:r(t)}function r(t){if("function"!==typeof t)throw new Error;return t}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}))},2251:function(t,e,n){"use strict";var i=n("2c79"),r=n("7fa2"),o=n("f049"),a=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var i=n.getDefaultCfg();return n.cfg=Object(o["i"])(i,e),n}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(r["a"]);e["a"]=a},"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"}},2373:function(t,e,n){"use strict";var i=n("5be2"),r=n("21e5"),o=n("092b");function a(t){return Math.sqrt(t.value)}function s(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function c(t,e){return function(n){if(r=n.children){var r,o,a,s=r.length,c=t(n)*e||0;if(c)for(o=0;o<s;++o)r[o].r+=c;if(a=Object(i["b"])(r),c)for(o=0;o<s;++o)r[o].r-=c;n.r=a+c}}}function l(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}e["a"]=function(){var t=null,e=1,n=1,i=o["a"];function u(r){return r.x=e/2,r.y=n/2,t?r.eachBefore(s(t)).eachAfter(c(i,.5)).eachBefore(l(1)):r.eachBefore(s(a)).eachAfter(c(o["a"],1)).eachAfter(c(i,r.r/Math.min(e,n))).eachBefore(l(Math.min(e,n)/(2*r.r))),r}return u.radius=function(e){return arguments.length?(t=Object(r["a"])(e),u):t},u.size=function(t){return arguments.length?(e=+t[0],n=+t[1],u):[e,n]},u.padding=function(t){return arguments.length?(i="function"===typeof t?t:Object(o["b"])(+t),u):i},u}},2388:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}));var i=n("14f3"),r=n("ec83"),o=(1+Math.sqrt(5))/2;function a(t,e,n,o,a,s){var c,l,u,h,f,p,d,g,v,y,m,b=[],x=e.children,O=0,j=0,w=x.length,C=e.value;while(O<w){u=a-n,h=s-o;do{f=x[j++].value}while(!f&&j<w);for(p=d=f,y=Math.max(h/u,u/h)/(C*t),m=f*f*y,v=Math.max(d/m,m/p);j<w;++j){if(f+=l=x[j].value,l<p&&(p=l),l>d&&(d=l),m=f*f*y,g=Math.max(d/m,m/p),g>v){f-=l;break}v=g}b.push(c={value:f,dice:u<h,children:x.slice(O,j)}),c.dice?Object(i["a"])(c,n,o,a,C?o+=h*f/C:s):Object(r["a"])(c,n,o,C?n+=u*f/C:a,s),C-=f,O=j}return b}e["a"]=function t(e){function n(t,n,i,r,o){a(e,t,n,i,r,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(o)},"23b9":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return l}));var i=n("8937"),r="nodeIndex",o="childNodeCount",a="nodeAncestor",s="Invalid field: it must be a string!";function c(t,e){var n=t.field,r=t.fields;if(Object(i["Q"])(n))return n;if(Object(i["C"])(n))return console.warn(s),n[0];if(console.warn(s+" will try to get fields instead."),Object(i["Q"])(r))return r;if(Object(i["C"])(r)&&r.length)return r[0];if(e)return e;throw new TypeError(s)}function l(t){var e,n,s=[];t&&t.each?t.each((function(t){var c,l;t.parent!==e?(e=t.parent,n=0):n+=1;var u=Object(i["l"])(((null===(c=t.ancestors)||void 0===c?void 0:c.call(t))||[]).map((function(t){return s.find((function(e){return e.name===t.name}))||t})),(function(e){var n=e.depth;return n>0&&n<t.depth}));t[a]=u,t[o]=(null===(l=t.children)||void 0===l?void 0:l.length)||0,t[r]=n,s.push(t)})):t&&t.eachNode&&t.eachNode((function(t){s.push(t)}));return s}},"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,o=i.tolerance||1e-10,a=t(e),s=t(n),c=n-e;if(a*s>0)throw"Initial bisect points must have opposite signs";if(0===a)return e;if(0===s)return n;for(var l=0;l<r;++l){c/=2;var u=e+c,h=t(u);if(h*a>=0&&(e=u),Math.abs(c)<o||0===h)return u}return e+c}function n(t){for(var e=new Array(t),n=0;n<t;++n)e[n]=0;return e}function i(t,e){return n(t).map((function(){return n(e)}))}function r(t,e){for(var n=0,i=0;i<t.length;++i)n+=t[i]*e[i];return n}function o(t){return Math.sqrt(r(t,t))}function a(t,e,n){for(var i=0;i<e.length;++i)t[i]=e[i]*n}function s(t,e,n,i,r){for(var o=0;o<t.length;++o)t[o]=e*n[o]+i*r[o]}function c(t,e,n){n=n||{};var i,r=n.maxIterations||200*e.length,o=n.nonZeroDelta||1.05,a=n.zeroDelta||.001,c=n.minErrorDelta||1e-6,l=n.minErrorDelta||1e-5,u=void 0!==n.rho?n.rho:1,h=void 0!==n.chi?n.chi:2,f=void 0!==n.psi?n.psi:-.5,p=void 0!==n.sigma?n.sigma:.5,d=e.length,g=new Array(d+1);g[0]=e,g[0].fx=t(e),g[0].id=0;for(var v=0;v<d;++v){var y=e.slice();y[v]=y[v]?y[v]*o:a,g[v+1]=y,g[v+1].fx=t(y),g[v+1].id=v+1}function m(t){for(var e=0;e<t.length;e++)g[d][e]=t[e];g[d].fx=t.fx}for(var b=function(t,e){return t.fx-e.fx},x=e.slice(),O=e.slice(),j=e.slice(),w=e.slice(),C=0;C<r;++C){if(g.sort(b),n.history){var M=g.map((function(t){var e=t.slice();return e.fx=t.fx,e.id=t.id,e}));M.sort((function(t,e){return t.id-e.id})),n.history.push({x:g[0].slice(),fx:g[0].fx,simplex:M})}for(i=0,v=0;v<d;++v)i=Math.max(i,Math.abs(g[0][v]-g[1][v]));if(Math.abs(g[0].fx-g[d].fx)<c&&i<l)break;for(v=0;v<d;++v){x[v]=0;for(var S=0;S<d;++S)x[v]+=g[S][v];x[v]/=d}var A=g[d];if(s(O,1+u,x,-u,A),O.fx=t(O),O.fx<g[0].fx)s(w,1+h,x,-h,A),w.fx=t(w),w.fx<O.fx?m(w):m(O);else if(O.fx>=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<A.fx?m(j):k=!0):(s(j,1-f*u,x,f*u,A),j.fx=t(j),j.fx<O.fx?m(j):k=!0),k){if(p>=1)break;for(v=1;v<g.length;++v)s(g[v],1-p,g[0],p,g[v]),g[v].fx=t(g[v])}}else m(O)}return g.sort(b),{fx:g[0].fx,x:g[0]}}function l(t,e,n,i,o,a,c){var l=n.fx,u=r(n.fxprime,e),h=l,f=l,p=u,d=0;function g(f,d,g){for(var v=0;v<16;++v)if(o=(f+d)/2,s(i.x,1,n.x,o,e),h=i.fx=t(i.x,i.fxprime),p=r(i.fxprime,e),h>l+a*o*u||h>=g)d=o;else{if(Math.abs(p)<=-c*u)return o;p*(d-f)>=0&&(d=f),f=o,g=h}return 0}o=o||1,a=a||1e-6,c=c||.1;for(var v=0;v<10;++v){if(s(i.x,1,n.x,o,e),h=i.fx=t(i.x,i.fxprime),p=r(i.fxprime,e),h>l+a*o*u||v&&h>=f)return g(d,o,f);if(Math.abs(p)<=-c*u)return o;if(p>=0)return g(o,d,h);f=h,d=o,o*=2}return o}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(),a(i,h.fxprime,-1);for(var g=0;g<u;++g){if(d=l(t,i,h,f,d),n.history&&n.history.push({x:h.x.slice(),fx:h.fx,fxprime:h.fxprime.slice(),alpha:d}),d){s(p,1,f.fxprime,-1,h.fxprime);var v=r(h.fxprime,h.fxprime),y=Math.max(0,r(p,f.fxprime)/v);s(i,y,i,-1,f.fxprime),c=h,h=f,f=c}else a(i,h.fxprime,-1);if(o(h.fxprime)<=1e-5)break}return n.history&&n.history.push({x:h.x.slice(),fx:h.fx,fxprime:h.fxprime.slice(),alpha:d}),h}function h(t,e,n){n=n||{};for(var i=n.maxIterations||100*e.length,r=n.learnRate||.001,a={x:e.slice(),fx:0,fxprime:e.slice()},c=0;c<i;++c)if(a.fx=t(a.x,a.fxprime),n.history&&n.history.push({x:a.x.slice(),fx:a.fx,fxprime:a.fxprime.slice()}),s(a.x,1,a.x,-r,a.fxprime),o(a.fxprime)<=1e-5)break;return a}function f(t,e,n){n=n||{};var i,r={x:e.slice(),fx:0,fxprime:e.slice()},s={x:e.slice(),fx:0,fxprime:e.slice()},c=n.maxIterations||100*e.length,u=n.learnRate||1,h=e.slice(),f=n.c1||.001,p=n.c2||.1,d=[];if(n.history){var g=t;t=function(t,e){return d.push(t.slice()),g(t,e)}}r.fx=t(r.x,r.fxprime);for(var v=0;v<c;++v)if(a(h,r.fxprime,-1),u=l(t,h,r,s,u,f,p),n.history&&(n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),functionCalls:d,learnRate:u,alpha:u}),d=[]),i=r,r=s,s=i,0===u||o(r.fxprime)<1e-5)break;return r}t.bisect=e,t.nelderMead=c,t.conjugateGradient=u,t.gradientDescent=h,t.gradientDescentLineSearch=f,t.zeros=n,t.zerosM=i,t.norm2=o,t.weightedSum=s,t.scale=a}))},"258a":function(t,e,n){"use strict";var i=n("2c79"),r=n("53a3"),o=n("bb0c");(function(t){function e(e){return t.call(this,e)||this}Object(i["b"])(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=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,a=t.maxY;if(e){var s=Object(o["c"])(e,[t.minX,t.minY]),c=Object(o["c"])(e,[t.maxX,t.minY]),l=Object(o["c"])(e,[t.minX,t.maxY]),u=Object(o["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]),a=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=a+p+y;n=Math.min(n,m),r=Math.max(r,b),i=Math.min(i,x),a=Math.max(a,O)}return{x:n,y:i,minX:n,minY:i,maxX:r,maxY:a,width:r-n,height:a-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 o=r[0],a=r[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(i&&i.isHit(o,a))return!0}return!1}})(r["a"])},"28c6":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("5809"),r=n("e474"),o=n("62e3"),a=n("58e4");function s(t){var e=t.options,n=e.polygon,s=e.xField,c=e.yField,l=e.seriesField,u=e.tooltip,h=Object(r["a"])(u,[s,c,l]),f=h.fields,p=h.formatter;return n?Object(a["a"])(Object(o["c"])({},t,{options:{type:"polygon",colorField:l,tooltipFields:f,mapping:Object(i["a"])({tooltip:p},n)}})):t}},"29ab":function(t,e,n){"use strict";var i=n("9ab4"),r=n("8937"),o=n("d177"),a=n("41c8");function s(t,e){return(e-t)*Math.random()+t}var c=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["e"](t),n=r["q"](e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var i=this,o=this.groupData(n,t);return r["j"](o,(function(n,r){return i.adjustGroup(n,t,parseFloat(r),e)}))},e.prototype.getAdjustOffset=function(t){var e=t.pre,n=t.next,i=(n-e)*o["c"];return s(e+i,n-i)},e.prototype.adjustGroup=function(t,e,n,i){var o=this,a=this.getAdjustRange(e,n,i);return r["j"](t,(function(t){t[e]=o.getAdjustOffset(a)})),t},e}(a["a"]);e["a"]=c},"2c79":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return s}));
  15. /*! *****************************************************************************
  16. Copyright (c) Microsoft Corporation.
  17. Permission to use, copy, modify, and/or distribute this software for any
  18. purpose with or without fee is hereby granted.
  19. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  20. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  21. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  22. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  23. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  24. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  25. PERFORMANCE OF THIS SOFTWARE.
  26. ***************************************************************************** */
  27. 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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};function a(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}Object.create;function s(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}Object.create},"2e60":function(t,e,n){"use strict";var i=n("00c6"),r=n("7fa2"),o=n("b2cb"),a=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var i=n.getDefaultCfg();return n.cfg=Object(o["i"])(i,e),n}return Object(i["a"])(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(r["a"]);e["a"]=a},"2ef1":function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"c",(function(){return g})),n.d(e,"d",(function(){return m})),n.d(e,"e",(function(){return M})),n.d(e,"b",(function(){return D}));var i=n("8937"),r=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;function a(t){var e=t||[];return Object(i["C"])(e)?e:Object(i["Q"])(e)?(e=e.match(r),Object(i["j"])(e,(function(t,n){if(t=t.match(o),t[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}Object(i["j"])(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}var s=a,c=n("20e7");function l(t,e,n,i){var r,o,a,s,l,u,h,f=[],p=!!i;if(p){a=i[0],s=i[1];for(var d=0,g=t.length;d<g;d+=1){var v=t[d];a=c["b"].min([0,0],a,v),s=c["b"].max([0,0],s,v)}}d=0;for(var y=t.length;d<y;d+=1){v=t[d];if(0!==d||n)if(d!==y-1||n){var m=[d?d-1:y-1,d-1][n?0:1];r=t[m],o=t[n?(d+1)%y:d+1];var b=[0,0];b=c["b"].sub(b,o,r),b=c["b"].scale(b,b,e);var x=c["b"].distance(v,r),O=c["b"].distance(v,o),j=x+O;0!==j&&(x/=j,O/=j);var w=c["b"].scale([0,0],b,-x),C=c["b"].scale([0,0],b,O);u=c["b"].add([0,0],v,w),l=c["b"].add([0,0],v,C),l=c["b"].min([0,0],l,c["b"].max([0,0],o,v)),l=c["b"].max([0,0],l,c["b"].min([0,0],o,v)),w=c["b"].sub([0,0],l,v),w=c["b"].scale([0,0],w,-x/O),u=c["b"].add([0,0],v,w),u=c["b"].min([0,0],u,c["b"].max([0,0],r,v)),u=c["b"].max([0,0],u,c["b"].min([0,0],r,v)),C=c["b"].sub([0,0],v,u),C=c["b"].scale([0,0],C,O/x),l=c["b"].add([0,0],v,C),p&&(u=c["b"].max([0,0],u,a),u=c["b"].min([0,0],u,s),l=c["b"].max([0,0],l,a),l=c["b"].min([0,0],l,s)),f.push(h),f.push(u),h=l}else u=v,f.push(h),f.push(u);else h=v}return n&&f.push(f.shift()),f}function u(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var i=!!e,r=[],o=0,a=t.length;o<a;o+=2)r.push([t[o],t[o+1]]);var s,c,u,h=l(r,.4,i,n),f=r.length,p=[];for(o=0;o<f-1;o+=1)s=h[2*o],c=h[2*o+1],u=r[o+1],p.push(["C",s[0],s[1],c[0],c[1],u[0],u[1]]);return i&&(s=h[f],c=h[f+1],u=r[0],p.push(["C",s[0],s[1],c[0],c[1],u[0],u[1]])),p}var h=u;var f="\t\n\v\f\r   ᠎              \u2028\u2029",p=new RegExp("([a-z])["+f+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+f+"]*,?["+f+"]*)+)","ig"),d=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+f+"]*,?["+f+"]*","ig");function g(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(p,(function(t,i,r){var o=[],a=i.toLowerCase();if(r.replace(d,(function(t,e){e&&o.push(+e)})),"m"===a&&o.length>2&&(n.push([i].concat(o.splice(0,2))),a="l",i="m"===i?"l":"L"),"o"===a&&1===o.length&&n.push([i,o[0]]),"r"===a)n.push([i].concat(o));else while(o.length>=e[a])if(n.push([i].concat(o.splice(0,e[a]))),!e[a])break;return""})),n}var v=/[a-z]/;function y(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function m(t){var e=g(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,i=0;i<e.length;i++){var r=e[i][0];if(v.test(r)||["V","H","T","S"].indexOf(r)>=0){n=!0;break}}if(!n)return e;var o=[],a=0,s=0,c=0,l=0,u=0,h=e[0];"M"!==h[0]&&"m"!==h[0]||(a=+h[1],s=+h[2],c=a,l=s,u++,o[0]=["M",a,s]);i=u;for(var f=e.length;i<f;i++){var p=e[i],d=o[i-1],m=[],b=(r=p[0],r.toUpperCase());if(r!==b)switch(m[0]=b,b){case"A":m[1]=p[1],m[2]=p[2],m[3]=p[3],m[4]=p[4],m[5]=p[5],m[6]=+p[6]+a,m[7]=+p[7]+s;break;case"V":m[1]=+p[1]+s;break;case"H":m[1]=+p[1]+a;break;case"M":c=+p[1]+a,l=+p[2]+s,m[1]=c,m[2]=l;break;default:for(var x=1,O=p.length;x<O;x++)m[x]=+p[x]+(x%2?a:s)}else m=e[i];switch(b){case"Z":a=+c,s=+l;break;case"H":a=m[1],m=["L",a,s];break;case"V":s=m[1],m=["L",a,s];break;case"T":a=m[1],s=m[2];var j=y([d[1],d[2]],[d[3],d[4]]);m=["Q",j[0],j[1],a,s];break;case"S":a=m[m.length-2],s=m[m.length-1];var w=d.length,C=y([d[w-4],d[w-3]],[d[w-2],d[w-1]]);m=["C",C[0],C[1],m[1],m[2],a,s];break;case"M":c=m[m.length-2],l=m[m.length-1];break;default:a=m[m.length-2],s=m[m.length-1]}o.push(m)}return o}Math.PI;function b(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function x(t,e){return b(t)*b(e)?(t[0]*e[0]+t[1]*e[1])/(b(t)*b(e)):1}function O(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(x(t,e))}function j(t,e){return t[0]===e[0]&&t[1]===e[1]}function w(t,e){var n=e[1],r=e[2],o=Object(i["eb"])(Object(i["sb"])(e[3]),2*Math.PI),a=e[4],s=e[5],c=t[0],l=t[1],u=e[6],h=e[7],f=Math.cos(o)*(c-u)/2+Math.sin(o)*(l-h)/2,p=-1*Math.sin(o)*(c-u)/2+Math.cos(o)*(l-h)/2,d=f*f/(n*n)+p*p/(r*r);d>1&&(n*=Math.sqrt(d),r*=Math.sqrt(d));var g=n*n*(p*p)+r*r*(f*f),v=g?Math.sqrt((n*n*(r*r)-g)/g):1;a===s&&(v*=-1),isNaN(v)&&(v=0);var y=r?v*n*p/r:0,m=n?v*-r*f/n:0,b=(c+u)/2+Math.cos(o)*y-Math.sin(o)*m,w=(l+h)/2+Math.sin(o)*y+Math.cos(o)*m,C=[(f-y)/n,(p-m)/r],M=[(-1*f-y)/n,(-1*p-m)/r],S=O([1,0],C),A=O(C,M);return x(C,M)<=-1&&(A=Math.PI),x(C,M)>=1&&(A=0),0===s&&A>0&&(A-=2*Math.PI),1===s&&A<0&&(A+=2*Math.PI),{cx:b,cy:w,rx:j(t,[u,h])?0:n,ry:j(t,[u,h])?0:r,startAngle:S,endAngle:S+A,xRotation:o,arcFlag:a,sweepFlag:s}}function C(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function M(t){t=s(t);for(var e=[],n=null,i=null,r=null,o=0,a=t.length,c=0;c<a;c++){var l=t[c];i=t[c+1];var u=l[0],h={command:u,prePoint:n,params:l,startTangent:null,endTangent:null};switch(u){case"M":r=[l[1],l[2]],o=c;break;case"A":var f=w(n,l);h["arcParams"]=f;break;default:break}if("Z"===u)n=r,i=t[o+1];else{var p=l.length;n=[l[p-2],l[p-1]]}i&&"Z"===i[0]&&(i=t[o],e[o]&&(e[o].prePoint=n)),h["currentPoint"]=n,e[o]&&j(n,e[o].currentPoint)&&(e[o].prePoint=h.prePoint);var d=i?[i[i.length-2],i[i.length-1]]:null;h["nextPoint"]=d;var g=h.prePoint;if(["L","H","V"].includes(u))h.startTangent=[g[0]-n[0],g[1]-n[1]],h.endTangent=[n[0]-g[0],n[1]-g[1]];else if("Q"===u){var v=[l[1],l[2]];h.startTangent=[g[0]-v[0],g[1]-v[1]],h.endTangent=[n[0]-v[0],n[1]-v[1]]}else if("T"===u){var y=e[c-1];v=C(y.currentPoint,g);"Q"===y.command?(h.command="Q",h.startTangent=[g[0]-v[0],g[1]-v[1]],h.endTangent=[n[0]-v[0],n[1]-v[1]]):(h.command="TL",h.startTangent=[g[0]-n[0],g[1]-n[1]],h.endTangent=[n[0]-g[0],n[1]-g[1]])}else if("C"===u){var m=[l[1],l[2]],b=[l[3],l[4]];h.startTangent=[g[0]-m[0],g[1]-m[1]],h.endTangent=[n[0]-b[0],n[1]-b[1]],0===h.startTangent[0]&&0===h.startTangent[1]&&(h.startTangent=[m[0]-b[0],m[1]-b[1]]),0===h.endTangent[0]&&0===h.endTangent[1]&&(h.endTangent=[b[0]-m[0],b[1]-m[1]])}else if("S"===u){y=e[c-1],m=C(y.currentPoint,g),b=[l[1],l[2]];"C"===y.command?(h.command="C",h.startTangent=[g[0]-m[0],g[1]-m[1]],h.endTangent=[n[0]-b[0],n[1]-b[1]]):(h.command="SQ",h.startTangent=[g[0]-b[0],g[1]-b[1]],h.endTangent=[n[0]-b[0],n[1]-b[1]])}else if("A"===u){var x=.001,O=h["arcParams"]||{},M=O.cx,S=void 0===M?0:M,A=O.cy,k=void 0===A?0:A,F=O.rx,E=void 0===F?0:F,T=O.ry,P=void 0===T?0:T,I=O.sweepFlag,B=void 0===I?0:I,L=O.startAngle,D=void 0===L?0:L,R=O.endAngle,_=void 0===R?0:R;0===B&&(x*=-1);var z=E*Math.cos(D-x)+S,Y=P*Math.sin(D-x)+k;h.startTangent=[z-r[0],Y-r[1]];var N=E*Math.cos(D+_+x)+S,G=P*Math.sin(D+_-x)+k;h.endTangent=[g[0]-N,g[1]-G]}e.push(h)}return e}var S=function(t,e,n){return t>=e&&t<=n};function A(t,e,n,i){var r=.001,o={x:n.x-t.x,y:n.y-t.y},a={x:e.x-t.x,y:e.y-t.y},s={x:i.x-n.x,y:i.y-n.y},c=a.x*s.y-a.y*s.x,l=c*c,u=a.x*a.x+a.y*a.y,h=s.x*s.x+s.y*s.y,f=null;if(l>r*u*h){var p=(o.x*s.y-o.y*s.x)/c,d=(o.x*a.y-o.y*a.x)/c;S(p,0,1)&&S(d,0,1)&&(f={x:t.x+p*a.x,y:t.y+p*a.y})}return f}var k=1e-6;function F(t){return Math.abs(t)<k?0:t<0?-1:1}function E(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function T(t,e,n){var i=!1,r=t.length;if(r<=2)return!1;for(var o=0;o<r;o++){var a=t[o],s=t[(o+1)%r];if(E(a,s,[e,n]))return!0;F(a[1]-n)>0!==F(s[1]-n)>0&&F(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(i=!i)}return i}function P(t){for(var e=[],n=t.length,i=0;i<n-1;i++){var r=t[i],o=t[i+1];e.push({from:{x:r[0],y:r[1]},to:{x:o[0],y:o[1]}})}if(e.length>1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e}function I(t,e){var n=!1;return Object(i["j"])(t,(function(t){if(A(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function B(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 L(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function D(t,e){if(t.length<2||e.length<2)return!1;var n=B(t),r=B(e);if(!L(n,r))return!1;var o=!1;if(Object(i["j"])(e,(function(e){if(T(t,e[0],e[1]))return o=!0,!1})),o)return!0;if(Object(i["j"])(t,(function(t){if(T(e,t[0],t[1]))return o=!0,!1})),o)return!0;var a=P(t),s=P(e),c=!1;return Object(i["j"])(s,(function(t){if(I(a,t))return c=!0,!1})),c}},"2f5e":function(t,e,n){"use strict";e["a"]={fontFamily:'\n BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4}},"302d":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flex"},[n("alist",{on:{activityid:t.activityid}}),n("div",{staticClass:"right-panel"},[n("bar",{attrs:{id:t.id}}),n("table-panel",{attrs:{id:t.id}})],1)],1)},r=[],o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("ul",{staticClass:"act_list"},t._l(t.list,(function(e){return n("li",{key:e.index,class:t.actid===e.tactivityid?"active":"",on:{click:function(n){return t.onSelect(e)}}},[t._v(t._s(e.ftitle))])})),0)])},a=[],s={data:function(){return{param:{classname:"enterprise.activity.activity",method:"query_activityList",content:{getdatafromdbanyway:!0,pageNumber:1,pageSize:100,where:{condition:""}}},list:[],actid:0}},methods:{listData:function(){var t=this;this.$api.requested(this.param).then((function(e){t.list=e.data,t.actid=t.list[0].tactivityid,t.$emit("activityid",t.list[0].tactivityid)}))},onSelect:function(t){this.actid=t.tactivityid,this.$emit("activityid",t.tactivityid)}},mounted:function(){this.listData()}},c=s,l=(n("d91c"),n("2877")),u=Object(l["a"])(c,o,a,!1,null,"0d492252",null),h=u.exports,f=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},p=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{padding:"10px"}},[n("div",{attrs:{id:"container4"}})])}],d=(n("d81d"),n("a9e3"),n("99afe")),g={props:["id"],data:function(){return{barPlot:function(){}}},methods:{renderLine:function(){this.barPlot=new d["Area"]("container4",{data:[],height:200,xField:"time",yField:"fcount",smooth:!0,label:{style:{fill:"red",opacity:0,fontSize:24}},xAxis:{},yAxis:{tickInterval:5,nice:!0,subTickLine:null,grid:null},grid:null,meta:{fcount:{alias:"观看人数"}}}),this.barPlot.render()},listData:function(){var t=this;this.$api.requested({classname:"publicmethod.live.live",method:"getLiveData",content:{tactivityid:this.id}}).then((function(e){e.data.custcount.map((function(t){t.fcount=Number(t.fcount)})),t.barPlot.changeData(e.data.custcount)}))}},mounted:function(){this.listData(),this.renderLine()},watch:{id:function(t){this.listData()}}},v=g,y=Object(l["a"])(v,f,p,!1,null,null,null),m=y.exports,b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"table-panel"},[n("el-divider"),n("div",{staticClass:"count-analysis"},[n("div",{staticClass:"count-analysis-item"},[n("div",{staticClass:"small"},[t._v("直播间数")]),t._v(" "+t._s(t.form.flivecount)+" ")]),n("el-divider",{attrs:{direction:"vertical"}}),n("div",{staticClass:"count-analysis-item"},[n("div",{staticClass:"small"},[t._v("商户数")]),t._v(" "+t._s(t.form.fagentcount)+" ")]),n("el-divider",{attrs:{direction:"vertical"}}),n("div",{staticClass:"count-analysis-item"},[n("div",{staticClass:"small"},[t._v("历史观看")]),t._v(" "+t._s(t.form.ftotalcustcount)+" ")]),n("el-divider",{attrs:{direction:"vertical"}}),n("div",{staticClass:"count-analysis-item"},[n("div",{staticClass:"small"},[t._v("当前观看")]),t._v(" "+t._s(t.form.fcustcount)+" ")])],1),n("el-divider"),n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list,size:"mini",stripe:"",height:"calc(100vh - 518px)"}},[n("el-table-column",{attrs:{prop:"fbrand",label:"品牌"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.fbrand?e.row.fbrand:"--")+" ")]}}])}),n("el-table-column",{attrs:{prop:"flocationclass",label:"营销类目"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.flocationclass?e.row.flocationclass:"--")+" ")]}}])}),n("el-table-column",{attrs:{prop:"flocation",label:"门牌号"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.flocation?e.row.flocation:"--")+" ")]}}])}),n("el-table-column",{attrs:{prop:"fintroduction",label:"商户介绍"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.fintroduction?e.row.fintroduction:"--")+" ")]}}])}),n("el-table-column",{attrs:{prop:"fcustcount",label:"观看人数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.fcustcount?e.row.fcustcount:"--")+" ")]}}])}),n("el-table-column",{attrs:{label:"直播地址"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("a",{attrs:{href:e.row.fliveshowurl,target:"_blank"}},[t._v("点击观看")])]}}])})],1)],1)},x=[],O={props:["id"],data:function(){return{list:[],form:{flivecount:0,fagentcount:0,ftotalcustcount:0,fcustcount:0}}},methods:{listData:function(){var t=this;this.$api.requested({classname:"publicmethod.live.live",method:"getLiveChannelData",content:{tactivityid:this.id}}).then((function(e){t.list=e.data.tlivelist,t.form={flivecount:e.data.flivecount,fagentcount:e.data.fagentcount,ftotalcustcount:e.data.ftotalcustcount,fcustcount:e.data.fcustcount}}))}},mounted:function(){this.listData()},watch:{id:function(t){this.listData()}}},j=O,w=(n("5dc3"),Object(l["a"])(j,b,x,!1,null,"60994edc",null)),C=w.exports,M={components:{alist:h,bar:m,tablePanel:C},data:function(){return{id:""}},methods:{activityid:function(t){this.id=t}}},S=M,A=(n("674a"),Object(l["a"])(S,i,r,!1,null,"117a9bc3",null));e["default"]=A.exports},"31a1":function(t,e,n){"use strict";var i=n("00c6"),r=n("ccaf"),o=n("6928"),a=function(t){function e(e){return t.call(this,e)||this}return Object(i["a"])(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=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,a=t.maxY;if(e){var s=Object(o["c"])(e,[t.minX,t.minY]),c=Object(o["c"])(e,[t.maxX,t.minY]),l=Object(o["c"])(e,[t.minX,t.maxY]),u=Object(o["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]),a=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=a+p+y;n=Math.min(n,m),r=Math.max(r,b),i=Math.min(i,x),a=Math.max(a,O)}return{x:n,y:i,minX:n,minY:i,maxX:r,maxY:a,width:r-n,height:a-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 o=r[0],a=r[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(i&&i.isHit(o,a))return!0}return!1},e}(r["a"]);e["a"]=a},"31e6":function(t,e,n){"use strict";var i=n("2c79"),r=n("8937"),o=n("d7ff"),a=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["b"])(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(a["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(o["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,o=Object(i["c"])(e,["id","component"]),a=new r(Object(i["a"])(Object(i["a"])({},o),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return a.init(),a.render(),this.get("isRegister")&&this.registerElement(a.get("group")),a},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(a["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,o=this.get("animate"),a=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);o&&a.update?i.updateAnimation(p,f,y,a.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,o){var x=i.get("isInit")?a.appear:a.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"),o=this.get("animateOption");Object(r["j"])(n,(function(n){var a=n[0],s=n[1];if(!s.destroyed){var c=s.get("name");if(i&&o.leave){var l=Object(r["db"])({callback:function(){t.removeElement(s)}},o.leave);t.removeAnimation(c,s,l)}else t.removeElement(s)}delete e[a]}))},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},"31f7":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}));var i=["#FAAD14","#E8EDF3"],r={percent:.2,color:i,animation:{}}},"323e":function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("8937"),a=n("c34d"),s=n("62e3"),c=n("b4aa"),l=n("f45c"),u={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function h(t,e){return e=Object(o["b"])({},u,e),f(t,e)}function f(t,e){var n=P();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(t){Object(o["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,s=a[0],c=a[1];return r.push({text:"",value:0,x:0,y:0,opacity:0}),r.push({text:"",value:0,x:s,y:c,opacity:0}),r}var p=Math.PI/180,d=64,g=2048;function v(t){return t.text}function y(){return"serif"}function m(){return"normal"}function b(t){return t.value}function x(){return 90*~~(2*Math.random())}function O(){return 1}function j(t,e,n,i){if(!e.sprite){var r=t.context,o=t.ratio;r.clearRect(0,0,(d<<5)/o,g/o);var a=0,s=0,c=0,l=n.length;--i;while(++i<l){e=n[i],r.save(),r.font=e.style+" "+e.weight+" "+~~((e.size+1)/o)+"px "+e.font;var u=r.measureText(e.text+"m").width*o,h=e.size<<1;if(e.rotate){var f=Math.sin(e.rotate*p),v=Math.cos(e.rotate*p),y=u*v,m=u*f,b=h*v,x=h*f;u=Math.max(Math.abs(y+x),Math.abs(y-x))+31>>5<<5,h=~~Math.max(Math.abs(m+b),Math.abs(m-b))}else u=u+31>>5<<5;if(h>c&&(c=h),a+u>=d<<5&&(a=0,s+=c,c=0),s+h>=g)break;r.translate((a+(u>>1))/o,(s+(h>>1))/o),e.rotate&&r.rotate(e.rotate*p),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=a,e.yoff=s,e.x1=u>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,a+=u}var O=r.getImageData(0,0,(d<<5)/o,g/o).data,j=[];while(--i>=0)if(e=n[i],e.hasText){u=e.width;for(var w=u>>5,C=(h=e.y1-e.y0,0);C<h*w;C++)j[C]=0;if(a=e.xoff,null==a)return;s=e.yoff;for(var M=0,S=-1,A=0;A<h;A++){for(C=0;C<u;C++){var k=w*A+(C>>5),F=O[(s+A)*(d<<5)+(a+C)<<2]?1<<31-C%32:0;j[k]|=F,M|=F}M?S=A:(e.y0++,h--,A--,s++)}e.y1=e.y0+S,e.sprite=j.slice(0,(e.y1-e.y0)*w)}}}function w(t,e,n){n>>=5;for(var i,r=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,c=32-s,l=t.y1-t.y0,u=(t.y+t.y0)*n+(a>>5),h=0;h<l;h++){i=0;for(var f=0;f<=o;f++)if((i<<c|(f<o?(i=r[h*o+f])>>>s:0))&e[u+f])return!0;u+=n}return!1}function C(t,e){var n=t[0],i=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>i.x&&(i.x=e.x+e.x1),e.y+e.y1>i.y&&(i.y=e.y+e.y1)}function M(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0<e[1].x&&t.y+t.y1>e[0].y&&t.y+t.y0<e[1].y}function S(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function A(t){var e=4,n=e*t[0]/t[1],i=0,r=0;return function(t){var o=t<0?-1:1;switch(Math.sqrt(1+4*o*t)-o&3){case 0:i+=n;break;case 1:r+=e;break;case 2:i-=n;break;default:r-=e;break}return[i,r]}}function k(t){var e=[],n=-1;while(++n<t)e[n]=0;return e}function F(){return document.createElement("canvas")}function E(t){return Object(o["I"])(t)?t:function(){return t}}var T={archimedean:S,rectangular:A};function P(){var t=[256,256],e=y,n=b,i=m,r=x,o=O,a=S,s=Math.random,c=[],l=1/0,u=v,h=m,f=F,p={};function A(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=(d<<5)/e,t.height=g/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}function P(e,n,i){var r,o,c,l=n.x,u=n.y,h=Math.sqrt(t[0]*t[0]+t[1]*t[1]),f=a(t),p=s()<.5?1:-1,d=-p;while(r=f(d+=p)){if(o=~~r[0],c=~~r[1],Math.min(Math.abs(o),Math.abs(c))>=h)break;if(n.x=l+o,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||!w(n,e,t[0]))&&(!i||M(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,C=(n.y+n.y0)*y+(m>>5),S=0;S<O;S++){j=0;for(var A=0;A<=v;A++)e[C+A]|=j<<x|(A<v?(j=g[S*v+A])>>>b:0);C+=y}return delete n.sprite,!0}}return!1}return p.start=function(){var a=t[0],d=t[1],g=A(f()),v=p.board?p.board:k((t[0]>>5)*t[1]),y=c.length,m=[],b=c.map((function(t,a,s){return t.text=u.call(this,t,a,s),t.font=e.call(this,t,a,s),t.style=h.call(this,t,a,s),t.weight=i.call(this,t,a,s),t.rotate=r.call(this,t,a,s),t.size=~~n.call(this,t,a,s),t.padding=o.call(this,t,a,s),t})).sort((function(t,e){return e.size-t.size})),x=-1,O=p.board?[{x:0,y:0},{x:a,y:d}]:null;function w(){var e=Date.now();while(Date.now()-e<l&&++x<y){var n=b[x];n.x=a*(s()+.5)>>1,n.y=d*(s()+.5)>>1,j(g,n,b,x),n.hasText&&P(v,n,O)&&(m.push(n),O?p.hasImage||C(O,n):O=[{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=m,p._bounds=O}return w(),p},p.createMask=function(e){var n=document.createElement("canvas"),i=t[0],r=t[1];if(i&&r){var o=i>>5,a=k((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<r;l++)for(var u=0;u<i;u++){var h=o*l+(u>>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;a[h]|=g}p.board=a,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=E(t)},p.fontWeight=function(t){i=E(t)},p.rotate=function(t){r=E(t)},p.spiral=function(t){a=T[t]||t},p.fontSize=function(t){n=E(t)},p.padding=function(t){o=E(t)},p.random=function(t){s=E(t)},p}function I(t){var e=t.options,n=t.chart,r=n,a=r.width,s=r.height,c=r.padding,l=r.appendPadding,u=r.ele,f=e.data,p=e.imageMask,d=e.wordField,g=e.weightField,v=e.colorField,y=e.wordStyle,m=e.timeInterval,b=e.random,x=e.spiral,O=e.autoFit,j=void 0===O||O,w=e.placementStrategy;if(!f||!f.length)return[];var C=y.fontFamily,M=y.fontWeight,S=y.padding,A=y.fontSize,k=_(f,g),F=[N(k),G(k)],T=f.map((function(t){return{text:t[d],value:t[g],color:t[v],datum:t}})),P={imageMask:p,font:C,fontSize:R(A,F),fontWeight:M,size:B({width:a,height:s,padding:c,appendPadding:l,autoFit:j,container:u}),padding:S,timeInterval:m,random:b,spiral:x,rotate:z(e)};if(Object(o["I"])(w)){var I=T.map((function(t,e,r){return Object(i["a"])(Object(i["a"])(Object(i["a"])({},t),{hasText:!!t.text,font:E(P.font)(t,e,r),weight:E(P.fontWeight)(t,e,r),rotate:E(P.rotate)(t,e,r),size:E(P.fontSize)(t,e,r),style:"normal"}),w.call(n,t,e,r))}));return I.push({text:"",value:0,x:0,y:0,opacity:0}),I.push({text:"",value:0,x:P.size[0],y:P.size[1],opacity:0}),I}return h(T,P)}function B(t){var e=t.width,n=t.height,i=t.container,r=t.autoFit,o=t.padding,a=t.appendPadding;if(r){var c=Object(s["k"])(i);e=c.width,n=c.height}e=e||400,n=n||400;var l=L({padding:o,appendPadding:a}),u=l[0],h=l[1],f=l[2],p=l[3],d=[e-(p+h),n-(u+f)];return d}function L(t){var e=Object(l["b"])(t.padding),n=Object(l["b"])(t.appendPadding),i=e[0]+n[0],r=e[1]+n[1],o=e[2]+n[2],a=e[3]+n[3];return[i,r,o,a]}function D(t){return new Promise((function(e,n){if(t instanceof HTMLImageElement)e(t);else{if(Object(o["Q"])(t)){var i=new Image;return i.crossOrigin="anonymous",i.src=t,i.onload=function(){e(i)},void(i.onerror=function(){Object(s["r"])(s["a"].ERROR,!1,"image %s load failed !!!",t),n()})}Object(s["r"])(s["a"].WARN,void 0===t,"The type of imageMask option must be String or HTMLImageElement."),n()}}))}function R(t,e){if(Object(o["I"])(t))return t;if(Object(o["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 _(t,e){return t.map((function(t){return t[e]})).filter((function(t){return"number"===typeof t&&!isNaN(t)}))}function z(t){var e=Y(t),n=e.rotation,i=e.rotationSteps;if(!Object(o["C"])(n))return n;var r=n[0],a=n[1],s=1===i?0:(a-r)/(i-1);return function(){return a===r?a:Math.floor(Math.random()*i)*s}}function Y(t){var e=t.wordStyle.rotationSteps;return e<1&&(Object(s["r"])(s["a"].WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1),{rotation:t.wordStyle.rotation,rotationSteps:e}}function N(t){return Math.min.apply(Math,t)}function G(t){return Math.max.apply(Math,t)}var X="color",V=Object(s["c"])({},r["b"].getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",X],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}});function H(t){var e=t.chart,n=t.options,r=n.colorField,a=n.color,l=I(t);e.data(l);var u=Object(s["c"])({},t,{options:{xField:"x",yField:"y",seriesField:r&&X,rawFields:Object(o["I"])(a)&&Object(i["d"])(Object(o["s"])(n,"rawFields",[]),["datum"]),point:{color:a,shape:"word-cloud"}}}),h=Object(c["e"])(u).ext;return h.geometry.label(!1),e.coordinate().reflect("y"),e.axis(!1),t}function W(t){return Object(s["f"])(Object(a["g"])({x:{nice:!1},y:{nice:!1}}))(t)}function q(t){var e=t.chart,n=t.options,i=n.legend,r=n.colorField;return!1===i?e.legend(!1):r&&e.legend(X,i),t}function K(t){Object(s["f"])(H,W,a["l"],q,a["c"],a["a"],a["k"],a["j"])(t)}var U=n("917c");function Z(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"}}Object(U["p"])("point","word-cloud",{draw:function(t,e){var n=t.x,r=t.y,o=e.addShape("text",{attrs:Object(i["a"])(Object(i["a"])({},Z(t)),{x:n,y:r})}),a=t.data.rotate;return"number"===typeof a&&U["h"].rotate(o,a*Math.PI/180),o}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="word-cloud",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return V},e.prototype.changeData=function(t){this.updateOption({data:t}),this.options.imageMask?this.render():this.chart.changeData(I({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 r=e.options.imageMask;if(!r)return t.prototype.render.call(e),void n();var o=function(r){e.options=Object(i["a"])(Object(i["a"])({},e.options),{imageMask:r||null}),t.prototype.render.call(e),n()};D(r).then(o).catch(o)}))},e.prototype.getSchemaAdaptor=function(){return K},e.prototype.triggerResize=function(){var e=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout((function(){t.prototype.triggerResize.call(e)})))}})(r["b"])},3295:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=5,r={}.toString,o=function(t,e){return r.call(t)==="[object "+e+"]"},a=function(t){return o(t,"Array")},s=function(t){return"object"===typeof t&&null!==t},c=function(t){if(!s(t)||!o(t,"Object"))return!1;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},l=function(t,e,n,r){for(var o in n=n||0,r=r||i,e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=e[o];s?c(s)?(c(t[o])||(t[o]={}),n<r?l(t[o],s,n+1,r):t[o]=e[o]):a(s)?(t[o]=[],t[o]=t[o].concat(s)):t[o]=s:t[o]=s}},u=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0;i<e.length;i+=1)l(t,e[i]);return t}},"330d":function(t,e,n){"use strict";var i=n("00c6"),r=n("8937"),o=n("ccaf"),a=n("b2cb"),s={},c="_INDEX";function l(t,e){if(t.set("canvas",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){l(t,e)}))}}function u(t,e){if(t.set("timeline",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){u(t,e)}))}}function h(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 f(t){return function(e,n){var i=t(e,n);return 0===i?e[c]-n[c]:i}}var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["a"])(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,o=[],s=[],c=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));c.length>0?(Object(a["a"])(c,(function(t){var e=t.getBBox();o.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(r["bb"])(o),e=Object(r["Y"])(o),n=Object(r["bb"])(s),i=Object(r["Y"])(s)):(t=0,e=0,n=0,i=0);var l={x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n};return l},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,o=[],s=[],c=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));c.length>0?(Object(a["a"])(c,(function(t){var e=t.getCanvasBBox();o.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(r["bb"])(o),e=Object(r["Y"])(o),n=Object(r["bb"])(s),i=Object(r["Y"])(s)):(t=0,e=0,n=0,i=0);var l={x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n};return l},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<arguments.length;e++)t[e]=arguments[e];var n=t[0],i=t[1];Object(a["f"])(n)?i=n:i["type"]=n;var r=s[i.type];r||(r=Object(a["k"])(i.type),s[i.type]=r);var o=this.getShapeBase(),c=new o[r](i);return this.add(c),c},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,i=t[0],r=t[1];if(Object(a["d"])(i))n=new i(r||{parent:this});else{var o=i||{},s=this.getGroupBase();n=new s(o)}return this.add(n),n},e.prototype.getCanvas=function(){var t;return t=this.isCanvas()?this:this.get("canvas"),t},e.prototype.getShape=function(t,e,n){if(!Object(a["b"])(this))return null;var i,r=this.getChildren();if(this.isCanvas())i=this._findShape(r,t,e,n);else{var o=[t,e,1];o=this.invertFromMatrix(o),this.isClipped(o[0],o[1])||(i=this._findShape(r,o[0],o[1],n))}return i},e.prototype._findShape=function(t,e,n,i){for(var r=null,o=t.length-1;o>=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&&h(r,t,!1),t.set("parent",this),e&&l(t,e),i&&u(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[c]=e,t})),t.sort(f((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}(o["a"]);e["a"]=p},3456:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n("5809"),r=n("c34d"),o=n("87d0"),a=n("62e3"),s=n("b4aa"),c=n("7eff"),l=n("b3de");function u(t){var e=t.chart,n=t.options,i=n.data,r=n.binField,o=n.binNumber,u=n.binWidth,h=n.color,f=n.stackField,p=n.legend,d=n.columnStyle,g=Object(c["a"])(i,r,u,o,f);e.data(g);var v=Object(a["c"])({},t,{options:{xField:l["b"],yField:l["c"],seriesField:f,isStack:!0,interval:{color:h,style:d}}});return Object(s["c"])(v),p&&f&&e.legend(f,p),t}function h(t){var e,n=t.options,i=n.xAxis,o=n.yAxis;return Object(a["f"])(Object(r["g"])((e={},e[l["b"]]=i,e[l["c"]]=o,e)))(t)}function f(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis;return!1===i?e.axis(l["b"],!1):e.axis(l["b"],i),!1===r?e.axis(l["c"],!1):e.axis(l["c"],r),t}function p(t){var e=t.chart,n=t.options,r=n.label,o=Object(a["d"])(e,"interval");if(r){var s=r.callback,c=Object(i["c"])(r,["callback"]);o.label({fields:[l["c"]],callback:s,cfg:Object(a["A"])(c)})}else o.label(!1);return t}function d(t){return Object(a["f"])(r["k"],Object(o["a"])("columnStyle"),u,h,f,r["j"],p,r["l"],r["c"],r["a"])(t)}},3665:function(t,e,n){"use strict";var i=n("2c79"),r=n("a94d"),o=n("8937"),a={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["b"])(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(o["j"])(t,(function(t,i){var r=e.get(i),a=t;r!==t&&(Object(o["O"])(t)&&n[i]&&(a=Object(o["h"])({},n[i],t)),e.set(i,a))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){Object(o["y"])(t,"visible")&&(t.visible?this.show():this.hide()),Object(o["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=a[n];return Object(o["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(o["j"])(e,(function(e,n){var i=t.get(n);if(Object(o["O"])(i)){var r=Object(o["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,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){t.apply(i,o)}),e)}};e["default"]=i},3736:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("c947"),r=n("b6f4"),o=n("6bcb"),a=n("8937"),s=n("23b9"),c={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 l(t,e){return"treemapSquarify"===t?i[t].ratio(e):i[t]}function u(t,e){e=Object(a["b"])({},c,e);var n,i=e.as;if(!Object(a["C"])(i)||2!==i.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=Object(s["e"])(e)}catch(g){console.warn(g)}var u=l(e.tile,e.ratio),h=function(t){return r["a"]().tile(u).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)(o["c"](t).sum((function(t){return e.ignoreParentValue&&t.children?0:t[n]})).sort(e.sort))},f=h(t),p=i[0],d=i[1];return f.each((function(t){t[p]=[t.x0,t.x1,t.x1,t.x0],t[d]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===i.indexOf(e)&&delete t[e]}))})),Object(s["d"])(f)}},"37d8":function(t,e){},"3cbb":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("cc94"),r=n("62e3"),o=Object(r["c"])({},i["b"].getDefaultOptions(),{legend:{position:"right"},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}}}}})},"3cbe":function(t,e,n){"use strict";var i=new Map;function r(t,e){i.set(t,e)}var o=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.width,o=e.height;return{x:n,y:i,width:r,height:o}},a=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.r;return{x:n-r,y:i-r,width:2*r,height:2*r}},s=n("1183");function c(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function l(t,e){var n=t.get("startArrowShape"),i=t.get("endArrowShape"),r=null,o=null;return n&&(r=n.getCanvasBBox(),e=c(e,r)),i&&(o=i.getCanvasBBox(),e=c(e,o)),e}var u=function(t){for(var e=t.attr(),n=e.points,i=[],r=[],o=0;o<n.length;o++){var a=n[o];i.push(a[0]),r.push(a[1])}var c=s["f"].getBBoxByArray(i,r),u=c.x,h=c.y,f=c.width,p=c.height,d={minX:u,minY:h,maxX:u+f,maxY:h+p};return d=l(t,d),{x:d.minX,y:d.minY,width:d.maxX-d.minX,height:d.maxY-d.minY}},h=function(t){for(var e=t.attr(),n=e.points,i=[],r=[],o=0;o<n.length;o++){var a=n[o];i.push(a[0]),r.push(a[1])}return s["f"].getBBoxByArray(i,r)},f=n("e635"),p=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.text,o=e.fontSize,a=e.lineHeight,s=e.font;s||(s=Object(f["a"])(e));var c,l=Object(f["c"])(r,s);if(l){var u=e.textAlign,h=e.textBaseline,p=Object(f["b"])(r,o,a),d={x:n,y:i-p};u&&("end"===u||"right"===u?d.x-=l:"center"===u&&(d.x-=l/2)),h&&("top"===h?d.y+=p:"middle"===h&&(d.y+=p/2)),c={x:d.x,y:d.y,width:l,height:p}}else c={x:n,y:i,width:0,height:0};return c},d=n("2ef1"),g=n("8937");function v(t,e){for(var n=[],i=[],r=[],o=0;o<t.length;o++){var a=t[o],c=a.currentPoint,l=a.params,u=a.prePoint,h=void 0;switch(a.command){case"Q":h=s["e"].box(u[0],u[1],l[1],l[2],l[3],l[4]);break;case"C":h=s["b"].box(u[0],u[1],l[1],l[2],l[3],l[4],l[5],l[6]);break;case"A":var f=a.arcParams;h=s["a"].box(f.cx,f.cy,f.rx,f.ry,f.xRotation,f.startAngle,f.endAngle);break;default:n.push(c[0]),i.push(c[1]);break}h&&(a.box=h,n.push(h.x,h.x+h.width),i.push(h.y,h.y+h.height)),e&&("L"===a.command||"M"===a.command)&&a.prePoint&&a.nextPoint&&r.push(a)}n=n.filter((function(t){return!Number.isNaN(t)})),i=i.filter((function(t){return!Number.isNaN(t)}));var p=Object(g["bb"])(n),d=Object(g["bb"])(i),v=Object(g["Y"])(n),m=Object(g["Y"])(i);if(0===r.length)return{x:p,y:d,width:v-p,height:m-d};for(o=0;o<r.length;o++){a=r[o],c=a.currentPoint;var b=void 0;c[0]===p?(b=y(a,e),p-=b.xExtra):c[0]===v&&(b=y(a,e),v+=b.xExtra),c[1]===d?(b=y(a,e),d-=b.yExtra):c[1]===m&&(b=y(a,e),m+=b.yExtra)}return{x:p,y:d,width:v-p,height:m-d}}function y(t,e){var n=t.prePoint,i=t.currentPoint,r=t.nextPoint,o=Math.pow(i[0]-n[0],2)+Math.pow(i[1]-n[1],2),a=Math.pow(i[0]-r[0],2)+Math.pow(i[1]-r[1],2),s=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2),c=Math.acos((o+a-s)/(2*Math.sqrt(o)*Math.sqrt(a)));if(!c||0===Math.sin(c)||Object(g["N"])(c,0))return{xExtra:0,yExtra:0};var l=Math.abs(Math.atan2(r[1]-i[1],r[0]-i[0])),u=Math.abs(Math.atan2(r[0]-i[0],r[1]-i[1]));l=l>Math.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 m=function(t){var e=t.attr(),n=e.path,i=e.stroke,r=i?e.lineWidth:0,o=t.get("segments")||Object(d["e"])(n),a=v(o,r),s=a.x,c=a.y,u=a.width,h=a.height,f={minX:s,minY:c,maxX:s+u,maxY:c+h};return f=l(t,f),{x:f.minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}},b=function(t){var e=t.attr(),n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=Math.min(n,r),s=Math.max(n,r),c=Math.min(i,o),u=Math.max(i,o),h={minX:a,maxX:s,minY:c,maxY:u};return h=l(t,h),{x:h.minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}},x=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.rx,o=e.ry;return{x:n-r,y:i-o,width:2*r,height:2*o}};r("rect",o),r("image",o),r("circle",a),r("marker",a),r("polyline",u),r("polygon",h),r("text",p),r("path",m),r("line",b),r("ellipse",x)},"3cf2":function(t,e,n){"use strict";n.d(e,"a",(function(){return D}));var i=n("8937"),r=n("62e3"),o=n("849a"),a=n("4d99"),s=n("0cc4"),c=n("5fff"),l=n("1d73"),u=n("538f"),h=n("b2c8"),f=n("9a08"),p=n("8582"),d=n("988d"),g=n("bbdf"),v=n("5cc9"),y=n("3456"),m=n("0c22"),b=n("5e5a"),x=n("0abd"),O=n("63e2"),j=n("bbd5"),w=n("bb0f"),C=n("5e91"),M=n("9adb"),S=n("d390"),A=n("d36e"),k=n("60fe"),F=n("9308"),E=n("b44e"),T=n("0704"),P=n("68bc"),I={line:o["a"],pie:a["a"],column:s["a"],bar:c["a"],area:l["a"],gauge:u["a"],"tiny-line":h["a"],"tiny-column":f["a"],"tiny-area":p["a"],"ring-progress":d["a"],progress:g["a"],scatter:v["a"],histogram:y["a"],funnel:m["a"]},B={line:b["a"],pie:x["a"],column:j["a"],bar:O["a"],area:w["a"],gauge:C["a"],"tiny-line":M["a"],"tiny-column":A["a"],"tiny-area":S["a"],"ring-progress":k["a"],progress:F["a"],scatter:E["a"],histogram:T["a"],funnel:P["a"]},L={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function D(t,e,n){var o=B[t];if(o){var a=I[t];a({chart:e,options:Object(r["c"])({},o.getDefaultOptions(),Object(i["s"])(L,t,{}),n)})}else console.error("could not find "+t+" plot")}},"3e28":function(t,e){},"3f35":function(t,e,n){"use strict";function i(t,e){var n={};return null!==t&&"object"===typeof t&&e.forEach((function(e){var i=t[e];void 0!==i&&(n[e]=i)})),n}n.d(e,"a",(function(){return i}))},"3f84":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeSensor=e.getSensor=void 0;var i=a(n("721a")),r=n("1710"),o=n("db86");function a(t){return t&&t.__esModule?t:{default:t}}var s={},c=function(t){var e=t.getAttribute(o.SizeSensorId);if(e&&s[e])return s[e];var n=(0,i["default"])();t.setAttribute(o.SizeSensorId,n);var a=(0,r.createSensor)(t);return s[n]=a,a};e.getSensor=c;var l=function(t){var e=t.element.getAttribute(o.SizeSensorId);t.element.removeAttribute(o.SizeSensorId),t.destroy(),e&&s[e]&&delete s[e]};e.removeSensor=l},"408a":function(t,e,n){var i=n("e330");t.exports=i(1..valueOf)},"40ef":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var i=o(n("3688")),r=n("db86");function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){var e=void 0,n=[],o=function(){"static"===getComputedStyle(t).position&&(t.style.position="relative");var e=document.createElement("object");return e.onload=function(){e.contentDocument.defaultView.addEventListener("resize",a),a()},e.style.display="block",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.height="100%",e.style.width="100%",e.style.overflow="hidden",e.style.pointerEvents="none",e.style.zIndex="-1",e.style.opacity="0",e.setAttribute("class",r.SensorClassName),e.setAttribute("tabindex",r.SensorTabIndex),e.type="text/html",t.appendChild(e),e.data="about:blank",e},a=(0,i["default"])((function(){n.forEach((function(e){e(t)}))})),s=function(t){e||(e=o()),-1===n.indexOf(t)&&n.push(t)},c=function(){e&&e.parentNode&&(e.contentDocument&&e.contentDocument.defaultView.removeEventListener("resize",a),e.parentNode.removeChild(e),e=void 0,n=[])},l=function(t){var i=n.indexOf(t);-1!==i&&n.splice(i,1),0===n.length&&e&&c()};return{element:t,bind:s,destroy:c,unbind:l}};e.createSensor=a},"41c8":function(t,e,n){"use strict";var i=n("8937"),r=n("d177"),o=function(){function t(t){var e=t.xField,n=t.yField,i=t.adjustNames,r=void 0===i?["x","y"]:i;this.adjustNames=r,this.xField=e,this.yField=n}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var i,r,o=this.yField,a=n.indexOf(e),s=n.length;return!o&&this.isAdjust("y")?(i=0,r=1):s>1?(i=n[0===a?0:a-1],r=n[a===s-1?s-1:a+1],0!==a?i+=(e-i)/2:i-=(r-e)/2,a!==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,o=e.yField,a={},s=[];if(n&&this.isAdjust("x")&&s.push(n),o&&this.isAdjust("y")&&s.push(o),s.forEach((function(e){a[e]=i["yb"](t,e).sort((function(t,e){return t-e}))})),!o&&this.isAdjust("y")){var c="y";a[c]=[r["a"],1]}return a},t}();e["a"]=o},4767:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}));
  28. /*! *****************************************************************************
  29. Copyright (c) Microsoft Corporation.
  30. Permission to use, copy, modify, and/or distribute this software for any
  31. purpose with or without fee is hereby granted.
  32. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  33. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  34. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  35. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  36. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  37. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  38. PERFORMANCE OF THIS SOFTWARE.
  39. ***************************************************************************** */
  40. 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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};Object.create;Object.create},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 k})),n.d(e,"Path",(function(){return V})),n.d(e,"Polygon",(function(){return q})),n.d(e,"Polyline",(function(){return U})),n.d(e,"Rect",(function(){return tt})),n.d(e,"Text",(function(){return nt}));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 k})),n.d(i,"Path",(function(){return V})),n.d(i,"Polygon",(function(){return q})),n.d(i,"Polyline",(function(){return U})),n.d(i,"Rect",(function(){return tt})),n.d(i,"Text",(function(){return nt}));var r=n("c0e9"),o=n("6855"),a=n("7326"),s=n("f5e5"),c=n("c2ad"),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(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(o["getBBoxMethod"])(t),i=n(this),r=e/2,a=i.x-r,s=i.y-r,c=i.x+i.width+r,l=i.y+i.height+r;return{x:a,minX:a,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(a["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(a["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,o=e.fillOpacity;this.isFill()&&(Object(a["i"])(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=i)),this.isStroke()&&n>0&&(Object(a["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}(o["AbstractShape"]),u=l,h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(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 o=this.attr(),s=o.x,c=o.y,l=o.r,u=r/2,h=Object(a["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["b"])(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 o=this.attr(),a=r/2,s=o.x,c=o.y,l=o.rx,u=o.ry,h=(t-s)*(t-s),f=(e-c)*(e-c);return i&&n?p(h,f,l+a,u+a)<=1:i?p(h,f,l,u)<=1:!!n&&(p(h,f,l-a,u-a)>=1&&p(h,f,l+a,u+a)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,i,r,o,0,0,2*Math.PI,!1);else{var a=r>o?r:o,s=r>o?1:r/o,c=r>o?o/r:1;t.save(),t.translate(n,i),t.scale(s,c),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(u),g=d;function v(t){return t instanceof HTMLElement&&Object(a["k"])(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(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(a["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,o=e.height,s=e.sx,c=e.sy,l=e.swidth,u=e.sheight,h=e.img;(h instanceof Image||v(h))&&(Object(a["i"])(s)||Object(a["i"])(c)||Object(a["i"])(l)||Object(a["i"])(u)?t.drawImage(h,n,i,r,o):t.drawImage(h,s,c,l,u,n,i,r,o))},e}(u),m=y,b=n("1183");function x(t,e,n,i,r,o,a){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 o>=s-h&&o<=c+h&&a>=l-h&&a<=u+h&&b["c"].pointToLine(t,e,n,i,o,a)<=r/2}var O=n("9f27"),j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(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,o=t.startArrow,a=t.endArrow;o&&O["b"](this,t,i,r,e,n),a&&O["a"](this,t,e,n,i,r)},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){if(!n||!r)return!1;var o=this.attr(),a=o.x1,s=o.y1,c=o.x2,l=o.y2;return x(a,s,c,l,r,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.startArrow,s=e.endArrow,c={dx:0,dy:0},l={dx:0,dy:0};a&&a.d&&(c=O["c"](n,i,r,o,e.startArrow.d)),s&&s.d&&(l=O["c"](n,i,r,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+c.dx,i+c.dy),t.lineTo(r-l.dx,o-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,o=e.y2;return b["c"].pointAt(n,i,r,o,t)},e}(u),w=j,C=n("8937"),M=n("2ef1"),S={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},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"]]},"triangle-down":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"]]}},A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return Object(C["K"])(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,i=this.attr(),r=i.x,o=i.y,s=i.symbol||"circle",c=this._getR(i);if(Object(a["h"])(s))t=s,n=t(r,o,c),n=Object(M["d"])(n);else{if(t=e.Symbols[s],!t)return console.warn(s+" marker is not supported."),null;n=t(r,o,c)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");Object(s["e"])(this,t,{path:e},n)},e.Symbols=S,e}(u),k=A;function F(t,e,n){var i=Object(o["getOffScreenContext"])();return t.createPath(i),i.isPointInPath(e,n)}var E=1e-6;function T(t){return Math.abs(t)<E?0:t<0?-1:1}function P(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function I(t,e,n){var i=!1,r=t.length;if(r<=2)return!1;for(var o=0;o<r;o++){var a=t[o],s=t[(o+1)%r];if(P(a,s,[e,n]))return!0;T(a[1]-n)>0!==T(s[1]-n)>0&&T(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(i=!i)}return i}var B=n("e897"),L=n("9fe7");function D(t,e,n,i,r,o,s,c){var l=(Math.atan2(c-e,s-t)+2*Math.PI)%(2*Math.PI);if(l<i||l>r)return!1;var u={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return Object(a["b"])(u.x,u.y,s,c)<=o/2}var R=B["a"].transform;function _(t){for(var e=!1,n=t.length,i=0;i<n;i++){var r=t[i],o=r[0];if("C"===o||"A"===o||"Q"===o){e=!0;break}}return e}function z(t,e,n,i,r){for(var o=!1,s=e/2,c=0;c<t.length;c++){var l=t[c],u=l.currentPoint,h=l.params,f=l.prePoint,p=l.box;if(!p||Object(a["e"])(p.x-s,p.y-s,p.width+e,p.height+e,n,i)){switch(l.command){case"L":case"Z":o=x(f[0],f[1],u[0],u[1],e,n,i);break;case"Q":var d=b["e"].pointDistance(f[0],f[1],h[1],h[2],h[3],h[4],n,i);o=d<=e/2;break;case"C":var g=b["b"].pointDistance(f[0],f[1],h[1],h[2],h[3],h[4],h[5],h[6],n,i,r);o=g<=e/2;break;case"A":var v=l.arcParams,y=v.cx,m=v.cy,O=v.rx,j=v.ry,w=v.startAngle,C=v.endAngle,M=v.xRotation,S=[n,i,1],A=O>j?O:j,k=O>j?1:O/j,F=O>j?j/O:1,E=R(null,[["t",-y,-m],["r",-M],["s",1/k,1/F]]);L["transformMat3"](S,S,E),o=D(0,0,A,w,C,e,S[0],S[1]);break;default:break}if(o)break}}return o}function Y(t){for(var e=t.length,n=[],i=[],r=[],o=0;o<e;o++){var a=t[o],s=a[0];"M"===s?(r.length&&(i.push(r),r=[]),r.push([a[1],a[2]])):"Z"===s?r.length&&(n.push(r),r=[]):r.push([a[1],a[2]])}return r.length>0&&i.push(r),{polygons:n,polylines:i}}var N=Object(r["a"])({hasArc:_,extractPolygons:Y,isPointInStroke:z},o["PathUtil"]);function G(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];if(i=I(o,e,n),i)break}return i}var X=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(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.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=Object(M["d"])(t);var e=N.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=Object(M["e"])(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t=this.attr(),e=t.startArrow,n=t.endArrow;if(e){var i=this.getStartTangent();O["b"](this,t,i[0][0],i[0][1],i[1][0],i[1][1])}if(n){i=this.getEndTangent();O["a"](this,t,i[0][0],i[0][1],i[1][0],i[1][1])}},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.getSegments(),a=this.get("hasArc"),s=!1;if(n){var c=this.getTotalLength();s=N.isPointInStroke(o,r,t,e,c)}if(!s&&i)if(a)s=F(this,t,e);else{var l=this.attr("path"),u=N.extractPolygons(l);s=G(u.polygons,t,e)||G(u.polylines,t,e)}return s},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");Object(s["e"])(this,t,e,n)},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.get("totalLength");return Object(C["K"])(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,n,i=this.get("tCache");i||(this._calculateCurve(),this._setTcache(),i=this.get("tCache"));var r=this.get("curve");if(!i||0===i.length)return r?{x:r[0][1],y:r[0][2]}:null;Object(C["j"])(i,(function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)}));var o=r[n];if(Object(C["K"])(o)||Object(C["K"])(n))return null;var a=o.length,s=r[n+1];return b["b"].pointAt(o[a-2],o[a-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",N.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,i,r=0,o=0,a=[],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]=o/r,e=b["b"].length(c[i-2],c[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e||0,t[1]=o/r,a.push(t))})),this.set("tCache",a)):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,o=e[n-1].endTangent;t=[],o?(t.push([r[0]-o[0],r[1]-o[1]]),t.push([r[0],r[1]])):(t.push([i[0],i[1]]),t.push([r[0],r[1]]))}return t},e}(u),V=X;function H(t,e,n,i,r){var o=t.length;if(o<2)return!1;for(var a=0;a<o-1;a++){var s=t[a][0],c=t[a][1],l=t[a+1][0],u=t[a+1][1];if(x(s,c,l,u,e,n,i))return!0}if(r){var h=t[0],f=t[o-1];if(x(h[0],h[1],f[0],f[1],e,n,i))return!0}return!1}var W=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.attr().points,a=!1;return n&&(a=H(o,r,t,e,!0)),!a&&i&&(a=I(o,t,e)),a},e.prototype.createPath=function(t){var e=this.attr(),n=e.points;if(!(n.length<2)){t.beginPath();for(var i=0;i<n.length;i++){var r=n[i];0===i?t.moveTo(r[0],r[1]):t.lineTo(r[0],r[1])}t.closePath()}},e}(u),q=W,K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(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.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,i=e.startArrow,r=e.endArrow,o=n.length,a=n[0][0],s=n[0][1],c=n[o-1][0],l=n[o-1][1];i&&O["b"](this,t,n[1][0],n[1][1],a,s),r&&O["a"](this,t,n[o-2][0],n[o-2][1],c,l)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){if(!n||!r)return!1;var o=this.attr().points;return H(o,r,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,i=e.startArrow,r=e.endArrow,o=n.length;if(!(n.length<2)){var a=n[0][0],s=n[0][1],c=n[o-1][0],l=n[o-1][1];if(i&&i.d){var u=O["c"](a,s,n[1][0],n[1][1],i.d);a+=u.dx,s+=u.dy}if(r&&r.d){u=O["c"](n[o-2][0],n[o-2][1],c,l,r.d);c-=u.dx,l-=u.dy}t.beginPath(),t.moveTo(a,s);for(var h=0;h<o-1;h++){var f=n[h];t.lineTo(f[0],f[1])}t.lineTo(c,l)}},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().points,e=this.get("totalLength");return Object(C["K"])(e)?(this.set("totalLength",b["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(C["j"])(r,(function(i,r){t>=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,o=[];Object(C["j"])(t,(function(a,s){t[s+1]&&(n=[],n[0]=r/e,i=b["c"].length(a[0],a[1],t[s+1][0],t[s+1][1]),r+=i,n[1]=r/e,o.push(n))})),this.set("tCache",o)}}},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),U=K,Z=n("af40");function Q(t,e,n,i,r,o,s){var c=r/2;return Object(a["e"])(t-c,e-c,n,r,o,s)||Object(a["e"])(t+n-c,e-c,r,i,o,s)||Object(a["e"])(t+c,e+i-c,n,r,o,s)||Object(a["e"])(t-c,e+c,r,i,o,s)}function $(t,e,n,i,r,o,a,s){return x(t+r,e,t+n-r,e,o,a,s)||x(t+n,e+r,t+n,e+i-r,o,a,s)||x(t+n-r,e+i,t+r,e+i,o,a,s)||x(t,e+i-r,t,e+r,o,a,s)||D(t+n-r,e+r,r,1.5*Math.PI,2*Math.PI,o,a,s)||D(t+n-r,e+i-r,r,0,.5*Math.PI,o,a,s)||D(t+r,e+i-r,r,.5*Math.PI,Math.PI,o,a,s)||D(t+r,e+r,r,Math.PI,1.5*Math.PI,o,a,s)}var J=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(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 o=this.attr(),s=o.x,c=o.y,l=o.width,u=o.height,h=o.radius;if(h){var f=!1;return n&&(f=$(s,c,l,u,h,r,t,e)),!f&&i&&(f=F(this,t,e)),f}var p=r/2;return i&&n?Object(a["e"])(s-p,c-p,l+p,u+p,t,e):i?Object(a["e"])(s,c,l,u,t,e):n?Q(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,o=e.height,a=e.radius;if(t.beginPath(),0===a)t.rect(n,i,r,o);else{var s=Object(Z["a"])(a),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+o-u),0!==u&&t.arc(n+r-u,i+o-u,u,0,Math.PI/2),t.lineTo(n+h,i+o),0!==h&&t.arc(n+h,i+o-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),tt=J,et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(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(o["assembleFont"])(t)},e.prototype._setText=function(t){var e=null;Object(a["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(o["getTextHeight"])(r.text,r.fontSize,r.lineHeight);Object(a["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(a["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,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var s=n.text;Object(a["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,o=e.fillOpacity;this.isStroke()&&n>0&&(Object(a["i"])(r)||1===r||(t.globalAlpha=i),this.stroke(t)),this.isFill()&&(Object(a["i"])(o)||1===o?this.fill(t):(t.globalAlpha=o,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),nt=et},"4c46":function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("c34d"),a=n("62e3"),s=n("b4aa"),c=n("87d0");function l(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,o=Math.abs(t)%360;return o?360*r/o:r}function u(t,e,n){var r=[];return t.forEach((function(t){var o=r.find((function(n){return n[e]===t[e]}));o?o[n]+=t[n]||null:r.push(Object(i["a"])({},t))})),r}function h(t){var e=t.chart,n=t.options,i=n.barStyle,r=n.color,o=n.tooltip,c=n.colorField,l=n.type,u=n.xField,h=n.yField,f=n.data,p=Object(a["u"])(f,h);e.data(p);var d=Object(a["c"])({},t,{options:{tooltip:o,seriesField:c,interval:{style:i,color:r,shape:"line"===l?"line":"intervel"},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}});return Object(s["c"])(d),"line"===l&&Object(s["e"])({chart:e,options:{xField:u,yField:h,seriesField:c,point:{shape:"circle",color:r}}}),t}function f(t){var e,n=t.options,i=n.yField,r=n.xField,s=n.data,c=n.isStack,h=n.isGroup,f=n.colorField,p=n.maxAngle,d=c&&!h&&f?u(s,r,i):s,g=Object(a["u"])(d,i);return Object(a["f"])(Object(o["g"])((e={},e[i]={min:0,max:l(p,i,g)},e)))(t)}function p(t){var e=t.chart,n=t.options,i=n.radius,r=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:i,innerRadius:r,startAngle:o,endAngle:a}}).transpose(),t}function d(t){var e=t.chart,n=t.options,i=n.xField,r=n.xAxis;return e.axis(i,r),t}function g(t){var e=t.chart,n=t.options,r=n.label,o=n.yField,s=Object(a["d"])(e,"interval");if(r){var c=r.callback,l=Object(i["c"])(r,["callback"]);s.label({fields:[o],callback:c,cfg:Object(i["a"])(Object(i["a"])({},Object(a["A"])(l)),{type:"polar"})})}else s.label(!1);return t}function v(t){return Object(a["f"])(Object(c["a"])("barStyle"),h,f,d,p,o["c"],o["a"],o["k"],o["l"],o["d"],Object(o["b"])(),g)(t)}var y=Object(a["c"])({},r["b"].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(i["b"])(e,t),e.getDefaultOptions=function(){return y},e.prototype.changeData=function(t){this.updateOption({data:t}),f({chart:this.chart,options:this.options}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return v}})(r["b"])},"4d99":function(t,e,n){"use strict";n.d(e,"b",(function(){return b})),n.d(e,"a",(function(){return j}));var i=n("5809"),r=n("8937"),o=n("c34d"),a=n("58e4"),s=n("b4aa"),c=n("87d0"),l=n("afaa"),u=n("62e3"),h=n("3cbb"),f=n("888a"),p=n("9e6a");function d(t){var e=t.chart,n=t.options,r=n.data,o=n.angleField,a=n.colorField,c=n.color,l=n.pieStyle,h=Object(u["u"])(r,o);if(Object(f["c"])(h,o)){var p="$$percentage$$";h=h.map((function(t){var e;return Object(i["a"])(Object(i["a"])({},t),(e={},e[p]=1/h.length,e))})),e.data(h);var d=Object(u["c"])({},t,{options:{xField:"1",yField:p,seriesField:a,isStack:!0,interval:{color:c,style:l},args:{zIndexReversed:!0}}});Object(s["c"])(d)}else{e.data(h);d=Object(u["c"])({},t,{options:{xField:"1",yField:o,seriesField:a,isStack:!0,interval:{color:c,style:l},args:{zIndexReversed:!0}}});Object(s["c"])(d)}return t}function g(t){var e,n=t.chart,i=t.options,r=i.meta,o=i.colorField,a=Object(u["c"])({},r);return n.scale(a,(e={},e[o]={type:"cat"},e)),t}function v(t){var e=t.chart,n=t.options,i=n.radius,r=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"theta",cfg:{radius:i,innerRadius:r,startAngle:o,endAngle:a}}),t}function y(t){var e=t.chart,n=t.options,o=n.label,a=n.colorField,s=n.angleField,c=e.geometries[0];if(o){var l=o.callback,h=Object(i["c"])(o,["callback"]),p=Object(u["A"])(h);if(p.content){var d=p.content;p.content=function(t,n,o){var c=t[a],l=t[s],h=e.getScaleByField(s),f=null===h||void 0===h?void 0:h.scale(l);return Object(r["I"])(d)?d(Object(i["a"])(Object(i["a"])({},t),{percent:f}),n,o):Object(r["Q"])(d)?Object(u["y"])(d,{value:l,name:c,percentage:Object(r["M"])(f)&&!Object(r["K"])(l)?(100*f).toFixed(2)+"%":null}):d}}var g={inner:"",outer:"pie-outer",spider:"pie-spider"},v=p.type?g[p.type]:"pie-outer",y=p.layout?Object(r["C"])(p.layout)?p.layout:[p.layout]:[];p.layout=(v?[{type:v}]:[]).concat(y),c.label({fields:a?[s,a]:[s],callback:l,cfg:Object(i["a"])(Object(i["a"])({},p),{offset:Object(f["a"])(p.type,p.offset),type:"pie"})})}else c.label(!1);return t}function m(t){var e=t.innerRadius,n=t.statistic,i=t.angleField,o=t.colorField,a=t.meta,s=t.locale,c=Object(l["a"])(s);if(e&&n){var p=Object(u["c"])({},h["a"].statistic,n),d=p.title,g=p.content;return!1!==d&&(d=Object(u["c"])({},{formatter:function(t){return t?t[o]:Object(r["K"])(d.content)?c.get(["statistic","total"]):d.content}},d)),!1!==g&&(g=Object(u["c"])({},{formatter:function(t,e){var n=t?t[i]:Object(f["b"])(e,i),o=Object(r["s"])(a,[i,"formatter"])||function(t){return t};return t||Object(r["K"])(g.content)?o(n):g.content}},g)),Object(u["c"])({},{statistic:{title:d,content:g}},t)}return t}function b(t){var e=t.chart,n=t.options,i=m(n),r=i.innerRadius,a=i.statistic;return e.getController("annotation").clear(!0),Object(u["f"])(Object(o["b"])())(t),r&&a&&Object(u["w"])(e,{statistic:a,plotType:"pie"}),t}function x(t){var e=t.chart,n=t.options,i=n.tooltip,o=n.colorField,s=n.angleField,c=n.data;if(!1===i)e.tooltip(i);else if(e.tooltip(Object(u["c"])({},i,{shared:!1})),Object(f["c"])(c,s)){var l=Object(r["s"])(i,"fields"),h=Object(r["s"])(i,"formatter");Object(r["G"])(Object(r["s"])(i,"fields"))&&(l=[o,s],h=h||function(t){return{name:t[o],value:Object(r["tb"])(t[s])}}),e.geometries[0].tooltip(l.join("*"),Object(a["b"])(l,h))}return t}function O(t){var e=t.chart,n=t.options,o=m(n),a=o.interactions,s=o.statistic,c=o.annotations;return Object(r["j"])(a,(function(t){var n,o;if(!1===t.enable)e.removeInteraction(t.type);else if("pie-statistic-active"===t.type){var a=[];(null===(n=t.cfg)||void 0===n?void 0:n.start)||(a=[{trigger:"element:mouseenter",action:p["a"]+":change",arg:{statistic:s,annotations:c}}]),Object(r["j"])(null===(o=t.cfg)||void 0===o?void 0:o.start,(function(t){a.push(Object(i["a"])(Object(i["a"])({},t),{arg:{statistic:s,annotations:c}}))})),e.interaction(t.type,Object(u["c"])({},t.cfg,{start:a}))}else e.interaction(t.type,t.cfg||{})})),t}function j(t){return Object(u["f"])(Object(c["a"])("pieStyle"),d,g,o["k"],v,o["d"],x,y,o["j"],b,O,o["a"])(t)}},"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,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(c){r=!0,o=c}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw o}}return n}function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(t,e,n,i){t=t.filter((function(t,i){var r=e(t,i),o=n(t,i);return null!=r&&isFinite(r)&&null!=o&&isFinite(o)})),i&&t.sort((function(t,n){return e(t)-e(n)}));for(var r,o,a,s=t.length,c=new Float64Array(s),l=new Float64Array(s),u=0,h=0,f=0;f<s;)a=t[f],c[f]=r=+e(a,f,t),l[f]=o=+n(a,f,t),++f,u+=(r-u)/f,h+=(o-h)/f;for(var p=0;p<s;++p)c[p]-=u,l[p]-=h;return[c,l,u,h]}function a(t,e,n,i){for(var r=0,o=0,a=t.length;o<a;o++){var s=t[o],c=+e(s,o,t),l=+n(s,o,t);null!=c&&isFinite(c)&&null!=l&&isFinite(l)&&i(c,l,r++)}}function s(t,e,n,i,r){var o=0,s=0;return a(t,e,n,(function(t,e){var n=e-r(t),a=e-i;o+=n*n,s+=a*a})),1-o/s}function c(t){return 180*Math.atan2(t[1][1]-t[0][1],t[1][0]-t[0][0])/Math.PI}function l(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function u(t,e,n){var i=Math.log(e-t)*Math.LOG10E+1|0,r=1*Math.pow(10,-i/2-1),o=1e4,a=[u(t),u(e)],s=0;while(h(a)&&s<o);return a;function u(t){return[t,n(t)]}function h(t){s++;for(var e=t.length,n=!1,i=0;i<e-1;i++){var o=t[i],a=t[i+1],h=l([o,a]),f=u(h[0]),p=c([o,h]),d=c([o,f]),g=Math.abs(p-d);g>r&&(t.splice(i+1,0,f),n=!0)}return n}}function h(t,e,n,i){var r=i-t*t,o=Math.abs(r)<1e-24?0:(n-t*e)/r,a=e-o*t;return[a,o]}function f(){var t,n=function(t){return t[0]},i=function(t){return t[1]};function r(r){var o=0,c=0,l=0,f=0,p=0,d=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;a(r,n,i,(function(e,n){var i=Math.log(n),r=e*n;++o,c+=(n-c)/o,f+=(r-f)/o,d+=(e*r-d)/o,l+=(n*i-l)/o,p+=(r*i-p)/o,t||(e<g&&(g=e),e>v&&(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 o=0,c=0,l=0,u=0,f=0,p=t?+t[0]:1/0,d=t?+t[1]:-1/0;a(r,n,i,(function(e,n){++o,c+=(e-c)/o,l+=(n-l)/o,u+=(e*n-u)/o,f+=(e*e-f)/o,t||(e<p&&(p=e),e>d&&(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 a=o(r,t,n,!0),s=e(a,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;S<p;++S){for(var A=c[S],k=M[0],F=M[1],E=A-c[k]>c[F]-A?k:F,T=0,P=0,I=0,B=0,L=0,D=1/Math.abs(c[E]-A||1),R=k;R<=F;++R){var _=c[R],z=l[R],Y=m(Math.abs(A-_)*D)*w[R],N=_*Y;T+=Y,P+=N,I+=z*Y,B+=z*N,L+=_*N}var G=h(P/T,I/T,B/T,L/T),X=e(G,2),V=X[0],H=X[1];O[S]=V+H*A,j[S]=Math.abs(l[S]-O[S]),b(c,S+1,M)}if(C===g)break;var W=d(j);if(Math.abs(W)<v)break;for(var q,K,U=0;U<p;++U)q=j[U]/(6*W),w[U]=q>=1?v:(K=1-q*q)*K}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],o=n[1]+1;if(!(o>=t.length))while(e>r&&t[o]-i<=i-t[r])n[0]=++r,n[1]=o,++o}function x(t,e,n,i){for(var r,o=t.length,a=[],s=0,c=0,l=[];s<o;++s)r=t[s]+n,l[0]===r?l[1]+=(e[s]-l[1])/++c:(c=0,l[1]+=i,l=[r,e[s]],a.push(l));return l[1]+=i,a}function O(){var t,n=function(t){return t[0]},i=function(t){return t[1]},r=Math.E;function o(o){var c=0,l=0,f=0,p=0,d=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0,y=Math.log(r);a(o,n,i,(function(e,n){var i=Math.log(e)/y;++c,l+=(i-l)/c,f+=(n-f)/c,p+=(i*n-p)/c,d+=(i*i-d)/c,t||(e<g&&(g=e),e>v&&(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(o,n,i,f,j),w}return o.domain=function(e){return arguments.length?(t=e,o):t},o.x=function(t){return arguments.length?(n=t,o):n},o.y=function(t){return arguments.length?(i=t,o):i},o.base=function(t){return arguments.length?(r=t,o):r},o}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=o(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;c<b;)l=g[c],h=v[c++],f=l*l,x+=(f-x)/c,O+=(f*l-O)/c,j+=(f*f-j)/c,w+=(l*h-w)/c,C+=(f*h-C)/c;var M=0,S=0,A=t?+t[0]:1/0,k=t?+t[1]:-1/0;a(r,n,i,(function(e,n){S++,M+=(n-M)/S,t||(e<A&&(A=e),e>k&&(k=e))}));var F=j-x*x,E=x*F-O*O,T=(C*x-w*O)/E,P=(w*F-C*O)/E,I=-T*x,B=function(t){return t-=y,T*t*t+P*t+I+m},L=u(A,k,B);return L.a=T,L.b=P-2*T*y,L.c=I-P*y+T*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=o(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,T=0,P=0,I=t?+t[0]:1/0,B=t?+t[1]:-1/0;for(a(c,n,i,(function(e,n){++P,T+=(n-T)/P,t||(e<I&&(I=e),e>B&&(B=e))})),f=0;f<E;++f){for(g=0,v=0;g<A;++g)v+=Math.pow(x[g],f)*O[g];for(k.push(v),y=new Float64Array(E),d=0;d<E;++d){for(g=0,v=0;g<A;++g)v+=Math.pow(x[g],f+d);y[d]=v}F.push(y)}F.push(k);var L=M(F),D=function(t){t-=w;var e=S+L[0]+L[1]*t+L[2]*t*t;for(f=3;f<E;++f)e+=L[f]*Math.pow(t,f);return e},R=u(I,B,D);return R.coefficients=C(E,L,-w,S),R.predict=D,R.rSquared=s(c,n,i,T,D),R}return c.domain=function(e){return arguments.length?(t=e,c):t},c.x=function(t){return arguments.length?(n=t,c):n},c.y=function(t){return arguments.length?(i=t,c):i},c.order=function(t){return arguments.length?(r=t,c):r},c}function C(t,e,n,i){var r,o,a,s,c=Array(t);for(r=0;r<t;++r)c[r]=0;for(r=t-1;r>=0;--r)for(a=e[r],s=1,c[r]+=a,o=1;o<=r;++o)s*=(r+1-o)/o,c[r-o]+=a*Math.pow(n,o)*s;return c[0]+=i,c}function M(t){var e,n,i,r,o,a=t.length-1,s=[];for(e=0;e<a;++e){for(r=e,n=e+1;n<a;++n)Math.abs(t[e][n])>Math.abs(t[e][r])&&(r=n);for(i=e;i<a+1;++i)o=t[i][e],t[i][e]=t[i][r],t[i][r]=o;for(n=e+1;n<a;++n)for(i=a;i>=e;i--)t[i][n]-=t[i][e]*t[e][n]/t[e][e]}for(n=a-1;n>=0;--n){for(o=0,i=n+1;i<a;++i)o+=t[i][n]*s[i];s[n]=(t[a][n]-o)/t[n][n]}return s}function S(){var t,n=function(t){return t[0]},i=function(t){return t[1]};function r(r){var o=0,c=0,l=0,f=0,p=0,d=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;a(r,n,i,(function(e,n){var i=Math.log(e),r=Math.log(n);++o,c+=(i-c)/o,l+=(r-l)/o,f+=(i*r-f)/o,p+=(i*i-p)/o,d+=(n-d)/o,t||(e<g&&(g=e),e>v&&(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})}))},"51d4":function(t,e,n){"use strict";var i=n("917c"),r=n("8937"),o=n("9f73");function a(t){var e=Object(r["s"])(t,["event","data","data"],{});return Object(r["C"])(e.children)&&e.children.length>0}function s(t){var e=t.view.getCoordinate(),n=e.innerRadius;if(n){var i=t.event,r=i.x,o=i.y,a=e.center,s=a.x,c=a.y,l=e.getRadius()*n,u=Math.sqrt(Math.pow(s-r,2)+Math.pow(c-o,2));return u<l}return!1}Object(i["l"])("drill-down-action",o["a"]),Object(i["o"])("drill-down",{showEnable:[{trigger:"element:mouseenter",action:"cursor:pointer",isEnable:a},{trigger:"element:mouseleave",action:"cursor:default"},{trigger:"element:mouseleave",action:"cursor:pointer",isEnable:s}],start:[{trigger:"element:click",isEnable:a,action:["drill-down-action:click"]},{trigger:"afterchangesize",action:["drill-down-action:resetPosition"]},{trigger:"click",isEnable:s,action:["drill-down-action:back"]}]})},"51de":function(t,e,n){"use strict";function i(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}n.d(e,"b",(function(){return i})),e["a"]=function(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(o){for(n=0;n<i;++n)r[n]=t[n]*(1-o)+e[n]*o;return r}}},"528e":function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("8937"),a=n("c34d"),s=n("62e3"),c=n("b4aa"),l={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 u(t,e,n){Object(o["r"])(t,(function(t,i){t.inEdges=e.filter((function(t){return""+n.target(t)===""+i})),t.outEdges=e.filter((function(t){return""+n.source(t)===""+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 h(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(""+e.id(t)).localeCompare(""+e.id(n))}},i=n[e.sortBy];!i&&Object(o["I"])(e.sortBy)&&(i=e.sortBy),i&&t.sort(i)}function f(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),o=e.nodeWidthRatio;if(o<=0||o>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var a=0;t.forEach((function(t){a+=t.value})),t.forEach((function(t){t.weight=t.value/a,t.width=t.weight*(1-i),t.height=o})),t.forEach((function(n,i){for(var a=0,s=i-1;s>=0;s--)a+=t[s].width+2*r;var c=n.minX=r+a,l=n.maxX=n.minX+n.width,u=n.minY=e.y-o/2,h=n.maxY=u+o;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 p(t,e,n){if(n.weight){var i={};Object(o["r"])(t,(function(t,e){i[e]=t.value})),e.forEach((function(e){var r=n.source(e),o=n.target(e),a=t[r],s=t[o];if(a&&s){var c=i[r],l=n.sourceWeight(e),u=a.minX+(a.value-c)/a.value*a.width,h=u+l/a.value*a.width;i[r]-=l;var f=i[o],p=n.targetWeight(e),d=s.minX+(s.value-f)/s.value*s.width,g=d+p/s.value*s.width;i[o]-=p;var v=n.y;e.x=[u,h,d,g],e.y=[v,v,v,v],e.source=a,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 d(t){return Object(o["b"])({},l,t)}function g(t,e){var n=d(t),i={},r=e.nodes,o=e.links;r.forEach((function(t){var e=n.id(t);i[e]=t})),u(i,o,n),h(r,n);var a=f(r,n),s=p(i,o,n);return{nodes:a,links:s}}var v="x",y="y",m="name",b="source",x={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{labelEmit:!0,style:{fill:"#8c8c8c"},offsetX:i,content:e}}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(t){return!Object(o["s"])(t,[0,"data","isNode"])},formatter:function(t){var e=t.source,n=t.target,i=t.value;return{name:e+" -> "+n,value:i}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function O(t){var e=t.options,n=e.data,r=e.sourceField,o=e.targetField,a=e.weightField,c=e.nodePaddingRatio,l=e.nodeWidthRatio,u=e.rawFields,h=void 0===u?[]:u,f=Object(s["z"])(n,r,o,a),p=g({weight:!0,nodePaddingRatio:c,nodeWidthRatio:l},f),d=p.nodes,v=p.links,y=d.map((function(t){return Object(i["a"])(Object(i["a"])({},Object(s["t"])(t,Object(i["d"])(["id","x","y","name"],h))),{isNode:!0})})),m=v.map((function(t){return Object(i["a"])(Object(i["a"])({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},Object(s["t"])(t,Object(i["d"])(["x","y","value"],h))),{isNode:!1})}));return Object(i["a"])(Object(i["a"])({},t),{ext:Object(i["a"])(Object(i["a"])({},t.ext),{chordData:{nodesData:y,edgesData:m}})})}function j(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[b]={sync:"color"},e)),t}function w(t){var e=t.chart;return e.axis(!1),t}function C(t){var e=t.chart;return e.legend(!1),t}function M(t){var e=t.chart,n=t.options,i=n.tooltip;return e.tooltip(i),t}function S(t){var e=t.chart;return e.coordinate("polar").reflect("y"),t}function A(t){var e=t.chart,n=t.options,i=t.ext.chordData.nodesData,r=n.nodeStyle,o=n.label,a=n.tooltip,s=e.createView();return s.data(i),Object(c["f"])({chart:s,options:{xField:v,yField:y,seriesField:m,polygon:{style:r},label:o,tooltip:a}}),t}function k(t){var e=t.chart,n=t.options,i=t.ext.chordData.edgesData,r=n.edgeStyle,o=n.tooltip,a=e.createView();a.data(i);var s={xField:v,yField:y,seriesField:b,edge:{style:r,shape:"arc"},tooltip:o};return Object(c["b"])({chart:a,options:s}),t}function F(t){var e=t.chart,n=t.options,i=n.animation;return"boolean"===typeof i?e.animate(i):e.animate(!0),Object(o["j"])(Object(s["j"])(e),(function(t){t.animate(i)})),t}function E(t){return Object(s["f"])(a["k"],O,S,j,w,C,M,k,A,a["c"],a["j"],F)(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="chord",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return x},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return E}})(r["b"])},"538f":function(t,e,n){"use strict";n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return g}));var i=n("5809"),r=n("8937"),o=n("c34d"),a=n("b4aa"),s=n("9ff2"),c=n("62e3"),l=n("c3ec"),u=n("f41e");function h(t){var e=t.chart,n=t.options,i=n.percent,o=n.range,h=n.radius,f=n.innerRadius,p=n.startAngle,d=n.endAngle,g=n.axis,v=n.indicator,y=n.gaugeStyle,m=n.type,b=n.meter,x=o.color,O=o.width;if(v){var j=Object(u["a"])(i),w=e.createView({id:l["c"]});w.data(j),w.point().position(l["d"]+"*1").shape(v.shape||"gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:v}),w.coordinate("polar",{startAngle:p,endAngle:d,radius:f*h}),w.axis(l["d"],g),w.scale(l["d"],Object(c["t"])(g,s["a"]))}var C=Object(u["b"])(i,n.range),M=e.createView({id:l["g"]});M.data(C);var S=Object(r["Q"])(x)?[x,l["a"]]:x,A=Object(a["c"])({chart:M,options:{xField:"1",yField:l["f"],seriesField:l["e"],rawFields:[l["d"]],isStack:!0,interval:{color:S,style:y,shape:"meter"===m?"meter-gauge":null},args:{zIndexReversed:!0},minColumnWidth:O,maxColumnWidth:O}}).ext,k=A.geometry;return k.customInfo({meter:b}),M.coordinate("polar",{innerRadius:f,radius:h,startAngle:p,endAngle:d}).transpose(),t}function f(t){var e;return Object(c["f"])(Object(o["g"])((e={range:{min:0,max:1,maxLimit:1,minLimit:0}},e[l["d"]]={},e)))(t)}function p(t,e){var n=t.chart,r=t.options,o=r.statistic,a=r.percent;if(n.getController("annotation").clear(!0),o){var s=o.content,l=void 0;s&&(l=Object(c["c"])({},{content:(100*a).toFixed(2)+"%",style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},s)),Object(c["v"])(n,{statistic:Object(i["a"])(Object(i["a"])({},o),{content:l})},{percent:a})}return e&&n.render(!0),t}function d(t){var e=t.chart;return e.legend(!1),e.tooltip(!1),t}function g(t){return Object(c["f"])(o["k"],o["a"],h,f,p,o["c"],Object(o["b"])(),d)(t)}},"53a3":function(t,e,n){"use strict";var i=n("2c79"),r=n("8937"),o=n("e897"),a=n("f049"),s=n("bb0c"),c=n("2251"),l=o["a"].transform,u="matrix",h=["zIndex","capture","visible","type"],f=["repeat"],p=":",d="*";function g(t){for(var e=[],n=0;n<t.length;n++)Object(r["C"])(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}function v(t,e){var n={},i=e.attrs;for(var r in t)n[r]=i[r];return n}function y(t,e){var n={},i=e.attr();return Object(r["j"])(t,(function(t,e){-1!==f.indexOf(e)||Object(r["H"])(i[e],t)||(n[e]=t)})),n}function m(t,e){if(e.onFrame)return t;var n=e.startTime,i=e.delay,o=e.duration,a=Object.prototype.hasOwnProperty;return Object(r["j"])(t,(function(t){n+i<t.startTime+t.delay+t.duration&&o>t.delay&&Object(r["j"])(e.toAttrs,(function(e,n){a.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["b"])(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;n<arguments.length;n++)e[n]=arguments[n];var i=e[0],o=e[1];if(!i)return this.attrs;if(Object(r["O"])(i)){for(var a in i)this.setAttr(a,i[a]);return this.afterAttrsChange(i),this}return 2===e.length?(this.setAttr(i,o),this.afterAttrsChange((t={},t[i]=o,t)),this):this.attrs[i]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(Object(a["j"])(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr(u,this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr(u)},e.prototype.setMatrix=function(t){this.attr(u,t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?Object(s["b"])(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?Object(s["b"])(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?Object(s["c"])(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=Object(s["a"])(e);if(n)return Object(s["c"])(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var i=this.getShapeBase(),o=Object(r["wb"])(t.type),a=i[o];a&&(n=new a({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};Object(r["j"])(e,(function(t,i){Object(r["C"])(e[i])?n[i]=g(e[i]):n[i]=e[i]}));var i=this.constructor,o=new i({attrs:n});return Object(r["j"])(h,(function(e){o.set(e,t.get(e))})),o},e.prototype.destroy=function(){var e=this.destroyed;e||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var i=this.get("animations")||[];n.timer||n.initTimer();var o,a,s,c,l,u=t[0],h=t[1],f=t[2],p=void 0===f?"easeLinear":f,d=t[3],g=void 0===d?r["fb"]:d,b=t[4],x=void 0===b?0:b;Object(r["I"])(u)?(o=u,u={}):Object(r["O"])(u)&&u.onFrame&&(o=u.onFrame,a=u.repeat),Object(r["O"])(h)?(l=h,h=l.duration,p=l.easing||"easeLinear",x=l.delay||0,a=l.repeat||a||!1,g=l.callback||r["fb"],s=l.pauseCallback||r["fb"],c=l.resumeCallback||r["fb"]):(Object(r["M"])(g)&&(x=g,g=null),Object(r["I"])(p)?(g=p,p="easeLinear"):p=p||"easeLinear");var O=y(u,this),j={fromAttrs:v(O,this),toAttrs:O,duration:h,easing:p,repeat:a,callback:g,pauseCallback:s,resumeCallback:c,delay:x,startTime:n.getTime(),id:Object(r["vb"])(),onFrame:o,pathFormatted:!1};i.length>0?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,o=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var s=function(t){var s=o[t],l=s.get("name");if(l){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&Object(a["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;l<o.length;l++){var u=s(l);if("break"===u)break}},e.prototype.emitDelegateEvent=function(t,e,n){var i=this.getEvents(),r=e+p+n.type;(i[r]||i[d])&&(n.name=r,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(r,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),i=l(n,[["t",t,e]]);return this.setMatrix(i),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,i=this.attr("y")||0;return this.translate(t-n,e-i),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),i=l(n,[["s",t,e||t]]);return this.setMatrix(i),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=l(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,i=e.y,r=this.getMatrix(),o=l(r,[["t",-n,-i],["r",t],["t",n,i]]);return this.setMatrix(o),this},e.prototype.rotateAtPoint=function(t,e,n){var i=this.getMatrix(),r=l(i,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(r),this},e}(c["a"]);e["a"]=b},"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 o in r)["default","Canvas","Group","Shape","getArcParams","version"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);var a=n("b182");n.d(e,"Canvas",(function(){return a["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"},5809:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return s}));
  41. /*! *****************************************************************************
  42. Copyright (c) Microsoft Corporation.
  43. Permission to use, copy, modify, and/or distribute this software for any
  44. purpose with or without fee is hereby granted.
  45. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  46. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  47. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  48. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  49. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  50. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  51. PERFORMANCE OF THIS SOFTWARE.
  52. ***************************************************************************** */
  53. 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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};function a(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}Object.create;function s(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}Object.create},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,n){var i=n("e330"),r=n("1d80"),o=n("577e"),a=n("5899"),s=i("".replace),c="["+a+"]",l=RegExp("^"+c+c+"*"),u=RegExp(c+c+"*$"),h=function(t){return function(e){var n=o(r(e));return 1&t&&(n=s(n,l,"")),2&t&&(n=s(n,u,"")),n}};t.exports={start:h(1),end:h(2),trim:h(3)}},"58e4":function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return c}));var i=n("5809"),r=n("8937"),o=n("62e3");function a(t,e){var n=t.type,o=t.xField,a=t.yField,s=t.colorField,c=t.shapeField,l=t.sizeField,u=t.styleField,h=t.rawFields,f=void 0===h?[]:h,p=[];if("color"===e)p=Object(i["d"])([s||o],f);else if("shape"===e)p=Object(i["d"])([c||o],f);else if("size"===e)p=Object(i["d"])([l||o],f);else{p=Object(i["d"])([o,a,s,c,l,u],f);var d=["x","y","color","shape","size","style"].indexOf(e),g=p[d];p.splice(d,1),p.unshift(g)}var v=Object(r["ub"])(p.filter((function(t){return!!t}))),y="line"===n&&[o,a].includes(v.join("*"))?"":v.join("*");return{mappingFields:v,tileMappingField:y}}function s(t,e){if(e)return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r={};return t.forEach((function(t,e){r[t]=n[e]})),delete r["undefined"],e(r)}}function c(t){var e=t.chart,n=t.options,c=n.type,l=n.args,u=n.mapping,h=n.xField,f=n.yField,p=n.colorField,d=n.shapeField,g=n.sizeField,v=n.tooltipFields,y=n.label,m=n.state,b=n.customInfo;if(!u)return t;var x=u.color,O=u.shape,j=u.size,w=u.style,C=u.tooltip,M=e[c](l).position(h+"*"+f);if(Object(r["Q"])(x))p?M.color(p,x):M.color(x);else if(Object(r["I"])(x)){var S=a(n,"color"),A=S.mappingFields,k=S.tileMappingField;M.color(k,s(A,x))}else p&&M.color(p,x);if(Object(r["Q"])(O))d?M.shape(d,[O]):M.shape(O);else if(Object(r["I"])(O)){var F=a(n,"shape");A=F.mappingFields,k=F.tileMappingField;M.shape(k,s(A,O))}else d&&M.shape(d,O);if(Object(r["M"])(j))g?M.size(g,j):M.size(j);else if(Object(r["I"])(j)){var E=a(n,"size");A=E.mappingFields,k=E.tileMappingField;M.size(k,s(A,j))}else g&&M.size(g,j);if(Object(r["I"])(w)){var T=a(n,"style");A=T.mappingFields,k=T.tileMappingField;M.style(k,s(A,w))}else Object(r["O"])(w)&&M.style(w);if(!1===v?M.tooltip(!1):Object(r["G"])(v)||M.tooltip(v.join("*"),s(v,C)),!1===y)M.label(!1);else if(y){var P=y.callback,I=y.fields,B=Object(i["c"])(y,["callback","fields"]);M.label({fields:I||[f],callback:P,cfg:Object(o["A"])(B)})}return m&&M.state(m),b&&M.customInfo(b),[h,f].filter((function(t){return t!==p})).forEach((function(t){e.legend(t,!1)})),Object(i["a"])(Object(i["a"])({},t),{ext:{geometry:M}})}},"59b0":function(t,e){},"5be2":function(t,e,n){"use strict";n.d(e,"b",(function(){return l}));var i=n("8f50"),r=n("eccb");function o(t,e,n){var i,r,o,a,s=t.x-e.x,c=t.y-e.y,l=s*s+c*c;l?(r=e.r+n.r,r*=r,a=t.r+n.r,a*=a,r>a?(i=(l+a-r)/(2*l),o=Math.sqrt(Math.max(0,a/l-i*i)),n.x=t.x-i*s-o*c,n.y=t.y-i*c+o*s):(i=(l+r-a)/(2*l),o=Math.sqrt(Math.max(0,r/l-i*i)),n.x=e.x+i*s-o*c,n.y=e.y+i*c+o*s)):(n.x=e.x+n.r,n.y=e.y)}function a(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 s(t){var e=t._,n=t.next._,i=e.r+n.r,r=(e.x*n.r+n.x*e.r)/i,o=(e.y*n.r+n.y*e.r)/i;return r*r+o*o}function c(t){this._=t,this.next=null,this.previous=null}function l(t){if(!(u=(t=Object(i["a"])(t)).length))return 0;var e,n,l,u,h,f,p,d,g,v,y;if(e=t[0],e.x=0,e.y=0,!(u>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(u>2))return e.r+n.r;o(n,e,l=t[2]),e=new c(e),n=new c(n),l=new c(l),e.next=l.previous=n,n.next=e.previous=l,l.next=n.previous=e;t:for(p=3;p<u;++p){o(e._,n._,l=t[p]),l=new c(l),d=n.next,g=e.previous,v=n._.r,y=e._.r;do{if(v<=y){if(a(d._,l._)){n=d,e.next=n,n.previous=e,--p;continue t}v+=d._.r,d=d.next}else{if(a(g._,l._)){e=g,e.next=n,n.previous=e,--p;continue t}y+=g._.r,g=g.previous}}while(d!==g.next);l.previous=e,l.next=n,e.next=n.previous=n=l,h=s(e);while((l=l.next)!==n)(f=s(l))<h&&(e=l,h=f);n=e.next}e=[n._],l=n;while((l=l.next)!==n)e.push(l._);for(l=Object(r["a"])(e),p=0;p<u;++p)e=t[p],e.x-=l.x,e.y-=l.y;return l.r}e["a"]=function(t){return l(t),t}},"5cc9":function(t,e,n){"use strict";n.d(e,"c",(function(){return g})),n.d(e,"b",(function(){return y})),n.d(e,"a",(function(){return C}));var i=n("5809"),r=n("8937"),o=n("62e3"),a=n("b4aa"),s=n("9cae"),c=n("c34d"),l=n("4dce"),u={exp:l["regressionExp"],linear:l["regressionLinear"],loess:l["regressionLoess"],log:l["regressionLog"],poly:l["regressionPoly"],pow:l["regressionPow"],quad:l["regressionQuad"]};function h(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 f=function(t,e){var n=e.view,i=e.options,r=i.xField,a=i.yField,s=n.getScaleByField(r),c=n.getScaleByField(a),l=t.map((function(t){return n.getCoordinate().convert({x:s.scale(t[0]),y:c.scale(t[1])})}));return Object(o["m"])(l,!1)},p=function(t){var e,n=t.options,i=n.xField,o=n.yField,a=n.data,s=n.regressionLine,c=s.type,l=void 0===c?"linear":c,h=s.algorithm;if(h)e=Object(r["C"])(h)?h:h(a);else{var p=u[l]().x((function(t){return t[i]})).y((function(t){return t[o]}));e=p(a)}return f(e,t)},d=function(t){var e,n=t.meta,o=void 0===n?{}:n,a=t.xField,s=t.yField,c=t.data,l=c[0][a],u=c[0][s],h=l>0,f=u>0;function p(t,e){var n=Object(r["s"])(o,[t]);function i(t){return Object(r["s"])(n,t)}var a={};return"x"===e?(Object(r["M"])(l)&&(Object(r["M"])(i("min"))||(a["min"]=h?0:2*l),Object(r["M"])(i("max"))||(a["max"]=h?2*l:0)),a):(Object(r["M"])(u)&&(Object(r["M"])(i("min"))||(a["min"]=f?0:2*u),Object(r["M"])(i("max"))||(a["max"]=f?2*u:0)),a)}return Object(i["a"])(Object(i["a"])({},o),(e={},e[a]=Object(i["a"])(Object(i["a"])({},o[a]),p(a,"x")),e[s]=Object(i["a"])(Object(i["a"])({},o[s]),p(s,"y")),e))};function g(t){var e=t.data,n=void 0===e?[]:e,i=t.xField,r=t.yField;if(n.length){for(var a=!0,s=!0,c=n[0],l=void 0,u=1;u<n.length;u++){if(l=n[u],c[i]!==l[i]&&(a=!1),c[r]!==l[r]&&(s=!1),!a&&!s)break;c=l}var h=[];a&&h.push(i),s&&h.push(r);var f=Object(o["t"])(d(t),h);return Object(o["c"])({},t,{meta:f})}return t}function v(t){var e=t.chart,n=t.options,s=n.data,c=n.type,l=n.color,u=n.shape,h=n.pointStyle,f=n.shapeField,p=n.colorField,d=n.xField,g=n.yField,v=n.sizeField,y=n.size,m=n.tooltip;v&&(y||(y=[2,8]),Object(r["M"])(y)&&(y=[y,y])),m&&!m.fields&&(m=Object(i["a"])(Object(i["a"])({},m),{fields:[d,g,p,v,f]})),e.data(s),Object(a["e"])(Object(o["c"])({},t,{options:{seriesField:p,point:{color:l,shape:u,size:y,style:h},tooltip:m}}));var b=Object(o["d"])(e,"point");return c&&b.adjust(c),t}function y(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,a=n.xField,s=n.yField,l=g(n);return Object(o["f"])(Object(c["g"])((e={},e[a]=i,e[s]=r,e)))(Object(o["c"])({},t,{options:l}))}function m(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return e.axis(o,i),e.axis(a,r),t}function b(t){var e=t.chart,n=t.options,i=n.legend,r=n.colorField,o=n.shapeField,a=n.sizeField,s=n.shapeLegend,c=n.sizeLegend,l=!1!==i;return r&&e.legend(r,!!l&&i),o&&(s?e.legend(o,s):e.legend(o,!1!==s&&i)),a&&e.legend(a,c||!1),l||s||c||e.legend(!1),t}function x(t){var e=t.chart,n=t.options,r=n.label,a=n.yField,s=Object(o["d"])(e,"point");if(r){var c=r.callback,l=Object(i["c"])(r,["callback"]);s.label({fields:[a],callback:c,cfg:Object(o["A"])(l)})}else s.label(!1);return t}function O(t){var e=t.options,n=e.quadrant,r=[];if(n){var a=n.xBaseline,s=void 0===a?0:a,l=n.yBaseline,u=void 0===l?0:l,f=n.labels,p=n.regionStyle,d=n.lineStyle,g=h(s,u),v=new Array(4).join(",").split(",");v.forEach((function(t,e){r.push(Object(i["a"])(Object(i["a"])({type:"region",top:!1},g.regionStyle[e].position),{style:Object(o["c"])({},g.regionStyle[e].style,null===p||void 0===p?void 0:p[e])}),Object(i["a"])({type:"text",top:!0},Object(o["c"])({},g.labelStyle[e],null===f||void 0===f?void 0:f[e])))})),r.push({type:"line",top:!1,start:["min",u],end:["max",u],style:Object(o["c"])({},g.lineStyle,d)},{type:"line",top:!1,start:[s,"min"],end:[s,"max"],style:Object(o["c"])({},g.lineStyle,d)})}return Object(o["f"])(Object(c["b"])(r))(t)}function j(t){var e=t.options,n=t.chart,r=e.regressionLine;if(r){var o=r.style,a=r.top,s=void 0!==a&&a,c={stroke:"#9ba29a",lineWidth:2,opacity:.5};n.annotation().shape({top:s,render:function(t,r){var a=t.addGroup({id:n.id+"-regression-line",name:"regression-line-group"}),s=p({view:r,options:e});a.addShape("path",{name:"regression-line",attrs:Object(i["a"])(Object(i["a"])({path:s},c),o)})}})}return t}function w(t){var e=t.chart,n=t.options,i=n.tooltip;return i?e.tooltip(i):!1===i&&e.tooltip(!1),t}function C(t){return Object(o["f"])(v,y,m,b,w,x,s["a"],c["c"],O,c["a"],c["k"],j)(t)}},"5dc3":function(t,e,n){"use strict";n("1fc0")},"5e24":function(t,e){},"5e5a":function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var i=n("5809"),r=n("cc94"),o=n("849a"),a=n("62e3"),s=Object(a["c"])({},r["b"].getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left"},isStack:!1}),c=n("917c"),l=n("8937"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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(l["j"])(i,(function(t){Object(l["j"])(t.elements,(function(t){var e=-1!==Object(l["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(l["j"])(e,(function(t){Object(l["j"])(t.elements,(function(t){t.setState("active",!1)}))}))},e.prototype.getView=function(){return this.context.view},e}(c["f"]);Object(c["l"])("marker-active",u),Object(c["o"])("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e}return Object(i["b"])(e,t),e.getDefaultOptions=function(){return s},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,i=e.options;Object(o["d"])({chart:n,options:i}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o["a"]},e}(r["b"])},"5e91":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("5809"),r=n("917c"),o=n("cc94"),a=n("538f"),s=n("c3ec"),c=n("f41e");Object(r["p"])("point","gauge-indicator",{draw:function(t,e){var n=t.customInfo,r=n.indicator,o=n.defaultColor,a=r,s=a.pointer,c=a.pin,l=e.addGroup(),u=this.parsePoint({x:0,y:0});return s&&l.addShape("line",{name:"pointer",attrs:Object(i["a"])({x1:u.x,y1:u.y,x2:t.x,y2:t.y,stroke:o},s.style)}),c&&l.addShape("circle",{name:"pin",attrs:Object(i["a"])({x:u.x,y:u.y,stroke:o},c.style)}),l}});var l=n("8937");Object(r["p"])("interval","meter-gauge",{draw:function(t,e){var n=t.customInfo.meter,i=void 0===n?{}:n,o=i.steps,a=void 0===o?50:o,s=i.stepRatio,c=void 0===s?.5:s;a=a<1?1:a,c=Object(l["c"])(c,0,1);var u=this.coordinate,h=u.startAngle,f=u.endAngle,p=0;if(c>0&&c<1){var d=f-h;p=d/a/(c/(1-c)+1-1/a)}for(var g=p/(1-c)*c,v=e.addGroup(),y=this.coordinate.getCenter(),m=this.coordinate.getRadius(),b=r["h"].getAngle(t,this.coordinate),x=b.startAngle,O=b.endAngle,j=x;j<O;){var w=void 0,C=(j-h)%(g+p);C<g?w=j+(g-C):(j+=g+p-C,w=j+g);var M=r["h"].getSectorPath(y.x,y.y,m,j,Math.min(w,O),m*this.coordinate.innerRadius);v.addShape("path",{name:"meter-gauge",attrs:{path:M,fill:t.color,stroke:t.color,lineWidth:.5}}),j=w+p}return v}});var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e}return Object(i["b"])(e,t),e.getDefaultOptions=function(){return s["b"]},e.prototype.changeData=function(t){this.chart.emit(r["i"].BEFORE_CHANGE_DATA,r["d"].fromData(this.chart,r["i"].BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t});var e=this.chart.views.find((function(t){return t.id===s["c"]}));e&&e.data(Object(c["a"])(t));var n=this.chart.views.find((function(t){return t.id===s["g"]}));n&&n.data(Object(c["b"])(t,this.options.range)),Object(a["b"])({chart:this.chart,options:this.options},!0),this.chart.emit(r["i"].AFTER_CHANGE_DATA,r["d"].fromData(this.chart,r["i"].AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a["a"]},e}(o["b"])},"5fff":function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var i=n("5809"),r=n("c34d"),o=n("62e3"),a=n("0cc4");function s(t){var e=t.options,n=e.xField,r=e.yField,o=e.xAxis,a=e.yAxis,s={left:"bottom",right:"top",top:"left",bottom:"right"},c=!1!==a&&Object(i["a"])({position:s[(null===a||void 0===a?void 0:a.position)||"left"]},a),l=!1!==o&&Object(i["a"])({position:s[(null===o||void 0===o?void 0:o.position)||"bottom"]},o);return Object(i["a"])(Object(i["a"])({},t),{options:Object(i["a"])(Object(i["a"])({},e),{xField:r,yField:n,xAxis:c,yAxis:l})})}function c(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"}}])),Object(o["c"])({},t,{options:{label:n}})}function l(t){var e=t.options,n=e.seriesField,r=e.isStack,a=e.legend;return n?!1!==a&&(a=Object(i["a"])({position:r?"top-left":"right-top"},a||{})):a=!1,Object(o["c"])({},t,{options:{legend:a}})}function u(t){var e=t.chart;return e.coordinate({actions:[["transpose"],["reflect","y"]]}),t}function h(t){var e=t.chart,n=t.options,r=n.barStyle,o=n.barWidthRatio,s=n.minBarWidth,c=n.maxBarWidth,l=n.barBackground;return Object(a["a"])({chart:e,options:Object(i["a"])(Object(i["a"])({},n),{columnStyle:r,columnWidthRatio:o,minColumnWidth:s,maxColumnWidth:c,columnBackground:l})},!0)}function f(t){return Object(o["f"])(s,c,l,r["l"],u,h)(t)}n.d(e,"b",(function(){return a["b"]}))},"60fe":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("5809"),r=n("917c"),o=n("cc94"),a=n("0770"),s=n("988d"),c={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:{}},l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ring-process",e}return Object(i["b"])(e,t),e.getDefaultOptions=function(){return c},e.prototype.changeData=function(t){this.chart.emit(r["i"].BEFORE_CHANGE_DATA,r["d"].fromData(this.chart,r["i"].BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(Object(a["a"])(t)),Object(s["b"])({chart:this.chart,options:this.options},!0),this.chart.emit(r["i"].AFTER_CHANGE_DATA,r["d"].fromData(this.chart,r["i"].AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s["a"]},e}(o["b"])},"612d":function(t,e,n){"use strict";var i=n("2c79"),r=n("8937"),o=n("53a3"),a=n("f049"),s={},c="_INDEX";function l(t,e){if(t.set("canvas",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){l(t,e)}))}}function u(t,e){if(t.set("timeline",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){u(t,e)}))}}function h(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 f(t){return function(e,n){var i=t(e,n);return 0===i?e[c]-n[c]:i}}var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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,o=[],s=[],c=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));c.length>0?(Object(a["a"])(c,(function(t){var e=t.getBBox();o.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(r["bb"])(o),e=Object(r["Y"])(o),n=Object(r["bb"])(s),i=Object(r["Y"])(s)):(t=0,e=0,n=0,i=0);var l={x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n};return l},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,o=[],s=[],c=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));c.length>0?(Object(a["a"])(c,(function(t){var e=t.getCanvasBBox();o.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(r["bb"])(o),e=Object(r["Y"])(o),n=Object(r["bb"])(s),i=Object(r["Y"])(s)):(t=0,e=0,n=0,i=0);var l={x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n};return l},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<arguments.length;e++)t[e]=arguments[e];var n=t[0],i=t[1];Object(a["f"])(n)?i=n:i["type"]=n;var r=s[i.type];r||(r=Object(a["k"])(i.type),s[i.type]=r);var o=this.getShapeBase(),c=new o[r](i);return this.add(c),c},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,i=t[0],r=t[1];if(Object(a["d"])(i))n=new i(r||{parent:this});else{var o=i||{},s=this.getGroupBase();n=new s(o)}return this.add(n),n},e.prototype.getCanvas=function(){var t;return t=this.isCanvas()?this:this.get("canvas"),t},e.prototype.getShape=function(t,e,n){if(!Object(a["b"])(this))return null;var i,r=this.getChildren();if(this.isCanvas())i=this._findShape(r,t,e,n);else{var o=[t,e,1];o=this.invertFromMatrix(o),this.isClipped(o[0],o[1])||(i=this._findShape(r,o[0],o[1],n))}return i},e.prototype._findShape=function(t,e,n,i){for(var r=null,o=t.length-1;o>=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&&h(r,t,!1),t.set("parent",this),e&&l(t,e),i&&u(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[c]=e,t})),t.sort(f((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}(o["a"]);e["a"]=p},"62e3":function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduce((function(t,e){return e(t)}),e)}}n.d(e,"f",(function(){return i})),n.d(e,"t",(function(){return r["a"]})),n.d(e,"y",(function(){return a})),n.d(e,"r",(function(){return s["b"]})),n.d(e,"a",(function(){return s["a"]})),n.d(e,"k",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"h",(function(){return u})),n.d(e,"i",(function(){return h})),n.d(e,"j",(function(){return f})),n.d(e,"e",(function(){return p["a"]})),n.d(e,"n",(function(){return p["c"]})),n.d(e,"l",(function(){return p["b"]})),n.d(e,"A",(function(){return g})),n.d(e,"m",(function(){return x})),n.d(e,"c",(function(){return O["a"]})),n.d(e,"q",(function(){return j})),n.d(e,"w",(function(){return C["b"]})),n.d(e,"v",(function(){return C["a"]})),n.d(e,"o",(function(){return S["a"]})),n.d(e,"p",(function(){return S["b"]})),n.d(e,"b",(function(){return A["a"]})),n.d(e,"z",(function(){return A["c"]})),n.d(e,"u",(function(){return A["b"]})),n.d(e,"s",(function(){return k["b"]})),n.d(e,"g",(function(){return k["a"]})),n.d(e,"x",(function(){return k["c"]}));var r=n("3f35"),o=n("8937");function a(t,e){return e?Object(o["ib"])(e,(function(t,e,n){return t.replace(new RegExp("{\\s*"+n+"\\s*}","g"),e)}),t):t}var s=n("f2ce");function c(t){if(!t)return{width:0,height:0};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 l(t,e){return t.geometries.find((function(t){return t.type===e}))}function u(t){return Object(o["ib"])(t.geometries,(function(t,e){return t.concat(e.elements)}),[])}function h(t){return Object(o["s"])(t,["views","length"],0)<=0?u(t):Object(o["ib"])(t.views,(function(t,e){return t.concat(h(e))}),u(t))}function f(t){return Object(o["s"])(t,["views","length"],0)<=0?t.geometries:Object(o["ib"])(t.views,(function(t,e){return t.concat(e.geometries)}),t.geometries)}var p=n("e0e9"),d=n("5809");function g(t){if(!Object(o["R"])(t,"Object"))return t;var e=Object(d["a"])({},t);return e.formatter&&!e.content&&(e.content=e.formatter),e}var v=n("e897");function y(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var i=1,r=t.length;i<r;i+=1){var o=t[i];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}var m=function(t,e,n,i){var r,o,a,s,c=[],l=!!i;if(l){a=[1/0,1/0],s=[-1/0,-1/0];for(var u=0,h=t.length;u<h;u++){var f=t[u];a=v["c"].min([0,0],a,f),s=v["c"].max([0,0],s,f)}a=v["c"].min([0,0],a,i[0]),s=v["c"].max([0,0],s,i[1])}u=0;for(var p=t.length;u<p;u++){f=t[u];if(n)r=t[u?u-1:p-1],o=t[(u+1)%p];else{if(0===u||u===p-1){c.push(f);continue}r=t[u-1],o=t[u+1]}var d=[0,0];d=v["c"].sub(d,o,r),d=v["c"].scale(d,d,e);var g=v["c"].distance(f,r),y=v["c"].distance(f,o),m=g+y;0!==m&&(g/=m,y/=m);var b=v["c"].scale([0,0],d,-g),x=v["c"].scale([0,0],d,y),O=v["c"].add([0,0],f,b),j=v["c"].add([0,0],f,x);l&&(O=v["c"].max([0,0],O,a),O=v["c"].min([0,0],O,s),j=v["c"].max([0,0],j,a),j=v["c"].min([0,0],j,s)),c.push(O),c.push(j)}return n&&c.push(c.shift()),c};function b(t,e,n){for(var i=!!e,r=[],o=0,a=t.length;o<a;o+=2)r.push([t[o],t[o+1]]);var s,c,l,u=m(r,.4,i,n),h=r.length,f=[];for(o=0;o<h-1;o++)s=u[2*o],c=u[2*o+1],l=r[o+1],f.push(["C",s[0],s[1],c[0],c[1],l[0],l[1]]);return i&&(s=u[h],c=u[h+1],l=r[0],f.push(["C",s[0],s[1],c[0],c[1],l[0],l[1]])),f}function x(t,e,n){var i=[],r=t[0],o=null;if(t.length<=2)return y(t,e);for(var a=0,s=t.length;a<s;a++){var c=t[a];o&&o.x===c.x&&o.y===c.y||(i.push(c.x),i.push(c.y),o=c)}var l=n||[[0,0],[1,1]],u=b(i,e,l);return u.unshift(["M",r.x,r.y]),u}var O=n("3295");function j(t){if(!t)return t;var e=t.match(/(([A-Z]{0,1}[a-z]*[^A-Z])|([A-Z]{1}))/g);return e.map((function(t){return t.toLowerCase()})).join("-")}var w,C=n("9a3e");function M(){return w||(w=document.createElement("canvas").getContext("2d")),w}Object(o["ab"])((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,r=void 0===i?"sans-serif":i,a=e.fontWeight,s=e.fontStyle,c=e.fontVariant,l=M();l.font=[s,a,c,n+"px",r].join(" ");var u=l.measureText(Object(o["Q"])(t)?t:"");return u.width}),(function(t,e){return void 0===e&&(e={}),Object(d["d"])([t],Object(o["xb"])(e)).join("")}));var S=n("17f7"),A=n("0f20"),k=n("f45c")},"63e2":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("5809"),r=n("cc94"),o=n("b2a0"),a=n("5fff"),s=n("62e3"),c=Object(s["c"])({},r["b"].getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},interactions:[{type:"active-region"}]}),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bar",e}return Object(i["b"])(e,t),e.getDefaultOptions=function(){return c},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,r=e.options,s=r.xField,c=r.yField,l=r.isPercent,u=Object(i["a"])(Object(i["a"])({},r),{xField:c,yField:s});Object(a["b"])({chart:n,options:u}),n.changeData(Object(o["a"])(t,s,c,s,l))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a["a"]},e}(r["b"])},"65f0":function(t,e,n){var i=n("0b42");t.exports=function(t,e){return new(i(t))(0===e?0:e)}},6711:function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return r})),n.d(e,"clone",(function(){return o})),n.d(e,"fromValues",(function(){return a})),n.d(e,"copy",(function(){return s})),n.d(e,"set",(function(){return c})),n.d(e,"add",(function(){return l})),n.d(e,"subtract",(function(){return u})),n.d(e,"multiply",(function(){return h})),n.d(e,"divide",(function(){return f})),n.d(e,"ceil",(function(){return p})),n.d(e,"floor",(function(){return d})),n.d(e,"min",(function(){return g})),n.d(e,"max",(function(){return v})),n.d(e,"round",(function(){return y})),n.d(e,"scale",(function(){return m})),n.d(e,"scaleAndAdd",(function(){return b})),n.d(e,"distance",(function(){return x})),n.d(e,"squaredDistance",(function(){return O})),n.d(e,"length",(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,"random",(function(){return E})),n.d(e,"transformMat2",(function(){return T})),n.d(e,"transformMat2d",(function(){return P})),n.d(e,"transformMat3",(function(){return I})),n.d(e,"transformMat4",(function(){return B})),n.d(e,"rotate",(function(){return L})),n.d(e,"angle",(function(){return D})),n.d(e,"zero",(function(){return R})),n.d(e,"str",(function(){return _})),n.d(e,"exactEquals",(function(){return z})),n.d(e,"equals",(function(){return Y})),n.d(e,"len",(function(){return N})),n.d(e,"sub",(function(){return G})),n.d(e,"mul",(function(){return X})),n.d(e,"div",(function(){return V})),n.d(e,"dist",(function(){return H})),n.d(e,"sqrDist",(function(){return W})),n.d(e,"sqrLen",(function(){return q})),n.d(e,"forEach",(function(){return K}));var i=n("c94d");function r(){var t=new i["a"](2);return i["a"]!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t){var e=new i["a"](2);return e[0]=t[0],e[1]=t[1],e}function a(t,e){var n=new i["a"](2);return n[0]=t,n[1]=e,n}function s(t,e){return t[0]=e[0],t[1]=e[1],t}function c(t,e,n){return t[0]=e,t[1]=n,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function p(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function d(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function v(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function y(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function b(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function x(t,e){var n=e[0]-t[0],i=e[1]-t[1];return Math.hypot(n,i)}function O(t,e){var n=e[0]-t[0],i=e[1]-t[1];return n*n+i*i}function j(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function w(t){var e=t[0],n=t[1];return e*e+n*n}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t}function M(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function S(t,e){var n=e[0],i=e[1],r=n*n+i*i;return r>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],o=e[1];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),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 T(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 P(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 I(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],o=e[1]-n[1],a=Math.sin(i),s=Math.cos(i);return t[0]=r*s-o*a+n[0],t[1]=r*a+o*s+n[1],t}function D(t,e){var n=t[0],i=t[1],r=e[0],o=e[1],a=Math.sqrt(n*n+i*i)*Math.sqrt(r*r+o*o),s=a&&(n*r+i*o)/a;return Math.acos(Math.min(Math.max(s,-1),1))}function R(t){return t[0]=0,t[1]=0,t}function _(t){return"vec2("+t[0]+", "+t[1]+")"}function z(t,e){return t[0]===e[0]&&t[1]===e[1]}function Y(t,e){var n=t[0],r=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=i["b"]*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=i["b"]*Math.max(1,Math.abs(r),Math.abs(a))}var N=j,G=u,X=h,V=f,H=x,W=O,q=w,K=function(){var t=r();return function(e,n,i,r,o,a){var s,c;for(n||(n=2),i||(i=0),c=r?Math.min(r*n+i,e.length):e.length,s=i;s<c;s+=n)t[0]=e[s],t[1]=e[s+1],o(t,t,a),e[s]=t[0],e[s+1]=t[1];return e}}()},6730:function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var i=n("ea1d"),r=n("51de");function o(t,e){var n,r=e?e.length:0,o=t?Math.min(r,t.length):0,a=new Array(o),s=new Array(r);for(n=0;n<o;++n)a[n]=Object(i["a"])(t[n],e[n]);for(;n<r;++n)s[n]=e[n];return function(t){for(n=0;n<o;++n)s[n]=a[n](t);return s}}e["a"]=function(t,e){return(Object(r["b"])(e)?r["a"]:o)(t,e)}},"674a":function(t,e,n){"use strict";n("bb3f")},6855:function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return y}));var i=n("b6fb");n.d(e,"PathUtil",(function(){return i}));var r=n("e1c6");for(var o in r)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","version"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);var a=n("b5d5");for(var o in a)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","version"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);var s=n("e5e2");n.d(e,"Event",(function(){return s["a"]}));var c=n("2e60");n.d(e,"Base",(function(){return c["a"]}));var l=n("1243");n.d(e,"AbstractCanvas",(function(){return l["a"]}));var u=n("f83c");n.d(e,"AbstractGroup",(function(){return u["a"]}));var h=n("31a1");n.d(e,"AbstractShape",(function(){return h["a"]}));var f=n("d4c6");n.d(e,"getBBoxMethod",(function(){return f["a"]}));var p=n("bc88");n.d(e,"getTextHeight",(function(){return p["b"]})),n.d(e,"assembleFont",(function(){return p["a"]}));var d=n("b2cb");n.d(e,"isAllowCapture",(function(){return d["b"]}));var g=n("6928");n.d(e,"multiplyVec2",(function(){return g["c"]})),n.d(e,"invert",(function(){return g["a"]}));var v=n("96de");n.d(e,"getOffScreenContext",(function(){return v["a"]}));var y="0.5.6"},"68bc":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("5809"),r=n("8937"),o=n("cc94"),a=n("62e3"),s=n("0c22"),c=n("7b42"),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="funnel",e}return Object(i["b"])(e,t),e.getDefaultOptions=function(){return c["a"]},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s["a"]},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var i=Object(a["i"])(this.chart);Object(r["j"])(i,(function(i){e(i.getData())&&i.setState(t,n)}))},e.prototype.getStates=function(){var t=Object(a["i"])(this.chart),e=[];return Object(r["j"])(t,(function(t){var n=t.getData(),i=t.getStates();Object(r["j"])(i,(function(i){e.push({data:n,state:i,geometry:t.geometry,element:t})}))})),e},e.CONVERSATION_FIELD=c["b"],e.PERCENT_FIELD=c["d"],e.TOTAL_PERCENT_FIELD=c["e"],e}(o["b"])},"68de":function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return f})),n.d(e,"Circle",(function(){return g})),n.d(e,"Dom",(function(){return y})),n.d(e,"Ellipse",(function(){return b})),n.d(e,"Image",(function(){return O})),n.d(e,"Line",(function(){return C})),n.d(e,"Marker",(function(){return k})),n.d(e,"Path",(function(){return E})),n.d(e,"Polygon",(function(){return P})),n.d(e,"Polyline",(function(){return B})),n.d(e,"Rect",(function(){return R})),n.d(e,"Text",(function(){return V}));var i={};n.r(i),n.d(i,"Base",(function(){return f})),n.d(i,"Circle",(function(){return g})),n.d(i,"Dom",(function(){return y})),n.d(i,"Ellipse",(function(){return b})),n.d(i,"Image",(function(){return O})),n.d(i,"Line",(function(){return C})),n.d(i,"Marker",(function(){return k})),n.d(i,"Path",(function(){return E})),n.d(i,"Polygon",(function(){return P})),n.d(i,"Polyline",(function(){return B})),n.d(i,"Rect",(function(){return R})),n.d(i,"Text",(function(){return V}));var r=n("4767"),o=n("6855"),a=n("00f9"),s=n("73ec"),c=n("7349"),l=n("22f9"),u=n("e73e"),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return Object(r["b"])(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.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.draw(i,e)}},e.prototype.getShapeBase=function(){return i},e.prototype.getGroupBase=function(){return u["a"]},e.prototype.onCanvasChange=function(t){Object(c["b"])(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=Object(o["getBBoxMethod"])(this.get("type"));n&&(e=n(this))}if(e){var i=e.x,r=e.y,a=e.width,s=e.height,c=this.getHitLineWidth(),l=c/2,u=i-l,h=r-l,f=i+a+l,p=r+s+l;return{x:u,y:h,minX:u,minY:h,maxX:f,maxY:p,width:a+c,height:s+c}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||Object(s["a"])(this),Object(a["a"])(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),i=n.fill,r=n.fillStyle,o=n.stroke,a=n.strokeStyle,s=n.fillOpacity,c=n.strokeOpacity,u=n.lineWidth,h=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",i):"fillStyle"in n&&this._setColor(t,"fill",r):this._setColor(t,"fill",i||r),s&&h.setAttribute(l["b"]["fillOpacity"],s)),this.canStroke&&u>0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),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,o=i.shadowOffsetY,s=i.shadowBlur,c=i.shadowColor;(r||o||s||c)&&Object(a["b"])(this,t)},e.prototype.transform=function(t){var e=this.attr(),n=(t||e).matrix;n&&Object(a["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(),o=t+r.left,a=e+r.top,s=document.elementFromPoint(o,a);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}(o["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["b"])(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["b"])(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 o=i.childNodes,a=o.length-1;a>=0;a--)i.removeChild(o[a]);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["b"])(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["b"])(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["b"])(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 o=Object(p["O"])(e)?t.addArrow(n,l["b"][r]):t.getDefaultArrow(n,l["b"][r]);i.setAttribute(l["b"][r],"url(#"+o+")")}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,o=e.y2;return j["c"].pointAt(n,i,r,o,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["b"])(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,o=e.symbol||"circle";return t=Object(p["I"])(o)?o:S.get(o),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["b"])(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,o){if("path"===o&&Object(p["C"])(e))r.setAttribute("d",n._formatPath(e));else if("startArrow"===o||"endArrow"===o)if(e){var a=Object(p["O"])(e)?t.addArrow(i,l["b"][o]):t.getDefaultArrow(i,l["b"][o]);r.setAttribute(l["b"][o],"url(#"+a+")")}else r.removeAttribute(l["b"][o]);else l["b"][o]&&r.setAttribute(l["b"][o],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,T=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["b"])(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),P=T,I=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["b"])(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,o=[];Object(p["j"])(t,(function(a,s){t[s+1]&&(n=[],n[0]=r/e,i=j["c"].length(a[0],a[1],t[s+1][0],t[s+1][1]),r+=i,n[1]=r/e,o.push(n))})),this.set("tCache",o)}}},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=I;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["b"])(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"),o=!1,a=["x","y","width","height","radius"];Object(p["j"])(e||i,(function(t,e){-1===a.indexOf(e)||o?-1===a.indexOf(e)&&l["b"][e]&&r.setAttribute(l["b"][e],t):(r.setAttribute("d",n._assembleRect(i)),o=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,i=t.width,r=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+i+",0 l 0,"+r+" l"+-i+" 0 z";var a=L(o);Object(p["C"])(o)?1===o.length?a.r1=a.r2=a.r3=a.r4=o[0]:2===o.length?(a.r1=a.r3=o[0],a.r2=a.r4=o[1]):3===o.length?(a.r1=o[0],a.r2=a.r4=o[1],a.r3=o[2]):(a.r1=o[0],a.r2=o[1],a.r3=o[2],a.r4=o[3]):a.r1=a.r2=a.r3=a.r4=o;var s=[["M "+(e+a.r1)+","+n],["l "+(i-a.r1-a.r2)+",0"],["a "+a.r2+","+a.r2+",0,0,1,"+a.r2+","+a.r2],["l 0,"+(r-a.r2-a.r3)],["a "+a.r3+","+a.r3+",0,0,1,"+-a.r3+","+a.r3],["l "+(a.r3+a.r4-i)+",0"],["a "+a.r4+","+a.r4+",0,0,1,"+-a.r4+","+-a.r4],["l 0,"+(a.r4+a.r1-r)],["a "+a.r1+","+a.r1+",0,0,1,"+a.r1+","+-a.r1],["z"]];return s.join(" ")},e}(f),R=D,_=n("7b46"),z=.3,Y={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},N={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"},X=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["b"])(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(a["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(_["a"])();r&&"firefox"===r.name?t.setAttribute("dominant-baseline",N[n]||"alphabetic"):t.setAttribute("alignment-baseline",Y[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,o=void 0===r?"bottom":r;if(t)if(~t.indexOf("\n")){var a=t.split("\n"),s=a.length-1,c="";Object(p["j"])(a,(function(t,e){0===e?"alphabetic"===o?c+='<tspan x="'+i+'" dy="'+-s+'em">'+t+"</tspan>":"top"===o?c+='<tspan x="'+i+'" dy="0.9em">'+t+"</tspan>":"middle"===o?c+='<tspan x="'+i+'" dy="'+-(s-1)/2+'em">'+t+"</tspan>":"bottom"===o?c+='<tspan x="'+i+'" dy="-'+(s+z)+'em">'+t+"</tspan>":"hanging"===o&&(c+='<tspan x="'+i+'" dy="'+(-(s-1)-z)+'em">'+t+"</tspan>"):c+='<tspan x="'+i+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=c}else e.innerHTML=t;else e.innerHTML=""},e}(f),V=X},6928:function(t,e,n){"use strict";function i(t,e){var n=[],i=t[0],r=t[1],o=t[2],a=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*a+d*l,n[1]=f*r+p*s+d*u,n[2]=f*o+p*c+d*h,n[3]=g*i+v*a+y*l,n[4]=g*r+v*s+y*u,n[5]=g*o+v*c+y*h,n[6]=m*i+b*a+x*l,n[7]=m*r+b*s+x*u,n[8]=m*o+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 o(t){var e=[],n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],c=t[6],l=t[7],u=t[8],h=u*a-s*l,f=-u*o+s*c,p=l*o-a*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*a)*d,e[3]=f*d,e[4]=(u*n-r*c)*d,e[5]=(-s*n+r*o)*d,e[6]=p*d,e[7]=(-l*n+i*c)*d,e[8]=(a*n-i*o)*d,e):null}n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}))},"6bcb":function(t,e,n){"use strict";function i(t){var e=0,n=t.children,i=n&&n.length;if(i)while(--i>=0)e+=n[i].value;else e=1;t.value=e}n.d(e,"c",(function(){return m})),n.d(e,"b",(function(){return w})),n.d(e,"a",(function(){return C}));var r=function(){return this.eachAfter(i)},o=function(t,e){let n=-1;for(const i of this)t.call(e,i,++n,this);return this},a=function(t,e){var n,i,r=this,o=[r],a=-1;while(r=o.pop())if(t.call(e,r,++a,this),n=r.children)for(i=n.length-1;i>=0;--i)o.push(n[i]);return this},s=function(t,e){var n,i,r,o=this,a=[o],s=[],c=-1;while(o=a.pop())if(s.push(o),n=o.children)for(i=0,r=n.length;i<r;++i)a.push(n[i]);while(o=s.pop())t.call(e,o,++c,this);return this},c=function(t,e){let n=-1;for(const i of this)if(t.call(e,i,++n,this))return i},l=function(t){return this.eachAfter((function(e){var n=+t(e.data)||0,i=e.children,r=i&&i.length;while(--r>=0)n+=i[r].value;e.value=n}))},u=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},h=function(t){var e=this,n=f(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 f(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 p=function(){var t=this,e=[t];while(t=t.parent)e.push(t);return e},d=function(){return Array.from(this)},g=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},v=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},y=function*(){var t,e,n,i,r=this,o=[r];do{t=o.reverse(),o=[];while(r=t.pop())if(yield r,e=r.children)for(n=0,i=e.length;n<i;++n)o.push(e[n])}while(o.length)};function m(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=O)):void 0===e&&(e=x);var n,i,r,o,a,s=new C(t),c=[s];while(n=c.pop())if((r=e(n.data))&&(a=(r=Array.from(r)).length))for(n.children=r,o=a-1;o>=0;--o)c.push(i=r[o]=new C(r[o])),i.parent=n,i.depth=n.depth+1;return s.eachBefore(w)}function b(){return m(this).eachBefore(j)}function x(t){return t.children}function O(t){return Array.isArray(t)?t[1]:null}function j(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function w(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function C(t){this.data=t,this.depth=this.height=0,this.parent=null}C.prototype=m.prototype={constructor:C,count:r,each:o,eachAfter:s,eachBefore:a,find:c,sum:l,sort:u,path:h,ancestors:p,descendants:d,leaves:g,links:v,copy:b,[Symbol.iterator]:y}},7011:function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("23b9"),a=n("8937"),s=n("b4aa"),c=n("c34d"),l=n("62e3"),u=n("f45c"),h="ancestor-node",f="value",p="path",d=[p,o["c"],o["b"],o["a"],"name","depth","height"],g=Object(l["c"])({},r["b"].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}}),v=n("9f73"),y=n("f8d7"),m=n("6bcb"),b={field:"value",size:[1,1],round:!1,padding:0,sort:function(t,e){return e.value-t.value},as:["x","y"],ignoreParentValue:!0};function x(t,e){e=Object(a["b"])({},b,e);var n,i=e.as;if(!Object(a["C"])(i)||2!==i.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=Object(o["e"])(e)}catch(u){console.warn(u)}var r=function(t){return y["a"]().size(e.size).round(e.round).padding(e.padding)(m["c"](t).sum((function(t){return Object(a["mb"])(t.children)?e.ignoreParentValue?0:t[n]-Object(a["ib"])(t.children,(function(t,e){return t+e[n]}),0):t[n]})).sort(e.sort))},s=r(t),c=i[0],l=i[1];return s.each((function(t){var e,n;t[c]=[t.x0,t.x1,t.x1,t.x0],t[l]=[t.y1,t.y1,t.y0,t.y0],t.name=t.name||(null===(e=t.data)||void 0===e?void 0:e.name)||(null===(n=t.data)||void 0===n?void 0:n.label),t.data.name=t.name,["x0","x1","y0","y1"].forEach((function(e){-1===i.indexOf(e)&&delete t[e]}))})),Object(o["d"])(s)}var O=n("3736");function j(t){var e=t.data,n=t.colorField,r=t.rawFields,o=t.hierarchyConfig,s=void 0===o?{}:o,c=s.activeDepth,u={partition:x,treemap:O["a"]},f=t.seriesField,d=t.type||"partition",g=u[d](e,Object(i["a"])(Object(i["a"])({field:f||"value"},Object(a["gb"])(s,["activeDepth"])),{type:"hierarchy."+d,as:["x","y"]})),y=[];return g.forEach((function(t){var e,o,a,u,d,g;if(0===t.depth)return null;if(c>0&&t.depth>c)return null;var m=t.data.name,b=Object(i["a"])({},t);while(b.depth>1)m=(null===(o=b.parent.data)||void 0===o?void 0:o.name)+" / "+m,b=b.parent;var x=Object(i["a"])(Object(i["a"])(Object(i["a"])({},Object(l["t"])(t.data,Object(i["d"])(r||[],[s.field]))),(e={},e[p]=m,e[h]=b.data.name,e)),t);f&&(x[f]=t.data[f]||(null===(u=null===(a=t.parent)||void 0===a?void 0:a.data)||void 0===u?void 0:u[f])),n&&(x[n]=t.data[n]||(null===(g=null===(d=t.parent)||void 0===d?void 0:d.data)||void 0===g?void 0:g[n])),x.ext=s,x[v["b"]]={hierarchyConfig:s,colorField:n,rawFields:r},y.push(x)})),y}function w(t){var e,n=t.chart,r=t.options,o=r.color,c=r.colorField,u=void 0===c?h:c,f=r.sunburstStyle,p=r.rawFields,g=void 0===p?[]:p,v=j(r);return n.data(v),f&&(e=function(t){return Object(l["c"])({},{fillOpacity:Math.pow(.85,t.depth)},Object(a["I"])(f)?f(t):f)}),Object(s["f"])(Object(l["c"])({},t,{options:{xField:"x",yField:"y",seriesField:u,rawFields:Object(a["ub"])(Object(i["d"])(d,g)),polygon:{color:o,style:e}}})),t}function C(t){var e=t.chart;return e.axis(!1),t}function M(t){var e=t.chart,n=t.options,r=n.label,o=Object(l["d"])(e,"polygon");if(r){var a=r.fields,s=void 0===a?["name"]:a,c=r.callback,u=Object(i["c"])(r,["fields","callback"]);o.label({fields:s,callback:c,cfg:Object(l["A"])(u)})}else o.label(!1);return t}function S(t){var e=t.chart,n=t.options,i=n.innerRadius,r=n.radius,o=n.reflect,a=e.coordinate({type:"polar",cfg:{innerRadius:i,radius:r}});return o&&a.reflect(o),t}function A(t){var e,n=t.options,i=n.hierarchyConfig,r=n.meta;return Object(l["f"])(Object(c["g"])({},(e={},e[f]=Object(a["s"])(r,Object(a["s"])(i,["field"],"value")),e)))(t)}function k(t){var e=t.chart,n=t.options,r=n.tooltip;if(!1===r)e.tooltip(!1);else{var o=r;Object(a["s"])(r,"fields")||(o=Object(l["c"])({},{customItems:function(t){return t.map((function(t){var n=Object(a["s"])(e.getOptions(),"scales"),r=Object(a["s"])(n,[p,"formatter"],(function(t){return t})),o=Object(a["s"])(n,[f,"formatter"],(function(t){return t}));return Object(i["a"])(Object(i["a"])({},t),{name:r(t.data[p]),value:o(t.data.value)})}))}},o)),e.tooltip(o)}return t}function F(t){var e=t.drilldown,n=t.interactions,r=void 0===n?[]:n;return(null===e||void 0===e?void 0:e.enabled)?Object(l["c"])({},t,{interactions:Object(i["d"])(r,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:j}}])}):t}function E(t){var e=t.chart,n=t.options,i=n.drilldown;return Object(c["c"])({chart:e,options:F(n)}),(null===i||void 0===i?void 0:i.enabled)&&(e.appendPadding=Object(u["a"])(e.appendPadding,Object(a["s"])(i,["breadCrumb","position"]))),t}function T(t){return Object(l["f"])(c["k"],Object(c["f"])("sunburstStyle"),w,C,A,c["d"],S,k,M,E,c["a"],Object(c["b"])())(t)}n("51d4"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sunburst",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return g},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return T},e.SUNBURST_ANCESTOR_FIELD=h,e.SUNBURST_PATH_FIELD=p,e.NODE_ANCESTORS_FIELD=o["b"]}(r["b"])},7156:function(t,e,n){var i=n("1626"),r=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var a,s;return o&&i(a=e.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},"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 o})),n.d(e,"e",(function(){return a})),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 o(t,e,n,i){var r=t-n,o=e-i;return Math.sqrt(r*r+o*o)}function a(t,e,n,i,r,o){return r>=t&&r<=t+n&&o>=e&&o<=e+i}function s(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function c(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function l(t,e){return t[0]===e[0]&&t[1]===e[1]}n.d(e,"i",(function(){return i["K"]})),n.d(e,"k",(function(){return i["Q"]})),n.d(e,"h",(function(){return i["I"]})),n.d(e,"g",(function(){return i["C"]})),n.d(e,"c",(function(){return i["j"]})),n.d(e,"o",(function(){return i["sb"]})),n.d(e,"m",(function(){return i["eb"]})),n.d(e,"n",(function(){return i["kb"]})),n.d(e,"a",(function(){return i["d"]}))},7349:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var i=n("00f9"),r=n("73ec");function o(t,e){e.forEach((function(e){e.draw(t)}))}function a(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var o=n.get("context"),a=t.getParent(),s=a?a.getChildren():[n],c=t.get("el");if("remove"===e){var l=t.get("isClipShape");if(l){var u=c&&c.parentNode,h=u&&u.parentNode;u&&h&&h.removeChild(u)}else c&&c.parentNode&&c.parentNode.removeChild(c)}else if("show"===e)c.setAttribute("visibility","visible");else if("hide"===e)c.setAttribute("visibility","hidden");else if("zIndex"===e)Object(r["c"])(c,s.indexOf(t));else if("sort"===e){var f=t.get("children");f&&f.length&&Object(r["d"])(t,(function(t,e){return f.indexOf(t)-f.indexOf(e)?1:0}))}else"clear"===e?c&&(c.innerHTML=""):"matrix"===e?Object(i["c"])(t):"clip"===e?Object(i["a"])(t,o):"attr"===e||"add"===e&&t.draw(o)}}},"73ec":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return c}));var i=n("8937"),r=n("22f9");function o(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function a(t){var e=r["a"][t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var i=o(e);if(t.get("id")&&(i.id=t.get("id")),t.set("el",i),t.set("attrs",{}),n){var a=n.get("el");a||(a=n.createDom(),n.set("el",a)),a.appendChild(i)}return i}function s(t,e){var n=t.get("el"),r=Object(i["rb"])(n.children).sort(e),o=document.createDocumentFragment();r.forEach((function(t){o.appendChild(t)})),n.appendChild(o)}function c(t,e){var n=t.parentNode,i=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),r=i[e],o=i.indexOf(t);if(r){if(o>e)n.insertBefore(t,r);else if(o<e){var a=i[e+1];a?n.insertBefore(t,a):n.appendChild(t)}}else n.appendChild(t)}},"74f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var i,r,o=0,a=0,s=0,c=1e3,l=0,u=0,h=0,f="object"===typeof performance&&performance.now?performance:Date,p="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function d(){return u||(p(g),u=f.now()+h)}function g(){u=0}function v(){this._call=this._time=this._next=null}function y(t,e,n){var i=new v;return i.restart(t,e,n),i}function m(){d(),++o;var t,e=i;while(e)(t=u-e._time)>=0&&e._call.call(null,t),e=e._next;--o}function b(){u=(l=f.now())+h,o=a=0;try{m()}finally{o=0,O(),u=0}}function x(){var t=f.now(),e=t-l;e>c&&(h-=e,l=t)}function O(){var t,e,n=i,o=1/0;while(n)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:i=e);r=t,j(o)}function j(t){if(!o){a&&(a=clearTimeout(a));var e=t-u;e>24?(t<1/0&&(a=setTimeout(b,t-f.now()-h)),s&&(s=clearInterval(s))):(s||(l=f.now(),s=setInterval(x,c)),o=1,p(b))}}v.prototype=y.prototype={constructor:v,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||r===this||(r?r._next=this:i=this,r=this),this._call=t,this._time=n,j()},stop:function(){this._call&&(this._call=null,this._time=1/0,j())}}},"75ed":function(t,e,n){"use strict";var i=n("2c79"),r=n("7c8a"),o=n("8937"),a=n("e546"),s=n("3665"),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{container:null,containerTpl:"<div></div>",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(a["b"])(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");Object(a["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(o["K"])(t)){t=this.createDom();var e=this.get("parent");Object(o["Q"])(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.set("container",t)}else Object(o["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(o["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(a["h"])(e,n)){var i=t[n];Object(r["e"])(e,i)}}},e.prototype.applyChildrenStyles=function(t,e){Object(o["j"])(e,(function(e,n){var i=t.getElementsByClassName(n);Object(o["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(o["y"])(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(s["a"]);e["a"]=c},"787a":function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("8937"),a=n("28c6"),s=n("c34d"),c=n("87d0"),l=n("62e3"),u=n("f45c"),h=n("9f73"),f=n("3736");function p(t,e){if(Object(o["C"])(t))return t.find((function(t){return t.type===e}))}function d(t,e){var n=p(t,e);return n&&!1!==n.enable}function g(t){var e=t.interactions,n=t.drilldown;return Object(o["s"])(n,"enabled")||d(e,"treemap-drill-down")}function v(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 y(t){var e=t.data,n=t.colorField,r=t.enableDrillDown,a=t.hierarchyConfig,s=Object(f["a"])(e,Object(i["a"])(Object(i["a"])({},a),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),c=[];return s.forEach((function(t){if(0===t.depth)return null;if(r&&1!==t.depth)return null;if(!r&&t.children)return null;var s=t.ancestors().map((function(t){return{data:t.data,height:t.height,value:t.value}})),l=r&&Object(o["C"])(e.path)?s.concat(e.path.slice(1)):s,u=Object.assign({},t.data,Object(i["a"])({x:t.x,y:t.y,depth:t.depth,value:t.value,path:l},t));if(!t.data[n]&&t.parent){var f=t.ancestors().find((function(t){return t.data[n]}));u[n]=null===f||void 0===f?void 0:f.data[n]}else u[n]=t.data[n];u[h["b"]]={hierarchyConfig:a,colorField:n,enableDrillDown:r},c.push(u)})),c}function m(t){var e=t.options,n=e.colorField;return Object(l["c"])({options:{rawFields:["value"],tooltip:{fields:["name","value",n,"path"],formatter:function(t){return{name:t.name,value:t.value}}}}},t)}function b(t){var e=t.chart,n=t.options,i=n.color,r=n.colorField,o=n.rectStyle,s=n.hierarchyConfig,c=n.rawFields,u=y({data:n.data,colorField:n.colorField,enableDrillDown:g(n),hierarchyConfig:s});return e.data(u),Object(a["a"])(Object(l["c"])({},t,{options:{xField:"x",yField:"y",seriesField:r,rawFields:c,polygon:{color:i,style:o}}})),e.coordinate().reflect("y"),t}function x(t){var e=t.chart;return e.axis(!1),t}function O(t){var e=t.drilldown,n=t.interactions,r=void 0===n?[]:n,o=g(t);return o?Object(l["c"])({},t,{interactions:Object(i["d"])(r,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:y}}])}):t}function j(t){var e=t.chart,n=t.options,i=n.interactions,r=n.drilldown;Object(s["c"])({chart:e,options:O(n)});var a=p(i,"view-zoom");a&&(!1!==a.enable?e.getCanvas().on("mousewheel",(function(t){t.preventDefault()})):e.getCanvas().off("mousewheel"));var c=g(n);return c&&(e.appendPadding=Object(u["a"])(e.appendPadding,Object(o["s"])(r,["breadCrumb","position"]))),t}function w(t){return Object(l["f"])(m,s["k"],Object(c["a"])("rectStyle"),b,x,s["d"],s["l"],j,s["a"],Object(s["b"])())(t)}var C={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"}}}};n("c88a"),n("51d4"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return C},e.prototype.changeData=function(t){var e=this.options,n=e.colorField,i=e.interactions,r=e.hierarchyConfig;this.updateOption({data:t});var o=y({data:t,colorField:n,enableDrillDown:d(i,"treemap-drill-down"),hierarchyConfig:r});this.chart.changeData(o),v(this.chart)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return w}}(r["b"])},"7b42":function(t,e,n){"use strict";var i;n.d(e,"d",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"e",(function(){return s})),n.d(e,"f",(function(){return c})),n.d(e,"g",(function(){return l})),n.d(e,"a",(function(){return u}));var r="$$percentage$$",o="$$mappingValue$$",a="$$conversion$$",s="$$totalPercentage$$",c="$$x$$",l="$$y$$",u={appendPadding:[0,80],minSize:0,maxSize:1,meta:(i={},i[o]={min:0,max:1,nice:!1},i),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)"}}}},"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,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},r=function(){function t(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"}return t}(),o=function(){function e(e){this.version=e,this.type="node",this.name="node",this.os=t.platform}return e}(),a=function(){function t(t,e,n,i){this.name=t,this.version=e,this.os=n,this.bot=i,this.type="bot-device"}return t}(),s=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),c=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),l=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,u=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,h=3,f=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",l]],p=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(t){return t?v(t):"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product?new c:"undefined"!==typeof navigator?v(navigator.userAgent):m()}function g(t){return""!==t&&f.reduce((function(e,n){var i=n[0],r=n[1];if(e)return e;var o=r.exec(t);return!!o&&[i,o]}),!1)}function v(t){var e=g(t);if(!e)return null;var n=e[0],o=e[1];if("searchbot"===n)return new s;var c=o[1]&&o[1].split(".").join("_").split("_").slice(0,3);c?c.length<h&&(c=i(i([],c,!0),b(h-c.length),!0)):c=[];var l=c.join("."),f=y(t),p=u.exec(t);return p&&p[1]?new a(n,l,f,p[1]):new r(n,l,f)}function y(t){for(var e=0,n=p.length;e<n;e++){var i=p[e],r=i[0],o=i[1],a=o.exec(t);if(a)return r}return null}function m(){var e="undefined"!==typeof t&&t.version;return e?new o(t.version.slice(1)):null}function b(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}}).call(this,n("4362"))},"7c50":function(t,e,n){"use strict";n.d(e,"a",(function(){return S}));var i=n("2c79"),r=n("8937"),o=n("31e6"),a={opacity:0},s={stroke:"#C5C5C5",strokeOpacity:.85},c={fill:"#CACED4",opacity:.85},l=n("2ef1"),u=n("f2fb");function h(t){return Object(r["W"])(t,(function(t,e){var n=0===e?"M":"L",i=t[0],r=t[1];return[n,i,r]}))}function f(t){return h(t)}function p(t){if(t.length<=2)return f(t);var e=[];Object(r["j"])(t,(function(t){Object(r["H"])(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=Object(l["a"])(e,!1),i=Object(r["z"])(t),o=i[0],a=i[1];return n.unshift(["M",o,a]),n}function d(t,e,n,i){void 0===i&&(i=!0);var o=new u["b"]({values:t}),a=new u["a"]({values:Object(r["W"])(t,(function(t,e){return e}))}),s=Object(r["W"])(t,(function(t,i){return[a.scale(i)*e,n-o.scale(t)*n]}));return i?p(s):f(s)}function g(t,e){var n=new u["b"]({values:t}),i=Math.max(0,n.min);return e-n.scale(i)*e}function v(t,e,n,r){var o=Object(i["d"])(t),a=g(r,n);return o.push(["L",e,a]),o.push(["L",0,a]),o.push(["Z"]),o}var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:a,lineStyle:s,areaStyle:c})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,o=e.data,a=e.smooth,s=e.isArea,c=e.backgroundStyle,l=e.lineStyle,u=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(i["a"])({x:0,y:0,width:n,height:r},c)});var h=d(o,n,r,a);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:Object(i["a"])({path:h},l)}),s){var f=v(h,n,r,o);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:Object(i["a"])({path:f},u)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(o["a"]),m={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"handler",x:0,y:0,width:10,height:24,style:m})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,i=e.height,r=e.style,o=r.fill,a=r.stroke,s=r.radius,c=r.opacity,l=r.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:i,fill:o,stroke:a,radius:s,opacity:c,cursor:l}});var u=1/3*n,h=2/3*n,f=1/4*i,p=3/4*i;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:u,y1:f,x2:u,y2:p,stroke:a,cursor:l}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:h,y1:f,x2:h,y2:p,stroke:a,cursor:l}})},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.bindEvents=function(){var t=this;this.get("group").on("mouseenter",(function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()})),this.get("group").on("mouseleave",(function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()}))},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(o["a"]),x={fill:"#416180",opacity:.05},O={fill:"#5B8FF9",opacity:.15,cursor:"move"},j=10,w={width:j,height:24},C={textBaseline:"middle",fill:"#000",opacity:.45},M="sliderchange",S=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){return function(n){e.currentTarget=t;var i=n.originalEvent;i.stopPropagation(),i.preventDefault(),e.prevX=Object(r["s"])(i,"touches.0.pageX",i.pageX),e.prevY=Object(r["s"])(i,"touches.0.pageY",i.pageY);var o=e.getContainerDOM();o.addEventListener("mousemove",e.onMouseMove),o.addEventListener("mouseup",e.onMouseUp),o.addEventListener("mouseleave",e.onMouseUp),o.addEventListener("touchmove",e.onMouseMove),o.addEventListener("touchend",e.onMouseUp),o.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var n=e.cfg.width,i=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var o=Object(r["s"])(t,"touches.0.pageX",t.pageX),a=Object(r["s"])(t,"touches.0.pageY",t.pageY),s=o-e.prevX,c=e.adjustOffsetRange(s/n);e.updateStartEnd(c),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=o,e.prevY=a,e.draw(),e.emit(M,[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:i,value:[e.get("start"),e.get("end")]})},e.onMouseUp=function(){e.currentTarget&&(e.currentTarget=void 0);var t=e.getContainerDOM();t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))},e}return Object(i["b"])(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.get("start"),i=this.get("end"),o=Object(r["c"])(n,t,e),a=Object(r["c"])(i,t,e);this.get("isInit")||n===o&&i===a||this.setValue([o,a])},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange();if(Object(r["C"])(t)&&2===t.length){var n=[this.get("start"),this.get("end")];this.update({start:Object(r["c"])(t[0],e.min,e.max),end:Object(r["c"])(t[1],e.min,e.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:x,foregroundStyle:O,handlerStyle:w,textStyle:C}})},e.prototype.update=function(e){var n=e.start,o=e.end,a=Object(i["a"])({},e);Object(r["K"])(n)||(a.start=Object(r["c"])(n,0,1)),Object(r["K"])(o)||(a.end=Object(r["c"])(o,0,1)),t.prototype.update.call(this,a),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},e.prototype.init=function(){this.set("start",Object(r["c"])(this.get("start"),0,1)),this.set("end",Object(r["c"])(this.get("end"),0,1)),t.prototype.init.call(this)},e.prototype.render=function(){t.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},e.prototype.renderInner=function(t){var e=this.cfg,n=(e.start,e.end,e.width),o=e.height,a=e.trendCfg,s=void 0===a?{}:a,c=e.minText,l=e.maxText,u=e.backgroundStyle,h=void 0===u?{}:u,f=e.foregroundStyle,p=void 0===f?{}:f,d=e.textStyle,g=void 0===d?{}:d,v=Object(r["h"])({},m,this.cfg.handlerStyle);Object(r["mb"])(Object(r["s"])(s,"data"))&&(this.trend=this.addComponent(t,Object(i["a"])({component:y,id:this.getElementId("trend"),x:0,y:0,width:n,height:o},s))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(i["a"])({x:0,y:0,width:n,height:o},h)});this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:Object(i["a"])({y:o/2,textAlign:"right",text:c,silent:!1},g)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:Object(i["a"])({y:o/2,textAlign:"left",text:l,silent:!1},g)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:Object(i["a"])({y:0,height:o},p)});var x=Object(r["s"])(v,"width",j),O=Object(r["s"])(v,"height",24);this.minHandler=this.addComponent(t,{component:b,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(o-O)/2,width:x,height:O,cursor:"ew-resize",style:v}),this.maxHandler=this.addComponent(t,{component:b,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(o-O)/2,width:x,height:O,cursor:"ew-resize",style:v})},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.updateUI=function(t,e,n){var i=this.cfg,o=i.start,a=i.end,s=i.width,c=i.minText,l=i.maxText,u=i.handlerStyle,h=i.height,f=o*s,p=a*s;this.trend&&(this.trend.update({width:s,height:h}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",f),t.attr("width",p-f);var d=Object(r["s"])(u,"width",j);e.attr("text",c),n.attr("text",l);var g=this._dodgeText([f,p],e,n),v=g[0],y=g[1];this.minHandler&&(this.minHandler.update({x:f-d/2}),this.get("updateAutoRender")||this.minHandler.render()),Object(r["j"])(v,(function(t,n){return e.attr(n,t)})),this.maxHandler&&(this.maxHandler.update({x:p-d/2}),this.get("updateAutoRender")||this.maxHandler.render()),Object(r["j"])(y,(function(t,e){return n.attr(e,t)}))},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var e=t.findById(this.getElementId("foreground"));e.on("mousedown",this.onMouseDown("foreground")),e.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var e=this.cfg,n=e.start,i=e.end;switch(this.currentTarget){case"minHandler":var r=0-n,o=1-n;return Math.min(o,Math.max(r,t));case"maxHandler":r=0-i,o=1-i;return Math.min(o,Math.max(r,t));case"foreground":r=0-n,o=1-i;return Math.min(o,Math.max(r,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,n=e.start,i=e.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":i+=t;break;case"foreground":n+=t,i+=t;break}this.set("start",n),this.set("end",i)},e.prototype._dodgeText=function(t,e,n){var i,o,a=this.cfg,s=a.handlerStyle,c=a.width,l=2,u=Object(r["s"])(s,"width",j),h=t[0],f=t[1],p=!1;h>f&&(i=[f,h],h=i[0],f=i[1],o=[n,e],e=o[0],n=o[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}(o["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,o,a,s;function c(){r=document.createElement("table"),o=document.createElement("tr"),a=/^\s*<(\w+|!)[^>]*>/,s={tr:document.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:o,th:o,"*":document.createElement("div")}}function l(t){r||c();var e=a.test(t)&&RegExp.$1;e&&e in s||(e="*");var n=s[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var i=n.childNodes[0];return 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,o=parseFloat(u(t,"paddingBottom"))||0,a=parseFloat(u(t,"borderBottomWidth"))||0,s=parseFloat(u(t,"marginTop"))||0,c=parseFloat(u(t,"marginBottom"))||0;return n+i+a+r+o+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,o=parseFloat(u(t,"paddingRight"))||0,a=parseFloat(u(t,"borderRightWidth"))||0,s=parseFloat(u(t,"marginRight"))||0,c=parseFloat(u(t,"marginLeft"))||0;return n+i+a+r+o+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 Y})),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 T})),n.d(r,"equidistance",(function(){return P})),n.d(r,"equidistanceWithReverseBoth",(function(){return I}));var o={};n.r(o),n.d(o,"getDefault",(function(){return D})),n.d(o,"fixedAngle",(function(){return R})),n.d(o,"unfixedAngle",(function(){return _}));var a={};n.r(a),n.d(a,"autoHide",(function(){return r})),n.d(a,"autoRotate",(function(){return o})),n.d(a,"autoEllipsis",(function(){return i}));var s=n("2c79"),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["b"])(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"}},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,o=i.length,a=1,s=t.length;return s>=2&&(a=t[1].value-t[0].value),Object(l["j"])(t,(function(t){var i=t.point;r||(i=e.getTickPoint(t.value-a/2));var s=e.getSidePoint(i,o);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 o=0;o<r-1;o++)for(var a=t[o],s=t[o+1],c=0;c<i;c++){var l=(c+1)/(i+1),u=(1-l)*a.tickValue+l*s.tickValue,h=this.getTickPoint(u),f=this.getSidePoint(h,n.length);e.push({startPoint:h,endPoint:f,tickValue:u,id:"sub-"+a.id+"-"+c})}return e},e.prototype.getTickLineAttrs=function(t,e,n,i){var r=this.get(e).style,o={points:[t.startPoint,t.endPoint]},a=Object(l["s"])(this.get("theme"),["tickLine","style"],{});r=Object(l["I"])(r)?Object(l["db"])({},a,r(o,n,i)):r;var c=t.startPoint,u=t.endPoint;return Object(s["a"])({x1:c.x,y1:c.y,x2:u.x,y2:u.y},r)},e.prototype.drawTick=function(t,e,n,i,r){this.addShape(e,{type:"line",id:this.getElementId(t.id),name:"axis-"+n,attrs:this.getTickLineAttrs(t,n,i,r)})},e.prototype.drawTickLines=function(t){var e=this,n=this.get("ticks"),i=this.get("subTickLine"),r=this.getTickLineItems(n),o=this.addGroup(t,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),a=this.get("tickLine");if(Object(l["j"])(r,(function(n,i){if(a.displayWithLabel){var s=e.getElementId("label-"+n.tickId);t.findById(s)&&e.drawTick(n,o,"tickLine",i,r)}else e.drawTick(n,o,"tickLine",i,r)})),i){var s=this.getSubTickLineItems(r);Object(l["j"])(s,(function(t,n){e.drawTick(t,o,"subTickLine",n,s)}))}},e.prototype.processTicks=function(){var t=this,e=this.get("ticks");Object(l["j"])(e,(function(e){e.point=t.getTickPoint(e.value),Object(l["K"])(e.id)&&(e.id=e.name)}))},e.prototype.drawTicks=function(t){var e=this;this.optimizeTicks(),this.processTicks(),this.get("label")&&this.drawLabels(t),this.get("tickLine")&&this.drawTickLines(t);var n=this.get("ticks");Object(l["j"])(n,(function(n){e.applyTickStates(n,t)}))},e.prototype.optimizeTicks=function(){var t=this.get("optimize"),e=this.get("ticks");if(t&&t.enable&&t.threshold>0){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,o=i.offsetX,a=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+o,y:u.y+a,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(),o=Object(l["s"])(this.get("theme"),["label","style"],{}),a=this.get("label"),s=a.style,c=a.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"])({},o,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,o=void 0===r?0:r,a=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||o+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)&&a){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){this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:this.getTitleAttrs()})},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),o=e.findById(r);if(o){var a=Object(f["a"])(t,"label",i);a&&o.attr(a)}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),o=this.get("tickLine"),a=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(r){var s=Object(f["a"])(t,"label",n);s&&r.attr(s)}if(a){var c=Object(f["a"])(t,"tickLine",n);c&&a.attr(c)}}else r&&r.attr(i.style),a&&a.attr(o.style)},e}(u["a"]),g=d,v=n("060b");function y(t,e,n,i){var r=e.getChildren(),o=!1;return Object(l["j"])(r,(function(e){var r=Object(v["a"])(t,e,n,i);o=o||r})),o}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,o=C(e),a=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(o));r=Object(j["i"])(c,0,Math.PI/180)?s.width+i>a:s.height/c+i>a}else{c=Math.abs(Math.sin(o));r=Object(j["i"])(c,0,Math.PI/180)?s.width+i>a:s.height/c+i>a}return r}function S(t,e,n,i){var r=(null===i||void 0===i?void 0:i.minGap)||0,o=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!o.length)return!1;var a=!1;n&&o.reverse();for(var s=o.length,c=o[0],l=c,u=1;u<s;u++){var h=o[u],f=(h.getBBox(),M(t,l,h,r));f?(h.hide(),a=!0):l=h}return a}function A(t,e,n){var i=(null===n||void 0===n?void 0:n.minGap)||0,r=e.getChildren().slice();if(r.length<2)return!1;var o=!1,a=r[0],s=a.getBBox(),c=r[1],l=r.length,u=C(a),h=t?Math.abs(c.attr("y")-a.attr("y")):Math.abs(c.attr("x")-a.attr("x")),f=0;if(t){var p=Math.abs(Math.cos(u));if(Object(j["i"])(p,0,Math.PI/180)){var d=Object(v["b"])(r);f=(d+i)/h}else f=(s.height/p+i)/h}else{p=Math.abs(Math.sin(u));if(Object(j["i"])(p,0,Math.PI/180)){d=Object(v["b"])(r);f=(d+i)/h}else f=(s.height/p+i)/h}if(f>1){f=Math.ceil(f);for(var g=0;g<l;g++)g%f!==0&&(r[g].hide(),o=!0)}return o}function k(){return P}function F(t,e,n,i){return S(t,e,!1,i)}function E(t,e,n,i){return S(t,e,!0,i)}function T(t,e,n,i){var r=(null===i||void 0===i?void 0:i.minGap)||0,o=e.getChildren().slice();if(o.length<=2)return!1;for(var a=!1,s=o.length,c=o[0],l=o[s-1],u=c,h=1;h<s-1;h++){var f=o[h],p=(f.getBBox(),M(t,u,f,r));p?(f.hide(),a=!0):u=f}var d=M(t,u,l,r);return d&&(u.hide(),a=!0),a}function P(t,e,n,i){var r=A(t,e,i);return S(t,e,!1)&&(r=!0),r}function I(t,e,n,i){var r=e.getChildren().slice(),o=A(t,e,i);if(r.length>2){var a=r[0],s=r[r.length-1];a.get("visible")||(a.show(),S(t,e,!1,i)&&(o=!0)),s.get("visible")||(s.show(),S(t,e,!0,i)&&(o=!0))}return o}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 o=Object(v["b"])(r),a=!1;if(t)a=!!n&&o>n;else{var s=Math.abs(r[1].attr("x")-r[0].attr("x"));a=o>s}if(a){var c=i(n,o);B(r,c)}return a}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 _(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 z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["b"])(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),o=Math.min(e.y,n.y,i.y),a=Math.max(e.x,n.x,i.maxX),s=Math.max(e.y,n.y,i.maxY);return{x:r,y:o,minX:r,minY:o,maxX:a,maxY:s,width:a-r,height:s-o}},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,o=i.y-n.y;return{x:n.x+r*t,y:n.y+o*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"),o=this.get("title"),a=this.get("verticalLimitLength"),s=r.offset,c=a,u=0,h=0;o&&(u=o.style.fontSize,h=o.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)})),o&&Object(l["K"])(o.offset)){var p=t.getCanvasBBox(),d=n?p.width:p.height;o.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,o=this.isVertical(),s=!1,c=a[t];if(!0===e){this.get("label");s=c.getDefault()(o,n,i)}else if(Object(l["I"])(e))s=e(o,n,i);else if(Object(l["O"])(e)){var u=e;c[u.type]&&(s=c[u.type](o,n,i,u.cfg))}else c[e]&&(s=c[e](o,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),Y=z,N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["b"])(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,o=this.get("startAngle"),a=this.get("endAngle"),s=[];if(Math.abs(a-o)===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(o),l=this.getCirclePoint(a),u=Math.abs(a-o)>Math.PI?1:0,h=o>a?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"),o=c["c"].length(i);return c["c"].scale(i,i,r*t/o),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"),o=n.offset,a=r,s=0,c=0;i&&(s=i.style.fontSize,c=i.spacing),a&&(a=a-o-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,a)})),i&&Object(l["K"])(i.offset)){var h=t.getCanvasBBox().height;i.offset=o+h+c+s/2}},e.prototype.autoProcessOverlap=function(t,e,n,i){var r=this,o=!1,s=a[t];if(i>0)if(!0===e)o=s.getDefault()(!1,n,i);else if(Object(l["I"])(e))o=e(!1,n,i);else if(Object(l["O"])(e)){var c=e;s[c.type]&&(o=s[c.type](!1,n,i,c.cfg))}else s[e]&&(o=s[e](!1,n,i));if("autoRotate"===t){if(o){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=N},"7dfe":function(t,e){},"7eff":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("8937");function r(t,e,n){if(1===n)return[0,e];var i=Math.floor(t/e);return[e*i,e*(i+1)]}function o(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function a(t,e,n,a,s){var c=Object(i["e"])(t);Object(i["ob"])(c,e);var l=Object(i["yb"])(c,e),u=Object(i["u"])(l),h=u.max-u.min,f=n;if(!n&&a&&(f=a>1?h/(a-1):u.max),!n&&!a){var p=o(l);f=h/p}var d={},g=Object(i["w"])(c,s);Object(i["G"])(g)?Object(i["j"])(c,(function(t){var n=t[e],o=r(n,f,a),s=o[0]+"-"+o[1];Object(i["y"])(d,s)||(d[s]={range:o,count:0}),d[s].count+=1})):Object.keys(g).forEach((function(t){Object(i["j"])(g[t],(function(n){var o=n[e],c=r(o,f,a),l=c[0]+"-"+c[1],u=l+"-"+t;Object(i["y"])(d,u)||(d[u]={range:c,count:0},d[u][s]=t),d[u].count+=1}))}));var v=[];return Object(i["j"])(d,(function(t){v.push(t)})),v}},"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),this},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this._events[t]||[],a=this._events[i]||[],s=function(i){for(var r=i.length,o=0;o<r;o++)if(i[o]){var a=i[o],s=a.callback,c=a.once;c&&(i.splice(o,1),0===i.length&&delete e._events[t],r--,o--),s.apply(e,n)}};s(o),s(a)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],i=n.length,r=0;r<i;r++)n[r].callback===e&&(n.splice(r,1),i--,r--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();e["a"]=r},"849a":function(t,e,n){"use strict";n.d(e,"d",(function(){return u})),n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return p})),n.d(e,"a",(function(){return v}));var i=n("5809"),r=n("8937"),o=n("c34d"),a=n("62e3"),s=n("b4aa"),c=n("0f20");function l(t){var e=t.chart,n=t.options,r=n.data,o=n.color,c=n.lineStyle,l=n.lineShape,u=n.point,h=n.area,f=n.seriesField,p=null===u||void 0===u?void 0:u.state;e.data(r);var d=Object(a["c"])({},t,{options:{shapeField:f,line:{color:o,style:c,shape:l},point:u&&Object(i["a"])({color:o,shape:"circle"},u),area:h&&Object(i["a"])({color:o},h),label:void 0}}),g=Object(a["c"])({},d,{options:{tooltip:!1,state:p}}),v=Object(a["c"])({},d,{options:{tooltip:!1,state:p}});return Object(s["d"])(d),Object(s["e"])(g),Object(s["a"])(v),t}function u(t){var e,n,i=t.options,r=i.xAxis,s=i.yAxis,l=i.xField,u=i.yField,h=i.data;return Object(a["f"])(Object(o["g"])((e={},e[l]=r,e[u]=s,e),(n={},n[l]={type:"cat"},n[u]=Object(c["a"])(h,u),n)))(t)}function h(t){var e=t.chart,n=t.options,i=n.reflect;if(i){var o=i;Object(r["C"])(o)||(o=[o]);var a=o.map((function(t){return["reflect",t]}));e.coordinate({type:"rect",actions:a})}return t}function f(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return!1===i?e.axis(o,!1):e.axis(o,i),!1===r?e.axis(a,!1):e.axis(a,r),t}function p(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 d(t){var e=t.chart,n=t.options,r=n.label,o=n.yField,s=Object(a["d"])(e,"line");if(r){var c=r.callback,l=Object(i["c"])(r,["callback"]);s.label({fields:[o],callback:c,cfg:Object(i["a"])({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Object(a["A"])(l))})}else s.label(!1);return t}function g(t){var e=t.chart,n=t.options,i=n.isStack;return i&&Object(r["j"])(e.geometries,(function(t){t.adjust("stack")})),t}function v(t){return Object(a["f"])(l,u,g,o["k"],h,f,p,o["l"],d,o["i"],o["c"],o["a"],Object(o["b"])(),o["e"])(t)}},8582:function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return h}));var i=n("c34d"),r=n("62e3"),o=n("b4aa"),a=n("edcb"),s=n("9457"),c=n("0f20");function l(t){var e=t.chart,n=t.options,i=n.data,c=n.color,l=n.areaStyle,u=n.point,h=n.line,f=null===u||void 0===u?void 0:u.state,p=Object(s["a"])(i);e.data(p);var d=Object(r["c"])({},t,{options:{xField:a["c"],yField:a["d"],area:{color:c,style:l},line:h,point:u}}),g=Object(r["c"])({},d,{options:{tooltip:!1}}),v=Object(r["c"])({},d,{options:{tooltip:!1,state:f}});return Object(o["a"])(d),Object(o["d"])(g),Object(o["e"])(v),e.axis(!1),e.legend(!1),t}function u(t){var e,n,o=t.options,l=o.xAxis,u=o.yAxis,h=o.data,f=Object(s["a"])(h);return Object(r["f"])(Object(i["g"])((e={},e[a["c"]]=l,e[a["d"]]=u,e),(n={},n[a["c"]]={type:"cat"},n[a["d"]]=Object(c["a"])(f,a["d"]),n)))(t)}function h(t){return Object(r["f"])(Object(i["f"])("areaStyle"),l,u,i["l"],i["k"],i["a"],Object(i["b"])())(t)}},"878f":function(t,e){},"87d0":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("5809"),r=n("917c"),o=n("8937"),a=n("db3c"),s=n("62e3");function c(t){var e=this;return function(n){var c,l=n.options,u=n.chart,h=l.pattern;if(!h)return n;var f=function(n){for(var c,f,p,d=[],g=1;g<arguments.length;g++)d[g-1]=arguments[g];var v=u.getTheme().defaultColor,y=v,m=null===(f=null===(c=u.geometries)||void 0===c?void 0:c[0])||void 0===f?void 0:f.getAttribute("color");if(m){var b=m.getFields()[0],x=Object(o["s"])(n,b);y=r["h"].getMappingValue(m,x,(null===(p=m.values)||void 0===p?void 0:p[0])||v)}var O=h;"function"===typeof h&&(O=h.call(e,n,y)),O instanceof CanvasPattern===!1&&(O=Object(a["a"])(Object(s["c"])({},{cfg:{backgroundColor:y}},O)));var j=l[t];return Object(i["a"])(Object(i["a"])({},"function"===typeof j?j.call.apply(j,Object(i["d"])([e,n],d)):j||{}),{fill:O||y})};return Object(s["c"])({},n,{options:(c={},c[t]=f,c)})}}},"888a":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return s}));var i=n("8937"),r=n("62e3");function o(t,e){var n=null;return Object(i["j"])(t,(function(t){"number"===typeof t[e]&&(n+=t[e])})),n}function a(t,e){var n;switch(t){case"inner":return n="-30%",Object(i["Q"])(e)&&e.endsWith("%")?.01*parseFloat(e)>0?n:e:e<0?e:n;case"outer":return n=12,Object(i["Q"])(e)&&e.endsWith("%")?.01*parseFloat(e)<0?n:e:e>0?e:n;default:return e}}function s(t,e){return Object(i["k"])(Object(r["u"])(t,e),(function(t){return 0===t[e]}))}},8937:function(t,e,n){"use strict";n.d(e,"f",(function(){return a})),n.d(e,"A",(function(){return a})),n.d(e,"i",(function(){return u})),n.d(e,"m",(function(){return E})),n.d(e,"n",(function(){return P})),n.d(e,"o",(function(){return B})),n.d(e,"q",(function(){return D})),n.d(e,"u",(function(){return Y})),n.d(e,"ib",(function(){return W})),n.d(e,"jb",(function(){return K})),n.d(e,"ob",(function(){return Q})),n.d(e,"ub",(function(){return $})),n.d(e,"yb",(function(){return J})),n.d(e,"z",(function(){return tt})),n.d(e,"U",(function(){return et})),n.d(e,"l",(function(){return c})),n.d(e,"k",(function(){return it})),n.d(e,"nb",(function(){return ot})),n.d(e,"v",(function(){return ut})),n.d(e,"w",(function(){return ct})),n.d(e,"x",(function(){return lt})),n.d(e,"c",(function(){return ft})),n.d(e,"p",(function(){return dt})),n.d(e,"N",(function(){return mt})),n.d(e,"Y",(function(){return R})),n.d(e,"Z",(function(){return bt})),n.d(e,"bb",(function(){return _})),n.d(e,"cb",(function(){return xt})),n.d(e,"eb",(function(){return jt})),n.d(e,"sb",(function(){return Mt})),n.d(e,"r",(function(){return St})),n.d(e,"y",(function(){return kt})),n.d(e,"T",(function(){return j})),n.d(e,"J",(function(){return C})),n.d(e,"xb",(function(){return Et})),n.d(e,"V",(function(){return It})),n.d(e,"pb",(function(){return Lt})),n.d(e,"wb",(function(){return Rt})),n.d(e,"C",(function(){return y})),n.d(e,"D",(function(){return Gt})),n.d(e,"E",(function(){return Vt})),n.d(e,"I",(function(){return d})),n.d(e,"K",(function(){return v})),n.d(e,"L",(function(){return Wt})),n.d(e,"M",(function(){return vt})),n.d(e,"O",(function(){return m})),n.d(e,"P",(function(){return k})),n.d(e,"Q",(function(){return U})),n.d(e,"R",(function(){return p})),n.d(e,"S",(function(){return Qt})),n.d(e,"F",(function(){return Jt})),n.d(e,"kb",(function(){return te})),n.d(e,"d",(function(){return ee})),n.d(e,"e",(function(){return oe})),n.d(e,"g",(function(){return se})),n.d(e,"ab",(function(){return ce})),n.d(e,"h",(function(){return fe})),n.d(e,"j",(function(){return x})),n.d(e,"B",(function(){return de})),n.d(e,"G",(function(){return ye})),n.d(e,"H",(function(){return be})),n.d(e,"W",(function(){return Oe})),n.d(e,"X",(function(){return we})),n.d(e,"db",(function(){return ie})),n.d(e,"b",(function(){return ie})),n.d(e,"s",(function(){return Ce})),n.d(e,"lb",(function(){return Me})),n.d(e,"hb",(function(){return Ae})),n.d(e,"gb",(function(){return ke})),n.d(e,"qb",(function(){return Fe})),n.d(e,"rb",(function(){return Ee})),n.d(e,"tb",(function(){return Tt})),n.d(e,"vb",(function(){return Pe})),n.d(e,"fb",(function(){return Ie})),n.d(e,"mb",(function(){return Be})),n.d(e,"t",(function(){return _e})),n.d(e,"a",(function(){return Ye}));var i=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)},r=i,o=function(t,e){return!!r(t)&&t.indexOf(e)>-1},a=o,s=function(t,e){if(!r(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];e(o,i)&&n.push(o)}return n},c=s,l=function(t,e){return void 0===e&&(e=[]),c(t,(function(t){return!a(e,t)}))},u=l,h={}.toString,f=function(t,e){return h.call(t)==="[object "+e+"]"},p=f,d=function(t){return p(t,"Function")},g=function(t){return null===t||void 0===t},v=g,y=function(t){return Array.isArray?Array.isArray(t):p(t,"Array")},m=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e};function b(t,e){var n;if(t)if(y(t)){for(var i=0,r=t.length;i<r;i++)if(n=e(t[i],i),!1===n)break}else if(m(t))for(var o in t)if(t.hasOwnProperty(o)&&(n=e(t[o],o),!1===n))break}var x=b,O=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return x(t,(function(n,i){d(t)&&"prototype"===i||e.push(i)})),e},j=O;function w(t,e){var n=j(e),i=n.length;if(v(t))return!i;for(var r=0;r<i;r+=1){var o=n[r];if(e[o]!==t[o]||!(o in t))return!1}return!0}var C=w,M=function(t){return"object"===typeof t&&null!==t},S=M,A=function(t){if(!S(t)||!p(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},k=A;function F(t,e){if(!y(t))return null;var n;if(d(e)&&(n=e),k(e)&&(n=function(t){return C(t,e)}),n)for(var i=0;i<t.length;i+=1)if(n(t[i]))return t[i];return null}var E=F;function T(t,e,n){void 0===n&&(n=0);for(var i=n;i<t.length;i++)if(e(t[i],i))return i;return-1}var P=T,I=function(t,e){for(var n=null,i=0;i<t.length;i++){var r=t[i],o=r[e];if(!v(o)){n=y(o)?o[0]:o;break}}return n},B=I,L=function(t){if(!y(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},D=L,R=function(t){if(y(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])},_=function(t){if(y(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])},z=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(y(t[0])){for(var n=[],i=0;i<t.length;i++)n=n.concat(t[i]);e=n}var r=R(e),o=_(e);return{min:o,max:r}},Y=z,N=Array.prototype,G=(N.splice,N.indexOf,Array.prototype.splice),X=function(t,e){if(!r(t))return[];var n=t?e.length:0,i=n-1;while(n--){var o=void 0,a=e[n];n!==i&&a===o||(o=a,G.call(t,a,1))}return t},V=X,H=function(t,e,n){if(!y(t)&&!k(t))return t;var i=n;return x(t,(function(t,n){i=e(i,t,n)})),i},W=H,q=function(t,e){var n=[];if(!r(t))return n;var i=-1,o=[],a=t.length;while(++i<a){var s=t[i];e(s,i,t)&&(n.push(s),o.push(i))}return V(t,o),n},K=q,U=function(t){return p(t,"String")};function Z(t,e){var n;if(d(e))n=function(t,n){return e(t)-e(n)};else{var i=[];U(e)?i.push(e):y(e)&&(i=e),n=function(t,e){for(var n=0;n<i.length;n+=1){var r=i[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t}var Q=Z;function $(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var i=0,r=t.length;i<r;i++){var o=t[i];e.has(o)||(n.push(o),e.set(o,!0))}return n}var J=function(t,e){for(var n=[],i={},r=0;r<t.length;r++){var o=t[r],a=o[e];if(!v(a)){y(a)||(a=[a]);for(var s=0;s<a.length;s++){var c=a[s];i[c]||(n.push(c),i[c]=!0)}}}return n};function tt(t){if(r(t))return t[0]}function et(t){if(r(t)){var e=t;return e[e.length-1]}}var nt=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},it=nt,rt=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},ot=rt,at=Object.prototype.hasOwnProperty;function st(t,e){if(!e||!y(t))return{};for(var n,i={},r=d(e)?e:function(t){return t[e]},o=0;o<t.length;o++){var a=t[o];n=r(a),at.call(i,n)?i[n].push(a):i[n]=[a]}return i}var ct=st;function lt(t,e){if(!e)return{0:t};if(!d(e)){var n=y(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",i=0,r=n.length;i<r;i++)e+=t[n[i]]&&t[n[i]].toString();return e}}return ct(t,e)}var ut=function(t,e){if(!e)return[t];var n=lt(t,e),i=[];for(var r in n)i.push(n[r]);return i};var ht=function(t,e,n){return t<e?e:t>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)<n}var bt=function(t,e){if(y(t)){for(var n,i=-1/0,r=0;r<t.length;r++){var o=t[r],a=d(e)?e(o):o[e];a>i&&(n=o,i=a)}return n}},xt=function(t,e){if(y(t)){for(var n,i=1/0,r=0;r<t.length;r++){var o=t[r],a=d(e)?e(o):o[e];a<i&&(n=o,i=a)}return n}},Ot=function(t,e){return(t%e+e)%e},jt=Ot,wt=(Math.PI,parseInt,Math.PI/180),Ct=function(t){return wt*t},Mt=Ct,St=x,At=function(t,e){return t.hasOwnProperty(e)},kt=At,Ft=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return x(t,(function(n,i){d(t)&&"prototype"===i||e.push(n)})),e},Et=Ft,Tt=function(t){return v(t)?"":t.toString()},Pt=function(t){return Tt(t).toLowerCase()},It=Pt;function Bt(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}var Lt=Bt,Dt=function(t){var e=Tt(t);return e.charAt(0).toUpperCase()+e.substring(1)},Rt=Dt,_t={}.toString,zt=function(t){return _t.call(t).replace(/^\[object /,"").replace(/]$/,"")},Yt=zt,Nt=function(t){return p(t,"Boolean")},Gt=Nt,Xt=function(t){return p(t,"Date")},Vt=Xt,Ht=function(t){return null===t},Wt=Ht,qt=Object.prototype,Kt=function(t){var e=t&&t.constructor,n="function"===typeof e&&e.prototype||qt;return t===n},Ut=Kt,Zt=function(t){return void 0===t},Qt=Zt,$t=function(t){return t instanceof Element||t instanceof HTMLDocument},Jt=$t;function te(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}function ee(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;e(t)}function ne(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function ie(t,e,n,i){return e&&ne(t,e),n&&ne(t,n),i&&ne(t,i),t}var re=function(t){if("object"!==typeof t||null===t)return t;var e;if(y(t)){e=[];for(var n=0,i=t.length;n<i;n++)"object"===typeof t[n]&&null!=t[n]?e[n]=re(t[n]):e[n]=t[n]}else for(var r in e={},t)"object"===typeof t[r]&&null!=t[r]?e[r]=re(t[r]):e[r]=t[r];return e},oe=re;function ae(t,e,n){var i;return function(){var r=this,o=arguments,a=function(){i=null,n||t.apply(r,o)},s=n&&!i;clearTimeout(i),i=setTimeout(a,e),s&&t.apply(r,o)}}var se=ae,ce=function(t,e){if(!d(t))throw new TypeError("Expected a function");var n=function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var o=e?e.apply(this,i):i[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,i);return a.set(o,s),s};return n.cache=new Map,n},le=5;function ue(t,e,n,i){for(var r in n=n||0,i=i||le,e)if(e.hasOwnProperty(r)){var o=e[r];null!==o&&k(o)?(k(t[r])||(t[r]={}),n<i?ue(t[r],o,n+1,i):t[r]=e[r]):y(o)?(t[r]=[],t[r]=t[r].concat(o)):void 0!==o&&(t[r]=o)}}var he=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0;i<e.length;i+=1)ue(t,e[i]);return t},fe=he,pe=function(t,e){if(!r(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,o=0;o<t.length;o++)if(t[o]===e){i=o;break}return i},de=pe,ge=Object.prototype.hasOwnProperty;function ve(t){if(v(t))return!0;if(r(t))return!t.length;var e=Yt(t);if("Map"===e||"Set"===e)return!t.size;if(Ut(t))return!Object.keys(t).length;for(var n in t)if(ge.call(t,n))return!1;return!0}var ye=ve,me=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(U(t)||U(e))return!1;if(r(t)||r(e)){if(t.length!==e.length)return!1;for(var n=!0,i=0;i<t.length;i++)if(n=me(t[i],e[i]),!n)break;return n}if(S(t)||S(e)){var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(n=!0,i=0;i<o.length;i++)if(n=me(t[o[i]],e[o[i]]),!n)break;return n}return!1},be=me,xe=function(t,e){if(!r(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];n.push(e(o,i))}return n},Oe=xe,je=function(t){return t},we=function(t,e){void 0===e&&(e=je);var n={};return m(t)&&!v(t)&&Object.keys(t).forEach((function(i){n[i]=e(t[i],i)})),n},Ce=function(t,e,n){var i=0,r=U(e)?e.split("."):e;while(t&&i<r.length)t=t[r[i++]];return void 0===t||i<r.length?n:t},Me=function(t,e,n){var i=t,r=U(e)?e.split("."):e;return r.forEach((function(t,e){e<r.length-1?(m(i[t])||(i[t]=vt(r[e+1])?[]:{}),i=i[t]):i[t]=n})),t},Se=Object.prototype.hasOwnProperty,Ae=function(t,e){if(null===t||!k(t))return{};var n={};return x(e,(function(e){Se.call(t,e)&&(n[e]=t[e])})),n},ke=function(t,e){return W(t,(function(t,n,i){return e.includes(i)||(t[i]=n),t}),{})},Fe=function(t,e,n){var i,r,o,a,s=0;n||(n={});var c=function(){s=!1===n.leading?0:Date.now(),i=null,a=t.apply(r,o),i||(r=o=null)},l=function(){var l=Date.now();s||!1!==n.leading||(s=l);var u=e-(l-s);return r=this,o=arguments,u<=0||u>e?(i&&(clearTimeout(i),i=null),s=l,a=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(c,u)),a};return l.cancel=function(){clearTimeout(i),s=0,i=r=o=null},l},Ee=function(t){return r(t)?Array.prototype.slice.call(t):[]},Te={},Pe=function(t){return t=t||"g",Te[t]?Te[t]+=1:Te[t]=1,t+Te[t]},Ie=function(){};function Be(t){return v(t)?0:r(t)?t.length:Object.keys(t).length}
  54. /*! *****************************************************************************
  55. Copyright (c) Microsoft Corporation.
  56. Permission to use, copy, modify, and/or distribute this software for any
  57. purpose with or without fee is hereby granted.
  58. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  59. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  60. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  61. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  62. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  63. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  64. PERFORMANCE OF THIS SOFTWARE.
  65. ***************************************************************************** */Object.create;function Le(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}var De;Object.create;var Re=ce((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,r=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return De||(De=document.createElement("canvas").getContext("2d")),De.font=[o,a,r,n+"px",i].join(" "),De.measureText(U(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Le([t],Et(e)).join("")})),_e=function(t,e,n,i){void 0===i&&(i="...");var r,o,a=16,s=Re(i,n),c=U(t)?t:Tt(t),l=e,u=[];if(Re(t,n)<=e)return t;while(1){if(r=c.substr(0,a),o=Re(r,n),o+s>l&&o>l)break;if(u.push(r),l-=o,c=c.substr(a),!c)return u.join("")}while(1){if(r=c.substr(0,1),o=Re(r,n),o+s>l)break;if(u.push(r),l-=o,c=c.substr(1),!c)return u.join("")}return""+u.join("")+i},ze=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}(),Ye=ze},8944:function(t,e){},"8ea8":function(t,e,n){"use strict";n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return a})),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 o(t,e,n){if(void 0===n&&(n=r),!e)return null;var o=i["a"].transform(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]);return o}function a(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]),o=c(t,[e.maxX,e.maxY]),a=Math.min(n[0],i[0],r[0],o[0]),s=Math.max(n[0],i[0],r[0],o[0]),l=Math.min(n[1],i[1],r[1],o[1]),u=Math.max(n[1],i[1],r[1],o[1]);return{x:a,y:l,minX:a,minY:l,maxX:s,maxY:u,width:s-a,height:u-l}}function u(t,e,n,i){if(e){var r=o({x:n,y:i},e,t.getMatrix());t.setMatrix(r)}}function h(t,e,n){var i=a({x:e,y:n});t.attr("matrix",i)}},"8f50":function(t,e,n){"use strict";function i(t){var e,n,i=t.length;while(i)n=Math.random()*i--|0,e=t[i],t[i]=t[n],t[n]=e;return t}n.d(e,"b",(function(){return i})),e["a"]=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}},"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 o=function(t){var e=void 0,n=[],r=(0,i["default"])((function(){n.forEach((function(e){e(t)}))})),o=function(){var e=new ResizeObserver(r);return e.observe(t),r(),e},a=function(t){e||(e=o()),-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:a,destroy:s,unbind:c}};e.createSensor=o},"917c":function(t,e,n){"use strict";n.d(e,"i",(function(){return f})),n.d(e,"b",(function(){return Dl})),n.d(e,"c",(function(){return gi})),n.d(e,"d",(function(){return oi})),n.d(e,"g",(function(){return bi})),n.d(e,"e",(function(){return fr})),n.d(e,"a",(function(){return de})),n.d(e,"f",(function(){return de})),n.d(e,"m",(function(){return Jn})),n.d(e,"p",(function(){return Xi})),n.d(e,"n",(function(){return Di})),n.d(e,"o",(function(){return bn})),n.d(e,"l",(function(){return xe})),n.d(e,"j",(function(){return be})),n.d(e,"k",(function(){return In})),n.d(e,"h",(function(){return Rr}));
  66. /*! *****************************************************************************
  67. Copyright (c) Microsoft Corporation.
  68. Permission to use, copy, modify, and/or distribute this software for any
  69. purpose with or without fee is hereby granted.
  70. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  71. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  72. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  73. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  74. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  75. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  76. PERFORMANCE OF THIS SOFTWARE.
  77. ***************************************************************************** */
  78. 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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};function a(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}Object.create;function s(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}Object.create;var c,l,u,h=n("8937");(function(t){t["FORE"]="fore",t["MID"]="mid",t["BG"]="bg"})(c||(c={})),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"}(l||(l={})),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"}(u||(u={}));var f,p,d,g,v={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"})(f||(f={})),function(t){t["BEFORE_DRAW_ANIMATE"]="beforeanimate",t["AFTER_DRAW_ANIMATE"]="afteranimate"}(p||(p={})),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"}(d||(d={})),function(t){t["ACTIVE"]="active",t["INACTIVE"]="inactive",t["SELECTED"]="selected",t["DEFAULT"]="default"}(g||(g={}));var y=["color","shape","size"],m="_origin",b=1,x=1,O=.25,j={};function w(t){var e=j[t];if(!e)throw new Error("G engine '".concat(t,"' is not exist, please register it at first."));return e}function C(t,e){j[t]=e}var M=n("7c8a");function S(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 A(t){return"number"===typeof t&&!isNaN(t)}function k(t,e,n,i){var r=n,o=i;if(e){var a=S(t);r=a.width?a.width:r,o=a.height?a.height:o}return{width:Math.max(A(r)?r:b,b),height:Math.max(A(o)?o:x,x)}}function F(t){var e=t.parentNode;e&&e.removeChild(t)}var E=n("7fa2"),T=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 r(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}(E["a"]),P=T,I=n("6855"),B=n("eecd"),L=function(t,e){return Object(h["Q"])(e)?e:t.invert(t.scale(e))},D=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<arguments.length;n++)e[n]=arguments[n];var i=e.map((function(e,n){return t._toOriginParam(e,t.scales[n])}));return this.callback.apply(this,i)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,n=Math.floor(e*t),i=e*t-n,r=this.values[n],o=n===e?r:this.values[n+1];return r+(o-r)*i},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),i=[],r=0;r<n;r+=1)i.push(e[r]);return i},t.prototype.getFields=function(){return this.scales.map((function(t){return t.field}))},t.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},t.prototype.defaultCallback=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 0===e.length?this.values:e.map((function(e,n){var i=t.scales[n];return"identity"===i.type?i.values[0]:t._getAttributeValue(i,e)}))},t.prototype._parseCfg=function(t){var e=this,n=t.type,i=void 0===n?"base":n,r=t.names,o=void 0===r?[]:r,a=t.scales,s=void 0===a?[]:a,c=t.values,l=void 0===c?[]:c,u=t.callback;this.type=i,this.scales=s,this.values=l,this.names=o,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(u){var i=u.apply(void 0,t);if(!Object(h["K"])(i))return[i]}return e.defaultCallback.apply(e,t)}},t.prototype._getAttributeValue=function(t,e){if(t.isCategory&&!this.linear){var n=t.translate(e);return this.values[n%this.values.length]}var i=t.scale(e);return this.getLinearValue(i)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:Object(h["C"])(t)?t.map((function(t){return L(e,t)})):L(e,t)},t}(),R=D,_=n("9ab4"),z=n("e945"),Y=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],Object(h["Q"])(n.values)&&(n.linear=!0),n.gradient=z["a"].gradient(n.values),n}return Object(_["b"])(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(R),N=Y,G=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return Object(_["b"])(e,t),e}(R),X=G,V=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return Object(_["b"])(e,t),e.prototype.mapping=function(t,e){var n=this.scales,i=n[0],r=n[1];return Object(h["K"])(t)||Object(h["K"])(e)?[]:[Object(h["C"])(t)?t.map((function(t){return i.scale(t)})):i.scale(t),Object(h["C"])(e)?e.map((function(t){return r.scale(t)})):r.scale(e)]},e}(R),H=V,W=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return Object(_["b"])(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(R),q=W,K=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return Object(_["b"])(e,t),e}(R),U=K,Z=n("f2fb"),Q={},$=function(t){return Q[t.toLowerCase()]},J=function(t,e){if($(t))throw new Error("Attribute type '"+t+"' existed.");Q[t.toLowerCase()]=e};J("Color",N),J("Opacity",X),J("Position",H),J("Shape",q),J("Size",U);
  79. /*! *****************************************************************************
  80. Copyright (c) Microsoft Corporation.
  81. Permission to use, copy, modify, and/or distribute this software for any
  82. purpose with or without fee is hereby granted.
  83. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  84. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  85. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  86. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  87. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  88. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  89. PERFORMANCE OF THIS SOFTWARE.
  90. ***************************************************************************** */
  91. var tt=function(t,e){return tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},tt(t,e)};function et(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}tt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;function nt(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}Object.create;var it=n("e897"),rt=function(){function t(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var e=t.start,n=t.end,i=t.matrix,r=void 0===i?[1,0,0,0,1,0,0,0,1]:i,o=t.isTransposed,a=void 0!==o&&o;this.start=e,this.end=n,this.matrix=r,this.originalMatrix=nt([],r),this.isTransposed=a}return t.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},t.prototype.update=function(t){Object(h["b"])(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,i=this[e],r=i.start,o=i.end;return this.isReflect(e)&&(n=[o,r],r=n[0],o=n[1]),r+t*(o-r)},t.prototype.invertDim=function(t,e){var n,i=this[e],r=i.start,o=i.end;return this.isReflect(e)&&(n=[o,r],r=n[0],o=n[1]),(t-r)/(o-r)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var i=this.matrix,r=[t,e,n];return it["d"].transformMat3(r,r,i),r},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var i=this.matrix,r=it["b"].invert([0,0,0,0,0,0,0,0,0],i),o=[t,e,n];return r&&it["d"].transformMat3(o,o,r),o},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,i=e.y,r=this.applyMatrix(n,i,1);return{x:r[0],y:r[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,n=this.center;return it["a"].leftTranslate(e,e,[-n.x,-n.y]),it["a"].leftRotate(e,e,t),it["a"].leftTranslate(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){return"x"===t?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},t.prototype.scale=function(t,e){var n=this.matrix,i=this.center;return it["a"].leftTranslate(n,n,[-i.x,-i.y]),it["a"].leftScale(n,n,[t,e]),it["a"].leftTranslate(n,n,[i.x,i.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return it["a"].leftTranslate(n,n,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRadius=function(){return this.radius},t.prototype.isReflect=function(t){return"x"===t?this.isReflectX:this.isReflectY},t.prototype.resetMatrix=function(t){this.matrix=t||nt([],this.originalMatrix)},t}(),ot=rt,at=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return et(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,n=this.end;this.x={start:e.x,end:n.x},this.y={start:e.y,end:n.y}},e.prototype.convertPoint=function(t){var e,n=t.x,i=t.y;return this.isTransposed&&(e=[i,n],n=e[0],i=e[1]),{x:this.convertDim(n,"x"),y:this.convertDim(i,"y")}},e.prototype.invertPoint=function(t){var e,n=this.invertDim(t.x,"x"),i=this.invertDim(t.y,"y");return this.isTransposed&&(e=[i,n],n=e[0],i=e[1]),{x:n,y:i}},e}(ot),st=at,ct=function(t){function e(e){var n=t.call(this,e)||this;n.isHelix=!0,n.type="helix";var i=e.startAngle,r=void 0===i?1.25*Math.PI:i,o=e.endAngle,a=void 0===o?7.25*Math.PI:o,s=e.innerRadius,c=void 0===s?0:s,l=e.radius;return n.startAngle=r,n.endAngle=a,n.innerRadius=c,n.radius=l,n.initial(),n}return et(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=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"),o=this.a*r,a=this.convertDim(i,"y");return{x:this.center.x+Math.cos(r)*(o+a),y:this.center.y+Math.sin(r)*(o+a)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,i=it["c"].subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),r=it["a"].angleTo(i,[1,0],!0),o=r*this.a;it["c"].length(i)<o&&(o=it["c"].length(i));var a=Math.floor((it["c"].length(i)-o)/n);r=2*a*Math.PI+r;var s=this.a*r,c=it["c"].length(i)-s;c=Object(h["N"])(c,0)?0:c;var l=this.invertDim(r,"x"),u=this.invertDim(c,"y");return l=Object(h["N"])(l,0)?0:l,u=Object(h["N"])(u,0)?0:u,this.isTransposed&&(e=[u,l],l=e[0],u=e[1]),{x:l,y:u}},e}(ot),lt=ct,ut=function(t){function e(e){var n=t.call(this,e)||this;n.isPolar=!0,n.type="polar";var i=e.startAngle,r=void 0===i?-Math.PI/2:i,o=e.endAngle,a=void 0===o?3*Math.PI/2:o,s=e.innerRadius,c=void 0===s?0:s,l=e.radius;return n.startAngle=r,n.endAngle=a,n.innerRadius=c,n.radius=l,n.initial(),n}return et(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);while(this.endAngle<this.startAngle)this.endAngle+=2*Math.PI;var e,n=this.getOneBox(),i=n.maxX-n.minX,r=n.maxY-n.minY,o=Math.abs(n.minX)/i,a=Math.abs(n.minY)/r;this.height/r>this.width/i?(e=this.width/i,this.circleCenter={x:this.center.x-(.5-o)*this.width,y:this.center.y-(.5-a)*e*r}):(e=this.height/r,this.circleCenter={x:this.center.x-(.5-o)*e*i,y:this.center.y-(.5-a)*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,o=r.startAngle,a=r.endAngle;this.isReflect("x")&&(e=[a,o],o=e[0],a=e[1]);var s=[1,0,0,0,1,0,0,0,1];it["a"].leftRotate(s,s,o);var c=[1,0,0];it["d"].transformMat3(c,c,s);var l=[c[0],c[1]],u=it["a"].angleTo(l,i,a<o);Object(h["N"])(u,2*Math.PI)&&(u=0);var f=it["c"].length(i),p=u/(a-o);p=a-o>0?p:-p;var d=this.invertDim(f,"y"),g={x:0,y:0};return g.x=this.isTransposed?d:p,g.y=this.isTransposed?p:d,g},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);r<Math.max(t,e);r+=Math.PI/18)n.push(Math.cos(r)),i.push(Math.sin(r));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,i),maxY:Math.max.apply(Math,i)}},e}(ot),ht=ut,ft={},pt=function(t){return ft[t.toLowerCase()]},dt=function(t,e){ft[t.toLowerCase()]=e};dt("rect",st),dt("cartesian",st),dt("polar",ht),dt("helix",lt);var gt=n("d7b4"),vt=gt["Axis"].Line,yt=gt["Axis"].Circle,mt=gt["Grid"].Line,bt=gt["Grid"].Circle,xt=gt["Legend"].Category,Ot=gt["Legend"].Continuous,jt=gt["Tooltip"].Html;function wt(t){if(Object(h["G"])(t))return null;var e=t[0].x,n=t[0].x,i=t[0].y,r=t[0].y;return Object(h["j"])(t,(function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,i=i>t.y?t.y:i,r=r<t.y?t.y:r})),{minX:e,maxX:n,minY:i,maxY:r,centerX:(e+n)/2,centerY:(i+r)/2}}function Ct(t){return 1===Array.from(new Set(t)).length}function Mt(t){return(Object(h["bb"])(t)+Object(h["Y"])(t))/2}function St(t,e,n,i){return{x:t+n*Math.cos(i),y:e+n*Math.sin(i)}}function At(t,e,n,i,r,o){void 0===o&&(o=0);var a=St(t,e,n,i),s=St(t,e,n,r),c=St(t,e,o,i),l=St(t,e,o,r);if(r-i===2*Math.PI){var u=St(t,e,n,i+Math.PI),h=St(t,e,o,i+Math.PI),f=[["M",a.x,a.y],["A",n,n,0,1,1,u.x,u.y],["A",n,n,0,1,1,s.x,s.y],["M",c.x,c.y]];return o&&(f.push(["A",o,o,0,1,0,h.x,h.y]),f.push(["A",o,o,0,1,0,l.x,l.y])),f.push(["M",a.x,a.y]),f.push(["Z"]),f}var p=r-i<=Math.PI?0:1,d=[["M",a.x,a.y],["A",n,n,0,p,1,s.x,s.y],["L",l.x,l.y]];return o&&d.push(["A",o,o,0,p,0,c.x,c.y]),d.push(["L",a.x,a.y]),d.push(["Z"]),d}function kt(t,e,n,i,r){var o=St(t,e,n,i),a=St(t,e,n,r);if(Object(h["N"])(r-i,2*Math.PI)){var s=St(t,e,n,i+Math.PI);return[["M",o.x,o.y],["A",n,n,0,1,1,s.x,s.y],["A",n,n,0,1,1,o.x,o.y],["A",n,n,0,1,0,s.x,s.y],["A",n,n,0,1,0,o.x,o.y],["Z"]]}var c=r-i<=Math.PI?0:1;return[["M",o.x,o.y],["A",n,n,0,c,1,a.x,a.y]]}function Ft(t,e){var n,i,r=t.points,o=wt(r),a=e.startAngle,s=e.endAngle,c=s-a;return e.isTransposed?(n=o.maxY*c,i=o.minY*c):(n=o.maxX*c,i=o.minX*c),n+=a,i+=a,{startAngle:i,endAngle:n}}function Et(t,e){if(Object(h["M"])(t)&&Object(h["M"])(e))return[t,e];if(t=t,e=e,Ct(t)||Ct(e))return[Mt(t),Mt(e)];var n,i,r=-1,o=0,a=0,s=t.length-1,c=0;while(++r<t.length)n=s,s=r,c+=i=t[n]*e[s]-t[s]*e[n],o+=(t[n]+t[s])*i,a+=(e[n]+e[s])*i;return c*=3,[o/c,a/c]}function Tt(t,e){var n=t.attr(),i=e.attr();return Object(h["j"])(n,(function(t,e){void 0===i[e]&&(i[e]=void 0)})),i}function Pt(t,e,n){var i=Math.min(e,n),r=Math.max(e,n);return t>=i&&t<=r}function It(t,e,n){if(Object(h["Q"])(t))return t.padEnd(e,n);if(Object(h["C"])(t)){var i=t.length;if(i<e)for(var r=e-i,o=0;o<r;o++)t.push(n)}return t}function Bt(t,e){return"object"===typeof t&&e.forEach((function(e){delete t[e]})),t}function Lt(t,e,n){void 0===e&&(e=[]),void 0===n&&(n=new Map);for(var i=0,r=t;i<r.length;i++){var o=r[i];n.has(o)||(e.push(o),n.set(o,!0))}return e}var Dt=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.x=t,this.y=e,this.height=i,this.width=n}return t.fromRange=function(e,n,i,r){return new t(e,n,i-e,r-n)},t.fromObject=function(e){return new t(e.minX,e.minY,e.width,e.height)},Object.defineProperty(t.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.contains=function(t){return t.minX>=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;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return Object(h["j"])(t,(function(t){n.x=Math.min(t.x,n.x),n.y=Math.min(t.y,n.y),n.width=Math.max(t.maxX,n.maxX)-n.x,n.height=Math.max(t.maxY,n.maxY)-n.y})),n},t.prototype.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return Object(h["j"])(t,(function(t){n.x=Math.max(t.x,n.x),n.y=Math.max(t.y,n.y),n.width=Math.min(t.maxX,n.maxX)-n.x,n.height=Math.min(t.maxY,n.maxY)-n.y})),n},t.prototype.cut=function(e,n){var i=e.width,r=e.height;switch(n){case l.TOP:case l.TOP_LEFT:case l.TOP_RIGHT:return t.fromRange(this.minX,this.minY+r,this.maxX,this.maxY);case l.RIGHT:case l.RIGHT_TOP:case l.RIGHT_BOTTOM:return t.fromRange(this.minX,this.minY,this.maxX-i,this.maxY);case l.BOTTOM:case l.BOTTOM_LEFT:case l.BOTTOM_RIGHT:return t.fromRange(this.minX,this.minY,this.maxX,this.maxY-r);case l.LEFT:case l.LEFT_TOP:case l.LEFT_BOTTOM:return t.fromRange(this.minX+i,this.minY,this.maxX,this.maxY);default:return this}},t.prototype.shrink=function(e){var n=e[0],i=e[1],r=e[2],o=e[3];return new t(this.x+o,this.y+n,this.width-o-i,this.height-n-r)},t.prototype.expand=function(e){var n=e[0],i=e[1],r=e[2],o=e[3];return new t(this.x-o,this.y-n,this.width+o+i,this.height+n+r)},t.prototype.exceed=function(t){return[Math.max(-this.minY+t.minY,0),Math.max(this.maxX-t.maxX,0),Math.max(this.maxY-t.maxY,0),Math.max(-this.minX+t.minX,0)]},t.prototype.collide=function(t){return this.minX<t.maxX&&this.maxX>t.minX&&this.minY<t.maxY&&this.maxY>t.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 Rt(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}function _t(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 zt(t){if(t.isPolar){var e=t.startAngle,n=t.endAngle;return n-e===2*Math.PI}return!1}function Yt(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Nt(t,e){var n=!1;if(t)if("theta"===t.type){var i=t.start,r=t.end;n=Pt(e.x,i.x,r.x)&&Pt(e.y,i.y,r.y)}else{var o=t.invert(e);n=Pt(o.x,0,1)&&Pt(o.y,0,1)}return n}function Gt(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function Xt(t,e){void 0===e&&(e=0);var n,i=t.start,r=t.end,o=t.getWidth(),a=t.getHeight();if(t.isPolar){var s=t.startAngle,c=t.endAngle,l=t.getCenter(),u=t.getRadius();return{type:"path",startState:{path:At(l.x,l.y,u+e,s,s)},endState:function(t){var n=(c-s)*t+s,i=At(l.x,l.y,u+e,s,n);return{path:i}},attrs:{path:At(l.x,l.y,u+e,s,c)}}}return n=t.isTransposed?{height:a+2*e}:{width:o+2*e},{type:"rect",startState:{x:i.x-e,y:r.y-e,width:t.isTransposed?o+2*e:0,height:t.isTransposed?0:a+2*e},endState:n,attrs:{x:i.x-e,y:r.y-e,width:o+2*e,height:a+2*e}}}function Vt(t,e){void 0===e&&(e=0);var n=t.start,i=t.end,r=t.getWidth(),o=t.getHeight(),a=Math.min(n.x,i.x),s=Math.min(n.y,i.y);return Dt.fromRange(a-e,s-e,a+r+e,s+o+e)}var Ht=/^(?:(?!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 Wt(t){var e="linear";return Ht.test(t)?e="timeCat":Object(h["Q"])(t)&&(e="cat"),e}function qt(t,e,n){var i=e||[];if(Object(h["M"])(t)||Object(h["K"])(Object(h["o"])(i,t))&&Object(h["G"])(n)){var r=Object(Z["c"])("identity");return new r({field:t.toString(),values:[t]})}var a=Object(h["yb"])(i,t),s=Object(h["s"])(n,"type",Wt(a[0])),c=Object(Z["c"])(s);return new c(o({field:t,values:a},n))}function Kt(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 Ut(t){return t.alias||t.field}function Zt(t,e,n){var i,r=t.values,o=r.length;if(1===o)i=[.5,1];else{var a=1,s=0;zt(e)?e.isTransposed?(a=Object(h["s"])(n,"widthRatio.multiplePie",1/1.3),s=1/o*a,i=[s/2,1-s/2]):i=[0,1-1/o]:(s=1/o/2,i=[s,1-s])}return i}function Qt(t){var e=t.values.filter((function(t){return!Object(h["K"])(t)&&!isNaN(t)}));return Math.max.apply(Math,s(s([],e,!1),[Object(h["K"])(t.max)?-1/0:t.max],!1))}function $t(t){var e,n;switch(t){case l.TOP:e={x:0,y:1},n={x:1,y:1};break;case l.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case l.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case l.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 Jt(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 te(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=$t(e):t.isPolar&&(n=Jt(t));var i=n.start,r=n.end;return{start:t.convert(i),end:t.convert(r)}}function ee(t){var e=t.start,n=t.end;return e.x===n.x}function ne(t,e){var n=t.start,i=t.end,r=ee(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 ie(t,e){var n=Object(h["s"])(t,["components","axis"],{});return Object(h["h"])({},Object(h["s"])(n,["common"],{}),Object(h["h"])({},Object(h["s"])(n,[e],{})))}function re(t,e,n){var i=Object(h["s"])(t,["components","axis"],{});return Object(h["h"])({},Object(h["s"])(i,["common","title"],{}),Object(h["h"])({},Object(h["s"])(i,[e,"title"],{})),n)}function oe(t){var e=t.x,n=t.y,i=t.circleCenter,r=n.start>n.end,o=t.isTransposed?t.convert({x:r?0:1,y:0}):t.convert({x:0,y:r?0:1}),a=[o.x-i.x,o.y-i.y],s=[1,0],c=o.y>i.y?it["c"].angle(a,s):-1*it["c"].angle(a,s),l=c+(e.end-e.start),u=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2));return{center:i,radius:u,startAngle:c,endAngle:l}}function ae(t,e){return Object(h["D"])(t)?!1!==t&&{}:Object(h["s"])(t,[e])}function se(t,e){return Object(h["s"])(t,"position",e)}function ce(t,e){return Object(h["s"])(e,["title","text"],Ut(t))}var le=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=Object(h["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,o=this.view.createView({region:e,padding:r});o.data(n||[]),t.view=o,this.beforeEachView(o,t);var a=this.cfg.eachView;return a&&a(o,t),this.afterEachView(o,t),o},t.prototype.createContainer=function(){var t=this.view.getLayer(c.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(h["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(h["M"])(t)?t/(0===i?e:n):parseFloat(t)/100}))},t.prototype.getFieldValues=function(t,e){var n=[],i={};return Object(h["j"])(t,(function(t){var r=t[e];Object(h["K"])(r)||i[r]||(n.push(r),i[r]=!0)})),n},t.prototype.getRegion=function(t,e,n,i){var r=this.parseSpacing(),o=r[0],a=r[1],s=(1+o)/(0===e?1:e)-o,c=(1+a)/(0===t?1:t)-a,l={x:(s+o)*n,y:(c+a)*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,o=Object(h["s"])(i,"type","rect");if("rect"===o&&r.length){Object(h["K"])(n.axes)&&(n.axes={});var a=n.axes,s=r[0].getXYFields(),c=s[0],l=s[1],u=ae(a,c),f=ae(a,l);!1!==u&&(n.axes[c]=this.getXAxisOption(c,a,u,e)),!1!==f&&(n.axes[l]=this.getYAxisOption(l,a,f,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return Object(h["k"])(t,(function(t){var n=t.field,i=t.value;return!(!Object(h["K"])(i)&&n)||e[n]===i}))}},t}(),ue={},he=function(t){return ue[Object(h["V"])(t)]},fe=function(t,e){ue[Object(h["V"])(t)]=e},pe=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){Object(h["b"])(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}(),de=pe,ge=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(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}(de),ve=ge,ye={};function me(t,e){var n=ye[t],i=null;if(n){var r=n.ActionClass,o=n.cfg;i=new r(e,o),i.name=t,i.init()}return i}function be(t){var e=ye[t];return Object(h["s"])(e,"ActionClass")}function xe(t,e,n){ye[t]={ActionClass:e,cfg:n}}function Oe(t,e){var n=new ve(e);return n.callback=t,n.name="callback",n}function je(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var i=1,r=t.length;i<r;i+=1){var o=t[i];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}function we(t,e){for(var n=[t[0]],i=1,r=t.length;i<r;i+=2){var o=e.convert({x:t[i],y:t[i+1]});n.push(o.x,o.y)}return n}function Ce(t,e){var n=e.isTransposed,i=t[1],r=t[6],o=t[7],a=e.convert({x:r,y:o}),s=n?0:1;return["A",i,i,0,0,s,a.x,a.y]}function Me(t,e,n){var i=n.isTransposed,r=n.startAngle,o=n.endAngle,a="a"===t[0].toLowerCase()?{x:t[6],y:t[7]}:{x:t[1],y:t[2]},s={x:e[1],y:e[2]},c=[],l=i?"y":"x",u=Math.abs(s[l]-a[l])*(o-r),h=s[l]>=a[l]?1:0,f=u>Math.PI?1:0,p=n.convert(s),d=Yt(n,p);if(d>=.5)if(u===2*Math.PI){var g={x:(s.x+a.x)/2,y:(s.y+a.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 Se(t){Object(h["j"])(t,(function(e,n){var i=e;if("a"===i[0].toLowerCase()){var r=t[n-1],o=t[n+1];o&&"a"===o[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&o&&"l"===o[0].toLowerCase()&&(o[0]="M")}}))}var Ae=function(t,e,n,i){var r,o,a,s,c,l,u,h=[],f=!!i;if(f){a=i[0],s=i[1];for(var p=0,d=t.length;p<d;p++){var g=t[p];a=it["c"].min([0,0],a,g),s=it["c"].max([0,0],s,g)}}p=0;for(var v=t.length;p<v;p++){g=t[p];if(0!==p||n)if(p!==v-1||n){r=t[n?p?p-1:v-1:p-1],o=t[n?(p+1)%v:p+1];var y=[0,0];y=it["c"].sub(y,o,r),y=it["c"].scale(y,y,e);var m=it["c"].distance(g,r),b=it["c"].distance(g,o),x=m+b;0!==x&&(m/=x,b/=x);var O=it["c"].scale([0,0],y,-m),j=it["c"].scale([0,0],y,b);l=it["c"].add([0,0],g,O),c=it["c"].add([0,0],g,j),c=it["c"].min([0,0],c,it["c"].max([0,0],o,g)),c=it["c"].max([0,0],c,it["c"].min([0,0],o,g)),O=it["c"].sub([0,0],c,g),O=it["c"].scale([0,0],O,-m/b),l=it["c"].add([0,0],g,O),l=it["c"].min([0,0],l,it["c"].max([0,0],r,g)),l=it["c"].max([0,0],l,it["c"].min([0,0],r,g)),j=it["c"].sub([0,0],g,l),j=it["c"].scale([0,0],j,b/m),c=it["c"].add([0,0],g,j),f&&(l=it["c"].max([0,0],l,a),l=it["c"].min([0,0],l,s),c=it["c"].max([0,0],c,a),c=it["c"].min([0,0],c,s)),h.push(u),h.push(l),u=c}else l=g,h.push(u),h.push(l);else u=g}return n&&h.push(h.shift()),h};function ke(t,e,n){for(var i=!!e,r=[],o=0,a=t.length;o<a;o+=2)r.push([t[o],t[o+1]]);var s,c,l,u=Ae(r,.4,i,n),h=r.length,f=[];for(o=0;o<h-1;o++)s=u[2*o],c=u[2*o+1],l=r[o+1],f.push(["C",s[0],s[1],c[0],c[1],l[0],l[1]]);return i&&(s=u[h],c=u[h+1],l=r[0],f.push(["C",s[0],s[1],c[0],c[1],l[0],l[1]])),f}function Fe(t,e){return je(t,e)}function Ee(t,e,n){var i=[],r=t[0],o=null;if(t.length<=2)return Fe(t,e);for(var a=0,s=t.length;a<s;a++){var c=t[a];o&&o.x===c.x&&o.y===c.y||(i.push(c.x),i.push(c.y),o=c)}var l=n||[[0,0],[1,1]],u=ke(i,e,l);return u.unshift(["M",r.x,r.y]),u}function Te(t,e){var n=[];return Object(h["j"])(e,(function(e){var i=e[0];switch(i.toLowerCase()){case"m":case"l":case"c":n.push(we(e,t));break;case"a":n.push(Ce(e,t));break;case"z":default:n.push(e);break}})),n}function Pe(t,e){var n,i,r,o,a=[];return Object(h["j"])(e,(function(s,c){var l=s[0];switch(l.toLowerCase()){case"m":case"c":case"q":a.push(we(s,t));break;case"l":n=e[c-1],i=s,r=t.isTransposed,o=r?n[n.length-2]===i[1]:n[n.length-1]===i[2],o?a=a.concat(Me(n,i,t)):a.push(we(s,t));break;case"a":a.push(Ce(s,t));break;case"z":default:a.push(s);break}})),Se(a),a}var Ie=n("2ef1");function Be(t,e){var n=t.event,i=n.target,r=i.getCanvasBBox();return r.width>=e||r.height>=e?r:null}function Le(t,e){var n=t.event,i=n.target,r=i.getCanvasBBox();return r.width>=e||r.height>=e?i.attr("path"):null}function De(t){var e,n=t.event,i=n.target;return i&&(e=i.get("element")),e}function Re(t){var e,n=t.event,i=n.target;return i&&(e=i.get("delegateObject")),e}function _e(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function ze(t){return t&&t.component&&t.component.isList()}function Ye(t){return t&&t.component&&t.component.isSlider()}function Ne(t){var e=t.event,n=e.target;return n&&"mask"===n.get("name")}function Ge(t,e){var n=t.event.target;if("path"===n.get("type")){var i=Le(t,e);if(!i)return;return Qe(t.view,i)}var r=Be(t,e);return r?Ue(t.view,r):null}function Xe(t,e,n){var i=Be(t,n);if(!i)return null;var r=t.view,o=on(r,e,{x:i.x,y:i.y}),a=on(r,e,{x:i.maxX,y:i.maxY}),s={minX:o.x,minY:o.y,maxX:a.x,maxY:a.y};return Ue(e,s)}function Ve(t){var e=t.geometries,n=[];return Object(h["j"])(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&Object(h["j"])(t.views,(function(t){n=n.concat(Ve(t))})),n}function He(t,e,n){var i=Ve(t);return i.filter((function(t){return qe(t,e)===n}))}function We(t,e){var n=t.geometries,i=[];return Object(h["j"])(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));i=i.concat(n)})),i}function qe(t,e){var n,i=t.getModel(),r=i.data;return n=Object(h["C"])(r)?r[0][e]:r[e],n}function Ke(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function Ue(t,e){var n=Ve(t),i=[];return Object(h["j"])(n,(function(t){var n=t.shape,r=n.getCanvasBBox();Ke(e,r)&&i.push(t)})),i}function Ze(t){var e=[];return Object(h["j"])(t,(function(t){var n=t[0];if("A"!==n)for(var i=1;i<t.length;i+=2)e.push([t[i],t[i+1]]);else{var r=t.length;e.push([t[r-2],t[r-1]])}})),e}function Qe(t,e){var n=Ve(t),i=Ze(e),r=n.filter((function(t){var e,n=t.shape;if("path"===n.get("type"))e=Ze(n.attr("path"));else{var r=n.getCanvasBBox();e=Rt(r)}return Object(Ie["b"])(i,e)}));return r}function $e(t){return t.getComponents().map((function(t){return t.component}))}function Je(t,e){var n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)}function tn(t,e){if(t.length<=2)return Fe(t,!1);var n=t[0],i=[];Object(h["j"])(t,(function(t){i.push(t.x),i.push(t.y)}));var r=ke(i,e,null);return r.unshift(["M",n.x,n.y]),r}function en(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y}function nn(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function rn(t,e){var n=t.getCoordinate();return n.invert(e)}function on(t,e,n){var i=rn(t,n);return e.getCoordinate().convert(i)}function an(t,e,n,i){var r=!1;return Object(h["j"])(t,(function(t){if(t[n]===e[n]&&t[i]===e[i])return r=!0,!1})),r}function sn(t,e){var n=t.getScaleByField(e);return!n&&t.views&&Object(h["j"])(t.views,(function(t){if(n=sn(t,e),n)return!1})),n}var cn=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<arguments.length;e++)t[e]=arguments[e];if(1===t.length)return this.cacheMap[t[0]];2===t.length&&(this.cacheMap[t[0]]=t[1])},t.prototype.getAction=function(t){return this.actions.find((function(e){return e.name===t}))},t.prototype.addAction=function(t){this.actions.push(t)},t.prototype.removeAction=function(t){var e=this.actions,n=this.actions.indexOf(t);n>=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(h["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=$e(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var i=e.getBBox();return t?e.get("name")===t&&en(i,n):en(i,n)}))},t.prototype.destroy=function(){Object(h["j"])(this.actions.slice(),(function(t){t.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},t}(),ln=cn,un=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}(),hn=un;function fn(t,e,n){var i=t.split(":"),r=i[0],o=e.getAction(r)||me(r,e);if(!o)throw new Error("There is no action named ".concat(r));var a=i[1];return{action:o,methodName:a,arg:n}}function pn(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 dn={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},gn=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.callbackCaches={},i.emitCaches={},i.steps=n,i}return r(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(h["j"])(this.steps,(function(e,n){Object(h["j"])(e,(function(e){var i=t.getActionCallback(n,e);i&&t.bindEvent(e.trigger,i)}))}))},e.prototype.clearEvents=function(){var t=this;Object(h["j"])(this.steps,(function(e,n){Object(h["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 ln(t);this.context=e;var n=this.steps;Object(h["j"])(n,(function(t){Object(h["j"])(t,(function(t){if(Object(h["I"])(t.action))t.actionObject={action:Oe(t.action,e),methodName:"execute"};else if(Object(h["Q"])(t.action))t.actionObject=fn(t.action,e,t.arg);else if(Object(h["C"])(t.action)){var n=t.action,i=Object(h["C"])(t.arg)?t.arg:[t.arg];t.actionObject=[],Object(h["j"])(n,(function(n,r){t.actionObject.push(fn(n,e,i[r]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===dn.SHOW_ENABLE)return!0;if(t===dn.PROCESSING)return e===dn.START;if(t===dn.START)return e!==dn.PROCESSING;if(t===dn.END)return e===dn.PROCESSING||e===dn.START;if(t===dn.ROLLBACK){if(n[dn.END])return e===dn.END;if(e===dn.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!==dn.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,o=e.actionObject;if(e.action&&o){var a=this.getKey(t,e);if(!r[a]){var s=function(r){i.event=r,n.isAllowExecute(t,e)?(Object(h["C"])(o)?Object(h["j"])(o,(function(t){i.event=r,pn(t)})):(i.event=r,pn(o)),n.afterExecute(t,e),e.callback&&(i.event=r,e.callback(i))):i.event=null};e.debounce?r[a]=Object(h["g"])(s,e.debounce.wait,e.debounce.immediate):e.throttle?r[a]=Object(h["qb"])(s,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):r[a]=s}return r[a]}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}(hn),vn=gn,yn={};function mn(t){return yn[Object(h["V"])(t)]}function bn(t,e){yn[Object(h["V"])(t)]=e}function xn(t,e,n){var i=mn(t);if(!i)return null;if(Object(h["P"])(i)){var r=Object(h["db"])(Object(h["e"])(i),n);return new vn(e,r)}var o=i;return new o(e,n)}function On(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}},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 jn(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 wn(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=On(t),r=jn(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=Ft(t.getModel(),e),r=i.startAngle,o=i.endAngle,a=(r+o)/2,s=7.5,c=s*Math.cos(a),l=s*Math.sin(a);return{matrix:it["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:o(o({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:o(o({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:o(o({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:o(o({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:o(o({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:o(o({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:o(o({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:o(o({},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(h["h"])({},i.grid,{line:{type:"line"}})},radius:{title:null,grid:Object(h["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(gt["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(gt["TOOLTIP_CSS_CONST"].TITLE_CLASS)]={marginBottom:"12px",marginTop:"12px"},e["".concat(gt["TOOLTIP_CSS_CONST"].LIST_CLASS)]={margin:0,listStyleType:"none",padding:0},e["".concat(gt["TOOLTIP_CSS_CONST"].LIST_ITEM_CLASS)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e["".concat(gt["TOOLTIP_CSS_CONST"].MARKER_CLASS)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e["".concat(gt["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 Cn={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},Mn={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},Sn=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],An=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],kn=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Fn=function(t){void 0===t&&(t={});var e=t.backgroundColor,n=void 0===e?"transparent":e,i=t.subColor,r=void 0===i?"rgba(0,0,0,0.05)":i,o=t.paletteQualitative10,a=void 0===o?Sn:o,s=t.paletteQualitative20,c=void 0===s?An:s,l=t.paletteSemanticRed,u=void 0===l?"#F4664A":l,h=t.paletteSemanticGreen,f=void 0===h?"#30BF78":h,p=t.paletteSemanticYellow,d=void 0===p?"#FAAD14":p,g=t.paletteSequence,v=void 0===g?kn:g,y=t.fontFamily,m=void 0===y?'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':y,b=t.brandColor,x=void 0===b?a[0]:b;return{backgroundColor:n,brandColor:x,subColor:r,paletteQualitative10:a,paletteQualitative20:c,paletteSemanticRed:u,paletteSemanticGreen:f,paletteSemanticYellow:d,paletteSequence:v,fontFamily:m,axisLineBorderColor:Cn[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Cn[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:Cn[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Cn[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Cn[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Cn[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Cn[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:x,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Cn[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:Cn[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:Cn[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Cn[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:Cn[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Cn[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Cn[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Cn[25],annotationArcBorderColor:Cn[15],annotationArcBorder:1,annotationLineBorderColor:Cn[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Cn[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:Cn[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Cn[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:Cn[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Cn[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:Mn[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Cn[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:Mn[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Cn[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:x,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Mn[100],pointBorderOpacity:1,pointActiveBorderColor:Cn[100],pointSelectedBorder:2,pointSelectedBorderColor:Cn[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:x,hollowPointBorderOpacity:.95,hollowPointFillColor:Mn[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:Cn[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:Cn[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:x,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:x,areaFillOpacity:.25,areaActiveFillColor:x,areaActiveFillOpacity:.5,areaSelectedFillColor:x,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:x,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:Cn[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:Cn[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:x,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:Cn[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:Cn[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:x,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:Mn[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:Cn[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:Cn[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}};Fn();function En(t){var e=t.styleSheet,n=void 0===e?{}:e,i=a(t,["styleSheet"]),r=Fn(n);return Object(h["h"])({},wn(r),i)}var Tn=En({}),Pn={default:Tn};function In(t){return Object(h["s"])(Pn,Object(h["V"])(t),Pn.default)}function Bn(t,e){Pn[Object(h["V"])(t)]=En(e)}function Ln(t,e,n){var i=n.translate(t),r=n.translate(e);return Object(h["N"])(i,r)}function Dn(t,e){var n=e.coordinate,i=e.getXScale(),r=i.range,o=r[r.length-1],a=r[0],s=n.invert(t),c=s.x;return n.isPolar&&c>(1+o)/2&&(c=a),i.translate(i.invert(c))}function Rn(t,e,n){var i=n.coordinate,r=n.getYScale(),o=r.field,a=i.invert(e),s=r.invert(a.y),c=Object(h["m"])(t,(function(t){var e=t[m];return e[o][0]<=s&&e[o][1]>=s}));return c||t[t.length-1]}var _n=Object(h["ab"])((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,i=t.translate(e[0]),r=i,o=0;o<n;o++){var a=e[o],s=t.translate(a);s<i&&(i=s),s>r&&(r=s)}return(r-i)/(n-1)}));function zn(t,e,n){var i=e.getAttribute("position"),r=i.getFields(),o=e.scales,a=Object(h["I"])(n)||!n?r[0]:n,s=o[a],c=s?s.getText(t[a]):t[a]||a;return Object(h["I"])(n)?n(c,t):c}function Yn(t){var e=Object(h["xb"])(t.attributes);return Object(h["l"])(e,(function(t){return Object(h["f"])(y,t.type)}))}function Nn(t){for(var e,n=Yn(t),i=0,r=n;i<r.length;i++){var o=r[i],a=o.getScale(o.type);if(a&&a.isLinear){e=a;break}}var s=t.getXScale(),c=t.getYScale();return e||c||s}function Gn(t,e){var n=e.field,i=t[n];if(Object(h["C"])(i)){var r=i.map((function(t){return e.getText(t)}));return r.join("-")}return e.getText(i)}function Xn(t,e){var n,i=e.getGroupScales();if(i.length&&(n=i[0]),n){var r=n.field;return n.getText(t[r])}var o=Nn(e);return Ut(o)}function Vn(t,e,n){if(0===e.length)return null;var i=n.type,r=n.getXScale(),o=n.getYScale(),a=r.field,s=o.field,c=null;if("heatmap"===i||"point"===i){for(var l=n.coordinate,u=l.invert(t),f=r.invert(u.x),p=o.invert(u.y),d=1/0,g=0;g<e.length;g++){var v=e[g],y=v[m],b=Math.pow(y[a]-f,2)+Math.pow(y[s]-p,2);b<d&&(d=b,c=v)}return c}var x=e[0],O=e[e.length-1],j=Dn(t,n),w=x[m][a],C=x[m][s],M=O[m][a],S=o.isLinear&&Object(h["C"])(C);if(Object(h["C"])(w)){for(g=0;g<e.length;g++){var A=e[g];y=A[m];if(r.translate(y[a][0])<=j&&r.translate(y[a][1])>=j){if(!S){c=A;break}Object(h["C"])(c)||(c=[]),c.push(A)}}Object(h["C"])(c)&&(c=Rn(c,t,n))}else{var k=void 0;if(r.isLinear||"timeCat"===r.type){if((j>r.translate(M)||j<r.translate(w))&&(j>r.max||j<r.min))return null;var F=0,E=e.length-1,T=void 0;while(F<=E){T=Math.floor((F+E)/2);var P=e[T][m][a];if(Ln(P,j,r))return e[T];r.translate(P)<=r.translate(j)?(F=T+1,O=e[T],k=e[T+1]):(0===E&&(O=e[0]),E=T-1)}}else{for(g=0;g<e.length;g++){A=e[g],y=A[m];if(Ln(y[a],j,r)){if(!S){c=A;break}Object(h["C"])(c)||(c=[]),c.push(A)}else r.translate(y[a])<=j&&(O=A,k=e[g+1])}Object(h["C"])(c)&&(c=Rn(c,t,n))}O&&k&&Math.abs(r.translate(O[m][a])-j)>Math.abs(r.translate(k[m][a])-j)&&(O=k)}var I=_n(n.getXScale());return!c&&Math.abs(r.translate(O[m][a])-j)<=I/2&&(c=O),c}function Hn(t,e,n,i){void 0===n&&(n=""),void 0===i&&(i=!1);var r,a,s=t[m],c=zn(s,e,n),l=e.tooltipOption,u=e.theme.defaultColor,f=[];function p(e,n){if(i||!Object(h["K"])(n)&&""!==n){var r={title:c,data:s,mappingData:t,name:e,value:n,color:t.color||u,marker:!0};f.push(r)}}if(Object(h["O"])(l)){var d=l.fields,g=l.callback;if(g){var v=d.map((function(e){return t[m][e]})),y=g.apply(void 0,v),b=o({data:t[m],mappingData:t,title:c,color:t.color||u,marker:!0},y);f.push(b)}else for(var x=e.scales,O=0,j=d;O<j.length;O++){var w=j[O];if(!Object(h["K"])(s[w])){var C=x[w];r=Ut(C),a=C.getText(s[w]),p(r,a)}}}else{var M=Nn(e);a=Gn(s,M),r=Xn(s,e),p(r,a)}return f}function Wn(t,e,n,i){var r=i.showNil,o=[],a=t.dataArray;if(!Object(h["G"])(a)){t.sort(a);for(var s=0,c=a;s<c.length;s++){var l=c[s],u=Vn(e,l,t);if(u){var f=t.getElementId(u),p=t.elementsMap[f];if("heatmap"===t.type||p.visible){var d=Hn(u,t,n,r);d.length&&o.push(d)}}}}return o}function qn(t,e,n,i){var r=i.showNil,o=[],a=t.container,s=a.getShape(e.x,e.y);if(s&&s.get("visible")&&s.get("origin")){var c=s.get("origin").mappingData,l=Hn(c,t,n,r);l.length&&o.push(l)}return o}function Kn(t,e,n){for(var i=[],r=t.geometries,o=n.shared,a=n.title,s=n.reversed,c=0,l=r;c<l.length;c++){var u=l[c];if(u.visible&&!1!==u.tooltipOption){var h=u.type,f=void 0;f=["point","edge","polygon"].includes(h)?qn(u,e,a,n):["area","line","path","heatmap"].includes(h)||!1!==o?Wn(u,e,a,n):qn(u,e,a,n),f.length&&(s&&f.reverse(),i.push(f))}}return i}function Un(t,e,n){for(var i=Kn(t,e,n),r=0,o=t.views;r<o.length;r++){var a=o[r];i=i.concat(Kn(a,e,n))}return i}function Zn(t){return!Object(h["M"])(t)&&!Object(h["C"])(t)}function Qn(t){void 0===t&&(t=0);var e=Object(h["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=s(s([],e,!0),e,!0);break;case 3:e=s(s([],e,!0),[e[1]],!1);break;default:e=e.slice(0,4);break}return e}var $n={};function Jn(t,e){$n[t]=e}function ti(){return Object.keys($n)}function ei(t){return $n[t]}var ni=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(h["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,s=o({start:t,end:e},r),c=pt(a?"polar":i);return this.coordinate=new c(s),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 o({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;Object(h["j"])(n,(function(n){var i,r=n[0],o=n.slice(1),a=!!Object(h["K"])(t)||t.includes(r);a&&(i=e.coordinate)[r].apply(i,o)}))},t}(),ii=ni,ri=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 I["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}(),oi=ri;function ai(t){var e=t.getController("axis"),n=t.getController("legend"),i=t.getController("annotation"),r=t.getController("slider"),o=t.getController("scrollbar");[e,r,o,n,i].forEach((function(t){t&&t.layout()}))}var si=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,i){var r=n,o=this.getScaleMeta(i);if(0===e.length&&o){var a=o.scale,s={type:a.type};a.isCategory&&(s.values=a.values),r=Object(h["h"])(s,o.scaleDef,n)}var c=qt(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 o=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER,s=[];Object(h["j"])(i,(function(t){var e=n.getScale(t);a=Object(h["M"])(e.max)?Math.max(a,e.max):a,o=Object(h["M"])(e.min)?Math.min(o,e.min):o,Object(h["j"])(e.values,(function(t){s.includes(t)||s.push(t)}))})),Object(h["j"])(i,(function(i){var r=n.getScale(i);if(r.isContinuous)r.change({min:o,max:a,values:s});else if(r.isCategory){var c=r.range,l=n.getScaleMeta(i);s&&!Object(h["s"])(l,["scaleDef","range"])&&(c=Zt(Object(h["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?(Kt(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 o=this.syncScales.get(r);o||(o=[],this.syncScales.set(r,o)),o.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=Object(h["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(h["s"])(n,["sync"]);return!0===r?i:!1===r?void 0:r},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}(),ci=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=t[0],n=t[1],i=t[2],r=t[3];return this.top=Math.max(this.top,e),this.right=Math.max(this.right,n),this.bottom=Math.max(this.bottom,i),this.left=Math.max(this.left,r),this},t.prototype.shrink=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return this.top+=e,this.right+=n,this.bottom+=i,this.left+=r,this},t.prototype.inc=function(t,e){var n=t.width,i=t.height;switch(e){case l.TOP:case l.TOP_LEFT:case l.TOP_RIGHT:this.top+=i;break;case l.RIGHT:case l.RIGHT_TOP:case l.RIGHT_BOTTOM:this.right+=n;break;case l.BOTTOM:case l.BOTTOM_LEFT:case l.BOTTOM_RIGHT:this.bottom+=i;break;case l.LEFT:case l.LEFT_TOP:case l.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,s([void 0],this.getPadding(),!1)))},t}();function li(t){var e=t.padding;if(!Zn(e))return new(ci.bind.apply(ci,s([void 0],Qn(e),!1)));var n=t.viewBBox,i=new ci,r=[],o=[],a=[];return Object(h["j"])(t.getComponents(),(function(t){var e=t.type;e===u.AXIS?r.push(t):[u.LEGEND,u.SLIDER,u.SCROLLBAR].includes(e)?o.push(t):e!==u.GRID&&e!==u.TOOLTIP&&a.push(t)})),Object(h["j"])(r,(function(t){var e=t.component,r=e.getLayoutBBox(),o=new Dt(r.x,r.y,r.width,r.height),a=o.exceed(n);i.max(a)})),Object(h["j"])(o,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),o=e.get("padding"),a=new Dt(r.x,r.y,r.width,r.height).expand(o);i.inc(a,n)})),Object(h["j"])(a,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),o=new Dt(r.x,r.y,r.width,r.height);i.inc(o,n)})),i}function ui(t,e,n){var i=n.instance();e.forEach((function(t){t.autoPadding=i.max(t.autoPadding.getPadding())}))}var hi=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=ti(),n.scalePool=new si,n.layoutFunc=ai,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(h["vb"])("view"):i,a=e.parent,s=e.canvas,c=e.backgroundGroup,l=e.middleGroup,u=e.foregroundGroup,f=e.region,p=void 0===f?{start:{x:0,y:0},end:{x:1,y:1}}:f,d=e.padding,g=e.appendPadding,v=e.theme,y=e.options,m=e.limitInPlot,b=e.syncViewPadding;return n.parent=a,n.canvas=s,n.backgroundGroup=c,n.middleGroup=l,n.foregroundGroup=u,n.region=p,n.padding=d,n.appendPadding=g,n.options=o(o({},n.options),y),n.limitInPlot=m,n.id=r,n.syncViewPadding=b,n.themeObject=Object(h["O"])(v)?Object(h["h"])({},In("default"),En(v)):In(v),n.init(),n}return r(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(f.BEFORE_RENDER,oi.fromData(this,f.BEFORE_RENDER,e)),this.paint(t),this.emit(f.AFTER_RENDER,oi.fromData(this,f.AFTER_RENDER,e)),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(f.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n<e.length;n++)e[n].clear(),e[n].container.remove(!0),e[n].labelsContainer.remove(!0);this.geometries=[];var i=this.controllers;for(n=0;n<i.length;n++)"annotation"===i[n].name?i[n].clear(!0):i[n].clear();this.createdScaleKeys.forEach((function(e,n){t.getRootView().scalePool.deleteScale(n)})),this.createdScaleKeys.clear();var r=this.views;for(n=0;n<r.length;n++)r[n].clear();this.emit(f.AFTER_CLEAR)},e.prototype.destroy=function(){this.emit(f.BEFORE_DESTROY);var e=this.interactions;Object(h["j"])(e,(function(t){t&&t.destroy()})),this.clear();for(var n=this.controllers,i=0,r=n.length;i<r;i++){var o=n[i];o.destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.geometries,i=0,r=n.length;i<r;i++){var o=n[i];o.changeVisible(e)}var a=this.controllers;for(i=0,r=a.length;i<r;i++){var s=a[i];s.changeVisible(e)}return this.foregroundGroup.set("visible",e),this.middleGroup.set("visible",e),this.backgroundGroup.set("visible",e),this.getCanvas().draw(),this},e.prototype.data=function(t){return Object(h["lb"])(this.options,"data",t),this.isDataChanged=!0,this},e.prototype.source=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(t)},e.prototype.filter=function(t,e){return Object(h["I"])(e)?(Object(h["lb"])(this.options,["filters",t],e),this):(!e&&Object(h["s"])(this.options,["filters",t])&&delete this.options.filters[t],this)},e.prototype.axis=function(t,e){return Object(h["D"])(t)?Object(h["lb"])(this.options,["axes"],t):Object(h["lb"])(this.options,["axes",t],e),this},e.prototype.legend=function(t,e){return Object(h["D"])(t)?Object(h["lb"])(this.options,["legends"],t):Object(h["Q"])(t)?(Object(h["lb"])(this.options,["legends",t],e),Object(h["P"])(e)&&(null===e||void 0===e?void 0:e.selected)&&Object(h["lb"])(this.options,["filters",t],(function(t){var n;return null===(n=null===e||void 0===e?void 0:e.selected[t])||void 0===n||n}))):Object(h["lb"])(this.options,["legends"],t),this},e.prototype.scale=function(t,e){var n=this;return Object(h["Q"])(t)?Object(h["lb"])(this.options,["scales",t],e):Object(h["O"])(t)&&Object(h["j"])(t,(function(t,e){Object(h["lb"])(n.options,["scales",e],t)})),this},e.prototype.tooltip=function(t){return Object(h["lb"])(this.options,"tooltip",t),this},e.prototype.annotation=function(){return this.getController("annotation")},e.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},e.prototype.coordinate=function(t,e){return Object(h["Q"])(t)?Object(h["lb"])(this.options,"coordinate",{type:t,cfg:e}):Object(h["lb"])(this.options,"coordinate",t),this.coordinateController.update(this.options.coordinate),this.coordinateController},e.prototype.coord=function(t,e){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(t,e)},e.prototype.facet=function(t,e){this.facetInstance&&this.facetInstance.destroy();var n=he(t);if(!n)throw new Error("facet '".concat(t,"' is not exist!"));return this.facetInstance=new n(this,o(o({},e),{type:t})),this},e.prototype.animate=function(t){return Object(h["lb"])(this.options,"animate",t),this},e.prototype.updateOptions=function(t){return this.clear(),Object(h["db"])(this.options,t),this.views.forEach((function(t){return t.destroy()})),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},e.prototype.option=function(t,n){if(e.prototype[t])throw new Error("Can't use built in variable name \"".concat(t,'", please change another one.'));return Object(h["lb"])(this.options,t,n),this},e.prototype.theme=function(t){return this.themeObject=Object(h["O"])(t)?Object(h["h"])({},this.themeObject,En(t)):In(t),this},e.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var i=xn(t,this,e);return i&&(i.init(),this.interactions[t]=i),this},e.prototype.removeInteraction=function(t){var e=this.interactions[t];e&&(e.destroy(),this.interactions[t]=void 0)},e.prototype.changeData=function(t){this.isDataChanged=!0,this.emit(f.BEFORE_CHANGE_DATA,oi.fromData(this,f.BEFORE_CHANGE_DATA,null)),this.data(t),this.paint(!0);for(var e=this.views,n=0,i=e.length;n<i;n++){var r=e[n];r.changeData(t)}this.emit(f.AFTER_CHANGE_DATA,oi.fromData(this,f.AFTER_CHANGE_DATA,null))},e.prototype.createView=function(t){this.parent&&this.parent.parent&&console.warn("The view nesting recursive feature will be removed at G2 V4.1. Please avoid to use it.");var n={data:this.options.data,scales:Object(h["e"])(this.options.scales),axes:Object(h["e"])(this.options.axes),coordinate:Object(h["e"])(this.coordinateController.getOption()),tooltip:Object(h["e"])(this.options.tooltip),legends:Object(h["e"])(this.options.legends),animate:this.options.animate,visible:this.visible},i=new e(o(o({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:v.BG}),middleGroup:this.middleGroup.addGroup({zIndex:v.MID}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:v.FORE}),theme:this.themeObject,padding:this.padding},t),{options:o(o({},n),Object(h["s"])(t,"options",{}))}));return this.views.push(i),i},e.prototype.view=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(t)},e.prototype.removeView=function(t){var e=Object(h["jb"])(this.views,(function(e){return e===t}))[0];return e&&e.destroy(),e},e.prototype.getCoordinate=function(){return this.coordinateInstance},e.prototype.getTheme=function(){return this.themeObject},e.prototype.getXScale=function(){var t=this.geometries[0];return t?t.getXScale():null},e.prototype.getYScales=function(){var t={},e=[];return this.geometries.forEach((function(n){var i=n.getYScale(),r=i.field;t[r]||(t[r]=!0,e.push(i))})),e},e.prototype.getScalesByDim=function(t){for(var e=this.geometries,n={},i=0,r=e.length;i<r;i++){var o=e[i],a="x"===t?o.getXScale():o.getYScale();a&&!n[a.field]&&(n[a.field]=a)}return n},e.prototype.getScale=function(t,e){var n=e||this.getScaleKey(t);return this.getRootView().scalePool.getScale(n)},e.prototype.getScaleByField=function(t,e){return this.getScale(t,e)},e.prototype.getOptions=function(){return this.options},e.prototype.getData=function(){return this.filteredData},e.prototype.getOriginalData=function(){return this.options.data},e.prototype.getPadding=function(){return this.autoPadding.getPadding()},e.prototype.getGeometries=function(){return this.geometries},e.prototype.getElements=function(){return Object(h["ib"])(this.geometries,(function(t,e){return t.concat(e.getElements())}),[])},e.prototype.getElementsBy=function(t){return this.getElements().filter((function(e){return t(e)}))},e.prototype.getLayer=function(t){return t===c.BG?this.backgroundGroup:t===c.MID?this.middleGroup:(c.FORE,this.foregroundGroup)},e.prototype.isPointInPlot=function(t){return Nt(this.getCoordinate(),t)},e.prototype.getLegendAttributes=function(){return Object(h["q"])(this.geometries.map((function(t){return t.getGroupAttributes()})))},e.prototype.getGroupScales=function(){var t=this.geometries.map((function(t){return t.getGroupScales()}));return Lt(Object(h["q"])(t))},e.prototype.getCanvas=function(){return this.getRootView().canvas},e.prototype.getRootView=function(){var t=this;while(1){if(!t.parent)break;t=t.parent}return t},e.prototype.getXY=function(t){var e,n,i=this.getCoordinate(),r=this.getScalesByDim("x"),o=this.getScalesByDim("y");if(Object(h["j"])(t,(function(t,i){r[i]&&(e=r[i].scale(t)),o[i]&&(n=o[i].scale(t))})),!Object(h["K"])(e)&&!Object(h["K"])(n))return i.convert({x:e,y:n})},e.prototype.getController=function(t){return Object(h["m"])(this.controllers,(function(e){return e.name===t}))},e.prototype.showTooltip=function(t){var e=this.getController("tooltip");return e&&e.showTooltip(t),this},e.prototype.hideTooltip=function(){var t=this.getController("tooltip");return t&&t.hideTooltip(),this},e.prototype.lockTooltip=function(){var t=this.getController("tooltip");return t&&t.lockTooltip(),this},e.prototype.unlockTooltip=function(){var t=this.getController("tooltip");return t&&t.unlockTooltip(),this},e.prototype.isTooltipLocked=function(){var t=this.getController("tooltip");return t&&t.isTooltipLocked()},e.prototype.getTooltipItems=function(t){var e=this.getController("tooltip");return e?e.getTooltipItems(t):[]},e.prototype.getSnapRecords=function(t){for(var e=this.geometries,n=[],i=0,r=e.length;i<r;i++){var o=e[i],a=o.dataArray;o.sort(a);for(var s=void 0,c=0,l=a.length;c<l;c++){var u=a[c];s=Vn(t,u,o),s&&n.push(s)}}var h=this.views;for(i=0,r=h.length;i<r;i++){var f=h[i],p=f.getSnapRecords(t);n=n.concat(p)}return n},e.prototype.getComponents=function(){for(var t=[],e=this.controllers,n=0,i=e.length;n<i;n++){var r=e[n];t=t.concat(r.getComponents())}return t},e.prototype.filterData=function(t){var e=this.options.filters;return 0===Object(h["mb"])(e)?t:Object(h["l"])(t,(function(t,n){var i=Object.keys(e);return i.every((function(i){var r=e[i];return r(t[i],t,n)}))}))},e.prototype.filterFieldData=function(t,e){var n=this.options.filters,i=Object(h["s"])(n,t);return Object(h["S"])(i)?e:e.filter((function(e,n){return i(e[t],e,n)}))},e.prototype.adjustCoordinate=function(){var t=this.getCoordinate(),e=t.start,n=t.end,i=this.coordinateBBox.bl,r=this.coordinateBBox.tr;Object(h["H"])(e,i)&&Object(h["H"])(n,r)?this.isCoordinateChanged=!1:(this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(i,r))},e.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(f.BEFORE_PAINT),this.renderPaddingRecursive(t),this.renderLayoutRecursive(t),this.renderBackgroundStyleShape(),this.renderPaintRecursive(t),this.emit(f.AFTER_PAINT),this.isDataChanged=!1},e.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=Object(h["s"])(this.themeObject,"background");if(t){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var e=this.viewBBox,n=e.x,i=e.y,r=e.width,o=e.height;this.backgroundStyleRectShape.attr({fill:t,x:n,y:i,width:r,height:o})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},e.prototype.renderPaddingRecursive=function(t){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.autoPadding=li(this).shrink(Qn(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate();for(var e=this.views,n=0,i=e.length;n<i;n++){var r=e[n];r.renderPaddingRecursive(t)}},e.prototype.renderLayoutRecursive=function(t){var e=!0===this.syncViewPadding?ui:Object(h["I"])(this.syncViewPadding)?this.syncViewPadding:void 0;e&&(e(this,this.views,ci),this.views.forEach((function(t){t.coordinateBBox=t.viewBBox.shrink(t.autoPadding.getPadding()),t.adjustCoordinate()}))),this.doLayout();for(var n=this.views,i=0,r=n.length;i<r;i++){var o=n[i];o.renderLayoutRecursive(t)}},e.prototype.renderPaintRecursive=function(t){var e=this.middleGroup;if(this.limitInPlot){var n=Xt(this.coordinateInstance),i=n.type,r=n.attrs;e.setClip({type:i,attrs:r})}else e.setClip(void 0);this.paintGeometries(t),this.renderComponents(t);for(var o=this.views,a=0,s=o.length;a<s;a++){var c=o[a];c.renderPaintRecursive(t)}},e.prototype.createScale=function(t,e,n,i){var r=Object(h["s"])(this.options.scales,[t]),a=o(o({},r),n);return this.parent?this.parent.createScale(t,e,a,i):this.scalePool.createScale(t,e,a,i)},e.prototype.renderDataRecursive=function(t){this.doFilterData(),this.createCoordinate(),this.initGeometries(t),this.renderFacet(t);for(var e=this.views,n=0,i=e.length;n<i;n++){var r=e[n];r.renderDataRecursive(t)}},e.prototype.calculateViewBBox=function(){var t,e,n,i;if(this.parent){var r=this.parent.coordinateBBox;t=r.x,e=r.y,n=r.width,i=r.height}else t=0,e=0,n=this.canvas.get("width"),i=this.canvas.get("height");var o=this.region,a=o.start,s=o.end,c=new Dt(t+n*a.x,e+i*a.y,n*(s.x-a.x),i*(s.y-a.y));this.viewBBox&&this.viewBBox.isEqual(c)||(this.viewBBox=new Dt(t+n*a.x,e+i*a.y,n*(s.x-a.x),i*(s.y-a.y))),this.coordinateBBox=this.viewBBox},e.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},e.prototype.initComponentController=function(){for(var t=this.usedControllers,e=0,n=t.length;e<n;e++){var i=t[e],r=ei(i);r&&this.controllers.push(new r(this))}},e.prototype.createViewEvent=function(t){var e=t.shape,n=t.name,i=e?e.get("origin"):null,r=new oi(this,t,i);return r.type=n,r},e.prototype.doPlotEvent=function(t){var e=t.type,n=t.x,i=t.y,r={x:n,y:i},o=["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"];if(o.includes(e)){var a=this.isPointInPlot(r),s=t.clone();if(a){var c="plot:".concat(e);s.type=c,this.emit(c,s),"mouseleave"!==e&&"touchend"!==e||(this.isPreMouseInPlot=!1)}"mousemove"===e||"touchmove"===e?(this.isPreMouseInPlot&&!a?("mousemove"===e&&(s.type=d.MOUSE_LEAVE,this.emit(d.MOUSE_LEAVE,s)),s.type=d.LEAVE,this.emit(d.LEAVE,s)):!this.isPreMouseInPlot&&a&&("mousemove"===e&&(s.type=d.MOUSE_ENTER,this.emit(d.MOUSE_ENTER,s)),s.type=d.ENTER,this.emit(d.ENTER,s)),this.isPreMouseInPlot=a):"mouseleave"!==e&&"touchend"!==e||this.isPreMouseInPlot&&("mouseleave"===e&&(s.type=d.MOUSE_LEAVE,this.emit(d.MOUSE_LEAVE,s)),s.type=d.LEAVE,this.emit(d.LEAVE,s),this.isPreMouseInPlot=!1)}},e.prototype.doFilterData=function(){var t=this.options.data;this.filteredData=this.filterData(t)},e.prototype.initGeometries=function(t){this.createOrUpdateScales();for(var e=this.getCoordinate(),n=Object(h["s"])(this.options,"scales",{}),i=this.geometries,r=0,o=i.length;r<o;r++){var a=i[r];a.scales=this.getGeometryScales();var s={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?a.update(s):a.init(s)}this.adjustScales()},e.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),n=this.getOptions(),i=n.data,r=n.scales,o=void 0===r?{}:r,a=this.filteredData,s=0,c=t.length;s<c;s++){var l=t[s],u=o[l],h=this.getScaleKey(l);this.createScale(l,e.includes(l)?i:a,u,h),this.createdScaleKeys.set(h,!0)}},e.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},e.prototype.getGeometryScales=function(){for(var t=this.getScaleFields(),e={},n=0;n<t.length;n++){var i=t[n];e[i]=this.getScaleByField(i)}return e},e.prototype.getScaleFields=function(){for(var t=[],e=new Map,n=this.geometries,i=0;i<n.length;i++){var r=n[i],o=r.getScaleFields();Lt(o,t,e)}return t},e.prototype.getGroupedFields=function(){for(var t=[],e=new Map,n=this.geometries,i=0;i<n.length;i++){var r=n[i],o=r.getGroupFields();Lt(o,t,e)}return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=s([this.getXScale()],this.getYScales(),!0).filter((function(t){return!!t})),n=this.getCoordinate(),i=this.options.scales;Object(h["j"])(e,(function(e){var r=e.field,o=e.values,a=e.isCategory,s=e.isIdentity;(a||s)&&o&&!Object(h["s"])(i,[r,"range"])&&(e.range=Zt(e,n,t.theme))}))},e.prototype.initComponents=function(t){for(var e=this.controllers,n=0;n<e.length;n++){var i=e[n];t?i.update():(i.clear(),i.render())}},e.prototype.doLayout=function(){this.layoutFunc(this)},e.prototype.createCoordinate=function(){var t=this.coordinateBBox.bl,e=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(t,e)},e.prototype.paintGeometries=function(t){for(var e=this.options.animate,n=this.getCoordinate(),i={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},r=this.geometries,o=0;o<r.length;o++){var a=r[o];a.coordinate=n,a.canvasRegion=i,e||a.animate(!1),a.paint(t)}},e.prototype.renderComponents=function(t){for(var e=0;e<this.getComponents().length;e++){var n=this.getComponents()[e];n.component.render()}},e.prototype.renderFacet=function(t){this.facetInstance&&(t?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},e.prototype.initOptions=function(){var t=this,e=this.options,n=e.geometries,i=void 0===n?[]:n,r=e.interactions,o=void 0===r?[]:r,s=e.views,c=void 0===s?[]:s,l=e.annotations,u=void 0===l?[]:l,f=e.coordinate,p=e.events,d=e.facets;this.coordinateController?f&&this.coordinateController.update(f):this.coordinateController=new ii(f);for(var g=0;g<i.length;g++){var v=i[g];this.createGeometry(v)}for(var y=0;y<o.length;y++){var m=o[y],b=m.type,x=m.cfg;this.interaction(b,x)}for(var O=0;O<c.length;O++){var j=c[O];this.createView(j)}for(var w=this.getController("annotation"),C=0;C<u.length;C++){var M=u[C];w.annotation(M)}p&&Object(h["j"])(p,(function(e,n){t.on(n,e)})),d&&Object(h["j"])(d,(function(e){var n=e.type,i=a(e,["type"]);t.facet(n,i)}))},e.prototype.createGeometry=function(t){var e=t.type,n=t.cfg,i=void 0===n?{}:n;if(this[e]){var r=this[e](i);Object(h["j"])(t,(function(t,e){Object(h["I"])(r[e])&&r[e](t)}))}},e.prototype.getScaleKey=function(t){return"".concat(this.id,"-").concat(t)},e}(P);function fi(t,e){hi.prototype[t.toLowerCase()]=function(t){void 0===t&&(t={});var n=o({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),i=new e(n);return this.geometries.push(i),i}}var pi=hi,di=function(t){function e(e){var n=this,i=e.container,r=e.width,a=e.height,s=e.autoFit,c=void 0!==s&&s,l=e.padding,u=e.appendPadding,f=e.renderer,p=void 0===f?"canvas":f,d=e.pixelRatio,g=e.localRefresh,y=void 0===g||g,m=e.visible,b=void 0===m||m,x=e.supportCSSTransform,O=void 0!==x&&x,j=e.defaultInteractions,C=void 0===j?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text"]:j,S=e.options,A=e.limitInPlot,F=e.theme,E=e.syncViewPadding,T=Object(h["Q"])(i)?document.getElementById(i):i,P=Object(M["b"])('<div style="position:relative;"></div>');T.appendChild(P);var I=k(T,c,r,a),B=w(p),L=new B.Canvas(o({container:P,pixelRatio:d,localRefresh:y,supportCSSTransform:O},I));return n=t.call(this,{parent:null,canvas:L,backgroundGroup:L.addGroup({zIndex:v.BG}),middleGroup:L.addGroup({zIndex:v.MID}),foregroundGroup:L.addGroup({zIndex:v.FORE}),padding:l,appendPadding:u,visible:b,options:S,limitInPlot:A,theme:F,syncViewPadding:E})||this,n.onResize=Object(h["g"])((function(){n.forceFit()}),300),n.ele=T,n.canvas=L,n.width=I.width,n.height=I.height,n.autoFit=c,n.localRefresh=y,n.renderer=p,n.wrapperElement=P,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(C),n}return r(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;Object(h["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(f.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(f.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(),F(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=k(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){Object(M["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}(pi),gi=di,vi=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){Object(h["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 yi(t){for(var e=[],n=function(n){var i=t[n],r=Object(h["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;i<t.length;i++)n(i);return e}var mi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return r(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){var t=this.view.getOptions().tooltip;return!1!==t},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(n.length){var i=this.getTitle(n),r={x:n[0].x,y:n[0].y};e.emit("tooltip:show",oi.fromData(e,"tooltip:show",o({items:n,title:i},t)));var a=this.getTooltipCfg(),s=a.follow,c=a.showMarkers,l=a.showCrosshairs,u=a.showContent,f=a.marker,p=this.items,d=this.title;if(Object(h["H"])(d,i)&&Object(h["H"])(p,n)?(this.tooltip&&s&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",oi.fromData(e,"tooltip:change",o({items:n,title:i},t))),(Object(h["I"])(u)?u(n):u)&&(this.tooltip||this.renderTooltip(),this.tooltip.update(Object(h["db"])({},a,{items:this.getItemsAfterProcess(n),title:i},s?t:{})),this.tooltip.show()),c&&this.renderTooltipMarkers(n,f)),this.items=n,this.title=i,l){var g=Object(h["s"])(a,["crosshairs","follow"],!1);this.renderCrosshairs(g?t:r,a)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){var t=this.getTooltipCfg().follow;if(t){var e=this.tooltipMarkersGroup;e&&e.hide();var n=this.xCrosshair,i=this.yCrosshair;n&&n.hide(),i&&i.hide();var r=this.tooltip;r&&r.hide(),this.view.emit("tooltip:hide",oi.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this,e=t.tooltip,n=t.xCrosshair,i=t.yCrosshair,r=t.tooltipMarkersGroup;e&&(e.hide(),e.clear()),n&&n.clear(),i&&i.clear(),r&&r.clear(),(null===e||void 0===e?void 0:e.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},e.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this,n=e.tooltip,i=e.tooltipMarkersGroup,r=e.xCrosshair,o=e.yCrosshair;t?(n&&n.show(),i&&i.show(),r&&r.show(),o&&o.show()):(n&&n.hide(),i&&i.hide(),r&&r.hide(),o&&o.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e=this.findItemsFromView(this.view,t);if(e.length){e=Object(h["q"])(e);for(var n=0,i=e;n<i.length;n++)for(var r=i[n],o=0,a=r;o<a.length;o++){var s=a[o],c=s.mappingData,l=c.x,u=c.y;s.x=Object(h["C"])(l)?l[l.length-1]:l,s.y=Object(h["C"])(u)?u[u.length-1]:u}var f=this.getTooltipCfg().shared;if(!1===f&&e.length>1){for(var p=e[0],d=Math.abs(t.y-p[0].y),g=0,v=e;g<v.length;g++){var y=v[g],m=Math.abs(t.y-y[0].y);m<=d&&(p=y,d=m)}e=[p]}return yi(Object(h["q"])(e))}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,o=i.y,a=i.width,s=i.height;return new Dt(r,o,a,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(h["s"])(i,["components","tooltip"],{}),o=Object(h["s"])(n,"enterable",r.enterable);return Object(h["h"])({},r,n,{capture:!(!o&&!this.isLocked)})},e.prototype.processCustomContent=function(t){if(Object(h["D"])(t)||!Object(h["s"])(t,"customContent"))return t;var e=t.customContent,n=function(t,n){var i=e(t,n)||"";return Object(h["Q"])(i)?'<div class="g2-tooltip">'+i+"</div>":i};return o(o({},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 jt(o(o({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},e.prototype.renderTooltipMarkers=function(t,e){for(var n=this.getTooltipMarkersGroup(),i=0,r=t;i<r.length;i++){var a=r[i],s=a.x,c=a.y,l=o(o({fill:a.color,symbol:"circle",shadowColor:a.color},e),{x:s,y:c});n.addShape("marker",{attrs:l})}},e.prototype.renderCrosshairs=function(t,e){var n=Object(h["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=this.getViewWithGeometry(this.view).getCoordinate();if(Nt(n,t)){var i,r;if(n.isRect)n.isTransposed?(i={x:n.start.x,y:t.y},r={x:n.end.x,y:t.y}):(i={x:t.x,y:n.end.y},r={x:t.x,y:n.start.y});else{var o=Gt(n,t),a=n.getCenter(),s=n.getRadius();r=St(a.x,a.y,s,o),i=a}var c=Object(h["h"])({start:i,end:r,container:this.getTooltipCrosshairsGroup()},Object(h["s"])(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete c.type;var l=this.xCrosshair;l?l.update(c):(l=new gt["Crosshair"].Line(c),l.init()),l.render(),l.show(),this.xCrosshair=l}},e.prototype.renderYCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if(Nt(n,t)){var i,r;if(n.isRect){var o=void 0,a=void 0;n.isTransposed?(o={x:t.x,y:n.end.y},a={x:t.x,y:n.start.y}):(o={x:n.start.x,y:t.y},a={x:n.end.x,y:t.y}),i={start:o,end:a},r="Line"}else i={center:n.getCenter(),radius:Yt(n,t),startAngle:n.startAngle,endAngle:n.endAngle},r="Circle";i=Object(h["h"])({container:this.getTooltipCrosshairsGroup()},i,Object(h["s"])(e,"crosshairs",{}),this.getCrosshairsText("y",t,e)),delete i.type;var s=this.yCrosshair;s?n.isRect&&"circle"===s.get("type")||!n.isRect&&"line"===s.get("type")?(s=new gt["Crosshair"][r](i),s.init()):s.update(i):(s=new gt["Crosshair"][r](i),s.init()),s.render(),s.show(),this.yCrosshair=s}},e.prototype.getCrosshairsText=function(t,e,n){var i=Object(h["s"])(n,["crosshairs","text"]),r=Object(h["s"])(n,["crosshairs","follow"]),o=this.items;if(i){var a=this.getViewWithGeometry(this.view),s=o[0],c=a.getXScale(),l=a.getYScales()[0],u=void 0,f=void 0;if(r){var p=this.view.getCoordinate().invert(e);u=c.invert(p.x),f=l.invert(p.y)}else u=s.data[c.field],f=s.data[l.field];var d="x"===t?u:f;return Object(h["I"])(i)?i=i(t,d,o,e):i.content=d,{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){if(!1===t.getOptions().tooltip)return[];for(var n=this.getTooltipCfg(),i=Kn(t,e,n),r=0,o=t.views;r<o.length;r++){var a=o[r];i=i.concat(this.findItemsFromView(a,e))}return i},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:Object(h["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}(vi),bi=mi,xi={};function Oi(t){return xi[t.toLowerCase()]}function ji(t,e){xi[t.toLowerCase()]=e}var wi={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},Ci={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"}}},Mi={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 Si(t,e){return{delay:Object(h["I"])(t.delay)?t.delay(e):t.delay,easing:Object(h["I"])(t.easing)?t.easing(e):t.easing,duration:Object(h["I"])(t.duration)?t.duration(e):t.duration,callback:t.callback,repeat:t.repeat}}function Ai(t,e,n){var i=Ci[t];return i&&(Object(h["I"])(i)&&(i=i(e)),i=Object(h["h"])({},wi,i),n)?i[n]:i}function ki(t,e,n){var i=Object(h["s"])(t.get("origin"),"data",m),r=e.animation,o=Si(e,i);if(r){var a=Oi(r);a&&a(t,o,n)}else t.animate(n.toAttrs,o)}function Fi(t,e,n,i,r){if(Mi[n]){var a=Mi[n](i),s=Oi(Object(h["s"])(a,"animation",""));if(s){var c=o(o(o({},wi.appear),a),e);t.stopAnimate(),s(t,c,{coordinate:i,minYPoint:r,toAttrs:null})}}}var Ei="element-background",Ti=function(t){function e(e){var n=t.call(this,e)||this;n.states=[];var i=e.shapeFactory,r=e.container,o=e.offscreenGroup,a=e.elementIndex,s=e.visible,c=void 0===s||s;return n.shapeFactory=i,n.container=r,n.offscreenGroup=o,n.visible=c,n.elementIndex=a,n}return r(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(),o=n.drawShape(this.shapeType,t,r);o.cfg.data=this.data,o.cfg.origin=t,o.cfg.element=this,this.syncShapeStyle(i,o,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?ki(i,r,{coordinate:n.coordinate,toAttrs:o({},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=void 0,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,o=n.model,a=n.shape,s=n.shapeType,c=i.indexOf(t);if(e){if(c>-1)return;i.push(t),"active"!==t&&"selected"!==t||null===a||void 0===a||a.toFront()}else{if(-1===c)return;i.splice(c,1),"active"!==t&&"selected"!==t||(this.geometry.zIndexReversed?a.setZIndex(this.geometry.elements.length-this.elementIndex):a.setZIndex(this.elementIndex))}var l=r.drawShape(s,o,this.getOffscreenGroup());i.length?this.syncShapeStyle(a,l,i,null):this.syncShapeStyle(a,l,["reset"],null),l.remove(!0);var u={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",u),Object(gt["propagationDelegate"])(this.shape,"statechange",u)},e.prototype.clearStates=function(){var t=this,e=this.states;Object(h["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,o=i.defaultShapeType,a=i.theme[e]||i.theme[o];this.statesStyle=Object(h["h"])({},a,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),i=Object(h["s"])(n,[t,"style"],{}),r=i[e]||i;return Object(h["I"])(r)?r(this):r},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var i=n[t];return i?o(o({},i),{callback:function(){var t;Object(h["I"])(i.callback)&&i.callback(),null===(t=e.geometry)||void 0===t||t.emit(p.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,s=i.shapeType;if(this.shape=r.drawShape(s,t,a),this.shape){this.setShapeInfo(this.shape,t);var c=this.shape.cfg.name;c?Object(h["Q"])(c)&&(this.shape.cfg.name=["element",c]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var l=e?"enter":"appear",u=this.getAnimateCfg(l);u&&(null===(n=this.geometry)||void 0===n||n.emit(p.BEFORE_DRAW_ANIMATE),ki(this.shape,u,{coordinate:r.coordinate,toAttrs:o({},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 o,a=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"),f=0;f<l.length;f++)this.syncShapeStyle(l[f],u[f],n,i,r+f);else{if(!Object(h["G"])(n)&&!Object(h["H"])(n,["reset"])){var d=t.get("name");Object(h["C"])(d)&&(d=d[1]),Object(h["j"])(n,(function(t){if(e.get("name")!==Ei){var n=a.getStateStyle(t,d||r);e.attr(n)}}))}var g=Tt(t,e);this.animate?i?(null===(o=this.geometry)||void 0===o||o.emit(p.BEFORE_DRAW_ANIMATE),ki(t,i,{coordinate:this.shapeFactory.coordinate,toAttrs:g,shapeModel:this.model})):Object(h["G"])(n)?t.attr(g):(t.stopAnimate(),t.animate(g,{duration:300})):t.attr(g)}}},e.prototype.getShapeType=function(t){var e=Object(h["s"])(t,"shape");return Object(h["C"])(e)?e[0]:e},e}(P),Pi=Ti,Ii={},Bi={};function Li(t){return Ii[t.toLowerCase()]}function Di(t,e){Ii[t.toLowerCase()]=e}function Ri(t){return Bi[t.toLowerCase()]}function _i(t,e){Bi[t.toLowerCase()]=e}var zi={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var n=this.getShape(t);return n.getPoints?n.getPoints(e):this.getDefaultPoints(e)},getShape:function(t){var e=this[t]||this[this.defaultShapeType];return e.coordinate=this.coordinate,e},getDefaultPoints:function(){return[]},getDefaultStyle:function(t){return Object(h["s"])(t,[this.defaultShapeType,"default","style"],{})},getMarker:function(t,e){var n=this.getShape(t);if(!n.getMarker){var i=this.defaultShapeType;n=this.getShape(i)}var r=this.theme,o=Object(h["s"])(r,[t,"default"],{}),a=n.getMarker(e);return Object(h["h"])({},o,a)},drawShape:function(t,e,n){var i=this.getShape(t);return i.draw(e,n)}},Yi={coordinate:null,parsePath:function(t){var e=this.coordinate,n=Object(Ie["c"])(t);return n=e.isPolar?Pe(e,n):Te(e,n),n},parsePoint:function(t){var e=this.coordinate;return e.convert(t)},parsePoints:function(t){var e=this.coordinate;return t.map((function(t){return e.convert(t)}))},draw:function(t,e){}},Ni={};function Gi(t,e){var n=Object(h["wb"])(t),i=o(o(o({},zi),e),{geometryType:t});return Ni[n]=i,i}function Xi(t,e,n){var i=Object(h["wb"])(t),r=Ni[i],a=o(o({},Yi),n);return r[e]=a,a}function Vi(t){var e=Object(h["wb"])(t);return Ni[e]}function Hi(t,e,n){if(void 0===n&&(n={}),!e)return[t];var i=Object(h["x"])(t,e),r=[];if(1===e.length&&n[e[0]])for(var o=n[e[0]],a=0,s=o;a<s.length;a++){var c=s[a],l=i["_".concat(c)];l&&r.push(l)}else for(var u in i)if(i.hasOwnProperty(u)){var f=i[u];r.push(f)}return r}function Wi(t,e){return Object(h["nb"])(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(n){return!Object(h["H"])(t[n],e[n])}))}function qi(t){return Object(h["C"])(t)?t:t.split("*")}function Ki(t,e){for(var n=[],i=[],r=[],o=new Map,a=0;a<e.length;a++){var s=e[a];t[s]?i.push(s):n.push(s),o.set(s,!0)}return Object.keys(t).forEach((function(t){o.has(t)||r.push(t)})),{added:n,updated:i,removed:r}}function Ui(t,e){var n=[];return Object(h["j"])(e,(function(e,i){var r=i.split(" ")[0];r===t&&n.push(e)})),n}var Zi=function(t){function e(e){var n=t.call(this,e)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var i=e.container,r=e.labelsContainer,o=e.coordinate,a=e.data,s=e.sortable,c=void 0!==s&&s,l=e.visible,u=void 0===l||l,h=e.theme,f=e.scales,p=void 0===f?{}:f,d=e.scaleDefs,g=void 0===d?{}:d,v=e.intervalPadding,y=e.dodgePadding,m=e.maxColumnWidth,b=e.minColumnWidth,x=e.columnWidthRatio,O=e.roseWidthRatio,j=e.multiplePieWidthRatio,w=e.zIndexReversed;return n.container=i,n.labelsContainer=r,n.coordinate=o,n.data=a,n.sortable=c,n.visible=u,n.userTheme=h,n.scales=p,n.scaleDefs=g,n.intervalPadding=v,n.dodgePadding=y,n.maxColumnWidth=m,n.minColumnWidth=b,n.columnWidthRatio=x,n.roseWidthRatio=O,n.multiplePieWidthRatio=j,n.zIndexReversed=w,n}return r(e,t),e.prototype.position=function(t){var e=t;Object(h["P"])(t)||(e={fields:qi(t)});var n=Object(h["s"])(e,"fields");return 1===n.length&&(n.unshift("1"),Object(h["lb"])(e,"fields",n)),Object(h["lb"])(this.attributeOption,"position",e),this},e.prototype.color=function(t,e){return this.createAttrOption("color",t,e),this},e.prototype.shape=function(t,e){return this.createAttrOption("shape",t,e),this},e.prototype.size=function(t,e){return this.createAttrOption("size",t,e),this},e.prototype.adjust=function(t){var e=t;return(Object(h["Q"])(t)||Object(h["P"])(t))&&(e=[t]),Object(h["j"])(e,(function(t,n){Object(h["O"])(t)||(e[n]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if(Object(h["Q"])(t)){var n=qi(t);this.styleOption={fields:n,callback:e}}else{var i=t,r=(n=i.fields,i.callback),o=i.cfg;this.styleOption=n||r||o?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if(Object(h["Q"])(t)){var n=qi(t);this.tooltipOption={fields:n,callback:e}}else this.tooltipOption=t;return this},e.prototype.animate=function(t){return this.animateOption=t,this},e.prototype.label=function(t,e,n){if(Object(h["Q"])(t)){var i={},r=qi(t);i.fields=r,Object(h["I"])(e)?i.callback=e:Object(h["P"])(e)&&(i.cfg=e),n&&(i.cfg=n),this.labelOption=i}else this.labelOption=t;return this},e.prototype.state=function(t){return this.stateOption=t,this},e.prototype.customInfo=function(t){return this.customOption=t,this},e.prototype.init=function(t){void 0===t&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},e.prototype.update=function(t){void 0===t&&(t={});var e=t.data,n=t.isDataChanged,i=t.isCoordinateChanged,r=this,o=r.attributeOption,a=r.lastAttributeOption;Object(h["H"])(o,a)?!e||!n&&Object(h["H"])(e,this.data)?this.setCfg(t):(this.setCfg(t),this.initAttributes(),this.processData(e)):this.init(t),this.adjustScale(),this.isCoordinateChanged=i},e.prototype.paint=function(t){void 0===t&&(t=!1),this.animateOption&&(this.animateOption=Object(h["h"])({},Ai(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[];var e=this.getOffscreenGroup();e.clear();var n=this.beforeMappingData,i=this.beforeMapping(n);this.dataArray=new Array(i.length);for(var r=0;r<i.length;r++){var a=i[r];this.dataArray[r]=this.mapping(a)}if(this.updateElements(this.dataArray,t),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(t)){var s=this.container,c=this.type,l=this.coordinate,u=Object(h["s"])(this.animateOption,"appear"),f=this.getYScale(),p=l.convert({x:0,y:f.scale(this.getYMinValue())});Fi(s,u,c,l,p)}this.labelOption&&this.renderLabels(Object(h["q"])(this.dataArray),t),this.lastAttributeOption=o({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this,e=t.container,n=t.geometryLabel,i=t.offscreenGroup;e&&e.clear(),n&&n.clear(),i&&i.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},e.prototype.destroy=function(){this.clear();var e=this.container;e.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,t.prototype.destroy.call(this)},e.prototype.getGroupScales=function(){return this.groupScales},e.prototype.getAttribute=function(t){return this.attributes[t]},e.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},e.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},e.prototype.getGroupAttributes=function(){var t=[];return Object(h["j"])(this.attributes,(function(e){y.includes(e.type)&&t.push(e)})),t},e.prototype.getDefaultValue=function(t){var e,n=this.getAttribute(t);return n&&Object(h["G"])(n.scales)&&(e=n.values[0]),e},e.prototype.getAttributeValues=function(t,e){for(var n=[],i=t.scales,r=0,o=i.length;r<o;r++){var a=i[r],s=a.field;a.isIdentity?n.push(a.values):n.push(e[s])}return t.mapping.apply(t,n)},e.prototype.getAdjust=function(t){return this.adjusts[t]},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.getData=function(){return this.data},e.prototype.getShapeMarker=function(t,e){var n=this.getShapeFactory();return n.getMarker(t,e)},e.prototype.getElementsBy=function(t){return this.elements.filter((function(e){return t(e)}))},e.prototype.getElements=function(){return this.elements},e.prototype.getElementId=function(t){t=Object(h["C"])(t)?t[0]:t;var e=t[m];if(this.idFields.length){for(var n=e[this.idFields[0]],i=1;i<this.idFields.length;i++)n+="-"+e[this.idFields[i]];return n}var r,o,a=this.type,s=this.getXScale(),c=this.getYScale(),l=s.field||"x",u=c.field||"y",f=e[u];r="identity"===s.type?s.values[0]:e[l],o="interval"===a||"schema"===a?"".concat(r):"line"===a||"area"===a||"path"===a?a:"".concat(r,"-").concat(f);var p=this.groupScales;Object(h["G"])(p)&&(p=Object(h["s"])(this.getAttribute("color"),"scales",[]));i=0;for(var d=p.length;i<d;i++){var g=p[i],v=g.field;o="".concat(o,"-").concat(e[v])}var y=this.getAdjust("dodge");if(y){var b=y.dodgeBy;b&&(o="".concat(o,"-").concat(e[b]))}return this.getAdjust("jitter")&&(o="".concat(o,"-").concat(t.x,"-").concat(t.y)),o},e.prototype.getScaleFields=function(){var t=[],e=new Map,n=this,i=n.attributeOption,r=n.labelOption,o=n.tooltipOption;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];s.fields?Lt(s.fields,t,e):s.values&&Lt(s.values,t,e)}return r&&r.fields&&Lt(r.fields,t,e),Object(h["O"])(o)&&o.fields&&Lt(o.fields,t,e),t},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.elements,i=0,r=n.length;i<r;i++){var o=n[i];o.changeVisible(e)}e?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},e.prototype.getFields=function(){var t=new Map,e=[];return Object.values(this.attributeOption).forEach((function(n){var i=(null===n||void 0===n?void 0:n.fields)||[];i.forEach((function(n){t.has(n)||e.push(n),t.set(n,!0)}))}),[]),e},e.prototype.getGroupFields=function(){for(var t=[],e=new Map,n=0,i=y.length;n<i;n++){var r=y[n],o=this.attributeOption[r];o&&o.fields&&Lt(o.fields,t,e)}return t},e.prototype.getXYFields=function(){var t=this.attributeOption.position.fields,e=t[0],n=t[1];return[e,n]},e.prototype.getXField=function(){return Object(h["s"])(this.getXYFields(),[0])},e.prototype.getYField=function(){return Object(h["s"])(this.getXYFields(),[1])},e.prototype.getShapes=function(){return this.elements.map((function(t){return t.shape}))},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.sort=function(t){if(!this.hasSorted)for(var e=this.getXScale(),n=e.field,i=0;i<t.length;i++){var r=t[i];r.sort((function(t,i){return e.translate(t[m][n])-e.translate(i[m][n])}))}this.hasSorted=!0},e.prototype.adjustScale=function(){var t=this.getYScale();t&&this.getAdjust("stack")&&this.updateStackRange(t,this.beforeMappingData)},e.prototype.getShapeFactory=function(){var t=this.shapeType;if(Vi(t))return this.shapeFactory||(this.shapeFactory=Object(h["e"])(Vi(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},e.prototype.createShapePointsCfg=function(t){var e,n=this.getXScale(),i=this.getYScale(),r=this.normalizeValues(t[n.field],n);return e=i?this.normalizeValues(t[i.field],i):t.y?t.y:.1,{x:r,y:e,y0:i?i.scale(this.getYMinValue()):void 0}},e.prototype.createElement=function(t,e,n){void 0===n&&(n=!1);var i=this.container,r=this.getDrawCfg(t),o=this.getShapeFactory(),a=new Pi({shapeFactory:o,container:i,offscreenGroup:this.getOffscreenGroup(),elementIndex:e});return a.animate=this.animateOption,a.geometry=this,a.draw(r,n),a},e.prototype.getDrawCfg=function(t){var e=t[m],n={mappingData:t,data:e,x:t.x,y:t.y,color:t.color,size:t.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},i=t.shape;!i&&this.getShapeFactory()&&(i=this.getShapeFactory().defaultShapeType),n.shape=i;var r=this.theme.geometries[this.shapeType];n.defaultStyle=Object(h["s"])(r,[i,"default"],{}).style,!n.defaultStyle&&this.getShapeFactory()&&(n.defaultStyle=this.getShapeFactory().getDefaultStyle(r));var o=this.styleOption;return o&&(n.style=this.getStyleCfg(o,e)),this.generatePoints&&(n.points=t.points,n.nextPoints=t.nextPoints),n},e.prototype.updateElements=function(t,e){void 0===e&&(e=!1);for(var n=new Map,i=[],r=new Map,o=0,a=0;a<t.length;a++)for(var s=t[a],c=0;c<s.length;c++){var l=s[c],u=this.getElementId(l),h=n.has(u)?"".concat(u,"-").concat(a,"-").concat(c):u;i.push(h),n.set(h,l),r.set(h,o),o++}this.elements=new Array(o);for(var f=Ki(this.lastElementsMap,i),p=f.added,d=f.updated,g=f.removed,v=0,y=p;v<y.length;v++){u=y[v],l=n.get(u),a=r.get(u);var m=this.createElement(l,a,e);this.elements[a]=m,this.elementsMap[u]=m,m.shape&&m.shape.setZIndex(this.zIndexReversed?this.elements.length-a:a)}for(var b=0,x=d;b<x.length;b++){u=x[b],m=this.lastElementsMap[u],l=n.get(u);var O=this.getDrawCfg(l),j=m.getModel();a=r.get(u);(this.isCoordinateChanged||Wi(O,j))&&(m.animate=this.animateOption,m.update(O)),this.elements[a]=m,this.elementsMap[u]=m,m.shape&&m.shape.setZIndex(this.zIndexReversed?this.elements.length-a:a)}for(var w=0,C=g;w<C.length;w++){u=C[w],m=this.lastElementsMap[u];m.animate=this.animateOption,m.destroy()}},e.prototype.getLabelType=function(){var t=this,e=t.labelOption,n=t.coordinate,i=t.type,r=n.type,o=n.isTransposed,a=Object(h["s"])(e,["cfg","type"]);return a||(a="polar"===r?o?"pie":"polar":"theta"===r?"pie":"interval"===i||"polygon"===i?"interval":"base"),a},e.prototype.getYMinValue=function(){var t,e=this.getYScale(),n=e.min,i=e.max;return t=n>=0?n:i<=0?i:0,t},e.prototype.createAttrOption=function(t,e,n){if(Object(h["K"])(e)||Object(h["O"])(e))Object(h["O"])(e)&&Object(h["H"])(Object.keys(e),["values"])?Object(h["lb"])(this.attributeOption,t,{fields:e.values}):Object(h["lb"])(this.attributeOption,t,e);else{var i={};Object(h["M"])(e)?i.values=[e]:i.fields=qi(e),n&&(Object(h["I"])(n)?i.callback=n:i.values=n),Object(h["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 s={},c=function(e){if(i.hasOwnProperty(e)){var c=i[e];if(!c)return{value:void 0};var l=o({},c),u=l.callback,h=l.values,f=l.fields,p=void 0===f?[]:f,d=p.map((function(n){var i=t.scales[n];return i.isCategory&&!s[n]&&y.includes(e)&&(t.groupScales.push(i),s[n]=!0),i}));l.scales=d,"position"!==e&&1===d.length&&"identity"===d[0].type?l.values=d[0].values:u||h||("size"===e?l.values=r.sizes:"shape"===e?l.values=r.shapes[a]||[]:"color"===e&&(d.length?l.values=d[0].values.length<=10?r.colors10:r.colors20:l.values=r.colors10));var g=$(e);n[e]=new g(l)}};for(var l in i){var u=c(l);if("object"===typeof u)return u.value}},e.prototype.processData=function(t){this.hasSorted=!1;for(var e=this.getAttribute("position").scales,n=e.filter((function(t){return t.isCategory})),i=this.groupData(t),r=[],o=0,a=i.length;o<a;o++){for(var s=i[o],c=[],l=0,u=s.length;l<u;l++){var h=s[l],f={};for(var p in h)f[p]=h[p];f[m]=h;for(var d=0,g=n;d<g.length;d++){var v=g[d],y=v.field;f[y]=v.translate(f[y])}c.push(f)}r.push(c)}var b=this.adjustData(r);return this.beforeMappingData=b,b},e.prototype.adjustData=function(t){var e=this.adjustOption,n=this,i=n.intervalPadding,r=n.dodgePadding,a=n.theme,s=this.maxColumnWidth||a.maxColumnWidth,c=this.minColumnWidth||a.minColumnWidth,l=this.columnWidthRatio||a.columnWidthRatio,u=t;if(e){var f=this.getXScale(),p=this.getYScale(),d=f.field,g=p?p.field:null,v=_t(this.coordinate),y=f.values.length,m=this.getAttribute("size"),b=void 0;m&&(b=m.values[0]);for(var x=0,O=e.length;x<O;x++){var j=e[x],w=o({xField:d,yField:g,intervalPadding:i,dodgePadding:r,xDimensionLength:v,groupNum:y,defaultSize:b,maxColumnWidth:s,minColumnWidth:c,columnWidthRatio:l},j),C=j.type;if("dodge"===C){var M=[];if(f.isCategory||"identity"===f.type)M.push("x");else{if(p)throw new Error("dodge is not support linear attribute, please use category attribute!");M.push("y")}w.adjustNames=M,w.dodgeRatio=l}else if("stack"===C){var S=this.coordinate;if(!p){w.height=S.getHeight();var A=this.getDefaultValue("size")||3;w.size=A}!S.isTransposed&&Object(h["K"])(w.reverseOrder)&&(w.reverseOrder=!0)}var k=Object(B["getAdjust"])(C),F=new k(w);u=F.process(u),this.adjusts[C]=F}}return u},e.prototype.groupData=function(t){for(var e=this.getGroupScales(),n=this.scaleDefs,i={},r=[],o=0;o<e.length;o++){var a=e[o],s=a.field;r.push(s),Object(h["s"])(n,[s,"values"])&&(i[s]=n[s].values)}return Hi(t,r,i)},e.prototype.updateStackRange=function(t,e){for(var n=Object(h["q"])(e),i=t.field,r=t.min,o=t.max,a=0;a<n.length;a++){var s=n[a],c=Math.min.apply(null,s[i]),l=Math.max.apply(null,s[i]);c<r&&(r=c),l>o&&(o=l)}var u=this.scaleDefs,f={};r<t.min&&!Object(h["s"])(u,[i,"min"])&&(f.min=r),o>t.max&&!Object(h["s"])(u,[i,"max"])&&(f.max=o),t.change(f)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,i=e.length;n<i;n++){var r=e[n];this.generateShapePoints(r);var o=e[n+1];o&&(this.generateShapePoints(o),r[0].nextPoints=o[0].points)}return e},e.prototype.generateShapePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttribute("shape"),i=0;i<t.length;i++){var r=t[i],o=this.createShapePointsCfg(r),a=n?this.getAttributeValues(n,r):null,s=e.getShapePoints(a,o);r.points=s}},e.prototype.normalizeValues=function(t,e){var n=[];if(Object(h["C"])(t))for(var i=0;i<t.length;i++){var r=t[i];n.push(e.scale(r))}else n=e.scale(t);return n},e.prototype.mapping=function(t){for(var e=this.attributes,n=[],i=0;i<t.length;i++){var r=t[i],o={_origin:r[m],points:r.points,nextPoints:r.nextPoints};for(var a in e)if(e.hasOwnProperty(a)){var s=e[a],c=s.names,l=this.getAttributeValues(s,r);if(c.length>1)for(var u=0;u<l.length;u+=1){var f=l[u],p=c[u];o[p]=Object(h["C"])(f)&&1===f.length?f[0]:f}else o[c[0]]=1===l.length?l[0]:l}this.convertPoint(o),n.push(o)}return n},e.prototype.convertPoint=function(t){var e,n,i,r=t.x,o=t.y,a=this.coordinate;if(Object(h["C"])(r)&&Object(h["C"])(o)){e=[],n=[];for(var s=0,c=0,l=r.length,u=o.length;s<l&&c<u;s+=1,c+=1)i=a.convert({x:r[s],y:o[c]}),e.push(i.x),n.push(i.y)}else if(Object(h["C"])(o)){n=[];for(var f=0;f<o.length;f++){var p=o[f];i=a.convert({x:r,y:p}),e&&e!==i.x?(Object(h["C"])(e)||(e=[e]),e.push(i.x)):e=i.x,n.push(i.y)}}else if(Object(h["C"])(r)){e=[];for(f=0;f<r.length;f++){var d=r[f];i=a.convert({x:d,y:o}),n&&n!==i.y?(Object(h["C"])(n)||(n=[n]),n.push(i.y)):n=i.y,e.push(i.x)}}else{var g=a.convert({x:r,y:o});e=g.x,n=g.y}t.x=e,t.y=n},e.prototype.getStyleCfg=function(t,e){var n=t.fields,i=void 0===n?[]:n,r=t.callback,o=t.cfg;if(o)return o;var a=i.map((function(t){return e[t]}));return r.apply(void 0,a)},e.prototype.setCfg=function(t){var e=this,n=t.coordinate,i=t.data,r=t.theme,o=t.scaleDefs;n&&(this.coordinate=n),i&&(this.data=i),o&&(this.scaleDefs=o,this.idFields=[],Object(h["j"])(o,(function(t,n){t&&t.key&&e.idFields.push(n)}))),r&&(this.theme=this.userTheme?Object(h["h"])({},r,this.userTheme):r)},e.prototype.renderLabels=function(t,e){void 0===e&&(e=!1);var n=this.geometryLabel;if(!n){var i=this.getLabelType(),r=Li(i);n=new r(this),this.geometryLabel=n}n.render(t,e);var o=n.labelsRenderer.shapesMap;Object(h["j"])(this.elementsMap,(function(t,e){var n=Ui(e,o);if(n.length){t.labelShape=n;for(var i=0;i<n.length;i++)for(var r=n[i],a=r.getChildren(),s=0;s<a.length;s++){var c=a[s];c.cfg.name=["element","label"],c.cfg.element=t}}}))},e.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(void 0===Object(h["s"])(this.animateOption,"appear")||Object(h["s"])(this.animateOption,"appear")&&void 0===Object(h["s"])(this.animateOption,["appear","animation"]))},e}(P),Qi=Zi,$i=it["a"].transform;function Ji(t,e,n){var i=$i(t.getMatrix(),[["t",e,n]]);t.setMatrix(i)}function tr(t,e){var n=t.attr(),i=n.x,r=n.y,o=$i(t.getMatrix(),[["t",-i,-r],["r",e],["t",i,r]]);return o}function er(t,e){var n=tr(t,e);t.setMatrix(n)}function nr(t,e){var n=t.getBBox(),i=(n.minX+n.maxX)/2,r=(n.minY+n.maxY)/2;t.applyToMatrix([i,r,1]);var o=$i(t.getMatrix(),[["t",-i,-r],["s",e,e],["t",i,r]]);t.setMatrix(o)}function ir(t){return t.find((function(t){return"text"===t.get("type")}))}function rr(t,e,n){void 0===n&&(n=[0,0,0,0]);var i=t.getChildren()[0];if(i){var r=i.clone();(null===e||void 0===e?void 0:e.rotate)&&er(r,-e.rotate);var o=r.getCanvasBBox(),a=o.x,s=o.y,c=o.width,l=o.height;r.destroy();var u=n;return Object(h["K"])(u)?u=[2,2,2,2]:Object(h["M"])(u)&&(u=new Array(4).fill(u)),{x:a-u[3],y:s-u[0],width:c+u[1]+u[3],height:l+u[0]+u[2],rotation:(null===e||void 0===e?void 0:e.rotate)||0}}}function or(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 ar(t,e){var n=t.getBBox();return Object(h["nb"])(e,(function(t){var e=t.getBBox();return or(n,e,2)>0}))}function sr(t,e,n){var i=n.data,r=n.origin,o=n.animateCfg,a=n.coordinate,s=Object(h["s"])(o,"update");t.set("data",i),t.set("origin",r),t.set("animateCfg",o),t.set("coordinate",a),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",o),c.set("coordinate",a);var h=Tt(c,u);s?ki(c,s,{toAttrs:h,coordinate:a}):c.attr(h),u.isGroup()&&sr(c,u,n)}else t.removeChild(c),c.remove(!0)})),Object(h["j"])(e.getChildren(),(function(e,n){n>=t.getCount()&&(e.destroyed||t.add(e))}))}var cr=function(){function t(t){this.shapesMap={},this.lastShapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){var i=this;void 0===n&&(n=!1),this.shapesMap={};var r=this.container,a=this.createOffscreenGroup();if(t.length){for(var s=0,c=t;s<c.length;s++){var l=c[s];l&&this.renderLabel(l,a)}this.doLayout(t,e),this.renderLabelLine(t),this.renderLabelBackground(t),this.adjustLabel(t)}var u=this.lastShapesMap,f=this.shapesMap;Object(h["j"])(f,(function(t,e){if(t.destroyed)delete f[e];else{if(u[e]){var a=t.get("data"),s=t.get("origin"),c=t.get("coordinate"),l=t.get("animateCfg"),p=u[e];sr(p,f[e],{data:a,origin:s,animateCfg:l,coordinate:c}),i.shapesMap[e]=p}else{r.add(t);var d=Object(h["s"])(t.get("animateCfg"),n?"enter":"appear");d&&ki(t,d,{toAttrs:o({},t.attr()),coordinate:t.get("coordinate")})}delete u[e]}})),Object(h["j"])(u,(function(t){var e=Object(h["s"])(t.get("animateCfg"),"leave");e?ki(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.lastShapesMap=f,a.destroy()},t.prototype.clear=function(){this.container.clear(),this.shapesMap={},this.lastShapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null,this.lastShapesMap=null},t.prototype.renderLabel=function(t,e){var n,i=t.id,r=t.elementId,a=t.data,s=t.mappingData,c=t.coordinate,l=t.animate,u=t.content,f={id:i,elementId:r,data:a,origin:o(o({},s),{data:s[m]}),coordinate:c},p=e.addGroup(o({name:"label",animateCfg:!1!==this.animate&&null!==l&&!1!==l&&Object(h["h"])({},this.animate,l)},f));if(u.isGroup&&u.isGroup()||u.isShape&&u.isShape()){var d=u.getCanvasBBox(),g=d.width,v=d.height,y=Object(h["s"])(t,"textAlign","left"),b=t.x,x=t.y-v/2;"center"===y?b-=g/2:"right"!==y&&"end"!==y||(b-=g),Ji(u,b,x),n=u,p.add(u)}else{var O=Object(h["s"])(t,["style","fill"]);n=p.addShape("text",o({attrs:o(o({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:Object(h["s"])(t,"textBaseline","middle"),text:t.content},t.style),{fill:Object(h["L"])(O)?t.color:O})},f))}t.rotate&&er(n,t.rotate),this.shapesMap[i]=p},t.prototype.doLayout=function(t,e){var n=this;if(this.layout){var i=Object(h["C"])(this.layout)?this.layout:[this.layout];Object(h["j"])(i,(function(i){var r=Ri(Object(h["s"])(i,"type",""));if(r){var o=[],a=[];Object(h["j"])(n.shapesMap,(function(t,n){o.push(t),a.push(e[t.get("elementId")])})),r(t,o,a,n.region,i.cfg)}}))}},t.prototype.renderLabelLine=function(t){var e=this;Object(h["j"])(t,(function(t){var n=Object(h["s"])(t,"coordinate");if(t&&n){var i=n.getCenter(),r=n.getRadius();if(t.labelLine){var a=Object(h["s"])(t,"labelLine",{}),s=t.id,c=a.path;if(!c){var l=St(i.x,i.y,r,t.angle);c=[["M",l.x,l.y],["L",t.x,t.y]]}var u=e.shapesMap[s];u.destroyed||u.addShape("path",{capture:!1,attrs:o({path:c,stroke:t.color?t.color:Object(h["s"])(t,["style","fill"],"#000"),fill:null},a.style),id:s,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t){var e=this;Object(h["j"])(t,(function(t){var n=Object(h["s"])(t,"coordinate"),i=Object(h["s"])(t,"background");if(i&&n){var r=t.id,s=e.shapesMap[r];if(!s.destroyed){var c=s.getChildren()[0];if(c){var l=rr(s,t,i.padding),u=l.rotation,f=a(l,["rotation"]),p=s.addShape("rect",{attrs:o(o({},f),i.style||{}),id:r,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(p.setZIndex(-1),u){var d=c.getMatrix();p.setMatrix(d)}}}}}))},t.prototype.createOffscreenGroup=function(){var t=this.container,e=t.getGroupBase(),n=new e({});return n},t.prototype.adjustLabel=function(t){var e=this;Object(h["j"])(t,(function(t){if(t){var n=t.id,i=e.shapesMap[n];if(!i.destroyed){var r=i.findAll((function(t){return"path"!==t.get("type")}));Object(h["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}(),lr=cr;function ur(t){var e=0;return Object(h["j"])(t,(function(t){e+=t})),e/t.length}var hr=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],i=this.getLabelCfgs(t);return Object(h["j"])(t,(function(t,r){var a=i[r];if(!a||Object(h["K"])(t.x)||Object(h["K"])(t.y))n.push(null);else{var s=Object(h["C"])(a.content)?a.content:[a.content];a.content=s;var c=s.length;Object(h["j"])(s,(function(i,r){if(Object(h["K"])(i)||""===i)n.push(null);else{var s=o(o({},a),e.getLabelPoint(a,t,r));s.textAlign||(s.textAlign=e.getLabelAlign(s,r,c)),s.offset<=0&&(s.labelLine=null),n.push(s)}}))}})),n},t.prototype.render=function(t,e){void 0===e&&(e=!1);var n=this.getLabelItems(t),i=this.getLabelsRenderer(),r=this.getGeometryShapes();i.render(n,r,e)},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(h["s"])(r,"innerLabels",{}):Object(h["s"])(r,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e,n=this.geometry,i=this.getDefaultLabelCfg(),r=n.type,o=n.theme;return e="polygon"===r||t.offset<0&&!["line","point","path"].includes(r)?Object(h["h"])({},i,o.innerLabels,t):Object(h["h"])({},i,o.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(),o=r.isTransposed,a=o?"x":"y",s=o?1:-1,c={x:0,y:0};return c[a]=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 o(e,n,i){void 0===i&&(i=!1);var r=e;return Object(h["C"])(r)&&(r=1===t.content.length?i?ur(r):r.length<=2?r[e.length-1]:ur(r):r[n]),r}var a={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},s=Object(h["C"])(e.shape)?e.shape[0]:e.shape,c="funnel"===s||"pyramid"===s;if("polygon"===this.geometry.type){var l=Et(e.x,e.y);a.x=l[0],a.y=l[1]}else"interval"!==this.geometry.type||c?(a.x=o(e.x,n),a.y=o(e.y,n)):(a.x=o(e.x,n,!0),a.y=o(e.y,n));if(c){var u=Object(h["s"])(e,"nextPoints"),f=Object(h["s"])(e,"points");if(u){var p=i.convert(f[1]),d=i.convert(u[1]);a.x=(p.x+d.x)/2,a.y=(p.y+d.y)/2}else if("pyramid"===s){p=i.convert(f[1]),d=i.convert(f[2]);a.x=(p.x+d.x)/2,a.y=(p.y+d.y)/2}}t.position&&this.setLabelPosition(a,e,n,t.position);var g=this.getLabelOffsetPoint(t,n,r);return a.start={x:a.x,y:a.y},a.x+=g.x,a.y+=g.y,a.color=e.color,a},t.prototype.getLabelAlign=function(t,e,n){var i="center",r=this.getCoordinate();if(r.isTransposed){var o=t.offset;i=o<0?"right":0===o?"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(),o=t[m],a=e.getElementId(t);return"line"===n||"area"===n?a+=" ".concat(o[i.field]):"path"===n&&(a+=" ".concat(o[i.field],"-").concat(o[r.field])),a},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,i=t.canvasRegion,r=t.animateOption,o=this.geometry.coordinate,a=this.labelsRenderer;return a||(a=new lr({container:e,layout:Object(h["s"])(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=a),a.region=i,a.animate=!!r&&Ai("label",o),a},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,i=n.labelOption,r=n.scales,a=n.coordinate,s=i,c=s.fields,l=s.callback,u=s.cfg,f=c.map((function(t){return r[t]})),p=[];return Object(h["j"])(t,(function(t,n){var i,r=t[m],s=e.getLabelText(r,f);if(l){var d=c.map((function(t){return r[t]}));if(i=l.apply(void 0,d),Object(h["K"])(i))return void p.push(null)}var g=o(o({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:r,mappingData:t,coordinate:a},u),i);Object(h["I"])(g.position)&&(g.position=g.position(r,t,n));var v=e.getLabelOffset(g.offset||0),y=e.getDefaultLabelCfg(v,g.position);g=Object(h["h"])({},y,g),g.offset=e.getLabelOffset(g.offset||0);var b=g.content;Object(h["I"])(b)?g.content=b(r,t,n):Object(h["S"])(b)&&(g.content=s[0]),p.push(g)})),p},t.prototype.getLabelText=function(t,e){var n=[];return Object(h["j"])(e,(function(e){var i=t[e.field];i=Object(h["C"])(i)?i.map((function(t){return e.getText(t)})):e.getText(i),Object(h["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(h["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(h["j"])(t.elementsMap,(function(t,n){e[n]=t.shape})),Object(h["j"])(t.getOffscreenGroup().getChildren(),(function(n){var i=t.getElementId(n.get("origin").mappingData);e[i]=n})),e},t}(),fr=hr;function pr(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,s([e],r,!1)).join("")}else i=t.mapping(e).join("");return i||n}var dr={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]]}},gr=["line","cross","tick","plus","hyphen"];function vr(t,e){return Object(h["I"])(e)?e(t):Object(h["h"])({},t,e)}function yr(t,e){var n=t.symbol;if(Object(h["Q"])(n)&&-1!==gr.indexOf(n)){var i=Object(h["s"])(t,"style",{}),r=Object(h["s"])(i,"lineWidth",1),o=i.stroke||i.fill||e;t.style=Object(h["h"])({},t.style,{lineWidth:r,stroke:o,fill:null})}}function mr(t){var e=t.symbol;Object(h["Q"])(e)&&dr[e]&&(t.symbol=dr[e])}function br(t){return t.startsWith(l.LEFT)||t.startsWith(l.RIGHT)?"vertical":"horizontal"}function xr(t,e,n,i,r){var a=n.getScale(n.type);if(a.isCategory){var s=a.field,c=e.getAttribute("color"),l=e.getAttribute("shape"),u=t.getTheme().defaultColor,f=e.coordinate.isPolar;return a.getTicks().map((function(n,p){var d,g=n.text,v=n.value,y=g,m=a.invert(v),b=0===t.filterFieldData(s,[(d={},d[s]=m,d)]).length;Object(h["j"])(t.views,(function(t){var e;t.filterFieldData(s,[(e={},e[s]=m,e)]).length||(b=!0)}));var x=pr(c,m,u),O=pr(l,m,"point"),j=e.getShapeMarker(O,{color:x,isInPolar:f}),w=r;return Object(h["I"])(w)&&(w=w(y,p,o({name:y,value:m},Object(h["h"])({},i,j)))),j=Object(h["h"])({},i,j,Bt(o({},w),["style"])),yr(j,x),w&&w.style&&(j.style=vr(j.style,w.style)),mr(j),{id:m,name:y,value:m,marker:j,unchecked:b}}))}return[]}function Or(t,e,n){return n.map((function(n,i){var r=e;Object(h["I"])(r)&&(r=r(n.name,i,Object(h["h"])({},t,n)));var o=Object(h["I"])(n.marker)?n.marker(n.name,i,Object(h["h"])({},t,n)):n.marker,a=Object(h["h"])({},t,r,o);return mr(a),n.marker=a,n}))}function jr(t,e){var n=Object(h["s"])(t,["components","legend"],{});return Object(h["h"])({},Object(h["s"])(n,["common"],{}),Object(h["h"])({},Object(h["s"])(n,[e],{})))}function wr(t){return!t&&(null===t||void 0===t||isNaN(t))}function Cr(t){if(Object(h["C"])(t))return wr(t[1].y);var e=t.y;return Object(h["C"])(e)?wr(e[0]):wr(e)}function Mr(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,o=t.length;r<o;r++){var a=t[r];Cr(a)||i.push(a)}return[i]}var s=[],c=[];for(r=0,o=t.length;r<o;r++){a=t[r];Cr(a)?c.length&&((1!==c.length||n)&&s.push(c),c=[]):c.push(a)}return c.length&&s.push(c),s}function Sr(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(i){var r=0===n?"M":"L";e.push([r,i.x,i.y])}}var o=t[0];return o&&(e.push(["L",o.x,o.y]),e.push(["z"])),e}function Ar(t){for(var e=t.length/2,n=[],i=[],r=0;r<t.length;r++)r<e?n.push(t[r]):i.push(t[r]);var o=Ee(n,!1),a=Ee(i,!1);i.length&&o.push(["L",i[0].x,i[0].y]),a.shift();var s=o.concat(a);return n.length&&s.push(["L",n[0].x,n[0].y]),s.push(["z"]),s}function kr(t,e,n,i){void 0===i&&(i="");var r=t.style,a=void 0===r?{}:r,s=t.defaultStyle,c=t.color,l=t.size,u=o(o({},s),a);return c&&(e&&(a.stroke||(u.stroke=c)),n&&(a.fill||(u.fill=c))),i&&Object(h["K"])(a[i])&&!Object(h["K"])(l)&&(u[i]=l),u}function Fr(t){return Object(h["h"])({},{fill:"#CCD6EC",fillOpacity:.3},Object(h["s"])(t,["background","style"]))}function Er(t){var e=t.x,n=Object(h["C"])(t.y)?t.y:[t.y];return n.map((function(t,n){return{x:Object(h["C"])(e)?e[n]:e,y:t}}))}var Tr={line:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dot:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dash:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},smooth:function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},hv:function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},vh:function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},hvh:function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]},vhv:function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}};function Pr(t,e){var n=t.color;return{symbol:Tr[e],style:{lineWidth:2,r:6,stroke:n}}}function Ir(t,e,n){for(var i=t.isStack,r=t.connectNulls,o=t.isInCircle,a=t.showSinglePoint,s=kr(t,!0,!1,"lineWidth"),c=Mr(t.points,r,a),l=[],u=0,h=c.length;u<h;u++){var f=c[u];l=l.concat(Dr(f,o,i,e,n,s))}return s.path=l,s}function Br(t,e,n,i,r){return 1===t.length?[["M",t[0].x,t[0].y-r.lineWidth/2],["L",t[0].x,t[0].y],["L",t[0].x,t[0].y+r.lineWidth/2]]:(n?(e&&t.length&&t.push({x:t[0].x,y:t[0].y}),o=Ee(t,!1,i)):(o=Fe(t,!1),e&&o.push(["Z"])),o);var o}function Lr(t,e,n,i,r,o){var a=[],s=[];Object(h["j"])(t,(function(t){var e=Er(t);a.push(e[1]),s.push(e[0])}));var c=Br(a,e,i,r,o),l=Br(s,e,i,r,o);return n?c:c.concat(l)}function Dr(t,e,n,i,r,o){if(t.length){var a=t[0];return Object(h["C"])(a.y)?Lr(t,e,n,i,r,o):Br(t,e,i,r,o)}return[]}Gi("line",{defaultShapeType:"line"});Object(h["j"])(["line","dot","dash","smooth"],(function(t){Xi("line",t,{draw:function(e,n){var i,r="smooth"===t;if(r){var o=this.coordinate,a=o.start,s=o.end;i=[[a.x,s.y],[s.x,a.y]]}var c=Ir(e,r,i),l=n.addShape({type:"path",attrs:c,name:"line",capture:!r});return l},getMarker:function(e){return Pr(e,t)}})}));var Rr={getLegendItems:xr,translate:Ji,rotate:er,zoom:nr,transform:$i,getAngle:Ft,getSectorPath:At,polarToCartesian:St,getDelegationObject:Re,getTooltipItems:Hn,getMappingValue:pr,getPath:Dr,getPathPoints:Mr},_r={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},zr={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},Yr=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Nr=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],Gr=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Xr=function(t){void 0===t&&(t={});var e=t.backgroundColor,n=void 0===e?"#141414":e,i=t.subColor,r=void 0===i?"rgba(255,255,255,0.05)":i,o=t.paletteQualitative10,a=void 0===o?Yr:o,s=t.paletteQualitative20,c=void 0===s?Nr:s,l=t.paletteSemanticRed,u=void 0===l?"#F4664A":l,h=t.paletteSemanticGreen,f=void 0===h?"#30BF78":h,p=t.paletteSemanticYellow,d=void 0===p?"#FAAD14":p,g=t.paletteSequence,v=void 0===g?Gr:g,y=t.fontFamily,m=void 0===y?'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':y,b=t.brandColor,x=void 0===b?a[0]:b;return{backgroundColor:n,brandColor:x,subColor:r,paletteQualitative10:a,paletteQualitative20:c,paletteSemanticRed:u,paletteSemanticGreen:f,paletteSemanticYellow:d,paletteSequence:v,fontFamily:m,axisLineBorderColor:zr[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:zr[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:zr[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:zr[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:zr[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:zr[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:zr[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:Yr[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:zr[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:zr[45],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:zr[45],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:zr[65],legendPageNavigatorTextFontSize:12,sliderRailFillColor:zr[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:zr[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:_r[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:_r[25],annotationArcBorderColor:zr[15],annotationArcBorder:1,annotationLineBorderColor:zr[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:zr[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:zr[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:zr[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:zr[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:zr[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:_r[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:zr[65],overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:_r[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:zr[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:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:Yr[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:_r[100],pointBorderOpacity:1,pointActiveBorderColor:zr[100],pointSelectedBorder:2,pointSelectedBorderColor:zr[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:Yr[0],hollowPointBorderOpacity:.95,hollowPointFillColor:_r[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:zr[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:zr[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:Yr[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:Yr[0],areaFillOpacity:.25,areaActiveFillColor:Yr[0],areaActiveFillOpacity:.5,areaSelectedFillColor:Yr[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:Yr[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:zr[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:zr[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:Yr[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:zr[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:zr[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:Yr[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:_r[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:zr[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:zr[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}},Vr=Xr(),Hr=n("53c8"),Wr=n("bfb1"),qr=function(t){function e(e){var n=t.call(this,e)||this;n.type="path",n.shapeType="line";var i=e.connectNulls,r=void 0!==i&&i,o=e.showSinglePoint,a=void 0===o||o;return n.connectNulls=r,n.showSinglePoint=a,n}return r(e,t),e.prototype.updateElements=function(t,e){void 0===e&&(e=!1);for(var n=new Map,i=new Map,r=[],o=0,a=0;a<t.length;a++){var s=t[a],c=this.getElementId(s);r.push(c),n.set(c,s),i.set(c,o),o++}this.elements=new Array(o);for(var l=Ki(this.lastElementsMap,r),u=l.added,h=l.updated,f=l.removed,p=0,d=u;p<d.length;p++){c=d[p],s=n.get(c);var g=this.getShapeFactory(),v=this.getShapeInfo(s),y=(a=i.get(c),new Pi({shapeFactory:g,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:a}));y.geometry=this,y.animate=this.animateOption,y.draw(v,e),this.elementsMap[c]=y,this.elements[a]=y}for(var m=0,b=h;m<b.length;m++){c=b[m],s=n.get(c),y=this.lastElementsMap[c],a=i.get(c),v=this.getShapeInfo(s);var x=y.getModel();(this.isCoordinateChanged||Wi(x,v))&&(y.animate=this.animateOption,y.update(v)),this.elementsMap[c]=y,this.elements[a]=y}for(var O=0,j=f;O<j.length;O++){c=j[O],y=this.lastElementsMap[c];y.animate=this.animateOption,y.destroy()}},e.prototype.getPointsAndData=function(t){for(var e=[],n=[],i=0,r=t.length;i<r;i++){var o=t[i];e.push({x:o.x,y:o.y}),n.push(o[m])}return{points:e,data:n}},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=this.getPointsAndData(t),i=n.points,r=n.data;return e.mappingData=t,e.data=r,e.isStack=!!this.getAdjust("stack"),e.points=i,e.connectNulls=this.connectNulls,e.showSinglePoint=this.showSinglePoint,e},e}(Qi),Kr=qr;function Ur(t,e,n,i,r){var o=[];if(t.length){for(var a=[],s=[],c=0,l=t.length;c<l;c++){var u=t[c];a.push(u[1]),s.push(u[0])}s=s.reverse(),Object(h["j"])([a,s],(function(t,c){var l=[],u=i.parsePoints(t),h=u[0];1===a.length&&1===s.length?l=0===c?[["M",h.x-.5,h.y],["L",h.x+.5,h.y]]:[["L",h.x+.5,h.y],["L",h.x-.5,h.y]]:(e&&u.push({x:h.x,y:h.y}),l=n?Ee(u,!1,r):Fe(u,!1),c>0&&(l[0][0]="L")),o=o.concat(l)})),o.push(["Z"])}return o}function Zr(t,e,n,i,r){for(var o=kr(t,e,!e,"lineWidth"),a=t.connectNulls,s=t.isInCircle,c=t.points,l=t.showSinglePoint,u=Mr(c,a,l),h=[],f=0,p=u.length;f<p;f++){var d=u[f];h=h.concat(Ur(d,s,n,i,r))}return o.path=h,o}function Qr(t){var e=t.start,n=t.end;return[[e.x,n.y],[n.x,e.y]]}Gi("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,n=t.y0,i=Object(h["C"])(t.y)?t.y:[n,t.y];return i.map((function(t){return{x:e,y:t}}))}});Xi("area","area",{draw:function(t,e){var n=Zr(t,!1,!1,this),i=e.addShape({type:"path",attrs:n,name:"area"});return i},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:e}}}});var $r=function(t){function e(e){var n=t.call(this,e)||this;n.type="area",n.shapeType="area",n.generatePoints=!0,n.startOnZero=!0;var i=e.startOnZero,r=void 0===i||i,o=e.sortable,a=void 0!==o&&o,s=e.showSinglePoint,c=void 0!==s&&s;return n.startOnZero=r,n.sortable=a,n.showSinglePoint=c,n}return r(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],i=0,r=t.length;i<r;i++){var o=t[i];e.push(o.points),n.push(o[m])}return{points:e,data:n}},e.prototype.getYMinValue=function(){if(this.startOnZero)return t.prototype.getYMinValue.call(this);var e=this.getYScale();return e.min},e}(Kr),Jr=$r;Gi("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return Er(t)}});Xi("edge","line",{draw:function(t,e){var n=kr(t,!0,!1,"lineWidth"),i=Fe(this.parsePoints(t.points),this.coordinate.isPolar);return e.addShape("path",{attrs:o(o({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var to=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e}return r(e,t),e}(Qi),eo=to,no=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.paletteCache={},e}return r(e,t),e.prototype.updateElements=function(t,e){void 0===e&&(e=!1);for(var n=0;n<t.length;n++){var i=t[n],r=this.prepareRange(i),o=this.prepareSize(),a=Object(h["s"])(this.styleOption,["cfg","shadowBlur"]);Object(h["M"])(a)||(a=o/2),this.prepareGreyScaleBlurredCircle(o,a),this.drawWithRange(i,r,o,a)}},e.prototype.color=function(t,e){return this.createAttrOption("color",t,"function"!==typeof e?e:""),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},e.prototype.prepareRange=function(t){var e=this.getAttribute("color"),n=e.getFields()[0],i=1/0,r=-1/0;return t.forEach((function(t){var e=t[m][n];e>r&&(r=e),e<i&&(i=e)})),i===r&&(i=r-1),[i,r]},e.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return Object(h["M"])(t)||(t=this.getDefaultSize()),t},e.prototype.prepareGreyScaleBlurredCircle=function(t,e){var n=this.getGrayScaleBlurredCanvas(),i=t+e,r=n.getContext("2d");n.width=n.height=2*i,r.clearRect(0,0,n.width,n.height),r.shadowOffsetX=r.shadowOffsetY=2*i,r.shadowBlur=e,r.shadowColor="black",r.beginPath(),r.arc(-i,-i,t,0,2*Math.PI,!0),r.closePath(),r.fill()},e.prototype.drawWithRange=function(t,e,n,i){var r=this.coordinate,o=r.start,a=r.end,s=this.coordinate.getWidth(),c=this.coordinate.getHeight(),l=this.getAttribute("color"),u=l.getFields()[0];this.clearShadowCanvasCtx();var h=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t[m][u]<=e[1]&&t[m][u]>=e[0]})));for(var f=this.scales[u],p=0,d=t;p<d.length;p++){var g=d[p],v=this.getDrawCfg(g),y=v.x,b=v.y,x=f.scale(g[m][u]);this.drawGrayScaleBlurredCircle(y-o.x,b-a.y,n+i,x,h)}var O=h.getImageData(0,0,s,c);this.clearShadowCanvasCtx(),this.colorize(O),h.putImageData(O,0,0);var j=this.getImageShape();j.attr("x",o.x),j.attr("y",a.y),j.attr("width",s),j.attr("height",c),j.attr("img",h.canvas),j.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 o=this.getGrayScaleBlurredCanvas();r.globalAlpha=i,r.drawImage(o,t-n,e-n)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,i=this.paletteCache,r=3;r<n.length;r+=4){var o=n[r];if(Object(h["M"])(o)){var a=i[o]?i[o]:z["a"].rgb2arr(e.gradient(o/256));n[r-3]=a[0],n[r-2]=a[1],n[r-1]=a[2],n[r]=o}}},e.prototype.getImageShape=function(){var t=this.imageShape;if(t)return t;var e=this.container;return t=e.addShape({type:"image",attrs:{}}),this.imageShape=t,t},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=t.map((function(t){return t[m]}));return o(o({},e),{mappingData:t,data:n})},e}(Qi),io=no;function ro(t){var e,n,i,r,o=t.x,a=t.y,s=t.y0,c=t.size;Object(h["C"])(a)?(e=a[0],n=a[1]):(e=s,n=a),Object(h["C"])(o)?(i=o[0],r=o[1]):(i=o-c/2,r=o+c/2);var l=[{x:i,y:e},{x:i,y:n}];return l.push({x:r,y:n},{x:r,y:e}),l}function oo(t,e){void 0===e&&(e=!0);var n=[],i=t[0];n.push(["M",i.x,i.y]);for(var r=1,o=t.length;r<o;r++)n.push(["L",t[r].x,t[r].y]);return e&&(n.push(["L",i.x,i.y]),n.push(["z"])),n}function ao(t,e){var n=0,i=0,r=0,o=0;return Object(h["C"])(t)?1===t.length?n=i=r=o=t[0]:2===t.length?(n=r=t[0],i=o=t[1]):3===t.length?(n=t[0],i=o=t[1],r=t[2]):(n=t[0],i=t[1],r=t[2],o=t[3]):n=i=r=o=t,n+i>e&&(n=n?e/(1+i/n):0,i=e-n),r+o>e&&(r=r?e/(1+o/r):0,o=e-r),[n||0,i||0,r||0,o||0]}function so(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},o=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},a=Object(h["s"])(t,["background","style","radius"]);if(a){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=ao(a,Math.min(s,c)),u=l[0],f=l[1],p=l[2],d=l[3];i.push(["M",r.x,o.y+u]),0!==u&&i.push(["A",u,u,0,0,1,r.x+u,o.y]),i.push(["L",o.x-f,o.y]),0!==f&&i.push(["A",f,f,0,0,1,o.x,o.y+f]),i.push(["L",o.x,r.y-p]),0!==p&&i.push(["A",p,p,0,0,1,o.x-p,r.y]),i.push(["L",r.x+d,r.y]),0!==d&&i.push(["A",d,d,0,0,1,r.x,r.y-d])}else i.push(["M",r.x,r.y]),i.push(["L",o.x,r.y]),i.push(["L",o.x,o.y]),i.push(["L",r.x,o.y]),i.push(["L",r.x,r.y]);i.push(["z"])}if(n.isPolar){var g=n.getCenter(),v=Ft(t,n),y=v.startAngle,m=v.endAngle;if("theta"===n.type||n.isTransposed){var b=function(t){return Math.pow(t,2)};u=Math.sqrt(b(g.x-e[0].x)+b(g.y-e[0].y)),f=Math.sqrt(b(g.x-e[2].x)+b(g.y-e[2].y));i=At(g.x,g.y,u,n.startAngle,n.endAngle,f)}else i=At(g.x,g.y,n.getRadius(),y,m)}return i}function co(t,e,n){var i=n.getWidth(),r=n.getHeight(),o="rect"===n.type,a=[],s=(t[2].x-t[1].x)/2,c=n.isTransposed?s*r/i:s*i/r;return"round"===e?(o?(a.push(["M",t[0].x,t[0].y+c]),a.push(["L",t[1].x,t[1].y-c]),a.push(["A",s,s,0,0,1,t[2].x,t[2].y-c]),a.push(["L",t[3].x,t[3].y+c]),a.push(["A",s,s,0,0,1,t[0].x,t[0].y+c])):(a.push(["M",t[0].x,t[0].y]),a.push(["L",t[1].x,t[1].y]),a.push(["A",s,s,0,0,1,t[2].x,t[2].y]),a.push(["L",t[3].x,t[3].y]),a.push(["A",s,s,0,0,1,t[0].x,t[0].y])),a.push(["z"])):a=oo(t),a}function lo(t,e,n){var i=[];return Object(h["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 uo(t,e){return[e,t]}function ho(t,e,n){var i,r,o,a,c,l,u,h=s([],t,!0),f=h[0],p=h[1],d=h[2],g=h[3],v="number"===typeof n?Array(4).fill(n):n,y=v[0],m=v[1],b=v[2],x=v[3];e.isTransposed&&(i=uo(p,g),p=i[0],g=i[1],r=[x,y,m,b],y=r[0],m=r[1],b=r[2],x=r[3]),e.isReflect("y")&&(o=uo(f,p),f=o[0],p=o[1],a=uo(d,g),d=a[0],g=a[1]),e.isReflect("x")&&(c=uo(f,g),f=c[0],g=c[1],l=uo(p,d),p=l[0],d=l[1]);var O=[],j=function(t){return Math.abs(t)};return u=ao([y,m,b,x],Math.min(j(g.x-f.x),j(p.y-f.y))).map((function(t){return j(t)})),y=u[0],m=u[1],b=u[2],x=u[3],f.y<p.y?(O.push(["M",g.x,g.y+b]),0!==b&&O.push(["A",b,b,0,0,0,g.x-b,g.y]),O.push(["L",f.x+x,f.y]),0!==x&&O.push(["A",x,x,0,0,0,f.x,f.y+x]),O.push(["L",p.x,p.y-y]),0!==y&&O.push(["A",y,y,0,0,0,p.x+y,p.y]),O.push(["L",d.x-m,d.y]),0!==m&&O.push(["A",m,m,0,0,0,d.x,d.y-m]),O.push(["L",g.x,g.y+b]),O.push(["z"])):g.x<f.x?(O.push(["M",d.x+m,d.y]),0!==m&&O.push(["A",m,m,0,0,0,d.x,d.y+m]),O.push(["L",g.x,g.y-b]),0!==b&&O.push(["A",b,b,0,0,0,g.x+b,g.y]),O.push(["L",f.x-x,f.y]),0!==x&&O.push(["A",x,x,0,0,0,f.x,f.y-x]),O.push(["L",p.x,p.y+y]),0!==y&&O.push(["A",y,y,0,0,0,p.x-y,p.y]),O.push(["L",d.x+m,d.y]),O.push(["z"])):(O.push(["M",p.x,p.y+y]),0!==y&&O.push(["A",y,y,0,0,1,p.x+y,p.y]),O.push(["L",d.x-m,d.y]),0!==m&&O.push(["A",m,m,0,0,1,d.x,d.y+m]),O.push(["L",g.x,g.y-b]),0!==b&&O.push(["A",b,b,0,0,1,g.x-b,g.y]),O.push(["L",f.x+x,f.y]),0!==x&&O.push(["A",x,x,0,0,1,f.x,f.y-x]),O.push(["L",p.x,p.y+y]),O.push(["z"])),O}Gi("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return ro(t)}});Xi("interval","rect",{draw:function(t,e){var n,i=kr(t,!1,!0),r=e,a=null===t||void 0===t?void 0:t.background;if(a){r=e.addGroup();var s=Fr(t),c=so(t,this.parsePoints(t.points),this.coordinate);r.addShape("path",{attrs:o(o({},s),{path:c}),zIndex:-1,name:Ei})}n=i.radius&&this.coordinate.isRect?ho(this.parsePoints(t.points),this.coordinate,i.radius):this.parsePath(co(t.points,i.lineCap,this.coordinate));var l=r.addShape("path",{attrs:o(o({},i),{path:n}),name:"interval"});return a?r:l},getMarker:function(t){var e=t.color,n=t.isInPolar;return n?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}});function fo(t,e){var n=t.length,i=t;Object(h["Q"])(i[0])&&(i=t.map((function(t){return e.translate(t)})));for(var r=i[1]-i[0],o=2;o<n;o++){var a=i[o]-i[o-1];r>a&&(r=a)}return r}function po(t,e){if(e){var n=Object(h["q"])(t),i=Object(h["yb"])(n,e);return i.length}return t.length}function go(t){var e=t.theme,n=t.coordinate,i=t.getXScale(),r=i.values,o=t.beforeMappingData,a=r.length,s=_t(t.coordinate),c=t.intervalPadding,l=t.dodgePadding,u=t.maxColumnWidth||e.maxColumnWidth,f=t.minColumnWidth||e.minColumnWidth,p=t.columnWidthRatio||e.columnWidthRatio,d=t.multiplePieWidthRatio||e.multiplePieWidthRatio,g=t.roseWidthRatio||e.roseWidthRatio;if(i.isLinear&&r.length>1){r.sort();var v=fo(r,i);a=(i.max-i.min)/v,r.length>a&&(a=r.length)}var y=i.range,m=1/a,b=1;if(n.isPolar?b=n.isTransposed&&a>1?d:g:(i.isLinear&&(m*=y[1]-y[0]),b=p),!Object(h["K"])(c)&&c>=0){var x=c/s;m=(1-(a-1)*x)/a}else m*=b;if(t.getAdjust("dodge")){var O=t.getAdjust("dodge"),j=O.dodgeBy,w=po(o,j);if(!Object(h["K"])(l)&&l>=0){var C=l/s;m=(m-C*(w-1))/w}else!Object(h["K"])(c)&&c>=0?(m*=b,m/=w):m/=w;m=m>=0?m:0}if(!Object(h["K"])(u)&&u>=0){var M=u/s;m>M&&(m=M)}if(!Object(h["K"])(f)&&f>=0){var S=f/s;m<S&&(m=S)}return m}var vo=function(t){function e(e){var n=t.call(this,e)||this;n.type="interval",n.shapeType="interval",n.generatePoints=!0;var i=e.background;return n.background=i,n}return r(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=this.getAttribute("size");if(r){n=this.getAttributeValues(r,e)[0];var o=this.coordinate,a=_t(o);n/=a}else this.defaultSize||(this.defaultSize=go(this)),n=this.defaultSize;return i.size=n,i},e.prototype.adjustScale=function(){t.prototype.adjustScale.call(this);var e=this.getYScale();if("theta"===this.coordinate.type)e.change({nice:!1,min:0,max:Qt(e)});else{var n=this.scaleDefs,i=e.field,r=e.min,o=e.max,a=e.type;"time"!==a&&(r>0&&!Object(h["s"])(n,[i,"min"])&&e.change({min:0}),o<=0&&!Object(h["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}(Qi),yo=vo,mo=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 r(e,t),e}(Kr),bo=mo,xo=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],Oo=["cross","tick","plus","hyphen","line"];function jo(t,e,n,i,r){var a=kr(e,r,!r,"r"),s=t.parsePoints(e.points),c=s[0];if(e.isStack)c=s[1];else if(s.length>1){for(var l=n.addGroup(),u=0,h=s;u<h.length;u++){var f=h[u];l.addShape({type:"marker",attrs:o(o(o({},a),{symbol:dr[i]||i}),f)})}return l}return n.addShape({type:"marker",attrs:o(o(o({},a),{symbol:dr[i]||i}),c)})}Gi("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return Er(t)}});Object(h["j"])(xo,(function(t){Xi("point","hollow-".concat(t),{draw:function(e,n){return jo(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:dr[t]||t,style:{r:4.5,stroke:n,fill:null}}}})}));var wo=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 r(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return o(o({},n),{isStack:!!this.getAdjust("stack")})},e}(Qi),Co=wo;function Mo(t){var e=t[0],n=1,i=[["M",e.x,e.y]];while(n<t.length){var r=t[n];r.x===t[n-1].x&&r.y===t[n-1].y||(i.push(["L",r.x,r.y]),r.x===e.x&&r.y===e.y&&n<t.length-1&&(e=t[n+1],i.push(["Z"]),i.push(["M",e.x,e.y]),n++)),n++}return Object(h["H"])(Object(h["U"])(i),e)||i.push(["L",e.x,e.y]),i.push(["Z"]),i}Gi("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return Object(h["j"])(t.x,(function(n,i){var r=t.y[i];e.push({x:n,y:r})})),e}});Xi("polygon","polygon",{draw:function(t,e){if(!Object(h["G"])(t.points)){var n=kr(t,!0,!0),i=this.parsePath(Mo(t.points));return e.addShape("path",{attrs:o(o({},n),{path:i}),name:"polygon"})}},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}});var So=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e}return r(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=i.x,o=i.y;if(!Object(h["C"])(r)||!Object(h["C"])(o)){var a=this.getXScale(),s=this.getYScale(),c=a.values.length,l=s.values.length,u=.5/c,f=.5/l;a.isCategory&&s.isCategory?(r=[r-u,r-u,r+u,r+u],o=[o-f,o+f,o+f,o-f]):Object(h["C"])(r)?(n=r,r=[n[0],n[0],n[1],n[1]],o=[o-f/2,o+f/2,o+f/2,o-f/2]):Object(h["C"])(o)&&(n=o,o=[n[0],n[1],n[1],n[0]],r=[r-u/2,r-u/2,r+u/2,r+u/2]),i.x=r,i.y=o}return i},e}(Qi),Ao=So,ko=(Gi("schema",{defaultShapeType:""}),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e}return r(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=this.getAttribute("size");if(r){n=this.getAttributeValues(r,e)[0];var o=this.coordinate,a=_t(o);n/=a}else this.defaultSize||(this.defaultSize=go(this)),n=this.defaultSize;return i.size=n,i},e}(Qi)),Fo=ko;function Eo(t){if(!Object(h["C"])(t))return[];var e=Object(h["Y"])(t);return Object(h["W"])(t,(function(t){return t/e}))}Gi("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e=t.size/2,n=[],i=Eo(t._size);return Object(h["j"])(t.y,(function(r,o){var a=i[o]*e,s=0===o,c=o===t.y.length-1;n.push({isMin:s,isMax:c,x:t.x-a,y:r}),n.unshift({isMin:s,isMax:c,x:t.x+a,y:r})})),n}});Xi("violin","violin",{draw:function(t,e){var n=kr(t,!0,!0),i=this.parsePath(Sr(t.points));return e.addShape("path",{attrs:o(o({},n),{path:i}),name:"violin"})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4,fill:e}}}});var To=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e.shapeType="violin",e.generatePoints=!0,e}return r(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=this.getAttribute("size");if(r){n=this.getAttributeValues(r,e)[0];var o=this.coordinate,a=_t(o);n/=a}else this.defaultSize||(this.defaultSize=go(this)),n=this.defaultSize;return i.size=n,i._size=Object(h["s"])(e[m],[this._sizeField]),i},e.prototype.initAttributes=function(){var e=this.attributeOption,n=e.size?e.size.fields[0]:this._sizeField?this._sizeField:"size";this._sizeField=n,delete e.size,t.prototype.initAttributes.call(this)},e}(Qi),Po=To;function Io(t,e){return["C",1*t.x/2+1*e.x/2,t.y,1*t.x/2+1*e.x/2,e.y,e.x,e.y]}function Bo(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var i=["Q"];return Object(h["j"])(n,(function(t){i.push(t.x,t.y)})),i}function Lo(t,e,n){var i=Bo(e,n),r=[["M",t.x,t.y]];return r.push(i),r}function Do(t,e){var n=Bo(t[1],e),i=Bo(t[3],e),r=[["M",t[0].x,t[0].y]];return r.push(i),r.push(["L",t[3].x,t[3].y]),r.push(["L",t[2].x,t[2].y]),r.push(n),r.push(["L",t[1].x,t[1].y]),r.push(["L",t[0].x,t[0].y]),r.push(["Z"]),r}function Ro(t,e){var n=Io(t,e),i=[["M",t.x,t.y]];return i.push(n),i}Xi("area","line",{draw:function(t,e){var n=Zr(t,!0,!1,this),i=e.addShape({type:"path",attrs:n,name:"area"});return i},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:e,fill:null}}}}),Xi("area","smooth",{draw:function(t,e){var n=this.coordinate,i=Zr(t,!1,!0,this,Qr(n)),r=e.addShape({type:"path",attrs:i,name:"area"});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:e}}}}),Xi("area","smooth-line",{draw:function(t,e){var n=this.coordinate,i=Zr(t,!0,!0,this,Qr(n)),r=e.addShape({type:"path",attrs:i,name:"area"});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:e,fill:null}}}}),Xi("edge","arc",{draw:function(t,e){var n,i=kr(t,!0,!1,"lineWidth"),r=t.points,a=r.length>2?"weight":"normal";if(t.isInCircle){var s={x:0,y:1};return"normal"===a?n=Lo(r[0],r[1],s):(i.fill=i.stroke,n=Do(r,s)),n=this.parsePath(n),e.addShape("path",{attrs:o(o({},i),{path:n})})}if("normal"===a)return r=this.parsePoints(r),n=kt((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:o(o({},i),{path:n})});var c=Io(r[1],r[3]),l=Io(r[2],r[0]);return n=[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],c,["L",r[3].x,r[3].y],["L",r[2].x,r[2].y],l,["Z"]],n=this.parsePath(n),i.fill=i.stroke,e.addShape("path",{attrs:o(o({},i),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Xi("edge","smooth",{draw:function(t,e){var n=kr(t,!0,!1,"lineWidth"),i=t.points,r=this.parsePath(Ro(i[0],i[1]));return e.addShape("path",{attrs:o(o({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var _o=1/3;function zo(t,e){var n=[];n.push({x:t.x,y:t.y*(1-_o)+e.y*_o}),n.push({x:e.x,y:t.y*(1-_o)+e.y*_o}),n.push(e);var i=[["M",t.x,t.y]];return Object(h["j"])(n,(function(t){i.push(["L",t.x,t.y])})),i}function Yo(t){var e=t.x,n=t.y,i=t.y0;return Object(h["C"])(n)?n.map((function(t,n){return{x:Object(h["C"])(e)?e[n]:e,y:t}})):[{x:e,y:i},{x:e,y:n}]}function No(t){var e,n,i=t.x,r=t.y,o=t.y0,a=t.size;Object(h["C"])(r)?(e=r[0],n=r[1]):(e=o,n=r);var s=i+a/2,c=i-a/2;return[{x:i,y:e},{x:i,y:n},{x:c,y:e},{x:s,y:e},{x:c,y:n},{x:s,y:n}]}function Go(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]]}Xi("edge","vhv",{draw:function(t,e){var n=kr(t,!0,!1,"lineWidth"),i=t.points,r=this.parsePath(zo(i[0],i[1]));return e.addShape("path",{attrs:o(o({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Xi("interval","funnel",{getPoints:function(t){return t.size=2*t.size,ro(t)},draw:function(t,e){var n=kr(t,!1,!0),i=this.parsePath(lo(t.points,t.nextPoints,!1)),r=e.addShape("path",{attrs:o(o({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),Xi("interval","hollow-rect",{draw:function(t,e){var n=kr(t,!0,!1),i=e,r=null===t||void 0===t?void 0:t.background;if(r){i=e.addGroup();var a=Fr(t),s=so(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:o(o({},a),{path:s}),zIndex:-1,name:Ei})}var c=this.parsePath(oo(t.points)),l=i.addShape("path",{attrs:o(o({},n),{path:c}),name:"interval"});return r?i:l},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}}}}),Xi("interval","line",{getPoints:function(t){return Yo(t)},draw:function(t,e){var n=kr(t,!0,!1,"lineWidth"),i=Bt(o({},n),["fill"]),r=this.parsePath(oo(t.points,!1)),a=e.addShape("path",{attrs:o(o({},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}}}}),Xi("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,ro(t)},draw:function(t,e){var n=kr(t,!1,!0),i=this.parsePath(lo(t.points,t.nextPoints,!0)),r=e.addShape("path",{attrs:o(o({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),Xi("interval","tick",{getPoints:function(t){return No(t)},draw:function(t,e){var n=kr(t,!0,!1),i=this.parsePath(Go(t.points)),r=e.addShape("path",{attrs:o(o({},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 Xo=function(t,e,n){var i,r=t.x,o=t.y,a=e.x,s=e.y;switch(n){case"hv":i=[{x:a,y:o}];break;case"vh":i=[{x:r,y:s}];break;case"hvh":var c=(a+r)/2;i=[{x:c,y:o},{x:c,y:s}];break;case"vhv":var l=(o+s)/2;i=[{x:r,y:l},{x:a,y:l}];break;default:break}return i};function Vo(t,e){var n=[];return Object(h["j"])(t,(function(i,r){var o=t[r+1];if(n.push(i),o){var a=Xo(i,o,e);n=n.concat(a)}})),n}function Ho(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}function Wo(t,e){var n=Mr(t.points,t.connectNulls,t.showSinglePoint),i=[];return Object(h["j"])(n,(function(t){var n=Vo(t,e);i=i.concat(Ho(n))})),o(o({},kr(t,!0,!1,"lineWidth")),{path:i})}function qo(t){var e=Object(h["C"])(t)?t:[t],n=e[0],i=e[e.length-1],r=e.length>1?e[1]:n,o=e.length>3?e[3]:i,a=e.length>2?e[2]:r;return{min:n,max:i,min1:r,max1:o,median:a}}function Ko(t,e,n){var i,r=n/2;if(Object(h["C"])(e)){var o=qo(e),a=o.min,s=o.max,c=o.median,l=o.min1,u=o.max1,f=t-r,p=t+r;i=[[f,s],[p,s],[t,s],[t,u],[f,l],[f,u],[p,u],[p,l],[t,l],[t,a],[f,a],[p,a],[f,c],[p,c]]}else{e=Object(h["K"])(e)?.5:e;var d=qo(t),g=(a=d.min,s=d.max,c=d.median,l=d.min1,u=d.max1,e-r),v=e+r;i=[[a,g],[a,v],[a,e],[l,e],[l,g],[l,v],[u,v],[u,g],[u,e],[s,e],[s,g],[s,v],[c,g],[c,v]]}return i.map((function(t){return{x:t[0],y:t[1]}}))}function Uo(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 Zo(t){var e=Object(h["C"])(t)?t:[t],n=e.sort((function(t,e){return e-t}));return It(n,4,n[n.length-1])}function Qo(t,e,n){var i=Zo(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 $o(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 Jo(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(h["c"])(e,0,Math.min(n,i))),r/=2;var o=(t[0].x+t[2].x)/2,a=(t[0].y+t[2].y)/2;return{x:o-r,y:a-r,width:2*r,height:2*r}}Object(h["j"])(["hv","vh","hvh","vhv"],(function(t){Xi("line",t,{draw:function(e,n){var i=Wo(e,t),r=n.addShape({type:"path",attrs:i,name:"line"});return r},getMarker:function(e){return Pr(e,t)}})})),Object(h["j"])(Oo,(function(t){Xi("point",t,{draw:function(e,n){return jo(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:dr[t],style:{r:4.5,stroke:n,fill:null}}}})})),Xi("point","image",{draw:function(t,e){var n=kr(t,!1,!1,"r").r,i=this.parsePoints(t.points),r=i[0];if(t.isStack)r=i[1];else if(i.length>1){for(var o=e.addGroup(),a=0,s=i;a<s.length;a++){var c=s[a];o.addShape("image",{attrs:{x:c.x-n/2,y:c.y-n,width:n,height:n,img:t.shape[1]}})}return o}return e.addShape("image",{attrs:{x:r.x-n/2,y:r.y-n,width:n,height:n,img:t.shape[1]}})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4.5,fill:e}}}}),Object(h["j"])(xo,(function(t){Xi("point",t,{draw:function(e,n){return jo(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:dr[t]||t,style:{r:4.5,fill:n}}}})})),Xi("schema","box",{getPoints:function(t){var e=t.x,n=t.y,i=t.size;return Ko(e,n,i)},draw:function(t,e){var n=kr(t,!0,!1),i=this.parsePath(Uo(t.points)),r=e.addShape("path",{attrs:o(o({},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=Ko(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}}}}),Xi("schema","candle",{getPoints:function(t){var e=t.x,n=t.y,i=t.size;return Qo(e,n,i)},draw:function(t,e){var n=kr(t,!0,!0),i=this.parsePath($o(t.points)),r=e.addShape("path",{attrs:o(o({},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=Qo(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}}}}),Xi("polygon","square",{draw:function(t,e){if(!Object(h["G"])(t.points)){var n=kr(t,!0,!0),i=this.parsePoints(t.points);return e.addShape("rect",{attrs:o(o({},n),Jo(i,t.size)),name:"polygon"})}},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),Xi("violin","smooth",{draw:function(t,e){var n=kr(t,!0,!0),i=this.parsePath(Ar(t.points));return e.addShape("path",{attrs:o(o({},n),{path:i})})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{stroke:null,r:4,fill:e}}}}),Xi("violin","hollow",{draw:function(t,e){var n=kr(t,!0,!1),i=this.parsePath(Sr(t.points));return e.addShape("path",{attrs:o(o({},n),{path:i})})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4,fill:null,stroke:e}}}}),Xi("violin","hollow-smooth",{draw:function(t,e){var n=kr(t,!0,!1),i=this.parsePath(Ar(t.points));return e.addShape("path",{attrs:o(o({},n),{path:i})})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4,fill:null,stroke:e}}}});var ta=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(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,s=t.prototype.getLabelOffsetPoint.call(this,e,n,i),c=this.getCoordinate(),l=c.isTransposed,u=l?"x":"y",h=this.getLabelValueDir(e.mappingData);return s=o(o({},s),(a={},a[u]=s[u]*h,a)),c.isReflect("x")&&(s=o(o({},s),{x:-1*s.x})),c.isReflect("y")&&(s=o(o({},s),{y:-1*s.y})),s},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),i=e.theme;return Object(h["h"])({},n,i.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,i){var r,o,a,s,c=this.getCoordinate(),l=c.isTransposed,u=e.points,f=c.convert(u[0]),p=c.convert(u[2]),d=this.getLabelValueDir(e),g=Object(h["C"])(e.shape)?e.shape[0]:e.shape;if("funnel"===g||"pyramid"===g){var v=Object(h["s"])(e,"nextPoints"),y=Object(h["s"])(e,"points");if(v){var m=c.convert(y[0]),b=c.convert(y[1]),x=c.convert(v[0]),O=c.convert(v[1]);l?(r=Math.min(x.y,m.y),a=Math.max(x.y,m.y),o=(b.x+O.x)/2,s=(m.x+x.x)/2):(r=Math.min((b.y+O.y)/2,(m.y+x.y)/2),a=Math.max((b.y+O.y)/2,(m.y+x.y)/2),o=O.x,s=m.x)}else r=Math.min(p.y,f.y),a=Math.max(p.y,f.y),o=p.x,s=f.x}else r=Math.min(p.y,f.y),a=Math.max(p.y,f.y),o=p.x,s=f.x;switch(i){case"right":t.x=o,t.y=(r+a)/2,t.textAlign=Object(h["s"])(t,"textAlign",d>0?"left":"right");break;case"left":t.x=s,t.y=(r+a)/2,t.textAlign=Object(h["s"])(t,"textAlign",d>0?"left":"right");break;case"bottom":l&&(t.x=(o+s)/2),t.y=a,t.textAlign=Object(h["s"])(t,"textAlign","center"),t.textBaseline=Object(h["s"])(t,"textBaseline",d>0?"bottom":"top");break;case"middle":l&&(t.x=(o+s)/2),t.y=(r+a)/2,t.textAlign=Object(h["s"])(t,"textAlign","center"),t.textBaseline=Object(h["s"])(t,"textBaseline","middle");break;case"top":l&&(t.x=(o+s)/2),t.y=r,t.textAlign=Object(h["s"])(t,"textAlign","center"),t.textBaseline=Object(h["s"])(t,"textBaseline",d>0?"bottom":"top");break;default:break}},e}(fr),ea=ta,na=Math.PI/2,ia=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if(Object(h["M"])(t))n=t;else if(Object(h["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(h["W"])(n,(function(t){if(t&&i){var e=i.scale(Object(h["s"])(t.data,i.field));return o(o({},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,o=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 a=t.offset*r,s=this.getPointAngle(i),c=t.labelEmit,l=this.getCirclePoint(s,a,i,c);return 0===l.r?l.content="":(l.content=o,l.angle=s,l.color=e.color),l.rotate=t.autoRotate?this.getLabelRotate(s,a,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(h["C"])(t.x)||Object(h["C"])(t.y)?{x:Object(h["C"])(t.x)?t.x[e]:t.x,y:Object(h["C"])(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return Gt(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,i){var r=this.getCoordinate(),a=r.getCenter(),s=Yt(r,n);if(0===s)return o(o({},a),{r:s});var c=t;if(r.isTransposed&&s>e&&!i){var l=Math.asin(e/(2*s));c=t+2*l}else s+=e;return{x:a.x+s*Math.cos(c),y:a.y+s*Math.sin(c),r:s}},e.prototype.getLabelRotate=function(t,e,n){var i=t+na;return n&&(i-=na),i&&(i>na?i-=Math.PI:i<-na&&(i+=Math.PI)),i},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,i={x:0,y:0};return Object(h["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}(fr),ra=ia,oa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return r(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var i=t.prototype.getDefaultLabelCfg.call(this,e,n);return Object(h["h"])({},i,Object(h["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(h["C"])(t.x)?t.x[0]:t.x,y:t.y[0]},r={x:Object(h["C"])(t.x)?t.x[1]:t.x,y:t.y[1]},o=Gt(n,i);if(t.points&&t.points[0].y===t.points[1].y)e=o;else{var a=Gt(n,r);o>=a&&(a+=2*Math.PI),e=o+(a-o)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),i=n.getCenter(),r=n.getRadius()+e;return o(o({},St(i.x,i.y,r,t)),{angle:t,r:r})},e}(ra),aa=oa,sa=4;function ca(t,e,n,i,r,o){var a,s=!0,c=i.start,l=i.end,u=Math.min(c.y,l.y),f=Math.abs(c.y-l.y),p=0,d=Number.MIN_VALUE,g=e.map((function(t){return t.y>p&&(p=t.y),t.y<d&&(d=t.y),{size:n,targets:[t.y-u]}}));d-=u,p-u>f&&(f=p-u);while(s){g.forEach((function(t){var e=(Math.min.apply(d,t.targets)+Math.max.apply(d,t.targets))/2;t.pos=Math.min(Math.max(d,e-t.size/2),f-t.size)})),s=!1,a=g.length;while(a--)if(a>0){var v=g[a-1],y=g[a];v.pos+v.size>y.pos&&(v.size+=y.size,v.targets=v.targets.concat(y.targets),v.pos+v.size>f&&(v.pos=f-v.size),g.splice(a,1),s=!0)}}a=0,g.forEach((function(t){var i=u+n/2;t.targets.forEach((function(){e[a].y=t.pos+i,i+=n,a++}))}));for(var m={},b=0,x=t;b<x.length;b++){var O=x[b];m[O.get("id")]=O}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-r.y),2);if(e<n)t.x=r.x;else{var i=Math.sqrt(e-n);t.x=o?r.x+i:r.x-i}var a=m[t.id];a.attr("x",t.x),a.attr("y",t.y);var s=Object(h["m"])(a.getChildren(),(function(t){return"text"===t.get("type")}));s&&(s.attr("y",t.y),s.attr("x",t.x))}))}function la(t,e,n,i){if(t.length&&e.length){var r=t[0]?t[0].offset:0,o=e[0].get("coordinate"),a=o.getRadius(),s=o.getCenter();if(r>0){var c=14,l=a+r,u=2*l+2*c,f={start:o.start,end:o.end},p=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?p[0].push(t):p[1].push(t))})),p.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})),ca(e,t,c,f,s,n)}))}Object(h["j"])(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,i=St(s.x,s.y,a,n),r=St(s.x,s.y,a+e/2,n),o=t.x+Object(h["s"])(t,"offsetX",0),c=t.y+Object(h["s"])(t,"offsetY",0),l={x:o-Math.cos(n)*sa,y:c-Math.sin(n)*sa};Object(h["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 ua(t,e,n){var i=t.filter((function(t){return!t.invisible}));i.sort((function(t,e){return t.y-e.y}));var r,o=!0,a=n.minY,s=n.maxY,c=Math.abs(a-s),l=0,u=Number.MIN_VALUE,h=i.map((function(t){return t.y>l&&(l=t.y),t.y<u&&(u=t.y),{content:t.content,size:e,targets:[t.y-a],pos:null}}));u-=a,l-a>c&&(c=l-a);while(o){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)})),o=!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),o=!0)}}r=0,h.forEach((function(t){var n=a+e/2;t.targets.forEach((function(){i[r].y=t.pos+n,n+=e,r++}))}))}var ha=4;function fa(t,e){var n=e.getCenter(),i=e.getRadius();if(t&&t.labelLine){var r=t.angle,o=t.offset,a=St(n.x,n.y,i,r),s=t.x+Object(h["s"])(t,"offsetX",0)*(Math.cos(r)>0?1:-1),c=t.y+Object(h["s"])(t,"offsetY",0)*(Math.sin(r)>0?1:-1),l={x:s-Math.cos(r)*ha,y:c-Math.sin(r)*ha},u=t.labelLine.smooth,f=[],p=l.x-n.x,d=l.y-n.y,g=Math.atan(d/p);if(p<0&&(g+=Math.PI),!1===u){Object(h["O"])(t.labelLine)||(t.labelLine={});var v=0;(r<0&&r>-Math.PI/2||r>1.5*Math.PI)&&l.y>a.y&&(v=1),r>=0&&r<Math.PI/2&&l.y>a.y&&(v=1),r>=Math.PI/2&&r<Math.PI&&a.y>l.y&&(v=1),(r<-Math.PI/2||r>=Math.PI&&r<1.5*Math.PI)&&a.y>l.y&&(v=1);var y=o/2>4?4:Math.max(o/2-1,0),m=St(n.x,n.y,i+y,r),b=St(n.x,n.y,i+o/2,g),x=0;f.push("M ".concat(a.x," ").concat(a.y)),f.push("L ".concat(m.x," ").concat(m.y)),f.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(x," ").concat(v," ").concat(b.x," ").concat(b.y)),f.push("L ".concat(l.x," ").concat(l.y))}else{m=St(n.x,n.y,i+(o/2>4?4:Math.max(o/2-1,0)),r);var O=a.x<n.x?1:-1;f.push("M ".concat(l.x," ").concat(l.y));var j=(a.y-n.y)/(a.x-n.x),w=(l.y-n.y)/(l.x-n.x);Math.abs(j-w)>Math.pow(Math.E,-16)&&f.push.apply(f,["C",l.x+4*O,l.y,2*m.x-a.x,2*m.y-a.y,a.x,a.y]),f.push("L ".concat(a.x," ").concat(a.y))}t.labelLine.path=f.join(" ")}}function pa(t,e,n,i){var r=Object(h["l"])(t,(function(t){return!Object(h["K"])(t)})),o=e[0]&&e[0].get("coordinate");if(o){for(var a=o.getCenter(),s=o.getRadius(),c={},l=0,u=e;l<u.length;l++){var f=u[l];c[f.get("id")]=f}var p=Object(h["s"])(r[0],"labelHeight",14),d=Object(h["s"])(r[0],"offset",0);if(!(d<=0)){var g="left",v="right",y=Object(h["w"])(r,(function(t){return t.x<a.x?g:v})),m=o.start,b=o.end,x=Math.min(2*(s+d+p),o.getHeight()),O=x/2,j={minX:m.x,maxX:b.x,minY:a.y-O,maxY:a.y+O};Object(h["j"])(y,(function(t,e){var n=Math.floor(x/p);t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(h["j"])(t,(function(t,e){e+1>n&&(c[t.id].set("visible",!1),t.invisible=!0)}))),ua(t,p,j)})),Object(h["j"])(y,(function(t,e){Object(h["j"])(t,(function(t){var n=e===v,i=c[t.id],r=i.getChildByIndex(0);if(r){var l=s+d,u=t.y-a.y,h=Math.pow(l,2),f=Math.pow(u,2),p=h-f>0?h-f:0,g=Math.sqrt(p),y=Math.abs(Math.cos(t.angle)*l);t.x=n?a.x+Math.max(g,y):a.x-Math.max(g,y)}r&&(r.attr("y",t.y),r.attr("x",t.x)),fa(t,o)}))}))}}}var da=4,ga=4,va=4;function ya(t,e,n){var i=e.getCenter(),r=e.getRadius(),o={x:t.x-(n?va:-va),y:t.y},a=St(i.x,i.y,r+da,t.angle),s={x:o.x,y:o.y},c={x:a.x,y:a.y},l=St(i.x,i.y,r,t.angle),u="";if(o.y!==a.y){var f=n?4:-4;s.y=o.y,t.angle<0&&t.angle>=-Math.PI/2&&(s.x=Math.max(a.x,o.x-f),o.y<a.y?c.y=s.y:(c.y=a.y,c.x=Math.max(c.x,s.x-f))),t.angle>0&&t.angle<Math.PI/2&&(s.x=Math.max(a.x,o.x-f),o.y>a.y?c.y=s.y:(c.y=a.y,c.x=Math.max(c.x,s.x-f))),t.angle>Math.PI/2&&(s.x=Math.min(a.x,o.x-f),o.y>a.y?c.y=s.y:(c.y=a.y,c.x=Math.min(c.x,s.x-f))),t.angle<-Math.PI/2&&(s.x=Math.min(a.x,o.x-f),o.y<a.y?c.y=s.y:(c.y=a.y,c.x=Math.min(c.x,s.x-f)))}u=["M ".concat(o.x,",").concat(o.y),"L ".concat(s.x,",").concat(s.y),"L ".concat(c.x,",").concat(c.y),"L ".concat(a.x,",").concat(a.y),"L ".concat(l.x,",").concat(l.y)].join(" "),t.labelLine=Object(h["h"])({},t.labelLine,{path:u})}function ma(t,e,n,i){var r=e[0]&&e[0].get("coordinate");if(r){for(var o=r.getCenter(),a=r.getRadius(),s={},c=0,l=e;c<l.length;c++){var u=l[c];s[u.get("id")]=u}var f=Object(h["s"])(t[0],"labelHeight",14),p=Math.max(Object(h["s"])(t[0],"offset",0),da);Object(h["j"])(t,(function(t){var e=Object(h["s"])(s,[t.id]);if(e){var n=t.x>o.x||t.x===o.x&&t.y>o.y,i=Object(h["K"])(t.offsetX)?ga:t.offsetX,r=St(o.x,o.y,a+da,t.angle),c=p+i;t.x=o.x+(n?1:-1)*(a+c),t.y=r.y}}));var d=r.start,g=r.end,v="left",y="right",m=Object(h["w"])(t,(function(t){return t.x<o.x?v:y})),b=2*(a+p)+f;Object(h["j"])(m,(function(t){var e=t.length*f;e>b&&(b=Math.min(e,Math.abs(d.y-g.y)))}));var x={minX:d.x,maxX:g.x,minY:o.y-b/2,maxY:o.y+b/2};Object(h["j"])(m,(function(t,e){var n=b/f;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(h["j"])(t,(function(t,e){e>n&&(s[t.id].set("visible",!1),t.invisible=!0)}))),ua(t,f,x)}));var O=x.minY,j=x.maxY;Object(h["j"])(m,(function(t,e){var n=e===y;Object(h["j"])(t,(function(t){var e=Object(h["s"])(s,t&&[t.id]);if(e)if(t.y<O||t.y>j)e.set("visible",!1);else{var i=e.getChildByIndex(0),o=i.getCanvasBBox(),a={x:n?o.x:o.maxX,y:o.y+o.height/2};Ji(i,t.x-a.x,t.y-a.y),t.labelLine&&ya(t,r,n)}}))}))}}function ba(t,e,n,i){Object(h["j"])(e,(function(t){var e=i.minX,n=i.minY,r=i.maxX,o=i.maxY,a=t.getCanvasBBox(),s=a.minX,c=a.minY,l=a.maxX,u=a.maxY,h=a.x,f=a.y,p=a.width,d=a.height,g=h,v=f;(s<e||l<e)&&(g=e),(c<n||u<n)&&(v=n),s>r?g=r-p:l>r&&(g-=l-r),c>o?v=o-d:u>o&&(v-=u-o),g===h&&v===f||Ji(t,g-h,v-f)}))}function xa(t,e,n,i){Object(h["j"])(e,(function(t,e){var i=t.getCanvasBBox(),r=n[e].getBBox();(i.minX<r.minX||i.minY<r.minY||i.maxX>r.maxX||i.maxY>r.maxY)&&t.remove(!0)}))}var Oa=100,ja=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),o=Math.round(t.minY),a=Math.round(t.maxY),s=i;s<=r;s+=1)if(n[s]){if(s===i||s===r){for(var c=o;c<=a;c++)if(n[s][c]){e=!1;break}}else if(n[s][o]||n[s][a]){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),o=Math.round(t.maxY),a=n;a<=i;a+=1)e[a]||(e[a]={});for(a=n;a<=i;a+=this.xGap){for(var s=r;s<=o;s+=this.yGap)e[a][s]=!0;e[a][o]=!0}if(1!==this.yGap)for(a=r;a<=o;a+=1)e[n][a]=!0,e[i][a]=!0;if(1!==this.xGap)for(a=n;a<=i;a+=1)e[a][r]=!0,e[a][o]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function wa(t,e,n){void 0===n&&(n=Oa);var i,r=-1,o=t.attr(),a=o.x,s=o.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))<l&&g<n)if(i=p(u+=r),h=~~i[0],f=~~i[1],(h||f)&&!v["".concat(h,"-").concat(f)]&&(t.attr({x:a+h,y:s+f}),h+f<0&&t.attr("textAlign","right"),g++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),d=!0,v["".concat(h,"-").concat(f)]=!0;break}return d}function Ca(t,e,n,i){var r=t.getCanvasBBox(),o=r.width,a=r.height,s={x:e,y:n,textAlign:"center"};switch(i){case 0:s.y-=a+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=a+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=a+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=a+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*a+2;break;case 6:s.y+=2*a+2;break;case 7:s.x+=o+1,s.textAlign="left";break;case 8:s.x-=o+1,s.textAlign="right";break;default:break}return t.attr(s),t.getCanvasBBox()}function Ma(t,e,n,i){var r=new ja;Object(h["j"])(e,(function(t){var e=t.find((function(t){return"text"===t.get("type")}));wa(e,r)||t.remove(!0)})),r.destroy()}function Sa(t,e,n,i){var r=new ja;Object(h["j"])(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),n=e.attr(),i=n.x,o=n.y,a=!1,s=0;s<=8;s++){var c=Ca(e,i,o,s);if(r.hasGap(c)){r.fillGap(c),a=!0;break}}a||t.remove(!0)})),r.destroy()}var Aa=it["c"].dot;function ka(t){if(t.length>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 Fa(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 Ea(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?[Fa(e[0],n,e[0]),Fa(e[1],n,e[0]),Fa(e[2],n,e[0]),Fa(e[3],n,e[0])]:e}function Ta(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){n.push(Aa([t.x,t.y],e))})),{min:Math.min.apply(Math,n),max:Math.max.apply(Math,n)}}function Pa(t,e){return t.max>e.min&&t.min<e.max}function Ia(t){return Object(h["M"])(t)&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0}function Ba(t){return Object.values(t).every(Ia)}function La(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}function Da(t,e){if(!Ba(t)||!Ba(e))return!1;if(!t.rotation&&!e.rotation)return La(t,e);for(var n=Ea(t),i=Ea(e),r=s(s([],ka(n),!0),ka(i),!0),o=0;o<r.length;o++){var a=r[o],c=Ta(n,a),l=Ta(i,a);if(!Pa(c,l))return!1}return!0}function Ra(t,e,n,i){for(var r=0;r<e.length;r++){var o=e[r];if(e[r].get("visible"))for(var a=r+1;a<e.length;a++){var s=e[a];if(o&&s&&o!==s&&s.get("visible")){var c=rr(o,t[r],Object(h["s"])(t[r],"background.padding")),l=rr(s,t[a],Object(h["s"])(t[a],"background.padding"));Da(c,l)&&e[a].set("visible",!1)}}}}var _a,za={"#5B8FF9":!0},Ya=function(t){var e=z["a"].toRGB(t).toUpperCase();if(za[e])return za[e];var n=z["a"].rgb2arr(e),i=n[0],r=n[1],o=n[2],a=(299*i+587*r+114*o)/1e3<128;return a};function Na(t,e,n){if(0!==n.length){var i=n[0].get("element"),r=i.geometry.theme,o=r.labels||{},a=o.fillColorLight,s=o.fillColorDark;n.forEach((function(t,n){var i=e[n],o=i.find((function(t){return"text"===t.get("type")})),c=Dt.fromObject(t.getBBox()),l=Dt.fromObject(o.getCanvasBBox()),u=!c.contains(l),h=t.attr("fill"),f=Ya(h);u?o.attr(r.overflowLabels.style):f?a&&o.attr("fill",a):s&&o.attr("fill",s)}))}}function Ga(t,e,n){var i=t.coordinate,r=ir(e),o=Dt.fromObject(r.getCanvasBBox()),a=Dt.fromObject(n.getBBox());return i.isTransposed?a.height>=o.height:a.width>=o.width}function Xa(t,e,n){var i=!!t.getAdjust("stack");return i||e.every((function(e,i){var r=n[i];return Ga(t,e,r)}))}function Va(t,e,n){var i=t.coordinate,r=Dt.fromObject(n.getBBox()),o=ir(e);i.isTransposed?o.attr({x:r.minX+r.width/2,textAlign:"center"}):o.attr({y:r.minY+r.height/2,textBaseline:"middle"})}function Ha(t,e,n){var i;if(0!==n.length){var r=null===(i=n[0])||void 0===i?void 0:i.get("element"),o=null===r||void 0===r?void 0:r.geometry;if(o&&"interval"===o.type){var a=Xa(o,e,n);a&&n.forEach((function(t,n){var i=e[n];Va(o,i,t)}))}}}function Wa(t){var e=500,n=[],i=Math.max(Math.floor(t.length/e),1);return Object(h["j"])(t,(function(t,e){e%i===0?n.push(t):t.set("visible",!1)})),n}function qa(t,e,n){var i;if(0!==n.length){var r=null===(i=n[0])||void 0===i?void 0:i.get("element"),o=null===r||void 0===r?void 0:r.geometry;if(o&&"interval"===o.type){var a,s=Wa(e),c=o.getXYFields()[0],l=[],u=[],f=Object(h["w"])(s,(function(t){return t.get("data")[c]})),p=Object(h["ub"])(Object(h["W"])(s,(function(t){return t.get("data")[c]})));s.forEach((function(t){t.set("visible",!0)}));var d=function(t){t&&(t.length&&u.push(t.pop()),u.push.apply(u,t))};Object(h["mb"])(p)>0&&(a=p.shift(),d(f[a])),Object(h["mb"])(p)>0&&(a=p.pop(),d(f[a])),Object(h["j"])(p.reverse(),(function(t){d(f[t])}));while(u.length>0){var g=u.shift();g.get("visible")&&(ar(g,l)?g.set("visible",!1):l.push(g))}}}}function Ka(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,r),i}function Ua(t,e,n){return t.some((function(t){return n(t,e)}))}function Za(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 Qa(t,e){return Ua(t,e,(function(t,e){var n=ir(t),i=ir(e);return Za(n.getCanvasBBox(),i.getCanvasBBox(),2)>0}))}function $a(t,e,n,i,r){var o,a;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),c=null===s||void 0===s?void 0:s.geometry;if(c&&"point"===c.type){var l=c.getXYFields(),u=l[0],f=l[1],p=Object(h["w"])(e,(function(t){return t.get("data")[u]})),d=[],g=r&&r.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;Object(h["W"])(Object(h["T"])(p).reverse(),(function(t){var e=Ka(c,p[t]);while(e.length){var n=e.shift(),i=ir(n);if(Ua(d,n,(function(t,e){return t.get("data")[u]===e.get("data")[u]&&t.get("data")[f]===e.get("data")[f]})))i.set("visible",!1);else{var r=Qa(d,n),o=!1;r&&(i.attr("y",i.attr("y")+2*g),o=Qa(d,n)),o?i.set("visible",!1):d.push(n)}}}))}}}function Ja(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,r),i}function ts(t,e,n){return t.some((function(t){return n(t,e)}))}function es(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 ns(t,e){return ts(t,e,(function(t,e){var n=ir(t),i=ir(e);return es(n.getCanvasBBox(),i.getCanvasBBox(),2)>0}))}function is(t,e,n,i,r){var o,a;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),c=null===s||void 0===s?void 0:s.geometry;if(c&&!(["path","line","area"].indexOf(c.type)<0)){var l=c.getXYFields(),u=l[0],f=l[1],p=Object(h["w"])(e,(function(t){return t.get("data")[u]})),d=[],g=r&&r.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;Object(h["W"])(Object(h["T"])(p).reverse(),(function(t){var e=Ja(c,p[t]);while(e.length){var n=e.shift(),i=ir(n);if(ts(d,n,(function(t,e){return t.get("data")[u]===e.get("data")[u]&&t.get("data")[f]===e.get("data")[f]})))i.set("visible",!1);else{var r=ns(d,n),o=!1;r&&(i.attr("y",i.attr("y")+2*g),o=ns(d,n)),o?i.set("visible",!1):d.push(n)}}}))}}}function rs(){return _a||(_a=document.createElement("canvas").getContext("2d")),_a}var os=Object(h["ab"])((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,r=e.fontWeight,o=e.fontStyle,a=e.fontVariant,s=rs();return s.font=[o,a,r,"".concat(n,"px"),i].join(" "),s.measureText(Object(h["Q"])(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),s([t],Object(h["xb"])(e),!0).join("")})),as=function(t,e,n){var i,r=16,o=os("...",n);i=Object(h["Q"])(t)?t:Object(h["tb"])(t);var a,s,c=e,l=[];if(os(t,n)<=e)return t;while(1){if(a=i.substr(0,r),s=os(a,n),s+o>c&&s>c)break;if(l.push(a),c-=s,i=i.substr(r),!i)return l.join("")}while(1){if(a=i.substr(0,1),s=os(a,n),s+o>c)break;if(l.push(a),c-=s,i=i.substr(1),!i)return l.join("")}return"".concat(l.join(""),"...")};function ss(t,e,n,i,r){if(!(e.length<=0)){var o=(null===r||void 0===r?void 0:r.direction)||["top","right","bottom","left"],a=(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=Vt(c,s),u=l.minX,f=l.minY,p=l.maxX,d=l.maxY;Object(h["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,g=e.width,v=e.height,y=c,m=l;if(o.indexOf("left")>=0&&(n<u||r<u)&&(y=u),o.indexOf("top")>=0&&(i<f||s<f)&&(m=f),o.indexOf("right")>=0&&(n>p?y=p-g:r>p&&(y-=r-p)),o.indexOf("bottom")>=0&&(i>d?m=d-v:s>d&&(m-=s-d)),y!==c||m!==l){var b=y-c;if("translate"===a)Ji(t,b,m-l);else if("ellipsis"===a){var x=t.findAll((function(t){return"text"===t.get("type")}));x.forEach((function(t){var e=Object(h["hb"])(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),i=as(t.attr("text"),n.width-Math.abs(b),e);t.attr("text",i)}))}else t.hide()}}))}}}function cs(t,e,n){var i={fillOpacity:Object(h["K"])(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:Object(h["K"])(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:Object(h["K"])(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(i,e)}function ls(t,e,n){var i={fillOpacity:0,strokeOpacity:0,opacity:0},r=e.easing,o=e.duration,a=e.delay;t.animate(i,o,r,(function(){t.remove(!0)}),a)}function us(t,e,n){var i,r=e[0],o=e[1];return t.applyToMatrix([r,o,1]),"x"===n?(t.setMatrix(it["a"].transform(t.getMatrix(),[["t",-r,-o],["s",.01,1],["t",r,o]])),i=it["a"].transform(t.getMatrix(),[["t",-r,-o],["s",100,1],["t",r,o]])):"y"===n?(t.setMatrix(it["a"].transform(t.getMatrix(),[["t",-r,-o],["s",1,.01],["t",r,o]])),i=it["a"].transform(t.getMatrix(),[["t",-r,-o],["s",1,100],["t",r,o]])):"xy"===n&&(t.setMatrix(it["a"].transform(t.getMatrix(),[["t",-r,-o],["s",.01,.01],["t",r,o]])),i=it["a"].transform(t.getMatrix(),[["t",-r,-o],["s",100,100],["t",r,o]])),i}function hs(t,e,n,i,r){var o,a,s=n.start,c=n.end,l=n.getWidth(),u=n.getHeight();"y"===r?(o=s.x+l/2,a=i.y<s.y?i.y:s.y):"x"===r?(o=i.x>s.x?i.x:s.x,a=s.y+u/2):"xy"===r&&(n.isPolar?(o=n.getCenter().x,a=n.getCenter().y):(o=(s.x+c.x)/2,a=(s.y+c.y)/2));var h=us(t,[o,a],r);t.animate({matrix:h},e)}function fs(t,e,n){var i=n.coordinate,r=n.minYPoint;hs(t,e,i,r,"x")}function ps(t,e,n){var i=n.coordinate,r=n.minYPoint;hs(t,e,i,r,"y")}function ds(t,e,n){var i=n.coordinate,r=n.minYPoint;hs(t,e,i,r,"xy")}function gs(t,e,n){var i=t.getTotalLength();t.attr("lineDash",[i]),t.animate((function(t){return{lineDashOffset:(1-t)*i}}),e)}function vs(t,e,n){var i=n.toAttrs,r=i.x,o=i.y;delete i.x,delete i.y,t.attr(i),t.animate({x:r,y:o},e)}function ys(t,e,n){var i=t.getBBox(),r=t.get("origin").mappingData,o=r.points,a=o[0].y-o[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;t.applyToMatrix([a,s,1]);var c=it["a"].transform(t.getMatrix(),[["t",-a,-s],["s",.01,1],["t",a,s]]);t.setMatrix(c),t.animate({matrix:it["a"].transform(t.getMatrix(),[["t",-a,-s],["s",100,1],["t",a,s]])},e)}function ms(t,e,n){var i=t.getBBox(),r=t.get("origin").mappingData,o=(i.minX+i.maxX)/2,a=r.points,s=a[0].y-a[1].y<=0?i.maxY:i.minY;t.applyToMatrix([o,s,1]);var c=it["a"].transform(t.getMatrix(),[["t",-o,-s],["s",1,.01],["t",o,s]]);t.setMatrix(c),t.animate({matrix:it["a"].transform(t.getMatrix(),[["t",-o,-s],["s",1,100],["t",o,s]])},e)}function bs(t,e){var n,i=Object(Hr["getArcParams"])(t,e),r=i.startAngle,o=i.endAngle;return!Object(h["N"])(r,.5*-Math.PI)&&r<.5*-Math.PI&&(r+=2*Math.PI),!Object(h["N"])(o,.5*-Math.PI)&&o<.5*-Math.PI&&(o+=2*Math.PI),0===e[5]&&(n=[o,r],r=n[0],o=n[1]),Object(h["N"])(r,1.5*Math.PI)&&(r=-.5*Math.PI),Object(h["N"])(o,-.5*Math.PI)&&(o=1.5*Math.PI),{startAngle:r,endAngle:o}}function xs(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 Os(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 o=r[0],a=r.length>1?r[1]:r[0],s=t.indexOf(o),c=t.indexOf(a),l=xs(t[s-1]),u=xs(t[c-1]),f=bs(l,o),p=f.startAngle,d=f.endAngle,g=bs(u,a),v=g.startAngle,y=g.endAngle;Object(h["N"])(p,v)&&Object(h["N"])(d,y)?(n=p,i=d):(n=Math.min(p,v),i=Math.max(d,y));var m=o[1],b=r[r.length-1][1];return m<b?(e=[b,m],m=e[0],b=e[1]):m===b&&(b=0),{startAngle:n,endAngle:i,radius:m,innerRadius:b}}function js(t,e,n){var i=n.toAttrs,r=n.coordinate,a=i.path||[],s=a.map((function(t){return t[0]}));if(!(a.length<1)){var c=Os(a),l=c.startAngle,u=c.endAngle,f=c.radius,p=c.innerRadius,d=Os(t.attr("path")),g=d.startAngle,v=d.endAngle,y=r.getCenter(),m=l-g,b=u-v;0!==m||0!==b?t.animate((function(t){var e=g+t*m,n=v+t*b;return o(o({},i),{path:Object(h["H"])(s,["M","A","A","Z"])?kt(y.x,y.y,f,e,n):At(y.x,y.y,f,e,n,p)})}),o(o({},e),{callback:function(){t.attr("path",a)}})):t.attr("path",a)}}function ws(t,e,n){var i=Xt(n.coordinate,20),r=i.type,a=i.startState,s=i.endState,c=t.setClip({type:r,attrs:a});c.animate(s,o(o({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),c.remove(!0)}}))}function Cs(t,e,n){if(t.isGroup())Object(h["j"])(t.getChildren(),(function(t){Cs(t,e,n)}));else{var i=t.getBBox(),r=(i.minX+i.maxX)/2,a=(i.minY+i.maxY)/2;if(t.applyToMatrix([r,a,1]),"zoomIn"===n){var s=it["a"].transform(t.getMatrix(),[["t",-r,-a],["s",.01,.01],["t",r,a]]);t.setMatrix(s),t.animate({matrix:it["a"].transform(t.getMatrix(),[["t",-r,-a],["s",100,100],["t",r,a]])},e)}else t.animate({matrix:it["a"].transform(t.getMatrix(),[["t",-r,-a],["s",.01,.01],["t",r,a]])},o(o({},e),{callback:function(){t.remove(!0)}}))}}function Ms(t,e,n){Cs(t,e,"zoomIn")}function Ss(t,e,n){Cs(t,e,"zoomOut")}function As(t){return[l.TOP,l.BOTTOM].includes(t)?{offsetX:0,offsetY:t===l.TOP?-8:8,style:{textAlign:"center",textBaseline:t===l.TOP?"bottom":"top"}}:[l.LEFT,l.RIGHT].includes(t)?{offsetX:t===l.LEFT?-8:8,offsetY:0,style:{textAlign:t===l.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function ks(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}var Fs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){return Object(h["h"])({},t.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.getRegion=function(t,e){var n=.5,i={x:.5,y:.5},r=2*Math.PI/t,o=-1*Math.PI/2+r*e,a=n/(1+1/Math.sin(r/2)),s=ks(i,n-a,o),c=5*Math.PI/4,l=1*Math.PI/4;return{start:ks(s,a,c),end:ks(s,a,l)}},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg,i=n.fields,r=n.type,o=i[0];if(!o)throw new Error("No `fields` specified!");var a=this.getFieldValues(t,o),s=a.length,c=[];return a.forEach((function(n,i){var l=[{field:o,value:n,values:a}],u=Object(h["l"])(t,e.getFacetDataFilter(l)),f={type:r,data:u,region:e.getRegion(s,i),columnValue:n,columnField:o,columnIndex:i,columnValuesLength:s,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};c.push(f)})),c},e.prototype.getXAxisOption=function(t,e,n,i){return n},e.prototype.getYAxisOption=function(t,e,n,i){return n},e.prototype.renderTitle=function(){var t=this;Object(h["j"])(this.facets,(function(e){var n=e.columnValue,i=e.view,r=Object(h["s"])(t.cfg.title,"formatter"),o=Object(h["h"])({position:["50%","0%"],content:r?r(n):n},As(l.TOP),t.cfg.title);i.annotation().text(o)}))},e}(le),Es=Fs,Ts=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){return Object(h["h"])({},t.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,i=this.cfg.cols,r=n[0];if(!r)throw new Error("No `fields` specified!");var o=this.getFieldValues(t,r),a=o.length;i=i||a;var s=this.getPageCount(a,i),c=[];return o.forEach((function(n,l){var u=e.getRowCol(l,i),f=u.row,p=u.col,d=[{field:r,value:n,values:o}],g=Object(h["l"])(t,e.getFacetDataFilter(d)),v={type:e.cfg.type,data:g,region:e.getRegion(s,i,p,f),columnValue:n,rowValue:n,columnField:r,rowField:null,columnIndex:p,rowIndex:f,columnValuesLength:i,rowValuesLength:s,total:a};c.push(v)})),c},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1&&i.columnValuesLength*i.rowIndex+i.columnIndex+1+i.columnValuesLength<=i.total?o(o({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?o(o({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(h["j"])(this.facets,(function(e){var n=e.columnValue,i=e.view,r=Object(h["s"])(t.cfg.title,"formatter"),o=Object(h["h"])({position:["50%","0%"],content:r?r(n):n},As(l.TOP),t.cfg.title);i.annotation().text(o)}))},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){var n=Math.floor(t/e),i=t%e;return{row:n,col:i}},e}(le),Ps=Ts,Is=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){return Object(h["h"])({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:o({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:o({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){for(var e=this.cfg,n=e.fields,i=e.type,r=n.length,o=r,a=[],s=0;s<o;s++)for(var c=n[s],l=0;l<r;l++){var u=n[l],h={type:i,data:t,region:this.getRegion(r,o,s,l),columnValue:c,rowValue:u,columnField:c,rowField:u,columnIndex:s,rowIndex:l,columnValuesLength:o,rowValuesLength:r};a.push(h)}return a},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?o(o({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?o(o({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(h["j"])(this.facets,(function(e,n){var i=e.columnIndex,r=e.rowIndex,o=e.columnValuesLength,a=(e.rowValuesLength,e.columnValue),s=e.rowValue,c=e.view;if(0===r){var u=Object(h["s"])(t.cfg.columnTitle,"formatter"),f=Object(h["h"])({position:["50%","0%"],content:u?u(a):a},As(l.TOP),t.cfg.columnTitle);c.annotation().text(f)}if(i===o-1){u=Object(h["s"])(t.cfg.rowTitle,"formatter"),f=Object(h["h"])({position:["100%","50%"],content:u?u(s):s},As(l.RIGHT),t.cfg.rowTitle);c.annotation().text(f)}}))},e}(le),Bs=Is,Ls=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){return Object(h["h"])({},t.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this),transpose:!1})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.beforeEachView=function(t,e){this.cfg.transpose?e.columnIndex%2===0?t.coordinate().transpose().reflect("x"):t.coordinate().transpose():e.rowIndex%2!==0&&t.coordinate().reflect("y")},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.generateFacets=function(t){var e,n,i=this,r=this.cfg.fields[0],o=[],a=1,s=1,c=[""],l=[""];return this.cfg.transpose?(e=r,c=this.getFieldValues(t,e).slice(0,2),a=c.length):(n=r,l=this.getFieldValues(t,n).slice(0,2),s=l.length),c.forEach((function(r,u){l.forEach((function(f,p){var d=[{field:e,value:r,values:c},{field:n,value:f,values:l}],g=Object(h["l"])(t,i.getFacetDataFilter(d)),v={type:i.cfg.type,data:g,region:i.getRegion(s,a,u,p),columnValue:r,rowValue:f,columnField:e,rowField:n,columnIndex:u,rowIndex:p,columnValuesLength:a,rowValuesLength:s};o.push(v)}))})),o},e.prototype.getXAxisOption=function(t,e,n,i){return 1===i.columnIndex||1===i.rowIndex?o(o({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return n},e.prototype.renderTitle=function(){var t=this;Object(h["j"])(this.facets,(function(e,n){var i=e.columnValue,r=e.rowValue,o=e.view,a=Object(h["s"])(t.cfg.title,"formatter");if(t.cfg.transpose){var s=Object(h["h"])({position:["50%","0%"],content:a?a(i):i},As(l.TOP),t.cfg.title);o.annotation().text(s)}else{s=Object(h["h"])({position:["100%","50%"],content:a?a(r):r},As(l.RIGHT),t.cfg.title);o.annotation().text(s)}}))},e}(le),Ds=Ls,Rs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.getDefaultCfg=function(){return Object(h["h"])({},t.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:o({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:o({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,i=n[0],r=n[1],o=[],a=1,s=1,c=[""],l=[""];return i&&(c=this.getFieldValues(t,i),a=c.length),r&&(l=this.getFieldValues(t,r),s=l.length),c.forEach((function(n,u){l.forEach((function(f,p){var d=[{field:i,value:n,values:c},{field:r,value:f,values:l}],g=Object(h["l"])(t,e.getFacetDataFilter(d)),v={type:e.cfg.type,data:g,region:e.getRegion(s,a,u,p),columnValue:n,rowValue:f,columnField:i,rowField:r,columnIndex:u,rowIndex:p,columnValuesLength:a,rowValuesLength:s};o.push(v)}))})),o},e.prototype.renderTitle=function(){var t=this;Object(h["j"])(this.facets,(function(e,n){var i=e.columnIndex,r=e.rowIndex,o=e.columnValuesLength,a=e.columnValue,s=e.rowValue,c=e.view;if(0===r){var u=Object(h["s"])(t.cfg.columnTitle,"formatter"),f=Object(h["h"])({position:["50%","0%"],content:u?u(a):a},As(l.TOP),t.cfg.columnTitle);c.annotation().text(f)}if(i===o-1){u=Object(h["s"])(t.cfg.rowTitle,"formatter"),f=Object(h["h"])({position:["100%","50%"],content:u?u(s):s},As(l.RIGHT),t.cfg.rowTitle);c.annotation().text(f)}}))},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?o(o({},n),{title:null,label:null}):i.columnIndex!==Math.floor((i.columnValuesLength-1)/2)?o(o({},n),{title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?o(o({},n),{title:null,label:null}):i.rowIndex!==Math.floor((i.rowValuesLength-1)/2)?o(o({},n),{title:null}):n},e}(le),_s=Rs,zs=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.afterChartRender=function(){e.facets&&e.cfg.line&&(e.container.clear(),e.drawLines(e.facets))},e}return r(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.init=function(){t.prototype.init.call(this),this.view.on(f.AFTER_RENDER,this.afterChartRender)},e.prototype.getDefaultCfg=function(){return Object(h["h"])({},t.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.generateFacets=function(t){var e=this.cfg.fields;if(!e.length)throw new Error("Please specify for the fields for rootFacet!");var n=[],i={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return n.push(i),i.children=this.getChildFacets(t,1,n),this.setRegion(n),n},e.prototype.setRegion=function(t){var e=this;this.forceColIndex(t),t.forEach((function(t){t.region=e.getRegion(t.rowValuesLength,t.columnValuesLength,t.columnIndex,t.rowIndex)}))},e.prototype.getRegion=function(t,e,n,i){var r=1/e,o=1/t,a={x:r*n,y:o*i},s={x:a.x+r,y:a.y+2*o/3};return{start:a,end:s}},e.prototype.forceColIndex=function(t){var e=this,n=[],i=0;t.forEach((function(t){e.isLeaf(t)&&(n.push(t),t.columnIndex=i,i++)})),n.forEach((function(t){t.columnValuesLength=n.length}));for(var r=this.cfg.fields.length,o=r-1;o>=0;o--)for(var a=this.getFacetsByLevel(t,o),s=0,c=a;s<c.length;s++){var l=c[s];this.isLeaf(l)||(l.originColIndex=l.columnIndex,l.columnIndex=this.getRegionIndex(l.children),l.columnValuesLength=n.length)}},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,o=r.length;if(!(o<e)){var a=[],s=r[e-1],c=this.getFieldValues(t,s);return c.forEach((function(r,o){var l=[{field:s,value:r,values:c}],u=t.filter(i.getFacetDataFilter(l));if(u.length){var h={type:i.cfg.type,data:u,region:null,columnValue:r,rowValue:"",columnField:s,rowField:"",columnIndex:o,rowValuesLength:i.getRows(),columnValuesLength:1,rowIndex:e,children:i.getChildFacets(u,e+1,n)};a.push(h),n.push(h)}})),a}},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.renderTitle=function(){var t=this;Object(h["j"])(this.facets,(function(e){var n=e.columnValue,i=e.view,r=Object(h["s"])(t.cfg.title,"formatter"),o=Object(h["h"])({position:["50%","0%"],content:r?r(n):n},As(l.TOP),t.cfg.title);i.annotation().text(o)}))},e.prototype.drawLines=function(t){var e=this;t.forEach((function(t){if(!e.isLeaf(t)){var n=t.children;e.addFacetLines(t,n)}}))},e.prototype.addFacetLines=function(t,e){var n=this,i=t.view,r=i.coordinateBBox,o={x:r.x+r.width/2,y:r.y+r.height};e.forEach((function(t){var e=t.view.coordinateBBox,i={x:e.bl.x+(e.tr.x-e.bl.x)/2,y:e.tr.y},r={x:o.x,y:o.y+(i.y-o.y)/2},a={x:i.x,y:r.y};n.drawLine([o,r,a,i])}))},e.prototype.getPath=function(t){var e=[],n=this.cfg.line.smooth;return n?(e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach((function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e.prototype.drawLine=function(t){var e=this.getPath(t),n=this.cfg.line.style;this.container.addShape("path",{attrs:Object(h["b"])({path:e},n)})},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?o(o({},n),{title:null,label:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.originColIndex&&0!==i.columnIndex?o(o({},n),{title:null,label:null}):n},e}(le),Ys=zs;function Ns(t){var e=s([],t,!0);e.sort((function(t,e){return t-e}));var n=e.length;return 0===n?0:n%2===1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2}function Gs(t){var e=Object(h["ib"])(t,(function(t,e){return t+(isNaN(e)||!Object(h["M"])(e)?0:e)}),0);return 0===t.length?0:e/t.length}function Xs(t,e){if(!e)return null;var n;switch(t){case"start":return 0;case"center":return.5;case"end":return 1;case"median":n=e.isCategory?Ns(e.values.map((function(t,e){return e}))):Ns(e.values);break;case"mean":n=e.isCategory?(e.values.length-1)/2:Gs(e.values);break;case"min":n=e.isCategory?0:e[t];break;case"max":n=e.isCategory?e.values.length-1:e[t];break;default:n=t;break}return e.scale(n)}var Vs=["regionFilter","shape"],Hs=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.foregroundContainer=n.view.getLayer(c.FORE).addGroup(),n.backgroundContainer=n.view.getLayer(c.BG).addGroup(),n.option=[],n}return r(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.layout=function(){this.update()},e.prototype.render=function(){},e.prototype.update=function(){var t=this;this.onAfterRender((function(){var e=new Map;Object(h["j"])(t.option,(function(n){if(Object(h["A"])(Vs,n.type)){var i=t.updateOrCreate(n);i&&e.set(t.getCacheKey(n),i)}})),t.cache=t.syncCache(e)}));var e=new Map;Object(h["j"])(this.option,(function(n){if(!Object(h["A"])(Vs,n.type)){var i=t.updateOrCreate(n);i&&e.set(t.getCacheKey(n),i)}})),this.cache=this.syncCache(e)},e.prototype.clear=function(e){void 0===e&&(e=!1),t.prototype.clear.call(this),this.clearComponents(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),e&&(this.option=[])},e.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.clearComponents=function(){this.getComponents().forEach((function(t){t.component.destroy()})),this.cache.clear()},e.prototype.onAfterRender=function(t){this.view.getOptions().animate?this.view.geometries.forEach((function(e){e.animateOption&&e.once(p.AFTER_DRAW_ANIMATE,(function(){t()}))})):this.view.getRootView().once(f.AFTER_RENDER,(function(){t()}))},e.prototype.createAnnotation=function(t){var e=t.type,n=gt["Annotation"][Object(h["wb"])(e)];if(n){var i=this.getAnnotationTheme(e),r=this.getAnnotationCfg(e,t,i),o=new n(r);return{component:o,layer:this.isTop(r)?c.FORE:c.BG,direction:l.NONE,type:u.ANNOTATION,extra:t}}},e.prototype.annotation=function(t){this.option.push(t)},e.prototype.arc=function(t){return this.annotation(o({type:"arc"},t)),this},e.prototype.image=function(t){return this.annotation(o({type:"image"},t)),this},e.prototype.line=function(t){return this.annotation(o({type:"line"},t)),this},e.prototype.region=function(t){return this.annotation(o({type:"region"},t)),this},e.prototype.text=function(t){return this.annotation(o({type:"text"},t)),this},e.prototype.dataMarker=function(t){return this.annotation(o({type:"dataMarker"},t)),this},e.prototype.dataRegion=function(t){this.annotation(o({type:"dataRegion"},t))},e.prototype.regionFilter=function(t){this.annotation(o({type:"regionFilter"},t))},e.prototype.shape=function(t){this.annotation(o({type:"shape"},t))},e.prototype.html=function(t){this.annotation(o({type:"html"},t))},e.prototype.parsePosition=function(t){var e=this.view.getXScale(),n=this.view.getScalesByDim("y"),i=Object(h["I"])(t)?t.call(null,e,n):t,r=0,o=0;if(Object(h["C"])(i)){var a=i[0],s=i[1];if(Object(h["Q"])(a)&&-1!==a.indexOf("%")&&!isNaN(a.slice(0,-1)))return this.parsePercentPosition(i);r=Xs(a,e),o=Xs(s,Object.values(n)[0])}else if(!Object(h["K"])(i))for(var c=0,l=Object(h["T"])(i);c<l.length;c++){var u=l[c],f=i[u];u===e.field&&(r=Xs(f,e)),n[u]&&(o=Xs(f,n[u]))}return this.view.getCoordinate().convert({x:r,y:o})},e.prototype.getRegionPoints=function(t,e){var n,i=this,r=this.view.getXScale(),o=this.view.getScalesByDim("y"),a=Object.values(o)[0],s=r.field,c=this.view.getData(),l=Object(h["C"])(t)?t[0]:t[s],u=Object(h["C"])(e)?e[0]:e[s],f=[];return Object(h["j"])(c,(function(t,e){if(t[s]===l&&(n=e),e>=n){var r=i.parsePosition([t[s],t[a.field]]);r&&f.push(r)}if(t[s]===u)return!1})),f},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,i=this.view.getCoordinate(),r=i.start,o=i.end,a={x:Math.min(r.x,o.x),y:Math.min(r.y,o.y)},s=i.getWidth()*e+a.x,c=i.getHeight()*n+a.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(),o={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:o.x,y:o.y,minX:o.x,minY:o.y,maxX:o.x+i,maxY:o.y+r,width:i,height:r}},e.prototype.getAnnotationCfg=function(t,e,n){var i=this,r=this.view.getCoordinate(),s=this.view.getCanvas(),c={};if(Object(h["K"])(e))return null;if("arc"===t){var l=e,u=l.start,f=l.end,p=a(l,["start","end"]),d=this.parsePosition(u),g=this.parsePosition(f),v=Gt(r,d),y=Gt(r,g);v>y&&(y=2*Math.PI+y),c=o(o({},p),{center:r.getCenter(),radius:Yt(r,d),startAngle:v,endAngle:y})}else if("image"===t){var m=e;u=m.start,f=m.end,p=a(m,["start","end"]);c=o(o({},p),{start:this.parsePosition(u),end:this.parsePosition(f),src:e.src})}else if("line"===t){var b=e;u=b.start,f=b.end,p=a(b,["start","end"]);c=o(o({},p),{start:this.parsePosition(u),end:this.parsePosition(f),text:Object(h["s"])(e,"text",null)})}else if("region"===t){var x=e;u=x.start,f=x.end,p=a(x,["start","end"]);c=o(o({},p),{start:this.parsePosition(u),end:this.parsePosition(f)})}else if("text"===t){var O=this.view.getData(),j=e,w=j.position,C=j.content,M=(p=a(j,["position","content"]),C);Object(h["I"])(C)&&(M=C(O)),c=o(o(o({},this.parsePosition(w)),p),{content:M})}else if("dataMarker"===t){var S=e,A=(w=S.position,S.point),k=S.line,F=S.text,E=S.autoAdjust,T=S.direction;p=a(S,["position","point","line","text","autoAdjust","direction"]);c=o(o(o({},p),this.parsePosition(w)),{coordinateBBox:this.getCoordinateBBox(),point:A,line:k,text:F,autoAdjust:E,direction:T})}else if("dataRegion"===t){var P=e,I=(u=P.start,f=P.end,P.region),B=(F=P.text,P.lineLength);p=a(P,["start","end","region","text","lineLength"]);c=o(o({},p),{points:this.getRegionPoints(u,f),region:I,text:F,lineLength:B})}else if("regionFilter"===t){var L=e,D=(u=L.start,f=L.end,L.apply),R=L.color,_=(p=a(L,["start","end","apply","color"]),this.view.geometries),z=[],Y=function(t){t&&(t.isGroup()?t.getChildren().forEach((function(t){return Y(t)})):z.push(t))};Object(h["j"])(_,(function(t){D?Object(h["f"])(D,t.type)&&Object(h["j"])(t.elements,(function(t){Y(t.shape)})):Object(h["j"])(t.elements,(function(t){Y(t.shape)}))})),c=o(o({},p),{color:R,shapes:z,start:this.parsePosition(u),end:this.parsePosition(f)})}else if("shape"===t){var N=e,G=N.render,X=a(N,["render"]),V=function(t){if(Object(h["I"])(e.render))return G(t,i.view,{parsePosition:i.parsePosition.bind(i)})};c=o(o({},X),{render:V})}else if("html"===t){var H=e,W=H.html,q=(w=H.position,X=a(H,["html","position"]),function(t){return Object(h["I"])(W)?W(t,i.view):W});c=o(o(o({},X),this.parsePosition(w)),{parent:s.get("el").parentNode,html:q})}var K=Object(h["h"])({},n,o(o({},c),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(K.container=this.getComponentContainer(K)),K.animate=this.view.getOptions().animate&&K.animate&&Object(h["s"])(e,"animate",K.animate),K.animateOption=Object(h["h"])({},wi,K.animateOption,e.animateOption),K},e.prototype.isTop=function(t){return Object(h["s"])(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return Object(h["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);Bt(r,["container"]),e.component.update(r),Object(h["A"])(Vs,t.type)&&e.component.render()}else e=this.createAnnotation(t),e&&(e.component.init(),Object(h["A"])(Vs,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(h["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}(vi),Ws=Hs;function qs(t,e){var n=Object(h["h"])({},Object(h["s"])(t,["components","axis","common"]),Object(h["s"])(t,["components","axis",e]));return Object(h["s"])(n,["grid"],{})}function Ks(t,e,n,i){var r=[],o=e.getTicks();return t.isPolar&&o.push({value:1,text:"",tickValue:""}),o.reduce((function(e,o,a){var s=o.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(a){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 o}),o[0]),r}function Us(t,e,n,i,r){var o=e.values.length,a=[],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?a.push({points:[t.convert({x:i?c:l,y:0}),t.convert({x:i?c:l,y:1})]}):a.push({points:Object(h["W"])(Array(o+1),(function(e,n){return t.convert({x:n/o,y:i?c:l})}))}),n}),s[0]),a}function Zs(t,e){var n=Object(h["s"])(e,"grid");if(null===n)return!1;var i=Object(h["s"])(t,"grid");return!(void 0===n&&null===i)}var Qs=["container"],$s=o(o({},wi),{appear:null}),Js=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(c.BG).addGroup(),n.gridForeContainer=n.view.getLayer(c.FORE).addGroup(),n.axisContainer=n.view.getLayer(c.BG).addGroup(),n.axisForeContainer=n.view.getLayer(c.FORE).addGroup(),n}return r(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(h["j"])(this.getComponents(),(function(n){var i,r=n.component,o=n.direction,a=n.type,s=n.extra,c=s.dim,l=s.scale,h=s.alignTick;if(a===u.AXIS)e.isPolar?"x"===c?i=e.isTransposed?te(e,o):oe(e):"y"===c&&(i=e.isTransposed?oe(e):te(e,o)):i=te(e,o);else if(a===u.GRID)if(e.isPolar){var f=void 0;f=e.isTransposed?"x"===c?Us(e,t.view.getYScales()[0],l,h,c):Ks(e,l,c,h):"x"===c?Ks(e,l,c,h):Us(e,t.view.getXScale(),l,h,c),i={items:f,center:t.view.getCoordinate().getCenter()}}else i={items:Ks(e,l,c,h)};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=ae(this.option,e.field);if(!1!==n){var i=se(n,l.BOTTOM),r=c.BG,o="x",a=this.view.getCoordinate(),s=this.getId("axis",e.field),u=this.getId("grid",e.field);if(a.isRect){var f=this.cache.get(s);if(f){var p=this.getLineAxisCfg(e,n,i);Bt(p,Qs),f.component.update(p),t.set(s,f)}else f=this.createLineAxis(e,n,r,i,o),this.cache.set(s,f),t.set(s,f);var d=this.cache.get(u);if(d){p=this.getLineGridCfg(e,n,i,o);Bt(p,Qs),d.component.update(p),t.set(u,d)}else d=this.createLineGrid(e,n,r,i,o),d&&(this.cache.set(u,d),t.set(u,d))}else if(a.isPolar){f=this.cache.get(s);if(f){p=a.isTransposed?this.getLineAxisCfg(e,n,l.RADIUS):this.getCircleAxisCfg(e,n,i);Bt(p,Qs),f.component.update(p),t.set(s,f)}else{if(a.isTransposed){if(Object(h["S"])(n))return;f=this.createLineAxis(e,n,r,l.RADIUS,o)}else f=this.createCircleAxis(e,n,r,i,o);this.cache.set(s,f),t.set(s,f)}d=this.cache.get(u);if(d){p=a.isTransposed?this.getCircleGridCfg(e,n,l.RADIUS,o):this.getLineGridCfg(e,n,l.CIRCLE,o);Bt(p,Qs),d.component.update(p),t.set(u,d)}else{if(a.isTransposed){if(Object(h["S"])(n))return;d=this.createCircleGrid(e,n,r,l.RADIUS,o)}else d=this.createLineGrid(e,n,r,l.CIRCLE,o);d&&(this.cache.set(u,d),t.set(u,d))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();Object(h["j"])(n,(function(n,i){if(n&&!n.isIdentity){var r=n.field,o=ae(e.option,r);if(!1!==o){var a=c.BG,s="y",u=e.getId("axis",r),f=e.getId("grid",r),p=e.view.getCoordinate();if(p.isRect){var d=se(o,0===i?l.LEFT:l.RIGHT),g=e.cache.get(u);if(g){var v=e.getLineAxisCfg(n,o,d);Bt(v,Qs),g.component.update(v),t.set(u,g)}else g=e.createLineAxis(n,o,a,d,s),e.cache.set(u,g),t.set(u,g);var y=e.cache.get(f);if(y){v=e.getLineGridCfg(n,o,d,s);Bt(v,Qs),y.component.update(v),t.set(f,y)}else y=e.createLineGrid(n,o,a,d,s),y&&(e.cache.set(f,y),t.set(f,y))}else if(p.isPolar){g=e.cache.get(u);if(g){v=p.isTransposed?e.getCircleAxisCfg(n,o,l.CIRCLE):e.getLineAxisCfg(n,o,l.RADIUS);Bt(v,Qs),g.component.update(v),t.set(u,g)}else{if(p.isTransposed){if(Object(h["S"])(o))return;g=e.createCircleAxis(n,o,a,l.CIRCLE,s)}else g=e.createLineAxis(n,o,a,l.RADIUS,s);e.cache.set(u,g),t.set(u,g)}y=e.cache.get(f);if(y){v=p.isTransposed?e.getLineGridCfg(n,o,l.CIRCLE,s):e.getCircleGridCfg(n,o,l.RADIUS,s);Bt(v,Qs),y.component.update(v),t.set(f,y)}else{if(p.isTransposed){if(Object(h["S"])(o))return;y=e.createLineGrid(n,o,a,l.CIRCLE,s)}else y=e.createCircleGrid(n,o,a,l.RADIUS,s);y&&(e.cache.set(f,y),t.set(f,y))}}}}}))},e.prototype.createLineAxis=function(t,e,n,i,r){var o={component:new vt(this.getLineAxisCfg(t,e,i)),layer:n,direction:i===l.RADIUS?l.NONE:i,type:u.AXIS,extra:{dim:r,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createLineGrid=function(t,e,n,i,r){var o=this.getLineGridCfg(t,e,i,r);if(o){var a={component:new mt(o),layer:n,direction:l.NONE,type:u.GRID,extra:{dim:r,scale:t,alignTick:Object(h["s"])(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.createCircleAxis=function(t,e,n,i,r){var o={component:new yt(this.getCircleAxisCfg(t,e,i)),layer:n,direction:i,type:u.AXIS,extra:{dim:r,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createCircleGrid=function(t,e,n,i,r){var o=this.getCircleGridCfg(t,e,i,r);if(o){var a={component:new bt(o),layer:n,direction:l.NONE,type:u.GRID,extra:{dim:r,scale:t,alignTick:Object(h["s"])(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.getLineAxisCfg=function(t,e,n){var i=Object(h["s"])(e,["top"])?this.axisForeContainer:this.axisContainer,r=this.view.getCoordinate(),a=te(r,n),s=ce(t,e),c=ie(this.view.getTheme(),n),l=Object(h["s"])(e,["title"])?Object(h["h"])({title:{style:{text:s}}},{title:re(this.view.getTheme(),n,e.title)},e):e,u=Object(h["h"])(o(o({container:i},a),{ticks:t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}})),verticalFactor:r.isPolar?-1*ne(a,r.getCenter()):ne(a,r.getCenter()),theme:c}),c,l),f=this.getAnimateCfg(u),p=f.animate,d=f.animateOption;u.animateOption=d,u.animate=p;var g=ee(a),v=Object(h["s"])(u,"verticalLimitLength",g?1/3:.5);if(v<=1){var y=this.view.getCanvas().get("width"),m=this.view.getCanvas().get("height");u.verticalLimitLength=v*(g?y:m)}return u},e.prototype.getLineGridCfg=function(t,e,n,i){if(Zs(ie(this.view.getTheme(),n),e)){var r=qs(this.view.getTheme(),n),o=Object(h["h"])({container:Object(h["s"])(e,["top"])?this.gridForeContainer:this.gridContainer},r,Object(h["s"])(e,"grid"),this.getAnimateCfg(e));return o.items=Ks(this.view.getCoordinate(),t,i,Object(h["s"])(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,n){var i=Object(h["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.pop();var s=ce(t,e),c=ie(this.view.getTheme(),l.CIRCLE),u=Object(h["s"])(e,["title"])?Object(h["h"])({title:{style:{text:s}}},{title:re(this.view.getTheme(),n,e.title)},e):e,f=Object(h["h"])(o(o({container:i},oe(this.view.getCoordinate())),{ticks:a,verticalFactor:1,theme:c}),c,u),p=this.getAnimateCfg(f),d=p.animate,g=p.animateOption;return f.animate=d,f.animateOption=g,f},e.prototype.getCircleGridCfg=function(t,e,n,i){if(Zs(ie(this.view.getTheme(),n),e)){var r=qs(this.view.getTheme(),l.RADIUS),o=Object(h["h"])({container:Object(h["s"])(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},r,Object(h["s"])(e,"grid"),this.getAnimateCfg(e)),a=Object(h["s"])(o,"alignTick",!0),s="x"===i?this.view.getYScales()[0]:this.view.getXScale();return o.items=Us(this.view.getCoordinate(),s,t,a,i),o}},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(h["s"])(t,"animate"),animateOption:t&&t.animateOption?Object(h["h"])({},$s,t.animateOption):$s}},e}(vi),tc=Js;function ec(t,e,n){return n===l.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===l.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===l.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===l.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===l.TOP_LEFT||n===l.LEFT_TOP?[t.tl.x,t.tl.y]:n===l.TOP_RIGHT||n===l.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===l.BOTTOM_LEFT||n===l.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===l.BOTTOM_RIGHT||n===l.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]}function nc(t,e){return Object(h["D"])(t)?!1!==t&&{}:Object(h["s"])(t,[e],t)}function ic(t){return Object(h["s"])(t,"position",l.BOTTOM)}var rc=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(c.FORE).addGroup(),n}return r(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(h["j"])(this.components,(function(e){var n=e.component,i=e.direction,r=br(i),o=n.get("maxWidthRatio"),a=n.get("maxHeightRatio"),s=t.getCategoryLegendSizeCfg(r,o,a),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 Dt(h.x,h.y,h.width,h.height).expand(u),p=ec(t.view.viewBBox,f,i),d=p[0],g=p[1],v=ec(t.layoutBBox,f,i),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 o=t.getId(r.field),a=t.getComponentById(o);if(a){var s=void 0,c=nc(t.option,r.field);!1!==c&&(Object(h["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&&(Bt(s,["container"]),a.direction=ic(c),a.component.update(s),e[o]=!0)}else{var l=t.createFieldLegend(n,i,r);l&&(l.component.init(),t.components.push(l),e[o]=!0)}};if(Object(h["s"])(this.option,"custom")){var i="global-custom",r=this.getComponentById(i);if(r){var o=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);Bt(o,["container"]),r.component.update(o),e[i]=!0}else{var a=this.createCustomLegend(void 0,void 0,void 0,this.option);if(a){a.init();var s=c.FORE,l=ic(this.option);this.components.push({id:i,component:a,layer:s,direction:l,type:u.LEGEND,extra:void 0}),e[i]=!0}}}else this.loopLegends(n);var f=[];Object(h["j"])(this.getComponents(),(function(t){e[t.id]?f.push(t):t.component.destroy()})),this.components=f},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(h["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(h["j"])(n,(function(e){var n=e.getGroupAttributes();Object(h["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=nc(this.option,n.field),o=c.FORE,a=ic(r);if(!1!==r&&(Object(h["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:o,direction:a,type:u.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,i){var r=this.getCategoryCfg(t,e,n,i,!0);return new xt(r)},e.prototype.createContinuousLegend=function(t,e,n,i){var r=this.getContinuousCfg(t,e,n,Bt(i,["value"]));return new Ot(r)},e.prototype.createCategoryLegend=function(t,e,n,i){var r=this.getCategoryCfg(t,e,n,i);return new xt(r)},e.prototype.getContinuousCfg=function(t,e,n,i){var r=n.getTicks(),o=Object(h["m"])(r,(function(t){return 0===t.value})),a=Object(h["m"])(r,(function(t){return 1===t.value})),s=r.map((function(t){var i=t.value,r=t.tickValue,o=e.mapping(n.invert(i)).join("");return{value:r,attrValue:o,color:o,scaleValue:i}}));o||s.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),a||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(h["z"])(s).value,max:Object(h["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=ic(i),f=br(u),p=Object(h["s"])(i,"title");return p&&(p=Object(h["h"])({text:Ut(n)},p)),c.container=l,c.layout=f,c.title=p,c.animateOption=wi,this.mergeLegendCfg(c,i,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,i,r){var o=this.container,a=Object(h["s"])(i,"position",l.BOTTOM),s=jr(this.view.getTheme(),a),c=Object(h["s"])(s,["marker"]),u=Object(h["s"])(i,"marker"),f=br(a),p=Object(h["s"])(s,["pageNavigator"]),d=Object(h["s"])(i,"pageNavigator"),g=r?Or(c,u,i.items):xr(this.view,t,e,c,u),v=Object(h["s"])(i,"title");v&&(v=Object(h["h"])({text:n?Ut(n):""},v));var y=Object(h["s"])(i,"maxWidthRatio"),m=Object(h["s"])(i,"maxHeightRatio"),b=this.getCategoryLegendSizeCfg(f,y,m);b.container=o,b.layout=f,b.items=g,b.title=v,b.animateOption=wi,b.pageNavigator=Object(h["h"])({},p,d);var x=this.mergeLegendCfg(b,i,a);x.reversed&&x.items.reverse();var O=Object(h["s"])(x,"maxItemWidth");return O&&O<=1&&(x.maxItemWidth=this.view.viewBBox.width*O),x},e.prototype.mergeLegendCfg=function(t,e,n){var i=n.split("-")[0],r=jr(this.view.getTheme(),i);return Object(h["h"])({},r,t,e)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},e.prototype.getComponentById=function(t){return Object(h["m"])(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t,e,n){void 0===e&&(e=O),void 0===n&&(n=O);var i=this.view.viewBBox,r=i.width,o=i.height;return"vertical"===t?{maxWidth:r*e,maxHeight:o}:{maxWidth:r,maxHeight:o*n}},e}(vi),oc=rc,ac=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=h["fb"],n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t[0],i=t[1];n.start=e,n.end=i,n.changeViewData(e,i)},n.container=n.view.getLayer(c.FORE).addGroup(),n.onChangeFn=Object(h["qb"])(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(f.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(f.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return r(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(f.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(f.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(h["K"])(this.start)&&(this.start=e,this.end=n);var i=this.view.getOptions().data;this.option&&!Object(h["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=n[0],r=(n[1],n[2],n[3]),a=this.slider.component.getLayoutBBox(),s=new Dt(a.x,a.y,Math.min(a.width,e),a.height).expand(n),c=this.getMinMaxText(this.start,this.end),u=c.minText,h=c.maxText,f=ec(this.view.viewBBox,s,l.BOTTOM),p=(f[0],f[1]),d=ec(this.view.coordinateBBox,s,l.BOTTOM),g=d[0];d[1];this.slider.component.update(o(o({},this.getSliderCfg()),{x:g+r,y:p+i,width:this.width,start:this.start,end:this.end,minText:u,maxText:h})),this.view.viewBBox=this.view.viewBBox.cut(s,l.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new gt["Slider"](o({container:this.container},t));return e.init(),{component:e,layer:c.FORE,direction:l.BOTTOM,type:u.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=o(o({},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(h["O"])(this.option)){var e=o({data:this.getData()},Object(h["s"])(this.option,"trendCfg",{}));t=Object(h["h"])({},t,this.getThemeOptions(),this.option),t=o(o({},t),{trendCfg:e})}return t.start=Object(h["c"])(Math.min(Object(h["K"])(t.start)?0:t.start,Object(h["K"])(t.end)?1:t.end),0,1),t.end=Object(h["c"])(Math.max(Object(h["K"])(t.start)?0:t.start,Object(h["K"])(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=this.view.getYScales()[0],n=this.view.getGroupScales();if(n.length){var i=n[0],r=i.field,o=i.ticks;return t.reduce((function(t,n){return n[r]===o[0]&&t.push(n[e.field]),t}),[])}return t.map((function(t){return t[e.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(h["s"])(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,i=this.view.getXScale(),r=!0,o=Object(h["yb"])(n,i.field),a=r?o:o.reverse(),s=Object(h["mb"])(n);if(!i||!s)return{};var c=Object(h["mb"])(a),l=Math.floor(t*(c-1)),u=Math.floor(e*(c-1)),f=Object(h["s"])(a,[l]),p=Object(h["s"])(a,[u]),d=this.getSliderCfg().formatter;return d&&(f=d(f,n[l],l),p=d(p,n[u],u)),{minText:f,maxText:p}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,i=this.view.getXScale(),r=Object(h["mb"])(n);if(i&&r){var o=!0,a=Object(h["yb"])(n,i.field),s=o?a:a.reverse(),c=Object(h["mb"])(s),l=Math.floor(t*(c-1)),u=Math.floor(e*(c-1));this.view.filter(i.field,(function(t,e){var n=s.indexOf(t);return!(n>-1)||Pt(n,l,u)})),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}(vi),sc=ac,cc=0,lc=8,uc=32,hc=20,fc=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=h["fb"],n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,i=n.getValidScrollbarCfg().animate;n.ratio=Object(h["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(c.FORE).addGroup(),n.onChangeFn=Object(h["qb"])(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(f.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(f.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return r(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(f.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(f.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 Dt(i.x,i.y,Math.min(i.width,e),i.height).expand(n),a=this.getScrollbarComponentCfg(),s=void 0,c=void 0;if(a.isHorizontal){var u=ec(this.view.viewBBox,r,l.BOTTOM),h=(u[0],u[1]),f=ec(this.view.coordinateBBox,r,l.BOTTOM),p=f[0];f[1];s=p,c=h}else{var d=ec(this.view.viewBBox,r,l.RIGHT),g=(d[0],h=d[1],ec(this.view.viewBBox,r,l.RIGHT));p=g[0],g[1];s=p,c=h}s+=n[3],c+=n[0],this.trackLen?this.scrollbar.component.update(o(o({},a),{x:s,y:c,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(o(o({},a),{x:s,y:c})),this.view.viewBBox=this.view.viewBBox.cut(r,a.isHorizontal?l.BOTTOM:l.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(h["s"])(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=Object(h["s"])(this.view.getTheme(),["components","scrollbar"]),n=t||{},i=n.thumbHighlightColor,r=a(n,["thumbHighlightColor"]);return{default:Object(h["h"])({},Object(h["s"])(e,["default","style"],{}),r),hover:Object(h["h"])({},Object(h["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(h["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=t[0],r=t[1],o=this.getValidScrollbarCfg().type,a="vertical"!==o,s=Object(h["yb"])(this.data,this.xScaleCfg.field),c=a?s:s.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=c.indexOf(t);return!(e>-1)||Pt(e,i,r)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t=this.getValidScrollbarCfg().type,e="vertical"!==t,n=new gt["Scrollbar"](o(o({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return n.init(),{component:n,layer:c.FORE,direction:e?l.BOTTOM:l.RIGHT,type:u.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?o(o({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):o({},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(h["yb"])(e,t.field);return Object(h["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,s=i.width,c=i.height,l=i.style,u="vertical"!==r,f=a[0],p=a[1],d=a[2],g=a[3],v=u?{x:e.minX+g,y:n.maxY-c-d}:{x:n.maxX-s-p,y:e.minY+f},y=this.getStep(),m=this.getCnt(),b=u?e.width-g-p:e.height-f-d,x=Math.max(b*Object(h["c"])(y/m,0,1),hc);return o(o({},this.getThemeOptions()),{x:v.x,y:v.y,size:u?c:s,isHorizontal:u,trackLen:b,thumbLen:x,thumbOffset:0,theme:this.getScrollbarTheme(l)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:uc,width:lc,height:lc,padding:[0,0,0,0],animate:!0,style:{}};return Object(h["O"])(this.option)&&(t=o(o({},t),this.option)),Object(h["O"])(this.option)&&this.option.padding||(t.padding="horizontal"===t.type?[cc,0,cc,0]:[0,cc,0,cc]),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=s([],n,!0).reverse()),n},e}(vi),pc=fc,dc={fill:"#CCD6EC",opacity:.3};function gc(t,e,n){var i=Un(t,e,n);if(i.length){i=Object(h["q"])(i);for(var r=0,o=i;r<o.length;r++)for(var a=o[r],s=0,c=a;s<c.length;s++){var l=c[s],u=l.mappingData,f=u.x,p=u.y;l.x=Object(h["C"])(f)?f[f.length-1]:f,l.y=Object(h["C"])(p)?p[p.length-1]:p}var d=n.shared;if(!1===d&&i.length>1){for(var g=i[0],v=Math.abs(e.y-g[0].y),y=0,m=i;y<m.length;y++){var b=m[y],x=Math.abs(e.y-b[0].y);x<=v&&(g=b,v=x)}i=[g]}return Object(h["ub"])(Object(h["q"])(i))}return[]}var vc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.show=function(t){var e=this.context.view,n=this.context.event,i=e.getController("tooltip").getTooltipCfg(),r=gc(e,{x:n.x,y:n.y},i);if(!Object(h["H"])(r,this.items)&&(this.items=r,r.length)){var a=e.getXScale().field,s=r[0].data[a],c=[],l=e.geometries;if(Object(h["j"])(l,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){var e=t.getData();return e[a]===s}));c=c.concat(e)}})),c.length){var u=e.getCoordinate(),f=c[0].shape.getCanvasBBox(),p=c[0].shape.getCanvasBBox(),d=f;Object(h["j"])(c,(function(t){var e=t.shape.getCanvasBBox();u.isTransposed?(e.minY<f.minY&&(f=e),e.maxY>p.maxY&&(p=e)):(e.minX<f.minX&&(f=e),e.maxX>p.maxX&&(p=e)),d.x=Math.min(e.minX,d.minX),d.y=Math.min(e.minY,d.minY),d.width=Math.max(e.maxX,d.maxX)-d.x,d.height=Math.max(e.maxY,d.maxY)-d.y}));var g=e.backgroundGroup,v=e.coordinateBBox,y=void 0;if(u.isRect){var m=e.getXScale(),b=t||{},x=b.appendRatio,O=b.appendWidth;Object(h["K"])(O)&&(x=Object(h["K"])(x)?m.isLinear?0:.25:x,O=u.isTransposed?x*p.height:x*f.width);var j=void 0,w=void 0,C=void 0,M=void 0;u.isTransposed?(j=v.minX,w=Math.min(p.minY,f.minY)-O,C=v.width,M=d.height+2*O):(j=Math.min(f.minX,p.minX)-O,w=v.minY,C=d.width+2*O,M=v.height),y=[["M",j,w],["L",j+C,w],["L",j+C,w+M],["L",j,w+M],["Z"]]}else{var S=Object(h["z"])(c),A=Object(h["U"])(c),k=Ft(S.getModel(),u).startAngle,F=Ft(A.getModel(),u).endAngle,E=u.getCenter(),T=u.getRadius(),P=u.innerRadius*T;y=At(E.x,E.y,T,k,F,P)}if(this.regionPath)this.regionPath.attr("path",y),this.regionPath.show();else{var I=Object(h["s"])(t,"style",dc);this.regionPath=g.addShape({type:"path",name:"active-region",capture:!1,attrs:o(o({},I),{path:y})})}}}},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}(de),yc=vc,mc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return r(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,o=+new Date,a=Object(h["s"])(t.view.getOptions(),"tooltip.showDelay",16);if(o-r>a){var s=this.location,c={x:e.x,y:e.y};s&&Object(h["H"])(s,c)||this.showTooltip(n,c),this.timeStamp=o,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}(de),bc=mc,xc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.showTooltip=function(t,e){var n=nn(t);Object(h["j"])(n,(function(n){var i=on(t,n,e);n.showTooltip(i)}))},e.prototype.hideTooltip=function(t){var e=nn(t);Object(h["j"])(e,(function(t){t.hideTooltip()}))},e}(bc),Oc=xc,jc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return r(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,o={x:e.x,y:e.y};r&&Object(h["H"])(r,o)||this.showTooltip(o),this.timeStamp=i,this.location=o}},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(o({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(h["s"])(r,["components","tooltip","domStyles"],{}),s=new jt({parent:n.get("el").parentNode,region:i,visible:!1,crosshairs:null,domStyles:o({},Object(h["h"])({},a,(t={},t[gt["TOOLTIP_CSS_CONST"].CONTAINER_CLASS]={"max-width":"50%"},t[gt["TOOLTIP_CSS_CONST"].TITLE_CLASS]={"word-break":"break-all"},t)))});s.init(),s.setCapture(!1),this.tooltip=s},e}(de),wc=jc,Cc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return r(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=We(t,this.stateName);Object(h["j"])(n,(function(t){e.setElementState(t,!1)}))},e}(de),Mc=Cc;function Sc(t){return Object(h["s"])(t.get("delegateObject"),"item")}var Ac=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return r(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"),o=Ve(i);this.setElementsStateByItem(o,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=sn(i,e),o=qe(t,e);return!Object(h["K"])(o)&&n.name===r.getText(o)},e.prototype.setElementsStateByItem=function(t,e,n,i){var r=this;Object(h["j"])(t,(function(t){r.isMathItem(t,e,n)&&t.setState(r.stateName,i)}))},e.prototype.setStateEnable=function(t){var e=De(this.context);if(e)_e(this.context)&&this.setStateByElement(e,t);else{var n=Re(this.context);if(ze(n)){var i=n.item,r=n.component;if(i&&r&&!this.isItemIgnore(i,r)){var o=this.context.event.gEvent;if(o&&o.fromShape&&o.toShape&&Sc(o.fromShape)===Sc(o.toShape))return;this.setStateByComponent(r,i,t)}}}},e.prototype.toggle=function(){var t=De(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(Mc),kc=Ac,Fc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r(e,t),e.prototype.active=function(){this.setState()},e}(kc),Ec=Fc,Tc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return r(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(),o=e.shape.getCanvasBBox(),a=i?[["M",r.minX,r.minY],["L",o.minX,o.maxY],["L",o.maxX,o.maxY],["L",r.maxX,r.minY],["Z"]]:[["M",r.maxX,r.minY],["L",o.minX,o.minY],["L",o.minX,o.maxY],["L",r.maxX,r.maxY],["Z"]];return a},e.prototype.addLinkShape=function(t,e,n,i){var r={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:o(o({},Object(h["h"])({},r,Object(h["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 o=qe(t,r.field);if(!this.cache[o]){var a=He(i,r.field,o),s=this.linkGroup,c=s.addGroup();this.cache[o]=c;var l=a.length;Object(h["j"])(a,(function(t,i){if(i<l-1){var r=a[i+1];n.addLinkShape(c,t,r,e)}}))}}},e.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var n=qe(t,e.field);this.cache[n]&&(this.cache[n].remove(),this.cache[n]=null)}},e.prototype.link=function(t){var e=this.context;this.linkGroup||(this.linkGroup=e.view.foregroundGroup.addGroup({id:"link-by-color-group",capture:!1}));var n=De(e);n&&this.linkByElement(n,null===t||void 0===t?void 0:t.style)},e.prototype.unlink=function(){var t=De(this.context);t&&this.removeLink(t)},e.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},e}(de),Pc=Tc,Ic=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.endPoint=null,e.isStarted=!1,e.effectSiblings=!1,e.effectByRecord=!1,e}return r(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},e.prototype.getIntersectElements=function(){var t=null;if(Ne(this.context))t=Ge(this.context,10);else{var e=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!n)return;var i={minX:Math.min(e.x,n.x),minY:Math.min(e.y,n.y),maxX:Math.max(e.x,n.x),maxY:Math.max(e.y,n.y)},r=this.context.view;t=Ue(r,i)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=Ve(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,t):this.setElementsState(n,t,e):this.clear()}},e.prototype.setSiblingsStateByRecord=function(t,e){var n=this,i=this.context.view,r=nn(i),o=t.map((function(t){return t.getModel().data})),a=i.getXScale().field,s=i.getYScales()[0].field;Object(h["j"])(r,(function(t){var i=Ve(t),r=i.filter((function(t){var e=t.getModel().data;return an(o,e,a,s)}));n.setElementsState(r,e,i)}))},e.prototype.setSiblingsState=function(t){var e=this,n=this.context.view,i=nn(n);Ne(this.context)&&Object(h["j"])(i,(function(n){var i=Ve(n),r=Xe(e.context,n,10);r&&r.length?e.setElementsState(r,t,i):e.clearViewState(n)}))},e.prototype.setElementsState=function(t,e,n){var i=this;Object(h["j"])(n,(function(n){t.includes(n)?i.setElementState(n,e):i.setElementState(n,!1)}))},e.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},e.prototype.clear=function(){var t=this,e=this.context.view;if(this.effectSiblings){var n=nn(e);Object(h["j"])(n,(function(e){t.clearViewState(e)}))}else this.clearViewState(e)},e}(Mc),Bc=Ic,Lc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r(e,t),e.prototype.active=function(){this.setState()},e}(Bc),Dc=Lc,Rc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.setStateEnable=function(t){var e=De(this.context);if(e){if(!_e(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=De(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(Mc),_c=Rc,zc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r(e,t),e.prototype.active=function(){this.setState()},e}(_c),Yc=zc,Nc="inactive",Gc="active";function Xc(t){var e=Ve(t);Object(h["j"])(e,(function(t){t.hasState(Gc)&&t.setState(Gc,!1),t.hasState(Nc)&&t.setState(Nc,!1)}))}function Vc(t,e,n){Object(h["j"])(t,(function(t){e(t)?(t.hasState(Nc)&&t.setState(Nc,!1),t.setState(Gc,n)):(t.hasState(Gc)&&t.setState(Gc,!1),t.setState(Nc,n))}))}var Hc,Wc=g.INACTIVE,qc=g.ACTIVE,Kc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=qc,e}return r(e,t),e.prototype.setElementsStateByItem=function(t,e,n,i){var r=this,o=function(t){return r.isMathItem(t,e,n)};this.setHighlightBy(t,o,i)},e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(Wc)&&t.setState(Wc,!1),t.setState(qc,!0)):t.hasState(qc)||t.setState(Wc,!0)},e.prototype.setHighlightBy=function(t,e,n){var i=this;if(n)Object(h["j"])(t,(function(t){i.setElementHighlight(t,e)}));else{var r=We(this.context.view,qc),o=!0;Object(h["j"])(r,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():Object(h["j"])(t,(function(t){e(t)&&(t.hasState(qc)&&t.setState(qc,!1),t.setState(Wc,!0))}))}},e.prototype.setElementState=function(t,e){var n=this.context.view,i=Ve(n);this.setHighlightBy(i,(function(e){return t===e}),e)},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.context.view;Xc(t)},e}(kc),Uc=Kc,Zc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.setStateByElement=function(t,e){var n=this.context.view,i=t.geometry.getAttribute("color");if(i){var r=n.getScaleByField(i.getFields()[0]),o=qe(t,r.field),a=Ve(n),s=a.filter((function(t){return qe(t,r.field)===o}));this.setHighlightBy(a,(function(t){return s.includes(t)}),e)}},e}(Uc),Qc=Zc,$c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(Wc)&&t.setState(Wc,!1),t.setState(qc,!0)):(t.setState(Wc,!0),t.hasState(qc)&&t.setState(qc,!1))},e.prototype.setStateByElement=function(t,e){var n=this.context.view,i=n.getXScale(),r=qe(t,i.field),o=Ve(n),a=o.filter((function(t){return qe(t,i.field)===r}));this.setHighlightBy(o,(function(t){return a.includes(t)}),e)},e.prototype.toggle=function(){var t=De(this.context);if(t){var e=t.hasState(this.stateName);this.setStateByElement(t,!e)}},e}(Uc),Jc=$c;(function(t){t["BEFORE_HIGHLIGHT"]="element-range-highlight:beforehighlight",t["AFTER_HIGHLIGHT"]="element-range-highlight:afterhighlight",t["BEFORE_CLEAR"]="element-range-highlight:beforeclear",t["AFTER_CLEAR"]="element-range-highlight:afterclear"})(Hc||(Hc={}));var tl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r(e,t),e.prototype.clearViewState=function(t){Xc(t)},e.prototype.highlight=function(){var t=this.context,e=t.view,n=t.event,i=this.getIntersectElements(),r={view:e,event:n,highlightElements:i};e.emit(Hc.BEFORE_HIGHLIGHT,oi.fromData(e,Hc.BEFORE_HIGHLIGHT,r)),this.setState(),e.emit(Hc.AFTER_HIGHLIGHT,oi.fromData(e,Hc.AFTER_HIGHLIGHT,r))},e.prototype.clear=function(){var e=this.context.view;e.emit(Hc.BEFORE_CLEAR,oi.fromData(e,Hc.BEFORE_CLEAR,{})),t.prototype.clear.call(this),e.emit(Hc.AFTER_CLEAR,oi.fromData(e,Hc.AFTER_CLEAR,{}))},e.prototype.setElementsState=function(t,e,n){Vc(n,(function(e){return t.indexOf(e)>=0}),e)},e}(Bc),el=tl,nl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){var n=this.context.view,i=Ve(n);Vc(i,(function(e){return t===e}),e)},e.prototype.clear=function(){var t=this.context.view;Xc(t)},e}(_c),il=nl,rl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r(e,t),e.prototype.selected=function(){this.setState()},e}(Bc),ol=rl,al=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r(e,t),e.prototype.selected=function(){this.setState()},e}(kc),sl=al,cl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r(e,t),e.prototype.selected=function(){this.setState()},e}(_c),ll=cl,ul=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return r(e,t),e.prototype.getTriggerListInfo=function(){var t=Re(this.context),e=null;return ze(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=this.context.view,n=$e(e),i=[];return Object(h["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(h["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=sn(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,o=sn(r,i),a=qe(e,i),s=o.getText(a);this.setItemsState(t,s,n)},e.prototype.setStateEnable=function(t){var e=this,n=De(this.context);if(n){var i=this.getAllowComponents();Object(h["j"])(i,(function(i){e.setStateByElement(i,n,t)}))}else{var r=Re(this.context);if(ze(r)){var o=r.item,a=r.component;this.allowSetStateByElement(a)&&this.allowSetStateByItem(o,a)&&this.setItemState(a,o,t)}}},e.prototype.setItemsState=function(t,e,n){var i=this,r=t.getItems();Object(h["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}(de),hl=ul,fl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r(e,t),e.prototype.active=function(){this.setState()},e}(hl),pl=fl,dl="inactive",gl="active";function vl(t){var e=t.getItems();Object(h["j"])(e,(function(e){t.hasState(e,gl)&&t.setItemState(e,gl,!1),t.hasState(e,dl)&&t.setItemState(e,dl,!1)}))}var yl="inactive",ml="active",bl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=ml,e.ignoreItemStates=["unchecked"],e}return r(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(h["j"])(i,(function(n){e(n)?(t.hasState(n,yl)&&t.setItemState(n,yl,!1),t.setItemState(n,ml,!0)):t.hasState(n,ml)||t.setItemState(n,yl,!0)}));else{var r=t.getItemsByState(ml),o=!0;Object(h["j"])(r,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():Object(h["j"])(i,(function(n){e(n)&&(t.hasState(n,ml)&&t.setItemState(n,ml,!1),t.setItemState(n,yl,!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)vl(t.list);else{var e=this.getAllowComponents();Object(h["j"])(e,(function(t){t.clearItemsState(ml),t.clearItemsState(yl)}))}},e}(hl),xl=bl,Ol=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r(e,t),e.prototype.selected=function(){this.setState()},e}(hl),jl=Ol,wl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return r(e,t),e.prototype.unchecked=function(){this.setState()},e}(hl),Cl=wl,Ml="unchecked",Sl="checked",Al=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=Sl,e}return r(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(h["j"])(i,(function(n){e(n)?(t.hasState(n,Ml)&&t.setItemState(n,Ml,!1),t.setItemState(n,Sl,!0)):t.hasState(n,Sl)||t.setItemState(n,Ml,!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,i=!Object(h["nb"])(e.getItems(),(function(t){return e.hasState(t,Ml)}));i||e.hasState(n,Ml)?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();Object(h["j"])(t,(function(t){t.clearItemsState(Sl),t.clearItemsState(Ml)}))},e}(hl),kl=Al,Fl=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 r(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:o({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(h["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(h["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}(de),El=Fl,Tl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return r(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=Object(h["U"])(this.points),n=0,i=0,r=0;if(t.length){var o=t[0];n=Je(o,e)/2,i=(e.x+o.x)/2,r=(e.y+o.y)/2}return{x:i,y:r,r:n}},e}(El),Pl=Tl,Il=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return r(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:Object(h["z"])(t),end:Object(h["U"])(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end,i=Math.min(e.x,n.x),r=Math.min(e.y,n.y),o=Math.abs(n.x-e.x),a=Math.abs(n.y-e.y);return{x:i,y:r,width:o,height:a}},e}(El),Bl=Il;function Ll(t){t.x=Object(h["c"])(t.x,0,1),t.y=Object(h["c"])(t.y,0,1)}var Dl,Rl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return r(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,i=this.dim,r=this.context.view.getCoordinate(),o=r.invert(Object(h["z"])(n)),a=r.invert(Object(h["U"])(n));return this.inPlot&&(Ll(o),Ll(a)),"x"===i?(t=r.convert({x:o.x,y:0}),e=r.convert({x:a.x,y:1})):(t=r.convert({x:0,y:o.y}),e=r.convert({x:1,y:a.y})),{start:t,end:e}},e}(Bl),_l=Rl,zl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&(Object(h["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},e.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},e.prototype.addPoint=function(){this.resize()},e}(El),Yl=zl,Nl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getMaskPath=function(){var t=this.points;return tn(t,!0)},e}(Yl),Gl=Nl,Xl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(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}(de),Vl=Xl,Hl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(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(h["j"])(t.views,(function(t){i.filterView(t,e,n)}))},e.prototype.filter=function(){var t=Re(this.context);if(t){var e=this.context.view,n=t.component,i=n.get("field");if(ze(t)){if(i){var r=n.getItemsByState("unchecked"),o=sn(e,i),a=r.map((function(t){return t.name}));a.length?this.filterView(e,i,(function(t){var e=o.getText(t);return!a.includes(e)})):this.filterView(e,i,null),e.render(!0)}}else if(Ye(t)){var s=n.getValue(),c=s[0],l=s[1];this.filterView(e,i,(function(t){return t>=c&&t<=l})),e.render(!0)}}},e}(de),Wl=Hl;function ql(t,e,n,i){var r=Math.min(n[e],i[e]),o=Math.max(n[e],i[e]),a=t.range,s=a[0],c=a[1];if(r<s&&(r=s),o>c&&(o=c),r===c&&o===c)return null;var l=t.invert(r),u=t.invert(o);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"})(Dl||(Dl={}));var Kl=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 r(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(Ne(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,o=r.view,a=r.event,s={view:o,event:a,dims:this.dims};o.emit(Dl.BEFORE_FILTER,oi.fromData(o,Dl.BEFORE_FILTER,s));var c=o.getCoordinate(),l=c.invert(e),u=c.invert(t);if(this.hasDim("x")){var h=o.getXScale(),f=ql(h,"x",l,u);this.filterView(o,h.field,f)}if(this.hasDim("y")){var p=o.getYScales()[0];f=ql(p,"y",l,u);this.filterView(o,p.field,f)}this.reRender(o,{source:Dl.FILTER}),o.emit(Dl.AFTER_FILTER,oi.fromData(o,Dl.AFTER_FILTER,s))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(Dl.BEFORE_RESET,oi.fromData(t,Dl.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:Dl.RESET}),t.emit(Dl.AFTER_RESET,oi.fromData(t,Dl.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(de),Ul=Kl,Zl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.filterView=function(t,e,n){var i=nn(t);Object(h["j"])(i,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=nn(t);Object(h["j"])(e,(function(t){t.render(!0)}))},e}(Ul),Ql=Zl,$l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.filter=function(){var t=Re(this.context),e=this.context.view,n=Ve(e);if(Ne(this.context)){var i=Ge(this.context,10);i&&Object(h["j"])(n,(function(t){i.includes(t)?t.show():t.hide()}))}else if(t){var r=t.component,o=r.get("field");if(ze(t)){if(o){var a=r.getItemsByState("unchecked"),s=sn(e,o),c=a.map((function(t){return t.name}));Object(h["j"])(n,(function(t){var e=qe(t,o),n=s.getText(e);c.indexOf(n)>=0?t.hide():t.show()}))}}else if(Ye(t)){var l=r.getValue(),u=l[0],f=l[1];Object(h["j"])(n,(function(t){var e=qe(t,o);e>=u&&e<=f?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=Ve(this.context.view);Object(h["j"])(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(de),Jl=$l,tu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return r(e,t),e.prototype.filter=function(){Ne(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=Ge(this.context,10);if(e){var n=t.getXScale().field,i=t.getYScales()[0].field,r=e.map((function(t){return t.getModel().data})),o=nn(t);Object(h["j"])(o,(function(t){var e=Ve(t);Object(h["j"])(e,(function(t){var e=t.getModel().data;an(r,e,n,i)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=nn(e);Object(h["j"])(n,(function(e){var n=Xe(t.context,e,10),i=Ve(e);n&&Object(h["j"])(i,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=nn(this.context.view);Object(h["j"])(t,(function(t){var e=Ve(t);Object(h["j"])(e,(function(t){t.show()}))}))},e}(de),eu=tu,nu=10,iu=5,ru=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 r(e,t),e.prototype.getButtonCfg=function(){return Object(h["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:o({text:t.text},t.textStyle)}),i=n.getBBox(),r=Qn(t.padding),a=e.addShape({type:"rect",name:"button-rect",attrs:o({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(),o=it["a"].transform(null,[["t",n.x-r.width-nu,n.y+r.height+iu]]);i.setMatrix(o)},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}(de),ou=ru,au=4,su=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return r(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}):Je(t,this.startPoint)>au&&(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}(de),cu=su,lu=5,uu=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 r(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=Je(t,e);if(n>lu&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var i=this.context.view,r=it["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}(de),hu=uu,fu="x",pu="y",du=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=[fu,pu],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return r(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(fu),this.resetDim(pu);var t=this.context.view;t.render(!0)},e}(de),gu=du,vu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return r(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;Object(h["j"])(e,(function(e){var n=t.getScale(e),i=n.min,r=n.max,o=n.values;t.startCache[e]={min:i,max:r,values:o}}))},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),o=n.invert(i),a=o.x-r.x,s=o.y-r.y,c=this.context.view,l=this.dims;Object(h["j"])(l,(function(e){t.translateDim(e,{x:-1*a,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],o=r.min,a=r.max,s=a-o,c=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:o,max:a}),i.scale(e.field,{nice:!1,min:o+c,max:a+c})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(gu),yu=vu,mu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return r(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;Object(h["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],o=r.max-r.min,a=e.min,s=e.max,c=n*o,l=a-c,u=s+c,h=u-l,f=h/o;u>l&&f<100&&f>.01&&i.scale(e.field,{nice:!1,min:a-c,max:s+c})},e}(gu),bu=mu;function xu(t){var e=t.gEvent.originalEvent;return e.deltaY>0}var Ou=1,ju=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(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)||Ou,o=n.getController("scrollbar"),a=n.getXScale(),s=n.getOptions().data,c=Object(h["mb"])(Object(h["yb"])(s,a.field)),l=Object(h["mb"])(a.values),u=o.getValue(),f=Math.floor((c-l)*u),p=f+(xu(i)?r:-r),d=r/(c-l)/1e4,g=Object(h["c"])(p/(c-l)+d,0,1);o.setValue(g)}},e}(de),wu=ju;function Cu(t){return t.isInPlot()}function Mu(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}Bn("dark",wn(Vr)),C("canvas",Hr),C("svg",Wr),fi("Polygon",Ao),fi("Interval",yo),fi("Schema",Fo),fi("Path",Kr),fi("Point",Co),fi("Line",bo),fi("Area",Jr),fi("Edge",eo),fi("Heatmap",io),fi("Violin",Po),Di("base",fr),Di("interval",ea),Di("pie",aa),Di("polar",ra),_i("overlap",Sa),_i("distribute",la),_i("fixed-overlap",Ma),_i("hide-overlap",Ra),_i("limit-in-shape",xa),_i("limit-in-canvas",ba),_i("limit-in-plot",ss),_i("pie-outer",pa),_i("adjust-color",Na),_i("interval-adjust-position",Ha),_i("interval-hide-overlap",qa),_i("point-adjust-position",$a),_i("pie-spider",ma),_i("path-adjust-position",is),ji("fade-in",cs),ji("fade-out",ls),ji("grow-in-x",fs),ji("grow-in-xy",ds),ji("grow-in-y",ps),ji("scale-in-x",ys),ji("scale-in-y",ms),ji("wave-in",ws),ji("zoom-in",Ms),ji("zoom-out",Ss),ji("position-update",vs),ji("sector-path-update",js),ji("path-in",gs),fe("rect",_s),fe("mirror",Ds),fe("list",Ps),fe("matrix",Bs),fe("circle",Es),fe("tree",Ys),Jn("axis",tc),Jn("legend",oc),Jn("tooltip",bi),Jn("annotation",Ws),Jn("slider",sc),Jn("scrollbar",pc),xe("tooltip",bc),xe("sibling-tooltip",Oc),xe("ellipsis-text",wc),xe("element-active",Ec),xe("element-single-active",Yc),xe("element-range-active",Dc),xe("element-highlight",Uc),xe("element-highlight-by-x",Jc),xe("element-highlight-by-color",Qc),xe("element-single-highlight",il),xe("element-range-highlight",el),xe("element-sibling-highlight",el,{effectSiblings:!0,effectByRecord:!0}),xe("element-selected",sl),xe("element-single-selected",ll),xe("element-range-selected",ol),xe("element-link-by-color",Pc),xe("active-region",yc),xe("list-active",pl),xe("list-selected",jl),xe("list-highlight",xl),xe("list-unchecked",Cl),xe("list-checked",kl),xe("legend-item-highlight",xl,{componentNames:["legend"]}),xe("axis-label-highlight",xl,{componentNames:["axis"]}),xe("rect-mask",Bl),xe("x-rect-mask",_l,{dim:"x"}),xe("y-rect-mask",_l,{dim:"y"}),xe("circle-mask",Pl),xe("path-mask",Yl),xe("smooth-path-mask",Gl),xe("cursor",Vl),xe("data-filter",Wl),xe("brush",Ul),xe("brush-x",Ul,{dims:["x"]}),xe("brush-y",Ul,{dims:["y"]}),xe("sibling-filter",Ql),xe("sibling-x-filter",Ql),xe("sibling-y-filter",Ql),xe("element-filter",Jl),xe("element-sibling-filter",eu),xe("element-sibling-filter-record",eu,{byRecord:!0}),xe("view-drag",cu),xe("view-move",hu),xe("scale-translate",yu),xe("scale-zoom",bu),xe("reset-button",ou,{name:"reset-button",text:"reset"}),xe("mousewheel-scroll",wu),bn("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"}]}),bn("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:touchend",action:"ellipsis-text:hide"}]}),bn("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),bn("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),bn("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),bn("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),bn("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),bn("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"]}]}),bn("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"]}]}),bn("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"]}]}),bn("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"]}]}),bn("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"]}]}),bn("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Cu,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Cu,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Cu,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"]}]}),bn("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"]}]}),bn("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Cu,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Cu,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Cu,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),bn("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Cu,action:"path-mask:start"},{trigger:"mousedown",isEnable:Cu,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"}]}),bn("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),bn("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","data-filter:filter"]}]}),bn("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),bn("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),bn("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),bn("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),bn("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Mu(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Mu(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),bn("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),bn("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]})},"91da":function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return s}));var i=n("8937"),r="\t\n\v\f\r   ᠎              \u2028\u2029",o=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),a=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(o,(function(i,r,o){var s=[],c=r.toLowerCase();if(o.replace(a,(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};var c=function(t,e){if(t.length!==e.length)return!1;var n=!0;return Object(i["j"])(t,(function(t,i){if(t!==e[i])return n=!1,!1})),n};function l(t,e,n){var i=null,r=n;return e<r&&(r=e,i="add"),t<r&&(r=t,i="del"),{type:i,min:r}}var u=function(t,e){var n,i,r=t.length,o=e.length,a=0;if(0===r||0===o)return null;for(var s=[],u=0;u<=r;u++)s[u]=[],s[u][0]={min:u};for(var h=0;h<=o;h++)s[0][h]={min:h};for(u=1;u<=r;u++){n=t[u-1];for(h=1;h<=o;h++){i=e[h-1],a=c(n,i)?0:1;var f=s[u-1][h].min+1,p=s[u][h-1].min+1,d=s[u-1][h-1].min+a;s[u][h]=l(f,p,d)}}return s},h=function(t,e){var n=u(t,e),i=t.length,r=e.length,o=[],a=1,s=1;if(n[i][r].min!==i){for(var c=1;c<=i;c++){var l=n[c][c].min;s=c;for(var h=a;h<=r;h++)n[c][h].min<l&&(l=n[c][h].min,s=h);a=s,n[c][a].type&&o.push({index:c-1,type:n[c][a].type})}for(c=o.length-1;c>=0;c--)a=o[c].index,"add"===o[c].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}i=t.length;var f=r-i;if(i<r)for(c=0;c<f;c++)"z"===t[i-1][0]||"Z"===t[i-1][0]?t.splice(i-2,0,t[i-2]):t.push(t[i-1]),i+=1;return t};function f(t,e,n){for(var i,r=[].concat(t),o=1/(n+1),a=p(e)[0],s=1;s<=n;s++)o*=s,i=Math.floor(t.length*o),0===i?r.unshift([a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]):r.splice(i,0,[a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]);return r}function p(t){var e=[];switch(t[0]){case"M":e.push([t[1],t[2]]);break;case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":e.push([t[1],t[1]]);break;case"V":e.push([t[1],t[1]]);break;default:}return e}var d=function(t,e){if(t.length<=1)return t;for(var n,i=0;i<e.length;i++)if(t[i][0]!==e[i][0])switch(n=p(t[i]),e[i][0]){case"M":t[i]=["M"].concat(n[0]);break;case"L":t[i]=["L"].concat(n[0]);break;case"A":t[i]=[].concat(e[i]),t[i][6]=n[0][0],t[i][7]=n[0][1];break;case"Q":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=f(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=f(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=f(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}},9308:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("5809"),r=n("cc94"),o=n("bbdf"),a=n("31f7"),s=n("0770"),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="process",e}return Object(i["b"])(e,t),e.getDefaultOptions=function(){return a["b"]},e.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData(Object(s["a"])(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o["a"]},e}(r["b"])},9457:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("8937");function r(t){return Object(i["W"])(t||[],(function(t,e){return{x:""+e,y:t}}))}},"94e3":function(t,e,n){"use strict";var i=n("9ab4"),r=n("8937"),o=n("d177"),a=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?o["d"]:i,a=e.dodgeRatio,s=void 0===a?o["b"]:a,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;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}return Object(i["b"])(e,t),e.prototype.process=function(t){var e=r["e"](t),n=r["q"](e),i=this.dodgeBy,o=i?r["v"](n,i):e;return this.cacheMap={},this.adjustDataArray=o,this.mergeData=n,this.adjustData(o,n),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,n,i){var o=this,a=this.getDistribution(t),s=this.groupData(n,t);return r["j"](s,(function(n,s){var c;c=1===e.length?{pre:e[0]-1,next:e[0]+1}:o.getAdjustRange(t,parseFloat(s),e),r["j"](n,(function(e){var n=e[t],r=a[n],s=r.indexOf(i);e[t]=o.getDodgeOffset(c,s,r.length)}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var i,o=this,a=o.dodgeRatio,s=o.marginRatio,c=o.intervalPadding,l=o.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*a/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,o=n.intervalPadding,a=n.xDimensionLegenth,s=n.groupNum,c=n.dodgeRatio,l=n.maxColumnWidth,u=n.minColumnWidth,h=n.columnWidthRatio,f=o/a,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/a;d=Math.min(d,g)}if(!r["K"](u)){var v=u/a;d=Math.max(d,v)}d=i?i/a: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,o=n.dodgePadding,a=n.xDimensionLegenth,s=n.groupNum,c=n.marginRatio,l=n.maxColumnWidth,u=n.minColumnWidth,h=n.columnWidthRatio,f=o/a,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/a;d=Math.min(d,g)}if(!r["K"](u)){var v=u/a;d=Math.max(d,v)}d=i?i/a: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,o=n.xDimensionLegenth,a=n.groupNum,s=i/o,c=r/o,l=((1-s*(a-1))/a-c*(t-1))/t,u=((.5+e)*l+e*c+.5*s)*a-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 o=r["yb"](e,t);o.length||o.push(0),r["j"](o,(function(t){i[t]||(i[t]=[]),i[t].push(n)}))})),n[t]=i),i},e}(a["a"]);e["a"]=s},"96bf":function(t,e,n){"use strict";var i,r=n("5809"),o=n("cc94"),a=n("8937"),s=n("c34d"),c=n("b4aa"),l=n("62e3"),u=n("9ff2"),h="$$range$$",f="low-q1-median-q3-high",p="$$y_outliers$$",d="outliers_view",g=Object(l["c"])({},o["b"].getDefaultOptions(),{meta:(i={},i[h]={min:0,alias:f},i),interactions:[{type:"active-region"}],tooltip:{showMarkers:!1,shared:!0},boxStyle:{lineWidth:1}}),v=function(t,e){var n=t;if(Array.isArray(e)){var i=e[0],r=e[1],o=e[2],s=e[3],c=e[4];n=Object(a["W"])(t,(function(t){return t[h]=[t[i],t[r],t[o],t[s],t[c]],t}))}return n};function y(t){var e=t.chart,n=t.options,i=n.xField,r=n.yField,o=n.groupField,s=n.color,u=n.tooltip,f=n.boxStyle;e.data(v(n.data,r));var p=Object(a["C"])(r)?h:r,d=r?Object(a["C"])(r)?r:[r]:[],g=u;!1!==g&&(g=Object(l["c"])({},{fields:Object(a["C"])(r)?r:[]},g));var y=Object(c["g"])(Object(l["c"])({},t,{options:{xField:i,yField:p,seriesField:o,tooltip:g,rawFields:d,label:!1,schema:{shape:"box",color:s,style:f}}})).ext;return o&&y.geometry.adjust("dodge"),t}function m(t){var e=t.chart,n=t.options,i=n.xField,o=n.data,a=n.outliersField,s=n.outliersStyle,l=n.padding,u=n.label;if(!a)return t;var h=e.createView({padding:l,id:d}),f=o.reduce((function(t,e){var n=e[a];return n.forEach((function(n){var i;return t.push(Object(r["a"])(Object(r["a"])({},e),(i={},i[a]=n,i)))})),t}),[]);return h.data(f),Object(c["e"])({chart:h,options:{xField:i,yField:a,point:{shape:"circle",style:s},label:u}}),h.axis(!1),t}function b(t){var e,n,i=t.chart,r=t.options,o=r.meta,a=r.xAxis,s=r.yAxis,c=r.xField,f=r.yField,d=r.outliersField,g=Array.isArray(f)?h:f,v={};if(d){var y=p;e={},e[d]={sync:y,nice:!0},e[g]={sync:y,nice:!0},v=e}var m=Object(l["c"])(v,o,(n={},n[c]=Object(l["t"])(a,u["a"]),n[g]=Object(l["t"])(s,u["a"]),n));return i.scale(m),t}function x(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField,s=Array.isArray(a)?h:a;return!1===i?e.axis(o,!1):e.axis(o,i),!1===r?e.axis(h,!1):e.axis(s,r),t}function O(t){var e=t.chart,n=t.options,i=n.legend,r=n.groupField;return r?i?e.legend(r,i):e.legend(r,{position:"bottom"}):e.legend(!1),t}function j(t){return Object(l["f"])(y,m,b,x,O,s["l"],s["c"],s["a"],s["k"])(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="box",e}Object(r["b"])(e,t),e.getDefaultOptions=function(){return g},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField,n=this.chart.views.find((function(t){return t.id===d}));n&&n.data(t),this.chart.changeData(v(t,e))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return j}})(o["b"])},"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}},"974f":function(t,e){},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",o=null;return Object(i["j"])(n,(function(e,n){t[n]&&e[r]&&(o||(o={}),Object(i["db"])(o,e[r]))})),o}},"988d":function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return u}));var i=n("5809"),r=n("8937"),o=n("62e3"),a=n("c34d"),s=n("bbdf");function c(t){var e=t.chart,n=t.options,i=n.innerRadius,r=n.radius;return e.coordinate("theta",{innerRadius:i,radius:r}),t}function l(t,e){var n=t.chart,a=t.options,s=a.innerRadius,c=a.statistic,l=a.percent,u=a.meta;if(n.getController("annotation").clear(!0),s&&c){var h=Object(r["s"])(u,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},f=c.content;f&&(f=Object(o["c"])({},f,{content:Object(r["K"])(f.content)?h(l):f.content})),Object(o["w"])(n,{statistic:Object(i["a"])(Object(i["a"])({},c),{content:f}),plotType:"ring-progress"},{percent:l})}return e&&n.render(!0),t}function u(t){return Object(o["f"])(s["b"],Object(a["g"])({}),c,l,a["a"],a["k"],Object(a["b"])())(t)}},"99afe":function(t,e,n){"use strict";n("917c");var i=n("afaa"),r=n("16fb"),o=n("f0b2"),a=(n("f7cc"),n("cc94"),n("0e37"),n("5e5a"),n("bb0f"));n.d(e,"Area",(function(){return a["a"]}));n("bbd5"),n("63e2"),n("0abd"),n("cf85"),n("323e"),n("b44e"),n("cbbe"),n("caa0"),n("9adb"),n("d36e"),n("d390"),n("0704"),n("9308"),n("60fe"),n("fb05"),n("96bf"),n("a18e"),n("a37c"),n("ffed"),n("68bc"),n("1405"),n("0587"),n("7011"),n("5e91"),n("14b2"),n("4c46"),n("ed96"),n("787a"),n("aed4"),n("528e"),n("a6d0"),n("efee"),n("db3c"),n("dbaf"),n("c441"),n("62e3"),n("b4aa");var s=n("c34d");n("e3a9");Object(i["b"])("en-US",r["a"]),Object(i["b"])("zh-CN",o["a"]);s["g"],s["d"],s["l"],s["b"],s["c"],s["k"],s["a"]},"9a08":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("c34d"),r=n("62e3"),o=n("b4aa"),a=n("edcb"),s=n("9457"),c=n("8582");function l(t){var e=t.chart,n=t.options,i=n.data,c=n.color,l=n.columnStyle,u=n.columnWidthRatio,h=Object(s["a"])(i);e.data(h);var f=Object(r["c"])({},t,{options:{xField:a["c"],yField:a["d"],widthRatio:u,interval:{style:l,color:c}}});return Object(o["c"])(f),e.axis(!1),e.legend(!1),e.interaction("element-active"),t}function u(t){return Object(r["f"])(i["k"],Object(i["f"])("columnStyle"),l,c["b"],i["l"],i["a"],Object(i["b"])())(t)}n.d(e,"b",(function(){return c["b"]}))},"9a3e":function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return l}));var i=n("5809"),r=n("8937"),o=n("62e3");function a(t){var e={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis",display:"flex",justifyContent:"center",alignItems:"center"},n=["stroke","lineWidth","shadowColor","strokeOpacity","shadowBlur","shadowOffsetX","shadowOffsetY","fill"];Object(r["s"])(t,"fill")&&(e["color"]=t["fill"]);var i=Object(o["t"])(t,n),a=i.shadowColor,s=i.shadowBlur,c=void 0===s?0:s,l=i.shadowOffsetX,u=void 0===l?0:l,h=i.shadowOffsetY,f=void 0===h?0:h;e["text-shadow"]=""+[a,u+"px",f+"px",c+"px"].join(" ");var p=Object(o["t"])(t,n),d=p.stroke,g=p.lineWidth,v=void 0===g?0:g;return e["-webkit-text-stroke"]=""+[v+"px",d].join(" "),Object(r["j"])(t,(function(t,i){["fontSize"].includes(i)&&Object(r["M"])(t)?e[Object(o["q"])(i)]=t+"px":i&&!n.includes(i)&&(e[Object(o["q"])(i)]=""+t)})),e}function s(t,e){t.style["pointer-events"]="none",Object(r["j"])(e,(function(e,n){n&&e&&(t.style[n]=e)}))}var c=function(t,e,n){var c=e.statistic,l=e.plotType,u=c.title,h=c.content;[u,h].forEach((function(e,c){if(e){var f="";f=0===c?h?"translate(-50%, -100%)":"translate(-50%, -50%)":u?"translate(-50%, 0)":"translate(-50%, -50%)";var p=Object(r["I"])(e.style)?e.style(n):e.style;t.annotation().html(Object(i["a"])({position:["50%","50%"],html:function(t,o){var c=o.getCoordinate(),u=0;if("pie"===l||"ring-progress"===l)u=c.getRadius()*c.innerRadius*2;else if("liquid"===l){var h=Object(r["s"])(o.geometries,[0,"elements",0,"shape"]);if(h){var d=h.find((function(t){return"wrap"===t.get("name")})),g=d.getCanvasBBox().width;u=g}}else u||(u=c.getWidth());s(t,Object(i["a"])({width:u+"px",transform:f},a(p)));var v=o.getData();if(e.customHtml)return e.customHtml(t,o,n,v);var y=e.content;return e.formatter&&(y=e.formatter(n,v)),y?Object(r["Q"])(y)?y:""+y:"<div></div>"},key:(0===c?"top":"bottom")+"-statistic"},Object(o["t"])(e,["offsetX","offsetY","rotate","style","formatter"])))}}))},l=function(t,e,n){var c=e.statistic,l=c.title,u=c.content;[l,u].forEach((function(e){if(e){var c=Object(r["I"])(e.style)?e.style(n):e.style;t.annotation().html(Object(i["a"])({position:["50%","100%"],html:function(t,o){var l=o.getCoordinate(),u=o.views[0].getCoordinate(),h=u.getCenter(),f=u.getRadius(),p=Math.max(Math.sin(u.startAngle),Math.sin(u.endAngle))*f,d=h.y+p-l.y.start-parseFloat(Object(r["s"])(c,"fontSize",0)),g=l.getRadius()*l.innerRadius*2;s(t,Object(i["a"])({width:g+"px",transform:"translate(-50%, "+d+"px)"},a(c)));var v=o.getData();if(e.customHtml)return e.customHtml(t,o,n,v);var y=e.content;return e.formatter&&(y=e.formatter(n,v)),y?Object(r["Q"])(y)?y:""+y:"<div></div>"}},Object(o["t"])(e,["offsetX","offsetY","rotate","style","formatter"])))}}))}},"9ab4":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}));
  92. /*! *****************************************************************************
  93. Copyright (c) Microsoft Corporation.
  94. Permission to use, copy, modify, and/or distribute this software for any
  95. purpose with or without fee is hereby granted.
  96. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  97. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  98. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  99. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  100. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  101. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  102. PERFORMANCE OF THIS SOFTWARE.
  103. ***************************************************************************** */
  104. 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 o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)}},"9adb":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("5809"),r=n("cc94"),o=n("b2c8"),a=n("edcb"),s=n("9457"),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-line",e}return Object(i["b"])(e,t),e.getDefaultOptions=function(){return a["a"]},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,i=e.options;Object(o["b"])({chart:n,options:i}),n.changeData(Object(s["a"])(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o["a"]},e}(r["b"])},"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 o(t,e){return r(t)*r(e)?(t[0]*e[0]+t[1]*e[1])/(r(t)*r(e)):1}function a(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(o(t,e))}function s(t,e){var n=e[1],r=e[2],s=Object(i["m"])(Object(i["o"])(e[3]),2*Math.PI),c=e[4],l=e[5],u=t[0],h=t[1],f=e[6],p=e[7],d=Math.cos(s)*(u-f)/2+Math.sin(s)*(h-p)/2,g=-1*Math.sin(s)*(u-f)/2+Math.cos(s)*(h-p)/2,v=d*d/(n*n)+g*g/(r*r);v>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=a([1,0],w),S=a(w,C);return o(w,C)<=-1&&(S=Math.PI),o(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}}},"9cae":function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n("8937"),r=n("917c"),o=n("5809"),a=n("62e3"),s=10,c=5,l={padding:[8,10],text:"reset",textStyle:{default:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"}},buttonStyle:{default:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},active:{fill:"#e6e6e6"}}},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg=Object(o["a"])({name:"button"},l),e}return Object(o["b"])(e,t),e.prototype.getButtonCfg=function(){var t=this.context.view,e=Object(i["s"])(t,["interactions","filter-action","cfg","buttonConfig"]);return Object(a["c"])(this.buttonCfg,e,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=this.drawText(e);this.drawBackground(e,n.getBBox()),this.buttonGroup=e},e.prototype.drawText=function(t){var e,n=this.getButtonCfg();return t.addShape({type:"text",name:"button-text",attrs:Object(o["a"])({text:n.text},null===(e=n.textStyle)||void 0===e?void 0:e.default)})},e.prototype.drawBackground=function(t,e){var n,i=this.getButtonCfg(),r=Object(a["s"])(i.padding),s=t.addShape({type:"rect",name:"button-rect",attrs:Object(o["a"])({x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2]},null===(n=i.buttonStyle)||void 0===n?void 0:n.default)});return s.toBack(),t.on("mouseenter",(function(){var t;s.attr(null===(t=i.buttonStyle)||void 0===t?void 0:t.active)})),t.on("mouseleave",(function(){var t;s.attr(null===(t=i.buttonStyle)||void 0===t?void 0:t.default)})),s},e.prototype.resetPosition=function(){var t=this.context.view,e=t.getCoordinate(),n=e.convert({x:1,y:1}),i=this.buttonGroup,o=i.getBBox(),a=r["h"].transform(null,[["t",n.x-o.width-s,n.y+o.height+c]]);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}(r["a"]);function h(t){return t.isInPlot()}function f(t,e,n){var i=e||"rect";switch(t){case"brush":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:h,action:["brush:start",i+"-mask:start",i+"-mask:show"],arg:[null,{maskStyle:null===n||void 0===n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:h,action:[i+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:h,action:["brush:filter","brush:end",i+"-mask:end",i+"-mask:hide","brush-reset-button:show"]}],rollback:[{trigger:"brush-reset-button:click",action:["brush:reset","brush-reset-button:hide","cursor:crosshair"]}]};case"brush-highlight":return{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:[i+"-mask:start",i+"-mask:show"],arg:[{maskStyle:null===n||void 0===n?void 0:n.style}]},{trigger:"mask:dragstart",action:[i+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[i+"-mask:resize"]},{trigger:"mask:drag",action:[i+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[i+"-mask:end"]},{trigger:"mask:dragend",action:[i+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",i+"-mask:end",i+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",i+"-mask:hide"]}]};case"brush-x":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:h,action:["brush-x:start",i+"-mask:start",i+"-mask:show"],arg:[null,{maskStyle:null===n||void 0===n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:h,action:[i+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:h,action:["brush-x:filter","brush-x:end",i+"-mask:end",i+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]};case"brush-x-highlight":return{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:[i+"-mask:start",i+"-mask:show"],arg:[{maskStyle:null===n||void 0===n?void 0:n.style}]},{trigger:"mask:dragstart",action:[i+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[i+"-mask:resize"]},{trigger:"mask:drag",action:[i+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[i+"-mask:end"]},{trigger:"mask:dragend",action:[i+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",i+"-mask:end",i+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",i+"-mask:hide"]}]};case"brush-y":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:h,action:["brush-y:start",i+"-mask:start",i+"-mask:show"],arg:[null,{maskStyle:null===n||void 0===n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:h,action:[i+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:h,action:["brush-y:filter","brush-y:end",i+"-mask:end",i+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-y:reset"]}]};case"brush-y-highlight":return{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:[i+"-mask:start",i+"-mask:show"],arg:[{maskStyle:null===n||void 0===n?void 0:n.style}]},{trigger:"mask:dragstart",action:[i+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[i+"-mask:resize"]},{trigger:"mask:drag",action:[i+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[i+"-mask:end"]},{trigger:"mask:dragend",action:[i+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",i+"-mask:end",i+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",i+"-mask:hide"]}]};default:return{}}}Object(r["l"])("brush-reset-button",u,{name:"brush-reset-button"}),Object(r["o"])("filter-action",{}),Object(r["o"])("brush",f("brush")),Object(r["o"])("brush-highlight",f("brush-highlight")),Object(r["o"])("brush-x",f("brush-x","x-rect")),Object(r["o"])("brush-y",f("brush-y","y-rect")),Object(r["o"])("brush-x-highlight",f("brush-x-highlight","x-rect")),Object(r["o"])("brush-y-highlight",f("brush-y-highlight","y-rect"));var p=["brush","brush-x","brush-y","brush-highlight","brush-x-highlight","brush-y-highlight"];function d(t){var e=t.options,n=e.brush,r=Object(i["l"])(e.interactions||[],(function(t){return-1===p.indexOf(t.type)}));return(null===n||void 0===n?void 0:n.enabled)&&(p.forEach((function(t){var e,i=!1;switch(n.type){case"x-rect":i=t===("highlight"===n.action?"brush-x-highlight":"brush-x");break;case"y-rect":i=t===("highlight"===n.action?"brush-y-highlight":"brush-y");break;default:i=t===("highlight"===n.action?"brush-highlight":"brush");break}var o={type:t,enable:i};((null===(e=n.mask)||void 0===e?void 0:e.style)||n.type)&&(o.cfg=f(t,n.type,n.mask)),r.push(o)})),"highlight"!==(null===n||void 0===n?void 0:n.action)&&r.push({type:"filter-action",cfg:{buttonConfig:n.button}})),Object(a["c"])({},t,{options:{interactions:r}})}},"9e6a":function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var i=n("917c"),r=n("5809"),o=n("8937"),a=n("a9a0"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getActiveElements=function(){var t=i["h"].getDelegationObject(this.context);if(t){var e=this.context.view,n=t.component,r=t.item,o=n.get("field");if(o){var a=e.geometries[0].elements;return a.filter((function(t){return t.getModel().data[o]===r.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(o["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,r){var o=n[r],s=e.geometry.coordinate;if(s.isPolar&&s.isTransposed){var c=i["h"].getAngle(e.getModel(),s),l=c.startAngle,u=c.endAngle,h=(l+u)/2,f=t,p=f*Math.cos(h),d=f*Math.sin(h);e.shape.setMatrix(Object(a["a"])([["t",p,d]])),o.setMatrix(Object(a["a"])([["t",p,d]]))}}))},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(i["a"]),c=n("9a3e");function l(t){var e,n=t.event,i=n.target;return i&&(e=i.get("element")),e}var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(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,r=e.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var a=Object(o["s"])(r,["data","data"]);if(r.type.match("legend-item")){var s=i["h"].getDelegationObject(this.context),u=n.getGroupedFields()[0];if(s&&u){var h=s.item;a=n.getData().find((function(t){return t[u]===h.value}))}}if(a){var f=Object(o["s"])(t,"annotations",[]),p=Object(o["s"])(t,"statistic",{});n.getController("annotation").clear(!0),Object(o["j"])(f,(function(t){"object"===typeof t&&n.annotation()[t.type](t)})),Object(c["b"])(n,{statistic:p,plotType:"pie"},a),n.render(!0)}var d=l(this.context);d&&d.shape.toFront()},e.prototype.reset=function(){var t=this.context.view,e=t.getController("annotation");e.clear(!0);var n=this.getInitialAnnotation();Object(o["j"])(n,(function(e){t.annotation()[e.type](e)})),t.render(!0)},e}(i["a"]),h="pie-statistic";Object(i["l"])(h,u),Object(i["o"])("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),Object(i["l"])("pie-legend",s),Object(i["o"])("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]})},"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("c0e9"),r=n("4799"),o=Math.sin,a=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*a(c/6)+","+10*o(c/6)+" L0,0 L"+10*a(c/6)+",-"+10*o(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["c"])(v,["d","fill","stroke","lineWidth"]),j=n-l,w=c-u,C=s(w,j);y&&(l-=a(C)*y,u-=o(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:a(c)*r,dy:o(c)*r}}function f(t,e,n,i,r,o){"object"===typeof e.startArrow?u(t,e,n,i,r,o,!0):e.startArrow?l(t,e,n,i,r,o,!0):t.set("startArrowShape",null)}function p(t,e,n,i,r,o){"object"===typeof e.endArrow?u(t,e,n,i,r,o,!1):e.endArrow?l(t,e,n,i,r,o,!1):t.set("startArrowShape",null)}},"9f73":function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return p}));var i=n("5809"),r=n("917c"),o=n("8937"),a=n("3295"),s=4,c=0,l=5,u="drilldown-bread-crumb",h={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},f="hierarchy-data-transform-params",p=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=h,e}return Object(i["b"])(e,t),e.prototype.click=function(){var t=Object(o["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,o={x:t.start.x,y:t.end.y-(n.height+2*l)};t.isPolar&&(o={x:0,y:0}),"bottom-left"===i&&(o={x:t.start.x,y:t.start.y});var a=r["h"].transform(null,[["t",o.x+c,o.y+n.height+l]]);e.setMatrix(a)}},e.prototype.back=function(){Object(o["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(o["s"])(e,["interactions","drill-down","cfg","transformData"],(function(t){return t})),r=n(Object(i["a"])({data:t.data},t[f]));e.changeData(r);var a=[],s=t;while(s){var c=s.data;a.unshift({id:c.name+"_"+s.height+"_"+s.depth,name:c.name,children:n(Object(i["a"])({data:c},t[f]))}),s=s.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(a)},e.prototype.backTo=function(t){if(t&&!(t.length<=0)){var e=this.context.view,n=Object(o["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(o["s"])(t,["interactions","drill-down","cfg","drillDownConfig"]);return Object(a["a"])(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:u});var r=0;n.forEach((function(a,c){var l=t.breadCrumbGroup.addShape({type:"text",id:a.id,name:u+"_"+a.name+"_text",attrs:Object(i["a"])(Object(i["a"])({text:0!==c||Object(o["K"])(e.rootText)?a.name:e.rootText},e.textStyle),{x:r,y:0})}),h=l.getBBox();if(r+=h.width+s,l.on("click",(function(e){var i,r=e.target.get("id");if(r!==(null===(i=Object(o["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)}})),l.on("mouseenter",(function(t){var i,r=t.target.get("id");r!==(null===(i=Object(o["U"])(n))||void 0===i?void 0:i.id)?l.attr(e.activeTextStyle):l.attr({cursor:"default"})})),l.on("mouseleave",(function(){l.attr(e.textStyle)})),c<n.length-1){var f=t.breadCrumbGroup.addShape({type:"text",name:e.name+"_"+a.name+"_divider",attrs:Object(i["a"])(Object(i["a"])({text:e.dividerText},e.textStyle),{x:r,y:0})}),p=f.getBBox();r+=p.width+s}}))},e.prototype.hideCrumbGroup=function(){this.breadCrumbGroup&&this.breadCrumbGroup.hide()},e.prototype.destroy=function(){this.breadCrumbGroup&&this.breadCrumbGroup.remove(),t.prototype.destroy.call(this)},e}(r["a"])},"9fe7":function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return r})),n.d(e,"clone",(function(){return o})),n.d(e,"length",(function(){return a})),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 T})),n.d(e,"random",(function(){return P})),n.d(e,"transformMat4",(function(){return I})),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 _})),n.d(e,"angle",(function(){return z})),n.d(e,"zero",(function(){return Y})),n.d(e,"str",(function(){return N})),n.d(e,"exactEquals",(function(){return G})),n.d(e,"equals",(function(){return X})),n.d(e,"sub",(function(){return V})),n.d(e,"mul",(function(){return H})),n.d(e,"div",(function(){return W})),n.d(e,"dist",(function(){return q})),n.d(e,"sqrDist",(function(){return K})),n.d(e,"len",(function(){return U})),n.d(e,"sqrLen",(function(){return Z})),n.d(e,"forEach",(function(){return Q}));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 o(t){var e=new i["a"](3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(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],o=n*n+i*i+r*r;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,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],o=e[2],a=n[0],s=n[1],c=n[2];return t[0]=r*c-o*s,t[1]=o*a-i*c,t[2]=i*s-r*a,t}function F(t,e,n,i){var r=e[0],o=e[1],a=e[2];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=a+i*(n[2]-a),t}function E(t,e,n,i,r,o){var a=o*o,s=a*(2*o-3)+1,c=a*(o-2)+o,l=a*(o-1),u=a*(3-2*o);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 T(t,e,n,i,r,o){var a=1-o,s=a*a,c=o*o,l=s*a,u=3*o*s,h=3*c*a,f=c*o;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 P(t,e){e=e||1;var n=2*i["c"]()*Math.PI,r=2*i["c"]()-1,o=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=r*e,t}function I(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[3]*i+n[7]*r+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*i+n[4]*r+n[8]*o+n[12])/a,t[1]=(n[1]*i+n[5]*r+n[9]*o+n[13])/a,t[2]=(n[2]*i+n[6]*r+n[10]*o+n[14])/a,t}function B(t,e,n){var i=e[0],r=e[1],o=e[2];return t[0]=i*n[0]+r*n[3]+o*n[6],t[1]=i*n[1]+r*n[4]+o*n[7],t[2]=i*n[2]+r*n[5]+o*n[8],t}function L(t,e,n){var i=n[0],r=n[1],o=n[2],a=n[3],s=e[0],c=e[1],l=e[2],u=r*l-o*c,h=o*s-i*l,f=i*c-r*s,p=r*f-o*h,d=o*u-i*f,g=i*h-r*u,v=2*a;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=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0],o[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),o[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function R(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),o[1]=r[1],o[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function _(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),o[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),o[2]=r[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function z(t,e){var n=t[0],i=t[1],r=t[2],o=e[0],a=e[1],s=e[2],c=Math.sqrt(n*n+i*i+r*r),l=Math.sqrt(o*o+a*a+s*s),u=c*l,h=u&&A(t,e)/u;return Math.acos(Math.min(Math.max(h,-1),1))}function Y(t){return t[0]=0,t[1]=0,t[2]=0,t}function N(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 X(t,e){var n=t[0],r=t[1],o=t[2],a=e[0],s=e[1],c=e[2];return Math.abs(n-a)<=i["b"]*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-s)<=i["b"]*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(o-c)<=i["b"]*Math.max(1,Math.abs(o),Math.abs(c))}var V=h,H=f,W=p,q=O,K=j,U=a,Z=w,Q=function(){var t=r();return function(e,n,i,r,o,a){var s,c;for(n||(n=3),i||(i=0),c=r?Math.min(r*n+i,e.length):e.length,s=i;s<c;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],o(t,t,a),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2];return e}}()},"9ff2":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"]},a0ae:function(t,e){},a0c4:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("5809"),r=n("e474"),o=n("62e3"),a=n("58e4");function s(t){var e=t.options,n=e.point,s=e.xField,c=e.yField,l=e.seriesField,u=e.sizeField,h=e.shapeField,f=e.tooltip,p=Object(r["a"])(f,[s,c,l,u,h]),d=p.fields,g=p.formatter;return n?Object(a["a"])(Object(o["c"])({},t,{options:{type:"point",colorField:l,shapeField:h,tooltipFields:d,mapping:Object(i["a"])({tooltip:g},n)}})):t}},a18e:function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("8937"),a=n("c34d"),s=n("b4aa"),c=n("62e3"),l=n("9ff2"),u=n("a632"),h=n.n(u);function f(t,e){var n=t.length*e;if(0===t.length)throw new Error("quantile requires at least one data point.");if(e<0||e>1)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 p(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function d(t,e,n,i){n=n||0,i=i||t.length-1;while(i>n){if(i-n>600){var r=i-n+1,o=e-n+1,a=Math.log(r),s=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*s*(r-s)/r);o-r/2<0&&(c*=-1);var l=Math.max(n,Math.floor(e-o*s/r+c)),u=Math.min(i,Math.floor(e+(r-o)*s/r+c));d(t,e,l,u)}var h=t[e],f=n,g=i;p(t,n,e),t[i]>h&&p(t,n,i);while(f<g){p(t,f,g),f++,g--;while(t[f]<h)f++;while(t[g]>h)g--}t[n]===h?p(t,n,g):(g++,p(t,g,i)),g<=e&&(n=g+1),e<=g&&(i=g-1)}}function g(t,e){var n=t.slice();if(Array.isArray(e)){y(n,e);for(var i=[],r=0;r<e.length;r++)i[r]=f(n,e[r]);return i}var o=b(n.length,e);return v(n,o,0,n.length-1),f(n,e)}function v(t,e,n,i){e%1===0?d(t,e,n,i):(e=Math.floor(e),d(t,e,n,i),d(t,e+1,e+1,i))}function y(t,e){for(var n=[0],i=0;i<e.length;i++)n.push(b(t.length,e[i]));n.push(t.length-1),n.sort(m);var r=[0,n.length-1];while(r.length){var o=Math.ceil(r.pop()),a=Math.floor(r.pop());if(!(o-a<=1)){var s=Math.floor((a+o)/2);v(t,n[s],Math.floor(n[a]),Math.ceil(n[o])),r.push(a,s,s,o)}}}function m(t,e){return t-e}function b(t,e){var n=t*e;return 1===e?t-1:0===e?0:n%1!==0?Math.ceil(n)-1:t%2===0?n-.5:n}var x=function(t){return{low:Object(o["bb"])(t),high:Object(o["Y"])(t),q1:g(t,.25),q3:g(t,.75),median:g(t,[.5]),minMax:[Object(o["bb"])(t),Object(o["Y"])(t)],quantile:[g(t,.25),g(t,.75)]}},O=function(t,e){var n=h.a.create(t,e);return{violinSize:n.map((function(t){return t.y})),violinY:n.map((function(t){return t.x}))}},j=function(t){var e=t.xField,n=t.yField,r=t.seriesField,a=t.data,s=t.kde,c={min:s.min,max:s.max,size:s.sampleSize,width:s.width};if(!r){var l=Object(o["w"])(a,e);return Object.keys(l).map((function(t){var e=l[t],r=e.map((function(t){return t[n]}));return Object(i["a"])(Object(i["a"])({x:t},O(r,c)),x(r))}))}var u=[],h=Object(o["w"])(a,r);return Object.keys(h).forEach((function(t){var a=Object(o["w"])(h[t],e);return Object.keys(a).forEach((function(e){var o,s=a[e],l=s.map((function(t){return t[n]}));u.push(Object(i["a"])(Object(i["a"])((o={x:e},o[r]=t,o),O(l,c)),x(l)))}))})),u},w="x",C="violinY",M="violinSize",S="minMax",A="quantile",k="median",F="violin_view",E="min_max_view",T="quantile_view",P="median_view",I=Object(c["c"])({},r["b"].getDefaultOptions(),{syncViewPadding:!0,kde:{type:"triangular",sampleSize:32,width:3},violinStyle:{lineWidth:1,fillOpacity:.3,strokeOpacity:.75},xAxis:{grid:{line:null},tickLine:{alignTick:!1}},yAxis:{grid:{line:{style:{lineWidth:.5,lineDash:[4,4]}}}},legend:{position:"top-left"},tooltip:{showMarkers:!1}}),B=["low","high","q1","q3","median"],L=[{type:"dodge",marginRatio:1/32}];function D(t){var e=t.chart,n=t.options;return e.data(j(n)),t}function R(t){var e=t.chart,n=t.options,r=n.seriesField,o=n.color,a=n.shape,c=void 0===a?"violin":a,l=n.violinStyle,u=n.tooltip,h=n.state,f=e.createView({id:F});return Object(s["h"])({chart:f,options:{xField:w,yField:C,seriesField:r||w,sizeField:M,tooltip:Object(i["a"])({fields:B},u),violin:{style:l,color:o,shape:c},state:h}}),f.geometries[0].adjust(L),t}function _(t){var e=t.chart,n=t.options,r=n.seriesField,o=n.color,a=n.tooltip,c=n.box;if(!1===c)return t;var l=e.createView({id:E});Object(s["c"])({chart:l,options:{xField:w,yField:S,seriesField:r||w,tooltip:Object(i["a"])({fields:B},a),state:"object"===typeof c?c.state:{},interval:{color:o,size:1,style:{lineWidth:0}}}}),l.geometries[0].adjust(L);var u=e.createView({id:T});Object(s["c"])({chart:u,options:{xField:w,yField:A,seriesField:r||w,tooltip:Object(i["a"])({fields:B},a),state:"object"===typeof c?c.state:{},interval:{color:o,size:8,style:{fillOpacity:1}}}}),u.geometries[0].adjust(L);var h=e.createView({id:P});return Object(s["e"])({chart:h,options:{xField:w,yField:k,seriesField:r||w,tooltip:Object(i["a"])({fields:B},a),state:"object"===typeof c?c.state:{},point:{color:o,size:1,style:{fill:"white",lineWidth:0}}}}),h.geometries[0].adjust(L),u.axis(!1),l.axis(!1),h.axis(!1),h.legend(!1),l.legend(!1),u.legend(!1),t}function z(t){var e,n=t.chart,r=t.options,o=r.meta,a=r.xAxis,s=r.yAxis,u={},h=Object(c["c"])(u,o,(e={},e[w]=Object(i["a"])(Object(i["a"])({sync:!0},Object(c["t"])(a,l["a"])),{type:"cat"}),e[C]=Object(i["a"])({sync:!0},Object(c["t"])(s,l["a"])),e[S]=Object(i["a"])({sync:C},Object(c["t"])(s,l["a"])),e[A]=Object(i["a"])({sync:C},Object(c["t"])(s,l["a"])),e[k]=Object(i["a"])({sync:C},Object(c["t"])(s,l["a"])),e));return n.scale(h),t}function Y(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=Object(c["e"])(e,F);return!1===i?o.axis(w,!1):o.axis(w,i),!1===r?o.axis(C,!1):o.axis(C,r),e.axis(!1),t}function N(t){var e=t.chart,n=t.options,i=n.legend,r=n.seriesField,a=n.shape;if(!1===i)e.legend(!1);else{var s=r||w,c=Object(o["gb"])(i,["selected"]);a&&a.startsWith("hollow")||Object(o["s"])(c,["marker","style","lineWidth"])||Object(o["lb"])(c,["marker","style","lineWidth"],0),e.legend(s,c),Object(o["s"])(i,"selected")&&Object(o["j"])(e.views,(function(t){return t.legend(s,i)}))}return t}function G(t){var e=t.chart,n=Object(c["e"])(e,F);return Object(a["b"])()(Object(i["a"])(Object(i["a"])({},t),{chart:n})),t}function X(t){var e=t.chart,n=t.options,i=n.animation;return Object(o["j"])(e.views,(function(t){"boolean"===typeof i?t.animate(i):t.animate(!0),Object(o["j"])(t.geometries,(function(t){t.animate(i)}))})),t}function V(t){return Object(c["f"])(a["k"],D,R,_,z,a["l"],Y,N,a["c"],G,X)(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return I},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(j(this.options))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return V}})(r["b"])},a37c:function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("8937"),a=n("c34d"),s=n("b4aa"),c=n("62e3"),l=n("e945"),u=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}},h={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)))}},f=function(t){if(!h[t])throw new Error("unknown blend mode "+t);return h[t]};function p(t,e,n){void 0===n&&(n="normal");var i=u(f(n))(d(t),d(e)),r=d(t),o=r[0],a=r[1],s=r[2],c=r[3],l=d(e),h=l[0],p=l[1],g=l[2],v=l[3],y=Number((c+v*(1-c)).toFixed(2)),m=Math.round((c*(1-v)*(o/255)+c*v*(i[0]/255)+(1-c)*v*(h/255))/y*255),b=Math.round((c*(1-v)*(a/255)+c*v*(i[1]/255)+(1-c)*v*(p/255))/y*255),x=Math.round((c*(1-v)*(s/255)+c*v*(i[2]/255)+(1-c)*v*(g/255))/y*255);return"rgba("+m+", "+b+", "+x+", "+y+")"}function d(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=l["a"].rgb2arr(n).concat([1])),e.map((function(t,e){return 3===e?Number(t):0|t}))):l["a"].rgb2arr(l["a"].toRGB(n)).concat([1])}var g=n("23eb"),v=1e-10;function y(t,e){var n,i=b(t),r=i.filter((function(e){return m(e,t)})),o=0,a=0,s=[];if(r.length>1){var c=C(r);for(n=0;n<r.length;++n){var l=r[n];l.angle=Math.atan2(l.x-c.x,l.y-c.y)}r.sort((function(t,e){return e.angle-t.angle}));var u=r[r.length-1];for(n=0;n<r.length;++n){var h=r[n];a+=(u.x+h.x)*(h.y-u.y);for(var f={x:(h.x+u.x)/2,y:(h.y+u.y)/2},p=null,d=0;d<h.parentIndex.length;++d)if(u.parentIndex.indexOf(h.parentIndex[d])>-1){var g=t[h.parentIndex[d]],y=Math.atan2(h.x-g.x,h.y-g.y),j=Math.atan2(u.x-g.x,u.y-g.y),w=j-y;w<0&&(w+=2*Math.PI);var M=j-w/2,S=O(f,{x:g.x+g.radius*Math.sin(M),y:g.y+g.radius*Math.cos(M)});S>2*g.radius&&(S=2*g.radius),(null===p||p.width>S)&&(p={circle:g,width:S,p1:h,p2:u})}null!==p&&(s.push(p),o+=x(p.circle.radius,p.width),u=h)}}else{var A=t[0];for(n=1;n<t.length;++n)t[n].radius<A.radius&&(A=t[n]);var k=!1;for(n=0;n<t.length;++n)if(O(t[n],A)>Math.abs(A.radius-t[n].radius)){k=!0;break}k?o=a=0:(o=A.radius*A.radius*Math.PI,s.push({circle:A,p1:{x:A.x,y:A.y+A.radius},p2:{x:A.x-v,y:A.y+A.radius},width:2*A.radius}))}return a/=2,e&&(e.area=o+a,e.arcArea=o,e.polygonArea=a,e.arcs=s,e.innerPoints=r,e.intersectionPoints=i),o+a}function m(t,e){for(var n=0;n<e.length;++n)if(O(t,e[n])>e[n].radius+v)return!1;return!0}function b(t){for(var e=[],n=0;n<t.length;++n)for(var i=n+1;i<t.length;++i)for(var r=w(t[n],t[i]),o=0;o<r.length;++o){var a=r[o];a.parentIndex=[n,i],e.push(a)}return e}function x(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function O(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function j(t,e,n){if(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 x(t,i)+x(e,r)}function w(t,e){var n=O(t,e),i=t.radius,r=e.radius;if(n>=i+r||n<=Math.abs(i-r))return[];var o=(i*i-r*r+n*n)/(2*n),a=Math.sqrt(i*i-o*o),s=t.x+o*(e.x-t.x)/n,c=t.y+o*(e.y-t.y)/n,l=-(e.y-t.y)*(a/n),u=-(e.x-t.x)*(a/n);return[{x:s+l,y:c-u},{x:s-l,y:c+u}]}function C(t){for(var e={x:0,y:0},n=0;n<t.length;++n)e.x+=t[n].x,e.y+=t[n].y;return e.x/=t.length,e.y/=t.length,e}function M(t,e){e=e||{},e.maxIterations=e.maxIterations||500;var n=e.initialLayout||T,i=e.lossFunction||B;t=k(t);var r,o=n(t,e),a=[],s=[];for(r in o)o.hasOwnProperty(r)&&(a.push(o[r].x),a.push(o[r].y),s.push(r));for(var c=Object(g["nelderMead"])((function(e){for(var n={},r=0;r<s.length;++r){var a=s[r];n[a]={x:e[2*r],y:e[2*r+1],radius:o[a].radius}}return i(n,t)}),a,e),l=c.x,u=0;u<s.length;++u)r=s[u],o[r].x=l[2*u],o[r].y=l[2*u+1];return o}var S=1e-10;function A(t,e,n){return Math.min(t,e)*Math.min(t,e)*Math.PI<=n+S?Math.abs(t-e):Object(g["bisect"])((function(i){return j(t,e,i)-n}),0,t+e)}function k(t){t=t.slice();var e,n,i,r,o=[],a={};for(e=0;e<t.length;++e){var s=t[e];1==s.sets.length?o.push(s.sets[0]):2==s.sets.length&&(i=s.sets[0],r=s.sets[1],a[[i,r]]=!0,a[[r,i]]=!0)}for(o.sort((function(t,e){return t>e?1:-1})),e=0;e<o.length;++e)for(i=o[e],n=e+1;n<o.length;++n)r=o[n],[i,r]in a||t.push({sets:[i,r],size:0});return t}function F(t,e,n){var i=Object(g["zerosM"])(e.length,e.length),r=Object(g["zerosM"])(e.length,e.length);return t.filter((function(t){return 2==t.sets.length})).map((function(t){var o=n[t.sets[0]],a=n[t.sets[1]],s=Math.sqrt(e[o].size/Math.PI),c=Math.sqrt(e[a].size/Math.PI),l=A(s,c,t.size);i[o][a]=i[a][o]=l;var u=0;t.size+1e-10>=Math.min(e[o].size,e[a].size)?u=1:t.size<=1e-10&&(u=-1),r[o][a]=r[a][o]=u})),{distances:i,constraints:r}}function E(t,e,n,i){var r,o=0;for(r=0;r<e.length;++r)e[r]=0;for(r=0;r<n.length;++r)for(var a=t[2*r],s=t[2*r+1],c=r+1;c<n.length;++c){var l=t[2*c],u=t[2*c+1],h=n[r][c],f=i[r][c],p=(l-a)*(l-a)+(u-s)*(u-s),d=Math.sqrt(p),g=p-h*h;f>0&&d<=h||f<0&&d>=h||(o+=2*g*g,e[2*r]+=4*g*(a-l),e[2*r+1]+=4*g*(s-u),e[2*c]+=4*g*(l-a),e[2*c+1]+=4*g*(u-s))}return o}function T(t,e){var n=I(t,e),i=e.lossFunction||B;if(t.length>=8){var r=P(t,e),o=i(r,t),a=i(n,t);o+1e-8<a&&(n=r)}return n}function P(t,e){e=e||{};var n,i=e.restarts||10,r=[],o={};for(n=0;n<t.length;++n){var a=t[n];1==a.sets.length&&(o[a.sets[0]]=r.length,r.push(a))}var s=F(t,r,o),c=s.distances,l=s.constraints,u=Object(g["norm2"])(c.map(g["norm2"]))/c.length;c=c.map((function(t){return t.map((function(t){return t/u}))}));var h,f,p=function(t,e){return E(t,e,c,l)};for(n=0;n<i;++n){var d=Object(g["zeros"])(2*c.length).map(Math.random);f=Object(g["conjugateGradient"])(p,d,e),(!h||f.fx<h.fx)&&(h=f)}var v=h.x,y={};for(n=0;n<r.length;++n){var m=r[n];y[m.sets[0]]={x:v[2*n]*u,y:v[2*n+1]*u,radius:Math.sqrt(m.size/Math.PI)}}if(e.history)for(n=0;n<e.history.length;++n)Object(g["scale"])(e.history[n].x,u);return y}function I(t,e){for(var n,i=e&&e.lossFunction?e.lossFunction:B,r={},o={},a=0;a<t.length;++a){var s=t[a];1==s.sets.length&&(n=s.sets[0],r[n]={x:1e10,y:1e10,rowid:Object.keys(r).length,size:s.size,radius:Math.sqrt(s.size/Math.PI)},o[n]=[])}t=t.filter((function(t){return 2==t.sets.length}));for(a=0;a<t.length;++a){var c=t[a],l=c.hasOwnProperty("weight")?c.weight:1,u=c.sets[0],h=c.sets[1];c.size+S>=Math.min(r[u].size,r[h].size)&&(l=0),o[u].push({set:h,size:c.size,weight:l}),o[h].push({set:u,size:c.size,weight:l})}var f=[];for(n in o)if(o.hasOwnProperty(n)){var p=0;for(a=0;a<o[n].length;++a)p+=o[n][a].size*o[n][a].weight;f.push({set:n,size:p})}function d(t,e){return e.size-t.size}f.sort(d);var g={};function v(t){return t.set in g}function y(t,e){r[e].x=t.x,r[e].y=t.y,g[e]=!0}y({x:0,y:0},f[0].set);for(a=1;a<f.length;++a){var m=f[a].set,b=o[m].filter(v);if(n=r[m],b.sort(d),0===b.length)throw"ERROR: missing pairwise overlap information";for(var x=[],O=0;O<b.length;++O){var j=r[b[O].set],C=A(n.radius,j.radius,b[O].size);x.push({x:j.x+C,y:j.y}),x.push({x:j.x-C,y:j.y}),x.push({y:j.y+C,x:j.x}),x.push({y:j.y-C,x:j.x});for(var M=O+1;M<b.length;++M)for(var k=r[b[M].set],F=A(n.radius,k.radius,b[M].size),E=w({x:j.x,y:j.y,radius:C},{x:k.x,y:k.y,radius:F}),T=0;T<E.length;++T)x.push(E[T])}var P=1e50,I=x[0];for(O=0;O<x.length;++O){r[m].x=x[O].x,r[m].y=x[O].y;var L=i(r,t);L<P&&(P=L,I=x[O])}y(I,m)}return r}function B(t,e){var n=0;function i(e){return e.map((function(e){return t[e]}))}for(var r=0;r<e.length;++r){var o=e[r],a=void 0;if(1!=o.sets.length){if(2==o.sets.length){var s=t[o.sets[0]],c=t[o.sets[1]];a=j(s.radius,c.radius,O(s,c))}else a=y(i(o.sets));var l=o.hasOwnProperty("weight")?o.weight:1;n+=l*(a-o.size)*(a-o.size)}}return n}function L(t){var e=function(e){var n=Math.max.apply(null,t.map((function(t){return t[e]+t.radius}))),i=Math.min.apply(null,t.map((function(t){return t[e]-t.radius})));return{max:n,min:i}};return{xRange:e("x"),yRange:e("y")}}function D(t,e,n,i){var r=[],o=[];for(var a in t)t.hasOwnProperty(a)&&(o.push(a),r.push(t[a]));e-=2*i,n-=2*i;var s=L(r),c=s.xRange,l=s.yRange;if(c.max==c.min||l.max==l.min)return console.log("not scaling solution: zero size detected"),t;for(var u=e/(c.max-c.min),h=n/(l.max-l.min),f=Math.min(h,u),p=(e-(c.max-c.min)*f)/2,d=(n-(l.max-l.min)*f)/2,g={},v=0;v<r.length;++v){var y=r[v];g[o[v]]={radius:f*y.radius,x:i+p+(y.x-c.min)*f,y:i+d+(y.y-l.min)*f}}return g}function R(t,e,n){var i,r,o=e[0].radius-O(e[0],t);for(i=1;i<e.length;++i)r=e[i].radius-O(e[i],t),r<=o&&(o=r);for(i=0;i<n.length;++i)r=O(n[i],t)-n[i].radius,r<=o&&(o=r);return o}function _(t,e){var n,i=[];for(n=0;n<t.length;++n){var r=t[n];i.push({x:r.x,y:r.y}),i.push({x:r.x+r.radius/2,y:r.y}),i.push({x:r.x-r.radius/2,y:r.y}),i.push({x:r.x,y:r.y+r.radius/2}),i.push({x:r.x,y:r.y-r.radius/2})}var o=i[0],a=R(i[0],t,e);for(n=1;n<i.length;++n){var s=R(i[n],t,e);s>=a&&(o=i[n],a=s)}var c=Object(g["nelderMead"])((function(n){return-1*R({x:n[0],y:n[1]},t,e)}),[o.x,o.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:c[0],y:c[1]},u=!0;for(n=0;n<t.length;++n)if(O(l,t[n])>t[n].radius){u=!1;break}for(n=0;n<e.length;++n)if(O(l,e[n])<e[n].radius){u=!1;break}if(!u)if(1==t.length)l={x:t[0].x,y:t[0].y};else{var h={};y(t,h),l=0===h.arcs.length?{x:0,y:-1e3,disjoint:!0}:1==h.arcs.length?{x:h.arcs[0].circle.x,y:h.arcs[0].circle.y}:e.length?_(t,[]):C(h.arcs.map((function(t){return t.p1})))}return l}function z(t){var e={},n=[];for(var i in t)n.push(i),e[i]=[];for(var r=0;r<n.length;r++)for(var o=t[n[r]],a=r+1;a<n.length;++a){var s=t[n[a]],c=O(o,s);c+s.radius<=o.radius+1e-10?e[n[a]].push(n[r]):c+o.radius<=s.radius+1e-10&&e[n[r]].push(n[a])}return e}function Y(t,e){for(var n={},i=z(t),r=0;r<e.length;++r){for(var o=e[r].sets,a={},s={},c=0;c<o.length;++c){a[o[c]]=!0;for(var l=i[o[c]],u=0;u<l.length;++u)s[l[u]]=!0}var h=[],f=[];for(var p in t)p in a?h.push(t[p]):p in s||f.push(t[p]);var d=_(h,f);n[o]=d,d.disjoint&&e[r].size>0&&console.log("WARNING: area "+o+" not represented on screen")}return n}function N(t,e,n){var i=[],r=t-n,o=e;return i.push("M",r,o),i.push("A",n,n,0,1,0,r+2*n,o),i.push("A",n,n,0,1,0,r,o),i.join(" ")}function G(t){var e={};y(t,e);var n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var i=n[0].circle;return N(i.x,i.y,i.radius)}for(var r=["\nM",n[0].p2.x,n[0].p2.y],o=0;o<n.length;++o){var a=n[o],s=a.circle.radius,c=a.width>s;r.push("\nA",s,s,0,c?1:0,1,a.p1.x,a.p1.y)}return r.join(" ")}var X="id",V="path",H={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"]},W=Object(o["ab"])((function(t,e,n,i){var r=new Map,o=t.length;return e.forEach((function(e,a){if(1===e[i].length)r.set(e[X],t[(a+o)%o]);else{var s=e[i].map((function(t){return r.get(t)}));r.set(e[X],s.slice(1).reduce((function(t,e){return p(t,e,n)}),s[0]))}})),r}),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return JSON.stringify(t)}));function q(t,e,n,r){void 0===r&&(r=0);var a=t.data,s=t.setsField,l=t.sizeField;if(0===a.length)return Object(c["r"])(c["a"].WARN,!1,"warn: %s","数据不能为空"),[];var u=a.map((function(t){var e;return Object(i["a"])(Object(i["a"])({},t),(e={sets:t[s]||[],size:t[l]},e[V]="",e[X]="",e))}));u.sort((function(t,e){return t.sets.length-e.sets.length}));var h=M(u),f=D(h,e,n,r),p=Y(f,u);return u.forEach((function(t){var e=t.sets,n=e.join(",");t[X]=n;var i=e.map((function(t){return f[t]})),r=G(i);/[zZ]$/.test(r)||(r+=" Z"),t[V]=r;var a=p[n]||{x:0,y:0};Object(o["b"])(t,a)})),u}function K(t,e){for(var n=0;n<e.length;n++)if(!t.includes(e[n]))return!1;return!0}var U=n("917c"),Z=n("2ef1");function Q(t){return Object(c["c"])({},t.defaultStyle,{fill:t.color},t.style)}Object(U["p"])("schema","venn",{draw:function(t,e){var n=t.data,r=Object(Z["c"])(n[V]),o=Q(t),a=e.addGroup({name:"venn-shape"});a.addShape("path",{attrs:Object(i["a"])(Object(i["a"])({},o),{path:r}),name:"venn-path"});var s=t.customInfo,c=s.offsetX,l=s.offsetY,u=U["h"].transform(null,[["t",c,l]]);return a.setMatrix(u),a},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{lineWidth:0,stroke:e,fill:e,r:4}}}});var $=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getLabelPoint=function(t,e,n){var i=t.data,r=i.x,o=i.y,a=t.customLabelInfo,s=a.offsetX,c=a.offsetY;return{content:t.content[n],x:r+s,y:o+c}},e}(U["e"]);function J(t){if(t){var e=t.geometries[0].elements;e.forEach((function(t){t.shape.toFront()}))}}Object(U["n"])("venn",$);var tt=Object(U["j"])("element-active"),et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.syncElementsPos=function(){J(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}(tt),nt=Object(U["j"])("element-highlight"),it=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.syncElementsPos=function(){J(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}(nt),rt=Object(U["j"])("element-selected"),ot=Object(U["j"])("element-single-selected"),at=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.syncElementsPos=function(){J(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}(rt),st=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.syncElementsPos=function(){J(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}(ot);Object(U["l"])("venn-element-active",et),Object(U["l"])("venn-element-highlight",it),Object(U["l"])("venn-element-selected",at),Object(U["l"])("venn-element-single-selected",st),Object(U["o"])("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),Object(U["o"])("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),Object(U["o"])("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),Object(U["o"])("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),Object(U["o"])("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"]}]}),Object(U["o"])("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 ct=40;function lt(t,e,n){var i=t.chart,r=t.options,a=r.blendMode,s=r.setsField,c=i.getTheme(),l=c.colors10,u=c.colors20,h=n;Object(o["C"])(h)||(h=e.filter((function(t){return 1===t[s].length})).length<=10?l:u);var f=W(h,e,a,s);return function(t){return f.get(t)||h[0]}}function ut(t,e){var n=t.options,i=n.color;if("function"!==typeof i){var r="string"===typeof i?[i]:i,o=lt(t,e,r);return function(t){return o(t[X])}}return i}function ht(t){var e=t.chart,n=t.options,i=n.legend,r=n.appendPadding,a=n.padding,s=Object(c["s"])(r);return!1!==i&&(s=Object(c["g"])(r,Object(o["s"])(i,"position"),ct)),e.appendPadding=Object(c["x"])([s,a]),t}function ft(t){var e=t.options,n=e["data"];n||(Object(c["r"])(c["a"].WARN,!1,"warn: %s","数据不能为空"),n=[]);var i=n.filter((function(t){return 1===t.sets.length})).map((function(t){return t.sets[0]})),r=n.filter((function(t){var e=t.sets;return K(i,e)}));return Object(o["H"])(r,n)||Object(c["r"])(c["a"].WARN,!1,"warn: %s","交集中不能出现不存在的集合, 请输入合法数据"),Object(o["h"])({},t,{options:{data:r}})}function pt(t){var e=t.chart,n=t.options,i=n.pointStyle,r=n.setsField,o=n.sizeField,a=Object(c["s"])(e.appendPadding),l=a[0],u=a[1],h=a[2],f=a[3],p={offsetX:f,offsetY:l},d=e.viewBBox,g=d.width,v=d.height,y=q(n,Math.max(g-(u+f),0),Math.max(v-(l+h),0),0);e.data(y);var m=Object(s["g"])(Object(c["c"])({},t,{options:{xField:"x",yField:"y",sizeField:o,seriesField:X,rawFields:[r,o],schema:{shape:"venn",style:i}}})).ext,b=m.geometry;b.customInfo(p);var x=ut(t,y);return"function"===typeof x&&b.color(X,(function(e){var n=y.find((function(t){return t[X]===e})),i=lt(t,y)(e);return x(n,i)})),t}function dt(t){var e=t.chart,n=t.options,r=n.label,a=Object(c["s"])(e.appendPadding),s=a[0],l=a[3],u={offsetX:l,offsetY:s},h=Object(c["d"])(e,"schema");if(r){var f=r.callback,p=Object(i["c"])(r,["callback"]);h.label({fields:["id"],callback:f,cfg:Object(o["h"])({},Object(c["A"])(p),{type:"venn",customLabelInfo:u})})}else h.label(!1);return t}function gt(t){var e=t.chart,n=t.options,i=n.legend,r=n.sizeField;return e.legend(X,i),e.legend(r,!1),t}function vt(t){var e=t.chart;return e.axis(!1),t}function yt(t){var e=t.options,n=t.chart,r=e.interactions;if(r){var o={"legend-active":"venn-legend-active","legend-highlight":"venn-legend-highlight"};Object(a["c"])(Object(c["c"])({},t,{options:{interactions:r.map((function(t){return Object(i["a"])(Object(i["a"])({},t),{type:o[t.type]||t.type})}))}}))}return n.removeInteraction("legend-active"),n.removeInteraction("legend-highlight"),t}function mt(t){return Object(c["f"])(ht,a["k"],ft,pt,dt,Object(a["g"])({}),gt,vt,a["l"],yt,a["a"])(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="venn",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return H},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return mt},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))}})(r["b"])},a632:function(t,e,n){"use strict";var i=50,r=2,o=Math.log(2),a=t.exports,s=n("c94c");function c(t){return 1-Math.abs(t)}function l(t,e){for(var n={},i=0,r=-e;r<=e;r++)i+=t(r/e),n[r]=i;return n}t.exports.getUnifiedMinMax=function(t,e){return a.getUnifiedMinMaxMulti([t],e)},t.exports.getUnifiedMinMaxMulti=function(t,e){e=e||{};var n=!1,o=!1,a=s.isNumber(e.width)?e.width:r,c=s.isNumber(e.size)?e.size:i,l=s.isNumber(e.min)?e.min:(n=!0,s.findMinMulti(t)),u=s.isNumber(e.max)?e.max:(o=!0,s.findMaxMulti(t)),h=u-l,f=h/(c-1);return n&&(l-=2*a*f),o&&(u+=2*a*f),{min:l,max:u}},t.exports.create=function(t,e){if(e=e||{},!t||0===t.length)return[];var n=s.isNumber(e.size)?e.size:i,o=s.isNumber(e.width)?e.width:r,u=a.getUnifiedMinMax(t,{size:n,width:o,min:e.min,max:e.max}),h=u.min,f=u.max,p=f-h,d=p/(n-1);if(0===p)return[{x:h,y:1}];for(var g=[],v=0;v<n;v++)g.push({x:h+v*d,y:0});var y=function(t){return Math.floor((t-h)/d)},m=l(c,o),b=m[o],x=m[o-1]-m[o-2],O=0;t.forEach((function(t){var e=y(t);if(!(e+o<0||e-o>=g.length)){var n=Math.max(e-o,0),i=e,r=Math.min(e+o,g.length-1),a=n-(e-o),c=e+o-r,l=m[-o-1+a]||0,u=m[-o-1+c]||0,h=b/(b-l-u);a>0&&(O+=h*(a-1)*x);var f=Math.max(0,e-o+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<t.length;r++)if(i=r,n+=t[r].y,n>=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/o,Math.pow(2,e)}}},a6d0:function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("8937"),a=n("a0c4"),s=n("c34d"),c=n("62e3"),l=n("f45c"),u=n("2373"),h=n("6bcb"),f=n("23b9"),p={field:"value",as:["x","y","r"],sort:function(t,e){return e.value-t.value}};function d(t,e){e=Object(o["b"])({},p,e);var n,i=e.as;if(!Object(o["C"])(i)||3!==i.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');try{n=Object(f["e"])(e)}catch(d){console.warn(d)}var r=function(t){return u["a"]().size(e.size).padding(e.padding)(h["c"](t).sum((function(t){return t[n]})).sort(e.sort))},a=r(t),s=i[0],c=i[1],l=i[2];return a.each((function(t){t[s]=t.x,t[c]=t.y,t[l]=t.r})),Object(f["d"])(a)}var g=n("9f73");function v(t){var e=t.data,n=t.hierarchyConfig,r=t.rawFields,o=void 0===r?[]:r,a=t.enableDrillDown,s=d(e,Object(i["a"])(Object(i["a"])({},n),{field:"value",as:["x","y","r"]})),l=[];return s.forEach((function(t){var e,r=t.data.name,s=Object(i["a"])({},t);while(s.depth>1)r=(null===(e=s.parent.data)||void 0===e?void 0:e.name)+" / "+r,s=s.parent;if(a&&t.depth>2)return null;var u=Object(c["c"])({},t.data,Object(i["a"])(Object(i["a"])(Object(i["a"])({},Object(c["t"])(t.data,o)),{path:r}),t));u.ext=n,u[g["b"]]={hierarchyConfig:n,rawFields:o,enableDrillDown:a},l.push(u)})),l}function y(t,e,n){var i=Object(l["c"])([t,e]),r=i[0],o=i[1],a=i[2],s=i[3],c=n.width,u=n.height,h=c-(s+o),f=u-(r+a),p=Math.min(h,f),d=(h-p)/2,g=(f-p)/2,v=r+g,y=o+d,m=a+g,b=s+d,x=[v,y,m,b],O=p<0?0:p;return{finalPadding:x,finalSize:O}}var m=["x","y","r","name","value","path","depth"],b={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}};function x(t){var e=t.chart,n=Math.min(e.viewBBox.width,e.viewBBox.height);return Object(c["c"])({options:{size:function(t){var e=t.r;return e*n}}},t)}function O(t){var e=t.options,n=t.chart,i=n.viewBBox,r=e.padding,a=e.appendPadding,s=e.drilldown,c=a;if(null===s||void 0===s?void 0:s.enabled){var u=Object(l["a"])(n.appendPadding,Object(o["s"])(s,["breadCrumb","position"]));c=Object(l["c"])([u,a])}var h=y(r,c,i).finalPadding;return n.padding=h,n.appendPadding=0,t}function j(t){var e=t.chart,n=t.options,r=e.padding,o=e.appendPadding,s=n.color,l=n.colorField,u=n.pointStyle,h=n.hierarchyConfig,f=n.sizeField,p=n.rawFields,d=void 0===p?[]:p,g=n.drilldown,b=v({data:n.data,hierarchyConfig:h,enableDrillDown:null===g||void 0===g?void 0:g.enabled,rawFields:d});e.data(b);var x=e.viewBBox,O=y(r,o,x).finalSize,j=function(t){var e=t.r;return e*O};return f&&(j=function(t){return t[f]*O}),Object(a["a"])(Object(c["c"])({},t,{options:{xField:"x",yField:"y",seriesField:l,sizeField:f,rawFields:Object(i["d"])(m,d),point:{color:s,style:u,shape:"circle",size:j}}})),t}function w(t){return Object(c["f"])(Object(s["g"])({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(t)}function C(t){var e=t.chart,n=t.options,r=n.tooltip;if(!1===r)e.tooltip(!1);else{var a=r;Object(o["s"])(r,"fields")||(a=Object(c["c"])({},{customItems:function(t){return t.map((function(t){var n=Object(o["s"])(e.getOptions(),"scales"),r=Object(o["s"])(n,["name","formatter"],(function(t){return t})),a=Object(o["s"])(n,["value","formatter"],(function(t){return t}));return Object(i["a"])(Object(i["a"])({},t),{name:r(t.data.name),value:a(t.data.value)})}))}},a)),e.tooltip(a)}return t}function M(t){var e=t.chart;return e.axis(!1),t}function S(t){var e=t.drilldown,n=t.interactions,r=void 0===n?[]:n;return(null===e||void 0===e?void 0:e.enabled)?Object(c["c"])({},t,{interactions:Object(i["d"])(r,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:v,enableDrillDown:!0}}])}):t}function A(t){var e=t.chart,n=t.options;return Object(s["c"])({chart:e,options:S(n)}),t}function k(t){return Object(c["f"])(Object(s["f"])("pointStyle"),x,O,s["k"],w,j,M,s["d"],C,A,s["a"],Object(s["b"])())(t)}n("51d4"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle-packing",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return b},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return k},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))}}(r["b"])},a94d:function(t,e,n){"use strict";n("91da"),n("974f"),n("7dfe");var i=n("c1e2");n.d(e,"Event",(function(){return i["a"]}));var r=n("2251");n.d(e,"Base",(function(){return r["a"]}));n("1fb2"),n("1a0e"),n("258a"),n("3cbe"),n("e635"),n("f049"),n("bb0c"),n("c5c4")},a9a0:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("5809"),r=n("917c"),o=[1,0,0,0,1,0,0,0,1];function a(t,e){var n=e?Object(i["d"])(e):Object(i["d"])(o);return r["h"].transform(n,t)}},a9e3:function(t,e,n){"use strict";var i=n("83ab"),r=n("da84"),o=n("e330"),a=n("94ca"),s=n("6eeb"),c=n("1a2d"),l=n("7156"),u=n("3a9b"),h=n("d9b5"),f=n("c04e"),p=n("d039"),d=n("241c").f,g=n("06cf").f,v=n("9bf2").f,y=n("408a"),m=n("58a8").trim,b="Number",x=r[b],O=x.prototype,j=r.TypeError,w=o("".slice),C=o("".charCodeAt),M=function(t){var e=f(t,"number");return"bigint"==typeof e?e:S(e)},S=function(t){var e,n,i,r,o,a,s,c,l=f(t,"number");if(h(l))throw j("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=m(l),e=C(l,0),43===e||45===e){if(n=C(l,2),88===n||120===n)return NaN}else if(48===e){switch(C(l,1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+l}for(o=w(l,2),a=o.length,s=0;s<a;s++)if(c=C(o,s),c<48||c>r)return NaN;return parseInt(o,i)}return+l};if(a(b,!x(" 0o1")||!x("0b1")||x("+0x1"))){for(var A,k=function(t){var e=arguments.length<1?0:x(M(t)),n=this;return u(O,n)&&p((function(){y(n)}))?l(Object(e),n,k):e},F=i?d(x):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),E=0;F.length>E;E++)c(x,A=F[E])&&!c(k,A)&&v(k,A,g(x,A));k.prototype=O,O.constructor=k,s(r,b,k)}},aed4:function(t,e,n){"use strict";var i=n("5809"),r=n("8937"),o=n("cc94"),a=n("62e3"),s=n("c34d"),c=n("b4aa"),l=n("0f20");function u(t){return t.target.depth}function h(t){return t.depth}function f(t,e){return e-1-t.height}function p(t,e){return t.sourceLinks.length?t.depth:e-1}function d(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Object(r["cb"])(t.sourceLinks,u)-1:0}function g(t){return function(){return t}}function v(t,e){for(var n=0,i=0;i<t.length;i++)n+=e(t[i]);return n}function y(t,e){for(var n=-1/0,i=0;i<t.length;i++)n=Math.max(e(t[i]),n);return n}function m(t,e){for(var n=1/0,i=0;i<t.length;i++)n=Math.min(e(t[i]),n);return n}function b(t,e){return O(t.source,e.source)||t.index-e.index}function x(t,e){return O(t.target,e.target)||t.index-e.index}function O(t,e){return t.y0-e.y0}function j(t){return t.value}function w(t){return t.index}function C(t){return t.nodes}function M(t){return t.links}function S(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function A(t){for(var e=t.nodes,n=0,i=e;n<i.length;n++){for(var r=i[n],o=r.y0,a=o,s=0,c=r.sourceLinks;s<c.length;s++){var l=c[s];l.y0=o+l.width/2,o+=l.width}for(var u=0,h=r.targetLinks;u<h.length;u++){l=h[u];l.y1=a+l.width/2,a+=l.width}}}function k(){var t,e,n,i,r=0,o=0,a=1,s=1,c=24,l=8,u=w,h=p,f=C,d=M,k=6;function F(t){var e={nodes:f(t),links:d(t)};return E(e),T(e),P(e),I(e),D(e),A(e),e}function E(t){var e=t.nodes,n=t.links;e.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var r=new Map(e.map((function(t){return[u(t),t]})));if(n.forEach((function(t,e){t.index=e;var n=t.source,i=t.target;"object"!==typeof n&&(n=t.source=S(r,n)),"object"!==typeof i&&(i=t.target=S(r,i)),n.sourceLinks.push(t),i.targetLinks.push(t)})),null!=i)for(var o=0,a=e;o<a.length;o++){var s=a[o],c=s.sourceLinks,l=s.targetLinks;c.sort(i),l.sort(i)}}function T(t){for(var e=t.nodes,n=0,i=e;n<i.length;n++){var r=i[n];r.value=void 0===r.fixedValue?Math.max(v(r.sourceLinks,j),v(r.targetLinks,j)):r.fixedValue}}function P(t){var n=t.nodes,i=n.length,r=new Set(n),o=new Set,a=0;while(r.size){if(r.forEach((function(t){t.depth=a;for(var e=0,n=t.sourceLinks;e<n.length;e++){var i=n[e].target;o.add(i)}})),++a>i)throw new Error("circular link");r=o,o=new Set}if(e)for(var s=Math.max(y(n,(function(t){return t.depth}))+1,0),c=void 0,l=0;l<n.length;l++)c=n[l],c.depth=e.call(null,c,s)}function I(t){var e=t.nodes,n=e.length,i=new Set(e),r=new Set,o=0;while(i.size){if(i.forEach((function(t){t.height=o;for(var e=0,n=t.targetLinks;e<n.length;e++){var i=n[e].source;r.add(i)}})),++o>n)throw new Error("circular link");i=r,r=new Set}}function B(t){for(var e=t.nodes,i=Math.max(y(e,(function(t){return t.depth}))+1,0),o=(a-r-c)/(i-1),s=new Array(i).fill(0).map((function(){return[]})),l=0,u=e;l<u.length;l++){var f=u[l],p=Math.max(0,Math.min(i-1,Math.floor(h.call(null,f,i))));f.layer=p,f.x0=r+p*o,f.x1=f.x0+c,s[p]?s[p].push(f):s[p]=[f]}if(n)for(var d=0,g=s;d<g.length;d++){var v=g[d];v.sort(n)}return s}function L(e){for(var n=m(e,(function(e){return(s-o-(e.length-1)*t)/v(e,j)})),i=0,r=e;i<r.length;i++){for(var a=r[i],c=o,l=0,u=a;l<u.length;l++){var h=u[l];h.y0=c,h.y1=c+h.value*n,c=h.y1+t;for(var f=0,p=h.sourceLinks;f<p.length;f++){var d=p[f];d.width=d.value*n}}c=(s-c+t)/(a.length+1);for(var g=0;g<a.length;++g){h=a[g];h.y0+=c*(g+1),h.y1+=c*(g+1)}X(a)}}function D(e){var n=B(e);t=Math.min(l,(s-o)/(y(n,(function(t){return t.length}))-1)),L(n);for(var i=0;i<k;++i){var r=Math.pow(.99,i),a=Math.max(1-r,(i+1)/k);_(n,r,a),R(n,r,a)}}function R(t,e,i){for(var r=1,o=t.length;r<o;++r){for(var a=t[r],s=0,c=a;s<c.length;s++){for(var l=c[s],u=0,h=0,f=0,p=l.targetLinks;f<p.length;f++){var d=p[f],g=d.source,v=d.value,y=v*(l.layer-g.layer);u+=V(g,l)*y,h+=y}if(h>0){var m=(u/h-l.y0)*e;l.y0+=m,l.y1+=m,G(l)}}void 0===n&&a.sort(O),a.length&&z(a,i)}}function _(t,e,i){for(var r=t.length,o=r-2;o>=0;--o){for(var a=t[o],s=0,c=a;s<c.length;s++){for(var l=c[s],u=0,h=0,f=0,p=l.sourceLinks;f<p.length;f++){var d=p[f],g=d.target,v=d.value,y=v*(g.layer-l.layer);u+=H(l,g)*y,h+=y}if(h>0){var m=(u/h-l.y0)*e;l.y0+=m,l.y1+=m,G(l)}}void 0===n&&a.sort(O),a.length&&z(a,i)}}function z(e,n){var i=e.length>>1,r=e[i];N(e,r.y0-t,i-1,n),Y(e,r.y1+t,i+1,n),N(e,s,e.length-1,n),Y(e,o,0,n)}function Y(e,n,i,r){for(;i<e.length;++i){var o=e[i],a=(n-o.y0)*r;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+t}}function N(e,n,i,r){for(;i>=0;--i){var o=e[i],a=(o.y1-n)*r;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-t}}function G(t){var e=t.sourceLinks,n=t.targetLinks;if(void 0===i){for(var r=0,o=n;r<o.length;r++){var a=o[r].source.sourceLinks;a.sort(x)}for(var s=0,c=e;s<c.length;s++){var l=c[s].target.targetLinks;l.sort(b)}}}function X(t){if(void 0===i)for(var e=0,n=t;e<n.length;e++){var r=n[e],o=r.sourceLinks,a=r.targetLinks;o.sort(x),a.sort(b)}}function V(e,n){for(var i=e.y0-(e.sourceLinks.length-1)*t/2,r=0,o=e.sourceLinks;r<o.length;r++){var a=o[r],s=a.target,c=a.width;if(s===n)break;i+=c+t}for(var l=0,u=n.targetLinks;l<u.length;l++){var h=u[l];s=h.source,c=h.width;if(s===e)break;i-=c}return i}function H(e,n){for(var i=n.y0-(n.targetLinks.length-1)*t/2,r=0,o=n.targetLinks;r<o.length;r++){var a=o[r],s=a.source,c=a.width;if(s===e)break;i+=c+t}for(var l=0,u=e.sourceLinks;l<u.length;l++){var h=u[l];s=h.target,c=h.width;if(s===n)break;i-=c}return i}return F.update=function(t){return A(t),t},F.nodeId=function(t){return arguments.length?(u="function"===typeof t?t:g(t),F):u},F.nodeAlign=function(t){return arguments.length?(h="function"===typeof t?t:g(t),F):h},F.nodeDepth=function(t){return arguments.length?(e=t,F):e},F.nodeSort=function(t){return arguments.length?(n=t,F):n},F.nodeWidth=function(t){return arguments.length?(c=+t,F):c},F.nodePadding=function(e){return arguments.length?(l=t=+e,F):l},F.nodes=function(t){return arguments.length?(f="function"===typeof t?t:g(t),F):f},F.links=function(t){return arguments.length?(d="function"===typeof t?t:g(t),F):d},F.linkSort=function(t){return arguments.length?(i=t,F):i},F.size=function(t){return arguments.length?(r=o=0,a=+t[0],s=+t[1],F):[a-r,s-o]},F.extent=function(t){return arguments.length?(r=+t[0][0],a=+t[1][0],o=+t[0][1],s=+t[1][1],F):[[r,o],[a,s]]},F.iterations=function(t){return arguments.length?(k=+t,F):k},F}var F={left:h,right:f,center:d,justify:p},E={nodeId:function(t){return t.index},nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodeSort:void 0};function T(t){var e=Object(r["Q"])(t)?F[t]:Object(r["I"])(t)?t:null;return e||p}function P(t){return Object(r["b"])({},E,t)}function I(t,e){var n=P(t),i=n.nodeId,r=n.nodeSort,o=n.nodeAlign,a=n.nodeWidth,s=n.nodePadding,c=n.nodeDepth,l=k().nodeSort(r).nodeWidth(a).nodePadding(s).nodeDepth(c).nodeAlign(T(o)).extent([[0,0],[1,1]]).nodeId(i),u=l(e);return u.nodes.forEach((function(t){var e=t.x0,n=t.x1,i=t.y0,r=t.y1;t.x=[e,n,n,e],t.y=[i,i,r,r]})),u.links.forEach((function(t){var e=t.source,n=t.target,i=e.x1,r=n.x0;t.x=[i,i,r,r];var o=t.width/2;t.y=[t.y0+o,t.y0-o,t.y1+o,t.y1-o]})),u}function B(t,e,n){var i=[];return t.forEach((function(t){var r=t[e],o=t[n];i.includes(r)||i.push(r),i.includes(o)||i.push(o)})),i}function L(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 D(t,e,n){if(!Object(r["C"])(t))return[];var i=[],o=B(t,e,n),a=L(t,o,e,n),s={};function c(t){s[t]=1,o.forEach((function(e){if(0!=a[t][e])if(1==s[e])i.push(t+"_"+e);else{if(-1==s[e])return;c(e)}})),s[t]=-1}return o.forEach((function(t){s[t]=0})),o.forEach((function(t){-1!=s[t]&&c(t)})),0!==i.length&&console.warn("sankey data contains circle, "+i.length+" records removed.",i),t.filter((function(t){return i.findIndex((function(i){return i===t[e]+"_"+t[n]}))<0}))}function R(t){return"node-link"===t}function _(t,e,n){return Object(a["p"])(t)?t/n:e}function z(t,e,n){return Object(a["p"])(t)?t/n:e}function Y(t,e,n){var r,o=t.dataType,s=t.data,c=t.sourceField,u=t.targetField,h=t.weightField,f=t.nodeAlign,p=t.nodeSort,d=t.nodePadding,g=t.nodePaddingRatio,v=t.nodeWidth,y=t.nodeWidthRatio,m=t.nodeDepth,b=t.rawFields,x=void 0===b?[]:b;r=R(o)?s:Object(l["c"])(D(s,c,u),c,u,h,x);var O=I({nodeAlign:f,nodePadding:z(d,g,n),nodeWidth:_(v,y,e),nodeSort:p,nodeDepth:m},r),j=O.nodes,w=O.links;return{nodes:j.map((function(t){return Object(i["a"])(Object(i["a"])({},Object(a["t"])(t,Object(i["d"])(["x","y","name"],x))),{isNode:!0})})),edges:w.map((function(t){return Object(i["a"])(Object(i["a"])({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},Object(a["t"])(t,Object(i["d"])(["x","y","value"],x))),{isNode:!1})}))}}var N="x",G="y",X="name",V="nodes",H="edges";function W(t){var e=t.options,n=e.rawFields,o=void 0===n?[]:n;return Object(a["c"])({},{options:{tooltip:{fields:Object(r["ub"])(Object(i["d"])(["name","source","target","value","isNode"],o))},label:{fields:Object(r["ub"])(Object(i["d"])(["x","name"],o))}}},t)}function q(t){var e=t.chart,n=t.options,i=n.color,r=n.nodeStyle,o=n.edgeStyle,a=n.label,s=n.tooltip,l=n.nodeState,u=n.edgeState;e.legend(!1),e.tooltip(s),e.axis(!1),e.coordinate().reflect("y");var h=Y(n,e.width,e.height),f=h.nodes,p=h.edges,d=e.createView({id:H});d.data(p),Object(c["b"])({chart:d,options:{xField:N,yField:G,seriesField:X,edge:{color:i,style:o,shape:"arc"},tooltip:s,state:u}});var g=e.createView({id:V});return g.data(f),Object(c["f"])({chart:g,options:{xField:N,yField:G,seriesField:X,polygon:{color:i,style:r},label:a,tooltip:s,state:l}}),e.interaction("element-active"),e.scale({x:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},y:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},name:{sync:"color",type:"cat"}}),t}function K(t){var e=t.chart,n=t.options,r=n.animation;"boolean"===typeof r?e.animate(r):e.animate(!0);var o=Object(i["d"])(e.views[0].geometries,e.views[1].geometries);return o.forEach((function(t){t.animate(r)})),t}function U(t){var e=t.chart,n=t.options,i=n.nodeDraggable,r="sankey-node-draggable";return i?e.interaction(r):e.removeInteraction(r),t}function Z(t){return Object(a["f"])(W,q,s["c"],U,K,s["k"])(t)}var Q=n("917c"),$=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isDragging=!1,e}return Object(i["b"])(e,t),e.prototype.isNodeElement=function(){var t=Object(r["s"])(this.context,"event.target");if(t){var e=t.get("element");return e&&e.getModel().data.isNode}return!1},e.prototype.getNodeView=function(){return Object(a["e"])(this.context.view,V)},e.prototype.getEdgeView=function(){return Object(a["e"])(this.context.view,H)},e.prototype.getCurrentDatumIdx=function(t){return this.getNodeView().geometries[0].elements.indexOf(t)},e.prototype.start=function(){if(this.isNodeElement()){this.prevPoint={x:Object(r["s"])(this.context,"event.x"),y:Object(r["s"])(this.context,"event.y")};var t=this.context.event.target.get("element"),e=this.getCurrentDatumIdx(t);if(-1===e)return;this.currentElementIdx=e,this.context.isDragging=!0,this.isDragging=!0,this.prevNodeAnimateCfg=this.getNodeView().getOptions().animate,this.prevEdgeAnimateCfg=this.getEdgeView().getOptions().animate,this.getNodeView().animate(!1),this.getEdgeView().animate(!1)}},e.prototype.translate=function(){if(this.isDragging){var t=this.context.view,e={x:Object(r["s"])(this.context,"event.x"),y:Object(r["s"])(this.context,"event.y")},n=e.x-this.prevPoint.x,o=e.y-this.prevPoint.y,a=this.getNodeView(),s=a.geometries[0].elements[this.currentElementIdx];if(s&&s.getModel()){var c=s.getModel().data,l=a.getOptions().data,u=a.getCoordinate(),h={x:n/u.getWidth(),y:o/u.getHeight()},f=Object(i["a"])(Object(i["a"])({},c),{x:c.x.map((function(t){return t+h.x})),y:c.y.map((function(t){return t+h.y}))}),p=Object(i["d"])(l);p[this.currentElementIdx]=f,a.data(p);var d=c.name,g=this.getEdgeView(),v=g.getOptions().data;v.forEach((function(t){t.source===d&&(t.x[0]+=h.x,t.x[1]+=h.x,t.y[0]+=h.y,t.y[1]+=h.y),t.target===d&&(t.x[2]+=h.x,t.x[3]+=h.x,t.y[2]+=h.y,t.y[3]+=h.y)})),g.data(v),this.prevPoint=e,t.render(!0)}}},e.prototype.end=function(){this.isDragging=!1,this.context.isDragging=!1,this.prevPoint=null,this.currentElementIdx=null,this.getNodeView().animate(this.prevNodeAnimateCfg),this.getEdgeView().animate(this.prevEdgeAnimateCfg)},e}(Q["a"]);Object(Q["l"])("sankey-node-drag",$),Object(Q["o"])("sankey-node-draggable",{showEnable:[{trigger:"polygon:mouseenter",action:"cursor:pointer"},{trigger:"polygon:mouseleave",action:"cursor:default"}],start:[{trigger:"polygon:mousedown",action:"sankey-node-drag:start"}],processing:[{trigger:"plot:mousemove",action:"sankey-node-drag:translate"},{isEnable:function(t){return t.isDragging},trigger:"plot:mousemove",action:"cursor:move"}],end:[{trigger:"plot:mouseup",action:"sankey-node-drag:end"}]});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sankey",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return{appendPadding:8,syncViewPadding:!0,nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.3,lineWidth:0},edgeState:{active:{style:{opacity:.8,lineWidth:0}}},label:{formatter:function(t){var e=t.name;return e},callback:function(t){var e=1===t[1];return{style:{fill:"#545454",textAlign:e?"end":"start"},offsetX:e?-8:8}},layout:[{type:"hide-overlap"}]},tooltip:{showTitle:!1,showMarkers:!1,shared:!1,showContent:function(t){return!Object(r["s"])(t,[0,"data","isNode"])},formatter:function(t){var e=t.source,n=t.target,i=t.value;return{name:e+" -> "+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=Y(this.options,this.chart.width,this.chart.height),n=e.nodes,i=e.edges,r=Object(a["e"])(this.chart,V),o=Object(a["e"])(this.chart,H);r.changeData(n),o.changeData(i)},e.prototype.getSchemaAdaptor=function(){return Z},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}})(o["b"])},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,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,a=/^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,o,a=r.exec(n),s=parseFloat(a[1])%360*(Math.PI/180),l=a[2],u=e.getBBox();s>=0&&s<.5*Math.PI?(i={x:u.minX,y:u.minY},o={x:u.maxX,y:u.maxY}):.5*Math.PI<=s&&s<Math.PI?(i={x:u.maxX,y:u.minY},o={x:u.minX,y:u.maxY}):Math.PI<=s&&s<1.5*Math.PI?(i={x:u.maxX,y:u.maxY},o={x:u.minX,y:u.minY}):(i={x:u.minX,y:u.maxY},o={x:u.maxX,y:u.minY});var h=Math.tan(s),f=h*h,p=(o.x-i.x+h*(o.y-i.y))/(f+1)+i.x,d=h*(o.x-i.x+h*(o.y-i.y))/(f+1)+i.y,g=t.createLinearGradient(i.x,i.y,p,d);return c(l,g),g}function u(t,e,n){var i=o.exec(n),r=parseFloat(i[1]),a=parseFloat(i[2]),l=parseFloat(i[3]),u=i[4];if(0===l){var h=u.match(s);return h[h.length-1].split(":")[1]}var f=e.getBBox(),p=f.maxX-f.minX,d=f.maxY-f.minY,g=Math.sqrt(p*p+d*d)/2,v=t.createRadialGradient(f.minX+p*r,f.minY+d*a,0,f.minX+p/2,f.minY+d/2,l*g);return c(u,v),v}function h(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var i,r,o=a.exec(n),s=o[1],c=o[2];function l(){i=t.createPattern(r,s),e.set("pattern",i),e.set("patternSource",n)}switch(s){case"a":s="repeat";break;case"x":s="repeat-x";break;case"y":s="repeat-y";break;case"n":s="no-repeat";break;default:s="no-repeat"}return r=new Image,c.match(/^data:/i)||(r.crossOrigin="Anonymous"),r.src=c,r.complete?l():(r.onload=l,r.src=r.src),i}function f(t,e,n){var r=e.getBBox();if(isNaN(r.x)||isNaN(r.y)||isNaN(r.width)||isNaN(r.height))return n;if(Object(i["k"])(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return l(t,e,n);if("r"===n[0])return u(t,e,n);if("p"===n[0])return h(t,e,n)}return n}return n instanceof CanvasPattern?n:void 0}function p(t){var e=0,n=0,r=0,o=0;return Object(i["g"])(t)?1===t.length?e=n=r=o=t[0]:2===t.length?(e=r=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],o=t[3]):e=n=r=o=t,[e,n,r,o]}},afaa:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return c}));var i=n("8937"),r=n("62e3"),o=n("f7cc"),a={};function s(t,e){a[t]=e}function c(t){return{get:function(e,n){return Object(r["y"])(Object(i["s"])(a[t],e)||Object(i["s"])(a[o["a"].locale],e)||Object(i["s"])(a["en-US"],e)||e,n)}}}},b182:function(t,e,n){"use strict";var i=n("c0e9"),r=n("6855");function o(t,e){if(e){var n=Object(r["invert"])(e);return Object(r["multiplyVec2"])(n,t)}return t}function a(t,e,n){var i=t.getTotalMatrix();if(i){var r=o([e,n,1],i),a=r[0],s=r[1];return[a,s]}return[e,n]}function s(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!Object(r["isAllowCapture"])(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var i=a(t,e,n),o=i[0],s=i[1];if(t.isClipped(o,s))return!1}var c=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=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(),o=r.length,l=o-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=a(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["b"])(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"),o=this.getPixelRatio();r.width=o*e,r.height=o*n,o>1&&i.scale(o,o)},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},b2a0:function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return c}));var i=n("5809"),r=n("8937"),o=n("17f7");function a(t,e,n,a){var s=Object(r["ib"])(t,(function(t,i){var r=i[n],a=t.has(r)?t.get(r):0,s=i[e];return a=Object(o["b"])(s)?a+s:a,t.set(r,a),t}),new Map);return Object(r["W"])(t,(function(t){var r,c=t[e],l=t[n],u=Object(o["b"])(c)?c/s.get(l):0;return Object(i["a"])(Object(i["a"])({},t),(r={},r[a]=u,r))}))}function s(t,e,n,a){var s=Object(r["ib"])(t,(function(t,i){var a=Object(r["ib"])(n,(function(t,e){return""+t+i[e]}),""),s=t.has(a)?t.get(a):0,c=i[e];return s=Object(o["b"])(c)?s+c:s,t.set(a,s),t}),new Map);return Object(r["W"])(t,(function(t){var c,l=t[e],u=Object(r["ib"])(n,(function(e,n){return""+e+t[n]}),""),h=Object(o["b"])(l)?l/s.get(u):0;return Object(i["a"])(Object(i["a"])({},t),(c={},c[a]=h,c))}))}function c(t,e,n,i,r){return r?a(t,e,n,i):t}},b2c8:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("62e3"),r=n("c34d"),o=n("b4aa"),a=n("8582");n.d(e,"b",(function(){return a["b"]}));var s=n("9457"),c=n("edcb");function l(t){var e=t.chart,n=t.options,r=n.data,a=n.color,l=n.lineStyle,u=n.point,h=null===u||void 0===u?void 0:u.state,f=Object(s["a"])(r);e.data(f);var p=Object(i["c"])({},t,{options:{xField:c["c"],yField:c["d"],line:{color:a,style:l},point:u}}),d=Object(i["c"])({},p,{options:{tooltip:!1,state:h}});return Object(o["d"])(p),Object(o["e"])(d),e.axis(!1),e.legend(!1),t}function u(t){return Object(i["f"])(l,a["b"],r["k"],r["l"],r["a"],Object(r["b"])())(t)}},b2cb:function(t,e,n){"use strict";n.d(e,"j",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"g",(function(){return a})),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 o="undefined"!==typeof window&&"undefined"!==typeof window.document;function a(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}},b3de:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return s}));var i=n("cc94"),r=n("62e3"),o="range",a="count",s=Object(r["c"])({},i["b"].getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]})},b44e:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("5809"),r=n("917c"),o=n("cc94"),a=n("62e3"),s=n("5cc9"),c=Object(a["c"])({},o["b"].getDefaultOptions(),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}}),l=(n("c88a"),function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.type="scatter",o.on(r["i"].BEFORE_RENDER,(function(t){var e,n,a=o,c=a.options,l=a.chart;if((null===(e=t.data)||void 0===e?void 0:e.source)===r["b"].FILTER){var u=o.chart.filterData(o.chart.getData());Object(s["b"])({chart:l,options:Object(i["a"])(Object(i["a"])({},c),{data:u})})}(null===(n=t.data)||void 0===n?void 0:n.source)===r["b"].RESET&&Object(s["b"])({chart:l,options:c})})),o}return Object(i["b"])(e,t),e.getDefaultOptions=function(){return c},e.prototype.changeData=function(t){this.updateOption(Object(s["c"])(Object(a["c"])({},this.options,{data:t})));var e=this,n=e.options,i=e.chart;Object(s["b"])({chart:i,options:n}),this.chart.changeData(t)},e.prototype.getSchemaAdaptor=function(){return s["a"]},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(o["b"]))},b4aa:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return u["a"]})),n.d(e,"c",(function(){return p})),n.d(e,"f",(function(){return d["a"]})),n.d(e,"b",(function(){return g})),n.d(e,"g",(function(){return v})),n.d(e,"h",(function(){return y}));var i=n("5809"),r=n("e474"),o=n("62e3"),a=n("58e4");function s(t){var e=t.options,n=e.area,s=e.xField,c=e.yField,l=e.seriesField,u=e.smooth,h=e.tooltip,f=Object(r["a"])(h,[s,c,l]),p=f.fields,d=f.formatter;return n?Object(a["a"])(Object(o["c"])({},t,{options:{type:"area",colorField:l,tooltipFields:p,mapping:Object(i["a"])({shape:u?"smooth":"area",tooltip:d},n)}})):t}var c=n("8937");function l(t){var e=t.options,n=e.line,i=e.stepType,s=e.xField,l=e.yField,u=e.seriesField,h=e.smooth,f=e.connectNulls,p=e.tooltip,d=Object(r["a"])(p,[s,l,u]),g=d.fields,v=d.formatter;return n?Object(a["a"])(Object(o["c"])({},t,{options:{type:"line",colorField:u,tooltipFields:g,mapping:Object(c["h"])({shape:i||(h?"smooth":"line"),tooltip:v},n),args:{connectNulls:f}}})):t}var u=n("a0c4"),h=n("917c");function f(t){var e=t.chart,n=t.options,i=t.ext,r=n.seriesField,a=n.isGroup,s=n.isStack,l=n.marginRatio,u=n.widthRatio,f=n.groupField,p=n.theme,d=[];if(r&&(a&&d.push({type:"dodge",dodgeBy:f||r,marginRatio:l}),s&&d.push({type:"stack",marginRatio:l})),d.length&&(null===i||void 0===i?void 0:i.geometry)){var g=null===i||void 0===i?void 0:i.geometry;g.adjust(d)}return Object(c["K"])(u)||e.theme(Object(o["c"])({},Object(c["O"])(p)?p:Object(h["k"])(p),{columnWidthRatio:u})),t}function p(t){var e=t.options,n=e.xField,s=e.yField,c=e.interval,l=e.seriesField,u=e.tooltip,h=e.minColumnWidth,p=e.maxColumnWidth,d=e.columnBackground,g=e.dodgePadding,v=e.intervalPadding,y=Object(r["a"])(u,[n,s,l]),m=y.fields,b=y.formatter,x=(c?Object(a["a"])(Object(o["c"])({},t,{options:{type:"interval",colorField:l,tooltipFields:m,mapping:Object(i["a"])({tooltip:b},c),args:{dodgePadding:g,intervalPadding:v,minColumnWidth:h,maxColumnWidth:p,background:d}}})):t).ext;return f(Object(i["a"])(Object(i["a"])({},t),{ext:x}))}var d=n("28c6");function g(t){var e=t.options,n=e.edge,s=e.xField,c=e.yField,l=e.seriesField,u=e.tooltip,h=Object(r["a"])(u,[s,c,l]),f=h.fields,p=h.formatter;return n?Object(a["a"])(Object(o["c"])({},t,{options:{type:"edge",colorField:l,tooltipFields:f,mapping:Object(i["a"])({tooltip:p},n)}})):t}function v(t){var e=t.options,n=e.schema,s=e.xField,c=e.yField,l=e.seriesField,u=e.tooltip,h=Object(r["a"])(u,[s,c,l]),f=h.fields,p=h.formatter;return n?Object(a["a"])(Object(o["c"])({},t,{options:{type:"schema",colorField:l,tooltipFields:f,mapping:Object(i["a"])({tooltip:p},n)}})):t}function y(t){var e=t.options,n=e.violin,s=e.xField,c=e.yField,l=e.seriesField,u=e.sizeField,h=e.tooltip,f=Object(r["a"])(h,[s,c,l,u]),p=f.fields,d=f.formatter;return n?Object(a["a"])(Object(o["c"])({},t,{options:{type:"violin",colorField:l,tooltipFields:p,mapping:Object(i["a"])({tooltip:d},n)}})):t}},b5d5:function(t,e){},b6f4:function(t,e,n){"use strict";var i=n("0dd4"),r=n("2388"),o=n("21e5"),a=n("092b");e["a"]=function(){var t=r["a"],e=!1,n=1,s=1,c=[0],l=a["a"],u=a["a"],h=a["a"],f=a["a"],p=a["a"];function d(t){return t.x0=t.y0=0,t.x1=n,t.y1=s,t.eachBefore(g),c=[0],e&&t.eachBefore(i["a"]),t}function g(e){var n=c[e.depth],i=e.x0+n,r=e.y0+n,o=e.x1-n,a=e.y1-n;o<i&&(i=o=(i+o)/2),a<r&&(r=a=(r+a)/2),e.x0=i,e.y0=r,e.x1=o,e.y1=a,e.children&&(n=c[e.depth+1]=l(e)/2,i+=p(e)-n,r+=u(e)-n,o-=h(e)-n,a-=f(e)-n,o<i&&(i=o=(i+o)/2),a<r&&(r=a=(r+a)/2),t(e,i,r,o,a))}return d.round=function(t){return arguments.length?(e=!!t,d):e},d.size=function(t){return arguments.length?(n=+t[0],s=+t[1],d):[n,s]},d.tile=function(e){return arguments.length?(t=Object(o["b"])(e),d):t},d.padding=function(t){return arguments.length?d.paddingInner(t).paddingOuter(t):d.paddingInner()},d.paddingInner=function(t){return arguments.length?(l="function"===typeof t?t:Object(a["b"])(+t),d):l},d.paddingOuter=function(t){return arguments.length?d.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):d.paddingTop()},d.paddingTop=function(t){return arguments.length?(u="function"===typeof t?t:Object(a["b"])(+t),d):u},d.paddingRight=function(t){return arguments.length?(h="function"===typeof t?t:Object(a["b"])(+t),d):h},d.paddingBottom=function(t){return arguments.length?(f="function"===typeof t?t:Object(a["b"])(+t),d):f},d.paddingLeft=function(t){return arguments.length?(p="function"===typeof t?t:Object(a["b"])(+t),d):p},d}},b6fb:function(t,e,n){"use strict";n.r(e),n.d(e,"catmullRomToBezier",(function(){return c})),n.d(e,"fillPath",(function(){return I})),n.d(e,"fillPathByDiff",(function(){return R})),n.d(e,"formatPath",(function(){return Y})),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",o=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),a=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(o,(function(i,r,o){var s=[],c=r.toLowerCase();if(o.replace(a,(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 o=[{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?o[3]={x:+t[0],y:+t[1]}:r-2===i&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[r-2],y:+t[r-1]}:r-4===i?o[3]=o[2]:i||(o[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},l=function(t,e,n,i,r){var o=[];if(null===r&&null===i&&(i=n),t=+t,e=+e,n=+n,i=+i,null!==r){var a=Math.PI/180,s=t+n*Math.cos(-i*a),c=t+n*Math.cos(-r*a),l=e+n*Math.sin(-i*a),u=e+n*Math.sin(-r*a);o=[["M",s,l],["A",n,n,0,+(r-i>180),0,c,u]]}else o=[["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 o},u=function(t){if(t=s(t),!t||!t.length)return[["M",0,0]];var e,n,i=[],r=0,o=0,a=0,u=0,h=0;"M"===t[0][0]&&(r=+t[0][1],o=+t[0][2],a=r,u=o,h++,i[0]=["M",r,o]);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;g<v;g++){if(i.push(p=[]),d=t[g],e=d[0],e!==e.toUpperCase())switch(p[0]=e.toUpperCase(),p[0]){case"A":p[1]=d[1],p[2]=d[2],p[3]=d[3],p[4]=d[4],p[5]=d[5],p[6]=+d[6]+r,p[7]=+d[7]+o;break;case"V":p[1]=+d[1]+o;break;case"H":p[1]=+d[1]+r;break;case"R":n=[r,o].concat(d.slice(1));for(var y=2,m=n.length;y<m;y++)n[y]=+n[y]+r,n[++y]=+n[y]+o;i.pop(),i=i.concat(c(n,f));break;case"O":i.pop(),n=l(r,o,d[1],d[2]),n.push(n[0]),i=i.concat(n);break;case"U":i.pop(),i=i.concat(l(r,o,d[1],d[2],d[3])),p=["U"].concat(i[i.length-1].slice(-2));break;case"M":a=+d[1]+r,u=+d[2]+o;break;default:for(y=1,m=d.length;y<m;y++)p[y]=+d[y]+(y%2?r:o)}else if("R"===e)n=[r,o].concat(d.slice(1)),i.pop(),i=i.concat(c(n,f)),p=["R"].concat(d.slice(-2));else if("O"===e)i.pop(),n=l(r,o,d[1],d[2]),n.push(n[0]),i=i.concat(n);else if("U"===e)i.pop(),i=i.concat(l(r,o,d[1],d[2],d[3])),p=["U"].concat(i[i.length-1].slice(-2));else for(var b=0,x=d.length;b<x;b++)p[b]=d[b];if(e=e.toUpperCase(),"O"!==e)switch(p[0]){case"Z":r=+a,o=+u;break;case"H":r=p[1];break;case"V":o=p[1];break;case"M":a=p[p.length-2],u=p[p.length-1];break;default:r=p[p.length-2],o=p[p.length-1]}}return i},h=function(t,e,n,i){return[t,e,n,i,n,i]},f=function(t,e,n,i,r,o){var a=1/3,s=2/3;return[a*t+s*n,a*e+s*i,a*r+s*n,a*o+s*i,r,o]},p=function(t,e,n,i,r,o,a,s,c,l){n===i&&(n+=1);var u,h,f,d,g,v=120*Math.PI/180,y=Math.PI/180*(+r||0),m=[],b=function(t,e,n){var i=t*Math.cos(n)-e*Math.sin(n),r=t*Math.sin(n)+e*Math.cos(n);return{x:i,y:r}};if(l)h=l[0],f=l[1],d=l[2],g=l[3];else{u=b(t,e,-y),t=u.x,e=u.y,u=b(s,c,-y),s=u.x,c=u.y,t===s&&e===c&&(s+=1,c+=1);var x=(t-s)/2,O=(e-c)/2,j=x*x/(n*n)+O*O/(i*i);j>1&&(j=Math.sqrt(j),n*=j,i*=j);var w=n*n,C=i*i,M=(o===a?-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=t<d?Math.PI-h:h,f=s<d?Math.PI-f:f,h<0&&(h=2*Math.PI+h),f<0&&(f=2*Math.PI+f),a&&h>f&&(h-=2*Math.PI),!a&&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*(a&&f>h?1:-1),s=d+n*Math.cos(f),c=g+i*Math.sin(f),m=p(s,c,n,i,r,0,a,k,F,[f,A,d,g])}S=f-h;var E=Math.cos(h),T=Math.sin(h),P=Math.cos(f),I=Math.sin(f),B=Math.tan(S/4),L=4/3*n*B,D=4/3*i*B,R=[t,e],_=[t+L*T,e-D*E],z=[s+L*I,c-D*P],Y=[s,c];if(_[0]=2*R[0]-_[0],_[1]=2*R[1]-_[1],l)return[_,z,Y].concat(m);m=[_,z,Y].concat(m).join().split(",");for(var N=[],G=0,X=m.length;G<X;G++)N[G]=G%2?b(m[G-1],m[G],y).y:b(m[G],m[G+1],y).x;return N},d=function(t,e){var n,i=u(t),r=e&&u(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],c=[],l="",d="",g=function(t,e,n){var i,r;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(p.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(i=2*e.x-e.bx,r=2*e.y-e.by):(i=e.x,r=e.y),t=["C",i,r].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(f(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(f(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(h(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(h(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(h(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(h(e.x,e.y,e.X,e.Y));break;default:break}return t},v=function(t,e){if(t[e].length>7){t[e].shift();var o=t[e];while(o.length)s[e]="A",r&&(c[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(i.length,r&&r.length||0)}},y=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.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;m<n;m++){i[m]&&(l=i[m][0]),"C"!==l&&(s[m]=l,m&&(d=s[m-1])),i[m]=g(i[m],o,d),"A"!==s[m]&&"C"===l&&(s[m]="C"),v(i,m),r&&(r[m]&&(l=r[m][0]),"C"!==l&&(c[m]=l,m&&(d=c[m-1])),r[m]=g(r[m],a,d),"A"!==c[m]&&"C"===l&&(c[m]="C"),v(r,m)),y(i,r,o,a,m),y(r,i,a,o,m);var b=i[m],x=r&&r[m],O=b.length,j=r&&x.length;o.x=b[O-2],o.y=b[O-1],o.bx=parseFloat(b[O-4])||o.x,o.by=parseFloat(b[O-3])||o.y,a.bx=r&&(parseFloat(x[j-4])||a.x),a.by=r&&(parseFloat(x[j-3])||a.y),a.x=r&&x[j-2],a.y=r&&x[j-1]}return r?[i,r]:i},g=/,?([a-z]),?/gi,v=function(t){return t.join(",").replace(g,"$1")},y=function(t,e,n,i,r){var o=-3*e+9*n-9*i+3*r,a=t*o+6*e-12*n+6*i;return t*a-3*e+3*n},m=function(t,e,n,i,r,o,a,s,c){null===c&&(c=1),c=c>1?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;d<u;d++){var g=l*h[d]+l,v=y(g,t,n,r,a),m=y(g,e,i,o,s),b=v*v+m*m;p+=f[d]*Math.sqrt(b)}return l*p},b=function(t,e,n,i,r,o,a,s){for(var c,l,u,h,f=[],p=[[],[]],d=0;d<2;++d)if(0===d?(l=6*t-12*n+6*r,c=-3*t+9*n-9*r+3*a,u=3*n-3*t):(l=6*e-12*i+6*o,c=-3*e+9*i-9*o+3*s,u=3*i-3*e),Math.abs(c)<1e-12){if(Math.abs(l)<1e-12)continue;h=-u/l,h>0&&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*a,p[1][x]=b*b*b*e+3*b*b*h*i+3*b*h*h*o+h*h*h*s;return p[0][O]=t,p[1][O]=e,p[0][O+1]=a,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,o,a,s){if(!(Math.max(t,n)<Math.min(r,a)||Math.min(t,n)>Math.max(r,a)||Math.max(e,i)<Math.min(o,s)||Math.min(e,i)>Math.max(o,s))){var c=(t*i-e*n)*(r-a)-(t-n)*(r*s-o*a),l=(t*i-e*n)*(o-s)-(e-i)*(r*s-o*a),u=(t-n)*(o-s)-(e-i)*(r-a);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,a).toFixed(2)||p>+Math.max(r,a).toFixed(2)||d<+Math.min(e,i).toFixed(2)||d>+Math.max(e,i).toFixed(2)||d<+Math.min(o,s).toFixed(2)||d>+Math.max(o,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 o=[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]];return o.parsePathArray=v,o},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.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},M=function(t,e,n,r,o,a,s,c){Object(i["C"])(t)||(t=[t,e,n,r,o,a,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,o,a,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*a,g=u*e+3*h*c*i+3*l*c*c*o+p*s,v=t+2*c*(n-t)+f*(r-2*n+t),y=e+2*c*(i-e)+f*(o-2*i+e),m=n+2*c*(r-n)+f*(a-2*r+n),b=i+2*c*(o-i)+f*(s-2*o+i),x=l*t+c*n,O=l*e+c*i,j=l*r+c*a,w=l*o+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 o=m.apply(0,t),a=m.apply(0,e),s=~~(o/8),c=~~(a/8),l=[],u=[],h={},f=n?0:[],p=0;p<s+1;p++){var d=S.apply(0,t.concat(p/s));l.push({x:d.x,y:d.y,t:p/s})}for(p=0;p<c+1;p++){d=S.apply(0,e.concat(p/c));u.push({x:d.x,y:d.y,t:p/c})}for(p=0;p<s;p++)for(var g=0;g<c;g++){var v=l[p],y=l[p+1],b=u[g],O=u[g+1],j=Math.abs(y.x-v.x)<.001?"y":"x",w=Math.abs(O.x-b.x)<.001?"y":"x",A=x(v.x,v.y,y.x,y.y,b.x,b.y,O.x,O.y);if(A){if(h[A.x.toFixed(4)]===A.y.toFixed(4))continue;h[A.x.toFixed(4)]=A.y.toFixed(4);var k=v.t+Math.abs((A[j]-v[j])/(y[j]-v[j]))*(y.t-v.t),F=b.t+Math.abs((A[w]-b[w])/(O[w]-b[w]))*(O.t-b.t);k>=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,o,a,s,c,l,u,h,f;t=d(t),e=d(e);for(var p=n?0:[],g=0,v=t.length;g<v;g++){var y=t[g];if("M"===y[0])i=s=y[1],r=c=y[2];else{"C"===y[0]?(h=[i,r].concat(y.slice(1)),i=h[6],r=h[7]):(h=[i,r,i,r,s,c,s,c],i=s,r=c);for(var m=0,b=e.length;m<b;m++){var x=e[m];if("M"===x[0])o=l=x[1],a=u=x[2];else{"C"===x[0]?(f=[o,a].concat(x.slice(1)),o=f[6],a=f[7]):(f=[o,a,o,a,l,u,l,u],o=l,a=u);var O=A(h,f,n);if(n)p+=O;else{for(var j=0,w=O.length;j<w;j++)O[j].segment1=g,O[j].segment2=m,O[j].bez1=h,O[j].bez2=f;p=p.concat(O)}}}}}return p},F=function(t,e){return k(t,e)};function E(t,e){var n=[],i=[];function r(t,e){if(1===t.length)n.push(t[0]),i.push(t[0]);else{for(var o=[],a=0;a<t.length-1;a++)0===a&&n.push(t[0]),a===t.length-2&&i.push(t[a+1]),o[a]=[(1-e)*t[a][0]+e*t[a+1][0],(1-e)*t[a][1]+e*t[a+1][1]];r(o,e)}}return t.length&&r(t,e),{left:n,right:i.reverse()}}function T(t,e,n){var i=[[t[1],t[2]]];n=n||2;var r=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var o=i,a=1/n,s=0;s<n-1;s++){var c=a/(1-a*s),l=E(o,c);r.push(l.left),o=l.right}r.push(o);var u=r.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=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 P=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(T(t,e,n));else{var r=[].concat(t);"M"===r[0]&&(r[0]="L");for(var o=0;o<=n-1;o++)i.push(r)}return i},I=function(t,e){if(1===t.length)return t;var n=t.length-1,i=e.length-1,r=n/i,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<i-n;a++)t.push(t[0]);return t}for(a=0;a<i;a++){var s=Math.floor(r*a);o[s]=(o[s]||0)+1}var c=o.reduce((function(e,i,r){return r===n?e.concat(t[n]):e.concat(P(t[r],t[r+1],i))}),[]);return c.unshift(t[0]),"Z"!==e[i]&&"z"!==e[i]||c.push("Z"),c},B=function(t,e){if(t.length!==e.length)return!1;var n=!0;return Object(i["j"])(t,(function(t,i){if(t!==e[i])return n=!1,!1})),n};function L(t,e,n){var i=null,r=n;return e<r&&(r=e,i="add"),t<r&&(r=t,i="del"),{type:i,min:r}}var D=function(t,e){var n,i,r=t.length,o=e.length,a=0;if(0===r||0===o)return null;for(var s=[],c=0;c<=r;c++)s[c]=[],s[c][0]={min:c};for(var l=0;l<=o;l++)s[0][l]={min:l};for(c=1;c<=r;c++){n=t[c-1];for(l=1;l<=o;l++){i=e[l-1],a=B(n,i)?0:1;var u=s[c-1][l].min+1,h=s[c][l-1].min+1,f=s[c-1][l-1].min+a;s[c][l]=L(u,h,f)}}return s},R=function(t,e){var n=D(t,e),i=t.length,r=e.length,o=[],a=1,s=1;if(n[i][r].min!==i){for(var c=1;c<=i;c++){var l=n[c][c].min;s=c;for(var u=a;u<=r;u++)n[c][u].min<l&&(l=n[c][u].min,s=u);a=s,n[c][a].type&&o.push({index:c-1,type:n[c][a].type})}for(c=o.length-1;c>=0;c--)a=o[c].index,"add"===o[c].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}i=t.length;var h=r-i;if(i<r)for(c=0;c<h;c++)"z"===t[i-1][0]||"Z"===t[i-1][0]?t.splice(i-2,0,t[i-2]):t.push(t[i-1]),i+=1;return t};function _(t,e,n){for(var i,r=[].concat(t),o=1/(n+1),a=z(e)[0],s=1;s<=n;s++)o*=s,i=Math.floor(t.length*o),0===i?r.unshift([a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]):r.splice(i,0,[a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]);return r}function z(t){var e=[];switch(t[0]){case"M":e.push([t[1],t[2]]);break;case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":e.push([t[1],t[1]]);break;case"V":e.push([t[1],t[1]]);break;default:}return e}var Y=function(t,e){if(t.length<=1)return t;for(var n,i=0;i<e.length;i++)if(t[i][0]!==e[i][0])switch(n=z(t[i]),e[i][0]){case"M":t[i]=["M"].concat(n[0]);break;case"L":t[i]=["L"].concat(n[0]);break;case"A":t[i]=[].concat(e[i]),t[i][6]=n[0][0],t[i][7]=n[0][1];break;case"Q":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=_(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=_(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=_(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}},b727:function(t,e,n){var i=n("0366"),r=n("e330"),o=n("44ad"),a=n("7b0b"),s=n("07fa"),c=n("65f0"),l=r([].push),u=function(t){var e=1==t,n=2==t,r=3==t,u=4==t,h=6==t,f=7==t,p=5==t||h;return function(d,g,v,y){for(var m,b,x=a(d),O=o(x),j=i(g,v),w=s(O),C=0,M=y||c,S=e?M(d,w):n||f?M(d,0):void 0;w>C;C++)if((p||C in O)&&(m=O[C],b=j(m,C,x),t))if(e)S[C]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return C;case 2:l(S,m)}else switch(t){case 4:return!1;case 7:l(S,m)}return h?-1:r||u?u:S}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},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 P}));var i=n("2c79"),r=n("8937"),o=n("31e6"),a=n("060b"),s=n("8ea8"),c=n("e546");function l(t,e){var n=e.x,o=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:o}}),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(a["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,o),Object(s["b"])(b,p,n,o)}var u=n("2f5e"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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,o=e.content,a=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:o,style:a,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}(o["a"]),f=h,p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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"),o=this.get("style"),a=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:a,name:s,x:n,y:i,content:r,style:o,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}(o["a"]),d=p,g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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,o=Object(c["e"])(e,n,i),a=Object(c["e"])(e,n,r),s=r-i>Math.PI?1:0,l=[["M",o.x,o.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,a.x,a.y])}else l.push(["A",n,n,0,s,1,a.x,a.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}(o["a"]),v=g,y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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"),o=Object(c["k"])({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:Object(i["a"])({x:o.x,y:o.y,width:o.width,height:o.height},r)})},e}(o["a"]),m=y,b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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}),o=this.get("src");return Object(i["a"])({x:r.x,y:r.y,img:o,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}(o["a"]),x=b,O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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,o=e.text,a=Object(i["c"])(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:o,style:a,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"),o=Object(r["s"])(this.get("line"),"length",0),a=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(a){if(p){if(n+l<=a.minX){var v=a.minX-(n+l);Object(s["c"])(p,p.attr("x")+v,p.attr("y"))}if(n+u>=a.maxX){v=n+u-a.maxX;Object(s["c"])(p,p.attr("x")-v,p.attr("y"))}}if("upward"===e&&i+h<=a.minY||"upward"!==e&&i+f>=a.maxY){var y=void 0,m=void 0;"upward"===e&&i+h<=a.minY?(y="top",m=1):(y="bottom",m=-1),d.attr("textBaseline",y),g&&g.attr("path",[["M",0,0],["L",0,o*m]]),Object(s["c"])(p,p.attr("x"),(o+2)*m)}}},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",{}),o=Object(r["s"])(this.get("text"),"style",{}),a=this.get("direction"),s=t?Object(r["s"])(this.get("line"),"length",0):0,c="upward"===a?-1:1;return{point:Object(i["a"])({x:0,y:0},e),line:Object(i["a"])({path:[["M",0,0],["L",0,s*c]]},n),text:Object(i["a"])({x:0,y:(s+2)*c,text:Object(r["s"])(this.get("text"),"content",""),textBaseline:"upward"===a?"bottom":"top"},o)}},e}(o["a"]),j=O,w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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),o=this.get("points");if(o.length){var a=Object(c["j"])(o),s=[];s.push(["M",o[0].x,a.minY-n]),o.forEach((function(t){s.push(["L",t.x,t.y])})),s.push(["L",o[o.length-1].x,o[o.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:(a.minX+a.maxX)/2,y:a.minY-n},this.get("text"));l(t,u)}},e}(o["a"]),C=w,M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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"),o=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});Object(r["j"])(this.get("shapes"),(function(t,n){var i=t.get("type"),a=Object(r["e"])(t.attr());e.adjustShapeAttrs(a),e.addShape(o,{id:e.getElementId("shape-"+i+"-"+n),capture:!1,type:i,attrs:a})}));var a=Object(c["k"])({start:n,end:i});o.setClip({type:"rect",attrs:{x:a.minX,y:a.minY,width:a.width,height:a.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(o["a"]),S=M,A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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}(o["a"]),k=A,F=n("7c8a"),E=n("75ed"),T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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:'<div class="g2-html-annotation"></div>',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;Object(r["F"])(n)?t.appendChild(n):Object(r["Q"])(n)&&t.appendChild(Object(F["b"])(n)),this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,i=e.y,r=this.get("alignX"),o=this.get("alignY"),a=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"===o?u.y-=Math.round(l/2):"bottom"===o&&(u.y-=Math.round(l)),a&&(u.x+=a),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"]),P=T},bb0c:function(t,e,n){"use strict";function i(t,e){var n=[],i=t[0],r=t[1],o=t[2],a=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*a+d*l,n[1]=f*r+p*s+d*u,n[2]=f*o+p*c+d*h,n[3]=g*i+v*a+y*l,n[4]=g*r+v*s+y*u,n[5]=g*o+v*c+y*h,n[6]=m*i+b*a+x*l,n[7]=m*r+b*s+x*u,n[8]=m*o+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 o(t){var e=[],n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],c=t[6],l=t[7],u=t[8],h=u*a-s*l,f=-u*o+s*c,p=l*o-a*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*a)*d,e[3]=f*d,e[4]=(u*n-r*c)*d,e[5]=(-s*n+r*o)*d,e[6]=p*d,e[7]=(-l*n+i*c)*d,e[8]=(a*n-i*o)*d,e):null}n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}))},bb0f:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("5809"),r=n("cc94"),o=n("b2a0"),a=n("1d73"),s=n("62e3"),c=Object(s["c"])({},r["b"].getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},isStack:!0,line:{},legend:{position:"top-left"}}),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return Object(i["b"])(e,t),e.getDefaultOptions=function(){return c},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.isPercent,i=e.xField,r=e.yField,s=this,c=s.chart,l=s.options;Object(a["b"])({chart:c,options:l}),this.chart.changeData(Object(o["a"])(t,r,i,r,n))},e.prototype.getSchemaAdaptor=function(){return a["a"]},e}(r["b"])},bb31:function(t,e){},bb3f:function(t,e,n){},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 o=function(t){var e=(0,i.getSensor)(t);(0,i.removeSensor)(e)};e.clear=o;var a="1.0.1";e.ver=a},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 o})),n.d(e,"LIST_ITEM_CLASS",(function(){return a})),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",o="g2-tooltip-list",a="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"},bbd5:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("5809"),r=n("cc94"),o=n("b2a0"),a=n("0cc4"),s=n("62e3"),c=Object(s["c"])({},r["b"].getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},interactions:[{type:"active-region"}]}),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="column",e}return Object(i["b"])(e,t),e.getDefaultOptions=function(){return c},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.yField,i=e.xField,r=e.isPercent,s=this,c=s.chart,l=s.options;Object(a["b"])({chart:c,options:l}),this.chart.changeData(Object(o["a"])(t,n,i,n,r))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a["a"]},e}(r["b"])},bbdf:function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return h}));var i=n("8937"),r=n("62e3"),o=n("c34d"),a=n("b4aa"),s=n("31f7"),c=n("0770");function l(t){var e=t.chart,n=t.options,o=n.percent,l=n.progressStyle,u=n.color,h=n.barWidthRatio;e.data(Object(c["a"])(o));var f=Object(r["c"])({},t,{options:{xField:"1",yField:"percent",seriesField:"type",isStack:!0,widthRatio:h,interval:{style:l,color:Object(i["Q"])(u)?[u,s["a"][1]]:u},args:{zIndexReversed:!0}}});return Object(a["c"])(f),e.tooltip(!1),e.axis(!1),e.legend(!1),t}function u(t){var e=t.chart;return e.coordinate("rect").transpose(),t}function h(t){return Object(r["f"])(l,Object(o["g"])({}),u,o["a"],o["k"],Object(o["b"])())(t)}},bc88:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return c}));var i=n("b2cb"),r=n("96de");function o(t,e,n){var r=1;if(Object(i["h"])(t)&&(r=t.split("\n").length),r>1){var o=a(e,n);return e*r+o*(r-1)}return e}function a(t,e){return e?e-t:.14*t}function s(t,e){var n=Object(r["a"])(),o=0;if(Object(i["e"])(t)||""===t)return o;if(n.save(),n.font=e,Object(i["h"])(t)&&t.includes("\n")){var a=t.split("\n");Object(i["a"])(a,(function(t){var e=n.measureText(t).width;o<e&&(o=e)}))}else o=n.measureText(t).width;return n.restore(),o}function c(t){var e=t.fontSize,n=t.fontFamily,i=t.fontWeight,r=t.fontStyle,o=t.fontVariant;return[r,o,i,e+"px",n].join(" ").trim()}},be4e:function(t,e){},bfb1:function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return c}));var i=n("68de");n.d(e,"Shape",(function(){return i}));var r=n("6855");for(var o in r)["default","Canvas","Group","Shape","version"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);var a=n("c029");n.d(e,"Canvas",(function(){return a["a"]}));var s=n("e73e");n.d(e,"Group",(function(){return s["a"]}));var c="0.5.6"},c029:function(t,e,n){"use strict";var i=n("4767"),r=n("6855"),o=n("22f9"),a=n("7349"),s=n("00f9"),c=n("73ec"),l=n("68de"),u=n("e73e"),h=n("8937"),f=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,p=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,d=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function g(t){var e=t.match(d);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),Object(h["j"])(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}function v(t,e){var n,i,r=f.exec(t),o=Object(h["eb"])(Object(h["sb"])(parseFloat(r[1])),2*Math.PI),a=r[2];o>=0&&o<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=o&&o<Math.PI?(n={x:1,y:0},i={x:0,y:1}):Math.PI<=o&&o<1.5*Math.PI?(n={x:1,y:1},i={x:0,y:0}):(n={x:0,y:1},i={x:1,y:0});var s=Math.tan(o),c=s*s,l=(i.x-n.x+s*(i.y-n.y))/(c+1)+n.x,u=s*(i.x-n.x+s*(i.y-n.y))/(c+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",l),e.setAttribute("y2",u),e.innerHTML=g(a)}function y(t,e){var n=p.exec(t),i=parseFloat(n[1]),r=parseFloat(n[2]),o=parseFloat(n[3]),a=n[4];e.setAttribute("cx",i),e.setAttribute("cy",r),e.setAttribute("r",o),e.innerHTML=g(a)}var m=function(){function t(t){this.cfg={};var e=null,n=Object(h["vb"])("gradient_");return"l"===t.toLowerCase()[0]?(e=Object(c["b"])("linearGradient"),v(t,e)):(e=Object(c["b"])("radialGradient"),y(t,e)),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),b=m,x={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},O={x:"-40%",y:"-40%",width:"200%",height:"200%"},j=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=Object(c["b"])("filter");return Object(h["j"])(O,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=Object(h["vb"])("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return Object(h["j"])(Object.keys(i),(function(t){if(i[t]!==e[t])return n=!1,!1})),n},t.prototype.update=function(t,e){var n=this.cfg;return n[x[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n='<feDropShadow\n dx="'+(t.dx||0)+'"\n dy="'+(t.dy||0)+'"\n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';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 o=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===o?this._setDefaultPath(e,r):(this.cfg=o,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),o=r[2];n.setAttribute("href",o);var a=new Image;function s(){e.setAttribute("width",""+a.width),e.setAttribute("height",""+a.height)}return o.match(/^data:/i)||(a.crossOrigin="Anonymous"),a.src=o,a.complete?s():(a.onload=s,a.src=a.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),E=F,T=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;r<n.length;r++)if(n[r].match(t,e)){i=n[r].id;break}return i},t.prototype.findById=function(t){for(var e=this.children,n=null,i=0;i<e.length;i++)if(e[i].id===t){n=e[i];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var i=new M(t,e);return this.defaultArrow[n]=i,this.el.appendChild(i.el),this.add(i),i.id},t.prototype.addGradient=function(t){var e=new b(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new M(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new w(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new E(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new A(t);return this.el.appendChild(e.el),this.add(e),e.id},t}(),P=T,I=function(t){function e(e){return t.call(this,Object(i["a"])(Object(i["a"])({},e),{autoDraw:!0,renderer:"svg"}))||this}return Object(i["b"])(e,t),e.prototype.getShapeBase=function(){return l},e.prototype.getGroupBase=function(){return u["a"]},e.prototype.getShape=function(t,e,n){var i=n.target||n.srcElement;if(!o["a"][i.tagName]){var r=i.parentNode;while(r&&!o["a"][r.tagName])r=r.parentNode;i=r}return this.find((function(t){return t.get("el")===i}))},e.prototype.createDom=function(){var t=Object(c["b"])("svg"),e=new P(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var i=this.get("children");i&&i.length&&Object(c["d"])(this,(function(t,e){return i.indexOf(t)-i.indexOf(e)?1:0}))}else if("clear"===t){if(n){n.innerHTML="";var r=e.el;r.innerHTML="",n.appendChild(r)}}else"matrix"===t?Object(s["c"])(this):"clip"===t?Object(s["a"])(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();Object(s["a"])(this,t),e.length&&Object(a["a"])(t,e)},e}(r["AbstractCanvas"]);e["a"]=I},c0e9:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a}));
  105. /*! *****************************************************************************
  106. Copyright (c) Microsoft Corporation.
  107. Permission to use, copy, modify, and/or distribute this software for any
  108. purpose with or without fee is hereby granted.
  109. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  110. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  111. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  112. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  113. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  114. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  115. PERFORMANCE OF THIS SOFTWARE.
  116. ***************************************************************************** */
  117. 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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};function a(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}Object.create;Object.create},c1e2: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},c2ad:function(t,e,n){"use strict";var i=n("c0e9"),r=n("6855"),o=n("4799"),a=n("f5e5"),s=n("8937"),c=n("7326"),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.onCanvasChange=function(t){Object(a["h"])(this,t)},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(a["a"])(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];Object(s["j"])(t,(function(t){var i=t.cfg.cacheCanvasBBox;i&&t.cfg.isInView&&(e.push(i.minX,i.maxX),n.push(i.minY,i.maxY))}));var i=null;if(e.length){var r=Object(s["bb"])(e),o=Object(s["Y"])(e),a=Object(s["bb"])(n),l=Object(s["Y"])(n);i={minX:r,minY:a,x:r,y:a,maxX:o,maxY:l,width:o-r,height:l-a};var u=this.cfg.canvas;if(u){var h=u.getViewRange();this.set("isInView",Object(c["f"])(i,h))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",i)},e.prototype.draw=function(t,e){var n=this.cfg.children,i=!e||this.cfg.refresh;n.length&&i&&(t.save(),Object(a["a"])(t,this),this._applyClip(t,this.getClip()),Object(a["d"])(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(r["AbstractGroup"]);e["a"]=l},c34d:function(t,e,n){"use strict";n.d(e,"d",(function(){return c})),n.d(e,"l",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return h})),n.d(e,"k",(function(){return f})),n.d(e,"j",(function(){return p})),n.d(e,"i",(function(){return d})),n.d(e,"h",(function(){return g})),n.d(e,"g",(function(){return v})),n.d(e,"b",(function(){return y})),n.d(e,"e",(function(){return m}));var i=n("5809"),r=n("8937"),o=n("9ff2"),a=n("62e3"),s=n("87d0");function c(t){var e=t.chart,n=t.options,i=n.legend,r=n.colorField,o=n.seriesField;return!1===i?e.legend(!1):(r||o)&&e.legend(r||o,i),t}function l(t){var e=t.chart,n=t.options,i=n.tooltip;return void 0!==i&&e.tooltip(i),t}function u(t){var e=t.chart,n=t.options,i=n.interactions;return Object(r["j"])(i,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})})),t}function h(t){var e=t.chart,n=t.options,i=n.animation;return"boolean"===typeof i?e.animate(i):e.animate(!0),Object(r["j"])(e.geometries,(function(t){t.animate(i)})),t}function f(t){var e=t.chart,n=t.options,i=n.theme;return i&&e.theme(i),t}function p(t){var e=t.chart,n=t.options,i=n.state;return i&&Object(r["j"])(e.geometries,(function(t){t.state(i)})),t}function d(t){var e=t.chart,n=t.options,i=n.slider;return e.option("slider",i),t}function g(t){var e=t.chart,n=t.options,i=n.scrollbar;return e.option("scrollbar",i),t}function v(t,e){return function(n){var i=n.chart,s=n.options,c={};return Object(r["j"])(t,(function(t,e){c[e]=Object(a["t"])(t,o["a"])})),c=Object(a["c"])({},e,s.meta,c),i.scale(c),n}}function y(t){return function(e){var n=e.chart,o=e.options,a=n.getController("annotation");return Object(r["j"])(Object(i["d"])(o.annotations||[],t||[]),(function(t){a.annotation(t)})),e}}function m(t){var e=t.chart,n=t.options,i=n.yAxis,o=n.limitInPlot,s=o;return Object(r["O"])(i)&&Object(r["K"])(o)&&(s=!!Object.values(Object(a["t"])(i,["min","max","minLimit","maxLimit"])).some((function(t){return!Object(r["K"])(t)}))),e.limitInPlot=s,t}n.d(e,"f",(function(){return s["a"]}))},c3a5:function(t,e){},c3ec:function(t,e,n){"use strict";var i;n.d(e,"f",(function(){return r})),n.d(e,"e",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return c})),n.d(e,"g",(function(){return l})),n.d(e,"b",(function(){return u}));var r="range",o="type",a="percent",s="#f0f0f0",c="indicator-view",l="range-view",u={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:(i={},i[r]={sync:"v"},i[a]={sync:"v",tickCount:5,tickInterval:.2},i),animation:!1}},c441:function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("8937"),a=n("c34d"),s=n("9ff2"),c=n("62e3"),l=n("3cf2"),u=n("58e4");function h(t,e){var n=e.data,r=e.coordinate,a=e.interactions,l=e.annotations,h=e.animation,f=e.tooltip,p=e.axes,d=e.meta,g=e.geometries;n&&t.data(n);var v={};p&&Object(o["j"])(p,(function(t,e){v[e]=Object(c["t"])(t,s["a"])})),v=Object(c["c"])({},d,v),t.scale(v),r&&t.coordinate(r),!1===p?t.axis(!1):Object(o["j"])(p,(function(e,n){t.axis(n,e)})),Object(o["j"])(g,(function(e){var n=Object(u["a"])({chart:t,options:e}).ext,i=e.adjust;i&&n.geometry.adjust(i)})),Object(o["j"])(a,(function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg)})),Object(o["j"])(l,(function(e){t.annotation()[e.type](Object(i["a"])({},e))})),"boolean"===typeof h?t.animate(!1):(t.animate(!0),Object(o["j"])(t.geometries,(function(t){t.animate(h)}))),f?(t.interaction("tooltip"),t.tooltip(f)):!1===f&&t.removeInteraction("tooltip")}function f(t){var e=t.chart,n=t.options,r=n.type,a=n.data,s=n.fields,c=n.eachView,u=Object(o["gb"])(n,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return e.data(a),e.facet(r,Object(i["a"])(Object(i["a"])({},u),{fields:s,eachView:function(t,e){var n=c(t,e);if(n.geometries)h(t,n);else{var i=n,r=i.options;r.tooltip&&t.interaction("tooltip"),Object(l["a"])(i.type,t,r)}}})),t}function p(t){var e=t.chart,n=t.options,r=n.axes,a=n.meta,l=n.tooltip,u=n.coordinate,h=n.theme,f=n.legend,p=n.interactions,d=n.annotations,g={};return r&&Object(o["j"])(r,(function(t,e){g[e]=Object(c["t"])(t,s["a"])})),g=Object(c["c"])({},a,g),e.scale(g),e.coordinate(u),r?Object(o["j"])(r,(function(t,n){e.axis(n,t)})):e.axis(!1),l?(e.interaction("tooltip"),e.tooltip(l)):!1===l&&e.removeInteraction("tooltip"),e.legend(f),h&&e.theme(h),Object(o["j"])(p,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg)})),Object(o["j"])(d,(function(t){e.annotation()[t.type](Object(i["a"])({},t))})),t}function d(t){return Object(c["f"])(a["k"],f,p)(t)}var g={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(i["b"])(e,t),e.getDefaultOptions=function(){return g},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return d}})(r["b"])},c5c4: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}},c771:function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return c})),n.d(e,"Circle",(function(){return h})),n.d(e,"Line",(function(){return p}));var i=n("2c79"),r=n("8937"),o=n("31e6"),a=n("2f5e"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:a["a"].lineColor}}}})},e.prototype.getLineType=function(){var t=this.get("line")||this.get("defaultCfg").line;return t.type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),i=e.slice(0).reverse(),r=this.getGridPath(i,!0),o=this.get("closed");return o?n=n.concat(r):(r[0][0]="L",n=n.concat(r),n.push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,n=this.get("line"),i=this.get("items"),o=this.get("alternateColor"),a=null;Object(r["j"])(i,(function(s,c){var l=s.id||c;if(n){var u=e.getPathStyle();u=Object(r["I"])(u)?u(s,c,i):u;var h=e.getElementId("line-"+l),f=e.getGridPath(s.points);e.addShape(t,{type:"path",name:"grid-line",id:h,attrs:Object(r["db"])({path:f},u)})}if(o&&c>0){var p=e.getElementId("region-"+l),d=c%2===0;if(Object(r["Q"])(o))d&&e.drawAlternateRegion(p,t,a.points,s.points,o);else{var g=d?o[1]:o[0];e.drawAlternateRegion(p,t,a.points,s.points,g)}}a=s}))},e.prototype.drawAlternateRegion=function(t,e,n,i,r){var o=this.getAlternatePath(n,i);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:o,fill:r}})},e}(o["a"]),c=s;function l(t,e,n,i){var r=n-t,o=i-e;return Math.sqrt(r*r+o*o)}var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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"),o=[];if(t.length)if("circle"===n){var a=this.get("center"),s=t[0],c=l(a.x,a.y,s.x,s.y),u=e?0:1;i?(o.push(["M",a.x,a.y-c]),o.push(["A",c,c,0,0,u,a.x,a.y+c]),o.push(["A",c,c,0,0,u,a.x,a.y-c]),o.push(["Z"])):Object(r["j"])(t,(function(t,e){0===e?o.push(["M",t.x,t.y]):o.push(["A",c,c,0,0,u,t.x,t.y])}))}else Object(r["j"])(t,(function(t,e){0===e?o.push(["M",t.x,t.y]):o.push(["L",t.x,t.y])})),i&&o.push(["Z"]);return o},e}(c),h=u,f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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},c88a:function(t,e,n){"use strict";var i=n("917c");Object(i["o"])("drag-move",{start:[{trigger:"plot:mousedown",action:"scale-translate:start"}],processing:[{trigger:"plot:mousemove",action:"scale-translate:translate",throttle:{wait:100,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseup",action:"scale-translate:end"}]})},c947:function(t,e,n){"use strict";function i(t,e){return t.parent===e.parent?1:2}function r(t){return t.reduce(o,0)/t.length}function o(t,e){return t+e.x}function a(t){return 1+t.reduce(s,0)}function s(t,e){return Math.max(t,e.y)}function c(t){var e;while(e=t.children)t=e[0];return t}function l(t){var e;while(e=t.children)t=e[e.length-1];return t}n.r(e),n.d(e,"cluster",(function(){return u})),n.d(e,"hierarchy",(function(){return h["c"]})),n.d(e,"pack",(function(){return f["a"]})),n.d(e,"packSiblings",(function(){return p["a"]})),n.d(e,"packEnclose",(function(){return d["a"]})),n.d(e,"partition",(function(){return g["a"]})),n.d(e,"stratify",(function(){return O})),n.d(e,"tree",(function(){return E})),n.d(e,"treemap",(function(){return T["a"]})),n.d(e,"treemapBinary",(function(){return P})),n.d(e,"treemapDice",(function(){return I["a"]})),n.d(e,"treemapSlice",(function(){return B["a"]})),n.d(e,"treemapSliceDice",(function(){return L})),n.d(e,"treemapSquarify",(function(){return D["a"]})),n.d(e,"treemapResquarify",(function(){return R}));var u=function(){var t=i,e=1,n=1,o=!1;function s(i){var s,u=0;i.eachAfter((function(e){var n=e.children;n?(e.x=r(n),e.y=a(n)):(e.x=s?u+=t(e,s):0,e.y=0,s=e)}));var h=c(i),f=l(i),p=h.x-t(h,f)/2,d=f.x+t(f,h)/2;return i.eachAfter(o?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-p)/(d-p)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return s.separation=function(e){return arguments.length?(t=e,s):t},s.size=function(t){return arguments.length?(o=!1,e=+t[0],n=+t[1],s):o?null:[e,n]},s.nodeSize=function(t){return arguments.length?(o=!0,e=+t[0],n=+t[1],s):o?[e,n]:null},s},h=n("6bcb"),f=n("2373"),p=n("5be2"),d=n("eccb"),g=n("f8d7"),v=n("21e5"),y={depth:-1},m={};function b(t){return t.id}function x(t){return t.parentId}var O=function(){var t=b,e=x;function n(n){var i,r,o,a,s,c,l,u=Array.from(n),f=u.length,p=new Map;for(r=0;r<f;++r)i=u[r],s=u[r]=new h["a"](i),null!=(c=t(i,r,n))&&(c+="")&&(l=s.id=c,p.set(l,p.has(l)?m:s)),null!=(c=e(i,r,n))&&(c+="")&&(s.parent=c);for(r=0;r<f;++r)if(s=u[r],c=s.parent){if(a=p.get(c),!a)throw new Error("missing: "+c);if(a===m)throw new Error("ambiguous: "+c);a.children?a.children.push(s):a.children=[s],s.parent=a}else{if(o)throw new Error("multiple roots");o=s}if(!o)throw new Error("no root");if(o.parent=y,o.eachBefore((function(t){t.depth=t.parent.depth+1,--f})).eachBefore(h["b"]),o.parent=null,f>0)throw new Error("cycle");return o}return n.id=function(e){return arguments.length?(t=Object(v["b"])(e),n):t},n.parentId=function(t){return arguments.length?(e=Object(v["b"])(t),n):e},n};function j(t,e){return t.parent===e.parent?1:2}function w(t){var e=t.children;return e?e[0]:t.t}function C(t){var e=t.children;return e?e[e.length-1]:t.t}function M(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 S(t){var e,n=0,i=0,r=t.children,o=r.length;while(--o>=0)e=r[o],e.z+=n,e.m+=n,n+=e.s+(i+=e.c)}function A(t,e,n){return t.a.parent===e.parent?t.a:n}function k(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 F(t){var e,n,i,r,o,a=new k(t,0),s=[a];while(e=s.pop())if(i=e._.children)for(e.children=new Array(o=i.length),r=o-1;r>=0;--r)s.push(n=e.children[r]=new k(i[r],r)),n.parent=e;return(a.parent=new k(null,0)).children=[a],a}k.prototype=Object.create(h["a"].prototype);var E=function(){var t=j,e=1,n=1,i=null;function r(r){var s=F(r);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(a),i)r.eachBefore(c);else{var l=r,u=r,h=r;r.eachBefore((function(t){t.x<l.x&&(l=t),t.x>u.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 o(e){var n=e.children,i=e.parent.children,r=e.i?i[e.i-1]:null;if(n){S(e);var o=(n[0].z+n[n.length-1].z)/2;r?(e.z=r.z+t(e._,r._),e.m=e.z-o):e.z=o}else r&&(e.z=r.z+t(e._,r._));e.parent.A=s(e,r,e.parent.A||i[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(e,n,i){if(n){var r,o=e,a=e,s=n,c=o.parent.children[0],l=o.m,u=a.m,h=s.m,f=c.m;while(s=C(s),o=w(o),s&&o)c=w(c),a=C(a),a.a=e,r=s.z+h-o.z-l+t(s._,o._),r>0&&(M(A(s,e,i),e,r),l+=r,u+=r),h+=s.m,l+=o.m,f+=c.m,u+=a.m;s&&!C(a)&&(a.t=s,a.m+=h-u),o&&!w(c)&&(c.t=o,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},T=n("b6f4"),P=function(t,e,n,i,r){var o,a,s=t.children,c=s.length,l=new Array(c+1);for(l[0]=a=o=0;o<c;++o)l[o+1]=a+=s[o].value;function u(t,e,n,i,r,o,a){if(t>=e-1){var c=s[t];return c.x0=i,c.y0=r,c.x1=o,void(c.y1=a)}var h=l[t],f=n/2+h,p=t+1,d=e-1;while(p<d){var g=p+d>>>1;l[g]<f?p=g+1:d=g}f-l[p-1]<l[p]-f&&t+1<p&&--p;var v=l[p]-h,y=n-v;if(o-i>a-r){var m=n?(i*y+o*v)/n:o;u(t,p,v,i,r,m,a),u(p,e,y,m,r,o,a)}else{var b=n?(r*y+a*v)/n:a;u(t,p,v,i,r,o,b),u(p,e,y,i,b,o,a)}}u(0,c,t.value,e,n,i,r)},I=n("14f3"),B=n("ec83"),L=function(t,e,n,i,r){(1&t.depth?B["a"]:I["a"])(t,e,n,i,r)},D=n("2388"),R=function t(e){function n(t,n,i,r,o){if((a=t._squarify)&&a.ratio===e){var a,s,c,l,u,h=-1,f=a.length,p=t.value;while(++h<f){for(s=a[h],c=s.children,l=s.value=0,u=c.length;l<u;++l)s.value+=c[l].value;s.dice?Object(I["a"])(s,n,i,r,p?i+=(o-i)*s.value/p:o):Object(B["a"])(s,n,i,p?n+=(r-n)*s.value/p:r,o),p-=s.value}}else t._squarify=a=Object(D["c"])(e,t,n,i,r,o),a.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(D["b"])},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;n<t.length;n++)e=Math.min(e,t[n]);return e},t.exports.findMax=function(t){if(0===t.length)return-1/0;for(var e=t[0],n=1;n<t.length;n++)e=Math.max(e,t[n]);return e},t.exports.findMinMulti=function(t){for(var e=i.findMin(t[0]),n=1;n<t.length;n++)e=Math.min(e,i.findMin(t[n]));return e},t.exports.findMaxMulti=function(t){for(var e=i.findMax(t[0]),n=1;n<t.length;n++)e=Math.max(e,i.findMax(t[n]));return e},t.exports.inside=function(t,e,n){return t<=n&&n<=e}},c94d:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return o}));var i=1e-6,r="undefined"!==typeof Float32Array?Float32Array:Array,o=Math.random;Math.PI;Math.hypot||(Math.hypot=function(){var t=0,e=arguments.length;while(e--)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},caa0:function(t,e,n){"use strict";var i,r,o=n("5809"),a=n("cc94"),s=n("62e3"),c=n("8937"),l=n("c34d"),u=n("b2a0"),h=n("e0e9");(function(t){t["Left"]="Left",t["Right"]="Right"})(i||(i={})),function(t){t["Line"]="line",t["Column"]="column"}(r||(r={}));var f="left-axes-view",p="right-axes-view",d={nice:!0,label:{autoHide:!0,autoRotate:!1}},g=Object(o["a"])(Object(o["a"])({},d),{position:"left"}),v=Object(o["a"])(Object(o["a"])({},d),{position:"right",grid:null});function y(t){return Object(c["s"])(t,"geometry")===r.Line}function m(t){return Object(c["s"])(t,"geometry")===r.Column}function b(t,e,n){return m(n)?Object(s["c"])({},{geometry:r.Column,label:n.label&&n.isRange?{content:function(t){var n;return null===(n=t[e])||void 0===n?void 0:n.join("-")}}:void 0},n):Object(o["a"])({geometry:r.Line},n)}function x(t,e){var n=t[0],i=t[1];if(Object(c["C"])(e)){var r=e[0],o=e[1];return[r,o]}var a=Object(c["s"])(e,n),s=Object(c["s"])(e,i);return[a,s]}function O(t,e){return e===i.Left?!1!==t&&Object(s["c"])({},g,t):e===i.Right?!1!==t&&Object(s["c"])({},v,t):t}var j=n("917c");function w(t){var e=t.view,n=t.geometryOption,i=t.yField,r=t.legend,o=Object(c["s"])(r,"marker"),a=Object(s["d"])(e,y(n)?"line":"interval");if(!n.seriesField){var l=Object(c["s"])(e,"options.scales."+i+".alias")||i,u=a.getAttribute("color"),h=e.getTheme().defaultColor;u&&(h=j["h"].getMappingValue(u,l,Object(c["s"])(u,["values",0],h)));var f=(Object(c["I"])(o)?o:!Object(c["G"])(o)&&Object(s["c"])({},{style:{stroke:h,fill:h}},o))||(y(n)?{symbol:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},style:{lineWidth:2,r:6,stroke:h}}:{symbol:"square",style:{fill:h}});return[{value:i,name:l,marker:f,isGeometry:!0,viewId:e.id}]}var p=a.getGroupAttributes();return Object(c["ib"])(p,(function(t,n){var i=j["h"].getLegendItems(e,a,n,e.getTheme(),o);return t.concat(i)}),[])}var C=n("b4aa"),M=n("0cc4");function S(t){var e=t.options,n=t.chart,i=e.geometryOption,r=i.isStack,a=i.color,l=i.seriesField,u=i.groupField,h=i.isGroup,f=["xField","yField"];if(y(i)){Object(C["d"])(Object(s["c"])({},t,{options:Object(o["a"])(Object(o["a"])(Object(o["a"])({},Object(s["t"])(e,f)),i),{line:{color:i.color,style:i.lineStyle}})})),Object(C["e"])(Object(s["c"])({},t,{options:Object(o["a"])(Object(o["a"])(Object(o["a"])({},Object(s["t"])(e,f)),i),{point:i.point&&Object(o["a"])({color:a,shape:"circle"},i.point)})}));var p=[];h&&p.push({type:"dodge",dodgeBy:u||l,customOffset:0}),r&&p.push({type:"stack"}),p.length&&Object(c["j"])(n.geometries,(function(t){t.adjust(p)}))}return m(i)&&Object(M["a"])(Object(s["c"])({},t,{options:Object(o["a"])(Object(o["a"])(Object(o["a"])({},Object(s["t"])(e,f)),i),{widthRatio:i.columnWidthRatio,interval:Object(o["a"])(Object(o["a"])({},Object(s["t"])(i,["color"])),{style:i.columnStyle})})})),t}var A=function(t,e){var n=e[0],i=e[1],r=t.getOptions().data,o=t.getXScale(),a=Object(c["mb"])(r);if(o&&a){var l=!0,u=Object(c["yb"])(r,o.field),h=l?u:u.reverse(),f=Object(c["mb"])(h),p=Math.floor(n*(f-1)),d=Math.floor(i*(f-1));t.filter(o.field,(function(t){var e=h.indexOf(t);return!(e>-1)||Object(s["o"])(e,p,d)})),t.render(!0)}};function k(t){var e,n=t.options,i=n.geometryOptions,o=void 0===i?[]:i,a=n.xField,l=n.yField,u=Object(c["k"])(o,(function(t){var e=t.geometry;return e===r.Line||void 0===e}));return Object(s["c"])({},{options:{geometryOptions:[],meta:(e={},e[a]={type:"cat",sync:!0,range:u?[0,1]:void 0},e),tooltip:{showMarkers:u,showCrosshairs:u,shared:!0,crosshairs:{type:"x"}},interactions:u?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},t,{options:{yAxis:x(l,n.yAxis),geometryOptions:[b(a,l[0],o[0]),b(a,l[1],o[1])],annotations:x(l,n.annotations)}})}function F(t){var e,n,i=t.chart,r=t.options,o=r.geometryOptions,a={line:0,column:1},s=[{type:null===(e=o[0])||void 0===e?void 0:e.geometry,id:f},{type:null===(n=o[1])||void 0===n?void 0:n.geometry,id:p}];return s.sort((function(t,e){return-a[t.type]+a[e.type]})).forEach((function(t){return i.createView({id:t.id})})),t}function E(t){var e=t.chart,n=t.options,i=n.xField,r=n.yField,a=n.geometryOptions,s=n.data,c=n.tooltip,l=[Object(o["a"])(Object(o["a"])({},a[0]),{id:f,data:s[0],yField:r[0]}),Object(o["a"])(Object(o["a"])({},a[1]),{id:p,data:s[1],yField:r[1]})];return l.forEach((function(t){var n=t.id,r=t.data,a=t.yField,s=m(t)&&t.isPercent,l=s?Object(u["c"])(r,a,i,a):r,f=Object(h["a"])(e,n).data(l),p=s?Object(o["a"])({formatter:function(e){return{name:e[t.seriesField]||a,value:(100*Number(e[a])).toFixed(2)+"%"}}},c):c;S({chart:f,options:{xField:i,yField:a,tooltip:p,geometryOption:t}})})),t}function T(t){var e,n=t.chart,i=t.options,r=i.geometryOptions,o=(null===(e=n.getTheme())||void 0===e?void 0:e.colors10)||[],a=0;return n.once("beforepaint",(function(){Object(c["j"])(r,(function(t,e){var i=Object(h["a"])(n,0===e?f:p);if(!t.color){var r=i.getGroupScales(),s=Object(c["s"])(r,[0,"values","length"],1),l=o.slice(a,a+s).concat(0===e?[]:o);i.geometries.forEach((function(e){t.seriesField?e.color(t.seriesField,l):e.color(l[0])})),a+=s}})),n.render(!0)})),t}function P(t){var e,n,i=t.chart,r=t.options,o=r.xAxis,a=r.yAxis,c=r.xField,u=r.yField;return Object(l["g"])((e={},e[c]=o,e[u[0]]=a[0],e))(Object(s["c"])({},t,{chart:Object(h["a"])(i,f)})),Object(l["g"])((n={},n[c]=o,n[u[1]]=a[1],n))(Object(s["c"])({},t,{chart:Object(h["a"])(i,p)})),t}function I(t){var e=t.chart,n=t.options,r=Object(h["a"])(e,f),o=Object(h["a"])(e,p),a=n.xField,s=n.yField,c=n.xAxis,l=n.yAxis;return e.axis(a,!1),e.axis(s[0],!1),e.axis(s[1],!1),r.axis(a,c),r.axis(s[0],O(l[0],i.Left)),o.axis(a,!1),o.axis(s[1],O(l[1],i.Right)),t}function B(t){var e=t.chart,n=t.options,i=n.tooltip,r=Object(h["a"])(e,f),o=Object(h["a"])(e,p);return e.tooltip(i),r.tooltip({shared:!0}),o.tooltip({shared:!0}),t}function L(t){var e=t.chart;return Object(l["c"])(Object(s["c"])({},t,{chart:Object(h["a"])(e,f)})),Object(l["c"])(Object(s["c"])({},t,{chart:Object(h["a"])(e,p)})),t}function D(t){var e=t.chart,n=t.options,i=n.annotations,r=Object(c["s"])(i,[0]),o=Object(c["s"])(i,[1]);return Object(l["b"])(r)(Object(s["c"])({},t,{chart:Object(h["a"])(e,f),options:{annotations:r}})),Object(l["b"])(o)(Object(s["c"])({},t,{chart:Object(h["a"])(e,p),options:{annotations:o}})),t}function R(t){var e=t.chart;return Object(l["k"])(Object(s["c"])({},t,{chart:Object(h["a"])(e,f)})),Object(l["k"])(Object(s["c"])({},t,{chart:Object(h["a"])(e,p)})),Object(l["k"])(t),t}function _(t){var e=t.chart;return Object(l["a"])(Object(s["c"])({},t,{chart:Object(h["a"])(e,f)})),Object(l["a"])(Object(s["c"])({},t,{chart:Object(h["a"])(e,p)})),t}function z(t){var e=t.chart,n=t.options,i=n.yAxis;return Object(l["e"])(Object(s["c"])({},t,{chart:Object(h["a"])(e,f),options:{yAxis:i[0]}})),Object(l["e"])(Object(s["c"])({},t,{chart:Object(h["a"])(e,p),options:{yAxis:i[1]}})),t}function Y(t){var e=t.chart,n=t.options,i=n.legend,r=n.geometryOptions,o=n.yField,a=n.data,l=Object(h["a"])(e,f),u=Object(h["a"])(e,p);if(!1===i)e.legend(!1);else if(Object(c["O"])(i)&&!0===i.custom)e.legend(i);else{var d=Object(c["s"])(r,[0,"legend"],i),g=Object(c["s"])(r,[1,"legend"],i);e.once("beforepaint",(function(){var t=a[0].length?w({view:l,geometryOption:r[0],yField:o[0],legend:d}):[],n=a[1].length?w({view:u,geometryOption:r[1],yField:o[1],legend:g}):[];e.legend(Object(s["c"])({},i,{custom:!0,items:t.concat(n)}))})),r[0].seriesField&&l.legend(r[0].seriesField,d),r[1].seriesField&&u.legend(r[1].seriesField,g),e.on("legend-item:click",(function(t){var n=Object(c["s"])(t,"gEvent.delegateObject",{});if(n&&n.item){var i=n.item,r=i.value,a=i.isGeometry,s=i.viewId;if(a){var l=Object(c["n"])(o,(function(t){return t===r}));if(l>-1){var u=Object(c["s"])(Object(h["a"])(e,s),"geometries");Object(c["j"])(u,(function(t){t.changeVisible(!n.item.unchecked)}))}}else{var f=Object(c["s"])(e.getController("legend"),"option.items",[]);Object(c["j"])(e.views,(function(t){var n=t.getGroupScales();Object(c["j"])(n,(function(e){e.values&&e.values.indexOf(r)>-1&&t.filter(e.field,(function(t){var e=Object(c["m"])(f,(function(e){return e.value===t}));return!e.unchecked}))})),e.render(!0)}))}}}))}return t}function N(t){var e=t.chart,n=t.options,i=n.slider,r=Object(h["a"])(e,f),o=Object(h["a"])(e,p);return i&&(r.option("slider",i),r.on("slider:valuechanged",(function(t){var e=t.event,n=e.value,i=e.originValue;Object(c["H"])(n,i)||A(o,n)})),e.once("afterpaint",(function(){if(!Object(c["D"])(i)){var t=i.start,e=i.end;(t||e)&&A(o,[t,e])}}))),t}function G(t){return Object(s["f"])(k,F,R,E,P,I,z,B,L,D,_,T,Y,N)(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dual-axes",e}Object(o["b"])(e,t),e.prototype.getDefaultOptions=function(){return Object(s["c"])({},t.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},e.prototype.getSchemaAdaptor=function(){return G}})(a["b"])},cbbe:function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("62e3"),a=n("c34d"),s=n("b4aa");function c(t){var e=t.chart,n=t.options,r=n.data,a=n.lineStyle,c=n.color,l=n.point,u=n.area;e.data(r);var h=Object(o["c"])({},t,{options:{line:{style:a,color:c},point:l?Object(i["a"])({color:c},l):l,area:u?Object(i["a"])({color:c},u):u,label:void 0}}),f=Object(o["c"])({},h,{options:{tooltip:!1}}),p=(null===l||void 0===l?void 0:l.state)||n.state,d=Object(o["c"])({},h,{options:{tooltip:!1,state:p}});return Object(s["d"])(h),Object(s["e"])(d),Object(s["a"])(f),t}function l(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,s=n.xField,c=n.yField;return Object(o["f"])(Object(a["g"])((e={},e[s]=i,e[c]=r,e)))(t)}function u(t){var e=t.chart,n=t.options,i=n.radius,r=n.startAngle,o=n.endAngle;return e.coordinate("polar",{radius:i,startAngle:r,endAngle:o}),t}function h(t){var e=t.chart,n=t.options,i=n.xField,r=n.xAxis,o=n.yField,a=n.yAxis;return e.axis(i,r),e.axis(o,a),t}function f(t){var e=t.chart,n=t.options,r=n.label,a=n.yField,s=Object(o["d"])(e,"line");if(r){var c=r.callback,l=Object(i["c"])(r,["callback"]);s.label({fields:[a],callback:c,cfg:Object(o["A"])(l)})}else s.label(!1);return t}function p(t){return Object(o["f"])(c,l,a["k"],u,h,a["d"],a["l"],f,a["c"],a["a"],Object(a["b"])())(t)}var d=n("917c"),g=n("8937"),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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(),r=n.shared,o=n.title,a=t.prototype.getTooltipItems.call(this,e);if(a.length>0){var s=this.view.geometries[0],c=s.dataArray,l=a[0].name,u=[];return c.forEach((function(t){t.forEach((function(t){var e=d["h"].getTooltipItems(t,s),n=e[0];if(!r&&n&&n.name===l){var a=Object(g["K"])(o)?l:o;u.push(Object(i["a"])(Object(i["a"])({},n),{name:n.title,title:a}))}else if(r&&n){a=Object(g["K"])(o)?n.name||l:o;u.push(Object(i["a"])(Object(i["a"])({},n),{name:n.title,title:a}))}}))})),u}return[]},e}(d["g"]);Object(d["m"])("radar-tooltip",v);var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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}(d["a"]);Object(d["l"])("radar-tooltip",y),Object(d["o"])("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(i["b"])(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return Object(o["c"])({},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 p}})(r["b"])},cc94:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return h}));var i=n("5809"),r=n("917c"),o=n("8937"),a=n("7fa2"),s=n("bb7a"),c=n("62e3"),l="data-chart-source-type",u=["padding","appendPadding","renderer","pixelRatio","syncViewPadding","supportCSSTransform","limitInPlot"],h=function(t){function e(e,n){var i=t.call(this)||this;return i.container="string"===typeof e?document.getElementById(e):e,i.options=Object(c["c"])({},i.getDefaultOptions(),n),i.createG2(),i.bindEvents(),i}return Object(i["b"])(e,t),e.getDefaultOptions=function(){return{renderer:"canvas",xAxis:{nice:!0,label:{autoRotate:!1,autoHide:{type:"equidistance",cfg:{minGap:6}}}},yAxis:{nice:!0,label:{autoHide:!0,autoRotate:!1}},animation:!0}},e.prototype.createG2=function(){var t=this.options,e=t.width,n=t.height,o=t.defaultInteractions;this.chart=new r["c"](Object(i["a"])(Object(i["a"])(Object(i["a"])(Object(i["a"])({container:this.container,autoFit:!1},this.getChartSize(e,n)),{localRefresh:!1}),Object(c["t"])(this.options,u)),{defaultInteractions:o})),this.container.setAttribute(l,"G2Plot")},e.prototype.getChartSize=function(t,e){var n=Object(c["k"])(this.container);return{width:t||n.width||400,height:e||n.height||400}},e.prototype.bindEvents=function(){var t=this;this.chart&&this.chart.on("*",(function(e){(null===e||void 0===e?void 0:e.type)&&t.emit(e.type,e)}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){this.chart.clear(),this.chart.options={data:[],animate:!0},this.chart.views=[],this.execAdaptor(),this.chart.render(),this.bindSizeSensor()},e.prototype.update=function(t){this.updateOption(t),this.render()},e.prototype.updateOption=function(t){this.options=Object(c["c"])({},this.options,t)},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var i=Object(c["i"])(this.chart);Object(o["j"])(i,(function(i){e(i.getData())&&i.setState(t,n)}))},e.prototype.getStates=function(){var t=Object(c["i"])(this.chart),e=[];return Object(o["j"])(t,(function(t){var n=t.getData(),i=t.getStates();Object(o["j"])(i,(function(i){e.push({data:n,state:i,geometry:t.geometry,element:t})}))})),e},e.prototype.changeData=function(t){this.update({data:t})},e.prototype.changeSize=function(t,e){this.chart.changeSize(t,e)},e.prototype.addAnnotations=function(t){var e=Object(i["d"])(t),n=this.chart.getController("annotation"),r=n.getComponents().map((function(t){return t.extra}));n.clear(!0);for(var o=function(t){var i=r[t],o=e.findIndex((function(t){return t.id&&t.id===i.id}));-1!==o&&(i=Object(c["c"])({},i,e[o]),e.splice(o,1)),n.annotation(i)},a=0;a<r.length;a++)o(a);e.forEach((function(t){return n.annotation(t)})),this.chart.render(!0)},e.prototype.removeAnnotations=function(t){var e=this.chart.getController("annotation"),n=e.getComponents().map((function(t){return t.extra}));e.clear(!0);for(var i=function(i){var r=n[i];t.find((function(t){return t.id&&t.id===r.id}))||e.annotation(r)},r=0;r<n.length;r++)i(r);this.chart.render(!0)},e.prototype.destroy=function(){this.unbindSizeSensor(),this.chart.destroy(),this.off(),this.container.removeAttribute(l)},e.prototype.execAdaptor=function(){var t=this.getSchemaAdaptor(),e=this.options,n=e.padding,i=e.appendPadding;this.chart.padding=n,this.chart.appendPadding=i,t({chart:this.chart,options:this.options})},e.prototype.triggerResize=function(){this.chart.forceFit()},e.prototype.bindSizeSensor=function(){var t=this;if(!this.unbind){var e=this.options.autoFit,n=void 0===e||e;n&&(this.unbind=Object(s["bind"])(this.container,(function(){var e=Object(c["k"])(t.container),n=e.width,i=e.height;n===t.chart.width&&i===t.chart.height||t.triggerResize()})))}},e.prototype.unbindSizeSensor=function(){this.unbind&&(this.unbind(),this.unbind=void 0)},e}(a["a"])},ccaf:function(t,e,n){"use strict";var i=n("00c6"),r=n("8937"),o=n("e897"),a=n("b2cb"),s=n("6928"),c=n("2e60"),l=o["a"].transform,u="matrix",h=["zIndex","capture","visible","type"],f=["repeat"],p=":",d="*";function g(t){for(var e=[],n=0;n<t.length;n++)Object(r["C"])(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}function v(t,e){var n={},i=e.attrs;for(var r in t)n[r]=i[r];return n}function y(t,e){var n={},i=e.attr();return Object(r["j"])(t,(function(t,e){-1!==f.indexOf(e)||Object(r["H"])(i[e],t)||(n[e]=t)})),n}function m(t,e){if(e.onFrame)return t;var n=e.startTime,i=e.delay,o=e.duration,a=Object.prototype.hasOwnProperty;return Object(r["j"])(t,(function(t){n+i<t.startTime+t.delay+t.duration&&o>t.delay&&Object(r["j"])(e.toAttrs,(function(e,n){a.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["a"])(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;n<arguments.length;n++)e[n]=arguments[n];var i=e[0],o=e[1];if(!i)return this.attrs;if(Object(r["O"])(i)){for(var a in i)this.setAttr(a,i[a]);return this.afterAttrsChange(i),this}return 2===e.length?(this.setAttr(i,o),this.afterAttrsChange((t={},t[i]=o,t)),this):this.attrs[i]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(Object(a["j"])(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr(u,this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr(u)},e.prototype.setMatrix=function(t){this.attr(u,t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?Object(s["b"])(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?Object(s["b"])(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?Object(s["c"])(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=Object(s["a"])(e);if(n)return Object(s["c"])(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var i=this.getShapeBase(),o=Object(r["wb"])(t.type),a=i[o];a&&(n=new a({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};Object(r["j"])(e,(function(t,i){Object(r["C"])(e[i])?n[i]=g(e[i]):n[i]=e[i]}));var i=this.constructor,o=new i({attrs:n});return Object(r["j"])(h,(function(e){o.set(e,t.get(e))})),o},e.prototype.destroy=function(){var e=this.destroyed;e||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var i=this.get("animations")||[];n.timer||n.initTimer();var o,a,s,c,l,u=t[0],h=t[1],f=t[2],p=void 0===f?"easeLinear":f,d=t[3],g=void 0===d?r["fb"]:d,b=t[4],x=void 0===b?0:b;Object(r["I"])(u)?(o=u,u={}):Object(r["O"])(u)&&u.onFrame&&(o=u.onFrame,a=u.repeat),Object(r["O"])(h)?(l=h,h=l.duration,p=l.easing||"easeLinear",x=l.delay||0,a=l.repeat||a||!1,g=l.callback||r["fb"],s=l.pauseCallback||r["fb"],c=l.resumeCallback||r["fb"]):(Object(r["M"])(g)&&(x=g,g=null),Object(r["I"])(p)?(g=p,p="easeLinear"):p=p||"easeLinear");var O=y(u,this),j={fromAttrs:v(O,this),toAttrs:O,duration:h,easing:p,repeat:a,callback:g,pauseCallback:s,resumeCallback:c,delay:x,startTime:n.getTime(),id:Object(r["vb"])(),onFrame:o,pathFormatted:!1};i.length>0?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,o=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var s=function(t){var s=o[t],l=s.get("name");if(l){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&Object(a["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;l<o.length;l++){var u=s(l);if("break"===u)break}},e.prototype.emitDelegateEvent=function(t,e,n){var i=this.getEvents(),r=e+p+n.type;(i[r]||i[d])&&(n.name=r,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(r,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),i=l(n,[["t",t,e]]);return this.setMatrix(i),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,i=this.attr("y")||0;return this.translate(t-n,e-i),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),i=l(n,[["s",t,e||t]]);return this.setMatrix(i),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=l(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,i=e.y,r=this.getMatrix(),o=l(r,[["t",-n,-i],["r",t],["t",n,i]]);return this.setMatrix(o),this},e.prototype.rotateAtPoint=function(t,e,n){var i=this.getMatrix(),r=l(i,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(r),this},e}(c["a"]);e["a"]=b},cf85:function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("8937"),a=n("62e3"),s=n("c34d"),c=n("b4aa");function l(t){var e=t.chart,n=t.options,i=n.data,r=n.sectorStyle,o=n.color;return e.data(i),Object(a["f"])(c["c"])(Object(a["c"])({},t,{options:{marginRatio:1,interval:{style:r,color:o}}})),t}function u(t){var e=t.chart,n=t.options,r=n.label,s=n.xField,c=Object(a["d"])(e,"interval");if(!1===r)c.label(!1);else if(Object(o["O"])(r)){var l=r.callback,u=r.fields,h=Object(i["c"])(r,["callback","fields"]),f=h.offset,p=h.layout;(void 0===f||f>=0)&&(p=p?Object(o["C"])(p)?p:[p]:[],h.layout=Object(o["l"])(p,(function(t){return"limit-in-shape"!==t.type})),h.layout.length||delete h.layout),c.label({fields:u||[s],callback:l,cfg:Object(a["A"])(h)})}else Object(a["r"])(a["a"].WARN,null===r,"the label option must be an Object."),c.label({fields:[s]});return t}function h(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 f(t){var e=t.chart,n=t.options,i=n.radius,r=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:i,innerRadius:r,startAngle:o,endAngle:a}}),t}function p(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,c=n.yField;return Object(a["f"])(Object(s["g"])((e={},e[o]=i,e[c]=r,e)))(t)}function d(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return i?e.axis(o,i):e.axis(o,!1),r?e.axis(a,r):e.axis(a,!1),t}function g(t){Object(a["f"])(Object(s["f"])("sectorStyle"),l,p,u,f,d,h,s["l"],s["c"],s["a"],s["k"],Object(s["b"])(),s["j"])(t)}var v=Object(a["c"])({},r["b"].getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right"},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return v},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 g}})(r["b"])},d177:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"d",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}));var i=0,r=.5,o=.5,a=.05},d36e:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("5809"),r=n("cc94"),o=n("9457"),a=n("9a08"),s=n("8937"),c={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return""+Object(s["s"])(e,[0,"data","y"],0)},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},l={appendPadding:2,tooltip:Object(i["a"])({},c),animation:{}},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-column",e}return Object(i["b"])(e,t),e.getDefaultOptions=function(){return l},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,i=e.options;Object(a["b"])({chart:n,options:i}),n.changeData(Object(o["a"])(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a["a"]},e}(r["b"])},d390:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("5809"),r=n("cc94"),o=n("9457"),a=n("8582"),s=n("edcb"),c={appendPadding:2,tooltip:Object(i["a"])({},s["b"]),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-area",e}return Object(i["b"])(e,t),e.getDefaultOptions=function(){return c},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,i=e.options;Object(a["b"])({chart:n,options:i}),n.changeData(Object(o["a"])(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a["a"]},e}(r["b"])},d4c6:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=new Map;function r(t,e){i.set(t,e)}function o(t){return i.get(t)}var a=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.width,o=e.height;return{x:n,y:i,width:r,height:o}},s=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.r;return{x:n-r,y:i-r,width:2*r,height:2*r}},c=n("1183");function l(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function u(t,e){var n=t.get("startArrowShape"),i=t.get("endArrowShape"),r=null,o=null;return n&&(r=n.getCanvasBBox(),e=l(e,r)),i&&(o=i.getCanvasBBox(),e=l(e,o)),e}var h=function(t){for(var e=t.attr(),n=e.points,i=[],r=[],o=0;o<n.length;o++){var a=n[o];i.push(a[0]),r.push(a[1])}var s=c["f"].getBBoxByArray(i,r),l=s.x,h=s.y,f=s.width,p=s.height,d={minX:l,minY:h,maxX:l+f,maxY:h+p};return d=u(t,d),{x:d.minX,y:d.minY,width:d.maxX-d.minX,height:d.maxY-d.minY}},f=function(t){for(var e=t.attr(),n=e.points,i=[],r=[],o=0;o<n.length;o++){var a=n[o];i.push(a[0]),r.push(a[1])}return c["f"].getBBoxByArray(i,r)},p=n("bc88"),d=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.text,o=e.fontSize,a=e.lineHeight,s=e.font;s||(s=Object(p["a"])(e));var c,l=Object(p["c"])(r,s);if(l){var u=e.textAlign,h=e.textBaseline,f=Object(p["b"])(r,o,a),d={x:n,y:i-f};u&&("end"===u||"right"===u?d.x-=l:"center"===u&&(d.x-=l/2)),h&&("top"===h?d.y+=f:"middle"===h&&(d.y+=f/2)),c={x:d.x,y:d.y,width:l,height:f}}else c={x:n,y:i,width:0,height:0};return c},g=n("2ef1"),v=n("8937");function y(t,e){for(var n=[],i=[],r=[],o=0;o<t.length;o++){var a=t[o],s=a.currentPoint,l=a.params,u=a.prePoint,h=void 0;switch(a.command){case"Q":h=c["e"].box(u[0],u[1],l[1],l[2],l[3],l[4]);break;case"C":h=c["b"].box(u[0],u[1],l[1],l[2],l[3],l[4],l[5],l[6]);break;case"A":var f=a.arcParams;h=c["a"].box(f.cx,f.cy,f.rx,f.ry,f.xRotation,f.startAngle,f.endAngle);break;default:n.push(s[0]),i.push(s[1]);break}h&&(a.box=h,n.push(h.x,h.x+h.width),i.push(h.y,h.y+h.height)),e&&("L"===a.command||"M"===a.command)&&a.prePoint&&a.nextPoint&&r.push(a)}n=n.filter((function(t){return!Number.isNaN(t)})),i=i.filter((function(t){return!Number.isNaN(t)}));var p=Object(v["bb"])(n),d=Object(v["bb"])(i),g=Object(v["Y"])(n),y=Object(v["Y"])(i);if(0===r.length)return{x:p,y:d,width:g-p,height:y-d};for(o=0;o<r.length;o++){a=r[o],s=a.currentPoint;var b=void 0;s[0]===p?(b=m(a,e),p-=b.xExtra):s[0]===g&&(b=m(a,e),g+=b.xExtra),s[1]===d?(b=m(a,e),d-=b.yExtra):s[1]===y&&(b=m(a,e),y+=b.yExtra)}return{x:p,y:d,width:g-p,height:y-d}}function m(t,e){var n=t.prePoint,i=t.currentPoint,r=t.nextPoint,o=Math.pow(i[0]-n[0],2)+Math.pow(i[1]-n[1],2),a=Math.pow(i[0]-r[0],2)+Math.pow(i[1]-r[1],2),s=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2),c=Math.acos((o+a-s)/(2*Math.sqrt(o)*Math.sqrt(a)));if(!c||0===Math.sin(c)||Object(v["N"])(c,0))return{xExtra:0,yExtra:0};var l=Math.abs(Math.atan2(r[1]-i[1],r[0]-i[0])),u=Math.abs(Math.atan2(r[0]-i[0],r[1]-i[1]));l=l>Math.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 b=function(t){var e=t.attr(),n=e.path,i=e.stroke,r=i?e.lineWidth:0,o=t.get("segments")||Object(g["e"])(n),a=y(o,r),s=a.x,c=a.y,l=a.width,h=a.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}},x=function(t){var e=t.attr(),n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=Math.min(n,r),s=Math.max(n,r),c=Math.min(i,o),l=Math.max(i,o),h={minX:a,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}},O=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.rx,o=e.ry;return{x:n-r,y:i-o,width:2*r,height:2*o}};r("rect",a),r("image",a),r("circle",s),r("marker",s),r("polyline",h),r("polygon",f),r("text",d),r("path",b),r("line",x),r("ellipse",O)},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 o=n("ff7f");n.d(e,"Crosshair",(function(){return o}));var a=n("c771");n.d(e,"Grid",(function(){return a}));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("a94d");function r(t,e,n){var r=new i["Event"](e,n);r.target=t,r.propagationPath.push(t),t.emitDelegation(e,r);var o=t.getParent();while(o)o.emitDelegation(e,r),r.propagationPath.push(o),o=o.getParent()}},d81d:function(t,e,n){"use strict";var i=n("23e7"),r=n("b727").map,o=n("1dde"),a=o("map");i({target:"Array",proto:!0,forced:!a},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},d91c:function(t,e,n){"use strict";n("e2bb")},db3c:function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var i=n("62e3");function r(){return"object"===typeof window?null===window||void 0===window?void 0:window.devicePixelRatio:2}function o(t,e){void 0===e&&(e=t);var n=document.createElement("canvas"),i=r();n.width=t*i,n.height=e*i,n.style.width=t+"px",n.style.height=e+"px";var o=n.getContext("2d");return o.scale(i,i),n}function a(t,e,n,i){void 0===i&&(i=n);var r=e.backgroundColor,o=e.opacity;t.globalAlpha=o,t.fillStyle=r,t.beginPath(),t.fillRect(0,0,n,i),t.closePath()}function s(t,e,n){var i=t+e;return n?2*i:i}function c(t,e){var n=e?[[t*(1/4),t*(1/4)],[t*(3/4),t*(3/4)]]:[[.5*t,.5*t]];return n}function l(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 u={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function h(t,e,n,i){var r=e.size,o=e.fill,a=e.lineWidth,s=e.stroke,c=e.fillOpacity;t.beginPath(),t.globalAlpha=c,t.fillStyle=o,t.strokeStyle=s,t.lineWidth=a,t.arc(n,i,r/2,0,2*Math.PI,!1),t.fill(),a&&t.stroke(),t.closePath()}function f(t){var e=Object(i["c"])({},u,t),n=e.size,f=e.padding,p=e.isStagger,d=e.rotation,g=s(n,f,p),v=c(g,p),y=o(g,g),m=y.getContext("2d");a(m,e,g);for(var b=0,x=v;b<x.length;b++){var O=x[b],j=O[0],w=O[1];h(m,e,j,w)}var C=m.createPattern(y,"repeat");if(C){var M=r(),S=l(M,d);C.setTransform(S)}return C}var p={rotation:45,spacing:5,opacity:1,backgroundColor:"transparent",strokeOpacity:.5,stroke:"#fff",lineWidth:2};function d(t,e,n){var i=e.stroke,r=e.lineWidth,o=e.strokeOpacity,a=new Path2D(n);t.globalAlpha=o,t.lineCap="square",t.strokeStyle=r?i:"transparent",t.lineWidth=r,t.stroke(a)}function g(t){var e=Object(i["c"])({},p,t),n=e.spacing,s=e.rotation,c=e.lineWidth,u=n+c||1,h=n+c||1,f="\n M 0 0 L "+u+" 0\n M 0 "+h+" L "+u+" "+h+"\n ",g=o(u,h),v=g.getContext("2d");a(v,e,u,h),d(v,e,f);var y=v.createPattern(g,"repeat");if(y){var m=r(),b=l(m,s);y.setTransform(b)}return y}var v={size:6,padding:1,isStagger:!0,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0};function y(t,e,n,i){var r=e.stroke,o=e.size,a=e.fill,s=e.lineWidth,c=e.fillOpacity;t.globalAlpha=c,t.strokeStyle=r,t.lineWidth=s,t.fillStyle=a,t.strokeRect(n-o/2,i-o/2,o,o),t.fillRect(n-o/2,i-o/2,o,o)}function m(t){var e=Object(i["c"])({},v,t),n=e.size,u=e.padding,h=e.isStagger,f=e.rotation,p=s(n,u,h),d=c(p,h),g=o(p,p),m=g.getContext("2d");a(m,e,p);for(var b=0,x=d;b<x.length;b++){var O=x[b],j=O[0],w=O[1];y(m,e,j,w)}var C=m.createPattern(g,"repeat");if(C){var M=r(),S=l(M,f);C.setTransform(S)}return C}function b(t){var e,n=t.type,i=t.cfg;switch(n){case"dot":e=f(i);break;case"line":e=g(i);break;case"square":e=m(i);break;default:break}return e}},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 o="-1";e.SensorTabIndex=o},dbaf:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var i=n("5809"),r=n("cc94"),o=n("8937"),a=n("58e4"),s=n("c34d"),c=n("9ff2"),l=n("62e3"),u=n("3cf2");function h(t){var e=t.chart,n=t.options,r=n.views,s=n.legend;return Object(o["j"])(r,(function(t){var n=t.region,r=t.data,s=t.meta,u=t.axes,h=t.coordinate,f=t.interactions,p=t.annotations,d=t.tooltip,g=t.geometries,v=e.createView({region:n});v.data(r);var y={};u&&Object(o["j"])(u,(function(t,e){y[e]=Object(l["t"])(t,c["a"])})),y=Object(l["c"])({},s,y),v.scale(y),u?Object(o["j"])(u,(function(t,e){v.axis(e,t)})):v.axis(!1),v.coordinate(h),Object(o["j"])(g,(function(t){var e=Object(a["a"])({chart:v,options:t}).ext,n=t.adjust;n&&e.geometry.adjust(n)})),Object(o["j"])(f,(function(t){!1===t.enable?v.removeInteraction(t.type):v.interaction(t.type,t.cfg)})),Object(o["j"])(p,(function(t){v.annotation()[t.type](Object(i["a"])({},t))})),"boolean"===typeof t.animation?v.animate(!1):(v.animate(!0),Object(o["j"])(v.geometries,(function(e){e.animate(t.animation)}))),d&&(v.interaction("tooltip"),v.tooltip(d))})),s?Object(o["j"])(s,(function(t,n){e.legend(n,t)})):e.legend(!1),e.tooltip(n.tooltip),t}function f(t){var e=t.chart,n=t.options,a=n.plots;return Object(o["j"])(a,(function(t){var n=t.type,o=t.region,a=t.options,s=void 0===a?{}:a,c=s.tooltip,h=e.createView(Object(i["a"])({region:o},Object(l["t"])(s,r["a"])));c&&h.interaction("tooltip"),Object(u["a"])(n,h,s)})),t}function p(t){return Object(l["f"])(s["a"],h,f,s["c"],s["a"],s["k"],s["l"])(t)}var d=n("917c");function g(t,e){var n,i=t.getModel(),r=i.data;return n=Object(o["C"])(r)?r[0][e]:r[e],n}function v(t){var e=Object(l["h"])(t);Object(o["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 y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getAssociationItems=function(t,e){var n,i=this.context.event,r=e||{},a=r.linkField,s=r.dim,c=[];if(null===(n=i.data)||void 0===n?void 0:n.data){var u=i.data.data;Object(o["j"])(t,(function(t){var e,n,i=a;if("x"===s?i=t.getXScale().field:"y"===s?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(o["W"])(Object(l["h"])(t),(function(e){var n=!1,r=!1,a=Object(o["C"])(u)?Object(o["s"])(u[0],i):Object(o["s"])(u,i);return g(e,i)===a?n=!0:r=!0,{element:e,view:t,active:n,inactive:r}}));c.push.apply(c,r)}}))}return c},e.prototype.showTooltip=function(t){var e=Object(l["l"])(this.context.view),n=this.getAssociationItems(e,t);Object(o["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=Object(l["l"])(this.context.view);Object(o["j"])(t,(function(t){t.hideTooltip()}))},e.prototype.active=function(t){var e=Object(l["n"])(this.context.view),n=this.getAssociationItems(e,t);Object(o["j"])(n,(function(t){var e=t.active,n=t.element;e&&n.setState("active",!0)}))},e.prototype.selected=function(t){var e=Object(l["n"])(this.context.view),n=this.getAssociationItems(e,t);Object(o["j"])(n,(function(t){var e=t.active,n=t.element;e&&n.setState("selected",!0)}))},e.prototype.highlight=function(t){var e=Object(l["n"])(this.context.view),n=this.getAssociationItems(e,t);Object(o["j"])(n,(function(t){var e=t.inactive,n=t.element;e&&n.setState("inactive",!0)}))},e.prototype.reset=function(){var t=Object(l["n"])(this.context.view);Object(o["j"])(t,(function(t){v(t)}))},e}(d["a"]);Object(d["l"])("association",y),Object(d["o"])("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Object(d["o"])("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Object(d["o"])("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Object(d["o"])("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="mix",e}return Object(i["b"])(e,t),e.prototype.getSchemaAdaptor=function(){return p},e}(r["b"])},dd3e:function(t,e){},deef:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("2c79"),r=n("7c8a"),o=n("8937"),a=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=o["fb"],e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var i=t?Object(o["s"])(n.originalEvent,"touches.0.clientX"):n.clientX,r=t?Object(o["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 a=e.isMobile?Object(o["s"])(t,"touches.0.clientX"):t.clientX,s=e.isMobile?Object(o["s"])(t,"touches.0.clientY"):t.clientY,c=i?a: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,o=n.y,a=n.thumbLen,s=e.getContainerDOM(),c=s.getBoundingClientRect(),l=t.clientX,u=t.clientY,h=i?l-c.left-r-a/2:u-c.top-o-a/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["b"])(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),i=Object(o["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(o["c"])(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},e.prototype.getValue=function(){return Object(o["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,a=Object(o["h"])({},c,r).default,s=a.lineCap,l=a.trackColor,u=a.size,h=Object(o["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,a=Object(o["h"])({},c,r).default,s=a.size,l=a.lineCap,u=a.thumbColor,h=Object(o["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<n&&(r=0),r},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.updateThumbOffset=function(t){var e=this.cfg,n=e.thumbOffset,i=e.isHorizontal,r=e.thumbLen,o=e.size,a=this.validateRange(t);if(a!==n){var s=this.getElementByLocalId("thumb");i?s.attr({x1:a+o/2,x2:a+r-o/2}):s.attr({y1:a+o/2,y2:a+r-o/2}),this.emitOffsetChange(a)}},e.prototype.emitOffsetChange=function(t){var e=this.cfg,n=e.thumbOffset,i=e.trackLen,r=e.thumbLen;this.cfg.thumbOffset=t,this.emit("scrollchange",{thumbOffset:t,ratio:Object(o["c"])(t/(i-r),0,1)}),this.delegateEmit("valuechange",{originalValue:n,value:t})},e}(a["a"])},e0e9:function(t,e,n){"use strict";function i(t,e){return t.views.find((function(t){return t.id===e}))}function r(t){var e=t.parent;return e?e.views:[]}function o(t){return r(t).filter((function(e){return e!==t}))}n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return o}))},e1c6:function(t,e){},e2bb:function(t,e,n){},e3a9:function(t,e,n){"use strict";var i,r=n("dbaf");function o(t,e){console.warn(t===i.DEV?"Plot '"+e+"' is in DEV stage, just give us issues.":t===i.BETA?"Plot '"+e+"' is in BETA stage, DO NOT use it in production env.":t===i.STABLE?"Plot '"+e+"' is in STABLE stage, import it by \"import { "+e+" } from '@antv/g2plot'\".":"invalid Stage type.")}(function(t){t["DEV"]="DEV",t["BETA"]="BETA",t["STABLE"]="STABLE"})(i||(i={}));(function(){function t(){}Object.defineProperty(t,"MultiView",{get:function(){return o(i.STABLE,"MultiView"),r["a"]},enumerable:!1,configurable:!0})})()},e474:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("8937");function r(t,e){if(!1===t)return{fields:!1};var n=Object(i["s"])(t,"fields"),r=Object(i["s"])(t,"formatter");return r&&!n&&(n=e),{fields:n,formatter:r}}},e4c3:function(t,e){},e4ea:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("8937");function r(t,e){return Object(i["M"])(t)&&Object(i["M"])(e)?t===e?"100%":0===t?"∞":0===e?"-∞":(100*e/t).toFixed(2)+"%":"-"}},e546:function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"h",(function(){return a})),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,o=0;return Object(i["M"])(t)?e=n=r=o=t:Object(i["C"])(t)&&(e=t[0],r=Object(i["K"])(t[1])?t[0]:t[1],o=Object(i["K"])(t[2])?t[0]:t[2],n=Object(i["K"])(t[3])?r:t[3]),[e,r,o,n]}function o(t){for(var e=t.childNodes,n=e.length,i=n-1;i>=0;i--)t.removeChild(e[i])}function a(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),o=Math.max(e.x,n.x),a=Math.max(e.y,n.y);return{x:i,y:r,minX:i,minY:r,maxX:o,maxY:a,width:o-i,height:a-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),o=Math.max.apply(Math,e),a=Math.max.apply(Math,n);return{x:i,y:r,minX:i,minY:r,maxX:o,maxY:a,width:o-i,height:a-r}}function l(t,e,n,i){var r=t+n,o=e+i;return{x:t,y:e,width:n,height:i,minX:t,minY:e,maxX:isNaN(r)?0:r,maxY:isNaN(o)?0:o}}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)<n};function d(t,e){var n=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),r=Math.min(t.maxX,e.maxX),o=Math.min(t.maxY,e.maxY);return l(n,i,r-n,o-i)}function g(t){var e,n=t.getClip(),r=n&&n.getBBox();if(t.isGroup()){var o=1/0,a=-1/0,s=1/0,c=-1/0,u=t.getChildren();u.length>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]);u<o&&(o=u),h>a&&(a=h),f<s&&(s=f),p>c&&(c=p)}})):(o=0,a=0,s=0,c=0),e=l(o,s,a-o,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),o=i/r,a=0;return"start"===n?a=0-o:"end"===n&&(a=1+o),{x:u(t.x,e.x,a),y:u(t.y,e.y,a)}}},e5b1:function(t,e,n){"use strict";n.r(e),n.d(e,"Category",(function(){return v})),n.d(e,"Continuous",(function(){return x})),n.d(e,"Base",(function(){return f}));var i=n("2c79"),r=n("8937"),o=n("060b"),a=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["b"])(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,o=e.height;return n&&(r=Math.min(r,n)),i&&(o=Math.min(o,i)),Object(u["b"])(e.minX,e.minY,r,o)},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),o=Object(i["a"])({x:0,y:0,width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},e.style),a=this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o});a.toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),r=n.spacing,o=n.style,a=n.text,s=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:Object(i["a"])({text:a,x:e.x,y:e.y},o)}),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=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.currentPageIndex<e.totalPagesCnt){e.currentPageIndex+=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"legend",type:"category",itemSpacing:24,itemMarginBottom:8,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},items:[],itemStates:{},itemBackground:{},pageNavigator:{},defaultCfg:{title:{spacing:5,style:{fill:c["a"].textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:c["a"].lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},pageNavigator:p,itemName:{spacing:16,style:d},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:d},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:c["a"].uncheckedColor},markerStyle:{fill:c["a"].uncheckedColor,stroke:c["a"].uncheckedColor}},inactive:{nameStyle:{fill:c["a"].uncheckedColor},markerStyle:{opacity:.2}}}}})},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("items")},e.prototype.setItems=function(t){this.update({items:t})},e.prototype.updateItem=function(t,e){Object(r["db"])(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("item-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n;var i=this.getElementByLocalId("item-"+t.id);if(i){var r=this.getItems(),o=r.indexOf(t),a=this.createOffScreenGroup(),s=this.drawItem(t,o,this.getItemHeight(),a);this.updateElements(s,i),this.clearUpdateStatus(i)}},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("itemStates"),n=[];return Object(r["j"])(e,(function(e,i){t[i]&&n.push(i)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(r["j"])(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(r["l"])(n,(function(n){return e.hasState(n,t)}))},e.prototype.drawLegendContent=function(t){this.processItems(),this.drawItems(t)},e.prototype.processItems=function(){var t=this.get("items");Object(r["j"])(t,(function(t){t.id||(t.id=t.name)}))},e.prototype.drawItems=function(t){var e=this,n=this.addGroup(t,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),i=this.addGroup(n,{id:this.getElementId("item-group"),name:"legend-item-group"}),o=this.getItemHeight(),a=this.get("itemWidth"),s=this.get("itemSpacing"),c=this.get("itemMarginBottom"),l=this.get("currentPoint"),u=l.x,h=l.y,f=this.get("layout"),p=this.get("items"),d=!1,g=0,v=this.get("maxWidth"),y=this.get("maxHeight");Object(r["j"])(p,(function(t,n){var r=e.drawItem(t,n,o,i),p=r.getBBox(),m=a||p.width;m>g&&(g=m),"horizontal"===f?(v&&v<l.x+m-u&&(d=!0,l.x=u,l.y+=o+c),e.moveElementTo(r,l),l.x+=m+s):(y&&y<l.y+o+c-h&&(d=!0,l.x+=g+s,l.y=h,g=0),e.moveElementTo(r,l),l.y+=o+c)})),d&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=u,this.startY=h,this.adjustNavigation(t,i))},e.prototype.getItemHeight=function(){var t=this.get("itemHeight");if(!t){var e=(this.get("itemName")||{}).style;if(Object(r["I"])(e)){var n=this.getItems();n.forEach((function(r,o){var a=Object(i["a"])(Object(i["a"])({},d),e(r,o,n)).fontSize;t<a&&(t=a)}))}else e&&(t=e.fontSize)}return t},e.prototype.drawMarker=function(t,e,n,o){var a=Object(i["a"])(Object(i["a"])(Object(i["a"])({x:0,y:o/2},e.style),{symbol:Object(r["s"])(n.marker,"symbol","circle")}),Object(r["s"])(n.marker,"style",{})),s=this.addShape(t,{type:"marker",id:this.getElementId("item-"+n.id+"-marker"),name:"legend-item-marker",attrs:a}),c=s.getBBox();s.attr("x",c.width/2);var l=s.attr(),u=l.stroke,h=l.fill;return u&&s.set("isStroke",!0),h&&s.set("isFill",!0),s},e.prototype.drawItemText=function(t,e,n,o,a,s,c){var l=n.formatter,u=n.style,h=Object(i["a"])(Object(i["a"])({x:s,y:a/2,text:l?l(o[e],o,c):o[e]},d),Object(r["I"])(u)?u(o,c,this.getItems()):u);return this.addShape(t,{type:"text",id:this.getElementId("item-"+o.id+"-"+e),name:"legend-item-"+e,attrs:h})},e.prototype.drawItem=function(t,e,n,a){var s="item-"+t.id,c=this.addGroup(a,{name:"legend-item-container",id:this.getElementId("item-container-"+s),delegateObject:{item:t,index:e}}),l=this.addGroup(c,{name:"legend-item",id:this.getElementId(s),delegateObject:{item:t,index:e}}),u=this.get("marker"),h=this.get("itemName"),f=this.get("itemValue"),p=this.get("itemBackground"),d=this.getLimitItemWidth(),g=0;if(u){var v=this.drawMarker(l,u,t,n),y=u.spacing,m=Object(r["s"])(t,["marker","spacing"]);Object(r["M"])(m)&&(y=m),g=v.getBBox().maxX+y}if(h){var b=this.drawItemText(l,"name",h,t,n,g,e);d&&Object(o["a"])(!0,b,Object(r["c"])(d-g,0,d)),g=b.getBBox().maxX+h.spacing}if(f){var x=this.drawItemText(l,"value",f,t,n,g,e);d&&(f.alignRight?(x.attr({textAlign:"right",x:d}),Object(o["a"])(!0,x,Object(r["c"])(d-g,0,d),"head")):Object(o["a"])(!0,x,Object(r["c"])(d-g,0,d)))}if(p){var O=l.getBBox(),j=this.addShape(l,{type:"rect",name:"legend-item-background",id:this.getElementId(s+"-background"),attrs:Object(i["a"])({x:0,y:0,width:O.width,height:n},p.style)});j.toBack()}return this.applyItemStates(t,l),l},e.prototype.adjustNavigation=function(t,e){var n=this,i=this.startX,o=this.startY,a=this.get("layout"),s=e.findAll((function(t){return"legend-item"===t.get("name")})),c=this.get("maxWidth"),l=this.get("maxHeight"),u=this.get("itemWidth"),h=this.get("itemSpacing"),f=this.getItemHeight(),d=Object(r["h"])({},p,this.get("pageNavigator")),g=this.drawNavigation(t,a,"00/00",d),v=g.getBBox(),y={x:i,y:o},m=1,b=0,x=0,O=0,j=this.get("itemMarginBottom");if("horizontal"===a){var w=this.get("maxRow")||1,C=f+(1===w?0:j);this.pageHeight=C*w,Object(r["j"])(s,(function(t){var e=t.getBBox(),r=u||e.width;(b&&b<y.x+r+h||c<y.x+r+h+v.width)&&(1===m&&(b=y.x+h,n.pageWidth=b,n.moveElementTo(g,{x:c-h-v.width-v.minX,y:y.y+f/2-v.height/2-v.minY})),m+=1,y.x=i,y.y+=C),n.moveElementTo(t,y),t.getParent().setClip({type:"rect",attrs:{x:y.x,y:y.y,width:r+h,height:f}}),y.x+=r+h}))}else{Object(r["j"])(s,(function(t){var e=t.getBBox();e.width>x&&(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 M=Math.floor(this.pageHeight/(f+j));Object(r["j"])(s,(function(t,e){0!==e&&e%M===0&&(m+=1,y.x+=x,y.y=o),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"===a&&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,o){var a={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),c=Object(r["s"])(o.marker,"style",{}),l=c.size,u=void 0===l?12:l,h=Object(i["c"])(c,["size"]),f=this.drawArrow(s,a,"navigation-arrow-left","horizontal"===e?"up":"left",u,h);f.on("click",this.onNavigationBack);var p=f.getBBox();a.x+=p.width+2;var d=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:Object(i["a"])({x:a.x,y:a.y+u/2,text:n,textBaseline:"middle"},Object(r["s"])(o.text,"style"))}),g=d.getBBox();a.x+=g.width+2;var v=this.drawArrow(s,a,"navigation-arrow-right","horizontal"===e?"down":"right",u,h);return v.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,o=n.opacity,a=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("navigation-arrow-left")):this.getElementByLocalId("navigation-arrow-left"),h=t?t.findById(this.getElementId("navigation-arrow-right")):this.getElementByLocalId("navigation-arrow-right"),f=l.getBBox();l.attr("text",c);var d=l.getBBox();l.attr("x",l.attr("x")-(d.width-f.width)/2),u.attr("opacity",1===this.currentPageIndex?s:o),u.attr("fill",1===this.currentPageIndex?a:i),u.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),h.attr("opacity",this.currentPageIndex===this.totalPagesCnt?s:o),h.attr("fill",this.currentPageIndex===this.totalPagesCnt?a:i),h.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer")},e.prototype.drawArrow=function(t,e,n,r,o,s){var c=e.x,l=e.y,u={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},h=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:Object(i["a"])({path:[["M",c+o/2,l],["L",c,l+o],["L",c+o,l+o],["Z"]],cursor:"pointer"},s)});return h.attr("matrix",Object(a["e"])({x:c+o/2,y:l+o/2},u[r])),h},e.prototype.getCurrentNavigationMatrix=function(){var t=this,e=t.currentPageIndex,n=t.pageWidth,i=t.pageHeight,r=this.get("layout"),o="horizontal"===r?{x:0,y:i*(1-e)}:{x:n*(1-e),y:0};return Object(a["f"])(o)},e.prototype.applyItemStates=function(t,e){var n=this.getItemStates(t),i=n.length>0;if(i){var o=e.getChildren(),a=this.get("itemStates");Object(r["j"])(o,(function(e){var n=e.get("name"),i=n.split("-")[2],r=Object(s["a"])(t,i,a);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),v=g,y=1.4,m=.4,b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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];r<n&&(r=n),e.setValue([n,r])})),t.on("legend-handler-max:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),i=e.getCurrentValue(),r=i[0];r>n&&(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),o=e.getCurrentValue(),a=o[1]-o[0],s=e.getRange(),c=r-i;c<0?o[0]+c>s.min?e.setValue([o[0]+c,o[1]+c]):e.setValue([s.min,s.min+a]):c>0&&(c>0&&o[1]+c<s.max?e.setValue([o[0]+c,o[1]+c]):e.setValue([s.max-a,s.max])),n={x:t.x,y:t.y}}})),t.on("legend-track:dragend",(function(t){n=null}))},e.prototype.drawLabels=function(t){this.drawLabel("min",t),this.drawLabel("max",t)},e.prototype.drawLabel=function(t,e){var n=this.get("label"),o=n.style,a=n.align,s=n.formatter,c=this.get(t),l=this.getLabelAlignAttrs(t,a),u="label-"+t;this.addShape(e,{type:"text",id:this.getElementId(u),name:"legend-label-"+t,attrs:Object(i["a"])(Object(i["a"])({x:0,y:0,text:Object(r["I"])(s)?s(c):c},o),l)})},e.prototype.getLabelAlignAttrs=function(t,e){var n=this.isVertical(),i="center",r="middle";return n?(i="start",r="rail"!==e?"min"===t?"top":"bottom":"top"):"rail"!==e?(r="top",i="min"===t?"start":"end"):(i="start",r="middle"),{textAlign:i,textBaseline:r}},e.prototype.getRailPath=function(t,e,n,i){var r=this.get("rail"),o=r.size,a=r.defaultLength,s=r.type,c=this.isVertical(),l=a,u=n,h=i;u||(u=c?o:l),h||(h=c?l:o);var f=[];return"color"===s?(f.push(["M",t,e]),f.push(["L",t+u,e]),f.push(["L",t+u,e+h]),f.push(["L",t,e+h]),f.push(["Z"])):(f.push(["M",t+u,e]),f.push(["L",t+u,e+h]),f.push(["L",t,e+h]),f.push(["Z"])),f},e.prototype.drawRail=function(t){var e=this.get("rail"),n=e.style;this.addShape(t,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:Object(i["a"])({path:this.getRailPath(0,0)},n)})},e.prototype.getTrackColor=function(t){var e,n=t.length;if(!n)return null;if(1===n)return t[0];e=this.isVertical()?"l(90)":"l(0)";for(var i=0;i<n;i++){var r=i/(n-1);e+=" "+r+":"+t[i]}return e},e.prototype.getTrackPath=function(t){var e=this.getRailShape(t),n=e.attr("path");return Object(r["e"])(n)},e.prototype.getClipTrackAttrs=function(t){var e,n,i,r,o=this.getCurrentValue(),a=o[0],s=o[1],c=this.getRailBBox(t),l=this.getPointByValue(a,t),u=this.getPointByValue(s,t),h=this.isVertical();return h?(e=c.minX,n=l.y,i=c.width,r=u.y-l.y):(e=l.x,n=c.minY,i=u.x-l.x,r=c.height),{x:e,y:n,width:i,height:r}},e.prototype.getTrackAttrs=function(t){var e=this.get("track"),n=this.get("colors"),i=this.getTrackPath(t);return Object(r["db"])({path:i,fill:this.getTrackColor(n)},e.style)},e.prototype.resetTrackClip=function(t){var e=t||this.get("group"),n=this.getElementId("track"),i=e.findById(n),r=i.getClip(),o=this.getClipTrackAttrs(t);r?r.attr(o):i.setClip({type:"rect",attrs:o})},e.prototype.resetTrack=function(t){var e=this.getElementId("track"),n=t.findById(e),i=this.getTrackAttrs(t);n?n.attr(i):this.addShape(t,{type:"path",id:e,draggable:this.get("slidable"),name:"legend-track",attrs:i})},e.prototype.getPointByValue=function(t,e){var n=this.getRange(),i=n.min,r=n.max,o=(t-i)/(r-i),a=this.getRailBBox(e),s=this.isVertical(),c={x:0,y:0};return s?(c.x=a.minX+a.width/2,c.y=Object(u["g"])(a.minY,a.maxY,o)):(c.x=Object(u["g"])(a.minX,a.maxX,o),c.y=a.minY+a.height/2),c},e.prototype.getRailShape=function(t){var e=t||this.get("group");return e.findById(this.getElementId("rail"))},e.prototype.getRailBBox=function(t){var e=this.getRailShape(t),n=e.getBBox();return n},e.prototype.getRailCanvasBBox=function(){var t=this.get("group"),e=t.findById(this.getElementId("rail")),n=e.getCanvasBBox();return n},e.prototype.isVertical=function(){return"vertical"===this.get("layout")},e.prototype.getValueByCanvasPoint=function(t,e){var n,i=this.getRange(),r=i.min,o=i.max,a=this.getRailCanvasBBox(),s=this.isVertical(),c=this.get("step");n=s?(e-a.minY)/a.height:(t-a.minX)/a.width;var l=Object(u["g"])(r,o,n);if(c){var h=Math.round((l-r)/c);l=r+h*c}return l>o&&(l=o),l<r&&(l=r),l},e.prototype.getCurrentValue=function(){var t=this.get("value");if(!t){var e=this.get("values");return e?[Math.max(Math.min.apply(Math,Object(i["d"])(e,[this.get("max")])),this.get("min")),Math.min(Math.max.apply(Math,Object(i["d"])(e,[this.get("min")])),this.get("max"))]:[this.get("min"),this.get("max")]}return t},e.prototype.resetHandlers=function(t){var e=this.getCurrentValue(),n=e[0],i=e[1];this.resetHandler(t,"min",n),this.resetHandler(t,"max",i)},e.prototype.getHandlerPath=function(t,e){var n=this.isVertical(),i=[],r=t.size,o=e.x,a=e.y,s=r*y,c=r/2,l=r/6;if(n){var u=o+s*m;i.push(["M",o,a]),i.push(["L",u,a+c]),i.push(["L",o+s,a+c]),i.push(["L",o+s,a-c]),i.push(["L",u,a-c]),i.push(["Z"]),i.push(["M",u,a+l]),i.push(["L",o+s-2,a+l]),i.push(["M",u,a-l]),i.push(["L",o+s-2,a-l])}else{var h=a+s*m;i.push(["M",o,a]),i.push(["L",o-c,h]),i.push(["L",o-c,a+s]),i.push(["L",o+c,a+s]),i.push(["L",o+c,h]),i.push(["Z"]),i.push(["M",o-l,h]),i.push(["L",o-l,a+s-2]),i.push(["M",o+l,h]),i.push(["L",o+l,a+s-2])}return i},e.prototype.resetHandler=function(t,e,n){var r=this.getPointByValue(n,t),o=this.get("handler"),a=this.getHandlerPath(o,r),s=this.getElementId("handler-"+e),c=t.findById(s),l=this.isVertical();c?c.attr("path",a):this.addShape(t,{type:"path",name:"legend-handler-"+e,draggable:!0,id:s,attrs:Object(i["a"])(Object(i["a"])({path:a},o.style),{cursor:l?"ns-resize":"ew-resize"})})},e.prototype.fixedElements=function(t){var e=t.findById(this.getElementId("rail")),n=t.findById(this.getElementId("label-min")),i=t.findById(this.getElementId("label-max")),r=this.getDrawPoint();this.isVertical()?this.fixedVertail(n,i,e,r):this.fixedHorizontal(n,i,e,r)},e.prototype.fitRailLength=function(t,e,n,i){var o=this.isVertical(),a=o?"height":"width",s=this.get("label"),c=s.align,l=s.spacing,u=this.get("max"+Object(r["wb"])(a));if(u){var h="rail"===c?n[a]+t[a]+e[a]+2*l:n[a],f=h-u;f>0&&this.changeRailLength(i,a,n[a]-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"),o=r.align,a=r.spacing,s=n.getBBox(),c=t.getBBox(),l=e.getBBox(),u=s.height;this.fitRailLength(c,l,s,n),s=n.getBBox(),"rail"===o?(t.attr({x:i.x,y:i.y+u/2}),this.changeRailPosition(n,i.x+c.width+a,i.y),e.attr({x:i.x+c.width+s.width+2*a,y:i.y+u/2})):"top"===o?(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+a)):(this.changeRailPosition(n,i.x,i.y),t.attr({x:i.x,y:i.y+s.height+a}),e.attr({x:i.x+s.width,y:i.y+s.height+a}))},e.prototype.fixedVertail=function(t,e,n,i){var r=this.get("label"),o=r.align,a=r.spacing,s=n.getBBox(),c=t.getBBox(),l=e.getBBox();if(this.fitRailLength(c,l,s,n),s=n.getBBox(),"rail"===o)t.attr({x:i.x,y:i.y}),this.changeRailPosition(n,i.x,i.y+c.height+a),e.attr({x:i.x,y:i.y+c.height+s.height+2*a});else if("right"===o)t.attr({x:i.x+s.width+a,y:i.y}),this.changeRailPosition(n,i.x,i.y),e.attr({x:i.x+s.width+a,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+a,i.y),e.attr({x:i.x,y:i.y+s.height})}},e}(f),x=b},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},e635:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return c}));var i=n("f049"),r=n("c5c4");function o(t,e,n){var r=1;if(Object(i["h"])(t)&&(r=t.split("\n").length),r>1){var o=a(e,n);return e*r+o*(r-1)}return e}function a(t,e){return e?e-t:.14*t}function s(t,e){var n=Object(r["a"])(),o=0;if(Object(i["e"])(t)||""===t)return o;if(n.save(),n.font=e,Object(i["h"])(t)&&t.includes("\n")){var a=t.split("\n");Object(i["a"])(a,(function(t){var e=n.measureText(t).width;o<e&&(o=e)}))}else o=n.measureText(t).width;return n.restore(),o}function c(t){var e=t.fontSize,n=t.fontFamily,i=t.fontWeight,r=t.fontStyle,o=t.fontVariant;return[r,o,i,e+"px",n].join(" ").trim()}},e73e:function(t,e,n){"use strict";var i=n("4767"),r=n("6855"),o=n("8937"),a=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["b"])(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 a},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(o["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 o})),n.d(i,"leftRotate",(function(){return a})),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 o(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 a(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<r;i++){var l=e[i];switch(l[0]){case"t":o(n,n,[l[1],l[2]]);break;case"s":s(n,n,[l[1],l[2]]);break;case"r":a(n,n,l[1]);break;case"m":c(n,n,l[1]);break;default:break}}return n}function u(t,e){return t[0]*e[1]-e[0]*t[1]}function h(t,e,n){var i=r["b"].angle(t,e),o=u(t,e)>=0;return n?o?2*Math.PI-i:i:o?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}},e8b5:function(t,e,n){var i=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==i(t)}},e945:function(t,e,n){"use strict";var i=n("8937"),r=/rgba?\(([\s.,0-9]+)\)/,o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^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),o=i*n-r,a=t[r],s=r===i?a:t[r+1];return h([u(a,s,o,0),u(a,s,o,1),u(a,s,o,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=o.exec(t),l=+r[1]+90;n=r[2],e="linear-gradient("+l+"deg, "}else if("r"===t[0]){e="radial-gradient(";r=a.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}},ea1d:function(t,e,n){"use strict";var i=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function r(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function o(){}var a=.7,s=1/a,c="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h=/^#([0-9a-f]{3,8})$/,f=new RegExp("^rgb\\("+[c,c,c]+"\\)$"),p=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),d=new RegExp("^rgba\\("+[c,c,c,l]+"\\)$"),g=new RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),v=new RegExp("^hsl\\("+[l,u,u]+"\\)$"),y=new RegExp("^hsla\\("+[l,u,u,l]+"\\)$"),m={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 b(){return this.rgb().formatHex()}function x(){return P(this).formatHsl()}function O(){return this.rgb().formatRgb()}function j(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=h.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?w(e):3===n?new A(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?C(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?C(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=f.exec(t))?new A(e[1],e[2],e[3],1):(e=p.exec(t))?new A(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?C(e[1],e[2],e[3],e[4]):(e=g.exec(t))?C(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=v.exec(t))?T(e[1],e[2]/100,e[3]/100,1):(e=y.exec(t))?T(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?w(m[t]):"transparent"===t?new A(NaN,NaN,NaN,0):null}function w(t){return new A(t>>16&255,t>>8&255,255&t,1)}function C(t,e,n,i){return i<=0&&(t=e=n=NaN),new A(t,e,n,i)}function M(t){return t instanceof o||(t=j(t)),t?(t=t.rgb(),new A(t.r,t.g,t.b,t.opacity)):new A}function S(t,e,n,i){return 1===arguments.length?M(t):new A(t,e,n,null==i?1:i)}function A(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function k(){return"#"+E(this.r)+E(this.g)+E(this.b)}function F(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function E(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function T(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new B(t,e,n,i)}function P(t){if(t instanceof B)return new B(t.h,t.s,t.l,t.opacity);if(t instanceof o||(t=j(t)),!t)return new B;if(t instanceof B)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),s=NaN,c=a-r,l=(a+r)/2;return c?(s=e===a?(n-i)/c+6*(n<i):n===a?(i-e)/c+2:(e-n)/c+4,c/=l<.5?a+r:2-a-r,s*=60):c=l>0&&l<1?0:s,new B(s,c,l,t.opacity)}function I(t,e,n,i){return 1===arguments.length?P(t):new B(t,e,n,null==i?1:i)}function B(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function L(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 D(t,e,n,i,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*i+a*r)/6}i(o,j,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:b,formatHex:b,formatHsl:x,formatRgb:O,toString:O}),i(A,S,r(o,{brighter:function(t){return t=null==t?s:Math.pow(s,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){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:k,formatHex:k,formatRgb:F,toString:F})),i(B,I,r(o,{brighter:function(t){return t=null==t?s:Math.pow(s,t),new B(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new B(this.h,this.s,this.l*t,this.opacity)},rgb:function(){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 A(L(t>=240?t-240:t+120,r,i),L(t,r,i),L(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var R=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],o=t[i+1],a=i>0?t[i-1]:2*r-o,s=i<e-1?t[i+2]:2*o-r;return D((n-i/e)*e,a,r,o,s)}},_=function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),r=t[(i+e-1)%e],o=t[i%e],a=t[(i+1)%e],s=t[(i+2)%e];return D((n-i/e)*e,r,o,a,s)}},z=function(t){return function(){return t}};function Y(t,e){return function(n){return t+n*e}}function N(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 G(t){return 1===(t=+t)?X:function(e,n){return n-e?N(e,n,t):z(isNaN(e)?n:e)}}function X(t,e){var n=e-t;return n?Y(t,n):z(isNaN(t)?e:t)}var V=function t(e){var n=G(e);function i(t,e){var i=n((t=S(t)).r,(e=S(e)).r),r=n(t.g,e.g),o=n(t.b,e.b),a=X(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=o(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);function H(t){return function(e){var n,i,r=e.length,o=new Array(r),a=new Array(r),s=new Array(r);for(n=0;n<r;++n)i=S(e[n]),o[n]=i.r||0,a[n]=i.g||0,s[n]=i.b||0;return o=t(o),a=t(a),s=t(s),i.opacity=1,function(t){return i.r=o(t),i.g=a(t),i.b=s(t),i+""}}}H(R),H(_);var W=n("6730"),q=function(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}},K=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},U=function(t,e){var n,i={},r={};for(n in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)n in t?i[n]=nt(t[n],e[n]):r[n]=e[n];return function(t){for(n in i)r[n]=i[n](t);return r}},Z=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Q=new RegExp(Z.source,"g");function $(t){return function(){return t}}function J(t){return function(e){return t(e)+""}}var tt=function(t,e){var n,i,r,o=Z.lastIndex=Q.lastIndex=0,a=-1,s=[],c=[];t+="",e+="";while((n=Z.exec(t))&&(i=Q.exec(e)))(r=i.index)>o&&(r=e.slice(o,r),s[a]?s[a]+=r:s[++a]=r),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,c.push({i:a,x:K(n,i)})),o=Q.lastIndex;return o<e.length&&(r=e.slice(o),s[a]?s[a]+=r:s[++a]=r),s.length<2?c[0]?J(c[0].x):$(e):(e=c.length,function(t){for(var n,i=0;i<e;++i)s[(n=c[i]).i]=n.x(t);return s.join("")})},et=n("51de"),nt=e["a"]=function(t,e){var n,i=typeof e;return null==e||"boolean"===i?z(e):("number"===i?K:"string"===i?(n=j(e))?(e=n,V):tt:e instanceof j?V:e instanceof Date?q:Object(et["b"])(e)?et["a"]:Array.isArray(e)?W["b"]:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?U:K)(t,e)}},ec83:function(t,e,n){"use strict";e["a"]=function(t,e,n,i,r){var o,a=t.children,s=-1,c=a.length,l=t.value&&(r-n)/t.value;while(++s<c)o=a[s],o.x0=e,o.x1=i,o.y0=n,o.y1=n+=o.value*l}},eccb:function(t,e,n){"use strict";var i=n("8f50");function r(t,e){var n,i;if(s(e,t))return[e];for(n=0;n<t.length;++n)if(o(e,t[n])&&s(u(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(i=n+1;i<t.length;++i)if(o(u(t[n],t[i]),e)&&o(u(t[n],e),t[i])&&o(u(t[i],e),t[n])&&s(h(t[n],t[i],e),t))return[t[n],t[i],e];throw new Error}function o(t,e){var n=t.r-e.r,i=e.x-t.x,r=e.y-t.y;return n<0||n*n<i*i+r*r}function a(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),i=e.x-t.x,r=e.y-t.y;return n>0&&n*n>i*i+r*r}function s(t,e){for(var n=0;n<e.length;++n)if(!a(t,e[n]))return!1;return!0}function c(t){switch(t.length){case 1:return l(t[0]);case 2:return u(t[0],t[1]);case 3:return h(t[0],t[1],t[2])}}function l(t){return{x:t.x,y:t.y,r:t.r}}function u(t,e){var n=t.x,i=t.y,r=t.r,o=e.x,a=e.y,s=e.r,c=o-n,l=a-i,u=s-r,h=Math.sqrt(c*c+l*l);return{x:(n+o+c/h*u)/2,y:(i+a+l/h*u)/2,r:(h+r+s)/2}}function h(t,e,n){var i=t.x,r=t.y,o=t.r,a=e.x,s=e.y,c=e.r,l=n.x,u=n.y,h=n.r,f=i-a,p=i-l,d=r-s,g=r-u,v=c-o,y=h-o,m=i*i+r*r-o*o,b=m-a*a-s*s+c*c,x=m-l*l-u*u+h*h,O=p*d-f*g,j=(d*x-g*b)/(2*O)-i,w=(g*v-d*y)/O,C=(p*b-f*x)/(2*O)-r,M=(f*y-p*v)/O,S=w*w+M*M-1,A=2*(o+j*w+C*M),k=j*j+C*C-o*o,F=-(S?(A+Math.sqrt(A*A-4*S*k))/(2*S):k/A);return{x:i+j+w*F,y:r+C+M*F,r:F}}e["a"]=function(t){var e,n,o=0,s=(t=Object(i["b"])(Array.from(t))).length,l=[];while(o<s)e=t[o],n&&a(n,e)?++o:(n=c(l=r(l,e)),o=0);return n}},ed96:function(t,e,n){"use strict";var i=n("5809"),r=n("917c"),o=n("cc94"),a=n("62e3"),s=n("8937"),c=n("c34d"),l=n("b4aa"),u="first-axes-view",h="second-axes-view",f="series-field-key";function p(t,e,n,i,r){var o=[];e.forEach((function(e){i.forEach((function(i){var r,a=(r={},r[t]=i[t],r[n]=e,r[e]=i[e],r);o.push(a)}))}));var a=Object.values(Object(s["w"])(o,n)),c=a[0],l=void 0===c?[]:c,u=a[1],h=void 0===u?[]:u;return r?[l.reverse(),h.reverse()]:[l,h]}function d(t){return"vertical"!==t}function g(t,e,n){var i=e[0],r=e[1],o=i.autoPadding,a=r.autoPadding,s=t.__axisPosition,c=s.layout,l=s.position;if(d(c)&&"top"===l&&(i.autoPadding=n.instance(o.top,0,o.bottom,o.left),r.autoPadding=n.instance(a.top,o.left,a.bottom,0)),d(c)&&"bottom"===l&&(i.autoPadding=n.instance(o.top,o.right/2+5,o.bottom,o.left),r.autoPadding=n.instance(a.top,a.right,a.bottom,o.right/2+5)),!d(c)&&"bottom"===l){var u=o.left>=a.left?o.left:a.left;i.autoPadding=n.instance(o.top,o.right,o.bottom/2+5,u),r.autoPadding=n.instance(o.bottom/2+5,a.right,a.bottom,u)}if(!d(c)&&"top"===l){u=o.left>=a.left?o.left:a.left;i.autoPadding=n.instance(o.top,o.right,0,u),r.autoPadding=n.instance(0,a.right,o.top,u)}}function v(t){var e,n,i=t.chart,r=t.options,o=r.data,s=r.xField,c=r.yField,g=r.color,v=r.barStyle,y=r.widthRatio,m=r.legend,b=r.layout,x=p(s,c,f,o,d(b));m?i.legend(f,m):!1===m&&i.legend(!1);var O=x[0],j=x[1];d(b)?(e=i.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:u}),e.coordinate().transpose().reflect("x"),n=i.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:h}),n.coordinate().transpose(),e.data(O),n.data(j)):(e=i.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:u}),n=i.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:h}),n.coordinate().reflect("y"),e.data(O),n.data(j));var w=Object(a["c"])({},t,{chart:e,options:{widthRatio:y,xField:s,yField:c[0],seriesField:f,interval:{color:g,style:v}}});Object(l["c"])(w);var C=Object(a["c"])({},t,{chart:n,options:{xField:s,yField:c[1],seriesField:f,widthRatio:y,interval:{color:g,style:v}}});return Object(l["c"])(C),t}function y(t){var e,n,i,r=t.options,o=t.chart,l=r.xAxis,p=r.yAxis,d=r.xField,g=r.yField,v=Object(a["e"])(o,u),y=Object(a["e"])(o,h),m={};return Object(s["T"])((null===r||void 0===r?void 0:r.meta)||{}).map((function(t){Object(s["s"])(null===r||void 0===r?void 0:r.meta,[t,"alias"])&&(m[t]=r.meta[t].alias)})),o.scale((e={},e[f]={sync:!0,formatter:function(t){return Object(s["s"])(m,t,t)}},e)),Object(c["g"])((n={},n[d]=l,n[g[0]]=p[g[0]],n))(Object(a["c"])({},t,{chart:v})),Object(c["g"])((i={},i[d]=l,i[g[1]]=p[g[1]],i))(Object(a["c"])({},t,{chart:y})),t}function m(t){var e=t.chart,n=t.options,r=n.xAxis,o=n.yAxis,s=n.xField,c=n.yField,l=n.layout,f=Object(a["e"])(e,u),p=Object(a["e"])(e,h);return"bottom"===(null===r||void 0===r?void 0:r.position)?p.axis(s,Object(i["a"])(Object(i["a"])({},r),{label:{formatter:function(){return""}}})):p.axis(s,!1),!1===r?f.axis(s,!1):f.axis(s,Object(i["a"])({position:d(l)?"top":"bottom"},r)),!1===o?(f.axis(c[0],!1),p.axis(c[1],!1)):(f.axis(c[0],o[c[0]]),p.axis(c[1],o[c[1]])),e.__axisPosition={position:f.getOptions().axes[s].position,layout:l},t}function b(t){var e=t.chart;return Object(c["c"])(Object(a["c"])({},t,{chart:Object(a["e"])(e,u)})),Object(c["c"])(Object(a["c"])({},t,{chart:Object(a["e"])(e,h)})),t}function x(t){var e=t.chart,n=t.options,i=n.yField,r=n.yAxis;return Object(c["e"])(Object(a["c"])({},t,{chart:Object(a["e"])(e,u),options:{yAxis:r[i[0]]}})),Object(c["e"])(Object(a["c"])({},t,{chart:Object(a["e"])(e,h),options:{yAxis:r[i[1]]}})),t}function O(t){var e=t.chart;return Object(c["k"])(Object(a["c"])({},t,{chart:Object(a["e"])(e,u)})),Object(c["k"])(Object(a["c"])({},t,{chart:Object(a["e"])(e,h)})),t}function j(t){var e=t.chart;return Object(c["a"])(Object(a["c"])({},t,{chart:Object(a["e"])(e,u)})),Object(c["a"])(Object(a["c"])({},t,{chart:Object(a["e"])(e,h)})),t}function w(t){var e,n,r=this,o=t.chart,s=t.options,c=s.label,l=s.yField,f=s.layout,p=Object(a["e"])(o,u),g=Object(a["e"])(o,h),v=Object(a["d"])(p,"interval"),y=Object(a["d"])(g,"interval");if(c){var m=c.callback,b=Object(i["c"])(c,["callback"]);b.position||(b.position="middle"),void 0===b.offset&&(b.offset=2);var x=Object(i["a"])({},b);if(d(f)){var O=(null===(e=x.style)||void 0===e?void 0:e.textAlign)||("middle"===b.position?"center":"left");b.style=Object(a["c"])({},b.style,{textAlign:O});var j={left:"right",right:"left",center:"center"};x.style=Object(a["c"])({},x.style,{textAlign:j[O]})}else{var w={top:"bottom",bottom:"top",middle:"middle"};"string"===typeof b.position?b.position=w[b.position]:"function"===typeof b.position&&(b.position=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return w[b.position.apply(r,t)]});var C=(null===(n=x.style)||void 0===n?void 0:n.textBaseline)||"bottom";x.style=Object(a["c"])({},x.style,{textBaseline:C});var M={top:"bottom",bottom:"top",middle:"middle"};b.style=Object(a["c"])({},b.style,{textBaseline:M[C]})}v.label({fields:[l[0]],callback:m,cfg:Object(a["A"])(x)}),y.label({fields:[l[1]],callback:m,cfg:Object(a["A"])(b)})}else v.label(!1),y.label(!1);return t}function C(t){return Object(a["f"])(v,y,m,x,O,w,c["l"],b,j)(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bidirectional-bar",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return Object(a["c"])({},t.getDefaultOptions.call(this),{syncViewPadding:g})},e.prototype.changeData=function(t){void 0===t&&(t=[]),this.chart.emit(r["i"].BEFORE_CHANGE_DATA,r["d"].fromData(this.chart,r["i"].BEFORE_CHANGE_DATA,null)),this.updateOption({data:t});var e=this.options,n=e.xField,i=e.yField,o=e.layout,s=p(n,i,f,t,d(o)),c=s[0],l=s[1],g=Object(a["e"])(this.chart,u),v=Object(a["e"])(this.chart,h);g.data(c),v.data(l),this.chart.render(!0),this.chart.emit(r["i"].AFTER_CHANGE_DATA,r["d"].fromData(this.chart,r["i"].AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return C},e.SERIES_FIELD_KEY=f})(o["b"])},edcb:function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return c}));var i=n("5809"),r=n("8937"),o="x",a="y",s={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return""+Object(r["s"])(e,[0,"data","y"],0)},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},c={appendPadding:2,tooltip:Object(i["a"])({},s),animation:{}}},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"),o=n("29ab"),a=n("f05a"),s=n("f7a9");n("59b0");Object(i["registerAdjust"])("Dodge",r["a"]),Object(i["registerAdjust"])("Jitter",o["a"]),Object(i["registerAdjust"])("Stack",a["a"]),Object(i["registerAdjust"])("Symmetric",s["a"])},efee:function(t,e,n){"use strict";var i=n("5809"),r=n("62e3"),o=n("cc94");(function(t){function e(e,n,i,o){var a=t.call(this,e,Object(r["c"])({},o,n))||this;return a.type="g2-plot",a.defaultOptions=o,a.adaptor=i,a}Object(i["b"])(e,t),e.prototype.getDefaultOptions=function(){return this.defaultOptions},e.prototype.getSchemaAdaptor=function(){return this.adaptor}})(o["b"])},f049:function(t,e,n){"use strict";n.d(e,"j",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"g",(function(){return a})),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 o="undefined"!==typeof window&&"undefined"!==typeof window.document;function a(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}},f05a:function(t,e,n){"use strict";var i=n("9ab4"),r=n("8937"),o=n("41c8"),a=r["a"],s=function(t){function e(e){var n=t.call(this,e)||this,i=e.adjustNames,r=void 0===i?["y"]:i,o=e.height,a=void 0===o?NaN:o,s=e.size,c=void 0===s?10:s,l=e.reverseOrder,u=void 0!==l&&l;return n.adjustNames=r,n.height=a,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,o=e.yField,s=e.reverseOrder,c=s?this.reverse(t):t,l=new a,u=new a;return c.map((function(t){return t.map((function(t){var e,a=r["s"](t,n,0),s=r["s"](t,[o]),c=a.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[o]=[f,p],e))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this,r=n.xField,o=n.height,s=n.reverseOrder,c="y",l=s?this.reverse(t):t,u=new a;return l.map((function(t){return t.map((function(t){var n,a=e.size,s=t[r],l=2*a/o;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}(o["a"]);e["a"]=s},f0b2:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i={locale:"zh-CN",general:{increase:"增加",decrease:"减少",root:"初始"},statistic:{total:"总计"},conversionTag:{label:"转化率"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"总计"}}},f2ce:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return s}));var i,r=n("5809");(function(t){t["ERROR"]="error",t["WARN"]="warn",t["INFO"]="log"})(i||(i={}));var o="AntV/G2Plot";function a(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=0;return o+": "+t.replace(/%s/g,(function(){return""+e[i++]}))}function s(t,e,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];e||console[t](a.apply(void 0,Object(r["d"])([n],i)))}},f2fb:function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return ut})),n.d(e,"c",(function(){return Mt}));var i={};n.r(i),n.d(i,"default",(function(){return W})),n.d(i,"assign",(function(){return C})),n.d(i,"format",(function(){return X})),n.d(i,"parse",(function(){return V})),n.d(i,"defaultI18n",(function(){return F})),n.d(i,"setGlobalDateI18n",(function(){return T})),n.d(i,"setGlobalDateMasks",(function(){return G}));var r=n("8937"),o={};function a(t){return o[t]}function s(t,e){o[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=a(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=function(t,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},u(t,e)};function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;function f(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}Object.create;var p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return h(e,t),e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;t<this.values.length;t++)this.translateIndexMap.set(this.values[t],t)}},e.prototype.translate=function(t){this.buildIndexMap();var e=this.translateIndexMap.get(t);return void 0===e&&(e=Object(r["M"])(t)?t:NaN),e},e.prototype.scale=function(t){var e=this.translate(t),n=this.calcPercent(e,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax())},e.prototype.invert=function(t){var e=this.max-this.min,n=this.calcPercent(t,this.rangeMin(),this.rangeMax()),i=Math.round(e*n)+this.min;return i<this.min||i>this.max?NaN:this.values[i]},e.prototype.getText=function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=e;return Object(r["M"])(e)&&!this.values.includes(e)&&(o=this.values[o]),t.prototype.getText.apply(this,f([o],n,!1))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if(Object(r["K"])(this.getConfig("min"))&&(this.min=0),Object(r["K"])(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(l),d=p,g=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,v="[1-9]\\d?",y="\\d\\d",m="\\d{3}",b="\\d{4}",x="[^\\s]+",O=/\[([^]*?)\]/gm;function j(t,e){for(var n=[],i=0,r=t.length;i<r;i++)n.push(t[i].substr(0,e));return n}var w=function(t){return function(e,n){var i=n[t].map((function(t){return t.toLowerCase()})),r=i.indexOf(e.toLowerCase());return r>-1?r:null}};function C(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0,r=e;i<r.length;i++){var o=r[i];for(var a in o)t[a]=o[a]}return t}var M=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],S=["January","February","March","April","May","June","July","August","September","October","November","December"],A=j(S,3),k=j(M,3),F={dayNamesShort:k,dayNames:M,monthNamesShort:A,monthNames:S,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!==10?1:0)*t%10]}},E=C({},F),T=function(t){return E=C(E,t)},P=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},I=function(t,e){void 0===e&&(e=2),t=String(t);while(t.length<e)t="0"+t;return t},B={D:function(t){return String(t.getDate())},DD:function(t){return I(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return I(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return I(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return I(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return I(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return I(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return I(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return I(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return I(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return I(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return I(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+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)}},L=function(t){return+t-1},D=[null,v],R=[null,x],_=["isPm",x,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],z=["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}],Y={D:["day",v],DD:["day",y],Do:["day",v+x,function(t){return parseInt(t,10)}],M:["month",v,L],MM:["month",y,L],YY:["year",y,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",v,void 0,"isPm"],hh:["hour",y,void 0,"isPm"],H:["hour",v],HH:["hour",y],m:["minute",v],mm:["minute",y],s:["second",v],ss:["second",y],YYYY:["year",b],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond",y,function(t){return 10*+t}],SSS:["millisecond",m],d:D,dd:D,ddd:R,dddd:R,MMM:["month",x,w("monthNamesShort")],MMMM:["month",x,w("monthNames")],a:_,A:_,ZZ:z,Z:z},N={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"},G=function(t){return C(N,t)},X=function(t,e,n){if(void 0===e&&(e=N["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=N[e]||e;var i=[];e=e.replace(O,(function(t,e){return i.push(e),"@@@"}));var r=C(C({},E),n);return e=e.replace(g,(function(e){return B[e](t,r)})),e.replace(/@@@/g,(function(){return i.shift()}))};function V(t,e,n){if(void 0===n&&(n={}),"string"!==typeof e)throw new Error("Invalid format in fecha parse");if(e=N[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},o=[],a=[],s=e.replace(O,(function(t,e){return a.push(P(e)),"@@@"})),c={},l={};s=P(s).replace(g,(function(t){var e=Y[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),o.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 a.shift()}));var u=t.match(new RegExp(s,"i"));if(!u)return null;for(var h=C(C({},E),n),f=1;f<u.length;f++){var p=o[f-1],d=p[0],v=p[2],y=v?v(u[f],h):+u[f];if(null==y)return null;r[d]=y}1===r.isPm&&null!=r.hour&&12!==+r.hour?r.hour=+r.hour+12:0===r.isPm&&12===+r.hour&&(r.hour=0);for(var m=new Date(r.year,r.month,r.day,r.hour,r.minute,r.second,r.millisecond),b=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],x=(f=0,b.length);f<x;f++)if(c[b[f][0]]&&r[b[f][0]]!==m[b[f][1]]())return null;return null==r.timezoneOffset?m:new Date(Date.UTC(r.year,r.month,r.day,r.hour,r.minute-r.timezoneOffset,r.second,r.millisecond))}var H={format:X,parse:V,defaultI18n:F,setGlobalDateI18n:T,setGlobalDateMasks:G},W=H,q=function(t){return function(e,n,i,o){var a=Object(r["K"])(i)?0:i,s=Object(r["K"])(o)?e.length:o;while(a<s){var c=a+s>>>1;t(e[c])>n?s=c:a=c+1}return a}},K="format";function U(t,e){var n=i[K]||W[K];return n(t,e)}function Z(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 Q=1e3,$=60*Q,J=60*$,tt=24*J,et=31*tt,nt=365*tt,it=[["HH:mm:ss",Q],["HH:mm:ss",10*Q],["HH:mm:ss",30*Q],["HH:mm",$],["HH:mm",10*$],["HH:mm",30*$],["HH",J],["HH",6*J],["HH",12*J],["YYYY-MM-DD",tt],["YYYY-MM-DD",4*tt],["YYYY-WW",7*tt],["YYYY-MM",et],["YYYY-MM",4*et],["YYYY-MM",6*et],["YYYY",380*tt]];function rt(t,e,n){var i=(e-t)/n,o=q((function(t){return t[1]}))(it,i)-1,a=it[o];return o<0?a=it[0]:o>=it.length&&(a=Object(r["U"])(it)),a}var ot=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return h(e,t),e.prototype.translate=function(t){t=Z(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(r["M"])(t)&&t<this.values.length?t:NaN),e},e.prototype.getText=function(t,e){var n=this.translate(t);if(n>-1){var i=this.values[n],r=this.formatter;return i=r?r(i,e):U(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]=Z(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(d),at=ot,st=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return h(e,t),e.prototype.scale=function(t){if(Object(r["K"])(t))return NaN;var e=this.rangeMin(),n=this.rangeMax(),i=this.max,o=this.min;if(i===o)return e;var a=this.getScalePercent(t);return e+a*(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);n<this.min&&(this.min=n),i>this.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),ct=st,lt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return h(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}(ct),ut=lt;function ht(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 ft(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function pt(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&&t<i&&(i=t)})),i===n&&(i=n/e),i>1&&(i=1),i}var dt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return h(e,t),e.prototype.invert=function(t){var e,n=this.base,i=ft(n,this.max),r=this.rangeMin(),o=this.rangeMax()-r,a=this.positiveMin;if(a){if(0===t)return 0;e=ft(n,a/n);var s=1/(i-e)*o;if(t<s)return t/s*a}else e=ft(n,this.min);var c=(t-r)/o,l=c*(i-e)+e;return Math.pow(n,l)},e.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},e.prototype.setDomain=function(){t.prototype.setDomain.call(this);var e=this.min;if(e<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");0===e&&(this.positiveMin=pt(this.values,this.base,this.max))},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var i,r=this.base,o=this.positiveMin;return o&&(n=1*o/r),i=t<o?t/o/(ft(r,e)-ft(r,n)):(ft(r,t)-ft(r,n))/(ft(r,e)-ft(r,n)),i},e}(ct),gt=dt,vt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return h(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,i=ht(n,this.max),r=ht(n,this.min),o=e*(i-r)+r,a=o>=0?1:-1;return Math.pow(o,n)*a},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=(ht(i,t)-ht(i,n))/(ht(i,e)-ht(i,n));return r},e}(ct),yt=vt,mt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return h(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),i=this.formatter;return i?i(n,e):U(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 Z(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=[],o=1/0,a=o,s=0;Object(r["j"])(t,(function(t){var e=Z(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");o>e?(a=o,o=e):a>e&&(a=e),s<e&&(s=e),i.push(e)})),t.length>1&&(this.minTickInterval=a-o),Object(r["K"])(e)&&(this.min=o),Object(r["K"])(n)&&(this.max=s)}},e}(ut),bt=mt,xt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return h(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,i=this.getInvertPercent(t),o=Math.floor(i*(n-1));if(o>=n-1)return Object(r["U"])(e);if(o<0)return Object(r["z"])(e);var a=e[o],s=e[o+1],c=o/(n-1),l=(o+1)/(n-1);return a+(i-c)/(l-c)*(s-a)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||(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(t<Object(r["z"])(e))return 0;if(t>Object(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}(ct),Ot=xt,jt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return h(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(Ot),wt=jt,Ct={};function Mt(t){return Ct[t]}function St(t,e){if(Mt(t))throw new Error("type '"+t+"' existed.");Ct[t]=e}var At=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return h(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 t<e[0]||t>e[1]?NaN:this.values[0]},e}(l),kt=At;function Ft(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}var Et=[1,5,2,2.5,4,3],Tt=100*Number.EPSILON;function Pt(t,e){return(t%e+e)%e}function It(t){return Math.round(1e12*t)/1e12}function Bt(t,e,n,i,o,a){var s=Object(r["mb"])(e),c=Object(r["B"])(e,t),l=0,u=Pt(i,a);return(u<Tt||a-u<Tt)&&i<=0&&o>=0&&(l=1),1-c/(s-1)-n+l}function Lt(t,e,n){var i=Object(r["mb"])(e),o=Object(r["B"])(e,t),a=1;return 1-o/(i-1)-n+a}function Dt(t,e,n,i,r,o){var a=(t-1)/(o-r),s=(e-1)/(Math.max(o,i)-Math.min(n,r));return 2-Math.max(a/s,s/a)}function Rt(t,e){return t>=e?2-(t-1)/(e-1):1}function _t(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 zt(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 Yt(){return 1}function Nt(t,e,n,i,o,a){void 0===n&&(n=5),void 0===i&&(i=!0),void 0===o&&(o=Et),void 0===a&&(a=[.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]};var c={score:-2,lmin:0,lmax:0,lstep:0},l=1;while(l<1/0){for(var u=0;u<o.length;u+=1){var h=o[u],f=Lt(h,o,l);if(a[0]*f+a[1]+a[2]+a[3]<c.score){l=1/0;break}var p=2;while(p<1/0){var d=Rt(p,s);if(a[0]*f+a[1]+a[2]*d+a[3]<c.score)break;var g=(e-t)/(p+1)/l/h,v=Math.ceil(Math.log10(g));while(v<1/0){var y=l*h*Math.pow(10,v),m=zt(t,e,y*(p-1));if(a[0]*f+a[1]*m+a[2]*d+a[3]<c.score)break;var b=Math.floor(e/y)*l-(p-1)*l,x=Math.ceil(t/y)*l;if(b<=x)for(var O=x-b,j=0;j<=O;j+=1){var w=b+j,C=w*(y/l),M=C+y*(p-1),S=y,A=Bt(h,o,l,C,M,S),k=_t(t,e,C,M),F=Dt(p,s,t,e,C,M),E=Yt(),T=a[0]*A+a[1]*k+a[2]*F+a[3]*E;T>c.score&&(!i||C<=t&&M>=e)&&(c.lmin=C,c.lmax=M,c.lstep=S,c.score=T)}v+=1}p+=1}}l+=1}var P=Ft(c.lmax),I=Ft(c.lmin),B=Ft(c.lstep),L=Math.floor(It((P-I)/B))+1,D=new Array(L);D[0]=Ft(I);for(u=1;u<L;u++)D[u]=Ft(D[u-1]+B);return{min:Math.min(t,Object(r["z"])(D)),max:Math.max(e,Object(r["U"])(D)),ticks:D}}function Gt(t){var e=t.values,n=t.tickInterval,i=t.tickCount,o=e;if(Object(r["M"])(n))return Object(r["l"])(o,(function(t,e){return e%n===0}));var a=t.min,s=t.max;if(Object(r["K"])(a)&&(a=0),Object(r["K"])(s)&&(s=e.length-1),Object(r["M"])(i)&&i<s-a){var c=Nt(a,s,i,!1,[1,2,5,3,4,7,6,8,9]).ticks,l=Object(r["l"])(c,(function(t){return t>=a&&t<=s}));return l.map((function(t){return e[t]}))}return e.slice(a,s+1)}function Xt(t){var e=t.min,n=t.max,i=t.nice,r=t.tickCount,o=new Kt;return o.domain([e,n]),i&&o.nice(r),o.ticks(r)}var Vt=5,Ht=Math.sqrt(50),Wt=Math.sqrt(10),qt=Math.sqrt(2),Kt=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=Vt);var i,r=this._domain.slice(),o=0,a=this._domain.length-1,s=this._domain[o],c=this._domain[a];return c<s&&(e=[c,s],s=e[0],c=e[1],n=[a,o],o=n[0],a=n[1]),i=Zt(s,c,t),i>0?(s=Math.floor(s/i)*i,c=Math.ceil(c/i)*i,i=Zt(s,c,t)):i<0&&(s=Math.ceil(s*i)/i,c=Math.floor(c*i)/i,i=Zt(s,c,t)),i>0?(r[o]=Math.floor(s/i)*i,r[a]=Math.ceil(c/i)*i,this.domain(r)):i<0&&(r[o]=Math.ceil(s*i)/i,r[a]=Math.floor(c*i)/i,this.domain(r)),this},t.prototype.ticks=function(t){return void 0===t&&(t=Vt),Ut(this._domain[0],this._domain[this._domain.length-1],t||Vt)},t}();function Ut(t,e,n){var i,r,o,a,s=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((i=e<t)&&(r=t,t=e,e=r),0===(a=Zt(t,e,n))||!isFinite(a))return[];if(a>0){t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(r=Math.ceil(e-t+1));while(++s<r)o[s]=(t+s)*a}else{t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(r=Math.ceil(t-e+1));while(++s<r)o[s]=(t-s)/a}return i&&o.reverse(),o}function Zt(t,e,n){var i=(e-t)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=Ht?10:o>=Wt?5:o>=qt?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=Ht?10:o>=Wt?5:o>=qt?2:1)}function Qt(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 $t(t,e,n){var i=Qt(t,n,"floor"),o=Qt(e,n,"ceil");i=Object(r["p"])(i,n),o=Object(r["p"])(o,n);for(var a=[],s=i;s<=o;s+=n){var c=Object(r["p"])(s,n);a.push(c)}return{min:i,max:o,ticks:a}}function Jt(t,e,n){var i,o=t.minLimit,a=t.maxLimit,s=t.min,c=t.max,l=t.tickCount,u=void 0===l?5:l,h=Object(r["K"])(o)?Object(r["K"])(e)?s:e:o,f=Object(r["K"])(a)?Object(r["K"])(n)?c:n:a;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<u;g++)d.push(h+p*g);return d}function te(t){var e=t.min,n=t.max,i=t.tickInterval,o=t.minLimit,a=t.maxLimit,s=Xt(t);return Object(r["K"])(o)&&Object(r["K"])(a)?i?$t(e,n,i).ticks:s:Jt(t,Object(r["z"])(s),Object(r["U"])(s))}function ee(t){var e=t.min,n=t.max,i=t.tickCount,o=t.nice,a=t.tickInterval,s=t.minLimit,c=t.maxLimit,l=Nt(e,n,i,o).ticks;return Object(r["K"])(s)&&Object(r["K"])(c)?a?$t(e,n,a).ticks:l:Jt(t,Object(r["z"])(l),Object(r["U"])(l))}function ne(t){var e,n=t.base,i=t.tickCount,r=t.min,o=t.max,a=t.values,s=ft(n,o);if(r>0)e=Math.floor(ft(n,r));else{var c=pt(a,n,o);e=Math.floor(ft(n,c))}for(var l=s-e,u=Math.ceil(l/i),h=[],f=e;f<s+u;f+=u)h.push(Math.pow(n,f));return r<=0&&h.unshift(0),h}function ie(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var i=n<0?0:Math.round(n);if(0===i)return{max:e,min:t,ticks:[]};var r=1.5,o=.5+1.5*r,a=e-t,s=a/i,c=Math.pow(10,Math.floor(Math.log10(s))),l=c;2*c-s<r*(s-l)&&(l=2*c,5*c-s<o*(s-l)&&(l=5*c,10*c-s<r*(s-l)&&(l=10*c)));for(var u=Math.ceil(e/l),h=Math.floor(t/l),f=Math.max(u*l,e),p=Math.min(h*l,t),d=Math.floor((f-p)/l)+1,g=new Array(d),v=0;v<d;v++)g[v]=Ft(p+v*l);return{min:p,max:f,ticks:g}}function re(t){var e=t.exponent,n=t.tickCount,i=Math.ceil(ht(e,t.max)),r=Math.floor(ht(e,t.min)),o=ie(r,i,n).ticks;return o.map((function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n}))}function oe(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 ae(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=[],o=0;o<e;o++){var a=o/(e-1);r.push(oe(i,a))}return r}function se(t){var e=t.min,n=t.max,i=t.tickCount,o=t.tickInterval,a=t.minLimit,s=t.maxLimit,c=ie(e,n,i).ticks;return Object(r["K"])(a)&&Object(r["K"])(s)?o?$t(e,n,o).ticks:c:Jt(t,Object(r["z"])(c),Object(r["U"])(c))}function ce(t){var e=t.min,n=t.max,i=t.minTickInterval,r=t.tickInterval,o=t.tickCount;if(r)o=Math.ceil((n-e)/r);else{r=rt(e,n,o)[1];var a=(n-e)/r,s=a/o;s>1&&(r*=Math.ceil(s)),i&&r<i&&(r=i)}for(var c=[],l=e;l<n+r;l+=r)c.push(l);return c}function le(t){var e=Gt(t),n=Object(r["U"])(t.values);return n!==Object(r["U"])(e)&&e.push(n),e}function ue(t){return new Date(t).getFullYear()}function he(t){return new Date(t,0,1).getTime()}function fe(t){return new Date(t).getMonth()}function pe(t,e){var n=ue(t),i=ue(e),r=fe(t),o=fe(e);return 12*(i-n)+(o-r)%12}function de(t,e){return new Date(t,e,1).getTime()}function ge(t,e){return Math.ceil((e-t)/tt)}function ve(t,e){return Math.ceil((e-t)/J)}function ye(t,e){return Math.ceil((e-t)/6e4)}function me(t){var e=t.min,n=t.max,i=t.minTickInterval,r=t.tickCount,o=t.tickInterval,a=[];o||(o=(n-e)/r,i&&o<i&&(o=i));var s=ue(e);if(o>nt)for(var c=ue(n),l=Math.ceil(o/nt),u=s;u<=c+l;u+=l)a.push(he(u));else if(o>et){var h=Math.ceil(o/et),f=fe(e),p=pe(e,n);for(u=0;u<=p+h;u+=h)a.push(de(s,u+f))}else if(o>tt){var d=new Date(e),g=d.getFullYear(),v=d.getMonth(),y=d.getDate(),m=Math.ceil(o/tt),b=ge(e,n);for(u=0;u<b+m;u+=m)a.push(new Date(g,v,y+u).getTime())}else if(o>J){d=new Date(e),g=d.getFullYear(),v=d.getMonth(),m=d.getDate();var x=d.getHours(),O=Math.ceil(o/J),j=ve(e,n);for(u=0;u<=j+O;u+=O)a.push(new Date(g,v,m,x+u).getTime())}else if(o>$){var w=ye(e,n),C=Math.ceil(o/$);for(u=0;u<=w+C;u+=C)a.push(e+u*$)}else{var M=o;M<Q&&(M=Q);var S=Math.floor(e/Q)*Q,A=Math.ceil((n-e)/Q),k=Math.ceil(M/Q);for(u=0;u<A+k;u+=k)a.push(S+u*Q)}return a.length>=512&&console.warn("Notice: current ticks length("+a.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+o+") is too small, increase the value to solve the problem!"),a}s("cat",Gt),s("time-cat",le),s("wilkinson-extended",ee),s("r-pretty",se),s("time",ce),s("time-pretty",me),s("log",ne),s("pow",re),s("quantile",ae),s("d3-linear",te),St("cat",d),St("category",d),St("identity",kt),St("linear",ut),St("log",gt),St("pow",yt),St("time",bt),St("timeCat",at),St("quantize",Ot),St("quantile",wt)},f41e:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var i=n("8937"),r=n("c3ec");function o(t,e){return t.map((function(n,i){var o;return o={},o[r["f"]]=n-(t[i-1]||0),o[r["e"]]=""+i,o[r["d"]]=e,o})).filter((function(t){return!!t[r["f"]]}))}function a(t){var e;return[(e={},e[r["d"]]=Object(i["c"])(t,0,1),e)]}function s(t,e){var n=Object(i["s"])(e,["ticks"],[]),r=Object(i["mb"])(n)?n:[0,Object(i["c"])(t,0,1),1];return o(r,t)}},f45c:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a}));var i=n("8937");function r(t){if(Object(i["M"])(t))return[t,t,t,t];if(Object(i["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 o(t,e,n){void 0===e&&(e="bottom"),void 0===n&&(n=25);var i=r(t),o=[e.startsWith("top")?n:0,e.startsWith("right")?n:0,e.startsWith("bottom")?n:0,e.startsWith("left")?n:0];return[i[0]+o[0],i[1]+o[1],i[2]+o[2],i[3]+o[3]]}function a(t){var e=t.map((function(t){return r(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}},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"),o=n("9c29"),a=n("7326"),s=n("9f27"),c={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function l(t,e){var n=e.attr();for(var o in n){var a=n[o],s=c[o]?c[o]:o;"matrix"===s&&a?t.transform(a[0],a[1],a[3],a[4],a[6],a[7]):"lineDash"===s&&t.setLineDash?Object(i["C"])(a)&&t.setLineDash(a):("strokeStyle"===s||"fillStyle"===s?a=Object(r["b"])(t,e,a):"globalAlpha"===s&&(a*=t.globalAlpha),t[s]=a)}}function u(t,e,n){for(var i=0;i<e.length;i++){var r=e[i];r.cfg.visible?r.draw(t,n):r.skipDraw()}}function h(t,e,n){var r=t.get("refreshElements");Object(i["j"])(r,(function(e){if(e!==t){var n=e.cfg.parent;while(n&&n!==t&&!n.cfg.refresh)n.cfg.refresh=!0,n=n.cfg.parent}})),r[0]===t?d(e,n):f(e,n)}function f(t,e){for(var n=0;n<t.length;n++){var i=t[n];if(i.cfg.visible)if(i.cfg.hasChanged)i.cfg.refresh=!0,i.isGroup()&&d(i.cfg.children,e);else if(i.cfg.refresh)i.isGroup()&&f(i.cfg.children,e);else{var r=g(i,e);i.cfg.refresh=r,r&&i.isGroup()&&f(i.cfg.children,e)}}}function p(t){for(var e=0;e<t.length;e++){var n=t[e];n.cfg.hasChanged=!1,n.isGroup()&&!n.destroyed&&p(n.cfg.children)}}function d(t,e){for(var n=0;n<t.length;n++){var i=t[n];i.cfg.refresh=!0,i.isGroup()&&d(i.get("children"),e)}}function g(t,e){var n=t.cfg.cacheCanvasBBox,i=t.cfg.isInView&&n&&Object(a["f"])(n,e);return i}function v(t,e,n,i){var r=n.path,a=n.startArrow,c=n.endArrow;if(r){var l=[0,0],u=[0,0],h={dx:0,dy:0};e.beginPath();for(var f=0;f<r.length;f++){var p=r[f],d=p[0];if(0===f&&a&&a.d){var g=t.getStartTangent();h=s["c"](g[0][0],g[0][1],g[1][0],g[1][1],a.d)}else if(f===r.length-2&&"Z"===r[f+1][0]&&c&&c.d){var v=r[f+1];if("Z"===v[0]){g=t.getEndTangent();h=s["c"](g[0][0],g[0][1],g[1][0],g[1][1],c.d)}}else if(f===r.length-1&&c&&c.d&&"Z"!==r[0]){g=t.getEndTangent();h=s["c"](g[0][0],g[0][1],g[1][0],g[1][1],c.d)}var y=h.dx,m=h.dy;switch(d){case"M":e.moveTo(p[1]-y,p[2]-m),u=[p[1],p[2]];break;case"L":e.lineTo(p[1]-y,p[2]-m);break;case"Q":e.quadraticCurveTo(p[1],p[2],p[3]-y,p[4]-m);break;case"C":e.bezierCurveTo(p[1],p[2],p[3],p[4],p[5]-y,p[6]-m);break;case"A":var b=void 0;i?(b=i[f],b||(b=Object(o["a"])(l,p),i[f]=b)):b=Object(o["a"])(l,p);var x=b.cx,O=b.cy,j=b.rx,w=b.ry,C=b.startAngle,M=b.endAngle,S=b.xRotation,A=b.sweepFlag;if(e.ellipse)e.ellipse(x,O,j,w,S,C,M,1-A);else{var k=j>w?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 T=p.length;l=[p[T-2],p[T-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(),o=r&&!(!r.width||!r.height);i&&o?e=Object(a["l"])(n,r):i?e=n:o&&(e=r)}return e}function b(t){if(!t.length)return null;var e=[],n=[],r=[],o=[];return Object(i["j"])(t,(function(t){var i=m(t);i&&(e.push(i.minX),n.push(i.minY),r.push(i.maxX),o.push(i.maxY))})),{minX:Object(i["bb"])(e),minY:Object(i["bb"])(n),maxX:Object(i["Y"])(r),maxY:Object(i["Y"])(o)}}function x(t,e){return t&&e&&Object(a["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}},f7a9:function(t,e,n){"use strict";var i=n("9ab4"),r=n("8937"),o=n("41c8"),a=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,o=n.xField,a=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[a],u=t[o];if(r["C"](l)){var h=(c-s[u])/2;return Object(i["a"])(Object(i["a"])({},t),(e={},e[a]=r["W"](l,(function(t){return h+t})),e))}var f=(c-l)/2;return Object(i["a"])(Object(i["a"])({},t),(n={},n[a]=[f,l+f],n))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this,i=n.xField,o=n.yField,a=r["w"](t,(function(t){return t[i]}));return r["X"](a,(function(t){return e.getDimMaxValue(t,o)}))},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}(o["a"]);e["a"]=a},f7cc:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("8937");var i={locale:"en-US"}},f83c:function(t,e,n){"use strict";var i=n("00c6"),r=n("330d"),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["a"])(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;i<n.length;i++){var r=n[i];e.add(r.clone())}return e},e}(r["a"]);e["a"]=o},f8d7:function(t,e,n){"use strict";var i=n("0dd4"),r=n("14f3");e["a"]=function(){var t=1,e=1,n=0,o=!1;function a(r){var a=r.height+1;return r.x0=r.y0=n,r.x1=t,r.y1=e/a,r.eachBefore(s(e,a)),o&&r.eachBefore(i["a"]),r}function s(t,e){return function(i){i.children&&Object(r["a"])(i,i.x0,t*(i.depth+1)/e,i.x1,t*(i.depth+2)/e);var o=i.x0,a=i.y0,s=i.x1-n,c=i.y1-n;s<o&&(o=s=(o+s)/2),c<a&&(a=c=(a+c)/2),i.x0=o,i.y0=a,i.x1=s,i.y1=c}}return a.round=function(t){return arguments.length?(o=!!t,a):o},a.size=function(n){return arguments.length?(t=+n[0],e=+n[1],a):[t,e]},a.padding=function(t){return arguments.length?(n=+t,a):n},a}},fb05:function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("8937"),a=n("62e3"),s=n("c34d"),c=n("58e4"),l=n("e474");function u(t){var e=t.chart,n=t.options,i=n.data,r=n.type,s=n.xField,u=n.yField,h=n.colorField,f=n.sizeField,p=n.sizeRatio,d=n.shape,g=n.color,v=n.tooltip,y=n.heatmapStyle;e.data(i);var m="polygon";"density"===r&&(m="heatmap");var b=Object(l["a"])(v,[s,u,h]),x=b.fields,O=b.formatter,j=1;return(p||0===p)&&(d||f?p<0||p>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):j=p:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),Object(c["a"])(Object(a["c"])({},t,{options:{type:m,colorField:h,tooltipFields:x,shapeField:f||"",label:void 0,mapping:{tooltip:O,shape:d&&(f?function(t){var e=i.map((function(t){return t[f]})),n=Math.min.apply(Math,e),r=Math.max.apply(Math,e);return[d,(Object(o["s"])(t,f)-n)/(r-n),j]}:function(){return[d,1,j]}),color:g||h&&e.getTheme().sequenceColors.join("-"),style:y}}})),t}function h(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,c=n.yField;return Object(a["f"])(Object(s["g"])((e={},e[o]=i,e[c]=r,e)))(t)}function f(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return!1===i?e.axis(o,!1):e.axis(o,i),!1===r?e.axis(a,!1):e.axis(a,r),t}function p(t){var e=t.chart,n=t.options,i=n.legend,r=n.colorField,o=n.sizeField,a=n.sizeLegend,s=!1!==i;return r&&e.legend(r,!!s&&i),o&&e.legend(o,void 0===a?i:a),s||a||e.legend(!1),t}function d(t){var e=t.chart,n=t.options,r=n.label,o=n.colorField,s=n.type,c=Object(a["d"])(e,"density"===s?"heatmap":"polygon");if(r){if(o){var l=r.callback,u=Object(i["c"])(r,["callback"]);c.label({fields:[o],callback:l,cfg:Object(a["A"])(u)})}}else c.label(!1);return t}function g(t){var e=t.chart,n=t.options,i=n.coordinate,r=n.reflect;return i&&e.coordinate({type:i.type||"rect",cfg:i.cfg}),r&&e.coordinate().reflect(r),t}function v(t){return Object(a["f"])(s["k"],Object(s["f"])("heatmapStyle"),h,g,u,f,p,s["l"],d,Object(s["b"])(),s["c"],s["a"],s["j"])(t)}var y=Object(a["c"])({},r["b"].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"}}}}}),m=n("917c");Object(m["p"])("polygon","circle",{draw:function(t,e){var n,r,o=t.x,a=t.y,s=this.parsePoints(t.points),c=Math.abs(s[2].x-s[1].x),l=Math.abs(s[1].y-s[0].y),u=Math.min(c,l)/2,h=Number(t.shape[1]),f=Number(t.shape[2]),p=Math.sqrt(f),d=u*p*Math.sqrt(h),g=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(r=t.defaultStyle)||void 0===r?void 0:r.fill),v=e.addShape("circle",{attrs:Object(i["a"])(Object(i["a"])(Object(i["a"])({x:o,y:a,r:d},t.defaultStyle),t.style),{fill:g})});return v}}),Object(m["p"])("polygon","square",{draw:function(t,e){var n,r,o=t.x,a=t.y,s=this.parsePoints(t.points),c=Math.abs(s[2].x-s[1].x),l=Math.abs(s[1].y-s[0].y),u=Math.min(c,l),h=Number(t.shape[1]),f=Number(t.shape[2]),p=Math.sqrt(f),d=u*p*Math.sqrt(h),g=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(r=t.defaultStyle)||void 0===r?void 0:r.fill),v=e.addShape("rect",{attrs:Object(i["a"])(Object(i["a"])(Object(i["a"])({x:o-d/2,y:a-d/2,width:d,height:d},t.defaultStyle),t.style),{fill:g})});return v}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return y},e.prototype.getSchemaAdaptor=function(){return v},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}})(r["b"])},fb77:function(t,e,n){"use strict";function i(t){return+t}function r(t){return t*t}function o(t){return t*(2-t)}function a(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function s(t){return t*t*t}function c(t){return--t*t*t+1}function l(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.r(e),n.d(e,"easeLinear",(function(){return i})),n.d(e,"easeQuad",(function(){return a})),n.d(e,"easeQuadIn",(function(){return r})),n.d(e,"easeQuadOut",(function(){return o})),n.d(e,"easeQuadInOut",(function(){return a})),n.d(e,"easeCubic",(function(){return l})),n.d(e,"easeCubicIn",(function(){return s})),n.d(e,"easeCubicOut",(function(){return c})),n.d(e,"easeCubicInOut",(function(){return l})),n.d(e,"easePoly",(function(){return p})),n.d(e,"easePolyIn",(function(){return h})),n.d(e,"easePolyOut",(function(){return f})),n.d(e,"easePolyInOut",(function(){return p})),n.d(e,"easeSin",(function(){return m})),n.d(e,"easeSinIn",(function(){return v})),n.d(e,"easeSinOut",(function(){return y})),n.d(e,"easeSinInOut",(function(){return m})),n.d(e,"easeExp",(function(){return j})),n.d(e,"easeExpIn",(function(){return x})),n.d(e,"easeExpOut",(function(){return O})),n.d(e,"easeExpInOut",(function(){return j})),n.d(e,"easeCircle",(function(){return M})),n.d(e,"easeCircleIn",(function(){return w})),n.d(e,"easeCircleOut",(function(){return C})),n.d(e,"easeCircleInOut",(function(){return M})),n.d(e,"easeBounce",(function(){return R})),n.d(e,"easeBounceIn",(function(){return D})),n.d(e,"easeBounceOut",(function(){return R})),n.d(e,"easeBounceInOut",(function(){return _})),n.d(e,"easeBack",(function(){return G})),n.d(e,"easeBackIn",(function(){return Y})),n.d(e,"easeBackOut",(function(){return N})),n.d(e,"easeBackInOut",(function(){return G})),n.d(e,"easeElastic",(function(){return q})),n.d(e,"easeElasticIn",(function(){return W})),n.d(e,"easeElasticOut",(function(){return q})),n.d(e,"easeElasticInOut",(function(){return K}));var u=3,h=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(u),f=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(u),p=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}(u),d=Math.PI,g=d/2;function v(t){return 1===+t?1:1-Math.cos(t*g)}function y(t){return Math.sin(t*g)}function m(t){return(1-Math.cos(d*t))/2}function b(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function x(t){return b(1-+t)}function O(t){return 1-b(t)}function j(t){return((t*=2)<=1?b(1-t):2-b(t-1))/2}function w(t){return 1-Math.sqrt(1-t*t)}function C(t){return Math.sqrt(1- --t*t)}function M(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var S=4/11,A=6/11,k=8/11,F=3/4,E=9/11,T=10/11,P=15/16,I=21/22,B=63/64,L=1/S/S;function D(t){return 1-R(1-t)}function R(t){return(t=+t)<S?L*t*t:t<k?L*(t-=A)*t+F:t<T?L*(t-=E)*t+P:L*(t-=I)*t+B}function _(t){return((t*=2)<=1?1-R(1-t):R(t-1)+1)/2}var z=1.70158,Y=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(z),N=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(z),G=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(z),X=2*Math.PI,V=1,H=.3,W=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=X);function r(t){return e*b(- --t)*Math.sin((i-t)/n)}return r.amplitude=function(e){return t(e,n*X)},r.period=function(n){return t(e,n)},r}(V,H),q=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=X);function r(t){return 1-e*b(t=+t)*Math.sin((t+i)/n)}return r.amplitude=function(e){return t(e,n*X)},r.period=function(n){return t(e,n)},r}(V,H),K=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=X);function r(t){return((t=2*t-1)<0?e*b(-t)*Math.sin((i-t)/n):2-e*b(t)*Math.sin((i+t)/n))/2}return r.amplitude=function(e){return t(e,n*X)},r.period=function(n){return t(e,n)},r}(V,H)},ff7f:function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return p})),n.d(e,"Circle",(function(){return g})),n.d(e,"Base",(function(){return h})),n.d(e,"Html",(function(){return w}));var i,r=n("2c79"),o=n("e546"),a=n("8937"),s=n("31e6"),c=n("8ea8"),l=n("2f5e"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r["a"])(Object(r["a"])({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:l["a"].lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:l["a"].textColor,textAlign:"center",textBaseline:"middle",fontFamily:l["a"].fontFamily}},textBackground:{padding:5,style:{stroke:l["a"].lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var e=this.get("text"),n=e.style,i=e.autoRotate,o=e.content;if(!Object(a["K"])(o)){var s=this.getTextPoint(),l=null;if(i){var u=this.getRotateAngle();l=Object(c["e"])(s,u)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:Object(r["a"])(Object(r["a"])(Object(r["a"])({},s),{text:o,matrix:l}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line"),i=n.style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:Object(r["a"])({path:e},i)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),i=this.get("textBackground");if(i&&n){var a=n.getBBox(),s=Object(o["c"])(i.padding),c=i.style,l=this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:Object(r["a"])({x:a.x-s[3],y:a.y-s[0],width:a.width+s[1]+s[3],height:a.height+s[0]+s[2],matrix:n.attr("matrix")},c)});l.toBack()}},e}(s["a"]),h=u,f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r["a"])(Object(r["a"])({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,n=t.end,i=this.get("text").position,r=Math.atan2(n.y-e.y,n.x-e.x),o="start"===i?r-Math.PI/2:r+Math.PI/2;return o},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,i=this.get("text"),r=i.position,a=i.offset;return Object(o["f"])(e,n,r,a)},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,n=t.end;return[["M",e.x,e.y],["L",n.x,n.y]]},e}(h),p=f,d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r["a"])(Object(r["a"])({},e),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.startAngle,n=t.endAngle,i=this.get("text").position,r="start"===i?e+Math.PI/2:n-Math.PI/2;return r},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,n=t.offset,i=this.getLocation(),r=i.center,a=i.radius,s=i.startAngle,c=i.endAngle,l="start"===e?s:c,u=this.getRotateAngle()-Math.PI,h=Object(o["e"])(r,a,l),f=Math.cos(u)*n,p=Math.sin(u)*n;return{x:h.x+f,y:h.y+p}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,i=t.startAngle,r=t.endAngle,a=null;if(r-i===2*Math.PI){var s=e.x,c=e.y;a=[["M",s,c-n],["A",n,n,0,1,1,s,c+n],["A",n,n,0,1,1,s,c-n],["Z"]]}else{var l=Object(o["e"])(e,n,i),u=Object(o["e"])(e,n,r),h=Math.abs(r-i)>Math.PI?1:0,f=i>r?0:1;a=[["M",l.x,l.y],["A",n,n,0,h,f,u.x,u.y]]}return a},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["b"])(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:'<div class="'+m+'"></div>',crosshairTpl:'<div class="'+b+'"></div>',textTpl:'<span class="'+x+'">{content}</span>',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,a=i.offset;return Object(o["f"])(e,n,r,a)},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(a["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(o["l"])(Math.abs(n.y-e.y))}):Object(v["e"])(t,{height:"1px",width:Object(o["l"])(Math.abs(n.x-e.x))}),Object(v["e"])(t,{top:Object(o["l"])(r),left:Object(o["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(o["l"])(i.y),left:Object(o["l"])(i.x)})}},e.prototype.updateInner=function(e){Object(a["y"])(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(y["a"]),w=j},ffed:function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("c34d"),a=n("b4aa"),s=n("62e3"),c=n("9ff2"),l="$$stock-range$$",u="trend",h="up",f="down",p={showMarkers:!1,showCrosshairs:!0,shared:!0,crosshairs:{type:"xy",follow:!0,text:function(t,e,n){var i;if("x"===t){var r=n[0];i=r?r.title:e}else i=e;return{position:"y"===t?"start":"end",content:i,style:{fill:"#dfdfdf"}}},textBackground:{padding:[2,4],style:{fill:"#666"}}}},d=Object(s["c"])({},r["b"].getDefaultOptions(),{tooltip:p,interactions:[{type:"tooltip"}],legend:{position:"top-left"},risingFill:"#ef5350",fallingFill:"#26a69a"}),g=n("8937");function v(t,e){return Object(g["W"])(t,(function(t){if(Object(g["C"])(e)){var n=e[0],i=e[1],r=e[2],o=e[3];t[u]=t[n]<=t[i]?h:f,t[l]=[t[n],t[i],t[r],t[o]]}return t}))}function y(t){var e=t.chart,n=t.options,i=n.yField,r=n.data,o=n.risingFill,c=n.fallingFill,h=n.tooltip,f=n.stockStyle;e.data(v(r,i));var p=h;return!1!==p&&(p=Object(s["c"])({},{fields:i},p)),Object(a["g"])(Object(s["c"])({},t,{options:{schema:{shape:"candle",color:[o,c],style:f},yField:l,seriesField:u,rawFields:i,tooltip:p}})),t}function m(t){var e,n,i=t.chart,r=t.options,o=r.meta,a=r.xAxis,p=r.yAxis,d=r.xField,g=(e={},e[d]={type:"timeCat",tickCount:6},e[u]={values:[h,f]},e),v=Object(s["c"])(g,o,(n={},n[d]=Object(s["t"])(a,c["a"]),n[l]=Object(s["t"])(p,c["a"]),n));return i.scale(v),t}function b(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField;return!1===i?e.axis(o,!1):e.axis(o,i),!1===r?e.axis(l,!1):e.axis(l,r),t}function x(t){var e=t.chart,n=t.options,i=n.tooltip;return!1!==i?e.tooltip(i):e.tooltip(!1),t}function O(t){var e=t.chart,n=t.options,i=n.legend;return i?e.legend(u,i):!1===i&&e.legend(!1),t}function j(t){Object(s["f"])(o["k"],y,m,b,x,O,o["c"],o["a"],Object(o["b"])(),o["i"])(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stock",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return d},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return j},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField;this.chart.changeData(v(t,e))}})(r["b"])}}]);