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;o1)for(var i=1;i=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;i1?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:"
",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;aMath.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)1){p=Math.ceil(p);for(var f=0;fi: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:'
',crosshairTpl:'
',textTpl:'{content}',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.currentPageIndexd&&(d=y),"horizontal"===p?(g&&gm&&(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];ni&&(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]+la&&(c=a),c0&&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+ih&&(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:'
    ',itemTpl:'
  • \n \n {name}:\n {value}\n
  • ',xCrosshairTpl:'
    ',yCrosshairTpl:'
    ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:u.CONTAINER_CLASS,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles: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:tr.x+r.width,top:er.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=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=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)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]);su&&(u=h),fp&&(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)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.endAngle0?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]*>/,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;n0)}));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=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+nt.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;i0?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=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(id.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;g0){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;l120||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;g1&&(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=th&&(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;V7){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;m1?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.max(r,o)||Math.max(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.xe.x||e.xt.x)&&(t.ye.y||e.yt.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=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=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=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(n0)){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=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=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=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]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;nM?_: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;s0!=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(ua)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=0&&s<.5*Math.PI?(n={x:c.minX,y:c.minY},a={x:c.maxX,y:c.maxY}):.5*Math.PI<=s&&s0&&n.push(r),{polygons:i,polylines:n}},isPointInStroke:function(t,e,i,n){for(var r=!1,h=e/2,f=0;fw?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.maxXt.maxY||e.maxY10||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;sp&&(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;sm&&(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);vu&&(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]))=0&&b=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;g0?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=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;n1||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=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=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'})),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';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+=''+t+"":"top"===o?u+=''+t+"":"middle"===o?u+=''+t+"":"bottom"===o?u+=''+t+"":"hanging"===o&&(u+=''+t+""):u+=''+t+""})),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(a1){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;e0?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.yl.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('
    ');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=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;r1?(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);i1){for(var p=e[0],h=Math.abs(t.y-p[0].y),f=0,d=e;f=0;r--)for(var a=0,o=this.getFacetsByLevel(t,r);a=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;ra&&(a=c)}var p=this.scaleDefs,h={};rt.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;i1)for(var h=0;h-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;cn&&(n=r),r=e[0]})));for(var h=this.scales[c],f=0,d=t;f0&&!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;(ln?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.minXr.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))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.yh&&(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;b0){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.xn&&(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*i0){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;_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&&ei.y&&(v=1),e>=Math.PI/2&&ec.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.xMath.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;n0&&(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;g2?"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;r1){for(var o=e.addGroup(),s=0,l=n;s1){for(var p=i.addGroup(),h=0,f=u;h1?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=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]];o1){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;os&&(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;p0}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.minYp.maxY&&(p=e)):(e.minXp.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(rl&&(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=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.maxXt.maxY||e.maxY=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=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;et.x?t.x:e,i=it.y?t.y:r,a=a=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=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;ar&&(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(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=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)||So.max||SMath.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;_=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]=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;e1||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.minXa&&(a=e.maxX),e.minYs&&(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=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){is.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;o0&&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)/2p){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;st){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)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;e0;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('
    '),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;ethis.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.height0&&(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"];en&&(n=r),r=e[0]})));for(var u=this.scales[s],c=0;c0&&(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"];e0&&(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"];e0&&(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;r0&&(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;o0&&(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;e0?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;i0&&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;es&&(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);n0?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&&r1){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'
    "+(t?''+t+"
    ":"")+(''+e+"")+"
    "}},{}],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'),a.modifyCSS(n,o.HtmlTooltipTheme[i]);var u=n;if(t){i=o.TooltipCssConst.TITLE_CLASS,n=a.createDom('
    '),a.modifyCSS(n,o.HtmlTooltipTheme[i]),u.appendChild(n);var c=n;i=o.TooltipCssConst.MARKER_CLASS,n=a.createDom(''),a.modifyCSS(n,o.HtmlTooltipTheme[i]),a.modifyCSS(n,{width:"10px",height:"10px"}),c.appendChild(n),l=n,n=a.createDom(""+t+""),c.appendChild(n)}if(e){i=o.TooltipCssConst.LIST_CLASS,n=a.createDom('
      '),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('
    • '+r+""),a.modifyCSS(n,o.HtmlTooltipTheme[i]),l.appendChild(n),i=o.TooltipCssConst.VALUE_CLASS,n=a.createDom(''+s+""),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;iu.maxX&&(u.maxX=n),ru.maxY&&(u.maxY=a)}};if(r.each(l,(function(t){return r.isArray(t)?c(t[e]):c(t)})),u.minX>n.maxX||u.maxXn.maxY||u.maxY=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];ae[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=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=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=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'
      "+(''+t+"")+"
      "}},{}],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.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=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.minX4?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.xr.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.y0?v:u.maxY-l.minY,h.y=c.y+v,h.x=c.x+v/Math.tan(a)}var y=s.distBetweenPoints(c,p)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.minY0){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.xM&&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=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){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])&&(l=[n,u,s])}else l=[n,[r[0],a],s];for(var f=[],d=0;de.x+e.width&&t.ye.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)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&&e2||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=n.from&&e2||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&&is.min&&n1){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;s0;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.xn.x&&(n=e),e.x>t&&e.xe)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;re[1])break;for(var c=o(r,u),p=-1/0,h=null,f=1/0,d=s;dp&&(p=g,h=v),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=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(pi.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;se){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;ip&&(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:_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;n0){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=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;u128?(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;r750?(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:'
      \n \n {name}{value}
      '},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("W").width===t&&i.measureText("m").width===e)return n+1;t=i.measureText("W").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.minFontSizei.maxFontSize)console.error("minSize cant bigger than maxSize");else{for(var p=0,h=0;h=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;rE[1]&&(E[1]=A),SE[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=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;R0&&(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=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&&e0&&!(e>=t[i-1]);)i-=1;return i},i.isBBoxIntersect=function(t,e){return!(t.maxY=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=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;nt.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;nc&&(i=c)}return i}function d(t,e){for(var i=0,n=t;i.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].xr&&(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=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=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.widththis.iterationTime-1);)this._iteration(),t=this._constraintsTest(),this.iterationIndex++;this.constraintIndex0&&(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=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)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.minXe.maxX&&(n=i.maxX-e.maxX),n&&t.attr("x",t.attr("x")-n),i.minYe.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=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=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)=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;s0)){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]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;n1){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.maxXi.maxY||l.maxY2&&(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=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;o1&&(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=tf&&(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;V7){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;m1?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.max(r,o)||Math.max(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.xe.x||e.xt.x)&&(t.ye.y||e.yt.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=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;v0!=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 nthis.max?NaN:this.values[n]},e.prototype.getText=function(e){for(var i=[],a=1;a1?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-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);ithis.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=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(tr.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),l1&&(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 te[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=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=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;on.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;gn.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;E1&&(a*=Math.ceil(s)),r&&a>>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 u0?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=e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(r=Math.ceil(e-t+1));++l=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=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;vO)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&&t1&&(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));ch&&(h=(r=[p,h])[0],p=r[1]),c<=2)return[p,h];for(var f=(h-p)/(c-1),d=[],g=0;g0?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=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]=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;e1||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;ei?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-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]={}),i20&&(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;i0}},{"./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;ri&&(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-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;++ae[n])return 1;if(t[n]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>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*(i0&&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=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=r180||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;na&&(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 a180?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;++ir&&(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||(ed&&(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;uO&&(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||(ev&&(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;Ml[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=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=[];sg&&(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||(eL&&(L=e))})),d=0;dMath.abs(t[e][r])&&(r=i);for(n=e;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=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||(ev&&(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-1?n:null}};function o(t){for(var e=[],i=1;i3?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.length0?"-":"+")+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;v0?(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)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)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;o0&&(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;o0&&(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;o0},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);i0},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=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]=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;e1||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}]},{},[]);