Files
icehrm/web/dist/vendorAntv.js
Thilina Pituwala b1df0037db License updated to GPLv3
🧲 New features
Custom user role permissions
Employee edit form updated
Employee daily task list
Attendance and employee distribution charts on dashboard
Improvements to company structure and company assets module
Improved tables for displaying data in several modules
Faster data loading (specially for employee module)
Initials based profile pictures
Re-designed login page
Re-designed user profile page
Improvements to filtering
New REST endpoints for employee qualifications

🐛 Bug fixes
Fixed, issue with managers being able to create performance reviews for employees who are not their direct reports
Fixed, issues related to using full profile image instead of using smaller version of profile image
Changing third gender to other
Improvements and fixes for internal frontend data caching
2020-10-31 19:02:37 +01:00

54 lines
1.3 MiB
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
require=function t(e,i,n){function r(o,s){if(!i[o]){if(!e[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(a)return a(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var c=i[o]={exports:{}};e[o][0].call(c.exports,(function(t){return r(e[o][1][t]||t)}),c,c.exports,t,e,i,n)}return i[o].exports}for(var a="function"==typeof require&&require,o=0;o<n.length;o++)r(n[o]);return r}({1:[function(t,e,i){var n,r,a=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var u,c=[],p=!1,h=-1;function f(){p&&u&&(p=!1,u.length?c=u.concat(c):h=-1,c.length&&d())}function d(){if(!p){var t=l(f);p=!0;for(var e=c.length;e;){for(u=c,c=[];++h<e;)u&&u[h].run();h=-1,e=c.length}u=null,p=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function v(){}a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];c.push(new g(t,e)),1!==c.length||p||l(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=v,a.addListener=v,a.once=v,a.off=v,a.removeListener=v,a.removeAllListeners=v,a.emit=v,a.prependListener=v,a.prependOnceListener=v,a.listeners=function(t){return[]},a.binding=function(t){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(t){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],2:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("../constant"),a=function(){function t(t){var e=t.xField,i=t.yField,n=t.adjustNames,r=void 0===n?["x","y"]:n;this.adjustNames=r,this.xField=e,this.yField=i}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,i){var n,r,a=this.yField,o=i.indexOf(e),s=i.length;return!a&&this.isAdjust("y")?(n=0,r=1):s>1?(n=i[0===o?0:o-1],r=i[o===s-1?s-1:o+1],0!==o?n+=(e-n)/2:n-=(r-e)/2,o!==s-1?r-=(r-e)/2:r+=(e-i[s-2])/2):(n=0===e?0:e-.5,r=0===e?1:e+.5),{pre:n,next:r}},t.prototype.adjustData=function(t,e){var i=this,r=this.getDimValues(e);n.each(t,(function(t,e){n.each(r,(function(n,r){i.adjustDim(r,n,t,e)}))}))},t.prototype.groupData=function(t,e){return n.each(t,(function(t){void 0===t[e]&&(t[e]=r.DEFAULT_Y)})),n.groupBy(t,e)},t.prototype.adjustDim=function(t,e,i,n){},t.prototype.getDimValues=function(t){var e=this.xField,i=this.yField,a={},o=[];if(e&&this.isAdjust("x")&&o.push(e),i&&this.isAdjust("y")&&o.push(i),o.forEach((function(e){a[e]=n.valuesOfKey(t,e).sort((function(t,e){return t-e}))})),!i&&this.isAdjust("y")){a.y=[r.DEFAULT_Y,1]}return a},t}();i.default=a},{"../constant":7,"@antv/util":803}],3:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../constant"),o=function(t){function e(e){var i=t.call(this,e)||this;i.cacheMap={},i.adjustDataArray=[],i.mergeData=[];var n=e.marginRatio,r=void 0===n?a.MARGIN_RATIO:n,o=e.dodgeRatio,s=void 0===o?a.DODGE_RATIO:o,l=e.dodgeBy;return i.marginRatio=r,i.dodgeRatio=s,i.dodgeBy=l,i}return n.__extends(e,t),e.prototype.process=function(t){var e=r.clone(t),i=r.flatten(e),n=this.dodgeBy,a=n?r.group(i,n):e;return this.cacheMap={},this.adjustDataArray=a,this.mergeData=i,this.adjustData(a,i),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,i,n){var a=this,o=this.getDistribution(t),s=this.groupData(i,t);return r.each(s,(function(i,s){var l;l=1===e.length?{pre:e[0]-1,next:e[0]+1}:a.getAdjustRange(t,parseFloat(s),e),r.each(i,(function(e){var i=e[t],r=o[i],s=r.indexOf(n);e[t]=a.getDodgeOffset(l,s,r.length)}))})),[]},e.prototype.getDodgeOffset=function(t,e,i){var n=this.dodgeRatio,r=this.marginRatio,a=t.pre,o=t.next,s=o-a,l=s*n/i,u=r*l;return(a+o)/2+(.5*(s-i*l-(i-1)*u)+((e+1)*l+e*u)-.5*l-.5*s)},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,i=this.cacheMap,n=i[t];return n||(n={},r.each(e,(function(e,i){var a=r.valuesOfKey(e,t);a.length||a.push(0),r.each(a,(function(t){n[t]||(n[t]=[]),n[t].push(i)}))})),i[t]=n),n},e}(t("./adjust").default);i.default=o},{"../constant":7,"./adjust":2,"@antv/util":803,tslib:894}],4:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../constant");var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.process=function(t){var e=r.clone(t),i=r.flatten(e);return this.adjustData(e,i),e},e.prototype.adjustDim=function(t,e,i){var n=this,a=this.groupData(i,t);return r.each(a,(function(i,r){return n.adjustGroup(i,t,parseFloat(r),e)}))},e.prototype.getAdjustOffset=function(t){var e,i=t.pre,n=t.next,r=(n-i)*a.GAP;return(n-r-(e=i+r))*Math.random()+e},e.prototype.adjustGroup=function(t,e,i,n){var a=this,o=this.getAdjustRange(e,i,n);return r.each(t,(function(t){t[e]=a.getAdjustOffset(o)})),t},e}(t("./adjust").default);i.default=o},{"../constant":7,"./adjust":2,"@antv/util":803,tslib:894}],5:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("./adjust"),o=r.Cache,s=function(t){function e(e){var i=t.call(this,e)||this,n=e.adjustNames,r=void 0===n?["y"]:n,a=e.height,o=void 0===a?NaN:a,s=e.size,l=void 0===s?10:s,u=e.reverseOrder,c=void 0!==u&&u;return i.adjustNames=r,i.height=o,i.size=l,i.reverseOrder=c,i}return n.__extends(e,t),e.prototype.process=function(t){var e=this.yField,i=this.reverseOrder,n=e?this.processStack(t):this.processOneDimStack(t);return i?this.reverse(n):n},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this.xField,i=this.yField,a=this.reverseOrder?this.reverse(t):t,s=new o,l=new o;return a.map((function(t){return t.map((function(t){var a,o=r.get(t,e,0),u=r.get(t,i),c=o.toString();if(u=r.isArray(u)?u[1]:u,!r.isNil(u)){var p=u>=0?s:l;p.has(c)||p.set(c,0);var h=p.get(c),f=u+h;return p.set(c,f),n.__assign(n.__assign({},t),((a={})[i]=[h,f],a))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,i=this.xField,r=this.height,a=this.reverseOrder,s=a?this.reverse(t):t,l=new o;return s.map((function(t){return t.map((function(t){var a,o=e.size,s=t[i],u=2*o/r;l.has(s)||l.set(s,u/2);var c=l.get(s);return l.set(s,c+u),n.__assign(n.__assign({},t),((a={}).y=c,a))}))}))},e}(a.default);i.default=s},{"./adjust":2,"@antv/util":803,tslib:894}],6:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.process=function(t){var e=r.flatten(t),i=this.xField,a=this.yField,o=this.getXValuesMaxMap(e),s=Math.max.apply(Math,Object.keys(o).map((function(t){return o[t]})));return r.map(t,(function(t){return r.map(t,(function(t){var e,l,u=t[a],c=t[i];if(r.isArray(u)){var p=(s-o[c])/2;return n.__assign(n.__assign({},t),((e={})[a]=r.map(u,(function(t){return p+t})),e))}var h=(s-u)/2;return n.__assign(n.__assign({},t),((l={})[a]=[h,u+h],l))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,i=this.xField,n=this.yField,a=r.groupBy(t,(function(t){return t[i]}));return r.mapValues(a,(function(t){return e.getDimMaxValue(t,n)}))},e.prototype.getDimMaxValue=function(t,e){var i=r.map(t,(function(t){return r.get(t,e,[])})),n=r.flatten(i);return Math.max.apply(Math,n)},e}(t("./adjust").default);i.default=a},{"./adjust":2,"@antv/util":803,tslib:894}],7:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.DEFAULT_Y=0,i.MARGIN_RATIO=.5,i.DODGE_RATIO=.5,i.GAP=.05},{}],8:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./adjusts/adjust");i.Adjust=n.default;var r={},a=function(t){return r[t.toLowerCase()]};i.getAdjust=a;i.registerAdjust=function(t,e){if(a(t))throw new Error("Adjust type '"+t+"' existed.");r[t.toLowerCase()]=e}},{"./adjusts/adjust":2}],9:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./factory");i.getAdjust=n.getAdjust,i.registerAdjust=n.registerAdjust;var r=t("./adjusts/adjust");i.Adjust=r.default;var a=t("./adjusts/dodge"),o=t("./adjusts/jitter"),s=t("./adjusts/stack"),l=t("./adjusts/symmetric");n.registerAdjust("Dodge",a.default),n.registerAdjust("Jitter",o.default),n.registerAdjust("Stack",s.default),n.registerAdjust("Symmetric",l.default)},{"./adjusts/adjust":2,"./adjusts/dodge":3,"./adjusts/jitter":4,"./adjusts/stack":5,"./adjusts/symmetric":6,"./factory":8}],10:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=function(t,e){return n.isString(e)?e:t.invert(t.scale(e))},a=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=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=e.map((function(e,i){return t._toOriginParam(e,t.scales[i])}));return this.callback.apply(this,n)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,i=Math.floor(e*t),n=e*t-i,r=this.values[i];return r+((i===e?r:this.values[i+1])-r)*n},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,i=Math.min(t.length,e.length),n=[],r=0;r<i;r+=1)n.push(e[r]);return n},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=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return 0===e.length?this.values:e.map((function(e,i){var n=t.scales[i];return"identity"===n.type?n.values[0]:t._getAttributeValue(n,e)}))},t.prototype._parseCfg=function(t){var e=this,i=t.type,r=void 0===i?"base":i,a=t.names,o=void 0===a?[]:a,s=t.scales,l=void 0===s?[]:s,u=t.values,c=void 0===u?[]:u,p=t.callback;this.type=r,this.scales=l,this.values=c,this.names=o,this.callback=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];if(p){var r=p.apply(void 0,t);if(!n.isNil(r))return[r]}return e.defaultCallback.apply(e,t)}},t.prototype._getAttributeValue=function(t,e){if(t.isCategory&&!this.linear){var i=t.translate(e);return this.values[i%this.values.length]}var n=t.scale(e);return this.getLinearValue(n)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:n.isArray(t)?t.map((function(t){return r(e,t)})):r(e,t)},t}();i.default=a},{"@antv/util":803}],11:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/color-util"),a=t("@antv/util"),o=function(t){function e(e){var i=t.call(this,e)||this;return i.type="color",i.names=["color"],a.isString(i.values)&&(i.linear=!0),i.gradient=r.default.gradient(i.values),i}return n.__extends(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(t("./base").default);i.default=o},{"./base":10,"@antv/color-util":19,"@antv/util":803,tslib:894}],12:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=function(t){function e(e){var i=t.call(this,e)||this;return i.type="opacity",i.names=["opacity"],i}return n.__extends(e,t),e}(t("./base").default);i.default=r},{"./base":10,tslib:894}],13:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(e){var i=t.call(this,e)||this;return i.names=["x","y"],i.type="position",i}return n.__extends(e,t),e.prototype.mapping=function(t,e){var i=this.scales,n=i[0],a=i[1];return r.isNil(t)||r.isNil(e)?[]:[r.isArray(t)?t.map((function(t){return n.scale(t)})):n.scale(t),r.isArray(e)?e.map((function(t){return a.scale(t)})):a.scale(e)]},e}(t("./base").default);i.default=a},{"./base":10,"@antv/util":803,tslib:894}],14:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=function(t){function e(e){var i=t.call(this,e)||this;return i.type="shape",i.names=["shape"],i}return n.__extends(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(t("./base").default);i.default=r},{"./base":10,tslib:894}],15:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=function(t){function e(e){var i=t.call(this,e)||this;return i.type="size",i.names=["size"],i}return n.__extends(e,t),e}(t("./base").default);i.default=r},{"./base":10,tslib:894}],16:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("./attributes/base");i.Attribute=r.default;var a={},o=function(t){return a[t.toLowerCase()]};i.getAttribute=o;i.registerAttribute=function(t,e){if(o(t))throw new Error("Attribute type '"+t+"' existed.");a[t.toLowerCase()]=e},n.__exportStar(t("./interface"),i)},{"./attributes/base":10,"./interface":18,tslib:894}],17:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("./attributes/base");i.Attribute=r.default;var a=t("./attributes/color");i.Color=a.default;var o=t("./attributes/opacity");i.Opacity=o.default;var s=t("./attributes/position");i.Position=s.default;var l=t("./attributes/shape");i.Shape=l.default;var u=t("./attributes/size");i.Size=u.default;var c=t("./factory");i.getAttribute=c.getAttribute,i.registerAttribute=c.registerAttribute,c.registerAttribute("Color",a.default),c.registerAttribute("Opacity",o.default),c.registerAttribute("Position",s.default),c.registerAttribute("Shape",l.default),c.registerAttribute("Size",u.default),n.__exportStar(t("./interface"),i)},{"./attributes/base":10,"./attributes/color":11,"./attributes/opacity":12,"./attributes/position":13,"./attributes/shape":14,"./attributes/size":15,"./factory":16,"./interface":18,tslib:894}],18:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/scale");i.Scale=n.Scale},{"@antv/scale":747}],19:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=/rgba?\(([\s.,0-9]+)\)/,a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,l=function(t,e,i,n){return t[n]+(e[n]-t[n])*i};function u(t){return"#"+h(t[0])+h(t[1])+h(t[2])}var c,p=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},h=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},f=function(t){if("#"===t[0]&&7===t.length)return t;var e;c||((e=document.createElement("i")).title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),c=e),c.style.color=t;var i=document.defaultView.getComputedStyle(c,"").getPropertyValue("color");return i=u(r.exec(i)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))};i.default={rgb2arr:p,gradient:function(t){var e=n.isString(t)?t.split("-"):t,i=n.map(e,(function(t){return p(-1===t.indexOf("#")?f(t):t)}));return function(t){return function(t,e){var i=isNaN(Number(e))||e<0?0:e>1?1:Number(e),n=t.length-1,r=Math.floor(n*i),a=n*i-r,o=t[r],s=r===n?o:t[r+1];return u([l(o,s,a,0),l(o,s,a,1),l(o,s,a,2)])}(i,t)}},toRGB:n.memoize(f),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,i=void 0;if("l"===t[0]){var r=+(l=a.exec(t))[1]+90;i=l[2],e="linear-gradient("+r+"deg, "}else if("r"===t[0]){var l;e="radial-gradient(",i=(l=o.exec(t))[4]}var u=i.match(s);return n.each(u,(function(t,i){var n=t.split(":");e+=n[1]+" "+100*n[0]+"%",i!==u.length-1&&(e+=", ")})),e+=")"}return t}}},{"@antv/util":803}],20:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/g-base"),a=t("@antv/util"),o={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},s=function(t){function e(e){var i=t.call(this,e)||this;return i.initCfg(),i}return n.__extends(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,i=this.get("defaultCfg");a.each(t,(function(t,n){var r=t;e.get(n)!==t&&(a.isObject(t)&&i[n]&&(r=a.deepMix({},i[n],t)),e.set(n,r))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){a.hasKey(t,"visible")&&(t.visible?this.show():this.hide()),a.hasKey(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=n.__assign({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},i=this.get("locationType"),n=o[i];return a.each(n,(function(i){e[i]=t.get(i)})),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");a.each(e,(function(e,i){var n=t.get(i);if(a.isObject(n)){var r=a.deepMix({},e,n);t.set(i,r)}}))},e}(r.Base);i.default=s},{"@antv/g-base":115,"@antv/util":803,tslib:894}],21:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../util/event"),o=t("../util/matrix"),s=t("../util/util"),l=t("./component"),u=["visible","tip","delegateObject"],c=["container","group","shapesMap","isRegister","isUpdating","destroyed"],p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear(),this.get("group").remove()},e.prototype.clear=function(){this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t);return e&&e.get("component")},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 r.each(this.get("shapesMap"),(function(i){i.get("name")===t&&e.push(i)})),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(){this.get("group").show(),this.set("visible",!0)},e.prototype.hide=function(){this.get("group").hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){this.get("group").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(),i=t.getTotalMatrix();return i&&(e=o.applyMatrix2BBox(i,e)),e},e.prototype.on=function(t,e,i){return this.get("group").on(t,e,i),this},e.prototype.off=function(t,e){var i=this.get("group");return i&&i.off(t,e),this},e.prototype.emit=function(t,e){this.get("group").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 i=this.get("group");e.target=i,i.emit(t,e),a.propagationDelegate(i,t,e)},e.prototype.createOffScreenGroup=function(){return new(this.get("group").getGroupBase())({delegateObject:this.getDelegateObject()})},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",s.getBBoxWithClip(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var i=t.addGroup(e);return this.get("isRegister")&&this.registerElement(i),i},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var i=t.addShape(e);return this.get("isRegister")&&this.registerElement(i),i},e.prototype.addComponent=function(t,e){var i=e.id,r=e.component,a=n.__rest(e,["id","component"]),o=new r(n.__assign(n.__assign({},a),{id:i,container:t,updateAutoRender:this.get("updateAutoRender")}));return o.init(),o.render(),this.get("isRegister")&&this.registerElement(o.get("group")),o},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){this.get("group").off()},e.prototype.getElementId=function(t){return this.get("id")+"-"+this.get("name")+"-"+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 i=o.getMatrixByTranslate(e);t.attr("matrix",i)},e.prototype.addAnimation=function(t,e,i){var n=e.attr("opacity");r.isNil(n)&&(n=1),e.attr("opacity",0),e.animate({opacity:n},i)},e.prototype.removeAnimation=function(t,e,i){e.animate({opacity:0},i)},e.prototype.updateAnimation=function(t,e,i,n){e.animate(i,n)},e.prototype.updateElements=function(t,e){var i,n=this,a=this.get("animate"),o=this.get("animateOption"),l=t.getChildren().slice(0);r.each(l,(function(t){var l=t.get("id"),p=n.getElementById(l),h=t.get("name");if(p)if(t.get("isComponent")){var f=t.get("component"),d=p.get("component"),g=r.pick(f.cfg,r.difference(r.keys(f.cfg),c));d.update(g),p.set("update_status","update")}else{var v=n.getReplaceAttrs(p,t);a&&o.update?n.updateAnimation(h,p,v,o.update):p.attr(v),t.isGroup()&&n.updateElements(t,p),r.each(u,(function(e){p.set(e,t.get(e))})),s.updateClip(p,t),i=p,p.set("update_status","update")}else{e.add(t);var y=e.getChildren();if(y.splice(y.length-1,1),i){var m=y.indexOf(i);y.splice(m+1,0,t)}else y.unshift(t);if(n.registerElement(t),t.set("update_status","add"),t.get("isComponent"))(f=t.get("component")).set("container",e);else t.isGroup()&&n.registerNewGroup(t);if(i=t,a){var b=n.get("isInit")?o.appear:o.enter;b&&n.addAnimation(h,t,b)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();r.each(e,(function(t){t.set("update_status",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;return(t={})[this.get("name")]=this,t.component=this,t},e.prototype.appendDelegateObject=function(t,e){var i=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),r.mix(e.delegateObject,i)},e.prototype.getReplaceAttrs=function(t,e){var i=t.attr(),n=e.attr();return r.each(i,(function(t,e){void 0===n[e]&&(n[e]=void 0)})),n},e.prototype.registerNewGroup=function(t){var e=this,i=t.getChildren();r.each(i,(function(t){e.registerElement(t),t.set("update_status","add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),i=[];r.each(e,(function(t,e){!t.get("update_status")||t.destroyed?i.push([e,t]):t.set("update_status",null)}));var n=this.get("animate"),a=this.get("animateOption");r.each(i,(function(i){var o=i[0],s=i[1];if(!s.destroyed){var l=s.get("name");if(n&&a.leave){var u=r.mix({callback:function(){t.removeElement(s)}},a.leave);t.removeAnimation(l,s,u)}else t.removeElement(s)}delete e[o]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(l.default);i.default=p},{"../util/event":70,"../util/matrix":73,"../util/util":77,"./component":20,"@antv/util":803,tslib:894}],22:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/dom-util"),a=t("@antv/util"),o=t("../util/util"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},e),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=t?"auto":"none";this.getContainer().style.pointerEvents=e,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,i=parseFloat(t.style.top)||0;return o.createBBox(e,i,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");o.clearDom(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(a.isNil(t)){t=this.createDom();var e=this.get("parent");a.isString(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.set("container",t)}else a.isString(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?a.deepMix({},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 i=this.get("containerClassName");if(i&&o.hasClass(e,i)){var n=t[i];r.modifyCSS(e,n)}}},e.prototype.applyChildrenStyles=function(t,e){a.each(e,(function(e,i){var n=t.getElementsByClassName(i);a.each(n,(function(t){r.modifyCSS(t,e)}))}))},e.prototype.applyStyle=function(t,e){var i=this.get("domStyles");r.modifyCSS(e,i[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return r.createDom(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){a.hasKey(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(t("./component").default);i.default=s},{"../util/util":77,"./component":20,"@antv/dom-util":92,"@antv/util":803,tslib:894}],23:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../abstract/group-component"),a=t("../util/util"),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},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,i=t.radius,n=t.startAngle,r=t.endAngle,o=a.getCirclePoint(e,i,n),s=a.getCirclePoint(e,i,r),l=r-n>Math.PI?1:0,u=[["M",o.x,o.y]];if(r-n==2*Math.PI){var c=a.getCirclePoint(e,i,n+Math.PI);u.push(["A",i,i,0,l,1,c.x,c.y]),u.push(["A",i,i,0,l,1,s.x,s.y])}else u.push(["A",i,i,0,l,1,s.x,s.y]);return u},e.prototype.renderArc=function(t){var e=this.getArcPath(),i=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:n.__assign({path:e},i)})},e}(r.default);i.default=o},{"../abstract/group-component":21,"../util/util":77,tslib:894}],24:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../abstract/group-component"),o=t("../util/graphic"),s=t("../util/matrix"),l=t("../util/theme"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},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:l.default.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:l.default.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:l.default.fontFamily}}}})},e.prototype.renderInner=function(t){r.get(this.get("line"),"display")&&this.renderLine(t),r.get(this.get("text"),"display")&&this.renderText(t),r.get(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,i=e.x,r=e.y,a=e.text,s=n.__rest(e,["x","y","text"]),l=this.get("text"),u=l.background,c=l.maxLength,p=l.autoEllipsis,h=l.isVertival,f=l.ellipsisPosition,d={x:i,y:r,id:this.getElementId("text"),name:"annotation-text",content:a,style:s,background:u,maxLength:c,autoEllipsis:p,isVertival:h,ellipsisPosition:f};o.renderTag(t,d)},e.prototype.autoAdjust=function(t){var e=this.get("direction"),i=this.get("x"),n=this.get("y"),a=r.get(this.get("line"),"length",0),o=this.get("coordinateBBox"),l=t.getBBox(),u=l.minX,c=l.maxX,p=l.minY,h=l.maxY,f=t.findById(this.getElementId("text-group")),d=t.findById(this.getElementId("text")),g=t.findById(this.getElementId("line"));if(o){if(f){if(i+u<=o.minX){var v=o.minX-(i+u);s.applyTranslate(f,f.attr("x")+v,f.attr("y"))}if(i+c>=o.maxX){v=i+c-o.maxX;s.applyTranslate(f,f.attr("x")-v,f.attr("y"))}}if("upward"===e&&n+p<=o.minY||"upward"!==e&&n+h>=o.maxY){var y=void 0,m=void 0;"upward"===e&&n+p<=o.minY?(y="top",m=1):(y="bottom",m=-1),d.attr("textBaseline",y),g&&g.attr("path",[["M",0,0],["L",0,a*m]]),s.applyTranslate(f,f.attr("x"),(a+2)*m)}}},e.prototype.getShapeAttrs=function(){var t=r.get(this.get("line"),"display"),e=r.get(this.get("point"),"style",{}),i=r.get(this.get("line"),"style",{}),a=r.get(this.get("text"),"style",{}),o=this.get("direction"),s=t?r.get(this.get("line"),"length",0):0,l="upward"===o?-1:1;return{point:n.__assign({x:0,y:0},e),line:n.__assign({path:[["M",0,0],["L",0,s*l]]},i),text:n.__assign({x:0,y:(s+2)*l,text:r.get(this.get("text"),"content",""),textBaseline:"upward"===o?"bottom":"top"},a)}},e}(a.default);i.default=u},{"../abstract/group-component":21,"../util/graphic":71,"../util/matrix":73,"../util/theme":76,"@antv/util":803,tslib:894}],25:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../abstract/group-component"),o=t("../util/theme"),s=t("../util/util"),l=t("../util/graphic"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:o.default.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:o.default.textColor,fontFamily:o.default.fontFamily}}}})},e.prototype.renderInner=function(t){var e=r.get(this.get("region"),"style",{}),i=(r.get(this.get("text"),"style",{}),this.get("lineLength")||0),a=this.get("points");if(a.length){var o=s.pointsToBBox(a),u=[];u.push(["M",a[0].x,o.minY-i]),a.forEach((function(t){u.push(["L",t.x,t.y])})),u.push(["L",a[a.length-1].x,a[a.length-1].y-i]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:n.__assign({path:u},e)});var c=n.__assign({id:this.getElementId("text"),name:"annotation-text",x:(o.minX+o.maxX)/2,y:o.minY-i},this.get("text"));l.renderTag(t,c)}},e}(a.default);i.default=u},{"../abstract/group-component":21,"../util/graphic":71,"../util/theme":76,"../util/util":77,"@antv/util":803,tslib:894}],26:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../abstract/group-component"),a=t("../util/util"),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},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"),i=this.get("style"),r=a.regionToBBox({start:t,end:e}),o=this.get("src");return n.__assign({x:r.x,y:r.y,img:o,width:r.width,height:r.height},i)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(r.default);i.default=o},{"../abstract/group-component":21,"../util/util":77,tslib:894}],27:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./line");Object.defineProperty(i,"Line",{enumerable:!0,get:function(){return n.default}});var r=t("./text");Object.defineProperty(i,"Text",{enumerable:!0,get:function(){return r.default}});var a=t("./arc");Object.defineProperty(i,"Arc",{enumerable:!0,get:function(){return a.default}});var o=t("./region");Object.defineProperty(i,"Region",{enumerable:!0,get:function(){return o.default}});var s=t("./image");Object.defineProperty(i,"Image",{enumerable:!0,get:function(){return s.default}});var l=t("./data-marker");Object.defineProperty(i,"DataMarker",{enumerable:!0,get:function(){return l.default}});var u=t("./data-region");Object.defineProperty(i,"DataRegion",{enumerable:!0,get:function(){return u.default}});var c=t("./region-filter");Object.defineProperty(i,"RegionFilter",{enumerable:!0,get:function(){return c.default}})},{"./arc":23,"./data-marker":24,"./data-region":25,"./image":26,"./line":28,"./region":30,"./region-filter":29,"./text":31}],28:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../abstract/group-component"),o=t("../util/graphic"),s=t("../util/theme"),l=t("../util/util"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},e),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:s.default.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:s.default.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:s.default.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"),i=this.get("end"),r=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:n.__assign({x1:e.x,y1:e.y,x2:i.x,y2:i.y},r)})},e.prototype.getLabelPoint=function(t,e,i){var n;return((n="start"===i?0:"center"===i?.5:r.isString(i)&&-1!==i.indexOf("%")?parseInt(i,10)/100:r.isNumber(i)?i:1)>1||n<0)&&(n=1),{x:l.getValueByPercent(t.x,e.x,n),y:l.getValueByPercent(t.y,e.y,n)}},e.prototype.renderLabel=function(t){var e=this.get("text"),i=this.get("start"),n=this.get("end"),r=e.position,a=e.content,s=e.style,l=e.offsetX,u=e.offsetY,c=e.autoRotate,p=e.maxLength,h=e.autoEllipsis,f=e.ellipsisPosition,d=e.background,g=e.isVertical,v=void 0!==g&&g,y=this.getLabelPoint(i,n,r),m=y.x+l,b=y.y+u,x={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:b,content:a,style:s,maxLength:p,autoEllipsis:h,ellipsisPosition:f,background:d,isVertical:v};if(c){var _=[n.x-i.x,n.y-i.y];x.rotate=Math.atan2(_[1],_[0])}o.renderTag(t,x)},e}(a.default);i.default=u},{"../abstract/group-component":21,"../util/graphic":71,"../util/theme":76,"../util/util":77,"@antv/util":803,tslib:894}],29:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../abstract/group-component"),o=t("../util/util"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},e),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,i=this.get("start"),n=this.get("end"),a=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});r.each(this.get("shapes"),(function(t,i){var n=t.get("type"),o=r.clone(t.attr());e.adjustShapeAttrs(o),e.addShape(a,{id:e.getElementId("shape-"+n+"-"+i),capture:!1,type:n,attrs:o})}));var s=o.regionToBBox({start:i,end:n});a.setClip({type:"rect",attrs:{x:s.minX,y:s.minY,width:s.width,height:s.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(a.default);i.default=s},{"../abstract/group-component":21,"../util/util":77,"@antv/util":803,tslib:894}],30:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../abstract/group-component"),a=t("../util/theme"),o=t("../util/util"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:a.default.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var e=this.get("start"),i=this.get("end"),r=this.get("style"),a=o.regionToBBox({start:e,end:i});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:n.__assign({x:a.x,y:a.y,width:a.width,height:a.height},r)})},e}(r.default);i.default=s},{"../abstract/group-component":21,"../util/theme":76,"../util/util":77,tslib:894}],31:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../abstract/group-component"),a=t("../util/graphic"),o=t("../util/matrix"),s=t("../util/theme"),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},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:s.default.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:s.default.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(),i=e.x,n=e.y,r=this.get("content"),o=this.get("style"),s={id:this.getElementId("text"),name:this.get("name")+"-text",x:i,y:n,content:r,style:o,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")};a.renderTag(t,s)},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var e=this.getLocation(),i=e.x,n=e.y,r=this.get("rotate");o.applyTranslate(t,i,n),o.applyRotate(t,r,i,n)}},e}(r.default);i.default=l},{"../abstract/group-component":21,"../util/graphic":71,"../util/matrix":73,"../util/theme":76,tslib:894}],32:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/matrix-util"),a=t("@antv/util"),o=t("../abstract/group-component"),s=t("../util/matrix"),l=t("../util/state"),u=t("../util/theme"),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},e),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},defaultCfg:{line:{style:{lineWidth:1,stroke:u.default.lineColor}},tickLine:{style:{lineWidth:1,stroke:u.default.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:u.default.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:u.default.textColor,textBaseline:"middle",fontFamily:u.default.fontFamily,fontWeight:"normal"},offset:10},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:u.default.textColor,textBaseline:"middle",fontFamily:u.default.fontFamily,textAlign:"center"}},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:u.default.uncheckedColor}}}}})},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){a.mix(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,i){t[e]=i,this.updateTickStates(t)},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("tickStates"),i=[];return a.each(e,(function(e,n){t[n]&&i.push(n)})),i},e.prototype.clearItemsState=function(t){var e=this,i=this.getItemsByState(t);a.each(i,(function(i){e.setItemState(i,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,i=this.getItems();return a.filter(i,(function(i){return e.hasState(i,t)}))},e.prototype.getSidePoint=function(t,e){var i=this.getSideVector(e,t);return{x:t.x+i[0],y:t.y+i[1]}},e.prototype.getTextAnchor=function(t){var e;return a.isNumberEqual(t[0],0)?e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),i=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:a.mix({path:e},i.style)})},e.prototype.getTickLineItems=function(t){var e=this,i=[],n=this.get("tickLine"),r=n.alignTick,o=n.length,s=1;return t.length>=2&&(s=t[1].value-t[0].value),a.each(t,(function(t){var n=t.point;r||(n=e.getTickPoint(t.value-s/2));var a=e.getSidePoint(n,o);i.push({startPoint:n,tickValue:t.value,endPoint:a,tickId:t.id,id:"tickline-"+t.id})})),i},e.prototype.getSubTickLineItems=function(t){var e=[],i=this.get("subTickLine"),n=i.count,r=t.length;if(r>=2)for(var a=0;a<r-1;a++)for(var o=t[a],s=t[a+1],l=0;l<n;l++){var u=(l+1)/(n+1),c=(1-u)*o.tickValue+u*s.tickValue,p=this.getTickPoint(c),h=this.getSidePoint(p,i.length);e.push({startPoint:p,endPoint:h,tickValue:c,id:"sub-"+o.id+"-"+l})}return e},e.prototype.getTickLineAttrs=function(t,e){var i=this.get(e).style,n=t.startPoint,r=t.endPoint;return a.mix({x1:n.x,y1:n.y,x2:r.x,y2:r.y},i)},e.prototype.drawTick=function(t,e,i){this.addShape(e,{type:"line",id:this.getElementId(t.id),name:"axis-"+i,attrs:this.getTickLineAttrs(t,i)})},e.prototype.drawTickLines=function(t){var e=this,i=this.get("ticks"),n=this.get("subTickLine"),r=this.getTickLineItems(i),o=this.addGroup(t,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),s=this.get("tickLine");if(a.each(r,(function(i){if(s.displayWithLabel){var n=e.getElementId("label-"+i.tickId);t.findById(n)&&e.drawTick(i,o,"tickLine")}else e.drawTick(i,o,"tickLine")})),n){var l=this.getSubTickLineItems(r);a.each(l,(function(t){e.drawTick(t,o,"subTickLine")}))}},e.prototype.processTicks=function(){var t=this,e=this.get("ticks");a.each(e,(function(e){e.point=t.getTickPoint(e.value),a.isNil(e.id)&&(e.id=e.name)}))},e.prototype.drawTicks=function(t){var e=this;this.processTicks(),this.get("label")&&this.drawLabels(t),this.get("tickLine")&&this.drawTickLines(t);var i=this.get("ticks");a.each(i,(function(i){e.applyTickStates(i,t)}))},e.prototype.getLabelAttrs=function(t,e){var i=this.get("label"),n=i.offset,r=i.style,o=i.rotate,l=i.formatter,u=this.getSidePoint(t.point,n),c=this.getSideVector(n,u),p=l?l(t.name,t,e):t.name,h=a.mix({x:u.x,y:u.y,text:p,textAlign:this.getTextAnchor(c)},r);return o&&(h.matrix=s.getMatrixByAngle(u,o)),h},e.prototype.drawLabels=function(t){var e=this,i=this.get("ticks"),n=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});a.each(i,(function(t,i){e.addShape(n,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,i),delegateObject:{tick:t,item:t,index:i}})})),this.processOverlap(n)},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,i=t.position,n=t.offset,o=t.spacing,l=void 0===o?0:o,u=t.autoRotate,c=e.fontSize,p=.5;"start"===i?p=0:"end"===i&&(p=1);var h=this.getTickPoint(p),f=this.getSidePoint(h,n||l+c/2),d=a.mix({x:f.x,y:f.y,text:t.text},e),g=t.rotate,v=g;if(a.isNil(g)&&u){var y=this.getAxisVector(h);v=r.ext.angleTo(y,[1,0],!0)}if(v){var m=s.getMatrixByAngle(f,v);d.matrix=m}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){if(this.getItemStates(t).length){var i=this.get("tickStates"),n=this.getElementId("label-"+t.id),r=e.findById(n);if(r){var a=l.getStatesStyle(t,"label",i);a&&r.attr(a)}var o=this.getElementId("tickline-"+t.id),s=e.findById(o);if(s){var u=l.getStatesStyle(t,"tickLine",i);u&&s.attr(u)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),i=this.get("tickStates"),n=this.get("label"),r=this.getElementByLocalId("label-"+t.id),a=this.get("tickLine"),o=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(r){var s=l.getStatesStyle(t,"label",i);s&&r.attr(s)}if(o){var u=l.getStatesStyle(t,"tickLine",i);u&&o.attr(u)}}else r&&r.attr(n.style),o&&o.attr(a.style)},e}(o.default);i.default=c},{"../abstract/group-component":21,"../util/matrix":73,"../util/state":74,"../util/theme":76,"@antv/matrix-util":717,"@antv/util":803,tslib:894}],33:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/matrix-util"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},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,i=t.y,n=this.get("radius"),r=n,a=this.get("startAngle"),o=this.get("endAngle"),s=[];if(Math.abs(o-a)===2*Math.PI)s=[["M",e,i-r],["A",n,r,0,1,1,e,i+r],["A",n,r,0,1,1,e,i-r],["Z"]];else{var l=this.getCirclePoint(a),u=this.getCirclePoint(o),c=Math.abs(o-a)>Math.PI?1:0,p=a>o?0:1;s=[["M",e,i],["L",l.x,l.y],["A",n,r,0,c,p,u.x,u.y],["L",e,i]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),i=e+(this.get("endAngle")-e)*t;return this.getCirclePoint(i)},e.prototype.getSideVector=function(t,e){var i=this.get("center"),n=[e.x-i.x,e.y-i.y],a=this.get("verticalFactor"),o=r.vec2.length(n);return r.vec2.scale(n,n,a*t/o),n},e.prototype.getAxisVector=function(t){var e=this.get("center"),i=[t.x-e.x,t.y-e.y];return[i[1],-1*i[0]]},e.prototype.getCirclePoint=function(t,e){var i=this.get("center");return e=e||this.get("radius"),{x:i.x+Math.cos(t)*e,y:i.y+Math.sin(t)*e}},e}(t("./base").default);i.default=a},{"./base":32,"@antv/matrix-util":717,tslib:894}],34:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./line");Object.defineProperty(i,"Line",{enumerable:!0,get:function(){return n.default}});var r=t("./circle");Object.defineProperty(i,"Circle",{enumerable:!0,get:function(){return r.default}});var a=t("./base");Object.defineProperty(i,"Base",{enumerable:!0,get:function(){return a.default}})},{"./base":32,"./circle":33,"./line":35}],35:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/matrix-util"),a=t("@antv/util"),o=t("./base"),s=t("./overlap"),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),i=[];return i.push(["M",t.x,t.y]),i.push(["L",e.x,e.y]),i},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),i=this.get("end"),n=t.prototype.getInnerLayoutBBox.call(this),r=Math.min(e.x,i.x,n.x),a=Math.min(e.y,i.y,n.y),o=Math.max(e.x,i.x,n.maxX),s=Math.max(e.y,i.y,n.maxY);return{x:r,y:a,minX:r,minY:a,maxX:o,maxY:s,width:o-r,height:s-a}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return a.isNumberEqual(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return a.isNumberEqual(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this.get("start"),i=this.get("end"),n=i.x-e.x,r=i.y-e.y;return{x:e.x+n*t,y:e.y+r*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),i=r.vec2.normalize([0,0],e),n=this.get("verticalFactor"),a=[i[1],-1*i[0]];return r.vec2.scale([0,0],a,t*n)},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,i=this.isVertical(),n=this.isHorizontal();if(i||n){var r=this.get("label"),o=this.get("title"),s=this.get("verticalLimitLength"),l=r.offset,u=s,c=0,p=0;o&&(c=o.style.fontSize,p=o.spacing),u&&(u=u-l-p-c);var h=this.get("overlapOrder");if(a.each(h,(function(i){r[i]&&e.autoProcessOverlap(i,r[i],t,u)})),o){var f=t.getBBox(),d=i?f.width:f.height;a.isNil(o.offset)&&(o.offset=l+d+p+c/2)}}},e.prototype.autoProcessOverlap=function(t,e,i,n){var r=this,o=this.isVertical(),l=!1,u=s[t];if(!0===e?l=u.getDefault()(o,i,n):a.isFunction(e)?l=e(o,i,n):u[e]&&(l=u[e](o,i,n)),"autoRotate"===t){if(l){var c=i.getChildren(),p=this.get("verticalFactor");a.each(c,(function(t){if("center"===t.attr("textAlign")){var e=p>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var h=i.getChildren().slice(0);a.each(h,(function(t){t.get("visible")||(r.get("isRegister")&&r.unregisterElement(t),t.remove())}))}},e}(o.default);i.default=l},{"./base":32,"./overlap":39,"@antv/matrix-util":717,"@antv/util":803,tslib:894}],36:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ellipsisMiddle=i.ellipsisTail=i.ellipsisHead=i.getDefault=void 0;var n=t("@antv/util"),r=t("../../util/label");function a(t,e,i,a){var o=e.getChildren(),s=!1;return n.each(o,(function(e){var n=r.ellipsisLabel(t,e,i,a);s=s||n})),s}function o(t,e,i){return a(t,e,i,"tail")}i.getDefault=function(){return o},i.ellipsisHead=function(t,e,i){return a(t,e,i,"head")},i.ellipsisTail=o,i.ellipsisMiddle=function(t,e,i){return a(t,e,i,"middle")}},{"../../util/label":72,"@antv/util":803}],37:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.equidistance=i.reserveBoth=i.reserveLast=i.reserveFirst=i.getDefault=void 0;var n=t("../../util/label");function r(t){var e=t.attr("matrix");return e&&1!==e[0]}function a(t,e,i,n,r){void 0===r&&(r=!1);var a=!1;if(t)a=Math.abs(i.y-n.y)<i.height;else if(e){var o=r?n.height:i.height;a=Math.abs(i.x-n.x)<o}else{var s=r?n.width:i.width;a=Math.abs(i.x-n.x)<s}return a}function o(t,e,i){var n=e.getChildren().slice();if(!n.length)return!1;var o=!1;i&&n.reverse();for(var s=n.length,l=n[0],u=r(l),c=l.getBBox(),p=1;p<s;p++){var h=n[p],f=h.getBBox();a(t,u,c,f,i)?(h.hide(),o=!0):c=f}return o}function s(t,e){var i=e.getChildren().slice();if(i.length<2)return!1;var a=!1,o=i[0],s=o.getBBox(),l=i[1],u=r(o),c=i.length,p=0;if(t){var h=Math.abs(l.attr("y")-o.attr("y"));p=s.height/h}else if(u){h=Math.abs(l.attr("x")-o.attr("x"));p=s.width/h}else{p=n.getMaxLabelWidth(i)/(h=Math.abs(l.attr("x")-o.attr("x")))}if(p>1){p=Math.ceil(p);for(var f=0;f<c;f++)f%p!=0&&(i[f].hide(),a=!0)}return a}i.getDefault=function(){return s},i.reserveFirst=function(t,e){return o(t,e,!1)},i.reserveLast=function(t,e){return o(t,e,!0)},i.reserveBoth=function(t,e){var i=e.getChildren().slice();if(i.length<=2)return!1;for(var n=!1,o=i.length,s=i[0],l=i[o-1],u=r(s),c=s.getBBox(),p=s,h=1;h<o-1;h++){var f=i[h],d=f.getBBox();a(t,u,c,d)?(f.hide(),n=!0):(c=d,p=f)}return a(t,u,c,l.getBBox())&&(p.hide(),n=!0),n},i.equidistance=s},{"../../util/label":72}],38:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.unfixedAngle=i.fixedAngle=i.getDefault=void 0;var n=t("@antv/util"),r=t("../../util/label"),a=t("../../util/matrix"),o=t("../../util/theme");function s(t,e,i,o){var s=e.getChildren();if(!s.length)return!1;if(!t&&s.length<2)return!1;var l=r.getMaxLabelWidth(s),u=!1;t?u=!!i&&l>i:u=l>Math.abs(s[1].attr("x")-s[0].attr("x"));u&&function(t,e){n.each(t,(function(t){var i=t.attr("x"),n=t.attr("y"),r=a.getMatrixByAngle({x:i,y:n},e);t.attr("matrix",r)}))}(s,o(i,l));return u}function l(t,e,i){return s(t,e,i,(function(){return t?o.default.verticalAxisRotate:o.default.horizontalAxisRotate}))}i.getDefault=function(){return l},i.fixedAngle=l,i.unfixedAngle=function(t,e,i){return s(t,e,i,(function(e,i){if(!e)return t?o.default.verticalAxisRotate:o.default.horizontalAxisRotate;if(t)return-Math.acos(e/i);var n=0;return(e>i||(n=Math.asin(e/i))>Math.PI/4)&&(n=Math.PI/4),n}))}},{"../../util/label":72,"../../util/matrix":73,"../../util/theme":76,"@antv/util":803}],39:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.autoEllipsis=i.autoRotate=i.autoHide=void 0;var n=t("./auto-ellipsis");i.autoEllipsis=n;var r=t("./auto-hide");i.autoHide=r;var a=t("./auto-rotate");i.autoRotate=a},{"./auto-ellipsis":36,"./auto-hide":37,"./auto-rotate":38}],40:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../abstract/group-component"),o=t("../util/matrix"),s=t("../util/theme"),l=t("../util/util"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:s.default.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:s.default.textColor,textAlign:"center",textBaseline:"middle",fontFamily:s.default.fontFamily}},textBackground:{padding:5,style:{stroke:s.default.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"),i=e.style,a=e.autoRotate,s=e.content;if(!r.isNil(s)){var l=this.getTextPoint(),u=null;if(a){var c=this.getRotateAngle();u=o.getMatrixByAngle(l,c)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:n.__assign(n.__assign(n.__assign({},l),{text:s,matrix:u}),i)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),i=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:n.__assign({path:e},i)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),i=t.findById(e),r=this.get("textBackground");if(r&&i){var a=i.getBBox(),o=l.formatPadding(r.padding),s=r.style;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:n.__assign({x:a.x-o[3],y:a.y-o[0],width:a.width+o[1]+o[3],height:a.height+o[0]+o[2],matrix:i.attr("matrix")},s)}).toBack()}},e}(a.default);i.default=u},{"../abstract/group-component":21,"../util/matrix":73,"../util/theme":76,"../util/util":77,"@antv/util":803,tslib:894}],41:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../util/util"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},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,i=t.endAngle;return"start"===this.get("text").position?e+Math.PI/2:i-Math.PI/2},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,i=t.offset,n=this.getLocation(),a=n.center,o=n.radius,s=n.startAngle,l=n.endAngle,u="start"===e?s:l,c=this.getRotateAngle()-Math.PI,p=r.getCirclePoint(a,o,u),h=Math.cos(c)*i,f=Math.sin(c)*i;return{x:p.x+h,y:p.y+f}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,i=t.radius,n=t.startAngle,a=t.endAngle,o=null;if(a-n==2*Math.PI){var s=e.x,l=e.y;o=[["M",s,l-i],["A",i,i,0,1,1,s,l+i],["A",i,i,0,1,1,s,l-i],["Z"]]}else{var u=r.getCirclePoint(e,i,n),c=r.getCirclePoint(e,i,a),p=Math.abs(a-n)>Math.PI?1:0,h=n>a?0:1;o=[["M",u.x,u.y],["A",i,i,0,p,h,c.x,c.y]]}return o},e}(t("./base").default);i.default=a},{"../util/util":77,"./base":40,tslib:894}],42:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.CROSSHAIR_TEXT=i.CROSSHAIR_LINE=i.CONTAINER_CLASS=void 0,i.CONTAINER_CLASS="g2-crosshair",i.CROSSHAIR_LINE=i.CONTAINER_CLASS+"-line",i.CROSSHAIR_TEXT=i.CONTAINER_CLASS+"-text"},{}],43:[function(t,e,i){"use strict";var n;Object.defineProperty(i,"__esModule",{value:!0});var r=t("../util/theme"),a=t("./css-const");i.default=((n={})[""+a.CONTAINER_CLASS]={position:"relative"},n[""+a.CROSSHAIR_LINE]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},n[""+a.CROSSHAIR_TEXT]={position:"absolute",color:r.default.textColor,fontFamily:r.default.fontFamily},n)},{"../util/theme":76,"./css-const":42}],44:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/dom-util"),a=t("@antv/util"),o=t("../util/util"),s=t("../abstract/html-component"),l=t("./css-const"),u=t("./html-theme"),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="'+l.CONTAINER_CLASS+'"></div>',crosshairTpl:'<div class="'+l.CROSSHAIR_LINE+'"></div>',textTpl:'<span class="'+l.CROSSHAIR_TEXT+'">{content}</span>',domStyles:null,containerClassName:l.CONTAINER_CLASS,defaultStyles:u.default,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"),i=r.createDom(e);t.appendChild(i),this.applyStyle(l.CROSSHAIR_LINE,i),this.set("crosshairEl",i)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,i=t.end,n=this.get("text"),r=n.position,a=n.offset;return o.getTextPoint(e,i,r,a)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var i=t.content;if(!e){var n=this.getContainer(),o=a.substitute(this.get("textTpl"),t);e=r.createDom(o),n.appendChild(e),this.applyStyle(l.CROSSHAIR_TEXT,e),this.set("textEl",e)}e.innerHTML=i}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"),i=this.get("end"),n=Math.min(e.x,i.x),a=Math.min(e.y,i.y);this.isVertical(e,i)?r.modifyCSS(t,{width:"1px",height:o.toPx(Math.abs(i.y-e.y))}):r.modifyCSS(t,{height:"1px",width:o.toPx(Math.abs(i.x-e.x))}),r.modifyCSS(t,{top:o.toPx(a),left:o.toPx(n)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,i=t.clientWidth,n=this.getTextPoint();switch(e){case"center":n.x=n.x-i/2;break;case"right":n.x=n.x-i}r.modifyCSS(t,{top:o.toPx(n.y),left:o.toPx(n.x)})}},e.prototype.updateInner=function(e){a.hasKey(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(s.default);i.default=c},{"../abstract/html-component":22,"../util/util":77,"./css-const":42,"./html-theme":43,"@antv/dom-util":92,"@antv/util":803,tslib:894}],45:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./line");Object.defineProperty(i,"Line",{enumerable:!0,get:function(){return n.default}});var r=t("./circle");Object.defineProperty(i,"Circle",{enumerable:!0,get:function(){return r.default}});var a=t("./base");Object.defineProperty(i,"Base",{enumerable:!0,get:function(){return a.default}});var o=t("./html");Object.defineProperty(i,"Html",{enumerable:!0,get:function(){return o.default}})},{"./base":40,"./circle":41,"./html":44,"./line":46}],46:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../util/util"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,i=t.end,n=this.get("text").position,r=Math.atan2(i.y-e.y,i.x-e.x);return"start"===n?r-Math.PI/2:r+Math.PI/2},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,i=t.end,n=this.get("text"),a=n.position,o=n.offset;return r.getTextPoint(e,i,a,o)},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,i=t.end;return[["M",e.x,e.y],["L",i.x,i.y]]},e}(t("./base").default);i.default=a},{"../util/util":77,"./base":40,tslib:894}],47:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../abstract/group-component"),o=t("../util/theme"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:o.default.lineColor}}}})},e.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var i=this.getGridPath(t),n=e.slice(0).reverse(),r=this.getGridPath(n,!0);return this.get("closed")?i=i.concat(r):(r[0][0]="L",(i=i.concat(r)).push(["Z"])),i},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,i=this.get("line"),n=this.get("items"),a=this.get("alternateColor"),o=null;r.each(n,(function(n,s){var l=n.id||s;if(i){var u=e.getPathStyle(),c=e.getElementId("line-"+l),p=e.getGridPath(n.points);e.addShape(t,{type:"path",name:"grid-line",id:c,attrs:r.mix({path:p},u)})}if(a&&s>0){var h=e.getElementId("region-"+l),f=s%2==0;if(r.isString(a))f&&e.drawAlternateRegion(h,t,o.points,n.points,a);else{var d=f?a[1]:a[0];e.drawAlternateRegion(h,t,o.points,n.points,d)}}o=n}))},e.prototype.drawAlternateRegion=function(t,e,i,n,r){var a=this.getAlternatePath(i,n);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:a,fill:r}})},e}(a.default);i.default=s},{"../abstract/group-component":21,"../util/theme":76,"@antv/util":803,tslib:894}],48:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util");var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var i,n,a,o,s,l,u=this.getLineType(),c=this.get("closed"),p=[];if(t.length)if("circle"===u){var h=this.get("center"),f=t[0],d=(i=h.x,n=h.y,a=f.x,o=f.y,s=a-i,l=o-n,Math.sqrt(s*s+l*l)),g=e?0:1;c?(p.push(["M",h.x,h.y-d]),p.push(["A",d,d,0,0,g,h.x,h.y+d]),p.push(["A",d,d,0,0,g,h.x,h.y-d]),p.push(["Z"])):r.each(t,(function(t,e){0===e?p.push(["M",t.x,t.y]):p.push(["A",d,d,0,0,g,t.x,t.y])}))}else r.each(t,(function(t,e){0===e?p.push(["M",t.x,t.y]):p.push(["L",t.x,t.y])})),c&&p.push(["Z"]);return p},e}(t("./base").default);i.default=a},{"./base":47,"@antv/util":803,tslib:894}],49:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./base");Object.defineProperty(i,"Base",{enumerable:!0,get:function(){return n.default}});var r=t("./circle");Object.defineProperty(i,"Circle",{enumerable:!0,get:function(){return r.default}});var a=t("./line");Object.defineProperty(i,"Line",{enumerable:!0,get:function(){return a.default}})},{"./base":47,"./circle":48,"./line":50}],50:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return r.each(t,(function(t,i){0===i?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(t("./base").default);i.default=a},{"./base":47,"@antv/util":803,tslib:894}],51:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Crosshair=i.Tooltip=i.Legend=i.Grid=i.Annotation=i.Axis=void 0;var n=t("./annotation");i.Annotation=n;var r=t("./axis");i.Axis=r;var a=t("./crosshair");i.Crosshair=a;var o=t("./grid");i.Grid=o;var s=t("./legend");i.Legend=s;var l=t("./tooltip");i.Tooltip=l;var u=t("./abstract/component");Object.defineProperty(i,"Component",{enumerable:!0,get:function(){return u.default}});var c=t("./abstract/group-component");Object.defineProperty(i,"GroupComponent",{enumerable:!0,get:function(){return c.default}});var p=t("./abstract/html-component");Object.defineProperty(i,"HtmlComponent",{enumerable:!0,get:function(){return p.default}});var h=t("./slider");Object.defineProperty(i,"Slider",{enumerable:!0,get:function(){return h.Slider}});var f=t("./scrollbar");Object.defineProperty(i,"Scrollbar",{enumerable:!0,get:function(){return f.Scrollbar}})},{"./abstract/component":20,"./abstract/group-component":21,"./abstract/html-component":22,"./annotation":27,"./axis":34,"./crosshair":45,"./grid":49,"./legend":55,"./scrollbar":56,"./slider":60,"./tooltip":65}],52:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../abstract/group-component"),a=t("../util/util"),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},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),i=this.get("x"),n=this.get("y"),r=this.get("offsetX"),o=this.get("offsetY"),s=this.get("maxWidth"),l=this.get("maxHeight"),u=i+r,c=n+o,p=e.maxX-u,h=e.maxY-c;return s&&(p=Math.min(p,s)),l&&(h=Math.min(h,l)),a.createBBox(u,c,p,h)},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"),i=this.get("offsetX"),n=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+i,y:e+n})},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"),i=t.getBBox(),r=a.formatPadding(e.padding),o=n.__assign({x:0,y:0,width:i.width+r[1]+r[3],height:i.height+r[0]+r[2]},e.style);this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o}).toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),i=this.get("title"),r=i.spacing,a=i.style,o=i.text,s=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:n.__assign({text:o,x:e.x,y:e.y},a)}).getBBox();this.set("currentPoint",{x:e.x,y:s.maxY+r})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var i=a.formatPadding(t.padding);e.x=i[3],e.y=i[0]}this.set("currentPoint",e)},e}(r.default);i.default=o},{"../abstract/group-component":21,"../util/util":77,tslib:894}],53:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../util/label"),o=t("../util/matrix"),s=t("../util/state"),l=t("../util/theme"),u=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 i=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:i},100):t.attr({matrix:i})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex<e.totalPagesCnt){e.currentPageIndex+=1,e.updateNavigation();var i=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:i},100):t.attr({matrix:i})}},e}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},e),{name:"legend",type:"category",itemSpacing:24,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},items:[],itemStates:{},itemBackground:{},defaultCfg:{title:{spacing:5,style:{fill:l.default.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:l.default.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},itemName:{spacing:16,style:{fill:l.default.textColor,fontSize:12,textAlign:"start",textBaseline:"middle"}},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:{fill:l.default.textColor,fontSize:12,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:l.default.uncheckedColor},markerStyle:{fill:l.default.uncheckedColor,stroke:l.default.uncheckedColor}},inactive:{nameStyle:{fill:l.default.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){r.mix(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,i){t[e]=i;var n=this.getElementByLocalId("item-"+t.id);if(n){var r=this.getItems().indexOf(t),a=this.createOffScreenGroup(),o=this.drawItem(t,r,this.getItemHeight(),a);this.updateElements(o,n),this.clearUpdateStatus(n)}},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("itemStates"),i=[];return r.each(e,(function(e,n){t[n]&&i.push(n)})),i},e.prototype.clearItemsState=function(t){var e=this,i=this.getItemsByState(t);r.each(i,(function(i){e.setItemState(i,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,i=this.getItems();return r.filter(i,(function(i){return e.hasState(i,t)}))},e.prototype.drawLegendContent=function(t){this.processItems(),this.drawItems(t)},e.prototype.processItems=function(){var t=this.get("items");r.each(t,(function(t){t.id||(t.id=t.name)}))},e.prototype.drawItems=function(t){var e=this,i=this.addGroup(t,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),n=this.addGroup(i,{id:this.getElementId("item-group"),name:"legend-item-group"}),a=this.getItemHeight(),o=this.get("itemWidth"),s=this.get("itemSpacing"),l=this.get("currentPoint"),u=l.x,c=l.y,p=this.get("layout"),h=this.get("items"),f=!1,d=0,g=this.get("maxWidth"),v=this.get("maxHeight");r.each(h,(function(t,i){var r=e.drawItem(t,i,a,n),h=r.getBBox(),y=o||h.width;y>d&&(d=y),"horizontal"===p?(g&&g<l.x+y-u&&(f=!0,l.x=u,l.y+=a),e.moveElementTo(r,l),l.x+=y+s):(v&&v<l.y+a-c&&(f=!0,l.x+=d+s,l.y=c,d=0),e.moveElementTo(r,l),l.y+=a)})),f&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=u,this.startY=c,this.adjustNavigation(t,n))},e.prototype.getItemHeight=function(){var t=this.get("itemHeight");if(!t){var e=this.get("itemName");e&&(t=e.style.fontSize+8)}return t},e.prototype.drawMarker=function(t,e,i,a){var o=n.__assign(n.__assign(n.__assign({x:0,y:a/2},e.style),{symbol:r.get(i.marker,"symbol","circle")}),r.get(i.marker,"style",{})),s=this.addShape(t,{type:"marker",id:this.getElementId("item-"+i.id+"-marker"),name:"legend-item-marker",attrs:o}),l=s.getBBox();s.attr("x",l.width/2);var u=s.attr(),c=u.stroke,p=u.fill;return c&&s.set("isStroke",!0),p&&s.set("isFill",!0),s},e.prototype.drawItemText=function(t,e,i,r,a,o,s){var l=i.formatter,u=n.__assign({x:o,y:a/2,text:l?l(r[e],r,s):r[e]},i.style);return this.addShape(t,{type:"text",id:this.getElementId("item-"+r.id+"-"+e),name:"legend-item-"+e,attrs:u})},e.prototype.drawItem=function(t,e,i,o){var s="item-"+t.id,l=this.addGroup(o,{name:"legend-item-container",id:this.getElementId("item-container-"+s),delegateObject:{item:t,index:e}}),u=this.addGroup(l,{name:"legend-item",id:this.getElementId(s),delegateObject:{item:t,index:e}}),c=this.get("marker"),p=this.get("itemName"),h=this.get("itemValue"),f=this.get("itemBackground"),d=this.getLimitItemWidth(),g=0;c&&(g=this.drawMarker(u,c,t,i).getBBox().maxX+c.spacing);if(p){var v=this.drawItemText(u,"name",p,t,i,g,e);d&&a.ellipsisLabel(!0,v,r.clamp(d-g,0,d)),g=v.getBBox().maxX+p.spacing}if(h){var y=this.drawItemText(u,"value",h,t,i,g,e);d&&(h.alignRight?(y.attr({textAlign:"right",x:d}),a.ellipsisLabel(!0,y,r.clamp(d-g,0,d),"head")):a.ellipsisLabel(!0,y,r.clamp(d-g,0,d)))}if(f){var m=u.getBBox();this.addShape(u,{type:"rect",name:"legend-item-background",id:this.getElementId(s+"-background"),attrs:n.__assign({x:0,y:0,width:m.width,height:i},f.style)}).toBack()}return this.applyItemStates(t,u),u},e.prototype.adjustNavigation=function(t,e){var i=this,n=this.startX,a=this.startY,o=this.get("layout"),s=e.findAll((function(t){return"legend-item"===t.get("name")})),l=this.get("maxWidth"),u=this.get("maxHeight"),c=this.get("itemWidth"),p=this.get("itemSpacing"),h=this.getItemHeight(),f=this.drawNavigation(t,o,"00/00",12),d=f.getBBox(),g={x:n,y:a},v=1,y=0,m=0,b=0;if("horizontal"===o)this.pageHeight=h,r.each(s,(function(t){var e=t.getBBox(),r=c||e.width;(y&&y<g.x+r+p||l<g.x+r+p+d.width)&&(1===v&&(y=g.x+p,i.pageWidth=y,i.moveElementTo(f,{x:l-p-d.width-d.minX,y:g.y+h/2-d.height/2-d.minY})),v+=1,g.x=n,g.y+=h),i.moveElementTo(t,g),t.getParent().setClip({type:"rect",attrs:{x:g.x,y:g.y,width:r+p,height:h}}),g.x+=r+p}));else{r.each(s,(function(t){var e=t.getBBox();e.width>m&&(m=e.width)})),b=m,m+=p,l&&(m=Math.min(l,m),b=Math.min(l,b)),this.pageWidth=m,this.pageHeight=u-Math.max(d.height,h);var x=Math.floor(this.pageHeight/h);r.each(s,(function(t,e){0!==e&&e%x==0&&(v+=1,g.x+=m,g.y=a),i.moveElementTo(t,g),t.getParent().setClip({type:"rect",attrs:{x:g.x,y:g.y,width:m,height:h}}),g.y+=h})),this.totalPagesCnt=v,this.moveElementTo(f,{x:n+b/2-d.width/2-d.minX,y:u-d.height-d.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),this.totalPagesCnt=v,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(f),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,i,n){var r={x:0,y:0},a=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),o=this.drawArrow(a,r,"navigation-arrow-left","horizontal"===e?"up":"left",n);o.on("click",this.onNavigationBack);var s=o.getBBox();r.x+=s.width+2;var l=this.addShape(a,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:{x:r.x,y:r.y+n/2,text:i,fontSize:12,fill:"#ccc",textBaseline:"middle"}}).getBBox();return r.x+=l.width+2,this.drawArrow(a,r,"navigation-arrow-right","horizontal"===e?"down":"right",n).on("click",this.onNavigationAfter),a},e.prototype.updateNavigation=function(t){var e=this.currentPageIndex+"/"+this.totalPagesCnt,i=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),n=t?t.findById(this.getElementId("navigation-arrow-left")):this.getElementByLocalId("navigation-arrow-left"),r=t?t.findById(this.getElementId("navigation-arrow-right")):this.getElementByLocalId("navigation-arrow-right"),a=i.getBBox();i.attr("text",e);var o=i.getBBox();i.attr("x",i.attr("x")-(o.width-a.width)/2),n.attr("opacity",1===this.currentPageIndex?.45:1),n.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),r.attr("opacity",this.currentPageIndex===this.totalPagesCnt?.45:1),r.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer")},e.prototype.drawArrow=function(t,e,i,n,r){var a=e.x,s=e.y,l={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},u=this.addShape(t,{type:"path",id:this.getElementId(i),name:i,attrs:{path:[["M",a+r/2,s],["L",a,s+r],["L",a+r,s+r],["Z"]],fill:"#000",cursor:"pointer"}});return u.attr("matrix",o.getMatrixByAngle({x:a+r/2,y:s+r/2},l[n])),u},e.prototype.getCurrentNavigationMatrix=function(){var t=this.currentPageIndex,e=this.pageWidth,i=this.pageHeight,n="horizontal"===this.get("layout")?{x:0,y:i*(1-t)}:{x:e*(1-t),y:0};return o.getMatrixByTranslate(n)},e.prototype.applyItemStates=function(t,e){if(this.getItemStates(t).length>0){var i=e.getChildren(),n=this.get("itemStates");r.each(i,(function(e){var i=e.get("name").split("-")[2],r=s.getStatesStyle(t,i,n);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}(t("./base").default);i.default=u},{"../util/label":72,"../util/matrix":73,"../util/state":74,"../util/theme":76,"./base":52,"@antv/util":803,tslib:894}],54:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../util/theme"),o=t("../util/util"),s=t("./base"),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},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:a.default.textColor,textBaseline:"middle",fontFamily:a.default.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:a.default.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 i=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(i),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 i=e.getValueByCanvasPoint(t.x,t.y),n=e.getCurrentValue()[1];n<i&&(n=i),e.setValue([i,n])})),t.on("legend-handler-max:drag",(function(t){var i=e.getValueByCanvasPoint(t.x,t.y),n=e.getCurrentValue()[0];n>i&&(n=i),e.setValue([n,i])}))},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,i=null;t.on("legend-track:dragstart",(function(t){i={x:t.x,y:t.y}})),t.on("legend-track:drag",(function(t){if(i){var n=e.getValueByCanvasPoint(i.x,i.y),r=e.getValueByCanvasPoint(t.x,t.y),a=e.getCurrentValue(),o=a[1]-a[0],s=e.getRange(),l=r-n;l<0?a[0]+l>s.min?e.setValue([a[0]+l,a[1]+l]):e.setValue([s.min,s.min+o]):l>0&&(l>0&&a[1]+l<s.max?e.setValue([a[0]+l,a[1]+l]):e.setValue([s.max-o,s.max])),i={x:t.x,y:t.y}}})),t.on("legend-track:dragend",(function(t){i=null}))},e.prototype.drawLabels=function(t){this.drawLabel("min",t),this.drawLabel("max",t)},e.prototype.drawLabel=function(t,e){var i=this.get("label"),r=i.style,a=i.align,o=this.get(t),s=this.getLabelAlignAttrs(t,a),l="label-"+t;this.addShape(e,{type:"text",id:this.getElementId(l),name:"legend-label-"+t,attrs:n.__assign(n.__assign({x:0,y:0,text:o},r),s)})},e.prototype.getLabelAlignAttrs=function(t,e){var i="center",n="middle";return this.isVertical()?(i="start",n="rail"!==e?"min"===t?"top":"bottom":"top"):"rail"!==e?(n="top",i="min"===t?"start":"end"):(i="start",n="middle"),{textAlign:i,textBaseline:n}},e.prototype.getRailPath=function(t,e,i,n){var r=this.get("rail"),a=r.size,o=r.defaultLength,s=r.type,l=this.isVertical(),u=i,c=n;u||(u=l?a:o),c||(c=l?o:a);var p=[];return"color"===s?(p.push(["M",t,e]),p.push(["L",t+u,e]),p.push(["L",t+u,e+c]),p.push(["L",t,e+c]),p.push(["Z"])):(p.push(["M",t+u,e]),p.push(["L",t+u,e+c]),p.push(["L",t,e+c]),p.push(["Z"])),p},e.prototype.drawRail=function(t){var e=this.get("rail").style;this.addShape(t,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:n.__assign({path:this.getRailPath(0,0)},e)})},e.prototype.getTrackColor=function(t){var e,i=t.length;if(!i)return null;if(1===i)return t[0];e=this.isVertical()?"l(90)":"l(0)";for(var n=0;n<i;n++){e+=" "+n/(i-1)+":"+t[n]}return e},e.prototype.getTrackPath=function(t){var e=this.getRailShape(t).attr("path");return r.clone(e)},e.prototype.getClipTrackAttrs=function(t){var e,i,n,r,a=this.getCurrentValue(),o=a[0],s=a[1],l=this.getRailBBox(t),u=this.getPointByValue(o,t),c=this.getPointByValue(s,t);return this.isVertical()?(e=l.minX,i=u.y,n=l.width,r=c.y-u.y):(e=u.x,i=l.minY,n=c.x-u.x,r=l.height),{x:e,y:i,width:n,height:r}},e.prototype.getTrackAttrs=function(t){var e=this.get("track"),i=this.get("colors"),n=this.getTrackPath(t);return r.mix({path:n,fill:this.getTrackColor(i)},e.style)},e.prototype.resetTrackClip=function(t){var e=t||this.get("group"),i=this.getElementId("track"),n=e.findById(i),r=n.getClip(),a=this.getClipTrackAttrs(t);r?r.attr(a):n.setClip({type:"rect",attrs:a})},e.prototype.resetTrack=function(t){var e=this.getElementId("track"),i=t.findById(e),n=this.getTrackAttrs(t);i?i.attr(n):this.addShape(t,{type:"path",id:e,draggable:this.get("slidable"),name:"legend-track",attrs:n})},e.prototype.getPointByValue=function(t,e){var i=this.getRange(),n=i.min,r=(t-n)/(i.max-n),a=this.getRailBBox(e),s={x:0,y:0};return this.isVertical()?(s.x=a.minX+a.width/2,s.y=o.getValueByPercent(a.minY,a.maxY,r)):(s.x=o.getValueByPercent(a.minX,a.maxX,r),s.y=a.minY+a.height/2),s},e.prototype.getRailShape=function(t){return(t||this.get("group")).findById(this.getElementId("rail"))},e.prototype.getRailBBox=function(t){return this.getRailShape(t).getBBox()},e.prototype.getRailCanvasBBox=function(){return this.get("group").findById(this.getElementId("rail")).getCanvasBBox()},e.prototype.isVertical=function(){return"vertical"===this.get("layout")},e.prototype.getValueByCanvasPoint=function(t,e){var i,n=this.getRange(),r=n.min,a=n.max,s=this.getRailCanvasBBox(),l=this.isVertical(),u=this.get("step");i=l?(e-s.minY)/s.height:(t-s.minX)/s.width;var c=o.getValueByPercent(r,a,i);u&&(c=r+Math.round((c-r)/u)*u);return c>a&&(c=a),c<r&&(c=r),c},e.prototype.getCurrentValue=function(){var t=this.get("value");return t||(t=[this.get("min"),this.get("max")]),t},e.prototype.resetHandlers=function(t){var e=this.getCurrentValue(),i=e[0],n=e[1];this.resetHandler(t,"min",i),this.resetHandler(t,"max",n)},e.prototype.getHandlerPath=function(t,e){var i=this.isVertical(),n=[],r=t.size,a=e.x,o=e.y,s=1.4*r,l=r/2,u=r/6;if(i){var c=a+.4*s;n.push(["M",a,o]),n.push(["L",c,o+l]),n.push(["L",a+s,o+l]),n.push(["L",a+s,o-l]),n.push(["L",c,o-l]),n.push(["Z"]),n.push(["M",c,o+u]),n.push(["L",a+s-2,o+u]),n.push(["M",c,o-u]),n.push(["L",a+s-2,o-u])}else{var p=o+.4*s;n.push(["M",a,o]),n.push(["L",a-l,p]),n.push(["L",a-l,o+s]),n.push(["L",a+l,o+s]),n.push(["L",a+l,p]),n.push(["Z"]),n.push(["M",a-u,p]),n.push(["L",a-u,o+s-2]),n.push(["M",a+u,p]),n.push(["L",a+u,o+s-2])}return n},e.prototype.resetHandler=function(t,e,i){var r=this.getPointByValue(i,t),a=this.get("handler"),o=this.getHandlerPath(a,r),s=this.getElementId("handler-"+e),l=t.findById(s),u=this.isVertical();l?l.attr("path",o):this.addShape(t,{type:"path",name:"legend-handler-"+e,draggable:!0,id:s,attrs:n.__assign(n.__assign({path:o},a.style),{cursor:u?"ns-resize":"ew-resize"})})},e.prototype.fixedElements=function(t){var e=t.findById(this.getElementId("rail")),i=t.findById(this.getElementId("label-min")),n=t.findById(this.getElementId("label-max")),r=this.getDrawPoint();this.isVertical()?this.fixedVertail(i,n,e,r):this.fixedHorizontal(i,n,e,r)},e.prototype.fitRailLength=function(t,e,i,n){var a=this.isVertical()?"height":"width",o=this.get("label"),s=o.align,l=o.spacing,u=this.get("max"+r.upperFirst(a));if(u){var c=("rail"===s?i[a]+t[a]+e[a]+2*l:i[a])-u;c>0&&this.changeRailLength(n,a,i[a]-c)}},e.prototype.changeRailLength=function(t,e,i){var n,r=t.getBBox();n="height"===e?this.getRailPath(r.x,r.y,r.width,i):this.getRailPath(r.x,r.y,i,r.height),t.attr("path",n)},e.prototype.changeRailPosition=function(t,e,i){var n=t.getBBox(),r=this.getRailPath(e,i,n.width,n.height);t.attr("path",r)},e.prototype.fixedHorizontal=function(t,e,i,n){var r=this.get("label"),a=r.align,o=r.spacing,s=i.getBBox(),l=t.getBBox(),u=e.getBBox(),c=s.height;this.fitRailLength(l,u,s,i),s=i.getBBox(),"rail"===a?(t.attr({x:n.x,y:n.y+c/2}),this.changeRailPosition(i,n.x+l.width+o,n.y),e.attr({x:n.x+l.width+s.width+2*o,y:n.y+c/2})):"top"===a?(t.attr({x:n.x,y:n.y}),e.attr({x:n.x+s.width,y:n.y}),this.changeRailPosition(i,n.x,n.y+l.height+o)):(this.changeRailPosition(i,n.x,n.y),t.attr({x:n.x,y:n.y+s.height+o}),e.attr({x:n.x+s.width,y:n.y+s.height+o}))},e.prototype.fixedVertail=function(t,e,i,n){var r=this.get("label"),a=r.align,o=r.spacing,s=i.getBBox(),l=t.getBBox(),u=e.getBBox();if(this.fitRailLength(l,u,s,i),s=i.getBBox(),"rail"===a)t.attr({x:n.x,y:n.y}),this.changeRailPosition(i,n.x,n.y+l.height+o),e.attr({x:n.x,y:n.y+l.height+s.height+2*o});else if("right"===a)t.attr({x:n.x+s.width+o,y:n.y}),this.changeRailPosition(i,n.x,n.y),e.attr({x:n.x+s.width+o,y:n.y+s.height});else{var c=Math.max(l.width,u.width);t.attr({x:n.x,y:n.y}),this.changeRailPosition(i,n.x+c+o,n.y),e.attr({x:n.x,y:n.y+s.height})}},e}(s.default);i.default=l},{"../util/theme":76,"../util/util":77,"./base":52,"@antv/util":803,tslib:894}],55:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./category");Object.defineProperty(i,"Category",{enumerable:!0,get:function(){return n.default}});var r=t("./continuous");Object.defineProperty(i,"Continuous",{enumerable:!0,get:function(){return r.default}});var a=t("./base");Object.defineProperty(i,"Base",{enumerable:!0,get:function(){return a.default}})},{"./base":52,"./category":53,"./continuous":54}],56:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),t("tslib").__exportStar(t("./scrollbar"),i)},{"./scrollbar":57,tslib:894}],57:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Scrollbar=i.DEFAULT_THEME=void 0;var n=t("tslib"),r=t("@antv/dom-util"),a=t("@antv/util"),o=t("../abstract/group-component");i.DEFAULT_THEME={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}};var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=a.noop,e.onStartEvent=function(t){return function(i){e.isMobile=t,i.originalEvent.preventDefault();var n=t?a.get(i.originalEvent,"touches.0.clientX"):i.clientX,r=t?a.get(i.originalEvent,"touches.0.clientY"):i.clientY;e.startPos=e.cfg.isHorizontal?n:r,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),i=[];i=e.isMobile?[r.addEventListener(t,"touchmove",e.onMouseMove),r.addEventListener(t,"touchend",e.onMouseUp),r.addEventListener(t,"touchcancel",e.onMouseUp)]:[r.addEventListener(t,"mousemove",e.onMouseMove),r.addEventListener(t,"mouseup",e.onMouseUp),r.addEventListener(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){i.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var i=e.cfg,n=i.isHorizontal,r=i.thumbOffset;t.preventDefault();var o=e.isMobile?a.get(t,"touches.0.clientX"):t.clientX,s=e.isMobile?a.get(t,"touches.0.clientY"):t.clientY,l=n?o:s,u=l-e.startPos;e.startPos=l,e.updateThumbOffset(r+u)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var i=e.cfg,n=i.isHorizontal,r=i.x,a=i.y,o=i.thumbLen,s=e.getContainerDOM().getBoundingClientRect(),l=t.clientX,u=t.clientY,c=n?l-s.left-r-o/2:u-s.top-a-o/2,p=e.validateRange(c);e.updateThumbOffset(p)},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 n.__extends(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var i=this.getValue(),n=a.clamp(i,t,e);i===n||this.get("isInit")||this.setValue(n)},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange(),i=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*a.clamp(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:i,value:this.getValue()})},e.prototype.getValue=function(){return a.clamp(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},e),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:i.DEFAULT_THEME})},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,i=e.trackLen,n=e.theme,r=(void 0===n?{default:{}}:n).default,a=r.lineCap,o=r.trackColor,s=r.size,l=this.get("isHorizontal")?{x1:0+s/2,y1:s/2,x2:i-s/2,y2:s/2,lineWidth:s,stroke:o,lineCap:a}:{x1:s/2,y1:0+s/2,x2:s/2,y2:i-s/2,lineWidth:s,stroke:o,lineCap:a};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:l})},e.prototype.renderThumbShape=function(t){var e=this.cfg,i=e.thumbOffset,n=e.thumbLen,r=e.theme,a=(void 0===r?{default:{}}:r).default,o=a.size,s=a.lineCap,l=a.thumbColor,u=this.get("isHorizontal")?{x1:i+o/2,y1:o/2,x2:i+n-o/2,y2:o/2,lineWidth:o,stroke:l,lineCap:s,cursor:"default"}:{x1:o/2,y1:i+o/2,x2:o/2,y2:i+n-o/2,lineWidth:o,stroke:l,lineCap:s,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:u})},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),t.findById(this.getElementId("track")).on("click",this.onTrackClick);var e=t.findById(this.getElementId("thumb"));e.on("mouseover",this.onThumbMouseOver),e.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,i=e.thumbLen,n=e.trackLen,r=t;return t+i>n?r=n-i:t+i<i&&(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,i=e.thumbOffset,n=e.isHorizontal,r=e.thumbLen,a=e.size,o=this.validateRange(t);if(o!==i){var s=this.getElementByLocalId("thumb");n?s.attr({x1:o+a/2,x2:o+r-a/2}):s.attr({y1:o+a/2,y2:o+r-a/2}),this.emitOffsetChange(o)}},e.prototype.emitOffsetChange=function(t){var e=this.cfg,i=e.thumbOffset,n=e.trackLen,r=e.thumbLen;this.cfg.thumbOffset=t,this.emit("scrollchange",{thumbOffset:t,ratio:a.clamp(t/(n-r),0,1)}),this.delegateEmit("valuechange",{originalValue:i,value:t})},e}(o.default);i.Scrollbar=s},{"../abstract/group-component":21,"@antv/dom-util":92,"@antv/util":803,tslib:894}],58:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.SLIDER_CHANGE=i.TEXT_STYLE=i.HANDLER_STYLE=i.DEFAULT_HANDLER_WIDTH=i.FOREGROUND_STYLE=i.BACKGROUND_STYLE=void 0,i.BACKGROUND_STYLE={fill:"#416180",opacity:.05},i.FOREGROUND_STYLE={fill:"#5B8FF9",opacity:.15,cursor:"move"},i.DEFAULT_HANDLER_WIDTH=10,i.HANDLER_STYLE={width:i.DEFAULT_HANDLER_WIDTH,height:24},i.TEXT_STYLE={textBaseline:"middle",fill:"#000",opacity:.45},i.SLIDER_CHANGE="sliderchange"},{}],59:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Handler=void 0;var n=t("tslib"),r=t("../abstract/group-component"),a={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},e),{name:"handler",x:0,y:0,width:10,height:24,style:a})},e.prototype.renderInner=function(t){var e=this.cfg,i=e.width,n=e.height,r=e.style,a=r.fill,o=r.stroke,s=r.radius,l=r.opacity,u=r.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:i,height:n,fill:a,stroke:o,radius:s,opacity:l,cursor:u}});var c=1/3*i,p=2/3*i,h=1/4*n,f=3/4*n;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:c,y1:h,x2:c,y2:f,stroke:o,cursor:u}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:p,y1:h,x2:p,y2:f,stroke:o,cursor:u}})},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}(r.default);i.Handler=o,i.default=o},{"../abstract/group-component":21,tslib:894}],60:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./slider");Object.defineProperty(i,"Slider",{enumerable:!0,get:function(){return n.Slider}})},{"./slider":61}],61:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Slider=void 0;var n=t("tslib"),r=t("@antv/util"),a=t("../abstract/group-component"),o=t("../trend/trend"),s=t("./constant"),l=t("./handler"),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){return function(i){e.currentTarget=t;var n=i.originalEvent;n.stopPropagation(),n.preventDefault(),e.prevX=r.get(n,"touches.0.pageX",n.pageX),e.prevY=r.get(n,"touches.0.pageY",n.pageY);var a=e.getContainerDOM();a.addEventListener("mousemove",e.onMouseMove),a.addEventListener("mouseup",e.onMouseUp),a.addEventListener("mouseleave",e.onMouseUp),a.addEventListener("touchmove",e.onMouseMove),a.addEventListener("touchend",e.onMouseUp),a.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var i=e.cfg.width,n=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var a=r.get(t,"touches.0.pageX",t.pageX),o=r.get(t,"touches.0.pageY",t.pageY),l=a-e.prevX,u=e.adjustOffsetRange(l/i);e.updateStartEnd(u),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=a,e.prevY=o,e.draw(),e.emit(s.SLIDER_CHANGE,[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:n,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 n.__extends(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var i=this.get("start"),n=this.get("end"),a=r.clamp(i,t,e),o=r.clamp(n,t,e);this.get("isInit")||i===a&&n===o||this.setValue([a,o])},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(r.isArray(t)&&2===t.length){var i=[this.get("start"),this.get("end")];this.update({start:r.clamp(t[0],e.min,e.max),end:r.clamp(t[1],e.min,e.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:i,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 n.__assign(n.__assign({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:s.BACKGROUND_STYLE,foregroundStyle:s.FOREGROUND_STYLE,handlerStyle:s.HANDLER_STYLE,textStyle:s.TEXT_STYLE}})},e.prototype.update=function(e){var i=e.start,a=e.end,o=n.__assign({},e);r.isNil(i)||(o.start=r.clamp(i,0,1)),r.isNil(a)||(o.end=r.clamp(a,0,1)),t.prototype.update.call(this,o),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler"))},e.prototype.init=function(){this.set("start",r.clamp(this.get("start"),0,1)),this.set("end",r.clamp(this.get("end"),0,1)),t.prototype.init.call(this)},e.prototype.renderInner=function(t){var e=this.cfg,i=(e.start,e.end,e.width),a=e.height,s=e.trendCfg,u=void 0===s?{}:s,c=e.minText,p=e.maxText,h=e.backgroundStyle,f=void 0===h?{}:h,d=e.foregroundStyle,g=void 0===d?{}:d,v=e.textStyle,y=void 0===v?{}:v,m=e.handlerStyle,b=void 0===m?{}:m;r.size(r.get(u,"data"))&&this.addComponent(t,n.__assign({component:o.Trend,id:this.getElementId("trend"),x:0,y:0,width:i,height:a},u)),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:n.__assign({x:0,y:0,width:i,height:a},f)});var x=this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:n.__assign({y:a/2,textAlign:"right",text:c,silent:!1},y)}),_=this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:n.__assign({y:a/2,textAlign:"left",text:p,silent:!1},y)}),M=this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:n.__assign({y:0,height:a},g)}),w=r.get(b,"height",24);this.minHandler=this.addComponent(t,n.__assign({component:l.Handler,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(a-w)/2,width:i,height:w,cursor:"ew-resize"},b)),this.maxHandler=this.addComponent(t,n.__assign({component:l.Handler,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(a-w)/2,width:i,height:w,cursor:"ew-resize"},b)),this.updateUI(M,x,_)},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,i){var n=this.cfg,a=n.start,o=n.end,l=n.width,u=n.minText,c=n.maxText,p=n.handlerStyle,h=a*l,f=o*l;t.attr("x",h),t.attr("width",f-h);var d=r.get(p,"width",s.DEFAULT_HANDLER_WIDTH);e.attr("text",u),i.attr("text",c);var g=this._dodgeText([h,f],e,i),v=g[0],y=g[1];this.minHandler&&(this.minHandler.update({x:h-d/2}),this.get("updateAutoRender")||this.minHandler.render()),r.each(v,(function(t,i){return e.attr(i,t)})),this.maxHandler&&(this.maxHandler.update({x:f-d/2}),this.get("updateAutoRender")||this.maxHandler.render()),r.each(y,(function(t,e){return i.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,i=e.start,n=e.end;switch(this.currentTarget){case"minHandler":var r=0-i,a=1-i;return Math.min(a,Math.max(r,t));case"maxHandler":r=0-n,a=1-n;return Math.min(a,Math.max(r,t));case"foreground":r=0-i,a=1-n;return Math.min(a,Math.max(r,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,i=e.start,n=e.end;switch(this.currentTarget){case"minHandler":i+=t;break;case"maxHandler":n+=t;break;case"foreground":i+=t,n+=t}this.set("start",i),this.set("end",n)},e.prototype._dodgeText=function(t,e,i){var n,a,o=this.cfg,l=o.handlerStyle,u=o.width,c=r.get(l,"width",s.DEFAULT_HANDLER_WIDTH),p=t[0],h=t[1],f=!1;p>h&&(p=(n=[h,p])[0],h=n[1],e=(a=[i,e])[0],i=a[1],f=!0);var d=e.getBBox(),g=i.getBBox(),v=d.width>p-2?{x:p+c/2+2,textAlign:"left"}:{x:p-c/2-2,textAlign:"right"},y=g.width>u-h-2?{x:h-c/2-2,textAlign:"right"}:{x:h+c/2+2,textAlign:"left"};return f?[y,v]:[v,y]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(a.default);i.Slider=u,i.default=u},{"../abstract/group-component":21,"../trend/trend":68,"./constant":58,"./handler":59,"@antv/util":803,tslib:894}],62:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.CROSSHAIR_Y=i.CROSSHAIR_X=i.NAME_CLASS=i.VALUE_CLASS=i.MARKER_CLASS=i.LIST_ITEM_CLASS=i.LIST_CLASS=i.TITLE_CLASS=i.CONTAINER_CLASS=void 0,i.CONTAINER_CLASS="g2-tooltip",i.TITLE_CLASS="g2-tooltip-title",i.LIST_CLASS="g2-tooltip-list",i.LIST_ITEM_CLASS="g2-tooltip-list-item",i.MARKER_CLASS="g2-tooltip-marker",i.VALUE_CLASS="g2-tooltip-value",i.NAME_CLASS="g2-tooltip-name",i.CROSSHAIR_X="g2-tooltip-crosshair-x",i.CROSSHAIR_Y="g2-tooltip-crosshair-y"},{}],63:[function(t,e,i){"use strict";var n;Object.defineProperty(i,"__esModule",{value:!0});var r=t("../util/theme"),a=t("./css-const");i.default=((n={})[""+a.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:r.default.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},n[""+a.TITLE_CLASS]={marginBottom:"4px"},n[""+a.LIST_CLASS]={margin:"0px",listStyleType:"none",padding:"0px"},n[""+a.LIST_ITEM_CLASS]={listStyleType:"none",marginBottom:"4px"},n[""+a.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},n[""+a.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},n[""+a.CROSSHAIR_X]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},n[""+a.CROSSHAIR_Y]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},n)},{"../util/theme":76,"./css-const":62}],64:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/color-util"),a=t("@antv/dom-util"),o=t("@antv/util"),s=t("../abstract/html-component"),l=t("../util/util"),u=t("./css-const"),c=t("./html-theme"),p=t("../util/align");var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},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:c.default})},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),a.modifyCSS(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),a.modifyCSS(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",i=this.get("xCrosshairDom"),n=this.get("yCrosshairDom");i&&a.modifyCSS(i,{display:e}),n&&a.modifyCSS(n,{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){var i,n,r;this.get("customContent")?this.renderCustomContent():(i=e,n=["title","showTitle"],r=!1,o.each(n,(function(t){if(o.hasKey(i,t))return r=!0,!1})),r&&this.resetTitle(),o.hasKey(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"),i=this.get("y"),n=this.get("offset"),r=this.getOffset(),o=r.offsetX,s=r.offsetY,u=this.get("position"),c=this.get("region"),h=this.getContainer(),f=this.getBBox(),d=f.width,g=f.height;c&&(t=l.regionToBBox(c));var v=p.getAlignPoint(e,i,n,d,g,u,t);a.modifyCSS(h,{left:l.toPx(v.x+o),top:l.toPx(v.y+s)}),this.resetCrosshairs()},e.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),e=this.get("parent"),i=this.get("container");i&&i.parentNode===e?e.replaceChild(t,i):e.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},e.prototype.getHtmlContentNode=function(){var t,e=this.get("customContent");if(e){var i=e(this.get("title"),this.get("items"));t=o.isElement(i)?i:a.createDom(i)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(u.TITLE_CLASS)[0],i=t.getElementsByClassName(u.LIST_CLASS)[0];this.set("titleDom",e),this.set("listDom",i)},e.prototype.resetTitle=function(){var t=this.get("title");this.get("showTitle")&&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 i=l.regionToBBox(t),n=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",i),r&&(r.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",i),n&&(n.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",i),this.resetCrosshair("y",i)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},e.prototype.resetCrosshair=function(t,e){var i=this.checkCrosshair(t),n=this.get(t);"x"===t?a.modifyCSS(i,{left:l.toPx(n),top:l.toPx(e.y),height:l.toPx(e.height)}):a.modifyCSS(i,{top:l.toPx(n),left:l.toPx(e.x),width:l.toPx(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",i=t+"CrosshairTpl",n="CROSSHAIR_"+t.toUpperCase(),r=u[n],o=this.get(e),s=this.get("parent");return o||(o=a.createDom(this.get(i)),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"),i=this.get("listDom");i&&(o.each(t,(function(t){var s=r.default.toCSSGradient(t.color),l=n.__assign(n.__assign({},t),{color:s}),u=o.substitute(e,l),c=a.createDom(u);i.appendChild(c)})),this.applyChildrenStyles(i,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&l.clearDom(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}(s.default);i.default=h},{"../abstract/html-component":22,"../util/align":69,"../util/util":77,"./css-const":62,"./html-theme":63,"@antv/color-util":19,"@antv/dom-util":92,"@antv/util":803,tslib:894}],65:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./html");Object.defineProperty(i,"Html",{enumerable:!0,get:function(){return n.default}})},{"./html":64}],66:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.AREA_STYLE=i.LINE_STYLE=i.BACKGROUND_STYLE=void 0,i.BACKGROUND_STYLE={opacity:0},i.LINE_STYLE={stroke:"#C5C5C5",strokeOpacity:.85},i.AREA_STYLE={fill:"#CACED4",opacity:.85}},{}],67:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.linePathToAreaPath=i.dataToPath=i.getSmoothLinePath=i.getLinePath=void 0;var n=t("tslib"),r=t("@antv/path-util"),a=t("@antv/scale"),o=t("@antv/util");function s(t){return function(t){return o.map(t,(function(t,e){return[0===e?"M":"L",t[0],t[1]]}))}(t)}function l(t){if(t.length<=2)return s(t);var e=[];o.each(t,(function(t){o.isEqual(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var i=r.catmullRom2Bezier(e,!1),n=o.head(t),a=n[0],l=n[1];return i.unshift(["M",a,l]),i}i.getLinePath=s,i.getSmoothLinePath=l,i.dataToPath=function(t,e,i,n){void 0===n&&(n=!0);var r=new a.Linear({values:t}),u=new a.Category({values:o.map(t,(function(t,e){return e}))}),c=o.map(t,(function(t,n){return[u.scale(n)*e,i-r.scale(t)*i]}));return n?l(c):s(c)},i.linePathToAreaPath=function(t,e,i){var r=n.__spreadArrays(t);return r.push(["L",e,0]),r.push(["L",0,i]),r.push(["Z"]),r}},{"@antv/path-util":724,"@antv/scale":747,"@antv/util":803,tslib:894}],68:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Trend=void 0;var n=t("tslib"),r=t("../abstract/group-component"),a=t("./constant"),o=t("./path"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.__assign(n.__assign({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:a.BACKGROUND_STYLE,lineStyle:a.LINE_STYLE,areaStyle:a.AREA_STYLE})},e.prototype.renderInner=function(t){var e=this.cfg,i=e.width,r=e.height,a=e.data,s=e.smooth,l=e.isArea,u=e.backgroundStyle,c=e.lineStyle,p=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:n.__assign({x:0,y:0,width:i,height:r},u)});var h=o.dataToPath(a,i,r,s);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:n.__assign({path:h},c)}),l){var f=o.linePathToAreaPath(h,i,r);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:n.__assign({path:f},p)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,i=t.y;this.moveElementTo(this.get("group"),{x:e,y:i})},e}(r.default);i.Trend=s,i.default=s},{"../abstract/group-component":21,"./constant":66,"./path":67,tslib:894}],69:[function(t,e,i){"use strict";function n(t,e,i,n,r){return{left:t<r.x,right:t+i>r.x+r.width,top:e<r.y,bottom:e+n>r.y+r.height}}function r(t,e,i,n,r,a){var o=t,s=e;switch(a){case"left":o=t-n-i,s=e-r/2;break;case"right":o=t+i,s=e-r/2;break;case"top":o=t-n/2,s=e-r-i;break;case"bottom":o=t-n/2,s=e+i;break;default:o=t+i,s=e-r-i}return{x:o,y:s}}Object.defineProperty(i,"__esModule",{value:!0}),i.getAlignPoint=i.getPointByPosition=i.getOutSides=void 0,i.getOutSides=n,i.getPointByPosition=r,i.getAlignPoint=function(t,e,i,a,o,s,l){var u=r(t,e,i,a,o,s);if(l){var c=n(u.x,u.y,a,o,l);"auto"===s?(c.right&&(u.x=Math.max(0,t-a-i)),c.top&&(u.y=Math.max(0,e-o-i))):"top"===s||"bottom"===s?(c.left&&(u.x=l.x),c.right&&(u.x=l.x+l.width-a),"top"===s&&c.top&&(u.y=e+i),"bottom"===s&&c.bottom&&(u.y=e-o-i)):(c.top&&(u.y=l.y),c.bottom&&(u.y=l.y+l.height-o),"left"===s&&c.left&&(u.x=t+i),"right"===s&&c.right&&(u.x=t-a-i))}return u}},{}],70:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.propagationDelegate=void 0;var n=t("@antv/g-base/lib/event/graph-event");i.propagationDelegate=function(t,e,i){var r=new n.default(e,i);r.target=t,r.propagationPath.push(t),t.emitDelegation(e,r);for(var a=t.getParent();a;)a.emitDelegation(e,r),r.propagationPath.push(a),a=a.getParent()}},{"@antv/g-base/lib/event/graph-event":114}],71:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.renderTag=void 0;var n=t("tslib"),r=t("@antv/util"),a=t("./label"),o=t("./matrix"),s=t("./util");i.renderTag=function(t,e){var i=e.x,l=e.y,u=e.content,c=e.style,p=e.id,h=e.name,f=e.rotate,d=e.maxLength,g=e.autoEllipsis,v=e.isVertical,y=e.ellipsisPosition,m=e.background,b=t.addGroup({id:p+"-group",name:h+"-group",attrs:{x:i,y:l}}),x=b.addShape({type:"text",id:p,name:h,attrs:n.__assign({x:0,y:0,text:u},c)}),_=s.formatPadding(r.get(m,"padding",0));if(d&&g){var M=d-(_[1]+_[3]);a.ellipsisLabel(!v,x,M,y)}if(m){var w=r.get(m,"style",{}),S=x.getCanvasBBox(),C=S.minX,P=S.minY,O=S.width,T=S.height;b.addShape("rect",{id:p+"-bg",name:p+"-bg",attrs:n.__assign({x:C-_[3],y:P-_[0],width:O+_[1]+_[3],height:T+_[0]+_[2]},w)}).toBack()}o.applyTranslate(b,i,l),o.applyRotate(b,f,i,l)}},{"./label":72,"./matrix":73,"./util":77,"@antv/util":803,tslib:894}],72:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ellipsisLabel=i.testLabel=i.getLabelLength=i.getMaxLabelWidth=void 0;var n=t("@antv/util"),r=t("./text");function a(t,e){var i=e.getCanvasBBox();return t?i.width:i.height}i.getMaxLabelWidth=function(t){var e=0;return n.each(t,(function(t){var i=t.getBBox().width;e<i&&(e=i)})),e},i.getLabelLength=a,i.testLabel=function(t,e){return t.getBBox().width<e},i.ellipsisLabel=function(t,e,i,n){void 0===n&&(n="tail");var o=e.attr("text"),s=a(t,e),l=r.strLen(o),u=!1;if(i<s){var c=Math.floor(i/s*l)-2,p=void 0;(p=c>=0?r.ellipsisString(o,c,n):"…")&&(e.attr("text",p),u=!0)}return u?e.set("tip",o):e.set("tip",null),u}},{"./text":75,"@antv/util":803}],73:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.applyTranslate=i.applyRotate=i.applyMatrix2BBox=i.getAngleByMatrix=i.getMatrixByTranslate=i.getMatrixByAngle=void 0;var n=t("@antv/matrix-util"),r=[1,0,0,0,1,0,0,0,1];function a(t,e,i){return void 0===i&&(i=r),e?n.ext.transform(i,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]):null}function o(t,e){return t.x||t.y?n.ext.transform(e||r,[["t",t.x,t.y]]):null}function s(t,e){var i=[0,0];return n.vec2.transformMat3(i,e,t),i}i.getMatrixByAngle=a,i.getMatrixByTranslate=o,i.getAngleByMatrix=function(t){var e=[0,0,0];return n.vec3.transformMat3(e,[1,0,0],t),Math.atan2(e[1],e[0])},i.applyMatrix2BBox=function(t,e){var i=s(t,[e.minX,e.minY]),n=s(t,[e.maxX,e.minY]),r=s(t,[e.minX,e.maxY]),a=s(t,[e.maxX,e.maxY]),o=Math.min(i[0],n[0],r[0],a[0]),l=Math.max(i[0],n[0],r[0],a[0]),u=Math.min(i[1],n[1],r[1],a[1]),c=Math.max(i[1],n[1],r[1],a[1]);return{x:o,y:u,minX:o,minY:u,maxX:l,maxY:c,width:l-o,height:c-u}},i.applyRotate=function(t,e,i,n){if(e){var r=a({x:i,y:n},e,t.getMatrix());t.setMatrix(r)}},i.applyTranslate=function(t,e,i){var n=o({x:e,y:i});t.attr("matrix",n)}},{"@antv/matrix-util":717}],74:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getStatesStyle=void 0;var n=t("@antv/util");i.getStatesStyle=function(t,e,i){var r=e+"Style",a=null;return n.each(i,(function(e,i){t[i]&&e[r]&&(a||(a={}),n.mix(a,e[r]))})),a}},{"@antv/util":803}],75:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ellipsisString=i.charAtLength=i.strLen=void 0;function n(t,e){return t.charCodeAt(e)>0&&t.charCodeAt(e)<128?1:2}i.strLen=function(t){for(var e=0,i=0;i<t.length;i++)e+=n(t,i);return e},i.charAtLength=n,i.ellipsisString=function(t,e,i){void 0===i&&(i="tail");var r=t.length,a="";if("tail"===i){for(var o=0,s=0;o<e;){if(!(o+n(t,s)<=e))break;a+=t[s],o+=n(t,s),s++}a+="…"}else if("head"===i){for(o=0,s=r-1;o<e;){if(!(o+n(t,s)<=e))break;a+=t[s],o+=n(t,s),s--}a="…"+a}else{for(var l="",u="",c=(o=0,0),p=r-1;o<e;){var h=n(t,c),f=!1;h+o<=e&&(l+=t[c],c++,o+=h,f=!0);var d=n(t,p);if(d+o<=e&&(u=t[p]+u,o+=d,p--,f=!0),!f)break}a=l+"…"+u}return a}},{}],76:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default={fontFamily:'\n "-apple-system", 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}},{}],77:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getTextPoint=i.toPx=i.updateClip=i.getBBoxWithClip=i.mergeBBox=i.intersectBBox=i.near=i.wait=i.distance=i.getCirclePoint=i.getValueByPercent=i.createBBox=i.pointsToBBox=i.regionToBBox=i.hasClass=i.clearDom=i.formatPadding=void 0;var n=t("@antv/util");function r(t,e,i,n){return{x:t,y:e,width:i,height:n,minX:t,minY:e,maxX:t+i,maxY:e+n}}function a(t,e,i){return(1-i)*t+e*i}function o(t,e){var i=e.x-t.x,n=e.y-t.y;return Math.sqrt(i*i+n*n)}function s(t,e){var i=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY);return r(i,n,Math.min(t.maxX,e.maxX)-i,Math.min(t.maxY,e.maxY)-n)}i.formatPadding=function(t){var e=0,i=0,r=0,a=0;return n.isNumber(t)?e=i=r=a=t:n.isArray(t)&&(e=t[0],r=n.isNil(t[1])?t[0]:t[1],a=n.isNil(t[2])?t[0]:t[2],i=n.isNil(t[3])?r:t[3]),[e,r,a,i]},i.clearDom=function(t){for(var e=t.childNodes,i=e.length-1;i>=0;i--)t.removeChild(e[i])},i.hasClass=function(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},i.regionToBBox=function(t){var e=t.start,i=t.end,n=Math.min(e.x,i.x),r=Math.min(e.y,i.y),a=Math.max(e.x,i.x),o=Math.max(e.y,i.y);return{x:n,y:r,minX:n,minY:r,maxX:a,maxY:o,width:a-n,height:o-r}},i.pointsToBBox=function(t){var e=t.map((function(t){return t.x})),i=t.map((function(t){return t.y})),n=Math.min.apply(Math,e),r=Math.min.apply(Math,i),a=Math.max.apply(Math,e),o=Math.max.apply(Math,i);return{x:n,y:r,minX:n,minY:r,maxX:a,maxY:o,width:a-n,height:o-r}},i.createBBox=r,i.getValueByPercent=a,i.getCirclePoint=function(t,e,i){return{x:t.x+Math.cos(i)*e,y:t.y+Math.sin(i)*e}},i.distance=o,i.wait=function(t){return new Promise((function(e){setTimeout(e,t)}))},i.near=function(t,e){return[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)<Math.pow(Number.EPSILON,.5)},i.intersectBBox=s,i.mergeBBox=function(t,e){var i=Math.min(t.minX,e.minX),n=Math.min(t.minY,e.minY);return r(i,n,Math.max(t.maxX,e.maxX)-i,Math.max(t.maxY,e.maxY)-n)},i.getBBoxWithClip=function t(e){var i,a=e.getClip(),o=a&&a.getBBox();if(e.isGroup()){var l=1/0,u=-1/0,c=1/0,p=-1/0,h=e.getChildren();h.length>0?n.each(h,(function(e){if(e.get("visible")){if(e.isGroup()&&0===e.get("children").length)return!0;var i=t(e),n=e.applyToMatrix([i.minX,i.minY,1]),r=e.applyToMatrix([i.minX,i.maxY,1]),a=e.applyToMatrix([i.maxX,i.minY,1]),o=e.applyToMatrix([i.maxX,i.maxY,1]),s=Math.min(n[0],r[0],a[0],o[0]),h=Math.max(n[0],r[0],a[0],o[0]),f=Math.min(n[1],r[1],a[1],o[1]),d=Math.max(n[1],r[1],a[1],o[1]);s<l&&(l=s),h>u&&(u=h),f<c&&(c=f),d>p&&(p=d)}})):(l=0,u=0,c=0,p=0),i=r(l,c,u-l,p-c)}else i=e.getBBox();return o?s(i,o):i},i.updateClip=function(t,e){if(t.getClip()||e.getClip()){var i=e.getClip();if(i){var n={type:i.get("type"),attrs:i.attr()};t.setClip(n)}else t.setClip(null)}},i.toPx=function(t){return t+"px"},i.getTextPoint=function(t,e,i,n){var r=n/o(t,e),s=0;return"start"===i?s=0-r:"end"===i&&(s=1+r),{x:a(t.x,e.x,s),y:a(t.y,e.y,s)}}},{"@antv/util":803}],78:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/matrix-util"),a=t("@antv/util"),o=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,i=t.end,r=t.matrix,a=void 0===r?[1,0,0,0,1,0,0,0,1]:r,o=t.isTransposed,s=void 0!==o&&o;this.start=e,this.end=i,this.matrix=a,this.originalMatrix=n.__spreadArrays(a),this.isTransposed=s}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){a.assign(this,t),this.initial()},t.prototype.convertDim=function(t,e){var i,n=this[e],r=n.start,a=n.end;return this.isReflect(e)&&(r=(i=[a,r])[0],a=i[1]),r+t*(a-r)},t.prototype.invertDim=function(t,e){var i,n=this[e],r=n.start,a=n.end;return this.isReflect(e)&&(r=(i=[a,r])[0],a=i[1]),(t-r)/(a-r)},t.prototype.applyMatrix=function(t,e,i){void 0===i&&(i=0);var n=this.matrix,a=[t,e,i];return r.vec3.transformMat3(a,a,n),a},t.prototype.invertMatrix=function(t,e,i){void 0===i&&(i=0);var n=this.matrix,a=r.mat3.invert([0,0,0,0,0,0,0,0,0],n),o=[t,e,i];return a&&r.vec3.transformMat3(o,o,a),o},t.prototype.convert=function(t){var e=this.convertPoint(t),i=e.x,n=e.y,r=this.applyMatrix(i,n,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,i=this.center;return r.ext.leftTranslate(e,e,[-i.x,-i.y]),r.ext.leftRotate(e,e,t),r.ext.leftTranslate(e,e,[i.x,i.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 i=this.matrix,n=this.center;return r.ext.leftTranslate(i,i,[-n.x,-n.y]),r.ext.leftScale(i,i,[t,e]),r.ext.leftTranslate(i,i,[n.x,n.y]),this},t.prototype.translate=function(t,e){var i=this.matrix;return r.ext.leftTranslate(i,i,[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||n.__spreadArrays(this.originalMatrix)},t}();i.default=o},{"@antv/matrix-util":717,"@antv/util":803,tslib:894}],79:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=function(t){function e(e){var i=t.call(this,e)||this;return i.isRect=!0,i.type="cartesian",i.initial(),i}return n.__extends(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,i=this.end;this.x={start:e.x,end:i.x},this.y={start:e.y,end:i.y}},e.prototype.convertPoint=function(t){var e,i=t.x,n=t.y;return this.isTransposed&&(i=(e=[n,i])[0],n=e[1]),{x:this.convertDim(i,"x"),y:this.convertDim(n,"y")}},e.prototype.invertPoint=function(t){var e,i=this.invertDim(t.x,"x"),n=this.invertDim(t.y,"y");return this.isTransposed&&(i=(e=[n,i])[0],n=e[1]),{x:i,y:n}},e}(t("./base").default);i.default=r},{"./base":78,tslib:894}],80:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/matrix-util"),a=t("@antv/util"),o=function(t){function e(e){var i=t.call(this,e)||this;i.isHelix=!0,i.type="helix";var n=e.startAngle,r=void 0===n?1.25*Math.PI:n,a=e.endAngle,o=void 0===a?7.25*Math.PI:a,s=e.innerRadius,l=void 0===s?0:s,u=e.radius;return i.startAngle=r,i.endAngle=o,i.innerRadius=l,i.radius=u,i.initial(),i}return n.__extends(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=(this.endAngle-this.startAngle)/(2*Math.PI)+1,i=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(i*=this.radius),this.d=Math.floor(i*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*i,end:this.innerRadius*i+.99*this.d}},e.prototype.convertPoint=function(t){var e,i=t.x,n=t.y;this.isTransposed&&(i=(e=[n,i])[0],n=e[1]);var r=this.convertDim(i,"x"),a=this.a*r,o=this.convertDim(n,"y");return{x:this.center.x+Math.cos(r)*(a+o),y:this.center.y+Math.sin(r)*(a+o)}},e.prototype.invertPoint=function(t){var e,i=this.d+this.y.start,n=r.vec2.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),o=r.ext.angleTo(n,[1,0],!0),s=o*this.a;r.vec2.length(n)<s&&(s=r.vec2.length(n)),o=2*Math.floor((r.vec2.length(n)-s)/i)*Math.PI+o;var l=this.a*o,u=r.vec2.length(n)-l;u=a.isNumberEqual(u,0)?0:u;var c=this.invertDim(o,"x"),p=this.invertDim(u,"y");return c=a.isNumberEqual(c,0)?0:c,p=a.isNumberEqual(p,0)?0:p,this.isTransposed&&(c=(e=[p,c])[0],p=e[1]),{x:c,y:p}},e}(t("./base").default);i.default=o},{"./base":78,"@antv/matrix-util":717,"@antv/util":803,tslib:894}],81:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/matrix-util"),a=t("@antv/util"),o=function(t){function e(e){var i=t.call(this,e)||this;i.isPolar=!0,i.type="polar";var n=e.startAngle,r=void 0===n?-Math.PI/2:n,a=e.endAngle,o=void 0===a?3*Math.PI/2:a,s=e.innerRadius,l=void 0===s?0:s,u=e.radius;return i.startAngle=r,i.endAngle=o,i.innerRadius=l,i.radius=u,i.initial(),i}return n.__extends(e,t),e.prototype.initial=function(){for(t.prototype.initial.call(this);this.endAngle<this.startAngle;)this.endAngle+=2*Math.PI;var e,i=this.getOneBox(),n=i.maxX-i.minX,r=i.maxY-i.minY,a=Math.abs(i.minX)/n,o=Math.abs(i.minY)/r;this.height/r>this.width/n?(e=this.width/n,this.circleCenter={x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*e*r}):(e=this.height/r,this.circleCenter={x:this.center.x-(.5-a)*e*n,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,i=this.getCenter(),n=t.x,r=t.y;return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),n=this.convertDim(n,"x"),r=this.convertDim(r,"y"),{x:i.x+Math.cos(n)*r,y:i.y+Math.sin(n)*r}},e.prototype.invertPoint=function(t){var e=this.getCenter(),i=[t.x-e.x,t.y-e.y],n=[1,0,0,0,1,0,0,0,1];r.ext.leftRotate(n,n,this.startAngle);var o=[1,0,0];r.vec3.transformMat3(o,o,n);var s=[o[0],o[1]],l=r.ext.angleTo(s,i,this.endAngle<this.startAngle);a.isNumberEqual(l,2*Math.PI)&&(l=0);var u=r.vec2.length(i),c=l/(this.endAngle-this.startAngle);c=this.endAngle-this.startAngle>0?c:-c;var p=this.invertDim(u,"y"),h={x:0,y:0};return h.x=this.isTransposed?p:c,h.y=this.isTransposed?c:p,h},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 i=[0,Math.cos(t),Math.cos(e)],n=[0,Math.sin(t),Math.sin(e)],r=Math.min(t,e);r<Math.max(t,e);r+=Math.PI/18)i.push(Math.cos(r)),n.push(Math.sin(r));return{minX:Math.min.apply(Math,i),maxX:Math.max.apply(Math,i),minY:Math.min.apply(Math,n),maxY:Math.max.apply(Math,n)}},e}(t("./base").default);i.default=o},{"./base":78,"@antv/matrix-util":717,"@antv/util":803,tslib:894}],82:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={};i.getCoordinate=function(t){return n[t.toLowerCase()]},i.registerCoordinate=function(t,e){n[t.toLowerCase()]=e}},{}],83:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./coord/base");i.Coordinate=n.default;var r=t("./coord/cartesian"),a=t("./coord/helix"),o=t("./coord/polar"),s=t("./factory");i.getCoordinate=s.getCoordinate,i.registerCoordinate=s.registerCoordinate,s.registerCoordinate("rect",r.default),s.registerCoordinate("cartesian",r.default),s.registerCoordinate("polar",o.default),s.registerCoordinate("helix",a.default)},{"./coord/base":78,"./coord/cartesian":79,"./coord/helix":80,"./coord/polar":81,"./factory":82}],84:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e,i){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,i,!1),{remove:function(){t.removeEventListener(e,i,!1)}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,i),{remove:function(){t.detachEvent("on"+e,i)}}}}},{}],85:[function(t,e,i){"use strict";var n,r,a,o;Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t){n||(n=document.createElement("table"),r=document.createElement("tr"),a=/^\s*<(\w+|!)[^>]*>/,o={tr:document.createElement("tbody"),tbody:n,thead:n,tfoot:n,td:r,th:r,"*":document.createElement("div")});var e=a.test(t)&&RegExp.$1;e&&e in o||(e="*");var i=o[e];t=t.replace(/(^\s*)|(\s*$)/g,""),i.innerHTML=""+t;var s=i.childNodes[0];return i.removeChild(s),s}},{}],86:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./get-style");i.default=function(t,e){var i=n.default(t,"height",e);return"auto"===i&&(i=t.offsetHeight),parseFloat(i)}},{"./get-style":90}],87:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./get-style"),r=t("./get-height");i.default=function(t,e){var i=r.default(t,e),a=parseFloat(n.default(t,"borderTopWidth"))||0,o=parseFloat(n.default(t,"paddingTop"))||0,s=parseFloat(n.default(t,"paddingBottom"))||0;return i+a+(parseFloat(n.default(t,"borderBottomWidth"))||0)+o+s+(parseFloat(n.default(t,"marginTop"))||0)+(parseFloat(n.default(t,"marginBottom"))||0)}},{"./get-height":86,"./get-style":90}],88:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./get-style"),r=t("./get-width");i.default=function(t,e){var i=r.default(t,e),a=parseFloat(n.default(t,"borderLeftWidth"))||0,o=parseFloat(n.default(t,"paddingLeft"))||0,s=parseFloat(n.default(t,"paddingRight"))||0,l=parseFloat(n.default(t,"borderRightWidth"))||0,u=parseFloat(n.default(t,"marginRight"))||0;return i+a+l+o+s+(parseFloat(n.default(t,"marginLeft"))||0)+u}},{"./get-style":90,"./get-width":91}],89:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},{}],90:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e,i){var n;try{n=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(t){}finally{n=void 0===n?i:n}return n}},{}],91:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./get-style");i.default=function(t,e){var i=n.default(t,"width",e);return"auto"===i&&(i=t.offsetWidth),parseFloat(i)}},{"./get-style":90}],92:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./add-event-listener");i.addEventListener=n.default;var r=t("./create-dom");i.createDom=r.default;var a=t("./get-height");i.getHeight=a.default;var o=t("./get-outer-height");i.getOuterHeight=o.default;var s=t("./get-outer-width");i.getOuterWidth=s.default;var l=t("./get-ratio");i.getRatio=l.default;var u=t("./get-style");i.getStyle=u.default;var c=t("./get-width");i.getWidth=c.default;var p=t("./modify-css");i.modifyCSS=p.default},{"./add-event-listener":84,"./create-dom":85,"./get-height":86,"./get-outer-height":87,"./get-outer-width":88,"./get-ratio":89,"./get-style":90,"./get-width":91,"./modify-css":93}],93:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e){if(t)for(var i in e)e.hasOwnProperty(i)&&(t.style[i]=e[i]);return t}},{}],94:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){function t(){this._events={}}return t.prototype.on=function(t,e,i){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!i}),this},t.prototype.once=function(t,e){return this.on(t,e,!0),this},t.prototype.emit=function(t){for(var e=this,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];var r=this._events[t]||[],a=this._events["*"]||[],o=function(n){for(var r=n.length,a=0;a<r;a++)if(n[a]){var o=n[a],s=o.callback;o.once&&(n.splice(a,1),0===n.length&&delete e._events[t],r--,a--),s.apply(e,i)}};o(r),o(a)},t.prototype.off=function(t,e){if(t)if(e){for(var i=this._events[t]||[],n=i.length,r=0;r<n;r++)i[r].callback===e&&(i.splice(r,1),n--,r--);0===i.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();i.default=n},{}],95:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/event-emitter"),a=t("../util/util"),o=function(t){function e(e){var i=t.call(this)||this;i.destroyed=!1;var n=i.getDefaultCfg();return i.cfg=a.mix(n,e),i}return n.__extends(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.default);i.default=o},{"../util/util":123,"@antv/event-emitter":94,tslib:894}],96:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("detect-browser"),a=t("./container"),o=t("../util/util"),s=t("../animate/timeline"),l=t("../event/event-contoller"),u=r.detect(),c=u&&"firefox"===u.name,p=function(t){function e(e){var i=t.call(this,e)||this;return i.initContainer(),i.initDom(),i.initEvents(),i.initTimeline(),i}return n.__extends(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");o.isString(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new l.default({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new s.default(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var i=this.get("el");o.isBrowser&&(i.style.width=t+"px",i.style.height=e+"px")},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");o.isBrowser&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(c&&!o.isNil(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!o.isNil(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),i=e.x,n=e.y;return this.getPointByClient(i,n)},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 i=this.get("el").getBoundingClientRect();return{x:t-i.left,y:e-i.top}},e.prototype.getClientByPoint=function(t,e){var i=this.get("el").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(){this.get("eventController").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}(a.default);i.default=p},{"../animate/timeline":101,"../event/event-contoller":113,"../util/util":123,"./container":97,"detect-browser":880,tslib:894}],97:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("./element"),a=t("../util/util"),o={};var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,i=1/0,n=-1/0,r=[],o=[],s=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return s.length>0?(a.each(s,(function(t){var e=t.getBBox();r.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=Math.min.apply(null,r),e=Math.max.apply(null,r),i=Math.min.apply(null,o),n=Math.max.apply(null,o)):(t=0,e=0,i=0,n=0),{x:t,y:i,minX:t,minY:i,maxX:e,maxY:n,width:e-t,height:n-i}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,i=1/0,n=-1/0,r=[],o=[],s=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return s.length>0?(a.each(s,(function(t){var e=t.getCanvasBBox();r.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=Math.min.apply(null,r),e=Math.max.apply(null,r),i=Math.min.apply(null,o),n=Math.max.apply(null,o)):(t=0,e=0,i=0,n=0),{x:t,y:i,minX:t,minY:i,maxX:e,maxY:n,width:e-t,height:n-i}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,i,n){if(t.prototype.onAttrChange.call(this,e,i,n),"matrix"===e){var r=this.getTotalMatrix();this._applyChildrenMarix(r)}},e.prototype.applyMatrix=function(e){var i=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var n=this.getTotalMatrix();n!==i&&this._applyChildrenMarix(n)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();a.each(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=t[0],n=t[1];a.isObject(i)?n=i:n.type=i;var r=o[n.type];r||(r=a.upperFirst(n.type),o[n.type]=r);var s=this.getShapeBase(),l=new s[r](n);return this.add(l),l},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i,n=t[0],r=t[1];if(a.isFunction(n))i=new n(r||{parent:this});else{var o=n||{},s=this.getGroupBase();i=new s(o)}return this.add(i),i},e.prototype.getCanvas=function(){return this.isCanvas()?this:this.get("canvas")},e.prototype.getShape=function(t,e,i){if(!a.isAllowCapture(this))return null;var n,r=this.getChildren();if(this.isCanvas())n=this._findShape(r,t,e,i);else{var o=[t,e,1];o=this.invertFromMatrix(o),this.isClipped(o[0],o[1])||(n=this._findShape(r,o[0],o[1],i))}return n},e.prototype._findShape=function(t,e,i,n){for(var r=null,o=t.length-1;o>=0;o--){var s=t[o];if(a.isAllowCapture(s)&&(s.isGroup()?r=s.getShape(e,i,n):s.isHit(e,i)&&(r=s)),r)break}return r},e.prototype.add=function(t){var e=this.getCanvas(),i=this.getChildren(),n=this.get("timeline"),r=t.getParent();r&&function(t,e,i){void 0===i&&(i=!0),i?e.destroy():(e.set("parent",null),e.set("canvas",null)),a.removeFromArray(t.getChildren(),e)}(r,t,!1),t.set("parent",this),e&&function t(e,i){if(e.set("canvas",i),e.isGroup()){var n=e.get("children");n.length&&n.forEach((function(e){t(e,i)}))}}(t,e),n&&function t(e,i){if(e.set("timeline",i),e.isGroup()){var n=e.get("children");n.length&&n.forEach((function(e){t(e,i)}))}}(t,n),i.push(t),function(t){t.isGroup()?(t.isEntityGroup()||t.get("children").length)&&t.onCanvasChange("add"):t.onCanvasChange("add")}(t),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,e=this.getChildren();a.each(e,(function(t,e){return t._INDEX=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,i){var n=t(e,i);return 0===n?e._INDEX-i._INDEX:n})),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){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().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=[],i=this.getChildren();return a.each(i,(function(i){t(i)&&e.push(i),i.isGroup()&&(e=e.concat(i.findAll(t)))})),e},e.prototype.find=function(t){var e=null,i=this.getChildren();return a.each(i,(function(i){if(t(i)?e=i:i.isGroup()&&(e=i.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(r.default);i.default=s},{"../util/util":123,"./element":98,tslib:894}],98:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("@antv/matrix-util"),o=t("../util/util"),s=t("../util/matrix"),l=t("./base"),u=["zIndex","capture","visible","type"],c=["repeat"];function p(t,e){var i={},n=e.attrs;for(var r in t)i[r]=n[r];return i}function h(t,e){var i={},n=e.attr();return r.each(t,(function(t,e){-1!==c.indexOf(e)||r.isEqual(n[e],t)||(i[e]=t)})),i}function f(t,e){if(e.onFrame)return t;var i=e.startTime,n=e.delay,a=e.duration,o=Object.prototype.hasOwnProperty;return r.each(t,(function(t){i+n<t.startTime+t.delay+t.duration&&a>t.delay&&r.each(e.toAttrs,(function(e,i){o.call(t.toAttrs,i)&&(delete t.toAttrs[i],delete t.fromAttrs[i])}))})),t}var d=function(t){function e(e){var i=t.call(this,e)||this;i.attrs={};var n=i.getDefaultAttrs();return r.mix(n,e.attrs),i.attrs=n,i.initAttrs(n),i.initAnimate(),i}return n.__extends(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=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=e[0],a=e[1];if(!n)return this.attrs;if(r.isObject(n)){for(var o in n)this.setAttr(o,n[o]);return this.afterAttrsChange(n),this}return 2===e.length?(this.setAttr(n,a),this.afterAttrsChange(((t={})[n]=a,t)),this):this.attrs[n]},e.prototype.isClipped=function(t,e){var i=this.getClip();return i&&!i.isHit(t,e)},e.prototype.setAttr=function(t,e){var i=this.attrs[t];i!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,i))},e.prototype.onAttrChange=function(t,e,i){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){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(),i=(this.get("el"),e.indexOf(this));e.splice(i,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),i=(this.get("el"),e.indexOf(this));e.splice(i,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(o.removeFromArray(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr("matrix",this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr("matrix")},e.prototype.setMatrix=function(t){this.attr("matrix",t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.get("totalMatrix");if(!t){var e=this.attr("matrix"),i=this.get("parentMatrix");t=i&&e?s.multiplyMatrix(i,e):e||i,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),i=null;i=t&&e?s.multiplyMatrix(t,e):e||t,this.set("totalMatrix",i),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?s.multiplyVec2(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var i=s.invert(e);if(i)return s.multiplyVec2(i,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),i=null;if(t){var n=this.getShapeBase()[r.upperFirst(t.type)];n&&(i=new n({type:t.type,isClipShape:!0,attrs:t.attrs,canvas:e}))}return this.set("clipShape",i),this.onCanvasChange("clip"),i},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,i={};r.each(e,(function(t,n){r.isArray(e[n])?i[n]=function(t){for(var e=[],i=0;i<t.length;i++)r.isArray(t[i])?e.push([].concat(t[i])):e.push(t[i]);return e}(e[n]):i[n]=e[n]}));var n=new(0,this.constructor)({attrs:i});return r.each(u,(function(e){n.set(e,t.get(e))})),n},e.prototype.destroy=function(){this.destroyed||(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];this.set("animating",!0);var i=this.get("timeline");i||(i=this.get("canvas").get("timeline"),this.set("timeline",i));var n=this.get("animations")||[];i.timer||i.initTimer();var a,o,s,l,u,c=t[0],d=t[1],g=t[2],v=void 0===g?"easeLinear":g,y=t[3],m=void 0===y?r.noop:y,b=t[4],x=void 0===b?0:b;r.isFunction(c)?(a=c,c={}):r.isObject(c)&&c.onFrame&&(a=c.onFrame,o=c.repeat),r.isObject(d)?(d=(u=d).duration,v=u.easing||"easeLinear",x=u.delay||0,o=u.repeat||o||!1,m=u.callback||r.noop,s=u.pauseCallback||r.noop,l=u.resumeCallback||r.noop):(r.isNumber(m)&&(x=m,m=null),r.isFunction(v)?(m=v,v="easeLinear"):v=v||"easeLinear");var _=h(c,this),M={fromAttrs:p(_,this),toAttrs:_,duration:d,easing:v,repeat:o,callback:m,pauseCallback:s,resumeCallback:l,delay:x,startTime:i.getTime(),id:r.uniqueId(),onFrame:a,pathFormatted:!1};n.length>0?n=f(n,M):i.addAnimator(this),n.push(M),this.set("animations",n),this.set("_pause",{isPaused:!1})},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var i=this.get("animations");r.each(i,(function(i){t&&(i.onFrame?e.attr(i.onFrame(1)):e.attr(i.toAttrs)),i.callback&&i.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),i=t.getTime();return r.each(e,(function(t){t._paused=!0,t._pauseTime=i,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:i}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),i=this.get("_pause").pauseTime;return r.each(e,(function(e){e.startTime=e.startTime+(t-i),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var i,n=this,a=e.propagationPath;this.getEvents();"mouseenter"===t?i=e.fromShape:"mouseleave"===t&&(i=e.toShape);for(var s=function(t){var s=a[t],u=s.get("name");if(u){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&i&&o.isParent(s,i))return"break";r.isArray(u)?r.each(u,(function(t){n.emitDelegateEvent(s,t,e)})):l.emitDelegateEvent(s,u,e)}},l=this,u=0;u<a.length;u++){if("break"===s(u))break}},e.prototype.emitDelegateEvent=function(t,e,i){var n=this.getEvents(),r=e+":"+i.type;(n[r]||n["*"])&&(i.name=r,i.currentTarget=t,i.delegateTarget=this,i.delegateObject=t.get("delegateObject"),this.emit(r,i))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var i=this.getMatrix(),n=a.ext.transform(i,[["t",t,e]]);return this.setMatrix(n),this},e.prototype.move=function(t,e){var i=this.attr("x")||0,n=this.attr("y")||0;return this.translate(t-i,e-n),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var i=this.getMatrix(),n=a.ext.transform(i,[["s",t,e||t]]);return this.setMatrix(n),this},e.prototype.rotate=function(t){var e=this.getMatrix(),i=a.ext.transform(e,[["r",t]]);return this.setMatrix(i),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),i=e.x,n=e.y,r=this.getMatrix(),o=a.ext.transform(r,[["t",-i,-n],["r",t],["t",i,n]]);return this.setMatrix(o),this},e.prototype.rotateAtPoint=function(t,e,i){var n=this.getMatrix(),r=a.ext.transform(n,[["t",-t,-e],["r",i],["t",t,e]]);return this.setMatrix(r),this},e}(l.default);i.default=d},{"../util/matrix":119,"../util/util":123,"./base":95,"@antv/matrix-util":717,"@antv/util":803,tslib:894}],99:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(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),i=this.getChildren(),n=0;n<i.length;n++){var r=i[n];e.add(r.clone())}return e},e}(t("./container").default);i.default=r},{"./container":97,tslib:894}],100:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("./element"),a=t("../util/matrix"),o=function(t){function e(e){return t.call(this,e)||this}return n.__extends(e,t),e.prototype._isInBBox=function(t,e){var i=this.getBBox();return i.minX<=t&&i.maxX>=t&&i.minY<=e&&i.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.get("bbox");return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.get("canvasBox");return t||(t=this.calculateCanvasBBox(),this.set("canvasBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),i=t.minX,n=t.minY,r=t.maxX,o=t.maxY;if(e){var s=a.multiplyVec2(e,[t.minX,t.minY]),l=a.multiplyVec2(e,[t.maxX,t.minY]),u=a.multiplyVec2(e,[t.minX,t.maxY]),c=a.multiplyVec2(e,[t.maxX,t.maxY]);i=Math.min(s[0],l[0],u[0],c[0]),r=Math.max(s[0],l[0],u[0],c[0]),n=Math.min(s[1],l[1],u[1],c[1]),o=Math.max(s[1],l[1],u[1],c[1])}var p=this.attrs;if(p.shadowColor){var h=p.shadowBlur,f=void 0===h?0:h,d=p.shadowOffsetX,g=void 0===d?0:d,v=p.shadowOffsetY,y=void 0===v?0:v,m=i-f+g,b=r+f+g,x=n-f+y,_=o+f+y;i=Math.min(i,m),r=Math.max(r,b),n=Math.min(n,x),o=Math.max(o,_)}return{x:i,y:n,minX:i,minY:n,maxX:r,maxY:o,width:r-i,height:o-n}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBox",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 i=this.get("startArrowShape"),n=this.get("endArrowShape"),r=[t,e,1],a=(r=this.invertFromMatrix(r))[0],o=r[1],s=this._isInBBox(a,o);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(a,o)){if(this.isInShape(a,o))return!0;if(i&&i.isHit(a,o))return!0;if(n&&n.isHit(a,o))return!0}return!1},e}(r.default);i.default=o},{"../util/matrix":119,"./element":98,tslib:894}],101:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("d3-timer"),a=t("d3-ease"),o=t("d3-interpolate"),s=t("../util/path"),l=t("../util/color"),u=[1,0,0,0,1,0,0,0,1];function c(t,e,i){var r,c=e.startTime;if(i<c+e.delay||e._paused)return!1;var p=e.duration,h=e.easing;if(i=i-c-e.delay,e.repeat)r=i%p/p,r=a[h](r);else{if(!((r=i/p)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;r=a[h](r)}if(e.onFrame){var f=e.onFrame(r);t.attr(f)}else!function(t,e,i){var r={},a=e.fromAttrs,c=e.toAttrs;if(!t.destroyed){var p;for(var h in c)if(!n.isEqual(a[h],c[h]))if("path"===h){var f=c[h],d=a[h];f.length>d.length?(f=s.parsePathString(c[h]),d=s.parsePathString(a[h]),d=s.fillPathByDiff(d,f),d=s.formatPath(d,f),e.fromAttrs.path=d,e.toAttrs.path=f):e.pathFormatted||(f=s.parsePathString(c[h]),d=s.parsePathString(a[h]),d=s.formatPath(d,f),e.fromAttrs.path=d,e.toAttrs.path=f,e.pathFormatted=!0),r[h]=[];for(var g=0;g<f.length;g++){for(var v=f[g],y=d[g],m=[],b=0;b<v.length;b++)n.isNumber(v[b])&&y&&n.isNumber(y[b])?(p=o.interpolate(y[b],v[b]),m.push(p(i))):m.push(v[b]);r[h].push(m)}}else if("matrix"===h){var x=o.interpolateArray(a[h]||u,c[h]||u)(i);r[h]=x}else l.isColorProp(h)&&l.isGradientColor(c[h])?r[h]=c[h]:n.isFunction(c[h])||(p=o.interpolate(a[h],c[h]),r[h]=p(i));t.attr(r)}}(t,e,r);return!1}var p=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,i,n=this;this.timer=r.timer((function(r){if(n.current=r,n.animators.length>0){for(var a=n.animators.length-1;a>=0;a--)if((t=n.animators[a]).destroyed)n.removeAnimator(a);else{if(!t.isAnimatePaused())for(var o=(e=t.get("animations")).length-1;o>=0;o--)i=e[o],c(t,i,r)&&(e.splice(o,1),!1,i.callback&&i.callback());0===e.length&&n.removeAnimator(a)}n.canvas.get("autoDraw")||n.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}();i.default=p},{"../util/color":118,"../util/path":121,"@antv/util":803,"d3-ease":876,"d3-interpolate":877,"d3-timer":879}],102:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t){var e=t.attr(),i=e.x,n=e.y,r=e.r;return{x:i-r,y:n-r,width:2*r,height:2*r}}},{}],103:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t){var e=t.attr(),i=e.x,n=e.y,r=e.rx,a=e.ry;return{x:i-r,y:n-a,width:2*r,height:2*a}}},{}],104:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./register");i.getBBoxMethod=n.getMethod;var r=t("./rect"),a=t("./circle"),o=t("./polyline"),s=t("./polygon"),l=t("./text"),u=t("./path"),c=t("./line"),p=t("./ellipse");n.register("rect",r.default),n.register("image",r.default),n.register("circle",a.default),n.register("marker",a.default),n.register("polyline",o.default),n.register("polygon",s.default),n.register("text",l.default),n.register("path",u.default),n.register("line",c.default),n.register("ellipse",p.default)},{"./circle":102,"./ellipse":103,"./line":105,"./path":106,"./polygon":107,"./polyline":108,"./rect":109,"./register":110,"./text":111}],105:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./util");i.default=function(t){var e=t.attr(),i=e.x1,r=e.y1,a=e.x2,o=e.y2,s={minX:Math.min(i,a),maxX:Math.max(i,a),minY:Math.min(r,o),maxY:Math.max(r,o)};return{x:(s=n.mergeArrowBBox(t,s)).minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY}}},{"./util":112}],106:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/g-math/lib/quadratic"),r=t("@antv/g-math/lib/cubic"),a=t("@antv/g-math/lib/arc"),o=t("@antv/path-util/lib/path-2-segments"),s=t("@antv/util/lib/is-number-equal"),l=t("./util");function u(t,e){var i=t.prePoint,n=t.currentPoint,r=t.nextPoint,a=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),o=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2),l=Math.pow(i[0]-r[0],2)+Math.pow(i[1]-r[1],2),u=Math.acos((a+o-l)/(2*Math.sqrt(a)*Math.sqrt(o)));if(!u||0===Math.sin(u)||s.default(u,0))return{xExtra:0,yExtra:0};var c=Math.abs(Math.atan2(r[1]-n[1],r[0]-n[0])),p=Math.abs(Math.atan2(r[0]-n[0],r[1]-n[1]));return c=c>Math.PI/2?Math.PI-c:c,p=p>Math.PI/2?Math.PI-p:p,{xExtra:Math.cos(u/2-c)*(e/2*(1/Math.sin(u/2)))-e/2||0,yExtra:Math.cos(p-u/2)*(e/2*(1/Math.sin(u/2)))-e/2||0}}i.default=function(t){var e=t.attr(),i=e.path,s=e.stroke?e.lineWidth:0,c=function(t,e){for(var i=[],o=[],s=[],l=0;l<t.length;l++){var c=(b=t[l]).currentPoint,p=b.params,h=b.prePoint,f=void 0;switch(b.command){case"Q":f=n.default.box(h[0],h[1],p[1],p[2],p[3],p[4]);break;case"C":f=r.default.box(h[0],h[1],p[1],p[2],p[3],p[4],p[5],p[6]);break;case"A":var d=b.arcParams;f=a.default.box(d.cx,d.cy,d.rx,d.ry,d.xRotation,d.startAngle,d.endAngle);break;default:i.push(c[0]),o.push(c[1])}f&&(b.box=f,i.push(f.x,f.x+f.width),o.push(f.y,f.y+f.height)),e&&("L"===b.command||"M"===b.command)&&b.prePoint&&b.nextPoint&&s.push(b)}i=i.filter((function(t){return!Number.isNaN(t)})),o=o.filter((function(t){return!Number.isNaN(t)}));var g=Math.min.apply(null,i),v=Math.min.apply(null,o),y=Math.max.apply(null,i),m=Math.max.apply(null,o);if(0===s.length)return{x:g,y:v,width:y-g,height:m-v};for(l=0;l<s.length;l++){var b;(c=(b=s[l]).currentPoint)[0]===g?g-=u(b,e).xExtra:c[0]===y&&(y+=u(b,e).xExtra),c[1]===v?v-=u(b,e).yExtra:c[1]===m&&(m+=u(b,e).yExtra)}return{x:g,y:v,width:y-g,height:m-v}}(t.get("segments")||o.default(i),s),p=c.x,h=c.y,f={minX:p,minY:h,maxX:p+c.width,maxY:h+c.height};return{x:(f=l.mergeArrowBBox(t,f)).minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}}},{"./util":112,"@antv/g-math/lib/arc":168,"@antv/g-math/lib/cubic":170,"@antv/g-math/lib/quadratic":174,"@antv/path-util/lib/path-2-segments":731,"@antv/util/lib/is-number-equal":823}],107:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/g-math/lib/util");i.default=function(t){for(var e=t.attr().points,i=[],r=[],a=0;a<e.length;a++){var o=e[a];i.push(o[0]),r.push(o[1])}return n.getBBoxByArray(i,r)}},{"@antv/g-math/lib/util":176}],108:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/g-math/lib/util"),r=t("./util");i.default=function(t){for(var e=t.attr().points,i=[],a=[],o=0;o<e.length;o++){var s=e[o];i.push(s[0]),a.push(s[1])}var l=n.getBBoxByArray(i,a),u=l.x,c=l.y,p={minX:u,minY:c,maxX:u+l.width,maxY:c+l.height};return{x:(p=r.mergeArrowBBox(t,p)).minX,y:p.minY,width:p.maxX-p.minX,height:p.maxY-p.minY}}},{"./util":112,"@antv/g-math/lib/util":176}],109:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}}},{}],110:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=new Map;i.register=function(t,e){n.set(t,e)},i.getMethod=function(t){return n.get(t)}},{}],111:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../util/text");i.default=function(t){var e=t.attr(),i=e.x,r=e.y,a=e.text,o=e.fontSize,s=e.lineHeight,l=e.font;l||(l=n.assembleFont(e));var u,c=n.getTextWidth(a,l);if(c){var p=e.textAlign,h=e.textBaseline,f=n.getTextHeight(a,o,s),d={x:i,y:r-f};p&&("end"===p||"right"===p?d.x-=c:"center"===p&&(d.x-=c/2)),h&&("top"===h?d.y+=f:"middle"===h&&(d.y+=f/2)),u={x:d.x,y:d.y,width:c,height:f}}else u={x:i,y:r,width:0,height:0};return u}},{"../util/text":122}],112:[function(t,e,i){"use strict";function n(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}Object.defineProperty(i,"__esModule",{value:!0}),i.mergeBBox=n,i.mergeArrowBBox=function(t,e){var i=t.get("startArrowShape"),r=t.get("endArrowShape");return i&&(e=n(e,i.getCanvasBBox())),r&&(e=n(e,r.getCanvasBBox())),e}},{}],113:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./graph-event"),r=t("../util/util"),a=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function o(t,e,i){i.name=e,i.target=t,i.currentTarget=t,i.delegateTarget=t,t.emit(e,i)}function s(t,e,i){if(i.bubbles){var n=void 0,a=!1;if("mouseenter"===e?(n=i.fromShape,a=!0):"mouseleave"===e&&(a=!0,n=i.toShape),t.isCanvas()&&a)return;if(n&&r.isParent(t,n))return void(i.bubbles=!1);i.name=e,i.currentTarget=t,i.delegateTarget=t,t.emit(e,i)}}var l=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 i=t.type;e._triggerEvent(i,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var i=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,i,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var i=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,i,null),e._emitEvent("dragend",t,i,e.draggingShape),e._afterDrag(e.draggingShape,i,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");r.each(a,(function(i){e.addEventListener(i,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");r.each(a,(function(i){e.removeEventListener(i,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,i,r,a,o){var s=new n.default(t,e);return s.fromShape=a,s.toShape=o,s.x=i.x,s.y=i.y,s.clientX=i.clientX,s.clientY=i.clientY,s.propagationPath.push(r),s},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,i=e.getClientByEvent(t),n=e.getPointByEvent(t);return{x:n.x,y:n.y,clientX:i.x,clientY:i.y}},t.prototype._triggerEvent=function(t,e){var i=this._getPointInfo(e),n=this._getShape(i,e),r=this["_on"+t],a=!1;if(r)r.call(this,i,n,e);else{var o=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,i,null,null,n),n&&this._emitEvent(t,e,i,n,null,n),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,i,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(a=!0,o&&this._emitEvent(t,e,i,o,o,null),this._emitEvent(t,e,i,null,o,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,i,null)):this._emitEvent(t,e,i,n,null,null)}if(a||(this.currentShape=n),n&&!n.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=n.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,i){0===i.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=i.timeStamp),this._emitEvent("mousedown",i,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,i,n){var r=this.canvas.get("el");i!==n&&(i&&(this._emitEvent("mouseout",t,e,i,i,n),this._emitEvent("mouseleave",t,e,i,i,n),n&&!n.get("destroyed")||(r.style.cursor=this.canvas.get("cursor"))),n&&(this._emitEvent("mouseover",t,e,n,i,n),this._emitEvent("mouseenter",t,e,n,i,n)))},t.prototype._emitDragoverEvents=function(t,e,i,n,r){n?(n!==i&&(i&&this._emitEvent("dragleave",t,e,i,i,n),this._emitEvent("dragenter",t,e,n,i,n)),r||this._emitEvent("dragover",t,e,n)):i&&this._emitEvent("dragleave",t,e,i,i,n),r&&this._emitEvent("dragover",t,e,n)},t.prototype._afterDrag=function(t,e,i){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var n=this._getShape(e,i);n!==t&&this._emitMouseoverEvents(i,e,t,n),this.currentShape=n},t.prototype._onmouseup=function(t,e,i){if(0===i.button){var n=this.draggingShape;this.dragging?(n&&this._emitEvent("drop",i,t,e),this._emitEvent("dragend",i,t,n),this._afterDrag(n,t,i)):(this._emitEvent("mouseup",i,t,e),e===this.mousedownShape&&this._emitEvent("click",i,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,i){i.preventDefault();var n=this.currentShape;this._emitDragoverEvents(i,t,n,e,!0)},t.prototype._onmousemove=function(t,e,i){var n=this.canvas,r=this.currentShape,a=this.draggingShape;if(this.dragging)a&&this._emitDragoverEvents(i,t,r,e,!1),this._emitEvent("drag",i,t,a);else{var o=this.mousedownPoint;if(o){var s=this.mousedownShape,l=i.timeStamp-this.mousedownTimeStamp,u=o.clientX-t.clientX,c=o.clientY-t.clientY;l>120||u*u+c*c>40?s&&s.get("draggable")?((a=this.mousedownShape).set("capture",!1),this.draggingShape=a,this.dragging=!0,this._emitEvent("dragstart",i,t,a),this.mousedownShape=null,this.mousedownPoint=null):!s&&n.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",i,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(i,t,r,e),this._emitEvent("mousemove",i,t,e)):(this._emitMouseoverEvents(i,t,r,e),this._emitEvent("mousemove",i,t,e))}else this._emitMouseoverEvents(i,t,r,e),this._emitEvent("mousemove",i,t,e)}},t.prototype._emitEvent=function(t,e,i,n,r,a){var l=this._getEventObj(t,e,i,n,r,a);if(n){l.shape=n,o(n,t,l);for(var u=n.getParent();u;)u.emitDelegation(t,l),l.propagationStopped||s(u,t,l),l.propagationPath.push(u),u=u.getParent()}else{o(this.canvas,t,l)}},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}();i.default=l},{"../util/util":123,"./graph-event":114}],114:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=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(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();i.default=n},{}],115:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./util/path");i.PathUtil=n;var r=t("../package.json");i.version=r.version;var a=t("./event/graph-event");i.Event=a.default;var o=t("./abstract/base");i.Base=o.default;var s=t("./abstract/canvas");i.AbstractCanvas=s.default;var l=t("./abstract/group");i.AbstractGroup=l.default;var u=t("./abstract/shape");i.AbstractShape=u.default},{"../package.json":124,"./abstract/base":95,"./abstract/canvas":96,"./abstract/group":99,"./abstract/shape":100,"./event/graph-event":114,"./util/path":121}],116:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0})},{}],117:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0})},{}],118:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isColorProp=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},i.isGradientColor=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)}},{}],119:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.multiplyMatrix=function(t,e){var i=[],n=t[0],r=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],p=t[8],h=e[0],f=e[1],d=e[2],g=e[3],v=e[4],y=e[5],m=e[6],b=e[7],x=e[8];return i[0]=h*n+f*o+d*u,i[1]=h*r+f*s+d*c,i[2]=h*a+f*l+d*p,i[3]=g*n+v*o+y*u,i[4]=g*r+v*s+y*c,i[5]=g*a+v*l+y*p,i[6]=m*n+b*o+x*u,i[7]=m*r+b*s+x*c,i[8]=m*a+b*l+x*p,i},i.multiplyVec2=function(t,e){var i=[],n=e[0],r=e[1];return i[0]=t[0]*n+t[3]*r+t[6],i[1]=t[1]*n+t[4]*r+t[7],i},i.invert=function(t){var e=[],i=t[0],n=t[1],r=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],p=c*o-s*u,h=-c*a+s*l,f=u*a-o*l,d=i*p+n*h+r*f;return d?(d=1/d,e[0]=p*d,e[1]=(-c*n+r*u)*d,e[2]=(s*n-r*o)*d,e[3]=h*d,e[4]=(c*i-r*l)*d,e[5]=(-s*i+r*a)*d,e[6]=f*d,e[7]=(-u*i+n*l)*d,e[8]=(o*i-n*a)*d,e):null}},{}],120:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=null;i.getOffScreenContext=function(){if(!n){var t=document.createElement("canvas");t.width=1,t.height=1,n=t.getContext("2d")}return n}},{}],121:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r="\t\n\v\f\r    \u2028\u2029",a=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig"),s=function(t){if(!t)return null;if(n.isArray(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},i=[];return String(t).replace(a,(function(n,r,a){var s=[],l=r.toLowerCase();if(a.replace(o,(function(t,e){e&&s.push(+e)})),"m"===l&&s.length>2&&(i.push([r].concat(s.splice(0,2))),l="l",r="m"===r?"l":"L"),"o"===l&&1===s.length&&i.push([r,s[0]]),"r"===l)i.push([r].concat(s));else for(;s.length>=e[l]&&(i.push([r].concat(s.splice(0,e[l]))),e[l]););return t})),i};i.parsePathString=s;var l=function(t,e){for(var i=[],n=0,r=t.length;r-2*!e>n;n+=2){var a=[{x:+t[n-2],y:+t[n-1]},{x:+t[n],y:+t[n+1]},{x:+t[n+2],y:+t[n+3]},{x:+t[n+4],y:+t[n+5]}];e?n?r-4===n?a[3]={x:+t[0],y:+t[1]}:r-2===n&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[r-2],y:+t[r-1]}:r-4===n?a[3]=a[2]:n||(a[0]={x:+t[n],y:+t[n+1]}),i.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return i};i.catmullRomToBezier=l;var u=function(t,e,i,n,r){var a=[];if(null===r&&null===n&&(n=i),t=+t,e=+e,i=+i,n=+n,null!==r){var o=Math.PI/180,s=t+i*Math.cos(-n*o),l=t+i*Math.cos(-r*o);a=[["M",s,e+i*Math.sin(-n*o)],["A",i,i,0,+(r-n>180),0,l,e+i*Math.sin(-r*o)]]}else a=[["M",t,e],["m",0,-n],["a",i,n,0,1,1,0,2*n],["a",i,n,0,1,1,0,-2*n],["z"]];return a},c=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,i,n=[],r=0,a=0,o=0,c=0,p=0;"M"===t[0][0]&&(o=r=+t[0][1],c=a=+t[0][2],p++,n[0]=["M",r,a]);for(var h=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),f=void 0,d=void 0,g=p,v=t.length;g<v;g++){if(n.push(f=[]),(e=(d=t[g])[0])!==e.toUpperCase())switch(f[0]=e.toUpperCase(),f[0]){case"A":f[1]=d[1],f[2]=d[2],f[3]=d[3],f[4]=d[4],f[5]=d[5],f[6]=+d[6]+r,f[7]=+d[7]+a;break;case"V":f[1]=+d[1]+a;break;case"H":f[1]=+d[1]+r;break;case"R":for(var y=2,m=(i=[r,a].concat(d.slice(1))).length;y<m;y++)i[y]=+i[y]+r,i[++y]=+i[y]+a;n.pop(),n=n.concat(l(i,h));break;case"O":n.pop(),(i=u(r,a,d[1],d[2])).push(i[0]),n=n.concat(i);break;case"U":n.pop(),n=n.concat(u(r,a,d[1],d[2],d[3])),f=["U"].concat(n[n.length-1].slice(-2));break;case"M":o=+d[1]+r,c=+d[2]+a;break;default:for(y=1,m=d.length;y<m;y++)f[y]=+d[y]+(y%2?r:a)}else if("R"===e)i=[r,a].concat(d.slice(1)),n.pop(),n=n.concat(l(i,h)),f=["R"].concat(d.slice(-2));else if("O"===e)n.pop(),(i=u(r,a,d[1],d[2])).push(i[0]),n=n.concat(i);else if("U"===e)n.pop(),n=n.concat(u(r,a,d[1],d[2],d[3])),f=["U"].concat(n[n.length-1].slice(-2));else for(var b=0,x=d.length;b<x;b++)f[b]=d[b];if("O"!==(e=e.toUpperCase()))switch(f[0]){case"Z":r=+o,a=+c;break;case"H":r=f[1];break;case"V":a=f[1];break;case"M":o=f[f.length-2],c=f[f.length-1];break;default:r=f[f.length-2],a=f[f.length-1]}}return n};i.pathToAbsolute=c;var p=function(t,e,i,n){return[t,e,i,n,i,n]},h=function(t,e,i,n,r,a){return[1/3*t+2/3*i,1/3*e+2/3*n,1/3*r+2/3*i,1/3*a+2/3*n,r,a]},f=function(t,e,i,n,r,a,o,s,l,u){i===n&&(i+=1);var c,p,h,d,g,v=120*Math.PI/180,y=Math.PI/180*(+r||0),m=[],b=function(t,e,i){return{x:t*Math.cos(i)-e*Math.sin(i),y:t*Math.sin(i)+e*Math.cos(i)}};if(u)p=u[0],h=u[1],d=u[2],g=u[3];else{t=(c=b(t,e,-y)).x,e=c.y,s=(c=b(s,l,-y)).x,l=c.y,t===s&&e===l&&(s+=1,l+=1);var x=(t-s)/2,_=(e-l)/2,M=x*x/(i*i)+_*_/(n*n);M>1&&(i*=M=Math.sqrt(M),n*=M);var w=i*i,S=n*n,C=(a===o?-1:1)*Math.sqrt(Math.abs((w*S-w*_*_-S*x*x)/(w*_*_+S*x*x)));d=C*i*_/n+(t+s)/2,g=C*-n*x/i+(e+l)/2,p=Math.asin(((e-g)/n).toFixed(9)),h=Math.asin(((l-g)/n).toFixed(9)),p=t<d?Math.PI-p:p,h=s<d?Math.PI-h:h,p<0&&(p=2*Math.PI+p),h<0&&(h=2*Math.PI+h),o&&p>h&&(p-=2*Math.PI),!o&&h>p&&(h-=2*Math.PI)}var P=h-p;if(Math.abs(P)>v){var O=h,T=s,A=l;h=p+v*(o&&h>p?1:-1),s=d+i*Math.cos(h),l=g+n*Math.sin(h),m=f(s,l,i,n,r,0,o,T,A,[h,O,d,g])}P=h-p;var E=Math.cos(p),L=Math.sin(p),I=Math.cos(h),D=Math.sin(h),k=Math.tan(P/4),B=4/3*i*k,F=4/3*n*k,j=[t,e],R=[t+B*L,e-F*E],N=[s+B*D,l-F*I],Y=[s,l];if(R[0]=2*j[0]-R[0],R[1]=2*j[1]-R[1],u)return[R,N,Y].concat(m);for(var G=[],V=0,X=(m=[R,N,Y].concat(m).join().split(",")).length;V<X;V++)G[V]=V%2?b(m[V-1],m[V],y).y:b(m[V],m[V+1],y).x;return G},d=function(t,e){var i,n=c(t),r=e&&c(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],l=[],u="",d="",g=function(t,e,i){var n,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(f.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===i||"S"===i?(n=2*e.x-e.bx,r=2*e.y-e.by):(n=e.x,r=e.y),t=["C",n,r].concat(t.slice(1));break;case"T":"Q"===i||"T"===i?(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(h(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(h(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(p(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(p(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(p(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(p(e.x,e.y,e.X,e.Y))}return t},v=function(t,e){if(t[e].length>7){t[e].shift();for(var a=t[e];a.length;)s[e]="A",r&&(l[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),i=Math.max(n.length,r&&r.length||0)}},y=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],i=Math.max(n.length,r&&r.length||0))};i=Math.max(n.length,r&&r.length||0);for(var m=0;m<i;m++){n[m]&&(u=n[m][0]),"C"!==u&&(s[m]=u,m&&(d=s[m-1])),n[m]=g(n[m],a,d),"A"!==s[m]&&"C"===u&&(s[m]="C"),v(n,m),r&&(r[m]&&(u=r[m][0]),"C"!==u&&(l[m]=u,m&&(d=l[m-1])),r[m]=g(r[m],o,d),"A"!==l[m]&&"C"===u&&(l[m]="C"),v(r,m)),y(n,r,a,o,m),y(r,n,o,a,m);var b=n[m],x=r&&r[m],_=b.length,M=r&&x.length;a.x=b[_-2],a.y=b[_-1],a.bx=parseFloat(b[_-4])||a.x,a.by=parseFloat(b[_-3])||a.y,o.bx=r&&(parseFloat(x[M-4])||o.x),o.by=r&&(parseFloat(x[M-3])||o.y),o.x=r&&x[M-2],o.y=r&&x[M-1]}return r?[n,r]:n};i.pathToCurve=d;var g=/,?([a-z]),?/gi,v=function(t){return t.join(",").replace(g,"$1")};i.parsePathArray=v;var y=function(t,e,i,n,r){return t*(t*(-3*e+9*i-9*n+3*r)+6*e-12*i+6*n)-3*e+3*i},m=function(t,e,i,n,r,a,o,s,l){null===l&&(l=1);for(var u=(l=l>1?1:l<0?0:l)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,f=0;f<12;f++){var d=u*c[f]+u,g=y(d,t,i,r,o),v=y(d,e,n,a,s),m=g*g+v*v;h+=p[f]*Math.sqrt(m)}return u*h},b=function(t,e,i,n,r,a,o,s){for(var l,u,c,p,h=[],f=[[],[]],d=0;d<2;++d)if(0===d?(u=6*t-12*i+6*r,l=-3*t+9*i-9*r+3*o,c=3*i-3*t):(u=6*e-12*n+6*a,l=-3*e+9*n-9*a+3*s,c=3*n-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;(p=-c/u)>0&&p<1&&h.push(p)}else{var g=u*u-4*c*l,v=Math.sqrt(g);if(!(g<0)){var y=(-u+v)/(2*l);y>0&&y<1&&h.push(y);var m=(-u-v)/(2*l);m>0&&m<1&&h.push(m)}}for(var b,x=h.length,_=x;x--;)b=1-(p=h[x]),f[0][x]=b*b*b*t+3*b*b*p*i+3*b*p*p*r+p*p*p*o,f[1][x]=b*b*b*e+3*b*b*p*n+3*b*p*p*a+p*p*p*s;return f[0][_]=t,f[1][_]=e,f[0][_+1]=o,f[1][_+1]=s,f[0].length=f[1].length=_+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}},x=function(t,e,i,n,r,a,o,s){if(!(Math.max(t,i)<Math.min(r,o)||Math.min(t,i)>Math.max(r,o)||Math.max(e,n)<Math.min(a,s)||Math.min(e,n)>Math.max(a,s))){var l=(t-i)*(a-s)-(e-n)*(r-o);if(l){var u=((t*n-e*i)*(r-o)-(t-i)*(r*s-a*o))/l,c=((t*n-e*i)*(a-s)-(e-n)*(r*s-a*o))/l,p=+u.toFixed(2),h=+c.toFixed(2);if(!(p<+Math.min(t,i).toFixed(2)||p>+Math.max(t,i).toFixed(2)||p<+Math.min(r,o).toFixed(2)||p>+Math.max(r,o).toFixed(2)||h<+Math.min(e,n).toFixed(2)||h>+Math.max(e,n).toFixed(2)||h<+Math.min(a,s).toFixed(2)||h>+Math.max(a,s).toFixed(2)))return{x:u,y:c}}}},_=function(t,e,i){return e>=t.x&&e<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},M=function(t,e,i,n,r){if(r)return[["M",+t+ +r,e],["l",i-2*r,0],["a",r,r,0,0,1,r,r],["l",0,n-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-i,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-n],["a",r,r,0,0,1,r,-r],["z"]];var a=[["M",t,e],["l",i,0],["l",0,n],["l",-i,0],["z"]];return a.parsePathArray=v,a};i.rectPath=M;var w=function(t,e,i,n){return null===t&&(t=e=i=n=0),null===e&&(e=t.y,i=t.width,n=t.height,t=t.x),{x:t,y:e,width:i,w:i,height:n,h:n,x2:t+i,y2:e+n,cx:t+i/2,cy:e+n/2,r1:Math.min(i,n)/2,r2:Math.max(i,n)/2,r0:Math.sqrt(i*i+n*n)/2,path:M(t,e,i,n),vb:[t,e,i,n].join(" ")}},S=function(t,e,i,r,a,o,s,l){n.isArray(t)||(t=[t,e,i,r,a,o,s,l]);var u=b.apply(null,t);return w(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},C=function(t,e,i,n,r,a,o,s,l){var u=1-l,c=Math.pow(u,3),p=Math.pow(u,2),h=l*l,f=h*l,d=t+2*l*(i-t)+h*(r-2*i+t),g=e+2*l*(n-e)+h*(a-2*n+e),v=i+2*l*(r-i)+h*(o-2*r+i),y=n+2*l*(a-n)+h*(s-2*a+n);return{x:c*t+3*p*l*i+3*u*l*l*r+f*o,y:c*e+3*p*l*n+3*u*l*l*a+f*s,m:{x:d,y:g},n:{x:v,y:y},start:{x:u*t+l*i,y:u*e+l*n},end:{x:u*r+l*o,y:u*a+l*s},alpha:90-180*Math.atan2(d-v,g-y)/Math.PI}},P=function(t,e,i){if(!function(t,e){return t=w(t),e=w(e),_(e,t.x,t.y)||_(e,t.x2,t.y)||_(e,t.x,t.y2)||_(e,t.x2,t.y2)||_(t,e.x,e.y)||_(t,e.x2,e.y)||_(t,e.x,e.y2)||_(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)}(S(t),S(e)))return i?0:[];for(var n=~~(m.apply(0,t)/8),r=~~(m.apply(0,e)/8),a=[],o=[],s={},l=i?0:[],u=0;u<n+1;u++){var c=C.apply(0,t.concat(u/n));a.push({x:c.x,y:c.y,t:u/n})}for(u=0;u<r+1;u++){c=C.apply(0,e.concat(u/r));o.push({x:c.x,y:c.y,t:u/r})}for(u=0;u<n;u++)for(var p=0;p<r;p++){var h=a[u],f=a[u+1],d=o[p],g=o[p+1],v=Math.abs(f.x-h.x)<.001?"y":"x",y=Math.abs(g.x-d.x)<.001?"y":"x",b=x(h.x,h.y,f.x,f.y,d.x,d.y,g.x,g.y);if(b){if(s[b.x.toFixed(4)]===b.y.toFixed(4))continue;s[b.x.toFixed(4)]=b.y.toFixed(4);var M=h.t+Math.abs((b[v]-h[v])/(f[v]-h[v]))*(f.t-h.t),P=d.t+Math.abs((b[y]-d[y])/(g[y]-d[y]))*(g.t-d.t);M>=0&&M<=1&&P>=0&&P<=1&&(i?l+=1:l.push({x:b.x,y:b.y,t1:M,t2:P}))}}return l};function O(t,e){var i=[],n=[];return t.length&&function t(e,r){if(1===e.length)i.push(e[0]),n.push(e[0]);else{for(var a=[],o=0;o<e.length-1;o++)0===o&&i.push(e[0]),o===e.length-2&&n.push(e[o+1]),a[o]=[(1-r)*e[o][0]+r*e[o+1][0],(1-r)*e[o][1]+r*e[o+1][1]];t(a,r)}}(t,e),{left:i,right:n.reverse()}}i.intersection=function(t,e){return function(t,e,i){var n,r,a,o,s,l,u,c,p,h;t=d(t),e=d(e);for(var f=i?0:[],g=0,v=t.length;g<v;g++){var y=t[g];if("M"===y[0])n=s=y[1],r=l=y[2];else{"C"===y[0]?(p=[n,r].concat(y.slice(1)),n=p[6],r=p[7]):(p=[n,r,n,r,s,l,s,l],n=s,r=l);for(var m=0,b=e.length;m<b;m++){var x=e[m];if("M"===x[0])a=u=x[1],o=c=x[2];else{"C"===x[0]?(h=[a,o].concat(x.slice(1)),a=h[6],o=h[7]):(h=[a,o,a,o,u,c,u,c],a=u,o=c);var _=P(p,h,i);if(i)f+=_;else{for(var M=0,w=_.length;M<w;M++)_[M].segment1=g,_[M].segment2=m,_[M].bez1=p,_[M].bez2=h;f=f.concat(_)}}}}}return f}(t,e)};var T=function(t,e,i){if(1===i)return[[].concat(t)];var n=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])n=n.concat(function(t,e,i){var n=[[t[1],t[2]]];i=i||2;var r=[];"A"===e[0]?(n.push(e[6]),n.push(e[7])):"C"===e[0]?(n.push([e[1],e[2]]),n.push([e[3],e[4]]),n.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(n.push([e[1],e[2]]),n.push([e[3],e[4]])):n.push([e[1],e[2]]);for(var a=n,o=1/i,s=0;s<i-1;s++){var l=O(a,o/(1-o*s));r.push(l.left),a=l.right}return r.push(a),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])}))}(t,e,i));else{var r=[].concat(t);"M"===r[0]&&(r[0]="L");for(var a=0;a<=i-1;a++)n.push(r)}return n};i.fillPath=function(t,e){if(1===t.length)return t;var i=t.length-1,n=e.length-1,r=i/n,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o<n-i;o++)t.push(t[0]);return t}for(o=0;o<n;o++){var s=Math.floor(r*o);a[s]=(a[s]||0)+1}var l=a.reduce((function(e,n,r){return r===i?e.concat(t[i]):e.concat(T(t[r],t[r+1],n))}),[]);return l.unshift(t[0]),"Z"!==e[n]&&"z"!==e[n]||l.push("Z"),l};var A=function(t,e){if(t.length!==e.length)return!1;var i=!0;return n.each(t,(function(t,n){if(t!==e[n])return i=!1,!1})),i};function E(t,e,i){var n=null,r=i;return e<r&&(r=e,n="add"),t<r&&(r=t,n="del"),{type:n,min:r}}function L(t,e,i){for(var n,r=[].concat(t),a=1/(i+1),o=I(e)[0],s=1;s<=i;s++)a*=s,0===(n=Math.floor(t.length*a))?r.unshift([o[0]*a+t[n][0]*(1-a),o[1]*a+t[n][1]*(1-a)]):r.splice(n,0,[o[0]*a+t[n][0]*(1-a),o[1]*a+t[n][1]*(1-a)]);return r}function I(t){var e=[];switch(t[0]){case"M":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":case"V":e.push([t[1],t[1]])}return e}i.fillPathByDiff=function(t,e){var i=function(t,e){var i,n,r=t.length,a=e.length,o=0;if(0===r||0===a)return null;for(var s=[],l=0;l<=r;l++)s[l]=[],s[l][0]={min:l};for(var u=0;u<=a;u++)s[0][u]={min:u};for(l=1;l<=r;l++){i=t[l-1];for(u=1;u<=a;u++){n=e[u-1],o=A(i,n)?0:1;var c=s[l-1][u].min+1,p=s[l][u-1].min+1,h=s[l-1][u-1].min+o;s[l][u]=E(c,p,h)}}return s}(t,e),n=t.length,r=e.length,a=[],o=1,s=1;if(i[n][r].min!==n){for(var l=1;l<=n;l++){var u=i[l][l].min;s=l;for(var c=o;c<=r;c++)i[l][c].min<u&&(u=i[l][c].min,s=c);o=s,i[l][o].type&&a.push({index:l-1,type:i[l][o].type})}for(l=a.length-1;l>=0;l--)o=a[l].index,"add"===a[l].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}var p=r-(n=t.length);if(n<r)for(l=0;l<p;l++)"z"===t[n-1][0]||"Z"===t[n-1][0]?t.splice(n-2,0,t[n-2]):t.push(t[n-1]),n+=1;return t};i.formatPath=function(t,e){if(t.length<=1)return t;for(var i,n=0;n<e.length;n++)if(t[n][0]!==e[n][0])switch(i=I(t[n]),e[n][0]){case"M":t[n]=["M"].concat(i[0]);break;case"L":t[n]=["L"].concat(i[0]);break;case"A":t[n]=[].concat(e[n]),t[n][6]=i[0][0],t[n][7]=i[0][1];break;case"Q":if(i.length<2){if(!(n>0)){t[n]=e[n];break}i=L(i,t[n-1],1)}t[n]=["Q"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[n]=["T"].concat(i[0]);break;case"C":if(i.length<3){if(!(n>0)){t[n]=e[n];break}i=L(i,t[n-1],2)}t[n]=["C"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(i.length<2){if(!(n>0)){t[n]=e[n];break}i=L(i,t[n-1],1)}t[n]=["S"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[n]=e[n]}return t}},{"@antv/util":803}],122:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./util"),r=t("./offscreen");function a(t,e){return e?e-t:.14*t}i.getTextHeight=function(t,e,i){var r=1;return n.isString(t)&&(r=t.split("\n").length),r>1?e*r+a(e,i)*(r-1):e},i.getLineSpaceing=a,i.getTextWidth=function(t,e){var i=r.getOffScreenContext(),a=0;if(n.isNil(t)||""===t)return a;if(i.save(),i.font=e,n.isString(t)&&t.includes("\n")){var o=t.split("\n");n.each(o,(function(t){var e=i.measureText(t).width;a<e&&(a=e)}))}else a=i.measureText(t).width;return i.restore(),a},i.assembleFont=function(t){var e=t.fontSize,i=t.fontFamily,n=t.fontWeight;return[t.fontStyle,t.fontVariant,n,e+"px",i].join(" ").trim()}},{"./offscreen":120,"./util":123}],123:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.removeFromArray=function(t,e){var i=t.indexOf(e);-1!==i&&t.splice(i,1)},i.isBrowser="undefined"!=typeof window&&void 0!==window.document;var n=t("@antv/util/lib/is-nil");i.isNil=n.default;var r=t("@antv/util/lib/is-function");i.isFunction=r.default;var a=t("@antv/util/lib/is-string");i.isString=a.default;var o=t("@antv/util/lib/is-object");i.isObject=o.default;var s=t("@antv/util/lib/is-array");i.isArray=s.default;var l=t("@antv/util/lib/mix");i.mix=l.default;var u=t("@antv/util/lib/each");i.each=u.default;var c=t("@antv/util/lib/upper-first");i.upperFirst=c.default,i.isParent=function(t,e){if(t.isCanvas())return!0;for(var i=e.getParent(),n=!1;i;){if(i===t){n=!0;break}i=i.getParent()}return n},i.isAllowCapture=function(t){return t.cfg.visible&&t.cfg.capture}},{"@antv/util/lib/each":778,"@antv/util/lib/is-array":806,"@antv/util/lib/is-function":817,"@antv/util/lib/is-nil":821,"@antv/util/lib/is-object":826,"@antv/util/lib/is-string":832,"@antv/util/lib/mix":844,"@antv/util/lib/upper-first":871}],124:[function(t,e,i){e.exports={__npminstall_done:!1,_args:[["@antv/g-base@0.4.7","/Users/thilina/TestProjects/icehrm/web"]],_from:"@antv/g-base@0.4.7",_id:"@antv/g-base@0.4.7",_inBundle:!1,_integrity:"sha512-wKSpS3/M1slU92iOgi2QV4MCd82J1d2PyPcQArqSFRUZU0KnVMIl95v79dG0Be4YvFaZ3bVrT6Ns1Czr8oplhA==",_location:"/@antv/g-base",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"@antv/g-base@0.4.7",name:"@antv/g-base",escapedName:"@antv%2fg-base",scope:"@antv",rawSpec:"0.4.7",saveSpec:null,fetchSpec:"0.4.7"},_requiredBy:["/@antv/component","/@antv/g-canvas","/@antv/g-svg","/@antv/g2","/@antv/g2plot"],_resolved:"https://registry.npmjs.org/@antv/g-base/-/g-base-0.4.7.tgz",_spec:"0.4.7",_where:"/Users/thilina/TestProjects/icehrm/web",author:{name:"https://github.com/orgs/antvis/people"},bugs:{url:"https://github.com/antvis/util/issues"},dependencies:{"@antv/event-emitter":"^0.1.1","@antv/g-math":"^0.1.3","@antv/matrix-util":"^3.1.0-beta.1","@antv/path-util":"~2.0.5","@antv/util":"~2.0.0","@types/d3-timer":"^1.0.9","d3-ease":"^1.0.5","d3-interpolate":"^1.3.2","d3-timer":"^1.0.9","detect-browser":"^5.1.0"},description:"A common util collection for antv projects",devDependencies:{"@antv/torch":"^1.0.0","gl-matrix":"^3.0.0",less:"^3.9.0","npm-run-all":"^4.1.5","tsc-watch":"^4.0.0"},files:["package.json","esm","lib","LICENSE","README.md"],gitHead:"eb6a2503cb7bb8154697592b10680939d954a31a",homepage:"https://github.com/antvis/util#readme",keywords:["util","antv","g"],license:"ISC",main:"lib/index.js",module:"esm/index.js",name:"@antv/g-base",publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/antvis/util.git"},scripts:{build:"npm run clean && run-p build:*","build:cjs":"tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib","build:esm":"tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm",clean:"rm -rf esm lib",coverage:"npm run coverage-generator && npm run coverage-viewer","coverage-generator":"torch --coverage --compile --source-pattern src/*.js,src/**/*.js --opts tests/mocha.opts","coverage-viewer":"torch-coverage",test:"torch --renderer --compile --opts tests/mocha.opts","test-live":"torch --compile --interactive --opts tests/mocha.opts",tsc:"tsc --noEmit",typecheck:"tsc --noEmit","watch:cjs":"tsc-watch -p tsconfig.json --target ES5 --module commonjs --outDir lib --compiler typescript/bin/tsc"},types:"lib/index.d.ts",version:"0.4.7"}},{}],125:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/g-base"),a=t("./util/hit"),o=t("./shape"),s=t("./group"),l=t("./util/draw"),u=t("./util/util"),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(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 o},e.prototype.getGroupBase=function(){return s.default},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||u.getPixelRatio();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.get("width"),maxY:this.get("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,i){t.prototype.setDOMSize.call(this,e,i);var n=this.get("context"),r=this.get("el"),a=this.getPixelRatio();r.width=a*e,r.height=a*i,a>1&&n.scale(a,a)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),i=this.get("el");e.clearRect(0,0,i.width,i.height)},e.prototype.getShape=function(e,i){return this.get("quickHit")?a.getShape(this,e,i):t.prototype.getShape.call(this,e,i,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),i=this.getViewRange();e.length&&e[0]===this?t=i:(t=l.getMergedRegion(e))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),this.get("clipView")&&(t=l.mergeView(t,i)));return t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(u.clearAnimationFrame(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"),i=this.getChildren();t.clearRect(0,0,e.width,e.height),l.applyAttrsToContext(t,this),l.drawChildren(t,i),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),i=this.getChildren(),n=this._getRefreshRegion();n&&(t.clearRect(n.minX,n.minY,n.maxX-n.minX,n.maxY-n.minY),t.save(),t.beginPath(),t.rect(n.minX,n.minY,n.maxX-n.minX,n.maxY-n.minY),t.clip(),l.applyAttrsToContext(t,this),l.drawChildren(t,i,n),t.restore()),u.each(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=u.requestAnimationFrame((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)})),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e}(r.AbstractCanvas);i.default=c},{"./group":126,"./shape":133,"./util/draw":144,"./util/hit":145,"./util/util":155,"@antv/g-base":115,tslib:894}],126:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/g-base"),a=t("./shape"),o=t("./util/draw"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.onCanvasChange=function(t){o.refreshElement(this,t)},e.prototype.getShapeBase=function(){return a},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),o.applyAttrsToContext(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var i=this.getChildren();i.length&&(t.save(),o.applyAttrsToContext(t,this),this._applyClip(t,this.getClip()),o.drawChildren(t,i,e),t.restore()),this.set("cacheCanvasBBox",this.getCanvasBBox()),this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(r.AbstractGroup);i.default=s},{"./shape":133,"./util/draw":144,"@antv/g-base":115,tslib:894}],127:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Shape=i.version=void 0;var n=t("tslib"),r=t("./shape");i.Shape=r;var a=t("../package.json");i.version=a.version,n.__exportStar(t("./types"),i),n.__exportStar(t("./interfaces"),i);var o=t("@antv/g-base");Object.defineProperty(i,"Event",{enumerable:!0,get:function(){return o.Event}});var s=t("./canvas");Object.defineProperty(i,"Canvas",{enumerable:!0,get:function(){return s.default}});var l=t("./group");Object.defineProperty(i,"Group",{enumerable:!0,get:function(){return l.default}})},{"../package.json":156,"./canvas":125,"./group":126,"./interfaces":128,"./shape":133,"./types":141,"@antv/g-base":115,tslib:894}],128:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),t("tslib").__exportStar(t("@antv/g-base/lib/interfaces"),i)},{"@antv/g-base/lib/interfaces":116,tslib:894}],129:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/g-base"),a=t("../util/util"),o=t("../util/draw"),s=t("@antv/g-base/lib/bbox/index"),l=t("./index"),u=t("../group"),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return l},e.prototype.getGroupBase=function(){return u.default},e.prototype.onCanvasChange=function(t){o.refreshElement(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),i=s.getBBoxMethod(t)(this),n=e/2,r=i.x-n,a=i.y-n,o=i.x+i.width+n,l=i.y+i.height+n;return{x:r,minX:r,y:a,minY:a,width:i.width+e,height:i.height+e,maxX:o,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(),o.applyAttrsToContext(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var i=this.getClip();if(e){var n=i?o.getMergedRegion([this,i]):this.getCanvasBBox();if(!a.intersectRect(e,n))return void this.set("hasChanged",!1)}t.save(),o.applyAttrsToContext(t,this),this._applyClip(t,this.getClip()),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype._afterDraw=function(){var t=this.getCanvasBBox(),e=this.getCanvas();if(this.set("cacheCanvasBBox",t),e){var i=e.getViewRange();this.set("isInView",a.intersectRect(t,i))}this.set("hasChanged",!1)},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,i=e.lineWidth,n=e.opacity,r=e.strokeOpacity,o=e.fillOpacity;this.isFill()&&(a.isNil(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=n)),this.isStroke()&&i>0&&(a.isNil(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 i=this.isStroke(),n=this.isFill(),r=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,i,n,r)},e.prototype.isInStrokeOrPath=function(t,e,i,n,r){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(r.AbstractShape);i.default=c},{"../group":126,"../util/draw":144,"../util/util":155,"./index":133,"@antv/g-base":115,"@antv/g-base/lib/bbox/index":104,tslib:894}],130:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("./base"),a=t("../util/util"),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,i,n,r){var o=this.attr(),s=o.x,l=o.y,u=o.r,c=r/2,p=a.distance(s,l,t,e);return n&&i?p<=u+c:n?p<=u:!!i&&(p>=u-c&&p<=u+c)},e.prototype.createPath=function(t){var e=this.attr(),i=e.x,n=e.y,r=e.r;t.beginPath(),t.arc(i,n,r,0,2*Math.PI,!1),t.closePath()},e}(r.default);i.default=o},{"../util/util":155,"./base":129,tslib:894}],131:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib");function r(t,e,i,n){return t/(i*i)+e/(n*n)}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,i,n,a){var o=this.attr(),s=a/2,l=o.x,u=o.y,c=o.rx,p=o.ry,h=(t-l)*(t-l),f=(e-u)*(e-u);return n&&i?r(h,f,c+s,p+s)<=1:n?r(h,f,c,p)<=1:!!i&&(r(h,f,c-s,p-s)>=1&&r(h,f,c+s,p+s)<=1)},e.prototype.createPath=function(t){var e=this.attr(),i=e.x,n=e.y,r=e.rx,a=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(i,n,r,a,0,0,2*Math.PI,!1);else{var o=r>a?r:a,s=r>a?1:r/a,l=r>a?a/r:1;t.save(),t.translate(i,n),t.scale(s,l),t.arc(0,0,o,0,2*Math.PI),t.restore(),t.closePath()}},e}(t("./base").default);i.default=a},{"./base":129,tslib:894}],132:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("./base"),a=t("../util/util");function o(t){return t instanceof HTMLElement&&a.isString(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},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,i=this.attrs;if(a.isString(t)){var n=new Image;n.onload=function(){if(e.destroyed)return!1;e.attr("img",n),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},n.src=t,n.crossOrigin="Anonymous",this.set("loading",!0)}else t instanceof Image?(i.width||(i.width=t.width),i.height||(i.height=t.height)):o(t)&&(i.width||(i.width=Number(t.getAttribute("width"))),i.height||(i.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,i,n){t.prototype.onAttrChange.call(this,e,i,n),"img"===e&&this._setImage(i)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),i=e.x,n=e.y,r=e.width,s=e.height,l=e.sx,u=e.sy,c=e.swidth,p=e.sheight,h=e.img;(h instanceof Image||o(h))&&(a.isNil(l)||a.isNil(u)||a.isNil(c)||a.isNil(p)?t.drawImage(h,i,n,r,s):t.drawImage(h,l,u,c,p,i,n,r,s))},e}(r.default);i.default=s},{"../util/util":155,"./base":129,tslib:894}],133:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./base");Object.defineProperty(i,"Base",{enumerable:!0,get:function(){return n.default}});var r=t("./circle");Object.defineProperty(i,"Circle",{enumerable:!0,get:function(){return r.default}});var a=t("./ellipse");Object.defineProperty(i,"Ellipse",{enumerable:!0,get:function(){return a.default}});var o=t("./image");Object.defineProperty(i,"Image",{enumerable:!0,get:function(){return o.default}});var s=t("./line");Object.defineProperty(i,"Line",{enumerable:!0,get:function(){return s.default}});var l=t("./marker");Object.defineProperty(i,"Marker",{enumerable:!0,get:function(){return l.default}});var u=t("./path");Object.defineProperty(i,"Path",{enumerable:!0,get:function(){return u.default}});var c=t("./polygon");Object.defineProperty(i,"Polygon",{enumerable:!0,get:function(){return c.default}});var p=t("./polyline");Object.defineProperty(i,"Polyline",{enumerable:!0,get:function(){return p.default}});var h=t("./rect");Object.defineProperty(i,"Rect",{enumerable:!0,get:function(){return h.default}});var f=t("./text");Object.defineProperty(i,"Text",{enumerable:!0,get:function(){return f.default}})},{"./base":129,"./circle":130,"./ellipse":131,"./image":132,"./line":134,"./marker":135,"./path":136,"./polygon":137,"./polyline":138,"./rect":139,"./text":140}],134:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/g-math/lib/line"),a=t("./base"),o=t("../util/in-stroke/line"),s=t("../util/arrow"),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},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,i,n){t.prototype.onAttrChange.call(this,e,i,n),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,i=t.y1,n=t.x2,r=t.y2,a=t.startArrow,o=t.endArrow;a&&s.addStartArrow(this,t,n,r,e,i),o&&s.addEndArrow(this,t,e,i,n,r)},e.prototype.isInStrokeOrPath=function(t,e,i,n,r){if(!i||!r)return!1;var a=this.attr(),s=a.x1,l=a.y1,u=a.x2,c=a.y2;return o.default(s,l,u,c,r,t,e)},e.prototype.createPath=function(t){var e=this.attr(),i=e.x1,n=e.y1,r=e.x2,a=e.y2,o=e.startArrow,l=e.endArrow,u={dx:0,dy:0},c={dx:0,dy:0};o&&o.d&&(u=s.getShortenOffset(i,n,r,a,e.startArrow.d)),l&&l.d&&(c=s.getShortenOffset(i,n,r,a,e.endArrow.d)),t.beginPath(),t.moveTo(i+u.dx,n+u.dy),t.lineTo(r-c.dx,a-c.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),i=this.get("endArrowShape");e&&e.draw(t),i&&i.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,i=t.y1,n=t.x2,a=t.y2;return r.default.length(e,i,n,a)},e.prototype.getPoint=function(t){var e=this.attr(),i=e.x1,n=e.y1,a=e.x2,o=e.y2;return r.default.pointAt(i,n,a,o,t)},e}(a.default);i.default=l},{"../util/arrow":143,"../util/in-stroke/line":149,"./base":129,"@antv/g-math/lib/line":172,tslib:894}],135:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("@antv/path-util/lib/path-2-absolute"),o=t("./base"),s=t("../util/util"),l=t("../util/draw"),u={circle:function(t,e,i){return[["M",t-i,e],["A",i,i,0,1,0,t+i,e],["A",i,i,0,1,0,t-i,e]]},square:function(t,e,i){return[["M",t-i,e-i],["L",t+i,e-i],["L",t+i,e+i],["L",t-i,e+i],["Z"]]},diamond:function(t,e,i){return[["M",t-i,e],["L",t,e-i],["L",t+i,e],["L",t,e+i],["Z"]]},triangle:function(t,e,i){var n=i*Math.sin(1/3*Math.PI);return[["M",t-i,e+n],["L",t,e-n],["L",t+i,e+n],["Z"]]},"triangle-down":function(t,e,i){var n=i*Math.sin(1/3*Math.PI);return[["M",t-i,e-n],["L",t+i,e-n],["L",t,e+n],["Z"]]}},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,i,n){t.prototype.onAttrChange.call(this,e,i,n),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return r.isNil(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,i,n=this.attr(),r=n.x,o=n.y,l=n.symbol||"circle",u=this._getR(n);return s.isFunction(l)?(i=(t=l)(r,o,u),i=a.default(i)):i=(t=e.Symbols[l])(r,o,u),t?i:(console.warn(l+" marker is not supported."),null)},e.prototype.createPath=function(t){var e=this._getPath(),i=this.get("paramsCache");l.drawPath(this,t,{path:e},i)},e.Symbols=u,e}(o.default);i.default=c},{"../util/draw":144,"../util/util":155,"./base":129,"@antv/path-util/lib/path-2-absolute":729,"@antv/util":803,tslib:894}],136:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/g-math/lib/cubic"),a=t("@antv/util"),o=t("./base"),s=t("@antv/path-util/lib/path-2-absolute"),l=t("@antv/path-util/lib/path-2-segments"),u=t("../util/draw"),c=t("../util/in-path/point-in-path"),p=t("../util/in-path/polygon"),h=t("../util/path"),f=t("../util/arrow");function d(t,e,i){for(var n=!1,r=0;r<t.length;r++){var a=t[r];if(n=p.default(a,e,i))break}return n}var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,i,n){t.prototype.onAttrChange.call(this,e,i,n),"path"===e&&this._setPathArr(i),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=s.default(t);var e=h.default.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=l.default(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t=this.attr(),e=t.startArrow,i=t.endArrow;if(e){var n=this.getStartTangent();f.addStartArrow(this,t,n[0][0],n[0][1],n[1][0],n[1][1])}if(i){n=this.getEndTangent();f.addEndArrow(this,t,n[0][0],n[0][1],n[1][0],n[1][1])}},e.prototype.isInStrokeOrPath=function(t,e,i,n,r){var a=this.getSegments(),o=this.get("hasArc"),s=!1;if(i&&(s=h.default.isPointInStroke(a,r,t,e)),!s&&n)if(o)s=c.default(this,t,e);else{var l=this.attr("path"),u=h.default.extractPolygons(l);s=d(u.polygons,t,e)||d(u.polylines,t,e)}return s},e.prototype.createPath=function(t){var e=this.attr(),i=this.get("paramsCache");u.drawPath(this,t,e,i)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),i=this.get("endArrowShape");e&&e.draw(t),i&&i.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return a.isNil(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,i,n=this.get("tCache");n||(this._calculateCurve(),this._setTcache(),n=this.get("tCache"));var o=this.get("curve");if(!n||0===n.length)return o?{x:o[0][1],y:o[0][2]}:null;a.each(n,(function(n,r){t>=n[0]&&t<=n[1]&&(e=(t-n[0])/(n[1]-n[0]),i=r)}));var s=o[i];if(a.isNil(s)||a.isNil(i))return null;var l=s.length,u=o[i+1];return r.default.pointAt(s[l-2],s[l-1],u[1],u[2],u[3],u[4],u[5],u[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",h.default.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,i,n,o=0,s=0,l=[],u=this.get("curve");u&&(a.each(u,(function(t,e){i=u[e+1],n=t.length,i&&(o+=r.default.length(t[n-2],t[n-1],i[1],i[2],i[3],i[4],i[5],i[6])||0)})),this.set("totalLength",o),0!==o?(a.each(u,(function(a,c){i=u[c+1],n=a.length,i&&((t=[])[0]=s/o,e=r.default.length(a[n-2],a[n-1],i[1],i[2],i[3],i[4],i[5],i[6]),s+=e||0,t[1]=s/o,l.push(t))})),this.set("tCache",l)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var i=e[0].currentPoint,n=e[1].currentPoint,r=e[1].startTangent;t=[],r?(t.push([i[0]-r[0],i[1]-r[1]]),t.push([i[0],i[1]])):(t.push([n[0],n[1]]),t.push([i[0],i[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),i=e.length;if(i>1){var n=e[i-2].currentPoint,r=e[i-1].currentPoint,a=e[i-1].endTangent;t=[],a?(t.push([r[0]-a[0],r[1]-a[1]]),t.push([r[0],r[1]])):(t.push([n[0],n[1]]),t.push([r[0],r[1]]))}return t},e}(o.default);i.default=g},{"../util/arrow":143,"../util/draw":144,"../util/in-path/point-in-path":146,"../util/in-path/polygon":147,"../util/path":154,"./base":129,"@antv/g-math/lib/cubic":170,"@antv/path-util/lib/path-2-absolute":729,"@antv/path-util/lib/path-2-segments":731,"@antv/util":803,tslib:894}],137:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("./base"),a=t("../util/in-stroke/polyline"),o=t("../util/in-path/polygon"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.isInStrokeOrPath=function(t,e,i,n,r){var s=this.attr().points,l=!1;return i&&(l=a.default(s,r,t,e,!0)),!l&&n&&(l=o.default(s,t,e)),l},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var i=0;i<e.length;i++){var n=e[i];0===i?t.moveTo(n[0],n[1]):t.lineTo(n[0],n[1])}t.closePath()}},e}(r.default);i.default=s},{"../util/in-path/polygon":147,"../util/in-stroke/polyline":150,"./base":129,tslib:894}],138:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/g-math/lib/line"),a=t("@antv/g-math/lib/polyline"),o=t("@antv/util"),s=t("./base"),l=t("../util/in-stroke/polyline"),u=t("../util/arrow"),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,i,n){t.prototype.onAttrChange.call(this,e,i,n),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,i=e.points,n=e.startArrow,r=e.endArrow,a=i.length,o=i[0][0],s=i[0][1],l=i[a-1][0],c=i[a-1][1];n&&u.addStartArrow(this,t,i[1][0],i[1][1],o,s),r&&u.addEndArrow(this,t,i[a-2][0],i[a-2][1],l,c)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,i,n,r){if(!i||!r)return!1;var a=this.attr().points;return l.default(a,r,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),i=e.points,n=e.startArrow,r=e.endArrow,a=i.length;if(!(i.length<2)){var o,s=i[0][0],l=i[0][1],c=i[a-1][0],p=i[a-1][1];if(n&&n.d)s+=(o=u.getShortenOffset(s,l,i[1][0],i[1][1],n.d)).dx,l+=o.dy;if(r&&r.d)c-=(o=u.getShortenOffset(i[a-2][0],i[a-2][1],c,p,r.d)).dx,p-=o.dy;t.beginPath(),t.moveTo(s,l);for(var h=0;h<a-1;h++){var f=i[h];t.lineTo(f[0],f[1])}t.lineTo(c,p)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),i=this.get("endArrowShape");e&&e.draw(t),i&&i.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return o.isNil(e)?(this.set("totalLength",a.default.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,i,n=this.attr().points,a=this.get("tCache");return a||(this._setTcache(),a=this.get("tCache")),o.each(a,(function(n,r){t>=n[0]&&t<=n[1]&&(e=(t-n[0])/(n[1]-n[0]),i=r)})),r.default.pointAt(n[i][0],n[i][1],n[i+1][0],n[i+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 i,n,a=0,s=[];o.each(t,(function(o,l){t[l+1]&&((i=[])[0]=a/e,n=r.default.length(o[0],o[1],t[l+1][0],t[l+1][1]),a+=n,i[1]=a/e,s.push(i))})),this.set("tCache",s)}}},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,i=[];return i.push([t[e-1][0],t[e-1][1]]),i.push([t[e][0],t[e][1]]),i},e}(s.default);i.default=c},{"../util/arrow":143,"../util/in-stroke/polyline":150,"./base":129,"@antv/g-math/lib/line":172,"@antv/g-math/lib/polyline":173,"@antv/util":803,tslib:894}],139:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("./base"),a=t("../util/parse"),o=t("../util/util"),s=t("../util/in-stroke/rect"),l=t("../util/in-stroke/rect-radius"),u=t("../util/in-path/point-in-path"),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,i,n,r){var a=this.attr(),c=a.x,p=a.y,h=a.width,f=a.height,d=a.radius;if(d){var g=!1;return i&&(g=l.default(c,p,h,f,d,r,t,e)),!g&&n&&(g=u.default(this,t,e)),g}var v=r/2;return n&&i?o.inBox(c-v,p-v,h+v,f+v,t,e):n?o.inBox(c,p,h,f,t,e):i?s.default(c,p,h,f,r,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),i=e.x,n=e.y,r=e.width,o=e.height,s=e.radius;if(t.beginPath(),0===s)t.rect(i,n,r,o);else{var l=a.parseRadius(s),u=l[0],c=l[1],p=l[2],h=l[3];t.moveTo(i+u,n),t.lineTo(i+r-c,n),0!==c&&t.arc(i+r-c,n+c,c,-Math.PI/2,0),t.lineTo(i+r,n+o-p),0!==p&&t.arc(i+r-p,n+o-p,p,0,Math.PI/2),t.lineTo(i+h,n+o),0!==h&&t.arc(i+h,n+o-h,h,Math.PI/2,Math.PI),t.lineTo(i,n+u),0!==u&&t.arc(i+u,n+u,u,Math.PI,1.5*Math.PI),t.closePath()}},e}(r.default);i.default=c},{"../util/in-path/point-in-path":146,"../util/in-stroke/rect":152,"../util/in-stroke/rect-radius":151,"../util/parse":153,"../util/util":155,"./base":129,tslib:894}],140:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("./base"),a=t("../util/util"),o=t("@antv/g-base/lib/util/text"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},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=o.assembleFont(t)},e.prototype._setText=function(t){var e=null;a.isString(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,i,n){t.prototype.onAttrChange.call(this,e,i,n),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(i)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,i=1*t.fontSize;return e?e-i:.14*i},e.prototype._drawTextArr=function(t,e,i){var n,r=this.attrs,s=r.textBaseline,l=r.x,u=r.y,c=1*r.fontSize,p=this._getSpaceingY(),h=o.getTextHeight(r.text,r.fontSize,r.lineHeight);a.each(e,(function(e,r){n=u+r*(p+c)-h+c,"middle"===s&&(n+=h-c-(h-c)/2),"top"===s&&(n+=h-c),i?t.fillText(e,l,n):t.strokeText(e,l,n)}))},e.prototype._drawText=function(t,e){var i=this.attr(),n=i.x,r=i.y,a=this.get("textArr");if(a)this._drawTextArr(t,a,e);else{var o=i.text;e?t.fillText(o,n,r):t.strokeText(o,n,r)}},e.prototype.strokeAndFill=function(t){var e=this.attrs,i=e.lineWidth,n=e.opacity,r=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&i>0&&(a.isNil(r)||1===r||(t.globalAlpha=n),this.stroke(t)),this.isFill()&&(a.isNil(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=n)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(r.default);i.default=s},{"../util/util":155,"./base":129,"@antv/g-base/lib/util/text":122,tslib:894}],141:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),t("tslib").__exportStar(t("@antv/g-base/lib/types"),i)},{"@antv/g-base/lib/types":117,tslib:894}],142:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./util");function r(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return r(t)*r(e)?(t[0]*e[0]+t[1]*e[1])/(r(t)*r(e)):1}function o(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(a(t,e))}i.default=function(t,e){var i=e[1],r=e[2],s=n.mod(n.toRadian(e[3]),2*Math.PI),l=e[4],u=e[5],c=t[0],p=t[1],h=e[6],f=e[7],d=Math.cos(s)*(c-h)/2+Math.sin(s)*(p-f)/2,g=-1*Math.sin(s)*(c-h)/2+Math.cos(s)*(p-f)/2,v=d*d/(i*i)+g*g/(r*r);v>1&&(i*=Math.sqrt(v),r*=Math.sqrt(v));var y=i*i*(g*g)+r*r*(d*d),m=y?Math.sqrt((i*i*(r*r)-y)/y):1;l===u&&(m*=-1),isNaN(m)&&(m=0);var b=r?m*i*g/r:0,x=i?m*-r*d/i:0,_=(c+h)/2+Math.cos(s)*b-Math.sin(s)*x,M=(p+f)/2+Math.sin(s)*b+Math.cos(s)*x,w=[(d-b)/i,(g-x)/r],S=[(-1*d-b)/i,(-1*g-x)/r],C=o([1,0],w),P=o(w,S);return a(w,S)<=-1&&(P=Math.PI),a(w,S)>=1&&(P=0),0===u&&P>0&&(P-=2*Math.PI),1===u&&P<0&&(P+=2*Math.PI),{cx:_,cy:M,rx:n.isSamePoint(t,[h,f])?0:i,ry:n.isSamePoint(t,[h,f])?0:r,startAngle:C,endAngle:C+P,xRotation:s,arcFlag:l,sweepFlag:u}}},{"./util":155}],143:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.addEndArrow=i.addStartArrow=i.getShortenOffset=void 0;var n=t("tslib"),r=t("../shape"),a=Math.sin,o=Math.cos,s=Math.atan2,l=Math.PI;function u(t,e,i,n,u,c,p){var h=e.stroke,f=e.lineWidth,d=s(n-c,i-u),g=new r.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*o(l/6)+","+10*a(l/6)+" L0,0 L"+10*o(l/6)+",-"+10*a(l/6),stroke:h,lineWidth:f}});g.translate(u,c),g.rotateAtPoint(u,c,d),t.set(p?"startArrowShape":"endArrowShape",g)}function c(t,e,i,l,u,c,p){var h=e.startArrow,f=e.endArrow,d=e.stroke,g=e.lineWidth,v=p?h:f,y=v.d,m=v.fill,b=v.stroke,x=v.lineWidth,_=n.__rest(v,["d","fill","stroke","lineWidth"]),M=s(l-c,i-u);y&&(u-=o(M)*y,c-=a(M)*y);var w=new r.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:n.__assign(n.__assign({},_),{stroke:b||d,lineWidth:x||g,fill:m})});w.translate(u,c),w.rotateAtPoint(u,c,M),t.set(p?"startArrowShape":"endArrowShape",w)}i.getShortenOffset=function(t,e,i,n,r){var l=s(n-e,i-t);return{dx:o(l)*r,dy:a(l)*r}},i.addStartArrow=function(t,e,i,n,r,a){"object"==typeof e.startArrow?c(t,e,i,n,r,a,!0):e.startArrow?u(t,e,i,n,r,a,!0):t.set("startArrowShape",null)},i.addEndArrow=function(t,e,i,n,r,a){"object"==typeof e.endArrow?c(t,e,i,n,r,a,!1):e.endArrow?u(t,e,i,n,r,a,!1):t.set("startArrowShape",null)}},{"../shape":133,tslib:894}],144:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.mergeView=i.getMergedRegion=i.getRefreshRegion=i.refreshElement=i.drawPath=i.drawChildren=i.applyAttrsToContext=void 0;var n=t("@antv/util"),r=t("./parse"),a=t("./arc-params"),o=t("./util"),s=t("../util/arrow"),l={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function u(t){var e;if(t.destroyed)e=t._cacheCanvasBBox;else{var i=t.get("cacheCanvasBBox"),n=i&&!(!i.width||!i.height),r=t.getCanvasBBox(),a=r&&!(!r.width||!r.height);n&&a?e=o.mergeRegion(i,r):n?e=i:a&&(e=r)}return e}i.applyAttrsToContext=function(t,e){var i=e.attr();for(var a in i){var o=i[a],s=l[a]?l[a]:a;"matrix"===s&&o?t.transform(o[0],o[1],o[3],o[4],o[6],o[7]):"lineDash"===s&&t.setLineDash?n.isArray(o)&&t.setLineDash(o):("strokeStyle"===s||"fillStyle"===s?o=r.parseStyle(t,e,o):"globalAlpha"===s&&(o*=t.globalAlpha),t[s]=o)}},i.drawChildren=function(t,e,i){for(var n=0;n<e.length;n++){var r=e[n];r.get("visible")?r.draw(t,i):r.skipDraw()}},i.drawPath=function(t,e,i,n){var r=i.path,o=i.startArrow,l=i.endArrow,u=[0,0],c=[0,0],p={dx:0,dy:0};e.beginPath();for(var h=0;h<r.length;h++){var f=r[h],d=f[0];if(0===h&&o&&o.d){var g=t.getStartTangent();p=s.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],o.d)}else if(h===r.length-2&&"Z"===r[h+1][0]&&l&&l.d){if("Z"===r[h+1][0]){g=t.getEndTangent();p=s.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],l.d)}}else if(h===r.length-1&&l&&l.d&&"Z"!==r[0]){g=t.getEndTangent();p=s.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],l.d)}var v=p.dx,y=p.dy;switch(d){case"M":e.moveTo(f[1]-v,f[2]-y),c=[f[1],f[2]];break;case"L":e.lineTo(f[1]-v,f[2]-y);break;case"Q":e.quadraticCurveTo(f[1],f[2],f[3]-v,f[4]-y);break;case"C":e.bezierCurveTo(f[1],f[2],f[3],f[4],f[5]-v,f[6]-y);break;case"A":var m=void 0;n?(m=n[h])||(m=a.default(u,f),n[h]=m):m=a.default(u,f);var b=m.cx,x=m.cy,_=m.rx,M=m.ry,w=m.startAngle,S=m.endAngle,C=m.xRotation,P=m.sweepFlag;if(e.ellipse)e.ellipse(b,x,_,M,C,w,S,1-P);else{var O=_>M?_:M,T=_>M?1:_/M,A=_>M?M/_:1;e.translate(b,x),e.rotate(C),e.scale(T,A),e.arc(0,0,O,w,S,1-P),e.scale(1/T,1/A),e.rotate(-C),e.translate(-b,-x)}break;case"Z":e.closePath()}if("Z"===d)u=c;else{var E=f.length;u=[f[E-2],f[E-1]]}}},i.refreshElement=function(t,e){var i=t.get("canvas");i&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(i.refreshElement(t,e,i),i.get("autoDraw")&&i.draw(),t.set("hasChanged",!0)))},i.getRefreshRegion=u,i.getMergedRegion=function(t){if(!t.length)return null;var e=[],i=[],r=[],a=[];return n.each(t,(function(t){var n=u(t);n&&(e.push(n.minX),i.push(n.minY),r.push(n.maxX),a.push(n.maxY))})),{minX:Math.min.apply(null,e),minY:Math.min.apply(null,i),maxX:Math.max.apply(null,r),maxY:Math.max.apply(null,a)}},i.mergeView=function(t,e){return t&&e&&o.intersectRect(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}},{"../util/arrow":143,"./arc-params":142,"./parse":153,"./util":155,"@antv/util":803}],145:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getShape=void 0;var n=t("@antv/g-base/lib/util/util"),r=t("@antv/g-base/lib/util/matrix");function a(t,e,i){var n=t.getTotalMatrix();if(n){var a=function(t,e){if(e){var i=r.invert(e);return r.multiplyVec2(i,t)}return t}([e,i,1],n);return[a[0],a[1]]}return[e,i]}function o(t,e,i){if(t.isCanvas&&t.isCanvas())return!0;if(!n.isAllowCapture(t)&&!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var r=a(t,e,i),o=r[0],s=r[1];if(t.isClipped(o,s))return!1}var l=t.cfg.cacheCanvasBBox;return l||(l=t.getCanvasBBox()),e>=l.minX&&e<=l.maxX&&i>=l.minY&&i<=l.maxY}i.getShape=function t(e,i,n){if(!o(e,i,n))return null;for(var r=null,s=e.getChildren(),l=s.length-1;l>=0;l--){var u=s[l];if(u.isGroup())r=t(u,i,n);else if(o(u,i,n)){var c=u,p=a(u,i,n),h=p[0],f=p[1];c.isInShape(h,f)&&(r=u)}if(r)break}return r}},{"@antv/g-base/lib/util/matrix":119,"@antv/g-base/lib/util/util":123}],146:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/g-base/lib/util/offscreen");i.default=function(t,e,i){var r=n.getOffScreenContext();return t.createPath(r),r.isPointInPath(e,i)}},{"@antv/g-base/lib/util/offscreen":120}],147:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});function n(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function r(t,e,i){return(i[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(i[1]-t[1])&&Math.min(t[0],e[0])<=i[0]&&i[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=i[1]&&i[1]<=Math.max(t[1],e[1])}i.default=function(t,e,i){var a=!1,o=t.length;if(o<=2)return!1;for(var s=0;s<o;s++){var l=t[s],u=t[(s+1)%o];if(r(l,u,[e,i]))return!0;n(l[1]-i)>0!=n(u[1]-i)>0&&n(e-(i-l[1])*(l[0]-u[0])/(l[1]-u[1])-l[0])<0&&(a=!a)}return a}},{}],148:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../util");i.default=function(t,e,i,r,a,o,s,l){var u=(Math.atan2(l-e,s-t)+2*Math.PI)%(2*Math.PI);if(u<r||u>a)return!1;var c={x:t+i*Math.cos(u),y:e+i*Math.sin(u)};return n.distance(c.x,c.y,s,l)<=o/2}},{"../util":155}],149:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/g-math/lib/line");i.default=function(t,e,i,r,a,o,s){var l=Math.min(t,i),u=Math.max(t,i),c=Math.min(e,r),p=Math.max(e,r),h=a/2;return o>=l-h&&o<=u+h&&s>=c-h&&s<=p+h&&n.default.pointToLine(t,e,i,r,o,s)<=a/2}},{"@antv/g-math/lib/line":172}],150:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./line");i.default=function(t,e,i,r,a){var o=t.length;if(o<2)return!1;for(var s=0;s<o-1;s++){var l=t[s][0],u=t[s][1],c=t[s+1][0],p=t[s+1][1];if(n.default(l,u,c,p,e,i,r))return!0}if(a){var h=t[0],f=t[o-1];if(n.default(h[0],h[1],f[0],f[1],e,i,r))return!0}return!1}},{"./line":149}],151:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./line"),r=t("./arc");i.default=function(t,e,i,a,o,s,l,u){return n.default(t+o,e,t+i-o,e,s,l,u)||n.default(t+i,e+o,t+i,e+a-o,s,l,u)||n.default(t+i-o,e+a,t+o,e+a,s,l,u)||n.default(t,e+a-o,t,e+o,s,l,u)||r.default(t+i-o,e+o,o,1.5*Math.PI,2*Math.PI,s,l,u)||r.default(t+i-o,e+a-o,o,0,.5*Math.PI,s,l,u)||r.default(t+o,e+a-o,o,.5*Math.PI,Math.PI,s,l,u)||r.default(t+o,e+o,o,Math.PI,1.5*Math.PI,s,l,u)}},{"./arc":148,"./line":149}],152:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../util");i.default=function(t,e,i,r,a,o,s){var l=a/2;return n.inBox(t-l,e-l,i,a,o,s)||n.inBox(t+i-l,e-l,a,r,o,s)||n.inBox(t+l,e+r-l,i,a,o,s)||n.inBox(t-l,e+l,a,r,o,s)}},{"../util":155}],153:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.parseRadius=i.parseStyle=i.parsePattern=i.parseRadialGradient=i.parseLineGradient=void 0;var n=t("./util"),r=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function l(t,e){var i=t.match(s);n.each(i,(function(t){var i=t.split(":");e.addColorStop(i[0],i[1])}))}function u(t,e,i){var n,a,o=r.exec(i),s=parseFloat(o[1])%360*(Math.PI/180),u=o[2],c=e.getBBox();s>=0&&s<.5*Math.PI?(n={x:c.minX,y:c.minY},a={x:c.maxX,y:c.maxY}):.5*Math.PI<=s&&s<Math.PI?(n={x:c.maxX,y:c.minY},a={x:c.minX,y:c.maxY}):Math.PI<=s&&s<1.5*Math.PI?(n={x:c.maxX,y:c.maxY},a={x:c.minX,y:c.minY}):(n={x:c.minX,y:c.maxY},a={x:c.maxX,y:c.minY});var p=Math.tan(s),h=p*p,f=(a.x-n.x+p*(a.y-n.y))/(h+1)+n.x,d=p*(a.x-n.x+p*(a.y-n.y))/(h+1)+n.y,g=t.createLinearGradient(n.x,n.y,f,d);return l(u,g),g}function c(t,e,i){var n=a.exec(i),r=parseFloat(n[1]),o=parseFloat(n[2]),u=parseFloat(n[3]),c=n[4];if(0===u){var p=c.match(s);return p[p.length-1].split(":")[1]}var h=e.getBBox(),f=h.maxX-h.minX,d=h.maxY-h.minY,g=Math.sqrt(f*f+d*d)/2,v=t.createRadialGradient(h.minX+f*r,h.minY+d*o,0,h.minX+f/2,h.minY+d/2,u*g);return l(c,v),v}function p(t,e,i){if(e.get("patternSource")&&e.get("patternSource")===i)return e.get("pattern");var n,r,a=o.exec(i),s=a[1],l=a[2];function u(){n=t.createPattern(r,s),e.set("pattern",n),e.set("patternSource",i)}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,l.match(/^data:/i)||(r.crossOrigin="Anonymous"),r.src=l,r.complete?u():(r.onload=u,r.src=r.src),n}i.parseLineGradient=u,i.parseRadialGradient=c,i.parsePattern=p,i.parseStyle=function(t,e,i){if(n.isString(i)){if("("===i[1]||"("===i[2]){if("l"===i[0])return u(t,e,i);if("r"===i[0])return c(t,e,i);if("p"===i[0])return p(t,e,i)}return i}},i.parseRadius=function(t){var e=0,i=0,r=0,a=0;return n.isArray(t)?1===t.length?e=i=r=a=t[0]:2===t.length?(e=r=t[0],i=a=t[1]):3===t.length?(e=t[0],i=a=t[1],r=t[2]):(e=t[0],i=t[1],r=t[2],a=t[3]):e=i=r=a=t,[e,i,r,a]}},{"./util":155}],154:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/g-base"),a=t("@antv/g-math/lib/quadratic"),o=t("@antv/g-math/lib/cubic"),s=t("./util"),l=t("./in-stroke/line"),u=t("./in-stroke/arc"),c=t("gl-matrix/mat3"),p=t("gl-matrix/vec3");i.default=n.__assign({hasArc:function(t){for(var e=!1,i=t.length,n=0;n<i;n++){var r=t[n][0];if("C"===r||"A"===r||"Q"===r){e=!0;break}}return e},extractPolygons:function(t){for(var e=t.length,i=[],n=[],r=[],a=0;a<e;a++){var o=t[a],s=o[0];"M"===s?(r.length&&(n.push(r),r=[]),r.push([o[1],o[2]])):"Z"===s?r.length&&(i.push(r),r=[]):r.push([o[1],o[2]])}return r.length>0&&n.push(r),{polygons:i,polylines:n}},isPointInStroke:function(t,e,i,n){for(var r=!1,h=e/2,f=0;f<t.length;f++){var d=t[f],g=d.currentPoint,v=d.params,y=d.prePoint,m=d.box;if(!m||s.inBox(m.x-h,m.y-h,m.width+e,m.height+e,i,n)){switch(d.command){case"L":case"Z":r=l.default(y[0],y[1],g[0],g[1],e,i,n);break;case"Q":r=a.default.pointDistance(y[0],y[1],v[1],v[2],v[3],v[4],i,n)<=e/2;break;case"C":r=o.default.pointDistance(y[0],y[1],v[1],v[2],v[3],v[4],v[5],v[6],i,n)<=e/2;break;case"A":var b=d.arcParams,x=b.cx,_=b.cy,M=b.rx,w=b.ry,S=b.startAngle,C=b.endAngle,P=b.xRotation,O=[i,n,1],T=[1,0,0,0,1,0,0,0,1],A=M>w?M:w,E=M>w?1:M/w,L=M>w?w/M:1;c.translate(T,T,[-x,-_]),c.rotate(T,T,-P),c.scale(T,T,[1/E,1/L]),p.transformMat3(O,O,T),r=u.default(0,0,A,S,C,e,O[0],O[1])}if(r)break}}return r}},r.PathUtil)},{"./in-stroke/arc":148,"./in-stroke/line":149,"./util":155,"@antv/g-base":115,"@antv/g-math/lib/cubic":170,"@antv/g-math/lib/quadratic":174,"gl-matrix/mat3":886,"gl-matrix/vec3":891,tslib:894}],155:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isSamePoint=i.mergeRegion=i.intersectRect=i.inBox=i.distance=i.getPixelRatio=void 0,i.getPixelRatio=function(){return window?window.devicePixelRatio:1},i.distance=function(t,e,i,n){var r=t-i,a=e-n;return Math.sqrt(r*r+a*a)},i.inBox=function(t,e,i,n,r,a){return r>=t&&r<=t+i&&a>=e&&a<=e+n},i.intersectRect=function(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)},i.mergeRegion=function(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},i.isSamePoint=function(t,e){return t[0]===e[0]&&t[1]===e[1]};var n=t("@antv/util/lib/is-nil");Object.defineProperty(i,"isNil",{enumerable:!0,get:function(){return n.default}});var r=t("@antv/util/lib/is-string");Object.defineProperty(i,"isString",{enumerable:!0,get:function(){return r.default}});var a=t("@antv/util/lib/is-function");Object.defineProperty(i,"isFunction",{enumerable:!0,get:function(){return a.default}});var o=t("@antv/util/lib/is-array");Object.defineProperty(i,"isArray",{enumerable:!0,get:function(){return o.default}});var s=t("@antv/util/lib/each");Object.defineProperty(i,"each",{enumerable:!0,get:function(){return s.default}});var l=t("@antv/util/lib/to-radian");Object.defineProperty(i,"toRadian",{enumerable:!0,get:function(){return l.default}});var u=t("@antv/util/lib/mod");Object.defineProperty(i,"mod",{enumerable:!0,get:function(){return u.default}});var c=t("@antv/util/lib/is-number-equal");Object.defineProperty(i,"isNumberEqual",{enumerable:!0,get:function(){return c.default}});var p=t("@antv/util/lib/request-animation-frame");Object.defineProperty(i,"requestAnimationFrame",{enumerable:!0,get:function(){return p.default}});var h=t("@antv/util/lib/clear-animation-frame");Object.defineProperty(i,"clearAnimationFrame",{enumerable:!0,get:function(){return h.default}})},{"@antv/util/lib/clear-animation-frame":772,"@antv/util/lib/each":778,"@antv/util/lib/is-array":806,"@antv/util/lib/is-function":817,"@antv/util/lib/is-nil":821,"@antv/util/lib/is-number-equal":823,"@antv/util/lib/is-string":832,"@antv/util/lib/mod":845,"@antv/util/lib/request-animation-frame":854,"@antv/util/lib/to-radian":865}],156:[function(t,e,i){e.exports={__npminstall_done:!1,_args:[["@antv/g-canvas@0.4.14","/Users/thilina/TestProjects/icehrm/web"]],_from:"@antv/g-canvas@0.4.14",_id:"@antv/g-canvas@0.4.14",_inBundle:!1,_integrity:"sha512-BPpEbHvszEPQHhssPQrIOF2zKztiogabhiBQ/MCX3qvLUXgBRRzN6ktwS816fQPa82RYiGUmzEUDhgCXUWXAcg==",_location:"/@antv/g-canvas",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"@antv/g-canvas@0.4.14",name:"@antv/g-canvas",escapedName:"@antv%2fg-canvas",scope:"@antv",rawSpec:"0.4.14",saveSpec:null,fetchSpec:"0.4.14"},_requiredBy:["/@antv/g2","/@antv/g2plot"],_resolved:"https://registry.npmjs.org/@antv/g-canvas/-/g-canvas-0.4.14.tgz",_spec:"0.4.14",_where:"/Users/thilina/TestProjects/icehrm/web",author:{name:"https://github.com/orgs/antvis/people"},bugs:{url:"https://github.com/antvis/g/issues"},dependencies:{"@antv/g-base":"^0.4.7","@antv/g-math":"^0.1.3","@antv/path-util":"~2.0.5","@antv/util":"~2.0.0","gl-matrix":"^3.0.0"},description:"A canvas library which providing 2d",devDependencies:{"@antv/torch":"^1.0.0",less:"^3.9.0","npm-run-all":"^4.1.5",webpack:"^4.26.1","webpack-cli":"^3.1.2"},files:["package.json","esm","lib","dist","LICENSE","README.md"],gitHead:"6b4107c8cfae1b893c385758ad8e870236f73f6b",homepage:"https://github.com/antvis/g#readme",keywords:["util","antv","g"],license:"ISC",main:"lib/index.js",module:"esm/index.js",name:"@antv/g-canvas",publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/antvis/g.git"},scripts:{build:"npm run clean && run-p build:*","build:cjs":"tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib","build:esm":"tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm","build:umd":"webpack --config webpack.config.js --mode production",clean:"rm -rf esm lib dist",coverage:"npm run coverage-generator && npm run coverage-viewer","coverage-generator":"torch --coverage --compile --source-pattern src/*.js,src/**/*.js --opts tests/mocha.opts","coverage-viewer":"torch-coverage",dist:"webpack --config webpack.config.js --mode production",test:"torch --renderer --compile --opts tests/mocha.opts","test-live":"torch --compile --interactive --opts tests/mocha.opts",tsc:"tsc --noEmit",typecheck:"tsc --noEmit"},types:"lib/index.d.ts",unpkg:"dist/g.min.js",version:"0.4.14"}},{}],157:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./wheel");i.Wheel=n.Wheel},{"./wheel":158}],158:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/event-emitter"),a=t("d3-ease"),o=t("../gm"),s=t("../utils/clock"),l=a.easeCubicIn,u=function(t){function e(e){var i=t.call(this)||this;return i.rafMs=0,i.onPan=function(t){var e=t.deltaX,n=t.deltaY,r=i.getWrapperEvent(t,e,n);i.emit("wheel",r)},i.onSwipe=function(t){var e=t.speedX,n=t.speedY;i.rafMs=s.clock.now(),i.ms=i.rafMs,0===e&&0===n||i.rafInertia(t)},i.element=e,i.gm=new o.GM(e,{gestures:["Pan","Swipe"]}),i.gm.on("swipe",i.onSwipe),i.gm.on("pan",i.onPan),i}return n.__extends(e,t),e.prototype.destroy=function(){window.cancelAnimationFrame(this.raf),this.gm.destroy(),this.off()},e.prototype.rafInertia=function(t){var e=this,i=t.speedX,n=t.speedY;this.raf=window.requestAnimationFrame((function(){var r=s.clock.now(),a=(r-e.ms)/800;if(a<1){a=l(1-a);var o=r-e.rafMs,u=i*a*o,c=n*a*o,p=e.getWrapperEvent(t,u,c);e.emit("wheel",p),e.rafMs=r,e.rafInertia(t)}}))},e.prototype.getWrapperEvent=function(t,e,i){return n.__assign(n.__assign({},t),{deltaX:-e,deltaY:-i})},e}(r.default);i.Wheel=u},{"../gm":165,"../utils/clock":167,"@antv/event-emitter":94,"d3-ease":876,tslib:894}],159:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){function t(t){this.EVENT="gesture",this.gm=t}return t.prototype.do=function(t){switch(t.type){case"touchstart":this.onTouchStart(t);break;case"touchmove":this.onTouchMove(t);break;case"touchend":this.onTouchEnd(t);break;case"touchcancel":this.onTouchCancel(t);break;default:return}},t.prototype.emit=function(t){this.gm.emit(this.EVENT,t)},t}();i.Gesture=n},{}],160:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./gesture");i.Gesture=n.Gesture;var r=t("./pan"),a=t("./press"),o=t("./swipe"),s=t("./tap"),l={Pan:r.Pan,Press:a.Press,Swipe:o.Swipe,Tap:s.Tap};i.getGesture=function(t){return l[t]}},{"./gesture":159,"./pan":161,"./press":162,"./swipe":163,"./tap":164}],161:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.EVENT="pan",e}return n.__extends(e,t),e.prototype.onTouchCancel=function(t){},e.prototype.onTouchEnd=function(t){},e.prototype.onTouchMove=function(t){var e=t.x,i=t.y,n=e-this.preX,r=i-this.preY;this.preX=e,this.preY=i,this.emit({x:e,y:i,deltaX:n,deltaY:r,event:t})},e.prototype.onTouchStart=function(t){var e=t.x,i=t.y;this.preX=e,this.preY=i},e}(t("./gesture").Gesture);i.Pan=r},{"./gesture":159,tslib:894}],162:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../utils/clock"),a=t("./gesture"),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.EVENT="press",e}return n.__extends(e,t),e.prototype.onTouchCancel=function(t){this.clearTimeout()},e.prototype.onTouchEnd=function(t){this.clearTimeout()},e.prototype.onTouchMove=function(t){var e=t.x,i=t.y;(e-this.touchStartX>10||i-this.touchStartY>10)&&this.clearTimeout()},e.prototype.onTouchStart=function(t){var e=this;this.clearTimeout();var i=t.x,n=t.y;this.touchStartTime=r.clock.now(),this.touchStartX=i,this.touchStartY=n,this.pressTimeout=window.setTimeout((function(){e.emit({x:i,y:n,event:t})}),300)},e.prototype.clearTimeout=function(){window.clearTimeout(this.pressTimeout)},e}(a.Gesture);i.Press=o},{"../utils/clock":167,"./gesture":159,tslib:894}],163:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../utils/clock"),a=t("./gesture"),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.EVENT="swipe",e.latestMoveTime=0,e.ms=0,e.speedX=0,e.speedY=0,e.preX=0,e.preY=0,e}return n.__extends(e,t),e.prototype.onTouchCancel=function(t){},e.prototype.onTouchEnd=function(t){var e=this.speedX,i=this.speedY;if(r.clock.now()-this.latestMoveTime<100){var n=t.x,a=t.y;this.emit({x:n,y:a,speedX:e,speedY:i,event:t})}},e.prototype.onTouchMove=function(t){var e=t.x,i=t.y,n=r.clock.now(),a=e-this.preX,o=i-this.preY,s=n-this.ms;this.speedX=a/s,this.speedY=o/s,this.latestMoveTime=n},e.prototype.onTouchStart=function(t){var e=t.x,i=t.y;this.speedX=this.speedY=0,this.preX=e,this.preY=i,this.ms=r.clock.now()},e}(a.Gesture);i.Swipe=o},{"../utils/clock":167,"./gesture":159,tslib:894}],164:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../utils/clock"),a=t("./gesture"),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.EVENT="tap",e}return n.__extends(e,t),e.prototype.onTouchCancel=function(t){},e.prototype.onTouchEnd=function(t){var e=t.x,i=t.y;e-this.touchStartX<2&&i-this.touchStartY<2&&r.clock.now()-this.touchStartTime<300&&this.emit({x:e,y:i,event:t})},e.prototype.onTouchMove=function(t){},e.prototype.onTouchStart=function(t){var e=t.x,i=t.y;this.touchStartTime=r.clock.now(),this.touchStartX=e,this.touchStartY=i},e}(a.Gesture);i.Tap=o},{"../utils/clock":167,"./gesture":159,tslib:894}],165:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/event-emitter"),a=t("./gestures"),o=function(t){function e(e,i){void 0===i&&(i={});var n=t.call(this)||this;return n.onTouchStart=function(t){n.preventEvent(t),n.element.on("touchmove",n.onTouchMove),n.element.on("touchend",n.onTouchEnd),n.element.on("touchcancel",n.onTouchCancel),n.emit("touchdown",t),n.doGestures(t)},n.onTouchMove=function(t){n.preventEvent(t),n.emit("touchmove",t),n.doGestures(t)},n.onTouchEnd=function(t){n.preventEvent(t),n.emit("touchend",t),n.element.off("touchmove",n.onTouchMove),n.element.off("touchend",n.onTouchEnd),n.element.off("touchcancel",n.onTouchCancel),n.doGestures(t)},n.onTouchCancel=function(t){n.preventEvent(t),n.emit("touchcancel",t),n.element.off("touchmove",n.onTouchMove),n.element.off("touchend",n.onTouchEnd),n.element.off("touchcancel",n.onTouchCancel),n.doGestures(t)},n.element=e,n.options=i,n.initialGestures(),n.bindTouchStart(),n}return n.__extends(e,t),e.prototype.destroy=function(){this.element.off("touchstart",this.onTouchStart),this.off()},e.prototype.initialGestures=function(){var t=this,e=this.options.gestures||["Pan","Press","Swipe","Tap"];this.gestures=e.map((function(e){return new(a.getGesture(e))(t)}))},e.prototype.bindTouchStart=function(){this.element.on("touchstart",this.onTouchStart)},e.prototype.preventEvent=function(t){var e=t.type;(this.options.prevents||[]).includes(e)&&t.preventDefault()},e.prototype.doGestures=function(t){this.gestures.forEach((function(e){e.do(t)}))},e}(r.default);i.GM=o},{"./gestures":160,"@antv/event-emitter":94,tslib:894}],166:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./gm");i.GM=n.GM;var r=t("./event");i.Wheel=r.Wheel},{"./event":157,"./gm":165}],167:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.clock="object"==typeof performance&&performance.now?performance:Date},{}],168:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./util"),r=t("./ellipse");function a(t,e,i,n,r,a){return i*Math.cos(r)*Math.cos(a)-n*Math.sin(r)*Math.sin(a)+t}function o(t,e,i,n,r,a){return i*Math.sin(r)*Math.cos(a)+n*Math.cos(r)*Math.sin(a)+e}function s(t,e,i){return{x:t*Math.cos(i),y:e*Math.sin(i)}}function l(t,e,i){var n=Math.cos(i),r=Math.sin(i);return[t*n-e*r,t*r+e*n]}i.default={box:function(t,e,i,n,r,s,l){for(var u=function(t,e,i){return Math.atan(-e/t*Math.tan(i))}(i,n,r),c=1/0,p=-1/0,h=[s,l],f=2*-Math.PI;f<=2*Math.PI;f+=Math.PI){var d=u+f;s<l?s<d&&d<l&&h.push(d):l<d&&d<s&&h.push(d)}for(f=0;f<h.length;f++){var g=a(t,0,i,n,r,h[f]);g<c&&(c=g),g>p&&(p=g)}var v=function(t,e,i){return Math.atan(e/(t*Math.tan(i)))}(i,n,r),y=1/0,m=-1/0,b=[s,l];for(f=2*-Math.PI;f<=2*Math.PI;f+=Math.PI){var x=v+f;s<l?s<x&&x<l&&b.push(x):l<x&&x<s&&b.push(x)}for(f=0;f<b.length;f++){var _=o(0,e,i,n,r,b[f]);_<y&&(y=_),_>m&&(m=_)}return{x:c,y:y,width:p-c,height:m-y}},length:function(t,e,i,n,r,a,o){},nearestPoint:function(t,e,i,n,a,o,u,c,p){var h=l(c-t,p-e,-a),f=h[0],d=h[1],g=r.default.nearestPoint(0,0,i,n,f,d),v=function(t,e,i,n){return(Math.atan2(n*t,i*e)+2*Math.PI)%(2*Math.PI)}(i,n,g.x,g.y);v<o?g=s(i,n,o):v>u&&(g=s(i,n,u));var y=l(g.x,g.y,a);return{x:y[0]+t,y:y[1]+e}},pointDistance:function(t,e,i,r,a,o,s,l,u){var c=this.nearestPoint(t,e,i,r,l,u);return n.distance(c.x,c.y,l,u)},pointAt:function(t,e,i,n,r,s,l,u){var c=(l-s)*u+s;return{x:a(t,0,i,n,r,c),y:o(0,e,i,n,r,c)}},tangentAngle:function(t,e,i,r,a,o,s,l){var u=(s-o)*l+o,c=function(t,e,i,n,r,a,o,s){return-1*i*Math.cos(r)*Math.sin(s)-n*Math.sin(r)*Math.cos(s)}(0,0,i,r,a,0,0,u),p=function(t,e,i,n,r,a,o,s){return-1*i*Math.sin(r)*Math.sin(s)+n*Math.cos(r)*Math.cos(s)}(0,0,i,r,a,0,0,u);return n.piMod(Math.atan2(p,c))}}},{"./ellipse":171,"./util":176}],169:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.snapLength=i.nearestPoint=void 0;var n=t("./util");i.nearestPoint=function(t,e,i,r,a,o){var s,l=1/0,u=[i,r],c=20;o&&o>200&&(c=o/10);for(var p=1/c,h=p/10,f=0;f<=c;f++){var d=f*p,g=[a.apply(null,t.concat([d])),a.apply(null,e.concat([d]))];(b=n.distance(u[0],u[1],g[0],g[1]))<l&&(s=d,l=b)}if(0===s)return{x:t[0],y:e[0]};if(1===s){var v=t.length;return{x:t[v-1],y:e[v-1]}}for(l=1/0,f=0;f<32&&!(h<1e-4);f++){var y=s-h,m=s+h,b=(g=[a.apply(null,t.concat([y])),a.apply(null,e.concat([y]))],n.distance(u[0],u[1],g[0],g[1]));if(y>=0&&b<l)s=y,l=b;else{var x=[a.apply(null,t.concat([m])),a.apply(null,e.concat([m]))],_=n.distance(u[0],u[1],x[0],x[1]);m<=1&&_<l?(s=m,l=_):h*=.5}}return{x:a.apply(null,t.concat([s])),y:a.apply(null,e.concat([s]))}},i.snapLength=function(t,e){for(var i=0,r=t.length,a=0;a<r;a++){var o=t[a],s=e[a],l=t[(a+1)%r],u=e[(a+1)%r];i+=n.distance(o,s,l,u)}return i/2}},{"./util":176}],170:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./util"),r=t("./line"),a=t("./bezier");function o(t,e,i,n,r){var a=1-r;return a*a*a*t+3*e*r*a*a+3*i*r*r*a+n*r*r*r}function s(t,e,i,n,r){var a=1-r;return 3*(a*a*(e-t)+2*a*r*(i-e)+r*r*(n-i))}function l(t,e,i,r){var a,o,s,l=-3*t+9*e-9*i+3*r,u=6*t-12*e+6*i,c=3*e-3*t,p=[];if(n.isNumberEqual(l,0))n.isNumberEqual(u,0)||(a=-c/u)>=0&&a<=1&&p.push(a);else{var h=u*u-4*l*c;n.isNumberEqual(h,0)?p.push(-u/(2*l)):h>0&&(o=(-u-(s=Math.sqrt(h)))/(2*l),(a=(-u+s)/(2*l))>=0&&a<=1&&p.push(a),o>=0&&o<=1&&p.push(o))}return p}function u(t,e,i,n,a,s,l,u,c){var p=o(t,i,a,l,c),h=o(e,n,s,u,c),f=r.default.pointAt(t,e,i,n,c),d=r.default.pointAt(i,n,a,s,c),g=r.default.pointAt(a,s,l,u,c),v=r.default.pointAt(f.x,f.y,d.x,d.y,c),y=r.default.pointAt(d.x,d.y,g.x,g.y,c);return[[t,e,f.x,f.y,v.x,v.y,p,h],[p,h,y.x,y.y,g.x,g.y,l,u]]}i.default={extrema:l,box:function(t,e,i,r,a,s,u,c){for(var p=[t,u],h=[e,c],f=l(t,i,a,u),d=l(e,r,s,c),g=0;g<f.length;g++)p.push(o(t,i,a,u,f[g]));for(g=0;g<d.length;g++)h.push(o(e,r,s,c,d[g]));return n.getBBoxByArray(p,h)},length:function(t,e,i,n,r,o,s,l){return function t(e,i,n,r,o,s,l,c,p){if(0===p)return a.snapLength([e,n,o,l],[i,r,s,c]);var h=u(e,i,n,r,o,s,l,c,.5),f=h[0],d=h[1];return f.push(p-1),d.push(p-1),t.apply(null,f)+t.apply(null,d)}(t,e,i,n,r,o,s,l,3)},nearestPoint:function(t,e,i,n,r,s,l,u,c,p,h){return a.nearestPoint([t,i,r,l],[e,n,s,u],c,p,o,h)},pointDistance:function(t,e,i,r,a,o,s,l,u,c,p){var h=this.nearestPoint(t,e,i,r,a,o,s,l,u,c,p);return n.distance(h.x,h.y,u,c)},interpolationAt:o,pointAt:function(t,e,i,n,r,a,s,l,u){return{x:o(t,i,r,s,u),y:o(e,n,a,l,u)}},divide:function(t,e,i,n,r,a,o,s,l){return u(t,e,i,n,r,a,o,s,l)},tangentAngle:function(t,e,i,r,a,o,l,u,c){var p=s(t,i,a,l,c),h=s(e,r,o,u,c);return n.piMod(Math.atan2(h,p))}}},{"./bezier":169,"./line":172,"./util":176}],171:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./util");function r(t,e){var i=Math.abs(t);return e>0?i:-1*i}i.default={box:function(t,e,i,n){return{x:t-i,y:e-n,width:2*i,height:2*n}},length:function(t,e,i,n){return Math.PI*(3*(i+n)-Math.sqrt((3*i+n)*(i+3*n)))},nearestPoint:function(t,e,i,n,a,o){var s=i,l=n;if(0===s||0===l)return{x:t,y:e};for(var u,c,p=a-t,h=o-e,f=Math.abs(p),d=Math.abs(h),g=s*s,v=l*l,y=Math.PI/4,m=0;m<4;m++){u=s*Math.cos(y),c=l*Math.sin(y);var b=(g-v)*Math.pow(Math.cos(y),3)/s,x=(v-g)*Math.pow(Math.sin(y),3)/l,_=u-b,M=c-x,w=f-b,S=d-x,C=Math.hypot(M,_),P=Math.hypot(S,w);y+=C*Math.asin((_*S-M*w)/(C*P))/Math.sqrt(g+v-u*u-c*c),y=Math.min(Math.PI/2,Math.max(0,y))}return{x:t+r(u,p),y:e+r(c,h)}},pointDistance:function(t,e,i,r,a,o){var s=this.nearestPoint(t,e,i,r,a,o);return n.distance(s.x,s.y,a,o)},pointAt:function(t,e,i,n,r){var a=2*Math.PI*r;return{x:t+i*Math.cos(a),y:e+n*Math.sin(a)}},tangentAngle:function(t,e,i,r,a){var o=2*Math.PI*a,s=Math.atan2(r*Math.cos(o),-i*Math.sin(o));return n.piMod(s)}}},{"./util":176}],172:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./util"),r=t("gl-matrix/vec2");i.default={box:function(t,e,i,r){return n.getBBoxByArray([t,i],[e,r])},length:function(t,e,i,r){return n.distance(t,e,i,r)},pointAt:function(t,e,i,n,r){return{x:(1-r)*t+r*i,y:(1-r)*e+r*n}},pointDistance:function(t,e,i,r,a,o){var s=(i-t)*(a-t)+(r-e)*(o-e);return s<0?n.distance(t,e,a,o):s>(i-t)*(i-t)+(r-e)*(r-e)?n.distance(i,r,a,o):this.pointToLine(t,e,i,r,a,o)},pointToLine:function(t,e,i,n,a,o){var s=[i-t,n-e];if(r.exactEquals(s,[0,0]))return Math.sqrt((a-t)*(a-t)+(o-e)*(o-e));var l=[-s[1],s[0]];r.normalize(l,l);var u=[a-t,o-e];return Math.abs(r.dot(u,l))},tangentAngle:function(t,e,i,n){return Math.atan2(n-e,i-t)}}},{"./util":176,"gl-matrix/vec2":890}],173:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./segments"),r=t("./util");i.default={box:function(t){for(var e=[],i=[],n=0;n<t.length;n++){var a=t[n];e.push(a[0]),i.push(a[1])}return r.getBBoxByArray(e,i)},length:function(t){return n.lengthOfSegment(t)},pointAt:function(t,e){return n.pointAtSegments(t,e)},pointDistance:function(t,e,i){return n.distanceAtSegment(t,e,i)},tangentAngle:function(t,e){return n.angleAtSegments(t,e)}}},{"./segments":175,"./util":176}],174:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./line"),r=t("./util"),a=t("./bezier");function o(t,e,i,n){var r=1-n;return r*r*t+2*n*r*e+n*n*i}function s(t,e,i){var n=t+i-2*e;if(r.isNumberEqual(n,0))return[.5];var a=(t-e)/n;return a<=1&&a>=0?[a]:[]}function l(t,e,i,n){return 2*(1-n)*(e-t)+2*n*(i-e)}function u(t,e,i,r,a,s,l){var u=o(t,i,a,l),c=o(e,r,s,l),p=n.default.pointAt(t,e,i,r,l),h=n.default.pointAt(i,r,a,s,l);return[[t,e,p.x,p.y,u,c],[u,c,h.x,h.y,a,s]]}i.default={box:function(t,e,i,n,a,l){var u=s(t,i,a)[0],c=s(e,n,l)[0],p=[t,a],h=[e,l];return void 0!==u&&p.push(o(t,i,a,u)),void 0!==c&&h.push(o(e,n,l,c)),r.getBBoxByArray(p,h)},length:function(t,e,i,n,a,o){return function t(e,i,n,a,o,s,l){if(0===l)return(r.distance(e,i,n,a)+r.distance(n,a,o,s)+r.distance(e,i,o,s))/2;var c=u(e,i,n,a,o,s,.5),p=c[0],h=c[1];return p.push(l-1),h.push(l-1),t.apply(null,p)+t.apply(null,h)}(t,e,i,n,a,o,3)},nearestPoint:function(t,e,i,n,r,s,l,u){return a.nearestPoint([t,i,r],[e,n,s],l,u,o)},pointDistance:function(t,e,i,n,a,o,s,l){var u=this.nearestPoint(t,e,i,n,a,o,s,l);return r.distance(u.x,u.y,s,l)},interpolationAt:o,pointAt:function(t,e,i,n,r,a,s){return{x:o(t,i,r,s),y:o(e,n,a,s)}},divide:function(t,e,i,n,r,a,o){return u(t,e,i,n,r,a,o)},tangentAngle:function(t,e,i,n,a,o,s){var u=l(t,i,a,s),c=l(e,n,o,s),p=Math.atan2(c,u);return r.piMod(p)}}},{"./bezier":169,"./line":172,"./util":176}],175:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.distanceAtSegment=i.angleAtSegments=i.pointAtSegments=i.lengthOfSegment=void 0;var n=t("./line"),r=t("./util");function a(t){for(var e=0,i=[],n=0;n<t.length-1;n++){var a=t[n],o=t[n+1],s=r.distance(a[0],a[1],o[0],o[1]),l={from:a,to:o,length:s};i.push(l),e+=s}return{segments:i,totalLength:e}}i.lengthOfSegment=function(t){if(t.length<2)return 0;for(var e=0,i=0;i<t.length-1;i++){var n=t[i],a=t[i+1];e+=r.distance(n[0],n[1],a[0],a[1])}return e},i.pointAtSegments=function(t,e){if(e>1||e<0||t.length<2)return null;var i=a(t),r=i.segments,o=i.totalLength;if(0===o)return{x:t[0][0],y:t[0][1]};for(var s=0,l=null,u=0;u<r.length;u++){var c=r[u],p=c.from,h=c.to,f=c.length/o;if(e>=s&&e<=s+f){var d=(e-s)/f;l=n.default.pointAt(p[0],p[1],h[0],h[1],d);break}s+=f}return l},i.angleAtSegments=function(t,e){if(e>1||e<0||t.length<2)return 0;for(var i=a(t),n=i.segments,r=i.totalLength,o=0,s=0,l=0;l<n.length;l++){var u=n[l],c=u.from,p=u.to,h=u.length/r;if(e>=o&&e<=o+h){s=Math.atan2(p[1]-c[1],p[0]-c[0]);break}o+=h}return s},i.distanceAtSegment=function(t,e,i){for(var r=1/0,a=0;a<t.length-1;a++){var o=t[a],s=t[a+1],l=n.default.pointDistance(o[0],o[1],s[0],s[1],e,i);l<r&&(r=l)}return r}},{"./line":172,"./util":176}],176:[function(t,e,i){"use strict";function n(t){return Math.min.apply(null,t)}function r(t){return Math.max.apply(null,t)}Object.defineProperty(i,"__esModule",{value:!0}),i.piMod=i.getBBoxRange=i.getBBoxByArray=i.isNumberEqual=i.distance=void 0,i.distance=function(t,e,i,n){var r=t-i,a=e-n;return Math.sqrt(r*r+a*a)},i.isNumberEqual=function(t,e){return Math.abs(t-e)<.001},i.getBBoxByArray=function(t,e){var i=n(t),a=n(e);return{x:i,y:a,width:r(t)-i,height:r(e)-a}},i.getBBoxRange=function(t,e,i,a){return{minX:n([t,i]),maxX:r([t,i]),minY:n([e,a]),maxY:r([e,a])}},i.piMod=function(t){return(t+2*Math.PI)%(2*Math.PI)}},{}],177:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/g-base"),a=t("./constant"),o=t("./util/draw"),s=t("./util/svg"),l=t("./util/dom"),u=t("./shape"),c=t("./group"),p=t("./defs"),h=function(t){function e(e){return t.call(this,n.__assign(n.__assign({},e),{autoDraw:!0,renderer:"svg"}))||this}return n.__extends(e,t),e.prototype.getShapeBase=function(){return u},e.prototype.getGroupBase=function(){return c.default},e.prototype.getShape=function(t,e,i){var n=i.target||i.srcElement;if(!a.SHAPE_TO_TAGS[n.tagName]){for(var r=n.parentNode;r&&!a.SHAPE_TO_TAGS[r.tagName];)r=r.parentNode;n=r}return this.find((function(t){return t.get("el")===n}))},e.prototype.createDom=function(){var t=l.createSVGElement("svg"),e=new p.default(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"),i=this.get("el");if("sort"===t){var n=this.get("children");n&&n.length&&l.sortDom(this,(function(t,e){return n.indexOf(t)-n.indexOf(e)?1:0}))}else if("clear"===t){if(i){i.innerHTML="";var r=e.el;r.innerHTML="",i.appendChild(r)}}else"matrix"===t?s.setTransform(this):"clip"===t?s.setClip(this,e):"changeSize"===t&&(i.setAttribute("width",""+this.get("width")),i.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();s.setClip(this,t),e.length&&o.drawChildren(t,e)},e}(r.AbstractCanvas);i.default=h},{"./constant":178,"./defs":182,"./group":185,"./shape":192,"./util/dom":201,"./util/draw":202,"./util/svg":204,"@antv/g-base":115,tslib:894}],178:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.SHAPE_TO_TAGS={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},i.SVG_ATTR_MAP={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"},i.EVENTS=["click","mousedown","mouseup","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","wheel"]},{}],179:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("../util/dom"),a=function(){function t(t,e){this.cfg={};var i=r.createSVGElement("marker"),a=n.uniqueId("marker_");i.setAttribute("id",a);var o=r.createSVGElement("path");o.setAttribute("stroke",t.stroke||"none"),o.setAttribute("fill",t.fill||"none"),i.appendChild(o),i.setAttribute("overflow","visible"),i.setAttribute("orient","auto-start-reverse"),this.el=i,this.child=o,this.id=a;var s=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===s?this._setDefaultPath(e,o):(this.cfg=s,this._setMarker(t.lineWidth,o)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var i=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),i.setAttribute("refX",""+10*Math.cos(Math.PI/6)),i.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var i=this.el,r=this.cfg.path,a=this.cfg.d;n.isArray(r)&&(r=r.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",r),i.appendChild(e),a&&i.setAttribute("refX",""+a/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();i.default=a},{"../util/dom":201,"@antv/util":803}],180:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("../util/dom"),a=function(){function t(t){this.type="clip",this.cfg={};var e=r.createSVGElement("clipPath");this.el=e,this.id=n.uniqueId("clip_"),e.id=this.id;var i=t.cfg.el;return e.appendChild(i),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();i.default=a},{"../util/dom":201,"@antv/util":803}],181:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("../util/dom"),a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function l(t){var e=t.match(s);if(!e)return"";var i="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),n.each(e,(function(t){t=t.split(":"),i+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),i}var u=function(){function t(t){this.cfg={};var e=null,i=n.uniqueId("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var i,r,o=a.exec(t),s=n.mod(n.toRadian(parseFloat(o[1])),2*Math.PI),u=o[2];s>=0&&s<.5*Math.PI?(i={x:0,y:0},r={x:1,y:1}):.5*Math.PI<=s&&s<Math.PI?(i={x:1,y:0},r={x:0,y:1}):Math.PI<=s&&s<1.5*Math.PI?(i={x:1,y:1},r={x:0,y:0}):(i={x:0,y:1},r={x:1,y:0});var c=Math.tan(s),p=c*c,h=(r.x-i.x+c*(r.y-i.y))/(p+1)+i.x,f=c*(r.x-i.x+c*(r.y-i.y))/(p+1)+i.y;e.setAttribute("x1",i.x),e.setAttribute("y1",i.y),e.setAttribute("x2",h),e.setAttribute("y2",f),e.innerHTML=l(u)}(t,e=r.createSVGElement("linearGradient")):function(t,e){var i=o.exec(t),n=parseFloat(i[1]),r=parseFloat(i[2]),a=parseFloat(i[3]),s=i[4];e.setAttribute("cx",n),e.setAttribute("cy",r),e.setAttribute("r",a),e.innerHTML=l(s)}(t,e=r.createSVGElement("radialGradient")),e.setAttribute("id",i),this.el=e,this.id=i,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}();i.default=u},{"../util/dom":201,"@antv/util":803}],182:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("./gradient"),a=t("./shadow"),o=t("./arrow"),s=t("./clip"),l=t("./pattern"),u=t("../util/dom"),c=function(){function t(t){var e=u.createSVGElement("defs"),i=n.uniqueId("defs_");e.id=i,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var i=this.children,n=null,r=0;r<i.length;r++)if(i[r].match(t,e)){n=i[r].id;break}return n},t.prototype.findById=function(t){for(var e=this.children,i=null,n=0;n<e.length;n++)if(e[n].id===t){i=e[n];break}return i},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var i=t.stroke||t.strokeStyle;if(this.defaultArrow[i])return this.defaultArrow[i].id;var n=new o.default(t,e);return this.defaultArrow[i]=n,this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addGradient=function(t){var e=new r.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var i=new o.default(t,e);return this.el.appendChild(i.el),this.add(i),i.id},t.prototype.addShadow=function(t){var e=new a.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new l.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new s.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t}();i.default=c},{"../util/dom":201,"./arrow":179,"./clip":180,"./gradient":181,"./pattern":183,"./shadow":184,"@antv/util":803}],183:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("../util/dom"),a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,o=function(){function t(t){this.cfg={};var e=r.createSVGElement("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var i=r.createSVGElement("image");e.appendChild(i);var o=n.uniqueId("pattern_");e.id=o,this.el=e,this.id=o,this.cfg=t;var s=a.exec(t)[2];i.setAttribute("href",s);var l=new Image;function u(){e.setAttribute("width",""+l.width),e.setAttribute("height",""+l.height)}return s.match(/^data:/i)||(l.crossOrigin="Anonymous"),l.src=s,l.complete?u():(l.onload=u,l.src=l.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();i.default=o},{"../util/dom":201,"@antv/util":803}],184:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("../util/dom"),a={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},o={x:"-40%",y:"-40%",width:"200%",height:"200%"},s=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=r.createSVGElement("filter");return n.each(o,(function(t,i){e.setAttribute(i,t)})),this.el=e,this.id=n.uniqueId("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 i=!0,r=this.cfg;return n.each(Object.keys(r),(function(t){if(r[t]!==e[t])return i=!1,!1})),i},t.prototype.update=function(t,e){var i=this.cfg;return i[a[t]]=e,this._parseShadow(i,this.el),this},t.prototype._parseShadow=function(t,e){var i='<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=i},t}();i.default=s},{"../util/dom":201,"@antv/util":803}],185:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/g-base"),a=t("@antv/util"),o=t("./shape"),s=t("./util/draw"),l=t("./util/svg"),u=t("./constant"),c=t("./util/dom"),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=c.createSVGElement("g");this.set("el",t);var e=this.getParent();if(e){var i=e.get("el");i||(i=e.createDom(),e.set("el",i)),i.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var i=this.get("canvas");if(i&&i.get("autoDraw")){var n=i.get("context");this.createPath(n,e)}},e.prototype.onCanvasChange=function(t){s.refreshElement(this,t)},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),i=this.get("el");this.get("destroyed")?i&&i.parentNode.removeChild(i):(i||this.createDom(),l.setClip(this,t),this.createPath(t),e.length&&s.drawChildren(t,e))},e.prototype.createPath=function(t,e){var i=this.attr(),n=this.get("el");a.each(e||i,(function(t,e){u.SVG_ATTR_MAP[e]&&n.setAttribute(u.SVG_ATTR_MAP[e],t)})),l.setTransform(this)},e}(r.AbstractGroup);i.default=p},{"./constant":178,"./shape":192,"./util/dom":201,"./util/draw":202,"./util/svg":204,"@antv/g-base":115,"@antv/util":803,tslib:894}],186:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./shape");i.Shape=n;var r=t("../package.json");i.version=r.version;var a=t("@antv/g-base");i.Event=a.Event;var o=t("./canvas");i.Canvas=o.default;var s=t("./group");i.Group=s.default},{"../package.json":206,"./canvas":177,"./group":185,"./shape":192,"@antv/g-base":115}],187:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/g-base"),a=t("../util/svg"),o=t("../util/dom"),s=t("../util/draw"),l=t("../constant"),u=t("./index"),c=t("../group"),p=t("@antv/g-base/lib/bbox/index"),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 n.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var i=this.get("canvas");if(i&&i.get("autoDraw")){var n=i.get("context");this.draw(n,e)}},e.prototype.getShapeBase=function(){return u},e.prototype.getGroupBase=function(){return c.default},e.prototype.onCanvasChange=function(t){s.refreshElement(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var i=p.getBBoxMethod(this.get("type"));i&&(e=i(this))}if(e){var n=e.x,r=e.y,a=e.width,o=e.height,s=this.getHitLineWidth(),l=s/2,u=n-l,c=r-l;return{x:u,y:c,minX:u,minY:c,maxX:n+a+l,maxY:r+o+l,width:a+s,height:o+s}}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,i=t.fillStyle;return(e||i||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,i=t.strokeStyle;return(e||i)&&this.canStroke},e.prototype.draw=function(t,e){var i=this.get("el");this.get("destroyed")?i&&i.parentNode.removeChild(i):(i||o.createDom(this),a.setClip(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 i=e||this.attr(),n=i.fill,r=i.fillStyle,a=i.stroke,o=i.strokeStyle,s=i.fillOpacity,u=i.strokeOpacity,c=i.lineWidth,p=this.get("el");this.canFill&&(e?"fill"in i?this._setColor(t,"fill",n):"fillStyle"in i&&this._setColor(t,"fill",r):this._setColor(t,"fill",n||r),s&&p.setAttribute(l.SVG_ATTR_MAP.fillOpacity,s)),this.canStroke&&c>0&&(e?"stroke"in i?this._setColor(t,"stroke",a):"strokeStyle"in i&&this._setColor(t,"stroke",o):this._setColor(t,"stroke",a||o),u&&p.setAttribute(l.SVG_ATTR_MAP.strokeOpacity,u),c&&p.setAttribute(l.SVG_ATTR_MAP.lineWidth,c))},e.prototype._setColor=function(t,e,i){var n=this.get("el");if(i)if(i=i.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(i))(r=t.find("gradient",i))||(r=t.addGradient(i)),n.setAttribute(l.SVG_ATTR_MAP[e],"url(#"+r+")");else if(/^[p,P]{1}[\s]*\(/.test(i)){var r;(r=t.find("pattern",i))||(r=t.addPattern(i)),n.setAttribute(l.SVG_ATTR_MAP[e],"url(#"+r+")")}else n.setAttribute(l.SVG_ATTR_MAP[e],i);else n.setAttribute(l.SVG_ATTR_MAP[e],"none")},e.prototype.shadow=function(t,e){var i=this.attr(),n=e||i,r=n.shadowOffsetX,o=n.shadowOffsetY,s=n.shadowBlur,l=n.shadowColor;(r||o||s||l)&&a.setShadow(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&a.setTransform(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var i=this.get("el"),n=this.get("canvas").get("el").getBoundingClientRect(),r=t+n.left,a=e+n.top,o=document.elementFromPoint(r,a);return!(!o||!o.isEqualNode(i))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,i=t.lineAppendWidth;return this.isStroke()?e+i:0},e}(r.AbstractShape);i.default=h},{"../constant":178,"../group":185,"../util/dom":201,"../util/draw":202,"../util/svg":204,"./index":192,"@antv/g-base":115,"@antv/g-base/lib/bbox/index":104,tslib:894}],188:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../constant"),o=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 n.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var i=this.attr(),n=this.get("el");r.each(e||i,(function(t,e){"x"===e||"y"===e?n.setAttribute("c"+e,t):a.SVG_ATTR_MAP[e]&&n.setAttribute(a.SVG_ATTR_MAP[e],t)}))},e}(t("./base").default);i.default=o},{"../constant":178,"./base":187,"@antv/util":803,tslib:894}],189:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../constant"),o=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 n.__extends(e,t),e.prototype.createPath=function(t,e){var i=this.attr(),n=this.get("el");r.each(e||i,(function(t,e){a.SVG_ATTR_MAP[e]&&n.setAttribute(a.SVG_ATTR_MAP[e],t)})),n.innerHTML=i.html},e}(t("./base").default);i.default=o},{"../constant":178,"./base":187,"@antv/util":803,tslib:894}],190:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../constant"),o=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 n.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var i=this.attr(),n=this.get("el");r.each(e||i,(function(t,e){"x"===e||"y"===e?n.setAttribute("c"+e,t):a.SVG_ATTR_MAP[e]&&n.setAttribute(a.SVG_ATTR_MAP[e],t)}))},e}(t("./base").default);i.default=o},{"../constant":178,"./base":187,"@antv/util":803,tslib:894}],191:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../constant"),o=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 n.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var i=this,n=this.attr(),o=this.get("el");r.each(e||n,(function(t,e){"img"===e?i._setImage(n.img):a.SVG_ATTR_MAP[e]&&o.setAttribute(a.SVG_ATTR_MAP[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(),i=this.get("el");if(r.isString(t))i.setAttribute("href",t);else if(t instanceof window.Image)e.width||(i.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(i.setAttribute("height",t.height),this.attr("height",t.height)),i.setAttribute("href",t.src);else if(t instanceof HTMLElement&&r.isString(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())i.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var n=document.createElement("canvas");n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.getContext("2d").putImageData(t,0,0),e.width||(i.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(i.setAttribute("height",""+t.height),this.attr("height",t.height)),i.setAttribute("href",n.toDataURL())}},e}(t("./base").default);i.default=o},{"../constant":178,"./base":187,"@antv/util":803,tslib:894}],192:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./base");i.Base=n.default;var r=t("./circle");i.Circle=r.default;var a=t("./dom");i.Dom=a.default;var o=t("./ellipse");i.Ellipse=o.default;var s=t("./image");i.Image=s.default;var l=t("./line");i.Line=l.default;var u=t("./marker");i.Marker=u.default;var c=t("./path");i.Path=c.default;var p=t("./polygon");i.Polygon=p.default;var h=t("./polyline");i.Polyline=h.default;var f=t("./rect");i.Rect=f.default;var d=t("./text");i.Text=d.default},{"./base":187,"./circle":188,"./dom":189,"./ellipse":190,"./image":191,"./line":193,"./marker":194,"./path":196,"./polygon":197,"./polyline":198,"./rect":199,"./text":200}],193:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/g-math/lib/line"),a=t("@antv/util"),o=t("../constant"),s=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 n.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var i=this.attr(),n=this.get("el");a.each(e||i,(function(e,r){if("startArrow"===r||"endArrow"===r)if(e){var s=a.isObject(e)?t.addArrow(i,o.SVG_ATTR_MAP[r]):t.getDefaultArrow(i,o.SVG_ATTR_MAP[r]);n.setAttribute(o.SVG_ATTR_MAP[r],"url(#"+s+")")}else n.removeAttribute(o.SVG_ATTR_MAP[r]);else o.SVG_ATTR_MAP[r]&&n.setAttribute(o.SVG_ATTR_MAP[r],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,i=t.y1,n=t.x2,a=t.y2;return r.default.length(e,i,n,a)},e.prototype.getPoint=function(t){var e=this.attr(),i=e.x1,n=e.y1,a=e.x2,o=e.y2;return r.default.pointAt(i,n,a,o,t)},e}(t("./base").default);i.default=s},{"../constant":178,"./base":187,"@antv/g-math/lib/line":172,"@antv/util":803,tslib:894}],194:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../base"),o=t("./symbols"),s=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 n.__extends(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return r.isArray(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),i=e.x,n=e.y,a=e.r||e.radius,s=e.symbol||"circle";return(t=r.isFunction(s)?s:o.default.get(s))?t(i,n,a):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=o.default,e}(a.default);i.default=s},{"../base":187,"./symbols":195,"@antv/util":803,tslib:894}],195:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={circle:function(t,e,i){return[["M",t,e],["m",-i,0],["a",i,i,0,1,0,2*i,0],["a",i,i,0,1,0,2*-i,0]]},square:function(t,e,i){return[["M",t-i,e-i],["L",t+i,e-i],["L",t+i,e+i],["L",t-i,e+i],["Z"]]},diamond:function(t,e,i){return[["M",t-i,e],["L",t,e-i],["L",t+i,e],["L",t,e+i],["Z"]]},triangle:function(t,e,i){var n=i*Math.sin(1/3*Math.PI);return[["M",t-i,e+n],["L",t,e-n],["L",t+i,e+n],["z"]]},triangleDown:function(t,e,i){var n=i*Math.sin(1/3*Math.PI);return[["M",t-i,e-n],["L",t+i,e-n],["L",t,e+n],["Z"]]}};i.default={get:function(t){return n[t]},register:function(t,e){n[t]=e},remove:function(t){delete n[t]},getAll:function(){return n}}},{}],196:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../constant"),o=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 n.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var i=this,n=this.attr(),o=this.get("el");r.each(e||n,(function(e,s){if("path"===s&&r.isArray(e))o.setAttribute("d",i._formatPath(e));else if("startArrow"===s||"endArrow"===s)if(e){var l=r.isObject(e)?t.addArrow(n,a.SVG_ATTR_MAP[s]):t.getDefaultArrow(n,a.SVG_ATTR_MAP[s]);o.setAttribute(a.SVG_ATTR_MAP[s],"url(#"+l+")")}else o.removeAttribute(a.SVG_ATTR_MAP[s]);else a.SVG_ATTR_MAP[s]&&o.setAttribute(a.SVG_ATTR_MAP[s],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"),i=this.getTotalLength(),n=e?e.getPointAtLength(t*i):null;return n?{x:n.x,y:n.y}:null},e}(t("./base").default);i.default=o},{"../constant":178,"./base":187,"@antv/util":803,tslib:894}],197:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../constant"),o=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 n.__extends(e,t),e.prototype.createPath=function(t,e){var i=this.attr(),n=this.get("el");r.each(e||i,(function(t,e){"points"===e&&r.isArray(t)&&t.length>=2?n.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):a.SVG_ATTR_MAP[e]&&n.setAttribute(a.SVG_ATTR_MAP[e],t)}))},e}(t("./base").default);i.default=o},{"../constant":178,"./base":187,"@antv/util":803,tslib:894}],198:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/g-math/lib/line"),a=t("@antv/g-math/lib/polyline"),o=t("@antv/util"),s=t("../constant"),l=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 n.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,i,n){t.prototype.onAttrChange.call(this,e,i,n),-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 i=this.attr(),n=this.get("el");o.each(e||i,(function(t,e){"points"===e&&o.isArray(t)&&t.length>=2?n.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):s.SVG_ATTR_MAP[e]&&n.setAttribute(s.SVG_ATTR_MAP[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return o.isNil(e)?(this.set("totalLength",a.default.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,i,n=this.attr().points,a=this.get("tCache");return a||(this._setTcache(),a=this.get("tCache")),o.each(a,(function(n,r){t>=n[0]&&t<=n[1]&&(e=(t-n[0])/(n[1]-n[0]),i=r)})),r.default.pointAt(n[i][0],n[i][1],n[i+1][0],n[i+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 i,n,a=0,s=[];o.each(t,(function(o,l){t[l+1]&&((i=[])[0]=a/e,n=r.default.length(o[0],o[1],t[l+1][0],t[l+1][1]),a+=n,i[1]=a/e,s.push(i))})),this.set("tCache",s)}}},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,i=[];return i.push([t[e-1][0],t[e-1][1]]),i.push([t[e][0],t[e][1]]),i},e}(t("./base").default);i.default=l},{"../constant":178,"./base":187,"@antv/g-math/lib/line":172,"@antv/g-math/lib/polyline":173,"@antv/util":803,tslib:894}],199:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("./base"),o=t("../constant"),s=t("../util/format"),l=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 n.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var i=this,n=this.attr(),a=this.get("el"),s=!1,l=["x","y","width","height","radius"];r.each(e||n,(function(t,e){-1===l.indexOf(e)||s?-1===l.indexOf(e)&&o.SVG_ATTR_MAP[e]&&a.setAttribute(o.SVG_ATTR_MAP[e],t):(a.setAttribute("d",i._assembleRect(n)),s=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.radius;if(!o)return"M "+e+","+i+" l "+n+",0 l 0,"+a+" l"+-n+" 0 z";var l=s.parseRadius(o);return r.isArray(o)?1===o.length?l.r1=l.r2=l.r3=l.r4=o[0]:2===o.length?(l.r1=l.r3=o[0],l.r2=l.r4=o[1]):3===o.length?(l.r1=o[0],l.r2=l.r4=o[1],l.r3=o[2]):(l.r1=o[0],l.r2=o[1],l.r3=o[2],l.r4=o[3]):l.r1=l.r2=l.r3=l.r4=o,[["M "+(e+l.r1)+","+i],["l "+(n-l.r1-l.r2)+",0"],["a "+l.r2+","+l.r2+",0,0,1,"+l.r2+","+l.r2],["l 0,"+(a-l.r2-l.r3)],["a "+l.r3+","+l.r3+",0,0,1,"+-l.r3+","+l.r3],["l "+(l.r3+l.r4-n)+",0"],["a "+l.r4+","+l.r4+",0,0,1,"+-l.r4+","+-l.r4],["l 0,"+(l.r4+l.r1-a)],["a "+l.r1+","+l.r1+",0,0,1,"+l.r1+","+-l.r1],["z"]].join(" ")},e}(a.default);i.default=l},{"../constant":178,"../util/format":203,"./base":187,"@antv/util":803,tslib:894}],200:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("detect-browser"),o=t("../util/svg"),s=t("../constant"),l=t("./base"),u={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},c={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},p={left:"left",start:"left",center:"middle",right:"end",end:"end"},h=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 n.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return n.__assign(n.__assign({},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 i=this,n=this.attr(),a=this.get("el");this._setFont(),r.each(e||n,(function(t,e){"text"===e?i._setText(""+t):"matrix"===e&&t?o.setTransform(i):s.SVG_ATTR_MAP[e]&&a.setAttribute(s.SVG_ATTR_MAP[e],t)})),a.setAttribute("paint-order","stroke"),a.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),i=e.textBaseline,n=e.textAlign,r=a.detect();r&&"firefox"===r.name?t.setAttribute("dominant-baseline",c[i]||"alphabetic"):t.setAttribute("alignment-baseline",u[i]||"baseline"),t.setAttribute("text-anchor",p[n]||"left")},e.prototype._setText=function(t){var e=this.get("el"),i=this.attr(),n=i.x,a=i.textBaseline,o=void 0===a?"bottom":a;if(t)if(~t.indexOf("\n")){var s=t.split("\n"),l=s.length-1,u="";r.each(s,(function(t,e){0===e?"alphabetic"===o?u+='<tspan x="'+n+'" dy="'+-l+'em">'+t+"</tspan>":"top"===o?u+='<tspan x="'+n+'" dy="0.9em">'+t+"</tspan>":"middle"===o?u+='<tspan x="'+n+'" dy="'+-(l-1)/2+'em">'+t+"</tspan>":"bottom"===o?u+='<tspan x="'+n+'" dy="-'+(l+.3)+'em">'+t+"</tspan>":"hanging"===o&&(u+='<tspan x="'+n+'" dy="'+(-(l-1)-.3)+'em">'+t+"</tspan>"):u+='<tspan x="'+n+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=u}else e.innerHTML=t;else e.innerHTML=""},e}(l.default);i.default=h},{"../constant":178,"../util/svg":204,"./base":187,"@antv/util":803,"detect-browser":205,tslib:894}],201:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("../constant");function a(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}i.createSVGElement=a,i.createDom=function(t){var e=r.SHAPE_TO_TAGS[t.type],i=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var n=a(e);if(t.get("id")&&(n.id=t.get("id")),t.set("el",n),t.set("attrs",{}),i){var o=i.get("el");o||(o=i.createDom(),i.set("el",o)),o.appendChild(n)}return n},i.sortDom=function(t,e){var i=t.get("el"),r=n.toArray(i.children).sort(e),a=document.createDocumentFragment();r.forEach((function(t){a.appendChild(t)})),i.appendChild(a)},i.moveTo=function(t,e){var i=t.parentNode,n=Array.from(i.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),r=n[e],a=n.indexOf(t);if(r){if(a>e)i.insertBefore(t,r);else if(a<e){var o=n[e+1];o?i.insertBefore(t,o):i.appendChild(t)}}else i.appendChild(t)}},{"../constant":178,"@antv/util":803}],202:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./svg"),r=t("./dom");i.drawChildren=function(t,e){e.forEach((function(e){e.draw(t)}))},i.refreshElement=function(t,e){var i=t.get("canvas");if(i&&i.get("autoDraw")){var a=i.get("context"),o=t.getParent(),s=o?o.getChildren():[i],l=t.get("el");if("remove"===e)if(t.get("isClipShape")){var u=l&&l.parentNode,c=u&&u.parentNode;u&&c&&c.removeChild(u)}else l&&l.parentNode&&l.parentNode.removeChild(l);else if("show"===e)l.setAttribute("visibility","visible");else if("hide"===e)l.setAttribute("visibility","hidden");else if("zIndex"===e)r.moveTo(l,s.indexOf(t));else if("sort"===e){var p=t.get("children");p&&p.length&&r.sortDom(t,(function(t,e){return p.indexOf(t)-p.indexOf(e)?1:0}))}else"clear"===e?l&&(l.innerHTML=""):"matrix"===e?n.setTransform(t):"clip"===e?n.setClip(t,a):"attr"===e||"add"===e&&t.draw(a)}}},{"./dom":201,"./svg":204}],203:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi;i.parseRadius=function(t){var e=0,i=0,r=0,a=0;return n.isArray(t)?1===t.length?e=i=r=a=t[0]:2===t.length?(e=r=t[0],i=a=t[1]):3===t.length?(e=t[0],i=a=t[1],r=t[2]):(e=t[0],i=t[1],r=t[2],a=t[3]):e=i=r=a=t,{r1:e,r2:i,r3:r,r4:a}},i.parsePath=function(t){return t=t||[],n.isArray(t)?t:n.isString(t)?(t=t.match(r),n.each(t,(function(e,i){if((e=e.match(a))[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}n.each(e,(function(t,i){isNaN(t)||(e[i]=+t)})),t[i]=e})),t):void 0}},{"@antv/util":803}],204:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./dom");i.setShadow=function(t,e){var i=t.cfg.el,n=t.attr(),r={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(r.dx||r.dy||r.blur||r.color){var a=e.find("filter",r);a||(a=e.addShadow(r)),i.setAttribute("filter","url(#"+a+")")}else i.removeAttribute("filter")},i.setTransform=function(t){var e=t.attr().matrix;if(e){for(var i=t.cfg.el,n=[],r=0;r<9;r+=3)n.push(e[r]+","+e[r+1]);-1===(n=n.join(",")).indexOf("NaN")?i.setAttribute("transform","matrix("+n+")"):console.warn("invalid matrix:",e)}},i.setClip=function(t,e){var i=t.getClip(),r=t.get("el");if(i){if(i&&!r.hasAttribute("clip-path")){n.createDom(i),i.createPath(e);var a=e.addClip(i);r.setAttribute("clip-path","url(#"+a+")")}}else r.removeAttribute("clip-path")}},{"./dom":201}],205:[function(t,e,i){(function(t){"use strict";var e=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),r=0;for(e=0;e<i;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,r++)n[r]=a[o];return n};Object.defineProperty(i,"__esModule",{value:!0});var n=function(t,e,i){this.name=t,this.version=e,this.os=i};i.BrowserInfo=n;var r=function(e){this.version=e,this.name="node",this.os=t.platform};i.NodeInfo=r;var a=function(){this.bot=!0,this.name="bot",this.version=null,this.os=null};i.BotInfo=a;var o=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["vivaldi",/Vivaldi\/([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",/Edg\/([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|$)/],["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",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],s=[["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/],["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/],["Search Bot",/(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(MSNBot)|(Ask Jeeves\/Teoma)|(ia_archiver)/]];function l(t){var i=""!==t&&o.reduce((function(e,i){var n=i[0],r=i[1];if(e)return e;var a=r.exec(t);return!!a&&[n,a]}),!1);if(!i)return null;var r=i[0],s=i[1];if("searchbot"===r)return new a;var l=s[1]&&s[1].split(/[._]/).slice(0,3);return l?l.length<3&&(l=e(l,function(t){for(var e=[],i=0;i<t;i++)e.push("0");return e}(3-l.length))):l=[],new n(r,l.join("."),u(t))}function u(t){for(var e=0,i=s.length;e<i;e++){var n=s[e],r=n[0];if(n[1].test(t))return r}return null}function c(){return void 0!==t&&t.version?new r(t.version.slice(1)):null}i.detect=function(t){return t?l(t):"undefined"!=typeof navigator?l(navigator.userAgent):c()},i.parseUserAgent=l,i.detectOS=u,i.getNodeVersion=c}).call(this,t("_process"))},{_process:1}],206:[function(t,e,i){e.exports={__npminstall_done:!1,_args:[["@antv/g-svg@0.4.7","/Users/thilina/TestProjects/icehrm/web"]],_from:"@antv/g-svg@0.4.7",_id:"@antv/g-svg@0.4.7",_inBundle:!1,_integrity:"sha512-+lqlBK+qylP4t/vyUgEaPthp1XmTiImfkPl/ZmRp3L1knH64OI9XTfOGGuBUFAt3JBt7VHKf6t0L/MCf0BR88Q==",_location:"/@antv/g-svg",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"@antv/g-svg@0.4.7",name:"@antv/g-svg",escapedName:"@antv%2fg-svg",scope:"@antv",rawSpec:"0.4.7",saveSpec:null,fetchSpec:"0.4.7"},_requiredBy:["/@antv/g2","/@antv/g2plot"],_resolved:"https://registry.npmjs.org/@antv/g-svg/-/g-svg-0.4.7.tgz",_spec:"0.4.7",_where:"/Users/thilina/TestProjects/icehrm/web",author:{name:"https://github.com/orgs/antvis/people"},bugs:{url:"https://github.com/antvis/g/issues"},dependencies:{"@antv/g-base":"^0.4.7","@antv/g-math":"^0.1.3","@antv/util":"~2.0.0","detect-browser":"^4.6.0"},description:"A canvas library which providing 2d",devDependencies:{"@antv/torch":"^1.0.0",less:"^3.9.0","npm-run-all":"^4.1.5",webpack:"^4.39.3","webpack-cli":"^3.3.7"},files:["package.json","esm","lib","dist","LICENSE","README.md"],gitHead:"eb6a2503cb7bb8154697592b10680939d954a31a",homepage:"https://github.com/antvis/g#readme",keywords:["util","antv","g"],license:"ISC",main:"lib/index.js",module:"esm/index.js",name:"@antv/g-svg",publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/antvis/g.git"},scripts:{build:"npm run clean && run-p build:*","build:cjs":"tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib","build:esm":"tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm","build:umd":"webpack --config webpack.config.js --mode production",clean:"rm -rf esm lib dist",coverage:"npm run coverage-generator && npm run coverage-viewer","coverage-generator":"torch --coverage --compile --source-pattern src/*.js,src/**/*.js --opts tests/mocha.opts","coverage-viewer":"torch-coverage",test:"torch --renderer --compile --opts tests/mocha.opts","test-live":"torch --compile --interactive --opts tests/mocha.opts",tsc:"tsc --noEmit",typecheck:"tsc --noEmit"},types:"lib/index.d.ts",unpkg:"dist/g.min.js",version:"0.4.7"}},{}],207:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.fadeOut=i.fadeIn=void 0;var n=t("@antv/util");i.fadeIn=function(t,e,i){var r={fillOpacity:n.isNil(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:n.isNil(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:n.isNil(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(r,e)},i.fadeOut=function(t,e,i){var n=e.easing,r=e.duration,a=e.delay;t.animate({fillOpacity:0,strokeOpacity:0,opacity:0},r,n,(function(){t.remove(!0)}),a)}},{"@antv/util":803}],208:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.growInXY=i.growInY=i.growInX=void 0;var n=t("./util");i.growInX=function(t,e,i){var r=i.coordinate,a=i.minYPoint;n.doScaleAnimate(t,e,r,a,"x")},i.growInY=function(t,e,i){var r=i.coordinate,a=i.minYPoint;n.doScaleAnimate(t,e,r,a,"y")},i.growInXY=function(t,e,i){var r=i.coordinate,a=i.minYPoint;n.doScaleAnimate(t,e,r,a,"xy")}},{"./util":214}],209:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.registerAnimation=i.getAnimation=void 0;var n={};i.getAnimation=function(t){return n[t.toLowerCase()]},i.registerAnimation=function(t,e){n[t.toLowerCase()]=e}},{}],210:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.pathIn=void 0,i.pathIn=function(t,e,i){var n=t.getTotalLength();t.attr("lineDash",[n]),t.animate((function(t){return{lineDashOffset:(1-t)*n}}),e)}},{}],211:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.positionUpdate=void 0,i.positionUpdate=function(t,e,i){var n=i.toAttrs,r=n.x,a=n.y;delete n.x,delete n.y,t.attr(n),t.animate({x:r,y:a},e)}},{}],212:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.scaleInY=i.scaleInX=void 0;var n=t("@antv/matrix-util");i.scaleInX=function(t,e,i){var r=t.getBBox(),a=t.get("origin").mappingData.points,o=a[0].y-a[1].y>0?r.maxX:r.minX,s=(r.minY+r.maxY)/2;t.applyToMatrix([o,s,1]);var l=n.ext.transform(t.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);t.setMatrix(l),t.animate({matrix:n.ext.transform(t.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},e)},i.scaleInY=function(t,e,i){var r=t.getBBox(),a=t.get("origin").mappingData,o=(r.minX+r.maxX)/2,s=a.points,l=s[0].y-s[1].y<=0?r.maxY:r.minY;t.applyToMatrix([o,l,1]);var u=n.ext.transform(t.getMatrix(),[["t",-o,-l],["s",1,.01],["t",o,l]]);t.setMatrix(u),t.animate({matrix:n.ext.transform(t.getMatrix(),[["t",-o,-l],["s",1,100],["t",o,l]])},e)}},{"@antv/matrix-util":717}],213:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.sectorPathUpdate=void 0;var n=t("tslib"),r=n.__importDefault(t("@antv/g-canvas/lib/util/arc-params")),a=t("@antv/util"),o=t("../../util/graphics");function s(t,e){var i,n=r.default(t,e),o=n.startAngle,s=n.endAngle;return!a.isNumberEqual(o,.5*-Math.PI)&&o<.5*-Math.PI&&(o+=2*Math.PI),!a.isNumberEqual(s,.5*-Math.PI)&&s<.5*-Math.PI&&(s+=2*Math.PI),0===e[5]&&(o=(i=[s,o])[0],s=i[1]),a.isNumberEqual(o,1.5*Math.PI)&&(o=-.5*Math.PI),a.isNumberEqual(s,-.5*Math.PI)&&(s=1.5*Math.PI),{startAngle:o,endAngle:s}}function l(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:"a"!==t[0]&&"A"!==t[0]||(e=[t[t.length-2],t[t.length-1]]),e}function u(t){var e,i,n,r=t.filter((function(t){return"A"===t[0]||"a"===t[0]})),o=r[0],u=r.length>1?r[1]:r[0],c=t.indexOf(o),p=t.indexOf(u),h=l(t[c-1]),f=l(t[p-1]),d=s(h,o),g=d.startAngle,v=d.endAngle,y=s(f,u),m=y.startAngle,b=y.endAngle;a.isNumberEqual(g,m)&&a.isNumberEqual(v,b)?(i=g,n=v):(i=Math.min(g,m),n=Math.max(v,b));var x=o[1],_=r[r.length-1][1];return x<_?(x=(e=[_,x])[0],_=e[1]):x===_&&(_=0),{startAngle:i,endAngle:n,radius:x,innerRadius:_}}i.sectorPathUpdate=function(t,e,i){var r=i.toAttrs,s=i.coordinate,l=r.path,c=l.map((function(t){return t[0]})),p=u(l),h=p.startAngle,f=p.endAngle,d=p.radius,g=p.innerRadius,v=u(t.attr("path")),y=v.startAngle,m=v.endAngle,b=s.getCenter(),x=h-y,_=f-m;t.animate((function(t){var e=y+t*x,i=m+t*_;return n.__assign(n.__assign({},r),{path:a.isEqual(c,["M","A","A","Z"])?o.getArcPath(b.x,b.y,d,e,i):o.getSectorPath(b.x,b.y,d,e,i,g)})}),n.__assign(n.__assign({},e),{callback:function(){t.attr("path",l)}}))}},{"../../util/graphics":375,"@antv/g-canvas/lib/util/arc-params":142,"@antv/util":803,tslib:385}],214:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.doScaleAnimate=i.transformShape=void 0;var n=t("@antv/matrix-util");function r(t,e,i){var r,a=e[0],o=e[1];return t.applyToMatrix([a,o,1]),"x"===i?(t.setMatrix(n.ext.transform(t.getMatrix(),[["t",-a,-o],["s",.01,1],["t",a,o]])),r=n.ext.transform(t.getMatrix(),[["t",-a,-o],["s",100,1],["t",a,o]])):"y"===i?(t.setMatrix(n.ext.transform(t.getMatrix(),[["t",-a,-o],["s",1,.01],["t",a,o]])),r=n.ext.transform(t.getMatrix(),[["t",-a,-o],["s",1,100],["t",a,o]])):"xy"===i&&(t.setMatrix(n.ext.transform(t.getMatrix(),[["t",-a,-o],["s",.01,.01],["t",a,o]])),r=n.ext.transform(t.getMatrix(),[["t",-a,-o],["s",100,100],["t",a,o]])),r}i.transformShape=r,i.doScaleAnimate=function(t,e,i,n,a){var o,s,l=i.start,u=i.end,c=i.getWidth(),p=i.getHeight();"y"===a?(o=l.x+c/2,s=n.y<l.y?n.y:l.y):"x"===a?(o=n.x>l.x?n.x:l.x,s=l.y+p/2):"xy"===a&&(i.isPolar?(o=i.getCenter().x,s=i.getCenter().y):(o=(l.x+u.x)/2,s=(l.y+u.y)/2));var h=r(t,[o,s],a);t.animate({matrix:h},e)}},{"@antv/matrix-util":717}],215:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.waveIn=void 0;var n=t("tslib"),r=t("../../util/coordinate");i.waveIn=function(t,e,i){var a=r.getCoordinateClipCfg(i.coordinate,20),o=a.type,s=a.startState,l=a.endState,u=t.setClip({type:o,attrs:s});u.animate(l,n.__assign(n.__assign({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),u.remove(!0)}}))}},{"../../util/coordinate":371,tslib:385}],216:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.zoomOut=i.zoomIn=void 0;var n=t("tslib"),r=t("@antv/matrix-util"),a=t("@antv/util");function o(t,e,i){if(t.isGroup())a.each(t.getChildren(),(function(t){o(t,e,i)}));else{var s=t.getBBox(),l=(s.minX+s.maxX)/2,u=(s.minY+s.maxY)/2;if(t.applyToMatrix([l,u,1]),"zoomIn"===i){var c=r.ext.transform(t.getMatrix(),[["t",-l,-u],["s",.01,.01],["t",l,u]]);t.setMatrix(c),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-l,-u],["s",100,100],["t",l,u]])},e)}else t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-l,-u],["s",.01,.01],["t",l,u]])},n.__assign(n.__assign({},e),{callback:function(){t.remove(!0)}}))}}i.zoomIn=function(t,e,i){o(t,e,"zoomIn")},i.zoomOut=function(t,e,i){o(t,e,"zoomOut")}},{"@antv/matrix-util":717,"@antv/util":803,tslib:385}],217:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.doGroupAppearAnimate=i.doAnimate=i.getDefaultAnimateCfg=i.DEFAULT_ANIMATE_CFG=void 0;var n=t("tslib"),r=t("@antv/util"),a=t("../constant"),o=t("./animation");i.DEFAULT_ANIMATE_CFG={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}};var s={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"}}},l={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){return{animation:t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};i.getDefaultAnimateCfg=function(t,e,n){var a=s[t];return a&&(r.isFunction(a)&&(a=a(e)),a=r.deepMix({},i.DEFAULT_ANIMATE_CFG,a),n)?a[n]:a},i.doAnimate=function(t,e,i){var n=r.get(t.get("origin"),"data",a.FIELD_ORIGIN),s=e.animation,l=function(t,e){return{delay:r.isFunction(t.delay)?t.delay(e):t.delay,easing:r.isFunction(t.easing)?t.easing(e):t.easing,duration:r.isFunction(t.duration)?t.duration(e):t.duration,callback:t.callback}}(e,n);if(s){var u=o.getAnimation(s);u&&u(t,l,i)}else t.animate(i.toAttrs,l)},i.doGroupAppearAnimate=function(t,e,a,s,u){if(l[a]){var c=l[a](s),p=o.getAnimation(r.get(c,"animation",""));if(p){var h=n.__assign(n.__assign(n.__assign({},i.DEFAULT_ANIMATE_CFG.appear),c),e);t.stopAnimate(),p(t,h,{coordinate:s,minYPoint:u,toAttrs:null})}}}},{"../constant":237,"./animation":209,"@antv/util":803,tslib:385}],218:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=function(t){function e(e){var i=t.call(this)||this;i.destroyed=!1;var n=e.visible,r=void 0===n||n;return i.visible=r,i}return n.__extends(e,t),e.prototype.show=function(){this.visible||this.changeVisible(!0)},e.prototype.hide=function(){this.visible&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(n.__importDefault(t("@antv/event-emitter")).default);i.default=r},{"@antv/event-emitter":94,tslib:385}],219:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../constant"),o=t("../engine"),s=t("../util/dom"),l=function(t){function e(e){var i=this,l=e.container,u=e.width,c=e.height,p=e.autoFit,h=void 0!==p&&p,f=e.padding,d=e.appendPadding,g=e.renderer,v=void 0===g?"canvas":g,y=e.pixelRatio,m=e.localRefresh,b=void 0===m||m,x=e.visible,_=void 0===x||x,M=e.defaultInteractions,w=void 0===M?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text"]:M,S=e.options,C=e.limitInPlot,P=e.theme,O=r.isString(l)?document.getElementById(l):l,T=s.createDom('<div style="position:relative;"></div>');O.appendChild(T);var A=s.getChartSize(O,h,u,c),E=new(o.getEngine(v).Canvas)(n.__assign({container:T,pixelRatio:y,localRefresh:b},A));return(i=t.call(this,{parent:null,canvas:E,backgroundGroup:E.addGroup({zIndex:a.GROUP_Z_INDEX.BG}),middleGroup:E.addGroup({zIndex:a.GROUP_Z_INDEX.MID}),foregroundGroup:E.addGroup({zIndex:a.GROUP_Z_INDEX.FORE}),padding:f,appendPadding:d,visible:_,options:S,limitInPlot:C,theme:P})||this).onResize=r.debounce((function(){i.forceFit()}),300),i.ele=O,i.canvas=E,i.width=A.width,i.height=A.height,i.autoFit=h,i.localRefresh=b,i.renderer=v,i.wrapperElement=T,i.updateCanvasStyle(),i.bindAutoFit(),i.initDefaultInteractions(w),i}return n.__extends(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;r.each(t,(function(t){e.interaction(t)}))},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0)),this},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),s.removeDom(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=s.getChartSize(this.ele,!0,this.width,this.height),e=t.width,i=t.height;this.changeSize(e,i)}},e.prototype.updateCanvasStyle=function(){s.modifyCSS(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}(n.__importDefault(t("./view")).default);i.default=l},{"../constant":237,"../engine":240,"../util/dom":373,"./view":235,"@antv/util":803,tslib:385}],220:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../dependents"),o=t("../../animate/"),s=t("../../constant"),l=t("../../util/coordinate"),u=t("../../util/helper"),c=function(t){function e(e){var i=t.call(this,e)||this;return i.cache=new Map,i.foregroundContainer=i.view.getLayer(s.LAYER.FORE).addGroup(),i.backgroundContainer=i.view.getLayer(s.LAYER.BG).addGroup(),i.option=[],i}return n.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.layout=function(){var t=this,e=this.getComponents(),i=function(e){var i=e.component,n=e.extra,r=n.type,a=t.getAnnotationTheme(r);i.update(t.getAnnotationCfg(r,n,a))},n=function(e){var i=t.createAnnotation(e);i&&(i.component.init(),"regionFilter"===e.type&&i.component.render(),t.cache.set(e,i))};e.length?r.each(e,(function(e){"regionFilter"===e.component.get("type")?t.view.getRootView().once(s.VIEW_LIFE_CIRCLE.AFTER_RENDER,(function(){i(e)})):i(e)})):r.each(this.option,(function(e){"regionFilter"===e.type?t.view.getRootView().once(s.VIEW_LIFE_CIRCLE.AFTER_RENDER,(function(){n(e)})):n(e)}))},e.prototype.render=function(){},e.prototype.update=function(){var t=this,e=new WeakMap,i=function(i){var n=i.type,r=t.getAnnotationTheme(n),a=t.getAnnotationCfg(n,i,r),o=t.cache.get(i);if(o)u.omit(a,["container"]),o.component.update(a),e.set(i,!0);else{var s=t.createAnnotation(i);s&&(s.component.init(),"regionFilter"===i.type&&s.component.render(),t.cache.set(i,s),e.set(i,!0))}};this.view.once(s.VIEW_LIFE_CIRCLE.AFTER_RENDER,(function(){r.each(t.option,(function(t){"regionFilter"===t.type&&i(t)}));var n=new Map;t.cache.forEach((function(t,i){e.has(i)?n.set(i,t):t.component.destroy()})),t.cache=n})),r.each(this.option,(function(t){"regionFilter"!==t.type&&i(t)}))},e.prototype.clear=function(e){void 0===e&&(e=!1),t.prototype.clear.call(this),this.cache.clear(),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.createAnnotation=function(t){var e=t.type,i=a.Annotation[r.upperFirst(e)];if(i){var n=this.getAnnotationTheme(e),o=this.getAnnotationCfg(e,t,n);return{component:new i(o),layer:this.isTop(o)?s.LAYER.FORE:s.LAYER.BG,direction:s.DIRECTION.NONE,type:s.COMPONENT_TYPE.ANNOTATION,extra:t}}},e.prototype.annotation=function(t){this.option.push(t)},e.prototype.arc=function(t){return this.annotation(n.__assign({type:"arc"},t)),this},e.prototype.image=function(t){return this.annotation(n.__assign({type:"image"},t)),this},e.prototype.line=function(t){return this.annotation(n.__assign({type:"line"},t)),this},e.prototype.region=function(t){return this.annotation(n.__assign({type:"region"},t)),this},e.prototype.text=function(t){return this.annotation(n.__assign({type:"text"},t)),this},e.prototype.dataMarker=function(t){return this.annotation(n.__assign({type:"dataMarker"},t)),this},e.prototype.dataRegion=function(t){this.annotation(n.__assign({type:"dataRegion"},t))},e.prototype.regionFilter=function(t){this.annotation(n.__assign({type:"regionFilter"},t))},e.prototype.parsePosition=function(t){var e=this.view.getXScale(),i=this.view.getScalesByDim("y"),n=r.isFunction(t)?t.call(null,e,i):t,a=0,o=0;if(r.isArray(n)){var s=n[0],l=n[1];if(r.isString(s)&&-1!==s.indexOf("%")&&!isNaN(s.slice(0,-1)))return this.parsePercentPosition(n);a=this.getNormalizedValue(s,e),o=this.getNormalizedValue(l,Object.values(i)[0])}else if(!r.isNil(n))for(var u=0,c=r.keys(n);u<c.length;u++){var p=c[u],h=n[p];p===e.field&&(a=this.getNormalizedValue(h,e)),i[p]&&(o=this.getNormalizedValue(h,i[p]))}return this.view.getCoordinate().convert({x:a,y:o})},e.prototype.getRegionPoints=function(t,e){var i,n=this,a=this.view.getXScale(),o=this.view.getScalesByDim("y"),s=Object.values(o)[0],l=a.field,u=this.view.getData(),c=r.isArray(t)?t[0]:t[l],p=r.isArray(e)?e[0]:e[l],h=[];return r.each(u,(function(t,e){if(t[l]===c&&(i=e),e>=i){var r=n.parsePosition([t[l],t[s.field]]);r&&h.push(r)}if(t[l]===p)return!1})),h},e.prototype.getNormalizedValue=function(t,e){var i,n;switch(t){case"start":i=0;break;case"end":i=1;break;case"median":n=e.isCategory?(e.values.length-1)/2:(e.min+e.max)/2,i=e.scale(n);break;case"min":case"max":n=e.isCategory?"min"===t?0:e.values.length-1:e[t],i=e.scale(n);break;default:i=e.scale(t)}return i},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,i=parseFloat(t[1])/100,n=this.view.getCoordinate(),r=n.start,a=n.end,o=Math.min(r.x,a.x),s=Math.min(r.y,a.y);return{x:n.getWidth()*e+o,y:n.getHeight()*i+s}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,i=t.end,n=t.getWidth(),r=t.getHeight(),a={x:Math.min(e.x,i.x),y:Math.min(e.y,i.y)};return{x:a.x,y:a.y,minX:a.x,minY:a.y,maxX:a.x+n,maxY:a.y+r,width:n,height:r}},e.prototype.getAnnotationCfg=function(t,e,i){var a=this.view.getCoordinate(),s={};if(r.isNil(e))return null;if("arc"===t){var u=e,c=u.start,p=u.end,h=this.parsePosition(c),f=this.parsePosition(p),d=l.getAngleByPoint(a,h),g=l.getAngleByPoint(a,f);d>g&&(g=2*Math.PI+g),s={center:a.getCenter(),radius:l.getDistanceToCenter(a,h),startAngle:d,endAngle:g}}else if("image"===t){var v=e;c=v.start,p=v.end;s={start:this.parsePosition(c),end:this.parsePosition(p),src:e.src}}else if("line"===t){var y=e;c=y.start,p=y.end;s={start:this.parsePosition(c),end:this.parsePosition(p),text:r.get(e,"text",null)}}else if("region"===t){var m=e;c=m.start,p=m.end;s={start:this.parsePosition(c),end:this.parsePosition(p)}}else if("text"===t){var b=this.view.getData(),x=e,_=x.position,M=x.content,w=n.__rest(x,["position","content"]),S=M;r.isFunction(M)&&(S=M(b)),s=n.__assign(n.__assign(n.__assign({},this.parsePosition(_)),w),{content:S})}else if("dataMarker"===t){var C=e,P=(_=C.position,C.point),O=C.line,T=C.text,A=C.autoAdjust,E=C.direction;s=n.__assign(n.__assign({},this.parsePosition(_)),{coordinateBBox:this.getCoordinateBBox(),point:P,line:O,text:T,autoAdjust:A,direction:E})}else if("dataRegion"===t){var L=e,I=(c=L.start,p=L.end,L.region),D=(T=L.text,L.lineLength);s={points:this.getRegionPoints(c,p),region:I,text:T,lineLength:D}}else if("regionFilter"===t){var k=e,B=(c=k.start,p=k.end,k.apply),F=k.color,j=this.view.geometries,R=[],N=function(t){t&&(t.isGroup()?t.getChildren().forEach((function(t){return N(t)})):R.push(t))};r.each(j,(function(t){B?r.contains(B,t.type)&&r.each(t.elements,(function(t){N(t.shape)})):r.each(t.elements,(function(t){N(t.shape)}))})),s={color:F,shapes:R,start:this.parsePosition(c),end:this.parsePosition(p)}}var Y=r.deepMix({},i,n.__assign(n.__assign({},s),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return Y.container=this.getComponentContainer(Y),Y.animate=this.view.getOptions().animate&&Y.animate&&r.get(e,"animate",Y.animate),Y.animateOption=r.deepMix({},o.DEFAULT_ANIMATE_CFG,Y.animateOption,e.animateOption),Y},e.prototype.isTop=function(t){return r.get(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return r.get(this.view.getTheme(),["components","annotation",t],{})},e}(t("./base").Controller);i.default=c},{"../../animate/":217,"../../constant":237,"../../dependents":239,"../../util/coordinate":371,"../../util/helper":377,"./base":222,"@antv/util":803,tslib:385}],221:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../constant"),o=t("../../dependents"),s=t("../../animate/"),l=t("../../util/axis"),u=t("../../util/axis"),c=t("../../util/grid"),p=t("../../util/helper"),h=t("./base"),f=["container"],d=n.__assign(n.__assign({},s.DEFAULT_ANIMATE_CFG),{appear:null}),g=function(t){function e(e){var i=t.call(this,e)||this;return i.cache=new Map,i.gridContainer=i.view.getLayer(a.LAYER.BG).addGroup(),i.axisContainer=i.view.getLayer(a.LAYER.BG).addGroup(),i}return n.__extends(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();r.each(this.getComponents(),(function(i){var n,r=i.component,o=i.direction,s=i.type,u=i.extra,p=u.dim,h=u.scale,f=u.alignTick;if(s===a.COMPONENT_TYPE.AXIS)e.isPolar?"x"===p?n=e.isTransposed?l.getAxisRegion(e,o):l.getCircleAxisCenterRadius(e):"y"===p&&(n=e.isTransposed?l.getCircleAxisCenterRadius(e):l.getAxisRegion(e,o)):n=l.getAxisRegion(e,o);else if(s===a.COMPONENT_TYPE.GRID)if(e.isPolar){n={items:e.isTransposed?"x"===p?c.getCircleGridItems(e,t.view.getYScales()[0],h,f,p):c.getLineGridItems(e,h,p,f):"x"===p?c.getLineGridItems(e,h,p,f):c.getCircleGridItems(e,t.view.getXScale(),h,f,p),center:t.view.getCoordinate().getCenter()}}else n={items:c.getLineGridItems(e,h,p,f)};r.update(n)}))},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(i,n){t.has(n)?e.set(n,i):i.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.axisContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.axisContainer.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 i=u.getAxisOption(this.option,e.field);if(!1!==i){var n=l.getAxisDirection(i,a.DIRECTION.BOTTOM),o=a.LAYER.BG,s=this.view.getCoordinate(),c=this.getId("axis",e.field),h=this.getId("grid",e.field);if(s.isRect){if(g=this.cache.get(c)){var d=this.getLineAxisCfg(e,i,n);p.omit(d,f),g.component.update(d),t.set(c,g)}else g=this.createLineAxis(e,i,o,n,"x"),this.cache.set(c,g),t.set(c,g);if(v=this.cache.get(h)){d=this.getLineGridCfg(e,i,n,"x");p.omit(d,f),v.component.update(d),t.set(h,v)}else(v=this.createLineGrid(e,i,o,n,"x"))&&(this.cache.set(h,v),t.set(h,v))}else if(s.isPolar){var g,v;if(g=this.cache.get(c)){d=s.isTransposed?this.getLineAxisCfg(e,i,a.DIRECTION.RADIUS):this.getCircleAxisCfg(e,i,n);p.omit(d,f),g.component.update(d),t.set(c,g)}else{if(s.isTransposed){if(r.isUndefined(i))return;g=this.createLineAxis(e,i,o,a.DIRECTION.RADIUS,"x")}else g=this.createCircleAxis(e,i,o,n,"x");this.cache.set(c,g),t.set(c,g)}if(v=this.cache.get(h)){d=s.isTransposed?this.getCircleGridCfg(e,i,a.DIRECTION.RADIUS,"x"):this.getLineGridCfg(e,i,a.DIRECTION.CIRCLE,"x");p.omit(d,f),v.component.update(d),t.set(h,v)}else{if(s.isTransposed){if(r.isUndefined(i))return;v=this.createCircleGrid(e,i,o,a.DIRECTION.RADIUS,"x")}else v=this.createLineGrid(e,i,o,a.DIRECTION.CIRCLE,"x");v&&(this.cache.set(h,v),t.set(h,v))}}}}},e.prototype.updateYAxes=function(t){var e=this,i=this.view.getYScales();r.each(i,(function(i,n){if(i&&!i.isIdentity){var o=i.field,s=u.getAxisOption(e.option,o);if(!1!==s){var c=a.LAYER.BG,h=e.getId("axis",o),d=e.getId("grid",o),g=e.view.getCoordinate();if(g.isRect){var v=l.getAxisDirection(s,0===n?a.DIRECTION.LEFT:a.DIRECTION.RIGHT);if(m=e.cache.get(h)){var y=e.getLineAxisCfg(i,s,v);p.omit(y,f),m.component.update(y),t.set(h,m)}else m=e.createLineAxis(i,s,c,v,"y"),e.cache.set(h,m),t.set(h,m);if(b=e.cache.get(d)){y=e.getLineGridCfg(i,s,v,"y");p.omit(y,f),b.component.update(y),t.set(d,b)}else(b=e.createLineGrid(i,s,c,v,"y"))&&(e.cache.set(d,b),t.set(d,b))}else if(g.isPolar){var m,b;if(m=e.cache.get(h)){y=g.isTransposed?e.getCircleAxisCfg(i,s,a.DIRECTION.CIRCLE):e.getLineAxisCfg(i,s,a.DIRECTION.RADIUS);p.omit(y,f),m.component.update(y),t.set(h,m)}else{if(g.isTransposed){if(r.isUndefined(s))return;m=e.createCircleAxis(i,s,c,a.DIRECTION.CIRCLE,"y")}else m=e.createLineAxis(i,s,c,a.DIRECTION.RADIUS,"y");e.cache.set(h,m),t.set(h,m)}if(b=e.cache.get(d)){y=g.isTransposed?e.getLineGridCfg(i,s,a.DIRECTION.CIRCLE,"y"):e.getCircleGridCfg(i,s,a.DIRECTION.RADIUS,"y");p.omit(y,f),b.component.update(y),t.set(d,b)}else{if(g.isTransposed){if(r.isUndefined(s))return;b=e.createLineGrid(i,s,c,a.DIRECTION.CIRCLE,"y")}else b=e.createCircleGrid(i,s,c,a.DIRECTION.RADIUS,"y");b&&(e.cache.set(d,b),t.set(d,b))}}}}}))},e.prototype.createLineAxis=function(t,e,i,n,r){var s={component:new o.LineAxis(this.getLineAxisCfg(t,e,n)),layer:i,direction:n===a.DIRECTION.RADIUS?a.DIRECTION.NONE:n,type:a.COMPONENT_TYPE.AXIS,extra:{dim:r,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createLineGrid=function(t,e,i,n,s){var l=this.getLineGridCfg(t,e,n,s);if(l){var u={component:new o.LineGrid(l),layer:i,direction:a.DIRECTION.NONE,type:a.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:r.get(l,"alignTick",!0)}};return u.component.init(),u}},e.prototype.createCircleAxis=function(t,e,i,n,r){var s={component:new o.CircleAxis(this.getCircleAxisCfg(t,e,n)),layer:i,direction:n,type:a.COMPONENT_TYPE.AXIS,extra:{dim:r,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createCircleGrid=function(t,e,i,n,s){var l=this.getCircleGridCfg(t,e,n,s);if(l){var u={component:new o.CircleGrid(l),layer:i,direction:a.DIRECTION.NONE,type:a.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:r.get(l,"alignTick",!0)}};return u.component.init(),u}},e.prototype.getLineAxisCfg=function(t,e,i){var a=this.axisContainer,o=this.view.getCoordinate(),s=l.getAxisRegion(o,i),u=l.getAxisTitleText(t,e),c=l.getAxisThemeCfg(this.view.getTheme(),i),p=r.get(e,["title"])?r.deepMix({title:{style:{text:u}}},e):e,h=r.deepMix(n.__assign(n.__assign({container:a},s),{ticks:t.getTicks().map((function(t){return{id:""+t.tickValue,name:t.text,value:t.value}})),verticalFactor:o.isPolar?-1*l.getAxisFactorByRegion(s,o.getCenter()):l.getAxisFactorByRegion(s,o.getCenter())}),c,p),f=this.getAnimateCfg(h),d=f.animate,g=f.animateOption;h.animateOption=g,h.animate=d;var v=l.isVertical(s),y=r.get(h,"verticalLimitLength",v?1/3:.5);if(y<=1){var m=this.view.getCanvas().get("width"),b=this.view.getCanvas().get("height");h.verticalLimitLength=y*(v?m:b)}return h},e.prototype.getLineGridCfg=function(t,e,i,n){if(c.showGrid(l.getAxisThemeCfg(this.view.getTheme(),i),e)){var a=c.getGridThemeCfg(this.view.getTheme(),i),o=r.deepMix({container:this.gridContainer},a,r.get(e,"grid"),this.getAnimateCfg(e));return o.items=c.getLineGridItems(this.view.getCoordinate(),t,n,r.get(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,i){var o=this.axisContainer,s=this.view.getCoordinate(),u=t.getTicks().map((function(t){return{id:""+t.tickValue,name:t.text,value:t.value}}));t.isCategory||Math.abs(s.endAngle-s.startAngle)!==2*Math.PI||u.pop();var c=l.getAxisTitleText(t,e),p=l.getAxisThemeCfg(this.view.getTheme(),a.DIRECTION.CIRCLE),h=r.get(e,["title"])?r.deepMix({title:{style:{text:c}}},e):e,f=r.deepMix(n.__assign(n.__assign({container:o},l.getCircleAxisCenterRadius(this.view.getCoordinate())),{ticks:u,verticalFactor:1}),p,h),d=this.getAnimateCfg(f),g=d.animate,v=d.animateOption;return f.animate=g,f.animateOption=v,f},e.prototype.getCircleGridCfg=function(t,e,i,n){if(c.showGrid(l.getAxisThemeCfg(this.view.getTheme(),i),e)){var o=c.getGridThemeCfg(this.view.getTheme(),a.DIRECTION.RADIUS),s=r.deepMix({container:this.gridContainer,center:this.view.getCoordinate().getCenter()},o,r.get(e,"grid"),this.getAnimateCfg(e)),u=r.get(s,"alignTick",!0),p="x"===n?this.view.getYScales()[0]:this.view.getXScale();return s.items=c.getCircleGridItems(this.view.getCoordinate(),p,t,u,n),s}},e.prototype.getId=function(t,e){return t+"-"+e+"-"+this.view.getCoordinate().type},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&r.get(t,"animate"),animateOption:t&&t.animateOption?r.deepMix({},d,t.animateOption):d}},e}(h.Controller);i.default=g},{"../../animate/":217,"../../constant":237,"../../dependents":239,"../../util/axis":369,"../../util/grid":376,"../../util/helper":377,"./base":222,"@antv/util":803,tslib:385}],222:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Controller=void 0;var n=t("@antv/util"),r=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(){n.each(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}();i.Controller=r},{"@antv/util":803}],223:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../dependents"),o=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 r.some(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var i=this.option,r=i.type,o=i.cfg,s="theta"===r,l=n.__assign({start:t,end:e},o),u=a.getCoordinate(s?"polar":r);return this.coordinate=new u(l),this.coordinate.type=r,s&&(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 n.__assign({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,i=this.option.actions;r.each(i,(function(i){var n,a=i[0],o=i.slice(1);(!!r.isNil(t)||t.includes(a))&&(n=e.coordinate)[a].apply(n,o)}))},t}();i.default=o},{"../../dependents":239,"@antv/util":803,tslib:385}],224:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("./base"),a=function(t,e){var i=e.x-t.x,n=e.y-t.y;return Math.abs(i)>Math.abs(n)?i>0?"right":"left":n>0?"down":"up"},o=function(t,e){var i=Math.abs(e.x-t.x),n=Math.abs(e.y-t.y);return Math.sqrt(i*i+n*n)},s=function(t,e){if(t){for(var i=[],n=t.length,r=0;r<n;r++){var a=t[r],o=a.clientX,s=a.clientY,l=e.getPointByClient(o,s);i.push(l)}return i}},l=function(t){function e(e){var i=t.call(this,e)||this;return i.processEvent={},i.touchStart=function(t){var e,n,r=s(t.originalEvent.touches,i.canvas);r&&(t.points=r,i.reset(),i.startTime=Date.now(),i.startPoints=r,r.length>1?(i.startDistance=o(r[0],r[1]),i.center=(e=r[0],n=r[1],{x:(e.x+n.x)/2,y:(e.y+n.y)/2})):i.pressTimeout=setTimeout((function(){t.direction="none",i.emitStart("press",t),i.emitEvent("press",t),i.eventType="press"}),250))},i.touchMove=function(t){var e=s(t.originalEvent.touches,i.canvas);if(e){i.clearPressTimeout(),t.points=e;var n=i.startPoints;if(n)if(e.length>1){var r=i.startDistance,l=o(e[0],e[1]);t.zoom=l/r,t.center=i.center,i.emitStart("pinch",t),i.emitEvent("pinch",t)}else{var u=e[0].x-n[0].x,c=e[0].y-n[0].y,p=i.direction||a(n[0],e[0]);i.direction=p;var h=i.getEventType(e);t.direction=p,t.deltaX=u,t.deltaY=c,i.emitStart(h,t),i.emitEvent(h,t);var f=i.lastMoveTime,d=Date.now();d-f>0&&(i.prevMoveTime=f,i.prevMovePoints=i.lastMovePoints,i.lastMoveTime=d,i.lastMovePoints=e)}}},i.touchEnd=function(t){i.emitEnd(t);var e=i.lastMoveTime;if(Date.now()-e<100){var n=e-(i.prevMoveTime||i.startTime);if(n>0){var r=i.prevMovePoints||i.startPoints,s=i.lastMovePoints,l=o(r[0],s[0])/n;l>.3&&(t.velocity=l,t.direction=a(r[0],s[0]),i.emitEvent("swipe",t))}}i.reset();var u=t.touches;u&&u.length>0&&i.touchStart(t)},i.canvas=e.getCanvas(),i.delegateEvent(),i.processEvent={},i}return n.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"gesture"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){},e.prototype.layout=function(){},e.prototype.update=function(){},e.prototype.destroy=function(){this.reset(),this.offEvent(),this.processEvent=null},e.prototype.delegateEvent=function(){this.canvas.on("touchstart",this.touchStart),this.canvas.on("touchmove",this.touchMove),this.canvas.on("touchend",this.touchEnd)},e.prototype.offEvent=function(){this.canvas.off("touchstart",this.touchStart),this.canvas.off("touchmove",this.touchMove),this.canvas.off("touchend",this.touchEnd)},e.prototype.emitEvent=function(t,e){this.view.emit(t,e)},e.prototype.emitStart=function(t,e){this.isProcess(t)||(this.enable(t),this.emitEvent(t+"start",e))},e.prototype.emitEnd=function(t){var e=this,i=this.processEvent;Object.keys(i).forEach((function(n){e.emitEvent(n+"end",t),delete i[n]}))},e.prototype.enable=function(t){this.processEvent[t]=!0},e.prototype.isProcess=function(t){return this.processEvent[t]},e.prototype.reset=function(){this.clearPressTimeout(),this.startTime=0,this.startPoints=null,this.startDistance=0,this.direction=null,this.eventType=null,this.prevMoveTime=0,this.prevMovePoints=null,this.lastMoveTime=0,this.lastMovePoints=null},e.prototype.clearPressTimeout=function(){this.pressTimeout&&(clearTimeout(this.pressTimeout),this.pressTimeout=0)},e.prototype.getEventType=function(t){var e,i=this.eventType,n=this.view,r=this.startTime,a=this.startPoints;if(i)return i;var s=n.getEvents().pan;s&&s.length?e=Date.now()-r>250&&o(a[0],t[0])<10?"press":"pan":e="press";return this.eventType=e,e},e}(r.Controller);i.default=l},{"./base":222,tslib:385}],225:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getComponentController=i.getComponentControllerNames=i.unregisterComponentController=i.registerComponentController=void 0;var n={};i.registerComponentController=function(t,e){n[t]=e},i.unregisterComponentController=function(t){delete n[t]},i.getComponentControllerNames=function(){return Object.keys(n)},i.getComponentController=function(t){return n[t]}},{}],226:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../constant"),o=t("../../dependents"),s=t("../../animate"),l=t("../../util/bbox"),u=t("../../util/direction"),c=t("../../util/helper"),p=t("../../util/legend"),h=t("../../util/scale");function f(t,e){return r.isBoolean(t)?!1!==t&&{}:r.get(t,[e],t)}function d(t){return r.get(t,"position",a.DIRECTION.BOTTOM)}var g=function(t){function e(e){var i=t.call(this,e)||this;return i.container=i.view.getLayer(a.LAYER.FORE).addGroup(),i}return n.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){var t=this;this.option=this.view.getOptions().legends;if(r.get(this.option,"custom")){var e=this.createCustomLegend(void 0,void 0,void 0,this.option);if(e){e.init();var i=a.LAYER.FORE,n=d(this.option);this.components.push({id:"global-custom",component:e,layer:i,direction:n,type:a.COMPONENT_TYPE.LEGEND,extra:void 0})}}else this.loopLegends((function(e,i,n){var r=t.createFieldLegend(e,i,n);r&&(r.component.init(),t.components.push(r))}))},e.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox;var e=r.get(this.view.getTheme(),["components","legend","margin"],[0,0,0,0]);r.each(this.components,(function(i){var n=i.component,r=i.direction,a=p.getLegendLayout(r),o=t.getCategoryLegendSizeCfg(a),s=n.get("maxWidth"),c=n.get("maxHeight");n.update({maxWidth:Math.min(o.maxWidth,s||0),maxHeight:Math.min(o.maxHeight,c||0)});var h=n.getLayoutBBox(),f=new l.BBox(h.x,h.y,h.width,h.height),d=u.directionToPosition(t.view.viewBBox,f,r),g=d[0],v=d[1],y=u.directionToPosition(t.layoutBBox,f,r),m=y[0],b=y[1],x=0,_=0;r.startsWith("top")||r.startsWith("bottom")?(x=g,_=b):(x=m,_=v),r.indexOf("left")>=0&&(x+=e[3]),r.indexOf("right")>=0&&(x-=e[1]),r.indexOf("top")>=0&&(_+=e[0]),r.indexOf("bottom")>=0&&(_-=e[2]),n.update({x:x,y:_}),t.layoutBBox=t.layoutBBox.cut(f,r)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={};if(r.get(this.option,"custom")){var i="global-custom",n=this.getComponentById(i);if(n){var o=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);c.omit(o,["container"]),n.component.update(o),e[i]=!0}else{var s=this.createCustomLegend(void 0,void 0,void 0,this.option);if(s){s.init();var l=a.LAYER.FORE,u=d(this.option);this.components.push({id:i,component:s,layer:l,direction:u,type:a.COMPONENT_TYPE.LEGEND,extra:void 0}),e[i]=!0}}}else this.loopLegends((function(i,n,a){var o=t.getId(a.field),s=t.getComponentById(o);if(s){var l=void 0,u=f(t.option,a.field);!1!==u&&(r.get(u,"custom")?l=t.getCategoryCfg(i,n,a,u,!0):a.isLinear?l=t.getContinuousCfg(i,n,a,u):a.isCategory&&(l=t.getCategoryCfg(i,n,a,u))),l&&(c.omit(l,["container"]),s.direction=d(u),s.component.update(l),e[o]=!0)}else{var p=t.createFieldLegend(i,n,a);p&&(p.component.init(),t.components.push(p),e[o]=!0)}}));var p=[];r.each(this.getComponents(),(function(t){e[t.id]?p.push(t):t.component.destroy()})),this.components=p},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,i=t.geometries;return r.each(t.views,(function(t){i=i.concat(e.getGeometries(t))})),i},e.prototype.loopLegends=function(t){if(this.view.getRootView()===this.view){var e=this.getGeometries(this.view),i={};r.each(e,(function(e){var n=e.getGroupAttributes();r.each(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,i){var n,o=f(this.option,i.field),s=a.LAYER.FORE,l=d(o);if(!1!==o&&(r.get(o,"custom")?n=this.createCustomLegend(t,e,i,o):i.isLinear?n=this.createContinuousLegend(t,e,i,o):i.isCategory&&(n=this.createCategoryLegend(t,e,i,o))),n)return n.set("field",i.field),{id:this.getId(i.field),component:n,layer:s,direction:l,type:a.COMPONENT_TYPE.LEGEND,extra:{scale:i}}},e.prototype.createCustomLegend=function(t,e,i,n){var r=this.getCategoryCfg(t,e,i,n,!0);return new o.CategoryLegend(r)},e.prototype.createContinuousLegend=function(t,e,i,n){var r=this.getContinuousCfg(t,e,i,n);return new o.ContinuousLegend(r)},e.prototype.createCategoryLegend=function(t,e,i,n){var r=this.getCategoryCfg(t,e,i,n);return new o.CategoryLegend(r)},e.prototype.getContinuousCfg=function(t,e,i,n){var a=i.getTicks(),o=r.find(a,(function(t){return 0===t.value})),l=r.find(a,(function(t){return 1===t.value})),u=a.map((function(t){var n=t.value,r=t.tickValue,a=e.mapping(i.invert(n)).join("");return{value:r,attrValue:a,color:a,scaleValue:n}}));o||u.push({value:i.min,attrValue:e.mapping(i.invert(0)).join(""),color:e.mapping(i.invert(0)).join(""),scaleValue:0}),l||u.push({value:i.max,attrValue:e.mapping(i.invert(1)).join(""),color:e.mapping(i.invert(1)).join(""),scaleValue:1}),u.sort((function(t,e){return t.value-e.value}));var c={min:r.head(u).value,max:r.last(u).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=u.map((function(t){return t.attrValue})));var f=this.container,g=d(n),v=p.getLegendLayout(g),y=r.get(n,"title");return y&&(y=r.deepMix({text:h.getName(i)},y)),c.container=f,c.layout=v,c.title=y,c.animateOption=s.DEFAULT_ANIMATE_CFG,this.mergeLegendCfg(c,n,"continuous")},e.prototype.getCategoryCfg=function(t,e,i,n,o){var l=this.container,u=r.get(n,"position",a.DIRECTION.BOTTOM),c=r.get(this.view.getTheme(),["components","legend",u,"marker"]),f=r.get(n,"marker"),d=p.getLegendLayout(u),g=o?p.getCustomLegendItems(c,f,n.items):p.getLegendItems(this.view,t,e,c,f),v=r.get(n,"title");v&&(v=r.deepMix({text:i?h.getName(i):""},v));var y=this.getCategoryLegendSizeCfg(d);y.container=l,y.layout=d,y.items=g,y.title=v,y.animateOption=s.DEFAULT_ANIMATE_CFG;var m=this.mergeLegendCfg(y,n,u);m.reversed&&m.items.reverse();var b=r.get(m,"maxItemWidth");return b&&b<=1&&(m.maxItemWidth=this.view.viewBBox.width*b),m},e.prototype.mergeLegendCfg=function(t,e,i){var n=i.split("-")[0],a=r.get(this.view.getTheme(),["components","legend",n],{});return r.deepMix({},a,t,e)},e.prototype.getId=function(t){return this.name+"-"+t},e.prototype.getComponentById=function(t){return r.find(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t){var e=this.view.viewBBox,i=e.width,n=e.height;return"vertical"===t?{maxWidth:i*a.COMPONENT_MAX_VIEW_PERCENTAGE,maxHeight:n}:{maxWidth:i,maxHeight:n*a.COMPONENT_MAX_VIEW_PERCENTAGE}},e}(t("./base").Controller);i.default=g},{"../../animate":217,"../../constant":237,"../../dependents":239,"../../util/bbox":370,"../../util/direction":372,"../../util/helper":377,"../../util/legend":378,"../../util/scale":381,"./base":222,"@antv/util":803,tslib:385}],227:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../constant"),o=t("../../dependents"),s=t("../../util/bbox"),l=t("../../util/direction"),u=t("../../util/helper"),c=function(t){function e(e){var i=t.call(this,e)||this;return i.onValueChanged=function(t){var e=t[0],n=t[1];i.updateMinMaxText(e,n),i.view.render(!0)},i.container=i.view.getLayer(a.LAYER.FORE).addGroup(),i}return n.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){if(this.option=this.view.getOptions().slider,this.option){this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onValueChanged));var t=this.slider.component.get("start")||0,e=this.slider.component.get("end")||1;this.updateMinMaxText(t,e)}else this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){if(this.slider){var t=this.view.coordinateBBox.width,e=this.slider.component.getLayoutBBox(),i=new s.BBox(e.x,e.y,Math.min(e.width,t),e.height),n=l.directionToPosition(this.view.viewBBox,i,a.DIRECTION.BOTTOM),r=(n[0],n[1]),o=l.directionToPosition(this.view.coordinateBBox,i,a.DIRECTION.BOTTOM),u=o[0];o[1];this.slider.component.update({x:u,y:r,width:t})}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new o.Slider(n.__assign({container:this.container},t));return e.init(),{component:e,layer:a.LAYER.FORE,direction:a.DIRECTION.BOTTOM,type:a.COMPONENT_TYPE.OTHER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();return u.omit(t,["x","y","width","start","end","minText","maxText"]),this.slider.component.update(t),this.slider},e.prototype.getSliderCfg=function(){if(r.isObject(this.option)){var t=n.__assign({data:this.getData()},r.get(this.option,"trendCfg",{})),e=this.view.coordinateBBox.width,i=r.deepMix({},{x:0,y:0,width:e},this.option);return n.__assign(n.__assign({},i),{trendCfg:t})}return{}},e.prototype.getData=function(){var t=this.view.getOptions().data,e=this.view.getYScales()[0],i=this.view.getGroupScales();if(i.length){var n=i[0],r=n.field,a=n.ticks;return t.reduce((function(t,i){return i[r]===a[0]&&t.push(i[e.field]),t}),[])}return t.map((function(t){return t[e.field]||0}))},e.prototype.updateMinMaxText=function(t,e){var i=this.view.getOptions().data,n=this.view.getXScale(),a=r.size(i);if(n&&a){var o=n.field,s=i.reduce((function(t,e){return t.includes(e[o])||t.push(e[o]),t}),[]),l=r.size(s),c=Math.floor(t*(l-1)),p=Math.floor(e*(l-1)),h=r.get(s,[c]),f=r.get(s,[p]),d=this.getSliderCfg().formatter;d&&(h=d(h,i[c],c),f=d(f,i[p],p)),this.slider.component.update({minText:h,maxText:f,start:t,end:e}),this.view.filter(n.field,(function(t,e){var i=s.indexOf(t);return!(i>-1)||u.isBetween(i,c,p)}))}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e}(t("./base").Controller);i.default=c},{"../../constant":237,"../../dependents":239,"../../util/bbox":370,"../../util/direction":372,"../../util/helper":377,"./base":222,"@antv/util":803,tslib:385}],228:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../dependents"),o=t("../../util/coordinate"),s=t("../../util/graphics"),l=t("../../util/tooltip");var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return n.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,i=this.getTooltipItems(t);if(i.length){var a=this.getTitle(i),o={x:i[0].x,y:i[0].y};e.emit("tooltip:show",n.__assign({items:i,title:a},t));var s=this.getTooltipCfg(),l=s.follow,u=s.showMarkers,c=s.showCrosshairs,p=s.showContent,h=s.marker,f=this.items,d=this.title;if(r.isEqual(d,a)&&r.isEqual(f,i)?(this.tooltip&&l&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",n.__assign({items:i,title:a},t)),p&&(this.tooltip||this.renderTooltip(),this.tooltip.update(r.mix({},s,{items:i,title:a},l?t:{})),this.tooltip.show()),u&&this.renderTooltipMarkers(i,h)),this.items=i,this.title=a,c){var g=r.get(s,["crosshairs","follow"],!1);this.renderCrosshairs(g?t:o,s)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var t=this.tooltipMarkersGroup;t&&t.hide();var e=this.xCrosshair,i=this.yCrosshair;e&&e.hide(),i&&i.hide();var n=this.tooltip;n&&n.hide(),this.view.emit("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.tooltip,e=this.xCrosshair,i=this.yCrosshair,n=this.tooltipMarkersGroup;t&&(t.hide(),t.clear()),e&&e.clear(),i&&i.clear(),n&&n.clear()},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.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.tooltip,i=this.tooltipMarkersGroup,n=this.xCrosshair,r=this.yCrosshair;t?(e&&e.show(),i&&i.show(),n&&n.show(),r&&r.show()):(e&&e.hide(),i&&i.hide(),n&&n.hide(),r&&r.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e=this.findItemsFromView(this.view,t);if(e.length){for(var i=0,n=e=r.flatten(e);i<n.length;i++)for(var a=0,o=n[i];a<o.length;a++){var s=o[a],l=s.mappingData,u=l.x,c=l.y;s.x=r.isArray(u)?u[u.length-1]:u,s.y=r.isArray(c)?c[c.length-1]:c}if(!1===this.getTooltipCfg().shared&&e.length>1){for(var p=e[0],h=Math.abs(t.y-p[0].y),f=0,d=e;f<d.length;f++){var g=d[f],v=Math.abs(t.y-g[0].y);v<=h&&(p=g,h=v)}e=[p]}return function(t){for(var e=[],i=function(i){var n=t[i];r.find(e,(function(t){return t.color===n.color&&t.name===n.name&&t.value===n.value&&t.title===n.title}))||e.push(n)},n=0;n<t.length;n++)i(n);return e}(r.flatten(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.getTooltipCfg=function(){var t=this.view,e=t.getOptions().tooltip,i=t.getTheme(),n=r.get(i,["components","tooltip"],{}),a=r.isUndefined(r.get(e,"enterable"))?n.enterable:r.get(e,"enterable");return r.deepMix({},n,e,{capture:!(!a&&!this.isLocked)})},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")}},i=this.getTooltipCfg(),r=new a.HtmlTooltip(n.__assign(n.__assign({parent:t.get("el").parentNode,region:e},i),{visible:!1,crosshairs:null}));r.init(),this.tooltip=r},e.prototype.renderTooltipMarkers=function(t,e){for(var i=this.getTooltipMarkersGroup(),r=0,a=t;r<a.length;r++){var o=a[r],s=o.x,l=o.y,u=n.__assign(n.__assign({fill:o.color,symbol:"circle",shadowColor:o.color},e),{x:s,y:l});i.addShape("marker",{attrs:u})}},e.prototype.renderCrosshairs=function(t,e){var i=r.get(e,["crosshairs","type"],"x");"x"===i?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===i?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===i&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var i=this.getViewWithGeometry(this.view).getCoordinate();if(o.isPointInCoordinate(i,t)){var n,l;if(i.isRect)i.isTransposed?(n={x:i.start.x,y:t.y},l={x:i.end.x,y:t.y}):(n={x:t.x,y:i.end.y},l={x:t.x,y:i.start.y});else{var u=o.getAngleByPoint(i,t),c=i.getCenter(),p=i.getRadius();l=s.polarToCartesian(c.x,c.y,p,u),n=c}var h=r.deepMix({start:n,end:l,container:this.getTooltipCrosshairsGroup()},r.get(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete h.type;var f=this.xCrosshair;f?f.update(h):(f=new a.Crosshair.Line(h)).init(),f.render(),f.show(),this.xCrosshair=f}},e.prototype.renderYCrosshairs=function(t,e){var i=this.getViewWithGeometry(this.view).getCoordinate();if(o.isPointInCoordinate(i,t)){var n,s;if(i.isRect){var l=void 0,u=void 0;i.isTransposed?(l={x:t.x,y:i.end.y},u={x:t.x,y:i.start.y}):(l={x:i.start.x,y:t.y},u={x:i.end.x,y:t.y}),n={start:l,end:u},s="Line"}else n={center:i.getCenter(),radius:o.getDistanceToCenter(i,t),startAngle:i.startAngle,endAngle:i.endAngle},s="Circle";delete(n=r.deepMix({container:this.getTooltipCrosshairsGroup()},n,r.get(e,"crosshairs",{}),this.getCrosshairsText("y",t,e))).type;var c=this.yCrosshair;c?i.isRect&&"circle"===c.get("type")||!i.isRect&&"line"===c.get("type")?(c=new a.Crosshair[s](n)).init():c.update(n):(c=new a.Crosshair[s](n)).init(),c.render(),c.show(),this.yCrosshair=c}},e.prototype.getCrosshairsText=function(t,e,i){var n=r.get(i,["crosshairs","text"]),a=r.get(i,["crosshairs","follow"]),o=this.items;if(n){var s=this.getViewWithGeometry(this.view),l=o[0],u=s.getXScale(),c=s.getYScales()[0],p=void 0,h=void 0;if(a){var f=this.view.getCoordinate().invert(e);p=u.invert(f.x),h=c.invert(f.y)}else p=l.data[u.field],h=l.data[c.field];var d="x"===t?p:h;return r.isFunction(n)?n=n(t,d,o,e):n.content=d,{text:n}}},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"})).toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||((t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.getTooltipItemsByHitShape=function(t,e,i){var n=[],r=t.container.getShape(e.x,e.y);if(r&&r.get("visible")&&r.get("origin")){var a=r.get("origin").mappingData,o=l.getTooltipItems(a,t,i);o.length&&n.push(o)}return n},e.prototype.getTooltipItemsByFindData=function(t,e,i){var n=[],r=t.dataArray;t.sort(r);for(var a=0,o=r;a<o.length;a++){var s=o[a],u=l.findDataByPoint(e,s,t);if(u){var c=t.getElementId(u),p=t.elementsMap[c];if("heatmap"===t.type||p.visible){var h=l.getTooltipItems(u,t,i);h.length&&n.push(h)}}}return n},e.prototype.findItemsFromView=function(t,e){if(!1===t.getOptions().tooltip)return[];for(var i=[],n=t.geometries,r=this.getTooltipCfg(),a=r.shared,o=r.title,s=0,l=n;s<l.length;s++){var u=l[s];if(u.visible&&!1!==u.tooltipOption){var c=u.type,p=void 0;(p=["point","edge","polygon"].includes(c)?this.getTooltipItemsByHitShape(u,e,o):["area","line","path","heatmap"].includes(c)||!1!==a?this.getTooltipItemsByFindData(u,e,o):this.getTooltipItemsByHitShape(u,e,o)).length&&i.push(p)}}for(var h=0,f=t.views;h<f.length;h++){var d=f[h];i=i.concat(this.findItemsFromView(d,e))}return i},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:r.find(t.views,(function(t){return e.getViewWithGeometry(t)}))},e}(t("./base").Controller);i.default=u},{"../../dependents":239,"../../util/coordinate":371,"../../util/graphics":375,"../../util/tooltip":383,"./base":222,"@antv/util":803,tslib:385}],229:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){function t(t,e,i){this.view=t,this.gEvent=e,this.data=i,this.type=e.type}return 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="+this.type+")]"},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}();i.default=n},{}],230:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./chart");Object.defineProperty(i,"Chart",{enumerable:!0,get:function(){return n.default}});var r=t("./view");Object.defineProperty(i,"View",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(i,"registerGeometry",{enumerable:!0,get:function(){return r.registerGeometry}});var a=t("./event");Object.defineProperty(i,"Event",{enumerable:!0,get:function(){return a.default}});var o=t("./controller");Object.defineProperty(i,"registerComponentController",{enumerable:!0,get:function(){return o.registerComponentController}})},{"./chart":219,"./controller":225,"./event":229,"./view":235}],231:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.calculatePadding=void 0;var n=t("@antv/util"),r=t("../../constant"),a=t("../../util/bbox"),o=t("../../util/padding"),s=t("./padding-cal");i.calculatePadding=function(t){var e=t.padding;if(!o.isAutoPadding(e))return o.parsePadding(e);var i=t.viewBBox,l=t.autoPadding,u=new s.PaddingCal;n.each(t.getComponents(),(function(t){var e=t.component,n=t.type;if(n!==r.COMPONENT_TYPE.GRID&&n!==r.COMPONENT_TYPE.TOOLTIP){var o=e.getLayoutBBox(),s=new a.BBox(o.x,o.y,o.width,o.height);if(n===r.COMPONENT_TYPE.AXIS){var l=s.exceed(i);u.shrink(l)}else{var c=t.direction;u.inc(s,c)}}}));var c=u.getPadding();if(l){var p=o.parsePadding(t.appendPadding);return[Math.max(l[0]-p[0],c[0]),Math.max(l[1]-p[1],c[1]),Math.max(l[2]-p[2],c[2]),Math.max(l[3]-p[3],c[3])]}return c}},{"../../constant":237,"../../util/bbox":370,"../../util/padding":380,"./padding-cal":233,"@antv/util":803}],232:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../../util/padding"),r=t("./auto");i.default=function(t){var e=t.getController("axis"),i=t.getController("legend"),a=t.getController("annotation"),o=t.getController("slider"),s=r.calculatePadding(t);t.coordinateBBox=t.viewBBox.shrink(s).shrink(n.parsePadding(t.appendPadding)),t.adjustCoordinate(),[e,o,i,a].forEach((function(t){t&&t.layout()}))}},{"../../util/padding":380,"./auto":231}],233:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.PaddingCal=void 0;var n=t("../../constant"),r=function(){function t(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.top=t,this.right=e,this.bottom=i,this.left=n}return t.prototype.shrink=function(t){var e=t[0],i=t[1],n=t[2],r=t[3];return this.top+=e,this.right+=i,this.bottom+=n,this.left+=r,this},t.prototype.inc=function(t,e){var i=t.width,r=t.height;switch(e){case n.DIRECTION.TOP:case n.DIRECTION.TOP_LEFT:case n.DIRECTION.TOP_RIGHT:this.top+=r;break;case n.DIRECTION.RIGHT:case n.DIRECTION.RIGHT_TOP:case n.DIRECTION.RIGHT_BOTTOM:this.right+=i;break;case n.DIRECTION.BOTTOM:case n.DIRECTION.BOTTOM_LEFT:case n.DIRECTION.BOTTOM_RIGHT:this.bottom+=r;break;case n.DIRECTION.LEFT:case n.DIRECTION.LEFT_TOP:case n.DIRECTION.LEFT_BOTTOM:this.left+=i}return this},t.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},t}();i.PaddingCal=r},{"../../constant":237}],234:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ScalePool=void 0;var n=t("@antv/util"),r=t("../../util/scale"),a=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,i,a){var o=i,s=this.getScaleMeta(a);if(0===e.length&&s){var l=s.scale,u={type:l.type};l.isCategory&&(u.values=l.values),o=n.deepMix(u,s.scaleDef,i)}var c=r.createScaleByField(t,e,o);return this.cacheScale(c,i,a),c},t.prototype.sync=function(){var t=this;this.syncScales.forEach((function(e,i){var r=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER,o=[];n.each(e,(function(e){var i=t.getScale(e);a=n.isNumber(i.max)?Math.max(a,i.max):a,r=n.isNumber(i.min)?Math.min(r,i.min):r,n.each(i.values,(function(t){o.includes(t)||o.push(t)}))})),n.each(e,(function(e){var i=t.getScale(e);i.isContinuous?i.change({min:r,max:a,values:o}):i.isCategory&&i.change({values:o})}))}))},t.prototype.cacheScale=function(t,e,i){var n=this.getScaleMeta(i);n&&n.scale.type===t.type?(r.syncScale(n.scale,t),n.scaleDef=e):(n={key:i,scale:t,scaleDef:e},this.scales.set(i,n));var a=this.getSyncKey(n);if(n.syncKey=a,this.removeFromSyncScales(i),a){var o=this.syncScales.get(a);o||(o=[],this.syncScales.set(a,o)),o.push(i)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var i=n.last(t.split("-")),r=this.syncScales.get(i);r&&r.length&&(e=this.getScaleMeta(r[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var i=e.syncKey,n=this.syncScales.get(i);if(n&&n.length){var r=n.indexOf(t);-1!==r&&n.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(i,n){var r=i.indexOf(t);if(-1!==r)return i.splice(r,1),0===i.length&&e.syncScales.delete(n),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,i=t.scaleDef,r=e.field,a=n.get(i,["sync"]);return!0===a?r:!1===a?void 0:a},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}();i.ScalePool=a},{"../../util/scale":381,"@antv/util":803}],235:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.registerGeometry=i.View=void 0;var n=t("tslib"),r=t("@antv/util"),a=t("../constant"),o=n.__importDefault(t("../base")),s=t("../facet"),l=t("../interaction"),u=t("../theme"),c=t("../util/bbox"),p=t("../util/coordinate"),h=t("../util/helper"),f=t("../util/tooltip"),d=t("./controller"),g=n.__importDefault(t("./controller/coordinate")),v=n.__importDefault(t("./event")),y=n.__importDefault(t("./layout")),m=t("./util/scale-pool"),b=t("../util/padding"),x=function(t){function e(e){var i=t.call(this,{visible:e.visible})||this;i.id=r.uniqueId("view"),i.views=[],i.geometries=[],i.controllers=[],i.interactions={},i.limitInPlot=!1,i.options={data:[],animate:!0},i.usedControllers=d.getComponentControllerNames(),i.scalePool=new m.ScalePool,i.layoutFunc=y.default,i.isPreMouseInPlot=!1,i.isDataChanged=!1,i.isCoordinateChanged=!1,i.createdScaleKeys=new Map,i.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var n=i.createViewEvent(t);i.doPlotEvent(n),i.emit(e,n)}},i.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var n=i.createViewEvent(t);i.emit(e,n)}};var a=e.parent,o=e.canvas,s=e.backgroundGroup,l=e.middleGroup,c=e.foregroundGroup,p=e.region,h=void 0===p?{start:{x:0,y:0},end:{x:1,y:1}}:p,f=e.padding,g=e.appendPadding,v=e.theme,b=e.options,x=e.limitInPlot;return i.parent=a,i.canvas=o,i.backgroundGroup=s,i.middleGroup=l,i.foregroundGroup=c,i.region=h,i.padding=f,i.appendPadding=g,i.options=n.__assign(n.__assign({},i.options),b),i.limitInPlot=x,i.themeObject=r.isObject(v)?r.deepMix({},u.getTheme("default"),v):u.getTheme(v),i.init(),i}return n.__extends(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.coordinateController=new g.default(this.options.coordinate),this.initOptions();for(var t=this.views,e=0;e<t.length;e++)t[e].init()},e.prototype.render=function(t){void 0===t&&(t=!1),this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_RENDER),this.paint(t),this.emit(a.VIEW_LIFE_CIRCLE.AFTER_RENDER),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,i=0;i<e.length;i++)e[i].clear();this.geometries=[];var n=this.controllers;for(i=0;i<n.length;i++)n[i].clear();this.createdScaleKeys.forEach((function(e,i){t.getRootView().scalePool.deleteScale(i)})),this.createdScaleKeys.clear();var r=this.views;for(i=0;i<r.length;i++)r[i].clear();this.emit(a.VIEW_LIFE_CIRCLE.AFTER_CLEAR)},e.prototype.destroy=function(){this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_DESTROY);var e=this.interactions;r.each(e,(function(t){t&&t.destroy()})),this.clear();for(var i=this.controllers,n=0,o=i.length;n<o;n++){i[n].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 i=this.geometries,n=0,r=i.length;n<r;n++){i[n].changeVisible(e)}var a=this.controllers;for(n=0,r=a.length;n<r;n++){a[n].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 r.set(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 r.isFunction(e)?(r.set(this.options,["filters",t],e),this):(!e&&r.get(this.options,["filters",t])&&delete this.options.filters[t],this)},e.prototype.axis=function(t,e){return r.isBoolean(t)?r.set(this.options,["axes"],t):r.set(this.options,["axes",t],e),this},e.prototype.legend=function(t,e){return r.isBoolean(t)?r.set(this.options,["legends"],t):r.isString(t)?r.set(this.options,["legends",t],e):r.set(this.options,["legends"],t),this},e.prototype.scale=function(t,e){var i=this;return r.isString(t)?r.set(this.options,["scales",t],e):r.isObject(t)&&r.each(t,(function(t,e){r.set(i.options,["scales",e],t)})),this},e.prototype.tooltip=function(t){return r.set(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 r.isString(t)?r.set(this.options,"coordinate",{type:t,cfg:e}):r.set(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 i=s.getFacet(t);if(!i)throw new Error("facet '"+t+"' is not exist!");return this.facetInstance=new i(this,n.__assign(n.__assign({},e),{type:t})),this},e.prototype.animate=function(t){return r.set(this.options,"animate",t),this},e.prototype.updateOptions=function(t){return this.clear(),r.mix(this.options,t),this.initOptions(),this},e.prototype.option=function(t,i){if(e.prototype[t])throw new Error("Can't use built in variable name \""+t+'", please change another one.');return r.set(this.options,t,i),this},e.prototype.theme=function(t){return this.themeObject=r.isObject(t)?r.deepMix({},this.themeObject,t):u.getTheme(t),this},e.prototype.interaction=function(t,e){var i=this.interactions[t];i&&i.destroy();var n=l.createInteraction(t,this,e);return n&&(n.init(),this.interactions[t]=n),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(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA),this.data(t),this.paint(!0);for(var e=this.views,i=0,n=e.length;i<n;i++){e[i].changeData(t)}this.emit(a.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA)},e.prototype.createView=function(t){var i={data:this.options.data,scales:r.clone(this.options.scales),axes:r.clone(this.options.axes),coordinate:r.clone(this.coordinateController.getOption()),tooltip:r.clone(this.options.tooltip),legends:r.clone(this.options.legends),animate:this.options.animate,visible:this.visible},o=new e(n.__assign(n.__assign({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:a.GROUP_Z_INDEX.BG}),middleGroup:this.middleGroup.addGroup({zIndex:a.GROUP_Z_INDEX.MID}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:a.GROUP_Z_INDEX.FORE}),theme:this.themeObject,padding:this.padding},t),{options:n.__assign(n.__assign({},i),r.get(t,"options",{}))}));return this.views.push(o),o},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=r.remove(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={};return this.geometries.map((function(e){var i=e.getYScale(),n=i.field;if(!t[n])return t[n]=!0,i}))},e.prototype.getScalesByDim=function(t){for(var e=this.geometries,i={},n=0,r=e.length;n<r;n++){var a=e[n],o="x"===t?a.getXScale():a.getYScale();o&&!i[o.field]&&(i[o.field]=o)}return i},e.prototype.getScaleByField=function(t,e){var i=e||this.getScaleKey(t);return this.getRootView().scalePool.getScale(i)},e.prototype.getOptions=function(){return this.options},e.prototype.getData=function(){return this.filteredData},e.prototype.getLayer=function(t){return t===a.LAYER.BG?this.backgroundGroup:t===a.LAYER.MID?this.middleGroup:(a.LAYER.FORE,this.foregroundGroup)},e.prototype.isPointInPlot=function(t){return p.isPointInCoordinate(this.getCoordinate(),t)},e.prototype.getLegendAttributes=function(){return r.flatten(this.geometries.map((function(t){return t.getGroupAttributes()})))},e.prototype.getGroupScales=function(){var t=this.geometries.map((function(t){return t.getGroupScales()}));return h.uniq(r.flatten(t))},e.prototype.getCanvas=function(){return this.getRootView().canvas},e.prototype.getRootView=function(){for(var t=this;t.parent;)t=t.parent;return t},e.prototype.getXY=function(t){var e,i,n=this.getCoordinate(),a=this.getScalesByDim("x"),o=this.getScalesByDim("y");if(r.each(t,(function(t,n){a[n]&&(e=a[n].scale(t)),o[n]&&(i=o[n].scale(t))})),!r.isNil(e)&&!r.isNil(i))return n.convert({x:e,y:i})},e.prototype.getController=function(t){return r.find(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,i=[],n=0,r=e.length;n<r;n++){var a=e[n],o=a.dataArray;a.sort(o);for(var s=void 0,l=0,u=o.length;l<u;l++){var c=o[l];(s=f.findDataByPoint(t,c,a))&&i.push(s)}}var p=this.views;for(n=0,r=p.length;n<r;n++){var h=p[n].getSnapRecords(t);i=i.concat(h)}return i},e.prototype.getComponents=function(){for(var t=[],e=this.controllers,i=0,n=e.length;i<n;i++){var r=e[i];t=t.concat(r.getComponents())}return t},e.prototype.filterData=function(t){var e=this.options.filters;return 0===r.size(e)?t:r.filter(t,(function(t,i){return Object.keys(e).every((function(n){return(0,e[n])(t[n],t,i)}))}))},e.prototype.filterFieldData=function(t,e){var i=this.options.filters,n=r.get(i,t);return r.isUndefined(n)?e:e.filter((function(e,i){return n(e[t],e,i)}))},e.prototype.adjustCoordinate=function(){var t=this.getCoordinate(),e=t.start,i=t.end,n=this.coordinateBBox.bl,a=this.coordinateBBox.tr;r.isEqual(e,n)&&r.isEqual(i,a)?this.isCoordinateChanged=!1:(this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(n,a))},e.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_PAINT),this.renderBackgroundStyleShape(),this.renderLayoutRecursive(t),this.renderPaintRecursive(t),this.emit(a.VIEW_LIFE_CIRCLE.AFTER_PAINT),this.isDataChanged=!1},e.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=r.get(this.themeObject,"background");if(t){this.backgruondStyleRectShape||(this.backgruondStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{zIndex:-1}}));var e=this.viewBBox,i=e.x,n=e.y,a=e.width,o=e.height;this.backgruondStyleRectShape.attr({fill:t,x:i,y:n,width:a,height:o})}else this.backgruondStyleRectShape&&(this.backgruondStyleRectShape.remove(!0),this.backgruondStyleRectShape=void 0)}},e.prototype.renderLayoutRecursive=function(t){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.doLayout();var e=this.viewBBox,i=this.coordinateBBox;b.isAutoPadding(this.padding)&&(this.autoPadding=[i.tl.y-e.tl.y,e.tr.x-i.tr.x,e.bl.y-i.bl.y,i.tl.x-e.tl.x]);for(var n=this.views,r=0,a=n.length;r<a;r++){n[r].renderLayoutRecursive(t)}},e.prototype.renderPaintRecursive=function(t){if(this.limitInPlot){var e=this.middleGroup,i=p.getCoordinateClipCfg(this.coordinateInstance),n=i.type,r=i.attrs;e.setClip({type:n,attrs:r})}this.paintGeometries(t),this.renderComponents(t);for(var a=this.views,o=0,s=a.length;o<s;o++){a[o].renderPaintRecursive(t)}},e.prototype.createScale=function(t,e,i,a){var o=r.get(this.options.scales,[t]),s=n.__assign(n.__assign({},o),i);return this.parent?this.parent.createScale(t,e,s,a):this.scalePool.createScale(t,e,s,a)},e.prototype.renderDataRecursive=function(t){this.doFilterData(),this.createCoordinate(),this.initGeometries(t),this.renderFacet(t);for(var e=this.views,i=0,n=e.length;i<n;i++){e[i].renderDataRecursive(t)}},e.prototype.calculateViewBBox=function(){var t,e,i,n;if(this.parent){var r=this.parent.coordinateBBox;t=r.x,e=r.y,i=r.width,n=r.height}else t=0,e=0,i=this.canvas.get("width"),n=this.canvas.get("height");var a=this.region,o=a.start,s=a.end,l=new c.BBox(t+i*o.x,e+n*o.y,i*(s.x-o.x),n*(s.y-o.y));this.viewBBox&&this.viewBBox.isEqual(l)||(this.viewBBox=new c.BBox(t+i*o.x,e+n*o.y,i*(s.x-o.x),n*(s.y-o.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,i=t.length;e<i;e++){var n=t[e],r=d.getComponentController(n);r&&this.controllers.push(new r(this))}},e.prototype.createViewEvent=function(t){var e=t.shape,i=t.name,n=e?e.get("origin"):null,r=new v.default(this,t,n);return r.type=i,r},e.prototype.doPlotEvent=function(t){var e=t.type,i={x:t.x,y:t.y};if(["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"].includes(e)){var n=this.isPointInPlot(i);if(n){var r="plot:"+e;t.type=r,this.emit(r,t),"mouseleave"!==e&&"touchend"!==e||(this.isPreMouseInPlot=!1)}"mousemove"===e||"touchmove"===e?(this.isPreMouseInPlot&&!n?("mousemove"===e&&(t.type=a.PLOT_EVENTS.MOUSE_LEAVE,this.emit(a.PLOT_EVENTS.MOUSE_LEAVE,t)),t.type=a.PLOT_EVENTS.LEAVE,this.emit(a.PLOT_EVENTS.LEAVE,t)):!this.isPreMouseInPlot&&n&&("mousemove"===e&&(t.type=a.PLOT_EVENTS.MOUSE_ENTER,this.emit(a.PLOT_EVENTS.MOUSE_ENTER,t)),t.type=a.PLOT_EVENTS.ENTER,this.emit(a.PLOT_EVENTS.ENTER,t)),this.isPreMouseInPlot=n):"mouseleave"!==e&&"touchend"!==e||this.isPreMouseInPlot&&("mouseleave"===e&&(t.type=a.PLOT_EVENTS.MOUSE_LEAVE,this.emit(a.PLOT_EVENTS.MOUSE_LEAVE,t)),t.type=a.PLOT_EVENTS.LEAVE,this.emit(a.PLOT_EVENTS.LEAVE,t),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(),i=r.get(this.options,"scales",{}),n=this.geometries,a=0,o=n.length;a<o;a++){var s=n[a];s.scales=this.getGeometryScales();var l={coordinate:e,scaleDefs:i,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?s.update(l):s.init(l)}this.adjustScales()},e.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),i=this.getOptions(),n=i.data,r=i.scales,a=void 0===r?{}:r,o=this.filteredData,s=0,l=t.length;s<l;s++){var u=t[s],c=a[u],p=this.getScaleKey(u);this.createScale(u,e.includes(u)?n:o,c,p),this.createdScaleKeys.set(p,!0)}},e.prototype.syncScale=function(){this.getRootView().scalePool.sync()},e.prototype.getGeometryScales=function(){for(var t=this.getScaleFields(),e={},i=0;i<t.length;i++){var n=t[i];e[n]=this.getScaleByField(n)}return e},e.prototype.getScaleFields=function(){for(var t=[],e={},i=this.geometries,n=0;n<i.length;n++){var r=i[n].getScaleFields();h.uniq(r,t,e)}return t},e.prototype.getGroupedFields=function(){for(var t=[],e={},i=this.geometries,n=0;n<i.length;n++){var r=i[n].getGroupFields();h.uniq(r,t,e)}return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=n.__spreadArrays([this.getXScale()],this.getYScales()).filter((function(t){return!!t})),i=this.getCoordinate(),a=this.options.scales;r.each(e,(function(e){var n=e.field,o=e.values,s=e.isCategory,l=e.isIdentity;if((s||l)&&o&&!r.get(a,[n,"range"])){var u=o.length,c=void 0;if(1===u)c=[.5,1];else{var h=0;c=p.isFullCircle(i)?i.isTransposed?[(h=1/u*r.get(t.theme,"widthRatio.multiplePie",1/1.3))/2,1-h/2]:[0,1-1/u]:[h=1/u/2,1-h]}e.range=c}}))},e.prototype.initComponents=function(t){for(var e=this.controllers,i=0;i<e.length;i++){var n=e[i];t?n.update():(n.clear(),n.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,i=this.getCoordinate(),n={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,a=0;a<r.length;a++){var o=r[a];o.coordinate=i,o.canvasRegion=n,e||o.animate(!1),o.paint(t)}},e.prototype.renderComponents=function(t){for(var e=0;e<this.getComponents().length;e++){this.getComponents()[e].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(){for(var t=this.options,e=t.geometries,i=void 0===e?[]:e,n=t.interactions,r=void 0===n?[]:n,a=t.views,o=void 0===a?[]:a,s=t.annotations,l=void 0===s?[]:s,u=0;u<i.length;u++){var c=i[u];this.createGeometry(c)}for(var p=0;p<r.length;p++){var h=r[p],f=h.type,d=h.cfg;this.interaction(f,d)}for(var g=0;g<o.length;g++){var v=o[g];this.createView(v)}for(var y=this.getController("annotation"),m=0;m<l.length;m++){var b=l[m];y.annotation(b)}},e.prototype.createGeometry=function(t){var e=t.type,i=t.cfg,n=void 0===i?{}:i;if(this[e]){var a=this[e](n);r.each(t,(function(t,e){r.isFunction(a[e])&&a[e](t)}))}},e.prototype.getScaleKey=function(t){return this.id+"-"+t},e}(o.default);i.View=x,i.registerGeometry=function(t,e){x.prototype[t.toLowerCase()]=function(t){void 0===t&&(t={});var i=n.__assign({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),r=new e(i);return this.geometries.push(r),r}},i.default=x},{"../base":218,"../constant":237,"../facet":243,"../interaction":362,"../theme":365,"../util/bbox":370,"../util/coordinate":371,"../util/helper":377,"../util/padding":380,"../util/tooltip":383,"./controller":225,"./controller/coordinate":223,"./event":229,"./layout":232,"./util/scale-pool":234,"@antv/util":803,tslib:385}],236:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../animate"),o=t("../geometry/label"),s=t("../util/graphics"),l=t("../util/transform"),u=function(){function t(t){this.shapesMap={},this.lastShapesMap={};var e=t.layout,i=t.container;this.layout=e,this.container=i}return t.prototype.render=function(t,e,i){var o=this;void 0===i&&(i=!1),this.shapesMap={};var l=this.container,u=this.createOffscreenGroup();if(t.length){for(var c=0,p=t;c<p.length;c++){var h=p[c];h&&this.renderLabel(h,u)}this.doLayout(t,e),this.renderLabelLine(t),this.adjustLabel(t)}var f=this.lastShapesMap,d=this.shapesMap;r.each(d,(function(t,e){if(t.destroyed)delete d[e];else{if(f[e]){var u=t.get("data"),c=t.get("origin"),p=t.get("coordinate"),h=f[e],g=t.get("animateCfg");h.set("data",u),h.set("origin",c),h.set("animateCfg",g),h.set("coordinate",p);var v=r.get(g,"update"),y=h.getChildren();t.getChildren().map((function(t,e){var i=y[e];i.set("data",u),i.set("origin",c),i.set("animateCfg",g),i.set("coordinate",p);var n=s.getReplaceAttrs(i,t);v?a.doAnimate(i,v,{toAttrs:n,coordinate:p}):i.attr(n)})),o.shapesMap[e]=h}else{l.add(t);var m=r.get(t.get("animateCfg"),i?"enter":"appear");m&&a.doAnimate(t,m,{toAttrs:n.__assign({},t.attr()),coordinate:t.get("coordinate")})}delete f[e]}})),r.each(f,(function(t){var e=r.get(t.get("animateCfg"),"leave");e?a.doAnimate(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.lastShapesMap=d,u.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 i,a=t.id,o=t.data,s=t.mappingData,u=t.coordinate,c=t.animate,p=t.content,h={id:a,data:o,origin:s,coordinate:u},f=e.addGroup(n.__assign({name:"label",animateCfg:!1!==this.animate&&null!==c&&!1!==c&&r.deepMix({},this.animate,c)},h));if(p.isGroup&&p.isGroup()||p.isShape&&p.isShape()){var d=p.getCanvasBBox(),g=d.width,v=d.height,y=r.get(t,"textAlign","left"),m=t.x,b=t.y-v/2;"center"===y?m-=g/2:"right"!==y&&"end"!==y||(m-=g),l.translate(p,m,b),i=p,f.add(p)}else i=f.addShape("text",n.__assign({attrs:n.__assign({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:r.get(t,"textBaseline","middle"),text:t.content},t.style)},h));t.rotate&&l.rotate(i,t.rotate),this.shapesMap[a]=f},t.prototype.doLayout=function(t,e){var i=this;if(this.layout){var n=r.isArray(this.layout)?this.layout:[this.layout];r.each(n,(function(n){var a=o.getGeometryLabelLayout(r.get(n,"type",""));if(a){var s=[],l=[];r.each(i.shapesMap,(function(t,i){s.push(t),l.push(e[i])})),a(t,s,l,i.region,n.cfg)}}))}},t.prototype.renderLabelLine=function(t){var e=this;r.each(t,(function(t){var i=r.get(t,"coordinate");if(t&&i){var a=i.getCenter(),o=i.getRadius();if(t.labelLine){var l=r.get(t,"labelLine",{}),u=t.id,c=l.path;if(!c){var p=s.polarToCartesian(a.x,a.y,o,t.angle);c=[["M",p.x,p.y],["L",t.x,t.y]]}var h=e.shapesMap[u];h.destroyed||h.addShape("path",{capture:!1,attrs:n.__assign({path:c,stroke:t.color?t.color:r.get(t,["style","fill"],"#000"),fill:null},l.style),id:u,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},t.prototype.adjustLabel=function(t){var e=this;r.each(t,(function(t){if(t){var i=t.id,n=e.shapesMap[i];if(!n.destroyed){var r=n.find((function(t){return"text"===t.get("type")}));r&&(t.offsetX&&r.attr("x",r.attr("x")+t.offsetX),t.offsetY&&r.attr("y",r.attr("y")+t.offsetY))}}}))},t}();i.default=u},{"../animate":217,"../geometry/label":256,"../util/graphics":375,"../util/transform":384,"@antv/util":803,tslib:385}],237:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.COMPONENT_MAX_VIEW_PERCENTAGE=i.MIN_CHART_HEIGHT=i.MIN_CHART_WIDTH=i.FIELD_ORIGIN=i.GROUP_ATTRS=i.ELEMENT_STATE=i.PLOT_EVENTS=i.VIEW_LIFE_CIRCLE=i.GROUP_Z_INDEX=i.COMPONENT_TYPE=i.DIRECTION=i.LAYER=void 0,function(t){t.FORE="fore",t.MID="mid",t.BG="bg"}(i.LAYER||(i.LAYER={})),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"}(i.DIRECTION||(i.DIRECTION={})),function(t){t.AXIS="axis",t.GRID="grid",t.LEGEND="legend",t.TOOLTIP="tooltip",t.ANNOTATION="annotation",t.OTHER="other"}(i.COMPONENT_TYPE||(i.COMPONENT_TYPE={})),i.GROUP_Z_INDEX={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"}(i.VIEW_LIFE_CIRCLE||(i.VIEW_LIFE_CIRCLE={})),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"}(i.PLOT_EVENTS||(i.PLOT_EVENTS={})),function(t){t.ACTIVE="active",t.INACTIVE="inactive",t.SELECTED="selected",t.DEFAULT="default"}(i.ELEMENT_STATE||(i.ELEMENT_STATE={})),i.GROUP_ATTRS=["color","shape","size"],i.FIELD_ORIGIN="_origin",i.MIN_CHART_WIDTH=1,i.MIN_CHART_HEIGHT=1,i.COMPONENT_MAX_VIEW_PERCENTAGE=.25},{}],238:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Types=i.VERSION=void 0;var n=t("tslib");i.VERSION="4.0.15";var r=t("./chart");Object.defineProperty(i,"Chart",{enumerable:!0,get:function(){return r.Chart}}),Object.defineProperty(i,"View",{enumerable:!0,get:function(){return r.View}}),Object.defineProperty(i,"Event",{enumerable:!0,get:function(){return r.Event}});var a=t("./chart/controller/base");Object.defineProperty(i,"ComponentController",{enumerable:!0,get:function(){return a.Controller}});var o=t("./geometry/base");Object.defineProperty(i,"Geometry",{enumerable:!0,get:function(){return o.default}});var s=t("./geometry/label/base");Object.defineProperty(i,"GeometryLabel",{enumerable:!0,get:function(){return s.default}});var l=t("./interaction");Object.defineProperty(i,"Interaction",{enumerable:!0,get:function(){return l.Interaction}});var u=t("./facet");Object.defineProperty(i,"Facet",{enumerable:!0,get:function(){return u.Facet}});var c=t("./interaction/action/base");Object.defineProperty(i,"InteractionAction",{enumerable:!0,get:function(){return c.default}});var p=t("./chart");Object.defineProperty(i,"registerComponentController",{enumerable:!0,get:function(){return p.registerComponentController}});var h=t("./chart");Object.defineProperty(i,"registerGeometry",{enumerable:!0,get:function(){return h.registerGeometry}});var f=t("./geometry/shape/base");Object.defineProperty(i,"registerShape",{enumerable:!0,get:function(){return f.registerShape}}),Object.defineProperty(i,"registerShapeFactory",{enumerable:!0,get:function(){return f.registerShapeFactory}}),Object.defineProperty(i,"getShapeFactory",{enumerable:!0,get:function(){return f.getShapeFactory}});var d=t("./geometry/label");Object.defineProperty(i,"registerGeometryLabel",{enumerable:!0,get:function(){return d.registerGeometryLabel}}),Object.defineProperty(i,"registerGeometryLabelLayout",{enumerable:!0,get:function(){return d.registerGeometryLabelLayout}}),Object.defineProperty(i,"getGeometryLabel",{enumerable:!0,get:function(){return d.getGeometryLabel}}),Object.defineProperty(i,"getGeometryLabelLayout",{enumerable:!0,get:function(){return d.getGeometryLabelLayout}});var g=t("./interaction");Object.defineProperty(i,"getInteraction",{enumerable:!0,get:function(){return g.getInteraction}}),Object.defineProperty(i,"registerInteraction",{enumerable:!0,get:function(){return g.registerInteraction}}),Object.defineProperty(i,"registerAction",{enumerable:!0,get:function(){return g.registerAction}}),Object.defineProperty(i,"getActionClass",{enumerable:!0,get:function(){return g.getActionClass}});var v=t("./facet");Object.defineProperty(i,"getFacet",{enumerable:!0,get:function(){return v.getFacet}}),Object.defineProperty(i,"registerFacet",{enumerable:!0,get:function(){return v.registerFacet}});var y=t("./theme");Object.defineProperty(i,"getTheme",{enumerable:!0,get:function(){return y.getTheme}}),Object.defineProperty(i,"registerTheme",{enumerable:!0,get:function(){return y.registerTheme}});var m=t("./engine");Object.defineProperty(i,"registerEngine",{enumerable:!0,get:function(){return m.registerEngine}}),Object.defineProperty(i,"getEngine",{enumerable:!0,get:function(){return m.getEngine}});var b=t("./animate/animation");Object.defineProperty(i,"registerAnimation",{enumerable:!0,get:function(){return b.registerAnimation}}),Object.defineProperty(i,"getAnimation",{enumerable:!0,get:function(){return b.getAnimation}});var x=t("./constant");Object.defineProperty(i,"LAYER",{enumerable:!0,get:function(){return x.LAYER}}),Object.defineProperty(i,"DIRECTION",{enumerable:!0,get:function(){return x.DIRECTION}});var _=n.__importStar(t("./interface"));i.Types=_},{"./animate/animation":209,"./chart":230,"./chart/controller/base":222,"./constant":237,"./engine":240,"./facet":243,"./geometry/base":250,"./geometry/label":256,"./geometry/label/base":255,"./geometry/shape/base":275,"./interaction":362,"./interaction/action/base":311,"./interface":364,"./theme":365,tslib:385}],239:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Slider=i.HtmlTooltip=i.ContinuousLegend=i.CategoryLegend=i.CircleGrid=i.LineGrid=i.CircleAxis=i.LineAxis=i.Annotation=i.Crosshair=i.Component=i.GroupComponent=i.HtmlComponent=void 0;var n=t("@antv/g-base");Object.defineProperty(i,"Event",{enumerable:!0,get:function(){return n.Event}}),Object.defineProperty(i,"AbstractGroup",{enumerable:!0,get:function(){return n.AbstractGroup}}),Object.defineProperty(i,"AbstractShape",{enumerable:!0,get:function(){return n.AbstractShape}});var r=t("@antv/adjust/lib/factory");Object.defineProperty(i,"registerAdjust",{enumerable:!0,get:function(){return r.registerAdjust}}),Object.defineProperty(i,"getAdjust",{enumerable:!0,get:function(){return r.getAdjust}}),Object.defineProperty(i,"Adjust",{enumerable:!0,get:function(){return r.Adjust}});var a=t("@antv/attr/lib/factory");Object.defineProperty(i,"getAttribute",{enumerable:!0,get:function(){return a.getAttribute}}),Object.defineProperty(i,"Attribute",{enumerable:!0,get:function(){return a.Attribute}});var o=t("@antv/attr");Object.defineProperty(i,"Color",{enumerable:!0,get:function(){return o.Color}});var s=t("@antv/coord");Object.defineProperty(i,"getCoordinate",{enumerable:!0,get:function(){return s.getCoordinate}}),Object.defineProperty(i,"registerCoordinate",{enumerable:!0,get:function(){return s.registerCoordinate}}),Object.defineProperty(i,"Coordinate",{enumerable:!0,get:function(){return s.Coordinate}});var l=t("@antv/scale");Object.defineProperty(i,"getScale",{enumerable:!0,get:function(){return l.getScale}}),Object.defineProperty(i,"registerScale",{enumerable:!0,get:function(){return l.registerScale}}),Object.defineProperty(i,"Scale",{enumerable:!0,get:function(){return l.Scale}});var u=t("@antv/component");Object.defineProperty(i,"Annotation",{enumerable:!0,get:function(){return u.Annotation}}),Object.defineProperty(i,"Component",{enumerable:!0,get:function(){return u.Component}}),Object.defineProperty(i,"Crosshair",{enumerable:!0,get:function(){return u.Crosshair}}),Object.defineProperty(i,"GroupComponent",{enumerable:!0,get:function(){return u.GroupComponent}}),Object.defineProperty(i,"HtmlComponent",{enumerable:!0,get:function(){return u.HtmlComponent}}),Object.defineProperty(i,"Slider",{enumerable:!0,get:function(){return u.Slider}});var c=u.Axis.Line,p=u.Axis.Circle;i.LineAxis=c,i.CircleAxis=p;var h=u.Grid.Line,f=u.Grid.Circle;i.LineGrid=h,i.CircleGrid=f;var d=u.Legend.Category,g=u.Legend.Continuous;i.CategoryLegend=d,i.ContinuousLegend=g;var v=u.Tooltip.Html;i.HtmlTooltip=v},{"@antv/adjust/lib/factory":8,"@antv/attr":17,"@antv/attr/lib/factory":16,"@antv/component":51,"@antv/coord":83,"@antv/g-base":115,"@antv/scale":747}],240:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.registerEngine=i.getEngine=void 0;var n={};i.getEngine=function(t){var e=n[t];if(!e)throw new Error("G engine '"+t+"' is not exist, please register it at first.");return e},i.registerEngine=function(t,e){n[t]=e}},{}],241:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../constant"),o=t("../util/facet"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){return r.deepMix({},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 i=2*Math.PI/t,n=-1*Math.PI/2+i*e,r=.5/(1+1/Math.sin(i/2)),a=o.getAnglePoint({x:.5,y:.5},.5-r,n),s=5*Math.PI/4,l=1*Math.PI/4;return{start:o.getAnglePoint(a,r,s),end:o.getAnglePoint(a,r,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,i=this.cfg,n=i.fields,a=i.type,o=n[0];if(!o)throw new Error("No `fields` specified!");var s=this.getFieldValues(t,o),l=s.length,u=[];return s.forEach((function(i,n){var c=[{field:o,value:i,values:s}],p=r.filter(t,e.getFacetDataFilter(c)),h={type:a,data:p,region:e.getRegion(l,n),columnValue:i,columnField:o,columnIndex:n,columnValuesLength:l,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};u.push(h)})),u},e.prototype.getXAxisOption=function(t,e,i,n){return i},e.prototype.getYAxisOption=function(t,e,i,n){return i},e.prototype.renderTitle=function(){var t=this;r.each(this.facets,(function(e){var i=e.columnValue,n=e.view,s=r.get(t.cfg.title,"formatter"),l=r.deepMix({position:["50%","0%"],content:s?s(i):i},o.getFactTitleConfig(a.DIRECTION.TOP),t.cfg.title);n.annotation().text(l)}))},e}(t("./facet").Facet);i.default=s},{"../constant":237,"../util/facet":374,"./facet":242,"@antv/util":803,tslib:385}],242:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Facet=void 0;var n=t("@antv/util"),r=t("../constant"),a=t("../util/axis"),o=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=n.deepMix({},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,i=t.data,n=t.padding,r=void 0===n?this.cfg.padding:n,a=this.view.createView({region:e,padding:r});a.data(i||[]),t.view=a,this.beforeEachView(a,t);var o=this.cfg.eachView;return o&&o(a,t),this.afterEachView(a,t),a},t.prototype.createContainer=function(){return this.view.getLayer(r.LAYER.FORE).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;n.each(this.facets,(function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)}))},t.prototype.getFieldValues=function(t,e){var i=[],r={};return n.each(t,(function(t){var a=t[e];n.isNil(a)||r[a]||(i.push(a),r[a]=!0)})),i},t.prototype.getRegion=function(t,e,i,n){var r=1/(0===e?1:e),a=1/(0===t?1:t);return{start:{x:r*i,y:a*n},end:{x:r*(i+1),y:a*(n+1)}}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},t.prototype.processAxis=function(t,e){var i=t.getOptions(),r=i.coordinate,o=t.geometries;if("rect"===n.get(r,"type","rect")&&o.length){n.isNil(i.axes)&&(i.axes={});var s=i.axes,l=o[0].getXYFields(),u=l[0],c=l[1],p=a.getAxisOption(s,u),h=a.getAxisOption(s,c);!1!==p&&(i.axes[u]=this.getXAxisOption(u,s,p,e)),!1!==h&&(i.axes[c]=this.getYAxisOption(c,s,h,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return n.every(t,(function(t){var i=t.field,r=t.value;return!(!n.isNil(r)&&i)||e[i]===r}))}},t}();i.Facet=o},{"../constant":237,"../util/axis":369,"@antv/util":803}],243:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.registerFacet=i.getFacet=void 0;var n=t("@antv/util"),r=t("./facet");Object.defineProperty(i,"Facet",{enumerable:!0,get:function(){return r.Facet}});var a={};i.getFacet=function(t){return a[n.lowerCase(t)]},i.registerFacet=function(t,e){a[n.lowerCase(t)]=e}},{"./facet":242,"@antv/util":803}],244:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../constant"),o=t("../util/facet"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){return r.deepMix({},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,i=this.cfg.fields,n=this.cfg.cols,a=i[0];if(!a)throw new Error("No `fields` specified!");var o=this.getFieldValues(t,a),s=o.length;n=n||s;var l=this.getPageCount(s,n),u=[];return o.forEach((function(i,c){var p=e.getRowCol(c,n),h=p.row,f=p.col,d=[{field:a,value:i,values:o}],g=r.filter(t,e.getFacetDataFilter(d)),v={type:e.cfg.type,data:g,region:e.getRegion(l,n,f,h),columnValue:i,rowValue:i,columnField:a,rowField:null,columnIndex:f,rowIndex:h,columnValuesLength:n,rowValuesLength:l,total:s};u.push(v)})),u},e.prototype.getXAxisOption=function(t,e,i,r){return r.rowIndex!==r.rowValuesLength-1&&r.columnValuesLength*r.rowIndex+r.columnIndex+1+r.columnValuesLength<=r.total?n.__assign(n.__assign({},i),{label:null,title:null}):i},e.prototype.getYAxisOption=function(t,e,i,r){return 0!==r.columnIndex?n.__assign(n.__assign({},i),{title:null,label:null}):i},e.prototype.renderTitle=function(){var t=this;r.each(this.facets,(function(e){var i=e.columnValue,n=e.view,s=r.get(t.cfg.title,"formatter"),l=r.deepMix({position:["50%","0%"],content:s?s(i):i},o.getFactTitleConfig(a.DIRECTION.TOP),t.cfg.title);n.annotation().text(l)}))},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){return{row:Math.floor(t/e),col:t%e}},e}(t("./facet").Facet);i.default=s},{"../constant":237,"../util/facet":374,"./facet":242,"@antv/util":803,tslib:385}],245:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../constant"),o=t("../util/facet"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){return r.deepMix({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:n.__assign({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:n.__assign({},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,i=e.fields,n=e.type,r=i.length,a=r,o=[],s=0;s<a;s++)for(var l=i[s],u=0;u<r;u++){var c=i[u],p={type:n,data:t,region:this.getRegion(r,a,s,u),columnValue:l,rowValue:c,columnField:l,rowField:c,columnIndex:s,rowIndex:u,columnValuesLength:a,rowValuesLength:r};o.push(p)}return o},e.prototype.getXAxisOption=function(t,e,i,r){return r.rowIndex!==r.rowValuesLength-1?n.__assign(n.__assign({},i),{label:null,title:null}):i},e.prototype.getYAxisOption=function(t,e,i,r){return 0!==r.columnIndex?n.__assign(n.__assign({},i),{title:null,label:null}):i},e.prototype.renderTitle=function(){var t=this;r.each(this.facets,(function(e,i){var n=e.columnIndex,s=e.rowIndex,l=e.columnValuesLength,u=(e.rowValuesLength,e.columnValue),c=e.rowValue,p=e.view;if(0===s){var h=r.get(t.cfg.columnTitle,"formatter"),f=r.deepMix({position:["50%","0%"],content:h?h(u):u},o.getFactTitleConfig(a.DIRECTION.TOP),t.cfg.columnTitle);p.annotation().text(f)}if(n===l-1){h=r.get(t.cfg.rowTitle,"formatter"),f=r.deepMix({position:["100%","50%"],content:h?h(c):c},o.getFactTitleConfig(a.DIRECTION.RIGHT),t.cfg.rowTitle);p.annotation().text(f)}}))},e}(t("./facet").Facet);i.default=s},{"../constant":237,"../util/facet":374,"./facet":242,"@antv/util":803,tslib:385}],246:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../constant"),o=t("../util/facet"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultCfg=function(){return r.deepMix({},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,i,n=this,a=this.cfg.fields[0],o=[],s=1,l=1,u=[""],c=[""];return this.cfg.transpose?(e=a,u=this.getFieldValues(t,e).slice(0,2),s=u.length):(i=a,c=this.getFieldValues(t,i).slice(0,2),l=c.length),u.forEach((function(a,p){c.forEach((function(h,f){var d=[{field:e,value:a,values:u},{field:i,value:h,values:c}],g=r.filter(t,n.getFacetDataFilter(d)),v={type:n.cfg.type,data:g,region:n.getRegion(l,s,p,f),columnValue:a,rowValue:h,columnField:e,rowField:i,columnIndex:p,rowIndex:f,columnValuesLength:s,rowValuesLength:l};o.push(v)}))})),o},e.prototype.getXAxisOption=function(t,e,i,r){return 1===r.columnIndex||1===r.rowIndex?n.__assign(n.__assign({},i),{label:null,title:null}):i},e.prototype.getYAxisOption=function(t,e,i,n){return i},e.prototype.renderTitle=function(){var t=this;r.each(this.facets,(function(e,i){var n=e.columnValue,s=e.rowValue,l=e.view,u=r.get(t.cfg.title,"formatter");if(t.cfg.transpose){var c=r.deepMix({position:["50%","0%"],content:u?u(n):n},o.getFactTitleConfig(a.DIRECTION.TOP),t.cfg.title);l.annotation().text(c)}else{c=r.deepMix({position:["100%","50%"],content:u?u(s):s},o.getFactTitleConfig(a.DIRECTION.RIGHT),t.cfg.title);l.annotation().text(c)}}))},e}(t("./facet").Facet);i.default=s},{"../constant":237,"../util/facet":374,"./facet":242,"@antv/util":803,tslib:385}],247:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../constant"),o=t("../util/facet"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.getDefaultCfg=function(){return r.deepMix({},t.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:n.__assign({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:n.__assign({},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,i=this.cfg.fields,n=i[0],a=i[1],o=[],s=1,l=1,u=[""],c=[""];return n&&(u=this.getFieldValues(t,n),s=u.length),a&&(c=this.getFieldValues(t,a),l=c.length),u.forEach((function(i,p){c.forEach((function(h,f){var d=[{field:n,value:i,values:u},{field:a,value:h,values:c}],g=r.filter(t,e.getFacetDataFilter(d)),v={type:e.cfg.type,data:g,region:e.getRegion(l,s,p,f),columnValue:i,rowValue:h,columnField:n,rowField:a,columnIndex:p,rowIndex:f,columnValuesLength:s,rowValuesLength:l};o.push(v)}))})),o},e.prototype.renderTitle=function(){var t=this;r.each(this.facets,(function(e,i){var n=e.columnIndex,s=e.rowIndex,l=e.columnValuesLength,u=e.columnValue,c=e.rowValue,p=e.view;if(0===s){var h=r.get(t.cfg.columnTitle,"formatter"),f=r.deepMix({position:["50%","0%"],content:h?h(u):u},o.getFactTitleConfig(a.DIRECTION.TOP),t.cfg.columnTitle);p.annotation().text(f)}if(n===l-1){h=r.get(t.cfg.rowTitle,"formatter"),f=r.deepMix({position:["100%","50%"],content:h?h(c):c},o.getFactTitleConfig(a.DIRECTION.RIGHT),t.cfg.rowTitle);p.annotation().text(f)}}))},e.prototype.getXAxisOption=function(t,e,i,r){return r.rowIndex!==r.rowValuesLength-1?n.__assign(n.__assign({},i),{title:null,label:null}):r.columnIndex!==Math.floor((r.columnValuesLength-1)/2)?n.__assign(n.__assign({},i),{title:null}):i},e.prototype.getYAxisOption=function(t,e,i,r){return 0!==r.columnIndex?n.__assign(n.__assign({},i),{title:null,label:null}):r.rowIndex!==Math.floor((r.rowValuesLength-1)/2)?n.__assign(n.__assign({},i),{title:null}):i},e}(t("./facet").Facet);i.default=s},{"../constant":237,"../util/facet":374,"./facet":242,"@antv/util":803,tslib:385}],248:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../constant"),o=t("../util/facet"),s=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 n.__extends(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(a.VIEW_LIFE_CIRCLE.AFTER_RENDER,this.afterChartRender)},e.prototype.getDefaultCfg=function(){return r.deepMix({},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){if(!this.cfg.fields.length)throw new Error("Please specify for the fields for rootFacet!");var e=[],i={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return e.push(i),i.children=this.getChildFacets(t,1,e),this.setRegion(e),e},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,i,n){var r=1/e,a=1/t,o={x:r*i,y:a*n};return{start:o,end:{x:o.x+r,y:o.y+2*a/3}}},e.prototype.forceColIndex=function(t){var e=this,i=[],n=0;t.forEach((function(t){e.isLeaf(t)&&(i.push(t),t.columnIndex=n,n++)})),i.forEach((function(t){t.columnValuesLength=i.length}));for(var r=this.cfg.fields.length-1;r>=0;r--)for(var a=0,o=this.getFacetsByLevel(t,r);a<o.length;a++){var s=o[a];this.isLeaf(s)||(s.originColIndex=s.columnIndex,s.columnIndex=this.getRegionIndex(s.children),s.columnValuesLength=i.length)}},e.prototype.getFacetsByLevel=function(t,e){var i=[];return t.forEach((function(t){t.rowIndex===e&&i.push(t)})),i},e.prototype.getRegionIndex=function(t){var e=t[0];return(t[t.length-1].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,i){var n=this,r=this.cfg.fields;if(!(r.length<e)){var a=[],o=r[e-1],s=this.getFieldValues(t,o);return s.forEach((function(r,l){var u=[{field:o,value:r,values:s}],c=t.filter(n.getFacetDataFilter(u));if(c.length){var p={type:n.cfg.type,data:c,region:null,columnValue:r,rowValue:"",columnField:o,rowField:"",columnIndex:l,rowValuesLength:n.getRows(),columnValuesLength:1,rowIndex:e,children:n.getChildFacets(c,e+1,i)};a.push(p),i.push(p)}})),a}},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.renderTitle=function(){var t=this;r.each(this.facets,(function(e){var i=e.columnValue,n=e.view,s=r.get(t.cfg.title,"formatter"),l=r.deepMix({position:["50%","0%"],content:s?s(i):i},o.getFactTitleConfig(a.DIRECTION.TOP),t.cfg.title);n.annotation().text(l)}))},e.prototype.drawLines=function(t){var e=this;t.forEach((function(t){if(!e.isLeaf(t)){var i=t.children;e.addFacetLines(t,i)}}))},e.prototype.addFacetLines=function(t,e){var i=this,n=t.view.coordinateBBox,r={x:n.x+n.width/2,y:n.y+n.height};e.forEach((function(t){var e=t.view.coordinateBBox,n={x:e.bl.x+(e.tr.x-e.bl.x)/2,y:e.tr.y},a={x:r.x,y:r.y+(n.y-r.y)/2},o={x:n.x,y:a.y};i.drawLine([r,a,o,n])}))},e.prototype.getPath=function(t){var e=[];return this.cfg.line.smooth?(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,i){0===i?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),i=this.cfg.line.style;this.container.addShape("path",{attrs:r.assign({path:e},i)})},e.prototype.getXAxisOption=function(t,e,i,r){return r.rowIndex!==r.rowValuesLength-1?n.__assign(n.__assign({},i),{title:null,label:null}):i},e.prototype.getYAxisOption=function(t,e,i,r){return 0!==r.originColIndex&&0!==r.columnIndex?n.__assign(n.__assign({},i),{title:null,label:null}):i},e}(t("./facet").Facet);i.default=s},{"../constant":237,"../util/facet":374,"./facet":242,"@antv/util":803,tslib:385}],249:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../constant"),a=n.__importDefault(t("./path"));t("./shape/area");var o=function(t){function e(e){var i=t.call(this,e)||this;i.type="area",i.shapeType="area",i.generatePoints=!0,i.startOnZero=!0;var n=e.startOnZero,r=void 0===n||n,a=e.sortable,o=void 0===a||a,s=e.showSinglePoint,l=void 0!==s&&s;return i.startOnZero=r,i.sortable=o,i.showSinglePoint=l,i}return n.__extends(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],i=[],n=0,a=t.length;n<a;n++){var o=t[n];e.push(o.points),i.push(o[r.FIELD_ORIGIN])}return{points:e,data:i}},e.prototype.getYMinValue=function(){return this.startOnZero?t.prototype.getYMinValue.call(this):this.getYScale().min},e}(a.default);i.default=o},{"../constant":237,"./path":266,"./shape/area":270,tslib:385}],250:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/adjust"),a=t("@antv/attr"),o=t("@antv/util"),s=t("../animate"),l=n.__importDefault(t("../base")),u=t("../constant"),c=t("../util/helper"),p=n.__importDefault(t("./element")),h=t("./label"),f=t("./shape/base"),d=t("./util/group-data"),g=t("./util/is-model-change"),v=t("./util/parse-fields");var y=function(t){function e(e){var i=t.call(this,e)||this;i.type="base",i.attributes={},i.elements=[],i.elementsMap={},i.animateOption=!0,i.attributeOption={},i.lastElementsMap={},i.generatePoints=!1,i.beforeMappingData=null,i.adjusts={},i.idFields=[],i.hasSorted=!1,i.isCoordinateChanged=!1;var n=e.container,r=e.labelsContainer,a=e.coordinate,o=e.data,s=e.sortable,l=void 0!==s&&s,u=e.visible,c=void 0===u||u,p=e.theme,h=e.scales,f=void 0===h?{}:h,d=e.scaleDefs,g=void 0===d?{}:d;return i.container=n,i.labelsContainer=r,i.coordinate=a,i.data=o,i.sortable=l,i.visible=c,i.userTheme=p,i.scales=f,i.scaleDefs=g,i}return n.__extends(e,t),e.prototype.position=function(t){var e=t;o.isPlainObject(t)||(e={fields:v.parseFields(t)});var i=o.get(e,"fields");return 1===i.length&&(i.unshift("1"),o.set(e,"fields",i)),o.set(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(o.isString(t)||o.isPlainObject(t))&&(e=[t]),o.each(e,(function(t,i){o.isObject(t)||(e[i]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if(o.isString(t)){var i=v.parseFields(t);this.styleOption={fields:i,callback:e}}else{var n=t,r=(i=n.fields,n.callback),a=n.cfg;this.styleOption=i||r||a?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if(o.isString(t)){var i=v.parseFields(t);this.tooltipOption={fields:i,callback:e}}else this.tooltipOption=t;return this},e.prototype.animate=function(t){return this.animateOption=t,this},e.prototype.label=function(t,e,i){if(o.isString(t)){var n={},r=v.parseFields(t);n.fields=r,o.isFunction(e)?n.callback=e:o.isPlainObject(e)&&(n.cfg=e),i&&(n.cfg=i),this.labelOption=n}else this.labelOption=t;return this},e.prototype.state=function(t){return this.stateOption=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,i=t.isDataChanged,n=t.isCoordinateChanged,r=this.attributeOption,a=this.lastAttributeOption;o.isEqual(r,a)?!e||!i&&o.isEqual(e,this.data)?this.setCfg(t):(this.setCfg(t),this.processData(e)):this.init(t),this.adjustScale(),this.isCoordinateChanged=n},e.prototype.paint=function(t){var e=this;void 0===t&&(t=!1),this.animateOption&&(this.animateOption=o.deepMix({},s.getDefaultAnimateCfg(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elements=[],this.elementsMap={},this.getOffscreenGroup().clear();for(var i=this.beforeMappingData,r=this.beforeMapping(i),a=[],l=0,u=r.length;l<u;l++){var c=r[l],p=this.mapping(c);a.push(p),this.createElements(p,l,t)}if(this.canDoGroupAnimation(t)){var h=this.container,f=this.type,d=this.coordinate,g=o.get(this.animateOption,"appear"),v=this.getYScale(),y=d.convert({x:0,y:v.scale(this.getYMinValue())});s.doGroupAppearAnimate(h,g,f,d,y)}this.labelOption&&this.renderLabels(o.flatten(a),t),this.dataArray=a,o.each(this.lastElementsMap,(function(t){t.animate=e.animateOption,t.destroy()})),this.lastElementsMap=this.elementsMap,this.lastAttributeOption=n.__assign({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this.container,e=this.geometryLabel,i=this.offscreenGroup;t&&t.clear(),e&&e.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(),this.container.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 o.each(this.attributes,(function(e){u.GROUP_ATTRS.includes(e.type)&&t.push(e)})),t},e.prototype.getDefaultValue=function(t){var e,i=this.getAttribute(t);return i&&o.isEmpty(i.scales)&&(e=i.values[0]),e},e.prototype.getAttributeValues=function(t,e){for(var i=[],n=t.scales,r=0,a=n.length;r<a;r++){var o=n[r],s=o.field;o.isIdentity?i.push(o.values):i.push(e[s])}return t.mapping.apply(t,i)},e.prototype.getAdjust=function(t){return this.adjusts[t]},e.prototype.getShapeMarker=function(t,e){return this.getShapeFactory().getMarker(t,e)},e.prototype.getElementsBy=function(t){return this.elements.filter((function(e){return t(e)}))},e.prototype.getElementId=function(t){var e=(t=o.isArray(t)?t[0]:t)[u.FIELD_ORIGIN];if(this.idFields.length){for(var i=e[this.idFields[0]],n=1;n<this.idFields.length;n++)i+="-"+e[this.idFields[n]];return i}var r,a,s=this.type,l=this.getXScale(),c=this.getYScale(),p=l.field||"x",h=e[c.field||"y"];r="identity"===l.type?l.values[0]:e[p],a="interval"===s||"schema"===s?r:"line"===s||"area"===s||"path"===s?s:r+"-"+h;for(var f=this.groupScales,d=(n=0,f.length);n<d;n++){a=a+"-"+e[f[n].field]}var g=this.getAdjust("dodge");if(g){var v=g.dodgeBy;v&&(a=a+"-"+e[v])}return this.getAdjust("jitter")&&(a=a+"-"+t.x+"-"+t.y),a},e.prototype.getScaleFields=function(){var t=[],e={},i=this.attributeOption,n=this.labelOption,r=this.tooltipOption;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];s.fields?c.uniq(s.fields,t,e):s.values&&c.uniq(s.values,t,e)}return n&&n.fields&&c.uniq(n.fields,t,e),o.isObject(r)&&r.fields&&c.uniq(r.fields,t,e),t},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var i=this.elements,n=0,r=i.length;n<r;n++){i[n].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.getGroupFields=function(){for(var t=[],e={},i=0,n=u.GROUP_ATTRS.length;i<n;i++){var r=u.GROUP_ATTRS[i],a=this.attributeOption[r];a&&a.fields&&c.uniq(a.fields,t,e)}return t},e.prototype.getXYFields=function(){var t=this.attributeOption.position.fields;return[t[0],t[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(),i=e.field,n=0;n<t.length;n++){t[n].sort((function(t,n){return e.translate(t[u.FIELD_ORIGIN][i])-e.translate(n[u.FIELD_ORIGIN][i])}))}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(f.getShapeFactory(t))return this.shapeFactory||(this.shapeFactory=o.clone(f.getShapeFactory(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},e.prototype.createShapePointsCfg=function(t){var e=this.getXScale(),i=this.getYScale();return{x:this.normalizeValues(t[e.field],e),y:i?this.normalizeValues(t[i.field],i):t.y?t.y:.1,y0:i?i.scale(this.getYMinValue()):void 0}},e.prototype.createElement=function(t,e){void 0===e&&(e=!1);var i=this.container,n=this.getDrawCfg(t),r=this.getShapeFactory(),a=new p.default({shapeFactory:r,container:i,offscreenGroup:this.getOffscreenGroup()});return a.animate=this.animateOption,a.geometry=this,a.draw(n,e),a},e.prototype.getDrawCfg=function(t){var e=t[u.FIELD_ORIGIN],i={mappingData:t,data:e,x:t.x,y:t.y,color:t.color,size:t.size,isInCircle:this.coordinate.isPolar},n=t.shape;!n&&this.getShapeFactory()&&(n=this.getShapeFactory().defaultShapeType),i.shape=n;var r=this.theme.geometries[this.shapeType];i.defaultStyle=o.get(r,[n,"default"],{}).style;var a=this.styleOption;return a&&(i.style=this.getStyleCfg(a,e)),this.generatePoints&&(i.points=t.points,i.nextPoints=t.nextPoints),i},e.prototype.createElements=function(t,e,i){void 0===i&&(i=!1);for(var n=this.lastElementsMap,r=this.elementsMap,a=this.elements,o=0,s=t.length;o<s;o++){var l=t[o],u=this.getElementId(l);r[u]&&(u=u+"-"+e+"-"+o);var c=n[u];if(c){var p=this.getDrawCfg(l),h=c.getModel();(this.isCoordinateChanged||g.isModelChange(p,h))&&(c.animate=this.animateOption,c.update(p)),delete n[u]}else c=this.createElement(l,i);a.push(c),r[u]=c}return a},e.prototype.getLabelType=function(){var t=this.labelOption,e=this.coordinate,i=this.type,n=e.type,r=o.get(t,["cfg","type"]);return r||(r="polar"===n?"polar":"theta"===n?"pie":"interval"===i||"polygon"===i?"interval":"base"),r},e.prototype.getYMinValue=function(){var t=this.getYScale(),e=t.min,i=t.max;return e>=0?e:i<=0?i:0},e.prototype.createAttrOption=function(t,e,i){if(o.isNil(e)||o.isObject(e))o.isObject(e)&&o.isEqual(Object.keys(e),["values"])?o.set(this.attributeOption,t,{fields:e.values}):o.set(this.attributeOption,t,e);else{var n={};o.isNumber(e)?n.values=[e]:n.fields=v.parseFields(e),i&&(o.isFunction(i)?n.callback=i:n.values=i),o.set(this.attributeOption,t,n)}},e.prototype.initAttributes=function(){var t=this,e=this.attributes,i=this.attributeOption,r=this.theme,o=this.shapeType;this.groupScales=[];var s={},l=function(l){if(i.hasOwnProperty(l)){var c=i[l];if(!c)return{value:void 0};var p=n.__assign({},c),h=p.callback,f=p.values,d=p.fields,g=(void 0===d?[]:d).map((function(e){var i=t.scales[e];return i.isCategory&&!s[e]&&u.GROUP_ATTRS.includes(l)&&(t.groupScales.push(i),s[e]=!0),i}));p.scales=g,"position"!==l&&1===g.length&&"identity"===g[0].type?p.values=g[0].values:h||f||("size"===l?p.values=r.sizes:"shape"===l?p.values=r.shapes[o]||[]:"color"===l&&(g.length?p.values=g[0].values.length<=10?r.colors10:r.colors20:p.values=r.colors10));var v=a.getAttribute(l);e[l]=new v(p)}};for(var c in i){var p=l(c);if("object"==typeof p)return p.value}},e.prototype.processData=function(t){this.hasSorted=!1;for(var e=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),i=this.groupData(t),n=[],r=0,a=i.length;r<a;r++){for(var o=i[r],s=[],l=0,c=o.length;l<c;l++){var p=o[l],h={};for(var f in p)h[f]=p[f];h[u.FIELD_ORIGIN]=p;for(var d=0,g=e;d<g.length;d++){var v=g[d],y=v.field;h[y]=v.translate(h[y])}s.push(h)}n.push(s)}var m=this.adjustData(n);return this.beforeMappingData=m,m},e.prototype.adjustData=function(t){var e=this.adjustOption,i=t;if(e)for(var a=this.getXScale(),s=this.getYScale(),l=a.field,u=s?s.field:null,c=0,p=e.length;c<p;c++){var h=e[c],f=n.__assign({xField:l,yField:u},h),d=h.type;if("dodge"===d){var g=[];if(a.isCategory||"identity"===a.type)g.push("x");else{if(s)throw new Error("dodge is not support linear attribute, please use category attribute!");g.push("y")}f.adjustNames=g,f.dodgeRatio=this.theme.columnWidthRatio}else if("stack"===d){var v=this.coordinate;if(!s){f.height=v.getHeight();var y=this.getDefaultValue("size")||3;f.size=y}!v.isTransposed&&o.isNil(f.reverseOrder)&&(f.reverseOrder=!0)}var m=new(r.getAdjust(d))(f);i=m.process(i),this.adjusts[d]=m}return i},e.prototype.groupData=function(t){for(var e=this.getGroupScales(),i=this.scaleDefs,n={},r=[],a=0;a<e.length;a++){var s=e[a].field;r.push(s),o.get(i,[s,"values"])&&(n[s]=i[s].values)}return d.group(t,r,n)},e.prototype.updateStackRange=function(t,e){for(var i=o.flatten(e),n=t.field,r=t.min,a=t.max,s=0;s<i.length;s++){var l=i[s],u=Math.min.apply(null,l[n]),c=Math.max.apply(null,l[n]);u<r&&(r=u),c>a&&(a=c)}var p=this.scaleDefs,h={};r<t.min&&!o.get(p,[n,"min"])&&(h.min=r),a>t.max&&!o.get(p,[n,"max"])&&(h.max=a),t.change(h)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var i=0,n=e.length;i<n;i++){var r=e[i];this.generateShapePoints(r);var a=e[i+1];a&&(this.generateShapePoints(a),r[0].nextPoints=a[0].points)}return e},e.prototype.generateShapePoints=function(t){for(var e=this.getShapeFactory(),i=this.getAttribute("shape"),n=0;n<t.length;n++){var r=t[n],a=this.createShapePointsCfg(r),o=i?this.getAttributeValues(i,r):null,s=e.getShapePoints(o,a);r.points=s}},e.prototype.normalizeValues=function(t,e){var i=[];if(o.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];i.push(e.scale(r))}else i=e.scale(t);return i},e.prototype.mapping=function(t){for(var e=this.attributes,i=[],n=0;n<t.length;n++){var r=t[n],a={_origin:r[u.FIELD_ORIGIN],points:r.points,nextPoints:r.nextPoints};for(var s in e)if(e.hasOwnProperty(s)){var l=e[s],c=l.names,p=this.getAttributeValues(l,r);if(c.length>1)for(var h=0;h<p.length;h+=1){var f=p[h];a[c[h]]=o.isArray(f)&&1===f.length?f[0]:f}else a[c[0]]=1===p.length?p[0]:p}this.convertPoint(a),i.push(a)}return i},e.prototype.convertPoint=function(t){var e,i,n,r=t.x,a=t.y,s=this.coordinate;if(o.isArray(r)&&o.isArray(a)){e=[],i=[];for(var l=0,u=0,c=r.length,p=a.length;l<c&&u<p;l+=1,u+=1)n=s.convert({x:r[l],y:a[u]}),e.push(n.x),i.push(n.y)}else if(o.isArray(a)){i=[];for(var h=0;h<a.length;h++){var f=a[h];n=s.convert({x:r,y:f}),e&&e!==n.x?(o.isArray(e)||(e=[e]),e.push(n.x)):e=n.x,i.push(n.y)}}else if(o.isArray(r)){e=[];for(h=0;h<r.length;h++){var d=r[h];n=s.convert({x:d,y:a}),i&&i!==n.y?(o.isArray(i)||(i=[i]),i.push(n.y)):i=n.y,e.push(n.x)}}else{var g=s.convert({x:r,y:a});e=g.x,i=g.y}t.x=e,t.y=i},e.prototype.getStyleCfg=function(t,e){var i=t.fields,n=void 0===i?[]:i,r=t.callback,a=t.cfg;if(a)return a;var o=n.map((function(t){return e[t]}));return r.apply(void 0,o)},e.prototype.setCfg=function(t){var e=this,i=t.coordinate,n=t.data,r=t.theme,a=t.scaleDefs;i&&(this.coordinate=i),n&&(this.data=n),a&&(this.scaleDefs=a,this.idFields=[],o.each(a,(function(t,i){t&&t.key&&e.idFields.push(i)}))),r&&(this.theme=this.userTheme?o.deepMix({},r,this.userTheme):r)},e.prototype.renderLabels=function(t,e){void 0===e&&(e=!1);var i=this.geometryLabel;if(!i){var n=this.getLabelType();i=new(h.getGeometryLabel(n))(this),this.geometryLabel=i}i.render(t,e);var r=i.labelsRenderer.shapesMap;o.each(this.elementsMap,(function(t,e){var i=function(t,e){var i=[];return o.each(e,(function(e,n){n.split(" ")[0]===t&&i.push(e)})),i}(e,r);if(i.length){t.labelShape=i;for(var n=0;n<i.length;n++)for(var a=i[n].getChildren(),s=0;s<a.length;s++){var l=a[s];l.cfg.name=["element","label"],l.cfg.element=t}}}))},e.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(void 0===o.get(this.animateOption,"appear")||o.get(this.animateOption,"appear")&&void 0===o.get(this.animateOption,["appear","animation"]))},e}(l.default);i.default=y},{"../animate":217,"../base":218,"../constant":237,"../util/helper":377,"./element":252,"./label":256,"./shape/base":275,"./util/group-data":305,"./util/is-model-change":306,"./util/parse-fields":307,"@antv/adjust":9,"@antv/attr":17,"@antv/util":803,tslib:385}],251:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importDefault(t("./base"));t("./shape/edge");var a=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 n.__extends(e,t),e}(r.default);i.default=a},{"./base":250,"./shape/edge":277,tslib:385}],252:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../animate"),o=n.__importDefault(t("../../base")),s=t("../../util/graphics"),l=t("@antv/component/lib/util/event"),u=function(t){function e(e){var i=t.call(this,e)||this;i.states=[];var n=e.shapeFactory,r=e.container,a=e.offscreenGroup,o=e.visible,s=void 0===o||o;return i.shapeFactory=n,i.container=r,i.offscreenGroup=a,i.visible=s,i}return n.__extends(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.shapeFactory,i=this.shape;if(i){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(i,t);var n=this.getOffscreenGroup(),r=e.drawShape(this.shapeType,t,n);r.cfg.data=this.data,r.cfg.origin=t,this.syncShapeStyle(i,r,"",this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this.shapeFactory,i=this.shape;if(i){var r=this.getAnimateCfg("leave");r?a.doAnimate(i,r,{coordinate:e.coordinate,toAttrs:n.__assign({},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 i=this,n=this,r=n.states,a=n.shapeFactory,o=n.model,s=n.shape,u=n.shapeType,c=r.indexOf(t);if(e){if(c>-1)return;r.push(t),"active"!==t&&"selected"!==t||s.toFront()}else{if(-1===c)return;r.splice(c,1),"active"!==t&&"selected"!==t||s.toBack()}var p=a.drawShape(u,o,this.getOffscreenGroup());r.length?r.forEach((function(t){i.syncShapeStyle(s,p,t,null)})):this.syncShapeStyle(s,p,"reset",null),p.remove(!0);var h={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",h),l.propagationDelegate(this.shape,"statechange",h)},e.prototype.clearStates=function(){var t=this,e=this.states;r.each(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.shape,e=this.labelShape,i={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(i=t.getCanvasBBox()),e&&e.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.shapeType,e=this.geometry,i=this.shapeFactory,n=e.stateOption,a=i.defaultShapeType,o=i.theme[t]||i.theme[a];this.statesStyle=r.deepMix({},o,n)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var i=this.getStatesStyle(),n=r.get(i,[t,"style"],{}),a=n[e]||n;return r.isFunction(a)?a(this):a},e.prototype.getAnimateCfg=function(t){var e=this.animate;return e?e[t]:null},e.prototype.drawShape=function(t,e){void 0===e&&(e=!1);var i=this.shapeFactory,o=this.container,s=this.shapeType;if(this.shape=i.drawShape(s,t,o),this.shape){this.setShapeInfo(this.shape,t);var l=this.shape.cfg.name;l?r.isString(l)&&(this.shape.cfg.name=["element",l]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var u=e?"enter":"appear",c=this.getAnimateCfg(u);c&&a.doAnimate(this.shape,c,{coordinate:i.coordinate,toAttrs:n.__assign({},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 i=this;(t.cfg.origin=e,t.cfg.element=this,t.isGroup())&&t.get("children").forEach((function(t){i.setShapeInfo(t,e)}))},e.prototype.syncShapeStyle=function(t,e,i,n,o){if(void 0===i&&(i=""),void 0===o&&(o=0),t.isGroup())for(var l=t.get("children"),u=e.get("children"),c=0;c<l.length;c++)this.syncShapeStyle(l[c],u[c],i,n,o+c);else{if(i&&"reset"!==i){var p=t.get("name");r.isArray(p)&&(p=p[1]);var h=this.getStateStyle(i,p||o);e.attr(h)}var f=s.getReplaceAttrs(t,e);this.animate?n?a.doAnimate(t,n,{coordinate:this.shapeFactory.coordinate,toAttrs:f,shapeModel:this.model}):i?(t.stopAnimate(),t.animate(f,{duration:300})):t.attr(f):t.attr(f)}},e.prototype.getShapeType=function(t){var e=r.get(t,"shape");return r.isArray(e)?e[0]:e},e}(o.default);i.default=u},{"../../animate":217,"../../base":218,"../../util/graphics":375,"@antv/component/lib/util/event":70,"@antv/util":803,tslib:385}],253:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importDefault(t("@antv/color-util")),a=t("@antv/util"),o=t("../constant"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.paletteCache={},e}return n.__extends(e,t),e.prototype.createElements=function(t,e,i){void 0===i&&(i=!1);var n=this.prepareRange(t),r=this.prepareSize(),o=a.get(this.styleOption,["style","shadowBlur"]);return a.isNumber(o)||(o=r/2),this.prepareGreyScaleBlurredCircle(r,o),this.drawWithRange(t,n,r,o),null},e.prototype.clear=function(){t.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},e.prototype.prepareRange=function(t){var e=this.getAttribute("color").getFields()[0],i=1/0,n=-1/0;return t.forEach((function(t){var r=t[o.FIELD_ORIGIN][e];r>n&&(n=r),r<i&&(i=r)})),i===n&&(i=n-1),[i,n]},e.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return a.isNumber(t)||(t=this.getDefaultSize()),t},e.prototype.prepareGreyScaleBlurredCircle=function(t,e){var i=this.getGrayScaleBlurredCanvas(),n=t+e,r=i.getContext("2d");i.width=i.height=2*n,r.clearRect(0,0,i.width,i.height),r.shadowOffsetX=r.shadowOffsetY=2*n,r.shadowBlur=e,r.shadowColor="black",r.beginPath(),r.arc(-n,-n,t,0,2*Math.PI,!0),r.closePath(),r.fill()},e.prototype.drawWithRange=function(t,e,i,n){var r=this.coordinate,a=r.start,s=r.end,l=this.coordinate.getWidth(),u=this.coordinate.getHeight(),c=this.getAttribute("color").getFields()[0];this.clearShadowCanvasCtx();var p=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t[o.FIELD_ORIGIN][c]<=e[1]&&t[o.FIELD_ORIGIN][c]>=e[0]})));for(var h=this.scales[c],f=0,d=t;f<d.length;f++){var g=d[f],v=this.getDrawCfg(g),y=v.x,m=v.y,b=h.scale(g[o.FIELD_ORIGIN][c]);this.drawGrayScaleBlurredCircle(y-a.x,m-s.y,i+n,b,p)}var x=p.getImageData(0,0,l,u);this.clearShadowCanvasCtx(),this.colorize(x),p.putImageData(x,0,0);var _=this.getImageShape();_.attr("x",a.x),_.attr("y",s.y),_.attr("width",l),_.attr("height",u),_.attr("img",p.canvas),_.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,i,n,r){var a=this.getGrayScaleBlurredCanvas();r.globalAlpha=n,r.drawImage(a,t-i,e-i)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),i=t.data,n=this.paletteCache,o=3;o<i.length;o+=4){var s=i[o];if(a.isNumber(s)){var l=n[s]?n[s]:r.default.rgb2arr(e.gradient(s/256));i[o-3]=l[0],i[o-2]=l[1],i[o-1]=l[2],i[o]=s}}},e.prototype.getImageShape=function(){var t=this.imageShape;return t||(t=this.container.addShape({type:"image",attrs:{}}),this.imageShape=t,t)},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]);return n.__assign(n.__assign({},e),{mappingData:t,data:this.getData(t)})},e.prototype.getData=function(t){return t.map((function(t){return t[o.FIELD_ORIGIN]}))},e}(n.__importDefault(t("./base")).default);i.default=s},{"../constant":237,"./base":250,"@antv/color-util":19,"@antv/util":803,tslib:385}],254:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../util/coordinate"),o=n.__importDefault(t("./base"));t("./shape/interval");var s=t("./util/shape-size"),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e.shapeType="interval",e.generatePoints=!0,e}return n.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var i,n=t.prototype.createShapePointsCfg.call(this,e),r=this.getAttribute("size");if(r){i=this.getAttributeValues(r,e)[0];var o=this.coordinate;i/=a.getXDimensionLength(o)}else this.defaultSize||(this.defaultSize=s.getDefaultSize(this)),i=this.defaultSize;return n.size=i,n},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:Math.max(Math.max.apply(null,e.values),e.max)});else{var i=this.scaleDefs,n=e.field,a=e.min,o=e.max;"time"!==e.type&&(a>0&&!r.get(i,[n,"min"])&&e.change({min:0}),o<=0&&!r.get(i,[n,"max"])&&e.change({max:0}))}},e}(o.default);i.default=l},{"../util/coordinate":371,"./base":250,"./shape/interval":283,"./util/shape-size":308,"@antv/util":803,tslib:385}],255:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../constant"),o=t("../../animate"),s=t("../../util/graphics"),l=n.__importDefault(t("../../component/labels"));var u=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,i=[],a=this.getLabelCfgs(t);return r.each(t,(function(t,o){var s=a[o];if(!s||r.isNil(t.x)||r.isNil(t.y))i.push(null);else{var l=r.isArray(s.content)?s.content:[s.content];s.content=l;var u=l.length;r.each(l,(function(a,o){if(r.isNil(a)||""===a)i.push(null);else{var l=n.__assign(n.__assign({},s),e.getLabelPoint(s,t,o));l.textAlign||(l.textAlign=e.getLabelAlign(l,o,u)),l.offset<=0&&(l.labelLine=null),i.push(l)}}))}})),i},t.prototype.render=function(t,e){void 0===e&&(e=!1);var i=this.getLabelItems(t),n=this.getLabelsRenderer(),r=this.getGeometryShapes();n.render(i,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(){return r.get(this.geometry.theme,"labels",{})},t.prototype.setLabelPosition=function(t,e,i,n){},t.prototype.getDefaultOffset=function(t){var e=this.getCoordinate(),i=this.getOffsetVector(t);return e.isTransposed?i[0]:i[1]},t.prototype.getLabelOffset=function(t,e,i){var n=this.getDefaultOffset(t.offset),r=this.getCoordinate().isTransposed,a=r?"x":"y",o=r?1:-1,s={x:0,y:0};return s[a]=e>0||1===i?n*o:n*o*-1,s},t.prototype.getLabelPoint=function(t,e,i){var n=this.getCoordinate(),a=t.content.length;function o(e,i){var n,a,o=e;return r.isArray(o)&&(1===t.content.length?o.length<=2?o=o[e.length-1]:(n=o,a=0,r.each(n,(function(t){a+=t})),o=a/n.length):o=o[i]),o}var l={content:t.content[i],x:0,y:0,start:{x:0,y:0},color:"#fff"};if(e&&"polygon"===this.geometry.type){var u=s.getPolygonCentroid(e.x,e.y);l.x=u[0],l.y=u[1]}else l.x=o(e.x,i),l.y=o(e.y,i);var c=r.isArray(e.shape)?e.shape[0]:e.shape;if("funnel"===c||"pyramid"===c){var p=r.get(e,"nextPoints"),h=r.get(e,"points");if(p){var f=n.convert(h[1]),d=n.convert(p[1]);l.x=(f.x+d.x)/2,l.y=(f.y+d.y)/2}else if("pyramid"===c){f=n.convert(h[1]),d=n.convert(h[2]);l.x=(f.x+d.x)/2,l.y=(f.y+d.y)/2}}t.position&&this.setLabelPosition(l,e,i,t.position);var g=this.getLabelOffset(t,i,a);return l.start={x:l.x,y:l.y},l.x+=g.x,l.y+=g.y,l.color=e.color,l},t.prototype.getLabelAlign=function(t,e,i){var n="center";if(this.getCoordinate().isTransposed){var r=this.getDefaultOffset(t.offset);n=r<0?"right":0===r?"center":"left",i>1&&0===e&&("right"===n?n="left":"left"===n&&(n="right"))}return n},t.prototype.getLabelId=function(t){var e=this.geometry,i=e.type,n=e.getXScale(),r=e.getYScale(),o=t[a.FIELD_ORIGIN],s=e.getElementId(t);return"line"===i||"area"===i?s+=" "+o[n.field]:"path"===i&&(s+=" "+o[n.field]+"-"+o[r.field]),s},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,i=t.labelOption,n=t.canvasRegion,a=t.animateOption,s=this.geometry.coordinate,u=this.labelsRenderer;return u||(u=new l.default({container:e,layout:r.get(i,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=u),u.region=n,u.animate=!!a&&o.getDefaultAnimateCfg("label",s),u},t.prototype.getLabelCfgs=function(t){var e=this,i=this.geometry,o=this.getDefaultLabelCfg(),s=i.type,l=i.theme,u=i.labelOption,c=i.scales,p=i.coordinate,h=u,f=h.fields,d=h.callback,g=h.cfg,v=f.map((function(t){return c[t]})),y=[];return r.each(t,(function(t,i){var u,c=t[a.FIELD_ORIGIN],h=e.getLabelText(c,v);if(d){var m=f.map((function(t){return c[t]}));if(u=d.apply(void 0,m),r.isNil(u))return void y.push(null)}var b=n.__assign(n.__assign({id:e.getLabelId(t),data:c,mappingData:t,coordinate:p},g),u),x=b.content;r.isFunction(x)?b.content=x(c,t,i):r.isUndefined(x)&&(b.content=h[0]),r.isFunction(b.position)&&(b.position=b.position(c,t,i)),b="polygon"===s||b.offset<0&&!["line","point","path"].includes(s)?r.deepMix({},o,l.innerLabels,b):r.deepMix({},o,l.labels,b),y.push(b)})),y},t.prototype.getLabelText=function(t,e){var i=[];return r.each(e,(function(e){var n=t[e.field];n=r.isArray(n)?n.map((function(t){return e.getText(t)})):e.getText(n),r.isNil(n)||""===n?i.push(null):i.push(n)})),i},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate();return e.isTransposed?e.applyMatrix(t,0):e.applyMatrix(0,t)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return r.each(t.elementsMap,(function(t,i){e[i]=t.shape})),r.each(t.getOffscreenGroup().getChildren(),(function(i){var n=t.getElementId(i.get("origin").mappingData);e[n]=i})),e},t}();i.default=u},{"../../animate":217,"../../component/labels":236,"../../constant":237,"../../util/graphics":375,"@antv/util":803,tslib:385}],256:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.registerGeometryLabelLayout=i.getGeometryLabelLayout=i.registerGeometryLabel=i.getGeometryLabel=void 0;var n={},r={};i.getGeometryLabel=function(t){return n[t.toLowerCase()]},i.registerGeometryLabel=function(t,e){n[t.toLowerCase()]=e},i.getGeometryLabelLayout=function(t){return r[t.toLowerCase()]},i.registerGeometryLabelLayout=function(t,e){r[t.toLowerCase()]=e}},{}],257:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.setLabelPosition=function(t,e,i,n){var a=this.getCoordinate(),o=a.isTransposed,s=e.points,l=a.convert(s[0]),u=a.convert(s[2]),c=o?-1:1,p=(l.x-u.x)/2*c,h=(l.y-u.y)/2*c;switch(n){case"right":o||(t.x-=p,t.y+=h),t.textAlign=r.get(t,"textAlign","left");break;case"left":o?t.x-=2*p:(t.x+=p,t.y+=h),t.textAlign=r.get(t,"textAlign","right");break;case"bottom":o?(t.x-=p,t.y-=h):t.y+=2*h,t.textAlign=r.get(t,"textAlign","center"),t.textBaseline=r.get(t,"textBaseline","top");break;case"middle":o?t.x-=p:t.y+=h,t.textAlign=r.get(t,"textAlign","center");break;case"top":o&&(t.x-=p,t.y+=h),t.textAlign=r.get(t,"textAlign","center"),t.textBaseline=r.get(t,"textBaseline","bottom")}},e}(n.__importDefault(t("./base")).default);i.default=a},{"./base":255,"@antv/util":803,tslib:385}],258:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.limitInCanvas=void 0;var n=t("@antv/util"),r=t("../../../util/transform");i.limitInCanvas=function(t,e,i,a){n.each(e,(function(t){var e=a.minX,i=a.minY,n=a.maxX,o=a.maxY,s=t.getCanvasBBox(),l=s.minX,u=s.minY,c=s.maxX,p=s.maxY,h=s.x,f=s.y,d=s.width,g=s.height,v=h,y=f;(l<e||c<e)&&(v=e),(u<i||p<i)&&(y=i),l>n?v=n-d:c>n&&(v-=c-n),u>o?y=o-g:p>o&&(y-=p-o),v===h&&y===f||r.translate(t,v-h,y-f)}))}},{"../../../util/transform":384,"@antv/util":803}],259:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.limitInShape=void 0;var n=t("@antv/util");i.limitInShape=function(t,e,i,r){n.each(e,(function(t,e){var n=t.getCanvasBBox(),r=i[e].getBBox();(n.minX<r.minX||n.minY<r.minY||n.maxX>r.maxX||n.maxY>r.maxY)&&t.remove(!0)}))}},{"@antv/util":803}],260:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.overlap=i.fixedOverlap=void 0;var n=t("@antv/util"),r=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,i=void 0===e?1:e,n=t.yGap,r=void 0===n?8:n;this.xGap=i,this.yGap=r}return t.prototype.hasGap=function(t){for(var e=!0,i=this.bitmap,n=Math.round(t.minX),r=Math.round(t.maxX),a=Math.round(t.minY),o=Math.round(t.maxY),s=n;s<=r;s+=1)if(i[s]){if(s===n||s===r){for(var l=a;l<=o;l++)if(i[s][l]){e=!1;break}}else if(i[s][a]||i[s][o]){e=!1;break}}else i[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,i=Math.round(t.minX),n=Math.round(t.maxX),r=Math.round(t.minY),a=Math.round(t.maxY),o=i;o<=n;o+=1)e[o]||(e[o]={});for(o=i;o<=n;o+=this.xGap){for(var s=r;s<=a;s+=this.yGap)e[o][s]=!0;e[o][a]=!0}if(1!==this.yGap)for(o=r;o<=a;o+=1)e[i][o]=!0,e[n][o]=!0;if(1!==this.xGap)for(o=i;o<=n;o+=1)e[o][r]=!0,e[o][a]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function a(t,e,i,n){var r=t.getCanvasBBox(),a=r.width,o=r.height,s={x:e,y:i,textAlign:"center"};switch(n){case 0:s.y-=o+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=o+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=o+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=o+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*o+2;break;case 6:s.y+=2*o+2;break;case 7:s.x+=a+1,s.textAlign="left";break;case 8:s.x-=a+1,s.textAlign="right"}return t.attr(s),t.getCanvasBBox()}i.fixedOverlap=function(t,e,i,a){var o=new r;n.each(e,(function(t){(function(t,e,i){void 0===i&&(i=100);var n,r=t.attr(),a=r.x,o=r.y,s=t.getCanvasBBox(),l=Math.sqrt(s.width*s.width+s.height*s.height),u=1,c=0,p=0;if(e.hasGap(s))return e.fillGap(s),!0;for(var h,f,d=!1,g=0,v={};Math.min(Math.abs(c),Math.abs(p))<l&&g<i;)if(h=u+=-1,f=void 0,p=~~(n=[(f=.1*h)*Math.cos(f),f*Math.sin(f)])[1],((c=~~n[0])||p)&&!v[c+"-"+p]&&(t.attr({x:a+c,y:o+p}),c+p<0&&t.attr("textAlign","right"),g++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),d=!0,v[c+"-"+p]=!0;break}return d})(t.find((function(t){return"text"===t.get("type")})),o)||t.remove(!0)})),o.destroy()},i.overlap=function(t,e,i,o){var s=new r;n.each(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),i=e.attr(),n=i.x,r=i.y,o=!1,l=0;l<=8;l++){var u=a(e,n,r,l);if(s.hasGap(u)){s.fillGap(u),o=!0;break}}o||t.remove(!0)})),s.destroy()}},{"@antv/util":803}],261:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.distribute=void 0;var n=t("@antv/util"),r=t("../../../../util/graphics");i.distribute=function(t,e,i,a){var o=t[0]?t[0].offset:0,s=e[0].get("coordinate"),l=s.getRadius(),u=s.getCenter();if(o>0){var c=2*(l+o)+28,p={start:s.start,end:s.end},h=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?h[0].push(t):h[1].push(t))})),h.forEach((function(t,i){var r=c/14;t.length>r&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(r,t.length-r)),t.sort((function(t,e){return t.y-e.y})),function(t,e,i,r,a,o){var s,l=!0,u=r.start,c=r.end,p=Math.min(u.y,c.y),h=Math.abs(u.y-c.y),f=0,d=Number.MIN_VALUE,g=e.map((function(t){return t.y>f&&(f=t.y),t.y<d&&(d=t.y),{size:i,targets:[t.y-p]}}));for(d-=p,f-p>h&&(h=f-p);l;)for(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),h-t.size)})),l=!1,s=g.length;s--;)if(s>0){var v=g[s-1],y=g[s];v.pos+v.size>y.pos&&(v.size+=y.size,v.targets=v.targets.concat(y.targets),v.pos+v.size>h&&(v.pos=h-v.size),g.splice(s,1),l=!0)}s=0,g.forEach((function(t){var n=p+i/2;t.targets.forEach((function(){e[s].y=t.pos+n,n+=i,s++}))}));for(var m={},b=0,x=t;b<x.length;b++){var _=x[b];m[_.get("id")]=_}e.forEach((function(t){var e=t.r*t.r,i=Math.pow(Math.abs(t.y-a.y),2);if(e<i)t.x=a.x;else{var r=Math.sqrt(e-i);t.x=o?a.x+r:a.x-r}var s=m[t.id];s.attr("x",t.x),s.attr("y",t.y);var l=n.find(s.getChildren(),(function(t){return"text"===t.get("type")}));l&&(l.attr("y",t.y),l.attr("x",t.x))}))}(e,t,14,p,u,i)}))}n.each(t,(function(t){if(t&&t.labelLine){var e=t.offset,i=t.angle,a=r.polarToCartesian(u.x,u.y,l,i),o=r.polarToCartesian(u.x,u.y,l+e/2,i),s=t.x+n.get(t,"offsetX",0),c=t.y+n.get(t,"offsetY",0),p={x:s-4*Math.cos(i),y:c-4*Math.sin(i)};n.isObject(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M "+a.x,a.y+" Q"+o.x,o.y+" "+p.x,p.y].join(",")}}))}},{"../../../../util/graphics":375,"@antv/util":803}],262:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.pieOuterLabelLayout=void 0;var n=t("@antv/util"),r=t("../../../../util/graphics");i.pieOuterLabelLayout=function(t,e,i,a){var o=t[0]?t[0].offset:0,s=e[0].get("coordinate"),l=s.getRadius(),u=s.getCenter();if(o>0){var c=n.get(t[0],"labelHeight",14),p=l+o,h=2*p+2*c,f={start:s.start,end:s.end},d=[[],[]];t.forEach((function(t){t&&(t.x<u.x?d[0].push(t):d[1].push(t))})),d.forEach((function(t,i){var n=h/c;t.length>n&&(t.sort((function(t,e){return e["data.percent"]-t["data.percent"]})),t.splice(n,t.length-n+1).forEach((function(t){var i=e.findIndex((function(e){return e.get("id")===t.id}));e[i]&&(e[i].remove(!0),e.splice(i,1))})));!function(t,e,i,n,r,a,o){e.sort((function(t,e){return t.y-e.y}));var s,l=n.start,u=n.end,c=Math.min(l.y,u.y),p=Math.max(l.y,u.y),h=e.map((function(t){return{content:t.content,size:i,pos:t.y,targets:[t.y]}})),f=Math.max.apply(Math,h.map((function(t){return t.pos}))),d=Math.min.apply(Math,h.map((function(t){return t.pos})));if(o){for(var g=Math.min(d,p-(h.length-1)*i),v=Math.max(g+h.length*i,f+i),y=!0;y;)for(y=!1,s=h.length;s--;)if(s>0){var m=h[s-1],b=h[s];m.pos+m.size>b.pos&&(b.pos+s*i<v?(m.size+=b.size,m.targets=m.targets.concat(b.targets),h.splice(s,1)):m.pos=b.pos-m.size,y=!0)}}else for(v=Math.max(c+(h.length-1)*i,f),g=Math.min(d,v-(h.length-1)*i),y=!0;y;)for(y=!1,s=h.length;s--;)if(s>0){m=h[s-1],b=h[s];m.pos+m.size>b.pos&&(m.pos-g>s*i?m.pos-=m.size:(m.size+=b.size,m.targets=m.targets.concat(b.targets),h.splice(s,1)),y=!0)}s=0,h.forEach((function(t){var n=t.pos;t.targets.forEach((function(){e[s].y=n,n+=i,s++}))}));for(var x={},_=0,M=t;_<M.length;_++){var w=M[_];x[w.get("id")]=w}var S=(Math.max.apply(Math,e.map((function(t){return t.y})))-Math.min.apply(Math,e.map((function(t){return t.y}))))/2;S=Math.max(S,a),e.forEach((function(t){var e=x[t.id],i=e.find((function(t){return"text"===t.get("type")}));if(i&&i.attr("y")!==t.y){var n=S*S,a=Math.pow(Math.abs(t.y-r.y),2);if(n<a)t.x=r.x;else{var s=Math.sqrt(n-a);t.x=o?r.x+s:r.x-s}}e.attr("x",t.x),e.attr("y",t.y),i&&(i.attr("y",t.y),i.attr("x",t.x))}))}(e,t,c,f,u,p,1===i)}))}n.each(t,(function(t){if(t&&t.labelLine){var e=t.angle,i=r.polarToCartesian(u.x,u.y,l,e),a=t.x+n.get(t,"offsetX",0)*(Math.cos(e)>0?1:-1),s=t.y+n.get(t,"offsetY",0)*(Math.sin(e)>0?1:-1),c={x:a-4*Math.cos(e),y:s-4*Math.sin(e)},p=t.labelLine.smooth,h=[],f=c.x-u.x,d=c.y-u.y,g=Math.atan(d/f);if(f<0&&(g+=Math.PI),!1===p){n.isObject(t.labelLine)||(t.labelLine={});var v=0;(e<0&&e>-Math.PI/2||e>1.5*Math.PI)&&c.y>i.y&&(v=1),e>=0&&e<Math.PI/2&&c.y>i.y&&(v=1),e>=Math.PI/2&&e<Math.PI&&i.y>c.y&&(v=1),(e<-Math.PI/2||e>=Math.PI&&e<1.5*Math.PI)&&i.y>c.y&&(v=1);var y=o/2>4?4:Math.max(o/2-1,0),m=r.polarToCartesian(u.x,u.y,l+y,e),b=r.polarToCartesian(u.x,u.y,l+o/2,g);h.push("M "+i.x+" "+i.y),h.push("L "+m.x+" "+m.y),h.push("A "+u.x+" "+u.y+" 0 0 "+v+" "+b.x+" "+b.y),h.push("L "+c.x+" "+c.y)}else{m=r.polarToCartesian(u.x,u.y,l+(o/2>4?4:Math.max(o/2-1,0)),e);var x=i.x<u.x?1:-1;h.push("M "+c.x+" "+c.y);var _=(i.y-u.y)/(i.x-u.x),M=(c.y-u.y)/(c.x-u.x);Math.abs(_-M)>Math.pow(Math.E,-16)&&h.push.apply(h,["C",c.x+4*x,c.y,2*m.x-i.x,2*m.y-i.y,i.x,i.y]),h.push("L "+i.x+" "+i.y)}t.labelLine.path=h.join(" ")}}))}},{"../../../../util/graphics":375,"@antv/util":803}],263:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../util/coordinate"),o=t("../../util/graphics"),s=function(t){function e(e){var i=t.call(this,e)||this;return i.defaultLayout="distribute",i}return n.__extends(e,t),e.prototype.getDefaultLabelCfg=function(){return r.get(this.geometry.theme,"pieLabels",{})},e.prototype.getDefaultOffset=function(t){return t||0},e.prototype.getLabelRotate=function(t,e,i){var n;return e<0&&((n=t)>Math.PI/2&&(n-=Math.PI),n<-Math.PI/2&&(n+=Math.PI)),n},e.prototype.getLabelAlign=function(t){var e,i=this.getCoordinate().getCenter();return e=t.angle<=Math.PI/2&&t.x>=i.x?"left":"right",this.getDefaultOffset(t.offset)<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,i=this.getCoordinate(),n={x:r.isArray(t.x)?t.x[0]:t.x,y:t.y[0]},o={x:r.isArray(t.x)?t.x[1]:t.x,y:t.y[1]},s=a.getAngleByPoint(i,n);if(t.points&&t.points[0].y===t.points[1].y)e=s;else{var l=a.getAngleByPoint(i,o);s>=l&&(l+=2*Math.PI),e=s+(l-s)/2}return e},e.prototype.getCirclePoint=function(t,e,i){var r=this.getCoordinate(),a=r.getCenter(),s=r.getRadius()+e;return n.__assign(n.__assign({},o.polarToCartesian(a.x,a.y,s,t)),{angle:t,r:s})},e}(n.__importDefault(t("./polar")).default);i.default=s},{"../../util/coordinate":371,"../../util/graphics":375,"./polar":264,"@antv/util":803,tslib:385}],264:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../util/coordinate"),o=t("../../util/coordinate"),s=n.__importDefault(t("./base")),l=Math.PI/2,u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getLabelAlign=function(t){var e,i=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(i.isTransposed){var n=i.getCenter(),r=this.getDefaultOffset(t.offset);e=Math.abs(t.x-n.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,i){var n,r=1,a=t.content[i];this.isToMiddle(e)?n=this.getMiddlePoint(e.points):(1===t.content.length&&0===i?i=1:0===i&&(r=-1),n=this.getArcPoint(e,i));var o=this.getDefaultOffset(t.offset)*r,s=this.getPointAngle(n),l=t.labelEmit,u=this.getCirclePoint(s,o,n,l);return 0===u.r?u.content="":(u.content=a,u.angle=s,u.color=e.color),u.rotate=t.autoRotate?this.getLabelRotate(s,o,l):t.rotate,u.start={x:n.x,y:n.y},u},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),r.isArray(t.x)||r.isArray(t.y)?{x:r.isArray(t.x)?t.x[e]:t.x,y:r.isArray(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return o.getAngleByPoint(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,i,r){var o=this.getCoordinate(),s=o.getCenter(),l=a.getDistanceToCenter(o,i);if(0===l)return n.__assign(n.__assign({},s),{r:l});var u=t;o.isTransposed&&l>e&&!r?u=t+2*Math.asin(e/(2*l)):l+=e;return{x:s.x+l*Math.cos(u),y:s.y+l*Math.sin(u),r:l}},e.prototype.getLabelRotate=function(t,e,i){var n=t+l;return i&&(n-=l),n&&(n>l?n-=Math.PI:n<-l&&(n+=Math.PI)),n},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),i=t.length,n={x:0,y:0};return r.each(t,(function(t){n.x+=t.x,n.y+=t.y})),n.x/=i,n.y/=i,n=e.convert(n)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(s.default);i.default=u},{"../../util/coordinate":371,"./base":255,"@antv/util":803,tslib:385}],265:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importDefault(t("./path"));t("./shape/line");var a=function(t){function e(e){var i=t.call(this,e)||this;i.type="line";var n=e.sortable,r=void 0===n||n;return i.sortable=r,i}return n.__extends(e,t),e}(r.default);i.default=a},{"./path":266,"./shape/line":288,tslib:385}],266:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../constant"),a=n.__importDefault(t("./base")),o=n.__importDefault(t("./element"));t("./shape/line");var s=t("./util/is-model-change"),l=function(t){function e(e){var i=t.call(this,e)||this;i.type="path",i.shapeType="line";var n=e.connectNulls,r=void 0!==n&&n,a=e.showSinglePoint,o=void 0===a||a;return i.connectNulls=r,i.showSinglePoint=o,i}return n.__extends(e,t),e.prototype.createElements=function(t,e,i){void 0===i&&(i=!1);var n=this.lastElementsMap,r=this.elementsMap,a=this.elements,l=this.container,u=this.getElementId(t),c=this.getShapeInfo(t),p=n[u];if(p){var h=p.getModel();(this.isCoordinateChanged||s.isModelChange(h,c))&&(p.animate=this.animateOption,p.update(c)),delete n[u]}else{var f=this.getShapeFactory();(p=new o.default({shapeFactory:f,container:l,offscreenGroup:this.getOffscreenGroup()})).geometry=this,p.animate=this.animateOption,p.draw(c,i)}return a.push(p),r[u]=p,a},e.prototype.getPointsAndData=function(t){for(var e=[],i=[],n=0,a=t.length;n<a;n++){var o=t[n];e.push({x:o.x,y:o.y}),i.push(o[r.FIELD_ORIGIN])}return{points:e,data:i}},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),i=this.getPointsAndData(t),n=i.points,r=i.data;return e.mappingData=t,e.data=r,e.isStack=!!this.getAdjust("stack"),e.points=n,e.connectNulls=this.connectNulls,e.showSinglePoint=this.showSinglePoint,e},e}(a.default);i.default=l},{"../constant":237,"./base":250,"./element":252,"./shape/line":288,"./util/is-model-change":306,tslib:385}],267:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importDefault(t("./base"));t("./shape/point");var a=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 n.__extends(e,t),e.prototype.getDrawCfg=function(e){var i=t.prototype.getDrawCfg.call(this,e);return n.__assign(n.__assign({},i),{isStack:!!this.getAdjust("stack")})},e}(r.default);i.default=a},{"./base":250,"./shape/point":293,tslib:385}],268:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("./base"));t("./shape/polygon");var o=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 n.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var i,n=t.prototype.createShapePointsCfg.call(this,e),a=n.x,o=n.y;if(!r.isArray(a)||!r.isArray(o)){var s=this.getXScale(),l=this.getYScale(),u=.5/s.values.length,c=.5/l.values.length;s.isCategory&&l.isCategory?(a=[a-u,a-u,a+u,a+u],o=[o-c,o+c,o+c,o-c]):r.isArray(a)?(a=[(i=a)[0],i[0],i[1],i[1]],o=[o-c/2,o+c/2,o+c/2,o-c/2]):r.isArray(o)&&(o=[(i=o)[0],i[1],i[1],i[0]],a=[a-u/2,a-u/2,a+u/2,a+u/2]),n.x=a,n.y=o}return n},e}(a.default);i.default=o},{"./base":250,"./shape/polygon":296,"@antv/util":803,tslib:385}],269:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../util/coordinate"),a=n.__importDefault(t("./base"));t("./shape/schema");var o=t("./util/shape-size"),s=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 n.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var i,n=t.prototype.createShapePointsCfg.call(this,e),a=this.getAttribute("size");if(a){i=this.getAttributeValues(a,e)[0];var s=this.coordinate;i/=r.getXDimensionLength(s)}else this.defaultSize||(this.defaultSize=o.getDefaultSize(this)),i=this.defaultSize;return n.size=i,n},e}(a.default);i.default=s},{"../util/coordinate":371,"./base":250,"./shape/schema":300,"./util/shape-size":308,tslib:385}],270:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("../base"),a=t("./util"),o=r.registerShapeFactory("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,i=t.y0;return(n.isArray(t.y)?t.y:[i,t.y]).map((function(t){return{x:e,y:t}}))}});r.registerShape("area","area",{draw:function(t,e){var i=a.getShapeAttrs(t,!1,!1,this);return e.addShape({type:"path",attrs:i,name:"area"})},getMarker:function(t){return{symbol:function(t,e,i){return void 0===i&&(i=5.5),[["M",t-i,e-4],["L",t+i,e-4],["L",t+i,e+4],["L",t-i,e+4],["Z"]]},style:{r:5,fill:t.color}}}}),i.default=o},{"../base":275,"./util":274,"@antv/util":803}],271:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../base"),r=t("./util");n.registerShape("area","line",{draw:function(t,e){var i=r.getShapeAttrs(t,!0,!1,this);return e.addShape({type:"path",attrs:i,name:"area"})},getMarker:function(t){return{symbol:function(t,e,i){return void 0===i&&(i=5.5),[["M",t-i,e-4],["L",t+i,e-4],["L",t+i,e+4],["L",t-i,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}})},{"../base":275,"./util":274}],272:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../base"),r=t("./util");n.registerShape("area","smooth-line",{draw:function(t,e){var i=this.coordinate,n=r.getShapeAttrs(t,!0,!0,this,r.getConstraint(i));return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,i){return void 0===i&&(i=5.5),[["M",t-i,e-4],["L",t+i,e-4],["L",t+i,e+4],["L",t-i,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}})},{"../base":275,"./util":274}],273:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../base"),r=t("./util");n.registerShape("area","smooth",{draw:function(t,e){var i=this.coordinate,n=r.getShapeAttrs(t,!1,!0,this,r.getConstraint(i));return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,i){return void 0===i&&(i=5.5),[["M",t-i,e-4],["L",t+i,e-4],["L",t+i,e+4],["L",t-i,e+4],["Z"]]},style:{r:5,fill:t.color}}}})},{"../base":275,"./util":274}],274:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getConstraint=i.getShapeAttrs=void 0;var n=t("@antv/util"),r=t("../util/get-path-points"),a=t("../util/get-style"),o=t("../util/path");function s(t,e,i,r,a){var s=[];if(t.length){for(var l=[],u=[],c=0,p=t.length;c<p;c++){var h=t[c];l.push(h[1]),u.push(h[0])}u=u.reverse(),n.each([l,u],(function(t,n){var c=[],p=r.parsePoints(t),h=p[0];1===l.length&&1===u.length?c=0===n?[["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&&p.push({x:h.x,y:h.y}),c=i?o.getSplinePath(p,!1,a):o.getLinePath(p,!1),n>0&&(c[0][0]="L")),s=s.concat(c)})),s.push(["Z"])}return s}i.getShapeAttrs=function(t,e,i,n,o){for(var l=a.getStyle(t,e,!e,"lineWidth"),u=t.connectNulls,c=t.isInCircle,p=t.points,h=t.showSinglePoint,f=r.getPathPoints(p,u,h),d=[],g=0,v=f.length;g<v;g++){var y=f[g];d=d.concat(s(y,c,i,n,o))}return l.path=d,l},i.getConstraint=function(t){var e=t.start,i=t.end;return[[e.x,i.y],[i.x,e.y]]}},{"../util/get-path-points":301,"../util/get-style":302,"../util/path":303,"@antv/util":803}],275:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getShapeFactory=i.registerShape=i.registerShapeFactory=void 0;var n=t("tslib"),r=t("@antv/path-util"),a=t("@antv/util"),o=t("./util/path"),s={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var i=this.getShape(t);return i.getPoints?i.getPoints(e):this.getDefaultPoints(e)},getShape:function(t){var e=this[t]||this[this.defaultShapeType];return e.coordinate=this.coordinate,e},getDefaultPoints:function(){return[]},getMarker:function(t,e){var i=this.getShape(t);if(!i.getMarker){var n=this.defaultShapeType;i=this.getShape(n)}var r=this.theme,o=a.get(r,[t,"default"],{}),s=i.getMarker(e);return a.deepMix({},o,s)},drawShape:function(t,e,i){return this.getShape(t).draw(e,i)}},l={coordinate:null,parsePath:function(t){var e=this.coordinate,i=r.parsePathString(t);return i=e.isPolar?o.convertPolarPath(e,i):o.convertNormalPath(e,i)},parsePoint:function(t){return this.coordinate.convert(t)},parsePoints:function(t){var e=this.coordinate;return t.map((function(t){return e.convert(t)}))},draw:function(t,e){}},u={};i.registerShapeFactory=function(t,e){var i=a.upperFirst(t),r=n.__assign(n.__assign(n.__assign({},s),e),{geometryType:t});return u[i]=r,r},i.registerShape=function(t,e,i){var r=a.upperFirst(t),o=u[r],s=n.__assign(n.__assign({},l),i);return o[e]=s,s},i.getShapeFactory=function(t){var e=a.upperFirst(t);return u[e]}},{"./util/path":303,"@antv/path-util":724,"@antv/util":803,tslib:385}],276:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../../../util/graphics"),a=t("../base"),o=t("../util/get-style"),s=t("./util");a.registerShape("edge","arc",{draw:function(t,e){var i,a=o.getStyle(t,!0,!1,"lineWidth"),l=t.points,u=l.length>2?"weight":"normal";if(t.isInCircle){var c={x:0,y:1};return"normal"===u?i=function(t,e,i){var n=s.getQPath(e,i),r=[["M",t.x,t.y]];return r.push(n),r}(l[0],l[1],c):(a.fill=a.stroke,i=function(t,e){var i=s.getQPath(t[1],e),n=s.getQPath(t[3],e),r=[["M",t[0].x,t[0].y]];return r.push(n),r.push(["L",t[3].x,t[3].y]),r.push(["L",t[2].x,t[2].y]),r.push(i),r.push(["L",t[1].x,t[1].y]),r.push(["L",t[0].x,t[0].y]),r.push(["Z"]),r}(l,c)),i=this.parsePath(i),e.addShape("path",{attrs:n.__assign(n.__assign({},a),{path:i})})}if("normal"===u)return l=this.parsePoints(l),i=r.getArcPath((l[1].x+l[0].x)/2,l[0].y,Math.abs(l[1].x-l[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:n.__assign(n.__assign({},a),{path:i})});var p=s.getCPath(l[1],l[3]),h=s.getCPath(l[2],l[0]);return i=[["M",l[0].x,l[0].y],["L",l[1].x,l[1].y],p,["L",l[3].x,l[3].y],["L",l[2].x,l[2].y],h,["Z"]],i=this.parsePath(i),a.fill=a.stroke,e.addShape("path",{attrs:n.__assign(n.__assign({},a),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},{"../../../util/graphics":375,"../base":275,"../util/get-style":302,"./util":279,tslib:385}],277:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../base"),a=t("../util/get-style"),o=t("../util/path"),s=t("../util/split-points"),l=r.registerShapeFactory("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return s.splitPoints(t)}});r.registerShape("edge","line",{draw:function(t,e){var i=a.getStyle(t,!0,!1,"lineWidth"),r=o.getLinePath(this.parsePoints(t.points),this.coordinate.isPolar);return e.addShape("path",{attrs:n.__assign(n.__assign({},i),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),i.default=l},{"../base":275,"../util/get-style":302,"../util/path":303,"../util/split-points":304,tslib:385}],278:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../base"),a=t("../util/get-style"),o=t("./util");r.registerShape("edge","smooth",{draw:function(t,e){var i=a.getStyle(t,!0,!1,"lineWidth"),r=t.points,s=this.parsePath(function(t,e){var i=o.getCPath(t,e),n=[["M",t.x,t.y]];return n.push(i),n}(r[0],r[1]));return e.addShape("path",{attrs:n.__assign(n.__assign({},i),{path:s})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},{"../base":275,"../util/get-style":302,"./util":279,tslib:385}],279:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getQPath=i.getCPath=void 0;var n=t("@antv/util");i.getCPath=function(t,e){var i=[];i.push({x:t.x,y:1*t.y/2+1*e.y/2}),i.push({x:e.x,y:1*t.y/2+1*e.y/2}),i.push(e);var r=["C"];return n.each(i,(function(t){r.push(t.x,t.y)})),r},i.getQPath=function(t,e){var i=[];i.push({x:e.x,y:e.y}),i.push(t);var r=["Q"];return n.each(i,(function(t){r.push(t.x,t.y)})),r}},{"@antv/util":803}],280:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../base"),o=t("../util/get-style");a.registerShape("edge","vhv",{draw:function(t,e){var i=o.getStyle(t,!0,!1,"lineWidth"),a=t.points,s=this.parsePath(function(t,e){var i=[];i.push({x:t.x,y:t.y*(1-1/3)+e.y*(1/3)}),i.push({x:e.x,y:t.y*(1-1/3)+e.y*(1/3)}),i.push(e);var n=[["M",t.x,t.y]];return r.each(i,(function(t){n.push(["L",t.x,t.y])})),n}(a[0],a[1]));return e.addShape("path",{attrs:n.__assign(n.__assign({},i),{path:s})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},{"../base":275,"../util/get-style":302,"@antv/util":803,tslib:385}],281:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../base"),a=t("../util/get-style"),o=t("./util");r.registerShape("interval","funnel",{getPoints:function(t){return t.size=2*t.size,o.getRectPoints(t)},draw:function(t,e){var i=a.getStyle(t,!1,!0),r=this.parsePath(o.getFunnelPath(t.points,t.nextPoints,!1));return e.addShape("path",{attrs:n.__assign(n.__assign({},i),{path:r}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},{"../base":275,"../util/get-style":302,"./util":287,tslib:385}],282:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../base"),a=t("../util/get-style"),o=t("./util");r.registerShape("interval","hollow-rect",{draw:function(t,e){var i=a.getStyle(t,!0,!1),r=this.parsePath(o.getRectPath(t.points));return e.addShape("path",{attrs:n.__assign(n.__assign({},i),{path:r}),name:"interval"})},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}})},{"../base":275,"../util/get-style":302,"./util":287,tslib:385}],283:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../base"),a=t("../util/get-style"),o=t("./util"),s=r.registerShapeFactory("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return o.getRectPoints(t)}});r.registerShape("interval","rect",{draw:function(t,e){var i=a.getStyle(t,!1,!0),r=this.parsePath(o.getRectPath(t.points));return e.addShape("path",{attrs:n.__assign(n.__assign({},i),{path:r}),name:"interval"})},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}}),i.default=s},{"../base":275,"../util/get-style":302,"./util":287,tslib:385}],284:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../base"),o=t("../util/get-style"),s=t("./util");a.registerShape("interval","line",{getPoints:function(t){return i=(e=t).x,n=e.y,a=e.y0,r.isArray(n)?n.map((function(t,e){return{x:r.isArray(i)?i[e]:i,y:t}})):[{x:i,y:a},{x:i,y:n}];var e,i,n,a},draw:function(t,e){var i=o.getStyle(t,!0,!1,"lineWidth"),r=this.parsePath(s.getRectPath(t.points,!1));return e.addShape("path",{attrs:n.__assign(n.__assign({},i),{path:r}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,i){return[["M",t,e-i],["L",t,e+i]]},style:{r:5,stroke:t.color}}}})},{"../base":275,"../util/get-style":302,"./util":287,"@antv/util":803,tslib:385}],285:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../base"),a=t("../util/get-style"),o=t("./util");r.registerShape("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,o.getRectPoints(t,!0)},draw:function(t,e){var i=a.getStyle(t,!1,!0),r=this.parsePath(o.getFunnelPath(t.points,t.nextPoints,!0));return e.addShape("path",{attrs:n.__assign(n.__assign({},i),{path:r}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},{"../base":275,"../util/get-style":302,"./util":287,tslib:385}],286:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../base"),o=t("../util/get-style");a.registerShape("interval","tick",{getPoints:function(t){return function(t){var e,i,n=t.x,a=t.y,o=t.y0,s=t.size;r.isArray(a)?(e=a[0],i=a[1]):(e=o,i=a);var l=n+s/2,u=n-s/2;return[{x:n,y:e},{x:n,y:i},{x:u,y:e},{x:l,y:e},{x:u,y:i},{x:l,y:i}]}(t)},draw:function(t,e){var i,r=o.getStyle(t,!0,!1),a=this.parsePath([["M",(i=t.points)[0].x,i[0].y],["L",i[1].x,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["M",i[4].x,i[4].y],["L",i[5].x,i[5].y]]);return e.addShape("path",{attrs:n.__assign(n.__assign({},r),{path:a}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,i){return[["M",t-i/2,e-i],["L",t+i/2,e-i],["M",t,e-i],["L",t,e+i],["M",t-i/2,e+i],["L",t+i/2,e+i]]},style:{r:5,stroke:t.color}}}})},{"../base":275,"../util/get-style":302,"@antv/util":803,tslib:385}],287:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getFunnelPath=i.getRectPath=i.getRectPoints=void 0;var n=t("@antv/util");i.getRectPoints=function(t,e){void 0===e&&(e=!1);var i,r,a,o,s=t.x,l=t.y,u=t.y0,c=t.size;n.isArray(l)?(i=l[0],r=l[1]):(i=u,r=l),n.isArray(s)?(a=s[0],o=s[1]):(a=s-c/2,o=s+c/2);var p=[{x:a,y:i},{x:a,y:r}];return e?p.push({x:o,y:(r+i)/2}):p.push({x:o,y:r},{x:o,y:i}),p},i.getRectPath=function(t,e){void 0===e&&(e=!0);var i=[],n=t[0];i.push(["M",n.x,n.y]);for(var r=1,a=t.length;r<a;r++)i.push(["L",t[r].x,t[r].y]);return e&&(i.push(["L",n.x,n.y]),i.push(["z"])),i},i.getFunnelPath=function(t,e,i){var r=[];return n.isNil(e)?i?r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[2].x,t[2].y],["Z"]):r.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"]):r.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"]),r}},{"@antv/util":803}],288:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("../base"),a=t("../util/get-path-points"),o=t("../util/get-style"),s=t("../util/path"),l=t("../util/split-points"),u=t("./util");function c(t,e,i,n,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]]:(i?(e&&t.length&&t.push({x:t[0].x,y:t[0].y}),a=s.getSplinePath(t,!1,n)):(a=s.getLinePath(t,!1),e&&a.push(["Z"])),a);var a}function p(t,e,i,r,a,o){if(t.length){var s=t[0];return n.isArray(s.y)?function(t,e,i,r,a,o){var s=[],u=[];n.each(t,(function(t){var e=l.splitPoints(t);s.push(e[1]),u.push(e[0])}));var p=c(s,e,r,a,o),h=c(u,e,r,a,o);return i?p:p.concat(h)}(t,e,i,r,a,o):c(t,e,r,a,o)}return[]}var h=r.registerShapeFactory("line",{defaultShapeType:"line"});n.each(["line","dot","dash","smooth"],(function(t){r.registerShape("line",t,{draw:function(e,i){var n,r="smooth"===t;if(r){var s=this.coordinate,l=s.start,u=s.end;n=[[l.x,u.y],[u.x,l.y]]}var c=function(t,e,i){for(var n=t.isStack,r=t.connectNulls,s=t.isInCircle,l=t.showSinglePoint,u=o.getStyle(t,!0,!1,"lineWidth"),c=a.getPathPoints(t.points,r,l),h=[],f=0,d=c.length;f<d;f++){var g=c[f];h=h.concat(p(g,s,n,e,i,u))}return u.path=h,u}(e,r,n);return i.addShape({type:"path",attrs:c,name:"line"})},getMarker:function(e){return u.getLineMarker(e,t)}})})),i.default=h},{"../base":275,"../util/get-path-points":301,"../util/get-style":302,"../util/path":303,"../util/split-points":304,"./util":290,"@antv/util":803}],289:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../base"),o=t("../util/get-path-points"),s=t("../util/get-style"),l=t("./util");function u(t,e){var i=o.getPathPoints(t.points,t.connectNulls,t.showSinglePoint),a=[];return r.each(i,(function(t){var i=function(t,e){var i=[];return r.each(t,(function(n,r){var a=t[r+1];if(i.push(n),a){var o=function(t,e,i){var n,r=t.x,a=t.y,o=e.x,s=e.y;switch(i){case"hv":n=[{x:o,y:a}];break;case"vh":n=[{x:r,y:s}];break;case"hvh":var l=(o+r)/2;n=[{x:l,y:a},{x:l,y:s}];break;case"vhv":var u=(a+s)/2;n=[{x:r,y:u},{x:o,y:u}]}return n}(n,a,e);i=i.concat(o)}})),i}(t,e);a=a.concat(function(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}(i))})),n.__assign(n.__assign({},s.getStyle(t,!0,!1,"lineWidth")),{path:a})}r.each(["hv","vh","hvh","vhv"],(function(t){a.registerShape("line",t,{draw:function(e,i){var n=u(e,t);return i.addShape({type:"path",attrs:n,name:"line"})},getMarker:function(e){return l.getLineMarker(e,t)}})}))},{"../base":275,"../util/get-path-points":301,"../util/get-style":302,"./util":290,"@antv/util":803,tslib:385}],290:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getLineMarker=void 0;var n={line:function(t,e,i){return[["M",t-i,e],["L",t+i,e]]},dot:function(t,e,i){return[["M",t-i,e],["L",t+i,e]]},dash:function(t,e,i){return[["M",t-i,e],["L",t+i,e]]},smooth:function(t,e,i){return[["M",t-i,e],["A",i/2,i/2,0,1,1,t,e],["A",i/2,i/2,0,1,0,t+i,e]]},hv:function(t,e,i){return[["M",t-i-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+i+1,e+2.5]]},vh:function(t,e,i){return[["M",t-i-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+i+1,e-2.5]]},hvh:function(t,e,i){return[["M",t-(i+1),e+2.5],["L",t-i/2,e+2.5],["L",t-i/2,e-2.5],["L",t+i/2,e-2.5],["L",t+i/2,e+2.5],["L",t+i+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]]}};i.getLineMarker=function(t,e){var i=t.color;return{symbol:n[e],style:{lineWidth:2,r:6,stroke:i}}}},{}],291:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("../../../util/marker"),a=t("../base"),o=t("./util");n.each(o.HOLLOW_SHAPES,(function(t){a.registerShape("point",t,{draw:function(e,i){return o.drawPoints(this,e,i,t,!0)},getMarker:function(e){var i=e.color;return{symbol:r.MarkerSymbols[t],style:{r:4.5,stroke:i,fill:null}}}})}))},{"../../../util/marker":379,"../base":275,"./util":295,"@antv/util":803}],292:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../base"),r=t("../util/get-style");n.registerShape("point","image",{draw:function(t,e){var i=r.getStyle(t,!1,!1,"r").r,n=this.parsePoints(t.points),a=n[0];if(t.isStack)a=n[1];else if(n.length>1){for(var o=e.addGroup(),s=0,l=n;s<l.length;s++){var u=l[s];o.addShape("image",{attrs:{x:u.x-i/2,y:u.y-i,width:i,height:i,img:t.shape[1]}})}return o}return e.addShape("image",{attrs:{x:a.x-i/2,y:a.y-i,width:i,height:i,img:t.shape[1]}})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},{"../base":275,"../util/get-style":302}],293:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("../../../util/marker"),a=t("../base"),o=t("../util/split-points"),s=t("./util"),l=a.registerShapeFactory("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return o.splitPoints(t)}});n.each(s.SHAPES,(function(t){a.registerShape("point","hollow-"+t,{draw:function(e,i){return s.drawPoints(this,e,i,t,!0)},getMarker:function(e){var i=e.color;return{symbol:r.MarkerSymbols[t]||t,style:{r:4.5,stroke:i,fill:null}}}})})),i.default=l},{"../../../util/marker":379,"../base":275,"../util/split-points":304,"./util":295,"@antv/util":803}],294:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("../../../util/marker"),a=t("../base"),o=t("./util");n.each(o.SHAPES,(function(t){a.registerShape("point",t,{draw:function(e,i){return o.drawPoints(this,e,i,t,!1)},getMarker:function(e){var i=e.color;return{symbol:r.MarkerSymbols[t]||t,style:{r:4.5,fill:i}}}})}))},{"../../../util/marker":379,"../base":275,"./util":295,"@antv/util":803}],295:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.drawPoints=i.HOLLOW_SHAPES=i.SHAPES=void 0;var n=t("tslib"),r=t("../../../util/marker"),a=t("../util/get-style");i.SHAPES=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],i.HOLLOW_SHAPES=["cross","tick","plus","hyphen","line"],i.drawPoints=function(t,e,i,o,s){var l=a.getStyle(e,s,!s,"r"),u=t.parsePoints(e.points),c=u[0];if(e.isStack)c=u[1];else if(u.length>1){for(var p=i.addGroup(),h=0,f=u;h<f.length;h++){var d=f[h];p.addShape({type:"marker",attrs:n.__assign(n.__assign(n.__assign({},l),{symbol:r.MarkerSymbols[o]||o}),d)})}return p}return i.addShape({type:"marker",attrs:n.__assign(n.__assign(n.__assign({},l),{symbol:r.MarkerSymbols[o]||o}),c)})}},{"../../../util/marker":379,"../util/get-style":302,tslib:385}],296:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../base"),o=t("../util/get-style");var s=a.registerShapeFactory("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return r.each(t.x,(function(i,n){var r=t.y[n];e.push({x:i,y:r})})),e}});a.registerShape("polygon","polygon",{draw:function(t,e){if(!r.isEmpty(t.points)){var i=o.getStyle(t,!0,!0),a=this.parsePath(function(t){for(var e=t[0],i=1,n=[["M",e.x,e.y]];i<t.length;){var a=t[i];a.x===t[i-1].x&&a.y===t[i-1].y||(n.push(["L",a.x,a.y]),a.x===e.x&&a.y===e.y&&i<t.length-1&&(e=t[i+1],n.push(["Z"]),n.push(["M",e.x,e.y]),i++)),i++}return r.isEqual(r.last(n),e)||n.push(["L",e.x,e.y]),n.push(["Z"]),n}(t.points));return e.addShape("path",{attrs:n.__assign(n.__assign({},i),{path:a}),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),i.default=s},{"../base":275,"../util/get-style":302,"@antv/util":803,tslib:385}],297:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../base"),o=t("../util/get-style");function s(t,e){var i=Math.abs(t[0].x-t[2].x),n=Math.abs(t[0].y-t[2].y),a=Math.min(i,n);return e&&(a=r.clamp(e,0,Math.min(i,n))),a/=2,{x:(t[0].x+t[2].x)/2-a,y:(t[0].y+t[2].y)/2-a,width:2*a,height:2*a}}a.registerShape("polygon","square",{draw:function(t,e){if(!r.isEmpty(t.points)){var i=o.getStyle(t,!0,!0),a=this.parsePoints(t.points);return e.addShape("rect",{attrs:n.__assign(n.__assign({},i),s(a,t.size)),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},{"../base":275,"../util/get-style":302,"@antv/util":803,tslib:385}],298:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../base"),o=t("../util/get-style");function s(t){var e=r.isArray(t)?t:[t],i=e[0],n=e[e.length-1],a=e.length>1?e[1]:i;return{min:i,max:n,min1:a,max1:e.length>3?e[3]:n,median:e.length>2?e[2]:a}}function l(t,e,i){var n,a=i/2;if(r.isArray(e)){var o=s(e),l=o.min,u=o.max,c=o.median,p=o.min1,h=t-a,f=t+a;n=[[h,u],[f,u],[t,u],[t,d=o.max1],[h,p],[h,d],[f,d],[f,p],[t,p],[t,l],[h,l],[f,l],[h,c],[f,c]]}else{e=r.isNil(e)?.5:e;var d,g=s(t),v=(l=g.min,u=g.max,c=g.median,e-a),y=e+a;n=[[l,v],[l,y],[l,e],[p=g.min1,e],[p,v],[p,y],[d=g.max1,y],[d,v],[d,e],[u,e],[u,v],[u,y],[c,v],[c,y]]}return n.map((function(t){return{x:t[0],y:t[1]}}))}a.registerShape("schema","box",{getPoints:function(t){return l(t.x,t.y,t.size)},draw:function(t,e){var i,r=o.getStyle(t,!0,!1),a=this.parsePath([["M",(i=t.points)[0].x,i[0].y],["L",i[1].x,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["M",i[4].x,i[4].y],["L",i[5].x,i[5].y],["L",i[6].x,i[6].y],["L",i[7].x,i[7].y],["L",i[4].x,i[4].y],["Z"],["M",i[8].x,i[8].y],["L",i[9].x,i[9].y],["M",i[10].x,i[10].y],["L",i[11].x,i[11].y],["M",i[12].x,i[12].y],["L",i[13].x,i[13].y]]);return e.addShape("path",{attrs:n.__assign(n.__assign({},r),{path:a,name:"schema"})})},getMarker:function(t){return{symbol:function(t,e,i){var n=l(t,[e-6,e-3,e,e+3,e+6],i);return[["M",n[0].x+1,n[0].y],["L",n[1].x-1,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y],["L",n[6].x,n[6].y],["L",n[7].x,n[7].y],["L",n[4].x,n[4].y],["Z"],["M",n[8].x,n[8].y],["L",n[9].x,n[9].y],["M",n[10].x+1,n[10].y],["L",n[11].x-1,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]]},style:{r:6,lineWidth:1,stroke:t.color}}}})},{"../base":275,"../util/get-style":302,"@antv/util":803,tslib:385}],299:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../../util/helper"),o=t("../base"),s=t("../util/get-style");function l(t,e,i){var n,o,s=(n=e,o=(r.isArray(n)?n:[n]).sort((function(t,e){return e-t})),a.padEnd(o,4,o[o.length-1]));return[{x:t,y:s[0]},{x:t,y:s[1]},{x:t-i/2,y:s[2]},{x:t-i/2,y:s[1]},{x:t+i/2,y:s[1]},{x:t+i/2,y:s[2]},{x:t,y:s[2]},{x:t,y:s[3]}]}o.registerShape("schema","candle",{getPoints:function(t){return l(t.x,t.y,t.size)},draw:function(t,e){var i,r=s.getStyle(t,!0,!0),a=this.parsePath([["M",(i=t.points)[0].x,i[0].y],["L",i[1].x,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["L",i[4].x,i[4].y],["L",i[5].x,i[5].y],["Z"],["M",i[6].x,i[6].y],["L",i[7].x,i[7].y]]);return e.addShape("path",{attrs:n.__assign(n.__assign({},r),{path:a,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,i){var n=l(t,[e+7.5,e+3,e-3,e-7.5],i);return[["M",n[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["L",n[4].x,n[4].y],["L",n[5].x,n[5].y],["Z"],["M",n[6].x,n[6].y],["L",n[7].x,n[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}})},{"../../../util/helper":377,"../base":275,"../util/get-style":302,"@antv/util":803,tslib:385}],300:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../base").registerShapeFactory("schema",{defaultShapeType:""});i.default=n},{"../base":275}],301:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getPathPoints=void 0;var n=t("@antv/util");function r(t){return!t&&(null==t||isNaN(t))}function a(t){if(n.isArray(t))return r(t[1].y);var e=t.y;return n.isArray(e)?r(e[0]):r(e)}i.getPathPoints=function(t,e,i){if(void 0===e&&(e=!1),void 0===i&&(i=!0),!t.length||1===t.length&&!i)return[];if(e){for(var n=[],r=0,o=t.length;r<o;r++){a(u=t[r])||n.push(u)}return[n]}var s=[],l=[];for(r=0,o=t.length;r<o;r++){var u;a(u=t[r])?l.length&&((1!==l.length||i)&&s.push(l),l=[]):l.push(u)}return l.length&&s.push(l),s}},{"@antv/util":803}],302:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getStyle=void 0;var n=t("tslib"),r=t("@antv/util");i.getStyle=function(t,e,i,a){void 0===a&&(a="");var o=t.style,s=void 0===o?{}:o,l=t.defaultStyle,u=t.color,c=t.size,p=n.__assign(n.__assign({},l),s);return u&&(e&&(s.stroke||(p.stroke=u)),i&&(s.fill||(p.fill=u))),a&&r.isNil(s[a])&&!r.isNil(c)&&(p[a]=c),p}},{"@antv/util":803,tslib:385}],303:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.convertPolarPath=i.convertNormalPath=i.getSplinePath=i.getLinePath=i.catmullRom2bezier=i.smoothBezier=void 0;var n=t("@antv/matrix-util"),r=t("@antv/util"),a=t("../../../util/coordinate");function o(t,e){for(var i=[t[0]],n=1,r=t.length;n<r;n+=2){var a=e.convert({x:t[n],y:t[n+1]});i.push(a.x,a.y)}return i}function s(t,e,n){for(var r=!!e,a=[],o=0,s=t.length;o<s;o+=2)a.push([t[o],t[o+1]]);var l,u,c,p=i.smoothBezier(a,.4,r,n),h=a.length,f=[];for(o=0;o<h-1;o++)l=p[2*o],u=p[2*o+1],c=a[o+1],f.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]]);return r&&(l=p[h],u=p[h+1],c=a[0],f.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]])),f}function l(t,e){return function(t,e){var i=[];if(t.length){i.push(["M",t[0].x,t[0].y]);for(var n=1,r=t.length;n<r;n+=1){var a=t[n];i.push(["L",a.x,a.y])}e&&i.push(["Z"])}return i}(t,e)}i.smoothBezier=function(t,e,i,r){var a,o,s,l,u=[],c=!!r;if(c){s=[1/0,1/0],l=[-1/0,-1/0];for(var p=0,h=t.length;p<h;p++){var f=t[p];s=n.vec2.min([0,0],s,f),l=n.vec2.max([0,0],l,f)}s=n.vec2.min([0,0],s,r[0]),l=n.vec2.max([0,0],l,r[1])}p=0;for(var d=t.length;p<d;p++){f=t[p];if(i)a=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){u.push(f);continue}a=t[p-1],o=t[p+1]}var g=[0,0];g=n.vec2.sub(g,o,a),g=n.vec2.scale(g,g,e);var v=n.vec2.distance(f,a),y=n.vec2.distance(f,o),m=v+y;0!==m&&(v/=m,y/=m);var b=n.vec2.scale([0,0],g,-v),x=n.vec2.scale([0,0],g,y),_=n.vec2.add([0,0],f,b),M=n.vec2.add([0,0],f,x);c&&(_=n.vec2.max([0,0],_,s),_=n.vec2.min([0,0],_,l),M=n.vec2.max([0,0],M,s),M=n.vec2.min([0,0],M,l)),u.push(_),u.push(M)}return i&&u.push(u.shift()),u},i.catmullRom2bezier=s,i.getLinePath=l,i.getSplinePath=function(t,e,i){var n=[],r=t[0],a=null;if(t.length<=2)return l(t,e);for(var o=0,u=t.length;o<u;o++){var c=t[o];a&&a.x===c.x&&a.y===c.y||(n.push(c.x),n.push(c.y),a=c)}var p=s(n,e,i||[[0,0],[1,1]]);return p.unshift(["M",r.x,r.y]),p},i.convertNormalPath=function(t,e){var i=[];return r.each(e,(function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":i.push(o(e,t));break;case"z":default:i.push(e)}})),i},i.convertPolarPath=function(t,e){var i,n,s,l=[];return r.each(e,(function(r,u){switch(r[0].toLowerCase()){case"m":case"c":case"q":l.push(o(r,t));break;case"l":i=e[u-1],n=r,s=t.isTransposed,(s?i[i.length-2]===n[1]:i[i.length-1]===n[2])?l=l.concat(function(t,e,i){var n=i.isTransposed,r=i.startAngle,o=i.endAngle,s={x:t[1],y:t[2]},l={x:e[1],y:e[2]},u=[],c=n?"y":"x",p=Math.abs(l[c]-s[c])*(o-r),h=l[c]>=s[c]?1:0,f=p>Math.PI?1:0,d=i.convert(l),g=a.getDistanceToCenter(i,d);if(g>=.5)if(p===2*Math.PI){var v={x:(l.x+s.x)/2,y:(l.y+s.y)/2},y=i.convert(v);u.push(["A",g,g,0,f,h,y.x,y.y]),u.push(["A",g,g,0,f,h,d.x,d.y])}else u.push(["A",g,g,0,f,h,d.x,d.y]);return u}(i,n,t)):l.push(o(r,t));break;case"z":default:l.push(r)}})),function(t){r.each(t,(function(e,i){if("a"===e[0].toLowerCase()){var n=t[i-1],r=t[i+1];r&&"a"===r[0].toLowerCase()?n&&"l"===n[0].toLowerCase()&&(n[0]="M"):n&&"a"===n[0].toLowerCase()&&r&&"l"===r[0].toLowerCase()&&(r[0]="M")}}))}(l),l}},{"../../../util/coordinate":371,"@antv/matrix-util":717,"@antv/util":803}],304:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.splitPoints=void 0;var n=t("@antv/util");i.splitPoints=function(t){var e=t.x;return(n.isArray(t.y)?t.y:[t.y]).map((function(t,i){return{x:n.isArray(e)?e[i]:e,y:t}}))}},{"@antv/util":803}],305:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.group=void 0;var n=t("@antv/util");i.group=function(t,e,i){if(void 0===i&&(i={}),!e)return[t];var r=n.groupToMap(t,e),a=[];if(1===e.length&&i[e[0]])for(var o=0,s=i[e[0]];o<s.length;o++){var l=r["_"+s[o]];l&&a.push(l)}else for(var u in r)if(r.hasOwnProperty(u)){var c=r[u];a.push(c)}return a}},{"@antv/util":803}],306:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isModelChange=void 0;var n=t("@antv/util");i.isModelChange=function(t,e){return n.some(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(i){return!n.isEqual(t[i],e[i])}))}},{"@antv/util":803}],307:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.parseFields=void 0;var n=t("@antv/util");i.parseFields=function(t){return n.isArray(t)?t:t.split("*")}},{"@antv/util":803}],308:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getDefaultSize=void 0;var n=t("@antv/util"),r=t("../../util/coordinate");i.getDefaultSize=function(t){var e=t.theme,i=t.coordinate,a=t.getXScale(),o=a.values,s=t.beforeMappingData,l=o.length;if(a.isLinear&&o.length>1){o.sort();var u=function(t,e){var i=t.length,r=t;n.isString(r[0])&&(r=t.map((function(t){return e.translate(t)})));for(var a=r[1]-r[0],o=2;o<i;o++){var s=r[o]-r[o-1];a>s&&(a=s)}return a}(o,a);l=(a.max-a.min)/u,o.length>l&&(l=o.length)}var c=a.range,p=1/l,h=1;i.isPolar?h=i.isTransposed&&l>1?e.multiplePieWidthRatio:e.roseWidthRatio:(a.isLinear&&(p*=c[1]-c[0]),h=e.columnWidthRatio),p*=h,t.getAdjust("dodge")&&(p/=function(t,e){if(e){var i=n.flatten(t);return n.valuesOfKey(i,e).length}return t.length}(s,t.getAdjust("dodge").dodgeBy));var f=e.maxColumnWidth,d=e.minColumnWidth,g=r.getXDimensionLength(t.coordinate);if(f){var v=f/g;p>v&&(p=v)}if(d){var y=d/g;p<y&&(p=y)}return p}},{"../../util/coordinate":371,"@antv/util":803}],309:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Util=void 0;var n=t("tslib"),r=t("./core"),a=t("./theme/style-sheet/dark"),o=t("./util/theme");r.registerTheme("dark",o.createThemeByStylesheet(a.antvDark));var s=n.__importStar(t("@antv/g-canvas")),l=n.__importStar(t("@antv/g-svg")),u=t("./core");u.registerEngine("canvas",s),u.registerEngine("svg",l);var c=t("./core"),p=n.__importDefault(t("./geometry/area")),h=n.__importDefault(t("./geometry/edge")),f=n.__importDefault(t("./geometry/heatmap")),d=n.__importDefault(t("./geometry/interval")),g=n.__importDefault(t("./geometry/line")),v=n.__importDefault(t("./geometry/path")),y=n.__importDefault(t("./geometry/point")),m=n.__importDefault(t("./geometry/polygon")),b=n.__importDefault(t("./geometry/schema"));c.registerGeometry("Polygon",m.default),c.registerGeometry("Interval",d.default),c.registerGeometry("Schema",b.default),c.registerGeometry("Path",v.default),c.registerGeometry("Point",y.default),c.registerGeometry("Line",g.default),c.registerGeometry("Area",p.default),c.registerGeometry("Edge",h.default),c.registerGeometry("Heatmap",f.default),t("./geometry/shape/area/line"),t("./geometry/shape/area/smooth"),t("./geometry/shape/area/smooth-line"),t("./geometry/shape/edge/arc"),t("./geometry/shape/edge/smooth"),t("./geometry/shape/edge/vhv"),t("./geometry/shape/interval/funnel"),t("./geometry/shape/interval/hollow-rect"),t("./geometry/shape/interval/line"),t("./geometry/shape/interval/pyramid"),t("./geometry/shape/interval/tick"),t("./geometry/shape/line/step"),t("./geometry/shape/point/hollow"),t("./geometry/shape/point/image"),t("./geometry/shape/point/solid"),t("./geometry/shape/schema/box"),t("./geometry/shape/schema/candle"),t("./geometry/shape/polygon/square");var x=t("./core"),_=n.__importDefault(t("./geometry/label/base")),M=n.__importDefault(t("./geometry/label/interval")),w=n.__importDefault(t("./geometry/label/pie")),S=n.__importDefault(t("./geometry/label/polar"));x.registerGeometryLabel("base",_.default),x.registerGeometryLabel("interval",M.default),x.registerGeometryLabel("pie",w.default),x.registerGeometryLabel("polar",S.default);var C=t("./core"),P=t("./geometry/label/layout/pie/distribute"),O=t("./geometry/label/layout/pie/outer"),T=t("./geometry/label/layout/limit-in-canvas"),A=t("./geometry/label/layout/limit-in-shape"),E=t("./geometry/label/layout/overlap");C.registerGeometryLabelLayout("overlap",E.overlap),C.registerGeometryLabelLayout("distribute",P.distribute),C.registerGeometryLabelLayout("fixed-overlap",E.fixedOverlap),C.registerGeometryLabelLayout("limit-in-shape",A.limitInShape),C.registerGeometryLabelLayout("limit-in-canvas",T.limitInCanvas),C.registerGeometryLabelLayout("pie-outer",O.pieOuterLabelLayout);var L=t("./animate/animation/fade"),I=t("./animate/animation/grow-in"),D=t("./animate/animation/path-in"),k=t("./animate/animation/position-update"),B=t("./animate/animation/scale-in"),F=t("./animate/animation/sector-path-update"),j=t("./animate/animation/wave-in"),R=t("./animate/animation/zoom"),N=t("./core");N.registerAnimation("fade-in",L.fadeIn),N.registerAnimation("fade-out",L.fadeOut),N.registerAnimation("grow-in-x",I.growInX),N.registerAnimation("grow-in-xy",I.growInXY),N.registerAnimation("grow-in-y",I.growInY),N.registerAnimation("scale-in-x",B.scaleInX),N.registerAnimation("scale-in-y",B.scaleInY),N.registerAnimation("wave-in",j.waveIn),N.registerAnimation("zoom-in",R.zoomIn),N.registerAnimation("zoom-out",R.zoomOut),N.registerAnimation("position-update",k.positionUpdate),N.registerAnimation("sector-path-update",F.sectorPathUpdate),N.registerAnimation("path-in",D.pathIn);var Y=t("./core"),G=n.__importDefault(t("./facet/circle")),V=n.__importDefault(t("./facet/list")),X=n.__importDefault(t("./facet/matrix")),z=n.__importDefault(t("./facet/mirror")),H=n.__importDefault(t("./facet/rect")),W=n.__importDefault(t("./facet/tree"));Y.registerFacet("rect",H.default),Y.registerFacet("mirror",z.default),Y.registerFacet("list",V.default),Y.registerFacet("matrix",X.default),Y.registerFacet("circle",G.default),Y.registerFacet("tree",W.default);var q=t("./core"),U=n.__importDefault(t("./chart/controller/annotation")),Z=n.__importDefault(t("./chart/controller/axis")),K=n.__importDefault(t("./chart/controller/legend")),Q=n.__importDefault(t("./chart/controller/slider")),$=n.__importDefault(t("./chart/controller/tooltip"));q.registerComponentController("axis",Z.default),q.registerComponentController("legend",K.default),q.registerComponentController("tooltip",$.default),q.registerComponentController("annotation",U.default),q.registerComponentController("slider",Q.default);var J=t("./core"),tt=n.__importDefault(t("./interaction/action/active-region")),et=n.__importDefault(t("./interaction/action/component/tooltip/sibling")),it=n.__importDefault(t("./interaction/action/component/tooltip/geometry")),nt=n.__importDefault(t("./interaction/action/component/tooltip/ellipsis-text")),rt=n.__importDefault(t("./interaction/action/element/active")),at=n.__importDefault(t("./interaction/action/element/link-by-color")),ot=n.__importDefault(t("./interaction/action/element/range-active")),st=n.__importDefault(t("./interaction/action/element/single-active")),lt=n.__importDefault(t("./interaction/action/element/highlight")),ut=n.__importDefault(t("./interaction/action/element/highlight-by-color")),ct=n.__importDefault(t("./interaction/action/element/highlight-by-x")),pt=n.__importDefault(t("./interaction/action/element/range-highlight")),ht=n.__importDefault(t("./interaction/action/element/single-highlight")),ft=n.__importDefault(t("./interaction/action/element/range-selected")),dt=n.__importDefault(t("./interaction/action/element/selected")),gt=n.__importDefault(t("./interaction/action/element/single-selected")),vt=n.__importDefault(t("./interaction/action/component/list-active")),yt=n.__importDefault(t("./interaction/action/component/list-highlight")),mt=n.__importDefault(t("./interaction/action/component/list-selected")),bt=n.__importDefault(t("./interaction/action/component/list-unchecked")),xt=n.__importDefault(t("./interaction/action/mask/circle")),_t=n.__importDefault(t("./interaction/action/mask/dim-rect")),Mt=n.__importDefault(t("./interaction/action/mask/path")),wt=n.__importDefault(t("./interaction/action/mask/rect")),St=n.__importDefault(t("./interaction/action/mask/smooth-path")),Ct=n.__importDefault(t("./interaction/action/cursor")),Pt=n.__importDefault(t("./interaction/action/data/filter")),Ot=n.__importDefault(t("./interaction/action/data/range-filter")),Tt=n.__importDefault(t("./interaction/action/data/sibling-filter")),At=n.__importDefault(t("./interaction/action/element/filter")),Et=n.__importDefault(t("./interaction/action/element/sibling-filter")),Lt=n.__importDefault(t("./interaction/action/view/button")),It=n.__importDefault(t("./interaction/action/view/drag")),Dt=n.__importDefault(t("./interaction/action/view/move")),kt=n.__importDefault(t("./interaction/action/view/scale-translate")),Bt=n.__importDefault(t("./interaction/action/view/scale-zoom"));J.registerAction("tooltip",it.default),J.registerAction("sibling-tooltip",et.default),J.registerAction("ellipsis-text",nt.default),J.registerAction("element-active",rt.default),J.registerAction("element-single-active",st.default),J.registerAction("element-range-active",ot.default),J.registerAction("element-highlight",lt.default),J.registerAction("element-highlight-by-x",ct.default),J.registerAction("element-highlight-by-color",ut.default),J.registerAction("element-single-highlight",ht.default),J.registerAction("element-range-highlight",pt.default),J.registerAction("element-sibling-highlight",pt.default,{effectSiblings:!0,effectByRecord:!0}),J.registerAction("element-selected",dt.default),J.registerAction("element-single-selected",gt.default),J.registerAction("element-range-selected",ft.default),J.registerAction("element-link-by-color",at.default),J.registerAction("active-region",tt.default),J.registerAction("list-active",vt.default),J.registerAction("list-selected",mt.default),J.registerAction("list-highlight",yt.default),J.registerAction("list-unchecked",bt.default),J.registerAction("legend-item-highlight",yt.default,{componentNames:["legend"]}),J.registerAction("axis-label-highlight",yt.default,{componentNames:["axis"]}),J.registerAction("rect-mask",wt.default),J.registerAction("x-rect-mask",_t.default,{dim:"x"}),J.registerAction("y-rect-mask",_t.default,{dim:"y"}),J.registerAction("circle-mask",xt.default),J.registerAction("path-mask",Mt.default),J.registerAction("smooth-path-mask",St.default),J.registerAction("cursor",Ct.default),J.registerAction("data-filter",Pt.default),J.registerAction("brush",Ot.default),J.registerAction("brush-x",Ot.default,{dims:["x"]}),J.registerAction("brush-y",Ot.default,{dims:["y"]}),J.registerAction("sibling-filter",Tt.default),J.registerAction("sibling-x-filter",Tt.default),J.registerAction("sibling-y-filter",Tt.default),J.registerAction("element-filter",At.default),J.registerAction("element-sibling-filter",Et.default),J.registerAction("element-sibling-filter-record",Et.default,{byRecord:!0}),J.registerAction("view-drag",It.default),J.registerAction("view-move",Dt.default),J.registerAction("scale-translate",kt.default),J.registerAction("scale-zoom",Bt.default),J.registerAction("reset-button",Lt.default,{name:"reset-button",text:"reset"});var Ft=t("./core");function jt(t){return t.isInPlot()}function Rt(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}Ft.registerInteraction("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"}]}),Ft.registerInteraction("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"}]}),Ft.registerInteraction("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Ft.registerInteraction("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Ft.registerInteraction("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Ft.registerInteraction("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Ft.registerInteraction("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Ft.registerInteraction("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"]}]}),Ft.registerInteraction("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"]}]}),Ft.registerInteraction("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"]}]}),Ft.registerInteraction("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"]}]}),Ft.registerInteraction("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"]}]}),Ft.registerInteraction("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:jt,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:jt,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:jt,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"]}]}),Ft.registerInteraction("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"]}]}),Ft.registerInteraction("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:jt,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:jt,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:jt,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Ft.registerInteraction("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:jt,action:"path-mask:start"},{trigger:"mousedown",isEnable:jt,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"}]}),Ft.registerInteraction("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Ft.registerInteraction("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"]}]}),Ft.registerInteraction("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Ft.registerInteraction("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Ft.registerInteraction("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"]}]}),Ft.registerInteraction("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Ft.registerInteraction("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Rt(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Rt(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Ft.registerInteraction("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),n.__exportStar(t("./core"),i);var Nt=t("./util/graphics"),Yt=t("./util/transform");i.Util={translate:Yt.translate,rotate:Yt.rotate,zoom:Yt.zoom,transform:Yt.transform,getAngle:Nt.getAngle,polarToCartesian:Nt.polarToCartesian}},{"./animate/animation/fade":207,"./animate/animation/grow-in":208,"./animate/animation/path-in":210,"./animate/animation/position-update":211,"./animate/animation/scale-in":212,"./animate/animation/sector-path-update":213,"./animate/animation/wave-in":215,"./animate/animation/zoom":216,"./chart/controller/annotation":220,"./chart/controller/axis":221,"./chart/controller/legend":226,"./chart/controller/slider":227,"./chart/controller/tooltip":228,"./core":238,"./facet/circle":241,"./facet/list":244,"./facet/matrix":245,"./facet/mirror":246,"./facet/rect":247,"./facet/tree":248,"./geometry/area":249,"./geometry/edge":251,"./geometry/heatmap":253,"./geometry/interval":254,"./geometry/label/base":255,"./geometry/label/interval":257,"./geometry/label/layout/limit-in-canvas":258,"./geometry/label/layout/limit-in-shape":259,"./geometry/label/layout/overlap":260,"./geometry/label/layout/pie/distribute":261,"./geometry/label/layout/pie/outer":262,"./geometry/label/pie":263,"./geometry/label/polar":264,"./geometry/line":265,"./geometry/path":266,"./geometry/point":267,"./geometry/polygon":268,"./geometry/schema":269,"./geometry/shape/area/line":271,"./geometry/shape/area/smooth":273,"./geometry/shape/area/smooth-line":272,"./geometry/shape/edge/arc":276,"./geometry/shape/edge/smooth":278,"./geometry/shape/edge/vhv":280,"./geometry/shape/interval/funnel":281,"./geometry/shape/interval/hollow-rect":282,"./geometry/shape/interval/line":284,"./geometry/shape/interval/pyramid":285,"./geometry/shape/interval/tick":286,"./geometry/shape/line/step":289,"./geometry/shape/point/hollow":291,"./geometry/shape/point/image":292,"./geometry/shape/point/solid":294,"./geometry/shape/polygon/square":297,"./geometry/shape/schema/box":298,"./geometry/shape/schema/candle":299,"./interaction/action/active-region":310,"./interaction/action/component/list-active":313,"./interaction/action/component/list-highlight":315,"./interaction/action/component/list-selected":316,"./interaction/action/component/list-unchecked":318,"./interaction/action/component/tooltip/ellipsis-text":319,"./interaction/action/component/tooltip/geometry":320,"./interaction/action/component/tooltip/sibling":321,"./interaction/action/cursor":322,"./interaction/action/data/filter":323,"./interaction/action/data/range-filter":324,"./interaction/action/data/sibling-filter":325,"./interaction/action/element/active":326,"./interaction/action/element/filter":327,"./interaction/action/element/highlight":331,"./interaction/action/element/highlight-by-color":328,"./interaction/action/element/highlight-by-x":329,"./interaction/action/element/link-by-color":332,"./interaction/action/element/range-active":333,"./interaction/action/element/range-highlight":334,"./interaction/action/element/range-selected":335,"./interaction/action/element/selected":337,"./interaction/action/element/sibling-filter":338,"./interaction/action/element/single-active":339,"./interaction/action/element/single-highlight":340,"./interaction/action/element/single-selected":341,"./interaction/action/mask/circle":347,"./interaction/action/mask/dim-rect":348,"./interaction/action/mask/path":349,"./interaction/action/mask/rect":350,"./interaction/action/mask/smooth-path":351,"./interaction/action/view/button":354,"./interaction/action/view/drag":355,"./interaction/action/view/move":356,"./interaction/action/view/scale-translate":358,"./interaction/action/view/scale-zoom":359,"./theme/style-sheet/dark":366,"./util/graphics":375,"./util/theme":382,"./util/transform":384,"@antv/g-canvas":127,"@antv/g-svg":186,tslib:385}],310:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../util/graphics"),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.show=function(){var t=this.context.view,e=this.context.event,i=t.getTooltipItems({x:e.x,y:e.y});if(!r.isEqual(i,this.items)&&(this.items=i,i.length)){var n=t.getXScale().field,o=i[0].data[n],s=[],l=t.geometries;if(r.each(l,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){return t.getData()[n]===o}));s=s.concat(e)}})),s.length){var u=t.getCoordinate(),c=s[0].shape.getCanvasBBox(),p=s[0].shape.getCanvasBBox(),h=c;r.each(s,(function(t){var e=t.shape.getCanvasBBox();u.isTransposed?(e.minY<c.minY&&(c=e),e.maxY>p.maxY&&(p=e)):(e.minX<c.minX&&(c=e),e.maxX>p.maxX&&(p=e)),h.x=Math.min(e.minX,h.minX),h.y=Math.min(e.minY,h.minY),h.width=Math.max(e.maxX,h.maxX)-h.x,h.height=Math.max(e.maxY,h.maxY)-h.y}));var f=t.backgroundGroup,d=t.coordinateBBox,g=void 0;if(u.isRect){var v=t.getXScale().isLinear?0:.25,y=void 0,m=void 0,b=void 0,x=void 0;u.isTransposed?(y=d.minX,m=Math.min(p.minY,c.minY)-v*p.height,b=d.width,x=h.height+2*v*p.height):(y=Math.min(c.minX,p.minX)-v*c.width,m=Math.min(d.minY,c.minY),b=h.width+2*v*c.width,x=d.height),g=[["M",y,m],["L",y+b,m],["L",y+b,m+x],["L",y,m+x],["Z"]]}else{var _=r.head(s),M=r.last(s),w=a.getAngle(_.getModel(),u).startAngle,S=a.getAngle(M.getModel(),u).endAngle,C=u.getCenter(),P=u.getRadius(),O=u.innerRadius*P;g=a.getSectorPath(C.x,C.y,P,w,S,O)}this.regionPath?(this.regionPath.attr("path",g),this.regionPath.show()):this.regionPath=f.addShape({type:"path",name:"active-region",capture:!1,attrs:{path:g,fill:"#CCD6EC",opacity:.3}})}}},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}(n.__importDefault(t("./base")).default);i.default=o},{"../../util/graphics":375,"./base":311,"@antv/util":803,tslib:385}],311:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){n.assign(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}();i.default=r},{"@antv/util":803}],312:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(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}(n.__importDefault(t("./base")).default);i.default=r},{"./base":311,tslib:385}],313:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return n.__extends(e,t),e.prototype.active=function(){this.setState()},e}(n.__importDefault(t("./list-state")).default);i.default=r},{"./list-state":317,tslib:385}],314:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.clearList=void 0;var n=t("@antv/util");i.clearList=function(t){var e=t.getItems();n.each(e,(function(e){t.hasState(e,"active")&&t.setItemState(e,"active",!1),t.hasState(e,"inactive")&&t.setItemState(e,"inactive",!1)}))}},{"@antv/util":803}],315:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("./list-highlight-util"),o=n.__importDefault(t("./list-state")),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e.ignoreItemStates=["unchecked"],e}return n.__extends(e,t),e.prototype.setItemsState=function(t,e,i){this.setHighlightBy(t,(function(t){return t.name===e}),i)},e.prototype.setItemState=function(t,e,i){t.getItems();this.setHighlightBy(t,(function(t){return t===e}),i)},e.prototype.setHighlightBy=function(t,e,i){var n=t.getItems();if(i)r.each(n,(function(i){e(i)?(t.hasState(i,"inactive")&&t.setItemState(i,"inactive",!1),t.setItemState(i,"active",!0)):t.hasState(i,"active")||t.setItemState(i,"inactive",!0)}));else{var a=t.getItemsByState("active"),o=!0;r.each(a,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():r.each(n,(function(i){e(i)&&(t.hasState(i,"active")&&t.setItemState(i,"active",!1),t.setItemState(i,"inactive",!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)a.clearList(t.list);else{var e=this.getAllowComponents();r.each(e,(function(t){t.clearItemsState("active"),t.clearItemsState("inactive")}))}},e}(o.default);i.default=s},{"./list-highlight-util":314,"./list-state":317,"@antv/util":803,tslib:385}],316:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return n.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(n.__importDefault(t("./list-state")).default);i.default=r},{"./list-state":317,tslib:385}],317:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../base")),o=t("../util"),s=t("../util"),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return n.__extends(e,t),e.prototype.getTriggerListInfo=function(){var t=s.getDelegationObject(this.context),e=null;return s.isList(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=this.context.view,i=o.getComponents(e),n=[];return r.each(i,(function(e){e.isList()&&t.allowSetStateByElement(e)&&n.push(e)})),n},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();r.each(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 i=t.get("name");if(-1===this.cfg.componentNames.indexOf(i))return!1}var n=this.context.view,r=s.getScaleByField(n,e);return r&&r.isCategory},e.prototype.allowSetStateByItem=function(t,e){var i=this.ignoreItemStates;return!i.length||0===i.filter((function(i){return e.hasState(t,i)})).length},e.prototype.setStateByElement=function(t,e,i){var n=t.get("field"),r=this.context.view,a=s.getScaleByField(r,n),o=s.getElementValue(e,n),l=a.getText(o);this.setItemsState(t,l,i)},e.prototype.setStateEnable=function(t){var e=this,i=s.getCurrentElement(this.context);if(i){var n=this.getAllowComponents();r.each(n,(function(n){e.setStateByElement(n,i,t)}))}else{var a=s.getDelegationObject(this.context);if(s.isList(a)){var o=a.item,l=a.component;this.allowSetStateByElement(l)&&this.allowSetStateByItem(o,l)&&this.setItemState(l,o,t)}}},e.prototype.setItemsState=function(t,e,i){var n=this,a=t.getItems();r.each(a,(function(r){r.name===e&&n.setItemState(t,r,i)}))},e.prototype.setItemState=function(t,e,i){t.setItemState(e,this.stateName,i)},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,i=t.item,n=this.hasState(e,i);this.setItemState(e,i,!n)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(a.default);i.default=l},{"../base":311,"../util":353,"@antv/util":803,tslib:385}],318:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return n.__extends(e,t),e.prototype.unchecked=function(){this.setState()},e}(n.__importDefault(t("./list-state")).default);i.default=r},{"./list-state":317,tslib:385}],319:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base")),o=t("../../../../dependents"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return n.__extends(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context.event,e=this.timeStamp,i=+new Date;if(i-e>16){var n=this.location,a={x:t.x,y:t.y};n&&r.isEqual(n,a)||this.showTooltip(a),this.timeStamp=i,this.location=a}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context.event.target;if(e&&e.get("tip")){this.tooltip||this.renderTooltip();var i=e.get("tip");this.tooltip.update(n.__assign({title:i},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t=this.context.view,e=t.canvas,i={start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}},n=t.getTheme(),a=r.get(n,["components","tooltip","domStyles"],{}),s=new o.HtmlTooltip({parent:e.get("el").parentNode,region:i,visible:!1,crosshairs:null,domStyles:a});s.init(),s.setCapture(!1),this.tooltip=s},e}(a.default);i.default=s},{"../../../../dependents":239,"../../base":311,"@antv/util":803,tslib:385}],320:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return n.__extends(e,t),e.prototype.show=function(){var t=this.context,e=t.event,i=t.view;if(!i.isTooltipLocked()){var n=this.timeStamp,a=+new Date;if(a-n>16){var o=this.location,s={x:e.x,y:e.y};o&&r.isEqual(o,s)||this.showTooltip(i,s),this.timeStamp=a,this.location=s}}},e.prototype.hide=function(){var t=this.context.view;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}(n.__importDefault(t("../../base")).default);i.default=a},{"../../base":311,"@antv/util":803,tslib:385}],321:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../util"),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.showTooltip=function(t,e){var i=a.getSilbings(t);r.each(i,(function(i){var n=a.getSiblingPoint(t,i,e);i.showTooltip(n)}))},e.prototype.hideTooltip=function(t){var e=a.getSilbings(t);r.each(e,(function(t){t.hideTooltip()}))},e}(n.__importDefault(t("./geometry")).default);i.default=o},{"../../util":353,"./geometry":320,"@antv/util":803,tslib:385}],322:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.setCursor=function(t){this.context.view.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}(n.__importDefault(t("./base")).default);i.default=r},{"./base":311,tslib:385}],323:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../base")),o=t("../util"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.filterView=function(t,e,i){var n=this;t.getScaleByField(e)&&t.filter(e,i),t.views&&t.views.length&&r.each(t.views,(function(t){n.filterView(t,e,i)}))},e.prototype.filter=function(){var t=o.getDelegationObject(this.context);if(t){var e=this.context.view,i=t.component,n=i.get("field");if(o.isList(t)){if(n){var r=i.getItemsByState("unchecked"),a=o.getScaleByField(e,n),s=r.map((function(t){return t.name}));s.length?this.filterView(e,n,(function(t){var e=a.getText(t);return!s.includes(e)})):this.filterView(e,n,null),e.render(!0)}}else if(o.isSlider(t)){var l=i.getValue(),u=l[0],c=l[1];this.filterView(e,n,(function(t){return t>=u&&t<=c})),e.render(!0)}}},e}(a.default);i.default=s},{"../base":311,"../util":353,"@antv/util":803,tslib:385}],324:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importDefault(t("../base")),a=t("../util");function o(t,e,i,n){var r=Math.min(i[e],n[e]),a=Math.max(i[e],n[e]),o=t.range,s=o[0],l=o[1];if(r<s&&(r=s),a>l&&(a=l),r===l&&a===l)return null;var u=t.invert(r),c=t.invert(a);if(t.isCategory){var p=t.values.indexOf(u),h=t.values.indexOf(c),f=t.values.slice(p,h+1);return function(t){return f.includes(t)}}return function(t){return t>=u&&t<=c}}var s=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 n.__extends(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(a.isMask(this.context)){var i=this.context.event.target.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 n=this.context.view,r=n.getCoordinate(),s=r.invert(e),l=r.invert(t);if(this.hasDim("x")){var u=n.getXScale(),c=o(u,"x",s,l);this.filterView(n,u.field,c)}if(this.hasDim("y")){var p=n.getYScales()[0];c=o(p,"y",s,l);this.filterView(n,p.field,c)}this.reRender(n)}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var i=t.getYScales()[0];this.filterView(t,i.field,null)}this.reRender(t)},e.prototype.filterView=function(t,e,i){t.filter(e,i)},e.prototype.reRender=function(t){t.render(!0)},e}(r.default);i.default=s},{"../base":311,"../util":353,tslib:385}],325:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("./range-filter")),o=t("../util"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.filterView=function(t,e,i){var n=o.getSilbings(t);r.each(n,(function(t){t.filter(e,i)}))},e.prototype.reRender=function(t){var e=o.getSilbings(t);r.each(e,(function(t){t.render(!0)}))},e}(a.default);i.default=s},{"../util":353,"./range-filter":324,"@antv/util":803,tslib:385}],326:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return n.__extends(e,t),e.prototype.active=function(){this.setState()},e}(n.__importDefault(t("./state")).default);i.default=r},{"./state":344,tslib:385}],327:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../base")),o=t("../util"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.filter=function(){var t=o.getDelegationObject(this.context),e=this.context.view,i=o.getElements(e);if(o.isMask(this.context)){var n=o.getMaskedElements(this.context,10);n&&r.each(i,(function(t){n.includes(t)?t.show():t.hide()}))}else if(t){var a=t.component,s=a.get("field");if(o.isList(t)){if(s){var l=a.getItemsByState("unchecked"),u=o.getScaleByField(e,s),c=l.map((function(t){return t.name}));r.each(i,(function(t){var e=o.getElementValue(t,s),i=u.getText(e);c.indexOf(i)>=0?t.hide():t.show()}))}}else if(o.isSlider(t)){var p=a.getValue(),h=p[0],f=p[1];r.each(i,(function(t){var e=o.getElementValue(t,s);e>=h&&e<=f?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=o.getElements(this.context.view);r.each(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(a.default);i.default=s},{"../base":311,"../util":353,"@antv/util":803,tslib:385}],328:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../util"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.setStateByElement=function(t,e){var i=this.context.view,n=t.geometry.getAttribute("color");if(n){var a=i.getScaleByField(n.getFields()[0]),o=r.getElementValue(t,a.field),s=r.getElements(i),l=s.filter((function(t){return r.getElementValue(t,a.field)===o}));this.setHighlightBy(s,(function(t){return l.includes(t)}),e)}},e}(n.__importDefault(t("./highlight")).default);i.default=a},{"../util":353,"./highlight":331,tslib:385}],329:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../util"),a=n.__importStar(t("./highlight")),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(a.STATUS_UNACTIVE)&&t.setState(a.STATUS_UNACTIVE,!1),t.setState(a.STATUS_ACTIVE,!0)):(t.setState(a.STATUS_UNACTIVE,!0),t.hasState(a.STATUS_ACTIVE)&&t.setState(a.STATUS_ACTIVE,!1))},e.prototype.setStateByElement=function(t,e){var i=this.context.view,n=i.getXScale(),a=r.getElementValue(t,n.field),o=r.getElements(i),s=o.filter((function(t){return r.getElementValue(t,n.field)===a}));this.setHighlightBy(o,(function(t){return s.includes(t)}),e)},e.prototype.toggle=function(){var t=r.getCurrentElement(this.context);if(t){var e=t.hasState(this.stateName);this.setStateByElement(t,!e)}},e}(a.default);i.default=o},{"../util":353,"./highlight":331,tslib:385}],330:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.setHighlightBy=i.clearHighlight=void 0;var n=t("@antv/util"),r=t("../util");i.clearHighlight=function(t){var e=r.getElements(t);n.each(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))},i.setHighlightBy=function(t,e,i){n.each(t,(function(t){e(t)?(t.hasState("inactive")&&t.setState("inactive",!1),t.setState("active",i)):(t.hasState("active")&&t.setState("active",!1),t.setState("inactive",i))}))}},{"../util":353,"@antv/util":803}],331:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.STATUS_ACTIVE=i.STATUS_UNACTIVE=void 0;var n=t("tslib"),r=t("@antv/util"),a=t("../util"),o=t("./highlight-util"),s=n.__importDefault(t("./state")),l=t("../../../constant");i.STATUS_UNACTIVE=l.ELEMENT_STATE.INACTIVE,i.STATUS_ACTIVE=l.ELEMENT_STATE.ACTIVE;var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=i.STATUS_ACTIVE,e}return n.__extends(e,t),e.prototype.setElementsStateByItem=function(t,e,i,n){var r=this;this.setHighlightBy(t,(function(t){return r.isMathItem(t,e,i)}),n)},e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(i.STATUS_UNACTIVE)&&t.setState(i.STATUS_UNACTIVE,!1),t.setState(i.STATUS_ACTIVE,!0)):t.hasState(i.STATUS_ACTIVE)||t.setState(i.STATUS_UNACTIVE,!0)},e.prototype.setHighlightBy=function(t,e,n){var o=this;if(n)r.each(t,(function(t){o.setElementHighlight(t,e)}));else{var s=a.getElementsByState(this.context.view,i.STATUS_ACTIVE),l=!0;r.each(s,(function(t){if(!e(t))return l=!1,!1})),l?this.clear():r.each(t,(function(t){e(t)&&(t.hasState(i.STATUS_ACTIVE)&&t.setState(i.STATUS_ACTIVE,!1),t.setState(i.STATUS_UNACTIVE,!0))}))}},e.prototype.setElementState=function(t,e){var i=this.context.view,n=a.getElements(i);this.setHighlightBy(n,(function(e){return t===e}),e)},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.context.view;o.clearHighlight(t)},e}(s.default);i.default=u},{"../../../constant":237,"../util":353,"./highlight-util":330,"./state":344,"@antv/util":803,tslib:385}],332:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importDefault(t("../base")),a=t("../util"),o=t("@antv/util"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return n.__extends(e,t),e.prototype.getColorScale=function(t,e){var i=e.geometry.getAttribute("color");return i?t.getScaleByField(i.getFields()[0]):null},e.prototype.getLinkPath=function(t,e){var i=t.shape.getCanvasBBox(),n=e.shape.getCanvasBBox();return[["M",i.maxX,i.minY],["L",n.minX,n.minY],["L",n.minX,n.maxY],["L",i.maxX,i.maxY],["Z"]]},e.prototype.addLinkShape=function(t,e,i){t.addShape({type:"path",attrs:{opacity:.4,fill:e.shape.attr("fill"),path:this.getLinkPath(e,i)}})},e.prototype.linkByElement=function(t){var e=this,i=this.context.view,n=this.getColorScale(i,t);if(n){var r=a.getElementValue(t,n.field);if(!this.cache[r]){var s=a.getElementsByField(i,n.field,r),l=this.linkGroup.addGroup();this.cache[r]=l;var u=s.length;o.each(s,(function(t,i){if(i<u-1){var n=s[i+1];e.addLinkShape(l,t,n)}}))}}},e.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var i=a.getElementValue(t,e.field);this.cache[i]&&(this.cache[i].remove(),this.cache[i]=null)}},e.prototype.link=function(){var t=this.context;this.linkGroup||(this.linkGroup=t.view.foregroundGroup.addGroup({capture:!1}));var e=a.getCurrentElement(t);e&&this.linkByElement(e)},e.prototype.unlink=function(){var t=a.getCurrentElement(this.context);t&&this.removeLink(t)},e.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},e}(r.default);i.default=s},{"../base":311,"../util":353,"@antv/util":803,tslib:385}],333:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return n.__extends(e,t),e.prototype.active=function(){this.setState()},e}(n.__importDefault(t("./range-state")).default);i.default=r},{"./range-state":336,tslib:385}],334:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("./highlight-util"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return n.__extends(e,t),e.prototype.clearViewState=function(t){r.clearHighlight(t)},e.prototype.highlight=function(){this.setState()},e.prototype.setElementsState=function(t,e,i){r.setHighlightBy(i,(function(e){return t.indexOf(e)>=0}),e)},e}(n.__importDefault(t("./range-state")).default);i.default=a},{"./highlight-util":330,"./range-state":336,tslib:385}],335:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return n.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(n.__importDefault(t("./range-state")).default);i.default=r},{"./range-state":336,tslib:385}],336:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../util"),o=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 n.__extends(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(a.isMask(this.context))t=a.getMaskedElements(this.context,10);else{var e=this.startPoint,i=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!i)return;var n={minX:Math.min(e.x,i.x),minY:Math.min(e.y,i.y),maxX:Math.max(e.x,i.x),maxY:Math.max(e.y,i.y)},r=this.context.view;t=a.getIntersectElements(r,n)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=a.getElements(this.context.view),i=this.getIntersectElements();i&&i.length?this.effectByRecord?this.setSiblingsStateByRecord(i,t):this.setElementsState(i,t,e):this.clear()}},e.prototype.setSiblingsStateByRecord=function(t,e){var i=this,n=this.context.view,o=a.getSilbings(n),s=t.map((function(t){return t.getModel().data})),l=n.getXScale().field,u=n.getYScales()[0].field;r.each(o,(function(t){var n=a.getElements(t),r=n.filter((function(t){var e=t.getModel().data;return a.isInRecords(s,e,l,u)}));i.setElementsState(r,e,n)}))},e.prototype.setSiblingsState=function(t){var e=this,i=this.context.view,n=a.getSilbings(i);a.isMask(this.context)&&r.each(n,(function(i){var n=a.getElements(i),r=a.getSiblingMaskElements(e.context,i,10);r&&r.length?e.setElementsState(r,t,n):e.clearViewState(i)}))},e.prototype.setElementsState=function(t,e,i){var n=this;r.each(i,(function(i){t.includes(i)?n.setElementState(i,e):n.setElementState(i,!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 i=a.getSilbings(e);r.each(i,(function(e){t.clearViewState(e)}))}else this.clearViewState(e)},e}(n.__importDefault(t("./state-base")).default);i.default=o},{"../util":353,"./state-base":343,"@antv/util":803,tslib:385}],337:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return n.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(n.__importDefault(t("./state")).default);i.default=r},{"./state":344,tslib:385}],338:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../base")),o=t("../util"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return n.__extends(e,t),e.prototype.filter=function(){o.isMask(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=o.getMaskedElements(this.context,10);if(e){var i=t.getXScale().field,n=t.getYScales()[0].field,a=e.map((function(t){return t.getModel().data})),s=o.getSilbings(t);r.each(s,(function(t){var e=o.getElements(t);r.each(e,(function(t){var e=t.getModel().data;o.isInRecords(a,e,i,n)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,i=o.getSilbings(e);r.each(i,(function(e){var i=o.getSiblingMaskElements(t.context,e,10),n=o.getElements(e);i&&r.each(n,(function(t){i.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=o.getSilbings(this.context.view);r.each(t,(function(t){var e=o.getElements(t);r.each(e,(function(t){t.show()}))}))},e}(a.default);i.default=s},{"../base":311,"../util":353,"@antv/util":803,tslib:385}],339:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return n.__extends(e,t),e.prototype.active=function(){this.setState()},e}(n.__importDefault(t("./single-state")).default);i.default=r},{"./single-state":342,tslib:385}],340:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../util"),a=t("./highlight-util"),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return n.__extends(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){var i=this.context.view,n=r.getElements(i);a.setHighlightBy(n,(function(e){return t===e}),e)},e.prototype.clear=function(){var t=this.context.view;a.clearHighlight(t)},e}(n.__importDefault(t("./single-state")).default);i.default=o},{"../util":353,"./highlight-util":330,"./single-state":342,tslib:385}],341:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return n.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(n.__importDefault(t("./single-state")).default);i.default=r},{"./single-state":342,tslib:385}],342:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../util"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.setStateEnable=function(t){var e=r.getCurrentElement(this.context);if(e){if(!r.isElementChange(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=r.getCurrentElement(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(n.__importDefault(t("./state-base")).default);i.default=a},{"../util":353,"./state-base":343,tslib:385}],343:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../base")),o=t("../util"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return n.__extends(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,i=o.getElementsByState(t,this.stateName);r.each(i,(function(t){e.setElementState(t,!1)}))},e}(a.default);i.default=s},{"../base":311,"../util":353,"@antv/util":803,tslib:385}],344:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../util");function o(t){return r.get(t.get("delegateObject"),"item")}var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return n.__extends(e,t),e.prototype.isItemIgnore=function(t,e){return!!this.ignoreListItemStates.filter((function(i){return e.hasState(t,i)})).length},e.prototype.setStateByComponent=function(t,e,i){var n=this.context.view,r=t.get("field"),o=a.getElements(n);this.setElementsStateByItem(o,r,e,i)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,i){var n=this.context.view,o=a.getScaleByField(n,e),s=a.getElementValue(t,e);return!r.isNil(s)&&i.name===o.getText(s)},e.prototype.setElementsStateByItem=function(t,e,i,n){var a=this;r.each(t,(function(t){a.isMathItem(t,e,i)&&t.setState(a.stateName,n)}))},e.prototype.setStateEnable=function(t){var e=a.getCurrentElement(this.context);if(e)a.isElementChange(this.context)&&this.setStateByElement(e,t);else{var i=a.getDelegationObject(this.context);if(a.isList(i)){var n=i.item,r=i.component;if(n&&r&&!this.isItemIgnore(n,r)){var s=this.context.event.gEvent;if(s&&s.fromShape&&s.toShape&&o(s.fromShape)===o(s.toShape))return;this.setStateByComponent(r,n,t)}}}},e.prototype.toggle=function(){var t=a.getCurrentElement(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(n.__importDefault(t("./state-base")).default);i.default=s},{"../util":353,"./state-base":343,"@antv/util":803,tslib:385}],345:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./base");Object.defineProperty(i,"Action",{enumerable:!0,get:function(){return n.default}});var r=t("./register");Object.defineProperty(i,"createAction",{enumerable:!0,get:function(){return r.createAction}}),Object.defineProperty(i,"registerAction",{enumerable:!0,get:function(){return r.registerAction}}),Object.defineProperty(i,"getActionClass",{enumerable:!0,get:function(){return r.getActionClass}})},{"./base":311,"./register":352}],346:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=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 n.__extends(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:"+t,i=this.context.view,n=this.context.event;i.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:n.x,y:n.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs();return t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:n.__assign({fill:"#C5D4EB",opacity:.3},e)})},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(),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,i=t.x-e.x,n=t.y-e.y,a=this.points;r.each(a,(function(t){t.x+=i,t.y+=n})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(){var t=this.getMaskAttrs();this.maskShape.attr(t)},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}(n.__importDefault(t("../base")).default);i.default=a},{"../base":311,"@antv/util":803,tslib:385}],347:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../util"),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return n.__extends(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=r.last(this.points),i=0,n=0,o=0;if(t.length){var s=t[0];i=a.distance(s,e)/2,n=(e.x+s.x)/2,o=(e.y+s.y)/2}return{x:n,y:o,r:i}},e}(n.__importDefault(t("./base")).default);i.default=o},{"../util":353,"./base":346,"@antv/util":803,tslib:385}],348:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util");function a(t){t.x=r.clamp(t.x,0,1),t.y=r.clamp(t.y,0,1)}var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return n.__extends(e,t),e.prototype.getRegion=function(){var t=null,e=null,i=this.points,n=this.dim,o=this.context.view.getCoordinate(),s=o.invert(r.head(i)),l=o.invert(r.last(i));return this.inPlot&&(a(s),a(l)),"x"===n?(t=o.convert({x:s.x,y:0}),e=o.convert({x:l.x,y:1})):(t=o.convert({x:0,y:s.y}),e=o.convert({x:1,y:l.y})),{start:t,end:e}},e}(n.__importDefault(t("./rect")).default);i.default=o},{"./rect":350,"@antv/util":803,tslib:385}],349:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&(r.each(t,(function(t,i){0===i?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}(n.__importDefault(t("./base")).default);i.default=a},{"./base":346,"@antv/util":803,tslib:385}],350:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return n.__extends(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:r.head(t),end:r.last(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,i=t.end;return{x:Math.min(e.x,i.x),y:Math.min(e.y,i.y),width:Math.abs(i.x-e.x),height:Math.abs(i.y-e.y)}},e}(n.__importDefault(t("./base")).default);i.default=a},{"./base":346,"@antv/util":803,tslib:385}],351:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../util"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getMaskPath=function(){var t=this.points;return r.getSpline(t,!0)},e}(n.__importDefault(t("./path")).default);i.default=a},{"../util":353,"./path":349,tslib:385}],352:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.createCallbackAction=i.unregisterAction=i.registerAction=i.getActionClass=i.createAction=void 0;var n=t("tslib").__importDefault(t("./callback")),r=t("@antv/util"),a={};i.createAction=function(t,e){var i=a[t],n=null;return i&&((n=new(0,i.ActionClass)(e,i.cfg)).name=t,n.init()),n},i.getActionClass=function(t){var e=a[t];return r.get(e,"ActionClass")},i.registerAction=function(t,e,i){a[t]={ActionClass:e,cfg:i}},i.unregisterAction=function(t){delete a[t]},i.createCallbackAction=function(t,e){var i=new n.default(e);return i.callback=t,i.name="callback",i}},{"./callback":312,"@antv/util":803,tslib:385}],353:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getScaleByField=i.isInRecords=i.getSiblingPoint=i.getSilbings=i.isInBox=i.getSpline=i.distance=i.getComponents=i.getElementsByPath=i.getIntersectElements=i.intersectRect=i.getElementValue=i.getElementsByState=i.getElementsByField=i.getElements=i.getSiblingMaskElements=i.getMaskedElements=i.isMask=i.isSlider=i.isList=i.isElementChange=i.getDelegationObject=i.getCurrentElement=void 0;var n=t("tslib"),r=t("@antv/util"),a=t("../../geometry/shape/util/path"),o=t("../../util/bbox"),s=n.__importDefault(t("@antv/path-util/lib/is-polygons-intersect"));function l(t,e){var i=t.event.target.getCanvasBBox();return i.width>=e||i.height>=e?i:null}function u(t){var e=t.geometries,i=[];return r.each(e,(function(t){var e=t.elements;i=i.concat(e)})),t.views&&t.views.length&&r.each(t.views,(function(t){i=i.concat(u(t))})),i}function c(t,e){var i=t.getModel().data;return r.isArray(i)?i[0][e]:i[e]}function p(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function h(t,e){var i=u(t),n=[];return r.each(i,(function(t){var i=t.shape.getCanvasBBox();p(e,i)&&n.push(t)})),n}function f(t){var e=[];return r.each(t,(function(t){if("A"!==t[0])for(var i=1;i<t.length;i+=2)e.push([t[i],t[i+1]]);else{var n=t.length;e.push([t[n-2],t[n-1]])}})),e}function d(t,e){var i=u(t),n=f(e);return i.filter((function(t){var e,i=t.shape;if("path"===i.get("type"))e=f(i.attr("path"));else{var r=i.getCanvasBBox();e=o.toPoints(r)}return s.default(n,e)}))}function g(t,e,i){var n=function(t,e){return t.getCoordinate().invert(e)}(t,i);return e.getCoordinate().convert(n)}i.getCurrentElement=function(t){var e,i=t.event.target;return i&&(e=i.get("element")),e},i.getDelegationObject=function(t){var e,i=t.event.target;return i&&(e=i.get("delegateObject")),e},i.isElementChange=function(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))},i.isList=function(t){return t&&t.component&&t.component.isList()},i.isSlider=function(t){return t&&t.component&&t.component.isSlider()},i.isMask=function(t){var e=t.event.target;return e&&"mask"===e.get("name")},i.getMaskedElements=function(t,e){if("path"===t.event.target.get("type")){var i=function(t,e){var i=t.event.target,n=i.getCanvasBBox();return n.width>=e||n.height>=e?i.attr("path"):null}(t,e);if(!i)return;return d(t.view,i)}var n=l(t,e);return n?h(t.view,n):null},i.getSiblingMaskElements=function(t,e,i){var n=l(t,i);if(!n)return null;var r=t.view,a=g(r,e,{x:n.x,y:n.y}),o=g(r,e,{x:n.maxX,y:n.maxY});return h(e,{minX:a.x,minY:a.y,maxX:o.x,maxY:o.y})},i.getElements=u,i.getElementsByField=function(t,e,i){return u(t).filter((function(t){return c(t,e)===i}))},i.getElementsByState=function(t,e){var i=t.geometries,n=[];return r.each(i,(function(t){var i=t.getElementsBy((function(t){return t.hasState(e)}));n=n.concat(i)})),n},i.getElementValue=c,i.intersectRect=p,i.getIntersectElements=h,i.getElementsByPath=d,i.getComponents=function(t){return t.getComponents().map((function(t){return t.component}))},i.distance=function(t,e){var i=e.x-t.x,n=e.y-t.y;return Math.sqrt(i*i+n*n)},i.getSpline=function(t,e){if(t.length<=2)return a.getLinePath(t,!1);var i=t[0],n=[];r.each(t,(function(t){n.push(t.x),n.push(t.y)}));var o=a.catmullRom2bezier(n,e,null);return o.unshift(["M",i.x,i.y]),o},i.isInBox=function(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y},i.getSilbings=function(t){var e=t.parent,i=null;return e&&(i=e.views.filter((function(e){return e!==t}))),i},i.getSiblingPoint=g,i.isInRecords=function(t,e,i,n){var a=!1;return r.each(t,(function(t){if(t[i]===e[i]&&t[n]===e[n])return a=!0,!1})),a},i.getScaleByField=function t(e,i){var n=e.getScaleByField(i);return!n&&e.views&&r.each(e.views,(function(e){if(n=t(e,i))return!1})),n}},{"../../geometry/shape/util/path":303,"../../util/bbox":370,"@antv/path-util/lib/is-polygons-intersect":725,"@antv/util":803,tslib:385}],354:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/matrix-util"),a=t("@antv/util"),o=t("../../../util/padding"),s=n.__importDefault(t("../base")),l=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 n.__extends(e,t),e.prototype.getButtonCfg=function(){return a.deepMix(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),i=e.addShape({type:"text",name:"button-text",attrs:n.__assign({text:t.text},t.textStyle)}).getBBox(),r=o.parsePadding(t.padding),a=e.addShape({type:"rect",name:"button-rect",attrs:n.__assign({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.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,i=e.getBBox(),n=r.ext.transform(null,[["t",t.x-i.width-10,t.y+i.height+5]]);e.setMatrix(n)},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}(s.default);i.default=l},{"../../../util/padding":380,"../base":311,"@antv/matrix-util":717,"@antv/util":803,tslib:385}],355:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importDefault(t("../base")),a=t("../util"),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return n.__extends(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,i=this.context.event;this.dragStart?e.emit("drag",{target:i.target,x:i.x,y:i.y}):a.distance(t,this.startPoint)>4&&(e.emit("dragstart",{target:i.target,x:i.x,y:i.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}(r.default);i.default=o},{"../base":311,"../util":353,tslib:385}],356:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/matrix-util"),a=t(".."),o=t("../util"),s=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 n.__extends(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();if(o.distance(t,e)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var i=this.context.view,n=r.ext.transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);i.backgroundGroup.setMatrix(n),i.foregroundGroup.setMatrix(n),i.middleGroup.setMatrix(n)}}},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}(a.Action);i.default=s},{"..":345,"../util":353,"@antv/matrix-util":717,tslib:385}],357:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t(".."),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return n.__extends(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 i=this.getScale(t);e.scale(i.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},e}(r.Action);i.default=a},{"..":345,tslib:385}],358:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return n.__extends(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;r.each(e,(function(e){var i=t.getScale(e),n=i.min,r=i.max,a=i.values;t.startCache[e]={min:n,max:r,values:a}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,i=this.context.view.getCoordinate(),n=this.context.getCurrentPoint(),a=i.invert(e),o=i.invert(n),s=o.x-a.x,l=o.y-a.y,u=this.context.view,c=this.dims;r.each(c,(function(e){t.translateDim(e,{x:-1*s,y:-1*l})})),u.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var i=this.getScale(t);i.isLinear&&this.translateLinear(t,i,e)}},e.prototype.translateLinear=function(t,e,i){var n=this.context.view,r=this.startCache[t],a=r.min,o=r.max,s=o-a,l=i[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:a,max:o}),n.scale(e.field,{nice:!1,min:a+l,max:o+l})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(n.__importDefault(t("./scale-transform")).default);i.default=a},{"./scale-transform":357,"@antv/util":803,tslib:385}],359:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return n.__extends(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,i=this.dims;r.each(i,(function(i){e.zoomDim(i,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 i=this.getScale(t);i.isLinear&&this.zoomLinear(t,i,e)}},e.prototype.zoomLinear=function(t,e,i){var n=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var r=this.cacheScaleDefs[t],a=r.max-r.min,o=e.min,s=e.max,l=i*a,u=o-l,c=s+l,p=(c-u)/a;c>u&&p<100&&p>.01&&n.scale(e.field,{nice:!1,min:o-l,max:s+l})},e}(n.__importDefault(t("./scale-transform")).default);i.default=a},{"./scale-transform":357,"@antv/util":803,tslib:385}],360:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("./action/util"),a=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,i=this.actions.indexOf(t);i>=0&&e.splice(i,1)},t.prototype.getCurrentPoint=function(){var t=this.event;return t?t.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(t.clientX,t.clientY):{x:t.x,y:t.y}:null},t.prototype.getCurrentShape=function(){return n.get(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=r.getComponents(this.view),i=this.getCurrentPoint();return!!i&&!!e.find((function(e){var n=e.getBBox();return t?e.get("name")===t&&r.isInBox(n,i):r.isInBox(n,i)}))},t.prototype.destroy=function(){this.view=null,this.event=null,n.each(this.actions.slice(),(function(t){t.destroy()})),this.actions=null,this.cacheMap=null},t}();i.default=a},{"./action/util":353,"@antv/util":803}],361:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("./action/register"),o=n.__importDefault(t("./context")),s=n.__importDefault(t("./interaction"));function l(t,e){var i=t.split(":"),n=i[0],r=e.getAction(n)||a.createAction(n,e);if(!r)throw new Error("There is no action named "+n);return{action:r,methodName:i[1]}}function u(t){var e=t.action,i=t.methodName;if(!e[i])throw new Error("Action("+e.name+") doesn't have a method called "+i);e[i]()}var c="start",p="showEnable",h="end",f="rollback",d="processing",g=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.callbackCaches={},n.emitCaches={},n.steps=i,n}return n.__extends(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;r.each(this.steps,(function(e,i){r.each(e,(function(e){var n=t.getActionCallback(i,e);n&&t.bindEvent(e.trigger,n)}))}))},e.prototype.clearEvents=function(){var t=this;r.each(this.steps,(function(e,i){r.each(e,(function(e){var n=t.getActionCallback(i,e);n&&t.offEvent(e.trigger,n)}))}))},e.prototype.initContext=function(){var t=this.view,e=new o.default(t);this.context=e;var i=this.steps;r.each(i,(function(t){r.each(t,(function(t){if(r.isFunction(t.action))t.actionObject={action:a.createCallbackAction(t.action,e),methodName:"execute"};else if(r.isString(t.action))t.actionObject=l(t.action,e);else if(r.isArray(t.action)){var i=t.action;t.actionObject=[],r.each(i,(function(i){t.actionObject.push(l(i,e))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,i=this.steps;if(e===t)return!0;if(t===p)return!0;if(t===d)return e===c;if(t===c)return e!==d;if(t===h)return e===d||e===c;if(t===f){if(i[h])return e===h;if(e===c)return!0}return!1},e.prototype.isAllowExcute=function(t,e){if(this.isAllowStep(t)){var i=this.getKey(t,e);return(!e.once||!this.emitCaches[i])&&(!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!==p&&this.currentStepName!==t&&this.enterStep(t);var i=this.getKey(t,e);this.emitCaches[i]=!0},e.prototype.getKey=function(t,e){return t+e.trigger+e.action},e.prototype.getActionCallback=function(t,e){var i=this,n=this.context,a=this.callbackCaches,o=e.actionObject;if(e.action&&o){var s=this.getKey(t,e);if(!a[s]){var l=function(a){n.event=a,i.isAllowExcute(t,e)?(r.isArray(o)?r.each(o,(function(t){n.event=a,u(t)})):(n.event=a,u(o)),i.afterExecute(t,e),e.callback&&(n.event=a,e.callback(n))):n.event=null};e.debounce?a[s]=r.debounce(l,e.debounce.wait,e.debounce.immediate):e.throttle?a[s]=r.throttle(l,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):a[s]=l}return a[s]}return null},e.prototype.bindEvent=function(t,e){var i=t.split(":");"window"===i[0]?window.addEventListener(i[1],e):"document"===i[0]?document.addEventListener(i[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var i=t.split(":");"window"===i[0]?window.removeEventListener(i[1],e):"document"===i[0]?document.removeEventListener(i[1],e):this.view.off(t,e)},e}(s.default);i.default=g},{"./action/register":352,"./context":360,"./interaction":363,"@antv/util":803,tslib:385}],362:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.createInteraction=i.registerInteraction=i.getInteraction=void 0;var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("./grammar-interaction")),o={};function s(t){return o[r.lowerCase(t)]}i.getInteraction=s,i.registerInteraction=function(t,e){o[r.lowerCase(t)]=e},i.createInteraction=function(t,e,i){var n=s(t);if(!n)return null;if(r.isPlainObject(n)){var o=r.mix(r.clone(n),i);return new a.default(e,o)}return new n(e,i)};var l=t("./interaction");Object.defineProperty(i,"Interaction",{enumerable:!0,get:function(){return l.default}});var u=t("./action");Object.defineProperty(i,"Action",{enumerable:!0,get:function(){return u.Action}}),Object.defineProperty(i,"registerAction",{enumerable:!0,get:function(){return u.registerAction}}),Object.defineProperty(i,"getActionClass",{enumerable:!0,get:function(){return u.getActionClass}})},{"./action":345,"./grammar-interaction":361,"./interaction":363,"@antv/util":803,tslib:385}],363:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=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}();i.default=n},{}],364:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0})},{}],365:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.registerTheme=i.getTheme=void 0;var n=t("@antv/util"),r=t("../util/theme"),a=t("./style-sheet/light"),o={default:r.createThemeByStylesheet(a.antvLight)};i.getTheme=function(t){return n.get(o,n.lowerCase(t),o.default)},i.registerTheme=function(t,e){o[n.lowerCase(t)]=n.deepMix({},o.default,e)}},{"../util/theme":382,"./style-sheet/light":367,"@antv/util":803}],366:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.antvDark=void 0;var n="#000",r="#0D0D0D",a="#BFBFBF",o="#F0F0F0",s="#FFFFFF",l="#A6A6A6",u="#737373",c="#404040",p="#262626",h=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"];i.antvDark={backgroundColor:"#141414",brandColor:h[0],paletteQualitative10:h,paletteQualitative20:["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",fontFamily:'"-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:c,axisLineBorder:.5,axisLineDash:null,axisTitleTextFillColor:l,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTickLineBorderColor:c,axisTickLineLength:4,axisTickLineBorder:.5,axisSubTickLineBorderColor:p,axisSubTickLineLength:2,axisSubTickLineBorder:.5,axisLabelFillColor:u,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisGridBorderColor:p,axisGridBorder:.5,axisGridLineDash:null,legendTitleTextFillColor:u,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:h[0],legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:l,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",sliderRailFillColor:p,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:u,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:o,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:a,annotationArcBorderColor:p,annotationArcBorder:.5,annotationLineBorderColor:c,annotationLineBorder:.5,annotationLineDash:null,annotationTextFillColor:l,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:r,annotationTextBorder:1.5,annotationRegionFillColor:s,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:c,tooltipCrosshairsBorder:.5,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:l,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:l,labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:n,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,labelLineBorder:.5,labelLineBorderColor:c,pointFillColor:h[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:n,pointBorderOpacity:1,pointActiveBorderColor:s,pointSelectedBorder:2,pointSelectedBorderColor:s,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:h[0],hollowPointBorderOpacity:.95,hollowPointFillColor:n,hollowPointActiveBorder:1,hollowPointActiveBorderColor:s,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:s,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:h[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:h[0],areaFillOpacity:.25,areaActiveFillColor:h[0],areaActiveFillOpacity:.5,areaSelectedFillColor:h[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:h[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:s,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:s,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:h[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:s,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:s,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:h[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:n,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:s,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:s,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}},{}],367:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.antvLight=void 0;var n="#000",r="#595959",a="#8C8C8C",o="#BFBFBF",s="#D9D9D9",l="#F0F0F0",u="#FFFFFF",c="#F2F2F2",p=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"];i.antvLight={backgroundColor:"transparent",brandColor:p[0],paletteQualitative10:p,paletteQualitative20:["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",fontFamily:'"-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:o,axisLineBorder:.5,axisLineDash:null,axisTitleTextFillColor:r,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTickLineBorderColor:o,axisTickLineLength:4,axisTickLineBorder:.5,axisSubTickLineBorderColor:s,axisSubTickLineLength:2,axisSubTickLineBorder:.5,axisLabelFillColor:a,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisGridBorderColor:s,axisGridBorder:.5,axisGridLineDash:null,legendTitleTextFillColor:a,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:p[0],legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:r,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",sliderRailFillColor:s,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:a,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:l,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:o,annotationArcBorderColor:s,annotationArcBorder:.5,annotationLineBorderColor:o,annotationLineBorder:.5,annotationLineDash:null,annotationTextFillColor:r,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:c,annotationTextBorder:1.5,annotationRegionFillColor:n,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:o,tooltipCrosshairsBorder:.5,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:r,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:r,labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:u,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,labelLineBorder:.5,labelLineBorderColor:o,pointFillColor:p[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:u,pointBorderOpacity:1,pointActiveBorderColor:n,pointSelectedBorder:2,pointSelectedBorderColor:n,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:p[0],hollowPointBorderOpacity:.95,hollowPointFillColor:u,hollowPointActiveBorder:1,hollowPointActiveBorderColor:n,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:n,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:p[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:p[0],areaFillOpacity:.25,areaActiveFillColor:p[0],areaActiveFillOpacity:.5,areaSelectedFillColor:p[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:p[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:n,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:n,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:p[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:n,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:n,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:p[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:u,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:n,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:n,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}},{}],368:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getMappingValue=void 0;var n=t("tslib");i.getMappingValue=function(t,e,i){if(!t)return i;var r;if(t.callback&&t.callback.length>1){var a=Array(t.callback.length-1).fill("");r=t.mapping.apply(t,n.__spreadArrays([e],a)).join("")}else r=t.mapping(e).join("");return r||i}},{tslib:385}],369:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getAxisTitleText=i.getAxisDirection=i.getAxisOption=i.getCircleAxisCenterRadius=i.getAxisThemeCfg=i.getAxisFactorByRegion=i.isVertical=i.getAxisFactor=i.getAxisRegion=i.getCircleAxisRelativeRegion=i.getLineAxisRelativeRegion=void 0;var n=t("@antv/util"),r=t("../constant"),a=t("./scale"),o=t("@antv/matrix-util");function s(t){var e,i;switch(t){case r.DIRECTION.TOP:e={x:0,y:1},i={x:1,y:1};break;case r.DIRECTION.RIGHT:e={x:1,y:0},i={x:1,y:1};break;case r.DIRECTION.BOTTOM:e={x:0,y:0},i={x:1,y:0};break;case r.DIRECTION.LEFT:e={x:0,y:0},i={x:0,y:1};break;default:e=i={x:0,y:0}}return{start:e,end:i}}function l(t){var e,i;return t.isTransposed?(e={x:0,y:0},i={x:1,y:0}):(e={x:0,y:0},i={x:0,y:1}),{start:e,end:i}}function u(t){var e=t.start,i=t.end;return e.x===i.x}i.getLineAxisRelativeRegion=s,i.getCircleAxisRelativeRegion=l,i.getAxisRegion=function(t,e){var i={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?i=s(e):t.isPolar&&(i=l(t));var n=i.start,r=i.end;return{start:t.convert(n),end:t.convert(r)}},i.getAxisFactor=function(t,e){return t.isRect?t.isTransposed?[r.DIRECTION.RIGHT,r.DIRECTION.BOTTOM].includes(e)?1:-1:[r.DIRECTION.BOTTOM,r.DIRECTION.RIGHT].includes(e)?-1:1:t.isPolar&&t.x.start<0?-1:1},i.isVertical=u,i.getAxisFactorByRegion=function(t,e){var i=t.start,n=t.end;return u(t)?(i.y-n.y)*(e.x-i.x)>0?1:-1:(n.x-i.x)*(i.y-e.y)>0?-1:1},i.getAxisThemeCfg=function(t,e){return n.get(t,["components","axis",e],{})},i.getCircleAxisCenterRadius=function(t){var e=t.x,i=t.y,n=t.circleCenter,r=i.start>i.end,a=t.isTransposed?t.convert({x:r?0:1,y:0}):t.convert({x:0,y:r?0:1}),s=[a.x-n.x,a.y-n.y],l=[1,0],u=a.y>n.y?o.vec2.angle(s,l):-1*o.vec2.angle(s,l),c=u+(e.end-e.start);return{center:n,radius:Math.sqrt(Math.pow(a.x-n.x,2)+Math.pow(a.y-n.y,2)),startAngle:u,endAngle:c}},i.getAxisOption=function(t,e){return n.isBoolean(t)?!1!==t&&{}:n.get(t,[e])},i.getAxisDirection=function(t,e){return n.get(t,"position",e)},i.getAxisTitleText=function(t,e){return n.get(e,["title","text"],a.getName(t))}},{"../constant":237,"./scale":381,"@antv/matrix-util":717,"@antv/util":803}],370:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.toPoints=i.getRegionBBox=i.BBox=void 0;var n=t("@antv/util"),r=t("../constant"),a=function(){function t(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.x=t,this.y=e,this.height=n,this.width=i}return t.fromRange=function(e,i,n,r){return new t(e,i,n-e,r-i)},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.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 i=this.clone();return n.each(t,(function(t){i.x=Math.min(t.x,i.x),i.y=Math.min(t.y,i.y),i.width=Math.max(t.maxX,i.maxX)-i.x,i.height=Math.max(t.maxY,i.maxY)-i.y})),i},t.prototype.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=this.clone();return n.each(t,(function(t){i.x=Math.max(t.x,i.x),i.y=Math.max(t.y,i.y),i.width=Math.min(t.maxX,i.maxX)-i.x,i.height=Math.min(t.maxY,i.maxY)-i.y})),i},t.prototype.cut=function(e,i){var n=e.width,a=e.height;switch(i){case r.DIRECTION.TOP:case r.DIRECTION.TOP_LEFT:case r.DIRECTION.TOP_RIGHT:return t.fromRange(this.minX,this.minY+a,this.maxX,this.maxY);case r.DIRECTION.RIGHT:case r.DIRECTION.RIGHT_TOP:case r.DIRECTION.RIGHT_BOTTOM:return t.fromRange(this.minX,this.minY,this.maxX-n,this.maxY);case r.DIRECTION.BOTTOM:case r.DIRECTION.BOTTOM_LEFT:case r.DIRECTION.BOTTOM_RIGHT:return t.fromRange(this.minX,this.minY,this.maxX,this.maxY-a);case r.DIRECTION.LEFT:case r.DIRECTION.LEFT_TOP:case r.DIRECTION.LEFT_BOTTOM:return t.fromRange(this.minX+n,this.minY,this.maxX,this.maxY);default:return this}},t.prototype.shrink=function(e){var i=e[0],n=e[1],r=e[2],a=e[3];return new t(this.x+a,this.y+i,this.width-a-n,this.height-i-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.size=function(){return this.width*this.height},t}();i.BBox=a,i.getRegionBBox=function(t,e){var i=e.start,n=e.end;return new a(t.x+t.width*i.x,t.y+t.height*i.y,t.width*Math.abs(n.x-i.x),t.height*Math.abs(n.y-i.y))},i.toPoints=function(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}},{"../constant":237,"@antv/util":803}],371:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getCoordinateClipCfg=i.getAngleByPoint=i.isPointInCoordinate=i.getDistanceToCenter=i.isFullCircle=i.getXDimensionLength=void 0;var n=t("./graphics"),r=t("./helper");i.getXDimensionLength=function(t){if(t.isPolar&&!t.isTransposed)return(t.endAngle-t.startAngle)*t.getRadius();var e=t.convert({x:0,y:0}),i=t.convert({x:1,y:0});return Math.sqrt(Math.pow(i.x-e.x,2)+Math.pow(i.y-e.y,2))},i.isFullCircle=function(t){if(t.isPolar){var e=t.startAngle;return t.endAngle-e==2*Math.PI}return!1},i.getDistanceToCenter=function(t,e){var i=t.getCenter();return Math.sqrt(Math.pow(e.x-i.x,2)+Math.pow(e.y-i.y,2))},i.isPointInCoordinate=function(t,e){var i=!1;if(t)if("theta"===t.type){var n=t.start,a=t.end;i=r.isBetween(e.x,n.x,a.x)&&r.isBetween(e.y,n.y,a.y)}else{var o=t.invert(e);i=r.isBetween(o.x,0,1)&&r.isBetween(o.y,0,1)}return i},i.getAngleByPoint=function(t,e){var i=t.getCenter();return Math.atan2(e.y-i.y,e.x-i.x)},i.getCoordinateClipCfg=function(t,e){void 0===e&&(e=0);var i,r=t.start,a=t.end,o=t.getWidth(),s=t.getHeight();if(t.isPolar){var l=t.startAngle,u=t.endAngle,c=t.getCenter(),p=t.getRadius();return{type:"path",startState:{path:n.getSectorPath(c.x,c.y,p+e,l,l)},endState:function(t){var i=(u-l)*t+l;return{path:n.getSectorPath(c.x,c.y,p+e,l,i)}},attrs:{path:n.getSectorPath(c.x,c.y,p+e,l,u)}}}return i=t.isTransposed?{height:s+2*e}:{width:o+2*e},{type:"rect",startState:{x:r.x-e,y:a.y-e,width:t.isTransposed?o+2*e:0,height:t.isTransposed?0:s+2*e},endState:i,attrs:{x:r.x-e,y:a.y-e,width:o+2*e,height:s+2*e}}}},{"./graphics":375,"./helper":377}],372:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getTranslateDirection=i.directionToPosition=void 0;var n=t("../constant");function r(t){return t===n.DIRECTION.LEFT?n.DIRECTION.RIGHT:t===n.DIRECTION.RIGHT?n.DIRECTION.LEFT:t}function a(t){return t===n.DIRECTION.TOP?n.DIRECTION.BOTTOM:t===n.DIRECTION.BOTTOM?n.DIRECTION.TOP:t}i.directionToPosition=function(t,e,i){return i===n.DIRECTION.TOP?[t.minX+t.width/2-e.width/2,t.minY]:i===n.DIRECTION.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:i===n.DIRECTION.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:i===n.DIRECTION.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:i===n.DIRECTION.TOP_LEFT||i===n.DIRECTION.LEFT_TOP?[t.tl.x,t.tl.y]:i===n.DIRECTION.TOP_RIGHT||i===n.DIRECTION.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:i===n.DIRECTION.BOTTOM_LEFT||i===n.DIRECTION.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:i===n.DIRECTION.BOTTOM_RIGHT||i===n.DIRECTION.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]},i.getTranslateDirection=function(t,e){var i=t;return i=function(t,e){var i=t;return e.isReflect("x")&&(i=r(i)),e.isReflect("y")&&(i=a(i)),i}(i=function(t,e){var i=e.matrix[0],n=e.matrix[4],o=t;return i<0&&(o=r(o)),n<0&&(o=a(o)),o}(i=function(t,e){if(e.isTransposed)switch(t){case n.DIRECTION.BOTTOM:return n.DIRECTION.LEFT;case n.DIRECTION.LEFT:return n.DIRECTION.BOTTOM;case n.DIRECTION.RIGHT:return n.DIRECTION.TOP;case n.DIRECTION.TOP:return n.DIRECTION.RIGHT}return t}(i,e),e),e)}},{"../constant":237}],373:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.removeDom=i.getChartSize=void 0;var n=t("../constant");function r(t){return"number"==typeof t&&!isNaN(t)}i.getChartSize=function(t,e,i,a){var o=i,s=a;if(e){var l=function(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)}}(t);o=l.width?l.width:o,s=l.height?l.height:s}return{width:Math.max(r(o)?o:n.MIN_CHART_WIDTH,n.MIN_CHART_WIDTH),height:Math.max(r(s)?s:n.MIN_CHART_HEIGHT,n.MIN_CHART_HEIGHT)}},i.removeDom=function(t){var e=t.parentNode;e&&e.removeChild(t)};var a=t("@antv/dom-util");Object.defineProperty(i,"createDom",{enumerable:!0,get:function(){return a.createDom}}),Object.defineProperty(i,"modifyCSS",{enumerable:!0,get:function(){return a.modifyCSS}})},{"../constant":237,"@antv/dom-util":92}],374:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getAnglePoint=i.getFactTitleConfig=void 0;var n=t("../constant");i.getFactTitleConfig=function(t){return[n.DIRECTION.TOP,n.DIRECTION.BOTTOM].includes(t)?{offsetX:0,offsetY:t===n.DIRECTION.TOP?-8:8,style:{textAlign:"center",textBaseline:t===n.DIRECTION.TOP?"bottom":"top"}}:[n.DIRECTION.LEFT,n.DIRECTION.RIGHT].includes(t)?{offsetX:t===n.DIRECTION.LEFT?-8:8,offsetY:0,style:{textAlign:t===n.DIRECTION.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}},i.getAnglePoint=function(t,e,i){return{x:t.x+e*Math.cos(i),y:t.y+e*Math.sin(i)}}},{"../constant":237}],375:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getReplaceAttrs=i.getPolygonCentroid=i.getAngle=i.getArcPath=i.getSectorPath=i.polarToCartesian=void 0;var n=t("@antv/util");function r(t,e,i,n){return{x:t+i*Math.cos(n),y:e+i*Math.sin(n)}}i.polarToCartesian=r,i.getSectorPath=function(t,e,i,n,a,o){void 0===o&&(o=0);var s=r(t,e,i,n),l=r(t,e,i,a),u=r(t,e,o,n),c=r(t,e,o,a);if(a-n==2*Math.PI){var p=r(t,e,i,n+Math.PI),h=r(t,e,o,n+Math.PI),f=[["M",s.x,s.y],["A",i,i,0,1,1,p.x,p.y],["A",i,i,0,1,1,l.x,l.y],["M",u.x,u.y]];return o&&(f.push(["A",o,o,0,1,0,h.x,h.y]),f.push(["A",o,o,0,1,0,c.x,c.y])),f.push(["M",s.x,s.y]),f.push(["Z"]),f}var d=a-n<=Math.PI?0:1,g=[["M",s.x,s.y],["A",i,i,0,d,1,l.x,l.y],["L",c.x,c.y]];return o&&g.push(["A",o,o,0,d,0,u.x,u.y]),g.push(["L",s.x,s.y]),g.push(["Z"]),g},i.getArcPath=function(t,e,i,a,o){var s=r(t,e,i,a),l=r(t,e,i,o);if(n.isNumberEqual(o-a,2*Math.PI)){var u=r(t,e,i,a+Math.PI);return[["M",s.x,s.y],["A",i,i,0,1,1,u.x,u.y],["A",i,i,0,1,1,s.x,s.y],["A",i,i,0,1,0,u.x,u.y],["A",i,i,0,1,0,s.x,s.y],["Z"]]}var c=o-a<=Math.PI?0:1;return[["M",s.x,s.y],["A",i,i,0,c,1,l.x,l.y]]},i.getAngle=function(t,e){var i,r,a=function(t){if(n.isEmpty(t))return null;var e=t[0].x,i=t[0].x,r=t[0].y,a=t[0].y;return n.each(t,(function(t){e=e>t.x?t.x:e,i=i<t.x?t.x:i,r=r>t.y?t.y:r,a=a<t.y?t.y:a})),{minX:e,maxX:i,minY:r,maxY:a,centerX:(e+i)/2,centerY:(r+a)/2}}(t.points),o=e.startAngle,s=e.endAngle-o;return e.isTransposed?(i=a.maxY*s,r=a.minY*s):(i=a.maxX*s,r=a.minX*s),{startAngle:r+=o,endAngle:i+=o}},i.getPolygonCentroid=function(t,e){if(n.isNumber(t)&&n.isNumber(e))return[t,e];for(var i,r,a=-1,o=0,s=0,l=t.length-1,u=0;++a<t.length;)i=l,l=a,u+=r=t[i]*e[l]-t[l]*e[i],o+=(t[i]+t[l])*r,s+=(e[i]+e[l])*r;return[o/(u*=3),s/u]},i.getReplaceAttrs=function(t,e){var i=t.attr(),r=e.attr();return n.each(i,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r}},{"@antv/util":803}],376:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.showGrid=i.getCircleGridItems=i.getLineGridItems=i.getGridThemeCfg=void 0;var n=t("@antv/util");i.getGridThemeCfg=function(t,e){return n.get(t,["components","axis",e,"grid"],{})},i.getLineGridItems=function(t,e,i,n){var r=[],a=e.getTicks();return t.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce((function(e,a,o){var s=a.value;if(n)r.push({points:[t.convert("y"===i?{x:0,y:s}:{x:s,y:0}),t.convert("y"===i?{x:1,y:s}:{x:s,y:1})]});else if(o){var l=(e.value+s)/2;r.push({points:[t.convert("y"===i?{x:0,y:l}:{x:l,y:0}),t.convert("y"===i?{x:1,y:l}:{x:l,y:1})]})}return a}),a[0]),r},i.getCircleGridItems=function(t,e,i,r,a){var o=e.values.length,s=[],l=i.getTicks();return l.reduce((function(e,i){var l=e?e.value:i.value,u=i.value,c=(l+u)/2;return"x"===a?s.push({points:[t.convert({x:r?u:c,y:0}),t.convert({x:r?u:c,y:1})]}):s.push({points:n.map(Array(o+1),(function(e,i){return t.convert({x:i/o,y:r?u:c})}))}),i}),l[0]),s},i.showGrid=function(t,e){var i=n.get(e,"grid");if(null===i)return!1;var r=n.get(t,"grid");return!(void 0===i&&null===r)}},{"@antv/util":803}],377:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.uniq=i.omit=i.padEnd=i.isBetween=void 0;var n=t("@antv/util");i.isBetween=function(t,e,i){var n=Math.min(e,i),r=Math.max(e,i);return t>=n&&t<=r},i.padEnd=function(t,e,i){if(n.isString(t))return t.padEnd(e,i);if(n.isArray(t)){var r=t.length;if(r<e)for(var a=e-r,o=0;o<a;o++)t.push(i)}return t},i.omit=function(t,e){return e.forEach((function(e){delete t[e]})),t},i.uniq=function(t,e,i){void 0===e&&(e=[]),void 0===i&&(i={});for(var n=0,r=t;n<r.length;n++){var a=r[n];i[a]||(e.push(a),i[a]=!0)}return e}},{"@antv/util":803}],378:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getCustomLegendItems=i.getLegendItems=i.getLegendLayout=void 0;var n=t("@antv/util"),r=t("../constant"),a=t("./attr"),o=t("./marker");function s(t){var e=t.symbol;n.isString(e)&&o.MarkerSymbols[e]&&(t.symbol=o.MarkerSymbols[e])}i.getLegendLayout=function(t){return t.startsWith(r.DIRECTION.LEFT)||t.startsWith(r.DIRECTION.RIGHT)?"vertical":"horizontal"},i.getLegendItems=function(t,e,i,r,o){var l=i.getScale(i.type);if(l.isCategory){var u=l.field,c=e.getAttribute("color"),p=e.getAttribute("shape"),h=t.getTheme().defaultColor,f=e.coordinate.isPolar;return l.getTicks().map((function(i){var d,g=i.text,v=i.value,y=g,m=l.invert(v),b=0===t.filterFieldData(u,[(d={},d[u]=m,d)]).length,x=a.getMappingValue(c,m,h),_=a.getMappingValue(p,m,"point"),M=e.getShapeMarker(_,{color:x,isInPolar:f});return s(M=n.deepMix({},r,M,o)),{id:m,name:y,value:m,marker:M,unchecked:b}}))}return[]},i.getCustomLegendItems=function(t,e,i){return i.map((function(i){var r=n.deepMix({},t,e,i.marker);return s(r),i.marker=r,i}))}},{"../constant":237,"./attr":368,"./marker":379,"@antv/util":803}],379:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.MarkerSymbols=void 0,i.MarkerSymbols={hexagon:function(t,e,i){var n=i/2*Math.sqrt(3);return[["M",t,e-i],["L",t+n,e-i/2],["L",t+n,e+i/2],["L",t,e+i],["L",t-n,e+i/2],["L",t-n,e-i/2],["Z"]]},bowtie:function(t,e,i){var n=i-1.5;return[["M",t-i,e-n],["L",t+i,e+n],["L",t+i,e-n],["L",t-i,e+n],["Z"]]},cross:function(t,e,i){return[["M",t-i,e-i],["L",t+i,e+i],["M",t+i,e-i],["L",t-i,e+i]]},tick:function(t,e,i){return[["M",t-i/2,e-i],["L",t+i/2,e-i],["M",t,e-i],["L",t,e+i],["M",t-i/2,e+i],["L",t+i/2,e+i]]},plus:function(t,e,i){return[["M",t-i,e],["L",t+i,e],["M",t,e-i],["L",t,e+i]]},hyphen:function(t,e,i){return[["M",t-i,e],["L",t+i,e]]},line:function(t,e,i){return[["M",t,e-i],["L",t,e+i]]}}},{}],380:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.parsePadding=i.isAutoPadding=void 0;var n=t("tslib"),r=t("@antv/util");i.isAutoPadding=function(t){return!r.isNumber(t)&&!r.isArray(t)},i.parsePadding=function(t){void 0===t&&(t=0);var e=r.isArray(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=n.__spreadArrays(e,e);break;case 3:e=n.__spreadArrays(e,[e[1]]);break;default:e=e.slice(0,4)}return e}},{"@antv/util":803,tslib:385}],381:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getName=i.syncScale=i.createScaleByField=void 0;var n=t("tslib"),r=t("@antv/util"),a=t("../dependents"),o=/^(?:(?!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]))?$/;i.createScaleByField=function(t,e,i){var s=e||[];if(r.isNumber(t)||r.isNil(r.firstValue(s,t))&&r.isEmpty(i))return new(a.getScale("identity"))({field:t.toString(),values:[t]});var l=r.valuesOfKey(s,t),u=r.get(i,"type",function(t){var e="linear";return o.test(t)?e="time":r.isString(t)&&(e="cat"),e}(l[0]));return new(a.getScale(u))(n.__assign({field:t,values:l},i))},i.syncScale=function(t,e){if("identity"!==t.type&&"identity"!==e.type){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n]);t.change(i)}},i.getName=function(t){return t.alias||t.field}},{"../dependents":239,"@antv/util":803,tslib:385}],382:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.createThemeByStylesheet=void 0;var n=t("tslib"),r=n.__importStar(t("@antv/component/lib/tooltip/css-const")),a=t("@antv/matrix-util"),o=t("@antv/util"),s=t("../util/graphics");i.createThemeByStylesheet=function(t){var e,i={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},active:{lineWidth:t.lineActiveBorder},selected:{lineWidth:t.lineSelectedBorder},inactive:{strokeOpacity:t.lineInactiveBorderOpacity}}},l={title:{autoRotate:!0,position:"center",style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},label:{autoRotate:!0,autoEllipsis:!0,autoHide:!0,offset:16,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0},u={line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},c={title:null,marker:{symbol:"circle",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"}},flipPage:!0,animate:!1,maxItemWidth:.2};return{background:t.backgroundColor,defaultColor:t.brandColor,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,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:i.interval.default},active:{style:i.interval.active},inactive:{style:i.interval.inactive},selected:{style:function(t){var e=t.geometry.coordinate;if(e.isPolar&&e.isTransposed){var n=s.getAngle(t.getModel(),e),r=(n.startAngle+n.endAngle)/2,o=7.5*Math.cos(r),l=7.5*Math.sin(r);return{matrix:a.ext.transform(null,[["t",o,l]])}}return i.interval.selected}}},"hollow-rect":{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}},line:{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}},tick:{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}},funnel:{default:{style:i.interval.default},active:{style:i.interval.active},inactive:{style:i.interval.inactive},selected:{style:i.interval.selected}},pyramid:{default:{style:i.interval.default},active:{style:i.interval.active},inactive:{style:i.interval.inactive},selected:{style:i.interval.selected}}},line:{line:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},dot:{default:{style:n.__assign(n.__assign({},i.line.default),{lineDash:[1,1]})},active:{style:n.__assign(n.__assign({},i.line.active),{lineDash:[1,1]})},inactive:{style:n.__assign(n.__assign({},i.line.inactive),{lineDash:[1,1]})},selected:{style:n.__assign(n.__assign({},i.line.selected),{lineDash:[1,1]})}},dash:{default:{style:n.__assign(n.__assign({},i.line.default),{lineDash:[5.5,1]})},active:{style:n.__assign(n.__assign({},i.line.active),{lineDash:[5.5,1]})},inactive:{style:n.__assign(n.__assign({},i.line.inactive),{lineDash:[5.5,1]})},selected:{style:n.__assign(n.__assign({},i.line.selected),{lineDash:[5.5,1]})}},smooth:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},hv:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},vh:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},hvh:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},vhv:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}}},polygon:{polygon:{default:{style:i.interval.default},active:{style:i.interval.active},inactive:{style:i.interval.inactive},selected:{style:i.interval.selected}}},point:{circle:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},square:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},bowtie:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},diamond:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},hexagon:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},triangle:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},"triangle-down":{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},"hollow-circle":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-square":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-bowtie":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-diamond":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-hexagon":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-triangle":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-triangle-down":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},cross:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},tick:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},plus:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},hyphen:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},line:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}}},area:{area:{default:{style:i.area.default},active:{style:i.area.active},inactive:{style:i.area.inactive},selected:{style:i.area.selected}},smooth:{default:{style:i.area.default},active:{style:i.area.active},inactive:{style:i.area.inactive},selected:{style:i.area.selected}},line:{default:{style:i.hollowArea.default},active:{style:i.hollowArea.active},inactive:{style:i.hollowArea.inactive},selected:{style:i.hollowArea.selected}},"smooth-line":{default:{style:i.hollowArea.default},active:{style:i.hollowArea.active},inactive:{style:i.hollowArea.inactive},selected:{style:i.hollowArea.selected}}},schema:{candle:{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}},box:{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}}},edge:{line:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},vhv:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},smooth:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},arc:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}}}},components:{axis:{top:o.deepMix({},l,{position:"top",grid:null,title:null,verticalLimitLength:.5}),bottom:o.deepMix({},l,{position:"bottom",grid:null,title:null,verticalLimitLength:.5}),left:o.deepMix({},l,{position:"left",label:{offset:8},title:null,line:null,tickLine:null,grid:u,verticalLimitLength:1/3}),right:o.deepMix({},l,{position:"right",label:{offset:8},title:null,line:null,tickLine:null,grid:u,verticalLimitLength:1/3}),circle:o.deepMix({},l,{title:null,label:{offset:8},grid:o.deepMix({},u,{line:{type:"line"}})}),radius:o.deepMix({},l,{title:null,label:{offset:8},grid:o.deepMix({},u,{line:{type:"circle"}})})},legend:{right:o.deepMix({},c,{layout:"vertical"}),left:o.deepMix({},c,{layout:"vertical"}),top:o.deepMix({},c,{layout:"horizontal"}),bottom:o.deepMix({},c,{layout:"horizontal"}),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},margin:[0,0,0,0]},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[""+r.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:t.tooltipContainerBorderRadius+"px",color:t.tooltipTextFillColor,fontSize:t.tooltipTextFontSize+"px",fontFamily:t.fontFamily,lineHeight:t.tooltipTextLineHeight+"px",padding:"0 12px 0 12px"},e[""+r.TITLE_CLASS]={marginBottom:"12px",marginTop:"12px"},e[""+r.LIST_CLASS]={margin:0,listStyleType:"none",padding:0},e[""+r.LIST_ITEM_CLASS]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e[""+r.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e[""+r.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}}},labels:{offset:12,style:{fill:t.labelFillColor,fontSize:t.labelFontSize,fontFamily:t.fontFamily,stroke:t.labelBorderColor,lineWidth:t.labelBorder},autoRotate:!0},innerLabels:{style:{fill:t.innerLabelFillColor,fontSize:t.innerLabelFontSize,fontFamily:t.fontFamily,stroke:t.innerLabelBorderColor,lineWidth:t.innerLabelBorder},autoRotate:!0},pieLabels:{labelHeight:14,offset:30,labelLine:{style:{lineWidth:t.labelLineBorder}},autoRotate:!0}}}},{"../util/graphics":375,"@antv/component/lib/tooltip/css-const":62,"@antv/matrix-util":717,"@antv/util":803,tslib:385}],383:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getTooltipItems=i.findDataByPoint=void 0;var n=t("tslib"),r=t("@antv/util"),a=t("../constant"),o=t("./scale");function s(t,e,i){var n=i.translate(t),a=i.translate(e);return r.isNumberEqual(n,a)}function l(t,e,i){var n=i.coordinate,o=i.getYScale(),s=o.field,l=n.invert(e),u=o.invert(l.y);return r.find(t,(function(t){var e=t[a.FIELD_ORIGIN];return e[s][0]<=u&&e[s][1]>=u}))||t[t.length-1]}var u=r.memoize((function(t){if(t.isCategory)return 1;for(var e=t.values,i=e.length,n=t.translate(e[0]),r=n,a=0;a<i;a++){var o=e[a],s=t.translate(o);s<n&&(n=s),s>r&&(r=s)}return(r-n)/(i-1)}));function c(t){for(var e,i=0,n=function(t){var e=r.values(t.attributes);return r.filter(e,(function(t){return r.contains(a.GROUP_ATTRS,t.type)}))}(t);i<n.length;i++){var o=n[i],s=o.getScale(o.type);if(s&&s.isLinear){e=s;break}}var l=t.getXScale(),u=t.getYScale();return e||u||l}i.findDataByPoint=function(t,e,i){if(0===e.length)return null;var n=i.type,o=i.getXScale(),c=i.getYScale(),p=o.field,h=c.field,f=null;if("heatmap"===n||"point"===n){for(var d=i.coordinate.invert(t),g=o.invert(d.x),v=c.invert(d.y),y=1/0,m=0;m<e.length;m++){var b=e[m],x=b[a.FIELD_ORIGIN],_=Math.pow(x[p]-g,2)+Math.pow(x[h]-v,2);_<y&&(y=_,f=b)}return f}var M=e[0],w=e[e.length-1],S=function(t,e){var i=e.coordinate,n=e.getXScale(),r=n.range,a=r[r.length-1],o=r[0],s=i.invert(t).x;return i.isPolar&&s>(1+a)/2&&(s=o),n.translate(n.invert(s))}(t,i),C=M[a.FIELD_ORIGIN][p],P=M[a.FIELD_ORIGIN][h],O=w[a.FIELD_ORIGIN][p],T=c.isLinear&&r.isArray(P);if(r.isArray(C)){for(m=0;m<e.length;m++){x=(k=e[m])[a.FIELD_ORIGIN];if(o.translate(x[p][0])<=S&&o.translate(x[p][1])>=S){if(!T){f=k;break}r.isArray(f)||(f=[]),f.push(k)}}r.isArray(f)&&(f=l(f,t,i))}else{var A=void 0;if(o.isLinear||"timeCat"===o.type){if((S>o.translate(O)||S<o.translate(C))&&(S>o.max||S<o.min))return null;for(var E=0,L=e.length-1,I=void 0;E<=L;){var D=e[I=Math.floor((E+L)/2)][a.FIELD_ORIGIN][p];if(s(D,S,o))return e[I];o.translate(D)<=o.translate(S)?(E=I+1,w=e[I],A=e[I+1]):(0===L&&(w=e[0]),L=I-1)}}else{for(m=0;m<e.length;m++){var k;if(s((x=(k=e[m])[a.FIELD_ORIGIN])[p],S,o)){if(!T){f=k;break}r.isArray(f)||(f=[]),f.push(k)}else o.translate(x[p])<=S&&(w=k,A=e[m+1])}r.isArray(f)&&(f=l(f,t,i))}w&&A&&Math.abs(o.translate(w[a.FIELD_ORIGIN][p])-S)>Math.abs(o.translate(A[a.FIELD_ORIGIN][p])-S)&&(w=A)}var B=u(i.getXScale());return!f&&Math.abs(o.translate(w[a.FIELD_ORIGIN][p])-S)<=B/2&&(f=w),f},i.getTooltipItems=function(t,e,i){void 0===i&&(i="");var s,l=t[a.FIELD_ORIGIN],u=function(t,e,i){var n=i;i||(n=e.getAttribute("position").getFields()[0]);var a=e.scales;return a[n]?a[n].getText(t[n]):r.hasKey(t,n)?t[n]:n}(l,e,i),p=e.tooltipOption,h=e.theme.defaultColor,f=[];function d(e,i){if(!r.isNil(i)&&""!==i){var n={title:u,data:l,mappingData:t,name:e,value:i,color:t.color||h,marker:!0};f.push(n)}}if(r.isObject(p)){var g=p.fields,v=p.callback;if(v){var y=g.map((function(e){return t[a.FIELD_ORIGIN][e]})),m=v.apply(void 0,y),b=n.__assign({data:t[a.FIELD_ORIGIN],mappingData:t,title:u,color:t.color||h,marker:!0},m);f.push(b)}else for(var x=e.scales,_=0,M=g;_<M.length;_++){var w=M[_];if(!r.isNil(l[w])){var S=x[w];d(o.getName(S),s=S.getText(l[w]))}}}else{var C=c(e);r.isNil(l[C.field])||(s=function(t,e){var i=t[e.field];return r.isArray(i)?i.map((function(t){return e.getText(t)})).join("-"):e.getText(i)}(l,C),d(function(t,e){var i,n=e.getGroupScales();if(n.length&&(i=n[0]),i){var r=i.field;return i.getText(t[r])}var a=c(e);return o.getName(a)}(l,e),s))}return f}},{"../constant":237,"./scale":381,"@antv/util":803,tslib:385}],384:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.zoom=i.getIdentityMatrix=i.rotate=i.translate=i.transform=void 0;var n=t("@antv/matrix-util").ext.transform;i.transform=n,i.translate=function(t,e,i){var r=n(t.getMatrix(),[["t",e,i]]);t.setMatrix(r)},i.rotate=function(t,e){var i=t.attr(),r=i.x,a=i.y,o=n(t.getMatrix(),[["t",-r,-a],["r",e],["t",r,a]]);t.setMatrix(o)},i.getIdentityMatrix=function(){return[1,0,0,0,1,0,0,0,1]},i.zoom=function(t,e){var i=t.getBBox(),r=(i.minX+i.maxX)/2,a=(i.minY+i.maxY)/2;t.applyToMatrix([r,a,1]);var o=n(t.getMatrix(),[["t",-r,-a],["s",e,e],["t",r,a]]);t.setMatrix(o)}},{"@antv/matrix-util":717}],385:[function(t,e,i){(function(t){
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var i,n,r,a,o,s,l,u,c,p,h,f,d,g,v,y,m,b,x,_,M,w,S;!function(i){var n="object"==typeof t?t:"object"==typeof self?self:"object"==typeof this?this:{};function r(t,e){return t!==n&&("function"==typeof Object.create?Object.defineProperty(t,"__esModule",{value:!0}):t.__esModule=!0),function(i,n){return t[i]=e?e(i,n):n}}"function"==typeof define&&define.amd?define("tslib",["exports"],(function(t){i(r(n,r(t)))})):"object"==typeof e&&"object"==typeof e.exports?i(r(n,r(e.exports))):i(r(n))}((function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])};i=function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)},n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},r=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(t);r<n.length;r++)e.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]])}return i},a=function(t,e,i,n){var r,a=arguments.length,o=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(o=(a<3?r(o):a>3?r(e,i,o):r(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o},o=function(t,e){return function(i,n){e(i,n,t)}},s=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(t,e,i,n){return new(i||(i=Promise))((function(r,a){function o(t){try{l(n.next(t))}catch(t){a(t)}}function s(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,s)}l((n=n.apply(t,e||[])).next())}))},u=function(t,e){var i,n,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},c=function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||S(e,t,i)},S=Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]},p=function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},h=function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,a=i.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o},f=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t},d=function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),r=0;for(e=0;e<i;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,r++)n[r]=a[o];return n},g=function(t){return this instanceof g?(this.v=t,this):new g(t)},v=function(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,r=i.apply(t,e||[]),a=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(t){r[t]&&(n[t]=function(e){return new Promise((function(i,n){a.push([t,e,i,n])>1||s(t,e)}))})}function s(t,e){try{(i=r[t](e)).value instanceof g?Promise.resolve(i.value.v).then(l,u):c(a[0][2],i)}catch(t){c(a[0][3],t)}var i}function l(t){s("next",t)}function u(t){s("throw",t)}function c(t,e){t(e),a.shift(),a.length&&s(a[0][0],a[0][1])}},y=function(t){var e,i;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,r){e[n]=t[n]?function(e){return(i=!i)?{value:g(t[n](e)),done:"return"===n}:r?r(e):e}:r}},m=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t=p(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(i){e[i]=t[i]&&function(e){return new Promise((function(n,r){(function(t,e,i,n){Promise.resolve(n).then((function(e){t({value:e,done:i})}),e)})(n,r,(e=t[i](e)).done,e.value)}))}}},b=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t};var C=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};x=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&S(e,t,i);return C(e,t),e},_=function(t){return t&&t.__esModule?t:{default:t}},M=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},w=function(t,e,i){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,i),i},t("__extends",i),t("__assign",n),t("__rest",r),t("__decorate",a),t("__param",o),t("__metadata",s),t("__awaiter",l),t("__generator",u),t("__exportStar",c),t("__createBinding",S),t("__values",p),t("__read",h),t("__spread",f),t("__spreadArrays",d),t("__await",g),t("__asyncGenerator",v),t("__asyncDelegator",y),t("__asyncValues",m),t("__makeTemplateObject",b),t("__importStar",x),t("__importDefault",_),t("__classPrivateFieldGet",M),t("__classPrivateFieldSet",w)}))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],386:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.VIEW_LAYER_LIFE_CYCLE=void 0,function(t){t.BEFORE_INIT="beforeinit",t.AFTER_INIT="afterinit",t.BEFORE_RENDER="beforerender",t.AFTER_RENDER="afterrender",t.BEFORE_CHANGE_DATA="beforechangedata",t.AFTER_CHANGE_DATA="afterchangedata"}(i.VIEW_LAYER_LIFE_CYCLE||(i.VIEW_LAYER_LIFE_CYCLE={}))},{}],387:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/dom-util"),a=t("../../dependents"),o=t("@antv/util"),s=n.__importDefault(t("resize-observer-polyfill")),l=t("../../theme/global"),u=n.__importDefault(t("./theme")),c=function(){function t(t){var e=this;this.onResize=o.debounce((function(){if(!e.plot.destroyed){var t=e.getCanvasSize(),i=t.width,n=t.height;e.width===i&&e.height===n||(e.width=i,e.height=n,e.plot.updateConfig({width:i,height:n}),e.plot.render())}}),300);var i=t.containerDOM,n=t.plot;this.containerDOM=i,this.plot=n,this.init()}return t.prototype.getCanvasSize=function(){var t=l.getGlobalTheme(),e=this.plot.width?this.plot.width:t.width,i=this.plot.height?this.plot.height:t.height;return this.plot.forceFit&&(e=this.containerDOM.offsetWidth?this.containerDOM.offsetWidth:e,i=this.containerDOM.offsetHeight?this.containerDOM.offsetHeight:i),{width:e,height:i}},t.prototype.getCanvasDOM=function(){return this.canvas.get("container")},t.prototype.updateCanvasSize=function(){var t=this.getCanvasSize(),e=t.width,i=t.height;this.width=e,this.height=i,this.canvas.changeSize(e,i)},t.prototype.updateCanvasTheme=function(){var t=this.plot.theme,e=u.default.getGlobalTheme(t),i=o.get(e,"backgroundStyle.fill");i&&this.updateCanvasStyle({backgroundColor:i})},t.prototype.updateCanvasStyle=function(t){r.modifyCSS(this.getCanvasDOM(),t),r.modifyCSS(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},t.prototype.destroy=function(){this.resizeObserver&&(this.resizeObserver.unobserve(this.containerDOM),this.resizeObserver.disconnect(),this.containerDOM=null),this.canvas.destroy()},t.prototype.bindForceFit=function(){this.plot.forceFit&&(this.resizeObserver=new s.default(this.onResize),this.resizeObserver.observe(this.containerDOM))},t.prototype.init=function(){this.initGCanvas(),this.bindForceFit(),this.updateCanvasStyle({position:"relative"})},t.prototype.initGCanvas=function(){var t=this.plot,e=t.renderer,i=void 0===e?"canvas":e,n=t.pixelRatio,r=t.localRefresh,o=void 0!==r&&r,s=this.getCanvasSize(),l=s.width,u=s.height,c="canvas"===i?a.Canvas:a.SVG;this.canvas=new c({localRefresh:o,container:this.containerDOM,width:l,height:u,pixelRatio:n}),this.width=l,this.height=u,this.updateCanvasTheme()},t}();i.default=c},{"../../dependents":425,"../../theme/global":668,"./theme":391,"@antv/dom-util":92,"@antv/util":803,"resize-observer-polyfill":893,tslib:894}],388:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util");var r=function(){function t(t){this.plot=t.plot,this.canvas=t.canvas,this.eventHandlers=[]}return t.prototype.bindEvents=function(){this.addEvent(this.canvas,"mousedown",n.wrapBehavior(this,"onEvents")),this.addEvent(this.canvas,"mousemove",n.wrapBehavior(this,"onMove")),this.addEvent(this.canvas,"mouseup",n.wrapBehavior(this,"onEvents")),this.addEvent(this.canvas,"click",n.wrapBehavior(this,"onEvents")),this.addEvent(this.canvas,"dblclick",n.wrapBehavior(this,"onEvents")),this.addEvent(this.canvas,"contextmenu",n.wrapBehavior(this,"onEvents")),this.addEvent(this.canvas,"wheel",n.wrapBehavior(this,"onEvents"))},t.prototype.clearEvents=function(){var t=this.eventHandlers;n.each(t,(function(t){t.target.off(t.type,t.handler)}))},t.prototype.addEvent=function(t,e,i){t.on(e,i),this.eventHandlers.push({target:t,type:e,handler:i})},t.prototype.onEvents=function(t){var e=this.getEventObj(t),i=t.target;!this.isShapeInView(i)&&i.name&&this.plot.emit(i.name+":"+t.type,t),this.plot.emit(""+t.type,e);var n=this.plot.getLayers();n.length>0&&this.onLayerEvent(n,e,t.type)},t.prototype.onMove=function(t){var e,i,n=t.target,r=this.getEventObj(t);!this.isShapeInView(n)&&n.name&&(this.plot.emit(n.name+":"+t.type,r),!this.lastShape||(e=n,i=this.lastShape,e&&i&&e===i)||(this.lastShape&&this.plot.emit(this.lastShape.name+":mouseleave",r),this.plot.emit(n.name+":mouseenter",r)),this.lastShape=n),this.plot.emit("mousemove",r);var a=this.plot.getLayers();a.length>0&&this.onLayerEvent(a,r,"mousemove")},t.prototype.isShapeInView=function(t){for(var e=["frontgroundGroup","backgroundGroup","panelGroup"],i=t.get("parent");i;){var r=i.get("name");if(r&&n.contains(e,r))return!0;i=i.get("parent")}return!1},t.prototype.getEventObj=function(t){return{clientX:t.clientX,clientY:t.clientY,x:t.x,y:t.y,plot:this.plot,data:t.data?t.data.data:null,canvas:this.canvas,target:t.target,gEvent:t}},t.prototype.onLayerEvent=function(t,e,i){var r=this;n.each(t,(function(t){var n=t.getGlobalBBox();if(function(t,e){return t.x>=e.minX&&t.x<=e.maxX&&t.y>=e.minY&&t.y<=e.maxY}({x:e.x,y:e.y},n)){t.emit(""+i,e);var a=t.layers;a.length>0&&r.onLayerEvent(a,e,i)}}))},t}();i.default=r},{"@antv/util":803}],389:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../util/bbox")),o=t("../../util/common"),s=function(){function t(t){this.innerPaddingComponents=[],this.outerPaddingComponents=[],this.plot=t.plot}return t.prototype.registerPadding=function(t,e,i){void 0===e&&(e="outer"),void 0===i&&(i=!1),"inner"===e?i&&this.innerPaddingComponents.find((function(e){return e==t}))||this.innerPaddingComponents.push(t):i&&this.outerPaddingComponents.find((function(e){return e==t}))||this.outerPaddingComponents.push(t)},t.prototype.getPaddingComponents=function(t){return void 0===t&&(t="outer"),("outer"===t?this.outerPaddingComponents:this.innerPaddingComponents)||[]},t.prototype.clear=function(){this.innerPaddingComponents=[],this.outerPaddingComponents=r.filter(this.outerPaddingComponents,(function(t){return t.afterRender}))},t.prototype.clearOuterComponents=function(){r.each(this.outerPaddingComponents,(function(t){t.afterRender&&t.destroy()})),this.outerPaddingComponents=[]},t.prototype.getPadding=function(){var t=this.plot.options,e=t.padding?t.padding:this.plot.config.theme.padding;return"auto"===e?[0,0,0,1]:e},t.prototype.processAutoPadding=function(){var t=this._getInnerAutoPadding();this.plot.updateConfig({padding:t}),this.plot.render()},t.prototype.processOuterPadding=function(){this.plot.layerBBox||(this.plot.layerBBox=new a.default(this.plot.x,this.plot.y,this.plot.width,this.plot.height));var t=this.plot.layerBBox.minX,e=this.plot.layerBBox.maxX,i=this.plot.layerBBox.minY,n=this.plot.layerBBox.maxY;return r.each(this.outerPaddingComponents,(function(r){var a=r.position;if(!r.destroyed){var o=r.getBBox(),s=o.minX,l=o.maxX,u=o.minY,c=o.maxY;c>=i&&c<=n&&"top"===a&&(i=c),u>=i&&u<=n&&"bottom"===a&&(n=u),l>t&&l<=e&&"left"===a&&(t=l),s>=t&&l<=e&&"right"===a&&(e=s)}})),new a.default(t,i,e-t,n-i)},t.prototype._getInnerAutoPadding=function(){var t,e=this.plot.options,i=this.plot.view,n=i.coordinateBBox,o=n.maxX,s=n.maxY,l=n.minY,u=n.minX,c=this.plot.config.theme.bleeding;r.isArray(c)&&r.each(c,(function(t,i){"function"==typeof c[i]&&(c[i]=c[i](e))})),this.bleeding=r.clone(c);var p=[new a.default(n.minX,n.minY,n.width,n.height)];"cartesian"===(null===(t=this.plot.config.coordinate)||void 0===t?void 0:t.type)&&this._getCartesianAxis(i,p[0],p);var h=this._mergeBBox(p);this._getLegend(i,h,p),h=this._mergeBBox(p);var f=this.innerPaddingComponents;r.each(f,(function(t){var e=t.getBBox();p.push(e)}));var d=[l-(h=this._mergeBBox(p)).minY+this.bleeding[0],h.maxX-o+this.bleeding[1],h.maxY-s+this.bleeding[2],u-h.minX+this.bleeding[3]],g=this._getPanel(i);return d[0]+=g[0],d[1]+=g[1],d[2]+=g[2],d[3]+=g[3],d},t.prototype._getCartesianAxis=function(t,e,i){var n=o.getAxisComponents(t),s=t.getCoordinate().isTransposed;r.each(n,(function(t){if(0!==t.get("group").get("children").length){var n=t.get("position"),r=t.getLayoutBBox(),o=r.minX,l=r.minY,u=r.width,c=r.height;s?"bottom"===n?i.push(new a.default(e.minX-u,l,u,c)):"left"===n?i.push(new a.default(o,e.maxY,u,c)):"top"===n&&i.push(new a.default(e.maxX,l,u,c)):"left"===n?i.push(new a.default(e.minX-u,l,u,c)):"bottom"===n?i.push(new a.default(o,e.maxY,u,c)):"right"===n&&i.push(new a.default(e.maxX,l,u,c))}}))},t.prototype._getLegend=function(t,e,i){var n=o.getLegendComponents(t);r.each(n,(function(t){var n=t.get("position").split("-")[0],r=t.getLayoutBBox(),o=r.minX,s=r.minY,l=r.width,u=r.height;"top"===n?i.push(new a.default(o,e.minY-u,l,u)):"bottom"===n?i.push(new a.default(o,e.maxY,l,u)):"left"===n?i.push(new a.default(e.minX-l,s,l,u)):i.push(new a.default(e.maxX,s,l,u))}))},t.prototype._getPanel=function(t){var e=[],i=t.geometries;r.each(i,(function(t){t.labelsContainer&&e.push(t.labelsContainer)}));var n=1/0,a=-1/0,o=1/0,s=-1/0;r.each(e,(function(t){t.get("children").forEach((function(t){if("group"!==t.type||0!==t.get("children").length){var e=t.getBBox();e.minX<n&&(n=e.minX),e.maxX>a&&(a=e.maxX),e.minY<o&&(o=e.minY),e.maxY>s&&(s=e.maxY)}}))}));var l=t.coordinateBBox,u=Math.max(a-parseFloat(l.maxX),0);u>0&&(u*=l.width/(l.width+u));var c=Math.max(parseFloat(l.minX)-n,0);c>0&&(c*=l.width/(l.width+c));var p=Math.max(parseFloat(l.minY)-o,0);p>0&&(p*=l.height/(l.height+p));var h=Math.max(s-parseFloat(l.maxY),0);h>0&&(h*=l.height/(l.height+h));return[p,u,h,c]},t.prototype._mergeBBox=function(t){var e=1/0,i=-1/0,n=1/0,a=-1/0;return r.each(t,(function(t){var r=t;e=Math.min(r.minX,e),i=Math.max(r.maxX,i),n=Math.min(r.minY,n),a=Math.max(r.maxY,a)})),{minX:e,maxX:i,minY:n,maxY:a}},t}();i.default=s},{"../../util/bbox":672,"../../util/common":674,"@antv/util":803,tslib:894}],390:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.compare=void 0;var n=t("tslib"),r=t("@antv/util"),a=t("../../components/factory"),o=t("../../util/event"),s=n.__importDefault(t("../../util/state-manager"));function l(t,e){if(!r.isFunction(e)){var i=e.name,n=e.exp;return r.isFunction(n)?n(t[i]):t[i]===n}return e(t)}i.compare=l;var u=function(){function t(t){this.shapeContainers=[],r.assign(this,t)}return t.prototype.createStateManager=function(){this.stateManager=new s.default},t.prototype.bindStateManager=function(t,e){this.stateManager=t,e.setState&&this._updateStateProcess(e.setState),e.onStateChange&&this._stateChangeProcess(e.onStateChange)},t.prototype.defaultStates=function(t){var e=this;r.each(t,(function(t,i){var n=t.condition,r=t.related;e.setState({type:i,condition:n,related:r})}))},t.prototype.setState=function(t){var e=this,i=t.type,n=t.condition,a=t.related;this.shapes=this._getShapes(),this.originAttrs=this._getOriginAttrs(),r.each(this.shapes,(function(a,o){var s=a.get("origin").data;if(l(r.isArray(s)?s[0]:s,n)){var u=t.style?t.style:e._getDefaultStateStyle(i,a),c=e.originAttrs[o],p=void 0;p=r.isFunction(u)?u(c):r.mix({},c,u),a.attr(p),e.setZIndex(i,a)}})),a&&this._parserRelated(i,a,n),this.plot.canvas.draw()},t.prototype._updateStateProcess=function(t){var e=this;r.each(t,(function(t){var i,n=t.state;i=r.isFunction(n)?function(t){var i=n(t);e.stateManager.setState(i.name,i.exp)}:function(){e.stateManager.setState(n.name,n.exp)},t.event?o.onEvent(e.plot,e._eventParser(t.event),i):i()}))},t.prototype._stateChangeProcess=function(t){var e=this;r.each(t,(function(t){e.stateManager.on(t.name+":change",(function(i){t.callback(i,e.plot)}))}))},t.prototype._getShapes=function(){var t=this,e=[],i=this.plot.view.geometries;return r.each(i,(function(i){var n=i.container;t.shapeContainers.push(n),i.destroyed||e.push.apply(e,i.getShapes())})),e},t.prototype._getOriginAttrs=function(){var t=[];return r.each(this.shapes,(function(e){t.push(r.clone(e.attr()))})),t},t.prototype._eventParser=function(t){var e=t.split(":");return this.plot.geometryParser("g2",e[0])+":"+e[1]},t.prototype._getDefaultStateStyle=function(t,e){var i=this.plot.theme,n=this.plot.geometryParser("plot",e.name)+"Style";if(i[n]){var a=i[n][t];return r.isFunction(a)&&(a=a(e.attr())),a}return{}},t.prototype._parserRelated=function(t,e,i){var n=this;r.each(e,(function(e){n.plot[e]&&a.getComponentStateMethod(e,t)(n.plot,i)}))},t.prototype.setZIndex=function(t,e){if("active"===t||"selected"===t){var i=e.get("parent").get("children");i[i.length-1].setZIndex(0),e.setZIndex(1)}},t.prototype.resetZIndex=function(){r.each(this.shapeContainers,(function(t){t.get("children").sort((function(t,e){return t._INDEX-e._INDEX}))}))},t}();i.default=u},{"../../components/factory":412,"../../util/event":677,"../../util/state-manager":713,"@antv/util":803,tslib:894}],391:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../../dependents"),r=t("@antv/util"),a=t("../../theme"),o=t("../../util/responsive/theme"),s=t("../../theme/theme"),l=n.getTheme(),u=function(){function t(){}return t.getGlobalTheme=function(t){return r.isString(t)?a.getGlobalTheme(t):r.deepMix({},a.getGlobalTheme(),t)},t.prototype.getPlotTheme=function(t,e){var i=t.theme;return r.isString(i)?r.deepMix({},a.getGlobalTheme(i),a.getTheme(e)):r.deepMix({},a.getGlobalTheme(),a.getTheme(e),s.convertThemeToG2Theme(e,i))},t.prototype.getTheme=function(t,e){var i=a.convertToG2Theme(this.getPlotTheme(t,e));return r.deepMix({},l,i)},t.prototype.getResponsiveTheme=function(t){return o.getResponsiveTheme(t)||o.getResponsiveTheme("default")},t}();i.default=u},{"../../dependents":425,"../../theme":669,"../../theme/theme":670,"../../util/responsive/theme":711,"@antv/util":803}],392:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getPlotType=i.registerPlotType=void 0;var n={};i.registerPlotType=function(t,e){n[t.toLowerCase()]=e},i.getPlotType=function(t){return n[t.toLowerCase()]}},{}],393:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importDefault(t("@antv/event-emitter")),a=t("@antv/util"),o=t("../util/event"),s=n.__importDefault(t("../util/bbox")),l=function(t){function e(e){var i=t.call(this)||this;return i.layers=[],i.destroyed=!1,i.visibility=!0,i.rendered=!1,i.eventHandlers=[],i.options=i.getOptions(e),i.processOptions(i.options),i}return n.__extends(e,t),e.prototype.processOptions=function(t){this.id=t.id,this.x=t.x||0,this.y=t.y||0,this.width=t.width,this.height=t.height,this.canvas=t.canvas,this.parent=t.parent},e.prototype.updateConfig=function(t){this.options=a.deepMix({},this.options,t),this.processOptions(this.options)},e.prototype.beforeInit=function(){return null},e.prototype.init=function(){this.layerBBox=this.getLayerBBox(),this.layerRegion=this.getLayerRegion(),this.eachLayer((function(t){t.init()}))},e.prototype.afterInit=function(){return null},e.prototype.render=function(){this.rendered||(this.container=this.parent?this.parent.container.addGroup():this.canvas.addGroup()),this.rendered=!0,this.beforeInit(),this.init(),this.afterInit(),this.eachLayer((function(t){t.render()})),this.canvas.draw()},e.prototype.clear=function(){this.eachLayer((function(t){t.destroy()})),this.layers=[],this.container.clear()},e.prototype.destroy=function(){var t=this;this.eachLayer((function(t){t.destroy()})),a.each(this.eventHandlers,(function(e){t.off(e.eventName,e.handler)})),this.container.remove(!0),this.destroyed=!0},e.prototype.show=function(){this.container.attr("visible",!0),this.container.set("visible",!0),this.visibility=!0,this.canvas.draw()},e.prototype.hide=function(){this.container.attr("visible",!1),this.container.set("visible",!1),this.visibility=!1,this.canvas.draw()},e.prototype.addLayer=function(t){a.findIndex(this.layers,(function(e){return e===t}))<0&&(t.parent!==this&&(t.parent=this,t.init()),this.layers.push(t))},e.prototype.removeLayer=function(t){var e=a.findIndex(this.layers,(function(e){return e===t}));e>=0&&this.layers.splice(e,1)},e.prototype.updateBBox=function(t,e){void 0===e&&(e=!1);var i={x:this.x,y:this.y,width:this.width,height:this.height},n=a.deepMix({},i,t);this.x=n.x,this.y=n.y,this.width=n.width,this.height=n.height,this.layerBBox=this.getLayerBBox(),this.layerRegion=this.getLayerRegion(),this.render(),e&&this.eachLayer((function(t){t.updateBBoxByParent(),t.render()})),this.canvas.draw()},e.prototype.updateBBoxByParent=function(){var t=this.layerRegion;this.x=this.parent.x+this.parent.width*t.start.x,this.y=this.parent.y+this.parent.height*t.start.y,this.width=this.parent.width*(t.end.x-t.start.x),this.height=this.parent.height*(t.end.y-t.start.y),this.layerBBox=this.getLayerBBox()},e.prototype.getGlobalPosition=function(){for(var t=this.x,e=this.y,i=this.parent;i;)t+=i.x,e+=i.y,i=i.parent;return{x:t,y:e}},e.prototype.getGlobalBBox=function(){var t=this.getGlobalPosition();return new s.default(t.x,t.y,this.width,this.height)},e.prototype.getOptions=function(t){var e=0,i=0;t.parent&&(e=t.parent.width,i=t.parent.height);var n={x:0,y:0,width:e,height:i};return a.deepMix({},n,t)},e.prototype.eachLayer=function(t){a.each(this.layers,t)},e.prototype.parseEvents=function(t){var e=this,i=a.keys(o.LAYER_EVENT_MAP);a.each(t,(function(t,n){if(a.contains(i,n)&&a.isFunction(t)){var r=o.LAYER_EVENT_MAP[n]||n,s=t;e.on(r,s),e.eventHandlers.push({name:r,handler:s})}}))},e.prototype.getLayerBBox=function(){return new s.default(this.x,this.y,this.width,this.height)},e.prototype.getLayerRegion=function(){if(this.parent){var t=this.parent.width,e=this.parent.height,i=this.parent.x,n=this.parent.y;return{start:{x:(this.x-i)/t,y:(this.y-n)/e},end:{x:(this.x+this.width-i)/t,y:(this.y+this.height-n)/e}}}return{start:{x:0,y:0},end:{x:1,y:1}}},e}(r.default);i.default=l},{"../util/bbox":672,"../util/event":677,"@antv/event-emitter":94,"@antv/util":803,tslib:894}],394:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importDefault(t("@antv/event-emitter")),a=t("@antv/util"),o=n.__importDefault(t("./controller/canvas")),s=n.__importDefault(t("./controller/event")),l=t("./global"),u=n.__importDefault(t("./layer")),c=n.__importDefault(t("./view-layer")),p=t("../util/event"),h=function(t){function e(e,i){var n=t.call(this)||this;return n.containerDOM="string"==typeof e?document.getElementById(e):e,n.forceFit=a.isNil(i.forceFit)?a.isNil(i.width)&&a.isNil(i.height):i.forceFit,n.renderer=i.renderer||"canvas",n.pixelRatio=i.pixelRatio||null,n.width=i.width,n.height=i.height,n.theme=i.theme,n.localRefresh=i.localRefresh,n.canvasController=new o.default({containerDOM:n.containerDOM,plot:n}),n.width=n.canvasController.width,n.height=n.canvasController.height,n.canvas=n.canvasController.canvas,n.layers=[],n.destroyed=!1,n.createLayers(i),n.eventController=new s.default({plot:n,canvas:n.canvasController.canvas}),n.eventController.bindEvents(),n.parseEvents(i),n}return n.__extends(e,t),e.prototype.destroy=function(){this.eachLayer((function(t){t.destroy()})),this.canvasController.destroy(),this.eventController.clearEvents(),this.layers=[],this.destroyed=!0},e.prototype.repaint=function(){this.canvasController.canvas.draw()},e.prototype.updateConfig=function(t,e){if(void 0===e&&(e=!1),e)this.eachLayer((function(e){e instanceof c.default&&e.updateConfig(t)}));else{var i=this.layers[0];i instanceof u.default&&i.updateConfig(t)}t.width&&(this.width=t.width),t.height&&(this.height=t.height),t.theme&&(this.theme=t.theme),this.canvasController.updateCanvasSize(),this.canvasController.updateCanvasTheme()},e.prototype.changeData=function(t,e){if(void 0===e&&(e=!1),e)this.eachLayer((function(e){e instanceof c.default&&e.changeData(t)}));else{var i=this.layers[0];i instanceof c.default&&i.changeData(t)}},e.prototype.getScaleByField=function(t){return this.layers[0].getScaleByField(t)},e.prototype.getXScale=function(){return this.layers[0].getXScale()},e.prototype.getYScale=function(){return this.layers[0].getYScale()},e.prototype.getColorScale=function(){return this.layers[0].getColorScale()},e.prototype.getPlotTheme=function(){return this.layers[0].getPlotTheme()},e.prototype.getData=function(){return this.layers[0].getData()},e.prototype.bindStateManager=function(t,e){this.eachLayer((function(i){i instanceof c.default&&i.bindStateManager(t,e)}))},e.prototype.setActive=function(t,e){this.eachLayer((function(i){i instanceof c.default&&i.setActive(t,e)}))},e.prototype.setSelected=function(t,e){this.eachLayer((function(i){i instanceof c.default&&i.setSelected(t,e)}))},e.prototype.setDisable=function(t,e){this.eachLayer((function(i){i instanceof c.default&&i.setDisable(t,e)}))},e.prototype.setDefault=function(t,e){this.eachLayer((function(i){i instanceof c.default&&i.setDefault(t,e)}))},e.prototype.getView=function(){return this.layers[0].view},e.prototype.getLayer=function(t){return void 0===t&&(t=0),this.layers[t]},e.prototype.getCanvas=function(){return this.canvasController.canvas},e.prototype.getLayers=function(){return this.layers},e.prototype.render=function(){this.eachLayer((function(t){return t.render()}))},e.prototype.eachLayer=function(t){a.each(this.layers,t)},e.prototype.addLayer=function(t){a.findIndex(this.layers,(function(e){return e===t}))<0&&this.layers.push(t)},e.prototype.createLayers=function(t){if(t.layers);else if(t.type){var e=new(l.getPlotType(t.type))(a.deepMix({},t,{canvas:this.canvasController.canvas,x:0,y:0,width:this.width,height:this.height}));this.addLayer(e)}},e.prototype.parseEvents=function(t){var e=this,i=a.keys(p.CANVAS_EVENT_MAP);t.events&&a.each(t.events,(function(t,n){if(a.contains(i,n)&&a.isFunction(t)){var r=p.CANVAS_EVENT_MAP[n]||n,o=t;e.on(r,o)}}))},e}(r.default);i.default=h},{"../util/event":677,"./controller/canvas":387,"./controller/event":388,"./global":392,"./layer":393,"./view-layer":395,"@antv/event-emitter":94,"@antv/util":803,tslib:894}],395:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../dependents"),o=n.__importDefault(t("../components/description")),s=t("../components/label/base"),l=t("../components/factory"),u=n.__importDefault(t("../interaction/index")),c=t("../util/event"),p=n.__importDefault(t("./controller/padding")),h=n.__importDefault(t("./controller/state")),f=n.__importDefault(t("./controller/theme")),d=n.__importDefault(t("./layer")),g=t("../util/common"),v=n.__importStar(t("../util/bbox")),y=t("./constants"),m=function(t){function e(e){var i=t.call(this,e)||this;return i.interactions=[],i.labels=[],i.options=i.getOptions(e),i.initialOptions=r.deepMix({},i.options),i.paddingController=new p.default({plot:i}),i.stateController=new h.default({plot:i}),i.themeController=new f.default,i}return n.__extends(e,t),e.getDefaultOptions=function(){return{renderer:"canvas",title:{visible:!1,alignTo:"left",text:""},description:{visible:!1,text:"",alignTo:"left"},padding:"auto",legend:{visible:!0,position:"bottom-center"},tooltip:{visible:!0,shared:!0,showCrosshairs:!0,crosshairs:{type:"x"},offset:20},xAxis:{visible:!0,grid:{visible:!1},line:{visible:!0},tickLine:{visible:!0},label:{visible:!0,autoRotate:!0,autoHide:!0},title:{visible:!1,spacing:12}},yAxis:{visible:!0,grid:{visible:!0},line:{visible:!1},tickLine:{visible:!1},label:{visible:!0,autoHide:!0,autoRotate:!1},title:{autoRotate:!0,visible:!1,spacing:12}},label:{visible:!1},interactions:[{type:"tooltip"},{type:"legend-active"},{type:"legend-filter"}],animation:!0}},e.prototype.getOptions=function(e){var i=this.options||{},a=t.prototype.getOptions.call(this,e),o=this.constructor.getDefaultOptions(e),s=r.reduce(r.flatten(r.map([a,o,r.hasKey(e,"interactions")?e:i],(function(t){return r.get(t,"interactions",[])}))),(function(t,e){var i=r.findIndex(t,(function(t){return t.type===e.type}));return i>=0&&t.splice(i,1),n.__spreadArrays(t,[e])}),[]);return r.deepMix({},a,o,i,e,{interactions:s})},e.prototype.beforeInit=function(){this.emit(y.VIEW_LAYER_LIFE_CYCLE.BEFORE_INIT),t.prototype.beforeInit.call(this)},e.prototype.init=function(){var e=this;t.prototype.init.call(this),this.theme=this.themeController.getTheme(this.options,this.type),this.config={data:this.processData(this.options.data),scales:{},legends:{},tooltip:{showTitle:!0},axes:{},coordinate:{type:"cartesian"},geometries:[],annotations:[],interactions:[],theme:this.theme,panelRange:{},animate:{},views:[]},this.paddingController.clear(),this.drawTitle(),this.drawDescription(),this.interaction(),this.coord(),this.scale(),this.axis(),this.tooltip(),this.legend(),this.addGeometry(),this.annotation(),this.animation(),this.viewRange=this.getViewRange();var i=this.viewRangeToRegion(this.viewRange);this.view=new a.View({parent:null,canvas:this.canvas,backgroundGroup:this.container.addGroup(),middleGroup:this.container.addGroup(),foregroundGroup:this.container.addGroup(),padding:this.paddingController.getPadding(),theme:this.theme,options:this.config,limitInPlot:this.isLimitInPlot(),region:i}),this.applyInteractions(),this.view.on(a.VIEW_LIFE_CIRCLE.AFTER_RENDER,(function(){e.afterRender()}))},e.prototype.afterInit=function(){t.prototype.afterInit.call(this),this.view&&!this.view.destroyed&&("auto"!==this.options.padding&&this.parseEvents(),this.emit(y.VIEW_LAYER_LIFE_CYCLE.AFTER_INIT))},e.prototype.afterRender=function(){var t,e;if(this.view&&!this.view.destroyed){var i=this.options,n=i.padding?i.padding:this.config.theme.padding;i.defaultState&&"auto"!==n&&this.stateController.defaultStates(i.defaultState),"auto"===n&&this.paddingController.processAutoPadding(),(null===(e=null===(t=i.tooltip)||void 0===t?void 0:t.custom)||void 0===e?void 0:e.onChange)&&"auto"!==i.padding&&this.customTooltip()}},e.prototype.render=function(){this.emit(y.VIEW_LAYER_LIFE_CYCLE.BEFORE_RENDER),t.prototype.render.call(this);var e=this.options.data;r.isEmpty(e)||this.view.render(),this.emit(y.VIEW_LAYER_LIFE_CYCLE.AFTER_RENDER)},e.prototype.repaint=function(){this.canvas&&this.canvas.draw()},e.prototype.getScaleByField=function(t){return this.view.getScaleByField(t)},e.prototype.getXScale=function(){var t=this.options.xField;if(t)return this.view.getScaleByField(t)},e.prototype.getYScale=function(){var t=this.options.yField;if(t)return this.view.getScaleByField(t)},e.prototype.getColorScale=function(){var t=this.options;if(r.contains(t,"colorField"))return this.view.getScaleByField(t)},e.prototype.getShapes=function(){var t=this.view.geometries,e={};return r.each(t,(function(t){var i=t.type;e[i]=t.getShapes()})),e},e.prototype.destroy=function(){this.doDestroy(),t.prototype.destroy.call(this)},e.prototype.updateConfig=function(t){this.doDestroy(),!t.padding&&this.initialOptions.padding&&"auto"===this.initialOptions.padding&&(t.padding="auto"),this.options=this.getOptions(t),this.processOptions(this.options)},e.prototype.changeData=function(t){this.emit(y.VIEW_LAYER_LIFE_CYCLE.BEFORE_CHANGE_DATA);var e=r.isEmpty(this.options.data);this.options.data=this.processData(t),e?(this.options.padding=this.initialOptions.padding||"auto",this.view.data(this.options.data),this.view.render()):this.view.changeData(this.options.data),this.emit(y.VIEW_LAYER_LIFE_CYCLE.AFTER_CHANGE_DATA)},e.prototype.getPlot=function(){return this.view},e.prototype.getLabels=function(){return this.labels},e.prototype.getTheme=function(){return this.theme?this.theme:this.themeController.getTheme(this.options,this.type)},e.prototype.getResponsiveTheme=function(){return this.themeController.getResponsiveTheme(this.type)},e.prototype.getPlotTheme=function(){return this.themeController.getPlotTheme(this.options,this.type)},e.prototype.getInteractions=function(){return this.interactions},e.prototype.bindStateManager=function(t,e){this.stateController.bindStateManager(t,e)},e.prototype.setActive=function(t,e){this.stateController.setState({type:"active",condition:t,style:e})},e.prototype.setSelected=function(t,e){this.stateController.setState({type:"selected",condition:t,style:e})},e.prototype.setDisable=function(t,e){this.stateController.setState({type:"disable",condition:t,style:e})},e.prototype.setDefault=function(t,e){this.stateController.setState({type:"default",condition:t,style:e})},e.prototype.getData=function(t,e){return this.processData((this.options.data||[]).slice(t,e))},e.prototype.processData=function(t){return t},e.prototype.scale=function(){var t=r.mapValues(this.config.scales,(function(t){var e=t.type;return e?{type:e}:{}})),e=r.deepMix({},this.config.scales,this.options.meta||{},t);this.setConfig("scales",e)},e.prototype.axis=function(){var t=l.getComponent("axis",{plot:this,dim:"x"}),e=l.getComponent("axis",{plot:this,dim:"y"}),i={};i[this.options.xField]=t,i[this.options.yField]=e,this.setConfig("axes",i)},e.prototype.tooltip=function(){var t,e;if(!1!==this.options.tooltip.visible){var i=r.get(this.options,"tooltip");(null===(t=i.custom)||void 0===t?void 0:t.container)&&(i.container=i.custom.container),(null===(e=i.custom)||void 0===e?void 0:e.customContent)&&(i.customContent=i.custom.customContent),this.setConfig("tooltip",r.deepMix({},i)),r.deepMix(this.config.theme.tooltip,this.options.tooltip.domStyles)}else this.setConfig("tooltip",!1)},e.prototype.createTooltipContainer=function(){var t=document.createElement("div");return t.className="g2-tooltip",t},e.prototype.customTooltip=function(){var t,e=this.options.tooltip.custom;e.container&&(t=r.isString(e.container)?document.getElementById(e.container):e.container),t||(t=this.createTooltipContainer()),this.view.on("tooltip:show",(function(i){(null==e?void 0:e.onChange)&&e.onChange(t,i)})),this.view.hideTooltip(),this.view.on("tooltip:change",(function(i){e.onChange(t,i)}))},e.prototype.getLegendPosition=function(t){var e=t.split("-");return e&&e.length>1&&"center"===e[1]?e[0]:t},e.prototype.legend=function(){var t;if(!1!==this.options.legend.visible){var e=r.deepMix({},this.theme.legend,this.options.legend),i={position:this.getLegendPosition(r.get(e,"position")),offsetX:r.get(e,"offsetX"),offsetY:r.get(e,"offsetY"),flipPage:r.get(e,"flipPage"),marker:r.get(e,"marker"),title:(null===(t=e.title)||void 0===t?void 0:t.visible)?r.get(e,"title"):null,itemName:r.get(e,"text")};this.setConfig("legends",i)}else this.setConfig("legends",!1)},e.prototype.annotation=function(){var t=this,e=[];"cartesian"===this.config.coordinate.type&&this.options.guideLine&&r.each(this.options.guideLine,(function(i){var n=l.getComponent("guideLine",{plot:t,cfg:i});e.push(n)})),this.setConfig("annotations",e)},e.prototype.interaction=function(){var t=this,e=this.options.interactions,i=void 0===e?[]:e;r.each(i,(function(e){var i=e.type;if("slider"===i||"scrollbar"===i){t.options.xAxis=r.deepMix({},t.options.xAxis,{label:{autoHide:!0,autoRotate:!1}})}t.setConfig("interaction",e)}))},e.prototype.animation=function(){!1===this.options.animation&&this.setConfig("animate",!1)},e.prototype.applyInteractions=function(){var t=this,e=v.default.fromBBoxObject(this.layerBBox),i=this.title||this.description,n=new v.default(e.minX,e.minY,e.width,i?i.getBBox().maxY:0);e=e.cut(n,v.DIRECTION.TOP);var r=this.options.interactions,a=void 0===r?[]:r;this.interactions&&this.interactions.forEach((function(t){t.destroy()})),this.interactions=[],a.forEach((function(i){var n=u.default.getInteraction(i.type,t.type);if(n){var r=new n({view:t.view},t,n.getInteractionRange(e,i.cfg),i.cfg);r.render(),t.interactions.push(r)}}))},e.prototype.setConfig=function(t,e){"geometry"!==t?"interaction"!==t?!1!==e?r.assign(this.config[t],e):this.config[t]=!1:this.config.interactions.push(e):this.config.geometries.push(e)},e.prototype.parseEvents=function(e){var i=this,n=this.options;if(n.events){t.prototype.parseEvents.call(this,n.events);var a=e?e.EVENT_MAP:c.EVENT_MAP;r.each(n.events,(function(t,e){if(r.isFunction(t)){var n=a[e]||e,o=t;c.onEvent(i,n,o)}}))}},e.prototype.drawTitle=function(){var t=this.options,e=this.layerBBox;if(this.title&&(this.title.destroy(),this.title=null),g.isTextUsable(t.title)){var i=this.width,n=this.config.theme,a=new o.default({leftMargin:e.minX+n.title.padding[3],rightMargin:e.maxX-n.title.padding[1],topMargin:e.minY+n.title.padding[0],text:t.title.text,style:r.mix(n.title,t.title.style),wrapperWidth:i-n.title.padding[3]-n.title.padding[1],container:this.container.addGroup(),theme:n,index:g.isTextUsable(t.description)?0:1,plot:this,alignTo:t.title.alignTo,name:"title"});this.title=a,this.paddingController.registerPadding(a,"outer")}},e.prototype.drawDescription=function(){var t=this.options,e=this.layerBBox;if(this.description&&(this.description.destroy(),this.description=null),g.isTextUsable(t.description)){var i=this.width,n=this.config.theme,a=0;if(this.title){var s=this.title.getBBox();a+=s.minY+s.height,a+=n.description.padding[0]}else a+=e.minY+n.title.padding[0];var l=new o.default({leftMargin:e.minX+n.description.padding[3],topMargin:a,rightMargin:e.maxX-n.title.padding[1],text:t.description.text,style:r.mix(n.description,t.description.style),wrapperWidth:i-n.description.padding[3]-n.description.padding[1],container:this.container.addGroup(),theme:n,index:1,plot:this,alignTo:t.description.alignTo,name:"description"});this.description=l,this.paddingController.registerPadding(l,"outer")}},e.prototype.doRenderLabel=function(t,e){r.each(this.labels,(function(t){t.destroy()})),this.labels=[];var i={layer:this,container:t.labelsContainer,geometry:t,label:e},n=s.getLabelComponent(e.type);if(n){var a=new n(i);a.init(),a.render(),this.labels.push(a)}},e.prototype.doDestroy=function(){this.doDestroyInteractions(),this.doDestroyLabels(),this.view.destroyed||this.view.destroy()},e.prototype.doDestroyInteractions=function(){this.interactions&&this.interactions.forEach((function(t){t.destroy()})),this.interactions=[]},e.prototype.doDestroyLabels=function(){r.each(this.labels,(function(t){t.destroy()})),this.labels=[]},e.prototype.getViewRange=function(){var t=this,e=this.options.interactions,i=void 0===e?[]:e,n=this.paddingController.processOuterPadding();return i.forEach((function(e){var i=u.default.getInteraction(e.type,t.type),r=i&&i.getInteractionRange(n,e.cfg),a="";r&&(r.maxY===n.maxY&&r.minY>n.minY?a="bottom":r.maxX===n.maxX&&r.minX>n.minX?a="right":r.minX===n.minX&&r.maxX>n.maxX?a="left":r.minY===n.minY&&r.maxY<n.maxY&&(a="top"),t.paddingController.registerPadding({interaction:e.type,name:e.type,getBBox:function(){return r},position:a},"outer"))})),this.paddingController.processOuterPadding()},e.prototype.isLimitInPlot=function(){var t=this.options.yAxis;return!!(r.hasKey(t,"max")||r.hasKey(t,"min")||r.hasKey(t,"maxLimit")||r.hasKey(t,"minLimit"))},e.prototype.viewRangeToRegion=function(t){var e=this.x,i=this.y,n=this.width,r=this.height,a={x:0,y:0},o={x:1,y:1};return a.x=t.minX/(e+n),a.y=t.minY/(i+r),o.x=t.maxX/(e+n),o.y=t.maxY/(i+r),{start:a,end:o}},e}(d.default);i.default=m},{"../components/description":411,"../components/factory":412,"../components/label/base":414,"../dependents":425,"../interaction/index":444,"../util/bbox":672,"../util/common":674,"../util/event":677,"./constants":386,"./controller/padding":389,"./controller/state":390,"./controller/theme":391,"./layer":393,"@antv/util":803,tslib:894}],396:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("@antv/scale"),o=n.__importDefault(t("../components/description")),s=n.__importDefault(t("../util/bbox")),l=n.__importDefault(t("../base/layer")),u=t("../util/common"),c=n.__importDefault(t("../base/controller/theme")),p=t("../theme"),h=function(t){function e(e){var i=t.call(this,e)||this;return i.geomLayers=[],i.legends=[],i.requiredField=["xField","yField"],i.options=i.getOptions(e),i.initialOptions=r.deepMix({},e),i.themeController=new c.default,i}return n.__extends(e,t),e.getDefaultOptions=function(){return{title:{visible:!1,alignTo:"left",text:""},description:{visible:!1,text:"",alignTo:"left"}}},e.prototype.getOptions=function(e){var i=this.options||{},n=t.prototype.getOptions.call(this,e),a=this.constructor.getDefaultOptions(e);return r.deepMix({},n,a,i,e)},e.prototype.checkData=function(){for(var t,e,i=this,n=this.options,a=n.data,o=n.xField,s=n.yField,l=0;l<this.requiredField.length;l++){var u=this.requiredField[l];if(!r.hasKey(this.options,u))return!1}return!(!r.isArray(s)||s.length<2)&&(!(!r.isArray(a)||0===a.length)&&((0!==(null===(t=a[0])||void 0===t?void 0:t.length)||0!==(null===(e=a[1])||void 0===e?void 0:e.length))&&(r.each(a,(function(t,e){if(!r.isArray(t)||0===t.length){var n=i.getMockData(e);a[e]=n}})),!(!a[0][0][o]||!a[1][0][o]))))},e.prototype.init=function(){t.prototype.init.call(this),this.theme=this.themeController.getTheme(this.options,this.type),this.drawTitle(),this.drawDescription()},e.prototype.updateConfig=function(t){this.doDestroy(),this.options=this.getOptions(t),this.processOptions(this.options)},e.prototype.changeData=function(t){t&&t.length<2||!r.isArray(t[0])||r.each(this.geomLayers,(function(e,i){e.changeData(t[i])}))},e.prototype.changeDataByIndex=function(t,e){r.isArray(t[0])||this.geomLayers[e].changeData(t)},e.prototype.doDestroy=function(){r.each(this.geomLayers,(function(t){t.doDestroy()})),this.geomLayers=[],r.each(this.legends,(function(t){t.destroy()})),this.legends=[]},e.prototype.createLayer=function(t,e,i){var r=this.getViewRange(),a=new t(n.__assign({canvas:this.canvas,container:this.container,x:r.minX,y:r.minY,width:r.width,height:r.height,data:e},i));return this.geomLayers.push(a),a},e.prototype.getLeftYAxisMax=function(){var t=this.getScaleData(0),e=this.getScaleData(1);return 0==t.min&&0===t.max?Math.max(e.max,0):t.max},e.prototype.yAxis=function(t){var e=this.getScaleData(0),i=this.options.yAxis,n=0===t?i.leftConfig:i.rightConfig,a=this.colors[t],o=r.clone(n),s={title:"stroke",line:"stroke",label:"fill",tickLine:"stroke"};n.visible&&n.colorMapping&&r.each(o,(function(t,e){if(!r.isString(t)&&r.hasKey(s,e)){var i=s[e];t.style||(t.style={}),t.style[i]=a}})),n.visible||(o.title.visible=!1,o.tickLine.visible=!1,o.label.visible=!1,o.line.visible=!1,o.visible=!0);var l=this.getYAxisGlobalConfig();return 0===t&&0===e.max&&0===e.min&&(o.max=this.getLeftYAxisMax()),r.deepMix({},l,o)},e.prototype.getTicks=function(){for(var t=this.options.yAxis,e=this.getScaleData(0),i=new(a.getScale("linear"))(r.deepMix({},{min:0,max:this.getLeftYAxisMax(),nice:!0,values:e.values},{tickCount:t.tickCount})),n=i.ticks.length,o=(t.max?i.max:this.getScaleData(1).max)/(n-1),s=[],l=0;l<n;l++){var u=l*o;Number.isInteger(u)||(u=parseFloat(u.toFixed(1))),s.push(u)}return s},e.prototype.getScaleData=function(t){var e=this.options,i=e.data,n=e.yField,a=e.yAxis,o=[];return r.each(i[t],(function(e){o.push(e[n[t]])})),o.sort((function(t,e){return t-e})),{min:o[0],max:a.max?a.max:o[o.length-1],values:o}},e.prototype.getDataByXField=function(t,e){var i=this.options,n=i.data,r=i.xField;return n[e].filter((function(e){return e[r]===t}))},e.prototype.getYAxisGlobalConfig=function(){var t=this.options.yAxis;return{min:t.min,max:t.max,tickCount:t.tickCount}},e.prototype.adjustLayout=function(){var t,e,i=this,n=p.getGlobalTheme().bleeding;r.isArray(n)&&r.each(n,(function(t,e){"function"==typeof n[e]&&(n[e]=n[e](i.options))}));var a,o,s=this.getViewRange(),l=this.transfromPadding(this.geomLayers[0].options.padding),u=this.transfromPadding(this.geomLayers[1].options.padding),c=0;(null===(t=this.options.legend)||void 0===t?void 0:t.visible)&&(a=this.legends[0].getLayoutBBox(),o=this.legends[1].getLayoutBBox(),c=a.height+10);var h=l.map((function(t,e){return 0===e?Math.max.apply(null,[t+c,u[e]]):Math.max.apply(null,[t,u[e]])}));this.geomLayers[0].updateConfig({padding:h}),this.geomLayers[0].render(),this.geomLayers[1].updateConfig({padding:h}),this.geomLayers[1].render(),(null===(e=this.options.legend)||void 0===e?void 0:e.visible)&&(this.legends[0].setLocation({x:n[3],y:s.minY+5}),this.legends[1].setLocation({x:s.maxX-n[1]-o.width,y:s.minY+5}))},e.prototype.transfromPadding=function(t){return"string"==typeof t||"number"==typeof t?[Number(t)]:t},e.prototype.legendFilter=function(t){var e=this,i=this.legends[t];i.get("group").on("click",(function(){var n=i.get("items")[0];n.unchecked?(i.setItemState(n,"unchecked",!1),e.showLayer(t)):(i.setItemState(n,"unchecked",!0),e.hideLayer(t))}))},e.prototype.hideLayer=function(t){var e=this.geomLayers[t],i=this.options.yField[t],n=e.view,r=this.getYAxisContainer(n,i);r&&r.set("visible",!1),this.setGeometryVisibility(n,!1),this.canvas.draw()},e.prototype.showLayer=function(t){var e=this.geomLayers[t],i=this.options.yField[t],n=e.view,r=this.getYAxisContainer(n,i);r&&r.set("visible",!0),this.setGeometryVisibility(n,!0),this.canvas.draw()},e.prototype.setGeometryVisibility=function(t,e){r.each(t.geometries,(function(t){var i=t.container,n=t.labelsContainer;i&&i.set("visible",e),n&&n.set("visible",e)}))},e.prototype.getYAxisContainer=function(t,e){var i,n=t.controllers.filter((function(t){return r.hasKey(t,"axisContainer")}))[0];if(n){var a=n.axisContainer.get("children");r.each(a,(function(t){t.get("component").get("field")===e&&(i=t)}))}return i},e.prototype.getUnCheckedValue=function(){var t=[];return r.each(this.legends,(function(e){var i=e.getItemsByState("unchecked");r.each(i,(function(e){t.push(e.name)}))})),t},e.prototype.drawTitle=function(){var t=this.options,e=this.layerBBox;if(this.title&&(this.title.destroy(),this.title=null),u.isTextUsable(t.title)){var i=this.width,n=this.theme,a=new o.default({leftMargin:e.minX+n.title.padding[3],rightMargin:e.maxX-n.title.padding[1],topMargin:e.minY+n.title.padding[0],text:t.title.text,style:r.mix(n.title,t.title.style),wrapperWidth:i-n.title.padding[3]-n.title.padding[1],container:this.container.addGroup(),theme:n,index:u.isTextUsable(t.description)?0:1,plot:this,alignTo:t.title.alignTo,name:"title"});this.title=a}},e.prototype.drawDescription=function(){var t=this.options,e=this.layerBBox;if(this.description&&(this.description.destroy(),this.description=null),u.isTextUsable(t.description)){var i=this.width,n=this.theme,a=0;if(this.title){var s=this.title.getBBox();a+=s.minY+s.height,a+=n.description.padding[0]}else a+=e.minY+n.title.padding[0];var l=new o.default({leftMargin:e.minX+n.description.padding[3],topMargin:a,rightMargin:e.maxX-n.title.padding[1],text:t.description.text,style:r.mix(n.description,t.description.style),wrapperWidth:i-n.description.padding[3]-n.description.padding[1],container:this.container.addGroup(),theme:n,index:1,plot:this,alignTo:t.description.alignTo,name:"description"});this.description=l}},e.prototype.getViewRange=function(){this.layerBBox||(this.layerBBox=new s.default(this.x,this.y,this.width,this.height));var t=this.layerBBox.minX,e=this.layerBBox.maxX,i=this.layerBBox.minY,n=this.layerBBox.maxY,a=[this.title,this.description];return r.each(a,(function(r){if(r){var a=r.position,o=r.getBBox(),s=o.minX,l=o.maxX,u=o.minY,c=o.maxY;c>=i&&c<=n&&"top"===a&&(i=c),u>=i&&u<=n&&"bottom"===a&&(n=u),l>t&&l<=e&&"left"===a&&(t=l),s>=t&&l<=e&&"right"===a&&(e=s)}})),new s.default(t,i,e-t,n-i)},e.prototype.getMockData=function(t){var e=this.options,i=e.xField,n=e.yField,r={};return r[i]="null",r[n[t]]=0,[r]},e}(l.default);i.default=h},{"../base/controller/theme":391,"../base/layer":393,"../components/description":411,"../theme":669,"../util/bbox":672,"../util/common":674,"@antv/scale":747,"@antv/util":803,tslib:894}],397:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="columnLine",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":398,"@antv/util":803,tslib:894}],398:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/component"),a=t("../../base/global"),o=n.__importDefault(t("../base")),s=n.__importDefault(t("../../plots/line/layer")),l=n.__importDefault(t("../../plots/column/layer")),u=t("@antv/util"),c=t("../../theme"),p={color:"#f5bc32",lineSize:4,connectNull:!0,point:{visible:!1,size:3,shape:"circle",style:{stroke:"#fff"}},label:{visible:!1}},h={color:"#5B8FF9"},f={visible:!0,colorMapping:!0,grid:{visible:!0},line:{visible:!1},tickLine:{visible:!1},label:{visible:!0,autoHide:!0,autoRotate:!1},title:{autoRotate:!0,visible:!1,spacing:12}},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="columnLine",e.legends=[],e}return n.__extends(e,t),e.getDefaultOptions=function(){return u.deepMix({},t.getDefaultOptions.call(this),{yAxis:{leftConfig:f,rightConfig:f},lineConfig:p,columnConfig:h,legend:{visible:!0}})},e.prototype.beforeInit=function(){var t,e,i=this.options,n=this.initialOptions;if(i.lineSeriesField&&(i.yAxis.rightConfig.colorMapping=!1,(null===(t=n.lineConfig)||void 0===t?void 0:t.lineSize)||(i.lineConfig.lineSize=3),!(null===(e=n.lineConfig)||void 0===e?void 0:e.color))){var r=c.getGlobalTheme(),a=r.colors,o=r.colors_20,s=this.getValueBySeriesField(),l=s.length>a.length?o:a,p=[];u.each(s,(function(t,e){p.push(l[e+1])})),i.lineConfig.color=p}},e.prototype.init=function(){if(t.prototype.init.call(this),this.checkData()){var e=this.options,i=e.data,r=e.meta,a=e.xField,o=e.yField,l=e.lineSeriesField,c=e.legend,p=e.lineConfig,h=e.columnConfig,f=e.events,d=e.customMeta;this.colors=[h.color,p.color],this.drawColumn();var g={};g[o[1]]={ticks:this.getTicks()},this.createLayer(s.default,i[1],n.__assign({xField:a,yField:o[1],seriesField:l,meta:d?r:u.deepMix({},r,g),xAxis:{visible:!1},yAxis:u.deepMix({},{position:"right",grid:{visible:!1},nice:!0},this.yAxis(1)),tooltip:{visible:!1},legend:{visible:!1},events:f},p)).render(),c.visible&&this.customLegend(),this.adjustLayout()}},e.prototype.drawColumn=function(){var t=this,e=this.options,i=e.data,r=e.xField,a=e.yField,o=e.xAxis,s=e.tooltip,c=e.columnConfig,p=e.meta,h=e.events;this.createLayer(l.default,i[0],n.__assign({xField:r,yField:a[0],meta:p,xAxis:o,yAxis:u.deepMix({},{grid:{visible:!0},nice:!0},this.yAxis(0)),tooltip:u.deepMix({},{showMarkers:!1,custom:{onChange:function(e,i){t.tooltip(e,i)}}},s),events:h},c)).render()},e.prototype.tooltip=function(t,e){var i=this,r=this.options,a=r.xField,o=r.yField,s=r.tooltip,l=u.clone(e.items[0]),c=this.getDataByXField(e.title,1),p=u.get(s,"formatter");if(c&&u.each(c,(function(t,r){var s=i.geomLayers[1].options.seriesField,h=s?t[s]:o[1],f=p?p(t[a],t[o[1]],t[s]):{name:h,value:t[o[1]]};e.items.push(n.__assign(n.__assign(n.__assign(n.__assign({},l),{mappingData:u.deepMix({},l.mappingData,{_origin:c}),data:t}),f),{color:u.isArray(i.colors[1])?i.colors[1][r]:i.colors[1]}))})),this.options.legend.visible){var h=this.getUnCheckedValue(),f=this.legends[0].get("items").length+this.legends[1].get("items").length;if(h.length===f)return void(t.style.display="none");t.style.display="block";var d=[],g=[];u.each(e.items,(function(t){var e=t.name;u.contains(d,e)||u.contains(h,e)||(d.push(e),g.push(t))})),u.each(e.items,(function(t,i){i<g.length?e.items[i]=g[i]:e.items.pop()}))}},e.prototype.customLegend=function(){var t=this,e=this.options,i=e.yField,n=e.legend,r=this.colors,a=this.container.addGroup(),o=n,s=["square","circle"];u.each(this.geomLayers,(function(e,n){var l;if(e.options.seriesField){var u=t.getValueBySeriesField();l=t.createNormalLegend(u,s[n],r[n],o,a)}else l=t.createSingleLegend(i[n],s[n],r[n],o,a);t.legends.push(l)})),u.each(this.geomLayers,(function(e,i){e.options.seriesField?t.multipleLegendFilter(i,e.options.seriesField):t.legendFilter(i)}))},e.prototype.createSingleLegend=function(t,e,i,n,a){var o=[{name:t,unchecked:!1,marker:u.deepMix({},{symbol:e,style:{r:4,fill:i}},n.marker)}],s=new r.Legend.Category({id:this.type,container:a,x:0,y:0,items:o,updateAutoRender:!0,itemBackground:null,itemName:n.text});return s.init(),s.render(),s},e.prototype.createNormalLegend=function(t,e,i,n,a){var o=[];u.each(t,(function(t,n){o.push({name:t,unchecked:!1,marker:{symbol:e,style:{r:4,fill:i[n]}}})}));var s=new r.Legend.Category({id:this.type,container:a,x:0,y:0,items:o,updateAutoRender:!0,itemBackground:null,itemName:n.text,offsetX:0});return s.init(),s.render(),s},e.prototype.multipleLegendFilter=function(t,e){var i=this,n=this.legends[t],r=[],a=n.get("group"),o=!1;a.on("click",(function(a){var s=i.geomLayers[t].view,l=a.target.get("delegateObject").item;l.unchecked?(!0===o&&(i.showLayer(t),o=!1),u.pull(r,l.name),s.filter(l.value,(function(t){return!u.contains(r,t)})),s.render(),n.setItemState(l,"unchecked",!1)):(n.setItemState(l,"unchecked",!0),r.push(l.name),r.length===i.legends[t].get("items").length?(i.hideLayer(t),o=!0):(s.filter(e,(function(t){return!u.contains(r,t)})),s.render())),i.canvas.draw()}))},e.prototype.getValueBySeriesField=function(){var t=this.options,e=t.lineSeriesField,i=t.data[1],n=[];return u.each(i,(function(t){var i=t[e];u.contains(n,i)||n.push(i)})),n},e}(o.default);i.default=d,a.registerPlotType("columnLine",d)},{"../../base/global":392,"../../plots/column/layer":490,"../../plots/line/layer":558,"../../theme":669,"../base":396,"@antv/component":51,"@antv/util":803,tslib:894}],399:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="dualLine",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":400,"@antv/util":803,tslib:894}],400:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/component"),a=t("../../base/global"),o=n.__importDefault(t("../base")),s=n.__importDefault(t("../../plots/line/layer")),l=t("@antv/util"),u={lineSize:2,connectNull:!0,point:{visible:!1,size:3,shape:"circle",style:{stroke:"#fff"}},label:{visible:!1}},c={visible:!0,colorMapping:!0,grid:{visible:!0},line:{visible:!1},tickLine:{visible:!1},label:{visible:!0,autoHide:!0,autoRotate:!1},title:{autoRotate:!0,visible:!1,offset:12}},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dualLine",e}return n.__extends(e,t),e.getDefaultOptions=function(){return l.deepMix({},t.getDefaultOptions.call(this),{legend:{visible:!0},yAxis:{leftConfig:c,rightConfig:c},lineConfigs:[l.deepMix({},u,{color:"#5B8FF9"}),l.deepMix({},u,{color:"#e76c5e"})]})},e.prototype.init=function(){var e=this;if(t.prototype.init.call(this),this.checkData()){var i=this.options,r=i.data,a=i.meta,o=i.xField,u=i.yField,c=i.xAxis,p=i.tooltip,h=i.lineConfigs,f=i.legend,d=i.events,g=i.customMeta;this.colors=[h[0].color,h[1].color];var v=this.getYAxisGlobalConfig();this.createLayer(s.default,r[0],n.__assign({meta:a,xField:o,yField:u[0],xAxis:{visible:!1},yAxis:l.deepMix({},v,{grid:{visible:!1},nice:!0},this.yAxis(0)),tooltip:{visible:!1},events:d},h[0])).render();var y={};y[u[1]]={ticks:this.getTicks()},this.createLayer(s.default,r[1],n.__assign({xField:o,yField:u[1],meta:g?a:l.deepMix({},a,y),serieField:u[1],xAxis:c,yAxis:l.deepMix({},v,{position:"right",nice:!1},this.yAxis(1)),tooltip:l.deepMix({},{showMarkers:!1,custom:{onChange:function(t,i){e.tooltip(t,i)}}},p),events:d},h[1])).render(),f.visible&&this.customLegend(),this.adjustLayout()}},e.prototype.tooltip=function(t,e){if(this.getUnCheckedValue().length!==this.colors.length){t.style.display="block";var i=this.options,r=i.yField,a=i.legend,o=l.clone(e.items[0]),s=this.getDataByXField(e.title,0)[0];s&&l.findIndex(e.items,(function(t){return t.name===r[0]}))<0&&e.items.push(n.__assign(n.__assign({},o),{mappingData:l.deepMix({},o.mappingData,{_origin:s}),data:s,name:r[0],value:s[r[0]],color:this.colors[0]})),a.visible&&l.each(this.legends,(function(t,i){if(t.get("items")[0].unchecked){var n=0===i?1:0;e.items.splice(n,1)}}))}else t.style.display="none"},e.prototype.customLegend=function(){var t=this,e=this.options,i=e.yField,n=e.legend,a=this.colors,o=this.container.addGroup(),s=n;l.each(this.geomLayers,(function(e,n){var u=l.deepMix({},{symbol:"circle",style:{r:4,fill:a[n]}},s.marker),c=[{name:i[n],unchecked:!1,marker:u}],p=new r.Legend.Category({id:t.type,container:o,x:0,y:0,items:c,updateAutoRender:!0,itemBackground:null,itemName:s.text});p.init(),p.render(),t.legends.push(p)})),l.each(this.geomLayers,(function(e,i){t.legendFilter(i)}))},e}(o.default);i.default=p,a.registerPlotType("dualLine",p)},{"../../base/global":392,"../../plots/line/layer":558,"../base":396,"@antv/component":51,"@antv/util":803,tslib:894}],401:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="groupedColumnLine",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":402,"@antv/util":803,tslib:894}],402:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../../base/global"),a=t("@antv/util"),o=n.__importDefault(t("../column-line/layer")),s=n.__importDefault(t("../../plots/grouped-column/layer")),l=t("../../theme"),u={color:"#f5bc32",lineSize:4,connectNull:!0,point:{visible:!1,size:3,shape:"circle",style:{stroke:"#fff"}},label:{visible:!1}},c={color:["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E8684A","#6DC8EC","#9270CA","#FF9D4D","#269A99","#FF99C3"]},p={visible:!0,colorMapping:!0,grid:{visible:!0},line:{visible:!1},tickLine:{visible:!1},label:{visible:!0,autoHide:!0,autoRotate:!1},title:{autoRotate:!0,visible:!1,spacing:12}},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="groupedColumnLine",e.requiredField=["xField","yField","columnGroupField"],e}return n.__extends(e,t),e.getDefaultOptions=function(){return a.deepMix({},t.getDefaultOptions.call(this),{yAxis:{leftConfig:a.deepMix({},p,{colorMapping:!1}),rightConfig:p},lineConfig:u,columnConfig:c,legend:{visible:!0}})},e.prototype.beforeInit=function(){var t,e,i=this.options,n=this.initialOptions,r=this.getValueByGroupField();if(i.lineSeriesField&&(i.yAxis.rightConfig.colorMapping=!1,(null===(t=n.lineConfig)||void 0===t?void 0:t.lineSize)||(i.lineConfig.lineSize=3),!(null===(e=n.lineConfig)||void 0===e?void 0:e.color))){var o=l.getGlobalTheme(),s=o.colors,u=o.colors_20,c=this.getValueBySeriesField(),p=c.length>s.length?u:s,h=[],f=r.length;a.each(c,(function(t,e){h.push(p[e+f])})),i.lineConfig.color=h}var d=this.options.columnConfig.color;this.options.columnConfig.color=d.slice(0,r.length)},e.prototype.drawColumn=function(){var t=this,e=this.options,i=e.data,r=e.xField,o=e.yField,l=e.columnGroupField,u=e.xAxis,c=e.tooltip,p=e.columnConfig,h=e.events;this.createLayer(s.default,i[0],n.__assign({xField:r,yField:o[0],groupField:l,xAxis:u,yAxis:a.deepMix({},this.yAxis(0),{grid:{visible:!0},nice:!0}),legend:{visible:!1},tooltip:a.deepMix({},c,{showMarkers:!1,custom:{onChange:function(e,i){t.tooltip(e,i)}}}),events:h},p)).render()},e.prototype.customLegend=function(){var t=this,e=this.options,i=e.yField,n=e.legend,r=this.colors,o=this.container.addGroup(),s=n,l=["square","circle"];a.each(this.geomLayers,(function(e,n){var a;if(e.options.seriesField){var u=t.getValueBySeriesField();a=t.createNormalLegend(u,l[n],r[n],s,o)}else if(e.options.groupField){u=t.getValueByGroupField();a=t.createNormalLegend(u,l[n],r[n],s,o)}else a=t.createSingleLegend(i[n],l[n],r[n],s,o);t.legends.push(a)})),a.each(this.geomLayers,(function(e,i){e.options.seriesField?t.multipleLegendFilter(i,e.options.seriesField):e.options.groupField?t.multipleLegendFilter(i,e.options.groupField):t.legendFilter(i)}))},e.prototype.getValueByGroupField=function(){var t=this.options,e=t.columnGroupField,i=t.data[0],n=[];return a.each(i,(function(t){var i=t[e];a.contains(n,i)||n.push(i)})),n},e.prototype.getMockData=function(t){var e=this.options,i=e.xField,n=e.yField,r=e.columnGroupField,a={};a[i]="null_1",a[n[t]]=0,a[r]="null_a";var o={};return o[i]="null_1",o[n[t]]=1,o[r]="null_a",[a,o]},e}(o.default);i.default=h,r.registerPlotType("groupedColumnLine",h)},{"../../base/global":392,"../../plots/grouped-column/layer":532,"../../theme":669,"../column-line/layer":398,"@antv/util":803,tslib:894}],403:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="stackedColumnLine",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":404,"@antv/util":803,tslib:894}],404:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../../base/global"),a=t("@antv/util"),o=n.__importDefault(t("../column-line/layer")),s=n.__importDefault(t("../../plots/stacked-column/layer")),l=t("../../theme"),u={color:"#f5bc32",lineSize:4,connectNull:!0,point:{visible:!1,size:3,shape:"circle",style:{stroke:"#fff"}},label:{visible:!1}},c={color:["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E8684A","#6DC8EC","#9270CA","#FF9D4D","#269A99","#FF99C3"]},p={visible:!0,colorMapping:!0,grid:{visible:!0},line:{visible:!1},tickLine:{visible:!1},label:{visible:!0,autoHide:!0,autoRotate:!1},title:{autoRotate:!0,visible:!1,spacing:12}},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="groupedColumnLine",e.requiredField=["xField","yField","columnStackField"],e}return n.__extends(e,t),e.getDefaultOptions=function(){return a.deepMix({},t.getDefaultOptions.call(this),{yAxis:{leftConfig:a.deepMix({},p,{colorMapping:!1}),rightConfig:p},lineConfig:u,columnConfig:c,legend:{visible:!0}})},e.prototype.beforeInit=function(){var t,e,i=this.getValueByStackField(),n=this.options,r=this.initialOptions;if(n.lineSeriesField&&(n.yAxis.rightConfig.colorMapping=!1,(null===(t=r.lineConfig)||void 0===t?void 0:t.lineSize)||(n.lineConfig.lineSize=3),!(null===(e=r.lineConfig)||void 0===e?void 0:e.color))){var o=l.getGlobalTheme(),s=o.colors,u=o.colors_20,c=this.getValueBySeriesField(),p=c.length>s.length?u:s,h=[],f=i.length;a.each(c,(function(t,e){h.push(p[e+f])})),n.lineConfig.color=h}var d=this.options.columnConfig.color;this.options.columnConfig.color=d.slice(0,i.length)},e.prototype.drawColumn=function(){var t=this,e=this.options,i=e.data,r=e.xField,o=e.yField,l=e.columnStackField,u=e.xAxis,c=e.tooltip,p=e.columnConfig,h=e.events;this.createLayer(s.default,i[0],n.__assign({xField:r,yField:o[0],stackField:l,xAxis:u,yAxis:a.deepMix({},this.yAxis(0),{grid:{visible:!0},nice:!0}),legend:{visible:!1},tooltip:a.deepMix({},c,{showMarkers:!1,custom:{onChange:function(e,i){t.tooltip(e,i)}}}),events:h},p)).render()},e.prototype.customLegend=function(){var t=this,e=this.options,i=e.yField,n=e.legend,r=this.colors,o=this.container.addGroup(),s=n,l=["square","circle"];a.each(this.geomLayers,(function(e,n){var a;if(e.options.seriesField){var u=t.getValueBySeriesField();a=t.createNormalLegend(u,l[n],r[n],s,o)}else if(e.options.stackField){u=t.getValueByStackField();a=t.createNormalLegend(u,l[n],r[n],s,o)}else a=t.createSingleLegend(i[n],l[n],r[n],s,o);t.legends.push(a)})),a.each(this.geomLayers,(function(e,i){e.options.seriesField?t.multipleLegendFilter(i,e.options.seriesField):e.options.stackField?t.multipleLegendFilter(i,e.options.stackField):t.legendFilter(i)}))},e.prototype.getValueByStackField=function(){var t=this.options,e=t.columnStackField,i=t.data[0],n=[];return a.each(i,(function(t){var i=t[e];a.contains(n,i)||n.push(i)})),n},e.prototype.getUnCheckedValue=function(){var t=[];return a.each(this.legends,(function(e){var i=e.getItemsByState("unchecked");a.each(i,(function(e){t.push(e.name)}))})),t},e.prototype.getMockData=function(t){var e=this.options,i=e.xField,n=e.yField,r=e.columnStackField,a={};a[i]="null_1",a[n[t]]=0,a[r]="null_a";var o={};return o[i]="null_1",o[n[t]]=1,o[r]="null_a",[a,o]},e}(o.default);i.default=h,r.registerPlotType("stackedColumnLine",h)},{"../../base/global":392,"../../plots/stacked-column/layer":623,"../../theme":669,"../column-line/layer":398,"@antv/util":803,tslib:894}],405:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../util/formatter");function o(t,e,i){t[i]&&(e[i]=t[i])}var s=function(){function t(t){this.config=!1,this.plot=t.plot,this.dim=t.dim,this.init()}return t.prototype.init=function(){this.config=!1;var t=this.plot.getPlotTheme();this.themeConfig=t&&t.axis&&t.axis[this.dim],this._needDraw()&&this._styleParser()},t.prototype._styleParser=function(){this.config=n.__assign({},this.localProps),this._isVisible("line")?this._lineParser():this.config.line=null,this._isVisible("grid")?this._gridParser():this.config.grid=null,this._isVisible("tickLine")?this._tickLineParser():this.config.tickLine=null,this._isVisible("label")?this._labelParser():this.config.label=null,this._isVisible("title")?this._titleParser():this.config.title=null,o(this.localProps,this.config,"autoHideLabel"),o(this.localProps,this.config,"autoRotateLabel"),o(this.localProps,this.config,"autoRotateTitle")},t.prototype._needDraw=function(){var t=this.plot.options,e=t[this.dim+"Axis"]?t[this.dim+"Axis"]:{},i=r.deepMix({},this.themeConfig,e);return this.localProps=i,!!i.visible},t.prototype._lineParser=function(){this.config.line=this.localProps.line,this.localProps.line.style&&(this.config.line={style:this.localProps.line.style}),this.applyThemeConfig("line")},t.prototype._gridParser=function(){var t,e,i,n,a,o=this,s=null===(e=null===(t=this.localProps.grid)||void 0===t?void 0:t.line)||void 0===e?void 0:e.style,l=null===(n=null===(i=this.localProps.grid)||void 0===i?void 0:i.line)||void 0===n?void 0:n.type,u=null===(a=this.localProps.grid)||void 0===a?void 0:a.alternateColor;r.isFunction(s)?this.config.grid=function(t,e,i){var n=s(t,e,i);return{line:{type:l,style:r.deepMix({},r.get(o.themeConfig,"grid.line.style"),n)},alternateColor:u}}:s&&(this.config.grid={line:{type:l,style:s},alternateColor:u},this.applyThemeConfig("grid"))},t.prototype._tickLineParser=function(){this.config.tickLine=this.localProps.tickLine,this.localProps.tickLine.style&&(this.config.tickLine={style:this.localProps.tickLine.style}),this.applyThemeConfig("tickLine")},t.prototype._labelParser=function(){var t=this.localProps.label,e=t.style,i=n.__rest(t,["style"]),a=n.__assign({},i);e&&(a.style=n.__assign({},this.localProps.label.style)),a.style=r.deepMix({},r.get(this.themeConfig,"label.style"),a.style);var o=this.parseFormatter(a);a.formatter=o,this.config.label=a},t.prototype._titleParser=function(){var t=n.__assign({},this.localProps.title),e=this.localProps.title,i=e.visible,a=e.style,o=e.text;i?(this.config.showTitle=!0,a&&(t.style=a),t.style=r.deepMix({},r.get(this.config,"title.style"),t.textStyle),o&&(t.text=o)):this.config.showTitle=!1,this.config.title=t},t.prototype._isVisible=function(t){return!(!this.localProps[t]||!this.localProps[t].visible)},t.prototype.applyThemeConfig=function(t){this.config[t]=r.deepMix({},r.get(this.themeConfig,t+".style"),this.config[t])},t.prototype.parseFormatter=function(t){var e=a.combineFormatter(a.getNoopFormatter(),a.getPrecisionFormatter(t.precision),a.getSuffixFormatter(t.suffix));return t.formatter&&(e=a.combineFormatter(e,t.formatter)),e},t}();i.default=s},{"../../util/formatter":678,"@antv/util":803,tslib:894}],406:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n,r,a=t("@antv/util");function o(t,e){n||s(t),a.each(n,(function(t){var i=l(t,e);if(u(i.labelData,i.con)){var n={opacity:1,fontWeight:600,fill:"red"};t.shape.attr(n)}}))}function s(t){var e;n=[],r=[];var i=null===(e=t.view.getController("axis"))||void 0===e?void 0:e.getComponents();a.each(i,(function(e){var i=e.component,o=[],s=function(t,e){var i=t.options,n="y",r=e.get("position");"bottom"!==r&&"top"!==r||(n="x");var a=i[n+"Field"];return t.view.get("scales")[a]}(t,i),l=i.get("labelRenderer").get("group").get("children");if(a.each(l,(function(t){"text"===t.type&&(o.push({shape:t}),r.push(t.attr()))})),s){var u=s.ticks,c=s.field;a.each(o,(function(t,e){t.value=u[e],t.scaleField=c,t.type=s.type}))}n.push.apply(n,o)}))}function l(t,e){var i,n=((i={})[t.scaleField]=t.value,i),r=a.clone(e);return"time"===t.type&&a.isObject(e)&&!a.isFunction(r.exp)&&(r.exp=new Date(r.exp).getTime()),{labelData:n,con:r}}function u(t,e){if(!a.isFunction(e)){var i=e.name,n=e.exp;return!!t[i]&&(a.isFunction(n)?n(t[i]):t[i]===n)}return e(t)}i.default={active:o,selected:o,disable:function(t,e){n||s(t),a.each(n,(function(t,i){var n=l(t,e);if(u(n.labelData,n.con)){var a=r[i],o={opacity:.2*(a.opacity||1)};t.shape.attr(o)}}))}}},{"@antv/util":803}],407:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importDefault(t("@antv/event-emitter")),a=t("@antv/util"),o=function(t){function e(e){var i=t.call(this)||this;return i.container=e.container,i.destroyed=!1,i.config=e,i.disposables=[],i}return n.__extends(e,t),e.prototype.init=function(){this.group||this.initGroup(),this.initConfig(this.config)},e.prototype.getGroup=function(){return this.group},e.prototype.getConfig=function(){return this.config},e.prototype.getBBox=function(){return this.getGroup().getBBox()},e.prototype.clear=function(){this.group.clear()},e.prototype.render=function(){this.group.clear(),this.renderInner(this.group),this.getCanvas().draw()},e.prototype.update=function(t){this.config=n.__assign(n.__assign({},this.config),t),this.initConfig(this.config)},e.prototype.destroy=function(){a.each(this.disposables,(function(t){t()})),this.disposables=[],this.group.remove(!0),this.destroyed=!0},e.prototype.initGroup=function(){this.group=this.container.addGroup()},e.prototype.getCanvas=function(){return this.container.get("canvas")},e.prototype.addDisposable=function(t){this.disposables.push(t)},e.prototype.initConfig=function(t){},e}(r.default);i.default=o},{"@antv/event-emitter":94,"@antv/util":803,tslib:894}],408:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importDefault(t("./base")),a=t("../util/g-util"),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.listeners=[],e.onItemGroupToggleActive=function(t,i){return function(){var n=t.get("children").find((function(t){return"item-background"===t.get("class")}));n&&n.attr(i?e.itemActiveBackgroundStyle:e.itemBackgroundStyle),e.getCanvas().draw()}},e}return n.__extends(e,t),e.prototype.destroy=function(){this.offEvents(),t.prototype.destroy.call(this)},e.prototype.initConfig=function(t){this.x=t.x,this.y=t.y,this.items=t.items||[],this.itemPadding=t.itemPadding||[2,8,2,8],this.backgroundStyle=n.__assign({lineWidth:1,stroke:"#ffffff"},t.backgroundStyle||{}),this.itemBackgroundStyle=n.__assign({fill:"#fff"},t.itemBackgroundStyle||{}),this.itemActiveBackgroundStyle=n.__assign({fill:"#ccc",opacity:.2},t.itemActiveBackgroundStyle||{}),this.separator=t.separator||"/",this.separatorStyle=n.__assign({textBaseline:"top",fill:"#000000",opacity:.45},t.separatorStyle||{}),this.itemWidth=t.itemWidth,this.itemHeight=t.itemHeight,this.maxItemWidth=t.maxItemWidth,this.textStyle=n.__assign({textBaseline:"top",fill:"#000000",opacity:.45},t.textStyle||{})},e.prototype.renderInner=function(t){this.offEvents(),this.renderItems(t,0,0),a.move(this.group,this.x,this.y)},e.prototype.renderItems=function(t,e,i){var r,a=this,o=this.itemPadding,s=o[0],l=o[1],u=o[2],c=o[3],p=t.addShape("rect",{class:"breadcrumb-background",attrs:n.__assign({x:e,y:i,width:1,height:1},this.backgroundStyle)});this.items.forEach((function(o,p){var h=t.addGroup({id:"item-group-"+o.key,data:o,class:"item-group",attrs:{cursor:"pointer"}}),f=h.addShape("rect",{id:"item-background-"+o.key,class:"item-background",attrs:n.__assign(n.__assign({x:e,y:i,width:c+l,height:s+u},a.itemBackgroundStyle),{cursor:"pointer"})});f.name="breadcrumb";var d=h.addShape("text",{id:"item-text-"+o.key,class:"item-text",attrs:n.__assign(n.__assign({x:e+c,y:i+s,text:o.text},a.textStyle),{cursor:"pointer"})});d.name="breadcrumb";var g=d.getBBox();r=a.itemHeight||g.height;var v=a.itemWidth||g.width;a.maxItemWidth&&(v=Math.min(v,a.maxItemWidth));var y={x:e,y:i,width:v+c+l,height:r+s+u};if(f.attr("width",y.width),f.attr("height",y.height),h.setClip({type:"rect",attrs:y}),e+=y.width,p!==a.items.length-1){var m=t.addShape("text",{attrs:n.__assign({x:e,y:i+s,text:a.separator},a.separatorStyle),class:"separator"});e+=m.getBBox().width}})),p.attr({width:e,height:r+s+u})},e.prototype.bindEvents=function(t){var e=this,i=this.items,n=t.get("children").filter((function(t){return"item-group"===t.get("class")})),r=function(t,n,r){return function(){var t=n.get("data"),a=i.find((function(e){return e.key===t}));e.emit(r,{item:a})}};n.forEach((function(t){var i=r(0,t,"onItemClick"),n=r(0,t,"onItemDblclick"),a=e.onItemGroupToggleActive(t,!0),o=e.onItemGroupToggleActive(t,!1);t.on("click",i),t.on("dblclick",n),t.on("mouseenter",a),t.on("mouseleave",o),e.listeners.push({target:t,event:"click",callback:i}),e.listeners.push({target:t,event:"dblclick",callback:n}),e.listeners.push({target:t,event:"mouseenter",callback:a}),e.listeners.push({target:t,event:"mouseleave",callback:o})}))},e.prototype.offEvents=function(){this.listeners&&this.listeners.forEach((function(t){var e=t.target,i=t.event,n=t.callback;e.off(i,n)})),this.listeners=[]},e}(r.default);i.default=o},{"../util/g-util":679,"./base":407,tslib:894}],409:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("../base/controller/state");function a(t,e){var i=[],r=t.get("origin").points;return n.each(r,(function(t){i.push(e.convertPoint(t))})),i}var o=function(){function t(t){this.areas=[],this.lines=[],this._areaStyle={},this._lineStyle={},n.assign(this,t),this._init()}return t.prototype.draw=function(){var t=this,e=this._getGroupedShapes();n.each(e,(function(e,i){e.length>0&&t._drawConnection(e,i)})),this.triggerOn?this._addInteraction():this.animation&&this._initialAnimation()},t.prototype.clear=function(){this.container&&this.container.clear(),this.areas=[],this.lines=[]},t.prototype.destroy=function(){this.container&&this.container.remove()},t.prototype.setState=function(t,e){"active"===t&&this._onActive(e),"disabled"===t&&this._onDisabled(e),"selected"===t&&this._onSelected(e)},t.prototype._init=function(){var t=this,e=this.view.backgroundGroup;this.container=e.addGroup(),this.draw(),this.view.on("beforerender",(function(){t.clear()}))},t.prototype._getGroupedShapes=function(){var t=this,e=this.view.getScaleByField(this.field).values,i=this.view.geometries[0].getShapes(),r={};return n.each(e,(function(t){r[t]=[]})),n.each(i,(function(e){var i=e.get("origin").data[t.field];r[i].push(e)})),r},t.prototype._drawConnection=function(t,e){var i=t[0].attr("fill");this._areaStyle[e]=this._getShapeStyle(i,"area"),this._lineStyle[e]=this._getShapeStyle(i,"line");for(var r=this.view.geometries[0].coordinate,o=0;o<t.length-1;o++){var s=a(t[o],r),l=a(t[o+1],r),u=n.mix({},this._areaStyle[e]),c=n.mix({},this._lineStyle[e]);this.triggerOn&&(u.opacity=0,c.opacity=0);var p=this.container.addShape("path",{attrs:n.mix({},u,{path:[["M",s[2].x,s[2].y],["L",l[1].x,l[1].y],["L",l[0].x,l[0].y],["L",s[3].x,s[3].y]]}),name:"connectedArea"}),h=this.container.addShape("path",{attrs:n.mix({},c,{path:[["M",s[2].x,s[2].y],["L",l[1].x,l[1].y]]}),name:"connectedArea"}),f=t[o].get("origin").data;p.set("data",f),h.set("data",f),this.areas.push(p),this.lines.push(h)}},t.prototype._getShapeStyle=function(t,e){var i=e+"Style";if(this[i])return this[i];var r={areaStyle:{opacity:.2},lineStyle:{lineWidth:2,opacity:.1}}[i],a={fill:t};return"line"===e&&(a={stroke:t}),n.mix(r,a)},t.prototype._addInteraction=function(){var t=this,e=this.triggerOn;this.view.on("interval:"+e,(function(e){var i=e.target.get("origin").data[t.field];t.setState("active",{name:t.field,exp:i}),t.setState("disabled",{name:t.field,exp:function(t){return t!==i}}),t.view.canvas.draw()})),this.view.on("mousemove",(function(e){"interval"!==e.gEvent.target.get("name")&&t.setState("disabled",{name:t.field,exp:function(){return!0}})}))},t.prototype._initialAnimation=function(){var t=this.view.coordinateBBox,e=t.x,i=t.y,n=t.width,r=t.height;this.container.setClip({type:"rect",attrs:{x:e,y:i,width:0,height:r}}),this.container.set("animating",!0),this.container.getClip().animate({width:n},600,"easeQuadOut",(function(){}),400)},t.prototype._onActive=function(t){var e=this;n.each(this.areas,(function(i){var n=i.get("data"),a=n[e.field];if(r.compare(n,t)){var o=e._areaStyle[a].opacity||1;i.stopAnimate(),i.animate({opacity:o},400,"easeQuadOut")}})),n.each(this.lines,(function(i){var n=i.get("data"),a=n[e.field];if(r.compare(n,t)){var o=e._lineStyle[a].opacity||1;i.stopAnimate(),i.animate({opacity:o},400,"easeQuadOut")}}))},t.prototype._onDisabled=function(t){n.each(this.areas,(function(e){var i=e.get("data");r.compare(i,t)&&(e.stopAnimate(),e.animate({opacity:0},400,"easeQuadOut"))})),n.each(this.lines,(function(e){var i=e.get("data");r.compare(i,t)&&(e.stopAnimate(),e.animate({opacity:0},400,"easeQuadOut"))}))},t.prototype._onSelected=function(t){this._onActive(t)},t.prototype.getGeometry=function(){return n.find(this.view.geometries,(function(t){return"interval"===t.type}))},t}();i.default=o},{"../base/controller/state":390,"@antv/util":803}],410:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/g2/lib/animate"),a=t("@antv/util");function o(t,e){var i=[],n=t.get("origin").points;return a.each(n,(function(t){i.push(e.convertPoint(t))})),i}var s=function(){function t(t){a.deepMix(this,this.constructor.getDefaultOptions(t),t),this._init()}return t.getDefaultOptions=function(t){var e=t.transpose;return{visible:!0,size:e?32:80,spacing:e?8:12,offset:e?32:0,arrow:{visible:!0,headSize:12,style:{fill:"rgba(0, 0, 0, 0.05)"}},value:{visible:!0,style:{fontSize:12,fill:"rgba(0, 0, 0, 0.85)"},formatter:function(t,e){return(100*e/t).toFixed(2)+"%"}},animation:a.deepMix({},r.DEFAULT_ANIMATE_CFG)}},t.prototype._init=function(){var t=this,e=this.view.backgroundGroup;this.container=e.addGroup(),this.draw(),this.view.on("beforerender",(function(){t.clear()}))},t.prototype.draw=function(){var t,e,i,n,r=this,a=this.transpose,o=this.view.getScaleByField(this.field).values,s=this.view.geometries[0].getShapes();a?s.forEach((function(t,a){e=o[a],a++>0&&r._drawTag(i,n,t,e),n=e,i=t})):s.forEach((function(i,a){n=o[a],a++>0&&r._drawTag(i,n,t,e),e=n,t=i}))},t.prototype.clear=function(){this.container&&this.container.clear()},t.prototype.destroy=function(){this.container&&this.container.remove()},t.prototype._drawTag=function(t,e,i,n){var r=this.transpose,a=this.view.geometries[0].coordinate,s=o(t,a)[r?3:0],l=o(i,a)[r?0:3];this._drawTagArrow(s,l),this._drawTagValue(s,e,l,n)},t.prototype._drawTagArrow=function(t,e){var i,r=this.spacing,a=this.size,o=this.offset,s=this.animation,l=this.transpose,u=this.arrow.headSize,c=e.y-t.y,p=e.x-t.x;l?(p-u)/2<r?(r=Math.max(1,(p-u)/2),i=[[t.x+r,t.y-o],[t.x+r,t.y-o-a],[e.x-r,e.y-o-a/2]]):i=[[t.x+r,t.y-o],[t.x+r,t.y-o-a],[e.x-r-u,e.y-o-a],[e.x-r,e.y-o-a/2],[e.x-r-u,e.y-o]]:(c-u)/2<r?(r=Math.max(1,(c-u)/2),i=[[t.x+o,t.y+r],[t.x+o+a,t.y+r],[e.x+o+a/2,e.y-r]]):i=[[t.x+o,t.y+r],[t.x+o+a,t.y+r],[e.x+o+a,e.y-r-u],[e.x+o+a/2,e.y-r],[e.x+o,e.y-r-u]];var h=this.container.addShape("polygon",{name:"arrow",attrs:n.__assign(n.__assign({},this.arrow.style),{points:i})});!1!==s&&this._fadeInTagShape(h)},t.prototype._drawTagValue=function(t,e,i,r){var a=this.size,o=this.offset,s=this.animation,l=this.transpose,u=this.value.formatter(e,r),c=this.container.addShape("text",{name:"value",attrs:n.__assign(n.__assign({},this.value.style),{text:u,x:l?(t.x+i.x)/2:t.x+o+a/2,y:l?t.y-o-a/2:(t.y+i.y)/2,textAlign:"center",textBaseline:"middle"})});if(l){var p=i.x-t.x,h=c.getBBox().width;if(h>p){var f=h/u.length,d=Math.max(1,Math.ceil(p/f)-1),g=u.slice(0,d)+"...";c.attr("text",g)}}!1!==s&&this._fadeInTagShape(c)},t.prototype._fadeInTagShape=function(t){var e=this.animation,i=t.attr("opacity");t.attr("opacity",0);var n=a.get(e,"appear",r.DEFAULT_ANIMATE_CFG.appear).duration;t.animate({opacity:i},n)},t}();i.default=s},{"@antv/g2/lib/animate":217,"@antv/util":803,tslib:894}],411:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../util/common"),o=n.__importDefault(t("../util/bbox")),s=function(){function t(t){this.position="top",this.destroyed=!1,r.assign(this,t),this.init()}return t.prototype.getBBox=function(){var t=this;if(this.shape){var e=this.shape.getBBox();if(0===this.index)return o.default.fromBBoxObject(e);var i=this.plot.theme.description.padding;return r.isArray(i)&&r.each(i,(function(e,n){"function"==typeof i[n]&&(i[n]=i[n](t.plot.options.legend.position))})),new o.default(e.maxX,e.minY,e.width,e.height)}return null},t.prototype.clear=function(){this.shape&&this.shape.attr("text","")},t.prototype.destroy=function(){this.shape&&this.shape.remove(),this.destroyed=!0},t.prototype.init=function(){var t=this.textWrapper(),e=this.getPosition(),i=e.x,n=e.y;this.shape=this.container.addShape("text",{attrs:r.mix({x:i,y:n,text:t},this.style,{textAlign:this.getTextAlign()})}),this.shape.name=this.name},t.prototype.getPosition=function(){return"left"===this.alignTo?{x:this.leftMargin,y:this.topMargin}:"middle"===this.alignTo?{x:this.leftMargin+this.wrapperWidth/2,y:this.topMargin}:{x:this.rightMargin,y:this.topMargin}},t.prototype.getTextAlign=function(){return"left"===this.alignTo?"left":"middle"===this.alignTo?"center":"right"},t.prototype.textWrapper=function(){var t=this.wrapperWidth,e=this.style,i=this.text,r=this.container.addShape("text",{attrs:n.__assign({text:"",x:0,y:0},e)}),o=i.split("\n").map((function(e){for(var i="",n=e.split(""),o=[],s=0;s<n.length;s++){var l=n[s];if(r.attr("text",i+=l),r.getBBox().width-1>t){if(0===s)break;o.push(s),i=""}}return a.breakText(n,o)}));return r.remove(),o.join("\n")},t}();i.default=s},{"../util/bbox":672,"../util/common":674,"@antv/util":803,tslib:894}],412:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getComponentStateMethod=i.getComponent=void 0;var n=t("tslib"),r=n.__importDefault(t("./axis/parser")),a=n.__importDefault(t("./guide-line")),o=n.__importDefault(t("./label/parser")),s=n.__importDefault(t("./axis/state")),l=n.__importDefault(t("./label/state")),u=n.__importDefault(t("./tooltip/state")),c={axis:r.default,label:o.default,guideLine:a.default},p={tooltip:u.default,label:l.default,axis:s.default};i.getComponent=function(t,e){return new(0,c[t])(e).config},i.getComponentStateMethod=function(t,e){return p[t][e]}},{"./axis/parser":405,"./axis/state":406,"./guide-line":413,"./label/parser":415,"./label/state":418,"./tooltip/state":424,tslib:894}],413:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/scale"),r=t("@antv/util"),a=t("../util/math"),o=function(){function t(t){r.assign(this,t),this._init()}return t.prototype._init=function(){var t=this.plot.options,e=t.yField,i=t.data,n=this.plot.processData(i);if(!r.isEmpty(n)&&r.isNumber(n[0][e])){var a=this.getDefaultStyle(),o={type:"line",top:!0,start:this.cfg.start,end:this.cfg.end};if(o.style=r.deepMix({},a.line.style,this.cfg.lineStyle),o.text=r.deepMix({},a.text,this.cfg.text),this.cfg.type){var s=this._getState(this.cfg.type),l=100*(1-this.getYScale().scale(s))+"%",u=["0%",l],c=["100%",l];this.config=r.mix({start:u,end:c},o)}else{var p=this.cfg,h=p.start,f=p.end;this.config=r.clone(o);var d=this.getXScale(),g=this.getYScale(),v=r.clone(h),y=r.clone(f);r.each(h,(function(t,e){r.contains(r.toArray(h[e]),"%")&&!r.isNumber(h[e])||(v[e]=0===e?100*d.scale(h[0])+"%":100*(1-g.scale(h[1]))+"%")})),r.each(f,(function(t,e){r.contains(r.toArray(f[e]),"%")&&!r.isNumber(f[e])||(y[e]=0===e?100*d.scale(f[0])+"%":100*(1-g.scale(f[1]))+"%")})),this.config.start=v,this.config.end=y}}},t.prototype.getYScale=function(){var t=this._getState("min"),e=this._getState("max");return new(n.getScale("linear"))(r.mix({},{min:"column"===this.plot.type?0:t,max:e,nice:!0,values:this.values},this.plot.config.scales[this.plot.options.yField]))},t.prototype.getXScale=function(){var t=this.extractXValue();if(r.isString(t[0]))return new(n.getScale("cat"))(r.mix({},{values:t},this.plot.config.scales[this.plot.options.xField]));var e=Math.min.apply(Math,t),i=Math.max.apply(Math,t);return new(n.getScale("linear"))(r.mix({},{min:e,max:i,nice:!0,values:t},this.plot.config.scales[this.plot.options.xField]))},t.prototype._getState=function(t){return this.values=this._extractValues(),"median"===t?a.getMedian(this.values):"mean"===t?a.getMean(this.values):"max"===t?Math.max.apply(Math,this.values):"min"===t?Math.min.apply(Math,this.values):void 0},t.prototype._extractValues=function(){var t=this.plot.options,e=t.yField,i=[],n=this.plot.processData(t.data);return r.each(n,(function(t){r.isArray(t[e])?i.push.apply(i,t[e]):i.push(t[e])})),i},t.prototype.extractXValue=function(){var t=this.plot.options,e=t.xField,i=[],n=this.plot.processData(t.data);return r.each(n,(function(t){r.isArray(t[e])?i.push.apply(i,t[e]):i.push(t[e])})),i},t.prototype.getDefaultStyle=function(){return this.getDefaultTextAlign(),{line:{style:{lineWidth:2,stroke:"#333333",opacity:.7,lineDash:[0,0]}},text:{content:"",offsetY:-5,style:{fontSize:14,stroke:"white",lineWidth:2,textAlign:this.getDefaultTextAlign()}}}},t.prototype.getDefaultTextAlign=function(){var t=this.cfg.text;if(t){if(!t.position||"start"===t.position)return"left";if("center"===t.position)return"center";if("end"===t.position)return"right"}},t}();i.default=o},{"../util/math":680,"@antv/scale":747,"@antv/util":803}],414:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getLabelComponent=i.registerLabelComponent=void 0;var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../base")),o=t("../../dependents"),s=n.__importDefault(t("../../util/bbox")),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.labelsCfgMap={},e.lastLabelsCfgMap={},e}return n.__extends(e,t),e.prototype.getGeometry=function(){return this.geometry},e.prototype.getLabels=function(){return this.labels},e.prototype.show=function(){this.container.show()},e.prototype.hide=function(){this.container.hide()},e.prototype.initConfig=function(t){var e=this;this.layer=t.layer;var i=this.layer.view;this.view=i,this.geometry=t.geometry,this.coord=i.getCoordinate(),this.options=r.deepMix(this.getDefaultOptions(),t.label);var n=function(){e.clear(),e.labelsCfgMap={},e.lastLabelsCfgMap={},e.render()};i.on(o.VIEW_LIFE_CIRCLE.AFTER_PAINT,n),this.addDisposable((function(){i.off(o.VIEW_LIFE_CIRCLE.AFTER_PAINT,n)}))},e.prototype.renderInner=function(t){var e=this;this.labels=[],this.labelsCfgMap={},r.each(this.geometry.elements,(function(i,n){var a=[].concat(e.drawLabelItem(t,i,n));r.each(a,(function(t,n){e.adjustLabel(t,i,n),t.destroyed||(e.labels.push(t),e.labelsCfgMap[t.get("id")]=r.clone(t.attrs))}))})),this.layoutLabels(this.geometry,this.labels);var i=this.lastLabelsCfgMap,a=this.labelsCfgMap,s=!!this.geometry.animateOption&&o.getDefaultAnimateCfg("label",this.coord);r.each(a,(function(a,l){var u=t.findById(l);if(u)if(i[l]){var c=i[l],p=r.get(s,"update");p&&(u.stopAnimate(),u.attr(c),o.doAnimate(u,p,{toAttrs:n.__assign({},a),coordinate:e.coord}))}else{var h=r.get(s,"appear");h&&(u.stopAnimate(),o.doAnimate(u,h,{toAttrs:n.__assign({},u.attr()),coordinate:e.coord}))}delete i[l]})),r.each(i,(function(i,n){var a=r.get(s,"leave");if(a){var l=t.addShape("text",{attrs:i,id:n,name:"label"});l.stopAnimate(),o.doAnimate(l,a,{toAttrs:null,coordinate:e.coord})}})),this.lastLabelsCfgMap=this.labelsCfgMap},e.prototype.drawLabelText=function(t,e,i){return void 0===i&&(i={}),t.addShape("text",n.__assign({attrs:e},i))},e.prototype.drawLabelItem=function(t,e,i){var a=this,s=e.getModel(),l=[].concat(this.getLabelItemAttrs(e,i)),u=this.getDefaultOffset(),c=this.getLabelOffset();return r.map(l,(function(i,l){var p,h={x:i.x+c.x,y:i.y+c.y},f=r.isArray(s.mappingData)?s.mappingData[l]:s.mappingData,d=a.getLabelId(f);return a.drawLabelText(t,n.__assign(n.__assign({},i),h),((p={id:d,name:"label",offset:u,element:e})[o.ORIGIN]=f,p))}))},e.prototype.getDefaultOffset=function(){return Number(this.options.offset)},e.prototype.getLabelOffset=function(){var t=this.options,e=t.offsetX,i=t.offsetY;return{x:r.isNumber(e)?e:0,y:r.isNumber(i)?i:0}},e.prototype.getLabelOffsetByDimAndFactor=function(t,e){var i=this.options,n=i.offsetX,a=i.offsetY,o=this.getDefaultOffset(),s={x:0,y:0};return s[t]=o*e,r.isNumber(n)&&(s.x+=n),r.isNumber(a)&&(s.y+=a),s},e.prototype.getDefaultOptions=function(){return{}},e.prototype.layoutLabels=function(t,e){},e.prototype.getLabelId=function(t){var e=t._origin,i=this.geometry.type,n=this.geometry.getXScale(),r=this.geometry.getYScale(),a=this.geometry.getElementId(t);return"line"===i||"area"===i?a+=" "+e[n.field]:"path"===i&&(a+=" "+e[n.field]+"-"+e[r.field]),a},e.prototype.getCoordinateBBox=function(){var t=this.coord,e=t.start,i=t.end;return new s.default(Math.min(e.x,i.x),Math.min(e.y,i.y),t.getWidth(),t.getHeight())},e}(a.default);i.default=l;var u={};i.registerLabelComponent=function(t,e){u[t]=e},i.getLabelComponent=function(t){return u[t]}},{"../../dependents":425,"../../util/bbox":672,"../base":407,"@antv/util":803,tslib:894}],415:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../util/formatter"),o=function(){function t(t){this.config={};var e=t.plot,i=n.__rest(t,["plot"]);this.plot=e,this.originConfig=i,this.init(t)}return t.prototype.getConfig=function(){return this.config},t.prototype.init=function(t){var e=this;r.assign(this.config,t),this.config.callback=function(t){return e.parseCallBack(t)}},t.prototype.parseCallBack=function(t){var e=this.originConfig,i=this.plot.getPlotTheme(),a=n.__assign({},e);return this.parseOffset(e,a),e.position&&(r.isFunction(e.position)?a.position=e.position(t):a.position=e.position),this.parseFormatter(a),e.style&&(r.isFunction(e.style)?a.textStyle=e.style(t):a.textStyle=e.style),a.textStyle=r.deepMix({},r.get(i,"label.style"),a.textStyle),e.autoRotate&&(a.autoRotate=e.autoRotate),a},t.prototype.parseOffset=function(t,e){var i=0;r.each(["offset","offsetX","offsetY"],(function(n){r.has(t,n)&&(e[n]=t[n],i++)})),0===i&&"middle"===r.get(t,"position")&&(e.offset=0)},t.prototype.parseFormatter=function(t){var e=this.originConfig;t.content=function(t,i){var n=t[e.fields[0]];return a.combineFormatter(a.getNoopFormatter(),a.getPrecisionFormatter(e.precision),a.getSuffixFormatter(e.suffix),e.formatter?e.formatter:a.getNoopFormatter())(n,t,i)}},t}();i.default=o},{"../../util/formatter":678,"@antv/util":803,tslib:894}],416:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("./base"),o=n.__importDefault(t("./point")),s=t("../../dependents"),l=t("../../util/view"),u=n.__importDefault(t("../../util/bbox")),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.layoutLabels=function(t,e){var i,n=this,a=[],o=u.default.fromBBoxObject(this.getCoordinateBBox()),c=t.getXYFields(),p=c[0],h=c[1],f=r.groupBy(e,(function(t){return t.get(s.ORIGIN)[s.FIELD_ORIGIN][p]})),d=null===(i=e[0])||void 0===i?void 0:i.get("offset");r.each(r.keys(f).reverse(),(function(e){for(var i=n.sortLabels(t,f[e]);i.length;){var r=i.shift();if(l.checkOriginEqual(r,a,(function(t,e){return t._origin[p]===e._origin[p]&&t._origin[h]===e._origin[h]})))r.set("visible",!1);else{l.moveInPanel(r,o);var s=void 0;l.checkShapeOverlap(r,a)&&(r.attr("y",r.attr("y")+2*d),l.moveInPanel(r,o),s=l.checkShapeOverlap(r,a)),s?r.set("visible",!1):a.push(r)}}}))},e.prototype.sortLabels=function(t,e){var i=t.getXYFields()[1],n=[];return e.sort((function(t,e){return e.get(s.ORIGIN)[s.FIELD_ORIGIN][i]-t.get(s.ORIGIN)[s.FIELD_ORIGIN][i]})),e.length>0&&n.push(e.shift()),e.length>0&&n.push(e.pop()),n.push.apply(n,e),n},e}(o.default);i.default=c,a.registerLabelComponent("point-auto",c)},{"../../dependents":425,"../../util/bbox":672,"../../util/view":715,"./base":414,"./point":417,"@antv/util":803,tslib:894}],417:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../dependents"),o=n.__importStar(t("../../components/label/base")),s=t("../../util/common"),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getDefaultOptions=function(){var t=this.layer.theme.label,e=void 0===t?{}:t;return n.__assign({offsetX:0,offsetY:0},e)},e.prototype.getLabelOffset=function(){return this.getLabelOffsetByDimAndFactor("y",-1)},e.prototype.getLabelItemAttrs=function(t,e){var i=this,o=this.options,s=o.style,l=o.formatter,u=r.get(t,"model.mappingData",[]);return r.map(u,(function(r,o){var u,c=i.getValue(r);return n.__assign(n.__assign(n.__assign({},i.getPosition(r)),{text:l?l(c,(u={},u[a._ORIGIN]=r._origin,u.mappingDatum=r,u.mappingDatumIndex=o,u.element=t,u.elementIndex=e,u),e):c,textAlign:"center",textBaseline:"middle"}),s)}))},e.prototype.getValue=function(t){return r.get(t._origin,this.layer.options.yField)},e.prototype.getPosition=function(t){return{x:r.isArray(t.x)?r.last(t.x):t.x,y:r.isArray(t.y)?r.last(t.y):t.y}},e.prototype.layoutLabels=function(t,e){var i=this;if(this.options.adjustPosition){var n=this.isOverlapped(e);if(n){var a=this.getGlobalTolerance(e);r.each(e,(function(t,n){n>1&&i.labelResamplingByChange(t,e,n,a)}))}(n=this.isOverlapped(e))&&r.each(e,(function(t,n){t.get("visible")&&i.clearOverlapping(t,e,n)}))}},e.prototype.adjustLabel=function(){},e.prototype.labelResamplingByChange=function(t,e,i,n){var r=this.findPrevious(i,e),a=this.getCenter(t),o=this.getCenter(r),s=o.x-a.x,l=o.y-a.y;Math.sqrt(s*s+l*l)<n&&t.set("visible",!1)},e.prototype.clearOverlapping=function(t,e,i){for(var n=[],a=0;a<e.length;a++){var o=e[a];if(a!==i&&o.get("visible"))s.isBBoxIntersect(t.getBBox(),o.getBBox())&&n.push(o)}n.length>0&&(n.push(t),n.sort((function(t,e){return e.minY-t.minY})),r.each(n,(function(t,e){e>0&&t.set("visible",!1)})))},e.prototype.isOverlapped=function(t){for(var e=0;e<t.length;e++)if(t[e].get("visible"))for(var i=t[e].getBBox(),n=0;n<t.length;n++)if(n!==e&&t[n].get("visible")){var r=t[n].getBBox();if(s.isBBoxIntersect(i,r))return!0}return!1},e.prototype.getGlobalTolerance=function(t){var e=t.slice();return e.sort((function(t,e){return e.getBBox().width-t.getBBox().width})),Math.round(e[0].getBBox().width)},e.prototype.findPrevious=function(t,e){for(var i=t-1;i>0;i--)if(e[i].get("visible"))return e[i]},e.prototype.getCenter=function(t){var e=t.getBBox(),i=e.minX,n=e.maxX,r=e.minY;return{x:i+(n-i)/2,y:r+(e.maxY-r)/2}},e}(o.default);i.default=l,o.registerLabelComponent("point",l)},{"../../components/label/base":414,"../../dependents":425,"../../util/common":674,"@antv/util":803,tslib:894}],418:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n,r,a=t("@antv/util"),o=t("../../base/controller/state");function s(t,e){n||l(t),a.each(n,(function(t,i){var n=t.get("origin");if(o.compare(n,e)){var s=r[i],l=a.mix({},s,{opacity:1});t.attr(l)}}))}function l(t){n=[],r=[];var e=t.view.get("elements");a.each(e,(function(t){var e=t.get("labels");e&&a.each(e,(function(t){n.push(t),r.push(t.attr())}))}))}i.default={active:s,selected:s,disable:function(t,e){n||l(t),a.each(n,(function(t,i){var n=t.get("origin");if(o.compare(n,e)){var a=r[i],s={opacity:.2*(a.opacity||1)};t.attr(s)}}))}}},{"../../base/controller/state":390,"@antv/util":803}],419:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../dependents"),a=t("@antv/util"),o=t("@antv/g2/lib/animate"),s={stroke:"transparent",fill:"#FCC509",lineWidth:0},l={stroke:"#FFF",fill:"#FCC509",lineWidth:1},u={stroke:"rgba(0,0,0,0.85)",fill:"#FCC509",lineWidth:1},c=function(){function t(t){this.points=[],this.labels=[],this.name="markerPoints",this.defaultCfg={offsetX:0,offsetY:0,style:{normal:s,selected:u,active:l},label:{visible:!1,offsetY:-8,position:"top",style:{fill:"rgba(0, 0, 0, 0.85)"}},animation:!1},this.view=t.view,this.size=t.size||6,this.config=a.deepMix({},this.defaultCfg,t),this._init()}return t.prototype.render=function(){var t=this.getDataArray();this._renderPoints(t),this.view.canvas.draw(),this._addInteraction()},t.prototype.clear=function(){this.container&&this.container.clear()},t.prototype.destroy=function(){this.container&&this.container.remove(),this.points=[],this.labels=[]},t.prototype.getDataArray=function(){return this.view.geometries[0].dataArray},t.prototype._init=function(){var t=this,e=this.view.foregroundGroup;this.container=e.addGroup(),this.render(),this.view.on("beforerender",(function(){t.clear()}))},t.prototype._renderPoints=function(t){var e=this;a.each(this.config.data,(function(i,o){a.each(t,(function(t){var s=a.find(t,(function(t){return a.isMatch(t._origin,i)}));if(s){var l=e.config.style.normal,u=e.container.addGroup({name:e.name}),c=s.x,p=s.y;a.isArray(c)&&(c=c[0]),a.isArray(p)&&(p=p[0]);var h=e.config.symbol,f=e.config,d=f.offsetX,g=f.offsetY,v=void 0;if(a.isString(h)&&h.startsWith("image://")){var y=h.substr(8);v=u.addShape("image",{attrs:{x:c-e.size/2+d,y:p-e.size/2+g,img:y,width:e.size,height:e.size}})}else h=a.isString(h)?r.MarkerSymbols[h]:h,v=u.addShape({type:"marker",name:"marker-point",id:"point-"+o,attrs:n.__assign(n.__assign({x:c+d,y:p+g,r:e.size/2},l),{symbol:h})});e.points.push(v),e._animatePoint(v),e._renderLabel(u,s,o),u.set("data",i),u.set("origin",s)}}))}))},t.prototype._renderLabel=function(t,e,i){var r=this.config.label;if(r&&r.visible){var o=r.offsetX,s=void 0===o?0:o,l=r.offsetY,u=void 0===l?0:l,c=r.formatter,p=r.position,h=r.field,f=e._origin[h];c&&(f=c(f,{_origin:e._origin},i));var d=a.isArray(e.x)?e.x[0]:e.x,g=a.isArray(e.y)?e.y[0]:e.y,v=t.addShape("text",{name:"marker-label",id:"label-"+i,attrs:n.__assign(n.__assign({x:d+s,y:g+u,text:f||""},r.style),{textAlign:"center",textBaseline:"top"===p?"bottom":"top"})});this.labels.push(v)}},t.prototype._addInteraction=function(){var t=this,e=this.config.events;a.each(e,(function(e,i){t.container.on(t.name+":"+i,(function(n){e(n);var r=n.target.get("parent").get("children")[0];if(r){var a=r.get("data"),o=r.get("id"),s={id:o,data:a};"click"===i?t.selectedPoint&&t.selectedPoint.get("id")===o?(t.selectedPoint=null,t.setState("inactive",s)):(t.selectedPoint=r,t.setState("selected",s)):"mouseenter"===i?t.setState("active",s):"mouseleave"===i&&t.setState("inactive",s)}t.view.canvas.draw()})),t.view.on("click",(function(e){var i=e.target.get("parent");(!i||i.get("name")!==t.name&&t.selectedPoint)&&(t.selectedPoint=null,t.setState("inactive"))}))}))},t.prototype.setState=function(t,e){var i=this;"active"===t?this.selectedPoint&&e.id===this.selectedPoint.get("id")||this._onActive(e):"inactive"===t?this.points.forEach((function(t){return i._onInactive(t)})):"selected"===t&&this._onSelected(e)},t.prototype._onActive=function(t){var e=this,i=this.config.style.active;a.each(this.points,(function(n){n.get("id")===t.id?a.each(i,(function(t,e){n.attr(e,t)})):e._onInactive(n)}))},t.prototype._onInactive=function(t){var e=this.config.style.normal;this.selectedPoint&&t.get("id")===this.selectedPoint.get("id")||a.each(e,(function(e,i){t.attr(i,e)}))},t.prototype._onSelected=function(t){var e=this,i=this.config.style.selected;a.each(this.points,(function(n){n.get("id")===t.id?a.each(i,(function(t,e){n.attr(e,t)})):e._onInactive(n)}))},t.prototype._animatePoint=function(t){var e=this.config,i=e.animation,r=e.size;if(!1!==i){var a=i,s=a.endState,l=void 0===s?{}:s,u=a.animateCfg,c=void 0===u?o.DEFAULT_ANIMATE_CFG.appear:u;t.animate(n.__assign({r:Number.isNaN(l.size/2)?r/2:l.size/2},l),c)}},t}();i.default=c},{"../dependents":425,"@antv/g2/lib/animate":217,"@antv/util":803,tslib:894}],420:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("@antv/dom-util"),a=function(){function t(t){var e=this.getDefaultOptions();this.options=n.deepMix(e,t,{}),this.x=this.options.x,this.y=this.options.y,this.html=this.options.html,this.container=this.options.container}return t.prototype.render=function(){if(n.isElement(this.container)){this.wrapperNode=r.createDom('<div class="g2plot-htmlStatistic"></div>'),this.container.appendChild(this.wrapperNode),r.modifyCSS(this.wrapperNode,{position:"absolute",pointerEvents:"none"});var t=this.html;this.wrapperNode.appendChild(t),this.setDomPosition(this.x,this.y)}},t.prototype.updateHtml=function(t){n.isType(t,"HTMLDivElement")?(this.wrapperNode.innerHTML="",this.wrapperNode.appendChild(t)):this.wrapperNode.innerHTML=t,this.setDomPosition(this.x,this.y)},t.prototype.updatePosition=function(t,e){this.x=t,this.y=e,this.setDomPosition(t,e)},t.prototype.destroy=function(){this.container.removeChild(this.wrapperNode)},t.prototype.getDefaultOptions=function(){return{x:0,y:0,width:0,height:0,html:"",container:null,alignX:"middle",alignY:"middle"}},t.prototype.setDomPosition=function(t,e){var i=t,n=e,a=r.getOuterWidth(this.wrapperNode),o=r.getOuterHeight(this.wrapperNode);"middle"===this.options.alignX&&(i=t-a/2),"middle"===this.options.alignY&&(n=e-o/2),r.modifyCSS(this.wrapperNode,{top:Math.round(n)+"px",left:Math.round(i)+"px",transform:a>0?"none":"translate(-50%, -50%)"})},t}();i.default=a},{"@antv/dom-util":92,"@antv/util":803}],421:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(e){return t.call(this,r.deepMix({},e))||this}return n.__extends(e,t),e.prototype.renderInner=function(t){var e=this;this.initElement(t),this.updateElement(),this.renderMarker(),t.off("click"),t.on("click",(function(){e.emit("click")}))},e.prototype.destroy=function(){this.group.off(),t.prototype.destroy.call(this)},e.prototype.initElement=function(t){this.circle=t.addShape("circle",{attrs:{x:this.config.x,y:this.config.y,r:this.config.r,fill:"#607889"}}),this.startMarker=t.addShape("path",{attrs:{path:this.getStartMarkerPath(),fill:"#ffffff"}}),this.pauseGroupMarker=t.addGroup();var e=1/4*this.config.r,i=.5*this.config.r*Math.sqrt(3);this.pauseLeftMarker=this.pauseGroupMarker.addShape("rect",{attrs:{x:this.config.x-.375*this.config.r,y:this.config.y-i/2,width:e,height:i,fill:"#ffffff"}}),this.pauseRightMarker=this.pauseGroupMarker.addShape("rect",{attrs:{x:this.config.x+1/8*this.config.r,y:this.config.y-i/2,width:e,height:i,fill:"#ffffff"}})},e.prototype.updateElement=function(){this.circle.attr("x",this.config.x),this.circle.attr("y",this.config.y),this.circle.attr("r",this.config.r),this.startMarker.attr("path",this.getStartMarkerPath());var t=1/4*this.config.r,e=.5*this.config.r*Math.sqrt(3);this.pauseLeftMarker.attr("x",this.config.x-.375*this.config.r),this.pauseLeftMarker.attr("y",this.config.y-e/2),this.pauseLeftMarker.attr("width",t),this.pauseLeftMarker.attr("height",e),this.pauseRightMarker.attr("x",this.config.x+1/8*this.config.r),this.pauseRightMarker.attr("y",this.config.y-e/2),this.pauseRightMarker.attr("width",t),this.pauseRightMarker.attr("height",e)},e.prototype.renderMarker=function(){this.config.isPlay?(this.startMarker.hide(),this.pauseGroupMarker.show()):(this.startMarker.show(),this.pauseGroupMarker.hide())},e.prototype.getStartMarkerPath=function(){var t=.5*this.config.r*Math.sqrt(3);return[["M",this.config.x-t/Math.sqrt(3)/2,this.config.y-t/2],["L",this.config.x+t/Math.sqrt(3),this.config.y],["L",this.config.x-t/Math.sqrt(3)/2,this.config.y+t/2]]},e}(n.__importDefault(t("../base")).default);i.default=a},{"../base":407,"@antv/util":803,tslib:894}],422:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("./button")),o=n.__importDefault(t("../base")),s=function(t){function e(e){var i=t.call(this,r.deepMix({},{speed:1,loop:!1},e))||this;return i.onTimeSelectMouseMove=function(t){t.stopPropagation(),t.preventDefault();var e=r.get(t,"touches.0.pageX",t.pageX),n=e-i.prevX;i.setTimeSelectX(n),i.prevX=e},i.onTimeSelectMouseUp=function(){i.syncCurrnentTick(),i.emit("timelineend",null);var t=i.getCanvas().get("container");t&&(t.removeEventListener("mousemove",i.onTimeSelectMouseMove),t.removeEventListener("mouseup",i.onTimeSelectMouseUp),t.removeEventListener("mouseleave",i.onTimeSelectMouseUp),t.removeEventListener("touchmove",i.onTimeSelectMouseMove),t.removeEventListener("touchend",i.onTimeSelectMouseUp),t.removeEventListener("touchcancel",i.onTimeSelectMouseUp))},i.onTimeSelectMouseDown=function(t){var e=t.originalEvent;e.stopPropagation(),e.preventDefault(),!1===i.isPlay?i.emit("timelinestart",null):(i.isPlay=!1,i.changePlayStatus(!1)),i.prevX=r.get(e,"touches.0.pageX",e.pageX);var n=i.getCanvas().get("container");n.addEventListener("mousemove",i.onTimeSelectMouseMove),n.addEventListener("mouseup",i.onTimeSelectMouseUp),n.addEventListener("mouseleave",i.onTimeSelectMouseUp),n.addEventListener("touchmove",i.onTimeSelectMouseMove),n.addEventListener("touchend",i.onTimeSelectMouseUp),n.addEventListener("touchcancel",i.onTimeSelectMouseUp)},i}return n.__extends(e,t),e.prototype.renderInner=function(t){var e=this.config,i=e.ticks,n=e.defaultCurrentTick;i&&i.length&&(this.currentTick=this.config.ticks.includes(n)?n:i[0],this.renderPlayButton(t),this.renderTimeLine(t),this.renderTimeSelect(t,this.currentTick),this.initEvent())},e.prototype.update=function(e){t.prototype.update.call(this,e),this.emit("timelineupdate",this.currentTick)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.timeLineButton.destroy(),this.timeLineButton.off(),this.timeSelect.off(),this.playHandler&&window.cancelAnimationFrame(this.playHandler)},e.prototype.renderPlayButton=function(t){var e=this.config,i=e.height,n=e.x,r=e.y,o=i/2*.8;this.timeLineButton?this.timeLineButton.update({x:n+o,y:r+o+i*(1-.8)/2,r:o}):(this.timeLineButton=new a.default({container:t,x:n+o,y:r+o+i*(1-.8)/2,r:o,isPlay:this.isPlay}),this.timeLineButton.init()),this.timeLineButton.render()},e.prototype.getTimeLinePath=function(){var t=this.timeLine,e=t.x,i=t.y,n=t.width,r=t.height,a=r/2;return n>0?"M"+e+", "+i+"A"+a+","+a+" 90 0,0 "+e+","+(i+r)+"L"+(e+n)+", "+(i+r)+"A"+a+","+a+" 90 0,0 "+(e+n)+","+i+"L"+e+", "+i:[]},e.prototype.renderTimeLine=function(t){var e=this,i=this.config,n=i.width,r=i.height,a=i.ticks,o=i.x,s=i.y;this.timeLine||(this.timeLine={}),this.timeLine.height=.15*r,this.timeLine.x=o+r+20,this.timeLine.y=s+(r/2-this.timeLine.height/2),this.timeLine.width=n-this.timeLine.x-20,this.timeLine&&this.timeLine.shape?this.timeLine.shape.attr("path",this.getTimeLinePath()):this.timeLine.shape=t.addShape("path",{attrs:{path:this.getTimeLinePath(),fill:"#607889",opacity:.2}});var l=this.timeLine.width/(a.length-1);this.tickPosList=[],this.timeLine.textList&&this.timeLine.textList.length&&this.timeLine.textList.forEach((function(t){t.destroy()}));var u=-1/0;this.timeLine.textList=a.map((function(i,n){e.tickPosList.push(e.timeLine.x+n*l);var r=t.addShape("text",{attrs:{x:e.timeLine.x+n*l,y:e.timeLine.y+e.timeLine.height+5,text:i,textAlign:"center",textBaseline:"top",fill:"#607889",opacity:.35}}),a=r.getBBox();return a.minX>u?(r.show(),u=a.minX+a.width+10):r.hide(),r}))},e.prototype.renderTimeSelect=function(t,e){var i=this.config,n=i.ticks,a=i.height,o=this.timeLine.width/(n.length-1),s=r.findIndex(n,(function(t){return t===e})),l=this.timeLine.x+s*o,u=this.config.y+a/2,c=.15*a;this.timeSelect?(this.timeSelect.attr("x",l),this.timeSelect.attr("y",u),this.timeSelect.attr("r",c)):this.timeSelect=t.addShape("circle",{attrs:{x:l,y:u,r:c,fill:"#607889"}}),this.timeSelectText?(this.timeSelectText.attr("x",l),this.timeSelectText.attr("y",u-.15*a-14),this.timeSelectText.attr("text",this.currentTick)):this.timeSelectText=t.addShape("text",{attrs:{x:l,y:u-.15*a-14,text:this.currentTick,textAlign:"center",textBaseline:"top",fill:"#607889"}})},e.prototype.adjustTickIndex=function(t){for(var e=0;e<this.tickPosList.length-1;e++)if(this.tickPosList[e]<=t&&t<=this.tickPosList[e+1])return Math.abs(this.tickPosList[e]-t)<Math.abs(t-this.tickPosList[e+1])?e:e+1},e.prototype.setTimeSelectX=function(t){var e=this.timeSelect.attr("x")+t;e<this.timeLine.x&&(e=this.timeLine.x),e>this.timeLine.x+this.timeLine.width&&(e=this.timeLine.x+this.timeLine.width,this.isPlay&&(this.config.loop?this.timeSelect.attr("x")===this.timeLine.x+this.timeLine.width&&(e=this.timeLine.x):(this.isPlay=!1,this.changePlayStatus()))),this.timeSelect.attr("x",e),this.timeSelectText.attr("x",e);var i=this.adjustTickIndex(e);this.currentTick!==this.config.ticks[i]&&(this.currentTick=this.config.ticks[i],this.timeSelectText.attr("text",this.currentTick),this.emit("timelinechange",this.currentTick)),this.getCanvas().draw()},e.prototype.syncCurrnentTick=function(){var t=this,e=this.config.ticks,i=this.timeLine.width/(e.length-1),n=r.findIndex(e,(function(e){return e===t.currentTick})),a=this.timeLine.x+n*i;this.timeSelect.attr("x",a),this.timeSelectText.attr("x",a),this.getCanvas().draw()},e.prototype.startPlay=function(){var t=this;return window.requestAnimationFrame((function(){var e=t.config,i=e.speed,n=e.ticks,r=t.timeLine.width/n.length/(1e3*i/60);t.setTimeSelectX(r),t.isPlay&&(t.playHandler=t.startPlay())}))},e.prototype.changePlayStatus=function(t){void 0===t&&(t=!0),this.timeLineButton.update({isPlay:this.isPlay}),this.isPlay?(this.playHandler=this.startPlay(),this.emit("timelinestart",null)):this.playHandler&&(window.cancelAnimationFrame(this.playHandler),t&&(this.syncCurrnentTick(),this.emit("timelineend",null))),this.getCanvas().draw()},e.prototype.initEvent=function(){var t=this;this.timeLineButton.off("click"),this.timeLineButton.on("click",(function(){t.isPlay=!t.isPlay,t.changePlayStatus()})),this.timeSelect.off("mousedown"),this.timeSelect.on("mousedown",(function(e){t.onTimeSelectMouseDown(e)}))},e}(o.default);i.default=s},{"../base":407,"./button":421,"@antv/util":803,tslib:894}],423:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.EVENTS=i.ELEMENT_NAMES=void 0;var n,r,a,o=t("tslib"),s=t("@antv/util"),l=o.__importDefault(t("./base")),u=t("../dependents"),c=t("../util/g-util"),p=t("../util/text"),h=o.__importDefault(t("../util/bbox"));!function(t){t.TOOLTIP_INDICATOR_INNER="tooltip_indicator-inner",t.TOOLTIP_INDICATOR_TITLE="tooltip_indicator-title",t.TOOLTIP_INDICATOR_BODY="tooltip_indicator-body",t.TOOLTIP_INDICATOR_ITEM_GROUP="tooltip_indicator-item-group",t.TOOLTIP_INDICATOR_ITEM_BACKGROUND="tooltip_indicator-item-background",t.TOOLTIP_INDICATOR_ITEM_LINE="tooltip_indicator-item-line",t.TOOLTIP_INDICATOR_ITEM_TITLE="tooltip_indicator-item-title",t.TOOLTIP_INDICATOR_ITEM_BODY="tooltip_indicator-item-body",t.TOOLTIP_INDICATOR_ITEM_VALUE_GROUP="tooltip_indicator-item-value-group",t.TOOLTIP_INDICATOR_ITEM_NAME="tooltip_indicator-item-name",t.TOOLTIP_INDICATOR_ITEM_VALUE="tooltip_indicator-item-value"}(n=i.ELEMENT_NAMES||(i.ELEMENT_NAMES={})),function(t){t.ON_SELECT_ITEM="onSelectItem"}(r=i.EVENTS||(i.EVENTS={})),function(t){t[t.LARGE=12]="LARGE",t[t.NORMAL=8]="NORMAL",t[t.SMALL=4]="SMALL"}(a||(a={}));var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.curX=0,e.curY=0,e.offsetX=0,e.scrollWidth=0,e.onBodyGroupMousemove=function(t){var i=d(t.target,(function(t){return t.get("name")===n.TOOLTIP_INDICATOR_ITEM_GROUP}));if(i){var r=i.get("delegateObject");e.doSelectItem(r.item.id)}},e.onWheel=function(t){var i=e.config.width,n=void 0===i?0:i,r=t.deltaX,a=Math.min(e.scrollWidth-n,0)-(e.scrollWidth/2+Math.max(0,(e.scrollWidth-n)/2)),o=Math.max(e.scrollWidth-n,0)+e.scrollWidth/2+Math.max(0,(e.scrollWidth-n)/2),l=s.clamp(e.offsetX+r,a,o);l!==e.offsetX&&(c.translate(e.bodyGroup,e.offsetX-l,0),e.offsetX=l)},e}return o.__extends(e,t),e.prototype.destroy=function(){this.offEvents(),t.prototype.destroy.call(this)},e.prototype.selectItem=function(t){this.doSelectItem(t)},e.prototype.resetSelect=function(){this.doSelectItem(this.selectedItemId)},e.prototype.initConfig=function(t){var e,i=t.theme,n=void 0===i?{}:i,r={x:0,y:0,title:{text:"",spacingY:a.NORMAL,style:{}},line:{spacingX:a.SMALL,width:2,style:{}},itemTitle:{spacingX:0,spacingY:a.SMALL,style:{}},itemName:{spacingX:a.NORMAL,spacingY:a.SMALL,style:{}},itemValue:{style:{}},itemBackground:{style:{opacity:0,fill:"#000"}},itemSpacing:a.LARGE};this.config=s.deepMix({},null===(e=null==n?void 0:n.components)||void 0===e?void 0:e.tooltipIndicator,r,t),this.selectedItemId=this.config.selectedItem},e.prototype.renderInner=function(t){var e=this;this.resetRender();var i=this.config,r=i.items,a=i.x,o=i.y,s=[],l=t.addGroup({name:n.TOOLTIP_INDICATOR_INNER});this.renderTitle(l),this.bodyGroup=l.addGroup({name:n.TOOLTIP_INDICATOR_BODY}),null==r||r.forEach((function(t,i){s.push(e.renderItem(e.bodyGroup,t,i))})),this.layoutItems(l),c.move(l,a,o),this.applyClip(t),this.bindEvents(l)},e.prototype.renderTitle=function(t){var e=this.config.title;if(null==e?void 0:e.text){var i=t.addShape({type:"text",name:n.TOOLTIP_INDICATOR_TITLE,attrs:o.__assign({text:null==e?void 0:e.text,textAlign:"left",textBaseline:"top"},(null==e?void 0:e.style)||{})}),r=i.getBBox();return this.curY+=r.height,this.curY+=e.spacingY||0,i}},e.prototype.renderItem=function(t,e,i){var r=this.config.itemBackground,a=t.addGroup({name:n.TOOLTIP_INDICATOR_ITEM_GROUP,delegateObject:{item:e,index:i}}),s=this.curX,l=this.curY,u=a.addShape({name:n.TOOLTIP_INDICATOR_ITEM_BACKGROUND,type:"rect",attrs:o.__assign({x:this.curX,y:this.curY,width:1,height:1},r.style||{})}),c=this.renderLine(a,e);this.renderItemTitle(a,e),this.renderItemValues(a,e);var p=a.getBBox();return c.attr({y2:c.attr("y1")+p.height}),this.curX=s+p.width,this.curX+=this.config.itemSpacing||0,u.attr({width:this.curX-s-2*u.attr("lineWidth"),height:this.curY-l-2*u.attr("lineWidth")}),this.curY=l,a},e.prototype.renderLine=function(t,e){var i=this.config.line,r=i.width||2,a=o.__assign({x1:this.curX+r/2,y1:this.curY,x2:this.curX+r/2,y2:this.curY,lineWidth:r,stroke:e.color},(null==i?void 0:i.style)||{}),s=t.addShape({name:n.TOOLTIP_INDICATOR_ITEM_LINE,type:"line",attrs:a}),l=s.getBBox();return this.curX+=l.width,this.curX+=i.spacingX||0,s},e.prototype.renderItemTitle=function(t,e){var i=this.config.itemTitle,r=p.getEllipsisText(e.title,160,i.style||{}),a=t.addShape({name:n.TOOLTIP_INDICATOR_ITEM_TITLE,type:"text",attrs:o.__assign({x:this.curX,y:this.curY,textAlign:"left",textBaseline:"top",text:r},i.style||{})}),s=a.getBBox();return this.curY+=s.height,this.curY+=i.spacingY||0,a},e.prototype.renderItemValues=function(t,e){var i,r=this,a=t.addGroup({name:n.TOOLTIP_INDICATOR_ITEM_BODY}),o=this.curX;return null===(i=e.values)||void 0===i||i.forEach((function(t,i){var s=a.addGroup({name:n.TOOLTIP_INDICATOR_ITEM_VALUE_GROUP,delegateObject:{item:e,valueIndex:i}});r.curX=o,r.renderItemValueName(s,t),r.renderItemValueValue(s,t)})),this.layoutItemValues(a),a},e.prototype.renderItemValueName=function(t,e){var i=this.config.itemName;if(e.name){var r=t.addShape({name:n.TOOLTIP_INDICATOR_ITEM_NAME,type:"text",attrs:o.__assign({x:this.curX,y:this.curY,textAlign:"left",textBaseline:"top",text:e.name},i.style||{})}),a=r.getBBox();return e.wrapLine?(this.curY+=a.height,this.curY+=i.spacingY||0):(this.curX+=a.width,this.curX+=i.spacingX||0),r}},e.prototype.renderItemValueValue=function(t,e){var i=this.config,r=i.itemName,a=i.itemValue,s=t.addShape({name:n.TOOLTIP_INDICATOR_ITEM_VALUE,type:"text",attrs:o.__assign({x:this.curX,y:this.curY,textAlign:"left",textBaseline:"top",text:e.value},a.style||{})}),l=s.getBBox();return this.curY+=l.height,this.curY+=r.spacingY||0,s},e.prototype.layoutItems=function(t){var e=t.findAllByName(n.TOOLTIP_INDICATOR_BODY)[0],i=t.findAllByName(n.TOOLTIP_INDICATOR_ITEM_GROUP);if(e&&0!==i.length){var r=e.getBBox();this.scrollWidth=r.width}},e.prototype.layoutItemValues=function(t){var e=t.findAllByName(n.TOOLTIP_INDICATOR_ITEM_VALUE_GROUP),i=e.map((function(t){return h.default.fromBBoxObject(t.getBBox())})),r=t.findAllByName(n.TOOLTIP_INDICATOR_ITEM_VALUE).map((function(t){return h.default.fromBBoxObject(t.getBBox())})),a=Math.max.apply(Math,r.map((function(t){return t.maxX})));e.forEach((function(t,e){var r=i[e],o=t.findAllByName(n.TOOLTIP_INDICATOR_ITEM_NAME)[0],s=t.findAllByName(n.TOOLTIP_INDICATOR_ITEM_VALUE)[0];if(o&&s){var l=h.default.fromBBoxObject(o.getBBox()),u=h.default.fromBBoxObject(s.getBBox());l.height<r.height&&o.attr("y",o.attr("y")+(r.height-l.height)/2),u.height<r.height&&s.attr("y",s.attr("y")+(r.height-u.height)/2),u.maxX<a&&s.attr("x",s.attr("x")+a-u.maxX)}}))},e.prototype.applyClip=function(t){var e=this.config,i=e.x,n=e.y,r=e.width,a=e.height,o=t.getBBox();(r||a)&&t.setClip({type:"rect",attrs:{x:i,y:n,width:r||o.width,height:a||o.height}})},e.prototype.doSelectItem=function(t){var e=this,i=this.getGroup().findAllByName(n.TOOLTIP_INDICATOR_ITEM_GROUP);t!==this.selectedItemId?(i.forEach((function(i){var n=i.get("delegateObject");n&&e.applyItemStyle(i,n.item.id===t?"selected":"inactive")})),this.selectedItemId=t):(i.forEach((function(t){e.applyItemStyle(t)})),this.selectedItemId=void 0),this.emit(r.ON_SELECT_ITEM,this.selectedItemId)},e.prototype.applyItemStyle=function(t,e){var i=this.config,r=i.line,a=i.itemTitle,o=i.itemName,s=i.itemValue,l=t.findAllByName(n.TOOLTIP_INDICATOR_ITEM_LINE)[0],u=t.findAllByName(n.TOOLTIP_INDICATOR_ITEM_TITLE)[0],c=t.findAllByName(n.TOOLTIP_INDICATOR_ITEM_NAME),p=t.findAllByName(n.TOOLTIP_INDICATOR_ITEM_VALUE),h=e&&e+"Style";l&&(l.attr(r.style),l.attr(r[h]||{})),u&&(u.attr(a.style),u.attr(a[h]||{})),c.forEach((function(t){t.attr(o.style),t.attr(o[h]||{})})),p.forEach((function(t){t.attr(s.style),t.attr(s[h]||{})}))},e.prototype.bindEvents=function(t){var e=this;this.offEvents();var i=t.findAllByName(n.TOOLTIP_INDICATOR_BODY)[0];i.on("mousemove",this.onBodyGroupMousemove),this.addDisposable((function(){i.off("mousemove",e.onBodyGroupMousemove)})),this.gm=new u.GM(i),this.wheel=new u.Wheel(i),this.wheel.on("wheel",this.onWheel)},e.prototype.offEvents=function(){this.gm&&this.gm.destroy(),this.wheel&&this.wheel.destroy()},e.prototype.resetRender=function(){this.curX=0,this.curY=0,this.offsetX=0},e}(l.default);function d(t,e){for(var i=t;i;){if(e(i))return i;i=i.getParent()}}i.default=f},{"../dependents":425,"../util/bbox":672,"../util/g-util":679,"../util/text":714,"./base":407,"@antv/util":803,tslib:894}],424:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("../../base/controller/state"),a=["xField","yField","angleField"];function o(t,e){var i=t.options;if(function(t,e){var i=function(t){var e=[];return n.each(a,(function(i){n.has(t,i)&&e.push(i)})),e}(t);return!n.isFunction(e)&&i.indexOf(e.name)}(i,e)){var o=i.data;n.each(o,(function(i){if(r.compare(i,e)){var n=t.view.getXY(i);t.view.on("tooltip:create",(function(t){s(e,t,!1)})),t.view.showTooltip(n)}}))}}function s(t,e,i){var a=!i,o=n.clone(e.items);e.items.splice(0),n.each(o,(function(i){var n=i.point._origin;r.compare(n,t)===a&&e.items.push(i)}))}i.default={active:o,selected:o,disable:function(t,e){t.view.on("tooltip:change",(function(t){s(e,t,!0)}))}}},{"../../base/controller/state":390,"@antv/util":803}],425:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i._ORIGIN=i.ORIGIN=i.TooltipCssConst=i.HtmlTooltipTheme=i.HtmlTooltip=i.InteractionUtils=i.GrammarInteraction=i.GestureController=void 0;var n=t("tslib"),r=n.__importDefault(t("@antv/g2/lib/chart/controller/gesture"));i.GestureController=r.default,t("@antv/g2").registerComponentController("gesture",r.default);var a=t("@antv/g-base");Object.defineProperty(i,"GraphicEvent",{enumerable:!0,get:function(){return a.Event}});var o=t("@antv/g-canvas");Object.defineProperty(i,"Canvas",{enumerable:!0,get:function(){return o.Canvas}});var s=t("@antv/g-svg");Object.defineProperty(i,"SVG",{enumerable:!0,get:function(){return s.Canvas}});var l=t("@antv/g-gesture");Object.defineProperty(i,"GM",{enumerable:!0,get:function(){return l.GM}}),Object.defineProperty(i,"Wheel",{enumerable:!0,get:function(){return l.Wheel}});var u=t("@antv/g2");Object.defineProperty(i,"View",{enumerable:!0,get:function(){return u.View}}),Object.defineProperty(i,"registerAnimation",{enumerable:!0,get:function(){return u.registerAnimation}}),Object.defineProperty(i,"registerGeometry",{enumerable:!0,get:function(){return u.registerGeometry}}),Object.defineProperty(i,"Geometry",{enumerable:!0,get:function(){return u.Geometry}}),Object.defineProperty(i,"Interaction",{enumerable:!0,get:function(){return u.Interaction}}),Object.defineProperty(i,"InteractionAction",{enumerable:!0,get:function(){return u.InteractionAction}}),Object.defineProperty(i,"registerInteraction",{enumerable:!0,get:function(){return u.registerInteraction}}),Object.defineProperty(i,"registerAction",{enumerable:!0,get:function(){return u.registerAction}}),Object.defineProperty(i,"registerShape",{enumerable:!0,get:function(){return u.registerShape}}),Object.defineProperty(i,"getTheme",{enumerable:!0,get:function(){return u.getTheme}}),Object.defineProperty(i,"Util",{enumerable:!0,get:function(){return u.Util}}),Object.defineProperty(i,"getShapeFactory",{enumerable:!0,get:function(){return u.getShapeFactory}}),Object.defineProperty(i,"ComponentController",{enumerable:!0,get:function(){return u.ComponentController}}),Object.defineProperty(i,"registerComponentController",{enumerable:!0,get:function(){return u.registerComponentController}});var c=t("@antv/g2/lib/constant");Object.defineProperty(i,"VIEW_LIFE_CIRCLE",{enumerable:!0,get:function(){return c.VIEW_LIFE_CIRCLE}}),Object.defineProperty(i,"COMPONENT_TYPE",{enumerable:!0,get:function(){return c.COMPONENT_TYPE}}),Object.defineProperty(i,"FIELD_ORIGIN",{enumerable:!0,get:function(){return c.FIELD_ORIGIN}});var p=t("@antv/g2/lib/chart/controller/tooltip");Object.defineProperty(i,"TooltipController",{enumerable:!0,get:function(){return p.default}});var h=t("@antv/g2/lib/util/marker");Object.defineProperty(i,"MarkerSymbols",{enumerable:!0,get:function(){return h.MarkerSymbols}});var f=n.__importDefault(t("@antv/g2/lib/interaction/grammar-interaction"));i.GrammarInteraction=f.default;var d=n.__importStar(t("@antv/g2/lib/interaction/action/util"));i.InteractionUtils=d;var g=t("@antv/g2/lib/animate");Object.defineProperty(i,"DEFAULT_ANIMATE_CFG",{enumerable:!0,get:function(){return g.DEFAULT_ANIMATE_CFG}}),Object.defineProperty(i,"getDefaultAnimateCfg",{enumerable:!0,get:function(){return g.getDefaultAnimateCfg}}),Object.defineProperty(i,"doAnimate",{enumerable:!0,get:function(){return g.doAnimate}});var v=t("@antv/g2/lib/geometry/element");Object.defineProperty(i,"Element",{enumerable:!0,get:function(){return v.default}});var y=n.__importDefault(t("@antv/component/lib/tooltip/html"));i.HtmlTooltip=y.default;var m=n.__importDefault(t("@antv/component/lib/tooltip/html-theme"));i.HtmlTooltipTheme=m.default;var b=n.__importStar(t("@antv/component/lib/tooltip/css-const"));i.TooltipCssConst=b;var x=t("@antv/component");Object.defineProperty(i,"GroupComponent",{enumerable:!0,get:function(){return x.GroupComponent}}),Object.defineProperty(i,"Axis",{enumerable:!0,get:function(){return x.Axis}}),Object.defineProperty(i,"Legend",{enumerable:!0,get:function(){return x.Legend}}),Object.defineProperty(i,"Tooltip",{enumerable:!0,get:function(){return x.Tooltip}}),Object.defineProperty(i,"Slider",{enumerable:!0,get:function(){return x.Slider}}),Object.defineProperty(i,"Scrollbar",{enumerable:!0,get:function(){return x.Scrollbar}});var _=t("@antv/coord");Object.defineProperty(i,"Coordinate",{enumerable:!0,get:function(){return _.Coordinate}}),i.ORIGIN="origin",i._ORIGIN="_origin"},{"@antv/component":51,"@antv/component/lib/tooltip/css-const":62,"@antv/component/lib/tooltip/html":64,"@antv/component/lib/tooltip/html-theme":63,"@antv/coord":83,"@antv/g-base":115,"@antv/g-canvas":127,"@antv/g-gesture":166,"@antv/g-svg":186,"@antv/g2":309,"@antv/g2/lib/animate":217,"@antv/g2/lib/chart/controller/gesture":224,"@antv/g2/lib/chart/controller/tooltip":228,"@antv/g2/lib/constant":237,"@antv/g2/lib/geometry/element":252,"@antv/g2/lib/interaction/action/util":353,"@antv/g2/lib/interaction/grammar-interaction":361,"@antv/g2/lib/util/marker":379,tslib:894}],426:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importDefault(t("./main")),a=n.__importDefault(t("./mini"));i.default={main:r.default,mini:a.default}},{"./main":427,"./mini":428,tslib:894}],427:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.init=function(){var t=this.plot.options;this.config={type:"area",position:{fields:[t.xField,t.yField]},connectNulls:t.connectNulls||!1},t.smooth&&(this.config.shape={values:["smooth"]}),(this._getColorMappingField()||t.color)&&this.parseColor(),(t.areaStyle||t.area&&t.area.style)&&this.parseStyle()},e.prototype.parseColor=function(){var t=this.plot.options,e={},i=this._getColorMappingField();if(i&&(e.fields=i),r.has(t,"color")){var n=t.color;r.isString(n)?e.values=[n]:r.isFunction(n)?e.callback=n:r.isArray(n)&&(i?e.values=n:n.length>0&&(e.values=[n[0]]))}this.config.color=e},e.prototype.parseStyle=function(){var t=this.plot.options,e=t.areaStyle?t.areaStyle:t.area.style,i={};r.isFunction(e)&&t.seriesField?(i.fields=[t.seriesField],i.callback=e):i.cfg=e,this.config.style=i},e.prototype._getColorMappingField=function(){for(var t=this.plot.options,e=0,i=["stackField","seriesField"];e<i.length;e++){var n=i[e];if(r.get(t,n))return[t[n]]}},e}(n.__importDefault(t("../base")).default);i.default=a},{"../base":429,"@antv/util":803,tslib:894}],428:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../../dependents"),a=t("@antv/util"),o=t("../../util/math"),s=t("../../util/path"),l=n.__importDefault(t("./main")),u=t("../../theme");function c(t,e,i){var n=[],r=[];a.each(t.points,(function(t){n.push(t[1]),r.push(t[0])})),r=e.parsePoints(r.reverse()),n=o.lineSimplification(e.parsePoints(n));var l=i?s.getSplinePath(n,!1,[[0,0],[1,1]]):p(n),u=p(r);return u[0][0]="L",l.concat(u)}function p(t){for(var e=[],i=0;i<t.length;i++){var n=t[i],r=0===i?"M":"L";e.push([r,n.x,n.y])}return e}function h(t){return"l(90) 0:"+t+" 1:#ffffff"}r.registerShape("area","miniArea",{draw:function(t,e){var i=t.style?t.style.opacity:null,n=c(t,this,!1),r=a.deepMix({},{lineJoin:"round",lineCap:"round"},t.style);return e.addShape("path",{attrs:{path:n,fill:h(t.color||u.getGlobalTheme().defaultColor),opacity:i||.4},style:r})}}),r.registerShape("area","miniAreaSmooth",{draw:function(t,e){var i=t.style?t.style.opacity:null,n=c(t,this,!0);return e.addShape("path",{attrs:{path:n,fill:h(t.color||u.getGlobalTheme().defaultColor),opacity:i||.5}})}});var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.parseShape()},e.prototype.parseShape=function(){this.plot.options.smooth?this.config.shape={values:["miniAreaSmooth"]}:this.config.shape={values:["miniArea"]}},e}(l.default);i.default=f},{"../../dependents":425,"../../theme":669,"../../util/math":680,"../../util/path":681,"./main":427,"@antv/util":803,tslib:894}],429:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=function(){function t(t){n.assign(this,t),this.init()}return t.prototype.init=function(){this.config={type:this.type,position:{fields:this.positionFields}}},t}();i.default=r},{"@antv/util":803}],430:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getGeom=void 0;var n=t("tslib"),r=n.__importDefault(t("./area/index")),a=n.__importDefault(t("./interval/index")),o=n.__importDefault(t("./line/index")),s=n.__importDefault(t("./point/index")),l={area:r.default,line:o.default,point:s.default,interval:a.default};i.getGeom=function(t,e,i){return new(0,l[t][e])(i).config}},{"./area/index":426,"./interval/index":432,"./line/index":435,"./point/index":440,tslib:894}],431:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../../dependents"),a=t("@antv/util"),o=n.__importStar(t("../../util/color")),s=function(t){function e(e){var i=t.call(this,e)||this;return i.type="heatmap",i.paletteCache={},i.intensity=e.intensity,i.radius=e.radius,i}return n.__extends(e,t),e.prototype.createElements=function(t){var e=this.prepareRange(t);return this.prepareSize(),this.prepareBlur(),this.prepareGreyScaleBlurredCircle(this.radius),this.drawWithRange(t,e),null},e.prototype.clear=function(){this.clearShadowCanvasCtx(),t.prototype.clear.call(this)},e.prototype.prepareRange=function(t){var e=this.getAttribute("color").getFields()[0],i=1/0,n=-1/0;return t.forEach((function(t){var r=t._origin[e];r>n&&(n=r),r<i&&(i=r)})),i===n&&(i=n-1),[i,n]},e.prototype.prepareSize=function(){var t=this.radius;this.radius||(t=this.getDefaultValue("size"),a.isNumber(t)||(t=this.getDefaultSize()),this.radius=t)},e.prototype.prepareBlur=function(){var t=a.get(this.styleOption,["style","shadowBlur"]);a.isNumber(t)||(t=this.radius/2),this.blur=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.colorize=function(t){for(var e=this.getAttribute("color"),i=t.data,n=this.paletteCache,r=3;r<i.length;r+=4){var a=i[r];if(a){var s=void 0;n[a]?s=n[a]:(s=o.rgb2arr(e.gradient(a/256)),n[a]=s),i[r-3]=s[0],i[r-2]=s[1],i[r-1]=s[2],i[r]=a}}},e.prototype.prepareGreyScaleBlurredCircle=function(t){var e=this.grayScaleCanvas;e||(e=document.createElement("canvas"),this.grayScaleCanvas=e);var i=this.intensity?this.intensity:2,n=Math.sqrt(-2*Math.log(1/255/16/t/i/.3989422804014327))/3*t,r=n-t,a=n+r,o=e.getContext("2d");e.width=e.height=2*a,o.clearRect(0,0,e.width,e.height),o.shadowOffsetX=o.shadowOffsetY=2*a,o.shadowBlur=r,o.shadowColor="black",o.beginPath(),o.arc(-a,-a,t,0,2*Math.PI,!0),o.closePath(),o.fill()},e.prototype.drawGrayScaleBlurredCircle=function(t,e,i,n,r){var a=this.grayScaleCanvas;r.globalAlpha=n,r.drawImage(a,t-i,e-i)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight();var e=t.getContext("2d");return e.globalCompositeOperation="lighter",e},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getImageShape=function(){var t=this.imageShape;if(t)return t;t=this.container.addShape({type:"image",attrs:{}}),this.imageShape=t},e.prototype.drawWithRange=function(t,e){var i=this.coordinate,n=i.start,r=i.end,a=this.coordinate.getWidth(),o=this.coordinate.getHeight(),s=this.getAttribute("color").getFields()[0];this.clearShadowCanvasCtx();var l=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t._origin[s]<=e[1]&&t._origin[s]>=e[0]})));for(var u=this.scales[s],c=0;c<t.length;c++){var p=t[c],h=this.getDrawCfg(p),f=u.scale(p._origin[s]);this.drawGrayScaleBlurredCircle(h.x-n.x,h.y-r.y,this.radius+this.blur,f,l)}var d=l.getImageData(0,0,a,o);this.clearShadowCanvasCtx(),this.colorize(d),l.putImageData(d,0,0),(new Image).src=l.canvas.toDataURL("image/png"),this.getImageShape(),this.imageShape.attr("x",n.x),this.imageShape.attr("y",r.y),this.imageShape.attr("width",a),this.imageShape.attr("height",o),this.imageShape.attr("img",l.canvas),this.imageShape.set("origin",this.getShapeInfo(t))},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]);return n.__assign(n.__assign({},e),{mappingData:t,data:this.getData(t)})},e.prototype.getData=function(t){return t.map((function(t){return t._origin}))},e}(r.Geometry);r.registerGeometry("linearHeatmap",s)},{"../../dependents":425,"../../util/color":673,"@antv/util":803,tslib:894}],432:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib").__importDefault(t("./main"));i.default={main:n.default}},{"./main":433,tslib:894}],433:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../base")),o=["colorField","stackField","groupField"],s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.init=function(){this.type="interval",t.prototype.init.call(this);var e=this.plot.options;this._needParserColor()&&this.parseColor(),this.config.color||(this.config.color={values:["#5b8ff9"]});var i=this._getSizeProps(e);i&&this.parseSize(i);var n=this._getStyleProps(e);n&&this.parseStyle(n)},e.prototype.parseColor=function(){var t=this.plot.options,e=this._getColorMappingField(t),i={};e&&(i.fields=e),t.color&&(r.isString(t.color)?i.values=[t.color]:r.isFunction(t.color)?i.callback=t.color:r.isArray(t.color)?e?i.values=t.color:t.color.length>0&&(i.values=[t.color[0]]):r.isObject(t.color)&&(i.fields=e,i.callback=function(e){return t.color[e]})),this.config.color=i},e.prototype.parseSize=function(t){var e=this.plot.options,i={};r.isFunction(e[t])?(i.fields=[this.config.position.fields],i.callback=e[t]):i.values=[e[t]],this.config.size=i},e.prototype.parseStyle=function(t){var e=this.plot.options,i=this.config.color,n=this.plot.options[t],a={};r.isFunction(n)?(a.fields=(null==i?void 0:i.fields)||[e.xField,e.yField],a.callback=n):a.cfg=n,this.config.style=a},e.prototype._getSizeProps=function(t){for(var e=0,i=["columnSize","barSize"];e<i.length;e++){var n=i[e];if(r.get(t,n))return n}},e.prototype._getStyleProps=function(t){for(var e=0,i=["columnStyle","barStyle","pieStyle","ringStyle"];e<i.length;e++){var n=i[e];if(r.get(t,n))return n}},e.prototype._getColorMappingField=function(t){for(var e=0,i=o;e<i.length;e++){var n=i[e];if(r.get(t,n))return[t[n]]}},e.prototype._needParserColor=function(){var t=this.plot.options;if(t.color)return!0;for(var e=0,i=o;e<i.length;e++){if(t[i[e]])return!0}return!1},e}(a.default);i.default=s},{"../base":429,"@antv/util":803,tslib:894}],434:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.init=function(){var t=this.plot.options;t.xField&&t.yField&&(this.config={type:"line",position:{fields:[t.xField,t.yField]},tooltip:!1},(this._getColorMappingField()||this._needParseAttribute("color"))&&this.parseColor(),this._needParseAttribute("size")&&this.parseSize(),t.line.style&&this.parseStyle(),t.smooth&&(this.config.shape={values:["smooth"]}))},e.prototype.parseSize=function(){var t=this.plot.options,e={};t.line.size?e.values=[t.line.size]:e.values=[2],this.config.size=e},e.prototype.parseColor=function(){var t=this.plot.options,e={},i=this._getColorMappingField();i&&(e.fields=i),t.line.color?e.values=[t.line.color]:r.isString(t.color)?e.values=[t.color]:r.isFunction(t.color)?(e.fields=i,e.callback=t.color):r.isArray(t.color)&&(i?e.values=t.color:t.color.length>0&&(e.values=[t.color[0]])),this.config.color=e},e.prototype.parseStyle=function(){var t=this.plot.options.line.style,e={};r.isFunction(t)?(e.fields=this.config.position.fields,e.callback=t):e.cfg=t,this.config.style=e},e.prototype._needParseAttribute=function(t){var e=this.plot.options;return!!e[t]||!!e.line[t]},e.prototype._getColorMappingField=function(){for(var t=this.plot.options,e=0,i=["stackField","seriesField"];e<i.length;e++){var n=i[e];if(r.get(t,n))return[t[n]]}},e}(n.__importDefault(t("./main")).default);i.default=a},{"./main":436,"@antv/util":803,tslib:894}],435:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importDefault(t("./guide")),a=n.__importDefault(t("./main")),o=n.__importDefault(t("./mini"));i.default={main:a.default,guide:r.default,mini:o.default}},{"./guide":434,"./main":436,"./mini":437,tslib:894}],436:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.init=function(){var t=this.plot.options;this.config={type:"line",position:{fields:[t.xField,t.yField]},connectNulls:t.connectNulls},t.lineSize&&this.parseSize(),t.smooth&&(this.config.shape={values:["smooth"]}),t.step&&(this.config.shape={values:[t.step]}),(t.seriesField||t.color)&&this.parseColor(),(t.lineStyle||r.get(t,["line","style"]))&&this.parseStyle()},e.prototype.parseSize=function(){var t=this.plot.options.lineSize,e={};r.isFunction(t)?e.callback=t:e.values=[t],this.config.size=e},e.prototype.parseColor=function(){var t=this.plot.options,e={};if(t.seriesField&&(e.fields=[t.seriesField]),r.has(t,"color")){var i=t.color;r.isString(i)?e.values=[i]:r.isFunction(i)?e.callback=i:r.isArray(i)&&(t.seriesField?e.values=i:i.length>0&&(e.values=[i[0]]))}this.config.color=e},e.prototype.parseStyle=function(){var t=this.plot.options,e=t.lineStyle||r.get(t,["line","style"]),i={fields:null,callback:null,cfg:null};r.isFunction(e)&&t.seriesField?(i.fields=[t.seriesField],i.callback=e):i.cfg=e,this.config.style=i},e}(n.__importDefault(t("../base")).default);i.default=a},{"../base":429,"@antv/util":803,tslib:894}],437:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../../dependents"),a=t("@antv/util"),o=t("../../util/math"),s=t("../../util/path"),l=n.__importDefault(t("./main")),u=t("../../theme");r.registerShape("line","miniLine",{draw:function(t,e){for(var i=o.lineSimplification(t.points),n=[],r=0;r<i.length;r++){var s=i[r],l=0===r?"M":"L";n.push([l,s.x,s.y])}var c=a.deepMix({},{lineJoin:"round",lineCap:"round"},t.style);return e.addShape("path",{attrs:a.mix({path:n,stroke:t.color||u.getGlobalTheme().defaultColor,lineWidth:t.size||2},c)})}}),r.registerShape("line","miniLineSmooth",{draw:function(t,e){var i=o.lineSimplification(t.points),n=s.getSplinePath(i,!1,[[0,0],[1,1]]);return e.addShape("path",{attrs:a.mix({path:n,stroke:t.color||u.getGlobalTheme().defaultColor,lineWidth:t.size||2},t.style)})}});var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.parseShape()},e.prototype.parseShape=function(){this.plot.options.smooth?this.config.shape={values:["miniLineSmooth"]}:this.config.shape={values:["miniLine"]}},e}(l.default);i.default=c},{"../../dependents":425,"../../theme":669,"../../util/math":680,"../../util/path":681,"./main":436,"@antv/util":803,tslib:894}],438:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.init=function(){var t=this.plot.options;this.style=t.pointStyle,t.xField&&t.yField&&(this.config={type:"point",position:{fields:[t.xField,t.yField]}},this.parseColor(),this.parseSize(),t.shape&&this.parseShape(t.shape),t.pointStyle&&this.parseStyle())},e.prototype.parseColor=function(){var t=this.plot.options,e={},i=t.colorField;i&&(e.fields=r.isArray(i)?i:[i]),t.color&&this._parseColor(t,e),r.isEmpty(e)||(this.config.color=e)},e.prototype.parseSize=function(){var t=this.plot.options,e={};t.sizeField&&(e.fields=[t.sizeField]),t.pointSize&&(e.values=r.isArray(t.pointSize)?t.pointSize:[t.pointSize]),this.config.size=e},e.prototype.parseShape=function(t){this.config.shape=t},e.prototype.parseStyle=function(){var t=this.plot.options,e=t.pointStyle,i={fields:null,callback:null,cfg:null},n=t.xField,a=t.yField,o=t.colorField;r.isFunction(e)?(i.fields=o?r.isArray(o)?[n,a,o].concat(o):[n,a,o]:[n,a],i.callback=e):(i.cfg=e,r.isNil(e.opacity)||(i.cfg.fillOpacity=e.opacity)),this.config.style=i},e.prototype._parseColor=function(t,e){r.isString(t.color)?e.values=[t.color]:r.isFunction(t.color)?e.callback=t.color:r.isArray(t.color)&&(e.values=t.color)},e}(n.__importDefault(t("../base")).default);i.default=a},{"../base":429,"@antv/util":803,tslib:894}],439:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../base"));var o=["seriesField","stackField"],s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.init=function(){var t=this.plot.options;this.style=t.point.style,t.xField&&t.yField&&(this.config={type:"point",position:{fields:[t.xField,t.yField]},tooltip:!1},this.parseColor(),this._needParseAttribute("size")&&this.parseSize(),t.point.shape&&this.parseShape(t.point.shape),t.point.style&&this.parseStyle())},e.prototype.parseColor=function(){var t=this.plot.options,e={},i=this._getColorMappingField(t);if(i)this._parseColorByField(t,e,i);else if(t.point&&t.point.color)e.values=[t.point.color];else if(t.color)this._parseColor(t,e);else{var n=this.plot.getTheme();e.values=[n.defaultColor]}r.keys(e).length>0&&(this.config.color=e)},e.prototype.parseSize=function(){var t=this.plot.options,e={};e.values=[t.point.size],this.config.size=e},e.prototype.parseShape=function(t){var e={};r.isString(t)?e.values=[t]:r.isObject(t)&&(e.fields=t.fields,e.callback=t.callback),this.config.shape=e},e.prototype.parseStyle=function(){var t=this.plot.options,e=t.point&&t.point.style,i={fields:null,callback:null,cfg:null},n=this._getColorMappingField(t);r.isFunction(e)?(i.fields=[t.xField,t.yField],i.callback=e,n&&i.fields.unshift(n)):i.cfg=e,this.config.style=i},e.prototype._parseColorByField=function(t,e,i){if(e.fields=[i],t.point.color){for(var n=function(t,e){var i=[];return r.each(e,(function(e){var n=e[t];i.push(n)})),r.uniq(i)}(i,t.data).length,a=[],o=0;o<n;o++)a.push(t.point.color);e.values=a}else t.color&&this._parseColor(t,e)},e.prototype._parseColor=function(t,e){var i=this._getColorMappingField(t);r.isString(t.color)?e.values=[t.color]:r.isFunction(t.color)?e.callback=t.color:r.isArray(t.color)&&(i?e.values=t.color:t.color.length>0&&(e.values=[t.color[0]]))},e.prototype._needParseAttribute=function(t){var e=this.plot.options;return e.point&&r.has(e.point,t)},e.prototype._getColorMappingField=function(t){for(var e=0,i=o;e<i.length;e++){var n=i[e];if(r.get(t,n))return[t[n]]}},e}(a.default);i.default=s},{"../base":429,"@antv/util":803,tslib:894}],440:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importDefault(t("./circle")),a=n.__importDefault(t("./guide"));i.default={guide:a.default,circle:r.default}},{"./circle":438,"./guide":439,tslib:894}],441:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(e,i,n,r){var a=t.call(this,e)||this;return a.viewLayer=i,a.interactionRange=n,a.interactionConfig=r,a.disposables=[],a}return n.__extends(e,t),e.registerInteraction=function(t,i){e.GLOBAL_INTERACTION_MAP[t]=i},e.registerPlotInteraction=function(t,i,n){e.PLOT_INTERACTION_MAP[t]||(e.PLOT_INTERACTION_MAP[t]={}),e.PLOT_INTERACTION_MAP[t][i]=n},e.getInteraction=function(t,i){return i&&e.PLOT_INTERACTION_MAP[i]&&e[i][t]?e.PLOT_INTERACTION_MAP[i][t]:e.GLOBAL_INTERACTION_MAP[t]},e.getInteractionRange=function(t,e){},e.prototype.destroy=function(){r.each(this.disposables,(function(t){t()})),this.disposables=[],this.clear(),t.prototype.destroy.call(this)},e.prototype.getViewLayer=function(){return this.viewLayer},e.prototype.getRange=function(){return this.interactionRange},e.prototype.getInteractionConfig=function(){return this.interactionConfig},e.prototype.addDisposable=function(t){this.disposables.push(t)},e.prototype.render=function(){},e.prototype.start=function(t){},e.GLOBAL_INTERACTION_MAP={},e.PLOT_INTERACTION_MAP={},e}(n.__importDefault(t("./core")).default);i.default=a},{"./core":442,"@antv/util":803,tslib:894}],442:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=["start","process","end","reset"],a=function(){function t(t){var e=this.getDefaultCfg();n.assign(this,e,t),this.canvas=this.view.canvas,this._eventHandlers=[],this._bindEvents()}return t.prototype.getDefaultCfg=function(){return{startEvent:"mousedown",processEvent:"mousemove",endEvent:"mouseup",resetEvent:"dblclick"}},t.prototype._start=function(t){this.preStart(t),this.start(t),this.afterStart(t)},t.prototype.preStart=function(t){},t.prototype.afterStart=function(t){},t.prototype._process=function(t){this.preProcess(t),this.process(t),this.afterProcess(t)},t.prototype.preProcess=function(t){},t.prototype.process=function(t){},t.prototype.afterProcess=function(t){},t.prototype._end=function(t){this.preEnd(t),this.end(t),this.afterEnd(t)},t.prototype.preEnd=function(t){},t.prototype.end=function(t){},t.prototype.afterEnd=function(t){},t.prototype._reset=function(t){this.preReset(t),this.reset(t),this.afterReset(t)},t.prototype.preReset=function(t){},t.prototype.reset=function(t){},t.prototype.afterReset=function(t){},t.prototype._bindEvents=function(){var t=this;n.each(r,(function(e){var i=t[e+"Event"],r=n.wrapBehavior(t,"_"+e);t.view.on(i,r),t._eventHandlers.push({type:i,handler:r})}))},t.prototype._unbindEvents=function(){var t=this,e=this._eventHandlers;n.each(e,(function(e){t.view.off(e.type,e.handler)}))},t.prototype.destroy=function(){this._unbindEvents(),this._reset()},t}();i.default=a},{"@antv/util":803}],443:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getDataByScaleRange=void 0;var n=t("@antv/util");i.getDataByScaleRange=function(t,e,i,r,a){var o=r[0],s=r[1];void 0===a&&(a=!1);var l=n.groupBy(i,t),u=a?e.slice(e.length-s,e.length-o):e.slice(o,s);return n.flatten(n.map(u,(function(t){return l[t]||[]})))}},{"@antv/util":803}],444:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importDefault(t("./base")),a=n.__importDefault(t("./scrollbar")),o=n.__importDefault(t("./slider")),s=n.__importDefault(t("./timeline")),l=n.__importDefault(t("./tooltip-indicator"));r.default.registerInteraction("slider",o.default),r.default.registerInteraction("scrollbar",a.default),r.default.registerInteraction("timeline",s.default),r.default.registerInteraction("tooltip-indicator",l.default),n.__exportStar(t("./base"),i),i.default=r.default},{"./base":441,"./scrollbar":445,"./slider":446,"./timeline":447,"./tooltip-indicator":448,tslib:894}],445:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../dependents"),a=n.__importDefault(t("../util/bbox")),o=t("@antv/util"),s=n.__importDefault(t("./base")),l=t("./helper/data-range"),u=t("@antv/g2/lib/constant"),c=t("../base/constants"),p=function(t){void 0===t&&(t={});var e=n.__assign({type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0]},t);return t.padding||(e.padding="horizontal"===e.type?[4,0,4,0]:[0,4,0,4]),e},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onChangeFn=o.throttle(e.onChange.bind(e),20,{leading:!0}),e}return n.__extends(e,t),e.getInteractionRange=function(t,e){var i=p(e),n=i.padding,r=n[0],o=n[1],s=n[2],l=n[3];return"horizontal"===i.type?new a.default(t.minX,t.maxY-i.height-r-s,t.width,i.height+r+s):new a.default(t.maxX-i.width-l-o,t.minY,i.width+l+o,t.height)},e.prototype.render=function(){var t=this,e=this.getViewLayer(),i=this.view;this.ratio=0,this.thumbOffset=0;var n=function(){var e=t.view.padding;"auto"===e||o.isEqual(e,[0,0,0,1])||(t.trackLen?t.renderScrollbar():(t.measureScrollBar(),t.changeViewData(t.getScrollRange(),!0)))},r=function(){t.trackLen=0};i.on(u.VIEW_LIFE_CIRCLE.AFTER_PAINT,n),this.addDisposable((function(){return i.off(u.VIEW_LIFE_CIRCLE.AFTER_PAINT,n)})),i.on(u.VIEW_LIFE_CIRCLE.AFTER_RENDER,n),this.addDisposable((function(){return i.off(u.VIEW_LIFE_CIRCLE.AFTER_RENDER,n)})),e.on(c.VIEW_LAYER_LIFE_CYCLE.BEFORE_CHANGE_DATA,r),this.addDisposable((function(){return e.off(c.VIEW_LAYER_LIFE_CYCLE.BEFORE_CHANGE_DATA,r)}))},e.prototype.start=function(){},e.prototype.clear=function(){this.scrollbar&&(this.scrollbar.destroy(),this.scrollbar=null),this.container&&(this.container.remove(!0),this.container=null),this.trackLen=null,this.thumbLen=null},e.prototype.renderScrollbar=function(){var t=p(this.getInteractionConfig()),e=this.getRange(),i="vertical"!==t.type,n=this.view.coordinateBBox,a=t.padding,o=a[0],s=a[3],l=i?{x:n.minX+s,y:e.minY+o}:{x:e.minX+s,y:n.minY+o};this.scrollbar?(this.scrollbar.update({trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:this.thumbOffset,x:l.x,y:l.y}),this.scrollbar.render()):(this.container=this.canvas.addGroup(),this.scrollbar=new r.Scrollbar({container:this.container,x:l.x,y:l.y,isHorizontal:i,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:this.ratio*this.trackLen}),this.scrollbar.init(),this.scrollbar.render(),this.scrollbar.get("group").set("zIndex",999),this.scrollbar.on("scrollchange",this.onChangeFn))},e.prototype.measureScrollBar=function(){var t=p(this.getInteractionConfig()),e=t.padding,i=e[0],n=e[1],r=e[2],a=e[3],s="vertical"!==t.type,l=this.view.coordinateBBox,u=this.view.getXScale(),c=this.view.getYScales().filter((function(t){return t}));this.cnt=u.values.length,this.xScaleCfg={field:u.field,values:u.values||[]},this.yScalesCfg=c,this.step=Math.floor((s?l.width:l.height)/t.categorySize),this.trackLen=s?l.width-a-n:l.height-i-r,this.thumbLen=Math.max(this.trackLen*o.clamp(this.step/u.values.length,0,1),20)},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*o.clamp(this.ratio,0,1));return[t,Math.min(t+this.step,this.cnt)]},e.prototype.changeViewData=function(t,e){var i=this,r=t[0],a=t[1],s=p(this.getInteractionConfig()),u=this.getViewLayer(),c=u.options.meta,h=u.getData(),f=l.getDataByScaleRange(this.xScaleCfg.field,this.xScaleCfg.values,h,[r,a],"vertical"===s.type);this.yScalesCfg.forEach((function(t){var e=o.get(c,t.field)||{};i.view.scale(t.field,n.__assign(n.__assign({formatter:t.formatter},e),{type:t.type,min:t.min,max:t.max}))})),e?(this.view.data(f),this.view.render()):this.view.changeData(f)},e.prototype.onChange=function(t){var e=t.ratio,i=t.thumbOffset;this.ratio=e,this.thumbOffset=i;var n=this.view.getOptions().animate;this.view.animate(!1),this.changeViewData(this.getScrollRange(),!0),this.view.animate(n),this.renderScrollbar()},e}(s.default);i.default=h},{"../base/constants":386,"../dependents":425,"../util/bbox":672,"./base":441,"./helper/data-range":443,"@antv/g2/lib/constant":237,"@antv/util":803,tslib:894}],446:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../dependents"),a=n.__importDefault(t("../util/bbox")),o=t("@antv/util"),s=n.__importDefault(t("./base")),l=t("./helper/data-range"),u=function(t){void 0===t&&(t={});var e=n.__assign({type:"horizontal",start:0,end:1,width:void 0,height:void 0,padding:[0,0,0,0],backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},trendCfg:{}},t);t.padding||(e.padding="horizontal"===e.type?[4,0,4,0]:[0,4,0,4]),t.height||(e.height=16),t.width||(e.width=16);var i=o.clamp(Math.min(e.start,e.end),0,1),r=o.clamp(Math.max(e.start,e.end),0,1);return e.start=i,e.end=r,e},c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onChangeFn=o.throttle(e.onChange.bind(e),20,{leading:!0}),e}return n.__extends(e,t),e.getInteractionRange=function(t,e){var i=u(e),n=i.padding||[0,0,0,0],r=n[0],o=n[1],s=n[2],l=n[3];return"horizontal"===i.type?new a.default(t.minX,t.maxY-i.height-r-s,t.width,i.height+r+s):new a.default(t.maxX-i.width-l-o,t.minY,i.width+l+o,t.height)},e.prototype.render=function(){var t=this,e=this.getViewLayer(),i=this.view,n=u(this.getInteractionConfig());this.curStart=n.start,this.curEnd=n.end,this.xScaleCfg=void 0;var a=function(){var n=t.view.padding;if("auto"!==n&&!o.isEqual(n,[0,0,0,1])&&!o.isEmpty(e.options.data))if(t.xScaleCfg)t.renderSlider();else{var r=i.getXScale();t.xScaleCfg={field:r.field,values:r.values||[]},i.data(t.getSliderData(t.curStart,t.curEnd)),i.render()}};i.on(r.VIEW_LIFE_CIRCLE.AFTER_PAINT,a),this.addDisposable((function(){return i.off(r.VIEW_LIFE_CIRCLE.AFTER_PAINT,a)})),i.on(r.VIEW_LIFE_CIRCLE.AFTER_RENDER,a),this.addDisposable((function(){return i.off(r.VIEW_LIFE_CIRCLE.AFTER_RENDER,a)}))},e.prototype.start=function(){},e.prototype.clear=function(){this.slider&&(this.slider.destroy(),this.slider=null),this.container&&(this.container.remove(!0),this.container=null)},e.prototype.renderSlider=function(){this.slider?(this.slider.update(this.getSliderConfig()),this.slider.render()):(this.container=this.canvas.addGroup(),this.slider=new r.Slider(n.__assign(n.__assign({},this.getSliderConfig()),{container:this.container})),this.slider.init(),this.slider.render(),this.slider.on("sliderchange",this.onChangeFn))},e.prototype.getSliderConfig=function(){var t=this.view.coordinateBBox,e=this.getRange(),i=u(this.getInteractionConfig())||{},r=i.padding,a=void 0===r?[0,0,0,0]:r,o=i.backgroundStyle,s=i.foregroundStyle,l=i.handlerStyle,c=i.textStyle,p=i.trendCfg,h=void 0===p?{}:p,f=a[0],d=a[1],g=a[2],v=a[3],y=this.getSliderMinMaxText(this.curStart,this.curEnd),m=y.minText,b=y.maxText;return{x:t.minX+v,y:e.minY+f,width:t.width-v-d,height:e.height-f-g,start:this.curStart,end:this.curEnd,minText:m,maxText:b,backgroundStyle:o,foregroundStyle:s,handlerStyle:l,textStyle:c,trendCfg:n.__assign(n.__assign({isArea:!1,smooth:!1},h),{data:this.getSliderTrendData()})}},e.prototype.getSliderTrendData=function(){var t=this.getViewLayer().options,e=t.data,i=t.yField;return o.map(e,(function(t){return t[i]}))},e.prototype.getSliderData=function(t,e){var i=this.getViewLayer().getData(),n=o.size(this.xScaleCfg.values),r=Math.round(t*n),a=Math.max(r+1,Math.round(e*n));return l.getDataByScaleRange(this.xScaleCfg.field,this.xScaleCfg.values,i,[r,a])},e.prototype.getSliderMinMaxText=function(t,e){var i=this.getViewLayer().options,n=i.data,r=void 0===n?[]:n,a=i.xField,s=o.size(r),l=Math.round(t*s),u=Math.max(l+1,Math.round(e*s)),c=r.slice(l,u);return{minText:c.length>0?o.head(c)[a]:"",maxText:c.length>0?o.last(c)[a]:""}},e.prototype.onChange=function(t){var e=this.view,i=o.clamp(Math.min(t[0],t[1]),0,1),n=o.clamp(Math.max(t[0],t[1]),0,1),r=this.getSliderData(i,n),a=this.getSliderMinMaxText(i,n),s=a.minText,l=a.maxText;this.curStart=i,this.curEnd=n,this.slider.update({start:i,end:n,minText:s,maxText:l}),this.slider.render();var u=e.getOptions().animate;e.animate(!1),e.data(r),e.render(),e.animate(u)},e}(s.default);i.default=c},{"../dependents":425,"../util/bbox":672,"./base":441,"./helper/data-range":443,"@antv/util":803,tslib:894}],447:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../dependents"),o=n.__importDefault(t("./base")),s=n.__importDefault(t("../util/bbox")),l=n.__importDefault(t("../components/timeline"));function u(t){return n.__assign({loop:!1,auto:!0,height:40,padding:[0,20,0,0],speed:2},t)}var c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onChangeFn=r.throttle(e.onChange.bind(e),20,{leading:!0}),e}return n.__extends(e,t),e.getInteractionRange=function(t,e){var i=u(e),n=i.padding[0],r=i.padding[2];return new s.default(t.minX,t.maxY-i.height-n-r,t.width,i.height+n+r)},e.prototype.setAnimate=function(t){var e=this.view.geometries;this.view.animate(t),e.forEach((function(e){e.animate(t)}))},e.prototype.start=function(){},e.prototype.renderTimeLine=function(){var t=this;this.config=u(this.getInteractionConfig());var e=this.view.viewBBox,i=this.config,a=i.loop,o=i.padding,s=i.speed,c=o[0],p=o[1],h=o[2],f=o[3],d=this.getRange(),g=this.getTicks(),v=e.width-f-p,y={x:e.minX+f,y:d.tl.y+c,width:v,height:d.height-c-h,loop:a,ticks:g,speed:s,defaultCurrentTick:g[0]};this.timeline?r.isEqual(y,this.timeLineConfig)||(this.timeLineConfig=y,this.timeline.update(y)):(this.container=this.canvas.addGroup(),this.timeline=new l.default(n.__assign({container:this.container},y)),this.timeline.init(),this.timeline.render(),this.timeline.on("timelinestart",(function(){t.originAnimation=t.view.getOptions().animate,t.setAnimate(!0)})),this.timeline.on("timelineend",(function(){t.setAnimate(t.originAnimation)})),this.timeline.on("timelinechange",this.onChangeFn),this.timeline.on("timelineupdate",this.onChange.bind(this)),this.view.data(this.getFilterData(g[0])),this.timeLineConfig=y)},e.prototype.onChange=function(t){var e=this.getFilterData(t);this.view.changeData(e)},e.prototype.getFilterData=function(t){var e=this.config.field;return this.getViewLayer().options.data.filter((function(i){return i[e]===t}))},e.prototype.getTicks=function(){var t=this.config.field,e=this.getViewLayer().options.data;return r.uniq(e.map((function(e){return e[t]})))},e.prototype.render=function(){var t=this;this.firstRender=!0,this.view.on(a.VIEW_LIFE_CIRCLE.BEFORE_RENDER,(function(){t.renderTimeLine()})),this.view.on(a.VIEW_LIFE_CIRCLE.BEFORE_PAINT,(function(){t.renderTimeLine()})),this.view.on(a.VIEW_LIFE_CIRCLE.AFTER_PAINT,(function(){t.config.auto&&t.firstRender&&(t.timeline.isPlay=!0,t.timeline.changePlayStatus()),t.firstRender=!1})),this.view.on(a.VIEW_LIFE_CIRCLE.AFTER_RENDER,(function(){t.config.auto&&t.firstRender&&(t.timeline.isPlay=!0,t.timeline.changePlayStatus()),t.firstRender=!1}))},e.prototype.clear=function(){this.timeline&&(this.timeline.destroy(),this.timeline=null),this.container&&(this.container.remove(!0),this.container=null)},e}(o.default);i.default=c},{"../components/timeline":422,"../dependents":425,"../util/bbox":672,"./base":441,"@antv/util":803,tslib:894}],448:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.TooltipIndicationAction=i.TOOLTIP_INDICATOR_EVENTS=void 0;var n,r=t("tslib"),a=t("@antv/util"),o=r.__importDefault(t("./base")),s=t("../dependents"),l=r.__importStar(t("../components/tooltip-indicator")),u=t("../util/view"),c=r.__importDefault(t("../util/bbox")),p=function(t){return void 0===t&&(t={}),r.__assign({showTotal:!1,showPercent:!1,padding:[8,24,8,24],height:t.showPercent?72:54},t)};!function(t){t.ACTIVE_ELEMENT="tooltip_indicator_active_element",t.ACTIVE_ELEMENT_BY_X="tooltip_indicator_active_element_by_x"}(n=i.TOOLTIP_INDICATOR_EVENTS||(i.TOOLTIP_INDICATOR_EVENTS={}));var h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state="selected",e.isSingle=!1,e}return r.__extends(e,t),e.prototype.active=function(){var t=s.InteractionUtils.getCurrentElement(this.context);t.hasState("selected")?this.isSingle?this.setStateByX(t):this.setState(t):this.setStateByX(t)},e.prototype.setState=function(t){var e=this;u.forEachElement(this.getView(),(function(i){i===t?i.hasState(e.state)||i.setState(e.state,!0):i.setState(e.state,!1)})),this.isSingle=!0,this.getView().emit(n.ACTIVE_ELEMENT,{element:t,isSingle:!0})},e.prototype.setStateByX=function(t){var e=this,i=this.getXField(),r=t.getData()[i];u.forEachElement(this.getView(),(function(t){t.getData()[i]===r?t.hasState(e.state)||t.setState(e.state,!0):t.setState(e.state,!1)})),this.isSingle=!1,this.getView().emit(n.ACTIVE_ELEMENT_BY_X,{element:t,isSingle:!1})},e.prototype.setStateByField=function(t,e){var i=this,n=this.getView().getXScale().field,r=this.getView().getGroupScales()[0].field;u.forEachElement(this.getView(),(function(a){var o=a.getData();a.setState(i.state,o[n]===t&&(void 0===e||o[r]===e))}))},e.prototype.getView=function(){return this.context.view},e.prototype.getXField=function(){return this.context.view.getXScale().field},e}(s.InteractionAction);i.TooltipIndicationAction=h,s.registerAction("tooltip-indicator",h),s.registerInteraction("element-tooltip-indicator",{start:[{trigger:"element:mousemove",action:"tooltip-indicator:active",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"element:touchmove",action:"tooltip-indicator:active",throttle:{wait:50,leading:!0,trailing:!1}}]});var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onElementActive=function(t){var i=t.element,n=t.isSingle,r=e.view.getXScale(),a=e.view.getXScale().field,o=e.view.getGroupScales()[0].field,s=i.getData(),l=s[a],u=e.getLegendItems(l);e.component.update({items:u,title:{text:r.getText(l)}}),e.component.render(),n&&e.component.selectItem(s[o]),e.curX=l},e.onSelectTooltipIndicatorItem=function(t){e.component&&t&&e.getInteractionAction().setStateByField(e.curX,t)},e}return r.__extends(e,t),e.getInteractionRange=function(t,e){var i=p(e),n=i.padding,r=n[0],a=n[2];return new c.default(t.minX,t.minY,t.width,i.height+r+a)},e.prototype.clear=function(){this.component&&this.component.destroy(),this.container&&this.container.remove(!0),this.component=null,this.container=null},e.prototype.render=function(){var t=this,e=this.view,i=function(){var e=t.view.getXScale(),i=a.last(e.getTicks()).tickValue,n=t.view.padding;a.isEqual([0,0,0,0],n)||(t.component?t.updateComponent():(t.createComponent(),t.component.on(l.EVENTS.ON_SELECT_ITEM,t.onSelectTooltipIndicatorItem)),t.curX=i,t.component.update({title:{text:e.getText(t.curX)}}),t.component.render(),t.getInteractionAction().setStateByField(i))};e.legend(!1),e.removeInteraction("active-region"),e.removeInteraction("tooltip"),e.interaction("element-tooltip-indicator"),e.on(s.VIEW_LIFE_CIRCLE.AFTER_PAINT,i),e.on(s.VIEW_LIFE_CIRCLE.AFTER_RENDER,i),e.on(n.ACTIVE_ELEMENT,this.onElementActive),e.on(n.ACTIVE_ELEMENT_BY_X,this.onElementActive)},e.prototype.getInteractionAction=function(){var t=this.view.interactions["element-tooltip-indicator"];return t&&t.context.getAction("tooltip-indicator")},e.prototype.createComponent=function(){var t=p(this.getInteractionConfig()).padding,e=t[0],i=t[1],n=t[2],r=t[3],o=this.getLegendItems(),s=this.getRange(),u=this.view.getXScale(),c=a.last(u.getTicks()).tickValue;this.container=this.canvas.addGroup(),this.component=new l.default({container:this.container,x:s.x+r,y:s.y+e,width:s.width-r-i,height:s.height-e-n,theme:this.getViewLayer().getPlotTheme(),items:o}),this.component.init(),this.getInteractionAction().setStateByField(c)},e.prototype.updateComponent=function(){var t=this.getLegendItems();this.component.update({items:t})},e.prototype.getLegendItems=function(t){var e=this.view,i=e.getData(),n=e.getTheme().defaultColor,r=e.getXScale(),o=e.getYScales()[0],s=t||a.last(r.getTicks()).tickValue,l=e.getLegendAttributes().find((function(t){return"color"===t.type})),u=[],c=e.getGroupScales()[0],p=c.field;c&&c.isCategory&&c.getTicks().forEach((function(t){var e=t.text,i=t.tickValue,r=l.mapping(i).join("")||n;u.push({id:i,title:e,color:r,values:[]})}));var h=(null==i?void 0:i.filter((function(t){return t[r.field]===s})))||[];return u.forEach((function(t){var e=h.find((function(e){return e[p]===t.id}));t.values.push({value:o.formatter?o.formatter(e[o.field]):e[o.field]})})),u},e}(o.default);i.default=f},{"../components/tooltip-indicator":423,"../dependents":425,"../util/bbox":672,"../util/view":715,"./base":441,"@antv/util":803,tslib:894}],449:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.timeIntervals=void 0;t("../dependents");var n=864e5;i.timeIntervals={second:{value:1e3,format:"HH:mm:ss"},miniute:{value:6e4,format:"HH:mm"},hour:{value:36e5,format:"HH"},day:{value:n,format:"YYYY-MM-DD"},week:{value:6048e5,format:"YYYY-MM-DD"},month:{value:2592e6,format:"YYYY-MM"},year:{value:31536e6,format:"YYYY"}}},{"../dependents":425}],450:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib").__importDefault(t("../../../util/responsive/apply/axis"));i.default=function(t){var e=t.getResponsiveTheme(),i=t.canvas;new n.default({plot:t,responsiveTheme:e,dim:"x"}),new n.default({plot:t,responsiveTheme:e,dim:"y"}),i.draw()}},{"../../../util/responsive/apply/axis":682,tslib:894}],451:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=[{name:"responsiveAxis",method:t("tslib").__importDefault(t("./axis")).default}];i.default={preRender:[],afterRender:n}},{"./axis":450,tslib:894}],452:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../../../components/label/base"),o=n.__importDefault(t("../../../../components/label/point-auto")),s=t("../../../../util/view"),l=t("../../../../util/math"),u=t("../../../../util/color"),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.layoutLabels=function(e,i){t.prototype.layoutLabels.call(this,e,i),this.adjustAreaLabelsStyle(i)},e.prototype.adjustAreaLabelsStyle=function(t){var e=this.view,i=this.options,n=i.darkStyle,a=i.lightStyle,o=s.getGeometryByType(e,"area"),c=s.getGeometryShapes(o).sort((function(t,e){return e.getBBox().height-t.getBBox().height}));r.each(t,(function(t){var e=t.getBBox(),i=l.getStrokePoints(e.x,e.y,e.width,e.height),o=r.map(c,(function(t){return{area:t,matches:r.filter(i,(function(e){return!!t.isHit(e[0],e[1])})).length}})).sort((function(t,e){return t.matches-e.matches}));if(r.last(o).matches>0){var s=r.last(o).area.attr("fill"),p=u.isContrastColorWhite(s);t.attr({fill:p?null==a?void 0:a.fill:null==n?void 0:n.fill,fillOpacity:p?a.fillOpacity:n.fillOpacity,stroke:p?null==a?void 0:a.stroke:null==n?void 0:n.stroke})}}))},e}(o.default);i.default=c,a.registerLabelComponent("area-point-auto",c)},{"../../../../components/label/base":414,"../../../../components/label/point-auto":416,"../../../../util/color":673,"../../../../util/math":680,"../../../../util/view":715,"@antv/util":803,tslib:894}],453:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../../../../components/label/base"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(n.__importDefault(t("../../../../components/label/point")).default);i.default=a,r.registerLabelComponent("area-point",a)},{"../../../../components/label/base":414,"../../../../components/label/point":417,tslib:894}],454:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.onEvent=i.EVENT_MAP=void 0;var n=t("@antv/util"),r=t("../../util/event");Object.defineProperty(i,"EVENT_MAP",{enumerable:!0,get:function(){return r.EVENT_MAP}}),Object.defineProperty(i,"onEvent",{enumerable:!0,get:function(){return r.onEvent}});var a=r.getEventMap({area:"area",line:"line",point:"point"});n.assign(r.EVENT_MAP,a)},{"../../util/event":677,"@antv/util":803}],455:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="area",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":456,"@antv/util":803,tslib:894}],456:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importDefault(t("../../base/view-layer")),s=t("../../geoms/factory");t("./component/label/area-point"),t("./component/label/area-point-auto");var l=t("../../util/scale"),u=n.__importDefault(t("./apply-responsive")),c=n.__importStar(t("./event"));t("./theme");var p=t("../../util/view"),h={area:"area",line:"line",point:"point"},f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{smooth:!1,areaStyle:{opacity:.25},line:{visible:!0,size:2,style:{opacity:1,lineJoin:"round",lineCap:"round"}},point:{visible:!1,size:4,shape:"point"},label:{visible:!1,type:"point"},legend:{visible:!0,position:"top-left",wordSpacing:4},tooltip:{visible:!0,shared:!0,showCrosshairs:!0,crosshairs:{type:"x"},offset:20}})},e.prototype.beforeInit=function(){t.prototype.beforeInit.call(this),this.options.responsive&&"auto"!==this.options.padding&&this.applyResponsive("preRender")},e.prototype.afterRender=function(){this.renderLabel(),this.options.responsive&&"auto"!==this.options.padding&&this.applyResponsive("afterRender"),t.prototype.afterRender.call(this)},e.prototype.geometryParser=function(t,e){return h[e]},e.prototype.scale=function(){var e=this.options,i={};i[e.xField]={type:"cat"},r.has(e,"xAxis")&&l.extractScale(i[e.xField],e.xAxis),i[e.yField]={},r.has(e,"yAxis")&&l.extractScale(i[e.yField],e.yAxis),this.setConfig("scales",i),t.prototype.scale.call(this)},e.prototype.coord=function(){return null},e.prototype.addGeometry=function(){var t=this.options,e=s.getGeom("area","main",{plot:this});this.area=e,t.label&&this.label(),t.tooltip&&(t.tooltip.fields||t.tooltip.formatter)&&this.geometryTooltip(),this.adjustArea(e),this.setConfig("geometry",e),this.addLine(),this.addPoint()},e.prototype.adjustArea=function(t){},e.prototype.adjustLine=function(t){},e.prototype.adjustPoint=function(t){},e.prototype.addLine=function(){var t=this.options,e=r.deepMix({},t.line);if(e.visible){var i=s.getGeom("line","guide",{type:"line",plot:this,line:e});this.adjustLine(i),this.setConfig("geometry",i),this.line=i}},e.prototype.addPoint=function(){var t=this.options;if(r.deepMix({},t.point).visible){var e=s.getGeom("point","guide",{plot:this});this.adjustPoint(e),this.setConfig("geometry",e),this.point=e}},e.prototype.renderLabel=function(){var t=this.config.scales,e=this.options,i=e.label,r=t[e.yField];if(i.visible){var a=p.getGeometryByType(this.view,"area");this.doRenderLabel(a,n.__assign({type:"area-point",formatter:r.formatter&&function(t){return r.formatter(t)}},this.options.label))}},e.prototype.animation=function(){t.prototype.animation.call(this),!1===this.options.animation&&(this.area.animate=!1,this.line&&(this.line.animate=!1),this.point&&(this.point.animate=!1))},e.prototype.label=function(){},e.prototype.geometryTooltip=function(){this.area.tooltip={};var t=this.options.tooltip;t.fields&&(this.area.tooltip.fields=t.fields),t.formatter&&(this.area.tooltip.callback=t.formatter,t.fields||(this.area.tooltip.fields=[this.options.xField,this.options.yField],this.options.seriesField&&this.area.tooltip.fields.push(this.options.seriesField)))},e.prototype.parseEvents=function(){t.prototype.parseEvents.call(this,c)},e.prototype.applyResponsive=function(t){var e=this,i=u.default[t];r.each(i,(function(t){t.method(e)}))},e}(o.default);i.default=f,a.registerPlotType("area",f)},{"../../base/global":392,"../../base/view-layer":395,"../../geoms/factory":430,"../../util/scale":712,"../../util/view":715,"./apply-responsive":451,"./component/label/area-point":453,"./component/label/area-point-auto":452,"./event":454,"./theme":457,"@antv/util":803,tslib:894}],457:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.DEFAULT_AREA_THEME=void 0;var n=t("../../theme");i.DEFAULT_AREA_THEME={areaStyle:{normal:{},active:function(t){return{opacity:t.opacity||1}},disable:function(t){return{opacity:.5*(t.opacity||1)}},selected:{lineWidth:1,stroke:"#333333"}},lineStyle:{normal:{},active:function(t){return{opacity:t.opacity||1}},disable:function(t){return{opacity:.5*(t.opacity||1)}},selected:function(t){return{lineWidth:(t.lineWidth||1)+2}}},pointStyle:{normal:{},active:function(t){var e=t.fill||t.fillStyle,i=t.size||t.radius;return{radius:i+1,shadowBlur:i,shadowColor:e,stroke:e,strokeOpacity:1,lineWidth:1}},disable:function(t){return{opacity:.5*(t.opacity||t.fillOpacity||1)}},selected:function(t){var e=t.fill||t.fillStyle,i=t.size||t.radius;return{radius:i+2,shadowBlur:i,shadowColor:e,stroke:e,strokeOpacity:1,lineWidth:2}}},label:{darkStyle:{fill:"#2c3542",stroke:"#ffffff",fillOpacity:.85},lightStyle:{fill:"#ffffff",fillOpacity:1,stroke:"#2c3542"}}},n.registerTheme("area",i.DEFAULT_AREA_THEME)},{"../../theme":669}],458:[function(t,e,i){arguments[4][450][0].apply(i,arguments)},{"../../../util/responsive/apply/axis":682,dup:450,tslib:894}],459:[function(t,e,i){arguments[4][451][0].apply(i,arguments)},{"./axis":458,dup:451,tslib:894}],460:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../../components/label/base"),o=t("../../../dependents"),s=n.__importDefault(t("./label")),l=t("../../../util/view"),u=n.__importDefault(t("../../../util/bbox")),c=t("../../../util/color"),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getPosition=function(t){var e=this.getDefaultOffset(),i=this.getValue(t),n=this.getElementShapeBBox(t),r=n.minX,a=n.maxX,o=n.minY,s=n.height,l=this.options;return{x:(i>0?a:r)+e*(i<0?-1:1)+l.offsetX,y:o+s/2+l.offsetY}},e.prototype.getTextAlign=function(t){return this.getValue(t)>0?"left":"right"},e.prototype.getTextFill=function(t){return this.options.style.fill},e.prototype.getTextStroke=function(t){},e.prototype.adjustLabel=function(t,e){},e.prototype.layoutLabels=function(t,e){this.shouldInShapeLabels(e)&&this.inShapeLabels(t,e),this.autoHideLabels(t,e)},e.prototype.shouldInShapeLabels=function(t){var e=this;return r.every(t,(function(t){var i=t.getBBox(),n=t.get("element");return e.getElementShapeBBox(n).height>=i.height}))},e.prototype.inShapeLabels=function(t,e){var i=this,n=this.getCoordinateBBox(),a=t.getXYFields()[0],s=this.options,p=s.darkStyle,h=s.lightStyle,f=r.groupBy(e,(function(t){return t.get(o.ORIGIN)[o.FIELD_ORIGIN][a]}));r.each(e,(function(t){var e=f[t.get(o.ORIGIN)[o.FIELD_ORIGIN][a]]||[],s=t.get("element"),d=s.shape,g=c.isContrastColorWhite(d.attr("fill")),v=i.getElementShapeBBox(s),y=u.default.fromBBoxObject(t.getBBox());(l.getOverlapArea(n,v)<=0&&t.set("visible",!1),y.width>v.width)?r.findIndex(e,(function(e){return e===t}))!==e.length-1&&t.set("visible",!1):(t.attr({x:v.x+v.width/2,textAlign:"center"}),y.width>v.width||y.height>v.height?t.attr({stroke:null==h?void 0:h.stroke}):t.attr({fill:g?null==h?void 0:h.fill:null==p?void 0:p.fill,fillOpacity:g?null==h?void 0:h.fillOpacity:null==p?void 0:p.fillOpacity,stroke:void 0}))}))},e.prototype.autoHideLabels=function(t,e){var i,n=this.getCoordinateBBox(),a=this.filterLabels(e),s=t.getXYFields()[0],u=[],c=[],p=r.groupBy(a,(function(t){return t.get(o.ORIGIN)[o.FIELD_ORIGIN][s]})),h=r.uniq(r.map(a,(function(t){return t.get(o.ORIGIN)[o.FIELD_ORIGIN][s]})));for(r.size(h)>0&&(i=h.shift(),r.each(p[i],(function(t){return c.push(t)}))),r.size(h)>0&&(i=h.pop(),r.each(p[i],(function(t){return c.push(t)}))),r.each(h.reverse(),(function(t){r.each(p[t],(function(t){return c.push(t)}))}));c.length>0;){var f=c.shift();f.get("visible")&&(l.moveInPanel(f,n),l.checkShapeOverlap(f,u)?f.set("visible",!1):u.push(f))}},e.prototype.filterLabels=function(t){var e=[],i=Math.max(Math.floor(t.length/500),1);return r.each(t,(function(t,n){n%i==0?e.push(t):t.set("visible",!1)})),e},e}(s.default);i.default=p,a.registerLabelComponent("bar-auto",p)},{"../../../components/label/base":414,"../../../dependents":425,"../../../util/bbox":672,"../../../util/color":673,"../../../util/view":715,"./label":461,"@antv/util":803,tslib:894}],461:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../../dependents"),o=n.__importStar(t("../../../components/label/base")),s=t("../../../util/color"),l=n.__importDefault(t("../../../util/bbox")),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getLabelItemAttrs=function(t,e){var i,o=this.options,s=o.style,l=o.formatter,u=[].concat(t.getModel().mappingData),c=this.getValue(t);return r.deepMix({},s,n.__assign(n.__assign({},this.getPosition(t)),{text:l?l(c,(i={},i[a._ORIGIN]=u[0]._origin,i.mappingDatum=u[0],i.mappingDatumIndex=0,i.element=t,i.elementIndex=e,i),e):c,fill:this.getTextFill(t),stroke:this.getTextStroke(t),textAlign:this.getTextAlign(t),textBaseline:this.getTextBaseline()}))},e.prototype.adjustLabel=function(t,e){var i=this.options,n=i.adjustPosition,r=i.style;if(n){var a=this.getDefaultOffset(),o=t.getBBox(),s=this.getElementShapeBBox(e);if(s.width<=o.width){var l=s.maxX+this.options.offsetX+a;t.attr("x",l),t.attr("fill",r.fill)}}},e.prototype.getDefaultOptions=function(){var t=this.layer.theme.label,e=void 0===t?{}:t;return n.__assign({offsetX:0,offsetY:0,adjustPosition:!0},e)},e.prototype.getValue=function(t){return r.get(t.getData(),this.layer.options.xField)},e.prototype.getPosition=function(t){var e,i=this.getDefaultOffset(),n=this.getValue(t),r=this.getElementShapeBBox(t),a=r.minX,o=r.maxX,s=r.minY,l=r.height,u=r.width,c=this.options,p=c.offsetX,h=c.offsetY,f=c.position,d=n<0?-1:1;if("left"===f)e=(n>0?a:o)+i*d+p;else if("right"===f){e=(n>0?o:a)+i*d+p}else e=a+u/2+p;return{x:e,y:s+l/2+h}},e.prototype.getTextFill=function(t){var e=t.shape;if(this.options.adjustColor&&"right"!==this.options.position){var i=e.attr("fill"),n=e.attr("opacity")?e.attr("opacity"):1,r=s.rgb2arr(i),a=Math.round(.299*r[0]+.587*r[1]+.114*r[2])/n;return s.mappingColor([{from:0,to:85,color:"white"},{from:85,to:170,color:"#F6F6F6"},{from:170,to:255,color:"black"}],a)}return this.options.style.fill},e.prototype.getTextStroke=function(t){var e=this.getTextFill(t),i=this.options,n=i.position,r=i.adjustColor;return"right"!==n&&r&&"black"!==e?null:void 0},e.prototype.getTextAlign=function(t){var e=this.getValue(t),i=this.options.position;return e<0?{right:"right",left:"right",middle:"center"}[i]:{right:"left",left:"left",middle:"center"}[i]},e.prototype.getTextBaseline=function(){return"middle"},e.prototype.getElementShapeBBox=function(t){var e=this,i=t.shape,n=[];r.each(i.get("origin").points,(function(t){n.push(e.coord.convertPoint(t))}));var a=n.map((function(t){return t.x})),o=Math.min.apply(Math,a),s=Math.max.apply(Math,a),u=n.map((function(t){return t.y})),c=Math.min.apply(Math,u),p=Math.max.apply(Math,u);return new l.default(o,c,s-o,p-c)},e.prototype.getLabelOffset=function(){return{x:0,y:0}},e}(o.default);i.default=u,o.registerLabelComponent("bar",u)},{"../../../components/label/base":414,"../../../dependents":425,"../../../util/bbox":672,"../../../util/color":673,"@antv/util":803,tslib:894}],462:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.onEvent=i.EVENT_MAP=void 0;var n=t("@antv/util"),r=t("../../util/event");Object.defineProperty(i,"EVENT_MAP",{enumerable:!0,get:function(){return r.EVENT_MAP}}),Object.defineProperty(i,"onEvent",{enumerable:!0,get:function(){return r.onEvent}});var a=r.getEventMap({bar:"interval"});n.assign(r.EVENT_MAP,a)},{"../../util/event":677,"@antv/util":803}],463:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="bar",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":464,"@antv/util":803,tslib:894}],464:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importDefault(t("../../base/view-layer")),s=t("../../components/factory"),l=n.__importDefault(t("../../components/conversion-tag")),u=t("../../geoms/factory"),c=t("../../util/scale"),p=n.__importDefault(t("./apply-responsive"));t("./theme"),t("./component/label"),t("./component/label-auto");var h=n.__importStar(t("./event")),f=t("../../util/view"),d={bar:"interval"},g={interval:"bar"},v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bar",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{xAxis:{visible:!0,line:{visible:!1},title:{visible:!0},label:{visible:!1},tickLine:{visible:!1},grid:{visible:!1},nice:!0},yAxis:{visible:!0,grid:{visible:!1},line:{visible:!1},tickLine:{visible:!1},label:{visible:!0,autoRotate:!1,autoHide:!0},title:{visible:!1,spacing:12}},tooltip:{visible:!0,shared:!0,showCrosshairs:!1,showMarkers:!1},label:{visible:!0,position:"left",adjustColor:!0},legend:{visible:!1,position:"top-left"},interactions:[{type:"tooltip"},{type:"active-region"},{type:"legend-active"},{type:"legend-filter"}],conversionTag:{visible:!1}})},e.prototype.beforeInit=function(){t.prototype.beforeInit.call(this);var e=this.options;e.responsive&&"auto"!==e.padding&&this.applyResponsive("preRender")},e.prototype.afterRender=function(){var e=this.options;this.renderLabel(),e.responsive&&"auto"!==e.padding&&this.applyResponsive("afterRender"),e.conversionTag.visible&&(this.conversionTag=new l.default(n.__assign({view:this.view,field:e.xField,animation:!1!==e.animation},e.conversionTag))),t.prototype.afterRender.call(this)},e.prototype.geometryParser=function(t,e){return"g2"===t?d[e]:g[e]},e.prototype.processData=function(t){var e=t?t.slice().reverse():t,i=this.options.yField,n=[];return r.each(e,(function(t){var e=r.clone(t);e[i]=e[i].toString(),n.push(e)})),n},e.prototype.scale=function(){var e=this.options,i={};i[e.yField]={type:"cat"},r.has(e,"yAxis")&&c.extractScale(i[e.yField],e.yAxis),i[e.xField]={},r.has(e,"xAxis")&&c.extractScale(i[e.xField],e.xAxis),this.setConfig("scales",i),t.prototype.scale.call(this)},e.prototype.coord=function(){this.setConfig("coordinate",{actions:[["transpose"]]})},e.prototype.axis=function(){var t=s.getComponent("axis",{plot:this,dim:"x"}),e=s.getComponent("axis",{plot:this,dim:"y"});t&&(t.position="left"),e&&(e.position="bottom");var i={};i[this.options.xField]=t,i[this.options.yField]=e,this.setConfig("axes",i)},e.prototype.adjustBar=function(t){return null},e.prototype.addGeometry=function(){var t=this.options,e=u.getGeom("interval","main",{positionFields:[t.yField,t.xField],plot:this});t.conversionTag.visible&&this.setConfig("theme",r.deepMix({},this.getTheme(),{columnWidthRatio:1/3})),this.adjustBar(e),this.bar=e,t.tooltip&&(t.tooltip.fields||t.tooltip.formatter)&&this.geometryTooltip(),this.setConfig("geometry",e)},e.prototype.animation=function(){t.prototype.animation.call(this),!1===this.options.animation&&(this.bar.animate=!1)},e.prototype.parseEvents=function(){t.prototype.parseEvents.call(this,h)},e.prototype.renderLabel=function(){var t=this.config.scales,e=this.options,i=e.label,r=t[e.xField];if(null==i?void 0:i.visible){var a=f.getGeometryByType(this.view,"interval");this.doRenderLabel(a,n.__assign({type:"bar",formatter:r.formatter&&function(t){return r.formatter(t)}},this.options.label))}},e.prototype.geometryTooltip=function(){this.bar.tooltip={};var t=this.options.tooltip;t.fields&&(this.bar.tooltip.fields=t.fields),t.formatter&&(this.bar.tooltip.callback=t.formatter,t.fields||(this.bar.tooltip.fields=[this.options.xField,this.options.yField],this.options.colorField&&this.bar.tooltip.fields.push(this.options.colorField)))},e.prototype.applyResponsive=function(t){var e=this,i=p.default[t];r.each(i,(function(t){t.method(e)}))},e.prototype.getLabelOptionsByPosition=function(t){return"middle"===t?{offset:0}:"left"===t?{offset:7,style:{stroke:null,lineWidth:0}}:"right"===t?{offset:4}:void 0},e}(o.default);i.default=v,a.registerPlotType("bar",v)},{"../../base/global":392,"../../base/view-layer":395,"../../components/conversion-tag":410,"../../components/factory":412,"../../geoms/factory":430,"../../util/scale":712,"../../util/view":715,"./apply-responsive":459,"./component/label":461,"./component/label-auto":460,"./event":462,"./theme":465,"@antv/util":803,tslib:894}],465:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.DEFAULT_BAR_THEME=void 0;var n=t("../../theme");i.DEFAULT_BAR_THEME={label:{darkStyle:{fill:"#2c3542",stroke:"#ffffff",fillOpacity:.85},lightStyle:{fill:"#ffffff",stroke:"#ffffff",fillOpacity:1}},columnStyle:{normal:{},active:function(t){return{opacity:.5*(t.opacity||1)}},disable:function(t){return{opacity:.5*(t.opacity||1)}},selected:{lineWidth:1,stroke:"black"}}},n.registerTheme("bar",i.DEFAULT_BAR_THEME)},{"../../theme":669}],466:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="bubble",t.prototype.createLayers.call(this,i)},e.prototype.getSizeScale=function(){return this.layers[0].getSizeScale()},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":467,"@antv/util":803,tslib:894}],467:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importStar(t("../scatter/event")),s=n.__importDefault(t("../scatter/layer"));t("./shape"),t("./theme");var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bubble",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{pointSize:[2,32],pointStyle:{stroke:null,strokeOpacity:1,fillOpacity:.5},label:{position:"middle",style:{stroke:"#fff",lineWidth:2}},shape:"bubble-point"})},e.prototype.getSizeScale=function(){var t=this.options.sizeField;t&&this.view.getScaleByField(t)},e.prototype.legend=function(){var e;t.prototype.legend.call(this),this.options.legend&&!1===this.options.legend.visible||this.setConfig("legends",((e={})[this.options.sizeField]=!1,e))},e.prototype.parseEvents=function(){t.prototype.parseEvents.call(this,o)},e}(s.default);i.default=l,a.registerPlotType("bubble",l)},{"../../base/global":392,"../scatter/event":603,"../scatter/layer":605,"./shape":468,"./theme":469,"@antv/util":803,tslib:894}],468:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/g2"),r=t("@antv/g2/lib/geometry/shape/point/util");n.registerShape("point","bubble-point",{draw:function(t,e){var i=r.drawPoints(this,t,e,"circle",!1);if(!t.style.stroke){var n=i.attr("fill");i.attr("stroke",n)}return i},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},{"@antv/g2":309,"@antv/g2/lib/geometry/shape/point/util":295}],469:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});t("../../theme").registerTheme("bubble",{pointStyle:{normal:{},active:function(t){return{stroke:t.stroke||"#000",fillOpacity:t.fillOpacity||t.opacity||.95}},selected:function(t){return{stroke:t.stroke||"#000",lineWidth:t.lineWidth||2}},inactive:function(t){return{fillOpacity:t.fillOpacity||t.opacity||.3}}}})},{"../../theme":669}],470:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../../util/bbox")),o=function(){function t(t,e){this.view=t,this.cfg=e,this._init()}return t.prototype.draw=function(){if(this.view&&!this.view.destroyed){this.container=this.view.middleGroup.addGroup(),this.container.set("name","rectGroups"),this.container.setZIndex(-100);for(var t=this.getGeometry(),e=r.map(null==t?void 0:t.elements,(function(t){return t.shape})),i=0;i<this.cfg.ranges.length;i+=1){var n=e[i].getBBox(),a=n.width/e[i].get("origin").data[this.cfg.yField];this.drawRect(n,this.cfg.ranges[i]||[0,1],a)}this.view.canvas.draw()}},t.prototype.drawRect=function(t,e,i){for(var n=this.cfg,r=n.rangeColors,o=t.minX,s=t.minY-t.height*(n.rangeSize-1)/2,l=1;l<e.length;l+=1){var u=(e[l]-e[l-1])*n.rangeMax*i;this.container.addShape("rect",{name:"bullet-rect",attrs:{width:u,height:t.height*n.rangeSize,x:o,y:s,fill:r[(l-1)%r.length],fillOpacity:.25}}).set("zIndex",-1),o+=u}if(n.axis&&n.axis.visible){var c=n.rangeMax/(n.axis.tickCount-1),p=new a.default(t.x,s,o,t.height*n.rangeSize);this.drawBulletTicks(p,c,i)}},t.prototype.drawBulletTicks=function(t,e,i){for(var a=this.cfg,o=a.axis.style,s=a.axis.tickCount,l=a.axis.position,u=r.get(o,"lineHeight",0)-o.fontSize/2,c=0;c<s;c+=1){var p=t.minX+e*c*i,h=""+e*c;if(a.axis.formatter&&(h=a.axis.formatter(h,c)),this.container.addShape("text",{name:"tick",attrs:n.__assign({x:p,y:"before"===l?t.minY-u:t.maxY+u,text:""+h},o)}),a.axis.tickLine&&a.axis.tickLine.visible){var f=a.axis.tickLine;c>0&&c!==s-1&&this.container.addShape("path",{attrs:n.__assign({path:[["M",p,t.minY],["L",p,t.maxY]]},f)}).set("zIndex",-1)}}},t.prototype.clear=function(){this.container&&this.container.clear()},t.prototype.destroy=function(){this.container&&this.container.remove()},t.prototype._init=function(){var t=this;this.view.on("beforerender",(function(){t.clear()})),this.view.on("afterrender",(function(){t.draw()}))},t.prototype.getGeometry=function(){return r.find(this.view.geometries,(function(t){return"interval"===t.type}))},t}();i.default=o},{"../../../util/bbox":672,"@antv/util":803,tslib:894}],471:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(){function t(t,e){this.view=t,this.cfg=e,this._init()}return t.prototype.draw=function(){if(this.view&&!this.view.destroyed){this.container=this.view.foregroundGroup.addGroup(),this.container.set("name","targetGroups");for(var t=r.map(this.getGeometry().elements,(function(t){return t.shape})),e=0;e<this.cfg.targets.length;e+=1){var i=t[e].getBBox(),n=i.width/t[e].get("origin").data[this.cfg.yField];this.drawTarget(i,this.cfg.targets[e],n)}this.view.canvas.draw()}},t.prototype.drawTarget=function(t,e,i){var r=this,a=this.cfg,o=a.markerColors;e.forEach((function(e,s){var l=a.markerStyle;r.container.addShape("rect",{name:"bullet-target",attrs:n.__assign(n.__assign({width:l.width,height:t.height*a.markerSize-l.width/2,x:t.minX+e*i,y:t.minY-t.height*(a.markerSize-1)/2},l),{fill:o[s%o.length]||l.fill})})}))},t.prototype.clear=function(){this.container&&this.container.clear()},t.prototype.destroy=function(){this.container&&this.container.remove()},t.prototype._init=function(){var t=this;this.view.on("beforerender",(function(){t.clear()})),this.view.on("afterrender",(function(){t.draw()}))},t.prototype.getGeometry=function(){return r.find(this.view.geometries,(function(t){return"interval"===t.type}))},t}();i.default=a},{"@antv/util":803,tslib:894}],472:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.onEvent=i.EVENT_MAP=void 0;var n=t("@antv/util"),r=t("../../util/event");Object.defineProperty(i,"EVENT_MAP",{enumerable:!0,get:function(){return r.EVENT_MAP}}),Object.defineProperty(i,"onEvent",{enumerable:!0,get:function(){return r.onEvent}});var a=r.getEventMap({bullet:"interval",bulletTarget:"bullet-target"});n.assign(r.EVENT_MAP,a)},{"../../util/event":677,"@antv/util":803}],473:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="bullet",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":474,"@antv/util":803,tslib:894}],474:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.Y_FIELD=i.X_FIELD=i.STACK_FIELD=void 0;var n=t("tslib"),r=t("@antv/util"),a=n.__importStar(t("./event")),o=n.__importDefault(t("../../base/view-layer")),s=t("../../util/scale"),l=t("../../components/factory"),u=t("../../geoms/factory"),c=t("../../base/global"),p=n.__importDefault(t("./component/bulletRect")),h=n.__importDefault(t("./component/bulletTarget"));t("./theme");var f={bullet:"interval"},d={interval:"bullet"};i.STACK_FIELD="$$stackField$$",i.X_FIELD="$$xField$$",i.Y_FIELD="$$yField$$";var g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{data:[],stackField:i.STACK_FIELD,xField:i.X_FIELD,yField:i.Y_FIELD,rangeColors:["rgba(91, 143, 249, 0.45)"],measureSize:12,rangeSize:2,markerSize:2,markerColors:[],markerStyle:{width:2,fill:"#5B8FF9",lineWidth:0},axis:{visible:!1,position:"before",tickCount:6,formatter:function(t,e){return""+e},style:{fill:"rgba(0, 0, 0, 0.25)",textBaseline:"middle",textAlign:"center",fontSize:12,lineHeight:16},tickLine:{visible:!0,lineWidth:1,stroke:"#FFF",lineDash:[4,2]}},xAxis:{visible:!0,line:{visible:!1},tickLine:{visible:!1},label:{visible:!0}},yAxis:{visible:!1,nice:!1},tooltip:{visible:!1,trigger:"item",crosshairs:!1},label:{visible:!0,offset:4,style:{fill:"rgba(0, 0, 0, 0.45)",stroke:"#fff",lineWidth:1}}})},e.prototype.afterRender=function(){t.prototype.afterRender.call(this),this.view.removeInteraction("legend-filter")},e.prototype.scale=function(){var e=this.options,i={};i[e.yField]={},r.has(e,"yAxis")&&s.extractScale(i[e.yField],e.yAxis),i[e.xField]={type:"cat"},r.has(e,"xAxis")&&s.extractScale(i[e.xField],e.xAxis),this.setConfig("scales",i),t.prototype.scale.call(this)},e.prototype.getOptions=function(e){var i=t.prototype.getOptions.call(this,e);return this.adjustOptions(i),i},e.prototype.afterInit=function(){t.prototype.afterInit.call(this);var e=this.options,i=e.data.map((function(t){return t.ranges})),n=e.data.map((function(t){return t.targets}));this.bulletRect=new p.default(this.view,{ranges:i,rangeMax:e.rangeMax,yField:e.yField,rangeSize:e.rangeSize,rangeColors:e.rangeColors||[],axis:e.axis}),this.bulletTarget=new h.default(this.view,{targets:n,yField:e.yField,markerSize:e.markerSize,markerColors:e.markerColors||[],markerStyle:e.markerStyle})},e.prototype.geometryParser=function(t,e){return"g2"===t?f[e]:d[e]},e.prototype.coord=function(){this.setConfig("coordinate",{actions:[["transpose"]]})},e.prototype.legend=function(){var t=this.options,e=t.markerStyle.fill,i=[{name:"实际进度",value:"实际进度",marker:{symbol:"square",style:{fill:(t.measureColors||this.theme.colors)[0]}}},{name:"目标值",value:"目标值",marker:{symbol:"line",style:{stroke:e,lineWidth:2}}}],r=n.__assign({custom:!0,position:"bottom",items:i},t.legend);this.setConfig("legends",r)},e.prototype.addGeometry=function(){var t=this.options,e=u.getGeom("interval","main",{positionFields:[t.xField,t.yField],plot:this});e.adjust=[{type:"stack"}],t.label&&(e.label=this.extractLabel()),this.bullet=e,this.setConfig("geometry",e)},e.prototype.parseEvents=function(){t.prototype.parseEvents.call(this,a)},e.prototype.extractLabel=function(){var t=this.options,e=r.deepMix({},t.label);return!1!==e.visible&&l.getComponent("label",n.__assign({plot:this,labelType:"barLabel",fields:[t.yField]},e))},e.prototype.adjustOptions=function(t){t.barSize=t.measureSize||12,this.adjustYAxisOptions(t)},e.prototype.adjustYAxisOptions=function(t){var e=[];t.data.forEach((function(t){return e.push(t.measures.reduce((function(t,e){return t+e}),0))})),e.push(t.rangeMax),t.yAxis.max=Math.max.apply([],e)},e.prototype.processData=function(t){var e=this.options,i=[];return t.forEach((function(t,n){for(var r,a=0;a<t.measures.length;a+=1){var o=t.measures[a],s=t.title||""+n;i.push(((r={})[e.xField]=s,r[e.yField]=o,r[e.stackField]=""+a,r))}})),i},e}(o.default);i.default=g,c.registerPlotType("bullet",g)},{"../../base/global":392,"../../base/view-layer":395,"../../components/factory":412,"../../geoms/factory":430,"../../util/scale":712,"./component/bulletRect":470,"./component/bulletTarget":471,"./event":472,"./theme":475,"@antv/util":803,tslib:894}],475:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});t("../../theme").registerTheme("bullet",{columnStyle:{normal:{},active:function(t){return{opacity:.5*(t.opacity||1),lineWidth:0}},disable:function(t){return{opacity:.5*(t.opacity||1)}},selected:{}}})},{"../../theme":669}],476:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.WEEKS=i.MONTHS=i.FORMATTER=i.IS_MONTH_CENTER_FIELD=i.DATE_FIELD=i.WEEK_FIELD=i.DAY_FIELD=void 0,i.DAY_FIELD="$$day$$",i.WEEK_FIELD="$$week$$",i.DATE_FIELD="$$date$$",i.IS_MONTH_CENTER_FIELD="$$is_month_center$$",i.FORMATTER="YYYY-MM-DD",i.MONTHS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],i.WEEKS=["S","M","T","W","T","F","S"]},{}],477:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.onEvent=i.EVENT_MAP=void 0;var n=t("@antv/util"),r=t("../../util/event");Object.defineProperty(i,"EVENT_MAP",{enumerable:!0,get:function(){return r.EVENT_MAP}}),Object.defineProperty(i,"onEvent",{enumerable:!0,get:function(){return r.onEvent}});var a=r.getEventMap({rect:"polygon"});n.assign(r.EVENT_MAP,a)},{"../../util/event":677,"@antv/util":803}],478:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer"));t("./shape");var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="calendar",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":479,"./shape":480,"@antv/util":803,tslib:894}],479:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("fecha")),o=n.__importDefault(t("../../base/view-layer")),s=t("./constant"),l=t("./util"),u=t("../../base/global"),c=t("../../util/date"),p=t("../../components/factory"),h=n.__importStar(t("./event")),f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="calendar",e}return n.__extends(e,t),e.getDefaultOptions=function(){var e;return r.deepMix({},t.getDefaultOptions.call(this),{xAxis:{line:{visible:!1},grid:{visible:!1},tickLine:{visible:!1},label:{visible:!0,autoRotate:!1,autoHide:!1}},yAxis:{line:{visible:!1},grid:{visible:!1},tickLine:{visible:!1},label:{visible:!0,autoRotate:!1,autoHide:!1}},legend:{visible:!1},meta:(e={},e[s.DAY_FIELD]={type:"cat",alias:"Day",values:[0,1,2,3,4,5,6]},e[s.WEEK_FIELD]={type:"cat",alias:"Month"},e),tooltip:{visible:!0,showTitle:!0,showCrosshairs:!1,showMarkers:!1,title:"date"}})},e.prototype.processData=function(t){var e=this.options.dateField,i=this.options.dateRange;if(r.isNil(i)){var n=r.map(t,(function(t){return a.default.parse(""+t[e],s.FORMATTER)}));i=c.getDateRange(n)}return l.generateCalendarData(t,i,e)},e.prototype.addGeometry=function(){var t=this.options,e=t.valueField,i=t.colors,n=t.tooltip,r={type:"polygon",position:{fields:[s.WEEK_FIELD,s.DAY_FIELD]},shape:{values:["calendar-polygon"]},color:{fields:[e],values:i},label:this.extractLabel()};n&&(n.fields||n.formatter)&&this.geometryTooltip(r),this.setConfig("geometry",r)},e.prototype.geometryTooltip=function(t){t.tooltip={};var e=this.options.tooltip;e.fields&&(t.tooltip.fields=e.fields),e.formatter&&(t.tooltip.callback=e.formatter,e.fields||(t.tooltip.fields=[s.WEEK_FIELD,s.DAY_FIELD]))},e.prototype.extractLabel=function(){var t=this.options.label;if(t&&!1===t.visible)return!1;var e=this.options.valueField;return p.getComponent("label",n.__assign({plot:this,fields:[e],position:"top",offset:0},t))},e.prototype.coord=function(){this.setConfig("coordinate",{type:"rect",cfg:{},actions:[["reflect","y"]]})},e.prototype.geometryParser=function(){return""},e.prototype.axis=function(){var t=p.getComponent("axis",{plot:this,dim:"x"}),e=p.getComponent("axis",{plot:this,dim:"y"}),i={};i[s.WEEK_FIELD]=t,i[s.DAY_FIELD]=e,this.setConfig("axes",i)},e.prototype.scale=function(){t.prototype.scale.call(this);var e=l.getMonthCenterWeek(this.options.dateRange),i=this.config.scales,n=this.options,a=n.weeks,o=void 0===a?s.WEEKS:a,u=n.months,c=void 0===u?s.MONTHS:u,p=i[s.WEEK_FIELD],h=i[s.DAY_FIELD];p.formatter=function(t){var i=e[t];return void 0!==i?c[i]:""},h.formatter=function(t){return o[t]||""};var f=this.options,d=f.xAxis,g=f.yAxis;p.alias=r.get(d,["title","text"],p.alias),h.alias=r.get(g,["title","text"],h.alias),this.setConfig("scales",i)},e.prototype.parseEvents=function(){t.prototype.parseEvents.call(this,h)},e}(o.default);i.default=f,u.registerPlotType("calendar",f)},{"../../base/global":392,"../../base/view-layer":395,"../../components/factory":412,"../../util/date":676,"./constant":476,"./event":477,"./util":481,"@antv/util":803,fecha:881,tslib:894}],480:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("@antv/g2"),o=t("./constant"),s=t("../../util/date");a.registerShape("polygon","calendar-polygon",{draw:function(t,e){if(!r.isEmpty(t.points)){var i=t.points,a=[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",i[2].x,i[2].y],["L",i[3].x,i[3].y],["Z"]];a=this.parsePath(a);var l=n.__assign(n.__assign({stroke:"#fff",lineWidth:1,fill:t.color},t.style),{path:a}),u=e.addShape("path",{attrs:l}),c=t.data[o.DATE_FIELD];if(s.isLastWeekOfMonth(c)){var p=[["M",i[2].x,i[2].y],["L",i[3].x,i[3].y]];e.addShape("path",{zIndex:1,attrs:{path:this.parsePath(p),lineWidth:1,stroke:"#404040"}}),s.isLastDayOfMonth(c)&&e.addShape("path",{zIndex:1,attrs:{path:this.parsePath([["M",i[1].x,i[1].y],["L",i[2].x,i[2].y]]),lineWidth:1,stroke:"#404040"}})}return e.sort(),u}}})},{"../../util/date":676,"./constant":476,"@antv/g2":309,"@antv/util":803,tslib:894}],481:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getMonthCenterWeek=i.generateCalendarData=void 0;var n=t("tslib"),r=n.__importDefault(t("fecha")),a=t("@antv/util"),o=t("./constant"),s=t("../../util/date");function l(t){var e,i=t[0],n=t[1],a=r.default.parse(i,o.FORMATTER),s=r.default.parse(n,o.FORMATTER);return a>s&&(s=(e=[a,s])[0],a=e[1]),[a,s]}i.generateCalendarData=function(t,e,i){for(var u=[],c=l(e),p=c[0],h=c[1],f=new Date(p),d=function(){var e,l=r.default.format(f,o.FORMATTER),c=a.find(t,(function(t){return t[i]===l}));u.push(n.__assign(((e={})[o.DAY_FIELD]=s.getDay(f),e[o.WEEK_FIELD]=""+s.getWeek(f),e[i]=l,e[o.DATE_FIELD]=new Date(f),e),c)),s.advanceBy(f,s.DAY_MS)};f<=h;)d();return u},i.getMonthCenterWeek=function(t){var e=l(t),i=e[0],n=e[1],r=new Map;function o(t){var e=t.getMonth(),i=s.getWeek(t);r.has(e)||r.set(e,[]),r.get(e).push(i)}for(var u=new Date(i);u<=n;)o(u),s.advanceBy(u,7*s.DAY_MS);n<u&&o(n);var c={};return r.forEach((function(t,e){var i=Math.ceil((a.head(t)+a.last(t))/2);c[i]=e})),c}},{"../../util/date":676,"./constant":476,"@antv/util":803,fecha:881,tslib:894}],482:[function(t,e,i){arguments[4][450][0].apply(i,arguments)},{"../../../util/responsive/apply/axis":682,dup:450,tslib:894}],483:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importDefault(t("./axis")),a=n.__importDefault(t("./label")),o=[{name:"responsiveAxis",method:r.default},{name:"responsiveLabel",method:a.default}];i.default={preRender:[],afterRender:o}},{"./axis":482,"./label":484,tslib:894}],484:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getType=function(){return r.get(this.plot.options,["label","position"],"inner")},e}(n.__importDefault(t("../../../util/responsive/apply/label")).default);i.default=function(t){var e=t.getResponsiveTheme();new a({plot:t,responsiveTheme:e})}},{"../../../util/responsive/apply/label":684,"@antv/util":803,tslib:894}],485:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});t("../../../util/responsive/theme").registerResponsiveTheme("column",{label:{top:{constraints:[{name:"elementCollision"}],rules:{elementCollision:[{name:"nodeJitterUpward"},{name:"nodesResamplingByState",option:{keep:["min","max","median"]}},{name:"textHide"}]}}}})},{"../../../util/responsive/theme":711}],486:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../../components/label/base"),o=t("../../../dependents"),s=n.__importDefault(t("./label")),l=t("../../../util/view"),u=n.__importDefault(t("../../../util/bbox")),c=t("../../../util/color"),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getPosition=function(t){var e=this.getDefaultOffset(),i=this.getValue(t),n=this.getElementShapeBBox(t),r=n.minX,a=n.minY,o=n.maxY,s=n.width,l=this.options;return{x:r+s/2+l.offsetX,y:(i>0?a:o)+e*(i>0?-1:1)+l.offsetY}},e.prototype.getTextFill=function(t){return this.options.style.fill},e.prototype.getTextStroke=function(t){},e.prototype.adjustLabel=function(t,e){},e.prototype.layoutLabels=function(t,e){this.shouldInShapeLabels(e)&&this.inShapeLabels(t,e),this.autoHideLabels(t,e)},e.prototype.shouldInShapeLabels=function(t){var e=this;return r.every(t,(function(t){var i=t.getBBox(),n=t.get("element");return e.getElementShapeBBox(n).width>=i.width}))},e.prototype.inShapeLabels=function(t,e){var i=this,n=this.getCoordinateBBox(),a=t.getXYFields()[0],s=this.options,p=s.darkStyle,h=s.lightStyle,f=r.groupBy(e,(function(t){return t.get(o.ORIGIN)[o.FIELD_ORIGIN][a]}));r.each(e,(function(t){var e=f[t.get(o.ORIGIN)[o.FIELD_ORIGIN][a]]||[],s=t.get("element"),d=s.shape,g=c.isContrastColorWhite(d.attr("fill")),v=i.getElementShapeBBox(s),y=u.default.fromBBoxObject(t.getBBox());(l.getOverlapArea(n,v)<=0&&t.set("visible",!1),y.height>v.height)?0!==r.findIndex(e,(function(e){return e===t}))&&t.set("visible",!1):(t.attr({y:v.y+v.height/2,textBaseline:"middle"}),y.width>v.width||y.height>v.height?t.attr({stroke:null==h?void 0:h.stroke}):t.attr({fill:g?null==h?void 0:h.fill:null==p?void 0:p.fill,fillOpacity:g?null==h?void 0:h.fillOpacity:null==p?void 0:p.fillOpacity,stroke:void 0}))}))},e.prototype.autoHideLabels=function(t,e){var i,n=this.getCoordinateBBox(),a=this.filterLabels(e),s=t.getXYFields()[0],u=[],c=[],p=r.groupBy(a,(function(t){return t.get(o.ORIGIN)[o.FIELD_ORIGIN][s]})),h=r.uniq(r.map(a,(function(t){return t.get(o.ORIGIN)[o.FIELD_ORIGIN][s]})));for(r.size(h)>0&&(i=h.shift(),r.each(p[i],(function(t){return c.push(t)}))),r.size(h)>0&&(i=h.pop(),r.each(p[i],(function(t){return c.push(t)}))),r.each(h.reverse(),(function(t){r.each(p[t],(function(t){return c.push(t)}))}));c.length>0;){var f=c.shift();f.get("visible")&&(l.moveInPanel(f,n),l.checkShapeOverlap(f,u)?f.set("visible",!1):u.push(f))}},e.prototype.filterLabels=function(t){var e=[],i=Math.max(Math.floor(t.length/500),1);return r.each(t,(function(t,n){n%i==0?e.push(t):t.set("visible",!1)})),e},e}(s.default);i.default=p,a.registerLabelComponent("column-auto",p)},{"../../../components/label/base":414,"../../../dependents":425,"../../../util/bbox":672,"../../../util/color":673,"../../../util/view":715,"./label":487,"@antv/util":803,tslib:894}],487:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../../dependents"),o=n.__importStar(t("../../../components/label/base")),s=t("../../../util/color"),l=n.__importDefault(t("../../../util/bbox")),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getLabelItemAttrs=function(t,e){var i,o,s=this.options,l=s.style,u=s.formatter,c=[].concat(t.getModel().mappingData),p=this.getValue(t);return r.deepMix({},l,n.__assign(n.__assign({},this.getPosition(t)),{text:u?u(p,(i={},i[a._ORIGIN]=null===(o=c[0])||void 0===o?void 0:o._origin,i.mappingDatum=c[0],i.mappingDatumIndex=0,i.element=t,i.elementIndex=e,i),e):p,fill:this.getTextFill(t),stroke:this.getTextStroke(t),textAlign:this.getTextAlign(),textBaseline:this.getTextBaseLine()}))},e.prototype.getDefaultOptions=function(){var t=this.layer.theme.label,e=void 0===t?{}:t;return n.__assign({offsetX:0,offsetY:0,adjustPosition:!0},e)},e.prototype.adjustLabel=function(t,e){if(this.options.adjustPosition){var i=this.getDefaultOffset(),n=t.getBBox(),r=this.getElementShapeBBox(e);if(r.height<=n.height){var a=r.minY+this.options.offsetY-i;t.attr("y",a),t.attr("textBaseline","bottom"),t.attr("fill",this.options.style.fill)}}},e.prototype.getValue=function(t){return r.get(t.getData(),this.layer.options.yField)},e.prototype.getPosition=function(t){var e,i=this.getDefaultOffset(),n=this.getValue(t),r=this.getElementShapeBBox(t),a=r.minX,o=r.minY,s=r.maxY,l=r.height,u=r.width,c=this.options,p=c.offsetX,h=c.offsetY,f=c.position,d=n>0?-1:1;if("top"===f)e=(n>0?o:s)+i*d+h;else if("bottom"===f){e=(n>0?s:o)+i*d+h}else e=o+l/2+h;return{x:a+u/2+p,y:e}},e.prototype.getTextFill=function(t){var e=t.shape;if(this.options.adjustColor&&"top"!==this.options.position){var i=e.attr("fill"),n=e.attr("opacity")?e.attr("opacity"):1,r=s.rgb2arr(i),a=Math.round(.299*r[0]+.587*r[1]+.114*r[2])/n;return s.mappingColor([{from:0,to:85,color:"white"},{from:85,to:170,color:"#F6F6F6"},{from:170,to:255,color:"black"}],a)}return this.options.style.fill},e.prototype.getTextStroke=function(t){var e=this.getTextFill(t),i=this.options,n=i.position,r=i.adjustColor;return"top"!==n&&r&&"black"!==e?null:void 0},e.prototype.getElementShapeBBox=function(t){var e=this,i=t.shape,n=[];r.each(i.get("origin").points,(function(t){n.push(e.coord.convertPoint(t))}));var a=n.map((function(t){return t.x})),o=Math.min.apply(Math,a),s=Math.max.apply(Math,a),u=n.map((function(t){return t.y})),c=Math.min.apply(Math,u),p=Math.max.apply(Math,u);return new l.default(o,c,s-o,p-c)},e.prototype.getTextAlign=function(){return"center"},e.prototype.getTextBaseLine=function(){return"middle"},e.prototype.getLabelOffset=function(){return{x:0,y:0}},e}(o.default);i.default=u,o.registerLabelComponent("column",u)},{"../../../components/label/base":414,"../../../dependents":425,"../../../util/bbox":672,"../../../util/color":673,"@antv/util":803,tslib:894}],488:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.onEvent=i.EVENT_MAP=void 0;var n=t("@antv/util"),r=t("../../util/event");Object.defineProperty(i,"EVENT_MAP",{enumerable:!0,get:function(){return r.EVENT_MAP}}),Object.defineProperty(i,"onEvent",{enumerable:!0,get:function(){return r.onEvent}});var a=r.getEventMap({column:"interval"});n.assign(r.EVENT_MAP,a)},{"../../util/event":677,"@antv/util":803}],489:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="column",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":490,"@antv/util":803,tslib:894}],490:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importDefault(t("../../base/view-layer")),s=t("../../geoms/factory"),l=n.__importDefault(t("../../components/conversion-tag")),u=t("../../util/scale"),c=n.__importDefault(t("./apply-responsive"));t("./apply-responsive/theme"),t("./component/label"),t("./component/label-auto");var p=n.__importStar(t("./event"));t("./theme");var h=t("../../util/view"),f={column:"interval"},d={interval:"column"},g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="column",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{xAxis:{visible:!0,tickLine:{visible:!1},title:{visible:!0}},yAxis:{nice:!0,title:{visible:!0},label:{visible:!0},grid:{visible:!0}},tooltip:{visible:!0,shared:!0,showCrosshairs:!1,showMarkers:!1},label:{visible:!1,position:"top",adjustColor:!0},legend:{visible:!0,position:"top-left"},interactions:[{type:"tooltip"},{type:"active-region"},{type:"legend-active"},{type:"legend-filter"}],conversionTag:{visible:!1}})},e.prototype.beforeInit=function(){t.prototype.beforeInit.call(this),this.options.responsive&&"auto"!==this.options.padding&&this.applyResponsive("preRender")},e.prototype.afterRender=function(){var e=this.options;this.renderLabel(),this.options.responsive&&"auto"!==this.options.padding&&this.applyResponsive("afterRender"),e.conversionTag.visible&&(this.conversionTag=new l.default(n.__assign({view:this.view,field:e.yField,transpose:!0,animation:!1!==e.animation},e.conversionTag))),t.prototype.afterRender.call(this)},e.prototype.geometryParser=function(t,e){return"g2"===t?f[e]:d[e]},e.prototype.processData=function(t){var e=this.options.xField,i=[];return r.each(t,(function(t){var n=r.clone(t);n[e]=n[e].toString(),i.push(n)})),i},e.prototype.scale=function(){var e=this.options,i={};i[e.xField]={type:"cat"},r.has(e,"xAxis")&&u.extractScale(i[e.xField],e.xAxis),i[e.yField]={},r.has(e,"yAxis")&&u.extractScale(i[e.yField],e.yAxis),this.setConfig("scales",i),t.prototype.scale.call(this)},e.prototype.coord=function(){},e.prototype.adjustColumn=function(t){},e.prototype.addGeometry=function(){var t=this.options,e=s.getGeom("interval","main",{positionFields:[t.xField,t.yField],plot:this});t.conversionTag.visible&&this.setConfig("theme",r.deepMix({},this.getTheme(),{columnWidthRatio:1/3})),this.adjustColumn(e),this.column=e,t.tooltip&&(t.tooltip.fields||t.tooltip.formatter)&&this.geometryTooltip(),this.setConfig("geometry",e)},e.prototype.geometryTooltip=function(){this.column.tooltip={};var t=this.options.tooltip;t.fields&&(this.column.tooltip.fields=t.fields),t.formatter&&(this.column.tooltip.callback=t.formatter,t.fields||(this.column.tooltip.fields=[this.options.xField,this.options.yField],this.options.colorField&&this.column.tooltip.fields.push(this.options.colorField)))},e.prototype.animation=function(){t.prototype.animation.call(this),!1===this.options.animation&&(this.column.animate=!1)},e.prototype.parseEvents=function(){t.prototype.parseEvents.call(this,p)},e.prototype.renderLabel=function(){var t=this.config.scales,e=this.options,i=e.label,r=t[e.yField];if(null==i?void 0:i.visible){var a=h.getGeometryByType(this.view,"interval");this.doRenderLabel(a,n.__assign({type:"column",formatter:r.formatter&&function(t){return r.formatter(t)}},this.options.label))}},e.prototype.applyResponsive=function(t){var e=this,i=c.default[t];r.each(i,(function(t){t.method(e)}))},e}(o.default);i.default=g,a.registerPlotType("column",g)},{"../../base/global":392,"../../base/view-layer":395,"../../components/conversion-tag":410,"../../geoms/factory":430,"../../util/scale":712,"../../util/view":715,"./apply-responsive":483,"./apply-responsive/theme":485,"./component/label":487,"./component/label-auto":486,"./event":488,"./theme":491,"@antv/util":803,tslib:894}],491:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.DEFAULT_COLUMN_THEME=void 0;var n=t("../../theme");i.DEFAULT_COLUMN_THEME={label:{darkStyle:{fill:"#2c3542",stroke:"#ffffff",fillOpacity:.85},lightStyle:{fill:"#ffffff",stroke:"#ffffff",fillOpacity:1}},columnStyle:{normal:{},active:function(t){return{opacity:.5*(t.opacity||1)}},disable:function(t){var e=t.opacity||1;return{opacity:.5*e,fillOpacity:.5*e}},selected:{lineWidth:1,stroke:"black"}}},n.registerTheme("column",i.DEFAULT_COLUMN_THEME)},{"../../theme":669}],492:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../../base/plot")),o=n.__importDefault(t("warning")),s=n.__importDefault(t("../../grouped-bar/layer")),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="groupedBar",t.prototype.createLayers.call(this,i),o.default(!1,'Please use "GroupedBar" instead of "GroupBar" which was not recommended.')},e.getDefaultOptions=s.default.getDefaultOptions,e}(a.default);i.default=l},{"../../../base/plot":394,"../../grouped-bar/layer":529,"@antv/util":803,tslib:894,warning:895}],493:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../../base/plot")),o=n.__importDefault(t("warning")),s=n.__importDefault(t("../../grouped-column/layer")),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="groupedColumn",t.prototype.createLayers.call(this,i),o.default(!1,'Please use "GroupedColumn" instead of "GroupColumn" which was not recommended.')},e.getDefaultOptions=s.default.getDefaultOptions,e}(a.default);i.default=l},{"../../../base/plot":394,"../../grouped-column/layer":532,"@antv/util":803,tslib:894,warning:895}],494:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./ring");Object.defineProperty(i,"Ring",{enumerable:!0,get:function(){return n.default}});var r=t("./group-column");Object.defineProperty(i,"GroupColumn",{enumerable:!0,get:function(){return r.default}});var a=t("./group-bar");Object.defineProperty(i,"GroupBar",{enumerable:!0,get:function(){return a.default}});var o=t("./percentage-stack-area");Object.defineProperty(i,"PercentageStackArea",{enumerable:!0,get:function(){return o.default}});var s=t("./percentage-stack-bar");Object.defineProperty(i,"PercentageStackBar",{enumerable:!0,get:function(){return s.default}});var l=t("./percentage-stack-column");Object.defineProperty(i,"PercentageStackColumn",{enumerable:!0,get:function(){return l.default}});var u=t("./stack-area");Object.defineProperty(i,"StackArea",{enumerable:!0,get:function(){return u.default}});var c=t("./stack-bar");Object.defineProperty(i,"StackBar",{enumerable:!0,get:function(){return c.default}});var p=t("./stack-column");Object.defineProperty(i,"StackColumn",{enumerable:!0,get:function(){return p.default}})},{"./group-bar":492,"./group-column":493,"./percentage-stack-area":495,"./percentage-stack-bar":496,"./percentage-stack-column":497,"./ring":498,"./stack-area":499,"./stack-bar":500,"./stack-column":501}],495:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../../base/plot")),o=n.__importDefault(t("warning")),s=n.__importDefault(t("../../percent-stacked-area/layer")),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="percentStackedArea",t.prototype.createLayers.call(this,i),o.default(!1,'Please use "PercentStackedArea" instead of "PercentageStackArea" which was not recommended.')},e.getDefaultOptions=s.default.getDefaultOptions,e}(a.default);i.default=l},{"../../../base/plot":394,"../../percent-stacked-area/layer":570,"@antv/util":803,tslib:894,warning:895}],496:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../../base/plot")),o=n.__importDefault(t("warning")),s=n.__importDefault(t("../../percent-stacked-bar/layer")),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="percentStackedBar",t.prototype.createLayers.call(this,i),o.default(!1,'Please use "PercentStackedBar" instead of "PercentageStackBar" which was not recommended.')},e.getDefaultOptions=s.default.getDefaultOptions,e}(a.default);i.default=l},{"../../../base/plot":394,"../../percent-stacked-bar/layer":572,"@antv/util":803,tslib:894,warning:895}],497:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../../base/plot")),o=n.__importDefault(t("warning")),s=n.__importDefault(t("../../percent-stacked-column/layer")),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="percentStackedColumn",t.prototype.createLayers.call(this,i),o.default(!1,'Please use "PercentStackedColumn" instead of "PercentageStackColumn" which was not recommended.')},e.getDefaultOptions=s.default.getDefaultOptions,e}(a.default);i.default=l},{"../../../base/plot":394,"../../percent-stacked-column/layer":574,"@antv/util":803,tslib:894,warning:895}],498:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../../base/plot")),o=n.__importDefault(t("warning")),s=n.__importDefault(t("../../donut/layer")),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="donut",t.prototype.createLayers.call(this,i),o.default(!1,'Please use "Donut" instead of "Ring" which was not recommended.')},e.getDefaultOptions=s.default.getDefaultOptions,e}(a.default);i.default=l},{"../../../base/plot":394,"../../donut/layer":514,"@antv/util":803,tslib:894,warning:895}],499:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../../base/plot")),o=n.__importDefault(t("warning")),s=n.__importDefault(t("../../stacked-area/layer")),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="stackedArea",t.prototype.createLayers.call(this,i),o.default(!1,'Please use "StackedArea" instead of "StackArea" which was not recommended.')},e.getDefaultOptions=s.default.getDefaultOptions,e}(a.default);i.default=l},{"../../../base/plot":394,"../../stacked-area/layer":613,"@antv/util":803,tslib:894,warning:895}],500:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../../base/plot")),o=n.__importDefault(t("warning")),s=n.__importDefault(t("../../stacked-bar/layer")),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="stackedBar",t.prototype.createLayers.call(this,i),o.default(!1,'Please use "StackedBar" instead of "StackBar" which was not recommended.')},e.getDefaultOptions=s.default.getDefaultOptions,e}(a.default);i.default=l},{"../../../base/plot":394,"../../stacked-bar/layer":618,"@antv/util":803,tslib:894,warning:895}],501:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../../base/plot")),o=n.__importDefault(t("warning")),s=n.__importDefault(t("../../stacked-column/layer")),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="stackedColumn",t.prototype.createLayers.call(this,i),o.default(!1,'Please use "StackedColumn" instead of "StackColumn" which was not recommended.')},e.getDefaultOptions=s.default.getDefaultOptions,e}(a.default);i.default=l},{"../../../base/plot":394,"../../stacked-column/layer":623,"@antv/util":803,tslib:894,warning:895}],502:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(e){var i=t.call(this)||this;return i.options=e,i.view=i.options.view,i.init(),i}return n.__extends(e,t),e.prototype.init=function(){var t=this.getCoordinate();this.width=t.getWidth(),this.height=t.getHeight(),this.x=t.start.x,this.y=t.end.y,this.container=this.view.backgroundGroup.addGroup({})},e.prototype.render=function(){if("color"===this.options.type)this.renderColorBackground();else if("image"===this.options.type)this.renderImageBackground();else if(this.options.callback){var t={x:this.x,y:this.y,width:this.width,height:this.height,container:this.container};this.options.callback(t)}},e.prototype.renderColorBackground=function(){this.container.addShape("rect",{attrs:{x:this.x,y:this.y,width:this.width,height:this.height,fill:this.options.value},name:"heatmap-background"})},e.prototype.renderImageBackground=function(){this.container.addShape("image",{attrs:{x:this.x,y:this.y,width:this.width,height:this.height,img:this.options.src},name:"heatmap-background"})},e.prototype.clear=function(){this.container&&(this.container.clear(),this.emit("background:clear"))},e.prototype.destroy=function(){this.container&&(this.container.remove(),this.emit("background:destroy"))},e.prototype.getCoordinate=function(){var t;return r.each(this.view.geometries,(function(e){"heatmap"===e.type&&(t=e.coordinate)})),t},e}(n.__importDefault(t("@antv/event-emitter")).default);i.default=a},{"@antv/event-emitter":94,"@antv/util":803,tslib:894}],503:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getPlotComponents=void 0;var n=t("tslib"),r=n.__importDefault(t("./background")),a=n.__importDefault(t("./legend")),o={background:{Ctr:r.default},legend:{Ctr:a.default,padding:"outer"}};i.getPlotComponents=function(t,e,i){if(t.options[e]&&t.options[e].visible){var n=o[e],r=new n.Ctr(i);return n.padding&&t.paddingController.registerPadding(r,n.padding),r}}},{"./background":502,"./legend":504,tslib:894}],504:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../../util/bbox")),o=function(){function t(t){this.destroyed=!1,this.dataSlides={};var e=this.getDefaultOptions();t.plot.options.theme&&"dark"===t.plot.options.theme&&(e=this.getDarkOptions()),this.options=r.deepMix({},e,t),this.view=this.options.view,this.afterRender=!0,this.init()}return t.prototype.init=function(){this.layout=this.getLayout(),this.width=this.options.width?this.options.width:this.getDefaultWidth(),this.height=this.options.height?this.options.height:this.getDefaultHeight();var t=this.options.plot.container;this.container=t.addGroup()},t.prototype.render=function(){var t=this.getScales(),e=this.options.plot.options.colorField;this.colorScale=t[e];var i=this.colorScale,n=i.min,r=i.max,a=this.options.plot.options.color;"horizontal"===this.layout?this.renderHorizontal(n,r,a):this.renderVertical(n,r,a),this.legendLayout(),this.addInteraction(),this.options.plot.canvas.draw()},t.prototype.hide=function(){this.container.set("visible",!1),this.options.plot.canvas.draw()},t.prototype.show=function(){this.container.set("visible",!0),this.options.plot.canvas.draw()},t.prototype.clear=function(){this.container&&this.container.clear()},t.prototype.destroy=function(){this.container&&this.container.remove(),this.destroyed=!0},t.prototype.getBBox=function(){var t=this.container.getBBox();return new a.default(this.x,this.y,t.width,t.height)},t.prototype.renderVertical=function(t,e,i){var a=this,o=this.width,s=this.height/i.length,l=this.container.addGroup(),u=r.clone(i).reverse(),c=(e-t)/i.length;r.each(u,(function(t,i){var r=s*i,u={to:e-c*i,from:e-c*(i+1)};a.container.addShape("rect",{attrs:{x:0,y:r,width:o,height:s,fill:t,opacity:1,cursor:"pointer"},name:"legend"}).set("info",u);var p=a.getDataSlide(u);a.dataSlides[u.from+"-"+u.to]={mode:"active",data:p},l.addShape("path",{attrs:n.__assign({path:[["M",0,r+s],["L",o,r+s]]},a.options.gridlineStyle)})})),this.container.addShape("text",{attrs:n.__assign({text:e,x:o/2,y:-4,textAlign:"center",textBaseline:"bottom"},this.options.text.style),name:"legend-label"}),this.container.addShape("text",{attrs:n.__assign(n.__assign({text:t,x:o/2,y:this.height+4,textAlign:"center",textBaseline:"top"},this.options.text.style),{name:"legend-label"})}),l.addShape("path",{attrs:n.__assign({path:[["M",0,0],["L",this.width,0],["L",this.width,this.height],["L",0,this.height],["L",0,0]]},this.options.gridlineStyle)})},t.prototype.renderHorizontal=function(t,e,i){var a=this,o=this.width/i.length,s=this.height,l=this.container.addGroup(),u=(e-t)/i.length;r.each(i,(function(t,e){var i=o*e,r={from:u*e,to:u*(e+1)};a.container.addShape("rect",{attrs:{x:i,y:0,width:o,height:s,fill:t,opacity:.8,cursor:"pointer"},name:"legend"}).set("info",r),l.addShape("path",{attrs:n.__assign({path:[["M",i+o,0],["L",i+o,s]]},a.options.gridlineStyle)})})),this.container.addShape("text",{attrs:n.__assign(n.__assign({text:t,x:-4,y:s/2},this.options.text.style),{textAlign:"right",textBaseline:"middle"}),name:"legend-label"}),this.container.addShape("text",{attrs:n.__assign({text:e,x:this.width+4,y:s/2,textAlign:"left",textBaseline:"middle"},this.options.text.style),name:"legend-label"}),l.addShape("path",{attrs:n.__assign({path:[["M",0,0],["L",this.width,0],["L",this.width,this.height],["L",0,this.height],["L",0,0]]},this.options.gridlineStyle)})},t.prototype.getLayout=function(){var t=this.options.position.split("-");return this.position=t[0],"left"===t[0]||"right"===t[0]?"vertical":"horizontal"},t.prototype.getDefaultWidth=function(){return"horizontal"===this.layout?.5*this.options.plot.options.width:10},t.prototype.getDefaultHeight=function(){return"vertical"===this.layout?.5*this.options.plot.options.height:10},t.prototype.legendLayout=function(){var t=this,e=this.options.plot.getPlotTheme().bleeding;r.isArray(e)&&r.each(e,(function(i,n){"function"==typeof e[n]&&(e[n]=e[n](t.options.plot.options))}));var i=this.container.getBBox(),n=0,a=0,o=this.options.position.split("-"),s=this.options.plot.width,l=this.options.plot.height;"left"===o[0]?n=e[3]:"right"===o[0]?n=s-e[1]-i.width:"center"===o[1]?n=(s-i.width)/2:"left"===o[1]?n=e[3]:"right"===o[1]&&(n=this.options.plot.width-e[1]-i.width),"bottom"===o[0]?a=l-e[2]-i.height:"top"===o[0]?a=this.getTopPosition(e):"center"===o[1]?a=(l-i.height)/2:"top"===o[1]?a=e[0]:"bottom"===o[1]&&(a=l-e[2]-i.height),this.x=n,this.y=a,this.container.translate(n,a)},t.prototype.getDefaultOptions=function(){return{text:{style:{fontSize:12,fill:"rgba(0, 0, 0, 0.45)"}},gridlineStyle:{lineWidth:1,stroke:"rgba(0, 0, 0, 0.45)"}}},t.prototype.getDarkOptions=function(){return{text:{style:{fontSize:12,fill:"rgba(255, 255, 255, 0.45)"}},gridlineStyle:{lineWidth:1,stroke:"rgba(255, 255, 255, 0.25)"}}},t.prototype.addInteraction=function(){var t=this,e=this.options.plot.options.colorField;this.container.on("click",(function(i){var n=i.target;if("legend"===n.get("name")){var r=n.get("info"),a=r.from+"-"+r.to,o=t.dataSlides[a];"active"===o.mode?(o.mode="deactive",n.stopAnimate(),n.animate({opacity:.1},200)):(o.mode="active",n.stopAnimate(),n.animate({opacity:1},200));var s=t.getFilteredData();s.length>0&&(t.view.changeData(s),t.view.scale(e,{min:t.colorScale.min,max:t.colorScale.max,nice:t.colorScale.nice}),t.view.render())}}))},t.prototype.getFilteredData=function(){var t=[];return r.each(this.dataSlides,(function(e){"active"==e.mode&&t.push.apply(t,e.data)})),t},t.prototype.getDataSlide=function(t){var e=[],i=this.options.plot.options,n=i.colorField,a=i.data;return r.each(a,(function(i){var r=i[n];r>=t.from&&r<t.to&&e.push(i)})),e},t.prototype.getTopPosition=function(t){return this.options.plot.description?this.options.plot.description.getBBox().maxY+10:this.options.plot.title?this.options.plot.title.getBBox().maxY+10:t[0]},t.prototype.getScales=function(){var t;return r.each(this.view.geometries,(function(e){"heatmap"===e.type&&(t=e.scales)})),t},t}();i.default=o},{"../../../util/bbox":672,"@antv/util":803,tslib:894}],505:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.onEvent=i.EVENT_MAP=void 0;var n=t("@antv/util"),r=t("../../util/event");Object.defineProperty(i,"EVENT_MAP",{enumerable:!0,get:function(){return r.EVENT_MAP}}),Object.defineProperty(i,"onEvent",{enumerable:!0,get:function(){return r.onEvent}});var a=r.getEventMap({heatmap:"heatmap",legendLabel:"legend-label",heatmapBackground:"heatmap-background"});n.assign(r.EVENT_MAP,a)},{"../../util/event":677,"@antv/util":803}],506:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="densityHeatmap",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":507,"@antv/util":803,tslib:894}],507:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importDefault(t("../../base/view-layer")),s=t("../../components/factory"),l=t("../../geoms/factory"),u=t("../../util/scale");t("../../geoms/heatmap/linear");var c=t("./components"),p=n.__importStar(t("./event")),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="densityHeatmap",e.plotComponents=[],e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{xAxis:{visible:!0,autoRotateTitle:!1,grid:{visible:!1},line:{visible:!0},tickLine:{visible:!0},label:{visible:!0,autoHide:!0,autoRotate:!0},title:{visible:!1,spacing:12}},yAxis:{visible:!0,autoRotateTitle:!0,grid:{visible:!1},line:{visible:!0},tickLine:{visible:!0},label:{visible:!0,autoHide:!0,autoRotate:!1},title:{visible:!1,spacing:12}},tooltip:{visible:!0,showCrosshairs:!0,crosshairs:{type:"xy",line:{style:{stroke:"#000000",lineWidth:1,opacity:.5}}},showMarkers:!1},legend:{visible:!0,position:"bottom-center"},color:["rgba(33,102,172,0)","rgb(103,169,207)","rgb(209,229,240)","rgb(253,219,199)","rgb(239,138,98)","rgb(178,24,43)"],interactions:[{type:"tooltip"}]})},e.prototype.afterRender=function(){this.renderPlotComponents(),t.prototype.afterRender.call(this)},e.prototype.destroy=function(){r.each(this.plotComponents,(function(t){t.destroy()})),t.prototype.destroy.call(this)},e.prototype.scale=function(){var e=this.options,i={};i[e.xField]={},r.has(e,"xAxis")&&u.extractScale(i[e.xField],e.xAxis),i[e.yField]={},r.has(e,"yAxis")&&u.extractScale(i[e.yField],e.yAxis),this.setConfig("scales",i),t.prototype.scale.call(this)},e.prototype.coord=function(){},e.prototype.geometryParser=function(){return"heatmap"},e.prototype.addGeometry=function(){if(this.options.data.length>1){var t={type:"linearheatmap",position:{fields:[this.options.xField,this.options.yField]},color:{fields:[this.options.colorField],values:this.options.color},cfg:{intensity:this.options.intensity,radius:this.options.radius}};this.options.radius&&(t.radius=this.options.radius),this.options.intensity&&(t.intensity=this.options.intensity),this.options.tooltip&&(this.options.tooltip.fields||this.options.tooltip.formatter)&&this.geometryTooltip(t),this.setConfig("geometry",t),this.addPoint()}},e.prototype.addPoint=function(){var t=this.options,e={visible:!1,size:0};t.point&&t.point.visible?t.point=r.deepMix(e,t.point):t.point=e;var i=l.getGeom("point","guide",{plot:this});i.active=!1,this.setConfig("geometry",i)},e.prototype.extractLabel=function(){var t=this.options,e=t.label;return(!e||!1!==e.visible)&&s.getComponent("label",n.__assign({plot:this,labelType:"scatterLabel",fields:[t.xField,t.yField],position:"middle",offset:0},e))},e.prototype.legend=function(){this.setConfig("legends",!1)},e.prototype.geometryTooltip=function(t){t.tooltip={};var e=this.options.tooltip;e.fields&&(t.tooltip.fields=e.fields),e.formatter&&(t.tooltip.callback=e.formatter,e.fields||(t.tooltip.fields=[this.options.xField,this.options.yField],this.options.colorField&&t.tooltip.fields.push(this.options.colorField)))},e.prototype.parseEvents=function(){t.prototype.parseEvents.call(this,p)},e.prototype.renderPlotComponents=function(){var t=this;r.each(this.plotComponents,(function(t){t.destroy()}));r.each(["legend","background"],(function(e){var i=n.__assign({view:t.view,plot:t},t.options[e]),r=c.getPlotComponents(t,e,i);r&&(r.render(),t.plotComponents.push(r))}))},e}(o.default);i.default=h,a.registerPlotType("densityHeatmap",h)},{"../../base/global":392,"../../base/view-layer":395,"../../components/factory":412,"../../geoms/factory":430,"../../geoms/heatmap/linear":431,"../../util/scale":712,"./components":503,"./event":505,"@antv/util":803,tslib:894}],508:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="density",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":509,"@antv/util":803,tslib:894}],509:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/scale"),a=t("@antv/util"),o=t("../../base/global"),s=t("../../util/math"),l=n.__importDefault(t("../area/layer")),u={epanechnikov:function(t){return Math.abs(t)<=1?.75*(1-t*t):0},gaussian:function(t){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*Math.pow(t,2))},uniform:function(t){return Math.abs(t)<=1?.5:0},triangle:function(t){return Math.abs(t)<=1?1-Math.abs(t):0},quartic:function(t){var e=1-t*t;return Math.abs(t)<=1?15/16*e*e:0},triweight:function(t){var e=1-t*t;return Math.abs(t)<=1?15/16*Math.pow(e,3):0},cosinus:function(t){var e=Math.PI/4*Math.cos(.5*Math.PI*t);return Math.abs(t)<=1?e:0}},c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="density",e}return n.__extends(e,t),e.prototype.init=function(){var e=this.options.xAxis?a.clone(this.options.xAxis):{};this.options.xField="value",this.options.yField="density",this.options.xAxis=a.deepMix({},e,{type:"linear"}),this.options.smooth=!0,t.prototype.init.call(this)},e.prototype.processData=function(t){var e=this,i=this.options,n=i.binField,o=i.binWidth,l=i.binNumber,c=i.kernel,p=u[c||"epanechnikov"],h=a.clone(t);a.sortBy(h,n);var f=a.valuesOfKey(h,n),d=a.getRange(f),g=d.max-d.min,v=l,y=o;!l&&o&&(v=Math.floor(g/o)),!o&&l&&(y=g/l),l||o||(v=s.sturges(f),y=g/l);var m=new(r.getScale("linear"))({min:d.min,max:d.max,tickCount:v,nice:!1}).getTicks(),b=[];return a.each(m,(function(t){var i=e.kernelDensityEstimator(y,p,t,f);b.push({value:t.text,density:i})})),b},e.prototype.kernelDensityEstimator=function(t,e,i,n){var r=0;return a.each(n,(function(n){var a=(i.tickValue-n)/t;r+=e(a)})),0===n.length?0:r/n.length},e}(l.default);i.default=c,o.registerPlotType("density",c)},{"../../base/global":392,"../../util/math":680,"../area/layer":456,"@antv/scale":747,"@antv/util":803,tslib:894}],510:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../../components/statistic")),o=t("./statistic-template"),s=t("@antv/util"),l=function(t){function e(e){var i=t.call(this,e)||this;return i.view=e.view,i.plot=e.plot,i.statisticClass=e.statisticClass,i.adjustOptions(),i}return n.__extends(e,t),e.prototype.triggerOn=function(){var t=this,e=this.options.triggerOn;this.view.on("interval:"+e,s.debounce((function(e){var i=t.parseStatisticData("item",e.data.data,e.data.color),n=t.getStatisticHtmlString(i);t.updateHtml(n)}),150));var i=this.options.triggerOff?this.options.triggerOff:"mouseleave";this.view.on("interval:"+i,s.debounce((function(){var e=t.getTotalHtmlString();t.updateHtml(e)}),150))},e.prototype.getTotalHtmlString=function(){var t,e;if(this.options.content)t=this.options.content;else{var i=this.getTotalValue();t=this.parseStatisticData("total",i)}e=this.options.htmlContent?this.options.htmlContent(t,this.getStatisticSize()):this.getStatisticTemplate(t);var n=document.createElement("div");return r.isType(e,"HTMLDivElement")?n.appendChild(e):n.innerHTML=e,n},e.prototype.adjustOptions=function(){this.html=this.getTotalHtmlString();var t=this.view.coordinateBBox,e=t.minX,i=t.minY,n=t.width,r=t.height;this.x=e+n/2,this.y=i+r/2},e.prototype.getTotalValue=function(){var t,e=0,i=this.plot.options,n=i.angleField,r=i.colorField,a=this.options.totalLabel;return s.each(this.plot.options.data,(function(t){"number"==typeof t[n]&&(e+=t[n])})),(t={})[n]=e,t[r]=a,t},e.prototype.parseStatisticData=function(t,e,i){var n=this.plot,r=n.options,a=r.angleField,o=r.colorField,s=n.getScaleByField(a),l=n.getScaleByField(o),u={name:l?l.getText(e[o]):null,value:s.getText(e[a])};return"item"===t&&(u.itemData=e,u.color=i),u},e.prototype.getStatisticTemplate=function(t){var e=this.getStatisticSize();return o.getTemplate(t.name,t.value,this.statisticClass,e)},e.prototype.getStatisticSize=function(){var t=this.plot.view.coordinateBBox,e=this.plot.options,i=e.radius,n=e.innerRadius;return Math.min(t.width,t.height)*i*n},e.prototype.getStatisticHtmlString=function(t){var e=this.options.htmlContent;return e?e(t,this.getStatisticSize()):this.getStatisticTemplate(t)},e}(a.default);i.default=l},{"../../../components/statistic":420,"./statistic-template":511,"@antv/util":803,tslib:894}],511:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getTemplate=void 0;i.getTemplate=function(t,e,i,n){return'<div class="ring-guide-html '+i+'" style='+("color:#4d4d4d;font-size:14px;text-align:center;line-height:2;font-family:'-apple-system',BlinkMacSystemFont,'SegoeUI',Roboto,'HelveticaNeue',Helvetica,'PingFangSC','HiraginoSansGB','MicrosoftYaHei',SimSun,'sans-serif';pointer-events:none;width:"+n+"px;")+">"+(t?'<span class="ring-guide-name" style=font-weight:300;white-space: nowrap;text-overflow: ellipsis;>'+t+"</span><br/>":"")+('<span class="ring-guide-value" style=font-size:32px;font-weight:bold;color:#4D4D4D>'+e+"</span>")+"</div>"}},{}],512:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.onEvent=i.EVENT_MAP=void 0;var n=t("@antv/util"),r=t("../../util/event");Object.defineProperty(i,"EVENT_MAP",{enumerable:!0,get:function(){return r.EVENT_MAP}}),Object.defineProperty(i,"onEvent",{enumerable:!0,get:function(){return r.onEvent}});var a=r.getEventMap({ring:"interval"});n.assign(r.EVENT_MAP,a)},{"../../util/event":677,"@antv/util":803}],513:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="donut",t.prototype.createLayers.call(this,i)},e.prototype.getAngleScale=function(){return this.layers[0].getAngleScale()},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":514,"@antv/util":803,tslib:894}],514:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/dom-util"),a=t("@antv/util"),o=t("../../base/global"),s=n.__importDefault(t("../pie/layer")),l=n.__importStar(t("./event")),u=n.__importDefault(t("./component/ring-statistic")),c={ring:"interval"},p={interval:"ring"},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="donut",e}return n.__extends(e,t),e.getDefaultOptions=function(){return a.deepMix({},t.getDefaultOptions.call(this),{radius:.8,innerRadius:.64,tooltip:{visible:!1},statistic:{visible:!0,totalLabel:"总计",triggerOn:"mouseenter",triggerOff:"mouseleave"}})},e.prototype.beforeInit=function(){t.prototype.beforeInit.call(this),e.centralId++,this.statisticClass="statisticClassId"+e.centralId,this.adjustLabelDefaultOptions()},e.prototype.afterRender=function(){var e=this.canvas.get("container");if(this.statistic&&(e.removeChild(this.statistic.wrapperNode),this.statistic=null),this.options.statistic&&this.options.statistic.visible){var i=this.canvas.get("container");r.modifyCSS(i,{position:"relative"}),this.statistic=new u.default(n.__assign({container:i,view:this.view,plot:this,statisticClass:this.statisticClass},this.options.statistic)),this.statistic.render(),this.options.statistic.triggerOn&&this.statistic.triggerOn()}t.prototype.afterRender.call(this)},e.prototype.destroy=function(){this.statistic&&this.statistic.destroy(),t.prototype.destroy.call(this)},e.prototype.geometryParser=function(t,e){return"g2"===t?c[e]:p[e]},e.prototype.coord=function(){var t=this.options,e={type:"theta",cfg:{radius:t.radius,innerRadius:t.innerRadius}};this.setConfig("coordinate",e)},e.prototype.parseEvents=function(){t.prototype.parseEvents.call(this,l)},e.prototype.adjustLabelDefaultOptions=function(){var t=this.options.label;if(t&&"inner"===t.type){var e=t.style||{};e.textAlign||(e.textAlign="center"),t.style=e,t.offset||(t.offset=(this.options.innerRadius-1)/2*100+"%")}},e.centralId=0,e}(s.default);i.default=h,o.registerPlotType("donut",h)},{"../../base/global":392,"../pie/layer":584,"./component/ring-statistic":510,"./event":512,"@antv/dom-util":92,"@antv/util":803,tslib:894}],515:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="fanGauge",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":516,"@antv/util":803,tslib:894}],516:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importDefault(t("../gauge/layer")),s=t("../gauge/geometry/shape/gauge-shape"),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="fanGauge",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{rangeColor:"#F6445A",rangeSize:70,axis:{visible:!0,offset:5,tickCount:10,subTickCount:4,tickLine:{visible:!0,length:3,style:{stroke:"#aaa",lineWidth:3}},label:{visible:!0,style:{fill:"#aaa",fontSize:16,textAlign:"center",textBaseline:"middle"}}}})},e.prototype.initG2Shape=function(){this.gaugeShape=new s.GaugeShape(r.uniqueId()),this.gaugeShape.setOption(this.type,r.deepMix({},this.options,{radius:1,angle:120,textPosition:"125%",bottomRatio:3.5})),this.gaugeShape.render()},e.prototype.axis=function(){this.setConfig("axes",{value:!1,1:!1})},e.prototype.annotation=function(){var t=this.options.statistic,e=[];if(t&&t.visible){var i=this.renderStatistic();e.push(i)}var n=this.renderSideText(),r=e.concat(n);this.setConfig("annotations",r)},e.prototype.renderSideText=function(){var t=this.options,e=t.max,i=t.min,n=t.format,a=t.rangeSize,o=t.axis;return[i,e].map((function(t,e){return{type:"text",top:!0,position:["50%","50%"],content:n(t),style:r.deepMix({},o.label.style,{textAlign:"center"}),offsetX:e?a:-a,offsetY:12}}))},e}(o.default);i.default=l,a.registerPlotType("fanGauge",l)},{"../../base/global":392,"../gauge/geometry/shape/gauge-shape":525,"../gauge/layer":527,"@antv/util":803,tslib:894}],517:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/matrix-util"),r=t("@antv/g2");function a(t,e){var i=e||{},r=i.duration,a=void 0===r?200:r,o=i.delay,s=i.easing,l=i.callback,u=i.reverse,c=t.getBBox(),p=u?c.maxX:c.minX,h=(c.minY+c.maxY)/2,f=t.setClip({type:"rect",attrs:{x:c.x,y:c.y,width:c.width,height:c.height}});f.setMatrix(n.ext.transform(f.getMatrix(),[["t",-p,-h],["s",0,1],["t",p,h]]));var d={fillOpacity:t.attr("fillOpacity"),strokeOpacity:t.attr("strokeOpacity"),opacity:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),f.animate({matrix:[1,0,0,0,1,0,0,0,1]},{duration:200,easing:s,callback:function(){t.setClip(null),f.remove()},delay:o}),t.animate(d,{duration:a,easing:s,delay:o}),l&&setTimeout((function(){return l(t)}),a+o)}a.animationName="funnelScaleInX",r.registerAnimation("funnelScaleInX",a)},{"@antv/g2":309,"@antv/matrix-util":717}],518:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/matrix-util"),r=t("@antv/g2");function a(t,e){var i=e||{},r=i.duration,a=void 0===r?200:r,o=i.delay,s=i.easing,l=i.callback,u=i.reverse,c=t.getBBox(),p=(c.minX+c.maxX)/2,h=u?c.maxY:c.minY,f=t.setClip({type:"rect",attrs:{x:c.x,y:c.y,width:c.width,height:c.height}});f.setMatrix(n.ext.transform(f.getMatrix(),[["t",-p,-h],["s",1,0],["t",p,h]]));var d={fillOpacity:t.attr("fillOpacity"),strokeOpacity:t.attr("strokeOpacity"),opacity:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),f.animate({matrix:[1,0,0,0,1,0,0,0,1]},{duration:200,easing:s,callback:function(){t.setClip(null),f.remove()},delay:o}),t.animate(d,{duration:a,easing:s,delay:o}),l&&setTimeout((function(){return l(t)}),a+o)}a.animationName="funnelScaleInY",r.registerAnimation("funnelScaleInY",a)},{"@antv/g2":309,"@antv/matrix-util":717}],519:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("@antv/g2"),o=t("@antv/g2/lib/geometry/shape/util/get-style");a.registerShape("interval","funnel-basic-rect",{getPoints:function(t){return t.size=1.8*t.size,function(t,e){void 0===e&&(e=!1);var i,n,a,o,s=t.x,l=t.y,u=t.y0,c=t.size;r.isArray(l)?(i=l[0],n=l[1]):(i=u,n=l),r.isArray(s)?(a=s[0],o=s[1]):(a=s-c/2,o=s+c/2);var p=[{x:a,y:i},{x:a,y:n}];return e?p.push({x:o,y:(n+i)/2}):p.push({x:o,y:n},{x:o,y:i}),p}(t)},draw:function(t,e){var i,a=o.getStyle(t,!1,!0),s=r.get(t,"data.__compare__"),l=this.parsePath(function(t,e){var i=[],n=t.points,a=t.nextPoints;if(e){var o=e.yValues,s=e.yValuesMax,l=e.yValuesNext,u=(n[0].y+n[1].y)/2,c=o[0]+o[1],p=o.map((function(t){return t/c/.5})),h=.9*(s[0]/(s[0]+s[1])-.5);if(r.isNil(a))i.push(["M",n[0].x,h+(n[0].y-u)*p[0]+u],["L",n[1].x,h+u],["L",n[2].x,h+u],["L",n[3].x,h+(n[3].y-u)*p[0]+u],["Z"]),i.push(["M",n[0].x,h+.002+u],["L",n[1].x,h+.002+(n[1].y-u)*p[1]+u],["L",n[2].x,h+.002+(n[2].y-u)*p[1]+u],["L",n[3].x,h+.002+u],["Z"]);else{var f=l[0]+l[1],d=l.map((function(t){return t/f/.5}));i.push(["M",n[0].x,h+(n[0].y-u)*p[0]+u-.001],["L",n[1].x,h+u-.001],["L",a[1].x,h+u-.001],["L",a[0].x,h+(a[3].y-u)*d[0]+u-.001],["Z"]),i.push(["M",n[0].x,h+u+.001],["L",n[1].x,h+(n[1].y-u)*p[1]+u+.001],["L",a[1].x,h+(a[2].y-u)*d[1]+u+.001],["L",a[0].x,h+u+.001],["Z"])}}else r.isNil(a)?i.push(["M",n[0].x,n[0].y],["L",n[1].x,n[1].y],["L",n[2].x,n[2].y],["L",n[3].x,n[3].y],["Z"]):i.push(["M",n[0].x,n[0].y],["L",n[1].x,n[1].y],["L",a[1].x,a[1].y],["L",a[0].x,a[0].y],["Z"]);return i}(t,s));return e.addShape("path",((i={name:"interval",attrs:n.__assign(n.__assign({},a),{path:l})}).__compare__=s,i))},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},{"@antv/g2":309,"@antv/g2/lib/geometry/shape/util/get-style":302,"@antv/util":803,tslib:894}],520:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("@antv/g2"),o=t("@antv/g2/lib/geometry/shape/util/get-style");function s(t,e,i){return(1-i)*t+i*e}a.registerShape("interval","funnel-dynamic-rect",{draw:function(t,e){var i=o.getStyle(t,!1,!0),a=r.get(t,"data.__custom__"),l=this.parsePath(function(t,e){var i=e.reverse,n=e.ratioUpper,r=e.ratioLower,a=[],o=t[0],l=(t[1].x+t[2].x)/2;if(i){var u=r;r=n,n=u}var c=(o.x-l)*s(.6,1.2,r)+l;a.push(["M",c,o.y]);for(var p=1,h=t.length;p<h;p++){var f=t[p].x;switch(p){case 1:case 2:f=(f-l)*s(.6,1.2,n)+l;break;case 3:f=(f-l)*s(.6,1.2,r)+l}a.push(["L",f,t[p].y])}return a.push(["L",c,o.y]),a.push(["z"]),a}(t.points,a));return e.addShape("path",{attrs:n.__assign(n.__assign({},i),{path:l})})},getMarker:function(t){var e=t.color,i=t.isInPolar;return{symbol:i?"circle":"square",style:{r:i?4.5:4,fill:e}}}})},{"@antv/g2":309,"@antv/g2/lib/geometry/shape/util/get-style":302,"@antv/util":803,tslib:894}],521:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="funnel",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":522,"@antv/util":803,tslib:894}],522:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("@antv/dom-util"),o=t("../../dependents"),s=t("../../base/global"),l=n.__importDefault(t("../../base/view-layer")),u=t("../../geoms/factory");t("./theme"),t("./geometry/shape/funnel-basic-rect"),t("./geometry/shape/funnel-dynamic-rect"),t("./animation/funnel-scale-in-x"),t("./animation/funnel-scale-in-y");var c=t("../../util/color");function p(t,e,i){return(1-i)*t+i*e}var h={column:"interval"},f={interval:"funnel"},d=function(t){function e(e){var i=t.call(this,e)||this;return i.type="funnel",i._shouldResetPercentages=!0,i._shouldResetLabels=!0,i._shouldResetCompareTexts=!0,i._legendsListenerAttached=!1,i._onLegendContainerMouseDown=function(t){var e=i.options;if(t.target.get("name").startsWith("legend-item")){var n=t.target.get("parent");if(n.set("unchecked",!n.get("unchecked")),i.refreshPercentages(),i.refreshLabels(),e.dynamicHeight){var r=i._findCheckedDataByMouseDownLegendItem(n);i._genCustomFieldForDynamicHeight(r)}if(e.compareField){r=i._findCheckedDataByMouseDownLegendItem(n);i._updateDataForCompare(r),i.refreshCompareTexts()}}},i.adjustProps(i.options),e.dynamicHeight&&i._genCustomFieldForDynamicHeight(i.getData()),e.compareField&&(i.options.data=i._reduceDataForCompare(i.getData())),i}return n.__extends(e,t),e.getDefaultOptions=function(e){var i={label:{visible:!0,adjustColor:!0},percentage:{visible:!0,offsetX:e.transpose?0:40,offsetY:e.transpose?40:0,spacing:4,line:{visible:!0,style:{lineWidth:1,stroke:"rgba(0, 0, 0, 0.15)"}},text:{content:"转化率",style:{fill:"rgba(0, 0, 0, 0.65)"}},value:{visible:!0,style:{fill:"black"},formatter:function(t,e){return(100*e/t).toFixed(2)+"%"}}},tooltip:{visible:!0,shared:!0,showTitle:!1,showCrosshairs:!1,showMarkers:!1},animation:r.deepMix({},o.DEFAULT_ANIMATE_CFG,{appear:{duration:800}}),dynamicHeight:!1,compareText:{visible:!0,offsetX:-16,offsetY:-16,style:{fill:"black"}},legend:{position:"bottom-center"},interactions:[{type:"tooltip"},{type:"legend-filter"}]};return r.deepMix({},t.getDefaultOptions.call(this),i)},e.prototype.getColorScale=function(){var t=this.options.xField;if(t)return this.view.getScaleByField(t)},e.prototype.coord=function(){var t=this.options,e={type:"rect",actions:t.transpose?t.dynamicHeight?[["transpose"],["scale",1,-1]]:[["scale",1,-1]]:t.dynamicHeight?[]:[["transpose"],["scale",1,-1]]};this.setConfig("coordinate",e)},e.prototype.axis=function(){this.setConfig("axes",!1)},e.prototype.adjustFunnel=function(t){var e=this.options;t.shape=e.dynamicHeight?"funnel-dynamic-rect":"funnel-basic-rect",t.color={fields:[e.xField],values:e.color&&(Array.isArray(e.color)?e.color:[e.color])},r.isFunction(e.funnelStyle)?t.style={callback:e.funnelStyle}:t.style={cfg:e.funnelStyle},t.adjust=[{type:e.dynamicHeight?"stack":"symmetric"}]},e.prototype.tooltip=function(){var e=this.options;e.compareField&&r.deepMix(e.tooltip,{htmlContent:function(t,e){var i,n,s,l;i=o.TooltipCssConst.CONTAINER_CLASS,n=a.createDom('<div class="'+i+'"></div>'),a.modifyCSS(n,o.HtmlTooltipTheme[i]);var u=n;if(t){i=o.TooltipCssConst.TITLE_CLASS,n=a.createDom('<div class="'+i+'"></div>'),a.modifyCSS(n,o.HtmlTooltipTheme[i]),u.appendChild(n);var c=n;i=o.TooltipCssConst.MARKER_CLASS,n=a.createDom('<span class="'+i+'"></span>'),a.modifyCSS(n,o.HtmlTooltipTheme[i]),a.modifyCSS(n,{width:"10px",height:"10px"}),c.appendChild(n),l=n,n=a.createDom("<span>"+t+"</span>"),c.appendChild(n)}if(e){i=o.TooltipCssConst.LIST_CLASS,n=a.createDom('<ul class="'+i+'"></ul>'),a.modifyCSS(n,o.HtmlTooltipTheme[i]),u.appendChild(n);var p=n;e.reduce((function(t,e){s||(s=e.color);var i=r.get(e,"point._origin.__compare__.compareValues");return r.get(e,"point._origin.__compare__.yValues").forEach((function(e,n){return t.push([i[n],e])})),t}),[]).forEach((function(t,e){var r=t[0],s=t[1];i=o.TooltipCssConst.LIST_ITEM_CLASS,n=a.createDom('<li class="'+i+'" data-index='+e+"></li>"),a.modifyCSS(n,o.HtmlTooltipTheme[i]),p.appendChild(n);var l=n;i=o.TooltipCssConst.NAME_CLASS,n=a.createDom('<span class="'+i+'">'+r+"</span>"),a.modifyCSS(n,o.HtmlTooltipTheme[i]),l.appendChild(n),i=o.TooltipCssConst.VALUE_CLASS,n=a.createDom('<span class="'+i+'">'+s+"</span>"),a.modifyCSS(n,o.HtmlTooltipTheme[i]),l.appendChild(n)}))}return s&&l&&a.modifyCSS(l,{backgroundColor:s}),u}}),t.prototype.tooltip.call(this)},e.prototype.addGeometry=function(){var t=this.options,e=u.getGeom("interval","main",{positionFields:[t.dynamicHeight?"_":t.xField,t.yField],plot:this});this.adjustFunnel(e),this.funnel=e,this.setConfig("geometry",e),t.compareField||this.geometryTooltip()},e.prototype.geometryTooltip=function(){var t=this.options.tooltip;t.fields&&(this.funnel.tooltip||(this.funnel.tooltip={}),this.funnel.tooltip.fields=t.fields),t.formatter&&(this.funnel.tooltip||(this.funnel.tooltip={}),this.funnel.tooltip.callback=t.formatter,t.fields||(this.funnel.tooltip.fields=[this.options.xField,this.options.yField]))},e.prototype.animation=function(){var e=this;t.prototype.animation.call(this);var i=this.options;if(!1===i.animation)this.funnel.animate=!1;else{var n=this.getData(),a=r.get(i,"animation.appear.duration"),o=a/(n.length||1);this._animationAppearTimeoutHandler&&(clearTimeout(this._animationAppearTimeoutHandler),delete this._animationAppearTimeoutHandler),this._animationAppearTimeoutHandler=setTimeout((function(){e.fadeInPercentages(o),i.compareField&&e.fadeInCompareTexts(o),delete e._animationAppearTimeoutHandler}),a),this.funnel.animate=r.deepMix({},i.animation,{appear:{animation:i.transpose?"funnelScaleInX":"funnelScaleInY",duration:o,delay:function(t){return r.findIndex(n,(function(e){return r.isEqual(e,t)}))*o},callback:function(t){e.fadeInLabels(t,.5*o)}},enter:{animation:"fade-in"}})}},e.prototype.afterRender=function(){var e=this.options;if(this.resetLabels(),this.resetPercentages(),e.compareField&&this.resetCompareTexts(),"auto"==e.padding){var i=this._findPercentageContainer();i&&this.paddingController.registerPadding(i,"inner",!0);var n=this._findCompareTextContainer();n&&this.paddingController.registerPadding(n,"inner",!0)}(t.prototype.afterRender.call(this),!1===e.animation&&(this.fadeInLabels(),this.fadeInPercentages(),e.compareField&&this.fadeInCompareTexts()),this._legendsListenerAttached)||(this._legendsListenerAttached=!0,this.view.getController("legend").container.on("mousedown",this._onLegendContainerMouseDown))},e.prototype.updateConfig=function(e){e=this.adjustProps(e),t.prototype.updateConfig.call(this,e),this._legendsListenerAttached=!1},e.prototype.changeData=function(e){var i=this.options;if(!1!==i.animation&&(this._shouldResetPercentages=!1,this._shouldResetLabels=!1),i.dynamicHeight){var n=this._findCheckedDataInNewData(e);this._genCustomFieldForDynamicHeight(n)}if(i.compareField){e=this._reduceDataForCompare(e);n=this._findCheckedDataInNewData(e);this._updateDataForCompare(n)}t.prototype.changeData.call(this,e),this.refreshPercentages(),this.refreshLabels(),i.compareField&&this.fadeInCompareTexts()},e.prototype.geometryParser=function(t,e){return"g2"===t?h[e]:f[e]},e.prototype.adjustProps=function(t){return t.compareField&&(t.dynamicHeight=!1),t.dynamicHeight&&(r.set(t,"meta."+t.yField+".nice",!1),r.set(t,"tooltip.shared",!1)),t},e.prototype.resetPercentages=function(){var t=this;if(this._shouldResetPercentages){var e=this.options,i=e.percentage||{},n=i.offsetX,a=i.offsetY,o=i.spacing,s=i.line,l=void 0===s?{}:s,u=i.text,c=void 0===u?{}:u,p=i.value,h=void 0===p?{}:p,f=Date.now(),d=this._findPercentageContainer(!0);this._eachShape((function(i,s,u,p){if(s>0){var g=i.getBBox(),v=g.minX,y=g.maxX,m=g.maxY,b=g.minY,x=e.transpose?v:y,_=e.transpose&&e.compareField?m:b,M=t._findPercentageMembersInContainerByIndex(d,s,!0),w=M.line,S=M.text,C=M.value,P=[function(t,i,s,d,g){s&&(s.attr(r.deepMix({},l.style,{x1:t,y1:i,x2:e.transpose?t+n:t-n,y2:e.transpose?i-a:i+a,opacity:0})),s.set("adjustTimestamp",f));var v=0,y=0,m=function(){d&&(d.attr(r.deepMix({},c.style,{x:e.transpose?t+n:t-n-o-y-o,y:e.transpose?i-a-o:i+a,opacity:0,text:c.content,textAlign:e.transpose?"left":"right",textBaseline:e.transpose?"bottom":"middle"})),d.set("adjustTimestamp",f),v=d.getBBox().width)},b=function(){g&&(g.attr(r.deepMix({},h.style,{x:e.transpose?t+n+v+o:t-n-o,y:e.transpose?i-a-o:i+a,opacity:0,text:r.isFunction(h.formatter)?e.compareField?h.formatter(r.get(p,"__compare__.yValues.0"),r.get(u,"__compare__.yValues.0")):h.formatter(p[e.yField],u[e.yField]):"",textAlign:e.transpose?"left":"right",textBaseline:e.transpose?"bottom":"middle"})),g.set("adjustTimestamp",f),y=g.getBBox().width)};e.transpose?(m(),b()):(b(),m())},function(t,i,s,d,g){s&&(s.attr(r.deepMix({},l.style,{x1:t,y1:i,x2:t+n,y2:e.transpose?e.compareField?i+a:i-a:i+a,opacity:0})),s.set("adjustTimestamp",f));var v=0;d&&(d.attr(r.deepMix({},c.style,{x:e.transpose?t+n:t+n+o,y:e.transpose?e.compareField?i+a+o:i-a-o:i+a,opacity:0,text:c.content,textAlign:"left",textBaseline:e.transpose?e.compareField?"top":"bottom":"middle"})),d.set("adjustTimestamp",f),v=d.getBBox().width),g&&(g.attr(r.deepMix({},h.style,{x:e.transpose?t+n+v+o:t+n+o+v+o,y:e.transpose?e.compareField?i+a+o:i-a-o:i+a,opacity:0,text:r.isFunction(h.formatter)?e.compareField?h.formatter(r.get(p,"__compare__.yValues.1"),r.get(u,"__compare__.yValues.1")):h.formatter(p[e.yField],u[e.yField]):"",textAlign:"left",textBaseline:e.transpose?e.compareField?"top":"bottom":"middle"})),g.set("adjustTimestamp",f))}];if(e.compareField){var O=[v,b];[[O[0],O[1]],[x,_]].forEach((function(t,e){var i=t[0],n=t[1];return P[e](i,n,w&&w[e],S&&S[e],C&&C[e])}))}else P[1](x,_,w,S,C)}p=u,s++})),d.get("children").forEach((function(t){t.get("adjustTimestamp")!=f&&(t.attr({opacity:0}),d.set(t.get("id"),null),setTimeout((function(){return t.remove()}),0))}))}},e.prototype.fadeInPercentages=function(t,e){var i=this,n=this.options,a=this._findPercentageContainer(),o=function(e){var n={minX:1/0,maxX:-1/0,minY:1/0,maxY:-1/0};i._eachShape((function(o,s){var l=i._findPercentageMembersInContainerByIndex(a,s),u={minX:1/0,maxX:-1/0,minY:1/0,maxY:-1/0},c=function(t){if(t&&"text"==t.get("type")){var e=t.getBBox(),i=e.minX,n=e.maxX,r=e.minY,a=e.maxY;i<u.minX&&(u.minX=i),n>u.maxX&&(u.maxX=n),r<u.minY&&(u.minY=r),a>u.maxY&&(u.maxY=a)}};if(r.each(l,(function(t){return r.isArray(t)?c(t[e]):c(t)})),u.minX>n.maxX||u.maxX<n.minX||u.minY>n.maxY||u.maxY<n.minY){var p=function(e){if(e){var i={opacity:1};t?e.animate(i,t):e.attr(i)}};r.each(l,(function(t){return r.isArray(t)?p(t[e]):p(t)})),r.assign(n,u)}}))};n.compareField?[0,1].forEach(o):o(),t&&e&&setTimeout(e,t)},e.prototype.fadeOutPercentages=function(t,e){var i=this,n=this._findPercentageContainer();this._eachShape((function(e,a){var o=i._findPercentageMembersInContainerByIndex(n,a),s=function(e){if(e){var i={opacity:0};t?e.animate(i,t):e.attr(i)}};r.each(o,(function(t){return r.isArray(t)?t.forEach(s):s(t)}))})),t&&e&&setTimeout(e,t)},e.prototype.refreshPercentages=function(t){var e=this;if(!1!==this.options.animation){var i=this._calcRefreshFadeDurations(),n=i.fadeOutDuration,r=i.fadeInDuration;this._shouldResetPercentages=!1,this.fadeOutPercentages(n,(function(){e._shouldResetPercentages=!0,e.resetPercentages(),e.fadeInPercentages(r,t)}))}},e.prototype._findPercentageContainer=function(t){void 0===t&&(t=!1);var e=this.view.middleGroup,i=e.get("percentageContainer");return!i&&t&&(i=e.addGroup(),e.set("percentageContainer",i)),i},e.prototype._findPercentageMembersInContainerByIndex=function(t,e,i){void 0===i&&(i=!1);var n=this.options,r=n.percentage||{},a=r.visible,o=r.line,s=void 0===o?{}:o,l=r.text,u=void 0===l?{}:l,c=r.value,p=void 0===c?{}:c,h={line:void 0,text:void 0,value:void 0};if(!1===a||!t)return h;if(!1!==s.visible){var f=function(n){var r="_percentage-line-"+e+"-"+n,a=t.get(r);return!a&&i&&(a=t.addShape({id:r,type:"line",attrs:{}}),t.set(r,a)),a},d=n.compareField?[0,1].map(f):f(0);h.line=d}if(!1!==u.visible){f=function(n){var r="_percentage-text-"+e+"-"+n,a=t.get(r);return!a&&i&&(a=t.addShape({id:r,type:"text",attrs:{}}),t.set(r,a)),a};var g=n.compareField?[0,1].map(f):f(0);h.text=g}if(!1!==p.visible){f=function(n){var r="_percentage-value-"+e+"-"+n,a=t.get(r);return!a&&i&&(a=t.addShape({id:r,type:"text",attrs:{}}),t.set(r,a)),a};var v=n.compareField?[0,1].map(f):f(0);h.value=v}return h},e.prototype._calcRefreshFadeDurations=function(){var t=this.options,e=r.get(t,"animation.update.duration"),i=r.get(t,"animation.enter.duration");return{fadeInDuration:.6*Math.min(i,e),fadeOutDuration:1.2*Math.max(i,e)}},e.prototype.resetLabels=function(){var t=this;if(this._shouldResetLabels){var e,i=this.options,a=i.xField,s=i.yField,l=Date.now(),u=this._getGeometry().labelsContainer,c=i.label||{},h=r.deepMix(n.__assign({},this.theme.label),i.label.style,{opacity:0,textAlign:"center",textBaseline:"middle"});this._eachShape((function(r,f,d,g){var v,y=r.get("element");0==f&&(e=d);var m=r.getBBox(),b=m.minX,x=m.maxX,_=m.minY,M=m.maxY,w=d[a],S=d[s];c.adjustColor&&(h.fill=t._getAdjustedTextFillByShape(r));var C,P=d.__compare__,O=((v={})[o._ORIGIN]=d,v.element=y,v.elementIndex=g,v.mappingDatum=[].concat(y.getModel().mappingData)[0],v.mappingDatumIndex=0,v);C=c.formatter?c.formatter(w,O,f,S,e[s]):P?[0,1].map((function(){return""+S})).join(i.transpose?"\n\n":" "):w+" "+S;var T=t._findLabelInContainerByIndex(u,f,!0),A=P?P.yValues[0]/(P.yValues[0]+P.yValues[1]):.5;T&&(T.attr(n.__assign(n.__assign({},h),{x:p(b,x,i.transpose?.5:A),y:p(_,M,i.transpose?A:.5),text:C})),T.set("adjustTimestamp",l))})),u.get("children").forEach((function(t){t.get("adjustTimestamp")!=l&&(t.attr({opacity:0}),u.set(t.get("id"),null),setTimeout((function(){return t.remove()})))}))}},e.prototype.fadeInLabels=function(t,e,i){var n=this,r=this._getGeometry().labelsContainer;this._eachShape((function(i,a){if(!t||t==i){var o=n._findLabelInContainerByIndex(r,a);if(o){var s=i.getBBox(),l=o.getBBox();if(l.minX>=s.minX&&l.maxX<=s.maxX&&l.minY>=s.minY&&l.maxY<=s.maxY){var u={opacity:1};e?o.animate(u,e):o.attr(u)}}}})),e&&i&&setTimeout(i,e)},e.prototype.fadeOutLabels=function(t,e,i){var n=this,r=this._getGeometry().labelsContainer;this._eachShape((function(i,a){if(!t||t==i){var o=n._findLabelInContainerByIndex(r,a);if(o){var s={opacity:0};e?o.animate(s,e):o.attr(s)}}})),e&&i&&setTimeout(i,e)},e.prototype.refreshLabels=function(t){var e=this;if(!1!==this.options.animation){var i=this._calcRefreshFadeDurations(),n=i.fadeOutDuration,r=i.fadeInDuration;this._shouldResetLabels=!1,this.fadeOutLabels(null,n,(function(){e._shouldResetLabels=!0,e.resetLabels(),e.fadeInLabels(null,r,t)}))}},e.prototype._findLabelInContainerByIndex=function(t,e,i){var n,r;if(void 0===i&&(i=!1),!1===(null===(n=this.options.label)||void 0===n?void 0:n.visible))return r;var a="_label-"+e;return!(r=t.get(a))&&i&&(r=t.addShape({id:a,type:"text",attrs:{}}),t.set(a,r)),r},e.prototype.resetCompareTexts=function(){if(this._shouldResetCompareTexts){var t,e,i=this.options;if(this._eachShape((function(i,n,a){0==n&&(t=i.get("parent").getBBox(),e=r.get(a,"__compare__"))})),t&&e&&!1!==r.get(i,"compareText.visible")){var n=this._findCompareTextContainer(!0),a=e.yValuesMax,o=e.compareValues,s=t.minX,l=t.maxX,u=t.minY,c=t.maxY,h=n.get("children");[0,1].forEach((function(t){var e=h[t];e||(e=n.addShape({type:"text"})),e.attr(r.deepMix({},r.get(i,"compareText.style"),{text:i.transpose?o[t]:t?" "+o[t]:o[t]+" ",x:i.transpose?s+r.get(i,"compareText.offsetX"):p(s,l,a[0]/(a[0]+a[1])),y:i.transpose?p(u,c,a[0]/(a[0]+a[1]))+(t?8:-8):u+r.get(i,"compareText.offsetY"),opacity:0,textAlign:i.transpose?"right":t?"left":"right",textBaseline:i.transpose&&t?"top":"bottom"}))}))}}},e.prototype.fadeInCompareTexts=function(t,e){var i=this._findCompareTextContainer();if(i){var n=i.get("children");[0,1].forEach((function(e){var i=n[e];if(i){var r={opacity:1};t?i.animate(r,t):i.attr(r)}}))}t&&e&&setTimeout(e,t)},e.prototype.fadeOutCompareTexts=function(t,e){var i=this._findCompareTextContainer();if(i){var n=i.get("children");[0,1].forEach((function(e){var i=n[e];if(i){var r={opacity:0};t?i.animate(r,t):i.attr(r)}}))}t&&e&&setTimeout(e,t)},e.prototype.refreshCompareTexts=function(t){var e=this;if(!1!==this.options.animation){var i=this._calcRefreshFadeDurations(),n=i.fadeInDuration,r=i.fadeOutDuration;this._shouldResetCompareTexts=!1,this.fadeOutCompareTexts(r,(function(){e._shouldResetCompareTexts=!0,e.resetCompareTexts(),e.fadeInCompareTexts(n,t)}))}},e.prototype._findCompareTextContainer=function(t){void 0===t&&(t=!1);var e=this.view.middleGroup,i=e.get("compareTextContainer");return!i&&t&&(i=e.addGroup(),e.set("compareTextContainer",i)),i},e.prototype._eachShape=function(t){var e,i,n=this._findCheckedData(this.getData()),r=n.length,a=0;null===(e=this._getGeometry())||void 0===e||e.elements.forEach((function(e,o){var s=e.shape,l=n[a];a<r&&t(s,a,l,i,o),i=l,a++}))},e.prototype._getGeometry=function(){return this.view.geometries[0]},e.prototype._getAdjustedTextFillByShape=function(t){var e=t.attr("fill"),i=t.attr("opacity")?t.attr("opacity"):1,n=c.rgb2arr(e),r=Math.round(.299*n[0]+.587*n[1]+.114*n[2])/i;return c.mappingColor([{from:0,to:85,color:"white"},{from:85,to:170,color:"#F6F6F6"},{from:170,to:255,color:"black"}],r)},e.prototype._genCustomFieldForDynamicHeight=function(t){var e=this.options,i=t.reduce((function(t,i){return t+i[e.yField]}),0),n=1;t.forEach((function(r,a){var o=r[e.yField],s=n-o/i;r.__custom__={datumIndex:a,dataLength:t.length,ratioUpper:n,ratioLower:s,reverse:e.transpose},n=s}))},e.prototype._findCheckedDataByMouseDownLegendItem=function(t){var e=t.get("parent").get("children").map((function(t){return!t.get("unchecked")}));return this.getData().filter((function(t,i){return e[i]}))},e.prototype._findCheckedDataInNewData=function(t){var e=this.options,i=this.view.getController("legend").container.findAll((function(t){return"legend-item"==t.get("name")})).filter((function(t){return t.get("unchecked")})).map((function(t){return t.get("id").replace("-legend-item-","")}));return t.filter((function(t){return!r.contains(i,t[e.xField])}))},e.prototype._findCheckedData=function(t){var e,i=this.options;if(null===(e=i.legend)||void 0===e?void 0:e.visible){var n=this.view.getController("legend").container.findAll((function(t){return"legend-item"==t.get("name")})).filter((function(t){return!t.get("unchecked")})).map((function(t){return t.get("id").replace("-legend-item-","")}));return t.filter((function(t){return r.contains(n,t[i.xField])}))}return this.processData(i.data)},e.prototype._reduceDataForCompare=function(t){var e,i=this.options,n=[-1/0,-1/0];return(t=t.reduce((function(t,r){var a,o=r[i.xField],s=r[i.yField],l=r[i.compareField];e||(e=l);var u=t.find((function(t){return t[i.xField]==o}));u||((a={})[i.xField]=o,a[i.yField]=0,a.__compare__={compareValues:[],yValues:[],yValuesMax:[],yValuesNext:void 0,transpose:i.transpose},u=a,t.push(u));var c=l==e?0:1;return u.__compare__.yValues[c]=s,n[c]<s&&(n[c]=s),u.__compare__.compareValues[c]=l,t}),[])).forEach((function(e,a){e[i.yField]=r.get(e,"__compare__.yValues",[]).reduce((function(t,e){return t+e}),0),r.set(e,"__compare__.yValuesMax",n),r.set(e,"__compare__.yValuesNext",r.get(t,a+1+".__compare__.yValues"))})),t},e.prototype._updateDataForCompare=function(t){var e=[-1/0,-1/0];t.forEach((function(t){var i=r.get(t,"__compare__.yValues");[0,1].forEach((function(t){i[t]>e[t]&&(e[t]=i[t])}))})),t.forEach((function(i,n){r.set(i,"__compare__.yValuesMax",e),r.set(i,"__compare__.yValuesNext",r.get(t,n+1+".__compare__.yValues"))}))},e}(l.default);i.default=d,s.registerPlotType("funnel",d)},{"../../base/global":392,"../../base/view-layer":395,"../../dependents":425,"../../geoms/factory":430,"../../util/color":673,"./animation/funnel-scale-in-x":517,"./animation/funnel-scale-in-y":518,"./geometry/shape/funnel-basic-rect":519,"./geometry/shape/funnel-dynamic-rect":520,"./theme":523,"@antv/dom-util":92,"@antv/util":803,tslib:894}],523:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});t("../../theme").registerTheme("funnel",{columnStyle:{normal:{},active:function(t){return{opacity:.5*(t.opacity||1)}},disable:function(t){return{opacity:.5*(t.opacity||1)}},selected:{lineWidth:1,stroke:"black"}}})},{"../../theme":669}],524:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.onEvent=i.EVENT_MAP=void 0;var n=t("@antv/util"),r=t("../../util/event");Object.defineProperty(i,"EVENT_MAP",{enumerable:!0,get:function(){return r.EVENT_MAP}}),Object.defineProperty(i,"onEvent",{enumerable:!0,get:function(){return r.onEvent}});var a=r.getEventMap({range:"point",statistic:"annotation-text"});n.assign(r.EVENT_MAP,a)},{"../../util/event":677,"@antv/util":803}],525:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.GaugeShape=void 0;var n=t("tslib"),r=t("@antv/util"),a=t("@antv/g2"),o=t("../../../../theme"),s=t("../../../../util/common"),l=function(){function t(t){this.uid=t}return t.prototype.setOption=function(t,e){this.type=t,this.options=e,this.axis=e.axis,this.pivot=e.pivot},t.prototype.render=function(){var t=this;a.registerShape("point","gauge",{draw:function(e,i){var n,r,a;this.gauge={},this.gauge.options=t.options,this.gauge.axis=t.axis,this.gauge.pivot=t.pivot,this.gauge.type=t.type;var o=this.gauge,s=this.gauge.type,l=e.points[0],u=this.parsePoint({x:0,y:0}),c=this.parsePoint({x:l.x||0,y:1});o.center=u,o.group=i;var p=u.x-c.x,h=u.y-c.y;this.gauge.ringRadius=Math.sqrt(p*p+h*h);var f=this.getAngleRange(),d=f.starAngle,g=f.endAngle,v=l.x*(g-d)+d;switch(s){case"meterGauge":this.drawBarGauge(v),this.gauge.axis.visible&&(null===(n=this.gauge.axis.tickLine)||void 0===n?void 0:n.visible)&&this.drawInSideAxis();break;case"fanGauge":this.drawGauge(v),this.gauge.axis.visible&&(null===(r=this.gauge.axis.tickLine)||void 0===r?void 0:r.visible)&&this.drawOutSideAxis();break;case"standardGauge":default:this.drawGauge(v),this.gauge.axis.visible&&(null===(a=this.gauge.axis.tickLine)||void 0===a?void 0:a.visible)&&this.drawAxis()}this.gauge.pivot.visible&&this.drawPivot(e,i)},drawGauge:function(t){var e=this.gauge.options.range;this.drawBottomRing(),e&&e.length?this.drawRangeColor():this.drawCurrentRing(t)},drawRangeColor:function(){for(var t=this.gauge.options,e=t.min,i=t.max,n=t.range,a=t.color,s=t.rangeStyle,l=a||o.getGlobalTheme().colors,u=this.getAngleRange(),c={min:e,max:i,starAngle:u.starAngle,endAngle:u.endAngle},p=0;p<n.length;p++){var h=this.valueToAngle(n[p],c),f=this.valueToAngle(n[p+1],c);if(f>=h){var d=this.getPath(h,f),g=r.deepMix({fill:l[p]},s);this.drawRing(d,g)}}},drawBottomRing:function(){var t=this.getAngleRange(),e=t.starAngle,i=t.endAngle,n=this.gauge.options.rangeBackgroundStyle,r=this.getPath(e,i);this.drawRing(r,n)},drawCurrentRing:function(t){var e=this.getAngleRange().starAngle,i=this.gauge.rangeStyle,n=this.getPath(e,t);this.drawRing(n,i)},drawInSideAxis:function(){for(var t=this.gauge.options,e=t.min,i=t.max,n=t.axis,r=this.getAngleRange(),a={min:e,max:i,starAngle:r.starAngle,endAngle:r.endAngle},o=(i-e)/n.tickCount,s=0;s<n.tickCount;s++){var l=e+s*o,u=this.valueToAngle(l+o/2,a);this.drawRect(u,{length:n.tickLine.length,style:n.tickLine.style})}},drawAxis:function(){for(var t=this.gauge.axis,e=this.gauge.options,i=e.min,n=e.max,a=this.getAngleRange(),o={min:i,max:n,starAngle:a.starAngle,endAngle:a.endAngle},s=(n-i)/(t.tickCount-1),l=0;l<t.tickCount;l++){var u=i+l*s,c=this.valueToAngle(u,o),p=r.clone(t.tickLine.style);l%5!=0&&(p.lineWidth=p.lineWidth/2),this.drawRect(c,{length:l%5==0?t.tickLine.length:t.tickLine.length/2,style:p})}},drawOutSideAxis:function(){for(var t=this.gauge.axis,e=this.gauge.options,i=e.min,n=e.max,r=this.getAngleRange(),a={min:i,max:n,starAngle:r.starAngle,endAngle:r.endAngle},o=(n-i)/(t.tickCount-1),s=0;s<t.tickCount;s++){var l=i+s*o,u=this.valueToAngle(l,a);this.drawRect(u,{length:t.tickLine.length,style:t.tickLine.style})}},drawBarGauge:function(t){for(var e=this,i=this.gauge.options,n=i.min,a=i.max,l=i.range,u=i.color,c=i.rangeStyle,p=i.rangeBackgroundStyle,h=u||o.getGlobalTheme().colors,f=this.getAngleRange(),d=f.starAngle,g=f.endAngle,v={min:n,max:a,starAngle:d,endAngle:g},y=(g-d)/49,m=y/3,b=0;b<50;b++){var x=d+b*y,_=this.getPath(x-m/2,x+m-m/2),M=p;if(l&&l.length){var w=l.map((function(t){return e.valueToAngle(t,v)})),S=s.sortedLastIndex(w,x),C=Math.min(S,l.length-1);M=r.deepMix({},{fill:h[C-1]},c)||p}else M=t>=x?r.deepMix({},{fill:u},c):p;this.drawRing(_,M)}},getAngleRange:function(){var t=90-.5*(360-this.gauge.options.angle);return{starAngle:(180-t)*Math.PI/180,endAngle:(360+t)*Math.PI/180}},valueToAngle:function(t,e){var i=e.min,n=e.max,r=e.starAngle,a=e.endAngle;if(t===n)return a;if(t===i)return r;var o=(t-i)/(n-i);n===i&&(o=1);var s=o*(a-r)+r;return s=Math.max(s,r),s=Math.min(s,a)},drawRing:function(t,e){this.gauge.group.addShape("path",{attrs:r.deepMix({},{path:t},e)})},drawRect:function(t,e){var i,a=this.gauge.axis,o=n.__assign(n.__assign({},a),e),s=o.offset,l=o.length,u=this.gauge.center,c=(i=s<0?this.gauge.ringRadius-this.gauge.options.rangeSize+s:this.gauge.ringRadius+s)*Math.cos(t)+u.x,p=i*Math.sin(t)+u.y,h=(i+l)*Math.cos(t)+u.x,f=(i+l)*Math.sin(t)+u.y;this.gauge.group.addShape("line",{attrs:r.deepMix({},{x1:c,y1:p,x2:h,y2:f},e.style)}).set("name","axis-tickLine")},getPath:function(t,e){var i=this.gauge.center,n=this.gauge.ringRadius,r=this.gauge.options.rangeSize,a=n*Math.cos(t)+i.x,o=n*Math.sin(t)+i.y,s=(n-r)*Math.cos(t)+i.x,l=(n-r)*Math.sin(t)+i.y,u=n*Math.cos(e)+i.x,c=n*Math.sin(e)+i.y,p=(n-r)*Math.cos(e)+i.x,h=(n-r)*Math.sin(e)+i.y,f=Math.abs(t-e)>Math.PI?1:0;return[["M",a,o],["A",n,n,0,f,1,u,c],["L",p,h],["A",n-r,n-r,0,f,0,s,l],["Z"]]},drawPivot:function(t){var e=this.getAngleRange(),i=e.starAngle,n=e.endAngle,a=this.gauge.options,o=a.radius,s=a.rangeSize,l=this.gauge.pivot,u=l.thickness,c=l.thickness/2.5,p=this.gauge.group,h=t.points[0],f=this.parsePoint({x:0,y:0}),d=h.x*(n-i)+i,g={x:(this.gauge.ringRadius-s)*o*Math.cos(d)+this.gauge.center.x,y:(this.gauge.ringRadius-s)*o*Math.sin(d)+this.gauge.center.y};if(l.base.visible&&p.addShape("circle",{attrs:r.deepMix({},{x:f.x,y:f.y,r:l.base.size?l.base.size/2:2.2*u},l.base.style)}),l.pointer.visible){var v={x:f.x-g.x,y:f.y-g.y},y=Math.sqrt(v.x*v.x+v.y*v.y);v.x*=1/y,v.y*=1/y;var m=-Math.PI/2,b=Math.cos(m)*v.x-Math.sin(m)*v.y,x=Math.sin(m)*v.x+Math.cos(m)*v.y,_=Math.PI/2,M=Math.cos(_)*v.x-Math.sin(_)*v.y,w=Math.sin(_)*v.x+Math.cos(_)*v.y,S=[["M",g.x+b*c,g.y+x*c],["L",f.x+b*u,f.y+x*u],["L",f.x+M*u,f.y+w*u],["L",g.x+M*c,g.y+w*c],["Z"]];p.addShape("path",{attrs:r.deepMix({},{path:S},l.pointer.style)}),p.addShape("circle",{attrs:{x:g.x,y:g.y,r:c,fill:l.pointer.style.fill}}),p.addShape("circle",{attrs:{x:f.x,y:f.y,r:u,fill:l.pointer.style.fill}})}l.pin.visible&&p.addShape("circle",{attrs:r.deepMix({},{x:f.x,y:f.y,r:c/1.2},l.pin.style)})}})},t}();i.GaugeShape=l},{"../../../../theme":669,"../../../../util/common":674,"@antv/g2":309,"@antv/util":803,tslib:894}],526:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="gauge",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":527,"@antv/util":803,tslib:894}],527:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importDefault(t("../../base/view-layer")),s=t("../../util/scale"),l=t("./geometry/shape/gauge-shape"),u=n.__importStar(t("./event")),c=function(t){function e(e){var i=t.call(this,e)||this;return i.type="gauge",i}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{startAngle:-7/6,endAngle:1/6,rangeBackgroundStyle:{fill:"#f0f0f0"},rangeSize:24,statistic:{position:["50%","80%"]},axis:{visible:!0,offset:-10,tickCount:21,subTickCount:4,tickLine:{visible:!0,length:5,style:{stroke:"#aaa",lineWidth:2}},label:{visible:!0,offset:8,style:{fill:"#aaa",fontSize:16,textAlign:"center",textBaseline:"middle"}}},pivot:{visible:!0,thickness:6,pin:{visible:!0,size:2,style:{fill:"#2E364B"}},base:{visible:!0,style:{fill:"#EEEEEE"}},pointer:{visible:!0,style:{fill:"#CFCFCF"}}}})},e.prototype.init=function(){var e=this.options,i=e.value,n=(e.range||[]).map((function(t){return+t})).sort((function(t,e){return t-e})),r=this.options,a=r.min,o=void 0===a?n[0]:a,s=r.max,l=void 0===s?n[n.length-1]:s,u=r.format,c=void 0===u?function(t){return""+t}:u,p=c(i);this.options.data=[{value:i||0}],this.options.valueText=p,this.options.min=o,this.options.max=l,this.options.format=c,this.initG2Shape(),t.prototype.init.call(this)},e.prototype.initG2Shape=function(){this.gaugeShape=new l.GaugeShape(r.uniqueId()),this.gaugeShape.setOption(this.type,r.deepMix({},this.options,{radius:.6,angle:240,textPosition:"100%"})),this.gaugeShape.render()},e.prototype.geometryParser=function(){return"gauge"},e.prototype.scale=function(){var e=this.options,i=e.min,n=e.max,r=e.format,a={value:{}};s.extractScale(a.value,{min:i,max:n,minLimit:i,maxLimit:n,nice:!0,formatter:r,tickInterval:20}),this.setConfig("scales",a),t.prototype.scale.call(this)},e.prototype.coord=function(){var t={type:"polar",cfg:{radius:1,startAngle:this.options.startAngle*Math.PI,endAngle:this.options.endAngle*Math.PI}};this.setConfig("coordinate",t)},e.prototype.axis=function(){var t,e=this.options.axis,i={value:{line:null,grid:null,tickLine:null}};t=e.offset<0?e.offset-this.options.rangeSize-e.tickLine.length-e.label.offset:e.offset+e.tickLine.length+e.label.offset,e.label.visible?i.value.label={offset:t,textStyle:e.label.style,autoRotate:!0}:i.value.label={style:{opacity:0}},i[1]=!1,i.value=!!e.visible&&i.value,this.setConfig("axes",i)},e.prototype.addGeometry=function(){var t={type:"point",position:{fields:["value","1"]},shape:{values:["gauge"]},color:{values:[this.options.pivot.pointer.style.fill||this.theme.defaultColor]}};this.setConfig("geometry",t)},e.prototype.annotation=function(){var t=this.options.statistic,e=[];if(t&&t.visible){var i=this.renderStatistic();e.push(i)}this.setConfig("annotations",e)},e.prototype.renderStatistic=function(){var t=Math.max(this.options.width,this.options.height)/20,e=this.options.statistic;return{type:"text",content:e.text,top:!0,position:e.position,style:{fill:e.color,fontSize:e.size?e.size:1.2*t,textAlign:"center",textBaseline:"middle"}}},e.prototype.parseEvents=function(){t.prototype.parseEvents.call(this,u)},e}(o.default);i.default=c,a.registerPlotType("gauge",c)},{"../../base/global":392,"../../base/view-layer":395,"../../util/scale":712,"./event":524,"./geometry/shape/gauge-shape":525,"@antv/util":803,tslib:894}],528:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="groupedBar",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":529,"@antv/util":803,tslib:894}],529:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importDefault(t("../bar/layer"));t("./theme");var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="groupedBar",e.baseType="bar",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{xAxis:{visible:!0,grid:{visible:!0}},yAxis:{visible:!0,title:{visible:!1}},label:{visible:!0,position:"right",adjustColor:!0},legend:{visible:!0,position:"right-top",offsetY:0}})},e.prototype.afterRender=function(){t.prototype.afterRender.call(this);var e=r.valuesOfKey(this.options.data,this.options.groupField)||[];this.view.on("tooltip:change",(function(t){var i=t.items,n=void 0===i?[]:i;r.sortBy(n.slice(),(function(t){return e.indexOf(t.name)})).reverse().forEach((function(e,i){t.items[i]=e}))}))},e.prototype.getColorScale=function(){var t=this.options.groupField;if(t)return this.view.getScaleByField(t)},e.prototype.scale=function(){var e={};e[this.options.groupField]={values:r.valuesOfKey(this.options.data,this.options.groupField)},this.options.meta?this.options.meta=r.deepMix({},this.options.meta,e):this.options.meta=e,t.prototype.scale.call(this)},e.prototype.adjustBar=function(t){t.adjust=[{type:"dodge",marginRatio:.1}]},e.prototype.geometryTooltip=function(){this.bar.tooltip={};var t=this.options.tooltip;t.fields&&(this.bar.tooltip.fields=t.fields),t.formatter&&(this.bar.tooltip.callback=t.formatter,t.fields||(this.bar.tooltip.fields=[this.options.xField,this.options.yField,this.options.groupField]))},e}(o.default);i.default=s,a.registerPlotType("groupedBar",s)},{"../../base/global":392,"../bar/layer":464,"./theme":530,"@antv/util":803,tslib:894}],530:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../../theme"),r=t("../bar/theme");n.registerTheme("groupedBar",r.DEFAULT_BAR_THEME)},{"../../theme":669,"../bar/theme":465}],531:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="groupedColumn",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":532,"@antv/util":803,tslib:894}],532:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importDefault(t("../column/layer"));t("./theme");var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.baseType="column",e.type="groupedColumn",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{yAxis:{title:{visible:!0}}})},e.prototype.getResponsiveTheme=function(){return this.themeController.getResponsiveTheme("column")},e.prototype.getColorScale=function(){var t=this.options.groupField;if(t)return this.view.getScaleByField(t)},e.prototype.addGeometry=function(){t.prototype.addGeometry.call(this)},e.prototype.adjustColumn=function(t){t.adjust=[{type:"dodge",marginRatio:.1}]},e.prototype.geometryTooltip=function(){this.column.tooltip={};var t=this.options.tooltip;t.fields&&(this.column.tooltip.fields=t.fields),t.formatter&&(this.column.tooltip.callback=t.formatter,t.fields||(this.column.tooltip.fields=[this.options.xField,this.options.yField,this.options.groupField]))},e}(o.default);i.default=s,a.registerPlotType("groupedColumn",s)},{"../../base/global":392,"../column/layer":490,"./theme":533,"@antv/util":803,tslib:894}],533:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../../theme"),r=t("../column/theme");n.registerTheme("groupedColumn",r.DEFAULT_COLUMN_THEME)},{"../../theme":669,"../column/theme":491}],534:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="groupedRose",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":535,"@antv/util":803,tslib:894}],535:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="groupedRose",e.baseType="rose",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{xAxis:{visible:!0,line:{visible:!1},tickLine:{visible:!1},grid:{visible:!0,alignTick:!1,style:{lineWidth:.5}},label:{offset:5,autoRotate:!0}},yAxis:{visible:!1}})},e.prototype.getColorScale=function(){var t=this.options.groupField;if(t)return this.view.getScaleByField(t)},e.prototype.adjustRoseAdjust=function(){return[{type:"dodge",marginRatio:1}]},e.prototype.geometryTooltip=function(){this.rose.tooltip={};var t=this.options.tooltip;t.fields&&(this.rose.tooltip.fields=t.fields),t.formatter&&(this.rose.tooltip.callback=t.formatter,t.fields||(this.rose.tooltip.fields=[this.options.radiusField,this.options.categoryField,this.options.groupField]))},e}(n.__importDefault(t("../rose/layer")).default);i.default=o,a.registerPlotType("groupedRose",o)},{"../../base/global":392,"../rose/layer":600,"@antv/util":803,tslib:894}],536:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getPlotComponents=void 0;var n=t("tslib"),r=n.__importDefault(t("./label")),a=n.__importDefault(t("./legend")),o={label:{Ctr:r.default},legend:{Ctr:a.default,padding:"outer"}};i.getPlotComponents=function(t,e,i){if(t.options[e]&&t.options[e].visible){var n=o[e],r=new n.Ctr(i);return n.padding&&t.paddingController.registerPadding(r,n.padding),r}}},{"./label":537,"./legend":538,tslib:894}],537:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("../../../util/color"),a=function(){function t(t){this.destroyed=!1,this.view=t.view,this.plot=t.plot;var e=this.getDefaultOptions();this.options=n.deepMix(e,t,{}),this.init()}return t.prototype.init=function(){var t=this;this.container=this.view.geometries[0].labelsContainer,this.view.on("beforerender",(function(){t.clear(),t.plot.canvas.draw()}))},t.prototype.render=function(){var t=this,e=this.view.geometries[0].elements;n.each(e,(function(e){var i=e.shape,r=t.options,a=r.style,o=r.offsetX,s=r.offsetY,l=t.options.formatter,u=l?l(t.getContent(i)):t.getContent(i),c=t.getPosition(i),p=t.getTextColor(i),h=t.container.addShape("text",{attrs:n.deepMix({},a,{x:c.x+o,y:c.y+s,text:u,fill:p,textAlign:"center",textBaseline:"middle"}),name:"label"});t.options.adjustPosition&&t.adjustLabel(h,i)}))},t.prototype.clear=function(){this.container&&this.container.clear()},t.prototype.hide=function(){this.container.set("visible",!1),this.plot.canvas.draw()},t.prototype.show=function(){this.container.set("visible",!0),this.plot.canvas.draw()},t.prototype.destroy=function(){this.container&&this.container.remove(),this.destroyed=!0},t.prototype.getBBox=function(){return this.container.getBBox()},t.prototype.getDefaultOptions=function(){var t=this.plot.theme.label.style;return{offsetX:0,offsetY:0,style:n.clone(t)}},t.prototype.getContent=function(t){return t.get("origin").data[this.plot.options.colorField]},t.prototype.getPosition=function(t){var e=t.getBBox();return{x:e.minX+e.width/2,y:e.minY+e.height/2}},t.prototype.getTextColor=function(t){if(this.options.adjustColor){var e=t.attr("fill"),i=t.attr("opacity")?t.attr("opacity"):1,n=r.rgb2arr(e),a=Math.round(.299*n[0]+.587*n[1]+.114*n[2])/i;return r.mappingColor([{from:0,to:85,color:"white"},{from:85,to:170,color:"#F6F6F6"},{from:170,to:255,color:"black"}],a)}return this.options.style.fill},t.prototype.adjustLabel=function(t,e){var i=t.getBBox(),n=e.getBBox();(i.width>n.width||i.height>n.height)&&t.attr("text","")},t}();i.default=a},{"../../../util/color":673,"@antv/util":803}],538:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../../util/bbox")),o=function(){function t(t){this.destroyed=!1,this.dataSlides={},this.interactiveEvents={};var e=this.getDefaultOptions();this.options=r.deepMix({},e,t),this.view=this.options.view,this.afterRender=!0,this.init()}return t.prototype.init=function(){var t=this;this.layout=this.getLayout(),this.width=this.options.width?this.options.width:this.getDefaultWidth(),this.height=this.options.height?this.options.height:this.getDefaultHeight();var e=this.options.plot.container;this.container&&this.container.remove(),this.container=e.addGroup(),this.view.on("beforerender",(function(){t.clear(),t.options.plot.canvas.draw()}))},t.prototype.render=function(){var t=this.view.geometries[0].scales,e=this.options.plot.options.colorField;this.colorScale=t[e];var i=this.colorScale,n=i.min,r=i.max,a=this.options.plot.options.color;"horizontal"===this.layout?this.renderHorizontal(n,r,a):this.renderVertical(n,r,a),this.legendLayout(),this.addInteraction()},t.prototype.hide=function(){this.container.set("visible",!1),this.options.plot.canvas.draw()},t.prototype.show=function(){this.container.set("visible",!0),this.options.plot.canvas.draw()},t.prototype.clear=function(){this.container&&this.container.clear()},t.prototype.destroy=function(){this.container&&this.container.remove(),this.offEvent(),this.destroyed=!0},t.prototype.getBBox=function(){var t=this.container.getBBox();return new a.default(this.x,this.y,t.width,t.height)},t.prototype.renderVertical=function(t,e,i){var a=this,o=(e-t)/(i.length-1),s=1/(i.length-1),l=this.height/(i.length-1),u="l(90)";r.each(i,(function(t,e){u+=s*e+":"+t+" "})),this.container.addShape("rect",{attrs:{x:0,y:0,width:this.width,height:this.height,fill:u},name:"legend"}),r.each(i,(function(t,e){var i=l*e;a.container.addShape("path",{attrs:n.__assign({path:[["M",0,i],["L",a.width,i]]},a.options.ticklineStyle)});var r=Math.round(o*e);a.container.addShape("text",{attrs:n.__assign({text:r,textAlign:"left",textBaseline:"middle",x:a.width+4,y:i},a.options.text.style),name:"legend-label"})}));var c=[["M",-10,-7],["L",0,0],["L",-10,7],["Z"]];this.anchor=this.container.addShape("path",{attrs:n.__assign({path:c},this.options.anchorStyle)}),this.anchor.set("visible",!1)},t.prototype.renderHorizontal=function(t,e,i){var a=this,o=(e-t)/(i.length-1),s=1/(i.length-1),l=this.width/(i.length-1),u="l(0)";r.each(i,(function(t,e){u+=s*e+":"+t+" "})),this.container.addShape("rect",{attrs:{x:0,y:0,width:this.width,height:this.height,fill:u},name:"legend"}),r.each(i,(function(t,e){var i=l*e;a.container.addShape("path",{attrs:n.__assign({path:[["M",i,0],["L",i,a.height]]},a.options.ticklineStyle),name:"legend-label"});var r=Math.round(o*e);a.container.addShape("text",{attrs:n.__assign({text:r,textAlign:"center",textBaseline:"top",x:i,y:a.height+4},a.options.text.style)})}));var c=[["M",0,0],["L",-7,-10],["L",7,-10],["Z"]];this.anchor=this.container.addShape("path",{attrs:n.__assign({path:c},this.options.anchorStyle)}),this.anchor.set("visible",!1)},t.prototype.getLayout=function(){var t=this.options.position.split("-");return this.position=t[0],"left"===t[0]||"right"===t[0]?"vertical":"horizontal"},t.prototype.getDefaultWidth=function(){return"horizontal"===this.layout?this.view.coordinateBBox.width:10},t.prototype.getDefaultHeight=function(){return"vertical"===this.layout?this.view.coordinateBBox.height:10},t.prototype.legendLayout=function(){var t=this,e=this.view.coordinateBBox,i=this.options.plot.getPlotTheme().bleeding;r.isArray(i)&&r.each(i,(function(e,n){"function"==typeof i[n]&&(i[n]=i[n](t.options.plot.options))}));var n=this.container.getBBox(),a=0,o=0,s=this.options.position.split("-"),l=this.options.plot.width,u=this.options.plot.height;"left"===s[0]?a=i[3]:"right"===s[0]?a=l-i[1]-n.width:"center"===s[1]?a=this.width===e.width?e.x:(l-n.width)/2:"left"===s[1]?a=i[3]:"right"===s[1]&&(a=this.options.plot.width-i[1]-n.width),"bottom"===s[0]?o=u-i[2]-n.height:"top"===s[0]?o=this.getTopPosition(i):"center"===s[1]?o=this.height===e.height?e.y:(u-n.height)/2:"top"===s[1]?o=i[0]:"bottom"===s[1]&&(o=u-i[2]-n.height),this.x=a,this.y=o,this.container.translate(a,o)},t.prototype.getDefaultOptions=function(){return{text:{style:{fontSize:12,fill:"rgba(0, 0, 0, 0.45)"}},ticklineStyle:{lineWidth:1,stroke:"rgba(0, 0, 0, 0.8)"},anchorStyle:{fill:"rgba(0,0,0,0.5)"},triggerOn:"mousemove"}},t.prototype.addInteraction=function(){var t=this,e=("rect"===this.options.plot.options.shapeType?"polygon":"point")+":"+this.options.triggerOn,i=this.options.plot.options.colorField,n=this.colorScale,r=n.min,a=n.max,o=function(e){var n=(e.data.data[i]-r)/(a-r);t.moveAnchor(n)};this.view.on(e,o),this.interactiveEvents[e]={target:this.view,handler:o};var s=function(){t.anchor.set("visible",!1)};this.options.plot.canvas.on("mouseleave",s),this.interactiveEvents.mouseleave={target:this.options.plot.canvas,handler:s}},t.prototype.moveAnchor=function(t){if(this.anchor.set("visible",!0),"vertical"===this.layout){var e=this.height*t;(i=[1,0,0,0,1,0,0,0,1])[7]=e,this.anchor.stopAnimate(),this.anchor.animate({matrix:i},400,"easeLinear")}else{var i;e=this.width*t;(i=[1,0,0,0,1,0,0,0,1])[6]=e,this.anchor.stopAnimate(),this.anchor.animate({matrix:i},400,"easeLinear")}},t.prototype.getTopPosition=function(t){return this.options.plot.description?this.options.plot.description.getBBox().maxY+10:this.options.plot.title?this.options.plot.title.getBBox().maxY+10:t[0]},t.prototype.offEvent=function(){r.each(this.interactiveEvents,(function(t,e){var i=t.target,n=t.handler;i.off(e,n)}))},t}();i.default=o},{"../../../util/bbox":672,"@antv/util":803,tslib:894}],539:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="heatmap",t.prototype.createLayers.call(this,i)},e.prototype.changeShape=function(t){this.layers[0].changeShape(t)},e.prototype.mappingSize=function(t){this.layers[0].mappingSize(t)},e.prototype.disableMappingSize=function(){this.layers[0].disableMappingSize()},e.prototype.getSizeScale=function(){return this.layers[0].getSizeScale()},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":540,"@antv/util":803,tslib:894}],540:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("@antv/scale"),o=t("../../base/global"),s=n.__importDefault(t("../../base/view-layer")),l=t("./shape"),u=t("./component"),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.gridSize=[],e.plotComponents=[],e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{shapeType:"rect",legend:{visible:!0,position:"right-center"},tooltip:{shared:!1,showCrosshairs:!1,showMarkers:!1},xAxis:{visible:!0,gridAlign:"center",grid:{visible:!0},tickLine:{visible:!0},line:{visible:!1},label:{visible:!0,autoHide:!0,autoRotate:!0}},yAxis:{visible:!0,gridAlign:"center",grid:{visible:!0,align:"center"},tickLine:{visible:!0},label:{autoHide:!0,autoRotate:!1}},color:["#9ae3d5","#66cdbb","#e7a744","#f1e066","#f27664","#e7c1a2"],label:{visible:!0,adjustColor:!0,adjustPosition:!0,offset:0,style:{stroke:"rgba(255,255,255,0)",lineWidth:0}},interactions:[{type:"tooltip"}]})},e.prototype.afterRender=function(){this.renderPlotComponents(),t.prototype.afterRender.call(this)},e.prototype.changeShape=function(t){if(this.options.shapeType!==t)if(this.options.shapeType=t,"rect"===t){var e=this.getShape();this.circleToRect(e)}else if("circle"===t){e=this.getShape();this.rectToCircle(e)}},e.prototype.mappingSize=function(t){if(!this.options.sizeField||this.options.sizeField!==t){this.options.sizeField=t;var e=r.valuesOfKey(this.options.data,t),i=Math.min.apply(Math,e),n=Math.max.apply(Math,e),o=new(a.getScale("linear"))({min:i,max:n}),s=this.getShape();"rect"===this.options.shapeType?this.rectSizeMapping(s,o,t):"circle"===this.options.shapeType&&this.circleSizeMapping(s,o,t)}},e.prototype.disableMappingSize=function(){var t=this.getShape();"rect"===this.options.shapeType?this.rectDisableSizeMapping(t):"circle"===this.options.shapeType&&this.circleDisableSizeMapping(t)},e.prototype.destroy=function(){r.each(this.plotComponents,(function(t){t.destroy()})),t.prototype.destroy.call(this)},e.prototype.getSizeScale=function(){var t=this.options.sizeField;t&&this.view.getScaleByField(t)},e.prototype.geometryParser=function(){return""},e.prototype.coord=function(){},e.prototype.legend=function(){this.setConfig("legends",!1)},e.prototype.addGeometry=function(){var t;(this.gridSize=this.getGridSize(),"rect"===this.options.shapeType)?t=this.addRect():t=this.addCircle();if(this.options.shapeStyle){var e={};r.isFunction(this.options.shapeStyle)?(e.fields=[this.options.colorField,this.options.xField,this.options.yField,this.options.sizeField],e.callback=this.options.shapeStyle):r.isObject(this.options.shapeStyle)&&(e.cfg=this.options.shapeStyle),t.style=e}this.options.tooltip&&(this.options.tooltip.fields||this.options.tooltip.formatter)&&this.geometryTooltip(t),this.setConfig("geometry",t)},e.prototype.addRect=function(){var t=[.3,.9];this.options.shapeSize&&(t[0]=this.options.shapeSize[0]/this.gridSize[0],t[1]=this.options.shapeSize[1]/this.gridSize[1]);var e={type:"polygon",position:{fields:[this.options.xField,this.options.yField]},color:{fields:[this.options.colorField],values:this.options.color},shape:{values:["rect"]},label:!1};return this.options.sizeField?e.size={fields:[this.options.sizeField],values:t}:e.size={values:[1]},e},e.prototype.addCircle=function(){var t=[.3,.9];this.options.shapeSize?t=this.options.shapeSize:(t[0]=this.gridSize[0]*t[0]*.5,t[1]=this.gridSize[1]*t[1]*.5);var e={type:"point",position:{fields:[this.options.xField,this.options.yField]},color:{fields:[this.options.colorField],values:this.options.color},shape:{values:["curvePoint"]},label:!1};return this.options.sizeField?e.size={fields:[this.options.sizeField],values:t}:e.size={values:[.5*Math.min(this.gridSize[0],this.gridSize[1])*.9]},e},e.prototype.geometryTooltip=function(t){t.tooltip={};var e=this.options.tooltip;e.fields&&(t.tooltip.fields=e.fields),e.formatter&&(t.tooltip.callback=e.formatter,e.fields||(t.tooltip.fields=[this.options.xField,this.options.yField],this.options.colorField&&t.tooltip.fields.push(this.options.colorField)))},e.prototype.getGridSize=function(){if("auto"===this.options.padding)return[0,0];var t=this.getViewRange(),e=this.options,i=e.padding,n=e.xField,a=e.yField,o=e.data,s=t.width-i[1]-i[3],l=t.height-i[0]-i[2];return[s/r.valuesOfKey(o,n).length,l/r.valuesOfKey(o,a).length]},e.prototype.circleToRect=function(t){var e=this,i=this.gridSize;r.each(t,(function(t){var n=t.get("origin"),r=n.x,a=n.y,o=n.size,s=2*o/Math.min(i[0],i[1]);e.options.sizeField||(s=1);var u=l.getCircleCurve(r,a,o),c=l.getRectPath(r,a,i[0],i[1],s);t.stopAnimate(),t.attr("path",u),t.animate({path:c},500,"easeLinear")}))},e.prototype.rectToCircle=function(t){var e=this;r.each(t,(function(t){var i=t.get("coord"),n=t.get("origin").points,a=[];r.each(n,(function(t){a.push(i.convertPoint(t))}));var o=t.getBBox(),s=o.width,u=o.height,c=o.minX+s/2,p=o.minY+u/2,h=e.options.sizeField?1:.9,f=l.getCircleCurve(c,p,Math.min(s,u)/2*h),d=l.getCirclePath(c,p,Math.min(s,u)/2*h);t.stopAnimate(),t.animate({path:f},500,"easeLinear",(function(){t.attr("path",d)}))}))},e.prototype.rectSizeMapping=function(t,e,i){r.each(t,(function(t){var n=t.get("origin").data,r=.3+.6*e.scale(n[i]);t.get("origin").size=r;var a=t.getBBox(),o=a.width,s=a.height,u=a.minX+o/2,c=a.minY+s/2,p=l.getRectPath(u,c,o,s,r);t.stopAnimate(),t.animate({path:p},500,"easeLinear")}))},e.prototype.circleSizeMapping=function(t,e,i){r.each(t,(function(t){var n=t.get("origin").data,r=.3+.6*e.scale(n[i]),a=t.get("origin"),o=a.x,s=a.y,u=a.size,c=l.getCirclePath(o,s,u*r);t.get("origin").size=u*r,t.stopAnimate(),t.animate({path:c},500,"easeLinear")}))},e.prototype.circleDisableSizeMapping=function(t){var e=this;this.options.sizeField=null,r.each(t,(function(t){var i=t.get("origin"),n=i.x,r=i.y,a=.9*Math.min(e.gridSize[0],e.gridSize[1]);t.get("origin").size=a/2;var o=l.getCirclePath(n,r,a/2);t.stopAnimate(),t.animate({path:o},500,"easeLinear")}))},e.prototype.rectDisableSizeMapping=function(t){var e=this;this.options.sizeField=null,r.each(t,(function(t){var i=t.getBBox(),n=i.width,r=i.height,a=i.minX+n/2,o=i.minY+r/2,s=l.getRectPath(a,o,e.gridSize[0],e.gridSize[1],1);t.get("origin").size=1,t.stopAnimate(),t.animate({path:s},500,"easeLinear")}))},e.prototype.getShape=function(){var t=this.view.geometries[0].elements,e=[];return r.each(t,(function(t){e.push(t.shape)})),e},e.prototype.renderPlotComponents=function(){var t=this;r.each(this.plotComponents,(function(t){t.destroy()})),this.plotComponents=[];r.each(["label","legend"],(function(e){var i=n.__assign({view:t.view,plot:t},t.options[e]),r=u.getPlotComponents(t,e,i);r&&(r.render(),t.plotComponents.push(r))}))},e}(s.default);i.default=c,o.registerPlotType("heatmap",c)},{"../../base/global":392,"../../base/view-layer":395,"./component":536,"./shape":541,"@antv/scale":747,"@antv/util":803,tslib:894}],541:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getCircleCurve=i.getCirclePath=i.getRectPath=void 0;var n=t("../../dependents"),r=t("@antv/util");function a(t,e,i,n,r){var a=i*r,o=n*r;return[["M",t-a/2,e+o/2],["Q",t-a/2,e,t-a/2,e-o/2],["Q",t,e-o/2,t+a/2,e-o/2],["Q",t+a/2,e,t+a/2,e+o/2],["Q",t,e+o/2,t-a/2,e+o/2],["Z"]]}function o(t,e,i){return[["M",t,e],["l",-i,0],["a",i,i,0,1,0,2*i,0],["a",i,i,0,1,0,-2*i,0],["Z"]]}i.getRectPath=a,i.getCirclePath=o,i.getCircleCurve=function(t,e,i){return[["M",t-i,e],["Q",t-i,e-i,t,e-i],["Q",t+i,e-i,t+i,e],["Q",t+i,e+i,t,e+i],["Q",t-i,e+i,t-i,e],["Z"]]},n.registerShape("polygon","rect",{draw:function(t,e){var i=this.parsePoints(t.points),n=i[2].x-i[0].x,o=i[0].y-i[1].y,s=a(i[0].x+n/2,i[1].y+o/2,n,o,t.size);return e.addShape("path",{attrs:r.deepMix({},{path:s,fill:t.color,opacity:1},t.style)})}}),n.registerShape("point","curvePoint",{draw:function(t,e){var i=o(t.x,t.y,t.size);return e.addShape("path",{attrs:r.deepMix({},{path:i,fill:t.color,opacity:1},t.style)})}})},{"../../dependents":425,"@antv/util":803}],542:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="histogram",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":543,"@antv/util":803,tslib:894}],543:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=t("../../util/math"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="histogram",e}return n.__extends(e,t),e.prototype.init=function(){this.options.xField="range",this.options.yField="count",t.prototype.init.call(this)},e.prototype.processData=function(t){var e=this,i=this.options,n=i.binField,a=i.binWidth,s=i.binNumber,l=r.clone(t);r.sortBy(l,n);var u=r.valuesOfKey(l,n),c=r.getRange(u),p=c.max-c.min,h=a;if(!a&&s&&(h=p/s),!a&&!s){var f=o.sturges(u);h=p/f}var d={};r.each(l,(function(t){var i=t[n],a=e.getBin(i,h),o=a[0]+"-"+a[1];r.hasKey(d,o)||(d[o]={name:o,range:a,count:0,data:[]}),d[o].data.push(t),d[o].count+=1}));var g=[];return r.each(d,(function(t){g.push(t)})),g},e.prototype.scale=function(){t.prototype.scale.call(this);var e=this.config.scales.range;e.nice=!1,e.type="linear"},e.prototype.getBin=function(t,e){var i=Math.floor(t/e);return[e*i,e*(i+1)]},e}(n.__importDefault(t("../column/layer")).default);i.default=s,a.registerPlotType("histogram",s)},{"../../base/global":392,"../../util/math":680,"../column/layer":490,"@antv/util":803,tslib:894}],544:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("./line");Object.defineProperty(i,"Line",{enumerable:!0,get:function(){return r.default}});var a=t("./treemap");Object.defineProperty(i,"Treemap",{enumerable:!0,get:function(){return a.default}});var o=t("./step-line");Object.defineProperty(i,"StepLine",{enumerable:!0,get:function(){return o.default}});var s=t("./bar");Object.defineProperty(i,"Bar",{enumerable:!0,get:function(){return s.default}});var l=t("./stacked-bar");Object.defineProperty(i,"StackedBar",{enumerable:!0,get:function(){return l.default}});var u=t("./grouped-bar");Object.defineProperty(i,"GroupedBar",{enumerable:!0,get:function(){return u.default}});var c=t("./percent-stacked-bar");Object.defineProperty(i,"PercentStackedBar",{enumerable:!0,get:function(){return c.default}});var p=t("./range-bar");Object.defineProperty(i,"RangeBar",{enumerable:!0,get:function(){return p.default}});var h=t("./area");Object.defineProperty(i,"Area",{enumerable:!0,get:function(){return h.default}});var f=t("./stacked-area");Object.defineProperty(i,"StackedArea",{enumerable:!0,get:function(){return f.default}});var d=t("./percent-stacked-area");Object.defineProperty(i,"PercentStackedArea",{enumerable:!0,get:function(){return d.default}});var g=t("./column");Object.defineProperty(i,"Column",{enumerable:!0,get:function(){return g.default}});var v=t("./column/component/label");Object.defineProperty(i,"ColumnLabel",{enumerable:!0,get:function(){return v.default}});var y=t("./grouped-column");Object.defineProperty(i,"GroupedColumn",{enumerable:!0,get:function(){return y.default}});var m=t("./stacked-column");Object.defineProperty(i,"StackedColumn",{enumerable:!0,get:function(){return m.default}});var b=t("./stacked-column/component/label");Object.defineProperty(i,"StackedColumnLabel",{enumerable:!0,get:function(){return b.default}});var x=t("./range-column");Object.defineProperty(i,"RangeColumn",{enumerable:!0,get:function(){return x.default}});var _=t("./percent-stacked-column");Object.defineProperty(i,"PercentStackedColumn",{enumerable:!0,get:function(){return _.default}});var M=t("./pie");Object.defineProperty(i,"Pie",{enumerable:!0,get:function(){return M.default}});var w=t("./density-heatmap");Object.defineProperty(i,"DensityHeatmap",{enumerable:!0,get:function(){return w.default}});var S=t("./heatmap");Object.defineProperty(i,"Heatmap",{enumerable:!0,get:function(){return S.default}});var C=t("./word-cloud");Object.defineProperty(i,"WordCloud",{enumerable:!0,get:function(){return C.default}});var P=t("./rose");Object.defineProperty(i,"Rose",{enumerable:!0,get:function(){return P.default}});var O=t("./funnel");Object.defineProperty(i,"Funnel",{enumerable:!0,get:function(){return O.default}});var T=t("./stacked-rose");Object.defineProperty(i,"StackedRose",{enumerable:!0,get:function(){return T.default}});var A=t("./grouped-rose");Object.defineProperty(i,"GroupedRose",{enumerable:!0,get:function(){return A.default}});var E=t("./radar");Object.defineProperty(i,"Radar",{enumerable:!0,get:function(){return E.default}});var L=t("./liquid");Object.defineProperty(i,"Liquid",{enumerable:!0,get:function(){return L.default}});var I=t("./histogram");Object.defineProperty(i,"Histogram",{enumerable:!0,get:function(){return I.default}});var D=t("./density");Object.defineProperty(i,"Density",{enumerable:!0,get:function(){return D.default}});var k=t("./donut");Object.defineProperty(i,"Donut",{enumerable:!0,get:function(){return k.default}});var B=t("./waterfall");Object.defineProperty(i,"Waterfall",{enumerable:!0,get:function(){return B.default}});var F=t("./scatter");Object.defineProperty(i,"Scatter",{enumerable:!0,get:function(){return F.default}});var j=t("./bubble");Object.defineProperty(i,"Bubble",{enumerable:!0,get:function(){return j.default}});var R=t("./bullet");Object.defineProperty(i,"Bullet",{enumerable:!0,get:function(){return R.default}});var N=t("./calendar");Object.defineProperty(i,"Calendar",{enumerable:!0,get:function(){return N.default}});var Y=t("./gauge");Object.defineProperty(i,"Gauge",{enumerable:!0,get:function(){return Y.default}});var G=t("./fan-gauge");Object.defineProperty(i,"FanGauge",{enumerable:!0,get:function(){return G.default}});var V=t("./meter-gauge");Object.defineProperty(i,"MeterGauge",{enumerable:!0,get:function(){return V.default}}),n.__exportStar(t("./compatiblePlots"),i)},{"./area":455,"./bar":463,"./bubble":466,"./bullet":473,"./calendar":478,"./column":489,"./column/component/label":487,"./compatiblePlots":494,"./density":508,"./density-heatmap":506,"./donut":513,"./fan-gauge":515,"./funnel":521,"./gauge":526,"./grouped-bar":528,"./grouped-column":531,"./grouped-rose":534,"./heatmap":539,"./histogram":542,"./line":552,"./liquid":565,"./meter-gauge":567,"./percent-stacked-area":569,"./percent-stacked-bar":571,"./percent-stacked-column":573,"./pie":583,"./radar":587,"./range-bar":592,"./range-column":596,"./rose":599,"./scatter":604,"./stacked-area":612,"./stacked-bar":617,"./stacked-column":622,"./stacked-column/component/label":621,"./stacked-rose":625,"./step-line":627,"./treemap":631,"./waterfall":643,"./word-cloud":645,tslib:894}],545:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getPlotOption=void 0;var n,r=t("../../../dependents"),a=t("@antv/util");function o(t,e,i){for(var n=e.points,r=i.start.x+i.getWidth()*t,a=0;a<n.length-1;a++){var o=n[a],s=n[a+1];if(r>=o.x&&r<=s.x){var l=(s.y-o.y)/(s.x-o.x);return[r,o.y+l*(r-o.x)]}}}i.getPlotOption=function(t){n=t},r.registerAnimation("clipingWithData",(function(t,e){var i=a.deepMix({},e,{easing:"easeLinear",duration:1e4}),r=t.get("element").geometry;r.labelsContainer.set("visible",!1);var s=t.get("index"),l=r.coordinate,u=r.scales[n.options.yField],c=a.clone(t.get("origin"));!function(t,e){var i=e.start,n=e.end,r=e.height;t.setClip({type:"rect",attrs:{x:i.x,y:n.y,width:0,height:r}})}(t,l);var p=t.get("clipShape"),h=t.get("parent"),f=null,d=n.options.seriesField;d&&(f=h.addShape("text",{attrs:{x:l.start.x+12,y:0,text:c.data[0][d],fill:t.attr("stroke"),fontSize:12,textAlign:"start",textBaseline:"middle"}}));var g=f?16:0,v=h.addShape("text",{attrs:{x:l.start.x+12,y:g,text:"test"+s,fill:t.attr("stroke"),fontSize:12,textAlign:"start",textBaseline:"middle"}});i.callback=function(){t&&!t.get("destroyed")&&(t.setClip(null),p.remove(),v.animate({opacity:0},300,(function(){v.remove(),a.isNil(f)||f.remove();var t=r.labelsContainer;t.get("visible")||t.set("visible",!0)})))};var y=i.delay;a.isFunction(y)&&(y=i.delay(s));var m=i.easing;a.isFunction(m)&&(m=i.easing(s)),p.animate({width:l.getWidth()},i.duration,m,i.callback,y),i.onFrame=function(t){var e=o(t,c,l);if(e){v.attr("x",e[0]+12),v.attr("y",e[1]+g);var i=function(t,e,i){var n=(e-i.start.y)/(i.end.y-i.start.y);return t.invert(n).toFixed(2)}(u,e[1],l);u.formatter&&(i=u.formatter(i)),v.attr("text",i)}},v.animate(i.onFrame,{duration:i.duration,easing:m,callback:i.callback,delay:y}),f&&f.animate({onFrame:function(t){var e=o(t,c,l);e&&(f.attr("x",e[0]+12),f.attr("y",e[1]))}},i.duration,m,i.callback,y)}))},{"../../../dependents":425,"@antv/util":803}],546:[function(t,e,i){arguments[4][450][0].apply(i,arguments)},{"../../../util/responsive/apply/axis":682,dup:450,tslib:894}],547:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importDefault(t("./axis")),a=n.__importDefault(t("./label")),o=[{name:"responsiveAxis",method:r.default},{name:"responsivePointLabel",method:a.default}];i.default={preRender:[],afterRender:o}},{"./axis":546,"./label":548,tslib:894}],548:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importDefault(t("../../../util/responsive/apply/label")),a=t("@antv/util"),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getType=function(){return a.get(this.plot.options,["label","type"],"point")},e}(r.default);i.default=function(t){var e=t.getResponsiveTheme();new o({plot:t,responsiveTheme:e})}},{"../../../util/responsive/apply/label":684,"@antv/util":803,tslib:894}],549:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});t("../../../util/responsive/theme").registerResponsiveTheme("line",{label:{point:{constraints:[{name:"elementCollision"}],rules:{elementCollision:[{name:"nodesResamplingByChange"},{name:"clearOverlapping"}]}}}})},{"../../../util/responsive/theme":711}],550:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=function(){function t(t){this.destroyed=!1,this.view=t.view,this.plot=t.plot;var e=this.getDefaultOptions();this.options=n.deepMix(e,t,{}),this.init()}return t.prototype.init=function(){var t=this;this.container=this.getGeometry().labelsContainer,this.view.on("beforerender",(function(){t.clear(),t.plot.canvas.draw()}))},t.prototype.render=function(){var t=this,e=this.getGeometry().elements;n.each(e,(function(e){var i=t.getShapeInfo(e.shape),r=t.options,a=r.style,o=r.offsetX,s=r.offsetY,l=t.options.formatter,u=l?l(i.name):i.name;t.container.addShape("text",{attrs:n.deepMix({},{x:i.x+o,y:i.y+s,text:u,fill:i.color,textAlign:"left",textBaseline:"middle"},a),name:"label"})}))},t.prototype.clear=function(){this.container&&this.container.clear()},t.prototype.hide=function(){this.container.set("visible",!1),this.plot.canvas.draw()},t.prototype.show=function(){this.container.set("visible",!0),this.plot.canvas.draw()},t.prototype.destroy=function(){this.container&&this.container.remove(),this.destroyed=!0},t.prototype.getBBox=function(){return this.container.getBBox()},t.prototype.getDefaultOptions=function(){var t=this.plot.theme,e=n.clone(t.label.style);return delete e.fill,{offsetX:8,offsetY:0,style:e}},t.prototype.getGeometry=function(){return n.find(this.view.geometries,(function(t){return"line"===t.type}))},t.prototype.getShapeInfo=function(t){var e=t.get("origin").points,i=e[e.length-1],n=t.attr("stroke"),r=this.plot.options.seriesField,a=t.get("origin").data[0][r];return{x:i.x,y:i.y,color:n,name:a}},t}();i.default=r},{"@antv/util":803}],551:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.onEvent=i.EVENT_MAP=void 0;var n=t("@antv/util"),r=t("../../util/event");Object.defineProperty(i,"EVENT_MAP",{enumerable:!0,get:function(){return r.EVENT_MAP}}),Object.defineProperty(i,"onEvent",{enumerable:!0,get:function(){return r.onEvent}});var a=r.getEventMap({line:"line",point:"point"});n.assign(r.EVENT_MAP,a)},{"../../util/event":677,"@antv/util":803}],552:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="line",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":558,"@antv/util":803,tslib:894}],553:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.LineSelect=i.LineActive=void 0;var n=t("tslib"),r=n.__importDefault(t("./line-active"));i.LineActive=r.default;var a=n.__importDefault(t("./line-select"));i.LineSelect=a.default;var o=t("../../../dependents"),s=t("./selected-tooltip"),l=n.__importDefault(t("./marker-active"));o.registerAction("selected-tooltip",s.SelectedTooltipAction),o.registerInteraction("selected-tooltip",{start:[{trigger:o.VIEW_LIFE_CIRCLE.AFTER_PAINT,action:"selected-tooltip:show"},{trigger:o.VIEW_LIFE_CIRCLE.AFTER_RENDER,action:"selected-tooltip:show"},{trigger:"plot:mousemove",action:"selected-tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"selected-tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}]}),o.registerAction("marker-active",l.default),o.registerInteraction("marker-active",{start:[{trigger:o.VIEW_LIFE_CIRCLE.AFTER_PAINT,action:"marker-active:show"},{trigger:o.VIEW_LIFE_CIRCLE.AFTER_RENDER,action:"marker-active:show"},{trigger:"plot:mousemove",action:"marker-active:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"marker-active:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:mouseleave",action:"marker-active:hide",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchend",action:"marker-active:hide",throttle:{wait:50,leading:!0,trailing:!1}}]})},{"../../../dependents":425,"./line-active":554,"./line-select":555,"./marker-active":556,"./selected-tooltip":557,tslib:894}],554:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(e){return t.call(this,n.__assign({processEvent:"mousemove"},e))||this}return n.__extends(e,t),e.prototype.start=function(){},e.prototype.process=function(t){var e=r.filter(this.view.geometries,(function(t){return"line"==t.type}));if("line"===t.target.get("name")){var i=r.get(t,"data.data");r.each(e,(function(t){r.each(t.elements,(function(t){t.setState("active",t.data===i)}))}))}else r.each(e,(function(t){r.each(t.elements,(function(t){t.setState("active",!1)}))}))},e}(n.__importDefault(t("../../../interaction/core")).default);i.default=a},{"../../../interaction/core":442,"@antv/util":803,tslib:894}],555:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(e){return t.call(this,n.__assign({endEvent:"click"},e))||this}return n.__extends(e,t),e.prototype.start=function(){},e.prototype.end=function(t){var e=t.target,i=r.filter(this.view.geometries,(function(t){return"line"==t.type}));if("line"===e.get("name")){var n=r.get(t,"data.data");r.each(i,(function(t){r.each(t.elements,(function(t){t.setState("inactive",t.data!==n)}))}))}else r.each(i,(function(t){r.each(t.elements,(function(t){t.setState("inactive",!1)}))}))},e}(n.__importDefault(t("../../../interaction/core")).default);i.default=a},{"../../../interaction/core":442,"@antv/util":803,tslib:894}],556:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ActiveTooltipController=void 0;var n=t("tslib"),r=t("@antv/util"),a=t("../../../dependents"),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip-active"},enumerable:!1,configurable:!0}),e.prototype.getTooltipCfg=function(){var e=t.prototype.getTooltipCfg.call(this);return n.__assign(n.__assign({},e),{showCrosshairs:!0,showMarkers:!1,shared:!0})},e}(a.TooltipController);i.ActiveTooltipController=o,a.registerComponentController("tooltip-active",o);var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.init=function(){this.getView().removeInteraction("tooltip")},e.prototype.show=function(){var t=this.getPoint();t&&this.showTooltip(t)},e.prototype.hide=function(){var t=this.getView();this.getTooltipController().hideTooltip();var e=r.filter(t.geometries,(function(t){return"point"==t.type}));r.each(e,(function(t){r.each(t.elements,(function(t){t.setState("active",!1)}))}))},e.prototype.showTooltip=function(t){var e=this.getView(),i=this.getTooltipController();i.showTooltip(t);var n=i.getTooltipItems(t),a=r.filter(e.geometries,(function(t){return"point"==t.type}));r.each(a,(function(t){r.each(t.elements,(function(t){t.setState("active",-1!==r.findIndex(n,(function(e){return e.data===t.data})))}))}))},e.prototype.getPoint=function(){var t=this.context.event;return t?{x:t.x,y:t.y}:null},e.prototype.getView=function(){return this.context.view},e.prototype.getTooltipController=function(){return this.getView().getController("tooltip-active")},e}(a.InteractionAction);i.default=s},{"../../../dependents":425,"@antv/util":803,tslib:894}],557:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.SelectedTooltipAction=i.SelectedTooltipController=void 0;var n=t("tslib"),r=t("@antv/util"),a=t("../../../dependents"),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"selected-tooltip"},enumerable:!1,configurable:!0}),e.prototype.getTooltipCfg=function(){var e=t.prototype.getTooltipCfg.call(this);return n.__assign(n.__assign({},e),{showContent:!1,showCrosshairs:!0,showMarkers:!0,shared:!0})},e}(a.TooltipController);i.SelectedTooltipController=o,a.registerComponentController("selected-tooltip",o);var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.show=function(){var t=this.getPoint();r.isEqual(t,this.location)||(this.location=t,this.showTooltip(t))},e.prototype.hide=function(){this.getTooltipController().hideTooltip()},e.prototype.showTooltip=function(t){this.getTooltipController().showTooltip(t)},e.prototype.getPoint=function(){var t=this.context.event;return t?{x:t.x,y:t.y}:this.getLastXPoint()},e.prototype.getLastXPoint=function(){var t=this.getView(),e=t.getXScale(),i=t.getYScales()[0],n=t.getCoordinate(),a=r.last(e.getTicks()).value;return n.convert({x:a,y:(i.range[0]+i.range[1])/2})},e.prototype.getView=function(){return this.context.view},e.prototype.getTooltipController=function(){return this.getView().getController("selected-tooltip")},e}(a.InteractionAction);i.SelectedTooltipAction=s},{"../../../dependents":425,"@antv/util":803,tslib:894}],558:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importDefault(t("../../base/view-layer")),s=t("../../geoms/factory"),l=t("../../util/scale"),u=t("./animation/clipIn-with-data"),c=n.__importDefault(t("./apply-responsive"));t("../../components/label/point"),t("../../components/label/point-auto");var p=n.__importDefault(t("./component/label/line-label")),h=n.__importStar(t("./event")),f=n.__importDefault(t("../../components/marker-point"));t("./theme"),t("./apply-responsive/theme");var d=t("./interaction/index"),g=t("../../util/view"),v={line:"line",point:"point"},y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.markerPoints=[],e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{connectNulls:!1,smooth:!1,lineSize:2,lineStyle:{lineJoin:"round",lineCap:"round"},point:{visible:!1,size:3,shape:"circle"},label:{visible:!1,type:"point"},legend:{visible:!0,position:"top-left",wordSpacing:4},tooltip:{showContent:!0,crosshairs:{line:{style:{stroke:"rgba(0,0,0,0.45)"}}}},markerPoints:[]})},e.prototype.afterRender=function(){var e=this,i=this.options;this.renderLabel(),i.markerPoints&&(r.each(this.markerPoints,(function(t){return t.destroy()})),this.markerPoints=[],i.markerPoints.forEach((function(t){if(t.visible){var i=new f.default(n.__assign(n.__assign({},t),{view:e.view}));e.markerPoints.push(i)}}))),i.responsive&&"auto"!==i.padding&&this.applyResponsive("afterRender"),t.prototype.afterRender.call(this)},e.prototype.getColorScale=function(){var t=this.options.seriesField;if(t)return this.view.getScaleByField(t)},e.prototype.geometryParser=function(t,e){return v[e]},e.prototype.scale=function(){var e=this.options,i={};i[e.xField]={},r.has(e,"xAxis")&&l.extractScale(i[e.xField],e.xAxis),i[e.yField]={},r.has(e,"yAxis")&&l.extractScale(i[e.yField],e.yAxis),this.setConfig("scales",i),l.trySetScaleMinToZero(i[e.yField],r.map(e.data||[],(function(t){return t[e.yField]}))),t.prototype.scale.call(this)},e.prototype.coord=function(){},e.prototype.tooltip=function(){r.some(this.options.markerPoints,(function(t){return t.visible}))&&(this.options.tooltip.showMarkers=!1),t.prototype.tooltip.call(this)},e.prototype.addGeometry=function(){this.addLine(),this.addPoint()},e.prototype.addLine=function(){var t=this.options;this.line=s.getGeom("line","main",{plot:this}),t.tooltip&&(t.tooltip.fields||t.tooltip.formatter)&&this.geometryTooltip(),this.setConfig("geometry",this.line)},e.prototype.addPoint=function(){var t=this.options;t.point&&(t.point=r.deepMix({visible:!1},t.point)),t.point&&t.point.visible&&(this.point=s.getGeom("point","guide",{plot:this}),this.setConfig("geometry",this.point))},e.prototype.renderLabel=function(){var t=this.config.scales,e=this.options,i=e.label,r=t[e.yField];if(i.visible){var a=g.getGeometryByType(this.view,"line");if("line"===i.type)new p.default(n.__assign({view:this.view,plot:this},this.options.label)).render();else this.doRenderLabel(a,n.__assign({type:"point",formatter:r.formatter&&function(t){return r.formatter(t)}},this.options.label))}},e.prototype.geometryTooltip=function(){this.line.tooltip={};var t=this.options.tooltip;t.fields&&(this.line.tooltip.fields=t.fields),t.formatter&&(this.line.tooltip.callback=t.formatter,t.fields||(this.line.tooltip.fields=[this.options.xField,this.options.yField],this.options.seriesField&&this.line.tooltip.fields.push(this.options.seriesField)))},e.prototype.animation=function(){t.prototype.animation.call(this);var e=this.options;e.animation?(u.getPlotOption({options:this.options,view:this.view}),this.line.animate=e.animation):(this.line.animate=!1,this.point&&(this.point.animate=!1))},e.prototype.applyInteractions=function(){t.prototype.applyInteractions.call(this),this.interactions.push(new d.LineActive({view:this.view})),this.interactions.push(new d.LineSelect({view:this.view}))},e.prototype.parseEvents=function(){t.prototype.parseEvents.call(this,h)},e.prototype.applyResponsive=function(t){var e=this,i=c.default[t];r.each(i,(function(t){t.method(e)}))},e.prototype.singleLineLabelCheck=function(){return!this.options.seriesField&&this.options.label.type&&"line"===this.options.label.type},e}(o.default);i.default=y,a.registerPlotType("line",y)},{"../../base/global":392,"../../base/view-layer":395,"../../components/label/point":417,"../../components/label/point-auto":416,"../../components/marker-point":419,"../../geoms/factory":430,"../../util/scale":712,"../../util/view":715,"./animation/clipIn-with-data":545,"./apply-responsive":547,"./apply-responsive/theme":549,"./component/label/line-label":550,"./event":551,"./interaction/index":553,"./theme":559,"@antv/util":803,tslib:894}],559:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});t("../../theme").registerTheme("line",{lineStyle:{normal:{},active:function(t){return{lineWidth:(t.shape.attr("lineWidth")||1)+1}},disable:function(t){return{opacity:.2*(t.shape.attr("opacity")||1)}},selected:function(t){return{lineWidth:(t.shape.attr("lineWidth")||1)+2}}},pointStyle:{normal:{},active:{},disable:{},selected:{}}})},{"../../theme":669}],560:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../../../dependents"),r=t("@antv/util"),a=t("../../../util/g-util");function o(t,e){var i=t.get("parent"),n=i.getBBox(),o=Math.min(Math.max(0,r.get(e,"factor",.5)),1),s=r.get(e,"delay",0),l=r.get(e,"duration",800),u=e.callback,c=(n.minX+n.maxX)/2,p=n.maxY,h=i.find((function(t){return"wrap"==t.get("name")})),f=h.attr("opacity");h.attr("opacity",0),h.animate({opacity:f},l*o,"easeLinear",null,s);var d=i.find((function(t){return"waves"==t.get("name")})),g=r.clone(d.attr("matrix"))||[1,0,0,0,1,0,0,0,1],v=a.transform(g,[["t",-c,-p],["s",1,0],["t",c,p]]);d.setMatrix(v),d.animate({matrix:g},l,e.easing,(function(){return u&&u(i,h,d)}),s)}o.animationName="liquidMoveIn",n.registerAnimation("liquidMoveIn",o)},{"../../../dependents":425,"../../../util/g-util":679,"@antv/util":803}],561:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../../components/statistic")),o=t("./statistic-template"),s=function(t){function e(e){var i=t.call(this,e)||this;return i.view=e.view,i.plot=e.plot,i.statisticClass=e.statisticClass,i.adjustOptions(),i}return n.__extends(e,t),e.prototype.getTotalHtmlString=function(){var t=document.createElement("div"),e=this.plot.options,i=e.value,n=void 0===i?0:i,a=e.statistic;if(a&&!a.visible)return t;var s=this.options.htmlContent(n);return r.isType(s,"HTMLDivElement")?t.appendChild(s):t.innerHTML=o.getTemplate(s,this.statisticClass),t},e.prototype.adjustOptions=function(){this.html=this.getTotalHtmlString();var t=this.view.coordinateBBox,e=t.minX,i=t.minY,n=t.width,r=t.height;this.x=e+n/2,this.y=i+r/2},e}(a.default);i.default=s},{"../../../components/statistic":420,"./statistic-template":562,"@antv/util":803,tslib:894}],562:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getTemplate=void 0;i.getTemplate=function(t,e){return'<div class="liquid-guide-html '+e+"\" style=color:#4d4d4d;font-size:14px;text-align:center;line-height:2;font-family:'-apple-system',BlinkMacSystemFont,'SegoeUI',Roboto,'HelveticaNeue',Helvetica,'PingFangSC','HiraginoSansGB','MicrosoftYaHei',SimSun,'sans-serif';pointer-events:none;>"+('<span class="liquid-guide-value" style=font-size:32px;font-weight:bold;color:#4D4D4D>'+t+"</span>")+"</div>"}},{}],563:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.onEvent=i.EVENT_MAP=void 0;var n=t("@antv/util"),r=t("../../util/event");Object.defineProperty(i,"EVENT_MAP",{enumerable:!0,get:function(){return r.EVENT_MAP}}),Object.defineProperty(i,"onEvent",{enumerable:!0,get:function(){return r.onEvent}});var a=r.getEventMap({liquid:"intervl",statistic:"annotation-text"});n.assign(r.EVENT_MAP,a)},{"../../util/event":677,"@antv/util":803}],564:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../../../../dependents"),r=t("@antv/util"),a=t("../../../../theme"),o=t("../../../../util/g-util"),s=a.getGlobalTheme(),l=function(t,e){e.color&&!t.fill&&(t.fill=e.color),r.isNumber(e.opacity)&&(t.opacity=t.fillOpacity=e.opacity)},u=function(t,e){e.color&&!t.stroke&&(t.stroke=e.color),r.isNumber(e.opacity)&&(t.opacity=t.strokeOpacity=e.opacity)},c=function(t,e,i){return(1-i)*t+i*e},p=function(t){var e={fill:"#fff",stroke:s.color,fillOpacity:0,lineWidth:2},i=r.mix({},e,t.style);return u(i,t),i};function h(t,e,i,n){return 0===e?[[t+.5*i/Math.PI/2,n/2],[t+.5*i/Math.PI,n],[t+i/4,n]]:1===e?[[t+.5*i/Math.PI/2*(Math.PI-2),n],[t+.5*i/Math.PI/2*(Math.PI-1),n/2],[t+i/4,0]]:2===e?[[t+.5*i/Math.PI/2,-n/2],[t+.5*i/Math.PI,-n],[t+i/4,-n]]:[[t+.5*i/Math.PI/2*(Math.PI-2),-n],[t+.5*i/Math.PI/2*(Math.PI-1),-n/2],[t+i/4,0]]}function f(t,e,i,n,r,a,o){for(var s=2*Math.ceil(2*t/i*4),l=[],u=n;u<2*-Math.PI;)u+=2*Math.PI;for(;u>0;)u-=2*Math.PI;var c=a-t+(u=u/Math.PI/2*i)-2*t;l.push(["M",c,e]);for(var p=0,f=0;f<s;++f){var d=h(f*i/4,f%4,i,r);l.push(["C",d[0][0]+c,-d[0][1]+e,d[1][0]+c,-d[1][1]+e,d[2][0]+c,-d[2][1]+e]),f===s-1&&(p=d[2][0])}return l.push(["L",p+c,o+t]),l.push(["L",c,o+t]),l.push(["L",c,e]),l}n.registerShape("interval","liquid-fill-gauge",{draw:function(t,e){var i=1/0;r.each(t.points,(function(t){t.x<i&&(i=t.x)}));var n=this.parsePoint({x:.5,y:.5}),a=this.parsePoint({x:i,y:.5}),u=n.x-a.x,h=Math.min(u,a.y),d=function(t){var e={lineWidth:0,fill:s.color,fillOpacity:.85},i=r.mix({},e,t.style);return l(i,t),t.color&&!i.stroke&&(i.stroke=i.stroke||t.color),i}(t).fill,g=e.addGroup({name:"waves",attrs:{x:n.x,y:n.y}});g.setClip({type:"circle",attrs:{x:n.x,y:n.y,r:h}});var v=g.get("clipShape");return function(t,e,i,n,r,a,s,l){for(var u=s.getBBox(),p=u.maxX-u.minX,h=u.maxY-u.minY,d=0;d<n;d++){var g=n<=1?0:d/(n-1),v=a.addShape("path",{attrs:{path:f(l,u.minY+h*i,p/4,0,p/c(56,64,g),t,e),fill:r,opacity:c(.6,.3,g)}}),y=o.transform([["t",p/2,0]]);v.animate({matrix:y},{duration:c(5e3,3500,g),repeat:!0})}}(n.x,n.y,1-t.points[1].y,3,d,g,v,4*h),e.addShape("circle",{name:"wrap",attrs:r.mix(p(t),{x:n.x,y:n.y,r:h,fill:"transparent"})}),g[0]}})},{"../../../../dependents":425,"../../../../theme":669,"../../../../util/g-util":679,"@antv/util":803}],565:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="liquid",t.prototype.createLayers.call(this,i)},e.prototype.changeValue=function(t,e){if(void 0===e&&(e=!1),e)this.eachLayer((function(e){e instanceof o.default&&e.changeValue(t)}));else{var i=this.layers[0];i instanceof o.default&&i.changeValue(t)}},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":566,"@antv/util":803,tslib:894}],566:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("@antv/dom-util"),o=n.__importDefault(t("../../util/bbox")),s=t("../../base/global"),l=n.__importDefault(t("../../base/view-layer")),u=t("../../geoms/factory"),c=t("../../util/scale"),p=t("../../util/color"),h=n.__importDefault(t("./component/liquid-statistic")),f=n.__importStar(t("./event"));t("./geometry/shape/liquid"),t("./animation/liquid-move-in");var d={column:"interval"},g={interval:"liquid"},v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="liquid",e.shouldFadeInAnnotation=!0,e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{padding:[0,0,0,0],animation:{factor:.4,easing:"easeExpOut",duration:800},liquidStyle:{lineWidth:2},color:"#6a99f9",interactions:[],statistic:{visible:!0}})},e.prototype.beforeInit=function(){var t=this.options,e=t.min,i=t.max,n=t.value;if(!r.isNumber(e))throw new Error("The min value of Liquid is required, and the type of min must be Number.");if(!r.isNumber(i))throw new Error("The max value of Liquid is required, and the type of max must be Number.");if(!r.isNumber(n))throw new Error("The value of Liquid is required, and the type of value must be Number.")},e.prototype.init=function(){this.options.data=[{}],t.prototype.init.call(this)},e.prototype.coord=function(){},e.prototype.scale=function(){var e=this.options,i=e.min,n=e.max,r={value:{}};c.extractScale(r.value,{min:Math.min(i,n),max:Math.max(i,n)}),this.setConfig("scales",r),t.prototype.scale.call(this)},e.prototype.axis=function(){this.setConfig("axes",!1)},e.prototype.adjustLiquid=function(t){var e=this.options;t.shape={values:["liquid-fill-gauge"]},t.tooltip=!1;var i=e.liquidStyle;r.isFunction(i)&&(i=i()),i&&(t.style=i)},e.prototype.addGeometry=function(){var t=u.getGeom("interval","main",{positionFields:[1,"value"],plot:this});this.adjustLiquid(t);var e=this.getViewRange(),i=.8*Math.min(e.width,e.height),n=this.options.liquidSize?this.options.liquidSize:i;t.size={values:[n]},this.liquid=t,this.setConfig("geometry",t)},e.prototype.animation=function(){var t=this.options;if(!1===t.animation)this.liquid.animate=!1;else{var e=r.get(t,"animation.factor"),i=r.get(t,"animation.easing"),n=r.get(t,"animation.duration");this.liquid.animate={appear:{animation:"liquidMoveIn",factor:e,easing:i,duration:n}}}},e.prototype.geometryParser=function(t,e){return"g2"===t?d[e]:g[e]},e.prototype.annotation=function(){var t=[],e=this.extractStatistic();t.push(e),this.setConfig("annotations",t)},e.prototype.useHtmlContent=function(){var t=this.options.statistic||{};return r.isFunction(t.htmlContent)},e.prototype.extractStatistic=function(){if(!this.useHtmlContent()){var t,e,i,n=this.options,a=n.statistic||{};if(t=r.isFunction(a.formatter)?a.formatter(n.value):""+n.value)e=Math.min(this.width,this.height)/t.length*.5,i=Math.max(1,Math.ceil(.025*e));if(!1!==a.visible){var o=r.deepMix({style:{fontSize:e,shadowBlur:i}},{top:!0,content:t,type:"text",position:["50%","50%"],style:{opacity:void 0,fill:"transparent",shadowColor:"transparent",textAlign:"center"}},a);return delete o.visible,delete o.formatter,delete o.adjustColor,o}}},e.prototype.parseEvents=function(){t.prototype.parseEvents.call(this,f)},e.prototype.afterRender=function(){var e;(null===(e=this.options.statistic)||void 0===e?void 0:e.visible)&&!this.useHtmlContent()&&this.fadeInAnnotation();var i=this.options,r=i.padding?i.padding:this.config.theme.padding;if(i.defaultState&&"auto"!==r&&this.stateController.defaultStates(i.defaultState),"auto"===r&&this.paddingController.processAutoPadding(),this.useHtmlContent()){var o=this.canvas.get("container");if(this.statistic&&o.removeChild(this.statistic.wrapperNode),this.options.statistic&&this.options.statistic.visible){var s=this.canvas.get("container");a.modifyCSS(s,{position:"relative"}),this.statistic=new h.default(n.__assign({container:s,view:this.view,plot:this},this.options.statistic)),this.statistic.render()}t.prototype.afterRender.call(this)}},e.prototype.processData=function(){return[{_:"_",value:this.options.value}]},e.prototype.changeValue=function(t){this.options.value=t,this.changeData([])},e.prototype.fadeInAnnotation=function(){var t=this,e=this.options,i=this.view.foregroundGroup.findAll((function(t){return"annotation-text"===t.get("name")}))[0],n=e.animation||{},a=this.calcAnnotationColorStyle();this.shouldFadeInAnnotation?i.animate(a,n.duration*Math.min(1,1.5*n.factor),null,(function(){t.shouldFadeInAnnotation=!1})):r.forIn(a,(function(t,e){return i.attr(e,t)}))},e.prototype.calcAnnotationColorStyle=function(){var t=this.options,e={fill:"#303030",shadowColor:"white"};if(!1===r.get(t,"statistic.adjustColor"))return{fill:r.get(t,"statistic.style.fill",e.fill),shadowColor:r.get(t,"statistic.style.shadowColor",e.shadowColor)};var i=t.min,n=t.max,a=t.value;if(((i=Math.min(i,n))==(n=Math.max(i,n))?1:(a-i)/(n-i))>.55){var o=this.options.color,s=p.rgb2arr(o);return Math.round(.299*s[0]+.587*s[1]+.114*s[2])/.8<156?{fill:"#f6f6f6",shadowColor:"black"}:e}return e},e.prototype.updateConfig=function(e){t.prototype.updateConfig.call(this,e),this.shouldFadeInAnnotation=!0},e.prototype.getViewRange=function(){var e=t.prototype.getViewRange.call(this),i=this.options.liquidStyle,n=i.lineWidth?i.lineWidth:2,r=e.minX,a=e.minY,s=e.width,l=e.height,u=Math.min(s,l)-2*n,c=r+s/2-u/2,p=a+l/2-u/2;return new o.default(c,p,u,u)},e}(l.default);i.default=v,s.registerPlotType("liquid",v)},{"../../base/global":392,"../../base/view-layer":395,"../../geoms/factory":430,"../../util/bbox":672,"../../util/color":673,"../../util/scale":712,"./animation/liquid-move-in":560,"./component/liquid-statistic":561,"./event":563,"./geometry/shape/liquid":564,"@antv/dom-util":92,"@antv/util":803,tslib:894}],567:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="meterGauge",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":568,"@antv/util":803,tslib:894}],568:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meterGauge",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{axis:{visible:!0,offset:-10,tickCount:25,subTickCount:4,tickLine:{visible:!0,length:2,style:{stroke:"#aaa",lineWidth:1}}}})},e}(n.__importDefault(t("../gauge/layer")).default);i.default=o,a.registerPlotType("meterGauge",o)},{"../../base/global":392,"../gauge/layer":527,"@antv/util":803,tslib:894}],569:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="percentStackedArea",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":570,"@antv/util":803,tslib:894}],570:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importDefault(t("../stacked-area/layer")),s=t("../../util/data"),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="percentStackedArea",e.baseType="stackedArea",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{yAxis:{visible:!0,label:{visible:!0,formatter:function(t){return t.replace(/%/gi,"")}}}})},e.prototype.processData=function(t){var e=this.options,i=e.xField,n=e.yField;return s.transformDataPercentage(t,i,[n])},e.prototype.scale=function(){var e={},i=this.options.yField;e[this.options.yField]={tickCount:6,alias:i+" (%)",min:0,max:1,formatter:function(t){return(100*t).toFixed(1)+"%"}},this.options.meta=r.deepMix({},e,this.options.meta),t.prototype.scale.call(this)},e}(o.default);i.default=l,a.registerPlotType("percentStackedArea",l)},{"../../base/global":392,"../../util/data":675,"../stacked-area/layer":613,"@antv/util":803,tslib:894}],571:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="percentStackedBar",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":572,"@antv/util":803,tslib:894}],572:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importDefault(t("../stacked-bar/layer")),s=t("../../util/data"),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="percentStackedBar",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{xAxis:{visible:!0,tickLine:{visible:!1},grid:{visible:!1},title:{visible:!0,formatter:function(t){return t+" (%)"}},label:{visible:!1,formatter:function(t){return t.replace(/%/gi,"")}}}})},e.prototype.processData=function(e){var i=this.options,n=i.xField,r=i.yField,a=t.prototype.processData.call(this,e);return s.transformDataPercentage(a,r,[n])},e.prototype.scale=function(){var e={},i=this.options.xField;e[i]={tickCount:6,alias:i+" (%)",min:0,max:1,formatter:function(t){return(100*t).toFixed(1)+"%"}},this.options.meta=r.deepMix({},this.options.meta,e),t.prototype.scale.call(this)},e}(o.default);i.default=l,a.registerPlotType("percentStackedBar",l)},{"../../base/global":392,"../../util/data":675,"../stacked-bar/layer":618,"@antv/util":803,tslib:894}],573:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="percentStackedColumn",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":574,"@antv/util":803,tslib:894}],574:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importDefault(t("../stacked-column/layer")),s=t("../../util/data"),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="percentStackedColumn",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{label:{visible:!0,position:"middle",offset:0},yAxis:{visible:!0,tick:{visible:!1},grid:{visible:!1},title:{visible:!0},label:{visible:!1}}})},e.prototype.processData=function(t){var e=this.options,i=e.xField,n=e.yField;return s.transformDataPercentage(t||[],i,[n])},e.prototype.scale=function(){var e={},i=this.options.yField;e[i]={tickCount:6,alias:i+" (%)",min:0,max:1,formatter:function(t){return(100*t).toFixed(1)+"%"}},this.options.meta=r.deepMix({},this.options.meta,e),t.prototype.scale.call(this)},e}(o.default);i.default=l,a.registerPlotType("percentStackedColumn",l)},{"../../base/global":392,"../../util/data":675,"../stacked-column/layer":623,"@antv/util":803,tslib:894}],575:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.percent2Number=i.CROOK_DISTANCE=void 0;var n=t("tslib"),r=t("@antv/matrix-util"),a=t("@antv/util"),o=t("./utils"),s=t("../../../../util/text");function l(t){return Number(t.endsWith("%")?t.slice(0,-1):t)/100}i.CROOK_DISTANCE=4,i.percent2Number=l;var u=function(){function t(t,e){this.destroyed=!1,this.plot=t,this.coordinateBBox=this.plot.view.coordinateBBox;var i=a.deepMix(this.getDefaultOptions(),e,{});this.adjustOption(i),this.options=i,this.init()}return t.prototype.adjustOverlap=function(t,e){for(var i=1;i<t.length;i++)for(var n=t[i],r=0,a=i-1;a>=0;a--){var s=t[a],l=s.getBBox(),u=n.getBBox();if(s.get("parent").get("visible")&&(r=o.getOverlapArea(l,u),!o.near(r,0))){n.get("parent").set("visible",!1);break}}t.forEach((function(t){return function(t,e){var i=t.getBBox();e.y<=i.y&&e.y+e.height>=i.y+i.height||t.get("parent").set("visible",!1)}(t,e)}))},t.prototype.adjustItem=function(t){},t.prototype.init=function(){var t=this;this.container=this.getGeometry().labelsContainer,this.plot.view.on("beforerender",(function(){t.clear(),t.plot.canvas.draw()}))},t.prototype.render=function(){this.clear(),this.initArcPoints(),this.drawTexts(),this.drawLines()},t.prototype.clear=function(){this.container&&this.container.clear()},t.prototype.hide=function(){this.container.set("visible",!1),this.plot.canvas.draw()},t.prototype.show=function(){this.container.set("visible",!0),this.plot.canvas.draw()},t.prototype.destroy=function(){this.container&&this.container.remove(),this.destroyed=!0},t.prototype.getFilteredSum=function(){var t=this.plot.options.angleField;return(this.plot.view.filteredData||[]).reduce((function(e,i){return e+i[t]}),0)},t.prototype.drawTexts=function(){var t=this,e=this.options,i=e.style,n=e.formatter,r=e.autoRotate,s=e.offsetX,l=e.offsetY,u=e.adjustPosition,c=e.allowOverlap,p=this.getItems(),h=[];p.map((function(e,r){var o=a.deepMix({},e,i),u=t.getFilteredSum(),c=t.plot.options.angleField,p=e.origin[c]/u,f=n?n(e.name,{_origin:e.origin,percent:p},r):e.name,d=t.container.addGroup({name:"itemGroup",index:r,capture:!1}).addShape("text",{attrs:a.deepMix({},o,{x:e.x+s,y:e.y+l,text:f})});d.set("id","text-"+e.name+"-"+r),h.push(d)})),h.forEach((function(e){var i=t.coordinateBBox;t.adjustText(e,i)})),u&&this.layout(h,p,this.coordinateBBox),c||this.adjustOverlap(h,this.coordinateBBox),h.forEach((function(e,i){r&&t.rotateLabel(e,o.getLabelRotate(p[i].angle))}))},t.prototype.adjustText=function(t,e){var i=t.getBBox(),n=i.width;if(i.maxX>e.maxX?n=e.maxX-i.minX:i.minX<e.minX&&(n=i.maxX-e.minX),"left"===t.attr("textAlign")?t.attr("x",Math.max(i.x-0,0)):"right"===t.attr("textAlign")&&t.attr("x",Math.max(i.maxX-0,0)),n!==i.width){var r={};["fontSize","fontFamily","fontWeight"].forEach((function(e){r[e]=t.attr(e)}));var a=t.attr("text").split("\n").map((function(t){return s.getEllipsisText(t,n,r)}));t.attr("text",a.join("\n"))}},t.prototype.drawLines=function(){var t=this;if(this.options.line.visible){var e=this.container.get("children"),i=this.getCoordinate().center;e.forEach((function(e,r){var a=e.get("children")[0],o=t.arcPoints[r],s=o.x<i.x,l=t.options.offset>4?4:0,u=t.getLinePath(a,o,l),c=t.options.line;e.addShape("path",{attrs:n.__assign({path:u,stroke:o.color},c)}),a.attr("x",a.attr("x")+(s?-l:l))}))}},t.prototype.getLinePath=function(t,e,i){var n=!!this.options.line&&this.options.line.smooth,r=e.angle,a=this.getCoordinate(),s=a.center,l=a.radius,u=o.getEndPoint(s,r,l+i);i<4&&(u=e);var c=e.x<s.x,p=t.getBBox(),h={x:c?p.maxX:p.minX,y:p.y+p.height/2},f=["C",h.x+(c?1:-1)*(i<4?i/2:4),h.y,2*u.x-e.x,2*u.y-e.y,u.x,u.y],d=["L",u.x,u.y],g=n?f:d;return["M",h.x,h.y].concat(g).concat("L",e.x,e.y).join(",")},t.prototype.getGeometry=function(){return this.plot.view.geometries[0]},t.prototype.getCoordinate=function(){var t=this.getGeometry().coordinate;return{center:t.getCenter(),radius:t.getRadius(),startAngle:t.startAngle}},t.prototype.adjustOption=function(t){var e=t.offset,i=this.getCoordinate().radius;a.isString(e)&&(e=i*l(e)),t.offset=e},t.prototype.rotateLabel=function(t,e){var i=t.attr("x"),n=t.attr("y"),a=r.ext.transform(t.getMatrix(),[["t",-i,-n],["r",e],["t",i,n]]);t.setMatrix(a)},t.prototype.getItems=function(){var t=this,e=this.options.offset,i=this.getCoordinate(),r=i.center,a=i.radius;return this.arcPoints.map((function(i){var s=o.getEndPoint(r,i.angle,a+e),l=n.__assign(n.__assign({},i),s);return t.adjustItem(l),l}))},t.prototype.initArcPoints=function(){var t=this,e=this.plot.options.angleField,i=this.getGeometry().elements,n=this.getCoordinate(),r=n.center,a=n.radius,s=this.getCoordinate().startAngle,l=this.getGeometry().attributes.position.scales[1],u=l.field,c=i.map((function(i){var n=i.shape.get("origin"),c=n.color,p=n.data[0]||n.data,h=s+2*Math.PI*l.scale(p[u]),f=(s+h)/2,d=o.getEndPoint(r,f,a);s=h;var g=l.getText(p[e]),v=d.x>r.x?"left":"right";return{x:d.x,y:d.y,color:c,name:g,origin:p,angle:o.getAngleByPoint(t.getGeometry().coordinate,d),textAlign:v}}));this.arcPoints=c},t}();i.default=u},{"../../../../util/text":714,"./utils":581,"@antv/matrix-util":717,"@antv/util":803,tslib:894}],576:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getPieLabel=void 0;var n=t("tslib"),r=n.__importDefault(t("./inner-label")),a=n.__importDefault(t("./outer-label")),o=n.__importDefault(t("./outer-center-label")),s={inner:r.default,outer:a.default,"outer-center":o.default};i.getPieLabel=function(t){if(s[t])return s[t];console.warn("this label "+t+" is not registered")}},{"./inner-label":577,"./outer-center-label":578,"./outer-label":579,tslib:894}],577:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.percent2Number=void 0;var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("./base-label")),o=t("./utils"),s=t("../../../../util/math");i.percent2Number=function(t){return Number(t.endsWith("%")?t.slice(0,-1):t)/100};var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.adjustOption=function(e){t.prototype.adjustOption.call(this,e),e.offset>0&&(e.offset=0)},e.prototype.adjustItem=function(t){t.textAlign="middle"},e.prototype.drawLines=function(){},e.prototype.layout=function(t,e){var i=this;t.forEach((function(n,a){a>0&&r.each(t.slice(0,a),(function(t){i.resolveCollision(n,t,e[a])}))}))},e.prototype.getDefaultOptions=function(){var t=this.plot.theme.label.style;return{offsetX:0,offsetY:0,offset:"-30%",style:n.__assign(n.__assign({},t),{textAlign:"center",textBaseline:"middle"})}},e.prototype.resolveCollision=function(t,e,i){var n=this.getCoordinate().center,a=i.angle,l=t.getBBox(),u=e.getBBox(),c={x:(l.minX+l.maxX)/2,y:(l.minY+l.maxY)/2},p=r.clone(c),h=r.clone(c);if(e.get("id")!==t.get("id")){var f=o.getOverlapInfo(l,u),d=f.xOverlap,g=f.yOverlap;if(d&&(p.x=c.x+d,p.y=c.y+Math.tan(a)*d),g){var v=g;v=c.y<n.y?v<0?v:u.minY-l.maxY:v>0?v:u.maxY-l.minY,h.y=c.y+v,h.x=c.x+v/Math.tan(a)}var y=s.distBetweenPoints(c,p)<s.distBetweenPoints(c,h)?p:h;t.attr("x",y.x),t.attr("y",y.y)}},e}(a.default);i.default=l},{"../../../../util/math":680,"./base-label":575,"./utils":581,"@antv/util":803,tslib:894}],578:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.DEFAULT_OFFSET=void 0;var n=t("tslib"),r=n.__importDefault(t("./base-label"));i.DEFAULT_OFFSET=16;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.adjustOption=function(e){t.prototype.adjustOption.call(this,e),e.offset<0&&(e.offset=0)},e.prototype.getDefaultOptions=function(){var t=this.plot.theme.label.style;return{offsetX:0,offsetY:0,offset:12,style:n.__assign(n.__assign({},t),{textBaseline:"middle"})}},e.prototype.adjustItem=function(t){var e=this.options.offset;"left"===t.textAlign?t.x+=e>4?4:e/2:"right"===t.textAlign&&(t.x-=e>4?4:e/2)},e.prototype.layout=function(t,e,i){},e}(r.default);i.default=a},{"./base-label":575,tslib:894}],579:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.DEFAULT_OFFSET=void 0;var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("./base-label")),o=t("./utils");i.DEFAULT_OFFSET=16;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.adjustOption=function(e){t.prototype.adjustOption.call(this,e),e.offset<0&&(e.offset=0)},e.prototype.getDefaultOptions=function(){var t=this.plot.theme.label.style;return{offsetX:0,offsetY:0,offset:12,style:n.__assign(n.__assign({},t),{textBaseline:"middle"})}},e.prototype.layout=function(t,e,i){var n=this,a=this.getCoordinate().center,o=r.filter(t,(function(t){return t.attr("x")<=a.x}));[r.filter(t,(function(t){return t.attr("x")>a.x})),o].forEach((function(t,e){n._antiCollision(t,!e,i)}))},e.prototype._antiCollision=function(t,e,i){var n=this,a=this.getLabelHeight(t),s=this.getCoordinate(),l=s.center,u=s.radius,c=this.options.offset,p=u+c,h=Math.min(i.height,Math.max(2*p+2*a,t.length*a)),f=Math.floor(h/a);this.options.allowOverlap||t.slice(f).forEach((function(t){t.get("parent").set("visible",!1)})),t.splice(f,t.length-f),t.sort((function(t,e){return t.getBBox().y-e.getBBox().y}));for(var d,g=!0,v=l.y+h/2,y=l.y-h/2,m=t.map((function(t){var e=t.getBBox();return e.maxY>v&&(v=Math.min(i.maxY,e.maxY)),e.minY<y&&(y=Math.max(i.minY,e.minY)),{text:t.attr("text"),size:a,pos:e.y,targets:[]}})),b=0;b<m.length;)b===m.length-1?m[b].targets[0]=v:m[b].targets[0]=m[b+1].pos-m[b+1].size/2,b++;for(;g;)for(m.forEach((function(t){var e=r.last(t.targets);t.pos=Math.max(y,Math.min(t.pos,e-t.size))})),g=!1,d=m.length;d--;)if(d>0){var x=m[d-1],_=m[d];if(x.pos+x.size>_.pos){x.size+=_.size,x.targets=x.targets.concat(_.targets);var M=r.last(x.targets);x.pos+x.size>M&&(x.pos=M-x.size),m.splice(d,1),g=!0}else x.targets.splice(-1,1,_.pos)}d=0,m.forEach((function(e){var i=a/2;e.targets.forEach((function(){t[d].attr("y",e.pos+i),i+=a,d++}))}));var w=[],S=[];t.forEach((function(t,e){var i=n.arcPoints[e];i.angle>=0&&i.angle<=Math.PI?S.push(t):w.push(t)})),[w,S].forEach((function(a,s){if(a.length){var h=s?r.last(a).getBBox().maxY-l.y:l.y-r.head(a).getBBox().minY;h=Math.max(p,h);var f=c>4?4:0,d=Math.max.apply(0,r.map(t,(function(t){return t.getBBox().width})))+c+f,g=Math.max(p,Math.min((h+p)/2,l.x-(i.minX+d))),v=g*g,y=h*h;a.forEach((function(t,i){var r=n.arcPoints[i],a=t.getBBox(),s=(a.minX,a.width,a.minY+a.height/2),c=Math.pow(s-l.y,2),p=o.getEndPoint(l,r.angle,u),h=(e?1:-1)*f*2;if(c>y)console.warn("异常(一般不会出现)",t.attr("text")),t.attr("x",p.x+h);else{var d=l.x+(e?1:-1)*Math.sqrt((1-c/y)*v);(l.x===p.x&&s===p.y||l.y===p.y&&d===p.x)&&(d=p.x),t.attr("x",d+h)}}))}}))},e.prototype.getLabelHeight=function(t){return this.options.labelHeight?this.options.labelHeight:r.head(t)?r.head(t).getBBox().height:14},e}(a.default);i.default=s},{"./base-label":575,"./utils":581,"@antv/util":803,tslib:894}],580:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../layer");function o(t,e,i){return{x:t.x+i*Math.cos(e),y:t.y+i*Math.sin(e)}}var s=function(){function t(t){this.destroyed=!1,this.view=t.view,this.options=r.deepMix({},this.getDefaultOptions(),t),this._adjustOptions(this.options),this.init()}return t.prototype.init=function(){var t=this;this.container=this.view.geometries[0].labelsContainer,this.view.on("beforerender",(function(){t.clear()}))},t.prototype.render=function(){var t=this;if(this.view&&!this.view.destroyed){var e=r.clone(this.view.getData());this.halves=[[],[]];var i=[],n=this.view.geometries[0].elements;r.each(n,(function(t){i.push(t.shape)})),this.coord=this.view.geometries[0].coordinate;var s=this.options,l=s.allZero,u=s.angleField,c=this.options.fields[0],p=this.view.getScalesByDim("y")[c],h=this.coord.getCenter(),f=this.coord.startAngle,d=this.coord.polarRadius,g=this.view.coordinateBBox,v=g.width,y=g.height;this.width=v,this.height=y;for(var m=f,b=function(t){var n=e[t],s=p.scale(n[c]),f=m+2*Math.PI*s,g=m+(f-m)/2;m=f;var v=o(h,g,d+0),y=o(h,g,d+15),b="#CCC";if(2===x.options.fields.length){var _=x.options.fields[1],M=x.view.geometries[0].scales[_].scale(n[_]);if(M){var w=Math.floor(M*(i.length-1));b=i[w].attr("fill")}}var S={_anchor:v,_inflection:y,_data:n,x:y.x,y:y.y,r:d+15,fill:b,textGroup:null,_side:null},C=[];if(r.each(x.options.fields,(function(t){l&&t===a.percentageField?C.push(n[u]):C.push(n[t])})),x.options.formatter){var P=x.options.formatter(n[u],{_origin:n,color:b},t);r.isString(P)&&(P=[P]),C=P}var O=x.container.addGroup({capture:!1,visible:!1}),T={x:0,y:0,fontSize:x.options.text.fontSize,lineHeight:x.options.text.fontSize,fontWeight:x.options.text.fontWeight,fill:x.options.text.fill},A=n[u];x.options.formatter&&(A=C[0]);var E=r.clone(T);(2===C.length&&(E.fontWeight=700),O.addShape("text",{attrs:r.mix({textBaseline:2===C.length?"top":"middle",text:A},E),data:n,offsetY:2===C.length?2:0,name:"label"}).name="label",2===C.length)&&(O.addShape("text",{attrs:r.mix({textBaseline:"bottom",text:C[1]},T),data:n,offsetY:-2,name:"label"}).name="label");S.textGroup=O,v.x<h.x?(S._side="left",x.halves[0].push(S)):(S._side="right",x.halves[1].push(S))},x=this,_=0;_<e.length;_++)b(_);var M=Math.floor(y/this.options.lineHeight);r.each(this.halves,(function(e){e.length>M&&e.splice(M,e.length-M),e.sort((function(t,e){return t.y-e.y})),t._antiCollision(e)})),this.view.canvas.draw()}},t.prototype.clear=function(){this.container&&this.container.clear()},t.prototype.hide=function(){this.container.set("visible",!1),this.view.canvas.draw()},t.prototype.show=function(){this.container.set("visible",!0),this.view.canvas.draw()},t.prototype.destroy=function(){this.container&&this.container.remove(),this.destroyed=!0},t.prototype.getDefaultOptions=function(){return{text:{fill:"rgba(0, 0, 0, 0.65)",fontSize:12},line:{lineWidth:.5,stroke:"rgba(0, 0, 0, 0.45)"},lineHeight:32,sidePadding:20}},t.prototype._antiCollision=function(t){var e,i=this,n=this.coord,r=n.getHeight(),a=n.center,o=n.getRadius(),s=a.y-o-15-this.options.lineHeight,l=!0,u=r,c=0,p=Number.MIN_VALUE,h=0,f=t.map((function(t){var e=t.y;e>c&&(c=e),e<p&&(p=e);var n=t.textGroup.getBBox().width;return n>=h&&(h=n),{size:i.options.lineHeight,targets:[e-s]}}));c-s>u&&(u=c-s);for(;l;)for(f.forEach((function(t){var e=(Math.min.apply(p,t.targets)+Math.max.apply(p,t.targets))/2;t.pos=Math.min(Math.max(p,e-t.size/2),u-t.size)})),l=!1,e=f.length;e--;)if(e>0){var d=f[e-1],g=f[e];d.pos+d.size>g.pos&&(d.size+=g.size,d.targets=d.targets.concat(g.targets),d.pos+d.size>u&&(d.pos=u-d.size),f.splice(e,1),l=!0)}e=0,f.forEach((function(n){var r=s;n.targets.forEach((function(){t[e].y=n.pos+r+i.options.lineHeight/2,r+=i.options.lineHeight,e++}))}));var v=[];t.forEach((function(t){var e=i._drawLabel(t);i._drawLabelLine(t,h,e),v.push(e)}))},t.prototype._drawLabel=function(t){var e=this.coord,i=e.getCenter(),r=e.getRadius(),a=t.y,o=t.textGroup,s=o.get("children"),l="left"===t._side?1:-1,u=n.__assign({textAlign:"left"===t._side?"right":"left",x:"left"===t._side?i.x-r-this.options.sidePadding:i.x+r+this.options.sidePadding},this.options.style);return this.options.offsetX&&(u.x+=this.options.offsetX*l),s.forEach((function(t){var e=t.get("offsetY"),i=a+e;t.attr(u),t.attr("y",i)})),o.show(),o},t.prototype._drawLabelLine=function(t,e,i){var n=[t._anchor.x,t._anchor.y],r=[t._inflection.x,t._inflection.y],a=t.y,o=t.textGroup;if(o){var s=["left"===t._side?o.getBBox().maxX+4:o.getBBox().minX-4,a],l=[n,r,s];if(r[1]!==a)if(r[1]<this.height/2&&r[1]<a||r[1]>=this.height/2&&r[1]>a){var u=r,c=s[0]+15,p=s[0]-15,h=["left"===t._side?c:p,r[1]];l=[n,u,h,s],("right"===t._side&&h[0]<u[0]||"left"===t._side&&h[0]>u[0])&&(l=[n,u,s])}else l=[n,[r[0],a],s];for(var f=[],d=0;d<l.length;d++){var g=l[d],v="L";0===d&&(v="M"),f.push([v,g[0],g[1]])}i.addShape("path",{attrs:{path:f,lineWidth:this.options.line.lineWidth,stroke:this.options.line.stroke}})}},t.prototype._adjustOptions=function(t){t.text.fontSize&&(t.lineHeight=3*t.text.fontSize)},t}();i.default=s},{"../../layer":584,"@antv/util":803,tslib:894}],581:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getLabelRotate=i.getAngleByPoint=i.near=i.inPanel=i.getOverlapInfo=i.getOverlapArea=i.getCenter=i.getEndPoint=void 0,i.getEndPoint=function(t,e,i){return{x:t.x+i*Math.cos(e),y:t.y+i*Math.sin(e)}},i.getCenter=function(t){return{x:t.x+t.width/2,y:t.y+t.height/2}},i.getOverlapArea=function(t,e,i){return void 0===i&&(i=0),Math.max(0,Math.min(t.x+t.width+i,e.x+e.width+i)-Math.max(t.x-i,e.x-i))*Math.max(0,Math.min(t.y+t.height+i,e.y+e.height+i)-Math.max(t.y-i,e.y-i))},i.getOverlapInfo=function(t,e,i){void 0===i&&(i=0);var n=Math.max(0,Math.min(t.x+t.width+i,e.x+e.width+i)-Math.max(t.x-i,e.x-i)),r=Math.max(0,Math.min(t.y+t.height+i,e.y+e.height+i)-Math.max(t.y-i,e.y-i));return n&&t.x<e.x&&(n=-n),r&&t.y<e.y&&(r=-r),t.x===e.x&&t.width===e.width&&(n=e.width),t.y===e.y&&t.height===e.height&&(r=e.height),{xOverlap:n,yOverlap:r}},i.inPanel=function(t,e){return t.x<e.x&&t.x+t.width>e.x+e.width&&t.y<e.y&&t.y+t.height>e.y+e.height},i.near=function(t,e,i){return void 0===i&&(i=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)<i},i.getAngleByPoint=function(t,e){var i=t.getCenter();return Math.atan2(e.y-i.y,e.x-i.x)},i.getLabelRotate=function(t){var e=Math.PI/2,i=t;return(i>e||i<-e)&&(i+=Math.PI),i}},{}],582:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.onEvent=i.EVENT_MAP=void 0;var n=t("@antv/util"),r=t("../../util/event");Object.defineProperty(i,"EVENT_MAP",{enumerable:!0,get:function(){return r.EVENT_MAP}}),Object.defineProperty(i,"onEvent",{enumerable:!0,get:function(){return r.onEvent}});var a=r.getEventMap({pie:"interval"});n.assign(r.EVENT_MAP,a)},{"../../util/event":677,"@antv/util":803}],583:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="pie",t.prototype.createLayers.call(this,i)},e.prototype.getAngleScale=function(){return this.layers[0].getAngleScale()},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":584,"@antv/util":803,tslib:894}],584:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.percentageField=void 0;var n=t("tslib"),r=t("@antv/util"),a=n.__importStar(t("./event")),o=n.__importDefault(t("../../base/view-layer")),s=t("../../geoms/factory"),l=t("./component/label"),u=n.__importDefault(t("./component/label/spider-label")),c=t("../../base/global");t("./theme"),i.percentageField="$$percentage$$";var p={pie:"interval"},h={pie:"column"},f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{width:400,height:400,title:{visible:!1},description:{visible:!1},forceFit:!0,padding:"auto",radius:.8,label:{visible:!0,type:"inner",autoRotate:!1,adjustPosition:!0,allowOverlap:!1,line:{visible:!0,smooth:!0}},legend:{visible:!0,position:"right-center"},tooltip:{visible:!0,shared:!1,showCrosshairs:!1,showMarkers:!1},pieStyle:{stroke:"white",lineWidth:1}})},e.prototype.afterInit=function(){t.prototype.afterInit.call(this);var e=this.options,i=e.angleField,n=e.colorField,a=e.data;r.every(a,(function(t){return 0===t[i]}))&&this.view.geometries[0].tooltip(n+"*"+i)},e.prototype.afterRender=function(){t.prototype.afterRender.call(this);var e=this.options;if(e.label&&e.label.visible){this.labelComponent&&this.labelComponent.clear();var a=e.label;if("spider"===a.type){var o=e.data,s=e.colorField,c=e.angleField,p=r.every(o,(function(t){return 0===t[c]})),h=p?i.percentageField:c;this.labelComponent=new u.default(n.__assign({view:this.view,fields:s?[h,s]:[h],angleField:c,allZero:p},this.options.label)),this.labelComponent.render()}else{var f=l.getPieLabel(a.type);this.labelComponent=new f(this,e.label),this.labelComponent.render()}}},e.prototype.getAngleScale=function(){var t=this.options.angleField;if(t)return this.view.getScaleByField(t)},e.prototype.geometryParser=function(t,e){return"g2"===t?p[e]:h[e]},e.prototype.scale=function(){var e=this.options;t.prototype.scale.call(this);var i={};i[e.angleField]={},i[e.colorField]={type:"cat"},i=r.deepMix({},this.config.scales,i),this.setConfig("scales",i)},e.prototype.processData=function(t){var e=this.options.angleField;return r.every(t,(function(t){return 0===t[e]}))?t.map((function(r){var a;return n.__assign(n.__assign({},r),((a={})[e]="string"==typeof r[e]?Number.parseFloat(r[e]):r[e],a[i.percentageField]=1/t.length,a))})):t.map((function(t){var i,r=t[e];return n.__assign(n.__assign({},t),((i={})[e]=r&&!isNaN(r)?+r:r,i))}))},e.prototype.axis=function(){},e.prototype.coord=function(){var t=this.options,e={type:"theta",cfg:{radius:t.radius,innerRadius:t.innerRadius||0}};this.setConfig("coordinate",e)},e.prototype.addGeometry=function(){var t,e=this.options,n=e.data,a=e.angleField;(t=r.every(n,(function(t){return 0===t[a]}))?s.getGeom("interval","main",{plot:this,positionFields:[1,i.percentageField]}):s.getGeom("interval","main",{plot:this,positionFields:[1,e.angleField]})).adjust=[{type:"stack"}],this.pie=t,e.label&&this.label(),e.tooltip&&(e.tooltip.fields||e.tooltip.formatter)&&this.geometryTooltip(),this.setConfig("geometry",t)},e.prototype.geometryTooltip=function(){this.pie.tooltip={};var t=this.options.tooltip;t.fields?this.pie.tooltip.fields=t.fields:this.pie.tooltip.fields=[this.options.angleField,this.options.colorField],t.formatter&&(this.pie.tooltip.callback=t.formatter,t.fields||(this.pie.tooltip.fields=[this.options.angleField,this.options.colorField]))},e.prototype.animation=function(){t.prototype.animation.call(this),!1===this.options.animation&&(this.pie.animate=!1)},e.prototype.annotation=function(){},e.prototype.parseEvents=function(e){e?t.prototype.parseEvents.call(this,e):t.prototype.parseEvents.call(this,a)},e.prototype.label=function(){this.pie.label=!1},e}(o.default);i.default=f,c.registerPlotType("pie",f)},{"../../base/global":392,"../../base/view-layer":395,"../../geoms/factory":430,"./component/label":576,"./component/label/spider-label":580,"./event":582,"./theme":585,"@antv/util":803,tslib:894}],585:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});t("../../theme").registerTheme("pie",{columnStyle:{normal:{},active:function(t){return{fillOpacity:.8*(t.opacity||1)}},disable:function(t){return{fillOpacity:.5*(t.opacity||1)}},selected:{lineWidth:1,stroke:"black"}}})},{"../../theme":669}],586:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.onEvent=i.EVENT_MAP=void 0;var n=t("@antv/util"),r=t("../../util/event");Object.defineProperty(i,"EVENT_MAP",{enumerable:!0,get:function(){return r.EVENT_MAP}}),Object.defineProperty(i,"onEvent",{enumerable:!0,get:function(){return r.onEvent}});var a=r.getEventMap({area:"area",line:"line",point:"point"});n.assign(r.EVENT_MAP,a)},{"../../util/event":677,"@antv/util":803}],587:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="radar",t.prototype.createLayers.call(this,i)},e.prototype.getAngleScale=function(){return this.layers[0].getAngleScale()},e.prototype.getRadiusScale=function(){return this.layers[0].getRadiusScale()},e.prototype.getColorScale=function(){return this.layers[0].getColorScale()},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":588,"@antv/util":803,tslib:894}],588:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importDefault(t("../../base/view-layer")),s=t("../../components/factory"),l=t("../../geoms/factory"),u=t("../../util/scale"),c=n.__importStar(t("./event"));t("./theme");var p={area:"area",line:"line",point:"point"},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{width:400,height:400,title:{visible:!1},description:{visible:!1},forceFit:!0,padding:"auto",radius:.8,smooth:!1,line:{visible:!0,size:2,style:{opacity:1}},area:{visible:!0,style:{opacity:.25}},point:{visible:!1,size:4,shape:"point",style:{opacity:1}},angleAxis:{visible:!0,autoRotateTitle:!0,line:{visible:!1},tickLine:{visible:!1},grid:{visible:!0,line:{style:{lineDash:[0,0]}}},label:{visible:!0,offset:16,autoRotate:!0,autoHide:!0},title:{visible:!1}},radiusAxis:{min:0,visible:!0,nice:!0,autoRotateTitle:!0,line:{visible:!0},tickLine:{visible:!0},gridType:"line",grid:{visible:!0,line:{style:{lineDash:[0,0]}}},label:{visible:!0,autoHide:!0,autoRotate:!0},title:{visible:!1}},label:{visible:!1,type:"point"},legend:{visible:!0,position:"left-top"},tooltip:{visible:!0,shared:!0,showCrosshairs:!1}})},e.prototype.init=function(){var e=this.options;e.xField=e.angleField,e.yField=e.radiusField,t.prototype.init.call(this)},e.prototype.getAngleScale=function(){var t=this.options.angleField;return this.view.getScaleByField(t)},e.prototype.getRadiusScale=function(){var t=this.options.radiusField;return this.view.getScaleByField(t)},e.prototype.getColorScale=function(){var t=this.options.seriesField;return this.view.getScaleByField(t)},e.prototype.geometryParser=function(t,e){return p[e]},e.prototype.scale=function(){var e=this.options,i={};i[e.angleField]={},r.has(e,"angleAxis")&&u.extractScale(i[e.angleField],e.angleAxis),i[e.radiusField]={},r.has(e,"radiusAxis")&&u.extractScale(i[e.radiusField],e.radiusAxis),this.setConfig("scales",i),t.prototype.scale.call(this)},e.prototype.coord=function(){var t={type:"polar",cfg:{radius:this.options.radius}};this.setConfig("coordinate",t)},e.prototype.axis=function(){var t=this.options,e=s.getComponent("axis",{plot:this,dim:"angle"}),i=s.getComponent("axis",{plot:this,dim:"radius"}),n={};n[t.angleField]=e,n[t.radiusField]=i,this.setConfig("axes",n)},e.prototype.addGeometry=function(){var t=this.options;if(t.area.visible){var e=l.getGeom("area","main",{plot:this});this.setConfig("geometry",e),this.area=e}if(t.line&&t.line.visible){var i=l.getGeom("line","main",{plot:this});this.setConfig("geometry",i),this.line=i}if(t.point&&t.point.visible){var n=l.getGeom("point","guide",{plot:this});this.setConfig("geometry",n),this.point=n}t.label&&this.label(),t.tooltip&&(t.tooltip.fields||t.tooltip.formatter)&&this.geometryTooltip()},e.prototype.geometryTooltip=function(){var t=this.line?this.line:this.area;t.tooltip={};var e=this.options.tooltip;e.fields&&(t.tooltip.fields=e.fields),e.formatter&&(t.tooltip.callback=e.formatter,e.fields||(t.tooltip.fields=[this.options.angleField,this.options.radiusField]),this.options.seriesField&&t.tooltip.fields.push(this.options.seriesField))},e.prototype.label=function(){var t=this.options;if(!1===t.label.visible)return this.point&&(this.point.label=!1),this.line&&(this.line.label=!1),void(this.area&&(this.area.label=!1));var e=s.getComponent("label",n.__assign({fields:[t.radiusField],cfg:{type:"polar",autoRotate:!1},plot:this},t.label));this.point?this.point.label=e:this.line?this.line.label=e:this.area&&(this.area.label=e)},e.prototype.annotation=function(){},e.prototype.animation=function(){t.prototype.animation.call(this),!1===this.options.animation&&(this.area&&(this.area.animate=!1),this.line&&(this.line.animate=!1),this.point&&(this.point.animate=!1))},e.prototype.parseEvents=function(){t.prototype.parseEvents.call(this,c)},e}(o.default);i.default=h,a.registerPlotType("radar",h)},{"../../base/global":392,"../../base/view-layer":395,"../../components/factory":412,"../../geoms/factory":430,"../../util/scale":712,"./event":586,"./theme":589,"@antv/util":803,tslib:894}],589:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});t("../../theme").registerTheme("radar",{areaStyle:{normal:{},active:function(t){return{opacity:t.opacity||1}},disable:function(t){return{opacity:.5*(t.opacity||1)}},selected:{lineWidth:1,stroke:"#333333"}},lineStyle:{normal:{},active:function(t){return{opacity:t.opacity||1}},disable:function(t){return{opacity:.5*(t.opacity||1)}},selected:function(t){return{lineWidth:(t.lineWidth||1)+2}}},pointStyle:{normal:{},active:function(t){var e=t.fill||t.fillStyle,i=t.size||t.radius;return{radius:i+1,shadowBlur:i,shadowColor:e,stroke:e,strokeOpacity:1,lineWidth:1}},disable:function(t){return{opacity:.5*(t.opacity||t.fillOpacity||1)}},selected:function(t){var e=t.fill||t.fillStyle,i=t.size||t.radius;return{radius:i+2,shadowBlur:i,shadowColor:e,stroke:e,strokeOpacity:1,lineWidth:2}}}})},{"../../theme":669}],590:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.setShapeCache=void 0;var n,r=t("../../dependents"),a=t("@antv/util");function o(t,e){var i=t.getBBox(),n=i.minX+i.width/2;t.setClip({type:"rect",attrs:{x:n,y:i.minY,width:0,height:i.height}}),t.get("clipShape").animate({width:i.width,x:i.minX},e.duration,e.easing,(function(){t.setClip(null)}),e.delay)}function s(t,e){var i=function(t){var e,i=t.id;return a.each(n,(function(t){t.id===i&&(e=t)})),e}(t).attr("path"),r=a.clone(t.attr("path"));t.attr("path",i),t.animate({path:r},e.duration,e.easing,e.callback,100)}o.animationName="clipInFromCenter",i.setShapeCache=function(t){n=t},s.animationName="updateFromCenter",r.registerAnimation("clipInFromCenter",o),r.registerAnimation("updateFromCenter",s)},{"../../dependents":425,"@antv/util":803}],591:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../../util/color"),o=n.__importDefault(t("../../../util/bbox"));var s=function(){function t(t){this.destroyed=!1,this.view=t.view,this.plot=t.plot;var e=this.getDefaultOptions();this.options=r.deepMix(e,t,{}),this.options.leftStyle||(this.options.leftStyle=this.options.style),this.options.rightStyle||(this.options.rightStyle=this.options.style),this.init()}return t.prototype.init=function(){var t=this;this.container=this.getGeometry().labelsContainer,this.view.on("beforerender",(function(){t.clear(),t.plot.canvas.draw()}))},t.prototype.render=function(){var t=this,e=this.getGeometry(),i=e.elements,n=e.coordinate;this.coord=n,r.each(i,(function(e){var i=e.shape,n=t.getPosition(i),a=t.getValue(i),o=t.getTextAlign(),s=[];r.each(n,(function(e,n){var l=0===n?t.options.leftStyle:t.options.rightStyle,u=t.getTextColor(i,n);"inner"===t.options.position&&t.options.adjustColor&&"black"!==u&&(l.stroke=null);var c=t.options.formatter,p=c?c(a[n]):a[n],h=t.container.addShape("text",{attrs:r.deepMix({},l,{x:e.x,y:e.y,text:p,fill:u,textAlign:o[n],textBaseline:"middle"}),name:"label"});s.push(h),t.doAnimation(h)})),i.set("labelShapes",s),t.adjustPosition(s[0],s[1],i)})),this.plot.canvas.draw()},t.prototype.hide=function(){this.container.set("visible",!1),this.plot.canvas.draw()},t.prototype.show=function(){this.container.set("visible",!0),this.plot.canvas.draw()},t.prototype.clear=function(){this.container&&this.container.clear()},t.prototype.destroy=function(){this.container&&this.container.remove(),this.destroyed=!0},t.prototype.getBBox=function(){return this.container.getBBox()},t.prototype.getShapeBbox=function(t){var e=this,i=[];return r.each(t.get("origin").points,(function(t){i.push(e.coord.convertPoint(t))})),new o.default(i[0].x,i[1].y,Math.abs(i[2].x-i[0].x),Math.abs(i[0].y-i[1].y))},t.prototype.getDefaultOptions=function(){var t=this.plot.theme.label.style;return{position:"outer",offsetX:8,offsetY:0,style:r.clone(t),adjustColor:!0,adjustPosition:!0}},t.prototype.getPosition=function(t){var e,i,n=this.getShapeBbox(t),r=n.minX,a=n.maxX,o=n.minY,s=n.height,l=this.options,u=l.offsetX,c=o+s/2+l.offsetY;return"outer"===this.options.position?(e=r-u,i=a+u):(e=r+u,i=a-u),[{x:e,y:c},{x:i,y:c}]},t.prototype.getValue=function(t){var e=this.plot.options.xField;return t.get("origin").data[e]},t.prototype.getTextAlign=function(){return"outer"===this.options.position?["right","left"]:["left","right"]},t.prototype.getTextColor=function(t,e){if(this.options.adjustColor&&"inner"===this.options.position){var i=t.attr("fill"),n=t.attr("opacity")?t.attr("opacity"):1,o=a.rgb2arr(i);return function(t,e){var i;return r.each(t,(function(t){var n=t;e>=n.from&&e<n.to&&(i=n.color)})),i}([{from:0,to:85,color:"white"},{from:85,to:170,color:"#F6F6F6"},{from:170,to:255,color:"black"}],Math.round(.299*o[0]+.587*o[1]+.114*o[2])/n)}return 0===e?this.options.leftStyle.fill:this.options.rightStyle.fill},t.prototype.doAnimation=function(t){this.plot.animation&&!1===this.plot.animation||(t.attr("fillOpacity",0),t.attr("strokeOpacity",0),t.stopAnimate(),t.animate({fillOpacity:1,strokeOpacity:1},800,"easeLinear",500))},t.prototype.adjustPosition=function(t,e,i){var n=i.get("origin"),r=n.x[0],a=n.x[1],o=Math.abs(a-r),s=this.view.coordinateBBox,l=[t.getBBox(),e.getBBox()],u=t.attr("x"),c=e.attr("x");if(this.options.adjustPosition&&"inner"===this.options.position){var p=l[0].width+l[1].width;(l[0].maxX-l[1].minX>2||p>o)&&(u=r-this.options.offsetX,t.attr("fill",this.options.leftStyle.fill),t.attr("textAlign","right"),l[0]=t.getBBox(),c=a+this.options.offsetX,e.attr("fill",this.options.rightStyle.fill),e.attr("textAlign","left"),l[1]=e.getBBox())}l[0].minX<s.minX&&(u=s.minX+8,t.attr("textAlign","left")),t.attr("x",u),e.attr("x",c),this.plot.canvas.draw()},t.prototype.getGeometry=function(){return r.find(this.view.geometries,(function(t){return"interval"===t.type}))},t}();i.default=s},{"../../../util/bbox":672,"../../../util/color":673,"@antv/util":803,tslib:894}],592:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="rangeBar",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":593,"@antv/util":803,tslib:894}],593:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importDefault(t("../bar/layer")),s=n.__importDefault(t("./component/label")),l=t("./animation"),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rangeBar",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix(t.getDefaultOptions.call(this),{label:{visible:!0,position:"outer"},xAxis:{visible:!0,autoRotateTitle:!1,grid:{visible:!0},line:{visible:!1},tickLine:{visible:!1},label:{visible:!0,autoRotate:!0,autoHide:!0},title:{visible:!0,spacing:12}},yAxis:{visible:!0,autoRotateTitle:!0,grid:{visible:!1},line:{visible:!0},tickLine:{visible:!0},label:{visible:!0,autoHide:!0,autoRotate:!1},title:{visible:!1,spacing:12}}},{})},e.prototype.afterRender=function(){this.renderLabel();var e=[],i=this.view.geometries;r.each(i,(function(t){var i=t.elements;r.each(i,(function(t){e.push(t.shape)}))})),l.setShapeCache(e),t.prototype.afterRender.call(this)},e.prototype.renderLabel=function(){this.options.label&&this.options.label.visible&&new s.default(n.__assign({view:this.view,plot:this},this.options.label)).render()},e.prototype.animation=function(){t.prototype.animation.call(this)},e}(o.default);i.default=u,a.registerPlotType("rangeBar",u)},{"../../base/global":392,"../bar/layer":464,"./animation":590,"./component/label":591,"@antv/util":803,tslib:894}],594:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.setShapeCache=void 0;var n,r=t("../../dependents"),a=t("@antv/util");function o(t,e){var i=t.getBBox(),n=i.minY+i.height/2;t.setClip({type:"rect",attrs:{x:i.minX,y:n,width:i.width,height:0}}),t.get("clipShape").animate({height:i.height,y:i.minY},e.duration,e.easing,(function(){t.setClip(null)}),e.delay)}function s(t,e){var i=function(t){var e,i=t.id;return a.each(n,(function(t){t.id===i&&(e=t)})),e}(t).attr("path"),r=a.clone(t.attr("path"));t.attr("path",i),t.animate({path:r},e.duration,e.easing,e.callback,100)}o.animationName="clipInFromCenterVertical",i.setShapeCache=function(t){n=t},s.animationName="updateFromCenterVertical",r.registerAnimation("clipInFromCenterVertical",o),r.registerAnimation("updateFromCenterVertical",s)},{"../../dependents":425,"@antv/util":803}],595:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../../util/color"),o=n.__importDefault(t("../../../util/bbox"));var s=function(){function t(t){this.destroyed=!1,this.view=t.view,this.plot=t.plot;var e=this.getDefaultOptions();this.options=r.deepMix(e,t,{}),this.options.topStyle||(this.options.topStyle=this.options.style),this.options.bottomStyle||(this.options.bottomStyle=this.options.style),this.init()}return t.prototype.init=function(){var t=this;this.container=this.getGeometry().labelsContainer,this.view.on("beforerender",(function(){t.clear(),t.plot.canvas.draw()}))},t.prototype.render=function(){var t=this,e=this.getGeometry(),i=e.coordinate,n=e.elements;this.coord=i,r.each(n,(function(e){var i=e.shape,n=t.getPosition(i),a=t.getValue(i),o=t.getTextBaseline(),s=[];r.each(n,(function(e,n){var l=1===n?t.options.topStyle:t.options.bottomStyle,u=t.getTextColor(i,n);"inner"===t.options.position&&t.options.adjustColor&&"black"!==u&&(l.stroke=null);var c=t.options.formatter,p=c?c(a[n]):a[n],h=t.container.addShape("text",{attrs:r.deepMix({},l,{x:e.x,y:e.y,text:p,fill:u,textAlign:"center",textBaseline:o[n]}),name:"label"});s.push(h),t.doAnimation(h)})),i.set("labelShapes",s),t.adjustPosition(s[0],s[1],i)})),this.plot.canvas.draw()},t.prototype.hide=function(){this.container.set("visible",!1),this.plot.canvas.draw()},t.prototype.show=function(){this.container.set("visible",!0),this.plot.canvas.draw()},t.prototype.clear=function(){this.container&&this.container.clear()},t.prototype.destroy=function(){this.container&&this.container.remove(),this.destroyed=!0},t.prototype.getBBox=function(){return this.container.getBBox()},t.prototype.getShapeBbox=function(t){var e=this,i=[];return r.each(t.get("origin").points,(function(t){i.push(e.coord.convertPoint(t))})),new o.default(i[0].x,i[1].y,Math.abs(i[2].x-i[0].x),Math.abs(i[0].y-i[1].y))},t.prototype.getDefaultOptions=function(){var t=this.plot.theme.label.style;return{position:"outer",offsetX:0,offsetY:8,style:r.clone(t),adjustColor:!0,adjustPosition:!0}},t.prototype.getPosition=function(t){var e,i,n=this.getShapeBbox(t),r=n.minX,a=n.minY,o=n.maxY,s=n.width,l=this.options.offsetY,u=r+s/2;return"outer"===this.options.position?(e=a-l,i=o+l):(e=a+l,i=o-l),[{x:u,y:i},{x:u,y:e}]},t.prototype.getValue=function(t){var e=this.plot.options.yField;return t.get("origin").data[e]},t.prototype.getTextBaseline=function(){return"outer"===this.options.position?["top","bottom"]:["bottom","top"]},t.prototype.getTextColor=function(t,e){if(this.options.adjustColor&&"inner"===this.options.position){var i=t.attr("fill"),n=t.attr("opacity")?t.attr("opacity"):1,o=a.rgb2arr(i);return function(t,e){var i;return r.each(t,(function(t){var n=t;e>=n.from&&e<n.to&&(i=n.color)})),i}([{from:0,to:85,color:"white"},{from:85,to:170,color:"#F6F6F6"},{from:170,to:255,color:"black"}],Math.round(.299*o[0]+.587*o[1]+.114*o[2])/n)}return 1===e?this.options.topStyle.fill:this.options.bottomStyle.fill},t.prototype.doAnimation=function(t){this.plot.animation&&!1===this.plot.animation||(t.attr("fillOpacity",0),t.attr("strokeOpacity",0),t.stopAnimate(),t.animate({fillOpacity:1,strokeOpacity:1},800,"easeLinear",500))},t.prototype.adjustPosition=function(t,e,i){var n=i.get("origin"),r=n.y[1],a=n.y[0],o=i.getBBox().height,s=this.view.coordinateBBox,l=[t.getBBox(),e.getBBox()],u=t.attr("y"),c=e.attr("y");if(this.options.adjustPosition&&"inner"===this.options.position){var p=l[0].height+l[1].height;(l[1].maxY-l[0].minY>2||p>o)&&(c=r-this.options.offsetY,e.attr("fill",this.options.topStyle.fill),e.attr("textBaseline","bottom"),u=a+this.options.offsetY,t.attr("fill",this.options.bottomStyle.fill),t.attr("textBaseline","top"),l[0]=t.getBBox(),l[1]=e.getBBox())}l[0].maxY>s.maxY-8&&(u=s.maxY-4,t.attr("textBaseline","bottom")),t.attr("y",u),e.attr("y",c),this.plot.canvas.draw()},t.prototype.getGeometry=function(){return r.find(this.view.geometries,(function(t){return"interval"===t.type}))},t}();i.default=s},{"../../../util/bbox":672,"../../../util/color":673,"@antv/util":803,tslib:894}],596:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="rangeColumn",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":597,"@antv/util":803,tslib:894}],597:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importDefault(t("../column/layer")),s=n.__importDefault(t("./component/label")),l=t("./animation"),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rangeColumn",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix(t.getDefaultOptions.call(this),{label:{visible:!0,position:"outer"}},{})},e.prototype.afterRender=function(){this.renderLabel();var e=[],i=this.view.geometries;r.each(i,(function(t){var i=t.elements;r.each(i,(function(t){e.push(t.shape)}))})),l.setShapeCache(e),t.prototype.afterRender.call(this)},e.prototype.animation=function(){t.prototype.animation.call(this),this.column.animate={appear:{animation:"clipInFromCenterVertical",duration:600},update:{animation:"updateFromCenterVertical",duration:600}}},e.prototype.renderLabel=function(){this.options.label&&this.options.label.visible&&new s.default(n.__assign({view:this.view,plot:this},this.options.label)).render()},e}(o.default);i.default=u,a.registerPlotType("rangeColumn",u)},{"../../base/global":392,"../column/layer":490,"./animation":594,"./component/label":595,"@antv/util":803,tslib:894}],598:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.onEvent=i.EVENT_MAP=void 0;var n=t("@antv/util"),r=t("../../util/event");Object.defineProperty(i,"EVENT_MAP",{enumerable:!0,get:function(){return r.EVENT_MAP}}),Object.defineProperty(i,"onEvent",{enumerable:!0,get:function(){return r.onEvent}});var a=r.getEventMap({rose:"interval"});n.assign(r.EVENT_MAP,a)},{"../../util/event":677,"@antv/util":803}],599:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="rose",t.prototype.createLayers.call(this,i)},e.prototype.getRadiusScale=function(){return this.layers[0].getRadiusScale()},e.prototype.getAngleScale=function(){return this.layers[0].getAngleScale()},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":600,"@antv/util":803,tslib:894}],600:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importDefault(t("../../base/view-layer")),s=t("../../components/factory"),l=t("../../geoms/factory"),u=n.__importStar(t("./event")),c={rose:"interval"},p={rose:"column"},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{width:400,height:400,title:{visible:!1},description:{visible:!1},forceFit:!0,padding:"auto",radius:.8,innerRadius:0,label:{visible:!0,type:"inner",autoRotate:!0,adjustColor:!1},legend:{visible:!0,position:"right"},tooltip:{visible:!0,shared:!1,showCrosshairs:!1,showMarkers:!1},columnStyle:{stroke:"white",lineWidth:1},xAxis:{visible:!1,line:{visible:!1},tickLine:{visible:!1},grid:{visible:!0,alignTick:!1,style:{lineWidth:.5}},label:{offset:5,autoRotate:!0}},yAxis:{visible:!1}})},e.prototype.getOptions=function(e){var i=t.prototype.getOptions.call(this,e),n=e.sectorStyle,a=e.categoryField,o=e.radiusField;return r.deepMix({},i,{columnStyle:n,xField:a,yField:o})},e.prototype.getRadiusScale=function(){var t=this.options.radiusField;t&&this.view.getScaleByField(t)},e.prototype.getAngleScale=function(){var t=this.options.categoryField;t&&this.view.getScaleByField(t)},e.prototype.geometryParser=function(t,e){return"g2"===t?c[e]:p[e]},e.prototype.scale=function(){var t=this.options,e={};e[t.radiusField]={},e[t.categoryField]={type:"cat"},this.setConfig("scales",e)},e.prototype.coord=function(){var t=this.options,e={type:"polar",cfg:{radius:t.radius,innerRadius:t.innerRadius||0}};this.setConfig("coordinate",e)},e.prototype.addGeometry=function(){var t=this.options,e=l.getGeom("interval","main",{plot:this,positionFields:[t.categoryField,t.radiusField],widthRatio:{rose:1}});e.label=this.extractLabel(),e.adjust=this.adjustRoseAdjust(),this.rose=e,t.tooltip&&(t.tooltip.fields||t.tooltip.formatter)&&this.geometryTooltip(),this.setConfig("geometry",e)},e.prototype.adjustRoseAdjust=function(){},e.prototype.geometryTooltip=function(){this.rose.tooltip={};var t=this.options.tooltip;t.fields&&(this.rose.tooltip.fields=t.fields),t.formatter&&(this.rose.tooltip.callback=t.formatter,t.fields||(this.rose.tooltip.fields=[this.options.radiusField,this.options.categoryField,this.options.colorField]))},e.prototype.animation=function(){t.prototype.animation.call(this),!1===this.options.animation&&(this.rose.animate=!1)},e.prototype.annotation=function(){},e.prototype.parseEvents=function(){t.prototype.parseEvents.call(this,u)},e.prototype.extractLabel=function(){var t=this.options;if(!t.label||!t.label.visible)return!1;var e=r.deepMix({},t.label);this.adjustLabelOptions(e);var i=[t.categoryField,t.radiusField];return s.getComponent("label",n.__assign({plot:this,labelType:"polar",fields:i},e))},e.prototype.adjustLabelOptions=function(t){var e=this.options.radiusField;if(t){var i=t.offset,n=t.type,r=t.content;"inner"===n?t.offset=i<0?i:-10:"outer"===n&&(t.offset=i>=0?i:10),r||(t.content=function(t,i){return""+i._origin[e]})}},e}(o.default);i.default=h,a.registerPlotType("rose",h)},{"../../base/global":392,"../../base/view-layer":395,"../../components/factory":412,"../../geoms/factory":430,"./event":598,"@antv/util":803,tslib:894}],601:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../../util/bbox")),o=function(){function t(t){this.quadrantGroups=[],this.regionData=[],this.lineData=[],this.options=t,this.view=this.options.view,this.init()}return t.prototype.init=function(){var t,e=this.options,i=e.xBaseline,n=e.yBaseline,r=this.view.getCoordinate(),o=this.view.getScaleByField(this.options.plotOptions.xField),s=this.view.getScaleByField(this.options.plotOptions.yField);if(i>o.min&&i<o.max){var l=(i-o.min)/(o.max-o.min);t=[new a.default(r.start.x,r.end.y,r.getWidth()*l,r.getHeight()),new a.default(r.start.x+r.getWidth()*l,r.end.y,r.getWidth()*(1-l),r.getHeight())];var u={start:{x:r.start.x+r.getWidth()*l,y:r.end.y},end:{x:r.start.x+r.getWidth()*l,y:r.start.y}};this.lineData.push(u)}else t=[new a.default(r.start.x,r.end.y,r.getWidth(),r.getHeight())];if(n>s.min&&n<s.max){l=(n-s.min)/(s.max-s.min);var c={start:{x:r.start.x,y:r.start.y-r.getHeight()*l},end:{x:r.end.x,y:r.start.y-r.getHeight()*l}};this.lineData.push(c);var p={name:i<=o.min?"top-right":"top-left",bbox:new a.default(t[0].minX,t[0].minY,t[0].width,t[0].height*(1-l)),index:i<=o.min?2:0};this.regionData.push(p);var h={name:i<=o.min?"bottom-right":"bottom-left",bbox:new a.default(t[0].minX,t[0].minY+t[0].height*(1-l),t[0].width,t[0].height*l),index:i<=o.min?3:1};if(this.regionData.push(h),t.length>1){var f={name:"top-right",bbox:new a.default(t[1].minX,t[1].minY,t[1].width,t[1].height*(1-l)),index:2};this.regionData.push(f);var d={name:"bottom-right",bbox:new a.default(t[1].minX,t[1].minY+t[1].height*(1-l),t[1].width,t[1].height*l),index:3};this.regionData.push(d)}}else if(2===t.length)if(n<=s.min){var g={name:"top-left",bbox:t[0],index:0};this.regionData.push(g);f={name:"top-right",bbox:t[1],index:2};this.regionData.push(f)}else{var v={name:"bottom-left",bbox:t[0],index:1};this.regionData.push(v);d={name:"bottom-right",bbox:t[1],index:3};this.regionData.push(d)}else if(i<=o.min)if(n<=s.min){f={name:"top-right",bbox:t[0],index:2};this.regionData.push(f)}else{d={name:"bottom-right",bbox:t[0],index:3};this.regionData.push(d)}else if(n<=s.min){g={name:"top-left",bbox:t[0],index:0};this.regionData.push(g)}else{v={name:"bottom-left",bbox:t[0],index:1};this.regionData.push(v)}this.container=this.view.backgroundGroup.addGroup()},t.prototype.render=function(){var t=this;if(this.regionData.length>0){var e=this.getDefaultStyle(),i=this.getRegionStyle(this.regionData);r.each(this.regionData,(function(a){var o=a.index,s=t.container.addGroup(),l=s.addShape("rect",{attrs:n.__assign({x:a.bbox.minX,y:a.bbox.minY,width:a.bbox.width,height:a.bbox.height},i[o]),name:"quadrant"});if(t.options.label&&t.options.label.text){var u=r.deepMix({},e.label,t.options.label),c=t.getLabelConfig(a,u);s.addShape("text",{attrs:n.__assign({},c),name:"quadrant-label"})}l.set("data",a),t.quadrantGroups.push(s)}));var a=r.deepMix({},e.line,this.options.lineStyle);r.each(this.lineData,(function(e){t.container.addShape("path",{attrs:n.__assign({path:[["M",e.start.x,e.start.y],["L",e.end.x,e.end.y]]},a),name:"quadrant-line"})})),this.view.canvas.draw()}},t.prototype.clear=function(){this.container&&this.container.clear()},t.prototype.destroy=function(){this.container&&this.container.remove()},t.prototype.getDefaultStyle=function(){return{line:{stroke:"#9ba29a",lineWidth:1},regionStyle:[{fill:"#000000",opacity:.05},{fill:"#ffffff",opacity:0},{fill:"#ffffff",opacity:0},{fill:"#000000",opacity:.05}],label:{position:"outter-inner",offset:10,style:{fontSize:14,fill:"#ccc"}}}},t.prototype.getRegionStyle=function(t){var e=this.getDefaultStyle().regionStyle;if(this.options.regionStyle){var i=this.options.regionStyle;r.isArray(i)?e=e.map((function(t,e){return i.length>e&&i[e]?i[e]:t})):r.isFunction(i)&&r.each(t,(function(t,n){e[n]=i(t)}))}return e},t.prototype.getLabelConfig=function(t,e){var i=t.index,a=0,o=0,s={},l=e.text;r.isFunction(l)?l=l(t):r.isArray(l)&&(l=l[i]);var u=e.position.split("-"),c=t.name.split("-");return"left"===c[1]?("inner"===u[0]&&(a=t.bbox.maxX-e.offset,s.textAlign="right"),"outter"===u[0]&&(a=t.bbox.minX+e.offset,s.textAlign="left")):"right"===c[1]&&("inner"===u[0]&&(a=t.bbox.minX+e.offset,s.textAlign="left"),"outter"===u[0]&&(a=t.bbox.maxX-e.offset,s.textAlign="right")),"top"===c[0]?("inner"===u[1]&&(o=t.bbox.maxY-e.offset,s.textBaseline="bottom"),"outter"===u[1]&&(o=t.bbox.minY+e.offset,s.textBaseline="top")):"bottom"===c[0]&&("inner"===u[1]&&(o=t.bbox.minY+e.offset,s.textBaseline="top"),"outter"===u[1]&&(o=t.bbox.maxY-e.offset,s.textBaseline="bottom")),(s=r.deepMix({},e.style,s)).lineHeight=s.fontSize,n.__assign({x:a,y:o,text:l},s)},t}();i.default=o},{"../../../util/bbox":672,"@antv/util":803,tslib:894}],602:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("@antv/scale"),o=t("d3-regression"),s=t("../../../util/path"),l={exp:o.regressionExp,linear:o.regressionLinear,loess:o.regressionLoess,log:o.regressionLog,poly:o.regressionPoly,pow:o.regressionPow,quad:o.regressionQuad};var u=function(){function t(t){this.options=r.deepMix({},{type:"linear",style:{stroke:"#9ba29a",lineWidth:2,opacity:.5,lineJoin:"round",lineCap:"round"},showConfidence:!1,confidenceStyle:{fill:"#ccc",opacity:.1}},t),this.view=this.options.view,this.init()}return t.prototype.init=function(){var t=this.options.plotOptions,e=t.xField,i=t.yField,n=t.data,r=l[this.options.type]().x((function(t){return t[e]})).y((function(t){return t[i]}));this.data=this.processData(r(n)),this.container=this.view.backgroundGroup.addGroup()},t.prototype.render=function(){var t=this.view.getScaleByField(this.options.plotOptions.xField),e=this.view.getScaleByField(this.options.plotOptions.yField),i=this.view.getCoordinate(),r=this.data.trendlineData,o=a.getScale("linear"),l=this.adjustScale(t,r,"x"),u=new o({min:l.min,max:l.max}),c=this.adjustScale(e,r,"y"),p=new o({min:c.min,max:c.max});if(this.options.showConfidence){var h=this.getConfidencePath(u,p,i);this.container.addShape("path",{attrs:n.__assign({path:h},this.options.confidenceStyle),name:"confidence"})}var f=this.getTrendlinePoints(u,p,i),d=s.getSplinePath(f,!1,[[0,0],[1,1]]);this.shape=this.container.addShape("path",{attrs:n.__assign({path:d},this.options.style),name:"trendline"})},t.prototype.clear=function(){this.container&&this.container.clear()},t.prototype.destroy=function(){this.container&&this.container.destroy()},t.prototype.processData=function(t){var e=[],i=[];return r.each(t,(function(n){e.push({x:n[0],y:n[1]});var r,a,o=(r=t.rSquared,a=n[1],1.96*Math.sqrt(r*(1-r)/a));i.push({x:n[0],y0:n[1]-o,y1:n[1]+o})})),{trendlineData:e,confidenceData:i}},t.prototype.getTrendlinePoints=function(t,e,i){var n=[];return r.each(this.data.trendlineData,(function(r){var a=t.scale(r.x),o=e.scale(r.y),s=i.start.x+i.width*a,l=i.start.y-i.height*o;n.push({x:s,y:l})})),n},t.prototype.getConfidencePath=function(t,e,i){var n=[],a=[],o=[];r.each(this.data.confidenceData,(function(r){var o=t.scale(r.x),s=e.scale(r.y0),l=e.scale(r.y1),u=i.start.x+i.width*o,c=i.start.y-i.height*s,p=i.start.y-i.height*l;n.push({x:u,y:c}),a.push({x:u,y:p})}));for(var s=0;s<n.length;s++){var l=0===s?"M":"L",u=n[s];isNaN(u.x)||isNaN(u.y)||o.push([l,u.x,u.y])}for(var c=a.length-1;c>0;c--){u=a[c];isNaN(u.x)||isNaN(u.y)||o.push(["L",u.x,u.y])}return o},t.prototype.adjustScale=function(t,e,i){var n=t.min,a=t.max,o=this.options.plotOptions,s=o.data,l=o.xField,u=o.yField,c="x"===i?l:u,p=r.minBy(s,c)[c],h=r.maxBy(s,c)[c],f=(n-p)/(h-p),d=(a-h)/(h-p),g=r.minBy(e,i)[i],v=r.maxBy(e,i)[i];return{min:g+f*(v-g),max:v+d*(v-g)}},t}();i.default=u},{"../../../util/path":681,"@antv/scale":747,"@antv/util":803,"d3-regression":878,tslib:894}],603:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.onEvent=i.EVENT_MAP=void 0;var n=t("@antv/util"),r=t("../../util/event");Object.defineProperty(i,"EVENT_MAP",{enumerable:!0,get:function(){return r.EVENT_MAP}}),Object.defineProperty(i,"onEvent",{enumerable:!0,get:function(){return r.onEvent}});var a=r.getEventMap({point:"point",trendline:"trendline",confidence:"confidence",quadrant:"quadrant",quadrantLabel:"quadrant-label",quadrantLine:"quadrant-line"});n.assign(r.EVENT_MAP,a)},{"../../util/event":677,"@antv/util":803}],604:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="scatter",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":605,"@antv/util":803,tslib:894}],605:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importDefault(t("../../base/view-layer")),s=t("../../geoms/factory"),l=t("../../util/scale"),u=n.__importDefault(t("./components/quadrant")),c=n.__importDefault(t("./components/trendline")),p=n.__importStar(t("./event")),h=t("../../components/factory");t("./theme");var f={scatter:"point"},d={point:"point"},g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{pointSize:4,pointStyle:{lineWidth:1,strokeOpacity:1,fillOpacity:.95,stroke:"#fff"},xAxis:{nice:!0,grid:{visible:!0},line:{visible:!0}},yAxis:{nice:!0,grid:{visible:!0},line:{visible:!0}},tooltip:{visible:!0,shared:null,showTitle:!1,showMarkers:!1,showCrosshairs:!1},label:{visible:!1},shape:"circle"})},e.prototype.afterRender=function(){t.prototype.afterRender.call(this),this.quadrant&&this.quadrant.destroy(),this.trendline&&this.trendline.destroy(),this.options.quadrant&&this.options.quadrant.visible&&(this.quadrant=new u.default(n.__assign({view:this.view,plotOptions:this.options},this.options.quadrant)),this.quadrant.render()),this.options.trendline&&this.options.trendline.visible&&(this.trendline=new c.default(n.__assign({view:this.view,plotOptions:this.options},this.options.trendline)),this.trendline.render())},e.prototype.destroy=function(){this.quadrant&&(this.quadrant.destroy(),this.quadrant=null),this.trendline&&(this.trendline.destroy(),this.trendline=null),t.prototype.destroy.call(this)},e.prototype.isValidLinearValue=function(t){return!r.isNil(t)&&!Number.isNaN(Number(t))},e.prototype.processData=function(t){var e=this,i=this.options,a=i.xField,o=i.yField,s=r.get(this.options,["xAxis","type"],"linear"),l=r.get(this.options,["yAxis","type"],"linear");return s&&l?t.filter((function(t){return!("linear"===s&&!e.isValidLinearValue(t[a]))&&!("linear"===l&&!e.isValidLinearValue(t[o]))})).map((function(t){var e;return n.__assign(n.__assign({},t),((e={})[a]="linear"===s?Number(t[a]):String(t[a]),e[o]="linear"===l?Number(t[o]):String(t[o]),e))})):t},e.prototype.geometryParser=function(t,e){return"g2"===t?f[e]:d[e]},e.prototype.scale=function(){var e=this.options,i={};i[e.xField]={},r.has(e,"xAxis")&&l.extractScale(i[e.xField],e.xAxis),i[e.yField]={},r.has(e,"yAxis")&&l.extractScale(i[e.yField],e.yAxis);var n=r.find(e.interactions,(function(t){return"timeline"===t.type}));if(n&&r.get(n,"cfg.key")){var a=n.cfg.key;i[a]?i[a].key=!0:i[a]={key:!0}}this.setConfig("scales",i),t.prototype.scale.call(this)},e.prototype.coord=function(){},e.prototype.annotation=function(){},e.prototype.addGeometry=function(){var t=s.getGeom("point","circle",{plot:this});if(this.points=t,this.options.tooltip&&this.options.tooltip.visible){var e=this.options.tooltip,i=e.showTitle,r=e.titleField;this.extractTooltip(),this.setConfig("tooltip",n.__assign({showTitle:i,title:i?r:void 0},this.options.tooltip))}this.options.label&&this.label(),this.setConfig("geometry",t)},e.prototype.label=function(){var t=this.options;if(!1!==t.label.visible){var e=h.getComponent("label",n.__assign(n.__assign({fields:t.label.field?[t.label.field]:[t.yField]},t.label),{plot:this}));this.points&&(this.points.label=e)}else this.points&&(this.points.label=!1)},e.prototype.animation=function(){t.prototype.animation.call(this),!1===this.options.animation&&(this.points.animate=!1)},e.prototype.parseEvents=function(e){t.prototype.parseEvents.call(this,e||p)},e.prototype.extractTooltip=function(){this.points.tooltip={};var t=this.options.tooltip;t.fields?this.points.tooltip.fields=t.fields:this.points.tooltip.fields=[this.options.xField,this.options.yField],t.formatter&&(this.points.tooltip.callback=t.formatter,this.options.colorField&&this.points.tooltip.fields.push(this.options.colorField))},e}(o.default);i.default=g,a.registerPlotType("scatter",g)},{"../../base/global":392,"../../base/view-layer":395,"../../components/factory":412,"../../geoms/factory":430,"../../util/scale":712,"./components/quadrant":601,"./components/trendline":602,"./event":603,"./theme":606,"@antv/util":803,tslib:894}],606:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});t("../../theme").registerTheme("scatter",{pointStyle:{normal:{},active:function(t){return{stroke:t.stroke||"#000"}},selected:function(t){return{stroke:t.stroke||"#000",lineWidth:t.lineWidth||2}},inactive:function(t){return{fillOpacity:t.fillOpacity||t.opacity||.3}}}})},{"../../theme":669}],607:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getPlotComponents=void 0;var n=t("tslib"),r=n.__importDefault(t("./label/line-label")),a=n.__importDefault(t("./label/area-label")),o={lineLabel:{Ctr:r.default},areaLabel:{Ctr:a.default}};i.getPlotComponents=function(t,e,i){if(t.options[e]&&t.options[e].visible){var n=o[e],r=new n.Ctr(i);return n.padding&&t.paddingController.registerPadding(r,n.padding),r}}},{"./label/area-label":608,"./label/line-label":611,tslib:894}],608:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util");function a(t,e,i){var n=e[0],a=e[e.length-1];r.each(e,(function(e){if(e.x===t)return e.y[i];e.x<t&&e.x>n.x&&(n=e),e.x>t&&e.x<a.x&&(a=e)}));var o=(t-n.x)/(a.x-n.x);return n.y[i]*(1-o)+a.y[i]*o}function o(t,e){var i;for(i=0;i<t.length;i++){var n=t[i];if(n.x===e||n.x>e)break}return i}var s=function(){function t(t){this.destroyed=!1,this.scaleFactor=[],this.view=t.view,this.plot=t.plot;var e=this.getDefaultOptions();this.options=r.deepMix(e,t,{}),this.init()}return t.prototype.init=function(){var t=this;this.container=this.getGeometry().labelsContainer,this.view.on("beforerender",(function(){t.clear(),t.plot.canvas.draw()}))},t.prototype.render=function(){var t=this,e=this.plot.options.stackField,i=this.getGeometry().dataArray,n=[];r.each(i,(function(e,i){var a=t.drawLabel(e,i);a&&(n.push(r.deepMix({},e[0],a)),t.scaleFactor.push(a.scaleFactor))}));var a=[];r.each(n,(function(i,n){var o=t.options,s=o.style,l=o.offsetX,u=o.offsetY,c=t.getFontSize(n),p=t.options.formatter,h=p?p(i._origin[e]):i._origin[e],f=t.container.addShape("text",{attrs:r.deepMix({},{x:i.x+l,y:i.y+u,text:h,fill:i.color,fontSize:c,textAlign:"center",textBaseline:"top"},s),name:"label"});a.push(f)})),this.plot.canvas.draw()},t.prototype.clear=function(){this.container&&this.container.clear()},t.prototype.hide=function(){this.container.set("visible",!1),this.plot.canvas.draw()},t.prototype.show=function(){this.container.set("visible",!0),this.plot.canvas.draw()},t.prototype.destroy=function(){this.container&&this.container.remove(),this.destroyed=!0},t.prototype.getBBox=function(){return this.container.getBBox()},t.prototype.getDefaultOptions=function(){var t=this.plot.theme,e=r.clone(t.label.style);return e.stroke=null,delete e.fill,{offsetX:0,offsetY:0,style:e,autoScale:!0}},t.prototype.drawLabel=function(t,e){var i=function(t){var e=-1/0,i=1/0,n=-1/0;return r.each(t,(function(t){i=Math.min(t.x,i),n=Math.max(t.x,n);var r=Math.abs(t.y[0]-t.y[1]);e=Math.max(e,r)})),{xRange:[i,n],maxHeight:e}}(t),n=i.xRange,a=i.maxHeight,o=n[1]-n[0],s=this.getInterpolatedPoints(n[0],o,t),l=this.getLabelBbox(e),u={xRange:n,aspect:l.width/l.height,data:s,justTest:!0},c=this.bisection(12,a,this.testFit,u,.01,100);if(null!==c){u.justTest=!1;var p=this.testFit(u);return p.x=p.x,p.y=p.y0+(p.y1-p.y0)/2,p.scaleFactor=c/l.height*.2,p}},t.prototype.getInterpolatedPoints=function(t,e,i){for(var n=[],r=t;r<e;r+=2){var o=a(r,i,0),s=a(r,i,1);n.push({x:r,y:[o,s]})}return n},t.prototype.bisection=function(t,e,i,n,r,a){for(var o=0;o<a;o++){var s=(t+e)/2,l=n;l.height=s,l.width=s*l.aspect;var u=i(l);if(u&&(e-t)/2<r)return s;u?t=s:e=s}return null},t.prototype.testFit=function(t){for(var e=t.xRange,i=t.width,n=t.height,r=t.data,a=t.justTest,s=0;s<r.length;s++){var l=r[s].x,u=l+i;if(u>e[1])break;for(var c=o(r,u),p=-1/0,h=null,f=1/0,d=s;d<c;d++){var g=r[d].y[1],v=r[d].y[0];if(v<f&&(f=v),g>p&&(p=g,h=v),f-p<n)break}if(f-p>=n)return!!a||{x:l,y0:p,y1:h,width:i,height:n}}return!1},t.prototype.getLabelBbox=function(t){var e=r.clone(this.plot.theme.label.textStyle);e.fontSize=12;var i=this.container.addShape("text",{attrs:n.__assign({text:t,x:0,y:0},e)}),a=i.getBBox();return i.remove(),a},t.prototype.getGeometry=function(){return r.find(this.view.geometries,(function(t){return"area"===t.type}))},t.prototype.getFontSize=function(t){return this.options.autoScale?12*this.scaleFactor[t]:12},t}();i.default=s},{"@antv/util":803,tslib:894}],609:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../../../../components/label/base"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.sortLabels=function(t,e){var i=[];return e.length>0&&i.push(e.shift()),e.length>0&&i.push(e.pop()),i.push.apply(i,e),i},e}(n.__importDefault(t("../../../area/component/label/area-point-auto")).default);i.default=a,r.registerLabelComponent("stackedArea-point-auto",a)},{"../../../../components/label/base":414,"../../../area/component/label/area-point-auto":452,tslib:894}],610:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../../../../components/label/base"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(n.__importDefault(t("../../../area/component/label/area-point")).default);i.default=a,r.registerLabelComponent("stackedArea-point",a)},{"../../../../components/label/base":414,"../../../area/component/label/area-point":453,tslib:894}],611:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getShapeInfo=function(t){var e=t.get("origin").points,i=e[e.length-1],n=t.attr("stroke"),a=this.plot.options.stackField,o=t.get("origin").data[0][a],s=r.reduce(i.y,(function(t,e){return t+e}),0)/r.size(i.y);return{x:i.x,y:s,color:n,name:o}},e}(n.__importDefault(t("../../../line/component/label/line-label")).default);i.default=a},{"../../../line/component/label/line-label":550,"@antv/util":803,tslib:894}],612:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="stackedArea",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":613,"@antv/util":803,tslib:894}],613:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importDefault(t("../area/layer")),s=t("./component");t("./component/label/area-point"),t("./component/label/area-point-auto"),t("./theme");var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.plotComponents=[],e.type="stackedArea",e.baseType="area",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{label:{visible:!1,type:"area"}})},e.prototype.beforeInit=function(){var e=r.get(this.options,["label","visible"]),i=r.get(this.options,["label","type"]),n=this.options;e&&("line"===i&&(n.lineLabel=this.options.label),"area"===i&&(n.areaLabel=this.options.label)),t.prototype.beforeInit.call(this)},e.prototype.getColorScale=function(){var t=this.options.stackField;return this.view.getScaleByField(t)},e.prototype.label=function(){var t=this.options.label;if(t&&!1===t.visible)return this.line&&(this.line.label=!1),this.point&&(this.point.label=!1),void(this.area.label=!1)},e.prototype.adjustArea=function(t){t.adjust=[{type:"stack"}]},e.prototype.adjustLine=function(t){t.adjust=[{type:"stack"}]},e.prototype.adjustPoint=function(t){t.adjust=[{type:"stack"}]},e.prototype.afterRender=function(){this.renderPlotComponents(),this.options.responsive=!1,t.prototype.afterRender.call(this)},e.prototype.geometryTooltip=function(){this.area.tooltip={};var t=this.options.tooltip;t.fields&&(this.area.tooltip.fields=t.fields),t.formatter&&(this.area.tooltip.callback=t.formatter,t.fields||(this.area.tooltip.fields=[this.options.xField,this.options.yField,this.options.stackField]))},e.prototype.renderPlotComponents=function(){var t=this;r.each(["areaLabel","lineLabel"],(function(e){var i=n.__assign({view:t.view,plot:t},t.options[e]),r=s.getPlotComponents(t,e,i);r&&(r.render(),t.plotComponents.push(r))}))},e}(o.default);i.default=l,a.registerPlotType("stackedArea",l)},{"../../base/global":392,"../area/layer":456,"./component":607,"./component/label/area-point":610,"./component/label/area-point-auto":609,"./theme":614,"@antv/util":803,tslib:894}],614:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../../theme"),r=t("../area/theme");n.registerTheme("stackedArea",r.DEFAULT_AREA_THEME)},{"../../theme":669,"../area/theme":457}],615:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../../../components/label/base"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.shouldInShapeLabels=function(t){return!0},e}(n.__importDefault(t("../../bar/component/label-auto")).default);i.default=a,r.registerLabelComponent("stacked-bar-auto",a)},{"../../../components/label/base":414,"../../bar/component/label-auto":460,tslib:894}],616:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../../../components/label/base"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.adjustLabel=function(t,e){if(this.options.adjustPosition){var i=t.getBBox();this.getElementShapeBBox(e).maxX<=i.maxX&&t.set("visible",!1)}},e}(n.__importDefault(t("../../bar/component/label")).default);i.default=a,r.registerLabelComponent("stacked-bar",a)},{"../../../components/label/base":414,"../../bar/component/label":461,tslib:894}],617:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="stackedBar",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":618,"@antv/util":803,tslib:894}],618:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importDefault(t("../bar/layer"));t("./theme"),t("./component/label"),t("./component/label-auto");var s=t("../../util/view"),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stackedBar",e.baseType="bar",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{xAxis:{visible:!0,autoRotateTitle:!1,grid:{visible:!0},line:{visible:!1},tickLine:{visible:!0},label:{visible:!0,autoRotate:!0,autoHide:!0},title:{visible:!0,spacing:12}},yAxis:{visible:!0,autoRotateTitle:!0,grid:{visible:!1},line:{visible:!1},tickLine:{visible:!1},label:{visible:!0,autoRotate:!0,autoHide:!0},title:{visible:!1,spacing:12}},legend:{visible:!0,position:"top-left",offsetY:0}})},e.prototype.getColorScale=function(){var t=this.options.stackField;return this.view.getScaleByField(t)},e.prototype.adjustBar=function(t){t.adjust=[{type:"stack"}]},e.prototype.renderLabel=function(){var t=this.config.scales,e=this.options,i=e.label,r=t[e.xField];if(null==i?void 0:i.visible){var a=s.getGeometryByType(this.view,"interval");this.doRenderLabel(a,n.__assign({type:"stacked-bar",formatter:r.formatter&&function(t){return r.formatter(t)}},this.options.label))}},e.prototype.geometryTooltip=function(){this.bar.tooltip={};var t=this.options.tooltip;t.fields&&(this.bar.tooltip.fields=t.fields),t.formatter&&(this.bar.tooltip.callback=t.formatter,t.fields||(this.bar.tooltip.fields=[this.options.xField,this.options.yField,this.options.stackField]))},e}(o.default);i.default=l,a.registerPlotType("stackedBar",l)},{"../../base/global":392,"../../util/view":715,"../bar/layer":464,"./component/label":616,"./component/label-auto":615,"./theme":619,"@antv/util":803,tslib:894}],619:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../../theme"),r=t("../bar/theme");n.registerTheme("stackedBar",r.DEFAULT_BAR_THEME)},{"../../theme":669,"../bar/theme":465}],620:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../../../components/label/base"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.shouldInShapeLabels=function(t){return!0},e}(n.__importDefault(t("../../column/component/label-auto")).default);i.default=a,r.registerLabelComponent("stacked-column-auto",a)},{"../../../components/label/base":414,"../../column/component/label-auto":486,tslib:894}],621:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../../../components/label/base"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.adjustLabel=function(t,e){if(this.options.adjustPosition){var i=t.getBBox(),n=this.getElementShapeBBox(e);(n.height<i.height||n.width<i.width)&&t.hide()}},e}(n.__importDefault(t("../../column/component/label")).default);i.default=a,r.registerLabelComponent("stacked-column",a)},{"../../../components/label/base":414,"../../column/component/label":487,tslib:894}],622:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="stackedColumn",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":623,"@antv/util":803,tslib:894}],623:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importDefault(t("../../components/connected-area")),s=n.__importDefault(t("../column/layer"));t("./theme"),t("./component/label"),t("./component/label-auto");var l=t("../../util/view"),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stackedColumn",e.baseType="column",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{legend:{visible:!0,position:"right-top"},label:{visible:!1,position:"middle",offset:0,adjustColor:!0},connectedArea:{visible:!1,triggerOn:"mouseenter"}})},e.prototype.init=function(){this.options.connectedArea.visible&&(this.options.tooltip.crosshairs=null),t.prototype.init.call(this)},e.prototype.afterRender=function(){var e=this.options;e.connectedArea.visible&&(this.connectedArea=new o.default(n.__assign({view:this.view,field:e.stackField,animation:!1!==e.animation},e.connectedArea))),t.prototype.afterRender.call(this)},e.prototype.getColorScale=function(){var t=this.options.stackField;return this.view.getScaleByField(t)},e.prototype.adjustColumn=function(t){t.adjust=[{type:"stack"}]},e.prototype.renderLabel=function(){var t=this.config.scales,e=this.options,i=e.label,r=t[e.yField];if(i&&i.visible){var a=l.getGeometryByType(this.view,"interval");this.doRenderLabel(a,n.__assign({type:"stacked-column",formatter:r.formatter&&function(t){return r.formatter(t)}},this.options.label))}},e.prototype.geometryTooltip=function(){this.column.tooltip={};var t=this.options.tooltip;t.fields&&(this.column.tooltip.fields=t.fields),t.formatter&&(this.column.tooltip.callback=t.formatter,t.fields||(this.column.tooltip.fields=[this.options.xField,this.options.yField,this.options.stackField]))},e}(s.default);i.default=u,a.registerPlotType("stackedColumn",u)},{"../../base/global":392,"../../components/connected-area":409,"../../util/view":715,"../column/layer":490,"./component/label":621,"./component/label-auto":620,"./theme":624,"@antv/util":803,tslib:894}],624:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../../theme"),r=t("../column/theme");n.registerTheme("stackedColumn",r.DEFAULT_COLUMN_THEME)},{"../../theme":669,"../column/theme":491}],625:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="stackedRose",t.prototype.createLayers.call(this,i)},e.prototype.getRadiusScale=function(){return this.layers[0].getRadiusScale()},e.prototype.getAngleScale=function(){return this.layers[0].getAngleScale()},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":626,"@antv/util":803,tslib:894}],626:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stackedRose",e.baseType="rose",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{xAxis:{visible:!0,line:{visible:!1},tickLine:{visible:!1},grid:{visible:!0,alignTick:!1,style:{lineWidth:.5}},label:{offset:5,autoRotate:!0}},yAxis:{visible:!1}})},e.prototype.getColorScale=function(){var t=this.options.stackField;return this.view.getScaleByField(t)},e.prototype.adjustRoseAdjust=function(){return[{type:"stack"}]},e.prototype.geometryTooltip=function(){this.rose.tooltip={};var t=this.options.tooltip;t.fields&&(this.rose.tooltip.fields=t.fields),t.formatter&&(this.rose.tooltip.callback=t.formatter,t.fields||(this.rose.tooltip.fields=[this.options.radiusField,this.options.categoryField,this.options.stackField]))},e}(n.__importDefault(t("../rose/layer")).default);i.default=o,a.registerPlotType("stackedRose",o)},{"../../base/global":392,"../rose/layer":600,"@antv/util":803,tslib:894}],627:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("./layer"),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="step-line",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=a.StepLineLayer.getDefaultOptions,e}(n.__importDefault(t("../../base/plot")).default);i.default=o},{"../../base/plot":394,"./layer":628,"@antv/util":803,tslib:894}],628:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.StepLineLayer=void 0;var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../line/layer")),o=t("../../base/global"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="step-line",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{step:"hv"})},e}(a.default);i.StepLineLayer=s,o.registerPlotType("step-line",s)},{"../../base/global":392,"../line/layer":558,"@antv/util":803,tslib:894}],629:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("../../../util/common");function a(t,e,i,n){for(var r=n.addShape("text",{attrs:{text:"...",x:0,y:0,fontSize:e}}),a=r.getBBox().width,o=n.addShape("text",{attrs:{text:"",x:0,y:0,fontSize:e}}),s="",l=i-a,u=0;u<t.length;u++){var c=t[u];if(o.attr("text",s+=c),o.getBBox().width>=l){var p=s.substr(0,s.length-1);if(p.length>0)return p+"..."}}return o.remove(),r.remove(),s}var o=function(){function t(t){this.destroyed=!1,this.view=t.view,this.plot=t.plot;var e=this.getDefaultOptions();this.options=n.deepMix(e,t,{}),this.init()}return t.prototype.init=function(){var t=this;this.container=this.getGeometry().labelsContainer,this.view.on("beforerender",(function(){t.clear(),t.plot.canvas.draw()}))},t.prototype.render=function(){var t=this,e=this.getGeometry().elements;n.each(e,(function(e){var i=e.shape,r=i.get("origin").data,a=function(t,e){return!t.children||t.depth>=e}(r,t.plot.options.maxLevel);if(r.showLabel){var o=n.clone(t.options.style),s=t.getPosition(i,a),l=t.options.formatter,u=l?l(r.name):r.name,c=t.getTextBaseLine(a),p=t.container.addShape("text",{attrs:n.deepMix({},o,{x:s.x,y:s.y,text:u,fill:"black",textAlign:"center",textBaseline:c,fontWeight:a?300:600}),name:"label"});t.adjustLabel(p,i,a)}}))},t.prototype.clear=function(){this.container&&this.container.clear()},t.prototype.hide=function(){this.container.set("visible",!1),this.plot.canvas.draw()},t.prototype.show=function(){this.container.set("visible",!0),this.plot.canvas.draw()},t.prototype.destroy=function(){this.container&&this.container.remove(),this.destroyed=!0},t.prototype.getBBox=function(){return this.container.getBBox()},t.prototype.getPosition=function(t,e){var i=t.getBBox(),n=0,r=0;return e?(n=i.minX+i.width/2,r=i.minY+i.height/2):(n=i.x+i.width/2,r=i.y+4),{x:n,y:r}},t.prototype.getTextBaseLine=function(t){return t?"middle":"top"},t.prototype.adjustLabel=function(t,e,i){i?this.adjustLeafLabel(t,e):this.adjustParentLabel(t,e)},t.prototype.adjustLeafLabel=function(t,e){var i=e.getBBox(),o=t.getBBox(),s=n.clone(t.attr("text")),l=Math.max(t.attr("fontSize")-2,8),u=i.x+i.width/2,c=i.y+i.height/2;t.attr({x:u,y:c,textAlign:"center",textBaseline:"middle",lineHeight:l,fontSize:l});var p=i.width-8;if(o.width>i.width&&o.height>i.height)t.attr("text","");else if(p<l)t.attr("text","");else if(o.width>i.width){var h=function(t,e,i){var n=t.attr("fontSize"),a=t.attr("text"),o=i.addShape("text",{attrs:{text:"",x:0,y:0,fontSize:n}}),s=a.split("\n").map((function(t){for(var i="",n=t.split(""),a=[],s=0;s<n.length;s++){var l=n[s];if(o.attr("text",i+=l),o.getBBox().width-1>e){if(0===s)break;a.push(s),i=""}}return r.breakText(n,a)}));return o.remove(),s.join("\n")}(t,p,this.container);if(t.attr({lineHeight:t.attr("fontSize"),text:h}),t.getBBox().height>i.height){var f=a(s,l,p,this.container);t.attr("text",f)}}},t.prototype.adjustParentLabel=function(t,e){var i=e.getBBox().width-8;if(t.getBBox().width>i){var n=a(t.attr("text"),t.attr("fontSize"),i,this.container);t.attr("text",n)}},t.prototype.getDefaultOptions=function(){var t=this.plot.theme.label.style;return{offsetX:0,offsetY:0,style:n.clone(t)}},t.prototype.getGeometry=function(){return n.find(this.view.geometries,(function(t){return"polygon"===t.type}))},t}();i.default=o},{"../../../util/common":674,"@antv/util":803}],630:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.onEvent=i.EVENT_MAP=void 0;var n=t("@antv/util"),r=t("../../util/event");Object.defineProperty(i,"EVENT_MAP",{enumerable:!0,get:function(){return r.EVENT_MAP}}),Object.defineProperty(i,"onEvent",{enumerable:!0,get:function(){return r.onEvent}});var a=r.getEventMap({rect:"polygon",breadcrumb:"breadcrumb"});n.assign(r.EVENT_MAP,a)},{"../../util/event":677,"@antv/util":803}],631:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="treemap",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":635,"@antv/util":803,tslib:894}],632:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.rollingUp=i.drillingDown=void 0;var n=t("@antv/util"),r=t("../../../util/g-util"),a=[1,0,0,0,1,0,0,0,1],o="easeQuadInOut";function s(t,e){var i=t.getShapes(),r=[];return n.each(i,(function(t){var i=e.addShape("path",{attrs:n.deepMix({},t.attrs,{capture:!1})});r.push(i)})),r}function l(t){var e=t.coordinateBBox;return{minX:e.minX,minY:e.minY,centerX:(e.maxX-e.minX)/2,centerY:(e.maxY-e.minY)/2,width:e.width,height:e.height}}function u(t){var e=t.attr("path"),i=e[0][1],n=e[0][2],r=e[1][1],a=e[2][2];return{minX:i,minY:a,centerX:(r-i)/2,centerY:(n-a)/2,width:Math.abs(r-i),height:Math.abs(n-a)}}function c(t){t.labelsContainer.set("visible",!1)}function p(t){t.labelsContainer.set("visible",!0)}i.drillingDown=function(t,e,i){var h=u(t),f=l(e),d=f.width/h.width,g=f.height/h.height,v=(f.minX-h.minX)*d,y=(f.minY-h.minY)*g,m=r.transform([["s",d,g],["t",v,y]]),b=e.geometries[0];c(b);var x=e.backgroundGroup.addGroup();x.set("zIndex",-100),x.setClip({type:"rect",attrs:{x:f.minX,y:f.minY,width:f.width,height:f.height}});var _=s(b,x);b.container.set("visible",!1),e.canvas.draw(),i(),window.setTimeout((function(){n.each(_,(function(t,i){0===i?t.animate({matrix:m},400,o,(function(){x.remove(),e.canvas.draw()})):t.animate(r.transform,400)})),c(b=e.geometries[0]);var t=b.getShapes();n.each(t,(function(t){t.attr("opacity",0),t.animate({opacity:1},400,o)}));var i=b.container;i.stopAnimate(),i.set("visible",!0),i.attr("matrix",n.clone(a)),r.groupTransform(i,[["s",h.width/f.width,h.height/f.height],["t",h.minX,h.minY]]);var s=n.clone(a);b.container.animate({matrix:s},400,o,(function(){p(b)})),e.canvas.draw()}),16)},i.rollingUp=function(t,e,i){var h=e.geometries[0];c(h);var f=h.container;f.attr("matrix",n.clone(a));var d=e.backgroundGroup.addGroup();d.set("zIndex",-100);var g=s(h,d);f.set("visible",!1),e.canvas.draw(),i(),c(h=e.geometries[0]),f=h.container;var v=u(function(t,e){var i;return n.each(t,(function(t){t.get("origin").data.name===e&&(i=t)})),i}(h.getShapes(),t)),y=l(e);f.get("parent").get("clipShape")||f.setClip({type:"rect",attrs:{x:y.minX,y:y.minY,width:y.width,height:y.height}}),function(t,e,i,a){var s=i.width/a.width,l=i.height/a.height,u=r.transform([["s",s,l],["t",i.minX,i.minY]]);t.animate({matrix:u},400,o,(function(){t.remove()})),n.each(e,(function(t){t.animate({opacity:0},400,o)}))}(d,g,v,y);var m=y.width/v.width,b=y.height/v.height,x=(y.minX-v.minX)*m,_=(y.minY-v.minY)*b,M=r.transform([["s",m,b],["t",x,_]]);f.setMatrix(M),f.set("visible",!0),f.animate({matrix:a},400,o,(function(){p(h)}))}},{"../../../util/g-util":679,"@antv/util":803}],633:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importDefault(t("../../../components/breadcrumb")),a=n.__importDefault(t("../../../interaction/base")),o=n.__importDefault(t("../../../util/bbox")),s=t("@antv/util"),l=t("./animation"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.getInteractionRange=function(t,e){var i,r=(void 0===(i=e)&&(i={}),n.__assign({x:0,y:0,startNode:{name:"root"},itemWidth:100,itemHeight:30,padding:[0,0,0,0]},i)),a=r.padding,s=a[0],l=a[1];if(t)return new o.default(t.minX,t.maxY-r.itemHeight-s-l,t.width,r.itemHeight+s+l)},e.prototype.start=function(t){var e=this,i=t.data.data;i.children&&(this.parentNode={color:t.target.attr("fill"),shape:t.target,data:{name:s.clone(this.currentNode.name),value:s.clone(this.currentNode.value)},depth:s.clone(this.currentDepth)},this.currentDepth++,l.drillingDown(t.target,this.view,(function(){e.update(i)})))},e.prototype.update=function(t){s.hasKey(this.cache,t.name)||(this.cache[t.name]=t);var e=this.plot.getTreemapData(t,t.depth);this.view.changeData(e),this.adjustScale(this.currentDepth),this.currentNode=t,this.render()},e.prototype.render=function(){if(this.breadcrumb){var t=this.getItems();this.breadcrumb.update({items:t}),this.breadcrumb.render(),this.layout()}else this.initGeometry(),this.cache={},this.saveOriginMapping(),this.container=this.plot.canvas.addGroup(),this.startNode||(this.startNode={name:"root"}),"root"===this.startNode.name?(this.startNodeName=s.hasKey(this.plot.options.data,"name")?this.plot.options.data.name:"root",this.currentNode=this.plot.options.data,this.currentDepth=1):(this.startNodeName=this.startNode.name,this.currentNode=this.startNode),this.y=this.view.coordinateBBox.maxY+10,this.breadcrumb=new r.default({container:this.container,x:0,y:this.y,items:this.getItems()}),this.breadcrumb.init(),this.breadcrumb.render(),this.plot.canvas.draw(),this.layout();this.onInteraction()},e.prototype.clear=function(){},e.prototype.layout=function(){var t=this.container.getBBox().width,e=(this.plot.width-t)/2;this.breadcrumb.update({x:e,y:this.y}),this.breadcrumb.render()},e.prototype.getItems=function(){var t=[];if(this.currentNode.name&&this.currentNode.name===this.startNodeName){var e=this.getRootItem();t.push(e)}else{t=[];var i=[];this.findParent(this.currentNode,i),t.push(this.getRootItem()),s.each(i,(function(e,i){t.push({key:String(i+2),text:e.name,data:e})})),t.push({key:String(i.length+2),text:this.currentNode.name,data:this.currentNode})}return t},e.prototype.findParent=function(t,e){t.parent&&(s.hasKey(this.cache,t.parent.name)?e.push(this.cache[t.parent.name]):e.push(t.parent),this.findParent(t.parent,e))},e.prototype.onInteraction=function(){var t=this;this.container.on("click",(function(e){var i=e.target.get("parent");if(i&&"item-group"===i.get("class")){var n=i.get("data");if(n.data)if(n.text===t.startNodeName){t.currentDepth-1==1?l.rollingUp(t.currentNode.name,t.view,(function(){t.updateRoot(n)})):t.updateRoot(n),t.currentDepth=1}else{if(t.currentNode===n.data)return;var r=s.clone(t.currentDepth);t.currentDepth=parseInt(n.key),r-1===t.currentDepth?l.rollingUp(t.currentNode.name,t.view,(function(){t.update(n.data)})):t.update(n.data)}}}))},e.prototype.getRootItem=function(){var t=this.plot.options.data;return{key:"1",text:s.hasKey(t,"name")?t.name:"root",data:this.plot.rootData}},e.prototype.saveOriginMapping=function(){var t=this.plot.options,e={field:t.colorField,values:t.colors};this.originMapping=e},e.prototype.adjustScale=function(t){var e=this.view;if(this.mapping&&s.hasKey(this.mapping,String(t))){if((n=s.clone(this.mapping[t])).values&&s.isFunction(n.values)){var i=n.values(this.parentNode,this.currentNode);n.values=i}this.view.geometries[0].color(n.field,n.values)}else{var n=s.clone(this.originMapping);this.view.geometries[0].color(n.field,n.values)}e.render()},e.prototype.initGeometry=function(){this.geometry=this.view.geometries[0];var t=this.view.viewBBox;this.geometry.container.setClip({type:"rect",attrs:{x:t.minX,y:t.minY,width:t.width,height:t.height}})},e.prototype.updateRoot=function(t){this.view.changeData(t.data),this.adjustScale(1),this.currentNode=this.plot.options.data,this.render()},e}(a.default);i.default=u,a.default.registerInteraction("drilldown",u)},{"../../../components/breadcrumb":408,"../../../interaction/base":441,"../../../util/bbox":672,"./animation":632,"@antv/util":803,tslib:894}],634:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.INTERACTION_MAP=void 0;var n=t("tslib").__importDefault(t("./drillDown"));i.INTERACTION_MAP={drilldown:n.default}},{"./drillDown":633,tslib:894}],635:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=n.__importDefault(t("../../base/view-layer")),s=n.__importDefault(t("./layout/squarify")),l=t("./interaction"),u=n.__importStar(t("./event")),c=n.__importDefault(t("./components/label")),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{maxLevel:2,padding:[0,0,0,0],tooltip:{visible:!1,showTitle:!1,showCrosshairs:!1,showMarkers:!1,shared:!1},legend:{visible:!1},xAxis:{visible:!1},yAxis:{visible:!1},xField:"x",yField:"y",label:{visible:!0,adjustPosition:!0,style:{stroke:"rgba(0,0,0,0)",lineWidth:0,fontSize:12}},meta:{x:{nice:!1},y:{nice:!1}},interactions:[{type:"tooltip"}]})},e.prototype.beforeInit=function(){var e=this;t.prototype.beforeInit.call(this);var i=this.options.interactions;i&&r.each(i,(function(t){"drilldown"===t.type&&(e.isDrilldown=!0,e.options.maxLevel=1)}));var n=this.options.data,a=this.getTreemapData(n);this.rootData=a},e.prototype.afterRender=function(){(t.prototype.afterRender.call(this),this.options.label&&this.options.label.visible)&&new c.default(n.__assign({view:this.view,plot:this},this.options.label)).render()},e.prototype.geometryParser=function(){return"polygon"},e.prototype.getTreemapData=function(t,e){var i=this.getViewRange(),n=s.default(t,i.x,i.y,i.width,i.height);this.recursive(n,1);var r=[];return this.getAllNodes(n,r,e),r.sort((function(t,e){return t.depth-e.depth})),this.options.xField="x",this.options.yField="y",r},e.prototype.processData=function(){return this.rootData},e.prototype.coord=function(){},e.prototype.addGeometry=function(){var t=this,e=this.options,i=e.data,n=e.colorField,a=e.color,o=this.getTreemapData(i);this.rootData=o;var s=this.isNested(o);this.rect={type:"polygon",position:{fields:["x","y"]},color:{fields:[n],values:a},style:{fields:["depth"],callback:function(e){var i=t.adjustStyleByDepth(e,s);return r.deepMix({},i,t.options.rectStyle)}},tooltip:{fields:["name","value"]}},this.options.tooltip&&this.options.tooltip.formatter&&(this.rect.tooltip.callback=this.options.tooltip.formatter),this.setConfig("geometry",this.rect)},e.prototype.applyInteractions=function(){var t=this,e=this.options.interactions,i=this.view.interactions;r.each(e,(function(e){var n=l.INTERACTION_MAP[e.type];if(n){var a=new n(r.deepMix({},{view:t.view,plot:t,startEvent:"polygon:click"},e.cfg,n.getInteractionRange(t.layerBBox,e.cfg)));i[e.type]=a}}))},e.prototype.animation=function(){t.prototype.animation.call(this),this.isDrilldown&&(this.rect.animate=!1)},e.prototype.parseEvents=function(){t.prototype.parseEvents.call(this,u)},e.prototype.recursive=function(t,e){var i=this,n=this.options.colorField;r.each(t,(function(t){r.each(t.children,(function(a){if(a.depth=e,e>1&&(a.parent=t),r.hasKey(a,n)||(a[n]=t[n]),a.showLabel=!0,!i.isLeaf(a)){var o=Math.abs(a.y1-a.y0),l=i.getLabelHeight(),u=o/2>l?l:4;a.showLabel=4!==u;var c=s.default(a,a.x0+4,a.y0+u,a.x1-4,a.y1-4);i.fillColorField(c,n,a[n]),i.recursive(c,a.depth+1)}}))}))},e.prototype.getAllNodes=function(t,e,i){var a=this,o=i||this.options.maxLevel,s=this.getViewRange();r.each(t,(function(t){r.hasKey(t,"x0")&&t.depth<=o&&e.push(n.__assign(n.__assign({},t),{x:[t.x0,t.x1,t.x1,t.x0],y:[s.height-t.y1,s.height-t.y1,s.height-t.y0,s.height-t.y0]})),r.hasKey(t,"children")&&a.getAllNodes(t.children,e)}))},e.prototype.fillColorField=function(t,e,i){r.each(t,(function(t){r.hasKey(t,e)||(t[e]=i)}))},e.prototype.getLabelHeight=function(){var t=this.options.label,e=this.getPlotTheme().label.style.fontSize,i=0;if(t&&t.visible){var n=t.style;i=n&&n.fontSize?n.fontSize:e}return i+8},e.prototype.isLeaf=function(t){return!t.children||0===t.children.length},e.prototype.isNested=function(t){if(1===this.options.maxLevel)return!1;for(var e=!1,i=0;i<t.length;i++)if(t[i].children){e=!0;break}return e},e.prototype.adjustStyleByDepth=function(t,e){var i=this.options.maxLevel;return e?1===t?{lineWidth:1,stroke:"black",opacity:t/i}:{lineWidth:1,stroke:"rgba(0,0,0,0.3)",opacity:t/i}:{lineWidth:1,stroke:"rgba(0,0,0,0.9)",opacity:.9}},e}(o.default);i.default=p,a.registerPlotType("treemap",p)},{"../../base/global":392,"../../base/view-layer":395,"./components/label":629,"./event":630,"./interaction":634,"./layout/squarify":638,"@antv/util":803,tslib:894}],636:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.dice=void 0;var n=t("@antv/util");i.dice=function(t,e,i,r,a){var o=r-e,s=t.children,l=t.value;s.sort((function(t,e){return e.value-t.value}));var u=o/l,c=e;n.each(s,(function(t){t.y0=i,t.y1=a,t.x0=c,c+=t.value*u,t.x1=t.x0+t.value*u}))}},{"@antv/util":803}],637:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.slice=void 0;var n=t("@antv/util");i.slice=function(t,e,i,r,a){var o=a-i,s=t.children,l=t.value;s.sort((function(t,e){return e.value-t.value}));var u=o/l,c=i;n.each(s,(function(t){t.x0=e,t.x1=r,t.y0=c,c+=t.value*u,t.y1=t.y0+t.value*u}))}},{"@antv/util":803}],638:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./dice"),r=t("./slice"),a=(1+Math.sqrt(5))/2;i.default=function(t,e,i,o,s){var l=t.children,u=t.value;l.sort((function(t,e){return e.value-t.value}));for(var c,p,h,f,d,g,v,y,m=[],b=0,x=0;b<l.length;){var _=o-e,M=s-i;for(p=c=l[x++].value,h=c,d=c*c*(f=Math.max(M/_,_/M)/(u*a)),v=Math.max(p/d,d/h);x<l.length;x++){if((y=l[x].value)<h&&(h=y),y>p&&(p=y),d=(c+=y)*c*f,(g=Math.max(p/d,d/h))>v){c-=y;break}v=g}var w={value:c,dice:_<M,children:l.slice(b,x)};if(m.push(w),w.dice){var S=u?M*c/u:M;n.dice(w,e,i,o,i+S),u&&(i+=S)}else{var C=u?_*c/u:_;r.slice(w,e,i,e+C,s),u&&(e+=C)}u-=c,b=x}return m}},{"./dice":636,"./slice":637}],639:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../layer"),o=t("../../../../dependents");var s=function(){function t(t){this.textAttrs={},this.view=t.view,this.fields=t.fields,this.formatter=t.formatter,this.textAttrs=r.mix({fill:"#fff",fontSize:12,lineHeight:12,stroke:"rgba(0, 0, 0, 0.45)"},t.style),this._init()}return t.prototype.draw=function(){var t=this;if(this.view&&!this.view.destroyed){var e=r.clone(this.view.getData());this.container=this.view.foregroundGroup.addGroup();var i=this.view.geometries[0].elements.map((function(t){return t.shape}));r.each(i,(function(o,s){if(o.cfg.origin){var l=o.cfg.origin.data,u=o.getBBox(),c=l[a.VALUE_FIELD],p=c;r.isArray(c)&&(p=c[1]-c[0]),p=p>0?"+"+p:p,l[a.IS_TOTAL]&&(p=c[0]-c[1]);var h=p;if(t.formatter){var f=i[s].attr("fill");h=t.formatter(""+p,{_origin:e[s],color:f},s)}var d=t.container.addShape("text",{attrs:n.__assign({text:h,textBaseline:"middle",textAlign:"center",x:(u.minX+u.maxX)/2,y:(u.minY+u.maxY)/2},t.textAttrs),name:"dill-label"});d.getBBox().height>u.height&&d.set("visible",!1)}})),this.view.getCanvas().draw()}},t.prototype.clear=function(){this.container&&this.container.clear()},t.prototype._init=function(){var t=this;this.view.on(o.VIEW_LIFE_CIRCLE.BEFORE_RENDER,(function(){t.clear()})),this.view.on(o.VIEW_LIFE_CIRCLE.AFTER_RENDER,(function(){t.draw()}))},t}();i.default=s},{"../../../../dependents":425,"../../layer":644,"@antv/util":803,tslib:894}],640:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../../column/component/label")),o=t("../../layer"),s=t("../../../../components/label/base"),l=t("../../../../dependents"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.adjustLabel=function(t,e){var i,n,a=e.shape.getBBox(),s=e.getData(),u=s[o.VALUE_FIELD],c=s[this.layer.options.yField],p=r.isArray(u)?u[1]:u,h=this.options.formatter,f=[].concat(e.getModel().mappingData),d=h?f[0]&&f[0]._origin[o.INDEX_FIELD]:0,g=h?h(p,((i={})[l._ORIGIN]=null===(n=f[0])||void 0===n?void 0:n._origin,i.mappingDatum=f[0],i.mappingDatumIndex=0,i.element=e,i.elementIndex=d,i),d):p,v=(a.minY+a.maxY)/2,y="bottom";c<0?(v=a.maxY+2,y="top"):v=a.minY-2,t.attr("y",v),t.attr("text",g),t.attr("textBaseline",y)},e}(a.default);i.default=u,s.registerLabelComponent("waterfall",u)},{"../../../../components/label/base":414,"../../../../dependents":425,"../../../column/component/label":487,"../../layer":644,"@antv/util":803,tslib:894}],641:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../column/event");Object.defineProperty(i,"EVENT_MAP",{enumerable:!0,get:function(){return n.EVENT_MAP}}),Object.defineProperty(i,"onEvent",{enumerable:!0,get:function(){return n.onEvent}})},{"../column/event":488}],642:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util");t("../../../../dependents").registerShape("interval","waterfall",{draw:function(t,e){var i=function(t,e,i){var r=t.style,a=t.defaultStyle,o=t.color,s=n.__assign(n.__assign({},a),r);return o&&(e&&(s.stroke=o),i&&(s.fill=o)),s}(t,!1,!0),a=this.parsePath(function(t){var e=[],i=t[0];e.push(["M",i.x,i.y]);for(var n=1,r=t.length;n<r;n++)e.push(["L",t[n].x,t[n].y]);return e.push(["L",i.x,i.y]),e.push(["z"]),e}(t.points)),o=e.addShape("path",{attrs:n.__assign(n.__assign({},i),{path:a}),name:"interval"}),s=r.get(t.style,"leaderLine");if(s&&s.visible){var l=s.style||{};if(t.nextPoints){var u=[["M",t.points[2].x,t.points[2].y],["L",t.nextPoints[0].x,t.nextPoints[0].y]];u=this.parsePath(u),e.addShape("path",{attrs:n.__assign({path:u,stroke:"#d3d3d3",lineDash:[4,2],lineWidth:1},l),name:"leader-line"})}}return o}})},{"../../../../dependents":425,"@antv/util":803,tslib:894}],643:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="waterfall",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":644,"@antv/util":803,tslib:894}],644:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.INDEX_FIELD=i.IS_TOTAL=i.VALUE_FIELD=void 0;var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global");t("./geometry/shape/waterfall");var o=n.__importDefault(t("../../base/view-layer")),s=t("../../util/scale"),l=t("../../components/factory"),u=n.__importStar(t("./event"));t("./component/label/waterfall-label");var c=n.__importDefault(t("./component/label/diff-label")),p=t("../../util/view"),h={waterfall:"interval"},f={interval:"waterfall"};i.VALUE_FIELD="$$value$$",i.IS_TOTAL="$$total$$",i.INDEX_FIELD="$$index$$";var d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="watarfall",e}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{legend:{visible:!1,position:"bottom"},label:{visible:!0,adjustPosition:!0},diffLabel:{visible:!0},leaderLine:{visible:!0},showTotal:{visible:!0,label:"总计值"},waterfallStyle:{lineWidth:0},tooltip:{visible:!0,shared:!0,showCrosshairs:!1,showMarkers:!1}})},e.prototype.getOptions=function(e){var i=t.prototype.getOptions.call(this,e);return this.adjustLegendOptions(i),this.adjustMeta(i),i},e.prototype.afterInit=function(){t.prototype.afterInit.call(this);var e=this.options;e.diffLabel&&e.diffLabel.visible?this.diffLabel=new c.default({view:this.view,fields:[e.xField,e.yField,i.VALUE_FIELD],formatter:e.diffLabel.formatter,style:e.diffLabel.style}):this.diffLabel&&(this.diffLabel.clear(),this.diffLabel=null)},e.prototype.afterRender=function(){t.prototype.afterRender.call(this);var e=this.options;this.view.on("tooltip:change",(function(t){for(var n=t.items,a=0;a<n.length;a++){var o=n[a],s=r.get(o,"data",{});if(o.name=s[e.xField],o.value=s[e.yField],!o.value&&s[i.IS_TOTAL]){var l=s[i.VALUE_FIELD];o.value=l[0]-l[1]}t.items[a]=o}})),this.renderLabel()},e.prototype.renderLabel=function(){var t=p.getGeometryByType(this.view,"interval");this.options.label&&this.options.label.visible&&this.doRenderLabel(t,n.__assign({type:"waterfall"},this.options.label))},e.prototype.geometryParser=function(t,e){return"g2"===t?h[e]:f[e]},e.prototype.interaction=function(){this.setConfig("interactions",[{type:"tooltip"},{type:"active-region"}])},e.prototype.addGeometry=function(){var t={type:"interval",position:{fields:[this.options.xField,i.VALUE_FIELD]},shape:{values:["waterfall"]}};t.style=this._parseStyle(),t.color=this._parseColor(),this.waterfall=t,this.options.tooltip&&(this.options.tooltip.fields||this.options.tooltip.formatter)&&this.geometryTooltip(),this.setConfig("geometry",t)},e.prototype.processData=function(t){var e,a=[],o=this.options.xField,s=this.options.yField;if(r.map(t,(function(t,e){var o,l=t[s];if(e>0){var u=a[e-1][i.VALUE_FIELD];l=r.isArray(u)?[u[1],t[s]+u[1]]:[u,t[s]+u]}a.push(n.__assign(n.__assign({},t),((o={})[i.VALUE_FIELD]=l,o[i.INDEX_FIELD]=e,o)))})),this.options.showTotal&&this.options.showTotal.visible){var l=r.map(t,(function(t){return t[s]})),u=r.reduce(l,(function(t,e){return t+e}),0);a.push(((e={})[o]=this.options.showTotal.label,e[s]=null,e[i.VALUE_FIELD]=[u,0],e[i.INDEX_FIELD]=a.length,e[i.IS_TOTAL]=!0,e))}return a},e.prototype.scale=function(){var t=this.options,e={};e[t.xField]={type:"cat"},r.has(t,"xAxis")&&s.extractScale(e[t.xField],t.xAxis),e[i.VALUE_FIELD]={},r.has(t,"yAxis")&&s.extractScale(e[i.VALUE_FIELD],t.yAxis),this.setConfig("scales",e)},e.prototype.axis=function(){var t=l.getComponent("axis",{plot:this,dim:"x"}),e=l.getComponent("axis",{plot:this,dim:"y"}),n={};n[this.options.xField]=t,n[i.VALUE_FIELD]=e,this.setConfig("axes",n)},e.prototype.coord=function(){},e.prototype.parseEvents=function(){t.prototype.parseEvents.call(this,u)},e.prototype.geometryTooltip=function(){this.waterfall.tooltip={};var t=this.options.tooltip;t.fields&&(this.waterfall.tooltip.fields=t.fields),t.formatter&&(this.waterfall.tooltip.callback=t.formatter,t.fields||(this.waterfall.tooltip.fields=[this.options.xField,i.VALUE_FIELD]))},e.prototype._parseStyle=function(){var t=this.options.waterfallStyle,e=this.options.leaderLine,i={};return r.isFunction(t)?i.callback=function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return Object.assign({},t.apply(void 0,i),{leaderLine:e})}:i.cfg=n.__assign(n.__assign({},t),{leaderLine:e}),i},e.prototype._parseColor=function(){var t=this,e=this.options,n=this.options,a={fields:[n.xField,n.yField,i.VALUE_FIELD,i.INDEX_FIELD]};if(r.isFunction(e.color))a.callback=e.color;else{var o="#f4664a",s="#30bf78",l="rgba(0, 0, 0, 0.25)";if(r.isString(e.color))o=s=l=e.color;else if(r.isObject(e.color)){var u=e.color,c=u.rising,p=u.falling,h=u.total;o=c,s=p,l=h}a.callback=function(e,i,n,a){return a===t.options.data.length?l||(n[0]>=0?o:s):(r.isArray(n)?n[1]-n[0]:n)>=0?o:s}}return a},e.prototype.adjustLegendOptions=function(t){var e=t.legend;e&&(e.visible=!1)},e.prototype.adjustMeta=function(t){var e=t.meta;if(e){var n=e?e[t.yField]:{};n.alias=n.alias||t.yField,t.meta[i.VALUE_FIELD]=n}},e}(o.default);i.default=d,a.registerPlotType("waterfall",d)},{"../../base/global":392,"../../base/view-layer":395,"../../components/factory":412,"../../util/scale":712,"../../util/view":715,"./component/label/diff-label":639,"./component/label/waterfall-label":640,"./event":641,"./geometry/shape/waterfall":642,"@antv/util":803,tslib:894}],645:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=t("../../base/global"),l=function(t){function e(e,i){return i.renderer="canvas",t.call(this,e,i)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="wordCloud",i.container=this.containerDOM,t.prototype.createLayers.call(this,i)},e}(a.default);i.default=l,s.registerPlotType("wordCloud",o.default)},{"../../base/global":392,"../../base/plot":394,"./layer":646,"@antv/util":803,tslib:894}],646:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/layer")),o=n.__importDefault(t("./word-cloud-tooltips")),s=n.__importDefault(t("./wordcloud2")),l=function(t){function e(e){var i=t.call(this,e)||this;return i._toolTipsAction=function(t,e,n,r){e?(i._toolTips.update({items:[{color:t.color||"red",name:t.word,value:t.weight}],x:n.offsetX,y:n.offsetY}),i._toolTips.show()):i._toolTips.hide(),i._toolTips.render(),i._configHoverAction&&i._configHoverAction(t,e,n,r)},i._configHoverAction=e.onWordCloudHover,i._enableToolTips=r.get(e,"tooltip.visible",!0),i.options=r.deepMix({},{width:400,height:400,enableToolTips:!0},e,{onWordCloudHover:i._enableToolTips?i._toolTipsAction:i._configHoverAction}),i}return n.__extends(e,t),e.prototype.init=function(){t.prototype.init.call(this),this._initToolTips()},e.prototype.render=function(){t.prototype.render.call(this),this._render()},e.prototype._initToolTips=function(){this._toolTips=new o.default({showTitle:!1,visible:!1,parent:this.options.container,follow:!0,inPanel:!1,items:[]}),this._toolTips.init()},e.prototype._render=function(){this._targetCanvas=this.canvas.get("el"),this.options.maskImage?this._handleMaskImage():this._start()},e.prototype._handleMaskImage=function(){var t=this,e=new Image;e.src=this.options.maskImage+"?"+(new Date).getTime(),e.crossOrigin="Anonymous",e.onload=function(){e.naturalHeight+e.naturalWidth===0||e.width+e.height===0?t._start():t._startWithMaskImage(e)},e.onerror=function(){console.error("image %s load failed !!!",t.options.maskImage),t._start()}},e.prototype._start=function(){this._handleG2PlotConfig();var t=this._targetCanvas.getContext("2d"),e=this.canvas.get("width")/this.canvas.get("el").width;t.scale(e,e),s.default(this._targetCanvas,this.options)},e.prototype._handleG2PlotConfig=function(){var t,e,i,n=this.options.wordStyle.fontSize||[10,60],a=this.options.wordStyle.rotation||[-Math.PI/2,Math.PI/2];this.options.wordStyle.active?(t=!0,e=this.options.wordStyle.active.shadowColor||"#333",i=this.options.wordStyle.active.shadowBlur||10):t=!1,this.options=r.deepMix({},this.options,{minFontSize:n[0],maxFontSize:n[1],minRotation:a[0],maxRotation:a[1],active:t,shadowColor:e,shadowBlur:i})},e.prototype._startWithMaskImage=function(t){var e=this._scaleMaskImageCanvas(this._transformWhite2BlackPixels(t)),i=e.maskImageCanvas,n=e.maskImageContext,a=document.createElement("canvas").getContext("2d");a.fillStyle=this.options.backgroundColor||"#fff",a.fillRect(0,0,1,1);for(var o=a.getImageData(0,0,1,1).data,s=n.getImageData(0,0,i.width,i.height),l=n.createImageData(s),u=0;u<s.data.length;u+=4)s.data[u+3]>128?(l.data[u]=o[0],l.data[u+1]=o[1],l.data[u+2]=o[2],l.data[u+3]=o[3]):(l.data[u]=o[0],l.data[u+1]=o[1],l.data[u+2]=o[2],l.data[u+3]=254);n.putImageData(l,0,0),this._targetCanvas.getContext("2d").drawImage(i,0,0),this.options=r.deepMix({},this.options,{clearCanvas:!1}),this._start()},e.prototype._scaleMaskImageCanvas=function(t){var e=document.createElement("canvas");e.width=this.canvas.get("width"),e.height=this.canvas.get("height");var i=e.getContext("2d");return i.imageSmoothingEnabled=!0,i.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height),{maskImageCanvas:e,maskImageContext:i}},e.prototype._transformWhite2BlackPixels=function(t){var e=document.createElement("canvas");e.width=t.width,e.height=t.height;var i=e.getContext("2d");i.drawImage(t,0,0,t.width,t.height);for(var n=i.getImageData(0,0,e.width,e.height),r=0;r<n.data.length;r+=4){var a=n.data[r]+n.data[r+1]+n.data[r+2];n.data[r+3]<128||a>750?(n.data[r]=255,n.data[r+1]=255,n.data[r+2]=255,n.data[r+3]=0):(n.data[r]=0,n.data[r+1]=0,n.data[r+2]=0,n.data[r+3]=255)}return i.putImageData(n,0,0),e},e}(a.default);i.default=l},{"../../base/layer":393,"./word-cloud-tooltips":647,"./wordcloud2":648,"@antv/util":803,tslib:894}],647:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(e){var i=r.deepMix({},e,{itemTpl:'<div data-index={index}>\n <span style="background-color:{color};" class="g2-tooltip-marker"></span>\n {name}<span class="g2-tooltip-value">{value}</span></div>'},e);return t.call(this,i)||this}return n.__extends(e,t),e}(t("../../dependents").HtmlTooltip);i.default=a},{"../../dependents":425,"@antv/util":803,tslib:894}],648:[function(t,e,i){
/*!
* wordcloud2.js
* http://timdream.org/wordcloud2.js/
*
* Copyright 2011 - 2013 Tim Chien
* Released under the MIT license
*/
"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util");window.setImmediate||(window.setImmediate=window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var t=[void 0],e="zero-timeout-message";return window.addEventListener("message",(function(i){if("string"==typeof i.data&&i.data.substr(0,e.length)===e){i.stopImmediatePropagation();var n=parseInt(i.data.substr(e.length),36);t[n]&&(t[n](),t[n]=void 0)}}),!0),window.clearImmediate=function(e){t[e]&&(t[e]=void 0)},function(i){var n=t.length;return t.push(i),window.postMessage(e+n.toString(36),"*"),n}}()||function(t){window.setTimeout(t,0)}),window.clearImmediate||(window.clearImmediate=window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(t){window.clearTimeout(t)});var a=function(){var t=document.createElement("canvas");if(!t||!t.getContext)return!1;var e=t.getContext("2d");return!!e.getImageData&&(!!e.fillText&&(!!Array.prototype.some&&!!Array.prototype.push))}(),o=function(){if(a){for(var t,e,i=document.createElement("canvas").getContext("2d"),n=20;n;){if(i.font=n.toString(10)+"px sans-serif",i.measureText("").width===t&&i.measureText("m").width===e)return n+1;t=i.measureText("").width,e=i.measureText("m").width,n--}return 0}}(),s=function(t){for(var e,i,n=t.length;n;e=Math.floor(Math.random()*n),i=t[--n],t[n]=t[e],t[e]=i);return t},l=function(t,e){if(a){Array.isArray(t)||(t=[t]),t.forEach((function(e,i){if("string"==typeof e){if(t[i]=document.getElementById(e),!t[i])throw"The element id specified is not found."}else if(!e.tagName&&!e.appendChild)throw"You must pass valid HTML elements, or ID of the element."}));var i={data:[],fontFamily:'"Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minFontSize:o,maxFontSize:60,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotateRatio:.5,rotationSteps:1,shuffle:!0,shape:"circle",ellipticity:1,active:!0,animatable:!0,selected:-1,shadowColor:"#333",shadowBlur:10,fontScale:1.2,classes:null,onWordCloudHover:null,onWordCloudClick:null},l=[];if(e)for(var u in e)if("wordStyle"===u)for(var c in e[u])c in i&&(i[c]=e[u][c]);else u in i&&(i[u]=e[u]);if(i.minFontSize<o&&(i.minFontSize=o),i.minFontSize>i.maxFontSize)console.error("minSize cant bigger than maxSize");else{for(var p=0,h=0;h<i.data.length;h++)p<i.data[h].weight&&(p=i.data[h].weight);var f=!1;if("function"!=typeof i.shape)switch(i.shape){case"circle":default:i.shape="circle";break;case"cardioid":i.shape=function(t){return 1-Math.sin(t)},f=!0;break;case"diamond":i.shape=function(t){var e=t%(2*Math.PI/4);return 1/(Math.cos(e)+Math.sin(e))};break;case"square":i.shape=function(t){var e=(t+Math.PI/4)%(2*Math.PI/4);return 1/(Math.cos(e)+Math.sin(e))};break;case"triangle-forward":i.shape=function(t){var e=t%(2*Math.PI/3);return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"triangle-backward":i.shape=function(t){var e=(t+Math.PI)%(2*Math.PI/3);return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"triangle":case"triangle-up":i.shape=function(t){var e=(t+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"triangle-down":i.shape=function(t){var e=(t+5*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"pentagon":i.shape=function(t){var e=(t+.955)%(2*Math.PI/5);return 1/(Math.cos(e)+.726543*Math.sin(e))};break;case"star":i.shape=function(t){var e=(t+.955)%(2*Math.PI/10);return(t+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-e)+3.07768*Math.sin(2*Math.PI/10-e)):1/(Math.cos(e)+3.07768*Math.sin(e))}}i.gridSize=Math.max(Math.floor(i.gridSize),4);var d,g,v,y,m,b,x,_=i.gridSize,M=_-i.maskGapWidth,w=Math.abs(i.maxRotation-i.minRotation),S=Math.min(i.maxRotation,i.minRotation),C=i.rotationSteps;switch(i.color){case"random-dark":x=function(){return W(10,50)};break;case"random-light":x=function(){return W(50,90)};break;default:"function"==typeof i.color&&(x=i.color)}var P=null;"function"==typeof i.classes&&(P=i.classes);var O,T,A=!1,E=[],L=function(t){var e,i,n=t.currentTarget,r=n.getBoundingClientRect();t.touches?(e=t.touches[0].clientX,i=t.touches[0].clientY):(e=t.clientX,i=t.clientY);var a=e-r.left,o=i-r.top,s=Math.floor(a*(n.width/r.width||1)/_),l=Math.floor(o*(n.height/r.height||1)/_);return E&&E[s]&&E[s][l]},I=function(t,e,i,n){n(t?t.id:-1)},D=function(t){var e=L(t);if(O!==e&&(!(T&&e&&e.item)||r.get(e,["item","twiceRender"]))){if(!e)return i.onWordCloudHover(void 0,void 0,t,H),void(i.active&&I(void 0,0,0,H));i.onWordCloudHover(e.item,e.dimension,t,H),i.active&&I(e.item,e.dimension,0,H),O=e}},k=function(t){var e=L(t);e&&(i.onWordCloudClick(e.item,e.dimension,t),t.preventDefault())},B=[],F=function(t){if(B[t])return B[t];var e=8*t,n=e,r=[];for(0===t&&r.push([y[0],y[1],0]);n--;){var a=1;"circle"!==i.shape&&(a=i.shape(n/e*2*Math.PI)),r.push([y[0]+t*a*Math.cos(-n/e*2*Math.PI),y[1]+t*a*Math.sin(-n/e*2*Math.PI)*i.ellipticity,n/e*2*Math.PI])}return B[t]=r,r},j=function(){return i.abortThreshold>0&&(new Date).getTime()-b>i.abortThreshold},R=function(t,e,n){var r=function(t){var e=Math.min(Math.max(i.minFontSize,i.maxFontSize*t/p),i.maxFontSize);return T?e*i.fontScale:e}(e);if(r<=0)return!1;var a=1;r<o&&(a=function(){for(var t=2;t*r<o;)t+=2;return t}());var s=document.createElement("canvas"),l=s.getContext("2d",{willReadFrequently:!0});l.font=i.fontWeight+" "+(r*a).toString(10)+"px "+i.fontFamily;var u=l.measureText(t).width/a,c=Math.max(r*a,l.measureText("m").width,l.measureText("").width)/a,h=u+2*c,f=3*c,d=Math.ceil(h/_),g=Math.ceil(f/_);h=d*_,f=g*_;var v,y=-u/2,m=.4*-c,b=Math.ceil((h*Math.abs(Math.sin(n))+f*Math.abs(Math.cos(n)))/_),x=Math.ceil((h*Math.abs(Math.cos(n))+f*Math.abs(Math.sin(n)))/_),M=x*_,w=b*_;s.setAttribute("width",M),s.setAttribute("height",w),l.scale(1/a,1/a),l.translate(M*a/2,w*a/2),l.rotate(-n),l.font=i.fontWeight+" "+(r*a).toString(10)+"px "+i.fontFamily,l.fillStyle="#000",l.textBaseline="middle",l.fillText(t,y*a,(m+.5*r)*a);try{v=l.getImageData(0,0,M,w).data}catch(t){return!1}if(j())return!1;for(var S,C,P,O=[],A=x,E=[b/2,x/2,b/2,x/2];A--;)for(S=b;S--;){P=_;t:{for(;P--;)for(C=_;C--;)if(v[4*((S*_+P)*M+(A*_+C))+3]){O.push([A,S]),A<E[3]&&(E[3]=A),A>E[1]&&(E[1]=A),S<E[0]&&(E[0]=S),S>E[2]&&(E[2]=S);break t}0}}return{mu:a,occupied:O,bounds:E,gw:x,gh:b,fillTextOffsetX:y,fillTextOffsetY:m,fillTextWidth:u,fillTextHeight:c,fontSize:r}},N=function(e,n,r,a,o,s,u,c,p,h,f){var d=r.fontSize,g=i.color,v=i.classes;if(f){var y=z(h);g=y?y.color:i.color}else g=x?x(a,o,d,s,u):i.color,v=P?P(a,o,d,s,u):i.classes;var m=r.bounds;m[3],m[0],m[1],m[3],m[2],m[0],t.forEach((function(t){if(t.getContext){var y=t.getContext("2d"),m=r.mu;y.save();var b=i.fontWeight+" "+(d*m).toString(10)+"px "+i.fontFamily;y.scale(1/m,1/m),y.font=b,y.fillStyle=g;var x=(e+r.gw/2)*_*m,M=(n+r.gh/2)*_*m;y.translate(x,M),0!==c&&y.rotate(-c),y.textBaseline="middle",i.selected===h&&(y.shadowColor=i.shadowColor,y.shadowBlur=i.shadowBlur),y.fillText(a,r.fillTextOffsetX*m,(r.fillTextOffsetY+.5*d)*m),f||l.push({gx:e,gy:n,info:r,word:a,weight:o,distance:s,theta:u,rotateDeg:c,attributes:p,id:h,color:g}),y.restore()}else{var w=document.createElement("span"),S="";S="rotate("+-c/Math.PI*180+"deg) ",1!==r.mu&&(S+="translateX(-"+r.fillTextWidth/4+"px) scale("+1/r.mu+")");var C={position:"absolute",display:"block",font:i.fontWeight+" "+d*r.mu+"px "+i.fontFamily,left:(e+r.gw/2)*_+r.fillTextOffsetX+"px",top:(n+r.gh/2)*_+r.fillTextOffsetY+"px",width:r.fillTextWidth+"px",height:r.fillTextHeight+"px",lineHeight:d+"px",whiteSpace:"nowrap",transform:S,webkitTransform:S,msTransform:S,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};for(var P in g&&(C.color=g),w.textContent=a,C)w.style[P]=C[P];if(p)for(var O in p)w.setAttribute(O,p[O]);v&&(w.className+=v),t.appendChild(w)}}))},Y=function(e,i,n,r,a){if(!(e>=g||i>=v||e<0||i<0)){if(d[e][i]=!1,n)t[0].getContext("2d").fillRect(e*_,i*_,M,M);A&&(E[e][i]={item:a,dimension:r})}},G=function(e,n,r,a,o,s,l,u){var c=Math.floor(e[0]-n.gw/2),p=Math.floor(e[1]-n.gh/2);n.gw,n.gh;return!!function(t,e,n,r,a){for(var o=a.length;o--;){var s=t+a[o][0],l=e+a[o][1];if(s>=g||l>=v||s<0||l<0){if(!i.drawOutOfBound)return!1}else if(!d[s][l])return!1}return!0}(c,p,0,0,n.occupied)&&(N(c,p,n,r,a,o,e[2],s,l,u,!1),function(e,n,r,a,o){var s,l,u=o.occupied,c=i.drawMask;if(c&&((s=t[0].getContext("2d")).save(),s.fillStyle=i.maskColor),A){var p=o.bounds;l={x:(e+p[3])*_,y:(n+p[0])*_,w:(p[1]-p[3]+1)*_,h:(p[2]-p[0]+1)*_}}for(var h=u.length;h--;){var f=e+u[h][0],d=n+u[h][1];if(!(f>=g||d>=v||f<0||d<0)){var y=z(o.item.id);y&&(o.item.color=y.color),Y(f,d,c,l,o.item)}}c&&s.restore()}(c,p,0,0,n),{gx:c,gy:p,rot:s,info:n})},V=function(t){var e,n,a,o;Array.isArray(t)?(e=t[0],n=t[1]):(e=t.word,n=t.weight,a=t.attributes,o=t.id);var l=r.isNil(t.rotateDeg)?0===i.rotateRatio||Math.random()>i.rotateRatio?0:0===w?S:C>0?S+Math.floor(Math.random()*C)*w/C:S+Math.random()*w:t.rotateDeg,u=R(e,n,l);if(u&&(u.item=t),!u)return!1;if(j())return!1;if(!i.drawOutOfBound){var c=u.bounds;if(c[1]-c[3]+1>g||c[2]-c[0]+1>v)return!1}for(var p=m+1;p--;){var h=F(m-p);i.shuffle&&(h=[].concat(h),s(h));for(var f=0;f<h.length;f++){var d=G(h[f],u,e,n,m-p,l,a,o);if(d)return d}}return null},X=function(e,i,n){if(i)return!t.some((function(t){var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,!0,i,n||{}),!t.dispatchEvent(r)}),this);t.forEach((function(t){var r=document.createEvent("CustomEvent");r.initCustomEvent(e,!0,i,n||{}),t.dispatchEvent(r)}),this)},z=function(t){for(var e=0;e<l.length;e++){var i=l[e];if(l[e].id===t)return i}},H=function(a){if(void 0===a){var o=t[0];if(o.getContext)g=Math.ceil(o.width/_),v=Math.ceil(o.height/_);else{var s=o.getBoundingClientRect();g=Math.ceil(s.width/_),v=Math.ceil(s.height/_)}if(X("wordcloudstart",!0)){var u,c,p;if(y=i.origin?[i.origin[0]/_,i.origin[1]/_]:[g/2,v/(f?4:2)],m=Math.floor(Math.sqrt(g*g+v*v)),d=[],!o.getContext||i.clearCanvas)for(t.forEach((function(t){if(t.getContext){var e=t.getContext("2d");e.fillStyle=i.backgroundColor,e.clearRect(0,0,g*(_+1),v*(_+1)),e.fillRect(0,0,g*(_+1),v*(_+1))}else t.textContent="",t.style.backgroundColor=i.backgroundColor,t.style.position="relative"})),u=g;u--;)for(d[u]=[],c=v;c--;)d[u][c]=!0;else{var h=document.createElement("canvas").getContext("2d");h.fillStyle=i.backgroundColor,h.fillRect(0,0,1,1);var x,M,w=h.getImageData(0,0,1,1).data,S=o.getContext("2d").getImageData(0,0,g*_,v*_).data;for(u=g;u--;)for(d[u]=[],c=v;c--;){M=_;t:for(;M--;)for(x=_;x--;)for(p=4;p--;)if(S[4*((c*_+M)*g*_+(u*_+x))+p]!==w[p]){d[u][c]=!1;break t}!1!==d[u][c]&&(d[u][c]=!0)}S=h=w=void 0}if(i.onWordCloudHover||i.onWordCloudClick){for(A=!0,u=g+1;u--;)E[u]=[];i.onWordCloudHover&&o.addEventListener("mousemove",D),i.onWordCloudClick&&(o.addEventListener("click",k),o.addEventListener("touchstart",k),o.addEventListener("touchend",(function(t){t.preventDefault()})),o.style.webkitTapHighlightColor="rgba(0, 0, 0, 0)"),o.addEventListener("wordcloudstart",(function t(){o.removeEventListener("wordcloudstart",t),o.removeEventListener("mousemove",D),o.removeEventListener("click",k),O=void 0}))}if(i.animatable){var C,P;p=0,0!==i.wait?(C=window.setTimeout,P=window.clearTimeout):(C=window.setImmediate,P=window.clearImmediate);var L=function(e,i){t.forEach((function(t){t.removeEventListener(e,i)}),this)},I=function t(){L("wordcloudstart",t),P(B)};!function(e,i){t.forEach((function(t){t.addEventListener(e,i)}),this)}("wordcloudstart",I);var B=C((function t(){if(p>=i.data.length)return P(B),X("wordcloudstop",!1),void L("wordcloudstart",I);b=(new Date).getTime();var e=V(i.data[p]),n=!X("wordclouddrawn",!0,{item:i.data[p],drawn:e});if(j()||n)return P(B),i.abort(),X("wordcloudabort",!1),X("wordcloudstop",!1),void L("wordcloudstart",I);p++,B=C(t,i.wait)}),i.wait)}else{e.maskImage&&t.forEach((function(t){if(t.getContext){var e=t.getContext("2d");e.fillStyle=i.backgroundColor,e.clearRect(0,0,g*(_+1),v*(_+1)),e.fillRect(0,0,g*(_+1),v*(_+1))}}));for(var F=[],R=0;R<i.data.length;R++){var Y=V(i.data[R]);Y&&F.push(Y)}if(F.length===i.data.length&&!T){for(t.forEach((function(t){if(t.getContext){var e=t.getContext("2d");e.fillStyle=i.backgroundColor,e.clearRect(0,0,g*(_+1),v*(_+1)),e.fillRect(0,0,g*(_+1),v*(_+1))}})),u=g;u--;)for(d[u]=[],c=v;c--;)d[u][c]=!0;T=!0;for(var G=0;G<i.data.length;G++)V(n.__assign(n.__assign({},i.data[G]),{twiceRender:T}))}}}}else if(i.selected!==a&&t[0].getContext){i.selected=a;var z=t[0].getContext("2d");z.fillStyle=i.backgroundColor,z.clearRect(0,0,t[0].width,t[0].height),z.fillRect(0,0,t[0].width,t[0].height);for(var H=0;H<l.length;H++){var W=l[H];(!T||T&&r.get(W,["info","item","twiceRender"]))&&N(W.gx,W.gy,W.info,W.word,W.weight,W.distance,W.theta,W.rotateDeg,W.attributes,W.id,!0)}}};H()}}function W(t,e){return"hsl("+(360*Math.random()).toFixed()+","+(30*Math.random()+70).toFixed()+"%,"+(Math.random()*(e-t)+t).toFixed()+"%)"}};l.isSupported=a,l.minFontSize=o,i.default=l},{"@antv/util":803,tslib:894}],649:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(){function t(t){r.assign(this,t),this.init()}return t.prototype.destroy=function(){this.shape&&this.shape.destroy()},t.prototype.update=function(t,e,i){var n={};if(r.assign(this,t),this.coord=this.view.geometries[0].coordinate,t.value){var a=[1,0,0,0,1,0,this.coord.convert({x:0,y:this.value}).x,0,1];n.matrix=a}if(t.style){var o=this.shape.attrs,s=r.deepMix({},o,t.style);n=r.deepMix({},s,n)}this.shape.stopAnimate(),this.shape.animate(n,e,i)},t.prototype.init=function(){this.coord=this.view.geometries[0].coordinate,this.container=this.view.foregroundGroup.addGroup();var t=this.coord.convert({x:0,y:this.value}).x,e=this.coord.center.y-this.progressSize/2-2,i=this.coord.center.y+this.progressSize/2+2,a=r.deepMix({},{stroke:"grey",lineWidth:1},this.style);this.shape=this.container.addShape("path",{attrs:n.__assign({path:[["M",0,e],["L",0,i]]},a),name:"progress-marker"}),this.shape.move(t,0),this.canvas.draw()},t}();i.default=a},{"@antv/util":803,tslib:894}],650:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.onEvent=i.EVENT_MAP=void 0;var n=t("@antv/util"),r=t("../../util/event");Object.defineProperty(i,"EVENT_MAP",{enumerable:!0,get:function(){return r.EVENT_MAP}}),Object.defineProperty(i,"onEvent",{enumerable:!0,get:function(){return r.onEvent}});var a=r.getEventMap({progress:"interval"});n.assign(r.EVENT_MAP,a)},{"../../util/event":677,"@antv/util":803}],651:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="progress",t.prototype.createLayers.call(this,i)},e.prototype.update=function(t,e){this.layers[0].update(t,e)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":652,"@antv/util":803,tslib:894}],652:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=t("../../geoms/factory"),s=n.__importDefault(t("../tiny-layer")),l=n.__importDefault(t("./component/marker")),u=n.__importStar(t("./event")),c={progress:"interval"},p={interval:"progress"},h=["#55A6F3","#E8EDF3"],f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="progress",e.isEntered=!1,e}return n.__extends(e,t),e.prototype.processProps=function(){var t=this.options;t.data=this.processData();var e={padding:[0,0,0,0],xField:"value",yField:"1",stackField:"type",barSize:t.size?t.size:this.getSize(),barStyle:t.progressStyle,color:this.parseColorProps(t)||h};t=r.mix(t,e)},e.prototype.init=function(){this.processProps(),t.prototype.init.call(this)},e.prototype.beforeInit=function(){var t=this.options.percent;if(!r.isNumber(t))throw new Error("Percent value is required, and the type of percent must be Number.")},e.prototype.update=function(t){var e=this.options;if(r.hasKey(t,"percent")&&(e.percent=t.percent,this.changeData(this.processData())),t.style&&(this.styleUpdateAnimation(t.style),this.updateColorConfigByStyle(t.style)),t.color){var i=void 0;r.isArray(t.color)?(this.options.color=t.color,i=[{fill:t.color[0]},{fill:t.color[1]}]):(this.options.color[0]=t.color,i={fill:t.color}),this.styleUpdateAnimation(i)}t.marker&&(this.updateMarkers(t.marker),this.options.marker=t.marker)},e.prototype.destroy=function(){this.markers&&this.markers.length>0&&(r.each(this.markers,(function(t){t.destroy()})),this.markers=[]),t.prototype.destroy.call(this)},e.prototype.afterRender=function(){var t=this;this.options.marker&&!this.markers&&(this.markers=[],r.each(this.options.marker,(function(e){var i=r.mix({canvas:t.canvas,view:t.view,progressSize:t.options.barSize},e),n=new l.default(i);t.markers.push(n)})));var e=this.view.geometries[0].container,i=e.getBBox(),n=e.addShape("rect",{attrs:{width:i.width,height:i.height,x:i.minX,y:i.minY,fill:"rgba(0,0,0,0)"}});this.canvas.draw(),n.on("mouseenter",(function(e){t.isEntered=!0,t.view.emit("progress:mouseenter",e)})),n.on("mouseleave",(function(e){t.isEntered=!1,t.view.emit("progress:mouseleave",e)})),this.canvas.get("container").addEventListener("mouseleave",(function(e){t.isEntered&&(t.view.emit("progress:mouseleave",e),t.isEntered=!1)}))},e.prototype.geometryParser=function(t,e){return"g2"===t?c[e]:p[e]},e.prototype.coord=function(){this.setConfig("coordinate",{actions:[["transpose"]]})},e.prototype.addGeometry=function(){var t=this.options,e=o.getGeom("interval","main",{positionFields:[t.yField,t.xField],plot:this});e.adjust=[{type:"stack"}],r.has(t,"animation")&&(e.animate=t.animation),this.setConfig("geometry",e)},e.prototype.parseEvents=function(e){e?t.prototype.parseEvents.call(this,e):t.prototype.parseEvents.call(this,u)},e.prototype.parseColorProps=function(t){var e;if(t.color){if(e=r.isFunction(t.color)?t.color(t.percent):t.color,r.isString(e)){var i=r.clone(h);return i[0]=e,i}return e}return t.color},e.prototype.processData=function(){var t=this.options;return[{type:"current",value:t.percent},{type:"rest",value:1-t.percent}]},e.prototype.updateMarkers=function(t){var e=t.length,i=this.getUpdateAnimationOptions();if(r.each(this.markers,(function(n,r){r>e-1?n.destroy():n.update(t[r],i.duration,i.easing)})),this.markers.length<e)for(var n=this.markers.length;n<e;n++){var a=r.deepMix({},{canvas:this.canvas,view:this.view,progressSize:this.options.barSize},t[n]),o=new l.default(a);this.markers.push(o)}},e.prototype.getSize=function(){return this.height>=50?10:4},e.prototype.styleUpdateAnimation=function(t){var e=this.getUpdateAnimationOptions(),i=e.duration,n=e.easing,a=[],o=this.view.geometries;r.each(o,(function(t){if("interval"===t.type){var e=t.elements;r.each(e,(function(t){a.push.apply(a,t.shape)}))}})),r.isArray(t)?r.each(t,(function(t,e){a[e].animate(t,i,n)})):a[0].animate(t,i,n)},e.prototype.getUpdateAnimationOptions=function(){var t=450,e="easeQuadInOut",i=this.options.animation;return i&&i.update&&(i.update.duration&&(t=i.update.duration),i.update.easing&&(e=i.update.easing)),{duration:t,easing:e}},e.prototype.updateColorConfigByStyle=function(t){var e=this;r.isArray(t)?r.each(t,(function(t,i){t.fill&&(e.options.color[i]=t.fill)})):t.fill&&(this.options.color[0]=t.fill)},e}(s.default);i.default=f,a.registerPlotType("progress",f)},{"../../base/global":392,"../../geoms/factory":430,"../tiny-layer":662,"./component/marker":649,"./event":650,"@antv/util":803,tslib:894}],653:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.onEvent=i.EVENT_MAP=void 0;var n=t("@antv/util"),r=t("../../util/event");Object.defineProperty(i,"EVENT_MAP",{enumerable:!0,get:function(){return r.EVENT_MAP}}),Object.defineProperty(i,"onEvent",{enumerable:!0,get:function(){return r.onEvent}});var a=r.getEventMap({ringProgress:"interval"});n.assign(r.EVENT_MAP,a)},{"../../util/event":677,"@antv/util":803}],654:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="ringProgress",t.prototype.createLayers.call(this,i)},e.prototype.update=function(t){this.layers[0].update(t)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":655,"@antv/util":803,tslib:894}],655:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=t("../../geoms/factory"),s=n.__importDefault(t("../progress/layer")),l=n.__importStar(t("./event")),u=["#55A6F3","#E8EDF3"],c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ringProgrsss",e}return n.__extends(e,t),e.prototype.processProps=function(){var t=this.options;t.data=this.processData();var e={padding:[0,0,0,0],xField:"value",yField:"1",stackField:"type",barStyle:t.progressStyle,color:this.parseColorProps(t)||u};t=r.mix(t,e)},e.prototype.coord=function(){var t={type:"theta",cfg:{radius:1,innerRadius:this.getThickness(this.options.size)}};this.setConfig("coordinate",t)},e.prototype.annotation=function(){},e.prototype.addGeometry=function(){var t=this.options;this.ring=o.getGeom("interval","main",{positionFields:[t.yField,t.xField],plot:this}),this.ring.adjust=[{type:"stack"}],this.setConfig("geometry",this.ring)},e.prototype.animation=function(){this.ring.animate={appear:{duration:1e3}}},e.prototype.parseEvents=function(){t.prototype.parseEvents.call(this,l)},e.prototype.getThickness=function(t){var e=this.width,i=this.height,n=Math.min(e,i);return t?1-t/n:n>=60?1-20/n:1-10/n},e}(s.default);i.default=c,a.registerPlotType("ringProgress",c)},{"../../base/global":392,"../../geoms/factory":430,"../progress/layer":652,"./event":653,"@antv/util":803,tslib:894}],656:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.onEvent=i.EVENT_MAP=void 0;var n=t("@antv/util"),r=t("../../util/event");Object.defineProperty(i,"EVENT_MAP",{enumerable:!0,get:function(){return r.EVENT_MAP}}),Object.defineProperty(i,"onEvent",{enumerable:!0,get:function(){return r.onEvent}});n.assign(r.EVENT_MAP,{onAreaClick:"area:click",onAreaDblclick:"area:dblclick",onAreaMousemove:"area:mousemove",onAreaMousedown:"area:mousedown",onAreaMouseup:"area:mouseup",onAreaMouseenter:"area:mouseenter",onAreaMouseleave:"area:mouseleave",onAreaContextmenu:"area:contextmenu",onLineClick:"line:click",onLineDblclick:"line:dblclick",onLineMousemove:"line:mousemove",onLineMousedown:"line:mousedown",onLineMouseup:"line:mouseup",onLineMouseenter:"line:mouseenter",onLineMouseleave:"line:mouseleave",onLineContextmenu:"line:contextmenu"})},{"../../util/event":677,"@antv/util":803}],657:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="tinyArea",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":658,"@antv/util":803,tslib:894}],658:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../../base/global"),a=t("../../geoms/factory"),o=n.__importDefault(t("../tiny-layer")),s=n.__importStar(t("./event")),l={area:"area",line:"line"},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tinyArea",e}return n.__extends(e,t),e.prototype.geometryParser=function(t,e){return l[e]},e.prototype.addGeometry=function(){this.area=a.getGeom("area","mini",{plot:this}),this.setConfig("geometry",this.area),this.line=a.getGeom("line","mini",{plot:this}),this.setConfig("geometry",this.line)},e.prototype.parseEvents=function(){t.prototype.parseEvents.call(this,s)},e}(o.default);i.default=u,r.registerPlotType("tinyArea",u)},{"../../base/global":392,"../../geoms/factory":430,"../tiny-layer":662,"./event":656,tslib:894}],659:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.onEvent=i.EVENT_MAP=void 0;var n=t("@antv/util"),r=t("../../util/event");Object.defineProperty(i,"EVENT_MAP",{enumerable:!0,get:function(){return r.EVENT_MAP}}),Object.defineProperty(i,"onEvent",{enumerable:!0,get:function(){return r.onEvent}});n.assign(r.EVENT_MAP,{onColumnClick:"interval:click",onColumnDblclick:"interval:dblclick",onColumnMousemove:"interval:mousemove",onColumnMousedown:"interval:mousedown",onColumnMouseup:"interval:mouseup",onColumnMouseenter:"interval:mouseenter",onColumnMouseleave:"interval:mouseleave",onColumnContextmenu:"interval:contextmenu"})},{"../../util/event":677,"@antv/util":803}],660:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="tinyColumn",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":661,"@antv/util":803,tslib:894}],661:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../../base/global"),o=t("../../geoms/factory"),s=n.__importDefault(t("../tiny-layer")),l=n.__importStar(t("./event")),u={column:"interval"},c={interval:"column"},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tinyColumn",e}return n.__extends(e,t),e.prototype.init=function(){this.processProps(),t.prototype.init.call(this)},e.prototype.geometryParser=function(t,e){return"g2"===t?u[e]:c[e]},e.prototype.scale=function(){var t={};t[this.options.xField]={type:"cat"},this.setConfig("scales",t)},e.prototype.addGeometry=function(){var t=this.options,e=o.getGeom("interval","main",{positionFields:[t.xField,t.yField],plot:this});this.setConfig("geometry",e)},e.prototype.parseEvents=function(){t.prototype.parseEvents.call(this,l)},e.prototype.processProps=function(){var t={padding:[0,0,0,0],columnSize:this.getSize()};this.options=r.mix(this.options,t)},e.prototype.getSize=function(){var t=this.options,e=this.getColumnNum(t.data,t.xField);return this.width/e*.6},e.prototype.getColumnNum=function(t,e){var i=[];return r.each(t,(function(t){var n=t[e];i.indexOf(n)<0&&i.push(n)})),i.length},e}(s.default);i.default=p,a.registerPlotType("tinyColumn",p)},{"../../base/global":392,"../../geoms/factory":430,"../tiny-layer":662,"./event":659,"@antv/util":803,tslib:894}],662:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../base/view-layer")),o=t("../components/factory");t("../geoms/line/mini");var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.getDefaultOptions=function(){return r.deepMix({},t.getDefaultOptions.call(this),{title:{visible:!1},description:{visible:!1},padding:[0,0,0,0],legend:{visible:!1},xAxis:{visible:!1},yAxis:{visible:!1},tooltip:{visible:!1}})},e.prototype.coord=function(){},e.prototype.addGeometry=function(){},e.prototype.annotation=function(){var t=this,e=this.options,i=[],n={line:{style:{lineWidth:1,stroke:"#66d6a8"}}};r.each(e.guideLine,(function(e){var a=o.getComponent("guideLine",{plot:t,cfg:r.deepMix({},n,e)});i.push(a)})),this.setConfig("annotations",i)},e}(a.default);i.default=s},{"../base/view-layer":395,"../components/factory":412,"../geoms/line/mini":437,"@antv/util":803,tslib:894}],663:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.onEvent=i.EVENT_MAP=void 0;var n=t("@antv/util"),r=t("../../util/event");Object.defineProperty(i,"EVENT_MAP",{enumerable:!0,get:function(){return r.EVENT_MAP}}),Object.defineProperty(i,"onEvent",{enumerable:!0,get:function(){return r.onEvent}});n.assign(r.EVENT_MAP,{onLineClick:"line:click",onLineDblclick:"line:dblclick",onLineMousemove:"line:mousemove",onLineMousedown:"line:mousedown",onLineMouseup:"line:mouseup",onLineMouseenter:"line:mouseenter",onLineMouseleave:"line:mouseleave",onLineContextmenu:"line:contextmenu"})},{"../../util/event":677,"@antv/util":803}],664:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../../base/plot")),o=n.__importDefault(t("./layer")),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.createLayers=function(e){var i=r.deepMix({},e);i.type="tinyLine",t.prototype.createLayers.call(this,i)},e.getDefaultOptions=o.default.getDefaultOptions,e}(a.default);i.default=s},{"../../base/plot":394,"./layer":665,"@antv/util":803,tslib:894}],665:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../../base/global"),a=t("../../geoms/factory"),o=n.__importDefault(t("../tiny-layer")),s=n.__importStar(t("./event")),l={line:"line"},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tinyLine",e}return n.__extends(e,t),e.prototype.geometryParser=function(t,e){return l[e]},e.prototype.addGeometry=function(){this.line=a.getGeom("line","mini",{plot:this}),this.setConfig("geometry",this.line)},e.prototype.parseEvents=function(){t.prototype.parseEvents.call(this,s)},e}(o.default);i.default=u,r.registerPlotType("tinyLine",u)},{"../../base/global":392,"../../geoms/factory":430,"../tiny-layer":662,"./event":663,tslib:894}],666:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.DEFAULT_DARK_THEME=void 0;var n=t("./default");i.DEFAULT_DARK_THEME={backgroundStyle:{fill:"#262626"},defaultColor:"#5B8FF9",width:400,height:400,bleeding:[n.TOP_BLEEDING,24,n.BOTTOM_BLEEDING,24],padding:"auto",title:{padding:[24,24,24,24],fontFamily:"PingFang SC",fontSize:18,fontWeight:"bold",fill:"rgba(255,255,255,0.65)",stroke:"rgba(0,0,0,0.95)",textAlign:"left",textBaseline:"top",lineHeight:20,alignWithAxis:!1},description:{padding:[10,24,n.DESCRIPTION_BOTTOM_MARGIN,24],fontFamily:"PingFang SC",fontSize:12,fill:"rgba(255, 255, 255, 0.65)",stroke:"rgba(0,0,0,0.95)",textAlign:"left",textBaseline:"top",lineHeight:16,alignWithAxis:!1},axis:{y:{visible:!0,position:"left",autoRotateTitle:!0,grid:{visible:!0,line:{style:{stroke:"rgba(255, 255, 255, 0.15)",lineWidth:1,lineDash:null}}},line:{visible:!1,style:{stroke:"rgba(255, 255, 255, 0.45)",lineWidth:1}},tickLine:{visible:!1,style:{stroke:"rgba(255, 255, 255, 0.45)",lineWidth:.5,length:4}},label:{visible:!0,offset:8,autoRotate:!1,autoHide:!0,textStyle:{fill:"rgba(255, 255, 255, 0.45)",fontSize:12}},title:{visible:!1,spacing:12,style:{fill:"rgba(255, 255, 255, 0.65)",fontSize:12,textBaseline:"bottom"}}},x:{visible:!0,position:"bottom",autoRotateTitle:!1,grid:{visible:!1,line:{style:{stroke:"rgba(255, 255, 255, 0.15)",lineWidth:1,lineDash:null}}},line:{visible:!1,style:{stroke:"rgba(255, 255, 255, 0.45)"}},tickLine:{visible:!0,style:{length:4,stroke:"rgba(255, 255, 255, 0.45)",lineWidth:.5}},label:{visible:!0,textStyle:{fill:"rgba(255, 255, 255, 0.65)",fontSize:12},offset:16,autoHide:!0,autoRotate:!0},title:{visible:!1,spacing:12,style:{fill:"rgba(255, 255, 255, 0.65)",fontSize:12}}},circle:{autoRotateTitle:!0,grid:{style:{lineDash:null,lineWidth:1,stroke:"#E3E8EC"}},line:{style:{lineWidth:1,stroke:"#BFBFBF"}},tickLine:{style:{lineWidth:1,stroke:"#bdc8d3",length:4,alignWithLabel:!0}},label:{offset:16,textStyle:{fill:"#a0a4aa",fontSize:12},autoRotate:!0,autoHide:!0},title:{offset:12,style:{fill:"#767b84",fontSize:12}}},radius:{label:{offset:12,textStyle:{fill:"#a0a4aa",fontSize:12}}}},legend:{flipPage:!1,position:"bottom",innerPadding:[16,16,16,16],title:{visible:!1,style:{fill:"#bdc8d3"}},text:{style:{fill:"#bdc8d3"}}},label:{offset:12,textStyle:{fill:"rgba(255, 255, 255, 0.65)"},style:{fill:"rgba(255, 255, 255, 0.65)",lineWidth:1}},components:{tooltip:{domStyles:{"g2-tooltip":{backgroundColor:"rgba(33,33,33, 0.95)",boxShadow:"0px 0px 8px rgba(0,0,0,0.65)",color:"rgba(255, 255, 255, 0.65)"}}}}}},{"./default":667}],667:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.DEFAULT_GLOBAL_THEME=i.BOTTOM_BLEEDING=i.TOP_BLEEDING=i.DESCRIPTION_BOTTOM_MARGIN=i.COLOR_PLATE_20=i.COLOR_PLATE_10=void 0;i.COLOR_PLATE_10=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E8684A","#6DC8EC","#9270CA","#FF9D4D","#269A99","#FF99C3"],i.COLOR_PLATE_20=["#5B8FF9","#BDD2FD","#5AD8A6","#BDEFDB","#5D7092","#C2C8D5","#F6BD16","#FBE5A2","#E8684A","#F6C3B7","#6DC8EC","#B6E3F5","#9270CA","#D3C6EA","#FF9D4D","#FFD8B8","#269A99","#AAD8D8","#FF99C3","#FFD6E7"];var n=t("@antv/util");i.DESCRIPTION_BOTTOM_MARGIN=function(t){return t&&"top"===t.split("-")[0]?12:24},i.TOP_BLEEDING=function(t){var e=t.title&&t.title.visible,i=t.description&&t.description.visible;return e||i?12:24},i.BOTTOM_BLEEDING=function(t){return n.some(t.interactions||[],(function(t){return("slider"===t.type||"scrollbar"===t.type)&&"vertical"!==(t.cfg&&t.cfg.type)}))?8:24},i.DEFAULT_GLOBAL_THEME={width:400,height:400,bleeding:[i.TOP_BLEEDING,24,i.BOTTOM_BLEEDING,24],padding:"auto",defaultColor:"#5B8FF9",colors:i.COLOR_PLATE_10,colors_20:i.COLOR_PLATE_20,title:{padding:[24,24,24,24],fontFamily:"PingFang SC",fontSize:18,fill:"black",textAlign:"left",textBaseline:"top",lineHeight:20,alignWithAxis:!1},description:{padding:[10,24,i.DESCRIPTION_BOTTOM_MARGIN,24],fontFamily:"PingFang SC",fontSize:12,fill:"grey",textAlign:"left",textBaseline:"top",lineHeight:16,alignWithAxis:!1},axis:{y:{visible:!0,position:"left",autoRotateTitle:!0,grid:{visible:!0,line:{style:{stroke:"rgba(0, 0, 0, 0.15)",lineWidth:1,lineDash:[0,0]}}},line:{visible:!1,style:{stroke:"rgba(0, 0, 0, 0.45)",lineWidth:1}},tickLine:{visible:!1,style:{stroke:"rgba(0,0,0,0.45)",lineWidth:.5,length:4}},label:{visible:!0,offset:8,textStyle:{fill:"rgba(0,0,0,0.45)",fontSize:12},autoRotate:!1,autoHide:!0},title:{visible:!1,spacing:12,style:{fill:"rgba(0, 0, 0, 0.65)",fontSize:12,textBaseline:"bottom"}}},x:{visible:!0,position:"bottom",autoRotateTitle:!1,grid:{visible:!1,line:{style:{stroke:"rgba(0, 0, 0, 0.15)",lineWidth:1,lineDash:[0,0]}}},line:{visible:!1,style:{stroke:"rgba(0, 0, 0, 0.45)",lineWidth:1}},tickLine:{visible:!0,style:{length:4,stroke:"rgba(0, 0, 0, 0.45)",lineWidth:.5}},label:{visible:!0,textStyle:{fill:"rgba(0,0,0,0.45)",fontSize:12},offset:16,autoRotate:!0,autoHide:!0},title:{visible:!1,spacing:12,style:{fill:"rgba(0, 0, 0, 0.65)",fontSize:12}}},circle:{autoHideLabel:!1,grid:{line:{style:{lineDash:null,lineWidth:1,stroke:"rgba(0, 0, 0, 0.15)"}}},line:{style:{lineWidth:1,stroke:"rgba(0, 0, 0, 0.45)"}},tickLine:{style:{lineWidth:1,stroke:"rgba(0, 0, 0, 0.45)",length:4,alignWithLabel:!0}},label:{offset:16,textStyle:{fill:"rgba(0,0,0,0.45)",fontSize:12},autoRotate:!0,autoHide:!0},title:{offset:12,style:{fill:"rgba(0, 0, 0, 0.65)",fontSize:12}}},radius:{label:{textStyle:{fill:"rgba(0,0,0,0.45)",fontSize:12}}}},legend:{flipPage:!1,position:"bottom",innerPadding:[16,16,16,16],margin:[0,24,24,24]},label:{offset:12,textStyle:{fill:"#595959"},style:{fill:"#595959",stroke:"#ffffff",lineWidth:2}},tooltip:{"g2-tooltip":{boxShadow:"0px 0px 8px rgba(0,0,0,0.15)"},offset:10},components:{legend:{margin:[0,24,24,24]},tooltipIndicator:{title:{style:{fontSize:14,fill:"#262626"}},line:{style:{opacity:1},inactiveStyle:{opacity:.3}},itemTitle:{style:{fontSize:12,fill:"#8C8C8C",opacity:1},inactiveStyle:{opacity:.3}},itemName:{style:{fontSize:12,fill:"#8C8C8C",opacity:1},inactiveStyle:{opacity:.3}},itemValue:{style:{fontSize:14,fontWeight:"bold",fill:"#595959",opacity:1},inactiveStyle:{opacity:.3}}}}}},{"@antv/util":803}],668:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getGlobalTheme=i.registerGlobalTheme=void 0;var n=t("@antv/util"),r=t("./default"),a=t("./dark"),o={default:r.DEFAULT_GLOBAL_THEME,dark:a.DEFAULT_DARK_THEME};function s(t){void 0===t&&(t="default");var e=o[t.toLowerCase()];return e||(console.warn("error in theme: Can't find the theme named %s. Please register theme first.",t),r.DEFAULT_GLOBAL_THEME)}i.registerGlobalTheme=function(t,e){var i=s();o[t.toLowerCase()]=n.deepMix({},i,e)},i.getGlobalTheme=s},{"./dark":666,"./default":667,"@antv/util":803}],669:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./global");Object.defineProperty(i,"getGlobalTheme",{enumerable:!0,get:function(){return n.getGlobalTheme}}),Object.defineProperty(i,"registerGlobalTheme",{enumerable:!0,get:function(){return n.registerGlobalTheme}});var r=t("./theme");Object.defineProperty(i,"getTheme",{enumerable:!0,get:function(){return r.getTheme}}),Object.defineProperty(i,"registerTheme",{enumerable:!0,get:function(){return r.registerTheme}});var a=t("./utils");Object.defineProperty(i,"convertToG2Theme",{enumerable:!0,get:function(){return a.convertToG2Theme}})},{"./global":668,"./theme":670,"./utils":671}],670:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getTheme=i.registerTheme=i.convertThemeToG2Theme=void 0;var n=t("@antv/util"),r={};function a(t,e){var i={lineStyle:"line.line",columnStyle:"interval.rect",pointStyle:"point.circle"},r={};"area"===t&&(i={areaStyle:"area.area",lineStyle:"area.line",pointStyle:"point.circle"});var a={};return n.each(e,(function(t,e){var o;if(n.has(i,e)){var s=i[e];n.each(t,(function(t,e){n.set(a,s+"."+["normal"===e?"default":"disable"===e?"inactive":e]+".style",t)}))}else r=n.deepMix({},r,((o={})[e]=t,o))})),n.isEmpty(a)||(r=n.deepMix({},r,{geometries:a})),r}i.convertThemeToG2Theme=a,i.registerTheme=function(t,e){r[t.toLowerCase()]=a(t,e)},i.getTheme=function(t){return r[t.toLowerCase()]||{}}},{"@antv/util":803}],671:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.convertToG2Theme=void 0;var n=t("@antv/util");i.convertToG2Theme=function(t){var e=n.clone(t);return e.legend||(e.legend={}),e}},{"@antv/util":803}],672:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/g2/lib/util/bbox"),a=t("@antv/g2/lib/constant");Object.defineProperty(i,"DIRECTION",{enumerable:!0,get:function(){return a.DIRECTION}});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.fromBBoxObject=function(t){return new e(t.x,t.y,t.width,t.height)},e}(r.BBox);i.default=o},{"@antv/g2/lib/constant":237,"@antv/g2/lib/util/bbox":370,tslib:894}],673:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isContrastColorWhite=i.mappingColor=i.arr2rgb=i.toHex=i.rgb2arr=void 0;var n=t("@antv/util");function r(t){var e=0===t.indexOf("#")?t.substr(1):t,i=[];return i.push(parseInt(e.substr(0,2),16)),i.push(parseInt(e.substr(2,2),16)),i.push(parseInt(e.substr(4,2),16)),i}function a(t){var e;return 1===(e=(e=Math.round(t)).toString(16)).length&&(e="0"+t),e}i.rgb2arr=r,i.toHex=a,i.arr2rgb=function(t){return"#"+(a(t[0])+a(t[1])+a(t[2]))},i.mappingColor=function(t,e){var i;return n.each(t,(function(t){var n=t;e>=n.from&&e<n.to&&(i=n.color)})),i},i.isContrastColorWhite=function(t){var e=r(t);return(299*e[0]+587*e[1]+114*e[2])/1e3<128}},{"@antv/util":803}],674:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isMobile=i.isBBoxIntersect=i.sortedLastIndex=i.getLegendShapes=i.getAxisShapes=i.getLegendComponents=i.getAxisComponents=i.breakText=i.isTextUsable=void 0;var n=t("tslib"),r=t("../dependents");i.isTextUsable=function(t){return!!t&&!(!0!==t.visible||"string"!=typeof t.text||!t.text.trim())},i.breakText=function(t,e){var i=n.__spreadArrays(t);return e.forEach((function(t,e){i.splice(t+e,0,"\n")})),i.join("")},i.getAxisComponents=function(t){return t.getComponents().filter((function(t){return t.type===r.COMPONENT_TYPE.AXIS})).map((function(t){return t.component}))},i.getLegendComponents=function(t){return t.getComponents().filter((function(t){return t.type===r.COMPONENT_TYPE.LEGEND})).map((function(t){return t.component}))},i.getAxisShapes=function(t){return t.backgroundGroup.findAll((function(t){if(t.get("name"))return"axis"===t.get("name").split("-")[0]}))},i.getLegendShapes=function(t){return t.foregroundGroup.findAll((function(t){if(t.get("name"))return"legend-item-group"===t.get("name")}))},i.sortedLastIndex=function(t,e){for(var i=t.length;i>0&&!(e>=t[i-1]);)i-=1;return i},i.isBBoxIntersect=function(t,e){return!(t.maxY<e.minY||e.maxY<t.minY)&&!(t.maxX<e.minX||e.maxX<t.minX)},i.isMobile=function(){return!!navigator.userAgent.match(/(Mobile)|(Android)|(WebOS)|(iPhone)|(iPad)/)}},{"../dependents":425,tslib:894}],675:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.transformDataPercentage=void 0;var n=t("tslib"),r=t("@antv/util");i.transformDataPercentage=function(t,e,i){var a=r.groupBy(t,e);a=r.mapValues(a,(function(t){return r.map(t,(function(t){return r.map(i,(function(e){return t[e]}))}))})),a=r.mapValues(a,r.flatten),a=r.mapValues(a,(function(t){return r.map(t,(function(t){var e=Number.parseFloat(t);return!r.isNumber(e)||isNaN(e)?0:e}))}));var o=r.mapValues(a,(function(t){return r.reduce(t,(function(t,e){return t+e}),0)})),s=r.map(t,(function(t){var a=n.__assign(n.__assign({},t),{_origin:t,total:o[t[e]]});return r.each(i,(function(i){a[i]=t[i]/(o[t[e]]||1)})),a}));return r.each(r.groupBy(s,e),(function(t){var e=0;r.each(t,(function(n,a){r.each(i,(function(r,o){(e+n[r]>=1||a===t.length-1&&o===i.length-1&&e>0)&&(n[r]=1-e),e+=n[r]}))}))})),s}},{"@antv/util":803,tslib:894}],676:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.advanceBy=i.getDay=i.getWeek=i.isLastDayOfMonth=i.isLastWeekOfMonth=i.getYearRange=i.getDateRange=i.DAY_MS=void 0;var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("fecha")),o=t("../plots/calendar/constant");function s(t,e){return t.setMilliseconds(t.getMilliseconds()+e),t}i.DAY_MS=864e5,i.getDateRange=function(t){var e=n.__spreadArrays(t).sort((function(t,e){return t.getTime()-e.getTime()}));return[a.default.format(r.head(e),o.FORMATTER),a.default.format(r.last(e),o.FORMATTER)]},i.getYearRange=function(t){var e=t||new Date;return[a.default.format(new Date(e.getFullYear(),0,1),o.FORMATTER),a.default.format(new Date(e.getFullYear(),11,30),o.FORMATTER)]},i.isLastWeekOfMonth=function(t){return t.getMonth()!==s(new Date(t),7*i.DAY_MS).getMonth()},i.isLastDayOfMonth=function(t){return t.getMonth()!==s(new Date(t),i.DAY_MS).getMonth()},i.getWeek=function(t){var e=new Date(t.getFullYear(),0,1);return Math.ceil(((t.getTime()-e.getTime())/i.DAY_MS+e.getDay()+1)/7)},i.getDay=function(t){return t.getDay()},i.advanceBy=s},{"../plots/calendar/constant":476,"@antv/util":803,fecha:881,tslib:894}],677:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.onEvent=i.LAYER_EVENT_MAP=i.CANVAS_EVENT_MAP=i.EVENT_MAP=i.getMobileEventMap=i.getRegionEventMap=i.getEventMap=void 0;var n=t("@antv/util"),r=["click","dblclick","mousemove","mouseenter","mouseleave","mousedown","mouseup","contextmenu"],a=[],o=n.deepMix(u({title:"title",description:"description",breadcrumb:"breadcrumb"}),c("Plot",r));i.CANVAS_EVENT_MAP=o;var s=c("Layer",r);i.LAYER_EVENT_MAP=s;var l=n.deepMix({},u({axis:"axis-label",label:"label",legend:"legend-item"}),c("View",r),p());function u(t){var e={};return n.each(t,(function(t,i){var a="on"+n.upperFirst(i),o=t+":";n.each(r,(function(t){var i=n.upperFirst(t),r=""+o+t;e[""+a+i]=r}))})),e}function c(t,e){var i={};return n.each(e,(function(e){var r=n.upperFirst(e);i["on"+t+r]=e})),i}function p(){var t={};return n.each(a,(function(e){var i=n.upperFirst(e);t["on"+i]=e})),t}i.EVENT_MAP=l,i.onEvent=function(t,e,i){t.view.on(e,(function(e){var n={x:null==e?void 0:e.x,y:null==e?void 0:e.y,clientX:null==e?void 0:e.clientX,clientY:null==e?void 0:e.clientY,target:null==e?void 0:e.target,data:(null==e?void 0:e.data)?e.data.data:null,plot:t,canvas:t.canvas,gEvent:null==e?void 0:e.gEvent};i(n)}))},i.getEventMap=u,i.getRegionEventMap=c,i.getMobileEventMap=p},{"@antv/util":803}],678:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getSuffixFormatter=i.getPrecisionFormatter=i.getNoopFormatter=i.combineFormatter=void 0;var n=t("@antv/util");i.combineFormatter=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e,i,n){return t.reduce((function(t,e){return e(t,i,n)}),e)}},i.getNoopFormatter=function(){return function(t){return t}},i.getPrecisionFormatter=function(t){return function(e){var i=Number(e);return isNaN(i)||n.isNil(t)?e:i.toFixed(t)}},i.getSuffixFormatter=function(t){return function(e){return n.isNil(t)?e:e+" "+t}}},{"@antv/util":803}],679:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.rotate=i.translate=i.move=i.transform=i.groupTransform=void 0;var n=t("@antv/matrix-util"),r=t("@antv/util"),a=t("../dependents");i.groupTransform=function(t,e){var i=n.ext.transform([1,0,0,0,1,0,0,0,1],e);t.setMatrix(i)},i.transform=function(t,e){var i=e?r.clone(e):[1,0,0,0,1,0,0,0,1];return n.ext.transform(i,t)},i.move=function(t,e,i,n){var a=n?r.clone(n):[1,0,0,0,1,0,0,0,1];a[6]=e,a[7]=i,t.setMatrix(a)},i.translate=function(t,e,i){a.Util.translate(t,e,i)},i.rotate=function(t,e){a.Util.rotate(t,e)}},{"../dependents":425,"@antv/matrix-util":717,"@antv/util":803}],680:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getStrokePoints=i.dist2=i.sturges=i.getMean=i.getMedian=i.lineSimplification=i.angleTo=i.sub2D=i.crossProduct3D=i.crossProduct2D=i.dotProduct2D=i.bboxOnRotate=i.minDistBetweenConvexPolygon=i.isPolygonIntersection=i.distBetweenPointLine=i.distBetweenPoints=i.isPointInPolygon=i.getLineIntersect=i.isBetween=i.applyMatrix=void 0;var n=t("@antv/matrix-util"),r=t("@antv/util");function a(t){var e=0;return r.each(t,(function(t){e+=t*t})),Math.sqrt(e)}function o(t,e){return t.x*e.y+t.y*e.x}function s(t,e,i){void 0===i&&(i=1);var r=[t.x,t.y,i];return n.vec3.transformMat3(r,r,e),{x:r[0],y:r[1]}}function l(t,e,i){return t>=e&&t<=i}i.dotProduct2D=o,i.angleTo=function(t,e){var i=a(t),n=a(e),r=o(t,e);return Math.acos(r/i/n)},i.crossProduct2D=function(t,e){var i=a(t),n=a(e),r=o(t,e),s=Math.acos(r/i/n);return i*n*Math.sin(s)},i.crossProduct3D=function(t,e){var i=t.x,n=t.y,r=t.z,a=e.x,o=e.y,s=e.z;return{x:n*s-r*o,y:r*a-i*s,z:i*o-n*a}},i.sub2D=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},i.applyMatrix=s,i.isBetween=l;function u(t,e){for(var i=!1,n=0,r=e.length-1;n<e.length;r=n++){var a=e[n].x,o=e[n].y,s=e[r].x,l=e[r].y;o>t.y!=l>t.y&&t.x<=(s-a)*(t.y-o)/(l-o)+a&&(i=!i)}return i}function c(t){return t*t}function p(t,e){return Math.sqrt(c(t.x-e.x)+c(t.y-e.y))}function h(t,e,i){var n=p(e,i);if(0===n)return p(t,e);var r=((t.x-e.x)*(i.x-e.x)+(t.y-e.y)*(i.y-e.y))/n;r=Math.max(0,Math.min(1,r));var a=p(t,{x:e.x+r*(i.x-e.x),y:e.y+r*(i.y-e.y)});return Math.sqrt(a)}function f(t,e){var i=1/0;r.each(e,(function(e){var n=Math.sqrt(p(e,t));i>n&&(i=n)}));for(var n=0,a=e.length-1;n<e.length;a=n++){var o=e[n].x,s=e[n].y,l=e[a].x,u=e[a].y,c=h(t,{x:o,y:s},{x:l,y:u});i>c&&(i=c)}return i}function d(t,e){for(var i=0,n=t;i<n.length;i++){if(u(n[i],e))return!0}return!1}i.getLineIntersect=function(t,e,i,n){var r=i.x-t.x,a=i.y-t.y,o=e.x-t.x,s=e.y-t.y,u=n.x-i.x,c=n.y-i.y,p=o*c-s*u,h=null;if(p*p>.001*(o*o+s*s)*(u*u+c*c)){var f=(r*c-a*u)/p,d=(r*s-a*o)/p;l(f,0,1)&&l(d,0,1)&&(h={x:t.x+f*o,y:t.y+f*s})}return h},i.isPointInPolygon=u,i.dist2=p,i.distBetweenPoints=function(t,e){return Math.sqrt(c(t.x-e.x)+c(t.y-e.y))},i.distBetweenPointLine=h,i.isPolygonIntersection=d,i.minDistBetweenConvexPolygon=function(t,e){if(d(t,e))return 0;var i=1/0,n=1/0;return r.each(t,(function(t){var n=f(t,e);i>n&&(i=n)})),r.each(e,(function(e){var i=f(e,t);n>i&&(n=i)})),Math.min(i,n)},i.bboxOnRotate=function(t){var e,i=t.getBBox(),n=i.minX,r=i.minY,a=i.maxX-i.minX,o=i.maxY-i.minY,l=t.attr("matrix"),u=s({x:0,y:0},e=l?[l[0],l[1],0,l[3],l[4],0,0,0,1]:[1,0,0,0,1,0,0,0,1]);u.x+=n,u.y+=r;var c=s({x:a,y:0},e);c.x+=n,c.y+=r;var p=s({x:0,y:o},e);p.x+=n,p.y+=r;var h=s({x:a,y:o},e);h.x+=n,h.y+=r;var f=[u,c,p,h];f.sort((function(t,e){return t.y-e.y}));var d=f[0].y,g=f[f.length-1].y,v=[f[0],f[1]],y=[f[2],f[3]],m=v[0].x<v[1].x?v[0]:v[1],b=v[0].x<v[1].x?v[1]:v[0],x=y[0].x<y[1].x?y[0]:y[1],_=y[0].x<y[1].x?y[1]:y[0];f.sort((function(t,e){return t.x-e.x}));var M=f[0].x,w=f[f.length-1].x;return{width:w-M,height:g-d,left:M,right:w,top:d,bottom:g,topLeft:m,topRight:b,bottomLeft:x,bottomRight:_,centerX:M+(w-M)/2,centerY:d+(g-d)/2}};i.lineSimplification=function(t){return t.length<5?t:function t(e,i){for(var n,r=-1/0,a=0,o=e.length-1,s=1;s<o;s++){var l=e[s],u={start:e[0],end:e[o]},c=h(l,u.start,u.end);c>r&&(r=c,a=s)}if(r>i){var p=t(e.slice(0,a+1),i),f=t(e.slice(a,e.length),i);n=p.concat(f)}else n=[e[0],e[e.length-1]];return n}(t,2)},i.getMedian=function(t){var e=r.clone(t);e.sort((function(t,e){return t-e}));var i=Math.floor(e.length/2);return e.length%2?e[i]:(e[i-1]+e[i])/2},i.getMean=function(t){var e=0;return r.each(t,(function(t){e+=t})),e/t.length},i.sturges=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},i.getStrokePoints=function(t,e,i,n,r){void 0===r&&(r=2);for(var a=[],o=t;o<=t+i;o+=r)a.push([o,e]);for(var s=e;s<=e+n;s+=r)a.push([t+i,s]);for(o=t+i;o>=t;o-=r)a.push([o,e+n]);for(s=e+n;s>=e;s-=r)a.push([t,s]);return a}},{"@antv/matrix-util":717,"@antv/util":803}],681:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.convertPolarPath=i.convertNormalPath=i.getPointAngle=i.getPointRadius=i.getSplinePath=i.getLinePath=i.catmullRom2bezier=i.smoothBezier=void 0;var n=t("@antv/matrix-util"),r=t("@antv/util");function a(t,e){var i=t.getCenter();return Math.sqrt(Math.pow(e.x-i.x,2)+Math.pow(e.y-i.y,2))}function o(t,e){for(var i=[t[0]],n=1,r=t.length;n<r;n+=2){var a=e.convertPoint({x:t[n],y:t[n+1]});i.push(a.x,a.y)}return i}function s(t,e,n){for(var r=!!e,a=[],o=0,s=t.length;o<s;o+=2)a.push([t[o],t[o+1]]);var l,u,c,p=i.smoothBezier(a,.4,r,n),h=a.length,f=[];for(o=0;o<h-1;o++)l=p[2*o],u=p[2*o+1],c=a[o+1],f.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]]);return r&&(l=p[h],u=p[h+1],c=a[0],f.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]])),f}function l(t,e){return function(t,e){var i=[];if(t.length){for(var n=0,r=t.length;n<r;n+=1){var a=t[n],o=0===n?"M":"L";i.push([o,a.x,a.y])}e&&i.push(["Z"])}return i}(t,e)}i.smoothBezier=function(t,e,i,r){var a,o,s,l,u=[],c=!!r;if(c){s=[1/0,1/0],l=[-1/0,-1/0];for(var p=0,h=t.length;p<h;p++){var f=t[p];s=n.vec2.min([0,0],s,f),l=n.vec2.max([0,0],l,f)}s=n.vec2.min([0,0],s,r[0]),l=n.vec2.max([0,0],l,r[1])}p=0;for(var d=t.length;p<d;p++){f=t[p];if(i)a=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){u.push(f);continue}a=t[p-1],o=t[p+1]}var g=[0,0];g=n.vec2.sub(g,o,a),g=n.vec2.scale(g,g,e);var v=n.vec2.distance(f,a),y=n.vec2.distance(f,o),m=v+y;0!==m&&(v/=m,y/=m);var b=n.vec2.scale([0,0],g,-v),x=n.vec2.scale([0,0],g,y),_=n.vec2.add([0,0],f,b),M=n.vec2.add([0,0],f,x);c&&(_=n.vec2.max([0,0],_,s),_=n.vec2.min([0,0],_,l),M=n.vec2.max([0,0],M,s),M=n.vec2.min([0,0],M,l)),u.push(_),u.push(M)}return i&&u.push(u.shift()),u},i.catmullRom2bezier=s,i.getLinePath=l,i.getSplinePath=function(t,e,i){var n=[],a=t[0],o=null;if(t.length<=2)return l(t,e);r.each(t,(function(t){o&&o.x===t.x&&o.y===t.y||(n.push(t.x),n.push(t.y),o=t)}));var u=s(n,e,i||[[0,0],[1,1]]);return u.unshift(["M",a.x,a.y]),u},i.getPointRadius=function(t,e){return a(t,e)},i.getPointAngle=function(t,e){var i=t.getCenter();return Math.atan2(e.y-i.y,e.x-i.x)},i.convertNormalPath=function(t,e){var i=[];return r.each(e,(function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":i.push(o(e,t));break;case"z":default:i.push(e)}})),i},i.convertPolarPath=function(t,e){var i,n,s,l=[];return r.each(e,(function(r,u){switch(r[0].toLowerCase()){case"m":case"c":case"q":l.push(o(r,t));break;case"l":i=e[u-1],n=r,s=t.isTransposed,(s?i[i.length-2]===n[1]:i[i.length-1]===n[2])?l=l.concat(function(t,e,i){var n=i.isTransposed,r=i.startAngle,o=i.endAngle,s={x:t[1],y:t[2]},l={x:e[1],y:e[2]},u=[],c=n?"y":"x",p=Math.abs(l[c]-s[c])*(o-r),h=l[c]>=s[c]?1:0,f=p>Math.PI?1:0,d=i.convertPoint(l),g=a(i,d);if(g>=.5)if(p===2*Math.PI){var v={x:(l.x+s.x)/2,y:(l.y+s.y)/2},y=i.convertPoint(v);u.push(["A",g,g,0,f,h,y.x,y.y]),u.push(["A",g,g,0,f,h,d.x,d.y])}else u.push(["A",g,g,0,f,h,d.x,d.y]);return u}(i,n,t)):l.push(o(r,t));break;case"z":default:l.push(r)}})),function(t){r.each(t,(function(e,i){if("a"===e[0].toLowerCase()){var n=t[i-1],r=t[i+1];r&&"a"===r[0].toLowerCase()?n&&"l"===n[0].toLowerCase()&&(n[0]="M"):n&&"a"===n[0].toLowerCase()&&r&&"l"===r[0].toLowerCase()&&(r[0]="M")}}))}(l),l}},{"@antv/matrix-util":717,"@antv/util":803}],682:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("../node/shape-nodes")),o=n.__importDefault(t("../responsive")),s=n.__importDefault(t("./base")),l={cat:"category",timeCat:"category",time:"dateTime",linear:"linear"},u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.init=function(){this.axisInstance=this.getAxisInstance(),t.prototype.init.call(this)},e.prototype.shouldApply=function(){var t=this.plot.options;return!!this.responsiveTheme.axis&&!!(this.responsiveTheme.axis[this.dim]&&t[this.dim+"Axis"].visible&&t[this.dim+"Axis"].label&&t[this.dim+"Axis"].label.visible)},e.prototype.apply=function(){for(var t=this,e=this.plot.view.backgroundGroup.findAll((function(e){if("axis-label"===e.get("name")&&e.get("delegateObject").axis.get("field")===t.plot.options[t.dim+"Field"])return e})),i=[],n=0;n<e.length;n++)i.push(e[n]);var r=new a.default({shapes:i}),s=this.responsiveTheme.axis.x[this.type],l=s.constraints,u=s.rules;new o.default({nodes:r,constraints:l,region:this.plot.getViewRange(),rules:u,plot:this.plot,onEnd:function(e){t.updateTicks(e.origion_nodes)}})},e.prototype.getType=function(){var t=this.plot.options,e=this.dim+"Axis",i=this.dim+"Field";if(t[e]&&t[e].type&&"dateTime"===t[e].type)return"dateTime";var n=this.plot.view.getScaleByField([t[i]]).type;return l[n]},e.prototype.getAxisInstance=function(){var t,e,i="x"===this.dim?0:1,n=null===(t=this.plot.view.getController("axis"))||void 0===t?void 0:t.getComponents();if(n)return null===(e=n[i])||void 0===e?void 0:e.component},e.prototype.updateTicks=function(t){var e=this,i=this.plot.view.backgroundGroup.findAll((function(t){if("axis-tickline-group"===t.get("name")&&t.get("delegateObject").axis.get("field")===e.plot.options[e.dim+"Field"])return t}))[0];if(i){var n=i.get("children");r.each(t,(function(t,e){""===t.shape.attr("text")&&n[e].attr("opacity",0)}))}this.plot.canvas.draw()},e}(s.default);i.default=u},{"../node/shape-nodes":694,"../responsive":695,"./base":683,"@antv/util":803,tslib:894}],683:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=function(){function t(t){n.assign(this,t),this.init()}return t.prototype.init=function(){this.type=this.getType(),this.shouldApply()&&this.apply()},t}();i.default=r},{"@antv/util":803}],684:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importDefault(t("../node/shape-nodes")),a=n.__importDefault(t("../responsive")),o=n.__importDefault(t("./base")),s=t("@antv/util"),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.shouldApply=function(){return!(!this.responsiveTheme.label||!this.responsiveTheme.label[this.type])},e.prototype.apply=function(){var t=this.plot.view.geometries[0].labelsContainer.get("children"),e=[];s.each(t,(function(t){e=e.concat(t.findAllByName("label"))}));var i=new r.default({shapes:e}),n=this.responsiveTheme.label[this.type],o=n.constraints,l=n.rules;new a.default({nodes:i,constraints:o,rules:l,plot:this.plot,region:this.plot.view.coordinateBBox})},e.prototype.getType=function(){return null},e}(o.default);i.default=l},{"../node/shape-nodes":694,"../responsive":695,"./base":683,"@antv/util":803,tslib:894}],685:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default={type:"padding",usage:"assign",expression:function(t,e,i){return void 0===i&&(i={ratio:.6}),e.width*i.ratio}}},{}],686:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib").__importStar(t("../../math"));i.default={type:"group",usage:"compare",expression:function(t,e){var i=[t.topLeft,t.topRight,t.bottomRight,t.bottomLeft],r=[e.topLeft,e.topRight,e.bottomRight,e.bottomLeft],a=n.minDistBetweenConvexPolygon(i,r);return Math.round(a)>=2}}},{"../../math":680,tslib:894}],687:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default={type:"chain",usage:"compare",expression:function(t,e,i){void 0===i&&(i={value:5});var n=Math.abs(t.bottom-e.top);return Math.round(n)>=i.value}}},{}],688:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib").__importStar(t("../../math"));i.default={type:"chain",usage:"compare",expression:function(t,e,i){void 0===i&&(i={value:4});var r=[t.topLeft,t.topRight,t.bottomRight,t.bottomLeft],a=[e.topLeft,e.topRight,e.bottomRight,e.bottomLeft],o=n.minDistBetweenConvexPolygon(r,a);return Math.round(o)>=i.value}}},{"../../math":680,tslib:894}],689:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default={type:"padding",usage:"compare",expression:function(t,e,i){return void 0===i&&(i={ratio:.15}),t.width<e.width*i.ratio}}},{}],690:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.registerResponsiveConstraint=i.constraintsLib=void 0;var n=t("tslib"),r=n.__importDefault(t("./column-width")),a=n.__importDefault(t("./element-collision")),o=n.__importDefault(t("./element-dist")),s=n.__importDefault(t("./element-dist-vertical")),l=n.__importDefault(t("./element-width")),u=n.__importDefault(t("./min-ring-thickness")),c=n.__importDefault(t("./ring-thickness"));i.constraintsLib={elementDist:o.default,elementDistVertical:s.default,elementCollision:a.default,elementWidth:l.default,columnWidth:r.default,ringThickness:c.default,minRingThickness:u.default},i.registerResponsiveConstraint=function(t,e){i.constraintsLib[t]=e}},{"./column-width":685,"./element-collision":686,"./element-dist":688,"./element-dist-vertical":687,"./element-width":689,"./min-ring-thickness":691,"./ring-thickness":692,tslib:894}],691:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default={type:"padding",usage:"assign",expression:function(t,e){var i=e.coord.radius/2;return Math.min(i,t.value)}}},{}],692:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default={type:"padding",usage:"assign",expression:function(t,e,i){return void 0===i&&(i={ratio:.8}),e.radius*i.ratio}}},{}],693:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.DEFAULT_RESPONSIVE_THEME=void 0,i.DEFAULT_RESPONSIVE_THEME={axis:{x:{category:{constraints:[{name:"elementDist"}],rules:{elementDist:[{name:"textWrapper",option:{lineNumber:2}},{name:"textRotation",option:{degree:45}},{name:"textRotation",option:{degree:90}},{name:"textAbbreviate",option:{abbreviateBy:"end"}},{name:"textHide"}]}},linear:{constraints:[{name:"elementDist"}],rules:{elementDist:[{name:"nodesResampling",option:{keep:["end"]}},{name:"textRotation",option:{degree:45}},{name:"textRotation",option:{degree:90}},{name:"robustAbbrevaite",option:{unit:"thousand",decimal:1,abbreviateBy:"end"}},{name:"textHide"}]}},dateTime:{constraints:[{name:"elementDist"}],rules:{elementDist:[{name:"datetimeStringAbbrevaite"},{name:"nodesResamplingByAbbrevate",option:{keep:["end"]}},{name:"textRotation",option:{degree:45}},{name:"textRotation",option:{degree:90}},{name:"nodesResampling"},{name:"nodesResampling"},{name:"textHide"}]}}},y:{linear:{constraints:[{name:"elementDistVertical"},{name:"elementWidth"}],rules:{elementDistVertical:[{name:"nodesResampling"},{name:"textHide"}],elementWidth:[{name:"digitsAbbreviate"},{name:"textHide"}]}},category:{constraints:[{name:"elementDistVertical"},{name:"elementWidth"}],rules:{elementDistVertical:[{name:"nodesResampling"},{name:"textHide"}],elementWidth:[{name:"textAbbreviate",option:{abbreviateBy:"end"}},{name:"textHide"}]}}}}}},{}],694:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importStar(t("../../math")),o=function(){function t(t){this.type="shape",this.shapes=t.shapes,this.nodes=[],this._parserNodes(),this.origion_nodes=r.deepMix([],this.nodes)}return t.prototype.measure=function(t){return r.deepMix({},a.bboxOnRotate(t),{shape:t})},t.prototype.measureNodes=function(){var t=this,e=[],i=[];r.each(this.shapes,(function(n,a){var o=r.deepMix({},t.nodes[a],t.measure(n));0!==o.width&&0!==o.height&&(e.push(o),i.push(n))})),this.nodes=e,this.shapes=i},t.prototype._parserNodes=function(){var t=this;r.each(this.shapes,(function(e){var i=t.measure(e);t.nodes.push(i)}))},t}();i.default=o},{"../../math":680,"@antv/util":803,tslib:894}],695:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("./constraints/index"),a=t("./rules/index"),o=function(){function t(t){this.iterationTime=10,this.iterationIndex=0,this.rulesLocker=[],this.constraintIndex=0,n.assign(this,t),this.currentConstraint=this.constraints[0],this.rules&&(this.iterationTime=this.rules[this.currentConstraint.name].length),this._start(),this._run(),this._end()}return t.prototype._start=function(){this.onStart&&this.onStart(this.nodes)},t.prototype._iteration=function(){var t;"shape"===(t=(this.nodes.type,this.nodes)).type&&t.measureNodes(),this.rules&&this._applyRules(),"shape"===t.type&&t.measureNodes(),this.onIteration&&this.onIteration(this.nodes)},t.prototype._end=function(){this.onEnd&&this.onEnd(this.nodes)},t.prototype._run=function(){for(var t=this._constraintsTest();!(t||this.iterationIndex>this.iterationTime-1);)this._iteration(),t=this._constraintsTest(),this.iterationIndex++;this.constraintIndex<this.constraints.length-1&&(this.constraintIndex++,this.currentConstraint=this.constraints[this.constraintIndex],this.iterationTime=this.rules?this.rules[this.currentConstraint.name].length:1,this.iterationIndex=0,this._run())},t.prototype._constraintsTest=function(){var t=r.constraintsLib[this.currentConstraint.name],e=this.currentConstraint.option;return"compare"===t.usage?this._constraintCompare(t,e):this._constraintAssignment(t,e)},t.prototype._constraintCompare=function(t,e){var i=t.type,n=t.expression,r=this.nodes.nodes;return"chain"===i?this._chainConstraintCompare(n,r,e):"padding"===i?this._paddingConstraintCompare(n,this.region,r,e):"group"===i?this._groupConstraintCompare(n,r,e):void 0},t.prototype._chainConstraintCompare=function(t,e,i){for(var n=0;n<e.length-1;n++){if(!1===t(e[n],e[n+1],i))return!1}return!0},t.prototype._paddingConstraintCompare=function(t,e,i,n){if(e)for(var r=0,a=i;r<a.length;r++){if(!1===t(a[r],e,n))return!1}return!0},t.prototype._groupConstraintCompare=function(t,e,i){for(var n=0;n<e.length;n++)for(var r=e[n],a=0;a<e.length;a++){if(a!==n)if(!1===t(r,e[a],i))return!1}return!0},t.prototype._constraintAssignment=function(t,e){var i=t.type,n=t.expression,r=this.nodes.nodes;return"chain"===i?this._chainConstraintAssign():"padding"===i?this._paddingConstraintAssign(n,this.region,r,e):void 0},t.prototype._chainConstraintAssign=function(){return!0},t.prototype._paddingConstraintAssign=function(t,e,i,n){if(e)for(var r=0,a=i;r<a.length;r++){var o=a[r],s=t(o,e,n);o.value=s}return!0},t.prototype._applyRules=function(){for(var t=this.rules[this.currentConstraint.name][this.iterationIndex],e=a.rulesLib[t.name],i=t.option?t.option:{},n=this.nodes.nodes,r=0;r<n.length;r++){var o=n[r];this._applyRule(o.shape,e,i,r)}},t.prototype._applyRule=function(t,e,i,n){e(t,i,n,{nodes:this.nodes,region:this.region,plot:this.plot})},t}();i.default=o},{"./constraints/index":690,"./rules/index":699,"@antv/util":803}],696:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isNodeOverlap=void 0;var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("./text-hide"));function o(t,e){return!(t.bottom<e.top||e.bottom<t.top)&&!(t.right<e.left||e.right<t.left)}i.default=function(t,e,i,n){var s=n.nodes.nodes,l=s[i],u=[];if(!l.shape.get("blank"))for(var c=0;c<s.length;c++){var p=s[c],h=p.shape;if(c!==i&&!h.get("blank"))o(l,p)&&u.push(p)}u.length>0&&(u.push(l),u.sort((function(t,e){return e.top-t.top})),r.each(u,(function(t,e){if(e>0){var i=t.shape;a.default(i),i.set("blank",!0)}})))},i.isNodeOverlap=o},{"./text-hide":708,"@antv/util":803,tslib:894}],697:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isTime=void 0;var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("fecha")),o=864e5;function s(t,e){var i,n=Math.abs(t-e),a={minute:[6e4,36e5],hour:[36e5,o],day:[o,26784e5],month:[26784e5,31536e6],year:[31536e6,1/0]};return r.each(a,(function(t,e){n>=t[0]&&n<t[1]&&(i=e)})),i}function l(t,e){return"year"===e?t.getFullYear():"month"===e?t.getMonth()+1:"day"===e?t.getDay()+1:"hour"===e?t.getHours()+1:"minute"===e?t.getMinutes()+1:void 0}i.default=function(t,e,i,n){var r,o=n.nodes.nodes;r=i===o.length-1?o[i-1].shape.get("delegateObject").item.name:o[i+1].shape.get("delegateObject").item.name;var u=new Date(r),c=t.get("delegateObject").item.name,p=new Date(c),h=o[0].shape.get("delegateObject").item.name,f=new Date(h),d=o[o.length-1].shape.get("delegateObject").item.name,g=s(f,new Date(d)),v=s(p,u);if(g!==v){if(0!==i){var y=o[i-1].shape.get("delegateObject").item.name;if(function(t,e,i){var n=l(e,t),r=l(i,t);if(n!==r)return!1;return!0}(g,p,new Date(y))){m=function(t,e){for(var i=["year","month","day","hour","minute"],n=["YYYY","MM","DD","HH","MM"],r=i.indexOf(t)+1,a=i.indexOf(e),o="",s=r;s<=a;s++)o+=n[s],s<a&&(o+="-");return o}(g,v);return void t.attr("text",a.default.format(p,m))}}}else if(0!==i&&i!==o.length-1){var m=function(t){var e=["year","month","day","hour","minute"].indexOf(t);return["YYYY","MM","DD","HH","MM"][e]}(g);t.attr("text",a.default.format(p,m))}},i.isTime=function(t){return/^(?:(?:[0-2][0-3])|(?:[01]\d)):[0-5]\d$/.test(t)||/^(?:(?:[0-2][0-3])|(?:[01]\d))(?::[0-5]\d){2}$/.test(t)}},{"@antv/util":803,fecha:881,tslib:894}],698:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("../../math"),a={k:{number:1e3,index:0},m:{number:1e6,index:1},b:{number:1e9,index:2},t:{number:1e12,index:3}};function o(t,e){var i,n;if("auto"===t.unit){var r=Math.floor(Math.log(e)/Math.log(1e3));n=["k","m","b","t"][r-1],i=(e/Math.pow(1e3,r)).toFixed(t.decimal)}else if(t.unit){var o=a[t.unit];n=t.unit,i=(e/o.number).toFixed(t.decimal)}return{num:i,unitname:n}}i.default=function(t,e,i,s){if(n.has(s,"node")&&n.has(s.node,"node")){var l=s.nodes.nodes,u=parseFloat(t.get("origin").text);if(0!==u)if(e.formatter)t.attr("text",e.formatter(u));else if(e.unit){var c=o(e,u),p=c.num,h=c.unitname;t.attr("text",p+h)}else{var f=function(t){var e=[];return n.each(t,(function(t){var i=parseFloat(t.shape.get("origin").text);e.push(i)})),e}(l),d=(h=function(t){var e=Math.floor(Math.log(t)/Math.log(1e3));return["k","m","b","t"][e-1]}(r.getMedian(f)),a[h].number);p=o({unit:h,decimal:function(t,e){var i=Math.floor(Math.log10(e));if(!(t>=e)){var n=Math.floor(Math.log10(t));return Math.abs(n-i)}var r=t%e;if(r>0){var a=Math.floor(Math.log10(r));return Math.abs(a-i)}return 0}(function(t){if(t.length>=2){var e=parseFloat(t[0].shape.get("origin").text),i=parseFloat(t[1].shape.get("origin").text);return Math.abs(e-i)}return 0}(l),d)},u).num;t.attr("text",p+h)}}}},{"../../math":680,"@antv/util":803}],699:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.registerResponsiveRule=i.rulesLib=void 0;var n=t("tslib"),r=n.__importDefault(t("./clear-overlapping")),a=n.__importDefault(t("./datetime-string-abbrevaite")),o=n.__importDefault(t("./digits-abbreviate")),s=n.__importDefault(t("./node-jitter")),l=n.__importDefault(t("./node-jitter-upward")),u=n.__importDefault(t("./nodes-resampling")),c=n.__importDefault(t("./nodes-resampling-by-abbrevate")),p=n.__importDefault(t("./nodes-resampling-by-change")),h=n.__importDefault(t("./nodes-resampling-by-state")),f=n.__importDefault(t("./robust-abbrevaite")),d=n.__importDefault(t("./text-abbreviate")),g=n.__importDefault(t("./text-hide")),v=n.__importDefault(t("./text-rotation")),y=n.__importDefault(t("./text-wrapper"));i.rulesLib={textWrapper:y.default,textRotation:v.default,textAbbreviate:d.default,textHide:g.default,digitsAbbreviate:o.default,datetimeStringAbbrevaite:a.default,robustAbbrevaite:f.default,nodesResampling:u.default,nodesResamplingByAbbrevate:c.default,nodesResamplingByChange:p.default,nodesResamplingByState:h.default,nodeJitter:s.default,nodeJitterUpward:l.default,clearOverlapping:r.default},i.registerResponsiveRule=function(t,e){i.rulesLib[t]=e}},{"./clear-overlapping":696,"./datetime-string-abbrevaite":697,"./digits-abbreviate":698,"./node-jitter":701,"./node-jitter-upward":700,"./nodes-resampling":705,"./nodes-resampling-by-abbrevate":702,"./nodes-resampling-by-change":703,"./nodes-resampling-by-state":704,"./robust-abbrevaite":706,"./text-abbreviate":707,"./text-hide":708,"./text-rotation":709,"./text-wrapper":710,tslib:894}],700:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("./clear-overlapping");i.default=function(t,e,i,a){var o=a.nodes.nodes;if(0!==i){var s=o[i],l=o[i-1];if(r.isNodeOverlap(s,l)){var u=a.plot.view.geometries[0].elements[0],c=l.top-s.height/2;if(c-10>a.region.top){var p=s.shape.get("origin"),h=function(t,e){var i;return n.each(e,(function(e){var n=e;n.get("id")===t&&(i=n)})),i}(u.getShapeId(p),u.getShapes()).get("box"),f=h.left+h.width/2,d=h.top,g=u.get("labelController").labelsContainer.addShape("path",{attrs:{path:[["M",f,d],["L",s.shape.attr("x"),c]],stroke:"#ccc",lineWidth:1}}),v={x:t.attr("x"),y:t.attr("y")};s.shape.attr("y",c-10),o[i]=a.nodes.measure(s.shape),o[i].line=g,o[i].origin_position=v}}}}},{"./clear-overlapping":696,"@antv/util":803}],701:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../../math");i.default=function(t,e,i){var r=i.nodes.nodes;if(e!==r.length-1){var a=function(t,e){var i,r={x:e.centerX-t.centerX,y:e.centerY-t.centerY},a=Math.sqrt(r.x*r.x+r.y*r.y),o={x:10,y:0},s=Math.sqrt(o.x*o.x+o.y*o.y),l=n.dotProduct2D(r,o)/(a*s)*180/Math.PI;l<0&&(l=360-l);l=function(t){if(t>90&&t<=180)return 180-t;if(t>180&&t<270)return t-180;return 360-t}(l);var u=Math.abs(t.centerX-e.centerX),c=Math.abs(t.centerY-e.centerY);l>45?i="x":l<45&&(i="y");return{dir:i,distX:u,distY:c}}(r[e],r[e+1]).dir,o=t.get("startPoint");"x"===a&&t.attr("y",o.y+20)}}},{"../../math":680}],702:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("./nodes-resampling"),a=n.__importDefault(t("./text-hide"));i.default=function(t,e,i,n){var o=n.nodes.nodes;r.isKeep(e.keep,i,o)||t.attr("text")!==t.get("delegateObject").item.name&&a.default(t)}},{"./nodes-resampling":705,"./text-hide":708,tslib:894}],703:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("./text-hide"));i.default=function(t,e,i,n){var o=n.nodes.nodes,s=function(t){var e=r.deepMix([],t);return e.sort((function(t,e){return e.width-t.width})),Math.round(e[0].width)}(o);if(!(i<=1)){var l=o[i],u=function(t,e){for(var i=t-1;i>0;i--){var n=e[i];if(!n.shape.get("blank"))return n}}(i,o),c=u.centerX-l.centerX,p=u.centerY-l.centerY;Math.sqrt(c*c+p*p)<s&&(a.default(t),t.set("blank",!0))}}},{"./text-hide":708,"@antv/util":803,tslib:894}],704:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("./text-hide"));function o(t,e,i){for(var n=0,r=t;n<r.length;n++){var a=r[n];if(a.shape.get("origin")._origin[e]===i)return a}}i.default=function(t,e,i,n){var s=n.nodes.nodes,l=s[i];l.line&&l.line.remove();var u=n.plot.initialOptions.data,c=n.plot[n.plot.type]||n.plot[n.plot.baseType],p=function(t,e,i){var n=[];r.each(t,(function(t){n.push(t[e])})),n.sort((function(t,e){return t-e}));var a=n[0],s=o(i,e,a),l=n[n.length-1],u=o(i,e,l),c=function(t){var e=r.clone(t);e.sort((function(t,e){return t-e}));var i=Math.floor(e.length/2);if(e.length%2)return e[i];return e[i]}(n),p=o(i,e,c);return{min:s,max:u,median:p}}(u,r.get(c,["label","fields",0],r.get(c,["position","fields",1])),s),h=!1;if(r.each(p,(function(t){t.shape.get("origin")===l.shape.get("origin")&&(h=!0)})),h){if(l.origin_position){var f=l.origin_position,d=f.x,g=f.y;t.attr("x",d),t.attr("y",g)}}else a.default(t)}},{"./text-hide":708,"@antv/util":803,tslib:894}],705:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isKeep=void 0;var n=t("tslib"),r=t("@antv/util"),a=n.__importDefault(t("./text-hide"));function o(t,e,i){var n=[];r.each(t,(function(t){"start"===t?n.push(0===e):"end"===t?n.push(e===i.length-1):r.isNumber(t)&&n.push(e===t)}));for(var a=0,o=n;a<o.length;a++){if(!0===o[a])return!0}return!1}i.default=function(t,e,i,n){var r=n.nodes.nodes,s=r.length%2!=0;if(!o(e.keep,i,r)){var l=i%2==0;(!s&&l||s&&!l)&&a.default(t)}},i.isKeep=o},{"./text-hide":708,"@antv/util":803,tslib:894}],706:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importStar(t("./datetime-string-abbrevaite")),a=n.__importDefault(t("./digits-abbreviate")),o=n.__importDefault(t("./text-abbreviate"));i.default=function(t,e,i,n){var s=n.nodes.nodes,l=t.attr("text");/^\d+$/.test(l)?a.default(t,e,i,s):r.isTime(l)?r.default(t,e,i,s):o.default(t,e)}},{"./datetime-string-abbrevaite":697,"./digits-abbreviate":698,"./text-abbreviate":707,tslib:894}],707:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e){var i,n=e.abbreviateBy?e.abbreviateBy:"end",r=t.attr("text");"end"===n&&(i=r[0]+"..."),"start"===n&&(i="..."+r[r.length-1]),"middle"===n&&(i=r[0]+"..."+r[r.length-1]),t.resetMatrix(),t.attr({text:i,textAlign:"center",textBaseline:"top"})}},{}],708:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t){t.attr("text","")}},{}],709:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e){t.resetMatrix(),t.attr({rotate:360-e.degree,textAlign:"right",textBaseline:"middle"})}},{}],710:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e){for(var i=t.attr("text"),n=Math.ceil(i.length/e.lineNumber),r="",a=1;a<e.lineNumber;a++){var o=n*a;r=i.slice(0,o)+"\n"+i.slice(o)}var s=t.attr("fontSize");t.attr({text:r,lineHeight:s,textAlign:"center",textBaseline:"top"})}},{}],711:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getResponsiveTheme=i.registerResponsiveTheme=void 0;var n=t("@antv/util"),r=t("./default"),a={default:r.DEFAULT_RESPONSIVE_THEME};i.registerResponsiveTheme=function(t,e){a[t.toLowerCase()]=n.deepMix({},r.DEFAULT_RESPONSIVE_THEME,e)},i.getResponsiveTheme=function(t){var e=a[t.toLowerCase()];return e||r.DEFAULT_RESPONSIVE_THEME}},{"./default":693,"@antv/util":803}],712:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.trySetScaleMinToZero=i.extractScale=void 0;var n=t("@antv/util"),r=t("../interface/config");i.extractScale=function(t,e){if(!e)return t;var i,n,a,o,s;Object.prototype.hasOwnProperty.call(e,"tickCount")&&(t.tickCount=e.tickCount),Object.prototype.hasOwnProperty.call(e,"type")&&"dateTime"!==e.type&&(t.type=e.type),Object.prototype.hasOwnProperty.call(e,"tickInterval")&&("time"===e.type?t.tickInterval=(i=e.tickInterval,n=r.timeIntervals,a=i.split(" "),o=n[a[1]],s=parseInt(a[0],10),[o.format,s*o.value]):t.tickInterval=e.tickInterval),"time"===e.type&&e.mask&&(t.mask=e.mask),Object.prototype.hasOwnProperty.call(e,"min")&&(t.min=e.min),Object.prototype.hasOwnProperty.call(e,"max")&&(t.max=e.max),Object.prototype.hasOwnProperty.call(e,"minLimit")&&(t.minLimit=e.minLimit),Object.prototype.hasOwnProperty.call(e,"maxLimit")&&(t.maxLimit=e.maxLimit),Object.prototype.hasOwnProperty.call(e,"nice")&&(t.nice=e.nice),Object.prototype.hasOwnProperty.call(e,"formatter")&&(t.formatter=e.formatter),Object.prototype.hasOwnProperty.call(e,"exponent")&&(t.exponent=e.exponent),Object.prototype.hasOwnProperty.call(e,"base")&&(t.base=e.base),e.tickMethod&&(t.tickMethod=e.tickMethod)},i.trySetScaleMinToZero=function(t,e){var i=n.filter(e,(function(t){return n.isNumber(t)})),r=Math.min.apply(Math,i),a=Math.max.apply(Math,i);r>0?n.isNil(t.min)&&(t.min=0):a<0&&n.isNil(t.max)&&(t.max=0)}},{"../interface/config":449,"@antv/util":803}],713:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=n.__importDefault(t("@antv/event-emitter")),a=t("@antv/util"),o=function(t){function e(){var e=t.call(this)||this;return e._states={},e._stateStack={},e}return n.__extends(e,t),e.prototype.setState=function(t,e){this._stateStack[t]=e,this._onUpdate()},e.prototype.getState=function(t){return this._states[t]},e.prototype.getAllStates=function(){return this._states},e.prototype.clear=function(){this._states={},this._stateStack={},this._changeTimer&&(clearTimeout(this._changeTimer),this._changeTimer=null)},e.prototype._onUpdate=function(){var t=this,e=this._stateStack;this._changeTimer&&(clearTimeout(this._changeTimer),this._changeTimer=null),this._changeTimer=setTimeout((function(){a.each(e,(function(i,n){var r=e[n];t._states[n]&&t._states[n]===i||(t._states[n]=i,t._triggerEvent(n,r))})),t._stateStack={}}),16)},e.prototype._triggerEvent=function(t,e){this.emit(t+":change",{name:t,exp:e})},e}(r.default);i.default=o},{"@antv/event-emitter":94,"@antv/util":803,tslib:894}],714:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getEllipsisText=i.measureTextWidth=void 0;var n=t("tslib"),r=t("@antv/util"),a=document.createElement("canvas").getContext("2d");i.measureTextWidth=r.memoize((function(t,e){void 0===e&&(e={});var i=e.fontSize,n=e.fontFamily,o=e.fontWeight,s=e.fontStyle,l=e.fontVariant;return a.font=[s,l,o,i+"px",n].join(" "),a.measureText(r.isString(t)?t:"").width}),(function(t,e){return e?n.__spreadArrays([t],r.values(e)).join(""):t})),i.getEllipsisText=function(t,e,n){var a,o=i.measureTextWidth("...",n);a=r.isString(t)?t:r.toString(t);var s,l,u=e,c=[];if(i.measureTextWidth(t,n)<=e)return t;for(;s=a.substr(0,16),!((l=i.measureTextWidth(s,n))+o>u&&l>u);)if(c.push(s),u-=l,!(a=a.substr(16)))return c.join("");for(;s=a.substr(0,1),!((l=i.measureTextWidth(s,n))+o>u);)if(c.push(s),u-=l,!(a=a.substr(1)))return c.join("");return c.join("")+"..."}},{"@antv/util":803,tslib:894}],715:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.checkShapeOverlap=i.getOverlapArea=i.moveInPanel=i.checkOriginEqual=i.forEachElement=i.forEachGeometry=i.getGeometryShapes=i.getGeometryByType=i.getAllGeometryByType=void 0;var n=t("@antv/util"),r=t("../dependents");function a(t,e){return n.filter(t.geometries,(function(t){return t.type===e}))}function o(t,e,i){return void 0===i&&(i=0),Math.max(0,Math.min(t.x+t.width+i,e.x+e.width+i)-Math.max(t.x-i,e.x-i))*Math.max(0,Math.min(t.y+t.height+i,e.y+e.height+i)-Math.max(t.y-i,e.y-i))}i.getAllGeometryByType=a,i.getGeometryByType=function(t,e){return n.head(a(t,e))},i.getGeometryShapes=function(t){return n.map(t.elements,(function(t){return t.shape}))},i.forEachGeometry=function(t,e){t.geometries.forEach(e)},i.forEachElement=function(t,e){t.geometries.forEach((function(t){t.elements.forEach((function(t){e(t)}))}))},i.checkOriginEqual=function(t,e,i){return n.some(e,(function(e){return i(e.get(r.ORIGIN),t.get(r.ORIGIN))}))},i.moveInPanel=function(t,e){var i=t.getBBox(),n=0,r=0;i.minX<e.minX?n=i.minX-e.minX:i.maxX>e.maxX&&(n=i.maxX-e.maxX),n&&t.attr("x",t.attr("x")-n),i.minY<e.minY?r=i.minY-e.minY:i.maxY>e.maxY&&(r=i.maxY-e.maxY),r&&t.attr("y",t.attr("y")-r)},i.getOverlapArea=o,i.checkShapeOverlap=function(t,e){var i=t.getBBox();return n.some(e,(function(t){var e=t.getBBox();return o(i,e,2)>0}))}},{"../dependents":425,"@antv/util":803}],716:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("gl-matrix");function r(t,e,i){var r=[0,0,0,0,0,0,0,0,0];return n.mat3.fromTranslation(r,i),n.mat3.multiply(t,r,e)}function a(t,e,i){var r=[0,0,0,0,0,0,0,0,0];return n.mat3.fromRotation(r,i),n.mat3.multiply(t,r,e)}function o(t,e,i){var r=[0,0,0,0,0,0,0,0,0];return n.mat3.fromScaling(r,i),n.mat3.multiply(t,r,e)}function s(t,e){return t[0]*e[1]-e[0]*t[1]}i.leftTranslate=r,i.leftRotate=a,i.leftScale=o,i.transform=function(t,e){for(var i,s,l,u=t?[].concat(t):[1,0,0,0,1,0,0,0,1],c=0,p=e.length;c<p;c++){var h=e[c];switch(h[0]){case"t":r(u,u,[h[1],h[2]]);break;case"s":o(u,u,[h[1],h[2]]);break;case"r":a(u,u,h[1]);break;case"m":i=u,s=u,l=h[1],n.mat3.multiply(i,l,s)}}return u},i.direction=s,i.angleTo=function(t,e,i){var r=n.vec2.angle(t,e),a=s(t,e)>=0;return i?a?2*Math.PI-r:r:a?r:2*Math.PI-r},i.vertical=function(t,e,i){return i?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},{"gl-matrix":883}],717:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("gl-matrix");i.mat3=n.mat3,i.vec2=n.vec2,i.vec3=n.vec3;var r=t("./ext");i.ext=r},{"./ext":716,"gl-matrix":883}],718:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e){for(var i=[],n=0,r=t.length;r-2*!e>n;n+=2){var a=[{x:+t[n-2],y:+t[n-1]},{x:+t[n],y:+t[n+1]},{x:+t[n+2],y:+t[n+3]},{x:+t[n+4],y:+t[n+5]}];e?n?r-4===n?a[3]={x:+t[0],y:+t[1]}:r-2===n&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[r-2],y:+t[r-1]}:r-4===n?a[3]=a[2]:n||(a[0]={x:+t[n],y:+t[n+1]}),i.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return i}},{}],719:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util/lib/is-equal");function r(t,e,i){var n=null,r=i;return e<r&&(r=e,n="add"),t<r&&(r=t,n="del"),{type:n,min:r}}i.default=function(t,e){var i=function(t,e){var i,a,o=t.length,s=e.length,l=0;if(0===o||0===s)return null;for(var u=[],c=0;c<=o;c++)u[c]=[],u[c][0]={min:c};for(var p=0;p<=s;p++)u[0][p]={min:p};for(c=1;c<=o;c++){i=t[c-1];for(p=1;p<=s;p++){a=e[p-1],l=n.default(i,a)?0:1;var h=u[c-1][p].min+1,f=u[c][p-1].min+1,d=u[c-1][p-1].min+l;u[c][p]=r(h,f,d)}}return u}(t,e),a=t.length,o=e.length,s=[],l=1,u=1;if(i[a][o]!==a){for(var c=1;c<=a;c++){var p=i[c][c].min;u=c;for(var h=l;h<=o;h++)i[c][h].min<p&&(p=i[c][h].min,u=h);l=u,i[c][l].type&&s.push({index:c-1,type:i[c][l].type})}for(c=s.length-1;c>=0;c--)l=s[c].index,"add"===s[c].type?t.splice(l,0,[].concat(t[l])):t.splice(l,1)}if((a=t.length)<o)for(c=0;c<o-a;c++)"z"===t[a-1][0]||"Z"===t[a-1][0]?t.splice(a-2,0,t[a-2]):t.push(t[a-1]);return t}},{"@antv/util/lib/is-equal":813}],720:[function(t,e,i){"use strict";function n(t,e){var i=[],n=[];return t.length&&function t(e,r){if(1===e.length)i.push(e[0]),n.push(e[0]);else{for(var a=[],o=0;o<e.length-1;o++)0===o&&i.push(e[0]),o===e.length-2&&n.push(e[o+1]),a[o]=[(1-r)*e[o][0]+r*e[o+1][0],(1-r)*e[o][1]+r*e[o+1][1]];t(a,r)}}(t,e),{left:i,right:n.reverse()}}function r(t,e,i){if(1===i)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,i){var r=[[t[1],t[2]]];i=i||2;var a=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var o=r,s=1/i,l=0;l<i-1;l++){var u=n(o,s/(1-s*l));a.push(u.left),o=u.right}return a.push(o),a.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])}))}(t,e,i));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;o<=i-1;o++)r.push(a)}return r}Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e){if(1===t.length)return t;var i=t.length-1,n=e.length-1,a=i/n,o=[];if(1===t.length&&"M"===t[0][0]){for(var s=0;s<n-i;s++)t.push(t[0]);return t}for(s=0;s<n;s++){var l=Math.floor(a*s);o[l]=(o[l]||0)+1}var u=o.reduce((function(e,n,a){return a===i?e.concat(t[i]):e.concat(r(t[a],t[a+1],n))}),[]);return u.unshift(t[0]),"Z"!==e[n]&&"z"!==e[n]||u.push("Z"),u}},{}],721:[function(t,e,i){"use strict";function n(t){var e=[];switch(t[0]){case"M":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":case"V":e.push([t[1],t[1]])}return e}function r(t,e,i){for(var r,a=[].concat(t),o=1/(i+1),s=n(e)[0],l=1;l<=i;l++)o*=l,0===(r=Math.floor(t.length*o))?a.unshift([s[0]*o+t[r][0]*(1-o),s[1]*o+t[r][1]*(1-o)]):a.splice(r,0,[s[0]*o+t[r][0]*(1-o),s[1]*o+t[r][1]*(1-o)]);return a}Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e){if(t.length<=1)return t;for(var i,a=0;a<e.length;a++)if(t[a][0]!==e[a][0])switch(i=n(t[a]),e[a][0]){case"M":t[a]=["M"].concat(i[0]);break;case"L":t[a]=["L"].concat(i[0]);break;case"A":t[a]=[].concat(e[a]),t[a][6]=i[0][0],t[a][7]=i[0][1];break;case"Q":if(i.length<2){if(!(a>0)){t[a]=e[a];break}i=r(i,t[a-1],1)}t[a]=["Q"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[a]=["T"].concat(i[0]);break;case"C":if(i.length<3){if(!(a>0)){t[a]=e[a];break}i=r(i,t[a-1],2)}t[a]=["C"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(i.length<2){if(!(a>0)){t[a]=e[a];break}i=r(i,t[a-1],1)}t[a]=["S"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[a]=e[a]}return t}},{}],722:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util/lib/mod"),r=t("@antv/util/lib/to-radian");function a(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return a(t)*a(e)?(t[0]*e[0]+t[1]*e[1])/(a(t)*a(e)):1}function s(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(o(t,e))}function l(t,e){return t[0]===e[0]&&t[1]===e[1]}i.isSamePoint=l,i.default=function(t,e){var i=e[1],a=e[2],u=n.default(r.default(e[3]),2*Math.PI),c=e[4],p=e[5],h=t[0],f=t[1],d=e[6],g=e[7],v=Math.cos(u)*(h-d)/2+Math.sin(u)*(f-g)/2,y=-1*Math.sin(u)*(h-d)/2+Math.cos(u)*(f-g)/2,m=v*v/(i*i)+y*y/(a*a);m>1&&(i*=Math.sqrt(m),a*=Math.sqrt(m));var b=i*i*(y*y)+a*a*(v*v),x=b?Math.sqrt((i*i*(a*a)-b)/b):1;c===p&&(x*=-1),isNaN(x)&&(x=0);var _=a?x*i*y/a:0,M=i?x*-a*v/i:0,w=(h+d)/2+Math.cos(u)*_-Math.sin(u)*M,S=(f+g)/2+Math.sin(u)*_+Math.cos(u)*M,C=[(v-_)/i,(y-M)/a],P=[(-1*v-_)/i,(-1*y-M)/a],O=s([1,0],C),T=s(C,P);return o(C,P)<=-1&&(T=Math.PI),o(C,P)>=1&&(T=0),0===p&&T>0&&(T-=2*Math.PI),1===p&&T<0&&(T+=2*Math.PI),{cx:w,cy:S,rx:l(t,[d,g])?0:i,ry:l(t,[d,g])?0:a,startAngle:O,endAngle:O+T,xRotation:u,arcFlag:c,sweepFlag:p}}},{"@antv/util/lib/mod":845,"@antv/util/lib/to-radian":865}],723:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(t,e,i){return t>=e&&t<=i};i.default=function(t,e,i,r){var a=i.x-t.x,o=i.y-t.y,s=e.x-t.x,l=e.y-t.y,u=r.x-i.x,c=r.y-i.y,p=s*c-l*u,h=null;if(p*p>.001*(s*s+l*l)*(u*u+c*c)){var f=(a*c-o*u)/p,d=(a*l-o*s)/p;n(f,0,1)&&n(d,0,1)&&(h={x:t.x+f*s,y:t.y+f*l})}return h}},{}],724:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./parse-path");i.parsePath=n.default;var r=t("./catmull-rom-2-bezier");i.catmullRom2Bezier=r.default;var a=t("./fill-path");i.fillPath=a.default;var o=t("./fill-path-by-diff");i.fillPathByDiff=o.default;var s=t("./format-path");i.formatPath=s.default;var l=t("./path-intersection");i.pathIntersection=l.default;var u=t("./parse-path-array");i.parsePathArray=u.default;var c=t("./parse-path-string");i.parsePathString=c.default;var p=t("./path-2-curve");i.path2Curve=p.default;var h=t("./path-2-absolute");i.path2Absolute=h.default;var f=t("./rect-path");i.reactPath=f.default;var d=t("./get-arc-params");i.getArcParams=d.default;var g=t("./path-2-segments");i.path2Segments=g.default;var v=t("./get-line-intersect");i.getLineIntersect=v.default;var y=t("./is-polygons-intersect");i.isPolygonsIntersect=y.default;var m=t("./point-in-polygon");i.isPointInPolygon=m.default},{"./catmull-rom-2-bezier":718,"./fill-path":720,"./fill-path-by-diff":719,"./format-path":721,"./get-arc-params":722,"./get-line-intersect":723,"./is-polygons-intersect":725,"./parse-path":728,"./parse-path-array":726,"./parse-path-string":727,"./path-2-absolute":729,"./path-2-curve":730,"./path-2-segments":731,"./path-intersection":732,"./point-in-polygon":733,"./rect-path":734}],725:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./point-in-polygon"),r=t("./get-line-intersect"),a=t("@antv/util");function o(t){for(var e=[],i=t.length,n=0;n<i-1;n++){var r=t[n],a=t[n+1];e.push({from:{x:r[0],y:r[1]},to:{x:a[0],y:a[1]}})}if(e.length>1){var o=t[0],s=t[i-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function s(t){var e=t.map((function(t){return t[0]})),i=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,i),maxY:Math.max.apply(null,i)}}i.default=function(t,e){if(t.length<2||e.length<2)return!1;var i,l,u=s(t),c=s(e);if(i=u,(l=c).minX>i.maxX||l.maxX<i.minX||l.minY>i.maxY||l.maxY<i.minY)return!1;var p=!1;if(a.each(e,(function(e){if(n.default(t,e[0],e[1]))return p=!0,!1})),p)return!0;if(a.each(t,(function(t){if(n.default(e,t[0],t[1]))return p=!0,!1})),p)return!0;var h=o(t),f=o(e),d=!1;return a.each(f,(function(t){if(function(t,e){var i=!1;return a.each(t,(function(t){if(r.default(t.from,t.to,e.from,e.to))return i=!0,!1})),i}(h,t))return d=!0,!1})),d}},{"./get-line-intersect":723,"./point-in-polygon":733,"@antv/util":803}],726:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=/,?([a-z]),?/gi;i.default=function(t){return t.join(",").replace(n,"$1")}},{}],727:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util/lib/is-array"),r="\t\n\v\f\r    \u2028\u2029",a=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig");i.default=function(t){if(!t)return null;if(n.default(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},i=[];return String(t).replace(a,(function(t,n,r){var a=[],s=n.toLowerCase();if(r.replace(o,(function(t,e){e&&a.push(+e)})),"m"===s&&a.length>2&&(i.push([n].concat(a.splice(0,2))),s="l",n="m"===n?"l":"L"),"o"===s&&1===a.length&&i.push([n,a[0]]),"r"===s)i.push([n].concat(a));else for(;a.length>=e[s]&&(i.push([n].concat(a.splice(0,e[s]))),e[s]););return""})),i}},{"@antv/util/lib/is-array":806}],728:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util/lib/each"),r=t("@antv/util/lib/is-array"),a=t("@antv/util/lib/is-string"),o=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,s=/[^\s\,]+/gi;i.default=function(t){var e=t||[];return r.default(e)?e:a.default(e)?(e=e.match(o),n.default(e,(function(t,i){if((t=t.match(s))[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}n.default(t,(function(e,i){isNaN(e)||(t[i]=+e)})),e[i]=t})),e):void 0}},{"@antv/util/lib/each":778,"@antv/util/lib/is-array":806,"@antv/util/lib/is-string":832}],729:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./parse-path-string"),r=/[a-z]/;function a(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}i.default=function(t){var e=n.default(t);if(!e||!e.length)return[["M",0,0]];for(var i=!1,o=0;o<e.length;o++){var s=e[o][0];if(r.test(s)||["V","H","T","S"].indexOf(s)>=0){i=!0;break}}if(!i)return e;var l=[],u=0,c=0,p=0,h=0,f=0,d=e[0];"M"!==d[0]&&"m"!==d[0]||(p=u=+d[1],h=c=+d[2],f++,l[0]=["M",u,c]),o=f;for(var g=e.length;o<g;o++){var v=e[o],y=l[o-1],m=[],b=(s=v[0]).toUpperCase();if(s!==b)switch(m[0]=b,b){case"A":m[1]=v[1],m[2]=v[2],m[3]=v[3],m[4]=v[4],m[5]=v[5],m[6]=+v[6]+u,m[7]=+v[7]+c;break;case"V":m[1]=+v[1]+c;break;case"H":m[1]=+v[1]+u;break;case"M":p=+v[1]+u,h=+v[2]+c;break;default:for(var x=1,_=v.length;x<_;x++)m[x]=+v[x]+(x%2?u:c)}else m=e[o];switch(b){case"Z":u=+p,c=+h;break;case"H":m=["L",u=m[1],c];break;case"V":m=["L",u,c=m[1]];break;case"T":u=m[1],c=m[2];var M=a([y[1],y[2]],[y[3],y[4]]);m=["Q",M[0],M[1],u,c];break;case"S":u=m[m.length-2],c=m[m.length-1];var w=y.length,S=a([y[w-4],y[w-3]],[y[w-2],y[w-1]]);m=["C",S[0],S[1],m[1],m[2],u,c];break;case"M":p=m[m.length-2],h=m[m.length-1];break;default:u=m[m.length-2],c=m[m.length-1]}l.push(m)}return l}},{"./parse-path-string":727}],730:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./path-2-absolute"),r=function(t,e,i,n,a,o,s,l,u,c){i===n&&(i+=1);var p,h,f,d,g,v=120*Math.PI/180,y=Math.PI/180*(+a||0),m=[],b=function(t,e,i){return{x:t*Math.cos(i)-e*Math.sin(i),y:t*Math.sin(i)+e*Math.cos(i)}};if(c)h=c[0],f=c[1],d=c[2],g=c[3];else{t=(p=b(t,e,-y)).x,e=p.y,l=(p=b(l,u,-y)).x,u=p.y,t===l&&e===u&&(l+=1,u+=1);var x=(t-l)/2,_=(e-u)/2,M=x*x/(i*i)+_*_/(n*n);M>1&&(i*=M=Math.sqrt(M),n*=M);var w=i*i,S=n*n,C=(o===s?-1:1)*Math.sqrt(Math.abs((w*S-w*_*_-S*x*x)/(w*_*_+S*x*x)));d=C*i*_/n+(t+l)/2,g=C*-n*x/i+(e+u)/2,h=Math.asin(Number(((e-g)/n).toFixed(9))),f=Math.asin(Number(((u-g)/n).toFixed(9))),h=t<d?Math.PI-h:h,f=l<d?Math.PI-f:f,h<0&&(h=2*Math.PI+h),f<0&&(f=2*Math.PI+f),s&&h>f&&(h-=2*Math.PI),!s&&f>h&&(f-=2*Math.PI)}var P=f-h;if(Math.abs(P)>v){var O=f,T=l,A=u;f=h+v*(s&&f>h?1:-1),l=d+i*Math.cos(f),u=g+n*Math.sin(f),m=r(l,u,i,n,a,0,s,T,A,[f,O,d,g])}P=f-h;var E=Math.cos(h),L=Math.sin(h),I=Math.cos(f),D=Math.sin(f),k=Math.tan(P/4),B=4/3*i*k,F=4/3*n*k,j=[t,e],R=[t+B*L,e-F*E],N=[l+B*D,u-F*I],Y=[l,u];if(R[0]=2*j[0]-R[0],R[1]=2*j[1]-R[1],c)return[R,N,Y].concat(m);for(var G=[],V=0,X=(m=[R,N,Y].concat(m).join().split(",")).length;V<X;V++)G[V]=V%2?b(m[V-1],m[V],y).y:b(m[V],m[V+1],y).x;return G},a=function(t,e,i,n){return[t,e,i,n,i,n]},o=function(t,e,i,n,r,a){return[1/3*t+2/3*i,1/3*e+2/3*n,1/3*r+2/3*i,1/3*a+2/3*n,r,a]};i.default=function(t,e){var i,s=n.default(t),l=e&&n.default(e),u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},c={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},p=[],h=[],f="",d="",g=function(t,e,i){var n,s;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(r.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===i||"S"===i?(n=2*e.x-e.bx,s=2*e.y-e.by):(n=e.x,s=e.y),t=["C",n,s].concat(t.slice(1));break;case"T":"Q"===i||"T"===i?(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(o(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(o(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(a(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(a(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(a(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(a(e.x,e.y,e.X,e.Y))}return t},v=function(t,e){if(t[e].length>7){t[e].shift();for(var n=t[e];n.length;)p[e]="A",l&&(h[e]="A"),t.splice(e++,0,["C"].concat(n.splice(0,6)));t.splice(e,1),i=Math.max(s.length,l&&l.length||0)}},y=function(t,e,n,r,a){t&&e&&"M"===t[a][0]&&"M"!==e[a][0]&&(e.splice(a,0,["M",r.x,r.y]),n.bx=0,n.by=0,n.x=t[a][1],n.y=t[a][2],i=Math.max(s.length,l&&l.length||0))};i=Math.max(s.length,l&&l.length||0);for(var m=0;m<i;m++){s[m]&&(f=s[m][0]),"C"!==f&&(p[m]=f,m&&(d=p[m-1])),s[m]=g(s[m],u,d),"A"!==p[m]&&"C"===f&&(p[m]="C"),v(s,m),l&&(l[m]&&(f=l[m][0]),"C"!==f&&(h[m]=f,m&&(d=h[m-1])),l[m]=g(l[m],c,d),"A"!==h[m]&&"C"===f&&(h[m]="C"),v(l,m)),y(s,l,u,c,m),y(l,s,c,u,m);var b=s[m],x=l&&l[m],_=b.length,M=l&&x.length;u.x=b[_-2],u.y=b[_-1],u.bx=parseFloat(b[_-4])||u.x,u.by=parseFloat(b[_-3])||u.y,c.bx=l&&(parseFloat(x[M-4])||c.x),c.by=l&&(parseFloat(x[M-3])||c.y),c.x=l&&x[M-2],c.y=l&&x[M-1]}return l?[s,l]:s}},{"./path-2-absolute":729}],731:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./get-arc-params"),r=t("./get-arc-params"),a=t("./parse-path");function o(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}i.default=function(t){for(var e=[],i=null,s=null,l=null,u=0,c=(t=a.default(t)).length,p=0;p<c;p++){var h=t[p];s=t[p+1];var f=h[0],d={command:f,prePoint:i,params:h,startTangent:null,endTangent:null};switch(f){case"M":l=[h[1],h[2]],u=p;break;case"A":var g=n.default(i,h);d.arcParams=g}if("Z"===f)i=l,s=t[u+1];else{var v=h.length;i=[h[v-2],h[v-1]]}s&&"Z"===s[0]&&(s=t[u],e[u]&&(e[u].prePoint=i)),d.currentPoint=i,e[u]&&r.isSamePoint(i,e[u].currentPoint)&&(e[u].prePoint=d.prePoint);var y=s?[s[s.length-2],s[s.length-1]]:null;d.nextPoint=y;var m=d.prePoint;if(["L","H","V"].includes(f))d.startTangent=[m[0]-i[0],m[1]-i[1]],d.endTangent=[i[0]-m[0],i[1]-m[1]];else if("Q"===f){var b=[h[1],h[2]];d.startTangent=[m[0]-b[0],m[1]-b[1]],d.endTangent=[i[0]-b[0],i[1]-b[1]]}else if("T"===f){b=o((M=e[p-1]).currentPoint,m);"Q"===M.command?(d.command="Q",d.startTangent=[m[0]-b[0],m[1]-b[1]],d.endTangent=[i[0]-b[0],i[1]-b[1]]):(d.command="TL",d.startTangent=[m[0]-i[0],m[1]-i[1]],d.endTangent=[i[0]-m[0],i[1]-m[1]])}else if("C"===f){var x=[h[1],h[2]],_=[h[3],h[4]];d.startTangent=[m[0]-x[0],m[1]-x[1]],d.endTangent=[i[0]-_[0],i[1]-_[1]]}else if("S"===f){var M;x=o((M=e[p-1]).currentPoint,m),_=[h[1],h[2]];"C"===M.command?(d.command="C",d.startTangent=[m[0]-x[0],m[1]-x[1]],d.endTangent=[i[0]-_[0],i[1]-_[1]]):(d.command="SQ",d.startTangent=[m[0]-_[0],m[1]-_[1]],d.endTangent=[i[0]-_[0],i[1]-_[1]])}else if("A"===f){var w=.001,S=d.arcParams||{},C=S.cx,P=void 0===C?0:C,O=S.cy,T=void 0===O?0:O,A=S.rx,E=void 0===A?0:A,L=S.ry,I=void 0===L?0:L,D=S.sweepFlag,k=void 0===D?0:D,B=S.startAngle,F=void 0===B?0:B,j=S.endAngle,R=void 0===j?0:j;0===k&&(w*=-1);var N=E*Math.cos(F-w)+P,Y=I*Math.sin(F-w)+T;d.startTangent=[N-l[0],Y-l[1]];var G=E*Math.cos(F+R+w)+P,V=I*Math.sin(F+R-w)+T;d.endTangent=[m[0]-G,m[1]-V]}e.push(d)}return e}},{"./get-arc-params":722,"./parse-path":728}],732:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("./rect-path"),a=t("./path-2-curve"),o=function(t,e,i,n,r){return t*(t*(-3*e+9*i-9*n+3*r)+6*e-12*i+6*n)-3*e+3*i},s=function(t,e,i,n,r,a,s,l,u){null===u&&(u=1);for(var c=(u=u>1?1:u<0?0:u)/2,p=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,d=0;d<12;d++){var g=c*p[d]+c,v=o(g,t,i,r,s),y=o(g,e,n,a,l),m=v*v+y*y;f+=h[d]*Math.sqrt(m)}return c*f},l=function(t,e,i,n,r,a,o,s){for(var l,u,c,p,h=[],f=[[],[]],d=0;d<2;++d)if(0===d?(u=6*t-12*i+6*r,l=-3*t+9*i-9*r+3*o,c=3*i-3*t):(u=6*e-12*n+6*a,l=-3*e+9*n-9*a+3*s,c=3*n-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;(p=-c/u)>0&&p<1&&h.push(p)}else{var g=u*u-4*c*l,v=Math.sqrt(g);if(!(g<0)){var y=(-u+v)/(2*l);y>0&&y<1&&h.push(y);var m=(-u-v)/(2*l);m>0&&m<1&&h.push(m)}}for(var b,x=h.length,_=x;x--;)b=1-(p=h[x]),f[0][x]=b*b*b*t+3*b*b*p*i+3*b*p*p*r+p*p*p*o,f[1][x]=b*b*b*e+3*b*b*p*n+3*b*p*p*a+p*p*p*s;return f[0][_]=t,f[1][_]=e,f[0][_+1]=o,f[1][_+1]=s,f[0].length=f[1].length=_+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}},u=function(t,e,i,n,r,a,o,s){if(!(Math.max(t,i)<Math.min(r,o)||Math.min(t,i)>Math.max(r,o)||Math.max(e,n)<Math.min(a,s)||Math.min(e,n)>Math.max(a,s))){var l=(t-i)*(a-s)-(e-n)*(r-o);if(l){var u=((t*n-e*i)*(r-o)-(t-i)*(r*s-a*o))/l,c=((t*n-e*i)*(a-s)-(e-n)*(r*s-a*o))/l,p=+u.toFixed(2),h=+c.toFixed(2);if(!(p<+Math.min(t,i).toFixed(2)||p>+Math.max(t,i).toFixed(2)||p<+Math.min(r,o).toFixed(2)||p>+Math.max(r,o).toFixed(2)||h<+Math.min(e,n).toFixed(2)||h>+Math.max(e,n).toFixed(2)||h<+Math.min(a,s).toFixed(2)||h>+Math.max(a,s).toFixed(2)))return{x:u,y:c}}}},c=function(t,e,i){return e>=t.x&&e<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},p=function(t,e,i,n){return null===t&&(t=e=i=n=0),null===e&&(e=t.y,i=t.width,n=t.height,t=t.x),{x:t,y:e,width:i,w:i,height:n,h:n,x2:t+i,y2:e+n,cx:t+i/2,cy:e+n/2,r1:Math.min(i,n)/2,r2:Math.max(i,n)/2,r0:Math.sqrt(i*i+n*n)/2,path:r.default(t,e,i,n),vb:[t,e,i,n].join(" ")}},h=function(t,e,i,r,a,o,s,u){n.isArray(t)||(t=[t,e,i,r,a,o,s,u]);var c=l.apply(null,t);return p(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},f=function(t,e,i,n,r,a,o,s,l){var u=1-l,c=Math.pow(u,3),p=Math.pow(u,2),h=l*l,f=h*l,d=t+2*l*(i-t)+h*(r-2*i+t),g=e+2*l*(n-e)+h*(a-2*n+e),v=i+2*l*(r-i)+h*(o-2*r+i),y=n+2*l*(a-n)+h*(s-2*a+n);return{x:c*t+3*p*l*i+3*u*l*l*r+f*o,y:c*e+3*p*l*n+3*u*l*l*a+f*s,m:{x:d,y:g},n:{x:v,y:y},start:{x:u*t+l*i,y:u*e+l*n},end:{x:u*r+l*o,y:u*a+l*s},alpha:90-180*Math.atan2(d-v,g-y)/Math.PI}},d=function(t,e,i){if(!function(t,e){return t=p(t),e=p(e),c(e,t.x,t.y)||c(e,t.x2,t.y)||c(e,t.x,t.y2)||c(e,t.x2,t.y2)||c(t,e.x,e.y)||c(t,e.x2,e.y)||c(t,e.x,e.y2)||c(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)}(h(t),h(e)))return i?0:[];for(var n=~~(s.apply(0,t)/8),r=~~(s.apply(0,e)/8),a=[],o=[],l={},d=i?0:[],g=0;g<n+1;g++){var v=f.apply(0,t.concat(g/n));a.push({x:v.x,y:v.y,t:g/n})}for(g=0;g<r+1;g++){v=f.apply(0,e.concat(g/r));o.push({x:v.x,y:v.y,t:g/r})}for(g=0;g<n;g++)for(var y=0;y<r;y++){var m=a[g],b=a[g+1],x=o[y],_=o[y+1],M=Math.abs(b.x-m.x)<.001?"y":"x",w=Math.abs(_.x-x.x)<.001?"y":"x",S=u(m.x,m.y,b.x,b.y,x.x,x.y,_.x,_.y);if(S){if(l[S.x.toFixed(4)]===S.y.toFixed(4))continue;l[S.x.toFixed(4)]=S.y.toFixed(4);var C=m.t+Math.abs((S[M]-m[M])/(b[M]-m[M]))*(b.t-m.t),P=x.t+Math.abs((S[w]-x[w])/(_[w]-x[w]))*(_.t-x.t);C>=0&&C<=1&&P>=0&&P<=1&&(i?d++:d.push({x:S.x,y:S.y,t1:C,t2:P}))}}return d};i.default=function(t,e){return function(t,e,i){var n,r,o,s,l,u,c,p,h,f;t=a.default(t),e=a.default(e);for(var g=i?0:[],v=0,y=t.length;v<y;v++){var m=t[v];if("M"===m[0])n=l=m[1],r=u=m[2];else{"C"===m[0]?(h=[n,r].concat(m.slice(1)),n=h[6],r=h[7]):(h=[n,r,n,r,l,u,l,u],n=l,r=u);for(var b=0,x=e.length;b<x;b++){var _=e[b];if("M"===_[0])o=c=_[1],s=p=_[2];else{"C"===_[0]?(f=[o,s].concat(_.slice(1)),o=f[6],s=f[7]):(f=[o,s,o,s,c,p,c,p],o=c,s=p);var M=d(h,f,i);if(i)g+=M;else{for(var w=0,S=M.length;w<S;w++)M[w].segment1=v,M[w].segment2=b,M[w].bez1=h,M[w].bez2=f;g=g.concat(M)}}}}}return g}(t,e)}},{"./path-2-curve":730,"./rect-path":734,"@antv/util":803}],733:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});function n(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function r(t,e,i){return(i[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(i[1]-t[1])&&Math.min(t[0],e[0])<=i[0]&&i[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=i[1]&&i[1]<=Math.max(t[1],e[1])}i.default=function(t,e,i){var a=!1,o=t.length;if(o<=2)return!1;for(var s=0;s<o;s++){var l=t[s],u=t[(s+1)%o];if(r(l,u,[e,i]))return!0;n(l[1]-i)>0!=n(u[1]-i)>0&&n(e-(i-l[1])*(l[0]-u[0])/(l[1]-u[1])-l[0])<0&&(a=!a)}return a}},{}],734:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e,i,n,r){return r?[["M",+t+ +r,e],["l",i-2*r,0],["a",r,r,0,0,1,r,r],["l",0,n-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-i,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-n],["a",r,r,0,0,1,r,-r],["z"]]:[["M",t,e],["l",i,0],["l",0,n],["l",-i,0],["z"]]}},{}],735:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("./tick-method/register"),a=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){n.assign(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return n.map(this.ticks,(function(e,i){return n.isObject(e)?e:{text:t.getText(e,i),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var i=this.formatter,r=i?i(t,e):t;return n.isNil(r)||!n.isFunction(r.toString)?"":r.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){n.assign(this,this.__cfg__),this.setDomain(),n.isEmpty(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(n.isString(t)){var i=r.getTickMethod(t);if(!i)throw new Error("There is no method to to calculate ticks!");e=i(this)}else n.isFunction(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return n.head(this.range)},t.prototype.rangeMax=function(){return n.last(this.range)},t.prototype.calcPercent=function(t,e,i){return n.isNumber(t)?(t-e)/(i-e):NaN},t.prototype.calcValue=function(t,e,i){return e+t*(i-e)},t}();i.default=a},{"./tick-method/register":756,"@antv/util":803}],736:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return n.__extends(e,t),e.prototype.translate=function(t){var e=r.indexOf(this.values,t);return-1===e?r.isNumber(t)?t:NaN:e},e.prototype.scale=function(t){var e=this.translate(t),i=this.calcPercent(e,this.min,this.max);return this.calcValue(i,this.rangeMin(),this.rangeMax())},e.prototype.invert=function(t){var e=this.max-this.min,i=this.calcPercent(t,this.rangeMin(),this.rangeMax()),n=Math.round(e*i)+this.min;return n<this.min||n>this.max?NaN:this.values[n]},e.prototype.getText=function(e){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];var o=e;return r.isNumber(e)&&!this.values.includes(e)&&(o=this.values[o]),t.prototype.getText.apply(this,n.__spreadArrays([o],i))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if(r.isNil(this.getConfig("min"))&&(this.min=0),r.isNil(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}},e}(t("../base").default);i.default=a},{"../base":735,"@antv/util":803,tslib:768}],737:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../util/time"),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return n.__extends(e,t),e.prototype.translate=function(t){t=a.toTimeStamp(t);var e=this.values.indexOf(t);return-1===e&&(e=r.isNumber(t)&&t<this.values.length?t:NaN),e},e.prototype.getText=function(t,e){var i=this.translate(t);if(i>-1){var n=this.values[i],r=this.formatter;return n=r?r(n,e):a.timeFormat(n,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;r.each(e,(function(t,i){e[i]=a.toTimeStamp(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(t("./base").default);i.default=o},{"../util/time":767,"./base":736,"@antv/util":803,tslib:768}],738:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return n.__extends(e,t),e.prototype.scale=function(t){if(r.isNil(t))return NaN;var e=this.rangeMin(),i=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(i-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,i=r.head(e),n=r.last(e);i<this.min&&(this.min=i),n>this.max&&(this.max=n),r.isNil(this.minLimit)||(this.min=i),r.isNil(this.maxLimit)||(this.max=n)},e.prototype.setDomain=function(){var t=r.getRange(this.values),e=t.min,i=t.max;r.isNil(this.min)&&(this.min=e),r.isNil(this.max)&&(this.max=i),this.min>this.max&&(this.min=e,this.max=i)},e.prototype.calculateTicks=function(){var e=this,i=t.prototype.calculateTicks.call(this);return this.nice||(i=r.filter(i,(function(t){return t>=e.min&&t<=e.max}))),i},e.prototype.getScalePercent=function(t){var e=this.max,i=this.min;return(t-i)/(e-i)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(t("../base").default);i.default=a},{"../base":735,"@antv/util":803,tslib:768}],739:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return n.__extends(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}(t("./base").default);i.default=r},{"./base":738,tslib:768}],740:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../util/math"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return n.__extends(e,t),e.prototype.invert=function(t){var e,i=this.base,n=r.log(i,this.max),a=this.rangeMin(),o=this.rangeMax()-a,s=this.positiveMin;if(s){if(0===t)return 0;var l=1/(n-(e=r.log(i,s/i)))*o;if(t<l)return t/l*s}else e=r.log(i,this.min);var u=(t-a)/o*(n-e)+e;return Math.pow(i,u)},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=r.getLogPositiveMin(this.values,this.base,this.max))},e.prototype.getScalePercent=function(t){var e=this.max,i=this.min;if(e===i)return 0;if(t<=0)return 0;var n=this.base,a=this.positiveMin;return a&&(i=1*a/n),t<a?t/a/(r.log(n,e)-r.log(n,i)):(r.log(n,t)-r.log(n,i))/(r.log(n,e)-r.log(n,i))},e}(t("./base").default);i.default=a},{"../util/math":764,"./base":738,tslib:768}],741:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("../util/math"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return n.__extends(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),i=this.exponent,n=r.calBase(i,this.max),a=r.calBase(i,this.min),o=e*(n-a)+a,s=o>=0?1:-1;return Math.pow(o,i)*s},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,i=this.min;if(e===i)return 0;var n=this.exponent;return(r.calBase(n,t)-r.calBase(n,i))/(r.calBase(n,e)-r.calBase(n,i))},e}(t("./base").default);i.default=a},{"../util/math":764,"./base":738,tslib:768}],742:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return n.__extends(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(t("./quantize").default);i.default=r},{"./quantize":743,tslib:768}],743:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return n.__extends(e,t),e.prototype.invert=function(t){var e=this.ticks,i=e.length,n=this.getInvertPercent(t),a=Math.floor(n*(i-1));if(a>=i-1)return r.last(e);if(a<0)return r.head(e);var o=e[a],s=a/(i-1);return o+(n-s)/((a+1)/(i-1)-s)*(e[a+1]-o)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||(r.last(e)!==this.max&&e.push(this.max),r.head(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<r.head(e))return 0;if(t>r.last(e))return 1;var i=0;return r.each(e,(function(e,n){if(!(t>=e))return!1;i=n})),i/(e.length-1)},e}(t("./base").default);i.default=a},{"./base":738,"@antv/util":803,tslib:768}],744:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=t("../util/time"),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return n.__extends(e,t),e.prototype.getText=function(t,e){var i=this.translate(t),n=this.formatter;return n?n(i,e):a.timeFormat(i,this.mask)},e.prototype.scale=function(e){var i=e;return(r.isString(i)||r.isDate(i))&&(i=this.translate(i)),t.prototype.scale.call(this,i)},e.prototype.translate=function(t){return a.toTimeStamp(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"),i=this.getConfig("max");if(r.isNil(e)&&r.isNumber(e)||(this.min=this.translate(this.min)),r.isNil(i)&&r.isNumber(i)||(this.max=this.translate(this.max)),t&&t.length){var n=[],o=1/0,s=o,l=0;r.each(t,(function(t){var e=a.toTimeStamp(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");o>e?(s=o,o=e):s>e&&(s=e),l<e&&(l=e),n.push(e)})),t.length>1&&(this.minTickInterval=s-o),r.isNil(e)&&(this.min=o),r.isNil(i)&&(this.max=l)}},e}(t("./linear").default);i.default=o},{"../util/time":767,"./linear":739,"@antv/util":803,tslib:768}],745:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.registerScale=i.getScale=i.Scale=void 0;var n=t("./base");i.Scale=n.default;var r={};function a(t){return r[t]}i.getScale=a,i.registerScale=function(t,e){if(a(t))throw new Error("type '"+t+"' existed.");r[t]=e}},{"./base":735}],746:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("tslib"),r=t("@antv/util"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return n.__extends(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&r.isNumber(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}(t("../base").default);i.default=a},{"../base":735,"@antv/util":803,tslib:768}],747:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.registerTickMethod=i.getTickMethod=i.registerScale=i.getScale=i.Scale=i.Quantize=i.Quantile=i.TimeCat=i.Time=i.Pow=i.Log=i.Linear=i.Identity=i.Category=void 0;var n=t("./base");i.Scale=n.default;var r=t("./category/base");i.Category=r.default;var a=t("./category/time");i.TimeCat=a.default;var o=t("./continuous/linear");i.Linear=o.default;var s=t("./continuous/log");i.Log=s.default;var l=t("./continuous/pow");i.Pow=l.default;var u=t("./continuous/time");i.Time=u.default;var c=t("./continuous/quantize");i.Quantize=c.default;var p=t("./continuous/quantile");i.Quantile=p.default;var h=t("./factory");Object.defineProperty(i,"getScale",{enumerable:!0,get:function(){return h.getScale}}),Object.defineProperty(i,"registerScale",{enumerable:!0,get:function(){return h.registerScale}});var f=t("./identity/index");i.Identity=f.default;var d=t("./tick-method/index");Object.defineProperty(i,"getTickMethod",{enumerable:!0,get:function(){return d.getTickMethod}}),Object.defineProperty(i,"registerTickMethod",{enumerable:!0,get:function(){return d.registerTickMethod}}),h.registerScale("cat",r.default),h.registerScale("category",r.default),h.registerScale("identity",f.default),h.registerScale("linear",o.default),h.registerScale("log",s.default),h.registerScale("pow",l.default),h.registerScale("time",u.default),h.registerScale("timeCat",a.default),h.registerScale("quantize",c.default),h.registerScale("quantile",p.default)},{"./base":735,"./category/base":736,"./category/time":737,"./continuous/linear":739,"./continuous/log":740,"./continuous/pow":741,"./continuous/quantile":742,"./continuous/quantize":743,"./continuous/time":744,"./factory":745,"./identity/index":746,"./tick-method/index":750}],748:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("../util/extended");i.default=function(t){var e=t.values,i=t.tickInterval,a=t.tickCount,o=e;if(n.isNumber(i))return n.filter(o,(function(t,e){return e%i==0}));var s=t.min,l=t.max;if(n.isNil(s)&&(s=0),n.isNil(l)&&(l=e.length-1),n.isNumber(a)&&a<l-s){var u=r.default(s,l,a,!1,[1,2,5,3,4,7,6,8,9]).ticks;return n.filter(u,(function(t){return t>=s&&t<=l})).map((function(t){return e[t]}))}return e.slice(s,l+1)}},{"../util/extended":762,"@antv/util":803}],749:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("../util/d3-linear"),a=t("../util/interval"),o=t("../util/strict-limit");i.default=function(t){var e=t.min,i=t.max,s=t.tickInterval,l=t.minLimit,u=t.maxLimit,c=r.default(t);return n.isNil(l)&&n.isNil(u)?s?a.default(e,i,s).ticks:c:o.default(t,n.head(c),n.last(c))}},{"../util/d3-linear":761,"../util/interval":763,"../util/strict-limit":766,"@antv/util":803}],750:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.registerTickMethod=i.getTickMethod=void 0;var n=t("./cat"),r=t("./d3-linear"),a=t("./linear"),o=t("./log"),s=t("./pow"),l=t("./quantile"),u=t("./r-prettry"),c=t("./register");Object.defineProperty(i,"getTickMethod",{enumerable:!0,get:function(){return c.getTickMethod}}),Object.defineProperty(i,"registerTickMethod",{enumerable:!0,get:function(){return c.registerTickMethod}});var p=t("./time"),h=t("./time-cat"),f=t("./time-pretty");c.registerTickMethod("cat",n.default),c.registerTickMethod("time-cat",h.default),c.registerTickMethod("wilkinson-extended",a.default),c.registerTickMethod("r-pretty",u.default),c.registerTickMethod("time",p.default),c.registerTickMethod("time-pretty",f.default),c.registerTickMethod("log",o.default),c.registerTickMethod("pow",s.default),c.registerTickMethod("quantile",l.default),c.registerTickMethod("d3-linear",r.default)},{"./cat":748,"./d3-linear":749,"./linear":751,"./log":752,"./pow":753,"./quantile":754,"./r-prettry":755,"./register":756,"./time":759,"./time-cat":757,"./time-pretty":758}],751:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("../util/extended"),a=t("../util/interval"),o=t("../util/strict-limit");i.default=function(t){var e=t.min,i=t.max,s=t.tickCount,l=t.nice,u=t.tickInterval,c=t.minLimit,p=t.maxLimit,h=r.default(e,i,s,l).ticks;return n.isNil(c)&&n.isNil(p)?u?a.default(e,i,u).ticks:h:o.default(t,n.head(h),n.last(h))}},{"../util/extended":762,"../util/interval":763,"../util/strict-limit":766,"@antv/util":803}],752:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../util/math");i.default=function(t){var e,i=t.base,r=t.tickCount,a=t.min,o=t.max,s=t.values,l=n.log(i,o);if(a>0)e=Math.floor(n.log(i,a));else{var u=n.getLogPositiveMin(s,i,o);e=Math.floor(n.log(i,u))}for(var c=l-e,p=Math.ceil(c/r),h=[],f=e;f<l+p;f+=p)h.push(Math.pow(i,f));return a<=0&&h.unshift(0),h}},{"../util/math":764}],753:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../util/math"),r=t("../util/pretty");i.default=function(t){var e=t.exponent,i=t.tickCount,a=Math.ceil(n.calBase(e,t.max)),o=Math.floor(n.calBase(e,t.min));return r.default(o,a,i).ticks.map((function(t){var i=t>=0?1:-1;return Math.pow(t,e)*i}))}},{"../util/math":764,"../util/pretty":765}],754:[function(t,e,i){"use strict";function n(t,e){var i=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:i%1!=0?t[Math.ceil(i)-1]:t.length%2==0?(t[i-1]+t[i])/2:t[i]}Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t){var e=t.tickCount,i=t.values;if(!i||!i.length)return[];for(var r=i.slice().sort((function(t,e){return t-e})),a=[],o=0;o<e;o++){var s=o/(e-1);a.push(n(r,s))}return a}},{}],755:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("../util/interval"),a=t("../util/pretty"),o=t("../util/strict-limit");i.default=function(t){var e=t.min,i=t.max,s=t.tickCount,l=t.tickInterval,u=t.minLimit,c=t.maxLimit,p=a.default(e,i,s).ticks;return n.isNil(u)&&n.isNil(c)?l?r.default(e,i,l).ticks:p:o.default(t,n.head(p),n.last(p))}},{"../util/interval":763,"../util/pretty":765,"../util/strict-limit":766,"@antv/util":803}],756:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.registerTickMethod=i.getTickMethod=void 0;var n={};i.getTickMethod=function(t){return n[t]},i.registerTickMethod=function(t,e){n[t]=e}},{}],757:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util"),r=t("./cat");i.default=function(t){var e=r.default(t),i=n.last(t.values);return i!==n.last(e)&&e.push(i),e}},{"./cat":748,"@antv/util":803}],758:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../util/time");function r(t){return new Date(t).getFullYear()}function a(t){return new Date(t,0,1).getTime()}function o(t){return new Date(t).getMonth()}function s(t,e){return new Date(t,e,1).getTime()}i.default=function(t){var e=t.min,i=t.max,l=t.minTickInterval,u=t.tickInterval,c=t.tickCount,p=[];u||(u=(i-e)/c,l&&u<l&&(u=l));var h=r(e);if(u>n.YEAR)for(var f=r(i),d=Math.ceil(u/n.YEAR),g=h;g<=f+d;g+=d)p.push(a(g));else if(u>n.MONTH){var v=Math.ceil(u/n.MONTH),y=o(e),m=function(t,e){var i=r(t),n=r(e),a=o(t);return 12*(n-i)+(o(e)-a)%12}(e,i);for(g=0;g<=m+v;g+=v)p.push(s(h,g+y))}else if(u>n.DAY){var b=(S=new Date(e)).getFullYear(),x=S.getMonth(),_=S.getDate(),M=Math.ceil(u/n.DAY),w=function(t,e){return Math.ceil((e-t)/n.DAY)}(e,i);for(g=0;g<w+M;g+=M)p.push(new Date(b,x,_+g).getTime())}else if(u>n.HOUR){b=(S=new Date(e)).getFullYear(),x=S.getMonth(),M=S.getDate();var S,C=S.getHours(),P=Math.ceil(u/n.HOUR),O=function(t,e){return Math.ceil((e-t)/n.HOUR)}(e,i);for(g=0;g<=O+P;g+=P)p.push(new Date(b,x,M,C+g).getTime())}else if(u>n.MINUTE){var T=function(t,e){return Math.ceil((e-t)/6e4)}(e,i),A=Math.ceil(u/n.MINUTE);for(g=0;g<=T+A;g+=A)p.push(e+g*n.MINUTE)}else{var E=u;E<n.SECOND&&(E=n.SECOND);var L=Math.floor(e/n.SECOND)*n.SECOND,I=Math.ceil((i-e)/n.SECOND),D=Math.ceil(E/n.SECOND);for(g=0;g<I+D;g+=D)p.push(L+g*n.SECOND)}return p}},{"../util/time":767}],759:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("../util/time");i.default=function(t){var e=t.min,i=t.max,r=t.minTickInterval,a=t.tickInterval,o=t.tickCount;if(a)o=Math.ceil((i-e)/a);else{var s=(i-e)/(a=n.getTickInterval(e,i,o)[1])/o;s>1&&(a*=Math.ceil(s)),r&&a<r&&(a=r)}for(var l=[],u=e;u<i+a;u+=a)l.push(u);return l}},{"../util/time":767}],760:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util");i.default=function(t){return function(e,i,r,a){for(var o=n.isNil(r)?0:r,s=n.isNil(a)?e.length:a;o<s;){var l=o+s>>>1;t(e[l])>i?s=l:o=l+1}return o}}},{"@antv/util":803}],761:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.D3Linear=void 0,i.default=function(t){var e=t.min,i=t.max,n=t.nice,r=t.tickCount,a=new o;return a.domain([e,i]),n&&a.nice(r),a.ticks(r)};var n=Math.sqrt(50),r=Math.sqrt(10),a=Math.sqrt(2),o=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,i;void 0===t&&(t=5);var n,r=this._domain.slice(),a=0,o=this._domain.length-1,l=this._domain[a],u=this._domain[o];return u<l&&(l=(e=[u,l])[0],u=e[1],a=(i=[o,a])[0],o=i[1]),(n=s(l,u,t))>0?n=s(l=Math.floor(l/n)*n,u=Math.ceil(u/n)*n,t):n<0&&(n=s(l=Math.ceil(l*n)/n,u=Math.floor(u*n)/n,t)),n>0?(r[a]=Math.floor(l/n)*n,r[o]=Math.ceil(u/n)*n,this.domain(r)):n<0&&(r[a]=Math.ceil(l*n)/n,r[o]=Math.floor(u*n)/n,this.domain(r)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,i){var n,r,a,o,l=-1;if(i=+i,(t=+t)===(e=+e)&&i>0)return[t];(n=e<t)&&(r=t,t=e,e=r);if(0===(o=s(t,e,i))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(r=Math.ceil(e-t+1));++l<r;)a[l]=(t+l)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(r=Math.ceil(t-e+1));++l<r;)a[l]=(t-l)/o;n&&a.reverse();return a}(this._domain[0],this._domain[this._domain.length-1],t||5)},t}();function s(t,e,i){var o=(e-t)/Math.max(0,i),s=Math.floor(Math.log(o)/Math.LN10),l=o/Math.pow(10,s);return s>=0?(l>=n?10:l>=r?5:l>=a?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=n?10:l>=r?5:l>=a?2:1)}i.D3Linear=o},{}],762:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ALL_Q=i.DEFAULT_Q=void 0;var n=t("@antv/util");i.DEFAULT_Q=[1,5,2,2.5,4,3],i.ALL_Q=[1,5,2,2.5,4,3,1.5,7,6,8,9];var r=100*Number.EPSILON;function a(t,e,i,a,o,s){var l=n.size(e),u=n.indexOf(e,t),c=0,p=function(t,e){return(t%e+e)%e}(a,s);return(p<r||s-p<r)&&a<=0&&o>=0&&(c=1),1-u/(l-1)-i+c}function o(t,e,i){var r=n.size(e);return 1-n.indexOf(e,t)/(r-1)-i+1}function s(t,e,i,n,r,a){var o=(t-1)/(a-r),s=(e-1)/(Math.max(a,n)-Math.min(i,r));return 2-Math.max(o/s,s/o)}function l(t,e){return t>=e?2-(t-1)/(e-1):1}function u(t,e,i,n){var r=e-t;return 1-.5*(Math.pow(e-n,2)+Math.pow(t-i,2))/Math.pow(.1*r,2)}function c(t,e,i){var n=e-t;if(i>n){var r=(i-n)/2;return 1-Math.pow(r,2)/Math.pow(.1*n,2)}return 1}i.default=function(t,e,r,p,h,f){if(void 0===r&&(r=5),void 0===p&&(p=!0),void 0===h&&(h=i.DEFAULT_Q),void 0===f&&(f=[.25,.2,.5,.05]),t===e||1===r)return{min:t,max:e,ticks:[t]};for(var d={score:-2,lmin:0,lmax:0,lstep:0},g=1;g<1/0;){for(var v=0,y=h;v<y.length;v++){var m=y[v],b=o(m,h,g);if(Number.isNaN(b))throw new Error("NaN");if(f[0]*b+f[1]+f[2]+f[3]<d.score){g=1/0;break}for(var x=2;x<1/0;){var _=l(x,r);if(f[0]*b+f[1]+f[2]*_+f[3]<d.score)break;for(var M=(e-t)/(x+1)/g/m,w=Math.ceil(Math.log10(M));w<1/0;){var S=g*m*Math.pow(10,w),C=c(t,e,S*(x-1));if(f[0]*b+f[1]*C+f[2]*_+f[3]<d.score)break;var P=Math.floor(e/S)*g-(x-1)*g,O=Math.ceil(t/S)*g;if(P>O)w+=1;else{for(var T=P;T<=O;T+=1){var A=T*(S/g),E=A+S*(x-1),L=S,I=a(m,h,g,A,E,L),D=u(t,e,A,E),k=s(x,r,t,e,A,E),B=f[0]*I+f[1]*D+f[2]*k+1*f[3];B>d.score&&(!p||A<=t&&E>=e)&&(d.lmin=A,d.lmax=E,d.lstep=L,d.score=B)}w+=1}}x+=1}}g+=1}for(var F=Number.isInteger(d.lstep)?0:Math.ceil(Math.abs(Math.log10(d.lstep))),j=[],R=d.lmin;R<=d.lmax;R+=d.lstep)j.push(R);var N=F?n.map(j,(function(t){return Number.parseFloat(t.toFixed(F))})):j;return{min:Math.min(t,n.head(N)),max:Math.max(e,n.last(N)),ticks:N}}},{"@antv/util":803}],763:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util");function r(t,e,i){return("ceil"===i?Math.ceil(t/e):"floor"===i?Math.floor(t/e):Math.round(t/e))*e}i.default=function(t,e,i){var a=r(t,i,"floor"),o=r(e,i,"ceil");a=n.fixedBase(a,i),o=n.fixedBase(o,i);for(var s=[],l=a;l<=o;l+=i){var u=n.fixedBase(l,i);s.push(u)}return{min:a,max:o,ticks:s}}},{"@antv/util":803}],764:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getLogPositiveMin=i.log=i.calBase=void 0;var n=t("@antv/util");i.calBase=function(t,e){var i=Math.E;return e>=0?Math.pow(i,Math.log(e)/t):-1*Math.pow(i,Math.log(-e)/t)},i.log=function(t,e){return 1===t?1:Math.log(e)/Math.log(t)},i.getLogPositiveMin=function(t,e,i){n.isNil(i)&&(i=Math.max.apply(null,t));var r=i;return n.each(t,(function(t){t>0&&t<r&&(r=t)})),r===i&&(r=i/e),r>1&&(r=1),r}},{"@antv/util":803}],765:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e,i){void 0===i&&(i=5);var n={max:0,min:0,ticks:[]},r=(e-t)/i,a=Math.pow(10,Math.floor(Math.log10(r))),o=a<1?Math.ceil(Math.abs(Math.log10(a))):0,s=a;2*a-r<1.5*(r-s)&&5*a-r<2.75*(r-(s=2*a))&&10*a-r<1.5*(r-(s=5*a))&&(s=10*a);var l=Math.ceil(e/s),u=Math.floor(t/s);n.max=Math.max(l*s,e),n.min=Math.min(u*s,t);for(var c=Number.parseFloat((u*s).toFixed(o));c<e;)n.ticks.push(c),c+=s,o&&(c=Number.parseFloat(c.toFixed(o)));return n.ticks.push(c),n}},{}],766:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("@antv/util");i.default=function(t,e,i){var r,a=t.minLimit,o=t.maxLimit,s=t.min,l=t.max,u=t.tickCount,c=void 0===u?5:u,p=n.isNil(a)?n.isNil(e)?s:e:a,h=n.isNil(o)?n.isNil(i)?l:i:o;if(p>h&&(h=(r=[p,h])[0],p=r[1]),c<=2)return[p,h];for(var f=(h-p)/(c-1),d=[],g=0;g<c;g++)d.push(p+f*g);return d}},{"@antv/util":803}],767:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getTickInterval=i.YEAR=i.MONTH=i.DAY=i.HOUR=i.MINUTE=i.SECOND=i.toTimeStamp=i.timeFormat=void 0;var n=t("@antv/util"),r=t("fecha"),a=t("fecha"),o=t("./bisector");i.timeFormat=function(t,e){return(a.format||r.default.format)(t,e)},i.toTimeStamp=function(t){return n.isString(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),n.isDate(t)&&(t=t.getTime()),t};i.SECOND=1e3;i.MINUTE=6e4;var s=36e5;i.HOUR=s;var l=24*s;i.DAY=l;var u=31*l;i.MONTH=u;i.YEAR=31536e6;var c=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",s],["HH",6*s],["HH",12*s],["YYYY-MM-DD",l],["YYYY-MM-DD",4*l],["YYYY-WW",7*l],["YYYY-MM",u],["YYYY-MM",4*u],["YYYY-MM",6*u],["YYYY",380*l]];i.getTickInterval=function(t,e,i){var r=(e-t)/i,a=o.default((function(t){return t[1]}))(c,r)-1,s=c[a];return a<0?s=c[0]:a>=c.length&&(s=n.last(c)),s}},{"./bisector":760,"@antv/util":803,fecha:881}],768:[function(t,e,i){(function(t){
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var i,n,r,a,o,s,l,u,c,p,h,f,d,g,v,y,m,b,x,_,M,w,S;!function(i){var n="object"==typeof t?t:"object"==typeof self?self:"object"==typeof this?this:{};function r(t,e){return t!==n&&("function"==typeof Object.create?Object.defineProperty(t,"__esModule",{value:!0}):t.__esModule=!0),function(i,n){return t[i]=e?e(i,n):n}}"function"==typeof define&&define.amd?define("tslib",["exports"],(function(t){i(r(n,r(t)))})):"object"==typeof e&&"object"==typeof e.exports?i(r(n,r(e.exports))):i(r(n))}((function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])};i=function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)},n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},r=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(t);r<n.length;r++)e.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]])}return i},a=function(t,e,i,n){var r,a=arguments.length,o=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(o=(a<3?r(o):a>3?r(e,i,o):r(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o},o=function(t,e){return function(i,n){e(i,n,t)}},s=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(t,e,i,n){return new(i||(i=Promise))((function(r,a){function o(t){try{l(n.next(t))}catch(t){a(t)}}function s(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,s)}l((n=n.apply(t,e||[])).next())}))},u=function(t,e){var i,n,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},c=function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||S(e,t,i)},S=Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]},p=function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},h=function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,a=i.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o},f=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t},d=function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),r=0;for(e=0;e<i;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,r++)n[r]=a[o];return n},g=function(t){return this instanceof g?(this.v=t,this):new g(t)},v=function(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,r=i.apply(t,e||[]),a=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(t){r[t]&&(n[t]=function(e){return new Promise((function(i,n){a.push([t,e,i,n])>1||s(t,e)}))})}function s(t,e){try{(i=r[t](e)).value instanceof g?Promise.resolve(i.value.v).then(l,u):c(a[0][2],i)}catch(t){c(a[0][3],t)}var i}function l(t){s("next",t)}function u(t){s("throw",t)}function c(t,e){t(e),a.shift(),a.length&&s(a[0][0],a[0][1])}},y=function(t){var e,i;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,r){e[n]=t[n]?function(e){return(i=!i)?{value:g(t[n](e)),done:"return"===n}:r?r(e):e}:r}},m=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t=p(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(i){e[i]=t[i]&&function(e){return new Promise((function(n,r){(function(t,e,i,n){Promise.resolve(n).then((function(e){t({value:e,done:i})}),e)})(n,r,(e=t[i](e)).done,e.value)}))}}},b=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t};var C=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};x=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&S(e,t,i);return C(e,t),e},_=function(t){return t&&t.__esModule?t:{default:t}},M=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},w=function(t,e,i){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,i),i},t("__extends",i),t("__assign",n),t("__rest",r),t("__decorate",a),t("__param",o),t("__metadata",s),t("__awaiter",l),t("__generator",u),t("__exportStar",c),t("__createBinding",S),t("__values",p),t("__read",h),t("__spread",f),t("__spreadArrays",d),t("__await",g),t("__asyncGenerator",v),t("__asyncDelegator",y),t("__asyncValues",m),t("__makeTemplateObject",b),t("__importStar",x),t("__importDefault",_),t("__classPrivateFieldGet",M),t("__classPrivateFieldSet",w)}))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],769:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./mix"),r=t("./is-function");i.default=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=t[0],a=1;a<t.length;a++){var o=t[a];r.default(o)&&(o=o.prototype),n.default(i.prototype,o)}}},{"./is-function":817,"./mix":844}],770:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var i=this.map[t];return void 0===i?e:i},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}();i.default=n},{}],771:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});i.default=function(t,e,i){return t<e?e:t>i?i:t}},{}],772:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}},{}],773:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array"),r=function(t){if("object"!=typeof t||null===t)return t;var e;if(n.default(t)){e=[];for(var i=0,a=t.length;i<a;i++)"object"==typeof t[i]&&null!=t[i]?e[i]=r(t[i]):e[i]=t[i]}else for(var o in e={},t)"object"==typeof t[o]&&null!=t[o]?e[o]=r(t[o]):e[o]=t[o];return e};i.default=r},{"./is-array":806}],774:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array-like");i.default=function(t,e){return!!n.default(t)&&t.indexOf(e)>-1}},{"./is-array-like":805}],775:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e,i){var n;return function(){var r=this,a=arguments,o=function(){n=null,i||t.apply(r,a)},s=i&&!n;clearTimeout(n),n=setTimeout(o,e),s&&t.apply(r,a)}}},{}],776:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array"),r=t("./is-plain-object");function a(t,e,i,o){for(var s in i=i||0,o=o||5,e)if(e.hasOwnProperty(s)){var l=e[s];null!==l&&r.default(l)?(r.default(t[s])||(t[s]={}),i<o?a(t[s],l,i+1,o):t[s]=e[s]):n.default(l)?(t[s]=[],t[s]=t[s].concat(l)):void 0!==l&&(t[s]=l)}}i.default=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];for(var n=0;n<e.length;n+=1)a(t,e[n]);return t}},{"./is-array":806,"./is-plain-object":828}],777:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./filter"),r=t("./contains");i.default=function(t,e){return void 0===e&&(e=[]),n.default(t,(function(t){return!r.default(e,t)}))}},{"./contains":774,"./filter":782}],778:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array"),r=t("./is-object");i.default=function(t,e){if(t)if(n.default(t))for(var i=0,a=t.length;i<a&&!1!==e(t[i],i);i++);else if(r.default(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break}},{"./is-array":806,"./is-object":826}],779:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array"),r=t("./is-string");i.default=function(t,e){return!(!n.default(t)&&!r.default(t))&&t[t.length-1]===e}},{"./is-array":806,"./is-string":832}],780:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});i.default=function(t,e){for(var i=0;i<t.length;i++)if(!e(t[i],i))return!1;return!0}},{}],781:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./mix"),r=t("./is-function");i.default=function(t,e,i,a){r.default(e)||(i=e,e=t,t=function(){});var o=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function i(){}i.prototype=t;var n=new i;return n.constructor=e,n},s=o(e.prototype,t);return t.prototype=n.default(s,t.prototype),t.superclass=o(e.prototype,e),n.default(s,i),n.default(t,a),t}},{"./is-function":817,"./mix":844}],782:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array-like");i.default=function(t,e){if(!n.default(t))return t;for(var i=[],r=0;r<t.length;r++){var a=t[r];e(a,r)&&i.push(a)}return i}},{"./is-array-like":805}],783:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e,i){void 0===i&&(i=0);for(var n=i;n<t.length;n++)if(e(t[n],n))return n;return-1}},{}],784:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-function"),r=t("./is-match"),a=t("./is-array"),o=t("./is-plain-object");i.default=function(t,e){if(!a.default(t))return null;var i;if(n.default(e)&&(i=e),o.default(e)&&(i=function(t){return r.default(t,e)}),i)for(var s=0;s<t.length;s+=1)if(i(t[s]))return t[s];return null}},{"./is-array":806,"./is-function":817,"./is-match":819,"./is-plain-object":828}],785:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-nil"),r=t("./is-array");i.default=function(t,e){for(var i=null,a=0;a<t.length;a++){var o=t[a][e];if(!n.default(o)){i=r.default(o)?o[0]:o;break}}return i}},{"./is-array":806,"./is-nil":821}],786:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});i.default=function(t,e){var i=e.toString(),n=i.indexOf(".");if(-1===n)return Math.round(t);var r=i.substr(n+1).length;return r>20&&(r=20),parseFloat(t.toFixed(r))}},{}],787:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array"),r=function(t,e){if(void 0===e&&(e=[]),n.default(t))for(var i=0;i<t.length;i+=1)r(t[i],e);else e.push(t);return e};i.default=r},{"./is-array":806}],788:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array");i.default=function(t){if(!n.default(t))return[];for(var e=[],i=0;i<t.length;i++)e=e.concat(t[i]);return e}},{"./is-array":806}],789:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./each");i.default=n.default},{"./each":778}],790:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array");i.default=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(n.default(t[0])){for(var i=[],r=0;r<t.length;r++)i=i.concat(t[r]);e=i}var a=Math.max.apply(null,e);return{min:Math.min.apply(null,e),max:a}}},{"./is-array":806}],791:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={}.toString;i.default=function(t){return n.call(t).replace(/^\[object /,"").replace(/]$/,"")}},{}],792:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e){return t["_wrap_"+e]}},{}],793:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-string");i.default=function(t,e,i){for(var r=0,a=n.default(e)?e.split("."):e;t&&r<a.length;)t=t[a[r++]];return void 0===t||r<a.length?i:t}},{"./is-string":832}],794:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array"),r=t("./is-function"),a=Object.prototype.hasOwnProperty;i.default=function(t,e){if(!e||!n.default(t))return{};for(var i,o={},s=r.default(e)?e:function(t){return t[e]},l=0;l<t.length;l++){var u=t[l];i=s(u),a.call(o,i)?o[i].push(u):o[i]=[u]}return o}},{"./is-array":806,"./is-function":817}],795:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array"),r=t("./is-function"),a=t("./group-by");i.default=function(t,e){if(!e)return{0:t};if(!r.default(e)){var i=n.default(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",n=0,r=i.length;n<r;n++)e+=t[i[n]]&&t[i[n]].toString();return e}}return a.default(t,e)}},{"./group-by":794,"./is-array":806,"./is-function":817}],796:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./group-to-map");i.default=function(t,e){if(!e)return[t];var i=n.default(t,e),r=[];for(var a in i)r.push(i[a]);return r}},{"./group-to-map":795}],797:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./has");i.default=n.default},{"./has":799}],798:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./contains"),r=t("./values");i.default=function(t,e){return n.default(r.default(t),e)}},{"./contains":774,"./values":873}],799:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e){return t.hasOwnProperty(e)}},{}],800:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array-like");i.default=function(t){if(n.default(t))return t[0]}},{"./is-array-like":805}],801:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t){return t}},{}],802:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array-like");i.default=function(t,e){if(!n.default(t))return-1;var i=Array.prototype.indexOf;if(i)return i.call(t,e);for(var r=-1,a=0;a<t.length;a++)if(t[a]===e){r=a;break}return r}},{"./is-array-like":805}],803:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./contains");i.contains=n.default,i.includes=n.default;var r=t("./difference");i.difference=r.default;var a=t("./find");i.find=a.default;var o=t("./find-index");i.findIndex=o.default;var s=t("./first-value");i.firstValue=s.default;var l=t("./flatten");i.flatten=l.default;var u=t("./flatten-deep");i.flattenDeep=u.default;var c=t("./get-range");i.getRange=c.default;var p=t("./pull");i.pull=p.default;var h=t("./pull-at");i.pullAt=h.default;var f=t("./reduce");i.reduce=f.default;var d=t("./remove");i.remove=d.default;var g=t("./sort-by");i.sortBy=g.default;var v=t("./union");i.union=v.default;var y=t("./uniq");i.uniq=y.default;var m=t("./values-of-key");i.valuesOfKey=m.default;var b=t("./head");i.head=b.default;var x=t("./last");i.last=x.default;var _=t("./starts-with");i.startsWith=_.default;var M=t("./ends-with");i.endsWith=M.default;var w=t("./filter");i.filter=w.default;var S=t("./every");i.every=S.default;var C=t("./some");i.some=C.default;var P=t("./group");i.group=P.default;var O=t("./group-by");i.groupBy=O.default;var T=t("./group-to-map");i.groupToMap=T.default;var A=t("./get-wrap-behavior");i.getWrapBehavior=A.default;var E=t("./wrap-behavior");i.wrapBehavior=E.default;var L=t("./number2color");i.number2color=L.default;var I=t("./parse-radius");i.parseRadius=I.default;var D=t("./clamp");i.clamp=D.default;var k=t("./fixed-base");i.fixedBase=k.default;var B=t("./is-decimal");i.isDecimal=B.default;var F=t("./is-even");i.isEven=F.default;var j=t("./is-integer");i.isInteger=j.default;var R=t("./is-negative");i.isNegative=R.default;var N=t("./is-number-equal");i.isNumberEqual=N.default;var Y=t("./is-odd");i.isOdd=Y.default;var G=t("./is-positive");i.isPositive=G.default;var V=t("./max-by");i.maxBy=V.default;var X=t("./min-by");i.minBy=X.default;var z=t("./mod");i.mod=z.default;var H=t("./to-degree");i.toDegree=H.default;var W=t("./to-integer");i.toInteger=W.default;var q=t("./to-radian");i.toRadian=q.default;var U=t("./for-in");i.forIn=U.default;var Z=t("./has");i.has=Z.default;var K=t("./has-key");i.hasKey=K.default;var Q=t("./has-value");i.hasValue=Q.default;var $=t("./keys");i.keys=$.default;var J=t("./is-match");i.isMatch=J.default;var tt=t("./values");i.values=tt.default;var et=t("./lower-case");i.lowerCase=et.default;var it=t("./lower-first");i.lowerFirst=it.default;var nt=t("./substitute");i.substitute=nt.default;var rt=t("./upper-case");i.upperCase=rt.default;var at=t("./upper-first");i.upperFirst=at.default;var ot=t("./get-type");i.getType=ot.default;var st=t("./is-arguments");i.isArguments=st.default;var lt=t("./is-array");i.isArray=lt.default;var ut=t("./is-array-like");i.isArrayLike=ut.default;var ct=t("./is-boolean");i.isBoolean=ct.default;var pt=t("./is-date");i.isDate=pt.default;var ht=t("./is-error");i.isError=ht.default;var ft=t("./is-function");i.isFunction=ft.default;var dt=t("./is-finite");i.isFinite=dt.default;var gt=t("./is-nil");i.isNil=gt.default;var vt=t("./is-null");i.isNull=vt.default;var yt=t("./is-number");i.isNumber=yt.default;var mt=t("./is-object");i.isObject=mt.default;var bt=t("./is-object-like");i.isObjectLike=bt.default;var xt=t("./is-plain-object");i.isPlainObject=xt.default;var _t=t("./is-prototype");i.isPrototype=_t.default;var Mt=t("./is-reg-exp");i.isRegExp=Mt.default;var wt=t("./is-string");i.isString=wt.default;var St=t("./is-type");i.isType=St.default;var Ct=t("./is-undefined");i.isUndefined=Ct.default;var Pt=t("./is-element");i.isElement=Pt.default;var Ot=t("./request-animation-frame");i.requestAnimationFrame=Ot.default;var Tt=t("./clear-animation-frame");i.clearAnimationFrame=Tt.default;var At=t("./augment");i.augment=At.default;var Et=t("./clone");i.clone=Et.default;var Lt=t("./debounce");i.debounce=Lt.default;var It=t("./memoize");i.memoize=It.default;var Dt=t("./deep-mix");i.deepMix=Dt.default;var kt=t("./each");i.each=kt.default;var Bt=t("./extend");i.extend=Bt.default;var Ft=t("./index-of");i.indexOf=Ft.default;var jt=t("./is-empty");i.isEmpty=jt.default;var Rt=t("./is-equal");i.isEqual=Rt.default;var Nt=t("./is-equal-with");i.isEqualWith=Nt.default;var Yt=t("./map");i.map=Yt.default;var Gt=t("./map-values");i.mapValues=Gt.default;var Vt=t("./mix");i.mix=Vt.default,i.assign=Vt.default;var Xt=t("./get");i.get=Xt.default;var zt=t("./set");i.set=zt.default;var Ht=t("./pick");i.pick=Ht.default;var Wt=t("./throttle");i.throttle=Wt.default;var qt=t("./to-array");i.toArray=qt.default;var Ut=t("./to-string");i.toString=Ut.default;var Zt=t("./unique-id");i.uniqueId=Zt.default;var Kt=t("./noop");i.noop=Kt.default;var Qt=t("./identity");i.identity=Qt.default;var $t=t("./size");i.size=$t.default;var Jt=t("./cache");i.Cache=Jt.default},{"./augment":769,"./cache":770,"./clamp":771,"./clear-animation-frame":772,"./clone":773,"./contains":774,"./debounce":775,"./deep-mix":776,"./difference":777,"./each":778,"./ends-with":779,"./every":780,"./extend":781,"./filter":782,"./find":784,"./find-index":783,"./first-value":785,"./fixed-base":786,"./flatten":788,"./flatten-deep":787,"./for-in":789,"./get":793,"./get-range":790,"./get-type":791,"./get-wrap-behavior":792,"./group":796,"./group-by":794,"./group-to-map":795,"./has":799,"./has-key":797,"./has-value":798,"./head":800,"./identity":801,"./index-of":802,"./is-arguments":804,"./is-array":806,"./is-array-like":805,"./is-boolean":807,"./is-date":808,"./is-decimal":809,"./is-element":810,"./is-empty":811,"./is-equal":813,"./is-equal-with":812,"./is-error":814,"./is-even":815,"./is-finite":816,"./is-function":817,"./is-integer":818,"./is-match":819,"./is-negative":820,"./is-nil":821,"./is-null":822,"./is-number":824,"./is-number-equal":823,"./is-object":826,"./is-object-like":825,"./is-odd":827,"./is-plain-object":828,"./is-positive":829,"./is-prototype":830,"./is-reg-exp":831,"./is-string":832,"./is-type":833,"./is-undefined":834,"./keys":835,"./last":836,"./lower-case":837,"./lower-first":838,"./map":840,"./map-values":839,"./max-by":841,"./memoize":842,"./min-by":843,"./mix":844,"./mod":845,"./noop":846,"./number2color":847,"./parse-radius":848,"./pick":849,"./pull":851,"./pull-at":850,"./reduce":852,"./remove":853,"./request-animation-frame":854,"./set":855,"./size":856,"./some":857,"./sort-by":858,"./starts-with":859,"./substitute":860,"./throttle":861,"./to-array":862,"./to-degree":863,"./to-integer":864,"./to-radian":865,"./to-string":866,"./union":867,"./uniq":868,"./unique-id":869,"./upper-case":870,"./upper-first":871,"./values":873,"./values-of-key":872,"./wrap-behavior":874}],804:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-type");i.default=function(t){return n.default(t,"Arguments")}},{"./is-type":833}],805:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});i.default=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},{}],806:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-type");i.default=function(t){return Array.isArray?Array.isArray(t):n.default(t,"Array")}},{"./is-type":833}],807:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-type");i.default=function(t){return n.default(t,"Boolean")}},{"./is-type":833}],808:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-type");i.default=function(t){return n.default(t,"Date")}},{"./is-type":833}],809:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-number");i.default=function(t){return n.default(t)&&t%1!=0}},{"./is-number":824}],810:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});i.default=function(t){return t instanceof Element||t instanceof HTMLDocument}},{}],811:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-nil"),r=t("./is-array-like"),a=t("./get-type"),o=t("./is-prototype"),s=Object.prototype.hasOwnProperty;i.default=function(t){if(n.default(t))return!0;if(r.default(t))return!t.length;var e=a.default(t);if("Map"===e||"Set"===e)return!t.size;if(o.default(t))return!Object.keys(t).length;for(var i in t)if(s.call(t,i))return!1;return!0}},{"./get-type":791,"./is-array-like":805,"./is-nil":821,"./is-prototype":830}],812:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-function"),r=t("./is-equal");i.default=function(t,e,i){return n.default(i)?!!i(t,e):r.default(t,e)}},{"./is-equal":813,"./is-function":817}],813:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-object-like"),r=t("./is-array-like"),a=t("./is-string"),o=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(a.default(t)||a.default(e))return!1;if(r.default(t)||r.default(e)){if(t.length!==e.length)return!1;for(var i=!0,s=0;s<t.length&&(i=o(t[s],e[s]));s++);return i}if(n.default(t)||n.default(e)){var l=Object.keys(t),u=Object.keys(e);if(l.length!==u.length)return!1;for(i=!0,s=0;s<l.length&&(i=o(t[l[s]],e[l[s]]));s++);return i}return!1};i.default=o},{"./is-array-like":805,"./is-object-like":825,"./is-string":832}],814:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-type");i.default=function(t){return n.default(t,"Error")}},{"./is-type":833}],815:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-number");i.default=function(t){return n.default(t)&&t%2==0}},{"./is-number":824}],816:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-number");i.default=function(t){return n.default(t)&&isFinite(t)}},{"./is-number":824}],817:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-type");i.default=function(t){return n.default(t,"Function")}},{"./is-type":833}],818:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-number"),r=Number.isInteger?Number.isInteger:function(t){return n.default(t)&&t%1==0};i.default=r},{"./is-number":824}],819:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-nil"),r=t("./keys");i.default=function(t,e){var i=r.default(e),a=i.length;if(n.default(t))return!a;for(var o=0;o<a;o+=1){var s=i[o];if(e[s]!==t[s]||!(s in t))return!1}return!0}},{"./is-nil":821,"./keys":835}],820:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-number");i.default=function(t){return n.default(t)&&t<0}},{"./is-number":824}],821:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});i.default=function(t){return null==t}},{}],822:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});i.default=function(t){return null===t}},{}],823:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});i.default=function(t,e,i){return void 0===i&&(i=1e-5),Math.abs(t-e)<i}},{}],824:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-type");i.default=function(t){return n.default(t,"Number")}},{"./is-type":833}],825:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});i.default=function(t){return"object"==typeof t&&null!==t}},{}],826:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}},{}],827:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-number");i.default=function(t){return n.default(t)&&t%2!=0}},{"./is-number":824}],828:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-object-like"),r=t("./is-type");i.default=function(t){if(!n.default(t)||!r.default(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},{"./is-object-like":825,"./is-type":833}],829:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-number");i.default=function(t){return n.default(t)&&t>0}},{"./is-number":824}],830:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=Object.prototype;i.default=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},{}],831:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-type");i.default=function(t){return n.default(t,"RegExp")}},{"./is-type":833}],832:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-type");i.default=function(t){return n.default(t,"String")}},{"./is-type":833}],833:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={}.toString;i.default=function(t,e){return n.call(t)==="[object "+e+"]"}},{}],834:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});i.default=function(t){return void 0===t}},{}],835:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./each"),r=t("./is-function"),a=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return n.default(t,(function(i,n){r.default(t)&&"prototype"===n||e.push(n)})),e};i.default=a},{"./each":778,"./is-function":817}],836:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array-like");i.default=function(t){if(n.default(t)){return t[t.length-1]}}},{"./is-array-like":805}],837:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./to-string");i.default=function(t){return n.default(t).toLowerCase()}},{"./to-string":866}],838:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./to-string");i.default=function(t){var e=n.default(t);return e.charAt(0).toLowerCase()+e.substring(1)}},{"./to-string":866}],839:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-nil"),r=t("./is-object"),a=function(t){return t};i.default=function(t,e){void 0===e&&(e=a);var i={};return r.default(t)&&!n.default(t)&&Object.keys(t).forEach((function(n){i[n]=e(t[n],n)})),i}},{"./is-nil":821,"./is-object":826}],840:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array-like");i.default=function(t,e){if(!n.default(t))return t;for(var i=[],r=0;r<t.length;r++){var a=t[r];i.push(e(a,r))}return i}},{"./is-array-like":805}],841:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./each"),r=t("./is-array"),a=t("./is-function");i.default=function(t,e){if(r.default(t)){var i,o,s=t[0];return i=a.default(e)?e(t[0]):t[0][e],n.default(t,(function(t){(o=a.default(e)?e(t):t[e])>i&&(s=t,i=o)})),s}}},{"./each":778,"./is-array":806,"./is-function":817}],842:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-function");i.default=function(t,e){if(!n.default(t))throw new TypeError("Expected a function");var i=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var a=e?e.apply(this,n):n[0],o=i.cache;if(o.has(a))return o.get(a);var s=t.apply(this,n);return o.set(a,s),s};return i.cache=new Map,i}},{"./is-function":817}],843:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./each"),r=t("./is-array"),a=t("./is-function");i.default=function(t,e){if(r.default(t)){var i,o,s=t[0];return i=a.default(e)?e(t[0]):t[0][e],n.default(t,(function(t){(o=a.default(e)?e(t):t[e])<i&&(s=t,i=o)})),s}}},{"./each":778,"./is-array":806,"./is-function":817}],844:[function(t,e,i){"use strict";function n(t,e){for(var i in e)e.hasOwnProperty(i)&&"constructor"!==i&&void 0!==e[i]&&(t[i]=e[i])}Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e,i,r){return e&&n(t,e),i&&n(t,i),r&&n(t,r),t}},{}],845:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});i.default=function(t,e){return(t%e+e)%e}},{}],846:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(){}},{}],847:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={};i.default=function(t){var e=n[t];if(!e){for(var i=t.toString(16),r=i.length;r<6;r++)i="0"+i;e="#"+i,n[t]=e}return e}},{}],848:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array");i.default=function(t){var e=0,i=0,r=0,a=0;return n.default(t)?1===t.length?e=i=r=a=t[0]:2===t.length?(e=r=t[0],i=a=t[1]):3===t.length?(e=t[0],i=a=t[1],r=t[2]):(e=t[0],i=t[1],r=t[2],a=t[3]):e=i=r=a=t,{r1:e,r2:i,r3:r,r4:a}}},{"./is-array":806}],849:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./each"),r=t("./is-plain-object"),a=Object.prototype.hasOwnProperty;i.default=function(t,e){if(null===t||!r.default(t))return{};var i={};return n.default(e,(function(e){a.call(t,e)&&(i[e]=t[e])})),i}},{"./each":778,"./is-plain-object":828}],850:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array-like"),r=Array.prototype.splice;i.default=function(t,e){if(!n.default(t))return[];for(var i=t?e.length:0,a=i-1;i--;){var o=void 0,s=e[i];i!==a&&s===o||(o=s,r.call(t,s,1))}return t}},{"./is-array-like":805}],851:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=Array.prototype,r=n.splice,a=n.indexOf;i.default=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];for(var n=0;n<e.length;n++)for(var o=e[n],s=-1;(s=a.call(t,o))>-1;)r.call(t,s,1);return t}},{}],852:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./each"),r=t("./is-array"),a=t("./is-plain-object");i.default=function(t,e,i){if(!r.default(t)&&!a.default(t))return t;var o=i;return n.default(t,(function(t,i){o=e(o,t,i)})),o}},{"./each":778,"./is-array":806,"./is-plain-object":828}],853:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array-like"),r=t("./pull-at");i.default=function(t,e){var i=[];if(!n.default(t))return i;for(var a=-1,o=[],s=t.length;++a<s;){var l=t[a];e(l,a,t)&&(i.push(l),o.push(a))}return r.default(t,o),i}},{"./is-array-like":805,"./pull-at":850}],854:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}},{}],855:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-object"),r=t("./is-string"),a=t("./is-number");i.default=function(t,e,i){var o=t,s=r.default(e)?e.split("."):e;return s.forEach((function(t,e){e<s.length-1?(n.default(o[t])||(o[t]=a.default(s[e+1])?[]:{}),o=o[t]):o[t]=i})),t}},{"./is-number":824,"./is-object":826,"./is-string":832}],856:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-nil"),r=t("./is-array-like");i.default=function(t){return n.default(t)?0:r.default(t)?t.length:Object.keys(t).length}},{"./is-array-like":805,"./is-nil":821}],857:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});i.default=function(t,e){for(var i=0;i<t.length;i++)if(e(t[i],i))return!0;return!1}},{}],858:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array"),r=t("./is-string"),a=t("./is-function");i.default=function(t,e){var i;if(a.default(e))i=function(t,i){return e(t)-e(i)};else{var o=[];r.default(e)?o.push(e):n.default(e)&&(o=e),i=function(t,e){for(var i=0;i<o.length;i+=1){var n=o[i];if(t[n]>e[n])return 1;if(t[n]<e[n])return-1}return 0}}return t.sort(i),t}},{"./is-array":806,"./is-function":817,"./is-string":832}],859:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array"),r=t("./is-string");i.default=function(t,e){return!(!n.default(t)&&!r.default(t))&&t[0]===e}},{"./is-array":806,"./is-string":832}],860:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,i){return"\\"===t.charAt(0)?t.slice(1):void 0===e[i]?"":e[i]})):t}},{}],861:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e,i){var n,r,a,o,s=0;i||(i={});var l=function(){s=!1===i.leading?0:Date.now(),n=null,o=t.apply(r,a),n||(r=a=null)},u=function(){var u=Date.now();s||!1!==i.leading||(s=u);var c=e-(u-s);return r=this,a=arguments,c<=0||c>e?(n&&(clearTimeout(n),n=null),s=u,o=t.apply(r,a),n||(r=a=null)):n||!1===i.trailing||(n=setTimeout(l,c)),o};return u.cancel=function(){clearTimeout(n),s=0,n=r=a=null},u}},{}],862:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array-like");i.default=function(t){return n.default(t)?Array.prototype.slice.call(t):[]}},{"./is-array-like":805}],863:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=180/Math.PI;i.default=function(t){return n*t}},{}],864:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=parseInt},{}],865:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=Math.PI/180;i.default=function(t){return n*t}},{}],866:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-nil");i.default=function(t){return n.default(t)?"":t.toString()}},{"./is-nil":821}],867:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./uniq");i.default=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.default([].concat.apply([],t))}},{"./uniq":868}],868:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./contains"),r=t("./each");i.default=function(t){var e=[];return r.default(t,(function(t){n.default(e,t)||e.push(t)})),e}},{"./contains":774,"./each":778}],869:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={};i.default=function(t){return n[t=t||"g"]?n[t]+=1:n[t]=1,t+n[t]}},{}],870:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./to-string");i.default=function(t){return n.default(t).toUpperCase()}},{"./to-string":866}],871:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./to-string");i.default=function(t){var e=n.default(t);return e.charAt(0).toUpperCase()+e.substring(1)}},{"./to-string":866}],872:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./is-array"),r=t("./is-nil");i.default=function(t,e){for(var i=[],a={},o=0;o<t.length;o++){var s=t[o][e];if(!r.default(s)){n.default(s)||(s=[s]);for(var l=0;l<s.length;l++){var u=s[l];a[u]||(i.push(u),a[u]=!0)}}}return i}},{"./is-array":806,"./is-nil":821}],873:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t("./each"),r=t("./is-function"),a=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return n.default(t,(function(i,n){r.default(t)&&"prototype"===n||e.push(i)})),e};i.default=a},{"./each":778,"./is-function":817}],874:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var i=function(i){t[e](i)};return t["_wrap_"+e]=i,i}},{}],875:[function(t,e,i){!function(t,n){"object"==typeof i&&void 0!==e?n(i):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).d3=t.d3||{})}(this,(function(t){"use strict";function e(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function i(t,e){var i=Object.create(t.prototype);for(var n in e)i[n]=e[n];return i}function n(){}var r="\\s*([+-]?\\d+)\\s*",a="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",o="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",s=/^#([0-9a-f]{3,8})$/,l=new RegExp("^rgb\\("+[r,r,r]+"\\)$"),u=new RegExp("^rgb\\("+[o,o,o]+"\\)$"),c=new RegExp("^rgba\\("+[r,r,r,a]+"\\)$"),p=new RegExp("^rgba\\("+[o,o,o,a]+"\\)$"),h=new RegExp("^hsl\\("+[a,o,o]+"\\)$"),f=new RegExp("^hsla\\("+[a,o,o,a]+"\\)$"),d={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 g(){return this.rgb().formatHex()}function v(){return this.rgb().formatRgb()}function y(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=s.exec(t))?(i=e[1].length,e=parseInt(e[1],16),6===i?m(e):3===i?new M(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?b(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?b(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=l.exec(t))?new M(e[1],e[2],e[3],1):(e=u.exec(t))?new M(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=c.exec(t))?b(e[1],e[2],e[3],e[4]):(e=p.exec(t))?b(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=h.exec(t))?P(e[1],e[2]/100,e[3]/100,1):(e=f.exec(t))?P(e[1],e[2]/100,e[3]/100,e[4]):d.hasOwnProperty(t)?m(d[t]):"transparent"===t?new M(NaN,NaN,NaN,0):null}function m(t){return new M(t>>16&255,t>>8&255,255&t,1)}function b(t,e,i,n){return n<=0&&(t=e=i=NaN),new M(t,e,i,n)}function x(t){return t instanceof n||(t=y(t)),t?new M((t=t.rgb()).r,t.g,t.b,t.opacity):new M}function _(t,e,i,n){return 1===arguments.length?x(t):new M(t,e,i,null==n?1:n)}function M(t,e,i,n){this.r=+t,this.g=+e,this.b=+i,this.opacity=+n}function w(){return"#"+C(this.r)+C(this.g)+C(this.b)}function S(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(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 C(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function P(t,e,i,n){return n<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new A(t,e,i,n)}function O(t){if(t instanceof A)return new A(t.h,t.s,t.l,t.opacity);if(t instanceof n||(t=y(t)),!t)return new A;if(t instanceof A)return t;var e=(t=t.rgb()).r/255,i=t.g/255,r=t.b/255,a=Math.min(e,i,r),o=Math.max(e,i,r),s=NaN,l=o-a,u=(o+a)/2;return l?(s=e===o?(i-r)/l+6*(i<r):i===o?(r-e)/l+2:(e-i)/l+4,l/=u<.5?o+a:2-o-a,s*=60):l=u>0&&u<1?0:s,new A(s,l,u,t.opacity)}function T(t,e,i,n){return 1===arguments.length?O(t):new A(t,e,i,null==n?1:n)}function A(t,e,i,n){this.h=+t,this.s=+e,this.l=+i,this.opacity=+n}function E(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}e(n,y,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:g,formatHex:g,formatHsl:function(){return O(this).formatHsl()},formatRgb:v,toString:v}),e(M,_,i(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new M(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new M(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:w,formatHex:w,formatRgb:S,toString:S})),e(A,T,i(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new A(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new A(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,i=this.l,n=i+(i<.5?i:1-i)*e,r=2*i-n;return new M(E(t>=240?t-240:t+120,r,n),E(t,r,n),E(t<120?t+240:t-120,r,n),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(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var L=Math.PI/180,I=180/Math.PI,D=6/29,k=3*D*D;function B(t){if(t instanceof j)return new j(t.l,t.a,t.b,t.opacity);if(t instanceof z)return H(t);t instanceof M||(t=x(t));var e,i,n=G(t.r),r=G(t.g),a=G(t.b),o=R((.2225045*n+.7168786*r+.0606169*a)/1);return n===r&&r===a?e=i=o:(e=R((.4360747*n+.3850649*r+.1430804*a)/.96422),i=R((.0139322*n+.0971045*r+.7141733*a)/.82521)),new j(116*o-16,500*(e-o),200*(o-i),t.opacity)}function F(t,e,i,n){return 1===arguments.length?B(t):new j(t,e,i,null==n?1:n)}function j(t,e,i,n){this.l=+t,this.a=+e,this.b=+i,this.opacity=+n}function R(t){return t>.008856451679035631?Math.pow(t,1/3):t/k+4/29}function N(t){return t>D?t*t*t:k*(t-4/29)}function Y(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function G(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function V(t){if(t instanceof z)return new z(t.h,t.c,t.l,t.opacity);if(t instanceof j||(t=B(t)),0===t.a&&0===t.b)return new z(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*I;return new z(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function X(t,e,i,n){return 1===arguments.length?V(t):new z(t,e,i,null==n?1:n)}function z(t,e,i,n){this.h=+t,this.c=+e,this.l=+i,this.opacity=+n}function H(t){if(isNaN(t.h))return new j(t.l,0,0,t.opacity);var e=t.h*L;return new j(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}e(j,F,i(n,{brighter:function(t){return new j(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new j(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,i=isNaN(this.b)?t:t-this.b/200;return new M(Y(3.1338561*(e=.96422*N(e))-1.6168667*(t=1*N(t))-.4906146*(i=.82521*N(i))),Y(-.9787684*e+1.9161415*t+.033454*i),Y(.0719453*e-.2289914*t+1.4052427*i),this.opacity)}})),e(z,X,i(n,{brighter:function(t){return new z(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new z(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return H(this).rgb()}}));var W=-.14861,q=1.78277,U=-.29227,Z=-.90649,K=1.97294,Q=K*Z,$=K*q,J=q*U-Z*W;function tt(t){if(t instanceof it)return new it(t.h,t.s,t.l,t.opacity);t instanceof M||(t=x(t));var e=t.r/255,i=t.g/255,n=t.b/255,r=(J*n+Q*e-$*i)/(J+Q-$),a=n-r,o=(K*(i-r)-U*a)/Z,s=Math.sqrt(o*o+a*a)/(K*r*(1-r)),l=s?Math.atan2(o,a)*I-120:NaN;return new it(l<0?l+360:l,s,r,t.opacity)}function et(t,e,i,n){return 1===arguments.length?tt(t):new it(t,e,i,null==n?1:n)}function it(t,e,i,n){this.h=+t,this.s=+e,this.l=+i,this.opacity=+n}e(it,et,i(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new it(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new it(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*L,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),r=Math.sin(t);return new M(255*(e+i*(W*n+q*r)),255*(e+i*(U*n+Z*r)),255*(e+i*(K*n)),this.opacity)}})),t.color=y,t.cubehelix=et,t.gray=function(t,e){return new j(t,0,0,null==e?1:e)},t.hcl=X,t.hsl=T,t.lab=F,t.lch=function(t,e,i,n){return 1===arguments.length?V(t):new z(i,e,t,null==n?1:n)},t.rgb=_,Object.defineProperty(t,"__esModule",{value:!0})}))},{}],876:[function(t,e,i){!function(t,n){"object"==typeof i&&void 0!==e?n(i):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).d3=t.d3||{})}(this,(function(t){"use strict";function e(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function i(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var n=function t(e){function i(t){return Math.pow(t,e)}return e=+e,i.exponent=t,i}(3),r=function t(e){function i(t){return 1-Math.pow(1-t,e)}return e=+e,i.exponent=t,i}(3),a=function t(e){function i(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,i.exponent=t,i}(3),o=Math.PI,s=o/2;function l(t){return(1-Math.cos(o*t))/2}function u(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function c(t){return((t*=2)<=1?u(1-t):2-u(t-1))/2}function p(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var h=7.5625;function f(t){return(t=+t)<4/11?h*t*t:t<8/11?h*(t-=6/11)*t+3/4:t<10/11?h*(t-=9/11)*t+15/16:h*(t-=21/22)*t+63/64}var d=function t(e){function i(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,i.overshoot=t,i}(1.70158),g=function t(e){function i(t){return--t*t*((t+1)*e+t)+1}return e=+e,i.overshoot=t,i}(1.70158),v=function t(e){function i(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,i.overshoot=t,i}(1.70158),y=2*Math.PI,m=function t(e,i){var n=Math.asin(1/(e=Math.max(1,e)))*(i/=y);function r(t){return e*u(- --t)*Math.sin((n-t)/i)}return r.amplitude=function(e){return t(e,i*y)},r.period=function(i){return t(e,i)},r}(1,.3),b=function t(e,i){var n=Math.asin(1/(e=Math.max(1,e)))*(i/=y);function r(t){return 1-e*u(t=+t)*Math.sin((t+n)/i)}return r.amplitude=function(e){return t(e,i*y)},r.period=function(i){return t(e,i)},r}(1,.3),x=function t(e,i){var n=Math.asin(1/(e=Math.max(1,e)))*(i/=y);function r(t){return((t=2*t-1)<0?e*u(-t)*Math.sin((n-t)/i):2-e*u(t)*Math.sin((n+t)/i))/2}return r.amplitude=function(e){return t(e,i*y)},r.period=function(i){return t(e,i)},r}(1,.3);t.easeBack=v,t.easeBackIn=d,t.easeBackInOut=v,t.easeBackOut=g,t.easeBounce=f,t.easeBounceIn=function(t){return 1-f(1-t)},t.easeBounceInOut=function(t){return((t*=2)<=1?1-f(1-t):f(t-1)+1)/2},t.easeBounceOut=f,t.easeCircle=p,t.easeCircleIn=function(t){return 1-Math.sqrt(1-t*t)},t.easeCircleInOut=p,t.easeCircleOut=function(t){return Math.sqrt(1- --t*t)},t.easeCubic=i,t.easeCubicIn=function(t){return t*t*t},t.easeCubicInOut=i,t.easeCubicOut=function(t){return--t*t*t+1},t.easeElastic=b,t.easeElasticIn=m,t.easeElasticInOut=x,t.easeElasticOut=b,t.easeExp=c,t.easeExpIn=function(t){return u(1-+t)},t.easeExpInOut=c,t.easeExpOut=function(t){return 1-u(t)},t.easeLinear=function(t){return+t},t.easePoly=a,t.easePolyIn=n,t.easePolyInOut=a,t.easePolyOut=r,t.easeQuad=e,t.easeQuadIn=function(t){return t*t},t.easeQuadInOut=e,t.easeQuadOut=function(t){return t*(2-t)},t.easeSin=l,t.easeSinIn=function(t){return 1==+t?1:1-Math.cos(t*s)},t.easeSinInOut=l,t.easeSinOut=function(t){return Math.sin(t*s)},Object.defineProperty(t,"__esModule",{value:!0})}))},{}],877:[function(t,e,i){!function(n,r){"object"==typeof i&&void 0!==e?r(i,t("d3-color")):"function"==typeof define&&define.amd?define(["exports","d3-color"],r):r((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){"use strict";function i(t,e,i,n,r){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*i+(1+3*t+3*a-3*o)*n+o*r)/6}function n(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[r],o=t[r+1],s=r>0?t[r-1]:2*a-o,l=r<e-1?t[r+2]:2*o-a;return i((n-r/e)*e,s,a,o,l)}}function r(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),a=t[(r+e-1)%e],o=t[r%e],s=t[(r+1)%e],l=t[(r+2)%e];return i((n-r/e)*e,a,o,s,l)}}function a(t){return function(){return t}}function o(t,e){return function(i){return t+i*e}}function s(t,e){var i=e-t;return i?o(t,i>180||i<-180?i-360*Math.round(i/360):i):a(isNaN(t)?e:t)}function l(t){return 1==(t=+t)?u:function(e,i){return i-e?function(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(n){return Math.pow(t+n*e,i)}}(e,i,t):a(isNaN(e)?i:e)}}function u(t,e){var i=e-t;return i?o(t,i):a(isNaN(t)?e:t)}var c=function t(i){var n=l(i);function r(t,i){var r=n((t=e.rgb(t)).r,(i=e.rgb(i)).r),a=n(t.g,i.g),o=n(t.b,i.b),s=u(t.opacity,i.opacity);return function(e){return t.r=r(e),t.g=a(e),t.b=o(e),t.opacity=s(e),t+""}}return r.gamma=t,r}(1);function p(t){return function(i){var n,r,a=i.length,o=new Array(a),s=new Array(a),l=new Array(a);for(n=0;n<a;++n)r=e.rgb(i[n]),o[n]=r.r||0,s[n]=r.g||0,l[n]=r.b||0;return o=t(o),s=t(s),l=t(l),r.opacity=1,function(t){return r.r=o(t),r.g=s(t),r.b=l(t),r+""}}}var h=p(n),f=p(r);function d(t,e){e||(e=[]);var i,n=t?Math.min(e.length,t.length):0,r=e.slice();return function(a){for(i=0;i<n;++i)r[i]=t[i]*(1-a)+e[i]*a;return r}}function g(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function v(t,e){var i,n=e?e.length:0,r=t?Math.min(n,t.length):0,a=new Array(r),o=new Array(n);for(i=0;i<r;++i)a[i]=w(t[i],e[i]);for(;i<n;++i)o[i]=e[i];return function(t){for(i=0;i<r;++i)o[i]=a[i](t);return o}}function y(t,e){var i=new Date;return t=+t,e=+e,function(n){return i.setTime(t*(1-n)+e*n),i}}function m(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}function b(t,e){var i,n={},r={};for(i in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)i in t?n[i]=w(t[i],e[i]):r[i]=e[i];return function(t){for(i in n)r[i]=n[i](t);return r}}var x=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(x.source,"g");function M(t,e){var i,n,r,a=x.lastIndex=_.lastIndex=0,o=-1,s=[],l=[];for(t+="",e+="";(i=x.exec(t))&&(n=_.exec(e));)(r=n.index)>a&&(r=e.slice(a,r),s[o]?s[o]+=r:s[++o]=r),(i=i[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:m(i,n)})),a=_.lastIndex;return a<e.length&&(r=e.slice(a),s[o]?s[o]+=r:s[++o]=r),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var i,n=0;n<e;++n)s[(i=l[n]).i]=i.x(t);return s.join("")})}function w(t,i){var n,r=typeof i;return null==i||"boolean"===r?a(i):("number"===r?m:"string"===r?(n=e.color(i))?(i=n,c):M:i instanceof e.color?c:i instanceof Date?y:g(i)?d:Array.isArray(i)?v:"function"!=typeof i.valueOf&&"function"!=typeof i.toString||isNaN(i)?b:m)(t,i)}var S,C,P,O,T=180/Math.PI,A={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function E(t,e,i,n,r,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*i+e*n)&&(i-=t*l,n-=e*l),(s=Math.sqrt(i*i+n*n))&&(i/=s,n/=s,l/=s),t*n<e*i&&(t=-t,e=-e,l=-l,o=-o),{translateX:r,translateY:a,rotate:Math.atan2(e,t)*T,skewX:Math.atan(l)*T,scaleX:o,scaleY:s}}function L(t,e,i,n){function r(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],l=[];return a=t(a),o=t(o),function(t,n,r,a,o,s){if(t!==r||n!==a){var l=o.push("translate(",null,e,null,i);s.push({i:l-4,x:m(t,r)},{i:l-2,x:m(n,a)})}else(r||a)&&o.push("translate("+r+e+a+i)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(t,e,i,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:i.push(r(i)+"rotate(",null,n)-2,x:m(t,e)})):e&&i.push(r(i)+"rotate("+e+n)}(a.rotate,o.rotate,s,l),function(t,e,i,a){t!==e?a.push({i:i.push(r(i)+"skewX(",null,n)-2,x:m(t,e)}):e&&i.push(r(i)+"skewX("+e+n)}(a.skewX,o.skewX,s,l),function(t,e,i,n,a,o){if(t!==i||e!==n){var s=a.push(r(a)+"scale(",null,",",null,")");o.push({i:s-4,x:m(t,i)},{i:s-2,x:m(e,n)})}else 1===i&&1===n||a.push(r(a)+"scale("+i+","+n+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(t){for(var e,i=-1,n=l.length;++i<n;)s[(e=l[i]).i]=e.x(t);return s.join("")}}}var I=L((function(t){return"none"===t?A:(S||(S=document.createElement("DIV"),C=document.documentElement,P=document.defaultView),S.style.transform=t,t=P.getComputedStyle(C.appendChild(S),null).getPropertyValue("transform"),C.removeChild(S),E(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),D=L((function(t){return null==t?A:(O||(O=document.createElementNS("http://www.w3.org/2000/svg","g")),O.setAttribute("transform",t),(t=O.transform.baseVal.consolidate())?E((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):A)}),", ",")",")"),k=Math.SQRT2;function B(t){return((t=Math.exp(t))+1/t)/2}function F(t){return function(i,n){var r=t((i=e.hsl(i)).h,(n=e.hsl(n)).h),a=u(i.s,n.s),o=u(i.l,n.l),s=u(i.opacity,n.opacity);return function(t){return i.h=r(t),i.s=a(t),i.l=o(t),i.opacity=s(t),i+""}}}var j=F(s),R=F(u);function N(t){return function(i,n){var r=t((i=e.hcl(i)).h,(n=e.hcl(n)).h),a=u(i.c,n.c),o=u(i.l,n.l),s=u(i.opacity,n.opacity);return function(t){return i.h=r(t),i.c=a(t),i.l=o(t),i.opacity=s(t),i+""}}}var Y=N(s),G=N(u);function V(t){return function i(n){function r(i,r){var a=t((i=e.cubehelix(i)).h,(r=e.cubehelix(r)).h),o=u(i.s,r.s),s=u(i.l,r.l),l=u(i.opacity,r.opacity);return function(t){return i.h=a(t),i.s=o(t),i.l=s(Math.pow(t,n)),i.opacity=l(t),i+""}}return n=+n,r.gamma=i,r}(1)}var X=V(s),z=V(u);t.interpolate=w,t.interpolateArray=function(t,e){return(g(e)?d:v)(t,e)},t.interpolateBasis=n,t.interpolateBasisClosed=r,t.interpolateCubehelix=X,t.interpolateCubehelixLong=z,t.interpolateDate=y,t.interpolateDiscrete=function(t){var e=t.length;return function(i){return t[Math.max(0,Math.min(e-1,Math.floor(i*e)))]}},t.interpolateHcl=Y,t.interpolateHclLong=G,t.interpolateHsl=j,t.interpolateHslLong=R,t.interpolateHue=function(t,e){var i=s(+t,+e);return function(t){var e=i(t);return e-360*Math.floor(e/360)}},t.interpolateLab=function(t,i){var n=u((t=e.lab(t)).l,(i=e.lab(i)).l),r=u(t.a,i.a),a=u(t.b,i.b),o=u(t.opacity,i.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=a(e),t.opacity=o(e),t+""}},t.interpolateNumber=m,t.interpolateNumberArray=d,t.interpolateObject=b,t.interpolateRgb=c,t.interpolateRgbBasis=h,t.interpolateRgbBasisClosed=f,t.interpolateRound=function(t,e){return t=+t,e=+e,function(i){return Math.round(t*(1-i)+e*i)}},t.interpolateString=M,t.interpolateTransformCss=I,t.interpolateTransformSvg=D,t.interpolateZoom=function(t,e){var i,n,r=t[0],a=t[1],o=t[2],s=e[0],l=e[1],u=e[2],c=s-r,p=l-a,h=c*c+p*p;if(h<1e-12)n=Math.log(u/o)/k,i=function(t){return[r+t*c,a+t*p,o*Math.exp(k*t*n)]};else{var f=Math.sqrt(h),d=(u*u-o*o+4*h)/(2*o*2*f),g=(u*u-o*o-4*h)/(2*u*2*f),v=Math.log(Math.sqrt(d*d+1)-d),y=Math.log(Math.sqrt(g*g+1)-g);n=(y-v)/k,i=function(t){var e,i=t*n,s=B(v),l=o/(2*f)*(s*(e=k*i+v,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(v));return[r+l*c,a+l*p,o*s/B(k*i+v)]}}return i.duration=1e3*n,i},t.piecewise=function(t,e){for(var i=0,n=e.length-1,r=e[0],a=new Array(n<0?0:n);i<n;)a[i]=t(r,r=e[++i]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return a[e](t-e)}},t.quantize=function(t,e){for(var i=new Array(e),n=0;n<e;++n)i[n]=t(n/(e-1));return i},Object.defineProperty(t,"__esModule",{value:!0})}))},{"d3-color":875}],878:[function(t,e,i){!function(t,n){"object"==typeof i&&void 0!==e?n(i):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).d3=t.d3||{})}(this,(function(t){"use strict";function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=[],n=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(t){r=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}return i}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(t,e,i,n){t=t.filter((function(t){var n=e(t),r=i(t);return null!=n&&isFinite(n)&&null!=r&&isFinite(r)})),n&&t.sort((function(t,i){return e(t)-e(i)}));for(var r,a,o,s=t.length,l=new Float64Array(s),u=new Float64Array(s),c=0,p=0,h=0;h<s;)o=t[h],l[h]=r=+e(o),u[h]=a=+i(o),c+=(r-c)/++h,p+=(a-p)/h;for(var f=0;f<s;++f)l[f]-=c,u[f]-=p;return[l,u,c,p]}function n(t,e,i,n){for(var r=0,a=0,o=t.length;a<o;a++){var s=t[a],l=+e(s),u=+i(s);null!=l&&isFinite(l)&&null!=u&&isFinite(u)&&n(l,u,r++)}}function r(t,e,i,r,a){var o=0,s=0;return n(t,e,i,(function(t,e){var i=e-a(t),n=e-r;o+=i*i,s+=n*n})),1-o/s}function a(t){return 180*Math.atan2(t[1][1]-t[0][1],t[1][0]-t[0][0])/Math.PI}function o(t,e,i){for(var n=Math.log(e-t)*Math.LOG10E+1|0,r=1*Math.pow(10,-n/2-1),o=[l(t),l(e)],s=0;u(o)&&s<1e4;);return o;function l(t){return[t,i(t)]}function u(t){s++;for(var e,i=t.length,n=!1,o=0;o<i-1;o++){var u=t[o],c=t[o+1],p=[((e=[u,c])[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2],h=l(p[0]),f=a([u,p]),d=a([u,h]);Math.abs(f-d)>r&&(t.splice(o+1,0,h),n=!0)}return n}}function s(t,e,i,n){var r=n-t*t,a=Math.abs(r)<1e-24?0:(i-t*e)/r;return[e-a*t,a]}function l(){var t,i=function(t){return t[0]},a=function(t){return t[1]};function o(o){var l=0,u=0,c=0,p=0,h=0,f=t?+t[0]:1/0,d=t?+t[1]:-1/0;n(o,i,a,(function(e,i){++l,u+=(e-u)/l,c+=(i-c)/l,p+=(e*i-p)/l,h+=(e*e-h)/l,t||(e<f&&(f=e),e>d&&(d=e))}));var g=e(s(u,c,p,h),2),v=g[0],y=g[1],m=function(t){return y*t+v},b=[[f,m(f)],[d,m(d)]];return b.a=y,b.b=v,b.predict=m,b.rSquared=r(o,i,a,c,m),b}return o.domain=function(e){return arguments.length?(t=e,o):t},o.x=function(t){return arguments.length?(i=t,o):i},o.y=function(t){return arguments.length?(a=t,o):a},o}function u(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)]}function c(t){return(t=1-t*t*t)*t*t}function p(t,e,i){var n=t[e],r=i[0],a=i[1]+1;if(!(a>=t.length))for(;e>r&&t[a]-n<=n-t[r];)i[0]=++r,i[1]=a,++a}function h(){var t,a=function(t){return t[0]},s=function(t){return t[1]};function l(l){var u,c,p,h,f=e(i(l,a,s),4),d=f[0],g=f[1],v=f[2],y=f[3],m=d.length,b=0,x=0,_=0,M=0,w=0;for(u=0;u<m;)c=d[u],p=g[u++],b+=((h=c*c)-b)/u,x+=(h*c-x)/u,_+=(h*h-_)/u,M+=(c*p-M)/u,w+=(h*p-w)/u;var S=0,C=0,P=t?+t[0]:1/0,O=t?+t[1]:-1/0;n(l,a,s,(function(e,i){C++,S+=(i-S)/C,t||(e<P&&(P=e),e>O&&(O=e))}));var T=_-b*b,A=b*T-x*x,E=(w*b-M*x)/A,L=(M*T-w*x)/A,I=-E*b,D=function(t){return E*(t-=v)*t+L*t+I+y},k=o(P,O,D);return k.a=E,k.b=L-2*E*v,k.c=I-L*v+E*v*v+y,k.predict=D,k.rSquared=r(l,a,s,S,D),k}return l.domain=function(e){return arguments.length?(t=e,l):t},l.x=function(t){return arguments.length?(a=t,l):a},l.y=function(t){return arguments.length?(s=t,l):s},l}t.regressionExp=function(){var t,i=function(t){return t[0]},a=function(t){return t[1]};function l(l){var u=0,c=0,p=0,h=0,f=0,d=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;n(l,i,a,(function(e,i){var n=Math.log(i),r=e*i;++u,c+=(i-c)/u,h+=(r-h)/u,d+=(e*r-d)/u,p+=(i*n-p)/u,f+=(r*n-f)/u,t||(e<g&&(g=e),e>v&&(v=e))}));var y=e(s(h/c,p/c,f/c,d/c),2),m=y[0],b=y[1];m=Math.exp(m);var x=function(t){return m*Math.exp(b*t)},_=o(g,v,x);return _.a=m,_.b=b,_.predict=x,_.rSquared=r(l,i,a,c,x),_}return l.domain=function(e){return arguments.length?(t=e,l):t},l.x=function(t){return arguments.length?(i=t,l):i},l.y=function(t){return arguments.length?(a=t,l):a},l},t.regressionLinear=l,t.regressionLoess=function(){var t=function(t){return t[0]},n=function(t){return t[1]},r=.3;function a(a){for(var o=e(i(a,t,n,!0),4),l=o[0],h=o[1],f=o[2],d=o[3],g=l.length,v=Math.max(2,~~(r*g)),y=new Float64Array(g),m=new Float64Array(g),b=new Float64Array(g).fill(1),x=-1;++x<=2;){for(var _=[0,v-1],M=0;M<g;++M){for(var w=l[M],S=_[0],C=_[1],P=w-l[S]>l[C]-w?S:C,O=0,T=0,A=0,E=0,L=0,I=1/Math.abs(l[P]-w||1),D=S;D<=C;++D){var k=l[D],B=h[D],F=c(Math.abs(w-k)*I)*b[D],j=k*F;O+=F,T+=j,A+=B*F,E+=B*j,L+=k*j}var R=e(s(T/O,A/O,E/O,L/O),2),N=R[0],Y=R[1];y[M]=N+Y*w,m[M]=Math.abs(h[M]-y[M]),p(l,M+1,_)}if(2===x)break;var G=u(m);if(Math.abs(G)<1e-12)break;for(var V,X,z=0;z<g;++z)V=m[z]/(6*G),b[z]=V>=1?1e-12:(X=1-V*V)*X}return function(t,e,i,n){for(var r,a=t.length,o=[],s=0,l=0,u=[];s<a;++s)r=t[s]+i,u[0]===r?u[1]+=(e[s]-u[1])/++l:(l=0,u[1]+=n,u=[r,e[s]],o.push(u));return u[1]+=n,o}(l,y,f,d)}return a.bandwidth=function(t){return arguments.length?(r=t,a):r},a.x=function(e){return arguments.length?(t=e,a):t},a.y=function(t){return arguments.length?(n=t,a):n},a},t.regressionLog=function(){var t,i=function(t){return t[0]},a=function(t){return t[1]};function l(l){var u=0,c=0,p=0,h=0,f=0,d=t?+t[0]:1/0,g=t?+t[1]:-1/0;n(l,i,a,(function(e,i){var n=Math.log(e);++u,c+=(n-c)/u,p+=(i-p)/u,h+=(n*i-h)/u,f+=(n*n-f)/u,t||(e<d&&(d=e),e>g&&(g=e))}));var v=e(s(c,p,h,f),2),y=v[0],m=v[1],b=function(t){return m*Math.log(t)+y},x=o(d,g,b);return x.a=m,x.b=y,x.predict=b,x.rSquared=r(l,i,a,p,b),x}return l.domain=function(e){return arguments.length?(t=e,l):t},l.x=function(t){return arguments.length?(i=t,l):i},l.y=function(t){return arguments.length?(a=t,l):a},l},t.regressionPoly=function(){var t,a=function(t){return t[0]},s=function(t){return t[1]},u=3;function c(c){if(1===u){var p=l().x(a).y(s).domain(t)(c);return p.coefficients=[p.b,p.a],delete p.a,delete p.b,p}if(2===u){var f=h().x(a).y(s).domain(t)(c);return f.coefficients=[f.c,f.b,f.a],delete f.a,delete f.b,delete f.c,f}var d,g,v,y,m,b=e(i(c,a,s),4),x=b[0],_=b[1],M=b[2],w=b[3],S=x.length,C=[],P=[],O=u+1,T=0,A=0,E=t?+t[0]:1/0,L=t?+t[1]:-1/0;for(n(c,a,s,(function(e,i){++A,T+=(i-T)/A,t||(e<E&&(E=e),e>L&&(L=e))})),d=0;d<O;++d){for(v=0,y=0;v<S;++v)y+=Math.pow(x[v],d)*_[v];for(C.push(y),m=new Float64Array(O),g=0;g<O;++g){for(v=0,y=0;v<S;++v)y+=Math.pow(x[v],d+g);m[g]=y}P.push(m)}P.push(C);var I=function(t){var e,i,n,r,a,o=t.length-1,s=[];for(e=0;e<o;++e){for(r=e,i=e+1;i<o;++i)Math.abs(t[e][i])>Math.abs(t[e][r])&&(r=i);for(n=e;n<o+1;++n)a=t[n][e],t[n][e]=t[n][r],t[n][r]=a;for(i=e+1;i<o;++i)for(n=o;n>=e;n--)t[n][i]-=t[n][e]*t[e][i]/t[e][e]}for(i=o-1;i>=0;--i){for(a=0,n=i+1;n<o;++n)a+=t[n][i]*s[n];s[i]=(t[o][i]-a)/t[i][i]}return s}(P),D=function(t){t-=M;var e=w+I[0]+I[1]*t+I[2]*t*t;for(d=3;d<O;++d)e+=I[d]*Math.pow(t,d);return e},k=o(E,L,D);return k.coefficients=function(t,e,i,n){var r,a,o,s,l=Array(t);for(r=0;r<t;++r)l[r]=0;for(r=t-1;r>=0;--r)for(o=e[r],s=1,l[r]+=o,a=1;a<=r;++a)s*=(r+1-a)/a,l[r-a]+=o*Math.pow(i,a)*s;return l[0]+=n,l}(O,I,-M,w),k.predict=D,k.rSquared=r(c,a,s,T,D),k}return c.domain=function(e){return arguments.length?(t=e,c):t},c.x=function(t){return arguments.length?(a=t,c):a},c.y=function(t){return arguments.length?(s=t,c):s},c.order=function(t){return arguments.length?(u=t,c):u},c},t.regressionPow=function(){var t,i=function(t){return t[0]},a=function(t){return t[1]};function l(l){var u=0,c=0,p=0,h=0,f=0,d=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;n(l,i,a,(function(e,i){var n=Math.log(e),r=Math.log(i);++u,c+=(n-c)/u,p+=(r-p)/u,h+=(n*r-h)/u,f+=(n*n-f)/u,d+=(i-d)/u,t||(e<g&&(g=e),e>v&&(v=e))}));var y=e(s(c,p,h,f),2),m=y[0],b=y[1];m=Math.exp(m);var x=function(t){return m*Math.pow(t,b)},_=o(g,v,x);return _.a=m,_.b=b,_.predict=x,_.rSquared=r(l,i,a,d,x),_}return l.domain=function(e){return arguments.length?(t=e,l):t},l.x=function(t){return arguments.length?(i=t,l):i},l.y=function(t){return arguments.length?(a=t,l):a},l},t.regressionQuad=h,Object.defineProperty(t,"__esModule",{value:!0})}))},{}],879:[function(t,e,i){!function(t,n){"object"==typeof i&&void 0!==e?n(i):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).d3=t.d3||{})}(this,(function(t){"use strict";var e,i,n=0,r=0,a=0,o=0,s=0,l=0,u="object"==typeof performance&&performance.now?performance:Date,c="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function p(){return s||(c(h),s=u.now()+l)}function h(){s=0}function f(){this._call=this._time=this._next=null}function d(t,e,i){var n=new f;return n.restart(t,e,i),n}function g(){p(),++n;for(var t,i=e;i;)(t=s-i._time)>=0&&i._call.call(null,t),i=i._next;--n}function v(){s=(o=u.now())+l,n=r=0;try{g()}finally{n=0,function(){var t,n,r=e,a=1/0;for(;r;)r._call?(a>r._time&&(a=r._time),t=r,r=r._next):(n=r._next,r._next=null,r=t?t._next=n:e=n);i=t,m(a)}(),s=0}}function y(){var t=u.now(),e=t-o;e>1e3&&(l-=e,o=t)}function m(t){n||(r&&(r=clearTimeout(r)),t-s>24?(t<1/0&&(r=setTimeout(v,t-u.now()-l)),a&&(a=clearInterval(a))):(a||(o=u.now(),a=setInterval(y,1e3)),n=1,c(v)))}f.prototype=d.prototype={constructor:f,restart:function(t,n,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?p():+r)+(null==n?0:+n),this._next||i===this||(i?i._next=this:e=this,i=this),this._call=t,this._time=r,m()},stop:function(){this._call&&(this._call=null,this._time=1/0,m())}},t.interval=function(t,e,i){var n=new f,r=e;return null==e?(n.restart(t,e,i),n):(e=+e,i=null==i?p():+i,n.restart((function a(o){o+=r,n.restart(a,r+=e,i),t(o)}),e,i),n)},t.now=p,t.timeout=function(t,e,i){var n=new f;return e=null==e?0:+e,n.restart((function(i){n.stop(),t(i+e)}),e,i),n},t.timer=d,t.timerFlush=g,Object.defineProperty(t,"__esModule",{value:!0})}))},{}],880:[function(t,e,i){(function(t){"use strict";var e=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),r=0;for(e=0;e<i;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,r++)n[r]=a[o];return n};Object.defineProperty(i,"__esModule",{value:!0});var n=function(t,e,i){this.name=t,this.version=e,this.os=i,this.type="browser"};i.BrowserInfo=n;var r=function(e){this.version=e,this.type="node",this.name="node",this.os=t.platform};i.NodeInfo=r;var a=function(t,e,i,n){this.name=t,this.version=e,this.os=i,this.bot=n,this.type="bot-device"};i.SearchBotDeviceInfo=a;var o=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null};i.BotInfo=o;var s=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null};i.ReactNativeInfo=s;var l=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,u=[["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",/Edg\/([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|$)/],["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",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],c=[["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/],["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 p(t){return""!==t&&u.reduce((function(e,i){var n=i[0],r=i[1];if(e)return e;var a=r.exec(t);return!!a&&[n,a]}),!1)}function h(t){var i=p(t);if(!i)return null;var r=i[0],s=i[1];if("searchbot"===r)return new o;var u=s[1]&&s[1].split(/[._]/).slice(0,3);u?u.length<3&&(u=e(u,function(t){for(var e=[],i=0;i<t;i++)e.push("0");return e}(3-u.length))):u=[];var c=u.join("."),h=f(t),d=l.exec(t);return d&&d[1]?new a(r,c,h,d[1]):new n(r,c,h)}function f(t){for(var e=0,i=c.length;e<i;e++){var n=c[e],r=n[0];if(n[1].exec(t))return r}return null}function d(){return void 0!==t&&t.version?new r(t.version.slice(1)):null}i.detect=function(t){return t?h(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new s:"undefined"!=typeof navigator?h(navigator.userAgent):d()},i.browserName=function(t){var e=p(t);return e?e[0]:null},i.parseUserAgent=h,i.detectOS=f,i.getNodeVersion=d}).call(this,t("_process"))},{_process:1}],881:[function(t,e,i){!function(t,n){"object"==typeof i&&void 0!==e?n(i):"function"==typeof define&&define.amd?define(["exports"],n):n(t.fecha={})}(this,(function(t){"use strict";var e=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="[^\\s]+",n=/\[([^]*?)\]/gm;function r(t,e){for(var i=[],n=0,r=t.length;n<r;n++)i.push(t[n].substr(0,e));return i}var a=function(t){return function(e,i){var n=i[t].map((function(t){return t.toLowerCase()})).indexOf(e.toLowerCase());return n>-1?n:null}};function o(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];for(var n=0,r=e;n<r.length;n++){var a=r[n];for(var o in a)t[o]=a[o]}return t}var s=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"],u=r(l,3),c={dayNamesShort:r(s,3),dayNames:s,monthNamesShort:u,monthNames:l,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10?1:0)*t%10]}},p=o({},c),h=function(t){return p=o(p,t)},f=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},d=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},g={D:function(t){return String(t.getDate())},DD:function(t){return d(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return d(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 d(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 d(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return d(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return d(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return d(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return d(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return d(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return d(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return d(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?"-":"+")+d(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+d(Math.floor(Math.abs(e)/60),2)+":"+d(Math.abs(e)%60,2)}},v=function(t){return+t-1},y=[null,"[1-9]\\d?"],m=[null,i],b=["isPm",i,function(t,e){var i=t.toLowerCase();return i===e.amPm[0]?0:i===e.amPm[1]?1:null}],x=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var i=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?i:-i}return 0}],_={D:["day","[1-9]\\d?"],DD:["day","\\d\\d"],Do:["day","[1-9]\\d?"+i,function(t){return parseInt(t,10)}],M:["month","[1-9]\\d?",v],MM:["month","\\d\\d",v],YY:["year","\\d\\d",function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour","[1-9]\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","[1-9]\\d?"],HH:["hour","\\d\\d"],m:["minute","[1-9]\\d?"],mm:["minute","\\d\\d"],s:["second","[1-9]\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond","\\d\\d",function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:y,dd:y,ddd:m,dddd:m,MMM:["month",i,a("monthNamesShort")],MMMM:["month",i,a("monthNames")],a:b,A:b,ZZ:x,Z:x},M={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"},w=function(t){return o(M,t)},S=function(t,i,r){if(void 0===i&&(i=M.default),void 0===r&&(r={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var a=[];i=(i=M[i]||i).replace(n,(function(t,e){return a.push(e),"@@@"}));var s=o(o({},p),r);return(i=i.replace(e,(function(e){return g[e](t,s)}))).replace(/@@@/g,(function(){return a.shift()}))};function C(t,i,r){if(void 0===r&&(r={}),"string"!=typeof i)throw new Error("Invalid format in fecha parse");if(i=M[i]||i,t.length>1e3)return null;var a={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},s=[],l=[],u=i.replace(n,(function(t,e){return l.push(f(e)),"@@@"})),c={},h={};u=f(u).replace(e,(function(t){var e=_[t],i=e[0],n=e[1],r=e[3];if(c[i])throw new Error("Invalid format. "+i+" specified twice in format");return c[i]=!0,r&&(h[r]=!0),s.push(e),"("+n+")"})),Object.keys(h).forEach((function(t){if(!c[t])throw new Error("Invalid format. "+t+" is required in specified format")})),u=u.replace(/@@@/g,(function(){return l.shift()}));var d=t.match(new RegExp(u,"i"));if(!d)return null;for(var g=o(o({},p),r),v=1;v<d.length;v++){var y=s[v-1],m=y[0],b=y[2],x=b?b(d[v],g):+d[v];if(null==x)return null;a[m]=x}1===a.isPm&&null!=a.hour&&12!=+a.hour?a.hour=+a.hour+12:0===a.isPm&&12==+a.hour&&(a.hour=0);for(var w=new Date(a.year,a.month,a.day,a.hour,a.minute,a.second,a.millisecond),S=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],C=(v=0,S.length);v<C;v++)if(c[S[v][0]]&&a[S[v][0]]!==w[S[v][1]]())return null;return null==a.timezoneOffset?w:new Date(Date.UTC(a.year,a.month,a.day,a.hour,a.minute-a.timezoneOffset,a.second,a.millisecond))}var P={format:S,parse:C,defaultI18n:c,setGlobalDateI18n:h,setGlobalDateMasks:w};t.assign=o,t.default=P,t.format=S,t.parse=C,t.defaultI18n=c,t.setGlobalDateI18n=h,t.setGlobalDateMasks=w,Object.defineProperty(t,"__esModule",{value:!0})}))},{}],882:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.setMatrixArrayType=function(t){i.ARRAY_TYPE=n=t},i.toRadian=function(t){return t*a},i.equals=function(t,e){return Math.abs(t-e)<=1e-6*Math.max(1,Math.abs(t),Math.abs(e))},i.RANDOM=i.ARRAY_TYPE=i.EPSILON=void 0;i.EPSILON=1e-6;var n="undefined"!=typeof Float32Array?Float32Array:Array;i.ARRAY_TYPE=n;var r=Math.random;i.RANDOM=r;var a=Math.PI/180;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},{}],883:[function(t,e,i){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(i,"__esModule",{value:!0}),i.vec4=i.vec3=i.vec2=i.quat2=i.quat=i.mat4=i.mat3=i.mat2d=i.mat2=i.glMatrix=void 0;var r=g(t("./common.js"));i.glMatrix=r;var a=g(t("./mat2.js"));i.mat2=a;var o=g(t("./mat2d.js"));i.mat2d=o;var s=g(t("./mat3.js"));i.mat3=s;var l=g(t("./mat4.js"));i.mat4=l;var u=g(t("./quat.js"));i.quat=u;var c=g(t("./quat2.js"));i.quat2=c;var p=g(t("./vec2.js"));i.vec2=p;var h=g(t("./vec3.js"));i.vec3=h;var f=g(t("./vec4.js"));function d(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return d=function(){return t},t}function g(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!=typeof t)return{default:t};var e=d();if(e&&e.has(t))return e.get(t);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=r?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(i,a,o):i[a]=t[a]}return i.default=t,e&&e.set(t,i),i}i.vec4=f},{"./common.js":882,"./mat2.js":884,"./mat2d.js":885,"./mat3.js":886,"./mat4.js":887,"./quat.js":888,"./quat2.js":889,"./vec2.js":890,"./vec3.js":891,"./vec4.js":892}],884:[function(t,e,i){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(i,"__esModule",{value:!0}),i.create=function(){var t=new r.ARRAY_TYPE(4);r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0);return t[0]=1,t[3]=1,t},i.clone=function(t){var e=new r.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},i.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},i.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},i.fromValues=function(t,e,i,n){var a=new r.ARRAY_TYPE(4);return a[0]=t,a[1]=e,a[2]=i,a[3]=n,a},i.set=function(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t},i.transpose=function(t,e){if(t===e){var i=e[1];t[1]=e[2],t[2]=i}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t},i.invert=function(t,e){var i=e[0],n=e[1],r=e[2],a=e[3],o=i*a-r*n;if(!o)return null;return o=1/o,t[0]=a*o,t[1]=-n*o,t[2]=-r*o,t[3]=i*o,t},i.adjoint=function(t,e){var i=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=i,t},i.determinant=function(t){return t[0]*t[3]-t[2]*t[1]},i.multiply=o,i.rotate=function(t,e,i){var n=e[0],r=e[1],a=e[2],o=e[3],s=Math.sin(i),l=Math.cos(i);return t[0]=n*l+a*s,t[1]=r*l+o*s,t[2]=n*-s+a*l,t[3]=r*-s+o*l,t},i.scale=function(t,e,i){var n=e[0],r=e[1],a=e[2],o=e[3],s=i[0],l=i[1];return t[0]=n*s,t[1]=r*s,t[2]=a*l,t[3]=o*l,t},i.fromRotation=function(t,e){var i=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=i,t[2]=-i,t[3]=n,t},i.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t},i.str=function(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},i.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3])},i.LDU=function(t,e,i,n){return t[2]=n[2]/n[0],i[0]=n[0],i[1]=n[1],i[3]=n[3]-t[2]*i[1],[t,e,i]},i.add=function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t[3]=e[3]+i[3],t},i.subtract=s,i.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},i.equals=function(t,e){var i=t[0],n=t[1],a=t[2],o=t[3],s=e[0],l=e[1],u=e[2],c=e[3];return Math.abs(i-s)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(n-l)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(a-u)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(o-c)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},i.multiplyScalar=function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t},i.multiplyScalarAndAdd=function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t[2]=e[2]+i[2]*n,t[3]=e[3]+i[3]*n,t},i.sub=i.mul=void 0;var r=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!=typeof t)return{default:t};var e=a();if(e&&e.has(t))return e.get(t);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var s=r?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=t[o]}i.default=t,e&&e.set(t,i);return i}(t("./common.js"));function a(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return a=function(){return t},t}function o(t,e,i){var n=e[0],r=e[1],a=e[2],o=e[3],s=i[0],l=i[1],u=i[2],c=i[3];return t[0]=n*s+a*l,t[1]=r*s+o*l,t[2]=n*u+a*c,t[3]=r*u+o*c,t}function s(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t[3]=e[3]-i[3],t}var l=o;i.mul=l;var u=s;i.sub=u},{"./common.js":882}],885:[function(t,e,i){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(i,"__esModule",{value:!0}),i.create=function(){var t=new r.ARRAY_TYPE(6);r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0);return t[0]=1,t[3]=1,t},i.clone=function(t){var e=new r.ARRAY_TYPE(6);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},i.copy=function(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},i.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},i.fromValues=function(t,e,i,n,a,o){var s=new r.ARRAY_TYPE(6);return s[0]=t,s[1]=e,s[2]=i,s[3]=n,s[4]=a,s[5]=o,s},i.set=function(t,e,i,n,r,a,o){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t[4]=a,t[5]=o,t},i.invert=function(t,e){var i=e[0],n=e[1],r=e[2],a=e[3],o=e[4],s=e[5],l=i*a-n*r;if(!l)return null;return l=1/l,t[0]=a*l,t[1]=-n*l,t[2]=-r*l,t[3]=i*l,t[4]=(r*s-a*o)*l,t[5]=(n*o-i*s)*l,t},i.determinant=function(t){return t[0]*t[3]-t[1]*t[2]},i.multiply=o,i.rotate=function(t,e,i){var n=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=Math.sin(i),c=Math.cos(i);return t[0]=n*c+a*u,t[1]=r*c+o*u,t[2]=n*-u+a*c,t[3]=r*-u+o*c,t[4]=s,t[5]=l,t},i.scale=function(t,e,i){var n=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=i[0],c=i[1];return t[0]=n*u,t[1]=r*u,t[2]=a*c,t[3]=o*c,t[4]=s,t[5]=l,t},i.translate=function(t,e,i){var n=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=i[0],c=i[1];return t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=n*u+a*c+s,t[5]=r*u+o*c+l,t},i.fromRotation=function(t,e){var i=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=i,t[2]=-i,t[3]=n,t[4]=0,t[5]=0,t},i.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t},i.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t},i.str=function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},i.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],1)},i.add=function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t[3]=e[3]+i[3],t[4]=e[4]+i[4],t[5]=e[5]+i[5],t},i.subtract=s,i.multiplyScalar=function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*i,t[5]=e[5]*i,t},i.multiplyScalarAndAdd=function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t[2]=e[2]+i[2]*n,t[3]=e[3]+i[3]*n,t[4]=e[4]+i[4]*n,t[5]=e[5]+i[5]*n,t},i.exactEquals=function(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]},i.equals=function(t,e){var i=t[0],n=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=e[0],c=e[1],p=e[2],h=e[3],f=e[4],d=e[5];return Math.abs(i-u)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(n-c)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(c))&&Math.abs(a-p)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(o-h)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(s-f)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(f))&&Math.abs(l-d)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(d))},i.sub=i.mul=void 0;var r=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!=typeof t)return{default:t};var e=a();if(e&&e.has(t))return e.get(t);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var s=r?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=t[o]}i.default=t,e&&e.set(t,i);return i}(t("./common.js"));function a(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return a=function(){return t},t}function o(t,e,i){var n=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=i[0],c=i[1],p=i[2],h=i[3],f=i[4],d=i[5];return t[0]=n*u+a*c,t[1]=r*u+o*c,t[2]=n*p+a*h,t[3]=r*p+o*h,t[4]=n*f+a*d+s,t[5]=r*f+o*d+l,t}function s(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t[3]=e[3]-i[3],t[4]=e[4]-i[4],t[5]=e[5]-i[5],t}var l=o;i.mul=l;var u=s;i.sub=u},{"./common.js":882}],886:[function(t,e,i){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(i,"__esModule",{value:!0}),i.create=function(){var t=new r.ARRAY_TYPE(9);r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0);return t[0]=1,t[4]=1,t[8]=1,t},i.fromMat4=function(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},i.clone=function(t){var e=new r.ARRAY_TYPE(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},i.copy=function(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},i.fromValues=function(t,e,i,n,a,o,s,l,u){var c=new r.ARRAY_TYPE(9);return c[0]=t,c[1]=e,c[2]=i,c[3]=n,c[4]=a,c[5]=o,c[6]=s,c[7]=l,c[8]=u,c},i.set=function(t,e,i,n,r,a,o,s,l,u){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=u,t},i.identity=function(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},i.transpose=function(t,e){if(t===e){var i=e[1],n=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=i,t[5]=e[7],t[6]=n,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},i.invert=function(t,e){var i=e[0],n=e[1],r=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],p=c*o-s*u,h=-c*a+s*l,f=u*a-o*l,d=i*p+n*h+r*f;if(!d)return null;return d=1/d,t[0]=p*d,t[1]=(-c*n+r*u)*d,t[2]=(s*n-r*o)*d,t[3]=h*d,t[4]=(c*i-r*l)*d,t[5]=(-s*i+r*a)*d,t[6]=f*d,t[7]=(-u*i+n*l)*d,t[8]=(o*i-n*a)*d,t},i.adjoint=function(t,e){var i=e[0],n=e[1],r=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8];return t[0]=o*c-s*u,t[1]=r*u-n*c,t[2]=n*s-r*o,t[3]=s*l-a*c,t[4]=i*c-r*l,t[5]=r*a-i*s,t[6]=a*u-o*l,t[7]=n*l-i*u,t[8]=i*o-n*a,t},i.determinant=function(t){var e=t[0],i=t[1],n=t[2],r=t[3],a=t[4],o=t[5],s=t[6],l=t[7],u=t[8];return e*(u*a-o*l)+i*(-u*r+o*s)+n*(l*r-a*s)},i.multiply=o,i.translate=function(t,e,i){var n=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],p=e[8],h=i[0],f=i[1];return t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=h*n+f*o+u,t[7]=h*r+f*s+c,t[8]=h*a+f*l+p,t},i.rotate=function(t,e,i){var n=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],p=e[8],h=Math.sin(i),f=Math.cos(i);return t[0]=f*n+h*o,t[1]=f*r+h*s,t[2]=f*a+h*l,t[3]=f*o-h*n,t[4]=f*s-h*r,t[5]=f*l-h*a,t[6]=u,t[7]=c,t[8]=p,t},i.scale=function(t,e,i){var n=i[0],r=i[1];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*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},i.fromTranslation=function(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},i.fromRotation=function(t,e){var i=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=i,t[2]=0,t[3]=-i,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},i.fromScaling=function(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},i.fromMat2d=function(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},i.fromQuat=function(t,e){var i=e[0],n=e[1],r=e[2],a=e[3],o=i+i,s=n+n,l=r+r,u=i*o,c=n*o,p=n*s,h=r*o,f=r*s,d=r*l,g=a*o,v=a*s,y=a*l;return t[0]=1-p-d,t[3]=c-y,t[6]=h+v,t[1]=c+y,t[4]=1-u-d,t[7]=f-g,t[2]=h-v,t[5]=f+g,t[8]=1-u-p,t},i.normalFromMat4=function(t,e){var i=e[0],n=e[1],r=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],p=e[9],h=e[10],f=e[11],d=e[12],g=e[13],v=e[14],y=e[15],m=i*s-n*o,b=i*l-r*o,x=i*u-a*o,_=n*l-r*s,M=n*u-a*s,w=r*u-a*l,S=c*g-p*d,C=c*v-h*d,P=c*y-f*d,O=p*v-h*g,T=p*y-f*g,A=h*y-f*v,E=m*A-b*T+x*O+_*P-M*C+w*S;if(!E)return null;return E=1/E,t[0]=(s*A-l*T+u*O)*E,t[1]=(l*P-o*A-u*C)*E,t[2]=(o*T-s*P+u*S)*E,t[3]=(r*T-n*A-a*O)*E,t[4]=(i*A-r*P+a*C)*E,t[5]=(n*P-i*T-a*S)*E,t[6]=(g*w-v*M+y*_)*E,t[7]=(v*x-d*w-y*b)*E,t[8]=(d*M-g*x+y*m)*E,t},i.projection=function(t,e,i){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/i,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},i.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},i.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},i.add=function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t[3]=e[3]+i[3],t[4]=e[4]+i[4],t[5]=e[5]+i[5],t[6]=e[6]+i[6],t[7]=e[7]+i[7],t[8]=e[8]+i[8],t},i.subtract=s,i.multiplyScalar=function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*i,t},i.multiplyScalarAndAdd=function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t[2]=e[2]+i[2]*n,t[3]=e[3]+i[3]*n,t[4]=e[4]+i[4]*n,t[5]=e[5]+i[5]*n,t[6]=e[6]+i[6]*n,t[7]=e[7]+i[7]*n,t[8]=e[8]+i[8]*n,t},i.exactEquals=function(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]},i.equals=function(t,e){var i=t[0],n=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],p=t[8],h=e[0],f=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(i-h)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(n-f)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(a-d)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(o-g)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(s-v)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(l-y)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(u-m)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(c-b)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(b))&&Math.abs(p-x)<=r.EPSILON*Math.max(1,Math.abs(p),Math.abs(x))},i.sub=i.mul=void 0;var r=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!=typeof t)return{default:t};var e=a();if(e&&e.has(t))return e.get(t);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var s=r?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=t[o]}i.default=t,e&&e.set(t,i);return i}(t("./common.js"));function a(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return a=function(){return t},t}function o(t,e,i){var n=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],p=e[8],h=i[0],f=i[1],d=i[2],g=i[3],v=i[4],y=i[5],m=i[6],b=i[7],x=i[8];return t[0]=h*n+f*o+d*u,t[1]=h*r+f*s+d*c,t[2]=h*a+f*l+d*p,t[3]=g*n+v*o+y*u,t[4]=g*r+v*s+y*c,t[5]=g*a+v*l+y*p,t[6]=m*n+b*o+x*u,t[7]=m*r+b*s+x*c,t[8]=m*a+b*l+x*p,t}function s(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t[3]=e[3]-i[3],t[4]=e[4]-i[4],t[5]=e[5]-i[5],t[6]=e[6]-i[6],t[7]=e[7]-i[7],t[8]=e[8]-i[8],t}var l=o;i.mul=l;var u=s;i.sub=u},{"./common.js":882}],887:[function(t,e,i){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(i,"__esModule",{value:!0}),i.create=function(){var t=new r.ARRAY_TYPE(16);r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0);return t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},i.clone=function(t){var e=new r.ARRAY_TYPE(16);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[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},i.copy=function(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[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},i.fromValues=function(t,e,i,n,a,o,s,l,u,c,p,h,f,d,g,v){var y=new r.ARRAY_TYPE(16);return y[0]=t,y[1]=e,y[2]=i,y[3]=n,y[4]=a,y[5]=o,y[6]=s,y[7]=l,y[8]=u,y[9]=c,y[10]=p,y[11]=h,y[12]=f,y[13]=d,y[14]=g,y[15]=v,y},i.set=function(t,e,i,n,r,a,o,s,l,u,c,p,h,f,d,g,v){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=u,t[9]=c,t[10]=p,t[11]=h,t[12]=f,t[13]=d,t[14]=g,t[15]=v,t},i.identity=o,i.transpose=function(t,e){if(t===e){var i=e[1],n=e[2],r=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=i,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=r,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t},i.invert=function(t,e){var i=e[0],n=e[1],r=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],p=e[9],h=e[10],f=e[11],d=e[12],g=e[13],v=e[14],y=e[15],m=i*s-n*o,b=i*l-r*o,x=i*u-a*o,_=n*l-r*s,M=n*u-a*s,w=r*u-a*l,S=c*g-p*d,C=c*v-h*d,P=c*y-f*d,O=p*v-h*g,T=p*y-f*g,A=h*y-f*v,E=m*A-b*T+x*O+_*P-M*C+w*S;if(!E)return null;return E=1/E,t[0]=(s*A-l*T+u*O)*E,t[1]=(r*T-n*A-a*O)*E,t[2]=(g*w-v*M+y*_)*E,t[3]=(h*M-p*w-f*_)*E,t[4]=(l*P-o*A-u*C)*E,t[5]=(i*A-r*P+a*C)*E,t[6]=(v*x-d*w-y*b)*E,t[7]=(c*w-h*x+f*b)*E,t[8]=(o*T-s*P+u*S)*E,t[9]=(n*P-i*T-a*S)*E,t[10]=(d*M-g*x+y*m)*E,t[11]=(p*x-c*M-f*m)*E,t[12]=(s*C-o*O-l*S)*E,t[13]=(i*O-n*C+r*S)*E,t[14]=(g*b-d*_-v*m)*E,t[15]=(c*_-p*b+h*m)*E,t},i.adjoint=function(t,e){var i=e[0],n=e[1],r=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],p=e[9],h=e[10],f=e[11],d=e[12],g=e[13],v=e[14],y=e[15];return t[0]=s*(h*y-f*v)-p*(l*y-u*v)+g*(l*f-u*h),t[1]=-(n*(h*y-f*v)-p*(r*y-a*v)+g*(r*f-a*h)),t[2]=n*(l*y-u*v)-s*(r*y-a*v)+g*(r*u-a*l),t[3]=-(n*(l*f-u*h)-s*(r*f-a*h)+p*(r*u-a*l)),t[4]=-(o*(h*y-f*v)-c*(l*y-u*v)+d*(l*f-u*h)),t[5]=i*(h*y-f*v)-c*(r*y-a*v)+d*(r*f-a*h),t[6]=-(i*(l*y-u*v)-o*(r*y-a*v)+d*(r*u-a*l)),t[7]=i*(l*f-u*h)-o*(r*f-a*h)+c*(r*u-a*l),t[8]=o*(p*y-f*g)-c*(s*y-u*g)+d*(s*f-u*p),t[9]=-(i*(p*y-f*g)-c*(n*y-a*g)+d*(n*f-a*p)),t[10]=i*(s*y-u*g)-o*(n*y-a*g)+d*(n*u-a*s),t[11]=-(i*(s*f-u*p)-o*(n*f-a*p)+c*(n*u-a*s)),t[12]=-(o*(p*v-h*g)-c*(s*v-l*g)+d*(s*h-l*p)),t[13]=i*(p*v-h*g)-c*(n*v-r*g)+d*(n*h-r*p),t[14]=-(i*(s*v-l*g)-o*(n*v-r*g)+d*(n*l-r*s)),t[15]=i*(s*h-l*p)-o*(n*h-r*p)+c*(n*l-r*s),t},i.determinant=function(t){var e=t[0],i=t[1],n=t[2],r=t[3],a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],p=t[10],h=t[11],f=t[12],d=t[13],g=t[14],v=t[15];return(e*o-i*a)*(p*v-h*g)-(e*s-n*a)*(c*v-h*d)+(e*l-r*a)*(c*g-p*d)+(i*s-n*o)*(u*v-h*f)-(i*l-r*o)*(u*g-p*f)+(n*l-r*s)*(u*d-c*f)},i.multiply=s,i.translate=function(t,e,i){var n,r,a,o,s,l,u,c,p,h,f,d,g=i[0],v=i[1],y=i[2];e===t?(t[12]=e[0]*g+e[4]*v+e[8]*y+e[12],t[13]=e[1]*g+e[5]*v+e[9]*y+e[13],t[14]=e[2]*g+e[6]*v+e[10]*y+e[14],t[15]=e[3]*g+e[7]*v+e[11]*y+e[15]):(n=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],p=e[8],h=e[9],f=e[10],d=e[11],t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=p,t[9]=h,t[10]=f,t[11]=d,t[12]=n*g+s*v+p*y+e[12],t[13]=r*g+l*v+h*y+e[13],t[14]=a*g+u*v+f*y+e[14],t[15]=o*g+c*v+d*y+e[15]);return t},i.scale=function(t,e,i){var n=i[0],r=i[1],a=i[2];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]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},i.rotate=function(t,e,i,n){var a,o,s,l,u,c,p,h,f,d,g,v,y,m,b,x,_,M,w,S,C,P,O,T,A=n[0],E=n[1],L=n[2],I=Math.hypot(A,E,L);if(I<r.EPSILON)return null;A*=I=1/I,E*=I,L*=I,a=Math.sin(i),o=Math.cos(i),s=1-o,l=e[0],u=e[1],c=e[2],p=e[3],h=e[4],f=e[5],d=e[6],g=e[7],v=e[8],y=e[9],m=e[10],b=e[11],x=A*A*s+o,_=E*A*s+L*a,M=L*A*s-E*a,w=A*E*s-L*a,S=E*E*s+o,C=L*E*s+A*a,P=A*L*s+E*a,O=E*L*s-A*a,T=L*L*s+o,t[0]=l*x+h*_+v*M,t[1]=u*x+f*_+y*M,t[2]=c*x+d*_+m*M,t[3]=p*x+g*_+b*M,t[4]=l*w+h*S+v*C,t[5]=u*w+f*S+y*C,t[6]=c*w+d*S+m*C,t[7]=p*w+g*S+b*C,t[8]=l*P+h*O+v*T,t[9]=u*P+f*O+y*T,t[10]=c*P+d*O+m*T,t[11]=p*P+g*O+b*T,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t},i.rotateX=function(t,e,i){var n=Math.sin(i),r=Math.cos(i),a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],p=e[10],h=e[11];e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[4]=a*r+u*n,t[5]=o*r+c*n,t[6]=s*r+p*n,t[7]=l*r+h*n,t[8]=u*r-a*n,t[9]=c*r-o*n,t[10]=p*r-s*n,t[11]=h*r-l*n,t},i.rotateY=function(t,e,i){var n=Math.sin(i),r=Math.cos(i),a=e[0],o=e[1],s=e[2],l=e[3],u=e[8],c=e[9],p=e[10],h=e[11];e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*r-u*n,t[1]=o*r-c*n,t[2]=s*r-p*n,t[3]=l*r-h*n,t[8]=a*n+u*r,t[9]=o*n+c*r,t[10]=s*n+p*r,t[11]=l*n+h*r,t},i.rotateZ=function(t,e,i){var n=Math.sin(i),r=Math.cos(i),a=e[0],o=e[1],s=e[2],l=e[3],u=e[4],c=e[5],p=e[6],h=e[7];e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*r+u*n,t[1]=o*r+c*n,t[2]=s*r+p*n,t[3]=l*r+h*n,t[4]=u*r-a*n,t[5]=c*r-o*n,t[6]=p*r-s*n,t[7]=h*r-l*n,t},i.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t},i.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},i.fromRotation=function(t,e,i){var n,a,o,s=i[0],l=i[1],u=i[2],c=Math.hypot(s,l,u);if(c<r.EPSILON)return null;return s*=c=1/c,l*=c,u*=c,n=Math.sin(e),a=Math.cos(e),o=1-a,t[0]=s*s*o+a,t[1]=l*s*o+u*n,t[2]=u*s*o-l*n,t[3]=0,t[4]=s*l*o-u*n,t[5]=l*l*o+a,t[6]=u*l*o+s*n,t[7]=0,t[8]=s*u*o+l*n,t[9]=l*u*o-s*n,t[10]=u*u*o+a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},i.fromXRotation=function(t,e){var i=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=i,t[7]=0,t[8]=0,t[9]=-i,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},i.fromYRotation=function(t,e){var i=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-i,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=i,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},i.fromZRotation=function(t,e){var i=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=i,t[2]=0,t[3]=0,t[4]=-i,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},i.fromRotationTranslation=l,i.fromQuat2=function(t,e){var i=new r.ARRAY_TYPE(3),n=-e[0],a=-e[1],o=-e[2],s=e[3],u=e[4],c=e[5],p=e[6],h=e[7],f=n*n+a*a+o*o+s*s;f>0?(i[0]=2*(u*s+h*n+c*o-p*a)/f,i[1]=2*(c*s+h*a+p*n-u*o)/f,i[2]=2*(p*s+h*o+u*a-c*n)/f):(i[0]=2*(u*s+h*n+c*o-p*a),i[1]=2*(c*s+h*a+p*n-u*o),i[2]=2*(p*s+h*o+u*a-c*n));return l(t,e,i),t},i.getTranslation=function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},i.getScaling=u,i.getRotation=function(t,e){var i=new r.ARRAY_TYPE(3);u(i,e);var n=1/i[0],a=1/i[1],o=1/i[2],s=e[0]*n,l=e[1]*a,c=e[2]*o,p=e[4]*n,h=e[5]*a,f=e[6]*o,d=e[8]*n,g=e[9]*a,v=e[10]*o,y=s+h+v,m=0;y>0?(m=2*Math.sqrt(y+1),t[3]=.25*m,t[0]=(f-g)/m,t[1]=(d-c)/m,t[2]=(l-p)/m):s>h&&s>v?(m=2*Math.sqrt(1+s-h-v),t[3]=(f-g)/m,t[0]=.25*m,t[1]=(l+p)/m,t[2]=(d+c)/m):h>v?(m=2*Math.sqrt(1+h-s-v),t[3]=(d-c)/m,t[0]=(l+p)/m,t[1]=.25*m,t[2]=(f+g)/m):(m=2*Math.sqrt(1+v-s-h),t[3]=(l-p)/m,t[0]=(d+c)/m,t[1]=(f+g)/m,t[2]=.25*m);return t},i.fromRotationTranslationScale=function(t,e,i,n){var r=e[0],a=e[1],o=e[2],s=e[3],l=r+r,u=a+a,c=o+o,p=r*l,h=r*u,f=r*c,d=a*u,g=a*c,v=o*c,y=s*l,m=s*u,b=s*c,x=n[0],_=n[1],M=n[2];return t[0]=(1-(d+v))*x,t[1]=(h+b)*x,t[2]=(f-m)*x,t[3]=0,t[4]=(h-b)*_,t[5]=(1-(p+v))*_,t[6]=(g+y)*_,t[7]=0,t[8]=(f+m)*M,t[9]=(g-y)*M,t[10]=(1-(p+d))*M,t[11]=0,t[12]=i[0],t[13]=i[1],t[14]=i[2],t[15]=1,t},i.fromRotationTranslationScaleOrigin=function(t,e,i,n,r){var a=e[0],o=e[1],s=e[2],l=e[3],u=a+a,c=o+o,p=s+s,h=a*u,f=a*c,d=a*p,g=o*c,v=o*p,y=s*p,m=l*u,b=l*c,x=l*p,_=n[0],M=n[1],w=n[2],S=r[0],C=r[1],P=r[2],O=(1-(g+y))*_,T=(f+x)*_,A=(d-b)*_,E=(f-x)*M,L=(1-(h+y))*M,I=(v+m)*M,D=(d+b)*w,k=(v-m)*w,B=(1-(h+g))*w;return t[0]=O,t[1]=T,t[2]=A,t[3]=0,t[4]=E,t[5]=L,t[6]=I,t[7]=0,t[8]=D,t[9]=k,t[10]=B,t[11]=0,t[12]=i[0]+S-(O*S+E*C+D*P),t[13]=i[1]+C-(T*S+L*C+k*P),t[14]=i[2]+P-(A*S+I*C+B*P),t[15]=1,t},i.fromQuat=function(t,e){var i=e[0],n=e[1],r=e[2],a=e[3],o=i+i,s=n+n,l=r+r,u=i*o,c=n*o,p=n*s,h=r*o,f=r*s,d=r*l,g=a*o,v=a*s,y=a*l;return t[0]=1-p-d,t[1]=c+y,t[2]=h-v,t[3]=0,t[4]=c-y,t[5]=1-u-d,t[6]=f+g,t[7]=0,t[8]=h+v,t[9]=f-g,t[10]=1-u-p,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},i.frustum=function(t,e,i,n,r,a,o){var s=1/(i-e),l=1/(r-n),u=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(i+e)*s,t[9]=(r+n)*l,t[10]=(o+a)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*u,t[15]=0,t},i.perspective=function(t,e,i,n,r){var a,o=1/Math.tan(e/2);t[0]=o/i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=r&&r!==1/0?(a=1/(n-r),t[10]=(r+n)*a,t[14]=2*r*n*a):(t[10]=-1,t[14]=-2*n);return t},i.perspectiveFromFieldOfView=function(t,e,i,n){var r=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(r+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(o-s)*l*.5,t[9]=(r-a)*u*.5,t[10]=n/(i-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*i/(i-n),t[15]=0,t},i.ortho=function(t,e,i,n,r,a,o){var s=1/(e-i),l=1/(n-r),u=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+i)*s,t[13]=(r+n)*l,t[14]=(o+a)*u,t[15]=1,t},i.lookAt=function(t,e,i,n){var a,s,l,u,c,p,h,f,d,g,v=e[0],y=e[1],m=e[2],b=n[0],x=n[1],_=n[2],M=i[0],w=i[1],S=i[2];if(Math.abs(v-M)<r.EPSILON&&Math.abs(y-w)<r.EPSILON&&Math.abs(m-S)<r.EPSILON)return o(t);h=v-M,f=y-w,d=m-S,g=1/Math.hypot(h,f,d),a=x*(d*=g)-_*(f*=g),s=_*(h*=g)-b*d,l=b*f-x*h,(g=Math.hypot(a,s,l))?(a*=g=1/g,s*=g,l*=g):(a=0,s=0,l=0);u=f*l-d*s,c=d*a-h*l,p=h*s-f*a,(g=Math.hypot(u,c,p))?(u*=g=1/g,c*=g,p*=g):(u=0,c=0,p=0);return t[0]=a,t[1]=u,t[2]=h,t[3]=0,t[4]=s,t[5]=c,t[6]=f,t[7]=0,t[8]=l,t[9]=p,t[10]=d,t[11]=0,t[12]=-(a*v+s*y+l*m),t[13]=-(u*v+c*y+p*m),t[14]=-(h*v+f*y+d*m),t[15]=1,t},i.targetTo=function(t,e,i,n){var r=e[0],a=e[1],o=e[2],s=n[0],l=n[1],u=n[2],c=r-i[0],p=a-i[1],h=o-i[2],f=c*c+p*p+h*h;f>0&&(f=1/Math.sqrt(f),c*=f,p*=f,h*=f);var d=l*h-u*p,g=u*c-s*h,v=s*p-l*c;(f=d*d+g*g+v*v)>0&&(f=1/Math.sqrt(f),d*=f,g*=f,v*=f);return t[0]=d,t[1]=g,t[2]=v,t[3]=0,t[4]=p*v-h*g,t[5]=h*d-c*v,t[6]=c*g-p*d,t[7]=0,t[8]=c,t[9]=p,t[10]=h,t[11]=0,t[12]=r,t[13]=a,t[14]=o,t[15]=1,t},i.str=function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},i.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},i.add=function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t[3]=e[3]+i[3],t[4]=e[4]+i[4],t[5]=e[5]+i[5],t[6]=e[6]+i[6],t[7]=e[7]+i[7],t[8]=e[8]+i[8],t[9]=e[9]+i[9],t[10]=e[10]+i[10],t[11]=e[11]+i[11],t[12]=e[12]+i[12],t[13]=e[13]+i[13],t[14]=e[14]+i[14],t[15]=e[15]+i[15],t},i.subtract=c,i.multiplyScalar=function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12]*i,t[13]=e[13]*i,t[14]=e[14]*i,t[15]=e[15]*i,t},i.multiplyScalarAndAdd=function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t[2]=e[2]+i[2]*n,t[3]=e[3]+i[3]*n,t[4]=e[4]+i[4]*n,t[5]=e[5]+i[5]*n,t[6]=e[6]+i[6]*n,t[7]=e[7]+i[7]*n,t[8]=e[8]+i[8]*n,t[9]=e[9]+i[9]*n,t[10]=e[10]+i[10]*n,t[11]=e[11]+i[11]*n,t[12]=e[12]+i[12]*n,t[13]=e[13]+i[13]*n,t[14]=e[14]+i[14]*n,t[15]=e[15]+i[15]*n,t},i.exactEquals=function(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[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]},i.equals=function(t,e){var i=t[0],n=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],p=t[8],h=t[9],f=t[10],d=t[11],g=t[12],v=t[13],y=t[14],m=t[15],b=e[0],x=e[1],_=e[2],M=e[3],w=e[4],S=e[5],C=e[6],P=e[7],O=e[8],T=e[9],A=e[10],E=e[11],L=e[12],I=e[13],D=e[14],k=e[15];return Math.abs(i-b)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(b))&&Math.abs(n-x)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(x))&&Math.abs(a-_)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(o-M)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(s-w)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(w))&&Math.abs(l-S)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(u-C)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(C))&&Math.abs(c-P)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(P))&&Math.abs(p-O)<=r.EPSILON*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(h-T)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(T))&&Math.abs(f-A)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(d-E)<=r.EPSILON*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(g-L)<=r.EPSILON*Math.max(1,Math.abs(g),Math.abs(L))&&Math.abs(v-I)<=r.EPSILON*Math.max(1,Math.abs(v),Math.abs(I))&&Math.abs(y-D)<=r.EPSILON*Math.max(1,Math.abs(y),Math.abs(D))&&Math.abs(m-k)<=r.EPSILON*Math.max(1,Math.abs(m),Math.abs(k))},i.sub=i.mul=void 0;var r=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!=typeof t)return{default:t};var e=a();if(e&&e.has(t))return e.get(t);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var s=r?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=t[o]}i.default=t,e&&e.set(t,i);return i}(t("./common.js"));function a(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return a=function(){return t},t}function o(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function s(t,e,i){var n=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],p=e[8],h=e[9],f=e[10],d=e[11],g=e[12],v=e[13],y=e[14],m=e[15],b=i[0],x=i[1],_=i[2],M=i[3];return t[0]=b*n+x*s+_*p+M*g,t[1]=b*r+x*l+_*h+M*v,t[2]=b*a+x*u+_*f+M*y,t[3]=b*o+x*c+_*d+M*m,b=i[4],x=i[5],_=i[6],M=i[7],t[4]=b*n+x*s+_*p+M*g,t[5]=b*r+x*l+_*h+M*v,t[6]=b*a+x*u+_*f+M*y,t[7]=b*o+x*c+_*d+M*m,b=i[8],x=i[9],_=i[10],M=i[11],t[8]=b*n+x*s+_*p+M*g,t[9]=b*r+x*l+_*h+M*v,t[10]=b*a+x*u+_*f+M*y,t[11]=b*o+x*c+_*d+M*m,b=i[12],x=i[13],_=i[14],M=i[15],t[12]=b*n+x*s+_*p+M*g,t[13]=b*r+x*l+_*h+M*v,t[14]=b*a+x*u+_*f+M*y,t[15]=b*o+x*c+_*d+M*m,t}function l(t,e,i){var n=e[0],r=e[1],a=e[2],o=e[3],s=n+n,l=r+r,u=a+a,c=n*s,p=n*l,h=n*u,f=r*l,d=r*u,g=a*u,v=o*s,y=o*l,m=o*u;return t[0]=1-(f+g),t[1]=p+m,t[2]=h-y,t[3]=0,t[4]=p-m,t[5]=1-(c+g),t[6]=d+v,t[7]=0,t[8]=h+y,t[9]=d-v,t[10]=1-(c+f),t[11]=0,t[12]=i[0],t[13]=i[1],t[14]=i[2],t[15]=1,t}function u(t,e){var i=e[0],n=e[1],r=e[2],a=e[4],o=e[5],s=e[6],l=e[8],u=e[9],c=e[10];return t[0]=Math.hypot(i,n,r),t[1]=Math.hypot(a,o,s),t[2]=Math.hypot(l,u,c),t}function c(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t[3]=e[3]-i[3],t[4]=e[4]-i[4],t[5]=e[5]-i[5],t[6]=e[6]-i[6],t[7]=e[7]-i[7],t[8]=e[8]-i[8],t[9]=e[9]-i[9],t[10]=e[10]-i[10],t[11]=e[11]-i[11],t[12]=e[12]-i[12],t[13]=e[13]-i[13],t[14]=e[14]-i[14],t[15]=e[15]-i[15],t}var p=s;i.mul=p;var h=c;i.sub=h},{"./common.js":882}],888:[function(t,e,i){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(i,"__esModule",{value:!0}),i.create=c,i.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},i.setAxisAngle=p,i.getAxisAngle=function(t,e){var i=2*Math.acos(e[3]),n=Math.sin(i/2);n>r.EPSILON?(t[0]=e[0]/n,t[1]=e[1]/n,t[2]=e[2]/n):(t[0]=1,t[1]=0,t[2]=0);return i},i.getAngle=function(t,e){var i=S(t,e);return Math.acos(2*i*i-1)},i.multiply=h,i.rotateX=function(t,e,i){i*=.5;var n=e[0],r=e[1],a=e[2],o=e[3],s=Math.sin(i),l=Math.cos(i);return t[0]=n*l+o*s,t[1]=r*l+a*s,t[2]=a*l-r*s,t[3]=o*l-n*s,t},i.rotateY=function(t,e,i){i*=.5;var n=e[0],r=e[1],a=e[2],o=e[3],s=Math.sin(i),l=Math.cos(i);return t[0]=n*l-a*s,t[1]=r*l+o*s,t[2]=a*l+n*s,t[3]=o*l-r*s,t},i.rotateZ=function(t,e,i){i*=.5;var n=e[0],r=e[1],a=e[2],o=e[3],s=Math.sin(i),l=Math.cos(i);return t[0]=n*l+r*s,t[1]=r*l-n*s,t[2]=a*l+o*s,t[3]=o*l-a*s,t},i.calculateW=function(t,e){var i=e[0],n=e[1],r=e[2];return t[0]=i,t[1]=n,t[2]=r,t[3]=Math.sqrt(Math.abs(1-i*i-n*n-r*r)),t},i.exp=f,i.ln=d,i.pow=function(t,e,i){return d(t,e),w(t,t,i),f(t,t),t},i.slerp=g,i.random=function(t){var e=r.RANDOM(),i=r.RANDOM(),n=r.RANDOM(),a=Math.sqrt(1-e),o=Math.sqrt(e);return t[0]=a*Math.sin(2*Math.PI*i),t[1]=a*Math.cos(2*Math.PI*i),t[2]=o*Math.sin(2*Math.PI*n),t[3]=o*Math.cos(2*Math.PI*n),t},i.invert=function(t,e){var i=e[0],n=e[1],r=e[2],a=e[3],o=i*i+n*n+r*r+a*a,s=o?1/o:0;return t[0]=-i*s,t[1]=-n*s,t[2]=-r*s,t[3]=a*s,t},i.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t},i.fromMat3=v,i.fromEuler=function(t,e,i,n){var r=.5*Math.PI/180;e*=r,i*=r,n*=r;var a=Math.sin(e),o=Math.cos(e),s=Math.sin(i),l=Math.cos(i),u=Math.sin(n),c=Math.cos(n);return t[0]=a*l*c-o*s*u,t[1]=o*s*c+a*l*u,t[2]=o*l*u-a*s*c,t[3]=o*l*c+a*s*u,t},i.str=function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},i.setAxes=i.sqlerp=i.rotationTo=i.equals=i.exactEquals=i.normalize=i.sqrLen=i.squaredLength=i.len=i.length=i.lerp=i.dot=i.scale=i.mul=i.add=i.set=i.copy=i.fromValues=i.clone=void 0;var r=u(t("./common.js")),a=u(t("./mat3.js")),o=u(t("./vec3.js")),s=u(t("./vec4.js"));function l(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return l=function(){return t},t}function u(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!=typeof t)return{default:t};var e=l();if(e&&e.has(t))return e.get(t);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=r?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(i,a,o):i[a]=t[a]}return i.default=t,e&&e.set(t,i),i}function c(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function p(t,e,i){i*=.5;var n=Math.sin(i);return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=Math.cos(i),t}function h(t,e,i){var n=e[0],r=e[1],a=e[2],o=e[3],s=i[0],l=i[1],u=i[2],c=i[3];return t[0]=n*c+o*s+r*u-a*l,t[1]=r*c+o*l+a*s-n*u,t[2]=a*c+o*u+n*l-r*s,t[3]=o*c-n*s-r*l-a*u,t}function f(t,e){var i=e[0],n=e[1],r=e[2],a=e[3],o=Math.sqrt(i*i+n*n+r*r),s=Math.exp(a),l=o>0?s*Math.sin(o)/o:0;return t[0]=i*l,t[1]=n*l,t[2]=r*l,t[3]=s*Math.cos(o),t}function d(t,e){var i=e[0],n=e[1],r=e[2],a=e[3],o=Math.sqrt(i*i+n*n+r*r),s=o>0?Math.atan2(o,a)/o:0;return t[0]=i*s,t[1]=n*s,t[2]=r*s,t[3]=.5*Math.log(i*i+n*n+r*r+a*a),t}function g(t,e,i,n){var a,o,s,l,u,c=e[0],p=e[1],h=e[2],f=e[3],d=i[0],g=i[1],v=i[2],y=i[3];return(o=c*d+p*g+h*v+f*y)<0&&(o=-o,d=-d,g=-g,v=-v,y=-y),1-o>r.EPSILON?(a=Math.acos(o),s=Math.sin(a),l=Math.sin((1-n)*a)/s,u=Math.sin(n*a)/s):(l=1-n,u=n),t[0]=l*c+u*d,t[1]=l*p+u*g,t[2]=l*h+u*v,t[3]=l*f+u*y,t}function v(t,e){var i,n=e[0]+e[4]+e[8];if(n>0)i=Math.sqrt(n+1),t[3]=.5*i,i=.5/i,t[0]=(e[5]-e[7])*i,t[1]=(e[6]-e[2])*i,t[2]=(e[1]-e[3])*i;else{var r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);var a=(r+1)%3,o=(r+2)%3;i=Math.sqrt(e[3*r+r]-e[3*a+a]-e[3*o+o]+1),t[r]=.5*i,i=.5/i,t[3]=(e[3*a+o]-e[3*o+a])*i,t[a]=(e[3*a+r]+e[3*r+a])*i,t[o]=(e[3*o+r]+e[3*r+o])*i}return t}var y=s.clone;i.clone=y;var m=s.fromValues;i.fromValues=m;var b=s.copy;i.copy=b;var x=s.set;i.set=x;var _=s.add;i.add=_;var M=h;i.mul=M;var w=s.scale;i.scale=w;var S=s.dot;i.dot=S;var C=s.lerp;i.lerp=C;var P=s.length;i.length=P;var O=P;i.len=O;var T=s.squaredLength;i.squaredLength=T;var A=T;i.sqrLen=A;var E=s.normalize;i.normalize=E;var L=s.exactEquals;i.exactEquals=L;var I=s.equals;i.equals=I;var D,k,B,F=(D=o.create(),k=o.fromValues(1,0,0),B=o.fromValues(0,1,0),function(t,e,i){var n=o.dot(e,i);return n<-.999999?(o.cross(D,k,e),o.len(D)<1e-6&&o.cross(D,B,e),o.normalize(D,D),p(t,D,Math.PI),t):n>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(o.cross(D,e,i),t[0]=D[0],t[1]=D[1],t[2]=D[2],t[3]=1+n,E(t,t))});i.rotationTo=F;var j,R,N=(j=c(),R=c(),function(t,e,i,n,r,a){return g(j,e,r,a),g(R,i,n,a),g(t,j,R,2*a*(1-a)),t});i.sqlerp=N;var Y,G=(Y=a.create(),function(t,e,i,n){return Y[0]=i[0],Y[3]=i[1],Y[6]=i[2],Y[1]=n[0],Y[4]=n[1],Y[7]=n[2],Y[2]=-e[0],Y[5]=-e[1],Y[8]=-e[2],E(t,v(t,Y))});i.setAxes=G},{"./common.js":882,"./mat3.js":886,"./vec3.js":891,"./vec4.js":892}],889:[function(t,e,i){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(i,"__esModule",{value:!0}),i.create=function(){var t=new r.ARRAY_TYPE(8);r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0);return t[3]=1,t},i.clone=function(t){var e=new r.ARRAY_TYPE(8);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},i.fromValues=function(t,e,i,n,a,o,s,l){var u=new r.ARRAY_TYPE(8);return u[0]=t,u[1]=e,u[2]=i,u[3]=n,u[4]=a,u[5]=o,u[6]=s,u[7]=l,u},i.fromRotationTranslationValues=function(t,e,i,n,a,o,s){var l=new r.ARRAY_TYPE(8);l[0]=t,l[1]=e,l[2]=i,l[3]=n;var u=.5*a,c=.5*o,p=.5*s;return l[4]=u*n+c*i-p*e,l[5]=c*n+p*t-u*i,l[6]=p*n+u*e-c*t,l[7]=-u*t-c*e-p*i,l},i.fromRotationTranslation=u,i.fromTranslation=function(t,e){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*e[0],t[5]=.5*e[1],t[6]=.5*e[2],t[7]=0,t},i.fromRotation=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},i.fromMat4=function(t,e){var i=a.create();o.getRotation(i,e);var n=new r.ARRAY_TYPE(3);return o.getTranslation(n,e),u(t,i,n),t},i.copy=c,i.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},i.set=function(t,e,i,n,r,a,o,s,l){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t},i.getDual=function(t,e){return t[0]=e[4],t[1]=e[5],t[2]=e[6],t[3]=e[7],t},i.setDual=function(t,e){return t[4]=e[0],t[5]=e[1],t[6]=e[2],t[7]=e[3],t},i.getTranslation=function(t,e){var i=e[4],n=e[5],r=e[6],a=e[7],o=-e[0],s=-e[1],l=-e[2],u=e[3];return t[0]=2*(i*u+a*o+n*l-r*s),t[1]=2*(n*u+a*s+r*o-i*l),t[2]=2*(r*u+a*l+i*s-n*o),t},i.translate=function(t,e,i){var n=e[0],r=e[1],a=e[2],o=e[3],s=.5*i[0],l=.5*i[1],u=.5*i[2],c=e[4],p=e[5],h=e[6],f=e[7];return t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=o*s+r*u-a*l+c,t[5]=o*l+a*s-n*u+p,t[6]=o*u+n*l-r*s+h,t[7]=-n*s-r*l-a*u+f,t},i.rotateX=function(t,e,i){var n=-e[0],r=-e[1],o=-e[2],s=e[3],l=e[4],u=e[5],c=e[6],p=e[7],h=l*s+p*n+u*o-c*r,f=u*s+p*r+c*n-l*o,d=c*s+p*o+l*r-u*n,g=p*s-l*n-u*r-c*o;return a.rotateX(t,e,i),n=t[0],r=t[1],o=t[2],s=t[3],t[4]=h*s+g*n+f*o-d*r,t[5]=f*s+g*r+d*n-h*o,t[6]=d*s+g*o+h*r-f*n,t[7]=g*s-h*n-f*r-d*o,t},i.rotateY=function(t,e,i){var n=-e[0],r=-e[1],o=-e[2],s=e[3],l=e[4],u=e[5],c=e[6],p=e[7],h=l*s+p*n+u*o-c*r,f=u*s+p*r+c*n-l*o,d=c*s+p*o+l*r-u*n,g=p*s-l*n-u*r-c*o;return a.rotateY(t,e,i),n=t[0],r=t[1],o=t[2],s=t[3],t[4]=h*s+g*n+f*o-d*r,t[5]=f*s+g*r+d*n-h*o,t[6]=d*s+g*o+h*r-f*n,t[7]=g*s-h*n-f*r-d*o,t},i.rotateZ=function(t,e,i){var n=-e[0],r=-e[1],o=-e[2],s=e[3],l=e[4],u=e[5],c=e[6],p=e[7],h=l*s+p*n+u*o-c*r,f=u*s+p*r+c*n-l*o,d=c*s+p*o+l*r-u*n,g=p*s-l*n-u*r-c*o;return a.rotateZ(t,e,i),n=t[0],r=t[1],o=t[2],s=t[3],t[4]=h*s+g*n+f*o-d*r,t[5]=f*s+g*r+d*n-h*o,t[6]=d*s+g*o+h*r-f*n,t[7]=g*s-h*n-f*r-d*o,t},i.rotateByQuatAppend=function(t,e,i){var n=i[0],r=i[1],a=i[2],o=i[3],s=e[0],l=e[1],u=e[2],c=e[3];return t[0]=s*o+c*n+l*a-u*r,t[1]=l*o+c*r+u*n-s*a,t[2]=u*o+c*a+s*r-l*n,t[3]=c*o-s*n-l*r-u*a,s=e[4],l=e[5],u=e[6],c=e[7],t[4]=s*o+c*n+l*a-u*r,t[5]=l*o+c*r+u*n-s*a,t[6]=u*o+c*a+s*r-l*n,t[7]=c*o-s*n-l*r-u*a,t},i.rotateByQuatPrepend=function(t,e,i){var n=e[0],r=e[1],a=e[2],o=e[3],s=i[0],l=i[1],u=i[2],c=i[3];return t[0]=n*c+o*s+r*u-a*l,t[1]=r*c+o*l+a*s-n*u,t[2]=a*c+o*u+n*l-r*s,t[3]=o*c-n*s-r*l-a*u,s=i[4],l=i[5],u=i[6],c=i[7],t[4]=n*c+o*s+r*u-a*l,t[5]=r*c+o*l+a*s-n*u,t[6]=a*c+o*u+n*l-r*s,t[7]=o*c-n*s-r*l-a*u,t},i.rotateAroundAxis=function(t,e,i,n){if(Math.abs(n)<r.EPSILON)return c(t,e);var a=Math.hypot(i[0],i[1],i[2]);n*=.5;var o=Math.sin(n),s=o*i[0]/a,l=o*i[1]/a,u=o*i[2]/a,p=Math.cos(n),h=e[0],f=e[1],d=e[2],g=e[3];t[0]=h*p+g*s+f*u-d*l,t[1]=f*p+g*l+d*s-h*u,t[2]=d*p+g*u+h*l-f*s,t[3]=g*p-h*s-f*l-d*u;var v=e[4],y=e[5],m=e[6],b=e[7];return t[4]=v*p+b*s+y*u-m*l,t[5]=y*p+b*l+m*s-v*u,t[6]=m*p+b*u+v*l-y*s,t[7]=b*p-v*s-y*l-m*u,t},i.add=function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t[3]=e[3]+i[3],t[4]=e[4]+i[4],t[5]=e[5]+i[5],t[6]=e[6]+i[6],t[7]=e[7]+i[7],t},i.multiply=f,i.scale=function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t},i.lerp=function(t,e,i,n){var r=1-n;g(e,i)<0&&(n=-n);return t[0]=e[0]*r+i[0]*n,t[1]=e[1]*r+i[1]*n,t[2]=e[2]*r+i[2]*n,t[3]=e[3]*r+i[3]*n,t[4]=e[4]*r+i[4]*n,t[5]=e[5]*r+i[5]*n,t[6]=e[6]*r+i[6]*n,t[7]=e[7]*r+i[7]*n,t},i.invert=function(t,e){var i=m(e);return t[0]=-e[0]/i,t[1]=-e[1]/i,t[2]=-e[2]/i,t[3]=e[3]/i,t[4]=-e[4]/i,t[5]=-e[5]/i,t[6]=-e[6]/i,t[7]=e[7]/i,t},i.conjugate=function(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},i.normalize=function(t,e){var i=m(e);if(i>0){i=Math.sqrt(i);var n=e[0]/i,r=e[1]/i,a=e[2]/i,o=e[3]/i,s=e[4],l=e[5],u=e[6],c=e[7],p=n*s+r*l+a*u+o*c;t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=(s-n*p)/i,t[5]=(l-r*p)/i,t[6]=(u-a*p)/i,t[7]=(c-o*p)/i}return t},i.str=function(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"},i.exactEquals=function(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]},i.equals=function(t,e){var i=t[0],n=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],p=e[0],h=e[1],f=e[2],d=e[3],g=e[4],v=e[5],y=e[6],m=e[7];return Math.abs(i-p)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(n-h)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(a-f)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(f))&&Math.abs(o-d)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(s-g)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(l-v)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(u-y)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(c-m)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(m))},i.sqrLen=i.squaredLength=i.len=i.length=i.dot=i.mul=i.setReal=i.getReal=void 0;var r=l(t("./common.js")),a=l(t("./quat.js")),o=l(t("./mat4.js"));function s(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function l(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!=typeof t)return{default:t};var e=s();if(e&&e.has(t))return e.get(t);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=r?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(i,a,o):i[a]=t[a]}return i.default=t,e&&e.set(t,i),i}function u(t,e,i){var n=.5*i[0],r=.5*i[1],a=.5*i[2],o=e[0],s=e[1],l=e[2],u=e[3];return t[0]=o,t[1]=s,t[2]=l,t[3]=u,t[4]=n*u+r*l-a*s,t[5]=r*u+a*o-n*l,t[6]=a*u+n*s-r*o,t[7]=-n*o-r*s-a*l,t}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}var p=a.copy;i.getReal=p;var h=a.copy;function f(t,e,i){var n=e[0],r=e[1],a=e[2],o=e[3],s=i[4],l=i[5],u=i[6],c=i[7],p=e[4],h=e[5],f=e[6],d=e[7],g=i[0],v=i[1],y=i[2],m=i[3];return t[0]=n*m+o*g+r*y-a*v,t[1]=r*m+o*v+a*g-n*y,t[2]=a*m+o*y+n*v-r*g,t[3]=o*m-n*g-r*v-a*y,t[4]=n*c+o*s+r*u-a*l+p*m+d*g+h*y-f*v,t[5]=r*c+o*l+a*s-n*u+h*m+d*v+f*g-p*y,t[6]=a*c+o*u+n*l-r*s+f*m+d*y+p*v-h*g,t[7]=o*c-n*s-r*l-a*u+d*m-p*g-h*v-f*y,t}i.setReal=h;var d=f;i.mul=d;var g=a.dot;i.dot=g;var v=a.length;i.length=v;var y=v;i.len=y;var m=a.squaredLength;i.squaredLength=m;var b=m;i.sqrLen=b},{"./common.js":882,"./mat4.js":887,"./quat.js":888}],890:[function(t,e,i){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(i,"__esModule",{value:!0}),i.create=o,i.clone=function(t){var e=new r.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},i.fromValues=function(t,e){var i=new r.ARRAY_TYPE(2);return i[0]=t,i[1]=e,i},i.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},i.set=function(t,e,i){return t[0]=e,t[1]=i,t},i.add=function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},i.subtract=s,i.multiply=l,i.divide=u,i.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},i.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},i.min=function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t},i.max=function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t},i.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},i.scale=function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},i.scaleAndAdd=function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t},i.distance=c,i.squaredDistance=p,i.length=h,i.squaredLength=f,i.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},i.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},i.normalize=function(t,e){var i=e[0],n=e[1],r=i*i+n*n;r>0&&(r=1/Math.sqrt(r));return t[0]=e[0]*r,t[1]=e[1]*r,t},i.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},i.cross=function(t,e,i){var n=e[0]*i[1]-e[1]*i[0];return t[0]=t[1]=0,t[2]=n,t},i.lerp=function(t,e,i,n){var r=e[0],a=e[1];return t[0]=r+n*(i[0]-r),t[1]=a+n*(i[1]-a),t},i.random=function(t,e){e=e||1;var i=2*r.RANDOM()*Math.PI;return t[0]=Math.cos(i)*e,t[1]=Math.sin(i)*e,t},i.transformMat2=function(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r,t[1]=i[1]*n+i[3]*r,t},i.transformMat2d=function(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t},i.transformMat3=function(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[3]*r+i[6],t[1]=i[1]*n+i[4]*r+i[7],t},i.transformMat4=function(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[4]*r+i[12],t[1]=i[1]*n+i[5]*r+i[13],t},i.rotate=function(t,e,i,n){var r=e[0]-i[0],a=e[1]-i[1],o=Math.sin(n),s=Math.cos(n);return t[0]=r*s-a*o+i[0],t[1]=r*o+a*s+i[1],t},i.angle=function(t,e){var i=t[0],n=t[1],r=e[0],a=e[1],o=Math.sqrt(i*i+n*n)*Math.sqrt(r*r+a*a),s=o&&(i*r+n*a)/o;return Math.acos(Math.min(Math.max(s,-1),1))},i.zero=function(t){return t[0]=0,t[1]=0,t},i.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},i.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},i.equals=function(t,e){var i=t[0],n=t[1],a=e[0],o=e[1];return Math.abs(i-a)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(n-o)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))},i.forEach=i.sqrLen=i.sqrDist=i.dist=i.div=i.mul=i.sub=i.len=void 0;var r=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!=typeof t)return{default:t};var e=a();if(e&&e.has(t))return e.get(t);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var s=r?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=t[o]}i.default=t,e&&e.set(t,i);return i}(t("./common.js"));function a(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return a=function(){return t},t}function o(){var t=new r.ARRAY_TYPE(2);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function s(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function l(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t}function u(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t}function c(t,e){var i=e[0]-t[0],n=e[1]-t[1];return Math.hypot(i,n)}function p(t,e){var i=e[0]-t[0],n=e[1]-t[1];return i*i+n*n}function h(t){var e=t[0],i=t[1];return Math.hypot(e,i)}function f(t){var e=t[0],i=t[1];return e*e+i*i}var d=h;i.len=d;var g=s;i.sub=g;var v=l;i.mul=v;var y=u;i.div=y;var m=c;i.dist=m;var b=p;i.sqrDist=b;var x=f;i.sqrLen=x;var _,M=(_=o(),function(t,e,i,n,r,a){var o,s;for(e||(e=2),i||(i=0),s=n?Math.min(n*e+i,t.length):t.length,o=i;o<s;o+=e)_[0]=t[o],_[1]=t[o+1],r(_,_,a),t[o]=_[0],t[o+1]=_[1];return t});i.forEach=M},{"./common.js":882}],891:[function(t,e,i){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(i,"__esModule",{value:!0}),i.create=o,i.clone=function(t){var e=new r.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},i.length=s,i.fromValues=function(t,e,i){var n=new r.ARRAY_TYPE(3);return n[0]=t,n[1]=e,n[2]=i,n},i.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},i.set=function(t,e,i,n){return t[0]=e,t[1]=i,t[2]=n,t},i.add=function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t},i.subtract=l,i.multiply=u,i.divide=c,i.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},i.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},i.min=function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t[2]=Math.min(e[2],i[2]),t},i.max=function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t[2]=Math.max(e[2],i[2]),t},i.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},i.scale=function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t},i.scaleAndAdd=function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t[2]=e[2]+i[2]*n,t},i.distance=p,i.squaredDistance=h,i.squaredLength=f,i.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},i.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},i.normalize=function(t,e){var i=e[0],n=e[1],r=e[2],a=i*i+n*n+r*r;a>0&&(a=1/Math.sqrt(a));return t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t},i.dot=d,i.cross=function(t,e,i){var n=e[0],r=e[1],a=e[2],o=i[0],s=i[1],l=i[2];return t[0]=r*l-a*s,t[1]=a*o-n*l,t[2]=n*s-r*o,t},i.lerp=function(t,e,i,n){var r=e[0],a=e[1],o=e[2];return t[0]=r+n*(i[0]-r),t[1]=a+n*(i[1]-a),t[2]=o+n*(i[2]-o),t},i.hermite=function(t,e,i,n,r,a){var o=a*a,s=o*(2*a-3)+1,l=o*(a-2)+a,u=o*(a-1),c=o*(3-2*a);return t[0]=e[0]*s+i[0]*l+n[0]*u+r[0]*c,t[1]=e[1]*s+i[1]*l+n[1]*u+r[1]*c,t[2]=e[2]*s+i[2]*l+n[2]*u+r[2]*c,t},i.bezier=function(t,e,i,n,r,a){var o=1-a,s=o*o,l=a*a,u=s*o,c=3*a*s,p=3*l*o,h=l*a;return t[0]=e[0]*u+i[0]*c+n[0]*p+r[0]*h,t[1]=e[1]*u+i[1]*c+n[1]*p+r[1]*h,t[2]=e[2]*u+i[2]*c+n[2]*p+r[2]*h,t},i.random=function(t,e){e=e||1;var i=2*r.RANDOM()*Math.PI,n=2*r.RANDOM()-1,a=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(i)*a,t[1]=Math.sin(i)*a,t[2]=n*e,t},i.transformMat4=function(t,e,i){var n=e[0],r=e[1],a=e[2],o=i[3]*n+i[7]*r+i[11]*a+i[15];return o=o||1,t[0]=(i[0]*n+i[4]*r+i[8]*a+i[12])/o,t[1]=(i[1]*n+i[5]*r+i[9]*a+i[13])/o,t[2]=(i[2]*n+i[6]*r+i[10]*a+i[14])/o,t},i.transformMat3=function(t,e,i){var n=e[0],r=e[1],a=e[2];return t[0]=n*i[0]+r*i[3]+a*i[6],t[1]=n*i[1]+r*i[4]+a*i[7],t[2]=n*i[2]+r*i[5]+a*i[8],t},i.transformQuat=function(t,e,i){var n=i[0],r=i[1],a=i[2],o=i[3],s=e[0],l=e[1],u=e[2],c=r*u-a*l,p=a*s-n*u,h=n*l-r*s,f=r*h-a*p,d=a*c-n*h,g=n*p-r*c,v=2*o;return c*=v,p*=v,h*=v,f*=2,d*=2,g*=2,t[0]=s+c+f,t[1]=l+p+d,t[2]=u+h+g,t},i.rotateX=function(t,e,i,n){var r=[],a=[];return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],a[0]=r[0],a[1]=r[1]*Math.cos(n)-r[2]*Math.sin(n),a[2]=r[1]*Math.sin(n)+r[2]*Math.cos(n),t[0]=a[0]+i[0],t[1]=a[1]+i[1],t[2]=a[2]+i[2],t},i.rotateY=function(t,e,i,n){var r=[],a=[];return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],a[0]=r[2]*Math.sin(n)+r[0]*Math.cos(n),a[1]=r[1],a[2]=r[2]*Math.cos(n)-r[0]*Math.sin(n),t[0]=a[0]+i[0],t[1]=a[1]+i[1],t[2]=a[2]+i[2],t},i.rotateZ=function(t,e,i,n){var r=[],a=[];return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],a[0]=r[0]*Math.cos(n)-r[1]*Math.sin(n),a[1]=r[0]*Math.sin(n)+r[1]*Math.cos(n),a[2]=r[2],t[0]=a[0]+i[0],t[1]=a[1]+i[1],t[2]=a[2]+i[2],t},i.angle=function(t,e){var i=t[0],n=t[1],r=t[2],a=e[0],o=e[1],s=e[2],l=Math.sqrt(i*i+n*n+r*r),u=Math.sqrt(a*a+o*o+s*s),c=l*u,p=c&&d(t,e)/c;return Math.acos(Math.min(Math.max(p,-1),1))},i.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t},i.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},i.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},i.equals=function(t,e){var i=t[0],n=t[1],a=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(i-o)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-s)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(a-l)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(l))},i.forEach=i.sqrLen=i.len=i.sqrDist=i.dist=i.div=i.mul=i.sub=void 0;var r=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!=typeof t)return{default:t};var e=a();if(e&&e.has(t))return e.get(t);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var s=r?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=t[o]}i.default=t,e&&e.set(t,i);return i}(t("./common.js"));function a(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return a=function(){return t},t}function o(){var t=new r.ARRAY_TYPE(3);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function s(t){var e=t[0],i=t[1],n=t[2];return Math.hypot(e,i,n)}function l(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t}function u(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t[2]=e[2]*i[2],t}function c(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t[2]=e[2]/i[2],t}function p(t,e){var i=e[0]-t[0],n=e[1]-t[1],r=e[2]-t[2];return Math.hypot(i,n,r)}function h(t,e){var i=e[0]-t[0],n=e[1]-t[1],r=e[2]-t[2];return i*i+n*n+r*r}function f(t){var e=t[0],i=t[1],n=t[2];return e*e+i*i+n*n}function d(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}var g=l;i.sub=g;var v=u;i.mul=v;var y=c;i.div=y;var m=p;i.dist=m;var b=h;i.sqrDist=b;var x=s;i.len=x;var _=f;i.sqrLen=_;var M,w=(M=o(),function(t,e,i,n,r,a){var o,s;for(e||(e=3),i||(i=0),s=n?Math.min(n*e+i,t.length):t.length,o=i;o<s;o+=e)M[0]=t[o],M[1]=t[o+1],M[2]=t[o+2],r(M,M,a),t[o]=M[0],t[o+1]=M[1],t[o+2]=M[2];return t});i.forEach=w},{"./common.js":882}],892:[function(t,e,i){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(i,"__esModule",{value:!0}),i.create=o,i.clone=function(t){var e=new r.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},i.fromValues=function(t,e,i,n){var a=new r.ARRAY_TYPE(4);return a[0]=t,a[1]=e,a[2]=i,a[3]=n,a},i.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},i.set=function(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t},i.add=function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t[3]=e[3]+i[3],t},i.subtract=s,i.multiply=l,i.divide=u,i.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},i.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},i.min=function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t[2]=Math.min(e[2],i[2]),t[3]=Math.min(e[3],i[3]),t},i.max=function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t[2]=Math.max(e[2],i[2]),t[3]=Math.max(e[3],i[3]),t},i.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t},i.scale=function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t},i.scaleAndAdd=function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t[2]=e[2]+i[2]*n,t[3]=e[3]+i[3]*n,t},i.distance=c,i.squaredDistance=p,i.length=h,i.squaredLength=f,i.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},i.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},i.normalize=function(t,e){var i=e[0],n=e[1],r=e[2],a=e[3],o=i*i+n*n+r*r+a*a;o>0&&(o=1/Math.sqrt(o));return t[0]=i*o,t[1]=n*o,t[2]=r*o,t[3]=a*o,t},i.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},i.cross=function(t,e,i,n){var r=i[0]*n[1]-i[1]*n[0],a=i[0]*n[2]-i[2]*n[0],o=i[0]*n[3]-i[3]*n[0],s=i[1]*n[2]-i[2]*n[1],l=i[1]*n[3]-i[3]*n[1],u=i[2]*n[3]-i[3]*n[2],c=e[0],p=e[1],h=e[2],f=e[3];return t[0]=p*u-h*l+f*s,t[1]=-c*u+h*o-f*a,t[2]=c*l-p*o+f*r,t[3]=-c*s+p*a-h*r,t},i.lerp=function(t,e,i,n){var r=e[0],a=e[1],o=e[2],s=e[3];return t[0]=r+n*(i[0]-r),t[1]=a+n*(i[1]-a),t[2]=o+n*(i[2]-o),t[3]=s+n*(i[3]-s),t},i.random=function(t,e){var i,n,a,o,s,l;e=e||1;do{i=2*r.RANDOM()-1,n=2*r.RANDOM()-1,s=i*i+n*n}while(s>=1);do{a=2*r.RANDOM()-1,o=2*r.RANDOM()-1,l=a*a+o*o}while(l>=1);var u=Math.sqrt((1-s)/l);return t[0]=e*i,t[1]=e*n,t[2]=e*a*u,t[3]=e*o*u,t},i.transformMat4=function(t,e,i){var n=e[0],r=e[1],a=e[2],o=e[3];return t[0]=i[0]*n+i[4]*r+i[8]*a+i[12]*o,t[1]=i[1]*n+i[5]*r+i[9]*a+i[13]*o,t[2]=i[2]*n+i[6]*r+i[10]*a+i[14]*o,t[3]=i[3]*n+i[7]*r+i[11]*a+i[15]*o,t},i.transformQuat=function(t,e,i){var n=e[0],r=e[1],a=e[2],o=i[0],s=i[1],l=i[2],u=i[3],c=u*n+s*a-l*r,p=u*r+l*n-o*a,h=u*a+o*r-s*n,f=-o*n-s*r-l*a;return t[0]=c*u+f*-o+p*-l-h*-s,t[1]=p*u+f*-s+h*-o-c*-l,t[2]=h*u+f*-l+c*-s-p*-o,t[3]=e[3],t},i.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},i.str=function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},i.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},i.equals=function(t,e){var i=t[0],n=t[1],a=t[2],o=t[3],s=e[0],l=e[1],u=e[2],c=e[3];return Math.abs(i-s)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(n-l)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(a-u)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(o-c)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},i.forEach=i.sqrLen=i.len=i.sqrDist=i.dist=i.div=i.mul=i.sub=void 0;var r=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!=typeof t)return{default:t};var e=a();if(e&&e.has(t))return e.get(t);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var s=r?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=t[o]}i.default=t,e&&e.set(t,i);return i}(t("./common.js"));function a(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return a=function(){return t},t}function o(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function s(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t[3]=e[3]-i[3],t}function l(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t[2]=e[2]*i[2],t[3]=e[3]*i[3],t}function u(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t[2]=e[2]/i[2],t[3]=e[3]/i[3],t}function c(t,e){var i=e[0]-t[0],n=e[1]-t[1],r=e[2]-t[2],a=e[3]-t[3];return Math.hypot(i,n,r,a)}function p(t,e){var i=e[0]-t[0],n=e[1]-t[1],r=e[2]-t[2],a=e[3]-t[3];return i*i+n*n+r*r+a*a}function h(t){var e=t[0],i=t[1],n=t[2],r=t[3];return Math.hypot(e,i,n,r)}function f(t){var e=t[0],i=t[1],n=t[2],r=t[3];return e*e+i*i+n*n+r*r}var d=s;i.sub=d;var g=l;i.mul=g;var v=u;i.div=v;var y=c;i.dist=y;var m=p;i.sqrDist=m;var b=h;i.len=b;var x=f;i.sqrLen=x;var _,M=(_=o(),function(t,e,i,n,r,a){var o,s;for(e||(e=4),i||(i=0),s=n?Math.min(n*e+i,t.length):t.length,o=i;o<s;o+=e)_[0]=t[o],_[1]=t[o+1],_[2]=t[o+2],_[3]=t[o+3],r(_,_,a),t[o]=_[0],t[o+1]=_[1],t[o+2]=_[2],t[o+3]=_[3];return t});i.forEach=M},{"./common.js":882}],893:[function(t,e,i){(function(t){!function(t,n){"object"==typeof i&&void 0!==e?e.exports=n():"function"==typeof define&&define.amd?define(n):t.ResizeObserver=n()}(this,(function(){"use strict";var e=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some((function(t,n){return t[0]===e&&(i=n,!0)})),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),n=this.__entries__[i];return n&&n[1]},e.prototype.set=function(e,i){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,n=t(i,e);~n&&i.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,n=this.__entries__;i<n.length;i++){var r=n[i];t.call(e,r[1],r[0])}},e}()}(),i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,n=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),r="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(n):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var a=["top","right","bottom","left","width","height","size","weight"],o="undefined"!=typeof MutationObserver,s=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var i=!1,n=!1,a=0;function o(){i&&(i=!1,t()),n&&l()}function s(){r(o)}function l(){var t=Date.now();if(i){if(t-a<2)return;n=!0}else i=!0,n=!1,setTimeout(s,e);a=t}return l}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,i=e.indexOf(t);~i&&e.splice(i,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),o?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;a.some((function(t){return!!~i.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),l=function(t,e){for(var i=0,n=Object.keys(e);i<n.length;i++){var r=n[i];Object.defineProperty(t,r,{value:e[r],enumerable:!1,writable:!1,configurable:!0})}return t},u=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||n},c=v(0,0,0,0);function p(t){return parseFloat(t)||0}function h(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return e.reduce((function(e,i){return e+p(t["border-"+i+"-width"])}),0)}function f(t){var e=t.clientWidth,i=t.clientHeight;if(!e&&!i)return c;var n=u(t).getComputedStyle(t),r=function(t){for(var e={},i=0,n=["top","right","bottom","left"];i<n.length;i++){var r=n[i],a=t["padding-"+r];e[r]=p(a)}return e}(n),a=r.left+r.right,o=r.top+r.bottom,s=p(n.width),l=p(n.height);if("border-box"===n.boxSizing&&(Math.round(s+a)!==e&&(s-=h(n,"left","right")+a),Math.round(l+o)!==i&&(l-=h(n,"top","bottom")+o)),!function(t){return t===u(t).document.documentElement}(t)){var f=Math.round(s+a)-e,d=Math.round(l+o)-i;1!==Math.abs(f)&&(s-=f),1!==Math.abs(d)&&(l-=d)}return v(r.left,r.top,s,l)}var d="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof u(t).SVGGraphicsElement}:function(t){return t instanceof u(t).SVGElement&&"function"==typeof t.getBBox};function g(t){return i?d(t)?function(t){var e=t.getBBox();return v(0,0,e.width,e.height)}(t):f(t):c}function v(t,e,i,n){return{x:t,y:e,width:i,height:n}}var y=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=g(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),m=function(t,e){var i,n,r,a,o,s,u,c=(n=(i=e).x,r=i.y,a=i.width,o=i.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(s.prototype),l(u,{x:n,y:r,width:a,height:o,top:r,right:n+a,bottom:o+r,left:n}),u);l(this,{target:t,contentRect:c})},b=function(){function t(t,i,n){if(this.activeObservations_=[],this.observations_=new e,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=i,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof u(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new y(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof u(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new m(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),x="undefined"!=typeof WeakMap?new WeakMap:new e,_=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=s.getInstance(),n=new b(e,i,this);x.set(this,n)};return["observe","unobserve","disconnect"].forEach((function(t){_.prototype[t]=function(){var e;return(e=x.get(this))[t].apply(e,arguments)}})),void 0!==n.ResizeObserver?n.ResizeObserver:_}))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],894:[function(t,e,i){(function(t){
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var i,n,r,a,o,s,l,u,c,p,h,f,d,g,v,y,m,b,x,_,M,w,S;!function(i){var n="object"==typeof t?t:"object"==typeof self?self:"object"==typeof this?this:{};function r(t,e){return t!==n&&("function"==typeof Object.create?Object.defineProperty(t,"__esModule",{value:!0}):t.__esModule=!0),function(i,n){return t[i]=e?e(i,n):n}}"function"==typeof define&&define.amd?define("tslib",["exports"],(function(t){i(r(n,r(t)))})):"object"==typeof e&&"object"==typeof e.exports?i(r(n,r(e.exports))):i(r(n))}((function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};i=function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)},n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},r=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(t);r<n.length;r++)e.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]])}return i},a=function(t,e,i,n){var r,a=arguments.length,o=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(o=(a<3?r(o):a>3?r(e,i,o):r(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o},o=function(t,e){return function(i,n){e(i,n,t)}},s=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(t,e,i,n){return new(i||(i=Promise))((function(r,a){function o(t){try{l(n.next(t))}catch(t){a(t)}}function s(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,s)}l((n=n.apply(t,e||[])).next())}))},u=function(t,e){var i,n,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},S=function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]},c=function(t,e){for(var i in t)"default"===i||e.hasOwnProperty(i)||(e[i]=t[i])},p=function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},h=function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,a=i.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o},f=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t},d=function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),r=0;for(e=0;e<i;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,r++)n[r]=a[o];return n},g=function(t){return this instanceof g?(this.v=t,this):new g(t)},v=function(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,r=i.apply(t,e||[]),a=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(t){r[t]&&(n[t]=function(e){return new Promise((function(i,n){a.push([t,e,i,n])>1||s(t,e)}))})}function s(t,e){try{(i=r[t](e)).value instanceof g?Promise.resolve(i.value.v).then(l,u):c(a[0][2],i)}catch(t){c(a[0][3],t)}var i}function l(t){s("next",t)}function u(t){s("throw",t)}function c(t,e){t(e),a.shift(),a.length&&s(a[0][0],a[0][1])}},y=function(t){var e,i;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,r){e[n]=t[n]?function(e){return(i=!i)?{value:g(t[n](e)),done:"return"===n}:r?r(e):e}:r}},m=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t=p(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(i){e[i]=t[i]&&function(e){return new Promise((function(n,r){(function(t,e,i,n){Promise.resolve(n).then((function(e){t({value:e,done:i})}),e)})(n,r,(e=t[i](e)).done,e.value)}))}}},b=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},x=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e},_=function(t){return t&&t.__esModule?t:{default:t}},M=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},w=function(t,e,i){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,i),i},t("__extends",i),t("__assign",n),t("__rest",r),t("__decorate",a),t("__param",o),t("__metadata",s),t("__awaiter",l),t("__generator",u),t("__exportStar",c),t("__createBinding",S),t("__values",p),t("__read",h),t("__spread",f),t("__spreadArrays",d),t("__await",g),t("__asyncGenerator",v),t("__asyncDelegator",y),t("__asyncValues",m),t("__makeTemplateObject",b),t("__importStar",x),t("__importDefault",_),t("__classPrivateFieldGet",M),t("__classPrivateFieldSet",w)}))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],895:[function(t,e,i){"use strict";var n=function(){};e.exports=n},{}],"@antv/g2plot":[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.G2=void 0;var n=t("tslib");n.__exportStar(t("./interface/config"),i);var r=t("./base/layer");Object.defineProperty(i,"Layer",{enumerable:!0,get:function(){return r.default}});var a=t("./base/view-layer");Object.defineProperty(i,"ViewLayer",{enumerable:!0,get:function(){return a.default}});var o=t("./base/plot");Object.defineProperty(i,"Base",{enumerable:!0,get:function(){return o.default}}),n.__exportStar(t("./plots"),i);var s=t("./sparkline/progress");Object.defineProperty(i,"Progress",{enumerable:!0,get:function(){return s.default}});var l=t("./sparkline/ring-progress");Object.defineProperty(i,"RingProgress",{enumerable:!0,get:function(){return l.default}});var u=t("./sparkline/tiny-column");Object.defineProperty(i,"TinyColumn",{enumerable:!0,get:function(){return u.default}});var c=t("./sparkline/tiny-area");Object.defineProperty(i,"TinyArea",{enumerable:!0,get:function(){return c.default}});var p=t("./sparkline/tiny-line");Object.defineProperty(i,"TinyLine",{enumerable:!0,get:function(){return p.default}});var h=t("./combo/dual-line");Object.defineProperty(i,"DualLine",{enumerable:!0,get:function(){return h.default}});var f=t("./combo/column-line");Object.defineProperty(i,"ColumnLine",{enumerable:!0,get:function(){return f.default}});var d=t("./combo/groupedColumn-line");Object.defineProperty(i,"GroupedColumnLine",{enumerable:!0,get:function(){return d.default}});var g=t("./combo/stackedColumn-line");Object.defineProperty(i,"StackedColumnLine",{enumerable:!0,get:function(){return g.default}});var v=t("./theme");Object.defineProperty(i,"registerTheme",{enumerable:!0,get:function(){return v.registerTheme}}),Object.defineProperty(i,"registerGlobalTheme",{enumerable:!0,get:function(){return v.registerGlobalTheme}});var y=t("./util/responsive/constraints");Object.defineProperty(i,"registerResponsiveConstraint",{enumerable:!0,get:function(){return y.registerResponsiveConstraint}});var m=t("./util/responsive/rules");Object.defineProperty(i,"registerResponsiveRule",{enumerable:!0,get:function(){return m.registerResponsiveRule}});var b=t("./util/responsive/theme");Object.defineProperty(i,"registerResponsiveTheme",{enumerable:!0,get:function(){return b.registerResponsiveTheme}}),Object.defineProperty(i,"getResponsiveTheme",{enumerable:!0,get:function(){return b.getResponsiveTheme}});var x=t("./util/state-manager");Object.defineProperty(i,"StateManager",{enumerable:!0,get:function(){return x.default}});var _=n.__importStar(t("@antv/g2"));i.G2=_},{"./base/layer":393,"./base/plot":394,"./base/view-layer":395,"./combo/column-line":397,"./combo/dual-line":399,"./combo/groupedColumn-line":401,"./combo/stackedColumn-line":403,"./interface/config":449,"./plots":544,"./sparkline/progress":651,"./sparkline/ring-progress":654,"./sparkline/tiny-area":657,"./sparkline/tiny-column":660,"./sparkline/tiny-line":664,"./theme":669,"./util/responsive/constraints":690,"./util/responsive/rules":699,"./util/responsive/theme":711,"./util/state-manager":713,"@antv/g2":309,tslib:894}]},{},[]);