/*
    *
    * Wijmo Library 5.20181.462
    * 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/
    *
    */
define(["require","exports","wijmo/wijmo","wijmo/wijmo.chart","wijmo/wijmo.chart.interaction"],function(t,i,e,s,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=n||i;window.wijmo=window.wijmo||{},window.wijmo.chart=window.wijmo.chart||{},window.wijmo.chart.interaction=a;var h=function(){function t(t,i,s,n){this._isVisible=!0,this._buttonsVisible=!0,this._minScale=0,this._maxScale=1,this._seamless=!1,this._rsContainer=null,this._rsEle=null,this._decBtn=null,this._incBtn=null,this._rsContent=null,this._minHandler=null,this._rangeHandler=null,this._maxHandler=null,this._wrapperSliderMousedown=null,this._wrapperDocMouseMove=null,this._wrapperDocMouseup=null,this._wrapperBtnMousedown=null,this._wrapperRangeSpaceMousedown=null,this._wrapperRangeMouseleave=null,this._isTouch=!1,this._slidingInterval=null,this._rangeSliderRect=null,this._isHorizontal=!0,this._isBtnMousedown=!1,this._needSpaceClick=!1,this._hasButtons=!0,this._movingEle=null,this._movingOffset=null,this._range=null,this._startPt=null,this._minPos=0,this._maxPos=1,this.rangeChanged=new e.Event,this.rangeChanging=new e.Event,t||e.assert(!1,"The container cannot be null."),this._isTouch="ontouchstart"in window,this._needSpaceClick=i,this._hasButtons=s,e.copy(this,n),this._createSlider(t)}return Object.defineProperty(t.prototype,"buttonsVisible",{get:function(){return this._buttonsVisible},set:function(t){if(t!=this._buttonsVisible){if(this._buttonsVisible=e.asBoolean(t),!this._rsContainer||!this._hasButtons)return;this._refresh()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isHorizontal",{get:function(){return this._isHorizontal},set:function(t){if(t!=this._isHorizontal){if(this._isHorizontal=e.asBoolean(t),!this._rsContainer)return;this._invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(t){if(t!=this._isVisible){if(this._isVisible=e.asBoolean(t),!this._rsContainer)return;this._rsContainer.style.visibility=this._isVisible?"visible":"hidden"}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minScale",{get:function(){return this._minScale},set:function(t){t>=0&&t!=this._minScale&&(this._minScale=e.asNumber(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxScale",{get:function(){return this._maxScale},set:function(t){t>=0&&t!=this._maxScale&&(this._maxScale=e.asNumber(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"seamless",{get:function(){return this._seamless},set:function(t){t!=this._seamless&&(this._seamless=e.asBoolean(t))},enumerable:!0,configurable:!0}),t.prototype.onRangeChanged=function(t){this.rangeChanged.raise(this,t)},t.prototype.onRangeChanging=function(t){this.rangeChanging.raise(this,t)},Object.defineProperty(t.prototype,"_isSliding",{get:function(){return null!==this._startPt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_handleWidth",{get:function(){return this._minHandler.offsetWidth},enumerable:!0,configurable:!0}),t.prototype._createSlider=function(i){var s=this._isHorizontal?t._HRANGESLIDER:t._VRANGESLIDER,n=this._isHorizontal?"wj-glyph-left":"wj-glyph-down",a=this._isHorizontal?"wj-glyph-right":"wj-glyph-up";this._rsContainer=i,this._rsContainer.style.visibility=this._isVisible?"visible":"hidden",this._rsEle=e.createElement('<div class="wj-chart-rangeslider '+s+'"></div>'),this._rsContainer.appendChild(this._rsEle),this._hasButtons&&(this._decBtn=e.createElement('<button class="wj-rangeslider-decbtn wj-btn wj-btn-default" type="button" tabindex="-1"><span class="'+n+" "+t._RANGESLIDER_DECBTN+'"></span></button>'),this._rsEle.appendChild(this._decBtn),this._incBtn=e.createElement('<button class="wj-rangeslider-incbtn wj-btn wj-btn-default" type="button" tabindex="-1"><span class="'+a+" "+t._RANGESLIDER_INCBTN+'"></span></button>'),this._rsEle.appendChild(this._incBtn)),this._rsContent=e.createElement('<div class="wj-rangeslider-content"><div class="wj-rangeslider-rangehandle"></div><div class="wj-rangeslider-minhandle"></div><div class="wj-rangeslider-maxhandle"></div>'),this._rsEle.appendChild(this._rsContent),this._minHandler=this._rsContent.querySelector("."+t._RANGESLIDER_MINHANDLE),this._rangeHandler=this._rsContent.querySelector("."+t._RANGESLIDER_RANGEHANDLE),this._maxHandler=this._rsContent.querySelector("."+t._RANGESLIDER_MAXHANDLE),this._wrapperSliderMousedown=this._onSliderMousedown.bind(this),this._wrapperDocMouseMove=this._onDocMouseMove.bind(this),this._wrapperDocMouseup=this._onDocMouseup.bind(this),this._wrapperRangeSpaceMousedown=this._onRangeSpaceMousedown.bind(this),this._wrapperRangeMouseleave=this._onRangeMouseleave.bind(this),this._wrapperBtnMousedown=this._onBtnMousedown.bind(this),this._switchEvent(!0)},t.prototype._switchEvent=function(t){var i=t?"addEventListener":"removeEventListener";this._rsContainer&&(this._needSpaceClick&&this._rsEle[i]("mousedown",this._wrapperRangeSpaceMousedown),this._rsEle[i]("mouseleave",this._wrapperRangeMouseleave),this._rsContent[i]("mousedown",this._wrapperSliderMousedown),this._hasButtons&&(this._decBtn[i]("mousedown",this._wrapperBtnMousedown),this._incBtn[i]("mousedown",this._wrapperBtnMousedown)),document[i]("mousemove",this._wrapperDocMouseMove),document[i]("mouseup",this._wrapperDocMouseup),"ontouchstart"in window&&(this._needSpaceClick&&this._rsEle[i]("touchstart",this._wrapperRangeSpaceMousedown),this._rsContent[i]("touchstart",this._wrapperSliderMousedown),this._hasButtons&&(this._decBtn[i]("touchstart",this._wrapperBtnMousedown),this._incBtn[i]("touchstart",this._wrapperBtnMousedown)),document[i]("touchmove",this._wrapperDocMouseMove),document[i]("touchend",this._wrapperDocMouseup)))},t.prototype._onSliderMousedown=function(i){this._isVisible&&(this._movingEle=i.srcElement||i.target,this._startPt=i instanceof MouseEvent?new e.Point(i.pageX,i.pageY):new e.Point(i.changedTouches[0].pageX,i.changedTouches[0].pageY),e.removeClass(this._minHandler,t._RANGESLIDER_HANDLE_ACTIVE),e.removeClass(this._maxHandler,t._RANGESLIDER_HANDLE_ACTIVE),this._movingOffset=e.getElementRect(this._movingEle),this._movingEle!=this._rangeHandler?(this._isHorizontal?this._movingOffset.left+=.5*this._movingEle.offsetWidth:this._movingOffset.top+=.5*this._movingEle.offsetHeight,e.addClass(this._movingEle,t._RANGESLIDER_HANDLE_ACTIVE)):this._range=this._maxPos-this._minPos,i.preventDefault())},t.prototype._onDocMouseMove=function(t){if(this._isVisible&&this._startPt){var i=t instanceof MouseEvent?new e.Point(t.pageX,t.pageY):new e.Point(t.changedTouches[0].pageX,t.changedTouches[0].pageY);this._onMove(i)}},t.prototype._onMove=function(i){var s,n=this,a=this._startPt,h=this._movingOffset,o=this._plotBox,r=this._range,_=this._movingEle,l=this._minHandler,c=this._rangeHandler,p=this._maxHandler;a&&h&&((s=this._isHorizontal?(h.left+i.x-a.x-o.x)/o.width:1-(h.top+i.y-a.y-o.y)/o.height)<0?s=0:s>1&&(s=1),_===l?this._seamless&&0===this._minScale&&s>=this._maxPos?(n._minPos=n._maxPos,n._movingEle=p,e.removeClass(this._minHandler,t._RANGESLIDER_HANDLE_ACTIVE),e.addClass(this._maxHandler,t._RANGESLIDER_HANDLE_ACTIVE)):(s>this._maxPos-this._minScale&&(s=this._maxPos-this._minScale),s<this._maxPos-this._maxScale&&(s=this._maxPos-this._maxScale),this._minPos=s):_===p?this._seamless&&0===this._minScale&&s<=this._minPos?(n._maxPos=n._minPos,n._movingEle=l,e.removeClass(this._maxHandler,t._RANGESLIDER_HANDLE_ACTIVE),e.addClass(this._minHandler,t._RANGESLIDER_HANDLE_ACTIVE)):(s<this._minPos+this._minScale&&(s=this._minPos+this._minScale),s>this._minPos+this._maxScale&&(s=this._minPos+this._maxScale),this._maxPos=s):_===c&&(this._isHorizontal?(this._minPos=s,this._maxPos=this._minPos+r,this._maxPos>=1&&(this._maxPos=1,this._minPos=this._maxPos-r)):(this._maxPos=s,this._minPos=this._maxPos-r,this._minPos<=0&&(this._minPos=0,this._maxPos=this._minPos+r))),this._updateElesPosition(),this.onRangeChanging())},t.prototype._onDocMouseup=function(i){this._isVisible&&(this._clearInterval(),this._isBtnMousedown=!1,this._startPt&&(this.onRangeChanged(),this._startPt=null,this._movingOffset=null),e.removeClass(this._minHandler,t._RANGESLIDER_HANDLE_ACTIVE),e.removeClass(this._maxHandler,t._RANGESLIDER_HANDLE_ACTIVE))},t.prototype._onRangeSpaceMousedown=function(t){var i=t instanceof MouseEvent?new e.Point(t.pageX,t.pageY):new e.Point(t.changedTouches[0].pageX,t.changedTouches[0].pageY),s=e.getElementRect(this._rsContent),n=e.getElementRect(this._rangeHandler),a=t.srcElement||t.target,h=0;t.stopPropagation(),t.preventDefault(),a!==this._rsContent&&a!==this._rsEle||(this._isHorizontal?(h=n.width/s.width,i.x<n.left?h*=-1:i.x>n.left+n.width&&(h*=1)):(h=n.height/s.height,i.y<n.top?h*=1:i.y>n.top+n.height&&(h*=-1)),0!==h&&this._doSliding(h,i))},t.prototype._onRangeMouseleave=function(t){t.stopPropagation(),t.preventDefault(),this._isBtnMousedown&&(this._clearInterval(),this.onRangeChanged())},t.prototype._onBtnMousedown=function(i){var s=i.srcElement||i.target,n=0;if(i.stopPropagation(),i.preventDefault(),e.hasClass(s,t._RANGESLIDER_DECBTN)){if(0===this._minPos)return;n=-.05}else if(e.hasClass(s,t._RANGESLIDER_INCBTN)){if(1===this._maxPos)return;n=.05}this._isBtnMousedown=!0,0!==n&&this._doSliding(n)},t.prototype._refresh=function(t){var i,s,n=0,a=e.getElementRect(this._rsContainer);t&&(this._rangeSliderRect=t),this._rangeSliderRect&&(this._hasButtons&&this._buttonsVisible?(this._decBtn.style.display="block",this._incBtn.style.display="block",n=this._isHorizontal?this._decBtn.offsetWidth+this._minHandler.offsetWidth/2:this._decBtn.offsetHeight+this._minHandler.offsetHeight/2):(this._hasButtons&&(this._decBtn.style.display="none",this._incBtn.style.display="none"),n=this._isHorizontal?this._minHandler.offsetWidth/2:this._minHandler.offsetHeight/2),i=this._getRsRect(),this._isHorizontal?(i.left-=this._minHandler.offsetWidth/2,i.width+=this._minHandler.offsetWidth,s={left:n,width:i.width-2*n}):(i.top-=this._minHandler.offsetHeight/2,i.height+=this._minHandler.offsetHeight,s={top:n,height:i.height-2*n}),e.setCss(this._rsEle,i),e.setCss(this._rsContent,s),a=e.getElementRect(this._rsContent),this._plotBox={x:a.left,y:a.top,width:a.width,height:a.height},this._updateElesPosition())},t.prototype._updateElesPosition=function(){var t,i,e,s=this._minHandler,n=(this._rangeHandler,this._maxHandler),a=this._plotBox,h=this._isHorizontal;a&&(t=h?{left:this._minPos*a.width-.5*s.offsetWidth}:{top:(1-this._minPos)*a.height-.5*n.offsetHeight},i=h?{left:this._minPos*a.width,width:(this._maxPos-this._minPos)*a.width}:{top:(1-this._maxPos)*a.height,height:(this._maxPos-this._minPos)*a.height},e=h?{left:this._maxPos*a.width-.5*n.offsetWidth}:{top:(1-this._maxPos)*a.height-.5*s.offsetHeight},this._refreshSlider(t,i,e))},t.prototype._refreshSlider=function(t,i,s){e.setCss(this._minHandler,t),e.setCss(this._rangeHandler,i),e.setCss(this._maxHandler,s)},t.prototype._invalidate=function(){var i,s;this._rsContainer&&(i=this._isHorizontal?t._HRANGESLIDER:t._VRANGESLIDER,s=this._isHorizontal?t._VRANGESLIDER:t._HRANGESLIDER,e.removeClass(this._rsEle,s),e.addClass(this._rsEle,i),[this._rsEle,this._rsContent,this._minHandler,this._maxHandler,this._rangeHandler].forEach(function(t){t.removeAttribute("style")}),this._refresh())},t.prototype._changeRange=function(t){var i=this._maxPos-this._minPos;t<0&&0===this._minPos||t>0&&1===this._maxPos||(t<0?(this._minPos+=t,this._minPos=this._minPos<0?0:this._minPos,this._maxPos=this._minPos+i):(this._maxPos+=t,this._maxPos=this._maxPos>1?1:this._maxPos,this._minPos=this._maxPos-i),this._updateElesPosition())},t.prototype._doSliding=function(t,i){e.getElementRect(this._rsContent),e.getElementRect(this._rangeHandler);this._clearInterval(),this._startPt=new e.Point,this._changeRange(t),this.onRangeChanged(),this._setSlidingInterval(t,i)},t.prototype._setSlidingInterval=function(t,i){var s,n,a=this;this._slidingInterval=window.setInterval(function(){if(i)if(s=e.getElementRect(a._rsContent),n=e.getElementRect(a._rangeHandler),a._isHorizontal){if(i.x>=n.left&&i.x<=n.left+n.width)return void a._clearInterval()}else if(i.y>=n.top&&i.y<=n.top+n.height)return void a._clearInterval();a._changeRange(t),a.onRangeChanged()},200)},t.prototype._clearInterval=function(){this._slidingInterval&&window.clearInterval(this._slidingInterval)},t.prototype._getRsRect=function(){var t=this._rangeSliderRect,i={};if(t)return["left","top","width","height"].forEach(function(e){t[e]&&(i[e]=t[e])}),i},t._HRANGESLIDER="wj-chart-hrangeslider",t._VRANGESLIDER="wj-chart-vrangeslider",t._RANGESLIDER_DECBTN="wj-rangeslider-decbtn",t._RANGESLIDER_INCBTN="wj-rangeslider-incbtn",t._RANGESLIDER_RANGEHANDLE="wj-rangeslider-rangehandle",t._RANGESLIDER_MINHANDLE="wj-rangeslider-minhandle",t._RANGESLIDER_MAXHANDLE="wj-rangeslider-maxhandle",t._RANGESLIDER_HANDLE_ACTIVE="wj-rangeslider-handle-active",t}();i._RangeSlider=h;var o;!function(t){t[t.X=0]="X",t[t.Y=1]="Y"}(o=i.Orientation||(i.Orientation={}));var r=function(){function t(t,i){this._isVisible=!0,this._orientation=o.X,this._seamless=!1,this._minScale=0,this._maxScale=1,this.rangeChanged=new e.Event,this._chart=e.asType(t,s.FlexChartCore,!1),this._createRangeSelector(),e.copy(this,i)}return Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(t){t!=this._isVisible&&(this._isVisible=e.asBoolean(t),this._rangeSlider&&(this._rangeSlider.isVisible=t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},set:function(t){if((t=e.asNumber(t,!0,!1))!=this._min){var i=!1;null==t||void 0===t||isNaN(t)||null==this._max?(this._min=t,i=!0):t<=this._max&&(this._min=t,i=!0),this._rangeSlider&&i&&this._changeRange()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},set:function(t){if((t=e.asNumber(t,!0,!1))!=this._max){var i=!1;null==t||isNaN(t)?(this._max=t,i=!0):t>=this._min&&(this._max=t,i=!0),this._rangeSlider&&i&&this._changeRange()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orientation",{get:function(){return this._orientation},set:function(t){(t=e.asEnum(t,o))!==this._orientation&&(this._orientation=t,this._rangeSlider&&(this._rangeSlider.isHorizontal=t==o.X))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"seamless",{get:function(){return this._seamless},set:function(t){(t=e.asBoolean(t,!0))!=this._seamless&&(this._seamless=t,this._rangeSlider&&(this._rangeSlider.seamless=t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minScale",{get:function(){return this._minScale},set:function(t){(t=e.asNumber(t))<=1&&t>=0&&t!=this._minScale&&t<this._maxScale&&(this._minScale=t,this._rangeSlider&&(this._rangeSlider.minScale=e.asNumber(t),this._updateMinAndMaxWithScale(!0)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxScale",{get:function(){return this._maxScale},set:function(t){(t=e.asNumber(t))<=1&&t>=0&&t!=this._maxScale&&t>this._minScale&&(this._maxScale=t,this._rangeSlider&&(this._rangeSlider.maxScale=e.asNumber(t),this._updateMinAndMaxWithScale(!0)))},enumerable:!0,configurable:!0}),t.prototype.remove=function(){this._rangeSelectorEle&&(this._chart.hostElement.removeChild(this._rangeSelectorEle),this._switchEvent(!1),this._rangeSelectorEle=null,this._rangeSlider=null)},t.prototype.onRangeChanged=function(t){this.rangeChanged.raise(this,t)},t.prototype._createRangeSelector=function(){var t=this._chart.hostElement,i=this._orientation===o.X;this._rangeSelectorEle=e.createElement('<div class="wj-chart-rangeselector-container"></div>'),this._rangeSlider=new h(this._rangeSelectorEle,!1,!1,{isHorizontal:i,isVisible:this._isVisible,seamless:this._seamless}),t.appendChild(this._rangeSelectorEle),this._switchEvent(!0)},t.prototype._switchEvent=function(t){var i=t?"addHandler":"removeHandler";this._chart.hostElement&&(this._rangeSlider.rangeChanged[i](this._updateRange,this),this._chart.rendered[i](this._refresh,this))},t.prototype._refresh=function(){var t,i,n,a=this._chart.hostElement,h=e.getElementRect(this._rangeSelectorEle);t=a.querySelector("."+s.FlexChart._CSS_PLOT_AREA),i=e.getElementRect(t),(n=t.getBBox())&&n.width&&n.height&&(this._adjustMinAndMax(),this._rangeSlider._refresh({left:n.x,top:i.top-h.top,width:n.width,height:n.height}))},t.prototype._adjustMinAndMax=function(){var t=this,i=t._chart,s=t._rangeSlider,n=t._min,a=t._max,h=t._orientation===o.X?i.axisX:i.axisY,r=e.isDate(h.actualMin)?h.actualMin.valueOf():h.actualMin,_=e.isDate(h.actualMax)?h.actualMax.valueOf():h.actualMax;t._min=null===n||isNaN(n)||void 0===n||n<r||n>_?r:n,t._max=null===a||isNaN(a)||void 0===a||a<r||a>_?_:a;var l=this._chart._plotRect;if(l){var c=void 0,p=void 0;this._orientation===o.X?(c=(h.convert(t._min)-l.left)/l.width,p=(h.convert(t._max)-l.left)/l.width):(c=(l.top-h.convert(t._min))/l.height+1,p=(l.top-h.convert(t._max))/l.height+1),s._minPos=isNaN(c)?0:c,s._maxPos=isNaN(p)?1:p,this._updateMinAndMaxWithScale(!1)}},t.prototype._updateMinAndMaxWithScale=function(t){var i,e=this._rangeSlider,s=!1;if(0!==this._minScale&&e._minPos+this._minScale>e._maxPos&&((i=e._minPos+this._minScale)>1?(e._maxPos=1,e._minPos=1-this._minScale):e._maxPos=i,s=!0),1!==this._maxScale&&e._minPos+this._maxScale<e._maxPos&&((i=e._minPos+this._maxScale)>1?(e._maxPos=1,e._minPos=1-this._maxScale):e._maxPos=i,s=!0),s){var n=this._getMinAndMax();this._min=n.min,this._max=n.max,t&&this._rangeSelectorEle&&(this._rangeSlider._refresh(),this.onRangeChanged())}},t.prototype._changeRange=function(){this._adjustMinAndMax(),this._rangeSelectorEle&&(this._rangeSlider._refresh(),this.onRangeChanged())},t.prototype._updateRange=function(){var t;this._rangeSlider;t=this._chart,this._orientation===o.X?t.axisX:t.axisY;var i=this._getMinAndMax();this._min=i.min,this._max=i.max,this.onRangeChanged()},t.prototype._getMinAndMax=function(){var t=this._rangeSlider,i=this._chart,e=i._plotRect,s=null,n=null;return e&&(this._orientation===o.X?(s=i.axisX.convertBack(e.left+t._minPos*e.width),n=i.axisX.convertBack(e.left+t._maxPos*e.width)):(s=i.axisY.convertBack(e.top+(1-t._minPos)*e.height),n=i.axisY.convertBack(e.top+(1-t._maxPos)*e.height))),{min:s,max:n}},t}();i.RangeSelector=r;var _;!function(t){t[t.Zoom=0]="Zoom",t[t.Pan=1]="Pan"}(_=i.MouseAction||(i.MouseAction={}));var l;!function(t){t[t.X=0]="X",t[t.Y=1]="Y",t[t.XY=2]="XY"}(l=i.InteractiveAxes||(i.InteractiveAxes={}));var c=function(){function t(t,i){this._chart=null,this._zoomEle=null,this._overlayEle=null,this._wrapperMousedown=null,this._wrapperMouseMove=null,this._wrapperMouseup=null,this._wrapperPointerdown=null,this._wrapperPointerMove=null,this._wrapperPointerup=null,this._wrapperTouchStart=null,this._wrapperTouchMove=null,this._wrapperTouchEnd=null,this._wrapperMouseWheel=null,this._startFirstPt=null,this._minX=null,this._maxX=null,this._minY=null,this._maxY=null,this._threadHold=20,this._clip={},this._selection={},this._startPointers=[],this._mvPointers=[],this._pinchStartEvents=[],this._minXRange=null,this._minYRange=null,this._innerUpdating=!1,this._lastMinX=null,this._lastMaxX=null,this._lastMinY=null,this._lastMaxY=null,this._mouseAction=_.Zoom,this._interactiveAxes=l.X,this._enable=!0,this._scaleX=1,this._scaleY=1,this._posX=0,this._posY=0,t||e.assert(!1,"The FlexChart cannot be null."),this._chart=t,e.copy(this,i),this._initialize()}return Object.defineProperty(t.prototype,"mouseAction",{get:function(){return this._mouseAction},set:function(t){this._mouseAction=e.asEnum(t,_)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"interactiveAxes",{get:function(){return this._interactiveAxes},set:function(t){t!==this._interactiveAxes&&(this._interactiveAxes=e.asEnum(t,l))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enable",{get:function(){return this._enable},set:function(t){t!==this._enable&&(this._enable=e.asBoolean(t,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scaleX",{get:function(){return this._scaleX},set:function(t){t!==this._scaleX&&(this._scaleX=t<0?0:t>1?1:e.asNumber(t),this._seriesGroup&&this._initAxisRangeWithPosAndScale(!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scaleY",{get:function(){return this._scaleY},set:function(t){t!==this._scaleY&&(this._scaleY=t<0?0:t>1?1:e.asNumber(t),this._seriesGroup&&this._initAxisRangeWithPosAndScale(!1))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"posX",{get:function(){return this._posX},set:function(t){t!==this._posX&&(this._posX=t<0?0:t>1?1:e.asNumber(t),this._seriesGroup&&this._initAxisRangeWithPosAndScale(!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"posY",{get:function(){return this._posY},set:function(t){t!==this._posY&&(this._posY=t<0?0:t>1?1:e.asNumber(t),this._seriesGroup&&this._initAxisRangeWithPosAndScale(!1))},enumerable:!0,configurable:!0}),t.prototype.remove=function(){this._zoomEle&&(this._chart.hostElement.removeChild(this._zoomEle),this._zoomEle=null),e.removeClass(this._chart.hostElement,t._CSS_TOUCH_DISABLED),this._switchEvent(!1),this._wrapperMousedown=null,this._wrapperMouseMove=null,this._wrapperMouseup=null,this._wrapperPointerdown=null,this._wrapperPointerMove=null,this._wrapperPointerup=null,this._wrapperTouchStart=null,this._wrapperTouchMove=null,this._wrapperTouchEnd=null,this._wrapperMouseWheel=null},t.prototype.reset=function(){var t=this._chart,i=t.axisX,e=t.axisY;this._maxX&&(i.max=this._maxX),this._minX&&(i.min=this._minX),this._maxY&&(e.max=this._maxY),this._minY&&(e.min=this._minY),this._initAxisRangeWithPosAndScale(!0),this._initAxisRangeWithPosAndScale(!1)},t.prototype._refreshChart=function(){var t=this._chart,i=t.axisX,e=t.axisY;this._minX=this._getAxisMin(i),this._maxX=this._getAxisMax(i),this._minY=this._getAxisMin(e),this._maxY=this._getAxisMax(e),this._minXRange=.005*(this._maxX-this._minX),this._minYRange=.005*(this._maxY-this._minY),this._initAxisRangeWithPosAndScale(!0),this._initAxisRangeWithPosAndScale(!1)},t.prototype._initialize=function(){var i=this._chart.hostElement;this._zoomEle=e.createElement('<div class="'+t._CSS_ZOOM+'"><div class="'+t._CSS_ZOOM_OVERLAY+'"></div>'),this._zoomEle.style.visibility="visible",i.appendChild(this._zoomEle),e.addClass(i,t._CSS_TOUCH_DISABLED),this._overlayEle=this._zoomEle.querySelector("."+t._CSS_ZOOM_OVERLAY),this._wrapperMousedown=this._onMousedown.bind(this),this._wrapperMouseMove=this._onMouseMove.bind(this),this._wrapperMouseup=this._onMouseup.bind(this),this._wrapperPointerdown=this._onPointerdown.bind(this),this._wrapperPointerMove=this._onPointerMove.bind(this),this._wrapperPointerup=this._onPointerup.bind(this),this._wrapperMouseWheel=this._onMouseWheel.bind(this),this._wrapperTouchStart=this._onTouchStart.bind(this),this._wrapperTouchMove=this._onTouchMove.bind(this),this._wrapperTouchEnd=this._onTouchEnd.bind(this),this._switchEvent(!0)},t.prototype._switchEvent=function(t){var i=this._chart.hostElement,e=t?"addEventListener":"removeEventListener",s=t?"addHandler":"removeHandler";i&&(i[e]("mousedown",this._wrapperMousedown),i[e]("mousemove",this._wrapperMouseMove),document[e]("mouseup",this._wrapperMouseup),"onpointerdown"in window&&(i[e]("pointerdown",this._wrapperPointerdown),i[e]("pointermove",this._wrapperPointerMove),document[e]("pointerup",this._wrapperPointerup)),i[e]("wheel",this._wrapperMouseWheel),"ontouchstart"in window&&(i[e]("touchstart",this._wrapperTouchStart),i[e]("touchmove",this._wrapperTouchMove),document[e]("touchend",this._wrapperTouchEnd)),this._chart.rendered[s](this._refresh,this))},t.prototype._refresh=function(){var t,i,n,a=this._chart,h=a.axisX,o=a.axisY,r=a.hostElement;this._seriesGroup=r.querySelector(".wj-series-group"),t=r.querySelector("."+s.FlexChart._CSS_PLOT_AREA),this._plotOffset=e.getElementRect(t),this._plotBox=t.getBBox(),this._zoomEleOffset=e.getElementRect(this._zoomEle),this._overlayEle&&this._overlayEle.removeAttribute("style"),this._innerUpdating?this._innerUpdating=!1:(i=!1,n=!1,(null===this._minX||isNaN(this._minX)||0===this._minX||-1===this._minX||this._lastMinX!==this._getAxisMin(h))&&(this._minX=this._getAxisMin(h),null===this._minX||isNaN(this._minX)||0===this._minX||-1===this._minX||(i=!0)),(null===this._maxX||isNaN(this._maxX)||0===this._maxX||-1===this._maxX||this._lastMaxX!==this._getAxisMax(h))&&(this._maxX=this._getAxisMax(h),null===this._maxX||isNaN(this._maxX)||0===this._maxX||-1===this._maxX||(i=!0)),(null===this._minY||isNaN(this._minY)||this._lastMinY!==this._getAxisMin(o))&&(this._minY=this._getAxisMin(o),isNaN(this._minY)||(n=!0)),(null===this._maxY||isNaN(this._maxY)||this._lastMaxY!==this._getAxisMax(o))&&(this._maxY=this._getAxisMax(o),isNaN(this._maxY)||(n=!0)),this._minXRange=.005*(this._maxX-this._minX),this._minYRange=.005*(this._maxY-this._minY),i&&null!==this._scaleX&&void 0!==this._scaleX&&1!==this._scaleX&&null!==this._posX&&void 0!==this._posX&&0!==this._posX&&this._initAxisRangeWithPosAndScale(!0),n&&null!==this._scaleY&&void 0!==this._scaleY&&1!==this._scaleY&&null!==this._posY&&void 0!==this._posY&&0!==this._posY&&this._initAxisRangeWithPosAndScale(!1))},t.prototype._onMousedown=function(t){this._enable&&(this._disabledOthersInteraction(!0),this._mouseDown(t),t.preventDefault())},t.prototype._onMouseMove=function(t){this._enable&&(this._mouseMove(t),t.preventDefault())},t.prototype._onMouseup=function(t){this._enable&&(this._mouseup(t),this._disabledOthersInteraction(!1))},t.prototype._onMouseWheel=function(t){var i=-t.deltaY>0?.05:-.05;this._enable&&(this._scaling=!0,this._interactiveAxes!==l.X&&this._interactiveAxes!==l.XY||this._updateAxisByChg(!0,i,-i),this._interactiveAxes!==l.Y&&this._interactiveAxes!==l.XY||this._updateAxisByChg(!1,i,-i),this._scaling=!1,t.preventDefault())},t.prototype._mouseDown=function(i){this._startFirstPt=this._getPoint(i),this._updatePoint(this._startFirstPt),this._mouseAction===_.Zoom?this._initOverlay():(this._seriesGroup.setAttribute("clip-path","url(#"+this._chart._plotrectId+")"),e.toggleClass(this._chart.hostElement,t._CSS_PANABLE,this._mouseAction===_.Pan))},t.prototype._mouseMove=function(t){var i;this._startFirstPt&&(i=this._getPoint(t),this._updatePoint(i),this._endPoint=new e.Point(i.x,i.y),this._mouseAction===_.Zoom?this._updateOverLay(i):(this._panning=!0,this._panningChart(i.x-this._startFirstPt.x,i.y-this._startFirstPt.y)))},t.prototype._mouseup=function(i){var s=this._endPoint;this._chart.axisX;if(!this._startFirstPt||!s)return e.removeClass(this._chart.hostElement,t._CSS_PANABLE),void this._reset();this._mouseAction===_.Zoom?(this._zoomedChart(s),this._reset()):(this._pannedChart(s.x-this._startFirstPt.x,s.y-this._startFirstPt.y),this._reset()),e.removeClass(this._chart.hostElement,t._CSS_PANABLE)},t.prototype._onPointerdown=function(t){if(this._enable){switch(this._disabledOthersInteraction(!0),t.pointerType){case"touch":this._pointerDown(t);break;case"mouse":this._mouseDown(t)}t.preventDefault()}},t.prototype._onPointerMove=function(t){if(this._enable){switch(t.pointerType){case"touch":this._pointerMove(t);break;case"mouse":this._mouseMove(t)}t.preventDefault()}},t.prototype._onPointerup=function(t){if(this._enable){switch(t.pointerType){case"touch":this._pointerUp(t);break;case"mouse":this._mouseup(t)}this._disabledOthersInteraction(!1),t.preventDefault()}},t.prototype._pointerDown=function(t){t.preventManipulation&&t.preventManipulation(),this._seriesGroup.setAttribute("clip-path","url(#"+this._chart._plotrectId+")"),this._startPointers.push({id:t.pointerId,x:t.pageX,y:t.pageY}),1===this._startPointers.length?(this._scaling=!1,this._panning=!0):2===this._startPointers.length&&(this._panning=!1,this._scaling=!0,this._startDistance={x:this._startPointers[0].x-this._startPointers[1].x,y:this._startPointers[0].y-this._startPointers[1].y})},t.prototype._pointerMove=function(t){var i,s,n,a,h=new e.Point(t.pageX,t.pageY),o={},r={};if(t.preventManipulation&&t.preventManipulation(),this._panning){if(!this._pointInPlotArea(h))return;this._endPoint=new e.Point(t.pageX,t.pageY),this._panningChart(this._endPoint.x-this._startPointers[0].x,this._endPoint.y-this._startPointers[0].y)}else this._scaling&&(i=this._startPointers[0].id+"",s=this._startPointers[1].id+"",this._mvPointers[t.pointerId+""]={x:t.pageX,y:t.pageY},this._mvPointers[i]&&this._mvPointers[s]&&(Math.abs(this._startDistance.x)>this._threadHold&&this._interactiveAxes!==l.Y&&(n=this._mvPointers[i].x-this._plotOffset.left,a=this._startPointers[0].x-this._plotOffset.left,r.x=Math.abs((this._mvPointers[i].x-this._mvPointers[s].x)/this._startDistance.x),o.x=n-r.x*a,this._clip.x=(this._plotBox.x-n)/r.x+a,this._selection.w=this._plotBox.width/r.x),Math.abs(this._startDistance.y)>this._threadHold&&this._interactiveAxes!==l.X&&(n=this._mvPointers[i].y-this._plotOffset.top,a=this._startPointers[0].y-this._plotOffset.top,r.y=Math.abs((this._mvPointers[i].y-this._mvPointers[s].y)/this._startDistance.y),o.y=n-r.y*a,this._clip.y=(this._plotBox.y-n)/r.y+a,this._selection.h=this._plotBox.height/r.y),this._scalingChart(r,o)))},t.prototype._pointerUp=function(t){t.preventManipulation&&t.preventManipulation(),this._panning?(this._endPoint&&this._pannedChart(this._endPoint.x-this._startPointers[0].x,this._endPoint.y-this._startPointers[0].y),this._reset()):this._scaling&&(this._scaledChart(t),this._reset())},t.prototype._onTouchStart=function(t){if(this._enable)return this._disabledOthersInteraction(!0),1==t.touches.length?(this._scaling=!1,this._panning=!0,this._startFirstPt=this._getPoint(t)):2==t.touches.length&&(this._pinchStartEvents=this._getTouchPair(t),this._startDistance=this._touchDistance(t),this._panning=!1,this._scaling=!0),this._seriesGroup&&this._seriesGroup.setAttribute("clip-path","url(#"+this._chart._plotrectId+")"),this._chart._hideToolTip(),!0},t.prototype._onTouchMove=function(t){if(this._enable){var i,s,n,a,h,o={},r={},_=t.touches[0],c=new e.Point(_.pageX,_.pageY);if(t.preventDefault(),this._panning){if(this._startFirstPt){if(!this._pointInPlotArea(c))return;this._endPoint=new e.Point(_.pageX,_.pageY),this._panningChart(this._endPoint.x-this._startFirstPt.x,this._endPoint.y-this._startFirstPt.y)}}else this._scaling&&(n=this._touchDistance(t),a=this._getTouchPair(t)[0],h=this._pinchStartEvents[0],Math.abs(this._startDistance.x)>this._threadHold&&this._interactiveAxes!==l.Y&&(i=a.pageX-this._plotOffset.left,s=h.pageX-this._plotOffset.left,o.x=Math.abs(n.x/this._startDistance.x),r.x=i-o.x*s,this._clip.x=(this._plotBox.x-i)/o.x+s,this._selection.w=this._plotBox.width/o.x),Math.abs(this._startDistance.y)>this._threadHold&&this._interactiveAxes!==l.X&&(i=a.pageY-this._plotOffset.top,s=h.pageY-this._plotOffset.top,o.y=Math.abs(n.y/this._startDistance.y),r.y=i-o.y*s,this._clip.y=(this._plotBox.y-i)/o.y+s,this._selection.h=this._plotBox.height/o.y),this._scalingChart(o,r));return!0}},t.prototype._onTouchEnd=function(t){if(this._enable){var i=this._endPoint;if(this._panning){if(!this._startFirstPt||!i)return void this._reset();this._pannedChart(i.x-this._startFirstPt.x,i.y-this._startFirstPt.y)}else this._scaling&&this._scaledChart(t);return this._reset(),this._disabledOthersInteraction(!1),!0}},t.prototype._initOverlay=function(){switch(this._zoomEle.style.visibility="visible",this._interactiveAxes){case l.X:this._overlayEle.style.left=this._startFirstPt.x-this._zoomEleOffset.left+"px",this._overlayEle.style.top=this._plotOffset.top-this._zoomEleOffset.top+"px";break;case l.Y:this._overlayEle.style.left=this._plotBox.x+"px",this._overlayEle.style.top=this._startFirstPt.y-this._zoomEleOffset.top+"px";break;case l.XY:this._overlayEle.style.left=this._startFirstPt.x-this._zoomEleOffset.left+"px",this._overlayEle.style.top=this._startFirstPt.y-this._zoomEleOffset.top+"px"}},t.prototype._updateOverLay=function(t){var i=this._startFirstPt.x-t.x,s=this._startFirstPt.y-t.y,n={};switch(this._interactiveAxes){case l.X:if(Math.abs(i)<this._threadHold)return;n=i<=0?{width:Math.abs(i)+"px",height:this._plotBox.height+"px"}:{left:t.x-this._zoomEleOffset.left+"px",width:i+"px",height:this._plotBox.height+"px"};break;case l.Y:if(Math.abs(s)<this._threadHold)return;n=s<=0?{height:Math.abs(s)+"px",width:this._plotBox.width+"px"}:{top:t.y-this._zoomEleOffset.top+"px",height:s+"px",width:this._plotBox.width+"px"};break;case l.XY:Math.abs(i)>=this._threadHold&&(n.width=Math.abs(i)+"px",i>0&&(n.left=t.x-this._zoomEleOffset.left+"px")),Math.abs(s)>=this._threadHold&&(n.height=Math.abs(s)+"px",s>0&&(n.top=t.y-this._zoomEleOffset.top+"px"))}e.setCss(this._overlayEle,n)},t.prototype._updatePoint=function(t){var i=this._plotOffset;t.x<i.left&&(t.x=i.left),t.x>i.left+i.width&&(t.x=i.left+i.width),t.y<i.top&&(t.y=i.top),t.y>i.top+i.height&&(t.y=i.top+i.height)},t.prototype._pointInPlotArea=function(t){var i=this._plotOffset;return t.x>=i.left&&t.x<=i.left+i.width&&t.y>=i.top&&t.y<=i.top+i.height},t.prototype._zoomedChart=function(t){t&&(this._interactiveAxes!==l.X&&this._interactiveAxes!==l.XY||this._zoomedAxis(t,!0),this._interactiveAxes!==l.Y&&this._interactiveAxes!==l.XY||this._zoomedAxis(t,!1),this._startFirstPt=null)},t.prototype._zoomedAxis=function(t,i){var e,s,n=i?this._chart.axisX:this._chart.axisY,a=i?"x":"y",h=i?"left":"top";t&&Math.abs(this._startFirstPt[a]-t[a])>this._threadHold&&(e=n.convertBack(this._startFirstPt[a]-this._plotOffset[h]+this._plotBox[a]),(s=n.convertBack(t[a]-this._plotOffset[h]+this._plotBox[a]))-e!=0&&this._updateAxisRange(n,Math.min(e,s),Math.max(e,s)))},t.prototype._panningChart=function(t,i){var e=this._chart.axisX,s=this._chart.axisY,n=this._getTransFormGroups();t=Math.abs(t)<this._threadHold?0:t,i=Math.abs(i)<this._threadHold?0:i,this._interactiveAxes===l.X&&(i=0),this._interactiveAxes===l.Y&&(t=0),t>0&&e.actualMin.valueOf()===this._minX&&(t=0),t<0&&e.actualMax.valueOf()===this._maxX&&(t=0),i>0&&s.actualMax.valueOf()===this._maxY&&(i=0),i<0&&s.actualMin.valueOf()===this._minY&&(i=0);for(var a=0;a<n.length;a++)n[a].setAttribute("transform","translate("+t+","+i+")")},t.prototype._pannedChart=function(t,i){this._interactiveAxes!==l.X&&this._interactiveAxes!==l.XY||this._updateAxisByDistance(!0,t),this._interactiveAxes!==l.Y&&this._interactiveAxes!==l.XY||this._updateAxisByDistance(!1,-i)},t.prototype._scalingChart=function(t,i){var e,s,n,a=this._chart.axisX,h=this._chart.axisY,o=void 0!==i.x?i.x:0,r=void 0!==i.y?i.y:0;if(t){e=this._getTransFormGroups(),void 0!==t.x&&t.x<1&&a.actualMin.valueOf()===this._minX&&a.actualMax.valueOf()===this._maxX&&(t.x=1,o=0),void 0!==t.y&&t.y<1&&h.actualMin.valueOf()===this._minY&&h.actualMax.valueOf()===this._maxY&&(t.y=1,r=0),s=void 0!==t.x?t.x:1,n=void 0!==t.y?t.y:1;for(var _=0;_<e.length;_++)e[_].setAttribute("transform","translate("+o+", "+r+") scale("+s+", "+n+")")}},t.prototype._scaledChart=function(t){var i,e,s=this._chart,n=s.axisX,a=s.axisY;this._clip&&(this._interactiveAxes!==l.Y&&void 0!==this._clip.x&&(i=Math.max(this._minX,n.convertBack(this._clip.x)))-(e=Math.min(this._maxX,n.convertBack(this._clip.x+this._selection.w)))!=0&&this._updateAxisRange(n,i,e),this._interactiveAxes!==l.X&&void 0!==this._clip.y&&(e=Math.min(this._maxY,a.convertBack(this._clip.y)),(i=Math.max(this._minY,a.convertBack(this._clip.y+this._selection.h)))-e!=0&&this._updateAxisRange(a,i,e)))},t.prototype._updateAxisByDistance=function(t,i){var e,s=t?this._chart.axisX:this._chart.axisY,n=t?this._minX:this._minY,a=t?this._maxX:this._maxY,h=s.actualMin.valueOf(),o=s.actualMax.valueOf();if(0!==i){if(i>0&&n===h||i<0&&a===o)return this._innerUpdating=!0,void this._chart.invalidate();e=i/(t?this._plotBox.width:this._plotBox.height),this._updateAxisByChg(t,-e,-e)}},t.prototype._updateAxisByChg=function(t,i,e){var s,n,a=t?this._chart.axisX:this._chart.axisY,h=t?this._minX:this._minY,o=t?this._maxX:this._maxY,r=a.actualMin.valueOf(),_=(a.actualMax.valueOf(),this._chart._plotRect),l=t?_.left:_.top,c=t?_.width:_.height,p=t?this._minXRange:this._minYRange;isNaN(i)||isNaN(e)||(this._panning?i<0?(s=t?a.convertBack(l+i*c):a.convertBack(l+c-i*c))<h?(s=h,n=t?a.convertBack(a.convert(s)+c):a.convertBack(a.convert(s)-c)):n=t?a.convertBack(l+c+e*c):a.convertBack(l-e*c):(n=t?a.convertBack(l+c+e*c):a.convertBack(l-e*c))>o?(n=o,s=t?a.convertBack(a.convert(n)-c):a.convertBack(a.convert(n)+c)):s=t?a.convertBack(l+i*c):a.convertBack(l+c-i*c):this._scaling&&(s=t?a.convertBack(l+i*c):a.convertBack(l+c-i*c),n=t?a.convertBack(l+c+e*c):a.convertBack(l-e*c),s<h&&(s=h),n>o&&(n=o),n-s<p&&(s=n-p)),this._updateAxisRange(a,s,n))},t.prototype._initAxisRangeWithPosAndScale=function(t){var i,e,s,n;t?(e=(i=this._maxX-this._minX)*this._scaleX,n=(s=this._minX+this._posX*(i-e))+e,this._innerUpdating=!0,this._chart.axisX.min=s,this._chart.axisX.max=n,this._lastMinX=s,this._lastMaxX=n):(e=(i=this._maxY-this._minY)*this._scaleY,n=(s=this._minY+this._posY*(i-e))+e,this._innerUpdating=!0,this._chart.axisY.min=s,this._chart.axisY.max=n,this._lastMinY=s,this._lastMaxY=n)},t.prototype._updateAxisRange=function(t,i,e){this._chart.beginUpdate(),t.min=i,t.max=e,t===this._chart.axisX?(this._lastMinX=i,this._lastMaxX=e):(this._lastMinY=i,this._lastMaxY=e),this._innerUpdating=!0,this._chart.endUpdate()},t.prototype._reset=function(){this._scaling=!1,this._panning=!1,this._startDistance=0,this._startFirstPt=null,this._pinchStartEvents=[],this._startPointers=[],this._mvPointers=[],this._endPoint=null,this._clip={},this._selection={}},t.prototype._getAxisMin=function(t){return e.isDate(t.actualMin)?t.actualMin.valueOf():t.actualMin},t.prototype._getAxisMax=function(t){return e.isDate(t.actualMax)?t.actualMax.valueOf():t.actualMax},t.prototype._getTransFormGroups=function(){var t=this._seriesGroup.querySelectorAll("g[clip-path]");return 0===t.length&&(t=this._seriesGroup.querySelectorAll("g")),t},t.prototype._disabledOthersInteraction=function(i){var s=this._chart.hostElement;if(null!==s&&void 0!==s)for(var n=s.querySelectorAll(".wj-chart-linemarker-container"),a=0;a<n.length;a++)i?e.addClass(n[a],t._CSS_BLOCK_INTERACTION):e.removeClass(n[a],t._CSS_BLOCK_INTERACTION)},t.prototype._getPoint=function(t){return t instanceof MouseEvent?new e.Point(t.pageX,t.pageY):new e.Point(t.changedTouches[0].pageX,t.changedTouches[0].pageY)},t.prototype._getTouchPair=function(t){var i=[];return e.isArray(t)?(i[0]=t[0],i[1]=t[1]):"touchend"===t.type?1===t.touches.length?(i[0]=t.touches[0],i[1]=t.changedTouches[0]):0===t.touches.length&&(i[0]=t.changedTouches[0],i[1]=t.changedTouches[1]):(i[0]=t.touches[0],i[1]=t.touches[1]),i},t.prototype._touchDistance=function(t){var i=this._getTouchPair(t),e=0,s=0;return i[0]&&void 0!==i[0].pageX&&i[1]&&void 0!==i[1].pageX&&(e=i[0].pageX-i[1].pageX),i[0]&&void 0!==i[0].pageY&&i[1]&&void 0!==i[1].pageY&&(s=i[0].pageY-i[1].pageY),{x:e,y:s}},t._CSS_ZOOM="wj-zoom",t._CSS_ZOOM_OVERLAY="wj-zoom-overlay",t._CSS_PANABLE="wj-panable",t._CSS_TOUCH_DISABLED="wj-flexchart-touch-disabled",t._CSS_BLOCK_INTERACTION="wj-block-other-interaction",t}();i.ChartGestures=c});