@progress/kendo-react-charts 5.1.0 → 5.1.1-dev.202203150940
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@progress/kendo-drawing"),require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom"),require("@progress/kendo-react-intl")):"function"==typeof define&&define.amd?define(["@progress/kendo-drawing","react","prop-types","@progress/kendo-licensing","react-dom","@progress/kendo-react-intl"],e):"object"==typeof exports?exports.KendoReactCharts=e(require("@progress/kendo-drawing"),require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom"),require("@progress/kendo-react-intl")):t.KendoReactCharts=e(t.KendoDrawing,t.React,t.PropTypes,t.KendoLicensing,t.ReactDOM,t.KendoReactIntl)}(window,(function(t,e,r,o,i,n){return function(t){var e={};function r(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(o,i,function(e){return t[e]}.bind(null,i));return o},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=51)}([function(e,r){e.exports=t},function(t,r){t.exports=e},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),l=r(39),p=r(40),c=r(9),h=function(t){function e(e,r){var o=t.call(this,e,r)||this;return o.optionsStore=r.optionsStore,o.childStore=l.default(p.optionsReducer),o}return i(e,t),e.prototype.render=function(){var t=this,e=this.props.children;return void 0!==e?a.Children.map(e,(function(e){return a.isValidElement(e)?t.renderChildren(e):e})):null},e.prototype.componentDidMount=function(){this.dispatch()},e.prototype.componentDidUpdate=function(){this.dispatch()},e.prototype.dispatch=function(){var t=this.props,e=t._chartKey,r=t._chartCollectionIdxKey,o=t._parentStore,i=(t.children,s(t,["_chartKey","_chartCollectionIdxKey","_parentStore","children"]));(o||this.optionsStore).dispatch({chartKey:e,chartCollectionIdxKey:r,payload:Object.assign({},i,this.childStore.getState())})},e.prototype.renderChildren=function(t){var e=t.props.children,r=n({},t.props,{_parentStore:this.childStore});return a.cloneElement(t,r,e)},e.contextType=c.ChartContext,e}(a.Component);e.default=h},function(t,e){t.exports=r},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){this.target=t};e.BaseEvent=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasParent=function(t,e){for(var r=t;r&&r!==e;)r=r.parentNode;return!!r},e.validateChildren=function(t,e,r,o){var i=t[e];if(i&&Array.isArray(i))for(var n=0,s=i;n<s.length;n++){var a=s[n];if(!a.type||a.type!==o)return new Error(r+" children should be Array of type "+o.displayName+".")}return null};e.toggle=function(t){return void 0!==t&&!t}},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.prevented=!1,e}return i(e,t),e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}(r(4).BaseEvent);e.PreventableEvent=n},function(t,e,r){"use strict";r.r(e),r.d(e,"autoMajorUnit",(function(){return zt})),r.d(e,"Point",(function(){return Vt})),r.d(e,"Box",(function(){return Ht})),r.d(e,"Ring",(function(){return Ft})),r.d(e,"Sector",(function(){return Gt})),r.d(e,"ShapeBuilder",(function(){return Kt})),r.d(e,"ShapeElement",(function(){return $t})),r.d(e,"ChartElement",(function(){return Yt})),r.d(e,"BoxElement",(function(){return Zt})),r.d(e,"RootElement",(function(){return re})),r.d(e,"FloatElement",(function(){return ie})),r.d(e,"Text",(function(){return ae})),r.d(e,"TextBox",(function(){return ce})),r.d(e,"Title",(function(){return ue})),r.d(e,"AxisLabel",(function(){return de})),r.d(e,"Axis",(function(){return Ie})),r.d(e,"Note",(function(){return ye})),r.d(e,"CategoryAxis",(function(){return rr})),r.d(e,"DateCategoryAxis",(function(){return hr})),r.d(e,"DateValueAxis",(function(){return br})),r.d(e,"NumericAxis",(function(){return mr})),r.d(e,"LogarithmicAxis",(function(){return Or})),r.d(e,"PolarAxis",(function(){return Mr})),r.d(e,"RadarCategoryAxis",(function(){return Pr})),r.d(e,"RadarNumericAxis",(function(){return Rr})),r.d(e,"RadarLogarithmicAxis",(function(){return Br})),r.d(e,"CurveProcessor",(function(){return Dr})),r.d(e,"Gradients",(function(){return Jt})),r.d(e,"rectToBox",(function(){return le})),r.d(e,"ChartAxis",(function(){return zr})),r.d(e,"ChartPane",(function(){return Hr})),r.d(e,"ChartPlotArea",(function(){return Ur})),r.d(e,"findAxisByName",(function(){return Vr})),r.d(e,"Aggregates",(function(){return Wr})),r.d(e,"AreaChart",(function(){return zo})),r.d(e,"AreaSegment",(function(){return Io})),r.d(e,"AxisGroupRangeTracker",(function(){return Vo})),r.d(e,"Bar",(function(){return Go})),r.d(e,"BarChart",(function(){return $o})),r.d(e,"BarLabel",(function(){return Ho})),r.d(e,"BoxPlotChart",(function(){return ai})),r.d(e,"BoxPlot",(function(){return ni})),r.d(e,"BubbleChart",(function(){return vi})),r.d(e,"Bullet",(function(){return _i})),r.d(e,"BulletChart",(function(){return xi})),r.d(e,"CandlestickChart",(function(){return oi})),r.d(e,"Candlestick",(function(){return ti})),r.d(e,"CategoricalChart",(function(){return vo})),r.d(e,"CategoricalErrorBar",(function(){return co})),r.d(e,"CategoricalPlotArea",(function(){return Sn})),r.d(e,"Chart",(function(){return va})),r.d(e,"ChartContainer",(function(){return Mi})),r.d(e,"ClipAnimation",(function(){return Mo})),r.d(e,"ClusterLayout",(function(){return Yo})),r.d(e,"Crosshair",(function(){return Pi})),r.d(e,"CrosshairTooltip",(function(){return ki})),r.d(e,"DefaultAggregates",(function(){return en})),r.d(e,"DonutChart",(function(){return ms})),r.d(e,"DonutPlotArea",(function(){return _s})),r.d(e,"DonutSegment",(function(){return ys})),r.d(e,"ErrorBarBase",(function(){return po})),r.d(e,"ErrorRangeCalculator",(function(){return Qr})),r.d(e,"Highlight",(function(){return An})),r.d(e,"SharedTooltip",(function(){return Yn})),r.d(e,"Legend",(function(){return Vn})),r.d(e,"LegendItem",(function(){return Dn})),r.d(e,"LegendLayout",(function(){return Ln})),r.d(e,"LineChart",(function(){return Ro})),r.d(e,"LinePoint",(function(){return _o})),r.d(e,"LineSegment",(function(){return xo})),r.d(e,"Pane",(function(){return ji})),r.d(e,"PieAnimation",(function(){return Jn})),r.d(e,"PieChart",(function(){return fs})),r.d(e,"PieChartMixin",(function(){return cs})),r.d(e,"PiePlotArea",(function(){return ds})),r.d(e,"PieSegment",(function(){return ps})),r.d(e,"PlotAreaBase",(function(){return Zi})),r.d(e,"PlotAreaEventsMixin",(function(){return Qi})),r.d(e,"PlotAreaFactory",(function(){return Hn})),r.d(e,"PointEventsMixin",(function(){return yo})),r.d(e,"RangeBar",(function(){return on})),r.d(e,"RangeBarChart",(function(){return sn})),r.d(e,"RangeAreaPoint",(function(){return pn})),r.d(e,"RangeAreaChart",(function(){return vn})),r.d(e,"ScatterChart",(function(){return hi})),r.d(e,"ScatterErrorBar",(function(){return li})),r.d(e,"ScatterLineChart",(function(){return es})),r.d(e,"Selection",(function(){return Wn})),r.d(e,"SeriesAggregator",(function(){return Ji})),r.d(e,"SeriesBinder",(function(){return Yr})),r.d(e,"SplineSegment",(function(){return So})),r.d(e,"SplineAreaSegment",(function(){return Do})),r.d(e,"StackWrap",(function(){return Zo})),r.d(e,"Tooltip",(function(){return Kn})),r.d(e,"OHLCChart",(function(){return gn})),r.d(e,"OHLCPoint",(function(){return yn})),r.d(e,"WaterfallChart",(function(){return bn})),r.d(e,"WaterfallSegment",(function(){return _n})),r.d(e,"XYPlotArea",(function(){return is})),r.d(e,"MousewheelZoom",(function(){return Bn})),r.d(e,"ZoomSelection",(function(){return In})),r.d(e,"Pannable",(function(){return jn})),r.d(e,"anyHasZIndex",(function(){return To})),r.d(e,"appendIfNotNull",(function(){return Ri})),r.d(e,"areNumbers",(function(){return ei})),r.d(e,"bindSegments",(function(){return Bi})),r.d(e,"categoriesCount",(function(){return uo})),r.d(e,"countNumbers",(function(){return Fr})),r.d(e,"equalsIgnoreCase",(function(){return Li})),r.d(e,"evalOptions",(function(){return ho})),r.d(e,"filterSeriesByType",(function(){return Di})),r.d(e,"getDateField",(function(){return zi})),r.d(e,"getField",(function(){return Kr})),r.d(e,"hasGradientOverlay",(function(){return Uo})),r.d(e,"hasValue",(function(){return pi})),r.d(e,"isDateAxis",(function(){return Vi})),r.d(e,"segmentVisible",(function(){return Ii})),r.d(e,"singleItemOrArray",(function(){return Ni})),r.d(e,"createOutOfRangePoints",(function(){return Gi})),r.d(e,"ChartService",(function(){return Ae})),r.d(e,"DomEventsBuilder",(function(){return Te})),r.d(e,"FormatService",(function(){return Oe})),r.d(e,"IntlService",(function(){return be})),r.d(e,"TemplateService",(function(){return H})),r.d(e,"Sparkline",(function(){return wa})),r.d(e,"Navigator",(function(){return Ta})),r.d(e,"NavigatorHint",(function(){return Sa})),r.d(e,"StockChart",(function(){return ja})),r.d(e,"constants",(function(){return o})),r.d(e,"Gauge",(function(){return Ga})),r.d(e,"LinearGauge",(function(){return dl})),r.d(e,"LinearPointer",(function(){return el})),r.d(e,"ArrowLinearPointer",(function(){return sl})),r.d(e,"BarLinearPointer",(function(){return hl})),r.d(e,"LinearScale",(function(){return Qa})),r.d(e,"RadialGauge",(function(){return El})),r.d(e,"RadialPointer",(function(){return Al})),r.d(e,"RadialScale",(function(){return xl})),r.d(e,"ArcGauge",(function(){return zl})),r.d(e,"RangePointer",(function(){return Dl})),r.d(e,"ArcScale",(function(){return Rl})),r.d(e,"CircularGauge",(function(){return Vl})),r.d(e,"Barcode",(function(){return Pp})),r.d(e,"barcodeValidator",(function(){return Mp})),r.d(e,"QRCode",(function(){return Ec})),r.d(e,"qrcodeValidator",(function(){return jc})),r.d(e,"Map",(function(){return Gu})),r.d(e,"addClass",(function(){return x})),r.d(e,"removeClass",(function(){return C})),r.d(e,"alignPathToPixel",(function(){return k})),r.d(e,"clockwise",(function(){return S})),r.d(e,"convertableToNumber",(function(){return M})),r.d(e,"deepExtend",(function(){return j})),r.d(e,"elementStyles",(function(){return D})),r.d(e,"getSpacing",(function(){return z})),r.d(e,"getTemplate",(function(){return U})),r.d(e,"getter",(function(){return W})),r.d(e,"grep",(function(){return K})),r.d(e,"hasClasses",(function(){return X})),r.d(e,"HashMap",(function(){return q})),r.d(e,"inArray",(function(){return Z})),r.d(e,"interpolateValue",(function(){return Q})),r.d(e,"InstanceObserver",(function(){return J})),r.d(e,"isArray",(function(){return b})),r.d(e,"isFunction",(function(){return T})),r.d(e,"isNumber",(function(){return P})),r.d(e,"isObject",(function(){return R})),r.d(e,"isString",(function(){return A})),r.d(e,"map",(function(){return tt})),r.d(e,"mousewheelDelta",(function(){return rt})),r.d(e,"FontLoader",(function(){return xt})),r.d(e,"setDefaultOptions",(function(){return wt})),r.d(e,"sparseArrayLimits",(function(){return Ct})),r.d(e,"styleValue",(function(){return I})),r.d(e,"find",(function(){return Ot})),r.d(e,"elementScale",(function(){return At})),r.d(e,"autoTextColor",(function(){return Mt})),r.d(e,"createHashSet",(function(){return Bt})),r.d(e,"defaultErrorHandler",(function(){return Lt})),r.d(e,"keys",(function(){return Dt})),r.d(e,"append",(function(){return it})),r.d(e,"bindEvents",(function(){return nt})),r.d(e,"Class",(function(){return O.Class})),r.d(e,"defined",(function(){return st})),r.d(e,"deg",(function(){return at})),r.d(e,"elementOffset",(function(){return lt})),r.d(e,"elementSize",(function(){return pt})),r.d(e,"eventCoordinates",(function(){return ct})),r.d(e,"eventElement",(function(){return ht})),r.d(e,"hashKey",(function(){return ut})),r.d(e,"last",(function(){return ft})),r.d(e,"limitValue",(function(){return dt})),r.d(e,"logToConsole",(function(){return O.logToConsole})),r.d(e,"objectKey",(function(){return vt})),r.d(e,"rad",(function(){return yt})),r.d(e,"round",(function(){return gt})),r.d(e,"unbindEvents",(function(){return mt})),r.d(e,"valueOrDefault",(function(){return _t})),r.d(e,"chartBaseTheme",(function(){return Zu}));var o={};r.r(o),r.d(o,"NAVIGATOR_AXIS",(function(){return Aa})),r.d(o,"NAVIGATOR_PANE",(function(){return Pa}));var i="arc",n="#000",s="bottom",a="center",l="circle",p="date",c=/\{\d+:?/,h="left",u=Number.MAX_VALUE,f=-Number.MAX_VALUE,d="right",v="top",y="value",g="#fff",m="x",_="y";function b(t){return Array.isArray(t)}function x(t,e){for(var r=b(e)?e:[e],o=0;o<r.length;o++){var i=r[o];-1===t.className.indexOf(i)&&(t.className+=" "+i)}}var w=/\s+/g;function C(t,e){t&&t.className&&(t.className=t.className.replace(e,"").replace(w," "))}var O=r(0);function k(t){var e=.5;t.options.stroke&&O.drawing.util.defined(t.options.stroke.width)&&t.options.stroke.width%2==0&&(e=0);for(var r=0;r<t.segments.length;r++)t.segments[r].anchor().round(0).translate(e,e);return t}function S(t,e){return-t.x*e.y+t.y*e.x<0}function P(t){return"number"==typeof t&&!isNaN(t)}function A(t){return"string"==typeof t}function M(t){return P(t)||A(t)&&isFinite(t)}function T(t){return"function"==typeof t}function E(t,e){for(var r in e){var o=e[r],i=typeof o,n=void 0;if((n="object"===i&&null!==o?o.constructor:null)&&n!==Array)if(o instanceof Date)t[r]=new Date(o.getTime());else if(T(o.clone))t[r]=o.clone();else{var s=t[r];t[r]="object"==typeof s&&s||{},E(t[r],o)}else"undefined"!==i&&(t[r]=o)}return t}function j(t){for(var e=arguments,r=arguments.length,o=1;o<r;o++)E(t,e[o]);return t}function R(t){return"object"==typeof t}function I(t){return P(t)?t+"px":t}var B=/width|height|top|left|bottom|right/i;function L(t){return B.test(t)}function D(t,e){var r=A(e)?[e]:e;if(b(r)){for(var o={},i=window.getComputedStyle(t),n=0;n<r.length;n++){var s=r[n];o[s]=L(s)?parseFloat(i[s]):i[s]}return o}if(R(e))for(var a in e)t.style[a]=I(e[a])}function z(t,e){void 0===e&&(e=0);var r={top:0,right:0,bottom:0,left:0};return"number"==typeof t?r.top=r[d]=r[s]=r[h]=t:(r.top=t.top||e,r[d]=t[d]||e,r[s]=t[s]||e,r[h]=t[h]||e),r}var V={compile:function(t){return t}},N=function(){};N.register=function(t){V=t},N.compile=function(t){return V.compile(t)};var H=N;function U(t){var e;return void 0===t&&(t={}),t.template?t.template=e=H.compile(t.template):T(t.content)&&(e=t.content),e}var F=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,G={};function W(t){if(G[t])return G[t];var e=[];return t.replace(F,(function(t,r,o,i){e.push(O.drawing.util.defined(r)?r:o||i)})),G[t]=function(t){for(var r=t,o=0;o<e.length&&r;o++)r=r[e[o]];return r},G[t]}function K(t,e){for(var r=t.length,o=[],i=0;i<r;i++)e(t[i])&&o.push(t[i]);return o}function X(t,e){if(t.className)for(var r=e.split(" "),o=0;o<r.length;o++)if(-1!==t.className.indexOf(r[o]))return!0}G[void 0]=function(t){return t};var Y=function(){this._map={}};Y.prototype.get=function(t){return this._map[this._key(t)]},Y.prototype.set=function(t,e){this._map[this._key(t)]=e},Y.prototype._key=function(t){return t instanceof Date?t.getTime():t};var q=Y;function Z(t,e){if(e)return-1!==e.indexOf(t)}function Q(t,e,r){return O.drawing.util.round(t+(e-t)*r,3)}var $=function(t,e){this.observer=t,this.handlerMap=j({},this.handlerMap,e)};$.prototype.trigger=function(t,e){var r,o=this.observer,i=this.handlerMap;return i[t]?r=this.callObserver(i[t],e):o.trigger&&(r=this.callObserver("trigger",t,e)),r},$.prototype.callObserver=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return this.observer[t].apply(this.observer,e)},$.prototype.requiresHandlers=function(t){if(this.observer.requiresHandlers)return this.observer.requiresHandlers(t);for(var e=0;e<t.length;e++)if(this.handlerMap[t[e]])return!0};var J=$;function tt(t,e){for(var r=t.length,o=[],i=0;i<r;i++){var n=e(t[i]);O.drawing.util.defined(n)&&o.push(n)}return o}var et=O.support.browser||{};function rt(t){var e=0;return t.wheelDelta?(e=-t.wheelDelta/120,et.webkit&&(e/=2*Math.max(window.devicePixelRatio,.625))):t.detail&&(e=t.detail/3),e=e>0?Math.ceil(e):Math.floor(e)}var ot=O.drawing.util,it=ot.append,nt=ot.bindEvents,st=ot.defined,at=ot.deg,lt=ot.elementOffset,pt=ot.elementSize,ct=ot.eventCoordinates,ht=ot.eventElement,ut=ot.hashKey,ft=ot.last,dt=ot.limitValue,vt=ot.objectKey,yt=ot.rad,gt=ot.round,mt=ot.unbindEvents,_t=ot.valueOrDefault,bt=function(){};bt.fetchFonts=function(t,e,r){void 0===r&&(r={depth:0});!t||r.depth>5||!document.fonts||Object.keys(t).forEach((function(o){var i=t[o];"dataSource"!==o&&"$"!==o[0]&&i&&("font"===o?e.push(i):"object"==typeof i&&(r.depth++,bt.fetchFonts(i,e,r),r.depth--))}))},bt.loadFonts=function(t,e){var r=[];if(t.length>0&&document.fonts){try{r=t.map((function(t){return document.fonts.load(t)}))}catch(t){Object(O.logToConsole)(t)}Promise.all(r).then(e,e)}else e()},bt.preloadFonts=function(t,e){var r=[];bt.fetchFonts(t,r),bt.loadFonts(r,e)};var xt=bt;function wt(t,e){var r=t.prototype;r.options?r.options=j({},r.options,e):r.options=e}function Ct(t){for(var e=u,r=f,o=0,i=t.length;o<i;o++){var n=t[o];null!==n&&isFinite(n)&&(e=Math.min(e,n),r=Math.max(r,n))}return{min:e===u?void 0:e,max:r===f?void 0:r}}function Ot(t,e){for(var r=0;r<t.length;r++){var o=t[r];if(e(o,r,t))return o}}var kt=O.geometry.Matrix,St=/matrix\((.*)\)/;function Pt(t){var e=getComputedStyle(t).transform;return"none"===e?kt.unit():function(t){var e=t.match(St);if(null===e||2!==e.length)return kt.unit();var r=e[1].split(",").map((function(t){return parseFloat(t)}));return new(Function.prototype.bind.apply(kt,[null].concat(r)))}(e)}function At(t){if(!t)return kt.unit();for(var e=Pt(t),r=t.parentElement;r;){var o=Pt(r);e=e.multiplyCopy(o),r=r.parentElement}return e.b=e.c=e.e=e.f=0,e}var Mt=function(t){return new O.Color(t).isDark()?g:n},Tt={},Et=function(t){this._index={},this._values=t?t.slice(0):[];for(var e=0;e<this._values.length;e++)this._index[this._values[e]]=e},jt={size:{configurable:!0}};Et.prototype.values=function(){return this._values.filter((function(t){return t!==Tt}))},Et.prototype.has=function(t){return void 0!==this._index[t]},Et.prototype.add=function(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))},Et.prototype.delete=function(t){var e=this._index[t];void 0!==e&&(this._values[e]=Tt,delete this._index[t])},Et.prototype.clear=function(){this._index={},this._values=[]},jt.size.get=function(){return this._values.length},Object.defineProperties(Et.prototype,jt);var Rt=function(t){this._set=new Set(t)},It={size:{configurable:!0}};Rt.prototype.values=function(){return Array.from(this._set)},Rt.prototype.has=function(t){return this._set.has(t)},Rt.prototype.add=function(t){this._set.add(t)},Rt.prototype.delete=function(t){this._set.delete(t)},Rt.prototype.clear=function(){this._set.clear()},It.size.get=function(){return this._set.size},Object.defineProperties(Rt.prototype,It);function Bt(t){return function(){var t=!1;"function"==typeof Set&&(t=new Set([1]).has(1));return t}()?new Rt(t):new Et(t)}function Lt(t){throw t}var Dt={INSERT:45,DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F2:113,F10:121,F12:123,NUMPAD_PLUS:107,NUMPAD_MINUS:109,NUMPAD_DOT:110};function zt(t,e){var r=gt(e-t,9);if(0===r){if(0===e)return.1;r=Math.abs(e)}var o=Math.pow(10,Math.floor(Math.log(r)/Math.log(10))),i=gt(r/o,10);return gt(o*(i<1.904762?.2:i<4.761904?.5:i<9.523809?1:2),10)}var Vt=function(t){function e(e,r){t.call(this),this.x=e||0,this.y=r||0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.equals=function(t){return t&&this.x===t.x&&this.y===t.y},e.prototype.rotate=function(t,e){var r=yt(e),o=Math.cos(r),i=Math.sin(r),n=t.x,s=t.y,a=this.x,l=this.y;return this.x=gt(n+(a-n)*o+(l-s)*i,3),this.y=gt(s+(l-s)*o-(a-n)*i,3),this},e.prototype.multiply=function(t){return this.x*=t,this.y*=t,this},e.prototype.distanceTo=function(t){var e=this.x-t.x,r=this.y-t.y;return Math.sqrt(e*e+r*r)},e.onCircle=function(t,r,o){var i=yt(r);return new e(t.x-o*Math.cos(i),t.y-o*Math.sin(i))},e}(O.Class);function Nt(t,e,r,o,i){var n=yt(i);return new Vt(r+(t-r)*Math.cos(n)+(e-o)*Math.sin(n),o-(t-r)*Math.sin(n)+(e-o)*Math.cos(n))}var Ht=function(t){function e(e,r,o,i){t.call(this),this.x1=e||0,this.y1=r||0,this.x2=o||0,this.y2=i||0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.equals=function(t){return this.x1===t.x1&&this.x2===t.x2&&this.y1===t.y1&&this.y2===t.y2},e.prototype.width=function(){return this.x2-this.x1},e.prototype.height=function(){return this.y2-this.y1},e.prototype.translate=function(t,e){return this.x1+=t,this.x2+=t,this.y1+=e,this.y2+=e,this},e.prototype.move=function(t,e){var r=this.height(),o=this.width();return st(t)&&(this.x1=t,this.x2=this.x1+o),st(e)&&(this.y1=e,this.y2=this.y1+r),this},e.prototype.wrap=function(t){return this.x1=Math.min(this.x1,t.x1),this.y1=Math.min(this.y1,t.y1),this.x2=Math.max(this.x2,t.x2),this.y2=Math.max(this.y2,t.y2),this},e.prototype.wrapPoint=function(t){var r=b(t),o=r?t[0]:t.x,i=r?t[1]:t.y;return this.wrap(new e(o,i,o,i)),this},e.prototype.snapTo=function(t,e){return e!==m&&e||(this.x1=t.x1,this.x2=t.x2),e!==_&&e||(this.y1=t.y1,this.y2=t.y2),this},e.prototype.alignTo=function(t,e){var r=this.height(),o=this.width(),i=e===v||e===s?_:m,n=i===_?r:o;if(e===a){var l=t.center(),p=this.center();this.x1+=l.x-p.x,this.y1+=l.y-p.y}else this[i+1]=e===v||e===h?t[i+1]-n:t[i+2];return this.x2=this.x1+o,this.y2=this.y1+r,this},e.prototype.shrink=function(t,e){return this.x2-=t,this.y2-=e,this},e.prototype.expand=function(t,e){return this.shrink(-t,-e),this},e.prototype.pad=function(t){var e=z(t);return this.x1-=e.left,this.x2+=e.right,this.y1-=e.top,this.y2+=e.bottom,this},e.prototype.unpad=function(t){var e=z(t);return e.left=-e.left,e.top=-e.top,e.right=-e.right,e.bottom=-e.bottom,this.pad(e)},e.prototype.clone=function(){return new e(this.x1,this.y1,this.x2,this.y2)},e.prototype.center=function(){return new Vt(this.x1+this.width()/2,this.y1+this.height()/2)},e.prototype.containsPoint=function(t){return t.x>=this.x1&&t.x<=this.x2&&t.y>=this.y1&&t.y<=this.y2},e.prototype.points=function(){return[new Vt(this.x1,this.y1),new Vt(this.x2,this.y1),new Vt(this.x2,this.y2),new Vt(this.x1,this.y2)]},e.prototype.getHash=function(){return[this.x1,this.y1,this.x2,this.y2].join(",")},e.prototype.overlaps=function(t){return!(t.y2<this.y1||this.y2<t.y1||t.x2<this.x1||this.x2<t.x1)},e.prototype.rotate=function(t){var e=this.width(),r=this.height(),o=this.center(),i=o.x,n=o.y,s=Nt(0,0,i,n,t),a=Nt(e,0,i,n,t),l=Nt(e,r,i,n,t),p=Nt(0,r,i,n,t);return e=Math.max(s.x,a.x,l.x,p.x)-Math.min(s.x,a.x,l.x,p.x),r=Math.max(s.y,a.y,l.y,p.y)-Math.min(s.y,a.y,l.y,p.y),this.x2=this.x1+e,this.y2=this.y1+r,this},e.prototype.toRect=function(){return new O.geometry.Rect([this.x1,this.y1],[this.width(),this.height()])},e.prototype.hasSize=function(){return 0!==this.width()&&0!==this.height()},e.prototype.align=function(t,e,r){var o=e+1,i=e+2,n=e===m?"width":"height",l=this[n]();Z(r,[h,v])?(this[o]=t[o],this[i]=this[o]+l):Z(r,[d,s])?(this[i]=t[i],this[o]=this[i]-l):r===a&&(this[o]=t[o]+(t[n]()-l)/2,this[i]=this[o]+l)},e}(O.Class);function Ut(t,e){return t-e}var Ft=function(t){function e(e,r,o,i,n){t.call(this),this.center=e,this.innerRadius=r,this.radius=o,this.startAngle=i,this.angle=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.center,this.innerRadius,this.radius,this.startAngle,this.angle)},e.prototype.middle=function(){return this.startAngle+this.angle/2},e.prototype.setRadius=function(t,e){return e?this.innerRadius=t:this.radius=t,this},e.prototype.point=function(t,e){var r=yt(t),o=Math.cos(r),i=Math.sin(r),n=e?this.innerRadius:this.radius,s=gt(this.center.x-o*n,3),a=gt(this.center.y-i*n,3);return new Vt(s,a)},e.prototype.adjacentBox=function(t,e,r){var o=this.clone().expand(t),i=o.middle(),n=o.point(i),s=e/2,a=r/2,l=Math.sin(yt(i)),p=Math.cos(yt(i)),c=n.x-s,h=n.y-a;return Math.abs(l)<.9&&(c+=s*-p/Math.abs(p)),Math.abs(p)<.9&&(h+=a*-l/Math.abs(l)),new Ht(c,h,c+e,h+r)},e.prototype.containsPoint=function(t){var e=this.center,r=this.innerRadius,o=this.radius,i=this.startAngle,n=this.startAngle+this.angle,s=t.x-e.x,a=t.y-e.y,l=new Vt(s,a),p=this.point(i),c=new Vt(p.x-e.x,p.y-e.y),h=this.point(n),u=new Vt(h.x-e.x,h.y-e.y),f=gt(s*s+a*a,3);return(c.equals(l)||S(c,l))&&!S(u,l)&&f>=r*r&&f<=o*o},e.prototype.getBBox=function(){var t,e=new Ht(u,u,f,f),r=gt(this.startAngle%360),o=gt((r+this.angle)%360),i=this.innerRadius,n=[0,90,180,270,r,o].sort(Ut),s=n.indexOf(r),a=n.indexOf(o);t=r===o?n:s<a?n.slice(s,a+1):[].concat(n.slice(0,a+1),n.slice(s,n.length));for(var l=0;l<t.length;l++){var p=this.point(t[l]);e.wrapPoint(p),e.wrapPoint(p,i)}return i||e.wrapPoint(this.center),e},e.prototype.expand=function(t){return this.radius+=t,this},e}(O.Class),Gt=function(t){function e(e,r,o,i){t.call(this,e,0,r,o,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.expand=function(e){return t.prototype.expand.call(this,e)},e.prototype.clone=function(){return new e(this.center,this.radius,this.startAngle,this.angle)},e.prototype.setRadius=function(t){return this.radius=t,this},e}(Ft),Wt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createRing=function(t,e){var r=t.startAngle+180,o=t.angle+r;t.angle>0&&r===o&&(o+=.001);var i=new O.geometry.Point(t.center.x,t.center.y),n=Math.max(t.radius,0),s=Math.max(t.innerRadius,0),a=new O.geometry.Arc(i,{startAngle:r,endAngle:o,radiusX:n,radiusY:n}),l=O.drawing.Path.fromArc(a,e).close();if(s){a.radiusX=a.radiusY=s;var p=a.pointAt(o);l.lineTo(p.x,p.y),l.arc(o,r,s,s,!0)}else l.lineTo(i.x,i.y);return l},e}(O.Class);Wt.current=new Wt;var Kt=Wt,Xt=function(t){function e(e){t.call(this),this.children=[],this.options=j({},this.options,this.initUserOptions(e))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){return t},e.prototype.reflow=function(t){for(var e,r=this.children,o=0;o<r.length;o++){var i=r[o];i.reflow(t),e=e?e.wrap(i.box):i.box.clone()}this.box=e||t},e.prototype.destroy=function(){var t=this.children;this.animation&&this.animation.destroy();for(var e=0;e<t.length;e++)t[e].destroy()},e.prototype.getRoot=function(){var t=this.parent;return t?t.getRoot():null},e.prototype.getSender=function(){var t=this.getService();if(t)return t.sender},e.prototype.getService=function(){for(var t=this;t;){if(t.chartService)return t.chartService;t=t.parent}},e.prototype.translateChildren=function(t,e){for(var r=this.children,o=r.length,i=0;i<o;i++)r[i].box.translate(t,e)},e.prototype.append=function(){for(var t=arguments,e=this,r=0;r<arguments.length;r++){var o=t[r];e.children.push(o),o.parent=e}},e.prototype.renderVisual=function(){!1!==this.options.visible&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())},e.prototype.addVisual=function(){this.visual&&(this.visual.chartElement=this,this.parent&&this.parent.appendVisual(this.visual))},e.prototype.renderChildren=function(){for(var t=this.children,e=t.length,r=0;r<e;r++)t[r].renderVisual()},e.prototype.createVisual=function(){this.visual=new O.drawing.Group({zIndex:this.options.zIndex,visible:_t(this.options.visible,!0)})},e.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=O.drawing.Animation.create(this.visual,this.options.animation))},e.prototype.appendVisual=function(t){t.chartElement||(t.chartElement=this),t.options.noclip?this.clipRoot().visual.append(t):st(t.options.zIndex)?this.stackRoot().stackVisual(t):this.isStackRoot?this.stackVisual(t):this.visual?this.visual.append(t):this.parent.appendVisual(t)},e.prototype.clipRoot=function(){return this.parent?this.parent.clipRoot():this},e.prototype.stackRoot=function(){return this.parent?this.parent.stackRoot():this},e.prototype.stackVisual=function(t){var e,r=t.options.zIndex||0,o=this.visual.children,i=o.length;for(e=0;e<i;e++){var n=o[e];if(_t(n.options.zIndex,0)>r)break}this.visual.insert(e,t)},e.prototype.traverse=function(t){for(var e=this.children,r=e.length,o=0;o<r;o++){var i=e[o];t(i),i.traverse&&i.traverse(t)}},e.prototype.closest=function(t){for(var e=this,r=!1;e&&!r;)(r=t(e))||(e=e.parent);if(r)return e},e.prototype.renderComplete=function(){},e.prototype.hasHighlight=function(){var t=(this.options||{}).highlight;return!(!this.createHighlight||t&&!1===t.visible)},e.prototype.toggleHighlight=function(t,e){var r=this,o=(this.options||{}).highlight||{},i=o.visual,n=this._highlight;if(!n){var s={fill:{color:g,opacity:e||.2},stroke:{color:g,width:1,opacity:e||.2}};if(i){if(!(n=this._highlight=i(Object.assign(this.highlightVisualArgs(),{createVisual:function(){return r.createHighlight(s)},sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total}))))return}else n=this._highlight=this.createHighlight(s);st(n.options.zIndex)||(n.options.zIndex=_t(o.zIndex,this.options.zIndex)),this.appendVisual(n)}n.visible(t)},e.prototype.createGradientOverlay=function(t,e,r){var o=new O.drawing.Path(Object.assign({stroke:{color:"none"},fill:this.createGradient(r),closed:t.options.closed},e));return o.segments.elements(t.segments.elements()),o},e.prototype.createGradient=function(t){if(this.parent)return this.parent.createGradient(t)},e.prototype.supportsPointInactiveOpacity=function(){return!0},e}(O.Class);Xt.prototype.options={};var Yt=Xt,qt=function(t){function e(e){t.call(this,e),this.options.margin=z(this.options.margin),this.options.padding=z(this.options.padding)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(e){var r,o=this,i=this.options,n=i.width,s=i.height,a=i.shrinkToFit,l=n&&s,p=i.margin,c=i.padding,h=i.border.width,u=function(){o.align(e,m,i.align),o.align(e,_,i.vAlign),o.paddingBox=r.clone().unpad(p).unpad(h)},f=e.clone();l&&(f.x2=f.x1+n,f.y2=f.y1+s),a&&f.unpad(p).unpad(h).unpad(c),t.prototype.reflow.call(this,f),r=l?this.box=new Ht(0,0,n,s):this.box,a&&l?(u(),f=this.contentBox=this.paddingBox.clone().unpad(c)):(f=this.contentBox=r.clone(),r.pad(c).pad(h).pad(p),u()),this.translateChildren(r.x1-f.x1+p.left+h+c.left,r.y1-f.y1+p.top+h+c.top);for(var d=this.children,v=0;v<d.length;v++){var y=d[v];y.reflow(y.box)}},e.prototype.align=function(t,e,r){this.box.align(t,e,r)},e.prototype.hasBox=function(){var t=this.options;return t.border.width||t.background},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.options.visible&&this.hasBox()&&this.visual.append(O.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle()))},e.prototype.visualStyle=function(){var t=this.options,e=t.border||{};return{stroke:{width:e.width,color:e.color,opacity:_t(e.opacity,t.opacity),dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},cursor:t.cursor}},e}(Yt);wt(qt,{align:h,vAlign:v,margin:{},padding:{},border:{color:n,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});var Zt=qt,Qt=function(t){function e(e,r){t.call(this,e),this.pointData=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getElement=function(){var t=this.options,e=this.paddingBox,r=t.type,o=t.rotation,i=e.center(),n=e.width()/2,s=e.height()/2;if(!t.visible||!this.hasBox())return null;var a,p=this.visualStyle();if(r===l)a=new O.drawing.Circle(new O.geometry.Circle([gt(e.x1+n,3),gt(e.y1+s,3)],Math.min(n,s)),p);else if("triangle"===r)a=O.drawing.Path.fromPoints([[e.x1+n,e.y1],[e.x1,e.y2],[e.x2,e.y2]],p).close();else if("cross"===r)(a=new O.drawing.MultiPath(p)).moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),a.moveTo(e.x1,e.y2).lineTo(e.x2,e.y1);else{var c=e.toRect();if("roundedRect"===r){var h=_t(t.borderRadius,c.width()/5);c.setCornerRadius(h)}a=O.drawing.Path.fromRect(c,p)}return o&&a.transform(O.geometry.transform().rotate(-o,[i.x,i.y])),a.options.zIndex=t.zIndex,a},e.prototype.createElement=function(){var t=this,e=this.options.visual,r=this.pointData||{};return e?e({value:r.value,dataItem:r.dataItem,sender:this.getSender(),series:r.series,category:r.category,rect:this.paddingBox.toRect(),options:this.visualOptions(),createVisual:function(){return t.getElement()}}):this.getElement()},e.prototype.visualOptions=function(){var t=this.options;return{background:t.background,border:t.border,margin:t.margin,padding:t.padding,type:t.type,size:t.width,visible:t.visible}},e.prototype.createVisual=function(){this.visual=this.createElement()},e}(Zt);wt(Qt,{type:l,align:a,vAlign:a});var $t=Qt,Jt={glass:{type:"linear",rotation:0,stops:[{offset:0,color:g,opacity:0},{offset:.25,color:g,opacity:.3},{offset:1,color:g,opacity:0}]},sharpBevel:{type:"radial",stops:[{offset:0,color:g,opacity:.55},{offset:.65,color:g,opacity:0},{offset:.95,color:g,opacity:.25}]},roundedBevel:{type:"radial",stops:[{offset:.33,color:g,opacity:.06},{offset:.83,color:g,opacity:.2},{offset:.95,color:g,opacity:0}]},roundedGlass:{type:"radial",supportVML:!1,stops:[{offset:0,color:g,opacity:0},{offset:.5,color:g,opacity:.3},{offset:.99,color:g,opacity:0}]},sharpGlass:{type:"radial",supportVML:!1,stops:[{offset:0,color:g,opacity:.2},{offset:.15,color:g,opacity:.15},{offset:.17,color:g,opacity:.35},{offset:.85,color:g,opacity:.05},{offset:.87,color:g,opacity:.15},{offset:.99,color:g,opacity:0}]},bubbleShadow:{type:"radial",center:[.5,.5],radius:.5}};function te(t,e){if(t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2)return e;var r=Math.min(t.x1,e.x1),o=Math.max(t.x1,e.x1),i=Math.min(t.x2,e.x2),n=Math.max(t.x2,e.x2),s=Math.min(t.y1,e.y1),a=Math.max(t.y1,e.y1),l=Math.min(t.y2,e.y2),p=Math.max(t.y2,e.y2),c=[];return c[0]=new Ht(o,s,i,a),c[1]=new Ht(r,a,o,l),c[2]=new Ht(i,a,n,l),c[3]=new Ht(o,l,i,p),t.x1===r&&t.y1===s||e.x1===r&&e.y1===s?(c[4]=new Ht(r,s,o,a),c[5]=new Ht(i,l,n,p)):(c[4]=new Ht(i,s,n,a),c[5]=new Ht(r,l,o,p)),K(c,(function(t){return t.height()>0&&t.width()>0}))[0]}var ee=function(t){function e(e){t.call(this,e);var r=this.options;r.width=parseInt(r.width,10),r.height=parseInt(r.height,10),this.gradients={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(){var t=this.options,e=this.children,r=new Ht(0,0,t.width,t.height);this.box=r.unpad(t.margin);for(var o=0;o<e.length;o++)e[o].reflow(r),r=te(r,e[o].box)||new Ht},e.prototype.createVisual=function(){this.visual=new O.drawing.Group,this.createBackground()},e.prototype.createBackground=function(){var t=this.options,e=t.border||{},r=this.box.clone().pad(t.margin).unpad(e.width),o=O.drawing.Path.fromRect(r.toRect(),{stroke:{color:e.width?e.color:"",width:e.width,dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},zIndex:-10});this.visual.append(o)},e.prototype.getRoot=function(){return this},e.prototype.createGradient=function(t){var e,r=this.gradients,o=vt(t),i=Jt[t.gradient];if(r[o])e=r[o];else{var n=Object.assign({},i,t);"linear"===i.type?e=new O.drawing.LinearGradient(n):(t.innerRadius&&(n.stops=function(t){for(var e=t.stops,r=t.innerRadius/t.radius*100,o=e.length,i=[],n=0;n<o;n++){var s=Object.assign({},e[n]);s.offset=(s.offset*(100-r)+r)/100,i.push(s)}return i}(n)),(e=new O.drawing.RadialGradient(n)).supportVML=!1!==i.supportVML),r[o]=e}return e},e.prototype.cleanGradients=function(){var t=this.gradients;for(var e in t)t[e]._observers=[]},e.prototype.size=function(){var t=this.options;return new Ht(0,0,t.width,t.height)},e}(Yt);wt(ee,{width:600,height:400,background:g,border:{color:n,width:0},margin:z(5),zIndex:-2});var re=ee,oe=function(t){function e(e){t.call(this,e),this._initDirection()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initDirection=function(){var t=this.options;t.vertical?(this.groupAxis=m,this.elementAxis=_,this.groupSizeField="width",this.elementSizeField="height",this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=_,this.elementAxis=m,this.groupSizeField="height",this.elementSizeField="width",this.groupSpacing=t.vSpacing,this.elementSpacing=t.spacing)},e.prototype.reflow=function(t){this.box=t.clone(),this.reflowChildren()},e.prototype.reflowChildren=function(){var t=this.box,e=this.elementAxis,r=this.groupAxis,o=this.elementSizeField,i=this.groupSizeField,n=this.groupOptions(),s=n.groups,a=n.groupsSize,l=n.maxGroupElementsSize,p=s.length,c=t[r+1]+this.alignStart(a,t[i]());if(p){for(var h=c,u=0;u<p;u++){for(var f=s[u],d=f.groupElements,v=t[e+1],y=d.length,g=0;g<y;g++){var m=d[g],_=this.elementSize(m),b=h+this.alignStart(_[i],f.groupSize),x=new Ht;x[r+1]=b,x[r+2]=b+_[i],x[e+1]=v,x[e+2]=v+_[o],m.reflow(x),v+=_[o]+this.elementSpacing}h+=f.groupSize+this.groupSpacing}t[r+1]=c,t[r+2]=c+a,t[e+2]=t[e+1]+l}},e.prototype.alignStart=function(t,e){var r=0,o=this.options.align;return o===d||o===s?r=e-t:o===a&&(r=(e-t)/2),r},e.prototype.groupOptions=function(){for(var t=this.box,e=this.children,r=this.elementSizeField,o=this.groupSizeField,i=this.elementSpacing,n=this.groupSpacing,s=gt(t[r]()),a=e.length,l=[],p=0,c=0,h=0,u=0,f=[],d=0;d<a;d++){var v=e[d];v.box||v.reflow(t);var y=this.elementSize(v);this.options.wrap&>(c+i+y[r])>s&&(l.push({groupElements:f,groupSize:p,groupElementsSize:c}),u=Math.max(u,c),h+=n+p,p=0,c=0,f=[]),p=Math.max(p,y[o]),c>0&&(c+=i),c+=y[r],f.push(v)}return l.push({groupElements:f,groupSize:p,groupElementsSize:c}),{groups:l,groupsSize:h+=p,maxGroupElementsSize:u=Math.max(u,c)}},e.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},e.prototype.createVisual=function(){},e}(Yt);wt(oe,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});var ie=oe,ne=O.drawing.Text,se=function(t){function e(e,r){t.call(this,r),this.content=e,this.reflow(new Ht)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,r=e.size=O.drawing.util.measureText(this.content,{font:e.font});this.baseline=r.baseline,this.box=new Ht(t.x1,t.y1,t.x1+r.width,t.y1+r.height)},e.prototype.createVisual=function(){var t=this.options,e=t.font,r=t.color,o=t.opacity,i=t.cursor;this.visual=new ne(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:r,opacity:o},cursor:i})},e}(Yt);wt(se,{font:"12px sans-serif",color:n});var ae=se;function le(t){var e=t.origin,r=t.bottomRight();return new Ht(e.x,e.y,r.x,r.y)}var pe=/\n/m,ce=function(t){function e(e,r,o){t.call(this,r),this.content=e,this.data=o,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new Ht)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initContainer=function(){var t=this.options,e=String(this.content).split(pe),r=new ie({vertical:!0,align:t.align,wrap:!1}),o=j({},t,{opacity:1,animation:null});this.container=r,this.append(r);for(var i=0;i<e.length;i++){var n=new ae(e[i].trim(),o);r.append(n)}},e.prototype.reflow=function(e){var r=this.options,o=r.visual;if(this.container.options.align=r.align,o&&!this._boxReflow){var i=e;i.hasSize()||(this._boxReflow=!0,this.reflow(i),this._boxReflow=!1,i=this.box);var n=this.visual=o(this.visualContext(i));n&&(i=le(n.clippedBBox()||new O.geometry.Rect),n.options.zIndex=r.zIndex),this.box=this.contentBox=this.paddingBox=i}else if(t.prototype.reflow.call(this,e),r.rotation){var s=z(r.margin),a=this.box.unpad(s);this.targetBox=e,this.normalBox=a.clone(),(a=this.rotate()).translate(s.left-s.right,s.top-s.bottom),this.rotatedBox=a.clone(),a.pad(s)}},e.prototype.createVisual=function(){var t=this.options;if(this.visual=new O.drawing.Group({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()){var e=O.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle());this.visual.append(e)}},e.prototype.renderVisual=function(){if(this.options.visible)if(this.options.visual){var e=this.visual;e&&!st(e.options.noclip)&&(e.options.noclip=this.options.noclip),this.addVisual(),this.createAnimation()}else t.prototype.renderVisual.call(this)},e.prototype.visualContext=function(t){var e=this,r={text:this.content,rect:t.toRect(),sender:this.getSender(),options:this.options,createVisual:function(){return e._boxReflow=!0,e.reflow(t),e._boxReflow=!1,e.getDefaultVisual()}};return this.data&&Object.assign(r,this.data),r},e.prototype.getDefaultVisual=function(){this.createVisual(),this.renderChildren();var t=this.visual;return delete this.visual,t},e.prototype.rotate=function(){var t=this.options;return this.box.rotate(t.rotation),this.align(this.targetBox,m,t.align),this.align(this.targetBox,_,t.vAlign),this.box},e.prototype.rotationTransform=function(){var t=this.options.rotation;if(!t)return null;var e=this.normalBox.center(),r=e.x,o=e.y,i=this.rotatedBox.center();return O.geometry.transform().translate(i.x-r,i.y-o).rotate(t,[r,o])},e}(Zt),he=function(t){function e(e){t.call(this,e),this.append(new ce(this.options.text,Object.assign({},this.options,{vAlign:this.options.position})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(e){t.prototype.reflow.call(this,e),this.box.snapTo(e,m)},e.buildTitle=function(t,r,o){var i,n=t;return"string"==typeof t&&(n={text:t}),(n=Object.assign({visible:!0},o,n))&&n.visible&&n.text&&(i=new e(n),r.append(i)),i},e}(Yt);wt(he,{color:n,position:v,align:a,margin:z(5),padding:z(5)});var ue=he,fe=function(t){function e(e,r,o,i,n){t.call(this,r,n),this.text=r,this.value=e,this.index=o,this.dataItem=i,this.reflow(new Ht)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.visualContext=function(e){var r=t.prototype.visualContext.call(this,e);return r.value=this.value,r.dataItem=this.dataItem,r.format=this.options.format,r.culture=this.options.culture,r},e.prototype.click=function(t,e){t.trigger("axisLabelClick",{element:ht(e),value:this.value,text:this.text,index:this.index,dataItem:this.dataItem,axis:this.parent.options})},e.prototype.rotate=function(){if(this.options.alignRotation!==a){var e=this.normalBox.toRect(),r=this.rotationTransform();this.box=le(e.bbox(r.matrix()))}else t.prototype.rotate.call(this);return this.box},e.prototype.rotationTransform=function(){var e=this.options,r=e.rotation;if(!r)return null;if(e.alignRotation===a)return t.prototype.rotationTransform.call(this);var o=O.geometry.transform().rotate(r).matrix(),i=this.normalBox.toRect(),n=this.targetBox.toRect(),l=e.rotationOrigin||v,p=l===v||l===s?m:_,c=l===v||l===s?_:m,u=l===v||l===h?n.origin:n.bottomRight(),f=i.topLeft().transformCopy(o),d=i.topRight().transformCopy(o),y=i.bottomRight().transformCopy(o),g=i.bottomLeft().transformCopy(o),b=O.geometry.Rect.fromPoints(f,d,y,g),x={};x[c]=n.origin[c]-b.origin[c];var w,C,k=Math.abs(f[c]+x[c]-u[c]),S=Math.abs(d[c]+x[c]-u[c]);gt(k,10)===gt(S,10)?(w=f,C=d):S<k?(w=d,C=y):(w=f,C=g);var P=w[p]+(C[p]-w[p])/2;return x[p]=n.center()[p]-P,O.geometry.transform().translate(x.x,x.y).rotate(r)},e}(ce);wt(fe,{_autoReflow:!1});var de=fe,ve=function(t){function e(e,r,o){t.call(this,r),this.fields=e,this.chartService=o,this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.hide=function(){this.options.visible=!1},e.prototype.show=function(){this.options.visible=!0},e.prototype.render=function(){var t=this,e=this.options;if(e.visible){var r,o,i=e.label,n=e.icon,s=new Ht,a=function(){return t},p=n.size,c=this.fields.text;if(st(i)&&i.visible){var h=U(i);h?c=h(this.fields):i.format&&(c=this.chartService.format.auto(i.format,c)),i.color||(i.color="inside"===i.position?"#fff":n.background),this.label=new ce(c,j({},i)),this.label.aliasFor=a,"inside"!==i.position||st(p)||(n.type===l?p=Math.max(this.label.box.width(),this.label.box.height()):(r=this.label.box.width(),o=this.label.box.height()),s.wrap(this.label.box))}n.width=r||p||7,n.height=o||p||7;var u=new $t(j({},n));u.aliasFor=a,this.marker=u,this.append(u),this.label&&this.append(this.label),u.reflow(new Ht),this.wrapperBox=s.wrap(u.box)}},e.prototype.reflow=function(t){var e,r,o,i=this.options,n=this.label,a=this.marker,l=this.wrapperBox,p=t.center(),c=i.line.length,u=i.position;i.visible&&(Z(u,[h,d])?u===h?(o=l.alignTo(t,u).translate(-c,t.center().y-l.center().y),i.line.visible&&(e=[t.x1,p.y],this.linePoints=[e,[o.x2,p.y]],r=o.clone().wrapPoint(e))):(o=l.alignTo(t,u).translate(c,t.center().y-l.center().y),i.line.visible&&(e=[t.x2,p.y],this.linePoints=[e,[o.x1,p.y]],r=o.clone().wrapPoint(e))):u===s?(o=l.alignTo(t,u).translate(t.center().x-l.center().x,c),i.line.visible&&(e=[p.x,t.y2],this.linePoints=[e,[p.x,o.y1]],r=o.clone().wrapPoint(e))):(o=l.alignTo(t,u).translate(t.center().x-l.center().x,-c),i.line.visible&&(e=[p.x,t.y1],this.linePoints=[e,[p.x,o.y2]],r=o.clone().wrapPoint(e))),a&&a.reflow(o),n&&(n.reflow(o),a&&("outside"===i.label.position&&n.box.alignTo(a.box,u),n.reflow(n.box))),this.contentBox=o,this.targetBox=t,this.box=r||o)},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.visual.options.noclip=this.options.noclip,this.options.visible&&this.createLine()},e.prototype.renderVisual=function(){var e=this,r=this.options,o=r.visual;r.visible&&o?(this.visual=o(Object.assign(this.fields,{sender:this.getSender(),rect:this.targetBox.toRect(),options:{background:r.background,border:r.background,icon:r.icon,label:r.label,line:r.line,position:r.position,visible:r.visible},createVisual:function(){e.createVisual(),e.renderChildren();var t=e.visual;return delete e.visual,t}})),this.addVisual()):t.prototype.renderVisual.call(this)},e.prototype.createLine=function(){var t=this.options.line;if(this.linePoints){var e=O.drawing.Path.fromPoints(this.linePoints,{stroke:{color:t.color,width:t.width,dashType:t.dashType}});k(e),this.visual.append(e)}},e.prototype.click=function(t,e){var r=this.eventArgs(e);t.trigger("noteClick",r)||e.preventDefault()},e.prototype.over=function(t,e){var r=this.eventArgs(e);t.trigger("noteHover",r)||e.preventDefault()},e.prototype.out=function(t,e){var r=this.eventArgs(e);t.trigger("noteLeave",r)},e.prototype.eventArgs=function(t){var e=this.options;return Object.assign(this.fields,{element:ht(t),text:st(e.label)?e.label.text:"",visual:this.visual})},e}(Zt);wt(ve,{icon:{visible:!0,type:l},label:{position:"inside",visible:!0,align:a,vAlign:a},line:{visible:!0},visible:!0,position:v,zIndex:2});var ye=ve,ge={format:function(t,e){return e},toString:function(t){return t},parseDate:function(t){return new Date(t)},firstDay:function(){return 0}},me=function(){},_e={implementation:{configurable:!0}};me.register=function(t){ge=t},_e.implementation.get=function(){return ge},Object.defineProperties(me,_e);var be=me,xe=/\{(\d+)(:[^\}]+)?\}/g,we=function(t){this._intlService=t},Ce={intl:{configurable:!0}};Ce.intl.get=function(){return this._intlService||be.implementation},Ce.intl.set=function(t){this._intlService=t},we.prototype.auto=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];var o=this.intl;return A(t)&&t.match(c)?o.format.apply(o,[t].concat(e)):o.toString(e[0],t)},we.prototype.localeAuto=function(t,e,r){var o=this.intl;return A(t)&&t.match(c)?t.replace(xe,(function(t,i,n){var s=e[parseInt(i,10)];return o.toString(s,n?n.substring(1):"",r)})):o.toString(e[0],t,r)},Object.defineProperties(we.prototype,Ce);var Oe=we,ke=function(t,e){void 0===e&&(e={}),this._intlService=e.intlService,this.sender=e.sender||t,this.format=new Oe(e.intlService),this.chart=t,this.rtl=Boolean(e.rtl)},Se={intl:{configurable:!0}};Se.intl.get=function(){return this._intlService||be.implementation},Se.intl.set=function(t){this._intlService=t,this.format.intl=t},ke.prototype.notify=function(t,e){this.chart&&this.chart.trigger(t,e)},ke.prototype.isPannable=function(t){var e=((this.chart||{}).options||{}).pannable;return e&&e.lock!==t},Object.defineProperties(ke.prototype,Se);var Pe,Ae=ke,Me=function(){};Me.register=function(t){Pe=t},Me.create=function(t,e){if(Pe)return Pe.create(t,e)};var Te=Me;function Ee(t,e){var r=t.tickX,o=t.tickY,i=t.position,n=new O.drawing.Path({stroke:{width:e.width,color:e.color}});return t.vertical?n.moveTo(r,i).lineTo(r+e.size,i):n.moveTo(i,o).lineTo(i,o+e.size),k(n),n}function je(t,e){var r=t.lineStart,o=t.lineEnd,i=t.position,n=new O.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});return t.vertical?n.moveTo(r,i).lineTo(o,i):n.moveTo(i,r).lineTo(i,o),k(n),n}var Re=function(t){function e(e,r){void 0===r&&(r=new Ae),t.call(this,e),this.chartService=r,this.options.visible||(this.options=j({},this.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),this.options.minorTicks=j({},{color:this.options.line.color,width:this.options.line.width,visible:"none"!==this.options.minorTickType},this.options.minorTicks,{size:this.options.minorTickSize,align:this.options.minorTickType}),this.options.majorTicks=j({},{color:this.options.line.color,width:this.options.line.width,visible:"none"!==this.options.majorTickType},this.options.majorTicks,{size:this.options.majorTickSize,align:this.options.majorTickType}),this.initFields(),this.options._deferLabels||this.createLabels(),this.createTitle(),this.createNotes()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){},e.prototype.labelsRange=function(){return{min:this.options.labels.skip,max:this.labelsCount()}},e.prototype.normalizeLabelRotation=function(t){var e=t.rotation;R(e)&&(t.alignRotation=e.align,t.rotation=e.angle)},e.prototype.createLabels=function(){var t=this.options,e=t.vertical?d:a,r=j({},t.labels,{align:e,zIndex:t.zIndex}),o=Math.max(1,r.step);if(this.clearLabels(),r.visible){this.normalizeLabelRotation(r),"auto"===r.rotation&&(r.rotation=0,t.autoRotateLabels=!0);for(var i=this.labelsRange(),n=i.min;n<i.max;n+=o){var s={index:n,count:i.max},l=this.createAxisLabel(n,r,s);l&&(this.append(l),this.labels.push(l))}}},e.prototype.clearLabels=function(){this.children=K(this.children,(function(t){return!(t instanceof de)})),this.labels=[]},e.prototype.clearTitle=function(){var t=this;this.title&&(this.children=K(this.children,(function(e){return e!==t.title})),this.title=void 0)},e.prototype.clear=function(){this.clearLabels(),this.clearTitle()},e.prototype.lineBox=function(){var t=this.options,e=this.box,r=t.vertical,o=t.labels.mirror,i=o?e.x1:e.x2,n=o?e.y2:e.y1,s=t.line.width||0;return r?new Ht(i,e.y1,i,e.y2-s):new Ht(e.x1,n,e.x2-s,n)},e.prototype.createTitle=function(){var t=this.options,e=j({rotation:t.vertical?-90:0,text:"",zIndex:1,visualSize:!0},t.title);if(e.visible&&e.text){var r=new ce(e.text,e);this.append(r),this.title=r}},e.prototype.createNotes=function(){var t=this.options,e=t.notes,r=e.data||[];this.notes=[];for(var o=0;o<r.length;o++){var i=j({},e,r[o]);i.value=this.parseNoteValue(i.value);var n=new ye({value:i.value,text:i.label.text,dataItem:i},i,this.chartService);n.options.visible&&(st(n.options.position)?t.vertical&&!Z(n.options.position,[h,d])?n.options.position=t.reverse?h:d:t.vertical||Z(n.options.position,[v,s])||(n.options.position=t.reverse?s:v):t.vertical?n.options.position=t.reverse?h:d:n.options.position=t.reverse?s:v,this.append(n),this.notes.push(n))}},e.prototype.parseNoteValue=function(t){return t},e.prototype.renderVisual=function(){t.prototype.renderVisual.call(this),this.createPlotBands()},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.createBackground(),this.createLine()},e.prototype.gridLinesVisual=function(){var t=this._gridLines;return t||(t=this._gridLines=new O.drawing.Group({zIndex:-2}),this.appendVisual(this._gridLines)),t},e.prototype.createTicks=function(t){var e=this.options,r=this.lineBox(),o=e.labels.mirror,i=e.majorTicks.visible?e.majorUnit:0,n={vertical:e.vertical};function s(e,i,s){var a=e.length,l=Math.max(1,i.step);if(i.visible)for(var p=i.skip;p<a;p+=l)st(s)&&p%s==0||(n.tickX=o?r.x2:r.x2-i.size,n.tickY=o?r.y1-i.size:r.y1,n.position=e[p],t.append(Ee(n,i)))}s(this.getMajorTickPositions(),e.majorTicks),s(this.getMinorTickPositions(),e.minorTicks,i/e.minorUnit)},e.prototype.createLine=function(){var t=this.options,e=t.line,r=this.lineBox();if(e.width>0&&e.visible){var o=new O.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});o.moveTo(r.x1,r.y1).lineTo(r.x2,r.y2),t._alignLines&&k(o);var i=this._lineGroup=new O.drawing.Group;i.append(o),this.visual.append(i),this.createTicks(i)}},e.prototype.getActualTickSize=function(){var t=this.options,e=0;return t.majorTicks.visible&&t.minorTicks.visible?e=Math.max(t.majorTicks.size,t.minorTicks.size):t.majorTicks.visible?e=t.majorTicks.size:t.minorTicks.visible&&(e=t.minorTicks.size),e},e.prototype.createBackground=function(){var t=this.options,e=this.box,r=t.background;r&&(this._backgroundPath=O.drawing.Path.fromRect(e.toRect(),{fill:{color:r},stroke:null}),this.visual.append(this._backgroundPath))},e.prototype.createPlotBands=function(){var t=this,e=this.options,r=e.plotBands||[],o=e.vertical,i=this.plotArea;if(0!==r.length){for(var n=this._plotbandGroup=new O.drawing.Group({zIndex:-1}),s=K(this.pane.axes,(function(e){return e.options.vertical!==t.options.vertical}))[0],a=0;a<r.length;a++){var l=r[a],p=void 0,c=void 0,u=l.label,f=void 0;if(o?(p=(s||i.axisX).lineBox(),c=t.getSlot(l.from,l.to,!0)):(p=t.getSlot(l.from,l.to,!0),c=(s||i.axisY).lineBox()),u&&(u.vAlign=u.position||h,f=t.createPlotBandLabel(u,l,new Ht(p.x1,c.y1,p.x2,c.y2))),0!==p.width()&&0!==c.height()){var d=new O.geometry.Rect([p.x1,c.y1],[p.width(),c.height()]),v=O.drawing.Path.fromRect(d,{fill:{color:l.color,opacity:l.opacity},stroke:null});n.append(v),f&&n.append(f)}}this.appendVisual(n)}},e.prototype.createPlotBandLabel=function(t,e,r){if(!1===t.visible)return null;var o,i=t.text;if(st(t)&&t.visible){var n=U(t);n?i=n({text:i,item:e}):t.format&&(i=this.chartService.format.auto(t.format,i)),t.color||(t.color=this.options.labels.color)}return(o=new ce(i,t)).reflow(r),o.renderVisual(),o.visual},e.prototype.createGridLines=function(t){var e=this.options,r=e.minorGridLines,o=e.majorGridLines,i=e.minorUnit,n=e.vertical,s=t.options.line.visible,a=o.visible?e.majorUnit:0,l=t.lineBox(),p=l[n?"y1":"x1"],c={lineStart:l[n?"x1":"y1"],lineEnd:l[n?"x2":"y2"],vertical:n},h=[],u=this.gridLinesVisual();function f(t,e,r){var o=t.length,i=Math.max(1,e.step);if(e.visible)for(var n=e.skip;n<o;n+=i){var a=gt(t[n]);Z(a,h)||n%r==0||s&&p===a||(c.position=a,u.append(je(c,e)),h.push(a))}}return f(this.getMajorTickPositions(),o),f(this.getMinorTickPositions(),r,a/i),u.children},e.prototype.reflow=function(t){for(var e=this.options,r=this.labels,o=this.title,i=e.vertical,n=r.length,s=i?"width":"height",a=o?o.box[s]():0,l=this.getActualTickSize()+e.margin+a,p=((this.getRoot()||{}).box||t)[s](),c=0,h=0;h<n;h++){var u=r[h].box[s]();u+l<=p&&(c=Math.max(c,u))}this.box=i?new Ht(t.x1,t.y1,t.x1+c+l,t.y2):new Ht(t.x1,t.y1,t.x2,t.y1+c+l),this.arrangeTitle(),this.arrangeLabels(),this.arrangeNotes()},e.prototype.getLabelsTickPositions=function(){return this.getMajorTickPositions()},e.prototype.labelTickIndex=function(t){return t.index},e.prototype.arrangeLabels=function(){for(var t=this.options,e=this.labels,r=this.labelsBetweenTicks(),o=t.vertical,i=t.labels.mirror,n=this.getLabelsTickPositions(),s=0;s<e.length;s++){var a=e[s],l=this.labelTickIndex(a),p=o?a.box.height():a.box.width(),c=n[l],h=n[l+1],u=void 0,f=void 0;if(o){if(r)u=c+(h-c)/2-p/2;else u=c-p/2;f=u}else r?(u=c,f=h):f=(u=c-p/2)+p;this.positionLabel(a,i,u,f)}},e.prototype.positionLabel=function(t,e,r,o){void 0===o&&(o=r);var i,n=this.options,a=n.vertical,l=this.lineBox(),p=this.getActualTickSize()+n.margin;if(a){var c=l.x2;e?(c+=p,t.options.rotationOrigin=h):(c-=p+t.box.width(),t.options.rotationOrigin=d),i=t.box.move(c,r)}else{var u=l.y1;e?(u-=p+t.box.height(),t.options.rotationOrigin=s):(u+=p,t.options.rotationOrigin=v),i=new Ht(r,u,o,u+t.box.height())}t.reflow(i)},e.prototype.autoRotateLabelAngle=function(t,e){return t.width()<e?0:t.height()>e?-90:-45},e.prototype.autoRotateLabels=function(){if(!this.options.autoRotateLabels||this.options.vertical)return!1;for(var t=this.getMajorTickPositions(),e=this.labels,r=Math.min(e.length,t.length-1),o=0,i=0;i<r;i++){var n=Math.abs(t[i+1]-t[i]),s=e[i].box,a=this.autoRotateLabelAngle(s,n);if(0!==a&&(o=a),-90===o)break}if(0!==o){for(var l=0;l<e.length;l++)e[l].options.rotation=o,e[l].reflow(new Ht);return!0}},e.prototype.arrangeTitle=function(){var t=this.options,e=this.title,r=t.labels.mirror,o=t.vertical;e&&(o?(e.options.align=r?d:h,e.options.vAlign=e.options.position):(e.options.align=e.options.position,e.options.vAlign=r?v:s),e.reflow(this.box))},e.prototype.arrangeNotes=function(){for(var t=0;t<this.notes.length;t++){var e=this.notes[t],r=e.options.value,o=void 0;st(r)?(this.shouldRenderNote(r)?e.show():e.hide(),o=this.noteSlot(r)):e.hide(),e.reflow(o||this.lineBox())}},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.alignTo=function(t){var e=t.lineBox(),r=this.options.vertical,o=r?_:m;this.box.snapTo(e,o),r?this.box.shrink(0,this.lineBox().height()-e.height()):this.box.shrink(this.lineBox().width()-e.width(),0),this.box[o+1]-=this.lineBox()[o+1]-e[o+1],this.box[o+2]-=this.lineBox()[o+2]-e[o+2]},e.prototype.axisLabelText=function(t,e,r){var o,i=this,n=U(e),s=function(){return e.format?i.chartService.format.localeAuto(e.format,[t],e.culture):t};n?o=n(Object.assign({},r,{get text(){return s()},value:t,format:e.format,culture:e.culture})):o=s();return o},e.prototype.slot=function(t,e,r){var o=this.getSlot(t,e,r);if(o)return o.toRect()},e.prototype.contentBox=function(){var t=this.box.clone(),e=this.labels;if(e.length){var r=this.options.vertical?_:m;if(this.chartService.isPannable(r)){var o=this.maxLabelOffset();t[r+1]-=o.start,t[r+2]+=o.end}else{e[0].options.visible&&t.wrap(e[0].box);var i=e[e.length-1];i.options.visible&&t.wrap(i.box)}}return t},e.prototype.maxLabelOffset=function(){for(var t=this.options,e=t.vertical,r=t.reverse,o=this.labelsBetweenTicks(),i=this.getLabelsTickPositions(),n=e?_:m,s=this.labels,a=r?1:0,l=r?0:1,p=0,c=0,h=0;h<s.length;h++){var u=s[h],f=this.labelTickIndex(u),d=void 0,v=void 0;o?(d=i[f+a],v=i[f+l]):d=v=i[f],p=Math.max(p,d-u.box[n+1]),c=Math.max(c,u.box[n+2]-v)}return{start:p,end:c}},e.prototype.limitRange=function(t,e,r,o,i){var n=this.options;if(t<r&&i<0&&(!st(n.min)||n.min<=r)||o<e&&i>0&&(!st(n.max)||o<=n.max))return null;if(e<r&&i>0||o<t&&i<0)return{min:t,max:e};var s=e-t,a=t,l=e;return t<r&&i<0?(a=dt(t,r,o),l=dt(t+s,r+s,o)):e>o&&i>0&&(l=dt(e,r,o),a=dt(e-s,r,o-s)),{min:a,max:l}},e.prototype.valueRange=function(){return{min:this.seriesMin,max:this.seriesMax}},e.prototype.lineDir=function(){var t=this.options;return(t.vertical?-1:1)*(t.reverse?-1:1)},e.prototype.lineInfo=function(){var t=this.options.vertical,e=this.lineBox(),r=t?e.height():e.width(),o=t?_:m,i=this.lineDir(),n=o+(1===i?1:2).toString();return{axis:o,axisOrigin:n,axisDir:i,lineBox:e,lineSize:r,lineStart:e[n]}},e.prototype.pointOffset=function(t){var e=this.lineInfo(),r=e.axis,o=e.axisDir,i=e.axisOrigin,n=e.lineBox,s=e.lineSize;return(o>0?t[r]-n[i]:n[i]-t[r])/s},e.prototype.scaleToDelta=function(t,e){var r=dt(t,-.999,.999);return r>0?e*Math.min(1,r):e-e/(1+r)},e.prototype.labelsBetweenTicks=function(){return!this.options.justified},e.prototype.prepareUserOptions=function(){},e}(Yt);wt(Re,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:n,visible:!0},title:{visible:!0,position:a},majorTicks:{align:"outside",size:4,skip:0,step:1},minorTicks:{align:"outside",size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:"outside",minorTickType:"none",majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:n,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1});var Ie=Re,Be="days",Le="years",De={years:31536e6,months:26784e5,weeks:6048e5,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1};function ze(t,e){return t.getTime()-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset())}function Ve(t,e){return new Date(t.getTime()+e)}function Ne(t){var e;return t instanceof Date?e=t:t&&(e=new Date(t)),e}function He(t,e){return 0===e&&23===t.getHours()&&(t.setHours(t.getHours()+2),!0)}function Ue(t,e,r,o){var i=t;if(t){var n=Ne(t),s=n.getHours();r===Le?He(i=new Date(n.getFullYear()+e,0,1),0):"months"===r?He(i=new Date(n.getFullYear(),n.getMonth()+e,1),s):"weeks"===r?He(i=Ue(function(t,e){void 0===e&&(e=0);var r=0,o=t.getDay();if(!isNaN(o))for(;o!==e;)0===o?o=6:o--,r++;return Ve(t,864e5*-r)}(n,o),7*e,Be),s):r===Be?He(i=new Date(n.getFullYear(),n.getMonth(),n.getDate()+e),s):"hours"===r?i=function(t,e){var r=new Date(t);r.setMinutes(0,0,0);var o=6e4*(t.getTimezoneOffset()-r.getTimezoneOffset());return Ve(r,o+36e5*e)}(n,e):"minutes"===r?(i=Ve(n,6e4*e)).getSeconds()>0&&i.setSeconds(0):"seconds"===r?i=Ve(n,1e3*e):"milliseconds"===r&&(i=Ve(n,e)),"milliseconds"!==r&&i.getMilliseconds()>0&&i.setMilliseconds(0)}return i}function Fe(t,e,r){return Ue(Ne(t),0,e,r)}function Ge(t,e,r){var o=Ne(t);return o&&Fe(o,e,r).getTime()===o.getTime()?o:Ue(o,1,e,r)}function We(t,e){return t&&e?t.getTime()-e.getTime():-1}function Ke(t,e){return t.getTime()-e}function Xe(t){if(b(t)){for(var e=[],r=0;r<t.length;r++)e.push(Xe(t[r]));return e}if(t)return Ne(t).getTime()}function Ye(t,e){return t&&e?Xe(t)===Xe(e):t===e}function qe(t,e,r){return ze(t,e)/De[r]}function Ze(t,e,r,o){var i=Ne(t),n=Ne(e);return("months"===r?i.getMonth()-n.getMonth()+12*(i.getFullYear()-n.getFullYear())+qe(i,new Date(i.getFullYear(),i.getMonth()),Be)/new Date(i.getFullYear(),i.getMonth()+1,0).getDate():r===Le?i.getFullYear()-n.getFullYear()+Ze(i,new Date(i.getFullYear(),0),"months",1)/12:r===Be||"weeks"===r?qe(i,n,r):Ke(i,e)/De[r])/o}function Qe(t,e,r){return r===Le?e.getFullYear()-t.getFullYear():"months"===r?12*Qe(t,e,Le)+e.getMonth()-t.getMonth():r===Be?Math.floor(Ke(e,t)/864e5):Math.floor(Ke(e,t)/De[r])}function $e(t,e){return A(e)&&t.parseDate(e)||Ne(e)}function Je(t,e){if(b(e)){for(var r=[],o=0;o<e.length;o++)r.push($e(t,e[o]));return r}return $e(t,e)}function tr(t,e){return P(t.weekStartDay)?t.weekStartDay:e&&e.firstDay?e.firstDay():0}var er=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this._ticks={}},e.prototype.categoriesHash=function(){return""},e.prototype.clone=function(){var t=new e(Object.assign({},this.options,{categories:this.options.srcCategories}),this.chartService);return t.createLabels(),t},e.prototype.initUserOptions=function(t){var e=t.categories||[],r=st(t.min),o=st(t.max);if(t.srcCategories=t.categories=e,(r||o)&&e.length){var i,n=r?Math.floor(t.min):0;i=o?t.justified?Math.floor(t.max)+1:Math.ceil(t.max):e.length,t.categories=t.categories.slice(n,i)}return t},e.prototype.rangeIndices=function(){var t=this.options,e=t.categories.length||1;return{min:P(t.min)?t.min%1:0,max:P(t.max)&&t.max%1!=0&&t.max<this.totalRange().max?e-(1-t.max%1):e-(t.justified?1:0)}},e.prototype.totalRangeIndices=function(t){var e,r=this.options,o=P(r.min)?r.min:0;if(e=P(r.max)?r.max:P(r.min)?o+r.categories.length:this.totalRange().max||1,t){var i=this.totalRange();o=dt(o,0,i.max),e=dt(e,0,i.max)}return{min:o,max:e}},e.prototype.range=function(){var t=this.options;return{min:P(t.min)?t.min:0,max:P(t.max)?t.max:this.totalRange().max}},e.prototype.roundedRange=function(){return this.range()},e.prototype.totalRange=function(){var t=this.options;return{min:0,max:Math.max(this._seriesMax||0,t.srcCategories.length)-(t.justified?1:0)}},e.prototype.scaleOptions=function(){var t=this.rangeIndices(),e=t.min,r=t.max,o=this.lineBox();return{scale:(this.options.vertical?o.height():o.width())/(r-e||1)*(this.options.reverse?-1:1),box:o,min:e,max:r}},e.prototype.arrangeLabels=function(){t.prototype.arrangeLabels.call(this),this.hideOutOfRangeLabels()},e.prototype.hideOutOfRangeLabels=function(){var t=this.box,e=this.labels;if(e.length>0){var r=this.options.vertical?_:m,o=t[r+1],i=t[r+2],n=e[0],s=ft(e);(n.box[r+1]>i||n.box[r+2]<o)&&(n.options.visible=!1),(s.box[r+1]>i||s.box[r+2]<o)&&(s.options.visible=!1)}},e.prototype.getMajorTickPositions=function(){return this.getTicks().majorTicks},e.prototype.getMinorTickPositions=function(){return this.getTicks().minorTicks},e.prototype.getLabelsTickPositions=function(){return this.getTicks().labelTicks},e.prototype.tickIndices=function(t){for(var e=this.rangeIndices(),r=e.min,o=e.max,i=Math.ceil(o),n=Math.floor(r),s=[];n<=i;)s.push(n),n+=t;return s},e.prototype.getTickPositions=function(t){for(var e=this.options,r=e.vertical,o=e.reverse,i=this.scaleOptions(),n=i.scale,s=i.box,a=i.min,l=s[(r?_:m)+(o?2:1)],p=this.tickIndices(t),c=[],h=0;h<p.length;h++)c.push(l+gt(n*(p[h]-a),3));return c},e.prototype.getTicks=function(){var t=this.options,e=this._ticks,r=this.rangeIndices(),o=this.lineBox(),i=o.getHash()+r.min+","+r.max+t.reverse+t.justified;if(e._hash!==i){var n=t.minorTicks.visible||t.minorGridLines.visible;e._hash=i,e.labelTicks=this.getTickPositions(1),e.majorTicks=this.filterOutOfRangePositions(e.labelTicks,o),e.minorTicks=n?this.filterOutOfRangePositions(this.getTickPositions(.5),o):[]}return e},e.prototype.filterOutOfRangePositions=function(t,e){if(!t.length)return t;for(var r=this.options.vertical?_:m,o=function(t){return e[r+1]<=t&&t<=e[r+2]},i=t.length-1,n=0;!o(t[n])&&n<=i;)n++;for(var s=i;!o(t[s])&&s>=0;)s--;return t.slice(n,s+1)},e.prototype.lineInfo=function(){var t=this.options,e=t.vertical,r=t.reverse,o=this.lineBox(),i=e?o.height():o.width(),n=e?_:m,s=r?-1:1,a=n+(1===s?1:2).toString();return{axis:n,axisOrigin:a,axisDir:s,lineBox:o,lineSize:i,lineStart:o[a]}},e.prototype.lineDir=function(){return this.options.reverse?-1:1},e.prototype.getSlot=function(t,e,r){var o=this.options,i=o.reverse,n=o.justified,s=this.scaleOptions(),a=s.scale,l=s.box,p=s.min,c=this.lineInfo(),h=c.axis,u=c.lineStart,f=l.clone(),d=!st(e),v=_t(t,0),y=_t(e,v);y=Math.max(y-1,v);var g=u+(v-p)*a,m=u+((y=Math.max(v,y))+1-p)*a;return d&&n&&(m=g),r&&(g=dt(g,l[h+1],l[h+2]),m=dt(m,l[h+1],l[h+2])),f[h+1]=i?m:g,f[h+2]=i?g:m,f},e.prototype.limitSlot=function(t){var e=this.options.vertical?_:m,r=this.lineBox(),o=t.clone();return o[e+1]=dt(t[e+1],r[e+1],r[e+2]),o[e+2]=dt(t[e+2],r[e+1],r[e+2]),o},e.prototype.slot=function(e,r,o){var i=Math.floor(this.options.min||0),n=e,s=r;return"string"==typeof n?n=this.categoryIndex(n):P(n)&&(n-=i),"string"==typeof s?s=this.categoryIndex(s):P(s)&&(s-=i),t.prototype.slot.call(this,n,s,o)},e.prototype.pointCategoryIndex=function(t){var e=this.options,r=e.reverse,o=e.justified,i=e.vertical?_:m,n=this.scaleOptions(),s=n.scale,a=n.box,l=n.min,p=n.max,c=r?p:l,h=a[i+1],u=a[i+2],f=t[i];if(f<h||f>u)return null;var d=c+(f-h)/s,v=d%1;return o?d=Math.round(d):0===v&&d>0&&d--,Math.floor(d)},e.prototype.getCategory=function(t){var e=this.pointCategoryIndex(t);return null===e?null:this.options.categories[e]},e.prototype.categoryIndex=function(t){return this.totalIndex(t)-Math.floor(this.options.min||0)},e.prototype.categoryAt=function(t,e){var r=this.options;return(e?r.srcCategories:r.categories)[t]},e.prototype.categoriesCount=function(){return(this.options.categories||[]).length},e.prototype.translateRange=function(t){var e=this.options,r=this.lineBox(),o=e.vertical?r.height():r.width(),i=e.categories.length,n=gt(t/(o/i),10);return{min:n,max:i+n}},e.prototype.scaleRange=function(t,e){var r=Math.abs(this.pointOffset(e)),o=this.totalRangeIndices(),i=o.max-o.min,n=this.scaleToDelta(t,i),s=r*n,a=(1-r)*n,l=o.min+s,p=o.max-a;return p-l<.1&&(p=l+.1),{min:l,max:p}},e.prototype.zoomRange=function(t,e){var r=this.totalRange(),o=r.min,i=r.max,n=this.scaleRange(t,e);return{min:dt(n.min,o,i),max:dt(n.max,o,i)}},e.prototype.labelsCount=function(){var t=this.labelsRange();return t.max-t.min},e.prototype.labelsRange=function(){var t=this.options,e=t.justified,r=t.labels,o=this.totalRangeIndices(!0),i=o.min,n=o.max,s=Math.floor(i);return e?(i=Math.ceil(i),n=Math.floor(n)):(i=Math.floor(i),n=Math.ceil(n)),{min:(i>r.skip?r.skip+r.step*Math.ceil((i-r.skip)/r.step):r.skip)-s,max:(t.categories.length?n+(e?1:0):0)-s}},e.prototype.createAxisLabel=function(t,e,r){var o=this.options,i=o.dataItems?o.dataItems[t]:null,n=_t(o.categories[t],"");r.dataItem=i;var s=this.axisLabelText(n,e,r);return new de(n,s,t,i,e)},e.prototype.shouldRenderNote=function(t){var e=this.totalRangeIndices();return Math.floor(e.min)<=t&&t<=Math.ceil(e.max)},e.prototype.noteSlot=function(t){var e=this.options,r=t-Math.floor(e.min||0);return this.getSlot(r)},e.prototype.arrangeNotes=function(){t.prototype.arrangeNotes.call(this),this.hideOutOfRangeNotes()},e.prototype.hideOutOfRangeNotes=function(){var t=this.notes,e=this.box;if(t&&t.length)for(var r=this.options.vertical?_:m,o=e[r+1],i=e[r+2],n=0;n<t.length;n++){var s=t[n];s.box&&(i<s.box[r+1]||s.box[r+2]<o)&&s.hide()}},e.prototype.pan=function(t){var e=this.totalRangeIndices(!0),r=this.scaleOptions().scale,o=gt(t/r,10),i=this.totalRange(),n=e.min+o,s=e.max+o;return this.limitRange(n,s,0,i.max,o)},e.prototype.pointsRange=function(t,e){var r=this.options,o=r.reverse,i=r.vertical?_:m,n=this.totalRangeIndices(!0),s=this.scaleOptions(),a=s.scale,l=s.box[i+(o?2:1)],p=t[i]-l,c=e[i]-l,h=n.min+p/a,u=n.min+c/a,f=Math.min(h,u),d=Math.max(h,u);if(d-f>=.01)return{min:f,max:d}},e.prototype.valueRange=function(){return this.range()},e.prototype.totalIndex=function(t){var e=this.options;return this._categoriesMap?this._categoriesMap.get(t):function(t,e){if(t instanceof Date){for(var r=e.length,o=0;o<r;o++)if(Ye(e[o],t))return o;return-1}return e.indexOf(t)}(t,e.srcCategories)},e.prototype.currentRangeIndices=function(){var t=this.options,e=0;return P(t.min)&&(e=Math.floor(t.min)),{min:e,max:P(t.max)?t.justified?Math.floor(t.max):Math.ceil(t.max)-1:this.totalCount()-1}},e.prototype.mapCategories=function(){if(!this._categoriesMap)for(var t=this._categoriesMap=new q,e=this.options.srcCategories,r=0;r<e.length;r++)t.set(e[r],r)},e.prototype.totalCount=function(){return Math.max(this.options.srcCategories.length,this._seriesMax||0)},e}(Ie);wt(er,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:n},labels:{zIndex:1},justified:!1,_deferLabels:!0});var rr=er,or={milliseconds:"HH:mm:ss.fff",seconds:"HH:mm:ss",minutes:"HH:mm",hours:"HH:mm",days:"M/d",weeks:"M/d",months:"MMM 'yy",years:"yyyy"},ir=["milliseconds","seconds","minutes","hours",Be,"weeks","months",Le];function nr(t){var e=t._range;return e||((e=t._range=Ct(t)).min=Ne(e.min),e.max=Ne(e.max)),e}var sr=function(t){this.options=t};sr.prototype.displayIndices=function(){return{min:0,max:1}},sr.prototype.displayRange=function(){return{}},sr.prototype.total=function(){return{}},sr.prototype.valueRange=function(){return{}},sr.prototype.valueIndex=function(){return-1},sr.prototype.values=function(){return[]},sr.prototype.totalIndex=function(){return-1},sr.prototype.valuesCount=function(){return 0},sr.prototype.totalCount=function(){return 0},sr.prototype.dateAt=function(){return null};var ar=function(t,e,r){this.options=r,r.baseUnitStep=r.baseUnitStep||1;var o=r.roundToBaseUnit,i=r.justified;this.start=Ue(t,0,r.baseUnit,r.weekStartDay);var n=this.roundToTotalStep(e),s=!i&&Ye(e,n)&&!r.justifyEnd;this.end=this.roundToTotalStep(e,!i,s?1:0);var a=r.min||t;this.valueStart=this.roundToTotalStep(a),this.displayStart=o?this.valueStart:a;var l=r.max;if(l){var p=!i&&Ye(l,this.roundToTotalStep(l))?-1:0;this.valueEnd=this.roundToTotalStep(l,!1,p),this.displayEnd=o?this.roundToTotalStep(l,!i):r.max}else this.valueEnd=n,this.displayEnd=o||s?this.end:e;this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))};function lr(t,e,r){for(var o,i,n,s=nr(t.categories),a=(t.max||s.max)-(t.min||s.min),l=t.autoBaseUnitSteps,p=t.maxDateGroups,c="fit"===t.baseUnit,h=e?ir.indexOf(e):0,u=c?ir[h++]:t.baseUnit,f=a/De[u],d=f;!i||f>=p;){o=o||l[u].slice(0);do{n=o.shift()}while(n&&e===u&&n<r);if(n)f=d/(i=n);else{if(u===ft(ir)){i=Math.ceil(d/p);break}if(!c){f>p&&(i=Math.ceil(d/p));break}u=ir[h++]||ft(ir),d=a/De[u],o=null}}t.baseUnitStep=i,t.baseUnit=u}function pr(t){var e=(t.baseUnit||"").toLowerCase();return"fit"!==e&&!Z(e,ir)&&function(t){for(var e,r,o=t.categories,i=st(o)?o.length:0,n=u,s=0;s<i;s++){var a=o[s];if(a&&e){var l=ze(a,e);l>0&&(r=(n=Math.min(n,l))>=31536e6?Le:n>=24192e5?"months":n>=6048e5?"weeks":n>=864e5?Be:n>=36e5?"hours":n>=6e4?"minutes":"seconds")}e=a}t.baseUnit=r||Be}(t),"fit"!==e&&"auto"!==t.baseUnitStep||lr(t),t}ar.prototype.displayRange=function(){return{min:this.displayStart,max:this.displayEnd}},ar.prototype.displayIndices=function(){if(!this._indices){var t=this.options,e=t.baseUnit,r=t.baseUnitStep,o=Ze(this.displayStart,this.valueStart,e,r),i=Ze(this.displayEnd,this.valueStart,e,r);this._indices={min:o,max:i}}return this._indices},ar.prototype.total=function(){return{min:this.start,max:this.end}},ar.prototype.totalCount=function(){return this.totalIndex(this.end)+(this.options.justified?1:0)},ar.prototype.valueRange=function(){return{min:this.valueStart,max:this.valueEnd}},ar.prototype.valueIndex=function(t){var e=this.options;return Math.floor(Ze(t,this.valueStart,e.baseUnit,e.baseUnitStep))},ar.prototype.totalIndex=function(t){var e=this.options;return Math.floor(Ze(t,this.start,e.baseUnit,e.baseUnitStep))},ar.prototype.dateIndex=function(t){var e=this.options;return Ze(t,this.valueStart,e.baseUnit,e.baseUnitStep)},ar.prototype.valuesCount=function(){return this.valueIndex(this.valueEnd)+1},ar.prototype.values=function(){var t=this._values;if(!t){var e=this.options,r=this.valueRange();this._values=t=[];for(var o=r.min;o<=r.max;)t.push(o),o=Ue(o,e.baseUnitStep,e.baseUnit,e.weekStartDay)}return t},ar.prototype.dateAt=function(t,e){var r=this.options;return Ue(e?this.start:this.valueStart,r.baseUnitStep*t,r.baseUnit,r.weekStartDay)},ar.prototype.roundToTotalStep=function(t,e,r){var o=this.options,i=o.baseUnit,n=o.baseUnitStep,s=o.weekStartDay,a=this.start,l=Ze(t,a,i,n),p=e?Math.ceil(l):Math.floor(l);return r&&(p+=r),Ue(a,p*n,i,s)};var cr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){var t=new e(Object.assign({},this.options),this.chartService);return t.createLabels(),t},e.prototype.categoriesHash=function(){var t=this.dataRange.total().min;return this.options.baseUnit+this.options.baseUnitStep+t},e.prototype.initUserOptions=function(t){return t},e.prototype.initFields=function(){t.prototype.initFields.call(this);var e=this.chartService,r=e.intl,o=this.options,i=o.categories||[];if(i._parsed||((i=Je(r,i))._parsed=!0),o=j({roundToBaseUnit:!0},o,{categories:i,min:$e(r,o.min),max:$e(r,o.max),weekStartDay:tr(o,r)}),e.panning&&e.isPannable(o.vertical?_:m)&&(o.roundToBaseUnit=!1),o.userSetBaseUnit=o.userSetBaseUnit||o.baseUnit,o.userSetBaseUnitStep=o.userSetBaseUnitStep||o.baseUnitStep,this.options=o,o.srcCategories=i,i.length>0){var n=nr(i),s=o.maxDivisions;if(this.dataRange=new ar(n.min,n.max,pr(o)),s){var a=this.dataRange.displayRange(),l=Object.assign({},o,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:a.min,max:a.max,maxDateGroups:s}),p=this.dataRange.options;lr(l,p.baseUnit,p.baseUnitStep),this.divisionRange=new ar(n.min,n.max,l)}else this.divisionRange=this.dataRange}else o.baseUnit=o.baseUnit||Be,this.dataRange=this.divisionRange=new sr(o);this.rangeLabels=[]},e.prototype.tickIndices=function(e){var r=this.dataRange,o=this.divisionRange,i=o.valuesCount();if(!this.options.maxDivisions||!i)return t.prototype.tickIndices.call(this,e);var n=[],s=o.values(),a=0;this.options.justified||(s=s.concat(o.dateAt(i)),a=.5);for(var l=0;l<s.length;l++)if(n.push(r.dateIndex(s[l])+a),1!==e&&l>=1){var p=n.length-1;n.splice(l,0,n[p-1]+(n[p]-n[p-1])*e)}return n},e.prototype.shouldRenderNote=function(t){var e=this.range(),r=this.options.categories||[];return We(t,e.min)>=0&&We(t,e.max)<=0&&r.length},e.prototype.parseNoteValue=function(t){return $e(this.chartService.intl,t)},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.translateRange=function(t){var e=this.options,r=e.baseUnit,o=e.weekStartDay,i=e.vertical,n=this.lineBox(),s=i?n.height():n.width(),a=this.range(),l=s/(a.max-a.min),p=gt(t/l,10);if(a.min&&a.max){var c=Ve(e.min||a.min,p),h=Ve(e.max||a.max,p);a={min:Ue(c,0,r,o),max:Ue(h,0,r,o)}}return a},e.prototype.labelsRange=function(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}},e.prototype.pan=function(t){if(this.isEmpty())return null;var e=this.options,r=this.lineBox(),o=e.vertical?r.height():r.width(),i=this.dataRange.displayRange(),n=i.min,s=i.max,a=this.dataRange.total(),l=gt(t/(o/(s-n)),10)*(e.reverse?-1:1),p=Ve(n,l),c=Ve(s,l),h=this.limitRange(Xe(p),Xe(c),Xe(a.min),Xe(a.max),l);return h?(h.min=Ne(h.min),h.max=Ne(h.max),h.baseUnit=e.baseUnit,h.baseUnitStep=e.baseUnitStep||1,h.userSetBaseUnit=e.userSetBaseUnit,h.userSetBaseUnitStep=e.userSetBaseUnitStep,h):void 0},e.prototype.pointsRange=function(e,r){if(this.isEmpty())return null;var o=t.prototype.pointsRange.call(this,e,r),i=this.dataRange.displayRange(),n=this.dataRange.displayIndices(),s=Ke(i.max,i.min)/(n.max-n.min),a=this.options;return{min:Ve(i.min,o.min*s),max:Ve(i.min,o.max*s),baseUnit:a.userSetBaseUnit||a.baseUnit,baseUnitStep:a.userSetBaseUnitStep||a.baseUnitStep}},e.prototype.scaleRange=function(t,e){if(this.isEmpty())return{};var r=this.options,o="fit"===r.userSetBaseUnit,i=this.dataRange.total(),n=this.dataRange.displayRange(),s=n.min,a=n.max,l=Math.abs(this.pointOffset(e)),p=a-s,c=this.scaleToDelta(t,p),h=Math.round(l*c),u=Math.round((1-l)*c),f=this.dataRange.options.baseUnit,d=new Date(s.getTime()+h),v=new Date(a.getTime()-u);if(o){var y,g,m=r.autoBaseUnitSteps,_=r.maxDateGroups,b=ft(m[f])*_*De[f],x=Ke(a,s),w=Ke(v,d),C=ir.indexOf(f);if(w<De[f]&&"milliseconds"!==f)f=ir[C-1],d=Ve(s,g=(x-(_-1)*(y=ft(m[f]))*De[f])/2),v=Ve(a,-g);else if(w>b&&f!==Le){var O=0;do{C++,f=ir[C],O=0,g=2*De[f];do{y=m[f][O],O++}while(O<m[f].length&&g*y<x)}while(f!==Le&&g*y<x);(g=(g*y-x)/2)>0&&(d=Ve(s,-g),v=Ve(a,g),d=Ve(d,dt(v,i.min,i.max)-v),v=Ve(v,dt(d,i.min,i.max)-d))}}return d&&v&&Ke(v,d)>0?{min:d,max:v,baseUnit:r.userSetBaseUnit||r.baseUnit,baseUnitStep:r.userSetBaseUnitStep||r.baseUnitStep}:void 0},e.prototype.zoomRange=function(t,e){var r=this.dataRange.total(),o=this.scaleRange(t,e);return o&&(o.min<r.min&&(o.min=r.min),o.max>r.max&&(o.max=r.max)),o},e.prototype.range=function(){return this.dataRange.displayRange()},e.prototype.createLabels=function(){t.prototype.createLabels.call(this),this.createRangeLabels()},e.prototype.clearLabels=function(){t.prototype.clearLabels.call(this),this.rangeLabels=[]},e.prototype.arrangeLabels=function(){this.arrangeRangeLabels(),t.prototype.arrangeLabels.call(this)},e.prototype.arrangeRangeLabels=function(){var t=this.options,e=this.rangeLabels;if(0!==e.length){var r=this.lineBox(),o=t.vertical,i=t.rangeLabels.mirror||t.labels.mirror,n=e[0];if(n){var s=o?r.y1-n.box.height()/2:r.x1;this.positionLabel(n,i,s)}var a=e[1];if(a){var l=o?r.y2-a.box.height()/2:r.x2;this.positionLabel(a,i,l)}}},e.prototype.autoRotateLabels=function(){t.prototype.autoRotateLabels.call(this),this.autoRotateRangeLabels()},e.prototype.hideOutOfRangeLabels=function(){t.prototype.hideOutOfRangeLabels.call(this),this.hideOverlappingLabels()},e.prototype.hideOverlappingLabels=function(){var t=this.rangeLabels,e=this.labels;if(0!==t.length){var r=t[0];if(r&&r.options.visible)for(var o=0;o<e.length;o++){if(!s(r,e[o]))break}var i=t[1];if(i&&i.options.visible)for(var n=e.length-1;n>0;--n){if(!s(i,e[n]))break}}function s(t,e){return!(e.options.visible&&!e.box.overlaps(t.box))&&(e.options.visible=!1,!0)}},e.prototype.contentBox=function(){for(var e=t.prototype.contentBox.call(this),r=this.rangeLabels,o=0;o<r.length;o++){var i=r[o];i.options.visible&&e.wrap(i.box)}return e},e.prototype.createAxisLabel=function(t,e,r){void 0===r&&(r={});var o=this.options,i=o.dataItems&&!o.maxDivisions?o.dataItems[t]:null,n=this.divisionRange.dateAt(t),s=e.dateFormats[this.divisionRange.options.baseUnit];e.format=e.format||s,r.dataItem=i;var a=this.axisLabelText(n,e,r);if(a)return new de(n,a,t,i,e)},e.prototype.createRangeLabels=function(){var t=this,e=this.divisionRange,r=e.displayStart,o=e.displayEnd,i=this.options,n=Object.assign({},i.labels,i.rangeLabels,{align:a,zIndex:i.zIndex});if(!0===n.visible){this.normalizeLabelRotation(n),n.alignRotation=a,"auto"===n.rotation&&(n.rotation=0,i.autoRotateRangeLabels=!0);var s=n.dateFormats[this.divisionRange.options.baseUnit];n.format=n.format||s;var l=function(e,r,o){if(o){var i=new de(r,o,e,null,n);t.append(i),t.rangeLabels.push(i)}};l(0,r,this.axisLabelText(r,n,{index:0,count:2})),l(1,o,this.axisLabelText(o,n,{index:1,count:2}))}},e.prototype.autoRotateRangeLabels=function(){var t=this,e=this.rangeLabels;if(this.options.autoRotateRangeLabels&&!this.options.vertical&&2===e.length){var r=function(e,r,o){var i=2*Math.abs(r[o+1]-r[o]),n=t.autoRotateLabelAngle(e.box,i);0!==n&&(e.options.rotation=n,e.reflow(new Ht))},o=this.getMajorTickPositions();r(e[0],o,0),r(e[1],o,o.length-2)}},e.prototype.categoryIndex=function(t){return this.dataRange.valueIndex(t)},e.prototype.slot=function(t,e,r){var o=this.dataRange,i=t,n=e;i instanceof Date&&(i=o.dateIndex(i)),n instanceof Date&&(n=o.dateIndex(n));var s=this.getSlot(i,n,r);if(s)return s.toRect()},e.prototype.getSlot=function(e,r,o){var i=e,n=r;return"object"==typeof i&&(i=this.categoryIndex(i)),"object"==typeof n&&(n=this.categoryIndex(n)),t.prototype.getSlot.call(this,i,n,o)},e.prototype.valueRange=function(){var t=nr(this.options.srcCategories);return{min:Ne(t.min),max:Ne(t.max)}},e.prototype.categoryAt=function(t,e){return this.dataRange.dateAt(t,e)},e.prototype.categoriesCount=function(){return this.dataRange.valuesCount()},e.prototype.rangeIndices=function(){return this.dataRange.displayIndices()},e.prototype.labelsBetweenTicks=function(){return!this.divisionRange.options.justified},e.prototype.prepareUserOptions=function(){this.isEmpty()||(this.options.categories=this.dataRange.values())},e.prototype.getCategory=function(t){var e=this.pointCategoryIndex(t);return null===e?null:this.dataRange.dateAt(e)},e.prototype.totalIndex=function(t){return this.dataRange.totalIndex(t)},e.prototype.currentRangeIndices=function(){var t=this.dataRange.valueRange();return{min:this.dataRange.totalIndex(t.min),max:this.dataRange.totalIndex(t.max)}},e.prototype.totalRange=function(){return this.dataRange.total()},e.prototype.totalCount=function(){return this.dataRange.totalCount()},e.prototype.isEmpty=function(){return!this.options.srcCategories.length},e.prototype.roundedRange=function(){if(!1!==this.options.roundToBaseUnit||this.isEmpty())return this.range();var t=this.options,e=nr(t.srcCategories);return new ar(e.min,e.max,Object.assign({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:t.justified})).displayRange()},e}(rr);wt(cr,{type:p,labels:{dateFormats:or},rangeLabels:{visible:!1},autoBaseUnitSteps:{milliseconds:[1,10,100],seconds:[1,2,5,15,30],minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10});var hr=cr;function ur(t,e){return gt(Math.floor(t/e)*e,10)}function fr(t,e){return gt(Math.ceil(t/e)*e,10)}function dr(t){return Math.max(Math.min(t,3e5),-3e5)}var vr=Math.pow(10,-9),yr=function(t){function e(e,r,o,i){t.call(this,Object.assign({},o,{seriesMin:e,seriesMax:r}),i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=function(t,e,r){var o=r.narrowRange,i=function(t,e,r){if(!t&&!e)return 0;var o;if(t>=0&&e>=0){var i=t===e?0:t;if(!1===r||!r&&(e-i)/e>.2)return 0;o=Math.max(0,i-(e-i)/2)}else o=t;return o}(t,e,o),n=function(t,e,r){if(!t&&!e)return 1;var o;if(t<=0&&e<=0){var i=t===e?0:e,n=Math.abs((i-t)/i);if(!1===r||!r&&n>.2)return 0;o=Math.min(0,i-(t-i)/2)}else o=e;return o}(t,e,o),s=zt(i,n),a={majorUnit:s};!1!==r.roundToMajorUnit&&(i<0&&gr(i,s,1/3)&&(i-=s),n>0&&gr(n,s,1/3)&&(n+=s));return a.min=ur(i,s),a.max=fr(n,s),a}(t.seriesMin,t.seriesMax,t);return this.totalOptions=function(t,e){return{min:st(e.min)?Math.min(t.min,e.min):t.min,max:st(e.max)?Math.max(t.max,e.max):t.max,majorUnit:t.majorUnit}}(e,t),function(t,e){var r,o,i=e;if(e){!function(t,e){for(var r=0;r<e.length;r++){var o=e[r];null===t[o]&&(t[o]=void 0)}}(e,["min","max"]),r=st(e.min),o=st(e.max);var n=r||o;n&&e.min===e.max&&(e.min>0?e.min=0:e.max=1),e.majorUnit?(t.min=ur(t.min,e.majorUnit),t.max=fr(t.max,e.majorUnit)):n&&(i=j(t,e),t.majorUnit=zt(i.min,i.max))}t.minorUnit=(i.majorUnit||t.majorUnit)/5;var s=j(t,i);s.min>=s.max&&(r&&!o?s.max=s.min+s.majorUnit:!r&&o&&(s.min=s.max-s.majorUnit));return s}(e,t)},e.prototype.initFields=function(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax},e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.startValue=function(){return 0},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.getDivisions=function(t){if(0===t)return 1;var e=this.options,r=e.max-e.min;return Math.floor(gt(r/t,3))+1},e.prototype.getTickPositions=function(t,e){var r=this.options,o=this.lineInfo(),i=o.axisDir,n=o.axisOrigin,s=o.lineBox,a=t*(o.lineSize/(r.max-r.min)),l=this.getDivisions(t),p=[],c=s[n],h=0;e&&(h=e/t);for(var u=0;u<l;u++)u%h!=0&&p.push(gt(c,3)),c+=a*i;return p},e.prototype.getMajorTickPositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.getMinorTickPositions=function(){return this.getTickPositions(this.options.minorUnit)},e.prototype.getSlot=function(t,e,r){void 0===r&&(r=!1);var o=this.options,i=this.lineInfo(),n=i.axis,s=i.axisDir,a=i.lineBox,l=i.lineSize,p=i.lineStart,c=s*(l/(o.max-o.min)),h=_t(t,e||0),u=_t(e,t||0);r&&(h=dt(h,o.min,o.max),u=dt(u,o.min,o.max));var f=Math.min(h,u)-o.min,d=Math.max(h,u)-o.min,v=new Ht(a.x1,a.y1,a.x1,a.y1);return v[n+1]=dr(p+c*(s>0?f:d)),v[n+2]=dr(p+c*(s>0?d:f)),v},e.prototype.getValue=function(t){var e=this.options,r=Number(e.max),o=Number(e.min),i=this.pointOffset(t);return i<0||i>1?null:gt(o+i*(r-o),10)},e.prototype.translateRange=function(t){var e=this.options,r=e.vertical,o=e.reverse,i=e.max,n=e.min,s=this.lineInfo().lineSize,a=gt(t/(s/(i-n)),10);return!r&&!o||r&&o||(a=-a),{min:n+a,max:i+a,offset:a}},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,r){var o=this.options,i=gt(o.min+t*o.majorUnit,10),n=this.axisLabelText(i,e,r);return new de(i,n,t,null,e)},e.prototype.shouldRenderNote=function(t){var e=this.range();return e.min<=t&&t<=e.max},e.prototype.pan=function(t){var e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)},e.prototype.pointsRange=function(t,e){var r=this.getValue(t),o=this.getValue(e),i=Math.min(r,o),n=Math.max(r,o);if(this.isValidRange(i,n))return{min:i,max:n}},e.prototype.scaleRange=function(t,e){var r=Math.abs(this.pointOffset(e)),o=this.options.max-this.options.min,i=this.scaleToDelta(t,o),n=r*i,s=(1-r)*i,a=gt(this.options.min+n,10),l=gt(this.options.max-s,10);return l-a<vr&&(l=a+vr),{min:a,max:l}},e.prototype.zoomRange=function(t,e){var r=this.totalMin,o=this.totalMax,i=this.scaleRange(t,e);return{min:dt(i.min,r,o),max:dt(i.max,r,o),narrowRange:!1}},e.prototype.isValidRange=function(t,e){return e-t>vr},e}(Ie);function gr(t,e,r){var o=gt(Math.abs(t%e),10);return 0===o||o>e*(1-r)}wt(yr,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},labels:{format:"#.####################"},zIndex:1});var mr=yr,_r=function(t){function e(e,r,o,i){var n=Ne(e),s=Ne(r),a=i.intl,l=o||{};l=function(t,e,r){var o=r.min||t,i=r.max||e,n=r.baseUnit||(i&&o?function(t){var e="hours";t>=31536e6?e=Le:t>=26784e5?e="months":t>=6048e5?e="weeks":t>=864e5&&(e=Be);return e}(ze(i,o)):"hours"),s=De[n],a=r.weekStartDay||0,l=Fe(Xe(o)-1,n,a)||Ne(i),p=Ge(Xe(i)+1,n,a),c=(r.majorUnit?r.majorUnit:void 0)||fr(zt(l.getTime(),p.getTime()),s)/s,h=Qe(l,p,n),u=fr(h,c)-h,f=Math.floor(u/2),d=u-f;r.baseUnit||delete r.baseUnit;return r.baseUnit=r.baseUnit||n,r.min=r.min||Ue(l,-f,n,a),r.max=r.max||Ue(p,d,n,a),r.minorUnit=r.minorUnit||c/5,r.majorUnit=c,r}(n,s,l=j(l||{},{min:$e(a,l.min),max:$e(a,l.max),axisCrossingValue:Je(a,l.axisCrossingValues||l.axisCrossingValue),weekStartDay:tr(l,a)})),t.call(this,l,i),this.intlService=a,this.seriesMin=n,this.seriesMax=s;var p=l.weekStartDay||0;this.totalMin=Xe(Fe(Xe(n)-1,l.baseUnit,p)),this.totalMax=Xe(Ge(Xe(s)+1,l.baseUnit,p))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.getDivisions=function(t){var e=this.options;return Math.floor(Qe(e.min,e.max,e.baseUnit)/t+1)},e.prototype.getTickPositions=function(t){for(var e=this.options,r=this.lineInfo(),o=r.axisDir,i=r.lineSize,n=r.lineStart,s=this.getDivisions(t),a=i/Ke(e.max,e.min),l=e.weekStartDay||0,p=[n],c=1;c<s;c++){var h=n+Ke(Ue(e.min,c*t,e.baseUnit,l),e.min)*a*o;p.push(gt(h,3))}return p},e.prototype.getMajorTickPositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.getMinorTickPositions=function(){return this.getTickPositions(this.options.minorUnit)},e.prototype.getSlot=function(t,e,r){return mr.prototype.getSlot.call(this,$e(this.intlService,t),$e(this.intlService,e),r)},e.prototype.getValue=function(t){var e=mr.prototype.getValue.call(this,t);return null!==e?Ne(e):null},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,r){var o=this.options,i=t*o.majorUnit,n=o.weekStartDay||0,s=o.min;i>0&&(s=Ue(s,i,o.baseUnit,n));var a=e.dateFormats[o.baseUnit];e.format=e.format||a;var l=this.axisLabelText(s,e,r);return new de(s,l,t,null,e)},e.prototype.translateRange=function(t){var e=this.options,r=this.lineBox(),o=e.vertical,i=e.reverse,n=o?r.height():r.width(),s=this.range(),a=n/Ke(s.max,s.min),l=gt(t/a,10);return!o&&!i||o&&i||(l=-l),{min:Ve(e.min,l),max:Ve(e.max,l),offset:l}},e.prototype.shouldRenderNote=function(t){var e=this.range();return We(t,e.min)>=0&&We(t,e.max)<=0},e.prototype.pan=function(t){var e=this.translateRange(t,!0),r=this.limitRange(Xe(e.min),Xe(e.max),this.totalMin,this.totalMax,e.offset);if(r)return{min:Ne(r.min),max:Ne(r.max)}},e.prototype.pointsRange=function(t,e){var r=this.getValue(t),o=this.getValue(e),i=Math.min(r,o),n=Math.max(r,o);return{min:Ne(i),max:Ne(n)}},e.prototype.scaleRange=function(t,e){var r=Math.abs(this.pointOffset(e)),o=this.options.max-this.options.min,i=this.scaleToDelta(t,o),n=r*i,s=(1-r)*i,a=Ne(Xe(this.options.min)+n),l=Ne(Xe(this.options.max)-s);return l-a<1e3&&(l=Ne(Xe(a)+1e3)),{min:a,max:l}},e.prototype.zoomRange=function(t,e){var r=this.scaleRange(t,e);return{min:Ne(dt(Xe(r.min),this.totalMin,this.totalMax)),max:Ne(dt(Xe(r.max),this.totalMin,this.totalMax))}},e}(Ie);wt(_r,{type:p,majorGridLines:{visible:!0,width:1,color:n},labels:{dateFormats:or}});var br=_r,xr=function(t){function e(e,r,o,i){var n=j({majorUnit:10,min:e,max:r},o),s=n.majorUnit,a=function(t,e){var r,o=gt(Cr(t,e),10)%1;r=t<=0?e:0!==o&&(o<.3||o>.9)?Math.pow(e,Cr(t,e)+.2):Math.pow(e,Math.ceil(Cr(t,e)));return r}(r,s),l=function(t,e,r){var o=r.majorUnit,i=t;t<=0?i=e<=1?Math.pow(o,-2):1:r.narrowRange||(i=Math.pow(o,Math.floor(Cr(t,o))));return i}(e,r,n),p=function(t,e,r,o){var i=r.min,n=r.max;st(r.axisCrossingValue)&&r.axisCrossingValue<=0&&wr();st(o.max)?o.max<=0&&wr():n=e;st(o.min)?o.min<=0&&wr():i=t;return{min:i,max:n}}(l,a,n,o);n.max=p.max,n.min=p.min,n.minorUnit=o.minorUnit||gt(s-1,10),t.call(this,n,i),this.totalMin=st(o.min)?Math.min(l,o.min):l,this.totalMax=st(o.max)?Math.max(a,o.max):a,this.logMin=gt(Cr(p.min,s),10),this.logMax=gt(Cr(p.max,s),10),this.seriesMin=e,this.seriesMax=r,this.createLabels()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.startValue=function(){return this.options.min},e.prototype.getSlot=function(t,e,r){var o=this.options,i=this.logMin,n=this.logMax,s=o.majorUnit,a=o.min,l=o.max,p=this.lineInfo(),c=p.axis,h=p.axisDir,u=p.lineBox,f=p.lineSize,d=p.lineStart,v=h*(f/(n-i)),y=_t(t,e||1),g=_t(e,t||1);if(y<=0||g<=0)return null;r&&(y=dt(y,a,l),g=dt(g,a,l)),y=Cr(y,s),g=Cr(g,s);var m=Math.min(y,g)-i,_=Math.max(y,g)-i,b=new Ht(u.x1,u.y1,u.x1,u.y1);return b[c+1]=dr(d+v*(h>0?m:_)),b[c+2]=dr(d+v*(h>0?_:m)),b},e.prototype.getValue=function(t){var e=this.options,r=this.logMin,o=this.logMax,i=e.majorUnit,n=this.lineInfo(),s=n.axis,a=n.axisDir,l=n.lineStart,p=n.lineSize,c=(o-r)/p,h=a*(t[s]-l);if(h<0||h>p)return null;var u=r+h*c;return gt(Math.pow(i,u),10)},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.translateRange=function(t){var e=this.options,r=this.logMin,o=this.logMax,i=e.reverse,n=e.vertical,s=e.majorUnit,a=this.lineBox(),l=n?a.height():a.width(),p=gt(t/(l/(o-r)),10);return!n&&!i||n&&i||(p=-p),{min:Math.pow(s,r+p),max:Math.pow(s,o+p),offset:p}},e.prototype.labelsCount=function(){var t=Math.floor(this.logMax);return Math.floor(t-this.logMin)+1},e.prototype.getMajorTickPositions=function(){var t=[];return this.traverseMajorTicksPositions((function(e){t.push(e)}),{step:1,skip:0}),t},e.prototype.createTicks=function(t){var e=this.options,r=e.majorTicks,o=e.minorTicks,i=e.vertical,n=e.labels.mirror,s=this.lineBox(),a={vertical:i};function l(e,r){a.tickX=n?s.x2:s.x2-r.size,a.tickY=n?s.y1-r.size:s.y1,a.position=e,t.append(Ee(a,r))}return r.visible&&this.traverseMajorTicksPositions(l,r),o.visible&&this.traverseMinorTicksPositions(l,o),[]},e.prototype.createGridLines=function(t){var e=this.options,r=e.minorGridLines,o=e.majorGridLines,i=e.vertical,n=t.lineBox(),s={lineStart:n[i?"x1":"y1"],lineEnd:n[i?"x2":"y2"],vertical:i},a=[],l=this.gridLinesVisual();function p(t,e){Z(t,a)||(s.position=t,l.append(je(s,e)),a.push(t))}return o.visible&&this.traverseMajorTicksPositions(p,o),r.visible&&this.traverseMinorTicksPositions(p,r),l.children},e.prototype.traverseMajorTicksPositions=function(t,e){for(var r=this.lineInfo(),o=r.lineStart,i=r.step,n=this.logMin,s=this.logMax,a=Math.ceil(n)+e.skip;a<=s;a+=e.step){t(gt(o+i*(a-n),10),e)}},e.prototype.traverseMinorTicksPositions=function(t,e){for(var r=this.options,o=r.min,i=r.max,n=r.minorUnit,s=r.majorUnit,a=this.lineInfo(),l=a.lineStart,p=a.step,c=this.logMin,h=this.logMax,u=Math.floor(c);u<h;u++)for(var f=this._minorIntervalOptions(u),d=e.skip;d<n;d+=e.step){var v=f.value+d*f.minorStep;if(v>i)break;if(v>=o)t(gt(l+p*(Cr(v,s)-c),10),e)}},e.prototype.createAxisLabel=function(t,e,r){var o=Math.ceil(this.logMin+t),i=Math.pow(this.options.majorUnit,o),n=this.axisLabelText(i,e,r);return new de(i,n,t,null,e)},e.prototype.shouldRenderNote=function(t){var e=this.range();return e.min<=t&&t<=e.max},e.prototype.pan=function(t){var e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)},e.prototype.pointsRange=function(t,e){var r=this.getValue(t),o=this.getValue(e);return{min:Math.min(r,o),max:Math.max(r,o)}},e.prototype.scaleRange=function(t,e){var r=this.options.majorUnit,o=Cr(this.options.min,r),i=Cr(this.options.max,r),n=Math.abs(this.pointOffset(e)),s=i-o,a=this.scaleToDelta(t,s),l=Math.pow(r,o+n*a),p=Math.pow(r,i-(1-n)*a);return p-l<1e-6&&(p=l+1e-6),{min:l,max:p}},e.prototype.zoomRange=function(t,e){var r=this.scaleRange(t,e),o=this.totalMin,i=this.totalMax;return{min:dt(r.min,o,i),max:dt(r.max,o,i)}},e.prototype._minorIntervalOptions=function(t){var e=this.options,r=e.minorUnit,o=e.majorUnit,i=Math.pow(o,t);return{value:i,minorStep:(Math.pow(o,t+1)-i)/r}},e.prototype.lineInfo=function(){var e=t.prototype.lineInfo.call(this);return e.step=e.axisDir*(e.lineSize/(this.logMax-this.logMin)),e},e}(Ie);function wr(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function Cr(t,e){return Math.log(t)/Math.log(e)}wt(xr,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},zIndex:1,_deferLabels:!0});var Or=xr,kr={createGridLines:function(t){var e,r,o=this.options,i=Math.abs(this.box.center().y-t.lineBox().y1),n=[],s=!1;return o.majorGridLines.visible&&(e=this.majorGridLineAngles(t),s=!0,n=this.renderMajorGridLines(e,i,o.majorGridLines)),o.minorGridLines.visible&&(r=this.minorGridLineAngles(t,s),it(n,this.renderMinorGridLines(r,i,o.minorGridLines,t,s))),n},renderMajorGridLines:function(t,e,r){return this.renderGridLines(t,e,r)},renderMinorGridLines:function(t,e,r,o,i){var n=this.radiusCallback&&this.radiusCallback(e,o,i);return this.renderGridLines(t,e,r,n)},renderGridLines:function(t,e,r,o){for(var i={stroke:{width:r.width,color:r.color,dashType:r.dashType}},n=this.box.center(),s=new O.geometry.Circle([n.x,n.y],e),a=this.gridLinesVisual(),l=0;l<t.length;l++){var p=new O.drawing.Path(i);o&&(s.radius=o(t[l])),p.moveTo(s.center).lineTo(s.pointAt(t[l]+180)),a.append(p)}return a.children},gridLineAngles:function(t,e,r,o,i){var n=this,s=this.intervals(e,r,o,i),a=t.options,l=a.visible&&!1!==(a.line||{}).visible;return tt(s,(function(t){var e=n.intervalAngle(t);if(!l||90!==e)return e}))}},Sr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.range=function(){return{min:0,max:this.options.categories.length}},e.prototype.reflow=function(t){this.box=t,this.reflowLabels()},e.prototype.lineBox=function(){return this.box},e.prototype.reflowLabels=function(){for(var t=this.labels,e=this.options.labels,r=e.skip||0,o=e.step||1,i=new Ht,n=0;n<t.length;n++){t[n].reflow(i);var s=t[n].box;t[n].reflow(this.getSlot(r+n*o).adjacentBox(0,s.width(),s.height()))}},e.prototype.intervals=function(t,e,r,o){void 0===o&&(o=!1);for(var i=this.options,n=i.categories.length/t||1,s=360/n,a=r||1,l=[],p=0,c=e||0;c<n;c+=a)p=i.reverse?360-c*s:c*s,p=gt(p,3)%360,o&&Z(p,o)||l.push(p);return l},e.prototype.majorIntervals=function(){return this.intervals(1)},e.prototype.minorIntervals=function(){return this.intervals(.5)},e.prototype.intervalAngle=function(t){return(360+t+this.options.startAngle)%360},e.prototype.majorAngles=function(){var t=this;return tt(this.majorIntervals(),(function(e){return t.intervalAngle(e)}))},e.prototype.createLine=function(){return[]},e.prototype.majorGridLineAngles=function(t){var e=this.options.majorGridLines;return this.gridLineAngles(t,1,e.skip,e.step)},e.prototype.minorGridLineAngles=function(t,e){var r=this.options,o=r.minorGridLines,i=r.majorGridLines,n=e?this.intervals(1,i.skip,i.step):null;return this.gridLineAngles(t,.5,o.skip,o.step,n)},e.prototype.radiusCallback=function(t,e,r){if(e.options.type!==i){var o=yt(360/(2*this.options.categories.length)),n=Math.cos(o)*t,s=this.majorAngles(),a=function(e){return!r&&Z(e,s)?t:n};return a}},e.prototype.createPlotBands=function(){for(var t=this.options.plotBands||[],e=this._plotbandGroup=new O.drawing.Group({zIndex:-1}),r=0;r<t.length;r++){var o=t[r],i=this.plotBandSlot(o),n=this.getSlot(o.from),s=o.from-Math.floor(o.from);i.startAngle+=s*n.angle;var a=Math.ceil(o.to)-o.to;i.angle-=(a+s)*n.angle;var l=Kt.current.createRing(i,{fill:{color:o.color,opacity:o.opacity},stroke:{opacity:o.opacity}});e.append(l)}this.appendVisual(e)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to-1)},e.prototype.getSlot=function(t,e){var r=this.options,o=r.justified,i=this.box,n=this.majorAngles(),s=n.length,a=360/s,l=t;r.reverse&&!o&&(l=(l+1)%s);var p=n[l=dt(Math.floor(l),0,s-1)];o&&(p-=a/2)<0&&(p+=360);var c=a*(dt(Math.ceil(e||l),l,s-1)-l+1);return new Ft(i.center(),0,i.height()/2,p,c)},e.prototype.slot=function(t,e){var r=this.getSlot(t,e),o=r.startAngle+180,i=o+r.angle;return new O.geometry.Arc([r.center.x,r.center.y],{startAngle:o,endAngle:i,radiusX:r.radius,radiusY:r.radius})},e.prototype.pointCategoryIndex=function(t){for(var e=this.options.categories.length,r=null,o=0;o<e;o++){if(this.getSlot(o).containsPoint(t)){r=o;break}}return r},e}(rr);wt(Sr,{startAngle:90,labels:{margin:z(10)},majorGridLines:{visible:!0},justified:!0}),j(Sr.prototype,kr);var Pr=Sr,Ar=function(t){function e(e,r){t.call(this,e,r);var o=this.options;o.minorUnit=o.minorUnit||o.majorUnit/2}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDivisions=function(t){return mr.prototype.getDivisions.call(this,t)-1},e.prototype.reflow=function(t){this.box=t,this.reflowLabels()},e.prototype.reflowLabels=function(){for(var t=this.options,e=this.labels,r=this.options.labels,o=r.skip||0,i=r.step||1,n=new Ht,s=this.intervals(t.majorUnit,o,i),a=0;a<e.length;a++){e[a].reflow(n);var l=e[a].box;e[a].reflow(this.getSlot(s[a]).adjacentBox(0,l.width(),l.height()))}},e.prototype.lineBox=function(){return this.box},e.prototype.intervals=function(t,e,r,o){void 0===o&&(o=!1);for(var i=this.options.min,n=this.getDivisions(t),s=[],a=r||1,l=e||0;l<n;l+=a){var p=(360+i+l*t)%360;o&&Z(p,o)||s.push(p)}return s},e.prototype.majorIntervals=function(){return this.intervals(this.options.majorUnit)},e.prototype.minorIntervals=function(){return this.intervals(this.options.minorUnit)},e.prototype.intervalAngle=function(t){return(540-t-this.options.startAngle)%360},e.prototype.createLine=function(){return[]},e.prototype.majorGridLineAngles=function(t){var e=this.options.majorGridLines;return this.gridLineAngles(t,this.options.majorUnit,e.skip,e.step)},e.prototype.minorGridLineAngles=function(t,e){var r=this.options,o=r.minorGridLines,i=r.majorGridLines,n=e?this.intervals(r.majorUnit,i.skip,i.step):null;return this.gridLineAngles(t,r.minorUnit,o.skip,o.step,n)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to)},e.prototype.getSlot=function(t,e){var r=this.options,o=this.box,i=r.startAngle,n=dt(t,r.min,r.max),s=dt(e||n,n,r.max);if(r.reverse&&(n*=-1,s*=-1),(s=(540-s-i)%360)<(n=(540-n-i)%360)){var a=n;n=s,s=a}return new Ft(o.center(),0,o.height()/2,n,s-n)},e.prototype.slot=function(t,e){void 0===e&&(e=t);var r,o,i=this.options,n=360-i.startAngle,s=this.getSlot(t,e),a=Math.min(t,e),l=Math.max(t,e);return i.reverse?(r=a,o=l):(r=360-l,o=360-a),r=(r+n)%360,o=(o+n)%360,new O.geometry.Arc([s.center.x,s.center.y],{startAngle:r,endAngle:o,radiusX:s.radius,radiusY:s.radius})},e.prototype.getValue=function(t){var e=this.options,r=this.box.center(),o=t.x-r.x,i=t.y-r.y,n=Math.round(at(Math.atan2(i,o))),s=e.startAngle;return e.reverse||(n*=-1,s*=-1),(n+s+360)%360},e.prototype.valueRange=function(){return{min:0,max:2*Math.PI}},e}(Ie);wt(Ar,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:z(10)},majorGridLines:{color:n,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),j(Ar.prototype,kr,{createPlotBands:Pr.prototype.createPlotBands,majorAngles:Pr.prototype.majorAngles,range:mr.prototype.range,labelsCount:mr.prototype.labelsCount,createAxisLabel:mr.prototype.createAxisLabel});var Mr=Ar;function Tr(t,e){return 180-Math.abs(Math.abs(t-e)-180)}var Er={options:{majorGridLines:{visible:!0}},createPlotBands:function(){var t=this.options,e=t.majorGridLines.type,r=t.plotBands;void 0===r&&(r=[]);for(var o=this.plotArea.polarAxis,n=o.majorAngles(),s=o.box.center(),a=this._plotbandGroup=new O.drawing.Group({zIndex:-1}),l=0;l<r.length;l++){var p=r[l],c={fill:{color:p.color,opacity:p.opacity},stroke:{opacity:p.opacity}},h=this.getSlot(p.from,p.to,!0),u=new Ft(s,s.y-h.y2,s.y-h.y1,0,360),f=void 0;f=e===i?Kt.current.createRing(u,c):O.drawing.Path.fromPoints(this.plotBandPoints(u,n),c).close(),a.append(f)}this.appendVisual(a)},plotBandPoints:function(t,e){for(var r=[],o=[],i=[t.center.x,t.center.y],n=new O.geometry.Circle(i,t.innerRadius),s=new O.geometry.Circle(i,t.radius),a=0;a<e.length;a++)r.push(n.pointAt(e[a]+180)),o.push(s.pointAt(e[a]+180));return r.reverse(),r.push(r[0]),o.push(o[0]),o.concat(r)},createGridLines:function(t){var e=this.options,r=this.radarMajorGridLinePositions(),o=t.majorAngles(),i=t.box.center(),n=[];if(e.majorGridLines.visible&&(n=this.renderGridLines(i,r,o,e.majorGridLines)),e.minorGridLines.visible){var s=this.radarMinorGridLinePositions();it(n,this.renderGridLines(i,s,o,e.minorGridLines))}return n},renderGridLines:function(t,e,r,o){var n={stroke:{width:o.width,color:o.color,dashType:o.dashType}},s=o.skip;void 0===s&&(s=0);var a=o.step;void 0===a&&(a=0);for(var l=this.gridLinesVisual(),p=s;p<e.length;p+=a){var c=t.y-e[p];if(c>0){var h=new O.geometry.Circle([t.x,t.y],c);if(o.type===i)l.append(new O.drawing.Circle(h,n));else{for(var u=new O.drawing.Path(n),f=0;f<r.length;f++)u.lineTo(h.pointAt(r[f]+180));u.close(),l.append(u)}}}return l.children},getValue:function(t){var e=this.lineBox(),r=this.plotArea.polarAxis,o=r.majorAngles(),n=r.box.center(),s=t.distanceTo(n),a=s;if(this.options.majorGridLines.type!==i&&o.length>1){var l=t.x-n.x,p=t.y-n.y,c=(at(Math.atan2(p,l))+540)%360;o.sort((function(t,e){return Tr(t,c)-Tr(e,c)}));var h=90-Tr(o[0],o[1])/2,u=180-Tr(c,o[0])-h;a=s*(Math.sin(yt(u))/Math.sin(yt(h)))}return this.axisType().prototype.getValue.call(this,new Vt(e.x1,e.y2-a))}},jr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.radarMajorGridLinePositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.radarMinorGridLinePositions=function(){var t=this.options,e=0;return t.majorGridLines.visible&&(e=t.majorUnit),this.getTickPositions(t.minorUnit,e)},e.prototype.axisType=function(){return t},e}(mr);j(jr.prototype,Er);var Rr=jr,Ir=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.radarMajorGridLinePositions=function(){var t=[];return this.traverseMajorTicksPositions((function(e){t.push(e)}),this.options.majorGridLines),t},e.prototype.radarMinorGridLinePositions=function(){var t=[];return this.traverseMinorTicksPositions((function(e){t.push(e)}),this.options.minorGridLines),t},e.prototype.axisType=function(){return t},e}(Or);j(Ir.prototype,Er);var Br=Ir;function Lr(t){return t<=0?-1:1}var Dr=function(t){function e(e){t.call(this),this.closed=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.process=function(t){var e=t.slice(0),r=[],o=this.closed,i=e.length;if(i>2&&(this.removeDuplicates(0,e),i=e.length),i<2||2===i&&e[0].equals(e[1]))return r;var n,s,a=e[0],l=e[1],p=e[2];for(r.push(new O.geometry.Segment(a));a.equals(e[i-1]);)o=!0,e.pop(),i--;if(2===i){var c=this.tangent(a,l,m,_);return ft(r).controlOut(this.firstControlPoint(c,a,l,m,_)),r.push(new O.geometry.Segment(l,this.secondControlPoint(c,a,l,m,_))),r}if(o){a=e[i-1],l=e[0],p=e[1];var h=this.controlPoints(a,l,p);n=h[1],s=h[0]}else{var u=this.tangent(a,l,m,_);n=this.firstControlPoint(u,a,l,m,_)}for(var f=n,d=0;d<=i-3;d++)if(this.removeDuplicates(d,e),d+3<=(i=e.length)){a=e[d],l=e[d+1],p=e[d+2];var v=this.controlPoints(a,l,p);ft(r).controlOut(f),f=v[1];var y=v[0];r.push(new O.geometry.Segment(l,y))}if(o){a=e[i-2],l=e[i-1],p=e[0];var g=this.controlPoints(a,l,p);ft(r).controlOut(f),r.push(new O.geometry.Segment(l,g[0])),ft(r).controlOut(g[1]),r.push(new O.geometry.Segment(p,s))}else{var b=this.tangent(l,p,m,_);ft(r).controlOut(f),r.push(new O.geometry.Segment(p,this.secondControlPoint(b,l,p,m,_)))}return r},e.prototype.removeDuplicates=function(t,e){for(;e[t+1]&&(e[t].equals(e[t+1])||e[t+1].equals(e[t+2]));)e.splice(t+1,1)},e.prototype.invertAxis=function(t,e,r){var o=!1;if(t.x===e.x)o=!0;else if(e.x===r.x)(e.y<r.y&&t.y<=e.y||r.y<e.y&&e.y<=t.y)&&(o=!0);else{var i=this.lineFunction(t,e),n=this.calculateFunction(i,r.x);t.y<=e.y&&r.y<=n||e.y<=t.y&&r.y>=n||(o=!0)}return o},e.prototype.isLine=function(t,e,r){var o=this.lineFunction(t,e),i=this.calculateFunction(o,r.x);return t.x===e.x&&e.x===r.x||gt(i,1)===gt(r.y,1)},e.prototype.lineFunction=function(t,e){var r=(e.y-t.y)/(e.x-t.x);return[t.y-r*t.x,r]},e.prototype.controlPoints=function(t,e,r){var o,i=m,n=_,s=!1,a=!1;if(this.isLine(t,e,r))o=this.tangent(t,e,m,_);else{var l={x:this.isMonotonicByField(t,e,r,m),y:this.isMonotonicByField(t,e,r,_)};if(l.x&&l.y)o=this.tangent(t,r,m,_),s=!0;else if(this.invertAxis(t,e,r)&&(i=_,n=m),l[i])o=0;else o=.01*(r[n]<t[n]&&t[n]<=e[n]||t[n]<r[n]&&e[n]<=t[n]?Lr((r[n]-t[n])*(e[i]-t[i])):-Lr((r[i]-t[i])*(e[n]-t[n]))),a=!0}var p=this.secondControlPoint(o,t,e,i,n);if(a){var c=i;i=n,n=c}var h=this.firstControlPoint(o,e,r,i,n);return s&&(this.restrictControlPoint(t,e,p,o),this.restrictControlPoint(e,r,h,o)),[p,h]},e.prototype.restrictControlPoint=function(t,e,r,o){t.y<e.y?e.y<r.y?(r.x=t.x+(e.y-t.y)/o,r.y=e.y):r.y<t.y&&(r.x=e.x-(e.y-t.y)/o,r.y=t.y):r.y<e.y?(r.x=t.x-(t.y-e.y)/o,r.y=e.y):t.y<r.y&&(r.x=e.x+(t.y-e.y)/o,r.y=t.y)},e.prototype.tangent=function(t,e,r,o){var i,n=e[r]-t[r],s=e[o]-t[o];return i=0===n?0:s/n,i},e.prototype.isMonotonicByField=function(t,e,r,o){return r[o]>e[o]&&e[o]>t[o]||r[o]<e[o]&&e[o]<t[o]},e.prototype.firstControlPoint=function(t,e,r,o,i){var n=e[o],s=.333*(r[o]-n);return this.point(n+s,e[i]+s*t,o,i)},e.prototype.secondControlPoint=function(t,e,r,o,i){var n=e[o],s=r[o],a=.333*(s-n);return this.point(s-a,r[i]-a*t,o,i)},e.prototype.point=function(t,e,r,o){var i=new O.geometry.Point;return i[r]=t,i[o]=e,i},e.prototype.calculateFunction=function(t,e){for(var r=t.length,o=0,i=0;i<r;i++)o+=Math.pow(e,i)*t[i];return o},e}(O.Class),zr=function(t){function e(e){t.call(this),this._axis=e,this.options=e.options}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.value=function(t){var e=this._axis,r=e.getCategory?e.getCategory(t):e.getValue(t);return r},e.prototype.slot=function(t,e,r){return void 0===r&&(r=!0),this._axis.slot(t,e,r)},e.prototype.range=function(){return this._axis.range()},e.prototype.valueRange=function(){return this._axis.valueRange()},e}(O.Class);function Vr(t,e){for(var r=0;r<e.length;r++)if(e[r].options.name===t)return e[r].prepareUserOptions(),new zr(e[r])}var Nr=function(t){this.visual=t.visual,this.chartsVisual=t.chartContainer.visual,this._pane=t};Nr.prototype.findAxisByName=function(t){return Vr(t,this._pane.axes)};var Hr=Nr,Ur=function(t){function e(e){t.call(this),this._plotArea=e,this.visual=e.visual,this.backgroundVisual=e._bgVisual}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(O.Class);function Fr(t){for(var e=t.length,r=0,o=0;o<e;o++){P(t[o])&&r++}return r}var Gr={min:function(t){for(var e=t.length,r=u,o=0;o<e;o++){var i=t[o];P(i)&&(r=Math.min(r,i))}return r===u?t[0]:r},max:function(t){for(var e=t.length,r=f,o=0;o<e;o++){var i=t[o];P(i)&&(r=Math.max(r,i))}return r===f?t[0]:r},sum:function(t){for(var e=t.length,r=0,o=0;o<e;o++){var i=t[o];P(i)&&(r+=i)}return r},sumOrNull:function(t){var e=null;return Fr(t)&&(e=Gr.sum(t)),e},count:function(t){for(var e=t.length,r=0,o=0;o<e;o++){var i=t[o];null!==i&&st(i)&&r++}return r},avg:function(t){var e=Fr(t),r=t[0];return e>0&&(r=Gr.sum(t)/e),r},first:function(t){for(var e=t.length,r=0;r<e;r++){var o=t[r];if(null!==o&&st(o))return o}return t[0]}},Wr=Gr;function Kr(t,e){return null===e?e:W(t)(e)}var Xr=function(t){function e(){t.call(this),this._valueFields={},this._otherFields={},this._nullValue={},this._undefinedValue={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e,r){void 0===e&&(e=[y]),void 0===r&&(r={});for(var o=0;o<t.length;o++){var i=t[o];this._valueFields[i]=e,this._otherFields[i]=r,this._nullValue[i]=this._makeValue(e,null),this._undefinedValue[i]=this._makeValue(e,void 0)}},e.prototype.canonicalFields=function(t){return this.valueFields(t).concat(this.otherFields(t))},e.prototype.valueFields=function(t){return this._valueFields[t.type]||[y]},e.prototype.otherFields=function(t){return this._otherFields[t.type]||[y]},e.prototype.bindPoint=function(t,e,r){var o,i,n=t.data,s=st(r)?r:n[e],a={valueFields:{value:s}},l=this.valueFields(t),p=this._otherFields[t.type];if(null===s)i=this._nullValue[t.type];else if(st(s)){if(Array.isArray(s)){var c=s.slice(l.length);i=this._bindFromArray(s,l),o=this._bindFromArray(c,p)}else if("object"==typeof s){var h=this.sourceFields(t,l),u=this.sourceFields(t,p);i=this._bindFromObject(s,l,h),o=this._bindFromObject(s,p,u)}}else i=this._undefinedValue[t.type];return st(i)&&(1===l.length?a.valueFields.value=i[l[0]]:a.valueFields=i),a.fields=o||{},a},e.prototype._makeValue=function(t,e){for(var r={},o=t.length,i=0;i<o;i++){r[t[i]]=e}return r},e.prototype._bindFromArray=function(t,e){var r={};if(e)for(var o=Math.min(e.length,t.length),i=0;i<o;i++)r[e[i]]=t[i];return r},e.prototype._bindFromObject=function(t,e,r){void 0===r&&(r=e);var o={};if(e)for(var i=e.length,n=0;n<i;n++){var s=e[n],a=r[n];null!==a&&(o[s]=Kr(a,t))}return o},e.prototype.sourceFields=function(t,e){var r=[];if(e)for(var o=e.length,i=0;i<o;i++){var n=e[i],s=n===y?"field":n+"Field";r.push(null!==t[s]?t[s]||n:null)}return r},e}(O.Class);Xr.current=new Xr;var Yr=Xr,qr=/percent(?:\w*)\((\d+)\)/,Zr=new RegExp("^stddev(?:\\((\\d+(?:\\.\\d+)?)\\))?$"),Qr=function(t){function e(e,r,o){t.call(this),this.initGlobalRanges(e,r,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initGlobalRanges=function(t,e,r){var o=e.data,i=Zr.exec(t);if(i){this.valueGetter=this.createValueGetter(e,r);var n=this.getAverage(o),s=this.getStandardDeviation(o,n,!1),a=i[1]?parseFloat(i[1]):1,l={low:n.value-s*a,high:n.value+s*a};this.globalRange=function(){return l}}else if(t.indexOf&&t.indexOf("stderr")>=0){this.valueGetter=this.createValueGetter(e,r);var p=this.getStandardError(o,this.getAverage(o));this.globalRange=function(t){return{low:t-p,high:t+p}}}},e.prototype.createValueGetter=function(t,e){var r,o=t.data,i=Yr.current,n=i.valueFields(t),s=st(o[0])?o[0]:{};if(b(s))r=W("["+(e?n.indexOf(e):0)+"]");else if(P(s))r=W();else if("object"==typeof s){r=W(i.sourceFields(t,n)[n.indexOf(e)])}return r},e.prototype.getErrorRange=function(t,e){var r,o,i;if(!st(e))return null;if(this.globalRange)return this.globalRange(t);if(b(e))r=t-e[0],o=t+e[1];else if(P(i=parseFloat(e)))r=t-i,o=t+i;else{if(!(i=qr.exec(e)))throw new Error("Invalid ErrorBar value: "+e);var n=t*(parseFloat(i[1])/100);r=t-Math.abs(n),o=t+Math.abs(n)}return{low:r,high:o}},e.prototype.getStandardError=function(t,e){return this.getStandardDeviation(t,e,!0)/Math.sqrt(e.count)},e.prototype.getStandardDeviation=function(t,e,r){for(var o=t.length,i=r?e.count-1:e.count,n=0,s=0;s<o;s++){var a=this.valueGetter(t[s]);P(a)&&(n+=Math.pow(a-e.value,2))}return Math.sqrt(n/i)},e.prototype.getAverage=function(t){for(var e=t.length,r=0,o=0,i=0;i<e;i++){var n=this.valueGetter(t[i]);P(n)&&(r+=n,o++)}return{value:r/o,count:o}},e}(O.Class),$r=O.support.browser||{},Jr=$r.msie?.001:0,to="zero",eo="bar",ro="column",oo="line",io="pie",no="verticalLine",so=[eo,ro,"ohlc","candlestick","boxPlot","verticalBoxPlot","bullet","rangeColumn","rangeBar","waterfall","horizontalWaterfall"],ao="DOMMouseScroll mousewheel",lo=function(t){function e(e,r,o,i,n,s){t.call(this,s),this.low=e,this.high=r,this.isVertical=o,this.chart=i,this.series=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e,r=this.options.endCaps,o=this.isVertical,i=this.getAxis().getSlot(this.low,this.high),n=t.center(),s=this.getCapsWidth(t,o),a=o?n.x:n.y,l=a-s,p=a+s;o?(e=[new Vt(n.x,i.y1),new Vt(n.x,i.y2)],r&&e.push(new Vt(l,i.y1),new Vt(p,i.y1),new Vt(l,i.y2),new Vt(p,i.y2)),this.box=new Ht(l,i.y1,p,i.y2)):(e=[new Vt(i.x1,n.y),new Vt(i.x2,n.y)],r&&e.push(new Vt(i.x1,l),new Vt(i.x1,p),new Vt(i.x2,l),new Vt(i.x2,p)),this.box=new Ht(i.x1,l,i.x2,p)),this.linePoints=e},e.prototype.getCapsWidth=function(t,e){var r=e?t.width():t.height();return Math.min(Math.floor(r/2),4)||4},e.prototype.createVisual=function(){var t=this,e=this.options,r=e.visual;r?this.visual=r({low:this.low,high:this.high,rect:this.box.toRect(),sender:this.getSender(),options:{endCaps:e.endCaps,color:e.color,line:e.line},createVisual:function(){t.createDefaultVisual();var e=t.visual;return delete t.visual,e}}):this.createDefaultVisual()},e.prototype.createDefaultVisual=function(){var e=this.options,r=this.linePoints,o={stroke:{color:e.color,width:e.line.width,dashType:e.line.dashType}};t.prototype.createVisual.call(this);for(var i=0;i<r.length;i+=2){var n=new O.drawing.Path(o).moveTo(r[i].x,r[i].y).lineTo(r[i+1].x,r[i+1].y);k(n),this.visual.append(n)}},e}(Yt);wt(lo,{animation:{type:"fadeIn",delay:600},endCaps:!0,line:{width:2},zIndex:1});var po=lo,co=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getAxis=function(){return this.chart.seriesValueAxis(this.series)},e}(po);function ho(t,e,r,o){void 0===r&&(r={}),void 0===o&&(o=!1);var i=r.defaults=r.defaults||{},n=r.depth=r.depth||0,s=!1;if(r.excluded=r.excluded||[],n>5)return null;for(var a in t)if(!Z(a,r.excluded)&&t.hasOwnProperty(a)){var l=t[a];T(l)?(s=!0,o||(t[a]=_t(l(e),i[a]))):R(l)&&(o||(r.defaults=i[a]),r.depth++,s=ho(l,e,r,o)||s,r.depth--)}return s}function uo(t){for(var e=t.length,r=0,o=0;o<e;o++)r=Math.max(r,t[o].data.length);return r}var fo=function(t){function e(e,r){t.call(this,r),this.plotArea=e,this.chartService=e.chartService,this.categoryAxis=e.seriesCategoryAxis(r.series[0]),this.valueAxisRanges={},this.points=[],this.categoryPoints=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[],this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.pointOptions=function(t,e){var r=this.seriesOptions[e];if(!r){var o=this.pointType().prototype.defaults;this.seriesOptions[e]=r=j({},o,{vertical:!this.options.invertAxes},t)}return r},e.prototype.plotValue=function(t){if(!t)return 0;if(this.options.isStacked100&&P(t.value)){for(var e=t.categoryIx,r=this.categoryPoints[e],o=[],i=0,n=0;n<r.length;n++){var s=r[n];if(s){var a=t.series.stack,l=s.series.stack;if(a&&l&&a.group!==l.group)continue;P(s.value)&&(i+=Math.abs(s.value),o.push(Math.abs(s.value)))}}if(i>0)return t.value/i}return t.value},e.prototype.plotRange=function(t,e){void 0===e&&(e=0);var r=this.categoryPoints[t.categoryIx];if(this.options.isStacked){for(var o=this.plotValue(t),i=o>=0,n=e,s=!1,a=0;a<r.length;a++){var l=r[a];if(t===l)break;var p=t.series.stack,c=l.series.stack;if(p&&c){if("string"==typeof p&&p!==c)continue;if(p.group&&p.group!==c.group)continue}var h=this.plotValue(l);(h>=0&&i||h<0&&!i)&&(n+=h,o+=h,s=!0,this.options.isStacked100&&(o=Math.min(o,1)))}return s&&(n-=e),[n,o]}var u=t.series,f=this.seriesValueAxis(u),d=this.categoryAxisCrossingValue(f);return[d,M(t.value)?t.value:d]},e.prototype.stackLimits=function(t,e){for(var r=u,o=f,i=0;i<this.categoryPoints.length;i++){var n=this.categoryPoints[i];if(n)for(var s=0;s<n.length;s++){var a=n[s];if(a&&(a.series.stack===e||a.series.axis===t)){var l=this.plotRange(a,0)[1];st(l)&&isFinite(l)&&(o=Math.max(o,l),r=Math.min(r,l))}}}return{min:r,max:o}},e.prototype.updateStackRange=function(){var t=this.options,e=t.isStacked,r=t.series,o={};if(e)for(var i=0;i<r.length;i++){var n=r[i],s=n.axis,a=s+n.stack,l=o[a];if(!l){l=this.stackLimits(s,n.stack);var p=this.errorTotals;p&&(p.negative.length&&(l.min=Math.min(l.min,Ct(p.negative).min)),p.positive.length&&(l.max=Math.max(l.max,Ct(p.positive).max))),l.min!==u||l.max!==f?o[a]=l:l=null}l&&(this.valueAxisRanges[s]=l)}},e.prototype.addErrorBar=function(t,e,r){var o,i=t.value,n=t.series,s=t.seriesIx,a=t.options.errorBars,l=e.fields.errorLow,p=e.fields.errorHigh;P(l)&&P(p)?o={low:l,high:p}:a&&st(a.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[s]=this.seriesErrorRanges[s]||new Qr(a.value,n,y),o=this.seriesErrorRanges[s].getErrorRange(i,a.value)),o&&(t.low=o.low,t.high=o.high,this.addPointErrorBar(t,r))},e.prototype.addPointErrorBar=function(t,e){var r=!this.options.invertAxes,o=t.options.errorBars,i=t.series,n=t.low,s=t.high;if(this.options.isStacked){var a=this.stackedErrorRange(t,e);n=a.low,s=a.high}else{var l={categoryIx:e,series:i};this.updateRange({value:n},l),this.updateRange({value:s},l)}var p=new co(n,s,r,this,i,o);t.errorBars=[p],t.append(p)},e.prototype.stackedErrorRange=function(t,e){var r=this.plotRange(t,0)[1]-t.value,o=t.low+r,i=t.high+r;return this.errorTotals=this.errorTotals||{positive:[],negative:[]},o<0&&(this.errorTotals.negative[e]=Math.min(this.errorTotals.negative[e]||0,o)),i>0&&(this.errorTotals.positive[e]=Math.max(this.errorTotals.positive[e]||0,i)),{low:o,high:i}},e.prototype.addValue=function(t,e){var r=e.categoryIx,o=e.series,i=e.seriesIx,n=this.categoryPoints[r];n||(this.categoryPoints[r]=n=[]);var s=this.seriesPoints[i];s||(this.seriesPoints[i]=s=[]);var a=this.createPoint(t,e);a&&(Object.assign(a,e),a.owner=this,a.noteText=t.fields.noteText,st(a.dataItem)||(a.dataItem=o.data[r]),this.addErrorBar(a,t,r)),this.points.push(a),s.push(a),n.push(a),this.updateRange(t.valueFields,e)},e.prototype.evalPointOptions=function(t,e,r,o,i,n){var s={defaults:i._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},a=this._evalSeries[n];st(a)||(this._evalSeries[n]=a=ho(t,{},s,!0));var l=t;return a&&ho(l=j({},l),{value:e,category:r,index:o,series:i,dataItem:i.data[o]},s),l},e.prototype.updateRange=function(t,e){var r=e.series.axis,o=t.value,i=this.valueAxisRanges[r];isFinite(o)&&null!==o&&((i=this.valueAxisRanges[r]=i||{min:u,max:f}).min=Math.min(i.min,o),i.max=Math.max(i.max,o))},e.prototype.seriesValueAxis=function(t){var e=this.plotArea,r=t.axis,o=r?e.namedValueAxes[r]:e.valueAxis;if(!o)throw new Error("Unable to locate value axis with name "+r);return o},e.prototype.reflow=function(t){var e=this,r=this.categorySlots=[],o=this.points,i=this.categoryAxis,n=0;this.traverseDataPoints((function(t,s){var a=s.categoryIx,l=s.series,p=e.seriesValueAxis(l),c=o[n++],h=r[a];if(h||(r[a]=h=e.categorySlot(i,a,p)),c){var u=e.plotRange(c,p.startValue()),f=e.valueSlot(p,u);if(f){var d=e.pointSlot(h,f);c.aboveAxis=e.aboveAxis(c,p),c.stackValue=u[1],e.options.isStacked100&&(c.percentage=e.plotValue(c)),e.reflowPoint(c,d)}else c.visible=!1}})),this.reflowCategories(r),!this.options.clip&&this.options.limitPoints&&this.points.length&&this.limitPoints(),this.box=t},e.prototype.valueSlot=function(t,e){return t.getSlot(e[0],e[1],!this.options.clip)},e.prototype.limitPoints=function(){for(var t=this.categoryPoints,e=t[0].concat(ft(t)),r=0;r<e.length;r++)e[r]&&this.limitPoint(e[r])},e.prototype.limitPoint=function(t){var e=this.categoryAxis.limitSlot(t.box);e.equals(t.box)||t.reflow(e)},e.prototype.aboveAxis=function(t,e){var r=this.categoryAxisCrossingValue(e),o=t.value;return e.options.reverse?o<r:o>=r},e.prototype.categoryAxisCrossingValue=function(t){var e=this.categoryAxis,r=t.options;return[].concat(r.axisCrossingValues||r.axisCrossingValue)[e.axisIndex||0]||0},e.prototype.reflowPoint=function(t,e){t.reflow(e)},e.prototype.reflowCategories=function(){},e.prototype.pointSlot=function(t,e){var r=this.options.invertAxes,o=r?e:t,i=r?t:e;return new Ht(o.x1,i.y1,o.x2,i.y2)},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,r=uo(e),o=e.length,i=0;i<o;i++)this._outOfRangeCallback(e[i],"_outOfRangeMinPoint",i,t);for(var n=0;n<r;n++)for(var s=0;s<o;s++){var a=e[s],l=this.categoryAxis.categoryAt(n);t(this._bindPoint(a,s,n),{category:l,categoryIx:n,categoriesCount:r,series:a,seriesIx:s})}for(var p=0;p<o;p++)this._outOfRangeCallback(e[p],"_outOfRangeMaxPoint",p,t)},e.prototype._outOfRangeCallback=function(t,e,r,o){var i=t[e];if(i){var n=i.categoryIx;o(this._bindPoint(t,r,n,i.item),{category:i.category,categoryIx:n,series:t,seriesIx:r,dataItem:i.item})}},e.prototype._bindPoint=function(t,e,r,o){this._bindCache||(this._bindCache=[]);var i=this._bindCache[e];i||(i=this._bindCache[e]=[]);var n=i[r];return n||(n=i[r]=Yr.current.bindPoint(t,r,o)),n},e.prototype.formatPointValue=function(t,e){return null===t.value?"":this.chartService.format.auto(e,t.value)},e.prototype.pointValue=function(t){return t.valueFields.value},e}(Yt);wt(fo,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0});var vo=fo,yo={click:function(t,e){return t.trigger("seriesClick",this.eventArgs(e))},hover:function(t,e){return t.trigger("seriesHover",this.eventArgs(e))},over:function(t,e){return t.trigger("seriesOver",this.eventArgs(e))},out:function(t,e){return t.trigger("seriesLeave",this.eventArgs(e))},eventArgs:function(t){return{value:this.value,percentage:this.percentage,stackValue:this.stackValue,category:this.category,series:this.series,dataItem:this.dataItem,runningTotal:this.runningTotal,total:this.total,element:ht(t),originalEvent:t,point:this}}},go={createNote:function(){var t=this.options.notes,e=this.noteText||t.label.text;!1!==t.visible&&st(e)&&null!==e&&(this.note=new ye({value:this.value,text:e,dataItem:this.dataItem,category:this.category,series:this.series},this.options.notes,this.owner.chartService),this.append(this.note))}},mo=function(t){function e(e,r){t.call(this),this.value=e,this.options=r,this.aboveAxis=_t(this.options.aboveAxis,!0),this.tooltipTracking=!0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options,e=t.markers,r=t.labels;if(!this._rendered){if(this._rendered=!0,e.visible&&e.size&&(this.marker=this.createMarker(),this.append(this.marker)),r.visible){var o=U(r),i=this.pointData(),n=this.value;o?n=o(i):r.format&&(n=this.formatValue(r.format)),this.label=new ce(n,j({align:a,vAlign:a,margin:{left:5,right:5},zIndex:_t(r.zIndex,this.series.zIndex)},r),i),this.append(this.label)}this.createNote(),this.errorBar&&this.append(this.errorBar)}},e.prototype.markerBorder=function(){var t=this.options.markers,e=t.background,r=j({color:this.color},t.border);return st(r.color)||(r.color=new O.Color(e).brightness(.8).toHex()),r},e.prototype.createVisual=function(){},e.prototype.createMarker=function(){var t=this.options.markers;return new $t({type:t.type,width:t.size,height:t.size,rotation:t.rotation,background:t.background,border:this.markerBorder(),opacity:this.series.opacity||t.opacity,zIndex:_t(t.zIndex,this.series.zIndex),animation:t.animation,visual:t.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category})},e.prototype.markerBox=function(){return this.marker||(this.marker=this.createMarker(),this.marker.reflow(this._childBox)),this.marker.box},e.prototype.reflow=function(t){var e=this.options,r=this.aboveAxis,o=e.vertical;this.render(),this.box=t;var i=t.clone();if(o?r?i.y1-=i.height():i.y2+=i.height():r?i.x1+=i.width():i.x2-=i.width(),this._childBox=i,this.marker&&this.marker.reflow(i),this.reflowLabel(i),this.errorBars)for(var n=0;n<this.errorBars.length;n++)this.errorBars[n].reflow(i);if(this.note){var s=this.markerBox();if(!e.markers.visible||!e.markers.size){var a=s.center();s=new Ht(a.x,a.y,a.x,a.y)}this.note.reflow(s)}},e.prototype.reflowLabel=function(t){var e=this.options,r=this.label,o=e.labels.position;r&&(o="below"===(o="above"===o?v:o)?s:o,r.reflow(t),r.box.alignTo(this.markerBox(),o),r.reflow(r.box))},e.prototype.createHighlight=function(){var t=this.options.highlight.markers,e=this.markerBorder().color,r=this.options.markers,o=r.size+(r.border.width||0)+(t.border.width||0),i=new $t({type:r.type,width:o,height:o,rotation:r.rotation,background:t.color||e,border:{color:t.border.color,width:t.border.width,opacity:_t(t.border.opacity,1)},opacity:_t(t.opacity,1)});return i.reflow(this._childBox),i.getElement()},e.prototype.highlightVisual=function(){return(this.marker||{}).visual},e.prototype.highlightVisualArgs=function(){var t,e,r=this.marker;if(r)e=r.paddingBox.toRect(),t=r.visual;else{var o=this.options.markers.size,i=o/2,n=this.box.center();e=new O.geometry.Rect([n.x-i,n.y-i],[o,o])}return{options:this.options,rect:e,visual:t}},e.prototype.tooltipAnchor=function(){var t=this.markerBox(),e=this.owner.pane.clipBox();if(!e||e.overlaps(t)){var r,o,i=t.x2+5;return this.aboveAxis?(r=t.y1,o=s):(r=t.y2,o=v),{point:new Vt(i,r),align:{horizontal:"left",vertical:o}}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.markerBox().overlaps(t)},e.prototype.unclipElements=function(){this.label&&(this.label.options.noclip=!0),this.note&&(this.note.options.noclip=!0)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,series:this.series}},e}(Yt);mo.prototype.defaults={vertical:!0,markers:{visible:!0,background:g,size:8,type:l,border:{width:2},opacity:1},labels:{visible:!1,position:"above",margin:z(3),padding:z(4),animation:{type:"fadeIn",delay:600}},notes:{label:{}},highlight:{markers:{border:{color:"#fff",width:2}},zIndex:100},errorBars:{line:{width:1}}},j(mo.prototype,yo),j(mo.prototype,go);var _o=mo,bo=function(t){function e(e,r,o){t.call(this),this.linePoints=e,this.series=r,this.seriesIx=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.points=function(){return this.toGeometryPoints(this.linePoints)},e.prototype.toGeometryPoints=function(t){for(var e=[],r=0,o=t.length;r<o;r++)t[r]&&!1!==t[r].visible&&e.push(t[r]._childBox.toRect().center());return e},e.prototype.createVisual=function(){var t=this,e=this.series.visual;e?(this.visual=e({points:this.toGeometryPoints(this.linePoints),series:this.series,sender:this.getSender(),createVisual:function(){return t.segmentVisual(),t.visual}}),this.visual&&!st(this.visual.options.zIndex)&&(this.visual.options.zIndex=this.series.zIndex)):this.segmentVisual()},e.prototype.segmentVisual=function(){var t=this.options,e=this.series,r=e.color,o=e._defaults;T(r)&&o&&(r=o.color);var i=O.drawing.Path.fromPoints(this.points(),{stroke:{color:r,width:e.width,opacity:e.opacity,dashType:e.dashType},zIndex:e.zIndex});t.closed&&i.close(),this.visual=i},e.prototype.aliasFor=function(t,e){return this.parent.getNearestPoint(e.x,e.y,this.seriesIx)},e}(Yt);wt(bo,{closed:!1});var xo=bo;function wo(t,e,r,o,i){var n=t.box,s=new O.geometry.Point;return s[e]=n[e+r],s[o]=n[o+i],s}var Co={calculateStepPoints:function(t){for(var e=this.parent.plotArea.seriesCategoryAxis(this.series).options,r=e.justified,o=e.vertical,i=e.reverse,n=o?m:_,s=o?_:m,a=i?2:1,l=a,p=wo(t[0],n,a,s,l),c=[p],h=1;h<t.length;h++){var u=wo(t[h],n,a,s,l);if(p[n]!==u[n]){var f=new O.geometry.Point;f[n]=p[n],f[s]=u[s],c.push(f,u)}p=u}return r?p!==ft(c)&&c.push(p):c.push(wo(ft(t),n,a,s,i?1:2)),c}},Oo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.points=function(){return this.calculateStepPoints(this.linePoints)},e}(xo);j(Oo.prototype,Co);var ko=Oo,So=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.segmentVisual=function(){var t=this.series,e=t._defaults,r=t.color;T(r)&&e&&(r=e.color);var o=new Dr(this.options.closed).process(this.points()),i=new O.drawing.Path({stroke:{color:r,width:t.width,opacity:t.opacity,dashType:t.dashType},zIndex:t.zIndex});i.segments.push.apply(i.segments,o),this.visual=i},e}(xo),Po={renderSegments:function(){var t,e=this.options,r=this.seriesPoints,o=e.series,i=r.length;this._segments=[];for(var n=0;n<i;n++){for(var s=o[n],a=this.sortPoints(r[n]),l=a.length,p=[],c=0;c<l;c++){var h=a[c];h?p.push(h):"interpolate"!==this.seriesMissingValues(s)&&(p.length>1&&(t=this.createSegment(p,s,n,t),this._addSegment(t)),p=[])}p.length>1&&(t=this.createSegment(p,s,n,t),this._addSegment(t))}this.children.unshift.apply(this.children,this._segments)},_addSegment:function(t){this._segments.push(t),t.parent=this},sortPoints:function(t){return t},seriesMissingValues:function(t){var e=t.missingValues;return!e&&this.options.isStacked?to:e||"interpolate"},getNearestPoint:function(t,e,r){for(var o,i=new Vt(t,e),n=this.seriesPoints[r],s=u,a=0;a<n.length;a++){var l=n[a];if(l&&st(l.value)&&null!==l.value&&!1!==l.visible){var p=l.box.center().distanceTo(i);p<s&&(o=l,s=p)}}return o}},Ao=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this._setEnd(this.options.box.x1)},e.prototype.step=function(t){var e=this.options.box;this._setEnd(Q(e.x1,e.x2,t))},e.prototype._setEnd=function(t){var e=this.element,r=e.segments,o=r[1].anchor(),i=r[2].anchor();e.suspend(),o.setX(t),e.resume(),i.setX(t)},e}(O.drawing.Animation);wt(Ao,{duration:600}),O.drawing.AnimationFactory.current.register("clip",Ao);var Mo=Ao;function To(t){for(var e=0;e<t.length;e++)if(st(t[e].zIndex))return!0}var Eo={createAnimation:function(){var t=this.getRoot();if(t&&!1!==(t.options||{}).transitions){var e=t.size(),r=O.drawing.Path.fromRect(e.toRect());this.visual.clip(r),this.animation=new Mo(r,{box:e}),To(this.options.series)&&this._setChildrenAnimation(r)}},_setChildrenAnimation:function(t){for(var e=this.animationPoints(),r=0;r<e.length;r++){var o=e[r];o&&o.visual&&st(o.visual.options.zIndex)&&o.visual.clip(t)}}},jo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange(),this.renderSegments()},e.prototype.pointType=function(){return _o},e.prototype.createPoint=function(t,e){var r=e.categoryIx,o=e.category,i=e.series,n=e.seriesIx,s=this.seriesMissingValues(i),a=t.valueFields.value;if(!st(a)||null===a){if(s!==to)return null;a=0}var l=this.pointOptions(i,n);l=this.evalPointOptions(l,a,o,r,i,n);var p=t.fields.color||i.color;T(i.color)&&(p=l.color);var c=new _o(a,l);return c.color=p,this.append(c),c},e.prototype.plotRange=function(t){var e=this.plotValue(t);if(this.options.isStacked)for(var r=t.categoryIx,o=this.categoryPoints[r],i=0;i<o.length;i++){var n=o[i];if(t===n)break;e+=this.plotValue(n),this.options.isStacked100&&(e=Math.min(e,1))}return[e,e]},e.prototype.createSegment=function(t,e,r){var o=e.style;return new("step"===o?ko:"smooth"===o?So:xo)(t,e,r)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],r=0;r<t.length;r++)e.push((t[r]||{}).marker);return e.concat(this._segments)},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(vo);j(jo.prototype,Po,Eo);var Ro=jo,Io=function(t){function e(e,r,o,i,n){t.call(this,e,r,o),this.prevSegment=i,this.stackPoints=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createVisual=function(){var t=this.series,e=t._defaults,r=t.line||{},o=t.color;T(o)&&e&&(o=e.color),this.visual=new O.drawing.Group({zIndex:t.zIndex}),this.createFill({fill:{color:o,opacity:t.opacity},stroke:null}),r.width>0&&!1!==r.visible&&this.createStroke({stroke:j({color:o,opacity:t.opacity,lineCap:"butt"},r)})},e.prototype.strokeSegments=function(){var t=this._strokeSegments;return t||(t=this._strokeSegments=this.createStrokeSegments()),t},e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.points())},e.prototype.stackSegments=function(){return this.prevSegment?this.prevSegment.createStackSegments(this.stackPoints):this.createStackSegments(this.stackPoints)},e.prototype.createStackSegments=function(t){return this.segmentsFromPoints(this.toGeometryPoints(t)).reverse()},e.prototype.segmentsFromPoints=function(t){return t.map((function(t){return new O.geometry.Segment(t)}))},e.prototype.createStroke=function(t){var e=new O.drawing.Path(t);e.segments.push.apply(e.segments,this.strokeSegments()),this.visual.append(e)},e.prototype.hasStackSegment=function(){return this.prevSegment||this.stackPoints&&this.stackPoints.length},e.prototype.createFill=function(t){var e=this.strokeSegments(),r=e.slice(0),o=this.hasStackSegment();if(o){var i=this.stackSegments();it(r,i)}var n=new O.drawing.Path(t);n.segments.push.apply(n.segments,r),!o&&e.length>1&&this.fillToAxes(n),this.visual.append(n)},e.prototype.fillToAxes=function(t){var e=this.parent,r=e.options.invertAxes,o=e.seriesValueAxis(this.series),i=e.categoryAxisCrossingValue(o),n=o.getSlot(i,i,!0),s=this.strokeSegments(),a=s[0].anchor(),l=ft(s).anchor(),p=r?n.x1:n.y1;r?t.lineTo(p,l.y).lineTo(p,a.y):t.lineTo(l.x,p).lineTo(a.x,p)},e}(xo),Bo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))},e.prototype.createStackSegments=function(t){return this.segmentsFromPoints(this.calculateStepPoints(t)).reverse()},e}(Io);j(Bo.prototype,Co);var Lo=Bo,Do=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){var t=new Dr(this.options.closed),e=this.points();return t.process(e)},e.prototype.createStackSegments=function(){for(var t=this.strokeSegments(),e=[],r=t.length-1;r>=0;r--){var o=t[r];e.push(new O.geometry.Segment(o.anchor(),o.controlOut(),o.controlIn()))}return e},e}(Io),zo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,r,o){var i,n,s=this.options.isStacked,a=(e.line||{}).style;s&&r>0&&o&&("gap"!==this.seriesMissingValues(e)?(n=o.linePoints,i=o):n=this._gapStackPoints(t,r,a));return new("step"===a?Lo:"smooth"===a?Do:Io)(t,e,r,i,n)},e.prototype.reflow=function(e){t.prototype.reflow.call(this,e);var r=this._stackPoints;if(r)for(var o=0;o<r.length;o++){var i=r[o],n=this.categoryAxis.getSlot(i.categoryIx);i.reflow(n)}},e.prototype._gapStackPoints=function(t,e,r){var o=this.seriesPoints,i=t[0].categoryIx,n=t.length;i<0&&(i=0,n--);var s=i+n,a=this.seriesOptions[0]._outOfRangeMinPoint?1:0,l=[];this._stackPoints=this._stackPoints||[];for(var p=i;p<s;p++){var c=p+a,h=e,u=void 0;do{u=o[--h][c]}while(h>0&&!u);if(u)"step"!==r&&p>i&&!o[h][c-1]&&l.push(this._previousSegmentPoint(p,c,c-1,h)),l.push(u),"step"!==r&&p+1<s&&!o[h][c+1]&&l.push(this._previousSegmentPoint(p,c,c+1,h));else{var f=this._createGapStackPoint(p);this._stackPoints.push(f),l.push(f)}}return l},e.prototype._previousSegmentPoint=function(t,e,r,o){for(var i,n=this.seriesPoints,s=o;s>0&&!i;)i=n[--s][r];return i?i=n[s][e]:(i=this._createGapStackPoint(t),this._stackPoints.push(i)),i},e.prototype._createGapStackPoint=function(t){var e=this.pointOptions({},0),r=new _o(0,e);return r.categoryIx=t,r.series={},r},e.prototype.seriesMissingValues=function(t){return t.missingValues||to},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(Ro),Vo=function(t){function e(){t.call(this),this.axisRanges={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.update=function(t){var e=this.axisRanges;for(var r in t){var o=t[r],i=e[r];e[r]=i=i||{min:u,max:f},i.min=Math.min(i.min,o.min),i.max=Math.max(i.max,o.max)}},e.prototype.reset=function(t){this.axisRanges[t]=void 0},e.prototype.query=function(t){return this.axisRanges[t]},e}(O.Class),No=function(t){function e(e,r,o){t.call(this,r),this.textBox=new ce(e,this.options,o),this.append(this.textBox)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createVisual=function(){this.textBox.options.noclip=this.options.noclip},e.prototype.reflow=function(t){var e=this.options,r=e.vertical,o=e.aboveAxis,i=this.children[0],n=i.options,l=i.box,p=i.options.padding,c=t;n.align=r?a:h,n.vAlign=r?v:a,"insideEnd"===e.position?r?(n.vAlign=v,!o&&l.height()<t.height()&&(n.vAlign=s)):n.align=o?d:h:e.position===a?(n.vAlign=a,n.align=a):"insideBase"===e.position?r?n.vAlign=o?s:v:n.align=o?h:d:"outsideEnd"===e.position&&(r?c=o?new Ht(t.x1,t.y1-l.height(),t.x2,t.y1):new Ht(t.x1,t.y2,t.x2,t.y2+l.height()):(n.align=a,c=o?new Ht(t.x2,t.y1,t.x2+l.width(),t.y2):new Ht(t.x1-l.width(),t.y1,t.x1,t.y2))),e.rotation||(r?p.left=p.right=(c.width()-i.contentBox.width())/2:p.top=p.bottom=(c.height()-i.contentBox.height())/2),i.reflow(c)},e.prototype.alignToClipBox=function(t){var e=this.options.vertical?_:m,r=e+"1",o=e+"2",i=this.children[0],n=this.parent.box;if(n[r]<t[r]||t[o]<n[o]){var s=i.paddingBox.clone();s[r]=Math.max(n[r],t[r]),s[o]=Math.min(n[o],t[o]),this.reflow(s)}},e}(Yt);wt(No,{position:"outsideEnd",margin:z(3),padding:z(4),color:n,background:"",border:{width:1,color:""},aboveAxis:!0,vertical:!1,animation:{type:"fadeIn",delay:600},zIndex:2});var Ho=No;function Uo(t){var e=t.overlay;return e&&e.gradient&&"none"!==e.gradient}var Fo=function(t){function e(e,r){t.call(this),this.options=r,this.color=r.color||g,this.aboveAxis=_t(this.options.aboveAxis,!0),this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this._rendered||(this._rendered=!0,this.createLabel(),this.createNote(),this.errorBar&&this.append(this.errorBar))},e.prototype.createLabel=function(){var t=this.options,e=t.labels;if(e.visible){var r,o=this.pointData(),i=U(e);r=i?i(o):this.formatValue(e.format),this.label=new Ho(r,j({vertical:t.vertical},e),o),this.append(this.label)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.reflow=function(t){this.render();var e=this.label;if(this.box=t,e&&(e.options.aboveAxis=this.aboveAxis,e.reflow(t)),this.note&&this.note.reflow(t),this.errorBars)for(var r=0;r<this.errorBars.length;r++)this.errorBars[r].reflow(t)},e.prototype.createVisual=function(){var e=this,r=this.box,o=this.options,i=o.visual;if(!1!==this.visible)if(t.prototype.createVisual.call(this),i){var n=this.rectVisual=i({category:this.category,dataItem:this.dataItem,value:this.value,sender:this.getSender(),series:this.series,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,rect:r.toRect(),createVisual:function(){var t=new O.drawing.Group;return e.createRect(t),t},options:o});n&&this.visual.append(n)}else r.width()>0&&r.height()>0&&this.createRect(this.visual)},e.prototype.createRect=function(t){var e=this.options,r=e.border,o=st(r.opacity)?r.opacity:e.opacity,i=this.box.toRect();i.size.width=Math.round(i.size.width);var n=this.rectVisual=O.drawing.Path.fromRect(i,{fill:{color:this.color,opacity:e.opacity},stroke:{color:this.getBorderColor(),width:r.width,opacity:o,dashType:r.dashType}}),s=this.box.width(),a=this.box.height();if((e.vertical?s:a)>6&&(k(n),(s<1||a<1)&&(n.options.stroke.lineJoin="round")),t.append(n),Uo(e)){var l=this.createGradientOverlay(n,{baseColor:this.color},j({end:e.vertical?void 0:[0,1]},e.overlay));t.append(l)}},e.prototype.createHighlight=function(t){return k(O.drawing.Path.fromRect(this.box.toRect(),t))},e.prototype.highlightVisual=function(){return this.rectVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}},e.prototype.getBorderColor=function(){var t=this.color,e=this.options.border,r=e._brightness||.8,o=e.color;return st(o)||(o=new O.Color(t).brightness(r).toHex()),o},e.prototype.tooltipAnchor=function(){var t,e,r=this.options,o=this.box,i=this.aboveAxis,n=this.owner.pane.clipBox()||o,a=h,l=v;if(r.vertical)t=Math.min(o.x2,n.x2)+5,i?e=Math.max(o.y1,n.y1):(e=Math.min(o.y2,n.y2),l=s);else{var p=Math.max(o.x1,n.x1),c=Math.min(o.x2,n.x2);r.isStacked?(l=s,i?(a=d,t=c):t=p,e=Math.max(o.y1,n.y1)-5):(i?t=c+5:(t=p-5,a=d),e=Math.max(o.y1,n.y1))}return{point:new Vt(t,e),align:{horizontal:a,vertical:l}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,series:this.series}},e}(Yt);j(Fo.prototype,yo),j(Fo.prototype,go),Fo.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};var Go=Fo;function Wo(t,e){t.forEach(e)}function Ko(t,e){for(var r=t.length,o=r-1;o>=0;o--)e(t[o],o-r-1)}var Xo=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Ko:Wo}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,r=e.vertical,o=e.gap,i=e.spacing,n=this.children,s=n.length,a=r?_:m,l=s+o+i*(s-1),p=(r?t.height():t.width())/l,c=t[a+1]+p*(o/2);this.forEach(n,(function(e,r){var o=(e.box||t).clone();o[a+1]=c,o[a+2]=c+p,e.reflow(o),r<s-1&&(c+=p*i),c+=p}))},e}(Yt);wt(Xo,{vertical:!1,gap:0,spacing:0});var Yo=Xo,qo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){for(var e=this.options.vertical?m:_,r=this.children,o=r.length,i=this.box=new Ht,n=0;n<o;n++){var s=r[n];if(!1!==s.visible){var a=s.box.clone();a.snapTo(t,e),0===n&&(i=this.box=a.clone()),s.reflow(a),i.wrap(a)}}},e}(Yt);wt(qo,{vertical:!0});var Zo=qo,Qo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange()},e.prototype.pointType=function(){return Go},e.prototype.clusterType=function(){return Yo},e.prototype.stackType=function(){return Zo},e.prototype.stackLimits=function(e,r){return t.prototype.stackLimits.call(this,e,r)},e.prototype.createPoint=function(t,e){var r=e.categoryIx,o=e.category,i=e.series,n=e.seriesIx,s=this.options,a=this.children,l=s.isStacked,p=this.pointValue(t),c=this.pointOptions(i,n),h=c.labels;l&&"outsideEnd"===h.position&&(h.position="insideEnd"),c.isStacked=l;var u=t.fields.color||i.color;p<0&&c.negativeColor&&(u=c.negativeColor),c=this.evalPointOptions(c,p,o,r,i,n),T(i.color)&&(u=c.color);var f=new(this.pointType())(p,c);f.color=u;var d=a[r];d||(d=new(this.clusterType())({vertical:s.invertAxes,gap:s.gap,spacing:s.spacing,rtl:!s.invertAxes&&(this.chartService||{}).rtl}),this.append(d));l?this.getStackWrap(i,d).append(f):d.append(f);return f},e.prototype.getStackWrap=function(t,e){var r,o=t.stack,i=o&&o.group||o,n=e.children;if("string"==typeof i){for(var s=0;s<n.length;s++)if(n[s]._stackGroup===i){r=n[s];break}}else r=n[0];r||((r=new(this.stackType())({vertical:!this.options.invertAxes}))._stackGroup=i,e.append(r));return r},e.prototype.categorySlot=function(t,e,r){var o=this.options,i=t.getSlot(e),n=r.startValue();if(o.isStacked){var s=r.getSlot(n,n,!0),a=o.invertAxes?m:_;i[a+1]=i[a+2]=s[a+1]}return i},e.prototype.reflowCategories=function(t){for(var e=this.children,r=e.length,o=0;o<r;o++)e[o].reflow(t[o])},e.prototype.createAnimation=function(){this._setAnimationOptions(),t.prototype.createAnimation.call(this),To(this.options.series)&&this._setChildrenAnimation()},e.prototype._setChildrenAnimation=function(){for(var t=this.points,e=0;e<t.length;e++){var r=t[e],o=r.visual;o&&st(o.options.zIndex)&&(r.options.animation=this.options.animation,r.createAnimation())}},e.prototype._setAnimationOptions=function(){var t,e=this.options,r=e.animation||{};if(e.isStacked){var o=this.seriesValueAxis(e.series[0]);t=o.getSlot(o.startValue())}else t=this.categoryAxis.getSlot(0);r.origin=new O.geometry.Point(t.x1,t.y1),r.vertical=!e.invertAxes},e}(vo);wt(Qo,{animation:{type:eo}});var $o=Qo,Jo=function(t){function e(e,r){t.call(this,r),this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,r=this.value,o=this.owner.seriesValueAxis(e),i=o.getSlot(r.open,r.close),n=o.getSlot(r.low,r.high);i.x1=n.x1=t.x1,i.x2=n.x2=t.x2,this.realBody=i;var s=n.center().x,a=[];a.push([[s,n.y1],[s,i.y1]]),a.push([[s,i.y2],[s,n.y2]]),this.lines=a,this.box=n.clone().wrap(i),this._rendered||(this._rendered=!0,this.createNote()),this.reflowNote()},e.prototype.reflowNote=function(){this.note&&this.note.reflow(this.box)},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this._mainVisual=this.mainVisual(this.options),this.visual.append(this._mainVisual),this.createOverlay()},e.prototype.mainVisual=function(t){var e=new O.drawing.Group;return this.createBody(e,t),this.createLines(e,t),e},e.prototype.createBody=function(t,e){var r=O.drawing.Path.fromRect(this.realBody.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null});e.border.width>0&&r.options.set("stroke",{color:this.getBorderColor(),width:e.border.width,dashType:e.border.dashType,opacity:_t(e.border.opacity,e.opacity)}),k(r),t.append(r),Uo(e)&&t.append(this.createGradientOverlay(r,{baseColor:this.color},j({end:e.vertical?void 0:[0,1]},e.overlay)))},e.prototype.createLines=function(t,e){this.drawLines(t,e,this.lines,e.line)},e.prototype.drawLines=function(t,e,r,o){if(r)for(var i={stroke:{color:o.color||this.color,opacity:_t(o.opacity,e.opacity),width:o.width,dashType:o.dashType,lineCap:"butt"}},n=0;n<r.length;n++){var s=O.drawing.Path.fromPoints(r[n],i);k(s),t.append(s)}},e.prototype.getBorderColor=function(){var t=this.options.border,e=t.color;return st(e)||(e=new O.Color(this.color).brightness(t._brightness).toHex()),e},e.prototype.createOverlay=function(){var t=O.drawing.Path.fromRect(this.box.toRect(),{fill:{color:g,opacity:0},stroke:null});this.visual.append(t)},e.prototype.createHighlight=function(){var t=this.options.highlight,e=this.color;this.color=t.color||this.color;var r=this.mainVisual(j({},this.options,{line:{color:this.getBorderColor()}},t));return this.color=e,r},e.prototype.highlightVisual=function(){return this._mainVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this._mainVisual}},e.prototype.tooltipAnchor=function(){var t=this.box,e=this.owner.pane.clipBox()||t;return{point:new Vt(t.x2+5,Math.max(t.y1,e.y1)+5),align:{horizontal:h,vertical:v}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e}(Yt);wt(Jo,{vertical:!0,border:{_brightness:.8},line:{width:2},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{4:d}</th></tr><tr><td>Open:</td><td>{0:C}</td></tr><tr><td>High:</td><td>{1:C}</td></tr><tr><td>Low:</td><td>{2:C}</td></tr><tr><td>Close:</td><td>{3:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}}}),j(Jo.prototype,yo),j(Jo.prototype,go);var ti=Jo;function ei(t){return Fr(t)===t.length}var ri=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowCategories=function(t){for(var e=this.children,r=e.length,o=0;o<r;o++)e[o].reflow(t[o])},e.prototype.addValue=function(t,e){var r,o=e.categoryIx,i=e.category,n=e.series,s=e.seriesIx,a=this.children,l=this.options,p=t.valueFields,c=ei(this.splitValue(p)),h=n.data[o],u=this.categoryPoints[o];u||(this.categoryPoints[o]=u=[]),c&&(r=this.createPoint(t,e));var f=a[o];f||(f=new Yo({vertical:l.invertAxes,gap:l.gap,spacing:l.spacing,rtl:!l.invertAxes&&(this.chartService||{}).rtl}),this.append(f)),r&&(this.updateRange(p,e),f.append(r),r.categoryIx=o,r.category=i,r.series=n,r.seriesIx=s,r.owner=this,r.dataItem=h,r.noteText=t.fields.noteText),this.points.push(r),u.push(r)},e.prototype.pointType=function(){return ti},e.prototype.createPoint=function(t,e){var r=e.categoryIx,o=e.category,i=e.series,n=e.seriesIx,s=this.pointType(),a=t.valueFields,l=j({},i),p=t.fields.color||i.color;l=this.evalPointOptions(l,a,o,r,i,n),"candlestick"===i.type&&a.open>a.close&&(p=t.fields.downColor||i.downColor||i.color),T(i.color)&&(p=l.color),l.vertical=!this.options.invertAxes;var c=new s(a,l);return c.color=p,c},e.prototype.splitValue=function(t){return[t.low,t.open,t.close,t.high]},e.prototype.updateRange=function(t,e){var r=e.series.axis,o=this.splitValue(t),i=this.valueAxisRanges[r];i=this.valueAxisRanges[r]=i||{min:u,max:f},i=this.valueAxisRanges[r]={min:Math.min.apply(Math,o.concat([i.min])),max:Math.max.apply(Math,o.concat([i.max]))}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.open,r.high,r.low,r.close,t.category)},e.prototype.animationPoints=function(){return this.points},e}(vo);j(ri.prototype,Eo);var oi=ri,ii=function(t){function e(e,r){t.call(this,e,r),this.createNote()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e,r,o=this.options,i=this.value,n=this.owner.seriesValueAxis(o);this.boxSlot=r=n.getSlot(i.q1,i.q3),this.realBody=r,this.reflowBoxSlot(t),this.whiskerSlot=e=n.getSlot(i.lower,i.upper),this.reflowWhiskerSlot(t);var s=n.getSlot(i.median);if(i.mean){var a=n.getSlot(i.mean);this.meanPoints=this.calcMeanPoints(t,a)}this.whiskerPoints=this.calcWhiskerPoints(r,e),this.medianPoints=this.calcMedianPoints(t,s),this.box=e.clone().wrap(r),this.reflowNote()},e.prototype.reflowBoxSlot=function(t){this.boxSlot.x1=t.x1,this.boxSlot.x2=t.x2},e.prototype.reflowWhiskerSlot=function(t){this.whiskerSlot.x1=t.x1,this.whiskerSlot.x2=t.x2},e.prototype.calcMeanPoints=function(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]},e.prototype.calcWhiskerPoints=function(t,e){var r=e.center().x;return[[[r-5,e.y1],[r+5,e.y1],[r,e.y1],[r,t.y1]],[[r-5,e.y2],[r+5,e.y2],[r,e.y2],[r,t.y2]]]},e.prototype.calcMedianPoints=function(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]},e.prototype.renderOutliers=function(t){for(var e=this.value,r=e.outliers||[],o=3*Math.abs(e.q3-e.q1),i=[],n=t.markers||{},s=0;s<r.length;s++){var a=r[s],l=j({},(n=a<e.q3+o&&a>e.q1-o?t.outliers:t.extremes).border);st(l.color)||(st(this.color)?l.color=this.color:l.color=new O.Color(n.background).brightness(.8).toHex());var p=new $t({type:n.type,width:n.size,height:n.size,rotation:n.rotation,background:n.background,border:l,opacity:n.opacity});p.value=a,i.push(p)}return this.reflowOutliers(i),i},e.prototype.reflowOutliers=function(t){for(var e=this.owner.seriesValueAxis(this.options),r=this.box.center(),o=0;o<t.length;o++){var i=t[o].value,n=e.getSlot(i);this.options.vertical?n.move(r.x):n.move(void 0,r.y),this.box=this.box.wrap(n),t[o].reflow(n)}},e.prototype.mainVisual=function(e){for(var r=t.prototype.mainVisual.call(this,e),o=this.renderOutliers(e),i=0;i<o.length;i++){var n=o[i].getElement();n&&r.append(n)}return r},e.prototype.createLines=function(t,e){this.drawLines(t,e,this.whiskerPoints,e.whiskers),this.drawLines(t,e,this.medianPoints,e.median),this.drawLines(t,e,this.meanPoints,e.mean)},e.prototype.getBorderColor=function(){return(this.options.border||{}).color?this.options.border.color:this.color?this.color:t.prototype.getBorderColor.call(this)},e}(ti);wt(ii,{border:{_brightness:.8},line:{width:2},median:{color:"#f6f6f6"},mean:{width:2,dashType:"dash",color:"#f6f6f6"},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{6:d}</th></tr><tr><td>Lower:</td><td>{0:C}</td></tr><tr><td>Q1:</td><td>{1:C}</td></tr><tr><td>Median:</td><td>{2:C}</td></tr><tr><td>Mean:</td><td>{5:C}</td></tr><tr><td>Q3:</td><td>{3:C}</td></tr><tr><td>Upper:</td><td>{4:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}},outliers:{visible:!0,size:8,type:"cross",background:g,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:l,background:g,border:{width:2,opacity:1},opacity:0}}),j(ii.prototype,yo);var ni=ii,si=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowBoxSlot=function(t){this.boxSlot.y1=t.y1,this.boxSlot.y2=t.y2},e.prototype.reflowWhiskerSlot=function(t){this.whiskerSlot.y1=t.y1,this.whiskerSlot.y2=t.y2},e.prototype.calcMeanPoints=function(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]},e.prototype.calcWhiskerPoints=function(t,e){var r=e.center().y;return[[[e.x1,r-5],[e.x1,r+5],[e.x1,r],[t.x1,r]],[[e.x2,r-5],[e.x2,r+5],[e.x2,r],[t.x2,r]]]},e.prototype.calcMedianPoints=function(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]},e}(ni),ai=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addValue=function(t,e){var r,o=e.categoryIx,i=e.category,n=e.series,s=e.seriesIx,a=this.children,l=this.options,p=t.valueFields,c=ei(this.splitValue(p)),h=n.data[o],u=this.categoryPoints[o];u||(this.categoryPoints[o]=u=[]),c&&(r=this.createPoint(t,e));var f=a[o];f||(f=new Yo({vertical:l.invertAxes,gap:l.gap,spacing:l.spacing,rtl:!l.invertAxes&&(this.chartService||{}).rtl}),this.append(f)),r&&(this.updateRange(p,e),f.append(r),r.categoryIx=o,r.category=i,r.series=n,r.seriesIx=s,r.owner=this,r.dataItem=h),this.points.push(r),u.push(r)},e.prototype.pointType=function(){return this.options.invertAxes?si:ni},e.prototype.splitValue=function(t){return[t.lower,t.q1,t.median,t.q3,t.upper]},e.prototype.updateRange=function(t,e){var r=e.series.axis,o=this.valueAxisRanges[r],i=this.splitValue(t).concat(this.filterOutliers(t.outliers));st(t.mean)&&(i=i.concat(t.mean)),o=this.valueAxisRanges[r]=o||{min:u,max:f},o=this.valueAxisRanges[r]={min:Math.min.apply(Math,i.concat([o.min])),max:Math.max.apply(Math,i.concat([o.max]))}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.lower,r.q1,r.median,r.q3,r.upper,r.mean,t.category)},e.prototype.filterOutliers=function(t){for(var e=(t||[]).length,r=[],o=0;o<e;o++){var i=t[o];st(i)&&null!==i&&r.push(i)}return r},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(oi),li=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getAxis=function(){var t=this.chart.seriesAxes(this.series);return this.isVertical?t.y:t.x},e}(po);function pi(t){return st(t)&&null!==t}var ci=function(t){function e(e,r){t.call(this,r),this.plotArea=e,this.chartService=e.chartService,this._initFields(),this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this.xAxisRanges={},this.yAxisRanges={},this.points=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[]},e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.addErrorBar=function(t,e,r){var o,i=t.value[e],n=e+"Value",s=e+"ErrorLow",a=e+"ErrorHigh",l=r.seriesIx,p=r.series,c=t.options.errorBars,h=r[s],u=r[a];P(i)&&(P(h)&&P(u)&&(o={low:h,high:u}),c&&st(c[n])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[e][l]=this.seriesErrorRanges[e][l]||new Qr(c[n],p,e),o=this.seriesErrorRanges[e][l].getErrorRange(i,c[n])),o&&this.addPointErrorBar(o,t,e))},e.prototype.addPointErrorBar=function(t,e,r){var o=t.low,i=t.high,n=e.series,s=e.options.errorBars,a=r===_,l={};e[r+"Low"]=o,e[r+"High"]=i,e.errorBars=e.errorBars||[];var p=new li(o,i,a,this,n,s);e.errorBars.push(p),e.append(p),l[r]=o,this.updateRange(l,n),l[r]=i,this.updateRange(l,n)},e.prototype.addValue=function(t,e){var r,o=t.x,i=t.y,n=e.seriesIx,s=this.options.series[n],a=this.seriesMissingValues(s),l=this.seriesPoints[n],p=t;pi(o)&&pi(i)||(p=this.createMissingValue(p,a)),p&&((r=this.createPoint(p,e))&&(Object.assign(r,e),this.addErrorBar(r,m,e),this.addErrorBar(r,_,e)),this.updateRange(p,e.series)),this.points.push(r),l.push(r)},e.prototype.seriesMissingValues=function(t){return t.missingValues},e.prototype.createMissingValue=function(){},e.prototype.updateRange=function(t,e){var r=this.chartService.intl,o=e.xAxis,i=e.yAxis,n=t.x,s=t.y,a=this.xAxisRanges[o],l=this.yAxisRanges[i];pi(n)&&(a=this.xAxisRanges[o]=a||{min:u,max:f},A(n)&&(n=$e(r,n)),a.min=Math.min(a.min,n),a.max=Math.max(a.max,n)),pi(s)&&(l=this.yAxisRanges[i]=l||{min:u,max:f},A(s)&&(s=$e(r,s)),l.min=Math.min(l.min,s),l.max=Math.max(l.max,s))},e.prototype.evalPointOptions=function(t,e,r){var o=r.series,i=r.seriesIx,n={defaults:o._defaults,excluded:["data","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},s=this._evalSeries[i];st(s)||(this._evalSeries[i]=s=ho(t,{},n,!0));var a=t;return s&&ho(a=j({},t),{value:e,series:o,dataItem:r.dataItem},n),a},e.prototype.pointType=function(){return _o},e.prototype.pointOptions=function(t,e){var r=this.seriesOptions[e];if(!r){var o=this.pointType().prototype.defaults;this.seriesOptions[e]=r=j({},o,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return r},e.prototype.createPoint=function(t,e){var r=e.series,o=this.pointOptions(r,e.seriesIx),i=e.color||r.color;o=this.evalPointOptions(o,t,e),T(r.color)&&(i=o.color);var n=new _o(t,o);return n.color=i,this.append(n),n},e.prototype.seriesAxes=function(t){var e=t.xAxis,r=t.yAxis,o=this.plotArea,i=e?o.namedXAxes[e]:o.axisX,n=r?o.namedYAxes[r]:o.axisY;if(!i)throw new Error("Unable to locate X axis with name "+e);if(!n)throw new Error("Unable to locate Y axis with name "+r);return{x:i,y:n}},e.prototype.reflow=function(t){var e=this,r=this.points,o=!this.options.clip,i=0;this.traverseDataPoints((function(t,n){var s=r[i++],a=e.seriesAxes(n.series),l=a.x.getSlot(t.x,t.x,o),p=a.y.getSlot(t.y,t.y,o);if(s)if(l&&p){var c=e.pointSlot(l,p);s.reflow(c)}else s.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new Ht(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,r=this.seriesPoints,o=0;o<e.length;o++){var i=e[o];r[o]||(r[o]=[]);for(var n=0;n<i.data.length;n++){var s=this._bindPoint(i,o,n),a=s.valueFields,l=s.fields;t(a,j({pointIx:n,series:i,seriesIx:o,dataItem:i.data[n],owner:this},l))}}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.x,r.y)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],r=0;r<t.length;r++)e.push((t[r]||{}).marker);return e},e}(Yt);wt(ci,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),j(ci.prototype,Eo,{_bindPoint:vo.prototype._bindPoint});var hi=ci,ui=function(t){function e(e,r){t.call(this,e,r),this.category=e.category}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createHighlight=function(){var t=this.options.highlight,e=t.border,r=this.options.markers,o=this.box.center(),i=(r.size+r.border.width+e.width)/2,n=new O.drawing.Group,s=new O.drawing.Circle(new O.geometry.Circle([o.x,o.y+i/5+e.width/2],i+e.width/2),{stroke:{color:"none"},fill:this.createGradient({gradient:"bubbleShadow",color:r.background,stops:[{offset:0,color:r.background,opacity:.3},{offset:1,color:r.background,opacity:0}]})}),a=new O.drawing.Circle(new O.geometry.Circle([o.x,o.y],i),{stroke:{color:e.color||new O.Color(r.background).brightness(.8).toHex(),width:e.width,opacity:e.opacity},fill:{color:r.background,opacity:t.opacity}});return n.append(s,a),n},e}(_o);ui.prototype.defaults=j({},ui.prototype.defaults,{labels:{position:a},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),ui.prototype.defaults.highlight.zIndex=void 0;var fi=ui,di=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this._maxSize=f,t.prototype._initFields.call(this)},e.prototype.addValue=function(e,r){null!==e.size&&(e.size>0||e.size<0&&r.series.negativeValues.visible)?(this._maxSize=Math.max(this._maxSize,Math.abs(e.size)),t.prototype.addValue.call(this,e,r)):(this.points.push(null),this.seriesPoints[r.seriesIx].push(null))},e.prototype.reflow=function(e){this.updateBubblesSize(e),t.prototype.reflow.call(this,e)},e.prototype.pointType=function(){return fi},e.prototype.createPoint=function(t,e){var r=e.series,o=r.data.length,i=e.pointIx*(600/o),n={delay:i,duration:600-i,type:"bubble"},s=e.color||r.color;t.size<0&&r.negativeValues.visible&&(s=_t(r.negativeValues.color,s));var a=j({labels:{animation:{delay:i,duration:600-i}}},this.pointOptions(r,e.seriesIx),{markers:{type:l,border:r.border,opacity:r.opacity,animation:n}});a=this.evalPointOptions(a,t,e),T(r.color)&&(s=a.color),a.markers.background=s;var p=new fi(t,a);return p.color=s,this.append(p),p},e.prototype.updateBubblesSize=function(t){for(var e=this.options.series,r=Math.min(t.width(),t.height()),o=0;o<e.length;o++)for(var i=e[o],n=this.seriesPoints[o],s=(i.minSize||Math.max(.02*r,10))/2,a=(i.maxSize||.2*r)/2,l=Math.PI*s*s,p=(Math.PI*a*a-l)/this._maxSize,c=0;c<n.length;c++){var h=n[c];if(h){var u=Math.abs(h.value.size)*p,f=Math.sqrt((l+u)/Math.PI),d=_t(h.options.zIndex,0)+(1-f/a);j(h.options,{zIndex:d,markers:{size:2*f,zIndex:d},labels:{zIndex:d+1}})}}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.x,r.y,r.size,t.category)},e.prototype.createAnimation=function(){},e.prototype.createVisual=function(){},e}(hi);wt(di,{tooltip:{format:"{3}"},labels:{format:"{3}"}});var vi=di,yi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}($t);j(yi.prototype,yo);var gi=yi,mi=function(t){function e(e,r){t.call(this,r),this.aboveAxis=this.options.aboveAxis,this.color=r.color||g,this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options;this._rendered||(this._rendered=!0,st(this.value.target)&&(this.target=new gi({type:t.target.shape,background:t.target.color||this.color,opacity:t.opacity,zIndex:t.zIndex,border:t.target.border,vAlign:v,align:d}),this.target.value=this.value,this.target.dataItem=this.dataItem,this.target.series=this.series,this.append(this.target)),this.createNote())},e.prototype.reflow=function(t){this.render();var e=this.options,r=this.target,o=this.owner,i=e.invertAxes,n=o.seriesValueAxis(this.options),s=o.categorySlot(o.categoryAxis,e.categoryIx,n),a=n.getSlot(this.value.target),l=i?a:s,p=i?s:a;if(r){var c=new Ht(l.x1,p.y1,l.x2,p.y2);r.options.height=i?c.height():e.target.line.width,r.options.width=i?e.target.line.width:c.width(),r.reflow(c)}this.note&&this.note.reflow(t),this.box=t},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options,r=O.drawing.Path.fromRect(this.box.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null});e.border.width>0&&r.options.set("stroke",{color:e.border.color||this.color,width:e.border.width,dashType:e.border.dashType,opacity:_t(e.border.opacity,e.opacity)}),this.bodyVisual=r,k(r),this.visual.append(r)},e.prototype.createAnimation=function(){this.bodyVisual&&(this.animation=O.drawing.Animation.create(this.bodyVisual,this.options.animation))},e.prototype.createHighlight=function(t){return O.drawing.Path.fromRect(this.box.toRect(),t)},e.prototype.highlightVisual=function(){return this.bodyVisual},e.prototype.highlightVisualArgs=function(){return{rect:this.box.toRect(),visual:this.bodyVisual,options:this.options}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(Yt);mi.prototype.tooltipAnchor=Go.prototype.tooltipAnchor,wt(mi,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},tooltip:{format:"Current: {0}<br />Target: {1}"}}),j(mi.prototype,yo),j(mi.prototype,go);var _i=mi,bi=function(t){function e(e,r){!function(t){for(var e=t.series,r=0;r<e.length;r++){var o=e[r],i=o.data;!i||b(i[0])||R(i[0])||(o.data=[i])}}(r),t.call(this,e,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowCategories=function(t){for(var e=this.children,r=e.length,o=0;o<r;o++)e[o].reflow(t[o])},e.prototype.plotRange=function(t){var e=t.series,r=this.seriesValueAxis(e),o=this.categoryAxisCrossingValue(r);return[o,t.value.current||o]},e.prototype.createPoint=function(t,e){var r=e.categoryIx,o=e.category,i=e.series,n=e.seriesIx,s=this.options,a=this.children,l=t.valueFields,p=j({vertical:!s.invertAxes,overlay:i.overlay,categoryIx:r,invertAxes:s.invertAxes},i),c=t.fields.color||i.color;p=this.evalPointOptions(p,l,o,r,i,n),T(i.color)&&(c=p.color);var h=new _i(l,p);h.color=c;var u=a[r];return u||(u=new Yo({vertical:s.invertAxes,gap:s.gap,spacing:s.spacing,rtl:!s.invertAxes&&(this.chartService||{}).rtl}),this.append(u)),u.append(h),h},e.prototype.updateRange=function(t,e){var r=t.current,o=t.target,i=e.series.axis,n=this.valueAxisRanges[i];st(r)&&!isNaN(r)&&st(o&&!isNaN(o))&&((n=this.valueAxisRanges[i]=n||{min:u,max:f}).min=Math.min(n.min,r,o),n.max=Math.max(n.max,r,o))},e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value.current,t.value.target)},e.prototype.pointValue=function(t){return t.valueFields.current},e.prototype.aboveAxis=function(t){return t.value.current>0},e.prototype.createAnimation=function(){var t=this.points;this._setAnimationOptions();for(var e=0;e<t.length;e++){var r=t[e];r.options.animation=this.options.animation,r.createAnimation()}},e}(vo);bi.prototype._setAnimationOptions=$o.prototype._setAnimationOptions,wt(bi,{animation:{type:eo}});var xi=bi,wi=function(t){function e(e,r){t.call(this),this.chartService=e,this.options=j({},this.options,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getStyle=function(t,e){var r=t.background,o=t.border.color;if(e){var i=e.color||e.options.color;r=_t(r,i),o=_t(o,i)}var n=z(t.padding||{},"auto");return{backgroundColor:r,borderColor:o,font:t.font,color:t.color,opacity:t.opacity,borderWidth:I(t.border.width),paddingTop:I(n.top),paddingBottom:I(n.bottom),paddingLeft:I(n.left),paddingRight:I(n.right)}},e.prototype.show=function(t,e,r){t.format=e.format;var o=this.getStyle(e,r);t.style=o;var i=new O.Color(o.backgroundColor);st(e.color)||i.isDark()||(t.className="k-chart-tooltip-inverse"),this.chartService.notify("showTooltip",t),this.visible=!0},e.prototype.hide=function(){this.chartService&&this.chartService.notify("hideTooltip"),this.visible=!1},e.prototype.destroy=function(){delete this.chartService},e}(O.Class);wt(wi,{border:{width:1},opacity:1});var Ci=wi,Oi=function(t){function e(e,r,o){t.call(this,e,o),this.crosshair=r,this.formatService=e.format,this.initAxisName()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initAxisName=function(){var t,e=this.crosshair.axis;t=e.plotArea.categoryAxis?e.getCategory?"categoryAxis":"valueAxis":e.options.vertical?"yAxis":"xAxis",this.axisName=t},e.prototype.showAt=function(t){var e=this.crosshair.axis,r=this.options,o=e[r.stickyMode?"getCategory":"getValue"](t),i=o;r.format?i=this.formatService.auto(r.format,o):e.options.type===p&&(i=this.formatService.auto(e.options.labels.dateFormats[e.options.baseUnit],o)),this.show({point:t,anchor:this.getAnchor(),crosshair:this.crosshair,value:i,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex},this.options)},e.prototype.hide=function(){this.chartService.notify("hideTooltip",{crosshair:this.crosshair,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex})},e.prototype.getAnchor=function(){var t,e,r,o=this.crosshair,i=this.options,n=i.position,l=i.padding,p=!o.axis.options.vertical,c=o.line.bbox();return p?(t=a,n===s?(e=v,r=c.bottomLeft().translate(0,l)):(e=s,r=c.topLeft().translate(0,-l))):(e=a,n===h?(t=d,r=c.topLeft().translate(-l,0)):(t=h,r=c.topRight().translate(l,0))),{point:r,align:{horizontal:t,vertical:e}}},e}(Ci);wt(Oi,{padding:10});var ki=Oi,Si=function(t){function e(e,r,o){t.call(this,o),this.axis=r,this.stickyMode=r instanceof rr;var i=this.options.tooltip;i.visible&&(this.tooltip=new ki(e,this,j({},i,{stickyMode:this.stickyMode})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.showAt=function(t){this.point=t,this.moveLine(),this.line.visible(!0),this.tooltip&&this.tooltip.showAt(t)},e.prototype.hide=function(){this.line.visible(!1),this.tooltip&&this.tooltip.hide()},e.prototype.moveLine=function(){var t,e=this.axis,r=this.point,o=e.options.vertical,i=this.getBox(),n=o?_:m,s=new O.geometry.Point(i.x1,i.y1);if(t=o?new O.geometry.Point(i.x2,i.y1):new O.geometry.Point(i.x1,i.y2),r)if(this.stickyMode){var a=e.getSlot(e.pointCategoryIndex(r));s[n]=t[n]=a.center()[n]}else s[n]=t[n]=r[n];this.box=i,this.line.moveTo(s).lineTo(t)},e.prototype.getBox=function(){for(var t,e=this.axis,r=e.pane.axes,o=r.length,i=e.options.vertical,n=e.lineBox().clone(),s=i?m:_,a=0;a<o;a++){var l=r[a];l.options.vertical!==i&&(t?t.wrap(l.lineBox()):t=l.lineBox().clone())}return n[s+1]=t[s+1],n[s+2]=t[s+2],n},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options;this.line=new O.drawing.Path({stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType},visible:!1}),this.moveLine(),this.visual.append(this.line)},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),t.prototype.destroy.call(this)},e}(Yt);wt(Si,{color:n,width:2,zIndex:-1,tooltip:{visible:!1}});var Pi=Si,Ai=function(t){function e(e,r){t.call(this,e),this.pane=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.shouldClip=function(){for(var t=this.children,e=t.length,r=0;r<e;r++)if(!0===t[r].options.clip)return!0;return!1},e.prototype._clipBox=function(){return this.pane.chartsBox()},e.prototype.createVisual=function(){if(this.visual=new O.drawing.Group({zIndex:0}),this.shouldClip()){var t=(this.clipBox=this._clipBox()).toRect(),e=O.drawing.Path.fromRect(t);k(e),this.visual.clip(e),this.unclipLabels()}},e.prototype.stackRoot=function(){return this},e.prototype.unclipLabels=function(){for(var t=this.children,e=this.clipBox,r=0;r<t.length;r++)for(var o=t[r].points||{},i=o.length,n=0;n<i;n++){var s=o[n];if(s&&!1!==s.visible&&s.overlapsBox&&s.overlapsBox(e))if(s.unclipElements)s.unclipElements();else{var a=s.label,l=s.note;a&&a.options.visible&&(a.alignToClipBox&&a.alignToClipBox(e),a.options.noclip=!0),l&&l.options.visible&&(l.options.noclip=!0)}}},e.prototype.destroy=function(){t.prototype.destroy.call(this),delete this.parent},e}(Yt);Ai.prototype.isStackRoot=!0;var Mi=Ai,Ti=function(t){function e(e){t.call(this,e),this.id="pane"+Ei++,this.createTitle(),this.content=new Yt,this.chartContainer=new Mi({},this),this.append(this.content),this.axes=[],this.charts=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createTitle=function(){var t=this.options.title;R(t)&&(t=j({},t,{align:t.position,position:v})),this.title=ue.buildTitle(t,this,e.prototype.options.title)},e.prototype.appendAxis=function(t){this.content.append(t),this.axes.push(t),t.pane=this},e.prototype.appendAxisAt=function(t,e){this.content.append(t),this.axes.splice(e,0,t),t.pane=this},e.prototype.appendChart=function(t){this.chartContainer.parent!==this.content&&this.content.append(this.chartContainer),this.charts.push(t),this.chartContainer.append(t),t.pane=this},e.prototype.empty=function(){var t=this.parent;if(t){for(var e=0;e<this.axes.length;e++)t.removeAxis(this.axes[e]);for(var r=0;r<this.charts.length;r++)t.removeChart(this.charts[r])}this.axes=[],this.charts=[],this.content.destroy(),this.content.children=[],this.chartContainer.children=[]},e.prototype.reflow=function(e){var r;ft(this.children)===this.content&&(r=this.children.pop()),t.prototype.reflow.call(this,e),r&&this.children.push(r),this.title&&(this.contentBox.y1+=this.title.box.height())},e.prototype.visualStyle=function(){var e=t.prototype.visualStyle.call(this);return e.zIndex=-10,e},e.prototype.renderComplete=function(){this.options.visible&&this.createGridLines()},e.prototype.stackRoot=function(){return this},e.prototype.clipRoot=function(){return this},e.prototype.createGridLines=function(){for(var t=this.axes,e=t.concat(this.parent.axes),r=[],o=[],i=0;i<t.length;i++)for(var n=t[i],s=n.options.vertical,a=s?r:o,l=0;l<e.length;l++)if(0===a.length){var p=e[l];s!==p.options.vertical&&it(a,n.createGridLines(p))}},e.prototype.refresh=function(){this.visual.clear(),this.content.parent=null,this.content.createGradient=this.createGradient.bind(this),this.content.renderVisual(),this.content.parent=this,this.title&&this.visual.append(this.title.visual),this.visual.append(this.content.visual),this.renderComplete(),this.notifyRender()},e.prototype.chartsBox=function(){for(var t=this.axes,e=t.length,r=new Ht,o=0;o<e;o++){var i=t[o],n=i.options.vertical?_:m,s=i.lineBox();r[n+1]=s[n+1],r[n+2]=s[n+2]}if(0===r.x2)for(var a=this.parent.axes,l=a.length,p=0;p<l;p++){var c=a[p];if(!c.options.vertical){var h=c.lineBox();r.x1=h.x1,r.x2=h.x2}}return r},e.prototype.clipBox=function(){return this.chartContainer.clipBox},e.prototype.notifyRender=function(){var t=this.getService();t&&t.notify("paneRender",{pane:new Hr(this),index:this.paneIndex,name:this.options.name})},e}(Zt),Ei=1;Ti.prototype.isStackRoot=!0,wt(Ti,{zIndex:-1,shrinkToFit:!0,title:{align:h},visible:!0});var ji=Ti;function Ri(t,e){null!==e&&t.push(e)}function Ii(t,e,r){var o=e.visible;if(st(o))return o;var i=t.pointVisibility;return i?i[r]:void 0}function Bi(t){for(var e=t.data,r=[],o=0,i=0,n=0;n<e.length;n++){var s=Yr.current.bindPoint(t,n),a=s.valueFields.value;A(a)&&(a=parseFloat(a)),P(a)?(s.visible=!1!==Ii(t,s.fields,n),s.value=Math.abs(a),r.push(s),s.visible&&(o+=s.value),0!==a&&i++):r.push(null)}return{total:o,points:r,count:i}}function Li(t,e){return t&&e?t.toLowerCase()===e.toLowerCase():t===e}function Di(t,e){for(var r=[],o=[].concat(e),i=0;i<t.length;i++){var n=t[i];Z(n.type,o)&&r.push(n)}return r}function zi(t,e,r){if(null===e)return e;var o="_date_"+t,i=e[o];return i||(i=$e(r,W(t)(e)),e[o]=i),i}function Vi(t,e){var r=t.type,o=e instanceof Date;return!r&&o||Li(r,p)}function Ni(t){return 1===t.length?t[0]:t}var Hi=/area/i;function Ui(t,e){var r=Yr.current.bindPoint(t,null,e).valueFields;for(var o in r)if(M(r[o]))return!0}function Fi(t){var e,r,o=t.start,i=t.dir,n=t.min,s=t.max,a=t.getter,l=t.hasItem,p=t.series,c=o;do{l(c+=i)&&(e=Ui(p,(r=a(c)).item))}while(n<=c&&c<=s&&!e);if(e)return r}function Gi(t,e,r,o,i){var n=e.min,s=e.max,a=n>0&&n<r,l=s+1<r;if(a||l){var p,c,h;if("interpolate"!==function(t){return t.missingValues?t.missingValues:Hi.test(t.type)||t.stack?to:"interpolate"}(t))a&&(p=o(n-1)),l&&(c=o(s+1));else a&&(p=Ui(t,(h=o(n-1)).item)?h:Fi({start:n,dir:-1,min:0,max:r-1,getter:o,hasItem:i,series:t})),l&&(c=Ui(t,(h=o(s+1)).item)?h:Fi({start:s,dir:1,min:0,max:r-1,getter:o,hasItem:i,series:t}));p&&(t._outOfRangeMinPoint=p),c&&(t._outOfRangeMaxPoint=c)}}var Wi=function(t){function e(e,r,o){t.call(this,r),this.initFields(e,r),this.series=e,this.initSeries(),this.charts=[],this.options.legend=this.options.legend||{},this.options.legend.items=[],this.axes=[],this.crosshairs=[],this.chartService=o,this.originalOptions=r,this.createPanes(),this.render(),this.createCrosshairs()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){},e.prototype.initSeries=function(){for(var t=this.series,e=0;e<t.length;e++)t[e].index=e},e.prototype.createPanes=function(){for(var t=this.options.title||{},e=this.options.paneDefaults,r=this.options.panes||[],o=Math.max(r.length,1),i=[],n=j({title:{color:t.color}},e),s=0;s<o;s++){var a=j({},n,r[s]);A(a.title)&&(a.title=j({text:a.title},n.title));var l=new ji(a);l.paneIndex=s,i.push(l),this.append(l)}this.panes=i},e.prototype.crosshairOptions=function(t){return t.options.crosshair},e.prototype.createCrosshairs=function(t){void 0===t&&(t=this.panes);for(var e=0;e<t.length;e++)for(var r=t[e],o=0;o<r.axes.length;o++){var i=r.axes[o],n=this.crosshairOptions(i);if(n&&n.visible){var s=new Pi(this.chartService,i,n);this.crosshairs.push(s),r.content.append(s)}}},e.prototype.removeCrosshairs=function(t){for(var e=this.crosshairs,r=t.axes,o=e.length-1;o>=0;o--)for(var i=0;i<r.length;i++)if(e[o].axis===r[i]){e.splice(o,1);break}},e.prototype.hideCrosshairs=function(){for(var t=this.crosshairs,e=0;e<t.length;e++)t[e].hide()},e.prototype.findPane=function(t){for(var e,r=this.panes,o=0;o<r.length;o++)if(r[o].options.name===t){e=r[o];break}return e||r[0]},e.prototype.findPointPane=function(t){for(var e,r=this.panes,o=0;o<r.length;o++)if(r[o].box.containsPoint(t)){e=r[o];break}return e},e.prototype.appendAxis=function(t){this.findPane(t.options.pane).appendAxis(t),this.axes.push(t),t.plotArea=this},e.prototype.removeAxis=function(t){for(var e=[],r=0;r<this.axes.length;r++){var o=this.axes[r];t!==o?e.push(o):o.destroy()}this.axes=e},e.prototype.appendChart=function(t,e){this.charts.push(t),e?e.appendChart(t):this.append(t)},e.prototype.removeChart=function(t){for(var e=[],r=0;r<this.charts.length;r++){var o=this.charts[r];o!==t?e.push(o):o.destroy()}this.charts=e},e.prototype.addToLegend=function(t){for(var e=t.length,r=this.options.legend,o=r.labels||{},i=r.inactiveItems||{},n=i.labels||{},s=[],a=0;a<e;a++){var l=t[a],p=!1!==l.visible;if(!1!==l.visibleInLegend){var c=l.name,h=p?U(o):U(n)||U(o);h&&(c=h({text:pi(c)?c:"",series:l}));var u=l._defaults,f=l.color;T(f)&&u&&(f=u.color);var d=void 0,v=void 0;p?(d={},v=f):(d={color:n.color,font:n.font},v=i.markers.color),pi(c)&&""!==c&&s.push({text:c,labels:d,markerColor:v,series:l,active:p})}}it(r.items,s)},e.prototype.groupAxes=function(t){for(var e=[],r=[],o=0;o<t.length;o++)for(var i=t[o].axes,n=0;n<i.length;n++){var s=i[n];s.options.vertical?r.push(s):e.push(s)}return{x:e,y:r,any:e.concat(r)}},e.prototype.groupSeriesByPane=function(){for(var t=this.series,e={},r=0;r<t.length;r++){var o=t[r],i=this.seriesPaneName(o);e[i]?e[i].push(o):e[i]=[o]}return e},e.prototype.filterVisibleSeries=function(t){for(var e=[],r=0;r<t.length;r++){var o=t[r];!1!==o.visible&&e.push(o)}return e},e.prototype.reflow=function(t){var e=this.options.plotArea,r=this.panes,o=z(e.margin);this.box=t.clone().unpad(o),this.reflowPanes(),this.detachLabels(),this.reflowAxes(r),this.reflowCharts(r)},e.prototype.redraw=function(t){var e=[].concat(t);this.initSeries();var r=this.getRoot();r&&r.cleanGradients();for(var o=0;o<e.length;o++)this.removeCrosshairs(e[o]),e[o].empty();this.render(e),this.detachLabels(),this.reflowAxes(this.panes),this.reflowCharts(e),this.createCrosshairs(e);for(var i=0;i<e.length;i++)e[i].refresh()},e.prototype.axisCrossingValues=function(t,e){for(var r=t.options,o=[].concat(r.axisCrossingValues||r.axisCrossingValue),i=e.length-o.length,n=o[0]||0,s=0;s<i;s++)o.push(n);return o},e.prototype.alignAxisTo=function(t,e,r,o){var i=t.getSlot(r,r,!0),n=t.options.reverse?2:1,s=e.getSlot(o,o,!0),a=e.options.reverse?2:1,l=t.box.translate(s[m+a]-i[m+n],s[_+a]-i[_+n]);t.pane!==e.pane&&l.translate(0,t.pane.box.y1-e.pane.box.y1),t.reflow(l)},e.prototype.alignAxes=function(t,e){for(var r=t[0],o=e[0],i=this.axisCrossingValues(r,e),n=this.axisCrossingValues(o,t),a={},l={},p={},c={},u=0;u<e.length;u++){var f=e[u],y=f.pane,g=y.id,m=!1!==f.options.visible,_=Yi(t,y)||r,b=i;_!==r&&(b=this.axisCrossingValues(_,e)),this.alignAxisTo(f,_,n[u],b[u]),f.options._overlap||(gt(f.lineBox().x1)===gt(_.lineBox().x1)&&(a[g]&&f.reflow(f.box.alignTo(a[g].box,h).translate(-f.options.margin,0)),m&&(a[g]=f)),gt(f.lineBox().x2)===gt(_.lineBox().x2)&&(f._mirrored||(f.options.labels.mirror=!f.options.labels.mirror,f._mirrored=!0),this.alignAxisTo(f,_,n[u],b[u]),l[g]&&f.reflow(f.box.alignTo(l[g].box,d).translate(f.options.margin,0)),m&&(l[g]=f)),0!==u&&o.pane===f.pane&&(f.alignTo(o),f.reflow(f.box)))}for(var x=0;x<t.length;x++){var w=t[x],C=w.pane,O=C.id,k=!1!==w.options.visible,S=Yi(e,C)||o,P=n;S!==o&&(P=this.axisCrossingValues(S,t)),this.alignAxisTo(w,S,i[x],P[x]),w.options._overlap||(gt(w.lineBox().y1)===gt(S.lineBox().y1)&&(w._mirrored||(w.options.labels.mirror=!w.options.labels.mirror,w._mirrored=!0),this.alignAxisTo(w,S,i[x],P[x]),p[O]&&w.reflow(w.box.alignTo(p[O].box,v).translate(0,-w.options.margin)),k&&(p[O]=w)),gt(w.lineBox().y2,3)===gt(S.lineBox().y2,3)&&(c[O]&&w.reflow(w.box.alignTo(c[O].box,s).translate(0,w.options.margin)),k&&(c[O]=w)),0!==x&&(w.alignTo(r),w.reflow(w.box)))}},e.prototype.shrinkAxisWidth=function(t){for(var e=this.groupAxes(t).any,r=Xi(e),o=0,i=0;i<t.length;i++){var n=t[i];n.axes.length>0&&(o=Math.max(o,r.width()-n.contentBox.width()))}if(0!==o)for(var s=0;s<e.length;s++){var a=e[s];a.options.vertical||a.reflow(a.box.shrink(o,0))}},e.prototype.shrinkAxisHeight=function(t){for(var e,r=0;r<t.length;r++){var o=t[r],i=o.axes,n=Math.max(0,Xi(i).height()-o.contentBox.height());if(0!==n){for(var s=0;s<i.length;s++){var a=i[s];a.options.vertical&&a.reflow(a.box.shrink(0,n))}e=!0}}return e},e.prototype.fitAxes=function(t){for(var e=this.groupAxes(t).any,r=0,o=0;o<t.length;o++){var i=t[o],n=i.axes,s=i.contentBox;if(n.length>0){var a=Xi(n),l=Math.max(s.y1-a.y1,s.y2-a.y2);r=Math.max(r,s.x1-a.x1);for(var p=0;p<n.length;p++){var c=n[p];c.reflow(c.box.translate(0,l))}}}for(var h=0;h<e.length;h++){var u=e[h];u.reflow(u.box.translate(r,0))}},e.prototype.reflowAxes=function(t){for(var e=this.groupAxes(t),r=0;r<t.length;r++)this.reflowPaneAxes(t[r]);e.x.length>0&&e.y.length>0&&(this.alignAxes(e.x,e.y),this.shrinkAxisWidth(t),this.autoRotateAxisLabels(e),this.alignAxes(e.x,e.y),this.shrinkAxisWidth(t)&&this.alignAxes(e.x,e.y),this.shrinkAxisHeight(t),this.alignAxes(e.x,e.y),this.shrinkAxisHeight(t)&&this.alignAxes(e.x,e.y),this.fitAxes(t))},e.prototype.autoRotateAxisLabels=function(t){for(var e,r=this.panes,o=qi(r),i=0;i<o.length;i++){o[i].autoRotateLabels()&&(e=!0)}if(e){for(var n=0;n<r.length;n++)this.reflowPaneAxes(r[n]);t.x.length>0&&t.y.length>0&&(this.alignAxes(t.x,t.y),this.shrinkAxisWidth(r))}},e.prototype.reflowPaneAxes=function(t){var e=t.axes,r=e.length;if(r>0)for(var o=0;o<r;o++)e[o].reflow(t.contentBox)},e.prototype.reflowCharts=function(t){for(var e=this.charts,r=e.length,o=this.box,i=0;i<r;i++){var n=e[i].pane;n&&!Z(n,t)||e[i].reflow(o)}},e.prototype.reflowPanes=function(){for(var t=this.box,e=this.panes,r=e.length,o=t.height(),i=0,n=t.y1,s=0;s<r;s++){var a=e[s],l=a.options.height;if(a.options.width=t.width(),a.options.height){if(l.indexOf&&l.indexOf("%")){var p=parseInt(l,10)/100;a.options.height=p*t.height()}a.reflow(t.clone()),o-=a.options.height}else i++}for(var c=0;c<r;c++){var h=e[c];h.options.height||(h.options.height=o/i)}for(var u=0;u<r;u++){var f=e[u],d=t.clone().move(t.x1,n);f.reflow(d),n+=f.options.height}},e.prototype.backgroundBox=function(){for(var t,e=this.axes,r=e.length,o=0;o<r;o++)for(var i=e[o],n=0;n<r;n++){var s=e[n];if(i.options.vertical!==s.options.vertical){var a=i.lineBox().clone().wrap(s.lineBox());t=t?t.wrap(a):a}}return t||this.box},e.prototype.chartsBoxes=function(){for(var t=this.panes,e=[],r=0;r<t.length;r++)e.push(t[r].chartsBox());return e},e.prototype.addBackgroundPaths=function(t){for(var e=this.chartsBoxes(),r=0;r<e.length;r++)t.paths.push(O.drawing.Path.fromRect(e[r].toRect()))},e.prototype.backgroundContainsPoint=function(t){for(var e=this.chartsBoxes(),r=0;r<e.length;r++)if(e[r].containsPoint(t))return!0},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e,r=this.options.plotArea,o=r.opacity,i=r.background,n=r.border;void 0===n&&(n={}),""!==(e=i)&&null!==e&&"none"!==e&&"transparent"!==e&&st(e)||(i=g,o=0);var s=this._bgVisual=new O.drawing.MultiPath({fill:{color:i,opacity:o},stroke:{color:n.width?n.color:"",width:n.width,dashType:n.dashType},zIndex:-1});this.addBackgroundPaths(s),this.appendVisual(s)},e.prototype.pointsByCategoryIndex=function(t){var e=this.charts,r=[];if(null!==t)for(var o=0;o<e.length;o++){if("_navigator"!==e[o].pane.options.name){var i=e[o].categoryPoints[t];if(i&&i.length)for(var n=0;n<i.length;n++){var s=i[n];s&&st(s.value)&&null!==s.value&&r.push(s)}}}return r},e.prototype.pointsBySeriesIndex=function(t){return this.filterPoints((function(e){return e.series.index===t}))},e.prototype.pointsBySeriesName=function(t){return this.filterPoints((function(e){return e.series.name===t}))},e.prototype.filterPoints=function(t){for(var e=this.charts,r=[],o=0;o<e.length;o++)for(var i=e[o].points,n=0;n<i.length;n++){var s=i[n];s&&!1!==s.visible&&t(s)&&r.push(s)}return r},e.prototype.findPoint=function(t){for(var e=this.charts,r=0;r<e.length;r++)for(var o=e[r].points,i=0;i<o.length;i++){var n=o[i];if(n&&!1!==n.visible&&t(n))return n}},e.prototype.paneByPoint=function(t){for(var e=this.panes,r=0;r<e.length;r++){var o=e[r];if(o.box.containsPoint(t))return o}},e.prototype.detachLabels=function(){var t=this.groupAxes(this.panes),e=t.x,r=t.y;this.detachAxisGroupLabels(r,e),this.detachAxisGroupLabels(e,r)},e.prototype.detachAxisGroupLabels=function(t,e){for(var r=0,o=0;o<t.length;o++){var i=t[o],n=i.pane,s=Yi(e,n)||e[0],a=o+r,l=this.createLabelAxis(i,a,s);if(l){r++;var p=n.axes.indexOf(i)+r;n.appendAxisAt(l,p)}}},e.prototype.createLabelAxis=function(t,e,r){var o=t.options.labels,i=o.position,n="end"!==i&&"start"!==i,s=o.visible;if(n||!1===s)return null;var a=this.groupAxes(this.panes),l=r.options.vertical?a.x:a.y,p=this.axisCrossingValues(r,l),c="end"===i,h=r.range(),u=c?h.max:h.min;if(dt(p[e],h.min,h.max)-u==0)return null;p.splice(e+1,0,u),r.options.axisCrossingValues=p;var f=t.clone();return t.clear(),f.options.name=void 0,f.options.line.visible=!1,f.options.crosshair=void 0,f.options.notes=void 0,f.options.plotBands=void 0,f},e}(Yt);function Ki(t){return!t.pane.axes.some((function(e){return e.options.vertical===t.options.vertical&&e!==t&&!1!==e.options.visible}))}function Xi(t){for(var e,r=t.length,o=0;o<r;o++){var i=t[o],n=!1!==i.options.visible;if(n||Ki(i)){var s=n?i.contentBox():i.lineBox();e?e.wrap(s):e=s.clone()}}return e||new Ht}function Yi(t,e){for(var r=0;r<t.length;r++){var o=t[r];if(o&&o.pane===e)return o}}var qi=function(t){return t.reduce((function(t,e){return t.concat(e.axes)}),[])};wt(Wi,{series:[],plotArea:{margin:{}},background:"",border:{color:n,width:0},paneDefaults:{title:{}},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});var Zi=Wi,Qi={hover:function(t,e){this._dispatchEvent(t,e,"plotAreaHover")},click:function(t,e){this._dispatchEvent(t,e,"plotAreaClick")}};function $i(t,e,r){var o=e,i=t;if(t.indexOf(".")>-1){for(var n=t.split(".");n.length>1;)i=n.shift(),st(o[i])||(o[i]={}),o=o[i];i=n.shift()}o[i]=r}var Ji=function(t){function e(e,r,o){t.call(this);var i=r.canonicalFields(e),n=r.valueFields(e),s=r.sourceFields(e,i),a=this._seriesFields=[],l=o.query(e.type),p=e.aggregate||l;this._series=e,this._binder=r;for(var c=0;c<i.length;c++){var h=i[c],u=void 0;if(R(p))u=p[h];else{if(0!==c&&!Z(h,n))break;u=p}u&&a.push({canonicalName:h,name:s[c],transform:T(u)?u:Wr[u]})}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.aggregatePoints=function(t,e){var r=this._series,o=this._seriesFields,i=this._bindPoints(t||[]),n=i.dataItems[0],s={};if(n&&!P(n)&&!b(n)){var a=function(){};a.prototype=n,s=new a}for(var l=0;l<o.length;l++){var p=o[l],c=this._bindField(i.values,p.canonicalName),h=p.transform(c,r,i.dataItems,e);if(!(null===h||!R(h)||st(h.length)||h instanceof Date)){s=h;break}st(h)&&$i(p.name,s,h)}return s},e.prototype._bindPoints=function(t){for(var e=this._binder,r=this._series,o=[],i=[],n=0;n<t.length;n++){var s=t[n];o.push(e.bindPoint(r,s)),i.push(r.data[s])}return{values:o,dataItems:i}},e.prototype._bindField=function(t,e){for(var r=[],o=t.length,i=0;i<o;i++){var n=t[i],s=n.valueFields,a=void 0;a=st(s[e])?s[e]:n.fields[e],r.push(a)}return r},e}(O.Class),tn=function(t){function e(){t.call(this),this._defaults={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e){for(var r=0;r<t.length;r++)this._defaults[t[r]]=e},e.prototype.query=function(t){return this._defaults[t]},e}(O.Class);tn.current=new tn;var en=tn,rn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createLabel=function(){var t=this.options.labels,e=j({},t,t.from),r=j({},t,t.to);e.visible&&(this.labelFrom=this._createLabel(e),this.append(this.labelFrom)),r.visible&&(this.labelTo=this._createLabel(r),this.append(this.labelTo))},e.prototype._createLabel=function(t){var e,r=U(t),o=this.pointData();return e=r?r(o):this.formatValue(t.format),new Ho(e,j({vertical:this.options.vertical},t),o)},e.prototype.reflow=function(t){this.render();var e=this.labelFrom,r=this.labelTo,o=this.value;this.box=t,e&&(e.options.aboveAxis=o.from>o.to,e.reflow(t)),r&&(r.options.aboveAxis=o.to>o.from,r.reflow(t)),this.note&&this.note.reflow(t)},e}(Go);rn.prototype.defaults=j({},rn.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});var on=rn,nn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return on},e.prototype.pointValue=function(t){return t.valueFields},e.prototype.formatPointValue=function(t,e){return null===t.value.from&&null===t.value.to?"":this.chartService.format.auto(e,t.value.from,t.value.to)},e.prototype.plotRange=function(t){return t?[t.value.from,t.value.to]:0},e.prototype.updateRange=function(t,e){var r=e.series.axis,o=t.from,i=t.to,n=this.valueAxisRanges[r];null!==t&&P(o)&&P(i)&&((n=this.valueAxisRanges[r]=n||{min:u,max:f}).min=Math.min(n.min,o),n.max=Math.max(n.max,o),n.min=Math.min(n.min,i),n.max=Math.max(n.max,i))},e.prototype.aboveAxis=function(t){var e=t.value;return e.from<e.to},e}($o);nn.prototype.plotLimits=vo.prototype.plotLimits;var sn=nn,an=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.aliasFor=function(){return this.parent},e}(_o),ln=function(t){function e(e,r){t.call(this),this.value=e,this.options=r,this.aboveAxis=_t(this.options.aboveAxis,!0),this.tooltipTracking=!0,this.initLabelsFormat()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){if(!this._rendered){this._rendered=!0;var t=this.options,e=t.markers,r=t.labels,o=this.value,i=this.fromPoint=new an(o,j({},this.options,{labels:r.from,markers:e.from})),n=this.toPoint=new an(o,j({},this.options,{labels:r.to,markers:e.to}));this.copyFields(i),this.copyFields(n),this.append(i),this.append(n)}},e.prototype.reflow=function(t){this.render();var e=t.from,r=t.to;this.positionLabels(e,r),this.fromPoint.reflow(e),this.toPoint.reflow(r),this.box=this.fromPoint.markerBox().clone().wrap(this.toPoint.markerBox())},e.prototype.createHighlight=function(){var t=new O.drawing.Group;return t.append(this.fromPoint.createHighlight()),t.append(this.toPoint.createHighlight()),t},e.prototype.highlightVisual=function(){return this.visual},e.prototype.highlightVisualArgs=function(){return{options:this.options,from:this.fromPoint.highlightVisualArgs(),to:this.toPoint.highlightVisualArgs()}},e.prototype.tooltipAnchor=function(){var t=this.owner.pane.clipBox();if(!t||t.overlaps(this.box)){var e,r,o,i=this.box,n=i.center();return this.options.vertical?(e=n.x,r=i.y1-5,o=s):(e=i.x2+5,r=n.y,o=a),{point:new Vt(e,r),align:{horizontal:"left",vertical:o}}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.unclipElements=function(){this.fromPoint.unclipElements(),this.toPoint.unclipElements()},e.prototype.initLabelsFormat=function(){var t=this.options.labels;t.format||(t.from&&t.from.format||(t.from=Object.assign({},t.from,{format:"{0}"})),t.to&&t.to.format||(t.to=Object.assign({},t.to,{format:"{1}"})))},e.prototype.positionLabels=function(t,e){var r,o,i=this.options,n=i.labels,s=i.vertical;"auto"===n.position&&(s?e.y1<=t.y1?(o="above",r="below"):(o="below",r="above"):e.x1<=t.x1?(o=h,r=d):(o=d,r=h),n.from&&n.from.position||(this.fromPoint.options.labels.position=r),n.to&&n.to.position||(this.toPoint.options.labels.position=o))},e.prototype.copyFields=function(t){t.dataItem=this.dataItem,t.category=this.category,t.series=this.series,t.color=this.color,t.owner=this.owner},e}(Yt);j(ln.prototype,yo),j(ln.prototype,go),ln.prototype.defaults={markers:{visible:!1,background:g,size:8,type:l,border:{width:2},opacity:1},labels:{visible:!1,margin:z(3),padding:z(4),animation:{type:"fadeIn",delay:600},position:"auto"},notes:{label:{}},highlight:{markers:{border:{color:g,width:2}},zIndex:100},tooltip:{format:"{0} - {1}"}};var pn=ln,cn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.toGeometryPoints(this.toPoints()))},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.toGeometryPoints(this.fromPoints().reverse()))),t},e.prototype.createStroke=function(t){var e=new O.drawing.Path(t),r=new O.drawing.Path(t);e.segments.push.apply(e.segments,this.strokeSegments()),r.segments.push.apply(r.segments,this.stackSegments()),this.visual.append(e),this.visual.append(r)},e.prototype.hasStackSegment=function(){return!0},e.prototype.fromPoints=function(){return this.linePoints.map((function(t){return t.fromPoint}))},e.prototype.toPoints=function(){return this.linePoints.map((function(t){return t.toPoint}))},e}(Io),hn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.createCurveSegments(this.toPoints())},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.createCurveSegments(this.fromPoints().reverse())),t},e.prototype.createCurveSegments=function(t){return(new Dr).process(this.toGeometryPoints(t))},e}(cn),un=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.calculateStepPoints(this.toPoints()))},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.calculateStepPoints(this.fromPoints()))).reverse(),t},e}(cn);j(un.prototype,Co);var fn=un,dn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.pointType=function(){return pn},e.prototype.createPoint=function(t,e){var r=e.categoryIx,o=e.category,i=e.series,n=e.seriesIx,s=t.valueFields;if(!pi(s.from)&&!pi(s.to)){if(this.seriesMissingValues(i)!==to)return null;s={from:0,to:0}}var a=this.pointOptions(i,n);a=this.evalPointOptions(a,s,o,r,i,n);var l=t.fields.color||i.color;T(i.color)&&(l=a.color);var p=new pn(s,a);return p.color=l,this.append(p),p},e.prototype.createSegment=function(t,e,r){var o=(e.line||{}).style;return new("smooth"===o?hn:"step"===o?fn:cn)(t,e,r)},e.prototype.plotRange=function(t,e){return t?[t.value.from,t.value.to]:[e,e]},e.prototype.valueSlot=function(t,e){var r=t.getSlot(e[0],e[0],!this.options.clip),o=t.getSlot(e[1],e[1],!this.options.clip);if(r&&o)return{from:r,to:o}},e.prototype.pointSlot=function(t,e){var r,o,i=e.from,n=e.to;return this.options.invertAxes?(r=new Ht(i.x1,t.y1,i.x2,t.y2),o=new Ht(n.x1,t.y1,n.x2,t.y2)):(r=new Ht(t.x1,i.y1,t.x2,i.y2),o=new Ht(t.x1,n.y1,t.x2,n.y2)),{from:r,to:o}},e.prototype.addValue=function(e,r){var o=e.valueFields;P(o.from)||(o.from=o.to),P(o.to)||(o.to=o.from),t.prototype.addValue.call(this,e,r)},e.prototype.updateRange=function(t,e){if(null!==t&&P(t.from)&&P(t.to)){var r=e.series.axis,o=this.valueAxisRanges[r]=this.valueAxisRanges[r]||{min:u,max:f},i=t.from,n=t.to;o.min=Math.min(o.min,i,n),o.max=Math.max(o.max,i,n)}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.from,r.to)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],r=0;r<t.length;r++){var o=t[r];o&&(e.push((o.fromPoint||{}).marker),e.push((o.toPoint||{}).marker))}return e.concat(this._segments)},e}(vo);j(dn.prototype,Po,Eo);var vn=dn,yn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,r=this.value,o=this.owner.seriesValueAxis(e),i=[],n=[],s=[],a=o.getSlot(r.low,r.high),l=o.getSlot(r.open,r.open),p=o.getSlot(r.close,r.close);l.x1=p.x1=a.x1=t.x1,l.x2=p.x2=a.x2=t.x2;var c=a.center().x;i.push([l.x1,l.y1]),i.push([c,l.y1]),n.push([c,p.y1]),n.push([p.x2,p.y1]),s.push([c,a.y1]),s.push([c,a.y2]),this.lines=[i,n,s],this.box=a.clone().wrap(l.clone().wrap(p)),this.reflowNote()},e.prototype.createBody=function(){},e}(ti),gn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return yn},e}(oi),mn=function(t){function e(e,r,o){t.call(this),this.from=e,this.to=r,this.series=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.linePoints=function(){var t=this.from,e=this.from.box,r=this.to.box,o=[];if(t.isVertical){var i=t.aboveAxis?e.y1:e.y2;o.push([e.x1,i],[r.x2,i])}else{var n=t.aboveAxis?e.x2:e.x1;o.push([n,e.y1],[n,r.y2])}return o},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.series.line||{},r=O.drawing.Path.fromPoints(this.linePoints(),{stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType}});k(r),this.visual.append(r)},e}(Yt);wt(mn,{animation:{type:"fadeIn",delay:600}});var _n=mn,bn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.createSegments()},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,r=uo(e),o=!this.options.invertAxes,i=0;i<e.length;i++)for(var n=e[i],s=0,a=0,l=0;l<r;l++){var p=Yr.current.bindPoint(n,l),c=p.valueFields.value,h=p.fields.summary,u=s,f=void 0;h?"total"===h.toLowerCase()?(p.valueFields.value=s,u=0,f=s):(p.valueFields.value=a,f=u-a,a=0):P(c)&&(a+=c,f=s+=c),t(p,{category:this.categoryAxis.categoryAt(l),categoryIx:l,series:n,seriesIx:i,total:s,runningTotal:a,from:u,to:f,isVertical:o})}},e.prototype.updateRange=function(e,r){t.prototype.updateRange.call(this,{value:r.to},r)},e.prototype.aboveAxis=function(t){return t.value>=0},e.prototype.plotRange=function(t){return[t.from,t.to]},e.prototype.createSegments=function(){for(var t=this.options.series,e=this.seriesPoints,r=this.segments=[],o=0;o<t.length;o++){var i=t[o],n=e[o];if(n)for(var s=void 0,a=0;a<n.length;a++){var l=n[a];if(l&&s){var p=new _n(s,l,i);r.push(p),this.append(p)}s=l}}},e}($o),xn=["area","verticalArea","rangeArea","verticalRangeArea"],wn=[oo,no].concat(xn),Cn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(t){if(this.namedCategoryAxes={},this.namedValueAxes={},this.valueAxisRangeTracker=new Vo,t.length>0){this.invertAxes=Z(t[0].type,[eo,"bullet",no,"verticalArea","verticalRangeArea","rangeBar","horizontalWaterfall","verticalBoxPlot"]);for(var e=0;e<t.length;e++){var r=t[e].stack;if(r&&"100%"===r.type){this.stack100=!0;break}}}},e.prototype.render=function(t){void 0===t&&(t=this.panes),this.createCategoryAxes(t),this.aggregateCategories(t),this.createCategoryAxesLabels(t),this.createCharts(t),this.createValueAxes(t)},e.prototype.removeAxis=function(e){var r=e.options.name;t.prototype.removeAxis.call(this,e),e instanceof rr?delete this.namedCategoryAxes[r]:(this.valueAxisRangeTracker.reset(r),delete this.namedValueAxes[r]),e===this.categoryAxis&&delete this.categoryAxis,e===this.valueAxis&&delete this.valueAxis},e.prototype.createCharts=function(t){for(var e=this.groupSeriesByPane(),r=0;r<t.length;r++){var o=t[r],i=e[o.options.name||"default"]||[];this.addToLegend(i);var n=this.filterVisibleSeries(i);if(n)for(var s=this.groupSeriesByCategoryAxis(n),a=0;a<s.length;a++)this.createChartGroup(s[a],o)}},e.prototype.createChartGroup=function(t,e){this.createAreaChart(Di(t,["area","verticalArea"]),e),this.createRangeAreaChart(Di(t,["rangeArea","verticalRangeArea"]),e),this.createBarChart(Di(t,[ro,eo]),e),this.createRangeBarChart(Di(t,["rangeColumn","rangeBar"]),e),this.createBulletChart(Di(t,["bullet","verticalBullet"]),e),this.createCandlestickChart(Di(t,"candlestick"),e),this.createBoxPlotChart(Di(t,["boxPlot","verticalBoxPlot"]),e),this.createOHLCChart(Di(t,"ohlc"),e),this.createWaterfallChart(Di(t,["waterfall","horizontalWaterfall"]),e),this.createLineChart(Di(t,[oo,no]),e)},e.prototype.aggregateCategories=function(t){var e=this.srcSeries||this.series,r=[];this._currentPointsCache={},this._seriesPointsCache=this._seriesPointsCache||{};for(var o=0;o<e.length;o++){var i=e[o],n=this.seriesCategoryAxis(i),s=this.findPane(n.options.pane);i=(Li(n.options.type,p)||i.categoryField)&&Z(s,t)?this.aggregateSeries(i,n):this.filterSeries(i,n),r.push(i)}this._seriesPointsCache=this._currentPointsCache,this._currentPointsCache=null,this.srcSeries=e,this.series=r},e.prototype.filterSeries=function(t,e){var r=(t.data||{}).length;if(e._seriesMax=Math.max(e._seriesMax||0,r),!P(e.options.min)&&!P(e.options.max))return t;var o=e.currentRangeIndices(),i=Z(t.type,wn),n=j({},t);return n.data=(n.data||[]).slice(o.min,o.max+1),i&&Gi(n,o,r,(function(r){return{item:t.data[r],category:e.categoryAt(r,!0),categoryIx:r-o.min}}),(function(e){return st(t.data[e])})),n},e.prototype.clearSeriesPointsCache=function(){this._seriesPointsCache={}},e.prototype.seriesSourcePoints=function(t,e){var r=t.index+";"+e.categoriesHash();if(this._seriesPointsCache[r])return this._currentPointsCache[r]=this._seriesPointsCache[r],this._seriesPointsCache[r];var o=e.options,i=o.srcCategories,n=Li(o.type,p),s=t.data,a=n?zi:Kr,l=[];n||e.mapCategories();for(var c=0;c<s.length;c++){var h=void 0;if(h=t.categoryField?a(t.categoryField,s[c],this.chartService.intl):i[c],st(h)&&null!==h){var u=e.totalIndex(h);l[u]=l[u]||{items:[],category:h},l[u].items.push(c)}}return this._currentPointsCache[r]=l,l},e.prototype.aggregateSeries=function(t,e){if(!t.data.length)return t;for(var r=this.seriesSourcePoints(t,e),o=j({},t),i=new Ji(j({},t),Yr.current,en.current),n=o.data=[],s=e.options.dataItems||[],a=e.currentRangeIndices(),l=function(t){var o=t-a.min,n=r[t];if(n||(n=r[t]={}),n.categoryIx=o,!n.item){var s=e.categoryAt(t,!0);n.category=s,n.item=i.aggregatePoints(n.items,s)}return n},p=a.min;p<=a.max;p++){var c=l(p);n[c.categoryIx]=c.item,c.items&&c.items.length&&(s[c.categoryIx]=c.item)}return Z(o.type,wn)&&Gi(o,a,e.totalCount(),l,(function(t){return r[t]})),e.options.dataItems=s,o},e.prototype.appendChart=function(e,r){var o=e.options.series,i=this.seriesCategoryAxis(o[0]),n=i.options.categories,s=Math.max(0,uo(o)-n.length);if(s>0)for(n=i.options.categories=i.options.categories.slice(0);s--;)n.push("");this.valueAxisRangeTracker.update(e.valueAxisRanges),t.prototype.appendChart.call(this,e,r)},e.prototype.seriesPaneName=function(t){var e=this.options,r=t.axis,o=K([].concat(e.valueAxis),(function(t){return t.name===r}))[0],i=((e.panes||[{}])[0]||{}).name||"default";return(o||{}).pane||i},e.prototype.seriesCategoryAxis=function(t){var e=t.categoryAxis,r=e?this.namedCategoryAxes[e]:this.categoryAxis;if(!r)throw new Error("Unable to locate category axis with name "+e);return r},e.prototype.stackableChartOptions=function(t,e){var r=t.stack;return{isStacked:r,isStacked100:r&&"100%"===r.type,clip:e.options.clip}},e.prototype.groupSeriesByCategoryAxis=function(t){for(var e=[],r={},o=0;o<t.length;o++){var i=t[o].categoryAxis||"$$default$$";r.hasOwnProperty(i)||(r[i]=!0,e.push(i))}for(var n=[],s=0;s<e.length;s++){var a=kn(t,e[s],s);0!==a.length&&n.push(a)}return n},e.prototype.createBarChart=function(t,e){if(0!==t.length){var r=t[0],o=new $o(this,Object.assign({series:t,invertAxes:this.invertAxes,gap:r.gap,spacing:r.spacing},this.stackableChartOptions(r,e)));this.appendChart(o,e)}},e.prototype.createRangeBarChart=function(t,e){if(0!==t.length){var r=t[0],o=new sn(this,{series:t,invertAxes:this.invertAxes,gap:r.gap,spacing:r.spacing});this.appendChart(o,e)}},e.prototype.createBulletChart=function(t,e){if(0!==t.length){var r=t[0],o=new xi(this,{series:t,invertAxes:this.invertAxes,gap:r.gap,spacing:r.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var r=t[0],o=new Ro(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(r,e)));this.appendChart(o,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var r=t[0],o=new zo(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(r,e)));this.appendChart(o,e)}},e.prototype.createRangeAreaChart=function(t,e){if(0!==t.length){var r=new vn(this,{invertAxes:this.invertAxes,series:t,clip:e.options.clip});this.appendChart(r,e)}},e.prototype.createOHLCChart=function(t,e){if(0!==t.length){var r=t[0],o=new gn(this,{invertAxes:this.invertAxes,gap:r.gap,series:t,spacing:r.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createCandlestickChart=function(t,e){if(0!==t.length){var r=t[0],o=new oi(this,{invertAxes:this.invertAxes,gap:r.gap,series:t,spacing:r.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createBoxPlotChart=function(t,e){if(0!==t.length){var r=t[0],o=new ai(this,{invertAxes:this.invertAxes,gap:r.gap,series:t,spacing:r.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createWaterfallChart=function(t,e){if(0!==t.length){var r=t[0],o=new bn(this,{series:t,invertAxes:this.invertAxes,gap:r.gap,spacing:r.spacing});this.appendChart(o,e)}},e.prototype.axisRequiresRounding=function(t,e){for(var r=Di(this.series,so),o=0;o<this.series.length;o++){var i=this.series[o];if(Z(i.type,xn)){var n=i.line;n&&"step"===n.style&&r.push(i)}}for(var s=0;s<r.length;s++){var a=r[s].categoryAxis||"";if(a===t||!a&&0===e)return!0}},e.prototype.aggregatedAxis=function(t,e){for(var r=this.series,o=0;o<r.length;o++){var i=r[o].categoryAxis||"";if((i===t||!i&&0===e)&&r[o].categoryField)return!0}},e.prototype.createCategoryAxesLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e]instanceof rr&&t[e].createLabels()},e.prototype.createCategoryAxes=function(t){for(var e=this.invertAxes,r=[].concat(this.options.categoryAxis),o=[],i=0;i<r.length;i++){var n=r[i];if(Z(this.findPane(n.pane),t)){var s=n.name,a=n.categories;void 0===a&&(a=[]),n=j({vertical:e,reverse:!e&&this.chartService.rtl,axisCrossingValue:e?u:0},n),st(n.justified)||(n.justified=this.isJustified()),this.axisRequiresRounding(s,i)&&(n.justified=!1);var l=void 0;if(l=Vi(n,a[0])?new hr(n,this.chartService):new rr(n,this.chartService),r[i].categories=l.options.srcCategories,s){if(this.namedCategoryAxes[s])throw new Error("Category axis with name "+s+" is already defined");this.namedCategoryAxes[s]=l}l.axisIndex=i,o.push(l),this.appendAxis(l)}}var p=this.categoryAxis||o[0];this.categoryAxis=p,e?this.axisY=p:this.axisX=p},e.prototype.isJustified=function(){for(var t=this.series,e=0;e<t.length;e++){if(!Z(t[e].type,xn))return!1}return!0},e.prototype.createValueAxes=function(t){var e=this.valueAxisRangeTracker,r=e.query(),o=[].concat(this.options.valueAxis),i=this.invertAxes,n={vertical:!i,reverse:i&&this.chartService.rtl},s=[];this.stack100&&(n.roundToMajorUnit=!1,n.labels={format:"P0"});for(var a=0;a<o.length;a++){var l=o[a];if(Z(this.findPane(l.pane),t)){var p=l.name,c=Li(l.type,"log")?{min:.1,max:1}:{min:0,max:1},h=e.query(p)||r||c;0===a&&h&&r&&(h.min=Math.min(h.min,r.min),h.max=Math.max(h.max,r.max));var u=new(Li(l.type,"log")?Or:mr)(h.min,h.max,j({},n,l),this.chartService);if(p){if(this.namedValueAxes[p])throw new Error("Value axis with name "+p+" is already defined");this.namedValueAxes[p]=u}u.axisIndex=a,s.push(u),this.appendAxis(u)}}var f=this.valueAxis||s[0];this.valueAxis=f,i?this.axisX=f:this.axisY=f},e.prototype._dispatchEvent=function(t,e,r){var o=t._eventCoordinates(e),i=new Vt(o.x,o.y),n=this.pointPane(i),s=[],a=[];if(n){for(var l=n.axes,p=0;p<l.length;p++){var c=l[p];c.getValue?Ri(a,c.getValue(i)):Ri(s,c.getCategory(i))}0===s.length&&Ri(s,this.categoryAxis.getCategory(i)),s.length>0&&a.length>0&&t.trigger(r,{element:ht(e),originalEvent:e,category:Ni(s),value:Ni(a)})}},e.prototype.pointPane=function(t){for(var e=this.panes,r=0;r<e.length;r++){var o=e[r];if(o.contentBox.containsPoint(t))return o}},e.prototype.updateAxisOptions=function(t,e){On(this.options,t,e),On(this.originalOptions,t,e)},e}(Zi);function On(t,e,r){j([].concat(e instanceof rr?t.categoryAxis:t.valueAxis)[e.axisIndex],r)}function kn(t,e,r){return K(t,(function(t){return 0===r&&!t.categoryAxis||t.categoryAxis===e}))}wt(Cn,{categoryAxis:{},valueAxis:{}}),j(Cn.prototype,Qi);var Sn=Cn;function Pn(){this._defaultPrevented=!0}var An=function(t){function e(){t.call(this),this._points=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this._points=[]},e.prototype.show=function(t,e){var r=[].concat(t);this.hide();for(var o=0;o<r.length;o++){var i=r[o];i&&i.toggleHighlight&&i.hasHighlight()&&(this.togglePointHighlight(i,!0,e),this._points.push(i))}},e.prototype.togglePointHighlight=function(t,e,r){var o=(t.options.highlight||{}).toggle;if(o){var i={category:t.category,series:t.series,dataItem:t.dataItem,value:t.value,stackValue:t.stackValue,preventDefault:Pn,visual:t.highlightVisual(),show:e};o(i),i._defaultPrevented||t.toggleHighlight(e,r)}else t.toggleHighlight(e,r)},e.prototype.hide=function(){for(var t=this._points;t.length;)this.togglePointHighlight(t.pop(),!1)},e.prototype.isHighlighted=function(t){for(var e=this._points,r=0;r<e.length;r++){if(t===e[r])return!0}return!1},e}(O.Class);function Mn(t,e){var r=(e||"").toLowerCase(),o=t.event;return"none"===r&&!(o.ctrlKey||o.shiftKey||o.altKey)||o[r+"Key"]}function Tn(t){for(var e={},r=0;r<t.length;r++){var o=t[r];o.axis.options.name&&(e[o.axis.options.name]={min:o.range.min,max:o.range.max})}return e}var En=function(t){function e(e,r){t.call(this),this.plotArea=e,this.options=j({},this.options,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.start=function(t){return this._active=Mn(t,this.options.key),this._active},e.prototype.move=function(t){if(this._active){var e=this.axisRanges=this._panAxes(t,m).concat(this._panAxes(t,_));if(e.length)return this.axisRanges=e,Tn(e)}},e.prototype.end=function(){var t=this._active;return this._active=!1,t},e.prototype.pan=function(){var t=this.plotArea,e=this.axisRanges;if(e.length){for(var r=0;r<e.length;r++){var o=e[r];t.updateAxisOptions(o.axis,o.range)}t.redraw(t.panes)}},e.prototype.destroy=function(){delete this.plotArea},e.prototype._panAxes=function(t,e){var r=this.plotArea,o=-t[e].delta,i=(this.options.lock||"").toLowerCase(),n=[];if(0!==o&&(i||"").toLowerCase()!==e)for(var s=r.axes,a=0;a<s.length;a++){var l=s[a];if(e===m&&!l.options.vertical||e===_&&l.options.vertical){var p=l.pan(o);p&&(p.limitRange=!0,n.push({axis:l,range:p}))}}return n},e}(O.Class);En.prototype.options={key:"none",lock:"none"};var jn=En,Rn=function(t){function e(e,r){t.call(this),this.chart=e,this.options=j({},this.options,r),this.createElement()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createElement=function(){var t=this._marquee=document.createElement("div");t.className="k-marquee";var e=document.createElement("div");e.className="k-marquee-color",t.appendChild(e)},e.prototype.removeElement=function(){this._marquee.parentNode&&this._marquee.parentNode.removeChild(this._marquee)},e.prototype.setStyles=function(t){D(this._marquee,t)},e.prototype.start=function(t){if(Mn(t,this.options.key)){var e=this.chart,r=e._eventCoordinates(t),o=this._zoomPane=e._plotArea.paneByPoint(r),i=o?o.chartsBox().clone():null;if(o&&i){var n=this._elementOffset();return i.translate(n.left,n.top),this._zoomPaneClipBox=i,document.body.appendChild(this._marquee),this.setStyles({left:t.pageX+1,top:t.pageY+1,width:0,height:0}),!0}}return!1},e.prototype._elementOffset=function(){var t=this.chart.element,e=D(t,["paddingLeft","paddingTop"]),r=e.paddingLeft,o=e.paddingTop,i=lt(t);return{left:r+i.left,top:o+i.top}},e.prototype.move=function(t){this._zoomPane&&this.setStyles(this._selectionPosition(t))},e.prototype.end=function(t){if(this._zoomPane){var e=this._elementOffset(),r=this._selectionPosition(t);r.left-=e.left,r.top-=e.top;var o={x:r.left,y:r.top},i={x:r.left+r.width,y:r.top+r.height};return this._updateAxisRanges(o,i),this.removeElement(),delete this._zoomPane,Tn(this.axisRanges)}},e.prototype.zoom=function(){var t=this.axisRanges;if(t&&t.length){for(var e=this.chart._plotArea,r=0;r<t.length;r++){var o=t[r];e.updateAxisOptions(o.axis,o.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){this.removeElement(),delete this._marquee,delete this.chart},e.prototype._updateAxisRanges=function(t,e){for(var r=(this.options.lock||"").toLowerCase(),o=[],i=this._zoomPane.axes,n=0;n<i.length;n++){var s=i[n],a=s.options.vertical;if((r!==m||a)&&(r!==_||!a)&&st(s.axisIndex)){var l=s.pointsRange(t,e);l&&o.push({axis:s,range:l})}}this.axisRanges=o},e.prototype._selectionPosition=function(t){var e=this._zoomPaneClipBox,r={x:t.x.startLocation,y:t.y.startLocation},o=t.x.location,i=t.y.location,n=(this.options.lock||"").toLowerCase(),s=Math.min(r.x,o),a=Math.min(r.y,i),l=Math.abs(r.x-o),p=Math.abs(r.y-i);return n===m&&(s=e.x1,l=e.width()),n===_&&(a=e.y1,p=e.height()),o>e.x2&&(l=e.x2-r.x),o<e.x1&&(l=r.x-e.x1),i>e.y2&&(p=e.y2-r.y),i<e.y1&&(p=r.y-e.y1),{left:Math.max(s,e.x1),top:Math.max(a,e.y1),width:l,height:p}},e}(O.Class);Rn.prototype.options={key:"shift",lock:"none"};var In=Rn,Bn=function(t){function e(e,r){t.call(this),this.chart=e,this.options=j({rate:.3},this.options,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.updateRanges=function(t,e){for(var r=(this.options.lock||"").toLowerCase(),o=[],i=this.chart._plotArea.axes,n=0;n<i.length;n++){var s=i[n],a=s.options.vertical;if((r!==m||a)&&(r!==_||!a)&&s.zoomRange){var l=dt(this.options.rate,.01,.9),p=s.zoomRange(-t*l,e);p&&o.push({axis:s,range:p})}}return this.axisRanges=o,Tn(o)},e.prototype.zoom=function(){var t=this.axisRanges,e=this.chart._plotArea;if(t&&t.length&&e.updateAxisOptions){for(var r=0;r<t.length;r++){var o=t[r];e.updateAxisOptions(o.axis,o.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){delete this.chart},e}(O.Class),Ln=function(t){function e(e,r){t.call(this,e),this.chartService=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.children,e=this.options,r=e.vertical;this.visual=new O.drawing.Layout(null,{spacing:r?0:e.spacing,lineSpacing:r?e.spacing:0,orientation:r?"vertical":"horizontal",reverse:e.rtl,alignItems:r?"start":"center"});for(var o=0;o<t.length;o++){var i=t[o];i.reflow(new Ht),i.renderVisual()}},e.prototype.reflow=function(t){this.visual.rect(t.toRect()),this.visual.reflow();var e=this.visual.clippedBBox();this.box=e?le(e):new Ht},e.prototype.renderVisual=function(){this.addVisual()},e.prototype.createVisual=function(){},e}(Yt),Dn=function(t){function e(e){t.call(this,e),this.createContainer(),e.rtl?(this.createLabel(),this.createMarker()):(this.createMarker(),this.createLabel())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createContainer=function(){this.container=new ie({vertical:!1,wrap:!1,align:a,spacing:this.options.spacing}),this.append(this.container)},e.prototype.createMarker=function(){this.container.append(new $t(this.markerOptions()))},e.prototype.markerOptions=function(){var t=this.options,e=t.markerColor;return j({},t.markers,{background:e,border:{color:e}})},e.prototype.createLabel=function(){var t=this.options,e=j({},t.labels);this.container.append(new ce(t.text,e))},e.prototype.renderComplete=function(){t.prototype.renderComplete.call(this);var e=this.options.cursor||{},r=this._itemOverlay=O.drawing.Path.fromRect(this.container.box.toRect(),{fill:{color:g,opacity:0},stroke:null,cursor:e.style||e});this.appendVisual(r)},e.prototype.click=function(t,e){var r=this.eventArgs(e);!t.trigger("legendItemClick",r)&&e&&"contextmenu"===e.type&&e.preventDefault()},e.prototype.over=function(t,e){var r=this.eventArgs(e);return t.trigger("legendItemHover",r)||t._legendItemHover(r.seriesIndex,r.pointIndex),!0},e.prototype.out=function(t,e){t._unsetActivePoint(),t.trigger("legendItemLeave",this.eventArgs(e))},e.prototype.eventArgs=function(t){var e=this.options;return{element:ht(t),text:e.text,series:e.series,seriesIndex:e.series.index,pointIndex:e.pointIndex}},e.prototype.renderVisual=function(){var e=this,r=this.options,o=r.visual;o?(this.visual=o({active:r.active,series:r.series,sender:this.getSender(),pointIndex:r.pointIndex,options:{markers:this.markerOptions(),labels:r.labels},createVisual:function(){e.createVisual(),e.renderChildren(),e.renderComplete();var t=e.visual;return delete e.visual,t}}),this.addVisual()):t.prototype.renderVisual.call(this)},e}(Zt),zn=function(t){function e(e,r){void 0===r&&(r={}),t.call(this,e),this.chartService=r,Z(this.options.position,[v,d,s,h,"custom"])||(this.options.position=d),this.createContainers(),this.createLegendTitle(e.title),this.createItems()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createContainers=function(){var t=this.options,e=t.position,r=t.align,o=e,i=a;"custom"===e?o=h:Z(e,[v,s])?(o="start"===r?h:"end"===r?d:a,i=e):r&&("start"===r?i=v:"end"===r&&(i=s)),this.container=new Zt({margin:t.margin,padding:t.padding,background:t.background,border:t.border,vAlign:i,align:o,zIndex:t.zIndex,shrinkToFit:!0}),this.hasTitle()?this.itemsContainer=new Zt({vAlign:i,align:o,zIndex:t.zIndex,shrinkToFit:!0}):this.itemsContainer=this.container,this.append(this.container)},e.prototype.createItems=function(){var t=this.getService(),e=this.options,r=this.isVertical(),o=new Ln({vertical:r,spacing:e.spacing,rtl:t.rtl},t),i=e.items;e.reverse&&(i=i.slice(0).reverse());for(var n=i.length,s=0;s<n;s++){var a=i[s];o.append(new Dn(j({},{markers:e.markers,labels:e.labels,rtl:t.rtl},e.item,a)))}o.render(),this.itemsContainer.append(o)},e.prototype.isVertical=function(){var t=this.options,e=t.orientation,r=t.position;return"custom"===r&&"horizontal"!==e||(st(e)?"horizontal"!==e:Z(r,[h,d]))},e.prototype.hasItems=function(){return this.container.children[0].children.length>0},e.prototype.reflow=function(t){var e=this.options,r=t.clone();this.hasItems()?("custom"===e.position?(this.containerCustomReflow(r),this.box=r):this.containerReflow(r),this.hasTitle()&&this.title.reflow(new Ht(this.container.box.x1,this.title.box.y1,this.container.box.x2,this.title.box.y2))):this.box=r},e.prototype.containerReflow=function(t){var e=this.options,r=this.container,o=e.position,i=e.width,n=e.height,a=o===v||o===s?m:_,l=this.isVertical(),p=t.clone(),c=t.clone();o!==h&&o!==d||(c.y1=p.y1=0),l&&n?(c.y2=c.y1+n,c.align(p,_,r.options.vAlign)):!l&&i&&(c.x2=c.x1+i,c.align(p,m,r.options.align)),r.reflow(c);var u=(c=r.box).clone();(e.offsetX||e.offsetY)&&(c.translate(e.offsetX,e.offsetY),r.reflow(c)),u[a+1]=t[a+1],u[a+2]=t[a+2],this.box=u},e.prototype.containerCustomReflow=function(t){var e=this.options,r=this.container,o=e.offsetX,i=e.offsetY,n=e.width,s=e.height,a=this.isVertical(),l=t.clone();a&&s?l.y2=l.y1+s:!a&&n&&(l.x2=l.x1+n),r.reflow(l),l=r.box,r.reflow(new Ht(o,i,o+l.width(),i+l.height()))},e.prototype.renderVisual=function(){this.hasItems()&&t.prototype.renderVisual.call(this)},e.prototype.createLegendTitle=function(t){var e=j({},{color:n,position:v,align:a},t),r=e.text;if(t&&!1!==t.visible){if(st(e)&&e.visible){var o=U(e);o?r=o({text:r}):e.format&&(r=this.chartService.format.auto(e.format,r))}this.title=new ce(r,e),this.createTitleLayout(),this.appendTitleLayoutContent()}},e.prototype.createTitleLayout=function(){this.layout=new ie({vertical:!0,wrap:!1}),this.container.append(this.layout)},e.prototype.hasTitle=function(){return Boolean(this.options.title&&!1!==this.options.title.visible)},e.prototype.appendTitleLayoutContent=function(){this.options.title.position===s?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))},e}(Yt);wt(zn,{position:d,items:[],offsetX:0,offsetY:0,margin:z(5),padding:z(5),border:{color:n,width:0},item:{cursor:"pointer",spacing:6},spacing:6,background:"",zIndex:1,markers:{border:{width:0},width:15,height:3,type:"rect",align:h,vAlign:a}});var Vn=zn,Nn=function(t){function e(){t.call(this),this._registry=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e){this._registry.push({type:t,seriesTypes:e})},e.prototype.create=function(t,e,r){for(var o,i=this._registry,n=i[0],s=0;s<i.length;s++){var a=i[s];if((o=Di(t,a.seriesTypes)).length>0){n=a;break}}return new n.type(o,e,r)},e}(O.Class);Nn.current=new Nn;var Hn=Nn;function Un(t){var e=document.createElement("div");return t&&(e.className=t),e}function Fn(t){for(var e=t;e&&!X(e,"k-handle");)e=e.parentNode;return e}var Gn=function(t){function e(e,r,o,i){t.call(this);var n=e.element;this.options=j({},this.options,o),this.chart=e,this.observer=i,this.chartElement=n,this.categoryAxis=r,this._dateAxis=this.categoryAxis instanceof hr,this.initOptions(),this.visible=this.options.visible&&n.offsetHeight,this.visible&&(this.createElements(),this.set(this._index(this.options.from),this._index(this.options.to)),this.bindEvents())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.onPane=function(t){return this.categoryAxis.pane===t},e.prototype.createElements=function(){var t=this.options,e=this.wrapper=Un("k-selector");D(e,{top:t.offset.top,left:t.offset.left,width:t.width,height:t.height,direction:"ltr"});var r=this.selection=Un("k-selection");this.leftMask=Un("k-mask"),this.rightMask=Un("k-mask"),e.appendChild(this.leftMask),e.appendChild(this.rightMask),e.appendChild(r),r.appendChild(Un("k-selection-bg"));var o=this.leftHandle=Un("k-handle k-left-handle"),i=this.rightHandle=Un("k-handle k-right-handle");o.appendChild(Un()),i.appendChild(Un()),r.appendChild(o),r.appendChild(i),this.chartElement.appendChild(e);var n=D(r,["borderLeftWidth","borderRightWidth","height"]),s=D(o,"height").height,a=D(i,"height").height;t.selection={border:{left:n.borderLeftWidth,right:n.borderRightWidth}},D(o,{top:(n.height-s)/2}),D(i,{top:(n.height-a)/2}),e.style.cssText=e.style.cssText},e.prototype.bindEvents=function(){var t;!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),nt(this.wrapper,((t={})[ao]=this._mousewheelHandler,t))),this._domEvents=Te.create(this.wrapper,{stopPropagation:!0,start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),press:this._press.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)})},e.prototype.initOptions=function(){var t=this.options,e=this.categoryAxis.pane.chartsBox(),r=this.chart.chartService.intl;this._dateAxis&&j(t,{min:$e(r,t.min),max:$e(r,t.max),from:$e(r,t.from),to:$e(r,t.to)});var o=D(this.chartElement,["paddingLeft","paddingTop"]),i=o.paddingLeft,n=o.paddingTop;this.options=j({},{width:e.width(),height:e.height()+.1,padding:{left:i,top:n},offset:{left:e.x1+i,top:e.y1+n},from:t.min,to:t.max},t)},e.prototype.destroy=function(){var t;this._domEvents&&(this._domEvents.destroy(),delete this._domEvents),clearTimeout(this._mwTimeout),this._state=null,this.wrapper&&(this._mousewheelHandler&&(mt(this.wrapper,((t={})[ao]=this._mousewheelHandler,t)),this._mousewheelHandler=null),this.chartElement.removeChild(this.wrapper),this.wrapper=null)},e.prototype._rangeEventArgs=function(t){return{axis:this.categoryAxis.options,from:this._value(t.from),to:this._value(t.to)}},e.prototype._start=function(t){var e=this.options,r=ht(t);if(!this._state&&r){this.chart._unsetActivePoint(),this._state={moveTarget:Fn(r)||r,startLocation:t.x?t.x.location:0,range:{from:this._index(e.from),to:this._index(e.to)}};var o=this._rangeEventArgs({from:this._index(e.from),to:this._index(e.to)});this.trigger("selectStart",o)&&(this._state=null)}},e.prototype._press=function(t){var e;(e=this._state?this._state.moveTarget:Fn(ht(t)))&&x(e,"k-handle-active")},e.prototype._move=function(t){if(this._state){var e=this._state,r=this.options,o=this.categoryAxis,i=e.range,n=e.moveTarget,s=o.options.reverse,a=this._index(r.from),l=this._index(r.to),p=this._index(r.min),c=this._index(r.max),h=e.startLocation-t.x.location,u=i.from,f=i.to,d=i.to-i.from,v=D(this.wrapper,"width").width/(o.categoriesCount()-1),y=Math.round(h/v)*(s?-1:1);if(n){var g=X(n,"k-left-handle"),m=X(n,"k-right-handle");X(n,"k-selection k-selection-bg")?(i.from=Math.min(Math.max(p,a-y),c-d),i.to=Math.min(i.from+d,c)):g&&!s||m&&s?(i.from=Math.min(Math.max(p,a-y),c-1),i.to=Math.max(i.from+1,i.to)):(g&&s||m&&!s)&&(i.to=Math.min(Math.max(p+1,l-y),c),i.from=Math.min(i.to-1,i.from)),i.from===u&&i.to===f||(this.move(i.from,i.to),this.trigger("select",this._rangeEventArgs(i)))}}},e.prototype._end=function(){if(this._state){var t=this._state.moveTarget;t&&C(t,"k-handle-active");var e=this._state.range;this.set(e.from,e.to),this.trigger("selectEnd",this._rangeEventArgs(e)),delete this._state}},e.prototype._tap=function(t){var e=this.options,r=this.categoryAxis,o=this.chart._eventCoordinates(t),i=r.pointCategoryIndex(new Vt(o.x,r.box.y1)),n=this._index(e.from),s=this._index(e.to),a=this._index(e.min),l=this._index(e.max),p=s-n,c=n+p/2,h={},u=3===t.event.which,f=Math.round(c-i);this._state||u||(this.chart._unsetActivePoint(),r.options.justified||f--,h.from=Math.min(Math.max(a,n-f),l-p),h.to=Math.min(h.from+p,l),this._start(t),this._state&&(this._state.range=h,this.trigger("select",this._rangeEventArgs(h)),this._end()))},e.prototype._mousewheel=function(t){var e=this,r=rt(t);if(this._start({target:this.selection}),this._state){var o=this._state.range;t.preventDefault(),t.stopPropagation(),Math.abs(r)>1&&(r*=3),this.options.mousewheel.reverse&&(r*=-1),this.expand(r)&&this.trigger("select",{axis:this.categoryAxis.options,delta:r,originalEvent:t,from:this._value(o.from),to:this._value(o.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._end()}),150)}},e.prototype._gesturestart=function(t){var e=this.options;this._state={range:{from:this._index(e.from),to:this._index(e.to)}};var r=this._rangeEventArgs(this._state.range);this.trigger("selectStart",r)?this._state=null:t.preventDefault()},e.prototype._gestureend=function(){this._state&&(this.trigger("selectEnd",this._rangeEventArgs(this._state.range)),delete this._state)},e.prototype._gesturechange=function(t){var e=this.chart,r=this._state,o=this.options,i=this.categoryAxis,n=r.range,s=e._toModelCoordinates(t.touches[0].x.location).x,a=e._toModelCoordinates(t.touches[1].x.location).x,l=Math.min(s,a),p=Math.max(s,a);t.preventDefault(),n.from=i.pointCategoryIndex(new Vt(l))||o.min,n.to=i.pointCategoryIndex(new Vt(p))||o.max,this.move(n.from,n.to),this.trigger("select",this._rangeEventArgs(n))},e.prototype._index=function(t){var e=t;return t instanceof Date&&(e=this.categoryAxis.categoryIndex(t)),e},e.prototype._value=function(t){var e=t;return this._dateAxis&&(e=this.categoryAxis.categoryAt(t))>this.options.max&&(e=this.options.max),e},e.prototype._slot=function(t){var e=this.categoryAxis,r=this._index(t);return e.getSlot(r,r,!0)},e.prototype.move=function(t,e){var r=this.options,o=this.categoryAxis.options.reverse,i=r.offset,n=r.padding,s=r.selection.border,a=o?e:t,l=o?t:e,p="x"+(o?2:1),c=this._slot(a),h=gt(c[p]-i.left+n.left);D(this.leftMask,{width:h}),D(this.selection,{left:h}),c=this._slot(l);var u=gt(r.width-(c[p]-i.left+n.left));D(this.rightMask,{width:u});var f=r.width-u;f!==r.width&&(f+=s.right),D(this.rightMask,{left:f}),D(this.selection,{width:Math.max(r.width-(h+u)-s.right,0)})},e.prototype.set=function(t,e){var r=this.options,o=this._index(r.min),i=this._index(r.max),n=dt(this._index(t),o,i),s=dt(this._index(e),n+1,i);r.visible&&this.move(n,s),r.from=this._value(n),r.to=this._value(s)},e.prototype.expand=function(t){var e=this.options,r=this._index(e.min),o=this._index(e.max),i=e.mousewheel.zoom,n=this._index(e.from),s=this._index(e.to),a={from:n,to:s},l=j({},a);if(this._state&&(a=this._state.range),i!==d&&(a.from=dt(dt(n-t,0,s-1),r,o)),i!==h&&(a.to=dt(dt(s+t,a.from+1,o),r,o)),a.from!==l.from||a.to!==l.to)return this.set(a.from,a.to),!0},e.prototype.zoom=function(t,e){var r=this.options,o=this._index(r.min),i=this._index(r.max),n=this._index(r.from),s=this._index(r.to),a={from:n,to:s},l=j({},a),p=this.categoryAxis.options.reverse,c=m+(p?"2":"1"),h=this.categoryAxis.lineBox(),u=Math.abs(h[c]-e.x),f=h.width(),d=gt(u/f,2),v=gt(d*t),y=gt((1-d)*t);if(this._state&&(a=this._state.range),a.from=dt(dt(n-v,0,s-1),o,i),a.to=dt(dt(s+y,a.from+1,i),o,i),a.from!==l.from||a.to!==l.to)return this.set(a.from,a.to),!0},e.prototype.trigger=function(t,e){return(this.observer||this.chart).trigger(t,e)},e}(O.Class);wt(Gn,{visible:!0,mousewheel:{zoom:"both"},min:f,max:u});var Wn=Gn,Kn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.show=function(e){if(e&&e.tooltipAnchor&&(!this._current||this._current!==e)){var r=j({},this.options,e.options.tooltip),o=e.tooltipAnchor();o?(this._current=e,t.prototype.show.call(this,{point:e,anchor:o},r,e)):this.hide()}},e.prototype.hide=function(){delete this._current,t.prototype.hide.call(this)},e}(Ci),Xn=function(t){function e(e,r){t.call(this,e.chartService,r),this.plotArea=e,this.formatService=e.chartService.format}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.showAt=function(t,e){var r=K(t,(function(t){var e=t.series.tooltip;return!(e&&!1===e.visible)}));if(r.length>0){var o=r[0],i=this.plotArea.categoryAxis.getSlot(o.categoryIx),n=e?this._slotAnchor(e,i):this._defaultAnchor(o,i);this.show({anchor:n,shared:!0,points:t,category:o.category,categoryText:this.formatService.auto(this.options.categoryFormat,o.category),series:this.plotArea.series},this.options)}},e.prototype._slotAnchor=function(t,e){return this.plotArea.categoryAxis.options.vertical||(t.x=e.center().x),{point:t,align:{horizontal:"left",vertical:"center"}}},e.prototype._defaultAnchor=function(t,e){var r=t.owner.pane.chartsBox(),o=this.plotArea.categoryAxis.options.vertical,i=r.center(),n=e.center();return{point:o?new Vt(i.x,n.y):new Vt(n.x,i.y),align:{horizontal:"center",vertical:"center"}}},e}(Ci);wt(Xn,{categoryFormat:"{0:d}"});var Yn=Xn,qn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.element,e=this.options;if(t.bbox()){this.origin=e.origin;var r=e.vertical?_:m,o=this.fromScale=new O.geometry.Point(1,1);o[r]=Jr,t.transform(O.geometry.transform().scale(o.x,o.y))}else this.abort()},e.prototype.step=function(t){var e=Q(this.fromScale.x,1,t),r=Q(this.fromScale.y,1,t);this.element.transform(O.geometry.transform().scale(e,r,this.origin))},e.prototype.abort=function(){t.prototype.abort.call(this),this.element.transform(null)},e}(O.drawing.Animation);wt(qn,{duration:600}),O.drawing.AnimationFactory.current.register(eo,qn);var Zn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.center=this.element.bbox().center();this.element.transform(O.geometry.transform().scale(Jr,Jr,t))},e.prototype.step=function(t){this.element.transform(O.geometry.transform().scale(t,t,this.center))},e}(O.drawing.Animation);wt(Zn,{easing:"easeOutElastic"}),O.drawing.AnimationFactory.current.register("bubble",Zn);var Qn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this.fadeTo=this.element.opacity(),this.element.opacity(0)},e.prototype.step=function(t){this.element.opacity(t*this.fadeTo)},e}(O.drawing.Animation);wt(Qn,{duration:200,easing:"linear"}),O.drawing.AnimationFactory.current.register("fadeIn",Qn);var $n=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this.element.transform(O.geometry.transform().scale(Jr,Jr,this.options.center))},e.prototype.step=function(t){this.element.transform(O.geometry.transform().scale(t,t,this.options.center))},e}(O.drawing.Animation);wt($n,{easing:"easeOutElastic",duration:600}),O.drawing.AnimationFactory.current.register(io,$n);var Jn=$n,ts=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.createSegment=function(t,e,r){return new("smooth"===e.style?So:xo)(t,e,r)},e.prototype.animationPoints=function(){return t.prototype.animationPoints.call(this).concat(this._segments)},e.prototype.createMissingValue=function(t,e){if(e===to){var r={x:t.x,y:t.y};return pi(r.x)||(r.x=0),pi(r.y)||(r.y=0),r}},e}(hi);j(ts.prototype,Po);var es=ts,rs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new Vo,this.yAxisRangeTracker=new Vo},e.prototype.render=function(t){void 0===t&&(t=this.panes);for(var e=this.groupSeriesByPane(),r=0;r<t.length;r++){var o=t[r],i=e[o.options.name||"default"]||[];this.addToLegend(i);var n=this.filterVisibleSeries(i);n&&(this.createScatterChart(Di(n,"scatter"),o),this.createScatterLineChart(Di(n,"scatterLine"),o),this.createBubbleChart(Di(n,"bubble"),o))}this.createAxes(t)},e.prototype.appendChart=function(e,r){this.xAxisRangeTracker.update(e.xAxisRanges),this.yAxisRangeTracker.update(e.yAxisRanges),t.prototype.appendChart.call(this,e,r)},e.prototype.removeAxis=function(e){var r=e.options.name;t.prototype.removeAxis.call(this,e),e.options.vertical?(this.yAxisRangeTracker.reset(r),delete this.namedYAxes[r]):(this.xAxisRangeTracker.reset(r),delete this.namedXAxes[r]),e===this.axisX&&delete this.axisX,e===this.axisY&&delete this.axisY},e.prototype.seriesPaneName=function(t){var e=this.options,r=t.xAxis,o=K([].concat(e.xAxis),(function(t){return t.name===r}))[0],i=t.yAxis,n=K([].concat(e.yAxis),(function(t){return t.name===i}))[0],s=(e.panes||[{}])[0].name||"default";return(o||{}).pane||(n||{}).pane||s},e.prototype.createScatterChart=function(t,e){t.length>0&&this.appendChart(new hi(this,{series:t,clip:e.options.clip}),e)},e.prototype.createScatterLineChart=function(t,e){t.length>0&&this.appendChart(new es(this,{series:t,clip:e.options.clip}),e)},e.prototype.createBubbleChart=function(t,e){t.length>0&&this.appendChart(new vi(this,{series:t,clip:e.options.clip}),e)},e.prototype.createXYAxis=function(t,e,r){for(var o,i=t.name,n=e?this.namedYAxes:this.namedXAxes,s=e?this.yAxisRangeTracker:this.xAxisRangeTracker,a=j({reverse:!e&&this.chartService.rtl},t,{vertical:e}),l=Li(a.type,"log"),c=s.query(),h=l?{min:.1,max:1}:{min:0,max:1},u=s.query(i)||c||h,f=[a.min,a.max],d=this.series,v=0;v<d.length;v++){var y=d[v],g=y[e?"yAxis":"xAxis"];if(g===a.name||0===r&&!g){var m=Yr.current.bindPoint(y,0).valueFields;f.push(m[e?"y":"x"]);break}}0===r&&c&&(u.min=Math.min(u.min,c.min),u.max=Math.max(u.max,c.max));for(var _=0;_<f.length;_++)if(f[_]instanceof Date){o=!0;break}var b=new(Li(a.type,p)||!a.type&&o?br:l?Or:mr)(u.min,u.max,a,this.chartService);if(b.axisIndex=r,i){if(n[i])throw new Error((e?"Y":"X")+" axis with name "+i+" is already defined");n[i]=b}return this.appendAxis(b),b},e.prototype.createAxes=function(t){for(var e=this.options,r=[].concat(e.xAxis),o=[],i=[].concat(e.yAxis),n=[],s=0;s<r.length;s++){Z(this.findPane(r[s].pane),t)&&o.push(this.createXYAxis(r[s],!1,s))}for(var a=0;a<i.length;a++){Z(this.findPane(i[a].pane),t)&&n.push(this.createXYAxis(i[a],!0,a))}this.axisX=this.axisX||o[0],this.axisY=this.axisY||n[0]},e.prototype._dispatchEvent=function(t,e,r){for(var o=t._eventCoordinates(e),i=new Vt(o.x,o.y),n=this.axes,s=n.length,a=[],l=[],p=0;p<s;p++){var c=n[p],h=c.options.vertical?l:a,u=c.getValue(i);null!==u&&h.push(u)}a.length>0&&l.length>0&&t.trigger(r,{element:ht(e),originalEvent:e,x:Ni(a),y:Ni(l)})},e.prototype.updateAxisOptions=function(t,e){var r=t.options.vertical,o=this.groupAxes(this.panes),i=(r?o.y:o.x).indexOf(t);os(this.options,i,r,e),os(this.originalOptions,i,r,e)},e}(Zi);function os(t,e,r,o){j([].concat(r?t.yAxis:t.xAxis)[e],o)}wt(rs,{xAxis:{},yAxis:{}}),j(rs.prototype,Qi);var is=rs,ns=function(t){function e(e,r,o){t.call(this,o),this.value=e,this.sector=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options.labels,e=this.owner.chartService,r=this.value;if(!this._rendered&&!1!==this.visible){this._rendered=!0;var o=U(t),i=this.pointData();if(o?r=o(i):t.format&&(r=e.format.auto(t.format,r)),t.visible&&(r||0===r)){if(t.position===a||"insideEnd"===t.position)t.color||(t.color=Mt(this.options.color)),t.background||(t.background=this.options.color);else{var n=e.theme.seriesDefaults.labels;t.color=t.color||n.color,t.background=t.background||n.background}this.label=new ce(r,j({},t,{align:a,vAlign:"",animation:{type:"fadeIn",delay:this.animationDelay}}),i),this.append(this.label)}}},e.prototype.reflow=function(t){this.render(),this.box=t,this.reflowLabel()},e.prototype.reflowLabel=function(){var t=this.options.labels,e=this.label,r=this.sector.clone(),o=t.distance,i=r.middle();if(e){var n,s=e.box.height(),l=e.box.width();if(t.position===a)r.radius=Math.abs((r.radius-s)/2)+s,n=r.point(i),e.reflow(new Ht(n.x,n.y-s/2,n.x,n.y));else if("insideEnd"===t.position)r.radius=r.radius-s/2,n=r.point(i),e.reflow(new Ht(n.x,n.y-s/2,n.x,n.y));else{var p;(n=r.clone().expand(o).point(i)).x>=r.center.x?(p=n.x+l,e.orientation=d):(p=n.x-l,e.orientation=h),e.reflow(new Ht(p,n.y-s,n.x,n.y))}}},e.prototype.createVisual=function(){var e=this,r=this.sector,o=this.options;if(t.prototype.createVisual.call(this),this.value)if(o.visual){var i=(r.startAngle+180)%360,n=o.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new O.geometry.Point(r.center.x,r.center.y),radius:r.radius,innerRadius:r.innerRadius,startAngle:i,endAngle:i+r.angle,options:o,sender:this.getSender(),createVisual:function(){var t=new O.drawing.Group;return e.createSegmentVisual(t),t}});n&&this.visual.append(n)}else this.createSegmentVisual(this.visual)},e.prototype.createSegmentVisual=function(t){var e=this.sector,r=this.options,o=r.border||{},i=o.width>0?{stroke:{color:o.color,width:o.width,opacity:o.opacity,dashType:o.dashType}}:{},n=r.color,s={color:n,opacity:r.opacity},a=this.createSegment(e,j({fill:s,stroke:{opacity:r.opacity},zIndex:r.zIndex},i));t.append(a),Uo(r)&&t.append(this.createGradientOverlay(a,{baseColor:n,fallbackFill:s},j({center:[e.center.x,e.center.y],innerRadius:e.innerRadius,radius:e.radius,userSpace:!0},r.overlay)))},e.prototype.createSegment=function(t,e){return e.singleSegment?new O.drawing.Circle(new O.geometry.Circle(new O.geometry.Point(t.center.x,t.center.y),t.radius),e):Kt.current.createRing(t,e)},e.prototype.createAnimation=function(){var e=this.options,r=this.sector.center;j(e,{animation:{center:[r.x,r.y],delay:this.animationDelay}}),t.prototype.createAnimation.call(this)},e.prototype.createHighlight=function(t){var e=this.options.highlight||{},r=e.border||{};return this.createSegment(this.sector,j({},t,{fill:{color:e.color,opacity:e.opacity},stroke:{opacity:r.opacity,width:r.width,color:r.color}}))},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=this.sector;return{options:this.options,radius:t.radius,innerRadius:t.innerRadius,center:new O.geometry.Point(t.center.x,t.center.y),startAngle:t.startAngle,endAngle:t.angle+t.startAngle,visual:this.visual}},e.prototype.tooltipAnchor=function(){var t=this.sector.clone().expand(5),e=t.middle();return{point:t.point(e),align:ls(e+180)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series,percentage:this.percentage}},e}(Yt),ss=gt(yt(30),10),as=gt(yt(60),10);function ls(t){var e=yt(t),r=gt(Math.sin(e),10),o=gt(Math.cos(e),10);return{horizontal:Math.abs(r)>as?a:o<0?d:h,vertical:Math.abs(r)<ss?a:r<0?s:v}}wt(ns,{color:g,overlay:{gradient:"roundedBevel"},border:{width:.5},labels:{visible:!1,distance:35,font:"12px sans-serif",margin:z(.5),align:l,zIndex:1,position:"outsideEnd"},animation:{type:io},highlight:{visible:!0,border:{width:1}},visible:!0}),j(ns.prototype,yo);var ps=ns,cs={createLegendItem:function(t,e,r){var o=this.options.legend||{},i=o.labels||{},n=o.inactiveItems||{},s=n.labels||{};if(r&&!1!==r.visibleInLegend){var a,l,p=!1!==r.visible,c=p?U(i):U(s)||U(i),h=r.category;c&&(h=c({text:h,series:r.series,dataItem:r.dataItem,percentage:r.percentage,value:t})),p?(a={},l=e.color):(a={color:s.color,font:s.font},l=(n.markers||{}).color),pi(h)&&""!==h&&this.legendItems.push({active:p,pointIndex:r.index,text:h,series:r.series,markerColor:l,labels:a})}}},hs=function(t){function e(e,r){t.call(this,r),this.plotArea=e,this.chartService=e.chartService,this.points=[],this.legendItems=[],this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.traverseDataPoints=function(t){var e=this.options,r=this.plotArea.options.seriesColors;void 0===r&&(r=[]);for(var o=r.length,i=e.series,n=i.length,s=0;s<n;s++){var l=i[s],p=l.data,c=Bi(l),h=c.total,u=c.points,f=c.count,d=360/h,v=void 0;isFinite(d)||(v=360/f);var y=void 0;y=st(l.startAngle)?l.startAngle:e.startAngle,s!==n-1&&"outsideEnd"===l.labels.position&&(l.labels.position=a);for(var g=0;g<u.length;g++){var m=u[g];if(m){var _=m.fields,b=m.value,x=m.visible,w=0!==b?v||b*d:0,C=1!==p.length&&Boolean(_.explode);T(l.color)||(l.color=_.color||r[g%o]),t(m.valueFields.value,new Ft(null,0,0,y,w),{owner:this,category:st(_.category)?_.category:"",index:g,series:l,seriesIx:s,dataItem:p[g],percentage:0!==h?b/h:0,explode:C,visibleInLegend:_.visibleInLegend,visible:x,zIndex:n-s,animationDelay:this.animationDelay(g,s,n)}),!1!==x&&(y+=w)}}}},e.prototype.evalSegmentOptions=function(t,e,r){var o=r.series;ho(t,{value:e,series:o,dataItem:r.dataItem,category:r.category,percentage:r.percentage},{defaults:o._defaults,excluded:["data","content","template","visual","toggle"]})},e.prototype.addValue=function(t,e,r){var o=j({},r.series,{index:r.index});if(this.evalSegmentOptions(o,t,r),this.createLegendItem(t,o,r),!1!==r.visible){var i=new ps(t,e,o);Object.assign(i,r),this.append(i),this.points.push(i)}},e.prototype.reflow=function(t){var e=this.options,r=this.points,o=this.seriesConfigs;void 0===o&&(o=[]);var i=r.length,n=t.clone(),s=Math.min(n.width(),n.height()),a=s/2,l=s-.85*s,p=new Ht(n.x1,n.y1,n.x1+s,n.y1+s),c=p.center(),h=n.center(),u=e.series.length,f=[],v=[],y=_t(e.padding,l);this.targetBox=t,y=y>a-5?a-5:y,p.translate(h.x-c.x,h.y-c.y);for(var g=a-y,m=new Vt(g+p.x1+y,g+p.y1+y),_=0;_<i;_++){var b=r[_],x=b.sector,w=b.seriesIx;if(x.radius=g,x.center=m,o.length){var C=o[w];x.innerRadius=C.innerRadius,x.radius=C.radius}w===u-1&&b.explode&&(x.center=x.clone().setRadius(.15*x.radius).point(x.middle())),b.reflow(p);var O=b.label;O&&"outsideEnd"===O.options.position&&w===u-1&&(O.orientation===d?v.push(O):f.push(O))}f.length>0&&(f.sort(this.labelComparator(!0)),this.leftLabelsReflow(f)),v.length>0&&(v.sort(this.labelComparator(!1)),this.rightLabelsReflow(v)),this.box=p},e.prototype.leftLabelsReflow=function(t){var e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)},e.prototype.rightLabelsReflow=function(t){var e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)},e.prototype.distanceBetweenLabels=function(t){var e=ft(this.points),r=e.sector,o=t.length-1,i=r.radius+e.options.labels.distance,n=[],s=t[0].box,a=gt(s.y1-(r.center.y-i-s.height()-s.height()/2));n.push(a);for(var l=0;l<o;l++){var p=t[l+1].box;s=t[l].box,a=gt(p.y1-s.y2),n.push(a)}return a=gt(r.center.y+i-t[o].box.y2-t[o].box.height()/2),n.push(a),n},e.prototype.distributeLabels=function(t,e){for(var r,o,i,n=t.length,s=0;s<n;s++)for(i=-t[s],r=o=s;i>0&&(r>=0||o<n);)i=this._takeDistance(t,s,--r,i),i=this._takeDistance(t,s,++o,i);this.reflowLabels(t,e)},e.prototype._takeDistance=function(t,e,r,o){var i=o;if(t[r]>0){var n=Math.min(t[r],i);i-=n,t[r]-=n,t[e]+=n}return i},e.prototype.reflowLabels=function(t,e){var r,o=ft(this.points),i=o.sector,n=o.options.labels,s=e.length,a=n.distance,p=i.center.y-(i.radius+a)-e[0].box.height();t[0]+=2;for(var c=0;c<s;c++){var h=e[c],u=h.box;p+=t[c],r=this.hAlignLabel(u.x2,i.clone().expand(a),p,p+u.height(),h.orientation===d),h.orientation===d?(n.align!==l&&(r=i.radius+i.center.x+a),h.reflow(new Ht(r+u.width(),p,r,p))):(n.align!==l&&(r=i.center.x-i.radius-a),h.reflow(new Ht(r-u.width(),p,r,p))),p+=u.height()}},e.prototype.createVisual=function(){var e=this.options.connectors,r=this.points,o=r.length;t.prototype.createVisual.call(this),this._connectorLines=[];for(var i=0;i<o;i++){var n=r[i],s=n.sector,a=n.label,l=s.middle(),p=(n.options.connectors||{}).color||e.color;if(a){var c=new O.drawing.Path({stroke:{color:p,width:e.width},animation:{type:"fadeIn",delay:n.animationDelay}});if("outsideEnd"===a.options.position){var h=a.box,u=s.center,f=s.point(l),v=new Vt(h.x1,h.center().y),y=void 0,g=void 0,m=void 0;f=s.clone().expand(e.padding).point(l),c.moveTo(f.x,f.y),a.orientation===d?(m=us(u,f,v,g=new Vt(h.x1-e.padding,h.center().y)),v=new Vt(g.x-4,g.y),(m=m||v).x=Math.min(m.x,v.x),this.pointInCircle(m,s.center,s.radius+4)||m.x<s.center.x?(y=s.center.x+s.radius+4,n.options.labels.align!==ro?y<v.x?c.lineTo(y,f.y):c.lineTo(f.x+8,f.y):c.lineTo(y,f.y),c.lineTo(v.x,g.y)):(m.y=g.y,c.lineTo(m.x,m.y))):(m=us(u,f,v,g=new Vt(h.x2+e.padding,h.center().y)),v=new Vt(g.x+4,g.y),(m=m||v).x=Math.max(m.x,v.x),this.pointInCircle(m,s.center,s.radius+4)||m.x>s.center.x?(y=s.center.x-s.radius-4,n.options.labels.align!==ro?y>v.x?c.lineTo(y,f.y):c.lineTo(f.x-8,f.y):c.lineTo(y,f.y),c.lineTo(v.x,g.y)):(m.y=g.y,c.lineTo(m.x,m.y))),c.lineTo(g.x,g.y),this._connectorLines.push(c),this.visual.append(c)}}}},e.prototype.renderVisual=function(){if(t.prototype.renderVisual.call(this),Ot(this.options.series,(function(t){return t.autoFit}))){var e=this.targetBox,r=this.box.center(),o=this.visual.bbox();if(!o)return;var i=o.bottomRight(),n=Math.min((r.y-e.y1)/(r.y-o.origin.y),(e.y2-r.y)/(i.y-r.y),(r.x-e.x1)/(r.x-o.origin.x),(e.x2-r.x)/(i.x-r.x));n<1&&this.visual.transform(O.geometry.transform().scale(n,n,[r.x,r.y]))}},e.prototype.labelComparator=function(t){var e=t?-1:1;return function(t,r){return((t.parent.sector.middle()+270)%360-(r.parent.sector.middle()+270)%360)*e}},e.prototype.hAlignLabel=function(t,e,r,o,i){var n=e.radius,s=e.center,a=s.x,l=s.y,p=Math.min(Math.abs(l-r),Math.abs(l-o));return p>n?t:a+Math.sqrt(n*n-p*p)*(i?1:-1)},e.prototype.pointInCircle=function(t,e,r){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<Math.pow(r,2)},e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value)},e.prototype.animationDelay=function(t){return 70*t},e.prototype.stackRoot=function(){return this},e}(Yt);function us(t,e,r,o){var i,n=(o.x-r.x)*(t.y-r.y)-(o.y-r.y)*(t.x-r.x),s=(o.y-r.y)*(e.x-t.x)-(o.x-r.x)*(e.y-t.y);if(0!==s){var a=n/s;i=new Vt(t.x+a*(e.x-t.x),t.y+a*(e.y-t.y))}return i}wt(hs,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),j(hs.prototype,cs),hs.prototype.isStackRoot=!0;var fs=hs,ds=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createPieChart(this.series)},e.prototype.createPieChart=function(t){var e=t[0],r=new fs(this,{series:t,padding:e.padding,startAngle:e.startAngle,connectors:e.connectors,legend:this.options.legend});this.appendChart(r)},e.prototype.appendChart=function(e,r){t.prototype.appendChart.call(this,e,r),it(this.options.legend.items,e.legendItems)},e}(Zi),vs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowLabel=function(){var e=this.options.labels,r=this.label,o=this.sector.clone(),i=o.middle();if(r){var n=r.box.height();if(e.position===a){o.radius-=(o.radius-o.innerRadius)/2;var s=o.point(i);r.reflow(new Ht(s.x,s.y-n/2,s.x,s.y))}else t.prototype.reflowLabel.call(this)}},e.prototype.createSegment=function(t,e){return Kt.current.createRing(t,e)},e}(ps);wt(vs,{overlay:{gradient:"roundedGlass"},labels:{position:a},animation:{type:io}}),j(vs.prototype,yo);var ys=vs,gs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addValue=function(t,e,r){var o=j({},r.series,{index:r.index});if(this.evalSegmentOptions(o,t,r),this.createLegendItem(t,o,r),t&&!1!==r.visible){var i=new ys(t,e,o);Object.assign(i,r),this.append(i),this.points.push(i)}},e.prototype.reflow=function(e){for(var r,o=this.options,i=e.clone(),n=Math.min(i.width(),i.height()),s=n/2,a=n-.85*n,l=o.series,p=l.length,c=_t(o.padding,a),h=s-(c=c>s-5?s-5:c),u=0,f=0;f<p;f++){var d=l[f];0===f&&st(d.holeSize)&&(r=d.holeSize,h-=d.holeSize),st(d.size)?h-=d.size:u++,st(d.margin)&&f!==p-1&&(h-=d.margin)}st(r)||(h-=r=.75*((s-c)/(p+.75)));var v,y=r,g=0;this.seriesConfigs=[];for(var m=0;m<p;m++){var _=l[m];v=(y+=g)+_t(_.size,h/u),this.seriesConfigs.push({innerRadius:y,radius:v}),g=_.margin||0,y=v}t.prototype.reflow.call(this,e)},e.prototype.animationDelay=function(t,e,r){return 50*t+600*(e+1)/(r+1)},e}(fs);wt(gs,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}});var ms=gs,_s=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createDonutChart(this.series)},e.prototype.createDonutChart=function(t){var e=t[0],r=new ms(this,{series:t,padding:e.padding,connectors:e.connectors,legend:this.options.legend});this.appendChart(r)},e}(ds),bs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.valueAxisRangeTracker=new Vo},e.prototype.render=function(){this.addToLegend(this.series),this.createPolarAxis(),this.createCharts(),this.createValueAxis()},e.prototype.alignAxes=function(){var t=this.valueAxis,e=t.range(),r=t.options.reverse?e.max:e.min,o=t.getSlot(r),i=this.polarAxis.getSlot(0).center,n=t.box.translate(i.x-o.x1,i.y-o.y1);t.reflow(n)},e.prototype.createValueAxis=function(){var t,e,r=this.valueAxisRangeTracker,o=r.query(),i=this.valueAxisOptions({roundToMajorUnit:!1,zIndex:-1});"log"===i.type?(t=Br,e={min:.1,max:1}):(t=Rr,e={min:0,max:1});var n=r.query(name)||o||e;n&&o&&(n.min=Math.min(n.min,o.min),n.max=Math.max(n.max,o.max));var s=new t(n.min,n.max,i,this.chartService);this.valueAxis=s,this.appendAxis(s)},e.prototype.reflowAxes=function(){var t=this.options.plotArea,e=this.valueAxis,r=this.polarAxis,o=this.box,i=.15*Math.min(o.width(),o.height()),n=z(t.padding||{},i),s=o.clone().unpad(n),l=s.clone();l.y2=l.y1+Math.min(l.width(),l.height()),l.align(s,_,a);var p=l.clone().shrink(0,l.height()/2);r.reflow(l),e.reflow(p);var c=e.lineBox().height()-e.box.height();e.reflow(e.box.unpad({top:c})),this.axisBox=l,this.alignAxes(l)},e.prototype.backgroundBox=function(){return this.box},e.prototype.detachLabels=function(){},e}(Zi),xs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointSlot=function(t,e){var r=t.center.y-e.y1,o=Vt.onCircle(t.center,t.startAngle,r);return new Ht(o.x,o.y,o.x,o.y)},e}(hi);wt(xs,{clip:!1});var ws=xs,Cs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(es);Cs.prototype.pointSlot=ws.prototype.pointSlot,wt(Cs,{clip:!1});var Os=Cs,ks=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(t){var e=this._polarAxisCenter();t.lineTo(e.x,e.y)},e.prototype._polarAxisCenter=function(){return this.parent.plotArea.polarAxis.box.center()},e.prototype.strokeSegments=function(){var t=this._strokeSegments;if(!t){var e=this._polarAxisCenter(),r=new Dr(!1),o=this.points();o.push(e),(t=this._strokeSegments=r.process(o)).pop()}return t},e}(Do),Ss=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(t){var e=this.parent.plotArea.polarAxis.box.center(),r=new O.geometry.Segment([e.x,e.y]);t.segments.unshift(r),t.segments.push(r)},e}(Io);function Ps(t,e){return t.value.x-e.value.x}var As=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,r){return"smooth"===(e.line||{}).style?new ks(t,e,r):new Ss(t,e,r)},e.prototype.createMissingValue=function(t,e){var r;return pi(t.x)&&"interpolate"!==e&&(r={x:t.x,y:t.y},e===to&&(r.y=0)),r},e.prototype.seriesMissingValues=function(t){return t.missingValues||to},e.prototype._hasMissingValuesGap=function(){for(var t=this.options.series,e=0;e<t.length;e++)if("gap"===this.seriesMissingValues(t[e]))return!0},e.prototype.sortPoints=function(t){if(t.sort(Ps),this._hasMissingValuesGap())for(var e=0;e<t.length;e++){var r=t[e];if(r)pi(r.value.y)||"gap"!==this.seriesMissingValues(r.series)||delete t[e]}return t},e}(Os),Ms=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createPolarAxis=function(){var t=new Mr(this.options.xAxis,this.chartService);this.polarAxis=t,this.axisX=t,this.appendAxis(t)},e.prototype.valueAxisOptions=function(t){return j(t,{majorGridLines:{type:i},minorGridLines:{type:i}},this.options.yAxis)},e.prototype.createValueAxis=function(){t.prototype.createValueAxis.call(this),this.axisY=this.valueAxis},e.prototype.appendChart=function(t,e){this.valueAxisRangeTracker.update(t.yAxisRanges),Zi.prototype.appendChart.call(this,t,e)},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createLineChart(Di(t,["polarLine"]),e),this.createScatterChart(Di(t,["polarScatter"]),e),this.createAreaChart(Di(t,["polarArea"]),e)},e.prototype.createLineChart=function(t,e){if(0!==t.length){var r=new Os(this,{series:t});this.appendChart(r,e)}},e.prototype.createScatterChart=function(t,e){if(0!==t.length){var r=new ws(this,{series:t});this.appendChart(r,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var r=new As(this,{series:t});this.appendChart(r,e)}},e.prototype._dispatchEvent=function(t,e,r){var o=t._eventCoordinates(e),i=new Vt(o.x,o.y),n=this.axisX.getValue(i),s=this.axisY.getValue(i);null!==n&&null!==s&&t.trigger(r,{element:ht(e),x:n,y:s})},e.prototype.createCrosshairs=function(){},e}(bs);wt(Ms,{xAxis:{},yAxis:{}}),j(Ms.prototype,Qi);var Ts=Ms;var Es=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointSlot=function(t,e){var r=t.center.y-e.y1,o=Vt.onCircle(t.center,t.middle(),r);return new Ht(o.x,o.y,o.x,o.y)},e.prototype.renderSegments=function(){if(t.prototype.renderSegments.call(this),this._segments&&this._segments.length>1)for(var e=function(t){for(var e=[],r=0;r<t.length;r++){var o=t[r];e[o.seriesIx]=e[o.seriesIx]||[],e[o.seriesIx].push(o)}return e}(this._segments),r=0;r<e.length;r++){var o=e[r];if(o&&o.length>1){var i=o[0].linePoints[0],n=ft(o),s=ft(n.linePoints),a=0===i.categoryIx,l=s.categoryIx===s.categoriesCount-1;a&&l&&ft(o).linePoints.push(i)}}},e.prototype.createSegment=function(t,e,r){var o=new("smooth"===e.style?So:xo)(t,e,r),i=this.seriesMissingValues(e);return t.length!==e.data.length&&"interpolate"!==i||(o.options.closed=!0),o},e}(Ro);wt(Es,{clip:!1,limitPoints:!1});var js=Es,Rs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(){},e}(Do),Is=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(){},e}(Io),Bs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,r,o){var i,n,s,a=this.options.isStacked,l=(e.line||{}).style;return a&&r>0&&o&&(n=o.linePoints.slice(0),i=o),"smooth"===l?(s=new Rs(t,e,r,i,n)).options.closed=!0:(t.push(t[0]),s=new Is(t,e,r,i,n)),s},e.prototype.seriesMissingValues=function(t){return t.missingValues||to},e}(js),Ls=function(t){function e(e,r){t.call(this,e,null,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(ys);wt(Ls,{overlay:{gradient:"none"},labels:{distance:10}});var Ds=Ls,zs=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Ko:Wo}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,r=this.children,o=e.gap,i=e.spacing,n=r.length,s=n+o+i*(n-1),a=t.angle/s,l=t.startAngle+a*(o/2);this.forEach(r,(function(e){var r=t.clone();r.startAngle=l,r.angle=a,e.sector&&(r.radius=e.sector.radius),e.reflow(r),e.sector=r,l+=a+a*i}))},e}(Yt);wt(zs,{gap:1,spacing:0});var Vs=zs,Ns=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options.reverse,r=this.children,o=r.length,i=e?o-1:0,n=e?-1:1;this.box=new Ht;for(var s=i;s>=0&&s<o;s+=n){var a=r[s].sector;a.startAngle=t.startAngle,a.angle=t.angle}},e}(Yt),Hs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return Ds},e.prototype.clusterType=function(){return Vs},e.prototype.stackType=function(){return Ns},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.pointSlot=function(t,e){var r=t.clone(),o=t.center.y;return r.radius=o-e.y1,r.innerRadius=o-e.y2,r},e.prototype.reflowPoint=function(t,e){t.sector=e,t.reflow()},e.prototype.createAnimation=function(){this.options.animation.center=this.box.toRect().center(),t.prototype.createAnimation.call(this)},e}($o);Hs.prototype.reflow=vo.prototype.reflow,wt(Hs,{clip:!1,limitPoints:!1,animation:{type:"pie"}});var Us=Hs,Fs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createPolarAxis=function(){var t=new Pr(this.options.categoryAxis,this.chartService);this.polarAxis=t,this.categoryAxis=t,this.appendAxis(t),this.aggregateCategories(),this.createCategoryAxesLabels()},e.prototype.valueAxisOptions=function(t){return this._hasBarCharts&&j(t,{majorGridLines:{type:i},minorGridLines:{type:i}}),this._isStacked100&&j(t,{roundToMajorUnit:!1,labels:{format:"P0"}}),j(t,this.options.valueAxis)},e.prototype.aggregateCategories=function(){Sn.prototype.aggregateCategories.call(this,this.panes)},e.prototype.createCategoryAxesLabels=function(){Sn.prototype.createCategoryAxesLabels.call(this,this.panes)},e.prototype.filterSeries=function(t){return t},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createAreaChart(Di(t,["radarArea"]),e),this.createLineChart(Di(t,["radarLine"]),e),this.createBarChart(Di(t,["radarColumn"]),e)},e.prototype.chartOptions=function(t){var e={series:t},r=t[0];if(r){var o=this.filterVisibleSeries(t),i=r.stack;e.isStacked=i&&o.length>1,e.isStacked100=i&&"100%"===i.type&&o.length>1,e.isStacked100&&(this._isStacked100=!0)}return e},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var r=new Bs(this,this.chartOptions(t));this.appendChart(r,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var r=new js(this,this.chartOptions(t));this.appendChart(r,e)}},e.prototype.createBarChart=function(t,e){if(0!==t.length){var r=t[0],o=this.chartOptions(t);o.gap=r.gap,o.spacing=r.spacing;var i=new Us(this,o);this.appendChart(i,e),this._hasBarCharts=!0}},e.prototype.seriesCategoryAxis=function(){return this.categoryAxis},e.prototype._dispatchEvent=function(t,e,r){var o=t._eventCoordinates(e),i=new Vt(o.x,o.y),n=this.categoryAxis.getCategory(i),s=this.valueAxis.getValue(i);null!==n&&null!==s&&t.trigger(r,{element:ht(e),category:n,value:s})},e.prototype.createCrosshairs=function(){},e}(bs);j(Fs.prototype,Qi,{appendChart:Sn.prototype.appendChart,aggregateSeries:Sn.prototype.aggregateSeries,seriesSourcePoints:Sn.prototype.seriesSourcePoints}),wt(Fs,{categoryAxis:{categories:[]},valueAxis:{}});var Gs=Fs,Ws=function(t){function e(e,r,o){t.call(this,r),this.value=e,this.options.index=o.index}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.points,r=this.children[0];this.box=new Ht(e[0].x,e[0].y,e[1].x,e[2].y),r&&r.reflow(new Ht(t.x1,e[0].y,t.x2,e[2].y))},e.prototype.createVisual=function(){var e,r=this,o=this.options;t.prototype.createVisual.call(this),(e=o.visual?o.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:o,sender:this.getSender(),createVisual:function(){return r.createPath()}}):this.createPath())&&this.visual.append(e)},e.prototype.createPath=function(){var t=this.options,e=t.border;return O.drawing.Path.fromPoints(this.points,{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.color,opacity:e.opacity,width:e.width}}).close()},e.prototype.createHighlight=function(t){return O.drawing.Path.fromPoints(this.points,t)},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=O.drawing.Path.fromPoints(this.points).close();return{options:this.options,path:t}},e.prototype.tooltipAnchor=function(){var t=this.box;return{point:new Vt(t.center().x,t.y1),align:{horizontal:"center",vertical:"top"}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(Yt);wt(Ws,{color:g,border:{width:1}}),j(Ws.prototype,yo);var Ks=Ws,Xs=function(t){function e(e,r){t.call(this,r),this.plotArea=e,this.points=[],this.labels=[],this.legendItems=[],this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value)},e.prototype.render=function(){var t=this.options,e=this.plotArea.options.seriesColors;void 0===e&&(e=[]);var r=t.series[0],o=r.data;if(o)for(var i=Bi(r),n=i.total,s=i.points,a=0;a<s.length;a++){var l=s[a];if(l){var p=l.fields;T(r.color)||(r.color=p.color||e[a%e.length]),p=j({index:a,owner:this,series:r,dataItem:o[a],percentage:l.value/n},p,{visible:l.visible});var c=l.valueFields.value,h=this.createSegment(c,p),u=this.createLabel(c,p);h&&u&&h.append(u)}}},e.prototype.evalSegmentOptions=function(t,e,r){var o=r.series;ho(t,{value:e,series:o,dataItem:r.dataItem,index:r.index},{defaults:o._defaults,excluded:["data","content","template","toggle","visual"]})},e.prototype.createSegment=function(t,e){var r=j({},e.series);if(this.evalSegmentOptions(r,t,e),this.createLegendItem(t,r,e),!1!==e.visible){var o=new Ks(t,r,e);return Object.assign(o,e),this.append(o),this.points.push(o),o}},e.prototype.createLabel=function(t,e){var r=e.series,o=e.dataItem,i=j({},this.options.labels,r.labels),n=t;if(i.visible){var s=U(i),a={dataItem:o,value:t,percentage:e.percentage,category:e.category,series:r};s?n=s(a):i.format&&(n=this.plotArea.chartService.format.auto(i.format,n)),i.color||(i.color=Mt(r.color),i.background||(i.background=r.color)),this.evalSegmentOptions(i,t,e);var l=new ce(n,j({vAlign:i.position},i),a);return this.labels.push(l),l}},e.prototype.labelPadding=function(){for(var t=this.labels,e={left:0,right:0},r=0;r<t.length;r++){var o=t[r].options.align;if(o!==a){var i=t[r].box.width();o===h?e.left=Math.max(e.left,i):e.right=Math.max(e.right,i)}}return e},e.prototype.dynamicSlopeReflow=function(t,e,r){for(var o=this.options,i=this.points,n=i.length,s=i[0],a=s,l=0;l<i.length;l++)i[l].percentage>a.percentage&&(a=i[l]);for(var p=s.percentage/a.percentage*e,c=(e-p)/2,h=0,u=0;u<n;u++){var f=i[u].percentage,d=i[u+1],v=d?d.percentage:f,y=i[u].points=[],g=o.dynamicHeight?r*f:r/n,m=void 0;m=dt(m=f?(e-p*(v/f))/2:v?0:e/2,0,e),y.push(new O.geometry.Point(t.x1+c,t.y1+h)),y.push(new O.geometry.Point(t.x1+e-c,t.y1+h)),y.push(new O.geometry.Point(t.x1+e-m,t.y1+g+h)),y.push(new O.geometry.Point(t.x1+m,t.y1+g+h)),c=m,h+=g+o.segmentSpacing,p=dt(e-2*m,0,e)}},e.prototype.constantSlopeReflow=function(t,e,r){for(var o=this.options,i=this.points,n=i.length,s=o.neckRatio<=1,a=s?o.neckRatio*e:e,l=s?0:(e-e/o.neckRatio)/2,p=((s?e:e-2*l)-a)/2,c=0,h=0;h<n;h++){var u=i[h].points=[],f=i[h].percentage,d=o.dynamicHeight?p*f:p/n,v=o.dynamicHeight?r*f:r/n;u.push(new O.geometry.Point(t.x1+l,t.y1+c)),u.push(new O.geometry.Point(t.x1+e-l,t.y1+c)),u.push(new O.geometry.Point(t.x1+e-l-d,t.y1+v+c)),u.push(new O.geometry.Point(t.x1+l+d,t.y1+v+c)),l+=d,c+=v+o.segmentSpacing}},e.prototype.reflow=function(t){var e=this.points,r=e.length;if(r){var o=this.options,i=t.clone().unpad(this.labelPadding()),n=i.height()-o.segmentSpacing*(r-1),s=i.width();o.dynamicSlope?this.dynamicSlopeReflow(i,s,n):this.constantSlopeReflow(i,s,n);for(var a=0;a<r;a++)e[a].reflow(t)}},e}(Yt);wt(Xs,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:a,position:a,zIndex:1}}),j(Xs.prototype,cs);var Ys=Xs,qs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createFunnelChart(this.series)},e.prototype.createFunnelChart=function(t){var e=t[0],r=new Ys(this,{series:t,legend:this.options.legend,neckRatio:e.neckRatio,dynamicHeight:e.dynamicHeight,dynamicSlope:e.dynamicSlope,segmentSpacing:e.segmentSpacing,highlight:e.highlight});this.appendChart(r)},e.prototype.appendChart=function(e,r){t.prototype.appendChart.call(this,e,r),it(this.options.legend.items,e.legendItems)},e}(Zi),Zs=function(t,e){void 0===e&&(e=.05);var r=Object(O.parseColor)(t),o=1-e;return function(t){var e=r.toHSL(),i=100-e.l,n=o-t;return e.l+=Math.min(n*i,i),e.toCss()}},Qs=function(t){function e(e,r){t.call(this),this.options=r,this.color=r.color||g,this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this._rendered||(this._rendered=!0,this.createMarker(),this.createLabel(),this.createNote())},e.prototype.createLabel=function(){var t=this.options.labels;if(t.visible){var e,r=this.pointData(),o=U(t),i=t.color;e=o?o(r):this.formatValue(t.format),i||(i=Mt(this.color)),this.label=new ce(e,j({align:a,vAlign:a,margin:{left:5,right:5},zIndex:_t(t.zIndex,this.series.zIndex)},t,{color:i}),r),this.append(this.label)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.reflow=function(t){this.render();var e=this.label;this.box=t,e&&e.reflow(this.markerBox()),this.note&&this.note.reflow(t),this.marker.reflow(this.markerBox())},e.prototype.markerBox=function(){var t=this.options.markers,e=t.border,r=this.box.toRect(),o="roundedRect"===_t(t.type,"rect"),i=_t(e.width,o?1:0),n=Math.round(i/2);if(t.size){var s=r.center();r.size.width=r.size.height=t.size,r.origin.x=Math.round(s.x-r.size.width/2),r.origin.y=Math.round(s.y-r.size.height/2)}return r.size.width-=i,r.size.height-=i,r.origin.y+=n+.5,r.origin.x+=n+.5,le(r)},e.prototype.markerBorder=function(){var t=this.options,e=t.markers.border,r=_t(e.opacity,t.opacity);return{color:e.color||this.color,width:e.width,opacity:r,dashType:e.dashType}},e.prototype.createMarker=function(){var t=this.options,e=t.markers,r=new $t({type:_t(e.type,"rect"),width:e.size,height:e.size,rotation:e.rotation,background:this.color,border:this.markerBorder(),borderRadius:e.borderRadius,opacity:this.series.opacity||t.opacity,zIndex:_t(t.zIndex,this.series.zIndex),animation:t.animation,visual:t.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category});this.marker=r,this.append(r)},e.prototype.createHighlight=function(t){var e=this.options,r=this.options.highlight.markers||this.options.markers,o=new $t({type:_t(r.type,"rect"),width:r.size,height:r.size,rotation:r.rotation,background:r.color||this.color,border:this.markerBorder(),borderRadius:r.borderRadius,opacity:this.series.opacity||e.opacity,zIndex:_t(e.zIndex,this.series.zIndex)});o.reflow(this.markerBox());var i=o.getElement();return i.options.fill=t.fill,i.options.stroke=t.stroke,i},e.prototype.highlightVisual=function(){return this.rectVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}},e.prototype.tooltipAnchor=function(){var t=this.box.center().x,e=this.box.y1-5;return{point:new Vt(t,e),align:{horizontal:a,vertical:s}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.unclipElements=function(){},e.prototype.pointData=function(){return{x:this.value.x,y:this.value.y,value:this.value.value,dataItem:this.dataItem,series:this.series}},e}(Yt);j(Qs.prototype,yo),j(Qs.prototype,go),Qs.prototype.defaults={markers:{type:"rect",borderRadius:4,border:{color:"transparent"}},padding:{top:1},labels:{visible:!1,padding:3},opacity:1,notes:{label:{}}};var $s=Qs,Js=function(t){function e(e,r){t.call(this,r),this.plotArea=e,this.chartService=e.chartService,this._initFields(),this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this.points=[],this.seriesOptions=[],this.valueRange={min:u,max:f},this._evalSeries=[]},e.prototype.render=function(){this.setRange(),this.traverseDataPoints(this.addValue.bind(this))},e.prototype.setRange=function(){for(var t=this.options.series,e=0;e<t.length;e++)for(var r=t[e],o=0;o<r.data.length;o++){var i=this._bindPoint(r,e,o).valueFields;st(i.value)&&null!==i.value&&(this.valueRange.min=Math.min(this.valueRange.min,i.value),this.valueRange.max=Math.max(this.valueRange.max,i.value))}},e.prototype.addValue=function(t,e){var r;t&&st(t.value)&&null!==t.value&&(r=this.createPoint(t,e))&&Object.assign(r,e),this.points.push(r)},e.prototype.evalPointOptions=function(t,e,r){var o=r.series,i=r.seriesIx,n={defaults:o._defaults,excluded:["data","tooltip","content","template","visual","toggle"]},s=this._evalSeries[i];st(s)||(this._evalSeries[i]=s=ho(t,{},n,!0));var a=t;return s&&ho(a=j({},t),{value:e,series:o,dataItem:r.dataItem,min:this.valueRange.min,max:this.valueRange.max},n),a},e.prototype.pointType=function(){return $s},e.prototype.pointOptions=function(t,e){var r=this.seriesOptions[e];if(!r){var o=this.pointType().prototype.defaults;this.seriesOptions[e]=r=j({},o,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return r},e.prototype.createPoint=function(t,e){var r=e.series,o=this.pointOptions(r,e.seriesIx),i=e.color||r.color;if(o=this.evalPointOptions(o,t,e),T(r.color))i=o.color;else if(0!==this.valueRange.max){i=Zs(i)(t.value/this.valueRange.max)}var n=new $s(t,o);return n.color=i,this.append(n),n},e.prototype.seriesAxes=function(t){var e=t.xAxis,r=t.yAxis,o=this.plotArea,i=e?o.namedXAxes[e]:o.axisX,n=r?o.namedYAxes[r]:o.axisY;if(!i)throw new Error("Unable to locate X axis with name "+e);if(!n)throw new Error("Unable to locate Y axis with name "+r);return{xAxis:i,yAxis:n}},e.prototype.reflow=function(t){var e=this,r=this.points,o=!this.options.clip,i=0;this.traverseDataPoints((function(t,n){var s=r[i++],a=e.seriesAxes(n.series),l=a.xAxis,p=a.yAxis,c=l.categoryIndex(t.x),h=p.categoryIndex(t.y),u=l.getSlot(c,c,o),f=p.getSlot(h,h,o);if(s)if(u&&f){var d=e.pointSlot(u,f);s.reflow(d)}else s.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new Ht(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,r=0;r<e.length;r++)for(var o=e[r],i=this.seriesAxes(o),n=i.xAxis,s=i.yAxis,a=n.currentRangeIndices(),l=s.currentRangeIndices(),p=0;p<o.data.length;p++){var c=this._bindPoint(o,r,p),h=c.valueFields,u=c.fields,f=n.totalIndex(h.x),d=s.totalIndex(h.y),v=a.min<=f&&f<=a.max,y=l.min<=d&&d<=l.max;v&&y&&t(h,j({pointIx:p,series:o,seriesIx:r,dataItem:o.data[p],owner:this},u))}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.x,r.y,r.value)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],r=0;r<t.length;r++)e.push((t[r]||{}).marker);return e},e}(Yt);wt(Js,{series:[],tooltip:{format:"{0}, {1}: {2}"},labels:{format:"{2}"},clip:!0}),j(Js.prototype,{_bindPoint:vo.prototype._bindPoint});var ta=Js,ea=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.namedXAxes={},this.namedYAxes={}},e.prototype.render=function(t){void 0===t&&(t=this.panes),this.bindCategories(),this.createAxes(t),this.createCharts(t),this.createAxisLabels()},e.prototype.bindCategories=function(){for(var t=this.srcSeries||this.series,e=0;e<t.length;e++){for(var r=t[e],o=r.data||[],i=this.seriesAxes(r),n=i.xAxis,s=i.yAxis,a=Bt(n.categories||[]),l=Bt(s.categories||[]),p=0;p<o.length;p++){var c=Yr.current.bindPoint(r,p).valueFields,h=c.x,u=c.y;a.has(h)||a.add(h),l.has(u)||l.add(u)}n.categories=a.values(),s.categories=l.values()}},e.prototype.createCharts=function(t){for(var e=this.groupSeriesByPane(),r=0;r<t.length;r++){var o=t[r],i=e[o.options.name||"default"]||[];this.addToLegend(i);var n=this.filterVisibleSeries(i);n&&this.createHeatmapChart(Di(n,["heatmap"]),o)}},e.prototype.createHeatmapChart=function(t,e){var r=new ta(this,{series:t});this.appendChart(r,e)},e.prototype.seriesPaneName=function(t){var e=this.options,r=t.xAxis,o=K([].concat(e.xAxis),(function(t){return t.name===r}))[0],i=t.yAxis,n=K([].concat(e.yAxis),(function(t){return t.name===i}))[0],s=(e.panes||[{}])[0].name||"default";return(o||{}).pane||(n||{}).pane||s},e.prototype.seriesAxes=function(t){var e,r,o=this.options,i=[].concat(o.xAxis),n=t.xAxis;e=n?i.find((function(t){return t.name===n})):i[0];var s=[].concat(o.yAxis),a=t.yAxis;if(r=a?s.find((function(t){return t.name===a})):s[0],!e)throw new Error("Unable to locate X axis with name "+n);if(!r)throw new Error("Unable to locate Y axis with name "+a);return{xAxis:e,yAxis:r}},e.prototype.createAxisLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e].createLabels()},e.prototype.createXYAxis=function(t,e,r){for(var o,i=t.name,n=e?this.namedYAxes:this.namedXAxes,s=Object.assign({axisCrossingValue:0},t,{vertical:e,reverse:e||this.chartService.rtl?!t.reverse:t.reverse,justified:!1}),a=s.categories?s.categories[0]:null,l=[s.min,s.max,a],c=this.series,h=0;h<c.length;h++){var u=c[h],f=u[e?"yAxis":"xAxis"];if(f===s.name||0===r&&!f){var d=Yr.current.bindPoint(u,0).valueFields;l.push(d[e?"y":"x"]);break}}for(var v=0;v<l.length;v++)if(l[v]instanceof Date){o=!0;break}var y=new(Li(s.type,p)||!s.type&&o?hr:rr)(s,this.chartService);if(y.axisIndex=r,i){if(n[i])throw new Error((e?"Y":"X")+" axis with name "+i+" is already defined");n[i]=y}return this.appendAxis(y),y.mapCategories(),y},e.prototype.createAxes=function(t){for(var e=this.options,r=[].concat(e.xAxis),o=[],i=[].concat(e.yAxis),n=[],s=0;s<r.length;s++){Z(this.findPane(r[s].pane),t)&&o.push(this.createXYAxis(r[s],!1,s))}for(var a=0;a<i.length;a++){Z(this.findPane(i[a].pane),t)&&n.push(this.createXYAxis(i[a],!0,a))}this.axisX=this.axisX||o[0],this.axisY=this.axisY||n[0]},e.prototype.removeAxis=function(e){var r=e.options.name;t.prototype.removeAxis.call(this,e),e.options.vertical?delete this.namedYAxes[r]:delete this.namedXAxes[r],e===this.axisX&&delete this.axisX,e===this.axisY&&delete this.axisY},e.prototype._dispatchEvent=function(t,e,r){for(var o=t._eventCoordinates(e),i=new Vt(o.x,o.y),n=this.axes,s=n.length,a=[],l=[],p=0;p<s;p++){var c=n[p];Ri(c.options.vertical?l:a,c.getCategory(i))}a.length>0&&l.length>0&&t.trigger(r,{element:ht(e),originalEvent:e,x:Ni(a),y:Ni(l)})},e.prototype.updateAxisOptions=function(t,e){var r=t.options.vertical,o=this.groupAxes(this.panes),i=(r?o.y:o.x).indexOf(t);ra(this.options,i,r,e),ra(this.originalOptions,i,r,e)},e.prototype.crosshairOptions=function(t){return Object.assign({},t.options.crosshair,{zIndex:0})},e}(Zi);function ra(t,e,r,o){j([].concat(r?t.yAxis:t.xAxis)[e],o)}wt(ea,{xAxis:{},yAxis:{}}),j(ea.prototype,Qi);var oa=ea,ia="color",na="first",sa="max";Hn.current.register(Sn,[eo,ro,oo,no,"area","verticalArea","candlestick","ohlc","bullet","verticalBullet","boxPlot","verticalBoxPlot","rangeColumn","rangeBar","waterfall","horizontalWaterfall","rangeArea","verticalRangeArea"]),Hn.current.register(is,["scatter","scatterLine","bubble"]),Hn.current.register(ds,[io]),Hn.current.register(_s,["donut"]),Hn.current.register(qs,["funnel"]),Hn.current.register(Ts,["polarArea","polarLine","polarScatter"]),Hn.current.register(Gs,["radarArea","radarColumn","radarLine"]),Hn.current.register(oa,["heatmap"]),Yr.current.register([eo,ro,oo,no,"area","verticalArea"],[y],["category",ia,"noteText","errorLow","errorHigh"]),Yr.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],["from","to"],["category",ia,"noteText"]),Yr.current.register(["waterfall","horizontalWaterfall"],[y],["category",ia,"noteText","summary"]),Yr.current.register(["polarArea","polarLine","polarScatter"],[m,_],[ia]),Yr.current.register(["radarArea","radarColumn","radarLine"],[y],[ia]),Yr.current.register(["funnel"],[y],["category",ia,"visibleInLegend","visible"]),en.current.register([eo,ro,oo,no,"area","verticalArea","waterfall","horizontalWaterfall"],{value:sa,color:na,noteText:na,errorLow:"min",errorHigh:sa}),en.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],{from:"min",to:sa,color:na,noteText:na}),en.current.register(["radarArea","radarColumn","radarLine"],{value:sa,color:na}),Yr.current.register(["scatter","scatterLine","bubble"],[m,_],[ia,"noteText","xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Yr.current.register(["bubble"],[m,_,"size"],[ia,"category","noteText"]),Yr.current.register(["heatmap"],[m,_,y],[ia,"noteText"]),Yr.current.register(["candlestick","ohlc"],["open","high","low","close"],["category",ia,"downColor","noteText"]),en.current.register(["candlestick","ohlc"],{open:sa,high:sa,low:"min",close:sa,color:na,downColor:na,noteText:na}),Yr.current.register(["boxPlot","verticalBoxPlot"],["lower","q1","median","q3","upper","mean","outliers"],["category",ia,"noteText"]),en.current.register(["boxPlot","verticalBoxPlot"],{lower:sa,q1:sa,median:sa,q3:sa,upper:sa,mean:sa,outliers:na,color:na,noteText:na}),Yr.current.register(["bullet","verticalBullet"],["current","target"],["category",ia,"visibleInLegend","noteText"]),en.current.register(["bullet","verticalBullet"],{current:sa,target:sa,color:na,noteText:na}),Yr.current.register([io,"donut"],[y],["category",ia,"explode","visibleInLegend","visible"]);var aa=["category",y,m,_],la=function(t){function e(e,r,o,i){var n=this;void 0===i&&(i={}),t.call(this),this.observers=[],this.addObserver(i.observer),this.chartService=new Ae(this,i),this.chartService.theme=o,this._initElement(e);var s=j({},this.options,r);this._originalOptions=j({},s),this._theme=o,this._initTheme(s,o),this._initHandlers(),this._initSurface(),this.bindCategories(),xt.preloadFonts(r,(function(){n.fontLoaded=!0,n._destroyed||(n.trigger("init"),n._redraw(),n._attachEvents())}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initElement=function(t){for(this._setElementClass(t),t.style.position="relative";t.firstChild;)t.removeChild(t.firstChild);this.element=t},e.prototype._setElementClass=function(t){x(t,"k-chart")},e.prototype._initTheme=function(t,e){for(var r=[],o=t.series||[],i=0;i<o.length;i++)r.push(Object.assign({},o[i]));t.series=r,function(t){for(var e=aa,r=0;r<e.length;r++){var o=e[r]+"Axes";t[o]&&(t[e[r]+"Axis"]=t[o],delete t[o])}}(t),this.applyDefaults(t,e),null===t.seriesColors&&delete t.seriesColors,this.options=j({},e,t),this.applySeriesColors()},e.prototype.getSize=function(){var t=this.options.chartArea||{};return{width:t.width?parseInt(t.width,10):Math.floor(this.element.offsetWidth),height:t.height?parseInt(t.height,10):Math.floor(this.element.offsetHeight)}},e.prototype.resize=function(t){var e=this.getSize(),r=this._size,o=e.width>0||e.height>0;t||o&&(!r||e.width!==r.width||e.height!==r.height)?(this._size=e,this._resize(e,t),this.trigger("resize",e)):o&&this._selections&&Ot(this._selections,(function(t){return!t.visible}))&&(this._destroySelections(),this._setupSelection())},e.prototype._resize=function(){this._noTransitionsRedraw()},e.prototype.redraw=function(t){if(this.applyDefaults(this.options),this.applySeriesColors(),t){var e=this._model._plotArea,r=e.findPane(t);e.redraw(r)}else this._redraw()},e.prototype.getAxis=function(t){return Vr(t,this._plotArea.axes)},e.prototype.findAxisByName=function(t){return this.getAxis(t)},e.prototype.findPaneByName=function(t){for(var e=this._plotArea.panes,r=0;r<e.length;r++)if(e[r].options.name===t)return new Hr(e[r])},e.prototype.findPaneByIndex=function(t){var e=this._plotArea.panes;if(e[t])return new Hr(e[t])},e.prototype.plotArea=function(){return new Ur(this._plotArea)},e.prototype.toggleHighlight=function(t,e){var r,o,i,n=this._plotArea,s=(n.srcSeries||n.series||[])[0];T(e)?r=n.filterPoints(e):(R(e)?(o=e.series,i=e.category):o=i=e,r="donut"===s.type?pa(n.pointsBySeriesName(o),i):s.type===io||"funnel"===s.type?pa((n.charts[0]||{}).points,i):n.pointsBySeriesName(o));r&&this.togglePointsHighlight(t,r)},e.prototype.togglePointsHighlight=function(t,e){for(var r=this._highlight,o=0;o<e.length;o++)r.togglePointHighlight(e[o],t)},e.prototype.showTooltip=function(t){var e,r,o=this._sharedTooltip(),i=this._tooltip,n=this._plotArea;if(T(t)?(e=n.findPoint(t))&&o&&(r=e.categoryIx):o&&st(t)&&(r=n.categoryAxis.categoryIndex(t)),o){if(r>=0){var s=this._plotArea.pointsByCategoryIndex(r);i.showAt(s)}}else e&&i.show(e)},e.prototype.hideTooltip=function(){this._tooltip.hide()},e.prototype._initSurface=function(){var t=this.surface,e=this._surfaceWrap(),r=this.options.chartArea||{};r.width&&pt(e,{width:r.width}),r.height&&pt(e,{height:r.height}),t&&t.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=O.drawing.Surface.create(e,{type:this.options.renderAs}),this.surface.bind("mouseenter",this._surfaceMouseenterHandler),this.surface.bind("mouseleave",this._surfaceMouseleaveHandler))},e.prototype._surfaceWrap=function(){return this.element},e.prototype._redraw=function(){var t=this._getModel();this._size={width:t.options.width,height:t.options.height},this._destroyView(),this._model=t,this._plotArea=t._plotArea,t.renderVisual(),!1!==this.options.transitions&&t.traverse((function(t){t.animation&&t.animation.setup()})),this._initSurface(),this.surface.draw(t.visual),!1!==this.options.transitions&&t.traverse((function(t){t.animation&&t.animation.play()})),this._tooltip=this._createTooltip(),this._highlight=new An,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),da(this._plotArea.panes),this._navState||this._cancelDomEvents()},e.prototype.exportVisual=function(t){var e;if(t&&(t.width||t.height||t.options)){var r=this.options,o=j({},t.options,{chartArea:{width:t.width,height:t.height}});fa(this._originalOptions,o),this.options=j({},this._originalOptions,o),this._initTheme(this.options,this._theme),this.bindCategories();var i=this._getModel();i.renderVisual(),da(i._plotArea.panes),e=i.visual,this.options=r}else e=this.surface.exportVisual();return e},e.prototype._sharedTooltip=function(){return this._plotArea instanceof Sn&&this.options.tooltip&&this.options.tooltip.shared},e.prototype._createPannable=function(){var t=this.options;!1!==t.pannable&&(this._pannable=new jn(this._plotArea,t.pannable))},e.prototype._createZoomSelection=function(){var t=this.options.zoomable,e=(t||{}).selection;!1!==t&&!1!==e&&(this._zoomSelection=new In(this,e))},e.prototype._createMousewheelZoom=function(){var t=this.options.zoomable,e=(t||{}).mousewheel;!1!==t&&!1!==e&&(this._mousewheelZoom=new Bn(this,e))},e.prototype._toggleDragZoomEvents=function(){var t=this.options.pannable,e=this.options.zoomable,r=(e||{}).selection,o=(e||{}).mousewheel,i=!(t||!1!==e&&!1!==r||this.requiresHandlers(["dragStart","drag","dragEnd"])),n=(!1===e||!1===o)&&!this.requiresHandlers(["zoomStart","zoom","zoomEnd"]),s=this.element;this._dragZoomEnabled&&i&&n?(s.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):this._dragZoomEnabled||i&&n||(s.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!i,!n)},e.prototype._toggleDomEvents=function(t,e){var r=this.domEvents;r&&(r.toggleDrag&&r.toggleDrag(t),r.toggleZoom&&r.toggleZoom(e))},e.prototype._createTooltip=function(){var t=this.options.tooltip;return this._sharedTooltip()?this._createSharedTooltip(t):new Kn(this.chartService,t)},e.prototype._createSharedTooltip=function(t){return new Yn(this._plotArea,t)},e.prototype.applyDefaults=function(t,e){!function(t,e){var r,o,i,n=(e||{}).axisDefaults||{};function s(t){var e=(t||{}).color||o.color,i=j({},n,n[r],o,o[r],{line:{color:e},labels:{color:e},title:{color:e}},t);return delete i[r],i}for(var a=0;a<aa.length;a++)r=aa[a]+"Axis",o=t.axisDefaults||{},i=(i=[].concat(t[r])).map(s),t[r]=i.length>1?i:i[0]}(t,e),function(t,e){var r=t.series,o=r.length,i=t.seriesDefaults,n=j({},t.seriesDefaults),s=e?j({},e.seriesDefaults):{},a=j({},s);ca(n),ca(a);for(var l=0;l<o;l++){var p=r[l].type||t.seriesDefaults.type,c=j({data:[]},a,s[p],{tooltip:t.tooltip},n,i[p]);r[l]._defaults=c,r[l]=j({},c,r[l]),r[l].data=r[l].data||[]}}(t,e)},e.prototype.applySeriesColors=function(){for(var t=this.options,e=t.series,r=t.seriesColors||[],o=0;o<e.length;o++){var i=e[o],n=r[o%r.length],s=i._defaults;i.color=i.color||n,s&&(s.color=s.color||n)}},e.prototype._getModel=function(){var t=this.options,e=this._createPlotArea(),r=new re(this._modelOptions());return r.chart=this,r._plotArea=e,ue.buildTitle(t.title,r),t.legend&&t.legend.visible&&r.append(new Vn(e.options.legend,this.chartService)),r.append(e),r.reflow(),r},e.prototype._modelOptions=function(){var t=this.options,e=this.getSize();return j({transitions:t.transitions,width:e.width||600,height:e.height||400},t.chartArea)},e.prototype._createPlotArea=function(t){var e=this.options;return Hn.current.create(t?[]:e.series,e,this.chartService)},e.prototype._setupSelection=function(){for(var t=this._plotArea.axes,e=this._selections=[],r=0;r<t.length;r++){var o=t[r],i=o.options;if(o instanceof rr&&i.select&&!i.vertical){var n=o.range(),s=new Wn(this,o,j({min:n.min,max:n.max},i.select));e.push(s)}}},e.prototype._selectStart=function(t){return this.trigger("selectStart",t)},e.prototype._select=function(t){return this.trigger("select",t)},e.prototype._selectEnd=function(t){return this.trigger("selectEnd",t)},e.prototype._initHandlers=function(){this._clickHandler=this._click.bind(this),this._mousewheelHandler=this._mousewheel.bind(this),this._mouseleaveHandler=this._mouseleave.bind(this),this._surfaceMouseenterHandler=this._mouseover.bind(this),this._surfaceMouseleaveHandler=this._mouseout.bind(this),this._mousemove=Object(O.throttle)(this._mousemove.bind(this),20)},e.prototype.addObserver=function(t){t&&this.observers.push(t)},e.prototype.removeObserver=function(t){var e=this.observers.indexOf(t);e>=0&&this.observers.splice(e,1)},e.prototype.requiresHandlers=function(t){for(var e=this.observers,r=0;r<e.length;r++)if(e[r].requiresHandlers(t))return!0},e.prototype.trigger=function(t,e){void 0===e&&(e={}),"showTooltip"===t&&(e.anchor.point=this._toDocumentCoordinates(e.anchor.point)),e.sender=this;for(var r=this.observers,o=!1,i=0;i<r.length;i++)r[i].trigger(t,e)&&(o=!0);return o},e.prototype._attachEvents=function(){var t,e,r=this.element;this._touchAction=r.style.touchAction,nt(r,((t={}).contextmenu=this._clickHandler,t[ao]=this._mousewheelHandler,t.mouseleave=this._mouseleaveHandler,t)),this._shouldAttachMouseMove()&&nt(r,((e={}).mousemove=this._mousemove,e)),this.domEvents=Te.create(this.element,{start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)}),this._toggleDragZoomEvents()},e.prototype._mouseleave=function(t){this._hoveredPoint&&(this._hoveredPoint.out(this,t),this._hoveredPoint=null),this._plotArea.hovered&&(this.trigger("plotAreaLeave"),this._plotArea.hovered=!1)},e.prototype._cancelDomEvents=function(){this.domEvents&&this.domEvents.cancel&&this.domEvents.cancel()},e.prototype._gesturestart=function(t){this._mousewheelZoom&&!this._stopChartHandlers(t)&&(this._gestureDistance=t.distance,this._unsetActivePoint(),this.surface.suspendTracking())},e.prototype._gestureend=function(t){this._zooming&&!this._stopChartHandlers(t)&&(this.surface&&this.surface.resumeTracking(),this._zooming=!1,this.trigger("zoomEnd",{}))},e.prototype._gesturechange=function(t){var e=this._mousewheelZoom;if(e&&!this._stopChartHandlers(t)){t.preventDefault();var r=this._gestureDistance,o=-t.distance/r+1;if(Math.abs(o)>=.1){o=Math.round(10*o),this._gestureDistance=t.distance;var i={delta:o,axisRanges:ha(this._plotArea.axes),originalEvent:t};if(this._zooming||!this.trigger("zoomStart",i)){var n=this._eventCoordinates(t);this._zooming||(this._zooming=!0),(i.axisRanges=e.updateRanges(o,n))&&!this.trigger("zoom",i)&&e.zoom()}}}},e.prototype._mouseout=function(t){if(t.element){var e=this._drawingChartElement(t.element,t);e&&e.leave&&e.leave(this,t.originalEvent)}},e.prototype._start=function(t){var e=this._eventCoordinates(t);!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(e)&&(this.requiresHandlers(["dragStart","drag","dragEnd"])&&this._startNavigation(t,e,"dragStart"),this._pannable&&this._pannable.start(t)&&(this.surface.suspendTracking(),this._unsetActivePoint(),this._suppressHover=!0,this.chartService.panning=!0),this._zoomSelection&&this._zoomSelection.start(t)&&this.trigger("zoomStart",{axisRanges:ha(this._plotArea.axes),originalEvent:t}))},e.prototype._move=function(t){var e=this._navState,r=this._pannable;if(!this._stopChartHandlers(t)){if(r){var o=r.move(t);o&&!this.trigger("drag",{axisRanges:o,originalEvent:t})&&r.pan()}else if(e){for(var i={},n=e.axes,s=0;s<n.length;s++){var a=n[s];if(a.options.name){var l=a.options.vertical?t.y:t.x,p=l.startLocation-l.location;0!==p&&(i[a.options.name]=a.translateRange(p))}}e.axisRanges=i,this.trigger("drag",{axisRanges:i,originalEvent:t})}this._zoomSelection&&this._zoomSelection.move(t)}},e.prototype._end=function(t){if(!this._stopChartHandlers(t)){var e=this._pannable;if(e&&e.end(t)?(this.surface.resumeTracking(),this.trigger("dragEnd",{axisRanges:ha(this._plotArea.axes),originalEvent:t}),this._suppressHover=!1,this.chartService.panning=!1):this._endNavigation(t,"dragEnd"),this._zoomSelection){var r=this._zoomSelection.end(t);r&&!this.trigger("zoom",{axisRanges:r,originalEvent:t})&&(this._zoomSelection.zoom(),this.trigger("zoomEnd",{axisRanges:r,originalEvent:t}))}}},e.prototype._stopChartHandlers=function(t){var e=this._selections||[];if(!e.length)return!1;var r=this._eventCoordinates(t),o=this._plotArea.paneByPoint(r);if(o)for(var i=0;i<e.length;i++)if(e[i].onPane(o))return!0},e.prototype._mousewheelZoomRate=function(){var t=(this.options.zoomable||{}).mousewheel||{};return _t(t.rate,.3)},e.prototype._mousewheel=function(t){var e=this,r=rt(t),o=this._mousewheelZoom,i=this._eventCoordinates(t);if(!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(i))if(o){var n={delta:r,axisRanges:ha(this._plotArea.axes),originalEvent:t};!this._zooming&&this.trigger("zoomStart",n)||(t.preventDefault(),this._zooming||(this._unsetActivePoint(),this.surface.suspendTracking(),this._zooming=!0),this._mwTimeout&&clearTimeout(this._mwTimeout),n.axisRanges=o.updateRanges(r,i),n.axisRanges&&!this.trigger("zoom",n)&&o.zoom(),this._mwTimeout=setTimeout((function(){e.trigger("zoomEnd",n),e._zooming=!1,e.surface&&e.surface.resumeTracking()}),150))}else{var s=this._navState;if(!s)this._startNavigation(t,i,"zoomStart")||(s=this._navState);if(s){var a=s.totalDelta||r;s.totalDelta=a+r;for(var l=this._navState.axes,p={},c=0;c<l.length;c++){var h=l[c],u=h.options.name;u&&(p[u]=h.scaleRange(-a*e._mousewheelZoomRate(),i))}this.trigger("zoom",{delta:r,axisRanges:p,originalEvent:t}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._endNavigation(t,"zoomEnd")}),150)}}},e.prototype._startNavigation=function(t,e,r){var o=this._model._plotArea,i=o.findPointPane(e),n=o.axes.slice(0);if(i){var s=ha(n);this.trigger(r,{axisRanges:s,originalEvent:t})?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:s,pane:i,axes:n})}},e.prototype._endNavigation=function(t,e){this._navState&&(this.trigger(e,{axisRanges:this._navState.axisRanges,originalEvent:t}),this._suppressHover=!1,this._navState=null)},e.prototype._getChartElement=function(t,e){var r=this.surface.eventTarget(t);if(r)return this._drawingChartElement(r,t,e)},e.prototype._drawingChartElement=function(t,e,r){for(var o,i=t;i&&!o;)o=i.chartElement,i=i.parent;if(o)return o.aliasFor&&(o=o.aliasFor(e,this._eventCoordinates(e))),r&&(o=o.closest(r))&&o.aliasFor&&(o=o.aliasFor()),o},e.prototype._eventCoordinates=function(t){var e=ct(t);return this._toModelCoordinates(e.x,e.y)},e.prototype._elementPadding=function(){if(!this._padding){var t=D(this.element,["paddingLeft","paddingTop"]),e=t.paddingLeft,r=t.paddingTop;this._padding={top:r,left:e}}return this._padding},e.prototype._toDocumentCoordinates=function(t){var e=this._elementPadding(),r=lt(this.element);return{left:gt(t.x+e.left+r.left),top:gt(t.y+e.top+r.top)}},e.prototype._toModelCoordinates=function(t,e){var r=this.element,o=lt(r),i=this._elementPadding(),n=At(r).invert(),s=new O.geometry.Point(t-o.left-i.left,e-o.top-i.top).transform(n);return new Vt(s.x,s.y)},e.prototype._tap=function(t){var e=this,r=this.surface.eventTarget(t),o=this._drawingChartElement(r,t),i=this._sharedTooltip();this._startHover(r,t)||i||this._unsetActivePoint(),i&&this._trackSharedTooltip(this._eventCoordinates(t),t,!0),this._propagateClick(o,t),this.handlingTap=!0,setTimeout((function(){e.handlingTap=!1}),0)},e.prototype._click=function(t){var e=this._getChartElement(t);this._propagateClick(e,t)},e.prototype._propagateClick=function(t,e){for(var r=t;r;)r.click&&r.click(this,e),r=r.parent},e.prototype._startHover=function(t,e){if(this._suppressHover)return!1;var r=this._drawingChartElement(t,e,(function(t){return(t.hover||t.over)&&!(t instanceof Zi)})),o=this._activePoint,i=this._plotArea.series.length>1,n=this._hasInactiveOpacity();return this._updateHoveredPoint(r,e),r&&o!==r&&r.hover?(this._activePoint=r,this._sharedTooltip()||r.hover(this,e)||(this._displayTooltip(r),n?this._displayInactiveOpacity(r,i):this._highlight.show(r))):!r&&n&&(i&&this._activeChartInstance&&(this._updateSeriesOpacity(r,!0),this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._activeChartInstance=null),this._highlight&&this._highlight.hide(),this._activePoint=null),r},e.prototype._displayTooltip=function(t){j({},this.options.tooltip,t.options.tooltip).visible&&this._tooltip.show(t)},e.prototype._displayInactiveOpacity=function(t,e,r){var o=this._activeChartInstance=this._chartInstanceFromPoint(t);if(o)if(e)this._updateSeriesOpacity(t),this._applySeriesOpacity(o.children,null,!0),this._applySeriesOpacity(o.children,t.series),this._highlight.show(r||t);else{var i;if(!o.supportsPointInactiveOpacity())return void this._highlight.show(t);(i=this._getInactivePoints(t,o))&&i.length&&this._highlight.show(i,1-this._getInactiveOpacityForSeries(t.series))}},e.prototype._getInactivePoints=function(t,e){return this._getAllPointsOfType(e,t.constructor).filter((function(e){return e!==t}))},e.prototype._getAllPointsOfType=function(t,e){for(var r=[],o=0;o<t.children.length;o++){var i=t.children[o];i.constructor===e?r.push(i):i.children&&i.children.length&&(r=r.concat(this._getAllPointsOfType(i,e)))}return r},e.prototype._updateHoveredPoint=function(t,e){var r=this._hoveredPoint;r&&r!==t&&(r.out(this,e),this._hoveredPoint=null),t&&r!==t&&t.over&&(this._hoveredPoint=t,t.over(this,e))},e.prototype._updateSeriesOpacity=function(t,e){for(var r=this._plotArea,o=r.series.length,i=0;i<o;i++){var n=r.series[i],s=this._getDefaultOpacityForSeries(n),a=this._getInactiveOpacityForSeries(n);e||n===t.series?(n.opacity=s,n.line&&(n.line.opacity=s)):(n.defaultOpacity=s,n.opacity=a,n.line&&(n.line.opacity=a))}},e.prototype._applySeriesOpacity=function(t,e,r,o){for(var i=0;i<t.length;i++){var n=t[i],s=n.series||o;if(s&&(s.highlight||{}).visible&&n.visual){var a=o?o.opacity:n.series.opacity;(s!==e||r)&&n.visual.opacity(r?1:a)}n.children&&n.children.length&&this._applySeriesOpacity(n.children,e,r,n.series)}},e.prototype._chartInstanceFromPoint=function(t){for(var e=t.parent;e&&!e.plotArea;)e=e.parent;return e},e.prototype._hasInactiveOpacity=function(){var t=void 0!==this.options.seriesDefaults.highlight.inactiveOpacity,e=this.options.series.filter((function(t){return void 0!==t.highlight.inactiveOpacity})).length>0;return t||e},e.prototype._getInactiveOpacityForSeries=function(t){var e=this.options.seriesDefaults.highlight.inactiveOpacity;return t.highlight.inactiveOpacity||e||t.opacity||1},e.prototype._getDefaultOpacityForSeries=function(t){return t.defaultOpacity||t.opacity||1},e.prototype._mouseover=function(t){var e,r=this._startHover(t.element,t.originalEvent);r&&r.tooltipTracking&&!this._mouseMoveTrackHandler&&!this._sharedTooltip()&&(this._mouseMoveTrackHandler=this._mouseMoveTracking.bind(this),nt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)))},e.prototype._mouseMoveTracking=function(t){var e,r=this.options,o=this._tooltip,i=this._highlight,n=this._activePoint,s=this._eventCoordinates(t);if(this._plotArea.box.containsPoint(s)){if(n&&n.tooltipTracking&&n.series&&n.parent.getNearestPoint){var a=n.parent.getNearestPoint(s.x,s.y,n.seriesIx);if(a&&a!==n)if(this._activePoint=a,!a.hover(this,t))j({},r.tooltip,a.options.tooltip).visible&&o.show(a),i.show(a)}}else mt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)),this._unsetActivePoint(),this._mouseMoveTrackHandler=null},e.prototype._mousemove=function(t){var e=this._eventCoordinates(t),r=this._plotArea;if(this._trackCrosshairs(e),r.hover){var o=r.backgroundContainsPoint(e);o?(r.hovered=!0,this._plotArea.hover(this,t)):r.hovered&&!o&&(this.trigger("plotAreaLeave"),r.hovered=!1)}this._sharedTooltip()&&this._trackSharedTooltip(e,t)},e.prototype._trackCrosshairs=function(t){for(var e=this._plotArea.crosshairs,r=0;r<e.length;r++){var o=e[r];o.box.containsPoint(t)?o.showAt(t):o.hide()}},e.prototype._trackSharedTooltip=function(t,e,r){if(!this._suppressHover){var o=this.options.tooltip,i=this._plotArea,n=this._plotArea.categoryAxis,s=this._tooltip,a=this._highlight;if(i.backgroundContainsPoint(t)){var l=n.pointCategoryIndex(t);if(l!==this._tooltipCategoryIx||!this._sharedHighlight&&r){var p=i.pointsByCategoryIndex(l),c=p.map((function(t){return t.eventArgs(e)})),h=c[0]||{};h.categoryPoints=c,p.length>0&&!this.trigger("seriesHover",h)?(o.visible&&s.showAt(p,t),a.show(p),this._sharedHighlight=!0):s.hide(),this._tooltipCategoryIx=l}else r&&this._sharedHighlight&&(a.hide(),s.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(a.hide(),s.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1)}},e.prototype.hideElements=function(t){var e=this._plotArea;this._mousemove.cancel(),e.hideCrosshairs(),this._unsetActivePoint(t)},e.prototype._unsetActivePoint=function(t){var e=this._tooltip,r=this._highlight;this._activePoint=null,this._hoveredPoint=null,!e||t&&t.keepTooltipOpen||e.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1,r&&r.hide()},e.prototype._deferRedraw=function(){this._redraw()},e.prototype._clearRedrawTimeout=function(){this._redrawTimeout&&(clearInterval(this._redrawTimeout),this._redrawTimeout=null)},e.prototype.bindCategories=function(){for(var t=this.options,e=[].concat(t.categoryAxis),r=0;r<e.length;r++){var o=e[r];!1!==o.autoBind&&this.bindCategoryAxisFromSeries(o,r)}},e.prototype.bindCategoryAxisFromSeries=function(t,e){for(var r,o=this.options.series,i=o.length,n=new q,s=[],a=!1,l=0;l<i;l++){var p=o[l],c=p.categoryAxis===t.name||!p.categoryAxis&&0===e,h=p.data,u=h.length,f=p.categoryField&&c;if(a=f||a,f&&u>0)for(var d=(r=Vi(t,Kr(p.categoryField,h[0])))?zi:Kr,v=0;v<u;v++){var y=h[v],g=d(p.categoryField,y,this.chartService.intl);!r&&n.get(g)||(s.push([g,y]),r||n.set(g,!0))}}if(s.length>0){r&&(s=function(t,e){void 0===e&&(e=We);for(var r=function(t,e){void 0===e&&(e=We);for(var r=1,o=t.length;r<o;r++)if(e(t[r],t[r-1])<0){t.sort(e);break}return t}(t,e),o=r.length,i=o>0?[r[0]]:[],n=1;n<o;n++)0!==e(r[n],ft(i))&&i.push(r[n]);return i}(s,(function(t,e){return We(t[0],e[0])})));var m=function(t){for(var e=t.length,r=[],o=0;o<e;o++)for(var i=t[o],n=i.length,s=0;s<n;s++)r[s]=r[s]||[],r[s].push(i[s]);return r}(s);t.categories=m[0]}else a&&(t.categories=[])},e.prototype._isBindable=function(t){for(var e=Yr.current.valueFields(t),r=!0,o=0;o<e.length;o++){var i=e[o];if(i===y?i="field":i+="Field",!st(t[i])){r=!1;break}}return r},e.prototype._noTransitionsRedraw=function(){var t,e=this.options;!1!==e.transitions&&(e.transitions=!1,t=!0),this._redraw(),t&&(e.transitions=!0)},e.prototype._legendItemHover=function(t,e){var r,o=this._plotArea,i=this._highlight,n=(o.srcSeries||o.series)[t];if(r=Z(n.type,[io,"donut","funnel"])?o.findPoint((function(r){return r.series.index===t&&r.index===e})):o.pointsBySeriesIndex(t),this._hasInactiveOpacity()&&n.visible&&r){var s=o.series.length>1,a=r.length?r[0]:r;this._displayInactiveOpacity(a,s,r)}else i.show(r)},e.prototype._shouldAttachMouseMove=function(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers(["plotAreaHover","plotAreaLeave"])},e.prototype.updateMouseMoveHandler=function(){var t,e;mt(this.element,((t={}).mousemove=this._mousemove,t)),this._shouldAttachMouseMove()&&nt(this.element,((e={}).mousemove=this._mousemove,e))},e.prototype.applyOptions=function(t,e){fa(this._originalOptions,t),this._originalOptions=j(this._originalOptions,t),this.options=j({},this._originalOptions),e&&(this._theme=e,this.chartService.theme=e),this._initTheme(this.options,this._theme),this._toggleDragZoomEvents()},e.prototype.setOptions=function(t,e){this.applyOptions(t,e),this.bindCategories(),this.redraw(),this.updateMouseMoveHandler()},e.prototype.setDirection=function(t){this.chartService.rtl=Boolean(t),this.surface&&"svg"===this.surface.type&&this._destroySurface()},e.prototype.setIntlService=function(t){this.chartService.intl=t},e.prototype.noTransitionsRedraw=function(){this._noTransitionsRedraw()},e.prototype.destroy=function(){var t,e;this._destroyed=!0,mt(this.element,((t={}).contextmenu=this._clickHandler,t[ao]=this._mousewheelHandler,t.mousemove=this._mousemove,t.mouseleave=this._mouseleaveHandler,t)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&mt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)),this._destroyView(),this._destroySurface(),this._clearRedrawTimeout()},e.prototype._destroySurface=function(){var t=this.surface;t&&(t.unbind("mouseenter",this._surfaceMouseenterHandler),t.unbind("mouseleave",this._surfaceMouseleaveHandler),t.destroy(),this.surface=null)},e.prototype._destroySelections=function(){var t=this._selections;if(t)for(;t.length>0;)t.shift().destroy()},e.prototype._destroyView=function(){var t=this._model;t&&(t.destroy(),this._model=null),this._unsetActivePoint(),this._destroySelections(),this._tooltip&&this._tooltip.destroy(),this._highlight&&this._highlight.destroy(),this._zoomSelection&&(this._zoomSelection.destroy(),delete this._zoomSelection),this._pannable&&(this._pannable.destroy(),delete this._pannable),this._mousewheelZoom&&(this._mousewheelZoom.destroy(),delete this._mousewheelZoom)},e}(O.Class);function pa(t,e){if(t)for(var r=0;r<t.length;r++)if(t[r].category===e)return[t[r]]}function ca(t){delete t.bar,delete t.column,delete t.rangeColumn,delete t.line,delete t.verticalLine,delete t.pie,delete t.donut,delete t.area,delete t.verticalArea,delete t.scatter,delete t.scatterLine,delete t.bubble,delete t.candlestick,delete t.ohlc,delete t.boxPlot,delete t.bullet,delete t.verticalBullet,delete t.polarArea,delete t.polarLine,delete t.radarArea,delete t.radarLine,delete t.waterfall}function ha(t){for(var e={},r=0;r<t.length;r++){var o=t[r],i=o.options.name;i&&(e[i]=o.range())}return e}var ua=["data","categories"];function fa(t,e){for(var r in e)if(!Z(r,ua)&&e.hasOwnProperty(r)){var o=e[r],i=t[r];if(st(i)){var n=null===o;n||!st(o)?(delete t[r],n&&delete e[r]):i&&R(o)&&R(i)&&fa(i,o)}}}function da(t){for(var e=0;e<t.length;e++)t[e].notifyRender()}wt(la,{renderAs:"",chartArea:{},legend:{visible:!0,labels:{}},categoryAxis:{},seriesDefaults:{type:ro,data:[],highlight:{visible:!0},labels:{},negativeValues:{visible:!1}},series:[],seriesColors:null,tooltip:{visible:!1},transitions:!0,valueAxis:{},plotArea:{},title:{},xAxis:{},yAxis:{},panes:[{}],pannable:!1,zoomable:!1});var va=la,ya=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._slotAnchor=function(t,e){var r=this.plotArea.categoryAxis.options.vertical,o=r?{horizontal:"left",vertical:"center"}:{horizontal:"center",vertical:"bottom"};return{point:r?new Vt(this.plotArea.box.x2,e.center().y):new Vt(e.center().x,-2),align:o}},e.prototype._defaultAnchor=function(t,e){return this._slotAnchor({},e)},e}(Yn),ga=[eo,"bullet"];function ma(t){for(var e=[],r=0;r<t.length;r++){var o=t[r];e[r]=o.style.display,o.style.display="none"}return e}function _a(t,e){for(var r=0;r<t.length;r++)t[r].style.display=e[r]}function ba(t){return P(t)?[t]:t}var xa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._setElementClass=function(t){x(t,"k-sparkline")},e.prototype._initElement=function(e){t.prototype._initElement.call(this,e),this._initialWidth=Math.floor(pt(e).width)},e.prototype._resize=function(){var e=this.element,r=ma(e.childNodes);this._initialWidth=Math.floor(pt(e).width),_a(e.childNodes,r),t.prototype._resize.call(this)},e.prototype._modelOptions=function(){var t=this.options,e=this._surfaceWrap(),r=ma(e.childNodes),o=document.createElement("span");o.innerHTML=" ",e.appendChild(o);var i=j({width:this._autoWidth,height:pt(e).height,transitions:t.transitions},t.chartArea,{inline:!0,align:!1});return pt(e,{width:i.width,height:i.height}),e.removeChild(o),_a(e.childNodes,r),this.surface&&this.surface.resize(),i},e.prototype._surfaceWrap=function(){if(!this.stage){var t=this.stage=document.createElement("span");this.element.appendChild(t)}return this.stage},e.prototype._createPlotArea=function(e){var r=t.prototype._createPlotArea.call(this,e);return this._autoWidth=this._initialWidth||this._calculateWidth(r),r},e.prototype._calculateWidth=function(t){for(var e=this.options,r=z(e.chartArea.margin),o=t.charts,i=this._surfaceWrap(),n=0,s=0;s<o.length;s++){var a=o[s],l=(a.options.series||[])[0];if(l){if(l.type===eo)return 150;if("bullet"===l.type)return 150;if(l.type===io)return pt(i).height;var p=a.categoryAxis;if(p){var c=p.categoriesCount()*(!a.options.isStacked&&Z(l.type,[ro,"verticalBullet"])?a.seriesOptions.length:1);n=Math.max(n,c)}}}var h=n*e.pointWidth;return h>0&&(h+=r.left+r.right),h},e.prototype._createSharedTooltip=function(t){return new ya(this._plotArea,t)},e.normalizeOptions=function(t){var e=ba(t);return(e=b(e)?{seriesDefaults:{data:e}}:j({},e)).series||(e.series=[{data:ba(e.data)}]),j(e,{seriesDefaults:{type:e.type}}),(Z(e.series[0].type,ga)||Z(e.seriesDefaults.type,ga))&&(e=j({},{categoryAxis:{crosshair:{visible:!1}}},e)),e},e}(va);wt(xa,{chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5,panes:[{clip:!1}]});var wa=xa,Ca=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this._initialOpacity=parseFloat(D(this.element,"opacity").opacity)},e.prototype.step=function(t){D(this.element,{opacity:String(Q(this._initialOpacity,0,t))})},e.prototype.abort=function(){t.prototype.abort.call(this),D(this.element,{display:"none",opacity:String(this._initialOpacity)})},e.prototype.cancel=function(){t.prototype.abort.call(this),D(this.element,{opacity:String(this._initialOpacity)})},e}(O.drawing.Animation);function Oa(t,e){var r=document.createElement("div");return r.className=t,e&&(r.style.cssText=e),r}var ka=function(t){function e(e,r,o){t.call(this),this.options=j({},this.options,o),this.container=e,this.chartService=r;var i=D(e,["paddingLeft","paddingTop"]);this.chartPadding={top:i.paddingTop,left:i.paddingLeft},this.createElements(),e.appendChild(this.element)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createElements=function(){var t=this.element=Oa("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),e=this.tooltip=Oa("k-tooltip k-chart-tooltip"),r=this.scroll=Oa("k-scroll");e.innerHTML=" ",t.appendChild(e),t.appendChild(r)},e.prototype.show=function(t,e,r){var o=this.element,i=this.options,n=this.scroll,s=this.tooltip,a=Ne(Xe(t)+Xe(e-t)/2),l=.4*r.width(),p=r.center().x-l,c=(r.center().x-p)/(i.max-i.min),h=a-i.min,u=this.chartService.intl.format(i.format,t,e),f=U(i);this.clearHideTimeout(),this._visible||(D(o,{visibility:"hidden",display:"block"}),this._visible=!0),f&&(u=f({from:t,to:e})),s.innerHTML=u,D(s,{left:r.center().x-s.offsetWidth/2,top:r.y1});var d=D(s,["marginTop","borderTopWidth","height"]);D(n,{width:l,left:p+h*c,top:r.y1+d.marginTop+d.borderTopWidth+d.height/2}),D(o,{visibility:"visible"})},e.prototype.clearHideTimeout=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideAnimation&&this._hideAnimation.cancel()},e.prototype.hide=function(){var t=this;this.clearHideTimeout(),this._hideTimeout=setTimeout((function(){t._visible=!1,t._hideAnimation=new Ca(t.element),t._hideAnimation.setup(),t._hideAnimation.play()}),this.options.hideDelay)},e.prototype.destroy=function(){this.clearHideTimeout(),this.container&&this.container.removeChild(this.element),delete this.container,delete this.chartService,delete this.element,delete this.tooltip,delete this.scroll},e}(O.Class);wt(ka,{format:"{0:d} - {1:d}",hideDelay:500});var Sa=ka,Pa="_navigator",Aa=Pa;function Ma(){}var Ta=function(t){function e(e){var r;t.call(this),this.chart=e;var o=this.options=j({},this.options,e.options.navigator),i=o.select;i&&(i.from=this.parseDate(i.from),i.to=this.parseDate(i.to)),st(o.hint.visible)||(o.hint.visible=o.visible),this.chartObserver=new J(this,((r={}).drag="_drag",r.dragEnd="_dragEnd",r.zoom="_zoom",r.zoomEnd="_zoomEnd",r)),e.addObserver(this.chartObserver)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parseDate=function(t){return $e(this.chart.chartService.intl,t)},e.prototype.clean=function(){this.selection&&(this.selection.destroy(),this.selection=null),this.hint&&(this.hint.destroy(),this.hint=null)},e.prototype.destroy=function(){this.chart&&(this.chart.removeObserver(this.chartObserver),delete this.chart),this.clean()},e.prototype.redraw=function(){this._redrawSelf(),this.initSelection()},e.prototype.initSelection=function(){var t,e=this.chart,r=this.options,o=this.mainAxis(),i=o.roundedRange(),n=i.min,s=i.max,a=r.select,l=a.from,p=a.to,c=a.mousewheel,h=(t=o,Ma.prototype=t,new Ma);0!==o.categoriesCount()&&(this.clean(),h.box=o.box,this.selection=new Wn(e,h,{min:n,max:s,from:l||n,to:p||s,mousewheel:_t(c,{zoom:"left"}),visible:r.visible},new J(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),r.hint.visible&&(this.hint=new Sa(e.element,e.chartService,{min:n,max:s,template:U(r.hint),format:r.hint.format})))},e.prototype.setRange=function(){var t=this.chart._createPlotArea(!0).namedCategoryAxes[Aa].roundedRange(),e=t.min,r=t.max,o=this.options.select||{},i=o.from||e;i<e&&(i=e);var n=o.to||r;n>r&&(n=r),this.options.select=j({},o,{from:i,to:n}),this.filterAxes()},e.prototype._redrawSelf=function(t){var e=this.chart._plotArea;e&&e.redraw(ft(e.panes),t)},e.prototype.redrawSlaves=function(){var t=this.chart,e=t._plotArea,r=e.panes.slice(0,-1);e.srcSeries=t.options.series,e.options.categoryAxis=t.options.categoryAxis,e.clearSeriesPointsCache(),e.redraw(r)},e.prototype._drag=function(t){var e,r=this.chart,o=this.selection,i=r._eventCoordinates(t.originalEvent),n=this.mainAxis(),s=n.roundedRange(),a=n.pane.box.containsPoint(i),l=r._plotArea.categoryAxis,p=t.axisRanges[l.options.name],c=this.options.select;if(p&&!a&&o){e=c.from&&c.to?Xe(c.to)-Xe(c.from):Xe(o.options.to)-Xe(o.options.from);var h=Ne(dt(Xe(p.min),s.min,Xe(s.max)-e)),u=Ne(dt(Xe(h)+e,Xe(s.min)+e,s.max));this.options.select={from:h,to:u},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),o.set(h,u),this.showHint(h,u)}},e.prototype._dragEnd=function(){this.filterAxes(),this.filter(),this.redrawSlaves(),this.hint&&this.hint.hide()},e.prototype.readSelection=function(){var t=this.selection.options,e=t.from,r=t.to,o=this.options.select;o.from=e,o.to=r},e.prototype.filterAxes=function(){var t=this.options.select;void 0===t&&(t={});for(var e=this.chart.options.categoryAxis,r=t.from,o=t.to,i=0;i<e.length;i++){var n=e[i];n.pane!==Pa&&(n.min=r,n.max=o)}},e.prototype.filter=function(){var t=this.chart,e=this.options.select;if(t.requiresHandlers(["navigatorFilter"])){var r=this.mainAxis(),o={from:e.from,to:e.to};if("category"!==r.options.type){var i=new hr(j({baseUnit:"fit"},t.options.categoryAxis[0],{categories:[e.from,e.to]}),t.chartService).options;o.from=Ue(i.min,-i.baseUnitStep,i.baseUnit),o.to=Ue(i.max,i.baseUnitStep,i.baseUnit)}this.chart.trigger("navigatorFilter",o)}},e.prototype._zoom=function(t){var e=this.chart._plotArea.categoryAxis,r=this.selection,o=this.options,i=o.select,n=o.liveDrag,s=this.mainAxis(),a=t.delta;if(r){var l=s.categoryIndex(r.options.from),p=s.categoryIndex(r.options.to),c=this.chart._eventCoordinates(t.originalEvent);t.originalEvent.preventDefault(),Math.abs(a)>1&&(a*=3),p-l>1?(r.zoom(a,c),this.readSelection()):(e.options.min=i.from,i.from=e.scaleRange(-t.delta*this.chart._mousewheelZoomRate(),c).min),n&&(this.filterAxes(),this.redrawSlaves()),r.set(i.from,i.to),this.showHint(this.options.select.from,this.options.select.to)}},e.prototype._zoomEnd=function(t){this._dragEnd(t)},e.prototype.showHint=function(t,e){var r=this.chart._plotArea;this.hint&&this.hint.show(t,e,r.backgroundBox())},e.prototype._selectStart=function(t){return this.chart._selectStart(t)},e.prototype._select=function(t){return this.showHint(t.from,t.to),this.chart._select(t)},e.prototype._selectEnd=function(t){return this.hint&&this.hint.hide(),this.readSelection(),this.filterAxes(),this.filter(),this.redrawSlaves(),this.chart._selectEnd(t)},e.prototype.mainAxis=function(){var t=this.chart._plotArea;if(t)return t.namedCategoryAxes[Aa]},e.prototype.select=function(t,e){var r=this.options.select;return t&&e&&(r.from=this.parseDate(t),r.to=this.parseDate(e),this.filterAxes(),this.filter(),this.redrawSlaves(),this.selection.set(t,e)),{from:r.from,to:r.to}},e.setup=function(t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),!t.__navi){t.__navi=!0;var o=j({},r.navigator,t.navigator),i=t.panes=[].concat(t.panes),n=j({},o.pane,{name:Pa});o.visible||(n.visible=!1,n.height=.1),i.push(n),e.attachAxes(t,o),e.attachSeries(t,o,r)}},e.attachAxes=function(t,e){var r=e.series||[],o=t.categoryAxis=[].concat(t.categoryAxis),i=t.valueAxis=[].concat(t.valueAxis),n=0===Di(r,so).length,s=j({type:"date",pane:Pa,roundToBaseUnit:!n,justified:n,_collapse:!1,majorTicks:{visible:!0},tooltip:{visible:!1},labels:{step:1},autoBind:e.autoBindElements,autoBaseUnitSteps:{minutes:[1],hours:[1,2],days:[1,2],weeks:[],months:[1],years:[1]}}),a=e.categoryAxis;o.push(j({},s,{maxDateGroups:200},a,{name:Aa,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),j({},s,a,{name:Aa+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),j({},s,a,{name:Aa+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),i.push(j({name:Aa,pane:Pa,majorGridLines:{visible:!1},visible:!1},e.valueAxis))},e.attachSeries=function(t,e,r){for(var o=t.series=t.series||[],i=[].concat(e.series||[]),n=r.seriesColors,s=e.seriesDefaults,a=0;a<i.length;a++)o.push(j({color:n[a%n.length],categoryField:e.dateField,visibleInLegend:!1,tooltip:{visible:!1}},s,i[a],{axis:Aa,categoryAxis:Aa,autoBind:e.autoBindElements}))},e}(O.Class),Ea=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.applyDefaults=function(e,r){var o=pt(this.element).width||600,i=r,n={seriesDefaults:{categoryField:e.dateField},axisDefaults:{categoryAxis:{name:"default",majorGridLines:{visible:!1},labels:{step:2},majorTicks:{visible:!1},maxDateGroups:Math.floor(o/28)}}};i&&(i=j({},i,n)),Ta.setup(e,i),t.prototype.applyDefaults.call(this,e,i)},e.prototype._setElementClass=function(t){x(t,"k-chart k-stockchart")},e.prototype.setOptions=function(e){this.destroyNavigator(),t.prototype.setOptions.call(this,e)},e.prototype.noTransitionsRedraw=function(){var t=this.options.transitions;this.options.transitions=!1,this._fullRedraw(),this.options.transitions=t},e.prototype._resize=function(){this.noTransitionsRedraw()},e.prototype._redraw=function(){var t=this.navigator;!this._dirty()&&t&&t.options.partialRedraw?t.redrawSlaves():this._fullRedraw()},e.prototype._dirty=function(){var t=this.options,e=K([].concat(t.series,t.navigator.series),(function(t){return t&&t.visible})).length,r=this._seriesCount!==e;return this._seriesCount=e,r},e.prototype._fullRedraw=function(){var e=this.navigator;e||(e=this.navigator=new Ta(this),this.trigger("navigatorCreated",{navigator:e})),e.clean(),e.setRange(),t.prototype._redraw.call(this),e.initSelection()},e.prototype._trackSharedTooltip=function(e){var r=this._plotArea.paneByPoint(e);r&&r.options.name===Pa?this._unsetActivePoint():t.prototype._trackSharedTooltip.call(this,e)},e.prototype.bindCategories=function(){t.prototype.bindCategories.call(this),this.copyNavigatorCategories()},e.prototype.copyNavigatorCategories=function(){for(var t,e=[].concat(this.options.categoryAxis),r=0;r<e.length;r++){var o=e[r];o.name===Aa?t=o.categories:t&&o.pane===Pa&&(o.categories=t)}},e.prototype.destroyNavigator=function(){this.navigator&&(this.navigator.destroy(),this.navigator=null)},e.prototype.destroy=function(){this.destroyNavigator(),t.prototype.destroy.call(this)},e.prototype._stopChartHandlers=function(e){var r=this._eventCoordinates(e),o=this._plotArea.paneByPoint(r);return t.prototype._stopChartHandlers.call(this,e)||o&&o.options.name===Pa},e.prototype._toggleDragZoomEvents=function(){this._dragZoomEnabled||(this.element.style.touchAction="none",this._dragZoomEnabled=!0)},e}(va);wt(Ea,{dateField:"date",axisDefaults:{categoryAxis:{type:"date",baseUnit:"fit",justified:!0},valueAxis:{narrowRange:!0,labels:{format:"C"}}},navigator:{select:{},seriesDefaults:{markers:{visible:!1},tooltip:{visible:!0},line:{width:2}},hint:{},visible:!0},tooltip:{visible:!0},legend:{visible:!1}});var ja=Ea,Ra=Math.PI/180;function Ia(t,e){var r=t.getOrigin(),o=t.getSize(),i=z(e);return t.setOrigin([r.x-i.left,r.y-i.top]),t.setSize([o.width+(i.left+i.right),o.height+(i.top+i.bottom)]),t}var Ba=O.drawing.Group,La=O.drawing.Path,Da=O.drawing.Text;function za(t,e){var r=t.box,o=t.children[0].box,i=e.border||{},n=e.background||"",s=La.fromRect(new O.geometry.Rect([r.x1,r.y1],[r.width(),r.height()]),{stroke:{}}),a=new Da(t.text,new O.geometry.Point(o.x1,o.y1),{font:e.font,fill:{color:e.color}}),l=Ia(a.bbox().clone(),e.padding),p=La.fromRect(l,{stroke:{color:i.width?i.color:"",width:i.width,opacity:i.opacity,dashType:i.dashType,lineJoin:"round",lineCap:"round"},fill:{color:n}}),c=new Ba;return c.append(s),c.append(p),c.append(a),c}function Va(t,e,r){var o=st(t.from)?t.from:f,i=st(t.to)?t.to:u;return t.from=Math.max(Math.min(i,o),e),t.to=Math.min(Math.max(i,o),r),t}function Na(t,e){var r=z(e);return r.left=-r.left,r.top=-r.top,r.right=-r.right,r.bottom=-r.bottom,Ia(t,r)}var Ha=O.drawing.Path,Ua=O.drawing.Surface,Fa=function(t){function e(e,r,o,i){void 0===i&&(i={}),t.call(this),this.element=e,this.theme=o,this.contextService=new Ae(this,i),this._originalOptions=j({},this.options,r),this.options=j({},this._originalOptions),this._initTheme(o),this.redraw()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.surface&&(this.surface.destroy(),this.surface=null),delete this.element,delete this.surfaceElement},e.prototype.value=function(t){var e=this.pointers[0];if(0===arguments.length)return e.value();e.value(t),this._setValueOptions(t)},e.prototype._draw=function(){var t=this.surface;t.clear(),t.draw(this._visuals)},e.prototype.exportVisual=function(){return this._visuals},e.prototype.allValues=function(t){var e=this.pointers,r=[];if(0===arguments.length){for(var o=0;o<e.length;o++)r.push(e[o].value());return r}if(b(t))for(var i=0;i<t.length;i++)P(t[i])&&e[i].value(t[i]);this._setValueOptions(t)},e.prototype._setValueOptions=function(t){for(var e=[].concat(this.options.pointer),r=[].concat(t),o=0;o<r.length;o++)e[o].value=r[o]},e.prototype.resize=function(){this.noTransitionsRedraw()},e.prototype.noTransitionsRedraw=function(){var t=this.options.transitions;this._toggleTransitions(!1),this.redraw(),this._toggleTransitions(t)},e.prototype.redraw=function(){var t=this._surfaceSize(),e=new O.geometry.Rect([0,0],[t.width,t.height]);this._initSurface(),this.gaugeArea=this._createGaugeArea(),this._createModel();var r=Na(e.bbox(),this._gaugeAreaMargin);this.reflow(r)},e.prototype.setOptions=function(t,e){this._originalOptions=j(this._originalOptions,t),this.options=j({},this._originalOptions),this._initTheme(e),this.redraw()},e.prototype.setDirection=function(t){this.contextService.rtl=Boolean(t),this.surface&&"svg"===this.surface.type&&(this.surface.destroy(),this.surface=null)},e.prototype.setIntlService=function(t){this.contextService.intl=t},e.prototype._initTheme=function(t){var e=t||this.theme||{};this.theme=e,this.options=j({},e,this.options);var r=this.options,o=r.pointer;if(b(o)){for(var i=[],n=0;n<o.length;n++)i.push(j({},e.pointer,o[n]));r.pointer=i}},e.prototype._createGaugeArea=function(){var t=this.options.gaugeArea,e=this.surface.size(),r=t.border||{},o=new O.geometry.Rect([0,0],[e.width,e.height]);return this._gaugeAreaMargin=t.margin||5,r.width>0&&(o=Na(o,r.width)),Ha.fromRect(o,{stroke:{color:r.width?r.color:"",width:r.width,dashType:r.dashType,lineJoin:"round",lineCap:"round"},fill:{color:t.background}})},e.prototype._initSurface=function(){var t=this.options,e=this.surface,r=this._surfaceElement(),o=this._surfaceSize();pt(r,o),e&&e.options.type===t.renderAs?(this.surface.clear(),this.surface.resize()):(e&&e.destroy(),this.surface=Ua.create(r,{type:t.renderAs}))},e.prototype._surfaceSize=function(){var t=this.options,e=this._getSize();return t.gaugeArea&&j(e,t.gaugeArea),e},e.prototype._surfaceElement=function(){return this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.element.appendChild(this.surfaceElement)),this.surfaceElement},e.prototype.getSize=function(){return this._getSize()},e.prototype._getSize=function(){var t=this.element,e=this._defaultSize(),r=t.offsetWidth,o=t.offsetHeight;return r||(r=e.width),o||(o=e.height),{width:r,height:o}},e.prototype._defaultSize=function(){return{width:200,height:200}},e.prototype._toggleTransitions=function(t){this.options.transitions=t;for(var e=0;e<this.pointers.length;e++)this.pointers[e].options.animation.transitions=t},e}(O.Class);wt(Fa,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}});var Ga=Fa,Wa=O.drawing.Path,Ka=O.drawing.Group,Xa=O.geometry.Point;function Ya(t,e){var r,o,i=t.position,n=t.tickX,s=t.tickY;return t.vertical?(r=new Xa(n,i),o=new Xa(n+e.size,i)):(r=new Xa(i,s),o=new Xa(i,s+e.size)),new Wa({stroke:{color:e.color,width:e.width}}).moveTo(r).lineTo(o)}function qa(t,e,r,o){var i=e.length;if(o.visible)for(var n=r.mirror,s=r.lineBox,a=o.skip;a<i;a+=o.step)a%o.skipUnit!=0&&(r.tickX=n?s.x2:s.x2-o.size,r.tickY=n?s.y1-o.size:s.y1,r.position=e[a],t.append(Ya(r,o)))}var Za=function(t){function e(e,r){var o=e||{};!st(o.reverse)&&!1===o.vertical&&(r||{}).rtl&&(o=Object.assign({},o,{reverse:!0})),t.call(this,0,1,o,r),this.options.minorUnit=this.options.minorUnit||this.options.majorUnit/10}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=j({},this.options,t);return(e=j({},e,{labels:{mirror:e.mirror}})).majorUnit=e.majorUnit||zt(e.min,e.max),e},e.prototype.initFields=function(){},e.prototype.render=function(){var t=this.elements=new Ka,e=this.renderLabels(),r=this.renderLine(),o=this.renderTicks(),i=this.renderRanges();return t.append(r,e,o,i),t},e.prototype.renderRanges=function(){for(var t=this.options,e=t.min,r=t.max,o=t.vertical,i=t.labels.mirror,n=t.ranges||[],s=new Ka,a=n.length,l=t.rangeSize||t.minorTicks.size/2,p=0;p<a;p++){var c=Va(n[p],e,r),h=this.getSlot(c.from,c.to),u=o?this.lineBox():h,f=o?h:this.lineBox();o?u.x1-=l*(i?-1:1):f.y2+=l*(i?-1:1),s.append(Wa.fromRect(new O.geometry.Rect([u.x1,f.y1],[u.x2-u.x1,f.y2-f.y1]),{fill:{color:c.color,opacity:c.opacity},stroke:{}}))}return s},e.prototype.renderLabels=function(){for(var t=this.labels,e=this.options,r=new Ka,o=0;o<t.length;o++)r.append(za(t[o],e.labels));return r},e.prototype.renderLine=function(){var t=this.options.line,e=this.lineBox(),r=new Ka;if(t.width>0&&t.visible){var o=new Wa({stroke:{color:t.color,dashType:t.dashType,width:t.width}});o.moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),r.append(o)}return r},e.prototype.renderTicks=function(){var t=new Ka,e=this.options,r=e.majorTicks.visible?e.majorUnit:0,o={vertical:e.vertical,mirror:e.labels.mirror,lineBox:this.lineBox()};return qa(t,this.getMajorTickPositions(),o,e.majorTicks),qa(t,this.getMinorTickPositions(),o,j({},{skipUnit:r/e.minorUnit},e.minorTicks)),t},e}(mr);wt(Za,{min:0,max:50,majorTicks:{size:15,align:"inside",color:n,width:.5,visible:!0},minorTicks:{size:10,align:"inside",color:n,width:.5,visible:!0},line:{width:.5},labels:{position:"inside",padding:2},mirror:!1,_alignLines:!1});var Qa=Za,$a=function(t){function e(e,r){t.call(this);var o=e.options,i=o.min,n=o.max,s=this.options=j({},this.options,r);s.fill=s.color,this.scale=e,st(s.value)?s.value=dt(s.value,i,n):s.value=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.value=function(t){var e=this.options,r=e.value;if(0===arguments.length)return r;var o=this.scale.options,i=o.min,n=o.max;e._oldValue=st(e._oldValue)?e.value:i,e.value=dt(t,i,n),this.elements&&this.repaint()},e}(O.Class);wt($a,{color:n});var Ja=$a,tl=function(t){function e(e,r){t.call(this,e,r),this.options=j({track:{visible:st(r.track)}},this.options)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(){var t,e,r,o=this.options,i=this.scale,n=i.options,s=n.mirror,a=n.vertical,l=i.lineBox(),p=o.track.size||o.size,c=o.size/2,h=z(o.margin),u=a?h[s?"left":"right"]:h[s?"bottom":"top"];u=s?-u:u,a?(r=new Ht(l.x1+u,l.y1,l.x1+u,l.y2),s?r.x1-=p:r.x2+=p,"barPointer"!==o.shape&&(t=e=new Ht(l.x2+u,l.y1-c,l.x2+u,l.y2+c))):(r=new Ht(l.x1,l.y1-u,l.x2,l.y1-u),s?r.y2+=p:r.y1-=p,"barPointer"!==o.shape&&(t=e=new Ht(l.x1-c,l.y1-u,l.x2+c,l.y1-u))),this.trackBox=r,this.pointerRangeBox=e,this.box=t||r.clone().pad(o.border.width)},e.prototype.getElementOptions=function(){var t=this.options;return{fill:{color:t.color,opacity:t.opacity},stroke:st(t.border)?{color:t.border.width?t.border.color||t.color:"",width:t.border.width,dashType:t.border.dashType,opacity:t.opacity}:null}},e.prototype._margin=function(){var t=this.scale,e=this.options,r=t.options,o=r.mirror,i=r.vertical,n=z(e.margin);return i?n[o?"left":"right"]:n[o?"bottom":"top"]},e}(Ja);wt(tl,{shape:"barPointer",track:{border:{width:1}},color:n,border:{width:1},opacity:1,margin:z(3),animation:{type:"barPointer"},visible:!0});var el=tl,rl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.options,e=t.margin,r=t.from,o=t.to,i=t.vertical,n=i?"x1":"y1";t.mirror===i?(r[n]-=e,o[n]-=e):(r[n]+=e,o[n]+=e);var s=this.fromScale=new O.geometry.Point(r.x1,r.y1),a=this.toScale=new O.geometry.Point(o.x1,o.y1);0!==t.duration&&(t.duration=Math.max(s.distanceTo(a)/t.duration*1e3,1))},e.prototype.step=function(t){var e=Q(this.fromScale.x,this.toScale.x,t),r=Q(this.fromScale.y,this.toScale.y,t);this.element.transform(O.geometry.transform().translate(e,r))},e}(O.drawing.Animation);wt(rl,{easing:"linear",duration:250}),O.drawing.AnimationFactory.current.register("arrowPointer",rl);var ol=rl,il=O.geometry.Point,nl=O.drawing.Path,sl=function(t){function e(e,r){t.call(this,e,r),st(this.options.size)||(this.options.size=.6*this.scale.options.majorTicks.size)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointerShape=function(){var t=this.scale,e=this.options.size,r=e/2,o=t.options.mirror?-1:1;return t.options.vertical?[new il(0,0-r),new il(0-o*e,0),new il(0,0+r)]:[new il(0-r,0),new il(0,0+o*e),new il(0+r,0)]},e.prototype.repaint=function(){var t=this.scale,e=this.options,r=new ol(this.elements,j(e.animation,{vertical:t.options.vertical,mirror:t.options.mirror,margin:this._margin(e.margin),from:t.getSlot(e._oldValue),to:t.getSlot(e.value)}));!1===e.animation.transitions&&(r.options.duration=0),r.setup(),r.play()},e.prototype.render=function(){var t=this.scale,e=this.options,r=this.getElementOptions(),o=this.pointerShape(e.value);e.animation.type="arrowPointer";var i=new nl({stroke:r.stroke,fill:r.fill}).moveTo(o[0]).lineTo(o[1]).lineTo(o[2]).close(),n=t.getSlot(e.value);return i.transform(O.geometry.transform().translate(n.x1,n.y1)),this.elements=i,i},e}(el),al=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.options,e=this.axis=t.vertical?_:m,r=this.to=t.newPoints[0][e],o=this.from=t.oldPoints[0][e];0!==t.duration&&(t.duration=Math.max(Math.abs(r-o)/t.speed*1e3,1)),this._set(o)},e.prototype.step=function(t){var e=Q(this.from,this.to,t);this._set(e)},e.prototype._set=function(t){var e="set"+this.axis.toUpperCase(),r=this.options.newPoints;r[0][e](t),r[1][e](t)},e}(O.drawing.Animation);wt(al,{easing:"linear",speed:250}),O.drawing.AnimationFactory.current.register("barPointer",al);var ll=al,pl=O.drawing.Group,cl=O.drawing.Path,hl=function(t){function e(e,r){t.call(this,e,r),st(this.options.size)||(this.options.size=.3*this.scale.options.majorTicks.size)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointerShape=function(t){var e=this.scale,r=this.options,o=e.options,i=o.mirror,n=o.vertical,s=i===n?-1:1,a=r.size*s,l=e.getSlot(e.options.min),p=e.getSlot(t),c=n?_:m,h=n?m:_,u=this._margin()*s,f=new O.geometry.Point;f[c]=l[c+"1"],f[h]=l[h+"1"];var d=new O.geometry.Point;d[c]=p[c+"1"],d[h]=p[h+"1"],n?(f.translate(u,0),d.translate(u,0)):(f.translate(0,u),d.translate(0,u));var v=d.clone(),y=f.clone();return n?(v.translate(a,0),y.translate(a,0)):(v.translate(0,a),y.translate(0,a)),[f,d,v,y]},e.prototype.repaint=function(){var t=this.scale,e=this.options,r=this.pointerShape(e.value),o=this.pointerPath,i=this.pointerShape(e._oldValue);o.moveTo(r[0]).lineTo(r[1]).lineTo(r[2]).lineTo(r[3]).close();var n=new ll(o,j(e.animation,{reverse:t.options.reverse,vertical:t.options.vertical,oldPoints:[i[1],i[2]],newPoints:[r[1],r[2]]}));!1===e.animation.transitions&&(n.options.duration=0),n.setup(),n.play()},e.prototype.render=function(){var t=new pl,e=this.getElementOptions();this.options.track.visible&&t.append(this.renderTrack());var r=this.pointerPath=new cl({stroke:e.stroke,fill:e.fill});return t.append(r),this.elements=t,t},e.prototype.renderTrack=function(){var t=this.options.track,e=t.border||{},r=this.trackBox.clone().pad(e.width||0);return new cl.fromRect(r.toRect(),{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.width?e.color||t.color:"",width:e.width,dashType:e.dashType}})},e}(el),ul=O.drawing.Group,fl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.pointers,r=t.origin.x,o=t.origin.y,i=new Ht(r,o,r+t.width(),o+t.height());this.scale.reflow(i),this._shrinkScaleWidth(i);for(var n=0;n<e.length;n++)e[n].reflow();this.bbox=this._getBox(i),this._alignElements(),this._shrinkElements(),this._buildVisual(),this._draw()},e.prototype._buildVisual=function(){var t=new ul,e=this.scale.render(),r=this.pointers;t.append(this.gaugeArea),t.append(e);for(var o=0;o<r.length;o++){var i=r[o];t.append(i.render()),i.value(i.options.value)}this._visuals=t},e.prototype._createModel=function(){var t=this.options,e=this.scale=new Qa(t.scale,this.contextService);this.pointers=[];var r=t.pointer;r=b(r)?r:[r];for(var o=0;o<r.length;o++){var i=j({},r[o],{animation:{transitions:t.transitions}}),n="arrow"===i.shape?sl:hl;this.pointers.push(new n(e,i))}},e.prototype._defaultSize=function(){var t=this.options.scale.vertical;return{width:t?60:200,height:t?200:60}},e.prototype._getBox=function(t){for(var e,r=this.scale,o=this.pointers,i=t.center(),n=o[0].box.clone().wrap(r.box),s=0;s<o.length;s++)n.wrap(o[s].box.clone());return r.options.vertical?(e=n.width()/2,n=new Ht(i.x-e,t.y1,i.x+e,t.y2)):(e=n.height()/2,n=new Ht(t.x1,i.y-e,t.x2,i.y+e)),n},e.prototype._alignElements=function(){for(var t,e=this.scale,r=this.pointers,o=e.box,i=r[0].box.clone().wrap(e.box),n=this.bbox,s=0;s<r.length;s++)i.wrap(r[s].box.clone());e.options.vertical?(t=n.center().x-i.center().x,e.reflow(new Ht(o.x1+t,n.y1,o.x2+t,n.y2))):(t=n.center().y-i.center().y,e.reflow(new Ht(o.x1,o.y1+t,o.x2,o.y2+t)));for(var a=0;a<r.length;a++)r[a].reflow(this.bbox)},e.prototype._shrinkScaleWidth=function(t){var e=this.scale;if(!e.options.vertical){var r=e.contentBox().width()-t.width();r>0&&(e.box.shrink(r,0),e.box.alignTo(t,"center"),e.reflow(e.box))}},e.prototype._shrinkElements=function(){for(var t=this.scale,e=this.pointers,r=t.box.clone(),o=t.options.vertical?"y":"x",i=e[0].box,n=0;n<e.length;n++)i.wrap(e[n].box.clone());r[o+1]+=Math.max(r[o+1]-i[o+1],0),r[o+2]-=Math.max(i[o+2]-r[o+2],0),t.reflow(r);for(var s=0;s<e.length;s++)e[s].reflow(this.bbox)},e}(Ga);wt(fl,{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}});var dl=fl,vl=O.drawing.Arc,yl=O.drawing.Path,gl=O.drawing.Group;function ml(t,e,r,o){var i=new gl,n=t.center,s=t.getRadiusX();if(o.visible)for(var a=0;a<e.length;a++){var l=t.pointAt(e[a]),p=new O.geometry.Point(n.x+s-o.size,n.y).rotate(e[a],n);i.append(new yl({stroke:{color:o.color,width:o.width}}).moveTo(l).lineTo(p))}return i}function _l(t,e,r,o){return{from:t,to:e,color:r,opacity:o}}var bl=function(t){function e(e,r){t.call(this,0,1,e,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=j({},this.options,t);return e.majorUnit=e.majorUnit||zt(e.min,e.max),e.minorUnit=e.minorUnit||e.majorUnit/10,e},e.prototype.initFields=function(){},e.prototype.render=function(t,e){var r=this.renderArc(t,e);this.bbox=r.bbox(),this.labelElements=this.renderLabels(),this.ticks=this.renderTicks(),this.ranges=this.renderRanges()},e.prototype.reflow=function(t){var e=t.center(),r=Math.min(t.height(),t.width())/2;if(!st(this.bbox))return this.render(e,r);this.bbox=this.arc.bbox(),this.radius(this.arc.getRadiusX()),this.repositionRanges(),this.renderLabels()},e.prototype.slotAngle=function(t){var e=this.options,r=e.min,o=e.max,i=e.reverse,n=e.startAngle,s=e.endAngle,a=s-n;return(i?s-(t-r)/(o-r)*a:(t-r)/(o-r)*a+n)+180},e.prototype.hasRanges=function(){var t=this.options.ranges;return t&&t.length},e.prototype.ticksSize=function(){var t=this.options,e=t.majorTicks,r=t.minorTicks,o=0;return e.visible&&(o=e.size),r.visible&&(o=Math.max(r.size,o)),o},e.prototype.labelsCount=function(){var e=t.prototype.labelsCount.call(this),r=this.options;return r.endAngle-r.startAngle>=360&&r.max%r.majorUnit==0&&(e-=1),e},e.prototype.renderLabels=function(){var t=this.options,e=this.arc.clone(),r=e.getRadiusX(),o=this.tickAngles(e,t.majorUnit),i=t.rangeSize=t.rangeSize||.1*r,n=new gl,s=.05*r;st(t.rangeDistance)?s=t.rangeDistance:t.rangeDistance=s;var a=t.labels,l="inside"===a.position,p=st(this.labelElements);l&&(r-=this.ticksSize(),this.hasRanges()&&!p&&(r-=i+s),e.setRadiusX(r).setRadiusY(r));for(var c=this.labels,h=c.length,u=z(a.padding),f=(u.left+u.right)/2,d=(u.top+u.bottom)/2,v=0;v<h;v++){var y=c[v],g=y.box.width()/2,m=y.box.height()/2,_=o[v],b=(_-180)*Ra,x=e.pointAt(_),w=x.x+Math.cos(b)*(g+f)*(l?1:-1),C=x.y+Math.sin(b)*(m+d)*(l?1:-1);y.reflow(new Ht(w-g,C-m,w+g,C+m));var k=new O.geometry.Point(y.box.x1,y.box.y1),S=void 0;if(p){var P=(S=this.labelElements.children[v]).bbox().origin,A=S.transform()||O.geometry.transform();A.translate(k.x-P.x,k.y-P.y),S.transform(A)}else S=za(y,t.labels),n.append(S);this.bbox=O.geometry.Rect.union(this.bbox,S.bbox())}return n},e.prototype.repositionRanges=function(){var t=this.ranges.children;if(t.length>0){var e=this.options,r=e.rangeDistance,o=e.rangeSize,i=this.getRangeRadius();"inside"===this.options.labels.position&&(i+=o+r);for(var n=i+o/2,s=0;s<t.length;s++)t[s]._geometry.setRadiusX(n).setRadiusY(n);this.bbox=O.geometry.Rect.union(this.bbox,this.ranges.bbox())}},e.prototype.renderRanges=function(){var t=this.rangeSegments(),e=t.length,r=new gl;if(e){var o=this.options,i=o.rangeSize,n=o.reverse,s=o.rangeDistance,a=this.getRangeRadius();this.radius(this.radius()-i-s);for(var l=0;l<e;l++){var p=t[l],c=this.slotAngle(p[n?"to":"from"]),h=this.slotAngle(p[n?"from":"to"]);h-c!=0&&r.append(this.createRange(c,h,a,p))}}return r},e.prototype.createRange=function(t,e,r,o){var i=this.options.rangeSize,n=new O.geometry.Arc(this.arc.center,{radiusX:r+i/2,radiusY:r+i/2,startAngle:t,endAngle:e});return new vl(n,{stroke:{width:i,color:o.color,opacity:o.opacity,lineCap:o.lineCap}})},e.prototype.rangeSegments=function(){var t=this.options,e=t.ranges||[],r=e.length,o=[];if(r){var i=t.min,n=t.max,s=t.rangePlaceholderColor;o.push(_l(i,n,s));for(var a=0;a<r;a++)for(var l=Va(e[a],i,n),p=o.length,c=0;c<p;c++){var h=o[c];if(h.from<=l.from&&l.from<=h.to){o.push(_l(l.from,l.to,l.color,l.opacity)),h.from<=l.to&&l.to<=h.to&&o.push(_l(l.to,h.to,s,l.opacity)),h.to=l.from;break}}}return o},e.prototype.getRangeRadius=function(){var t=this.arc,e=this.options,r=e.rangeSize,o=e.rangeDistance,i=e.majorTicks.size;return"outside"===e.labels.position?t.getRadiusX()-i-o-r:t.getRadiusX()-r},e.prototype.renderArc=function(t,e){var r=this.options;return this.arc=new O.geometry.Arc(t,{radiusX:e,radiusY:e,startAngle:r.startAngle+180,endAngle:r.endAngle+180})},e.prototype.renderTicks=function(){var t=this.arc,e=this.options,r=t.clone();this.majorTickAngles=this.tickAngles(t,e.majorUnit),this.majorTicks=ml(r,this.majorTickAngles,e.majorUnit,e.majorTicks);var o=new gl;o.append(this.majorTicks);var i=e.majorTicks.size,n=e.minorTicks.size;if(this._tickDifference=i-n,"outside"===e.labels.position){var s=r.getRadiusX();r.setRadiusX(s-i+n).setRadiusY(s-i+n)}return this.minorTickAngles=this.normalizeTickAngles(this.tickAngles(t,e.minorUnit)),this.minorTicks=ml(r,this.minorTickAngles,e.minorUnit,e.minorTicks),o.append(this.minorTicks),o},e.prototype.normalizeTickAngles=function(t){for(var e=this.options,r=e.majorUnit/e.minorUnit,o=t.length-1;o>=0;o--)o%r==0&&t.splice(o,1);return t},e.prototype.tickAngles=function(t,e){var r=this.options,o=r.reverse,i=r.max-r.min,n=t.endAngle-t.startAngle,s=i/e,a=t.startAngle,l=n/s;o&&(a+=n,l=-l),n>=360&&r.max%e==0&&(s-=1);for(var p=[],c=0;c<s;c++)p.push(gt(a,3)),a+=l;return gt(a)<=t.endAngle&&p.push(a),p},e.prototype.radius=function(t){if(!t)return this.arc.getRadiusX();this.arc.setRadiusX(t).setRadiusY(t),this.repositionTicks(this.majorTicks.children,this.majorTickAngles),this.repositionTicks(this.minorTicks.children,this.minorTickAngles,!0)},e.prototype.repositionTicks=function(t,e,r){var o=r&&this._tickDifference||0,i=this.arc,n=i.getRadiusX();r&&"outside"===this.options.labels.position&&0!==o&&(i=this.arc.clone()).setRadiusX(n-o).setRadiusY(n-o);for(var s=0;s<t.length;s++){var a=i.pointAt(e[s]),l=t[s].segments,p=a.x-l[0].anchor().x,c=a.y-l[0].anchor().y;t[s].transform((new O.geometry.transform).translate(p,c))}},e}(mr);wt(bl,{min:0,max:100,majorTicks:{size:15,align:"inside",color:n,width:.5,visible:!0},minorTicks:{size:10,align:"inside",color:n,width:.5,visible:!0},startAngle:-30,endAngle:210,labels:{position:"inside",padding:2}});var xl=bl,wl=function(t){function e(e,r){t.call(this,e,r);var o=this.options;o.duration=Math.max(Math.abs(o.newAngle-o.oldAngle)/o.duration*1e3,1)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this.options,r=Q(e.oldAngle,e.newAngle,t);this.element.transform(O.geometry.transform().rotate(r,e.center))},e}(O.drawing.Animation);wt(wl,{easing:"linear",duration:150}),O.drawing.AnimationFactory.current.register("radialPointer",wl);var Cl=wl,Ol=O.drawing.Circle,kl=O.drawing.Group,Sl=O.drawing.Path,Pl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setAngle=function(t){this.elements.transform(O.geometry.transform().rotate(t,this.center))},e.prototype.repaint=function(){var t=this.scale,e=this.options,r=t.slotAngle(e._oldValue),o=t.slotAngle(e.value);!1===e.animation.transitions?this.setAngle(o):new Cl(this.elements,j(e.animation,{oldAngle:r,newAngle:o})).play()},e.prototype.render=function(){var t=this.scale,e=this.options,r=new kl;return!1!==e.animation&&j(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),r.append(this._renderNeedle(),this._renderCap()),this.elements=r,this.setAngle(Ra),r},e.prototype.reflow=function(t){var e=this.center=t.center,r=dt(this.options.length||1,.1,1.5),o=this.radius=t.getRadiusX()*r,i=this.capSize=Math.round(o*this.options.cap.size);this.bbox=O.geometry.Rect.fromPoints(new O.geometry.Point(e.x-i,e.y-i),new O.geometry.Point(e.x+i,e.y+i))},e.prototype._renderNeedle=function(){var t=this.scale.options.minorTicks.size,e=this.center,r=this.options.color,o=new Sl({fill:{color:r},stroke:{color:r,width:.5}});return o.moveTo(e.x+this.radius-t,e.y).lineTo(e.x,e.y-this.capSize/2).lineTo(e.x,e.y+this.capSize/2).close(),o},e.prototype._renderCap=function(){var t=this.options,e=t.cap.color||t.color,r=new O.geometry.Circle(this.center,this.capSize);return new Ol(r,{fill:{color:e},stroke:{color:e}})},e}(Ja);wt(Pl,{cap:{size:.05},arrow:{width:16,height:14},animation:{type:"radialPointer",duration:150}});var Al=Pl,Ml=O.drawing.Group,Tl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.pointers;this.scale.reflow(t),this._initialPlotArea=this.scale.bbox;for(var r=0;r<e.length;r++)e[r].reflow(this.scale.arc),this._initialPlotArea=O.geometry.Rect.union(this._initialPlotArea,e[r].bbox);this.fitScale(t),this.alignScale(t),this._buildVisual(this.gaugeArea,e,this.scale),this._draw()},e.prototype._buildVisual=function(t,e,r){var o=this._visuals=new Ml;o.append(t),o.append(r.ticks),o.append(r.ranges),this._buildPointers(e),o.append(r.labelElements)},e.prototype._buildPointers=function(t){for(var e=0;e<t.length;e++){var r=t[e];r.render(),this._visuals.append(r.elements),r.value(r.options.value)}},e.prototype.fitScale=function(t){for(var e,r,o,i,n,s=this.scale.arc,a=this._initialPlotArea,l=Math.abs(this.getDiff(a,t)),p=gt(l,3),c=gt(-l,3),h=0,u=0;!(!(u++<100)||(h=n===o?h+1:0)>5||p!==i&&0<=(e=this.getPlotBox(p,t,s))&&e<=2||c!==i&&0<=(o=this.getPlotBox(c,t,s))&&o<=2||(i=e>0&&o>0?2*p:e<0&&o<0?2*c:gt((p+c)/2||1,3),0<=(r=this.getPlotBox(i,t,s))&&r<=2));)n=o,r>0?(c=i,o=r):(p=i,e=r)},e.prototype.getPlotBox=function(t,e,r){var o=this.scale,i=this.pointers,n=r.getRadiusX(),s=r.clone();s.setRadiusX(n+t).setRadiusY(n+t),o.arc=s,o.reflow(e),this.plotBbox=o.bbox;for(var a=0;a<i.length;a++)i[a].reflow(s),this.plotBbox=O.geometry.Rect.union(this.plotBbox,i[a].bbox);return this.getDiff(this.plotBbox,e)},e.prototype.getDiff=function(t,e){return Math.min(e.width()-t.width(),e.height()-t.height())},e.prototype.alignScale=function(t){var e=this.plotBbox.center(),r=t.center(),o=e.x-r.x,i=e.y-r.y,n=this.scale,s=this.pointers;n.arc.center.x-=o,n.arc.center.y-=i,n.reflow(t);for(var a=0;a<s.length;a++)s[a].reflow(n.arc),this.plotBbox=O.geometry.Rect.union(n.bbox,s[a].bbox)},e.prototype._createModel=function(){var t=this.options,e=t.pointer,r=this.scale=new xl(t.scale,this.contextService);this.pointers=[];for(var o=b(e)?e:[e],i=0;i<o.length;i++){var n=new Al(r,j({},o[i],{animation:{transitions:t.transitions}}));this.pointers.push(n)}},e}(Ga);wt(Tl,{transitions:!0,gaugeArea:{background:""}});var El=Tl,jl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.rangeSegments=function(){var t=this.options;return[{from:t.min,to:t.max,color:t.rangePlaceholderColor,lineCap:t.rangeLineCap}]},e.prototype.hasRanges=function(){return!0},e.prototype.placeholderRangeAngle=function(t){var e=this.ranges.children[0].geometry();this.options.reverse?e.setEndAngle(t):e.setStartAngle(t)},e.prototype.addRange=function(t,e,r){var o=this.options.reverse,i=this.slotAngle(o?e:t),n=this.slotAngle(o?t:e),s=this.createRange(i,n,this.getRangeRadius(),r);return this.ranges.append(s),s},e}(xl);wt(jl,{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"});var Rl=jl,Il=function(t){function e(e,r){t.call(this,e,r);var o=this.options,i=Math.abs(o.newAngle-o.oldAngle)/o.duration*1e3;o.duration=dt(i,150,800);var n=e.elements.options.get("stroke.color"),s=e.currentColor();n!==s&&(this.startColor=new O.Color(n),this.color=new O.Color(s))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this.options,r=this.startColor,o=this.color,i=Q(e.oldAngle,e.newAngle,t);if(this.element.angle(i),o){var n=gt(Q(r.r,o.r,t)),s=gt(Q(r.g,o.g,t)),a=gt(Q(r.b,o.b,t));this.element.stroke(new O.Color(n,s,a).toHex())}},e}(O.drawing.Animation);wt(Il,{easing:"linear",duration:150}),O.drawing.AnimationFactory.current.register("radialRangePointer",Il);var Bl=Il,Ll=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.repaint=function(){var t=this.scale,e=this.options,r=t.slotAngle(e._oldValue),o=t.slotAngle(e.value);this.animation&&this.animation.abort(),!1===e.animation.transitions?(this.angle(o),this.stroke(this.currentColor())):(this.animation=new Bl(this,j(e.animation,{oldAngle:r,newAngle:o})),this.animation.play())},e.prototype.angle=function(t){var e=this.elements.geometry();this.scale.options.reverse?e.setStartAngle(t):e.setEndAngle(t),this.scale.placeholderRangeAngle(t)},e.prototype.stroke=function(t){this.elements.stroke(t)},e.prototype.render=function(){if(!this.elements){var t=this.scale,e=this.options;!1!==e.animation&&j(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),this.elements=t.addRange(t.options.min,this.options.value,{color:this.currentColor(),opacity:e.opacity,lineCap:t.options.rangeLineCap})}},e.prototype.currentColor=function(){var t=this.scale.options,e=t.min,r=t.max,o=this.options,i=o.colors,n=o.color,s=o.value,a=P(s)?s:e;if(i)for(var l=0;l<i.length;l++){var p=i[l],c=p.color,h=p.from;void 0===h&&(h=e);var u=p.to;if(void 0===u&&(u=r),h<=a&&a<=u)return c}return n},e.prototype.reflow=function(){this.render(),this.bbox=this.elements.bbox()},e}(Ja);wt(Ll,{animation:{type:"radialRangePointer",duration:150}});var Dl=Ll,zl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initTheme=function(e){t.prototype._initTheme.call(this,e),this.options.color=this.options.color||(this.theme.pointer||{}).color},e.prototype._createModel=function(){var t=this.options,e=this.scale=new Rl(t.scale,this.contextService),r=new Dl(e,j({},{colors:t.colors,color:t.color,value:t.value,opacity:t.opacity,animation:{transitions:t.transitions}}));this.pointers=[r]},e.prototype._buildPointers=function(t){for(var e=0;e<t.length;e++){var r=t[e];r.render(),r.value(r.options.value)}},e.prototype._setValueOptions=function(t){this.options.value=t},e.prototype.currentColor=function(){var t=this.pointers[0];if(t)return t.currentColor()},e.prototype.centerLabelPosition=function(t,e){var r=this.getSize(),o=this.scale.arc.center,i=o.x-t/2,n=o.y-e/2;if(t<r.width){var s=i+t;i=Math.max(i,0),s>r.width&&(i-=s-r.width)}if(e<r.height){var a=this.scale.bbox,l=a.bottomRight().y,p=n+e;n=Math.max(n,a.origin.y),p>l&&(n-=p-l)}return{left:i,top:n}},e}(El),Vl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._createModel=function(){var e=this.options.scale;"number"!=typeof e.startAngle&&(e.startAngle=90),e.endAngle=e.startAngle+360,t.prototype._createModel.call(this)},e}(zl),Nl=function(t){function e(e){t.call(this),this.setOptions(e),this.initProperties()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){},e.prototype.setOptions=function(t){this.options=Object.assign({},this.options,t),this.quietZoneLength=this.options.addQuietZone?2*this.options.quietZoneLength:0},e.prototype.encode=function(t,e,r){var o=st(t)?String(t):t;return this.initValue(o,e,r),this.options.addQuietZone&&this.addQuietZone(),this.addData(),this.options.addQuietZone&&this.addQuietZone(),{baseUnit:this.baseUnit,pattern:this.pattern}},e.prototype.initValue=function(){},e.prototype.addQuietZone=function(){this.pattern.push(this.options.quietZoneLength||10)},e.prototype.addData=function(){},e.prototype.invalidCharacterError=function(t){throw new Error('Character "'+t+'" is not valid for symbology '+this.name+".")},e}(O.Class);wt(Nl,{quietZoneLength:10,addQuietZone:!0,addCheckSum:!0});var Hl=Object.assign,Ul=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Hl(this,{name:"Code 11",characterMap:["111121","211121","121121","221111","112121","212111","122111","111221","211211","211111","112111"],cCheckSumTotal:10,kCheckSumTotal:9,kCheckSumMinLength:10,checkSumMod:11,DASH_VALUE:10,DASH:"-",START:"112211",STOP:"11221"})},e.prototype.initValue=function(t,e){this.pattern=[],this.value=t,this.width=e,this.totalUnits=0},e.prototype.addData=function(){var t=this.value;this.addPattern(this.START);for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.STOP),this.setBaseUnit()},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)},e.prototype.addCheckSum=function(){var t=this.value,e=t.length,r=this.getWeightedSum(t,e,this.cCheckSumTotal)%this.checkSumMod;if(this.checksum=String(r),this.addPattern(this.characterMap[r]),++e>=this.kCheckSumMinLength){var o=(r+this.getWeightedSum(t,e,this.kCheckSumTotal))%this.checkSumMod;this.checksum+=o,this.addPattern(this.characterMap[o])}},e.prototype.getWeightedSum=function(t,e,r){for(var o=0,i=0;i<t.length;i++)o+=this.weightedValue(this.getValue(t.charAt(i)),e,i,r);return o},e.prototype.weightedValue=function(t,e,r,o){return((e-r)%o||o)*t},e.prototype.getValue=function(t){return isNaN(t)?(t!==this.DASH&&this.invalidCharacterError(t),this.DASH_VALUE):parseInt(t,10)},e.prototype.addCharacter=function(t){var e=this.getValue(t),r=this.characterMap[e];this.addPattern(r)},e.prototype.addPattern=function(t){for(var e,r=0;r<t.length;r++)e=parseInt(t.charAt(r),10),this.pattern.push(e),this.totalUnits+=e},e}(Nl);wt(Ul,{addCheckSum:!0});var Fl=Object.assign,Gl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Fl(this,{minBaseUnitLength:.7})},e.prototype.addData=function(){var t=this.value;this.addStart();for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.pushCheckSum(),this.addStop(),this.prepareValues()},e.prototype.addCharacter=function(t){var e=this.characterMap[t];e||this.invalidCharacterError(t),this.addBase(e)},e.prototype.addBase=function(){},e}(Nl),Wl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Fl(this,{name:"Code 39",checkSumMod:43,minRatio:2.5,maxRatio:3,gapWidth:1,splitCharacter:"|",patternMappings:{b:"1|",w:"1|",B:"ratio|",W:"ratio|"},characterMap:{0:{pattern:"bwbWBwBwb",value:0},1:{pattern:"BwbWbwbwB",value:1},2:{pattern:"bwBWbwbwB",value:2},3:{pattern:"BwBWbwbwb",value:3},4:{pattern:"bwbWBwbwB",value:4},5:{pattern:"BwbWBwbwb",value:5},6:{pattern:"bwBWBwbwb",value:6},7:{pattern:"bwbWbwBwB",value:7},8:{pattern:"BwbWbwBwb",value:8},9:{pattern:"bwBWbwBwb",value:9},A:{pattern:"BwbwbWbwB",value:10},B:{pattern:"bwBwbWbwB",value:11},C:{pattern:"BwBwbWbwb",value:12},D:{pattern:"bwbwBWbwB",value:13},E:{pattern:"BwbwBWbwb",value:14},F:{pattern:"bwBwBWbwb",value:15},G:{pattern:"bwbwbWBwB",value:16},H:{pattern:"BwbwbWBwb",value:17},I:{pattern:"bwBwbWBwb",value:18},J:{pattern:"bwbwBWBwb",value:19},K:{pattern:"BwbwbwbWB",value:20},L:{pattern:"bwBwbwbWB",value:21},M:{pattern:"BwBwbwbWb",value:22},N:{pattern:"bwbwBwbWB",value:23},O:{pattern:"BwbwBwbWb",value:24},P:{pattern:"bwBwBwbWb",value:25},Q:{pattern:"bwbwbwBWB",value:26},R:{pattern:"BwbwbwBWb",value:27},S:{pattern:"bwBwbwBWb",value:28},T:{pattern:"bwbwBwBWb",value:29},U:{pattern:"BWbwbwbwB",value:30},V:{pattern:"bWBwbwbwB",value:31},W:{pattern:"BWBwbwbwb",value:32},X:{pattern:"bWbwBwbwB",value:33},Y:{pattern:"BWbwBwbwb",value:34},Z:{pattern:"bWBwBwbwb",value:35},"-":{pattern:"bWbwbwBwB",value:36},".":{pattern:"BWbwbwBwb",value:37}," ":{pattern:"bWBwbwBwb",value:38},$:{pattern:"bWbWbWbwb",value:39},"/":{pattern:"bWbWbwbWb",value:40},"+":{pattern:"bWbwbWbWb",value:41},"%":{pattern:"bwbWbWbWb",value:42},START:{pattern:"bWbwBwBwb"}}})},e.prototype.initValue=function(t,e,r){this.width=e,this.height=r,this.value=t,this.dataLength=t.length,this.pattern=[],this.patternString=""},e.prototype.prepareValues=function(){var t,e=this.minBaseUnitLength,r=this.minRatio,o=Math.ceil(Math.max(.15*this.width,24)),i=this.maxRatio;if(this.height<o)throw new Error("Insufficient height for Code39 encoding: the current height is "+this.height+"px and the minimum height is "+o+"px.");for(t=this.getBaseUnit(i);t<e&&i>r;)i=parseFloat((i-.1).toFixed(1)),t=this.getBaseUnit(i);if(t<e){var n=Math.ceil(this.getBaseWidth(r)*e);throw new Error("Insufficient width for Code39 encoding: the current width is "+this.width+'px and the minimum width for value "'+this.value+'" is '+n+"px.")}this.ratio=i,this.baseUnit=t,this.patternString=this.patternString.substring(0,this.patternString.length-1),this.pattern=this.pattern.concat(this.patternString.replace(/ratio/g,i).split(this.splitCharacter))},e.prototype.getBaseUnit=function(t){return this.width/this.getBaseWidth(t)},e.prototype.getBaseWidth=function(t){var e=3*(t+2);return this.quietZoneLength+e*(this.dataLength+2)+this.gapWidth*(this.dataLength+1)},e.prototype.addStart=function(){this.addPattern(this.characterMap.START.pattern),this.addCharacterGap()},e.prototype.addBase=function(t){this.addPattern(t.pattern),this.addCharacterGap()},e.prototype.addStop=function(){this.addPattern(this.characterMap.START.pattern)},e.prototype.addPattern=function(t){for(var e=0;e<t.length;e++)this.patternString+=this.patternMappings[t.charAt(e)]},e.prototype.addCharacterGap=function(){this.patternString+=this.gapWidth+this.splitCharacter},e}(Gl);wt(Wl,{addCheckSum:!1});var Kl={addCharacter:function(t){this.characterMap[t]?this.addBase(this.characterMap[t]):t.charCodeAt(0)>127?this.invalidCharacterError(t):this.addExtended(t.charCodeAt(0))},addExtended:function(t){for(var e,r=0;r<this.extendedMappings.length;r++)if(e=this.extendedMappings[r].call(this,t)){for(var o=0;o<e.length;o++){var i=e[o];this.addBase(i)}return void(this.dataLength+=e.length-1)}},extendedMappings:[function(t){if(97<=t&&t<=122)return[this.characterMap[this.shiftCharacters[0]],this.characterMap[String.fromCharCode(t-32)]]},function(t){if(33<=t&&t<=58)return[this.characterMap[this.shiftCharacters[1]],this.characterMap[String.fromCharCode(t+32)]]},function(t){if(1<=t&&t<=26)return[this.characterMap[this.shiftCharacters[2]],this.characterMap[String.fromCharCode(t+64)]]},function(t){var e,r;if(this.specialAsciiCodes[t]){e=[];for(var o=0;o<this.specialAsciiCodes[t].length;o++)e.push(this.characterMap[this.shiftCharacters[3]]),e.push(this.characterMap[this.specialAsciiCodes[t][o]])}else r=6*Math.floor(t/32)+(t-27)%32+64,e=[this.characterMap[this.shiftCharacters[3]],this.characterMap[String.fromCharCode(r)]];return e}],specialAsciiCodes:{0:["U"],64:["V"],96:["W"],127:["T","X","Y","Z"]},shiftValuesAsciiCodes:{39:36,40:47,41:43,42:37},characterMap:{"+":!1,"/":!1,$:!1,"%":!1},shiftCharacters:["SHIFT0","SHIFT1","SHIFT2","SHIFT3"]},Xl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),j(this,Kl,{name:"Code 39 extended",characterMap:{SHIFT0:{pattern:"bWbwbWbWb",value:41},SHIFT1:{pattern:"bWbWbwbWb",value:40},SHIFT2:{pattern:"bWbWbWbwb",value:39},SHIFT3:{pattern:"bwbWbWbWb",value:42}}})},e}(Wl),Yl=Object.assign,ql=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Yl(this,{name:"Code 93",cCheckSumTotal:20,kCheckSumTotal:15,checkSumMod:47,characterMap:{0:{pattern:"131112",value:0},1:{pattern:"111213",value:1},2:{pattern:"111312",value:2},3:{pattern:"111411",value:3},4:{pattern:"121113",value:4},5:{pattern:"121212",value:5},6:{pattern:"121311",value:6},7:{pattern:"111114",value:7},8:{pattern:"131211",value:8},9:{pattern:"141111",value:9},A:{pattern:"211113",value:10},B:{pattern:"211212",value:11},C:{pattern:"211311",value:12},D:{pattern:"221112",value:13},E:{pattern:"221211",value:14},F:{pattern:"231111",value:15},G:{pattern:"112113",value:16},H:{pattern:"112212",value:17},I:{pattern:"112311",value:18},J:{pattern:"122112",value:19},K:{pattern:"132111",value:20},L:{pattern:"111123",value:21},M:{pattern:"111222",value:22},N:{pattern:"111321",value:23},O:{pattern:"121122",value:24},P:{pattern:"131121",value:25},Q:{pattern:"212112",value:26},R:{pattern:"212211",value:27},S:{pattern:"211122",value:28},T:{pattern:"211221",value:29},U:{pattern:"221121",value:30},V:{pattern:"222111",value:31},W:{pattern:"112122",value:32},X:{pattern:"112221",value:33},Y:{pattern:"122121",value:34},Z:{pattern:"123111",value:35},"-":{pattern:"121131",value:36},".":{pattern:"311112",value:37}," ":{pattern:"311211",value:38},$:{pattern:"321111",value:39},"/":{pattern:"112131",value:40},"+":{pattern:"113121",value:41},"%":{pattern:"211131",value:42},SHIFT0:{pattern:"122211",value:46},SHIFT1:{pattern:"311121",value:45},SHIFT2:{pattern:"121221",value:43},SHIFT3:{pattern:"312111",value:44},START:{pattern:"111141"},TERMINATION_BAR:"1"}})},e.prototype.initValue=function(t,e,r){this.value=t,this.width=e,this.height=r,this.pattern=[],this.values=[],this.dataLength=t.length},e.prototype.prepareValues=function(){var t=Math.ceil(Math.max(.15*this.width,24));if(this.height<t)throw new Error("Insufficient height for Code93 encoding: the current height is "+this.height+"px, the minimum required height is "+t+"px.");if(this.setBaseUnit(),this.baseUnit<this.minBaseUnitLength){var e=Math.ceil(this.minBaseUnitLength*(this.width/this.baseUnit));throw new Error("Insufficient width for Code93 encoding: the current width is "+this.width+'px and the minimum required width for value "'+this.value+'" is '+e+"px.")}},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(9*(this.dataLength+2+2)+this.quietZoneLength+1)},e.prototype.addStart=function(){var t=this.characterMap.START.pattern;this.addPattern(t)},e.prototype.addStop=function(){this.addStart(),this.pattern.push(this.characterMap.TERMINATION_BAR)},e.prototype.addBase=function(t){this.addPattern(t.pattern),this.values.push(t.value)},e.prototype.pushCheckSum=function(){var t,e=this._getCheckValues();this.checksum=e.join("");for(var r=0;r<e.length;r++)t=this.characterMap[this._findCharacterByValue(e[r])],this.addPattern(t.pattern)},e.prototype._getCheckValues=function(){var t,e,r=this.values,o=r.length,i=0;for(e=o-1;e>=0;e--)i+=this.weightedValue(r[e],o-e,this.cCheckSumTotal);for(t=i%this.checkSumMod,i=this.weightedValue(t,1,this.kCheckSumTotal),e=o-1;e>=0;e--)i+=this.weightedValue(r[e],o-e+1,this.kCheckSumTotal);return[t,i%this.checkSumMod]},e.prototype._findCharacterByValue=function(t){for(var e in this.characterMap)if(this.characterMap[e].value===t)return e},e.prototype.weightedValue=function(t,e,r){return(e%r||r)*t},e.prototype.addPattern=function(t){for(var e,r=0;r<t.length;r++)e=parseInt(t.charAt(r),10),this.pattern.push(e)},e}(Gl),Zl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),j(this,Kl,{name:"Code 93 extended",pushCheckSum:function(){var t,e=this._getCheckValues();this.checksum=e.join("");for(var r=0;r<e.length;r++)if(t=e[r],this.shiftValuesAsciiCodes[t])this.addExtended(this.shiftValuesAsciiCodes[t]);else{var o=this._findCharacterByValue(t);this.addPattern(this.characterMap[o].pattern)}}})},e}(ql),Ql=/^\d+$/,$l=Object.assign,Jl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),$l(this,{name:"Postnet",START:"2",VALID_CODE_LENGTHS:[5,9,11],DIGIT_SEPARATOR:"-",characterMap:["22111","11122","11212","11221","12112","12121","12211","21112","21121","21211"]})},e.prototype.initValue=function(t,e,r){this.height=r,this.width=e,this.baseHeight=r/2,this.value=t.replace(new RegExp(this.DIGIT_SEPARATOR,"g"),""),this.pattern=[],this.validate(this.value),this.checkSum=0,this.setBaseUnit()},e.prototype.addData=function(){var t=this.value;this.addPattern(this.START);for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.START),this.pattern.pop()},e.prototype.addCharacter=function(t){var e=this.characterMap[t];this.checkSum+=parseInt(t,10),this.addPattern(e)},e.prototype.addCheckSum=function(){this.checksum=(10-this.checkSum%10)%10,this.addCharacter(this.checksum)},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(10*(this.value.length+1)+3+this.quietZoneLength)},e.prototype.validate=function(t){if(Ql.test(t)||this.invalidCharacterError(t.match(/[^0-9]/)[0]),!Z(t.length,this.VALID_CODE_LENGTHS))throw new Error("Invalid value length. Valid lengths for the Postnet symbology are "+this.VALID_CODE_LENGTHS.join(",")+".")},e.prototype.addPattern=function(t){for(var e,r=0;r<t.length;r++)e=this.height-this.baseHeight*t.charAt(r),this.pattern.push({width:1,y1:e,y2:this.height}),this.pattern.push(1)},e}(Nl),tp=/^\d+$/,ep=/^[a-z0-9]+$/i,rp=Object.assign,op=function(t){function e(e){t.call(this),this.encoding=e,this.initProperties()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){},e.prototype.addStart=function(){},e.prototype.is=function(){},e.prototype.isCode=function(){return!1},e.prototype.move=function(){},e.prototype.pushState=function(){},e}(O.Class),ip=function(t){function e(e,r){t.call(this,e),this.states=r,this._initMoves(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),j(this,{FNC4:"FNC4",SHIFT:98})},e.prototype.addStart=function(){this.encoding.addPattern(this.START)},e.prototype.is=function(t,e){var r=t.charCodeAt(e);return this.isCode(r)},e.prototype.move=function(t){for(var e=0;!this._moves[e].call(this,t)&&e<this._moves.length;)e++},e.prototype.pushState=function(t){var e,r=this.states,o=t.value,i=o.length;if(Z("C",r)){var n=o.substr(t.index).match(/\d{4,}/g);n&&(i=o.indexOf(n[0],t.index))}for(;(e=t.value.charCodeAt(t.index))>=0&&this.isCode(e)&&t.index<i;)this.encoding.addPattern(this.getValue(e)),t.index++},e.prototype._initMoves=function(t){this._moves=[],Z(this.FNC4,t)&&this._moves.push(this._moveFNC),Z(this.shiftKey,t)&&this._moves.push(this._shiftState),this._moves.push(this._moveState)},e.prototype._moveFNC=function(t){if(t.fnc)return t.fnc=!1,t.previousState===this.key},e.prototype._shiftState=function(t){if(t.previousState===this.shiftKey&&(t.index+1>=t.value.length||this.encoding[this.shiftKey].is(t.value,t.index+1)))return this.encoding.addPattern(this.SHIFT),t.shifted=!0,!0},e.prototype._moveState=function(){return this.encoding.addPattern(this.MOVE),!0},e}(op),np={};np.A=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{key:"A",shiftKey:"B",MOVE:101,START:103})},e.prototype.isCode=function(t){return 0<=t&&t<96},e.prototype.getValue=function(t){return t<32?t+64:t-32},e}(ip),np.B=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{key:"B",shiftKey:"A",MOVE:100,START:104})},e.prototype.isCode=function(t){return 32<=t&&t<128},e.prototype.getValue=function(t){return t-32},e}(ip),np.C=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{key:"C",MOVE:99,START:105})},e.prototype.addStart=function(){this.encoding.addPattern(this.START)},e.prototype.is=function(t,e){var r=up(t,e,4);return(e+4<=t.length||2===t.length)&&tp.test(r)},e.prototype.move=function(){this.encoding.addPattern(this.MOVE)},e.prototype.pushState=function(t){for(var e;(e=up(t.value,t.index,2))&&tp.test(e)&&2===e.length;)this.encoding.addPattern(parseInt(e,10)),t.index+=2},e.prototype.getValue=function(t){return t},e}(op),np.FNC4=function(t){function e(e,r){t.call(this,e),this._initSubStates(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{key:"FNC4",dependentStates:["A","B"]})},e.prototype.addStart=function(t){var e=t.value.charCodeAt(0)-128,r=this._getSubState(e);this.encoding[r].addStart()},e.prototype.is=function(t,e){var r=t.charCodeAt(e);return this.isCode(r)},e.prototype.isCode=function(t){return 128<=t&&t<256},e.prototype.pushState=function(t){var e,r=this._initSubState(t),o=this.encoding,i=r.value.length;if(t.index+=i,i<3)for(;r.index<i;r.index++)e=r.value.charCodeAt(r.index),r.state=this._getSubState(e),r.previousState!==r.state&&(r.previousState=r.state,o[r.state].move(r)),o.addPattern(o[r.state].MOVE),o.addPattern(o[r.state].getValue(e));else r.state!==r.previousState&&o[r.state].move(r),this._pushStart(r),o.pushData(r,this.subStates),t.index<t.value.length&&this._pushStart(r);t.fnc=!0,t.state=r.state},e.prototype._pushStart=function(t){this.encoding.addPattern(this.encoding[t.state].MOVE),this.encoding.addPattern(this.encoding[t.state].MOVE)},e.prototype._initSubState=function(t){var e={value:this._getAll(t.value,t.index),index:0};return e.state=this._getSubState(e.value.charCodeAt(0)),e.previousState=t.previousState===this.key?e.state:t.previousState,e},e.prototype._initSubStates=function(t){this.subStates=[];for(var e=0;e<t.length;e++)Z(t[e],this.dependentStates)&&this.subStates.push(t[e])},e.prototype._getSubState=function(t){for(var e=0;e<this.subStates.length;e++)if(this.encoding[this.subStates[e]].isCode(t))return this.subStates[e]},e.prototype._getAll=function(t,e){for(var r,o="",i=e;(r=t.charCodeAt(i++))&&this.isCode(r);)o+=String.fromCharCode(r-128);return o},e}(op),np.FNC1=function(t){function e(e,r){t.call(this,e),this.states=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{key:"FNC1",startState:"C",startAI:"(",endAI:")",dependentStates:["C","B"],applicationIdentifiers:{22:{max:29,type:"alphanumeric"},402:{length:17},7004:{max:4,type:"alphanumeric"},242:{max:6,type:"alphanumeric"},8020:{max:25,type:"alphanumeric"},703:{min:3,max:30,type:"alphanumeric"},8008:{min:8,max:12,type:"alphanumeric"},253:{min:13,max:17,type:"alphanumeric"},8003:{min:14,max:30,type:"alphanumeric"},multiKey:[{ids:["15","17","8005","8100"],ranges:[[11,13],[310,316],[320,336],[340,369]],type:{length:6}},{ids:["240","241","250","251","400","401","403","7002","8004","8007","8110"],ranges:[[-9]],type:{max:30,type:"alphanumeric"}},{ids:["7001"],ranges:[[410,414]],type:{length:13}},{ids:["10","21","254","420","8002"],type:{max:20,type:"alphanumeric"}},{ids:["00","8006","8017","8018"],type:{length:18}},{ids:["01","02","8001"],type:{length:14}},{ids:["422"],ranges:[[424,426]],type:{length:3}},{ids:["20","8102"],type:{length:2}},{ids:["30","37"],type:{max:8,type:"alphanumeric"}},{ids:["390","392"],type:{max:15,type:"alphanumeric"}},{ids:["421","423"],type:{min:3,max:15,type:"alphanumeric"}},{ids:["391","393"],type:{min:3,max:18,type:"alphanumeric"}},{ids:["7003","8101"],type:{length:10}}]},START:102})},e.prototype.addStart=function(){this.encoding[this.startState].addStart()},e.prototype.is=function(){return Z(this.key,this.states)},e.prototype.pushState=function(t){var e,r,o,i=this.encoding,n=t.value.replace(/\s/g,""),s=new RegExp("["+this.startAI+this.endAI+"]","g"),a=t.index,l={state:this.startState};i.addPattern(this.START);for(;;){if(l.index=0,(e=(o=n.charAt(a)===this.startAI?2:0)>0?this.getBySeparator(n,a):this.getByLength(n,a)).ai.length)r=a+o+e.id.length+e.ai.length;else if((r=n.indexOf(this.startAI,a+1))<0){if(a+e.ai.max+e.id.length+o<n.length)throw new Error("Separators are required after variable length identifiers");r=n.length}if(l.value=n.substring(a,r).replace(s,""),this.validate(e,l.value),i.pushData(l,this.dependentStates),r>=n.length)break;a=r,l.state!==this.startState&&(i[this.startState].move(l),l.state=this.startState),e.ai.length||i.addPattern(this.START)}t.index=t.value.length},e.prototype.validate=function(t,e){var r=e.substr(t.id.length),o=t.ai;if(!o.type&&!tp.test(r))throw new Error("Application identifier "+t.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"===o.type&&!ep.test(r))throw new Error("Application identifier "+t.id+" is alphanumeric only but contains non alphanumeric character(s).");if(o.length&&o.length!==r.length)throw new Error("Application identifier "+t.id+" must be "+o.length+" characters long.");if(o.min&&o.min>r.length)throw new Error("Application identifier "+t.id+" must be at least "+o.min+" characters long.");if(o.max&&o.max<r.length)throw new Error("Application identifier "+t.id+" must be at most "+o.max+" characters long.")},e.prototype.getByLength=function(t,e){for(var r,o,i=2;i<=4;i++)if(r=up(t,e,i),o=this.getApplicationIdentifier(r)||this.getApplicationIdentifier(r.substring(0,r.length-1)))return{id:r,ai:o};this.unsupportedAIError(r)},e.prototype.unsupportedAIError=function(t){throw new Error("'"+t+"' is not a supported Application Identifier")},e.prototype.getBySeparator=function(t,e){var r=t.indexOf(this.startAI,e),o=t.indexOf(this.endAI,r),i=t.substring(r+1,o),n=this.getApplicationIdentifier(i)||this.getApplicationIdentifier(i.substr(i.length-1));return n||this.unsupportedAIError(i),{ai:n,id:i}},e.prototype.getApplicationIdentifier=function(t){var e=this.applicationIdentifiers,r=e.multiKey;if(e[t])return e[t];for(var o=0;o<r.length;o++){if(r[o].ids&&Z(t,r[o].ids))return r[o].type;if(r[o].ranges)for(var i=r[o].ranges,n=0;n<i.length;n++)if(i[n][0]<=t&&t<=i[n][1])return r[o].type}},e}(op);var sp=function(t){function e(e){t.call(this,e),this._initStates()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{characterMap:[212222,222122,222221,121223,121322,131222,122213,122312,132212,221213,221312,231212,112232,122132,122231,113222,123122,123221,223211,221132,221231,213212,223112,312131,311222,321122,321221,312212,322112,322211,212123,212321,232121,111323,131123,131321,112313,132113,132311,211313,231113,231311,112133,112331,132131,113123,113321,133121,313121,211331,231131,213113,213311,213131,311123,311321,331121,312113,312311,332111,314111,221411,431111,111224,111422,121124,121421,141122,141221,112214,112412,122114,122411,142112,142211,241211,221114,413111,241112,134111,111242,121142,121241,114212,124112,124211,411212,421112,421211,212141,214121,412121,111143,111341,131141,114113,114311,411113,411311,113141,114131,311141,411131,211412,211214,211232,2331112],STOP:106})},e.prototype._initStates=function(){for(var t=0;t<this.states.length;t++)this[this.states[t]]=new np[this.states[t]](this,this.states)},e.prototype.initValue=function(t,e,r){this.pattern=[],this.value=t,this.width=e,this.height=r,this.checkSum=0,this.totalUnits=0,this.index=0,this.position=1},e.prototype.addData=function(){var t={value:this.value,index:0,state:""};0!==this.value.length&&(t.state=t.previousState=this.getNextState(t,this.states),this.addStart(t),this.pushData(t,this.states),this.addCheckSum(),this.addStop(),this.setBaseUnit())},e.prototype.pushData=function(t,e){for(;this[t.state].pushState(t),!(t.index>=t.value.length);)if(t.shifted){var r=t.state;t.state=t.previousState,t.previousState=r,t.shifted=!1}else t.previousState=t.state,t.state=this.getNextState(t,e),this[t.state].move(t)},e.prototype.addStart=function(t){this[t.state].addStart(t),this.position=1},e.prototype.addCheckSum=function(){this.checksum=this.checkSum%103,this.addPattern(this.checksum)},e.prototype.addStop=function(){this.addPattern(this.STOP)},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)},e.prototype.addPattern=function(t){for(var e,r=this.characterMap[t].toString(),o=0;o<r.length;o++)e=parseInt(r.charAt(o),10),this.pattern.push(e),this.totalUnits+=e;this.checkSum+=t*this.position++},e.prototype.getNextState=function(t,e){for(var r=0;r<e.length;r++)if(this[e[r]].is(t.value,t.index))return e[r];this.invalidCharacterError(t.value.charAt(t.index))},e}(Nl),ap=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{name:"Code 128 A",states:["A"]})},e}(sp),lp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{name:"Code 128 B",states:["B"]})},e}(sp),pp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{name:"Code 128 C",states:["C"]})},e}(sp),cp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{name:"Code 128",states:["C","B","A","FNC4"]})},e}(sp),hp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{name:"Code GS1-128",states:["FNC1","C","B"]})},e}(sp);function up(t,e,r){return t.substring(e,e+r)}var fp=Object.assign,dp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),fp(this,{characterMap:["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221"],START:"21",STOP:"121",checkSumType:"",checkSums:_p})},e.prototype.initValue=function(t,e){this.pattern=[],this.value=t,this.checkSumLength=0,this.width=e},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(12*(this.value.length+this.checkSumLength)+this.quietZoneLength+7)},e.prototype.addData=function(){var t=this.value;this.addPattern(this.START);for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.STOP),this.setBaseUnit()},e.prototype.addCharacter=function(t){var e=this.characterMap[t];e||this.invalidCharacterError(t),this.addPattern(e)},e.prototype.addPattern=function(t){for(var e=0;e<t.length;e++)this.pattern.push(parseInt(t.charAt(e),10))},e.prototype.addCheckSum=function(){var t=this.checkSums[this.checkSumType].call(this.checkSums,this.value);this.checksum=t.join("");for(var e=0;e<t.length;e++)this.checkSumLength++,this.addPattern(this.characterMap[t[e]])},e}(Nl),vp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),fp(this,{name:"MSI Modulo10",checkSumType:"Modulo10"})},e}(dp),yp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),fp(this,{name:"MSI Modulo11",checkSumType:"Modulo11"})},e}(dp),gp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),fp(this,{name:"MSI Modulo10 Modulo10",checkSumType:"Modulo10Modulo10"})},e}(dp),mp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),fp(this,{name:"MSI Modulo11 Modulo10",checkSumType:"Modulo11Modulo10"})},e}(dp),_p={Modulo10:function(t){var e,r,o,i=[0,""],n=t.length%2;for(e=0;e<t.length;e++)i[(e+n)%2]+=parseInt(t.charAt(e),10);for(o=i[0],r=(2*i[1]).toString(),e=0;e<r.length;e++)o+=parseInt(r.charAt(e),10);return[(10-o%10)%10]},Modulo11:function(t){for(var e,r=0,o=t.length,i=0;i<o;i++)r+=(((o-i)%6||6)+1)*t.charAt(i);return 10!==(e=(11-r%11)%11)?[e]:[1,0]},Modulo11Modulo10:function(t){var e,r=this.Modulo11(t);return e=t+r[0],r.concat(this.Modulo10(e))},Modulo10Modulo10:function(t){var e,r=this.Modulo10(t);return e=t+r[0],r.concat(this.Modulo10(e))}},bp=Object.assign,xp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),bp(this,{name:"EAN 13",keyTable:["000000","001011","001101","001110","010011","011001","011100","010101","010110","011010"],characterMap:{digits:[[3,2,1,1],[2,2,2,1],[2,1,2,2],[1,4,1,1],[1,1,3,2],[1,2,3,1],[1,1,1,4],[1,3,1,2],[1,2,1,3],[3,1,1,2]],start:[1,1,1],middle:[1,1,1,1,1]}})},e.prototype.initValue=function(t,e,r){var o=String(t);if(12!==o.length||/\D/.test(o))throw new Error('The value of the "EAN13" encoding should be 12 symbols');this.pattern=[],this.options.height=r,this.baseUnit=e/(95+this.quietZoneLength),this.value=o,this.checksum=this.calculateChecksum(),this.leftKey=o[0],this.leftPart=o.substr(1,6),this.rightPart=o.substr(7)+this.checksum},e.prototype.addData=function(){this.addPieces(this.characterMap.start),this.addSide(this.leftPart,this.leftKey),this.addPieces(this.characterMap.middle),this.addSide(this.rightPart),this.addPieces(this.characterMap.start)},e.prototype.addSide=function(t,e){for(var r=0;r<t.length;r++)e&&parseInt(this.keyTable[e].charAt(r),10)?this.addPieces(Array.prototype.slice.call(this.characterMap.digits[t.charAt(r)]).reverse(),!0):this.addPieces(this.characterMap.digits[t.charAt(r)],!0)},e.prototype.addPieces=function(t,e){for(var r=0;r<t.length;r++)e?this.pattern.push({y1:0,y2:.95*this.options.height,width:t[r]}):this.pattern.push(t[r])},e.prototype.calculateChecksum=function(){for(var t=0,e=0,r=this.value.split("").reverse().join(""),o=0;o<r.length;o++)o%2?e+=parseInt(r.charAt(o),10):t+=parseInt(r.charAt(o),10);return(10-(3*t+e)%10)%10},e}(Nl),wp=Object.assign,Cp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),wp(this,{name:"EAN 8"})},e.prototype.initValue=function(t,e,r){if(7!==t.length||/\D/.test(t))throw new Error("Invalid value provided");this.value=t,this.options.height=r,this.checksum=this.calculateChecksum(this.value),this.leftPart=this.value.substr(0,4),this.rightPart=this.value.substr(4)+this.checksum,this.pattern=[],this.baseUnit=e/(67+this.quietZoneLength)},e}(xp),Op={code11:Ul,code39:Wl,code39extended:Xl,code93:ql,code93extended:Zl,code128:cp,code128a:ap,code128b:lp,code128c:pp};function kp(t,e){var r=t.style.display;"canvas"===e&&(t.style.display="block");var o={width:t.clientWidth,height:t.clientHeight};return t.style.display=r,o}Op["gs1-128"]=hp,Op.msimod10=vp,Op.msimod11=yp,Op.msimod1010=gp,Op.msimod1110=mp,Op.postnet=Jl,Op.ean8=Cp,Op.ean13=xp;var Sp=function(t){function e(e,r,o){void 0===o&&(o=Lt),t.call(this),this.options=j({},this.options,r),this.element=e,this.onError=o,this._initElement(),this._initSurface(),this._setOptions(r),r&&st(r.value)&&this.redraw()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this._destroySurface()},e.prototype._initElement=function(){x(this.element,"k-barcode")},e.prototype._initSurface=function(){var t=this.options,e=this.surface;e&&e.options.type===t.renderAs||(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())},e.prototype._createSurface=function(){return O.drawing.Surface.create(this.surfaceElement,{type:this.options.renderAs})},e.prototype._destroySurface=function(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())},e.prototype._initSurfaceElement=function(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))},e.prototype._destroySurfaceElement=function(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)},e.prototype.setOptions=function(t){this._setOptions(t),this._initSurface(),this.redraw()},e.prototype.redraw=function(){var t=this._getSize();this.surface.clear(),this.surface.setSize({width:t.width,height:t.height}),this.createVisual(),this.surface.draw(this.visual)},e.prototype.getSize=function(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}},e.prototype._resize=function(){this.redraw()},e.prototype.createVisual=function(){this.visual=this._render()},e.prototype._render=function(){var t,e,r=this.options,o=r.value,i=r.text,n=z(i.margin),s=this._getSize(),a=r.border||{},l=this.encoding,p=new Ht(0,0,s.width,s.height).unpad(a.width).unpad(r.padding),c=p.height(),h=new O.drawing.Group;this.contentBox=p,h.append(this._getBackground(s)),i.visible&&(c-=O.drawing.util.measureText(o,{font:i.font}).height+n.top+n.bottom);try{t=l.encode(o,p.width(),c)}catch(t){return this.onError(t),h}return i.visible&&(e=o,r.checksum&&st(l.checksum)&&(e+=" "+l.checksum),h.append(this._getText(e))),this.barHeight=c,this._bandsGroup=this._getBands(t.pattern,t.baseUnit),h.append(this._bandsGroup),h},e.prototype.exportVisual=function(){return this._render()},e.prototype._getSize=function(){var t=kp(this.element,this.options.renderAs),e=new O.geometry.Size(300,100);return t.width>0&&(e.width=t.width),t.height>0&&(e.height=t.height),this.options.width&&(e.width=this.options.width),this.options.height&&(e.height=this.options.height),e},e.prototype.value=function(t){if(!st(t))return this.options.value;this.options.value=String(t),this.redraw()},e.prototype._getBands=function(t,e){for(var r,o,i=this.contentBox,n=i.x1,s=new O.drawing.Group,a=0;a<t.length;a++){if(r=(o=R(t[a])?t[a]:{width:t[a],y1:0,y2:this.barHeight}).width*e,a%2){var l=O.geometry.Rect.fromPoints(new O.geometry.Point(n,o.y1+i.y1),new O.geometry.Point(n+r,o.y2+i.y1)),p=O.drawing.Path.fromRect(l,{fill:{color:this.options.color},stroke:null});s.append(p)}n+=r}return s},e.prototype._getBackground=function(t){var e=this.options,r=e.border||{},o=new Ht(0,0,t.width,t.height).unpad(r.width/2);return O.drawing.Path.fromRect(o.toRect(),{fill:{color:e.background},stroke:{color:r.width?r.color:"",width:r.width,dashType:r.dashType}})},e.prototype._getText=function(t){var e=this.options.text,r=this._textbox=new ce(t,{font:e.font,color:e.color,align:"center",vAlign:"bottom",margin:e.margin});return r.reflow(this.contentBox),r.renderVisual(),r.visual},e.prototype._setOptions=function(t){if(this.type=(t.type||this.options.type).toLowerCase(),"upca"===this.type&&(this.type="ean13",t.value="0"+t.value),"upce"===this.type&&(this.type="ean8",t.value="0"+t.value),!Op[this.type])throw new Error("Encoding '"+this.type+"' is not supported.");this.encoding=new Op[this.type],this.options=j({},this.options,t)},e}(O.Class);wt(Sp,{name:"Barcode",renderAs:"svg",value:"",type:"code39",checksum:!1,width:0,height:0,color:"black",background:"white",text:{visible:!0,font:"16px Consolas, Monaco, Sans Mono, monospace, sans-serif",color:"black",margin:{top:0,bottom:0,left:0,right:0}},border:{width:0,dashType:"solid",color:"black"},padding:{top:0,bottom:0,left:0,right:0}});var Pp=Sp,Ap={width:500,height:100};var Mp=function(t,e){if(void 0===e&&(e=Ap),!t)throw new Error("Please specify barcode type to validate.");var r=t.toLowerCase(),o="";if("upca"===r?(r="ean13",o="0"):"upce"===r&&(r="ean8",o="0"),!Op[r])throw new Error("Encoding '"+t+"' is not supported.");return function(t,e,r){return function(o){try{t.encode(r+o,e.width,e.height)}catch(t){return{valid:!1,error:t}}return{valid:!0}}}(new Op[r],e,o)},Tp=Object.assign;function Ep(t,e){for(var r=[],o=0;o<t.length;)r.push(t.substring(o,o+e)),o+=e;return r}function jp(t,e){var r=Number(t).toString(2);return r.length<e&&(r=new Array(e-r.length+1).join(0)+r),r}function Rp(t){return parseInt(t,2)}var Ip=function(t){function e(e){t.call(this),this.matrix=e,this.row=e.length-1,this.column=e.length-1,this.startColumn=this.column,this.dir=-1,this.c=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.move=function(){this.row+=this.dir*this.c,this.c^=1,this.column=this.startColumn-this.c},e.prototype.getNextCell=function(){for(;void 0!==this.matrix[this.row][this.column];)this.move(),(this.row<0||this.row>=this.matrix.length)&&(this.dir=-this.dir,this.startColumn-=8!==this.startColumn?2:3,this.column=this.startColumn,this.row=this.dir<0?this.matrix.length-1:0);return{row:this.row,column:this.column}},e.prototype.getNextRemainderCell=function(){if(this.move(),void 0===this.matrix[this.row][this.column])return{row:this.row,column:this.column}},e}(O.Class),Bp=function(t){function e(e,r){t.call(this),this.dataString=e,this.version=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(O.Class),Lp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getEncodingResult=function(t,e){var r=function(t){var e,r=[],o=0,i=t;r.push(pc(i,8,5,8,e)),e=r[0].mode,i=i.substr(r[0].modeString.length);for(;i.length>0;){var n=pc(i,17,9,16,e);n.mode!==e?(e=n.mode,r.push(n),o++):r[o].modeString+=n.modeString,i=i.substr(n.modeString.length)}return r}(t),o=cc(function(t){for(var e,r=0,o=0;o<t.length;o++)e=Hp[t[o].mode],r+=e.getStringBitsLength(t[o].modeString.length);return Math.ceil(r/8)}(r),e),i=function(t,e){for(var r,o="",i=0;i<t.length;i++)r=Hp[t[i].mode],o+=r.encode(t[i].modeString,e);return o}(r,o);return new Bp(i,o)},e}(O.Class),Dp=function(t){function e(){t.call(this),this.initProperties()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){Tp(this,{modeIndicator:"",bitsInCharacterCount:[]})},e.prototype.getVersionIndex=function(t){return t<10?0:t>26?2:1},e.prototype.getBitsCharacterCount=function(t){return this.bitsInCharacterCount[this.getVersionIndex(t||40)]},e.prototype.getModeCountString=function(t,e){return this.modeIndicator+jp(t,this.getBitsCharacterCount(e))},e.prototype.encode=function(){},e.prototype.getStringBitsLength=function(){},e.prototype.getValue=function(){},e}(O.Class),zp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Tp(this,{bitsInCharacterCount:[10,12,14],modeIndicator:"0001"})},e.prototype.getValue=function(t){return parseInt(t,10)},e.prototype.encode=function(t,e){var r,o=Ep(t,3),i=this.getModeCountString(t.length,e);for(r=0;r<o.length-1;r++)i+=jp(o[r],10);return i+jp(o[r],1+3*o[r].length)},e.prototype.getStringBitsLength=function(t,e){var r=t%3;return 4+this.getBitsCharacterCount(e)+10*Math.floor(t/3)+3*r+(0===r?0:1)},e}(Dp),Vp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Tp(this,{characters:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:18,J:19,K:20,L:21,M:22,N:23,O:24,P:25,Q:26,R:27,S:28,T:29,U:30,V:31,W:32,X:33,Y:34,Z:35," ":36,$:37,"%":38,"*":39,"+":40,"-":41,".":42,"/":43,":":44},bitsInCharacterCount:[9,11,13],modeIndicator:"0010"})},e.prototype.getValue=function(t){return this.characters[t]},e.prototype.encode=function(t,e){var r,o=Ep(t,2),i=this.getModeCountString(t.length,e);for(r=0;r<o.length-1;r++)i+=jp(45*this.getValue(o[r].charAt(0))+this.getValue(o[r].charAt(1)),11);return i+jp(2===o[r].length?45*this.getValue(o[r].charAt(0))+this.getValue(o[r].charAt(1)):this.getValue(o[r].charAt(0)),1+5*o[r].length)},e.prototype.getStringBitsLength=function(t,e){return 4+this.getBitsCharacterCount(e)+11*Math.floor(t/2)+t%2*6},e}(Dp),Np=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Tp(this,{bitsInCharacterCount:[8,16,16],modeIndicator:"0100"})},e.prototype.getValue=function(t){var e=t.charCodeAt(0);if(e<=127||160<=e&&e<=255)return e;throw new Error('Unsupported character in QR Code: "'+t+'".')},e.prototype.encode=function(t,e){for(var r=this.getModeCountString(t.length,e),o=0;o<t.length;o++)r+=jp(this.getValue(t.charAt(o)),8);return r},e.prototype.getStringBitsLength=function(t,e){return 4+this.getBitsCharacterCount(e)+8*t},e}(Dp),Hp={};Hp.numeric=new zp,Hp.alphanumeric=new Vp,Hp.byte=new Np;var Up=function(t){function e(){t.call(this),this.initProperties(),this.mode=Hp[this.encodingMode]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){Tp(this,{encodingMode:"byte",utfBOM:"111011111011101110111111",initialModeCountStringLength:20,ranges:[128,2048,65536,2097152,67108864]})},e.prototype.getEncodingResult=function(t,e){var r=this.encode(t),o=cc(this.getDataCodewordsCount(r),e),i=this.mode.getModeCountString(r.length/8,o)+r;return new Bp(i,o)},e.prototype.getDataCodewordsCount=function(t){var e=t.length;return Math.ceil((this.initialModeCountStringLength+e)/8)},e.prototype.encode=function(t){for(var e=this.utfBOM,r=0;r<t.length;r++)e+=this.encodeCharacter(t.charCodeAt(r));return e},e.prototype.encodeCharacter=function(t){var e=this.getBytesCount(t),r=e-1,o="";if(1===e)o=jp(t,8);else{for(var i=8-e,n=0;n<r;n++)o=jp(t>>6*n&63|128,8)+o;o=(t>>6*r|255>>i<<i).toString(2)+o}return o},e.prototype.getBytesCount=function(t){for(var e=this.ranges,r=0;r<e.length;r++)if(t<e[r])return r+1},e}(O.Class),Fp=[{L:{groups:[[1,19]],totalDataCodewords:19,errorCodewordsPerBlock:7},M:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:10},Q:{groups:[[1,13]],totalDataCodewords:13,errorCodewordsPerBlock:13},H:{groups:[[1,9]],totalDataCodewords:9,errorCodewordsPerBlock:17}},{L:{groups:[[1,34]],totalDataCodewords:34,errorCodewordsPerBlock:10},M:{groups:[[1,28]],totalDataCodewords:28,errorCodewordsPerBlock:16},Q:{groups:[[1,22]],totalDataCodewords:22,errorCodewordsPerBlock:22},H:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:28}},{L:{groups:[[1,55]],totalDataCodewords:55,errorCodewordsPerBlock:15},M:{groups:[[1,44]],totalDataCodewords:44,errorCodewordsPerBlock:26},Q:{groups:[[2,17]],totalDataCodewords:34,errorCodewordsPerBlock:18},H:{groups:[[2,13]],totalDataCodewords:26,errorCodewordsPerBlock:22}},{L:{groups:[[1,80]],totalDataCodewords:80,errorCodewordsPerBlock:20},M:{groups:[[2,32]],totalDataCodewords:64,errorCodewordsPerBlock:18},Q:{groups:[[2,24]],totalDataCodewords:48,errorCodewordsPerBlock:26},H:{groups:[[4,9]],totalDataCodewords:36,errorCodewordsPerBlock:16}},{L:{groups:[[1,108]],totalDataCodewords:108,errorCodewordsPerBlock:26},M:{groups:[[2,43]],totalDataCodewords:86,errorCodewordsPerBlock:24},Q:{groups:[[2,15],[2,16]],totalDataCodewords:62,errorCodewordsPerBlock:18},H:{groups:[[2,11],[2,12]],totalDataCodewords:46,errorCodewordsPerBlock:22}},{L:{groups:[[2,68]],totalDataCodewords:136,errorCodewordsPerBlock:18},M:{groups:[[4,27]],totalDataCodewords:108,errorCodewordsPerBlock:16},Q:{groups:[[4,19]],totalDataCodewords:76,errorCodewordsPerBlock:24},H:{groups:[[4,15]],totalDataCodewords:60,errorCodewordsPerBlock:28}},{L:{groups:[[2,78]],totalDataCodewords:156,errorCodewordsPerBlock:20},M:{groups:[[4,31]],totalDataCodewords:124,errorCodewordsPerBlock:18},Q:{groups:[[2,14],[4,15]],totalDataCodewords:88,errorCodewordsPerBlock:18},H:{groups:[[4,13],[1,14]],totalDataCodewords:66,errorCodewordsPerBlock:26}},{L:{groups:[[2,97]],totalDataCodewords:194,errorCodewordsPerBlock:24},M:{groups:[[2,38],[2,39]],totalDataCodewords:154,errorCodewordsPerBlock:22},Q:{groups:[[4,18],[2,19]],totalDataCodewords:110,errorCodewordsPerBlock:22},H:{groups:[[4,14],[2,15]],totalDataCodewords:86,errorCodewordsPerBlock:26}},{L:{groups:[[2,116]],totalDataCodewords:232,errorCodewordsPerBlock:30},M:{groups:[[3,36],[2,37]],totalDataCodewords:182,errorCodewordsPerBlock:22},Q:{groups:[[4,16],[4,17]],totalDataCodewords:132,errorCodewordsPerBlock:20},H:{groups:[[4,12],[4,13]],totalDataCodewords:100,errorCodewordsPerBlock:24}},{L:{groups:[[2,68],[2,69]],totalDataCodewords:274,errorCodewordsPerBlock:18},M:{groups:[[4,43],[1,44]],totalDataCodewords:216,errorCodewordsPerBlock:26},Q:{groups:[[6,19],[2,20]],totalDataCodewords:154,errorCodewordsPerBlock:24},H:{groups:[[6,15],[2,16]],totalDataCodewords:122,errorCodewordsPerBlock:28}},{L:{groups:[[4,81]],totalDataCodewords:324,errorCodewordsPerBlock:20},M:{groups:[[1,50],[4,51]],totalDataCodewords:254,errorCodewordsPerBlock:30},Q:{groups:[[4,22],[4,23]],totalDataCodewords:180,errorCodewordsPerBlock:28},H:{groups:[[3,12],[8,13]],totalDataCodewords:140,errorCodewordsPerBlock:24}},{L:{groups:[[2,92],[2,93]],totalDataCodewords:370,errorCodewordsPerBlock:24},M:{groups:[[6,36],[2,37]],totalDataCodewords:290,errorCodewordsPerBlock:22},Q:{groups:[[4,20],[6,21]],totalDataCodewords:206,errorCodewordsPerBlock:26},H:{groups:[[7,14],[4,15]],totalDataCodewords:158,errorCodewordsPerBlock:28}},{L:{groups:[[4,107]],totalDataCodewords:428,errorCodewordsPerBlock:26},M:{groups:[[8,37],[1,38]],totalDataCodewords:334,errorCodewordsPerBlock:22},Q:{groups:[[8,20],[4,21]],totalDataCodewords:244,errorCodewordsPerBlock:24},H:{groups:[[12,11],[4,12]],totalDataCodewords:180,errorCodewordsPerBlock:22}},{L:{groups:[[3,115],[1,116]],totalDataCodewords:461,errorCodewordsPerBlock:30},M:{groups:[[4,40],[5,41]],totalDataCodewords:365,errorCodewordsPerBlock:24},Q:{groups:[[11,16],[5,17]],totalDataCodewords:261,errorCodewordsPerBlock:20},H:{groups:[[11,12],[5,13]],totalDataCodewords:197,errorCodewordsPerBlock:24}},{L:{groups:[[5,87],[1,88]],totalDataCodewords:523,errorCodewordsPerBlock:22},M:{groups:[[5,41],[5,42]],totalDataCodewords:415,errorCodewordsPerBlock:24},Q:{groups:[[5,24],[7,25]],totalDataCodewords:295,errorCodewordsPerBlock:30},H:{groups:[[11,12],[7,13]],totalDataCodewords:223,errorCodewordsPerBlock:24}},{L:{groups:[[5,98],[1,99]],totalDataCodewords:589,errorCodewordsPerBlock:24},M:{groups:[[7,45],[3,46]],totalDataCodewords:453,errorCodewordsPerBlock:28},Q:{groups:[[15,19],[2,20]],totalDataCodewords:325,errorCodewordsPerBlock:24},H:{groups:[[3,15],[13,16]],totalDataCodewords:253,errorCodewordsPerBlock:30}},{L:{groups:[[1,107],[5,108]],totalDataCodewords:647,errorCodewordsPerBlock:28},M:{groups:[[10,46],[1,47]],totalDataCodewords:507,errorCodewordsPerBlock:28},Q:{groups:[[1,22],[15,23]],totalDataCodewords:367,errorCodewordsPerBlock:28},H:{groups:[[2,14],[17,15]],totalDataCodewords:283,errorCodewordsPerBlock:28}},{L:{groups:[[5,120],[1,121]],totalDataCodewords:721,errorCodewordsPerBlock:30},M:{groups:[[9,43],[4,44]],totalDataCodewords:563,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[1,23]],totalDataCodewords:397,errorCodewordsPerBlock:28},H:{groups:[[2,14],[19,15]],totalDataCodewords:313,errorCodewordsPerBlock:28}},{L:{groups:[[3,113],[4,114]],totalDataCodewords:795,errorCodewordsPerBlock:28},M:{groups:[[3,44],[11,45]],totalDataCodewords:627,errorCodewordsPerBlock:26},Q:{groups:[[17,21],[4,22]],totalDataCodewords:445,errorCodewordsPerBlock:26},H:{groups:[[9,13],[16,14]],totalDataCodewords:341,errorCodewordsPerBlock:26}},{L:{groups:[[3,107],[5,108]],totalDataCodewords:861,errorCodewordsPerBlock:28},M:{groups:[[3,41],[13,42]],totalDataCodewords:669,errorCodewordsPerBlock:26},Q:{groups:[[15,24],[5,25]],totalDataCodewords:485,errorCodewordsPerBlock:30},H:{groups:[[15,15],[10,16]],totalDataCodewords:385,errorCodewordsPerBlock:28}},{L:{groups:[[4,116],[4,117]],totalDataCodewords:932,errorCodewordsPerBlock:28},M:{groups:[[17,42]],totalDataCodewords:714,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[6,23]],totalDataCodewords:512,errorCodewordsPerBlock:28},H:{groups:[[19,16],[6,17]],totalDataCodewords:406,errorCodewordsPerBlock:30}},{L:{groups:[[2,111],[7,112]],totalDataCodewords:1006,errorCodewordsPerBlock:28},M:{groups:[[17,46]],totalDataCodewords:782,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[16,25]],totalDataCodewords:568,errorCodewordsPerBlock:30},H:{groups:[[34,13]],totalDataCodewords:442,errorCodewordsPerBlock:24}},{L:{groups:[[4,121],[5,122]],totalDataCodewords:1094,errorCodewordsPerBlock:30},M:{groups:[[4,47],[14,48]],totalDataCodewords:860,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[14,25]],totalDataCodewords:614,errorCodewordsPerBlock:30},H:{groups:[[16,15],[14,16]],totalDataCodewords:464,errorCodewordsPerBlock:30}},{L:{groups:[[6,117],[4,118]],totalDataCodewords:1174,errorCodewordsPerBlock:30},M:{groups:[[6,45],[14,46]],totalDataCodewords:914,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[16,25]],totalDataCodewords:664,errorCodewordsPerBlock:30},H:{groups:[[30,16],[2,17]],totalDataCodewords:514,errorCodewordsPerBlock:30}},{L:{groups:[[8,106],[4,107]],totalDataCodewords:1276,errorCodewordsPerBlock:26},M:{groups:[[8,47],[13,48]],totalDataCodewords:1e3,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[22,25]],totalDataCodewords:718,errorCodewordsPerBlock:30},H:{groups:[[22,15],[13,16]],totalDataCodewords:538,errorCodewordsPerBlock:30}},{L:{groups:[[10,114],[2,115]],totalDataCodewords:1370,errorCodewordsPerBlock:28},M:{groups:[[19,46],[4,47]],totalDataCodewords:1062,errorCodewordsPerBlock:28},Q:{groups:[[28,22],[6,23]],totalDataCodewords:754,errorCodewordsPerBlock:28},H:{groups:[[33,16],[4,17]],totalDataCodewords:596,errorCodewordsPerBlock:30}},{L:{groups:[[8,122],[4,123]],totalDataCodewords:1468,errorCodewordsPerBlock:30},M:{groups:[[22,45],[3,46]],totalDataCodewords:1128,errorCodewordsPerBlock:28},Q:{groups:[[8,23],[26,24]],totalDataCodewords:808,errorCodewordsPerBlock:30},H:{groups:[[12,15],[28,16]],totalDataCodewords:628,errorCodewordsPerBlock:30}},{L:{groups:[[3,117],[10,118]],totalDataCodewords:1531,errorCodewordsPerBlock:30},M:{groups:[[3,45],[23,46]],totalDataCodewords:1193,errorCodewordsPerBlock:28},Q:{groups:[[4,24],[31,25]],totalDataCodewords:871,errorCodewordsPerBlock:30},H:{groups:[[11,15],[31,16]],totalDataCodewords:661,errorCodewordsPerBlock:30}},{L:{groups:[[7,116],[7,117]],totalDataCodewords:1631,errorCodewordsPerBlock:30},M:{groups:[[21,45],[7,46]],totalDataCodewords:1267,errorCodewordsPerBlock:28},Q:{groups:[[1,23],[37,24]],totalDataCodewords:911,errorCodewordsPerBlock:30},H:{groups:[[19,15],[26,16]],totalDataCodewords:701,errorCodewordsPerBlock:30}},{L:{groups:[[5,115],[10,116]],totalDataCodewords:1735,errorCodewordsPerBlock:30},M:{groups:[[19,47],[10,48]],totalDataCodewords:1373,errorCodewordsPerBlock:28},Q:{groups:[[15,24],[25,25]],totalDataCodewords:985,errorCodewordsPerBlock:30},H:{groups:[[23,15],[25,16]],totalDataCodewords:745,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[3,116]],totalDataCodewords:1843,errorCodewordsPerBlock:30},M:{groups:[[2,46],[29,47]],totalDataCodewords:1455,errorCodewordsPerBlock:28},Q:{groups:[[42,24],[1,25]],totalDataCodewords:1033,errorCodewordsPerBlock:30},H:{groups:[[23,15],[28,16]],totalDataCodewords:793,errorCodewordsPerBlock:30}},{L:{groups:[[17,115]],totalDataCodewords:1955,errorCodewordsPerBlock:30},M:{groups:[[10,46],[23,47]],totalDataCodewords:1541,errorCodewordsPerBlock:28},Q:{groups:[[10,24],[35,25]],totalDataCodewords:1115,errorCodewordsPerBlock:30},H:{groups:[[19,15],[35,16]],totalDataCodewords:845,errorCodewordsPerBlock:30}},{L:{groups:[[17,115],[1,116]],totalDataCodewords:2071,errorCodewordsPerBlock:30},M:{groups:[[14,46],[21,47]],totalDataCodewords:1631,errorCodewordsPerBlock:28},Q:{groups:[[29,24],[19,25]],totalDataCodewords:1171,errorCodewordsPerBlock:30},H:{groups:[[11,15],[46,16]],totalDataCodewords:901,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[6,116]],totalDataCodewords:2191,errorCodewordsPerBlock:30},M:{groups:[[14,46],[23,47]],totalDataCodewords:1725,errorCodewordsPerBlock:28},Q:{groups:[[44,24],[7,25]],totalDataCodewords:1231,errorCodewordsPerBlock:30},H:{groups:[[59,16],[1,17]],totalDataCodewords:961,errorCodewordsPerBlock:30}},{L:{groups:[[12,121],[7,122]],totalDataCodewords:2306,errorCodewordsPerBlock:30},M:{groups:[[12,47],[26,48]],totalDataCodewords:1812,errorCodewordsPerBlock:28},Q:{groups:[[39,24],[14,25]],totalDataCodewords:1286,errorCodewordsPerBlock:30},H:{groups:[[22,15],[41,16]],totalDataCodewords:986,errorCodewordsPerBlock:30}},{L:{groups:[[6,121],[14,122]],totalDataCodewords:2434,errorCodewordsPerBlock:30},M:{groups:[[6,47],[34,48]],totalDataCodewords:1914,errorCodewordsPerBlock:28},Q:{groups:[[46,24],[10,25]],totalDataCodewords:1354,errorCodewordsPerBlock:30},H:{groups:[[2,15],[64,16]],totalDataCodewords:1054,errorCodewordsPerBlock:30}},{L:{groups:[[17,122],[4,123]],totalDataCodewords:2566,errorCodewordsPerBlock:30},M:{groups:[[29,46],[14,47]],totalDataCodewords:1992,errorCodewordsPerBlock:28},Q:{groups:[[49,24],[10,25]],totalDataCodewords:1426,errorCodewordsPerBlock:30},H:{groups:[[24,15],[46,16]],totalDataCodewords:1096,errorCodewordsPerBlock:30}},{L:{groups:[[4,122],[18,123]],totalDataCodewords:2702,errorCodewordsPerBlock:30},M:{groups:[[13,46],[32,47]],totalDataCodewords:2102,errorCodewordsPerBlock:28},Q:{groups:[[48,24],[14,25]],totalDataCodewords:1502,errorCodewordsPerBlock:30},H:{groups:[[42,15],[32,16]],totalDataCodewords:1142,errorCodewordsPerBlock:30}},{L:{groups:[[20,117],[4,118]],totalDataCodewords:2812,errorCodewordsPerBlock:30},M:{groups:[[40,47],[7,48]],totalDataCodewords:2216,errorCodewordsPerBlock:28},Q:{groups:[[43,24],[22,25]],totalDataCodewords:1582,errorCodewordsPerBlock:30},H:{groups:[[10,15],[67,16]],totalDataCodewords:1222,errorCodewordsPerBlock:30}},{L:{groups:[[19,118],[6,119]],totalDataCodewords:2956,errorCodewordsPerBlock:30},M:{groups:[[18,47],[31,48]],totalDataCodewords:2334,errorCodewordsPerBlock:28},Q:{groups:[[34,24],[34,25]],totalDataCodewords:1666,errorCodewordsPerBlock:30},H:{groups:[[20,15],[61,16]],totalDataCodewords:1276,errorCodewordsPerBlock:30}}],Gp={1:0},Wp={0:1},Kp={15:20,16:20,18:24,19:24,22:20,24:22,26:24,28:20,30:20,31:24,32:28,33:24,36:18,37:22,39:20,40:24},Xp=[1,0,1,1,1],Yp=[1,0,1],qp={L:"01",M:"00",Q:"11",H:"10"},Zp=["11101100","00010001"],Qp=[function(t,e){return(t+e)%2==0},function(t,e){return t%2==0},function(t,e){return e%3==0},function(t,e){return(t+e)%3==0},function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0},function(t,e){return t*e%2+t*e%3==0},function(t,e){return(t*e%2+t*e%3)%2==0},function(t,e){return((t+e)%2+t*e%3)%2==0}],$p=/^\d+/,Jp=new RegExp("^[A-Z $%*+./:-]+"),tc=new RegExp("^[A-Z0-9 $%*+./:-]+"),ec=new RegExp("^[^A-Z0-9 $%*+./:-]+"),rc=[[1,0],[1,25,0]];function oc(t,e,r,o){for(var i=0;i<t.length;i++)t[i][r][o]=e}function ic(t,e,r,o){for(var i=0;i<Qp.length;i++)t[i][r][o]=Qp[i](r,o)?1^e:parseInt(e,10)}function nc(t,e){for(var r=[],o=t.length-2;o>=0;o--)r[o]=t[o]^e[o];return r}function sc(t,e){for(var r=[],o=0;o<t.length;o++)for(var i=0;i<e.length;i++)void 0===r[o+i]?r[o+i]=(t[o]+(e[i]>=0?e[i]:0))%255:r[o+i]=Gp[Wp[r[o+i]]^Wp[(t[o]+e[i])%255]];return r}function ac(t,e){var r=[],o=t.length-1;do{r[o]=Wp[(t[o]+e)%255],o--}while(void 0!==t[o]);return r}function lc(t,e){var r,o,i=rc[e-1],n=new Array(e).concat(t),s=new Array(n.length-i.length).concat(i),a=t.length,l=[];for(o=0;o<a;o++)r=ac(s,Gp[n[n.length-1]]),s.splice(0,1),n=nc(r,n);for(o=n.length-1;o>=0;o--)l[e-1-o]=jp(n[o],8);return l}function pc(t,e,r,o,i){var n,s,a=$p.exec(t),l=a?a[0]:"",p=Jp.exec(t),c=p?p[0]:"",h=tc.exec(t),u=h?h[0]:"";return l&&(l.length>=e||t.length===l.length||l.length>=r&&!tc.test(t.charAt(l.length)))?(n="numeric",s=l):u&&(t.length===u.length||u.length>=o||"alphanumeric"===i)?(n="alphanumeric",s=l||c):(n="byte",s=u?u+ec.exec(t.substring(u.length))[0]:ec.exec(t)[0]),{mode:n,modeString:s}}function cc(t,e){var r=0,o=Fp.length-1,i=Math.floor(Fp.length/2);do{t<Fp[i][e].totalDataCodewords?o=i:r=i,i=r+Math.floor((o-r)/2)}while(o-r>1);return t<=Fp[r][e].totalDataCodewords?i+1:o+1}function hc(t,e,r){var o=Rp(e),i=e.length-1,n=t<<i,s=jp(t,r-i),a=function(t,e){var r=e.toString(2).length,o=t.toString(2).length,i=t;do{o=(i^=e<<o-r).toString(2).length}while(o>=r);return i}(n,o);return a=s+jp(a,i)}function uc(t,e){return parseInt(t.charAt(e),10)}function fc(t,e){var r,o,i=t[0],n=0,s=e.length;for(r=0,o=8;r<=8;r++)6!==r&&oc(t,uc(e,s-1-n++),r,o);for(r=8,o=7;o>=0;o--)6!==o&&oc(t,uc(e,s-1-n++),r,o);for(n=0,o=i.length-1,r=8;o>=i.length-8;o--)oc(t,uc(e,s-1-n++),r,o);for(oc(t,1,i.length-8,8),r=i.length-7,o=8;r<i.length;r++)oc(t,uc(e,s-1-n++),r,o)}function dc(t,e){for(var r,o,i,n=t[0].length,s=n-11,a=n-11,l=0;l<e.length;l++)r=Math.floor(l/3),o=l%3,oc(t,i=uc(e,e.length-l-1),0+r,s+o),oc(t,i,a+o,0+r)}function vc(t,e,r,o){for(var i,n=e.length+2,s=e.length+1,a=0;a<e.length;a++)for(var l=a;l<n-a;l++)oc(t,i=e[a],r+l,o+a),oc(t,i,r+a,o+l),oc(t,i,r+s-l,o+s-a),oc(t,i,r+s-a,o+s-l)}function yc(t,e,r,o){var i=r,n=o,s=t[0];do{oc(t,0,i,o),oc(t,0,r,n),i+=e[0],n+=e[1]}while(i>=0&&i<s.length)}function gc(t,e,r,o,i){e[t][o]=(e[t][o]<<1^i)%128,93===e[t][o]&&(r[t]+=40)}function mc(t,e,r,o,i,n){r[t][n]===o?i[t][n]++:(r[t][n]=o,i[t][n]>=5&&(e[t]+=3+i[t][n]-5),i[t][n]=1)}function _c(t,e){var r=Math.floor(t/e*100),o=r%5,i=Math.abs(r-o-50),n=Math.abs(r+5-o-50);return 10*Math.min(i/5,n/5)}function bc(t,e,r){var o=function(t){return t&&t.toLowerCase().indexOf("utf_8")>=0?new Up:new Lp}(r).getEncodingResult(t,e),i=o.version,n=Fp[i-1][e],s=function(t,e){for(var r,o,i,n,s,a=0,l=[],p=[],c=e.groups,h=0;h<c.length;h++){i=c[h][0];for(var u=0;u<i;u++){o=c[h][1],r=[],n=[];for(var f=1;f<=o;f++)s=t.substring(a,a+8),r.push(s),n[o-f]=Rp(s),a+=8;l.push(r),p.push(lc(n,e.errorCodewordsPerBlock))}}return[l,p]}(function(t,e){for(var r=8*e,o=0,i=0,n=t;n.length<r&&o<"0000".length;)n+="0000".charAt(o++);for(n.length%8!=0&&(n+=new Array(9-n.length%8).join("0"));n.length<r;)n+=Zp[i],i^=1;return n}(o.dataString,n.totalDataCodewords),n),a=function(t){for(var e=[],r=17+4*t,o=0;o<Qp.length;o++){e[o]=new Array(r);for(var i=0;i<r;i++)e[o][i]=new Array(r)}return e}(i);!function(t){var e=t[0].length;vc(t,Xp,0,0),yc(t,[-1,-1],7,7),vc(t,Xp,e-7,0),yc(t,[1,-1],e-8,7),vc(t,Xp,0,e-7),yc(t,[-1,1],7,e-8)}(a),function(t,e){if(!(e<2)){var r,o,i=t[0],n=i.length,s=Math.floor(e/7),a=[6],l=0;for((r=Kp[e])?o=(n-13-r)/s:r=o=(n-13)/(s+1),a.push(a[l++]+r);a[l]+o<n;)a.push(a[l++]+o);for(var p=0;p<a.length;p++)for(var c=0;c<a.length;c++)void 0===i[a[p]][a[c]]&&vc(t,Yp,a[p]-2,a[c]-2)}}(a,i),function(t){for(var e=1,r=t[0].length,o=8;o<r-8;o++)oc(t,e,6,o),oc(t,e,o,6),e^=1}(a),i>=7&&dc(a,jp(0,18)),fc(a,jp(0,15)),function(t,e){for(var r,o,i,n=new Ip(t[0]),s=0;s<e.length;s++)for(r=e[s],o=0;r.length>0;){for(var a=0;a<r.length;a++)for(var l=0;l<8;l++)i=n.getNextCell(),ic(t,r[a][o].charAt(l),i.row,i.column);for(o++;r[0]&&o===r[0].length;)r.splice(0,1)}for(;i=n.getNextRemainderCell();)ic(t,0,i.row,i.column)}(a,s);var l=function(t){var e,r,o=[],i=[],n=[],s=[],a=[],l=t[0].length;for(r=0;r<t.length;r++)o[r]=0,n[r]=0,a[r]=[0,0],s[r]=[0,0],i[r]=[];for(var p=0;p<l;p++)for(var c=0;c<l;c++)for(var h=0;h<t.length;h++)e=t[h],n[h]+=parseInt(e[p][c],10),i[h][0]===e[p][c]&&p+1<l&&c-1>=0&&e[p+1][c]===i[h][0]&&e[p+1][c-1]===i[h][0]&&(o[h]+=3),gc(h,s,o,0,e[p][c]),gc(h,s,o,1,e[c][p]),mc(h,o,i,e[p][c],a,0),mc(h,o,i,e[c][p],a,1);var u,f=l*l,d=Number.MAX_VALUE;for(r=0;r<o.length;r++)o[r]+=_c(n[r],f),o[r]<d&&(d=o[r],u=r);return u}(a),p=a[l];return i>=7&&dc([p],function(t){return hc(t,"1111100100101",18)}(i)),fc([p],function(t){var e,r="";if(0===Rp(t))return"101010000010010";e=hc(Rp(t),"10100110111",15);for(var o=0;o<e.length;o++)r+=e.charAt(o)^"101010000010010".charAt(o);return r}(qp[e]+jp(l,3))),p}!function(){var t,e;for(e=1;e<255;e++)(t=2*Wp[e-1])>255&&(t^=285),Wp[e]=t,Gp[t]=e;t=2*Wp[e-1]^285,Wp[e]=t,Wp[-1]=0}(),function(){for(var t=2;t<=68;t++){var e=rc[t-1],r=[t,0];rc[t]=sc(e,r)}}();var xc=Math.round,wc=[[0,1],[1,1],[1,2],[2,2],[2,1],[3,1],[3,0],[2,0],[2,-1],[1,-1],[1,0]],Cc=[[0,1],[1,1],[1,0]],Oc=200,kc="L",Sc="#fff",Pc="#000",Ac=1,Mc=7,Tc=function(t){function e(e,r,o){void 0===o&&(o=Lt),t.call(this),this.options=j({},this.options,r),this.element=e,this.wrapper=this.element,this.onError=o,this._initElement(),this._initSurface(),this.setOptions(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this._destroySurface()},e.prototype._initElement=function(){x(this.element,"k-qrcode")},e.prototype._initSurface=function(){var t=this.options,e=this.surface;e&&e.options.type===t.renderAs||(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())},e.prototype._createSurface=function(){return O.drawing.Surface.create(this.surfaceElement,{type:this.options.renderAs})},e.prototype._destroySurface=function(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())},e.prototype._initSurfaceElement=function(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))},e.prototype._destroySurfaceElement=function(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)},e.prototype.redraw=function(){var t=this._getSize();this.surface.clear(),this.surface.setSize({width:t,height:t}),this.createVisual(),this.surface.draw(this.visual)},e.prototype.getSize=function(){var t=this.element,e=t.clientWidth,r=t.clientHeight,o={width:0,height:0};return e>0&&(o.width=e),r&&(o.height=r),o},e.prototype._resize=function(){this.redraw()},e.prototype.createVisual=function(){this.visual=this._render()},e.prototype.exportVisual=function(){return this._render()},e.prototype._render=function(){var t,e,r,o,i,n=this._value,s=this.options.border||{},a=this.options.padding||0,l=s.width||0;s.width=l;var p=new O.drawing.Group;try{n&&(r=bc(n,this.options.errorCorrection,this.options.encoding),i=(o=this._getSize())-2*(l+a),t=this._calculateBaseUnit(i,r.length),e=l+a+(i-r.length*t)/2,p.append(this._renderBackground(o,s)),p.append(this._renderMatrix(r,t,e)),this._hasCustomLogo()?p.append(this._renderLogo(o,t)):this._isSwiss()&&p.append(this._renderSwissCode(o,t)))}catch(t){this.onError(t)}return p},e.prototype._renderLogo=function(t,e){var r,o=xc(t/2),i=this._getLogoSize(e*Mc),n=this.options.overlay.imageUrl,s={x:o-i.width/2,y:o-i.height/2};return r=new O.geometry.Rect(new O.geometry.Point(s.x,s.y),new O.geometry.Size(i.width,i.height)),new O.drawing.Image(n,r)},e.prototype._renderSwissCode=function(t,e){var r=this._getLogoSize(e*Mc),o=(r=Math.max(r.width,r.height))/4,i=o/2,n=t/2,s={},a=new O.drawing.Group;return s.x=s.y=Math.ceil(n-e-r/2),a.append(this._renderShape(s,Math.ceil(r+2*e),Cc,"#fff")),s.x=s.y=n-r/2,a.append(this._renderShape(s,r,Cc,this.options.color)),s.x=n+i-r/2,s.y=n+i+o-r/2,a.append(this._renderShape(s,o,wc,"#fff")),a},e.prototype._renderShape=function(t,e,r,o){var i=new O.drawing.MultiPath({fill:{color:o},stroke:null});i.moveTo(t.x,t.y);for(var n=0;n<r.length;n++)i.lineTo(t.x+e*r[n][0],t.y+e*r[n][1]);return i.close(),i},e.prototype._getSize=function(){var t;if(this.options.size)t=parseInt(this.options.size,10);else{var e=kp(this.element,this.options.renderAs),r=Math.min(e.width,e.height);t=r>0?r:Oc}return t},e.prototype._calculateBaseUnit=function(t,e){var r=Math.floor(t/e);if(r<Ac){var o=Math.ceil(e*Ac);this.onError(new Error("Insufficient size for QR Code: the current size is "+t+"px and the minimum size is "+o+"px."))}else r*e>=t&&r-1>=Ac&&r--;return r},e.prototype._renderMatrix=function(t,e,r){for(var o=new O.drawing.MultiPath({fill:{color:this.options.color},stroke:null}),i=0;i<t.length;i++)for(var n=r+i*e,s=0;s<t.length;){for(;0===t[i][s]&&s<t.length;)s++;if(s<t.length){for(var a=s;1===t[i][s];)s++;var l=xc(r+a*e),p=xc(n),c=xc(r+s*e),h=xc(n+e);o.moveTo(l,p).lineTo(l,h).lineTo(c,h).lineTo(c,p).close()}}return o},e.prototype._renderBackground=function(t,e){var r=new Ht(0,0,t,t).unpad(e.width/2);return O.drawing.Path.fromRect(r.toRect(),{fill:{color:this.options.background},stroke:{color:e.color,width:e.width}})},e.prototype.setOptions=function(t){var e=t||{};this.options=Tp(this.options,e),void 0!==t.value&&(this._value=String(this.options.value)),this._initSurface(),this.redraw()},e.prototype.value=function(t){if(void 0===t)return this._value;this._value=String(t),this.redraw()},e.prototype._hasCustomLogo=function(){return Boolean(this.options.overlay.imageUrl)},e.prototype._isSwiss=function(){return"swiss"===this.options.overlay.type},e.prototype._getLogoSize=function(t){var e=this.options.overlay.width,r=this.options.overlay.height;return e||r?e&&!r?r=e:!e&&r&&(e=r):e=r=t,{width:e,height:r}},e}(O.Class);wt(Tc,{name:"QRCode",renderAs:"svg",encoding:"ISO_8859_1",value:"",errorCorrection:kc,background:Sc,color:Pc,size:"",padding:0,border:{color:"",width:0},overlay:{type:"image",imageUrl:"",width:0,height:0}});var Ec=Tc;var jc=function(t){return void 0===t&&(t="ISO_8859_1"),function(e){try{bc(e,"L",t)}catch(t){return{valid:!1,error:t}}return{valid:!0}}},Rc={WGS84:{a:6378137,b:6356752.314245179,f:.0033528106647474805,e:.08181919084262149}};function Ic(t){return t*t}var Bc=Math,Lc=Bc.abs,Dc=Bc.atan,zc=Bc.atan2,Vc=Bc.cos,Nc=Bc.sin,Hc=Bc.tan,Uc=function(t){function e(e,r){t.call(this),this.initProperties(),1===arguments.length?(this.lat=e[0],this.lng=e[1]):(this.lat=e,this.lng=r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){j(this,{DISTANCE_ITERATIONS:100,DISTANCE_CONVERGENCE:1e-12,DISTANCE_PRECISION:2,FORMAT:"{0:N6}{1:N6}"})},e.prototype.toArray=function(){return[this.lat,this.lng]},e.prototype.equals=function(t){return t&&t.lat===this.lat&&t.lng===this.lng},e.prototype.clone=function(){return new e(this.lat,this.lng)},e.prototype.round=function(t){return this.lng=gt(this.lng,t),this.lat=gt(this.lat,t),this},e.prototype.wrap=function(){return this.lng=this.lng%180,this.lat=this.lat%90,this},e.prototype.distanceTo=function(t,e){return this.greatCircleTo(t,e).distance},e.prototype.destination=function(t,r,o){var i=yt(r),n=o||Rc.WGS84,s=yt(this.lat),a=yt(this.lng),l=t/n.a,p=Bc.asin(Nc(s)*Vc(l)+Vc(s)*Nc(l)*Vc(i)),c=a+zc(Nc(i)*Nc(l)*Vc(s),Vc(l)-Nc(s)*Nc(p));return new e(at(p),at(c))},e.prototype.greatCircleTo=function(t,r){var o=e.create(o),i=r||Rc.WGS84;if(!o||this.clone().round(8).equals(o.clone().round(8)))return{distance:0,azimuthFrom:0,azimuthTo:0};for(var n,s,a,l,p,c,h,u,f=i.a,d=i.b,v=i.f,y=yt(o.lng-this.lng),g=Dc((1-v)*Hc(yt(this.lat))),m=Nc(g),_=Vc(g),b=Dc((1-v)*Hc(yt(o.lat))),x=Nc(b),w=Vc(b),C=y,O=this.DISTANCE_ITERATIONS,k=!1;!k&&O-- >0;){s=Nc(C),a=Vc(C),l=Bc.sqrt(Ic(w*s)+Ic(_*x-m*w*a)),u=zc(l,c=m*x+_*w*a);var S=_*w*s/l;h=0,0!==(p=1-Ic(S))&&(h=c-2*m*x/p),n=C;var P=v/16*p*(4+v*(4-3*p));C=y+(1-P)*v*S*(u+P*l*(h+P*c*(2*Ic(h)-1))),k=Lc(C-n)<=this.DISTANCE_CONVERGENCE}var A=p*(Ic(f)-Ic(d))/Ic(d),M=1+A/16384*(4096+A*(A*(320-175*A)-768)),T=A/1024*(256+A*(A*(74-47*A)-128)),E=T*l*(h+T/4*(c*(2*Ic(h)-1)-T/6*h*(4*Ic(l)-3)*(4*Ic(h)-3))),j=zc(w*s,_*x-m*w*a),R=zc(_*s,-m*w+_*x*a);return{distance:gt(d*M*(u-E),this.DISTANCE_PRECISION),azimuthFrom:at(j),azimuthTo:at(R)}},e.prototype.toString=function(){return String(this.lat)+","+String(this.lng)},e.fromLngLat=function(t){return new e(t[1],t[0])},e.fromLatLng=function(t){return new e(t[0],t[1])},e.create=function(t,r){if(st(t))return t instanceof e?t.clone():1===arguments.length&&2===t.length?e.fromLatLng(t):new e(t,r)},e}(O.Class),Fc=Math,Gc=Fc.atan,Wc=Fc.exp,Kc=Fc.pow,Xc=Fc.sin,Yc=Fc.log,qc=Fc.tan,Zc=O.geometry.Point,Qc=Fc.PI,$c=Qc/2,Jc=Qc/4,th=Qc/180,eh=Rc.WGS84,rh=function(t){function e(e){t.call(this),this.initProperties(),this._initOptions(e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initOptions=function(t){this.options=j({},this.options,t)},e.prototype.initProperties=function(){j(this,{MAX_LNG:180,MAX_LAT:85.0840590501,INVERSE_ITERATIONS:15,INVERSE_CONVERGENCE:1e-12})},e.prototype.forward=function(t,e){var r=this.options,o=r.datum.a,i=r.centralMeridian,n=dt(t.lat,-this.MAX_LAT,this.MAX_LAT),s=e?dt(t.lng,-this.MAX_LNG,this.MAX_LNG):t.lng,a=yt(s-i)*o,l=this._projectLat(n);return new Zc(a,l)},e.prototype._projectLat=function(t){var e=this.options.datum,r=e.e,o=e.a,i=yt(t),n=qc(Jc+i/2),s=r*Xc(i),a=Kc((1-s)/(1+s),r/2);return o*Yc(n*a)},e.prototype.inverse=function(t,e){var r=this.options,o=r.datum.a,i=r.centralMeridian,n=t.x/(th*o)+i,s=dt(this._inverseY(t.y),-this.MAX_LAT,this.MAX_LAT);return e&&(n=dt(n,-this.MAX_LNG,this.MAX_LNG)),new Uc(s,n)},e.prototype._inverseY=function(t){var e,r=this.options.datum,o=r.a,i=r.e,n=i/2,s=Wc(-t/o),a=$c-2*Gc(s);for(e=0;e<=this.INVERSE_ITERATIONS;e++){var l=i*Xc(a),p=Kc((1-l)/(1+l),n),c=$c-2*Gc(s*p)-a;if(a+=c,Fc.abs(c)<=this.INVERSE_CONVERGENCE)break}return at(a)},e}(O.Class);wt(rh,{centralMeridian:0,datum:eh});var oh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),j(this,{MAX_LAT:85.0511287798})},e.prototype._projectLat=function(t){var e=this.options.datum.a,r=yt(t),o=qc(Jc+r/2);return e*Yc(o)},e.prototype._inverseY=function(t){var e=this.options.datum.a,r=Wc(-t/e);return at($c-2*Gc(r))},e}(rh),ih=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.forward=function(t){return new Zc(t.lng,t.lat)},e.prototype.inverse=function(t){return new Uc(t.y,t.x)},e}(O.Class),nh=function(t){function e(){t.call(this);var e=this._proj=new oh,r=this.c=2*Qc*e.options.datum.a;this._tm=O.geometry.transform().translate(.5,.5).scale(1/r,-1/r),this._itm=O.geometry.transform().scale(r,-r).translate(-.5,-.5)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toPoint=function(t,e,r){return this._proj.forward(t,r).transform(this._tm).scale(e||1)},e.prototype.toLocation=function(t,e,r){var o=t.clone().scale(1/(e||1)).transform(this._itm);return this._proj.inverse(o,r)},e}(O.Class),sh=(function(t){function e(){t.call(this),this._proj=new rh}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toPoint=function(t){return this._proj.forward(t)},e.prototype.toLocation=function(t){return this._proj.inverse(t)}}(O.Class),function(t){function e(){t.call(this),this._proj=new ih}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toPoint=function(t){return this._proj.forward(t)},e.prototype.toLocation=function(t){return this._proj.inverse(t)}}(O.Class),Object.defineProperty),ah=(Object.assign,function(t){var e=document.createElement("div");return e.innerHTML=t,e.firstChild}),lh=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},ph=function(t,e){e.insertBefore(t,e.firstChild)},ch=function(t){return t.replace(/([a-z][A-Z])/g,(function(t){return t.charAt(0)+"-"+t.charAt(1).toLowerCase()}))},hh=function(t){return t&&String(t).endsWith("px")?t:String(t)+"px"},uh=function(t){var e,r=!1,o=[],i={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.?(\d+(\.\d+)?)?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},n={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},s={tablet:/playbook|ipad|fire/i},a={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i};for(var l in i)if(i.hasOwnProperty(l)&&(o=t.match(i[l]))){if("windows"===l&&"plugins"in navigator)return!1;(r={}).device=l,r.tablet=fh(l,s,!1),r.browser=fh(t,a,"default"),r.name=fh(l,n),r[r.name]=!0,r.majorVersion=o[2],r.minorVersion=(o[3]||"0").replace("_","."),e=r.minorVersion.replace(".","").substr(0,2),r.flatVersion=r.majorVersion+e+new Array(3-(e.length<3?e.length:2)).join("0");break}return r};function fh(t,e,r){for(var o in e)if(e.hasOwnProperty(o)&&e[o].test(t))return o;return void 0!==r?r:t}var dh=function(){var t={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"},e=vh();return e.touch&&(e.mobileOS.ios||e.mobileOS.android)?t={down:"touchstart",move:"touchmove",up:"touchend touchcancel",cancel:"touchcancel"}:e.pointers?t={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"}:e.msPointers&&(t={down:"MSPointerDown",move:"MSPointerMove",up:"MSPointerUp",cancel:"MSPointerCancel MSPointerLeave"}),t},vh=function(){var t=uh(navigator.userAgent),e=function(t){var e=!1,r=[],o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var i in o)if(o.hasOwnProperty(i)&&(r=t.match(o[i]))){(e={})[i]=!0,e[r[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,e.version=parseInt(document.documentMode||r[2],10);break}return e}(navigator.userAgent),r=e.chrome,o=e.crios,i=e.mozilla,n=e.safari,s={};s.mobileOS=t,s.touch="ontouchstart"in window,s.pointers=!r&&!o&&!i&&!n&&window.PointerEvent,s.msPointers=!r&&window.MSPointerEvent,s.mouseAndTouchPresent=s.touch&&!(s.mobileOS.ios||s.mobileOS.android),s.eventCapture=document.documentElement.addEventListener;var a=document.createElement("table"),l=s.transitions=!1,p=s.transforms=!1;return["Moz","webkit","O","ms"].forEach((function(t){var e="string"==typeof a.style[t+"Transition"];if(e||"string"==typeof a.style[t+"Transform"]){var r=t.toLowerCase();return p={css:"ms"!==r?"-"+r+"-":"",prefix:t,event:"o"===r||"webkit"===r?r:""},e&&((l=p).event=l.event?l.event+"TransitionEnd":"transitionend"),!1}})),a=null,s.transforms=p,s.transitions=l,s.delayedClick=function(){if(s.touch){if(s.mobileOS.ios)return!0;if(s.mobileOS.android){if(!s.browser.chrome)return!0;if(s.browser.version<32)return!1;var t=document.querySelector("meta[name=viewport]");return!(t?t.getAttribute("content"):"").match(/user-scalable=no/i)}}return!1},s},yh=function(t,e){return t.bind(e)};var gh=function(t,e,r,o,i){mh(t,e,r,o,i)},mh=function(t,e,r,o,i){(b(e)?e:(e||"").split(" ")).forEach((function(e){_h(t,e,r,o,i)}))},_h=function(t,e,r,o,i){var n,s=o;r&&T(r)&&!o?s=r:r&&"string"==typeof r&&T(s)&&(n=r),t.addEventListener(e,(function(e){var r=e.target?e.target.closest(n):null;if(!n||n&&e.target&&r){var o=n?r:e.currentTarget;sh(e,"currentTarget",{value:o}),sh(e,"delegateTarget",{value:t}),s(e)}}),Boolean(i))},bh=function(t,e,r,o,i){xh(t,e,r,o,i)},xh=function(t,e,r,o){(b(e)?e:(e||"").split(" ")).forEach((function(e){wh(t,e,r,o)}))},wh=function(t,e,r,o){t.removeEventListener(e,r,Boolean(o))},Ch=function(t){var e=dh(navigator.userAgent);return t.replace(/([^ ]+)/g,(function(t){return e[t]||t}))},Oh=function(t,e){var r=t.prototype;r.events?e.forEach((function(t){r.events.indexOf(t)<0&&r.events.push(t)})):r.events=e},kh=function(){return Number(new Date)},Sh=function(){},Ph=function(){this._defaultPrevented=!0},Ah=function(){return!0===this._defaultPrevented},Mh=function(t){function e(){t.call(this),this._events={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.unbind()},e.prototype.bind=function(t,e,r){var o,i,n,s,a=this,l="string"==typeof t?[t]:t||[],p="function"==typeof e;if(void 0===e){for(o in t)a.bind(o,t[o]);return a}var c=function(){var t=l[o];(s=p?e:e[t])&&(r&&(n=s,(s=function(){a.unbind(t,s),n.apply(a,arguments)}).original=n),(a._events[t]=a._events[t]||[]).push(s))};for(o=0,i=l.length;o<i;o++)c();return a},e.prototype.one=function(t,e){return this.bind(t,e,!0)},e.prototype.first=function(t,e){var r,o,i,n="string"==typeof t?[t]:t,s="function"==typeof e;for(r=0,o=n.length;r<o;r++){var a=n[r];(i=s?e:e[a])&&(this._events[a]=this._events[a]||[]).unshift(i)}return this},e.prototype.trigger=function(t,e){var r,o,i=this._events[t];if(i){var n=e||{};for(n.sender=this,n._defaultPrevented=!1,n.preventDefault=Ph,n.isDefaultPrevented=Ah,r=0,o=(i=i.slice()).length;r<o;r++)i[r].call(this,n);return!0===n._defaultPrevented}return!1},e.prototype.unbind=function(t,e){var r,o=this._events[t];if(void 0===t)this._events={};else if(o)if(e)for(r=o.length-1;r>=0;r--)o[r]!==e&&o[r].original!==e||o.splice(r,1);else this._events[t]=[];return this},e.prototype._setEvents=function(t){for(var e=(this.events||[]).length,r=0;r<e;r++){var o=this.events[r];this.options[o]&&t[o]&&(this.unbind(o,this.options[o]),this._events&&this._events[o]&&delete this._events[o])}this.bind(this.events,t)},e}(O.Class),Th=H.compile,Eh=function(t){function e(e,r){t.call(this),this.element=e,this._initOptions(r),this.items=[],x(this.element,"k-widget k-attribution")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initOptions=function(t){this.options=j({},this.options,t)},e.prototype.filter=function(t,e){this._extent=t,this._zoom=e,this._render()},e.prototype.add=function(t){var e=t;st(t)&&("string"==typeof t&&(e={text:t}),this.items.push(e),this._render())},e.prototype.remove=function(t){for(var e=[],r=0;r<this.items.length;r++){var o=this.items[r];o.text!==t&&e.push(o)}this.items=e,this._render()},e.prototype.clear=function(){this.items=[],lh(this.element)},e.prototype._render=function(){for(var t=[],e=Th(this.options.itemTemplate),r=0;r<this.items.length;r++){var o=this.items[r],i=this._itemText(o);""!==i&&t.push(e({text:i}))}t.length>0?(lh(this.element),function(t,e){var r=document.createElement("div");for(r.innerHTML=t;r.childNodes.length>0;)e.appendChild(r.childNodes[0])}(t.join(this.options.separator),this.element),this.showElement()):this.hideElement()},e.prototype.hideElement=function(){this.element.style.display="none"},e.prototype.showElement=function(){this.element.style.display=""},e.prototype._itemText=function(t){var e="",r=this._inZoomLevel(t.minZoom,t.maxZoom),o=this._inArea(t.extent);return r&&o&&(e+=t.text),e},e.prototype._inZoomLevel=function(t,e){var r=_t(t,-Number.MAX_VALUE),o=_t(e,Number.MAX_VALUE);return this._zoom>r&&this._zoom<o},e.prototype._inArea=function(t){var e=!0;return t&&(e=t.contains(this._extent)),e},e}(Mh);wt(Eh,{name:"Attribution",separator:" | ",itemTemplate:"#= text #"});var jh={up:{className:"k-navigator-n",iconClass:"k-i-arrow-n"},down:{className:"k-navigator-s",iconClass:"k-i-arrow-s"},right:{className:"k-navigator-e",iconClass:"k-i-arrow-e"},left:{className:"k-navigator-w",iconClass:"k-i-arrow-w"}};function Rh(t){var e='<button class="k-button k-button-square k-rounded-full k-button-flat k-button-flat-base k-icon-button '+jh[t].className+'" aria-label="move '+t+'"><span class="k-icon '+jh[t].iconClass+'" /></button>';return ah(e)}var Ih=function(t){function e(e,r){t.call(this),this.element=e,this._initOptions(r);var o=Rh("up"),i=Rh("right"),n=Rh("down"),s=Rh("left");this.element.appendChild(o),this.element.appendChild(i),this.element.appendChild(n),this.element.appendChild(s),x(this.element,"k-widget k-navigator"),gh(this.element,"click",".k-button",yh(this._click,this));var a=this.element.parentNode.closest("[data-role]");this._keyroot=a||this.element,this._tabindex(this._keyroot),this._keydownHandler=yh(this._keydown,this),gh(this._keyroot,"keydown",this._keydownHandler)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.dispose()},e.prototype.dispose=function(){bh(this._keyroot,"keydown",this._keydownHandler)},e.prototype._tabindex=function(t){var e=t||this.wrapper||this.element,r=this.element,o=e.getAttribute("tabindex")||r.getAttribute("tabindex");r.removeAttribute("tabindex"),e.setAttribute("tabindex",isNaN(o)?0:o)},e.prototype._initOptions=function(t){this.options=j({},this.options,t)},e.prototype._pan=function(t,e){var r=this.options.panStep;this.trigger("pan",{x:t*r,y:e*r})},e.prototype._click=function(t){var e=0,r=0,o=t.currentTarget;o.matches(".k-navigator-n")?r=1:o.matches(".k-navigator-s")?r=-1:o.matches(".k-navigator-e")?e=1:o.matches(".k-navigator-w")&&(e=-1),this._pan(e,r),t.preventDefault()},e.prototype._keydown=function(t){switch(t.which){case Dt.UP:this._pan(0,1),t.preventDefault();break;case Dt.DOWN:this._pan(0,-1),t.preventDefault();break;case Dt.RIGHT:this._pan(1,0),t.preventDefault();break;case Dt.LEFT:this._pan(-1,0),t.preventDefault()}},e}(Mh);function Bh(t,e){return ah('<button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-icon-button k-zoom-'+t+'" title="zoom-'+t+'" aria-label="zoom-'+t+'"><span class="k-icon '+e+'"></span></button>')}wt(Ih,{name:"Navigator",panStep:1}),Oh(Ih,["pan"]);var Lh=function(t){function e(e,r){t.call(this),this.element=e,this._initOptions(r);var o=Bh("in","k-i-plus"),i=Bh("out","k-i-minus");this.element.appendChild(o),this.element.appendChild(i),x(this.element,"k-widget k-zoom-control k-button-group k-group-horizontal"),this._clickHandler=this._click.bind(this),gh(this.element,"click",".k-button",this._clickHandler);var n=this.element.parentNode.closest("[data-role]");this._keyroot=n||this.element,this._tabindex(this._keyroot),this._keydownHandler=this._keydown.bind(this),gh(this._keyroot,"keydown",this._keydownHandler)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.element&&bh(this.element,"click",this._clickHandler),this._keyroot&&bh(this._keyroot,"keydown",this._keydownHandler)},e.prototype._tabindex=function(t){var e=t||this.wrapper||this.element,r=this.element,o=e.getAttribute("tabindex")||r.getAttribute("tabindex");r.removeAttribute("tabindex"),e.setAttribute("tabindex",isNaN(o)?0:o)},e.prototype._initOptions=function(t){this.options=j({},this.options,t)},e.prototype._change=function(t){var e=this.options.zoomStep;this.trigger("change",{delta:t*e})},e.prototype._click=function(t){var e=1;X(t.currentTarget,"k-zoom-out")&&(e=-1),this._change(e),t.preventDefault()},e.prototype._keydown=function(t){switch(t.which){case Dt.NUMPAD_PLUS:case 187:case 61:this._change(1);break;case Dt.NUMPAD_MINUS:case 189:case 173:this._change(-1)}},e}(Mh);wt(Lh,{name:"ZoomControl",zoomStep:1}),Oh(Lh,["change"]);var Dh=Math,zh=Dh.max,Vh=Dh.min,Nh=function(t){function e(e,r){t.call(this);var o=Uc.create(e),i=Uc.create(r);o.lng+180>i.lng+180&&o.lat+90<i.lat+90?(this.se=o,this.nw=i):(this.se=i,this.nw=o)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={World:{configurable:!0}};return e.prototype.contains=function(t){var e=this.nw,r=this.se,o=_t(t.lng,t[1]),i=_t(t.lat,t[0]);return t&&o+180>=e.lng+180&&o+180<=r.lng+180&&i+90>=r.lat+90&&i+90<=e.lat+90},e.prototype.center=function(){var t=this.nw,e=this.se,r=t.lng+(e.lng-t.lng)/2,o=t.lat+(e.lat-t.lat)/2;return new Uc(o,r)},e.prototype.containsAny=function(t){for(var e=!1,r=0;r<t.length;r++)e=e||this.contains(t[r]);return e},e.prototype.include=function(t){var e=this.nw,r=this.se,o=_t(t.lng,t[1]),i=_t(t.lat,t[0]);e.lng=Vh(e.lng,o),e.lat=zh(e.lat,i),r.lng=zh(r.lng,o),r.lat=Vh(r.lat,i)},e.prototype.includeAll=function(t){for(var e=0;e<t.length;e++)this.include(t[e])},e.prototype.edges=function(){var t=this.nw,e=this.se;return{nw:this.nw,ne:new Uc(t.lat,e.lng),se:this.se,sw:new Uc(e.lat,t.lng)}},e.prototype.toArray=function(){var t=this.nw,e=this.se;return[t,new Uc(t.lat,e.lng),e,new Uc(e.lat,t.lng)]},e.prototype.overlaps=function(t){return this.containsAny(t.toArray())||t.containsAny(this.toArray())},e.create=function(t,r){return t instanceof e?t:t&&r?new e(t,r):t&&4===t.length&&!r?new e([t[0],t[1]],[t[2],t[3]]):void 0},r.World.get=function(){return new e([90,-180],[-90,180])},Object.defineProperties(e,r),e}(O.Class),Hh=function(t){function e(e,r){t.call(this),this.support=vh(),this._initOptions(r),this.map=e;var o=document.createElement("div");x(o,"k-layer"),o.style.zIndex=this.options.zIndex,o.style.opacity=this.options.opacity,this.element=o,e.scrollElement.appendChild(this.element),this._beforeReset=this._beforeReset.bind(this),this._reset=this._reset.bind(this),this._resize=this._resize.bind(this),this._panEnd=this._panEnd.bind(this),this._activate(),this._updateAttribution()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this._deactivate()},e.prototype._initOptions=function(t){this.options=j({},this.options,t)},e.prototype.show=function(){this.reset(),this._activate(),this._applyExtent(!0)},e.prototype.hide=function(){this._deactivate(),this._setVisibility(!1)},e.prototype.reset=function(){this._beforeReset(),this._reset()},e.prototype._reset=function(){this._applyExtent()},e.prototype._beforeReset=function(){},e.prototype._resize=function(){},e.prototype._panEnd=function(){this._applyExtent()},e.prototype._applyExtent=function(){var t=this.options,e=this.map.zoom(),r=!st(t.minZoom)||e>=t.minZoom,o=!st(t.maxZoom)||e<=t.maxZoom,i=Nh.create(t.extent),n=!i||i.overlaps(this.map.extent());this._setVisibility(r&&o&&n)},e.prototype._setVisibility=function(t){this.element.style.display=t?"":"none"},e.prototype._activate=function(){var t=this.map;this._deactivate(),t.bind("beforeReset",this._beforeReset),t.bind("reset",this._reset),t.bind("resize",this._resize),t.bind("panEnd",this._panEnd)},e.prototype._deactivate=function(){var t=this.map;t.unbind("beforeReset",this._beforeReset),t.unbind("reset",this._reset),t.unbind("resize",this._resize),t.unbind("panEnd",this._panEnd)},e.prototype._updateAttribution=function(){var t=this.map.attribution;t&&t.add(this.options.attribution)},e.prototype._readData=function(){return this.options.data||[]},e.prototype._hasData=function(){return this._data&&this._data.length>0},e}(O.Class),Uh=Math,Fh=H.compile,Gh=O.geometry.Point;function Wh(t){return new Gh(gt(t.x),gt(t.y))}function Kh(t){var e=t;return"string"!=typeof t&&(e+="px"),e}var Xh=function(t){function e(e,r){t.call(this,e,r),"string"==typeof this.options.subdomains&&(this.options.subdomains=this.options.subdomains.split(""));var o=this._viewType();this._view=new o(this.element,this.options)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){t.prototype.destroy.call(this),this._view.destroy(),this._view=null},e.prototype._beforeReset=function(){var t=this.map,e=t.locationToLayer(t.extent().nw).round();this._view.viewOrigin(e)},e.prototype._reset=function(){t.prototype._reset.call(this),this._updateView(),this._view.reset()},e.prototype._viewType=function(){return Yh},e.prototype._activate=function(){t.prototype._activate.call(this),this.support.mobileOS||(this._pan||(this._pan=Object(O.throttle)(this._render.bind(this),100)),this.map.bind("pan",this._pan))},e.prototype._deactivate=function(){t.prototype._deactivate.call(this),this._pan&&this.map.unbind("pan",this._pan)},e.prototype._updateView=function(){var t=this._view,e=this.map,r=e.extent(),o={nw:e.locationToLayer(r.nw).round(),se:e.locationToLayer(r.se).round()};t.center(e.locationToLayer(e.center())),t.extent(o),t.zoom(e.zoom())},e.prototype._resize=function(){this._render()},e.prototype._panEnd=function(e){t.prototype._panEnd.call(this,e),this._render()},e.prototype._render=function(){this._updateView(),this._view.render()},e}(Hh);wt(Xh,{tileSize:256,subdomains:["a","b","c"],urlTemplate:"",zIndex:1});var Yh=function(t){function e(e,r){t.call(this),this.element=e,this._initOptions(r),this.pool=new Zh}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initOptions=function(t){this.options=j({},this.options,t)},e.prototype.center=function(t){this._center=t},e.prototype.extent=function(t){this._extent=t},e.prototype.viewOrigin=function(t){this._viewOrigin=t},e.prototype.zoom=function(t){this._zoom=t},e.prototype.pointToTileIndex=function(t){return new Gh(Uh.floor(t.x/this.options.tileSize),Uh.floor(t.y/this.options.tileSize))},e.prototype.tileCount=function(){var t=this.size(),e=this.pointToTileIndex(this._extent.nw),r=this._extent.nw,o=this.indexToPoint(e).translate(-r.x,-r.y);return{x:Uh.ceil((Uh.abs(o.x)+t.width)/this.options.tileSize),y:Uh.ceil((Uh.abs(o.y)+t.height)/this.options.tileSize)}},e.prototype.size=function(){var t=this._extent.nw,e=this._extent.se.clone().translate(-t.x,-t.y);return{width:e.x,height:e.y}},e.prototype.indexToPoint=function(t){var e=t.x,r=t.y;return new Gh(e*this.options.tileSize,r*this.options.tileSize)},e.prototype.subdomainText=function(){var t=this.options.subdomains;return t[this.subdomainIndex++%t.length]},e.prototype.destroy=function(){lh(this.element),this.pool.empty()},e.prototype.reset=function(){this.pool.reset(),this.subdomainIndex=0,this.render()},e.prototype.render=function(){var t,e,r,o=this.tileCount(),i=this.pointToTileIndex(this._extent.nw);for(e=0;e<o.x;e++)for(r=0;r<o.y;r++)(t=this.createTile({x:i.x+e,y:i.y+r})).visible||t.show()},e.prototype.createTile=function(t){var e=this.tileOptions(t),r=this.pool.get(this._center,e);return r.element.parentNode||this.element.append(r.element),r},e.prototype.tileOptions=function(t){var e=this.wrapIndex(t),r=this.indexToPoint(t),o=this._viewOrigin,i=r.clone().translate(-o.x,-o.y);return{index:e,currentIndex:t,point:r,offset:Wh(i),zoom:this._zoom,size:this.options.tileSize,subdomain:this.subdomainText(),urlTemplate:this.options.urlTemplate,errorUrlTemplate:this.options.errorUrlTemplate}},e.prototype.wrapIndex=function(t){var e=Uh.pow(2,this._zoom);return{x:this.wrapValue(t.x,e),y:dt(t.y,0,e-1)}},e.prototype.wrapValue=function(t,e){var r=Uh.abs(t)%e;return t>=0?r:e-(0===r?e:r)},e}(O.Class),qh=function(t){function e(e,r){t.call(this),this.id=e,this.visible=!0,this._initOptions(r),this.createElement(),this.show()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){var t=this.element,e=t?t.parentNode:null;t&&(e&&e.removeChild(t),this.element=null)},e.prototype._initOptions=function(t){this.options=j({},this.options,t)},e.prototype.createElement=function(){var t=document.createElement("img");x(t,"k-layer"),t.style.position="absolute",t.style.display="block",t.style.width=this.options.size,t.style.height=this.options.size,this.element=t},e.prototype.show=function(){var t=this.element;t.style.top=Kh(this.options.offset.y),t.style.left=Kh(this.options.offset.x);var e=this.url();e&&t.setAttribute("src",e),t.style.visibility="visible",this.visible=!0},e.prototype.hide=function(){this.element.style.visibility="hidden",this.visible=!1},e.prototype.url=function(){return Fh(this.options.urlTemplate)(this.urlOptions())},e.prototype.errorUrl=function(){return Fh(this.options.errorUrlTemplate)(this.urlOptions())},e.prototype.urlOptions=function(){var t=this.options;return{zoom:t.zoom,subdomain:t.subdomain,z:t.zoom,x:t.index.x,y:t.index.y,s:t.subdomain,quadkey:t.quadkey,q:t.quadkey,culture:t.culture,c:t.culture}},e}(O.Class);wt(qh,{urlTemplate:"",errorUrlTemplate:""});var Zh=function(t){function e(){t.call(this),this._items=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this._items.length>=this.options.maxSize&&this._remove(t),this._create(e)},e.prototype.empty=function(){for(var t=this._items,e=0;e<t.length;e++)t[e].destroy();this._items=[]},e.prototype.reset=function(){for(var t=this._items,e=0;e<t.length;e++)t[e].hide()},e.prototype._create=function(t){for(var e,r=this._items,o=ut(t.point.toString()+t.offset.toString()+t.zoom+t.urlTemplate),i=0;i<r.length;i++)if(r[i].id===o){e=r[i];break}return e?e.show():(e=new qh(o,t),this._items.push(e)),e},e.prototype._remove=function(t){for(var e=this._items,r=-1,o=-1,i=0;i<e.length;i++){var n=e[i].options.point.distanceTo(t);n>r&&!e[i].visible&&(o=i,r=n)}-1!==o&&(e[o].destroy(),e.splice(o,1))},e}(O.Class);wt(Zh,{maxSize:100});var Qh=Object.assign,$h=function(t){function e(e,r){t.call(this);var o=this,i=e[0]||e;o.capture=!1;var n=dh(navigator.userAgent);i.addEventListener?(n.down.split(" ").forEach((function(t){i.addEventListener(t,yh(o._press,o),!0)})),n.up.split(" ").forEach((function(t){i.addEventListener(t,yh(o._release,o),!0)}))):(n.down.split(" ").forEach((function(t){i.attachEvent(t,yh(o._press,o))})),n.up.split(" ").forEach((function(t){i.attachEvent(t,yh(o._release,o))}))),o.bind(["press","release"],r||{})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.captureNext=function(){this.capture=!0},e.prototype.cancelCapture=function(){this.capture=!1},e.prototype._press=function(t){this.trigger("press"),this.capture&&t.preventDefault()},e.prototype._release=function(t){this.trigger("release"),this.capture&&(t.preventDefault(),this.cancelCapture())},e}(Mh),Jh=function(t){function e(e){t.call(this);this.forcedEnabled=!1,Qh(this,e),this.scale=1,this.horizontal?(this.measure="offsetWidth",this.scrollSize="scrollWidth",this.axis="x"):(this.measure="offsetHeight",this.scrollSize="scrollHeight",this.axis="y")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.makeVirtual=function(){Qh(this,{virtual:!0,forcedEnabled:!0,_virtualMin:0,_virtualMax:0})},e.prototype.virtualSize=function(t,e){this._virtualMin===t&&this._virtualMax===e||(this._virtualMin=t,this._virtualMax=e,this.update())},e.prototype.outOfBounds=function(t){return t>this.max||t<this.min},e.prototype.forceEnabled=function(){this.forcedEnabled=!0},e.prototype.getSize=function(){return this.container[this.measure]},e.prototype.getTotal=function(){return this.element[this.scrollSize]},e.prototype.rescale=function(t){this.scale=t},e.prototype.update=function(t){var e=this.virtual?this._virtualMax:this.getTotal(),r=e*this.scale,o=this.getSize();(0!==e||this.forcedEnabled)&&(this.max=this.virtual?-this._virtualMin:0,this.size=o,this.total=r,this.min=Math.min(this.max,o-r),this.minScale=o/e,this.centerOffset=(r-o)/2,this.enabled=this.forcedEnabled||r>o,t||this.trigger("change",this))},e}(Mh),tu=function(t){function e(e){t.call(this);this.x=new Jh(Qh({horizontal:!0},e)),this.y=new Jh(Qh({horizontal:!1},e)),this.container=e.container,this.forcedMinScale=e.minScale,this.maxScale=e.maxScale||100,this.bind("change",e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.rescale=function(t){this.x.rescale(t),this.y.rescale(t),this.refresh()},e.prototype.centerCoordinates=function(){return{x:Math.min(0,-this.x.centerOffset),y:Math.min(0,-this.y.centerOffset)}},e.prototype.refresh=function(){this.x.update(),this.y.update(),this.enabled=this.x.enabled||this.y.enabled,this.minScale=this.forcedMinScale||Math.min(this.x.minScale,this.y.minScale),this.fitScale=Math.max(this.x.minScale,this.y.minScale),this.trigger("change")},e}(Mh),eu=function(t){function e(e){t.call(this),Qh(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.outOfBounds=function(){return this.dimension.outOfBounds(this.movable[this.axis])},e.prototype.dragMove=function(t){var e=this.dimension,r=this.axis,o=this.movable,i=o[r]+t;if(e.enabled){var n=t;(i<e.min&&t<0||i>e.max&&t>0)&&(n*=this.resistance),o.translateAxis(r,n),this.trigger("change",this)}},e}(Mh),ru=function(t){function e(e){t.call(this);var r,o,i,n,s=this;Qh(s,{elastic:!0},e),i=s.elastic?.5:0,n=s.movable,s.x=r=new eu({axis:"x",dimension:s.dimensions.x,resistance:i,movable:n}),s.y=o=new eu({axis:"y",dimension:s.dimensions.y,resistance:i,movable:n}),s.userEvents.bind(["press","move","end","gesturestart","gesturechange"],{gesturestart:function(t){s.gesture=t,s.offset=lt(s.dimensions.container)},press:function(t){var e=t.event.target.closest("a");e&&e.matches("[data-navigate-on-press=true]")&&t.sender.cancel()},gesturechange:function(t){var e,i=s.gesture,a=i.center,l=t.center,p=t.distance/i.distance,c=s.dimensions.minScale,h=s.dimensions.maxScale;n.scale<=c&&p<1&&(p+=.8*(1-p)),n.scale*p>=h&&(p=h/n.scale);var u=n.x+s.offset.left,f=n.y+s.offset.top;e={x:(u-a.x)*p+l.x-u,y:(f-a.y)*p+l.y-f},n.scaleWith(p),r.dragMove(e.x),o.dragMove(e.y),s.dimensions.rescale(n.scale),s.gesture=t,t.preventDefault()},move:function(t){t.event.target.tagName.match(/textarea|input/i)||(r.dimension.enabled||o.dimension.enabled?(r.dragMove(t.x.delta),o.dragMove(t.y.delta),t.preventDefault()):t.touch.skip())},end:function(t){t.preventDefault()}})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(O.Class),ou=function(t,e,r){return"translate3d("+t+"px,"+e+"px,0) scale("+r+")"},iu=function(t){function e(e){t.call(this);this.support=vh(),this.transformStyle=this.support.transitions.prefix+"Transform",this.element=e,this.element.style.webkitTransformOrigin="left top",this.x=0,this.y=0,this.scale=1;var r=ou(this.x,this.y,this.scale);this.element.style[this.transformStyle]=r,this._saveCoordinates(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.translateAxis=function(t,e){this[t]+=e,this.refresh()},e.prototype.scaleTo=function(t){this.scale=t,this.refresh()},e.prototype.scaleWith=function(t){this.scale*=t,this.refresh()},e.prototype.translate=function(t){this.x+=t.x,this.y+=t.y,this.refresh()},e.prototype.moveAxis=function(t,e){this[t]=e,this.refresh()},e.prototype.moveTo=function(t){Qh(this,t),this.refresh()},e.prototype.refresh=function(){var t,e=this.x,r=this.y;this.round&&(e=Math.round(e),r=Math.round(r)),(t=ou(e,r,this.scale))!==this.coordinates&&(this.element.style[this.transformStyle]=t,this._saveCoordinates(t),this.trigger("change"))},e.prototype._saveCoordinates=function(t){this.coordinates=t},e}(Mh),nu=O.drawing.Group,su=function(t){function e(e,r){t.call(this,e,r),this._pan=yh(this._pan,this),this.surface=O.drawing.Surface.create(this.element,{width:e.scrollElement.clientWidth,height:e.scrollElement.clientHeight}),this._initRoot(),this.movable=new iu(this.surface.element),this._markers=[],this._click=this._handler("shapeClick"),this.surface.bind("click",this._click),this._mouseenter=this._handler("shapeMouseEnter"),this.surface.bind("mouseenter",this._mouseenter),this._mouseleave=this._handler("shapeMouseLeave"),this.surface.bind("mouseleave",this._mouseleave)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){t.prototype.destroy.call(this),this.surface.destroy()},e.prototype._reset=function(){t.prototype._reset.call(this),this._translateSurface(),this._data=this._readData(),this._hasData()&&this._load(this._data)},e.prototype._initRoot=function(){this._root=new nu,this.surface.draw(this._root)},e.prototype._beforeReset=function(){this.surface.clear(),this._initRoot()},e.prototype._resize=function(){this.surface.size(this.map.size())},e.prototype._readData=function(){var e=t.prototype._readData.call(this);return"FeatureCollection"===e.type?e.features:"GeometryCollection"===e.type?e.geometries:e},e.prototype._load=function(t){this._data=t,this._clearMarkers(),this._loader||(this._loader=new au(this.map,this.options.style,this));for(var e=new nu,r=0;r<t.length;r++){var o=this._loader.parse(t[r]);o&&e.append(o)}this._root.clear(),this._root.append(e)},e.prototype.shapeCreated=function(t){var e=!1;if(t instanceof O.drawing.Circle&&this.map.options.renderPointsAsMarkers&&(e=st(this._createMarker(t))),!e){var r={layer:this,shape:t};e=this.map.trigger("shapeCreated",r)}return e},e.prototype.featureCreated=function(t){t.layer=this,this.map.trigger("shapeFeatureCreated",t)},e.prototype._createMarker=function(t){var e=this.map.markers.bind({location:t.location},t.dataItem);return e&&this._markers.push(e),e},e.prototype._clearMarkers=function(){for(var t=0;t<this._markers.length;t++)this.map.markers.remove(this._markers[t]);this._markers=[]},e.prototype._pan=function(){this._panning||(this._panning=!0,this.surface.suspendTracking())},e.prototype._panEnd=function(e){t.prototype._panEnd.call(this,e),this._translateSurface(),this.surface.resumeTracking(),this._panning=!1},e.prototype._translateSurface=function(){var t=this.map,e=t.locationToView(t.extent().nw);this.surface.translate&&(this.surface.translate(e),this.movable.moveTo({x:e.x,y:e.y}))},e.prototype._handler=function(t){var e=this;return function(r){if(r.element){var o={layer:e,layerIndex:(e.map.layers||[]).indexOf(e),shape:r.element,shapeIndex:(e._data||[]).indexOf(r.element.dataItem),originalEvent:r.originalEvent};e.map.trigger(t,o)}}},e.prototype._activate=function(){t.prototype._activate.call(this),this._panHandler=yh(this._pan,this),this.map.bind("pan",this.panHandler)},e.prototype._deactivate=function(){t.prototype._deactivate.call(this),this.map.unbind("pan",this._panHandler)},e}(Hh);wt(su,{autoBind:!0,zIndex:100});var au=function(t){function e(e,r,o){t.call(this),this.observer=o,this.locator=e,this.style=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){var e=new nu,r=!0;return"Feature"===t.type?(r=!1,this._loadGeometryTo(e,t.geometry,t),this._featureCreated(e,t)):this._loadGeometryTo(e,t,t),r&&e.children.length<2&&(e=e.children[0]),e},e.prototype._shapeCreated=function(t){var e=!1;return this.observer&&this.observer.shapeCreated&&(e=this.observer.shapeCreated(t)),e},e.prototype._featureCreated=function(t,e){this.observer&&this.observer.featureCreated&&this.observer.featureCreated({group:t,dataItem:e,properties:e.properties})},e.prototype._loadGeometryTo=function(t,e,r){var o,i,n=e.coordinates;switch(e.type){case"LineString":i=this._loadPolygon(t,[n],r),this._setLineFill(i);break;case"MultiLineString":for(o=0;o<n.length;o++)i=this._loadPolygon(t,[n[o]],r),this._setLineFill(i);break;case"Polygon":this._loadPolygon(t,n,r);break;case"MultiPolygon":for(o=0;o<n.length;o++)this._loadPolygon(t,n[o],r);break;case"Point":this._loadPoint(t,n,r);break;case"MultiPoint":for(o=0;o<n.length;o++)this._loadPoint(t,n[o],r)}},e.prototype._setLineFill=function(t){var e=t.segments;(e.length<4||!e[0].anchor().equals(ft(e).anchor()))&&(t.options.fill=null)},e.prototype._loadShape=function(t,e){return this._shapeCreated(e)||t.append(e),e},e.prototype._loadPolygon=function(t,e,r){var o=this._buildPolygon(e);return o.dataItem=r,this._loadShape(t,o)},e.prototype._buildPolygon=function(t){for(var e=new(t.length>1?O.drawing.MultiPath:O.drawing.Path)(this.style),r=0;r<t.length;r++)for(var o=0;o<t[r].length;o++){var i=this.locator.locationToView(Uc.fromLngLat(t[r][o]));0===o?e.moveTo(i.x,i.y):e.lineTo(i.x,i.y)}return e},e.prototype._loadPoint=function(t,e,r){var o=Uc.fromLngLat(e),i=this.locator.locationToView(o),n=new O.geometry.Circle(i,10),s=new O.drawing.Circle(n,this.style);return s.dataItem=r,s.location=o,this._loadShape(t,s)},e}(O.Class),lu=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._readData=function(){return this.options.data||[]},e.prototype._load=function(t){if(this._data=t,this.surface.clear(),0!==t.length){var e=this.options,r=W(e.valueField),o=t.slice(0);o.sort((function(t,e){return r(e)-r(t)}));for(var i,n=this._scaleType(),s=W(this.options.locationField),a=0;a<o.length;a++){var l=o[a],p=s(l),c=r(l);if(st(p)&&st(c)){i||(i=new n([0,c],[e.minSize,e.maxSize])),p=Uc.create(p);var h=this.map.locationToView(p),u=i.map(c),f=this._createSymbol({center:h,size:u,style:e.style,dataItem:l,location:p});f.dataItem=l,f.location=p,f.value=c,this._drawSymbol(f)}}}},e.prototype._scaleType=function(){var t=this.options.scale;return T(t)?t:pu[t]},e.prototype._createSymbol=function(t){var e=this.options.symbol;return T(e)||(e=cu[e]),e(t)},e.prototype._drawSymbol=function(t){var e={layer:this,shape:t};this.map.trigger("shapeCreated",e)||this.surface.draw(t)},e}(su);wt(lu,{locationField:"location",valueField:"value",minSize:0,maxSize:100,scale:"sqrt",symbol:"circle",zIndex:200});var pu={sqrt:function(t){function e(e,r){t.call(this),this._domain=e,this._range=r;var o=Math.sqrt(e[1])-Math.sqrt(e[0]),i=r[1]-r[0];this._ratio=i/o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.map=function(t){var e=(Math.sqrt(t)-Math.sqrt(this._domain[0]))*this._ratio;return this._range[0]+e},e}(O.Class)},cu={circle:function(t){var e=new O.geometry.Circle(t.center,t.size/2);return new O.drawing.Circle(e,t.style)},square:function(t){var e=new O.drawing.Path(t.style),r=t.size/2,o=t.center;return e.moveTo(o.x-r,o.y-r).lineTo(o.x+r,o.y-r).lineTo(o.x+r,o.y+r).lineTo(o.x-r,o.y+r).close(),e}},hu=Object.assign,uu=function(t){function e(e,r){t.call(this,e,r),this._markerClickHandler=yh(this._markerClick,this),gh(this.element,"click",".k-marker",this._markerClickHandler),this.items=[],this._load(this._readData())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){t.prototype.destroy.call(this),bh(this.element,"click",this._markerClickHandler),this.clear()},e.prototype.add=function(t){if(!b(t))return this._addOne(t);for(var e=0;e<t.length;e++)this._addOne(t[e])},e.prototype.remove=function(t){t.destroy();var e=(this.items||[]).indexOf(t);e>-1&&this.items.splice(e,1)},e.prototype.clear=function(){for(var t=0;t<this.items.length;t++)this.items[t].destroy();this.items=[]},e.prototype.update=function(t){var e=t.location();if(e){t.showAt(this.map.locationToView(e));var r={marker:t,layer:this};this.map.trigger("markerActivate",r)}},e.prototype._reset=function(){t.prototype._reset.call(this);for(var e=this.items,r=0;r<e.length;r++)this.update(e[r])},e.prototype.bind=function(t,e){var r=fu.create(t,this.options);r.dataItem=e;var o={marker:r,layer:this};if(!this.map.trigger("markerCreated",o))return this.add(r),r},e.prototype._addOne=function(t){var e=fu.create(t,this.options);return e.addTo(this),e},e.prototype._readData=function(){return this.options.data||[]},e.prototype._load=function(t){this._data=t,this.clear();for(var e=W(this.options.locationField),r=W(this.options.titleField),o=0;o<t.length;o++){var i=t[o];this.bind({location:e(i),title:r(i)},i)}},e.prototype._markerClick=function(t){var e=this.map.layers||[],r=t.target._kendoNode,o={layer:this,layerIndex:e.indexOf(this),marker:r,markerIndex:(this.items||[]).indexOf(r),originalEvent:t};this.map.trigger("markerClick",o)},e.prototype._markerMouseEnter=function(t){var e=this._createMarkerEventArgs(t);this.map.trigger("markerMouseEnter",e)},e.prototype._markerMouseLeave=function(t){var e=this._createMarkerEventArgs(t);this.map.trigger("markerMouseLeave",e)},e.prototype._createMarkerEventArgs=function(t){var e=t.marker;return hu({},{layer:this,layerIndex:this.map.layers.indexOf(this),marker:e,markerIndex:(this.items||[]).indexOf(e)},t)},e}(Hh);wt(uu,{zIndex:1e3,autoBind:!0,locationField:"location",titleField:"title"});var fu=function(t){function e(e){t.call(this),this.options=e||{}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.layer=null,this.unbindEvents(),this.hide()},e.prototype.addTo=function(t){this.layer=t.markers||t,this.layer.items.push(this),this.layer.update(this)},e.prototype.location=function(t){return t?(this.options.location=Uc.create(t).toArray(),this.layer&&this.layer.update(this),this):Uc.create(this.options.location)},e.prototype.showAt=function(t){this.render(),this.element.style.left=hh(Math.round(t.x)),this.element.style.top=hh(Math.round(t.y)),this.tooltip&&this.tooltip.popup&&this.tooltip.popup._position()},e.prototype.hide=function(){this.element&&(this.element.remove(),this.element=null),this.tooltip&&(this.tooltip.destroy(),this.tooltip=null)},e.prototype.bindEvents=function(){this.element&&(this._mouseEnterHandler=yh(this._mouseEnter,this),gh(this.element,"mouseenter",".k-marker",this._mouseEnterHandler),this._mouseLeaveHandler=yh(this._mouseLeave,this),gh(this.element,"mouseleave",".k-marker",this._mouseLeaveHandler))},e.prototype.unbindEvents=function(){this.element&&(bh(this.element,"mouseenter",this._mouseEnterHandler),bh(this.element,"mouseleave",this._mouseLeaveHandler))},e.prototype.render=function(){if(!this.element){var t=this.options,e=this.layer,r=document.createElement("span");x(r,"k-marker k-icon k-i-marker-"+ch(t.shape||"pin")),r.setAttribute("title",t.title);var o=t.attributes||{};Object.keys(o).forEach((function(t){r.setAttributett(t,o[t])})),r._kendoNode=this,r.style.zIndex=t.zIndex,this.element=r,e&&e.element.appendChild(this.element),this.bindEvents(),this.renderTooltip()}},e.prototype._mouseEnter=function(t){var e=this._createEventArgs(t);this.layer._markerMouseEnter(e)},e.prototype._mouseLeave=function(t){var e=this._createEventArgs(t);this.layer._markerMouseLeave(e)},e.prototype._createEventArgs=function(t){return{marker:this,originalEvent:t}},e.prototype.renderTooltip=function(){},e.create=function(t,r){return t instanceof e?t:new e(j({},r,t))},e}(O.Class),du=Object.assign;function vu(t){window.requestAnimationFrame(t)}var yu=function(t){function e(){t.call(this);this._tickProxy=yh(this._tick,this),this._started=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.tick=function(){},e.prototype.done=function(){},e.prototype.onEnd=function(){},e.prototype.onCancel=function(){},e.prototype.start=function(){this.enabled()&&(this.done()?this.onEnd():(this._started=!0,vu(this._tickProxy)))},e.prototype.enabled=function(){return!0},e.prototype.cancel=function(){this._started=!1,this.onCancel()},e.prototype._tick=function(){this._started&&(this.tick(),this.done()?(this._started=!1,this.onEnd()):vu(this._tickProxy))},e}(O.Class),gu=function(t){function e(e){t.call(this),du(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.done=function(){return this.timePassed()>=this.duration},e.prototype.timePassed=function(){return Math.min(this.duration,kh()-this.startDate)},e.prototype.moveTo=function(t){var e=this.movable;this.initial=e[this.axis],this.delta=t.location-this.initial,this.duration="number"==typeof t.duration?t.duration:300,this.tick=this._easeProxy(t.ease),this.startDate=kh(),this.start()},e.prototype._easeProxy=function(t){var e=this;return function(){e.movable.moveAxis(e.axis,t(e.timePassed(),e.initial,e.delta,e.duration))}},e.easeOutExpo=function(t,e,r,o){return t===o?e+r:r*(1-Math.pow(2,-10*t/o))+e},e}(yu),mu=Object.assign,_u=function(t){t.preventDefault()},bu=800,xu=0,wu={api:0,touch:0,mouse:9,pointer:9};function Cu(t){var e,r,o,i=vh(),n=[],s=t.originalEvent||t,a=t.currentTarget,l=0;if(t.api)n.push({id:2,event:t,target:t.target,currentTarget:t.target,location:t,type:"api"});else if(t.type.match(/touch/))for(e=(r=s?s.changedTouches:[]).length;l<e;l++)o=r[l],n.push({location:o,event:t,target:o.target,currentTarget:a,id:o.identifier,type:"touch"});else i.pointers||i.msPointers?n.push({location:s,event:t,target:t.target,currentTarget:a,id:s.pointerId,type:"pointer"}):n.push({id:1,event:t,target:t.target,currentTarget:a,location:t,type:"mouse"});return n}var Ou=function(t){function e(e,r){t.call(this);this.support=vh(),this.invalidZeroEvents=this.support.mobileOS&&this.support.mobileOS.android,this.axis=e,this._updateLocationData(r),this.startLocation=this.location,this.velocity=this.delta=0,this.timeStamp=kh()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.move=function(t){var e=t["page"+this.axis],r=kh(),o=r-this.timeStamp||1;!e&&this.invalidZeroEvents||(this.delta=e-this.location,this._updateLocationData(t),this.initialDelta=e-this.startLocation,this.velocity=this.delta/o,this.timeStamp=r)},e.prototype._updateLocationData=function(t){var e=this.axis;this.location=t["page"+e],this.client=t["client"+e],this.screen=t["screen"+e]},e}(O.Class),ku=function(t){function e(e,r,o){t.call(this),mu(this,{x:new Ou("X",o.location),y:new Ou("Y",o.location),type:o.type,useClickAsTap:e.useClickAsTap,threshold:e.threshold||wu[o.type],userEvents:e,target:r,currentTarget:o.currentTarget,initialTouch:o.target,id:o.id,pressEvent:o,_clicks:e._clicks,supportDoubleTap:e.supportDoubleTap,_moved:!1,_finished:!1})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.press=function(){this._holdTimeout=setTimeout(yh(this._hold,this),this.userEvents.minHold),this._trigger("press",this.pressEvent)},e.prototype._tap=function(t){var e=this;e.userEvents._clicks++,1===e.userEvents._clicks&&(e._clickTimeout=setTimeout((function(){1===e.userEvents._clicks?e._trigger("tap",t):e._trigger("doubleTap",t),e.userEvents._clicks=0}),300))},e.prototype._hold=function(){this._trigger("hold",this.pressEvent)},e.prototype.move=function(t){var e="api"!==t.type&&this.userEvents._shouldNotMove;if(!this._finished&&!e){if(this.x.move(t.location),this.y.move(t.location),!this._moved){if(this._withinIgnoreThreshold())return;if(Pu.current&&Pu.current!==this.userEvents)return this.dispose();this._start(t)}this._finished||this._trigger("move",t)}},e.prototype.end=function(t){this.endTime=kh(),this._finished||(this._finished=!0,this._trigger("release",t),this._moved?this._trigger("end",t):this.useClickAsTap||(this.supportDoubleTap?this._tap(t):this._trigger("tap",t)),clearTimeout(this._holdTimeout),this.dispose())},e.prototype.dispose=function(){var t=this.userEvents.touches||[];this._finished=!0,this.pressEvent=null,clearTimeout(this._holdTimeout);var e=t.indexOf(this);t.splice(e,1)},e.prototype.skip=function(){this.dispose()},e.prototype.cancel=function(){this.dispose()},e.prototype.isMoved=function(){return this._moved},e.prototype._start=function(t){clearTimeout(this._holdTimeout),this.startTime=kh(),this._moved=!0,this._trigger("start",t)},e.prototype._trigger=function(t,e){var r=e.event,o={touch:this,x:this.x,y:this.y,target:this.target,event:r};this.userEvents.notify(t,o)&&r.preventDefault()},e.prototype._withinIgnoreThreshold=function(){var t=this.x.initialDelta,e=this.y.initialDelta;return Math.sqrt(t*t+e*e)<=this.threshold},e}(O.Class);function Su(t){for(var e=dh(navigator.userAgent).up.split(" "),r=0,o=e.length;r<o;r++)t(e[r])}var Pu=function(t){function e(e,r){t.call(this);var o,i=vh();this.support=i,r=r||{},this.options=r,o=this.filter=r.filter,this.threshold=r.threshold||xu,this.minHold=r.minHold||bu,this.touches=[],this._maxTouches=r.multiTouch?2:1,this.allowSelection=r.allowSelection,this.captureUpIfMoved=r.captureUpIfMoved,this.useClickAsTap=!r.fastTap&&!i.delayedClick(),this._clicks=0,this.supportDoubleTap=r.supportDoubleTap;var n=!i.touch||i.mouseAndTouchPresent;if(mu(this,{element:e,surface:r.global&&n?e.ownerDocument.documentElement:r.surface||e,stopPropagation:r.stopPropagation,pressed:!1}),this._surfaceMoveHandler=yh(this._move,this),gh(this.surface,Ch("move"),this._surfaceMoveHandler),this._surfaceEndHandler=yh(this._end,this),gh(this.surface,Ch("up cancel"),this._surfaceEndHandler),this._elementStartHandler=yh(this._start,this),gh(e,Ch("down"),o,this._elementStartHandler),this.useClickAsTap&&(this._elementClickHandler=yh(this._click,this),gh(e,Ch("click"),o,this._elementClickHandler)),i.pointers||i.msPointers)if(i.browser.version<11){e.style["-ms-touch-action"]=r.touchAction&&"none"!==r.touchAction?"pinch-zoom double-tap-zoom "+r.touchAction:"pinch-zoom double-tap-zoom"}else e.style["touch-action"]=r.touchAction||"none";if(r.preventDragEvent&&(this._elementDragStartHandler=_u,gh(e,Ch("dragstart"),this._elementDragStartHandler)),this._elementSelectHandler=yh(this._select,this),gh(e,Ch("mousedown"),o,this._elementSelectHandler),this.captureUpIfMoved&&i.eventCapture){var s=this.surface,a=yh(this.preventIfMoving,this);Su((function(t){s.addEventListener(t,a,!0)}))}this.bind(["press","hold","tap","doubleTap","start","move","end","release","cancel","gesturestart","gesturechange","gestureend","gesturetap","select"],r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.preventIfMoving=function(t){this._isMoved()&&t.preventDefault()},e.prototype.destroy=function(){var t=this,e=this.options,r=this.element;if(!t._destroyed){if(t._destroyed=!0,t.captureUpIfMoved&&this.support.eventCapture){var o=t.surface;Su((function(e){o.removeEventListener(e,t.preventIfMoving)}))}bh(t.surface,Ch("move"),this._surfaceMoveHandler),bh(t.surface,Ch("up cancel"),this._surfaceEndHandler),bh(r,Ch("down"),this._elementStartHandler),t.useClickAsTap&&bh(r,Ch("click"),this._elementClickHandler),e.preventDragEvent&&bh(r,Ch("dragstart"),this._elementDragStartHandler),bh(r,Ch("mousedown"),this._elementSelectHandler),t._disposeAll(),t.unbind(),delete t.surface,delete t.element,delete t.currentTarget}},e.prototype.capture=function(){e.current=this},e.prototype.cancel=function(){this._disposeAll(),this.trigger("cancel")},e.prototype.notify=function(t,e){var r,o,i,n,s,a,l,p,c=this.touches,h=t;if(this._isMultiTouch()){switch(h){case"move":h="gesturechange";break;case"end":h="gestureend";break;case"tap":h="gesturetap"}mu(e,{touches:c},(r=c[0],o=c[1],i=r.x.location,n=r.y.location,s=o.x.location,a=o.y.location,l=i-s,p=n-a,{center:{x:(i+s)/2,y:(n+a)/2},distance:Math.sqrt(l*l+p*p)}))}return this.trigger(h,mu(e,{type:h}))},e.prototype.press=function(t,e,r){this._apiCall("_start",t,e,r)},e.prototype.move=function(t,e){this._apiCall("_move",t,e)},e.prototype.end=function(t,e){this._apiCall("_end",t,e)},e.prototype._isMultiTouch=function(){return this.touches.length>1},e.prototype._maxTouchesReached=function(){return this.touches.length>=this._maxTouches},e.prototype._disposeAll=function(){for(var t=this.touches;t.length>0;)t.pop().dispose()},e.prototype._isMoved=function(){return K(this.touches,(function(t){return t.isMoved()})).length},e.prototype._select=function(t){this.allowSelection&&!this.trigger("select",{event:t})||t.preventDefault()},e.prototype._start=function(t){var r,o,i=0,n=this.filter,s=Cu(t),a=s.length,l=t.which;if(!(l&&l>1||this._maxTouchesReached()))for(e.current=null,this.currentTarget=t.currentTarget,this.stopPropagation&&t.stopPropagation();i<a&&!this._maxTouchesReached();i++)o=s[i],(r=n?o.currentTarget:this.element)&&0===r.length||(o=new ku(this,r,o),this.touches.push(o),o.press(),this._isMultiTouch()&&this.notify("gesturestart",{}))},e.prototype._move=function(t){this._eachTouch("move",t)},e.prototype._end=function(t){this._eachTouch("end",t)},e.prototype._click=function(t){var e={touch:{initialTouch:t.target,target:t.currentTarget,endTime:kh(),x:{location:t.pageX,client:t.clientX},y:{location:t.pageY,client:t.clientY}},x:t.pageX,y:t.pageY,target:t.currentTarget,event:t,type:"tap"};this.trigger("tap",e)&&t.preventDefault()},e.prototype._eachTouch=function(t,e){var r,o,i,n,s={},a=Cu(e),l=this.touches;for(r=0;r<l.length;r++)s[(o=l[r]).id]=o;for(r=0;r<a.length;r++)(n=s[(i=a[r]).id])&&n[t](i)},e.prototype._apiCall=function(t,e,r,o){this[t]({api:!0,pageX:e,pageY:r,clientX:e,clientY:r,target:o||this.element,stopPropagation:Sh,preventDefault:Sh})},e.defaultThreshold=function(t){xu=t},e.minHold=function(t){bu=t},e}(Mh),Au=Object.assign,Mu=Math.abs,Tu=function(t){function e(e){t.call(this,e);Au(this,e),this.userEvents.bind("gestureend",this.start.bind(this)),this.tapCapture.bind("press",this.cancel.bind(this))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.enabled=function(){return this.movable.scale<this.dimensions.minScale},e.prototype.done=function(){return this.dimensions.minScale-this.movable.scale<.01},e.prototype.tick=function(){var t=this.movable;t.scaleWith(1.1),this.dimensions.rescale(t.scale)},e.prototype.onEnd=function(){var t=this.movable;t.scaleTo(this.dimensions.minScale),this.dimensions.rescale(t.scale)},e}(yu),Eu=function(t){function e(e){t.call(this);var r=this;Au(r,e,{transition:new gu({axis:e.axis,movable:e.movable,onEnd:function(){r._end()}})}),r.tapCapture.bind("press",(function(){r.cancel()})),r.userEvents.bind("end",yh(r.start,r)),r.userEvents.bind("gestureend",yh(r.start,r)),r.userEvents.bind("tap",yh(r.onEnd,r))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.onCancel=function(){this.transition.cancel()},e.prototype.freeze=function(t){this.cancel(),this._moveTo(t)},e.prototype.onEnd=function(){this.paneAxis.outOfBounds()?this._snapBack():this._end()},e.prototype.done=function(){return Mu(this.velocity)<1},e.prototype.start=function(e){var r;this.dimension.enabled&&(this.paneAxis.outOfBounds()?this.transition._started?(this.transition.cancel(),this.velocity=Math.min(e.touch[this.axis].velocity*this.velocityMultiplier,55),t.prototype.start.call(this)):this._snapBack():(r=2===e.touch.id?0:e.touch[this.axis].velocity,this.velocity=Math.max(Math.min(r*this.velocityMultiplier,55),-55),this.tapCapture.captureNext(),t.prototype.start.call(this)))},e.prototype.tick=function(){var t=this.dimension,e=this.paneAxis.outOfBounds()?.5:this.friction,r=this.velocity*=e,o=this.movable[this.axis]+r;!this.elastic&&t.outOfBounds(o)&&(o=Math.max(Math.min(o,t.max),t.min),this.velocity=0),this.movable.moveAxis(this.axis,o)},e.prototype._end=function(){this.tapCapture.cancelCapture(),this.end()},e.prototype._snapBack=function(){var t=this.dimension,e=this.movable[this.axis]>t.max?t.max:t.min;this._moveTo(e)},e.prototype._moveTo=function(t){this.transition.moveTo({location:t,duration:500,ease:gu.easeOutExpo})},e}(yu),ju=function(t){function e(e){t.call(this,e);Au(this,e,{origin:{},destination:{},offset:{}})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.tick=function(){this._updateCoordinates(),this.moveTo(this.origin)},e.prototype.done=function(){return Mu(this.offset.y)<5&&Mu(this.offset.x)<5},e.prototype.onEnd=function(){this.moveTo(this.destination),this.callback&&this.callback.call()},e.prototype.setCoordinates=function(t,e){this.offset={},this.origin=t,this.destination=e},e.prototype.setCallback=function(t){t&&T(t)?this.callback=t:t=void 0},e.prototype._updateCoordinates=function(){this.offset={x:(this.destination.x-this.origin.x)/4,y:(this.destination.y-this.origin.y)/4},this.origin={y:this.origin.y+this.offset.y,x:this.origin.x+this.offset.x}},e}(yu),Ru=function(t){function e(e){t.call(this);var r="x"===e.axis,o=ah('<div class="km-touch-scrollbar km-'+(r?"horizontal":"vertical")+'-scrollbar" />');Au(this,e,{element:o,elementSize:0,movable:new iu(o),scrollMovable:e.movable,alwaysVisible:e.alwaysVisible,size:r?"width":"height"}),this.scrollMovable.bind("change",this.refresh.bind(this)),this.container.appendChild(o),e.alwaysVisible&&this.show()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.refresh=function(){var t=this.axis,e=this.dimension,r=e.size,o=this.scrollMovable,i=r/e.total,n=Math.round(-o[t]*i),s=Math.round(r*i);this.element.style.display=i>=1?"none":"",n+s>r?s=r-n:n<0&&(s+=n,n=0),this.elementSize!==s&&(this.element.style[this.size]=s+"px",this.elementSize=s),this.movable.moveAxis(t,n)},e.prototype.show=function(){this.element.style.opacity=.7,this.element.style.visibility="visible"},e.prototype.hide=function(){this.alwaysVisible||(this.element.style.opacity=0)},e}(O.Class),Iu=function(t){function e(e,r){t.call(this);var o=this;this.element=e,this._initOptions(r);var i,n,s=(i=navigator.userAgent,(n=uh(i)).ios||n.android);o._native=o.options.useNative&&s;var a=ah('<div class="km-scroll-header"/>');if(o._native)return x(e,"km-native-scroller"),ph(a,e),void Au(o,{scrollElement:e,fixedContainer:e.children[0]});e.style.overflow="hidden",x(e,"km-scroll-wrapper"),function(t,e){for(t.appendChild(e);t.firstChild!==e;)e.appendChild(t.firstChild)}(e,ah('<div class="km-scroll-container"/>')),ph(a,e);var l=e.children[1],p=new $h(e),c=new iu(l),h=new tu({element:l,container:e,forcedEnabled:o.options.zoom}),u=this.options.avoidScrolling,f=new Pu(e,{touchAction:"pan-y",fastTap:!0,allowSelection:!0,preventDragEvent:!0,captureUpIfMoved:!0,multiTouch:o.options.zoom,supportDoubleTap:o.options.supportDoubleTap,start:function(t){h.refresh();var e=Mu(t.x.velocity),r=Mu(t.y.velocity),i=2*e>=r,n=2*r>=e;!function(t,e){return t===e||function(t,e){if(!e)return!1;for(var r=e.parentNode;null!==r;){if(r===t)return!0;r=r.parentNode}return!1}(t,e)}(o.fixedContainer,t.event.target)&&!u(t)&&o.enabled&&(h.x.enabled&&i||h.y.enabled&&n)?f.capture():f.cancel()}}),d=new ru({movable:c,dimensions:h,userEvents:f,elastic:o.options.elastic}),v=new Tu({movable:c,dimensions:h,userEvents:f,tapCapture:p}),y=new ju({moveTo:function(t){o.scrollTo(t.x,t.y)}});c.bind("change",(function(){o.scrollTop=-c.y,o.scrollLeft=-c.x,o.trigger("scroll",{scrollTop:o.scrollTop,scrollLeft:o.scrollLeft})})),o.options.mousewheelScrolling&&(this._wheelScrollHandler=this._wheelScroll.bind(this),gh(e,"DOMMouseScroll mousewheel",this._wheelScrollHandler)),Au(o,{movable:c,dimensions:h,zoomSnapBack:v,animatedScroller:y,userEvents:f,pane:d,tapCapture:p,pulled:!1,enabled:!0,scrollElement:l,scrollTop:0,scrollLeft:0,fixedContainer:e.children[0]}),o._initAxis("x"),o._initAxis("y"),o._wheelEnd=function(){o._wheel=!1,o.userEvents.end(0,o._wheelY)},h.refresh(),o.options.pullToRefresh&&o._initPullToRefresh()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initOptions=function(t){this.options=j({},this.options,t)},e.prototype._wheelScroll=function(t){if(!t.ctrlKey){this._wheel||(this._wheel=!0,this._wheelY=0,this.userEvents.press(0,this._wheelY)),clearTimeout(this._wheelTimeout),this._wheelTimeout=setTimeout(this._wheelEnd,50);var e=function(t){var e,r=t.originalEvent||t,o=r.wheelDeltaY;return r.wheelDelta?(void 0===o||o)&&(e=r.wheelDelta):r.detail&&r.axis===r.VERTICAL_AXIS&&(e=10*-r.detail),e}(t);e&&(this._wheelY+=e,this.userEvents.move(0,this._wheelY)),t.preventDefault()}},e.prototype.makeVirtual=function(){this.dimensions.y.makeVirtual()},e.prototype.virtualSize=function(t,e){this.dimensions.y.virtualSize(t,e)},e.prototype.height=function(){return this.dimensions.y.size},e.prototype.scrollHeight=function(){return this.scrollElement.scrollHeight},e.prototype.scrollWidth=function(){return this.scrollElement.scrollWidth},e.prototype._resize=function(){this._native||this.contentResized()},e.prototype.setOptions=function(t){this._initOptions(t),t.pullToRefresh&&this._initPullToRefresh()},e.prototype.reset=function(){this._native?this.scrollElement.scrollTop(0):(this.movable.moveTo({x:0,y:0}),this._scale(1))},e.prototype.contentResized=function(){this.dimensions.refresh(),this.pane.x.outOfBounds()&&this.movable.moveAxis("x",this.dimensions.x.min),this.pane.y.outOfBounds()&&this.movable.moveAxis("y",this.dimensions.y.min)},e.prototype.zoomOut=function(){var t=this.dimensions;t.refresh(),this._scale(t.fitScale),this.movable.moveTo(t.centerCoordinates())},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.scrollTo=function(t,e){this._native?(this.scrollElement.scrollLeft(Mu(t)),this.scrollElement.scrollTop(Mu(e))):(this.dimensions.refresh(),this.movable.moveTo({x:t,y:e}))},e.prototype.animatedScrollTo=function(t,e,r){var o,i;this._native?this.scrollTo(t,e):(o={x:this.movable.x,y:this.movable.y},i={x:t,y:e},this.animatedScroller.setCoordinates(o,i),this.animatedScroller.setCallback(r),this.animatedScroller.start())},e.prototype.pullHandled=function(){},e.prototype.destroy=function(){var t=this.element;bh(t,"DOMMouseScroll mousewheel",this._wheelScrollHandler),this.userEvents&&this.userEvents.destroy()},e.prototype._scale=function(t){this.dimensions.rescale(t),this.movable.scaleTo(t)},e.prototype._initPullToRefresh=function(){},e.prototype._dragEnd=function(){},e.prototype._paneChange=function(){},e.prototype._initAxis=function(t){var e=this,r=e.movable,o=e.dimensions[t],i=e.tapCapture,n=e.pane[t],s=new Ru({axis:t,movable:r,dimension:o,container:e.element,alwaysVisible:e.options.visibleScrollHints});o.bind("change",(function(){s.refresh()})),n.bind("change",(function(){s.show()})),e[t+"inertia"]=new Eu({axis:t,paneAxis:n,movable:r,tapCapture:i,userEvents:e.userEvents,dimension:o,elastic:e.options.elastic,friction:e.options.friction||.96,velocityMultiplier:e.options.velocityMultiplier||10,end:function(){s.hide(),e.trigger("scrollEnd",{axis:t,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft})}})},e}(Mh);wt(Iu,{name:"Scroller",zoom:!1,pullOffset:140,visibleScrollHints:!1,elastic:!0,useNative:!1,mousewheelScrolling:!0,avoidScrolling:function(){return!1},pullToRefresh:!1,messages:{pullTemplate:"Pull to refresh",releaseTemplate:"Release to refresh",refreshTemplate:"Refreshing"}}),Oh(Iu,["pull","scroll","resize"]);var Bu=function(t,e){void 0===e&&(e={}),this.sender=e.sender||t,this.widget=t,this.rtl=Boolean(e.rtl)};Bu.prototype.notify=function(t,e){this.widget&&this.widget.trigger(t,e)};var Lu=Bu,Du=Math,zu=Du.min,Vu=Du.pow,Nu=O.geometry.Point,Hu={bubble:lu,shape:su,tile:Xh};function Uu(t){var e=[];if(t)for(var r=ch(t).split("-"),o=0;o<r.length;o++)e.push("k-pos-"+r[o]);return e.join(" ")}Hu.marker=uu;var Fu=function(t){function e(e,r,o,i){void 0===r&&(r={}),void 0===o&&(o={}),void 0===i&&(i={}),t.call(this),this._init(e,r,o,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.scroller.destroy(),this.navigator&&this.navigator.destroy(),this.attribution&&this.attribution.destroy(),this.zoomControl&&this.zoomControl.destroy(),b(this.markers)?this.markers.forEach((function(t){t.destroy()})):this.markers.destroy();for(var e=0;e<this.layers.length;e++)this.layers[e].destroy();bh(this.element,"DOMMouseScroll mousewheel",this._mousewheelHandler),t.prototype.destroy.call(this)},e.prototype._init=function(t,e,r,o){void 0===e&&(e={}),void 0===r&&(r={}),void 0===o&&(o={}),this.support=vh(),this.context=o,this.initObserver(o),this.initServices(o),this._initOptions(e),this._setEvents(e),this.crs=new nh,this._initElement(t),this._viewOrigin=this._getOrigin(),this._initScroller(),this._initMarkers(),this._initControls(),this._initLayers(),this._reset(),this._mousewheelHandler=this._mousewheel.bind(this),gh(this.element,"DOMMouseScroll mousewheel",this._mousewheelHandler)},e.prototype._initOptions=function(t){this.options=j({},this.options,t)},e.prototype._initElement=function(t){this.element=t,x(t,"k-map"),t.style.position="relative",t.setAttribute("data-role","map"),lh(t);var e=ah("<div />");this.element.appendChild(e)},e.prototype.initServices=function(t){void 0===t&&(t={}),this.widgetService=new Lu(this,t)},e.prototype.initObserver=function(t){void 0===t&&(t={}),this.observers=[],this.addObserver(t.observer)},e.prototype.addObserver=function(t){t&&this.observers.push(t)},e.prototype.removeObserver=function(t){var e=this.observers.indexOf(t);e>=0&&this.observers.splice(e,1)},e.prototype.requiresHandlers=function(t){for(var e=this.observers,r=0;r<e.length;r++)if(e[r].requiresHandlers(t))return!0},e.prototype.trigger=function(e,r){void 0===r&&(r={}),r.sender=this;for(var o=this.observers,i=!1,n=0;n<o.length;n++)o[n].trigger(e,r)&&(i=!0);return i||t.prototype.trigger.call(this,e,r),i},e.prototype._notifyObserver=function(t,e){void 0===e&&(e={}),e.sender=this;for(var r=this.observers,o=!1,i=0;i<r.length;i++)r[i].trigger(t,e)&&(o=!0);return o},e.prototype.zoom=function(t){var e,r=this.options;if(st(t)){var o=Du.round(dt(t,r.minZoom,r.maxZoom));r.zoom!==o&&(r.zoom=o,this._reset()),e=this}else e=r.zoom;return e},e.prototype.center=function(t){var e;return t?(this.options.center=Uc.create(t).toArray(),this._reset(),e=this):e=Uc.create(this.options.center),e},e.prototype.extent=function(t){var e;return t?(this._setExtent(t),e=this):e=this._getExtent(),e},e.prototype.setOptions=function(t){void 0===t&&(t={});var e=this.element;this.destroy(),lh(e),this._init(e,t,{},this.context),this._reset()},e.prototype.locationToLayer=function(t,e){var r=!this.options.wraparound,o=Uc.create(t);return this.crs.toPoint(o,this._layerSize(e),r)},e.prototype.layerToLocation=function(t,e){var r=!this.options.wraparound,o=Nu.create(t);return this.crs.toLocation(o,this._layerSize(e),r)},e.prototype.locationToView=function(t){var e=Uc.create(t),r=this.locationToLayer(this._viewOrigin);return this.locationToLayer(e).translateWith(r.scale(-1))},e.prototype.viewToLocation=function(t,e){var r=this.locationToLayer(this._getOrigin(),e),o=Nu.create(t).clone().translateWith(r);return this.layerToLocation(o,e)},e.prototype.eventOffset=function(t){var e,r,o=lt(this.element);if(t.x&&t.x.location||t.y&&t.y.location)e=t.x.location-o.left,r=t.y.location-o.top;else{var i=t.originalEvent||t;e=_t(i.pageX,i.clientX)-o.left,r=_t(i.pageY,i.clientY)-o.top}return new O.geometry.Point(e,r)},e.prototype.eventToView=function(t){var e=this.eventOffset(t);return this.locationToView(this.viewToLocation(e))},e.prototype.eventToLayer=function(t){return this.locationToLayer(this.eventToLocation(t))},e.prototype.eventToLocation=function(t){var e=this.eventOffset(t);return this.viewToLocation(e)},e.prototype.viewSize=function(){var t=this.element,e=this._layerSize(),r=t.clientWidth;return this.options.wraparound||(r=zu(e,r)),{width:r,height:zu(e,t.clientHeight)}},e.prototype.exportVisual=function(){return this._reset(),!1},e.prototype._setOrigin=function(t,e){var r,o=this.viewSize(),i=this._origin=Uc.create(t);return(r=this.locationToLayer(i,e)).x+=o.width/2,r.y+=o.height/2,this.options.center=this.layerToLocation(r,e).toArray(),this},e.prototype._getOrigin=function(t){var e,r=this.viewSize();return!t&&this._origin||((e=this.locationToLayer(this.center())).x-=r.width/2,e.y-=r.height/2,this._origin=this.layerToLocation(e)),this._origin},e.prototype._setExtent=function(t){var e=Nh.create(t),r=e.se.clone();this.options.wraparound&&r.lng<0&&t.nw.lng>0&&(r.lng=180+(180+r.lng));var o=new Nh(e.nw,r);this.center(o.center());var i,n=this.element.clientWidth,s=this.element.clientHeight;for(i=this.options.maxZoom;i>=this.options.minZoom;i--){var a=this.locationToLayer(o.nw,i),l=this.locationToLayer(o.se,i),p=Du.abs(l.x-a.x),c=Du.abs(l.y-a.y);if(p<=n&&c<=s)break}this.zoom(i)},e.prototype._getExtent=function(){var t=this._getOrigin(),e=this.locationToLayer(t),r=this.viewSize();e.x+=r.width,e.y+=r.height;var o=this.layerToLocation(e);return new Nh(t,o)},e.prototype._zoomAround=function(t,e){this._setOrigin(this.layerToLocation(t,e),e),this.zoom(e)},e.prototype._initControls=function(){var t=this.options.controls;t.attribution&&this._createAttribution(t.attribution),this.support.mobileOS||(t.navigator&&this._createNavigator(t.navigator),t.zoom&&this._createZoomControl(t.zoom))},e.prototype._createControlElement=function(t,e){var r=t.position||e,o="."+Uu(r).replace(" ","."),i=this.element.querySelector(".k-map-controls"+o)||[];if(0===i.length){var n=document.createElement("div");x(n,"k-map-controls "+Uu(r)),i=n,this.element.appendChild(i)}var s=document.createElement("div");return i.appendChild(s),s},e.prototype._createAttribution=function(t){var e=this._createControlElement(t,"bottomRight");this.attribution=new Eh(e,t)},e.prototype._createNavigator=function(t){var e=this._createControlElement(t,"topLeft"),r=this.navigator=new Ih(e,t);this._navigatorPan=this._navigatorPan.bind(this),r.bind("pan",this._navigatorPan),this._navigatorCenter=this._navigatorCenter.bind(this),r.bind("center",this._navigatorCenter)},e.prototype._navigatorPan=function(t){var e=this.scroller,r=e.scrollLeft+t.x,o=e.scrollTop-t.y,i=this._virtualSize,n=this.element.clientWidth,s=this.element.clientHeight;r=dt(r,i.x.min,i.x.max-n),o=dt(o,i.y.min,i.y.max-s),this.scroller.one("scroll",yh(this._scrollEnd,this)),this.scroller.scrollTo(-r,-o)},e.prototype._navigatorCenter=function(){this.center(this.options.center)},e.prototype._createZoomControl=function(t){var e=this._createControlElement(t,"topLeft"),r=this.zoomControl=new Lh(e,t);this._zoomControlChange=this._zoomControlChange.bind(this),r.bind("change",this._zoomControlChange)},e.prototype._zoomControlChange=function(t){this.trigger("zoomStart",{originalEvent:t})||(this.zoom(this.zoom()+t.delta),this.trigger("zoomEnd",{originalEvent:t}))},e.prototype._initScroller=function(){var t=this.support.mobileOS?.93:.9,e=!1!==this.options.zoomable,r=this.scroller=new Iu(this.element.children[0],{friction:t,velocityMultiplier:5,zoom:e,mousewheelScrolling:!1,supportDoubleTap:!0});r.bind("scroll",yh(this._scroll,this)),r.bind("scrollEnd",yh(this._scrollEnd,this)),r.userEvents.bind("gesturestart",yh(this._scaleStart,this)),r.userEvents.bind("gestureend",yh(this._scale,this)),r.userEvents.bind("doubleTap",yh(this._doubleTap,this)),r.userEvents.bind("tap",yh(this._tap,this)),this.scrollElement=r.scrollElement},e.prototype._initLayers=function(){for(var t=this.options.layers,e=this.layers=[],r=0;r<t.length;r++){var o=t[r],i=this._createLayer(o);e.push(i)}},e.prototype._createLayer=function(t){var e=t.type||"shape",r=this.options.layerDefaults[e],o=j({},"marker"===e?this.options.markerDefaults:r,t),i=new(0,Hu[e])(this,o);return"marker"===e&&(this.markers=i),i},e.prototype._initMarkers=function(){(this.options.layers||[]).filter((function(t){return t&&"marker"===t.type})).length>0||(this.markers=new uu(this,this.options.markerDefaults),this.markers.add(this.options.markers))},e.prototype._scroll=function(t){var e=this.locationToLayer(this._viewOrigin).round(),r=t.sender.movable,o=new O.geometry.Point(r.x,r.y).scale(-1).scale(1/r.scale);e.x+=o.x,e.y+=o.y,this._scrollOffset=o,this._setOrigin(this.layerToLocation(e)),this.trigger("pan",{originalEvent:t,origin:this._getOrigin(),center:this.center()})},e.prototype._scrollEnd=function(t){this._scrollOffset&&this._panComplete()&&(this._scrollOffset=null,this._panEndTimestamp=kh(),this.trigger("panEnd",{originalEvent:t,origin:this._getOrigin(),center:this.center()}))},e.prototype._panComplete=function(){return kh()-(this._panEndTimestamp||0)>50},e.prototype._scaleStart=function(t){if(this.trigger("zoomStart",{originalEvent:t})){var e=t.touches[1];e&&e.cancel()}},e.prototype._scale=function(t){var e=this.scroller.movable.scale,r=this._scaleToZoom(e),o=new O.geometry.Point(t.center.x,t.center.y),i=this.viewToLocation(o,r),n=this.locationToLayer(i,r).translate(-o.x,-o.y);this._zoomAround(n,r),this.trigger("zoomEnd",{originalEvent:t})},e.prototype._scaleToZoom=function(t){var e=this._layerSize()*t/this.options.minSize,r=Du.log(e)/Du.log(2);return Du.round(r)},e.prototype._reset=function(){this.attribution&&this.attribution.filter(this.center(),this.zoom()),this._viewOrigin=this._getOrigin(!0),this._resetScroller(),this.trigger("beforeReset"),this.trigger("reset")},e.prototype._resetScroller=function(){var t=this.scroller,e=t.dimensions.x,r=t.dimensions.y,o=this._layerSize(),i=this.extent().nw,n=this.locationToLayer(i).round();t.movable.round=!0,t.reset(),t.userEvents.cancel();var s=this.zoom();t.dimensions.forcedMinScale=Vu(2,this.options.minZoom-s),t.dimensions.maxScale=Vu(2,this.options.maxZoom-s);var a={min:-n.x,max:o-n.x},l={min:-n.y,max:o-n.y};if(this.options.wraparound&&(a.max=20*o,a.min=-a.max),!1===this.options.pannable){var p=this.viewSize();a.min=l.min=0,a.max=p.width,l.max=p.height}e.makeVirtual(),r.makeVirtual(),e.virtualSize(a.min,a.max),r.virtualSize(l.min,l.max),this._virtualSize={x:a,y:l}},e.prototype._renderLayers=function(){},e.prototype._layerSize=function(t){var e=_t(t,this.options.zoom);return this.options.minSize*Vu(2,e)},e.prototype._tap=function(t){if(this._panComplete()){var e=this.eventOffset(t);this.trigger("click",{originalEvent:t,location:this.viewToLocation(e)})}},e.prototype._doubleTap=function(t){if(!1!==this.options.zoomable&&!this.trigger("zoomStart",{originalEvent:t})){var e=this.zoom()+1,r=this.eventOffset(t),o=this.viewToLocation(r),i=this.locationToLayer(o,e).translate(-r.x,-r.y);this._zoomAround(i,e),this.trigger("zoomEnd",{originalEvent:t})}},e.prototype._mousewheel=function(t){t.preventDefault();var e=rt(t)>0?-1:1,r=this.options,o=this.zoom(),i=dt(o+e,r.minZoom,r.maxZoom);if(!1!==r.zoomable&&i!==o&&!this.trigger("zoomStart",{originalEvent:t})){var n=this.eventOffset(t),s=this.viewToLocation(n),a=this.locationToLayer(s,i).translate(-n.x,-n.y);this._zoomAround(a,i),this.trigger("zoomEnd",{originalEvent:t})}},e}(Mh);wt(Fu,{name:"Map",controls:{attribution:!0,navigator:{panStep:100},zoom:!0},layers:[],layerDefaults:{shape:{style:{fill:{color:"#fff"},stroke:{color:"#aaa",width:.5}}},bubble:{style:{fill:{color:"#fff",opacity:.5},stroke:{color:"#aaa",width:.5}}},marker:{shape:"pinTarget",tooltip:{position:"top"}}},center:[0,0],zoom:3,minSize:256,minZoom:1,maxZoom:19,markers:[],markerDefaults:{shape:"pinTarget",tooltip:{position:"top"}},wraparound:!0,renderPointsAsMarkers:!1}),Oh(Fu,["beforeReset","click","markerActivate","markerClick","markerCreated","markerMouseEnter","markerMouseLeave","pan","panEnd","reset","shapeClick","shapeCreated","shapeFeatureCreated","shapeMouseEnter","shapeMouseLeave","zoomEnd","zoomStart"]);var Gu=Fu,Wu="Arial, Helvetica, sans-serif",Ku="12px "+Wu,Xu="16px "+Wu,Yu=function(){return{icon:{border:{width:1}},label:{font:Ku,padding:3},line:{length:10,width:2},visible:!0}},qu=function(t){return{visible:!0,labels:{font:"11px Arial, Helvetica, sans-serif"},overlay:t.gradients?{}:{gradient:"none"},area:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},rangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalRangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},bar:{gap:1.5,spacing:.4},boxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},bubble:{border:{width:0},labels:{background:"transparent"},opacity:.6},bullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},candlestick:{border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:"#000",width:1},spacing:.3},column:{gap:1.5,spacing:.4},heatmap:{labels:{color:"",background:"transparent",visible:!0},highlight:{border:{width:0}}},pie:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},donut:{margin:1},funnel:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},horizontalWaterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4},line:{width:2},notes:Yu(),ohlc:{gap:1,highlight:{line:{opacity:1,width:3}},line:{width:1},spacing:.3},radarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},radarLine:{markers:{visible:!1},width:2},polarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},polarLine:{markers:{visible:!1},width:2},rangeBar:{gap:1.5,spacing:.4},rangeColumn:{gap:1.5,spacing:.4},scatterLine:{width:1},verticalArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalBoxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},verticalBullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},verticalLine:{width:2},waterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4}}},Zu=function(t){return void 0===t&&(t={}),{axisDefaults:{labels:{font:Ku},notes:Yu(),title:{font:Xu,margin:5}},categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:qu(t),title:{font:Xu},legend:{labels:{font:Ku}}}}},function(t,e,r){"use strict";r.r(e),r.d(e,"ZIndexContext",(function(){return o.a})),r.d(e,"useZIndexContext",(function(){return o.b})),r.d(e,"BrowserSupportService",(function(){return n})),r.d(e,"canUseDOM",(function(){return s.a})),r.d(e,"canUseRef",(function(){return a})),r.d(e,"classNames",(function(){return l.a})),r.d(e,"cloneDate",(function(){return c})),r.d(e,"clone",(function(){return h})),r.d(e,"cloneObject",(function(){return u})),r.d(e,"cloneValue",(function(){return f})),r.d(e,"cloneArray",(function(){return d})),r.d(e,"focusFirstFocusableChild",(function(){return v})),r.d(e,"FormComponent",(function(){return y})),r.d(e,"getTabIndex",(function(){return g})),r.d(e,"getter",(function(){return x})),r.d(e,"guid",(function(){return w})),r.d(e,"Keys",(function(){return C})),r.d(e,"noop",(function(){return O})),r.d(e,"getScrollbarWidth",(function(){return k})),r.d(e,"setScrollbarWidth",(function(){return S})),r.d(e,"setter",(function(){return M})),r.d(e,"mapTree",(function(){return j})),r.d(e,"mapTreeItem",(function(){return R})),r.d(e,"extendDataItem",(function(){return I})),r.d(e,"getItemPath",(function(){return B})),r.d(e,"validatePackage",(function(){return L.a})),r.d(e,"hasRelativeStackingContext",(function(){return D})),r.d(e,"dispatchEvent",(function(){return z})),r.d(e,"AsyncFocusBlur",(function(){return H})),r.d(e,"createPropsContext",(function(){return G})),r.d(e,"withPropsContext",(function(){return W})),r.d(e,"useDir",(function(){return K})),r.d(e,"useAsyncFocusBlur",(function(){return V})),r.d(e,"useRtl",(function(){return X})),r.d(e,"useMouse",(function(){return q})),r.d(e,"useCustomComponent",(function(){return Z})),r.d(e,"usePropsContext",(function(){return U})),r.d(e,"COLLECTION_ACTION",(function(){return Y})),r.d(e,"useCollection",(function(){return Q})),r.d(e,"Icon",(function(){return rt})),r.d(e,"SvgIcon",(function(){return st})),r.d(e,"Typography",(function(){return _t})),r.d(e,"DragAndDrop",(function(){return St})),r.d(e,"Draggable",(function(){return Vt})),r.d(e,"Droppable",(function(){return Ht})),r.d(e,"useDraggable",(function(){return zt})),r.d(e,"useDroppable",(function(){return Nt})),r.d(e,"kendoThemeMaps",(function(){return Ut}));var o=r(16),i=function(){return"undefined"!=typeof document?document:{}},n=function(){function t(){}return Object.defineProperty(t.prototype,"scrollbarWidth",{get:function(){var t=i();if(!this.scrollbar&&t&&t.createElement){var e=t.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",t.body.appendChild(e),this.scrollbar=e.offsetWidth-e.scrollWidth,t.body.removeChild(e)}return this.scrollbar},enumerable:!0,configurable:!0}),t}(),s=r(11),a=function(t){return"string"!=typeof Comment&&(function(t){return Boolean("function"==typeof t&&!!t.prototype.isReactComponent)}(t)||function(t){return Boolean(t.$$typeof&&"function"==typeof t.render)}(t))},l=r(12),p=r(1),c=function(t){return t?new Date(t.getTime()):null};function h(t){var e={};return u(t,e),e}function u(t,e){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];e[r]=f(o,e[r])}}function f(t,e){if(Array.isArray(t))return d(t);if(t instanceof Date)return c(t);if(p.isValidElement(t))return p.cloneElement(t,t.props);if(t&&"object"==typeof t){var r=e||{};return u(t,r),r}return t}function d(t){return t.map((function(t){return f(t,void 0)}))}var v=function(t){if(t){if((t instanceof HTMLInputElement||-1!==t.tabIndex)&&t.focus)return void t.focus();var e=t.querySelector('input, [tabindex]:not([tabindex="-1"])');e&&e.focus&&e.focus()}},y=function(){},g=function(t,e,r){var o="string"==typeof t?parseInt(t,void 0):t;if(NaN!==o)return void 0!==o?o:e?r?void 0:-1:0},m=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function _(t){var e=[];return t.replace(m,(function(t,r,o,i){e.push(void 0!==r?r:o||i)})),e}var b={};function x(t){if(b[t])return b[t];var e=_(t);return b[t]=function(t){for(var r=t,o=0;o<e.length&&r;o++)r=r[e[o]];return r},b[t]}b.undefined=function(){};var w=function(){var t,e,r="";for(t=0;t<32;t++)e=16*Math.random()|0,8!==t&&12!==t&&16!==t&&20!==t||(r+="-"),r+=(12===t?4:16===t?3&e|8:e).toString(16);return r},C={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},O=function(){},k=function(){return!(!s.a||!document.body)&&(new n).scrollbarWidth},S=function(){if(!s.a||!document.body)return!1;var t=(new n).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",t+"px")},P={undefined:function(t){return t}},A=function(t,e){return e&&e.arrays&&!isNaN(Number(t))?[]:{}};function M(t){if(P[t])return P[t];var e=_(t);return P[t]=function(t,r,o){for(var i=t,n=e.length-1,s=0;s<n&&i;s++)i=i[e[s]]=i[e[s]]||A(e[s+1],o);i[e[n]]=r},P[t]}var T=function(){return(T=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function E(t,e,r){var o;return r?T({},t,((o={})[e]=r.length?r.slice():void 0,o)):t&&t[e]?t[e].slice():[]}var j=function(t,e,r){return t.map((function(t){return function t(e,r,o){if(e[r]){var i=E(e,r).map((function(e){return t(e,r,o)}));return o(E(e,r,i))}return o(e)}(t,e,r)})).slice()},R=function(t,e,r,o){for(var i=t,n=[],s=0;s<e.length;s++)i=i[e[s]],i=Array.isArray(i)?i:i[r],n.push(i);var a=n.length>1?n[n.length-2]:t,l=e[e.length-1],p=o(a[l]);a.splice(l,1,p)},I=function(t,e,r){var o;return Object.assign({},t,t[e]?((o={})[e]=t[e].slice(),o):{},r||{})},B=function(t,e,r){var o=[],i=e.slice();if(i.length){var n=t[i.shift()||0];for(o.push(n);i.length&&r;)n=n[r][i.shift()||0],o.push(n)}return o},L=r(17),D=function(t){if(!s.a)return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var r=e.createElement("div");r.style.transform="matrix(10, 0, 0, 10, 0, 0)",r.innerHTML='<div style="position: fixed; top: 10px;">child</div>',e.body.appendChild(r);var o=10!==r.children[0].getBoundingClientRect().top;return e.body.removeChild(r),o};function z(t,e,r,o){if(t){var i={syntheticEvent:e,nativeEvent:e.nativeEvent,target:r};t.call(void 0,Object.assign(i,o))}}function V(t){var e=t.onFocus,r=t.onBlur,o=t.onSyncFocus,i=t.onSyncBlur,n=p.useRef(!1),s=p.useRef(0),a=p.useCallback((function(t){clearTimeout(s.current),s.current=window.setTimeout((function(){return t()}))}),[s]),l=p.useCallback((function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];clearTimeout(s.current),o&&o.call.apply(o,[void 0].concat(t)),n.current||(n.current=!0,e&&e.call.apply(e,[void 0].concat(t)))}),[n,e,o]),c=p.useCallback((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];i&&i.call.apply(i,[void 0].concat(t)),a((function(){n.current&&r&&(n.current=!1,r.call.apply(r,[void 0].concat(t)))}))}),[n,a,r,i]);return p.useEffect((function(){return function(){clearTimeout(s.current)}}),[]),{onFocus:l,onBlur:c}}var N=function(){return(N=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},H=function(t){var e=t.children,r=V({onFocus:t.onFocus,onBlur:t.onBlur,onSyncFocus:t.onSyncFocus,onSyncBlur:t.onSyncBlur});return e.call(void 0,N({},r))},U=function(t,e){return p.useContext(t)(e)},F=function(){return(F=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},G=function(){return p.createContext((function(t){return t}))},W=function(t,e){return p.forwardRef((function(r,o){var i=U(t,r);return p.createElement(e,F({},i,{ref:o}))}))};function K(t,e,r){var o=p.useState(e),i=o[0],n=o[1];return p.useEffect((function(){if(!i&&window&&t.current){var e=window.getComputedStyle(t.current).direction;e&&n(e)}}),r),i}function X(t,e,r){var o=p.useState(e),i=o[0],n=o[1];return p.useEffect((function(){if(!i&&window&&t.current){var e=window.getComputedStyle(t.current).direction;e&&n(e)}}),r),i}var Y,q=function(t,e,r){void 0===r&&(r={});var o=p.useCallback((function(o){r.onMouseDown&&r.onMouseDown.call(void 0,o),t.onMouseDown&&t.onMouseDown.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onMouseDown,t.onMouseDown,e]),i=p.useCallback((function(o){r.onMouseUp&&r.onMouseUp.call(void 0,o),t.onMouseUp&&t.onMouseUp.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onMouseUp,t.onMouseUp,e]);return{onClick:p.useCallback((function(o){r.onClick&&r.onClick.call(void 0,o),t.onClick&&t.onClick.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onClick,t.onClick,e]),onMouseUp:i,onMouseDown:o,onDoubleClick:p.useCallback((function(o){r.onDoubleClick&&r.onDoubleClick.call(void 0,o),t.onDoubleClick&&t.onDoubleClick.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onDoubleClick,t.onDoubleClick,e]),onMouseEnter:p.useCallback((function(o){r.onMouseEnter&&r.onMouseEnter.call(void 0,o),t.onMouseEnter&&t.onMouseEnter.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onMouseEnter,t.onMouseEnter,e]),onMouseLeave:p.useCallback((function(o){r.onMouseLeave&&r.onMouseLeave.call(void 0,o),t.onMouseLeave&&t.onMouseLeave.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onMouseLeave,t.onMouseLeave,e]),onMouseMove:p.useCallback((function(o){r.onMouseMove&&r.onMouseMove.call(void 0,o),t.onMouseMove&&t.onMouseMove.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onMouseMove,t.onMouseMove,e]),onMouseOut:p.useCallback((function(o){r.onMouseOut&&r.onMouseOut.call(void 0,o),t.onMouseOut&&t.onMouseOut.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onMouseOut,t.onMouseOut,e]),onMouseOver:p.useCallback((function(o){r.onMouseOver&&r.onMouseOver.call(void 0,o),t.onMouseOver&&t.onMouseOver.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onMouseOver,t.onMouseOver,e])}},Z=function(t){return p.isValidElement(t)?[t.type,t.props]:[t,{}]};!function(t){t[t.add=0]="add",t[t.remove=1]="remove"}(Y||(Y={}));var Q=function(t){void 0===t&&(t=[]);var e=p.useRef(t),r=p.useCallback((function(t){switch(t.type){case Y.add:e.current.push(t.item);break;case Y.remove:var r=e.current.indexOf(t.item);e.current.splice(r,1)}}),[]);return[e.current,r]},$=r(3),J={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},tt=function(){return(tt=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},et=function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r},rt=p.forwardRef((function(t,e){var r=t.className,o=t.name,i=t.themeColor,n=t.size,s=t.flip,a=t.style,c=et(t,["className","name","themeColor","size","flip","style"]),h=p.useRef(null),u=p.useRef(null);p.useImperativeHandle(h,(function(){return{element:u.current}})),p.useImperativeHandle(e,(function(){return h.current}));var f=p.useMemo((function(){return i||ot.themeColor}),[i]),d=p.useMemo((function(){return n||ot.size}),[n]),v=p.useMemo((function(){return s||ot.flip}),[s]),y=p.useMemo((function(){return Object(l.a)("k-icon","k-i-"+o,"k-color-"+f,{"k-flip-h":"horizontal"===v||"both"===v,"k-flip-v":"vertical"===v||"both"===v},J[d],r)}),[o,f,d,v,r]),g=q(t,h);return p.createElement("span",tt({ref:u},c,g,{className:y,style:a,role:"presentation"}))}));rt.propTypes={style:$.object,classNames:$.string,name:$.string,themeColor:$.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:$.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:$.oneOf(["default","horizontal","vertical","both"])};var ot={size:"default",themeColor:"inherit",flip:"default"};rt.displayName="KendoIcon";var it=function(){return(it=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},nt=function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r},st=p.forwardRef((function(t,e){var r=t.children,o=t.className,i=t.svgClassName,n=t.icon,s=t.flip,a=t.size,c=t.style,h=t.svgStyle,u=t.themeColor,f=t.viewBox,d=nt(t,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),v=p.useRef(null);p.useImperativeHandle(e,(function(){return{element:v.current}}));var y=p.useMemo((function(){return n?n.name:at.icon}),[n]),g=p.useMemo((function(){return u||at.themeColor}),[u]),m=p.useMemo((function(){return a||at.size}),[a]),_=p.useMemo((function(){return s||at.flip}),[s]),b=p.useMemo((function(){return f||at.viewBox}),[f]),x=p.useMemo((function(){return Object(l.a)("k-svg-icon","k-color-"+g,"k-svg-i-"+y,{"k-flip-h":"horizontal"===_||"both"===_,"k-flip-v":"vertical"===_||"both"===_},J[m],o)}),[y,g,m,_,o]),w=p.useMemo((function(){return t.width&&t.height?it({width:t.width,height:t.height},c):t.width?it({width:t.width,height:t.width},c):t.height?it({width:t.height,height:t.height},c):it({},c)}),[t.width,t.height,c]);return p.createElement("span",{className:x,style:w,ref:v},p.createElement("svg",it({className:i,style:h,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:n?n.viewBox:b,dangerouslySetInnerHTML:n?{__html:n.content}:void 0},d),n?void 0:r))}));st.propTypes={style:$.object,classNames:$.string,children:$.any,icon:$.object,themeColor:$.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:$.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:$.oneOf(["default","horizontal","vertical","both"])};var at={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};st.displayName="KendoSvgIcon";var lt={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},pt={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},ct={xsmall:"k-m-xs",small:"k-m-sm",medium:"k-m-md",large:"k-m-lg",xlarge:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},ht={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},ut={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},ft={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},dt={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},vt={inherit:"k-color-inherit",primary:"k-color-primary",secondary:"k-color-secondary",tertiary:"k-color-tertiary",info:"k-color-info",success:"k-color-success",warning:"k-color-warning",error:"k-color-error",dark:"k-color-dark",light:"k-color-light",inverse:"k-color-inverse"},yt=function(){return(yt=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},gt=function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r},mt=function(t){var e=p.forwardRef((function(e,r){var o=e.className,i=e.fontSize,n=e.fontWeight,s=e.textAlign,a=e.textTransform,l=e.themeColor,c=e.margin,h=gt(e,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),u=p.useRef(null),f=p.useRef(null);p.useImperativeHandle(u,(function(){return{element:f.current,props:e}})),p.useImperativeHandle(r,(function(){return u.current}));var d=t,v=function(){if(void 0!==c){if("string"==typeof c)return[ct[c]];if("number"==typeof c&&c>=0&&c<=24)return["k-m-"+c];if("object"==typeof c){var t=[];return Object.keys(c).forEach((function(e){var r,o;null!==c[e]&&void 0!==c[e]&&t.push((r=e,o=c[e],""+ut[r]+("string"==typeof o?ht[o]:o)))})),t.join(" ")}}};return p.createElement(d,yt({ref:f,className:["k-"+("p"===t?"paragraph":t),lt[i],pt[n],ft[s],dt[a],vt[l],v(),o].filter((function(t){return void 0!==t})).join(" ")},h),e.children)}));return e.propTypes={style:$.object,className:$.string,fontSize:$.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:$.oneOf(["light","normal","bold"]),margin:$.oneOfType([$.number,$.object,$.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:$.oneOf(["left","right","center","justify"]),textTransform:$.oneOf(["lowercase","uppercase","capitalize"]),themeColor:$.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},e.displayName="KendoReactTypography"+t.toUpperCase(),e},_t={h1:mt("h1"),h2:mt("h2"),h3:mt("h3"),h4:mt("h4"),h5:mt("h5"),h6:mt("h6"),p:mt("p"),code:mt("code"),pre:mt("pre")},bt=function(){return(bt=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},xt=function(t,e,r){var o=p.useState(e||t),i=o[0],n=o[1];return[void 0!==e?e:i,p.useCallback((function(t,e){n(t),r&&r.call(void 0,bt({},e,{value:t}))}),[r,n])]},wt=p.createContext([void 0,O]),Ct=p.createContext([void 0,O]),Ot=p.createContext([[],O,O]),kt=p.createContext([[],O,O]),St=function(t){var e=xt(null,void 0),r=e[0],o=e[1],i=xt(null,void 0),n=i[0],s=i[1],a=Q([]),l=a[0],c=a[1],h=Q([]),u=h[0],f=h[1];return p.createElement(wt.Provider,{value:[r,o]},p.createElement(Ct.Provider,{value:[n,s]},p.createElement(Ot.Provider,{value:[l,function(t){c({type:Y.add,item:t})},function(t){c({type:Y.remove,item:t})}]},p.createElement(kt.Provider,{value:[u,function(t){f({type:Y.add,item:t})},function(t){f({type:Y.remove,item:t})}]},t.children))))};St.displayName="KendoReactDragAndDrop";var Pt,At=function(t,e){var r=0,o=null;return e.forEach((function(e){if(e&&t){var i=function(t,e){var r=t.getBoundingClientRect(),o=e.getBoundingClientRect(),i=Math.max(o.top,r.top),n=Math.max(o.left,r.left),s=Math.min(o.left+o.width,r.left+r.width),a=Math.min(o.top+o.height,r.top+r.height),l=s-n,p=a-i;if(n<s&&i<a){var c=o.width*o.height,h=r.width*r.height,u=l*p;return Number((u/(c+h-u)).toFixed(4))}return 0}(t,e);i>r&&(r=i,o=e)}})),o},Mt=function(){var t=window&&window.navigator.userAgent;if(!t)return!1;var e=!1,r=[],o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var i in o)if(o.hasOwnProperty(i)&&(r=t.match(o[i]))){(e={})[i]=!0,e[r[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,e.version=parseInt(document.DOCUMENT_NODE||r[2],10);break}return e},Tt=function(t){return t&&t.ownerDocument||window.document},Et=function(t){var e=Mt(),r=Tt(t);return e.edge||e.safari?r.body:r.documentElement},jt=function(t){if(t&&t.className&&"string"==typeof t.className&&t.className.indexOf("k-auto-scrollable")>-1)return!0;var e=window.getComputedStyle(t,"overflow").overflow;return e.indexOf("auto")>-1||e.indexOf("scroll")>-1},Rt=function(t){var e=Et(t);if(!t||t===document.body||t===document.documentElement)return e;for(var r=t;r&&!jt(r)&&r!==document.body;)r=r.parentNode;return r===document.body?e:r};!function(t){t.POINTER_DOWN="pointerdown",t.POINTER_MOVE="pointermove",t.POINTER_UP="pointerup",t.POINTER_CANCEL="pointercancel",t.MOUSE_DOWN="mousedown",t.MOUSE_MOVE="mousemove",t.MOUSE_UP="mouseup",t.CONTEXT_MENU="contextmenu",t.TOUCH_START="touchstart",t.TOUCH_MOVE="touchmove",t.TOUCH_END="touchend",t.TOUCH_CANCEL="touchcancel",t.SCROLL="scroll",t.START="KENDO_DRAG_AND_DROP_START",t.MOVE="KENDO_DRAG_AND_DROP_MOVE",t.END="KENDO_DRAG_AND_DROP_END",t.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(Pt||(Pt={}));var It=function(){},Bt=function(t,e,r){void 0===r&&(r={});var o,i,n,s,a=r.onIsPressedChange,l=void 0===a?It:a,p=r.onIsScrollingChange,c=void 0===p?It:p,h=r.onVelocityChange,u=void 0===h?It:h,f=r.onOffsetChange,d=void 0===f?It:f,v=r.onPageOffsetChange,y=void 0===v?It:v,g=r.onClientOffsetChange,m=void 0===g?It:g,_=r.onScrollOffsetChange,b=void 0===_?It:_,x=r.onInitialScrollOffsetChange,w=void 0===x?It:x,C=e.payload,O=C.element,k=C.hint,S=t.autoScrollDirection,P=t.scrollableParent,A=function(t,e){return function(t){return/^touch/.test(t.type)}(t)?{pageX:t.changedTouches[0].pageX,pageY:t.changedTouches[0].pageY,clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,scrollX:e.scrollOffset.x,scrollY:e.scrollOffset.y,offsetX:e.offset.x,offsetY:e.offset.y,type:t.type,originalEvent:t,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:function(t){return/^(scroll)/.test(t.type)}(t)?{pageX:e.pageOffset.x,pageY:e.pageOffset.y,clientX:e.clientOffset.x,clientY:e.clientOffset.y,scrollX:e.scrollOffset.x,scrollY:e.scrollOffset.y,offsetX:e.offset.x,offsetY:e.offset.y,type:t.type,originalEvent:t,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,offsetX:t.offsetX,offsetY:t.offsetY,scrollX:e.scrollOffset.x,scrollY:e.scrollOffset.y,type:t.type,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,originalEvent:t}}(e.event,t);switch(A.type){case Pt.POINTER_DOWN:if(A.type===Pt.POINTER_DOWN&&(!A.originalEvent.isPrimary||0!==A.originalEvent.button))break;case Pt.MOUSE_DOWN:if(A.type===Pt.MOUSE_DOWN&&A.originalEvent.which&&A.originalEvent.which>1||t.ignoreMouse)break;case Pt.TOUCH_START:if(A.type===Pt.TOUCH_START&&1!==A.originalEvent.touches.length)break;case Pt.START:var M=P||Rt(e.payload.element);w(M instanceof Window?{x:M.scrollX,y:M.scrollY}:{x:M.scrollLeft,y:M.scrollTop}),m({x:A.clientX,y:A.clientY}),y({x:A.pageX,y:A.pageY}),d({x:A.offsetX,y:A.offsetY}),l(!0),C.onPress&&C.onPress(A);break;case Pt.SCROLL:if(A.type===Pt.SCROLL&&!t.pressed)break;var T=P||Rt(O),E=T instanceof Window?{x:T.scrollX,y:T.scrollY}:{x:T.scrollLeft,y:T.scrollTop};A.scrollX=E.x-t.initialScrollOffset.x,A.scrollY=E.y-t.initialScrollOffset.y,b({x:A.scrollX,y:A.scrollY});case Pt.POINTER_MOVE:if(A.type===Pt.POINTER_MOVE&&!A.originalEvent.isPrimary)break;case Pt.MOUSE_MOVE:case Pt.TOUCH_MOVE:if(A.type===Pt.TOUCH_MOVE&&1!==A.originalEvent.touches.length)break;case Pt.MOVE:if(t.pressed){if(t.autoScroll&&"scroll"!==A.originalEvent.type&&O){var j=Tt(O),R=P||Rt(j.elementFromPoint(A.clientX,A.clientY)),I=function(t,e,r){var o={x:0,y:0};return t-r.left<50?o.x=-(50-(t-r.left)):r.right-t<50&&(o.x=50-(r.right-t)),e-r.top<50?o.y=-(50-(e-r.top)):r.bottom-e<50&&(o.y=50-(r.bottom-e)),o}(A.pageX,A.pageY,function(t,e){var r=Et(t);if(t===r)return{top:r.scrollTop,left:r.scrollLeft,bottom:r.scrollTop+e.innerHeight,right:r.scrollLeft+e.innerWidth};var o=t.getBoundingClientRect();return{bottom:o.top+o.height,right:o.left+o.width,left:o.left,top:o.top}}(R,function(t){var e=Tt(t);return e&&e.defaultView||window}(O)));u({x:S&&!1===S.horizontal?0:I.x,y:S&&!1===S.vertical?0:I.y}),c(0!==I.y||0!==I.x)}!t.drag&&C.onDragStart&&C.onDragStart(A),C.onDrag&&C.onDrag(A);var B=At(k||O,t.drops.map((function(t){return t&&t.element})).filter((function(t){return t!==(k||O)}))),L=t.drops.find((function(t){return t.element===B}));L&&B&&(o=A.clientX,i=A.clientY,n=P||Rt(B),(s=n.getBoundingClientRect()).top<=i&&s.left<=o&&i<=s.bottom&&o<=s.right)&&B!==O?(t.drop&&t.drop.element)!==B?(t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(A),L.onDragEnter&&L.onDragEnter(A)):L.onDragOver&&L.onDragOver(A):t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(A)}m({x:A.clientX,y:A.clientY}),y({x:A.pageX,y:A.pageY});break;case Pt.POINTER_UP:if(A.type===Pt.POINTER_UP&&!A.originalEvent.isPrimary)break;case Pt.MOUSE_UP:case Pt.TOUCH_END:if(A.type===Pt.TOUCH_END&&1!==A.originalEvent.touches.length)break;case Pt.END:l(!1),c(!1),C.onRelease&&C.onRelease(A),t.drop&&t.drop.onDrop&&t.drop.onDrop(A),C.onDragEnd&&C.onDragEnd(A);break;case Pt.POINTER_CANCEL:case Pt.CONTEXT_MENU:case Pt.TOUCH_CANCEL:case Pt.CANCEL:l(!1),c(!1),C.onDragEnd&&C.onDragEnd(A),t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(A)}},Lt=function(t,e){if(t){var r,o;t===Et(t)?(r=document.body.scrollHeight>window.innerHeight,o=document.body.scrollWidth>window.innerWidth):(r=t.offsetHeight<=t.scrollHeight,o=t.offsetWidth<=t.scrollWidth);var i=t.scrollTop+e.y,n=r&&i>0&&i<t.scrollHeight,s=t.scrollLeft+e.x,a=o&&s>0&&s<t.scrollWidth;n?t.scrollTop+=e.y:r&&i<0&&(t.scrollTop=0),a?t.scrollLeft+=e.x:o&&s<0&&(t.scrollLeft=0)}},Dt=function(t,e){var r=p.useContext(t),o=r[0],i=r[1],n=p.useState(e),s=n[0],a=n[1];return[void 0!==o?o:s,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];void 0!==o?i.apply(void 0,t):a(t[0])}]};function zt(t,e,r){void 0===r&&(r={});var o=e.onPress,i=void 0===o?O:o,n=e.onRelease,s=void 0===n?O:n,a=e.onDragStart,l=void 0===a?O:a,c=e.onDrag,h=void 0===c?O:c,u=e.onDragEnd,f=void 0===u?O:u,d=r.hint,v=void 0===d?null:d,y=r.mouseOnly,g=void 0!==y&&y,m=r.autoScroll,_=void 0===m||m,b=r.scrollContainer,x=void 0===b?null:b,w=p.useState(!1),C=w[0],k=w[1],S=p.useState(!1),P=S[0],A=S[1],M=Dt(Ct)[0],T=Dt(wt),E=T[0],j=T[1],R=p.useContext(kt)[0],I=p.useContext(Ot),B=I[0],L=I[1],D=I[2],z=p.useRef({x:0,y:0}),V=p.useRef(),N=p.useRef(!1),H=p.useRef(),U=p.useRef(null),F=p.useRef(!1),G=p.useRef({x:0,y:0}),W=p.useRef({x:0,y:0}),K=p.useRef({x:0,y:0}),X=p.useRef({x:0,y:0}),Y=p.useRef({x:0,y:0}),q=p.useRef({x:0,y:0}),Z=Boolean("undefined"!=typeof window&&window.PointerEvent),Q=!g&&Z,$=p.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]),J=p.useCallback((function(){return v&&v.current&&v.current.element?v.current.element:v?v.current:null}),[v]),tt=p.useCallback((function(){return x&&x.current&&x.current.element?x.current.element:x?x.current:null}),[x]),et=p.useCallback((function(){return"object"==typeof _&&_.boundaryElementRef&&_.boundaryElementRef.current&&_.boundaryElementRef.current.element?_.boundaryElementRef.current.element:"object"==typeof _&&_.boundaryElementRef&&_.boundaryElementRef.current?_.boundaryElementRef.current:null}),[_]),rt=p.useRef(null);p.useImperativeHandle(rt,(function(){return{element:$(),hint:J(),onPress:vt,onDragStart:gt,onDrag:mt,onDragEnd:_t,onRelease:yt,data:t.current}}));var ot=p.useCallback((function(){var t=$();return t&&t.ownerDocument||document}),[$]),it=p.useCallback((function(){var t=ot();return t&&t.defaultView||window}),[ot]),nt=p.useCallback((function(){return{drag:E?E.current:null,drop:M?M.current:null,drags:B.map((function(t){return t.current})),drops:R.map((function(t){return t.current})),pressed:C,ignoreMouse:N.current,scrollOffset:Y.current,offset:G.current,pageOffset:W.current,initialScrollOffset:q.current,clientOffset:K.current,initialClientOffset:X.current,velocity:z.current,autoScroll:Boolean("object"==typeof _?!1!==_.enabled:_),scrollableParent:et(),autoScrollDirection:"object"==typeof _?_.direction:{horizontal:!0,vertical:!0},isScrolling:P}}),[E,M,B,R,C,_,et,P]),st=p.useCallback((function(t){k(t)}),[]),at=p.useCallback((function(t){A(t)}),[]),lt=p.useCallback((function(t){z.current=t}),[]),pt=p.useCallback((function(t){G.current=t}),[]),ct=p.useCallback((function(t){K.current=t}),[]),ht=p.useCallback((function(t){W.current=t}),[]),ut=p.useCallback((function(t){X.current=t}),[]),ft=p.useCallback((function(t){Y.current=t}),[]),dt=p.useCallback((function(t){q.current=t}),[]),vt=p.useCallback((function(t){i(t)}),[i]),yt=p.useCallback((function(t){s(t)}),[s]),gt=p.useCallback((function(e){j(rt,{target:t.current,event:e}),l(e)}),[j,t,l]),mt=p.useCallback((function(t){h(t)}),[h]),_t=p.useCallback((function(e){F.current||(j(null,{target:t.current,event:e}),f(e))}),[f,j,t]),bt=p.useCallback((function(t){Bt(nt(),{event:t,payload:rt.current},{onVelocityChange:lt,onOffsetChange:pt,onClientOffsetChange:ct,onPageOffsetChange:ht,onInitialClientOffsetChange:ut,onScrollOffsetChange:ft,onInitialScrollOffsetChange:dt,onIsPressedChange:st,onIsScrollingChange:at})}),[nt,lt,pt,ht,ct,ut,dt,st,ft,at]),xt=p.useCallback((function(t){bt(t)}),[bt]),St=p.useCallback((function(t){bt(t)}),[bt]),Pt=p.useCallback((function(t){bt(t)}),[bt]),At=p.useCallback((function(t){bt(t)}),[bt]),Mt=p.useCallback((function(t){bt(t)}),[bt]),Tt=p.useCallback((function(t){bt(t)}),[bt]),Et=p.useCallback((function(t){bt(t)}),[bt]),jt=p.useCallback((function(t){t.preventDefault(),bt(t)}),[bt]),It=p.useCallback((function(t){t.preventDefault(),bt(t)}),[bt]),zt=p.useCallback((function(t){t.preventDefault(),bt(t)}),[bt]),Vt=p.useCallback((function(t){if(0===t.touches.length&&1===t.changedTouches.length){var e=it();N.current=!0,H.current=e.setTimeout((function(){N.current=!1}),2e3)}bt(t)}),[bt,it]),Nt=p.useCallback((function(t){bt(t)}),[bt]),Ht=p.useCallback((function(){var t=$();if(t){var e=t.style.touchAction;return t.style.touchAction="none",function(){t.style.touchAction=e}}}),[$]),Ut=p.useCallback((function(){return L(rt),function(){D(rt)}}),[D,L]);p.useEffect((function(){var t=it();if(P){var e=tt()||Rt(document.elementFromPoint(K.current.x,K.current.y));t.clearInterval(V.current),V.current=t.setInterval((function(){Lt(e,{x:z.current.x,y:z.current.y})}),50)}return function(){t.clearInterval(V.current)}}),[$,tt,it,P]),p.useEffect(Ht,[Ht]),p.useEffect((function(){var t=it(),e=$(),r=ot();return Q?(e&&(U.current=Rt(e),U.current&&U.current.addEventListener("scroll",Nt,{passive:!0}),e.addEventListener("pointerdown",xt,{passive:!0})),C&&(r.addEventListener("pointermove",St),r.addEventListener("pointerup",At,!0),r.addEventListener("contextmenu",jt),r.addEventListener("pointercancel",Pt,{passive:!0}))):(t.addEventListener("touchmove",O,{capture:!1,passive:!1}),e&&(e.addEventListener("mousedown",Mt,{passive:!0}),g||(e.addEventListener("touchstart",It,{passive:!0}),C&&(e.addEventListener("touchmove",zt,{passive:!0}),e.addEventListener("touchend",Vt,{passive:!0})))),C&&(r.addEventListener("mousemove",Tt,{passive:!0}),r.addEventListener("mouseup",Et,{passive:!0}))),function(){U.current&&U.current.removeEventListener("scroll",Nt),e&&(e.removeEventListener("pointerdown",xt),e.removeEventListener("mousedown",Mt),e.removeEventListener("touchstart",It),e.removeEventListener("touchmove",zt),e.removeEventListener("touchend",Vt)),r.removeEventListener("pointermove",St),r.removeEventListener("pointerup",At,!0),r.removeEventListener("contextmenu",jt),r.removeEventListener("pointercancel",Pt),r.removeEventListener("mousemove",Tt),r.removeEventListener("mouseup",Et),t.removeEventListener("touchmove",O),t.clearTimeout(H.current)}}),[C,it,$,ot,g,Q,jt,Mt,Tt,Et,Pt,xt,St,At,Vt,zt,It,Nt]),p.useEffect((function(){return function(){F.current=!0}}),[]),p.useLayoutEffect(Ut,[Ut])}var Vt=p.forwardRef((function(t,e){var r=p.useRef(null),o=p.useRef(null),i=p.useCallback((function(){return r.current&&r.current.element?r.current.element:r.current}),[r]);p.useImperativeHandle(o,(function(){return{element:i()||null}})),p.useImperativeHandle(e,(function(){return o.current})),p.useImperativeHandle(t.childRef,(function(){return r.current}));var n=p.useCallback((function(e){t.onPress&&t.onPress({element:i(),target:o.current,event:e})}),[i,t.onPress]),s=p.useCallback((function(e){t.onRelease&&t.onRelease({element:i(),target:o.current,event:e})}),[i,t.onRelease]),a=p.useCallback((function(e){t.onDragStart&&t.onDragStart({element:i(),target:o.current,event:e})}),[t,i]),l=p.useCallback((function(e){t.onDrag&&t.onDrag({element:i(),target:o.current,event:e})}),[i,t.onDrag]),c=p.useCallback((function(e){t.onDragEnd&&t.onDragEnd({element:i(),target:o.current,event:e})}),[i,t.onDragEnd]);return zt(r,{onPress:n,onRelease:s,onDragStart:a,onDrag:l,onDragEnd:c},{mouseOnly:t.mouseOnly,autoScroll:t.autoScroll,hint:t.hint,scrollContainer:t.scrollContainer}),t.children?p.cloneElement(p.Children.only(t.children),{ref:r}):null}));function Nt(t,e){void 0===e&&(e={onDragEnter:O,onDragOver:O,onDragLeave:O,onDrop:O});var r=e.onDragEnter,o=void 0===r?O:r,i=e.onDragOver,n=void 0===i?O:i,s=e.onDragLeave,a=void 0===s?O:s,l=e.onDrop,c=void 0===l?O:l,h=Dt(Ct)[1],u=p.useContext(kt),f=u[1],d=u[2],v=p.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]),y=p.useRef(null);p.useImperativeHandle(y,(function(){return{element:v(),onDragEnter:g,onDragOver:m,onDragLeave:_,onDrop:b,data:t.current}}));var g=p.useCallback((function(e){h(y,{target:t.current,event:e}),o(e)}),[h,t,o]),m=p.useCallback((function(t){n(t)}),[n]),_=p.useCallback((function(e){h(null,{target:t.current,event:e}),a(e)}),[h,t,a]),b=p.useCallback((function(e){h(null,{target:t.current,event:e}),c(e)}),[h,t,c]),x=p.useCallback((function(){return f(y),function(){d(y)}}),[d,f]);p.useLayoutEffect(x,[x])}Vt.displayName="KendoReactDraggable";var Ht=p.forwardRef((function(t,e){var r=p.useRef(null),o=p.useRef(null),i=p.useCallback((function(){return r.current&&r.current.element?r.current.element:r.current}),[r]);p.useImperativeHandle(o,(function(){return{element:i()||void 0}})),p.useImperativeHandle(e,(function(){return o.current})),p.useImperativeHandle(t.childRef,(function(){return r.current}));var n=p.useCallback((function(e){t.onDragEnter&&t.onDragEnter({element:i(),target:o.current,event:e})}),[t.onDragEnter,i]),s=p.useCallback((function(e){t.onDragOver&&t.onDragOver({element:i(),target:o.current,event:e})}),[i,t.onDragOver]),a=p.useCallback((function(e){t.onDragLeave&&t.onDragLeave({element:i(),target:o.current,event:e})}),[t.onDragLeave,i]),l=p.useCallback((function(e){t.onDrop&&t.onDrop({element:i(),target:o.current,event:e})}),[t.onDrop,i]);return Nt(r,{onDragEnter:n,onDragOver:s,onDragLeave:a,onDrop:l}),t.children?p.cloneElement(p.Children.only(t.children),{ref:r}):null}));Ht.displayName="KendoReactDroppable";var Ut={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(1);e.ChartContext=o.createContext(null),e.ChartContext.displayName="ChartContext"},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=r(1),a=r(9),l=function(t){function e(e,r){var o=t.call(this,e,r)||this;return o.optionsStore=r.optionsStore,o}return i(e,t),e.prototype.renderChildren=function(t,e){var r=t.props.children,o=this.props,i=o._chartKey,a=o._parentStore,l=n({},t.props,{_chartCollectionIdxKey:i+"_"+e,_parentStore:a});return s.cloneElement(t,l,r)},e.prototype.render=function(){var t=this,e=this.props,r=e._chartKey,o=e._parentStore,i=e.children;return(o||this.optionsStore).dispatch({chartKey:r,payload:[]}),s.Children.map(i,(function(e,r){return s.isValidElement(e)?t.renderChildren(e,r):e}))},e.contextType=a.ChartContext,e}(s.Component);e.default=l},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var o=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r={},o=function(t){return"object"==typeof t?Object.keys(t).forEach((function(e){r[e]=t[e]})):r[t]=!0},i=function(t){return t.filter((function(t){return!0!==t&&!!t})).map((function(t){return Array.isArray(t)?i(t):o(t)}))};return i(t),Object.keys(r).map((function(t){return r[t]&&t||null})).filter((function(t){return null!==t})).join(" ")}},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var s=r(1),a=r(3),l=r(53),p=r(7),c=r(8),h=r(5),u=r(54),f=r(56),d=r(38),v=r(58),y=r(39),g=r(40),m=r(5);r(59);var _=r(60),b=r(62),x=r(9),w=r(8),C=r(65),O=function(t){function e(e){var r=t.call(this,e)||this;return r.chartInstance=null,r._element=null,r.optionsStore={},r.optionsUnsubscriber=Function.prototype,r.themeStore={},r.themeUnsubscriber=Function.prototype,r.observersStore={},r.suppressTransitions=!1,r.onRender=function(t){null!==r.chartInstance&&(r.surface=t.sender.surface,r.trigger("render",t))},r.onLegendItemClick=function(t){if(null!==r.chartInstance)if(r.props.onLegendItemClick)r.trigger("legendItemClick",t);else{var e=r.optionsStore.getState().series;if(!e)return;var o={},i=t.seriesIndex,n=t.pointIndex,s=e[i];if(void 0===n)o=Object.assign({},s,{visible:m.toggle(s.visible)});else{var a=s.pointVisibility=s.pointVisibility||[];a[n]=m.toggle(a[n]),o=Object.assign({},s)}r.optionsStore.dispatch({chartCollectionIdxKey:"series_"+i,payload:o}),r.suppressTransitions=!0}},r.onWindowResize=function(){null!==r.chartInstance&&r.chartInstance.resize()},r.onChartMouseLeave=function(t){var e=d.toDomEvent(r,t);r.triggerDomEvent("onMouseLeave",e)?t.preventDefault():null!==r.chartInstance&&r.chartInstance.hideElements()},r.onChildMouseLeave=function(t){var e=t.syntheticEvent;return r.chartInstance&&!h.hasParent(e.relatedTarget,r.element)&&r.chartInstance.hideElements(),!1},w.validatePackage(C.packageMetadata),r.optionsStore=y.default(g.optionsReducer),r.observersStore=y.default(g.observersReducer),r.childrenObserver=new p.InstanceObserver(r,{onMouseLeave:"onChildMouseLeave"}),r.contextValue={optionsStore:r.optionsStore,observersStore:r.observersStore,childrenObserver:r.childrenObserver},r.themeStore=y.default(g.themeReducer),r.chartObserver=new p.InstanceObserver(r,{render:"onRender",legendItemClick:"onLegendItemClick"}),r}return i(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),e.prototype.componentDidMount=function(){v.loadTheme(this.themeStore,this.instantiateCoreChart.bind(this)),this.optionsUnsubscriber=this.optionsStore.subscribe(this.refresh.bind(this)),this.themeUnsubscriber=this.themeStore.subscribe(this.refresh.bind(this)),window.addEventListener("resize",this.onWindowResize)},e.prototype.componentWillUnmount=function(){this.optionsUnsubscriber(),this.themeUnsubscriber(),null!==this.chartInstance&&(this.chartInstance.destroy(),this.chartInstance=null),window.removeEventListener("resize",this.onWindowResize)},e.prototype.componentDidUpdate=function(t){var e=this.props,r=e.dir,o=(e.children,n(e,["dir","children"]));if(null!==this.chartInstance){var i=l.provideIntlService(this),s=this.chartInstance.chartService,a=i.locale!==s._intlService.locale,p=Object.entries(t).filter((function(t){return"dir"!==t[0]&&"children"!==t[0]})).some((function(t){var e=t[0],r=t[1];return!(o.hasOwnProperty(e)&&o[e]===r)}));a&&(this.chartInstance.chartService._intlService=i,this.chartInstance.chartService.format._intlService=i,p||this.chartInstance.noTransitionsRedraw()),p&&this.refresh(),t.dir!==r&&this.chartInstance.setDirection(this.getDirection(r))}},e.prototype.render=function(){var t=this,e=this.props,r=e.style,o=void 0===r?{}:r,i=e.className,n=e.wrapper,a=e.children,l=Object.assign({},o,{position:"relative"}),p=s.createElement(n,{className:i,style:l,key:"chartElement"},s.createElement("div",{onMouseLeave:this.onChartMouseLeave,ref:function(e){return t._element=e},className:"k-chart-surface"},a));return s.createElement(x.ChartContext.Provider,{value:this.contextValue},s.createElement(_.SeriesTooltip,{key:"seriesTooltip"}),s.createElement(b.CrosshairTooltipContainer,{key:"crosshairTooltips"}),p)},e.prototype.getDirection=function(t){var e=this;return"rtl"===(void 0!==t?t:c.canUseDOM&&window.getComputedStyle(e.element).direction||"ltr")},e.prototype.getChartOptions=function(){var t=this.props,e=t.renderAs,r=t.pannable,o=t.zoomable,i=t.paneDefaults,n=t.panes,s=t.transitions,a=t.seriesColors,l=t.seriesDefaults,p=t.axisDefaults,c=t.deriveOptionsFromParent,h={};return void 0!==e&&(h.renderAs=e),void 0!==r&&(h.pannable=r),void 0!==o&&(h.zoomable=o),void 0!==i&&(h.paneDefaults=i),void 0!==n&&(h.panes=n),void 0!==s&&(h.transitions=s),void 0!==a&&(h.seriesColors=a),void 0!==l&&(h.seriesDefaults=l),void 0!==p&&(h.axisDefaults=p),h=Object.assign(h,this.optionsStore.getState()),c&&(h=c(h)),h},e.prototype.refresh=function(){if(null!==this.chartInstance){var t=this.themeStore.getState(),e=this.getChartOptions(),r=e.transitions;this.suppressTransitions&&(e.transitions=!1),this.props.onRefresh?this.props.onRefresh.call(void 0,e,t,this.chartInstance):this.chartInstance.setOptions(e,t),this.suppressTransitions&&(e.transitions=r,this.suppressTransitions=!1)}},e.prototype.instantiateCoreChart=function(){var t=this.props,e=t.dir,r=t.chartConstructor,o=this.getChartOptions();this.chartInstance=new r(this.element,o,this.themeStore.getState(),{rtl:this.getDirection(e),intlService:l.provideIntlService(this),observer:this.chartObserver,sender:this})},e.prototype.trigger=function(t,e){for(var r=this.props.getTarget(),o=f.create(t,e,r),i="on"+t.charAt(0).toUpperCase()+t.slice(1),n=this.observersStore.getState(),s=!1,a=0;a<n.length;a++)n[a].trigger(t,e)&&(s=!0);return!1===s&&o&&this.props.hasOwnProperty(i)?(this.props[i].call(void 0,o),o.isDefaultPrevented&&o.isDefaultPrevented()):s},e.prototype.requiresHandlers=function(t){for(var e=0;e<t.length;e++){var r=t[e],o="on"+r.charAt(0).toUpperCase()+r.slice(1);if(this.props.hasOwnProperty(o))return!0}return!1},e.prototype.triggerDomEvent=function(t,e){for(var r=this.observersStore.getState(),o=!1,i=0;i<r.length;i++)r[i].trigger(t,e)&&(o=!0);return o},e.propTypes={dir:a.string,renderAs:a.oneOf(["svg","canvas"])},e.defaultProps={renderAs:"svg"},e}(s.Component);e.BaseChart=O,l.registerForIntl(O),p.DomEventsBuilder.register(u.DomEventsBuilder)},function(t,e){t.exports=o},,function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return n}));var o=r(1),i=o.createContext(0),n=function(){return o.useContext(i)};i.displayName="KendoReactZIndexContext"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var o=r(14);function i(t){if(void 0!==o)o.validatePackage(t);else{var e="License activation failed for "+t.name+"\n";e+="The @progress/kendo-licensing script is not loaded.\n",e+="See "+t.licensingDocsUrl+" for more information.\n",console.warn(e)}}},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.axis=e.axis,o.dataItem=e.dataItem,o.index=e.index,o.text=e.text,o.value=e.value,o}return i(e,t),e}(r(4).BaseEvent);e.AxisLabelClickEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.axisRanges=e.axisRanges,o.nativeEvent=e.originalEvent,o}return i(e,t),e}(r(6).PreventableEvent);e.DragEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.axisRanges=e.axisRanges,o.nativeEvent=e.originalEvent,o}return i(e,t),e}(r(4).BaseEvent);e.DragEndEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.axisRanges=e.axisRanges,o.nativeEvent=e.originalEvent,o}return i(e,t),e}(r(6).PreventableEvent);e.DragStartEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.series=e.series,o.seriesIndex=e.seriesIndex,o.pointIndex=e.pointIndex,o.text=e.text,o}return i(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(r(6).PreventableEvent);e.LegendItemHoverEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.series=e.series,o.seriesIndex=e.seriesIndex,o.pointIndex=e.pointIndex,o.text=e.text,o}return i(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(r(6).PreventableEvent);e.LegendItemClickEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.from=e.from,o.to=e.to,o}return i(e,t),e}(r(4).BaseEvent);e.NavigatorFilterEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.category=e.category,o.dataItem=e.dataItem,o.series=e.series,o.value=e.value,o.visual=e.visual,o}return i(e,t),e}(r(4).BaseEvent);e.NoteClickEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.category=e.category,o.dataItem=e.dataItem,o.series=e.series,o.value=e.value,o.visual=e.visual,o}return i(e,t),e}(r(4).BaseEvent);e.NoteHoverEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.category=e.category,o.nativeEvent=e.originalEvent,o.value=e.value,o.x=e.x,o.y=e.y,o}return i(e,t),e}(r(4).BaseEvent);e.PlotAreaClickEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.category=e.category,o.nativeEvent=e.originalEvent,o.value=e.value,o.x=e.x,o.y=e.y,o}return i(e,t),e}(r(4).BaseEvent);e.PlotAreaHoverEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){return t.call(this,r)||this}return i(e,t),e}(r(4).BaseEvent);e.RenderEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.axis=e.axis,o.from=e.from,o.to=e.to,o}return i(e,t),e}(r(6).PreventableEvent);e.SelectEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.axis=e.axis,o.from=e.from,o.to=e.to,o}return i(e,t),e}(r(4).BaseEvent);e.SelectEndEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.axis=e.axis,o.from=e.from,o.to=e.to,o}return i(e,t),e}(r(6).PreventableEvent);e.SelectStartEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.category=e.category,o.dataItem=e.dataItem,o.nativeEvent=e.originalEvent,o.percentage=e.percentage,o.point=e.point,o.series=e.series,o.stackValue=e.stackValue,o.value=e.value,o}return i(e,t),e}(r(4).BaseEvent);e.SeriesClickEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.category=e.category,o.categoryPoints=e.categoryPoints,o.dataItem=e.dataItem,o.nativeEvent=e.originalEvent,o.percentage=e.percentage,o.point=e.point,o.series=e.series,o.stackValue=e.stackValue,o.value=e.value,o}return i(e,t),e}(r(6).PreventableEvent);e.SeriesHoverEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.axisRanges=e.axisRanges,o.delta=e.delta,o.nativeEvent=e.originalEvent,o}return i(e,t),e}(r(6).PreventableEvent);e.ZoomEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.axisRanges=e.axisRanges,o.nativeEvent=e.originalEvent,o}return i(e,t),e}(r(4).BaseEvent);e.ZoomEndEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.axisRanges=e.axisRanges,o.nativeEvent=e.originalEvent,o}return i(e,t),e}(r(6).PreventableEvent);e.ZoomStartEvent=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(t,e){this.sender=t,this.syntheticEvent=e};e.DomEvent=o,e.toDomEvent=function(t,e){return new o(t,e)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(8);e.THROTTLE_MS=1e3/60;e.default=function(t){var r,i,n=[],s=function(s){r=t(r,s),o.canUseDOM&&(window.clearTimeout(i),i=window.setTimeout((function(){return n.forEach((function(t){return t()}))}),e.THROTTLE_MS))};return s({}),{getState:function(){return r},dispatch:s,subscribe:function(t){return n.push(t),function(){return n=n.filter((function(e){return e!==t}))}}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.optionsReducer=function(t,e){return e.chartCollectionIdxKey?o.collectionConfigurationItem(t,e):e.chartKey?o.configurationItem(t,e):{}};e.themeReducer=function(t,e){if(!e.type)return{};switch(e.type){case"set":return o.themeItem(t,e);case"push":return Object.assign(t,e.payload);default:return t}};e.observersReducer=function(t,e){if(!e.type)return[];switch(e.type){case"add":return t.concat([e.payload]);case"remove":return t.filter((function(t){return t!==e.payload}));default:return t}};var o={configurationItem:function(t,e){var r;return Object.assign(t,((r={})[e.chartKey]=e.payload,r))},collectionConfigurationItem:function(t,e){var r,o=!1,i=e.chartCollectionIdxKey.split("_"),n=i[0],s=i[1],a=t[n].map((function(t,r){return parseInt(s,10)===r?(o=!0,e.payload):t}));return!1===o&&a.splice(parseInt(s,10),0,e.payload),Object.assign(t,((r={})[n]=a,r))},themeItem:function(t,e){for(var r={},o=Object.assign(r,t),i=e.payload,n=i.field,s=i.value,a=n.split("."),l=a.shift();a.length>0;)r=r[l]=r[l]||{},l=a.shift();return r[l]=s,o}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){this.value=t.value,this.category=t.category,this.categoryIndex=t.categoryIx,this.series=t.series,this.dataItem=t.dataItem,this.percentage=t.percentage,this.runningTotal=t.runningTotal,this.total=t.total,this.low=t.low,this.high=t.high,this.xLow=t.xLow,this.xHigh=t.xHigh,this.yLow=t.yLow,this.yHigh=t.yHigh,this.point=t,this.format=((t.options||{}).tooltip||{}).format||e}return Object.defineProperty(t.prototype,"formattedValue",{get:function(){return this.format?this.point.formatValue(this.format):String(this.value)},enumerable:!0,configurable:!0}),t}();e.TooltipPoint=o},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),s=r(7),a=r(38),l=r(5),p=r(187),c=r(9),h={horizontal:"fit",vertical:"fit"},u="k-chart-tooltip",f=function(t){function e(e,r){var o=t.call(this,e,r)||this;return o.onChartMouseLeave=function(t){var e=t.syntheticEvent;return!!l.hasParent(e.relatedTarget,o.element)},o.onMouseLeave=function(t){var e=a.toDomEvent(o,t);o.context.childrenObserver.trigger("onMouseLeave",e)&&t.preventDefault()},o.chartObserver=new s.InstanceObserver(o,{onMouseLeave:"onChartMouseLeave"}),r.observersStore.dispatch({type:"add",payload:o.chartObserver}),o}return i(e,t),e.prototype.render=function(){var t=this,e=this.props,r=e.popupShown,o=e.popupAlign,i=e.popupOffset,s=e.popupStyles,a=e.popupContent,l=e.className,c=[u,l].join(" ").trim();return n.createElement(p.Popup,{animate:!1,popupAlign:o,offset:i,show:r,collision:h,className:"k-chart-tooltip-wrapper"},n.createElement("div",{className:c,style:s,onMouseLeave:this.onMouseLeave,ref:function(e){return t.element=e}},a()))},e.prototype.componentWillUnmount=function(){this.context.observersStore.dispatch({type:"remove",payload:this.chartObserver})},e.contextType=c.ChartContext,e}(n.Component);e.TooltipPopup=f},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t))};s.displayName="ChartCategoryAxisItem",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t))};s.displayName="ChartPane",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t))};s.displayName="ChartSeriesItem",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t))};s.displayName="ChartValueAxisItem",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t))};s.displayName="ChartXAxisItem",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t))};s.displayName="ChartYAxisItem",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t))};s.displayName="ChartNavigatorSeriesItem",e.default=s},function(t,e){t.exports=i},function(t,e,r){"use strict";function o(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0});var i=r(52);e.Chart=i.Chart;var n=r(67);e.Sparkline=n.Sparkline;var s=r(68);e.StockChart=s.StockChart,o(r(69)),o(r(70)),o(r(183)),o(r(185)),o(r(186))},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),l=r(13),p=r(66),c=r(7),h=r(8),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getTarget=function(){return e},e}return i(e,t),Object.defineProperty(e.prototype,"chartInstance",{get:function(){return null!==this._baseChart?this._baseChart.chartInstance:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return null!==this._baseChart?this._baseChart.surface:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return null!==this._baseChart?this._baseChart.element:null},enumerable:!0,configurable:!0}),e.prototype.render=function(){var t=this,e=this.props,r=e.donutCenterRender,o=e.children,i=e.className,u=s(e,["donutCenterRender","children","className"]);return a.createElement(l.BaseChart,n({},u,{ref:function(e){return t._baseChart=e},chartConstructor:c.Chart,getTarget:this.getTarget,wrapper:"div",className:h.classNames("k-chart k-widget",i)}),o,a.createElement(p.DonutCenter,{render:r}))},e}(a.Component);e.Chart=u},function(t,e){t.exports=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(55),i=function(){function t(){}return t.create=function(t,e){if("undefined"!=typeof window){var r=window.Hammer;if(!r)return void 0;var i=new r(t,{recognizers:[[r.Tap],[r.Pan],[r.Pinch],[r.Press,{time:0}]]});return new o.DomEvents(i,e)}},t}();e.DomEventsBuilder=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){return{x:{location:t.pageX},y:{location:t.pageY}}};function i(t,e){for(var r=0;r<t.length;r++)if(e[t[r]])return!0;return!1}var n=[{end:"panend",move:"panmove",start:"panstart"},{gesturechange:"pinchmove",gestureend:"pinchend",gesturestart:"pinchstart"},{press:"press"},{tap:"tap"}],s=function(){function t(t,e){this.hammerInstance=t,this.eventHandlers={},this.tap=this.tap.bind(this),this.press=this.press.bind(this),this.panstart=this.panstart.bind(this),this.panmove=this.panmove.bind(this),this.panend=this.panend.bind(this),this.pinchstart=this.pinchstart.bind(this),this.pinchmove=this.pinchmove.bind(this),this.pinchend=this.pinchend.bind(this),e&&this.bind(e)}return t.prototype.tap=function(t){this.trigger("tap",t)},t.prototype.press=function(t){this.trigger("press",t)},t.prototype.panstart=function(t){delete this.previous,this.previous=this.trigger("start",t)},t.prototype.panmove=function(t){this.previous=this.trigger("move",t)},t.prototype.panend=function(t){this.trigger("end",t),delete this.previous},t.prototype.pinchstart=function(t){this.trigger("gesturestart",t)},t.prototype.pinchmove=function(t){this.trigger("gesturechange",t)},t.prototype.pinchend=function(t){this.trigger("gestureend",t)},t.prototype.trigger=function(t,e){var r=function(t,e){var r=t.pointers,i=r[0],n=i.pageX,s=i.pageY,a=0;if(r.length>1){var l=r[0],p=r[1];a=Math.sqrt(Math.pow(l.pageX-p.pageX,2)+Math.pow(l.pageY-p.pageY,2))}return{distance:a,event:t.srcEvent,preventDefault:function(){t.preventDefault()},target:t.target,touches:r.map(o),type:t.type,x:{delta:e?n-e.x.location:0,initialDelta:t.deltaX,location:n,startLocation:n-t.deltaX},y:{delta:e?s-e.y.location:0,initialDelta:t.deltaY,location:s,startLocation:s-t.deltaY}}}(e,this.previous);return this.eventHandlers[t]&&this.eventHandlers[t](r),r},t.prototype.bind=function(t){void 0===t&&(t={}),this.unbind(),this.eventHandlers=t;for(var e=0;e<n.length;e++){var r=n[e],o=Object.keys(r);if(i(o,t))for(var s=0;s<o.length;s++){var a=r[o[s]];this.hammerInstance.on(a,this[a])}}},t.prototype.unbind=function(){this.hammerInstance&&this.hammerInstance.off(),this.eventHandlers={}},t.prototype.destroy=function(){this.hammerInstance&&(this.hammerInstance.destroy(),delete this.hammerInstance),delete this.eventHandlers},t.prototype.toggleDrag=function(t){this.toggle("pan",t)},t.prototype.toggleZoom=function(t){this.toggle("pinch",t)},t.prototype.toggle=function(t,e){this.hammerInstance&&this.hammerInstance.get(t).set({enable:e})},t}();e.DomEvents=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(18),i=r(19),n=r(20),s=r(21),a=r(22),l=r(23),p=r(57),c=r(24),h=r(25),u=r(26),f=r(27),d=r(28),v=r(29),y=r(30),g=r(31),m=r(32),_=r(33),b=r(34),x=r(35),w=r(36),C=r(37),O={axisLabelClick:o.AxisLabelClickEvent,drag:i.DragEvent,dragEnd:n.DragEndEvent,dragStart:s.DragStartEvent,legendItemHover:a.LegendItemHoverEvent,legendItemClick:l.LegendItemClickEvent,legendItemLeave:p.LegendItemLeaveEvent,navigatorFilter:c.NavigatorFilterEvent,noteClick:h.NoteClickEvent,noteHover:u.NoteHoverEvent,plotAreaClick:f.PlotAreaClickEvent,plotAreaHover:d.PlotAreaHoverEvent,render:v.RenderEvent,select:y.SelectEvent,selectEnd:g.SelectEndEvent,selectStart:m.SelectStartEvent,seriesClick:_.SeriesClickEvent,seriesHover:b.SeriesHoverEvent,zoom:x.ZoomEvent,zoomEnd:w.ZoomEndEvent,zoomStart:C.ZoomStartEvent};e.create=function(t,e,r){if(O[t])return new O[t](e,r)}},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.series=e.series,o.seriesIndex=e.seriesIndex,o.pointIndex=e.pointIndex,o.text=e.text,o}return i(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(r(6).PreventableEvent);e.LegendItemLeaveEvent=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(7),i=function(t){return t.fontWeight+" "+t.fontSize+" "+t.fontFamily},n=function(t){return window.getComputedStyle(t).backgroundColor},s='\n <div class="k-var--accent"></div>\n <div class="k-var--base"></div>\n <div class="k-var--background"></div>\n\n <div class="k-var--normal-background"></div>\n <div class="k-var--normal-text-color"></div>\n <div class="k-var--hover-background"></div>\n <div class="k-var--hover-text-color"></div>\n <div class="k-var--selected-background"></div>\n <div class="k-var--selected-text-color"></div>\n <div class="k-var--chart-error-bars-background"></div>\n <div class="k-var--chart-notes-background"></div>\n <div class="k-var--chart-notes-border"></div>\n <div class="k-var--chart-notes-lines"></div>\n <div class="k-var--chart-crosshair-background"></div>\n\n <div class="k-var--chart-inactive"></div>\n <div class="k-var--chart-major-lines"></div>\n <div class="k-var--chart-minor-lines"></div>\n <div class="k-var--chart-area-opacity"></div>\n <div class="k-var--chart-area-inactive-opacity"></div>\n <div class="k-var--chart-line-inactive-opacity"></div>\n\n <div class="k-widget k-chart">\n <div class="k-var--chart-font"></div>\n <div class="k-var--chart-title-font"></div>\n <div class="k-var--chart-pane-title-font"></div>\n <div class="k-var--chart-label-font"></div>\n </div>\n\n <div class="k-var--series-unset"></div>\n <div class="k-var--series">\n '+function(){for(var t='\n <div class="k-var--series-a"></div>\n <div class="k-var--series-b"></div>\n <div class="k-var--series-c"></div>\n <div class="k-var--series-d"></div>\n <div class="k-var--series-e"></div>\n <div class="k-var--series-f"></div>\n',e=0;e<30;e++)t+='\n <div class="k-var--series-'+(e+1)+'"></div>';return t}()+"\n </div>\n",a=function(){function t(t){this.store=t}return t.prototype.setStyle=function(t,e){this.store.dispatch({type:"set",payload:{field:t,value:e}})},t.prototype.setColors=function(){this.mapColor("axisDefaults.crosshair.color","chart-crosshair-background"),this.mapColor("axisDefaults.labels.color","normal-text-color"),this.mapColor("axisDefaults.line.color","chart-major-lines"),this.mapColor("axisDefaults.majorGridLines.color","chart-major-lines"),this.mapColor("axisDefaults.minorGridLines.color","chart-minor-lines"),this.mapColor("axisDefaults.notes.icon.background","chart-notes-background"),this.mapColor("axisDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("axisDefaults.notes.line.color","chart-notes-lines"),this.mapColor("axisDefaults.title.color","normal-text-color"),this.mapColor("chartArea.background","background"),this.mapColor("legend.inactiveItems.labels.color","chart-inactive"),this.mapColor("legend.inactiveItems.markers.color","chart-inactive"),this.mapColor("legend.labels.color","normal-text-color"),this.mapColor("seriesDefaults.boxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.boxPlot.mean.color","base"),this.mapColor("seriesDefaults.boxPlot.median.color","base"),this.mapColor("seriesDefaults.boxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.bullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.candlestick.downColor","normal-text-color"),this.mapColor("seriesDefaults.candlestick.line.color","normal-text-color"),this.mapColor("seriesDefaults.errorBars.color","chart-error-bars-background"),this.mapColor("seriesDefaults.horizontalWaterfall.line.color","chart-major-lines"),this.mapColor("seriesDefaults.icon.border.color","chart-major-lines"),this.mapColor("seriesDefaults.labels.background","background"),this.mapColor("seriesDefaults.labels.color","normal-text-color"),this.mapColor("seriesDefaults.notes.icon.background","chart-notes-background"),this.mapColor("seriesDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("seriesDefaults.notes.line.color","chart-notes-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.mean.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.median.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.verticalBullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.waterfall.line.color","chart-major-lines"),this.mapColor("title.color","normal-text-color");var t=parseFloat(this.queryStyle("chart-area-opacity").opacity);isNaN(t)||(this.setStyle("seriesDefaults.area.opacity",t),this.setStyle("seriesDefaults.radarArea.opacity",t),this.setStyle("seriesDefaults.verticalArea.opacity",t),this.setStyle("seriesDefaults.labels.opacity",t)),this.setInactiveOpacity(["area","verticalArea"],"chart-area-inactive-opacity"),this.setInactiveOpacity(["line","verticalLine"],"chart-line-inactive-opacity")},t.prototype.setFonts=function(){var t=i(this.queryStyle("chart-font")),e=i(this.queryStyle("chart-title-font")),r=i(this.queryStyle("chart-pane-title-font")),o=i(this.queryStyle("chart-label-font"));this.setStyle("axisDefaults.labels.font",o),this.setStyle("axisDefaults.notes.label.font",t),this.setStyle("axisDefaults.title.font",t),this.setStyle("legend.labels.font",t),this.setStyle("seriesDefaults.labels.font",o),this.setStyle("seriesDefaults.notes.label.font",t),this.setStyle("title.font",e),this.setStyle("paneDefaults.title.font",r)},t.prototype.setSeriesColors=function(){var t=this.element,e=[].slice.call(t.querySelectorAll(".k-var--series div")),r=n(t.querySelector(".k-var--series-unset")),o=e.reduce((function(t,e){var o=function(t){var e=t.match(/series-([a-z])$/);if(null!==e)return e[1].toLowerCase().charCodeAt(0)-"a".charCodeAt(0);var r=t.split("--series-")[1];return parseInt(r,10)-1}(e.className),i=n(e);return i!==r&&(t[o]=i),t}),[]);this.setStyle("seriesColors",o)},t.prototype.mapColor=function(t,e){this.setStyle(t,this.queryStyle(e).backgroundColor)},t.prototype.queryStyle=function(t){var e=this.element;return window.getComputedStyle(e.querySelector(".k-var--"+t))},t.prototype.setInactiveOpacity=function(t,e){var r=this,o=parseFloat(this.queryStyle(e).opacity);!isNaN(o)&&o<1&&t.forEach((function(t){return r.setStyle("seriesDefaults."+t+".highlight.inactiveOpacity",o)}))},t}();e.loadTheme=function(t,e){var r=new a(t);if("undefined"!=typeof document){var i=r.element=document.createElement("div");i.style.display="none",i.innerHTML=s,document.body.appendChild(i);try{t.dispatch({type:"push",payload:o.chartBaseTheme()}),r.setColors(),r.setFonts(),r.setSeriesColors()}finally{document.body.removeChild(r.element),delete r.element,e()}}else t.dispatch({type:"push",payload:o.chartBaseTheme()})}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(7),i=o.DateCategoryAxis.prototype.options.labels.dateFormats,n=o.DateValueAxis.prototype.options.labels.dateFormats,s={milliseconds:"HH:mm:ss.SSS",seconds:{time:"medium"},minutes:{time:"short"},hours:{time:"short"},days:{skeleton:"Md"},weeks:{skeleton:"Md"},months:{skeleton:"yyMMM"},years:{skeleton:"y"}};Object.assign(i,s),Object.assign(n,s)},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),l=r(8),p=r(7),c=r(41),h=r(61),u=r(42),f=r(9),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={popupShown:!1},e}return i(e,t),e.prototype.componentDidMount=function(){this.chartObserver=new p.InstanceObserver(this,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),this.context.observersStore.dispatch({type:"add",payload:this.chartObserver})},e.prototype.render=function(){var t,e=this,r=this.state,o=r.popupContext,i=r.shared,p=r.className,c=s(r,["popupContext","shared","className"]),f=this.state.popupShown?function(){var t=e.findRenderFunction();if(i)return null!==t?t(o):a.createElement(h.SharedTooltipContent,n({},o));var r=o.point,s=e.findRenderFunctionByIndex(r.series.index);return null!==s?s(o):null!==t?t(o):a.createElement("span",{dangerouslySetInnerHTML:{__html:o.point.formattedValue}})}:Function.prototype,d=l.classNames(((t={})["k-chart-shared-tooltip"]=i,t["k-chart-tooltip-inverse"]=!!p,t));return a.createElement(u.TooltipPopup,n({},c,{popupContent:f,className:d}))},e.prototype.componentWillUnmount=function(){this.context.observersStore.dispatch({type:"remove",payload:this.chartObserver})},e.prototype.onShowTooltip=function(t){var e,r=t.anchor,o=t.style,i=t.shared,n=t.className;t.crosshair||(e=i?this.createSharedTooltipContext(t):this.createTooltipContext(t),this.setState({popupShown:!0,popupAlign:r.align,popupOffset:r.point,popupContext:e,popupStyles:o,className:n,shared:i}))},e.prototype.onHideTooltip=function(){this.setState({popupShown:!1,popupStyles:{},className:void 0})},e.prototype.createSharedTooltipContext=function(t){var e=t.points,r=t.categoryText,o=e.filter((function(t){return void 0!==t.series.name})).length>0,i=t.series.length>1,n=1;return o&&n++,i&&n++,{categoryText:r,colorMarker:i,colspan:n,nameColumn:o,points:t.points.map((function(e){return new c.TooltipPoint(e,t.format)}))}},e.prototype.createTooltipContext=function(t){var e=t.point,r=t.format;return{point:new c.TooltipPoint(e,r)}},e.prototype.findRenderFunctionByIndex=function(t){var e=this.context.optionsStore.getState().series;return void 0!==e&&Array.isArray(e)&&void 0!==e[t]&&e[t].hasOwnProperty("tooltip")&&e[t].tooltip.hasOwnProperty("render")?e[t].tooltip.render:null},e.prototype.findRenderFunction=function(){var t=this.context.optionsStore.getState().tooltip;return void 0!==t&&t.hasOwnProperty("render")?t.render:null},e.contextType=f.ChartContext,e}(a.Component);e.SeriesTooltip=d},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(1);e.SharedTooltipContent=function(t){var e=t.categoryText,r=t.colorMarker,i=t.colspan,n=t.nameColumn,s=t.points;return o.createElement("table",null,o.createElement("thead",null,o.createElement("tr",null,o.createElement("th",{colSpan:i},e))),o.createElement("tbody",null,s.map((function(t,e){return o.createElement("tr",{key:e},r&&o.createElement("td",null,o.createElement("span",{className:"k-chart-shared-tooltip-marker",style:{backgroundColor:t.series.color}})),n&&o.createElement("td",null,t.series.name),o.createElement("td",{dangerouslySetInnerHTML:{__html:t.formattedValue}}))}))))}},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=r(1),a=r(63),l=r(64),p=r(9),c=["categoryAxis","valueAxis","xAxis","yAxis"];function h(t){for(var e={},r=0;r<c.length;r++)for(var o=u(t,c[r]),i=0;i<o.length;i++){var n=o[i];e[n.name+n.index]=n}return e}function u(t,e){var r=[];if(t[e])for(var o=[].concat(t[e]),i=0;i<o.length;i++){var n=(o[i].crosshair||{}).tooltip;n&&n.visible&&r.push({index:i,name:e})}return r}var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={tooltips:{}},e.storeUnsubscriber=Function.prototype,e.subscriber=function(){e.setState({tooltips:h(e.context.optionsStore.getState())})},e}return i(e,t),e.prototype.componentDidMount=function(){this.storeUnsubscriber=this.context.optionsStore.subscribe(this.subscriber)},e.prototype.render=function(){var t=this.state.tooltips,e=Object.keys(t).map((function(e){return s.createElement(l.CrosshairTooltip,n({},t[e],{key:e}))}));return s.createElement(a.Container,null,e)},e.prototype.componentWillUnmount=function(){this.storeUnsubscriber()},e.contextType=p.ChartContext,e}(s.Component);e.CrosshairTooltipContainer=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){return t.children};e.Container=o,o.displayName="Container"},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),l=r(8),p=r(7),c=r(42),h=r(9),u=function(t){function e(e,r){var o=t.call(this,e,r)||this;return o.state={popupShown:!1},o.chartObserver=new p.InstanceObserver(o,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),r.observersStore.dispatch({type:"add",payload:o.chartObserver}),o}return i(e,t),e.prototype.render=function(){var t,e=this.state,r=e.popupContend,o=e.className,i=s(e,["popupContend","className"]),p=this.state.popupShown?function(){return r}:Function.prototype,h=l.classNames(((t={})["k-chart-crosshair-tooltip"]=!0,t["k-chart-tooltip-inverse"]=!!o,t));return a.createElement(c.TooltipPopup,n({},i,{popupContent:p,className:h}))},e.prototype.componentWillUnmount=function(){this.context.observersStore.dispatch({type:"remove",payload:this.chartObserver})},e.prototype.onShowTooltip=function(t){var e=t.anchor,r=t.style,o=t.className,i=t.crosshair,n=t.axisName,s=t.axisIndex,a=t.value,l=this.props,p=l.name,c=l.index;i&&n===p&&s===c&&this.setState({popupShown:!0,popupAlign:e.align,popupOffset:e.point,popupContend:a,popupStyles:r,className:o})},e.prototype.onHideTooltip=function(){this.setState({popupShown:!1,popupStyles:{},className:void 0})},e.contextType=h.ChartContext,e}(a.Component);e.CrosshairTooltip=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-react-charts",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1646224879,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),s=r(7),a=r(9),l=function(t){function e(e,r){var o=t.call(this,e,r)||this;return o.state={donutCenterStyles:null},o.chartObserver=new s.InstanceObserver(o,{render:"onRender"}),r.observersStore.dispatch({type:"add",payload:o.chartObserver}),o}return i(e,t),e.prototype.render=function(){var t=this.props.render,e=this.state.donutCenterStyles,r=null;return t&&e&&(r=n.createElement("div",{className:"k-chart-donut-center",style:e},t())),r},e.prototype.onRender=function(t){var e=this.context.optionsStore.getState().series,r=Array.isArray(e)?e[0]:null,o=t.sender._plotArea.charts;if(r&&"donut"===r.type&&0!==o[0].points.length){var i=o[0].points[0].sector,n=i.innerRadius,s=i.center.y-n,a=i.center.x-n,l=2*n;this.setState({donutCenterStyles:{height:l,left:a,top:s,width:l}})}},e.contextType=a.ChartContext,e}(n.Component);e.DonutCenter=l},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),l=r(13),p=r(7),c=r(8),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.deriveOptionsFromParent=function(t){var r=e.props,o=r.type,i=r.data,n=Object.assign({},t,{type:o,data:i});return p.Sparkline.normalizeOptions(n)},e.getTarget=function(){return e},e}return i(e,t),Object.defineProperty(e.prototype,"chartInstance",{get:function(){return null!==this._baseChart?this._baseChart.chartInstance:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return null!==this._baseChart?this._baseChart.surface:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return null!==this._baseChart?this._baseChart.element:null},enumerable:!0,configurable:!0}),e.prototype.render=function(){var t=this,e=this.props,r=e.children,o=(e.type,e.className),i=s(e,["children","type","className"]);return a.createElement(l.BaseChart,n({},i,{ref:function(e){return t._baseChart=e},chartConstructor:p.Sparkline,getTarget:this.getTarget,wrapper:"span",deriveOptionsFromParent:this.deriveOptionsFromParent,className:c.classNames("k-sparkline k-widget",o)}),r)},e}(a.Component);e.Sparkline=h},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),l=r(13),p=r(7),c=r(8),h={autoBindElements:!0,liveDrag:!1,partialRedraw:!0},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.deriveOptionsFromParent=function(t){var e=Object.assign({},t.navigator||{},h);return Object.assign({},t,{navigator:e})},e.onRefresh=function(t,r,o){e.props.partialRedraw?(o.applyOptions(t),o.bindCategories(),o.navigator.redrawSlaves()):o.setOptions(t,r)},e.getTarget=function(){return e},e}return i(e,t),Object.defineProperty(e.prototype,"chartInstance",{get:function(){return null!==this._baseChart?this._baseChart.chartInstance:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return null!==this._baseChart?this._baseChart.surface:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return null!==this._baseChart?this._baseChart.element:null},enumerable:!0,configurable:!0}),e.prototype.render=function(){var t=this,e=this.props,r=e.children,o=e.className,i=s(e,["children","className"]);return a.createElement(l.BaseChart,n({},i,{ref:function(e){return t._baseChart=e},chartConstructor:p.StockChart,getTarget:this.getTarget,wrapper:"div",deriveOptionsFromParent:this.deriveOptionsFromParent,onRefresh:this.onRefresh,className:c.classNames("k-stockchart k-widget",o)}),r)},e}(a.Component);e.StockChart=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(41);e.TooltipPoint=o.TooltipPoint},function(t,e,r){"use strict";function o(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0});var i=r(71);e.ChartArea=i.default;var n=r(72);e.ChartAxisDefaults=n.default;var s=r(73);e.ChartCategoryAxis=s.default;var a=r(43);e.ChartCategoryAxisItem=a.default;var l=r(74);e.ChartLegend=l.default;var p=r(75);e.ChartNavigator=p.default;var c=r(44);e.ChartPane=c.default;var h=r(76);e.ChartPaneDefaults=h.default;var u=r(77);e.ChartPanes=u.default;var f=r(78);e.ChartPlotArea=f.default;var d=r(79);e.ChartSeries=d.default;var v=r(80);e.ChartSeriesDefaults=v.default;var y=r(45);e.ChartSeriesItem=y.default;var g=r(81);e.ChartTitle=g.default;var m=r(82);e.ChartTooltip=m.default;var _=r(83);e.ChartValueAxis=_.default;var b=r(46);e.ChartValueAxisItem=b.default;var x=r(84);e.ChartXAxis=x.default;var w=r(47);e.ChartXAxisItem=w.default;var C=r(85);e.ChartYAxis=C.default;var O=r(48);e.ChartYAxisItem=O.default;var k=r(86);e.ChartZoomable=k.default,o(r(87)),o(r(92)),o(r(101)),o(r(103)),o(r(105)),o(r(109)),o(r(117)),o(r(130)),o(r(138)),o(r(146)),o(r(154))},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"chartArea"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"axisDefaults"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(10),s=r(43),a=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"categoryAxis"}))};l.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=l},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"legend"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"navigator"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"paneDefaults"}))};s.displayName="ChartPaneDefaults",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(10),s=r(44),a=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"panes"}))};l.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=l},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"plotArea"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(10),s=r(45),a=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"series"}))};l.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=l},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"seriesDefaults"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(10),s=r(46),a=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"valueAxis"}))};l.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=l},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(10),s=r(47),a=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"xAxis"}))};l.prototype={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=l},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(10),s=r(48),a=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"yAxis"}))};l.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=l},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"zoomable"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(88);e.ChartAxisDefaultsTitle=o.default;var i=r(89);e.ChartAxisDefaultsLabels=i.default;var n=r(90);e.ChartAxisDefaultsCrosshair=n.default;var s=r(91);e.ChartAxisDefaultsCrosshairTooltip=s.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartAxisDefaultsTitle",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.displayName="ChartAxisDefaultsLabels",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},s.displayName="ChartAxisDefaultsCrosshair",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},s.displayName="ChartAxisDefaultsCrosshairTooltip",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(93);e.ChartCategoryAxisCrosshair=o.default;var i=r(94);e.ChartCategoryAxisCrosshairTooltip=i.default;var n=r(95);e.ChartCategoryAxisTitle=n.default;var s=r(96);e.ChartCategoryAxisLabels=s.default;var a=r(97);e.ChartCategoryAxisNotes=a.default;var l=r(98);e.ChartCategoryAxisNotesIcon=l.default;var p=r(99);e.ChartCategoryAxisNotesLabel=p.default;var c=r(100);e.ChartCategoryAxisRangeLabels=c.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartCategoryAxisTitle",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"rangeLabels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(102);e.ChartPaneTitle=o.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartPaneTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(104);e.ChartPaneDefaultsTitle=o.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartPaneDefaultsTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(106);e.ChartLegendItem=o.default;var i=r(107);e.ChartLegendTitle=i.default;var n=r(108);e.ChartLegendInactiveItems=n.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"item"}))};s.displayName="ChartLegendItem",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartLegendTitle",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"inactiveItems"}))};s.displayName="ChartLegendInactiveItems",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(110);e.ChartSeriesDefaultsItemTooltip=o.default;var i=r(111);e.ChartSeriesDefaultsLabels=i.default;var n=r(112);e.ChartSeriesDefaultsLabelsFrom=n.default;var s=r(113);e.ChartSeriesDefaultsLabelsTo=s.default;var a=r(114);e.ChartSeriesDefaultsNotes=a.default;var l=r(115);e.ChartSeriesDefaultsNotesIcon=l.default;var p=r(116);e.ChartSeriesDefaultsNotesLabel=p.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"from"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"to"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(118);e.ChartSeriesItemTooltip=o.default;var i=r(119);e.ChartSeriesItemOutliers=i.default;var n=r(120);e.ChartSeriesNotes=n.default;var s=r(121);e.ChartSeriesMarkers=s.default;var a=r(122);e.ChartSeriesLabels=a.default;var l=r(123);e.ChartSeriesHighlight=l.default;var p=r(124);e.ChartSeriesExtremes=p.default;var c=r(125);e.ChartSeriesErrorBars=c.default;var h=r(126);e.ChartSeriesLabelsFrom=h.default;var u=r(127);e.ChartSeriesLabelsTo=u.default;var f=r(128);e.ChartSeriesNotesLabel=f.default;var d=r(129);e.ChartSeriesNotesIcon=d.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"outliers"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"markers"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"highlight"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"extremes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"errorBars"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"from"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"to"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(131);e.ChartValueAxisCrosshair=o.default;var i=r(132);e.ChartValueAxisCrosshairTooltip=i.default;var n=r(133);e.ChartValueAxisLabels=n.default;var s=r(134);e.ChartValueAxisNotes=s.default;var a=r(135);e.ChartValueAxisNotesIcon=a.default;var l=r(136);e.ChartValueAxisNotesLabel=l.default;var p=r(137);e.ChartValueAxisTitle=p.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartValueAxisTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(139);e.ChartXAxisCrosshair=o.default;var i=r(140);e.ChartXAxisCrosshairTooltip=i.default;var n=r(141);e.ChartXAxisLabels=n.default;var s=r(142);e.ChartXAxisNotes=s.default;var a=r(143);e.ChartXAxisNotesIcon=a.default;var l=r(144);e.ChartXAxisNotesLabel=l.default;var p=r(145);e.ChartXAxisTitle=p.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartXAxisTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(147);e.ChartYAxisCrosshair=o.default;var i=r(148);e.ChartYAxisCrosshairTooltip=i.default;var n=r(149);e.ChartYAxisLabels=n.default;var s=r(150);e.ChartYAxisNotes=s.default;var a=r(151);e.ChartYAxisNotesIcon=a.default;var l=r(152);e.ChartYAxisNotesLabel=l.default;var p=r(153);e.ChartYAxisTitle=p.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartYAxisTitle",e.default=s},function(t,e,r){"use strict";function o(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0});var i=r(155);e.ChartNavigatorCategoryAxis=i.default;var n=r(156);e.ChartNavigatorHint=n.default;var s=r(157);e.ChartNavigatorPane=s.default;var a=r(158);e.ChartNavigatorSelect=a.default;var l=r(159);e.ChartNavigatorSeries=l.default;var p=r(49);e.ChartNavigatorSeriesItem=p.default,o(r(160)),o(r(168)),o(r(170))},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"categoryAxis"}))};s.displayName="ChartNavigatorCategoryAxis",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"hint"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"pane"}))};s.displayName="ChartNavigatorPane",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"select"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(10),s=r(49),a=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"series"}))};l.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(161);e.ChartNavigatorCategoryAxisCrosshair=o.default;var i=r(162);e.ChartNavigatorCategoryAxisCrosshairTooltip=i.default;var n=r(163);e.ChartNavigatorCategoryAxisTitle=n.default;var s=r(164);e.ChartNavigatorCategoryAxisLabels=s.default;var a=r(165);e.ChartNavigatorCategoryAxisNotes=a.default;var l=r(166);e.ChartNavigatorCategoryAxisNotesIcon=l.default;var p=r(167);e.ChartNavigatorCategoryAxisNotesLabel=p.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartNavigatorCategoryAxisTitle",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(169);e.ChartNavigatorPaneTitle=o.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartNavigatorPaneTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(171);e.ChartNavigatorSeriesItemTooltip=o.default;var i=r(172);e.ChartNavigatorSeriesItemOutliers=i.default;var n=r(173);e.ChartNavigatorSeriesNotes=n.default;var s=r(174);e.ChartNavigatorSeriesMarkers=s.default;var a=r(175);e.ChartNavigatorSeriesLabels=a.default;var l=r(176);e.ChartNavigatorSeriesHighlight=l.default;var p=r(177);e.ChartNavigatorSeriesExtremes=p.default;var c=r(178);e.ChartNavigatorSeriesErrorBars=c.default;var h=r(179);e.ChartNavigatorSeriesLabelsFrom=h.default;var u=r(180);e.ChartNavigatorSeriesLabelsTo=u.default;var f=r(181);e.ChartNavigatorSeriesNotesLabel=f.default;var d=r(182);e.ChartNavigatorSeriesNotesIcon=d.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"outliers"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"markers"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"highlight"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"extremes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"errorBars"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"from"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"to"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(184);e.WeekStartDay=o.WeekStartDay},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday"}(e.WeekStartDay||(e.WeekStartDay={}))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(18);e.AxisLabelClickEvent=o.AxisLabelClickEvent;var i=r(20);e.DragEndEvent=i.DragEndEvent;var n=r(19);e.DragEvent=n.DragEvent;var s=r(21);e.DragStartEvent=s.DragStartEvent;var a=r(23);e.LegendItemClickEvent=a.LegendItemClickEvent;var l=r(22);e.LegendItemHoverEvent=l.LegendItemHoverEvent;var p=r(24);e.NavigatorFilterEvent=p.NavigatorFilterEvent;var c=r(25);e.NoteClickEvent=c.NoteClickEvent;var h=r(26);e.NoteHoverEvent=h.NoteHoverEvent;var u=r(27);e.PlotAreaClickEvent=u.PlotAreaClickEvent;var f=r(28);e.PlotAreaHoverEvent=f.PlotAreaHoverEvent;var d=r(29);e.RenderEvent=d.RenderEvent;var v=r(31);e.SelectEndEvent=v.SelectEndEvent;var y=r(30);e.SelectEvent=y.SelectEvent;var g=r(32);e.SelectStartEvent=g.SelectStartEvent;var m=r(33);e.SeriesClickEvent=m.SeriesClickEvent;var _=r(34);e.SeriesHoverEvent=_.SeriesHoverEvent;var b=r(36);e.ZoomEndEvent=b.ZoomEndEvent;var x=r(35);e.ZoomEvent=x.ZoomEvent;var w=r(37);e.ZoomStartEvent=w.ZoomStartEvent},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.findAxisByName=function(t,e){if(t&&null!==t.chartInstance)return t.chartInstance.findAxisByName(e)};e.findPaneByIndex=function(t,e){if(t&&null!==t.chartInstance)return t.chartInstance.findPaneByIndex(e)};e.findPaneByName=function(t,e){if(t&&null!==t.chartInstance)return t.chartInstance.findPaneByName(e)};e.exportVisual=function(t,e){if(void 0===e&&(e={}),t&&null!==t.chartInstance)return t.chartInstance.exportVisual(e)}},function(t,e,r){"use strict";r.r(e),r.d(e,"Popup",(function(){return ct})),r.d(e,"PopupPropsContext",(function(){return pt}));var o=r(1),i=r(50),n=r(3),s=function(t){t.style.transitionDuration="",Array.from(t.classList).forEach((function(e){e.startsWith("k-slide-")&&t.classList.remove(e)}))},a="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),l=r(17),p=r(11),c=r(16),h=r(12),u="bottom",f="center",d="middle",v="left",y="right",g="top";function m(t){return t.ownerDocument||t.document||t}var _=function(t){return m(t).defaultView},b=function(t){return m(t).documentElement},x=0;function w(){if(!x&&"undefined"!=typeof document){var t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",document.body.appendChild(t),x=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return x}function C(t){var e=_(t),r=b(t),o={height:e.innerHeight,width:e.innerWidth};return r.scrollHeight-r.clientHeight>0&&(o.width-=w()),o}var O=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||b(t)},k=function(t){var e=t.getBoundingClientRect(),r=e.left,o=e.top;return e.height||e.width||(e=function(t){var e=t.style,r=e.display,o=e.left,i=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var n=t.getBoundingClientRect();return t.style.display=r,t.style.left=o,t.style.position=i,n}(t)),{top:o,left:r,height:e.height,width:e.width}},S=function(t,e){for(var r=[],o=t.parentNode;o&&(r.push(o),o!==e);)o=o.parentNode;return r};function P(t){var e=b(t),r=_(t);return{x:r.pageXOffset||e.scrollLeft||0,y:r.pageYOffset||e.scrollTop||0}}var A=function(t){return t===(t.ownerDocument||{}).body?P(t):{x:t.scrollLeft,y:t.scrollTop}};var M=function(t,e){var r=_(t),o=r.getComputedStyle(t),i=k(t),n=e||O(t),s=t.ownerDocument,a=n!==s.body&&n!==s.documentElement,l={top:0,left:0};if("fixed"!==o.position&&a){var p=r.getComputedStyle(n);(l=k(n)).top+=parseInt(p.borderTopWidth,10),l.left+=parseInt(p.borderLeftWidth,10)}return{top:i.top-l.top,left:i.left-l.left,height:i.height,width:i.width}},T=function(t,e){return t?A(t):function(t){var e=O(t);return e?A(e):{x:0,y:0}}(e)};var E="fit",j="flip",R="none",I=function(t,e,r){var o=0;return t+e>r&&(o=r-(t+e)),t<0&&(o=-t),o},B=function(t){var e=t.offset,r=t.size,o=t.anchorSize,i=t.viewPortSize,n=t.anchorAlignPoint,s=t.elementAlignPoint,a=0,l=2*t.margin;if(s!==n&&!(s===f||s===d)&&!(n===f||n===d)){var p=n===g||n===v;e<0&&p?e+(a=r+o+l)+r>i&&(a=0):e>=0&&!p&&(e+r>i&&(a+=-(o+r+l)),e+a<0&&(a=0))}return a},L=function(t){for(var e=[],r=t.parentNode.firstElementChild;r;)r!==t&&e.push(r),r=r.nextElementSibling;return e},D=function(t,e){for(var r,o,i=S(t),n=e;n&&(r=L(n),!(o=i.reduce((function(t,e){return t.concat(r.filter((function(t){return t===e})))}),[])[0]));)n=n.parentElement;return o};var z,V,N,H,U=(z=function(t){if(!F())return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var r=e.createElement("div");r.style.transform="matrix(10, 0, 0, 10, 0, 0)",r.innerHTML='<div style="position: fixed; top: 10px;">child</div>',e.body.appendChild(r);var o=10!==r.children[0].getBoundingClientRect().top;return e.body.removeChild(r),o},N=!1,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return N||(V=z.apply(void 0,t),N=!0),V}),F=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},G={eitherRect:function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},scaleRect:function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t},removeStackingOffset:function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},hasRelativeStackingContext:U,canUseDOM:F},W=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],K=function(){return G.canUseDOM()?window:null},X=/auto|scroll/,Y=function(t){return function(t){return""+t.style.overflow+t.style.overflowX+t.style.overflowY}(t)||function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY}(t)},q=function(t){if(!t||!G.hasRelativeStackingContext())return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},Z=function(){return G.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},Q={addOffset:function(t,e){return{left:t.left+e.left,top:t.top+e.top}},addScroll:function(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}},align:function(t){var e=t.anchorRect,r=t.anchorAlign,o=t.elementRect,i=t.elementAlign,n=t.margin;void 0===n&&(n={});var s=r.horizontal,a=r.vertical,l=i.horizontal,p=i.vertical,c=n.horizontal||0,h=n.vertical||0,v=e.top,g=e.left;return a===u&&(v+=e.height),a!==f&&a!==d||(v+=Math.round(e.height/2)),p===u&&(v-=o.height,h*=-1),p!==f&&p!==d||(v-=Math.round(o.height/2),h*=-1),s===y&&(g+=e.width),s!==f&&s!==d||(g+=Math.round(e.width/2)),l===y&&(g-=o.width,c*=-1),l!==f&&l!==d||(g-=Math.round(o.width/2),c*=-1),{top:v+h,left:g+c}},boundingOffset:function(t){if(!t.getBoundingClientRect){var e=C(t);return{bottom:e.height,left:0,right:e.width,top:0}}var r=t.getBoundingClientRect();return{bottom:r.bottom,left:r.left,right:r.right,top:r.top}},getFontStyles:function(t){var e=K();if(!e||!t)return[];var r=e.getComputedStyle(t);return W.map((function(t){return{key:t,value:r[t]}}))},getWindow:K,hasOffsetParent:function(t){return!!t&&Boolean(t.offsetParent)},offset:function(t){return t?k(t):null},offsetAtPoint:function(t,e){if(!t)return null;var r=t.style,o=r.left,i=r.top,n=r.transition;t.style.transition="none",t.style.left=e.left+"px",t.style.top=e.top+"px";var s=k(t);return t.style.left=o,t.style.top=i,t.offsetHeight,t.style.transition=n,s},position:function(t,e,r){return t&&e?function(t,e,r){void 0===r&&(r=1);var o=e?O(e):null,i=M(t,o),n=i.top,s=i.left,a=i.height,l=i.width,p=T(o,t),c=p.x,h=p.y,u=t.ownerDocument,f=o===u.body||o===u.documentElement?1:r;return{top:n+h*f,left:s+c*f,height:a,width:l}}(t,e,r||1):null},removeScroll:function(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}},restrictToView:function(t){var e=t.anchorRect,r=t.anchorAlign,o=t.elementRect,i=t.elementAlign,n=t.collisions,s=t.viewPort,a=t.margin;void 0===a&&(a={});var l=o.top,p=o.left,c=o.height,h=o.width,u=s.height,f=s.width,d=a.horizontal||0,v=a.vertical||0,y=0,g=0,m=n.vertical===E,_=n.horizontal===E,b=n.vertical===j,x=n.horizontal===j;m&&(g+=I(l,c,u)),_&&(y+=I(p,h,f)),b&&(g+=B({margin:v,offset:l,size:c,anchorSize:e.height,viewPortSize:u,anchorAlignPoint:r.vertical,elementAlignPoint:i.vertical})),x&&(y+=B({margin:d,offset:p,size:h,anchorSize:e.width,viewPortSize:f,anchorAlignPoint:r.horizontal,elementAlignPoint:i.horizontal}));var w=b&&0!==g,C=x&&0!==y,O=m&&0!==g,k=_&&0!==y;return{flipped:C||w,fitted:O||k,flip:{horizontal:C,vertical:w},fit:{horizontal:k,vertical:O},offset:{left:y,top:g}}},scrollPosition:P,scrollableParents:function(t){var e=[];if(!G.canUseDOM())return e;for(var r=t.parentElement;r;)(X.test(Y(r))||r.hasAttribute("data-scrollable"))&&e.push(r),r=r.parentElement;return e.push(window),e},getRelativeContextElement:q,stackingElementOffset:function(t){var e=q(t);return e?k(e):null},stackingElementScroll:function(t){var e=q(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(t){var e=q(t);return e?{height:e.scrollHeight,width:e.scrollWidth}:null},useRelativePosition:function(t){return Boolean(q(t))},windowViewPort:C,zoomLevel:Z,isZoomed:function(){return Z()>1},zIndex:function(t,e){if(!t||!G.canUseDOM())return null;var r=D(t,e);if(!r)return null;var o=[t].concat(S(t,r)).reduce((function(t,e){var r=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(r,10);return o>t?o:t}),0);return o?o+1:null}},$=function(t,e){return t?{x:0,y:0}:Q.scrollPosition(e)},J=function(t){var e=t.anchor,r=t.element,o=t.anchorAlign,i=t.elementAlign,n=t.margin,s=t.offset,a=t.positionMode,l=t.scale||1,p="fixed"===a||!Q.hasOffsetParent(r)?function(t,e,r,o){var i=$(t,e),n=G.eitherRect(Q.offset(t),r),s=2*o,a=Q.stackingElementScroll(e);1!==o&&a&&(a.x/=s,a.y/=s);var l=Q.stackingElementOffset(e);return 1!==o&&l&&(l.left/=s,l.top/=s),Q.removeScroll(Q.addScroll(G.removeStackingOffset(G.scaleRect(n,o),l),a),i)}(e,r,s,l):function(t,e,r,o){var i=G.eitherRect(Q.position(t,e,o),r);return G.scaleRect(i,o)}(e,r,s,l),c=G.scaleRect(Q.offset(r),l);return Q.align({anchorAlign:o,anchorRect:p,elementAlign:i,elementRect:c,margin:n})},tt=function(t){var e=t.anchor,r=t.currentLocation,o=t.element,i=t.anchorAlign,n=t.elementAlign,s=t.collisions,a=t.margin,l=t.scale||1,p=Q.offsetAtPoint(o,r),c=G.scaleRect(p,l),h=G.scaleRect(Q.offset(e),l),u=G.eitherRect(h,r),f=t.viewPort||Q.windowViewPort(o);f.width=f.width/l,f.height=f.height/l;var d=Q.restrictToView({anchorAlign:i,anchorRect:u,collisions:s,elementAlign:n,elementRect:c,margin:a,viewPort:f}),v=Q.addOffset(r,d.offset);return{flip:d.flip,flipped:d.flipped,offset:v}},et={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1646224809,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},rt=(H=function(t,e){return(H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}H(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),ot=function(){return(ot=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function it(t,e){if(t===e)return!0;if(!!t!=!!e)return!1;var r=Object.getOwnPropertyNames(t),o=Object.getOwnPropertyNames(e);if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++){var n=r[i];if(t[n]!==e[n])return!1}return!0}var nt,st={left:-1e3,top:0};!function(t){t.hiding="hiding",t.hidden="hidden",t.showing="showing",t.shown="shown",t.reposition="reposition"}(nt||(nt={}));var at=function(t){function e(e){var r=t.call(this,e)||this;return r.state={current:nt.hidden,previous:nt.hidden,props:{}},r._popup=null,r.show=function(t){r.setPosition(t),r.animate(t.firstChild,"enter",r.onOpened),r.setState({current:nt.shown,previous:r.state.current})},r.setPosition=function(t){var e=r.props,o=e.anchorAlign,i=e.popupAlign,n=e.collision,s=e.offset,a=e.anchor,l=e.margin,p=e.scale,c=e.positionMode,h=J({anchor:a,anchorAlign:o,element:t,elementAlign:i,offset:s,margin:l,positionMode:c,scale:p}),u=tt({anchor:a,anchorAlign:o,element:t,elementAlign:i,collisions:n,currentLocation:h,margin:r.props.margin});if(t.style.top=u.offset.top+"px",t.style.left=u.offset.left+"px",r._collisions={fit:u.fit,fitted:u.fitted,flip:u.flip,flipped:u.flipped},r.props.onPosition){var f={target:r,flipped:u.flipped,fitted:u.fitted};r.props.onPosition.call(void 0,f)}},r.onOpened=function(){var t=r._popup;t&&(r.props.show&&t.classList.add("k-animation-container-shown"),r.attachRepositionHandlers(t),r.props.onOpen&&r.props.onOpen.call(void 0,{target:r}))},r.animate=function(t,e,o){if(r.props.popupAlign){var i,n=r.props.popupAlign,l=n.horizontal,p=n.vertical;i="left"===l&&"center"===p?"right":"right"===l&&"center"===p?"left":"top"===p?"down":"up";r._collisions&&r._collisions.flipped&&(i={down:"up",up:"down",left:"right",right:"left"}[i]),function(t,e,r,o,i){if(0===r)return i();var n="k-slide-"+e+"-"+o,l=n+"-active",p=function(e){e.target===t&&(t.removeEventListener("transitionend",p),s(t),i())};t.addEventListener("transitionend",p);var c=t.ownerDocument;if(c){var h=c.defaultView;if(h){var u=function(){s(t),t.classList.add(n),h.requestAnimationFrame((function(){t.style.transitionDuration=r+"ms",t.classList.add(l)}))};a?h.requestAnimationFrame(u):u()}}}(t,i,r.animationDuration[e],e,o)}},r.onClosing=function(t){r.props.show||t.classList.remove("k-animation-container-shown"),r.detachRepositionHandlers()},r.onClosed=function(){r.state.current===nt.hiding&&r.state.previous===nt.shown&&r.setState({current:nt.hidden,previous:r.state.current}),r.props.onClose&&r.props.onClose.call(void 0,{target:r})},r.getCurrentZIndex=function(){return r.context?r.context+1:100},Object(l.a)(et),r.reposition=function(t,e,r){var o,i,n,s;void 0===r&&(r={});var a=0;r=r||{};var l=function(){a=!1===r.leading?0:(new Date).getTime(),o=null,s=t.apply(i,n),o||(i=n=null)};return function(){var p=(new Date).getTime();a||!1!==r.leading||(a=p);var c=e-(p-a);return i=this,n=arguments,c<=0||c>e?(o&&(clearTimeout(o),o=null),a=p,s=t.apply(i,n),o||(i=n=null)):o||!1===r.trailing||(o=window.setTimeout(l,c)),s}}(r.reposition.bind(r),1e3/60),r}return rt(e,t),e.getDerivedStateFromProps=function(t,e){var r=t.show,o=t.anchor,i=t.anchorAlign,n=t.appendTo,s=t.collision,a=t.popupAlign,l=t.className,p=t.popupClass,c=t.style,h=t.offset,u=t.contentKey,f=ot({},e,{props:{show:r,anchor:o,anchorAlign:i,appendTo:n,collision:s,popupAlign:a,className:l,popupClass:p,style:c,offset:h,contentKey:u}});return t.show?e.current===nt.hidden||e.current===nt.hiding?ot({},f,{current:nt.showing,previous:e.current}):e.current===nt.showing?ot({},f,{current:nt.shown,previous:e.current}):e.current!==nt.shown||it(h,e.props.offset)&&it(i,e.props.anchorAlign)&&it(n,e.props.appendTo)&&it(s,e.props.collision)&&it(a,e.props.popupAlign)&&it(c,e.props.style)&&o===e.props.anchor&&p===e.props.popupClass&&l===e.props.className?f:ot({},f,{current:nt.reposition,previous:e.current}):e.current===nt.hiding||e.current===nt.hidden?ot({},f,{current:nt.hidden,previous:e.current}):ot({},f,{current:nt.hiding,previous:e.current})},e.prototype.componentDidUpdate=function(t){this.state.current===nt.showing&&this._popup?this.show(this._popup):this.state.current===nt.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===nt.reposition&&this.state.previous===nt.shown?this.setState({current:nt.shown,previous:this.state.current}):this.state.current===nt.shown&&t.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},e.prototype.componentDidMount=function(){this.state.current===nt.showing&&this._popup&&this.show(this._popup)},e.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},e.prototype.render=function(){var t=this,e=this.props,r=e.children,n=e.className,s=e.popupClass,a=e.show,l=e.id,u=e.positionMode,f=this.props.appendTo?this.props.appendTo:p.a?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===nt.reposition&&this.state.previous===nt.shown&&this._popup&&this.setPosition(this._popup);var d=Object.assign({},{position:u,top:0,left:-1e4},this.props.style||{}),v=this.state.current===nt.hiding;if((a||v)&&f){var y=this.getCurrentZIndex(),g=o.createElement(c.a.Provider,{value:y},o.createElement("div",{className:Object(h.a)("k-animation-container","k-animation-container-relative",n),id:l,ref:function(e){return t._popup=e},style:ot({zIndex:y},d)},o.createElement("div",{className:Object(h.a)("k-popup",s,"k-child-animation-container"),style:{transitionDelay:"0ms"}},r)));return null!==this.props.appendTo?i.createPortal(g,f):g}return null},Object.defineProperty(e.prototype,"animationDuration",{get:function(){var t=this.props.animate,e=0,r=0;return t&&(!0===t?e=r=300:(e=t.openDuration||0,r=t.closeDuration||0)),{enter:e,exit:r}},enumerable:!0,configurable:!0}),e.prototype.attachRepositionHandlers=function(t){var e=this;this.detachRepositionHandlers(),this._scrollableParents=Q.scrollableParents(this.props.anchor||t),this._scrollableParents.map((function(t){return t.addEventListener("scroll",e.reposition)})),window.addEventListener("resize",this.reposition)},e.prototype.detachRepositionHandlers=function(){var t=this;this._scrollableParents&&(this._scrollableParents.map((function(e){return e.removeEventListener("scroll",t.reposition)})),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},e.prototype.reposition=function(){this.setState({current:nt.reposition,previous:this.state.current})},e.propTypes={anchor:function(t){var e=t.anchor;return e&&"number"!=typeof e.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(t){var e=t.appendTo;return e&&"number"!=typeof e.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:n.oneOfType([n.string,n.arrayOf(n.string),n.object]),id:n.string,popupClass:n.oneOfType([n.string,n.arrayOf(n.string),n.object]),collision:n.shape({horizontal:n.oneOf([E,j,R]),vertical:n.oneOf([E,j,R])}),anchorAlign:n.shape({horizontal:n.oneOf([v,f,y]),vertical:n.oneOf([g,f,u])}),popupAlign:n.shape({horizontal:n.oneOf([v,f,y]),vertical:n.oneOf([g,f,u])}),offset:n.shape({left:n.number,top:n.number}),children:n.oneOfType([n.element,n.node]),show:n.bool,animate:n.oneOfType([n.bool,n.shape({openDuration:n.number,closeDuration:n.number})]),margin:n.shape({horizontal:n.number,vertical:n.number}),positionMode:n.oneOf(["fixed","absolute"]),scale:n.number,style:n.object,onClose:n.func,onPosition:n.func,onOpen:n.func},e.defaultProps={collision:{horizontal:E,vertical:j},anchorAlign:{horizontal:v,vertical:u},popupAlign:{horizontal:v,vertical:g},offset:st,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},e.contextType=c.a,e.displayName="PopupComponent",e}(o.Component),lt=function(){return(lt=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},pt=o.createContext((function(t){return t})),ct=o.forwardRef((function(t,e){var r=o.useContext(pt).call(void 0,t);return o.createElement(at,lt({ref:e},r))}));ct.displayName="Popup"}])}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@progress/kendo-drawing"),require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom"),require("@progress/kendo-react-intl")):"function"==typeof define&&define.amd?define(["@progress/kendo-drawing","react","prop-types","@progress/kendo-licensing","react-dom","@progress/kendo-react-intl"],e):"object"==typeof exports?exports.KendoReactCharts=e(require("@progress/kendo-drawing"),require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom"),require("@progress/kendo-react-intl")):t.KendoReactCharts=e(t.KendoDrawing,t.React,t.PropTypes,t.KendoLicensing,t.ReactDOM,t.KendoReactIntl)}(window,(function(t,e,r,o,i,n){return function(t){var e={};function r(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(o,i,function(e){return t[e]}.bind(null,i));return o},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=51)}([function(e,r){e.exports=t},function(t,r){t.exports=e},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),l=r(39),p=r(40),c=r(9),h=function(t){function e(e,r){var o=t.call(this,e,r)||this;return o.optionsStore=r.optionsStore,o.childStore=l.default(p.optionsReducer),o}return i(e,t),e.prototype.render=function(){var t=this,e=this.props.children;return void 0!==e?a.Children.map(e,(function(e){return a.isValidElement(e)?t.renderChildren(e):e})):null},e.prototype.componentDidMount=function(){this.dispatch()},e.prototype.componentDidUpdate=function(){this.dispatch()},e.prototype.dispatch=function(){var t=this.props,e=t._chartKey,r=t._chartCollectionIdxKey,o=t._parentStore,i=(t.children,s(t,["_chartKey","_chartCollectionIdxKey","_parentStore","children"]));(o||this.optionsStore).dispatch({chartKey:e,chartCollectionIdxKey:r,payload:Object.assign({},i,this.childStore.getState())})},e.prototype.renderChildren=function(t){var e=t.props.children,r=n({},t.props,{_parentStore:this.childStore});return a.cloneElement(t,r,e)},e.contextType=c.ChartContext,e}(a.Component);e.default=h},function(t,e){t.exports=r},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){this.target=t};e.BaseEvent=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasParent=function(t,e){for(var r=t;r&&r!==e;)r=r.parentNode;return!!r},e.validateChildren=function(t,e,r,o){var i=t[e];if(i&&Array.isArray(i))for(var n=0,s=i;n<s.length;n++){var a=s[n];if(!a.type||a.type!==o)return new Error(r+" children should be Array of type "+o.displayName+".")}return null};e.toggle=function(t){return void 0!==t&&!t}},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.prevented=!1,e}return i(e,t),e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}(r(4).BaseEvent);e.PreventableEvent=n},function(t,e,r){"use strict";r.r(e),r.d(e,"autoMajorUnit",(function(){return zt})),r.d(e,"Point",(function(){return Vt})),r.d(e,"Box",(function(){return Ht})),r.d(e,"Ring",(function(){return Ft})),r.d(e,"Sector",(function(){return Gt})),r.d(e,"ShapeBuilder",(function(){return Kt})),r.d(e,"ShapeElement",(function(){return $t})),r.d(e,"ChartElement",(function(){return Yt})),r.d(e,"BoxElement",(function(){return Zt})),r.d(e,"RootElement",(function(){return re})),r.d(e,"FloatElement",(function(){return ie})),r.d(e,"Text",(function(){return ae})),r.d(e,"TextBox",(function(){return ce})),r.d(e,"Title",(function(){return ue})),r.d(e,"AxisLabel",(function(){return de})),r.d(e,"Axis",(function(){return Ie})),r.d(e,"Note",(function(){return ye})),r.d(e,"CategoryAxis",(function(){return rr})),r.d(e,"DateCategoryAxis",(function(){return hr})),r.d(e,"DateValueAxis",(function(){return br})),r.d(e,"NumericAxis",(function(){return mr})),r.d(e,"LogarithmicAxis",(function(){return Or})),r.d(e,"PolarAxis",(function(){return Mr})),r.d(e,"RadarCategoryAxis",(function(){return Pr})),r.d(e,"RadarNumericAxis",(function(){return Rr})),r.d(e,"RadarLogarithmicAxis",(function(){return Br})),r.d(e,"CurveProcessor",(function(){return Dr})),r.d(e,"Gradients",(function(){return Jt})),r.d(e,"rectToBox",(function(){return le})),r.d(e,"ChartAxis",(function(){return zr})),r.d(e,"ChartPane",(function(){return Hr})),r.d(e,"ChartPlotArea",(function(){return Ur})),r.d(e,"findAxisByName",(function(){return Vr})),r.d(e,"Aggregates",(function(){return Wr})),r.d(e,"AreaChart",(function(){return zo})),r.d(e,"AreaSegment",(function(){return Io})),r.d(e,"AxisGroupRangeTracker",(function(){return Vo})),r.d(e,"Bar",(function(){return Go})),r.d(e,"BarChart",(function(){return $o})),r.d(e,"BarLabel",(function(){return Ho})),r.d(e,"BoxPlotChart",(function(){return ai})),r.d(e,"BoxPlot",(function(){return ni})),r.d(e,"BubbleChart",(function(){return vi})),r.d(e,"Bullet",(function(){return _i})),r.d(e,"BulletChart",(function(){return xi})),r.d(e,"CandlestickChart",(function(){return oi})),r.d(e,"Candlestick",(function(){return ti})),r.d(e,"CategoricalChart",(function(){return vo})),r.d(e,"CategoricalErrorBar",(function(){return co})),r.d(e,"CategoricalPlotArea",(function(){return Sn})),r.d(e,"Chart",(function(){return va})),r.d(e,"ChartContainer",(function(){return Mi})),r.d(e,"ClipAnimation",(function(){return Mo})),r.d(e,"ClusterLayout",(function(){return Yo})),r.d(e,"Crosshair",(function(){return Pi})),r.d(e,"CrosshairTooltip",(function(){return ki})),r.d(e,"DefaultAggregates",(function(){return en})),r.d(e,"DonutChart",(function(){return ms})),r.d(e,"DonutPlotArea",(function(){return _s})),r.d(e,"DonutSegment",(function(){return ys})),r.d(e,"ErrorBarBase",(function(){return po})),r.d(e,"ErrorRangeCalculator",(function(){return Qr})),r.d(e,"Highlight",(function(){return An})),r.d(e,"SharedTooltip",(function(){return Yn})),r.d(e,"Legend",(function(){return Vn})),r.d(e,"LegendItem",(function(){return Dn})),r.d(e,"LegendLayout",(function(){return Ln})),r.d(e,"LineChart",(function(){return Ro})),r.d(e,"LinePoint",(function(){return _o})),r.d(e,"LineSegment",(function(){return xo})),r.d(e,"Pane",(function(){return ji})),r.d(e,"PieAnimation",(function(){return Jn})),r.d(e,"PieChart",(function(){return fs})),r.d(e,"PieChartMixin",(function(){return cs})),r.d(e,"PiePlotArea",(function(){return ds})),r.d(e,"PieSegment",(function(){return ps})),r.d(e,"PlotAreaBase",(function(){return Zi})),r.d(e,"PlotAreaEventsMixin",(function(){return Qi})),r.d(e,"PlotAreaFactory",(function(){return Hn})),r.d(e,"PointEventsMixin",(function(){return yo})),r.d(e,"RangeBar",(function(){return on})),r.d(e,"RangeBarChart",(function(){return sn})),r.d(e,"RangeAreaPoint",(function(){return pn})),r.d(e,"RangeAreaChart",(function(){return vn})),r.d(e,"ScatterChart",(function(){return hi})),r.d(e,"ScatterErrorBar",(function(){return li})),r.d(e,"ScatterLineChart",(function(){return es})),r.d(e,"Selection",(function(){return Wn})),r.d(e,"SeriesAggregator",(function(){return Ji})),r.d(e,"SeriesBinder",(function(){return Yr})),r.d(e,"SplineSegment",(function(){return So})),r.d(e,"SplineAreaSegment",(function(){return Do})),r.d(e,"StackWrap",(function(){return Zo})),r.d(e,"Tooltip",(function(){return Kn})),r.d(e,"OHLCChart",(function(){return gn})),r.d(e,"OHLCPoint",(function(){return yn})),r.d(e,"WaterfallChart",(function(){return bn})),r.d(e,"WaterfallSegment",(function(){return _n})),r.d(e,"XYPlotArea",(function(){return is})),r.d(e,"MousewheelZoom",(function(){return Bn})),r.d(e,"ZoomSelection",(function(){return In})),r.d(e,"Pannable",(function(){return jn})),r.d(e,"anyHasZIndex",(function(){return To})),r.d(e,"appendIfNotNull",(function(){return Ri})),r.d(e,"areNumbers",(function(){return ei})),r.d(e,"bindSegments",(function(){return Bi})),r.d(e,"categoriesCount",(function(){return uo})),r.d(e,"countNumbers",(function(){return Fr})),r.d(e,"equalsIgnoreCase",(function(){return Li})),r.d(e,"evalOptions",(function(){return ho})),r.d(e,"filterSeriesByType",(function(){return Di})),r.d(e,"getDateField",(function(){return zi})),r.d(e,"getField",(function(){return Kr})),r.d(e,"hasGradientOverlay",(function(){return Uo})),r.d(e,"hasValue",(function(){return pi})),r.d(e,"isDateAxis",(function(){return Vi})),r.d(e,"segmentVisible",(function(){return Ii})),r.d(e,"singleItemOrArray",(function(){return Ni})),r.d(e,"createOutOfRangePoints",(function(){return Gi})),r.d(e,"ChartService",(function(){return Ae})),r.d(e,"DomEventsBuilder",(function(){return Te})),r.d(e,"FormatService",(function(){return Oe})),r.d(e,"IntlService",(function(){return be})),r.d(e,"TemplateService",(function(){return H})),r.d(e,"Sparkline",(function(){return wa})),r.d(e,"Navigator",(function(){return Ta})),r.d(e,"NavigatorHint",(function(){return Sa})),r.d(e,"StockChart",(function(){return ja})),r.d(e,"constants",(function(){return o})),r.d(e,"Gauge",(function(){return Ga})),r.d(e,"LinearGauge",(function(){return dl})),r.d(e,"LinearPointer",(function(){return el})),r.d(e,"ArrowLinearPointer",(function(){return sl})),r.d(e,"BarLinearPointer",(function(){return hl})),r.d(e,"LinearScale",(function(){return Qa})),r.d(e,"RadialGauge",(function(){return El})),r.d(e,"RadialPointer",(function(){return Al})),r.d(e,"RadialScale",(function(){return xl})),r.d(e,"ArcGauge",(function(){return zl})),r.d(e,"RangePointer",(function(){return Dl})),r.d(e,"ArcScale",(function(){return Rl})),r.d(e,"CircularGauge",(function(){return Vl})),r.d(e,"Barcode",(function(){return Pp})),r.d(e,"barcodeValidator",(function(){return Mp})),r.d(e,"QRCode",(function(){return Ec})),r.d(e,"qrcodeValidator",(function(){return jc})),r.d(e,"Map",(function(){return Gu})),r.d(e,"addClass",(function(){return x})),r.d(e,"removeClass",(function(){return C})),r.d(e,"alignPathToPixel",(function(){return k})),r.d(e,"clockwise",(function(){return S})),r.d(e,"convertableToNumber",(function(){return M})),r.d(e,"deepExtend",(function(){return j})),r.d(e,"elementStyles",(function(){return D})),r.d(e,"getSpacing",(function(){return z})),r.d(e,"getTemplate",(function(){return U})),r.d(e,"getter",(function(){return W})),r.d(e,"grep",(function(){return K})),r.d(e,"hasClasses",(function(){return X})),r.d(e,"HashMap",(function(){return q})),r.d(e,"inArray",(function(){return Z})),r.d(e,"interpolateValue",(function(){return Q})),r.d(e,"InstanceObserver",(function(){return J})),r.d(e,"isArray",(function(){return b})),r.d(e,"isFunction",(function(){return T})),r.d(e,"isNumber",(function(){return P})),r.d(e,"isObject",(function(){return R})),r.d(e,"isString",(function(){return A})),r.d(e,"map",(function(){return tt})),r.d(e,"mousewheelDelta",(function(){return rt})),r.d(e,"FontLoader",(function(){return xt})),r.d(e,"setDefaultOptions",(function(){return wt})),r.d(e,"sparseArrayLimits",(function(){return Ct})),r.d(e,"styleValue",(function(){return I})),r.d(e,"find",(function(){return Ot})),r.d(e,"elementScale",(function(){return At})),r.d(e,"autoTextColor",(function(){return Mt})),r.d(e,"createHashSet",(function(){return Bt})),r.d(e,"defaultErrorHandler",(function(){return Lt})),r.d(e,"keys",(function(){return Dt})),r.d(e,"append",(function(){return it})),r.d(e,"bindEvents",(function(){return nt})),r.d(e,"Class",(function(){return O.Class})),r.d(e,"defined",(function(){return st})),r.d(e,"deg",(function(){return at})),r.d(e,"elementOffset",(function(){return lt})),r.d(e,"elementSize",(function(){return pt})),r.d(e,"eventCoordinates",(function(){return ct})),r.d(e,"eventElement",(function(){return ht})),r.d(e,"hashKey",(function(){return ut})),r.d(e,"last",(function(){return ft})),r.d(e,"limitValue",(function(){return dt})),r.d(e,"logToConsole",(function(){return O.logToConsole})),r.d(e,"objectKey",(function(){return vt})),r.d(e,"rad",(function(){return yt})),r.d(e,"round",(function(){return gt})),r.d(e,"unbindEvents",(function(){return mt})),r.d(e,"valueOrDefault",(function(){return _t})),r.d(e,"chartBaseTheme",(function(){return Zu}));var o={};r.r(o),r.d(o,"NAVIGATOR_AXIS",(function(){return Aa})),r.d(o,"NAVIGATOR_PANE",(function(){return Pa}));var i="arc",n="#000",s="bottom",a="center",l="circle",p="date",c=/\{\d+:?/,h="left",u=Number.MAX_VALUE,f=-Number.MAX_VALUE,d="right",v="top",y="value",g="#fff",m="x",_="y";function b(t){return Array.isArray(t)}function x(t,e){for(var r=b(e)?e:[e],o=0;o<r.length;o++){var i=r[o];-1===t.className.indexOf(i)&&(t.className+=" "+i)}}var w=/\s+/g;function C(t,e){t&&t.className&&(t.className=t.className.replace(e,"").replace(w," "))}var O=r(0);function k(t){var e=.5;t.options.stroke&&O.drawing.util.defined(t.options.stroke.width)&&t.options.stroke.width%2==0&&(e=0);for(var r=0;r<t.segments.length;r++)t.segments[r].anchor().round(0).translate(e,e);return t}function S(t,e){return-t.x*e.y+t.y*e.x<0}function P(t){return"number"==typeof t&&!isNaN(t)}function A(t){return"string"==typeof t}function M(t){return P(t)||A(t)&&isFinite(t)}function T(t){return"function"==typeof t}function E(t,e){for(var r in e){var o=e[r],i=typeof o,n=void 0;if((n="object"===i&&null!==o?o.constructor:null)&&n!==Array)if(o instanceof Date)t[r]=new Date(o.getTime());else if(T(o.clone))t[r]=o.clone();else{var s=t[r];t[r]="object"==typeof s&&s||{},E(t[r],o)}else"undefined"!==i&&(t[r]=o)}return t}function j(t){for(var e=arguments,r=arguments.length,o=1;o<r;o++)E(t,e[o]);return t}function R(t){return"object"==typeof t}function I(t){return P(t)?t+"px":t}var B=/width|height|top|left|bottom|right/i;function L(t){return B.test(t)}function D(t,e){var r=A(e)?[e]:e;if(b(r)){for(var o={},i=window.getComputedStyle(t),n=0;n<r.length;n++){var s=r[n];o[s]=L(s)?parseFloat(i[s]):i[s]}return o}if(R(e))for(var a in e)t.style[a]=I(e[a])}function z(t,e){void 0===e&&(e=0);var r={top:0,right:0,bottom:0,left:0};return"number"==typeof t?r.top=r[d]=r[s]=r[h]=t:(r.top=t.top||e,r[d]=t[d]||e,r[s]=t[s]||e,r[h]=t[h]||e),r}var V={compile:function(t){return t}},N=function(){};N.register=function(t){V=t},N.compile=function(t){return V.compile(t)};var H=N;function U(t){var e;return void 0===t&&(t={}),t.template?t.template=e=H.compile(t.template):T(t.content)&&(e=t.content),e}var F=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,G={};function W(t){if(G[t])return G[t];var e=[];return t.replace(F,(function(t,r,o,i){e.push(O.drawing.util.defined(r)?r:o||i)})),G[t]=function(t){for(var r=t,o=0;o<e.length&&r;o++)r=r[e[o]];return r},G[t]}function K(t,e){for(var r=t.length,o=[],i=0;i<r;i++)e(t[i])&&o.push(t[i]);return o}function X(t,e){if(t.className)for(var r=e.split(" "),o=0;o<r.length;o++)if(-1!==t.className.indexOf(r[o]))return!0}G[void 0]=function(t){return t};var Y=function(){this._map={}};Y.prototype.get=function(t){return this._map[this._key(t)]},Y.prototype.set=function(t,e){this._map[this._key(t)]=e},Y.prototype._key=function(t){return t instanceof Date?t.getTime():t};var q=Y;function Z(t,e){if(e)return-1!==e.indexOf(t)}function Q(t,e,r){return O.drawing.util.round(t+(e-t)*r,3)}var $=function(t,e){this.observer=t,this.handlerMap=j({},this.handlerMap,e)};$.prototype.trigger=function(t,e){var r,o=this.observer,i=this.handlerMap;return i[t]?r=this.callObserver(i[t],e):o.trigger&&(r=this.callObserver("trigger",t,e)),r},$.prototype.callObserver=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return this.observer[t].apply(this.observer,e)},$.prototype.requiresHandlers=function(t){if(this.observer.requiresHandlers)return this.observer.requiresHandlers(t);for(var e=0;e<t.length;e++)if(this.handlerMap[t[e]])return!0};var J=$;function tt(t,e){for(var r=t.length,o=[],i=0;i<r;i++){var n=e(t[i]);O.drawing.util.defined(n)&&o.push(n)}return o}var et=O.support.browser||{};function rt(t){var e=0;return t.wheelDelta?(e=-t.wheelDelta/120,et.webkit&&(e/=2*Math.max(window.devicePixelRatio,.625))):t.detail&&(e=t.detail/3),e=e>0?Math.ceil(e):Math.floor(e)}var ot=O.drawing.util,it=ot.append,nt=ot.bindEvents,st=ot.defined,at=ot.deg,lt=ot.elementOffset,pt=ot.elementSize,ct=ot.eventCoordinates,ht=ot.eventElement,ut=ot.hashKey,ft=ot.last,dt=ot.limitValue,vt=ot.objectKey,yt=ot.rad,gt=ot.round,mt=ot.unbindEvents,_t=ot.valueOrDefault,bt=function(){};bt.fetchFonts=function(t,e,r){void 0===r&&(r={depth:0});!t||r.depth>5||!document.fonts||Object.keys(t).forEach((function(o){var i=t[o];"dataSource"!==o&&"$"!==o[0]&&i&&("font"===o?e.push(i):"object"==typeof i&&(r.depth++,bt.fetchFonts(i,e,r),r.depth--))}))},bt.loadFonts=function(t,e){var r=[];if(t.length>0&&document.fonts){try{r=t.map((function(t){return document.fonts.load(t)}))}catch(t){Object(O.logToConsole)(t)}Promise.all(r).then(e,e)}else e()},bt.preloadFonts=function(t,e){var r=[];bt.fetchFonts(t,r),bt.loadFonts(r,e)};var xt=bt;function wt(t,e){var r=t.prototype;r.options?r.options=j({},r.options,e):r.options=e}function Ct(t){for(var e=u,r=f,o=0,i=t.length;o<i;o++){var n=t[o];null!==n&&isFinite(n)&&(e=Math.min(e,n),r=Math.max(r,n))}return{min:e===u?void 0:e,max:r===f?void 0:r}}function Ot(t,e){for(var r=0;r<t.length;r++){var o=t[r];if(e(o,r,t))return o}}var kt=O.geometry.Matrix,St=/matrix\((.*)\)/;function Pt(t){var e=getComputedStyle(t).transform;return"none"===e?kt.unit():function(t){var e=t.match(St);if(null===e||2!==e.length)return kt.unit();var r=e[1].split(",").map((function(t){return parseFloat(t)}));return new(Function.prototype.bind.apply(kt,[null].concat(r)))}(e)}function At(t){if(!t)return kt.unit();for(var e=Pt(t),r=t.parentElement;r;){var o=Pt(r);e=e.multiplyCopy(o),r=r.parentElement}return e.b=e.c=e.e=e.f=0,e}var Mt=function(t){return new O.Color(t).isDark()?g:n},Tt={},Et=function(t){this._index={},this._values=t?t.slice(0):[];for(var e=0;e<this._values.length;e++)this._index[this._values[e]]=e},jt={size:{configurable:!0}};Et.prototype.values=function(){return this._values.filter((function(t){return t!==Tt}))},Et.prototype.has=function(t){return void 0!==this._index[t]},Et.prototype.add=function(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))},Et.prototype.delete=function(t){var e=this._index[t];void 0!==e&&(this._values[e]=Tt,delete this._index[t])},Et.prototype.clear=function(){this._index={},this._values=[]},jt.size.get=function(){return this._values.length},Object.defineProperties(Et.prototype,jt);var Rt=function(t){this._set=new Set(t)},It={size:{configurable:!0}};Rt.prototype.values=function(){return Array.from(this._set)},Rt.prototype.has=function(t){return this._set.has(t)},Rt.prototype.add=function(t){this._set.add(t)},Rt.prototype.delete=function(t){this._set.delete(t)},Rt.prototype.clear=function(){this._set.clear()},It.size.get=function(){return this._set.size},Object.defineProperties(Rt.prototype,It);function Bt(t){return function(){var t=!1;"function"==typeof Set&&(t=new Set([1]).has(1));return t}()?new Rt(t):new Et(t)}function Lt(t){throw t}var Dt={INSERT:45,DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F2:113,F10:121,F12:123,NUMPAD_PLUS:107,NUMPAD_MINUS:109,NUMPAD_DOT:110};function zt(t,e){var r=gt(e-t,9);if(0===r){if(0===e)return.1;r=Math.abs(e)}var o=Math.pow(10,Math.floor(Math.log(r)/Math.log(10))),i=gt(r/o,10);return gt(o*(i<1.904762?.2:i<4.761904?.5:i<9.523809?1:2),10)}var Vt=function(t){function e(e,r){t.call(this),this.x=e||0,this.y=r||0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.equals=function(t){return t&&this.x===t.x&&this.y===t.y},e.prototype.rotate=function(t,e){var r=yt(e),o=Math.cos(r),i=Math.sin(r),n=t.x,s=t.y,a=this.x,l=this.y;return this.x=gt(n+(a-n)*o+(l-s)*i,3),this.y=gt(s+(l-s)*o-(a-n)*i,3),this},e.prototype.multiply=function(t){return this.x*=t,this.y*=t,this},e.prototype.distanceTo=function(t){var e=this.x-t.x,r=this.y-t.y;return Math.sqrt(e*e+r*r)},e.onCircle=function(t,r,o){var i=yt(r);return new e(t.x-o*Math.cos(i),t.y-o*Math.sin(i))},e}(O.Class);function Nt(t,e,r,o,i){var n=yt(i);return new Vt(r+(t-r)*Math.cos(n)+(e-o)*Math.sin(n),o-(t-r)*Math.sin(n)+(e-o)*Math.cos(n))}var Ht=function(t){function e(e,r,o,i){t.call(this),this.x1=e||0,this.y1=r||0,this.x2=o||0,this.y2=i||0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.equals=function(t){return this.x1===t.x1&&this.x2===t.x2&&this.y1===t.y1&&this.y2===t.y2},e.prototype.width=function(){return this.x2-this.x1},e.prototype.height=function(){return this.y2-this.y1},e.prototype.translate=function(t,e){return this.x1+=t,this.x2+=t,this.y1+=e,this.y2+=e,this},e.prototype.move=function(t,e){var r=this.height(),o=this.width();return st(t)&&(this.x1=t,this.x2=this.x1+o),st(e)&&(this.y1=e,this.y2=this.y1+r),this},e.prototype.wrap=function(t){return this.x1=Math.min(this.x1,t.x1),this.y1=Math.min(this.y1,t.y1),this.x2=Math.max(this.x2,t.x2),this.y2=Math.max(this.y2,t.y2),this},e.prototype.wrapPoint=function(t){var r=b(t),o=r?t[0]:t.x,i=r?t[1]:t.y;return this.wrap(new e(o,i,o,i)),this},e.prototype.snapTo=function(t,e){return e!==m&&e||(this.x1=t.x1,this.x2=t.x2),e!==_&&e||(this.y1=t.y1,this.y2=t.y2),this},e.prototype.alignTo=function(t,e){var r=this.height(),o=this.width(),i=e===v||e===s?_:m,n=i===_?r:o;if(e===a){var l=t.center(),p=this.center();this.x1+=l.x-p.x,this.y1+=l.y-p.y}else this[i+1]=e===v||e===h?t[i+1]-n:t[i+2];return this.x2=this.x1+o,this.y2=this.y1+r,this},e.prototype.shrink=function(t,e){return this.x2-=t,this.y2-=e,this},e.prototype.expand=function(t,e){return this.shrink(-t,-e),this},e.prototype.pad=function(t){var e=z(t);return this.x1-=e.left,this.x2+=e.right,this.y1-=e.top,this.y2+=e.bottom,this},e.prototype.unpad=function(t){var e=z(t);return e.left=-e.left,e.top=-e.top,e.right=-e.right,e.bottom=-e.bottom,this.pad(e)},e.prototype.clone=function(){return new e(this.x1,this.y1,this.x2,this.y2)},e.prototype.center=function(){return new Vt(this.x1+this.width()/2,this.y1+this.height()/2)},e.prototype.containsPoint=function(t){return t.x>=this.x1&&t.x<=this.x2&&t.y>=this.y1&&t.y<=this.y2},e.prototype.points=function(){return[new Vt(this.x1,this.y1),new Vt(this.x2,this.y1),new Vt(this.x2,this.y2),new Vt(this.x1,this.y2)]},e.prototype.getHash=function(){return[this.x1,this.y1,this.x2,this.y2].join(",")},e.prototype.overlaps=function(t){return!(t.y2<this.y1||this.y2<t.y1||t.x2<this.x1||this.x2<t.x1)},e.prototype.rotate=function(t){var e=this.width(),r=this.height(),o=this.center(),i=o.x,n=o.y,s=Nt(0,0,i,n,t),a=Nt(e,0,i,n,t),l=Nt(e,r,i,n,t),p=Nt(0,r,i,n,t);return e=Math.max(s.x,a.x,l.x,p.x)-Math.min(s.x,a.x,l.x,p.x),r=Math.max(s.y,a.y,l.y,p.y)-Math.min(s.y,a.y,l.y,p.y),this.x2=this.x1+e,this.y2=this.y1+r,this},e.prototype.toRect=function(){return new O.geometry.Rect([this.x1,this.y1],[this.width(),this.height()])},e.prototype.hasSize=function(){return 0!==this.width()&&0!==this.height()},e.prototype.align=function(t,e,r){var o=e+1,i=e+2,n=e===m?"width":"height",l=this[n]();Z(r,[h,v])?(this[o]=t[o],this[i]=this[o]+l):Z(r,[d,s])?(this[i]=t[i],this[o]=this[i]-l):r===a&&(this[o]=t[o]+(t[n]()-l)/2,this[i]=this[o]+l)},e}(O.Class);function Ut(t,e){return t-e}var Ft=function(t){function e(e,r,o,i,n){t.call(this),this.center=e,this.innerRadius=r,this.radius=o,this.startAngle=i,this.angle=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.center,this.innerRadius,this.radius,this.startAngle,this.angle)},e.prototype.middle=function(){return this.startAngle+this.angle/2},e.prototype.setRadius=function(t,e){return e?this.innerRadius=t:this.radius=t,this},e.prototype.point=function(t,e){var r=yt(t),o=Math.cos(r),i=Math.sin(r),n=e?this.innerRadius:this.radius,s=gt(this.center.x-o*n,3),a=gt(this.center.y-i*n,3);return new Vt(s,a)},e.prototype.adjacentBox=function(t,e,r){var o=this.clone().expand(t),i=o.middle(),n=o.point(i),s=e/2,a=r/2,l=Math.sin(yt(i)),p=Math.cos(yt(i)),c=n.x-s,h=n.y-a;return Math.abs(l)<.9&&(c+=s*-p/Math.abs(p)),Math.abs(p)<.9&&(h+=a*-l/Math.abs(l)),new Ht(c,h,c+e,h+r)},e.prototype.containsPoint=function(t){var e=this.center,r=this.innerRadius,o=this.radius,i=this.startAngle,n=this.startAngle+this.angle,s=t.x-e.x,a=t.y-e.y,l=new Vt(s,a),p=this.point(i),c=new Vt(p.x-e.x,p.y-e.y),h=this.point(n),u=new Vt(h.x-e.x,h.y-e.y),f=gt(s*s+a*a,3);return(c.equals(l)||S(c,l))&&!S(u,l)&&f>=r*r&&f<=o*o},e.prototype.getBBox=function(){var t,e=new Ht(u,u,f,f),r=gt(this.startAngle%360),o=gt((r+this.angle)%360),i=this.innerRadius,n=[0,90,180,270,r,o].sort(Ut),s=n.indexOf(r),a=n.indexOf(o);t=r===o?n:s<a?n.slice(s,a+1):[].concat(n.slice(0,a+1),n.slice(s,n.length));for(var l=0;l<t.length;l++){var p=this.point(t[l]);e.wrapPoint(p),e.wrapPoint(p,i)}return i||e.wrapPoint(this.center),e},e.prototype.expand=function(t){return this.radius+=t,this},e}(O.Class),Gt=function(t){function e(e,r,o,i){t.call(this,e,0,r,o,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.expand=function(e){return t.prototype.expand.call(this,e)},e.prototype.clone=function(){return new e(this.center,this.radius,this.startAngle,this.angle)},e.prototype.setRadius=function(t){return this.radius=t,this},e}(Ft),Wt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createRing=function(t,e){var r=t.startAngle+180,o=t.angle+r;t.angle>0&&r===o&&(o+=.001);var i=new O.geometry.Point(t.center.x,t.center.y),n=Math.max(t.radius,0),s=Math.max(t.innerRadius,0),a=new O.geometry.Arc(i,{startAngle:r,endAngle:o,radiusX:n,radiusY:n}),l=O.drawing.Path.fromArc(a,e).close();if(s){a.radiusX=a.radiusY=s;var p=a.pointAt(o);l.lineTo(p.x,p.y),l.arc(o,r,s,s,!0)}else l.lineTo(i.x,i.y);return l},e}(O.Class);Wt.current=new Wt;var Kt=Wt,Xt=function(t){function e(e){t.call(this),this.children=[],this.options=j({},this.options,this.initUserOptions(e))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){return t},e.prototype.reflow=function(t){for(var e,r=this.children,o=0;o<r.length;o++){var i=r[o];i.reflow(t),e=e?e.wrap(i.box):i.box.clone()}this.box=e||t},e.prototype.destroy=function(){var t=this.children;this.animation&&this.animation.destroy();for(var e=0;e<t.length;e++)t[e].destroy()},e.prototype.getRoot=function(){var t=this.parent;return t?t.getRoot():null},e.prototype.getSender=function(){var t=this.getService();if(t)return t.sender},e.prototype.getService=function(){for(var t=this;t;){if(t.chartService)return t.chartService;t=t.parent}},e.prototype.translateChildren=function(t,e){for(var r=this.children,o=r.length,i=0;i<o;i++)r[i].box.translate(t,e)},e.prototype.append=function(){for(var t=arguments,e=this,r=0;r<arguments.length;r++){var o=t[r];e.children.push(o),o.parent=e}},e.prototype.renderVisual=function(){!1!==this.options.visible&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())},e.prototype.addVisual=function(){this.visual&&(this.visual.chartElement=this,this.parent&&this.parent.appendVisual(this.visual))},e.prototype.renderChildren=function(){for(var t=this.children,e=t.length,r=0;r<e;r++)t[r].renderVisual()},e.prototype.createVisual=function(){this.visual=new O.drawing.Group({zIndex:this.options.zIndex,visible:_t(this.options.visible,!0)})},e.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=O.drawing.Animation.create(this.visual,this.options.animation))},e.prototype.appendVisual=function(t){t.chartElement||(t.chartElement=this),t.options.noclip?this.clipRoot().visual.append(t):st(t.options.zIndex)?this.stackRoot().stackVisual(t):this.isStackRoot?this.stackVisual(t):this.visual?this.visual.append(t):this.parent.appendVisual(t)},e.prototype.clipRoot=function(){return this.parent?this.parent.clipRoot():this},e.prototype.stackRoot=function(){return this.parent?this.parent.stackRoot():this},e.prototype.stackVisual=function(t){var e,r=t.options.zIndex||0,o=this.visual.children,i=o.length;for(e=0;e<i;e++){var n=o[e];if(_t(n.options.zIndex,0)>r)break}this.visual.insert(e,t)},e.prototype.traverse=function(t){for(var e=this.children,r=e.length,o=0;o<r;o++){var i=e[o];t(i),i.traverse&&i.traverse(t)}},e.prototype.closest=function(t){for(var e=this,r=!1;e&&!r;)(r=t(e))||(e=e.parent);if(r)return e},e.prototype.renderComplete=function(){},e.prototype.hasHighlight=function(){var t=(this.options||{}).highlight;return!(!this.createHighlight||t&&!1===t.visible)},e.prototype.toggleHighlight=function(t,e){var r=this,o=(this.options||{}).highlight||{},i=o.visual,n=this._highlight;if(!n){var s={fill:{color:g,opacity:e||.2},stroke:{color:g,width:1,opacity:e||.2}};if(i){if(!(n=this._highlight=i(Object.assign(this.highlightVisualArgs(),{createVisual:function(){return r.createHighlight(s)},sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total}))))return}else n=this._highlight=this.createHighlight(s);st(n.options.zIndex)||(n.options.zIndex=_t(o.zIndex,this.options.zIndex)),this.appendVisual(n)}n.visible(t)},e.prototype.createGradientOverlay=function(t,e,r){var o=new O.drawing.Path(Object.assign({stroke:{color:"none"},fill:this.createGradient(r),closed:t.options.closed},e));return o.segments.elements(t.segments.elements()),o},e.prototype.createGradient=function(t){if(this.parent)return this.parent.createGradient(t)},e.prototype.supportsPointInactiveOpacity=function(){return!0},e}(O.Class);Xt.prototype.options={};var Yt=Xt,qt=function(t){function e(e){t.call(this,e),this.options.margin=z(this.options.margin),this.options.padding=z(this.options.padding)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(e){var r,o=this,i=this.options,n=i.width,s=i.height,a=i.shrinkToFit,l=n&&s,p=i.margin,c=i.padding,h=i.border.width,u=function(){o.align(e,m,i.align),o.align(e,_,i.vAlign),o.paddingBox=r.clone().unpad(p).unpad(h)},f=e.clone();l&&(f.x2=f.x1+n,f.y2=f.y1+s),a&&f.unpad(p).unpad(h).unpad(c),t.prototype.reflow.call(this,f),r=l?this.box=new Ht(0,0,n,s):this.box,a&&l?(u(),f=this.contentBox=this.paddingBox.clone().unpad(c)):(f=this.contentBox=r.clone(),r.pad(c).pad(h).pad(p),u()),this.translateChildren(r.x1-f.x1+p.left+h+c.left,r.y1-f.y1+p.top+h+c.top);for(var d=this.children,v=0;v<d.length;v++){var y=d[v];y.reflow(y.box)}},e.prototype.align=function(t,e,r){this.box.align(t,e,r)},e.prototype.hasBox=function(){var t=this.options;return t.border.width||t.background},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.options.visible&&this.hasBox()&&this.visual.append(O.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle()))},e.prototype.visualStyle=function(){var t=this.options,e=t.border||{};return{stroke:{width:e.width,color:e.color,opacity:_t(e.opacity,t.opacity),dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},cursor:t.cursor}},e}(Yt);wt(qt,{align:h,vAlign:v,margin:{},padding:{},border:{color:n,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});var Zt=qt,Qt=function(t){function e(e,r){t.call(this,e),this.pointData=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getElement=function(){var t=this.options,e=this.paddingBox,r=t.type,o=t.rotation,i=e.center(),n=e.width()/2,s=e.height()/2;if(!t.visible||!this.hasBox())return null;var a,p=this.visualStyle();if(r===l)a=new O.drawing.Circle(new O.geometry.Circle([gt(e.x1+n,3),gt(e.y1+s,3)],Math.min(n,s)),p);else if("triangle"===r)a=O.drawing.Path.fromPoints([[e.x1+n,e.y1],[e.x1,e.y2],[e.x2,e.y2]],p).close();else if("cross"===r)(a=new O.drawing.MultiPath(p)).moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),a.moveTo(e.x1,e.y2).lineTo(e.x2,e.y1);else{var c=e.toRect();if("roundedRect"===r){var h=_t(t.borderRadius,c.width()/5);c.setCornerRadius(h)}a=O.drawing.Path.fromRect(c,p)}return o&&a.transform(O.geometry.transform().rotate(-o,[i.x,i.y])),a.options.zIndex=t.zIndex,a},e.prototype.createElement=function(){var t=this,e=this.options.visual,r=this.pointData||{};return e?e({value:r.value,dataItem:r.dataItem,sender:this.getSender(),series:r.series,category:r.category,rect:this.paddingBox.toRect(),options:this.visualOptions(),createVisual:function(){return t.getElement()}}):this.getElement()},e.prototype.visualOptions=function(){var t=this.options;return{background:t.background,border:t.border,margin:t.margin,padding:t.padding,type:t.type,size:t.width,visible:t.visible}},e.prototype.createVisual=function(){this.visual=this.createElement()},e}(Zt);wt(Qt,{type:l,align:a,vAlign:a});var $t=Qt,Jt={glass:{type:"linear",rotation:0,stops:[{offset:0,color:g,opacity:0},{offset:.25,color:g,opacity:.3},{offset:1,color:g,opacity:0}]},sharpBevel:{type:"radial",stops:[{offset:0,color:g,opacity:.55},{offset:.65,color:g,opacity:0},{offset:.95,color:g,opacity:.25}]},roundedBevel:{type:"radial",stops:[{offset:.33,color:g,opacity:.06},{offset:.83,color:g,opacity:.2},{offset:.95,color:g,opacity:0}]},roundedGlass:{type:"radial",supportVML:!1,stops:[{offset:0,color:g,opacity:0},{offset:.5,color:g,opacity:.3},{offset:.99,color:g,opacity:0}]},sharpGlass:{type:"radial",supportVML:!1,stops:[{offset:0,color:g,opacity:.2},{offset:.15,color:g,opacity:.15},{offset:.17,color:g,opacity:.35},{offset:.85,color:g,opacity:.05},{offset:.87,color:g,opacity:.15},{offset:.99,color:g,opacity:0}]},bubbleShadow:{type:"radial",center:[.5,.5],radius:.5}};function te(t,e){if(t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2)return e;var r=Math.min(t.x1,e.x1),o=Math.max(t.x1,e.x1),i=Math.min(t.x2,e.x2),n=Math.max(t.x2,e.x2),s=Math.min(t.y1,e.y1),a=Math.max(t.y1,e.y1),l=Math.min(t.y2,e.y2),p=Math.max(t.y2,e.y2),c=[];return c[0]=new Ht(o,s,i,a),c[1]=new Ht(r,a,o,l),c[2]=new Ht(i,a,n,l),c[3]=new Ht(o,l,i,p),t.x1===r&&t.y1===s||e.x1===r&&e.y1===s?(c[4]=new Ht(r,s,o,a),c[5]=new Ht(i,l,n,p)):(c[4]=new Ht(i,s,n,a),c[5]=new Ht(r,l,o,p)),K(c,(function(t){return t.height()>0&&t.width()>0}))[0]}var ee=function(t){function e(e){t.call(this,e);var r=this.options;r.width=parseInt(r.width,10),r.height=parseInt(r.height,10),this.gradients={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(){var t=this.options,e=this.children,r=new Ht(0,0,t.width,t.height);this.box=r.unpad(t.margin);for(var o=0;o<e.length;o++)e[o].reflow(r),r=te(r,e[o].box)||new Ht},e.prototype.createVisual=function(){this.visual=new O.drawing.Group,this.createBackground()},e.prototype.createBackground=function(){var t=this.options,e=t.border||{},r=this.box.clone().pad(t.margin).unpad(e.width),o=O.drawing.Path.fromRect(r.toRect(),{stroke:{color:e.width?e.color:"",width:e.width,dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},zIndex:-10});this.visual.append(o)},e.prototype.getRoot=function(){return this},e.prototype.createGradient=function(t){var e,r=this.gradients,o=vt(t),i=Jt[t.gradient];if(r[o])e=r[o];else{var n=Object.assign({},i,t);"linear"===i.type?e=new O.drawing.LinearGradient(n):(t.innerRadius&&(n.stops=function(t){for(var e=t.stops,r=t.innerRadius/t.radius*100,o=e.length,i=[],n=0;n<o;n++){var s=Object.assign({},e[n]);s.offset=(s.offset*(100-r)+r)/100,i.push(s)}return i}(n)),(e=new O.drawing.RadialGradient(n)).supportVML=!1!==i.supportVML),r[o]=e}return e},e.prototype.cleanGradients=function(){var t=this.gradients;for(var e in t)t[e]._observers=[]},e.prototype.size=function(){var t=this.options;return new Ht(0,0,t.width,t.height)},e}(Yt);wt(ee,{width:600,height:400,background:g,border:{color:n,width:0},margin:z(5),zIndex:-2});var re=ee,oe=function(t){function e(e){t.call(this,e),this._initDirection()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initDirection=function(){var t=this.options;t.vertical?(this.groupAxis=m,this.elementAxis=_,this.groupSizeField="width",this.elementSizeField="height",this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=_,this.elementAxis=m,this.groupSizeField="height",this.elementSizeField="width",this.groupSpacing=t.vSpacing,this.elementSpacing=t.spacing)},e.prototype.reflow=function(t){this.box=t.clone(),this.reflowChildren()},e.prototype.reflowChildren=function(){var t=this.box,e=this.elementAxis,r=this.groupAxis,o=this.elementSizeField,i=this.groupSizeField,n=this.groupOptions(),s=n.groups,a=n.groupsSize,l=n.maxGroupElementsSize,p=s.length,c=t[r+1]+this.alignStart(a,t[i]());if(p){for(var h=c,u=0;u<p;u++){for(var f=s[u],d=f.groupElements,v=t[e+1],y=d.length,g=0;g<y;g++){var m=d[g],_=this.elementSize(m),b=h+this.alignStart(_[i],f.groupSize),x=new Ht;x[r+1]=b,x[r+2]=b+_[i],x[e+1]=v,x[e+2]=v+_[o],m.reflow(x),v+=_[o]+this.elementSpacing}h+=f.groupSize+this.groupSpacing}t[r+1]=c,t[r+2]=c+a,t[e+2]=t[e+1]+l}},e.prototype.alignStart=function(t,e){var r=0,o=this.options.align;return o===d||o===s?r=e-t:o===a&&(r=(e-t)/2),r},e.prototype.groupOptions=function(){for(var t=this.box,e=this.children,r=this.elementSizeField,o=this.groupSizeField,i=this.elementSpacing,n=this.groupSpacing,s=gt(t[r]()),a=e.length,l=[],p=0,c=0,h=0,u=0,f=[],d=0;d<a;d++){var v=e[d];v.box||v.reflow(t);var y=this.elementSize(v);this.options.wrap&>(c+i+y[r])>s&&(l.push({groupElements:f,groupSize:p,groupElementsSize:c}),u=Math.max(u,c),h+=n+p,p=0,c=0,f=[]),p=Math.max(p,y[o]),c>0&&(c+=i),c+=y[r],f.push(v)}return l.push({groupElements:f,groupSize:p,groupElementsSize:c}),{groups:l,groupsSize:h+=p,maxGroupElementsSize:u=Math.max(u,c)}},e.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},e.prototype.createVisual=function(){},e}(Yt);wt(oe,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});var ie=oe,ne=O.drawing.Text,se=function(t){function e(e,r){t.call(this,r),this.content=e,this.reflow(new Ht)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,r=e.size=O.drawing.util.measureText(this.content,{font:e.font});this.baseline=r.baseline,this.box=new Ht(t.x1,t.y1,t.x1+r.width,t.y1+r.height)},e.prototype.createVisual=function(){var t=this.options,e=t.font,r=t.color,o=t.opacity,i=t.cursor;this.visual=new ne(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:r,opacity:o},cursor:i})},e}(Yt);wt(se,{font:"12px sans-serif",color:n});var ae=se;function le(t){var e=t.origin,r=t.bottomRight();return new Ht(e.x,e.y,r.x,r.y)}var pe=/\n/m,ce=function(t){function e(e,r,o){t.call(this,r),this.content=e,this.data=o,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new Ht)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initContainer=function(){var t=this.options,e=String(this.content).split(pe),r=new ie({vertical:!0,align:t.align,wrap:!1}),o=j({},t,{opacity:1,animation:null});this.container=r,this.append(r);for(var i=0;i<e.length;i++){var n=new ae(e[i].trim(),o);r.append(n)}},e.prototype.reflow=function(e){var r=this.options,o=r.visual;if(this.container.options.align=r.align,o&&!this._boxReflow){var i=e;i.hasSize()||(this._boxReflow=!0,this.reflow(i),this._boxReflow=!1,i=this.box);var n=this.visual=o(this.visualContext(i));n&&(i=le(n.clippedBBox()||new O.geometry.Rect),n.options.zIndex=r.zIndex),this.box=this.contentBox=this.paddingBox=i}else if(t.prototype.reflow.call(this,e),r.rotation){var s=z(r.margin),a=this.box.unpad(s);this.targetBox=e,this.normalBox=a.clone(),(a=this.rotate()).translate(s.left-s.right,s.top-s.bottom),this.rotatedBox=a.clone(),a.pad(s)}},e.prototype.createVisual=function(){var t=this.options;if(this.visual=new O.drawing.Group({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()){var e=O.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle());this.visual.append(e)}},e.prototype.renderVisual=function(){if(this.options.visible)if(this.options.visual){var e=this.visual;e&&!st(e.options.noclip)&&(e.options.noclip=this.options.noclip),this.addVisual(),this.createAnimation()}else t.prototype.renderVisual.call(this)},e.prototype.visualContext=function(t){var e=this,r={text:this.content,rect:t.toRect(),sender:this.getSender(),options:this.options,createVisual:function(){return e._boxReflow=!0,e.reflow(t),e._boxReflow=!1,e.getDefaultVisual()}};return this.data&&Object.assign(r,this.data),r},e.prototype.getDefaultVisual=function(){this.createVisual(),this.renderChildren();var t=this.visual;return delete this.visual,t},e.prototype.rotate=function(){var t=this.options;return this.box.rotate(t.rotation),this.align(this.targetBox,m,t.align),this.align(this.targetBox,_,t.vAlign),this.box},e.prototype.rotationTransform=function(){var t=this.options.rotation;if(!t)return null;var e=this.normalBox.center(),r=e.x,o=e.y,i=this.rotatedBox.center();return O.geometry.transform().translate(i.x-r,i.y-o).rotate(t,[r,o])},e}(Zt),he=function(t){function e(e){t.call(this,e),this.append(new ce(this.options.text,Object.assign({},this.options,{vAlign:this.options.position})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(e){t.prototype.reflow.call(this,e),this.box.snapTo(e,m)},e.buildTitle=function(t,r,o){var i,n=t;return"string"==typeof t&&(n={text:t}),(n=Object.assign({visible:!0},o,n))&&n.visible&&n.text&&(i=new e(n),r.append(i)),i},e}(Yt);wt(he,{color:n,position:v,align:a,margin:z(5),padding:z(5)});var ue=he,fe=function(t){function e(e,r,o,i,n){t.call(this,r,n),this.text=r,this.value=e,this.index=o,this.dataItem=i,this.reflow(new Ht)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.visualContext=function(e){var r=t.prototype.visualContext.call(this,e);return r.value=this.value,r.dataItem=this.dataItem,r.format=this.options.format,r.culture=this.options.culture,r},e.prototype.click=function(t,e){t.trigger("axisLabelClick",{element:ht(e),value:this.value,text:this.text,index:this.index,dataItem:this.dataItem,axis:this.parent.options})},e.prototype.rotate=function(){if(this.options.alignRotation!==a){var e=this.normalBox.toRect(),r=this.rotationTransform();this.box=le(e.bbox(r.matrix()))}else t.prototype.rotate.call(this);return this.box},e.prototype.rotationTransform=function(){var e=this.options,r=e.rotation;if(!r)return null;if(e.alignRotation===a)return t.prototype.rotationTransform.call(this);var o=O.geometry.transform().rotate(r).matrix(),i=this.normalBox.toRect(),n=this.targetBox.toRect(),l=e.rotationOrigin||v,p=l===v||l===s?m:_,c=l===v||l===s?_:m,u=l===v||l===h?n.origin:n.bottomRight(),f=i.topLeft().transformCopy(o),d=i.topRight().transformCopy(o),y=i.bottomRight().transformCopy(o),g=i.bottomLeft().transformCopy(o),b=O.geometry.Rect.fromPoints(f,d,y,g),x={};x[c]=n.origin[c]-b.origin[c];var w,C,k=Math.abs(f[c]+x[c]-u[c]),S=Math.abs(d[c]+x[c]-u[c]);gt(k,10)===gt(S,10)?(w=f,C=d):S<k?(w=d,C=y):(w=f,C=g);var P=w[p]+(C[p]-w[p])/2;return x[p]=n.center()[p]-P,O.geometry.transform().translate(x.x,x.y).rotate(r)},e}(ce);wt(fe,{_autoReflow:!1});var de=fe,ve=function(t){function e(e,r,o){t.call(this,r),this.fields=e,this.chartService=o,this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.hide=function(){this.options.visible=!1},e.prototype.show=function(){this.options.visible=!0},e.prototype.render=function(){var t=this,e=this.options;if(e.visible){var r,o,i=e.label,n=e.icon,s=new Ht,a=function(){return t},p=n.size,c=this.fields.text;if(st(i)&&i.visible){var h=U(i);h?c=h(this.fields):i.format&&(c=this.chartService.format.auto(i.format,c)),i.color||(i.color="inside"===i.position?"#fff":n.background),this.label=new ce(c,j({},i)),this.label.aliasFor=a,"inside"!==i.position||st(p)||(n.type===l?p=Math.max(this.label.box.width(),this.label.box.height()):(r=this.label.box.width(),o=this.label.box.height()),s.wrap(this.label.box))}n.width=r||p||7,n.height=o||p||7;var u=new $t(j({},n));u.aliasFor=a,this.marker=u,this.append(u),this.label&&this.append(this.label),u.reflow(new Ht),this.wrapperBox=s.wrap(u.box)}},e.prototype.reflow=function(t){var e,r,o,i=this.options,n=this.label,a=this.marker,l=this.wrapperBox,p=t.center(),c=i.line.length,u=i.position;i.visible&&(Z(u,[h,d])?u===h?(o=l.alignTo(t,u).translate(-c,t.center().y-l.center().y),i.line.visible&&(e=[t.x1,p.y],this.linePoints=[e,[o.x2,p.y]],r=o.clone().wrapPoint(e))):(o=l.alignTo(t,u).translate(c,t.center().y-l.center().y),i.line.visible&&(e=[t.x2,p.y],this.linePoints=[e,[o.x1,p.y]],r=o.clone().wrapPoint(e))):u===s?(o=l.alignTo(t,u).translate(t.center().x-l.center().x,c),i.line.visible&&(e=[p.x,t.y2],this.linePoints=[e,[p.x,o.y1]],r=o.clone().wrapPoint(e))):(o=l.alignTo(t,u).translate(t.center().x-l.center().x,-c),i.line.visible&&(e=[p.x,t.y1],this.linePoints=[e,[p.x,o.y2]],r=o.clone().wrapPoint(e))),a&&a.reflow(o),n&&(n.reflow(o),a&&("outside"===i.label.position&&n.box.alignTo(a.box,u),n.reflow(n.box))),this.contentBox=o,this.targetBox=t,this.box=r||o)},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.visual.options.noclip=this.options.noclip,this.options.visible&&this.createLine()},e.prototype.renderVisual=function(){var e=this,r=this.options,o=r.visual;r.visible&&o?(this.visual=o(Object.assign(this.fields,{sender:this.getSender(),rect:this.targetBox.toRect(),options:{background:r.background,border:r.background,icon:r.icon,label:r.label,line:r.line,position:r.position,visible:r.visible},createVisual:function(){e.createVisual(),e.renderChildren();var t=e.visual;return delete e.visual,t}})),this.addVisual()):t.prototype.renderVisual.call(this)},e.prototype.createLine=function(){var t=this.options.line;if(this.linePoints){var e=O.drawing.Path.fromPoints(this.linePoints,{stroke:{color:t.color,width:t.width,dashType:t.dashType}});k(e),this.visual.append(e)}},e.prototype.click=function(t,e){var r=this.eventArgs(e);t.trigger("noteClick",r)||e.preventDefault()},e.prototype.over=function(t,e){var r=this.eventArgs(e);t.trigger("noteHover",r)||e.preventDefault()},e.prototype.out=function(t,e){var r=this.eventArgs(e);t.trigger("noteLeave",r)},e.prototype.eventArgs=function(t){var e=this.options;return Object.assign(this.fields,{element:ht(t),text:st(e.label)?e.label.text:"",visual:this.visual})},e}(Zt);wt(ve,{icon:{visible:!0,type:l},label:{position:"inside",visible:!0,align:a,vAlign:a},line:{visible:!0},visible:!0,position:v,zIndex:2});var ye=ve,ge={format:function(t,e){return e},toString:function(t){return t},parseDate:function(t){return new Date(t)},firstDay:function(){return 0}},me=function(){},_e={implementation:{configurable:!0}};me.register=function(t){ge=t},_e.implementation.get=function(){return ge},Object.defineProperties(me,_e);var be=me,xe=/\{(\d+)(:[^\}]+)?\}/g,we=function(t){this._intlService=t},Ce={intl:{configurable:!0}};Ce.intl.get=function(){return this._intlService||be.implementation},Ce.intl.set=function(t){this._intlService=t},we.prototype.auto=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];var o=this.intl;return A(t)&&t.match(c)?o.format.apply(o,[t].concat(e)):o.toString(e[0],t)},we.prototype.localeAuto=function(t,e,r){var o=this.intl;return A(t)&&t.match(c)?t.replace(xe,(function(t,i,n){var s=e[parseInt(i,10)];return o.toString(s,n?n.substring(1):"",r)})):o.toString(e[0],t,r)},Object.defineProperties(we.prototype,Ce);var Oe=we,ke=function(t,e){void 0===e&&(e={}),this._intlService=e.intlService,this.sender=e.sender||t,this.format=new Oe(e.intlService),this.chart=t,this.rtl=Boolean(e.rtl)},Se={intl:{configurable:!0}};Se.intl.get=function(){return this._intlService||be.implementation},Se.intl.set=function(t){this._intlService=t,this.format.intl=t},ke.prototype.notify=function(t,e){this.chart&&this.chart.trigger(t,e)},ke.prototype.isPannable=function(t){var e=((this.chart||{}).options||{}).pannable;return e&&e.lock!==t},Object.defineProperties(ke.prototype,Se);var Pe,Ae=ke,Me=function(){};Me.register=function(t){Pe=t},Me.create=function(t,e){if(Pe)return Pe.create(t,e)};var Te=Me;function Ee(t,e){var r=t.tickX,o=t.tickY,i=t.position,n=new O.drawing.Path({stroke:{width:e.width,color:e.color}});return t.vertical?n.moveTo(r,i).lineTo(r+e.size,i):n.moveTo(i,o).lineTo(i,o+e.size),k(n),n}function je(t,e){var r=t.lineStart,o=t.lineEnd,i=t.position,n=new O.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});return t.vertical?n.moveTo(r,i).lineTo(o,i):n.moveTo(i,r).lineTo(i,o),k(n),n}var Re=function(t){function e(e,r){void 0===r&&(r=new Ae),t.call(this,e),this.chartService=r,this.options.visible||(this.options=j({},this.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),this.options.minorTicks=j({},{color:this.options.line.color,width:this.options.line.width,visible:"none"!==this.options.minorTickType},this.options.minorTicks,{size:this.options.minorTickSize,align:this.options.minorTickType}),this.options.majorTicks=j({},{color:this.options.line.color,width:this.options.line.width,visible:"none"!==this.options.majorTickType},this.options.majorTicks,{size:this.options.majorTickSize,align:this.options.majorTickType}),this.initFields(),this.options._deferLabels||this.createLabels(),this.createTitle(),this.createNotes()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){},e.prototype.labelsRange=function(){return{min:this.options.labels.skip,max:this.labelsCount()}},e.prototype.normalizeLabelRotation=function(t){var e=t.rotation;R(e)&&(t.alignRotation=e.align,t.rotation=e.angle)},e.prototype.createLabels=function(){var t=this.options,e=t.vertical?d:a,r=j({},t.labels,{align:e,zIndex:t.zIndex}),o=Math.max(1,r.step);if(this.clearLabels(),r.visible){this.normalizeLabelRotation(r),"auto"===r.rotation&&(r.rotation=0,t.autoRotateLabels=!0);for(var i=this.labelsRange(),n=i.min;n<i.max;n+=o){var s={index:n,count:i.max},l=this.createAxisLabel(n,r,s);l&&(this.append(l),this.labels.push(l))}}},e.prototype.clearLabels=function(){this.children=K(this.children,(function(t){return!(t instanceof de)})),this.labels=[]},e.prototype.clearTitle=function(){var t=this;this.title&&(this.children=K(this.children,(function(e){return e!==t.title})),this.title=void 0)},e.prototype.clear=function(){this.clearLabels(),this.clearTitle()},e.prototype.lineBox=function(){var t=this.options,e=this.box,r=t.vertical,o=t.labels.mirror,i=o?e.x1:e.x2,n=o?e.y2:e.y1,s=t.line.width||0;return r?new Ht(i,e.y1,i,e.y2-s):new Ht(e.x1,n,e.x2-s,n)},e.prototype.createTitle=function(){var t=this.options,e=j({rotation:t.vertical?-90:0,text:"",zIndex:1,visualSize:!0},t.title);if(e.visible&&e.text){var r=new ce(e.text,e);this.append(r),this.title=r}},e.prototype.createNotes=function(){var t=this.options,e=t.notes,r=e.data||[];this.notes=[];for(var o=0;o<r.length;o++){var i=j({},e,r[o]);i.value=this.parseNoteValue(i.value);var n=new ye({value:i.value,text:i.label.text,dataItem:i},i,this.chartService);n.options.visible&&(st(n.options.position)?t.vertical&&!Z(n.options.position,[h,d])?n.options.position=t.reverse?h:d:t.vertical||Z(n.options.position,[v,s])||(n.options.position=t.reverse?s:v):t.vertical?n.options.position=t.reverse?h:d:n.options.position=t.reverse?s:v,this.append(n),this.notes.push(n))}},e.prototype.parseNoteValue=function(t){return t},e.prototype.renderVisual=function(){t.prototype.renderVisual.call(this),this.createPlotBands()},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.createBackground(),this.createLine()},e.prototype.gridLinesVisual=function(){var t=this._gridLines;return t||(t=this._gridLines=new O.drawing.Group({zIndex:-2}),this.appendVisual(this._gridLines)),t},e.prototype.createTicks=function(t){var e=this.options,r=this.lineBox(),o=e.labels.mirror,i=e.majorTicks.visible?e.majorUnit:0,n={vertical:e.vertical};function s(e,i,s){var a=e.length,l=Math.max(1,i.step);if(i.visible)for(var p=i.skip;p<a;p+=l)st(s)&&p%s==0||(n.tickX=o?r.x2:r.x2-i.size,n.tickY=o?r.y1-i.size:r.y1,n.position=e[p],t.append(Ee(n,i)))}s(this.getMajorTickPositions(),e.majorTicks),s(this.getMinorTickPositions(),e.minorTicks,i/e.minorUnit)},e.prototype.createLine=function(){var t=this.options,e=t.line,r=this.lineBox();if(e.width>0&&e.visible){var o=new O.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});o.moveTo(r.x1,r.y1).lineTo(r.x2,r.y2),t._alignLines&&k(o);var i=this._lineGroup=new O.drawing.Group;i.append(o),this.visual.append(i),this.createTicks(i)}},e.prototype.getActualTickSize=function(){var t=this.options,e=0;return t.majorTicks.visible&&t.minorTicks.visible?e=Math.max(t.majorTicks.size,t.minorTicks.size):t.majorTicks.visible?e=t.majorTicks.size:t.minorTicks.visible&&(e=t.minorTicks.size),e},e.prototype.createBackground=function(){var t=this.options,e=this.box,r=t.background;r&&(this._backgroundPath=O.drawing.Path.fromRect(e.toRect(),{fill:{color:r},stroke:null}),this.visual.append(this._backgroundPath))},e.prototype.createPlotBands=function(){var t=this,e=this.options,r=e.plotBands||[],o=e.vertical,i=this.plotArea;if(0!==r.length){for(var n=this._plotbandGroup=new O.drawing.Group({zIndex:-1}),s=K(this.pane.axes,(function(e){return e.options.vertical!==t.options.vertical}))[0],a=0;a<r.length;a++){var l=r[a],p=void 0,c=void 0,u=l.label,f=void 0;if(o?(p=(s||i.axisX).lineBox(),c=t.getSlot(l.from,l.to,!0)):(p=t.getSlot(l.from,l.to,!0),c=(s||i.axisY).lineBox()),u&&(u.vAlign=u.position||h,f=t.createPlotBandLabel(u,l,new Ht(p.x1,c.y1,p.x2,c.y2))),0!==p.width()&&0!==c.height()){var d=new O.geometry.Rect([p.x1,c.y1],[p.width(),c.height()]),v=O.drawing.Path.fromRect(d,{fill:{color:l.color,opacity:l.opacity},stroke:null});n.append(v),f&&n.append(f)}}this.appendVisual(n)}},e.prototype.createPlotBandLabel=function(t,e,r){if(!1===t.visible)return null;var o,i=t.text;if(st(t)&&t.visible){var n=U(t);n?i=n({text:i,item:e}):t.format&&(i=this.chartService.format.auto(t.format,i)),t.color||(t.color=this.options.labels.color)}return(o=new ce(i,t)).reflow(r),o.renderVisual(),o.visual},e.prototype.createGridLines=function(t){var e=this.options,r=e.minorGridLines,o=e.majorGridLines,i=e.minorUnit,n=e.vertical,s=t.options.line.visible,a=o.visible?e.majorUnit:0,l=t.lineBox(),p=l[n?"y1":"x1"],c={lineStart:l[n?"x1":"y1"],lineEnd:l[n?"x2":"y2"],vertical:n},h=[],u=this.gridLinesVisual();function f(t,e,r){var o=t.length,i=Math.max(1,e.step);if(e.visible)for(var n=e.skip;n<o;n+=i){var a=gt(t[n]);Z(a,h)||n%r==0||s&&p===a||(c.position=a,u.append(je(c,e)),h.push(a))}}return f(this.getMajorTickPositions(),o),f(this.getMinorTickPositions(),r,a/i),u.children},e.prototype.reflow=function(t){for(var e=this.options,r=this.labels,o=this.title,i=e.vertical,n=r.length,s=i?"width":"height",a=o?o.box[s]():0,l=this.getActualTickSize()+e.margin+a,p=((this.getRoot()||{}).box||t)[s](),c=0,h=0;h<n;h++){var u=r[h].box[s]();u+l<=p&&(c=Math.max(c,u))}this.box=i?new Ht(t.x1,t.y1,t.x1+c+l,t.y2):new Ht(t.x1,t.y1,t.x2,t.y1+c+l),this.arrangeTitle(),this.arrangeLabels(),this.arrangeNotes()},e.prototype.getLabelsTickPositions=function(){return this.getMajorTickPositions()},e.prototype.labelTickIndex=function(t){return t.index},e.prototype.arrangeLabels=function(){for(var t=this.options,e=this.labels,r=this.labelsBetweenTicks(),o=t.vertical,i=t.labels.mirror,n=this.getLabelsTickPositions(),s=0;s<e.length;s++){var a=e[s],l=this.labelTickIndex(a),p=o?a.box.height():a.box.width(),c=n[l],h=n[l+1],u=void 0,f=void 0;if(o){if(r)u=c+(h-c)/2-p/2;else u=c-p/2;f=u}else r?(u=c,f=h):f=(u=c-p/2)+p;this.positionLabel(a,i,u,f)}},e.prototype.positionLabel=function(t,e,r,o){void 0===o&&(o=r);var i,n=this.options,a=n.vertical,l=this.lineBox(),p=this.getActualTickSize()+n.margin;if(a){var c=l.x2;e?(c+=p,t.options.rotationOrigin=h):(c-=p+t.box.width(),t.options.rotationOrigin=d),i=t.box.move(c,r)}else{var u=l.y1;e?(u-=p+t.box.height(),t.options.rotationOrigin=s):(u+=p,t.options.rotationOrigin=v),i=new Ht(r,u,o,u+t.box.height())}t.reflow(i)},e.prototype.autoRotateLabelAngle=function(t,e){return t.width()<e?0:t.height()>e?-90:-45},e.prototype.autoRotateLabels=function(){if(!this.options.autoRotateLabels||this.options.vertical)return!1;for(var t=this.getMajorTickPositions(),e=this.labels,r=Math.min(e.length,t.length-1),o=0,i=0;i<r;i++){var n=Math.abs(t[i+1]-t[i]),s=e[i].box,a=this.autoRotateLabelAngle(s,n);if(0!==a&&(o=a),-90===o)break}if(0!==o){for(var l=0;l<e.length;l++)e[l].options.rotation=o,e[l].reflow(new Ht);return!0}},e.prototype.arrangeTitle=function(){var t=this.options,e=this.title,r=t.labels.mirror,o=t.vertical;e&&(o?(e.options.align=r?d:h,e.options.vAlign=e.options.position):(e.options.align=e.options.position,e.options.vAlign=r?v:s),e.reflow(this.box))},e.prototype.arrangeNotes=function(){for(var t=0;t<this.notes.length;t++){var e=this.notes[t],r=e.options.value,o=void 0;st(r)?(this.shouldRenderNote(r)?e.show():e.hide(),o=this.noteSlot(r)):e.hide(),e.reflow(o||this.lineBox())}},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.alignTo=function(t){var e=t.lineBox(),r=this.options.vertical,o=r?_:m;this.box.snapTo(e,o),r?this.box.shrink(0,this.lineBox().height()-e.height()):this.box.shrink(this.lineBox().width()-e.width(),0),this.box[o+1]-=this.lineBox()[o+1]-e[o+1],this.box[o+2]-=this.lineBox()[o+2]-e[o+2]},e.prototype.axisLabelText=function(t,e,r){var o,i=this,n=U(e),s=function(){return e.format?i.chartService.format.localeAuto(e.format,[t],e.culture):t};n?o=n(Object.assign({},r,{get text(){return s()},value:t,format:e.format,culture:e.culture})):o=s();return o},e.prototype.slot=function(t,e,r){var o=this.getSlot(t,e,r);if(o)return o.toRect()},e.prototype.contentBox=function(){var t=this.box.clone(),e=this.labels;if(e.length){var r=this.options.vertical?_:m;if(this.chartService.isPannable(r)){var o=this.maxLabelOffset();t[r+1]-=o.start,t[r+2]+=o.end}else{e[0].options.visible&&t.wrap(e[0].box);var i=e[e.length-1];i.options.visible&&t.wrap(i.box)}}return t},e.prototype.maxLabelOffset=function(){for(var t=this.options,e=t.vertical,r=t.reverse,o=this.labelsBetweenTicks(),i=this.getLabelsTickPositions(),n=e?_:m,s=this.labels,a=r?1:0,l=r?0:1,p=0,c=0,h=0;h<s.length;h++){var u=s[h],f=this.labelTickIndex(u),d=void 0,v=void 0;o?(d=i[f+a],v=i[f+l]):d=v=i[f],p=Math.max(p,d-u.box[n+1]),c=Math.max(c,u.box[n+2]-v)}return{start:p,end:c}},e.prototype.limitRange=function(t,e,r,o,i){var n=this.options;if(t<r&&i<0&&(!st(n.min)||n.min<=r)||o<e&&i>0&&(!st(n.max)||o<=n.max))return null;if(e<r&&i>0||o<t&&i<0)return{min:t,max:e};var s=e-t,a=t,l=e;return t<r&&i<0?(a=dt(t,r,o),l=dt(t+s,r+s,o)):e>o&&i>0&&(l=dt(e,r,o),a=dt(e-s,r,o-s)),{min:a,max:l}},e.prototype.valueRange=function(){return{min:this.seriesMin,max:this.seriesMax}},e.prototype.lineDir=function(){var t=this.options;return(t.vertical?-1:1)*(t.reverse?-1:1)},e.prototype.lineInfo=function(){var t=this.options.vertical,e=this.lineBox(),r=t?e.height():e.width(),o=t?_:m,i=this.lineDir(),n=o+(1===i?1:2).toString();return{axis:o,axisOrigin:n,axisDir:i,lineBox:e,lineSize:r,lineStart:e[n]}},e.prototype.pointOffset=function(t){var e=this.lineInfo(),r=e.axis,o=e.axisDir,i=e.axisOrigin,n=e.lineBox,s=e.lineSize;return(o>0?t[r]-n[i]:n[i]-t[r])/s},e.prototype.scaleToDelta=function(t,e){var r=dt(t,-.999,.999);return r>0?e*Math.min(1,r):e-e/(1+r)},e.prototype.labelsBetweenTicks=function(){return!this.options.justified},e.prototype.prepareUserOptions=function(){},e}(Yt);wt(Re,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:n,visible:!0},title:{visible:!0,position:a},majorTicks:{align:"outside",size:4,skip:0,step:1},minorTicks:{align:"outside",size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:"outside",minorTickType:"none",majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:n,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1});var Ie=Re,Be="days",Le="years",De={years:31536e6,months:26784e5,weeks:6048e5,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1};function ze(t,e){return t.getTime()-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset())}function Ve(t,e){return new Date(t.getTime()+e)}function Ne(t){var e;return t instanceof Date?e=t:t&&(e=new Date(t)),e}function He(t,e){return 0===e&&23===t.getHours()&&(t.setHours(t.getHours()+2),!0)}function Ue(t,e,r,o){var i=t;if(t){var n=Ne(t),s=n.getHours();r===Le?He(i=new Date(n.getFullYear()+e,0,1),0):"months"===r?He(i=new Date(n.getFullYear(),n.getMonth()+e,1),s):"weeks"===r?He(i=Ue(function(t,e){void 0===e&&(e=0);var r=0,o=t.getDay();if(!isNaN(o))for(;o!==e;)0===o?o=6:o--,r++;return Ve(t,864e5*-r)}(n,o),7*e,Be),s):r===Be?He(i=new Date(n.getFullYear(),n.getMonth(),n.getDate()+e),s):"hours"===r?i=function(t,e){var r=new Date(t);r.setMinutes(0,0,0);var o=6e4*(t.getTimezoneOffset()-r.getTimezoneOffset());return Ve(r,o+36e5*e)}(n,e):"minutes"===r?(i=Ve(n,6e4*e)).getSeconds()>0&&i.setSeconds(0):"seconds"===r?i=Ve(n,1e3*e):"milliseconds"===r&&(i=Ve(n,e)),"milliseconds"!==r&&i.getMilliseconds()>0&&i.setMilliseconds(0)}return i}function Fe(t,e,r){return Ue(Ne(t),0,e,r)}function Ge(t,e,r){var o=Ne(t);return o&&Fe(o,e,r).getTime()===o.getTime()?o:Ue(o,1,e,r)}function We(t,e){return t&&e?t.getTime()-e.getTime():-1}function Ke(t,e){return t.getTime()-e}function Xe(t){if(b(t)){for(var e=[],r=0;r<t.length;r++)e.push(Xe(t[r]));return e}if(t)return Ne(t).getTime()}function Ye(t,e){return t&&e?Xe(t)===Xe(e):t===e}function qe(t,e,r){return ze(t,e)/De[r]}function Ze(t,e,r,o){var i=Ne(t),n=Ne(e);return("months"===r?i.getMonth()-n.getMonth()+12*(i.getFullYear()-n.getFullYear())+qe(i,new Date(i.getFullYear(),i.getMonth()),Be)/new Date(i.getFullYear(),i.getMonth()+1,0).getDate():r===Le?i.getFullYear()-n.getFullYear()+Ze(i,new Date(i.getFullYear(),0),"months",1)/12:r===Be||"weeks"===r?qe(i,n,r):Ke(i,e)/De[r])/o}function Qe(t,e,r){return r===Le?e.getFullYear()-t.getFullYear():"months"===r?12*Qe(t,e,Le)+e.getMonth()-t.getMonth():r===Be?Math.floor(Ke(e,t)/864e5):Math.floor(Ke(e,t)/De[r])}function $e(t,e){return A(e)&&t.parseDate(e)||Ne(e)}function Je(t,e){if(b(e)){for(var r=[],o=0;o<e.length;o++)r.push($e(t,e[o]));return r}return $e(t,e)}function tr(t,e){return P(t.weekStartDay)?t.weekStartDay:e&&e.firstDay?e.firstDay():0}var er=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this._ticks={}},e.prototype.categoriesHash=function(){return""},e.prototype.clone=function(){var t=new e(Object.assign({},this.options,{categories:this.options.srcCategories}),this.chartService);return t.createLabels(),t},e.prototype.initUserOptions=function(t){var e=t.categories||[],r=st(t.min),o=st(t.max);if(t.srcCategories=t.categories=e,(r||o)&&e.length){var i,n=r?Math.floor(t.min):0;i=o?t.justified?Math.floor(t.max)+1:Math.ceil(t.max):e.length,t.categories=t.categories.slice(n,i)}return t},e.prototype.rangeIndices=function(){var t=this.options,e=t.categories.length||1;return{min:P(t.min)?t.min%1:0,max:P(t.max)&&t.max%1!=0&&t.max<this.totalRange().max?e-(1-t.max%1):e-(t.justified?1:0)}},e.prototype.totalRangeIndices=function(t){var e,r=this.options,o=P(r.min)?r.min:0;if(e=P(r.max)?r.max:P(r.min)?o+r.categories.length:this.totalRange().max||1,t){var i=this.totalRange();o=dt(o,0,i.max),e=dt(e,0,i.max)}return{min:o,max:e}},e.prototype.range=function(){var t=this.options;return{min:P(t.min)?t.min:0,max:P(t.max)?t.max:this.totalRange().max}},e.prototype.roundedRange=function(){return this.range()},e.prototype.totalRange=function(){var t=this.options;return{min:0,max:Math.max(this._seriesMax||0,t.srcCategories.length)-(t.justified?1:0)}},e.prototype.scaleOptions=function(){var t=this.rangeIndices(),e=t.min,r=t.max,o=this.lineBox();return{scale:(this.options.vertical?o.height():o.width())/(r-e||1)*(this.options.reverse?-1:1),box:o,min:e,max:r}},e.prototype.arrangeLabels=function(){t.prototype.arrangeLabels.call(this),this.hideOutOfRangeLabels()},e.prototype.hideOutOfRangeLabels=function(){var t=this.box,e=this.labels;if(e.length>0){var r=this.options.vertical?_:m,o=t[r+1],i=t[r+2],n=e[0],s=ft(e);(n.box[r+1]>i||n.box[r+2]<o)&&(n.options.visible=!1),(s.box[r+1]>i||s.box[r+2]<o)&&(s.options.visible=!1)}},e.prototype.getMajorTickPositions=function(){return this.getTicks().majorTicks},e.prototype.getMinorTickPositions=function(){return this.getTicks().minorTicks},e.prototype.getLabelsTickPositions=function(){return this.getTicks().labelTicks},e.prototype.tickIndices=function(t){for(var e=this.rangeIndices(),r=e.min,o=e.max,i=Math.ceil(o),n=Math.floor(r),s=[];n<=i;)s.push(n),n+=t;return s},e.prototype.getTickPositions=function(t){for(var e=this.options,r=e.vertical,o=e.reverse,i=this.scaleOptions(),n=i.scale,s=i.box,a=i.min,l=s[(r?_:m)+(o?2:1)],p=this.tickIndices(t),c=[],h=0;h<p.length;h++)c.push(l+gt(n*(p[h]-a),3));return c},e.prototype.getTicks=function(){var t=this.options,e=this._ticks,r=this.rangeIndices(),o=this.lineBox(),i=o.getHash()+r.min+","+r.max+t.reverse+t.justified;if(e._hash!==i){var n=t.minorTicks.visible||t.minorGridLines.visible;e._hash=i,e.labelTicks=this.getTickPositions(1),e.majorTicks=this.filterOutOfRangePositions(e.labelTicks,o),e.minorTicks=n?this.filterOutOfRangePositions(this.getTickPositions(.5),o):[]}return e},e.prototype.filterOutOfRangePositions=function(t,e){if(!t.length)return t;for(var r=this.options.vertical?_:m,o=function(t){return e[r+1]<=t&&t<=e[r+2]},i=t.length-1,n=0;!o(t[n])&&n<=i;)n++;for(var s=i;!o(t[s])&&s>=0;)s--;return t.slice(n,s+1)},e.prototype.lineInfo=function(){var t=this.options,e=t.vertical,r=t.reverse,o=this.lineBox(),i=e?o.height():o.width(),n=e?_:m,s=r?-1:1,a=n+(1===s?1:2).toString();return{axis:n,axisOrigin:a,axisDir:s,lineBox:o,lineSize:i,lineStart:o[a]}},e.prototype.lineDir=function(){return this.options.reverse?-1:1},e.prototype.getSlot=function(t,e,r){var o=this.options,i=o.reverse,n=o.justified,s=this.scaleOptions(),a=s.scale,l=s.box,p=s.min,c=this.lineInfo(),h=c.axis,u=c.lineStart,f=l.clone(),d=!st(e),v=_t(t,0),y=_t(e,v);y=Math.max(y-1,v);var g=u+(v-p)*a,m=u+((y=Math.max(v,y))+1-p)*a;return d&&n&&(m=g),r&&(g=dt(g,l[h+1],l[h+2]),m=dt(m,l[h+1],l[h+2])),f[h+1]=i?m:g,f[h+2]=i?g:m,f},e.prototype.limitSlot=function(t){var e=this.options.vertical?_:m,r=this.lineBox(),o=t.clone();return o[e+1]=dt(t[e+1],r[e+1],r[e+2]),o[e+2]=dt(t[e+2],r[e+1],r[e+2]),o},e.prototype.slot=function(e,r,o){var i=Math.floor(this.options.min||0),n=e,s=r;return"string"==typeof n?n=this.categoryIndex(n):P(n)&&(n-=i),"string"==typeof s?s=this.categoryIndex(s):P(s)&&(s-=i),t.prototype.slot.call(this,n,s,o)},e.prototype.pointCategoryIndex=function(t){var e=this.options,r=e.reverse,o=e.justified,i=e.vertical?_:m,n=this.scaleOptions(),s=n.scale,a=n.box,l=n.min,p=n.max,c=r?p:l,h=a[i+1],u=a[i+2],f=t[i];if(f<h||f>u)return null;var d=c+(f-h)/s,v=d%1;return o?d=Math.round(d):0===v&&d>0&&d--,Math.floor(d)},e.prototype.getCategory=function(t){var e=this.pointCategoryIndex(t);return null===e?null:this.options.categories[e]},e.prototype.categoryIndex=function(t){return this.totalIndex(t)-Math.floor(this.options.min||0)},e.prototype.categoryAt=function(t,e){var r=this.options;return(e?r.srcCategories:r.categories)[t]},e.prototype.categoriesCount=function(){return(this.options.categories||[]).length},e.prototype.translateRange=function(t){var e=this.options,r=this.lineBox(),o=e.vertical?r.height():r.width(),i=e.categories.length,n=gt(t/(o/i),10);return{min:n,max:i+n}},e.prototype.scaleRange=function(t,e){var r=Math.abs(this.pointOffset(e)),o=this.totalRangeIndices(),i=o.max-o.min,n=this.scaleToDelta(t,i),s=r*n,a=(1-r)*n,l=o.min+s,p=o.max-a;return p-l<.1&&(p=l+.1),{min:l,max:p}},e.prototype.zoomRange=function(t,e){var r=this.totalRange(),o=r.min,i=r.max,n=this.scaleRange(t,e);return{min:dt(n.min,o,i),max:dt(n.max,o,i)}},e.prototype.labelsCount=function(){var t=this.labelsRange();return t.max-t.min},e.prototype.labelsRange=function(){var t=this.options,e=t.justified,r=t.labels,o=this.totalRangeIndices(!0),i=o.min,n=o.max,s=Math.floor(i);return e?(i=Math.ceil(i),n=Math.floor(n)):(i=Math.floor(i),n=Math.ceil(n)),{min:(i>r.skip?r.skip+r.step*Math.ceil((i-r.skip)/r.step):r.skip)-s,max:(t.categories.length?n+(e?1:0):0)-s}},e.prototype.createAxisLabel=function(t,e,r){var o=this.options,i=o.dataItems?o.dataItems[t]:null,n=_t(o.categories[t],"");r.dataItem=i;var s=this.axisLabelText(n,e,r);return new de(n,s,t,i,e)},e.prototype.shouldRenderNote=function(t){var e=this.totalRangeIndices();return Math.floor(e.min)<=t&&t<=Math.ceil(e.max)},e.prototype.noteSlot=function(t){var e=this.options,r=t-Math.floor(e.min||0);return this.getSlot(r)},e.prototype.arrangeNotes=function(){t.prototype.arrangeNotes.call(this),this.hideOutOfRangeNotes()},e.prototype.hideOutOfRangeNotes=function(){var t=this.notes,e=this.box;if(t&&t.length)for(var r=this.options.vertical?_:m,o=e[r+1],i=e[r+2],n=0;n<t.length;n++){var s=t[n];s.box&&(i<s.box[r+1]||s.box[r+2]<o)&&s.hide()}},e.prototype.pan=function(t){var e=this.totalRangeIndices(!0),r=this.scaleOptions().scale,o=gt(t/r,10),i=this.totalRange(),n=e.min+o,s=e.max+o;return this.limitRange(n,s,0,i.max,o)},e.prototype.pointsRange=function(t,e){var r=this.options,o=r.reverse,i=r.vertical?_:m,n=this.totalRangeIndices(!0),s=this.scaleOptions(),a=s.scale,l=s.box[i+(o?2:1)],p=t[i]-l,c=e[i]-l,h=n.min+p/a,u=n.min+c/a,f=Math.min(h,u),d=Math.max(h,u);if(d-f>=.01)return{min:f,max:d}},e.prototype.valueRange=function(){return this.range()},e.prototype.totalIndex=function(t){var e=this.options;return this._categoriesMap?this._categoriesMap.get(t):function(t,e){if(t instanceof Date){for(var r=e.length,o=0;o<r;o++)if(Ye(e[o],t))return o;return-1}return e.indexOf(t)}(t,e.srcCategories)},e.prototype.currentRangeIndices=function(){var t=this.options,e=0;return P(t.min)&&(e=Math.floor(t.min)),{min:e,max:P(t.max)?t.justified?Math.floor(t.max):Math.ceil(t.max)-1:this.totalCount()-1}},e.prototype.mapCategories=function(){if(!this._categoriesMap)for(var t=this._categoriesMap=new q,e=this.options.srcCategories,r=0;r<e.length;r++)t.set(e[r],r)},e.prototype.totalCount=function(){return Math.max(this.options.srcCategories.length,this._seriesMax||0)},e}(Ie);wt(er,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:n},labels:{zIndex:1},justified:!1,_deferLabels:!0});var rr=er,or={milliseconds:"HH:mm:ss.fff",seconds:"HH:mm:ss",minutes:"HH:mm",hours:"HH:mm",days:"M/d",weeks:"M/d",months:"MMM 'yy",years:"yyyy"},ir=["milliseconds","seconds","minutes","hours",Be,"weeks","months",Le];function nr(t){var e=t._range;return e||((e=t._range=Ct(t)).min=Ne(e.min),e.max=Ne(e.max)),e}var sr=function(t){this.options=t};sr.prototype.displayIndices=function(){return{min:0,max:1}},sr.prototype.displayRange=function(){return{}},sr.prototype.total=function(){return{}},sr.prototype.valueRange=function(){return{}},sr.prototype.valueIndex=function(){return-1},sr.prototype.values=function(){return[]},sr.prototype.totalIndex=function(){return-1},sr.prototype.valuesCount=function(){return 0},sr.prototype.totalCount=function(){return 0},sr.prototype.dateAt=function(){return null};var ar=function(t,e,r){this.options=r,r.baseUnitStep=r.baseUnitStep||1;var o=r.roundToBaseUnit,i=r.justified;this.start=Ue(t,0,r.baseUnit,r.weekStartDay);var n=this.roundToTotalStep(e),s=!i&&Ye(e,n)&&!r.justifyEnd;this.end=this.roundToTotalStep(e,!i,s?1:0);var a=r.min||t;this.valueStart=this.roundToTotalStep(a),this.displayStart=o?this.valueStart:a;var l=r.max;if(l){var p=!i&&Ye(l,this.roundToTotalStep(l))?-1:0;this.valueEnd=this.roundToTotalStep(l,!1,p),this.displayEnd=o?this.roundToTotalStep(l,!i):r.max}else this.valueEnd=n,this.displayEnd=o||s?this.end:e;this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))};function lr(t,e,r){for(var o,i,n,s=nr(t.categories),a=(t.max||s.max)-(t.min||s.min),l=t.autoBaseUnitSteps,p=t.maxDateGroups,c="fit"===t.baseUnit,h=e?ir.indexOf(e):0,u=c?ir[h++]:t.baseUnit,f=a/De[u],d=f;!i||f>=p;){o=o||l[u].slice(0);do{n=o.shift()}while(n&&e===u&&n<r);if(n)f=d/(i=n);else{if(u===ft(ir)){i=Math.ceil(d/p);break}if(!c){f>p&&(i=Math.ceil(d/p));break}u=ir[h++]||ft(ir),d=a/De[u],o=null}}t.baseUnitStep=i,t.baseUnit=u}function pr(t){var e=(t.baseUnit||"").toLowerCase();return"fit"!==e&&!Z(e,ir)&&function(t){for(var e,r,o=t.categories,i=st(o)?o.length:0,n=u,s=0;s<i;s++){var a=o[s];if(a&&e){var l=ze(a,e);l>0&&(r=(n=Math.min(n,l))>=31536e6?Le:n>=24192e5?"months":n>=6048e5?"weeks":n>=864e5?Be:n>=36e5?"hours":n>=6e4?"minutes":"seconds")}e=a}t.baseUnit=r||Be}(t),"fit"!==e&&"auto"!==t.baseUnitStep||lr(t),t}ar.prototype.displayRange=function(){return{min:this.displayStart,max:this.displayEnd}},ar.prototype.displayIndices=function(){if(!this._indices){var t=this.options,e=t.baseUnit,r=t.baseUnitStep,o=Ze(this.displayStart,this.valueStart,e,r),i=Ze(this.displayEnd,this.valueStart,e,r);this._indices={min:o,max:i}}return this._indices},ar.prototype.total=function(){return{min:this.start,max:this.end}},ar.prototype.totalCount=function(){return this.totalIndex(this.end)+(this.options.justified?1:0)},ar.prototype.valueRange=function(){return{min:this.valueStart,max:this.valueEnd}},ar.prototype.valueIndex=function(t){var e=this.options;return Math.floor(Ze(t,this.valueStart,e.baseUnit,e.baseUnitStep))},ar.prototype.totalIndex=function(t){var e=this.options;return Math.floor(Ze(t,this.start,e.baseUnit,e.baseUnitStep))},ar.prototype.dateIndex=function(t){var e=this.options;return Ze(t,this.valueStart,e.baseUnit,e.baseUnitStep)},ar.prototype.valuesCount=function(){return this.valueIndex(this.valueEnd)+1},ar.prototype.values=function(){var t=this._values;if(!t){var e=this.options,r=this.valueRange();this._values=t=[];for(var o=r.min;o<=r.max;)t.push(o),o=Ue(o,e.baseUnitStep,e.baseUnit,e.weekStartDay)}return t},ar.prototype.dateAt=function(t,e){var r=this.options;return Ue(e?this.start:this.valueStart,r.baseUnitStep*t,r.baseUnit,r.weekStartDay)},ar.prototype.roundToTotalStep=function(t,e,r){var o=this.options,i=o.baseUnit,n=o.baseUnitStep,s=o.weekStartDay,a=this.start,l=Ze(t,a,i,n),p=e?Math.ceil(l):Math.floor(l);return r&&(p+=r),Ue(a,p*n,i,s)};var cr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){var t=new e(Object.assign({},this.options),this.chartService);return t.createLabels(),t},e.prototype.categoriesHash=function(){var t=this.dataRange.total().min;return this.options.baseUnit+this.options.baseUnitStep+t},e.prototype.initUserOptions=function(t){return t},e.prototype.initFields=function(){t.prototype.initFields.call(this);var e=this.chartService,r=e.intl,o=this.options,i=o.categories||[];if(i._parsed||((i=Je(r,i))._parsed=!0),o=j({roundToBaseUnit:!0},o,{categories:i,min:$e(r,o.min),max:$e(r,o.max),weekStartDay:tr(o,r)}),e.panning&&e.isPannable(o.vertical?_:m)&&(o.roundToBaseUnit=!1),o.userSetBaseUnit=o.userSetBaseUnit||o.baseUnit,o.userSetBaseUnitStep=o.userSetBaseUnitStep||o.baseUnitStep,this.options=o,o.srcCategories=i,i.length>0){var n=nr(i),s=o.maxDivisions;if(this.dataRange=new ar(n.min,n.max,pr(o)),s){var a=this.dataRange.displayRange(),l=Object.assign({},o,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:a.min,max:a.max,maxDateGroups:s}),p=this.dataRange.options;lr(l,p.baseUnit,p.baseUnitStep),this.divisionRange=new ar(n.min,n.max,l)}else this.divisionRange=this.dataRange}else o.baseUnit=o.baseUnit||Be,this.dataRange=this.divisionRange=new sr(o);this.rangeLabels=[]},e.prototype.tickIndices=function(e){var r=this.dataRange,o=this.divisionRange,i=o.valuesCount();if(!this.options.maxDivisions||!i)return t.prototype.tickIndices.call(this,e);var n=[],s=o.values(),a=0;this.options.justified||(s=s.concat(o.dateAt(i)),a=.5);for(var l=0;l<s.length;l++)if(n.push(r.dateIndex(s[l])+a),1!==e&&l>=1){var p=n.length-1;n.splice(l,0,n[p-1]+(n[p]-n[p-1])*e)}return n},e.prototype.shouldRenderNote=function(t){var e=this.range(),r=this.options.categories||[];return We(t,e.min)>=0&&We(t,e.max)<=0&&r.length},e.prototype.parseNoteValue=function(t){return $e(this.chartService.intl,t)},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.translateRange=function(t){var e=this.options,r=e.baseUnit,o=e.weekStartDay,i=e.vertical,n=this.lineBox(),s=i?n.height():n.width(),a=this.range(),l=s/(a.max-a.min),p=gt(t/l,10);if(a.min&&a.max){var c=Ve(e.min||a.min,p),h=Ve(e.max||a.max,p);a={min:Ue(c,0,r,o),max:Ue(h,0,r,o)}}return a},e.prototype.labelsRange=function(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}},e.prototype.pan=function(t){if(this.isEmpty())return null;var e=this.options,r=this.lineBox(),o=e.vertical?r.height():r.width(),i=this.dataRange.displayRange(),n=i.min,s=i.max,a=this.dataRange.total(),l=gt(t/(o/(s-n)),10)*(e.reverse?-1:1),p=Ve(n,l),c=Ve(s,l),h=this.limitRange(Xe(p),Xe(c),Xe(a.min),Xe(a.max),l);return h?(h.min=Ne(h.min),h.max=Ne(h.max),h.baseUnit=e.baseUnit,h.baseUnitStep=e.baseUnitStep||1,h.userSetBaseUnit=e.userSetBaseUnit,h.userSetBaseUnitStep=e.userSetBaseUnitStep,h):void 0},e.prototype.pointsRange=function(e,r){if(this.isEmpty())return null;var o=t.prototype.pointsRange.call(this,e,r),i=this.dataRange.displayRange(),n=this.dataRange.displayIndices(),s=Ke(i.max,i.min)/(n.max-n.min),a=this.options;return{min:Ve(i.min,o.min*s),max:Ve(i.min,o.max*s),baseUnit:a.userSetBaseUnit||a.baseUnit,baseUnitStep:a.userSetBaseUnitStep||a.baseUnitStep}},e.prototype.scaleRange=function(t,e){if(this.isEmpty())return{};var r=this.options,o="fit"===r.userSetBaseUnit,i=this.dataRange.total(),n=this.dataRange.displayRange(),s=n.min,a=n.max,l=Math.abs(this.pointOffset(e)),p=a-s,c=this.scaleToDelta(t,p),h=Math.round(l*c),u=Math.round((1-l)*c),f=this.dataRange.options.baseUnit,d=new Date(s.getTime()+h),v=new Date(a.getTime()-u);if(o){var y,g,m=r.autoBaseUnitSteps,_=r.maxDateGroups,b=ft(m[f])*_*De[f],x=Ke(a,s),w=Ke(v,d),C=ir.indexOf(f);if(w<De[f]&&"milliseconds"!==f)f=ir[C-1],d=Ve(s,g=(x-(_-1)*(y=ft(m[f]))*De[f])/2),v=Ve(a,-g);else if(w>b&&f!==Le){var O=0;do{C++,f=ir[C],O=0,g=2*De[f];do{y=m[f][O],O++}while(O<m[f].length&&g*y<x)}while(f!==Le&&g*y<x);(g=(g*y-x)/2)>0&&(d=Ve(s,-g),v=Ve(a,g),d=Ve(d,dt(v,i.min,i.max)-v),v=Ve(v,dt(d,i.min,i.max)-d))}}return d&&v&&Ke(v,d)>0?{min:d,max:v,baseUnit:r.userSetBaseUnit||r.baseUnit,baseUnitStep:r.userSetBaseUnitStep||r.baseUnitStep}:void 0},e.prototype.zoomRange=function(t,e){var r=this.dataRange.total(),o=this.scaleRange(t,e);return o&&(o.min<r.min&&(o.min=r.min),o.max>r.max&&(o.max=r.max)),o},e.prototype.range=function(){return this.dataRange.displayRange()},e.prototype.createLabels=function(){t.prototype.createLabels.call(this),this.createRangeLabels()},e.prototype.clearLabels=function(){t.prototype.clearLabels.call(this),this.rangeLabels=[]},e.prototype.arrangeLabels=function(){this.arrangeRangeLabels(),t.prototype.arrangeLabels.call(this)},e.prototype.arrangeRangeLabels=function(){var t=this.options,e=this.rangeLabels;if(0!==e.length){var r=this.lineBox(),o=t.vertical,i=t.rangeLabels.mirror||t.labels.mirror,n=e[0];if(n){var s=o?r.y1-n.box.height()/2:r.x1;this.positionLabel(n,i,s)}var a=e[1];if(a){var l=o?r.y2-a.box.height()/2:r.x2;this.positionLabel(a,i,l)}}},e.prototype.autoRotateLabels=function(){t.prototype.autoRotateLabels.call(this),this.autoRotateRangeLabels()},e.prototype.hideOutOfRangeLabels=function(){t.prototype.hideOutOfRangeLabels.call(this),this.hideOverlappingLabels()},e.prototype.hideOverlappingLabels=function(){var t=this.rangeLabels,e=this.labels;if(0!==t.length){var r=t[0];if(r&&r.options.visible)for(var o=0;o<e.length;o++){if(!s(r,e[o]))break}var i=t[1];if(i&&i.options.visible)for(var n=e.length-1;n>0;--n){if(!s(i,e[n]))break}}function s(t,e){return!(e.options.visible&&!e.box.overlaps(t.box))&&(e.options.visible=!1,!0)}},e.prototype.contentBox=function(){for(var e=t.prototype.contentBox.call(this),r=this.rangeLabels,o=0;o<r.length;o++){var i=r[o];i.options.visible&&e.wrap(i.box)}return e},e.prototype.createAxisLabel=function(t,e,r){void 0===r&&(r={});var o=this.options,i=o.dataItems&&!o.maxDivisions?o.dataItems[t]:null,n=this.divisionRange.dateAt(t),s=e.dateFormats[this.divisionRange.options.baseUnit];e.format=e.format||s,r.dataItem=i;var a=this.axisLabelText(n,e,r);if(a)return new de(n,a,t,i,e)},e.prototype.createRangeLabels=function(){var t=this,e=this.divisionRange,r=e.displayStart,o=e.displayEnd,i=this.options,n=Object.assign({},i.labels,i.rangeLabels,{align:a,zIndex:i.zIndex});if(!0===n.visible){this.normalizeLabelRotation(n),n.alignRotation=a,"auto"===n.rotation&&(n.rotation=0,i.autoRotateRangeLabels=!0);var s=n.dateFormats[this.divisionRange.options.baseUnit];n.format=n.format||s;var l=function(e,r,o){if(o){var i=new de(r,o,e,null,n);t.append(i),t.rangeLabels.push(i)}};l(0,r,this.axisLabelText(r,n,{index:0,count:2})),l(1,o,this.axisLabelText(o,n,{index:1,count:2}))}},e.prototype.autoRotateRangeLabels=function(){var t=this,e=this.rangeLabels;if(this.options.autoRotateRangeLabels&&!this.options.vertical&&2===e.length){var r=function(e,r,o){var i=2*Math.abs(r[o+1]-r[o]),n=t.autoRotateLabelAngle(e.box,i);0!==n&&(e.options.rotation=n,e.reflow(new Ht))},o=this.getMajorTickPositions();r(e[0],o,0),r(e[1],o,o.length-2)}},e.prototype.categoryIndex=function(t){return this.dataRange.valueIndex(t)},e.prototype.slot=function(t,e,r){var o=this.dataRange,i=t,n=e;i instanceof Date&&(i=o.dateIndex(i)),n instanceof Date&&(n=o.dateIndex(n));var s=this.getSlot(i,n,r);if(s)return s.toRect()},e.prototype.getSlot=function(e,r,o){var i=e,n=r;return"object"==typeof i&&(i=this.categoryIndex(i)),"object"==typeof n&&(n=this.categoryIndex(n)),t.prototype.getSlot.call(this,i,n,o)},e.prototype.valueRange=function(){var t=nr(this.options.srcCategories);return{min:Ne(t.min),max:Ne(t.max)}},e.prototype.categoryAt=function(t,e){return this.dataRange.dateAt(t,e)},e.prototype.categoriesCount=function(){return this.dataRange.valuesCount()},e.prototype.rangeIndices=function(){return this.dataRange.displayIndices()},e.prototype.labelsBetweenTicks=function(){return!this.divisionRange.options.justified},e.prototype.prepareUserOptions=function(){this.isEmpty()||(this.options.categories=this.dataRange.values())},e.prototype.getCategory=function(t){var e=this.pointCategoryIndex(t);return null===e?null:this.dataRange.dateAt(e)},e.prototype.totalIndex=function(t){return this.dataRange.totalIndex(t)},e.prototype.currentRangeIndices=function(){var t=this.dataRange.valueRange();return{min:this.dataRange.totalIndex(t.min),max:this.dataRange.totalIndex(t.max)}},e.prototype.totalRange=function(){return this.dataRange.total()},e.prototype.totalCount=function(){return this.dataRange.totalCount()},e.prototype.isEmpty=function(){return!this.options.srcCategories.length},e.prototype.roundedRange=function(){if(!1!==this.options.roundToBaseUnit||this.isEmpty())return this.range();var t=this.options,e=nr(t.srcCategories);return new ar(e.min,e.max,Object.assign({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:t.justified})).displayRange()},e}(rr);wt(cr,{type:p,labels:{dateFormats:or},rangeLabels:{visible:!1},autoBaseUnitSteps:{milliseconds:[1,10,100],seconds:[1,2,5,15,30],minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10});var hr=cr;function ur(t,e){return gt(Math.floor(t/e)*e,10)}function fr(t,e){return gt(Math.ceil(t/e)*e,10)}function dr(t){return Math.max(Math.min(t,3e5),-3e5)}var vr=Math.pow(10,-9),yr=function(t){function e(e,r,o,i){t.call(this,Object.assign({},o,{seriesMin:e,seriesMax:r}),i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=function(t,e,r){var o=r.narrowRange,i=function(t,e,r){if(!t&&!e)return 0;var o;if(t>=0&&e>=0){var i=t===e?0:t;if(!1===r||!r&&(e-i)/e>.2)return 0;o=Math.max(0,i-(e-i)/2)}else o=t;return o}(t,e,o),n=function(t,e,r){if(!t&&!e)return 1;var o;if(t<=0&&e<=0){var i=t===e?0:e,n=Math.abs((i-t)/i);if(!1===r||!r&&n>.2)return 0;o=Math.min(0,i-(t-i)/2)}else o=e;return o}(t,e,o),s=zt(i,n),a={majorUnit:s};!1!==r.roundToMajorUnit&&(i<0&&gr(i,s,1/3)&&(i-=s),n>0&&gr(n,s,1/3)&&(n+=s));return a.min=ur(i,s),a.max=fr(n,s),a}(t.seriesMin,t.seriesMax,t);return this.totalOptions=function(t,e){return{min:st(e.min)?Math.min(t.min,e.min):t.min,max:st(e.max)?Math.max(t.max,e.max):t.max,majorUnit:t.majorUnit}}(e,t),function(t,e){var r,o,i=e;if(e){!function(t,e){for(var r=0;r<e.length;r++){var o=e[r];null===t[o]&&(t[o]=void 0)}}(e,["min","max"]),r=st(e.min),o=st(e.max);var n=r||o;n&&e.min===e.max&&(e.min>0?e.min=0:e.max=1),e.majorUnit?(t.min=ur(t.min,e.majorUnit),t.max=fr(t.max,e.majorUnit)):n&&(i=j(t,e),t.majorUnit=zt(i.min,i.max))}t.minorUnit=(i.majorUnit||t.majorUnit)/5;var s=j(t,i);s.min>=s.max&&(r&&!o?s.max=s.min+s.majorUnit:!r&&o&&(s.min=s.max-s.majorUnit));return s}(e,t)},e.prototype.initFields=function(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax},e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.startValue=function(){return 0},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.getDivisions=function(t){if(0===t)return 1;var e=this.options,r=e.max-e.min;return Math.floor(gt(r/t,3))+1},e.prototype.getTickPositions=function(t,e){var r=this.options,o=this.lineInfo(),i=o.axisDir,n=o.axisOrigin,s=o.lineBox,a=t*(o.lineSize/(r.max-r.min)),l=this.getDivisions(t),p=[],c=s[n],h=0;e&&(h=e/t);for(var u=0;u<l;u++)u%h!=0&&p.push(gt(c,3)),c+=a*i;return p},e.prototype.getMajorTickPositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.getMinorTickPositions=function(){return this.getTickPositions(this.options.minorUnit)},e.prototype.getSlot=function(t,e,r){void 0===r&&(r=!1);var o=this.options,i=this.lineInfo(),n=i.axis,s=i.axisDir,a=i.lineBox,l=i.lineSize,p=i.lineStart,c=s*(l/(o.max-o.min)),h=_t(t,e||0),u=_t(e,t||0);r&&(h=dt(h,o.min,o.max),u=dt(u,o.min,o.max));var f=Math.min(h,u)-o.min,d=Math.max(h,u)-o.min,v=new Ht(a.x1,a.y1,a.x1,a.y1);return v[n+1]=dr(p+c*(s>0?f:d)),v[n+2]=dr(p+c*(s>0?d:f)),v},e.prototype.getValue=function(t){var e=this.options,r=Number(e.max),o=Number(e.min),i=this.pointOffset(t);return i<0||i>1?null:gt(o+i*(r-o),10)},e.prototype.translateRange=function(t){var e=this.options,r=e.vertical,o=e.reverse,i=e.max,n=e.min,s=this.lineInfo().lineSize,a=gt(t/(s/(i-n)),10);return!r&&!o||r&&o||(a=-a),{min:n+a,max:i+a,offset:a}},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,r){var o=this.options,i=gt(o.min+t*o.majorUnit,10),n=this.axisLabelText(i,e,r);return new de(i,n,t,null,e)},e.prototype.shouldRenderNote=function(t){var e=this.range();return e.min<=t&&t<=e.max},e.prototype.pan=function(t){var e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)},e.prototype.pointsRange=function(t,e){var r=this.getValue(t),o=this.getValue(e),i=Math.min(r,o),n=Math.max(r,o);if(this.isValidRange(i,n))return{min:i,max:n}},e.prototype.scaleRange=function(t,e){var r=Math.abs(this.pointOffset(e)),o=this.options.max-this.options.min,i=this.scaleToDelta(t,o),n=r*i,s=(1-r)*i,a=gt(this.options.min+n,10),l=gt(this.options.max-s,10);return l-a<vr&&(l=a+vr),{min:a,max:l}},e.prototype.zoomRange=function(t,e){var r=this.totalMin,o=this.totalMax,i=this.scaleRange(t,e);return{min:dt(i.min,r,o),max:dt(i.max,r,o),narrowRange:!1}},e.prototype.isValidRange=function(t,e){return e-t>vr},e}(Ie);function gr(t,e,r){var o=gt(Math.abs(t%e),10);return 0===o||o>e*(1-r)}wt(yr,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},labels:{format:"#.####################"},zIndex:1});var mr=yr,_r=function(t){function e(e,r,o,i){var n=Ne(e),s=Ne(r),a=i.intl,l=o||{};l=function(t,e,r){var o=r.min||t,i=r.max||e,n=r.baseUnit||(i&&o?function(t){var e="hours";t>=31536e6?e=Le:t>=26784e5?e="months":t>=6048e5?e="weeks":t>=864e5&&(e=Be);return e}(ze(i,o)):"hours"),s=De[n],a=r.weekStartDay||0,l=Fe(Xe(o)-1,n,a)||Ne(i),p=Ge(Xe(i)+1,n,a),c=(r.majorUnit?r.majorUnit:void 0)||fr(zt(l.getTime(),p.getTime()),s)/s,h=Qe(l,p,n),u=fr(h,c)-h,f=Math.floor(u/2),d=u-f;r.baseUnit||delete r.baseUnit;return r.baseUnit=r.baseUnit||n,r.min=r.min||Ue(l,-f,n,a),r.max=r.max||Ue(p,d,n,a),r.minorUnit=r.minorUnit||c/5,r.majorUnit=c,r}(n,s,l=j(l||{},{min:$e(a,l.min),max:$e(a,l.max),axisCrossingValue:Je(a,l.axisCrossingValues||l.axisCrossingValue),weekStartDay:tr(l,a)})),t.call(this,l,i),this.intlService=a,this.seriesMin=n,this.seriesMax=s;var p=l.weekStartDay||0;this.totalMin=Xe(Fe(Xe(n)-1,l.baseUnit,p)),this.totalMax=Xe(Ge(Xe(s)+1,l.baseUnit,p))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.getDivisions=function(t){var e=this.options;return Math.floor(Qe(e.min,e.max,e.baseUnit)/t+1)},e.prototype.getTickPositions=function(t){for(var e=this.options,r=this.lineInfo(),o=r.axisDir,i=r.lineSize,n=r.lineStart,s=this.getDivisions(t),a=i/Ke(e.max,e.min),l=e.weekStartDay||0,p=[n],c=1;c<s;c++){var h=n+Ke(Ue(e.min,c*t,e.baseUnit,l),e.min)*a*o;p.push(gt(h,3))}return p},e.prototype.getMajorTickPositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.getMinorTickPositions=function(){return this.getTickPositions(this.options.minorUnit)},e.prototype.getSlot=function(t,e,r){return mr.prototype.getSlot.call(this,$e(this.intlService,t),$e(this.intlService,e),r)},e.prototype.getValue=function(t){var e=mr.prototype.getValue.call(this,t);return null!==e?Ne(e):null},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,r){var o=this.options,i=t*o.majorUnit,n=o.weekStartDay||0,s=o.min;i>0&&(s=Ue(s,i,o.baseUnit,n));var a=e.dateFormats[o.baseUnit];e.format=e.format||a;var l=this.axisLabelText(s,e,r);return new de(s,l,t,null,e)},e.prototype.translateRange=function(t){var e=this.options,r=this.lineBox(),o=e.vertical,i=e.reverse,n=o?r.height():r.width(),s=this.range(),a=n/Ke(s.max,s.min),l=gt(t/a,10);return!o&&!i||o&&i||(l=-l),{min:Ve(e.min,l),max:Ve(e.max,l),offset:l}},e.prototype.shouldRenderNote=function(t){var e=this.range();return We(t,e.min)>=0&&We(t,e.max)<=0},e.prototype.pan=function(t){var e=this.translateRange(t,!0),r=this.limitRange(Xe(e.min),Xe(e.max),this.totalMin,this.totalMax,e.offset);if(r)return{min:Ne(r.min),max:Ne(r.max)}},e.prototype.pointsRange=function(t,e){var r=this.getValue(t),o=this.getValue(e),i=Math.min(r,o),n=Math.max(r,o);return{min:Ne(i),max:Ne(n)}},e.prototype.scaleRange=function(t,e){var r=Math.abs(this.pointOffset(e)),o=this.options.max-this.options.min,i=this.scaleToDelta(t,o),n=r*i,s=(1-r)*i,a=Ne(Xe(this.options.min)+n),l=Ne(Xe(this.options.max)-s);return l-a<1e3&&(l=Ne(Xe(a)+1e3)),{min:a,max:l}},e.prototype.zoomRange=function(t,e){var r=this.scaleRange(t,e);return{min:Ne(dt(Xe(r.min),this.totalMin,this.totalMax)),max:Ne(dt(Xe(r.max),this.totalMin,this.totalMax))}},e}(Ie);wt(_r,{type:p,majorGridLines:{visible:!0,width:1,color:n},labels:{dateFormats:or}});var br=_r,xr=function(t){function e(e,r,o,i){var n=j({majorUnit:10,min:e,max:r},o),s=n.majorUnit,a=function(t,e){var r,o=gt(Cr(t,e),10)%1;r=t<=0?e:0!==o&&(o<.3||o>.9)?Math.pow(e,Cr(t,e)+.2):Math.pow(e,Math.ceil(Cr(t,e)));return r}(r,s),l=function(t,e,r){var o=r.majorUnit,i=t;t<=0?i=e<=1?Math.pow(o,-2):1:r.narrowRange||(i=Math.pow(o,Math.floor(Cr(t,o))));return i}(e,r,n),p=function(t,e,r,o){var i=r.min,n=r.max;st(r.axisCrossingValue)&&r.axisCrossingValue<=0&&wr();st(o.max)?o.max<=0&&wr():n=e;st(o.min)?o.min<=0&&wr():i=t;return{min:i,max:n}}(l,a,n,o);n.max=p.max,n.min=p.min,n.minorUnit=o.minorUnit||gt(s-1,10),t.call(this,n,i),this.totalMin=st(o.min)?Math.min(l,o.min):l,this.totalMax=st(o.max)?Math.max(a,o.max):a,this.logMin=gt(Cr(p.min,s),10),this.logMax=gt(Cr(p.max,s),10),this.seriesMin=e,this.seriesMax=r,this.createLabels()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.startValue=function(){return this.options.min},e.prototype.getSlot=function(t,e,r){var o=this.options,i=this.logMin,n=this.logMax,s=o.majorUnit,a=o.min,l=o.max,p=this.lineInfo(),c=p.axis,h=p.axisDir,u=p.lineBox,f=p.lineSize,d=p.lineStart,v=h*(f/(n-i)),y=_t(t,e||1),g=_t(e,t||1);if(y<=0||g<=0)return null;r&&(y=dt(y,a,l),g=dt(g,a,l)),y=Cr(y,s),g=Cr(g,s);var m=Math.min(y,g)-i,_=Math.max(y,g)-i,b=new Ht(u.x1,u.y1,u.x1,u.y1);return b[c+1]=dr(d+v*(h>0?m:_)),b[c+2]=dr(d+v*(h>0?_:m)),b},e.prototype.getValue=function(t){var e=this.options,r=this.logMin,o=this.logMax,i=e.majorUnit,n=this.lineInfo(),s=n.axis,a=n.axisDir,l=n.lineStart,p=n.lineSize,c=(o-r)/p,h=a*(t[s]-l);if(h<0||h>p)return null;var u=r+h*c;return gt(Math.pow(i,u),10)},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.translateRange=function(t){var e=this.options,r=this.logMin,o=this.logMax,i=e.reverse,n=e.vertical,s=e.majorUnit,a=this.lineBox(),l=n?a.height():a.width(),p=gt(t/(l/(o-r)),10);return!n&&!i||n&&i||(p=-p),{min:Math.pow(s,r+p),max:Math.pow(s,o+p),offset:p}},e.prototype.labelsCount=function(){var t=Math.floor(this.logMax);return Math.floor(t-this.logMin)+1},e.prototype.getMajorTickPositions=function(){var t=[];return this.traverseMajorTicksPositions((function(e){t.push(e)}),{step:1,skip:0}),t},e.prototype.createTicks=function(t){var e=this.options,r=e.majorTicks,o=e.minorTicks,i=e.vertical,n=e.labels.mirror,s=this.lineBox(),a={vertical:i};function l(e,r){a.tickX=n?s.x2:s.x2-r.size,a.tickY=n?s.y1-r.size:s.y1,a.position=e,t.append(Ee(a,r))}return r.visible&&this.traverseMajorTicksPositions(l,r),o.visible&&this.traverseMinorTicksPositions(l,o),[]},e.prototype.createGridLines=function(t){var e=this.options,r=e.minorGridLines,o=e.majorGridLines,i=e.vertical,n=t.lineBox(),s={lineStart:n[i?"x1":"y1"],lineEnd:n[i?"x2":"y2"],vertical:i},a=[],l=this.gridLinesVisual();function p(t,e){Z(t,a)||(s.position=t,l.append(je(s,e)),a.push(t))}return o.visible&&this.traverseMajorTicksPositions(p,o),r.visible&&this.traverseMinorTicksPositions(p,r),l.children},e.prototype.traverseMajorTicksPositions=function(t,e){for(var r=this.lineInfo(),o=r.lineStart,i=r.step,n=this.logMin,s=this.logMax,a=Math.ceil(n)+e.skip;a<=s;a+=e.step){t(gt(o+i*(a-n),10),e)}},e.prototype.traverseMinorTicksPositions=function(t,e){for(var r=this.options,o=r.min,i=r.max,n=r.minorUnit,s=r.majorUnit,a=this.lineInfo(),l=a.lineStart,p=a.step,c=this.logMin,h=this.logMax,u=Math.floor(c);u<h;u++)for(var f=this._minorIntervalOptions(u),d=e.skip;d<n;d+=e.step){var v=f.value+d*f.minorStep;if(v>i)break;if(v>=o)t(gt(l+p*(Cr(v,s)-c),10),e)}},e.prototype.createAxisLabel=function(t,e,r){var o=Math.ceil(this.logMin+t),i=Math.pow(this.options.majorUnit,o),n=this.axisLabelText(i,e,r);return new de(i,n,t,null,e)},e.prototype.shouldRenderNote=function(t){var e=this.range();return e.min<=t&&t<=e.max},e.prototype.pan=function(t){var e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)},e.prototype.pointsRange=function(t,e){var r=this.getValue(t),o=this.getValue(e);return{min:Math.min(r,o),max:Math.max(r,o)}},e.prototype.scaleRange=function(t,e){var r=this.options.majorUnit,o=Cr(this.options.min,r),i=Cr(this.options.max,r),n=Math.abs(this.pointOffset(e)),s=i-o,a=this.scaleToDelta(t,s),l=Math.pow(r,o+n*a),p=Math.pow(r,i-(1-n)*a);return p-l<1e-6&&(p=l+1e-6),{min:l,max:p}},e.prototype.zoomRange=function(t,e){var r=this.scaleRange(t,e),o=this.totalMin,i=this.totalMax;return{min:dt(r.min,o,i),max:dt(r.max,o,i)}},e.prototype._minorIntervalOptions=function(t){var e=this.options,r=e.minorUnit,o=e.majorUnit,i=Math.pow(o,t);return{value:i,minorStep:(Math.pow(o,t+1)-i)/r}},e.prototype.lineInfo=function(){var e=t.prototype.lineInfo.call(this);return e.step=e.axisDir*(e.lineSize/(this.logMax-this.logMin)),e},e}(Ie);function wr(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function Cr(t,e){return Math.log(t)/Math.log(e)}wt(xr,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},zIndex:1,_deferLabels:!0});var Or=xr,kr={createGridLines:function(t){var e,r,o=this.options,i=Math.abs(this.box.center().y-t.lineBox().y1),n=[],s=!1;return o.majorGridLines.visible&&(e=this.majorGridLineAngles(t),s=!0,n=this.renderMajorGridLines(e,i,o.majorGridLines)),o.minorGridLines.visible&&(r=this.minorGridLineAngles(t,s),it(n,this.renderMinorGridLines(r,i,o.minorGridLines,t,s))),n},renderMajorGridLines:function(t,e,r){return this.renderGridLines(t,e,r)},renderMinorGridLines:function(t,e,r,o,i){var n=this.radiusCallback&&this.radiusCallback(e,o,i);return this.renderGridLines(t,e,r,n)},renderGridLines:function(t,e,r,o){for(var i={stroke:{width:r.width,color:r.color,dashType:r.dashType}},n=this.box.center(),s=new O.geometry.Circle([n.x,n.y],e),a=this.gridLinesVisual(),l=0;l<t.length;l++){var p=new O.drawing.Path(i);o&&(s.radius=o(t[l])),p.moveTo(s.center).lineTo(s.pointAt(t[l]+180)),a.append(p)}return a.children},gridLineAngles:function(t,e,r,o,i){var n=this,s=this.intervals(e,r,o,i),a=t.options,l=a.visible&&!1!==(a.line||{}).visible;return tt(s,(function(t){var e=n.intervalAngle(t);if(!l||90!==e)return e}))}},Sr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.range=function(){return{min:0,max:this.options.categories.length}},e.prototype.reflow=function(t){this.box=t,this.reflowLabels()},e.prototype.lineBox=function(){return this.box},e.prototype.reflowLabels=function(){for(var t=this.labels,e=this.options.labels,r=e.skip||0,o=e.step||1,i=new Ht,n=0;n<t.length;n++){t[n].reflow(i);var s=t[n].box;t[n].reflow(this.getSlot(r+n*o).adjacentBox(0,s.width(),s.height()))}},e.prototype.intervals=function(t,e,r,o){void 0===o&&(o=!1);for(var i=this.options,n=i.categories.length/t||1,s=360/n,a=r||1,l=[],p=0,c=e||0;c<n;c+=a)p=i.reverse?360-c*s:c*s,p=gt(p,3)%360,o&&Z(p,o)||l.push(p);return l},e.prototype.majorIntervals=function(){return this.intervals(1)},e.prototype.minorIntervals=function(){return this.intervals(.5)},e.prototype.intervalAngle=function(t){return(360+t+this.options.startAngle)%360},e.prototype.majorAngles=function(){var t=this;return tt(this.majorIntervals(),(function(e){return t.intervalAngle(e)}))},e.prototype.createLine=function(){return[]},e.prototype.majorGridLineAngles=function(t){var e=this.options.majorGridLines;return this.gridLineAngles(t,1,e.skip,e.step)},e.prototype.minorGridLineAngles=function(t,e){var r=this.options,o=r.minorGridLines,i=r.majorGridLines,n=e?this.intervals(1,i.skip,i.step):null;return this.gridLineAngles(t,.5,o.skip,o.step,n)},e.prototype.radiusCallback=function(t,e,r){if(e.options.type!==i){var o=yt(360/(2*this.options.categories.length)),n=Math.cos(o)*t,s=this.majorAngles(),a=function(e){return!r&&Z(e,s)?t:n};return a}},e.prototype.createPlotBands=function(){for(var t=this.options.plotBands||[],e=this._plotbandGroup=new O.drawing.Group({zIndex:-1}),r=0;r<t.length;r++){var o=t[r],i=this.plotBandSlot(o),n=this.getSlot(o.from),s=o.from-Math.floor(o.from);i.startAngle+=s*n.angle;var a=Math.ceil(o.to)-o.to;i.angle-=(a+s)*n.angle;var l=Kt.current.createRing(i,{fill:{color:o.color,opacity:o.opacity},stroke:{opacity:o.opacity}});e.append(l)}this.appendVisual(e)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to-1)},e.prototype.getSlot=function(t,e){var r=this.options,o=r.justified,i=this.box,n=this.majorAngles(),s=n.length,a=360/s,l=t;r.reverse&&!o&&(l=(l+1)%s);var p=n[l=dt(Math.floor(l),0,s-1)];o&&(p-=a/2)<0&&(p+=360);var c=a*(dt(Math.ceil(e||l),l,s-1)-l+1);return new Ft(i.center(),0,i.height()/2,p,c)},e.prototype.slot=function(t,e){var r=this.getSlot(t,e),o=r.startAngle+180,i=o+r.angle;return new O.geometry.Arc([r.center.x,r.center.y],{startAngle:o,endAngle:i,radiusX:r.radius,radiusY:r.radius})},e.prototype.pointCategoryIndex=function(t){for(var e=this.options.categories.length,r=null,o=0;o<e;o++){if(this.getSlot(o).containsPoint(t)){r=o;break}}return r},e}(rr);wt(Sr,{startAngle:90,labels:{margin:z(10)},majorGridLines:{visible:!0},justified:!0}),j(Sr.prototype,kr);var Pr=Sr,Ar=function(t){function e(e,r){t.call(this,e,r);var o=this.options;o.minorUnit=o.minorUnit||o.majorUnit/2}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDivisions=function(t){return mr.prototype.getDivisions.call(this,t)-1},e.prototype.reflow=function(t){this.box=t,this.reflowLabels()},e.prototype.reflowLabels=function(){for(var t=this.options,e=this.labels,r=this.options.labels,o=r.skip||0,i=r.step||1,n=new Ht,s=this.intervals(t.majorUnit,o,i),a=0;a<e.length;a++){e[a].reflow(n);var l=e[a].box;e[a].reflow(this.getSlot(s[a]).adjacentBox(0,l.width(),l.height()))}},e.prototype.lineBox=function(){return this.box},e.prototype.intervals=function(t,e,r,o){void 0===o&&(o=!1);for(var i=this.options.min,n=this.getDivisions(t),s=[],a=r||1,l=e||0;l<n;l+=a){var p=(360+i+l*t)%360;o&&Z(p,o)||s.push(p)}return s},e.prototype.majorIntervals=function(){return this.intervals(this.options.majorUnit)},e.prototype.minorIntervals=function(){return this.intervals(this.options.minorUnit)},e.prototype.intervalAngle=function(t){return(540-t-this.options.startAngle)%360},e.prototype.createLine=function(){return[]},e.prototype.majorGridLineAngles=function(t){var e=this.options.majorGridLines;return this.gridLineAngles(t,this.options.majorUnit,e.skip,e.step)},e.prototype.minorGridLineAngles=function(t,e){var r=this.options,o=r.minorGridLines,i=r.majorGridLines,n=e?this.intervals(r.majorUnit,i.skip,i.step):null;return this.gridLineAngles(t,r.minorUnit,o.skip,o.step,n)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to)},e.prototype.getSlot=function(t,e){var r=this.options,o=this.box,i=r.startAngle,n=dt(t,r.min,r.max),s=dt(e||n,n,r.max);if(r.reverse&&(n*=-1,s*=-1),(s=(540-s-i)%360)<(n=(540-n-i)%360)){var a=n;n=s,s=a}return new Ft(o.center(),0,o.height()/2,n,s-n)},e.prototype.slot=function(t,e){void 0===e&&(e=t);var r,o,i=this.options,n=360-i.startAngle,s=this.getSlot(t,e),a=Math.min(t,e),l=Math.max(t,e);return i.reverse?(r=a,o=l):(r=360-l,o=360-a),r=(r+n)%360,o=(o+n)%360,new O.geometry.Arc([s.center.x,s.center.y],{startAngle:r,endAngle:o,radiusX:s.radius,radiusY:s.radius})},e.prototype.getValue=function(t){var e=this.options,r=this.box.center(),o=t.x-r.x,i=t.y-r.y,n=Math.round(at(Math.atan2(i,o))),s=e.startAngle;return e.reverse||(n*=-1,s*=-1),(n+s+360)%360},e.prototype.valueRange=function(){return{min:0,max:2*Math.PI}},e}(Ie);wt(Ar,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:z(10)},majorGridLines:{color:n,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),j(Ar.prototype,kr,{createPlotBands:Pr.prototype.createPlotBands,majorAngles:Pr.prototype.majorAngles,range:mr.prototype.range,labelsCount:mr.prototype.labelsCount,createAxisLabel:mr.prototype.createAxisLabel});var Mr=Ar;function Tr(t,e){return 180-Math.abs(Math.abs(t-e)-180)}var Er={options:{majorGridLines:{visible:!0}},createPlotBands:function(){var t=this.options,e=t.majorGridLines.type,r=t.plotBands;void 0===r&&(r=[]);for(var o=this.plotArea.polarAxis,n=o.majorAngles(),s=o.box.center(),a=this._plotbandGroup=new O.drawing.Group({zIndex:-1}),l=0;l<r.length;l++){var p=r[l],c={fill:{color:p.color,opacity:p.opacity},stroke:{opacity:p.opacity}},h=this.getSlot(p.from,p.to,!0),u=new Ft(s,s.y-h.y2,s.y-h.y1,0,360),f=void 0;f=e===i?Kt.current.createRing(u,c):O.drawing.Path.fromPoints(this.plotBandPoints(u,n),c).close(),a.append(f)}this.appendVisual(a)},plotBandPoints:function(t,e){for(var r=[],o=[],i=[t.center.x,t.center.y],n=new O.geometry.Circle(i,t.innerRadius),s=new O.geometry.Circle(i,t.radius),a=0;a<e.length;a++)r.push(n.pointAt(e[a]+180)),o.push(s.pointAt(e[a]+180));return r.reverse(),r.push(r[0]),o.push(o[0]),o.concat(r)},createGridLines:function(t){var e=this.options,r=this.radarMajorGridLinePositions(),o=t.majorAngles(),i=t.box.center(),n=[];if(e.majorGridLines.visible&&(n=this.renderGridLines(i,r,o,e.majorGridLines)),e.minorGridLines.visible){var s=this.radarMinorGridLinePositions();it(n,this.renderGridLines(i,s,o,e.minorGridLines))}return n},renderGridLines:function(t,e,r,o){var n={stroke:{width:o.width,color:o.color,dashType:o.dashType}},s=o.skip;void 0===s&&(s=0);var a=o.step;void 0===a&&(a=0);for(var l=this.gridLinesVisual(),p=s;p<e.length;p+=a){var c=t.y-e[p];if(c>0){var h=new O.geometry.Circle([t.x,t.y],c);if(o.type===i)l.append(new O.drawing.Circle(h,n));else{for(var u=new O.drawing.Path(n),f=0;f<r.length;f++)u.lineTo(h.pointAt(r[f]+180));u.close(),l.append(u)}}}return l.children},getValue:function(t){var e=this.lineBox(),r=this.plotArea.polarAxis,o=r.majorAngles(),n=r.box.center(),s=t.distanceTo(n),a=s;if(this.options.majorGridLines.type!==i&&o.length>1){var l=t.x-n.x,p=t.y-n.y,c=(at(Math.atan2(p,l))+540)%360;o.sort((function(t,e){return Tr(t,c)-Tr(e,c)}));var h=90-Tr(o[0],o[1])/2,u=180-Tr(c,o[0])-h;a=s*(Math.sin(yt(u))/Math.sin(yt(h)))}return this.axisType().prototype.getValue.call(this,new Vt(e.x1,e.y2-a))}},jr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.radarMajorGridLinePositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.radarMinorGridLinePositions=function(){var t=this.options,e=0;return t.majorGridLines.visible&&(e=t.majorUnit),this.getTickPositions(t.minorUnit,e)},e.prototype.axisType=function(){return t},e}(mr);j(jr.prototype,Er);var Rr=jr,Ir=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.radarMajorGridLinePositions=function(){var t=[];return this.traverseMajorTicksPositions((function(e){t.push(e)}),this.options.majorGridLines),t},e.prototype.radarMinorGridLinePositions=function(){var t=[];return this.traverseMinorTicksPositions((function(e){t.push(e)}),this.options.minorGridLines),t},e.prototype.axisType=function(){return t},e}(Or);j(Ir.prototype,Er);var Br=Ir;function Lr(t){return t<=0?-1:1}var Dr=function(t){function e(e){t.call(this),this.closed=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.process=function(t){var e=t.slice(0),r=[],o=this.closed,i=e.length;if(i>2&&(this.removeDuplicates(0,e),i=e.length),i<2||2===i&&e[0].equals(e[1]))return r;var n,s,a=e[0],l=e[1],p=e[2];for(r.push(new O.geometry.Segment(a));a.equals(e[i-1]);)o=!0,e.pop(),i--;if(2===i){var c=this.tangent(a,l,m,_);return ft(r).controlOut(this.firstControlPoint(c,a,l,m,_)),r.push(new O.geometry.Segment(l,this.secondControlPoint(c,a,l,m,_))),r}if(o){a=e[i-1],l=e[0],p=e[1];var h=this.controlPoints(a,l,p);n=h[1],s=h[0]}else{var u=this.tangent(a,l,m,_);n=this.firstControlPoint(u,a,l,m,_)}for(var f=n,d=0;d<=i-3;d++)if(this.removeDuplicates(d,e),d+3<=(i=e.length)){a=e[d],l=e[d+1],p=e[d+2];var v=this.controlPoints(a,l,p);ft(r).controlOut(f),f=v[1];var y=v[0];r.push(new O.geometry.Segment(l,y))}if(o){a=e[i-2],l=e[i-1],p=e[0];var g=this.controlPoints(a,l,p);ft(r).controlOut(f),r.push(new O.geometry.Segment(l,g[0])),ft(r).controlOut(g[1]),r.push(new O.geometry.Segment(p,s))}else{var b=this.tangent(l,p,m,_);ft(r).controlOut(f),r.push(new O.geometry.Segment(p,this.secondControlPoint(b,l,p,m,_)))}return r},e.prototype.removeDuplicates=function(t,e){for(;e[t+1]&&(e[t].equals(e[t+1])||e[t+1].equals(e[t+2]));)e.splice(t+1,1)},e.prototype.invertAxis=function(t,e,r){var o=!1;if(t.x===e.x)o=!0;else if(e.x===r.x)(e.y<r.y&&t.y<=e.y||r.y<e.y&&e.y<=t.y)&&(o=!0);else{var i=this.lineFunction(t,e),n=this.calculateFunction(i,r.x);t.y<=e.y&&r.y<=n||e.y<=t.y&&r.y>=n||(o=!0)}return o},e.prototype.isLine=function(t,e,r){var o=this.lineFunction(t,e),i=this.calculateFunction(o,r.x);return t.x===e.x&&e.x===r.x||gt(i,1)===gt(r.y,1)},e.prototype.lineFunction=function(t,e){var r=(e.y-t.y)/(e.x-t.x);return[t.y-r*t.x,r]},e.prototype.controlPoints=function(t,e,r){var o,i=m,n=_,s=!1,a=!1;if(this.isLine(t,e,r))o=this.tangent(t,e,m,_);else{var l={x:this.isMonotonicByField(t,e,r,m),y:this.isMonotonicByField(t,e,r,_)};if(l.x&&l.y)o=this.tangent(t,r,m,_),s=!0;else if(this.invertAxis(t,e,r)&&(i=_,n=m),l[i])o=0;else o=.01*(r[n]<t[n]&&t[n]<=e[n]||t[n]<r[n]&&e[n]<=t[n]?Lr((r[n]-t[n])*(e[i]-t[i])):-Lr((r[i]-t[i])*(e[n]-t[n]))),a=!0}var p=this.secondControlPoint(o,t,e,i,n);if(a){var c=i;i=n,n=c}var h=this.firstControlPoint(o,e,r,i,n);return s&&(this.restrictControlPoint(t,e,p,o),this.restrictControlPoint(e,r,h,o)),[p,h]},e.prototype.restrictControlPoint=function(t,e,r,o){t.y<e.y?e.y<r.y?(r.x=t.x+(e.y-t.y)/o,r.y=e.y):r.y<t.y&&(r.x=e.x-(e.y-t.y)/o,r.y=t.y):r.y<e.y?(r.x=t.x-(t.y-e.y)/o,r.y=e.y):t.y<r.y&&(r.x=e.x+(t.y-e.y)/o,r.y=t.y)},e.prototype.tangent=function(t,e,r,o){var i,n=e[r]-t[r],s=e[o]-t[o];return i=0===n?0:s/n,i},e.prototype.isMonotonicByField=function(t,e,r,o){return r[o]>e[o]&&e[o]>t[o]||r[o]<e[o]&&e[o]<t[o]},e.prototype.firstControlPoint=function(t,e,r,o,i){var n=e[o],s=.333*(r[o]-n);return this.point(n+s,e[i]+s*t,o,i)},e.prototype.secondControlPoint=function(t,e,r,o,i){var n=e[o],s=r[o],a=.333*(s-n);return this.point(s-a,r[i]-a*t,o,i)},e.prototype.point=function(t,e,r,o){var i=new O.geometry.Point;return i[r]=t,i[o]=e,i},e.prototype.calculateFunction=function(t,e){for(var r=t.length,o=0,i=0;i<r;i++)o+=Math.pow(e,i)*t[i];return o},e}(O.Class),zr=function(t){function e(e){t.call(this),this._axis=e,this.options=e.options}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.value=function(t){var e=this._axis,r=e.getCategory?e.getCategory(t):e.getValue(t);return r},e.prototype.slot=function(t,e,r){return void 0===r&&(r=!0),this._axis.slot(t,e,r)},e.prototype.range=function(){return this._axis.range()},e.prototype.valueRange=function(){return this._axis.valueRange()},e}(O.Class);function Vr(t,e){for(var r=0;r<e.length;r++)if(e[r].options.name===t)return e[r].prepareUserOptions(),new zr(e[r])}var Nr=function(t){this.visual=t.visual,this.chartsVisual=t.chartContainer.visual,this._pane=t};Nr.prototype.findAxisByName=function(t){return Vr(t,this._pane.axes)};var Hr=Nr,Ur=function(t){function e(e){t.call(this),this._plotArea=e,this.visual=e.visual,this.backgroundVisual=e._bgVisual}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(O.Class);function Fr(t){for(var e=t.length,r=0,o=0;o<e;o++){P(t[o])&&r++}return r}var Gr={min:function(t){for(var e=t.length,r=u,o=0;o<e;o++){var i=t[o];P(i)&&(r=Math.min(r,i))}return r===u?t[0]:r},max:function(t){for(var e=t.length,r=f,o=0;o<e;o++){var i=t[o];P(i)&&(r=Math.max(r,i))}return r===f?t[0]:r},sum:function(t){for(var e=t.length,r=0,o=0;o<e;o++){var i=t[o];P(i)&&(r+=i)}return r},sumOrNull:function(t){var e=null;return Fr(t)&&(e=Gr.sum(t)),e},count:function(t){for(var e=t.length,r=0,o=0;o<e;o++){var i=t[o];null!==i&&st(i)&&r++}return r},avg:function(t){var e=Fr(t),r=t[0];return e>0&&(r=Gr.sum(t)/e),r},first:function(t){for(var e=t.length,r=0;r<e;r++){var o=t[r];if(null!==o&&st(o))return o}return t[0]}},Wr=Gr;function Kr(t,e){return null===e?e:W(t)(e)}var Xr=function(t){function e(){t.call(this),this._valueFields={},this._otherFields={},this._nullValue={},this._undefinedValue={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e,r){void 0===e&&(e=[y]),void 0===r&&(r={});for(var o=0;o<t.length;o++){var i=t[o];this._valueFields[i]=e,this._otherFields[i]=r,this._nullValue[i]=this._makeValue(e,null),this._undefinedValue[i]=this._makeValue(e,void 0)}},e.prototype.canonicalFields=function(t){return this.valueFields(t).concat(this.otherFields(t))},e.prototype.valueFields=function(t){return this._valueFields[t.type]||[y]},e.prototype.otherFields=function(t){return this._otherFields[t.type]||[y]},e.prototype.bindPoint=function(t,e,r){var o,i,n=t.data,s=st(r)?r:n[e],a={valueFields:{value:s}},l=this.valueFields(t),p=this._otherFields[t.type];if(null===s)i=this._nullValue[t.type];else if(st(s)){if(Array.isArray(s)){var c=s.slice(l.length);i=this._bindFromArray(s,l),o=this._bindFromArray(c,p)}else if("object"==typeof s){var h=this.sourceFields(t,l),u=this.sourceFields(t,p);i=this._bindFromObject(s,l,h),o=this._bindFromObject(s,p,u)}}else i=this._undefinedValue[t.type];return st(i)&&(1===l.length?a.valueFields.value=i[l[0]]:a.valueFields=i),a.fields=o||{},a},e.prototype._makeValue=function(t,e){for(var r={},o=t.length,i=0;i<o;i++){r[t[i]]=e}return r},e.prototype._bindFromArray=function(t,e){var r={};if(e)for(var o=Math.min(e.length,t.length),i=0;i<o;i++)r[e[i]]=t[i];return r},e.prototype._bindFromObject=function(t,e,r){void 0===r&&(r=e);var o={};if(e)for(var i=e.length,n=0;n<i;n++){var s=e[n],a=r[n];null!==a&&(o[s]=Kr(a,t))}return o},e.prototype.sourceFields=function(t,e){var r=[];if(e)for(var o=e.length,i=0;i<o;i++){var n=e[i],s=n===y?"field":n+"Field";r.push(null!==t[s]?t[s]||n:null)}return r},e}(O.Class);Xr.current=new Xr;var Yr=Xr,qr=/percent(?:\w*)\((\d+)\)/,Zr=new RegExp("^stddev(?:\\((\\d+(?:\\.\\d+)?)\\))?$"),Qr=function(t){function e(e,r,o){t.call(this),this.initGlobalRanges(e,r,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initGlobalRanges=function(t,e,r){var o=e.data,i=Zr.exec(t);if(i){this.valueGetter=this.createValueGetter(e,r);var n=this.getAverage(o),s=this.getStandardDeviation(o,n,!1),a=i[1]?parseFloat(i[1]):1,l={low:n.value-s*a,high:n.value+s*a};this.globalRange=function(){return l}}else if(t.indexOf&&t.indexOf("stderr")>=0){this.valueGetter=this.createValueGetter(e,r);var p=this.getStandardError(o,this.getAverage(o));this.globalRange=function(t){return{low:t-p,high:t+p}}}},e.prototype.createValueGetter=function(t,e){var r,o=t.data,i=Yr.current,n=i.valueFields(t),s=st(o[0])?o[0]:{};if(b(s))r=W("["+(e?n.indexOf(e):0)+"]");else if(P(s))r=W();else if("object"==typeof s){r=W(i.sourceFields(t,n)[n.indexOf(e)])}return r},e.prototype.getErrorRange=function(t,e){var r,o,i;if(!st(e))return null;if(this.globalRange)return this.globalRange(t);if(b(e))r=t-e[0],o=t+e[1];else if(P(i=parseFloat(e)))r=t-i,o=t+i;else{if(!(i=qr.exec(e)))throw new Error("Invalid ErrorBar value: "+e);var n=t*(parseFloat(i[1])/100);r=t-Math.abs(n),o=t+Math.abs(n)}return{low:r,high:o}},e.prototype.getStandardError=function(t,e){return this.getStandardDeviation(t,e,!0)/Math.sqrt(e.count)},e.prototype.getStandardDeviation=function(t,e,r){for(var o=t.length,i=r?e.count-1:e.count,n=0,s=0;s<o;s++){var a=this.valueGetter(t[s]);P(a)&&(n+=Math.pow(a-e.value,2))}return Math.sqrt(n/i)},e.prototype.getAverage=function(t){for(var e=t.length,r=0,o=0,i=0;i<e;i++){var n=this.valueGetter(t[i]);P(n)&&(r+=n,o++)}return{value:r/o,count:o}},e}(O.Class),$r=O.support.browser||{},Jr=$r.msie?.001:0,to="zero",eo="bar",ro="column",oo="line",io="pie",no="verticalLine",so=[eo,ro,"ohlc","candlestick","boxPlot","verticalBoxPlot","bullet","rangeColumn","rangeBar","waterfall","horizontalWaterfall"],ao="DOMMouseScroll mousewheel",lo=function(t){function e(e,r,o,i,n,s){t.call(this,s),this.low=e,this.high=r,this.isVertical=o,this.chart=i,this.series=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e,r=this.options.endCaps,o=this.isVertical,i=this.getAxis().getSlot(this.low,this.high),n=t.center(),s=this.getCapsWidth(t,o),a=o?n.x:n.y,l=a-s,p=a+s;o?(e=[new Vt(n.x,i.y1),new Vt(n.x,i.y2)],r&&e.push(new Vt(l,i.y1),new Vt(p,i.y1),new Vt(l,i.y2),new Vt(p,i.y2)),this.box=new Ht(l,i.y1,p,i.y2)):(e=[new Vt(i.x1,n.y),new Vt(i.x2,n.y)],r&&e.push(new Vt(i.x1,l),new Vt(i.x1,p),new Vt(i.x2,l),new Vt(i.x2,p)),this.box=new Ht(i.x1,l,i.x2,p)),this.linePoints=e},e.prototype.getCapsWidth=function(t,e){var r=e?t.width():t.height();return Math.min(Math.floor(r/2),4)||4},e.prototype.createVisual=function(){var t=this,e=this.options,r=e.visual;r?this.visual=r({low:this.low,high:this.high,rect:this.box.toRect(),sender:this.getSender(),options:{endCaps:e.endCaps,color:e.color,line:e.line},createVisual:function(){t.createDefaultVisual();var e=t.visual;return delete t.visual,e}}):this.createDefaultVisual()},e.prototype.createDefaultVisual=function(){var e=this.options,r=this.linePoints,o={stroke:{color:e.color,width:e.line.width,dashType:e.line.dashType}};t.prototype.createVisual.call(this);for(var i=0;i<r.length;i+=2){var n=new O.drawing.Path(o).moveTo(r[i].x,r[i].y).lineTo(r[i+1].x,r[i+1].y);k(n),this.visual.append(n)}},e}(Yt);wt(lo,{animation:{type:"fadeIn",delay:600},endCaps:!0,line:{width:2},zIndex:1});var po=lo,co=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getAxis=function(){return this.chart.seriesValueAxis(this.series)},e}(po);function ho(t,e,r,o){void 0===r&&(r={}),void 0===o&&(o=!1);var i=r.defaults=r.defaults||{},n=r.depth=r.depth||0,s=!1;if(r.excluded=r.excluded||[],n>5)return null;for(var a in t)if(!Z(a,r.excluded)&&t.hasOwnProperty(a)){var l=t[a];T(l)?(s=!0,o||(t[a]=_t(l(e),i[a]))):R(l)&&(o||(r.defaults=i[a]),r.depth++,s=ho(l,e,r,o)||s,r.depth--)}return s}function uo(t){for(var e=t.length,r=0,o=0;o<e;o++)r=Math.max(r,t[o].data.length);return r}var fo=function(t){function e(e,r){t.call(this,r),this.plotArea=e,this.chartService=e.chartService,this.categoryAxis=e.seriesCategoryAxis(r.series[0]),this.valueAxisRanges={},this.points=[],this.categoryPoints=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[],this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.pointOptions=function(t,e){var r=this.seriesOptions[e];if(!r){var o=this.pointType().prototype.defaults;this.seriesOptions[e]=r=j({},o,{vertical:!this.options.invertAxes},t)}return r},e.prototype.plotValue=function(t){if(!t)return 0;if(this.options.isStacked100&&P(t.value)){for(var e=t.categoryIx,r=this.categoryPoints[e],o=[],i=0,n=0;n<r.length;n++){var s=r[n];if(s){var a=t.series.stack,l=s.series.stack;if(a&&l&&a.group!==l.group)continue;P(s.value)&&(i+=Math.abs(s.value),o.push(Math.abs(s.value)))}}if(i>0)return t.value/i}return t.value},e.prototype.plotRange=function(t,e){void 0===e&&(e=0);var r=this.categoryPoints[t.categoryIx];if(this.options.isStacked){for(var o=this.plotValue(t),i=o>=0,n=e,s=!1,a=0;a<r.length;a++){var l=r[a];if(t===l)break;var p=t.series.stack,c=l.series.stack;if(p&&c){if("string"==typeof p&&p!==c)continue;if(p.group&&p.group!==c.group)continue}var h=this.plotValue(l);(h>=0&&i||h<0&&!i)&&(n+=h,o+=h,s=!0,this.options.isStacked100&&(o=Math.min(o,1)))}return s&&(n-=e),[n,o]}var u=t.series,f=this.seriesValueAxis(u),d=this.categoryAxisCrossingValue(f);return[d,M(t.value)?t.value:d]},e.prototype.stackLimits=function(t,e){for(var r=u,o=f,i=0;i<this.categoryPoints.length;i++){var n=this.categoryPoints[i];if(n)for(var s=0;s<n.length;s++){var a=n[s];if(a&&(a.series.stack===e||a.series.axis===t)){var l=this.plotRange(a,0)[1];st(l)&&isFinite(l)&&(o=Math.max(o,l),r=Math.min(r,l))}}}return{min:r,max:o}},e.prototype.updateStackRange=function(){var t=this.options,e=t.isStacked,r=t.series,o={};if(e)for(var i=0;i<r.length;i++){var n=r[i],s=n.axis,a=s+n.stack,l=o[a];if(!l){l=this.stackLimits(s,n.stack);var p=this.errorTotals;p&&(p.negative.length&&(l.min=Math.min(l.min,Ct(p.negative).min)),p.positive.length&&(l.max=Math.max(l.max,Ct(p.positive).max))),l.min!==u||l.max!==f?o[a]=l:l=null}l&&(this.valueAxisRanges[s]=l)}},e.prototype.addErrorBar=function(t,e,r){var o,i=t.value,n=t.series,s=t.seriesIx,a=t.options.errorBars,l=e.fields.errorLow,p=e.fields.errorHigh;P(l)&&P(p)?o={low:l,high:p}:a&&st(a.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[s]=this.seriesErrorRanges[s]||new Qr(a.value,n,y),o=this.seriesErrorRanges[s].getErrorRange(i,a.value)),o&&(t.low=o.low,t.high=o.high,this.addPointErrorBar(t,r))},e.prototype.addPointErrorBar=function(t,e){var r=!this.options.invertAxes,o=t.options.errorBars,i=t.series,n=t.low,s=t.high;if(this.options.isStacked){var a=this.stackedErrorRange(t,e);n=a.low,s=a.high}else{var l={categoryIx:e,series:i};this.updateRange({value:n},l),this.updateRange({value:s},l)}var p=new co(n,s,r,this,i,o);t.errorBars=[p],t.append(p)},e.prototype.stackedErrorRange=function(t,e){var r=this.plotRange(t,0)[1]-t.value,o=t.low+r,i=t.high+r;return this.errorTotals=this.errorTotals||{positive:[],negative:[]},o<0&&(this.errorTotals.negative[e]=Math.min(this.errorTotals.negative[e]||0,o)),i>0&&(this.errorTotals.positive[e]=Math.max(this.errorTotals.positive[e]||0,i)),{low:o,high:i}},e.prototype.addValue=function(t,e){var r=e.categoryIx,o=e.series,i=e.seriesIx,n=this.categoryPoints[r];n||(this.categoryPoints[r]=n=[]);var s=this.seriesPoints[i];s||(this.seriesPoints[i]=s=[]);var a=this.createPoint(t,e);a&&(Object.assign(a,e),a.owner=this,a.noteText=t.fields.noteText,st(a.dataItem)||(a.dataItem=o.data[r]),this.addErrorBar(a,t,r)),this.points.push(a),s.push(a),n.push(a),this.updateRange(t.valueFields,e)},e.prototype.evalPointOptions=function(t,e,r,o,i,n){var s={defaults:i._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},a=this._evalSeries[n];st(a)||(this._evalSeries[n]=a=ho(t,{},s,!0));var l=t;return a&&ho(l=j({},l),{value:e,category:r,index:o,series:i,dataItem:i.data[o]},s),l},e.prototype.updateRange=function(t,e){var r=e.series.axis,o=t.value,i=this.valueAxisRanges[r];isFinite(o)&&null!==o&&((i=this.valueAxisRanges[r]=i||{min:u,max:f}).min=Math.min(i.min,o),i.max=Math.max(i.max,o))},e.prototype.seriesValueAxis=function(t){var e=this.plotArea,r=t.axis,o=r?e.namedValueAxes[r]:e.valueAxis;if(!o)throw new Error("Unable to locate value axis with name "+r);return o},e.prototype.reflow=function(t){var e=this,r=this.categorySlots=[],o=this.points,i=this.categoryAxis,n=0;this.traverseDataPoints((function(t,s){var a=s.categoryIx,l=s.series,p=e.seriesValueAxis(l),c=o[n++],h=r[a];if(h||(r[a]=h=e.categorySlot(i,a,p)),c){var u=e.plotRange(c,p.startValue()),f=e.valueSlot(p,u);if(f){var d=e.pointSlot(h,f);c.aboveAxis=e.aboveAxis(c,p),c.stackValue=u[1],e.options.isStacked100&&(c.percentage=e.plotValue(c)),e.reflowPoint(c,d)}else c.visible=!1}})),this.reflowCategories(r),!this.options.clip&&this.options.limitPoints&&this.points.length&&this.limitPoints(),this.box=t},e.prototype.valueSlot=function(t,e){return t.getSlot(e[0],e[1],!this.options.clip)},e.prototype.limitPoints=function(){for(var t=this.categoryPoints,e=t[0].concat(ft(t)),r=0;r<e.length;r++)e[r]&&this.limitPoint(e[r])},e.prototype.limitPoint=function(t){var e=this.categoryAxis.limitSlot(t.box);e.equals(t.box)||t.reflow(e)},e.prototype.aboveAxis=function(t,e){var r=this.categoryAxisCrossingValue(e),o=t.value;return e.options.reverse?o<r:o>=r},e.prototype.categoryAxisCrossingValue=function(t){var e=this.categoryAxis,r=t.options;return[].concat(r.axisCrossingValues||r.axisCrossingValue)[e.axisIndex||0]||0},e.prototype.reflowPoint=function(t,e){t.reflow(e)},e.prototype.reflowCategories=function(){},e.prototype.pointSlot=function(t,e){var r=this.options.invertAxes,o=r?e:t,i=r?t:e;return new Ht(o.x1,i.y1,o.x2,i.y2)},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,r=uo(e),o=e.length,i=0;i<o;i++)this._outOfRangeCallback(e[i],"_outOfRangeMinPoint",i,t);for(var n=0;n<r;n++)for(var s=0;s<o;s++){var a=e[s],l=this.categoryAxis.categoryAt(n);t(this._bindPoint(a,s,n),{category:l,categoryIx:n,categoriesCount:r,series:a,seriesIx:s})}for(var p=0;p<o;p++)this._outOfRangeCallback(e[p],"_outOfRangeMaxPoint",p,t)},e.prototype._outOfRangeCallback=function(t,e,r,o){var i=t[e];if(i){var n=i.categoryIx;o(this._bindPoint(t,r,n,i.item),{category:i.category,categoryIx:n,series:t,seriesIx:r,dataItem:i.item})}},e.prototype._bindPoint=function(t,e,r,o){this._bindCache||(this._bindCache=[]);var i=this._bindCache[e];i||(i=this._bindCache[e]=[]);var n=i[r];return n||(n=i[r]=Yr.current.bindPoint(t,r,o)),n},e.prototype.formatPointValue=function(t,e){return null===t.value?"":this.chartService.format.auto(e,t.value)},e.prototype.pointValue=function(t){return t.valueFields.value},e}(Yt);wt(fo,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0});var vo=fo,yo={click:function(t,e){return t.trigger("seriesClick",this.eventArgs(e))},hover:function(t,e){return t.trigger("seriesHover",this.eventArgs(e))},over:function(t,e){return t.trigger("seriesOver",this.eventArgs(e))},out:function(t,e){return t.trigger("seriesLeave",this.eventArgs(e))},eventArgs:function(t){return{value:this.value,percentage:this.percentage,stackValue:this.stackValue,category:this.category,series:this.series,dataItem:this.dataItem,runningTotal:this.runningTotal,total:this.total,element:ht(t),originalEvent:t,point:this}}},go={createNote:function(){var t=this.options.notes,e=this.noteText||t.label.text;!1!==t.visible&&st(e)&&null!==e&&(this.note=new ye({value:this.value,text:e,dataItem:this.dataItem,category:this.category,series:this.series},this.options.notes,this.owner.chartService),this.append(this.note))}},mo=function(t){function e(e,r){t.call(this),this.value=e,this.options=r,this.aboveAxis=_t(this.options.aboveAxis,!0),this.tooltipTracking=!0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options,e=t.markers,r=t.labels;if(!this._rendered){if(this._rendered=!0,e.visible&&e.size&&(this.marker=this.createMarker(),this.append(this.marker)),r.visible){var o=U(r),i=this.pointData(),n=this.value;o?n=o(i):r.format&&(n=this.formatValue(r.format)),this.label=new ce(n,j({align:a,vAlign:a,margin:{left:5,right:5},zIndex:_t(r.zIndex,this.series.zIndex)},r),i),this.append(this.label)}this.createNote(),this.errorBar&&this.append(this.errorBar)}},e.prototype.markerBorder=function(){var t=this.options.markers,e=t.background,r=j({color:this.color},t.border);return st(r.color)||(r.color=new O.Color(e).brightness(.8).toHex()),r},e.prototype.createVisual=function(){},e.prototype.createMarker=function(){var t=this.options.markers;return new $t({type:t.type,width:t.size,height:t.size,rotation:t.rotation,background:t.background,border:this.markerBorder(),opacity:this.series.opacity||t.opacity,zIndex:_t(t.zIndex,this.series.zIndex),animation:t.animation,visual:t.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category})},e.prototype.markerBox=function(){return this.marker||(this.marker=this.createMarker(),this.marker.reflow(this._childBox)),this.marker.box},e.prototype.reflow=function(t){var e=this.options,r=this.aboveAxis,o=e.vertical;this.render(),this.box=t;var i=t.clone();if(o?r?i.y1-=i.height():i.y2+=i.height():r?i.x1+=i.width():i.x2-=i.width(),this._childBox=i,this.marker&&this.marker.reflow(i),this.reflowLabel(i),this.errorBars)for(var n=0;n<this.errorBars.length;n++)this.errorBars[n].reflow(i);if(this.note){var s=this.markerBox();if(!e.markers.visible||!e.markers.size){var a=s.center();s=new Ht(a.x,a.y,a.x,a.y)}this.note.reflow(s)}},e.prototype.reflowLabel=function(t){var e=this.options,r=this.label,o=e.labels.position;r&&(o="below"===(o="above"===o?v:o)?s:o,r.reflow(t),r.box.alignTo(this.markerBox(),o),r.reflow(r.box))},e.prototype.createHighlight=function(){var t=this.options.highlight.markers,e=this.markerBorder().color,r=this.options.markers,o=r.size+(r.border.width||0)+(t.border.width||0),i=new $t({type:r.type,width:o,height:o,rotation:r.rotation,background:t.color||e,border:{color:t.border.color,width:t.border.width,opacity:_t(t.border.opacity,1)},opacity:_t(t.opacity,1)});return i.reflow(this._childBox),i.getElement()},e.prototype.highlightVisual=function(){return(this.marker||{}).visual},e.prototype.highlightVisualArgs=function(){var t,e,r=this.marker;if(r)e=r.paddingBox.toRect(),t=r.visual;else{var o=this.options.markers.size,i=o/2,n=this.box.center();e=new O.geometry.Rect([n.x-i,n.y-i],[o,o])}return{options:this.options,rect:e,visual:t}},e.prototype.tooltipAnchor=function(){var t=this.markerBox(),e=this.owner.pane.clipBox();if(!e||e.overlaps(t)){var r,o,i=t.x2+5;return this.aboveAxis?(r=t.y1,o=s):(r=t.y2,o=v),{point:new Vt(i,r),align:{horizontal:"left",vertical:o}}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.markerBox().overlaps(t)},e.prototype.unclipElements=function(){this.label&&(this.label.options.noclip=!0),this.note&&(this.note.options.noclip=!0)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,series:this.series}},e}(Yt);mo.prototype.defaults={vertical:!0,markers:{visible:!0,background:g,size:8,type:l,border:{width:2},opacity:1},labels:{visible:!1,position:"above",margin:z(3),padding:z(4),animation:{type:"fadeIn",delay:600}},notes:{label:{}},highlight:{markers:{border:{color:"#fff",width:2}},zIndex:100},errorBars:{line:{width:1}}},j(mo.prototype,yo),j(mo.prototype,go);var _o=mo,bo=function(t){function e(e,r,o){t.call(this),this.linePoints=e,this.series=r,this.seriesIx=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.points=function(){return this.toGeometryPoints(this.linePoints)},e.prototype.toGeometryPoints=function(t){for(var e=[],r=0,o=t.length;r<o;r++)t[r]&&!1!==t[r].visible&&e.push(t[r]._childBox.toRect().center());return e},e.prototype.createVisual=function(){var t=this,e=this.series.visual;e?(this.visual=e({points:this.toGeometryPoints(this.linePoints),series:this.series,sender:this.getSender(),createVisual:function(){return t.segmentVisual(),t.visual}}),this.visual&&!st(this.visual.options.zIndex)&&(this.visual.options.zIndex=this.series.zIndex)):this.segmentVisual()},e.prototype.segmentVisual=function(){var t=this.options,e=this.series,r=e.color,o=e._defaults;T(r)&&o&&(r=o.color);var i=O.drawing.Path.fromPoints(this.points(),{stroke:{color:r,width:e.width,opacity:e.opacity,dashType:e.dashType},zIndex:e.zIndex});t.closed&&i.close(),this.visual=i},e.prototype.aliasFor=function(t,e){return this.parent.getNearestPoint(e.x,e.y,this.seriesIx)},e}(Yt);wt(bo,{closed:!1});var xo=bo;function wo(t,e,r,o,i){var n=t.box,s=new O.geometry.Point;return s[e]=n[e+r],s[o]=n[o+i],s}var Co={calculateStepPoints:function(t){for(var e=this.parent.plotArea.seriesCategoryAxis(this.series).options,r=e.justified,o=e.vertical,i=e.reverse,n=o?m:_,s=o?_:m,a=i?2:1,l=a,p=wo(t[0],n,a,s,l),c=[p],h=1;h<t.length;h++){var u=wo(t[h],n,a,s,l);if(p[n]!==u[n]){var f=new O.geometry.Point;f[n]=p[n],f[s]=u[s],c.push(f,u)}p=u}return r?p!==ft(c)&&c.push(p):c.push(wo(ft(t),n,a,s,i?1:2)),c}},Oo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.points=function(){return this.calculateStepPoints(this.linePoints)},e}(xo);j(Oo.prototype,Co);var ko=Oo,So=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.segmentVisual=function(){var t=this.series,e=t._defaults,r=t.color;T(r)&&e&&(r=e.color);var o=new Dr(this.options.closed).process(this.points()),i=new O.drawing.Path({stroke:{color:r,width:t.width,opacity:t.opacity,dashType:t.dashType},zIndex:t.zIndex});i.segments.push.apply(i.segments,o),this.visual=i},e}(xo),Po={renderSegments:function(){var t,e=this.options,r=this.seriesPoints,o=e.series,i=r.length;this._segments=[];for(var n=0;n<i;n++){for(var s=o[n],a=this.sortPoints(r[n]),l=a.length,p=[],c=0;c<l;c++){var h=a[c];h?p.push(h):"interpolate"!==this.seriesMissingValues(s)&&(p.length>1&&(t=this.createSegment(p,s,n,t),this._addSegment(t)),p=[])}p.length>1&&(t=this.createSegment(p,s,n,t),this._addSegment(t))}this.children.unshift.apply(this.children,this._segments)},_addSegment:function(t){this._segments.push(t),t.parent=this},sortPoints:function(t){return t},seriesMissingValues:function(t){var e=t.missingValues;return!e&&this.options.isStacked?to:e||"interpolate"},getNearestPoint:function(t,e,r){for(var o,i=new Vt(t,e),n=this.seriesPoints[r],s=u,a=0;a<n.length;a++){var l=n[a];if(l&&st(l.value)&&null!==l.value&&!1!==l.visible){var p=l.box.center().distanceTo(i);p<s&&(o=l,s=p)}}return o}},Ao=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this._setEnd(this.options.box.x1)},e.prototype.step=function(t){var e=this.options.box;this._setEnd(Q(e.x1,e.x2,t))},e.prototype._setEnd=function(t){var e=this.element,r=e.segments,o=r[1].anchor(),i=r[2].anchor();e.suspend(),o.setX(t),e.resume(),i.setX(t)},e}(O.drawing.Animation);wt(Ao,{duration:600}),O.drawing.AnimationFactory.current.register("clip",Ao);var Mo=Ao;function To(t){for(var e=0;e<t.length;e++)if(st(t[e].zIndex))return!0}var Eo={createAnimation:function(){var t=this.getRoot();if(t&&!1!==(t.options||{}).transitions){var e=t.size(),r=O.drawing.Path.fromRect(e.toRect());this.visual.clip(r),this.animation=new Mo(r,{box:e}),To(this.options.series)&&this._setChildrenAnimation(r)}},_setChildrenAnimation:function(t){for(var e=this.animationPoints(),r=0;r<e.length;r++){var o=e[r];o&&o.visual&&st(o.visual.options.zIndex)&&o.visual.clip(t)}}},jo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange(),this.renderSegments()},e.prototype.pointType=function(){return _o},e.prototype.createPoint=function(t,e){var r=e.categoryIx,o=e.category,i=e.series,n=e.seriesIx,s=this.seriesMissingValues(i),a=t.valueFields.value;if(!st(a)||null===a){if(s!==to)return null;a=0}var l=this.pointOptions(i,n);l=this.evalPointOptions(l,a,o,r,i,n);var p=t.fields.color||i.color;T(i.color)&&(p=l.color);var c=new _o(a,l);return c.color=p,this.append(c),c},e.prototype.plotRange=function(t){var e=this.plotValue(t);if(this.options.isStacked)for(var r=t.categoryIx,o=this.categoryPoints[r],i=0;i<o.length;i++){var n=o[i];if(t===n)break;e+=this.plotValue(n),this.options.isStacked100&&(e=Math.min(e,1))}return[e,e]},e.prototype.createSegment=function(t,e,r){var o=e.style;return new("step"===o?ko:"smooth"===o?So:xo)(t,e,r)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],r=0;r<t.length;r++)e.push((t[r]||{}).marker);return e.concat(this._segments)},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(vo);j(jo.prototype,Po,Eo);var Ro=jo,Io=function(t){function e(e,r,o,i,n){t.call(this,e,r,o),this.prevSegment=i,this.stackPoints=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createVisual=function(){var t=this.series,e=t._defaults,r=t.line||{},o=t.color;T(o)&&e&&(o=e.color),this.visual=new O.drawing.Group({zIndex:t.zIndex}),this.createFill({fill:{color:o,opacity:t.opacity},stroke:null}),r.width>0&&!1!==r.visible&&this.createStroke({stroke:j({color:o,opacity:t.opacity,lineCap:"butt"},r)})},e.prototype.strokeSegments=function(){var t=this._strokeSegments;return t||(t=this._strokeSegments=this.createStrokeSegments()),t},e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.points())},e.prototype.stackSegments=function(){return this.prevSegment?this.prevSegment.createStackSegments(this.stackPoints):this.createStackSegments(this.stackPoints)},e.prototype.createStackSegments=function(t){return this.segmentsFromPoints(this.toGeometryPoints(t)).reverse()},e.prototype.segmentsFromPoints=function(t){return t.map((function(t){return new O.geometry.Segment(t)}))},e.prototype.createStroke=function(t){var e=new O.drawing.Path(t);e.segments.push.apply(e.segments,this.strokeSegments()),this.visual.append(e)},e.prototype.hasStackSegment=function(){return this.prevSegment||this.stackPoints&&this.stackPoints.length},e.prototype.createFill=function(t){var e=this.strokeSegments(),r=e.slice(0),o=this.hasStackSegment();if(o){var i=this.stackSegments();it(r,i)}var n=new O.drawing.Path(t);n.segments.push.apply(n.segments,r),!o&&e.length>1&&this.fillToAxes(n),this.visual.append(n)},e.prototype.fillToAxes=function(t){var e=this.parent,r=e.options.invertAxes,o=e.seriesValueAxis(this.series),i=e.categoryAxisCrossingValue(o),n=o.getSlot(i,i,!0),s=this.strokeSegments(),a=s[0].anchor(),l=ft(s).anchor(),p=r?n.x1:n.y1;r?t.lineTo(p,l.y).lineTo(p,a.y):t.lineTo(l.x,p).lineTo(a.x,p)},e}(xo),Bo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))},e.prototype.createStackSegments=function(t){return this.segmentsFromPoints(this.calculateStepPoints(t)).reverse()},e}(Io);j(Bo.prototype,Co);var Lo=Bo,Do=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){var t=new Dr(this.options.closed),e=this.points();return t.process(e)},e.prototype.createStackSegments=function(){for(var t=this.strokeSegments(),e=[],r=t.length-1;r>=0;r--){var o=t[r];e.push(new O.geometry.Segment(o.anchor(),o.controlOut(),o.controlIn()))}return e},e}(Io),zo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,r,o){var i,n,s=this.options.isStacked,a=(e.line||{}).style;s&&r>0&&o&&("gap"!==this.seriesMissingValues(e)?(n=o.linePoints,i=o):n=this._gapStackPoints(t,r,a));return new("step"===a?Lo:"smooth"===a?Do:Io)(t,e,r,i,n)},e.prototype.reflow=function(e){t.prototype.reflow.call(this,e);var r=this._stackPoints;if(r)for(var o=0;o<r.length;o++){var i=r[o],n=this.categoryAxis.getSlot(i.categoryIx);i.reflow(n)}},e.prototype._gapStackPoints=function(t,e,r){var o=this.seriesPoints,i=t[0].categoryIx,n=t.length;i<0&&(i=0,n--);var s=i+n,a=this.seriesOptions[0]._outOfRangeMinPoint?1:0,l=[];this._stackPoints=this._stackPoints||[];for(var p=i;p<s;p++){var c=p+a,h=e,u=void 0;do{u=o[--h][c]}while(h>0&&!u);if(u)"step"!==r&&p>i&&!o[h][c-1]&&l.push(this._previousSegmentPoint(p,c,c-1,h)),l.push(u),"step"!==r&&p+1<s&&!o[h][c+1]&&l.push(this._previousSegmentPoint(p,c,c+1,h));else{var f=this._createGapStackPoint(p);this._stackPoints.push(f),l.push(f)}}return l},e.prototype._previousSegmentPoint=function(t,e,r,o){for(var i,n=this.seriesPoints,s=o;s>0&&!i;)i=n[--s][r];return i?i=n[s][e]:(i=this._createGapStackPoint(t),this._stackPoints.push(i)),i},e.prototype._createGapStackPoint=function(t){var e=this.pointOptions({},0),r=new _o(0,e);return r.categoryIx=t,r.series={},r},e.prototype.seriesMissingValues=function(t){return t.missingValues||to},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(Ro),Vo=function(t){function e(){t.call(this),this.axisRanges={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.update=function(t){var e=this.axisRanges;for(var r in t){var o=t[r],i=e[r];e[r]=i=i||{min:u,max:f},i.min=Math.min(i.min,o.min),i.max=Math.max(i.max,o.max)}},e.prototype.reset=function(t){this.axisRanges[t]=void 0},e.prototype.query=function(t){return this.axisRanges[t]},e}(O.Class),No=function(t){function e(e,r,o){t.call(this,r),this.textBox=new ce(e,this.options,o),this.append(this.textBox)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createVisual=function(){this.textBox.options.noclip=this.options.noclip},e.prototype.reflow=function(t){var e=this.options,r=e.vertical,o=e.aboveAxis,i=this.children[0],n=i.options,l=i.box,p=i.options.padding,c=t;n.align=r?a:h,n.vAlign=r?v:a,"insideEnd"===e.position?r?(n.vAlign=v,!o&&l.height()<t.height()&&(n.vAlign=s)):n.align=o?d:h:e.position===a?(n.vAlign=a,n.align=a):"insideBase"===e.position?r?n.vAlign=o?s:v:n.align=o?h:d:"outsideEnd"===e.position&&(r?c=o?new Ht(t.x1,t.y1-l.height(),t.x2,t.y1):new Ht(t.x1,t.y2,t.x2,t.y2+l.height()):(n.align=a,c=o?new Ht(t.x2,t.y1,t.x2+l.width(),t.y2):new Ht(t.x1-l.width(),t.y1,t.x1,t.y2))),e.rotation||(r?p.left=p.right=(c.width()-i.contentBox.width())/2:p.top=p.bottom=(c.height()-i.contentBox.height())/2),i.reflow(c)},e.prototype.alignToClipBox=function(t){var e=this.options.vertical?_:m,r=e+"1",o=e+"2",i=this.children[0],n=this.parent.box;if(n[r]<t[r]||t[o]<n[o]){var s=i.paddingBox.clone();s[r]=Math.max(n[r],t[r]),s[o]=Math.min(n[o],t[o]),this.reflow(s)}},e}(Yt);wt(No,{position:"outsideEnd",margin:z(3),padding:z(4),color:n,background:"",border:{width:1,color:""},aboveAxis:!0,vertical:!1,animation:{type:"fadeIn",delay:600},zIndex:2});var Ho=No;function Uo(t){var e=t.overlay;return e&&e.gradient&&"none"!==e.gradient}var Fo=function(t){function e(e,r){t.call(this),this.options=r,this.color=r.color||g,this.aboveAxis=_t(this.options.aboveAxis,!0),this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this._rendered||(this._rendered=!0,this.createLabel(),this.createNote(),this.errorBar&&this.append(this.errorBar))},e.prototype.createLabel=function(){var t=this.options,e=t.labels;if(e.visible){var r,o=this.pointData(),i=U(e);r=i?i(o):this.formatValue(e.format),this.label=new Ho(r,j({vertical:t.vertical},e),o),this.append(this.label)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.reflow=function(t){this.render();var e=this.label;if(this.box=t,e&&(e.options.aboveAxis=this.aboveAxis,e.reflow(t)),this.note&&this.note.reflow(t),this.errorBars)for(var r=0;r<this.errorBars.length;r++)this.errorBars[r].reflow(t)},e.prototype.createVisual=function(){var e=this,r=this.box,o=this.options,i=o.visual;if(!1!==this.visible)if(t.prototype.createVisual.call(this),i){var n=this.rectVisual=i({category:this.category,dataItem:this.dataItem,value:this.value,sender:this.getSender(),series:this.series,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,rect:r.toRect(),createVisual:function(){var t=new O.drawing.Group;return e.createRect(t),t},options:o});n&&this.visual.append(n)}else r.width()>0&&r.height()>0&&this.createRect(this.visual)},e.prototype.createRect=function(t){var e=this.options,r=e.border,o=st(r.opacity)?r.opacity:e.opacity,i=this.box.toRect();i.size.width=Math.round(i.size.width);var n=this.rectVisual=O.drawing.Path.fromRect(i,{fill:{color:this.color,opacity:e.opacity},stroke:{color:this.getBorderColor(),width:r.width,opacity:o,dashType:r.dashType}}),s=this.box.width(),a=this.box.height();if((e.vertical?s:a)>6&&(k(n),(s<1||a<1)&&(n.options.stroke.lineJoin="round")),t.append(n),Uo(e)){var l=this.createGradientOverlay(n,{baseColor:this.color},j({end:e.vertical?void 0:[0,1]},e.overlay));t.append(l)}},e.prototype.createHighlight=function(t){return k(O.drawing.Path.fromRect(this.box.toRect(),t))},e.prototype.highlightVisual=function(){return this.rectVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}},e.prototype.getBorderColor=function(){var t=this.color,e=this.options.border,r=e._brightness||.8,o=e.color;return st(o)||(o=new O.Color(t).brightness(r).toHex()),o},e.prototype.tooltipAnchor=function(){var t,e,r=this.options,o=this.box,i=this.aboveAxis,n=this.owner.pane.clipBox()||o,a=h,l=v;if(r.vertical)t=Math.min(o.x2,n.x2)+5,i?e=Math.max(o.y1,n.y1):(e=Math.min(o.y2,n.y2),l=s);else{var p=Math.max(o.x1,n.x1),c=Math.min(o.x2,n.x2);r.isStacked?(l=s,i?(a=d,t=c):t=p,e=Math.max(o.y1,n.y1)-5):(i?t=c+5:(t=p-5,a=d),e=Math.max(o.y1,n.y1))}return{point:new Vt(t,e),align:{horizontal:a,vertical:l}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,series:this.series}},e}(Yt);j(Fo.prototype,yo),j(Fo.prototype,go),Fo.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};var Go=Fo;function Wo(t,e){t.forEach(e)}function Ko(t,e){for(var r=t.length,o=r-1;o>=0;o--)e(t[o],o-r-1)}var Xo=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Ko:Wo}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,r=e.vertical,o=e.gap,i=e.spacing,n=this.children,s=n.length,a=r?_:m,l=s+o+i*(s-1),p=(r?t.height():t.width())/l,c=t[a+1]+p*(o/2);this.forEach(n,(function(e,r){var o=(e.box||t).clone();o[a+1]=c,o[a+2]=c+p,e.reflow(o),r<s-1&&(c+=p*i),c+=p}))},e}(Yt);wt(Xo,{vertical:!1,gap:0,spacing:0});var Yo=Xo,qo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){for(var e=this.options.vertical?m:_,r=this.children,o=r.length,i=this.box=new Ht,n=0;n<o;n++){var s=r[n];if(!1!==s.visible){var a=s.box.clone();a.snapTo(t,e),0===n&&(i=this.box=a.clone()),s.reflow(a),i.wrap(a)}}},e}(Yt);wt(qo,{vertical:!0});var Zo=qo,Qo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange()},e.prototype.pointType=function(){return Go},e.prototype.clusterType=function(){return Yo},e.prototype.stackType=function(){return Zo},e.prototype.stackLimits=function(e,r){return t.prototype.stackLimits.call(this,e,r)},e.prototype.createPoint=function(t,e){var r=e.categoryIx,o=e.category,i=e.series,n=e.seriesIx,s=this.options,a=this.children,l=s.isStacked,p=this.pointValue(t),c=this.pointOptions(i,n),h=c.labels;l&&"outsideEnd"===h.position&&(h.position="insideEnd"),c.isStacked=l;var u=t.fields.color||i.color;p<0&&c.negativeColor&&(u=c.negativeColor),c=this.evalPointOptions(c,p,o,r,i,n),T(i.color)&&(u=c.color);var f=new(this.pointType())(p,c);f.color=u;var d=a[r];d||(d=new(this.clusterType())({vertical:s.invertAxes,gap:s.gap,spacing:s.spacing,rtl:!s.invertAxes&&(this.chartService||{}).rtl}),this.append(d));l?this.getStackWrap(i,d).append(f):d.append(f);return f},e.prototype.getStackWrap=function(t,e){var r,o=t.stack,i=o&&o.group||o,n=e.children;if("string"==typeof i){for(var s=0;s<n.length;s++)if(n[s]._stackGroup===i){r=n[s];break}}else r=n[0];r||((r=new(this.stackType())({vertical:!this.options.invertAxes}))._stackGroup=i,e.append(r));return r},e.prototype.categorySlot=function(t,e,r){var o=this.options,i=t.getSlot(e),n=r.startValue();if(o.isStacked){var s=r.getSlot(n,n,!0),a=o.invertAxes?m:_;i[a+1]=i[a+2]=s[a+1]}return i},e.prototype.reflowCategories=function(t){for(var e=this.children,r=e.length,o=0;o<r;o++)e[o].reflow(t[o])},e.prototype.createAnimation=function(){this._setAnimationOptions(),t.prototype.createAnimation.call(this),To(this.options.series)&&this._setChildrenAnimation()},e.prototype._setChildrenAnimation=function(){for(var t=this.points,e=0;e<t.length;e++){var r=t[e],o=r.visual;o&&st(o.options.zIndex)&&(r.options.animation=this.options.animation,r.createAnimation())}},e.prototype._setAnimationOptions=function(){var t,e=this.options,r=e.animation||{};if(e.isStacked){var o=this.seriesValueAxis(e.series[0]);t=o.getSlot(o.startValue())}else t=this.categoryAxis.getSlot(0);r.origin=new O.geometry.Point(t.x1,t.y1),r.vertical=!e.invertAxes},e}(vo);wt(Qo,{animation:{type:eo}});var $o=Qo,Jo=function(t){function e(e,r){t.call(this,r),this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,r=this.value,o=this.owner.seriesValueAxis(e),i=o.getSlot(r.open,r.close),n=o.getSlot(r.low,r.high);i.x1=n.x1=t.x1,i.x2=n.x2=t.x2,this.realBody=i;var s=n.center().x,a=[];a.push([[s,n.y1],[s,i.y1]]),a.push([[s,i.y2],[s,n.y2]]),this.lines=a,this.box=n.clone().wrap(i),this._rendered||(this._rendered=!0,this.createNote()),this.reflowNote()},e.prototype.reflowNote=function(){this.note&&this.note.reflow(this.box)},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this._mainVisual=this.mainVisual(this.options),this.visual.append(this._mainVisual),this.createOverlay()},e.prototype.mainVisual=function(t){var e=new O.drawing.Group;return this.createBody(e,t),this.createLines(e,t),e},e.prototype.createBody=function(t,e){var r=O.drawing.Path.fromRect(this.realBody.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null});e.border.width>0&&r.options.set("stroke",{color:this.getBorderColor(),width:e.border.width,dashType:e.border.dashType,opacity:_t(e.border.opacity,e.opacity)}),k(r),t.append(r),Uo(e)&&t.append(this.createGradientOverlay(r,{baseColor:this.color},j({end:e.vertical?void 0:[0,1]},e.overlay)))},e.prototype.createLines=function(t,e){this.drawLines(t,e,this.lines,e.line)},e.prototype.drawLines=function(t,e,r,o){if(r)for(var i={stroke:{color:o.color||this.color,opacity:_t(o.opacity,e.opacity),width:o.width,dashType:o.dashType,lineCap:"butt"}},n=0;n<r.length;n++){var s=O.drawing.Path.fromPoints(r[n],i);k(s),t.append(s)}},e.prototype.getBorderColor=function(){var t=this.options.border,e=t.color;return st(e)||(e=new O.Color(this.color).brightness(t._brightness).toHex()),e},e.prototype.createOverlay=function(){var t=O.drawing.Path.fromRect(this.box.toRect(),{fill:{color:g,opacity:0},stroke:null});this.visual.append(t)},e.prototype.createHighlight=function(){var t=this.options.highlight,e=this.color;this.color=t.color||this.color;var r=this.mainVisual(j({},this.options,{line:{color:this.getBorderColor()}},t));return this.color=e,r},e.prototype.highlightVisual=function(){return this._mainVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this._mainVisual}},e.prototype.tooltipAnchor=function(){var t=this.box,e=this.owner.pane.clipBox()||t;return{point:new Vt(t.x2+5,Math.max(t.y1,e.y1)+5),align:{horizontal:h,vertical:v}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e}(Yt);wt(Jo,{vertical:!0,border:{_brightness:.8},line:{width:2},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{4:d}</th></tr><tr><td>Open:</td><td>{0:C}</td></tr><tr><td>High:</td><td>{1:C}</td></tr><tr><td>Low:</td><td>{2:C}</td></tr><tr><td>Close:</td><td>{3:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}}}),j(Jo.prototype,yo),j(Jo.prototype,go);var ti=Jo;function ei(t){return Fr(t)===t.length}var ri=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowCategories=function(t){for(var e=this.children,r=e.length,o=0;o<r;o++)e[o].reflow(t[o])},e.prototype.addValue=function(t,e){var r,o=e.categoryIx,i=e.category,n=e.series,s=e.seriesIx,a=this.children,l=this.options,p=t.valueFields,c=ei(this.splitValue(p)),h=n.data[o],u=this.categoryPoints[o];u||(this.categoryPoints[o]=u=[]),c&&(r=this.createPoint(t,e));var f=a[o];f||(f=new Yo({vertical:l.invertAxes,gap:l.gap,spacing:l.spacing,rtl:!l.invertAxes&&(this.chartService||{}).rtl}),this.append(f)),r&&(this.updateRange(p,e),f.append(r),r.categoryIx=o,r.category=i,r.series=n,r.seriesIx=s,r.owner=this,r.dataItem=h,r.noteText=t.fields.noteText),this.points.push(r),u.push(r)},e.prototype.pointType=function(){return ti},e.prototype.createPoint=function(t,e){var r=e.categoryIx,o=e.category,i=e.series,n=e.seriesIx,s=this.pointType(),a=t.valueFields,l=j({},i),p=t.fields.color||i.color;l=this.evalPointOptions(l,a,o,r,i,n),"candlestick"===i.type&&a.open>a.close&&(p=t.fields.downColor||i.downColor||i.color),T(i.color)&&(p=l.color),l.vertical=!this.options.invertAxes;var c=new s(a,l);return c.color=p,c},e.prototype.splitValue=function(t){return[t.low,t.open,t.close,t.high]},e.prototype.updateRange=function(t,e){var r=e.series.axis,o=this.splitValue(t),i=this.valueAxisRanges[r];i=this.valueAxisRanges[r]=i||{min:u,max:f},i=this.valueAxisRanges[r]={min:Math.min.apply(Math,o.concat([i.min])),max:Math.max.apply(Math,o.concat([i.max]))}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.open,r.high,r.low,r.close,t.category)},e.prototype.animationPoints=function(){return this.points},e}(vo);j(ri.prototype,Eo);var oi=ri,ii=function(t){function e(e,r){t.call(this,e,r),this.createNote()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e,r,o=this.options,i=this.value,n=this.owner.seriesValueAxis(o);this.boxSlot=r=n.getSlot(i.q1,i.q3),this.realBody=r,this.reflowBoxSlot(t),this.whiskerSlot=e=n.getSlot(i.lower,i.upper),this.reflowWhiskerSlot(t);var s=n.getSlot(i.median);if(i.mean){var a=n.getSlot(i.mean);this.meanPoints=this.calcMeanPoints(t,a)}this.whiskerPoints=this.calcWhiskerPoints(r,e),this.medianPoints=this.calcMedianPoints(t,s),this.box=e.clone().wrap(r),this.reflowNote()},e.prototype.reflowBoxSlot=function(t){this.boxSlot.x1=t.x1,this.boxSlot.x2=t.x2},e.prototype.reflowWhiskerSlot=function(t){this.whiskerSlot.x1=t.x1,this.whiskerSlot.x2=t.x2},e.prototype.calcMeanPoints=function(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]},e.prototype.calcWhiskerPoints=function(t,e){var r=e.center().x;return[[[r-5,e.y1],[r+5,e.y1],[r,e.y1],[r,t.y1]],[[r-5,e.y2],[r+5,e.y2],[r,e.y2],[r,t.y2]]]},e.prototype.calcMedianPoints=function(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]},e.prototype.renderOutliers=function(t){for(var e=this.value,r=e.outliers||[],o=3*Math.abs(e.q3-e.q1),i=[],n=t.markers||{},s=0;s<r.length;s++){var a=r[s],l=j({},(n=a<e.q3+o&&a>e.q1-o?t.outliers:t.extremes).border);st(l.color)||(st(this.color)?l.color=this.color:l.color=new O.Color(n.background).brightness(.8).toHex());var p=new $t({type:n.type,width:n.size,height:n.size,rotation:n.rotation,background:n.background,border:l,opacity:n.opacity});p.value=a,i.push(p)}return this.reflowOutliers(i),i},e.prototype.reflowOutliers=function(t){for(var e=this.owner.seriesValueAxis(this.options),r=this.box.center(),o=0;o<t.length;o++){var i=t[o].value,n=e.getSlot(i);this.options.vertical?n.move(r.x):n.move(void 0,r.y),this.box=this.box.wrap(n),t[o].reflow(n)}},e.prototype.mainVisual=function(e){for(var r=t.prototype.mainVisual.call(this,e),o=this.renderOutliers(e),i=0;i<o.length;i++){var n=o[i].getElement();n&&r.append(n)}return r},e.prototype.createLines=function(t,e){this.drawLines(t,e,this.whiskerPoints,e.whiskers),this.drawLines(t,e,this.medianPoints,e.median),this.drawLines(t,e,this.meanPoints,e.mean)},e.prototype.getBorderColor=function(){return(this.options.border||{}).color?this.options.border.color:this.color?this.color:t.prototype.getBorderColor.call(this)},e}(ti);wt(ii,{border:{_brightness:.8},line:{width:2},median:{color:"#f6f6f6"},mean:{width:2,dashType:"dash",color:"#f6f6f6"},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{6:d}</th></tr><tr><td>Lower:</td><td>{0:C}</td></tr><tr><td>Q1:</td><td>{1:C}</td></tr><tr><td>Median:</td><td>{2:C}</td></tr><tr><td>Mean:</td><td>{5:C}</td></tr><tr><td>Q3:</td><td>{3:C}</td></tr><tr><td>Upper:</td><td>{4:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}},outliers:{visible:!0,size:8,type:"cross",background:g,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:l,background:g,border:{width:2,opacity:1},opacity:0}}),j(ii.prototype,yo);var ni=ii,si=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowBoxSlot=function(t){this.boxSlot.y1=t.y1,this.boxSlot.y2=t.y2},e.prototype.reflowWhiskerSlot=function(t){this.whiskerSlot.y1=t.y1,this.whiskerSlot.y2=t.y2},e.prototype.calcMeanPoints=function(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]},e.prototype.calcWhiskerPoints=function(t,e){var r=e.center().y;return[[[e.x1,r-5],[e.x1,r+5],[e.x1,r],[t.x1,r]],[[e.x2,r-5],[e.x2,r+5],[e.x2,r],[t.x2,r]]]},e.prototype.calcMedianPoints=function(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]},e}(ni),ai=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addValue=function(t,e){var r,o=e.categoryIx,i=e.category,n=e.series,s=e.seriesIx,a=this.children,l=this.options,p=t.valueFields,c=ei(this.splitValue(p)),h=n.data[o],u=this.categoryPoints[o];u||(this.categoryPoints[o]=u=[]),c&&(r=this.createPoint(t,e));var f=a[o];f||(f=new Yo({vertical:l.invertAxes,gap:l.gap,spacing:l.spacing,rtl:!l.invertAxes&&(this.chartService||{}).rtl}),this.append(f)),r&&(this.updateRange(p,e),f.append(r),r.categoryIx=o,r.category=i,r.series=n,r.seriesIx=s,r.owner=this,r.dataItem=h),this.points.push(r),u.push(r)},e.prototype.pointType=function(){return this.options.invertAxes?si:ni},e.prototype.splitValue=function(t){return[t.lower,t.q1,t.median,t.q3,t.upper]},e.prototype.updateRange=function(t,e){var r=e.series.axis,o=this.valueAxisRanges[r],i=this.splitValue(t).concat(this.filterOutliers(t.outliers));st(t.mean)&&(i=i.concat(t.mean)),o=this.valueAxisRanges[r]=o||{min:u,max:f},o=this.valueAxisRanges[r]={min:Math.min.apply(Math,i.concat([o.min])),max:Math.max.apply(Math,i.concat([o.max]))}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.lower,r.q1,r.median,r.q3,r.upper,r.mean,t.category)},e.prototype.filterOutliers=function(t){for(var e=(t||[]).length,r=[],o=0;o<e;o++){var i=t[o];st(i)&&null!==i&&r.push(i)}return r},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(oi),li=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getAxis=function(){var t=this.chart.seriesAxes(this.series);return this.isVertical?t.y:t.x},e}(po);function pi(t){return st(t)&&null!==t}var ci=function(t){function e(e,r){t.call(this,r),this.plotArea=e,this.chartService=e.chartService,this._initFields(),this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this.xAxisRanges={},this.yAxisRanges={},this.points=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[]},e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.addErrorBar=function(t,e,r){var o,i=t.value[e],n=e+"Value",s=e+"ErrorLow",a=e+"ErrorHigh",l=r.seriesIx,p=r.series,c=t.options.errorBars,h=r[s],u=r[a];P(i)&&(P(h)&&P(u)&&(o={low:h,high:u}),c&&st(c[n])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[e][l]=this.seriesErrorRanges[e][l]||new Qr(c[n],p,e),o=this.seriesErrorRanges[e][l].getErrorRange(i,c[n])),o&&this.addPointErrorBar(o,t,e))},e.prototype.addPointErrorBar=function(t,e,r){var o=t.low,i=t.high,n=e.series,s=e.options.errorBars,a=r===_,l={};e[r+"Low"]=o,e[r+"High"]=i,e.errorBars=e.errorBars||[];var p=new li(o,i,a,this,n,s);e.errorBars.push(p),e.append(p),l[r]=o,this.updateRange(l,n),l[r]=i,this.updateRange(l,n)},e.prototype.addValue=function(t,e){var r,o=t.x,i=t.y,n=e.seriesIx,s=this.options.series[n],a=this.seriesMissingValues(s),l=this.seriesPoints[n],p=t;pi(o)&&pi(i)||(p=this.createMissingValue(p,a)),p&&((r=this.createPoint(p,e))&&(Object.assign(r,e),this.addErrorBar(r,m,e),this.addErrorBar(r,_,e)),this.updateRange(p,e.series)),this.points.push(r),l.push(r)},e.prototype.seriesMissingValues=function(t){return t.missingValues},e.prototype.createMissingValue=function(){},e.prototype.updateRange=function(t,e){var r=this.chartService.intl,o=e.xAxis,i=e.yAxis,n=t.x,s=t.y,a=this.xAxisRanges[o],l=this.yAxisRanges[i];pi(n)&&(a=this.xAxisRanges[o]=a||{min:u,max:f},A(n)&&(n=$e(r,n)),a.min=Math.min(a.min,n),a.max=Math.max(a.max,n)),pi(s)&&(l=this.yAxisRanges[i]=l||{min:u,max:f},A(s)&&(s=$e(r,s)),l.min=Math.min(l.min,s),l.max=Math.max(l.max,s))},e.prototype.evalPointOptions=function(t,e,r){var o=r.series,i=r.seriesIx,n={defaults:o._defaults,excluded:["data","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},s=this._evalSeries[i];st(s)||(this._evalSeries[i]=s=ho(t,{},n,!0));var a=t;return s&&ho(a=j({},t),{value:e,series:o,dataItem:r.dataItem},n),a},e.prototype.pointType=function(){return _o},e.prototype.pointOptions=function(t,e){var r=this.seriesOptions[e];if(!r){var o=this.pointType().prototype.defaults;this.seriesOptions[e]=r=j({},o,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return r},e.prototype.createPoint=function(t,e){var r=e.series,o=this.pointOptions(r,e.seriesIx),i=e.color||r.color;o=this.evalPointOptions(o,t,e),T(r.color)&&(i=o.color);var n=new _o(t,o);return n.color=i,this.append(n),n},e.prototype.seriesAxes=function(t){var e=t.xAxis,r=t.yAxis,o=this.plotArea,i=e?o.namedXAxes[e]:o.axisX,n=r?o.namedYAxes[r]:o.axisY;if(!i)throw new Error("Unable to locate X axis with name "+e);if(!n)throw new Error("Unable to locate Y axis with name "+r);return{x:i,y:n}},e.prototype.reflow=function(t){var e=this,r=this.points,o=!this.options.clip,i=0;this.traverseDataPoints((function(t,n){var s=r[i++],a=e.seriesAxes(n.series),l=a.x.getSlot(t.x,t.x,o),p=a.y.getSlot(t.y,t.y,o);if(s)if(l&&p){var c=e.pointSlot(l,p);s.reflow(c)}else s.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new Ht(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,r=this.seriesPoints,o=0;o<e.length;o++){var i=e[o];r[o]||(r[o]=[]);for(var n=0;n<i.data.length;n++){var s=this._bindPoint(i,o,n),a=s.valueFields,l=s.fields;t(a,j({pointIx:n,series:i,seriesIx:o,dataItem:i.data[n],owner:this},l))}}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.x,r.y)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],r=0;r<t.length;r++)e.push((t[r]||{}).marker);return e},e}(Yt);wt(ci,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),j(ci.prototype,Eo,{_bindPoint:vo.prototype._bindPoint});var hi=ci,ui=function(t){function e(e,r){t.call(this,e,r),this.category=e.category}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createHighlight=function(){var t=this.options.highlight,e=t.border,r=this.options.markers,o=this.box.center(),i=(r.size+r.border.width+e.width)/2,n=new O.drawing.Group,s=new O.drawing.Circle(new O.geometry.Circle([o.x,o.y+i/5+e.width/2],i+e.width/2),{stroke:{color:"none"},fill:this.createGradient({gradient:"bubbleShadow",color:r.background,stops:[{offset:0,color:r.background,opacity:.3},{offset:1,color:r.background,opacity:0}]})}),a=new O.drawing.Circle(new O.geometry.Circle([o.x,o.y],i),{stroke:{color:e.color||new O.Color(r.background).brightness(.8).toHex(),width:e.width,opacity:e.opacity},fill:{color:r.background,opacity:t.opacity}});return n.append(s,a),n},e}(_o);ui.prototype.defaults=j({},ui.prototype.defaults,{labels:{position:a},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),ui.prototype.defaults.highlight.zIndex=void 0;var fi=ui,di=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this._maxSize=f,t.prototype._initFields.call(this)},e.prototype.addValue=function(e,r){null!==e.size&&(e.size>0||e.size<0&&r.series.negativeValues.visible)?(this._maxSize=Math.max(this._maxSize,Math.abs(e.size)),t.prototype.addValue.call(this,e,r)):(this.points.push(null),this.seriesPoints[r.seriesIx].push(null))},e.prototype.reflow=function(e){this.updateBubblesSize(e),t.prototype.reflow.call(this,e)},e.prototype.pointType=function(){return fi},e.prototype.createPoint=function(t,e){var r=e.series,o=r.data.length,i=e.pointIx*(600/o),n={delay:i,duration:600-i,type:"bubble"},s=e.color||r.color;t.size<0&&r.negativeValues.visible&&(s=_t(r.negativeValues.color,s));var a=j({labels:{animation:{delay:i,duration:600-i}}},this.pointOptions(r,e.seriesIx),{markers:{type:l,border:r.border,opacity:r.opacity,animation:n}});a=this.evalPointOptions(a,t,e),T(r.color)&&(s=a.color),a.markers.background=s;var p=new fi(t,a);return p.color=s,this.append(p),p},e.prototype.updateBubblesSize=function(t){for(var e=this.options.series,r=Math.min(t.width(),t.height()),o=0;o<e.length;o++)for(var i=e[o],n=this.seriesPoints[o],s=(i.minSize||Math.max(.02*r,10))/2,a=(i.maxSize||.2*r)/2,l=Math.PI*s*s,p=(Math.PI*a*a-l)/this._maxSize,c=0;c<n.length;c++){var h=n[c];if(h){var u=Math.abs(h.value.size)*p,f=Math.sqrt((l+u)/Math.PI),d=_t(h.options.zIndex,0)+(1-f/a);j(h.options,{zIndex:d,markers:{size:2*f,zIndex:d},labels:{zIndex:d+1}})}}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.x,r.y,r.size,t.category)},e.prototype.createAnimation=function(){},e.prototype.createVisual=function(){},e}(hi);wt(di,{tooltip:{format:"{3}"},labels:{format:"{3}"}});var vi=di,yi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}($t);j(yi.prototype,yo);var gi=yi,mi=function(t){function e(e,r){t.call(this,r),this.aboveAxis=this.options.aboveAxis,this.color=r.color||g,this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options;this._rendered||(this._rendered=!0,st(this.value.target)&&(this.target=new gi({type:t.target.shape,background:t.target.color||this.color,opacity:t.opacity,zIndex:t.zIndex,border:t.target.border,vAlign:v,align:d}),this.target.value=this.value,this.target.dataItem=this.dataItem,this.target.series=this.series,this.append(this.target)),this.createNote())},e.prototype.reflow=function(t){this.render();var e=this.options,r=this.target,o=this.owner,i=e.invertAxes,n=o.seriesValueAxis(this.options),s=o.categorySlot(o.categoryAxis,e.categoryIx,n),a=n.getSlot(this.value.target),l=i?a:s,p=i?s:a;if(r){var c=new Ht(l.x1,p.y1,l.x2,p.y2);r.options.height=i?c.height():e.target.line.width,r.options.width=i?e.target.line.width:c.width(),r.reflow(c)}this.note&&this.note.reflow(t),this.box=t},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options,r=O.drawing.Path.fromRect(this.box.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null});e.border.width>0&&r.options.set("stroke",{color:e.border.color||this.color,width:e.border.width,dashType:e.border.dashType,opacity:_t(e.border.opacity,e.opacity)}),this.bodyVisual=r,k(r),this.visual.append(r)},e.prototype.createAnimation=function(){this.bodyVisual&&(this.animation=O.drawing.Animation.create(this.bodyVisual,this.options.animation))},e.prototype.createHighlight=function(t){return O.drawing.Path.fromRect(this.box.toRect(),t)},e.prototype.highlightVisual=function(){return this.bodyVisual},e.prototype.highlightVisualArgs=function(){return{rect:this.box.toRect(),visual:this.bodyVisual,options:this.options}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(Yt);mi.prototype.tooltipAnchor=Go.prototype.tooltipAnchor,wt(mi,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},tooltip:{format:"Current: {0}<br />Target: {1}"}}),j(mi.prototype,yo),j(mi.prototype,go);var _i=mi,bi=function(t){function e(e,r){!function(t){for(var e=t.series,r=0;r<e.length;r++){var o=e[r],i=o.data;!i||b(i[0])||R(i[0])||(o.data=[i])}}(r),t.call(this,e,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowCategories=function(t){for(var e=this.children,r=e.length,o=0;o<r;o++)e[o].reflow(t[o])},e.prototype.plotRange=function(t){var e=t.series,r=this.seriesValueAxis(e),o=this.categoryAxisCrossingValue(r);return[o,t.value.current||o]},e.prototype.createPoint=function(t,e){var r=e.categoryIx,o=e.category,i=e.series,n=e.seriesIx,s=this.options,a=this.children,l=t.valueFields,p=j({vertical:!s.invertAxes,overlay:i.overlay,categoryIx:r,invertAxes:s.invertAxes},i),c=t.fields.color||i.color;p=this.evalPointOptions(p,l,o,r,i,n),T(i.color)&&(c=p.color);var h=new _i(l,p);h.color=c;var u=a[r];return u||(u=new Yo({vertical:s.invertAxes,gap:s.gap,spacing:s.spacing,rtl:!s.invertAxes&&(this.chartService||{}).rtl}),this.append(u)),u.append(h),h},e.prototype.updateRange=function(t,e){var r=t.current,o=t.target,i=e.series.axis,n=this.valueAxisRanges[i];st(r)&&!isNaN(r)&&st(o&&!isNaN(o))&&((n=this.valueAxisRanges[i]=n||{min:u,max:f}).min=Math.min(n.min,r,o),n.max=Math.max(n.max,r,o))},e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value.current,t.value.target)},e.prototype.pointValue=function(t){return t.valueFields.current},e.prototype.aboveAxis=function(t){return t.value.current>0},e.prototype.createAnimation=function(){var t=this.points;this._setAnimationOptions();for(var e=0;e<t.length;e++){var r=t[e];r.options.animation=this.options.animation,r.createAnimation()}},e}(vo);bi.prototype._setAnimationOptions=$o.prototype._setAnimationOptions,wt(bi,{animation:{type:eo}});var xi=bi,wi=function(t){function e(e,r){t.call(this),this.chartService=e,this.options=j({},this.options,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getStyle=function(t,e){var r=t.background,o=t.border.color;if(e){var i=e.color||e.options.color;r=_t(r,i),o=_t(o,i)}var n=z(t.padding||{},"auto");return{backgroundColor:r,borderColor:o,font:t.font,color:t.color,opacity:t.opacity,borderWidth:I(t.border.width),paddingTop:I(n.top),paddingBottom:I(n.bottom),paddingLeft:I(n.left),paddingRight:I(n.right)}},e.prototype.show=function(t,e,r){t.format=e.format;var o=this.getStyle(e,r);t.style=o;var i=new O.Color(o.backgroundColor);st(e.color)||i.isDark()||(t.className="k-chart-tooltip-inverse"),this.chartService.notify("showTooltip",t),this.visible=!0},e.prototype.hide=function(){this.chartService&&this.chartService.notify("hideTooltip"),this.visible=!1},e.prototype.destroy=function(){delete this.chartService},e}(O.Class);wt(wi,{border:{width:1},opacity:1});var Ci=wi,Oi=function(t){function e(e,r,o){t.call(this,e,o),this.crosshair=r,this.formatService=e.format,this.initAxisName()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initAxisName=function(){var t,e=this.crosshair.axis;t=e.plotArea.categoryAxis?e.getCategory?"categoryAxis":"valueAxis":e.options.vertical?"yAxis":"xAxis",this.axisName=t},e.prototype.showAt=function(t){var e=this.crosshair.axis,r=this.options,o=e[r.stickyMode?"getCategory":"getValue"](t),i=o;r.format?i=this.formatService.auto(r.format,o):e.options.type===p&&(i=this.formatService.auto(e.options.labels.dateFormats[e.options.baseUnit],o)),this.show({point:t,anchor:this.getAnchor(),crosshair:this.crosshair,value:i,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex},this.options)},e.prototype.hide=function(){this.chartService.notify("hideTooltip",{crosshair:this.crosshair,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex})},e.prototype.getAnchor=function(){var t,e,r,o=this.crosshair,i=this.options,n=i.position,l=i.padding,p=!o.axis.options.vertical,c=o.line.bbox();return p?(t=a,n===s?(e=v,r=c.bottomLeft().translate(0,l)):(e=s,r=c.topLeft().translate(0,-l))):(e=a,n===h?(t=d,r=c.topLeft().translate(-l,0)):(t=h,r=c.topRight().translate(l,0))),{point:r,align:{horizontal:t,vertical:e}}},e}(Ci);wt(Oi,{padding:10});var ki=Oi,Si=function(t){function e(e,r,o){t.call(this,o),this.axis=r,this.stickyMode=r instanceof rr;var i=this.options.tooltip;i.visible&&(this.tooltip=new ki(e,this,j({},i,{stickyMode:this.stickyMode})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.showAt=function(t){this.point=t,this.moveLine(),this.line.visible(!0),this.tooltip&&this.tooltip.showAt(t)},e.prototype.hide=function(){this.line.visible(!1),this.tooltip&&this.tooltip.hide()},e.prototype.moveLine=function(){var t,e=this.axis,r=this.point,o=e.options.vertical,i=this.getBox(),n=o?_:m,s=new O.geometry.Point(i.x1,i.y1);if(t=o?new O.geometry.Point(i.x2,i.y1):new O.geometry.Point(i.x1,i.y2),r)if(this.stickyMode){var a=e.getSlot(e.pointCategoryIndex(r));s[n]=t[n]=a.center()[n]}else s[n]=t[n]=r[n];this.box=i,this.line.moveTo(s).lineTo(t)},e.prototype.getBox=function(){for(var t,e=this.axis,r=e.pane.axes,o=r.length,i=e.options.vertical,n=e.lineBox().clone(),s=i?m:_,a=0;a<o;a++){var l=r[a];l.options.vertical!==i&&(t?t.wrap(l.lineBox()):t=l.lineBox().clone())}return n[s+1]=t[s+1],n[s+2]=t[s+2],n},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options;this.line=new O.drawing.Path({stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType},visible:!1}),this.moveLine(),this.visual.append(this.line)},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),t.prototype.destroy.call(this)},e}(Yt);wt(Si,{color:n,width:2,zIndex:-1,tooltip:{visible:!1}});var Pi=Si,Ai=function(t){function e(e,r){t.call(this,e),this.pane=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.shouldClip=function(){for(var t=this.children,e=t.length,r=0;r<e;r++)if(!0===t[r].options.clip)return!0;return!1},e.prototype._clipBox=function(){return this.pane.chartsBox()},e.prototype.createVisual=function(){if(this.visual=new O.drawing.Group({zIndex:0}),this.shouldClip()){var t=(this.clipBox=this._clipBox()).toRect(),e=O.drawing.Path.fromRect(t);k(e),this.visual.clip(e),this.unclipLabels()}},e.prototype.stackRoot=function(){return this},e.prototype.unclipLabels=function(){for(var t=this.children,e=this.clipBox,r=0;r<t.length;r++)for(var o=t[r].points||{},i=o.length,n=0;n<i;n++){var s=o[n];if(s&&!1!==s.visible&&s.overlapsBox&&s.overlapsBox(e))if(s.unclipElements)s.unclipElements();else{var a=s.label,l=s.note;a&&a.options.visible&&(a.alignToClipBox&&a.alignToClipBox(e),a.options.noclip=!0),l&&l.options.visible&&(l.options.noclip=!0)}}},e.prototype.destroy=function(){t.prototype.destroy.call(this),delete this.parent},e}(Yt);Ai.prototype.isStackRoot=!0;var Mi=Ai,Ti=function(t){function e(e){t.call(this,e),this.id="pane"+Ei++,this.createTitle(),this.content=new Yt,this.chartContainer=new Mi({},this),this.append(this.content),this.axes=[],this.charts=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createTitle=function(){var t=this.options.title;R(t)&&(t=j({},t,{align:t.position,position:v})),this.title=ue.buildTitle(t,this,e.prototype.options.title)},e.prototype.appendAxis=function(t){this.content.append(t),this.axes.push(t),t.pane=this},e.prototype.appendAxisAt=function(t,e){this.content.append(t),this.axes.splice(e,0,t),t.pane=this},e.prototype.appendChart=function(t){this.chartContainer.parent!==this.content&&this.content.append(this.chartContainer),this.charts.push(t),this.chartContainer.append(t),t.pane=this},e.prototype.empty=function(){var t=this.parent;if(t){for(var e=0;e<this.axes.length;e++)t.removeAxis(this.axes[e]);for(var r=0;r<this.charts.length;r++)t.removeChart(this.charts[r])}this.axes=[],this.charts=[],this.content.destroy(),this.content.children=[],this.chartContainer.children=[]},e.prototype.reflow=function(e){var r;ft(this.children)===this.content&&(r=this.children.pop()),t.prototype.reflow.call(this,e),r&&this.children.push(r),this.title&&(this.contentBox.y1+=this.title.box.height())},e.prototype.visualStyle=function(){var e=t.prototype.visualStyle.call(this);return e.zIndex=-10,e},e.prototype.renderComplete=function(){this.options.visible&&this.createGridLines()},e.prototype.stackRoot=function(){return this},e.prototype.clipRoot=function(){return this},e.prototype.createGridLines=function(){for(var t=this.axes,e=t.concat(this.parent.axes),r=[],o=[],i=0;i<t.length;i++)for(var n=t[i],s=n.options.vertical,a=s?r:o,l=0;l<e.length;l++)if(0===a.length){var p=e[l];s!==p.options.vertical&&it(a,n.createGridLines(p))}},e.prototype.refresh=function(){this.visual.clear(),this.content.parent=null,this.content.createGradient=this.createGradient.bind(this),this.content.renderVisual(),this.content.parent=this,this.title&&this.visual.append(this.title.visual),this.visual.append(this.content.visual),this.renderComplete(),this.notifyRender()},e.prototype.chartsBox=function(){for(var t=this.axes,e=t.length,r=new Ht,o=0;o<e;o++){var i=t[o],n=i.options.vertical?_:m,s=i.lineBox();r[n+1]=s[n+1],r[n+2]=s[n+2]}if(0===r.x2)for(var a=this.parent.axes,l=a.length,p=0;p<l;p++){var c=a[p];if(!c.options.vertical){var h=c.lineBox();r.x1=h.x1,r.x2=h.x2}}return r},e.prototype.clipBox=function(){return this.chartContainer.clipBox},e.prototype.notifyRender=function(){var t=this.getService();t&&t.notify("paneRender",{pane:new Hr(this),index:this.paneIndex,name:this.options.name})},e}(Zt),Ei=1;Ti.prototype.isStackRoot=!0,wt(Ti,{zIndex:-1,shrinkToFit:!0,title:{align:h},visible:!0});var ji=Ti;function Ri(t,e){null!==e&&t.push(e)}function Ii(t,e,r){var o=e.visible;if(st(o))return o;var i=t.pointVisibility;return i?i[r]:void 0}function Bi(t){for(var e=t.data,r=[],o=0,i=0,n=0;n<e.length;n++){var s=Yr.current.bindPoint(t,n),a=s.valueFields.value;A(a)&&(a=parseFloat(a)),P(a)?(s.visible=!1!==Ii(t,s.fields,n),s.value=Math.abs(a),r.push(s),s.visible&&(o+=s.value),0!==a&&i++):r.push(null)}return{total:o,points:r,count:i}}function Li(t,e){return t&&e?t.toLowerCase()===e.toLowerCase():t===e}function Di(t,e){for(var r=[],o=[].concat(e),i=0;i<t.length;i++){var n=t[i];Z(n.type,o)&&r.push(n)}return r}function zi(t,e,r){if(null===e)return e;var o="_date_"+t,i=e[o];return i||(i=$e(r,W(t)(e)),e[o]=i),i}function Vi(t,e){var r=t.type,o=e instanceof Date;return!r&&o||Li(r,p)}function Ni(t){return 1===t.length?t[0]:t}var Hi=/area/i;function Ui(t,e){var r=Yr.current.bindPoint(t,null,e).valueFields;for(var o in r)if(M(r[o]))return!0}function Fi(t){var e,r,o=t.start,i=t.dir,n=t.min,s=t.max,a=t.getter,l=t.hasItem,p=t.series,c=o;do{l(c+=i)&&(e=Ui(p,(r=a(c)).item))}while(n<=c&&c<=s&&!e);if(e)return r}function Gi(t,e,r,o,i){var n=e.min,s=e.max,a=n>0&&n<r,l=s+1<r;if(a||l){var p,c,h;if("interpolate"!==function(t){return t.missingValues?t.missingValues:Hi.test(t.type)||t.stack?to:"interpolate"}(t))a&&(p=o(n-1)),l&&(c=o(s+1));else a&&(p=Ui(t,(h=o(n-1)).item)?h:Fi({start:n,dir:-1,min:0,max:r-1,getter:o,hasItem:i,series:t})),l&&(c=Ui(t,(h=o(s+1)).item)?h:Fi({start:s,dir:1,min:0,max:r-1,getter:o,hasItem:i,series:t}));p&&(t._outOfRangeMinPoint=p),c&&(t._outOfRangeMaxPoint=c)}}var Wi=function(t){function e(e,r,o){t.call(this,r),this.initFields(e,r),this.series=e,this.initSeries(),this.charts=[],this.options.legend=this.options.legend||{},this.options.legend.items=[],this.axes=[],this.crosshairs=[],this.chartService=o,this.originalOptions=r,this.createPanes(),this.render(),this.createCrosshairs()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){},e.prototype.initSeries=function(){for(var t=this.series,e=0;e<t.length;e++)t[e].index=e},e.prototype.createPanes=function(){for(var t=this.options.title||{},e=this.options.paneDefaults,r=this.options.panes||[],o=Math.max(r.length,1),i=[],n=j({title:{color:t.color}},e),s=0;s<o;s++){var a=j({},n,r[s]);A(a.title)&&(a.title=j({text:a.title},n.title));var l=new ji(a);l.paneIndex=s,i.push(l),this.append(l)}this.panes=i},e.prototype.crosshairOptions=function(t){return t.options.crosshair},e.prototype.createCrosshairs=function(t){void 0===t&&(t=this.panes);for(var e=0;e<t.length;e++)for(var r=t[e],o=0;o<r.axes.length;o++){var i=r.axes[o],n=this.crosshairOptions(i);if(n&&n.visible){var s=new Pi(this.chartService,i,n);this.crosshairs.push(s),r.content.append(s)}}},e.prototype.removeCrosshairs=function(t){for(var e=this.crosshairs,r=t.axes,o=e.length-1;o>=0;o--)for(var i=0;i<r.length;i++)if(e[o].axis===r[i]){e.splice(o,1);break}},e.prototype.hideCrosshairs=function(){for(var t=this.crosshairs,e=0;e<t.length;e++)t[e].hide()},e.prototype.findPane=function(t){for(var e,r=this.panes,o=0;o<r.length;o++)if(r[o].options.name===t){e=r[o];break}return e||r[0]},e.prototype.findPointPane=function(t){for(var e,r=this.panes,o=0;o<r.length;o++)if(r[o].box.containsPoint(t)){e=r[o];break}return e},e.prototype.appendAxis=function(t){this.findPane(t.options.pane).appendAxis(t),this.axes.push(t),t.plotArea=this},e.prototype.removeAxis=function(t){for(var e=[],r=0;r<this.axes.length;r++){var o=this.axes[r];t!==o?e.push(o):o.destroy()}this.axes=e},e.prototype.appendChart=function(t,e){this.charts.push(t),e?e.appendChart(t):this.append(t)},e.prototype.removeChart=function(t){for(var e=[],r=0;r<this.charts.length;r++){var o=this.charts[r];o!==t?e.push(o):o.destroy()}this.charts=e},e.prototype.addToLegend=function(t){for(var e=t.length,r=this.options.legend,o=r.labels||{},i=r.inactiveItems||{},n=i.labels||{},s=[],a=0;a<e;a++){var l=t[a],p=!1!==l.visible;if(!1!==l.visibleInLegend){var c=l.name,h=p?U(o):U(n)||U(o);h&&(c=h({text:pi(c)?c:"",series:l}));var u=l._defaults,f=l.color;T(f)&&u&&(f=u.color);var d=void 0,v=void 0;p?(d={},v=f):(d={color:n.color,font:n.font},v=i.markers.color),pi(c)&&""!==c&&s.push({text:c,labels:d,markerColor:v,series:l,active:p})}}it(r.items,s)},e.prototype.groupAxes=function(t){for(var e=[],r=[],o=0;o<t.length;o++)for(var i=t[o].axes,n=0;n<i.length;n++){var s=i[n];s.options.vertical?r.push(s):e.push(s)}return{x:e,y:r,any:e.concat(r)}},e.prototype.groupSeriesByPane=function(){for(var t=this.series,e={},r=0;r<t.length;r++){var o=t[r],i=this.seriesPaneName(o);e[i]?e[i].push(o):e[i]=[o]}return e},e.prototype.filterVisibleSeries=function(t){for(var e=[],r=0;r<t.length;r++){var o=t[r];!1!==o.visible&&e.push(o)}return e},e.prototype.reflow=function(t){var e=this.options.plotArea,r=this.panes,o=z(e.margin);this.box=t.clone().unpad(o),this.reflowPanes(),this.detachLabels(),this.reflowAxes(r),this.reflowCharts(r)},e.prototype.redraw=function(t){var e=[].concat(t);this.initSeries();var r=this.getRoot();r&&r.cleanGradients();for(var o=0;o<e.length;o++)this.removeCrosshairs(e[o]),e[o].empty();this.render(e),this.detachLabels(),this.reflowAxes(this.panes),this.reflowCharts(e),this.createCrosshairs(e);for(var i=0;i<e.length;i++)e[i].refresh()},e.prototype.axisCrossingValues=function(t,e){for(var r=t.options,o=[].concat(r.axisCrossingValues||r.axisCrossingValue),i=e.length-o.length,n=o[0]||0,s=0;s<i;s++)o.push(n);return o},e.prototype.alignAxisTo=function(t,e,r,o){var i=t.getSlot(r,r,!0),n=t.options.reverse?2:1,s=e.getSlot(o,o,!0),a=e.options.reverse?2:1,l=t.box.translate(s[m+a]-i[m+n],s[_+a]-i[_+n]);t.pane!==e.pane&&l.translate(0,t.pane.box.y1-e.pane.box.y1),t.reflow(l)},e.prototype.alignAxes=function(t,e){for(var r=t[0],o=e[0],i=this.axisCrossingValues(r,e),n=this.axisCrossingValues(o,t),a={},l={},p={},c={},u=0;u<e.length;u++){var f=e[u],y=f.pane,g=y.id,m=!1!==f.options.visible,_=Yi(t,y)||r,b=i;_!==r&&(b=this.axisCrossingValues(_,e)),this.alignAxisTo(f,_,n[u],b[u]),f.options._overlap||(gt(f.lineBox().x1)===gt(_.lineBox().x1)&&(a[g]&&f.reflow(f.box.alignTo(a[g].box,h).translate(-f.options.margin,0)),m&&(a[g]=f)),gt(f.lineBox().x2)===gt(_.lineBox().x2)&&(f._mirrored||(f.options.labels.mirror=!f.options.labels.mirror,f._mirrored=!0),this.alignAxisTo(f,_,n[u],b[u]),l[g]&&f.reflow(f.box.alignTo(l[g].box,d).translate(f.options.margin,0)),m&&(l[g]=f)),0!==u&&o.pane===f.pane&&(f.alignTo(o),f.reflow(f.box)))}for(var x=0;x<t.length;x++){var w=t[x],C=w.pane,O=C.id,k=!1!==w.options.visible,S=Yi(e,C)||o,P=n;S!==o&&(P=this.axisCrossingValues(S,t)),this.alignAxisTo(w,S,i[x],P[x]),w.options._overlap||(gt(w.lineBox().y1)===gt(S.lineBox().y1)&&(w._mirrored||(w.options.labels.mirror=!w.options.labels.mirror,w._mirrored=!0),this.alignAxisTo(w,S,i[x],P[x]),p[O]&&w.reflow(w.box.alignTo(p[O].box,v).translate(0,-w.options.margin)),k&&(p[O]=w)),gt(w.lineBox().y2,3)===gt(S.lineBox().y2,3)&&(c[O]&&w.reflow(w.box.alignTo(c[O].box,s).translate(0,w.options.margin)),k&&(c[O]=w)),0!==x&&(w.alignTo(r),w.reflow(w.box)))}},e.prototype.shrinkAxisWidth=function(t){for(var e=this.groupAxes(t).any,r=Xi(e),o=0,i=0;i<t.length;i++){var n=t[i];n.axes.length>0&&(o=Math.max(o,r.width()-n.contentBox.width()))}if(0!==o)for(var s=0;s<e.length;s++){var a=e[s];a.options.vertical||a.reflow(a.box.shrink(o,0))}},e.prototype.shrinkAxisHeight=function(t){for(var e,r=0;r<t.length;r++){var o=t[r],i=o.axes,n=Math.max(0,Xi(i).height()-o.contentBox.height());if(0!==n){for(var s=0;s<i.length;s++){var a=i[s];a.options.vertical&&a.reflow(a.box.shrink(0,n))}e=!0}}return e},e.prototype.fitAxes=function(t){for(var e=this.groupAxes(t).any,r=0,o=0;o<t.length;o++){var i=t[o],n=i.axes,s=i.contentBox;if(n.length>0){var a=Xi(n),l=Math.max(s.y1-a.y1,s.y2-a.y2);r=Math.max(r,s.x1-a.x1);for(var p=0;p<n.length;p++){var c=n[p];c.reflow(c.box.translate(0,l))}}}for(var h=0;h<e.length;h++){var u=e[h];u.reflow(u.box.translate(r,0))}},e.prototype.reflowAxes=function(t){for(var e=this.groupAxes(t),r=0;r<t.length;r++)this.reflowPaneAxes(t[r]);e.x.length>0&&e.y.length>0&&(this.alignAxes(e.x,e.y),this.shrinkAxisWidth(t),this.autoRotateAxisLabels(e),this.alignAxes(e.x,e.y),this.shrinkAxisWidth(t)&&this.alignAxes(e.x,e.y),this.shrinkAxisHeight(t),this.alignAxes(e.x,e.y),this.shrinkAxisHeight(t)&&this.alignAxes(e.x,e.y),this.fitAxes(t))},e.prototype.autoRotateAxisLabels=function(t){for(var e,r=this.panes,o=qi(r),i=0;i<o.length;i++){o[i].autoRotateLabels()&&(e=!0)}if(e){for(var n=0;n<r.length;n++)this.reflowPaneAxes(r[n]);t.x.length>0&&t.y.length>0&&(this.alignAxes(t.x,t.y),this.shrinkAxisWidth(r))}},e.prototype.reflowPaneAxes=function(t){var e=t.axes,r=e.length;if(r>0)for(var o=0;o<r;o++)e[o].reflow(t.contentBox)},e.prototype.reflowCharts=function(t){for(var e=this.charts,r=e.length,o=this.box,i=0;i<r;i++){var n=e[i].pane;n&&!Z(n,t)||e[i].reflow(o)}},e.prototype.reflowPanes=function(){for(var t=this.box,e=this.panes,r=e.length,o=t.height(),i=0,n=t.y1,s=0;s<r;s++){var a=e[s],l=a.options.height;if(a.options.width=t.width(),a.options.height){if(l.indexOf&&l.indexOf("%")){var p=parseInt(l,10)/100;a.options.height=p*t.height()}a.reflow(t.clone()),o-=a.options.height}else i++}for(var c=0;c<r;c++){var h=e[c];h.options.height||(h.options.height=o/i)}for(var u=0;u<r;u++){var f=e[u],d=t.clone().move(t.x1,n);f.reflow(d),n+=f.options.height}},e.prototype.backgroundBox=function(){for(var t,e=this.axes,r=e.length,o=0;o<r;o++)for(var i=e[o],n=0;n<r;n++){var s=e[n];if(i.options.vertical!==s.options.vertical){var a=i.lineBox().clone().wrap(s.lineBox());t=t?t.wrap(a):a}}return t||this.box},e.prototype.chartsBoxes=function(){for(var t=this.panes,e=[],r=0;r<t.length;r++)e.push(t[r].chartsBox());return e},e.prototype.addBackgroundPaths=function(t){for(var e=this.chartsBoxes(),r=0;r<e.length;r++)t.paths.push(O.drawing.Path.fromRect(e[r].toRect()))},e.prototype.backgroundContainsPoint=function(t){for(var e=this.chartsBoxes(),r=0;r<e.length;r++)if(e[r].containsPoint(t))return!0},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e,r=this.options.plotArea,o=r.opacity,i=r.background,n=r.border;void 0===n&&(n={}),""!==(e=i)&&null!==e&&"none"!==e&&"transparent"!==e&&st(e)||(i=g,o=0);var s=this._bgVisual=new O.drawing.MultiPath({fill:{color:i,opacity:o},stroke:{color:n.width?n.color:"",width:n.width,dashType:n.dashType},zIndex:-1});this.addBackgroundPaths(s),this.appendVisual(s)},e.prototype.pointsByCategoryIndex=function(t){var e=this.charts,r=[];if(null!==t)for(var o=0;o<e.length;o++){if("_navigator"!==e[o].pane.options.name){var i=e[o].categoryPoints[t];if(i&&i.length)for(var n=0;n<i.length;n++){var s=i[n];s&&st(s.value)&&null!==s.value&&r.push(s)}}}return r},e.prototype.pointsBySeriesIndex=function(t){return this.filterPoints((function(e){return e.series.index===t}))},e.prototype.pointsBySeriesName=function(t){return this.filterPoints((function(e){return e.series.name===t}))},e.prototype.filterPoints=function(t){for(var e=this.charts,r=[],o=0;o<e.length;o++)for(var i=e[o].points,n=0;n<i.length;n++){var s=i[n];s&&!1!==s.visible&&t(s)&&r.push(s)}return r},e.prototype.findPoint=function(t){for(var e=this.charts,r=0;r<e.length;r++)for(var o=e[r].points,i=0;i<o.length;i++){var n=o[i];if(n&&!1!==n.visible&&t(n))return n}},e.prototype.paneByPoint=function(t){for(var e=this.panes,r=0;r<e.length;r++){var o=e[r];if(o.box.containsPoint(t))return o}},e.prototype.detachLabels=function(){var t=this.groupAxes(this.panes),e=t.x,r=t.y;this.detachAxisGroupLabels(r,e),this.detachAxisGroupLabels(e,r)},e.prototype.detachAxisGroupLabels=function(t,e){for(var r=0,o=0;o<t.length;o++){var i=t[o],n=i.pane,s=Yi(e,n)||e[0],a=o+r,l=this.createLabelAxis(i,a,s);if(l){r++;var p=n.axes.indexOf(i)+r;n.appendAxisAt(l,p)}}},e.prototype.createLabelAxis=function(t,e,r){var o=t.options.labels,i=o.position,n="end"!==i&&"start"!==i,s=o.visible;if(n||!1===s)return null;var a=this.groupAxes(this.panes),l=r.options.vertical?a.x:a.y,p=this.axisCrossingValues(r,l),c="end"===i,h=r.range(),u=c?h.max:h.min;if(dt(p[e],h.min,h.max)-u==0)return null;p.splice(e+1,0,u),r.options.axisCrossingValues=p;var f=t.clone();return t.clear(),f.options.name=void 0,f.options.line.visible=!1,f.options.crosshair=void 0,f.options.notes=void 0,f.options.plotBands=void 0,f},e}(Yt);function Ki(t){return!t.pane.axes.some((function(e){return e.options.vertical===t.options.vertical&&e!==t&&!1!==e.options.visible}))}function Xi(t){for(var e,r=t.length,o=0;o<r;o++){var i=t[o],n=!1!==i.options.visible;if(n||Ki(i)){var s=n?i.contentBox():i.lineBox();e?e.wrap(s):e=s.clone()}}return e||new Ht}function Yi(t,e){for(var r=0;r<t.length;r++){var o=t[r];if(o&&o.pane===e)return o}}var qi=function(t){return t.reduce((function(t,e){return t.concat(e.axes)}),[])};wt(Wi,{series:[],plotArea:{margin:{}},background:"",border:{color:n,width:0},paneDefaults:{title:{}},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});var Zi=Wi,Qi={hover:function(t,e){this._dispatchEvent(t,e,"plotAreaHover")},click:function(t,e){this._dispatchEvent(t,e,"plotAreaClick")}};function $i(t,e,r){var o=e,i=t;if(t.indexOf(".")>-1){for(var n=t.split(".");n.length>1;)i=n.shift(),st(o[i])||(o[i]={}),o=o[i];i=n.shift()}o[i]=r}var Ji=function(t){function e(e,r,o){t.call(this);var i=r.canonicalFields(e),n=r.valueFields(e),s=r.sourceFields(e,i),a=this._seriesFields=[],l=o.query(e.type),p=e.aggregate||l;this._series=e,this._binder=r;for(var c=0;c<i.length;c++){var h=i[c],u=void 0;if(R(p))u=p[h];else{if(0!==c&&!Z(h,n))break;u=p}u&&a.push({canonicalName:h,name:s[c],transform:T(u)?u:Wr[u]})}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.aggregatePoints=function(t,e){var r=this._series,o=this._seriesFields,i=this._bindPoints(t||[]),n=i.dataItems[0],s={};if(n&&!P(n)&&!b(n)){var a=function(){};a.prototype=n,s=new a}for(var l=0;l<o.length;l++){var p=o[l],c=this._bindField(i.values,p.canonicalName),h=p.transform(c,r,i.dataItems,e);if(!(null===h||!R(h)||st(h.length)||h instanceof Date)){s=h;break}st(h)&&$i(p.name,s,h)}return s},e.prototype._bindPoints=function(t){for(var e=this._binder,r=this._series,o=[],i=[],n=0;n<t.length;n++){var s=t[n];o.push(e.bindPoint(r,s)),i.push(r.data[s])}return{values:o,dataItems:i}},e.prototype._bindField=function(t,e){for(var r=[],o=t.length,i=0;i<o;i++){var n=t[i],s=n.valueFields,a=void 0;a=st(s[e])?s[e]:n.fields[e],r.push(a)}return r},e}(O.Class),tn=function(t){function e(){t.call(this),this._defaults={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e){for(var r=0;r<t.length;r++)this._defaults[t[r]]=e},e.prototype.query=function(t){return this._defaults[t]},e}(O.Class);tn.current=new tn;var en=tn,rn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createLabel=function(){var t=this.options.labels,e=j({},t,t.from),r=j({},t,t.to);e.visible&&(this.labelFrom=this._createLabel(e),this.append(this.labelFrom)),r.visible&&(this.labelTo=this._createLabel(r),this.append(this.labelTo))},e.prototype._createLabel=function(t){var e,r=U(t),o=this.pointData();return e=r?r(o):this.formatValue(t.format),new Ho(e,j({vertical:this.options.vertical},t),o)},e.prototype.reflow=function(t){this.render();var e=this.labelFrom,r=this.labelTo,o=this.value;this.box=t,e&&(e.options.aboveAxis=o.from>o.to,e.reflow(t)),r&&(r.options.aboveAxis=o.to>o.from,r.reflow(t)),this.note&&this.note.reflow(t)},e}(Go);rn.prototype.defaults=j({},rn.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});var on=rn,nn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return on},e.prototype.pointValue=function(t){return t.valueFields},e.prototype.formatPointValue=function(t,e){return null===t.value.from&&null===t.value.to?"":this.chartService.format.auto(e,t.value.from,t.value.to)},e.prototype.plotRange=function(t){return t?[t.value.from,t.value.to]:0},e.prototype.updateRange=function(t,e){var r=e.series.axis,o=t.from,i=t.to,n=this.valueAxisRanges[r];null!==t&&P(o)&&P(i)&&((n=this.valueAxisRanges[r]=n||{min:u,max:f}).min=Math.min(n.min,o),n.max=Math.max(n.max,o),n.min=Math.min(n.min,i),n.max=Math.max(n.max,i))},e.prototype.aboveAxis=function(t){var e=t.value;return e.from<e.to},e}($o);nn.prototype.plotLimits=vo.prototype.plotLimits;var sn=nn,an=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.aliasFor=function(){return this.parent},e}(_o),ln=function(t){function e(e,r){t.call(this),this.value=e,this.options=r,this.aboveAxis=_t(this.options.aboveAxis,!0),this.tooltipTracking=!0,this.initLabelsFormat()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){if(!this._rendered){this._rendered=!0;var t=this.options,e=t.markers,r=t.labels,o=this.value,i=this.fromPoint=new an(o,j({},this.options,{labels:r.from,markers:e.from})),n=this.toPoint=new an(o,j({},this.options,{labels:r.to,markers:e.to}));this.copyFields(i),this.copyFields(n),this.append(i),this.append(n)}},e.prototype.reflow=function(t){this.render();var e=t.from,r=t.to;this.positionLabels(e,r),this.fromPoint.reflow(e),this.toPoint.reflow(r),this.box=this.fromPoint.markerBox().clone().wrap(this.toPoint.markerBox())},e.prototype.createHighlight=function(){var t=new O.drawing.Group;return t.append(this.fromPoint.createHighlight()),t.append(this.toPoint.createHighlight()),t},e.prototype.highlightVisual=function(){return this.visual},e.prototype.highlightVisualArgs=function(){return{options:this.options,from:this.fromPoint.highlightVisualArgs(),to:this.toPoint.highlightVisualArgs()}},e.prototype.tooltipAnchor=function(){var t=this.owner.pane.clipBox();if(!t||t.overlaps(this.box)){var e,r,o,i=this.box,n=i.center();return this.options.vertical?(e=n.x,r=i.y1-5,o=s):(e=i.x2+5,r=n.y,o=a),{point:new Vt(e,r),align:{horizontal:"left",vertical:o}}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.unclipElements=function(){this.fromPoint.unclipElements(),this.toPoint.unclipElements()},e.prototype.initLabelsFormat=function(){var t=this.options.labels;t.format||(t.from&&t.from.format||(t.from=Object.assign({},t.from,{format:"{0}"})),t.to&&t.to.format||(t.to=Object.assign({},t.to,{format:"{1}"})))},e.prototype.positionLabels=function(t,e){var r,o,i=this.options,n=i.labels,s=i.vertical;"auto"===n.position&&(s?e.y1<=t.y1?(o="above",r="below"):(o="below",r="above"):e.x1<=t.x1?(o=h,r=d):(o=d,r=h),n.from&&n.from.position||(this.fromPoint.options.labels.position=r),n.to&&n.to.position||(this.toPoint.options.labels.position=o))},e.prototype.copyFields=function(t){t.dataItem=this.dataItem,t.category=this.category,t.series=this.series,t.color=this.color,t.owner=this.owner},e}(Yt);j(ln.prototype,yo),j(ln.prototype,go),ln.prototype.defaults={markers:{visible:!1,background:g,size:8,type:l,border:{width:2},opacity:1},labels:{visible:!1,margin:z(3),padding:z(4),animation:{type:"fadeIn",delay:600},position:"auto"},notes:{label:{}},highlight:{markers:{border:{color:g,width:2}},zIndex:100},tooltip:{format:"{0} - {1}"}};var pn=ln,cn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.toGeometryPoints(this.toPoints()))},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.toGeometryPoints(this.fromPoints().reverse()))),t},e.prototype.createStroke=function(t){var e=new O.drawing.Path(t),r=new O.drawing.Path(t);e.segments.push.apply(e.segments,this.strokeSegments()),r.segments.push.apply(r.segments,this.stackSegments()),this.visual.append(e),this.visual.append(r)},e.prototype.hasStackSegment=function(){return!0},e.prototype.fromPoints=function(){return this.linePoints.map((function(t){return t.fromPoint}))},e.prototype.toPoints=function(){return this.linePoints.map((function(t){return t.toPoint}))},e}(Io),hn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.createCurveSegments(this.toPoints())},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.createCurveSegments(this.fromPoints().reverse())),t},e.prototype.createCurveSegments=function(t){return(new Dr).process(this.toGeometryPoints(t))},e}(cn),un=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.calculateStepPoints(this.toPoints()))},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.calculateStepPoints(this.fromPoints()))).reverse(),t},e}(cn);j(un.prototype,Co);var fn=un,dn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.pointType=function(){return pn},e.prototype.createPoint=function(t,e){var r=e.categoryIx,o=e.category,i=e.series,n=e.seriesIx,s=t.valueFields;if(!pi(s.from)&&!pi(s.to)){if(this.seriesMissingValues(i)!==to)return null;s={from:0,to:0}}var a=this.pointOptions(i,n);a=this.evalPointOptions(a,s,o,r,i,n);var l=t.fields.color||i.color;T(i.color)&&(l=a.color);var p=new pn(s,a);return p.color=l,this.append(p),p},e.prototype.createSegment=function(t,e,r){var o=(e.line||{}).style;return new("smooth"===o?hn:"step"===o?fn:cn)(t,e,r)},e.prototype.plotRange=function(t,e){return t?[t.value.from,t.value.to]:[e,e]},e.prototype.valueSlot=function(t,e){var r=t.getSlot(e[0],e[0],!this.options.clip),o=t.getSlot(e[1],e[1],!this.options.clip);if(r&&o)return{from:r,to:o}},e.prototype.pointSlot=function(t,e){var r,o,i=e.from,n=e.to;return this.options.invertAxes?(r=new Ht(i.x1,t.y1,i.x2,t.y2),o=new Ht(n.x1,t.y1,n.x2,t.y2)):(r=new Ht(t.x1,i.y1,t.x2,i.y2),o=new Ht(t.x1,n.y1,t.x2,n.y2)),{from:r,to:o}},e.prototype.addValue=function(e,r){var o=e.valueFields;P(o.from)||(o.from=o.to),P(o.to)||(o.to=o.from),t.prototype.addValue.call(this,e,r)},e.prototype.updateRange=function(t,e){if(null!==t&&P(t.from)&&P(t.to)){var r=e.series.axis,o=this.valueAxisRanges[r]=this.valueAxisRanges[r]||{min:u,max:f},i=t.from,n=t.to;o.min=Math.min(o.min,i,n),o.max=Math.max(o.max,i,n)}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.from,r.to)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],r=0;r<t.length;r++){var o=t[r];o&&(e.push((o.fromPoint||{}).marker),e.push((o.toPoint||{}).marker))}return e.concat(this._segments)},e}(vo);j(dn.prototype,Po,Eo);var vn=dn,yn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,r=this.value,o=this.owner.seriesValueAxis(e),i=[],n=[],s=[],a=o.getSlot(r.low,r.high),l=o.getSlot(r.open,r.open),p=o.getSlot(r.close,r.close);l.x1=p.x1=a.x1=t.x1,l.x2=p.x2=a.x2=t.x2;var c=a.center().x;i.push([l.x1,l.y1]),i.push([c,l.y1]),n.push([c,p.y1]),n.push([p.x2,p.y1]),s.push([c,a.y1]),s.push([c,a.y2]),this.lines=[i,n,s],this.box=a.clone().wrap(l.clone().wrap(p)),this.reflowNote()},e.prototype.createBody=function(){},e}(ti),gn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return yn},e}(oi),mn=function(t){function e(e,r,o){t.call(this),this.from=e,this.to=r,this.series=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.linePoints=function(){var t=this.from,e=this.from.box,r=this.to.box,o=[];if(t.isVertical){var i=t.aboveAxis?e.y1:e.y2;o.push([e.x1,i],[r.x2,i])}else{var n=t.aboveAxis?e.x2:e.x1;o.push([n,e.y1],[n,r.y2])}return o},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.series.line||{},r=O.drawing.Path.fromPoints(this.linePoints(),{stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType}});k(r),this.visual.append(r)},e}(Yt);wt(mn,{animation:{type:"fadeIn",delay:600}});var _n=mn,bn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.createSegments()},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,r=uo(e),o=!this.options.invertAxes,i=0;i<e.length;i++)for(var n=e[i],s=0,a=0,l=0;l<r;l++){var p=Yr.current.bindPoint(n,l),c=p.valueFields.value,h=p.fields.summary,u=s,f=void 0;h?"total"===h.toLowerCase()?(p.valueFields.value=s,u=0,f=s):(p.valueFields.value=a,f=u-a,a=0):P(c)&&(a+=c,f=s+=c),t(p,{category:this.categoryAxis.categoryAt(l),categoryIx:l,series:n,seriesIx:i,total:s,runningTotal:a,from:u,to:f,isVertical:o})}},e.prototype.updateRange=function(e,r){t.prototype.updateRange.call(this,{value:r.to},r)},e.prototype.aboveAxis=function(t){return t.value>=0},e.prototype.plotRange=function(t){return[t.from,t.to]},e.prototype.createSegments=function(){for(var t=this.options.series,e=this.seriesPoints,r=this.segments=[],o=0;o<t.length;o++){var i=t[o],n=e[o];if(n)for(var s=void 0,a=0;a<n.length;a++){var l=n[a];if(l&&s){var p=new _n(s,l,i);r.push(p),this.append(p)}s=l}}},e}($o),xn=["area","verticalArea","rangeArea","verticalRangeArea"],wn=[oo,no].concat(xn),Cn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(t){if(this.namedCategoryAxes={},this.namedValueAxes={},this.valueAxisRangeTracker=new Vo,t.length>0){this.invertAxes=Z(t[0].type,[eo,"bullet",no,"verticalArea","verticalRangeArea","rangeBar","horizontalWaterfall","verticalBoxPlot"]);for(var e=0;e<t.length;e++){var r=t[e].stack;if(r&&"100%"===r.type){this.stack100=!0;break}}}},e.prototype.render=function(t){void 0===t&&(t=this.panes),this.createCategoryAxes(t),this.aggregateCategories(t),this.createCategoryAxesLabels(t),this.createCharts(t),this.createValueAxes(t)},e.prototype.removeAxis=function(e){var r=e.options.name;t.prototype.removeAxis.call(this,e),e instanceof rr?delete this.namedCategoryAxes[r]:(this.valueAxisRangeTracker.reset(r),delete this.namedValueAxes[r]),e===this.categoryAxis&&delete this.categoryAxis,e===this.valueAxis&&delete this.valueAxis},e.prototype.createCharts=function(t){for(var e=this.groupSeriesByPane(),r=0;r<t.length;r++){var o=t[r],i=e[o.options.name||"default"]||[];this.addToLegend(i);var n=this.filterVisibleSeries(i);if(n)for(var s=this.groupSeriesByCategoryAxis(n),a=0;a<s.length;a++)this.createChartGroup(s[a],o)}},e.prototype.createChartGroup=function(t,e){this.createAreaChart(Di(t,["area","verticalArea"]),e),this.createRangeAreaChart(Di(t,["rangeArea","verticalRangeArea"]),e),this.createBarChart(Di(t,[ro,eo]),e),this.createRangeBarChart(Di(t,["rangeColumn","rangeBar"]),e),this.createBulletChart(Di(t,["bullet","verticalBullet"]),e),this.createCandlestickChart(Di(t,"candlestick"),e),this.createBoxPlotChart(Di(t,["boxPlot","verticalBoxPlot"]),e),this.createOHLCChart(Di(t,"ohlc"),e),this.createWaterfallChart(Di(t,["waterfall","horizontalWaterfall"]),e),this.createLineChart(Di(t,[oo,no]),e)},e.prototype.aggregateCategories=function(t){var e=this.srcSeries||this.series,r=[];this._currentPointsCache={},this._seriesPointsCache=this._seriesPointsCache||{};for(var o=0;o<e.length;o++){var i=e[o],n=this.seriesCategoryAxis(i),s=this.findPane(n.options.pane);i=(Li(n.options.type,p)||i.categoryField)&&Z(s,t)?this.aggregateSeries(i,n):this.filterSeries(i,n),r.push(i)}this._seriesPointsCache=this._currentPointsCache,this._currentPointsCache=null,this.srcSeries=e,this.series=r},e.prototype.filterSeries=function(t,e){var r=(t.data||{}).length;if(e._seriesMax=Math.max(e._seriesMax||0,r),!P(e.options.min)&&!P(e.options.max))return t;var o=e.currentRangeIndices(),i=Z(t.type,wn),n=j({},t);return n.data=(n.data||[]).slice(o.min,o.max+1),i&&Gi(n,o,r,(function(r){return{item:t.data[r],category:e.categoryAt(r,!0),categoryIx:r-o.min}}),(function(e){return st(t.data[e])})),n},e.prototype.clearSeriesPointsCache=function(){this._seriesPointsCache={}},e.prototype.seriesSourcePoints=function(t,e){var r=t.index+";"+e.categoriesHash();if(this._seriesPointsCache[r])return this._currentPointsCache[r]=this._seriesPointsCache[r],this._seriesPointsCache[r];var o=e.options,i=o.srcCategories,n=Li(o.type,p),s=t.data,a=n?zi:Kr,l=[];n||e.mapCategories();for(var c=0;c<s.length;c++){var h=void 0;if(h=t.categoryField?a(t.categoryField,s[c],this.chartService.intl):i[c],st(h)&&null!==h){var u=e.totalIndex(h);l[u]=l[u]||{items:[],category:h},l[u].items.push(c)}}return this._currentPointsCache[r]=l,l},e.prototype.aggregateSeries=function(t,e){if(!t.data.length)return t;for(var r=this.seriesSourcePoints(t,e),o=j({},t),i=new Ji(j({},t),Yr.current,en.current),n=o.data=[],s=e.options.dataItems||[],a=e.currentRangeIndices(),l=function(t){var o=t-a.min,n=r[t];if(n||(n=r[t]={}),n.categoryIx=o,!n.item){var s=e.categoryAt(t,!0);n.category=s,n.item=i.aggregatePoints(n.items,s)}return n},p=a.min;p<=a.max;p++){var c=l(p);n[c.categoryIx]=c.item,c.items&&c.items.length&&(s[c.categoryIx]=c.item)}return Z(o.type,wn)&&Gi(o,a,e.totalCount(),l,(function(t){return r[t]})),e.options.dataItems=s,o},e.prototype.appendChart=function(e,r){var o=e.options.series,i=this.seriesCategoryAxis(o[0]),n=i.options.categories,s=Math.max(0,uo(o)-n.length);if(s>0)for(n=i.options.categories=i.options.categories.slice(0);s--;)n.push("");this.valueAxisRangeTracker.update(e.valueAxisRanges),t.prototype.appendChart.call(this,e,r)},e.prototype.seriesPaneName=function(t){var e=this.options,r=t.axis,o=K([].concat(e.valueAxis),(function(t){return t.name===r}))[0],i=((e.panes||[{}])[0]||{}).name||"default";return(o||{}).pane||i},e.prototype.seriesCategoryAxis=function(t){var e=t.categoryAxis,r=e?this.namedCategoryAxes[e]:this.categoryAxis;if(!r)throw new Error("Unable to locate category axis with name "+e);return r},e.prototype.stackableChartOptions=function(t,e){var r=t.stack;return{isStacked:r,isStacked100:r&&"100%"===r.type,clip:e.options.clip}},e.prototype.groupSeriesByCategoryAxis=function(t){for(var e=[],r={},o=0;o<t.length;o++){var i=t[o].categoryAxis||"$$default$$";r.hasOwnProperty(i)||(r[i]=!0,e.push(i))}for(var n=[],s=0;s<e.length;s++){var a=kn(t,e[s],s);0!==a.length&&n.push(a)}return n},e.prototype.createBarChart=function(t,e){if(0!==t.length){var r=t[0],o=new $o(this,Object.assign({series:t,invertAxes:this.invertAxes,gap:r.gap,spacing:r.spacing},this.stackableChartOptions(r,e)));this.appendChart(o,e)}},e.prototype.createRangeBarChart=function(t,e){if(0!==t.length){var r=t[0],o=new sn(this,{series:t,invertAxes:this.invertAxes,gap:r.gap,spacing:r.spacing});this.appendChart(o,e)}},e.prototype.createBulletChart=function(t,e){if(0!==t.length){var r=t[0],o=new xi(this,{series:t,invertAxes:this.invertAxes,gap:r.gap,spacing:r.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var r=t[0],o=new Ro(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(r,e)));this.appendChart(o,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var r=t[0],o=new zo(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(r,e)));this.appendChart(o,e)}},e.prototype.createRangeAreaChart=function(t,e){if(0!==t.length){var r=new vn(this,{invertAxes:this.invertAxes,series:t,clip:e.options.clip});this.appendChart(r,e)}},e.prototype.createOHLCChart=function(t,e){if(0!==t.length){var r=t[0],o=new gn(this,{invertAxes:this.invertAxes,gap:r.gap,series:t,spacing:r.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createCandlestickChart=function(t,e){if(0!==t.length){var r=t[0],o=new oi(this,{invertAxes:this.invertAxes,gap:r.gap,series:t,spacing:r.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createBoxPlotChart=function(t,e){if(0!==t.length){var r=t[0],o=new ai(this,{invertAxes:this.invertAxes,gap:r.gap,series:t,spacing:r.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createWaterfallChart=function(t,e){if(0!==t.length){var r=t[0],o=new bn(this,{series:t,invertAxes:this.invertAxes,gap:r.gap,spacing:r.spacing});this.appendChart(o,e)}},e.prototype.axisRequiresRounding=function(t,e){for(var r=Di(this.series,so),o=0;o<this.series.length;o++){var i=this.series[o];if(Z(i.type,xn)){var n=i.line;n&&"step"===n.style&&r.push(i)}}for(var s=0;s<r.length;s++){var a=r[s].categoryAxis||"";if(a===t||!a&&0===e)return!0}},e.prototype.aggregatedAxis=function(t,e){for(var r=this.series,o=0;o<r.length;o++){var i=r[o].categoryAxis||"";if((i===t||!i&&0===e)&&r[o].categoryField)return!0}},e.prototype.createCategoryAxesLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e]instanceof rr&&t[e].createLabels()},e.prototype.createCategoryAxes=function(t){for(var e=this.invertAxes,r=[].concat(this.options.categoryAxis),o=[],i=0;i<r.length;i++){var n=r[i];if(Z(this.findPane(n.pane),t)){var s=n.name,a=n.categories;void 0===a&&(a=[]),n=j({vertical:e,reverse:!e&&this.chartService.rtl,axisCrossingValue:e?u:0},n),st(n.justified)||(n.justified=this.isJustified()),this.axisRequiresRounding(s,i)&&(n.justified=!1);var l=void 0;if(l=Vi(n,a[0])?new hr(n,this.chartService):new rr(n,this.chartService),r[i].categories=l.options.srcCategories,s){if(this.namedCategoryAxes[s])throw new Error("Category axis with name "+s+" is already defined");this.namedCategoryAxes[s]=l}l.axisIndex=i,o.push(l),this.appendAxis(l)}}var p=this.categoryAxis||o[0];this.categoryAxis=p,e?this.axisY=p:this.axisX=p},e.prototype.isJustified=function(){for(var t=this.series,e=0;e<t.length;e++){if(!Z(t[e].type,xn))return!1}return!0},e.prototype.createValueAxes=function(t){var e=this.valueAxisRangeTracker,r=e.query(),o=[].concat(this.options.valueAxis),i=this.invertAxes,n={vertical:!i,reverse:i&&this.chartService.rtl},s=[];this.stack100&&(n.roundToMajorUnit=!1,n.labels={format:"P0"});for(var a=0;a<o.length;a++){var l=o[a];if(Z(this.findPane(l.pane),t)){var p=l.name,c=Li(l.type,"log")?{min:.1,max:1}:{min:0,max:1},h=e.query(p)||r||c;0===a&&h&&r&&(h.min=Math.min(h.min,r.min),h.max=Math.max(h.max,r.max));var u=new(Li(l.type,"log")?Or:mr)(h.min,h.max,j({},n,l),this.chartService);if(p){if(this.namedValueAxes[p])throw new Error("Value axis with name "+p+" is already defined");this.namedValueAxes[p]=u}u.axisIndex=a,s.push(u),this.appendAxis(u)}}var f=this.valueAxis||s[0];this.valueAxis=f,i?this.axisX=f:this.axisY=f},e.prototype._dispatchEvent=function(t,e,r){var o=t._eventCoordinates(e),i=new Vt(o.x,o.y),n=this.pointPane(i),s=[],a=[];if(n){for(var l=n.axes,p=0;p<l.length;p++){var c=l[p];c.getValue?Ri(a,c.getValue(i)):Ri(s,c.getCategory(i))}0===s.length&&Ri(s,this.categoryAxis.getCategory(i)),s.length>0&&a.length>0&&t.trigger(r,{element:ht(e),originalEvent:e,category:Ni(s),value:Ni(a)})}},e.prototype.pointPane=function(t){for(var e=this.panes,r=0;r<e.length;r++){var o=e[r];if(o.contentBox.containsPoint(t))return o}},e.prototype.updateAxisOptions=function(t,e){On(this.options,t,e),On(this.originalOptions,t,e)},e}(Zi);function On(t,e,r){j([].concat(e instanceof rr?t.categoryAxis:t.valueAxis)[e.axisIndex],r)}function kn(t,e,r){return K(t,(function(t){return 0===r&&!t.categoryAxis||t.categoryAxis===e}))}wt(Cn,{categoryAxis:{},valueAxis:{}}),j(Cn.prototype,Qi);var Sn=Cn;function Pn(){this._defaultPrevented=!0}var An=function(t){function e(){t.call(this),this._points=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this._points=[]},e.prototype.show=function(t,e){var r=[].concat(t);this.hide();for(var o=0;o<r.length;o++){var i=r[o];i&&i.toggleHighlight&&i.hasHighlight()&&(this.togglePointHighlight(i,!0,e),this._points.push(i))}},e.prototype.togglePointHighlight=function(t,e,r){var o=(t.options.highlight||{}).toggle;if(o){var i={category:t.category,series:t.series,dataItem:t.dataItem,value:t.value,stackValue:t.stackValue,preventDefault:Pn,visual:t.highlightVisual(),show:e};o(i),i._defaultPrevented||t.toggleHighlight(e,r)}else t.toggleHighlight(e,r)},e.prototype.hide=function(){for(var t=this._points;t.length;)this.togglePointHighlight(t.pop(),!1)},e.prototype.isHighlighted=function(t){for(var e=this._points,r=0;r<e.length;r++){if(t===e[r])return!0}return!1},e}(O.Class);function Mn(t,e){var r=(e||"").toLowerCase(),o=t.event;return"none"===r&&!(o.ctrlKey||o.shiftKey||o.altKey)||o[r+"Key"]}function Tn(t){for(var e={},r=0;r<t.length;r++){var o=t[r];o.axis.options.name&&(e[o.axis.options.name]={min:o.range.min,max:o.range.max})}return e}var En=function(t){function e(e,r){t.call(this),this.plotArea=e,this.options=j({},this.options,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.start=function(t){return this._active=Mn(t,this.options.key),this._active},e.prototype.move=function(t){if(this._active){var e=this.axisRanges=this._panAxes(t,m).concat(this._panAxes(t,_));if(e.length)return this.axisRanges=e,Tn(e)}},e.prototype.end=function(){var t=this._active;return this._active=!1,t},e.prototype.pan=function(){var t=this.plotArea,e=this.axisRanges;if(e.length){for(var r=0;r<e.length;r++){var o=e[r];t.updateAxisOptions(o.axis,o.range)}t.redraw(t.panes)}},e.prototype.destroy=function(){delete this.plotArea},e.prototype._panAxes=function(t,e){var r=this.plotArea,o=-t[e].delta,i=(this.options.lock||"").toLowerCase(),n=[];if(0!==o&&(i||"").toLowerCase()!==e)for(var s=r.axes,a=0;a<s.length;a++){var l=s[a];if(e===m&&!l.options.vertical||e===_&&l.options.vertical){var p=l.pan(o);p&&(p.limitRange=!0,n.push({axis:l,range:p}))}}return n},e}(O.Class);En.prototype.options={key:"none",lock:"none"};var jn=En,Rn=function(t){function e(e,r){t.call(this),this.chart=e,this.options=j({},this.options,r),this.createElement()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createElement=function(){var t=this._marquee=document.createElement("div");t.className="k-marquee";var e=document.createElement("div");e.className="k-marquee-color",t.appendChild(e)},e.prototype.removeElement=function(){this._marquee.parentNode&&this._marquee.parentNode.removeChild(this._marquee)},e.prototype.setStyles=function(t){D(this._marquee,t)},e.prototype.start=function(t){if(Mn(t,this.options.key)){var e=this.chart,r=e._eventCoordinates(t),o=this._zoomPane=e._plotArea.paneByPoint(r),i=o?o.chartsBox().clone():null;if(o&&i){var n=this._elementOffset();return i.translate(n.left,n.top),this._zoomPaneClipBox=i,document.body.appendChild(this._marquee),this.setStyles({left:t.pageX+1,top:t.pageY+1,width:0,height:0}),!0}}return!1},e.prototype._elementOffset=function(){var t=this.chart.element,e=D(t,["paddingLeft","paddingTop"]),r=e.paddingLeft,o=e.paddingTop,i=lt(t);return{left:r+i.left,top:o+i.top}},e.prototype.move=function(t){this._zoomPane&&this.setStyles(this._selectionPosition(t))},e.prototype.end=function(t){if(this._zoomPane){var e=this._elementOffset(),r=this._selectionPosition(t);r.left-=e.left,r.top-=e.top;var o={x:r.left,y:r.top},i={x:r.left+r.width,y:r.top+r.height};return this._updateAxisRanges(o,i),this.removeElement(),delete this._zoomPane,Tn(this.axisRanges)}},e.prototype.zoom=function(){var t=this.axisRanges;if(t&&t.length){for(var e=this.chart._plotArea,r=0;r<t.length;r++){var o=t[r];e.updateAxisOptions(o.axis,o.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){this.removeElement(),delete this._marquee,delete this.chart},e.prototype._updateAxisRanges=function(t,e){for(var r=(this.options.lock||"").toLowerCase(),o=[],i=this._zoomPane.axes,n=0;n<i.length;n++){var s=i[n],a=s.options.vertical;if((r!==m||a)&&(r!==_||!a)&&st(s.axisIndex)){var l=s.pointsRange(t,e);l&&o.push({axis:s,range:l})}}this.axisRanges=o},e.prototype._selectionPosition=function(t){var e=this._zoomPaneClipBox,r={x:t.x.startLocation,y:t.y.startLocation},o=t.x.location,i=t.y.location,n=(this.options.lock||"").toLowerCase(),s=Math.min(r.x,o),a=Math.min(r.y,i),l=Math.abs(r.x-o),p=Math.abs(r.y-i);return n===m&&(s=e.x1,l=e.width()),n===_&&(a=e.y1,p=e.height()),o>e.x2&&(l=e.x2-r.x),o<e.x1&&(l=r.x-e.x1),i>e.y2&&(p=e.y2-r.y),i<e.y1&&(p=r.y-e.y1),{left:Math.max(s,e.x1),top:Math.max(a,e.y1),width:l,height:p}},e}(O.Class);Rn.prototype.options={key:"shift",lock:"none"};var In=Rn,Bn=function(t){function e(e,r){t.call(this),this.chart=e,this.options=j({rate:.3},this.options,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.updateRanges=function(t,e){for(var r=(this.options.lock||"").toLowerCase(),o=[],i=this.chart._plotArea.axes,n=0;n<i.length;n++){var s=i[n],a=s.options.vertical;if((r!==m||a)&&(r!==_||!a)&&s.zoomRange){var l=dt(this.options.rate,.01,.9),p=s.zoomRange(-t*l,e);p&&o.push({axis:s,range:p})}}return this.axisRanges=o,Tn(o)},e.prototype.zoom=function(){var t=this.axisRanges,e=this.chart._plotArea;if(t&&t.length&&e.updateAxisOptions){for(var r=0;r<t.length;r++){var o=t[r];e.updateAxisOptions(o.axis,o.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){delete this.chart},e}(O.Class),Ln=function(t){function e(e,r){t.call(this,e),this.chartService=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.children,e=this.options,r=e.vertical;this.visual=new O.drawing.Layout(null,{spacing:r?0:e.spacing,lineSpacing:r?e.spacing:0,orientation:r?"vertical":"horizontal",reverse:e.rtl,alignItems:r?"start":"center"});for(var o=0;o<t.length;o++){var i=t[o];i.reflow(new Ht),i.renderVisual()}},e.prototype.reflow=function(t){this.visual.rect(t.toRect()),this.visual.reflow();var e=this.visual.clippedBBox();this.box=e?le(e):new Ht},e.prototype.renderVisual=function(){this.addVisual()},e.prototype.createVisual=function(){},e}(Yt),Dn=function(t){function e(e){t.call(this,e),this.createContainer(),e.rtl?(this.createLabel(),this.createMarker()):(this.createMarker(),this.createLabel())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createContainer=function(){this.container=new ie({vertical:!1,wrap:!1,align:a,spacing:this.options.spacing}),this.append(this.container)},e.prototype.createMarker=function(){this.container.append(new $t(this.markerOptions()))},e.prototype.markerOptions=function(){var t=this.options,e=t.markerColor;return j({},t.markers,{background:e,border:{color:e}})},e.prototype.createLabel=function(){var t=this.options,e=j({},t.labels);this.container.append(new ce(t.text,e))},e.prototype.renderComplete=function(){t.prototype.renderComplete.call(this);var e=this.options.cursor||{},r=this._itemOverlay=O.drawing.Path.fromRect(this.container.box.toRect(),{fill:{color:g,opacity:0},stroke:null,cursor:e.style||e});this.appendVisual(r)},e.prototype.click=function(t,e){var r=this.eventArgs(e);!t.trigger("legendItemClick",r)&&e&&"contextmenu"===e.type&&e.preventDefault()},e.prototype.over=function(t,e){var r=this.eventArgs(e);return t.trigger("legendItemHover",r)||t._legendItemHover(r.seriesIndex,r.pointIndex),!0},e.prototype.out=function(t,e){t._unsetActivePoint(),t.trigger("legendItemLeave",this.eventArgs(e))},e.prototype.eventArgs=function(t){var e=this.options;return{element:ht(t),text:e.text,series:e.series,seriesIndex:e.series.index,pointIndex:e.pointIndex}},e.prototype.renderVisual=function(){var e=this,r=this.options,o=r.visual;o?(this.visual=o({active:r.active,series:r.series,sender:this.getSender(),pointIndex:r.pointIndex,options:{markers:this.markerOptions(),labels:r.labels},createVisual:function(){e.createVisual(),e.renderChildren(),e.renderComplete();var t=e.visual;return delete e.visual,t}}),this.addVisual()):t.prototype.renderVisual.call(this)},e}(Zt),zn=function(t){function e(e,r){void 0===r&&(r={}),t.call(this,e),this.chartService=r,Z(this.options.position,[v,d,s,h,"custom"])||(this.options.position=d),this.createContainers(),this.createLegendTitle(e.title),this.createItems()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createContainers=function(){var t=this.options,e=t.position,r=t.align,o=e,i=a;"custom"===e?o=h:Z(e,[v,s])?(o="start"===r?h:"end"===r?d:a,i=e):r&&("start"===r?i=v:"end"===r&&(i=s)),this.container=new Zt({margin:t.margin,padding:t.padding,background:t.background,border:t.border,vAlign:i,align:o,zIndex:t.zIndex,shrinkToFit:!0}),this.hasTitle()?this.itemsContainer=new Zt({vAlign:i,align:o,zIndex:t.zIndex,shrinkToFit:!0}):this.itemsContainer=this.container,this.append(this.container)},e.prototype.createItems=function(){var t=this.getService(),e=this.options,r=this.isVertical(),o=new Ln({vertical:r,spacing:e.spacing,rtl:t.rtl},t),i=e.items;e.reverse&&(i=i.slice(0).reverse());for(var n=i.length,s=0;s<n;s++){var a=i[s];o.append(new Dn(j({},{markers:e.markers,labels:e.labels,rtl:t.rtl},e.item,a)))}o.render(),this.itemsContainer.append(o)},e.prototype.isVertical=function(){var t=this.options,e=t.orientation,r=t.position;return"custom"===r&&"horizontal"!==e||(st(e)?"horizontal"!==e:Z(r,[h,d]))},e.prototype.hasItems=function(){return this.container.children[0].children.length>0},e.prototype.reflow=function(t){var e=this.options,r=t.clone();this.hasItems()?("custom"===e.position?(this.containerCustomReflow(r),this.box=r):this.containerReflow(r),this.hasTitle()&&this.title.reflow(new Ht(this.container.box.x1,this.title.box.y1,this.container.box.x2,this.title.box.y2))):this.box=r},e.prototype.containerReflow=function(t){var e=this.options,r=this.container,o=e.position,i=e.width,n=e.height,a=o===v||o===s?m:_,l=this.isVertical(),p=t.clone(),c=t.clone();o!==h&&o!==d||(c.y1=p.y1=0),l&&n?(c.y2=c.y1+n,c.align(p,_,r.options.vAlign)):!l&&i&&(c.x2=c.x1+i,c.align(p,m,r.options.align)),r.reflow(c);var u=(c=r.box).clone();(e.offsetX||e.offsetY)&&(c.translate(e.offsetX,e.offsetY),r.reflow(c)),u[a+1]=t[a+1],u[a+2]=t[a+2],this.box=u},e.prototype.containerCustomReflow=function(t){var e=this.options,r=this.container,o=e.offsetX,i=e.offsetY,n=e.width,s=e.height,a=this.isVertical(),l=t.clone();a&&s?l.y2=l.y1+s:!a&&n&&(l.x2=l.x1+n),r.reflow(l),l=r.box,r.reflow(new Ht(o,i,o+l.width(),i+l.height()))},e.prototype.renderVisual=function(){this.hasItems()&&t.prototype.renderVisual.call(this)},e.prototype.createLegendTitle=function(t){var e=j({},{color:n,position:v,align:a},t),r=e.text;if(t&&!1!==t.visible){if(st(e)&&e.visible){var o=U(e);o?r=o({text:r}):e.format&&(r=this.chartService.format.auto(e.format,r))}this.title=new ce(r,e),this.createTitleLayout(),this.appendTitleLayoutContent()}},e.prototype.createTitleLayout=function(){this.layout=new ie({vertical:!0,wrap:!1}),this.container.append(this.layout)},e.prototype.hasTitle=function(){return Boolean(this.options.title&&!1!==this.options.title.visible)},e.prototype.appendTitleLayoutContent=function(){this.options.title.position===s?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))},e}(Yt);wt(zn,{position:d,items:[],offsetX:0,offsetY:0,margin:z(5),padding:z(5),border:{color:n,width:0},item:{cursor:"pointer",spacing:6},spacing:6,background:"",zIndex:1,markers:{border:{width:0},width:15,height:3,type:"rect",align:h,vAlign:a}});var Vn=zn,Nn=function(t){function e(){t.call(this),this._registry=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e){this._registry.push({type:t,seriesTypes:e})},e.prototype.create=function(t,e,r){for(var o,i=this._registry,n=i[0],s=0;s<i.length;s++){var a=i[s];if((o=Di(t,a.seriesTypes)).length>0){n=a;break}}return new n.type(o,e,r)},e}(O.Class);Nn.current=new Nn;var Hn=Nn;function Un(t){var e=document.createElement("div");return t&&(e.className=t),e}function Fn(t){for(var e=t;e&&!X(e,"k-handle");)e=e.parentNode;return e}var Gn=function(t){function e(e,r,o,i){t.call(this);var n=e.element;this.options=j({},this.options,o),this.chart=e,this.observer=i,this.chartElement=n,this.categoryAxis=r,this._dateAxis=this.categoryAxis instanceof hr,this.initOptions(),this.visible=this.options.visible&&n.offsetHeight,this.visible&&(this.createElements(),this.set(this._index(this.options.from),this._index(this.options.to)),this.bindEvents())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.onPane=function(t){return this.categoryAxis.pane===t},e.prototype.createElements=function(){var t=this.options,e=this.wrapper=Un("k-selector");D(e,{top:t.offset.top,left:t.offset.left,width:t.width,height:t.height,direction:"ltr"});var r=this.selection=Un("k-selection");this.leftMask=Un("k-mask"),this.rightMask=Un("k-mask"),e.appendChild(this.leftMask),e.appendChild(this.rightMask),e.appendChild(r),r.appendChild(Un("k-selection-bg"));var o=this.leftHandle=Un("k-handle k-left-handle"),i=this.rightHandle=Un("k-handle k-right-handle");o.appendChild(Un()),i.appendChild(Un()),r.appendChild(o),r.appendChild(i),this.chartElement.appendChild(e);var n=D(r,["borderLeftWidth","borderRightWidth","height"]),s=D(o,"height").height,a=D(i,"height").height;t.selection={border:{left:n.borderLeftWidth,right:n.borderRightWidth}},D(o,{top:(n.height-s)/2}),D(i,{top:(n.height-a)/2}),e.style.cssText=e.style.cssText},e.prototype.bindEvents=function(){var t;!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),nt(this.wrapper,((t={})[ao]=this._mousewheelHandler,t))),this._domEvents=Te.create(this.wrapper,{stopPropagation:!0,start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),press:this._press.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)})},e.prototype.initOptions=function(){var t=this.options,e=this.categoryAxis.pane.chartsBox(),r=this.chart.chartService.intl;this._dateAxis&&j(t,{min:$e(r,t.min),max:$e(r,t.max),from:$e(r,t.from),to:$e(r,t.to)});var o=D(this.chartElement,["paddingLeft","paddingTop"]),i=o.paddingLeft,n=o.paddingTop;this.options=j({},{width:e.width(),height:e.height()+.1,padding:{left:i,top:n},offset:{left:e.x1+i,top:e.y1+n},from:t.min,to:t.max},t)},e.prototype.destroy=function(){var t;this._domEvents&&(this._domEvents.destroy(),delete this._domEvents),clearTimeout(this._mwTimeout),this._state=null,this.wrapper&&(this._mousewheelHandler&&(mt(this.wrapper,((t={})[ao]=this._mousewheelHandler,t)),this._mousewheelHandler=null),this.chartElement.removeChild(this.wrapper),this.wrapper=null)},e.prototype._rangeEventArgs=function(t){return{axis:this.categoryAxis.options,from:this._value(t.from),to:this._value(t.to)}},e.prototype._start=function(t){var e=this.options,r=ht(t);if(!this._state&&r){this.chart._unsetActivePoint(),this._state={moveTarget:Fn(r)||r,startLocation:t.x?t.x.location:0,range:{from:this._index(e.from),to:this._index(e.to)}};var o=this._rangeEventArgs({from:this._index(e.from),to:this._index(e.to)});this.trigger("selectStart",o)&&(this._state=null)}},e.prototype._press=function(t){var e;(e=this._state?this._state.moveTarget:Fn(ht(t)))&&x(e,"k-handle-active")},e.prototype._move=function(t){if(this._state){var e=this._state,r=this.options,o=this.categoryAxis,i=e.range,n=e.moveTarget,s=o.options.reverse,a=this._index(r.from),l=this._index(r.to),p=this._index(r.min),c=this._index(r.max),h=e.startLocation-t.x.location,u=i.from,f=i.to,d=i.to-i.from,v=D(this.wrapper,"width").width/(o.categoriesCount()-1),y=Math.round(h/v)*(s?-1:1);if(n){var g=X(n,"k-left-handle"),m=X(n,"k-right-handle");X(n,"k-selection k-selection-bg")?(i.from=Math.min(Math.max(p,a-y),c-d),i.to=Math.min(i.from+d,c)):g&&!s||m&&s?(i.from=Math.min(Math.max(p,a-y),c-1),i.to=Math.max(i.from+1,i.to)):(g&&s||m&&!s)&&(i.to=Math.min(Math.max(p+1,l-y),c),i.from=Math.min(i.to-1,i.from)),i.from===u&&i.to===f||(this.move(i.from,i.to),this.trigger("select",this._rangeEventArgs(i)))}}},e.prototype._end=function(){if(this._state){var t=this._state.moveTarget;t&&C(t,"k-handle-active");var e=this._state.range;this.set(e.from,e.to),this.trigger("selectEnd",this._rangeEventArgs(e)),delete this._state}},e.prototype._tap=function(t){var e=this.options,r=this.categoryAxis,o=this.chart._eventCoordinates(t),i=r.pointCategoryIndex(new Vt(o.x,r.box.y1)),n=this._index(e.from),s=this._index(e.to),a=this._index(e.min),l=this._index(e.max),p=s-n,c=n+p/2,h={},u=3===t.event.which,f=Math.round(c-i);this._state||u||(this.chart._unsetActivePoint(),r.options.justified||f--,h.from=Math.min(Math.max(a,n-f),l-p),h.to=Math.min(h.from+p,l),this._start(t),this._state&&(this._state.range=h,this.trigger("select",this._rangeEventArgs(h)),this._end()))},e.prototype._mousewheel=function(t){var e=this,r=rt(t);if(this._start({target:this.selection}),this._state){var o=this._state.range;t.preventDefault(),t.stopPropagation(),Math.abs(r)>1&&(r*=3),this.options.mousewheel.reverse&&(r*=-1),this.expand(r)&&this.trigger("select",{axis:this.categoryAxis.options,delta:r,originalEvent:t,from:this._value(o.from),to:this._value(o.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._end()}),150)}},e.prototype._gesturestart=function(t){var e=this.options;this._state={range:{from:this._index(e.from),to:this._index(e.to)}};var r=this._rangeEventArgs(this._state.range);this.trigger("selectStart",r)?this._state=null:t.preventDefault()},e.prototype._gestureend=function(){this._state&&(this.trigger("selectEnd",this._rangeEventArgs(this._state.range)),delete this._state)},e.prototype._gesturechange=function(t){var e=this.chart,r=this._state,o=this.options,i=this.categoryAxis,n=r.range,s=e._toModelCoordinates(t.touches[0].x.location).x,a=e._toModelCoordinates(t.touches[1].x.location).x,l=Math.min(s,a),p=Math.max(s,a);t.preventDefault(),n.from=i.pointCategoryIndex(new Vt(l))||o.min,n.to=i.pointCategoryIndex(new Vt(p))||o.max,this.move(n.from,n.to),this.trigger("select",this._rangeEventArgs(n))},e.prototype._index=function(t){var e=t;return t instanceof Date&&(e=this.categoryAxis.categoryIndex(t)),e},e.prototype._value=function(t){var e=t;return this._dateAxis&&(e=this.categoryAxis.categoryAt(t))>this.options.max&&(e=this.options.max),e},e.prototype._slot=function(t){var e=this.categoryAxis,r=this._index(t);return e.getSlot(r,r,!0)},e.prototype.move=function(t,e){var r=this.options,o=this.categoryAxis.options.reverse,i=r.offset,n=r.padding,s=r.selection.border,a=o?e:t,l=o?t:e,p="x"+(o?2:1),c=this._slot(a),h=gt(c[p]-i.left+n.left);D(this.leftMask,{width:h}),D(this.selection,{left:h}),c=this._slot(l);var u=gt(r.width-(c[p]-i.left+n.left));D(this.rightMask,{width:u});var f=r.width-u;f!==r.width&&(f+=s.right),D(this.rightMask,{left:f}),D(this.selection,{width:Math.max(r.width-(h+u)-s.right,0)})},e.prototype.set=function(t,e){var r=this.options,o=this._index(r.min),i=this._index(r.max),n=dt(this._index(t),o,i),s=dt(this._index(e),n+1,i);r.visible&&this.move(n,s),r.from=this._value(n),r.to=this._value(s)},e.prototype.expand=function(t){var e=this.options,r=this._index(e.min),o=this._index(e.max),i=e.mousewheel.zoom,n=this._index(e.from),s=this._index(e.to),a={from:n,to:s},l=j({},a);if(this._state&&(a=this._state.range),i!==d&&(a.from=dt(dt(n-t,0,s-1),r,o)),i!==h&&(a.to=dt(dt(s+t,a.from+1,o),r,o)),a.from!==l.from||a.to!==l.to)return this.set(a.from,a.to),!0},e.prototype.zoom=function(t,e){var r=this.options,o=this._index(r.min),i=this._index(r.max),n=this._index(r.from),s=this._index(r.to),a={from:n,to:s},l=j({},a),p=this.categoryAxis.options.reverse,c=m+(p?"2":"1"),h=this.categoryAxis.lineBox(),u=Math.abs(h[c]-e.x),f=h.width(),d=gt(u/f,2),v=gt(d*t),y=gt((1-d)*t);if(this._state&&(a=this._state.range),a.from=dt(dt(n-v,0,s-1),o,i),a.to=dt(dt(s+y,a.from+1,i),o,i),a.from!==l.from||a.to!==l.to)return this.set(a.from,a.to),!0},e.prototype.trigger=function(t,e){return(this.observer||this.chart).trigger(t,e)},e}(O.Class);wt(Gn,{visible:!0,mousewheel:{zoom:"both"},min:f,max:u});var Wn=Gn,Kn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.show=function(e){if(e&&e.tooltipAnchor&&(!this._current||this._current!==e)){var r=j({},this.options,e.options.tooltip),o=e.tooltipAnchor();o?(this._current=e,t.prototype.show.call(this,{point:e,anchor:o},r,e)):this.hide()}},e.prototype.hide=function(){delete this._current,t.prototype.hide.call(this)},e}(Ci),Xn=function(t){function e(e,r){t.call(this,e.chartService,r),this.plotArea=e,this.formatService=e.chartService.format}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.showAt=function(t,e){var r=K(t,(function(t){var e=t.series.tooltip;return!(e&&!1===e.visible)}));if(r.length>0){var o=r[0],i=this.plotArea.categoryAxis.getSlot(o.categoryIx),n=e?this._slotAnchor(e,i):this._defaultAnchor(o,i);this.show({anchor:n,shared:!0,points:t,category:o.category,categoryText:this.formatService.auto(this.options.categoryFormat,o.category),series:this.plotArea.series},this.options)}},e.prototype._slotAnchor=function(t,e){return this.plotArea.categoryAxis.options.vertical||(t.x=e.center().x),{point:t,align:{horizontal:"left",vertical:"center"}}},e.prototype._defaultAnchor=function(t,e){var r=t.owner.pane.chartsBox(),o=this.plotArea.categoryAxis.options.vertical,i=r.center(),n=e.center();return{point:o?new Vt(i.x,n.y):new Vt(n.x,i.y),align:{horizontal:"center",vertical:"center"}}},e}(Ci);wt(Xn,{categoryFormat:"{0:d}"});var Yn=Xn,qn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.element,e=this.options;if(t.bbox()){this.origin=e.origin;var r=e.vertical?_:m,o=this.fromScale=new O.geometry.Point(1,1);o[r]=Jr,t.transform(O.geometry.transform().scale(o.x,o.y))}else this.abort()},e.prototype.step=function(t){var e=Q(this.fromScale.x,1,t),r=Q(this.fromScale.y,1,t);this.element.transform(O.geometry.transform().scale(e,r,this.origin))},e.prototype.abort=function(){t.prototype.abort.call(this),this.element.transform(null)},e}(O.drawing.Animation);wt(qn,{duration:600}),O.drawing.AnimationFactory.current.register(eo,qn);var Zn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.center=this.element.bbox().center();this.element.transform(O.geometry.transform().scale(Jr,Jr,t))},e.prototype.step=function(t){this.element.transform(O.geometry.transform().scale(t,t,this.center))},e}(O.drawing.Animation);wt(Zn,{easing:"easeOutElastic"}),O.drawing.AnimationFactory.current.register("bubble",Zn);var Qn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this.fadeTo=this.element.opacity(),this.element.opacity(0)},e.prototype.step=function(t){this.element.opacity(t*this.fadeTo)},e}(O.drawing.Animation);wt(Qn,{duration:200,easing:"linear"}),O.drawing.AnimationFactory.current.register("fadeIn",Qn);var $n=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this.element.transform(O.geometry.transform().scale(Jr,Jr,this.options.center))},e.prototype.step=function(t){this.element.transform(O.geometry.transform().scale(t,t,this.options.center))},e}(O.drawing.Animation);wt($n,{easing:"easeOutElastic",duration:600}),O.drawing.AnimationFactory.current.register(io,$n);var Jn=$n,ts=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.createSegment=function(t,e,r){return new("smooth"===e.style?So:xo)(t,e,r)},e.prototype.animationPoints=function(){return t.prototype.animationPoints.call(this).concat(this._segments)},e.prototype.createMissingValue=function(t,e){if(e===to){var r={x:t.x,y:t.y};return pi(r.x)||(r.x=0),pi(r.y)||(r.y=0),r}},e}(hi);j(ts.prototype,Po);var es=ts,rs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new Vo,this.yAxisRangeTracker=new Vo},e.prototype.render=function(t){void 0===t&&(t=this.panes);for(var e=this.groupSeriesByPane(),r=0;r<t.length;r++){var o=t[r],i=e[o.options.name||"default"]||[];this.addToLegend(i);var n=this.filterVisibleSeries(i);n&&(this.createScatterChart(Di(n,"scatter"),o),this.createScatterLineChart(Di(n,"scatterLine"),o),this.createBubbleChart(Di(n,"bubble"),o))}this.createAxes(t)},e.prototype.appendChart=function(e,r){this.xAxisRangeTracker.update(e.xAxisRanges),this.yAxisRangeTracker.update(e.yAxisRanges),t.prototype.appendChart.call(this,e,r)},e.prototype.removeAxis=function(e){var r=e.options.name;t.prototype.removeAxis.call(this,e),e.options.vertical?(this.yAxisRangeTracker.reset(r),delete this.namedYAxes[r]):(this.xAxisRangeTracker.reset(r),delete this.namedXAxes[r]),e===this.axisX&&delete this.axisX,e===this.axisY&&delete this.axisY},e.prototype.seriesPaneName=function(t){var e=this.options,r=t.xAxis,o=K([].concat(e.xAxis),(function(t){return t.name===r}))[0],i=t.yAxis,n=K([].concat(e.yAxis),(function(t){return t.name===i}))[0],s=(e.panes||[{}])[0].name||"default";return(o||{}).pane||(n||{}).pane||s},e.prototype.createScatterChart=function(t,e){t.length>0&&this.appendChart(new hi(this,{series:t,clip:e.options.clip}),e)},e.prototype.createScatterLineChart=function(t,e){t.length>0&&this.appendChart(new es(this,{series:t,clip:e.options.clip}),e)},e.prototype.createBubbleChart=function(t,e){t.length>0&&this.appendChart(new vi(this,{series:t,clip:e.options.clip}),e)},e.prototype.createXYAxis=function(t,e,r){for(var o,i=t.name,n=e?this.namedYAxes:this.namedXAxes,s=e?this.yAxisRangeTracker:this.xAxisRangeTracker,a=j({reverse:!e&&this.chartService.rtl},t,{vertical:e}),l=Li(a.type,"log"),c=s.query(),h=l?{min:.1,max:1}:{min:0,max:1},u=s.query(i)||c||h,f=[a.min,a.max],d=this.series,v=0;v<d.length;v++){var y=d[v],g=y[e?"yAxis":"xAxis"];if(g===a.name||0===r&&!g){var m=Yr.current.bindPoint(y,0).valueFields;f.push(m[e?"y":"x"]);break}}0===r&&c&&(u.min=Math.min(u.min,c.min),u.max=Math.max(u.max,c.max));for(var _=0;_<f.length;_++)if(f[_]instanceof Date){o=!0;break}var b=new(Li(a.type,p)||!a.type&&o?br:l?Or:mr)(u.min,u.max,a,this.chartService);if(b.axisIndex=r,i){if(n[i])throw new Error((e?"Y":"X")+" axis with name "+i+" is already defined");n[i]=b}return this.appendAxis(b),b},e.prototype.createAxes=function(t){for(var e=this.options,r=[].concat(e.xAxis),o=[],i=[].concat(e.yAxis),n=[],s=0;s<r.length;s++){Z(this.findPane(r[s].pane),t)&&o.push(this.createXYAxis(r[s],!1,s))}for(var a=0;a<i.length;a++){Z(this.findPane(i[a].pane),t)&&n.push(this.createXYAxis(i[a],!0,a))}this.axisX=this.axisX||o[0],this.axisY=this.axisY||n[0]},e.prototype._dispatchEvent=function(t,e,r){for(var o=t._eventCoordinates(e),i=new Vt(o.x,o.y),n=this.axes,s=n.length,a=[],l=[],p=0;p<s;p++){var c=n[p],h=c.options.vertical?l:a,u=c.getValue(i);null!==u&&h.push(u)}a.length>0&&l.length>0&&t.trigger(r,{element:ht(e),originalEvent:e,x:Ni(a),y:Ni(l)})},e.prototype.updateAxisOptions=function(t,e){var r=t.options.vertical,o=this.groupAxes(this.panes),i=(r?o.y:o.x).indexOf(t);os(this.options,i,r,e),os(this.originalOptions,i,r,e)},e}(Zi);function os(t,e,r,o){j([].concat(r?t.yAxis:t.xAxis)[e],o)}wt(rs,{xAxis:{},yAxis:{}}),j(rs.prototype,Qi);var is=rs,ns=function(t){function e(e,r,o){t.call(this,o),this.value=e,this.sector=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options.labels,e=this.owner.chartService,r=this.value;if(!this._rendered&&!1!==this.visible){this._rendered=!0;var o=U(t),i=this.pointData();if(o?r=o(i):t.format&&(r=e.format.auto(t.format,r)),t.visible&&(r||0===r)){if(t.position===a||"insideEnd"===t.position)t.color||(t.color=Mt(this.options.color)),t.background||(t.background=this.options.color);else{var n=e.theme.seriesDefaults.labels;t.color=t.color||n.color,t.background=t.background||n.background}this.label=new ce(r,j({},t,{align:a,vAlign:"",animation:{type:"fadeIn",delay:this.animationDelay}}),i),this.append(this.label)}}},e.prototype.reflow=function(t){this.render(),this.box=t,this.reflowLabel()},e.prototype.reflowLabel=function(){var t=this.options.labels,e=this.label,r=this.sector.clone(),o=t.distance,i=r.middle();if(e){var n,s=e.box.height(),l=e.box.width();if(t.position===a)r.radius=Math.abs((r.radius-s)/2)+s,n=r.point(i),e.reflow(new Ht(n.x,n.y-s/2,n.x,n.y));else if("insideEnd"===t.position)r.radius=r.radius-s/2,n=r.point(i),e.reflow(new Ht(n.x,n.y-s/2,n.x,n.y));else{var p;(n=r.clone().expand(o).point(i)).x>=r.center.x?(p=n.x+l,e.orientation=d):(p=n.x-l,e.orientation=h),e.reflow(new Ht(p,n.y-s,n.x,n.y))}}},e.prototype.createVisual=function(){var e=this,r=this.sector,o=this.options;if(t.prototype.createVisual.call(this),this.value)if(o.visual){var i=(r.startAngle+180)%360,n=o.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new O.geometry.Point(r.center.x,r.center.y),radius:r.radius,innerRadius:r.innerRadius,startAngle:i,endAngle:i+r.angle,options:o,sender:this.getSender(),createVisual:function(){var t=new O.drawing.Group;return e.createSegmentVisual(t),t}});n&&this.visual.append(n)}else this.createSegmentVisual(this.visual)},e.prototype.createSegmentVisual=function(t){var e=this.sector,r=this.options,o=r.border||{},i=o.width>0?{stroke:{color:o.color,width:o.width,opacity:o.opacity,dashType:o.dashType}}:{},n=r.color,s={color:n,opacity:r.opacity},a=this.createSegment(e,j({fill:s,stroke:{opacity:r.opacity},zIndex:r.zIndex},i));t.append(a),Uo(r)&&t.append(this.createGradientOverlay(a,{baseColor:n,fallbackFill:s},j({center:[e.center.x,e.center.y],innerRadius:e.innerRadius,radius:e.radius,userSpace:!0},r.overlay)))},e.prototype.createSegment=function(t,e){return e.singleSegment?new O.drawing.Circle(new O.geometry.Circle(new O.geometry.Point(t.center.x,t.center.y),t.radius),e):Kt.current.createRing(t,e)},e.prototype.createAnimation=function(){var e=this.options,r=this.sector.center;j(e,{animation:{center:[r.x,r.y],delay:this.animationDelay}}),t.prototype.createAnimation.call(this)},e.prototype.createHighlight=function(t){var e=this.options.highlight||{},r=e.border||{};return this.createSegment(this.sector,j({},t,{fill:{color:e.color,opacity:e.opacity},stroke:{opacity:r.opacity,width:r.width,color:r.color}}))},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=this.sector;return{options:this.options,radius:t.radius,innerRadius:t.innerRadius,center:new O.geometry.Point(t.center.x,t.center.y),startAngle:t.startAngle,endAngle:t.angle+t.startAngle,visual:this.visual}},e.prototype.tooltipAnchor=function(){var t=this.sector.clone().expand(5),e=t.middle();return{point:t.point(e),align:ls(e+180)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series,percentage:this.percentage}},e}(Yt),ss=gt(yt(30),10),as=gt(yt(60),10);function ls(t){var e=yt(t),r=gt(Math.sin(e),10),o=gt(Math.cos(e),10);return{horizontal:Math.abs(r)>as?a:o<0?d:h,vertical:Math.abs(r)<ss?a:r<0?s:v}}wt(ns,{color:g,overlay:{gradient:"roundedBevel"},border:{width:.5},labels:{visible:!1,distance:35,font:"12px sans-serif",margin:z(.5),align:l,zIndex:1,position:"outsideEnd"},animation:{type:io},highlight:{visible:!0,border:{width:1}},visible:!0}),j(ns.prototype,yo);var ps=ns,cs={createLegendItem:function(t,e,r){var o=this.options.legend||{},i=o.labels||{},n=o.inactiveItems||{},s=n.labels||{};if(r&&!1!==r.visibleInLegend){var a,l,p=!1!==r.visible,c=p?U(i):U(s)||U(i),h=r.category;c&&(h=c({text:h,series:r.series,dataItem:r.dataItem,percentage:r.percentage,value:t})),p?(a={},l=e.color):(a={color:s.color,font:s.font},l=(n.markers||{}).color),pi(h)&&""!==h&&this.legendItems.push({active:p,pointIndex:r.index,text:h,series:r.series,markerColor:l,labels:a})}}},hs=function(t){function e(e,r){t.call(this,r),this.plotArea=e,this.chartService=e.chartService,this.points=[],this.legendItems=[],this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.traverseDataPoints=function(t){var e=this.options,r=this.plotArea.options.seriesColors;void 0===r&&(r=[]);for(var o=r.length,i=e.series,n=i.length,s=0;s<n;s++){var l=i[s],p=l.data,c=Bi(l),h=c.total,u=c.points,f=c.count,d=360/h,v=void 0;isFinite(d)||(v=360/f);var y=void 0;y=st(l.startAngle)?l.startAngle:e.startAngle,s!==n-1&&"outsideEnd"===l.labels.position&&(l.labels.position=a);for(var g=0;g<u.length;g++){var m=u[g];if(m){var _=m.fields,b=m.value,x=m.visible,w=0!==b?v||b*d:0,C=1!==p.length&&Boolean(_.explode);T(l.color)||(l.color=_.color||r[g%o]),t(m.valueFields.value,new Ft(null,0,0,y,w),{owner:this,category:st(_.category)?_.category:"",index:g,series:l,seriesIx:s,dataItem:p[g],percentage:0!==h?b/h:0,explode:C,visibleInLegend:_.visibleInLegend,visible:x,zIndex:n-s,animationDelay:this.animationDelay(g,s,n)}),!1!==x&&(y+=w)}}}},e.prototype.evalSegmentOptions=function(t,e,r){var o=r.series;ho(t,{value:e,series:o,dataItem:r.dataItem,category:r.category,percentage:r.percentage},{defaults:o._defaults,excluded:["data","content","template","visual","toggle"]})},e.prototype.addValue=function(t,e,r){var o=j({},r.series,{index:r.index});if(this.evalSegmentOptions(o,t,r),this.createLegendItem(t,o,r),!1!==r.visible){var i=new ps(t,e,o);Object.assign(i,r),this.append(i),this.points.push(i)}},e.prototype.reflow=function(t){var e=this.options,r=this.points,o=this.seriesConfigs;void 0===o&&(o=[]);var i=r.length,n=t.clone(),s=Math.min(n.width(),n.height()),a=s/2,l=s-.85*s,p=new Ht(n.x1,n.y1,n.x1+s,n.y1+s),c=p.center(),h=n.center(),u=e.series.length,f=[],v=[],y=_t(e.padding,l);this.targetBox=t,y=y>a-5?a-5:y,p.translate(h.x-c.x,h.y-c.y);for(var g=a-y,m=new Vt(g+p.x1+y,g+p.y1+y),_=0;_<i;_++){var b=r[_],x=b.sector,w=b.seriesIx;if(x.radius=g,x.center=m,o.length){var C=o[w];x.innerRadius=C.innerRadius,x.radius=C.radius}w===u-1&&b.explode&&(x.center=x.clone().setRadius(.15*x.radius).point(x.middle())),b.reflow(p);var O=b.label;O&&"outsideEnd"===O.options.position&&w===u-1&&(O.orientation===d?v.push(O):f.push(O))}f.length>0&&(f.sort(this.labelComparator(!0)),this.leftLabelsReflow(f)),v.length>0&&(v.sort(this.labelComparator(!1)),this.rightLabelsReflow(v)),this.box=p},e.prototype.leftLabelsReflow=function(t){var e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)},e.prototype.rightLabelsReflow=function(t){var e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)},e.prototype.distanceBetweenLabels=function(t){var e=ft(this.points),r=e.sector,o=t.length-1,i=r.radius+e.options.labels.distance,n=[],s=t[0].box,a=gt(s.y1-(r.center.y-i-s.height()-s.height()/2));n.push(a);for(var l=0;l<o;l++){var p=t[l+1].box;s=t[l].box,a=gt(p.y1-s.y2),n.push(a)}return a=gt(r.center.y+i-t[o].box.y2-t[o].box.height()/2),n.push(a),n},e.prototype.distributeLabels=function(t,e){for(var r,o,i,n=t.length,s=0;s<n;s++)for(i=-t[s],r=o=s;i>0&&(r>=0||o<n);)i=this._takeDistance(t,s,--r,i),i=this._takeDistance(t,s,++o,i);this.reflowLabels(t,e)},e.prototype._takeDistance=function(t,e,r,o){var i=o;if(t[r]>0){var n=Math.min(t[r],i);i-=n,t[r]-=n,t[e]+=n}return i},e.prototype.reflowLabels=function(t,e){var r,o=ft(this.points),i=o.sector,n=o.options.labels,s=e.length,a=n.distance,p=i.center.y-(i.radius+a)-e[0].box.height();t[0]+=2;for(var c=0;c<s;c++){var h=e[c],u=h.box;p+=t[c],r=this.hAlignLabel(u.x2,i.clone().expand(a),p,p+u.height(),h.orientation===d),h.orientation===d?(n.align!==l&&(r=i.radius+i.center.x+a),h.reflow(new Ht(r+u.width(),p,r,p))):(n.align!==l&&(r=i.center.x-i.radius-a),h.reflow(new Ht(r-u.width(),p,r,p))),p+=u.height()}},e.prototype.createVisual=function(){var e=this.options.connectors,r=this.points,o=r.length;t.prototype.createVisual.call(this),this._connectorLines=[];for(var i=0;i<o;i++){var n=r[i],s=n.sector,a=n.label,l=s.middle(),p=(n.options.connectors||{}).color||e.color;if(a){var c=new O.drawing.Path({stroke:{color:p,width:e.width},animation:{type:"fadeIn",delay:n.animationDelay}});if("outsideEnd"===a.options.position){var h=a.box,u=s.center,f=s.point(l),v=new Vt(h.x1,h.center().y),y=void 0,g=void 0,m=void 0;f=s.clone().expand(e.padding).point(l),c.moveTo(f.x,f.y),a.orientation===d?(m=us(u,f,v,g=new Vt(h.x1-e.padding,h.center().y)),v=new Vt(g.x-4,g.y),(m=m||v).x=Math.min(m.x,v.x),this.pointInCircle(m,s.center,s.radius+4)||m.x<s.center.x?(y=s.center.x+s.radius+4,n.options.labels.align!==ro?y<v.x?c.lineTo(y,f.y):c.lineTo(f.x+8,f.y):c.lineTo(y,f.y),c.lineTo(v.x,g.y)):(m.y=g.y,c.lineTo(m.x,m.y))):(m=us(u,f,v,g=new Vt(h.x2+e.padding,h.center().y)),v=new Vt(g.x+4,g.y),(m=m||v).x=Math.max(m.x,v.x),this.pointInCircle(m,s.center,s.radius+4)||m.x>s.center.x?(y=s.center.x-s.radius-4,n.options.labels.align!==ro?y>v.x?c.lineTo(y,f.y):c.lineTo(f.x-8,f.y):c.lineTo(y,f.y),c.lineTo(v.x,g.y)):(m.y=g.y,c.lineTo(m.x,m.y))),c.lineTo(g.x,g.y),this._connectorLines.push(c),this.visual.append(c)}}}},e.prototype.renderVisual=function(){if(t.prototype.renderVisual.call(this),Ot(this.options.series,(function(t){return t.autoFit}))){var e=this.targetBox,r=this.box.center(),o=this.visual.bbox();if(!o)return;var i=o.bottomRight(),n=Math.min((r.y-e.y1)/(r.y-o.origin.y),(e.y2-r.y)/(i.y-r.y),(r.x-e.x1)/(r.x-o.origin.x),(e.x2-r.x)/(i.x-r.x));n<1&&this.visual.transform(O.geometry.transform().scale(n,n,[r.x,r.y]))}},e.prototype.labelComparator=function(t){var e=t?-1:1;return function(t,r){return((t.parent.sector.middle()+270)%360-(r.parent.sector.middle()+270)%360)*e}},e.prototype.hAlignLabel=function(t,e,r,o,i){var n=e.radius,s=e.center,a=s.x,l=s.y,p=Math.min(Math.abs(l-r),Math.abs(l-o));return p>n?t:a+Math.sqrt(n*n-p*p)*(i?1:-1)},e.prototype.pointInCircle=function(t,e,r){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<Math.pow(r,2)},e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value)},e.prototype.animationDelay=function(t){return 70*t},e.prototype.stackRoot=function(){return this},e}(Yt);function us(t,e,r,o){var i,n=(o.x-r.x)*(t.y-r.y)-(o.y-r.y)*(t.x-r.x),s=(o.y-r.y)*(e.x-t.x)-(o.x-r.x)*(e.y-t.y);if(0!==s){var a=n/s;i=new Vt(t.x+a*(e.x-t.x),t.y+a*(e.y-t.y))}return i}wt(hs,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),j(hs.prototype,cs),hs.prototype.isStackRoot=!0;var fs=hs,ds=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createPieChart(this.series)},e.prototype.createPieChart=function(t){var e=t[0],r=new fs(this,{series:t,padding:e.padding,startAngle:e.startAngle,connectors:e.connectors,legend:this.options.legend});this.appendChart(r)},e.prototype.appendChart=function(e,r){t.prototype.appendChart.call(this,e,r),it(this.options.legend.items,e.legendItems)},e}(Zi),vs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowLabel=function(){var e=this.options.labels,r=this.label,o=this.sector.clone(),i=o.middle();if(r){var n=r.box.height();if(e.position===a){o.radius-=(o.radius-o.innerRadius)/2;var s=o.point(i);r.reflow(new Ht(s.x,s.y-n/2,s.x,s.y))}else t.prototype.reflowLabel.call(this)}},e.prototype.createSegment=function(t,e){return Kt.current.createRing(t,e)},e}(ps);wt(vs,{overlay:{gradient:"roundedGlass"},labels:{position:a},animation:{type:io}}),j(vs.prototype,yo);var ys=vs,gs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addValue=function(t,e,r){var o=j({},r.series,{index:r.index});if(this.evalSegmentOptions(o,t,r),this.createLegendItem(t,o,r),t&&!1!==r.visible){var i=new ys(t,e,o);Object.assign(i,r),this.append(i),this.points.push(i)}},e.prototype.reflow=function(e){for(var r,o=this.options,i=e.clone(),n=Math.min(i.width(),i.height()),s=n/2,a=n-.85*n,l=o.series,p=l.length,c=_t(o.padding,a),h=s-(c=c>s-5?s-5:c),u=0,f=0;f<p;f++){var d=l[f];0===f&&st(d.holeSize)&&(r=d.holeSize,h-=d.holeSize),st(d.size)?h-=d.size:u++,st(d.margin)&&f!==p-1&&(h-=d.margin)}st(r)||(h-=r=.75*((s-c)/(p+.75)));var v,y=r,g=0;this.seriesConfigs=[];for(var m=0;m<p;m++){var _=l[m];v=(y+=g)+_t(_.size,h/u),this.seriesConfigs.push({innerRadius:y,radius:v}),g=_.margin||0,y=v}t.prototype.reflow.call(this,e)},e.prototype.animationDelay=function(t,e,r){return 50*t+600*(e+1)/(r+1)},e}(fs);wt(gs,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}});var ms=gs,_s=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createDonutChart(this.series)},e.prototype.createDonutChart=function(t){var e=t[0],r=new ms(this,{series:t,padding:e.padding,connectors:e.connectors,legend:this.options.legend});this.appendChart(r)},e}(ds),bs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.valueAxisRangeTracker=new Vo},e.prototype.render=function(){this.addToLegend(this.series),this.createPolarAxis(),this.createCharts(),this.createValueAxis()},e.prototype.alignAxes=function(){var t=this.valueAxis,e=t.range(),r=t.options.reverse?e.max:e.min,o=t.getSlot(r),i=this.polarAxis.getSlot(0).center,n=t.box.translate(i.x-o.x1,i.y-o.y1);t.reflow(n)},e.prototype.createValueAxis=function(){var t,e,r=this.valueAxisRangeTracker,o=r.query(),i=this.valueAxisOptions({roundToMajorUnit:!1,zIndex:-1});"log"===i.type?(t=Br,e={min:.1,max:1}):(t=Rr,e={min:0,max:1});var n=r.query(name)||o||e;n&&o&&(n.min=Math.min(n.min,o.min),n.max=Math.max(n.max,o.max));var s=new t(n.min,n.max,i,this.chartService);this.valueAxis=s,this.appendAxis(s)},e.prototype.reflowAxes=function(){var t=this.options.plotArea,e=this.valueAxis,r=this.polarAxis,o=this.box,i=.15*Math.min(o.width(),o.height()),n=z(t.padding||{},i),s=o.clone().unpad(n),l=s.clone();l.y2=l.y1+Math.min(l.width(),l.height()),l.align(s,_,a);var p=l.clone().shrink(0,l.height()/2);r.reflow(l),e.reflow(p);var c=e.lineBox().height()-e.box.height();e.reflow(e.box.unpad({top:c})),this.axisBox=l,this.alignAxes(l)},e.prototype.backgroundBox=function(){return this.box},e.prototype.detachLabels=function(){},e}(Zi),xs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointSlot=function(t,e){var r=t.center.y-e.y1,o=Vt.onCircle(t.center,t.startAngle,r);return new Ht(o.x,o.y,o.x,o.y)},e}(hi);wt(xs,{clip:!1});var ws=xs,Cs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(es);Cs.prototype.pointSlot=ws.prototype.pointSlot,wt(Cs,{clip:!1});var Os=Cs,ks=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(t){var e=this._polarAxisCenter();t.lineTo(e.x,e.y)},e.prototype._polarAxisCenter=function(){return this.parent.plotArea.polarAxis.box.center()},e.prototype.strokeSegments=function(){var t=this._strokeSegments;if(!t){var e=this._polarAxisCenter(),r=new Dr(!1),o=this.points();o.push(e),(t=this._strokeSegments=r.process(o)).pop()}return t},e}(Do),Ss=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(t){var e=this.parent.plotArea.polarAxis.box.center(),r=new O.geometry.Segment([e.x,e.y]);t.segments.unshift(r),t.segments.push(r)},e}(Io);function Ps(t,e){return t.value.x-e.value.x}var As=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,r){return"smooth"===(e.line||{}).style?new ks(t,e,r):new Ss(t,e,r)},e.prototype.createMissingValue=function(t,e){var r;return pi(t.x)&&"interpolate"!==e&&(r={x:t.x,y:t.y},e===to&&(r.y=0)),r},e.prototype.seriesMissingValues=function(t){return t.missingValues||to},e.prototype._hasMissingValuesGap=function(){for(var t=this.options.series,e=0;e<t.length;e++)if("gap"===this.seriesMissingValues(t[e]))return!0},e.prototype.sortPoints=function(t){if(t.sort(Ps),this._hasMissingValuesGap())for(var e=0;e<t.length;e++){var r=t[e];if(r)pi(r.value.y)||"gap"!==this.seriesMissingValues(r.series)||delete t[e]}return t},e}(Os),Ms=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createPolarAxis=function(){var t=new Mr(this.options.xAxis,this.chartService);this.polarAxis=t,this.axisX=t,this.appendAxis(t)},e.prototype.valueAxisOptions=function(t){return j(t,{majorGridLines:{type:i},minorGridLines:{type:i}},this.options.yAxis)},e.prototype.createValueAxis=function(){t.prototype.createValueAxis.call(this),this.axisY=this.valueAxis},e.prototype.appendChart=function(t,e){this.valueAxisRangeTracker.update(t.yAxisRanges),Zi.prototype.appendChart.call(this,t,e)},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createLineChart(Di(t,["polarLine"]),e),this.createScatterChart(Di(t,["polarScatter"]),e),this.createAreaChart(Di(t,["polarArea"]),e)},e.prototype.createLineChart=function(t,e){if(0!==t.length){var r=new Os(this,{series:t});this.appendChart(r,e)}},e.prototype.createScatterChart=function(t,e){if(0!==t.length){var r=new ws(this,{series:t});this.appendChart(r,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var r=new As(this,{series:t});this.appendChart(r,e)}},e.prototype._dispatchEvent=function(t,e,r){var o=t._eventCoordinates(e),i=new Vt(o.x,o.y),n=this.axisX.getValue(i),s=this.axisY.getValue(i);null!==n&&null!==s&&t.trigger(r,{element:ht(e),x:n,y:s})},e.prototype.createCrosshairs=function(){},e}(bs);wt(Ms,{xAxis:{},yAxis:{}}),j(Ms.prototype,Qi);var Ts=Ms;var Es=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointSlot=function(t,e){var r=t.center.y-e.y1,o=Vt.onCircle(t.center,t.middle(),r);return new Ht(o.x,o.y,o.x,o.y)},e.prototype.renderSegments=function(){if(t.prototype.renderSegments.call(this),this._segments&&this._segments.length>1)for(var e=function(t){for(var e=[],r=0;r<t.length;r++){var o=t[r];e[o.seriesIx]=e[o.seriesIx]||[],e[o.seriesIx].push(o)}return e}(this._segments),r=0;r<e.length;r++){var o=e[r];if(o&&o.length>1){var i=o[0].linePoints[0],n=ft(o),s=ft(n.linePoints),a=0===i.categoryIx,l=s.categoryIx===s.categoriesCount-1;a&&l&&ft(o).linePoints.push(i)}}},e.prototype.createSegment=function(t,e,r){var o=new("smooth"===e.style?So:xo)(t,e,r),i=this.seriesMissingValues(e);return t.length!==e.data.length&&"interpolate"!==i||(o.options.closed=!0),o},e}(Ro);wt(Es,{clip:!1,limitPoints:!1});var js=Es,Rs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(){},e}(Do),Is=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(){},e}(Io),Bs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,r,o){var i,n,s,a=this.options.isStacked,l=(e.line||{}).style;return a&&r>0&&o&&(n=o.linePoints.slice(0),i=o),"smooth"===l?(s=new Rs(t,e,r,i,n)).options.closed=!0:(t.push(t[0]),s=new Is(t,e,r,i,n)),s},e.prototype.seriesMissingValues=function(t){return t.missingValues||to},e}(js),Ls=function(t){function e(e,r){t.call(this,e,null,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(ys);wt(Ls,{overlay:{gradient:"none"},labels:{distance:10}});var Ds=Ls,zs=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Ko:Wo}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,r=this.children,o=e.gap,i=e.spacing,n=r.length,s=n+o+i*(n-1),a=t.angle/s,l=t.startAngle+a*(o/2);this.forEach(r,(function(e){var r=t.clone();r.startAngle=l,r.angle=a,e.sector&&(r.radius=e.sector.radius),e.reflow(r),e.sector=r,l+=a+a*i}))},e}(Yt);wt(zs,{gap:1,spacing:0});var Vs=zs,Ns=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options.reverse,r=this.children,o=r.length,i=e?o-1:0,n=e?-1:1;this.box=new Ht;for(var s=i;s>=0&&s<o;s+=n){var a=r[s].sector;a.startAngle=t.startAngle,a.angle=t.angle}},e}(Yt),Hs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return Ds},e.prototype.clusterType=function(){return Vs},e.prototype.stackType=function(){return Ns},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.pointSlot=function(t,e){var r=t.clone(),o=t.center.y;return r.radius=o-e.y1,r.innerRadius=o-e.y2,r},e.prototype.reflowPoint=function(t,e){t.sector=e,t.reflow()},e.prototype.createAnimation=function(){this.options.animation.center=this.box.toRect().center(),t.prototype.createAnimation.call(this)},e}($o);Hs.prototype.reflow=vo.prototype.reflow,wt(Hs,{clip:!1,limitPoints:!1,animation:{type:"pie"}});var Us=Hs,Fs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createPolarAxis=function(){var t=new Pr(this.options.categoryAxis,this.chartService);this.polarAxis=t,this.categoryAxis=t,this.appendAxis(t),this.aggregateCategories(),this.createCategoryAxesLabels()},e.prototype.valueAxisOptions=function(t){return this._hasBarCharts&&j(t,{majorGridLines:{type:i},minorGridLines:{type:i}}),this._isStacked100&&j(t,{roundToMajorUnit:!1,labels:{format:"P0"}}),j(t,this.options.valueAxis)},e.prototype.aggregateCategories=function(){Sn.prototype.aggregateCategories.call(this,this.panes)},e.prototype.createCategoryAxesLabels=function(){Sn.prototype.createCategoryAxesLabels.call(this,this.panes)},e.prototype.filterSeries=function(t){return t},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createAreaChart(Di(t,["radarArea"]),e),this.createLineChart(Di(t,["radarLine"]),e),this.createBarChart(Di(t,["radarColumn"]),e)},e.prototype.chartOptions=function(t){var e={series:t},r=t[0];if(r){var o=this.filterVisibleSeries(t),i=r.stack;e.isStacked=i&&o.length>1,e.isStacked100=i&&"100%"===i.type&&o.length>1,e.isStacked100&&(this._isStacked100=!0)}return e},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var r=new Bs(this,this.chartOptions(t));this.appendChart(r,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var r=new js(this,this.chartOptions(t));this.appendChart(r,e)}},e.prototype.createBarChart=function(t,e){if(0!==t.length){var r=t[0],o=this.chartOptions(t);o.gap=r.gap,o.spacing=r.spacing;var i=new Us(this,o);this.appendChart(i,e),this._hasBarCharts=!0}},e.prototype.seriesCategoryAxis=function(){return this.categoryAxis},e.prototype._dispatchEvent=function(t,e,r){var o=t._eventCoordinates(e),i=new Vt(o.x,o.y),n=this.categoryAxis.getCategory(i),s=this.valueAxis.getValue(i);null!==n&&null!==s&&t.trigger(r,{element:ht(e),category:n,value:s})},e.prototype.createCrosshairs=function(){},e}(bs);j(Fs.prototype,Qi,{appendChart:Sn.prototype.appendChart,aggregateSeries:Sn.prototype.aggregateSeries,seriesSourcePoints:Sn.prototype.seriesSourcePoints}),wt(Fs,{categoryAxis:{categories:[]},valueAxis:{}});var Gs=Fs,Ws=function(t){function e(e,r,o){t.call(this,r),this.value=e,this.options.index=o.index}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.points,r=this.children[0];this.box=new Ht(e[0].x,e[0].y,e[1].x,e[2].y),r&&r.reflow(new Ht(t.x1,e[0].y,t.x2,e[2].y))},e.prototype.createVisual=function(){var e,r=this,o=this.options;t.prototype.createVisual.call(this),(e=o.visual?o.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:o,sender:this.getSender(),createVisual:function(){return r.createPath()}}):this.createPath())&&this.visual.append(e)},e.prototype.createPath=function(){var t=this.options,e=t.border;return O.drawing.Path.fromPoints(this.points,{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.color,opacity:e.opacity,width:e.width}}).close()},e.prototype.createHighlight=function(t){return O.drawing.Path.fromPoints(this.points,t)},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=O.drawing.Path.fromPoints(this.points).close();return{options:this.options,path:t}},e.prototype.tooltipAnchor=function(){var t=this.box;return{point:new Vt(t.center().x,t.y1),align:{horizontal:"center",vertical:"top"}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(Yt);wt(Ws,{color:g,border:{width:1}}),j(Ws.prototype,yo);var Ks=Ws,Xs=function(t){function e(e,r){t.call(this,r),this.plotArea=e,this.points=[],this.labels=[],this.legendItems=[],this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value)},e.prototype.render=function(){var t=this.options,e=this.plotArea.options.seriesColors;void 0===e&&(e=[]);var r=t.series[0],o=r.data;if(o)for(var i=Bi(r),n=i.total,s=i.points,a=0;a<s.length;a++){var l=s[a];if(l){var p=l.fields;T(r.color)||(r.color=p.color||e[a%e.length]),p=j({index:a,owner:this,series:r,dataItem:o[a],percentage:l.value/n},p,{visible:l.visible});var c=l.valueFields.value,h=this.createSegment(c,p),u=this.createLabel(c,p);h&&u&&h.append(u)}}},e.prototype.evalSegmentOptions=function(t,e,r){var o=r.series;ho(t,{value:e,series:o,dataItem:r.dataItem,index:r.index},{defaults:o._defaults,excluded:["data","content","template","toggle","visual"]})},e.prototype.createSegment=function(t,e){var r=j({},e.series);if(this.evalSegmentOptions(r,t,e),this.createLegendItem(t,r,e),!1!==e.visible){var o=new Ks(t,r,e);return Object.assign(o,e),this.append(o),this.points.push(o),o}},e.prototype.createLabel=function(t,e){var r=e.series,o=e.dataItem,i=j({},this.options.labels,r.labels),n=t;if(i.visible){var s=U(i),a={dataItem:o,value:t,percentage:e.percentage,category:e.category,series:r};s?n=s(a):i.format&&(n=this.plotArea.chartService.format.auto(i.format,n)),i.color||(i.color=Mt(r.color),i.background||(i.background=r.color)),this.evalSegmentOptions(i,t,e);var l=new ce(n,j({vAlign:i.position},i),a);return this.labels.push(l),l}},e.prototype.labelPadding=function(){for(var t=this.labels,e={left:0,right:0},r=0;r<t.length;r++){var o=t[r].options.align;if(o!==a){var i=t[r].box.width();o===h?e.left=Math.max(e.left,i):e.right=Math.max(e.right,i)}}return e},e.prototype.dynamicSlopeReflow=function(t,e,r){for(var o=this.options,i=this.points,n=i.length,s=i[0],a=s,l=0;l<i.length;l++)i[l].percentage>a.percentage&&(a=i[l]);for(var p=s.percentage/a.percentage*e,c=(e-p)/2,h=0,u=0;u<n;u++){var f=i[u].percentage,d=i[u+1],v=d?d.percentage:f,y=i[u].points=[],g=o.dynamicHeight?r*f:r/n,m=void 0;m=dt(m=f?(e-p*(v/f))/2:v?0:e/2,0,e),y.push(new O.geometry.Point(t.x1+c,t.y1+h)),y.push(new O.geometry.Point(t.x1+e-c,t.y1+h)),y.push(new O.geometry.Point(t.x1+e-m,t.y1+g+h)),y.push(new O.geometry.Point(t.x1+m,t.y1+g+h)),c=m,h+=g+o.segmentSpacing,p=dt(e-2*m,0,e)}},e.prototype.constantSlopeReflow=function(t,e,r){for(var o=this.options,i=this.points,n=i.length,s=o.neckRatio<=1,a=s?o.neckRatio*e:e,l=s?0:(e-e/o.neckRatio)/2,p=((s?e:e-2*l)-a)/2,c=0,h=0;h<n;h++){var u=i[h].points=[],f=i[h].percentage,d=o.dynamicHeight?p*f:p/n,v=o.dynamicHeight?r*f:r/n;u.push(new O.geometry.Point(t.x1+l,t.y1+c)),u.push(new O.geometry.Point(t.x1+e-l,t.y1+c)),u.push(new O.geometry.Point(t.x1+e-l-d,t.y1+v+c)),u.push(new O.geometry.Point(t.x1+l+d,t.y1+v+c)),l+=d,c+=v+o.segmentSpacing}},e.prototype.reflow=function(t){var e=this.points,r=e.length;if(r){var o=this.options,i=t.clone().unpad(this.labelPadding()),n=i.height()-o.segmentSpacing*(r-1),s=i.width();o.dynamicSlope?this.dynamicSlopeReflow(i,s,n):this.constantSlopeReflow(i,s,n);for(var a=0;a<r;a++)e[a].reflow(t)}},e}(Yt);wt(Xs,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:a,position:a,zIndex:1}}),j(Xs.prototype,cs);var Ys=Xs,qs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createFunnelChart(this.series)},e.prototype.createFunnelChart=function(t){var e=t[0],r=new Ys(this,{series:t,legend:this.options.legend,neckRatio:e.neckRatio,dynamicHeight:e.dynamicHeight,dynamicSlope:e.dynamicSlope,segmentSpacing:e.segmentSpacing,highlight:e.highlight});this.appendChart(r)},e.prototype.appendChart=function(e,r){t.prototype.appendChart.call(this,e,r),it(this.options.legend.items,e.legendItems)},e}(Zi),Zs=function(t,e){void 0===e&&(e=.05);var r=Object(O.parseColor)(t),o=1-e;return function(t){var e=r.toHSL(),i=100-e.l,n=o-t;return e.l+=Math.min(n*i,i),e.toCss()}},Qs=function(t){function e(e,r){t.call(this),this.options=r,this.color=r.color||g,this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this._rendered||(this._rendered=!0,this.createMarker(),this.createLabel(),this.createNote())},e.prototype.createLabel=function(){var t=this.options.labels;if(t.visible){var e,r=this.pointData(),o=U(t),i=t.color;e=o?o(r):this.formatValue(t.format),i||(i=Mt(this.color)),this.label=new ce(e,j({align:a,vAlign:a,margin:{left:5,right:5},zIndex:_t(t.zIndex,this.series.zIndex)},t,{color:i}),r),this.append(this.label)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.reflow=function(t){this.render();var e=this.label;this.box=t,e&&e.reflow(this.markerBox()),this.note&&this.note.reflow(t),this.marker.reflow(this.markerBox())},e.prototype.markerBox=function(){var t=this.options.markers,e=t.border,r=this.box.toRect(),o="roundedRect"===_t(t.type,"rect"),i=_t(e.width,o?1:0),n=Math.round(i/2);if(t.size){var s=r.center();r.size.width=r.size.height=t.size,r.origin.x=Math.round(s.x-r.size.width/2),r.origin.y=Math.round(s.y-r.size.height/2)}return r.size.width-=i,r.size.height-=i,r.origin.y+=n+.5,r.origin.x+=n+.5,le(r)},e.prototype.markerBorder=function(){var t=this.options,e=t.markers.border,r=_t(e.opacity,t.opacity);return{color:e.color||this.color,width:e.width,opacity:r,dashType:e.dashType}},e.prototype.createMarker=function(){var t=this.options,e=t.markers,r=new $t({type:_t(e.type,"rect"),width:e.size,height:e.size,rotation:e.rotation,background:this.color,border:this.markerBorder(),borderRadius:e.borderRadius,opacity:this.series.opacity||t.opacity,zIndex:_t(t.zIndex,this.series.zIndex),animation:t.animation,visual:t.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category});this.marker=r,this.append(r)},e.prototype.createHighlight=function(t){var e=this.options,r=this.options.highlight.markers||this.options.markers,o=new $t({type:_t(r.type,"rect"),width:r.size,height:r.size,rotation:r.rotation,background:r.color||this.color,border:this.markerBorder(),borderRadius:r.borderRadius,opacity:this.series.opacity||e.opacity,zIndex:_t(e.zIndex,this.series.zIndex)});o.reflow(this.markerBox());var i=o.getElement();return i.options.fill=t.fill,i.options.stroke=t.stroke,i},e.prototype.highlightVisual=function(){return this.rectVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}},e.prototype.tooltipAnchor=function(){var t=this.box.center().x,e=this.box.y1-5;return{point:new Vt(t,e),align:{horizontal:a,vertical:s}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.unclipElements=function(){},e.prototype.pointData=function(){return{x:this.value.x,y:this.value.y,value:this.value.value,dataItem:this.dataItem,series:this.series}},e}(Yt);j(Qs.prototype,yo),j(Qs.prototype,go),Qs.prototype.defaults={markers:{type:"rect",borderRadius:4,border:{color:"transparent"}},padding:{top:1},labels:{visible:!1,padding:3},opacity:1,notes:{label:{}}};var $s=Qs,Js=function(t){function e(e,r){t.call(this,r),this.plotArea=e,this.chartService=e.chartService,this._initFields(),this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this.points=[],this.seriesOptions=[],this.valueRange={min:u,max:f},this._evalSeries=[]},e.prototype.render=function(){this.setRange(),this.traverseDataPoints(this.addValue.bind(this))},e.prototype.setRange=function(){for(var t=this.options.series,e=0;e<t.length;e++)for(var r=t[e],o=0;o<r.data.length;o++){var i=this._bindPoint(r,e,o).valueFields;st(i.value)&&null!==i.value&&(this.valueRange.min=Math.min(this.valueRange.min,i.value),this.valueRange.max=Math.max(this.valueRange.max,i.value))}},e.prototype.addValue=function(t,e){var r;t&&st(t.value)&&null!==t.value&&(r=this.createPoint(t,e))&&Object.assign(r,e),this.points.push(r)},e.prototype.evalPointOptions=function(t,e,r){var o=r.series,i=r.seriesIx,n={defaults:o._defaults,excluded:["data","tooltip","content","template","visual","toggle"]},s=this._evalSeries[i];st(s)||(this._evalSeries[i]=s=ho(t,{},n,!0));var a=t;return s&&ho(a=j({},t),{value:e,series:o,dataItem:r.dataItem,min:this.valueRange.min,max:this.valueRange.max},n),a},e.prototype.pointType=function(){return $s},e.prototype.pointOptions=function(t,e){var r=this.seriesOptions[e];if(!r){var o=this.pointType().prototype.defaults;this.seriesOptions[e]=r=j({},o,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return r},e.prototype.createPoint=function(t,e){var r=e.series,o=this.pointOptions(r,e.seriesIx),i=e.color||r.color;if(o=this.evalPointOptions(o,t,e),T(r.color))i=o.color;else if(0!==this.valueRange.max){i=Zs(i)(t.value/this.valueRange.max)}var n=new $s(t,o);return n.color=i,this.append(n),n},e.prototype.seriesAxes=function(t){var e=t.xAxis,r=t.yAxis,o=this.plotArea,i=e?o.namedXAxes[e]:o.axisX,n=r?o.namedYAxes[r]:o.axisY;if(!i)throw new Error("Unable to locate X axis with name "+e);if(!n)throw new Error("Unable to locate Y axis with name "+r);return{xAxis:i,yAxis:n}},e.prototype.reflow=function(t){var e=this,r=this.points,o=!this.options.clip,i=0;this.traverseDataPoints((function(t,n){var s=r[i++],a=e.seriesAxes(n.series),l=a.xAxis,p=a.yAxis,c=l.categoryIndex(t.x),h=p.categoryIndex(t.y),u=l.getSlot(c,c,o),f=p.getSlot(h,h,o);if(s)if(u&&f){var d=e.pointSlot(u,f);s.reflow(d)}else s.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new Ht(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,r=0;r<e.length;r++)for(var o=e[r],i=this.seriesAxes(o),n=i.xAxis,s=i.yAxis,a=n.currentRangeIndices(),l=s.currentRangeIndices(),p=0;p<o.data.length;p++){var c=this._bindPoint(o,r,p),h=c.valueFields,u=c.fields,f=n.totalIndex(h.x),d=s.totalIndex(h.y),v=a.min<=f&&f<=a.max,y=l.min<=d&&d<=l.max;v&&y&&t(h,j({pointIx:p,series:o,seriesIx:r,dataItem:o.data[p],owner:this},u))}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.x,r.y,r.value)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],r=0;r<t.length;r++)e.push((t[r]||{}).marker);return e},e}(Yt);wt(Js,{series:[],tooltip:{format:"{0}, {1}: {2}"},labels:{format:"{2}"},clip:!0}),j(Js.prototype,{_bindPoint:vo.prototype._bindPoint});var ta=Js,ea=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.namedXAxes={},this.namedYAxes={}},e.prototype.render=function(t){void 0===t&&(t=this.panes),this.bindCategories(),this.createAxes(t),this.createCharts(t),this.createAxisLabels()},e.prototype.bindCategories=function(){for(var t=this.srcSeries||this.series,e=0;e<t.length;e++){for(var r=t[e],o=r.data||[],i=this.seriesAxes(r),n=i.xAxis,s=i.yAxis,a=Bt(n.categories||[]),l=Bt(s.categories||[]),p=0;p<o.length;p++){var c=Yr.current.bindPoint(r,p).valueFields,h=c.x,u=c.y;a.has(h)||a.add(h),l.has(u)||l.add(u)}n.categories=a.values(),s.categories=l.values()}},e.prototype.createCharts=function(t){for(var e=this.groupSeriesByPane(),r=0;r<t.length;r++){var o=t[r],i=e[o.options.name||"default"]||[];this.addToLegend(i);var n=this.filterVisibleSeries(i);n&&this.createHeatmapChart(Di(n,["heatmap"]),o)}},e.prototype.createHeatmapChart=function(t,e){var r=new ta(this,{series:t});this.appendChart(r,e)},e.prototype.seriesPaneName=function(t){var e=this.options,r=t.xAxis,o=K([].concat(e.xAxis),(function(t){return t.name===r}))[0],i=t.yAxis,n=K([].concat(e.yAxis),(function(t){return t.name===i}))[0],s=(e.panes||[{}])[0].name||"default";return(o||{}).pane||(n||{}).pane||s},e.prototype.seriesAxes=function(t){var e,r,o=this.options,i=[].concat(o.xAxis),n=t.xAxis;e=n?i.find((function(t){return t.name===n})):i[0];var s=[].concat(o.yAxis),a=t.yAxis;if(r=a?s.find((function(t){return t.name===a})):s[0],!e)throw new Error("Unable to locate X axis with name "+n);if(!r)throw new Error("Unable to locate Y axis with name "+a);return{xAxis:e,yAxis:r}},e.prototype.createAxisLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e].createLabels()},e.prototype.createXYAxis=function(t,e,r){for(var o,i=t.name,n=e?this.namedYAxes:this.namedXAxes,s=Object.assign({axisCrossingValue:0},t,{vertical:e,reverse:e||this.chartService.rtl?!t.reverse:t.reverse,justified:!1}),a=s.categories?s.categories[0]:null,l=[s.min,s.max,a],c=this.series,h=0;h<c.length;h++){var u=c[h],f=u[e?"yAxis":"xAxis"];if(f===s.name||0===r&&!f){var d=Yr.current.bindPoint(u,0).valueFields;l.push(d[e?"y":"x"]);break}}for(var v=0;v<l.length;v++)if(l[v]instanceof Date){o=!0;break}var y=new(Li(s.type,p)||!s.type&&o?hr:rr)(s,this.chartService);if(y.axisIndex=r,i){if(n[i])throw new Error((e?"Y":"X")+" axis with name "+i+" is already defined");n[i]=y}return this.appendAxis(y),y.mapCategories(),y},e.prototype.createAxes=function(t){for(var e=this.options,r=[].concat(e.xAxis),o=[],i=[].concat(e.yAxis),n=[],s=0;s<r.length;s++){Z(this.findPane(r[s].pane),t)&&o.push(this.createXYAxis(r[s],!1,s))}for(var a=0;a<i.length;a++){Z(this.findPane(i[a].pane),t)&&n.push(this.createXYAxis(i[a],!0,a))}this.axisX=this.axisX||o[0],this.axisY=this.axisY||n[0]},e.prototype.removeAxis=function(e){var r=e.options.name;t.prototype.removeAxis.call(this,e),e.options.vertical?delete this.namedYAxes[r]:delete this.namedXAxes[r],e===this.axisX&&delete this.axisX,e===this.axisY&&delete this.axisY},e.prototype._dispatchEvent=function(t,e,r){for(var o=t._eventCoordinates(e),i=new Vt(o.x,o.y),n=this.axes,s=n.length,a=[],l=[],p=0;p<s;p++){var c=n[p];Ri(c.options.vertical?l:a,c.getCategory(i))}a.length>0&&l.length>0&&t.trigger(r,{element:ht(e),originalEvent:e,x:Ni(a),y:Ni(l)})},e.prototype.updateAxisOptions=function(t,e){var r=t.options.vertical,o=this.groupAxes(this.panes),i=(r?o.y:o.x).indexOf(t);ra(this.options,i,r,e),ra(this.originalOptions,i,r,e)},e.prototype.crosshairOptions=function(t){return Object.assign({},t.options.crosshair,{zIndex:0})},e}(Zi);function ra(t,e,r,o){j([].concat(r?t.yAxis:t.xAxis)[e],o)}wt(ea,{xAxis:{},yAxis:{}}),j(ea.prototype,Qi);var oa=ea,ia="color",na="first",sa="max";Hn.current.register(Sn,[eo,ro,oo,no,"area","verticalArea","candlestick","ohlc","bullet","verticalBullet","boxPlot","verticalBoxPlot","rangeColumn","rangeBar","waterfall","horizontalWaterfall","rangeArea","verticalRangeArea"]),Hn.current.register(is,["scatter","scatterLine","bubble"]),Hn.current.register(ds,[io]),Hn.current.register(_s,["donut"]),Hn.current.register(qs,["funnel"]),Hn.current.register(Ts,["polarArea","polarLine","polarScatter"]),Hn.current.register(Gs,["radarArea","radarColumn","radarLine"]),Hn.current.register(oa,["heatmap"]),Yr.current.register([eo,ro,oo,no,"area","verticalArea"],[y],["category",ia,"noteText","errorLow","errorHigh"]),Yr.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],["from","to"],["category",ia,"noteText"]),Yr.current.register(["waterfall","horizontalWaterfall"],[y],["category",ia,"noteText","summary"]),Yr.current.register(["polarArea","polarLine","polarScatter"],[m,_],[ia]),Yr.current.register(["radarArea","radarColumn","radarLine"],[y],[ia]),Yr.current.register(["funnel"],[y],["category",ia,"visibleInLegend","visible"]),en.current.register([eo,ro,oo,no,"area","verticalArea","waterfall","horizontalWaterfall"],{value:sa,color:na,noteText:na,errorLow:"min",errorHigh:sa}),en.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],{from:"min",to:sa,color:na,noteText:na}),en.current.register(["radarArea","radarColumn","radarLine"],{value:sa,color:na}),Yr.current.register(["scatter","scatterLine","bubble"],[m,_],[ia,"noteText","xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Yr.current.register(["bubble"],[m,_,"size"],[ia,"category","noteText"]),Yr.current.register(["heatmap"],[m,_,y],[ia,"noteText"]),Yr.current.register(["candlestick","ohlc"],["open","high","low","close"],["category",ia,"downColor","noteText"]),en.current.register(["candlestick","ohlc"],{open:sa,high:sa,low:"min",close:sa,color:na,downColor:na,noteText:na}),Yr.current.register(["boxPlot","verticalBoxPlot"],["lower","q1","median","q3","upper","mean","outliers"],["category",ia,"noteText"]),en.current.register(["boxPlot","verticalBoxPlot"],{lower:sa,q1:sa,median:sa,q3:sa,upper:sa,mean:sa,outliers:na,color:na,noteText:na}),Yr.current.register(["bullet","verticalBullet"],["current","target"],["category",ia,"visibleInLegend","noteText"]),en.current.register(["bullet","verticalBullet"],{current:sa,target:sa,color:na,noteText:na}),Yr.current.register([io,"donut"],[y],["category",ia,"explode","visibleInLegend","visible"]);var aa=["category",y,m,_],la=function(t){function e(e,r,o,i){var n=this;void 0===i&&(i={}),t.call(this),this.observers=[],this.addObserver(i.observer),this.chartService=new Ae(this,i),this.chartService.theme=o,this._initElement(e);var s=j({},this.options,r);this._originalOptions=j({},s),this._theme=o,this._initTheme(s,o),this._initHandlers(),this._initSurface(),this.bindCategories(),xt.preloadFonts(r,(function(){n.fontLoaded=!0,n._destroyed||(n.trigger("init"),n._redraw(),n._attachEvents())}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initElement=function(t){for(this._setElementClass(t),t.style.position="relative";t.firstChild;)t.removeChild(t.firstChild);this.element=t},e.prototype._setElementClass=function(t){x(t,"k-chart")},e.prototype._initTheme=function(t,e){for(var r=[],o=t.series||[],i=0;i<o.length;i++)r.push(Object.assign({},o[i]));t.series=r,function(t){for(var e=aa,r=0;r<e.length;r++){var o=e[r]+"Axes";t[o]&&(t[e[r]+"Axis"]=t[o],delete t[o])}}(t),this.applyDefaults(t,e),null===t.seriesColors&&delete t.seriesColors,this.options=j({},e,t),this.applySeriesColors()},e.prototype.getSize=function(){var t=this.options.chartArea||{};return{width:t.width?parseInt(t.width,10):Math.floor(this.element.offsetWidth),height:t.height?parseInt(t.height,10):Math.floor(this.element.offsetHeight)}},e.prototype.resize=function(t){var e=this.getSize(),r=this._size,o=e.width>0||e.height>0;t||o&&(!r||e.width!==r.width||e.height!==r.height)?(this._size=e,this._resize(e,t),this.trigger("resize",e)):o&&this._selections&&Ot(this._selections,(function(t){return!t.visible}))&&(this._destroySelections(),this._setupSelection())},e.prototype._resize=function(){this._noTransitionsRedraw()},e.prototype.redraw=function(t){if(this.applyDefaults(this.options),this.applySeriesColors(),t){var e=this._model._plotArea,r=e.findPane(t);e.redraw(r)}else this._redraw()},e.prototype.getAxis=function(t){return Vr(t,this._plotArea.axes)},e.prototype.findAxisByName=function(t){return this.getAxis(t)},e.prototype.findPaneByName=function(t){for(var e=this._plotArea.panes,r=0;r<e.length;r++)if(e[r].options.name===t)return new Hr(e[r])},e.prototype.findPaneByIndex=function(t){var e=this._plotArea.panes;if(e[t])return new Hr(e[t])},e.prototype.plotArea=function(){return new Ur(this._plotArea)},e.prototype.toggleHighlight=function(t,e){var r,o,i,n=this._plotArea,s=(n.srcSeries||n.series||[])[0];T(e)?r=n.filterPoints(e):(R(e)?(o=e.series,i=e.category):o=i=e,r="donut"===s.type?pa(n.pointsBySeriesName(o),i):s.type===io||"funnel"===s.type?pa((n.charts[0]||{}).points,i):n.pointsBySeriesName(o));r&&this.togglePointsHighlight(t,r)},e.prototype.togglePointsHighlight=function(t,e){for(var r=this._highlight,o=0;o<e.length;o++)r.togglePointHighlight(e[o],t)},e.prototype.showTooltip=function(t){var e,r,o=this._sharedTooltip(),i=this._tooltip,n=this._plotArea;if(T(t)?(e=n.findPoint(t))&&o&&(r=e.categoryIx):o&&st(t)&&(r=n.categoryAxis.categoryIndex(t)),o){if(r>=0){var s=this._plotArea.pointsByCategoryIndex(r);i.showAt(s)}}else e&&i.show(e)},e.prototype.hideTooltip=function(){this._tooltip.hide()},e.prototype._initSurface=function(){var t=this.surface,e=this._surfaceWrap(),r=this.options.chartArea||{};r.width&&pt(e,{width:r.width}),r.height&&pt(e,{height:r.height}),t&&t.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=O.drawing.Surface.create(e,{type:this.options.renderAs}),this.surface.bind("mouseenter",this._surfaceMouseenterHandler),this.surface.bind("mouseleave",this._surfaceMouseleaveHandler))},e.prototype._surfaceWrap=function(){return this.element},e.prototype._redraw=function(){var t=this._getModel();this._size={width:t.options.width,height:t.options.height},this._destroyView(),this._model=t,this._plotArea=t._plotArea,t.renderVisual(),!1!==this.options.transitions&&t.traverse((function(t){t.animation&&t.animation.setup()})),this._initSurface(),this.surface.draw(t.visual),!1!==this.options.transitions&&t.traverse((function(t){t.animation&&t.animation.play()})),this._tooltip=this._createTooltip(),this._highlight=new An,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),da(this._plotArea.panes),this._navState||this._cancelDomEvents()},e.prototype.exportVisual=function(t){var e;if(t&&(t.width||t.height||t.options)){var r=this.options,o=j({},t.options,{chartArea:{width:t.width,height:t.height}});fa(this._originalOptions,o),this.options=j({},this._originalOptions,o),this._initTheme(this.options,this._theme),this.bindCategories();var i=this._getModel();i.renderVisual(),da(i._plotArea.panes),e=i.visual,this.options=r}else e=this.surface.exportVisual();return e},e.prototype._sharedTooltip=function(){return this._plotArea instanceof Sn&&this.options.tooltip&&this.options.tooltip.shared},e.prototype._createPannable=function(){var t=this.options;!1!==t.pannable&&(this._pannable=new jn(this._plotArea,t.pannable))},e.prototype._createZoomSelection=function(){var t=this.options.zoomable,e=(t||{}).selection;!1!==t&&!1!==e&&(this._zoomSelection=new In(this,e))},e.prototype._createMousewheelZoom=function(){var t=this.options.zoomable,e=(t||{}).mousewheel;!1!==t&&!1!==e&&(this._mousewheelZoom=new Bn(this,e))},e.prototype._toggleDragZoomEvents=function(){var t=this.options.pannable,e=this.options.zoomable,r=(e||{}).selection,o=(e||{}).mousewheel,i=!(t||!1!==e&&!1!==r||this.requiresHandlers(["dragStart","drag","dragEnd"])),n=(!1===e||!1===o)&&!this.requiresHandlers(["zoomStart","zoom","zoomEnd"]),s=this.element;this._dragZoomEnabled&&i&&n?(s.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):this._dragZoomEnabled||i&&n||(s.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!i,!n)},e.prototype._toggleDomEvents=function(t,e){var r=this.domEvents;r&&(r.toggleDrag&&r.toggleDrag(t),r.toggleZoom&&r.toggleZoom(e))},e.prototype._createTooltip=function(){var t=this.options.tooltip;return this._sharedTooltip()?this._createSharedTooltip(t):new Kn(this.chartService,t)},e.prototype._createSharedTooltip=function(t){return new Yn(this._plotArea,t)},e.prototype.applyDefaults=function(t,e){!function(t,e){var r,o,i,n=(e||{}).axisDefaults||{};function s(t){var e=(t||{}).color||o.color,i=j({},n,n[r],o,o[r],{line:{color:e},labels:{color:e},title:{color:e}},t);return delete i[r],i}for(var a=0;a<aa.length;a++)r=aa[a]+"Axis",o=t.axisDefaults||{},i=(i=[].concat(t[r])).map(s),t[r]=i.length>1?i:i[0]}(t,e),function(t,e){var r=t.series,o=r.length,i=t.seriesDefaults,n=j({},t.seriesDefaults),s=e?j({},e.seriesDefaults):{},a=j({},s);ca(n),ca(a);for(var l=0;l<o;l++){var p=r[l].type||t.seriesDefaults.type,c=j({data:[]},a,s[p],{tooltip:t.tooltip},n,i[p]);r[l]._defaults=c,r[l]=j({},c,r[l]),r[l].data=r[l].data||[]}}(t,e)},e.prototype.applySeriesColors=function(){for(var t=this.options,e=t.series,r=t.seriesColors||[],o=0;o<e.length;o++){var i=e[o],n=r[o%r.length],s=i._defaults;i.color=i.color||n,s&&(s.color=s.color||n)}},e.prototype._getModel=function(){var t=this.options,e=this._createPlotArea(),r=new re(this._modelOptions());return r.chart=this,r._plotArea=e,ue.buildTitle(t.title,r),t.legend&&t.legend.visible&&r.append(new Vn(e.options.legend,this.chartService)),r.append(e),r.reflow(),r},e.prototype._modelOptions=function(){var t=this.options,e=this.getSize();return j({transitions:t.transitions,width:e.width||600,height:e.height||400},t.chartArea)},e.prototype._createPlotArea=function(t){var e=this.options;return Hn.current.create(t?[]:e.series,e,this.chartService)},e.prototype._setupSelection=function(){for(var t=this._plotArea.axes,e=this._selections=[],r=0;r<t.length;r++){var o=t[r],i=o.options;if(o instanceof rr&&i.select&&!i.vertical){var n=o.range(),s=new Wn(this,o,j({min:n.min,max:n.max},i.select));e.push(s)}}},e.prototype._selectStart=function(t){return this.trigger("selectStart",t)},e.prototype._select=function(t){return this.trigger("select",t)},e.prototype._selectEnd=function(t){return this.trigger("selectEnd",t)},e.prototype._initHandlers=function(){this._clickHandler=this._click.bind(this),this._mousewheelHandler=this._mousewheel.bind(this),this._mouseleaveHandler=this._mouseleave.bind(this),this._surfaceMouseenterHandler=this._mouseover.bind(this),this._surfaceMouseleaveHandler=this._mouseout.bind(this),this._mousemove=Object(O.throttle)(this._mousemove.bind(this),20)},e.prototype.addObserver=function(t){t&&this.observers.push(t)},e.prototype.removeObserver=function(t){var e=this.observers.indexOf(t);e>=0&&this.observers.splice(e,1)},e.prototype.requiresHandlers=function(t){for(var e=this.observers,r=0;r<e.length;r++)if(e[r].requiresHandlers(t))return!0},e.prototype.trigger=function(t,e){void 0===e&&(e={}),"showTooltip"===t&&(e.anchor.point=this._toDocumentCoordinates(e.anchor.point)),e.sender=this;for(var r=this.observers,o=!1,i=0;i<r.length;i++)r[i].trigger(t,e)&&(o=!0);return o},e.prototype._attachEvents=function(){var t,e,r=this.element;this._touchAction=r.style.touchAction,nt(r,((t={}).contextmenu=this._clickHandler,t[ao]=this._mousewheelHandler,t.mouseleave=this._mouseleaveHandler,t)),this._shouldAttachMouseMove()&&nt(r,((e={}).mousemove=this._mousemove,e)),this.domEvents=Te.create(this.element,{start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)}),this._toggleDragZoomEvents()},e.prototype._mouseleave=function(t){this._hoveredPoint&&(this._hoveredPoint.out(this,t),this._hoveredPoint=null),this._plotArea.hovered&&(this.trigger("plotAreaLeave"),this._plotArea.hovered=!1)},e.prototype._cancelDomEvents=function(){this.domEvents&&this.domEvents.cancel&&this.domEvents.cancel()},e.prototype._gesturestart=function(t){this._mousewheelZoom&&!this._stopChartHandlers(t)&&(this._gestureDistance=t.distance,this._unsetActivePoint(),this.surface.suspendTracking())},e.prototype._gestureend=function(t){this._zooming&&!this._stopChartHandlers(t)&&(this.surface&&this.surface.resumeTracking(),this._zooming=!1,this.trigger("zoomEnd",{}))},e.prototype._gesturechange=function(t){var e=this._mousewheelZoom;if(e&&!this._stopChartHandlers(t)){t.preventDefault();var r=this._gestureDistance,o=-t.distance/r+1;if(Math.abs(o)>=.1){o=Math.round(10*o),this._gestureDistance=t.distance;var i={delta:o,axisRanges:ha(this._plotArea.axes),originalEvent:t};if(this._zooming||!this.trigger("zoomStart",i)){var n=this._eventCoordinates(t);this._zooming||(this._zooming=!0),(i.axisRanges=e.updateRanges(o,n))&&!this.trigger("zoom",i)&&e.zoom()}}}},e.prototype._mouseout=function(t){if(t.element){var e=this._drawingChartElement(t.element,t);e&&e.leave&&e.leave(this,t.originalEvent)}},e.prototype._start=function(t){var e=this._eventCoordinates(t);!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(e)&&(this.requiresHandlers(["dragStart","drag","dragEnd"])&&this._startNavigation(t,e,"dragStart"),this._pannable&&this._pannable.start(t)&&(this.surface.suspendTracking(),this._unsetActivePoint(),this._suppressHover=!0,this.chartService.panning=!0),this._zoomSelection&&this._zoomSelection.start(t)&&this.trigger("zoomStart",{axisRanges:ha(this._plotArea.axes),originalEvent:t}))},e.prototype._move=function(t){var e=this._navState,r=this._pannable;if(!this._stopChartHandlers(t)){if(r){var o=r.move(t);o&&!this.trigger("drag",{axisRanges:o,originalEvent:t})&&r.pan()}else if(e){for(var i={},n=e.axes,s=0;s<n.length;s++){var a=n[s];if(a.options.name){var l=a.options.vertical?t.y:t.x,p=l.startLocation-l.location;0!==p&&(i[a.options.name]=a.translateRange(p))}}e.axisRanges=i,this.trigger("drag",{axisRanges:i,originalEvent:t})}this._zoomSelection&&this._zoomSelection.move(t)}},e.prototype._end=function(t){if(!this._stopChartHandlers(t)){var e=this._pannable;if(e&&e.end(t)?(this.surface.resumeTracking(),this.trigger("dragEnd",{axisRanges:ha(this._plotArea.axes),originalEvent:t}),this._suppressHover=!1,this.chartService.panning=!1):this._endNavigation(t,"dragEnd"),this._zoomSelection){var r=this._zoomSelection.end(t);r&&!this.trigger("zoom",{axisRanges:r,originalEvent:t})&&(this._zoomSelection.zoom(),this.trigger("zoomEnd",{axisRanges:r,originalEvent:t}))}}},e.prototype._stopChartHandlers=function(t){var e=this._selections||[];if(!e.length)return!1;var r=this._eventCoordinates(t),o=this._plotArea.paneByPoint(r);if(o)for(var i=0;i<e.length;i++)if(e[i].onPane(o))return!0},e.prototype._mousewheelZoomRate=function(){var t=(this.options.zoomable||{}).mousewheel||{};return _t(t.rate,.3)},e.prototype._mousewheel=function(t){var e=this,r=rt(t),o=this._mousewheelZoom,i=this._eventCoordinates(t);if(!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(i))if(o){var n={delta:r,axisRanges:ha(this._plotArea.axes),originalEvent:t};!this._zooming&&this.trigger("zoomStart",n)||(t.preventDefault(),this._zooming||(this._unsetActivePoint(),this.surface.suspendTracking(),this._zooming=!0),this._mwTimeout&&clearTimeout(this._mwTimeout),n.axisRanges=o.updateRanges(r,i),n.axisRanges&&!this.trigger("zoom",n)&&o.zoom(),this._mwTimeout=setTimeout((function(){e.trigger("zoomEnd",n),e._zooming=!1,e.surface&&e.surface.resumeTracking()}),150))}else{var s=this._navState;if(!s)this._startNavigation(t,i,"zoomStart")||(s=this._navState);if(s){var a=s.totalDelta||r;s.totalDelta=a+r;for(var l=this._navState.axes,p={},c=0;c<l.length;c++){var h=l[c],u=h.options.name;u&&(p[u]=h.scaleRange(-a*e._mousewheelZoomRate(),i))}this.trigger("zoom",{delta:r,axisRanges:p,originalEvent:t}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._endNavigation(t,"zoomEnd")}),150)}}},e.prototype._startNavigation=function(t,e,r){var o=this._model._plotArea,i=o.findPointPane(e),n=o.axes.slice(0);if(i){var s=ha(n);this.trigger(r,{axisRanges:s,originalEvent:t})?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:s,pane:i,axes:n})}},e.prototype._endNavigation=function(t,e){this._navState&&(this.trigger(e,{axisRanges:this._navState.axisRanges,originalEvent:t}),this._suppressHover=!1,this._navState=null)},e.prototype._getChartElement=function(t,e){var r=this.surface.eventTarget(t);if(r)return this._drawingChartElement(r,t,e)},e.prototype._drawingChartElement=function(t,e,r){for(var o,i=t;i&&!o;)o=i.chartElement,i=i.parent;if(o)return o.aliasFor&&(o=o.aliasFor(e,this._eventCoordinates(e))),r&&(o=o.closest(r))&&o.aliasFor&&(o=o.aliasFor()),o},e.prototype._eventCoordinates=function(t){var e=ct(t);return this._toModelCoordinates(e.x,e.y)},e.prototype._elementPadding=function(){if(!this._padding){var t=D(this.element,["paddingLeft","paddingTop"]),e=t.paddingLeft,r=t.paddingTop;this._padding={top:r,left:e}}return this._padding},e.prototype._toDocumentCoordinates=function(t){var e=this._elementPadding(),r=lt(this.element);return{left:gt(t.x+e.left+r.left),top:gt(t.y+e.top+r.top)}},e.prototype._toModelCoordinates=function(t,e){var r=this.element,o=lt(r),i=this._elementPadding(),n=At(r).invert(),s=new O.geometry.Point(t-o.left-i.left,e-o.top-i.top).transform(n);return new Vt(s.x,s.y)},e.prototype._tap=function(t){var e=this,r=this.surface.eventTarget(t),o=this._drawingChartElement(r,t),i=this._sharedTooltip();this._startHover(r,t)||i||this._unsetActivePoint(),i&&this._trackSharedTooltip(this._eventCoordinates(t),t,!0),this._propagateClick(o,t),this.handlingTap=!0,setTimeout((function(){e.handlingTap=!1}),0)},e.prototype._click=function(t){var e=this._getChartElement(t);this._propagateClick(e,t)},e.prototype._propagateClick=function(t,e){for(var r=t;r;)r.click&&r.click(this,e),r=r.parent},e.prototype._startHover=function(t,e){if(this._suppressHover)return!1;var r=this._drawingChartElement(t,e,(function(t){return(t.hover||t.over)&&!(t instanceof Zi)})),o=this._activePoint,i=this._plotArea.series.length>1,n=this._hasInactiveOpacity();return this._updateHoveredPoint(r,e),r&&o!==r&&r.hover?(this._activePoint=r,this._sharedTooltip()||r.hover(this,e)||(this._displayTooltip(r),n?this._displayInactiveOpacity(r,i):this._highlight.show(r))):!r&&n&&(i&&this._activeChartInstance&&(this._updateSeriesOpacity(r,!0),this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._activeChartInstance=null),this._highlight&&this._highlight.hide(),this._activePoint=null),r},e.prototype._displayTooltip=function(t){j({},this.options.tooltip,t.options.tooltip).visible&&this._tooltip.show(t)},e.prototype._displayInactiveOpacity=function(t,e,r){var o=this._activeChartInstance=this._chartInstanceFromPoint(t);if(o)if(e)this._updateSeriesOpacity(t),this._applySeriesOpacity(o.children,null,!0),this._applySeriesOpacity(o.children,t.series),this._highlight.show(r||t);else{var i;if(!o.supportsPointInactiveOpacity())return void this._highlight.show(t);(i=this._getInactivePoints(t,o))&&i.length&&this._highlight.show(i,1-this._getInactiveOpacityForSeries(t.series))}},e.prototype._getInactivePoints=function(t,e){return this._getAllPointsOfType(e,t.constructor).filter((function(e){return e!==t}))},e.prototype._getAllPointsOfType=function(t,e){for(var r=[],o=0;o<t.children.length;o++){var i=t.children[o];i.constructor===e?r.push(i):i.children&&i.children.length&&(r=r.concat(this._getAllPointsOfType(i,e)))}return r},e.prototype._updateHoveredPoint=function(t,e){var r=this._hoveredPoint;r&&r!==t&&(r.out(this,e),this._hoveredPoint=null),t&&r!==t&&t.over&&(this._hoveredPoint=t,t.over(this,e))},e.prototype._updateSeriesOpacity=function(t,e){for(var r=this._plotArea,o=r.series.length,i=0;i<o;i++){var n=r.series[i],s=this._getDefaultOpacityForSeries(n),a=this._getInactiveOpacityForSeries(n);e||n===t.series?(n.opacity=s,n.line&&(n.line.opacity=s)):(n.defaultOpacity=s,n.opacity=a,n.line&&(n.line.opacity=a))}},e.prototype._applySeriesOpacity=function(t,e,r,o){for(var i=0;i<t.length;i++){var n=t[i],s=n.series||o;if(s&&(s.highlight||{}).visible&&n.visual){var a=o?o.opacity:n.series.opacity;(s!==e||r)&&n.visual.opacity(r?1:a)}n.children&&n.children.length&&this._applySeriesOpacity(n.children,e,r,n.series)}},e.prototype._chartInstanceFromPoint=function(t){for(var e=t.parent;e&&!e.plotArea;)e=e.parent;return e},e.prototype._hasInactiveOpacity=function(){var t=void 0!==this.options.seriesDefaults.highlight.inactiveOpacity,e=this.options.series.filter((function(t){return void 0!==t.highlight.inactiveOpacity})).length>0;return t||e},e.prototype._getInactiveOpacityForSeries=function(t){var e=this.options.seriesDefaults.highlight.inactiveOpacity;return t.highlight.inactiveOpacity||e||t.opacity||1},e.prototype._getDefaultOpacityForSeries=function(t){return t.defaultOpacity||t.opacity||1},e.prototype._mouseover=function(t){var e,r=this._startHover(t.element,t.originalEvent);r&&r.tooltipTracking&&!this._mouseMoveTrackHandler&&!this._sharedTooltip()&&(this._mouseMoveTrackHandler=this._mouseMoveTracking.bind(this),nt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)))},e.prototype._mouseMoveTracking=function(t){var e,r=this.options,o=this._tooltip,i=this._highlight,n=this._activePoint,s=this._eventCoordinates(t);if(this._plotArea.box.containsPoint(s)){if(n&&n.tooltipTracking&&n.series&&n.parent.getNearestPoint){var a=n.parent.getNearestPoint(s.x,s.y,n.seriesIx);if(a&&a!==n)if(this._activePoint=a,!a.hover(this,t))j({},r.tooltip,a.options.tooltip).visible&&o.show(a),i.show(a)}}else mt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)),this._unsetActivePoint(),this._mouseMoveTrackHandler=null},e.prototype._mousemove=function(t){var e=this._eventCoordinates(t),r=this._plotArea;if(this._trackCrosshairs(e),r.hover){var o=r.backgroundContainsPoint(e);o?(r.hovered=!0,this._plotArea.hover(this,t)):r.hovered&&!o&&(this.trigger("plotAreaLeave"),r.hovered=!1)}this._sharedTooltip()&&this._trackSharedTooltip(e,t)},e.prototype._trackCrosshairs=function(t){for(var e=this._plotArea.crosshairs,r=0;r<e.length;r++){var o=e[r];o.box.containsPoint(t)?o.showAt(t):o.hide()}},e.prototype._trackSharedTooltip=function(t,e,r){if(!this._suppressHover){var o=this.options.tooltip,i=this._plotArea,n=this._plotArea.categoryAxis,s=this._tooltip,a=this._highlight;if(i.backgroundContainsPoint(t)){var l=n.pointCategoryIndex(t);if(l!==this._tooltipCategoryIx||!this._sharedHighlight&&r){var p=i.pointsByCategoryIndex(l),c=p.map((function(t){return t.eventArgs(e)})),h=c[0]||{};h.categoryPoints=c,p.length>0&&!this.trigger("seriesHover",h)?(o.visible&&s.showAt(p,t),a.show(p),this._sharedHighlight=!0):s.hide(),this._tooltipCategoryIx=l}else r&&this._sharedHighlight&&(a.hide(),s.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(a.hide(),s.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1)}},e.prototype.hideElements=function(t){var e=this._plotArea;this._mousemove.cancel(),e.hideCrosshairs(),this._unsetActivePoint(t)},e.prototype._unsetActivePoint=function(t){var e=this._tooltip,r=this._highlight;this._activePoint=null,this._hoveredPoint=null,!e||t&&t.keepTooltipOpen||e.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1,r&&r.hide()},e.prototype._deferRedraw=function(){this._redraw()},e.prototype._clearRedrawTimeout=function(){this._redrawTimeout&&(clearInterval(this._redrawTimeout),this._redrawTimeout=null)},e.prototype.bindCategories=function(){for(var t=this.options,e=[].concat(t.categoryAxis),r=0;r<e.length;r++){var o=e[r];!1!==o.autoBind&&this.bindCategoryAxisFromSeries(o,r)}},e.prototype.bindCategoryAxisFromSeries=function(t,e){for(var r,o=this.options.series,i=o.length,n=new q,s=[],a=!1,l=0;l<i;l++){var p=o[l],c=p.categoryAxis===t.name||!p.categoryAxis&&0===e,h=p.data,u=h.length,f=p.categoryField&&c;if(a=f||a,f&&u>0)for(var d=(r=Vi(t,Kr(p.categoryField,h[0])))?zi:Kr,v=0;v<u;v++){var y=h[v],g=d(p.categoryField,y,this.chartService.intl);!r&&n.get(g)||(s.push([g,y]),r||n.set(g,!0))}}if(s.length>0){r&&(s=function(t,e){void 0===e&&(e=We);for(var r=function(t,e){void 0===e&&(e=We);for(var r=1,o=t.length;r<o;r++)if(e(t[r],t[r-1])<0){t.sort(e);break}return t}(t,e),o=r.length,i=o>0?[r[0]]:[],n=1;n<o;n++)0!==e(r[n],ft(i))&&i.push(r[n]);return i}(s,(function(t,e){return We(t[0],e[0])})));var m=function(t){for(var e=t.length,r=[],o=0;o<e;o++)for(var i=t[o],n=i.length,s=0;s<n;s++)r[s]=r[s]||[],r[s].push(i[s]);return r}(s);t.categories=m[0]}else a&&(t.categories=[])},e.prototype._isBindable=function(t){for(var e=Yr.current.valueFields(t),r=!0,o=0;o<e.length;o++){var i=e[o];if(i===y?i="field":i+="Field",!st(t[i])){r=!1;break}}return r},e.prototype._noTransitionsRedraw=function(){var t,e=this.options;!1!==e.transitions&&(e.transitions=!1,t=!0),this._redraw(),t&&(e.transitions=!0)},e.prototype._legendItemHover=function(t,e){var r,o=this._plotArea,i=this._highlight,n=(o.srcSeries||o.series)[t];if(r=Z(n.type,[io,"donut","funnel"])?o.findPoint((function(r){return r.series.index===t&&r.index===e})):o.pointsBySeriesIndex(t),this._hasInactiveOpacity()&&n.visible&&r){var s=o.series.length>1,a=r.length?r[0]:r;this._displayInactiveOpacity(a,s,r)}else i.show(r)},e.prototype._shouldAttachMouseMove=function(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers(["plotAreaHover","plotAreaLeave"])},e.prototype.updateMouseMoveHandler=function(){var t,e;mt(this.element,((t={}).mousemove=this._mousemove,t)),this._shouldAttachMouseMove()&&nt(this.element,((e={}).mousemove=this._mousemove,e))},e.prototype.applyOptions=function(t,e){fa(this._originalOptions,t),this._originalOptions=j(this._originalOptions,t),this.options=j({},this._originalOptions),e&&(this._theme=e,this.chartService.theme=e),this._initTheme(this.options,this._theme),this._toggleDragZoomEvents()},e.prototype.setOptions=function(t,e){this.applyOptions(t,e),this.bindCategories(),this.redraw(),this.updateMouseMoveHandler()},e.prototype.setDirection=function(t){this.chartService.rtl=Boolean(t),this.surface&&"svg"===this.surface.type&&this._destroySurface()},e.prototype.setIntlService=function(t){this.chartService.intl=t},e.prototype.noTransitionsRedraw=function(){this._noTransitionsRedraw()},e.prototype.destroy=function(){var t,e;this._destroyed=!0,mt(this.element,((t={}).contextmenu=this._clickHandler,t[ao]=this._mousewheelHandler,t.mousemove=this._mousemove,t.mouseleave=this._mouseleaveHandler,t)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&mt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)),this._destroyView(),this._destroySurface(),this._clearRedrawTimeout()},e.prototype._destroySurface=function(){var t=this.surface;t&&(t.unbind("mouseenter",this._surfaceMouseenterHandler),t.unbind("mouseleave",this._surfaceMouseleaveHandler),t.destroy(),this.surface=null)},e.prototype._destroySelections=function(){var t=this._selections;if(t)for(;t.length>0;)t.shift().destroy()},e.prototype._destroyView=function(){var t=this._model;t&&(t.destroy(),this._model=null),this._unsetActivePoint(),this._destroySelections(),this._tooltip&&this._tooltip.destroy(),this._highlight&&this._highlight.destroy(),this._zoomSelection&&(this._zoomSelection.destroy(),delete this._zoomSelection),this._pannable&&(this._pannable.destroy(),delete this._pannable),this._mousewheelZoom&&(this._mousewheelZoom.destroy(),delete this._mousewheelZoom)},e}(O.Class);function pa(t,e){if(t)for(var r=0;r<t.length;r++)if(t[r].category===e)return[t[r]]}function ca(t){delete t.bar,delete t.column,delete t.rangeColumn,delete t.line,delete t.verticalLine,delete t.pie,delete t.donut,delete t.area,delete t.verticalArea,delete t.scatter,delete t.scatterLine,delete t.bubble,delete t.candlestick,delete t.ohlc,delete t.boxPlot,delete t.bullet,delete t.verticalBullet,delete t.polarArea,delete t.polarLine,delete t.radarArea,delete t.radarLine,delete t.waterfall}function ha(t){for(var e={},r=0;r<t.length;r++){var o=t[r],i=o.options.name;i&&(e[i]=o.range())}return e}var ua=["data","categories"];function fa(t,e){for(var r in e)if(!Z(r,ua)&&e.hasOwnProperty(r)){var o=e[r],i=t[r];if(st(i)){var n=null===o;n||!st(o)?(delete t[r],n&&delete e[r]):i&&R(o)&&R(i)&&fa(i,o)}}}function da(t){for(var e=0;e<t.length;e++)t[e].notifyRender()}wt(la,{renderAs:"",chartArea:{},legend:{visible:!0,labels:{}},categoryAxis:{},seriesDefaults:{type:ro,data:[],highlight:{visible:!0},labels:{},negativeValues:{visible:!1}},series:[],seriesColors:null,tooltip:{visible:!1},transitions:!0,valueAxis:{},plotArea:{},title:{},xAxis:{},yAxis:{},panes:[{}],pannable:!1,zoomable:!1});var va=la,ya=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._slotAnchor=function(t,e){var r=this.plotArea.categoryAxis.options.vertical,o=r?{horizontal:"left",vertical:"center"}:{horizontal:"center",vertical:"bottom"};return{point:r?new Vt(this.plotArea.box.x2,e.center().y):new Vt(e.center().x,-2),align:o}},e.prototype._defaultAnchor=function(t,e){return this._slotAnchor({},e)},e}(Yn),ga=[eo,"bullet"];function ma(t){for(var e=[],r=0;r<t.length;r++){var o=t[r];e[r]=o.style.display,o.style.display="none"}return e}function _a(t,e){for(var r=0;r<t.length;r++)t[r].style.display=e[r]}function ba(t){return P(t)?[t]:t}var xa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._setElementClass=function(t){x(t,"k-sparkline")},e.prototype._initElement=function(e){t.prototype._initElement.call(this,e),this._initialWidth=Math.floor(pt(e).width)},e.prototype._resize=function(){var e=this.element,r=ma(e.childNodes);this._initialWidth=Math.floor(pt(e).width),_a(e.childNodes,r),t.prototype._resize.call(this)},e.prototype._modelOptions=function(){var t=this.options,e=this._surfaceWrap(),r=ma(e.childNodes),o=document.createElement("span");o.innerHTML=" ",e.appendChild(o);var i=j({width:this._autoWidth,height:pt(e).height,transitions:t.transitions},t.chartArea,{inline:!0,align:!1});return pt(e,{width:i.width,height:i.height}),e.removeChild(o),_a(e.childNodes,r),this.surface&&this.surface.resize(),i},e.prototype._surfaceWrap=function(){if(!this.stage){var t=this.stage=document.createElement("span");this.element.appendChild(t)}return this.stage},e.prototype._createPlotArea=function(e){var r=t.prototype._createPlotArea.call(this,e);return this._autoWidth=this._initialWidth||this._calculateWidth(r),r},e.prototype._calculateWidth=function(t){for(var e=this.options,r=z(e.chartArea.margin),o=t.charts,i=this._surfaceWrap(),n=0,s=0;s<o.length;s++){var a=o[s],l=(a.options.series||[])[0];if(l){if(l.type===eo)return 150;if("bullet"===l.type)return 150;if(l.type===io)return pt(i).height;var p=a.categoryAxis;if(p){var c=p.categoriesCount()*(!a.options.isStacked&&Z(l.type,[ro,"verticalBullet"])?a.seriesOptions.length:1);n=Math.max(n,c)}}}var h=n*e.pointWidth;return h>0&&(h+=r.left+r.right),h},e.prototype._createSharedTooltip=function(t){return new ya(this._plotArea,t)},e.normalizeOptions=function(t){var e=ba(t);return(e=b(e)?{seriesDefaults:{data:e}}:j({},e)).series||(e.series=[{data:ba(e.data)}]),j(e,{seriesDefaults:{type:e.type}}),(Z(e.series[0].type,ga)||Z(e.seriesDefaults.type,ga))&&(e=j({},{categoryAxis:{crosshair:{visible:!1}}},e)),e},e}(va);wt(xa,{chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5,panes:[{clip:!1}]});var wa=xa,Ca=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this._initialOpacity=parseFloat(D(this.element,"opacity").opacity)},e.prototype.step=function(t){D(this.element,{opacity:String(Q(this._initialOpacity,0,t))})},e.prototype.abort=function(){t.prototype.abort.call(this),D(this.element,{display:"none",opacity:String(this._initialOpacity)})},e.prototype.cancel=function(){t.prototype.abort.call(this),D(this.element,{opacity:String(this._initialOpacity)})},e}(O.drawing.Animation);function Oa(t,e){var r=document.createElement("div");return r.className=t,e&&(r.style.cssText=e),r}var ka=function(t){function e(e,r,o){t.call(this),this.options=j({},this.options,o),this.container=e,this.chartService=r;var i=D(e,["paddingLeft","paddingTop"]);this.chartPadding={top:i.paddingTop,left:i.paddingLeft},this.createElements(),e.appendChild(this.element)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createElements=function(){var t=this.element=Oa("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),e=this.tooltip=Oa("k-tooltip k-chart-tooltip"),r=this.scroll=Oa("k-scroll");e.innerHTML=" ",t.appendChild(e),t.appendChild(r)},e.prototype.show=function(t,e,r){var o=this.element,i=this.options,n=this.scroll,s=this.tooltip,a=Ne(Xe(t)+Xe(e-t)/2),l=.4*r.width(),p=r.center().x-l,c=(r.center().x-p)/(i.max-i.min),h=a-i.min,u=this.chartService.intl.format(i.format,t,e),f=U(i);this.clearHideTimeout(),this._visible||(D(o,{visibility:"hidden",display:"block"}),this._visible=!0),f&&(u=f({from:t,to:e})),s.innerHTML=u,D(s,{left:r.center().x-s.offsetWidth/2,top:r.y1});var d=D(s,["marginTop","borderTopWidth","height"]);D(n,{width:l,left:p+h*c,top:r.y1+d.marginTop+d.borderTopWidth+d.height/2}),D(o,{visibility:"visible"})},e.prototype.clearHideTimeout=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideAnimation&&this._hideAnimation.cancel()},e.prototype.hide=function(){var t=this;this.clearHideTimeout(),this._hideTimeout=setTimeout((function(){t._visible=!1,t._hideAnimation=new Ca(t.element),t._hideAnimation.setup(),t._hideAnimation.play()}),this.options.hideDelay)},e.prototype.destroy=function(){this.clearHideTimeout(),this.container&&this.container.removeChild(this.element),delete this.container,delete this.chartService,delete this.element,delete this.tooltip,delete this.scroll},e}(O.Class);wt(ka,{format:"{0:d} - {1:d}",hideDelay:500});var Sa=ka,Pa="_navigator",Aa=Pa;function Ma(){}var Ta=function(t){function e(e){var r;t.call(this),this.chart=e;var o=this.options=j({},this.options,e.options.navigator),i=o.select;i&&(i.from=this.parseDate(i.from),i.to=this.parseDate(i.to)),st(o.hint.visible)||(o.hint.visible=o.visible),this.chartObserver=new J(this,((r={}).drag="_drag",r.dragEnd="_dragEnd",r.zoom="_zoom",r.zoomEnd="_zoomEnd",r)),e.addObserver(this.chartObserver)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parseDate=function(t){return $e(this.chart.chartService.intl,t)},e.prototype.clean=function(){this.selection&&(this.selection.destroy(),this.selection=null),this.hint&&(this.hint.destroy(),this.hint=null)},e.prototype.destroy=function(){this.chart&&(this.chart.removeObserver(this.chartObserver),delete this.chart),this.clean()},e.prototype.redraw=function(){this._redrawSelf(),this.initSelection()},e.prototype.initSelection=function(){var t,e=this.chart,r=this.options,o=this.mainAxis(),i=o.roundedRange(),n=i.min,s=i.max,a=r.select,l=a.from,p=a.to,c=a.mousewheel,h=(t=o,Ma.prototype=t,new Ma);0!==o.categoriesCount()&&(this.clean(),h.box=o.box,this.selection=new Wn(e,h,{min:n,max:s,from:l||n,to:p||s,mousewheel:_t(c,{zoom:"left"}),visible:r.visible},new J(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),r.hint.visible&&(this.hint=new Sa(e.element,e.chartService,{min:n,max:s,template:U(r.hint),format:r.hint.format})))},e.prototype.setRange=function(){var t=this.chart._createPlotArea(!0).namedCategoryAxes[Aa].roundedRange(),e=t.min,r=t.max,o=this.options.select||{},i=o.from||e;i<e&&(i=e);var n=o.to||r;n>r&&(n=r),this.options.select=j({},o,{from:i,to:n}),this.filterAxes()},e.prototype._redrawSelf=function(t){var e=this.chart._plotArea;e&&e.redraw(ft(e.panes),t)},e.prototype.redrawSlaves=function(){var t=this.chart,e=t._plotArea,r=e.panes.slice(0,-1);e.srcSeries=t.options.series,e.options.categoryAxis=t.options.categoryAxis,e.clearSeriesPointsCache(),e.redraw(r)},e.prototype._drag=function(t){var e,r=this.chart,o=this.selection,i=r._eventCoordinates(t.originalEvent),n=this.mainAxis(),s=n.roundedRange(),a=n.pane.box.containsPoint(i),l=r._plotArea.categoryAxis,p=t.axisRanges[l.options.name],c=this.options.select;if(p&&!a&&o){e=c.from&&c.to?Xe(c.to)-Xe(c.from):Xe(o.options.to)-Xe(o.options.from);var h=Ne(dt(Xe(p.min),s.min,Xe(s.max)-e)),u=Ne(dt(Xe(h)+e,Xe(s.min)+e,s.max));this.options.select={from:h,to:u},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),o.set(h,u),this.showHint(h,u)}},e.prototype._dragEnd=function(){this.filterAxes(),this.filter(),this.redrawSlaves(),this.hint&&this.hint.hide()},e.prototype.readSelection=function(){var t=this.selection.options,e=t.from,r=t.to,o=this.options.select;o.from=e,o.to=r},e.prototype.filterAxes=function(){var t=this.options.select;void 0===t&&(t={});for(var e=this.chart.options.categoryAxis,r=t.from,o=t.to,i=0;i<e.length;i++){var n=e[i];n.pane!==Pa&&(n.min=r,n.max=o)}},e.prototype.filter=function(){var t=this.chart,e=this.options.select;if(t.requiresHandlers(["navigatorFilter"])){var r=this.mainAxis(),o={from:e.from,to:e.to};if("category"!==r.options.type){var i=new hr(j({baseUnit:"fit"},t.options.categoryAxis[0],{categories:[e.from,e.to]}),t.chartService).options;o.from=Ue(i.min,-i.baseUnitStep,i.baseUnit),o.to=Ue(i.max,i.baseUnitStep,i.baseUnit)}this.chart.trigger("navigatorFilter",o)}},e.prototype._zoom=function(t){var e=this.chart._plotArea.categoryAxis,r=this.selection,o=this.options,i=o.select,n=o.liveDrag,s=this.mainAxis(),a=t.delta;if(r){var l=s.categoryIndex(r.options.from),p=s.categoryIndex(r.options.to),c=this.chart._eventCoordinates(t.originalEvent);t.originalEvent.preventDefault(),Math.abs(a)>1&&(a*=3),p-l>1?(r.zoom(a,c),this.readSelection()):(e.options.min=i.from,i.from=e.scaleRange(-t.delta*this.chart._mousewheelZoomRate(),c).min),n&&(this.filterAxes(),this.redrawSlaves()),r.set(i.from,i.to),this.showHint(this.options.select.from,this.options.select.to)}},e.prototype._zoomEnd=function(t){this._dragEnd(t)},e.prototype.showHint=function(t,e){var r=this.chart._plotArea;this.hint&&this.hint.show(t,e,r.backgroundBox())},e.prototype._selectStart=function(t){return this.chart._selectStart(t)},e.prototype._select=function(t){return this.showHint(t.from,t.to),this.chart._select(t)},e.prototype._selectEnd=function(t){return this.hint&&this.hint.hide(),this.readSelection(),this.filterAxes(),this.filter(),this.redrawSlaves(),this.chart._selectEnd(t)},e.prototype.mainAxis=function(){var t=this.chart._plotArea;if(t)return t.namedCategoryAxes[Aa]},e.prototype.select=function(t,e){var r=this.options.select;return t&&e&&(r.from=this.parseDate(t),r.to=this.parseDate(e),this.filterAxes(),this.filter(),this.redrawSlaves(),this.selection.set(t,e)),{from:r.from,to:r.to}},e.setup=function(t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),!t.__navi){t.__navi=!0;var o=j({},r.navigator,t.navigator),i=t.panes=[].concat(t.panes),n=j({},o.pane,{name:Pa});o.visible||(n.visible=!1,n.height=.1),i.push(n),e.attachAxes(t,o),e.attachSeries(t,o,r)}},e.attachAxes=function(t,e){var r=e.series||[],o=t.categoryAxis=[].concat(t.categoryAxis),i=t.valueAxis=[].concat(t.valueAxis),n=0===Di(r,so).length,s=j({type:"date",pane:Pa,roundToBaseUnit:!n,justified:n,_collapse:!1,majorTicks:{visible:!0},tooltip:{visible:!1},labels:{step:1},autoBind:e.autoBindElements,autoBaseUnitSteps:{minutes:[1],hours:[1,2],days:[1,2],weeks:[],months:[1],years:[1]}}),a=e.categoryAxis;o.push(j({},s,{maxDateGroups:200},a,{name:Aa,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),j({},s,a,{name:Aa+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),j({},s,a,{name:Aa+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),i.push(j({name:Aa,pane:Pa,majorGridLines:{visible:!1},visible:!1},e.valueAxis))},e.attachSeries=function(t,e,r){for(var o=t.series=t.series||[],i=[].concat(e.series||[]),n=r.seriesColors,s=e.seriesDefaults,a=0;a<i.length;a++)o.push(j({color:n[a%n.length],categoryField:e.dateField,visibleInLegend:!1,tooltip:{visible:!1}},s,i[a],{axis:Aa,categoryAxis:Aa,autoBind:e.autoBindElements}))},e}(O.Class),Ea=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.applyDefaults=function(e,r){var o=pt(this.element).width||600,i=r,n={seriesDefaults:{categoryField:e.dateField},axisDefaults:{categoryAxis:{name:"default",majorGridLines:{visible:!1},labels:{step:2},majorTicks:{visible:!1},maxDateGroups:Math.floor(o/28)}}};i&&(i=j({},i,n)),Ta.setup(e,i),t.prototype.applyDefaults.call(this,e,i)},e.prototype._setElementClass=function(t){x(t,"k-chart k-stockchart")},e.prototype.setOptions=function(e){this.destroyNavigator(),t.prototype.setOptions.call(this,e)},e.prototype.noTransitionsRedraw=function(){var t=this.options.transitions;this.options.transitions=!1,this._fullRedraw(),this.options.transitions=t},e.prototype._resize=function(){this.noTransitionsRedraw()},e.prototype._redraw=function(){var t=this.navigator;!this._dirty()&&t&&t.options.partialRedraw?t.redrawSlaves():this._fullRedraw()},e.prototype._dirty=function(){var t=this.options,e=K([].concat(t.series,t.navigator.series),(function(t){return t&&t.visible})).length,r=this._seriesCount!==e;return this._seriesCount=e,r},e.prototype._fullRedraw=function(){var e=this.navigator;e||(e=this.navigator=new Ta(this),this.trigger("navigatorCreated",{navigator:e})),e.clean(),e.setRange(),t.prototype._redraw.call(this),e.initSelection()},e.prototype._trackSharedTooltip=function(e){var r=this._plotArea.paneByPoint(e);r&&r.options.name===Pa?this._unsetActivePoint():t.prototype._trackSharedTooltip.call(this,e)},e.prototype.bindCategories=function(){t.prototype.bindCategories.call(this),this.copyNavigatorCategories()},e.prototype.copyNavigatorCategories=function(){for(var t,e=[].concat(this.options.categoryAxis),r=0;r<e.length;r++){var o=e[r];o.name===Aa?t=o.categories:t&&o.pane===Pa&&(o.categories=t)}},e.prototype.destroyNavigator=function(){this.navigator&&(this.navigator.destroy(),this.navigator=null)},e.prototype.destroy=function(){this.destroyNavigator(),t.prototype.destroy.call(this)},e.prototype._stopChartHandlers=function(e){var r=this._eventCoordinates(e),o=this._plotArea.paneByPoint(r);return t.prototype._stopChartHandlers.call(this,e)||o&&o.options.name===Pa},e.prototype._toggleDragZoomEvents=function(){this._dragZoomEnabled||(this.element.style.touchAction="none",this._dragZoomEnabled=!0)},e}(va);wt(Ea,{dateField:"date",axisDefaults:{categoryAxis:{type:"date",baseUnit:"fit",justified:!0},valueAxis:{narrowRange:!0,labels:{format:"C"}}},navigator:{select:{},seriesDefaults:{markers:{visible:!1},tooltip:{visible:!0},line:{width:2}},hint:{},visible:!0},tooltip:{visible:!0},legend:{visible:!1}});var ja=Ea,Ra=Math.PI/180;function Ia(t,e){var r=t.getOrigin(),o=t.getSize(),i=z(e);return t.setOrigin([r.x-i.left,r.y-i.top]),t.setSize([o.width+(i.left+i.right),o.height+(i.top+i.bottom)]),t}var Ba=O.drawing.Group,La=O.drawing.Path,Da=O.drawing.Text;function za(t,e){var r=t.box,o=t.children[0].box,i=e.border||{},n=e.background||"",s=La.fromRect(new O.geometry.Rect([r.x1,r.y1],[r.width(),r.height()]),{stroke:{}}),a=new Da(t.text,new O.geometry.Point(o.x1,o.y1),{font:e.font,fill:{color:e.color}}),l=Ia(a.bbox().clone(),e.padding),p=La.fromRect(l,{stroke:{color:i.width?i.color:"",width:i.width,opacity:i.opacity,dashType:i.dashType,lineJoin:"round",lineCap:"round"},fill:{color:n}}),c=new Ba;return c.append(s),c.append(p),c.append(a),c}function Va(t,e,r){var o=st(t.from)?t.from:f,i=st(t.to)?t.to:u;return t.from=Math.max(Math.min(i,o),e),t.to=Math.min(Math.max(i,o),r),t}function Na(t,e){var r=z(e);return r.left=-r.left,r.top=-r.top,r.right=-r.right,r.bottom=-r.bottom,Ia(t,r)}var Ha=O.drawing.Path,Ua=O.drawing.Surface,Fa=function(t){function e(e,r,o,i){void 0===i&&(i={}),t.call(this),this.element=e,this.theme=o,this.contextService=new Ae(this,i),this._originalOptions=j({},this.options,r),this.options=j({},this._originalOptions),this._initTheme(o),this.redraw()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.surface&&(this.surface.destroy(),this.surface=null),delete this.element,delete this.surfaceElement},e.prototype.value=function(t){var e=this.pointers[0];if(0===arguments.length)return e.value();e.value(t),this._setValueOptions(t)},e.prototype._draw=function(){var t=this.surface;t.clear(),t.draw(this._visuals)},e.prototype.exportVisual=function(){return this._visuals},e.prototype.allValues=function(t){var e=this.pointers,r=[];if(0===arguments.length){for(var o=0;o<e.length;o++)r.push(e[o].value());return r}if(b(t))for(var i=0;i<t.length;i++)P(t[i])&&e[i].value(t[i]);this._setValueOptions(t)},e.prototype._setValueOptions=function(t){for(var e=[].concat(this.options.pointer),r=[].concat(t),o=0;o<r.length;o++)e[o].value=r[o]},e.prototype.resize=function(){this.noTransitionsRedraw()},e.prototype.noTransitionsRedraw=function(){var t=this.options.transitions;this._toggleTransitions(!1),this.redraw(),this._toggleTransitions(t)},e.prototype.redraw=function(){var t=this._surfaceSize(),e=new O.geometry.Rect([0,0],[t.width,t.height]);this._initSurface(),this.gaugeArea=this._createGaugeArea(),this._createModel();var r=Na(e.bbox(),this._gaugeAreaMargin);this.reflow(r)},e.prototype.setOptions=function(t,e){this._originalOptions=j(this._originalOptions,t),this.options=j({},this._originalOptions),this._initTheme(e),this.redraw()},e.prototype.setDirection=function(t){this.contextService.rtl=Boolean(t),this.surface&&"svg"===this.surface.type&&(this.surface.destroy(),this.surface=null)},e.prototype.setIntlService=function(t){this.contextService.intl=t},e.prototype._initTheme=function(t){var e=t||this.theme||{};this.theme=e,this.options=j({},e,this.options);var r=this.options,o=r.pointer;if(b(o)){for(var i=[],n=0;n<o.length;n++)i.push(j({},e.pointer,o[n]));r.pointer=i}},e.prototype._createGaugeArea=function(){var t=this.options.gaugeArea,e=this.surface.size(),r=t.border||{},o=new O.geometry.Rect([0,0],[e.width,e.height]);return this._gaugeAreaMargin=t.margin||5,r.width>0&&(o=Na(o,r.width)),Ha.fromRect(o,{stroke:{color:r.width?r.color:"",width:r.width,dashType:r.dashType,lineJoin:"round",lineCap:"round"},fill:{color:t.background}})},e.prototype._initSurface=function(){var t=this.options,e=this.surface,r=this._surfaceElement(),o=this._surfaceSize();pt(r,o),e&&e.options.type===t.renderAs?(this.surface.clear(),this.surface.resize()):(e&&e.destroy(),this.surface=Ua.create(r,{type:t.renderAs}))},e.prototype._surfaceSize=function(){var t=this.options,e=this._getSize();return t.gaugeArea&&j(e,t.gaugeArea),e},e.prototype._surfaceElement=function(){return this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.element.appendChild(this.surfaceElement)),this.surfaceElement},e.prototype.getSize=function(){return this._getSize()},e.prototype._getSize=function(){var t=this.element,e=this._defaultSize(),r=t.offsetWidth,o=t.offsetHeight;return r||(r=e.width),o||(o=e.height),{width:r,height:o}},e.prototype._defaultSize=function(){return{width:200,height:200}},e.prototype._toggleTransitions=function(t){this.options.transitions=t;for(var e=0;e<this.pointers.length;e++)this.pointers[e].options.animation.transitions=t},e}(O.Class);wt(Fa,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}});var Ga=Fa,Wa=O.drawing.Path,Ka=O.drawing.Group,Xa=O.geometry.Point;function Ya(t,e){var r,o,i=t.position,n=t.tickX,s=t.tickY;return t.vertical?(r=new Xa(n,i),o=new Xa(n+e.size,i)):(r=new Xa(i,s),o=new Xa(i,s+e.size)),new Wa({stroke:{color:e.color,width:e.width}}).moveTo(r).lineTo(o)}function qa(t,e,r,o){var i=e.length;if(o.visible)for(var n=r.mirror,s=r.lineBox,a=o.skip;a<i;a+=o.step)a%o.skipUnit!=0&&(r.tickX=n?s.x2:s.x2-o.size,r.tickY=n?s.y1-o.size:s.y1,r.position=e[a],t.append(Ya(r,o)))}var Za=function(t){function e(e,r){var o=e||{};!st(o.reverse)&&!1===o.vertical&&(r||{}).rtl&&(o=Object.assign({},o,{reverse:!0})),t.call(this,0,1,o,r),this.options.minorUnit=this.options.minorUnit||this.options.majorUnit/10}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=j({},this.options,t);return(e=j({},e,{labels:{mirror:e.mirror}})).majorUnit=e.majorUnit||zt(e.min,e.max),e},e.prototype.initFields=function(){},e.prototype.render=function(){var t=this.elements=new Ka,e=this.renderLabels(),r=this.renderLine(),o=this.renderTicks(),i=this.renderRanges();return t.append(r,e,o,i),t},e.prototype.renderRanges=function(){for(var t=this.options,e=t.min,r=t.max,o=t.vertical,i=t.labels.mirror,n=t.ranges||[],s=new Ka,a=n.length,l=t.rangeSize||t.minorTicks.size/2,p=0;p<a;p++){var c=Va(n[p],e,r),h=this.getSlot(c.from,c.to),u=o?this.lineBox():h,f=o?h:this.lineBox();o?u.x1-=l*(i?-1:1):f.y2+=l*(i?-1:1),s.append(Wa.fromRect(new O.geometry.Rect([u.x1,f.y1],[u.x2-u.x1,f.y2-f.y1]),{fill:{color:c.color,opacity:c.opacity},stroke:{}}))}return s},e.prototype.renderLabels=function(){for(var t=this.labels,e=this.options,r=new Ka,o=0;o<t.length;o++)r.append(za(t[o],e.labels));return r},e.prototype.renderLine=function(){var t=this.options.line,e=this.lineBox(),r=new Ka;if(t.width>0&&t.visible){var o=new Wa({stroke:{color:t.color,dashType:t.dashType,width:t.width}});o.moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),r.append(o)}return r},e.prototype.renderTicks=function(){var t=new Ka,e=this.options,r=e.majorTicks.visible?e.majorUnit:0,o={vertical:e.vertical,mirror:e.labels.mirror,lineBox:this.lineBox()};return qa(t,this.getMajorTickPositions(),o,e.majorTicks),qa(t,this.getMinorTickPositions(),o,j({},{skipUnit:r/e.minorUnit},e.minorTicks)),t},e}(mr);wt(Za,{min:0,max:50,majorTicks:{size:15,align:"inside",color:n,width:.5,visible:!0},minorTicks:{size:10,align:"inside",color:n,width:.5,visible:!0},line:{width:.5},labels:{position:"inside",padding:2},mirror:!1,_alignLines:!1});var Qa=Za,$a=function(t){function e(e,r){t.call(this);var o=e.options,i=o.min,n=o.max,s=this.options=j({},this.options,r);s.fill=s.color,this.scale=e,st(s.value)?s.value=dt(s.value,i,n):s.value=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.value=function(t){var e=this.options,r=e.value;if(0===arguments.length)return r;var o=this.scale.options,i=o.min,n=o.max;e._oldValue=st(e._oldValue)?e.value:i,e.value=dt(t,i,n),this.elements&&this.repaint()},e}(O.Class);wt($a,{color:n});var Ja=$a,tl=function(t){function e(e,r){t.call(this,e,r),this.options=j({track:{visible:st(r.track)}},this.options)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(){var t,e,r,o=this.options,i=this.scale,n=i.options,s=n.mirror,a=n.vertical,l=i.lineBox(),p=o.track.size||o.size,c=o.size/2,h=z(o.margin),u=a?h[s?"left":"right"]:h[s?"bottom":"top"];u=s?-u:u,a?(r=new Ht(l.x1+u,l.y1,l.x1+u,l.y2),s?r.x1-=p:r.x2+=p,"barPointer"!==o.shape&&(t=e=new Ht(l.x2+u,l.y1-c,l.x2+u,l.y2+c))):(r=new Ht(l.x1,l.y1-u,l.x2,l.y1-u),s?r.y2+=p:r.y1-=p,"barPointer"!==o.shape&&(t=e=new Ht(l.x1-c,l.y1-u,l.x2+c,l.y1-u))),this.trackBox=r,this.pointerRangeBox=e,this.box=t||r.clone().pad(o.border.width)},e.prototype.getElementOptions=function(){var t=this.options;return{fill:{color:t.color,opacity:t.opacity},stroke:st(t.border)?{color:t.border.width?t.border.color||t.color:"",width:t.border.width,dashType:t.border.dashType,opacity:t.opacity}:null}},e.prototype._margin=function(){var t=this.scale,e=this.options,r=t.options,o=r.mirror,i=r.vertical,n=z(e.margin);return i?n[o?"left":"right"]:n[o?"bottom":"top"]},e}(Ja);wt(tl,{shape:"barPointer",track:{border:{width:1}},color:n,border:{width:1},opacity:1,margin:z(3),animation:{type:"barPointer"},visible:!0});var el=tl,rl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.options,e=t.margin,r=t.from,o=t.to,i=t.vertical,n=i?"x1":"y1";t.mirror===i?(r[n]-=e,o[n]-=e):(r[n]+=e,o[n]+=e);var s=this.fromScale=new O.geometry.Point(r.x1,r.y1),a=this.toScale=new O.geometry.Point(o.x1,o.y1);0!==t.duration&&(t.duration=Math.max(s.distanceTo(a)/t.duration*1e3,1))},e.prototype.step=function(t){var e=Q(this.fromScale.x,this.toScale.x,t),r=Q(this.fromScale.y,this.toScale.y,t);this.element.transform(O.geometry.transform().translate(e,r))},e}(O.drawing.Animation);wt(rl,{easing:"linear",duration:250}),O.drawing.AnimationFactory.current.register("arrowPointer",rl);var ol=rl,il=O.geometry.Point,nl=O.drawing.Path,sl=function(t){function e(e,r){t.call(this,e,r),st(this.options.size)||(this.options.size=.6*this.scale.options.majorTicks.size)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointerShape=function(){var t=this.scale,e=this.options.size,r=e/2,o=t.options.mirror?-1:1;return t.options.vertical?[new il(0,0-r),new il(0-o*e,0),new il(0,0+r)]:[new il(0-r,0),new il(0,0+o*e),new il(0+r,0)]},e.prototype.repaint=function(){var t=this.scale,e=this.options,r=new ol(this.elements,j(e.animation,{vertical:t.options.vertical,mirror:t.options.mirror,margin:this._margin(e.margin),from:t.getSlot(e._oldValue),to:t.getSlot(e.value)}));!1===e.animation.transitions&&(r.options.duration=0),r.setup(),r.play()},e.prototype.render=function(){var t=this.scale,e=this.options,r=this.getElementOptions(),o=this.pointerShape(e.value);e.animation.type="arrowPointer";var i=new nl({stroke:r.stroke,fill:r.fill}).moveTo(o[0]).lineTo(o[1]).lineTo(o[2]).close(),n=t.getSlot(e.value);return i.transform(O.geometry.transform().translate(n.x1,n.y1)),this.elements=i,i},e}(el),al=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.options,e=this.axis=t.vertical?_:m,r=this.to=t.newPoints[0][e],o=this.from=t.oldPoints[0][e];0!==t.duration&&(t.duration=Math.max(Math.abs(r-o)/t.speed*1e3,1)),this._set(o)},e.prototype.step=function(t){var e=Q(this.from,this.to,t);this._set(e)},e.prototype._set=function(t){var e="set"+this.axis.toUpperCase(),r=this.options.newPoints;r[0][e](t),r[1][e](t)},e}(O.drawing.Animation);wt(al,{easing:"linear",speed:250}),O.drawing.AnimationFactory.current.register("barPointer",al);var ll=al,pl=O.drawing.Group,cl=O.drawing.Path,hl=function(t){function e(e,r){t.call(this,e,r),st(this.options.size)||(this.options.size=.3*this.scale.options.majorTicks.size)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointerShape=function(t){var e=this.scale,r=this.options,o=e.options,i=o.mirror,n=o.vertical,s=i===n?-1:1,a=r.size*s,l=e.getSlot(e.options.min),p=e.getSlot(t),c=n?_:m,h=n?m:_,u=this._margin()*s,f=new O.geometry.Point;f[c]=l[c+"1"],f[h]=l[h+"1"];var d=new O.geometry.Point;d[c]=p[c+"1"],d[h]=p[h+"1"],n?(f.translate(u,0),d.translate(u,0)):(f.translate(0,u),d.translate(0,u));var v=d.clone(),y=f.clone();return n?(v.translate(a,0),y.translate(a,0)):(v.translate(0,a),y.translate(0,a)),[f,d,v,y]},e.prototype.repaint=function(){var t=this.scale,e=this.options,r=this.pointerShape(e.value),o=this.pointerPath,i=this.pointerShape(e._oldValue);o.moveTo(r[0]).lineTo(r[1]).lineTo(r[2]).lineTo(r[3]).close();var n=new ll(o,j(e.animation,{reverse:t.options.reverse,vertical:t.options.vertical,oldPoints:[i[1],i[2]],newPoints:[r[1],r[2]]}));!1===e.animation.transitions&&(n.options.duration=0),n.setup(),n.play()},e.prototype.render=function(){var t=new pl,e=this.getElementOptions();this.options.track.visible&&t.append(this.renderTrack());var r=this.pointerPath=new cl({stroke:e.stroke,fill:e.fill});return t.append(r),this.elements=t,t},e.prototype.renderTrack=function(){var t=this.options.track,e=t.border||{},r=this.trackBox.clone().pad(e.width||0);return new cl.fromRect(r.toRect(),{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.width?e.color||t.color:"",width:e.width,dashType:e.dashType}})},e}(el),ul=O.drawing.Group,fl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.pointers,r=t.origin.x,o=t.origin.y,i=new Ht(r,o,r+t.width(),o+t.height());this.scale.reflow(i),this._shrinkScaleWidth(i);for(var n=0;n<e.length;n++)e[n].reflow();this.bbox=this._getBox(i),this._alignElements(),this._shrinkElements(),this._buildVisual(),this._draw()},e.prototype._buildVisual=function(){var t=new ul,e=this.scale.render(),r=this.pointers;t.append(this.gaugeArea),t.append(e);for(var o=0;o<r.length;o++){var i=r[o];t.append(i.render()),i.value(i.options.value)}this._visuals=t},e.prototype._createModel=function(){var t=this.options,e=this.scale=new Qa(t.scale,this.contextService);this.pointers=[];var r=t.pointer;r=b(r)?r:[r];for(var o=0;o<r.length;o++){var i=j({},r[o],{animation:{transitions:t.transitions}}),n="arrow"===i.shape?sl:hl;this.pointers.push(new n(e,i))}},e.prototype._defaultSize=function(){var t=this.options.scale.vertical;return{width:t?60:200,height:t?200:60}},e.prototype._getBox=function(t){for(var e,r=this.scale,o=this.pointers,i=t.center(),n=o[0].box.clone().wrap(r.box),s=0;s<o.length;s++)n.wrap(o[s].box.clone());return r.options.vertical?(e=n.width()/2,n=new Ht(i.x-e,t.y1,i.x+e,t.y2)):(e=n.height()/2,n=new Ht(t.x1,i.y-e,t.x2,i.y+e)),n},e.prototype._alignElements=function(){for(var t,e=this.scale,r=this.pointers,o=e.box,i=r[0].box.clone().wrap(e.box),n=this.bbox,s=0;s<r.length;s++)i.wrap(r[s].box.clone());e.options.vertical?(t=n.center().x-i.center().x,e.reflow(new Ht(o.x1+t,n.y1,o.x2+t,n.y2))):(t=n.center().y-i.center().y,e.reflow(new Ht(o.x1,o.y1+t,o.x2,o.y2+t)));for(var a=0;a<r.length;a++)r[a].reflow(this.bbox)},e.prototype._shrinkScaleWidth=function(t){var e=this.scale;if(!e.options.vertical){var r=e.contentBox().width()-t.width();r>0&&(e.box.shrink(r,0),e.box.alignTo(t,"center"),e.reflow(e.box))}},e.prototype._shrinkElements=function(){for(var t=this.scale,e=this.pointers,r=t.box.clone(),o=t.options.vertical?"y":"x",i=e[0].box,n=0;n<e.length;n++)i.wrap(e[n].box.clone());r[o+1]+=Math.max(r[o+1]-i[o+1],0),r[o+2]-=Math.max(i[o+2]-r[o+2],0),t.reflow(r);for(var s=0;s<e.length;s++)e[s].reflow(this.bbox)},e}(Ga);wt(fl,{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}});var dl=fl,vl=O.drawing.Arc,yl=O.drawing.Path,gl=O.drawing.Group;function ml(t,e,r,o){var i=new gl,n=t.center,s=t.getRadiusX();if(o.visible)for(var a=0;a<e.length;a++){var l=t.pointAt(e[a]),p=new O.geometry.Point(n.x+s-o.size,n.y).rotate(e[a],n);i.append(new yl({stroke:{color:o.color,width:o.width}}).moveTo(l).lineTo(p))}return i}function _l(t,e,r,o){return{from:t,to:e,color:r,opacity:o}}var bl=function(t){function e(e,r){t.call(this,0,1,e,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=j({},this.options,t);return e.majorUnit=e.majorUnit||zt(e.min,e.max),e.minorUnit=e.minorUnit||e.majorUnit/10,e},e.prototype.initFields=function(){},e.prototype.render=function(t,e){var r=this.renderArc(t,e);this.bbox=r.bbox(),this.labelElements=this.renderLabels(),this.ticks=this.renderTicks(),this.ranges=this.renderRanges()},e.prototype.reflow=function(t){var e=t.center(),r=Math.min(t.height(),t.width())/2;if(!st(this.bbox))return this.render(e,r);this.bbox=this.arc.bbox(),this.radius(this.arc.getRadiusX()),this.repositionRanges(),this.renderLabels()},e.prototype.slotAngle=function(t){var e=this.options,r=e.min,o=e.max,i=e.reverse,n=e.startAngle,s=e.endAngle,a=s-n;return(i?s-(t-r)/(o-r)*a:(t-r)/(o-r)*a+n)+180},e.prototype.hasRanges=function(){var t=this.options.ranges;return t&&t.length},e.prototype.ticksSize=function(){var t=this.options,e=t.majorTicks,r=t.minorTicks,o=0;return e.visible&&(o=e.size),r.visible&&(o=Math.max(r.size,o)),o},e.prototype.labelsCount=function(){var e=t.prototype.labelsCount.call(this),r=this.options;return r.endAngle-r.startAngle>=360&&r.max%r.majorUnit==0&&(e-=1),e},e.prototype.renderLabels=function(){var t=this.options,e=this.arc.clone(),r=e.getRadiusX(),o=this.tickAngles(e,t.majorUnit),i=t.rangeSize=t.rangeSize||.1*r,n=new gl,s=.05*r;st(t.rangeDistance)?s=t.rangeDistance:t.rangeDistance=s;var a=t.labels,l="inside"===a.position,p=st(this.labelElements);l&&(r-=this.ticksSize(),this.hasRanges()&&!p&&(r-=i+s),e.setRadiusX(r).setRadiusY(r));for(var c=this.labels,h=c.length,u=z(a.padding),f=(u.left+u.right)/2,d=(u.top+u.bottom)/2,v=0;v<h;v++){var y=c[v],g=y.box.width()/2,m=y.box.height()/2,_=o[v],b=(_-180)*Ra,x=e.pointAt(_),w=x.x+Math.cos(b)*(g+f)*(l?1:-1),C=x.y+Math.sin(b)*(m+d)*(l?1:-1);y.reflow(new Ht(w-g,C-m,w+g,C+m));var k=new O.geometry.Point(y.box.x1,y.box.y1),S=void 0;if(p){var P=(S=this.labelElements.children[v]).bbox().origin,A=S.transform()||O.geometry.transform();A.translate(k.x-P.x,k.y-P.y),S.transform(A)}else S=za(y,t.labels),n.append(S);this.bbox=O.geometry.Rect.union(this.bbox,S.bbox())}return n},e.prototype.repositionRanges=function(){var t=this.ranges.children;if(t.length>0){var e=this.options,r=e.rangeDistance,o=e.rangeSize,i=this.getRangeRadius();"inside"===this.options.labels.position&&(i+=o+r);for(var n=i+o/2,s=0;s<t.length;s++)t[s]._geometry.setRadiusX(n).setRadiusY(n);this.bbox=O.geometry.Rect.union(this.bbox,this.ranges.bbox())}},e.prototype.renderRanges=function(){var t=this.rangeSegments(),e=t.length,r=new gl;if(e){var o=this.options,i=o.rangeSize,n=o.reverse,s=o.rangeDistance,a=this.getRangeRadius();this.radius(this.radius()-i-s);for(var l=0;l<e;l++){var p=t[l],c=this.slotAngle(p[n?"to":"from"]),h=this.slotAngle(p[n?"from":"to"]);h-c!=0&&r.append(this.createRange(c,h,a,p))}}return r},e.prototype.createRange=function(t,e,r,o){var i=this.options.rangeSize,n=new O.geometry.Arc(this.arc.center,{radiusX:r+i/2,radiusY:r+i/2,startAngle:t,endAngle:e});return new vl(n,{stroke:{width:i,color:o.color,opacity:o.opacity,lineCap:o.lineCap}})},e.prototype.rangeSegments=function(){var t=this.options,e=t.ranges||[],r=e.length,o=[];if(r){var i=t.min,n=t.max,s=t.rangePlaceholderColor;o.push(_l(i,n,s));for(var a=0;a<r;a++)for(var l=Va(e[a],i,n),p=o.length,c=0;c<p;c++){var h=o[c];if(h.from<=l.from&&l.from<=h.to){o.push(_l(l.from,l.to,l.color,l.opacity)),h.from<=l.to&&l.to<=h.to&&o.push(_l(l.to,h.to,s,l.opacity)),h.to=l.from;break}}}return o},e.prototype.getRangeRadius=function(){var t=this.arc,e=this.options,r=e.rangeSize,o=e.rangeDistance,i=e.majorTicks.size;return"outside"===e.labels.position?t.getRadiusX()-i-o-r:t.getRadiusX()-r},e.prototype.renderArc=function(t,e){var r=this.options;return this.arc=new O.geometry.Arc(t,{radiusX:e,radiusY:e,startAngle:r.startAngle+180,endAngle:r.endAngle+180})},e.prototype.renderTicks=function(){var t=this.arc,e=this.options,r=t.clone();this.majorTickAngles=this.tickAngles(t,e.majorUnit),this.majorTicks=ml(r,this.majorTickAngles,e.majorUnit,e.majorTicks);var o=new gl;o.append(this.majorTicks);var i=e.majorTicks.size,n=e.minorTicks.size;if(this._tickDifference=i-n,"outside"===e.labels.position){var s=r.getRadiusX();r.setRadiusX(s-i+n).setRadiusY(s-i+n)}return this.minorTickAngles=this.normalizeTickAngles(this.tickAngles(t,e.minorUnit)),this.minorTicks=ml(r,this.minorTickAngles,e.minorUnit,e.minorTicks),o.append(this.minorTicks),o},e.prototype.normalizeTickAngles=function(t){for(var e=this.options,r=e.majorUnit/e.minorUnit,o=t.length-1;o>=0;o--)o%r==0&&t.splice(o,1);return t},e.prototype.tickAngles=function(t,e){var r=this.options,o=r.reverse,i=r.max-r.min,n=t.endAngle-t.startAngle,s=i/e,a=t.startAngle,l=n/s;o&&(a+=n,l=-l),n>=360&&r.max%e==0&&(s-=1);for(var p=[],c=0;c<s;c++)p.push(gt(a,3)),a+=l;return gt(a)<=t.endAngle&&p.push(a),p},e.prototype.radius=function(t){if(!t)return this.arc.getRadiusX();this.arc.setRadiusX(t).setRadiusY(t),this.repositionTicks(this.majorTicks.children,this.majorTickAngles),this.repositionTicks(this.minorTicks.children,this.minorTickAngles,!0)},e.prototype.repositionTicks=function(t,e,r){var o=r&&this._tickDifference||0,i=this.arc,n=i.getRadiusX();r&&"outside"===this.options.labels.position&&0!==o&&(i=this.arc.clone()).setRadiusX(n-o).setRadiusY(n-o);for(var s=0;s<t.length;s++){var a=i.pointAt(e[s]),l=t[s].segments,p=a.x-l[0].anchor().x,c=a.y-l[0].anchor().y;t[s].transform((new O.geometry.transform).translate(p,c))}},e}(mr);wt(bl,{min:0,max:100,majorTicks:{size:15,align:"inside",color:n,width:.5,visible:!0},minorTicks:{size:10,align:"inside",color:n,width:.5,visible:!0},startAngle:-30,endAngle:210,labels:{position:"inside",padding:2}});var xl=bl,wl=function(t){function e(e,r){t.call(this,e,r);var o=this.options;o.duration=Math.max(Math.abs(o.newAngle-o.oldAngle)/o.duration*1e3,1)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this.options,r=Q(e.oldAngle,e.newAngle,t);this.element.transform(O.geometry.transform().rotate(r,e.center))},e}(O.drawing.Animation);wt(wl,{easing:"linear",duration:150}),O.drawing.AnimationFactory.current.register("radialPointer",wl);var Cl=wl,Ol=O.drawing.Circle,kl=O.drawing.Group,Sl=O.drawing.Path,Pl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setAngle=function(t){this.elements.transform(O.geometry.transform().rotate(t,this.center))},e.prototype.repaint=function(){var t=this.scale,e=this.options,r=t.slotAngle(e._oldValue),o=t.slotAngle(e.value);!1===e.animation.transitions?this.setAngle(o):new Cl(this.elements,j(e.animation,{oldAngle:r,newAngle:o})).play()},e.prototype.render=function(){var t=this.scale,e=this.options,r=new kl;return!1!==e.animation&&j(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),r.append(this._renderNeedle(),this._renderCap()),this.elements=r,this.setAngle(Ra),r},e.prototype.reflow=function(t){var e=this.center=t.center,r=dt(this.options.length||1,.1,1.5),o=this.radius=t.getRadiusX()*r,i=this.capSize=Math.round(o*this.options.cap.size);this.bbox=O.geometry.Rect.fromPoints(new O.geometry.Point(e.x-i,e.y-i),new O.geometry.Point(e.x+i,e.y+i))},e.prototype._renderNeedle=function(){var t=this.scale.options.minorTicks.size,e=this.center,r=this.options.color,o=new Sl({fill:{color:r},stroke:{color:r,width:.5}});return o.moveTo(e.x+this.radius-t,e.y).lineTo(e.x,e.y-this.capSize/2).lineTo(e.x,e.y+this.capSize/2).close(),o},e.prototype._renderCap=function(){var t=this.options,e=t.cap.color||t.color,r=new O.geometry.Circle(this.center,this.capSize);return new Ol(r,{fill:{color:e},stroke:{color:e}})},e}(Ja);wt(Pl,{cap:{size:.05},arrow:{width:16,height:14},animation:{type:"radialPointer",duration:150}});var Al=Pl,Ml=O.drawing.Group,Tl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.pointers;this.scale.reflow(t),this._initialPlotArea=this.scale.bbox;for(var r=0;r<e.length;r++)e[r].reflow(this.scale.arc),this._initialPlotArea=O.geometry.Rect.union(this._initialPlotArea,e[r].bbox);this.fitScale(t),this.alignScale(t),this._buildVisual(this.gaugeArea,e,this.scale),this._draw()},e.prototype._buildVisual=function(t,e,r){var o=this._visuals=new Ml;o.append(t),o.append(r.ticks),o.append(r.ranges),this._buildPointers(e),o.append(r.labelElements)},e.prototype._buildPointers=function(t){for(var e=0;e<t.length;e++){var r=t[e];r.render(),this._visuals.append(r.elements),r.value(r.options.value)}},e.prototype.fitScale=function(t){for(var e,r,o,i,n,s=this.scale.arc,a=this._initialPlotArea,l=Math.abs(this.getDiff(a,t)),p=gt(l,3),c=gt(-l,3),h=0,u=0;!(!(u++<100)||(h=n===o?h+1:0)>5||p!==i&&0<=(e=this.getPlotBox(p,t,s))&&e<=2||c!==i&&0<=(o=this.getPlotBox(c,t,s))&&o<=2||(i=e>0&&o>0?2*p:e<0&&o<0?2*c:gt((p+c)/2||1,3),0<=(r=this.getPlotBox(i,t,s))&&r<=2));)n=o,r>0?(c=i,o=r):(p=i,e=r)},e.prototype.getPlotBox=function(t,e,r){var o=this.scale,i=this.pointers,n=r.getRadiusX(),s=r.clone();s.setRadiusX(n+t).setRadiusY(n+t),o.arc=s,o.reflow(e),this.plotBbox=o.bbox;for(var a=0;a<i.length;a++)i[a].reflow(s),this.plotBbox=O.geometry.Rect.union(this.plotBbox,i[a].bbox);return this.getDiff(this.plotBbox,e)},e.prototype.getDiff=function(t,e){return Math.min(e.width()-t.width(),e.height()-t.height())},e.prototype.alignScale=function(t){var e=this.plotBbox.center(),r=t.center(),o=e.x-r.x,i=e.y-r.y,n=this.scale,s=this.pointers;n.arc.center.x-=o,n.arc.center.y-=i,n.reflow(t);for(var a=0;a<s.length;a++)s[a].reflow(n.arc),this.plotBbox=O.geometry.Rect.union(n.bbox,s[a].bbox)},e.prototype._createModel=function(){var t=this.options,e=t.pointer,r=this.scale=new xl(t.scale,this.contextService);this.pointers=[];for(var o=b(e)?e:[e],i=0;i<o.length;i++){var n=new Al(r,j({},o[i],{animation:{transitions:t.transitions}}));this.pointers.push(n)}},e}(Ga);wt(Tl,{transitions:!0,gaugeArea:{background:""}});var El=Tl,jl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.rangeSegments=function(){var t=this.options;return[{from:t.min,to:t.max,color:t.rangePlaceholderColor,lineCap:t.rangeLineCap}]},e.prototype.hasRanges=function(){return!0},e.prototype.placeholderRangeAngle=function(t){var e=this.ranges.children[0].geometry();this.options.reverse?e.setEndAngle(t):e.setStartAngle(t)},e.prototype.addRange=function(t,e,r){var o=this.options.reverse,i=this.slotAngle(o?e:t),n=this.slotAngle(o?t:e),s=this.createRange(i,n,this.getRangeRadius(),r);return this.ranges.append(s),s},e}(xl);wt(jl,{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"});var Rl=jl,Il=function(t){function e(e,r){t.call(this,e,r);var o=this.options,i=Math.abs(o.newAngle-o.oldAngle)/o.duration*1e3;o.duration=dt(i,150,800);var n=e.elements.options.get("stroke.color"),s=e.currentColor();n!==s&&(this.startColor=new O.Color(n),this.color=new O.Color(s))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this.options,r=this.startColor,o=this.color,i=Q(e.oldAngle,e.newAngle,t);if(this.element.angle(i),o){var n=gt(Q(r.r,o.r,t)),s=gt(Q(r.g,o.g,t)),a=gt(Q(r.b,o.b,t));this.element.stroke(new O.Color(n,s,a).toHex())}},e}(O.drawing.Animation);wt(Il,{easing:"linear",duration:150}),O.drawing.AnimationFactory.current.register("radialRangePointer",Il);var Bl=Il,Ll=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.repaint=function(){var t=this.scale,e=this.options,r=t.slotAngle(e._oldValue),o=t.slotAngle(e.value);this.animation&&this.animation.abort(),!1===e.animation.transitions?(this.angle(o),this.stroke(this.currentColor())):(this.animation=new Bl(this,j(e.animation,{oldAngle:r,newAngle:o})),this.animation.play())},e.prototype.angle=function(t){var e=this.elements.geometry();this.scale.options.reverse?e.setStartAngle(t):e.setEndAngle(t),this.scale.placeholderRangeAngle(t)},e.prototype.stroke=function(t){this.elements.stroke(t)},e.prototype.render=function(){if(!this.elements){var t=this.scale,e=this.options;!1!==e.animation&&j(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),this.elements=t.addRange(t.options.min,this.options.value,{color:this.currentColor(),opacity:e.opacity,lineCap:t.options.rangeLineCap})}},e.prototype.currentColor=function(){var t=this.scale.options,e=t.min,r=t.max,o=this.options,i=o.colors,n=o.color,s=o.value,a=P(s)?s:e;if(i)for(var l=0;l<i.length;l++){var p=i[l],c=p.color,h=p.from;void 0===h&&(h=e);var u=p.to;if(void 0===u&&(u=r),h<=a&&a<=u)return c}return n},e.prototype.reflow=function(){this.render(),this.bbox=this.elements.bbox()},e}(Ja);wt(Ll,{animation:{type:"radialRangePointer",duration:150}});var Dl=Ll,zl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initTheme=function(e){t.prototype._initTheme.call(this,e),this.options.color=this.options.color||(this.theme.pointer||{}).color},e.prototype._createModel=function(){var t=this.options,e=this.scale=new Rl(t.scale,this.contextService),r=new Dl(e,j({},{colors:t.colors,color:t.color,value:t.value,opacity:t.opacity,animation:{transitions:t.transitions}}));this.pointers=[r]},e.prototype._buildPointers=function(t){for(var e=0;e<t.length;e++){var r=t[e];r.render(),r.value(r.options.value)}},e.prototype._setValueOptions=function(t){this.options.value=t},e.prototype.currentColor=function(){var t=this.pointers[0];if(t)return t.currentColor()},e.prototype.centerLabelPosition=function(t,e){var r=this.getSize(),o=this.scale.arc.center,i=o.x-t/2,n=o.y-e/2;if(t<r.width){var s=i+t;i=Math.max(i,0),s>r.width&&(i-=s-r.width)}if(e<r.height){var a=this.scale.bbox,l=a.bottomRight().y,p=n+e;n=Math.max(n,a.origin.y),p>l&&(n-=p-l)}return{left:i,top:n}},e}(El),Vl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._createModel=function(){var e=this.options.scale;"number"!=typeof e.startAngle&&(e.startAngle=90),e.endAngle=e.startAngle+360,t.prototype._createModel.call(this)},e}(zl),Nl=function(t){function e(e){t.call(this),this.setOptions(e),this.initProperties()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){},e.prototype.setOptions=function(t){this.options=Object.assign({},this.options,t),this.quietZoneLength=this.options.addQuietZone?2*this.options.quietZoneLength:0},e.prototype.encode=function(t,e,r){var o=st(t)?String(t):t;return this.initValue(o,e,r),this.options.addQuietZone&&this.addQuietZone(),this.addData(),this.options.addQuietZone&&this.addQuietZone(),{baseUnit:this.baseUnit,pattern:this.pattern}},e.prototype.initValue=function(){},e.prototype.addQuietZone=function(){this.pattern.push(this.options.quietZoneLength||10)},e.prototype.addData=function(){},e.prototype.invalidCharacterError=function(t){throw new Error('Character "'+t+'" is not valid for symbology '+this.name+".")},e}(O.Class);wt(Nl,{quietZoneLength:10,addQuietZone:!0,addCheckSum:!0});var Hl=Object.assign,Ul=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Hl(this,{name:"Code 11",characterMap:["111121","211121","121121","221111","112121","212111","122111","111221","211211","211111","112111"],cCheckSumTotal:10,kCheckSumTotal:9,kCheckSumMinLength:10,checkSumMod:11,DASH_VALUE:10,DASH:"-",START:"112211",STOP:"11221"})},e.prototype.initValue=function(t,e){this.pattern=[],this.value=t,this.width=e,this.totalUnits=0},e.prototype.addData=function(){var t=this.value;this.addPattern(this.START);for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.STOP),this.setBaseUnit()},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)},e.prototype.addCheckSum=function(){var t=this.value,e=t.length,r=this.getWeightedSum(t,e,this.cCheckSumTotal)%this.checkSumMod;if(this.checksum=String(r),this.addPattern(this.characterMap[r]),++e>=this.kCheckSumMinLength){var o=(r+this.getWeightedSum(t,e,this.kCheckSumTotal))%this.checkSumMod;this.checksum+=o,this.addPattern(this.characterMap[o])}},e.prototype.getWeightedSum=function(t,e,r){for(var o=0,i=0;i<t.length;i++)o+=this.weightedValue(this.getValue(t.charAt(i)),e,i,r);return o},e.prototype.weightedValue=function(t,e,r,o){return((e-r)%o||o)*t},e.prototype.getValue=function(t){return isNaN(t)?(t!==this.DASH&&this.invalidCharacterError(t),this.DASH_VALUE):parseInt(t,10)},e.prototype.addCharacter=function(t){var e=this.getValue(t),r=this.characterMap[e];this.addPattern(r)},e.prototype.addPattern=function(t){for(var e,r=0;r<t.length;r++)e=parseInt(t.charAt(r),10),this.pattern.push(e),this.totalUnits+=e},e}(Nl);wt(Ul,{addCheckSum:!0});var Fl=Object.assign,Gl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Fl(this,{minBaseUnitLength:.7})},e.prototype.addData=function(){var t=this.value;this.addStart();for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.pushCheckSum(),this.addStop(),this.prepareValues()},e.prototype.addCharacter=function(t){var e=this.characterMap[t];e||this.invalidCharacterError(t),this.addBase(e)},e.prototype.addBase=function(){},e}(Nl),Wl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Fl(this,{name:"Code 39",checkSumMod:43,minRatio:2.5,maxRatio:3,gapWidth:1,splitCharacter:"|",patternMappings:{b:"1|",w:"1|",B:"ratio|",W:"ratio|"},characterMap:{0:{pattern:"bwbWBwBwb",value:0},1:{pattern:"BwbWbwbwB",value:1},2:{pattern:"bwBWbwbwB",value:2},3:{pattern:"BwBWbwbwb",value:3},4:{pattern:"bwbWBwbwB",value:4},5:{pattern:"BwbWBwbwb",value:5},6:{pattern:"bwBWBwbwb",value:6},7:{pattern:"bwbWbwBwB",value:7},8:{pattern:"BwbWbwBwb",value:8},9:{pattern:"bwBWbwBwb",value:9},A:{pattern:"BwbwbWbwB",value:10},B:{pattern:"bwBwbWbwB",value:11},C:{pattern:"BwBwbWbwb",value:12},D:{pattern:"bwbwBWbwB",value:13},E:{pattern:"BwbwBWbwb",value:14},F:{pattern:"bwBwBWbwb",value:15},G:{pattern:"bwbwbWBwB",value:16},H:{pattern:"BwbwbWBwb",value:17},I:{pattern:"bwBwbWBwb",value:18},J:{pattern:"bwbwBWBwb",value:19},K:{pattern:"BwbwbwbWB",value:20},L:{pattern:"bwBwbwbWB",value:21},M:{pattern:"BwBwbwbWb",value:22},N:{pattern:"bwbwBwbWB",value:23},O:{pattern:"BwbwBwbWb",value:24},P:{pattern:"bwBwBwbWb",value:25},Q:{pattern:"bwbwbwBWB",value:26},R:{pattern:"BwbwbwBWb",value:27},S:{pattern:"bwBwbwBWb",value:28},T:{pattern:"bwbwBwBWb",value:29},U:{pattern:"BWbwbwbwB",value:30},V:{pattern:"bWBwbwbwB",value:31},W:{pattern:"BWBwbwbwb",value:32},X:{pattern:"bWbwBwbwB",value:33},Y:{pattern:"BWbwBwbwb",value:34},Z:{pattern:"bWBwBwbwb",value:35},"-":{pattern:"bWbwbwBwB",value:36},".":{pattern:"BWbwbwBwb",value:37}," ":{pattern:"bWBwbwBwb",value:38},$:{pattern:"bWbWbWbwb",value:39},"/":{pattern:"bWbWbwbWb",value:40},"+":{pattern:"bWbwbWbWb",value:41},"%":{pattern:"bwbWbWbWb",value:42},START:{pattern:"bWbwBwBwb"}}})},e.prototype.initValue=function(t,e,r){this.width=e,this.height=r,this.value=t,this.dataLength=t.length,this.pattern=[],this.patternString=""},e.prototype.prepareValues=function(){var t,e=this.minBaseUnitLength,r=this.minRatio,o=Math.ceil(Math.max(.15*this.width,24)),i=this.maxRatio;if(this.height<o)throw new Error("Insufficient height for Code39 encoding: the current height is "+this.height+"px and the minimum height is "+o+"px.");for(t=this.getBaseUnit(i);t<e&&i>r;)i=parseFloat((i-.1).toFixed(1)),t=this.getBaseUnit(i);if(t<e){var n=Math.ceil(this.getBaseWidth(r)*e);throw new Error("Insufficient width for Code39 encoding: the current width is "+this.width+'px and the minimum width for value "'+this.value+'" is '+n+"px.")}this.ratio=i,this.baseUnit=t,this.patternString=this.patternString.substring(0,this.patternString.length-1),this.pattern=this.pattern.concat(this.patternString.replace(/ratio/g,i).split(this.splitCharacter))},e.prototype.getBaseUnit=function(t){return this.width/this.getBaseWidth(t)},e.prototype.getBaseWidth=function(t){var e=3*(t+2);return this.quietZoneLength+e*(this.dataLength+2)+this.gapWidth*(this.dataLength+1)},e.prototype.addStart=function(){this.addPattern(this.characterMap.START.pattern),this.addCharacterGap()},e.prototype.addBase=function(t){this.addPattern(t.pattern),this.addCharacterGap()},e.prototype.addStop=function(){this.addPattern(this.characterMap.START.pattern)},e.prototype.addPattern=function(t){for(var e=0;e<t.length;e++)this.patternString+=this.patternMappings[t.charAt(e)]},e.prototype.addCharacterGap=function(){this.patternString+=this.gapWidth+this.splitCharacter},e}(Gl);wt(Wl,{addCheckSum:!1});var Kl={addCharacter:function(t){this.characterMap[t]?this.addBase(this.characterMap[t]):t.charCodeAt(0)>127?this.invalidCharacterError(t):this.addExtended(t.charCodeAt(0))},addExtended:function(t){for(var e,r=0;r<this.extendedMappings.length;r++)if(e=this.extendedMappings[r].call(this,t)){for(var o=0;o<e.length;o++){var i=e[o];this.addBase(i)}return void(this.dataLength+=e.length-1)}},extendedMappings:[function(t){if(97<=t&&t<=122)return[this.characterMap[this.shiftCharacters[0]],this.characterMap[String.fromCharCode(t-32)]]},function(t){if(33<=t&&t<=58)return[this.characterMap[this.shiftCharacters[1]],this.characterMap[String.fromCharCode(t+32)]]},function(t){if(1<=t&&t<=26)return[this.characterMap[this.shiftCharacters[2]],this.characterMap[String.fromCharCode(t+64)]]},function(t){var e,r;if(this.specialAsciiCodes[t]){e=[];for(var o=0;o<this.specialAsciiCodes[t].length;o++)e.push(this.characterMap[this.shiftCharacters[3]]),e.push(this.characterMap[this.specialAsciiCodes[t][o]])}else r=6*Math.floor(t/32)+(t-27)%32+64,e=[this.characterMap[this.shiftCharacters[3]],this.characterMap[String.fromCharCode(r)]];return e}],specialAsciiCodes:{0:["U"],64:["V"],96:["W"],127:["T","X","Y","Z"]},shiftValuesAsciiCodes:{39:36,40:47,41:43,42:37},characterMap:{"+":!1,"/":!1,$:!1,"%":!1},shiftCharacters:["SHIFT0","SHIFT1","SHIFT2","SHIFT3"]},Xl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),j(this,Kl,{name:"Code 39 extended",characterMap:{SHIFT0:{pattern:"bWbwbWbWb",value:41},SHIFT1:{pattern:"bWbWbwbWb",value:40},SHIFT2:{pattern:"bWbWbWbwb",value:39},SHIFT3:{pattern:"bwbWbWbWb",value:42}}})},e}(Wl),Yl=Object.assign,ql=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Yl(this,{name:"Code 93",cCheckSumTotal:20,kCheckSumTotal:15,checkSumMod:47,characterMap:{0:{pattern:"131112",value:0},1:{pattern:"111213",value:1},2:{pattern:"111312",value:2},3:{pattern:"111411",value:3},4:{pattern:"121113",value:4},5:{pattern:"121212",value:5},6:{pattern:"121311",value:6},7:{pattern:"111114",value:7},8:{pattern:"131211",value:8},9:{pattern:"141111",value:9},A:{pattern:"211113",value:10},B:{pattern:"211212",value:11},C:{pattern:"211311",value:12},D:{pattern:"221112",value:13},E:{pattern:"221211",value:14},F:{pattern:"231111",value:15},G:{pattern:"112113",value:16},H:{pattern:"112212",value:17},I:{pattern:"112311",value:18},J:{pattern:"122112",value:19},K:{pattern:"132111",value:20},L:{pattern:"111123",value:21},M:{pattern:"111222",value:22},N:{pattern:"111321",value:23},O:{pattern:"121122",value:24},P:{pattern:"131121",value:25},Q:{pattern:"212112",value:26},R:{pattern:"212211",value:27},S:{pattern:"211122",value:28},T:{pattern:"211221",value:29},U:{pattern:"221121",value:30},V:{pattern:"222111",value:31},W:{pattern:"112122",value:32},X:{pattern:"112221",value:33},Y:{pattern:"122121",value:34},Z:{pattern:"123111",value:35},"-":{pattern:"121131",value:36},".":{pattern:"311112",value:37}," ":{pattern:"311211",value:38},$:{pattern:"321111",value:39},"/":{pattern:"112131",value:40},"+":{pattern:"113121",value:41},"%":{pattern:"211131",value:42},SHIFT0:{pattern:"122211",value:46},SHIFT1:{pattern:"311121",value:45},SHIFT2:{pattern:"121221",value:43},SHIFT3:{pattern:"312111",value:44},START:{pattern:"111141"},TERMINATION_BAR:"1"}})},e.prototype.initValue=function(t,e,r){this.value=t,this.width=e,this.height=r,this.pattern=[],this.values=[],this.dataLength=t.length},e.prototype.prepareValues=function(){var t=Math.ceil(Math.max(.15*this.width,24));if(this.height<t)throw new Error("Insufficient height for Code93 encoding: the current height is "+this.height+"px, the minimum required height is "+t+"px.");if(this.setBaseUnit(),this.baseUnit<this.minBaseUnitLength){var e=Math.ceil(this.minBaseUnitLength*(this.width/this.baseUnit));throw new Error("Insufficient width for Code93 encoding: the current width is "+this.width+'px and the minimum required width for value "'+this.value+'" is '+e+"px.")}},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(9*(this.dataLength+2+2)+this.quietZoneLength+1)},e.prototype.addStart=function(){var t=this.characterMap.START.pattern;this.addPattern(t)},e.prototype.addStop=function(){this.addStart(),this.pattern.push(this.characterMap.TERMINATION_BAR)},e.prototype.addBase=function(t){this.addPattern(t.pattern),this.values.push(t.value)},e.prototype.pushCheckSum=function(){var t,e=this._getCheckValues();this.checksum=e.join("");for(var r=0;r<e.length;r++)t=this.characterMap[this._findCharacterByValue(e[r])],this.addPattern(t.pattern)},e.prototype._getCheckValues=function(){var t,e,r=this.values,o=r.length,i=0;for(e=o-1;e>=0;e--)i+=this.weightedValue(r[e],o-e,this.cCheckSumTotal);for(t=i%this.checkSumMod,i=this.weightedValue(t,1,this.kCheckSumTotal),e=o-1;e>=0;e--)i+=this.weightedValue(r[e],o-e+1,this.kCheckSumTotal);return[t,i%this.checkSumMod]},e.prototype._findCharacterByValue=function(t){for(var e in this.characterMap)if(this.characterMap[e].value===t)return e},e.prototype.weightedValue=function(t,e,r){return(e%r||r)*t},e.prototype.addPattern=function(t){for(var e,r=0;r<t.length;r++)e=parseInt(t.charAt(r),10),this.pattern.push(e)},e}(Gl),Zl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),j(this,Kl,{name:"Code 93 extended",pushCheckSum:function(){var t,e=this._getCheckValues();this.checksum=e.join("");for(var r=0;r<e.length;r++)if(t=e[r],this.shiftValuesAsciiCodes[t])this.addExtended(this.shiftValuesAsciiCodes[t]);else{var o=this._findCharacterByValue(t);this.addPattern(this.characterMap[o].pattern)}}})},e}(ql),Ql=/^\d+$/,$l=Object.assign,Jl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),$l(this,{name:"Postnet",START:"2",VALID_CODE_LENGTHS:[5,9,11],DIGIT_SEPARATOR:"-",characterMap:["22111","11122","11212","11221","12112","12121","12211","21112","21121","21211"]})},e.prototype.initValue=function(t,e,r){this.height=r,this.width=e,this.baseHeight=r/2,this.value=t.replace(new RegExp(this.DIGIT_SEPARATOR,"g"),""),this.pattern=[],this.validate(this.value),this.checkSum=0,this.setBaseUnit()},e.prototype.addData=function(){var t=this.value;this.addPattern(this.START);for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.START),this.pattern.pop()},e.prototype.addCharacter=function(t){var e=this.characterMap[t];this.checkSum+=parseInt(t,10),this.addPattern(e)},e.prototype.addCheckSum=function(){this.checksum=(10-this.checkSum%10)%10,this.addCharacter(this.checksum)},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(10*(this.value.length+1)+3+this.quietZoneLength)},e.prototype.validate=function(t){if(Ql.test(t)||this.invalidCharacterError(t.match(/[^0-9]/)[0]),!Z(t.length,this.VALID_CODE_LENGTHS))throw new Error("Invalid value length. Valid lengths for the Postnet symbology are "+this.VALID_CODE_LENGTHS.join(",")+".")},e.prototype.addPattern=function(t){for(var e,r=0;r<t.length;r++)e=this.height-this.baseHeight*t.charAt(r),this.pattern.push({width:1,y1:e,y2:this.height}),this.pattern.push(1)},e}(Nl),tp=/^\d+$/,ep=/^[a-z0-9]+$/i,rp=Object.assign,op=function(t){function e(e){t.call(this),this.encoding=e,this.initProperties()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){},e.prototype.addStart=function(){},e.prototype.is=function(){},e.prototype.isCode=function(){return!1},e.prototype.move=function(){},e.prototype.pushState=function(){},e}(O.Class),ip=function(t){function e(e,r){t.call(this,e),this.states=r,this._initMoves(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),j(this,{FNC4:"FNC4",SHIFT:98})},e.prototype.addStart=function(){this.encoding.addPattern(this.START)},e.prototype.is=function(t,e){var r=t.charCodeAt(e);return this.isCode(r)},e.prototype.move=function(t){for(var e=0;!this._moves[e].call(this,t)&&e<this._moves.length;)e++},e.prototype.pushState=function(t){var e,r=this.states,o=t.value,i=o.length;if(Z("C",r)){var n=o.substr(t.index).match(/\d{4,}/g);n&&(i=o.indexOf(n[0],t.index))}for(;(e=t.value.charCodeAt(t.index))>=0&&this.isCode(e)&&t.index<i;)this.encoding.addPattern(this.getValue(e)),t.index++},e.prototype._initMoves=function(t){this._moves=[],Z(this.FNC4,t)&&this._moves.push(this._moveFNC),Z(this.shiftKey,t)&&this._moves.push(this._shiftState),this._moves.push(this._moveState)},e.prototype._moveFNC=function(t){if(t.fnc)return t.fnc=!1,t.previousState===this.key},e.prototype._shiftState=function(t){if(t.previousState===this.shiftKey&&(t.index+1>=t.value.length||this.encoding[this.shiftKey].is(t.value,t.index+1)))return this.encoding.addPattern(this.SHIFT),t.shifted=!0,!0},e.prototype._moveState=function(){return this.encoding.addPattern(this.MOVE),!0},e}(op),np={};np.A=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{key:"A",shiftKey:"B",MOVE:101,START:103})},e.prototype.isCode=function(t){return 0<=t&&t<96},e.prototype.getValue=function(t){return t<32?t+64:t-32},e}(ip),np.B=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{key:"B",shiftKey:"A",MOVE:100,START:104})},e.prototype.isCode=function(t){return 32<=t&&t<128},e.prototype.getValue=function(t){return t-32},e}(ip),np.C=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{key:"C",MOVE:99,START:105})},e.prototype.addStart=function(){this.encoding.addPattern(this.START)},e.prototype.is=function(t,e){var r=up(t,e,4);return(e+4<=t.length||2===t.length)&&tp.test(r)},e.prototype.move=function(){this.encoding.addPattern(this.MOVE)},e.prototype.pushState=function(t){for(var e;(e=up(t.value,t.index,2))&&tp.test(e)&&2===e.length;)this.encoding.addPattern(parseInt(e,10)),t.index+=2},e.prototype.getValue=function(t){return t},e}(op),np.FNC4=function(t){function e(e,r){t.call(this,e),this._initSubStates(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{key:"FNC4",dependentStates:["A","B"]})},e.prototype.addStart=function(t){var e=t.value.charCodeAt(0)-128,r=this._getSubState(e);this.encoding[r].addStart()},e.prototype.is=function(t,e){var r=t.charCodeAt(e);return this.isCode(r)},e.prototype.isCode=function(t){return 128<=t&&t<256},e.prototype.pushState=function(t){var e,r=this._initSubState(t),o=this.encoding,i=r.value.length;if(t.index+=i,i<3)for(;r.index<i;r.index++)e=r.value.charCodeAt(r.index),r.state=this._getSubState(e),r.previousState!==r.state&&(r.previousState=r.state,o[r.state].move(r)),o.addPattern(o[r.state].MOVE),o.addPattern(o[r.state].getValue(e));else r.state!==r.previousState&&o[r.state].move(r),this._pushStart(r),o.pushData(r,this.subStates),t.index<t.value.length&&this._pushStart(r);t.fnc=!0,t.state=r.state},e.prototype._pushStart=function(t){this.encoding.addPattern(this.encoding[t.state].MOVE),this.encoding.addPattern(this.encoding[t.state].MOVE)},e.prototype._initSubState=function(t){var e={value:this._getAll(t.value,t.index),index:0};return e.state=this._getSubState(e.value.charCodeAt(0)),e.previousState=t.previousState===this.key?e.state:t.previousState,e},e.prototype._initSubStates=function(t){this.subStates=[];for(var e=0;e<t.length;e++)Z(t[e],this.dependentStates)&&this.subStates.push(t[e])},e.prototype._getSubState=function(t){for(var e=0;e<this.subStates.length;e++)if(this.encoding[this.subStates[e]].isCode(t))return this.subStates[e]},e.prototype._getAll=function(t,e){for(var r,o="",i=e;(r=t.charCodeAt(i++))&&this.isCode(r);)o+=String.fromCharCode(r-128);return o},e}(op),np.FNC1=function(t){function e(e,r){t.call(this,e),this.states=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{key:"FNC1",startState:"C",startAI:"(",endAI:")",dependentStates:["C","B"],applicationIdentifiers:{22:{max:29,type:"alphanumeric"},402:{length:17},7004:{max:4,type:"alphanumeric"},242:{max:6,type:"alphanumeric"},8020:{max:25,type:"alphanumeric"},703:{min:3,max:30,type:"alphanumeric"},8008:{min:8,max:12,type:"alphanumeric"},253:{min:13,max:17,type:"alphanumeric"},8003:{min:14,max:30,type:"alphanumeric"},multiKey:[{ids:["15","17","8005","8100"],ranges:[[11,13],[310,316],[320,336],[340,369]],type:{length:6}},{ids:["240","241","250","251","400","401","403","7002","8004","8007","8110"],ranges:[[-9]],type:{max:30,type:"alphanumeric"}},{ids:["7001"],ranges:[[410,414]],type:{length:13}},{ids:["10","21","254","420","8002"],type:{max:20,type:"alphanumeric"}},{ids:["00","8006","8017","8018"],type:{length:18}},{ids:["01","02","8001"],type:{length:14}},{ids:["422"],ranges:[[424,426]],type:{length:3}},{ids:["20","8102"],type:{length:2}},{ids:["30","37"],type:{max:8,type:"alphanumeric"}},{ids:["390","392"],type:{max:15,type:"alphanumeric"}},{ids:["421","423"],type:{min:3,max:15,type:"alphanumeric"}},{ids:["391","393"],type:{min:3,max:18,type:"alphanumeric"}},{ids:["7003","8101"],type:{length:10}}]},START:102})},e.prototype.addStart=function(){this.encoding[this.startState].addStart()},e.prototype.is=function(){return Z(this.key,this.states)},e.prototype.pushState=function(t){var e,r,o,i=this.encoding,n=t.value.replace(/\s/g,""),s=new RegExp("["+this.startAI+this.endAI+"]","g"),a=t.index,l={state:this.startState};i.addPattern(this.START);for(;;){if(l.index=0,(e=(o=n.charAt(a)===this.startAI?2:0)>0?this.getBySeparator(n,a):this.getByLength(n,a)).ai.length)r=a+o+e.id.length+e.ai.length;else if((r=n.indexOf(this.startAI,a+1))<0){if(a+e.ai.max+e.id.length+o<n.length)throw new Error("Separators are required after variable length identifiers");r=n.length}if(l.value=n.substring(a,r).replace(s,""),this.validate(e,l.value),i.pushData(l,this.dependentStates),r>=n.length)break;a=r,l.state!==this.startState&&(i[this.startState].move(l),l.state=this.startState),e.ai.length||i.addPattern(this.START)}t.index=t.value.length},e.prototype.validate=function(t,e){var r=e.substr(t.id.length),o=t.ai;if(!o.type&&!tp.test(r))throw new Error("Application identifier "+t.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"===o.type&&!ep.test(r))throw new Error("Application identifier "+t.id+" is alphanumeric only but contains non alphanumeric character(s).");if(o.length&&o.length!==r.length)throw new Error("Application identifier "+t.id+" must be "+o.length+" characters long.");if(o.min&&o.min>r.length)throw new Error("Application identifier "+t.id+" must be at least "+o.min+" characters long.");if(o.max&&o.max<r.length)throw new Error("Application identifier "+t.id+" must be at most "+o.max+" characters long.")},e.prototype.getByLength=function(t,e){for(var r,o,i=2;i<=4;i++)if(r=up(t,e,i),o=this.getApplicationIdentifier(r)||this.getApplicationIdentifier(r.substring(0,r.length-1)))return{id:r,ai:o};this.unsupportedAIError(r)},e.prototype.unsupportedAIError=function(t){throw new Error("'"+t+"' is not a supported Application Identifier")},e.prototype.getBySeparator=function(t,e){var r=t.indexOf(this.startAI,e),o=t.indexOf(this.endAI,r),i=t.substring(r+1,o),n=this.getApplicationIdentifier(i)||this.getApplicationIdentifier(i.substr(i.length-1));return n||this.unsupportedAIError(i),{ai:n,id:i}},e.prototype.getApplicationIdentifier=function(t){var e=this.applicationIdentifiers,r=e.multiKey;if(e[t])return e[t];for(var o=0;o<r.length;o++){if(r[o].ids&&Z(t,r[o].ids))return r[o].type;if(r[o].ranges)for(var i=r[o].ranges,n=0;n<i.length;n++)if(i[n][0]<=t&&t<=i[n][1])return r[o].type}},e}(op);var sp=function(t){function e(e){t.call(this,e),this._initStates()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{characterMap:[212222,222122,222221,121223,121322,131222,122213,122312,132212,221213,221312,231212,112232,122132,122231,113222,123122,123221,223211,221132,221231,213212,223112,312131,311222,321122,321221,312212,322112,322211,212123,212321,232121,111323,131123,131321,112313,132113,132311,211313,231113,231311,112133,112331,132131,113123,113321,133121,313121,211331,231131,213113,213311,213131,311123,311321,331121,312113,312311,332111,314111,221411,431111,111224,111422,121124,121421,141122,141221,112214,112412,122114,122411,142112,142211,241211,221114,413111,241112,134111,111242,121142,121241,114212,124112,124211,411212,421112,421211,212141,214121,412121,111143,111341,131141,114113,114311,411113,411311,113141,114131,311141,411131,211412,211214,211232,2331112],STOP:106})},e.prototype._initStates=function(){for(var t=0;t<this.states.length;t++)this[this.states[t]]=new np[this.states[t]](this,this.states)},e.prototype.initValue=function(t,e,r){this.pattern=[],this.value=t,this.width=e,this.height=r,this.checkSum=0,this.totalUnits=0,this.index=0,this.position=1},e.prototype.addData=function(){var t={value:this.value,index:0,state:""};0!==this.value.length&&(t.state=t.previousState=this.getNextState(t,this.states),this.addStart(t),this.pushData(t,this.states),this.addCheckSum(),this.addStop(),this.setBaseUnit())},e.prototype.pushData=function(t,e){for(;this[t.state].pushState(t),!(t.index>=t.value.length);)if(t.shifted){var r=t.state;t.state=t.previousState,t.previousState=r,t.shifted=!1}else t.previousState=t.state,t.state=this.getNextState(t,e),this[t.state].move(t)},e.prototype.addStart=function(t){this[t.state].addStart(t),this.position=1},e.prototype.addCheckSum=function(){this.checksum=this.checkSum%103,this.addPattern(this.checksum)},e.prototype.addStop=function(){this.addPattern(this.STOP)},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)},e.prototype.addPattern=function(t){for(var e,r=this.characterMap[t].toString(),o=0;o<r.length;o++)e=parseInt(r.charAt(o),10),this.pattern.push(e),this.totalUnits+=e;this.checkSum+=t*this.position++},e.prototype.getNextState=function(t,e){for(var r=0;r<e.length;r++)if(this[e[r]].is(t.value,t.index))return e[r];this.invalidCharacterError(t.value.charAt(t.index))},e}(Nl),ap=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{name:"Code 128 A",states:["A"]})},e}(sp),lp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{name:"Code 128 B",states:["B"]})},e}(sp),pp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{name:"Code 128 C",states:["C"]})},e}(sp),cp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{name:"Code 128",states:["C","B","A","FNC4"]})},e}(sp),hp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),rp(this,{name:"Code GS1-128",states:["FNC1","C","B"]})},e}(sp);function up(t,e,r){return t.substring(e,e+r)}var fp=Object.assign,dp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),fp(this,{characterMap:["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221"],START:"21",STOP:"121",checkSumType:"",checkSums:_p})},e.prototype.initValue=function(t,e){this.pattern=[],this.value=t,this.checkSumLength=0,this.width=e},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(12*(this.value.length+this.checkSumLength)+this.quietZoneLength+7)},e.prototype.addData=function(){var t=this.value;this.addPattern(this.START);for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.STOP),this.setBaseUnit()},e.prototype.addCharacter=function(t){var e=this.characterMap[t];e||this.invalidCharacterError(t),this.addPattern(e)},e.prototype.addPattern=function(t){for(var e=0;e<t.length;e++)this.pattern.push(parseInt(t.charAt(e),10))},e.prototype.addCheckSum=function(){var t=this.checkSums[this.checkSumType].call(this.checkSums,this.value);this.checksum=t.join("");for(var e=0;e<t.length;e++)this.checkSumLength++,this.addPattern(this.characterMap[t[e]])},e}(Nl),vp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),fp(this,{name:"MSI Modulo10",checkSumType:"Modulo10"})},e}(dp),yp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),fp(this,{name:"MSI Modulo11",checkSumType:"Modulo11"})},e}(dp),gp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),fp(this,{name:"MSI Modulo10 Modulo10",checkSumType:"Modulo10Modulo10"})},e}(dp),mp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),fp(this,{name:"MSI Modulo11 Modulo10",checkSumType:"Modulo11Modulo10"})},e}(dp),_p={Modulo10:function(t){var e,r,o,i=[0,""],n=t.length%2;for(e=0;e<t.length;e++)i[(e+n)%2]+=parseInt(t.charAt(e),10);for(o=i[0],r=(2*i[1]).toString(),e=0;e<r.length;e++)o+=parseInt(r.charAt(e),10);return[(10-o%10)%10]},Modulo11:function(t){for(var e,r=0,o=t.length,i=0;i<o;i++)r+=(((o-i)%6||6)+1)*t.charAt(i);return 10!==(e=(11-r%11)%11)?[e]:[1,0]},Modulo11Modulo10:function(t){var e,r=this.Modulo11(t);return e=t+r[0],r.concat(this.Modulo10(e))},Modulo10Modulo10:function(t){var e,r=this.Modulo10(t);return e=t+r[0],r.concat(this.Modulo10(e))}},bp=Object.assign,xp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),bp(this,{name:"EAN 13",keyTable:["000000","001011","001101","001110","010011","011001","011100","010101","010110","011010"],characterMap:{digits:[[3,2,1,1],[2,2,2,1],[2,1,2,2],[1,4,1,1],[1,1,3,2],[1,2,3,1],[1,1,1,4],[1,3,1,2],[1,2,1,3],[3,1,1,2]],start:[1,1,1],middle:[1,1,1,1,1]}})},e.prototype.initValue=function(t,e,r){var o=String(t);if(12!==o.length||/\D/.test(o))throw new Error('The value of the "EAN13" encoding should be 12 symbols');this.pattern=[],this.options.height=r,this.baseUnit=e/(95+this.quietZoneLength),this.value=o,this.checksum=this.calculateChecksum(),this.leftKey=o[0],this.leftPart=o.substr(1,6),this.rightPart=o.substr(7)+this.checksum},e.prototype.addData=function(){this.addPieces(this.characterMap.start),this.addSide(this.leftPart,this.leftKey),this.addPieces(this.characterMap.middle),this.addSide(this.rightPart),this.addPieces(this.characterMap.start)},e.prototype.addSide=function(t,e){for(var r=0;r<t.length;r++)e&&parseInt(this.keyTable[e].charAt(r),10)?this.addPieces(Array.prototype.slice.call(this.characterMap.digits[t.charAt(r)]).reverse(),!0):this.addPieces(this.characterMap.digits[t.charAt(r)],!0)},e.prototype.addPieces=function(t,e){for(var r=0;r<t.length;r++)e?this.pattern.push({y1:0,y2:.95*this.options.height,width:t[r]}):this.pattern.push(t[r])},e.prototype.calculateChecksum=function(){for(var t=0,e=0,r=this.value.split("").reverse().join(""),o=0;o<r.length;o++)o%2?e+=parseInt(r.charAt(o),10):t+=parseInt(r.charAt(o),10);return(10-(3*t+e)%10)%10},e}(Nl),wp=Object.assign,Cp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),wp(this,{name:"EAN 8"})},e.prototype.initValue=function(t,e,r){if(7!==t.length||/\D/.test(t))throw new Error("Invalid value provided");this.value=t,this.options.height=r,this.checksum=this.calculateChecksum(this.value),this.leftPart=this.value.substr(0,4),this.rightPart=this.value.substr(4)+this.checksum,this.pattern=[],this.baseUnit=e/(67+this.quietZoneLength)},e}(xp),Op={code11:Ul,code39:Wl,code39extended:Xl,code93:ql,code93extended:Zl,code128:cp,code128a:ap,code128b:lp,code128c:pp};function kp(t,e){var r=t.style.display;"canvas"===e&&(t.style.display="block");var o={width:t.clientWidth,height:t.clientHeight};return t.style.display=r,o}Op["gs1-128"]=hp,Op.msimod10=vp,Op.msimod11=yp,Op.msimod1010=gp,Op.msimod1110=mp,Op.postnet=Jl,Op.ean8=Cp,Op.ean13=xp;var Sp=function(t){function e(e,r,o){void 0===o&&(o=Lt),t.call(this),this.options=j({},this.options,r),this.element=e,this.onError=o,this._initElement(),this._initSurface(),this._setOptions(r),r&&st(r.value)&&this.redraw()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this._destroySurface()},e.prototype._initElement=function(){x(this.element,"k-barcode")},e.prototype._initSurface=function(){var t=this.options,e=this.surface;e&&e.options.type===t.renderAs||(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())},e.prototype._createSurface=function(){return O.drawing.Surface.create(this.surfaceElement,{type:this.options.renderAs})},e.prototype._destroySurface=function(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())},e.prototype._initSurfaceElement=function(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))},e.prototype._destroySurfaceElement=function(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)},e.prototype.setOptions=function(t){this._setOptions(t),this._initSurface(),this.redraw()},e.prototype.redraw=function(){var t=this._getSize();this.surface.clear(),this.surface.setSize({width:t.width,height:t.height}),this.createVisual(),this.surface.draw(this.visual)},e.prototype.getSize=function(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}},e.prototype._resize=function(){this.redraw()},e.prototype.createVisual=function(){this.visual=this._render()},e.prototype._render=function(){var t,e,r=this.options,o=r.value,i=r.text,n=z(i.margin),s=this._getSize(),a=r.border||{},l=this.encoding,p=new Ht(0,0,s.width,s.height).unpad(a.width).unpad(r.padding),c=p.height(),h=new O.drawing.Group;this.contentBox=p,h.append(this._getBackground(s)),i.visible&&(c-=O.drawing.util.measureText(o,{font:i.font}).height+n.top+n.bottom);try{t=l.encode(o,p.width(),c)}catch(t){return this.onError(t),h}return i.visible&&(e=o,r.checksum&&st(l.checksum)&&(e+=" "+l.checksum),h.append(this._getText(e))),this.barHeight=c,this._bandsGroup=this._getBands(t.pattern,t.baseUnit),h.append(this._bandsGroup),h},e.prototype.exportVisual=function(){return this._render()},e.prototype._getSize=function(){var t=kp(this.element,this.options.renderAs),e=new O.geometry.Size(300,100);return t.width>0&&(e.width=t.width),t.height>0&&(e.height=t.height),this.options.width&&(e.width=this.options.width),this.options.height&&(e.height=this.options.height),e},e.prototype.value=function(t){if(!st(t))return this.options.value;this.options.value=String(t),this.redraw()},e.prototype._getBands=function(t,e){for(var r,o,i=this.contentBox,n=i.x1,s=new O.drawing.Group,a=0;a<t.length;a++){if(r=(o=R(t[a])?t[a]:{width:t[a],y1:0,y2:this.barHeight}).width*e,a%2){var l=O.geometry.Rect.fromPoints(new O.geometry.Point(n,o.y1+i.y1),new O.geometry.Point(n+r,o.y2+i.y1)),p=O.drawing.Path.fromRect(l,{fill:{color:this.options.color},stroke:null});s.append(p)}n+=r}return s},e.prototype._getBackground=function(t){var e=this.options,r=e.border||{},o=new Ht(0,0,t.width,t.height).unpad(r.width/2);return O.drawing.Path.fromRect(o.toRect(),{fill:{color:e.background},stroke:{color:r.width?r.color:"",width:r.width,dashType:r.dashType}})},e.prototype._getText=function(t){var e=this.options.text,r=this._textbox=new ce(t,{font:e.font,color:e.color,align:"center",vAlign:"bottom",margin:e.margin});return r.reflow(this.contentBox),r.renderVisual(),r.visual},e.prototype._setOptions=function(t){if(this.type=(t.type||this.options.type).toLowerCase(),"upca"===this.type&&(this.type="ean13",t.value="0"+t.value),"upce"===this.type&&(this.type="ean8",t.value="0"+t.value),!Op[this.type])throw new Error("Encoding '"+this.type+"' is not supported.");this.encoding=new Op[this.type],this.options=j({},this.options,t)},e}(O.Class);wt(Sp,{name:"Barcode",renderAs:"svg",value:"",type:"code39",checksum:!1,width:0,height:0,color:"black",background:"white",text:{visible:!0,font:"16px Consolas, Monaco, Sans Mono, monospace, sans-serif",color:"black",margin:{top:0,bottom:0,left:0,right:0}},border:{width:0,dashType:"solid",color:"black"},padding:{top:0,bottom:0,left:0,right:0}});var Pp=Sp,Ap={width:500,height:100};var Mp=function(t,e){if(void 0===e&&(e=Ap),!t)throw new Error("Please specify barcode type to validate.");var r=t.toLowerCase(),o="";if("upca"===r?(r="ean13",o="0"):"upce"===r&&(r="ean8",o="0"),!Op[r])throw new Error("Encoding '"+t+"' is not supported.");return function(t,e,r){return function(o){try{t.encode(r+o,e.width,e.height)}catch(t){return{valid:!1,error:t}}return{valid:!0}}}(new Op[r],e,o)},Tp=Object.assign;function Ep(t,e){for(var r=[],o=0;o<t.length;)r.push(t.substring(o,o+e)),o+=e;return r}function jp(t,e){var r=Number(t).toString(2);return r.length<e&&(r=new Array(e-r.length+1).join(0)+r),r}function Rp(t){return parseInt(t,2)}var Ip=function(t){function e(e){t.call(this),this.matrix=e,this.row=e.length-1,this.column=e.length-1,this.startColumn=this.column,this.dir=-1,this.c=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.move=function(){this.row+=this.dir*this.c,this.c^=1,this.column=this.startColumn-this.c},e.prototype.getNextCell=function(){for(;void 0!==this.matrix[this.row][this.column];)this.move(),(this.row<0||this.row>=this.matrix.length)&&(this.dir=-this.dir,this.startColumn-=8!==this.startColumn?2:3,this.column=this.startColumn,this.row=this.dir<0?this.matrix.length-1:0);return{row:this.row,column:this.column}},e.prototype.getNextRemainderCell=function(){if(this.move(),void 0===this.matrix[this.row][this.column])return{row:this.row,column:this.column}},e}(O.Class),Bp=function(t){function e(e,r){t.call(this),this.dataString=e,this.version=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(O.Class),Lp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getEncodingResult=function(t,e){var r=function(t){var e,r=[],o=0,i=t;r.push(pc(i,8,5,8,e)),e=r[0].mode,i=i.substr(r[0].modeString.length);for(;i.length>0;){var n=pc(i,17,9,16,e);n.mode!==e?(e=n.mode,r.push(n),o++):r[o].modeString+=n.modeString,i=i.substr(n.modeString.length)}return r}(t),o=cc(function(t){for(var e,r=0,o=0;o<t.length;o++)e=Hp[t[o].mode],r+=e.getStringBitsLength(t[o].modeString.length);return Math.ceil(r/8)}(r),e),i=function(t,e){for(var r,o="",i=0;i<t.length;i++)r=Hp[t[i].mode],o+=r.encode(t[i].modeString,e);return o}(r,o);return new Bp(i,o)},e}(O.Class),Dp=function(t){function e(){t.call(this),this.initProperties()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){Tp(this,{modeIndicator:"",bitsInCharacterCount:[]})},e.prototype.getVersionIndex=function(t){return t<10?0:t>26?2:1},e.prototype.getBitsCharacterCount=function(t){return this.bitsInCharacterCount[this.getVersionIndex(t||40)]},e.prototype.getModeCountString=function(t,e){return this.modeIndicator+jp(t,this.getBitsCharacterCount(e))},e.prototype.encode=function(){},e.prototype.getStringBitsLength=function(){},e.prototype.getValue=function(){},e}(O.Class),zp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Tp(this,{bitsInCharacterCount:[10,12,14],modeIndicator:"0001"})},e.prototype.getValue=function(t){return parseInt(t,10)},e.prototype.encode=function(t,e){var r,o=Ep(t,3),i=this.getModeCountString(t.length,e);for(r=0;r<o.length-1;r++)i+=jp(o[r],10);return i+jp(o[r],1+3*o[r].length)},e.prototype.getStringBitsLength=function(t,e){var r=t%3;return 4+this.getBitsCharacterCount(e)+10*Math.floor(t/3)+3*r+(0===r?0:1)},e}(Dp),Vp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Tp(this,{characters:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:18,J:19,K:20,L:21,M:22,N:23,O:24,P:25,Q:26,R:27,S:28,T:29,U:30,V:31,W:32,X:33,Y:34,Z:35," ":36,$:37,"%":38,"*":39,"+":40,"-":41,".":42,"/":43,":":44},bitsInCharacterCount:[9,11,13],modeIndicator:"0010"})},e.prototype.getValue=function(t){return this.characters[t]},e.prototype.encode=function(t,e){var r,o=Ep(t,2),i=this.getModeCountString(t.length,e);for(r=0;r<o.length-1;r++)i+=jp(45*this.getValue(o[r].charAt(0))+this.getValue(o[r].charAt(1)),11);return i+jp(2===o[r].length?45*this.getValue(o[r].charAt(0))+this.getValue(o[r].charAt(1)):this.getValue(o[r].charAt(0)),1+5*o[r].length)},e.prototype.getStringBitsLength=function(t,e){return 4+this.getBitsCharacterCount(e)+11*Math.floor(t/2)+t%2*6},e}(Dp),Np=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Tp(this,{bitsInCharacterCount:[8,16,16],modeIndicator:"0100"})},e.prototype.getValue=function(t){var e=t.charCodeAt(0);if(e<=127||160<=e&&e<=255)return e;throw new Error('Unsupported character in QR Code: "'+t+'".')},e.prototype.encode=function(t,e){for(var r=this.getModeCountString(t.length,e),o=0;o<t.length;o++)r+=jp(this.getValue(t.charAt(o)),8);return r},e.prototype.getStringBitsLength=function(t,e){return 4+this.getBitsCharacterCount(e)+8*t},e}(Dp),Hp={};Hp.numeric=new zp,Hp.alphanumeric=new Vp,Hp.byte=new Np;var Up=function(t){function e(){t.call(this),this.initProperties(),this.mode=Hp[this.encodingMode]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){Tp(this,{encodingMode:"byte",utfBOM:"111011111011101110111111",initialModeCountStringLength:20,ranges:[128,2048,65536,2097152,67108864]})},e.prototype.getEncodingResult=function(t,e){var r=this.encode(t),o=cc(this.getDataCodewordsCount(r),e),i=this.mode.getModeCountString(r.length/8,o)+r;return new Bp(i,o)},e.prototype.getDataCodewordsCount=function(t){var e=t.length;return Math.ceil((this.initialModeCountStringLength+e)/8)},e.prototype.encode=function(t){for(var e=this.utfBOM,r=0;r<t.length;r++)e+=this.encodeCharacter(t.charCodeAt(r));return e},e.prototype.encodeCharacter=function(t){var e=this.getBytesCount(t),r=e-1,o="";if(1===e)o=jp(t,8);else{for(var i=8-e,n=0;n<r;n++)o=jp(t>>6*n&63|128,8)+o;o=(t>>6*r|255>>i<<i).toString(2)+o}return o},e.prototype.getBytesCount=function(t){for(var e=this.ranges,r=0;r<e.length;r++)if(t<e[r])return r+1},e}(O.Class),Fp=[{L:{groups:[[1,19]],totalDataCodewords:19,errorCodewordsPerBlock:7},M:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:10},Q:{groups:[[1,13]],totalDataCodewords:13,errorCodewordsPerBlock:13},H:{groups:[[1,9]],totalDataCodewords:9,errorCodewordsPerBlock:17}},{L:{groups:[[1,34]],totalDataCodewords:34,errorCodewordsPerBlock:10},M:{groups:[[1,28]],totalDataCodewords:28,errorCodewordsPerBlock:16},Q:{groups:[[1,22]],totalDataCodewords:22,errorCodewordsPerBlock:22},H:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:28}},{L:{groups:[[1,55]],totalDataCodewords:55,errorCodewordsPerBlock:15},M:{groups:[[1,44]],totalDataCodewords:44,errorCodewordsPerBlock:26},Q:{groups:[[2,17]],totalDataCodewords:34,errorCodewordsPerBlock:18},H:{groups:[[2,13]],totalDataCodewords:26,errorCodewordsPerBlock:22}},{L:{groups:[[1,80]],totalDataCodewords:80,errorCodewordsPerBlock:20},M:{groups:[[2,32]],totalDataCodewords:64,errorCodewordsPerBlock:18},Q:{groups:[[2,24]],totalDataCodewords:48,errorCodewordsPerBlock:26},H:{groups:[[4,9]],totalDataCodewords:36,errorCodewordsPerBlock:16}},{L:{groups:[[1,108]],totalDataCodewords:108,errorCodewordsPerBlock:26},M:{groups:[[2,43]],totalDataCodewords:86,errorCodewordsPerBlock:24},Q:{groups:[[2,15],[2,16]],totalDataCodewords:62,errorCodewordsPerBlock:18},H:{groups:[[2,11],[2,12]],totalDataCodewords:46,errorCodewordsPerBlock:22}},{L:{groups:[[2,68]],totalDataCodewords:136,errorCodewordsPerBlock:18},M:{groups:[[4,27]],totalDataCodewords:108,errorCodewordsPerBlock:16},Q:{groups:[[4,19]],totalDataCodewords:76,errorCodewordsPerBlock:24},H:{groups:[[4,15]],totalDataCodewords:60,errorCodewordsPerBlock:28}},{L:{groups:[[2,78]],totalDataCodewords:156,errorCodewordsPerBlock:20},M:{groups:[[4,31]],totalDataCodewords:124,errorCodewordsPerBlock:18},Q:{groups:[[2,14],[4,15]],totalDataCodewords:88,errorCodewordsPerBlock:18},H:{groups:[[4,13],[1,14]],totalDataCodewords:66,errorCodewordsPerBlock:26}},{L:{groups:[[2,97]],totalDataCodewords:194,errorCodewordsPerBlock:24},M:{groups:[[2,38],[2,39]],totalDataCodewords:154,errorCodewordsPerBlock:22},Q:{groups:[[4,18],[2,19]],totalDataCodewords:110,errorCodewordsPerBlock:22},H:{groups:[[4,14],[2,15]],totalDataCodewords:86,errorCodewordsPerBlock:26}},{L:{groups:[[2,116]],totalDataCodewords:232,errorCodewordsPerBlock:30},M:{groups:[[3,36],[2,37]],totalDataCodewords:182,errorCodewordsPerBlock:22},Q:{groups:[[4,16],[4,17]],totalDataCodewords:132,errorCodewordsPerBlock:20},H:{groups:[[4,12],[4,13]],totalDataCodewords:100,errorCodewordsPerBlock:24}},{L:{groups:[[2,68],[2,69]],totalDataCodewords:274,errorCodewordsPerBlock:18},M:{groups:[[4,43],[1,44]],totalDataCodewords:216,errorCodewordsPerBlock:26},Q:{groups:[[6,19],[2,20]],totalDataCodewords:154,errorCodewordsPerBlock:24},H:{groups:[[6,15],[2,16]],totalDataCodewords:122,errorCodewordsPerBlock:28}},{L:{groups:[[4,81]],totalDataCodewords:324,errorCodewordsPerBlock:20},M:{groups:[[1,50],[4,51]],totalDataCodewords:254,errorCodewordsPerBlock:30},Q:{groups:[[4,22],[4,23]],totalDataCodewords:180,errorCodewordsPerBlock:28},H:{groups:[[3,12],[8,13]],totalDataCodewords:140,errorCodewordsPerBlock:24}},{L:{groups:[[2,92],[2,93]],totalDataCodewords:370,errorCodewordsPerBlock:24},M:{groups:[[6,36],[2,37]],totalDataCodewords:290,errorCodewordsPerBlock:22},Q:{groups:[[4,20],[6,21]],totalDataCodewords:206,errorCodewordsPerBlock:26},H:{groups:[[7,14],[4,15]],totalDataCodewords:158,errorCodewordsPerBlock:28}},{L:{groups:[[4,107]],totalDataCodewords:428,errorCodewordsPerBlock:26},M:{groups:[[8,37],[1,38]],totalDataCodewords:334,errorCodewordsPerBlock:22},Q:{groups:[[8,20],[4,21]],totalDataCodewords:244,errorCodewordsPerBlock:24},H:{groups:[[12,11],[4,12]],totalDataCodewords:180,errorCodewordsPerBlock:22}},{L:{groups:[[3,115],[1,116]],totalDataCodewords:461,errorCodewordsPerBlock:30},M:{groups:[[4,40],[5,41]],totalDataCodewords:365,errorCodewordsPerBlock:24},Q:{groups:[[11,16],[5,17]],totalDataCodewords:261,errorCodewordsPerBlock:20},H:{groups:[[11,12],[5,13]],totalDataCodewords:197,errorCodewordsPerBlock:24}},{L:{groups:[[5,87],[1,88]],totalDataCodewords:523,errorCodewordsPerBlock:22},M:{groups:[[5,41],[5,42]],totalDataCodewords:415,errorCodewordsPerBlock:24},Q:{groups:[[5,24],[7,25]],totalDataCodewords:295,errorCodewordsPerBlock:30},H:{groups:[[11,12],[7,13]],totalDataCodewords:223,errorCodewordsPerBlock:24}},{L:{groups:[[5,98],[1,99]],totalDataCodewords:589,errorCodewordsPerBlock:24},M:{groups:[[7,45],[3,46]],totalDataCodewords:453,errorCodewordsPerBlock:28},Q:{groups:[[15,19],[2,20]],totalDataCodewords:325,errorCodewordsPerBlock:24},H:{groups:[[3,15],[13,16]],totalDataCodewords:253,errorCodewordsPerBlock:30}},{L:{groups:[[1,107],[5,108]],totalDataCodewords:647,errorCodewordsPerBlock:28},M:{groups:[[10,46],[1,47]],totalDataCodewords:507,errorCodewordsPerBlock:28},Q:{groups:[[1,22],[15,23]],totalDataCodewords:367,errorCodewordsPerBlock:28},H:{groups:[[2,14],[17,15]],totalDataCodewords:283,errorCodewordsPerBlock:28}},{L:{groups:[[5,120],[1,121]],totalDataCodewords:721,errorCodewordsPerBlock:30},M:{groups:[[9,43],[4,44]],totalDataCodewords:563,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[1,23]],totalDataCodewords:397,errorCodewordsPerBlock:28},H:{groups:[[2,14],[19,15]],totalDataCodewords:313,errorCodewordsPerBlock:28}},{L:{groups:[[3,113],[4,114]],totalDataCodewords:795,errorCodewordsPerBlock:28},M:{groups:[[3,44],[11,45]],totalDataCodewords:627,errorCodewordsPerBlock:26},Q:{groups:[[17,21],[4,22]],totalDataCodewords:445,errorCodewordsPerBlock:26},H:{groups:[[9,13],[16,14]],totalDataCodewords:341,errorCodewordsPerBlock:26}},{L:{groups:[[3,107],[5,108]],totalDataCodewords:861,errorCodewordsPerBlock:28},M:{groups:[[3,41],[13,42]],totalDataCodewords:669,errorCodewordsPerBlock:26},Q:{groups:[[15,24],[5,25]],totalDataCodewords:485,errorCodewordsPerBlock:30},H:{groups:[[15,15],[10,16]],totalDataCodewords:385,errorCodewordsPerBlock:28}},{L:{groups:[[4,116],[4,117]],totalDataCodewords:932,errorCodewordsPerBlock:28},M:{groups:[[17,42]],totalDataCodewords:714,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[6,23]],totalDataCodewords:512,errorCodewordsPerBlock:28},H:{groups:[[19,16],[6,17]],totalDataCodewords:406,errorCodewordsPerBlock:30}},{L:{groups:[[2,111],[7,112]],totalDataCodewords:1006,errorCodewordsPerBlock:28},M:{groups:[[17,46]],totalDataCodewords:782,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[16,25]],totalDataCodewords:568,errorCodewordsPerBlock:30},H:{groups:[[34,13]],totalDataCodewords:442,errorCodewordsPerBlock:24}},{L:{groups:[[4,121],[5,122]],totalDataCodewords:1094,errorCodewordsPerBlock:30},M:{groups:[[4,47],[14,48]],totalDataCodewords:860,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[14,25]],totalDataCodewords:614,errorCodewordsPerBlock:30},H:{groups:[[16,15],[14,16]],totalDataCodewords:464,errorCodewordsPerBlock:30}},{L:{groups:[[6,117],[4,118]],totalDataCodewords:1174,errorCodewordsPerBlock:30},M:{groups:[[6,45],[14,46]],totalDataCodewords:914,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[16,25]],totalDataCodewords:664,errorCodewordsPerBlock:30},H:{groups:[[30,16],[2,17]],totalDataCodewords:514,errorCodewordsPerBlock:30}},{L:{groups:[[8,106],[4,107]],totalDataCodewords:1276,errorCodewordsPerBlock:26},M:{groups:[[8,47],[13,48]],totalDataCodewords:1e3,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[22,25]],totalDataCodewords:718,errorCodewordsPerBlock:30},H:{groups:[[22,15],[13,16]],totalDataCodewords:538,errorCodewordsPerBlock:30}},{L:{groups:[[10,114],[2,115]],totalDataCodewords:1370,errorCodewordsPerBlock:28},M:{groups:[[19,46],[4,47]],totalDataCodewords:1062,errorCodewordsPerBlock:28},Q:{groups:[[28,22],[6,23]],totalDataCodewords:754,errorCodewordsPerBlock:28},H:{groups:[[33,16],[4,17]],totalDataCodewords:596,errorCodewordsPerBlock:30}},{L:{groups:[[8,122],[4,123]],totalDataCodewords:1468,errorCodewordsPerBlock:30},M:{groups:[[22,45],[3,46]],totalDataCodewords:1128,errorCodewordsPerBlock:28},Q:{groups:[[8,23],[26,24]],totalDataCodewords:808,errorCodewordsPerBlock:30},H:{groups:[[12,15],[28,16]],totalDataCodewords:628,errorCodewordsPerBlock:30}},{L:{groups:[[3,117],[10,118]],totalDataCodewords:1531,errorCodewordsPerBlock:30},M:{groups:[[3,45],[23,46]],totalDataCodewords:1193,errorCodewordsPerBlock:28},Q:{groups:[[4,24],[31,25]],totalDataCodewords:871,errorCodewordsPerBlock:30},H:{groups:[[11,15],[31,16]],totalDataCodewords:661,errorCodewordsPerBlock:30}},{L:{groups:[[7,116],[7,117]],totalDataCodewords:1631,errorCodewordsPerBlock:30},M:{groups:[[21,45],[7,46]],totalDataCodewords:1267,errorCodewordsPerBlock:28},Q:{groups:[[1,23],[37,24]],totalDataCodewords:911,errorCodewordsPerBlock:30},H:{groups:[[19,15],[26,16]],totalDataCodewords:701,errorCodewordsPerBlock:30}},{L:{groups:[[5,115],[10,116]],totalDataCodewords:1735,errorCodewordsPerBlock:30},M:{groups:[[19,47],[10,48]],totalDataCodewords:1373,errorCodewordsPerBlock:28},Q:{groups:[[15,24],[25,25]],totalDataCodewords:985,errorCodewordsPerBlock:30},H:{groups:[[23,15],[25,16]],totalDataCodewords:745,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[3,116]],totalDataCodewords:1843,errorCodewordsPerBlock:30},M:{groups:[[2,46],[29,47]],totalDataCodewords:1455,errorCodewordsPerBlock:28},Q:{groups:[[42,24],[1,25]],totalDataCodewords:1033,errorCodewordsPerBlock:30},H:{groups:[[23,15],[28,16]],totalDataCodewords:793,errorCodewordsPerBlock:30}},{L:{groups:[[17,115]],totalDataCodewords:1955,errorCodewordsPerBlock:30},M:{groups:[[10,46],[23,47]],totalDataCodewords:1541,errorCodewordsPerBlock:28},Q:{groups:[[10,24],[35,25]],totalDataCodewords:1115,errorCodewordsPerBlock:30},H:{groups:[[19,15],[35,16]],totalDataCodewords:845,errorCodewordsPerBlock:30}},{L:{groups:[[17,115],[1,116]],totalDataCodewords:2071,errorCodewordsPerBlock:30},M:{groups:[[14,46],[21,47]],totalDataCodewords:1631,errorCodewordsPerBlock:28},Q:{groups:[[29,24],[19,25]],totalDataCodewords:1171,errorCodewordsPerBlock:30},H:{groups:[[11,15],[46,16]],totalDataCodewords:901,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[6,116]],totalDataCodewords:2191,errorCodewordsPerBlock:30},M:{groups:[[14,46],[23,47]],totalDataCodewords:1725,errorCodewordsPerBlock:28},Q:{groups:[[44,24],[7,25]],totalDataCodewords:1231,errorCodewordsPerBlock:30},H:{groups:[[59,16],[1,17]],totalDataCodewords:961,errorCodewordsPerBlock:30}},{L:{groups:[[12,121],[7,122]],totalDataCodewords:2306,errorCodewordsPerBlock:30},M:{groups:[[12,47],[26,48]],totalDataCodewords:1812,errorCodewordsPerBlock:28},Q:{groups:[[39,24],[14,25]],totalDataCodewords:1286,errorCodewordsPerBlock:30},H:{groups:[[22,15],[41,16]],totalDataCodewords:986,errorCodewordsPerBlock:30}},{L:{groups:[[6,121],[14,122]],totalDataCodewords:2434,errorCodewordsPerBlock:30},M:{groups:[[6,47],[34,48]],totalDataCodewords:1914,errorCodewordsPerBlock:28},Q:{groups:[[46,24],[10,25]],totalDataCodewords:1354,errorCodewordsPerBlock:30},H:{groups:[[2,15],[64,16]],totalDataCodewords:1054,errorCodewordsPerBlock:30}},{L:{groups:[[17,122],[4,123]],totalDataCodewords:2566,errorCodewordsPerBlock:30},M:{groups:[[29,46],[14,47]],totalDataCodewords:1992,errorCodewordsPerBlock:28},Q:{groups:[[49,24],[10,25]],totalDataCodewords:1426,errorCodewordsPerBlock:30},H:{groups:[[24,15],[46,16]],totalDataCodewords:1096,errorCodewordsPerBlock:30}},{L:{groups:[[4,122],[18,123]],totalDataCodewords:2702,errorCodewordsPerBlock:30},M:{groups:[[13,46],[32,47]],totalDataCodewords:2102,errorCodewordsPerBlock:28},Q:{groups:[[48,24],[14,25]],totalDataCodewords:1502,errorCodewordsPerBlock:30},H:{groups:[[42,15],[32,16]],totalDataCodewords:1142,errorCodewordsPerBlock:30}},{L:{groups:[[20,117],[4,118]],totalDataCodewords:2812,errorCodewordsPerBlock:30},M:{groups:[[40,47],[7,48]],totalDataCodewords:2216,errorCodewordsPerBlock:28},Q:{groups:[[43,24],[22,25]],totalDataCodewords:1582,errorCodewordsPerBlock:30},H:{groups:[[10,15],[67,16]],totalDataCodewords:1222,errorCodewordsPerBlock:30}},{L:{groups:[[19,118],[6,119]],totalDataCodewords:2956,errorCodewordsPerBlock:30},M:{groups:[[18,47],[31,48]],totalDataCodewords:2334,errorCodewordsPerBlock:28},Q:{groups:[[34,24],[34,25]],totalDataCodewords:1666,errorCodewordsPerBlock:30},H:{groups:[[20,15],[61,16]],totalDataCodewords:1276,errorCodewordsPerBlock:30}}],Gp={1:0},Wp={0:1},Kp={15:20,16:20,18:24,19:24,22:20,24:22,26:24,28:20,30:20,31:24,32:28,33:24,36:18,37:22,39:20,40:24},Xp=[1,0,1,1,1],Yp=[1,0,1],qp={L:"01",M:"00",Q:"11",H:"10"},Zp=["11101100","00010001"],Qp=[function(t,e){return(t+e)%2==0},function(t,e){return t%2==0},function(t,e){return e%3==0},function(t,e){return(t+e)%3==0},function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0},function(t,e){return t*e%2+t*e%3==0},function(t,e){return(t*e%2+t*e%3)%2==0},function(t,e){return((t+e)%2+t*e%3)%2==0}],$p=/^\d+/,Jp=new RegExp("^[A-Z $%*+./:-]+"),tc=new RegExp("^[A-Z0-9 $%*+./:-]+"),ec=new RegExp("^[^A-Z0-9 $%*+./:-]+"),rc=[[1,0],[1,25,0]];function oc(t,e,r,o){for(var i=0;i<t.length;i++)t[i][r][o]=e}function ic(t,e,r,o){for(var i=0;i<Qp.length;i++)t[i][r][o]=Qp[i](r,o)?1^e:parseInt(e,10)}function nc(t,e){for(var r=[],o=t.length-2;o>=0;o--)r[o]=t[o]^e[o];return r}function sc(t,e){for(var r=[],o=0;o<t.length;o++)for(var i=0;i<e.length;i++)void 0===r[o+i]?r[o+i]=(t[o]+(e[i]>=0?e[i]:0))%255:r[o+i]=Gp[Wp[r[o+i]]^Wp[(t[o]+e[i])%255]];return r}function ac(t,e){var r=[],o=t.length-1;do{r[o]=Wp[(t[o]+e)%255],o--}while(void 0!==t[o]);return r}function lc(t,e){var r,o,i=rc[e-1],n=new Array(e).concat(t),s=new Array(n.length-i.length).concat(i),a=t.length,l=[];for(o=0;o<a;o++)r=ac(s,Gp[n[n.length-1]]),s.splice(0,1),n=nc(r,n);for(o=n.length-1;o>=0;o--)l[e-1-o]=jp(n[o],8);return l}function pc(t,e,r,o,i){var n,s,a=$p.exec(t),l=a?a[0]:"",p=Jp.exec(t),c=p?p[0]:"",h=tc.exec(t),u=h?h[0]:"";return l&&(l.length>=e||t.length===l.length||l.length>=r&&!tc.test(t.charAt(l.length)))?(n="numeric",s=l):u&&(t.length===u.length||u.length>=o||"alphanumeric"===i)?(n="alphanumeric",s=l||c):(n="byte",s=u?u+ec.exec(t.substring(u.length))[0]:ec.exec(t)[0]),{mode:n,modeString:s}}function cc(t,e){var r=0,o=Fp.length-1,i=Math.floor(Fp.length/2);do{t<Fp[i][e].totalDataCodewords?o=i:r=i,i=r+Math.floor((o-r)/2)}while(o-r>1);return t<=Fp[r][e].totalDataCodewords?i+1:o+1}function hc(t,e,r){var o=Rp(e),i=e.length-1,n=t<<i,s=jp(t,r-i),a=function(t,e){var r=e.toString(2).length,o=t.toString(2).length,i=t;do{o=(i^=e<<o-r).toString(2).length}while(o>=r);return i}(n,o);return a=s+jp(a,i)}function uc(t,e){return parseInt(t.charAt(e),10)}function fc(t,e){var r,o,i=t[0],n=0,s=e.length;for(r=0,o=8;r<=8;r++)6!==r&&oc(t,uc(e,s-1-n++),r,o);for(r=8,o=7;o>=0;o--)6!==o&&oc(t,uc(e,s-1-n++),r,o);for(n=0,o=i.length-1,r=8;o>=i.length-8;o--)oc(t,uc(e,s-1-n++),r,o);for(oc(t,1,i.length-8,8),r=i.length-7,o=8;r<i.length;r++)oc(t,uc(e,s-1-n++),r,o)}function dc(t,e){for(var r,o,i,n=t[0].length,s=n-11,a=n-11,l=0;l<e.length;l++)r=Math.floor(l/3),o=l%3,oc(t,i=uc(e,e.length-l-1),0+r,s+o),oc(t,i,a+o,0+r)}function vc(t,e,r,o){for(var i,n=e.length+2,s=e.length+1,a=0;a<e.length;a++)for(var l=a;l<n-a;l++)oc(t,i=e[a],r+l,o+a),oc(t,i,r+a,o+l),oc(t,i,r+s-l,o+s-a),oc(t,i,r+s-a,o+s-l)}function yc(t,e,r,o){var i=r,n=o,s=t[0];do{oc(t,0,i,o),oc(t,0,r,n),i+=e[0],n+=e[1]}while(i>=0&&i<s.length)}function gc(t,e,r,o,i){e[t][o]=(e[t][o]<<1^i)%128,93===e[t][o]&&(r[t]+=40)}function mc(t,e,r,o,i,n){r[t][n]===o?i[t][n]++:(r[t][n]=o,i[t][n]>=5&&(e[t]+=3+i[t][n]-5),i[t][n]=1)}function _c(t,e){var r=Math.floor(t/e*100),o=r%5,i=Math.abs(r-o-50),n=Math.abs(r+5-o-50);return 10*Math.min(i/5,n/5)}function bc(t,e,r){var o=function(t){return t&&t.toLowerCase().indexOf("utf_8")>=0?new Up:new Lp}(r).getEncodingResult(t,e),i=o.version,n=Fp[i-1][e],s=function(t,e){for(var r,o,i,n,s,a=0,l=[],p=[],c=e.groups,h=0;h<c.length;h++){i=c[h][0];for(var u=0;u<i;u++){o=c[h][1],r=[],n=[];for(var f=1;f<=o;f++)s=t.substring(a,a+8),r.push(s),n[o-f]=Rp(s),a+=8;l.push(r),p.push(lc(n,e.errorCodewordsPerBlock))}}return[l,p]}(function(t,e){for(var r=8*e,o=0,i=0,n=t;n.length<r&&o<"0000".length;)n+="0000".charAt(o++);for(n.length%8!=0&&(n+=new Array(9-n.length%8).join("0"));n.length<r;)n+=Zp[i],i^=1;return n}(o.dataString,n.totalDataCodewords),n),a=function(t){for(var e=[],r=17+4*t,o=0;o<Qp.length;o++){e[o]=new Array(r);for(var i=0;i<r;i++)e[o][i]=new Array(r)}return e}(i);!function(t){var e=t[0].length;vc(t,Xp,0,0),yc(t,[-1,-1],7,7),vc(t,Xp,e-7,0),yc(t,[1,-1],e-8,7),vc(t,Xp,0,e-7),yc(t,[-1,1],7,e-8)}(a),function(t,e){if(!(e<2)){var r,o,i=t[0],n=i.length,s=Math.floor(e/7),a=[6],l=0;for((r=Kp[e])?o=(n-13-r)/s:r=o=(n-13)/(s+1),a.push(a[l++]+r);a[l]+o<n;)a.push(a[l++]+o);for(var p=0;p<a.length;p++)for(var c=0;c<a.length;c++)void 0===i[a[p]][a[c]]&&vc(t,Yp,a[p]-2,a[c]-2)}}(a,i),function(t){for(var e=1,r=t[0].length,o=8;o<r-8;o++)oc(t,e,6,o),oc(t,e,o,6),e^=1}(a),i>=7&&dc(a,jp(0,18)),fc(a,jp(0,15)),function(t,e){for(var r,o,i,n=new Ip(t[0]),s=0;s<e.length;s++)for(r=e[s],o=0;r.length>0;){for(var a=0;a<r.length;a++)for(var l=0;l<8;l++)i=n.getNextCell(),ic(t,r[a][o].charAt(l),i.row,i.column);for(o++;r[0]&&o===r[0].length;)r.splice(0,1)}for(;i=n.getNextRemainderCell();)ic(t,0,i.row,i.column)}(a,s);var l=function(t){var e,r,o=[],i=[],n=[],s=[],a=[],l=t[0].length;for(r=0;r<t.length;r++)o[r]=0,n[r]=0,a[r]=[0,0],s[r]=[0,0],i[r]=[];for(var p=0;p<l;p++)for(var c=0;c<l;c++)for(var h=0;h<t.length;h++)e=t[h],n[h]+=parseInt(e[p][c],10),i[h][0]===e[p][c]&&p+1<l&&c-1>=0&&e[p+1][c]===i[h][0]&&e[p+1][c-1]===i[h][0]&&(o[h]+=3),gc(h,s,o,0,e[p][c]),gc(h,s,o,1,e[c][p]),mc(h,o,i,e[p][c],a,0),mc(h,o,i,e[c][p],a,1);var u,f=l*l,d=Number.MAX_VALUE;for(r=0;r<o.length;r++)o[r]+=_c(n[r],f),o[r]<d&&(d=o[r],u=r);return u}(a),p=a[l];return i>=7&&dc([p],function(t){return hc(t,"1111100100101",18)}(i)),fc([p],function(t){var e,r="";if(0===Rp(t))return"101010000010010";e=hc(Rp(t),"10100110111",15);for(var o=0;o<e.length;o++)r+=e.charAt(o)^"101010000010010".charAt(o);return r}(qp[e]+jp(l,3))),p}!function(){var t,e;for(e=1;e<255;e++)(t=2*Wp[e-1])>255&&(t^=285),Wp[e]=t,Gp[t]=e;t=2*Wp[e-1]^285,Wp[e]=t,Wp[-1]=0}(),function(){for(var t=2;t<=68;t++){var e=rc[t-1],r=[t,0];rc[t]=sc(e,r)}}();var xc=Math.round,wc=[[0,1],[1,1],[1,2],[2,2],[2,1],[3,1],[3,0],[2,0],[2,-1],[1,-1],[1,0]],Cc=[[0,1],[1,1],[1,0]],Oc=200,kc="L",Sc="#fff",Pc="#000",Ac=1,Mc=7,Tc=function(t){function e(e,r,o){void 0===o&&(o=Lt),t.call(this),this.options=j({},this.options,r),this.element=e,this.wrapper=this.element,this.onError=o,this._initElement(),this._initSurface(),this.setOptions(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this._destroySurface()},e.prototype._initElement=function(){x(this.element,"k-qrcode")},e.prototype._initSurface=function(){var t=this.options,e=this.surface;e&&e.options.type===t.renderAs||(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())},e.prototype._createSurface=function(){return O.drawing.Surface.create(this.surfaceElement,{type:this.options.renderAs})},e.prototype._destroySurface=function(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())},e.prototype._initSurfaceElement=function(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))},e.prototype._destroySurfaceElement=function(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)},e.prototype.redraw=function(){var t=this._getSize();this.surface.clear(),this.surface.setSize({width:t,height:t}),this.createVisual(),this.surface.draw(this.visual)},e.prototype.getSize=function(){var t=this.element,e=t.clientWidth,r=t.clientHeight,o={width:0,height:0};return e>0&&(o.width=e),r&&(o.height=r),o},e.prototype._resize=function(){this.redraw()},e.prototype.createVisual=function(){this.visual=this._render()},e.prototype.exportVisual=function(){return this._render()},e.prototype._render=function(){var t,e,r,o,i,n=this._value,s=this.options.border||{},a=this.options.padding||0,l=s.width||0;s.width=l;var p=new O.drawing.Group;try{n&&(r=bc(n,this.options.errorCorrection,this.options.encoding),i=(o=this._getSize())-2*(l+a),t=this._calculateBaseUnit(i,r.length),e=l+a+(i-r.length*t)/2,p.append(this._renderBackground(o,s)),p.append(this._renderMatrix(r,t,e)),this._hasCustomLogo()?p.append(this._renderLogo(o,t)):this._isSwiss()&&p.append(this._renderSwissCode(o,t)))}catch(t){this.onError(t)}return p},e.prototype._renderLogo=function(t,e){var r,o=xc(t/2),i=this._getLogoSize(e*Mc),n=this.options.overlay.imageUrl,s={x:o-i.width/2,y:o-i.height/2};return r=new O.geometry.Rect(new O.geometry.Point(s.x,s.y),new O.geometry.Size(i.width,i.height)),new O.drawing.Image(n,r)},e.prototype._renderSwissCode=function(t,e){var r=this._getLogoSize(e*Mc),o=(r=Math.max(r.width,r.height))/4,i=o/2,n=t/2,s={},a=new O.drawing.Group;return s.x=s.y=Math.ceil(n-e-r/2),a.append(this._renderShape(s,Math.ceil(r+2*e),Cc,"#fff")),s.x=s.y=n-r/2,a.append(this._renderShape(s,r,Cc,this.options.color)),s.x=n+i-r/2,s.y=n+i+o-r/2,a.append(this._renderShape(s,o,wc,"#fff")),a},e.prototype._renderShape=function(t,e,r,o){var i=new O.drawing.MultiPath({fill:{color:o},stroke:null});i.moveTo(t.x,t.y);for(var n=0;n<r.length;n++)i.lineTo(t.x+e*r[n][0],t.y+e*r[n][1]);return i.close(),i},e.prototype._getSize=function(){var t;if(this.options.size)t=parseInt(this.options.size,10);else{var e=kp(this.element,this.options.renderAs),r=Math.min(e.width,e.height);t=r>0?r:Oc}return t},e.prototype._calculateBaseUnit=function(t,e){var r=Math.floor(t/e);if(r<Ac){var o=Math.ceil(e*Ac);this.onError(new Error("Insufficient size for QR Code: the current size is "+t+"px and the minimum size is "+o+"px."))}else r*e>=t&&r-1>=Ac&&r--;return r},e.prototype._renderMatrix=function(t,e,r){for(var o=new O.drawing.MultiPath({fill:{color:this.options.color},stroke:null}),i=0;i<t.length;i++)for(var n=r+i*e,s=0;s<t.length;){for(;0===t[i][s]&&s<t.length;)s++;if(s<t.length){for(var a=s;1===t[i][s];)s++;var l=xc(r+a*e),p=xc(n),c=xc(r+s*e),h=xc(n+e);o.moveTo(l,p).lineTo(l,h).lineTo(c,h).lineTo(c,p).close()}}return o},e.prototype._renderBackground=function(t,e){var r=new Ht(0,0,t,t).unpad(e.width/2);return O.drawing.Path.fromRect(r.toRect(),{fill:{color:this.options.background},stroke:{color:e.color,width:e.width}})},e.prototype.setOptions=function(t){var e=t||{};this.options=Tp(this.options,e),void 0!==t.value&&(this._value=String(this.options.value)),this._initSurface(),this.redraw()},e.prototype.value=function(t){if(void 0===t)return this._value;this._value=String(t),this.redraw()},e.prototype._hasCustomLogo=function(){return Boolean(this.options.overlay.imageUrl)},e.prototype._isSwiss=function(){return"swiss"===this.options.overlay.type},e.prototype._getLogoSize=function(t){var e=this.options.overlay.width,r=this.options.overlay.height;return e||r?e&&!r?r=e:!e&&r&&(e=r):e=r=t,{width:e,height:r}},e}(O.Class);wt(Tc,{name:"QRCode",renderAs:"svg",encoding:"ISO_8859_1",value:"",errorCorrection:kc,background:Sc,color:Pc,size:"",padding:0,border:{color:"",width:0},overlay:{type:"image",imageUrl:"",width:0,height:0}});var Ec=Tc;var jc=function(t){return void 0===t&&(t="ISO_8859_1"),function(e){try{bc(e,"L",t)}catch(t){return{valid:!1,error:t}}return{valid:!0}}},Rc={WGS84:{a:6378137,b:6356752.314245179,f:.0033528106647474805,e:.08181919084262149}};function Ic(t){return t*t}var Bc=Math,Lc=Bc.abs,Dc=Bc.atan,zc=Bc.atan2,Vc=Bc.cos,Nc=Bc.sin,Hc=Bc.tan,Uc=function(t){function e(e,r){t.call(this),this.initProperties(),1===arguments.length?(this.lat=e[0],this.lng=e[1]):(this.lat=e,this.lng=r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){j(this,{DISTANCE_ITERATIONS:100,DISTANCE_CONVERGENCE:1e-12,DISTANCE_PRECISION:2,FORMAT:"{0:N6}{1:N6}"})},e.prototype.toArray=function(){return[this.lat,this.lng]},e.prototype.equals=function(t){return t&&t.lat===this.lat&&t.lng===this.lng},e.prototype.clone=function(){return new e(this.lat,this.lng)},e.prototype.round=function(t){return this.lng=gt(this.lng,t),this.lat=gt(this.lat,t),this},e.prototype.wrap=function(){return this.lng=this.lng%180,this.lat=this.lat%90,this},e.prototype.distanceTo=function(t,e){return this.greatCircleTo(t,e).distance},e.prototype.destination=function(t,r,o){var i=yt(r),n=o||Rc.WGS84,s=yt(this.lat),a=yt(this.lng),l=t/n.a,p=Bc.asin(Nc(s)*Vc(l)+Vc(s)*Nc(l)*Vc(i)),c=a+zc(Nc(i)*Nc(l)*Vc(s),Vc(l)-Nc(s)*Nc(p));return new e(at(p),at(c))},e.prototype.greatCircleTo=function(t,r){var o=e.create(o),i=r||Rc.WGS84;if(!o||this.clone().round(8).equals(o.clone().round(8)))return{distance:0,azimuthFrom:0,azimuthTo:0};for(var n,s,a,l,p,c,h,u,f=i.a,d=i.b,v=i.f,y=yt(o.lng-this.lng),g=Dc((1-v)*Hc(yt(this.lat))),m=Nc(g),_=Vc(g),b=Dc((1-v)*Hc(yt(o.lat))),x=Nc(b),w=Vc(b),C=y,O=this.DISTANCE_ITERATIONS,k=!1;!k&&O-- >0;){s=Nc(C),a=Vc(C),l=Bc.sqrt(Ic(w*s)+Ic(_*x-m*w*a)),u=zc(l,c=m*x+_*w*a);var S=_*w*s/l;h=0,0!==(p=1-Ic(S))&&(h=c-2*m*x/p),n=C;var P=v/16*p*(4+v*(4-3*p));C=y+(1-P)*v*S*(u+P*l*(h+P*c*(2*Ic(h)-1))),k=Lc(C-n)<=this.DISTANCE_CONVERGENCE}var A=p*(Ic(f)-Ic(d))/Ic(d),M=1+A/16384*(4096+A*(A*(320-175*A)-768)),T=A/1024*(256+A*(A*(74-47*A)-128)),E=T*l*(h+T/4*(c*(2*Ic(h)-1)-T/6*h*(4*Ic(l)-3)*(4*Ic(h)-3))),j=zc(w*s,_*x-m*w*a),R=zc(_*s,-m*w+_*x*a);return{distance:gt(d*M*(u-E),this.DISTANCE_PRECISION),azimuthFrom:at(j),azimuthTo:at(R)}},e.prototype.toString=function(){return String(this.lat)+","+String(this.lng)},e.fromLngLat=function(t){return new e(t[1],t[0])},e.fromLatLng=function(t){return new e(t[0],t[1])},e.create=function(t,r){if(st(t))return t instanceof e?t.clone():1===arguments.length&&2===t.length?e.fromLatLng(t):new e(t,r)},e}(O.Class),Fc=Math,Gc=Fc.atan,Wc=Fc.exp,Kc=Fc.pow,Xc=Fc.sin,Yc=Fc.log,qc=Fc.tan,Zc=O.geometry.Point,Qc=Fc.PI,$c=Qc/2,Jc=Qc/4,th=Qc/180,eh=Rc.WGS84,rh=function(t){function e(e){t.call(this),this.initProperties(),this._initOptions(e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initOptions=function(t){this.options=j({},this.options,t)},e.prototype.initProperties=function(){j(this,{MAX_LNG:180,MAX_LAT:85.0840590501,INVERSE_ITERATIONS:15,INVERSE_CONVERGENCE:1e-12})},e.prototype.forward=function(t,e){var r=this.options,o=r.datum.a,i=r.centralMeridian,n=dt(t.lat,-this.MAX_LAT,this.MAX_LAT),s=e?dt(t.lng,-this.MAX_LNG,this.MAX_LNG):t.lng,a=yt(s-i)*o,l=this._projectLat(n);return new Zc(a,l)},e.prototype._projectLat=function(t){var e=this.options.datum,r=e.e,o=e.a,i=yt(t),n=qc(Jc+i/2),s=r*Xc(i),a=Kc((1-s)/(1+s),r/2);return o*Yc(n*a)},e.prototype.inverse=function(t,e){var r=this.options,o=r.datum.a,i=r.centralMeridian,n=t.x/(th*o)+i,s=dt(this._inverseY(t.y),-this.MAX_LAT,this.MAX_LAT);return e&&(n=dt(n,-this.MAX_LNG,this.MAX_LNG)),new Uc(s,n)},e.prototype._inverseY=function(t){var e,r=this.options.datum,o=r.a,i=r.e,n=i/2,s=Wc(-t/o),a=$c-2*Gc(s);for(e=0;e<=this.INVERSE_ITERATIONS;e++){var l=i*Xc(a),p=Kc((1-l)/(1+l),n),c=$c-2*Gc(s*p)-a;if(a+=c,Fc.abs(c)<=this.INVERSE_CONVERGENCE)break}return at(a)},e}(O.Class);wt(rh,{centralMeridian:0,datum:eh});var oh=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),j(this,{MAX_LAT:85.0511287798})},e.prototype._projectLat=function(t){var e=this.options.datum.a,r=yt(t),o=qc(Jc+r/2);return e*Yc(o)},e.prototype._inverseY=function(t){var e=this.options.datum.a,r=Wc(-t/e);return at($c-2*Gc(r))},e}(rh),ih=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.forward=function(t){return new Zc(t.lng,t.lat)},e.prototype.inverse=function(t){return new Uc(t.y,t.x)},e}(O.Class),nh=function(t){function e(){t.call(this);var e=this._proj=new oh,r=this.c=2*Qc*e.options.datum.a;this._tm=O.geometry.transform().translate(.5,.5).scale(1/r,-1/r),this._itm=O.geometry.transform().scale(r,-r).translate(-.5,-.5)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toPoint=function(t,e,r){return this._proj.forward(t,r).transform(this._tm).scale(e||1)},e.prototype.toLocation=function(t,e,r){var o=t.clone().scale(1/(e||1)).transform(this._itm);return this._proj.inverse(o,r)},e}(O.Class),sh=(function(t){function e(){t.call(this),this._proj=new rh}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toPoint=function(t){return this._proj.forward(t)},e.prototype.toLocation=function(t){return this._proj.inverse(t)}}(O.Class),function(t){function e(){t.call(this),this._proj=new ih}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toPoint=function(t){return this._proj.forward(t)},e.prototype.toLocation=function(t){return this._proj.inverse(t)}}(O.Class),Object.defineProperty),ah=(Object.assign,function(t){var e=document.createElement("div");return e.innerHTML=t,e.firstChild}),lh=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},ph=function(t,e){e.insertBefore(t,e.firstChild)},ch=function(t){return t.replace(/([a-z][A-Z])/g,(function(t){return t.charAt(0)+"-"+t.charAt(1).toLowerCase()}))},hh=function(t){return t&&String(t).endsWith("px")?t:String(t)+"px"},uh=function(t){var e,r=!1,o=[],i={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.?(\d+(\.\d+)?)?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},n={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},s={tablet:/playbook|ipad|fire/i},a={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i};for(var l in i)if(i.hasOwnProperty(l)&&(o=t.match(i[l]))){if("windows"===l&&"plugins"in navigator)return!1;(r={}).device=l,r.tablet=fh(l,s,!1),r.browser=fh(t,a,"default"),r.name=fh(l,n),r[r.name]=!0,r.majorVersion=o[2],r.minorVersion=(o[3]||"0").replace("_","."),e=r.minorVersion.replace(".","").substr(0,2),r.flatVersion=r.majorVersion+e+new Array(3-(e.length<3?e.length:2)).join("0");break}return r};function fh(t,e,r){for(var o in e)if(e.hasOwnProperty(o)&&e[o].test(t))return o;return void 0!==r?r:t}var dh=function(){var t={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"},e=vh();return e.touch&&(e.mobileOS.ios||e.mobileOS.android)?t={down:"touchstart",move:"touchmove",up:"touchend touchcancel",cancel:"touchcancel"}:e.pointers?t={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"}:e.msPointers&&(t={down:"MSPointerDown",move:"MSPointerMove",up:"MSPointerUp",cancel:"MSPointerCancel MSPointerLeave"}),t},vh=function(){var t=uh(navigator.userAgent),e=function(t){var e=!1,r=[],o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var i in o)if(o.hasOwnProperty(i)&&(r=t.match(o[i]))){(e={})[i]=!0,e[r[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,e.version=parseInt(document.documentMode||r[2],10);break}return e}(navigator.userAgent),r=e.chrome,o=e.crios,i=e.mozilla,n=e.safari,s={};s.mobileOS=t,s.touch="ontouchstart"in window,s.pointers=!r&&!o&&!i&&!n&&window.PointerEvent,s.msPointers=!r&&window.MSPointerEvent,s.mouseAndTouchPresent=s.touch&&!(s.mobileOS.ios||s.mobileOS.android),s.eventCapture=document.documentElement.addEventListener;var a=document.createElement("table"),l=s.transitions=!1,p=s.transforms=!1;return["Moz","webkit","O","ms"].forEach((function(t){var e="string"==typeof a.style[t+"Transition"];if(e||"string"==typeof a.style[t+"Transform"]){var r=t.toLowerCase();return p={css:"ms"!==r?"-"+r+"-":"",prefix:t,event:"o"===r||"webkit"===r?r:""},e&&((l=p).event=l.event?l.event+"TransitionEnd":"transitionend"),!1}})),a=null,s.transforms=p,s.transitions=l,s.delayedClick=function(){if(s.touch){if(s.mobileOS.ios)return!0;if(s.mobileOS.android){if(!s.browser.chrome)return!0;if(s.browser.version<32)return!1;var t=document.querySelector("meta[name=viewport]");return!(t?t.getAttribute("content"):"").match(/user-scalable=no/i)}}return!1},s},yh=function(t,e){return t.bind(e)};var gh=function(t,e,r,o,i){mh(t,e,r,o,i)},mh=function(t,e,r,o,i){(b(e)?e:(e||"").split(" ")).forEach((function(e){_h(t,e,r,o,i)}))},_h=function(t,e,r,o,i){var n,s=o;r&&T(r)&&!o?s=r:r&&"string"==typeof r&&T(s)&&(n=r),t.addEventListener(e,(function(e){var r=e.target?e.target.closest(n):null;if(!n||n&&e.target&&r){var o=n?r:e.currentTarget;sh(e,"currentTarget",{value:o}),sh(e,"delegateTarget",{value:t}),s(e)}}),Boolean(i))},bh=function(t,e,r,o,i){xh(t,e,r,o,i)},xh=function(t,e,r,o){(b(e)?e:(e||"").split(" ")).forEach((function(e){wh(t,e,r,o)}))},wh=function(t,e,r,o){t.removeEventListener(e,r,Boolean(o))},Ch=function(t){var e=dh(navigator.userAgent);return t.replace(/([^ ]+)/g,(function(t){return e[t]||t}))},Oh=function(t,e){var r=t.prototype;r.events?e.forEach((function(t){r.events.indexOf(t)<0&&r.events.push(t)})):r.events=e},kh=function(){return Number(new Date)},Sh=function(){},Ph=function(){this._defaultPrevented=!0},Ah=function(){return!0===this._defaultPrevented},Mh=function(t){function e(){t.call(this),this._events={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.unbind()},e.prototype.bind=function(t,e,r){var o,i,n,s,a=this,l="string"==typeof t?[t]:t||[],p="function"==typeof e;if(void 0===e){for(o in t)a.bind(o,t[o]);return a}var c=function(){var t=l[o];(s=p?e:e[t])&&(r&&(n=s,(s=function(){a.unbind(t,s),n.apply(a,arguments)}).original=n),(a._events[t]=a._events[t]||[]).push(s))};for(o=0,i=l.length;o<i;o++)c();return a},e.prototype.one=function(t,e){return this.bind(t,e,!0)},e.prototype.first=function(t,e){var r,o,i,n="string"==typeof t?[t]:t,s="function"==typeof e;for(r=0,o=n.length;r<o;r++){var a=n[r];(i=s?e:e[a])&&(this._events[a]=this._events[a]||[]).unshift(i)}return this},e.prototype.trigger=function(t,e){var r,o,i=this._events[t];if(i){var n=e||{};for(n.sender=this,n._defaultPrevented=!1,n.preventDefault=Ph,n.isDefaultPrevented=Ah,r=0,o=(i=i.slice()).length;r<o;r++)i[r].call(this,n);return!0===n._defaultPrevented}return!1},e.prototype.unbind=function(t,e){var r,o=this._events[t];if(void 0===t)this._events={};else if(o)if(e)for(r=o.length-1;r>=0;r--)o[r]!==e&&o[r].original!==e||o.splice(r,1);else this._events[t]=[];return this},e.prototype._setEvents=function(t){for(var e=(this.events||[]).length,r=0;r<e;r++){var o=this.events[r];this.options[o]&&t[o]&&(this.unbind(o,this.options[o]),this._events&&this._events[o]&&delete this._events[o])}this.bind(this.events,t)},e}(O.Class),Th=H.compile,Eh=function(t){function e(e,r){t.call(this),this.element=e,this._initOptions(r),this.items=[],x(this.element,"k-widget k-attribution")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initOptions=function(t){this.options=j({},this.options,t)},e.prototype.filter=function(t,e){this._extent=t,this._zoom=e,this._render()},e.prototype.add=function(t){var e=t;st(t)&&("string"==typeof t&&(e={text:t}),this.items.push(e),this._render())},e.prototype.remove=function(t){for(var e=[],r=0;r<this.items.length;r++){var o=this.items[r];o.text!==t&&e.push(o)}this.items=e,this._render()},e.prototype.clear=function(){this.items=[],lh(this.element)},e.prototype._render=function(){for(var t=[],e=Th(this.options.itemTemplate),r=0;r<this.items.length;r++){var o=this.items[r],i=this._itemText(o);""!==i&&t.push(e({text:i}))}t.length>0?(lh(this.element),function(t,e){var r=document.createElement("div");for(r.innerHTML=t;r.childNodes.length>0;)e.appendChild(r.childNodes[0])}(t.join(this.options.separator),this.element),this.showElement()):this.hideElement()},e.prototype.hideElement=function(){this.element.style.display="none"},e.prototype.showElement=function(){this.element.style.display=""},e.prototype._itemText=function(t){var e="",r=this._inZoomLevel(t.minZoom,t.maxZoom),o=this._inArea(t.extent);return r&&o&&(e+=t.text),e},e.prototype._inZoomLevel=function(t,e){var r=_t(t,-Number.MAX_VALUE),o=_t(e,Number.MAX_VALUE);return this._zoom>r&&this._zoom<o},e.prototype._inArea=function(t){var e=!0;return t&&(e=t.contains(this._extent)),e},e}(Mh);wt(Eh,{name:"Attribution",separator:" | ",itemTemplate:"#= text #"});var jh={up:{className:"k-navigator-n",iconClass:"k-i-arrow-n"},down:{className:"k-navigator-s",iconClass:"k-i-arrow-s"},right:{className:"k-navigator-e",iconClass:"k-i-arrow-e"},left:{className:"k-navigator-w",iconClass:"k-i-arrow-w"}};function Rh(t){var e='<button class="k-button k-button-square k-rounded-full k-button-flat k-button-flat-base k-icon-button '+jh[t].className+'" aria-label="move '+t+'"><span class="k-icon '+jh[t].iconClass+'" /></button>';return ah(e)}var Ih=function(t){function e(e,r){t.call(this),this.element=e,this._initOptions(r);var o=Rh("up"),i=Rh("right"),n=Rh("down"),s=Rh("left");this.element.appendChild(o),this.element.appendChild(i),this.element.appendChild(n),this.element.appendChild(s),x(this.element,"k-widget k-navigator"),gh(this.element,"click",".k-button",yh(this._click,this));var a=this.element.parentNode.closest("[data-role]");this._keyroot=a||this.element,this._tabindex(this._keyroot),this._keydownHandler=yh(this._keydown,this),gh(this._keyroot,"keydown",this._keydownHandler)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.dispose()},e.prototype.dispose=function(){bh(this._keyroot,"keydown",this._keydownHandler)},e.prototype._tabindex=function(t){var e=t||this.wrapper||this.element,r=this.element,o=e.getAttribute("tabindex")||r.getAttribute("tabindex");r.removeAttribute("tabindex"),e.setAttribute("tabindex",isNaN(o)?0:o)},e.prototype._initOptions=function(t){this.options=j({},this.options,t)},e.prototype._pan=function(t,e){var r=this.options.panStep;this.trigger("pan",{x:t*r,y:e*r})},e.prototype._click=function(t){var e=0,r=0,o=t.currentTarget;o.matches(".k-navigator-n")?r=1:o.matches(".k-navigator-s")?r=-1:o.matches(".k-navigator-e")?e=1:o.matches(".k-navigator-w")&&(e=-1),this._pan(e,r),t.preventDefault()},e.prototype._keydown=function(t){switch(t.which){case Dt.UP:this._pan(0,1),t.preventDefault();break;case Dt.DOWN:this._pan(0,-1),t.preventDefault();break;case Dt.RIGHT:this._pan(1,0),t.preventDefault();break;case Dt.LEFT:this._pan(-1,0),t.preventDefault()}},e}(Mh);function Bh(t,e){return ah('<button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-icon-button k-zoom-'+t+'" title="zoom-'+t+'" aria-label="zoom-'+t+'"><span class="k-icon '+e+'"></span></button>')}wt(Ih,{name:"Navigator",panStep:1}),Oh(Ih,["pan"]);var Lh=function(t){function e(e,r){t.call(this),this.element=e,this._initOptions(r);var o=Bh("in","k-i-plus"),i=Bh("out","k-i-minus");this.element.appendChild(o),this.element.appendChild(i),x(this.element,"k-widget k-zoom-control k-button-group k-group-horizontal"),this._clickHandler=this._click.bind(this),gh(this.element,"click",".k-button",this._clickHandler);var n=this.element.parentNode.closest("[data-role]");this._keyroot=n||this.element,this._tabindex(this._keyroot),this._keydownHandler=this._keydown.bind(this),gh(this._keyroot,"keydown",this._keydownHandler)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.element&&bh(this.element,"click",this._clickHandler),this._keyroot&&bh(this._keyroot,"keydown",this._keydownHandler)},e.prototype._tabindex=function(t){var e=t||this.wrapper||this.element,r=this.element,o=e.getAttribute("tabindex")||r.getAttribute("tabindex");r.removeAttribute("tabindex"),e.setAttribute("tabindex",isNaN(o)?0:o)},e.prototype._initOptions=function(t){this.options=j({},this.options,t)},e.prototype._change=function(t){var e=this.options.zoomStep;this.trigger("change",{delta:t*e})},e.prototype._click=function(t){var e=1;X(t.currentTarget,"k-zoom-out")&&(e=-1),this._change(e),t.preventDefault()},e.prototype._keydown=function(t){switch(t.which){case Dt.NUMPAD_PLUS:case 187:case 61:this._change(1);break;case Dt.NUMPAD_MINUS:case 189:case 173:this._change(-1)}},e}(Mh);wt(Lh,{name:"ZoomControl",zoomStep:1}),Oh(Lh,["change"]);var Dh=Math,zh=Dh.max,Vh=Dh.min,Nh=function(t){function e(e,r){t.call(this);var o=Uc.create(e),i=Uc.create(r);o.lng+180>i.lng+180&&o.lat+90<i.lat+90?(this.se=o,this.nw=i):(this.se=i,this.nw=o)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={World:{configurable:!0}};return e.prototype.contains=function(t){var e=this.nw,r=this.se,o=_t(t.lng,t[1]),i=_t(t.lat,t[0]);return t&&o+180>=e.lng+180&&o+180<=r.lng+180&&i+90>=r.lat+90&&i+90<=e.lat+90},e.prototype.center=function(){var t=this.nw,e=this.se,r=t.lng+(e.lng-t.lng)/2,o=t.lat+(e.lat-t.lat)/2;return new Uc(o,r)},e.prototype.containsAny=function(t){for(var e=!1,r=0;r<t.length;r++)e=e||this.contains(t[r]);return e},e.prototype.include=function(t){var e=this.nw,r=this.se,o=_t(t.lng,t[1]),i=_t(t.lat,t[0]);e.lng=Vh(e.lng,o),e.lat=zh(e.lat,i),r.lng=zh(r.lng,o),r.lat=Vh(r.lat,i)},e.prototype.includeAll=function(t){for(var e=0;e<t.length;e++)this.include(t[e])},e.prototype.edges=function(){var t=this.nw,e=this.se;return{nw:this.nw,ne:new Uc(t.lat,e.lng),se:this.se,sw:new Uc(e.lat,t.lng)}},e.prototype.toArray=function(){var t=this.nw,e=this.se;return[t,new Uc(t.lat,e.lng),e,new Uc(e.lat,t.lng)]},e.prototype.overlaps=function(t){return this.containsAny(t.toArray())||t.containsAny(this.toArray())},e.create=function(t,r){return t instanceof e?t:t&&r?new e(t,r):t&&4===t.length&&!r?new e([t[0],t[1]],[t[2],t[3]]):void 0},r.World.get=function(){return new e([90,-180],[-90,180])},Object.defineProperties(e,r),e}(O.Class),Hh=function(t){function e(e,r){t.call(this),this.support=vh(),this._initOptions(r),this.map=e;var o=document.createElement("div");x(o,"k-layer"),o.style.zIndex=this.options.zIndex,o.style.opacity=this.options.opacity,this.element=o,e.scrollElement.appendChild(this.element),this._beforeReset=this._beforeReset.bind(this),this._reset=this._reset.bind(this),this._resize=this._resize.bind(this),this._panEnd=this._panEnd.bind(this),this._activate(),this._updateAttribution()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this._deactivate()},e.prototype._initOptions=function(t){this.options=j({},this.options,t)},e.prototype.show=function(){this.reset(),this._activate(),this._applyExtent(!0)},e.prototype.hide=function(){this._deactivate(),this._setVisibility(!1)},e.prototype.reset=function(){this._beforeReset(),this._reset()},e.prototype._reset=function(){this._applyExtent()},e.prototype._beforeReset=function(){},e.prototype._resize=function(){},e.prototype._panEnd=function(){this._applyExtent()},e.prototype._applyExtent=function(){var t=this.options,e=this.map.zoom(),r=!st(t.minZoom)||e>=t.minZoom,o=!st(t.maxZoom)||e<=t.maxZoom,i=Nh.create(t.extent),n=!i||i.overlaps(this.map.extent());this._setVisibility(r&&o&&n)},e.prototype._setVisibility=function(t){this.element.style.display=t?"":"none"},e.prototype._activate=function(){var t=this.map;this._deactivate(),t.bind("beforeReset",this._beforeReset),t.bind("reset",this._reset),t.bind("resize",this._resize),t.bind("panEnd",this._panEnd)},e.prototype._deactivate=function(){var t=this.map;t.unbind("beforeReset",this._beforeReset),t.unbind("reset",this._reset),t.unbind("resize",this._resize),t.unbind("panEnd",this._panEnd)},e.prototype._updateAttribution=function(){var t=this.map.attribution;t&&t.add(this.options.attribution)},e.prototype._readData=function(){return this.options.data||[]},e.prototype._hasData=function(){return this._data&&this._data.length>0},e}(O.Class),Uh=Math,Fh=H.compile,Gh=O.geometry.Point;function Wh(t){return new Gh(gt(t.x),gt(t.y))}function Kh(t){var e=t;return"string"!=typeof t&&(e+="px"),e}var Xh=function(t){function e(e,r){t.call(this,e,r),"string"==typeof this.options.subdomains&&(this.options.subdomains=this.options.subdomains.split(""));var o=this._viewType();this._view=new o(this.element,this.options)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){t.prototype.destroy.call(this),this._view.destroy(),this._view=null},e.prototype._beforeReset=function(){var t=this.map,e=t.locationToLayer(t.extent().nw).round();this._view.viewOrigin(e)},e.prototype._reset=function(){t.prototype._reset.call(this),this._updateView(),this._view.reset()},e.prototype._viewType=function(){return Yh},e.prototype._activate=function(){t.prototype._activate.call(this),this.support.mobileOS||(this._pan||(this._pan=Object(O.throttle)(this._render.bind(this),100)),this.map.bind("pan",this._pan))},e.prototype._deactivate=function(){t.prototype._deactivate.call(this),this._pan&&this.map.unbind("pan",this._pan)},e.prototype._updateView=function(){var t=this._view,e=this.map,r=e.extent(),o={nw:e.locationToLayer(r.nw).round(),se:e.locationToLayer(r.se).round()};t.center(e.locationToLayer(e.center())),t.extent(o),t.zoom(e.zoom())},e.prototype._resize=function(){this._render()},e.prototype._panEnd=function(e){t.prototype._panEnd.call(this,e),this._render()},e.prototype._render=function(){this._updateView(),this._view.render()},e}(Hh);wt(Xh,{tileSize:256,subdomains:["a","b","c"],urlTemplate:"",zIndex:1});var Yh=function(t){function e(e,r){t.call(this),this.element=e,this._initOptions(r),this.pool=new Zh}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initOptions=function(t){this.options=j({},this.options,t)},e.prototype.center=function(t){this._center=t},e.prototype.extent=function(t){this._extent=t},e.prototype.viewOrigin=function(t){this._viewOrigin=t},e.prototype.zoom=function(t){this._zoom=t},e.prototype.pointToTileIndex=function(t){return new Gh(Uh.floor(t.x/this.options.tileSize),Uh.floor(t.y/this.options.tileSize))},e.prototype.tileCount=function(){var t=this.size(),e=this.pointToTileIndex(this._extent.nw),r=this._extent.nw,o=this.indexToPoint(e).translate(-r.x,-r.y);return{x:Uh.ceil((Uh.abs(o.x)+t.width)/this.options.tileSize),y:Uh.ceil((Uh.abs(o.y)+t.height)/this.options.tileSize)}},e.prototype.size=function(){var t=this._extent.nw,e=this._extent.se.clone().translate(-t.x,-t.y);return{width:e.x,height:e.y}},e.prototype.indexToPoint=function(t){var e=t.x,r=t.y;return new Gh(e*this.options.tileSize,r*this.options.tileSize)},e.prototype.subdomainText=function(){var t=this.options.subdomains;return t[this.subdomainIndex++%t.length]},e.prototype.destroy=function(){lh(this.element),this.pool.empty()},e.prototype.reset=function(){this.pool.reset(),this.subdomainIndex=0,this.render()},e.prototype.render=function(){var t,e,r,o=this.tileCount(),i=this.pointToTileIndex(this._extent.nw);for(e=0;e<o.x;e++)for(r=0;r<o.y;r++)(t=this.createTile({x:i.x+e,y:i.y+r})).visible||t.show()},e.prototype.createTile=function(t){var e=this.tileOptions(t),r=this.pool.get(this._center,e);return r.element.parentNode||this.element.append(r.element),r},e.prototype.tileOptions=function(t){var e=this.wrapIndex(t),r=this.indexToPoint(t),o=this._viewOrigin,i=r.clone().translate(-o.x,-o.y);return{index:e,currentIndex:t,point:r,offset:Wh(i),zoom:this._zoom,size:this.options.tileSize,subdomain:this.subdomainText(),urlTemplate:this.options.urlTemplate,errorUrlTemplate:this.options.errorUrlTemplate}},e.prototype.wrapIndex=function(t){var e=Uh.pow(2,this._zoom);return{x:this.wrapValue(t.x,e),y:dt(t.y,0,e-1)}},e.prototype.wrapValue=function(t,e){var r=Uh.abs(t)%e;return t>=0?r:e-(0===r?e:r)},e}(O.Class),qh=function(t){function e(e,r){t.call(this),this.id=e,this.visible=!0,this._initOptions(r),this.createElement(),this.show()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){var t=this.element,e=t?t.parentNode:null;t&&(e&&e.removeChild(t),this.element=null)},e.prototype._initOptions=function(t){this.options=j({},this.options,t)},e.prototype.createElement=function(){var t=document.createElement("img");x(t,"k-layer"),t.style.position="absolute",t.style.display="block",t.style.width=this.options.size,t.style.height=this.options.size,this.element=t},e.prototype.show=function(){var t=this.element;t.style.top=Kh(this.options.offset.y),t.style.left=Kh(this.options.offset.x);var e=this.url();e&&t.setAttribute("src",e),t.style.visibility="visible",this.visible=!0},e.prototype.hide=function(){this.element.style.visibility="hidden",this.visible=!1},e.prototype.url=function(){return Fh(this.options.urlTemplate)(this.urlOptions())},e.prototype.errorUrl=function(){return Fh(this.options.errorUrlTemplate)(this.urlOptions())},e.prototype.urlOptions=function(){var t=this.options;return{zoom:t.zoom,subdomain:t.subdomain,z:t.zoom,x:t.index.x,y:t.index.y,s:t.subdomain,quadkey:t.quadkey,q:t.quadkey,culture:t.culture,c:t.culture}},e}(O.Class);wt(qh,{urlTemplate:"",errorUrlTemplate:""});var Zh=function(t){function e(){t.call(this),this._items=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this._items.length>=this.options.maxSize&&this._remove(t),this._create(e)},e.prototype.empty=function(){for(var t=this._items,e=0;e<t.length;e++)t[e].destroy();this._items=[]},e.prototype.reset=function(){for(var t=this._items,e=0;e<t.length;e++)t[e].hide()},e.prototype._create=function(t){for(var e,r=this._items,o=ut(t.point.toString()+t.offset.toString()+t.zoom+t.urlTemplate),i=0;i<r.length;i++)if(r[i].id===o){e=r[i];break}return e?e.show():(e=new qh(o,t),this._items.push(e)),e},e.prototype._remove=function(t){for(var e=this._items,r=-1,o=-1,i=0;i<e.length;i++){var n=e[i].options.point.distanceTo(t);n>r&&!e[i].visible&&(o=i,r=n)}-1!==o&&(e[o].destroy(),e.splice(o,1))},e}(O.Class);wt(Zh,{maxSize:100});var Qh=Object.assign,$h=function(t){function e(e,r){t.call(this);var o=this,i=e[0]||e;o.capture=!1;var n=dh(navigator.userAgent);i.addEventListener?(n.down.split(" ").forEach((function(t){i.addEventListener(t,yh(o._press,o),!0)})),n.up.split(" ").forEach((function(t){i.addEventListener(t,yh(o._release,o),!0)}))):(n.down.split(" ").forEach((function(t){i.attachEvent(t,yh(o._press,o))})),n.up.split(" ").forEach((function(t){i.attachEvent(t,yh(o._release,o))}))),o.bind(["press","release"],r||{})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.captureNext=function(){this.capture=!0},e.prototype.cancelCapture=function(){this.capture=!1},e.prototype._press=function(t){this.trigger("press"),this.capture&&t.preventDefault()},e.prototype._release=function(t){this.trigger("release"),this.capture&&(t.preventDefault(),this.cancelCapture())},e}(Mh),Jh=function(t){function e(e){t.call(this);this.forcedEnabled=!1,Qh(this,e),this.scale=1,this.horizontal?(this.measure="offsetWidth",this.scrollSize="scrollWidth",this.axis="x"):(this.measure="offsetHeight",this.scrollSize="scrollHeight",this.axis="y")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.makeVirtual=function(){Qh(this,{virtual:!0,forcedEnabled:!0,_virtualMin:0,_virtualMax:0})},e.prototype.virtualSize=function(t,e){this._virtualMin===t&&this._virtualMax===e||(this._virtualMin=t,this._virtualMax=e,this.update())},e.prototype.outOfBounds=function(t){return t>this.max||t<this.min},e.prototype.forceEnabled=function(){this.forcedEnabled=!0},e.prototype.getSize=function(){return this.container[this.measure]},e.prototype.getTotal=function(){return this.element[this.scrollSize]},e.prototype.rescale=function(t){this.scale=t},e.prototype.update=function(t){var e=this.virtual?this._virtualMax:this.getTotal(),r=e*this.scale,o=this.getSize();(0!==e||this.forcedEnabled)&&(this.max=this.virtual?-this._virtualMin:0,this.size=o,this.total=r,this.min=Math.min(this.max,o-r),this.minScale=o/e,this.centerOffset=(r-o)/2,this.enabled=this.forcedEnabled||r>o,t||this.trigger("change",this))},e}(Mh),tu=function(t){function e(e){t.call(this);this.x=new Jh(Qh({horizontal:!0},e)),this.y=new Jh(Qh({horizontal:!1},e)),this.container=e.container,this.forcedMinScale=e.minScale,this.maxScale=e.maxScale||100,this.bind("change",e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.rescale=function(t){this.x.rescale(t),this.y.rescale(t),this.refresh()},e.prototype.centerCoordinates=function(){return{x:Math.min(0,-this.x.centerOffset),y:Math.min(0,-this.y.centerOffset)}},e.prototype.refresh=function(){this.x.update(),this.y.update(),this.enabled=this.x.enabled||this.y.enabled,this.minScale=this.forcedMinScale||Math.min(this.x.minScale,this.y.minScale),this.fitScale=Math.max(this.x.minScale,this.y.minScale),this.trigger("change")},e}(Mh),eu=function(t){function e(e){t.call(this),Qh(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.outOfBounds=function(){return this.dimension.outOfBounds(this.movable[this.axis])},e.prototype.dragMove=function(t){var e=this.dimension,r=this.axis,o=this.movable,i=o[r]+t;if(e.enabled){var n=t;(i<e.min&&t<0||i>e.max&&t>0)&&(n*=this.resistance),o.translateAxis(r,n),this.trigger("change",this)}},e}(Mh),ru=function(t){function e(e){t.call(this);var r,o,i,n,s=this;Qh(s,{elastic:!0},e),i=s.elastic?.5:0,n=s.movable,s.x=r=new eu({axis:"x",dimension:s.dimensions.x,resistance:i,movable:n}),s.y=o=new eu({axis:"y",dimension:s.dimensions.y,resistance:i,movable:n}),s.userEvents.bind(["press","move","end","gesturestart","gesturechange"],{gesturestart:function(t){s.gesture=t,s.offset=lt(s.dimensions.container)},press:function(t){var e=t.event.target.closest("a");e&&e.matches("[data-navigate-on-press=true]")&&t.sender.cancel()},gesturechange:function(t){var e,i=s.gesture,a=i.center,l=t.center,p=t.distance/i.distance,c=s.dimensions.minScale,h=s.dimensions.maxScale;n.scale<=c&&p<1&&(p+=.8*(1-p)),n.scale*p>=h&&(p=h/n.scale);var u=n.x+s.offset.left,f=n.y+s.offset.top;e={x:(u-a.x)*p+l.x-u,y:(f-a.y)*p+l.y-f},n.scaleWith(p),r.dragMove(e.x),o.dragMove(e.y),s.dimensions.rescale(n.scale),s.gesture=t,t.preventDefault()},move:function(t){t.event.target.tagName.match(/textarea|input/i)||(r.dimension.enabled||o.dimension.enabled?(r.dragMove(t.x.delta),o.dragMove(t.y.delta),t.preventDefault()):t.touch.skip())},end:function(t){t.preventDefault()}})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(O.Class),ou=function(t,e,r){return"translate3d("+t+"px,"+e+"px,0) scale("+r+")"},iu=function(t){function e(e){t.call(this);this.support=vh(),this.transformStyle=this.support.transitions.prefix+"Transform",this.element=e,this.element.style.webkitTransformOrigin="left top",this.x=0,this.y=0,this.scale=1;var r=ou(this.x,this.y,this.scale);this.element.style[this.transformStyle]=r,this._saveCoordinates(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.translateAxis=function(t,e){this[t]+=e,this.refresh()},e.prototype.scaleTo=function(t){this.scale=t,this.refresh()},e.prototype.scaleWith=function(t){this.scale*=t,this.refresh()},e.prototype.translate=function(t){this.x+=t.x,this.y+=t.y,this.refresh()},e.prototype.moveAxis=function(t,e){this[t]=e,this.refresh()},e.prototype.moveTo=function(t){Qh(this,t),this.refresh()},e.prototype.refresh=function(){var t,e=this.x,r=this.y;this.round&&(e=Math.round(e),r=Math.round(r)),(t=ou(e,r,this.scale))!==this.coordinates&&(this.element.style[this.transformStyle]=t,this._saveCoordinates(t),this.trigger("change"))},e.prototype._saveCoordinates=function(t){this.coordinates=t},e}(Mh),nu=O.drawing.Group,su=function(t){function e(e,r){t.call(this,e,r),this._pan=yh(this._pan,this),this.surface=O.drawing.Surface.create(this.element,{width:e.scrollElement.clientWidth,height:e.scrollElement.clientHeight}),this._initRoot(),this.movable=new iu(this.surface.element),this._markers=[],this._click=this._handler("shapeClick"),this.surface.bind("click",this._click),this._mouseenter=this._handler("shapeMouseEnter"),this.surface.bind("mouseenter",this._mouseenter),this._mouseleave=this._handler("shapeMouseLeave"),this.surface.bind("mouseleave",this._mouseleave)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){t.prototype.destroy.call(this),this.surface.destroy()},e.prototype._reset=function(){t.prototype._reset.call(this),this._translateSurface(),this._data=this._readData(),this._hasData()&&this._load(this._data)},e.prototype._initRoot=function(){this._root=new nu,this.surface.draw(this._root)},e.prototype._beforeReset=function(){this.surface.clear(),this._initRoot()},e.prototype._resize=function(){this.surface.size(this.map.size())},e.prototype._readData=function(){var e=t.prototype._readData.call(this);return"FeatureCollection"===e.type?e.features:"GeometryCollection"===e.type?e.geometries:e},e.prototype._load=function(t){this._data=t,this._clearMarkers(),this._loader||(this._loader=new au(this.map,this.options.style,this));for(var e=new nu,r=0;r<t.length;r++){var o=this._loader.parse(t[r]);o&&e.append(o)}this._root.clear(),this._root.append(e)},e.prototype.shapeCreated=function(t){var e=!1;if(t instanceof O.drawing.Circle&&this.map.options.renderPointsAsMarkers&&(e=st(this._createMarker(t))),!e){var r={layer:this,shape:t};e=this.map.trigger("shapeCreated",r)}return e},e.prototype.featureCreated=function(t){t.layer=this,this.map.trigger("shapeFeatureCreated",t)},e.prototype._createMarker=function(t){var e=this.map.markers.bind({location:t.location},t.dataItem);return e&&this._markers.push(e),e},e.prototype._clearMarkers=function(){for(var t=0;t<this._markers.length;t++)this.map.markers.remove(this._markers[t]);this._markers=[]},e.prototype._pan=function(){this._panning||(this._panning=!0,this.surface.suspendTracking())},e.prototype._panEnd=function(e){t.prototype._panEnd.call(this,e),this._translateSurface(),this.surface.resumeTracking(),this._panning=!1},e.prototype._translateSurface=function(){var t=this.map,e=t.locationToView(t.extent().nw);this.surface.translate&&(this.surface.translate(e),this.movable.moveTo({x:e.x,y:e.y}))},e.prototype._handler=function(t){var e=this;return function(r){if(r.element){var o={layer:e,layerIndex:(e.map.layers||[]).indexOf(e),shape:r.element,shapeIndex:(e._data||[]).indexOf(r.element.dataItem),originalEvent:r.originalEvent};e.map.trigger(t,o)}}},e.prototype._activate=function(){t.prototype._activate.call(this),this._panHandler=yh(this._pan,this),this.map.bind("pan",this.panHandler)},e.prototype._deactivate=function(){t.prototype._deactivate.call(this),this.map.unbind("pan",this._panHandler)},e}(Hh);wt(su,{autoBind:!0,zIndex:100});var au=function(t){function e(e,r,o){t.call(this),this.observer=o,this.locator=e,this.style=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){var e=new nu,r=!0;return"Feature"===t.type?(r=!1,this._loadGeometryTo(e,t.geometry,t),this._featureCreated(e,t)):this._loadGeometryTo(e,t,t),r&&e.children.length<2&&(e=e.children[0]),e},e.prototype._shapeCreated=function(t){var e=!1;return this.observer&&this.observer.shapeCreated&&(e=this.observer.shapeCreated(t)),e},e.prototype._featureCreated=function(t,e){this.observer&&this.observer.featureCreated&&this.observer.featureCreated({group:t,dataItem:e,properties:e.properties})},e.prototype._loadGeometryTo=function(t,e,r){var o,i,n=e.coordinates;switch(e.type){case"LineString":i=this._loadPolygon(t,[n],r),this._setLineFill(i);break;case"MultiLineString":for(o=0;o<n.length;o++)i=this._loadPolygon(t,[n[o]],r),this._setLineFill(i);break;case"Polygon":this._loadPolygon(t,n,r);break;case"MultiPolygon":for(o=0;o<n.length;o++)this._loadPolygon(t,n[o],r);break;case"Point":this._loadPoint(t,n,r);break;case"MultiPoint":for(o=0;o<n.length;o++)this._loadPoint(t,n[o],r)}},e.prototype._setLineFill=function(t){var e=t.segments;(e.length<4||!e[0].anchor().equals(ft(e).anchor()))&&(t.options.fill=null)},e.prototype._loadShape=function(t,e){return this._shapeCreated(e)||t.append(e),e},e.prototype._loadPolygon=function(t,e,r){var o=this._buildPolygon(e);return o.dataItem=r,this._loadShape(t,o)},e.prototype._buildPolygon=function(t){for(var e=new(t.length>1?O.drawing.MultiPath:O.drawing.Path)(this.style),r=0;r<t.length;r++)for(var o=0;o<t[r].length;o++){var i=this.locator.locationToView(Uc.fromLngLat(t[r][o]));0===o?e.moveTo(i.x,i.y):e.lineTo(i.x,i.y)}return e},e.prototype._loadPoint=function(t,e,r){var o=Uc.fromLngLat(e),i=this.locator.locationToView(o),n=new O.geometry.Circle(i,10),s=new O.drawing.Circle(n,this.style);return s.dataItem=r,s.location=o,this._loadShape(t,s)},e}(O.Class),lu=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._readData=function(){return this.options.data||[]},e.prototype._load=function(t){if(this._data=t,this.surface.clear(),0!==t.length){var e=this.options,r=W(e.valueField),o=t.slice(0);o.sort((function(t,e){return r(e)-r(t)}));for(var i,n=this._scaleType(),s=W(this.options.locationField),a=0;a<o.length;a++){var l=o[a],p=s(l),c=r(l);if(st(p)&&st(c)){i||(i=new n([0,c],[e.minSize,e.maxSize])),p=Uc.create(p);var h=this.map.locationToView(p),u=i.map(c),f=this._createSymbol({center:h,size:u,style:e.style,dataItem:l,location:p});f.dataItem=l,f.location=p,f.value=c,this._drawSymbol(f)}}}},e.prototype._scaleType=function(){var t=this.options.scale;return T(t)?t:pu[t]},e.prototype._createSymbol=function(t){var e=this.options.symbol;return T(e)||(e=cu[e]),e(t)},e.prototype._drawSymbol=function(t){var e={layer:this,shape:t};this.map.trigger("shapeCreated",e)||this.surface.draw(t)},e}(su);wt(lu,{locationField:"location",valueField:"value",minSize:0,maxSize:100,scale:"sqrt",symbol:"circle",zIndex:200});var pu={sqrt:function(t){function e(e,r){t.call(this),this._domain=e,this._range=r;var o=Math.sqrt(e[1])-Math.sqrt(e[0]),i=r[1]-r[0];this._ratio=i/o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.map=function(t){var e=(Math.sqrt(t)-Math.sqrt(this._domain[0]))*this._ratio;return this._range[0]+e},e}(O.Class)},cu={circle:function(t){var e=new O.geometry.Circle(t.center,t.size/2);return new O.drawing.Circle(e,t.style)},square:function(t){var e=new O.drawing.Path(t.style),r=t.size/2,o=t.center;return e.moveTo(o.x-r,o.y-r).lineTo(o.x+r,o.y-r).lineTo(o.x+r,o.y+r).lineTo(o.x-r,o.y+r).close(),e}},hu=Object.assign,uu=function(t){function e(e,r){t.call(this,e,r),this._markerClickHandler=yh(this._markerClick,this),gh(this.element,"click",".k-marker",this._markerClickHandler),this.items=[],this._load(this._readData())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){t.prototype.destroy.call(this),bh(this.element,"click",this._markerClickHandler),this.clear()},e.prototype.add=function(t){if(!b(t))return this._addOne(t);for(var e=0;e<t.length;e++)this._addOne(t[e])},e.prototype.remove=function(t){t.destroy();var e=(this.items||[]).indexOf(t);e>-1&&this.items.splice(e,1)},e.prototype.clear=function(){for(var t=0;t<this.items.length;t++)this.items[t].destroy();this.items=[]},e.prototype.update=function(t){var e=t.location();if(e){t.showAt(this.map.locationToView(e));var r={marker:t,layer:this};this.map.trigger("markerActivate",r)}},e.prototype._reset=function(){t.prototype._reset.call(this);for(var e=this.items,r=0;r<e.length;r++)this.update(e[r])},e.prototype.bind=function(t,e){var r=fu.create(t,this.options);r.dataItem=e;var o={marker:r,layer:this};if(!this.map.trigger("markerCreated",o))return this.add(r),r},e.prototype._addOne=function(t){var e=fu.create(t,this.options);return e.addTo(this),e},e.prototype._readData=function(){return this.options.data||[]},e.prototype._load=function(t){this._data=t,this.clear();for(var e=W(this.options.locationField),r=W(this.options.titleField),o=0;o<t.length;o++){var i=t[o];this.bind({location:e(i),title:r(i)},i)}},e.prototype._markerClick=function(t){var e=this.map.layers||[],r=t.target._kendoNode,o={layer:this,layerIndex:e.indexOf(this),marker:r,markerIndex:(this.items||[]).indexOf(r),originalEvent:t};this.map.trigger("markerClick",o)},e.prototype._markerMouseEnter=function(t){var e=this._createMarkerEventArgs(t);this.map.trigger("markerMouseEnter",e)},e.prototype._markerMouseLeave=function(t){var e=this._createMarkerEventArgs(t);this.map.trigger("markerMouseLeave",e)},e.prototype._createMarkerEventArgs=function(t){var e=t.marker;return hu({},{layer:this,layerIndex:this.map.layers.indexOf(this),marker:e,markerIndex:(this.items||[]).indexOf(e)},t)},e}(Hh);wt(uu,{zIndex:1e3,autoBind:!0,locationField:"location",titleField:"title"});var fu=function(t){function e(e){t.call(this),this.options=e||{}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.layer=null,this.unbindEvents(),this.hide()},e.prototype.addTo=function(t){this.layer=t.markers||t,this.layer.items.push(this),this.layer.update(this)},e.prototype.location=function(t){return t?(this.options.location=Uc.create(t).toArray(),this.layer&&this.layer.update(this),this):Uc.create(this.options.location)},e.prototype.showAt=function(t){this.render(),this.element.style.left=hh(Math.round(t.x)),this.element.style.top=hh(Math.round(t.y)),this.tooltip&&this.tooltip.popup&&this.tooltip.popup._position()},e.prototype.hide=function(){this.element&&(this.element.remove(),this.element=null),this.tooltip&&(this.tooltip.destroy(),this.tooltip=null)},e.prototype.bindEvents=function(){this.element&&(this._mouseEnterHandler=yh(this._mouseEnter,this),gh(this.element,"mouseenter",".k-marker",this._mouseEnterHandler),this._mouseLeaveHandler=yh(this._mouseLeave,this),gh(this.element,"mouseleave",".k-marker",this._mouseLeaveHandler))},e.prototype.unbindEvents=function(){this.element&&(bh(this.element,"mouseenter",this._mouseEnterHandler),bh(this.element,"mouseleave",this._mouseLeaveHandler))},e.prototype.render=function(){if(!this.element){var t=this.options,e=this.layer,r=document.createElement("span");x(r,"k-marker k-icon k-i-marker-"+ch(t.shape||"pin")),r.setAttribute("title",t.title);var o=t.attributes||{};Object.keys(o).forEach((function(t){r.setAttributett(t,o[t])})),r._kendoNode=this,r.style.zIndex=t.zIndex,this.element=r,e&&e.element.appendChild(this.element),this.bindEvents(),this.renderTooltip()}},e.prototype._mouseEnter=function(t){var e=this._createEventArgs(t);this.layer._markerMouseEnter(e)},e.prototype._mouseLeave=function(t){var e=this._createEventArgs(t);this.layer._markerMouseLeave(e)},e.prototype._createEventArgs=function(t){return{marker:this,originalEvent:t}},e.prototype.renderTooltip=function(){},e.create=function(t,r){return t instanceof e?t:new e(j({},r,t))},e}(O.Class),du=Object.assign;function vu(t){window.requestAnimationFrame(t)}var yu=function(t){function e(){t.call(this);this._tickProxy=yh(this._tick,this),this._started=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.tick=function(){},e.prototype.done=function(){},e.prototype.onEnd=function(){},e.prototype.onCancel=function(){},e.prototype.start=function(){this.enabled()&&(this.done()?this.onEnd():(this._started=!0,vu(this._tickProxy)))},e.prototype.enabled=function(){return!0},e.prototype.cancel=function(){this._started=!1,this.onCancel()},e.prototype._tick=function(){this._started&&(this.tick(),this.done()?(this._started=!1,this.onEnd()):vu(this._tickProxy))},e}(O.Class),gu=function(t){function e(e){t.call(this),du(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.done=function(){return this.timePassed()>=this.duration},e.prototype.timePassed=function(){return Math.min(this.duration,kh()-this.startDate)},e.prototype.moveTo=function(t){var e=this.movable;this.initial=e[this.axis],this.delta=t.location-this.initial,this.duration="number"==typeof t.duration?t.duration:300,this.tick=this._easeProxy(t.ease),this.startDate=kh(),this.start()},e.prototype._easeProxy=function(t){var e=this;return function(){e.movable.moveAxis(e.axis,t(e.timePassed(),e.initial,e.delta,e.duration))}},e.easeOutExpo=function(t,e,r,o){return t===o?e+r:r*(1-Math.pow(2,-10*t/o))+e},e}(yu),mu=Object.assign,_u=function(t){t.preventDefault()},bu=800,xu=0,wu={api:0,touch:0,mouse:9,pointer:9};function Cu(t){var e,r,o,i=vh(),n=[],s=t.originalEvent||t,a=t.currentTarget,l=0;if(t.api)n.push({id:2,event:t,target:t.target,currentTarget:t.target,location:t,type:"api"});else if(t.type.match(/touch/))for(e=(r=s?s.changedTouches:[]).length;l<e;l++)o=r[l],n.push({location:o,event:t,target:o.target,currentTarget:a,id:o.identifier,type:"touch"});else i.pointers||i.msPointers?n.push({location:s,event:t,target:t.target,currentTarget:a,id:s.pointerId,type:"pointer"}):n.push({id:1,event:t,target:t.target,currentTarget:a,location:t,type:"mouse"});return n}var Ou=function(t){function e(e,r){t.call(this);this.support=vh(),this.invalidZeroEvents=this.support.mobileOS&&this.support.mobileOS.android,this.axis=e,this._updateLocationData(r),this.startLocation=this.location,this.velocity=this.delta=0,this.timeStamp=kh()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.move=function(t){var e=t["page"+this.axis],r=kh(),o=r-this.timeStamp||1;!e&&this.invalidZeroEvents||(this.delta=e-this.location,this._updateLocationData(t),this.initialDelta=e-this.startLocation,this.velocity=this.delta/o,this.timeStamp=r)},e.prototype._updateLocationData=function(t){var e=this.axis;this.location=t["page"+e],this.client=t["client"+e],this.screen=t["screen"+e]},e}(O.Class),ku=function(t){function e(e,r,o){t.call(this),mu(this,{x:new Ou("X",o.location),y:new Ou("Y",o.location),type:o.type,useClickAsTap:e.useClickAsTap,threshold:e.threshold||wu[o.type],userEvents:e,target:r,currentTarget:o.currentTarget,initialTouch:o.target,id:o.id,pressEvent:o,_clicks:e._clicks,supportDoubleTap:e.supportDoubleTap,_moved:!1,_finished:!1})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.press=function(){this._holdTimeout=setTimeout(yh(this._hold,this),this.userEvents.minHold),this._trigger("press",this.pressEvent)},e.prototype._tap=function(t){var e=this;e.userEvents._clicks++,1===e.userEvents._clicks&&(e._clickTimeout=setTimeout((function(){1===e.userEvents._clicks?e._trigger("tap",t):e._trigger("doubleTap",t),e.userEvents._clicks=0}),300))},e.prototype._hold=function(){this._trigger("hold",this.pressEvent)},e.prototype.move=function(t){var e="api"!==t.type&&this.userEvents._shouldNotMove;if(!this._finished&&!e){if(this.x.move(t.location),this.y.move(t.location),!this._moved){if(this._withinIgnoreThreshold())return;if(Pu.current&&Pu.current!==this.userEvents)return this.dispose();this._start(t)}this._finished||this._trigger("move",t)}},e.prototype.end=function(t){this.endTime=kh(),this._finished||(this._finished=!0,this._trigger("release",t),this._moved?this._trigger("end",t):this.useClickAsTap||(this.supportDoubleTap?this._tap(t):this._trigger("tap",t)),clearTimeout(this._holdTimeout),this.dispose())},e.prototype.dispose=function(){var t=this.userEvents.touches||[];this._finished=!0,this.pressEvent=null,clearTimeout(this._holdTimeout);var e=t.indexOf(this);t.splice(e,1)},e.prototype.skip=function(){this.dispose()},e.prototype.cancel=function(){this.dispose()},e.prototype.isMoved=function(){return this._moved},e.prototype._start=function(t){clearTimeout(this._holdTimeout),this.startTime=kh(),this._moved=!0,this._trigger("start",t)},e.prototype._trigger=function(t,e){var r=e.event,o={touch:this,x:this.x,y:this.y,target:this.target,event:r};this.userEvents.notify(t,o)&&r.preventDefault()},e.prototype._withinIgnoreThreshold=function(){var t=this.x.initialDelta,e=this.y.initialDelta;return Math.sqrt(t*t+e*e)<=this.threshold},e}(O.Class);function Su(t){for(var e=dh(navigator.userAgent).up.split(" "),r=0,o=e.length;r<o;r++)t(e[r])}var Pu=function(t){function e(e,r){t.call(this);var o,i=vh();this.support=i,r=r||{},this.options=r,o=this.filter=r.filter,this.threshold=r.threshold||xu,this.minHold=r.minHold||bu,this.touches=[],this._maxTouches=r.multiTouch?2:1,this.allowSelection=r.allowSelection,this.captureUpIfMoved=r.captureUpIfMoved,this.useClickAsTap=!r.fastTap&&!i.delayedClick(),this._clicks=0,this.supportDoubleTap=r.supportDoubleTap;var n=!i.touch||i.mouseAndTouchPresent;if(mu(this,{element:e,surface:r.global&&n?e.ownerDocument.documentElement:r.surface||e,stopPropagation:r.stopPropagation,pressed:!1}),this._surfaceMoveHandler=yh(this._move,this),gh(this.surface,Ch("move"),this._surfaceMoveHandler),this._surfaceEndHandler=yh(this._end,this),gh(this.surface,Ch("up cancel"),this._surfaceEndHandler),this._elementStartHandler=yh(this._start,this),gh(e,Ch("down"),o,this._elementStartHandler),this.useClickAsTap&&(this._elementClickHandler=yh(this._click,this),gh(e,Ch("click"),o,this._elementClickHandler)),i.pointers||i.msPointers)if(i.browser.version<11){e.style["-ms-touch-action"]=r.touchAction&&"none"!==r.touchAction?"pinch-zoom double-tap-zoom "+r.touchAction:"pinch-zoom double-tap-zoom"}else e.style["touch-action"]=r.touchAction||"none";if(r.preventDragEvent&&(this._elementDragStartHandler=_u,gh(e,Ch("dragstart"),this._elementDragStartHandler)),this._elementSelectHandler=yh(this._select,this),gh(e,Ch("mousedown"),o,this._elementSelectHandler),this.captureUpIfMoved&&i.eventCapture){var s=this.surface,a=yh(this.preventIfMoving,this);Su((function(t){s.addEventListener(t,a,!0)}))}this.bind(["press","hold","tap","doubleTap","start","move","end","release","cancel","gesturestart","gesturechange","gestureend","gesturetap","select"],r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.preventIfMoving=function(t){this._isMoved()&&t.preventDefault()},e.prototype.destroy=function(){var t=this,e=this.options,r=this.element;if(!t._destroyed){if(t._destroyed=!0,t.captureUpIfMoved&&this.support.eventCapture){var o=t.surface;Su((function(e){o.removeEventListener(e,t.preventIfMoving)}))}bh(t.surface,Ch("move"),this._surfaceMoveHandler),bh(t.surface,Ch("up cancel"),this._surfaceEndHandler),bh(r,Ch("down"),this._elementStartHandler),t.useClickAsTap&&bh(r,Ch("click"),this._elementClickHandler),e.preventDragEvent&&bh(r,Ch("dragstart"),this._elementDragStartHandler),bh(r,Ch("mousedown"),this._elementSelectHandler),t._disposeAll(),t.unbind(),delete t.surface,delete t.element,delete t.currentTarget}},e.prototype.capture=function(){e.current=this},e.prototype.cancel=function(){this._disposeAll(),this.trigger("cancel")},e.prototype.notify=function(t,e){var r,o,i,n,s,a,l,p,c=this.touches,h=t;if(this._isMultiTouch()){switch(h){case"move":h="gesturechange";break;case"end":h="gestureend";break;case"tap":h="gesturetap"}mu(e,{touches:c},(r=c[0],o=c[1],i=r.x.location,n=r.y.location,s=o.x.location,a=o.y.location,l=i-s,p=n-a,{center:{x:(i+s)/2,y:(n+a)/2},distance:Math.sqrt(l*l+p*p)}))}return this.trigger(h,mu(e,{type:h}))},e.prototype.press=function(t,e,r){this._apiCall("_start",t,e,r)},e.prototype.move=function(t,e){this._apiCall("_move",t,e)},e.prototype.end=function(t,e){this._apiCall("_end",t,e)},e.prototype._isMultiTouch=function(){return this.touches.length>1},e.prototype._maxTouchesReached=function(){return this.touches.length>=this._maxTouches},e.prototype._disposeAll=function(){for(var t=this.touches;t.length>0;)t.pop().dispose()},e.prototype._isMoved=function(){return K(this.touches,(function(t){return t.isMoved()})).length},e.prototype._select=function(t){this.allowSelection&&!this.trigger("select",{event:t})||t.preventDefault()},e.prototype._start=function(t){var r,o,i=0,n=this.filter,s=Cu(t),a=s.length,l=t.which;if(!(l&&l>1||this._maxTouchesReached()))for(e.current=null,this.currentTarget=t.currentTarget,this.stopPropagation&&t.stopPropagation();i<a&&!this._maxTouchesReached();i++)o=s[i],(r=n?o.currentTarget:this.element)&&0===r.length||(o=new ku(this,r,o),this.touches.push(o),o.press(),this._isMultiTouch()&&this.notify("gesturestart",{}))},e.prototype._move=function(t){this._eachTouch("move",t)},e.prototype._end=function(t){this._eachTouch("end",t)},e.prototype._click=function(t){var e={touch:{initialTouch:t.target,target:t.currentTarget,endTime:kh(),x:{location:t.pageX,client:t.clientX},y:{location:t.pageY,client:t.clientY}},x:t.pageX,y:t.pageY,target:t.currentTarget,event:t,type:"tap"};this.trigger("tap",e)&&t.preventDefault()},e.prototype._eachTouch=function(t,e){var r,o,i,n,s={},a=Cu(e),l=this.touches;for(r=0;r<l.length;r++)s[(o=l[r]).id]=o;for(r=0;r<a.length;r++)(n=s[(i=a[r]).id])&&n[t](i)},e.prototype._apiCall=function(t,e,r,o){this[t]({api:!0,pageX:e,pageY:r,clientX:e,clientY:r,target:o||this.element,stopPropagation:Sh,preventDefault:Sh})},e.defaultThreshold=function(t){xu=t},e.minHold=function(t){bu=t},e}(Mh),Au=Object.assign,Mu=Math.abs,Tu=function(t){function e(e){t.call(this,e);Au(this,e),this.userEvents.bind("gestureend",this.start.bind(this)),this.tapCapture.bind("press",this.cancel.bind(this))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.enabled=function(){return this.movable.scale<this.dimensions.minScale},e.prototype.done=function(){return this.dimensions.minScale-this.movable.scale<.01},e.prototype.tick=function(){var t=this.movable;t.scaleWith(1.1),this.dimensions.rescale(t.scale)},e.prototype.onEnd=function(){var t=this.movable;t.scaleTo(this.dimensions.minScale),this.dimensions.rescale(t.scale)},e}(yu),Eu=function(t){function e(e){t.call(this);var r=this;Au(r,e,{transition:new gu({axis:e.axis,movable:e.movable,onEnd:function(){r._end()}})}),r.tapCapture.bind("press",(function(){r.cancel()})),r.userEvents.bind("end",yh(r.start,r)),r.userEvents.bind("gestureend",yh(r.start,r)),r.userEvents.bind("tap",yh(r.onEnd,r))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.onCancel=function(){this.transition.cancel()},e.prototype.freeze=function(t){this.cancel(),this._moveTo(t)},e.prototype.onEnd=function(){this.paneAxis.outOfBounds()?this._snapBack():this._end()},e.prototype.done=function(){return Mu(this.velocity)<1},e.prototype.start=function(e){var r;this.dimension.enabled&&(this.paneAxis.outOfBounds()?this.transition._started?(this.transition.cancel(),this.velocity=Math.min(e.touch[this.axis].velocity*this.velocityMultiplier,55),t.prototype.start.call(this)):this._snapBack():(r=2===e.touch.id?0:e.touch[this.axis].velocity,this.velocity=Math.max(Math.min(r*this.velocityMultiplier,55),-55),this.tapCapture.captureNext(),t.prototype.start.call(this)))},e.prototype.tick=function(){var t=this.dimension,e=this.paneAxis.outOfBounds()?.5:this.friction,r=this.velocity*=e,o=this.movable[this.axis]+r;!this.elastic&&t.outOfBounds(o)&&(o=Math.max(Math.min(o,t.max),t.min),this.velocity=0),this.movable.moveAxis(this.axis,o)},e.prototype._end=function(){this.tapCapture.cancelCapture(),this.end()},e.prototype._snapBack=function(){var t=this.dimension,e=this.movable[this.axis]>t.max?t.max:t.min;this._moveTo(e)},e.prototype._moveTo=function(t){this.transition.moveTo({location:t,duration:500,ease:gu.easeOutExpo})},e}(yu),ju=function(t){function e(e){t.call(this,e);Au(this,e,{origin:{},destination:{},offset:{}})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.tick=function(){this._updateCoordinates(),this.moveTo(this.origin)},e.prototype.done=function(){return Mu(this.offset.y)<5&&Mu(this.offset.x)<5},e.prototype.onEnd=function(){this.moveTo(this.destination),this.callback&&this.callback.call()},e.prototype.setCoordinates=function(t,e){this.offset={},this.origin=t,this.destination=e},e.prototype.setCallback=function(t){t&&T(t)?this.callback=t:t=void 0},e.prototype._updateCoordinates=function(){this.offset={x:(this.destination.x-this.origin.x)/4,y:(this.destination.y-this.origin.y)/4},this.origin={y:this.origin.y+this.offset.y,x:this.origin.x+this.offset.x}},e}(yu),Ru=function(t){function e(e){t.call(this);var r="x"===e.axis,o=ah('<div class="km-touch-scrollbar km-'+(r?"horizontal":"vertical")+'-scrollbar" />');Au(this,e,{element:o,elementSize:0,movable:new iu(o),scrollMovable:e.movable,alwaysVisible:e.alwaysVisible,size:r?"width":"height"}),this.scrollMovable.bind("change",this.refresh.bind(this)),this.container.appendChild(o),e.alwaysVisible&&this.show()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.refresh=function(){var t=this.axis,e=this.dimension,r=e.size,o=this.scrollMovable,i=r/e.total,n=Math.round(-o[t]*i),s=Math.round(r*i);this.element.style.display=i>=1?"none":"",n+s>r?s=r-n:n<0&&(s+=n,n=0),this.elementSize!==s&&(this.element.style[this.size]=s+"px",this.elementSize=s),this.movable.moveAxis(t,n)},e.prototype.show=function(){this.element.style.opacity=.7,this.element.style.visibility="visible"},e.prototype.hide=function(){this.alwaysVisible||(this.element.style.opacity=0)},e}(O.Class),Iu=function(t){function e(e,r){t.call(this);var o=this;this.element=e,this._initOptions(r);var i,n,s=(i=navigator.userAgent,(n=uh(i)).ios||n.android);o._native=o.options.useNative&&s;var a=ah('<div class="km-scroll-header"/>');if(o._native)return x(e,"km-native-scroller"),ph(a,e),void Au(o,{scrollElement:e,fixedContainer:e.children[0]});e.style.overflow="hidden",x(e,"km-scroll-wrapper"),function(t,e){for(t.appendChild(e);t.firstChild!==e;)e.appendChild(t.firstChild)}(e,ah('<div class="km-scroll-container"/>')),ph(a,e);var l=e.children[1],p=new $h(e),c=new iu(l),h=new tu({element:l,container:e,forcedEnabled:o.options.zoom}),u=this.options.avoidScrolling,f=new Pu(e,{touchAction:"pan-y",fastTap:!0,allowSelection:!0,preventDragEvent:!0,captureUpIfMoved:!0,multiTouch:o.options.zoom,supportDoubleTap:o.options.supportDoubleTap,start:function(t){h.refresh();var e=Mu(t.x.velocity),r=Mu(t.y.velocity),i=2*e>=r,n=2*r>=e;!function(t,e){return t===e||function(t,e){if(!e)return!1;for(var r=e.parentNode;null!==r;){if(r===t)return!0;r=r.parentNode}return!1}(t,e)}(o.fixedContainer,t.event.target)&&!u(t)&&o.enabled&&(h.x.enabled&&i||h.y.enabled&&n)?f.capture():f.cancel()}}),d=new ru({movable:c,dimensions:h,userEvents:f,elastic:o.options.elastic}),v=new Tu({movable:c,dimensions:h,userEvents:f,tapCapture:p}),y=new ju({moveTo:function(t){o.scrollTo(t.x,t.y)}});c.bind("change",(function(){o.scrollTop=-c.y,o.scrollLeft=-c.x,o.trigger("scroll",{scrollTop:o.scrollTop,scrollLeft:o.scrollLeft})})),o.options.mousewheelScrolling&&(this._wheelScrollHandler=this._wheelScroll.bind(this),gh(e,"DOMMouseScroll mousewheel",this._wheelScrollHandler)),Au(o,{movable:c,dimensions:h,zoomSnapBack:v,animatedScroller:y,userEvents:f,pane:d,tapCapture:p,pulled:!1,enabled:!0,scrollElement:l,scrollTop:0,scrollLeft:0,fixedContainer:e.children[0]}),o._initAxis("x"),o._initAxis("y"),o._wheelEnd=function(){o._wheel=!1,o.userEvents.end(0,o._wheelY)},h.refresh(),o.options.pullToRefresh&&o._initPullToRefresh()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initOptions=function(t){this.options=j({},this.options,t)},e.prototype._wheelScroll=function(t){if(!t.ctrlKey){this._wheel||(this._wheel=!0,this._wheelY=0,this.userEvents.press(0,this._wheelY)),clearTimeout(this._wheelTimeout),this._wheelTimeout=setTimeout(this._wheelEnd,50);var e=function(t){var e,r=t.originalEvent||t,o=r.wheelDeltaY;return r.wheelDelta?(void 0===o||o)&&(e=r.wheelDelta):r.detail&&r.axis===r.VERTICAL_AXIS&&(e=10*-r.detail),e}(t);e&&(this._wheelY+=e,this.userEvents.move(0,this._wheelY)),t.preventDefault()}},e.prototype.makeVirtual=function(){this.dimensions.y.makeVirtual()},e.prototype.virtualSize=function(t,e){this.dimensions.y.virtualSize(t,e)},e.prototype.height=function(){return this.dimensions.y.size},e.prototype.scrollHeight=function(){return this.scrollElement.scrollHeight},e.prototype.scrollWidth=function(){return this.scrollElement.scrollWidth},e.prototype._resize=function(){this._native||this.contentResized()},e.prototype.setOptions=function(t){this._initOptions(t),t.pullToRefresh&&this._initPullToRefresh()},e.prototype.reset=function(){this._native?this.scrollElement.scrollTop(0):(this.movable.moveTo({x:0,y:0}),this._scale(1))},e.prototype.contentResized=function(){this.dimensions.refresh(),this.pane.x.outOfBounds()&&this.movable.moveAxis("x",this.dimensions.x.min),this.pane.y.outOfBounds()&&this.movable.moveAxis("y",this.dimensions.y.min)},e.prototype.zoomOut=function(){var t=this.dimensions;t.refresh(),this._scale(t.fitScale),this.movable.moveTo(t.centerCoordinates())},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.scrollTo=function(t,e){this._native?(this.scrollElement.scrollLeft(Mu(t)),this.scrollElement.scrollTop(Mu(e))):(this.dimensions.refresh(),this.movable.moveTo({x:t,y:e}))},e.prototype.animatedScrollTo=function(t,e,r){var o,i;this._native?this.scrollTo(t,e):(o={x:this.movable.x,y:this.movable.y},i={x:t,y:e},this.animatedScroller.setCoordinates(o,i),this.animatedScroller.setCallback(r),this.animatedScroller.start())},e.prototype.pullHandled=function(){},e.prototype.destroy=function(){var t=this.element;bh(t,"DOMMouseScroll mousewheel",this._wheelScrollHandler),this.userEvents&&this.userEvents.destroy()},e.prototype._scale=function(t){this.dimensions.rescale(t),this.movable.scaleTo(t)},e.prototype._initPullToRefresh=function(){},e.prototype._dragEnd=function(){},e.prototype._paneChange=function(){},e.prototype._initAxis=function(t){var e=this,r=e.movable,o=e.dimensions[t],i=e.tapCapture,n=e.pane[t],s=new Ru({axis:t,movable:r,dimension:o,container:e.element,alwaysVisible:e.options.visibleScrollHints});o.bind("change",(function(){s.refresh()})),n.bind("change",(function(){s.show()})),e[t+"inertia"]=new Eu({axis:t,paneAxis:n,movable:r,tapCapture:i,userEvents:e.userEvents,dimension:o,elastic:e.options.elastic,friction:e.options.friction||.96,velocityMultiplier:e.options.velocityMultiplier||10,end:function(){s.hide(),e.trigger("scrollEnd",{axis:t,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft})}})},e}(Mh);wt(Iu,{name:"Scroller",zoom:!1,pullOffset:140,visibleScrollHints:!1,elastic:!0,useNative:!1,mousewheelScrolling:!0,avoidScrolling:function(){return!1},pullToRefresh:!1,messages:{pullTemplate:"Pull to refresh",releaseTemplate:"Release to refresh",refreshTemplate:"Refreshing"}}),Oh(Iu,["pull","scroll","resize"]);var Bu=function(t,e){void 0===e&&(e={}),this.sender=e.sender||t,this.widget=t,this.rtl=Boolean(e.rtl)};Bu.prototype.notify=function(t,e){this.widget&&this.widget.trigger(t,e)};var Lu=Bu,Du=Math,zu=Du.min,Vu=Du.pow,Nu=O.geometry.Point,Hu={bubble:lu,shape:su,tile:Xh};function Uu(t){var e=[];if(t)for(var r=ch(t).split("-"),o=0;o<r.length;o++)e.push("k-pos-"+r[o]);return e.join(" ")}Hu.marker=uu;var Fu=function(t){function e(e,r,o,i){void 0===r&&(r={}),void 0===o&&(o={}),void 0===i&&(i={}),t.call(this),this._init(e,r,o,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.scroller.destroy(),this.navigator&&this.navigator.destroy(),this.attribution&&this.attribution.destroy(),this.zoomControl&&this.zoomControl.destroy(),b(this.markers)?this.markers.forEach((function(t){t.destroy()})):this.markers.destroy();for(var e=0;e<this.layers.length;e++)this.layers[e].destroy();bh(this.element,"DOMMouseScroll mousewheel",this._mousewheelHandler),t.prototype.destroy.call(this)},e.prototype._init=function(t,e,r,o){void 0===e&&(e={}),void 0===r&&(r={}),void 0===o&&(o={}),this.support=vh(),this.context=o,this.initObserver(o),this.initServices(o),this._initOptions(e),this._setEvents(e),this.crs=new nh,this._initElement(t),this._viewOrigin=this._getOrigin(),this._initScroller(),this._initMarkers(),this._initControls(),this._initLayers(),this._reset(),this._mousewheelHandler=this._mousewheel.bind(this),gh(this.element,"DOMMouseScroll mousewheel",this._mousewheelHandler)},e.prototype._initOptions=function(t){this.options=j({},this.options,t)},e.prototype._initElement=function(t){this.element=t,x(t,"k-map"),t.style.position="relative",t.setAttribute("data-role","map"),lh(t);var e=ah("<div />");this.element.appendChild(e)},e.prototype.initServices=function(t){void 0===t&&(t={}),this.widgetService=new Lu(this,t)},e.prototype.initObserver=function(t){void 0===t&&(t={}),this.observers=[],this.addObserver(t.observer)},e.prototype.addObserver=function(t){t&&this.observers.push(t)},e.prototype.removeObserver=function(t){var e=this.observers.indexOf(t);e>=0&&this.observers.splice(e,1)},e.prototype.requiresHandlers=function(t){for(var e=this.observers,r=0;r<e.length;r++)if(e[r].requiresHandlers(t))return!0},e.prototype.trigger=function(e,r){void 0===r&&(r={}),r.sender=this;for(var o=this.observers,i=!1,n=0;n<o.length;n++)o[n].trigger(e,r)&&(i=!0);return i||t.prototype.trigger.call(this,e,r),i},e.prototype._notifyObserver=function(t,e){void 0===e&&(e={}),e.sender=this;for(var r=this.observers,o=!1,i=0;i<r.length;i++)r[i].trigger(t,e)&&(o=!0);return o},e.prototype.zoom=function(t){var e,r=this.options;if(st(t)){var o=Du.round(dt(t,r.minZoom,r.maxZoom));r.zoom!==o&&(r.zoom=o,this._reset()),e=this}else e=r.zoom;return e},e.prototype.center=function(t){var e;return t?(this.options.center=Uc.create(t).toArray(),this._reset(),e=this):e=Uc.create(this.options.center),e},e.prototype.extent=function(t){var e;return t?(this._setExtent(t),e=this):e=this._getExtent(),e},e.prototype.setOptions=function(t){void 0===t&&(t={});var e=this.element;this.destroy(),lh(e),this._init(e,t,{},this.context),this._reset()},e.prototype.locationToLayer=function(t,e){var r=!this.options.wraparound,o=Uc.create(t);return this.crs.toPoint(o,this._layerSize(e),r)},e.prototype.layerToLocation=function(t,e){var r=!this.options.wraparound,o=Nu.create(t);return this.crs.toLocation(o,this._layerSize(e),r)},e.prototype.locationToView=function(t){var e=Uc.create(t),r=this.locationToLayer(this._viewOrigin);return this.locationToLayer(e).translateWith(r.scale(-1))},e.prototype.viewToLocation=function(t,e){var r=this.locationToLayer(this._getOrigin(),e),o=Nu.create(t).clone().translateWith(r);return this.layerToLocation(o,e)},e.prototype.eventOffset=function(t){var e,r,o=lt(this.element);if(t.x&&t.x.location||t.y&&t.y.location)e=t.x.location-o.left,r=t.y.location-o.top;else{var i=t.originalEvent||t;e=_t(i.pageX,i.clientX)-o.left,r=_t(i.pageY,i.clientY)-o.top}return new O.geometry.Point(e,r)},e.prototype.eventToView=function(t){var e=this.eventOffset(t);return this.locationToView(this.viewToLocation(e))},e.prototype.eventToLayer=function(t){return this.locationToLayer(this.eventToLocation(t))},e.prototype.eventToLocation=function(t){var e=this.eventOffset(t);return this.viewToLocation(e)},e.prototype.viewSize=function(){var t=this.element,e=this._layerSize(),r=t.clientWidth;return this.options.wraparound||(r=zu(e,r)),{width:r,height:zu(e,t.clientHeight)}},e.prototype.exportVisual=function(){return this._reset(),!1},e.prototype._setOrigin=function(t,e){var r,o=this.viewSize(),i=this._origin=Uc.create(t);return(r=this.locationToLayer(i,e)).x+=o.width/2,r.y+=o.height/2,this.options.center=this.layerToLocation(r,e).toArray(),this},e.prototype._getOrigin=function(t){var e,r=this.viewSize();return!t&&this._origin||((e=this.locationToLayer(this.center())).x-=r.width/2,e.y-=r.height/2,this._origin=this.layerToLocation(e)),this._origin},e.prototype._setExtent=function(t){var e=Nh.create(t),r=e.se.clone();this.options.wraparound&&r.lng<0&&t.nw.lng>0&&(r.lng=180+(180+r.lng));var o=new Nh(e.nw,r);this.center(o.center());var i,n=this.element.clientWidth,s=this.element.clientHeight;for(i=this.options.maxZoom;i>=this.options.minZoom;i--){var a=this.locationToLayer(o.nw,i),l=this.locationToLayer(o.se,i),p=Du.abs(l.x-a.x),c=Du.abs(l.y-a.y);if(p<=n&&c<=s)break}this.zoom(i)},e.prototype._getExtent=function(){var t=this._getOrigin(),e=this.locationToLayer(t),r=this.viewSize();e.x+=r.width,e.y+=r.height;var o=this.layerToLocation(e);return new Nh(t,o)},e.prototype._zoomAround=function(t,e){this._setOrigin(this.layerToLocation(t,e),e),this.zoom(e)},e.prototype._initControls=function(){var t=this.options.controls;t.attribution&&this._createAttribution(t.attribution),this.support.mobileOS||(t.navigator&&this._createNavigator(t.navigator),t.zoom&&this._createZoomControl(t.zoom))},e.prototype._createControlElement=function(t,e){var r=t.position||e,o="."+Uu(r).replace(" ","."),i=this.element.querySelector(".k-map-controls"+o)||[];if(0===i.length){var n=document.createElement("div");x(n,"k-map-controls "+Uu(r)),i=n,this.element.appendChild(i)}var s=document.createElement("div");return i.appendChild(s),s},e.prototype._createAttribution=function(t){var e=this._createControlElement(t,"bottomRight");this.attribution=new Eh(e,t)},e.prototype._createNavigator=function(t){var e=this._createControlElement(t,"topLeft"),r=this.navigator=new Ih(e,t);this._navigatorPan=this._navigatorPan.bind(this),r.bind("pan",this._navigatorPan),this._navigatorCenter=this._navigatorCenter.bind(this),r.bind("center",this._navigatorCenter)},e.prototype._navigatorPan=function(t){var e=this.scroller,r=e.scrollLeft+t.x,o=e.scrollTop-t.y,i=this._virtualSize,n=this.element.clientWidth,s=this.element.clientHeight;r=dt(r,i.x.min,i.x.max-n),o=dt(o,i.y.min,i.y.max-s),this.scroller.one("scroll",yh(this._scrollEnd,this)),this.scroller.scrollTo(-r,-o)},e.prototype._navigatorCenter=function(){this.center(this.options.center)},e.prototype._createZoomControl=function(t){var e=this._createControlElement(t,"topLeft"),r=this.zoomControl=new Lh(e,t);this._zoomControlChange=this._zoomControlChange.bind(this),r.bind("change",this._zoomControlChange)},e.prototype._zoomControlChange=function(t){this.trigger("zoomStart",{originalEvent:t})||(this.zoom(this.zoom()+t.delta),this.trigger("zoomEnd",{originalEvent:t}))},e.prototype._initScroller=function(){var t=this.support.mobileOS?.93:.9,e=!1!==this.options.zoomable,r=this.scroller=new Iu(this.element.children[0],{friction:t,velocityMultiplier:5,zoom:e,mousewheelScrolling:!1,supportDoubleTap:!0});r.bind("scroll",yh(this._scroll,this)),r.bind("scrollEnd",yh(this._scrollEnd,this)),r.userEvents.bind("gesturestart",yh(this._scaleStart,this)),r.userEvents.bind("gestureend",yh(this._scale,this)),r.userEvents.bind("doubleTap",yh(this._doubleTap,this)),r.userEvents.bind("tap",yh(this._tap,this)),this.scrollElement=r.scrollElement},e.prototype._initLayers=function(){for(var t=this.options.layers,e=this.layers=[],r=0;r<t.length;r++){var o=t[r],i=this._createLayer(o);e.push(i)}},e.prototype._createLayer=function(t){var e=t.type||"shape",r=this.options.layerDefaults[e],o=j({},"marker"===e?this.options.markerDefaults:r,t),i=new(0,Hu[e])(this,o);return"marker"===e&&(this.markers=i),i},e.prototype._initMarkers=function(){(this.options.layers||[]).filter((function(t){return t&&"marker"===t.type})).length>0||(this.markers=new uu(this,this.options.markerDefaults),this.markers.add(this.options.markers))},e.prototype._scroll=function(t){var e=this.locationToLayer(this._viewOrigin).round(),r=t.sender.movable,o=new O.geometry.Point(r.x,r.y).scale(-1).scale(1/r.scale);e.x+=o.x,e.y+=o.y,this._scrollOffset=o,this._setOrigin(this.layerToLocation(e)),this.trigger("pan",{originalEvent:t,origin:this._getOrigin(),center:this.center()})},e.prototype._scrollEnd=function(t){this._scrollOffset&&this._panComplete()&&(this._scrollOffset=null,this._panEndTimestamp=kh(),this.trigger("panEnd",{originalEvent:t,origin:this._getOrigin(),center:this.center()}))},e.prototype._panComplete=function(){return kh()-(this._panEndTimestamp||0)>50},e.prototype._scaleStart=function(t){if(this.trigger("zoomStart",{originalEvent:t})){var e=t.touches[1];e&&e.cancel()}},e.prototype._scale=function(t){var e=this.scroller.movable.scale,r=this._scaleToZoom(e),o=new O.geometry.Point(t.center.x,t.center.y),i=this.viewToLocation(o,r),n=this.locationToLayer(i,r).translate(-o.x,-o.y);this._zoomAround(n,r),this.trigger("zoomEnd",{originalEvent:t})},e.prototype._scaleToZoom=function(t){var e=this._layerSize()*t/this.options.minSize,r=Du.log(e)/Du.log(2);return Du.round(r)},e.prototype._reset=function(){this.attribution&&this.attribution.filter(this.center(),this.zoom()),this._viewOrigin=this._getOrigin(!0),this._resetScroller(),this.trigger("beforeReset"),this.trigger("reset")},e.prototype._resetScroller=function(){var t=this.scroller,e=t.dimensions.x,r=t.dimensions.y,o=this._layerSize(),i=this.extent().nw,n=this.locationToLayer(i).round();t.movable.round=!0,t.reset(),t.userEvents.cancel();var s=this.zoom();t.dimensions.forcedMinScale=Vu(2,this.options.minZoom-s),t.dimensions.maxScale=Vu(2,this.options.maxZoom-s);var a={min:-n.x,max:o-n.x},l={min:-n.y,max:o-n.y};if(this.options.wraparound&&(a.max=20*o,a.min=-a.max),!1===this.options.pannable){var p=this.viewSize();a.min=l.min=0,a.max=p.width,l.max=p.height}e.makeVirtual(),r.makeVirtual(),e.virtualSize(a.min,a.max),r.virtualSize(l.min,l.max),this._virtualSize={x:a,y:l}},e.prototype._renderLayers=function(){},e.prototype._layerSize=function(t){var e=_t(t,this.options.zoom);return this.options.minSize*Vu(2,e)},e.prototype._tap=function(t){if(this._panComplete()){var e=this.eventOffset(t);this.trigger("click",{originalEvent:t,location:this.viewToLocation(e)})}},e.prototype._doubleTap=function(t){if(!1!==this.options.zoomable&&!this.trigger("zoomStart",{originalEvent:t})){var e=this.zoom()+1,r=this.eventOffset(t),o=this.viewToLocation(r),i=this.locationToLayer(o,e).translate(-r.x,-r.y);this._zoomAround(i,e),this.trigger("zoomEnd",{originalEvent:t})}},e.prototype._mousewheel=function(t){t.preventDefault();var e=rt(t)>0?-1:1,r=this.options,o=this.zoom(),i=dt(o+e,r.minZoom,r.maxZoom);if(!1!==r.zoomable&&i!==o&&!this.trigger("zoomStart",{originalEvent:t})){var n=this.eventOffset(t),s=this.viewToLocation(n),a=this.locationToLayer(s,i).translate(-n.x,-n.y);this._zoomAround(a,i),this.trigger("zoomEnd",{originalEvent:t})}},e}(Mh);wt(Fu,{name:"Map",controls:{attribution:!0,navigator:{panStep:100},zoom:!0},layers:[],layerDefaults:{shape:{style:{fill:{color:"#fff"},stroke:{color:"#aaa",width:.5}}},bubble:{style:{fill:{color:"#fff",opacity:.5},stroke:{color:"#aaa",width:.5}}},marker:{shape:"pinTarget",tooltip:{position:"top"}}},center:[0,0],zoom:3,minSize:256,minZoom:1,maxZoom:19,markers:[],markerDefaults:{shape:"pinTarget",tooltip:{position:"top"}},wraparound:!0,renderPointsAsMarkers:!1}),Oh(Fu,["beforeReset","click","markerActivate","markerClick","markerCreated","markerMouseEnter","markerMouseLeave","pan","panEnd","reset","shapeClick","shapeCreated","shapeFeatureCreated","shapeMouseEnter","shapeMouseLeave","zoomEnd","zoomStart"]);var Gu=Fu,Wu="Arial, Helvetica, sans-serif",Ku="12px "+Wu,Xu="16px "+Wu,Yu=function(){return{icon:{border:{width:1}},label:{font:Ku,padding:3},line:{length:10,width:2},visible:!0}},qu=function(t){return{visible:!0,labels:{font:"11px Arial, Helvetica, sans-serif"},overlay:t.gradients?{}:{gradient:"none"},area:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},rangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalRangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},bar:{gap:1.5,spacing:.4},boxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},bubble:{border:{width:0},labels:{background:"transparent"},opacity:.6},bullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},candlestick:{border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:"#000",width:1},spacing:.3},column:{gap:1.5,spacing:.4},heatmap:{labels:{color:"",background:"transparent",visible:!0},highlight:{border:{width:0}}},pie:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},donut:{margin:1},funnel:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},horizontalWaterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4},line:{width:2},notes:Yu(),ohlc:{gap:1,highlight:{line:{opacity:1,width:3}},line:{width:1},spacing:.3},radarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},radarLine:{markers:{visible:!1},width:2},polarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},polarLine:{markers:{visible:!1},width:2},rangeBar:{gap:1.5,spacing:.4},rangeColumn:{gap:1.5,spacing:.4},scatterLine:{width:1},verticalArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalBoxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},verticalBullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},verticalLine:{width:2},waterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4}}},Zu=function(t){return void 0===t&&(t={}),{axisDefaults:{labels:{font:Ku},notes:Yu(),title:{font:Xu,margin:5}},categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:qu(t),title:{font:Xu},legend:{labels:{font:Ku}}}}},function(t,e,r){"use strict";r.r(e),r.d(e,"ZIndexContext",(function(){return o.a})),r.d(e,"useZIndexContext",(function(){return o.b})),r.d(e,"BrowserSupportService",(function(){return n})),r.d(e,"canUseDOM",(function(){return s.a})),r.d(e,"canUseRef",(function(){return a})),r.d(e,"classNames",(function(){return l.a})),r.d(e,"cloneDate",(function(){return c})),r.d(e,"clone",(function(){return h})),r.d(e,"cloneObject",(function(){return u})),r.d(e,"cloneValue",(function(){return f})),r.d(e,"cloneArray",(function(){return d})),r.d(e,"focusFirstFocusableChild",(function(){return v})),r.d(e,"FormComponent",(function(){return y})),r.d(e,"getTabIndex",(function(){return g})),r.d(e,"getter",(function(){return x})),r.d(e,"guid",(function(){return w})),r.d(e,"Keys",(function(){return C})),r.d(e,"noop",(function(){return O})),r.d(e,"getScrollbarWidth",(function(){return k})),r.d(e,"setScrollbarWidth",(function(){return S})),r.d(e,"setter",(function(){return M})),r.d(e,"mapTree",(function(){return j})),r.d(e,"mapTreeItem",(function(){return R})),r.d(e,"extendDataItem",(function(){return I})),r.d(e,"getItemPath",(function(){return B})),r.d(e,"validatePackage",(function(){return L.a})),r.d(e,"hasRelativeStackingContext",(function(){return D})),r.d(e,"dispatchEvent",(function(){return z})),r.d(e,"AsyncFocusBlur",(function(){return H})),r.d(e,"createPropsContext",(function(){return G})),r.d(e,"withPropsContext",(function(){return W})),r.d(e,"useDir",(function(){return K})),r.d(e,"useAsyncFocusBlur",(function(){return V})),r.d(e,"useRtl",(function(){return X})),r.d(e,"useMouse",(function(){return q})),r.d(e,"useCustomComponent",(function(){return Z})),r.d(e,"usePropsContext",(function(){return U})),r.d(e,"COLLECTION_ACTION",(function(){return Y})),r.d(e,"useCollection",(function(){return Q})),r.d(e,"Icon",(function(){return rt})),r.d(e,"SvgIcon",(function(){return st})),r.d(e,"Typography",(function(){return _t})),r.d(e,"DragAndDrop",(function(){return St})),r.d(e,"Draggable",(function(){return Vt})),r.d(e,"Droppable",(function(){return Ht})),r.d(e,"useDraggable",(function(){return zt})),r.d(e,"useDroppable",(function(){return Nt})),r.d(e,"kendoThemeMaps",(function(){return Ut}));var o=r(16),i=function(){return"undefined"!=typeof document?document:{}},n=function(){function t(){}return Object.defineProperty(t.prototype,"scrollbarWidth",{get:function(){var t=i();if(!this.scrollbar&&t&&t.createElement){var e=t.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",t.body.appendChild(e),this.scrollbar=e.offsetWidth-e.scrollWidth,t.body.removeChild(e)}return this.scrollbar},enumerable:!0,configurable:!0}),t}(),s=r(11),a=function(t){return"string"!=typeof Comment&&(function(t){return Boolean("function"==typeof t&&!!t.prototype.isReactComponent)}(t)||function(t){return Boolean(t.$$typeof&&"function"==typeof t.render)}(t))},l=r(12),p=r(1),c=function(t){return t?new Date(t.getTime()):null};function h(t){var e={};return u(t,e),e}function u(t,e){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];e[r]=f(o,e[r])}}function f(t,e){if(Array.isArray(t))return d(t);if(t instanceof Date)return c(t);if(p.isValidElement(t))return p.cloneElement(t,t.props);if(t&&"object"==typeof t){var r=e||{};return u(t,r),r}return t}function d(t){return t.map((function(t){return f(t,void 0)}))}var v=function(t){if(t){if((t instanceof HTMLInputElement||-1!==t.tabIndex)&&t.focus)return void t.focus();var e=t.querySelector('input, [tabindex]:not([tabindex="-1"])');e&&e.focus&&e.focus()}},y=function(){},g=function(t,e,r){var o="string"==typeof t?parseInt(t,void 0):t;if(NaN!==o)return void 0!==o?o:e?r?void 0:-1:0},m=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function _(t){var e=[];return t.replace(m,(function(t,r,o,i){e.push(void 0!==r?r:o||i)})),e}var b={};function x(t){if(b[t])return b[t];var e=_(t);return b[t]=function(t){for(var r=t,o=0;o<e.length&&r;o++)r=r[e[o]];return r},b[t]}b.undefined=function(){};var w=function(){var t,e,r="";for(t=0;t<32;t++)e=16*Math.random()|0,8!==t&&12!==t&&16!==t&&20!==t||(r+="-"),r+=(12===t?4:16===t?3&e|8:e).toString(16);return r},C={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},O=function(){},k=function(){return!(!s.a||!document.body)&&(new n).scrollbarWidth},S=function(){if(!s.a||!document.body)return!1;var t=(new n).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",t+"px")},P={undefined:function(t){return t}},A=function(t,e){return e&&e.arrays&&!isNaN(Number(t))?[]:{}};function M(t){if(P[t])return P[t];var e=_(t);return P[t]=function(t,r,o){for(var i=t,n=e.length-1,s=0;s<n&&i;s++)i=i[e[s]]=i[e[s]]||A(e[s+1],o);i[e[n]]=r},P[t]}var T=function(){return(T=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function E(t,e,r){var o;return r?T({},t,((o={})[e]=r.length?r.slice():void 0,o)):t&&t[e]?t[e].slice():[]}var j=function(t,e,r){return t.map((function(t){return function t(e,r,o){if(e[r]){var i=E(e,r).map((function(e){return t(e,r,o)}));return o(E(e,r,i))}return o(e)}(t,e,r)})).slice()},R=function(t,e,r,o){for(var i=t,n=[],s=0;s<e.length;s++)i=i[e[s]],i=Array.isArray(i)?i:i[r],n.push(i);var a=n.length>1?n[n.length-2]:t,l=e[e.length-1],p=o(a[l]);a.splice(l,1,p)},I=function(t,e,r){var o;return Object.assign({},t,t[e]?((o={})[e]=t[e].slice(),o):{},r||{})},B=function(t,e,r){var o=[],i=e.slice();if(i.length){var n=t[i.shift()||0];for(o.push(n);i.length&&r;)n=n[r][i.shift()||0],o.push(n)}return o},L=r(17),D=function(t){if(!s.a)return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var r=e.createElement("div");r.style.transform="matrix(10, 0, 0, 10, 0, 0)",r.innerHTML='<div style="position: fixed; top: 10px;">child</div>',e.body.appendChild(r);var o=10!==r.children[0].getBoundingClientRect().top;return e.body.removeChild(r),o};function z(t,e,r,o){if(t){var i={syntheticEvent:e,nativeEvent:e.nativeEvent,target:r};t.call(void 0,Object.assign(i,o))}}function V(t){var e=t.onFocus,r=t.onBlur,o=t.onSyncFocus,i=t.onSyncBlur,n=p.useRef(!1),s=p.useRef(0),a=p.useCallback((function(t){clearTimeout(s.current),s.current=window.setTimeout((function(){return t()}))}),[s]),l=p.useCallback((function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];clearTimeout(s.current),o&&o.call.apply(o,[void 0].concat(t)),n.current||(n.current=!0,e&&e.call.apply(e,[void 0].concat(t)))}),[n,e,o]),c=p.useCallback((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];i&&i.call.apply(i,[void 0].concat(t)),a((function(){n.current&&r&&(n.current=!1,r.call.apply(r,[void 0].concat(t)))}))}),[n,a,r,i]);return p.useEffect((function(){return function(){clearTimeout(s.current)}}),[]),{onFocus:l,onBlur:c}}var N=function(){return(N=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},H=function(t){var e=t.children,r=V({onFocus:t.onFocus,onBlur:t.onBlur,onSyncFocus:t.onSyncFocus,onSyncBlur:t.onSyncBlur});return e.call(void 0,N({},r))},U=function(t,e){return p.useContext(t)(e)},F=function(){return(F=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},G=function(){return p.createContext((function(t){return t}))},W=function(t,e){return p.forwardRef((function(r,o){var i=U(t,r);return p.createElement(e,F({},i,{ref:o}))}))};function K(t,e,r){var o=p.useState(e),i=o[0],n=o[1];return p.useEffect((function(){if(!i&&window&&t.current){var e=window.getComputedStyle(t.current).direction;e&&n(e)}}),r),i}function X(t,e,r){var o=p.useState(e),i=o[0],n=o[1];return p.useEffect((function(){if(!i&&window&&t.current){var e=window.getComputedStyle(t.current).direction;e&&n(e)}}),r),i}var Y,q=function(t,e,r){void 0===r&&(r={});var o=p.useCallback((function(o){r.onMouseDown&&r.onMouseDown.call(void 0,o),t.onMouseDown&&t.onMouseDown.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onMouseDown,t.onMouseDown,e]),i=p.useCallback((function(o){r.onMouseUp&&r.onMouseUp.call(void 0,o),t.onMouseUp&&t.onMouseUp.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onMouseUp,t.onMouseUp,e]);return{onClick:p.useCallback((function(o){r.onClick&&r.onClick.call(void 0,o),t.onClick&&t.onClick.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onClick,t.onClick,e]),onMouseUp:i,onMouseDown:o,onDoubleClick:p.useCallback((function(o){r.onDoubleClick&&r.onDoubleClick.call(void 0,o),t.onDoubleClick&&t.onDoubleClick.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onDoubleClick,t.onDoubleClick,e]),onMouseEnter:p.useCallback((function(o){r.onMouseEnter&&r.onMouseEnter.call(void 0,o),t.onMouseEnter&&t.onMouseEnter.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onMouseEnter,t.onMouseEnter,e]),onMouseLeave:p.useCallback((function(o){r.onMouseLeave&&r.onMouseLeave.call(void 0,o),t.onMouseLeave&&t.onMouseLeave.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onMouseLeave,t.onMouseLeave,e]),onMouseMove:p.useCallback((function(o){r.onMouseMove&&r.onMouseMove.call(void 0,o),t.onMouseMove&&t.onMouseMove.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onMouseMove,t.onMouseMove,e]),onMouseOut:p.useCallback((function(o){r.onMouseOut&&r.onMouseOut.call(void 0,o),t.onMouseOut&&t.onMouseOut.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onMouseOut,t.onMouseOut,e]),onMouseOver:p.useCallback((function(o){r.onMouseOver&&r.onMouseOver.call(void 0,o),t.onMouseOver&&t.onMouseOver.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onMouseOver,t.onMouseOver,e])}},Z=function(t){return p.isValidElement(t)?[t.type,t.props]:[t,{}]};!function(t){t[t.add=0]="add",t[t.remove=1]="remove"}(Y||(Y={}));var Q=function(t){void 0===t&&(t=[]);var e=p.useRef(t),r=p.useCallback((function(t){switch(t.type){case Y.add:e.current.push(t.item);break;case Y.remove:var r=e.current.indexOf(t.item);e.current.splice(r,1)}}),[]);return[e.current,r]},$=r(3),J={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},tt=function(){return(tt=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},et=function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r},rt=p.forwardRef((function(t,e){var r=t.className,o=t.name,i=t.themeColor,n=t.size,s=t.flip,a=t.style,c=et(t,["className","name","themeColor","size","flip","style"]),h=p.useRef(null),u=p.useRef(null);p.useImperativeHandle(h,(function(){return{element:u.current}})),p.useImperativeHandle(e,(function(){return h.current}));var f=p.useMemo((function(){return i||ot.themeColor}),[i]),d=p.useMemo((function(){return n||ot.size}),[n]),v=p.useMemo((function(){return s||ot.flip}),[s]),y=p.useMemo((function(){return Object(l.a)("k-icon","k-i-"+o,"k-color-"+f,{"k-flip-h":"horizontal"===v||"both"===v,"k-flip-v":"vertical"===v||"both"===v},J[d],r)}),[o,f,d,v,r]),g=q(t,h);return p.createElement("span",tt({ref:u},c,g,{className:y,style:a,role:"presentation"}))}));rt.propTypes={style:$.object,classNames:$.string,name:$.string,themeColor:$.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:$.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:$.oneOf(["default","horizontal","vertical","both"])};var ot={size:"default",themeColor:"inherit",flip:"default"};rt.displayName="KendoIcon";var it=function(){return(it=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},nt=function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r},st=p.forwardRef((function(t,e){var r=t.children,o=t.className,i=t.svgClassName,n=t.icon,s=t.flip,a=t.size,c=t.style,h=t.svgStyle,u=t.themeColor,f=t.viewBox,d=nt(t,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),v=p.useRef(null);p.useImperativeHandle(e,(function(){return{element:v.current}}));var y=p.useMemo((function(){return n?n.name:at.icon}),[n]),g=p.useMemo((function(){return u||at.themeColor}),[u]),m=p.useMemo((function(){return a||at.size}),[a]),_=p.useMemo((function(){return s||at.flip}),[s]),b=p.useMemo((function(){return f||at.viewBox}),[f]),x=p.useMemo((function(){return Object(l.a)("k-svg-icon","k-color-"+g,"k-svg-i-"+y,{"k-flip-h":"horizontal"===_||"both"===_,"k-flip-v":"vertical"===_||"both"===_},J[m],o)}),[y,g,m,_,o]),w=p.useMemo((function(){return t.width&&t.height?it({width:t.width,height:t.height},c):t.width?it({width:t.width,height:t.width},c):t.height?it({width:t.height,height:t.height},c):it({},c)}),[t.width,t.height,c]);return p.createElement("span",{className:x,style:w,ref:v},p.createElement("svg",it({className:i,style:h,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:n?n.viewBox:b,dangerouslySetInnerHTML:n?{__html:n.content}:void 0},d),n?void 0:r))}));st.propTypes={style:$.object,classNames:$.string,children:$.any,icon:$.object,themeColor:$.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:$.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:$.oneOf(["default","horizontal","vertical","both"])};var at={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};st.displayName="KendoSvgIcon";var lt={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},pt={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},ct={xsmall:"k-m-xs",small:"k-m-sm",medium:"k-m-md",large:"k-m-lg",xlarge:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},ht={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},ut={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},ft={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},dt={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},vt={inherit:"k-color-inherit",primary:"k-color-primary",secondary:"k-color-secondary",tertiary:"k-color-tertiary",info:"k-color-info",success:"k-color-success",warning:"k-color-warning",error:"k-color-error",dark:"k-color-dark",light:"k-color-light",inverse:"k-color-inverse"},yt=function(){return(yt=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},gt=function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r},mt=function(t){var e=p.forwardRef((function(e,r){var o=e.className,i=e.fontSize,n=e.fontWeight,s=e.textAlign,a=e.textTransform,l=e.themeColor,c=e.margin,h=gt(e,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),u=p.useRef(null),f=p.useRef(null);p.useImperativeHandle(u,(function(){return{element:f.current,props:e}})),p.useImperativeHandle(r,(function(){return u.current}));var d=t,v=function(){if(void 0!==c){if("string"==typeof c)return[ct[c]];if("number"==typeof c&&c>=0&&c<=24)return["k-m-"+c];if("object"==typeof c){var t=[];return Object.keys(c).forEach((function(e){var r,o;null!==c[e]&&void 0!==c[e]&&t.push((r=e,o=c[e],""+ut[r]+("string"==typeof o?ht[o]:o)))})),t.join(" ")}}};return p.createElement(d,yt({ref:f,className:["k-"+("p"===t?"paragraph":t),lt[i],pt[n],ft[s],dt[a],vt[l],v(),o].filter((function(t){return void 0!==t})).join(" ")},h),e.children)}));return e.propTypes={style:$.object,className:$.string,fontSize:$.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:$.oneOf(["light","normal","bold"]),margin:$.oneOfType([$.number,$.object,$.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:$.oneOf(["left","right","center","justify"]),textTransform:$.oneOf(["lowercase","uppercase","capitalize"]),themeColor:$.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},e.displayName="KendoReactTypography"+t.toUpperCase(),e},_t={h1:mt("h1"),h2:mt("h2"),h3:mt("h3"),h4:mt("h4"),h5:mt("h5"),h6:mt("h6"),p:mt("p"),code:mt("code"),pre:mt("pre")},bt=function(){return(bt=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},xt=function(t,e,r){var o=p.useState(e||t),i=o[0],n=o[1];return[void 0!==e?e:i,p.useCallback((function(t,e){n(t),r&&r.call(void 0,bt({},e,{value:t}))}),[r,n])]},wt=p.createContext([void 0,O]),Ct=p.createContext([void 0,O]),Ot=p.createContext([[],O,O]),kt=p.createContext([[],O,O]),St=function(t){var e=xt(null,void 0),r=e[0],o=e[1],i=xt(null,void 0),n=i[0],s=i[1],a=Q([]),l=a[0],c=a[1],h=Q([]),u=h[0],f=h[1];return p.createElement(wt.Provider,{value:[r,o]},p.createElement(Ct.Provider,{value:[n,s]},p.createElement(Ot.Provider,{value:[l,function(t){c({type:Y.add,item:t})},function(t){c({type:Y.remove,item:t})}]},p.createElement(kt.Provider,{value:[u,function(t){f({type:Y.add,item:t})},function(t){f({type:Y.remove,item:t})}]},t.children))))};St.displayName="KendoReactDragAndDrop";var Pt,At=function(t,e){var r=0,o=null;return e.forEach((function(e){if(e&&t){var i=function(t,e){var r=t.getBoundingClientRect(),o=e.getBoundingClientRect(),i=Math.max(o.top,r.top),n=Math.max(o.left,r.left),s=Math.min(o.left+o.width,r.left+r.width),a=Math.min(o.top+o.height,r.top+r.height),l=s-n,p=a-i;if(n<s&&i<a){var c=o.width*o.height,h=r.width*r.height,u=l*p;return Number((u/(c+h-u)).toFixed(4))}return 0}(t,e);i>r&&(r=i,o=e)}})),o},Mt=function(){var t=window&&window.navigator.userAgent;if(!t)return!1;var e=!1,r=[],o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var i in o)if(o.hasOwnProperty(i)&&(r=t.match(o[i]))){(e={})[i]=!0,e[r[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,e.version=parseInt(document.DOCUMENT_NODE||r[2],10);break}return e},Tt=function(t){return t&&t.ownerDocument||window.document},Et=function(t){var e=Mt(),r=Tt(t);return e.edge||e.safari?r.body:r.documentElement},jt=function(t){if(t&&t.className&&"string"==typeof t.className&&t.className.indexOf("k-auto-scrollable")>-1)return!0;var e=window.getComputedStyle(t,"overflow").overflow;return e.indexOf("auto")>-1||e.indexOf("scroll")>-1},Rt=function(t){var e=Et(t);if(!t||t===document.body||t===document.documentElement)return e;for(var r=t;r&&r!==document.body&&r.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&!jt(r);)r=r.parentNode;return r===document.body||r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e:r};!function(t){t.POINTER_DOWN="pointerdown",t.POINTER_MOVE="pointermove",t.POINTER_UP="pointerup",t.POINTER_CANCEL="pointercancel",t.MOUSE_DOWN="mousedown",t.MOUSE_MOVE="mousemove",t.MOUSE_UP="mouseup",t.CONTEXT_MENU="contextmenu",t.TOUCH_START="touchstart",t.TOUCH_MOVE="touchmove",t.TOUCH_END="touchend",t.TOUCH_CANCEL="touchcancel",t.SCROLL="scroll",t.START="KENDO_DRAG_AND_DROP_START",t.MOVE="KENDO_DRAG_AND_DROP_MOVE",t.END="KENDO_DRAG_AND_DROP_END",t.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(Pt||(Pt={}));var It=function(){},Bt=function(t,e,r){void 0===r&&(r={});var o,i,n,s,a=r.onIsPressedChange,l=void 0===a?It:a,p=r.onIsScrollingChange,c=void 0===p?It:p,h=r.onVelocityChange,u=void 0===h?It:h,f=r.onOffsetChange,d=void 0===f?It:f,v=r.onPageOffsetChange,y=void 0===v?It:v,g=r.onClientOffsetChange,m=void 0===g?It:g,_=r.onScrollOffsetChange,b=void 0===_?It:_,x=r.onInitialScrollOffsetChange,w=void 0===x?It:x,C=e.payload,O=C.element,k=C.hint,S=t.autoScrollDirection,P=t.scrollableParent,A=function(t,e){return function(t){return/^touch/.test(t.type)}(t)?{pageX:t.changedTouches[0].pageX,pageY:t.changedTouches[0].pageY,clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,scrollX:e.scrollOffset.x,scrollY:e.scrollOffset.y,offsetX:e.offset.x,offsetY:e.offset.y,type:t.type,originalEvent:t,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:function(t){return/^(scroll)/.test(t.type)}(t)?{pageX:e.pageOffset.x,pageY:e.pageOffset.y,clientX:e.clientOffset.x,clientY:e.clientOffset.y,scrollX:e.scrollOffset.x,scrollY:e.scrollOffset.y,offsetX:e.offset.x,offsetY:e.offset.y,type:t.type,originalEvent:t,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,offsetX:t.offsetX,offsetY:t.offsetY,scrollX:e.scrollOffset.x,scrollY:e.scrollOffset.y,type:t.type,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,originalEvent:t}}(e.event,t);switch(A.type){case Pt.POINTER_DOWN:if(A.type===Pt.POINTER_DOWN&&(!A.originalEvent.isPrimary||0!==A.originalEvent.button))break;case Pt.MOUSE_DOWN:if(A.type===Pt.MOUSE_DOWN&&A.originalEvent.which&&A.originalEvent.which>1||t.ignoreMouse)break;case Pt.TOUCH_START:if(A.type===Pt.TOUCH_START&&1!==A.originalEvent.touches.length)break;case Pt.START:var M=P||Rt(e.payload.element);w(M instanceof Window?{x:M.scrollX,y:M.scrollY}:{x:M.scrollLeft,y:M.scrollTop}),m({x:A.clientX,y:A.clientY}),y({x:A.pageX,y:A.pageY}),d({x:A.offsetX,y:A.offsetY}),l(!0),C.onPress&&C.onPress(A);break;case Pt.SCROLL:if(A.type===Pt.SCROLL&&!t.pressed)break;var T=P||Rt(O),E=T instanceof Window?{x:T.scrollX,y:T.scrollY}:{x:T.scrollLeft,y:T.scrollTop};A.scrollX=E.x-t.initialScrollOffset.x,A.scrollY=E.y-t.initialScrollOffset.y,b({x:A.scrollX,y:A.scrollY});case Pt.POINTER_MOVE:if(A.type===Pt.POINTER_MOVE&&!A.originalEvent.isPrimary)break;case Pt.MOUSE_MOVE:case Pt.TOUCH_MOVE:if(A.type===Pt.TOUCH_MOVE&&1!==A.originalEvent.touches.length)break;case Pt.MOVE:if(t.pressed){if(t.autoScroll&&"scroll"!==A.originalEvent.type&&O){var j=Tt(O),R=P||Rt(j.elementFromPoint(A.clientX,A.clientY)),I=function(t,e,r){var o={x:0,y:0};return t-r.left<50?o.x=-(50-(t-r.left)):r.right-t<50&&(o.x=50-(r.right-t)),e-r.top<50?o.y=-(50-(e-r.top)):r.bottom-e<50&&(o.y=50-(r.bottom-e)),o}(A.pageX,A.pageY,function(t,e){var r=Et(t);if(t===r)return{top:r.scrollTop,left:r.scrollLeft,bottom:r.scrollTop+e.innerHeight,right:r.scrollLeft+e.innerWidth};var o=t.getBoundingClientRect();return{bottom:o.top+o.height,right:o.left+o.width,left:o.left,top:o.top}}(R,function(t){var e=Tt(t);return e&&e.defaultView||window}(O)));u({x:S&&!1===S.horizontal?0:I.x,y:S&&!1===S.vertical?0:I.y}),c(0!==I.y||0!==I.x)}!t.drag&&C.onDragStart&&C.onDragStart(A),C.onDrag&&C.onDrag(A);var B=At(k||O,t.drops.map((function(t){return t&&t.element})).filter((function(t){return t!==(k||O)}))),L=t.drops.find((function(t){return t.element===B}));L&&B&&(o=A.clientX,i=A.clientY,n=P||Rt(B),(s=n.getBoundingClientRect()).top<=i&&s.left<=o&&i<=s.bottom&&o<=s.right)&&B!==O?(t.drop&&t.drop.element)!==B?(t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(A),L.onDragEnter&&L.onDragEnter(A)):L.onDragOver&&L.onDragOver(A):t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(A)}m({x:A.clientX,y:A.clientY}),y({x:A.pageX,y:A.pageY});break;case Pt.POINTER_UP:if(A.type===Pt.POINTER_UP&&!A.originalEvent.isPrimary)break;case Pt.MOUSE_UP:case Pt.TOUCH_END:if(A.type===Pt.TOUCH_END&&1!==A.originalEvent.touches.length)break;case Pt.END:l(!1),c(!1),C.onRelease&&C.onRelease(A),t.drop&&t.drop.onDrop&&t.drop.onDrop(A),C.onDragEnd&&C.onDragEnd(A);break;case Pt.POINTER_CANCEL:case Pt.CONTEXT_MENU:case Pt.TOUCH_CANCEL:case Pt.CANCEL:l(!1),c(!1),C.onDragEnd&&C.onDragEnd(A),t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(A)}},Lt=function(t,e){if(t){var r,o;t===Et(t)?(r=document.body.scrollHeight>window.innerHeight,o=document.body.scrollWidth>window.innerWidth):(r=t.offsetHeight<=t.scrollHeight,o=t.offsetWidth<=t.scrollWidth);var i=t.scrollTop+e.y,n=r&&i>0&&i<t.scrollHeight,s=t.scrollLeft+e.x,a=o&&s>0&&s<t.scrollWidth;n?t.scrollTop+=e.y:r&&i<0&&(t.scrollTop=0),a?t.scrollLeft+=e.x:o&&s<0&&(t.scrollLeft=0)}},Dt=function(t,e){var r=p.useContext(t),o=r[0],i=r[1],n=p.useState(e),s=n[0],a=n[1];return[void 0!==o?o:s,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];void 0!==o?i.apply(void 0,t):a(t[0])}]};function zt(t,e,r){void 0===r&&(r={});var o=e.onPress,i=void 0===o?O:o,n=e.onRelease,s=void 0===n?O:n,a=e.onDragStart,l=void 0===a?O:a,c=e.onDrag,h=void 0===c?O:c,u=e.onDragEnd,f=void 0===u?O:u,d=r.hint,v=void 0===d?null:d,y=r.mouseOnly,g=void 0!==y&&y,m=r.autoScroll,_=void 0===m||m,b=r.scrollContainer,x=void 0===b?null:b,w=p.useState(!1),C=w[0],k=w[1],S=p.useState(!1),P=S[0],A=S[1],M=Dt(Ct)[0],T=Dt(wt),E=T[0],j=T[1],R=p.useContext(kt)[0],I=p.useContext(Ot),B=I[0],L=I[1],D=I[2],z=p.useRef({x:0,y:0}),V=p.useRef(),N=p.useRef(!1),H=p.useRef(),U=p.useRef(null),F=p.useRef(!1),G=p.useRef({x:0,y:0}),W=p.useRef({x:0,y:0}),K=p.useRef({x:0,y:0}),X=p.useRef({x:0,y:0}),Y=p.useRef({x:0,y:0}),q=p.useRef({x:0,y:0}),Z=Boolean("undefined"!=typeof window&&window.PointerEvent),Q=!g&&Z,$=p.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]),J=p.useCallback((function(){return v&&v.current&&v.current.element?v.current.element:v?v.current:null}),[v]),tt=p.useCallback((function(){return x&&x.current&&x.current.element?x.current.element:x?x.current:null}),[x]),et=p.useCallback((function(){return"object"==typeof _&&_.boundaryElementRef&&_.boundaryElementRef.current&&_.boundaryElementRef.current.element?_.boundaryElementRef.current.element:"object"==typeof _&&_.boundaryElementRef&&_.boundaryElementRef.current?_.boundaryElementRef.current:null}),[_]),rt=p.useRef(null);p.useImperativeHandle(rt,(function(){return{element:$(),hint:J(),onPress:vt,onDragStart:gt,onDrag:mt,onDragEnd:_t,onRelease:yt,data:t.current}}));var ot=p.useCallback((function(){var t=$();return t&&t.ownerDocument||document}),[$]),it=p.useCallback((function(){var t=ot();return t&&t.defaultView||window}),[ot]),nt=p.useCallback((function(){return{drag:E?E.current:null,drop:M?M.current:null,drags:B.map((function(t){return t.current})),drops:R.map((function(t){return t.current})),pressed:C,ignoreMouse:N.current,scrollOffset:Y.current,offset:G.current,pageOffset:W.current,initialScrollOffset:q.current,clientOffset:K.current,initialClientOffset:X.current,velocity:z.current,autoScroll:Boolean("object"==typeof _?!1!==_.enabled:_),scrollableParent:et(),autoScrollDirection:"object"==typeof _?_.direction:{horizontal:!0,vertical:!0},isScrolling:P}}),[E,M,B,R,C,_,et,P]),st=p.useCallback((function(t){k(t)}),[]),at=p.useCallback((function(t){A(t)}),[]),lt=p.useCallback((function(t){z.current=t}),[]),pt=p.useCallback((function(t){G.current=t}),[]),ct=p.useCallback((function(t){K.current=t}),[]),ht=p.useCallback((function(t){W.current=t}),[]),ut=p.useCallback((function(t){X.current=t}),[]),ft=p.useCallback((function(t){Y.current=t}),[]),dt=p.useCallback((function(t){q.current=t}),[]),vt=p.useCallback((function(t){i(t)}),[i]),yt=p.useCallback((function(t){s(t)}),[s]),gt=p.useCallback((function(e){j(rt,{target:t.current,event:e}),l(e)}),[j,t,l]),mt=p.useCallback((function(t){h(t)}),[h]),_t=p.useCallback((function(e){F.current||(j(null,{target:t.current,event:e}),f(e))}),[f,j,t]),bt=p.useCallback((function(t){Bt(nt(),{event:t,payload:rt.current},{onVelocityChange:lt,onOffsetChange:pt,onClientOffsetChange:ct,onPageOffsetChange:ht,onInitialClientOffsetChange:ut,onScrollOffsetChange:ft,onInitialScrollOffsetChange:dt,onIsPressedChange:st,onIsScrollingChange:at})}),[nt,lt,pt,ht,ct,ut,dt,st,ft,at]),xt=p.useCallback((function(t){bt(t)}),[bt]),St=p.useCallback((function(t){bt(t)}),[bt]),Pt=p.useCallback((function(t){bt(t)}),[bt]),At=p.useCallback((function(t){bt(t)}),[bt]),Mt=p.useCallback((function(t){bt(t)}),[bt]),Tt=p.useCallback((function(t){bt(t)}),[bt]),Et=p.useCallback((function(t){bt(t)}),[bt]),jt=p.useCallback((function(t){t.preventDefault(),bt(t)}),[bt]),It=p.useCallback((function(t){t.preventDefault(),bt(t)}),[bt]),zt=p.useCallback((function(t){t.preventDefault(),bt(t)}),[bt]),Vt=p.useCallback((function(t){if(0===t.touches.length&&1===t.changedTouches.length){var e=it();N.current=!0,H.current=e.setTimeout((function(){N.current=!1}),2e3)}bt(t)}),[bt,it]),Nt=p.useCallback((function(t){bt(t)}),[bt]),Ht=p.useCallback((function(){var t=$();if(t){var e=t.style.touchAction;return t.style.touchAction="none",function(){t.style.touchAction=e}}}),[$]),Ut=p.useCallback((function(){return L(rt),function(){D(rt)}}),[D,L]);p.useEffect((function(){var t=it();if(P){var e=tt()||Rt(document.elementFromPoint(K.current.x,K.current.y));t.clearInterval(V.current),V.current=t.setInterval((function(){Lt(e,{x:z.current.x,y:z.current.y})}),50)}return function(){t.clearInterval(V.current)}}),[$,tt,it,P]),p.useEffect(Ht,[Ht]),p.useEffect((function(){var t=it(),e=$(),r=ot();return Q?(e&&(U.current=Rt(e),U.current&&U.current.addEventListener("scroll",Nt,{passive:!0}),e.addEventListener("pointerdown",xt,{passive:!0})),C&&(r.addEventListener("pointermove",St),r.addEventListener("pointerup",At,!0),r.addEventListener("contextmenu",jt),r.addEventListener("pointercancel",Pt,{passive:!0}))):(t.addEventListener("touchmove",O,{capture:!1,passive:!1}),e&&(e.addEventListener("mousedown",Mt,{passive:!0}),g||(e.addEventListener("touchstart",It,{passive:!0}),C&&(e.addEventListener("touchmove",zt,{passive:!0}),e.addEventListener("touchend",Vt,{passive:!0})))),C&&(r.addEventListener("mousemove",Tt,{passive:!0}),r.addEventListener("mouseup",Et,{passive:!0}))),function(){U.current&&U.current.removeEventListener("scroll",Nt),e&&(e.removeEventListener("pointerdown",xt),e.removeEventListener("mousedown",Mt),e.removeEventListener("touchstart",It),e.removeEventListener("touchmove",zt),e.removeEventListener("touchend",Vt)),r.removeEventListener("pointermove",St),r.removeEventListener("pointerup",At,!0),r.removeEventListener("contextmenu",jt),r.removeEventListener("pointercancel",Pt),r.removeEventListener("mousemove",Tt),r.removeEventListener("mouseup",Et),t.removeEventListener("touchmove",O),t.clearTimeout(H.current)}}),[C,it,$,ot,g,Q,jt,Mt,Tt,Et,Pt,xt,St,At,Vt,zt,It,Nt]),p.useEffect((function(){return function(){F.current=!0}}),[]),p.useLayoutEffect(Ut,[Ut])}var Vt=p.forwardRef((function(t,e){var r=p.useRef(null),o=p.useRef(null),i=p.useCallback((function(){return r.current&&r.current.element?r.current.element:r.current}),[r]);p.useImperativeHandle(o,(function(){return{element:i()||null}})),p.useImperativeHandle(e,(function(){return o.current})),p.useImperativeHandle(t.childRef,(function(){return r.current}));var n=p.useCallback((function(e){t.onPress&&t.onPress({element:i(),target:o.current,event:e})}),[i,t.onPress]),s=p.useCallback((function(e){t.onRelease&&t.onRelease({element:i(),target:o.current,event:e})}),[i,t.onRelease]),a=p.useCallback((function(e){t.onDragStart&&t.onDragStart({element:i(),target:o.current,event:e})}),[t,i]),l=p.useCallback((function(e){t.onDrag&&t.onDrag({element:i(),target:o.current,event:e})}),[i,t.onDrag]),c=p.useCallback((function(e){t.onDragEnd&&t.onDragEnd({element:i(),target:o.current,event:e})}),[i,t.onDragEnd]);return zt(r,{onPress:n,onRelease:s,onDragStart:a,onDrag:l,onDragEnd:c},{mouseOnly:t.mouseOnly,autoScroll:t.autoScroll,hint:t.hint,scrollContainer:t.scrollContainer}),t.children?p.cloneElement(p.Children.only(t.children),{ref:r}):null}));function Nt(t,e){void 0===e&&(e={onDragEnter:O,onDragOver:O,onDragLeave:O,onDrop:O});var r=e.onDragEnter,o=void 0===r?O:r,i=e.onDragOver,n=void 0===i?O:i,s=e.onDragLeave,a=void 0===s?O:s,l=e.onDrop,c=void 0===l?O:l,h=Dt(Ct)[1],u=p.useContext(kt),f=u[1],d=u[2],v=p.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]),y=p.useRef(null);p.useImperativeHandle(y,(function(){return{element:v(),onDragEnter:g,onDragOver:m,onDragLeave:_,onDrop:b,data:t.current}}));var g=p.useCallback((function(e){h(y,{target:t.current,event:e}),o(e)}),[h,t,o]),m=p.useCallback((function(t){n(t)}),[n]),_=p.useCallback((function(e){h(null,{target:t.current,event:e}),a(e)}),[h,t,a]),b=p.useCallback((function(e){h(null,{target:t.current,event:e}),c(e)}),[h,t,c]),x=p.useCallback((function(){return f(y),function(){d(y)}}),[d,f]);p.useLayoutEffect(x,[x])}Vt.displayName="KendoReactDraggable";var Ht=p.forwardRef((function(t,e){var r=p.useRef(null),o=p.useRef(null),i=p.useCallback((function(){return r.current&&r.current.element?r.current.element:r.current}),[r]);p.useImperativeHandle(o,(function(){return{element:i()||void 0}})),p.useImperativeHandle(e,(function(){return o.current})),p.useImperativeHandle(t.childRef,(function(){return r.current}));var n=p.useCallback((function(e){t.onDragEnter&&t.onDragEnter({element:i(),target:o.current,event:e})}),[t.onDragEnter,i]),s=p.useCallback((function(e){t.onDragOver&&t.onDragOver({element:i(),target:o.current,event:e})}),[i,t.onDragOver]),a=p.useCallback((function(e){t.onDragLeave&&t.onDragLeave({element:i(),target:o.current,event:e})}),[t.onDragLeave,i]),l=p.useCallback((function(e){t.onDrop&&t.onDrop({element:i(),target:o.current,event:e})}),[t.onDrop,i]);return Nt(r,{onDragEnter:n,onDragOver:s,onDragLeave:a,onDrop:l}),t.children?p.cloneElement(p.Children.only(t.children),{ref:r}):null}));Ht.displayName="KendoReactDroppable";var Ut={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(1);e.ChartContext=o.createContext(null),e.ChartContext.displayName="ChartContext"},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=r(1),a=r(9),l=function(t){function e(e,r){var o=t.call(this,e,r)||this;return o.optionsStore=r.optionsStore,o}return i(e,t),e.prototype.renderChildren=function(t,e){var r=t.props.children,o=this.props,i=o._chartKey,a=o._parentStore,l=n({},t.props,{_chartCollectionIdxKey:i+"_"+e,_parentStore:a});return s.cloneElement(t,l,r)},e.prototype.render=function(){var t=this,e=this.props,r=e._chartKey,o=e._parentStore,i=e.children;return(o||this.optionsStore).dispatch({chartKey:r,payload:[]}),s.Children.map(i,(function(e,r){return s.isValidElement(e)?t.renderChildren(e,r):e}))},e.contextType=a.ChartContext,e}(s.Component);e.default=l},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var o=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r={},o=function(t){return"object"==typeof t?Object.keys(t).forEach((function(e){r[e]=t[e]})):r[t]=!0},i=function(t){return t.filter((function(t){return!0!==t&&!!t})).map((function(t){return Array.isArray(t)?i(t):o(t)}))};return i(t),Object.keys(r).map((function(t){return r[t]&&t||null})).filter((function(t){return null!==t})).join(" ")}},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var s=r(1),a=r(3),l=r(53),p=r(7),c=r(8),h=r(5),u=r(54),f=r(56),d=r(38),v=r(58),y=r(39),g=r(40),m=r(5);r(59);var _=r(60),b=r(62),x=r(9),w=r(8),C=r(65),O=function(t){function e(e){var r=t.call(this,e)||this;return r.chartInstance=null,r._element=null,r.optionsStore={},r.optionsUnsubscriber=Function.prototype,r.themeStore={},r.themeUnsubscriber=Function.prototype,r.observersStore={},r.suppressTransitions=!1,r.onRender=function(t){null!==r.chartInstance&&(r.surface=t.sender.surface,r.trigger("render",t))},r.onLegendItemClick=function(t){if(null!==r.chartInstance)if(r.props.onLegendItemClick)r.trigger("legendItemClick",t);else{var e=r.optionsStore.getState().series;if(!e)return;var o={},i=t.seriesIndex,n=t.pointIndex,s=e[i];if(void 0===n)o=Object.assign({},s,{visible:m.toggle(s.visible)});else{var a=s.pointVisibility=s.pointVisibility||[];a[n]=m.toggle(a[n]),o=Object.assign({},s)}r.optionsStore.dispatch({chartCollectionIdxKey:"series_"+i,payload:o}),r.suppressTransitions=!0}},r.onWindowResize=function(){null!==r.chartInstance&&r.chartInstance.resize()},r.onChartMouseLeave=function(t){var e=d.toDomEvent(r,t);r.triggerDomEvent("onMouseLeave",e)?t.preventDefault():null!==r.chartInstance&&r.chartInstance.hideElements()},r.onChildMouseLeave=function(t){var e=t.syntheticEvent;return r.chartInstance&&!h.hasParent(e.relatedTarget,r.element)&&r.chartInstance.hideElements(),!1},w.validatePackage(C.packageMetadata),r.optionsStore=y.default(g.optionsReducer),r.observersStore=y.default(g.observersReducer),r.childrenObserver=new p.InstanceObserver(r,{onMouseLeave:"onChildMouseLeave"}),r.contextValue={optionsStore:r.optionsStore,observersStore:r.observersStore,childrenObserver:r.childrenObserver},r.themeStore=y.default(g.themeReducer),r.chartObserver=new p.InstanceObserver(r,{render:"onRender",legendItemClick:"onLegendItemClick"}),r}return i(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),e.prototype.componentDidMount=function(){v.loadTheme(this.themeStore,this.instantiateCoreChart.bind(this)),this.optionsUnsubscriber=this.optionsStore.subscribe(this.refresh.bind(this)),this.themeUnsubscriber=this.themeStore.subscribe(this.refresh.bind(this)),window.addEventListener("resize",this.onWindowResize)},e.prototype.componentWillUnmount=function(){this.optionsUnsubscriber(),this.themeUnsubscriber(),null!==this.chartInstance&&(this.chartInstance.destroy(),this.chartInstance=null),window.removeEventListener("resize",this.onWindowResize)},e.prototype.componentDidUpdate=function(t){var e=this.props,r=e.dir,o=(e.children,n(e,["dir","children"]));if(null!==this.chartInstance){var i=l.provideIntlService(this),s=this.chartInstance.chartService,a=i.locale!==s._intlService.locale,p=Object.entries(t).filter((function(t){return"dir"!==t[0]&&"children"!==t[0]})).some((function(t){var e=t[0],r=t[1];return!(o.hasOwnProperty(e)&&o[e]===r)}));a&&(this.chartInstance.chartService._intlService=i,this.chartInstance.chartService.format._intlService=i,p||this.chartInstance.noTransitionsRedraw()),p&&this.refresh(),t.dir!==r&&this.chartInstance.setDirection(this.getDirection(r))}},e.prototype.render=function(){var t=this,e=this.props,r=e.style,o=void 0===r?{}:r,i=e.className,n=e.wrapper,a=e.children,l=Object.assign({},o,{position:"relative"}),p=s.createElement(n,{className:i,style:l,key:"chartElement"},s.createElement("div",{onMouseLeave:this.onChartMouseLeave,ref:function(e){return t._element=e},className:"k-chart-surface"},a));return s.createElement(x.ChartContext.Provider,{value:this.contextValue},s.createElement(_.SeriesTooltip,{key:"seriesTooltip"}),s.createElement(b.CrosshairTooltipContainer,{key:"crosshairTooltips"}),p)},e.prototype.getDirection=function(t){var e=this;return"rtl"===(void 0!==t?t:c.canUseDOM&&window.getComputedStyle(e.element).direction||"ltr")},e.prototype.getChartOptions=function(){var t=this.props,e=t.renderAs,r=t.pannable,o=t.zoomable,i=t.paneDefaults,n=t.panes,s=t.transitions,a=t.seriesColors,l=t.seriesDefaults,p=t.axisDefaults,c=t.deriveOptionsFromParent,h={};return void 0!==e&&(h.renderAs=e),void 0!==r&&(h.pannable=r),void 0!==o&&(h.zoomable=o),void 0!==i&&(h.paneDefaults=i),void 0!==n&&(h.panes=n),void 0!==s&&(h.transitions=s),void 0!==a&&(h.seriesColors=a),void 0!==l&&(h.seriesDefaults=l),void 0!==p&&(h.axisDefaults=p),h=Object.assign(h,this.optionsStore.getState()),c&&(h=c(h)),h},e.prototype.refresh=function(){if(null!==this.chartInstance){var t=this.themeStore.getState(),e=this.getChartOptions(),r=e.transitions;this.suppressTransitions&&(e.transitions=!1),this.props.onRefresh?this.props.onRefresh.call(void 0,e,t,this.chartInstance):this.chartInstance.setOptions(e,t),this.suppressTransitions&&(e.transitions=r,this.suppressTransitions=!1)}},e.prototype.instantiateCoreChart=function(){var t=this.props,e=t.dir,r=t.chartConstructor,o=this.getChartOptions();this.chartInstance=new r(this.element,o,this.themeStore.getState(),{rtl:this.getDirection(e),intlService:l.provideIntlService(this),observer:this.chartObserver,sender:this})},e.prototype.trigger=function(t,e){for(var r=this.props.getTarget(),o=f.create(t,e,r),i="on"+t.charAt(0).toUpperCase()+t.slice(1),n=this.observersStore.getState(),s=!1,a=0;a<n.length;a++)n[a].trigger(t,e)&&(s=!0);return!1===s&&o&&this.props.hasOwnProperty(i)?(this.props[i].call(void 0,o),o.isDefaultPrevented&&o.isDefaultPrevented()):s},e.prototype.requiresHandlers=function(t){for(var e=0;e<t.length;e++){var r=t[e],o="on"+r.charAt(0).toUpperCase()+r.slice(1);if(this.props.hasOwnProperty(o))return!0}return!1},e.prototype.triggerDomEvent=function(t,e){for(var r=this.observersStore.getState(),o=!1,i=0;i<r.length;i++)r[i].trigger(t,e)&&(o=!0);return o},e.propTypes={dir:a.string,renderAs:a.oneOf(["svg","canvas"])},e.defaultProps={renderAs:"svg"},e}(s.Component);e.BaseChart=O,l.registerForIntl(O),p.DomEventsBuilder.register(u.DomEventsBuilder)},function(t,e){t.exports=o},,function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return n}));var o=r(1),i=o.createContext(0),n=function(){return o.useContext(i)};i.displayName="KendoReactZIndexContext"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var o=r(14);function i(t){if(void 0!==o)o.validatePackage(t);else{var e="License activation failed for "+t.name+"\n";e+="The @progress/kendo-licensing script is not loaded.\n",e+="See "+t.licensingDocsUrl+" for more information.\n",console.warn(e)}}},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.axis=e.axis,o.dataItem=e.dataItem,o.index=e.index,o.text=e.text,o.value=e.value,o}return i(e,t),e}(r(4).BaseEvent);e.AxisLabelClickEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.axisRanges=e.axisRanges,o.nativeEvent=e.originalEvent,o}return i(e,t),e}(r(6).PreventableEvent);e.DragEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.axisRanges=e.axisRanges,o.nativeEvent=e.originalEvent,o}return i(e,t),e}(r(4).BaseEvent);e.DragEndEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.axisRanges=e.axisRanges,o.nativeEvent=e.originalEvent,o}return i(e,t),e}(r(6).PreventableEvent);e.DragStartEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.series=e.series,o.seriesIndex=e.seriesIndex,o.pointIndex=e.pointIndex,o.text=e.text,o}return i(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(r(6).PreventableEvent);e.LegendItemHoverEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.series=e.series,o.seriesIndex=e.seriesIndex,o.pointIndex=e.pointIndex,o.text=e.text,o}return i(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(r(6).PreventableEvent);e.LegendItemClickEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.from=e.from,o.to=e.to,o}return i(e,t),e}(r(4).BaseEvent);e.NavigatorFilterEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.category=e.category,o.dataItem=e.dataItem,o.series=e.series,o.value=e.value,o.visual=e.visual,o}return i(e,t),e}(r(4).BaseEvent);e.NoteClickEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.category=e.category,o.dataItem=e.dataItem,o.series=e.series,o.value=e.value,o.visual=e.visual,o}return i(e,t),e}(r(4).BaseEvent);e.NoteHoverEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.category=e.category,o.nativeEvent=e.originalEvent,o.value=e.value,o.x=e.x,o.y=e.y,o}return i(e,t),e}(r(4).BaseEvent);e.PlotAreaClickEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.category=e.category,o.nativeEvent=e.originalEvent,o.value=e.value,o.x=e.x,o.y=e.y,o}return i(e,t),e}(r(4).BaseEvent);e.PlotAreaHoverEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){return t.call(this,r)||this}return i(e,t),e}(r(4).BaseEvent);e.RenderEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.axis=e.axis,o.from=e.from,o.to=e.to,o}return i(e,t),e}(r(6).PreventableEvent);e.SelectEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.axis=e.axis,o.from=e.from,o.to=e.to,o}return i(e,t),e}(r(4).BaseEvent);e.SelectEndEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.axis=e.axis,o.from=e.from,o.to=e.to,o}return i(e,t),e}(r(6).PreventableEvent);e.SelectStartEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.category=e.category,o.dataItem=e.dataItem,o.nativeEvent=e.originalEvent,o.percentage=e.percentage,o.point=e.point,o.series=e.series,o.stackValue=e.stackValue,o.value=e.value,o}return i(e,t),e}(r(4).BaseEvent);e.SeriesClickEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.category=e.category,o.categoryPoints=e.categoryPoints,o.dataItem=e.dataItem,o.nativeEvent=e.originalEvent,o.percentage=e.percentage,o.point=e.point,o.series=e.series,o.stackValue=e.stackValue,o.value=e.value,o}return i(e,t),e}(r(6).PreventableEvent);e.SeriesHoverEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.axisRanges=e.axisRanges,o.delta=e.delta,o.nativeEvent=e.originalEvent,o}return i(e,t),e}(r(6).PreventableEvent);e.ZoomEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.axisRanges=e.axisRanges,o.nativeEvent=e.originalEvent,o}return i(e,t),e}(r(4).BaseEvent);e.ZoomEndEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.axisRanges=e.axisRanges,o.nativeEvent=e.originalEvent,o}return i(e,t),e}(r(6).PreventableEvent);e.ZoomStartEvent=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(t,e){this.sender=t,this.syntheticEvent=e};e.DomEvent=o,e.toDomEvent=function(t,e){return new o(t,e)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(8);e.THROTTLE_MS=1e3/60;e.default=function(t){var r,i,n=[],s=function(s){r=t(r,s),o.canUseDOM&&(window.clearTimeout(i),i=window.setTimeout((function(){return n.forEach((function(t){return t()}))}),e.THROTTLE_MS))};return s({}),{getState:function(){return r},dispatch:s,subscribe:function(t){return n.push(t),function(){return n=n.filter((function(e){return e!==t}))}}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.optionsReducer=function(t,e){return e.chartCollectionIdxKey?o.collectionConfigurationItem(t,e):e.chartKey?o.configurationItem(t,e):{}};e.themeReducer=function(t,e){if(!e.type)return{};switch(e.type){case"set":return o.themeItem(t,e);case"push":return Object.assign(t,e.payload);default:return t}};e.observersReducer=function(t,e){if(!e.type)return[];switch(e.type){case"add":return t.concat([e.payload]);case"remove":return t.filter((function(t){return t!==e.payload}));default:return t}};var o={configurationItem:function(t,e){var r;return Object.assign(t,((r={})[e.chartKey]=e.payload,r))},collectionConfigurationItem:function(t,e){var r,o=!1,i=e.chartCollectionIdxKey.split("_"),n=i[0],s=i[1],a=t[n].map((function(t,r){return parseInt(s,10)===r?(o=!0,e.payload):t}));return!1===o&&a.splice(parseInt(s,10),0,e.payload),Object.assign(t,((r={})[n]=a,r))},themeItem:function(t,e){for(var r={},o=Object.assign(r,t),i=e.payload,n=i.field,s=i.value,a=n.split("."),l=a.shift();a.length>0;)r=r[l]=r[l]||{},l=a.shift();return r[l]=s,o}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){this.value=t.value,this.category=t.category,this.categoryIndex=t.categoryIx,this.series=t.series,this.dataItem=t.dataItem,this.percentage=t.percentage,this.runningTotal=t.runningTotal,this.total=t.total,this.low=t.low,this.high=t.high,this.xLow=t.xLow,this.xHigh=t.xHigh,this.yLow=t.yLow,this.yHigh=t.yHigh,this.point=t,this.format=((t.options||{}).tooltip||{}).format||e}return Object.defineProperty(t.prototype,"formattedValue",{get:function(){return this.format?this.point.formatValue(this.format):String(this.value)},enumerable:!0,configurable:!0}),t}();e.TooltipPoint=o},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),s=r(7),a=r(38),l=r(5),p=r(187),c=r(9),h={horizontal:"fit",vertical:"fit"},u="k-chart-tooltip",f=function(t){function e(e,r){var o=t.call(this,e,r)||this;return o.onChartMouseLeave=function(t){var e=t.syntheticEvent;return!!l.hasParent(e.relatedTarget,o.element)},o.onMouseLeave=function(t){var e=a.toDomEvent(o,t);o.context.childrenObserver.trigger("onMouseLeave",e)&&t.preventDefault()},o.chartObserver=new s.InstanceObserver(o,{onMouseLeave:"onChartMouseLeave"}),r.observersStore.dispatch({type:"add",payload:o.chartObserver}),o}return i(e,t),e.prototype.render=function(){var t=this,e=this.props,r=e.popupShown,o=e.popupAlign,i=e.popupOffset,s=e.popupStyles,a=e.popupContent,l=e.className,c=[u,l].join(" ").trim();return n.createElement(p.Popup,{animate:!1,popupAlign:o,offset:i,show:r,collision:h,className:"k-chart-tooltip-wrapper"},n.createElement("div",{className:c,style:s,onMouseLeave:this.onMouseLeave,ref:function(e){return t.element=e}},a()))},e.prototype.componentWillUnmount=function(){this.context.observersStore.dispatch({type:"remove",payload:this.chartObserver})},e.contextType=c.ChartContext,e}(n.Component);e.TooltipPopup=f},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t))};s.displayName="ChartCategoryAxisItem",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t))};s.displayName="ChartPane",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t))};s.displayName="ChartSeriesItem",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t))};s.displayName="ChartValueAxisItem",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t))};s.displayName="ChartXAxisItem",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t))};s.displayName="ChartYAxisItem",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t))};s.displayName="ChartNavigatorSeriesItem",e.default=s},function(t,e){t.exports=i},function(t,e,r){"use strict";function o(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0});var i=r(52);e.Chart=i.Chart;var n=r(67);e.Sparkline=n.Sparkline;var s=r(68);e.StockChart=s.StockChart,o(r(69)),o(r(70)),o(r(183)),o(r(185)),o(r(186))},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),l=r(13),p=r(66),c=r(7),h=r(8),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getTarget=function(){return e},e}return i(e,t),Object.defineProperty(e.prototype,"chartInstance",{get:function(){return null!==this._baseChart?this._baseChart.chartInstance:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return null!==this._baseChart?this._baseChart.surface:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return null!==this._baseChart?this._baseChart.element:null},enumerable:!0,configurable:!0}),e.prototype.render=function(){var t=this,e=this.props,r=e.donutCenterRender,o=e.children,i=e.className,u=s(e,["donutCenterRender","children","className"]);return a.createElement(l.BaseChart,n({},u,{ref:function(e){return t._baseChart=e},chartConstructor:c.Chart,getTarget:this.getTarget,wrapper:"div",className:h.classNames("k-chart k-widget",i)}),o,a.createElement(p.DonutCenter,{render:r}))},e}(a.Component);e.Chart=u},function(t,e){t.exports=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(55),i=function(){function t(){}return t.create=function(t,e){if("undefined"!=typeof window){var r=window.Hammer;if(!r)return void 0;var i=new r(t,{recognizers:[[r.Tap],[r.Pan],[r.Pinch],[r.Press,{time:0}]]});return new o.DomEvents(i,e)}},t}();e.DomEventsBuilder=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){return{x:{location:t.pageX},y:{location:t.pageY}}};function i(t,e){for(var r=0;r<t.length;r++)if(e[t[r]])return!0;return!1}var n=[{end:"panend",move:"panmove",start:"panstart"},{gesturechange:"pinchmove",gestureend:"pinchend",gesturestart:"pinchstart"},{press:"press"},{tap:"tap"}],s=function(){function t(t,e){this.hammerInstance=t,this.eventHandlers={},this.tap=this.tap.bind(this),this.press=this.press.bind(this),this.panstart=this.panstart.bind(this),this.panmove=this.panmove.bind(this),this.panend=this.panend.bind(this),this.pinchstart=this.pinchstart.bind(this),this.pinchmove=this.pinchmove.bind(this),this.pinchend=this.pinchend.bind(this),e&&this.bind(e)}return t.prototype.tap=function(t){this.trigger("tap",t)},t.prototype.press=function(t){this.trigger("press",t)},t.prototype.panstart=function(t){delete this.previous,this.previous=this.trigger("start",t)},t.prototype.panmove=function(t){this.previous=this.trigger("move",t)},t.prototype.panend=function(t){this.trigger("end",t),delete this.previous},t.prototype.pinchstart=function(t){this.trigger("gesturestart",t)},t.prototype.pinchmove=function(t){this.trigger("gesturechange",t)},t.prototype.pinchend=function(t){this.trigger("gestureend",t)},t.prototype.trigger=function(t,e){var r=function(t,e){var r=t.pointers,i=r[0],n=i.pageX,s=i.pageY,a=0;if(r.length>1){var l=r[0],p=r[1];a=Math.sqrt(Math.pow(l.pageX-p.pageX,2)+Math.pow(l.pageY-p.pageY,2))}return{distance:a,event:t.srcEvent,preventDefault:function(){t.preventDefault()},target:t.target,touches:r.map(o),type:t.type,x:{delta:e?n-e.x.location:0,initialDelta:t.deltaX,location:n,startLocation:n-t.deltaX},y:{delta:e?s-e.y.location:0,initialDelta:t.deltaY,location:s,startLocation:s-t.deltaY}}}(e,this.previous);return this.eventHandlers[t]&&this.eventHandlers[t](r),r},t.prototype.bind=function(t){void 0===t&&(t={}),this.unbind(),this.eventHandlers=t;for(var e=0;e<n.length;e++){var r=n[e],o=Object.keys(r);if(i(o,t))for(var s=0;s<o.length;s++){var a=r[o[s]];this.hammerInstance.on(a,this[a])}}},t.prototype.unbind=function(){this.hammerInstance&&this.hammerInstance.off(),this.eventHandlers={}},t.prototype.destroy=function(){this.hammerInstance&&(this.hammerInstance.destroy(),delete this.hammerInstance),delete this.eventHandlers},t.prototype.toggleDrag=function(t){this.toggle("pan",t)},t.prototype.toggleZoom=function(t){this.toggle("pinch",t)},t.prototype.toggle=function(t,e){this.hammerInstance&&this.hammerInstance.get(t).set({enable:e})},t}();e.DomEvents=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(18),i=r(19),n=r(20),s=r(21),a=r(22),l=r(23),p=r(57),c=r(24),h=r(25),u=r(26),f=r(27),d=r(28),v=r(29),y=r(30),g=r(31),m=r(32),_=r(33),b=r(34),x=r(35),w=r(36),C=r(37),O={axisLabelClick:o.AxisLabelClickEvent,drag:i.DragEvent,dragEnd:n.DragEndEvent,dragStart:s.DragStartEvent,legendItemHover:a.LegendItemHoverEvent,legendItemClick:l.LegendItemClickEvent,legendItemLeave:p.LegendItemLeaveEvent,navigatorFilter:c.NavigatorFilterEvent,noteClick:h.NoteClickEvent,noteHover:u.NoteHoverEvent,plotAreaClick:f.PlotAreaClickEvent,plotAreaHover:d.PlotAreaHoverEvent,render:v.RenderEvent,select:y.SelectEvent,selectEnd:g.SelectEndEvent,selectStart:m.SelectStartEvent,seriesClick:_.SeriesClickEvent,seriesHover:b.SeriesHoverEvent,zoom:x.ZoomEvent,zoomEnd:w.ZoomEndEvent,zoomStart:C.ZoomStartEvent};e.create=function(t,e,r){if(O[t])return new O[t](e,r)}},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var o=t.call(this,r)||this;return o.series=e.series,o.seriesIndex=e.seriesIndex,o.pointIndex=e.pointIndex,o.text=e.text,o}return i(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(r(6).PreventableEvent);e.LegendItemLeaveEvent=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(7),i=function(t){return t.fontWeight+" "+t.fontSize+" "+t.fontFamily},n=function(t){return window.getComputedStyle(t).backgroundColor},s='\n <div class="k-var--accent"></div>\n <div class="k-var--base"></div>\n <div class="k-var--background"></div>\n\n <div class="k-var--normal-background"></div>\n <div class="k-var--normal-text-color"></div>\n <div class="k-var--hover-background"></div>\n <div class="k-var--hover-text-color"></div>\n <div class="k-var--selected-background"></div>\n <div class="k-var--selected-text-color"></div>\n <div class="k-var--chart-error-bars-background"></div>\n <div class="k-var--chart-notes-background"></div>\n <div class="k-var--chart-notes-border"></div>\n <div class="k-var--chart-notes-lines"></div>\n <div class="k-var--chart-crosshair-background"></div>\n\n <div class="k-var--chart-inactive"></div>\n <div class="k-var--chart-major-lines"></div>\n <div class="k-var--chart-minor-lines"></div>\n <div class="k-var--chart-area-opacity"></div>\n <div class="k-var--chart-area-inactive-opacity"></div>\n <div class="k-var--chart-line-inactive-opacity"></div>\n\n <div class="k-widget k-chart">\n <div class="k-var--chart-font"></div>\n <div class="k-var--chart-title-font"></div>\n <div class="k-var--chart-pane-title-font"></div>\n <div class="k-var--chart-label-font"></div>\n </div>\n\n <div class="k-var--series-unset"></div>\n <div class="k-var--series">\n '+function(){for(var t='\n <div class="k-var--series-a"></div>\n <div class="k-var--series-b"></div>\n <div class="k-var--series-c"></div>\n <div class="k-var--series-d"></div>\n <div class="k-var--series-e"></div>\n <div class="k-var--series-f"></div>\n',e=0;e<30;e++)t+='\n <div class="k-var--series-'+(e+1)+'"></div>';return t}()+"\n </div>\n",a=function(){function t(t){this.store=t}return t.prototype.setStyle=function(t,e){this.store.dispatch({type:"set",payload:{field:t,value:e}})},t.prototype.setColors=function(){this.mapColor("axisDefaults.crosshair.color","chart-crosshair-background"),this.mapColor("axisDefaults.labels.color","normal-text-color"),this.mapColor("axisDefaults.line.color","chart-major-lines"),this.mapColor("axisDefaults.majorGridLines.color","chart-major-lines"),this.mapColor("axisDefaults.minorGridLines.color","chart-minor-lines"),this.mapColor("axisDefaults.notes.icon.background","chart-notes-background"),this.mapColor("axisDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("axisDefaults.notes.line.color","chart-notes-lines"),this.mapColor("axisDefaults.title.color","normal-text-color"),this.mapColor("chartArea.background","background"),this.mapColor("legend.inactiveItems.labels.color","chart-inactive"),this.mapColor("legend.inactiveItems.markers.color","chart-inactive"),this.mapColor("legend.labels.color","normal-text-color"),this.mapColor("seriesDefaults.boxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.boxPlot.mean.color","base"),this.mapColor("seriesDefaults.boxPlot.median.color","base"),this.mapColor("seriesDefaults.boxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.bullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.candlestick.downColor","normal-text-color"),this.mapColor("seriesDefaults.candlestick.line.color","normal-text-color"),this.mapColor("seriesDefaults.errorBars.color","chart-error-bars-background"),this.mapColor("seriesDefaults.horizontalWaterfall.line.color","chart-major-lines"),this.mapColor("seriesDefaults.icon.border.color","chart-major-lines"),this.mapColor("seriesDefaults.labels.background","background"),this.mapColor("seriesDefaults.labels.color","normal-text-color"),this.mapColor("seriesDefaults.notes.icon.background","chart-notes-background"),this.mapColor("seriesDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("seriesDefaults.notes.line.color","chart-notes-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.mean.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.median.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.verticalBullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.waterfall.line.color","chart-major-lines"),this.mapColor("title.color","normal-text-color");var t=parseFloat(this.queryStyle("chart-area-opacity").opacity);isNaN(t)||(this.setStyle("seriesDefaults.area.opacity",t),this.setStyle("seriesDefaults.radarArea.opacity",t),this.setStyle("seriesDefaults.verticalArea.opacity",t),this.setStyle("seriesDefaults.labels.opacity",t)),this.setInactiveOpacity(["area","verticalArea"],"chart-area-inactive-opacity"),this.setInactiveOpacity(["line","verticalLine"],"chart-line-inactive-opacity")},t.prototype.setFonts=function(){var t=i(this.queryStyle("chart-font")),e=i(this.queryStyle("chart-title-font")),r=i(this.queryStyle("chart-pane-title-font")),o=i(this.queryStyle("chart-label-font"));this.setStyle("axisDefaults.labels.font",o),this.setStyle("axisDefaults.notes.label.font",t),this.setStyle("axisDefaults.title.font",t),this.setStyle("legend.labels.font",t),this.setStyle("seriesDefaults.labels.font",o),this.setStyle("seriesDefaults.notes.label.font",t),this.setStyle("title.font",e),this.setStyle("paneDefaults.title.font",r)},t.prototype.setSeriesColors=function(){var t=this.element,e=[].slice.call(t.querySelectorAll(".k-var--series div")),r=n(t.querySelector(".k-var--series-unset")),o=e.reduce((function(t,e){var o=function(t){var e=t.match(/series-([a-z])$/);if(null!==e)return e[1].toLowerCase().charCodeAt(0)-"a".charCodeAt(0);var r=t.split("--series-")[1];return parseInt(r,10)-1}(e.className),i=n(e);return i!==r&&(t[o]=i),t}),[]);this.setStyle("seriesColors",o)},t.prototype.mapColor=function(t,e){this.setStyle(t,this.queryStyle(e).backgroundColor)},t.prototype.queryStyle=function(t){var e=this.element;return window.getComputedStyle(e.querySelector(".k-var--"+t))},t.prototype.setInactiveOpacity=function(t,e){var r=this,o=parseFloat(this.queryStyle(e).opacity);!isNaN(o)&&o<1&&t.forEach((function(t){return r.setStyle("seriesDefaults."+t+".highlight.inactiveOpacity",o)}))},t}();e.loadTheme=function(t,e){var r=new a(t);if("undefined"!=typeof document){var i=r.element=document.createElement("div");i.style.display="none",i.innerHTML=s,document.body.appendChild(i);try{t.dispatch({type:"push",payload:o.chartBaseTheme()}),r.setColors(),r.setFonts(),r.setSeriesColors()}finally{document.body.removeChild(r.element),delete r.element,e()}}else t.dispatch({type:"push",payload:o.chartBaseTheme()})}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(7),i=o.DateCategoryAxis.prototype.options.labels.dateFormats,n=o.DateValueAxis.prototype.options.labels.dateFormats,s={milliseconds:"HH:mm:ss.SSS",seconds:{time:"medium"},minutes:{time:"short"},hours:{time:"short"},days:{skeleton:"Md"},weeks:{skeleton:"Md"},months:{skeleton:"yyMMM"},years:{skeleton:"y"}};Object.assign(i,s),Object.assign(n,s)},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),l=r(8),p=r(7),c=r(41),h=r(61),u=r(42),f=r(9),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={popupShown:!1},e}return i(e,t),e.prototype.componentDidMount=function(){this.chartObserver=new p.InstanceObserver(this,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),this.context.observersStore.dispatch({type:"add",payload:this.chartObserver})},e.prototype.render=function(){var t,e=this,r=this.state,o=r.popupContext,i=r.shared,p=r.className,c=s(r,["popupContext","shared","className"]),f=this.state.popupShown?function(){var t=e.findRenderFunction();if(i)return null!==t?t(o):a.createElement(h.SharedTooltipContent,n({},o));var r=o.point,s=e.findRenderFunctionByIndex(r.series.index);return null!==s?s(o):null!==t?t(o):a.createElement("span",{dangerouslySetInnerHTML:{__html:o.point.formattedValue}})}:Function.prototype,d=l.classNames(((t={})["k-chart-shared-tooltip"]=i,t["k-chart-tooltip-inverse"]=!!p,t));return a.createElement(u.TooltipPopup,n({},c,{popupContent:f,className:d}))},e.prototype.componentWillUnmount=function(){this.context.observersStore.dispatch({type:"remove",payload:this.chartObserver})},e.prototype.onShowTooltip=function(t){var e,r=t.anchor,o=t.style,i=t.shared,n=t.className;t.crosshair||(e=i?this.createSharedTooltipContext(t):this.createTooltipContext(t),this.setState({popupShown:!0,popupAlign:r.align,popupOffset:r.point,popupContext:e,popupStyles:o,className:n,shared:i}))},e.prototype.onHideTooltip=function(){this.setState({popupShown:!1,popupStyles:{},className:void 0})},e.prototype.createSharedTooltipContext=function(t){var e=t.points,r=t.categoryText,o=e.filter((function(t){return void 0!==t.series.name})).length>0,i=t.series.length>1,n=1;return o&&n++,i&&n++,{categoryText:r,colorMarker:i,colspan:n,nameColumn:o,points:t.points.map((function(e){return new c.TooltipPoint(e,t.format)}))}},e.prototype.createTooltipContext=function(t){var e=t.point,r=t.format;return{point:new c.TooltipPoint(e,r)}},e.prototype.findRenderFunctionByIndex=function(t){var e=this.context.optionsStore.getState().series;return void 0!==e&&Array.isArray(e)&&void 0!==e[t]&&e[t].hasOwnProperty("tooltip")&&e[t].tooltip.hasOwnProperty("render")?e[t].tooltip.render:null},e.prototype.findRenderFunction=function(){var t=this.context.optionsStore.getState().tooltip;return void 0!==t&&t.hasOwnProperty("render")?t.render:null},e.contextType=f.ChartContext,e}(a.Component);e.SeriesTooltip=d},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(1);e.SharedTooltipContent=function(t){var e=t.categoryText,r=t.colorMarker,i=t.colspan,n=t.nameColumn,s=t.points;return o.createElement("table",null,o.createElement("thead",null,o.createElement("tr",null,o.createElement("th",{colSpan:i},e))),o.createElement("tbody",null,s.map((function(t,e){return o.createElement("tr",{key:e},r&&o.createElement("td",null,o.createElement("span",{className:"k-chart-shared-tooltip-marker",style:{backgroundColor:t.series.color}})),n&&o.createElement("td",null,t.series.name),o.createElement("td",{dangerouslySetInnerHTML:{__html:t.formattedValue}}))}))))}},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=r(1),a=r(63),l=r(64),p=r(9),c=["categoryAxis","valueAxis","xAxis","yAxis"];function h(t){for(var e={},r=0;r<c.length;r++)for(var o=u(t,c[r]),i=0;i<o.length;i++){var n=o[i];e[n.name+n.index]=n}return e}function u(t,e){var r=[];if(t[e])for(var o=[].concat(t[e]),i=0;i<o.length;i++){var n=(o[i].crosshair||{}).tooltip;n&&n.visible&&r.push({index:i,name:e})}return r}var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={tooltips:{}},e.storeUnsubscriber=Function.prototype,e.subscriber=function(){e.setState({tooltips:h(e.context.optionsStore.getState())})},e}return i(e,t),e.prototype.componentDidMount=function(){this.storeUnsubscriber=this.context.optionsStore.subscribe(this.subscriber)},e.prototype.render=function(){var t=this.state.tooltips,e=Object.keys(t).map((function(e){return s.createElement(l.CrosshairTooltip,n({},t[e],{key:e}))}));return s.createElement(a.Container,null,e)},e.prototype.componentWillUnmount=function(){this.storeUnsubscriber()},e.contextType=p.ChartContext,e}(s.Component);e.CrosshairTooltipContainer=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){return t.children};e.Container=o,o.displayName="Container"},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),l=r(8),p=r(7),c=r(42),h=r(9),u=function(t){function e(e,r){var o=t.call(this,e,r)||this;return o.state={popupShown:!1},o.chartObserver=new p.InstanceObserver(o,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),r.observersStore.dispatch({type:"add",payload:o.chartObserver}),o}return i(e,t),e.prototype.render=function(){var t,e=this.state,r=e.popupContend,o=e.className,i=s(e,["popupContend","className"]),p=this.state.popupShown?function(){return r}:Function.prototype,h=l.classNames(((t={})["k-chart-crosshair-tooltip"]=!0,t["k-chart-tooltip-inverse"]=!!o,t));return a.createElement(c.TooltipPopup,n({},i,{popupContent:p,className:h}))},e.prototype.componentWillUnmount=function(){this.context.observersStore.dispatch({type:"remove",payload:this.chartObserver})},e.prototype.onShowTooltip=function(t){var e=t.anchor,r=t.style,o=t.className,i=t.crosshair,n=t.axisName,s=t.axisIndex,a=t.value,l=this.props,p=l.name,c=l.index;i&&n===p&&s===c&&this.setState({popupShown:!0,popupAlign:e.align,popupOffset:e.point,popupContend:a,popupStyles:r,className:o})},e.prototype.onHideTooltip=function(){this.setState({popupShown:!1,popupStyles:{},className:void 0})},e.contextType=h.ChartContext,e}(a.Component);e.CrosshairTooltip=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-react-charts",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1647336118,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),s=r(7),a=r(9),l=function(t){function e(e,r){var o=t.call(this,e,r)||this;return o.state={donutCenterStyles:null},o.chartObserver=new s.InstanceObserver(o,{render:"onRender"}),r.observersStore.dispatch({type:"add",payload:o.chartObserver}),o}return i(e,t),e.prototype.render=function(){var t=this.props.render,e=this.state.donutCenterStyles,r=null;return t&&e&&(r=n.createElement("div",{className:"k-chart-donut-center",style:e},t())),r},e.prototype.onRender=function(t){var e=this.context.optionsStore.getState().series,r=Array.isArray(e)?e[0]:null,o=t.sender._plotArea.charts;if(r&&"donut"===r.type&&0!==o[0].points.length){var i=o[0].points[0].sector,n=i.innerRadius,s=i.center.y-n,a=i.center.x-n,l=2*n;this.setState({donutCenterStyles:{height:l,left:a,top:s,width:l}})}},e.contextType=a.ChartContext,e}(n.Component);e.DonutCenter=l},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),l=r(13),p=r(7),c=r(8),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.deriveOptionsFromParent=function(t){var r=e.props,o=r.type,i=r.data,n=Object.assign({},t,{type:o,data:i});return p.Sparkline.normalizeOptions(n)},e.getTarget=function(){return e},e}return i(e,t),Object.defineProperty(e.prototype,"chartInstance",{get:function(){return null!==this._baseChart?this._baseChart.chartInstance:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return null!==this._baseChart?this._baseChart.surface:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return null!==this._baseChart?this._baseChart.element:null},enumerable:!0,configurable:!0}),e.prototype.render=function(){var t=this,e=this.props,r=e.children,o=(e.type,e.className),i=s(e,["children","type","className"]);return a.createElement(l.BaseChart,n({},i,{ref:function(e){return t._baseChart=e},chartConstructor:p.Sparkline,getTarget:this.getTarget,wrapper:"span",deriveOptionsFromParent:this.deriveOptionsFromParent,className:c.classNames("k-sparkline k-widget",o)}),r)},e}(a.Component);e.Sparkline=h},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),l=r(13),p=r(7),c=r(8),h={autoBindElements:!0,liveDrag:!1,partialRedraw:!0},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.deriveOptionsFromParent=function(t){var e=Object.assign({},t.navigator||{},h);return Object.assign({},t,{navigator:e})},e.onRefresh=function(t,r,o){e.props.partialRedraw?(o.applyOptions(t),o.bindCategories(),o.navigator.redrawSlaves()):o.setOptions(t,r)},e.getTarget=function(){return e},e}return i(e,t),Object.defineProperty(e.prototype,"chartInstance",{get:function(){return null!==this._baseChart?this._baseChart.chartInstance:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return null!==this._baseChart?this._baseChart.surface:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return null!==this._baseChart?this._baseChart.element:null},enumerable:!0,configurable:!0}),e.prototype.render=function(){var t=this,e=this.props,r=e.children,o=e.className,i=s(e,["children","className"]);return a.createElement(l.BaseChart,n({},i,{ref:function(e){return t._baseChart=e},chartConstructor:p.StockChart,getTarget:this.getTarget,wrapper:"div",deriveOptionsFromParent:this.deriveOptionsFromParent,onRefresh:this.onRefresh,className:c.classNames("k-stockchart k-widget",o)}),r)},e}(a.Component);e.StockChart=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(41);e.TooltipPoint=o.TooltipPoint},function(t,e,r){"use strict";function o(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0});var i=r(71);e.ChartArea=i.default;var n=r(72);e.ChartAxisDefaults=n.default;var s=r(73);e.ChartCategoryAxis=s.default;var a=r(43);e.ChartCategoryAxisItem=a.default;var l=r(74);e.ChartLegend=l.default;var p=r(75);e.ChartNavigator=p.default;var c=r(44);e.ChartPane=c.default;var h=r(76);e.ChartPaneDefaults=h.default;var u=r(77);e.ChartPanes=u.default;var f=r(78);e.ChartPlotArea=f.default;var d=r(79);e.ChartSeries=d.default;var v=r(80);e.ChartSeriesDefaults=v.default;var y=r(45);e.ChartSeriesItem=y.default;var g=r(81);e.ChartTitle=g.default;var m=r(82);e.ChartTooltip=m.default;var _=r(83);e.ChartValueAxis=_.default;var b=r(46);e.ChartValueAxisItem=b.default;var x=r(84);e.ChartXAxis=x.default;var w=r(47);e.ChartXAxisItem=w.default;var C=r(85);e.ChartYAxis=C.default;var O=r(48);e.ChartYAxisItem=O.default;var k=r(86);e.ChartZoomable=k.default,o(r(87)),o(r(92)),o(r(101)),o(r(103)),o(r(105)),o(r(109)),o(r(117)),o(r(130)),o(r(138)),o(r(146)),o(r(154))},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"chartArea"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"axisDefaults"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(10),s=r(43),a=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"categoryAxis"}))};l.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=l},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"legend"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"navigator"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"paneDefaults"}))};s.displayName="ChartPaneDefaults",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(10),s=r(44),a=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"panes"}))};l.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=l},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"plotArea"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(10),s=r(45),a=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"series"}))};l.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=l},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"seriesDefaults"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(10),s=r(46),a=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"valueAxis"}))};l.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=l},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(10),s=r(47),a=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"xAxis"}))};l.prototype={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=l},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(10),s=r(48),a=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"yAxis"}))};l.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=l},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"zoomable"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(88);e.ChartAxisDefaultsTitle=o.default;var i=r(89);e.ChartAxisDefaultsLabels=i.default;var n=r(90);e.ChartAxisDefaultsCrosshair=n.default;var s=r(91);e.ChartAxisDefaultsCrosshairTooltip=s.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartAxisDefaultsTitle",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.displayName="ChartAxisDefaultsLabels",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},s.displayName="ChartAxisDefaultsCrosshair",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},s.displayName="ChartAxisDefaultsCrosshairTooltip",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(93);e.ChartCategoryAxisCrosshair=o.default;var i=r(94);e.ChartCategoryAxisCrosshairTooltip=i.default;var n=r(95);e.ChartCategoryAxisTitle=n.default;var s=r(96);e.ChartCategoryAxisLabels=s.default;var a=r(97);e.ChartCategoryAxisNotes=a.default;var l=r(98);e.ChartCategoryAxisNotesIcon=l.default;var p=r(99);e.ChartCategoryAxisNotesLabel=p.default;var c=r(100);e.ChartCategoryAxisRangeLabels=c.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartCategoryAxisTitle",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"rangeLabels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(102);e.ChartPaneTitle=o.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartPaneTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(104);e.ChartPaneDefaultsTitle=o.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartPaneDefaultsTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(106);e.ChartLegendItem=o.default;var i=r(107);e.ChartLegendTitle=i.default;var n=r(108);e.ChartLegendInactiveItems=n.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"item"}))};s.displayName="ChartLegendItem",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartLegendTitle",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"inactiveItems"}))};s.displayName="ChartLegendInactiveItems",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(110);e.ChartSeriesDefaultsItemTooltip=o.default;var i=r(111);e.ChartSeriesDefaultsLabels=i.default;var n=r(112);e.ChartSeriesDefaultsLabelsFrom=n.default;var s=r(113);e.ChartSeriesDefaultsLabelsTo=s.default;var a=r(114);e.ChartSeriesDefaultsNotes=a.default;var l=r(115);e.ChartSeriesDefaultsNotesIcon=l.default;var p=r(116);e.ChartSeriesDefaultsNotesLabel=p.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"from"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"to"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(118);e.ChartSeriesItemTooltip=o.default;var i=r(119);e.ChartSeriesItemOutliers=i.default;var n=r(120);e.ChartSeriesNotes=n.default;var s=r(121);e.ChartSeriesMarkers=s.default;var a=r(122);e.ChartSeriesLabels=a.default;var l=r(123);e.ChartSeriesHighlight=l.default;var p=r(124);e.ChartSeriesExtremes=p.default;var c=r(125);e.ChartSeriesErrorBars=c.default;var h=r(126);e.ChartSeriesLabelsFrom=h.default;var u=r(127);e.ChartSeriesLabelsTo=u.default;var f=r(128);e.ChartSeriesNotesLabel=f.default;var d=r(129);e.ChartSeriesNotesIcon=d.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"outliers"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"markers"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"highlight"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"extremes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"errorBars"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"from"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"to"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(131);e.ChartValueAxisCrosshair=o.default;var i=r(132);e.ChartValueAxisCrosshairTooltip=i.default;var n=r(133);e.ChartValueAxisLabels=n.default;var s=r(134);e.ChartValueAxisNotes=s.default;var a=r(135);e.ChartValueAxisNotesIcon=a.default;var l=r(136);e.ChartValueAxisNotesLabel=l.default;var p=r(137);e.ChartValueAxisTitle=p.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartValueAxisTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(139);e.ChartXAxisCrosshair=o.default;var i=r(140);e.ChartXAxisCrosshairTooltip=i.default;var n=r(141);e.ChartXAxisLabels=n.default;var s=r(142);e.ChartXAxisNotes=s.default;var a=r(143);e.ChartXAxisNotesIcon=a.default;var l=r(144);e.ChartXAxisNotesLabel=l.default;var p=r(145);e.ChartXAxisTitle=p.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartXAxisTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(147);e.ChartYAxisCrosshair=o.default;var i=r(148);e.ChartYAxisCrosshairTooltip=i.default;var n=r(149);e.ChartYAxisLabels=n.default;var s=r(150);e.ChartYAxisNotes=s.default;var a=r(151);e.ChartYAxisNotesIcon=a.default;var l=r(152);e.ChartYAxisNotesLabel=l.default;var p=r(153);e.ChartYAxisTitle=p.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartYAxisTitle",e.default=s},function(t,e,r){"use strict";function o(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0});var i=r(155);e.ChartNavigatorCategoryAxis=i.default;var n=r(156);e.ChartNavigatorHint=n.default;var s=r(157);e.ChartNavigatorPane=s.default;var a=r(158);e.ChartNavigatorSelect=a.default;var l=r(159);e.ChartNavigatorSeries=l.default;var p=r(49);e.ChartNavigatorSeriesItem=p.default,o(r(160)),o(r(168)),o(r(170))},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"categoryAxis"}))};s.displayName="ChartNavigatorCategoryAxis",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"hint"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"pane"}))};s.displayName="ChartNavigatorPane",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"select"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(10),s=r(49),a=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"series"}))};l.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(161);e.ChartNavigatorCategoryAxisCrosshair=o.default;var i=r(162);e.ChartNavigatorCategoryAxisCrosshairTooltip=i.default;var n=r(163);e.ChartNavigatorCategoryAxisTitle=n.default;var s=r(164);e.ChartNavigatorCategoryAxisLabels=s.default;var a=r(165);e.ChartNavigatorCategoryAxisNotes=a.default;var l=r(166);e.ChartNavigatorCategoryAxisNotesIcon=l.default;var p=r(167);e.ChartNavigatorCategoryAxisNotesLabel=p.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartNavigatorCategoryAxisTitle",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(169);e.ChartNavigatorPaneTitle=o.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartNavigatorPaneTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(171);e.ChartNavigatorSeriesItemTooltip=o.default;var i=r(172);e.ChartNavigatorSeriesItemOutliers=i.default;var n=r(173);e.ChartNavigatorSeriesNotes=n.default;var s=r(174);e.ChartNavigatorSeriesMarkers=s.default;var a=r(175);e.ChartNavigatorSeriesLabels=a.default;var l=r(176);e.ChartNavigatorSeriesHighlight=l.default;var p=r(177);e.ChartNavigatorSeriesExtremes=p.default;var c=r(178);e.ChartNavigatorSeriesErrorBars=c.default;var h=r(179);e.ChartNavigatorSeriesLabelsFrom=h.default;var u=r(180);e.ChartNavigatorSeriesLabelsTo=u.default;var f=r(181);e.ChartNavigatorSeriesNotesLabel=f.default;var d=r(182);e.ChartNavigatorSeriesNotesIcon=d.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"outliers"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"markers"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"highlight"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"extremes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"errorBars"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"from"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"to"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(184);e.WeekStartDay=o.WeekStartDay},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday"}(e.WeekStartDay||(e.WeekStartDay={}))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(18);e.AxisLabelClickEvent=o.AxisLabelClickEvent;var i=r(20);e.DragEndEvent=i.DragEndEvent;var n=r(19);e.DragEvent=n.DragEvent;var s=r(21);e.DragStartEvent=s.DragStartEvent;var a=r(23);e.LegendItemClickEvent=a.LegendItemClickEvent;var l=r(22);e.LegendItemHoverEvent=l.LegendItemHoverEvent;var p=r(24);e.NavigatorFilterEvent=p.NavigatorFilterEvent;var c=r(25);e.NoteClickEvent=c.NoteClickEvent;var h=r(26);e.NoteHoverEvent=h.NoteHoverEvent;var u=r(27);e.PlotAreaClickEvent=u.PlotAreaClickEvent;var f=r(28);e.PlotAreaHoverEvent=f.PlotAreaHoverEvent;var d=r(29);e.RenderEvent=d.RenderEvent;var v=r(31);e.SelectEndEvent=v.SelectEndEvent;var y=r(30);e.SelectEvent=y.SelectEvent;var g=r(32);e.SelectStartEvent=g.SelectStartEvent;var m=r(33);e.SeriesClickEvent=m.SeriesClickEvent;var _=r(34);e.SeriesHoverEvent=_.SeriesHoverEvent;var b=r(36);e.ZoomEndEvent=b.ZoomEndEvent;var x=r(35);e.ZoomEvent=x.ZoomEvent;var w=r(37);e.ZoomStartEvent=w.ZoomStartEvent},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.findAxisByName=function(t,e){if(t&&null!==t.chartInstance)return t.chartInstance.findAxisByName(e)};e.findPaneByIndex=function(t,e){if(t&&null!==t.chartInstance)return t.chartInstance.findPaneByIndex(e)};e.findPaneByName=function(t,e){if(t&&null!==t.chartInstance)return t.chartInstance.findPaneByName(e)};e.exportVisual=function(t,e){if(void 0===e&&(e={}),t&&null!==t.chartInstance)return t.chartInstance.exportVisual(e)}},function(t,e,r){"use strict";r.r(e),r.d(e,"Popup",(function(){return ct})),r.d(e,"PopupPropsContext",(function(){return pt}));var o=r(1),i=r(50),n=r(3),s=function(t){t.style.transitionDuration="",Array.from(t.classList).forEach((function(e){e.startsWith("k-slide-")&&t.classList.remove(e)}))},a="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),l=r(17),p=r(11),c=r(16),h=r(12),u="bottom",f="center",d="middle",v="left",y="right",g="top";function m(t){return t.ownerDocument||t.document||t}var _=function(t){return m(t).defaultView},b=function(t){return m(t).documentElement},x=0;function w(){if(!x&&"undefined"!=typeof document){var t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",document.body.appendChild(t),x=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return x}function C(t){var e=_(t),r=b(t),o={height:e.innerHeight,width:e.innerWidth};return r.scrollHeight-r.clientHeight>0&&(o.width-=w()),o}var O=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||b(t)},k=function(t){var e=t.getBoundingClientRect(),r=e.left,o=e.top;return e.height||e.width||(e=function(t){var e=t.style,r=e.display,o=e.left,i=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var n=t.getBoundingClientRect();return t.style.display=r,t.style.left=o,t.style.position=i,n}(t)),{top:o,left:r,height:e.height,width:e.width}},S=function(t,e){for(var r=[],o=t.parentNode;o&&(r.push(o),o!==e);)o=o.parentNode;return r};function P(t){var e=b(t),r=_(t);return{x:r.pageXOffset||e.scrollLeft||0,y:r.pageYOffset||e.scrollTop||0}}var A=function(t){return t===(t.ownerDocument||{}).body?P(t):{x:t.scrollLeft,y:t.scrollTop}};var M=function(t,e){var r=_(t),o=r.getComputedStyle(t),i=k(t),n=e||O(t),s=t.ownerDocument,a=n!==s.body&&n!==s.documentElement,l={top:0,left:0};if("fixed"!==o.position&&a){var p=r.getComputedStyle(n);(l=k(n)).top+=parseInt(p.borderTopWidth,10),l.left+=parseInt(p.borderLeftWidth,10)}return{top:i.top-l.top,left:i.left-l.left,height:i.height,width:i.width}},T=function(t,e){return t?A(t):function(t){var e=O(t);return e?A(e):{x:0,y:0}}(e)};var E="fit",j="flip",R="none",I=function(t,e,r){var o=0;return t+e>r&&(o=r-(t+e)),t<0&&(o=-t),o},B=function(t){var e=t.offset,r=t.size,o=t.anchorSize,i=t.viewPortSize,n=t.anchorAlignPoint,s=t.elementAlignPoint,a=0,l=2*t.margin;if(s!==n&&!(s===f||s===d)&&!(n===f||n===d)){var p=n===g||n===v;e<0&&p?e+(a=r+o+l)+r>i&&(a=0):e>=0&&!p&&(e+r>i&&(a+=-(o+r+l)),e+a<0&&(a=0))}return a},L=function(t){for(var e=[],r=t.parentNode.firstElementChild;r;)r!==t&&e.push(r),r=r.nextElementSibling;return e},D=function(t,e){for(var r,o,i=S(t),n=e;n&&(r=L(n),!(o=i.reduce((function(t,e){return t.concat(r.filter((function(t){return t===e})))}),[])[0]));)n=n.parentElement;return o};var z,V,N,H,U=(z=function(t){if(!F())return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var r=e.createElement("div");r.style.transform="matrix(10, 0, 0, 10, 0, 0)",r.innerHTML='<div style="position: fixed; top: 10px;">child</div>',e.body.appendChild(r);var o=10!==r.children[0].getBoundingClientRect().top;return e.body.removeChild(r),o},N=!1,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return N||(V=z.apply(void 0,t),N=!0),V}),F=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},G={eitherRect:function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},scaleRect:function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t},removeStackingOffset:function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},hasRelativeStackingContext:U,canUseDOM:F},W=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],K=function(){return G.canUseDOM()?window:null},X=/auto|scroll/,Y=function(t){return function(t){return""+t.style.overflow+t.style.overflowX+t.style.overflowY}(t)||function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY}(t)},q=function(t){if(!t||!G.hasRelativeStackingContext())return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},Z=function(){return G.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},Q={addOffset:function(t,e){return{left:t.left+e.left,top:t.top+e.top}},addScroll:function(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}},align:function(t){var e=t.anchorRect,r=t.anchorAlign,o=t.elementRect,i=t.elementAlign,n=t.margin;void 0===n&&(n={});var s=r.horizontal,a=r.vertical,l=i.horizontal,p=i.vertical,c=n.horizontal||0,h=n.vertical||0,v=e.top,g=e.left;return a===u&&(v+=e.height),a!==f&&a!==d||(v+=Math.round(e.height/2)),p===u&&(v-=o.height,h*=-1),p!==f&&p!==d||(v-=Math.round(o.height/2),h*=-1),s===y&&(g+=e.width),s!==f&&s!==d||(g+=Math.round(e.width/2)),l===y&&(g-=o.width,c*=-1),l!==f&&l!==d||(g-=Math.round(o.width/2),c*=-1),{top:v+h,left:g+c}},boundingOffset:function(t){if(!t.getBoundingClientRect){var e=C(t);return{bottom:e.height,left:0,right:e.width,top:0}}var r=t.getBoundingClientRect();return{bottom:r.bottom,left:r.left,right:r.right,top:r.top}},getFontStyles:function(t){var e=K();if(!e||!t)return[];var r=e.getComputedStyle(t);return W.map((function(t){return{key:t,value:r[t]}}))},getWindow:K,hasOffsetParent:function(t){return!!t&&Boolean(t.offsetParent)},offset:function(t){return t?k(t):null},offsetAtPoint:function(t,e){if(!t)return null;var r=t.style,o=r.left,i=r.top,n=r.transition;t.style.transition="none",t.style.left=e.left+"px",t.style.top=e.top+"px";var s=k(t);return t.style.left=o,t.style.top=i,t.offsetHeight,t.style.transition=n,s},position:function(t,e,r){return t&&e?function(t,e,r){void 0===r&&(r=1);var o=e?O(e):null,i=M(t,o),n=i.top,s=i.left,a=i.height,l=i.width,p=T(o,t),c=p.x,h=p.y,u=t.ownerDocument,f=o===u.body||o===u.documentElement?1:r;return{top:n+h*f,left:s+c*f,height:a,width:l}}(t,e,r||1):null},removeScroll:function(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}},restrictToView:function(t){var e=t.anchorRect,r=t.anchorAlign,o=t.elementRect,i=t.elementAlign,n=t.collisions,s=t.viewPort,a=t.margin;void 0===a&&(a={});var l=o.top,p=o.left,c=o.height,h=o.width,u=s.height,f=s.width,d=a.horizontal||0,v=a.vertical||0,y=0,g=0,m=n.vertical===E,_=n.horizontal===E,b=n.vertical===j,x=n.horizontal===j;m&&(g+=I(l,c,u)),_&&(y+=I(p,h,f)),b&&(g+=B({margin:v,offset:l,size:c,anchorSize:e.height,viewPortSize:u,anchorAlignPoint:r.vertical,elementAlignPoint:i.vertical})),x&&(y+=B({margin:d,offset:p,size:h,anchorSize:e.width,viewPortSize:f,anchorAlignPoint:r.horizontal,elementAlignPoint:i.horizontal}));var w=b&&0!==g,C=x&&0!==y,O=m&&0!==g,k=_&&0!==y;return{flipped:C||w,fitted:O||k,flip:{horizontal:C,vertical:w},fit:{horizontal:k,vertical:O},offset:{left:y,top:g}}},scrollPosition:P,scrollableParents:function(t){var e=[];if(!G.canUseDOM())return e;for(var r=t.parentElement;r;)(X.test(Y(r))||r.hasAttribute("data-scrollable"))&&e.push(r),r=r.parentElement;return e.push(window),e},getRelativeContextElement:q,stackingElementOffset:function(t){var e=q(t);return e?k(e):null},stackingElementScroll:function(t){var e=q(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(t){var e=q(t);return e?{height:e.scrollHeight,width:e.scrollWidth}:null},useRelativePosition:function(t){return Boolean(q(t))},windowViewPort:C,zoomLevel:Z,isZoomed:function(){return Z()>1},zIndex:function(t,e){if(!t||!G.canUseDOM())return null;var r=D(t,e);if(!r)return null;var o=[t].concat(S(t,r)).reduce((function(t,e){var r=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(r,10);return o>t?o:t}),0);return o?o+1:null}},$=function(t,e){return t?{x:0,y:0}:Q.scrollPosition(e)},J=function(t){var e=t.anchor,r=t.element,o=t.anchorAlign,i=t.elementAlign,n=t.margin,s=t.offset,a=t.positionMode,l=t.scale||1,p="fixed"===a||!Q.hasOffsetParent(r)?function(t,e,r,o){var i=$(t,e),n=G.eitherRect(Q.offset(t),r),s=2*o,a=Q.stackingElementScroll(e);1!==o&&a&&(a.x/=s,a.y/=s);var l=Q.stackingElementOffset(e);return 1!==o&&l&&(l.left/=s,l.top/=s),Q.removeScroll(Q.addScroll(G.removeStackingOffset(G.scaleRect(n,o),l),a),i)}(e,r,s,l):function(t,e,r,o){var i=G.eitherRect(Q.position(t,e,o),r);return G.scaleRect(i,o)}(e,r,s,l),c=G.scaleRect(Q.offset(r),l);return Q.align({anchorAlign:o,anchorRect:p,elementAlign:i,elementRect:c,margin:n})},tt=function(t){var e=t.anchor,r=t.currentLocation,o=t.element,i=t.anchorAlign,n=t.elementAlign,s=t.collisions,a=t.margin,l=t.scale||1,p=Q.offsetAtPoint(o,r),c=G.scaleRect(p,l),h=G.scaleRect(Q.offset(e),l),u=G.eitherRect(h,r),f=t.viewPort||Q.windowViewPort(o);f.width=f.width/l,f.height=f.height/l;var d=Q.restrictToView({anchorAlign:i,anchorRect:u,collisions:s,elementAlign:n,elementRect:c,margin:a,viewPort:f}),v=Q.addOffset(r,d.offset);return{flip:d.flip,flipped:d.flipped,offset:v}},et={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1647336044,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},rt=(H=function(t,e){return(H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}H(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),ot=function(){return(ot=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function it(t,e){if(t===e)return!0;if(!!t!=!!e)return!1;var r=Object.getOwnPropertyNames(t),o=Object.getOwnPropertyNames(e);if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++){var n=r[i];if(t[n]!==e[n])return!1}return!0}var nt,st={left:-1e3,top:0};!function(t){t.hiding="hiding",t.hidden="hidden",t.showing="showing",t.shown="shown",t.reposition="reposition"}(nt||(nt={}));var at=function(t){function e(e){var r=t.call(this,e)||this;return r.state={current:nt.hidden,previous:nt.hidden,props:{}},r._popup=null,r.show=function(t){r.setPosition(t),r.animate(t.firstChild,"enter",r.onOpened),r.setState({current:nt.shown,previous:r.state.current})},r.setPosition=function(t){var e=r.props,o=e.anchorAlign,i=e.popupAlign,n=e.collision,s=e.offset,a=e.anchor,l=e.margin,p=e.scale,c=e.positionMode,h=J({anchor:a,anchorAlign:o,element:t,elementAlign:i,offset:s,margin:l,positionMode:c,scale:p}),u=tt({anchor:a,anchorAlign:o,element:t,elementAlign:i,collisions:n,currentLocation:h,margin:r.props.margin});if(t.style.top=u.offset.top+"px",t.style.left=u.offset.left+"px",r._collisions={fit:u.fit,fitted:u.fitted,flip:u.flip,flipped:u.flipped},r.props.onPosition){var f={target:r,flipped:u.flipped,fitted:u.fitted};r.props.onPosition.call(void 0,f)}},r.onOpened=function(){var t=r._popup;t&&(r.props.show&&t.classList.add("k-animation-container-shown"),r.attachRepositionHandlers(t),r.props.onOpen&&r.props.onOpen.call(void 0,{target:r}))},r.animate=function(t,e,o){if(r.props.popupAlign){var i,n=r.props.popupAlign,l=n.horizontal,p=n.vertical;i="left"===l&&"center"===p?"right":"right"===l&&"center"===p?"left":"top"===p?"down":"up";r._collisions&&r._collisions.flipped&&(i={down:"up",up:"down",left:"right",right:"left"}[i]),function(t,e,r,o,i){if(0===r)return i();var n="k-slide-"+e+"-"+o,l=n+"-active",p=function(e){e.target===t&&(t.removeEventListener("transitionend",p),s(t),i())};t.addEventListener("transitionend",p);var c=t.ownerDocument;if(c){var h=c.defaultView;if(h){var u=function(){s(t),t.classList.add(n),h.requestAnimationFrame((function(){t.style.transitionDuration=r+"ms",t.classList.add(l)}))};a?h.requestAnimationFrame(u):u()}}}(t,i,r.animationDuration[e],e,o)}},r.onClosing=function(t){r.props.show||t.classList.remove("k-animation-container-shown"),r.detachRepositionHandlers()},r.onClosed=function(){r.state.current===nt.hiding&&r.state.previous===nt.shown&&r.setState({current:nt.hidden,previous:r.state.current}),r.props.onClose&&r.props.onClose.call(void 0,{target:r})},r.getCurrentZIndex=function(){return r.context?r.context+1:100},Object(l.a)(et),r.reposition=function(t,e,r){var o,i,n,s;void 0===r&&(r={});var a=0;r=r||{};var l=function(){a=!1===r.leading?0:(new Date).getTime(),o=null,s=t.apply(i,n),o||(i=n=null)};return function(){var p=(new Date).getTime();a||!1!==r.leading||(a=p);var c=e-(p-a);return i=this,n=arguments,c<=0||c>e?(o&&(clearTimeout(o),o=null),a=p,s=t.apply(i,n),o||(i=n=null)):o||!1===r.trailing||(o=window.setTimeout(l,c)),s}}(r.reposition.bind(r),1e3/60),r}return rt(e,t),e.getDerivedStateFromProps=function(t,e){var r=t.show,o=t.anchor,i=t.anchorAlign,n=t.appendTo,s=t.collision,a=t.popupAlign,l=t.className,p=t.popupClass,c=t.style,h=t.offset,u=t.contentKey,f=ot({},e,{props:{show:r,anchor:o,anchorAlign:i,appendTo:n,collision:s,popupAlign:a,className:l,popupClass:p,style:c,offset:h,contentKey:u}});return t.show?e.current===nt.hidden||e.current===nt.hiding?ot({},f,{current:nt.showing,previous:e.current}):e.current===nt.showing?ot({},f,{current:nt.shown,previous:e.current}):e.current!==nt.shown||it(h,e.props.offset)&&it(i,e.props.anchorAlign)&&it(n,e.props.appendTo)&&it(s,e.props.collision)&&it(a,e.props.popupAlign)&&it(c,e.props.style)&&o===e.props.anchor&&p===e.props.popupClass&&l===e.props.className?f:ot({},f,{current:nt.reposition,previous:e.current}):e.current===nt.hiding||e.current===nt.hidden?ot({},f,{current:nt.hidden,previous:e.current}):ot({},f,{current:nt.hiding,previous:e.current})},e.prototype.componentDidUpdate=function(t){this.state.current===nt.showing&&this._popup?this.show(this._popup):this.state.current===nt.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===nt.reposition&&this.state.previous===nt.shown?this.setState({current:nt.shown,previous:this.state.current}):this.state.current===nt.shown&&t.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},e.prototype.componentDidMount=function(){this.state.current===nt.showing&&this._popup&&this.show(this._popup)},e.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},e.prototype.render=function(){var t=this,e=this.props,r=e.children,n=e.className,s=e.popupClass,a=e.show,l=e.id,u=e.positionMode,f=this.props.appendTo?this.props.appendTo:p.a?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===nt.reposition&&this.state.previous===nt.shown&&this._popup&&this.setPosition(this._popup);var d=Object.assign({},{position:u,top:0,left:-1e4},this.props.style||{}),v=this.state.current===nt.hiding;if((a||v)&&f){var y=this.getCurrentZIndex(),g=o.createElement(c.a.Provider,{value:y},o.createElement("div",{className:Object(h.a)("k-animation-container","k-animation-container-relative",n),id:l,ref:function(e){return t._popup=e},style:ot({zIndex:y},d)},o.createElement("div",{className:Object(h.a)("k-popup",s,"k-child-animation-container"),style:{transitionDelay:"0ms"}},r)));return null!==this.props.appendTo?i.createPortal(g,f):g}return null},Object.defineProperty(e.prototype,"animationDuration",{get:function(){var t=this.props.animate,e=0,r=0;return t&&(!0===t?e=r=300:(e=t.openDuration||0,r=t.closeDuration||0)),{enter:e,exit:r}},enumerable:!0,configurable:!0}),e.prototype.attachRepositionHandlers=function(t){var e=this;this.detachRepositionHandlers(),this._scrollableParents=Q.scrollableParents(this.props.anchor||t),this._scrollableParents.map((function(t){return t.addEventListener("scroll",e.reposition)})),window.addEventListener("resize",this.reposition)},e.prototype.detachRepositionHandlers=function(){var t=this;this._scrollableParents&&(this._scrollableParents.map((function(e){return e.removeEventListener("scroll",t.reposition)})),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},e.prototype.reposition=function(){this.setState({current:nt.reposition,previous:this.state.current})},e.propTypes={anchor:function(t){var e=t.anchor;return e&&"number"!=typeof e.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(t){var e=t.appendTo;return e&&"number"!=typeof e.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:n.oneOfType([n.string,n.arrayOf(n.string),n.object]),id:n.string,popupClass:n.oneOfType([n.string,n.arrayOf(n.string),n.object]),collision:n.shape({horizontal:n.oneOf([E,j,R]),vertical:n.oneOf([E,j,R])}),anchorAlign:n.shape({horizontal:n.oneOf([v,f,y]),vertical:n.oneOf([g,f,u])}),popupAlign:n.shape({horizontal:n.oneOf([v,f,y]),vertical:n.oneOf([g,f,u])}),offset:n.shape({left:n.number,top:n.number}),children:n.oneOfType([n.element,n.node]),show:n.bool,animate:n.oneOfType([n.bool,n.shape({openDuration:n.number,closeDuration:n.number})]),margin:n.shape({horizontal:n.number,vertical:n.number}),positionMode:n.oneOf(["fixed","absolute"]),scale:n.number,style:n.object,onClose:n.func,onPosition:n.func,onOpen:n.func},e.defaultProps={collision:{horizontal:E,vertical:j},anchorAlign:{horizontal:v,vertical:u},popupAlign:{horizontal:v,vertical:g},offset:st,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},e.contextType=c.a,e.displayName="PopupComponent",e}(o.Component),lt=function(){return(lt=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},pt=o.createContext((function(t){return t})),ct=o.forwardRef((function(t,e){var r=o.useContext(pt).call(void 0,t);return o.createElement(at,lt({ref:e},r))}));ct.displayName="Popup"}])}));
|