/*
    *
    * Wijmo Library 5.20173.409
    * http://wijmo.com/
    *
    * Copyright(c) GrapeCity, Inc.  All rights reserved.
    *
    * Licensed under the GrapeCity Commercial License.
    * sales@wijmo.com
    * wijmo.com/products/wijmo-5/license/
    *
    */
System.register(["wijmo/wijmo.chart","wijmo/wijmo","wijmo/wijmo.chart.annotation"],function(t,e){"use strict";var n,i,o,r,s,a,_,p,h,l,u,c,f,y,d,g,S=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();e&&e.id;return{setters:[function(t){n=t},function(t){i=t},function(t){o=t}],execute:function(){window.wijmo=window.wijmo||{},window.wijmo.chart=window.wijmo.chart||{},window.wijmo.chart.annotation=o,function(t){t[t.DataIndex=0]="DataIndex",t[t.DataCoordinate=1]="DataCoordinate",t[t.Relative=2]="Relative",t[t.Absolute=3]="Absolute"}(r||(r={})),t("AnnotationAttachment",r),function(t){t[t.Center=0]="Center",t[t.Top=1]="Top",t[t.Bottom=2]="Bottom",t[t.Left=4]="Left",t[t.Right=8]="Right"}(s||(s={})),t("AnnotationPosition",s),a=function(){function t(t){this._resetDefaultValue(),t&&this._copy(this,t)}return Object.defineProperty(t.prototype,"attachment",{get:function(){return this._attachment},set:function(t){(t=i.asEnum(t,r))!=this._attachment&&(this._attachment=t,this._repaint())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"point",{get:function(){return this._point},set:function(t){null!=t.x&&null!=t.y&&(t.x===this._point.x&&t.y===this._point.y||(this._point=t,this._repaint()))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"seriesIndex",{get:function(){return this._seriesIndex},set:function(t){(t=i.asNumber(t,!1,!0))!=this._seriesIndex&&(this._seriesIndex=t,this._repaint())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pointIndex",{get:function(){return this._pointIndex},set:function(t){t!==this._pointIndex&&(this._pointIndex=i.asNumber(t,!1,!0),this._repaint())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){t!=this._position&&(this._position=t,this._repaint())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offset",{get:function(){return this._offset},set:function(t){null!=t.x&&null!=t.y&&(t.x===this._offset.x&&t.y===this._offset.y||(this._offset=t,this._repaint()))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return null==this._style&&(this._style={}),this._style},set:function(t){t!=this._style&&(this._style=t,this._repaint())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(t){(t=i.asBoolean(t,!1))!=this._isVisible&&(this._isVisible=t,this._toggleVisibility(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltip",{get:function(){return this._tooltip},set:function(t){this._tooltip=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t},enumerable:!0,configurable:!0}),t.prototype.render=function(e){var i,o=this;o._element=e.startGroup(o._getCSSClass()),e.fill="#88bde6",e.strokeWidth=1,e.stroke="#000000",o._render(e),e.endGroup(),o._element[t._DATA_KEY]=this,o._isVisible?o._attachment===r.DataIndex&&(!(i=o._layer._chart.series[o._seriesIndex])||i.visibility!==n.SeriesVisibility.Legend&&i.visibility!==n.SeriesVisibility.Hidden||o._toggleVisibility(!1)):o._toggleVisibility(!1)},t.prototype.destroy=function(){},t.prototype._copy=function(t,e){for(var n in e)n in t&&this._processOptions(n,t,e)},t.prototype._processOptions=function(t,e,n){e[t]=n[t]},t.prototype._resetDefaultValue=function(){var t=this;t._attachment=r.Absolute,t._point=new n.DataPoint(0,0),t._seriesIndex=0,t._pointIndex=0,t._position=s.Center,t._offset=new i.Point(0,0),t._isVisible=!0,t._tooltip=""},t.prototype._toggleVisibility=function(t){var e=t?"visible":"hidden";this._element&&this._element.setAttribute("visibility",e)},t.prototype._getCSSClass=function(){return t._CSS_ANNOTATION},t.prototype._render=function(t){this._element=null},t.prototype._repaint=function(){this._layer&&this._layer._renderAnnotation(this)},t.prototype._convertPoint=function(t){var e,n,o,s,a,_,p,h=this,l=h._attachment,u=new i.Point;switch(h._layer&&h._layer._chart&&(n=(e=h._layer._chart)._plotRect),l){case r.DataIndex:if(!e.series||e.series.length<=h.seriesIndex)break;if(a=e.series[h.seriesIndex],!(_=a._getItem(h.pointIndex)))break;o=a.axisX||e.axisX,s=a.axisY||e.axisY,"string"==typeof(p=_[a.bindingX]||_.x)&&(p=h.pointIndex),u.x=h._convertDataToLen(n.width,o,p),u.y=h._convertDataToLen(n.height,s,_[a._getBinding(0)]||s.actualMin+.25,!0);break;case r.DataCoordinate:o=e.axisX,s=e.axisY,u.x=h._convertDataToLen(n.width,o,t.x),u.y=h._convertDataToLen(n.height,s,t.y,!0);break;case r.Relative:u.x=n.width*t.x,u.y=n.height*t.y;break;case r.Absolute:default:u.x=t.x,u.y=t.y}return u},t.prototype._convertDataToLen=function(t,e,n,i){void 0===i&&(i=!1);var o=null==e.min?e.actualMin:e.min,r=null==e.max?e.actualMax:e.max;return i?t*(1-(n-o)/(r-o)):t*(n-o)/(r-o)},t.prototype._renderCenteredText=function(t,e,n,i,o,r){var s,a;this._isValidPoint(n)&&(o?e.drawStringRotated(t,n,n,o,i,r):e.drawString(t,n,i,r),(s=this._element.querySelector("text"))&&(a=s.getBBox(),s.setAttribute("x",(n.x-a.width/2).toFixed(1)),s.setAttribute("y",(n.y+a.height/6).toFixed(1))))},t.prototype._adjustOffset=function(t,e){t.x=t.x+e.x,t.y=t.y+e.y},t.prototype._getOffset=function(t){var e=this._getPositionOffset(t);return new i.Point(this._offset.x+e.x,this._offset.y+e.y)},t.prototype._getPositionOffset=function(t){var e=new i.Point(0,0),n=this.position,o=this._getSize(t);return(n&s.Top)===s.Top?e.y-=o.height/2:(n&s.Bottom)===s.Bottom&&(e.y+=o.height/2),(n&s.Left)===s.Left?e.x-=o.width/2:(n&s.Right)===s.Right&&(e.x+=o.width/2),e},t.prototype._getSize=function(t){return new i.Size},t.prototype._isValidPoint=function(t){return isFinite(t.x)&&isFinite(t.y)},t.prototype._measureString=function(t,e,n){var i,o=t;return o._textGroup&&null==o._textGroup.parentNode?(o._svg.appendChild(o._textGroup),i=o.measureString(e,n,null,this.style),o.endRender()):i=o.measureString(e,n,null,this.style),i},t._DATA_KEY="wj-chart-annotation",t._CSS_ANNOTATION="wjchart-annotation",t._CSS_ANNO_TEXT="anno-text",t._CSS_ANNO_SHAPE="anno-shape",t}(),t("AnnotationBase",a),_=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype._resetDefaultValue=function(){t.prototype._resetDefaultValue.call(this),this._text="",this.position=s.Top},e.prototype._getCSSClass=function(){return t.prototype._getCSSClass.call(this)+" "+e._CSS_TEXT},Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){var e=this;t!==e._text&&(e._text=t,e._repaint())},enumerable:!0,configurable:!0}),e.prototype._render=function(t){var e,n=this,i=n._convertPoint(n.point);e=n._getOffset(t),n._adjustOffset(i,e),n._renderCenteredText(n._text,t,i,a._CSS_ANNO_TEXT,null,n.style)},e.prototype._getSize=function(t){return t?this._measureString(t,this._text,a._CSS_ANNO_TEXT):new i.Size},e._CSS_TEXT="wjchart-anno-text",e}(a),t("Text",_),p=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype._resetDefaultValue=function(){t.prototype._resetDefaultValue.call(this),this._content=""},e.prototype._getCSSClass=function(){return t.prototype._getCSSClass.call(this)+" "+e._CSS_SHAPE},Object.defineProperty(e.prototype,"content",{get:function(){return this._content},set:function(t){var e=this;t!==e._content&&(e._content=t,e._repaint())},enumerable:!0,configurable:!0}),e.prototype._render=function(t){var e=this;e._shapeContainer=t.startGroup(),t.stroke="#000",e._renderShape(t),t.stroke=null,t.endGroup(),e._content&&e._renderText(t)},e.prototype._getContentCenter=function(){return this.point},e.prototype._renderShape=function(t){},e.prototype._renderText=function(t){var e,n,i=this;e=i._convertPoint(i._getContentCenter()),i._isValidPoint(e)&&(n=i._getOffset(),i._adjustOffset(e,n),i._renderCenteredText(i._content,t,e,a._CSS_ANNO_TEXT))},e._CSS_SHAPE="wjchart-anno-shape",e}(a),t("Shape",p),h=function(t){function e(e){return t.call(this,e)||this}return S(e,t),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){t!==this._width&&(this._width=i.asNumber(t,!1,!0),this._repaint())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){t!==this._height&&(this._height=i.asNumber(t,!1,!0),this._repaint())},enumerable:!0,configurable:!0}),e.prototype._resetDefaultValue=function(){t.prototype._resetDefaultValue.call(this),this._width=100,this._height=80},e.prototype._getCSSClass=function(){return t.prototype._getCSSClass.call(this)+" "+e._CSS_ELLIPSE},e.prototype._renderShape=function(e){t.prototype._renderShape.call(this,e);var n=this,i=n._convertPoint(n.point),o=n._width,r=n._height,s=n._getOffset();n._adjustOffset(i,s),n._isValidPoint(i)&&e.drawEllipse(i.x,i.y,o/2,r/2,a._CSS_ANNO_SHAPE,n.style)},e.prototype._getSize=function(){return new i.Size(this.width,this.height)},e._CSS_ELLIPSE="wjchart-anno-ellipse",e}(p),t("Ellipse",h),l=function(t){function e(e){return t.call(this,e)||this}return S(e,t),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){t!==this._width&&(this._width=i.asNumber(t,!1,!0),this._repaint())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){t!==this._height&&(this._height=i.asNumber(t,!1,!0),this._repaint())},enumerable:!0,configurable:!0}),e.prototype._resetDefaultValue=function(){t.prototype._resetDefaultValue.call(this),this._width=100,this._height=80},e.prototype._getCSSClass=function(){return t.prototype._getCSSClass.call(this)+" "+e._CSS_RECTANGLE},e.prototype._renderShape=function(e){t.prototype._renderShape.call(this,e);var n=this,i=n._convertPoint(n.point),o=n._width,r=n._height,s=n._getOffset();n._adjustOffset(i,s),n._isValidPoint(i)&&e.drawRect(i.x-o/2,i.y-r/2,n._width,n._height,a._CSS_ANNO_SHAPE,n.style)},e.prototype._getSize=function(){return new i.Size(this.width,this.height)},e._CSS_RECTANGLE="wjchart-anno-rectangle",e}(p),t("Rectangle",l),u=function(t){function e(e){return t.call(this,e)||this}return S(e,t),Object.defineProperty(e.prototype,"start",{get:function(){return this._start},set:function(t){var e=this;null!=t.x&&null!=t.y&&(t.x===e._start.x&&t.y===e._start.y||(e._start=t,e._repaint()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},set:function(t){var e=this;null!=t.x&&null!=t.y&&(t.x===e._end.x&&t.y===e._end.y||(e._end=t,e._repaint()))},enumerable:!0,configurable:!0}),e.prototype._resetDefaultValue=function(){t.prototype._resetDefaultValue.call(this),this._start=new n.DataPoint(0,0),this._end=new n.DataPoint(0,0),this.position=s.Top},e.prototype._getCSSClass=function(){return t.prototype._getCSSClass.call(this)+" "+e._CSS_LINE},e.prototype._getContentCenter=function(){var t=this.start,e=this.end;return new n.DataPoint((t.x+e.x)/2,(t.y+e.y)/2)},e.prototype._renderShape=function(e){t.prototype._renderShape.call(this,e);var n,i=this,o=i._convertPoint(i._start),r=i._convertPoint(i._end);i._cS=o,i._cE=r,n=i._getOffset(),i._adjustOffset(o,n),i._adjustOffset(r,n),i._isValidPoint(o)&&i._isValidPoint(r)&&e.drawLine(o.x,o.y,r.x,r.y,a._CSS_ANNO_SHAPE,i.style)},e.prototype._getSize=function(){var t=this._cS,e=this._cE;return new i.Size(Math.abs(t.x-e.x),Math.abs(t.y-e.y))},e.prototype._renderText=function(t){var e,n,i,o=this,r=o._cS,s=o._cE;e=o._convertPoint(o._getContentCenter()),n=o._getOffset(),o._adjustOffset(e,n),o._isValidPoint(e)&&(i=(i=180*Math.atan2(s.y-r.y,s.x-r.x)/Math.PI)<-90?i+180:i>90?i-180:i,o._renderCenteredText(o.content,t,e,a._CSS_ANNO_TEXT,i))},e.prototype._renderCenteredText=function(e,n,i,o,r,s){if(null!=r){var a,_,p,h;p=this._measureString(n,e,o).height/2,h=r*Math.PI/180,a=p*Math.sin(h),_=p*Math.cos(h),i.x=i.x+a,i.y=i.y-_}t.prototype._renderCenteredText.call(this,e,n,i,o,r,s)},e._CSS_LINE="wjchart-anno-line",e}(p),t("Line",u),c=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype._processOptions=function(e,n,o){var r=this;if("points"===e){var s=o[e];i.isArray(s)&&s.forEach(function(t){r.points.push(t)})}else t.prototype._processOptions.call(this,e,n,o)},Object.defineProperty(e.prototype,"points",{get:function(){return this._points},enumerable:!0,configurable:!0}),e.prototype._resetDefaultValue=function(){var e=this;t.prototype._resetDefaultValue.call(this),e._points=new i.ObservableArray,e._points.collectionChanged.addHandler(function(){e._element&&e._repaint()})},e.prototype._getCSSClass=function(){return t.prototype._getCSSClass.call(this)+" "+e._CSS_POLYGON},e.prototype._getContentCenter=function(){var t,e=this.points,i=e.length,o=0,r=0;for(t=0;t<i;t++)o+=e[t].x,r+=e[t].y;return new n.DataPoint(o/i,r/i)},e.prototype._renderShape=function(e){t.prototype._renderShape.call(this,e);var n,i,o=this,r=[],s=[],_=o._points,p=_.length,h=o._getOffset();for(n=0;n<p;n++){if(i=o._convertPoint(_[n]),!o._isValidPoint(i))return;o._adjustOffset(i,h),r.push(i.x),s.push(i.y)}e.drawPolygon(r,s,a._CSS_ANNO_SHAPE,o.style)},e.prototype._getSize=function(){var t,e,n,o,r,s,a,_=this,p=_._points.length;for(a=[].map.call(_._points,function(t){return _._convertPoint(t)}),r=0;r<p;r++)s=a[r],0!==r?(s.x<t?t=s.x:s.x>e&&(e=s.x),s.y<n?n=s.y:s.y>o&&(o=s.y)):(t=e=s.x,n=o=s.y);return new i.Size(e-t,o-n)},e._CSS_POLYGON="wjchart-anno-polygon",e}(p),t("Polygon",c),f=function(t){function e(e){return t.call(this,e)||this}return S(e,t),Object.defineProperty(e.prototype,"radius",{get:function(){return this._radius},set:function(t){t!==this._radius&&(this._radius=i.asNumber(t,!1,!0),this._repaint())},enumerable:!0,configurable:!0}),e.prototype._resetDefaultValue=function(){t.prototype._resetDefaultValue.call(this),this._radius=100},e.prototype._getCSSClass=function(){return t.prototype._getCSSClass.call(this)+" "+e._CSS_CIRCLE},e.prototype._renderShape=function(e){t.prototype._renderShape.call(this,e);var n=this,i=n._convertPoint(n.point),o=n._getOffset();n._adjustOffset(i,o),n._isValidPoint(i)&&e.drawPieSegment(i.x,i.y,n.radius,0,360,a._CSS_ANNO_SHAPE,n.style)},e.prototype._getSize=function(){var t=2*this.radius;return new i.Size(t,t)},e._CSS_CIRCLE="wjchart-anno-circle",e}(p),t("Circle",f),y=function(t){function e(e){return t.call(this,e)||this}return S(e,t),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},set:function(t){t!==this._length&&(this._length=i.asNumber(t,!1,!0),this._repaint())},enumerable:!0,configurable:!0}),e.prototype._resetDefaultValue=function(){t.prototype._resetDefaultValue.call(this),this._length=100},e.prototype._getCSSClass=function(){return t.prototype._getCSSClass.call(this)+" "+e._CSS_SQUARE},e.prototype._renderShape=function(e){t.prototype._renderShape.call(this,e);var n=this,i=n._convertPoint(n.point),o=n.length,r=n._getOffset();n._adjustOffset(i,r),n._isValidPoint(i)&&e.drawRect(i.x-o/2,i.y-o/2,o,o,a._CSS_ANNO_SHAPE,n.style)},e.prototype._getSize=function(){return new i.Size(this.length,this.length)},e._CSS_SQUARE="wjchart-anno-square",e}(p),t("Square",y),d=function(t){function e(e){return t.call(this,e)||this}return S(e,t),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){t!==this._width&&(this._width=i.asNumber(t,!1,!0),this._repaint())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){t!==this._height&&(this._height=i.asNumber(t,!1,!0),this._repaint())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"href",{get:function(){return this._href},set:function(t){t!==this._href&&(this._href=t,this._repaint())},enumerable:!0,configurable:!0}),e.prototype._resetDefaultValue=function(){t.prototype._resetDefaultValue.call(this),this._width=100,this._height=100,this._href=""},e.prototype._getCSSClass=function(){return t.prototype._getCSSClass.call(this)+" "+e._CSS_IMAGE},e.prototype._renderShape=function(e){t.prototype._renderShape.call(this,e);var n=this,i=n._convertPoint(n.point),o=n._href,r=n.width,s=n.height,a=n._getOffset();o.length>0&&n._isValidPoint(i)&&(n._adjustOffset(i,a),e.drawImage(o,i.x-r/2,i.y-s/2,r,s)),n._applyStyle(n._element,n.style)},e.prototype._getSize=function(){return new i.Size(this.width,this.height)},e.prototype._applyStyle=function(t,e){if(e)for(var n in e)t.setAttribute(this._deCase(n),e[n])},e.prototype._deCase=function(t){return t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()})},e._CSS_IMAGE="wjchart-anno-image",e}(p),t("Image",d),g=function(){function t(t,e){var n=this;n._init(t),n._renderGroup(),n._bindTooltip(),e&&i.isArray(e)&&e.forEach(function(t){var e,i=t.type||"Circle";o[i]&&(e=new o[i](t),n._items.push(e))})}return t.prototype._init=function(t){var e=this;e._items=new i.ObservableArray,e._items.collectionChanged.addHandler(e._itemsChanged,e),e._chart=t,e._forceTTShowing=!1,e._annoTTShowing=!1,e._engine=t._currentRenderEngine,t.rendered.addHandler(e._renderAnnotations,e),t.lostFocus.addHandler(e._lostFocus,e)},t.prototype._lostFocus=function(t){this._toggleTooltip(this._tooltip,t,this._chart.hostElement)},Object.defineProperty(t.prototype,"items",{get:function(){return this._items},enumerable:!0,configurable:!0}),t.prototype.getItem=function(t){var e=this.getItems(t);return e.length>0?e[0]:null},t.prototype.getItems=function(t){var e=[];if(0===this._items.length||!t||""===t)return e;for(var n=0;n<this._items.length;n++)t===this._items[n].name&&e.push(this._items[n]);return e},t.prototype._bindTooltip=function(){var t,e=this,o=e._chart.hostElement,r=e._tooltip;r||(r=e._tooltip=new n.ChartTooltip,t=i.Tooltip.prototype.hide,i.Tooltip.prototype.hide=function(){e._forceTTShowing||t.call(r)}),o&&(o.addEventListener("click",function(t){e._toggleTooltip(r,t,o)}),o.addEventListener("mousemove",function(t){e._showTooltip()&&e._toggleTooltip(r,t,o)}))},t.prototype._showTooltip=function(){return!this._chart.isTouching},t.prototype._toggleTooltip=function(t,e,n){var o=this,r=o._getAnnotation(e.target,n);if(r&&r.tooltip)o._forceTTShowing=!0,o._annoTTShowing=!0,t.show(o._layerEle,r.tooltip,new i.Rect(e.clientX,e.clientY,5,5));else{if(!o._annoTTShowing)return;o._annoTTShowing=!1,o._forceTTShowing=!1,t.hide()}},t.prototype._getAnnotation=function(t,e){var n=this._getAnnotationElement(t,e);return null==n?null:n[a._DATA_KEY]},t.prototype._getAnnotationElement=function(t,e){if(!t||!e)return null;var n=t.parentNode;return i.hasClass(t,a._CSS_ANNOTATION)?t:null==n||n===document.body||n===document||n===e?null:this._getAnnotationElement(n,e)},t.prototype._itemsChanged=function(t,e){var n=e.action,o=e.item;switch(n){case i.NotifyCollectionChangedAction.Add:case i.NotifyCollectionChangedAction.Change:o._layer=this,this._renderAnnotation(o);break;case i.NotifyCollectionChangedAction.Remove:this._destroyAnnotation(o)}},t.prototype._renderAnnotations=function(){var t,e=this.items,n=e.length;for(this._renderGroup(),t=0;t<n;t++)this._renderAnnotation(e[t])},t.prototype._renderGroup=function(){var e=this,n=e._engine,i=e._chart._plotRect;i&&(e._layerEle&&null!=e._layerEle.parentNode||(e._plotrectId="plotRect"+(1e6*Math.random()).toFixed(),n.addClipRect({left:0,top:0,width:i.width,height:i.height},e._plotrectId),e._layerEle=n.startGroup(t._CSS_Layer,e._plotrectId),e._layerEle.setAttribute("transform","translate("+i.left+", "+i.top+")"),n.endGroup()))},t.prototype._renderAnnotation=function(t){this._layerEle&&null!=this._layerEle.parentNode&&(t._element&&t._element.parentNode==this._layerEle&&this._layerEle.removeChild(t._element),t.render(this._engine),this._layerEle.appendChild(t._element))},t.prototype._destroyAnnotations=function(){var t,e=this.items,n=e.length;for(t=0;t<n;t++)this._destroyAnnotation(e[t])},t.prototype._destroyAnnotation=function(t){this._layerEle&&this._layerEle.removeChild(t._element),t.destroy()},t._CSS_Layer="wj-chart-annotationlayer",t}(),t("AnnotationLayer",g)}}});