@progress/kendo-react-charts 5.14.2-dev.202306201210 → 5.14.2-dev.202306271353
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("react"),require("prop-types"),require("@progress/kendo-react-intl"),require("@progress/kendo-drawing"),require("@progress/kendo-licensing"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-react-intl","@progress/kendo-drawing","@progress/kendo-licensing","react-dom"],e):"object"==typeof exports?exports.KendoReactCharts=e(require("react"),require("prop-types"),require("@progress/kendo-react-intl"),require("@progress/kendo-drawing"),require("@progress/kendo-licensing"),require("react-dom")):t.KendoReactCharts=e(t.React,t.PropTypes,t.KendoReactIntl,t.KendoDrawing,t.KendoLicensing,t.ReactDOM)}(self,(function(t,e,o,r,i,n){return(()=>{"use strict";var a={2795:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__rest||function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseChart=void 0;var a=o(3899),s=o(189),l=o(499),p=o(3981),c=o(5410),h=o(9075),u=o(3758),f=o(2368),d=o(290),v=o(8803),y=o(3113),g=o(6600),m=o(9075);o(6410);var b=o(2461),_=o(9373),x=o(5201),w=o(5410),C=o(7363),O=function(t){function e(e){var o=t.call(this,e)||this;return o.chartInstance=null,o.surface=null,o._element=null,o.optionsStore={},o.optionsUnsubscriber=Function.prototype,o.themeStore={},o.themeUnsubscriber=Function.prototype,o.observersStore={},o.suppressTransitions=!1,o.onRender=function(t){null!==o.chartInstance&&(o.surface=t.sender.surface,o.trigger("render",t))},o.onLegendItemClick=function(t){if(null!==o.chartInstance)if(o.props.onLegendItemClick)o.trigger("legendItemClick",t);else{var e=o.optionsStore.getState().series;if(!e)return;var r={},i=t.seriesIndex,n=t.pointIndex,a=e[i];if(void 0===n)r=Object.assign({},a,{visible:(0,m.toggle)(a.visible)});else{var s=a.pointVisibility=a.pointVisibility||[];s[n]=(0,m.toggle)(s[n]),r=Object.assign({},a)}o.optionsStore.dispatch({chartCollectionIdxKey:"series_".concat(i),payload:r}),o.suppressTransitions=!0}},o.onWindowResize=function(){null!==o.chartInstance&&o.chartInstance.resize()},o.onChartMouseLeave=function(t){var e=(0,d.toDomEvent)(o,t);o.triggerDomEvent("onMouseLeave",e)?t.preventDefault():null!==o.chartInstance&&o.chartInstance.hideElements()},o.onChildMouseLeave=function(t){var e=t.syntheticEvent;return o.chartInstance&&!(0,h.hasParent)(e.relatedTarget,o.element)&&o.chartInstance.hideElements(),!1},(0,w.validatePackage)(C.packageMetadata),o.optionsStore=(0,y.default)(g.optionsReducer),o.observersStore=(0,y.default)(g.observersReducer),o.childrenObserver=new p.InstanceObserver(o,{onMouseLeave:"onChildMouseLeave"}),o.contextValue={optionsStore:o.optionsStore,observersStore:o.observersStore,childrenObserver:o.childrenObserver},o.themeStore=(0,y.default)(g.themeReducer),o.chartObserver=new p.InstanceObserver(o,{render:"onRender",legendItemClick:"onLegendItemClick"}),o}return i(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){var t,e=(null===(t=this._element)||void 0===t?void 0:t.ownerDocument)||document;(0,v.loadTheme)(this.themeStore,this.instantiateCoreChart.bind(this),e),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,o=e.dir,r=(e.children,n(e,["dir","children"]));if(null!==this.chartInstance){var i=(0,l.provideIntlService)(this),a=this.chartInstance.chartService,s=i.locale!==a._intlService.locale,p=Object.entries(t).filter((function(t){return"dir"!==t[0]&&"children"!==t[0]})).some((function(t){var e=t[0],o=t[1];return!(r.hasOwnProperty(e)&&r[e]===o)}));s&&(this.chartInstance.chartService._intlService=i,this.chartInstance.chartService.format._intlService=i,p||this.chartInstance.noTransitionsRedraw()),p&&this.refresh(),t.dir!==o&&this.chartInstance.setDirection(this.getDirection(o))}},e.prototype.render=function(){var t=this,e=this.props,o=e.style,r=void 0===o?{}:o,i=e.className,n=e.wrapper,s=e.children,l=Object.assign({},r,{position:"relative"}),p=a.createElement(n,{className:i,style:l,key:"chartElement"},a.createElement("div",{onMouseLeave:this.onChartMouseLeave,ref:function(e){return t._element=e},className:"k-chart-surface"},s));return a.createElement(x.ChartContext.Provider,{value:this.contextValue},a.createElement(b.SeriesTooltip,{key:"seriesTooltip"}),a.createElement(_.CrosshairTooltipContainer,{key:"crosshairTooltips"}),p)},e.prototype.getDirection=function(t){return"rtl"===(void 0!==t?t:c.canUseDOM&&window.getComputedStyle(this.element).direction||"ltr")},e.prototype.getChartOptions=function(){var t=this.props,e=t.renderAs,o=t.pannable,r=t.zoomable,i=t.paneDefaults,n=t.panes,a=t.transitions,s=t.seriesColors,l=t.seriesDefaults,p=t.axisDefaults,c=t.deriveOptionsFromParent,h={};return void 0!==e&&(h.renderAs=e),void 0!==o&&(h.pannable=o),void 0!==r&&(h.zoomable=r),void 0!==i&&(h.paneDefaults=i),void 0!==n&&(h.panes=n),void 0!==a&&(h.transitions=a),void 0!==s&&(h.seriesColors=s),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(),o=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=o,this.suppressTransitions=!1)}},e.prototype.instantiateCoreChart=function(){var t=this.props,e=t.dir,o=t.chartConstructor,r=this.getChartOptions();this.chartInstance=new o(this.element,r,this.themeStore.getState(),{rtl:this.getDirection(e),intlService:(0,l.provideIntlService)(this),observer:this.chartObserver,sender:this})},e.prototype.trigger=function(t,e){for(var o=this.props.getTarget(),r=(0,f.create)(t,e,o),i="on"+t.charAt(0).toUpperCase()+t.slice(1),n=this.observersStore.getState(),a=!1,s=0;s<n.length;s++)n[s].trigger(t,e)&&(a=!0);return!1===a&&r&&this.props.hasOwnProperty(i)?(this.props[i].call(void 0,r),r.isDefaultPrevented&&r.isDefaultPrevented()):a},e.prototype.requiresHandlers=function(t){for(var e=0;e<t.length;e++){var o=t[e],r="on"+o.charAt(0).toUpperCase()+o.slice(1);if(this.props.hasOwnProperty(r))return!0}return!1},e.prototype.triggerDomEvent=function(t,e){for(var o=this.observersStore.getState(),r=!1,i=0;i<o.length;i++)o[i].trigger(t,e)&&(r=!0);return r},e.propTypes={dir:s.string,renderAs:s.oneOf(["svg","canvas"])},e.defaultProps={renderAs:"svg"},e}(a.Component);e.BaseChart=O,(0,l.registerForIntl)(O),p.DomEventsBuilder.register(u.DomEventsBuilder)},8613:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)},a=this&&this.__rest||function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o};Object.defineProperty(e,"__esModule",{value:!0}),e.Chart=void 0;var s=o(3899),l=o(2795),p=o(5870),c=o(3981),h=o(5410),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._baseChart=null,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:!1,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return null!==this._baseChart?this._baseChart.surface:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return null!==this._baseChart?this._baseChart.element:null},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=this,e=this.props,o=e.donutCenterRender,r=e.children,i=e.className,u=a(e,["donutCenterRender","children","className"]);return s.createElement(l.BaseChart,n({},u,{ref:function(e){return t._baseChart=e},chartConstructor:c.Chart,getTarget:this.getTarget,wrapper:"div",className:(0,h.classNames)("k-chart k-widget",i)}),r,s.createElement(p.DonutCenter,{render:o}))},e}(s.Component);e.Chart=u},5201:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartContext=void 0;var r=o(3899);e.ChartContext=r.createContext(null),e.ChartContext.displayName="ChartContext"},4890:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Container=void 0;var o=function(t){return t.children};e.Container=o,o.displayName="Container"},5870:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.DonutCenter=void 0;var n=o(3899),a=o(3981),s=o(5201),l=function(t){function e(e,o){var r=t.call(this,e,o)||this;return r.context=null,r.state={donutCenterStyles:null},r.chartObserver=new a.InstanceObserver(r,{render:"onRender"}),o.observersStore.dispatch({type:"add",payload:r.chartObserver}),r}return i(e,t),e.prototype.render=function(){var t=this.props.render,e=this.state.donutCenterStyles,o=null;return t&&e&&(o=n.createElement("div",{className:"k-chart-donut-center",style:e},t())),o},e.prototype.onRender=function(t){var e,o=null===(e=this.context)||void 0===e?void 0:e.optionsStore.getState().series,r=Array.isArray(o)?o[0]:null,i=t.sender._plotArea.charts;if(r&&"donut"===r.type&&0!==i[0].points.length){var n=i[0].points[0].sector,a=n.innerRadius,s=n.center.y-a,l=n.center.x-a,p=2*a;this.setState({donutCenterStyles:{height:p,left:l,top:s,width:p}})}},e.contextType=s.ChartContext,e}(n.Component);e.DonutCenter=l},2170:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)},a=this&&this.__rest||function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o};Object.defineProperty(e,"__esModule",{value:!0}),e.Sparkline=void 0;var s=o(3899),l=o(2795),p=o(3981),c=o(5410),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._baseChart=null,e.deriveOptionsFromParent=function(t){var o=e.props,r=o.type,i=o.data,n=Object.assign({},t,{type:r,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:!1,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return null!==this._baseChart?this._baseChart.surface:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return null!==this._baseChart?this._baseChart.element:null},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=this,e=this.props,o=e.children,r=(e.type,e.className),i=a(e,["children","type","className"]);return s.createElement(l.BaseChart,n({},i,{ref:function(e){return t._baseChart=e},chartConstructor:p.Sparkline,getTarget:this.getTarget,wrapper:"span",deriveOptionsFromParent:this.deriveOptionsFromParent,className:(0,c.classNames)("k-sparkline k-widget",r)}),o)},e}(s.Component);e.Sparkline=h},5930:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)},a=this&&this.__rest||function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o};Object.defineProperty(e,"__esModule",{value:!0}),e.StockChart=void 0;var s=o(3899),l=o(2795),p=o(3981),c=o(5410),h={autoBindElements:!0,liveDrag:!1,partialRedraw:!0},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._baseChart=null,e.deriveOptionsFromParent=function(t){var e=Object.assign({},t.navigator||{},h);return Object.assign({},t,{navigator:e})},e.onRefresh=function(t,o,r){e.props.partialRedraw?(r.applyOptions(t),r.bindCategories(),r.navigator.redrawSlaves()):r.setOptions(t,o)},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:!1,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return null!==this._baseChart?this._baseChart.surface:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return null!==this._baseChart?this._baseChart.element:null},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=this,e=this.props,o=e.children,r=e.className,i=a(e,["children","className"]);return s.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:(0,c.classNames)("k-stockchart k-widget",r)}),o)},e}(s.Component);e.StockChart=u},1751:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},4449:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},6894:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ZoomStartEvent=e.ZoomEvent=e.ZoomEndEvent=e.SeriesHoverEvent=e.SeriesClickEvent=e.SelectStartEvent=e.SelectEvent=e.SelectEndEvent=e.RenderEvent=e.PlotAreaHoverEvent=e.PlotAreaClickEvent=e.NoteHoverEvent=e.NoteClickEvent=e.NavigatorFilterEvent=e.LegendItemHoverEvent=e.LegendItemClickEvent=e.DragStartEvent=e.DragEvent=e.DragEndEvent=e.AxisLabelClickEvent=void 0;var r=o(5161);Object.defineProperty(e,"AxisLabelClickEvent",{enumerable:!0,get:function(){return r.AxisLabelClickEvent}});var i=o(3803);Object.defineProperty(e,"DragEndEvent",{enumerable:!0,get:function(){return i.DragEndEvent}});var n=o(3251);Object.defineProperty(e,"DragEvent",{enumerable:!0,get:function(){return n.DragEvent}});var a=o(881);Object.defineProperty(e,"DragStartEvent",{enumerable:!0,get:function(){return a.DragStartEvent}});var s=o(8959);Object.defineProperty(e,"LegendItemClickEvent",{enumerable:!0,get:function(){return s.LegendItemClickEvent}});var l=o(6099);Object.defineProperty(e,"LegendItemHoverEvent",{enumerable:!0,get:function(){return l.LegendItemHoverEvent}});var p=o(8922);Object.defineProperty(e,"NavigatorFilterEvent",{enumerable:!0,get:function(){return p.NavigatorFilterEvent}});var c=o(8888);Object.defineProperty(e,"NoteClickEvent",{enumerable:!0,get:function(){return c.NoteClickEvent}});var h=o(8911);Object.defineProperty(e,"NoteHoverEvent",{enumerable:!0,get:function(){return h.NoteHoverEvent}});var u=o(4761);Object.defineProperty(e,"PlotAreaClickEvent",{enumerable:!0,get:function(){return u.PlotAreaClickEvent}});var f=o(4009);Object.defineProperty(e,"PlotAreaHoverEvent",{enumerable:!0,get:function(){return f.PlotAreaHoverEvent}});var d=o(6765);Object.defineProperty(e,"RenderEvent",{enumerable:!0,get:function(){return d.RenderEvent}});var v=o(2499);Object.defineProperty(e,"SelectEndEvent",{enumerable:!0,get:function(){return v.SelectEndEvent}});var y=o(2154);Object.defineProperty(e,"SelectEvent",{enumerable:!0,get:function(){return y.SelectEvent}});var g=o(3547);Object.defineProperty(e,"SelectStartEvent",{enumerable:!0,get:function(){return g.SelectStartEvent}});var m=o(1604);Object.defineProperty(e,"SeriesClickEvent",{enumerable:!0,get:function(){return m.SeriesClickEvent}});var b=o(5535);Object.defineProperty(e,"SeriesHoverEvent",{enumerable:!0,get:function(){return b.SeriesHoverEvent}});var _=o(2706);Object.defineProperty(e,"ZoomEndEvent",{enumerable:!0,get:function(){return _.ZoomEndEvent}});var x=o(8526);Object.defineProperty(e,"ZoomEvent",{enumerable:!0,get:function(){return x.ZoomEvent}});var w=o(8476);Object.defineProperty(e,"ZoomStartEvent",{enumerable:!0,get:function(){return w.ZoomStartEvent}})},5487:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WeekStartDay=void 0;var r=o(3203);Object.defineProperty(e,"WeekStartDay",{enumerable:!0,get:function(){return r.WeekStartDay}})},4011:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartAxisDefaults=void 0;var i=o(3899),n=o(8096);e.ChartAxisDefaults=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"axisDefaults"}))}},6688:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxis=void 0;var i=o(3899),n=o(1958),a=o(7889),s=o(9075),l=function(t){return i.createElement(n.CollectionConfigurationComponent,r({},t,{_chartKey:"categoryAxis"}))};e.ChartCategoryAxis=l,l.propTypes={children:function(t,e,o){return(0,s.validateChildren)(t,e,o,a.ChartCategoryAxisItem)}}},7889:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxisItem=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t))};e.ChartCategoryAxisItem=a,a.displayName="ChartCategoryAxisItem"},8916:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartArea=void 0;var i=o(3899),n=o(8096);e.ChartArea=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"chartArea"}))}},4349:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartLegend=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"legend"}))};e.ChartLegend=a,a.defaultProps={visible:!0}},4603:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigator=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"navigator"}))};e.ChartNavigator=a,a.defaultProps={visible:!0,position:"bottom"}},4209:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartPane=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t))};e.ChartPane=a,a.displayName="ChartPane"},9327:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartPaneDefaults=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"paneDefaults"}))};e.ChartPaneDefaults=a,a.displayName="ChartPaneDefaults"},3100:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartPanes=void 0;var i=o(3899),n=o(1958),a=o(4209),s=o(9075),l=function(t){return i.createElement(n.CollectionConfigurationComponent,r({},t,{_chartKey:"panes"}))};e.ChartPanes=l,l.propTypes={children:function(t,e,o){return(0,s.validateChildren)(t,e,o,a.ChartPane)}}},6007:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartPlotArea=void 0;var i=o(3899),n=o(8096);e.ChartPlotArea=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"plotArea"}))}},8689:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeries=void 0;var i=o(3899),n=o(1958),a=o(5083),s=o(9075),l=function(t){return i.createElement(n.CollectionConfigurationComponent,r({},t,{_chartKey:"series"}))};e.ChartSeries=l,l.propTypes={children:function(t,e,o){return(0,s.validateChildren)(t,e,o,a.ChartSeriesItem)}}},9448:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesDefaults=void 0;var i=o(3899),n=o(8096);e.ChartSeriesDefaults=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"seriesDefaults"}))}},5083:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesItem=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t))};e.ChartSeriesItem=a,a.displayName="ChartSeriesItem"},9717:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSubtitle=void 0;var i=o(3899),n=o(8096);e.ChartSubtitle=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"subtitle"}))}},2352:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartTitle=void 0;var i=o(3899),n=o(8096);e.ChartTitle=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))}},4171:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartTooltip=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"tooltip"}))};e.ChartTooltip=a,a.defaultProps={visible:!0}},2787:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartValueAxis=void 0;var i=o(3899),n=o(1958),a=o(3545),s=o(9075),l=function(t){return i.createElement(n.CollectionConfigurationComponent,r({},t,{_chartKey:"valueAxis"}))};e.ChartValueAxis=l,l.propTypes={children:function(t,e,o){return(0,s.validateChildren)(t,e,o,a.ChartValueAxisItem)}}},3545:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartValueAxisItem=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t))};e.ChartValueAxisItem=a,a.displayName="ChartValueAxisItem"},7819:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartXAxis=void 0;var i=o(3899),n=o(1958),a=o(7250),s=o(9075),l=function(t){return i.createElement(n.CollectionConfigurationComponent,r({},t,{_chartKey:"xAxis"}))};e.ChartXAxis=l,l.prototype={children:function(t,e,o){return(0,s.validateChildren)(t,e,o,a.ChartXAxisItem)}}},7250:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartXAxisItem=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t))};e.ChartXAxisItem=a,a.displayName="ChartXAxisItem"},8791:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartYAxis=void 0;var i=o(3899),n=o(1958),a=o(5876),s=o(9075),l=function(t){return i.createElement(n.CollectionConfigurationComponent,r({},t,{_chartKey:"yAxis"}))};e.ChartYAxis=l,l.propTypes={children:function(t,e,o){return(0,s.validateChildren)(t,e,o,a.ChartYAxisItem)}}},5876:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartYAxisItem=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t))};e.ChartYAxisItem=a,a.displayName="ChartYAxisItem"},2797:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartZoomable=void 0;var i=o(3899),n=o(8096);e.ChartZoomable=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"zoomable"}))}},7239:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartAxisDefaultsCrosshair=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"crosshair"}))};e.ChartAxisDefaultsCrosshair=a,a.defaultProps={visible:!0},a.displayName="ChartAxisDefaultsCrosshair"},6609:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartAxisDefaultsCrosshairTooltip=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"tooltip"}))};e.ChartAxisDefaultsCrosshairTooltip=a,a.defaultProps={visible:!0},a.displayName="ChartAxisDefaultsCrosshairTooltip"},6406:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartAxisDefaultsLabels=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"labels"}))};e.ChartAxisDefaultsLabels=a,a.displayName="ChartAxisDefaultsLabels"},8129:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartAxisDefaultsTitle=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))};e.ChartAxisDefaultsTitle=a,a.displayName="ChartAxisDefaultsTitle"},7725:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartAxisDefaultsCrosshairTooltip=e.ChartAxisDefaultsCrosshair=e.ChartAxisDefaultsLabels=e.ChartAxisDefaultsTitle=void 0;var r=o(8129);Object.defineProperty(e,"ChartAxisDefaultsTitle",{enumerable:!0,get:function(){return r.ChartAxisDefaultsTitle}});var i=o(6406);Object.defineProperty(e,"ChartAxisDefaultsLabels",{enumerable:!0,get:function(){return i.ChartAxisDefaultsLabels}});var n=o(7239);Object.defineProperty(e,"ChartAxisDefaultsCrosshair",{enumerable:!0,get:function(){return n.ChartAxisDefaultsCrosshair}});var a=o(6609);Object.defineProperty(e,"ChartAxisDefaultsCrosshairTooltip",{enumerable:!0,get:function(){return a.ChartAxisDefaultsCrosshairTooltip}})},1958:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.CollectionConfigurationComponent=void 0;var a=o(3899),s=o(5201),l=function(t){function e(e,o){var r=t.call(this,e,o)||this;return r.optionsStore=o.optionsStore,r}return i(e,t),e.prototype.renderChildren=function(t,e){var o=t.props.children,r=this.props,i=r._chartKey,s=r._parentStore,l=n(n({},t.props),{_chartCollectionIdxKey:"".concat(i,"_").concat(e),_parentStore:s});return a.cloneElement(t,l,o)},e.prototype.render=function(){var t=this,e=this.props,o=e._chartKey,r=e._parentStore,i=e.children;return(r||this.optionsStore).dispatch({chartKey:o,payload:[]}),a.Children.map(i,(function(e,o){return a.isValidElement(e)?t.renderChildren(e,o):e}))},e.contextType=s.ChartContext,e}(a.Component);e.CollectionConfigurationComponent=l},8096:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)},a=this&&this.__rest||function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o};Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationComponent=void 0;var s=o(3899),l=o(3113),p=o(6600),c=o(5201),h=function(t){function e(e,o){var r=t.call(this,e,o)||this;return r.optionsStore=o.optionsStore,r.childStore=(0,l.default)(p.optionsReducer),r}return i(e,t),e.prototype.render=function(){var t=this,e=this.props.children;return void 0!==e?s.Children.map(e,(function(e){return s.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,o=t._chartCollectionIdxKey,r=t._parentStore,i=(t.children,a(t,["_chartKey","_chartCollectionIdxKey","_parentStore","children"]));(r||this.optionsStore).dispatch({chartKey:e,chartCollectionIdxKey:o,payload:Object.assign({},i,this.childStore.getState())})},e.prototype.renderChildren=function(t){var e=t.props.children,o=n(n({},t.props),{_parentStore:this.childStore});return s.cloneElement(t,o,e)},e.contextType=c.ChartContext,e}(s.Component);e.ConfigurationComponent=h},6041:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxisCrosshair=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"crosshair"}))};e.ChartCategoryAxisCrosshair=a,a.defaultProps={visible:!0}},5460:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxisCrosshairTooltip=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"tooltip"}))};e.ChartCategoryAxisCrosshairTooltip=a,a.defaultProps={visible:!0}},8746:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxisLabels=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"labels"}))};e.ChartCategoryAxisLabels=a,a.defaultProps={visible:!0}},5021:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxisNotes=void 0;var i=o(3899),n=o(8096);e.ChartCategoryAxisNotes=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"notes"}))}},588:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxisNotesIcon=void 0;var i=o(3899),n=o(8096);e.ChartCategoryAxisNotesIcon=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"icon"}))}},80:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxisNotesLabel=void 0;var i=o(3899),n=o(8096);e.ChartCategoryAxisNotesLabel=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"label"}))}},4894:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxisRangeLabels=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"rangeLabels"}))};e.ChartCategoryAxisRangeLabels=a,a.defaultProps={visible:!0}},5150:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxisTitle=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))};e.ChartCategoryAxisTitle=a,a.displayName="ChartCategoryAxisTitle"},666:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxisRangeLabels=e.ChartCategoryAxisNotesLabel=e.ChartCategoryAxisNotesIcon=e.ChartCategoryAxisNotes=e.ChartCategoryAxisLabels=e.ChartCategoryAxisTitle=e.ChartCategoryAxisCrosshairTooltip=e.ChartCategoryAxisCrosshair=void 0;var r=o(6041);Object.defineProperty(e,"ChartCategoryAxisCrosshair",{enumerable:!0,get:function(){return r.ChartCategoryAxisCrosshair}});var i=o(5460);Object.defineProperty(e,"ChartCategoryAxisCrosshairTooltip",{enumerable:!0,get:function(){return i.ChartCategoryAxisCrosshairTooltip}});var n=o(5150);Object.defineProperty(e,"ChartCategoryAxisTitle",{enumerable:!0,get:function(){return n.ChartCategoryAxisTitle}});var a=o(8746);Object.defineProperty(e,"ChartCategoryAxisLabels",{enumerable:!0,get:function(){return a.ChartCategoryAxisLabels}});var s=o(5021);Object.defineProperty(e,"ChartCategoryAxisNotes",{enumerable:!0,get:function(){return s.ChartCategoryAxisNotes}});var l=o(588);Object.defineProperty(e,"ChartCategoryAxisNotesIcon",{enumerable:!0,get:function(){return l.ChartCategoryAxisNotesIcon}});var p=o(80);Object.defineProperty(e,"ChartCategoryAxisNotesLabel",{enumerable:!0,get:function(){return p.ChartCategoryAxisNotesLabel}});var c=o(4894);Object.defineProperty(e,"ChartCategoryAxisRangeLabels",{enumerable:!0,get:function(){return c.ChartCategoryAxisRangeLabels}})},158:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartLegendInactiveItems=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"inactiveItems"}))};e.ChartLegendInactiveItems=a,a.displayName="ChartLegendInactiveItems"},6212:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartLegendItem=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"item"}))};e.ChartLegendItem=a,a.displayName="ChartLegendItem"},4109:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartLegendTitle=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))};e.ChartLegendTitle=a,a.displayName="ChartLegendTitle"},8537:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartLegendInactiveItems=e.ChartLegendTitle=e.ChartLegendItem=void 0;var r=o(6212);Object.defineProperty(e,"ChartLegendItem",{enumerable:!0,get:function(){return r.ChartLegendItem}});var i=o(4109);Object.defineProperty(e,"ChartLegendTitle",{enumerable:!0,get:function(){return i.ChartLegendTitle}});var n=o(158);Object.defineProperty(e,"ChartLegendInactiveItems",{enumerable:!0,get:function(){return n.ChartLegendInactiveItems}})},5388:function(t,e,o){var r=this&&this.__createBinding||(Object.create?function(t,e,o,r){void 0===r&&(r=o);var i=Object.getOwnPropertyDescriptor(e,o);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[o]}}),Object.defineProperty(t,r,i)}:function(t,e,o,r){void 0===r&&(r=o),t[r]=e[o]}),i=this&&this.__exportStar||function(t,e){for(var o in t)"default"===o||Object.prototype.hasOwnProperty.call(e,o)||r(e,t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartZoomable=e.ChartYAxisItem=e.ChartYAxis=e.ChartXAxisItem=e.ChartXAxis=e.ChartValueAxisItem=e.ChartValueAxis=e.ChartTooltip=e.ChartTitle=e.ChartSubtitle=e.ChartSeriesItem=e.ChartSeriesDefaults=e.ChartSeries=e.ChartPlotArea=e.ChartPanes=e.ChartPaneDefaults=e.ChartPane=e.ChartNavigator=e.ChartLegend=e.ChartCategoryAxisItem=e.ChartCategoryAxis=e.ChartAxisDefaults=e.ChartArea=void 0;var n=o(8916);Object.defineProperty(e,"ChartArea",{enumerable:!0,get:function(){return n.ChartArea}});var a=o(4011);Object.defineProperty(e,"ChartAxisDefaults",{enumerable:!0,get:function(){return a.ChartAxisDefaults}});var s=o(6688);Object.defineProperty(e,"ChartCategoryAxis",{enumerable:!0,get:function(){return s.ChartCategoryAxis}});var l=o(7889);Object.defineProperty(e,"ChartCategoryAxisItem",{enumerable:!0,get:function(){return l.ChartCategoryAxisItem}});var p=o(4349);Object.defineProperty(e,"ChartLegend",{enumerable:!0,get:function(){return p.ChartLegend}});var c=o(4603);Object.defineProperty(e,"ChartNavigator",{enumerable:!0,get:function(){return c.ChartNavigator}});var h=o(4209);Object.defineProperty(e,"ChartPane",{enumerable:!0,get:function(){return h.ChartPane}});var u=o(9327);Object.defineProperty(e,"ChartPaneDefaults",{enumerable:!0,get:function(){return u.ChartPaneDefaults}});var f=o(3100);Object.defineProperty(e,"ChartPanes",{enumerable:!0,get:function(){return f.ChartPanes}});var d=o(6007);Object.defineProperty(e,"ChartPlotArea",{enumerable:!0,get:function(){return d.ChartPlotArea}});var v=o(8689);Object.defineProperty(e,"ChartSeries",{enumerable:!0,get:function(){return v.ChartSeries}});var y=o(9448);Object.defineProperty(e,"ChartSeriesDefaults",{enumerable:!0,get:function(){return y.ChartSeriesDefaults}});var g=o(5083);Object.defineProperty(e,"ChartSeriesItem",{enumerable:!0,get:function(){return g.ChartSeriesItem}});var m=o(9717);Object.defineProperty(e,"ChartSubtitle",{enumerable:!0,get:function(){return m.ChartSubtitle}});var b=o(2352);Object.defineProperty(e,"ChartTitle",{enumerable:!0,get:function(){return b.ChartTitle}});var _=o(4171);Object.defineProperty(e,"ChartTooltip",{enumerable:!0,get:function(){return _.ChartTooltip}});var x=o(2787);Object.defineProperty(e,"ChartValueAxis",{enumerable:!0,get:function(){return x.ChartValueAxis}});var w=o(3545);Object.defineProperty(e,"ChartValueAxisItem",{enumerable:!0,get:function(){return w.ChartValueAxisItem}});var C=o(7819);Object.defineProperty(e,"ChartXAxis",{enumerable:!0,get:function(){return C.ChartXAxis}});var O=o(7250);Object.defineProperty(e,"ChartXAxisItem",{enumerable:!0,get:function(){return O.ChartXAxisItem}});var S=o(8791);Object.defineProperty(e,"ChartYAxis",{enumerable:!0,get:function(){return S.ChartYAxis}});var P=o(5876);Object.defineProperty(e,"ChartYAxisItem",{enumerable:!0,get:function(){return P.ChartYAxisItem}});var A=o(2797);Object.defineProperty(e,"ChartZoomable",{enumerable:!0,get:function(){return A.ChartZoomable}}),i(o(7725),e),i(o(666),e),i(o(7606),e),i(o(2675),e),i(o(8537),e),i(o(2476),e),i(o(8672),e),i(o(7148),e),i(o(8089),e),i(o(3567),e),i(o(8568),e)},5837:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorCategoryAxis=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"categoryAxis"}))};e.ChartNavigatorCategoryAxis=a,a.displayName="ChartNavigatorCategoryAxis"},6437:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorHint=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorHint=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"hint"}))}},123:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorPane=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"pane"}))};e.ChartNavigatorPane=a,a.displayName="ChartNavigatorPane"},8400:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSelect=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSelect=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"select"}))}},4495:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeries=void 0;var i=o(3899),n=o(1958),a=o(8876),s=o(9075),l=function(t){return i.createElement(n.CollectionConfigurationComponent,r({},t,{_chartKey:"series"}))};e.ChartNavigatorSeries=l,l.propTypes={children:function(t,e,o){return(0,s.validateChildren)(t,e,o,a.ChartNavigatorSeriesItem)}}},8876:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesItem=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t))};e.ChartNavigatorSeriesItem=a,a.displayName="ChartNavigatorSeriesItem"},509:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorCategoryAxisCrosshair=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"crosshair"}))};e.ChartNavigatorCategoryAxisCrosshair=a,a.defaultProps={visible:!0}},9180:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorCategoryAxisCrosshairTooltip=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"tooltip"}))};e.ChartNavigatorCategoryAxisCrosshairTooltip=a,a.defaultProps={visible:!0}},8602:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorCategoryAxisLabels=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"labels"}))};e.ChartNavigatorCategoryAxisLabels=a,a.defaultProps={visible:!0}},3014:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorCategoryAxisNotes=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorCategoryAxisNotes=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"notes"}))}},228:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorCategoryAxisNotesIcon=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorCategoryAxisNotesIcon=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"icon"}))}},9398:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorCategoryAxisNotesLabel=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorCategoryAxisNotesLabel=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"label"}))}},1162:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorCategoryAxisTitle=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))};e.ChartNavigatorCategoryAxisTitle=a,a.displayName="ChartNavigatorCategoryAxisTitle"},2071:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorCategoryAxisNotesLabel=e.ChartNavigatorCategoryAxisNotesIcon=e.ChartNavigatorCategoryAxisNotes=e.ChartNavigatorCategoryAxisLabels=e.ChartNavigatorCategoryAxisTitle=e.ChartNavigatorCategoryAxisCrosshairTooltip=e.ChartNavigatorCategoryAxisCrosshair=void 0;var r=o(509);Object.defineProperty(e,"ChartNavigatorCategoryAxisCrosshair",{enumerable:!0,get:function(){return r.ChartNavigatorCategoryAxisCrosshair}});var i=o(9180);Object.defineProperty(e,"ChartNavigatorCategoryAxisCrosshairTooltip",{enumerable:!0,get:function(){return i.ChartNavigatorCategoryAxisCrosshairTooltip}});var n=o(1162);Object.defineProperty(e,"ChartNavigatorCategoryAxisTitle",{enumerable:!0,get:function(){return n.ChartNavigatorCategoryAxisTitle}});var a=o(8602);Object.defineProperty(e,"ChartNavigatorCategoryAxisLabels",{enumerable:!0,get:function(){return a.ChartNavigatorCategoryAxisLabels}});var s=o(3014);Object.defineProperty(e,"ChartNavigatorCategoryAxisNotes",{enumerable:!0,get:function(){return s.ChartNavigatorCategoryAxisNotes}});var l=o(228);Object.defineProperty(e,"ChartNavigatorCategoryAxisNotesIcon",{enumerable:!0,get:function(){return l.ChartNavigatorCategoryAxisNotesIcon}});var p=o(9398);Object.defineProperty(e,"ChartNavigatorCategoryAxisNotesLabel",{enumerable:!0,get:function(){return p.ChartNavigatorCategoryAxisNotesLabel}})},8568:function(t,e,o){var r=this&&this.__createBinding||(Object.create?function(t,e,o,r){void 0===r&&(r=o);var i=Object.getOwnPropertyDescriptor(e,o);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[o]}}),Object.defineProperty(t,r,i)}:function(t,e,o,r){void 0===r&&(r=o),t[r]=e[o]}),i=this&&this.__exportStar||function(t,e){for(var o in t)"default"===o||Object.prototype.hasOwnProperty.call(e,o)||r(e,t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesItem=e.ChartNavigatorSeries=e.ChartNavigatorSelect=e.ChartNavigatorPane=e.ChartNavigatorHint=e.ChartNavigatorCategoryAxis=void 0;var n=o(5837);Object.defineProperty(e,"ChartNavigatorCategoryAxis",{enumerable:!0,get:function(){return n.ChartNavigatorCategoryAxis}});var a=o(6437);Object.defineProperty(e,"ChartNavigatorHint",{enumerable:!0,get:function(){return a.ChartNavigatorHint}});var s=o(123);Object.defineProperty(e,"ChartNavigatorPane",{enumerable:!0,get:function(){return s.ChartNavigatorPane}});var l=o(8400);Object.defineProperty(e,"ChartNavigatorSelect",{enumerable:!0,get:function(){return l.ChartNavigatorSelect}});var p=o(4495);Object.defineProperty(e,"ChartNavigatorSeries",{enumerable:!0,get:function(){return p.ChartNavigatorSeries}});var c=o(8876);Object.defineProperty(e,"ChartNavigatorSeriesItem",{enumerable:!0,get:function(){return c.ChartNavigatorSeriesItem}}),i(o(2071),e),i(o(8163),e),i(o(9667),e)},5200:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorPaneTitle=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))};e.ChartNavigatorPaneTitle=a,a.displayName="ChartNavigatorPaneTitle"},8163:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorPaneTitle=void 0;var r=o(5200);Object.defineProperty(e,"ChartNavigatorPaneTitle",{enumerable:!0,get:function(){return r.ChartNavigatorPaneTitle}})},5794:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesErrorBars=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesErrorBars=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"errorBars"}))}},1873:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesExtremes=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesExtremes=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"extremes"}))}},2926:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesHighlight=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesHighlight=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"highlight"}))}},9444:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesLabels=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"labels"}))};e.ChartNavigatorSeriesLabels=a,a.defaultProps={visible:!0}},5718:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesLabelsFrom=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesLabelsFrom=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"from"}))}},9975:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesLabelsTo=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesLabelsTo=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"to"}))}},7851:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesMarkers=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesMarkers=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"markers"}))}},4330:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesNotes=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesNotes=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"notes"}))}},3835:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesNotesIcon=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesNotesIcon=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"icon"}))}},1793:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesNotesLabel=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesNotesLabel=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"label"}))}},9908:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesItemOutliers=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesItemOutliers=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"outliers"}))}},9098:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesItemTooltip=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesItemTooltip=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"tooltip"}))}},9667:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesNotesIcon=e.ChartNavigatorSeriesNotesLabel=e.ChartNavigatorSeriesLabelsTo=e.ChartNavigatorSeriesLabelsFrom=e.ChartNavigatorSeriesErrorBars=e.ChartNavigatorSeriesExtremes=e.ChartNavigatorSeriesHighlight=e.ChartNavigatorSeriesLabels=e.ChartNavigatorSeriesMarkers=e.ChartNavigatorSeriesNotes=e.ChartNavigatorSeriesItemOutliers=e.ChartNavigatorSeriesItemTooltip=void 0;var r=o(9098);Object.defineProperty(e,"ChartNavigatorSeriesItemTooltip",{enumerable:!0,get:function(){return r.ChartNavigatorSeriesItemTooltip}});var i=o(9908);Object.defineProperty(e,"ChartNavigatorSeriesItemOutliers",{enumerable:!0,get:function(){return i.ChartNavigatorSeriesItemOutliers}});var n=o(4330);Object.defineProperty(e,"ChartNavigatorSeriesNotes",{enumerable:!0,get:function(){return n.ChartNavigatorSeriesNotes}});var a=o(7851);Object.defineProperty(e,"ChartNavigatorSeriesMarkers",{enumerable:!0,get:function(){return a.ChartNavigatorSeriesMarkers}});var s=o(9444);Object.defineProperty(e,"ChartNavigatorSeriesLabels",{enumerable:!0,get:function(){return s.ChartNavigatorSeriesLabels}});var l=o(2926);Object.defineProperty(e,"ChartNavigatorSeriesHighlight",{enumerable:!0,get:function(){return l.ChartNavigatorSeriesHighlight}});var p=o(1873);Object.defineProperty(e,"ChartNavigatorSeriesExtremes",{enumerable:!0,get:function(){return p.ChartNavigatorSeriesExtremes}});var c=o(5794);Object.defineProperty(e,"ChartNavigatorSeriesErrorBars",{enumerable:!0,get:function(){return c.ChartNavigatorSeriesErrorBars}});var h=o(5718);Object.defineProperty(e,"ChartNavigatorSeriesLabelsFrom",{enumerable:!0,get:function(){return h.ChartNavigatorSeriesLabelsFrom}});var u=o(9975);Object.defineProperty(e,"ChartNavigatorSeriesLabelsTo",{enumerable:!0,get:function(){return u.ChartNavigatorSeriesLabelsTo}});var f=o(1793);Object.defineProperty(e,"ChartNavigatorSeriesNotesLabel",{enumerable:!0,get:function(){return f.ChartNavigatorSeriesNotesLabel}});var d=o(3835);Object.defineProperty(e,"ChartNavigatorSeriesNotesIcon",{enumerable:!0,get:function(){return d.ChartNavigatorSeriesNotesIcon}})},791:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartPaneDefaultsTitle=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))};e.ChartPaneDefaultsTitle=a,a.displayName="ChartPaneDefaultsTitle"},2675:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartPaneDefaultsTitle=void 0;var r=o(791);Object.defineProperty(e,"ChartPaneDefaultsTitle",{enumerable:!0,get:function(){return r.ChartPaneDefaultsTitle}})},3575:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartPaneTitle=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))};e.ChartPaneTitle=a,a.displayName="ChartPaneTitle"},7606:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartPaneTitle=void 0;var r=o(3575);Object.defineProperty(e,"ChartPaneTitle",{enumerable:!0,get:function(){return r.ChartPaneTitle}})},2106:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesDefaultsLabels=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"labels"}))};e.ChartSeriesDefaultsLabels=a,a.defaultProps={visible:!0}},999:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesDefaultsLabelsFrom=void 0;var i=o(3899),n=o(8096);e.ChartSeriesDefaultsLabelsFrom=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"from"}))}},7166:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesDefaultsLabelsTo=void 0;var i=o(3899),n=o(8096);e.ChartSeriesDefaultsLabelsTo=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"to"}))}},3633:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesDefaultsNotes=void 0;var i=o(3899),n=o(8096);e.ChartSeriesDefaultsNotes=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"notes"}))}},325:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesDefaultsNotesIcon=void 0;var i=o(3899),n=o(8096);e.ChartSeriesDefaultsNotesIcon=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"icon"}))}},644:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesDefaultsNotesLabel=void 0;var i=o(3899),n=o(8096);e.ChartSeriesDefaultsNotesLabel=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"label"}))}},9857:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesDefaultsItemTooltip=void 0;var i=o(3899),n=o(8096);e.ChartSeriesDefaultsItemTooltip=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"tooltip"}))}},2476:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesDefaultsNotesLabel=e.ChartSeriesDefaultsNotesIcon=e.ChartSeriesDefaultsNotes=e.ChartSeriesDefaultsLabelsTo=e.ChartSeriesDefaultsLabelsFrom=e.ChartSeriesDefaultsLabels=e.ChartSeriesDefaultsItemTooltip=void 0;var r=o(9857);Object.defineProperty(e,"ChartSeriesDefaultsItemTooltip",{enumerable:!0,get:function(){return r.ChartSeriesDefaultsItemTooltip}});var i=o(2106);Object.defineProperty(e,"ChartSeriesDefaultsLabels",{enumerable:!0,get:function(){return i.ChartSeriesDefaultsLabels}});var n=o(999);Object.defineProperty(e,"ChartSeriesDefaultsLabelsFrom",{enumerable:!0,get:function(){return n.ChartSeriesDefaultsLabelsFrom}});var a=o(7166);Object.defineProperty(e,"ChartSeriesDefaultsLabelsTo",{enumerable:!0,get:function(){return a.ChartSeriesDefaultsLabelsTo}});var s=o(3633);Object.defineProperty(e,"ChartSeriesDefaultsNotes",{enumerable:!0,get:function(){return s.ChartSeriesDefaultsNotes}});var l=o(325);Object.defineProperty(e,"ChartSeriesDefaultsNotesIcon",{enumerable:!0,get:function(){return l.ChartSeriesDefaultsNotesIcon}});var p=o(644);Object.defineProperty(e,"ChartSeriesDefaultsNotesLabel",{enumerable:!0,get:function(){return p.ChartSeriesDefaultsNotesLabel}})},9948:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesErrorBars=void 0;var i=o(3899),n=o(8096);e.ChartSeriesErrorBars=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"errorBars"}))}},1326:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesExtremes=void 0;var i=o(3899),n=o(8096);e.ChartSeriesExtremes=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"extremes"}))}},7287:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesHighlight=void 0;var i=o(3899),n=o(8096);e.ChartSeriesHighlight=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"highlight"}))}},8411:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesLabels=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"labels"}))};e.ChartSeriesLabels=a,a.defaultProps={visible:!0}},5532:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesLabelsFrom=void 0;var i=o(3899),n=o(8096);e.ChartSeriesLabelsFrom=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"from"}))}},8437:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesLabelsTo=void 0;var i=o(3899),n=o(8096);e.ChartSeriesLabelsTo=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"to"}))}},5048:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesMarkers=void 0;var i=o(3899),n=o(8096);e.ChartSeriesMarkers=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"markers"}))}},8378:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesNotes=void 0;var i=o(3899),n=o(8096);e.ChartSeriesNotes=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"notes"}))}},4788:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesNotesIcon=void 0;var i=o(3899),n=o(8096);e.ChartSeriesNotesIcon=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"icon"}))}},3825:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesNotesLabel=void 0;var i=o(3899),n=o(8096);e.ChartSeriesNotesLabel=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"label"}))}},4254:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesItemOutliers=void 0;var i=o(3899),n=o(8096);e.ChartSeriesItemOutliers=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"outliers"}))}},1229:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesItemTooltip=void 0;var i=o(3899),n=o(8096);e.ChartSeriesItemTooltip=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"tooltip"}))}},8672:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesNotesIcon=e.ChartSeriesNotesLabel=e.ChartSeriesLabelsTo=e.ChartSeriesLabelsFrom=e.ChartSeriesErrorBars=e.ChartSeriesExtremes=e.ChartSeriesHighlight=e.ChartSeriesLabels=e.ChartSeriesMarkers=e.ChartSeriesNotes=e.ChartSeriesItemOutliers=e.ChartSeriesItemTooltip=void 0;var r=o(1229);Object.defineProperty(e,"ChartSeriesItemTooltip",{enumerable:!0,get:function(){return r.ChartSeriesItemTooltip}});var i=o(4254);Object.defineProperty(e,"ChartSeriesItemOutliers",{enumerable:!0,get:function(){return i.ChartSeriesItemOutliers}});var n=o(8378);Object.defineProperty(e,"ChartSeriesNotes",{enumerable:!0,get:function(){return n.ChartSeriesNotes}});var a=o(5048);Object.defineProperty(e,"ChartSeriesMarkers",{enumerable:!0,get:function(){return a.ChartSeriesMarkers}});var s=o(8411);Object.defineProperty(e,"ChartSeriesLabels",{enumerable:!0,get:function(){return s.ChartSeriesLabels}});var l=o(7287);Object.defineProperty(e,"ChartSeriesHighlight",{enumerable:!0,get:function(){return l.ChartSeriesHighlight}});var p=o(1326);Object.defineProperty(e,"ChartSeriesExtremes",{enumerable:!0,get:function(){return p.ChartSeriesExtremes}});var c=o(9948);Object.defineProperty(e,"ChartSeriesErrorBars",{enumerable:!0,get:function(){return c.ChartSeriesErrorBars}});var h=o(5532);Object.defineProperty(e,"ChartSeriesLabelsFrom",{enumerable:!0,get:function(){return h.ChartSeriesLabelsFrom}});var u=o(8437);Object.defineProperty(e,"ChartSeriesLabelsTo",{enumerable:!0,get:function(){return u.ChartSeriesLabelsTo}});var f=o(3825);Object.defineProperty(e,"ChartSeriesNotesLabel",{enumerable:!0,get:function(){return f.ChartSeriesNotesLabel}});var d=o(4788);Object.defineProperty(e,"ChartSeriesNotesIcon",{enumerable:!0,get:function(){return d.ChartSeriesNotesIcon}})},6784:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartValueAxisCrosshair=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"crosshair"}))};e.ChartValueAxisCrosshair=a,a.defaultProps={visible:!0}},381:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartValueAxisCrosshairTooltip=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"tooltip"}))};e.ChartValueAxisCrosshairTooltip=a,a.defaultProps={visible:!0}},3094:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartValueAxisLabels=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"labels"}))};e.ChartValueAxisLabels=a,a.defaultProps={visible:!0}},2588:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartValueAxisNotes=void 0;var i=o(3899),n=o(8096);e.ChartValueAxisNotes=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"notes"}))}},5232:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartValueAxisNotesIcon=void 0;var i=o(3899),n=o(8096);e.ChartValueAxisNotesIcon=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"icon"}))}},5655:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartValueAxisNotesLabel=void 0;var i=o(3899),n=o(8096);e.ChartValueAxisNotesLabel=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"label"}))}},2339:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartValueAxisTitle=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))};e.ChartValueAxisTitle=a,a.displayName="ChartValueAxisTitle"},7148:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartValueAxisNotesLabel=e.ChartValueAxisNotesIcon=e.ChartValueAxisNotes=e.ChartValueAxisLabels=e.ChartValueAxisTitle=e.ChartValueAxisCrosshairTooltip=e.ChartValueAxisCrosshair=void 0;var r=o(6784);Object.defineProperty(e,"ChartValueAxisCrosshair",{enumerable:!0,get:function(){return r.ChartValueAxisCrosshair}});var i=o(381);Object.defineProperty(e,"ChartValueAxisCrosshairTooltip",{enumerable:!0,get:function(){return i.ChartValueAxisCrosshairTooltip}});var n=o(3094);Object.defineProperty(e,"ChartValueAxisLabels",{enumerable:!0,get:function(){return n.ChartValueAxisLabels}});var a=o(2588);Object.defineProperty(e,"ChartValueAxisNotes",{enumerable:!0,get:function(){return a.ChartValueAxisNotes}});var s=o(5232);Object.defineProperty(e,"ChartValueAxisNotesIcon",{enumerable:!0,get:function(){return s.ChartValueAxisNotesIcon}});var l=o(5655);Object.defineProperty(e,"ChartValueAxisNotesLabel",{enumerable:!0,get:function(){return l.ChartValueAxisNotesLabel}});var p=o(2339);Object.defineProperty(e,"ChartValueAxisTitle",{enumerable:!0,get:function(){return p.ChartValueAxisTitle}})},6595:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartXAxisCrosshair=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"crosshair"}))};e.ChartXAxisCrosshair=a,a.defaultProps={visible:!0}},4211:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartXAxisCrosshairTooltip=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"tooltip"}))};e.ChartXAxisCrosshairTooltip=a,a.defaultProps={visible:!0}},1741:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartXAxisLabels=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"labels"}))};e.ChartXAxisLabels=a,a.defaultProps={visible:!0}},190:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartXAxisNotes=void 0;var i=o(3899),n=o(8096);e.ChartXAxisNotes=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"notes"}))}},9431:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartXAxisNotesIcon=void 0;var i=o(3899),n=o(8096);e.ChartXAxisNotesIcon=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"icon"}))}},2141:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartXAxisNotesLabel=void 0;var i=o(3899),n=o(8096);e.ChartXAxisNotesLabel=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"label"}))}},1705:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartXAxisTitle=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))};e.ChartXAxisTitle=a,a.displayName="ChartXAxisTitle"},8089:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartXAxisNotesLabel=e.ChartXAxisNotesIcon=e.ChartXAxisNotes=e.ChartXAxisLabels=e.ChartXAxisTitle=e.ChartXAxisCrosshairTooltip=e.ChartXAxisCrosshair=void 0;var r=o(6595);Object.defineProperty(e,"ChartXAxisCrosshair",{enumerable:!0,get:function(){return r.ChartXAxisCrosshair}});var i=o(4211);Object.defineProperty(e,"ChartXAxisCrosshairTooltip",{enumerable:!0,get:function(){return i.ChartXAxisCrosshairTooltip}});var n=o(1741);Object.defineProperty(e,"ChartXAxisLabels",{enumerable:!0,get:function(){return n.ChartXAxisLabels}});var a=o(190);Object.defineProperty(e,"ChartXAxisNotes",{enumerable:!0,get:function(){return a.ChartXAxisNotes}});var s=o(9431);Object.defineProperty(e,"ChartXAxisNotesIcon",{enumerable:!0,get:function(){return s.ChartXAxisNotesIcon}});var l=o(2141);Object.defineProperty(e,"ChartXAxisNotesLabel",{enumerable:!0,get:function(){return l.ChartXAxisNotesLabel}});var p=o(1705);Object.defineProperty(e,"ChartXAxisTitle",{enumerable:!0,get:function(){return p.ChartXAxisTitle}})},1238:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartYAxisCrosshair=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"crosshair"}))};e.ChartYAxisCrosshair=a,a.defaultProps={visible:!0}},2834:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartYAxisCrosshairTooltip=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"tooltip"}))};e.ChartYAxisCrosshairTooltip=a,a.defaultProps={visible:!0}},5404:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartYAxisLabels=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"labels"}))};e.ChartYAxisLabels=a,a.defaultProps={visible:!0}},5566:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartYAxisNotes=void 0;var i=o(3899),n=o(8096);e.ChartYAxisNotes=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"notes"}))}},7477:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartYAxisNotesIcon=void 0;var i=o(3899),n=o(8096);e.ChartYAxisNotesIcon=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"icon"}))}},777:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartYAxisNotesLabel=void 0;var i=o(3899),n=o(8096);e.ChartYAxisNotesLabel=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"label"}))}},3312:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartYAxisTitle=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))};e.ChartYAxisTitle=a,a.displayName="ChartYAxisTitle"},3567:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartYAxisNotesLabel=e.ChartYAxisNotesIcon=e.ChartYAxisNotes=e.ChartYAxisLabels=e.ChartYAxisTitle=e.ChartYAxisCrosshairTooltip=e.ChartYAxisCrosshair=void 0;var r=o(1238);Object.defineProperty(e,"ChartYAxisCrosshair",{enumerable:!0,get:function(){return r.ChartYAxisCrosshair}});var i=o(2834);Object.defineProperty(e,"ChartYAxisCrosshairTooltip",{enumerable:!0,get:function(){return i.ChartYAxisCrosshairTooltip}});var n=o(5404);Object.defineProperty(e,"ChartYAxisLabels",{enumerable:!0,get:function(){return n.ChartYAxisLabels}});var a=o(5566);Object.defineProperty(e,"ChartYAxisNotes",{enumerable:!0,get:function(){return a.ChartYAxisNotes}});var s=o(7477);Object.defineProperty(e,"ChartYAxisNotesIcon",{enumerable:!0,get:function(){return s.ChartYAxisNotesIcon}});var l=o(777);Object.defineProperty(e,"ChartYAxisNotesLabel",{enumerable:!0,get:function(){return l.ChartYAxisNotesLabel}});var p=o(3312);Object.defineProperty(e,"ChartYAxisTitle",{enumerable:!0,get:function(){return p.ChartYAxisTitle}})},6410:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=o(3981),i=r.DateCategoryAxis.prototype.options.labels.dateFormats,n=r.DateValueAxis.prototype.options.labels.dateFormats,a={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,a),Object.assign(n,a)},5161:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.AxisLabelClickEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.axis=e.axis,r.dataItem=e.dataItem,r.index=e.index,r.text=e.text,r.value=e.value,r}return i(e,t),e}(o(8874).BaseEvent);e.AxisLabelClickEvent=n},8874:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BaseEvent=void 0;e.BaseEvent=function(t){this.target=t}},2368:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.create=void 0;var r=o(5161),i=o(3251),n=o(3803),a=o(881),s=o(6099),l=o(8959),p=o(4846),c=o(8922),h=o(8888),u=o(8911),f=o(4761),d=o(4009),v=o(6765),y=o(2154),g=o(2499),m=o(3547),b=o(1604),_=o(5535),x=o(8526),w=o(2706),C=o(8476),O={axisLabelClick:r.AxisLabelClickEvent,drag:i.DragEvent,dragEnd:n.DragEndEvent,dragStart:a.DragStartEvent,legendItemHover:s.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:b.SeriesClickEvent,seriesHover:_.SeriesHoverEvent,zoom:x.ZoomEvent,zoomEnd:w.ZoomEndEvent,zoomStart:C.ZoomStartEvent};e.create=function(t,e,o){if(O[t])return new O[t](e,o)}},290:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toDomEvent=e.DomEvent=void 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)}},3758:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DomEventsBuilder=void 0;var r=o(7042),i=function(){function t(){}return t.create=function(t,e){if("undefined"!=typeof window){var o=window.Hammer;if(!o)return;var i=new o(t,{recognizers:[[o.Tap],[o.Pan],[o.Pinch],[o.Press,{time:0}]]});return new r.DomEvents(i,e)}},t}();e.DomEventsBuilder=i},7042:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DomEvents=void 0;var o=function(t){return{x:{location:t.pageX},y:{location:t.pageY}}};function r(t,e){for(var o=0;o<t.length;o++)if(e[t[o]])return!0;return!1}var i=[{end:"panend",move:"panmove",start:"panstart"},{gesturechange:"pinchmove",gestureend:"pinchend",gesturestart:"pinchstart"},{press:"press"},{tap:"tap"}],n=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,a=i.pageY,s=0;if(r.length>1){var l=r[0],p=r[1];s=Math.sqrt(Math.pow(l.pageX-p.pageX,2)+Math.pow(l.pageY-p.pageY,2))}return{distance:s,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?a-e.y.location:0,initialDelta:t.deltaY,location:a,startLocation:a-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<i.length;e++){var o=i[e],n=Object.keys(o);if(r(n,t))for(var a=0;a<n.length;a++){var s=o[n[a]];this.hammerInstance.on(s,this[s])}}},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=n},3803:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.DragEndEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.axisRanges=e.axisRanges,r.nativeEvent=e.originalEvent,r}return i(e,t),e}(o(8874).BaseEvent);e.DragEndEvent=n},3251:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.DragEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.axisRanges=e.axisRanges,r.nativeEvent=e.originalEvent,r}return i(e,t),e}(o(8619).PreventableEvent);e.DragEvent=n},881:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.DragStartEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.axisRanges=e.axisRanges,r.nativeEvent=e.originalEvent,r}return i(e,t),e}(o(8619).PreventableEvent);e.DragStartEvent=n},8959:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.LegendItemClickEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.series=e.series,r.seriesIndex=e.seriesIndex,r.pointIndex=e.pointIndex,r.text=e.text,r}return i(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(o(8619).PreventableEvent);e.LegendItemClickEvent=n},6099:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.LegendItemHoverEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.series=e.series,r.seriesIndex=e.seriesIndex,r.pointIndex=e.pointIndex,r.text=e.text,r}return i(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(o(8619).PreventableEvent);e.LegendItemHoverEvent=n},4846:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.LegendItemLeaveEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.series=e.series,r.seriesIndex=e.seriesIndex,r.pointIndex=e.pointIndex,r.text=e.text,r}return i(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(o(8619).PreventableEvent);e.LegendItemLeaveEvent=n},8922:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.NavigatorFilterEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.from=e.from,r.to=e.to,r}return i(e,t),e}(o(8874).BaseEvent);e.NavigatorFilterEvent=n},8888:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.NoteClickEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.category=e.category,r.dataItem=e.dataItem,r.series=e.series,r.value=e.value,r.visual=e.visual,r}return i(e,t),e}(o(8874).BaseEvent);e.NoteClickEvent=n},8911:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.NoteHoverEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.category=e.category,r.dataItem=e.dataItem,r.series=e.series,r.value=e.value,r.visual=e.visual,r}return i(e,t),e}(o(8874).BaseEvent);e.NoteHoverEvent=n},4761:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.PlotAreaClickEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.category=e.category,r.nativeEvent=e.originalEvent,r.value=e.value,r.x=e.x,r.y=e.y,r}return i(e,t),e}(o(8874).BaseEvent);e.PlotAreaClickEvent=n},4009:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.PlotAreaHoverEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.category=e.category,r.nativeEvent=e.originalEvent,r.value=e.value,r.x=e.x,r.y=e.y,r}return i(e,t),e}(o(8874).BaseEvent);e.PlotAreaHoverEvent=n},8619:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.PreventableEvent=void 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}(o(8874).BaseEvent);e.PreventableEvent=n},6765:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.RenderEvent=void 0;var n=function(t){function e(e,o){return t.call(this,o)||this}return i(e,t),e}(o(8874).BaseEvent);e.RenderEvent=n},2499:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.SelectEndEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.axis=e.axis,r.from=e.from,r.to=e.to,r}return i(e,t),e}(o(8874).BaseEvent);e.SelectEndEvent=n},2154:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.SelectEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.axis=e.axis,r.from=e.from,r.to=e.to,r}return i(e,t),e}(o(8619).PreventableEvent);e.SelectEvent=n},3547:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.SelectStartEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.axis=e.axis,r.from=e.from,r.to=e.to,r}return i(e,t),e}(o(8619).PreventableEvent);e.SelectStartEvent=n},1604:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.SeriesClickEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.category=e.category,r.dataItem=e.dataItem,r.nativeEvent=e.originalEvent,r.percentage=e.percentage,r.point=e.point,r.series=e.series,r.stackValue=e.stackValue,r.value=e.value,r}return i(e,t),e}(o(8874).BaseEvent);e.SeriesClickEvent=n},5535:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.SeriesHoverEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.category=e.category,r.categoryPoints=e.categoryPoints,r.dataItem=e.dataItem,r.nativeEvent=e.originalEvent,r.percentage=e.percentage,r.point=e.point,r.series=e.series,r.stackValue=e.stackValue,r.value=e.value,r}return i(e,t),e}(o(8619).PreventableEvent);e.SeriesHoverEvent=n},2706:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.ZoomEndEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.axisRanges=e.axisRanges,r.nativeEvent=e.originalEvent,r}return i(e,t),e}(o(8874).BaseEvent);e.ZoomEndEvent=n},8526:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.ZoomEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.axisRanges=e.axisRanges,r.delta=e.delta,r.nativeEvent=e.originalEvent,r}return i(e,t),e}(o(8619).PreventableEvent);e.ZoomEvent=n},8476:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.ZoomStartEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.axisRanges=e.axisRanges,r.nativeEvent=e.originalEvent,r}return i(e,t),e}(o(8619).PreventableEvent);e.ZoomStartEvent=n},3203:(t,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.WeekStartDay=void 0,(o=e.WeekStartDay||(e.WeekStartDay={}))[o.Sunday=0]="Sunday",o[o.Monday=1]="Monday",o[o.Tuesday=2]="Tuesday",o[o.Wednesday=3]="Wednesday",o[o.Thursday=4]="Thursday",o[o.Friday=5]="Friday",o[o.Saturday=6]="Saturday"},468:function(t,e,o){var r=this&&this.__createBinding||(Object.create?function(t,e,o,r){void 0===r&&(r=o);var i=Object.getOwnPropertyDescriptor(e,o);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[o]}}),Object.defineProperty(t,r,i)}:function(t,e,o,r){void 0===r&&(r=o),t[r]=e[o]}),i=this&&this.__exportStar||function(t,e){for(var o in t)"default"===o||Object.prototype.hasOwnProperty.call(e,o)||r(e,t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.CrosshairTooltipContainer=e.SharedTooltipContent=e.TooltipPopup=e.CrosshairTooltip=e.SeriesTooltip=e.TooltipPoint=e.DonutCenter=e.ConfigurationComponent=e.CollectionConfigurationComponent=e.StockChart=e.Sparkline=e.Chart=void 0;var n=o(8613);Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return n.Chart}});var a=o(2170);Object.defineProperty(e,"Sparkline",{enumerable:!0,get:function(){return a.Sparkline}});var s=o(5930);Object.defineProperty(e,"StockChart",{enumerable:!0,get:function(){return s.StockChart}});var l=o(1958);Object.defineProperty(e,"CollectionConfigurationComponent",{enumerable:!0,get:function(){return l.CollectionConfigurationComponent}});var p=o(8096);Object.defineProperty(e,"ConfigurationComponent",{enumerable:!0,get:function(){return p.ConfigurationComponent}});var c=o(5870);Object.defineProperty(e,"DonutCenter",{enumerable:!0,get:function(){return c.DonutCenter}});var h=o(9146);Object.defineProperty(e,"TooltipPoint",{enumerable:!0,get:function(){return h.TooltipPoint}});var u=o(2461);Object.defineProperty(e,"SeriesTooltip",{enumerable:!0,get:function(){return u.SeriesTooltip}});var f=o(8909);Object.defineProperty(e,"CrosshairTooltip",{enumerable:!0,get:function(){return f.CrosshairTooltip}});var d=o(2104);Object.defineProperty(e,"TooltipPopup",{enumerable:!0,get:function(){return d.TooltipPopup}});var v=o(8700);Object.defineProperty(e,"SharedTooltipContent",{enumerable:!0,get:function(){return v.SharedTooltipContent}});var y=o(9373);Object.defineProperty(e,"CrosshairTooltipContainer",{enumerable:!0,get:function(){return y.CrosshairTooltipContainer}}),i(o(6012),e),i(o(5388),e),i(o(1751),e),i(o(5487),e),i(o(6894),e),i(o(4449),e),i(o(8509),e)},8509:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.exportVisual=e.findPaneByName=e.findPaneByIndex=e.findAxisByName=void 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)}},7363:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata=void 0,e.packageMetadata={name:"@progress/kendo-react-charts",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1687260090,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"}},6600:function(t,e){var o=this&&this.__spreadArray||function(t,e,o){if(o||2===arguments.length)for(var r,i=0,n=e.length;i<n;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.observersReducer=e.themeReducer=e.optionsReducer=void 0,e.optionsReducer=function(t,e){return e.chartCollectionIdxKey?r.collectionConfigurationItem(t,e):e.chartKey?r.configurationItem(t,e):{}},e.themeReducer=function(t,e){if(!e.type)return{};switch(e.type){case"set":return r.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 o(o([],t,!0),[e.payload],!1);case"remove":return t.filter((function(t){return t!==e.payload}));default:return t}};var r={configurationItem:function(t,e){var o;return Object.assign(t,((o={})[e.chartKey]=e.payload,o))},collectionConfigurationItem:function(t,e){var o,r=!1,i=e.chartCollectionIdxKey.split("_"),n=i[0],a=i[1],s=t[n].map((function(t,o){return parseInt(a,10)===o?(r=!0,e.payload):t}));return!1===r&&s.splice(parseInt(a,10),0,e.payload),Object.assign(t,((o={})[n]=s,o))},themeItem:function(t,e){for(var o={},r=Object.assign(o,t),i=e.payload,n=i.field,a=i.value,s=n.split("."),l=s.shift();s.length>0;)o=o[l]=o[l]||{},l=s.shift();return o[l]=a,r}}},3113:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.THROTTLE_MS=void 0;var r=o(5410);e.THROTTLE_MS=1e3/60,e.default=function(t){var o,i,n=[],a=function(a){o=t(o,a),r.canUseDOM&&(window.clearTimeout(i),i=window.setTimeout((function(){return n.forEach((function(t){return t()}))}),e.THROTTLE_MS))};return a({}),{getState:function(){return o},dispatch:a,subscribe:function(t){return n.push(t),function(){return n=n.filter((function(e){return e!==t}))}}}}},8803:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.loadTheme=void 0;var r=o(3981),i=function(t){return"".concat(t.fontWeight," ").concat(t.fontSize," ").concat(t.fontFamily)},n=function(t){return window.getComputedStyle(t).backgroundColor},a='\n <div class="k-var--primary"></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 '.concat(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-'.concat(e+1,'"></div>');return t}(),"\n </div>\n"),s=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","primary"),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","primary"),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"),this.mapColor("subtitle.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")),o=i(this.queryStyle("chart-pane-title-font")),r=i(this.queryStyle("chart-label-font"));this.setStyle("axisDefaults.labels.font",r),this.setStyle("axisDefaults.notes.label.font",t),this.setStyle("axisDefaults.title.font",t),this.setStyle("legend.labels.font",t),this.setStyle("seriesDefaults.labels.font",r),this.setStyle("seriesDefaults.notes.label.font",t),this.setStyle("title.font",e),this.setStyle("subtitle.font",o),this.setStyle("paneDefaults.title.font",o)},t.prototype.setSeriesColors=function(){var t=this.element,e=[].slice.call(t.querySelectorAll(".k-var--series div")),o=n(t.querySelector(".k-var--series-unset")),r=e.reduce((function(t,e){var r=function(t){var e=t.match(/series-([a-z])$/);if(null!==e)return e[1].toLowerCase().charCodeAt(0)-"a".charCodeAt(0);var o=t.split("--series-")[1];return parseInt(o,10)-1}(e.className),i=n(e);return i!==o&&(t[r]=i),t}),[]);this.setStyle("seriesColors",r)},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--".concat(t)))},t.prototype.setInactiveOpacity=function(t,e){var o=this,r=parseFloat(this.queryStyle(e).opacity);!isNaN(r)&&r<1&&t.forEach((function(t){return o.setStyle("seriesDefaults.".concat(t,".highlight.inactiveOpacity"),r)}))},t}();e.loadTheme=function(t,e,o){var i=new s(t);if(void 0!==o){var n=i.element=o.createElement("div");n.style.display="none",n.innerHTML=a,o.body.appendChild(n);try{t.dispatch({type:"push",payload:(0,r.chartBaseTheme)()}),i.setColors(),i.setFonts(),i.setSeriesColors()}finally{o.body.removeChild(i.element),delete i.element,e()}}else t.dispatch({type:"push",payload:(0,r.chartBaseTheme)()})}},8909:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)},a=this&&this.__rest||function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o};Object.defineProperty(e,"__esModule",{value:!0}),e.CrosshairTooltip=void 0;var s=o(3899),l=o(5410),p=o(3981),c=o(2104),h=o(5201),u=function(t){function e(e,o){var r=t.call(this,e,o)||this;return r.context=null,r.state={popupShown:!1},r.chartObserver=new p.InstanceObserver(r,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),o.observersStore.dispatch({type:"add",payload:r.chartObserver}),r}return i(e,t),e.prototype.render=function(){var t,e=this.state,o=e.popupContend,r=e.className,i=a(e,["popupContend","className"]),p=this.state.popupShown?function(){return o}:Function.prototype,h=(0,l.classNames)(((t={})["k-chart-crosshair-tooltip"]=!0,t["k-chart-tooltip-inverse"]=!!r,t));return s.createElement(c.TooltipPopup,n({},i,{popupContent:p,className:h}))},e.prototype.componentWillUnmount=function(){var t;null===(t=this.context)||void 0===t||t.observersStore.dispatch({type:"remove",payload:this.chartObserver})},e.prototype.onShowTooltip=function(t){var e=t.anchor,o=t.style,r=t.className,i=t.crosshair,n=t.axisName,a=t.axisIndex,s=t.value,l=this.props,p=l.name,c=l.index;i&&n===p&&a===c&&this.setState({popupShown:!0,popupAlign:e.align,popupOffset:e.point,popupContend:s,popupStyles:o,className:r})},e.prototype.onHideTooltip=function(){this.setState({popupShown:!1,popupStyles:{},className:void 0})},e.contextType=h.ChartContext,e}(s.Component);e.CrosshairTooltip=u},9373:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.CrosshairTooltipContainer=void 0;var a=o(3899),s=o(4890),l=o(8909),p=o(5201),c=["categoryAxis","valueAxis","xAxis","yAxis"];function h(t){for(var e={},o=0;o<c.length;o++)for(var r=u(t,c[o]),i=0;i<r.length;i++){var n=r[i];e[n.name+n.index]=n}return e}function u(t,e){var o=[];if(t[e])for(var r=[].concat(t[e]),i=0;i<r.length;i++){var n=(r[i].crosshair||{}).tooltip;n&&n.visible&&o.push({index:i,name:e})}return o}var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.context=null,e.state={tooltips:{}},e.storeUnsubscriber=Function.prototype,e.subscriber=function(){var t;e.setState({tooltips:h(null===(t=e.context)||void 0===t?void 0:t.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 a.createElement(l.CrosshairTooltip,n({},t[e],{key:e}))}));return a.createElement(s.Container,null,e)},e.prototype.componentWillUnmount=function(){this.storeUnsubscriber()},e.contextType=p.ChartContext,e}(a.Component);e.CrosshairTooltipContainer=f},9146:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TooltipPoint=void 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:!1,configurable:!0}),t}();e.TooltipPoint=o},2104:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.TooltipPopup=void 0;var n=o(3899),a=o(3981),s=o(290),l=o(9075),p=o(6201),c=o(5201),h={horizontal:"fit",vertical:"fit"},u="k-chart-tooltip",f=function(t){function e(e,o){var r=t.call(this,e,o)||this;return r.context=null,r.element=null,r.onChartMouseLeave=function(t){var e=t.syntheticEvent;return!!(0,l.hasParent)(e.relatedTarget,r.element)},r.onMouseLeave=function(t){var e=(0,s.toDomEvent)(r,t);r.context.childrenObserver.trigger("onMouseLeave",e)&&t.preventDefault()},r.chartObserver=new a.InstanceObserver(r,{onMouseLeave:"onChartMouseLeave"}),o.observersStore.dispatch({type:"add",payload:r.chartObserver}),r}return i(e,t),e.prototype.render=function(){var t=this,e=this.props,o=e.popupShown,r=e.popupAlign,i=e.popupOffset,a=e.popupStyles,s=e.popupContent,l=e.className,c=[u,l].join(" ").trim();return n.createElement(p.Popup,{animate:!1,popupAlign:r,offset:i,show:o,collision:h,className:"k-chart-tooltip-wrapper"},n.createElement("div",{className:c,style:a,onMouseLeave:this.onMouseLeave,ref:function(e){return t.element=e}},s()))},e.prototype.componentWillUnmount=function(){this.context.observersStore.dispatch({type:"remove",payload:this.chartObserver})},e.contextType=c.ChartContext,e}(n.Component);e.TooltipPopup=f},2461:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)},a=this&&this.__rest||function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o};Object.defineProperty(e,"__esModule",{value:!0}),e.SeriesTooltip=void 0;var s=o(3899),l=o(5410),p=o(3981),c=o(9146),h=o(8700),u=o(2104),f=o(5201),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.context=null,e.state={popupShown:!1},e.chartObserver=null,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,o=this.state,r=o.popupContext,i=o.shared,p=o.className,c=a(o,["popupContext","shared","className"]),f=this.state.popupShown?function(){var t=e.findRenderFunction();if(i)return null!==t?t(r):s.createElement(h.SharedTooltipContent,n({},r));var o=r.point,a=e.findRenderFunctionByIndex(o.series.index);return null!==a?a(r):null!==t?t(r):s.createElement("span",{dangerouslySetInnerHTML:{__html:r.point.formattedValue}})}:Function.prototype,d=(0,l.classNames)(((t={})["k-chart-shared-tooltip"]=i,t["k-chart-tooltip-inverse"]=!!p,t));return s.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,o=t.anchor,r=t.style,i=t.shared,n=t.className;t.crosshair||(e=i?this.createSharedTooltipContext(t):this.createTooltipContext(t),this.setState({popupShown:!0,popupAlign:o.align,popupOffset:o.point,popupContext:e,popupStyles:r,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,o=t.categoryText,r=e.filter((function(t){return void 0!==t.series.name})).length>0,i=t.series.length>1,n=1;return r&&n++,i&&n++,{categoryText:o,colorMarker:i,colspan:n,nameColumn:r,points:t.points.map((function(e){return new c.TooltipPoint(e,t.format)}))}},e.prototype.createTooltipContext=function(t){var e=t.point,o=t.format;return{point:new c.TooltipPoint(e,o)}},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}(s.Component);e.SeriesTooltip=d},8700:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SharedTooltipContent=void 0;var r=o(3899);e.SharedTooltipContent=function(t){var e=t.categoryText,o=t.colorMarker,i=t.colspan,n=t.nameColumn,a=t.points;return r.createElement("table",null,r.createElement("thead",null,r.createElement("tr",null,r.createElement("th",{colSpan:i},e))),r.createElement("tbody",null,a.map((function(t,e){return r.createElement("tr",{key:e},o&&r.createElement("td",null,r.createElement("span",{className:"k-chart-shared-tooltip-marker",style:{backgroundColor:t.series.color}})),n&&r.createElement("td",null,t.series.name),r.createElement("td",{dangerouslySetInnerHTML:{__html:t.formattedValue}}))}))))}},6012:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TooltipPoint=void 0;var r=o(9146);Object.defineProperty(e,"TooltipPoint",{enumerable:!0,get:function(){return r.TooltipPoint}})},9075:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toggle=e.validateChildren=e.hasParent=void 0,e.hasParent=function(t,e){for(var o=t;o&&o!==e;)o=o.parentNode;return!!o},e.validateChildren=function(t,e,o,r){var i=t[e];if(i&&Array.isArray(i))for(var n=0,a=i;n<a.length;n++){var s=a[n];if(!s.type||s.type!==r)return new Error("".concat(o," children should be Array of type ").concat(r.displayName,"."))}return null},e.toggle=function(t){return void 0!==t&&!t}},3981:(t,e,o)=>{o.r(e),o.d(e,{Aggregates:()=>jr,ArcGauge:()=>Eh,ArcScale:()=>Sh,AreaChart:()=>Dn,AreaSegment:()=>jn,ArrowLinearPointer:()=>Zc,Axis:()=>oo,AxisGroupRangeTracker:()=>Nn,AxisLabel:()=>De,Bar:()=>Fn,BarChart:()=>Qn,BarLabel:()=>Vn,BarLinearPointer:()=>oh,Barcode:()=>xu,Box:()=>ie,BoxElement:()=>ve,BoxPlot:()=>ia,BoxPlotChart:()=>la,BubbleChart:()=>ga,Bullet:()=>xa,BulletChart:()=>Ca,Candlestick:()=>Jn,CandlestickChart:()=>oa,CategoricalChart:()=>an,CategoricalErrorBar:()=>tn,CategoricalPlotArea:()=>Rs,CategoryAxis:()=>No,Chart:()=>Wp,ChartAxis:()=>Cr,ChartContainer:()=>Ea,ChartElement:()=>fe,ChartPane:()=>Pr,ChartPlotArea:()=>Ar,ChartService:()=>qe,CircularGauge:()=>Ih,Class:()=>D.Class,ClipAnimation:()=>On,ClusterLayout:()=>Kn,Crosshair:()=>Ta,CrosshairTooltip:()=>Aa,CurveProcessor:()=>xr,DateCategoryAxis:()=>Ko,DateValueAxis:()=>or,DefaultAggregates:()=>is,DomEventsBuilder:()=>$e,DonutChart:()=>Ll,DonutPlotArea:()=>Dl,DonutSegment:()=>Ml,ErrorBarBase:()=>$i,ErrorRangeCalculator:()=>Dr,Extent:()=>Gd,FloatElement:()=>Oe,FontLoader:()=>Dt,FormatService:()=>Xe,Gauge:()=>Ic,Gradients:()=>be,HashMap:()=>pt,Highlight:()=>Ns,InstanceObserver:()=>dt,IntlService:()=>Ue,Legend:()=>tl,LegendItem:()=>Zs,LegendLayout:()=>Ys,LineChart:()=>kn,LinePoint:()=>hn,LineSegment:()=>fn,LinearGauge:()=>nh,LinearPointer:()=>Gc,LinearScale:()=>Vc,Location:()=>Ff,LogarithmicAxis:()=>sr,Map:()=>by,MousewheelZoom:()=>Xs,Navigator:()=>cc,NavigatorHint:()=>ic,Note:()=>Ne,NumericAxis:()=>tr,OHLCChart:()=>Ss,OHLCPoint:()=>Cs,Pane:()=>La,Pannable:()=>Us,PieAnimation:()=>vl,PieChart:()=>kl,PieChartMixin:()=>Sl,PiePlotArea:()=>jl,PieSegment:()=>Ol,PlotAreaBase:()=>$a,PlotAreaEventsMixin:()=>ts,PlotAreaFactory:()=>ol,Point:()=>ee,PointEventsMixin:()=>ln,PolarAxis:()=>ur,QRCode:()=>Mf,RadarCategoryAxis:()=>cr,RadarLogarithmicAxis:()=>br,RadarNumericAxis:()=>gr,RadialGauge:()=>Ch,RadialPointer:()=>_h,RadialScale:()=>fh,RangeAreaChart:()=>xs,RangeAreaPoint:()=>fs,RangeBar:()=>as,RangeBarChart:()=>ls,RangePointer:()=>Th,Ring:()=>se,RootElement:()=>we,ScatterChart:()=>fa,ScatterErrorBar:()=>ca,ScatterLineChart:()=>gl,Sector:()=>pe,Selection:()=>al,SeriesAggregator:()=>os,SeriesBinder:()=>Ir,ShapeBuilder:()=>he,ShapeElement:()=>ge,SharedTooltip:()=>cl,Sparkline:()=>Jp,SplineAreaSegment:()=>Ln,SplineSegment:()=>_n,StackWrap:()=>qn,StockChart:()=>uc,TemplateService:()=>et,Text:()=>Ae,TextBox:()=>Ee,Title:()=>Le,Tooltip:()=>ll,WaterfallChart:()=>Ts,WaterfallSegment:()=>As,XYPlotArea:()=>_l,ZoomSelection:()=>Gs,addClass:()=>I,alignPathToPixel:()=>B,anyHasZIndex:()=>Sn,append:()=>bt,appendIfNotNull:()=>Ra,areNumbers:()=>ta,autoMajorUnit:()=>te,autoTextColor:()=>Gt,barcodeValidator:()=>Cu,bindEvents:()=>_t,bindSegments:()=>Ba,categoriesCount:()=>rn,chartBaseTheme:()=>Ly,clockwise:()=>N,constants:()=>r,convertableToNumber:()=>H,countNumbers:()=>kr,createHashSet:()=>Qt,createOutOfRangePoints:()=>Xa,deepExtend:()=>X,defaultErrorHandler:()=>$t,defined:()=>xt,deg:()=>wt,elementOffset:()=>Ct,elementScale:()=>Ft,elementSize:()=>Ot,elementStyles:()=>Q,equalsIgnoreCase:()=>Na,evalOptions:()=>on,eventCoordinates:()=>St,eventElement:()=>Pt,filterSeriesByType:()=>za,find:()=>zt,findAxisByName:()=>Or,getDateField:()=>Va,getField:()=>Er,getSpacing:()=>$,getTemplate:()=>ot,getter:()=>nt,grep:()=>at,hasClasses:()=>st,hasGradientOverlay:()=>Hn,hasValue:()=>ha,hashKey:()=>At,inArray:()=>ct,interpolateValue:()=>ht,isArray:()=>M,isDateAxis:()=>Ha,isFunction:()=>U,isNumber:()=>z,isObject:()=>K,isString:()=>V,keys:()=>Jt,last:()=>kt,limitValue:()=>Tt,logToConsole:()=>D.logToConsole,map:()=>vt,mousewheelDelta:()=>gt,objectKey:()=>jt,qrcodeValidator:()=>If,rad:()=>Et,rectToBox:()=>ke,removeClass:()=>R,round:()=>Mt,segmentVisible:()=>Da,setDefaultOptions:()=>Bt,singleItemOrArray:()=>Ua,sparseArrayLimits:()=>Nt,styleValue:()=>Y,unbindEvents:()=>It,valueOrDefault:()=>Lt});var r={};o.r(r),o.d(r,{DEFAULT_PANE:()=>sc,NAVIGATOR_AXIS:()=>ac,NAVIGATOR_PANE:()=>nc});var i="arc",n="#000",a="bottom",s="center",l="circle",p=3,c="cross",h="date",u="12px sans-serif",f=10,d=/\{\d+:?/,v="height",y="inside",g="left",m=Number.MAX_VALUE,b=-Number.MAX_VALUE,_="none",x="object",w="outside",C="right",O="roundedRect",S="string",P="top",A="value",k="#fff",T="width",j="x",E="y";function M(t){return Array.isArray(t)}function I(t,e){for(var o=M(e)?e:[e],r=0;r<o.length;r++){var i=o[r];-1===t.className.indexOf(i)&&(t.className+=" "+i)}}var L=/\s+/g;function R(t,e){t&&t.className&&(t.className=t.className.replace(e,"").replace(L," "))}var D=o(4407);function B(t){var e=.5;t.options.stroke&&D.drawing.util.defined(t.options.stroke.width)&&t.options.stroke.width%2==0&&(e=0);for(var o=0;o<t.segments.length;o++)t.segments[o].anchor().round(0).translate(e,e);return t}function N(t,e){return-t.x*e.y+t.y*e.x<0}function z(t){return"number"==typeof t&&!isNaN(t)}function V(t){return typeof t===S}function H(t){return z(t)||V(t)&&isFinite(t)}function U(t){return"function"==typeof t}var F="object",G="undefined";function W(t,e){for(var o in e){var r,i=e[o],n=typeof i;if((r=n===F&&null!==i?i.constructor:null)&&r!==Array)if(i instanceof Date)t[o]=new Date(i.getTime());else if(U(i.clone))t[o]=i.clone();else{var a=t[o];t[o]=typeof a===F&&a||{},W(t[o],i)}else n!==G&&(t[o]=i)}return t}function X(t){for(var e=arguments,o=arguments.length,r=1;r<o;r++)W(t,e[r]);return t}function K(t){return"object"==typeof t}function Y(t){return z(t)?t+"px":t}var q=/width|height|top|left|bottom|right/i;function Z(t){return q.test(t)}function Q(t,e){var o=V(e)?[e]:e;if(M(o)){for(var r={},i=window.getComputedStyle(t),n=0;n<o.length;n++){var a=o[n];r[a]=Z(a)?parseFloat(i[a]):i[a]}return r}if(K(e))for(var s in e)t.style[s]=Y(e[s])}function $(t,e){void 0===e&&(e=0);var o={top:0,right:0,bottom:0,left:0};return"number"==typeof t?o[P]=o[C]=o[a]=o[g]=t:(o[P]=t[P]||e,o[C]=t[C]||e,o[a]=t[a]||e,o[g]=t[g]||e),o}var J={compile:function(t){return t}},tt=function(){};tt.register=function(t){J=t},tt.compile=function(t,e){return J.compile(t,e)};const et=tt;function ot(t){var e;return void 0===t&&(t={}),t.template?t.template=e=et.compile(t.template):U(t.content)&&(e=t.content),e}var rt=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,it={};function nt(t){if(it[t])return it[t];var e=[];return t.replace(rt,(function(t,o,r,i){e.push(D.drawing.util.defined(o)?o:r||i)})),it[t]=function(t){for(var o=t,r=0;r<e.length&&o;r++)o=o[e[r]];return o},it[t]}function at(t,e){for(var o=t.length,r=[],i=0;i<o;i++)e(t[i])&&r.push(t[i]);return r}function st(t,e){if(t.className)for(var o=e.split(" "),r=0;r<o.length;r++)if(t.className.indexOf&&-1!==t.className.indexOf(o[r]))return!0}it[void 0]=function(t){return t};var lt=function(){this._map={}};lt.prototype.get=function(t){return this._map[this._key(t)]},lt.prototype.set=function(t,e){this._map[this._key(t)]=e},lt.prototype._key=function(t){return t instanceof Date?t.getTime():t};const pt=lt;function ct(t,e){if(e)return-1!==e.indexOf(t)}function ht(t,e,o){return D.drawing.util.round(t+(e-t)*o,p)}var ut="trigger",ft=function(t,e){this.observer=t,this.handlerMap=X({},this.handlerMap,e)};ft.prototype.trigger=function(t,e){var o,r=this.observer,i=this.handlerMap;return i[t]?o=this.callObserver(i[t],e):r[ut]&&(o=this.callObserver(ut,t,e)),o},ft.prototype.callObserver=function(t){for(var e=[],o=arguments.length-1;o-- >0;)e[o]=arguments[o+1];return this.observer[t].apply(this.observer,e)},ft.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};const dt=ft;function vt(t,e){for(var o=t.length,r=[],i=0;i<o;i++){var n=e(t[i]);D.drawing.util.defined(n)&&r.push(n)}return r}var yt=D.support.browser||{};function gt(t){var e=0;return t.wheelDelta?(e=-t.wheelDelta/120,yt.webkit&&(e/=2*Math.max(window.devicePixelRatio,.625))):t.detail&&(e=t.detail/3),e>0?Math.ceil(e):Math.floor(e)}var mt=D.drawing.util,bt=mt.append,_t=mt.bindEvents,xt=mt.defined,wt=mt.deg,Ct=mt.elementOffset,Ot=mt.elementSize,St=mt.eventCoordinates,Pt=mt.eventElement,At=mt.hashKey,kt=mt.last,Tt=mt.limitValue,jt=mt.objectKey,Et=mt.rad,Mt=mt.round,It=mt.unbindEvents,Lt=mt.valueOrDefault,Rt=function(){};Rt.fetchFonts=function(t,e,o){void 0===o&&(o={depth:0}),!t||o.depth>5||!document.fonts||Object.keys(t).forEach((function(r){var i=t[r];"dataSource"!==r&&"$"!==r[0]&&i&&("font"===r?e.push(i):"object"==typeof i&&(o.depth++,Rt.fetchFonts(i,e,o),o.depth--))}))},Rt.loadFonts=function(t,e){var o=[];if(t.length>0&&document.fonts){try{o=t.map((function(t){return document.fonts.load(t)}))}catch(t){(0,D.logToConsole)(t)}Promise.all(o).then(e,e)}else e()},Rt.preloadFonts=function(t,e){var o=[];Rt.fetchFonts(t,o),Rt.loadFonts(o,e)};const Dt=Rt;function Bt(t,e){var o=t.prototype;o.options?o.options=X({},o.options,e):o.options=e}function Nt(t){for(var e=m,o=b,r=0,i=t.length;r<i;r++){var n=t[r];null!==n&&isFinite(n)&&(e=Math.min(e,n),o=Math.max(o,n))}return{min:e===m?void 0:e,max:o===b?void 0:o}}function zt(t,e){for(var o=0;o<t.length;o++){var r=t[o];if(e(r,o,t))return r}}var Vt=D.geometry.Matrix,Ht=/matrix\((.*)\)/;function Ut(t){var e=getComputedStyle(t).transform;return"none"===e?Vt.unit():function(t){var e=t.match(Ht);if(null===e||2!==e.length)return Vt.unit();var o=e[1].split(",").map((function(t){return parseFloat(t)}));return new(Function.prototype.bind.apply(Vt,[null].concat(o)))}(e)}function Ft(t){if(!t)return Vt.unit();for(var e=Ut(t),o=t.parentElement;o;){var r=Ut(o);e=e.multiplyCopy(r),o=o.parentElement}return e.b=e.c=e.e=e.f=0,e}const Gt=function(t){return new D.Color(t).isDark()?k:n};var Wt={},Xt=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},Kt={size:{configurable:!0}};Xt.prototype.values=function(){return this._values.filter((function(t){return t!==Wt}))},Xt.prototype.has=function(t){return void 0!==this._index[t]},Xt.prototype.add=function(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))},Xt.prototype.delete=function(t){var e=this._index[t];void 0!==e&&(this._values[e]=Wt,delete this._index[t])},Xt.prototype.clear=function(){this._index={},this._values=[]},Kt.size.get=function(){return this._values.length},Object.defineProperties(Xt.prototype,Kt);var Yt=function(t){this._set=new Set(t)},qt={size:{configurable:!0}};Yt.prototype.values=function(){return Array.from(this._set)},Yt.prototype.has=function(t){return this._set.has(t)},Yt.prototype.add=function(t){this._set.add(t)},Yt.prototype.delete=function(t){this._set.delete(t)},Yt.prototype.clear=function(){this._set.clear()},qt.size.get=function(){return this._set.size},Object.defineProperties(Yt.prototype,qt);var Zt=function(){var t=!1;return"function"==typeof Set&&(t=new Set([1]).has(1)),t};function Qt(t){return Zt()?new Yt(t):new Xt(t)}function $t(t){throw t}const Jt={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 te(t,e){var o=Mt(e-t,f-1);if(0===o){if(0===e)return.1;o=Math.abs(e)}var r=Math.pow(10,Math.floor(Math.log(o)/Math.log(10))),i=Mt(o/r,f);return Mt(r*(i<1.904762?.2:i<4.761904?.5:i<9.523809?1:2),f)}const ee=function(t){function e(e,o){t.call(this),this.x=e||0,this.y=o||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 o=Et(e),r=Math.cos(o),i=Math.sin(o),n=t.x,a=t.y,s=this.x,l=this.y;return this.x=Mt(n+(s-n)*r+(l-a)*i,p),this.y=Mt(a+(l-a)*r-(s-n)*i,p),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,o=this.y-t.y;return Math.sqrt(e*e+o*o)},e.onCircle=function(t,o,r){var i=Et(o);return new e(t.x-r*Math.cos(i),t.y-r*Math.sin(i))},e}(D.Class);var oe=function(t){function e(e,o,r,i){t.call(this),this.x1=e||0,this.y1=o||0,this.x2=r||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 o=this.height(),r=this.width();return xt(t)&&(this.x1=t,this.x2=this.x1+r),xt(e)&&(this.y1=e,this.y2=this.y1+o),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 o=M(t),r=o?t[0]:t.x,i=o?t[1]:t.y;return this.wrap(new e(r,i,r,i)),this},e.prototype.snapTo=function(t,e){return e!==j&&e||(this.x1=t.x1,this.x2=t.x2),e!==E&&e||(this.y1=t.y1,this.y2=t.y2),this},e.prototype.alignTo=function(t,e){var o=this.height(),r=this.width(),i=e===P||e===a?E:j,n=i===E?o:r;if(e===s){var l=t.center(),p=this.center();this.x1+=l.x-p.x,this.y1+=l.y-p.y}else this[i+1]=e===P||e===g?t[i+1]-n:t[i+2];return this.x2=this.x1+r,this.y2=this.y1+o,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=$(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=$(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 ee(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 ee(this.x1,this.y1),new ee(this.x2,this.y1),new ee(this.x2,this.y2),new ee(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(),o=this.height(),r=this.center(),i=r.x,n=r.y,a=re(0,0,i,n,t),s=re(e,0,i,n,t),l=re(e,o,i,n,t),p=re(0,o,i,n,t);return e=Math.max(a.x,s.x,l.x,p.x)-Math.min(a.x,s.x,l.x,p.x),o=Math.max(a.y,s.y,l.y,p.y)-Math.min(a.y,s.y,l.y,p.y),this.x2=this.x1+e,this.y2=this.y1+o,this},e.prototype.toRect=function(){return new D.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,o){var r=e+1,i=e+2,n=e===j?T:v,l=this[n]();ct(o,[g,P])?(this[r]=t[r],this[i]=this[r]+l):ct(o,[C,a])?(this[i]=t[i],this[r]=this[i]-l):o===s&&(this[r]=t[r]+(t[n]()-l)/2,this[i]=this[r]+l)},e}(D.Class);function re(t,e,o,r,i){var n=Et(i);return new ee(o+(t-o)*Math.cos(n)+(e-r)*Math.sin(n),r-(t-o)*Math.sin(n)+(e-r)*Math.cos(n))}const ie=oe;var ne=function(t){function e(e,o,r,i,n){t.call(this),this.center=e,this.innerRadius=o,this.radius=r,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 o=Et(t),r=Math.cos(o),i=Math.sin(o),n=e?this.innerRadius:this.radius,a=Mt(this.center.x-r*n,p),s=Mt(this.center.y-i*n,p);return new ee(a,s)},e.prototype.adjacentBox=function(t,e,o){var r=this.clone().expand(t),i=r.middle(),n=r.point(i),a=e/2,s=o/2,l=Math.sin(Et(i)),p=Math.cos(Et(i)),c=n.x-a,h=n.y-s;return Math.abs(l)<.9&&(c+=a*-p/Math.abs(p)),Math.abs(p)<.9&&(h+=s*-l/Math.abs(l)),new ie(c,h,c+e,h+o)},e.prototype.containsPoint=function(t){var e=this.center,o=this.innerRadius,r=this.radius,i=this.startAngle,n=this.startAngle+this.angle,a=t.x-e.x,s=t.y-e.y,l=new ee(a,s),c=this.point(i),h=new ee(c.x-e.x,c.y-e.y),u=this.point(n),f=new ee(u.x-e.x,u.y-e.y),d=Mt(a*a+s*s,p);return(h.equals(l)||N(h,l))&&!N(f,l)&&d>=o*o&&d<=r*r},e.prototype.getBBox=function(){var t,e=new ie(m,m,b,b),o=Mt(this.startAngle%360),r=Mt((o+this.angle)%360),i=this.innerRadius,n=[0,90,180,270,o,r].sort(ae),a=n.indexOf(o),s=n.indexOf(r);t=o===r?n:a<s?n.slice(a,s+1):[].concat(n.slice(0,s+1),n.slice(a,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}(D.Class);function ae(t,e){return t-e}const se=ne;var le=function(t){function e(e,o,r,i){t.call(this,e,0,o,r,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}(se);const pe=le;var ce=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 o=t.startAngle+180,r=t.angle+o;t.angle>0&&o===r&&(r+=.001);var i=new D.geometry.Point(t.center.x,t.center.y),n=Math.max(t.radius,0),a=Math.max(t.innerRadius,0),s=new D.geometry.Arc(i,{startAngle:o,endAngle:r,radiusX:n,radiusY:n}),l=D.drawing.Path.fromArc(s,e).close();if(a){s.radiusX=s.radiusY=a;var p=s.pointAt(r);l.lineTo(p.x,p.y),l.arc(r,o,a,a,!0)}else l.lineTo(i.x,i.y);return l},e}(D.Class);ce.current=new ce;const he=ce;var ue=function(t){function e(e){t.call(this),this.children=[],this.options=X({},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,o=this.children,r=0;r<o.length;r++){var i=o[r];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 o=this.children,r=o.length,i=0;i<r;i++)o[i].box.translate(t,e)},e.prototype.append=function(){for(var t=arguments,e=0;e<arguments.length;e++){var o=t[e];this.children.push(o),o.parent=this}},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,o=0;o<e;o++)t[o].renderVisual()},e.prototype.createVisual=function(){this.visual=new D.drawing.Group({zIndex:this.options.zIndex,visible:Lt(this.options.visible,!0)})},e.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=D.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):xt(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,o=t.options.zIndex||0,r=this.visual.children,i=r.length;for(e=0;e<i;e++){var n=r[e];if(Lt(n.options.zIndex,0)>o)break}this.visual.insert(e,t)},e.prototype.traverse=function(t){for(var e=this.children,o=e.length,r=0;r<o;r++){var i=e[r];t(i),i.traverse&&i.traverse(t)}},e.prototype.closest=function(t){for(var e=this,o=!1;e&&!o;)(o=t(e))||(e=e.parent);if(o)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 o=this,r=(this.options||{}).highlight||{},i=r.visual,n=this._highlight;if(!n){var a={fill:{color:k,opacity:e||.2},stroke:{color:k,width:1,opacity:e||.2}};if(i){if(!(n=this._highlight=i(Object.assign(this.highlightVisualArgs(),{createVisual:function(){return o.createHighlight(a)},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(a);xt(n.options.zIndex)||(n.options.zIndex=Lt(r.zIndex,this.options.zIndex)),this.appendVisual(n)}n.visible(t)},e.prototype.createGradientOverlay=function(t,e,o){var r=new D.drawing.Path(Object.assign({stroke:{color:"none"},fill:this.createGradient(o),closed:t.options.closed},e));return r.segments.elements(t.segments.elements()),r},e.prototype.createGradient=function(t){if(this.parent)return this.parent.createGradient(t)},e.prototype.supportsPointInactiveOpacity=function(){return!0},e}(D.Class);ue.prototype.options={};const fe=ue;var de=function(t){function e(e){t.call(this,e),this.options.margin=$(this.options.margin),this.options.padding=$(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 o,r=this,i=this.options,n=i.width,a=i.height,s=i.shrinkToFit,l=n&&a,p=i.margin,c=i.padding,h=i.border.width,u=function(){r.align(e,j,i.align),r.align(e,E,i.vAlign),r.paddingBox=o.clone().unpad(p).unpad(h)},f=e.clone();l&&(f.x2=f.x1+n,f.y2=f.y1+a),s&&f.unpad(p).unpad(h).unpad(c),t.prototype.reflow.call(this,f),o=l?this.box=new ie(0,0,n,a):this.box,s&&l?(u(),f=this.contentBox=this.paddingBox.clone().unpad(c)):(f=this.contentBox=o.clone(),o.pad(c).pad(h).pad(p),u()),this.translateChildren(o.x1-f.x1+p.left+h+c.left,o.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,o){this.box.align(t,e,o)},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(D.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:Lt(e.opacity,t.opacity),dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},cursor:t.cursor}},e}(fe);Bt(de,{align:g,vAlign:P,margin:{},padding:{},border:{color:n,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});const ve=de;var ye=function(t){function e(e,o){t.call(this,e),this.pointData=o}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,o=t.type,r=t.rotation,i=e.center(),n=e.width()/2,a=e.height()/2;if(!t.visible||!this.hasBox())return null;var s,h=this.visualStyle();if(o===l)s=new D.drawing.Circle(new D.geometry.Circle([Mt(e.x1+n,p),Mt(e.y1+a,p)],Math.min(n,a)),h);else if("triangle"===o)s=D.drawing.Path.fromPoints([[e.x1+n,e.y1],[e.x1,e.y2],[e.x2,e.y2]],h).close();else if(o===c)(s=new D.drawing.MultiPath(h)).moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),s.moveTo(e.x1,e.y2).lineTo(e.x2,e.y1);else{var u=e.toRect();if(o===O){var f=Lt(t.borderRadius,u.width()/5);u.setCornerRadius(f)}s=D.drawing.Path.fromRect(u,h)}return r&&s.transform(D.geometry.transform().rotate(-r,[i.x,i.y])),s.options.zIndex=t.zIndex,s},e.prototype.createElement=function(){var t=this,e=this.options.visual,o=this.pointData||{};return e?e({value:o.value,dataItem:o.dataItem,sender:this.getSender(),series:o.series,category:o.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}(ve);Bt(ye,{type:l,align:s,vAlign:s});const ge=ye;var me="radial";const be={glass:{type:"linear",rotation:0,stops:[{offset:0,color:k,opacity:0},{offset:.25,color:k,opacity:.3},{offset:1,color:k,opacity:0}]},sharpBevel:{type:me,stops:[{offset:0,color:k,opacity:.55},{offset:.65,color:k,opacity:0},{offset:.95,color:k,opacity:.25}]},roundedBevel:{type:me,stops:[{offset:.33,color:k,opacity:.06},{offset:.83,color:k,opacity:.2},{offset:.95,color:k,opacity:0}]},roundedGlass:{type:me,supportVML:!1,stops:[{offset:0,color:k,opacity:0},{offset:.5,color:k,opacity:.3},{offset:.99,color:k,opacity:0}]},sharpGlass:{type:me,supportVML:!1,stops:[{offset:0,color:k,opacity:.2},{offset:.15,color:k,opacity:.15},{offset:.17,color:k,opacity:.35},{offset:.85,color:k,opacity:.05},{offset:.87,color:k,opacity:.15},{offset:.99,color:k,opacity:0}]},bubbleShadow:{type:me,center:[.5,.5],radius:.5}};function _e(t,e){if(t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2)return e;var o=Math.min(t.x1,e.x1),r=Math.max(t.x1,e.x1),i=Math.min(t.x2,e.x2),n=Math.max(t.x2,e.x2),a=Math.min(t.y1,e.y1),s=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 ie(r,a,i,s),c[1]=new ie(o,s,r,l),c[2]=new ie(i,s,n,l),c[3]=new ie(r,l,i,p),t.x1===o&&t.y1===a||e.x1===o&&e.y1===a?(c[4]=new ie(o,a,r,s),c[5]=new ie(i,l,n,p)):(c[4]=new ie(i,a,n,s),c[5]=new ie(o,l,r,p)),at(c,(function(t){return t.height()>0&&t.width()>0}))[0]}var xe=function(t){function e(e){t.call(this,e);var o=this.options;o.width=parseInt(o.width,10),o.height=parseInt(o.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,o=new ie(0,0,t.width,t.height);this.box=o.unpad(t.margin);for(var r=0;r<e.length;r++)e[r].reflow(o),o=_e(o,e[r].box)||new ie},e.prototype.createVisual=function(){this.visual=new D.drawing.Group,this.createBackground()},e.prototype.createBackground=function(){var t=this.options,e=t.border||{},o=this.box.clone().pad(t.margin).unpad(e.width),r=D.drawing.Path.fromRect(o.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(r)},e.prototype.getRoot=function(){return this},e.prototype.createGradient=function(t){var e,o=this.gradients,r=jt(t),i=be[t.gradient];if(o[r])e=o[r];else{var n=Object.assign({},i,t);"linear"===i.type?e=new D.drawing.LinearGradient(n):(t.innerRadius&&(n.stops=function(t){for(var e=t.stops,o=t.innerRadius/t.radius*100,r=e.length,i=[],n=0;n<r;n++){var a=Object.assign({},e[n]);a.offset=(a.offset*(100-o)+o)/100,i.push(a)}return i}(n)),(e=new D.drawing.RadialGradient(n)).supportVML=!1!==i.supportVML),o[r]=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 ie(0,0,t.width,t.height)},e}(fe);Bt(xe,{width:600,height:400,background:k,border:{color:n,width:0},margin:$(5),zIndex:-2});const we=xe;var Ce=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=j,this.elementAxis=E,this.groupSizeField=T,this.elementSizeField=v,this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=E,this.elementAxis=j,this.groupSizeField=v,this.elementSizeField=T,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,e=this,o=e.box,r=e.elementAxis,i=e.groupAxis,n=e.elementSizeField,a=e.groupSizeField,s=this.groupOptions(),l=s.groups,p=s.groupsSize,c=s.maxGroupElementsSize,h=l.length,u=o[i+1]+this.alignStart(p,o[a]());if(h){for(var f=u,d=0;d<h;d++){for(var v=l[d],y=v.groupElements,g=o[r+1],m=y.length,b=0;b<m;b++){var _=y[b],x=t.elementSize(_),w=f+t.alignStart(x[a],v.groupSize),C=new ie;C[i+1]=w,C[i+2]=w+x[a],C[r+1]=g,C[r+2]=g+x[n],_.reflow(C),g+=x[n]+t.elementSpacing}f+=v.groupSize+t.groupSpacing}o[i+1]=u,o[i+2]=u+p,o[r+2]=o[r+1]+c}},e.prototype.alignStart=function(t,e){var o=0,r=this.options.align;return r===C||r===a?o=e-t:r===s&&(o=(e-t)/2),o},e.prototype.groupOptions=function(){for(var t=this,e=t.box,o=t.children,r=t.elementSizeField,i=t.groupSizeField,n=t.elementSpacing,a=t.groupSpacing,s=Mt(e[r]()),l=o.length,p=[],c=0,h=0,u=0,f=0,d=[],v=0;v<l;v++){var y=o[v];y.box||y.reflow(e);var g=this.elementSize(y);this.options.wrap&&Mt(h+n+g[r])>s&&(p.push({groupElements:d,groupSize:c,groupElementsSize:h}),f=Math.max(f,h),u+=a+c,c=0,h=0,d=[]),c=Math.max(c,g[i]),h>0&&(h+=n),h+=g[r],d.push(y)}return p.push({groupElements:d,groupSize:c,groupElementsSize:h}),{groups:p,groupsSize:u+=c,maxGroupElementsSize:f=Math.max(f,h)}},e.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},e.prototype.createVisual=function(){},e}(fe);Bt(Ce,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});const Oe=Ce;var Se=D.drawing.Text,Pe=function(t){function e(e,o){t.call(this,o),this.content=e,this.reflow(new ie)}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,o=e.size=D.drawing.util.measureText(this.content,{font:e.font});this.baseline=o.baseline,this.box=new ie(t.x1,t.y1,t.x1+o.width,t.y1+o.height)},e.prototype.createVisual=function(){var t=this.options,e=t.font,o=t.color,r=t.opacity,i=t.cursor;this.visual=new Se(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:o,opacity:r},cursor:i})},e}(fe);Bt(Pe,{font:u,color:n});const Ae=Pe;function ke(t){var e=t.origin,o=t.bottomRight();return new ie(e.x,e.y,o.x,o.y)}var Te=/\n/m,je=function(t){function e(e,o,r){t.call(this,o),this.content=e,this.data=r,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new ie)}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(Te),o=new Oe({vertical:!0,align:t.align,wrap:!1}),r=X({},t,{opacity:1,animation:null});this.container=o,this.append(o);for(var i=0;i<e.length;i++){var n=new Ae(e[i].trim(),r);o.append(n)}},e.prototype.reflow=function(e){var o=this.options,r=o.visual;if(this.container.options.align=o.align,r&&!this._boxReflow){var i=e;i.hasSize()||(this._boxReflow=!0,this.reflow(i),this._boxReflow=!1,i=this.box);var n=this.visual=r(this.visualContext(i));n&&(i=ke(n.clippedBBox()||new D.geometry.Rect),n.options.zIndex=o.zIndex),this.box=this.contentBox=this.paddingBox=i}else if(t.prototype.reflow.call(this,e),o.rotation){var a=$(o.margin),s=this.box.unpad(a);this.targetBox=e,this.normalBox=s.clone(),(s=this.rotate()).translate(a.left-a.right,a.top-a.bottom),this.rotatedBox=s.clone(),s.pad(a)}},e.prototype.createVisual=function(){var t=this.options;if(this.visual=new D.drawing.Group({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()){var e=D.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&&!xt(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,o={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(o,this.data),o},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,j,t.align),this.align(this.targetBox,E,t.vAlign),this.box},e.prototype.rotationTransform=function(){var t=this.options.rotation;if(!t)return null;var e=this.normalBox.center(),o=e.x,r=e.y,i=this.rotatedBox.center();return D.geometry.transform().translate(i.x-o,i.y-r).rotate(t,[o,r])},e}(ve);const Ee=je;var Me=function(t){function e(e){t.call(this,e),this._textBox=new Ee(this.options.text,Object.assign({},this.options,{vAlign:this.options.position})),this.append(this._textBox)}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,j)},e.buildTitle=function(t,o){var r,i=t;return"string"==typeof t&&(i={text:t}),(i=Object.assign({visible:!0},o,i))&&i.visible&&i.text&&(r=new e(i)),r},e.orderTitles=function(t){var e=[].concat(t),o=e.filter((function(t){return t&&t.options.position!==a})),r=e.filter((function(t){return t&&t.options.position===a}));return Ie(o),Ie(r),r.reverse(),o.concat(r)},e}(fe);function Ie(t){for(var e=1;e<t.length;e++){var o=t[e]._textBox,r=t[e-1]._textBox;r.options.margin=Object.assign($(r.options.margin),{bottom:0}),o.options.margin=Object.assign($(o.options.margin),{top:0})}}Bt(Me,{color:n,position:P,align:s,margin:$(5),padding:$(5)});const Le=Me;var Re=function(t){function e(e,o,r,i,n){t.call(this,o,n),this.text=o,this.value=e,this.index=r,this.dataItem=i,this.reflow(new ie)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.visualContext=function(e){var o=t.prototype.visualContext.call(this,e);return o.value=this.value,o.dataItem=this.dataItem,o.format=this.options.format,o.culture=this.options.culture,o},e.prototype.click=function(t,e){t.trigger("axisLabelClick",{element:Pt(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!==s){var e=this.normalBox.toRect(),o=this.rotationTransform();this.box=ke(e.bbox(o.matrix()))}else t.prototype.rotate.call(this);return this.box},e.prototype.rotationTransform=function(){var e=this.options,o=e.rotation;if(!o)return null;if(e.alignRotation===s)return t.prototype.rotationTransform.call(this);var r=D.geometry.transform().rotate(o).matrix(),i=this.normalBox.toRect(),n=this.targetBox.toRect(),l=e.rotationOrigin||P,p=l===P||l===a?j:E,c=l===P||l===a?E:j,h=l===P||l===g?n.origin:n.bottomRight(),u=i.topLeft().transformCopy(r),d=i.topRight().transformCopy(r),v=i.bottomRight().transformCopy(r),y=i.bottomLeft().transformCopy(r),m=D.geometry.Rect.fromPoints(u,d,v,y),b={};b[c]=n.origin[c]-m.origin[c];var _,x,w=Math.abs(u[c]+b[c]-h[c]),C=Math.abs(d[c]+b[c]-h[c]);Mt(w,f)===Mt(C,f)?(_=u,x=d):C<w?(_=d,x=v):(_=u,x=y);var O=_[p]+(x[p]-_[p])/2;return b[p]=n.center()[p]-O,D.geometry.transform().translate(b.x,b.y).rotate(o)},e}(Ee);Bt(Re,{_autoReflow:!1});const De=Re;var Be=function(t){function e(e,o,r){t.call(this,o),this.fields=e,this.chartService=r,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 o,r,i=e.label,n=e.icon,a=new ie,s=function(){return t},p=n.size,c=this.fields.text;if(xt(i)&&i.visible){var h=ot(i);h?c=h(this.fields):i.format&&(c=this.chartService.format.auto(i.format,c)),i.color||(i.color=i.position===y?"#fff":n.background),this.label=new Ee(c,X({},i)),this.label.aliasFor=s,i.position!==y||xt(p)||(n.type===l?p=Math.max(this.label.box.width(),this.label.box.height()):(o=this.label.box.width(),r=this.label.box.height()),a.wrap(this.label.box))}n.width=o||p||7,n.height=r||p||7;var u=new ge(X({},n));u.aliasFor=s,this.marker=u,this.append(u),this.label&&this.append(this.label),u.reflow(new ie),this.wrapperBox=a.wrap(u.box)}},e.prototype.reflow=function(t){var e,o,r,i=this,n=i.options,s=i.label,l=i.marker,p=i.wrapperBox,c=t.center(),h=n.line.length,u=n.position;n.visible&&(ct(u,[g,C])?u===g?(r=p.alignTo(t,u).translate(-h,t.center().y-p.center().y),n.line.visible&&(e=[t.x1,c.y],this.linePoints=[e,[r.x2,c.y]],o=r.clone().wrapPoint(e))):(r=p.alignTo(t,u).translate(h,t.center().y-p.center().y),n.line.visible&&(e=[t.x2,c.y],this.linePoints=[e,[r.x1,c.y]],o=r.clone().wrapPoint(e))):u===a?(r=p.alignTo(t,u).translate(t.center().x-p.center().x,h),n.line.visible&&(e=[c.x,t.y2],this.linePoints=[e,[c.x,r.y1]],o=r.clone().wrapPoint(e))):(r=p.alignTo(t,u).translate(t.center().x-p.center().x,-h),n.line.visible&&(e=[c.x,t.y1],this.linePoints=[e,[c.x,r.y2]],o=r.clone().wrapPoint(e))),l&&l.reflow(r),s&&(s.reflow(r),l&&(n.label.position===w&&s.box.alignTo(l.box,u),s.reflow(s.box))),this.contentBox=r,this.targetBox=t,this.box=o||r)},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,o=this.options,r=o.visual;o.visible&&r?(this.visual=r(Object.assign(this.fields,{sender:this.getSender(),rect:this.targetBox.toRect(),options:{background:o.background,border:o.background,icon:o.icon,label:o.label,line:o.line,position:o.position,visible:o.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=D.drawing.Path.fromPoints(this.linePoints,{stroke:{color:t.color,width:t.width,dashType:t.dashType}});B(e),this.visual.append(e)}},e.prototype.click=function(t,e){var o=this.eventArgs(e);t.trigger("noteClick",o)||e.preventDefault()},e.prototype.over=function(t,e){var o=this.eventArgs(e);t.trigger("noteHover",o)||e.preventDefault()},e.prototype.out=function(t,e){var o=this.eventArgs(e);t.trigger("noteLeave",o)},e.prototype.eventArgs=function(t){var e=this.options;return Object.assign(this.fields,{element:Pt(t),text:xt(e.label)?e.label.text:"",visual:this.visual})},e}(ve);Bt(Be,{icon:{visible:!0,type:l},label:{position:y,visible:!0,align:s,vAlign:s},line:{visible:!0},visible:!0,position:P,zIndex:2});const Ne=Be;var ze={format:function(t,e){return e},toString:function(t){return t},parseDate:function(t){return new Date(t)},firstDay:function(){return 0}},Ve=function(){},He={implementation:{configurable:!0}};Ve.register=function(t){ze=t},He.implementation.get=function(){return ze},Object.defineProperties(Ve,He);const Ue=Ve;var Fe=/\{(\d+)(:[^\}]+)?\}/g,Ge=function(t){this._intlService=t},We={intl:{configurable:!0}};We.intl.get=function(){return this._intlService||Ue.implementation},We.intl.set=function(t){this._intlService=t},Ge.prototype.auto=function(t){for(var e=[],o=arguments.length-1;o-- >0;)e[o]=arguments[o+1];var r=this.intl;return V(t)&&t.match(d)?r.format.apply(r,[t].concat(e)):r.toString(e[0],t)},Ge.prototype.localeAuto=function(t,e,o){var r=this.intl;return V(t)&&t.match(d)?t.replace(Fe,(function(t,i,n){var a=e[parseInt(i,10)];return r.toString(a,n?n.substring(1):"",o)})):r.toString(e[0],t,o)},Object.defineProperties(Ge.prototype,We);const Xe=Ge;var Ke=function(t,e){void 0===e&&(e={}),this._intlService=e.intlService,this.sender=e.sender||t,this.format=new Xe(e.intlService),this.chart=t,this.rtl=Boolean(e.rtl)},Ye={intl:{configurable:!0}};Ye.intl.get=function(){return this._intlService||Ue.implementation},Ye.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,Ye);const qe=Ke;var Ze,Qe=function(){};Qe.register=function(t){Ze=t},Qe.create=function(t,e){if(Ze)return Ze.create(t,e)};const $e=Qe;function Je(t,e){var o=t.tickX,r=t.tickY,i=t.position,n=new D.drawing.Path({stroke:{width:e.width,color:e.color}});return t.vertical?n.moveTo(o,i).lineTo(o+e.size,i):n.moveTo(i,r).lineTo(i,r+e.size),B(n),n}function to(t,e){var o=t.lineStart,r=t.lineEnd,i=t.position,n=new D.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});return t.vertical?n.moveTo(o,i).lineTo(r,i):n.moveTo(i,o).lineTo(i,r),B(n),n}var eo=function(t){function e(e,o){void 0===o&&(o=new qe),t.call(this,e),this.chartService=o,this.options.visible||(this.options=X({},this.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),this.options.minorTicks=X({},{color:this.options.line.color,width:this.options.line.width,visible:this.options.minorTickType!==_},this.options.minorTicks,{size:this.options.minorTickSize,align:this.options.minorTickType}),this.options.majorTicks=X({},{color:this.options.line.color,width:this.options.line.width,visible: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;K(e)&&(t.alignRotation=e.align,t.rotation=e.angle)},e.prototype.createLabels=function(){var t=this,e=this.options,o=e.vertical?C:s,r=X({},e.labels,{align:o,zIndex:e.zIndex}),i=Math.max(1,r.step);if(this.clearLabels(),r.visible){this.normalizeLabelRotation(r),"auto"===r.rotation&&(r.rotation=0,e.autoRotateLabels=!0);for(var n=this.labelsRange(),a=n.min;a<n.max;a+=i){var l={index:a,count:n.max},p=t.createAxisLabel(a,r,l);p&&(t.append(p),t.labels.push(p))}}},e.prototype.clearLabels=function(){this.children=at(this.children,(function(t){return!(t instanceof De)})),this.labels=[]},e.prototype.clearTitle=function(){var t=this;this.title&&(this.children=at(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,o=t.vertical,r=t.labels.mirror,i=r?e.x1:e.x2,n=r?e.y2:e.y1,a=t.line.width||0;return o?new ie(i,e.y1,i,e.y2-a):new ie(e.x1,n,e.x2-a,n)},e.prototype.createTitle=function(){var t=this.options,e=X({rotation:t.vertical?-90:0,text:"",zIndex:1,visualSize:!0},t.title);if(e.visible&&e.text){var o=new Ee(e.text,e);this.append(o),this.title=o}},e.prototype.createNotes=function(){var t=this,e=this.options,o=e.notes,r=o.data||[];this.notes=[];for(var i=0;i<r.length;i++){var n=X({},o,r[i]);n.value=t.parseNoteValue(n.value);var s=new Ne({value:n.value,text:n.label.text,dataItem:n},n,t.chartService);s.options.visible&&(xt(s.options.position)?e.vertical&&!ct(s.options.position,[g,C])?s.options.position=e.reverse?g:C:e.vertical||ct(s.options.position,[P,a])||(s.options.position=e.reverse?a:P):e.vertical?s.options.position=e.reverse?g:C:s.options.position=e.reverse?a:P,t.append(s),t.notes.push(s))}},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 D.drawing.Group({zIndex:-2}),this.appendVisual(this._gridLines)),t},e.prototype.createTicks=function(t){var e=this.options,o=this.lineBox(),r=e.labels.mirror,i=e.majorTicks.visible?e.majorUnit:0,n={vertical:e.vertical};function a(e,i,a){var s=e.length,l=Math.max(1,i.step);if(i.visible)for(var p=i.skip;p<s;p+=l)xt(a)&&p%a==0||(n.tickX=r?o.x2:o.x2-i.size,n.tickY=r?o.y1-i.size:o.y1,n.position=e[p],t.append(Je(n,i)))}a(this.getMajorTickPositions(),e.majorTicks),a(this.getMinorTickPositions(),e.minorTicks,i/e.minorUnit)},e.prototype.createLine=function(){var t=this.options,e=t.line,o=this.lineBox();if(e.width>0&&e.visible){var r=new D.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});r.moveTo(o.x1,o.y1).lineTo(o.x2,o.y2),t._alignLines&&B(r);var i=this._lineGroup=new D.drawing.Group;i.append(r),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,o=t.background;o&&(this._backgroundPath=D.drawing.Path.fromRect(e.toRect(),{fill:{color:o},stroke:null}),this.visual.append(this._backgroundPath))},e.prototype.createPlotBands=function(){var t=this,e=this.options,o=e.plotBands||[],r=e.vertical,i=this.plotArea;if(0!==o.length){for(var n=this._plotbandGroup=new D.drawing.Group({zIndex:-1}),a=at(this.pane.axes,(function(e){return e.options.vertical!==t.options.vertical}))[0],s=0;s<o.length;s++){var l=o[s],p=void 0,c=void 0,h=l.label,u=void 0;if(r?(p=(a||i.axisX).lineBox(),c=t.getSlot(l.from,l.to,!0)):(p=t.getSlot(l.from,l.to,!0),c=(a||i.axisY).lineBox()),h&&(h.vAlign=h.position||g,u=t.createPlotBandLabel(h,l,new ie(p.x1,c.y1,p.x2,c.y2))),0!==p.width()&&0!==c.height()){var f=new D.geometry.Rect([p.x1,c.y1],[p.width(),c.height()]),d=D.drawing.Path.fromRect(f,{fill:{color:l.color,opacity:l.opacity},stroke:null});n.append(d),u&&n.append(u)}}this.appendVisual(n)}},e.prototype.createPlotBandLabel=function(t,e,o){if(!1===t.visible)return null;var r,i=t.text;if(xt(t)&&t.visible){var n=ot(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(r=new Ee(i,t)).reflow(o),r.renderVisual(),r.visual},e.prototype.createGridLines=function(t){var e=this.options,o=e.minorGridLines,r=e.majorGridLines,i=e.minorUnit,n=e.vertical,a=t.options.line.visible,s=r.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,o){var r=t.length,i=Math.max(1,e.step);if(e.visible)for(var n=e.skip;n<r;n+=i){var s=Mt(t[n]);ct(s,h)||n%o==0||a&&p===s||(c.position=s,u.append(to(c,e)),h.push(s))}}return f(this.getMajorTickPositions(),r),f(this.getMinorTickPositions(),o,s/i),u.children},e.prototype.reflow=function(t){for(var e=this,o=e.options,r=e.labels,i=e.title,n=o.vertical,a=r.length,s=n?T:v,l=i?i.box[s]():0,p=this.getActualTickSize()+o.margin+l,c=((this.getRoot()||{}).box||t)[s](),h=0,u=0;u<a;u++){var f=r[u].box[s]();f+p<=c&&(h=Math.max(h,f))}this.box=n?new ie(t.x1,t.y1,t.x1+h+p,t.y2):new ie(t.x1,t.y1,t.x2,t.y1+h+p),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,o=this.labelsBetweenTicks(),r=t.vertical,i=t.labels.mirror,n=this.getLabelsTickPositions(),a=0;a<e.length;a++){var s=e[a],l=this.labelTickIndex(s),p=r?s.box.height():s.box.width(),c=n[l],h=n[l+1],u=void 0,f=void 0;r?f=u=o?c+(h-c)/2-p/2:c-p/2:o?(u=c,f=h):f=(u=c-p/2)+p,this.positionLabel(s,i,u,f)}},e.prototype.positionLabel=function(t,e,o,r){void 0===r&&(r=o);var i,n=this.options,s=n.vertical,l=this.lineBox(),p=this.getActualTickSize()+n.margin;if(s){var c=l.x2;e?(c+=p,t.options.rotationOrigin=g):(c-=p+t.box.width(),t.options.rotationOrigin=C),i=t.box.move(c,o)}else{var h=l.y1;e?(h-=p+t.box.height(),t.options.rotationOrigin=a):(h+=p,t.options.rotationOrigin=P),i=new ie(o,h,r,h+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,o=Math.min(e.length,t.length-1),r=0,i=0;i<o;i++){var n=Math.abs(t[i+1]-t[i]),a=e[i].box,s=this.autoRotateLabelAngle(a,n);if(0!==s&&(r=s),-90===r)break}if(0!==r){for(var l=0;l<e.length;l++)e[l].options.rotation=r,e[l].reflow(new ie);return!0}},e.prototype.arrangeTitle=function(){var t=this.options,e=this.title,o=t.labels.mirror,r=t.vertical;e&&(r?(e.options.align=o?C:g,e.options.vAlign=e.options.position):(e.options.align=e.options.position,e.options.vAlign=o?P:a),e.reflow(this.box))},e.prototype.arrangeNotes=function(){for(var t=this,e=0;e<this.notes.length;e++){var o=t.notes[e],r=o.options.value,i=void 0;xt(r)?(t.shouldRenderNote(r)?o.show():o.hide(),i=t.noteSlot(r)):o.hide(),o.reflow(i||t.lineBox())}},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.alignTo=function(t){var e=t.lineBox(),o=this.options.vertical,r=o?E:j;this.box.snapTo(e,r),o?this.box.shrink(0,this.lineBox().height()-e.height()):this.box.shrink(this.lineBox().width()-e.width(),0),this.box[r+1]-=this.lineBox()[r+1]-e[r+1],this.box[r+2]-=this.lineBox()[r+2]-e[r+2]},e.prototype.axisLabelText=function(t,e,o){var r=this,i=ot(e),n=function(){return e.format?r.chartService.format.localeAuto(e.format,[t],e.culture):t};return i?i(Object.assign({},o,{get text(){return n()},value:t,format:e.format,culture:e.culture})):n()},e.prototype.slot=function(t,e,o){var r=this.getSlot(t,e,o);if(r)return r.toRect()},e.prototype.contentBox=function(){var t=this.box.clone(),e=this.labels;if(e.length){var o=this.options.vertical?E:j;if(this.chartService.isPannable(o)){var r=this.maxLabelOffset();t[o+1]-=r.start,t[o+2]+=r.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,o=t.reverse,r=this.labelsBetweenTicks(),i=this.getLabelsTickPositions(),n=e?E:j,a=this.labels,s=o?1:0,l=o?0:1,p=0,c=0,h=0;h<a.length;h++){var u=a[h],f=this.labelTickIndex(u),d=void 0,v=void 0;r?(d=i[f+s],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,o,r,i){var n=this.options;if(t<o&&i<0&&(!xt(n.min)||n.min<=o)||r<e&&i>0&&(!xt(n.max)||r<=n.max))return null;if(e<o&&i>0||r<t&&i<0)return{min:t,max:e};var a=e-t,s=t,l=e;return t<o&&i<0?(s=Tt(t,o,r),l=Tt(t+a,o+a,r)):e>r&&i>0&&(l=Tt(e,o,r),s=Tt(e-a,o,r-a)),{min:s,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(),o=t?e.height():e.width(),r=t?E:j,i=this.lineDir(),n=r+(1===i?1:2).toString();return{axis:r,axisOrigin:n,axisDir:i,lineBox:e,lineSize:o,lineStart:e[n]}},e.prototype.pointOffset=function(t){var e=this.lineInfo(),o=e.axis,r=e.axisDir,i=e.axisOrigin,n=e.lineBox,a=e.lineSize;return(r>0?t[o]-n[i]:n[i]-t[o])/a},e.prototype.scaleToDelta=function(t,e){var o=Tt(t,-.999,.999);return o>0?e*Math.min(1,o):e-e/(1+o)},e.prototype.labelsBetweenTicks=function(){return!this.options.justified},e.prototype.prepareUserOptions=function(){},e}(fe);Bt(eo,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:n,visible:!0},title:{visible:!0,position:s},majorTicks:{align:w,size:4,skip:0,step:1},minorTicks:{align:w,size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:w,minorTickType:_,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});const oo=eo;var ro="milliseconds",io="seconds",no="minutes",ao="hours",so="days",lo="weeks",po="months",co="years",ho=1e3,uo=60*ho,fo=60*uo,vo=24*fo,yo=7*vo,go=31*vo,mo=365*vo,bo={years:mo,months:go,weeks:yo,days:vo,hours:fo,minutes:uo,seconds:ho,milliseconds:1};function _o(t,e){return t.getTime()-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*uo}function xo(t,e){return new Date(t.getTime()+e)}function wo(t){var e;return t instanceof Date?e=t:t&&(e=new Date(t)),e}function Co(t,e){return 0===e&&23===t.getHours()&&(t.setHours(t.getHours()+2),!0)}function Oo(t,e,o,r){var i=t;if(t){var n=wo(t),a=n.getHours();o===co?Co(i=new Date(n.getFullYear()+e,0,1),0):o===po?Co(i=new Date(n.getFullYear(),n.getMonth()+e,1),a):o===lo?(i=Oo(function(t,e){void 0===e&&(e=0);var o=0,r=t.getDay();if(!isNaN(r))for(;r!==e;)0===r?r=6:r--,o++;return xo(t,-o*vo)}(n,r),7*e,so),Co(i,a)):o===so?Co(i=new Date(n.getFullYear(),n.getMonth(),n.getDate()+e),a):o===ao?i=function(t,e){var o=new Date(t);o.setMinutes(0,0,0);var r=(t.getTimezoneOffset()-o.getTimezoneOffset())*uo;return xo(o,r+e*fo)}(n,e):o===no?(i=xo(n,e*uo)).getSeconds()>0&&i.setSeconds(0):o===io?i=xo(n,e*ho):o===ro&&(i=xo(n,e)),o!==ro&&i.getMilliseconds()>0&&i.setMilliseconds(0)}return i}function So(t,e,o){return Oo(wo(t),0,e,o)}function Po(t,e,o){var r=wo(t);return r&&So(r,e,o).getTime()===r.getTime()?r:Oo(r,1,e,o)}function Ao(t,e){return t&&e?t.getTime()-e.getTime():-1}function ko(t,e){return t.getTime()-e}function To(t){if(M(t)){for(var e=[],o=0;o<t.length;o++)e.push(To(t[o]));return e}if(t)return wo(t).getTime()}function jo(t,e){return t&&e?To(t)===To(e):t===e}function Eo(t,e,o){return _o(t,e)/bo[o]}function Mo(t,e,o,r){var i=wo(t),n=wo(e);return(o===po?i.getMonth()-n.getMonth()+12*(i.getFullYear()-n.getFullYear())+Eo(i,new Date(i.getFullYear(),i.getMonth()),so)/new Date(i.getFullYear(),i.getMonth()+1,0).getDate():o===co?i.getFullYear()-n.getFullYear()+Mo(i,new Date(i.getFullYear(),0),po,1)/12:o===so||o===lo?Eo(i,n,o):ko(i,e)/bo[o])/r}function Io(t,e,o){return o===co?e.getFullYear()-t.getFullYear():o===po?12*Io(t,e,co)+e.getMonth()-t.getMonth():o===so?Math.floor(ko(e,t)/vo):Math.floor(ko(e,t)/bo[o])}function Lo(t,e){return V(e)&&t.parseDate(e)||wo(e)}function Ro(t,e){if(M(e)){for(var o=[],r=0;r<e.length;r++)o.push(Lo(t,e[r]));return o}return Lo(t,e)}function Do(t,e){return z(t.weekStartDay)?t.weekStartDay:e&&e.firstDay?e.firstDay():0}var 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.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||[],o=xt(t.min),r=xt(t.max);if(t.srcCategories=t.categories=e,(o||r)&&e.length){var i,n=o?Math.floor(t.min):0;i=r?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:z(t.min)?t.min%1:0,max:z(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,o=this.options,r=z(o.min)?o.min:0;if(e=z(o.max)?o.max:z(o.min)?r+o.categories.length:this.totalRange().max||1,t){var i=this.totalRange();r=Tt(r,0,i.max),e=Tt(e,0,i.max)}return{min:r,max:e}},e.prototype.range=function(){var t=this.options;return{min:z(t.min)?t.min:0,max:z(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,o=t.max,r=this.lineBox();return{scale:(this.options.vertical?r.height():r.width())/(o-e||1)*(this.options.reverse?-1:1),box:r,min:e,max:o}},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 o=this.options.vertical?E:j,r=t[o+1],i=t[o+2],n=e[0],a=kt(e);(n.box[o+1]>i||n.box[o+2]<r)&&(n.options.visible=!1),(a.box[o+1]>i||a.box[o+2]<r)&&(a.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(),o=e.min,r=e.max,i=Math.ceil(r),n=Math.floor(o),a=[];n<=i;)a.push(n),n+=t;return a},e.prototype.getTickPositions=function(t){for(var e=this.options,o=e.vertical,r=e.reverse,i=this.scaleOptions(),n=i.scale,a=i.box,s=i.min,l=a[(o?E:j)+(r?2:1)],c=this.tickIndices(t),h=[],u=0;u<c.length;u++)h.push(l+Mt(n*(c[u]-s),p));return h},e.prototype.getTicks=function(){var t=this.options,e=this._ticks,o=this.rangeIndices(),r=this.lineBox(),i=r.getHash()+o.min+","+o.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,r),e.minorTicks=n?this.filterOutOfRangePositions(this.getTickPositions(.5),r):[]}return e},e.prototype.filterOutOfRangePositions=function(t,e){if(!t.length)return t;for(var o=this.options.vertical?E:j,r=function(t){return e[o+1]<=t&&t<=e[o+2]},i=t.length-1,n=0;!r(t[n])&&n<=i;)n++;for(var a=i;!r(t[a])&&a>=0;)a--;return t.slice(n,a+1)},e.prototype.lineInfo=function(){var t=this.options,e=t.vertical,o=t.reverse,r=this.lineBox(),i=e?r.height():r.width(),n=e?E:j,a=o?-1:1,s=n+(1===a?1:2).toString();return{axis:n,axisOrigin:s,axisDir:a,lineBox:r,lineSize:i,lineStart:r[s]}},e.prototype.lineDir=function(){return this.options.reverse?-1:1},e.prototype.getSlot=function(t,e,o){var r=this.options,i=r.reverse,n=r.justified,a=this.scaleOptions(),s=a.scale,l=a.box,p=a.min,c=this.lineInfo(),h=c.axis,u=c.lineStart,f=l.clone(),d=!xt(e),v=Lt(t,0),y=Lt(e,v);y=Math.max(y-1,v);var g=u+(v-p)*s,m=u+((y=Math.max(v,y))+1-p)*s;return d&&n&&(m=g),o&&(g=Tt(g,l[h+1],l[h+2]),m=Tt(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?E:j,o=this.lineBox(),r=t.clone();return r[e+1]=Tt(t[e+1],o[e+1],o[e+2]),r[e+2]=Tt(t[e+2],o[e+1],o[e+2]),r},e.prototype.slot=function(e,o,r){var i=Math.floor(this.options.min||0),n=e,a=o;return"string"==typeof n?n=this.categoryIndex(n):z(n)&&(n-=i),"string"==typeof a?a=this.categoryIndex(a):z(a)&&(a-=i),t.prototype.slot.call(this,n,a,r)},e.prototype.pointCategoryIndex=function(t){var e=this.options,o=e.reverse,r=e.justified,i=e.vertical?E:j,n=this.scaleOptions(),a=n.scale,s=n.box,l=n.min,p=n.max,c=o?p:l,h=s[i+1],u=s[i+2],f=t[i];if(f<h||f>u)return null;var d=c+(f-h)/a,v=d%1;return r?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 o=this.options;return(e?o.srcCategories:o.categories)[t]},e.prototype.categoriesCount=function(){return(this.options.categories||[]).length},e.prototype.translateRange=function(t){var e=this.options,o=this.lineBox(),r=e.vertical?o.height():o.width(),i=e.categories.length,n=Mt(t/(r/i),f);return{min:n,max:i+n}},e.prototype.scaleRange=function(t,e){var o=Math.abs(this.pointOffset(e)),r=this.totalRangeIndices(),i=r.max-r.min,n=this.scaleToDelta(t,i),a=o*n,s=(1-o)*n,l=r.min+a,p=r.max-s;return p-l<.1&&(p=l+.1),{min:l,max:p}},e.prototype.zoomRange=function(t,e){var o=this.totalRange(),r=o.min,i=o.max,n=this.scaleRange(t,e);return{min:Tt(n.min,r,i),max:Tt(n.max,r,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,o=t.labels,r=this.totalRangeIndices(!0),i=r.min,n=r.max,a=Math.floor(i);return e?(i=Math.ceil(i),n=Math.floor(n)):(i=Math.floor(i),n=Math.ceil(n)),{min:(i>o.skip?o.skip+o.step*Math.ceil((i-o.skip)/o.step):o.skip)-a,max:(t.categories.length?n+(e?1:0):0)-a}},e.prototype.createAxisLabel=function(t,e,o){var r=this.options,i=r.dataItems?r.dataItems[t]:null,n=Lt(r.categories[t],"");o.dataItem=i;var a=this.axisLabelText(n,e,o);return new De(n,a,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,o=t-Math.floor(e.min||0);return this.getSlot(o)},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 o=this.options.vertical?E:j,r=e[o+1],i=e[o+2],n=0;n<t.length;n++){var a=t[n];a.box&&(i<a.box[o+1]||a.box[o+2]<r)&&a.hide()}},e.prototype.pan=function(t){var e=this.totalRangeIndices(!0),o=this.scaleOptions().scale,r=Mt(t/o,f),i=this.totalRange(),n=e.min+r,a=e.max+r;return this.limitRange(n,a,0,i.max,r)},e.prototype.pointsRange=function(t,e){var o=this.options,r=o.reverse,i=o.vertical?E:j,n=this.totalRangeIndices(!0),a=this.scaleOptions(),s=a.scale,l=a.box[i+(r?2:1)],p=t[i]-l,c=e[i]-l,h=n.min+p/s,u=n.min+c/s,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,o=this._categoriesMap?this._categoriesMap.get(t):function(t,e){if(t instanceof Date){for(var o=e.length,r=0;r<o;r++)if(jo(e[r],t))return r;return-1}return e.indexOf(t)}(t,e.srcCategories);return o},e.prototype.currentRangeIndices=function(){var t=this.options,e=0;return z(t.min)&&(e=Math.floor(t.min)),{min:e,max:z(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 pt,e=this.options.srcCategories,o=0;o<e.length;o++)t.set(e[o],o)},e.prototype.totalCount=function(){return Math.max(this.options.srcCategories.length,this._seriesMax||0)},e}(oo);Bt(Bo,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:n},labels:{zIndex:1},justified:!1,_deferLabels:!0});const No=Bo;var zo={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"},Vo=[ro,io,no,ao,so,lo,po,co],Ho="fit";function Uo(t){var e=t._range;return e||((e=t._range=Nt(t)).min=wo(e.min),e.max=wo(e.max)),e}var Fo=function(t){this.options=t};Fo.prototype.displayIndices=function(){return{min:0,max:1}},Fo.prototype.displayRange=function(){return{}},Fo.prototype.total=function(){return{}},Fo.prototype.valueRange=function(){return{}},Fo.prototype.valueIndex=function(){return-1},Fo.prototype.values=function(){return[]},Fo.prototype.totalIndex=function(){return-1},Fo.prototype.valuesCount=function(){return 0},Fo.prototype.totalCount=function(){return 0},Fo.prototype.dateAt=function(){return null};var Go=function(t,e,o){this.options=o,o.baseUnitStep=o.baseUnitStep||1;var r=o.roundToBaseUnit,i=o.justified;this.start=Oo(t,0,o.baseUnit,o.weekStartDay);var n=this.roundToTotalStep(e),a=!i&&jo(e,n)&&!o.justifyEnd;this.end=this.roundToTotalStep(e,!i,a?1:0);var s=o.min||t;this.valueStart=this.roundToTotalStep(s),this.displayStart=r?this.valueStart:s;var l=o.max;if(l){var p=!i&&jo(l,this.roundToTotalStep(l))?-1:0;this.valueEnd=this.roundToTotalStep(l,!1,p),this.displayEnd=r?this.roundToTotalStep(l,!i):o.max}else this.valueEnd=n,this.displayEnd=r||a?this.end:e;this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))};function Wo(t,e,o){for(var r,i,n,a=Uo(t.categories),s=(t.max||a.max)-(t.min||a.min),l=t.autoBaseUnitSteps,p=t.maxDateGroups,c=t.baseUnit===Ho,h=e?Vo.indexOf(e):0,u=c?Vo[h++]:t.baseUnit,f=s/bo[u],d=f;!i||f>=p;){r=r||l[u].slice(0);do{n=r.shift()}while(n&&e===u&&n<o);if(n)f=d/(i=n);else{if(u===kt(Vo)){i=Math.ceil(d/p);break}if(!c){f>p&&(i=Math.ceil(d/p));break}u=Vo[h++]||kt(Vo),d=s/bo[u],r=null}}t.baseUnitStep=i,t.baseUnit=u}Go.prototype.displayRange=function(){return{min:this.displayStart,max:this.displayEnd}},Go.prototype.displayIndices=function(){if(!this._indices){var t=this.options,e=t.baseUnit,o=t.baseUnitStep,r=Mo(this.displayStart,this.valueStart,e,o),i=Mo(this.displayEnd,this.valueStart,e,o);this._indices={min:r,max:i}}return this._indices},Go.prototype.total=function(){return{min:this.start,max:this.end}},Go.prototype.totalCount=function(){return this.totalIndex(this.end)+(this.options.justified?1:0)},Go.prototype.valueRange=function(){return{min:this.valueStart,max:this.valueEnd}},Go.prototype.valueIndex=function(t){var e=this.options;return Math.floor(Mo(t,this.valueStart,e.baseUnit,e.baseUnitStep))},Go.prototype.totalIndex=function(t){var e=this.options;return Math.floor(Mo(t,this.start,e.baseUnit,e.baseUnitStep))},Go.prototype.dateIndex=function(t){var e=this.options;return Mo(t,this.valueStart,e.baseUnit,e.baseUnitStep)},Go.prototype.valuesCount=function(){return this.valueIndex(this.valueEnd)+1},Go.prototype.values=function(){var t=this._values;if(!t){var e=this.options,o=this.valueRange();this._values=t=[];for(var r=o.min;r<=o.max;)t.push(r),r=Oo(r,e.baseUnitStep,e.baseUnit,e.weekStartDay)}return t},Go.prototype.dateAt=function(t,e){var o=this.options;return Oo(e?this.start:this.valueStart,o.baseUnitStep*t,o.baseUnit,o.weekStartDay)},Go.prototype.roundToTotalStep=function(t,e,o){var r=this.options,i=r.baseUnit,n=r.baseUnitStep,a=r.weekStartDay,s=this.start,l=Mo(t,s,i,n),p=e?Math.ceil(l):Math.floor(l);return o&&(p+=o),Oo(s,p*n,i,a)};var Xo=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,o=e.intl,r=this.options,i=r.categories||[];if(i._parsed||((i=Ro(o,i))._parsed=!0),r=X({roundToBaseUnit:!0},r,{categories:i,min:Lo(o,r.min),max:Lo(o,r.max),weekStartDay:Do(r,o)}),e.panning&&e.isPannable(r.vertical?E:j)&&(r.roundToBaseUnit=!1),r.userSetBaseUnit=r.userSetBaseUnit||r.baseUnit,r.userSetBaseUnitStep=r.userSetBaseUnitStep||r.baseUnitStep,this.options=r,r.srcCategories=i,i.length>0){var n=Uo(i),a=r.maxDivisions;if(this.dataRange=new Go(n.min,n.max,function(t){var e=(t.baseUnit||"").toLowerCase();return e!==Ho&&!ct(e,Vo)&&function(t){for(var e,o,r=t.categories,i=xt(r)?r.length:0,n=m,a=0;a<i;a++){var s=r[a];if(s&&e){var l=_o(s,e);l>0&&(o=(n=Math.min(n,l))>=mo?co:n>=go-3*vo?po:n>=yo?lo:n>=vo?so:n>=fo?ao:n>=uo?no:io)}e=s}t.baseUnit=o||so}(t),e!==Ho&&"auto"!==t.baseUnitStep||Wo(t),t}(r)),a){var s=this.dataRange.displayRange(),l=Object.assign({},r,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:s.min,max:s.max,maxDateGroups:a}),p=this.dataRange.options;Wo(l,p.baseUnit,p.baseUnitStep),this.divisionRange=new Go(n.min,n.max,l)}else this.divisionRange=this.dataRange}else r.baseUnit=r.baseUnit||so,this.dataRange=this.divisionRange=new Fo(r);this.rangeLabels=[]},e.prototype.tickIndices=function(e){var o=this.dataRange,r=this.divisionRange,i=r.valuesCount();if(!this.options.maxDivisions||!i)return t.prototype.tickIndices.call(this,e);var n=[],a=r.values(),s=0;this.options.justified||(a=a.concat(r.dateAt(i)),s=.5);for(var l=0;l<a.length;l++)if(n.push(o.dateIndex(a[l])+s),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(),o=this.options.categories||[];return Ao(t,e.min)>=0&&Ao(t,e.max)<=0&&o.length},e.prototype.parseNoteValue=function(t){return Lo(this.chartService.intl,t)},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.translateRange=function(t){var e=this.options,o=e.baseUnit,r=e.weekStartDay,i=e.vertical,n=this.lineBox(),a=i?n.height():n.width(),s=this.range(),l=a/(s.max-s.min),p=Mt(t/l,f);if(s.min&&s.max){var c=xo(e.min||s.min,p),h=xo(e.max||s.max,p);s={min:Oo(c,0,o,r),max:Oo(h,0,o,r)}}return s},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,o=this.lineBox(),r=e.vertical?o.height():o.width(),i=this.dataRange.displayRange(),n=i.min,a=i.max,s=this.dataRange.total(),l=Mt(t/(r/(a-n)),f)*(e.reverse?-1:1),p=xo(n,l),c=xo(a,l),h=this.limitRange(To(p),To(c),To(s.min),To(s.max),l);return h?(h.min=wo(h.min),h.max=wo(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,o){if(this.isEmpty())return null;var r=t.prototype.pointsRange.call(this,e,o),i=this.dataRange.displayRange(),n=this.dataRange.displayIndices(),a=ko(i.max,i.min)/(n.max-n.min),s=this.options;return{min:xo(i.min,r.min*a),max:xo(i.min,r.max*a),baseUnit:s.userSetBaseUnit||s.baseUnit,baseUnitStep:s.userSetBaseUnitStep||s.baseUnitStep}},e.prototype.scaleRange=function(t,e){if(this.isEmpty())return{};var o=this.options,r=o.userSetBaseUnit===Ho,i=this.dataRange.total(),n=this.dataRange.displayRange(),a=n.min,s=n.max,l=Math.abs(this.pointOffset(e)),p=s-a,c=this.scaleToDelta(t,p),h=Math.round(l*c),u=Math.round((1-l)*c),f=this.dataRange.options.baseUnit,d=new Date(a.getTime()+h),v=new Date(s.getTime()-u);if(r){var y,g,m=o.autoBaseUnitSteps,b=o.maxDateGroups,_=kt(m[f])*b*bo[f],x=ko(s,a),w=ko(v,d),C=Vo.indexOf(f);if(w<bo[f]&&f!==ro)f=Vo[C-1],d=xo(a,g=(x-(b-1)*(y=kt(m[f]))*bo[f])/2),v=xo(s,-g);else if(w>_&&f!==co){var O=0;do{C++,f=Vo[C],O=0,g=2*bo[f];do{y=m[f][O],O++}while(O<m[f].length&&g*y<x)}while(f!==co&&g*y<x);(g=(g*y-x)/2)>0&&(d=xo(a,-g),v=xo(s,g),d=xo(d,Tt(v,i.min,i.max)-v),v=xo(v,Tt(d,i.min,i.max)-d))}}return d&&v&&ko(v,d)>0?{min:d,max:v,baseUnit:o.userSetBaseUnit||o.baseUnit,baseUnitStep:o.userSetBaseUnitStep||o.baseUnitStep}:void 0},e.prototype.zoomRange=function(t,e){var o=this.dataRange.total(),r=this.scaleRange(t,e);return r&&(r.min<o.min&&(r.min=o.min),r.max>o.max&&(r.max=o.max)),r},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 o=this.lineBox(),r=t.vertical,i=t.rangeLabels.mirror||t.labels.mirror,n=e[0];if(n){var a=r?o.y1-n.box.height()/2:o.x1;this.positionLabel(n,i,a)}var s=e[1];if(s){var l=r?o.y2-s.box.height()/2:o.x2;this.positionLabel(s,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 o=t[0];if(o&&o.options.visible)for(var r=0;r<e.length&&a(o,e[r]);r++);var i=t[1];if(i&&i.options.visible)for(var n=e.length-1;n>0&&a(i,e[n]);--n);}function a(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),o=this.rangeLabels,r=0;r<o.length;r++){var i=o[r];i.options.visible&&e.wrap(i.box)}return e},e.prototype.createAxisLabel=function(t,e,o){void 0===o&&(o={});var r=this.options,i=r.dataItems&&!r.maxDivisions?r.dataItems[t]:null,n=this.divisionRange.dateAt(t),a=e.dateFormats[this.divisionRange.options.baseUnit];e.format=e.format||a,o.dataItem=i;var s=this.axisLabelText(n,e,o);if(s)return new De(n,s,t,i,e)},e.prototype.createRangeLabels=function(){var t=this,e=this.divisionRange,o=e.displayStart,r=e.displayEnd,i=this.options,n=Object.assign({},i.labels,i.rangeLabels,{align:s,zIndex:i.zIndex});if(!0===n.visible){this.normalizeLabelRotation(n),n.alignRotation=s,"auto"===n.rotation&&(n.rotation=0,i.autoRotateRangeLabels=!0);var a=n.dateFormats[this.divisionRange.options.baseUnit];n.format=n.format||a;var l=function(e,o,r){if(r){var i=new De(o,r,e,null,n);t.append(i),t.rangeLabels.push(i)}};l(0,o,this.axisLabelText(o,n,{index:0,count:2})),l(1,r,this.axisLabelText(r,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 o=function(e,o,r){var i=2*Math.abs(o[r+1]-o[r]),n=t.autoRotateLabelAngle(e.box,i);0!==n&&(e.options.rotation=n,e.reflow(new ie))},r=this.getMajorTickPositions();o(e[0],r,0),o(e[1],r,r.length-2)}},e.prototype.categoryIndex=function(t){return this.dataRange.valueIndex(t)},e.prototype.slot=function(t,e,o){var r=this.dataRange,i=t,n=e;i instanceof Date&&(i=r.dateIndex(i)),n instanceof Date&&(n=r.dateIndex(n));var a=this.getSlot(i,n,o);if(a)return a.toRect()},e.prototype.getSlot=function(e,o,r){var i=e,n=o;return typeof i===x&&(i=this.categoryIndex(i)),typeof n===x&&(n=this.categoryIndex(n)),t.prototype.getSlot.call(this,i,n,r)},e.prototype.valueRange=function(){var t=Uo(this.options.srcCategories);return{min:wo(t.min),max:wo(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=Uo(t.srcCategories);return new Go(e.min,e.max,Object.assign({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:!1})).displayRange()},e}(No);Bt(Xo,{type:h,labels:{dateFormats:zo},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});const Ko=Xo;function Yo(t,e){return Mt(Math.floor(t/e)*e,f)}function qo(t,e){return Mt(Math.ceil(t/e)*e,f)}function Zo(t){return Math.max(Math.min(t,3e5),-3e5)}var Qo=Math.pow(10,1-f),$o=function(t){function e(e,o,r,i){t.call(this,Object.assign({},r,{seriesMin:e,seriesMax:o}),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,o){var r=o.narrowRange,i=function(t,e,o){if(!t&&!e)return 0;var r;if(t>=0&&e>=0){var i=t===e?0:t;if(!1===o||!o&&(e-i)/e>.2)return 0;r=Math.max(0,i-(e-i)/2)}else r=t;return r}(t,e,r),n=function(t,e,o){if(!t&&!e)return 1;var r;if(t<=0&&e<=0){var i=t===e?0:e,n=Math.abs((i-t)/i);if(!1===o||!o&&n>.2)return 0;r=Math.min(0,i-(t-i)/2)}else r=e;return r}(t,e,r),a=te(i,n),s={majorUnit:a};return!1!==o.roundToMajorUnit&&(i<0&&Jo(i,a,1/3)&&(i-=a),n>0&&Jo(n,a,1/3)&&(n+=a)),s.min=Yo(i,a),s.max=qo(n,a),s}(t.seriesMin,t.seriesMax,t);return this.totalOptions=function(t,e){return{min:xt(e.min)?Math.min(t.min,e.min):t.min,max:xt(e.max)?Math.max(t.max,e.max):t.max,majorUnit:t.majorUnit}}(e,t),function(t,e){var o,r,i=e;if(e){!function(t,e){for(var o=0;o<e.length;o++){var r=e[o];null===t[r]&&(t[r]=void 0)}}(e,["min","max"]),o=xt(e.min),r=xt(e.max);var n=o||r;n&&e.min===e.max&&(e.min>0?e.min=0:e.max=1),e.majorUnit?(t.min=Yo(t.min,e.majorUnit),t.max=qo(t.max,e.majorUnit)):n&&(i=X(t,e),t.majorUnit=te(i.min,i.max))}t.minorUnit=(i.majorUnit||t.majorUnit)/5;var a=X(t,i);return a.min>=a.max&&(o&&!r?a.max=a.min+a.majorUnit:!o&&r&&(a.min=a.max-a.majorUnit)),a}(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,o=e.max-e.min;return Math.floor(Mt(o/t,p))+1},e.prototype.getTickPositions=function(t,e){var o=this.options,r=this.lineInfo(),i=r.axisDir,n=r.axisOrigin,a=r.lineBox,s=t*(r.lineSize/(o.max-o.min)),l=this.getDivisions(t),c=[],h=a[n],u=0;e&&(u=e/t);for(var f=0;f<l;f++)f%u!=0&&c.push(Mt(h,p)),h+=s*i;return c},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,o){void 0===o&&(o=!1);var r=this.options,i=this.lineInfo(),n=i.axis,a=i.axisDir,s=i.lineBox,l=i.lineSize,p=i.lineStart,c=a*(l/(r.max-r.min)),h=Lt(t,e||0),u=Lt(e,t||0);o&&(h=Tt(h,r.min,r.max),u=Tt(u,r.min,r.max));var f=Math.min(h,u)-r.min,d=Math.max(h,u)-r.min,v=new ie(s.x1,s.y1,s.x1,s.y1);return v[n+1]=Zo(p+c*(a>0?f:d)),v[n+2]=Zo(p+c*(a>0?d:f)),v},e.prototype.getValue=function(t){var e=this.options,o=Number(e.max),r=Number(e.min),i=this.pointOffset(t);return i<0||i>1?null:Mt(r+i*(o-r),f)},e.prototype.translateRange=function(t){var e=this.options,o=e.vertical,r=e.reverse,i=e.max,n=e.min,a=this.lineInfo().lineSize,s=Mt(t/(a/(i-n)),f);return!o&&!r||o&&r||(s=-s),{min:n+s,max:i+s,offset:s}},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,o){var r=this.options,i=Mt(r.min+t*r.majorUnit,f),n=this.axisLabelText(i,e,o);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 o=this.getValue(t),r=this.getValue(e),i=Math.min(o,r),n=Math.max(o,r);if(this.isValidRange(i,n))return{min:i,max:n}},e.prototype.scaleRange=function(t,e){var o=Math.abs(this.pointOffset(e)),r=this.options.max-this.options.min,i=this.scaleToDelta(t,r),n=o*i,a=(1-o)*i,s=Mt(this.options.min+n,f),l=Mt(this.options.max-a,f);return l-s<Qo&&(l=s+Qo),{min:s,max:l}},e.prototype.zoomRange=function(t,e){var o=this.totalMin,r=this.totalMax,i=this.scaleRange(t,e);return{min:Tt(i.min,o,r),max:Tt(i.max,o,r),narrowRange:!1}},e.prototype.isValidRange=function(t,e){return e-t>Qo},e}(oo);function Jo(t,e,o){var r=Mt(Math.abs(t%e),f);return 0===r||r>e*(1-o)}Bt($o,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},labels:{format:"#.####################"},zIndex:1});const tr=$o;var er=function(t){function e(e,o,r,i){var n=wo(e),a=wo(o),s=i.intl,l=r||{};l=function(t,e,o){var r,i,n=o.min||t,a=o.max||e,s=o.baseUnit||(a&&n?(r=_o(a,n),i=ao,r>=mo?i=co:r>=go?i=po:r>=yo?i=lo:r>=vo&&(i=so),i):ao),l=bo[s],p=o.weekStartDay||0,c=So(To(n)-1,s,p)||wo(a),h=Po(To(a)+1,s,p),u=(o.majorUnit?o.majorUnit:void 0)||qo(te(c.getTime(),h.getTime()),l)/l,f=Io(c,h,s),d=qo(f,u)-f,v=Math.floor(d/2),y=d-v;return o.baseUnit||delete o.baseUnit,o.baseUnit=o.baseUnit||s,o.min=o.min||Oo(c,-v,s,p),o.max=o.max||Oo(h,y,s,p),o.minorUnit=o.minorUnit||u/5,o.majorUnit=u,o}(n,a,l=X(l||{},{min:Lo(s,l.min),max:Lo(s,l.max),axisCrossingValue:Ro(s,l.axisCrossingValues||l.axisCrossingValue),weekStartDay:Do(l,s)})),t.call(this,l,i),this.intlService=s,this.seriesMin=n,this.seriesMax=a;var p=l.weekStartDay||0;this.totalMin=To(So(To(n)-1,l.baseUnit,p)),this.totalMax=To(Po(To(a)+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(Io(e.min,e.max,e.baseUnit)/t+1)},e.prototype.getTickPositions=function(t){for(var e=this.options,o=this.lineInfo(),r=o.axisDir,i=o.lineSize,n=o.lineStart,a=this.getDivisions(t),s=i/ko(e.max,e.min),l=e.weekStartDay||0,c=[n],h=1;h<a;h++){var u=n+ko(Oo(e.min,h*t,e.baseUnit,l),e.min)*s*r;c.push(Mt(u,p))}return c},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,o){return tr.prototype.getSlot.call(this,Lo(this.intlService,t),Lo(this.intlService,e),o)},e.prototype.getValue=function(t){var e=tr.prototype.getValue.call(this,t);return null!==e?wo(e):null},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,o){var r=this.options,i=t*r.majorUnit,n=r.weekStartDay||0,a=r.min;i>0&&(a=Oo(a,i,r.baseUnit,n));var s=e.dateFormats[r.baseUnit];e.format=e.format||s;var l=this.axisLabelText(a,e,o);return new De(a,l,t,null,e)},e.prototype.translateRange=function(t){var e=this.options,o=this.lineBox(),r=e.vertical,i=e.reverse,n=r?o.height():o.width(),a=this.range(),s=n/ko(a.max,a.min),l=Mt(t/s,f);return!r&&!i||r&&i||(l=-l),{min:xo(e.min,l),max:xo(e.max,l),offset:l}},e.prototype.shouldRenderNote=function(t){var e=this.range();return Ao(t,e.min)>=0&&Ao(t,e.max)<=0},e.prototype.pan=function(t){var e=this.translateRange(t,!0),o=this.limitRange(To(e.min),To(e.max),this.totalMin,this.totalMax,e.offset);if(o)return{min:wo(o.min),max:wo(o.max)}},e.prototype.pointsRange=function(t,e){var o=this.getValue(t),r=this.getValue(e),i=Math.min(o,r),n=Math.max(o,r);return{min:wo(i),max:wo(n)}},e.prototype.scaleRange=function(t,e){var o=Math.abs(this.pointOffset(e)),r=this.options.max-this.options.min,i=this.scaleToDelta(t,r),n=o*i,a=(1-o)*i,s=wo(To(this.options.min)+n),l=wo(To(this.options.max)-a);return l-s<1e3&&(l=wo(To(s)+1e3)),{min:s,max:l}},e.prototype.zoomRange=function(t,e){var o=this.scaleRange(t,e);return{min:wo(Tt(To(o.min),this.totalMin,this.totalMax)),max:wo(Tt(To(o.max),this.totalMin,this.totalMax))}},e}(oo);Bt(er,{type:h,majorGridLines:{visible:!0,width:1,color:n},labels:{dateFormats:zo}});const or=er;var rr=1e-6,ir=function(t){function e(e,o,r,i){var n=X({majorUnit:10,min:e,max:o},r),a=n.majorUnit,s=function(t,e){var o=Mt(ar(t,e),f)%1;return t<=0?e:0!==o&&(o<.3||o>.9)?Math.pow(e,ar(t,e)+.2):Math.pow(e,Math.ceil(ar(t,e)))}(o,a),l=function(t,e,o){var r=o.majorUnit,i=t;return t<=0?i=e<=1?Math.pow(r,-2):1:o.narrowRange||(i=Math.pow(r,Math.floor(ar(t,r)))),i}(e,o,n),p=function(t,e,o,r){var i=o.min,n=o.max;return xt(o.axisCrossingValue)&&o.axisCrossingValue<=0&&nr(),xt(r.max)?r.max<=0&&nr():n=e,xt(r.min)?r.min<=0&&nr():i=t,{min:i,max:n}}(l,s,n,r);n.max=p.max,n.min=p.min,n.minorUnit=r.minorUnit||Mt(a-1,f),t.call(this,n,i),this.totalMin=xt(r.min)?Math.min(l,r.min):l,this.totalMax=xt(r.max)?Math.max(s,r.max):s,this.logMin=Mt(ar(p.min,a),f),this.logMax=Mt(ar(p.max,a),f),this.seriesMin=e,this.seriesMax=o,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,o){var r=this,i=r.options,n=r.logMin,a=r.logMax,s=i.majorUnit,l=i.min,p=i.max,c=this.lineInfo(),h=c.axis,u=c.axisDir,f=c.lineBox,d=c.lineSize,v=c.lineStart,y=u*(d/(a-n)),g=Lt(t,e||1),m=Lt(e,t||1);if(g<=0||m<=0)return null;o&&(g=Tt(g,l,p),m=Tt(m,l,p)),g=ar(g,s),m=ar(m,s);var b=Math.min(g,m)-n,_=Math.max(g,m)-n,x=new ie(f.x1,f.y1,f.x1,f.y1);return x[h+1]=Zo(v+y*(u>0?b:_)),x[h+2]=Zo(v+y*(u>0?_:b)),x},e.prototype.getValue=function(t){var e=this,o=e.options,r=e.logMin,i=e.logMax,n=o.majorUnit,a=this.lineInfo(),s=a.axis,l=a.axisDir,p=a.lineStart,c=a.lineSize,h=(i-r)/c,u=l*(t[s]-p);if(u<0||u>c)return null;var d=r+u*h;return Mt(Math.pow(n,d),f)},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.translateRange=function(t){var e=this,o=e.options,r=e.logMin,i=e.logMax,n=o.reverse,a=o.vertical,s=o.majorUnit,l=this.lineBox(),p=a?l.height():l.width(),c=Mt(t/(p/(i-r)),f);return!a&&!n||a&&n||(c=-c),{min:Math.pow(s,r+c),max:Math.pow(s,i+c),offset:c}},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,o=e.majorTicks,r=e.minorTicks,i=e.vertical,n=e.labels.mirror,a=this.lineBox(),s={vertical:i};function l(e,o){s.tickX=n?a.x2:a.x2-o.size,s.tickY=n?a.y1-o.size:a.y1,s.position=e,t.append(Je(s,o))}return o.visible&&this.traverseMajorTicksPositions(l,o),r.visible&&this.traverseMinorTicksPositions(l,r),[]},e.prototype.createGridLines=function(t){var e=this.options,o=e.minorGridLines,r=e.majorGridLines,i=e.vertical,n=t.lineBox(),a={lineStart:n[i?"x1":"y1"],lineEnd:n[i?"x2":"y2"],vertical:i},s=[],l=this.gridLinesVisual();function p(t,e){ct(t,s)||(a.position=t,l.append(to(a,e)),s.push(t))}return r.visible&&this.traverseMajorTicksPositions(p,r),o.visible&&this.traverseMinorTicksPositions(p,o),l.children},e.prototype.traverseMajorTicksPositions=function(t,e){for(var o=this.lineInfo(),r=o.lineStart,i=o.step,n=this.logMin,a=this.logMax,s=Math.ceil(n)+e.skip;s<=a;s+=e.step)t(Mt(r+i*(s-n),f),e)},e.prototype.traverseMinorTicksPositions=function(t,e){for(var o=this.options,r=o.min,i=o.max,n=o.minorUnit,a=o.majorUnit,s=this.lineInfo(),l=s.lineStart,p=s.step,c=this.logMin,h=this.logMax,u=Math.floor(c);u<h;u++)for(var d=this._minorIntervalOptions(u),v=e.skip;v<n;v+=e.step){var y=d.value+v*d.minorStep;if(y>i)break;y>=r&&t(Mt(l+p*(ar(y,a)-c),f),e)}},e.prototype.createAxisLabel=function(t,e,o){var r=Math.ceil(this.logMin+t),i=Math.pow(this.options.majorUnit,r),n=this.axisLabelText(i,e,o);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 o=this.getValue(t),r=this.getValue(e);return{min:Math.min(o,r),max:Math.max(o,r)}},e.prototype.scaleRange=function(t,e){var o=this.options.majorUnit,r=ar(this.options.min,o),i=ar(this.options.max,o),n=Math.abs(this.pointOffset(e)),a=i-r,s=this.scaleToDelta(t,a),l=Math.pow(o,r+n*s),p=Math.pow(o,i-(1-n)*s);return p-l<rr&&(p=l+rr),{min:l,max:p}},e.prototype.zoomRange=function(t,e){var o=this.scaleRange(t,e),r=this.totalMin,i=this.totalMax;return{min:Tt(o.min,r,i),max:Tt(o.max,r,i)}},e.prototype._minorIntervalOptions=function(t){var e=this.options,o=e.minorUnit,r=e.majorUnit,i=Math.pow(r,t);return{value:i,minorStep:(Math.pow(r,t+1)-i)/o}},e.prototype.lineInfo=function(){var e=t.prototype.lineInfo.call(this);return e.step=e.axisDir*(e.lineSize/(this.logMax-this.logMin)),e},e}(oo);function nr(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function ar(t,e){return Math.log(t)/Math.log(e)}Bt(ir,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},zIndex:1,_deferLabels:!0});const sr=ir,lr={createGridLines:function(t){var e,o,r=this.options,i=Math.abs(this.box.center().y-t.lineBox().y1),n=[],a=!1;return r.majorGridLines.visible&&(e=this.majorGridLineAngles(t),a=!0,n=this.renderMajorGridLines(e,i,r.majorGridLines)),r.minorGridLines.visible&&(o=this.minorGridLineAngles(t,a),bt(n,this.renderMinorGridLines(o,i,r.minorGridLines,t,a))),n},renderMajorGridLines:function(t,e,o){return this.renderGridLines(t,e,o)},renderMinorGridLines:function(t,e,o,r,i){var n=this.radiusCallback&&this.radiusCallback(e,r,i);return this.renderGridLines(t,e,o,n)},renderGridLines:function(t,e,o,r){for(var i={stroke:{width:o.width,color:o.color,dashType:o.dashType}},n=this.box.center(),a=new D.geometry.Circle([n.x,n.y],e),s=this.gridLinesVisual(),l=0;l<t.length;l++){var p=new D.drawing.Path(i);r&&(a.radius=r(t[l])),p.moveTo(a.center).lineTo(a.pointAt(t[l]+180)),s.append(p)}return s.children},gridLineAngles:function(t,e,o,r,i){var n=this,a=this.intervals(e,o,r,i),s=t.options,l=s.visible&&!1!==(s.line||{}).visible;return vt(a,(function(t){var e=n.intervalAngle(t);if(!l||90!==e)return e}))}};var pr=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,o=e.skip||0,r=e.step||1,i=new ie,n=0;n<t.length;n++){t[n].reflow(i);var a=t[n].box;t[n].reflow(this.getSlot(o+n*r).adjacentBox(0,a.width(),a.height()))}},e.prototype.intervals=function(t,e,o,r){void 0===r&&(r=!1);for(var i=this.options,n=i.categories.length/t||1,a=360/n,s=o||1,l=[],c=0,h=e||0;h<n;h+=s)c=i.reverse?360-h*a:h*a,c=Mt(c,p)%360,r&&ct(c,r)||l.push(c);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 vt(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 o=this.options,r=o.minorGridLines,i=o.majorGridLines,n=e?this.intervals(1,i.skip,i.step):null;return this.gridLineAngles(t,.5,r.skip,r.step,n)},e.prototype.radiusCallback=function(t,e,o){if(e.options.type!==i){var r=Et(360/(2*this.options.categories.length)),n=Math.cos(r)*t,a=this.majorAngles();return function(e){return!o&&ct(e,a)?t:n}}},e.prototype.createPlotBands=function(){for(var t=this.options.plotBands||[],e=this._plotbandGroup=new D.drawing.Group({zIndex:-1}),o=0;o<t.length;o++){var r=t[o],i=this.plotBandSlot(r),n=this.getSlot(r.from),a=r.from-Math.floor(r.from);i.startAngle+=a*n.angle;var s=Math.ceil(r.to)-r.to;i.angle-=(s+a)*n.angle;var l=he.current.createRing(i,{fill:{color:r.color,opacity:r.opacity},stroke:{opacity:r.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 o=this.options,r=o.justified,i=this.box,n=this.majorAngles(),a=n.length,s=360/a,l=t;o.reverse&&!r&&(l=(l+1)%a);var p=n[l=Tt(Math.floor(l),0,a-1)];r&&(p-=s/2)<0&&(p+=360);var c=s*(Tt(Math.ceil(e||l),l,a-1)-l+1);return new se(i.center(),0,i.height()/2,p,c)},e.prototype.slot=function(t,e){var o=this.getSlot(t,e),r=o.startAngle+180,i=r+o.angle;return new D.geometry.Arc([o.center.x,o.center.y],{startAngle:r,endAngle:i,radiusX:o.radius,radiusY:o.radius})},e.prototype.pointCategoryIndex=function(t){for(var e=this.options.categories.length,o=null,r=0;r<e;r++)if(this.getSlot(r).containsPoint(t)){o=r;break}return o},e}(No);Bt(pr,{startAngle:90,labels:{margin:$(10)},majorGridLines:{visible:!0},justified:!0}),X(pr.prototype,lr);const cr=pr;var hr=function(t){function e(e,o){t.call(this,e,o);var r=this.options;r.minorUnit=r.minorUnit||r.majorUnit/2}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDivisions=function(t){return tr.prototype.getDivisions.call(this,t)-1},e.prototype.reflow=function(t){this.box=t,this.reflowLabels()},e.prototype.reflowLabels=function(){for(var t=this,e=t.options,o=t.labels,r=t.options.labels,i=r.skip||0,n=r.step||1,a=new ie,s=this.intervals(e.majorUnit,i,n),l=0;l<o.length;l++){o[l].reflow(a);var p=o[l].box;o[l].reflow(this.getSlot(s[l]).adjacentBox(0,p.width(),p.height()))}},e.prototype.lineBox=function(){return this.box},e.prototype.intervals=function(t,e,o,r){void 0===r&&(r=!1);for(var i=this.options.min,n=this.getDivisions(t),a=[],s=o||1,l=e||0;l<n;l+=s){var p=(360+i+l*t)%360;r&&ct(p,r)||a.push(p)}return a},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 o=this.options,r=o.minorGridLines,i=o.majorGridLines,n=e?this.intervals(o.majorUnit,i.skip,i.step):null;return this.gridLineAngles(t,o.minorUnit,r.skip,r.step,n)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to)},e.prototype.getSlot=function(t,e){var o=this.options,r=this.box,i=o.startAngle,n=Tt(t,o.min,o.max),a=Tt(e||n,n,o.max);if(o.reverse&&(n*=-1,a*=-1),(a=(540-a-i)%360)<(n=(540-n-i)%360)){var s=n;n=a,a=s}return new se(r.center(),0,r.height()/2,n,a-n)},e.prototype.slot=function(t,e){void 0===e&&(e=t);var o,r,i=this.options,n=360-i.startAngle,a=this.getSlot(t,e),s=Math.min(t,e),l=Math.max(t,e);return i.reverse?(o=s,r=l):(o=360-l,r=360-s),o=(o+n)%360,r=(r+n)%360,new D.geometry.Arc([a.center.x,a.center.y],{startAngle:o,endAngle:r,radiusX:a.radius,radiusY:a.radius})},e.prototype.getValue=function(t){var e=this.options,o=this.box.center(),r=t.x-o.x,i=t.y-o.y,n=Math.round(wt(Math.atan2(i,r))),a=e.startAngle;return e.reverse||(n*=-1,a*=-1),(n+a+360)%360},e.prototype.valueRange=function(){return{min:0,max:2*Math.PI}},e}(oo);Bt(hr,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:$(10)},majorGridLines:{color:n,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),X(hr.prototype,lr,{createPlotBands:cr.prototype.createPlotBands,majorAngles:cr.prototype.majorAngles,range:tr.prototype.range,labelsCount:tr.prototype.labelsCount,createAxisLabel:tr.prototype.createAxisLabel});const ur=hr;var fr={options:{majorGridLines:{visible:!0}},createPlotBands:function(){var t=this.options,e=t.majorGridLines.type,o=t.plotBands;void 0===o&&(o=[]);for(var r=this.plotArea.polarAxis,n=r.majorAngles(),a=r.box.center(),s=this._plotbandGroup=new D.drawing.Group({zIndex:-1}),l=0;l<o.length;l++){var p,c=o[l],h={fill:{color:c.color,opacity:c.opacity},stroke:{opacity:c.opacity}},u=this.getSlot(c.from,c.to,!0),f=new se(a,a.y-u.y2,a.y-u.y1,0,360);p=e===i?he.current.createRing(f,h):D.drawing.Path.fromPoints(this.plotBandPoints(f,n),h).close(),s.append(p)}this.appendVisual(s)},plotBandPoints:function(t,e){for(var o=[],r=[],i=[t.center.x,t.center.y],n=new D.geometry.Circle(i,t.innerRadius),a=new D.geometry.Circle(i,t.radius),s=0;s<e.length;s++)o.push(n.pointAt(e[s]+180)),r.push(a.pointAt(e[s]+180));return o.reverse(),o.push(o[0]),r.push(r[0]),r.concat(o)},createGridLines:function(t){var e=this.options,o=this.radarMajorGridLinePositions(),r=t.majorAngles(),i=t.box.center(),n=[];if(e.majorGridLines.visible&&(n=this.renderGridLines(i,o,r,e.majorGridLines)),e.minorGridLines.visible){var a=this.radarMinorGridLinePositions();bt(n,this.renderGridLines(i,a,r,e.minorGridLines))}return n},renderGridLines:function(t,e,o,r){var n={stroke:{width:r.width,color:r.color,dashType:r.dashType}},a=r.skip;void 0===a&&(a=0);var s=r.step;void 0===s&&(s=0);for(var l=this.gridLinesVisual(),p=a;p<e.length;p+=s){var c=t.y-e[p];if(c>0){var h=new D.geometry.Circle([t.x,t.y],c);if(r.type===i)l.append(new D.drawing.Circle(h,n));else{for(var u=new D.drawing.Path(n),f=0;f<o.length;f++)u.lineTo(h.pointAt(o[f]+180));u.close(),l.append(u)}}}return l.children},getValue:function(t){var e=this.lineBox(),o=this.plotArea.polarAxis,r=o.majorAngles(),n=o.box.center(),a=t.distanceTo(n),s=a;if(this.options.majorGridLines.type!==i&&r.length>1){var l=t.x-n.x,p=t.y-n.y,c=(wt(Math.atan2(p,l))+540)%360;r.sort((function(t,e){return dr(t,c)-dr(e,c)}));var h=90-dr(r[0],r[1])/2,u=180-dr(c,r[0])-h;s=a*(Math.sin(Et(u))/Math.sin(Et(h)))}return this.axisType().prototype.getValue.call(this,new ee(e.x1,e.y2-s))}};function dr(t,e){return 180-Math.abs(Math.abs(t-e)-180)}const vr=fr;var yr=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}(tr);X(yr.prototype,vr);const gr=yr;var mr=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}(sr);X(mr.prototype,vr);const br=mr;function _r(t){return t<=0?-1:1}const xr=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),o=[],r=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 o;var n,a,s=e[0],l=e[1],p=e[2];for(o.push(new D.geometry.Segment(s));s.equals(e[i-1]);)r=!0,e.pop(),i--;if(2===i){var c=this.tangent(s,l,j,E);return kt(o).controlOut(this.firstControlPoint(c,s,l,j,E)),o.push(new D.geometry.Segment(l,this.secondControlPoint(c,s,l,j,E))),o}if(r){s=e[i-1],l=e[0],p=e[1];var h=this.controlPoints(s,l,p);n=h[1],a=h[0]}else{var u=this.tangent(s,l,j,E);n=this.firstControlPoint(u,s,l,j,E)}for(var f=n,d=0;d<=i-3;d++)if(this.removeDuplicates(d,e),d+3<=(i=e.length)){s=e[d],l=e[d+1],p=e[d+2];var v=this.controlPoints(s,l,p);kt(o).controlOut(f),f=v[1];var y=v[0];o.push(new D.geometry.Segment(l,y))}if(r){s=e[i-2],l=e[i-1],p=e[0];var g=this.controlPoints(s,l,p);kt(o).controlOut(f),o.push(new D.geometry.Segment(l,g[0])),kt(o).controlOut(g[1]),o.push(new D.geometry.Segment(p,a))}else{var m=this.tangent(l,p,j,E);kt(o).controlOut(f),o.push(new D.geometry.Segment(p,this.secondControlPoint(m,l,p,j,E)))}return o},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,o){var r=!1;if(t.x===e.x)r=!0;else if(e.x===o.x)(e.y<o.y&&t.y<=e.y||o.y<e.y&&e.y<=t.y)&&(r=!0);else{var i=this.lineFunction(t,e),n=this.calculateFunction(i,o.x);t.y<=e.y&&o.y<=n||e.y<=t.y&&o.y>=n||(r=!0)}return r},e.prototype.isLine=function(t,e,o){var r=this.lineFunction(t,e),i=this.calculateFunction(r,o.x);return t.x===e.x&&e.x===o.x||Mt(i,1)===Mt(o.y,1)},e.prototype.lineFunction=function(t,e){var o=(e.y-t.y)/(e.x-t.x);return[t.y-o*t.x,o]},e.prototype.controlPoints=function(t,e,o){var r,i=j,n=E,a=!1,s=!1;if(this.isLine(t,e,o))r=this.tangent(t,e,j,E);else{var l={x:this.isMonotonicByField(t,e,o,j),y:this.isMonotonicByField(t,e,o,E)};l.x&&l.y?(r=this.tangent(t,o,j,E),a=!0):(this.invertAxis(t,e,o)&&(i=E,n=j),l[i]?r=0:(r=.01*(o[n]<t[n]&&t[n]<=e[n]||t[n]<o[n]&&e[n]<=t[n]?_r((o[n]-t[n])*(e[i]-t[i])):-_r((o[i]-t[i])*(e[n]-t[n]))),s=!0))}var p=this.secondControlPoint(r,t,e,i,n);if(s){var c=i;i=n,n=c}var h=this.firstControlPoint(r,e,o,i,n);return a&&(this.restrictControlPoint(t,e,p,r),this.restrictControlPoint(e,o,h,r)),[p,h]},e.prototype.restrictControlPoint=function(t,e,o,r){t.y<e.y?e.y<o.y?(o.x=t.x+(e.y-t.y)/r,o.y=e.y):o.y<t.y&&(o.x=e.x-(e.y-t.y)/r,o.y=t.y):o.y<e.y?(o.x=t.x-(t.y-e.y)/r,o.y=e.y):t.y<o.y&&(o.x=e.x+(t.y-e.y)/r,o.y=t.y)},e.prototype.tangent=function(t,e,o,r){var i=e[o]-t[o],n=e[r]-t[r];return 0===i?0:n/i},e.prototype.isMonotonicByField=function(t,e,o,r){return o[r]>e[r]&&e[r]>t[r]||o[r]<e[r]&&e[r]<t[r]},e.prototype.firstControlPoint=function(t,e,o,r,i){var n=e[r],a=.333*(o[r]-n);return this.point(n+a,e[i]+a*t,r,i)},e.prototype.secondControlPoint=function(t,e,o,r,i){var n=e[r],a=o[r],s=.333*(a-n);return this.point(a-s,o[i]-s*t,r,i)},e.prototype.point=function(t,e,o,r){var i=new D.geometry.Point;return i[o]=t,i[r]=e,i},e.prototype.calculateFunction=function(t,e){for(var o=t.length,r=0,i=0;i<o;i++)r+=Math.pow(e,i)*t[i];return r},e}(D.Class);var wr=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;return e.getCategory?e.getCategory(t):e.getValue(t)},e.prototype.slot=function(t,e,o){return void 0===o&&(o=!0),this._axis.slot(t,e,o)},e.prototype.range=function(){return this._axis.range()},e.prototype.valueRange=function(){return this._axis.valueRange()},e}(D.Class);const Cr=wr;function Or(t,e){for(var o=0;o<e.length;o++)if(e[o].options.name===t)return e[o].prepareUserOptions(),new Cr(e[o])}var Sr=function(t){this.visual=t.visual,this.chartsVisual=t.chartContainer.visual,this._pane=t};Sr.prototype.findAxisByName=function(t){return Or(t,this._pane.axes)};const Pr=Sr,Ar=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}(D.Class);function kr(t){for(var e=t.length,o=0,r=0;r<e;r++)z(t[r])&&o++;return o}var Tr={min:function(t){for(var e=t.length,o=m,r=0;r<e;r++){var i=t[r];z(i)&&(o=Math.min(o,i))}return o===m?t[0]:o},max:function(t){for(var e=t.length,o=b,r=0;r<e;r++){var i=t[r];z(i)&&(o=Math.max(o,i))}return o===b?t[0]:o},sum:function(t){for(var e=t.length,o=0,r=0;r<e;r++){var i=t[r];z(i)&&(o+=i)}return o},sumOrNull:function(t){var e=null;return kr(t)&&(e=Tr.sum(t)),e},count:function(t){for(var e=t.length,o=0,r=0;r<e;r++){var i=t[r];null!==i&&xt(i)&&o++}return o},avg:function(t){var e=kr(t),o=t[0];return e>0&&(o=Tr.sum(t)/e),o},first:function(t){for(var e=t.length,o=0;o<e;o++){var r=t[o];if(null!==r&&xt(r))return r}return t[0]}};const jr=Tr;function Er(t,e){return null===e?e:nt(t)(e)}var Mr=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,o){var r=this;void 0===e&&(e=[A]),void 0===o&&(o={});for(var i=0;i<t.length;i++){var n=t[i];r._valueFields[n]=e,r._otherFields[n]=o,r._nullValue[n]=r._makeValue(e,null),r._undefinedValue[n]=r._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]||[A]},e.prototype.otherFields=function(t){return this._otherFields[t.type]||[A]},e.prototype.bindPoint=function(t,e,o){var r,i,n=t.data,a=xt(o)?o:n[e],s={valueFields:{value:a}},l=this.valueFields(t),p=this._otherFields[t.type];if(null===a)i=this._nullValue[t.type];else if(xt(a)){if(Array.isArray(a)){var c=a.slice(l.length);i=this._bindFromArray(a,l),r=this._bindFromArray(c,p)}else if("object"==typeof a){var h=this.sourceFields(t,l),u=this.sourceFields(t,p);i=this._bindFromObject(a,l,h),r=this._bindFromObject(a,p,u)}}else i=this._undefinedValue[t.type];return xt(i)&&(1===l.length?s.valueFields.value=i[l[0]]:s.valueFields=i),s.fields=r||{},s},e.prototype._makeValue=function(t,e){for(var o={},r=t.length,i=0;i<r;i++)o[t[i]]=e;return o},e.prototype._bindFromArray=function(t,e){var o={};if(e)for(var r=Math.min(e.length,t.length),i=0;i<r;i++)o[e[i]]=t[i];return o},e.prototype._bindFromObject=function(t,e,o){void 0===o&&(o=e);var r={};if(e)for(var i=e.length,n=0;n<i;n++){var a=e[n],s=o[n];null!==s&&(r[a]=Er(s,t))}return r},e.prototype.sourceFields=function(t,e){var o=[];if(e)for(var r=e.length,i=0;i<r;i++){var n=e[i],a=n===A?"field":n+"Field";o.push(null!==t[a]?t[a]||n:null)}return o},e}(D.Class);Mr.current=new Mr;const Ir=Mr;var Lr=/percent(?:\w*)\((\d+)\)/,Rr=new RegExp("^stddev(?:\\((\\d+(?:\\.\\d+)?)\\))?$");const Dr=function(t){function e(e,o,r){t.call(this),this.initGlobalRanges(e,o,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initGlobalRanges=function(t,e,o){var r=e.data,i=Rr.exec(t);if(i){this.valueGetter=this.createValueGetter(e,o);var n=this.getAverage(r),a=this.getStandardDeviation(r,n,!1),s=i[1]?parseFloat(i[1]):1,l={low:n.value-a*s,high:n.value+a*s};this.globalRange=function(){return l}}else if(t.indexOf&&t.indexOf("stderr")>=0){this.valueGetter=this.createValueGetter(e,o);var p=this.getStandardError(r,this.getAverage(r));this.globalRange=function(t){return{low:t-p,high:t+p}}}},e.prototype.createValueGetter=function(t,e){var o,r=t.data,i=Ir.current,n=i.valueFields(t),a=xt(r[0])?r[0]:{};return M(a)?o=nt("["+(e?n.indexOf(e):0)+"]"):z(a)?o=nt():typeof a===x&&(o=nt(i.sourceFields(t,n)[n.indexOf(e)])),o},e.prototype.getErrorRange=function(t,e){var o,r,i;if(!xt(e))return null;if(this.globalRange)return this.globalRange(t);if(M(e))o=t-e[0],r=t+e[1];else if(z(i=parseFloat(e)))o=t-i,r=t+i;else{if(!(i=Lr.exec(e)))throw new Error("Invalid ErrorBar value: "+e);var n=t*(parseFloat(i[1])/100);o=t-Math.abs(n),r=t+Math.abs(n)}return{low:o,high:r}},e.prototype.getStandardError=function(t,e){return this.getStandardDeviation(t,e,!0)/Math.sqrt(e.count)},e.prototype.getStandardDeviation=function(t,e,o){for(var r=t.length,i=o?e.count-1:e.count,n=0,a=0;a<r;a++){var s=this.valueGetter(t[a]);z(s)&&(n+=Math.pow(s-e.value,2))}return Math.sqrt(n/i)},e.prototype.getAverage=function(t){for(var e=t.length,o=0,r=0,i=0;i<e;i++){var n=this.valueGetter(t[i]);z(n)&&(o+=n,r++)}return{value:o/r,count:r}},e}(D.Class);var Br=D.support.browser||{},Nr=600,zr="fadeIn",Vr=.8,Hr=Br.msie?.001:0,Ur="errorLow",Fr="errorHigh",Gr="zero",Wr="interpolate",Xr="above",Kr="below",Yr="smooth",qr="step",Zr="area",Qr="bar",$r="boxPlot",Jr="bubble",ti="bullet",ei="candlestick",oi="column",ri="donut",ii="funnel",ni="heatmap",ai="horizontalWaterfall",si="line",li="ohlc",pi="pie",ci="polarArea",hi="polarLine",ui="polarScatter",fi="radarArea",di="radarColumn",vi="radarLine",yi="rangeArea",gi="rangeBar",mi="rangeColumn",bi="scatter",_i="scatterLine",xi="verticalArea",wi="verticalBoxPlot",Ci="verticalBullet",Oi="verticalLine",Si="verticalRangeArea",Pi="waterfall",Ai=[Qr,oi,li,ei,$r,wi,ti,mi,gi,Pi,ai],ki="seriesClick",Ti="seriesHover",ji="seriesOver",Ei="seriesLeave",Mi="plotAreaHover",Ii="plotAreaLeave",Li="drag",Ri="dragEnd",Di="dragStart",Bi="zoomStart",Ni="zoom",zi="zoomEnd",Vi="selectStart",Hi="select",Ui="selectEnd",Fi="showTooltip",Gi="hideTooltip",Wi="log",Xi="category",Ki="insideEnd",Yi="outsideEnd",qi="wheel",Zi="drilldown",Qi=function(t){function e(e,o,r,i,n,a){t.call(this,a),this.low=e,this.high=o,this.isVertical=r,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,o=this.options.endCaps,r=this.isVertical,i=this.getAxis().getSlot(this.low,this.high),n=t.center(),a=this.getCapsWidth(t,r),s=r?n.x:n.y,l=s-a,p=s+a;r?(e=[new ee(n.x,i.y1),new ee(n.x,i.y2)],o&&e.push(new ee(l,i.y1),new ee(p,i.y1),new ee(l,i.y2),new ee(p,i.y2)),this.box=new ie(l,i.y1,p,i.y2)):(e=[new ee(i.x1,n.y),new ee(i.x2,n.y)],o&&e.push(new ee(i.x1,l),new ee(i.x1,p),new ee(i.x2,l),new ee(i.x2,p)),this.box=new ie(i.x1,l,i.x2,p)),this.linePoints=e},e.prototype.getCapsWidth=function(t,e){var o=e?t.width():t.height();return Math.min(Math.floor(o/2),4)||4},e.prototype.createVisual=function(){var t=this,e=this.options,o=e.visual;o?this.visual=o({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,o=this.linePoints,r={stroke:{color:e.color,width:e.line.width,dashType:e.line.dashType}};t.prototype.createVisual.call(this);for(var i=0;i<o.length;i+=2){var n=new D.drawing.Path(r).moveTo(o[i].x,o[i].y).lineTo(o[i+1].x,o[i+1].y);B(n),this.visual.append(n)}},e}(fe);Bt(Qi,{animation:{type:zr,delay:Nr},endCaps:!0,line:{width:2},zIndex:1});const $i=Qi;var Ji=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}($i);const tn=Ji;var en=5;function on(t,e,o,r){void 0===o&&(o={}),void 0===r&&(r=!1);var i=o.defaults=o.defaults||{},n=o.depth=o.depth||0,a=!1;if(o.excluded=o.excluded||[],n>en)return null;for(var s in t)if(!ct(s,o.excluded)&&t.hasOwnProperty(s)){var l=t[s];U(l)?(a=!0,r||(t[s]=Lt(l(e),i[s]))):K(l)&&(r||(o.defaults=i[s]),o.depth++,a=on(l,e,o,r)||a,o.depth--)}return a}function rn(t){for(var e=t.length,o=0,r=0;r<e;r++)o=Math.max(o,t[r].data.length);return o}var nn=function(t){function e(e,o){t.call(this,o),this.plotArea=e,this.chartService=e.chartService,this.categoryAxis=e.seriesCategoryAxis(o.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 o=this.seriesOptions[e];if(!o){var r=this.pointType().prototype.defaults;this.seriesOptions[e]=o=X({},r,{vertical:!this.options.invertAxes},t)}return o},e.prototype.plotValue=function(t){if(!t)return 0;if(this.options.isStacked100&&z(t.value)){for(var e=t.categoryIx,o=this.categoryPoints[e],r=[],i=0,n=0;n<o.length;n++){var a=o[n];if(a){var s=t.series.stack,l=a.series.stack;if(s&&l&&s.group!==l.group)continue;z(a.value)&&(i+=Math.abs(a.value),r.push(Math.abs(a.value)))}}if(i>0)return t.value/i}return t.value},e.prototype.plotRange=function(t,e){void 0===e&&(e=0);var o=this.categoryPoints[t.categoryIx];if(this.options.isStacked){for(var r=this.plotValue(t),i=r>=0,n=e,a=!1,s=0;s<o.length;s++){var l=o[s];if(t===l)break;var p=t.series.stack,c=l.series.stack;if(p&&c){if(typeof p===S&&p!==c)continue;if(p.group&&p.group!==c.group)continue}var h=this.plotValue(l);(h>=0&&i||h<0&&!i)&&(n+=h,r+=h,a=!0,this.options.isStacked100&&(r=Math.min(r,1)))}return a&&(n-=e),[n,r]}var u=t.series,f=this.seriesValueAxis(u),d=this.categoryAxisCrossingValue(f);return[d,H(t.value)?t.value:d]},e.prototype.stackLimits=function(t,e){for(var o=m,r=b,i=0;i<this.categoryPoints.length;i++){var n=this.categoryPoints[i];if(n)for(var a=0;a<n.length;a++){var s=n[a];if(s&&(s.series.stack===e||s.series.axis===t)){var l=this.plotRange(s,0)[1];xt(l)&&isFinite(l)&&(r=Math.max(r,l),o=Math.min(o,l))}}}return{min:o,max:r}},e.prototype.updateStackRange=function(){var t=this,e=this.options,o=e.isStacked,r=e.series,i={};if(o)for(var n=0;n<r.length;n++){var a=r[n],s=a.axis,l=s+a.stack,p=i[l];if(!p){p=t.stackLimits(s,a.stack);var c=t.errorTotals;c&&(c.negative.length&&(p.min=Math.min(p.min,Nt(c.negative).min)),c.positive.length&&(p.max=Math.max(p.max,Nt(c.positive).max))),p.min!==m||p.max!==b?i[l]=p:p=null}p&&(t.valueAxisRanges[s]=p)}},e.prototype.addErrorBar=function(t,e,o){var r,i=t.value,n=t.series,a=t.seriesIx,s=t.options.errorBars,l=e.fields[Ur],p=e.fields[Fr];z(l)&&z(p)?r={low:l,high:p}:s&&xt(s.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[a]=this.seriesErrorRanges[a]||new Dr(s.value,n,A),r=this.seriesErrorRanges[a].getErrorRange(i,s.value)),r&&(t.low=r.low,t.high=r.high,this.addPointErrorBar(t,o))},e.prototype.addPointErrorBar=function(t,e){var o=!this.options.invertAxes,r=t.options.errorBars,i=t.series,n=t.low,a=t.high;if(this.options.isStacked){var s=this.stackedErrorRange(t,e);n=s.low,a=s.high}else{var l={categoryIx:e,series:i};this.updateRange({value:n},l),this.updateRange({value:a},l)}var p=new tn(n,a,o,this,i,r);t.errorBars=[p],t.append(p)},e.prototype.stackedErrorRange=function(t,e){var o=this.plotRange(t,0)[1]-t.value,r=t.low+o,i=t.high+o;return this.errorTotals=this.errorTotals||{positive:[],negative:[]},r<0&&(this.errorTotals.negative[e]=Math.min(this.errorTotals.negative[e]||0,r)),i>0&&(this.errorTotals.positive[e]=Math.max(this.errorTotals.positive[e]||0,i)),{low:r,high:i}},e.prototype.addValue=function(t,e){var o=e.categoryIx,r=e.series,i=e.seriesIx,n=this.categoryPoints[o];n||(this.categoryPoints[o]=n=[]);var a=this.seriesPoints[i];a||(this.seriesPoints[i]=a=[]);var s=this.createPoint(t,e);s&&(Object.assign(s,e),s.owner=this,s.noteText=t.fields.noteText,xt(s.dataItem)||(s.dataItem=r.data[o]),this.addErrorBar(s,t,o)),this.points.push(s),a.push(s),n.push(s),this.updateRange(t.valueFields,e)},e.prototype.evalPointOptions=function(t,e,o){var r=o.categoryIx,i=o.category,n=o.series,a=o.seriesIx,s={defaults:n._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint","drilldownSeriesFactory"]},l=this._evalSeries[a];xt(l)||(this._evalSeries[a]=l=on(t,{},s,!0));var p=t;return l&&on(p=X({},p),{value:e,category:i,index:r,series:n,dataItem:n.data[r]},s),p},e.prototype.updateRange=function(t,e){var o=e.series.axis,r=t.value,i=this.valueAxisRanges[o];isFinite(r)&&null!==r&&((i=this.valueAxisRanges[o]=i||{min:m,max:b}).min=Math.min(i.min,r),i.max=Math.max(i.max,r))},e.prototype.seriesValueAxis=function(t){var e=this.plotArea,o=t.axis,r=o?e.namedValueAxes[o]:e.valueAxis;if(!r)throw new Error("Unable to locate value axis with name "+o);return r},e.prototype.reflow=function(t){var e=this,o=this.categorySlots=[],r=this.points,i=this.categoryAxis,n=0;this.traverseDataPoints((function(t,a){var s=a.categoryIx,l=a.series,p=e.seriesValueAxis(l),c=r[n++],h=o[s];if(h||(o[s]=h=e.categorySlot(i,s,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(o),!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(kt(t)),o=0;o<e.length;o++)e[o]&&this.limitPoint(e[o])},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 o=this.categoryAxisCrossingValue(e),r=t.value;return e.options.reverse?r<o:r>=o},e.prototype.categoryAxisCrossingValue=function(t){var e=this.categoryAxis,o=t.options;return[].concat(o.axisCrossingValues||o.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 o=this.options.invertAxes,r=o?e:t,i=o?t:e;return new ie(r.x1,i.y1,r.x2,i.y2)},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.traverseDataPoints=function(t){for(var e=this,o=this.options.series,r=rn(o),i=o.length,n=0;n<i;n++)e._outOfRangeCallback(o[n],"_outOfRangeMinPoint",n,t);for(var a=0;a<r;a++)for(var s=0;s<i;s++){var l=o[s],p=e.categoryAxis.categoryAt(a);t(e._bindPoint(l,s,a),{category:p,categoryIx:a,categoriesCount:r,series:l,seriesIx:s})}for(var c=0;c<i;c++)e._outOfRangeCallback(o[c],"_outOfRangeMaxPoint",c,t)},e.prototype._outOfRangeCallback=function(t,e,o,r){var i=t[e];if(i){var n=i.categoryIx;r(this._bindPoint(t,o,n,i.item),{category:i.category,categoryIx:n,series:t,seriesIx:o,dataItem:i.item})}},e.prototype._bindPoint=function(t,e,o,r){this._bindCache||(this._bindCache=[]);var i=this._bindCache[e];i||(i=this._bindCache[e]=[]);var n=i[o];return n||(n=i[o]=Ir.current.bindPoint(t,o,r)),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}(fe);Bt(nn,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0});const an=nn;var sn={click:function(t,e){return t.trigger(ki,this.eventArgs(e))},hover:function(t,e){return t.trigger(Ti,this.eventArgs(e))},over:function(t,e){return t.trigger(ji,this.eventArgs(e))},out:function(t,e){return t.trigger(Ei,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:Pt(t),originalEvent:t,point:this}}};const ln=sn,pn={createNote:function(){var t=this.options.notes,e=this.noteText||t.label.text;!1!==t.visible&&xt(e)&&null!==e&&(this.note=new Ne({value:this.value,text:e,dataItem:this.dataItem,category:this.category,series:this.series},this.options.notes,this.owner.chartService),this.append(this.note))}};var cn=function(t){function e(e,o){t.call(this),this.value=e,this.options=o,this.aboveAxis=Lt(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,o=t.labels;if(!this._rendered){if(this._rendered=!0,e.visible&&e.size&&(this.marker=this.createMarker(),this.append(this.marker)),o.visible){var r=ot(o),i=this.pointData(),n=this.value;r?n=r(i):o.format&&(n=this.formatValue(o.format)),this.label=new Ee(n,X({align:s,vAlign:s,margin:{left:5,right:5},zIndex:Lt(o.zIndex,this.series.zIndex)},o),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,o=X({color:this.color},t.border);return xt(o.color)||(o.color=new D.Color(e).brightness(Vr).toHex()),o},e.prototype.createVisual=function(){},e.prototype.createMarker=function(){var t=this.options.markers;return new ge({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:Lt(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,o=this.aboveAxis,r=e.vertical;this.render(),this.box=t;var i=t.clone();if(r?o?i.y1-=i.height():i.y2+=i.height():o?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 a=this.markerBox();if(!e.markers.visible||!e.markers.size){var s=a.center();a=new ie(s.x,s.y,s.x,s.y)}this.note.reflow(a)}},e.prototype.reflowLabel=function(t){var e=this.options,o=this.label,r=e.labels.position;o&&(r=(r=r===Xr?P:r)===Kr?a:r,o.reflow(t),o.box.alignTo(this.markerBox(),r),o.reflow(o.box))},e.prototype.createHighlight=function(){var t=this.options.highlight.markers,e=this.markerBorder().color,o=this.options.markers,r=o.size+(o.border.width||0)+(t.border.width||0),i=new ge({type:o.type,width:r,height:r,rotation:o.rotation,background:t.color||e,border:{color:t.border.color,width:t.border.width,opacity:Lt(t.border.opacity,1)},opacity:Lt(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,o=this.marker;if(o)e=o.paddingBox.toRect(),t=o.visual;else{var r=this.options.markers.size,i=r/2,n=this.box.center();e=new D.geometry.Rect([n.x-i,n.y-i],[r,r])}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 o,r,i=t.x2+5,n=g;return this.aboveAxis?(o=t.y1,r=a):(o=t.y2,r=P),{point:new ee(i,o),align:{horizontal:n,vertical:r}}}},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}(fe);cn.prototype.defaults={vertical:!0,markers:{visible:!0,background:k,size:8,type:l,border:{width:2},opacity:1},labels:{visible:!1,position:Xr,margin:$(3),padding:$(4),animation:{type:zr,delay:Nr}},notes:{label:{}},highlight:{markers:{border:{color:"#fff",width:2}},zIndex:100},errorBars:{line:{width:1}}},X(cn.prototype,ln),X(cn.prototype,pn);const hn=cn;var un=function(t){function e(e,o,r){t.call(this),this.linePoints=e,this.series=o,this.seriesIx=r}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=[],o=0,r=t.length;o<r;o++)t[o]&&!1!==t[o].visible&&e.push(t[o]._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&&!xt(this.visual.options.zIndex)&&(this.visual.options.zIndex=this.series.zIndex)):this.segmentVisual()},e.prototype.segmentVisual=function(){var t=this.options,e=this.series,o=e.color,r=e._defaults;U(o)&&r&&(o=r.color);var i=D.drawing.Path.fromPoints(this.points(),{stroke:{color:o,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}(fe);Bt(un,{closed:!1});const fn=un;var dn={calculateStepPoints:function(t){for(var e=this.parent.plotArea.seriesCategoryAxis(this.series).options,o=e.justified,r=e.vertical,i=e.reverse,n=r?j:E,a=r?E:j,s=i?2:1,l=s,p=vn(t[0],n,s,a,l),c=[p],h=1;h<t.length;h++){var u=vn(t[h],n,s,a,l);if(p[n]!==u[n]){var f=new D.geometry.Point;f[n]=p[n],f[a]=u[a],c.push(f,u)}p=u}return o?p!==kt(c)&&c.push(p):c.push(vn(kt(t),n,s,a,i?1:2)),c}};function vn(t,e,o,r,i){var n=t.box,a=new D.geometry.Point;return a[e]=n[e+o],a[r]=n[r+i],a}const yn=dn;var 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.points=function(){return this.calculateStepPoints(this.linePoints)},e}(fn);X(gn.prototype,yn);const mn=gn;var 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.segmentVisual=function(){var t=this.series,e=t._defaults,o=t.color;U(o)&&e&&(o=e.color);var r=new xr(this.options.closed).process(this.points()),i=new D.drawing.Path({stroke:{color:o,width:t.width,opacity:t.opacity,dashType:t.dashType},zIndex:t.zIndex});i.segments.push.apply(i.segments,r),this.visual=i},e}(fn);const _n=bn;var xn={renderSegments:function(){var t,e=this,o=this.options,r=this.seriesPoints,i=o.series,n=r.length;this._segments=[];for(var a=0;a<n;a++){for(var s=i[a],l=e.sortPoints(r[a]),p=l.length,c=[],h=0;h<p;h++){var u=l[h];u?c.push(u):e.seriesMissingValues(s)!==Wr&&(c.length>1&&(t=e.createSegment(c,s,a,t),e._addSegment(t)),c=[])}c.length>1&&(t=e.createSegment(c,s,a,t),e._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?Gr:e||Wr},getNearestPoint:function(t,e,o){for(var r,i=new ee(t,e),n=this.seriesPoints[o],a=m,s=0;s<n.length;s++){var l=n[s];if(l&&xt(l.value)&&null!==l.value&&!1!==l.visible){var p=l.box.center().distanceTo(i);p<a&&(r=l,a=p)}}return r}};const wn=xn;var 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.setup=function(){this._setEnd(this.options.box.x1)},e.prototype.step=function(t){var e=this.options.box;this._setEnd(ht(e.x1,e.x2,t))},e.prototype._setEnd=function(t){var e=this.element,o=e.segments,r=o[1].anchor(),i=o[2].anchor();e.suspend(),r.setX(t),e.resume(),i.setX(t)},e}(D.drawing.Animation);Bt(Cn,{duration:Nr}),D.drawing.AnimationFactory.current.register("clip",Cn);const On=Cn;function Sn(t){for(var e=0;e<t.length;e++)if(xt(t[e].zIndex))return!0}const Pn={createAnimation:function(){var t=this.getRoot();if(t&&!1!==(t.options||{}).transitions){var e=t.size(),o=D.drawing.Path.fromRect(e.toRect());this.visual.clip(o),this.animation=new On(o,{box:e}),Sn(this.options.series)&&this._setChildrenAnimation(o)}},_setChildrenAnimation:function(t){for(var e=this.animationPoints(),o=0;o<e.length;o++){var r=e[o];r&&r.visual&&xt(r.visual.options.zIndex)&&r.visual.clip(t)}}};var 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.render=function(){t.prototype.render.call(this),this.updateStackRange(),this.renderSegments()},e.prototype.pointType=function(){return hn},e.prototype.createPoint=function(t,e){var o=e.series,r=e.seriesIx,i=this.seriesMissingValues(o),n=t.valueFields.value;if(!xt(n)||null===n){if(i!==Gr)return null;n=0}var a=this.pointOptions(o,r);a=this.evalPointOptions(a,n,e);var s=t.fields.color||o.color;U(o.color)&&(s=a.color);var l=new hn(n,a);return l.color=s,this.append(l),l},e.prototype.plotRange=function(t){var e=this.plotValue(t);if(this.options.isStacked)for(var o=t.categoryIx,r=this.categoryPoints[o],i=0;i<r.length;i++){var n=r[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,o){var r=e.style;return new(r===qr?mn:r===Yr?_n:fn)(t,e,o)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],o=0;o<t.length;o++)e.push((t[o]||{}).marker);return e.concat(this._segments)},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(an);X(An.prototype,wn,Pn);const kn=An;var Tn=function(t){function e(e,o,r,i,n){t.call(this,e,o,r),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,o=t.line||{},r=t.color;U(r)&&e&&(r=e.color),this.visual=new D.drawing.Group({zIndex:t.zIndex}),this.createFill({fill:{color:r,opacity:t.opacity},stroke:null}),o.width>0&&!1!==o.visible&&this.createStroke({stroke:X({color:r,opacity:t.opacity,lineCap:"butt"},o)})},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 D.geometry.Segment(t)}))},e.prototype.createStroke=function(t){var e=new D.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(),o=e.slice(0),r=this.hasStackSegment();if(r){var i=this.stackSegments();bt(o,i)}var n=new D.drawing.Path(t);n.segments.push.apply(n.segments,o),!r&&e.length>1&&this.fillToAxes(n),this.visual.append(n)},e.prototype.fillToAxes=function(t){var e=this.parent,o=e.options.invertAxes,r=e.seriesValueAxis(this.series),i=e.categoryAxisCrossingValue(r),n=r.getSlot(i,i,!0),a=this.strokeSegments(),s=a[0].anchor(),l=kt(a).anchor(),p=o?n.x1:n.y1;o?t.lineTo(p,l.y).lineTo(p,s.y):t.lineTo(l.x,p).lineTo(s.x,p)},e}(fn);const jn=Tn;var En=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}(jn);X(En.prototype,yn);const Mn=En;var In=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 xr(this.options.closed),e=this.points();return t.process(e)},e.prototype.createStackSegments=function(){for(var t=this.strokeSegments(),e=[],o=t.length-1;o>=0;o--){var r=t[o];e.push(new D.geometry.Segment(r.anchor(),r.controlOut(),r.controlIn()))}return e},e}(jn);const Ln=In;var 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.createSegment=function(t,e,o,r){var i,n,a=this.options.isStacked,s=(e.line||{}).style;return a&&o>0&&r&&("gap"!==this.seriesMissingValues(e)?(n=r.linePoints,i=r):n=this._gapStackPoints(t,o,s)),new(s===qr?Mn:s===Yr?Ln:jn)(t,e,o,i,n)},e.prototype.reflow=function(e){t.prototype.reflow.call(this,e);var o=this._stackPoints;if(o)for(var r=0;r<o.length;r++){var i=o[r],n=this.categoryAxis.getSlot(i.categoryIx);i.reflow(n)}},e.prototype._gapStackPoints=function(t,e,o){var r=this,i=this.seriesPoints,n=t[0].categoryIx,a=t.length;n<0&&(n=0,a--);var s=n+a,l=this.seriesOptions[0]._outOfRangeMinPoint?1:0,p=[];this._stackPoints=this._stackPoints||[];for(var c=n;c<s;c++){var h=c+l,u=e,f=void 0;do{f=i[--u][h]}while(u>0&&!f);if(f)o!==qr&&c>n&&!i[u][h-1]&&p.push(r._previousSegmentPoint(c,h,h-1,u)),p.push(f),o!==qr&&c+1<s&&!i[u][h+1]&&p.push(r._previousSegmentPoint(c,h,h+1,u));else{var d=r._createGapStackPoint(c);r._stackPoints.push(d),p.push(d)}}return p},e.prototype._previousSegmentPoint=function(t,e,o,r){for(var i,n=this.seriesPoints,a=r;a>0&&!i;)i=n[--a][o];return i?i=n[a][e]:(i=this._createGapStackPoint(t),this._stackPoints.push(i)),i},e.prototype._createGapStackPoint=function(t){var e=this.pointOptions({},0),o=new hn(0,e);return o.categoryIx=t,o.series={},o},e.prototype.seriesMissingValues=function(t){return t.missingValues||Gr},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(kn);const Dn=Rn;var Bn=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 o in t){var r=t[o],i=e[o];e[o]=i=i||{min:m,max:b},i.min=Math.min(i.min,r.min),i.max=Math.max(i.max,r.max)}},e.prototype.reset=function(t){this.axisRanges[t]=void 0},e.prototype.query=function(t){return this.axisRanges[t]},e}(D.Class);const Nn=Bn;var zn=function(t){function e(e,o,r){t.call(this,o),this.textBox=new Ee(e,this.options,r),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,o=e.vertical,r=e.aboveAxis,i=this.children[0],n=i.options,l=i.box,p=i.options.padding,c=t;n.align=o?s:g,n.vAlign=o?P:s,e.position===Ki?o?(n.vAlign=P,!r&&l.height()<t.height()&&(n.vAlign=a)):n.align=r?C:g:e.position===s?(n.vAlign=s,n.align=s):"insideBase"===e.position?o?n.vAlign=r?a:P:n.align=r?g:C:e.position===Yi&&(o?c=r?new ie(t.x1,t.y1-l.height(),t.x2,t.y1):new ie(t.x1,t.y2,t.x2,t.y2+l.height()):(n.align=s,c=r?new ie(t.x2,t.y1,t.x2+l.width(),t.y2):new ie(t.x1-l.width(),t.y1,t.x1,t.y2))),e.rotation||(o?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?E:j,o=e+"1",r=e+"2",i=this.children[0],n=this.parent.box;if(n[o]<t[o]||t[r]<n[r]){var a=i.paddingBox.clone();a[o]=Math.max(n[o],t[o]),a[r]=Math.min(n[r],t[r]),this.reflow(a)}},e}(fe);Bt(zn,{position:Yi,margin:$(3),padding:$(4),color:n,background:"",border:{width:1,color:""},aboveAxis:!0,vertical:!1,animation:{type:zr,delay:Nr},zIndex:2});const Vn=zn;function Hn(t){var e=t.overlay;return e&&e.gradient&&"none"!==e.gradient}var Un=function(t){function e(e,o){t.call(this),this.options=o,this.color=o.color||k,this.aboveAxis=Lt(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 o,r=this.pointData(),i=ot(e);o=i?i(r):this.formatValue(e.format),this.label=new Vn(o,X({vertical:t.vertical},e),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;if(this.box=t,e&&(e.options.aboveAxis=this.aboveAxis,e.reflow(t)),this.note&&this.note.reflow(t),this.errorBars)for(var o=0;o<this.errorBars.length;o++)this.errorBars[o].reflow(t)},e.prototype.createVisual=function(){var e=this,o=this.box,r=this.options,i=r.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:o.toRect(),createVisual:function(){var t=new D.drawing.Group;return e.createRect(t),t},options:r});n&&this.visual.append(n)}else o.width()>0&&o.height()>0&&this.createRect(this.visual)},e.prototype.createRect=function(t){var e=this.options,o=e.border,r=xt(o.opacity)?o.opacity:e.opacity,i=this.box.toRect();i.size.width=Math.round(i.size.width);var n=this.rectVisual=D.drawing.Path.fromRect(i,{fill:{color:this.color,opacity:e.opacity},stroke:{color:this.getBorderColor(),width:o.width,opacity:r,dashType:o.dashType}}),a=this.box.width(),s=this.box.height();if((e.vertical?a:s)>6&&(B(n),(a<1||s<1)&&(n.options.stroke.lineJoin="round")),t.append(n),Hn(e)){var l=this.createGradientOverlay(n,{baseColor:this.color},X({end:e.vertical?void 0:[0,1]},e.overlay));t.append(l)}},e.prototype.createHighlight=function(t){return B(D.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,o=e._brightness||Vr,r=e.color;return xt(r)||(r=new D.Color(t).brightness(o).toHex()),r},e.prototype.tooltipAnchor=function(){var t,e,o=this,r=o.options,i=o.box,n=o.aboveAxis,s=this.owner.pane.clipBox()||i,l=g,p=P;if(r.vertical)t=Math.min(i.x2,s.x2)+5,n?e=Math.max(i.y1,s.y1):(e=Math.min(i.y2,s.y2),p=a);else{var c=Math.max(i.x1,s.x1),h=Math.min(i.x2,s.x2);r.isStacked?(p=a,n?(l=C,t=h):t=c,e=Math.max(i.y1,s.y1)-5):(n?t=h+5:(t=c-5,l=C),e=Math.max(i.y1,s.y1))}return{point:new ee(t,e),align:{horizontal:l,vertical:p}}},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}(fe);X(Un.prototype,ln),X(Un.prototype,pn),Un.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};const Fn=Un;function Gn(t,e){t.forEach(e)}function Wn(t,e){for(var o=t.length,r=o-1;r>=0;r--)e(t[r],r-o-1)}var Xn=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Wn:Gn}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,o=e.vertical,r=e.gap,i=e.spacing,n=this.children,a=n.length,s=o?E:j,l=a+r+i*(a-1),p=(o?t.height():t.width())/l,c=t[s+1]+p*(r/2);this.forEach(n,(function(e,o){var r=(e.box||t).clone();r[s+1]=c,r[s+2]=c+p,e.reflow(r),o<a-1&&(c+=p*i),c+=p}))},e}(fe);Bt(Xn,{vertical:!1,gap:0,spacing:0});const Kn=Xn;var 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){for(var e=this.options.vertical?j:E,o=this.children,r=o.length,i=this.box=new ie,n=0;n<r;n++){var a=o[n];if(!1!==a.visible){var s=a.box.clone();s.snapTo(t,e),0===n&&(i=this.box=s.clone()),a.reflow(s),i.wrap(s)}}},e}(fe);Bt(Yn,{vertical:!0});const qn=Yn;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.render=function(){t.prototype.render.call(this),this.updateStackRange()},e.prototype.pointType=function(){return Fn},e.prototype.clusterType=function(){return Kn},e.prototype.stackType=function(){return qn},e.prototype.stackLimits=function(e,o){return t.prototype.stackLimits.call(this,e,o)},e.prototype.createPoint=function(t,e){var o=e.categoryIx,r=e.series,i=e.seriesIx,n=this.options,a=this.children,s=n.isStacked,l=this.pointValue(t),p=this.pointOptions(r,i),c=p.labels;s&&c.position===Yi&&(c.position=Ki),p.isStacked=s;var h=t.fields.color||r.color;l<0&&p.negativeColor&&(h=p.negativeColor),p=this.evalPointOptions(p,l,e),U(r.color)&&(h=p.color);var u=new(this.pointType())(l,p);u.color=h;var f=a[o];return f||(f=new(this.clusterType())({vertical:n.invertAxes,gap:n.gap,spacing:n.spacing,rtl:!n.invertAxes&&(this.chartService||{}).rtl}),this.append(f)),s?this.getStackWrap(r,f).append(u):f.append(u),u},e.prototype.getStackWrap=function(t,e){var o,r=t.stack,i=r&&r.group||r,n=e.children;if(typeof i===S){for(var a=0;a<n.length;a++)if(n[a]._stackGroup===i){o=n[a];break}}else o=n[0];return o||((o=new(this.stackType())({vertical:!this.options.invertAxes}))._stackGroup=i,e.append(o)),o},e.prototype.categorySlot=function(t,e,o){var r=this.options,i=t.getSlot(e),n=o.startValue();if(r.isStacked){var a=o.getSlot(n,n,!0),s=r.invertAxes?j:E;i[s+1]=i[s+2]=a[s+1]}return i},e.prototype.reflowCategories=function(t){for(var e=this.children,o=e.length,r=0;r<o;r++)e[r].reflow(t[r])},e.prototype.createAnimation=function(){this._setAnimationOptions(),t.prototype.createAnimation.call(this),Sn(this.options.series)&&this._setChildrenAnimation()},e.prototype._setChildrenAnimation=function(){for(var t=this.points,e=0;e<t.length;e++){var o=t[e],r=o.visual;r&&xt(r.options.zIndex)&&(o.options.animation=this.options.animation,o.createAnimation())}},e.prototype._setAnimationOptions=function(){var t,e=this.options,o=e.animation||{};if(e.isStacked){var r=this.seriesValueAxis(e.series[0]);t=r.getSlot(r.startValue())}else t=this.categoryAxis.getSlot(0);o.origin=new D.geometry.Point(t.x1,t.y1),o.vertical=!e.invertAxes},e}(an);Bt(Zn,{animation:{type:Qr}});const Qn=Zn;var $n=function(t){function e(e,o){t.call(this,o),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,o=e.options,r=e.value,i=e.owner.seriesValueAxis(o),n=i.getSlot(r.open,r.close),a=i.getSlot(r.low,r.high);n.x1=a.x1=t.x1,n.x2=a.x2=t.x2,this.realBody=n;var s=a.center().x,l=[];l.push([[s,a.y1],[s,n.y1]]),l.push([[s,n.y2],[s,a.y2]]),this.lines=l,this.box=a.clone().wrap(n),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 D.drawing.Group;return this.createBody(e,t),this.createLines(e,t),e},e.prototype.createBody=function(t,e){var o=D.drawing.Path.fromRect(this.realBody.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null});e.border.width>0&&o.options.set("stroke",{color:this.getBorderColor(),width:e.border.width,dashType:e.border.dashType,opacity:Lt(e.border.opacity,e.opacity)}),B(o),t.append(o),Hn(e)&&t.append(this.createGradientOverlay(o,{baseColor:this.color},X({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,o,r){if(o)for(var i={stroke:{color:r.color||this.color,opacity:Lt(r.opacity,e.opacity),width:r.width,dashType:r.dashType,lineCap:"butt"}},n=0;n<o.length;n++){var a=D.drawing.Path.fromPoints(o[n],i);B(a),t.append(a)}},e.prototype.getBorderColor=function(){var t=this.options.border,e=t.color;return xt(e)||(e=new D.Color(this.color).brightness(t._brightness).toHex()),e},e.prototype.createOverlay=function(){var t=D.drawing.Path.fromRect(this.box.toRect(),{fill:{color:k,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 o=this.mainVisual(X({},this.options,{line:{color:this.getBorderColor()}},t));return this.color=e,o},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 ee(t.x2+5,Math.max(t.y1,e.y1)+5),align:{horizontal:g,vertical:P}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e}(fe);Bt($n,{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:{}}}),X($n.prototype,ln),X($n.prototype,pn);const Jn=$n;function ta(t){return kr(t)===t.length}var 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.reflowCategories=function(t){for(var e=this.children,o=e.length,r=0;r<o;r++)e[r].reflow(t[r])},e.prototype.addValue=function(t,e){var o,r=e.categoryIx,i=e.category,n=e.series,a=e.seriesIx,s=this.children,l=this.options,p=t.valueFields,c=ta(this.splitValue(p)),h=n.data[r],u=this.categoryPoints[r];u||(this.categoryPoints[r]=u=[]),c&&(o=this.createPoint(t,e));var f=s[r];f||(f=new Kn({vertical:l.invertAxes,gap:l.gap,spacing:l.spacing,rtl:!l.invertAxes&&(this.chartService||{}).rtl}),this.append(f)),o&&(this.updateRange(p,e),f.append(o),o.categoryIx=r,o.category=i,o.series=n,o.seriesIx=a,o.owner=this,o.dataItem=h,o.noteText=t.fields.noteText),this.points.push(o),u.push(o)},e.prototype.pointType=function(){return Jn},e.prototype.createPoint=function(t,e){var o=e.series,r=this.pointType(),i=t.valueFields,n=X({},o),a=t.fields.color||o.color;n=this.evalPointOptions(n,i,e),o.type===ei&&i.open>i.close&&(a=t.fields.downColor||o.downColor||o.color),U(o.color)&&(a=n.color),n.vertical=!this.options.invertAxes;var s=new r(i,n);return s.color=a,s},e.prototype.splitValue=function(t){return[t.low,t.open,t.close,t.high]},e.prototype.updateRange=function(t,e){var o=e.series.axis,r=this.splitValue(t),i=this.valueAxisRanges[o];i=this.valueAxisRanges[o]=i||{min:m,max:b},i=this.valueAxisRanges[o]={min:Math.min.apply(Math,r.concat([i.min])),max:Math.max.apply(Math,r.concat([i.max]))}},e.prototype.formatPointValue=function(t,e){var o=t.value;return this.chartService.format.auto(e,o.open,o.high,o.low,o.close,t.category)},e.prototype.animationPoints=function(){return this.points},e}(an);X(ea.prototype,Pn);const oa=ea;var ra=function(t){function e(e,o){t.call(this,e,o),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,o,r=this,i=r.options,n=r.value,a=r.owner.seriesValueAxis(i);this.boxSlot=o=a.getSlot(n.q1,n.q3),this.realBody=o,this.reflowBoxSlot(t),this.whiskerSlot=e=a.getSlot(n.lower,n.upper),this.reflowWhiskerSlot(t);var s=a.getSlot(n.median);if(n.mean){var l=a.getSlot(n.mean);this.meanPoints=this.calcMeanPoints(t,l)}this.whiskerPoints=this.calcWhiskerPoints(o,e),this.medianPoints=this.calcMedianPoints(t,s),this.box=e.clone().wrap(o),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 o=e.center().x;return[[[o-5,e.y1],[o+5,e.y1],[o,e.y1],[o,t.y1]],[[o-5,e.y2],[o+5,e.y2],[o,e.y2],[o,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,o=e.outliers||[],r=3*Math.abs(e.q3-e.q1),i=[],n=t.markers||{},a=0;a<o.length;a++){var s=o[a],l=X({},(n=s<e.q3+r&&s>e.q1-r?t.outliers:t.extremes).border);xt(l.color)||(xt(this.color)?l.color=this.color:l.color=new D.Color(n.background).brightness(Vr).toHex());var p=new ge({type:n.type,width:n.size,height:n.size,rotation:n.rotation,background:n.background,border:l,opacity:n.opacity});p.value=s,i.push(p)}return this.reflowOutliers(i),i},e.prototype.reflowOutliers=function(t){for(var e=this,o=this.owner.seriesValueAxis(this.options),r=this.box.center(),i=0;i<t.length;i++){var n=t[i].value,a=o.getSlot(n);e.options.vertical?a.move(r.x):a.move(void 0,r.y),e.box=e.box.wrap(a),t[i].reflow(a)}},e.prototype.mainVisual=function(e){for(var o=t.prototype.mainVisual.call(this,e),r=this.renderOutliers(e),i=0;i<r.length;i++){var n=r[i].getElement();n&&o.append(n)}return o},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}(Jn);Bt(ra,{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:c,background:k,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:l,background:k,border:{width:2,opacity:1},opacity:0}}),X(ra.prototype,ln);const ia=ra;var na=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 o=e.center().y;return[[[e.x1,o-5],[e.x1,o+5],[e.x1,o],[t.x1,o]],[[e.x2,o-5],[e.x2,o+5],[e.x2,o],[t.x2,o]]]},e.prototype.calcMedianPoints=function(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]},e}(ia);const aa=na;var sa=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 o,r=e.categoryIx,i=e.category,n=e.series,a=e.seriesIx,s=this.children,l=this.options,p=t.valueFields,c=ta(this.splitValue(p)),h=n.data[r],u=this.categoryPoints[r];u||(this.categoryPoints[r]=u=[]),c&&(o=this.createPoint(t,e));var f=s[r];f||(f=new Kn({vertical:l.invertAxes,gap:l.gap,spacing:l.spacing,rtl:!l.invertAxes&&(this.chartService||{}).rtl}),this.append(f)),o&&(this.updateRange(p,e),f.append(o),o.categoryIx=r,o.category=i,o.series=n,o.seriesIx=a,o.owner=this,o.dataItem=h),this.points.push(o),u.push(o)},e.prototype.pointType=function(){return this.options.invertAxes?aa:ia},e.prototype.splitValue=function(t){return[t.lower,t.q1,t.median,t.q3,t.upper]},e.prototype.updateRange=function(t,e){var o=e.series.axis,r=this.valueAxisRanges[o],i=this.splitValue(t).concat(this.filterOutliers(t.outliers));xt(t.mean)&&(i=i.concat(t.mean)),r=this.valueAxisRanges[o]=r||{min:m,max:b},r=this.valueAxisRanges[o]={min:Math.min.apply(Math,i.concat([r.min])),max:Math.max.apply(Math,i.concat([r.max]))}},e.prototype.formatPointValue=function(t,e){var o=t.value;return this.chartService.format.auto(e,o.lower,o.q1,o.median,o.q3,o.upper,o.mean,t.category)},e.prototype.filterOutliers=function(t){for(var e=(t||[]).length,o=[],r=0;r<e;r++){var i=t[r];xt(i)&&null!==i&&o.push(i)}return o},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(oa);const la=sa;var pa=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}($i);const ca=pa;function ha(t){return xt(t)&&null!==t}var ua=function(t){function e(e,o){t.call(this,o),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,o){var r,i=t.value[e],n=e+"Value",a=e+"ErrorLow",s=e+"ErrorHigh",l=o.seriesIx,p=o.series,c=t.options.errorBars,h=o[a],u=o[s];z(i)&&(z(h)&&z(u)&&(r={low:h,high:u}),c&&xt(c[n])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[e][l]=this.seriesErrorRanges[e][l]||new Dr(c[n],p,e),r=this.seriesErrorRanges[e][l].getErrorRange(i,c[n])),r&&this.addPointErrorBar(r,t,e))},e.prototype.addPointErrorBar=function(t,e,o){var r=t.low,i=t.high,n=e.series,a=e.options.errorBars,s=o===E,l={};e[o+"Low"]=r,e[o+"High"]=i,e.errorBars=e.errorBars||[];var p=new ca(r,i,s,this,n,a);e.errorBars.push(p),e.append(p),l[o]=r,this.updateRange(l,n),l[o]=i,this.updateRange(l,n)},e.prototype.addValue=function(t,e){var o,r=t.x,i=t.y,n=e.seriesIx,a=this.options.series[n],s=this.seriesMissingValues(a),l=this.seriesPoints[n],p=t;ha(r)&&ha(i)||(p=this.createMissingValue(p,s)),p&&((o=this.createPoint(p,e))&&(Object.assign(o,e),this.addErrorBar(o,j,e),this.addErrorBar(o,E,e)),this.updateRange(p,e.series)),this.points.push(o),l.push(o)},e.prototype.seriesMissingValues=function(t){return t.missingValues},e.prototype.createMissingValue=function(){},e.prototype.updateRange=function(t,e){var o=this.chartService.intl,r=e.xAxis,i=e.yAxis,n=t.x,a=t.y,s=this.xAxisRanges[r],l=this.yAxisRanges[i];ha(n)&&(s=this.xAxisRanges[r]=s||{min:m,max:b},V(n)&&(n=Lo(o,n)),s.min=Math.min(s.min,n),s.max=Math.max(s.max,n)),ha(a)&&(l=this.yAxisRanges[i]=l||{min:m,max:b},V(a)&&(a=Lo(o,a)),l.min=Math.min(l.min,a),l.max=Math.max(l.max,a))},e.prototype.evalPointOptions=function(t,e,o){var r=o.series,i=o.seriesIx,n={defaults:r._defaults,excluded:["data","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint","drilldownSeriesFactory"]},a=this._evalSeries[i];xt(a)||(this._evalSeries[i]=a=on(t,{},n,!0));var s=t;return a&&on(s=X({},t),{value:e,series:r,dataItem:o.dataItem},n),s},e.prototype.pointType=function(){return hn},e.prototype.pointOptions=function(t,e){var o=this.seriesOptions[e];if(!o){var r=this.pointType().prototype.defaults;this.seriesOptions[e]=o=X({},r,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return o},e.prototype.createPoint=function(t,e){var o=e.series,r=this.pointOptions(o,e.seriesIx),i=e.color||o.color;r=this.evalPointOptions(r,t,e),U(o.color)&&(i=r.color);var n=new hn(t,r);return n.color=i,this.append(n),n},e.prototype.seriesAxes=function(t){var e=t.xAxis,o=t.yAxis,r=this.plotArea,i=e?r.namedXAxes[e]:r.axisX,n=o?r.namedYAxes[o]:r.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 "+o);return{x:i,y:n}},e.prototype.reflow=function(t){var e=this,o=this.points,r=!this.options.clip,i=0;this.traverseDataPoints((function(t,n){var a=o[i++],s=e.seriesAxes(n.series),l=s.x.getSlot(t.x,t.x,r),p=s.y.getSlot(t.y,t.y,r);if(a)if(l&&p){var c=e.pointSlot(l,p);a.reflow(c)}else a.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new ie(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,o=this.seriesPoints,r=0;r<e.length;r++){var i=e[r];o[r]||(o[r]=[]);for(var n=0;n<i.data.length;n++){var a=this._bindPoint(i,r,n),s=a.valueFields,l=a.fields;t(s,X({pointIx:n,series:i,seriesIx:r,dataItem:i.data[n],owner:this},l))}}},e.prototype.formatPointValue=function(t,e){var o=t.value;return this.chartService.format.auto(e,o.x,o.y)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],o=0;o<t.length;o++)e.push((t[o]||{}).marker);return e},e}(fe);Bt(ua,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),X(ua.prototype,Pn,{_bindPoint:an.prototype._bindPoint});const fa=ua;var da=function(t){function e(e,o){t.call(this,e,o),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,o=this.options.markers,r=this.box.center(),i=(o.size+o.border.width+e.width)/2,n=new D.drawing.Group,a=new D.drawing.Circle(new D.geometry.Circle([r.x,r.y+i/5+e.width/2],i+e.width/2),{stroke:{color:"none"},fill:this.createGradient({gradient:"bubbleShadow",color:o.background,stops:[{offset:0,color:o.background,opacity:.3},{offset:1,color:o.background,opacity:0}]})}),s=new D.drawing.Circle(new D.geometry.Circle([r.x,r.y],i),{stroke:{color:e.color||new D.Color(o.background).brightness(Vr).toHex(),width:e.width,opacity:e.opacity},fill:{color:o.background,opacity:t.opacity}});return n.append(a,s),n},e}(hn);da.prototype.defaults=X({},da.prototype.defaults,{labels:{position:s},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),da.prototype.defaults.highlight.zIndex=void 0;const va=da;var 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._initFields=function(){this._maxSize=b,t.prototype._initFields.call(this)},e.prototype.addValue=function(e,o){null!==e.size&&(e.size>0||e.size<0&&o.series.negativeValues.visible)?(this._maxSize=Math.max(this._maxSize,Math.abs(e.size)),t.prototype.addValue.call(this,e,o)):(this.points.push(null),this.seriesPoints[o.seriesIx].push(null))},e.prototype.reflow=function(e){this.updateBubblesSize(e),t.prototype.reflow.call(this,e)},e.prototype.pointType=function(){return va},e.prototype.createPoint=function(t,e){var o=e.series,r=o.data.length,i=e.pointIx*(Nr/r),n={delay:i,duration:Nr-i,type:Jr},a=e.color||o.color;t.size<0&&o.negativeValues.visible&&(a=Lt(o.negativeValues.color,a));var s=X({labels:{animation:{delay:i,duration:Nr-i}}},this.pointOptions(o,e.seriesIx),{markers:{type:l,border:o.border,opacity:o.opacity,animation:n}});s=this.evalPointOptions(s,t,e),U(o.color)&&(a=s.color),s.markers.background=a;var p=new va(t,s);return p.color=a,this.append(p),p},e.prototype.updateBubblesSize=function(t){for(var e=this.options.series,o=Math.min(t.width(),t.height()),r=0;r<e.length;r++)for(var i=e[r],n=this.seriesPoints[r],a=(i.minSize||Math.max(.02*o,10))/2,s=(i.maxSize||.2*o)/2,l=Math.PI*a*a,p=(Math.PI*s*s-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=Lt(h.options.zIndex,0)+(1-f/s);X(h.options,{zIndex:d,markers:{size:2*f,zIndex:d},labels:{zIndex:d+1}})}}},e.prototype.formatPointValue=function(t,e){var o=t.value;return this.chartService.format.auto(e,o.x,o.y,o.size,t.category)},e.prototype.createAnimation=function(){},e.prototype.createVisual=function(){},e}(fa);Bt(ya,{tooltip:{format:"{3}"},labels:{format:"{3}"}});const ga=ya;var ma=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}(ge);X(ma.prototype,ln);const ba=ma;var _a=function(t){function e(e,o){t.call(this,o),this.aboveAxis=this.options.aboveAxis,this.color=o.color||k,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,xt(this.value.target)&&(this.target=new ba({type:t.target.shape,background:t.target.color||this.color,opacity:t.opacity,zIndex:t.zIndex,border:t.target.border,vAlign:P,align:C}),this.target.value=this.value,this.target.dataItem=this.dataItem,this.target.series=this.series,this.append(this.target)),this.createLabel(),this.createNote())},e.prototype.createLabel=function(){var t=this.options.labels;if(t.visible){var e,o=this.pointData(),r=ot(t);e=r?r(o):this.formatValue(t.format),this.label=new Vn(e,t,o),this.append(this.label)}},e.prototype.reflow=function(t){this.render();var e=this,o=e.options,r=e.target,i=e.owner,n=o.invertAxes,a=i.seriesValueAxis(this.options),s=i.categorySlot(i.categoryAxis,o.categoryIx,a),l=a.getSlot(this.value.target),p=n?l:s,c=n?s:l;if(r){var h=new ie(p.x1,c.y1,p.x2,c.y2);r.options.height=n?h.height():o.target.line.width,r.options.width=n?o.target.line.width:h.width(),r.reflow(h)}var u=this.label;u&&(u.options.aboveAxis=this.aboveAxis,u.reflow(t)),this.note&&this.note.reflow(t),this.box=t},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options,o=D.drawing.Path.fromRect(this.box.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null});e.border.width>0&&o.options.set("stroke",{color:e.border.color||this.color,width:e.border.width,dashType:e.border.dashType,opacity:Lt(e.border.opacity,e.opacity)}),this.bodyVisual=o,B(o),this.visual.append(o)},e.prototype.createAnimation=function(){this.bodyVisual&&(this.animation=D.drawing.Animation.create(this.bodyVisual,this.options.animation))},e.prototype.createHighlight=function(t){return D.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.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e}(fe);_a.prototype.tooltipAnchor=Fn.prototype.tooltipAnchor,Bt(_a,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},labels:{visible:!1},tooltip:{format:"Current: {0}<br />Target: {1}"},notes:{label:{}}}),X(_a.prototype,ln),X(_a.prototype,pn);const xa=_a;var wa=function(t){function e(e,o){!function(t){for(var e=t.series,o=0;o<e.length;o++){var r=e[o],i=r.data;!i||M(i[0])||K(i[0])||(r.data=[i])}}(o),t.call(this,e,o)}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,o=e.length,r=0;r<o;r++)e[r].reflow(t[r])},e.prototype.plotRange=function(t){var e=t.series,o=this.seriesValueAxis(e),r=this.categoryAxisCrossingValue(o);return[r,t.value.current||r]},e.prototype.createPoint=function(t,e){var o=e.categoryIx,r=e.series,i=this.options,n=this.children,a=t.valueFields,s=X({vertical:!i.invertAxes,overlay:r.overlay,categoryIx:o,invertAxes:i.invertAxes},r),l=t.fields.color||r.color;s=this.evalPointOptions(s,a,e),U(r.color)&&(l=s.color);var p=new xa(a,s);p.color=l;var c=n[o];return c||(c=new Kn({vertical:i.invertAxes,gap:i.gap,spacing:i.spacing,rtl:!i.invertAxes&&(this.chartService||{}).rtl}),this.append(c)),c.append(p),p},e.prototype.updateRange=function(t,e){var o=t.current,r=t.target,i=e.series.axis,n=this.valueAxisRanges[i];xt(o)&&!isNaN(o)&&xt(r&&!isNaN(r))&&((n=this.valueAxisRanges[i]=n||{min:m,max:b}).min=Math.min(n.min,o,r),n.max=Math.max(n.max,o,r))},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 o=t[e];o.options.animation=this.options.animation,o.createAnimation()}},e}(an);wa.prototype._setAnimationOptions=Qn.prototype._setAnimationOptions,Bt(wa,{animation:{type:Qr}});const Ca=wa;var Oa=function(t){function e(e,o){t.call(this),this.chartService=e,this.options=X({},this.options,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getStyle=function(t,e){var o=t.background,r=t.border.color;if(e){var i=e.color||e.options.color;o=Lt(o,i),r=Lt(r,i)}var n=$(t.padding||{},"auto");return{backgroundColor:o,borderColor:r,font:t.font,color:t.color,opacity:t.opacity,borderWidth:Y(t.border.width),paddingTop:Y(n.top),paddingBottom:Y(n.bottom),paddingLeft:Y(n.left),paddingRight:Y(n.right)}},e.prototype.show=function(t,e,o){t.format=e.format;var r=this.getStyle(e,o);t.style=r;var i=new D.Color(r.backgroundColor);xt(e.color)||i.isDark()||(t.className="k-chart-tooltip-inverse"),this.chartService.notify(Fi,t),this.visible=!0},e.prototype.hide=function(){this.chartService&&this.chartService.notify(Gi),this.visible=!1},e.prototype.destroy=function(){delete this.chartService},e}(D.Class);Bt(Oa,{border:{width:1},opacity:1});const Sa=Oa;var Pa=function(t){function e(e,o,r){t.call(this,e,r),this.crosshair=o,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,o=this.options,r=e[o.stickyMode?"getCategory":"getValue"](t),i=r;o.format?i=this.formatService.auto(o.format,r):e.options.type===h&&(i=this.formatService.auto(e.options.labels.dateFormats[e.options.baseUnit],r)),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(Gi,{crosshair:this.crosshair,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex})},e.prototype.getAnchor=function(){var t,e,o,r=this.crosshair,i=this.options,n=i.position,l=i.padding,p=!r.axis.options.vertical,c=r.line.bbox();return p?(t=s,n===a?(e=P,o=c.bottomLeft().translate(0,l)):(e=a,o=c.topLeft().translate(0,-l))):(e=s,n===g?(t=C,o=c.topLeft().translate(-l,0)):(t=g,o=c.topRight().translate(l,0))),{point:o,align:{horizontal:t,vertical:e}}},e}(Sa);Bt(Pa,{padding:10});const Aa=Pa;var ka=function(t){function e(e,o,r){t.call(this,r),this.axis=o,this.stickyMode=o instanceof No;var i=this.options.tooltip;i.visible&&(this.tooltip=new Aa(e,this,X({},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,o=this.point,r=e.options.vertical,i=this.getBox(),n=r?E:j,a=new D.geometry.Point(i.x1,i.y1);if(t=r?new D.geometry.Point(i.x2,i.y1):new D.geometry.Point(i.x1,i.y2),o)if(this.stickyMode){var s=e.getSlot(e.pointCategoryIndex(o));a[n]=t[n]=s.center()[n]}else a[n]=t[n]=o[n];this.box=i,this.line.moveTo(a).lineTo(t)},e.prototype.getBox=function(){for(var t,e=this.axis,o=e.pane.axes,r=o.length,i=e.options.vertical,n=e.lineBox().clone(),a=i?j:E,s=0;s<r;s++){var l=o[s];l.options.vertical!==i&&(t?t.wrap(l.lineBox()):t=l.lineBox().clone())}return n[a+1]=t[a+1],n[a+2]=t[a+2],n},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options;this.line=new D.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}(fe);Bt(ka,{color:n,width:2,zIndex:-1,tooltip:{visible:!1}});const Ta=ka;var ja=function(t){function e(e,o){t.call(this,e),this.pane=o}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,o=0;o<e;o++)if(!0===t[o].options.clip)return!0;return!1},e.prototype._clipBox=function(){return this.pane.chartsBox()},e.prototype.createVisual=function(){if(this.visual=new D.drawing.Group({zIndex:0}),this.shouldClip()){var t=(this.clipBox=this._clipBox()).toRect(),e=D.drawing.Path.fromRect(t);B(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,o=0;o<t.length;o++)for(var r=t[o].points||{},i=r.length,n=0;n<i;n++){var a=r[n];if(a&&!1!==a.visible&&a.overlapsBox&&a.overlapsBox(e))if(a.unclipElements)a.unclipElements();else{var s=a.label,l=a.note;s&&s.options.visible&&(s.alignToClipBox&&s.alignToClipBox(e),s.options.noclip=!0),l&&l.options.visible&&(l.options.noclip=!0)}}},e.prototype.destroy=function(){t.prototype.destroy.call(this),delete this.parent},e}(fe);ja.prototype.isStackRoot=!0;const Ea=ja;var Ma=function(t){function e(e){t.call(this,e),this.id="pane"+Ia++,this.createTitle(),this.content=new fe,this.chartContainer=new Ea({},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;K(t)&&(t=X({},t,{align:t.position,position:P})),this.title=Le.buildTitle(t,e.prototype.options.title),this.title&&this.append(this.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 o=0;o<this.charts.length;o++)t.removeChart(this.charts[o])}this.axes=[],this.charts=[],this.content.destroy(),this.content.children=[],this.chartContainer.children=[]},e.prototype.reflow=function(e){var o;kt(this.children)===this.content&&(o=this.children.pop()),t.prototype.reflow.call(this,e),o&&this.children.push(o),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),o=[],r=[],i=0;i<t.length;i++)for(var n=t[i],a=n.options.vertical,s=a?o:r,l=0;l<e.length;l++)if(0===s.length){var p=e[l];a!==p.options.vertical&&bt(s,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,o=new ie,r=0;r<e;r++){var i=t[r],n=i.options.vertical?E:j,a=i.lineBox();o[n+1]=a[n+1],o[n+2]=a[n+2]}if(0===o.x2)for(var s=this.parent.axes,l=s.length,p=0;p<l;p++){var c=s[p];if(!c.options.vertical){var h=c.lineBox();o.x1=h.x1,o.x2=h.x2}}return o},e.prototype.clipBox=function(){return this.chartContainer.clipBox},e.prototype.notifyRender=function(){var t=this.getService();t&&t.notify("paneRender",{pane:new Pr(this),index:this.paneIndex,name:this.options.name})},e}(ve),Ia=1;Ma.prototype.isStackRoot=!0,Bt(Ma,{zIndex:-1,shrinkToFit:!0,title:{align:g},visible:!0});const La=Ma;function Ra(t,e){null!==e&&t.push(e)}function Da(t,e,o){var r=e.visible;if(xt(r))return r;var i=t.pointVisibility;return i?i[o]:void 0}function Ba(t){for(var e=t.data,o=[],r=0,i=0,n=0;n<e.length;n++){var a=Ir.current.bindPoint(t,n),s=a.valueFields.value;V(s)&&(s=parseFloat(s)),z(s)?(a.visible=!1!==Da(t,a.fields,n),a.value=Math.abs(s),o.push(a),a.visible&&(r+=a.value),0!==s&&i++):o.push(null)}return{total:r,points:o,count:i}}function Na(t,e){return t&&e?t.toLowerCase()===e.toLowerCase():t===e}function za(t,e){for(var o=[],r=[].concat(e),i=0;i<t.length;i++){var n=t[i];ct(n.type,r)&&o.push(n)}return o}function Va(t,e,o){if(null===e)return e;var r="_date_"+t,i=e[r];return i||(i=Lo(o,nt(t)(e)),e[r]=i),i}function Ha(t,e){var o=t.type,r=e instanceof Date;return!o&&r||Na(o,h)}function Ua(t){return 1===t.length?t[0]:t}var Fa=/area/i;function Ga(t,e){var o=Ir.current.bindPoint(t,null,e).valueFields;for(var r in o)if(H(o[r]))return!0}function Wa(t){var e,o,r=t.start,i=t.dir,n=t.min,a=t.max,s=t.getter,l=t.hasItem,p=t.series,c=r;do{l(c+=i)&&(e=Ga(p,(o=s(c)).item))}while(n<=c&&c<=a&&!e);if(e)return o}function Xa(t,e,o,r,i){var n=e.min,a=e.max,s=n>0&&n<o,l=a+1<o;if(s||l){var p,c,h,u=function(t){return t.missingValues?t.missingValues:Fa.test(t.type)||t.stack?Gr:Wr}(t);u!==Wr?(s&&(p=r(n-1)),l&&(c=r(a+1))):(s&&(p=Ga(t,(h=r(n-1)).item)?h:Wa({start:n,dir:-1,min:0,max:o-1,getter:r,hasItem:i,series:t})),l&&(c=Ga(t,(h=r(a+1)).item)?h:Wa({start:a,dir:1,min:0,max:o-1,getter:r,hasItem:i,series:t}))),p&&(t._outOfRangeMinPoint=p),c&&(t._outOfRangeMaxPoint=c)}}var Ka=function(t){function e(e,o,r){t.call(this,o),this.initFields(e,o),this.series=e,this.initSeries(),this.charts=[],this.options.legend=this.options.legend||{},this.options.legend.items=[],this.axes=[],this.crosshairs=[],this.chartService=r,this.originalOptions=o,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,o=this.options.panes||[],r=Math.max(o.length,1),i=[],n=X({title:{color:t.color}},e),a=0;a<r;a++){var s=X({},n,o[a]);V(s.title)&&(s.title=X({text:s.title},n.title));var l=new La(s);l.paneIndex=a,i.push(l),this.append(l)}this.panes=i},e.prototype.crosshairOptions=function(t){return t.options.crosshair},e.prototype.createCrosshairs=function(t){var e=this;void 0===t&&(t=this.panes);for(var o=0;o<t.length;o++)for(var r=t[o],i=0;i<r.axes.length;i++){var n=r.axes[i],a=e.crosshairOptions(n);if(a&&a.visible){var s=new Ta(e.chartService,n,a);e.crosshairs.push(s),r.content.append(s)}}},e.prototype.removeCrosshairs=function(t){for(var e=this.crosshairs,o=t.axes,r=e.length-1;r>=0;r--)for(var i=0;i<o.length;i++)if(e[r].axis===o[i]){e.splice(r,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,o=this.panes,r=0;r<o.length;r++)if(o[r].options.name===t){e=o[r];break}return e||o[0]},e.prototype.findPointPane=function(t){for(var e,o=this.panes,r=0;r<o.length;r++)if(o[r].box.containsPoint(t)){e=o[r];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=[],o=0;o<this.axes.length;o++){var r=this.axes[o];t!==r?e.push(r):r.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=[],o=0;o<this.charts.length;o++){var r=this.charts[o];r!==t?e.push(r):r.destroy()}this.charts=e},e.prototype.addToLegend=function(t){for(var e=t.length,o=this.options.legend,r=o.labels||{},i=o.inactiveItems||{},n=i.labels||{},a=[],s=0;s<e;s++){var l=t[s],p=!1!==l.visible;if(!1!==l.visibleInLegend){var c=l.name,h=p?ot(r):ot(n)||ot(r);h&&(c=h({text:ha(c)?c:"",series:l}));var u=l._defaults,f=l.color;U(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),ha(c)&&""!==c&&a.push({text:c,labels:d,markerColor:v,series:l,active:p})}}bt(o.items,a)},e.prototype.groupAxes=function(t){for(var e=[],o=[],r=0;r<t.length;r++)for(var i=t[r].axes,n=0;n<i.length;n++){var a=i[n];a.options.vertical?o.push(a):e.push(a)}return{x:e,y:o,any:e.concat(o)}},e.prototype.groupSeriesByPane=function(){for(var t=this.series,e={},o=0;o<t.length;o++){var r=t[o],i=this.seriesPaneName(r);e[i]?e[i].push(r):e[i]=[r]}return e},e.prototype.filterVisibleSeries=function(t){for(var e=[],o=0;o<t.length;o++){var r=t[o];!1!==r.visible&&e.push(r)}return e},e.prototype.reflow=function(t){var e=this.options.plotArea,o=this.panes,r=$(e.margin);this.box=t.clone().unpad(r),this.reflowPanes(),this.detachLabels(),this.reflowAxes(o),this.reflowCharts(o)},e.prototype.redraw=function(t){var e=[].concat(t);this.initSeries();var o=this.getRoot();o&&o.cleanGradients();for(var r=0;r<e.length;r++)this.removeCrosshairs(e[r]),e[r].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 o=t.options,r=[].concat(o.axisCrossingValues||o.axisCrossingValue),i=e.length-r.length,n=r[0]||0,a=0;a<i;a++)r.push(n);return r},e.prototype.alignAxisTo=function(t,e,o,r){var i=t.getSlot(o,o,!0),n=t.options.reverse?2:1,a=e.getSlot(r,r,!0),s=e.options.reverse?2:1,l=t.box.translate(a[j+s]-i[j+n],a[E+s]-i[E+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 o=this,r=t[0],i=e[0],n=this.axisCrossingValues(r,e),s=this.axisCrossingValues(i,t),l={},c={},h={},u={},f=0;f<e.length;f++){var d=e[f],v=d.pane,y=v.id,m=!1!==d.options.visible,b=Za(t,v)||r,_=n;b!==r&&(_=o.axisCrossingValues(b,e)),o.alignAxisTo(d,b,s[f],_[f]),d.options._overlap||(Mt(d.lineBox().x1)===Mt(b.lineBox().x1)&&(l[y]&&d.reflow(d.box.alignTo(l[y].box,g).translate(-d.options.margin,0)),m&&(l[y]=d)),Mt(d.lineBox().x2)===Mt(b.lineBox().x2)&&(d._mirrored||(d.options.labels.mirror=!d.options.labels.mirror,d._mirrored=!0),o.alignAxisTo(d,b,s[f],_[f]),c[y]&&d.reflow(d.box.alignTo(c[y].box,C).translate(d.options.margin,0)),m&&(c[y]=d)),0!==f&&i.pane===d.pane&&(d.alignTo(i),d.reflow(d.box)))}for(var x=0;x<t.length;x++){var w=t[x],O=w.pane,S=O.id,A=!1!==w.options.visible,k=Za(e,O)||i,T=s;k!==i&&(T=o.axisCrossingValues(k,t)),o.alignAxisTo(w,k,n[x],T[x]),w.options._overlap||(Mt(w.lineBox().y1)===Mt(k.lineBox().y1)&&(w._mirrored||(w.options.labels.mirror=!w.options.labels.mirror,w._mirrored=!0),o.alignAxisTo(w,k,n[x],T[x]),h[S]&&w.reflow(w.box.alignTo(h[S].box,P).translate(0,-w.options.margin)),A&&(h[S]=w)),Mt(w.lineBox().y2,p)===Mt(k.lineBox().y2,p)&&(u[S]&&w.reflow(w.box.alignTo(u[S].box,a).translate(0,w.options.margin)),A&&(u[S]=w)),0!==x&&(w.alignTo(r),w.reflow(w.box)))}},e.prototype.shrinkAxisWidth=function(t){for(var e=this.groupAxes(t).any,o=qa(e),r=0,i=0;i<t.length;i++){var n=t[i];n.axes.length>0&&(r=Math.max(r,o.width()-n.contentBox.width()))}if(0!==r)for(var a=0;a<e.length;a++){var s=e[a];s.options.vertical||s.reflow(s.box.shrink(r,0))}},e.prototype.shrinkAxisHeight=function(t){for(var e,o=0;o<t.length;o++){var r=t[o],i=r.axes,n=Math.max(0,qa(i).height()-r.contentBox.height());if(0!==n){for(var a=0;a<i.length;a++){var s=i[a];s.options.vertical&&s.reflow(s.box.shrink(0,n))}e=!0}}return e},e.prototype.fitAxes=function(t){for(var e=this.groupAxes(t).any,o=0,r=0;r<t.length;r++){var i=t[r],n=i.axes,a=i.contentBox;if(n.length>0){var s=qa(n),l=Math.max(a.y1-s.y1,a.y2-s.y2);o=Math.max(o,a.x1-s.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(o,0))}},e.prototype.reflowAxes=function(t){for(var e=this.groupAxes(t),o=0;o<t.length;o++)this.reflowPaneAxes(t[o]);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,o=this.panes,r=Qa(o),i=0;i<r.length;i++)r[i].autoRotateLabels()&&(e=!0);if(e){for(var n=0;n<o.length;n++)this.reflowPaneAxes(o[n]);t.x.length>0&&t.y.length>0&&(this.alignAxes(t.x,t.y),this.shrinkAxisWidth(o))}},e.prototype.reflowPaneAxes=function(t){var e=t.axes,o=e.length;if(o>0)for(var r=0;r<o;r++)e[r].reflow(t.contentBox)},e.prototype.reflowCharts=function(t){for(var e=this.charts,o=e.length,r=this.box,i=0;i<o;i++){var n=e[i].pane;n&&!ct(n,t)||e[i].reflow(r)}},e.prototype.reflowPanes=function(){for(var t=this.box,e=this.panes,o=e.length,r=t.height(),i=0,n=t.y1,a=0;a<o;a++){var s=e[a],l=s.options.height;if(s.options.width=t.width(),s.options.height){if(l.indexOf&&l.indexOf("%")){var p=parseInt(l,10)/100;s.options.height=p*t.height()}s.reflow(t.clone()),r-=s.options.height}else i++}for(var c=0;c<o;c++){var h=e[c];h.options.height||(h.options.height=r/i)}for(var u=0;u<o;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,o=e.length,r=0;r<o;r++)for(var i=e[r],n=0;n<o;n++){var a=e[n];if(i.options.vertical!==a.options.vertical){var s=i.lineBox().clone().wrap(a.lineBox());t=t?t.wrap(s):s}}return t||this.box},e.prototype.chartsBoxes=function(){for(var t=this.panes,e=[],o=0;o<t.length;o++)e.push(t[o].chartsBox());return e},e.prototype.addBackgroundPaths=function(t){for(var e=this.chartsBoxes(),o=0;o<e.length;o++)t.paths.push(D.drawing.Path.fromRect(e[o].toRect()))},e.prototype.backgroundContainsPoint=function(t){for(var e=this.chartsBoxes(),o=0;o<e.length;o++)if(e[o].containsPoint(t))return!0},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e,o=this.options.plotArea,r=o.opacity,i=o.background,n=o.border;void 0===n&&(n={}),""!==(e=i)&&null!==e&&"none"!==e&&"transparent"!==e&&xt(e)||(i=k,r=0);var a=this._bgVisual=new D.drawing.MultiPath({fill:{color:i,opacity:r},stroke:{color:n.width?n.color:"",width:n.width,dashType:n.dashType},zIndex:-1});this.addBackgroundPaths(a),this.appendVisual(a)},e.prototype.pointsByCategoryIndex=function(t){var e=this.charts,o=[];if(null!==t)for(var r=0;r<e.length;r++)if("_navigator"!==e[r].pane.options.name){var i=e[r].categoryPoints[t];if(i&&i.length)for(var n=0;n<i.length;n++){var a=i[n];a&&xt(a.value)&&null!==a.value&&o.push(a)}}return o},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,o=[],r=0;r<e.length;r++)for(var i=e[r].points,n=0;n<i.length;n++){var a=i[n];a&&!1!==a.visible&&t(a)&&o.push(a)}return o},e.prototype.findPoint=function(t){for(var e=this.charts,o=0;o<e.length;o++)for(var r=e[o].points,i=0;i<r.length;i++){var n=r[i];if(n&&!1!==n.visible&&t(n))return n}},e.prototype.paneByPoint=function(t){for(var e=this.panes,o=0;o<e.length;o++){var r=e[o];if(r.box.containsPoint(t))return r}},e.prototype.detachLabels=function(){var t=this.groupAxes(this.panes),e=t.x,o=t.y;this.detachAxisGroupLabels(o,e),this.detachAxisGroupLabels(e,o)},e.prototype.detachAxisGroupLabels=function(t,e){for(var o=0,r=0;r<t.length;r++){var i=t[r],n=i.pane,a=Za(e,n)||e[0],s=r+o,l=this.createLabelAxis(i,s,a);if(l){o++;var p=n.axes.indexOf(i)+o;n.appendAxisAt(l,p)}}},e.prototype.createLabelAxis=function(t,e,o){var r=t.options.labels,i=r.position,n="end"!==i&&"start"!==i,a=r.visible;if(n||!1===a)return null;var s=this.groupAxes(this.panes),l=o.options.vertical?s.x:s.y,p=this.axisCrossingValues(o,l),c="end"===i,h=o.range(),u=c?h.max:h.min;if(Tt(p[e],h.min,h.max)-u==0)return null;p.splice(e+1,0,u),o.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}(fe);function Ya(t){return!t.pane.axes.some((function(e){return e.options.vertical===t.options.vertical&&e!==t&&!1!==e.options.visible}))}function qa(t){for(var e,o=t.length,r=0;r<o;r++){var i=t[r],n=!1!==i.options.visible;if(n||Ya(i)){var a=n?i.contentBox():i.lineBox();e?e.wrap(a):e=a.clone()}}return e||new ie}function Za(t,e){for(var o=0;o<t.length;o++){var r=t[o];if(r&&r.pane===e)return r}}var Qa=function(t){return t.reduce((function(t,e){return t.concat(e.axes)}),[])};Bt(Ka,{series:[],plotArea:{margin:{}},background:"",border:{color:n,width:0},paneDefaults:{title:{}},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});const $a=Ka;var Ja={hover:function(t,e){this._dispatchEvent(t,e,Mi)},click:function(t,e){this._dispatchEvent(t,e,"plotAreaClick")}};const ts=Ja;function es(t,e,o){var r=e,i=t;if(t.indexOf(".")>-1){for(var n=t.split(".");n.length>1;)i=n.shift(),xt(r[i])||(r[i]={}),r=r[i];i=n.shift()}r[i]=o}const os=function(t){function e(e,o,r){t.call(this);var i=o.canonicalFields(e),n=o.valueFields(e),a=o.sourceFields(e,i),s=this._seriesFields=[],l=r.query(e.type),p=e.aggregate||l;this._series=e,this._binder=o;for(var c=0;c<i.length;c++){var h=i[c],u=void 0;if(K(p))u=p[h];else{if(0!==c&&!ct(h,n))break;u=p}u&&s.push({canonicalName:h,name:a[c],transform:U(u)?u:jr[u]})}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.aggregatePoints=function(t,e){var o=this._series,r=this._seriesFields,i=this._bindPoints(t||[]),n=i.dataItems[0],a={};if(n&&!z(n)&&!M(n)){var s=function(){};s.prototype=n,a=new s}for(var l=0;l<r.length;l++){var p=r[l],c=this._bindField(i.values,p.canonicalName),h=p.transform(c,o,i.dataItems,e);if(!(null===h||!K(h)||xt(h.length)||h instanceof Date)){a=h;break}xt(h)&&es(p.name,a,h)}return a},e.prototype._bindPoints=function(t){for(var e=this._binder,o=this._series,r=[],i=[],n=0;n<t.length;n++){var a=t[n];r.push(e.bindPoint(o,a)),i.push(o.data[a])}return{values:r,dataItems:i}},e.prototype._bindField=function(t,e){for(var o=[],r=t.length,i=0;i<r;i++){var n,a=t[i],s=a.valueFields;n=xt(s[e])?s[e]:a.fields[e],o.push(n)}return o},e}(D.Class);var rs=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 o=0;o<t.length;o++)this._defaults[t[o]]=e},e.prototype.query=function(t){return this._defaults[t]},e}(D.Class);rs.current=new rs;const is=rs;var 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.createLabel=function(){var t=this.options.labels,e=X({},t,t.from),o=X({},t,t.to);e.visible&&(this.labelFrom=this._createLabel(e),this.append(this.labelFrom)),o.visible&&(this.labelTo=this._createLabel(o),this.append(this.labelTo))},e.prototype._createLabel=function(t){var e,o=ot(t),r=this.pointData();return e=o?o(r):this.formatValue(t.format),new Vn(e,X({vertical:this.options.vertical},t),r)},e.prototype.reflow=function(t){this.render();var e=this,o=e.labelFrom,r=e.labelTo,i=e.value;this.box=t,o&&(o.options.aboveAxis=i.from>i.to,o.reflow(t)),r&&(r.options.aboveAxis=i.to>i.from,r.reflow(t)),this.note&&this.note.reflow(t)},e}(Fn);ns.prototype.defaults=X({},ns.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});const as=ns;var 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.pointType=function(){return as},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 o=e.series.axis,r=t.from,i=t.to,n=this.valueAxisRanges[o];null!==t&&z(r)&&z(i)&&((n=this.valueAxisRanges[o]=n||{min:m,max:b}).min=Math.min(n.min,r),n.max=Math.max(n.max,r),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}(Qn);ss.prototype.plotLimits=an.prototype.plotLimits;const ls=ss;var ps=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}(hn);const cs=ps;var hs="auto",us=function(t){function e(e,o){t.call(this),this.value=e,this.options=o,this.aboveAxis=Lt(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,o=t.labels,r=this.value,i=this.fromPoint=new cs(r,X({},this.options,{labels:o.from,markers:e.from})),n=this.toPoint=new cs(r,X({},this.options,{labels:o.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,o=t.to;this.positionLabels(e,o),this.fromPoint.reflow(e),this.toPoint.reflow(o),this.box=this.fromPoint.markerBox().clone().wrap(this.toPoint.markerBox())},e.prototype.createHighlight=function(){var t=new D.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,o,r,i=this.box,n=i.center(),l=g;return this.options.vertical?(e=n.x,o=i.y1-5,r=a):(e=i.x2+5,o=n.y,r=s),{point:new ee(e,o),align:{horizontal:l,vertical:r}}}},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 o,r,i=this.options,n=i.labels,a=i.vertical;n.position===hs&&(a?e.y1<=t.y1?(r=Xr,o=Kr):(r=Kr,o=Xr):e.x1<=t.x1?(r=g,o=C):(r=C,o=g),n.from&&n.from.position||(this.fromPoint.options.labels.position=o),n.to&&n.to.position||(this.toPoint.options.labels.position=r))},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}(fe);X(us.prototype,ln),X(us.prototype,pn),us.prototype.defaults={markers:{visible:!1,background:k,size:8,type:l,border:{width:2},opacity:1},labels:{visible:!1,margin:$(3),padding:$(4),animation:{type:zr,delay:Nr},position:hs},notes:{label:{}},highlight:{markers:{border:{color:k,width:2}},zIndex:100},tooltip:{format:"{0} - {1}"}};const fs=us;var 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.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 D.drawing.Path(t),o=new D.drawing.Path(t);e.segments.push.apply(e.segments,this.strokeSegments()),o.segments.push.apply(o.segments,this.stackSegments()),this.visual.append(e),this.visual.append(o)},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}(jn);const vs=ds;var ys=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 xr).process(this.toGeometryPoints(t))},e}(vs);const gs=ys;var 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.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}(vs);X(ms.prototype,yn);const bs=ms;var _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(){t.prototype.render.call(this),this.renderSegments()},e.prototype.pointType=function(){return fs},e.prototype.createPoint=function(t,e){var o=e.series,r=e.seriesIx,i=t.valueFields;if(!ha(i.from)&&!ha(i.to)){if(this.seriesMissingValues(o)!==Gr)return null;i={from:0,to:0}}var n=this.pointOptions(o,r);n=this.evalPointOptions(n,i,e);var a=t.fields.color||o.color;U(o.color)&&(a=n.color);var s=new fs(i,n);return s.color=a,this.append(s),s},e.prototype.createSegment=function(t,e,o){var r=(e.line||{}).style;return new("smooth"===r?gs:"step"===r?bs:vs)(t,e,o)},e.prototype.plotRange=function(t,e){return t?[t.value.from,t.value.to]:[e,e]},e.prototype.valueSlot=function(t,e){var o=t.getSlot(e[0],e[0],!this.options.clip),r=t.getSlot(e[1],e[1],!this.options.clip);if(o&&r)return{from:o,to:r}},e.prototype.pointSlot=function(t,e){var o,r,i=e.from,n=e.to;return this.options.invertAxes?(o=new ie(i.x1,t.y1,i.x2,t.y2),r=new ie(n.x1,t.y1,n.x2,t.y2)):(o=new ie(t.x1,i.y1,t.x2,i.y2),r=new ie(t.x1,n.y1,t.x2,n.y2)),{from:o,to:r}},e.prototype.addValue=function(e,o){var r=e.valueFields;z(r.from)||(r.from=r.to),z(r.to)||(r.to=r.from),t.prototype.addValue.call(this,e,o)},e.prototype.updateRange=function(t,e){if(null!==t&&z(t.from)&&z(t.to)){var o=e.series.axis,r=this.valueAxisRanges[o]=this.valueAxisRanges[o]||{min:m,max:b},i=t.from,n=t.to;r.min=Math.min(r.min,i,n),r.max=Math.max(r.max,i,n)}},e.prototype.formatPointValue=function(t,e){var o=t.value;return this.chartService.format.auto(e,o.from,o.to)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],o=0;o<t.length;o++){var r=t[o];r&&(e.push((r.fromPoint||{}).marker),e.push((r.toPoint||{}).marker))}return e.concat(this._segments)},e}(an);X(_s.prototype,wn,Pn);const xs=_s;var ws=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,o=e.options,r=e.value,i=e.owner.seriesValueAxis(o),n=[],a=[],s=[],l=i.getSlot(r.low,r.high),p=i.getSlot(r.open,r.open),c=i.getSlot(r.close,r.close);p.x1=c.x1=l.x1=t.x1,p.x2=c.x2=l.x2=t.x2;var h=l.center().x;n.push([p.x1,p.y1]),n.push([h,p.y1]),a.push([h,c.y1]),a.push([c.x2,c.y1]),s.push([h,l.y1]),s.push([h,l.y2]),this.lines=[n,a,s],this.box=l.clone().wrap(p.clone().wrap(c)),this.reflowNote()},e.prototype.createBody=function(){},e}(Jn);const Cs=ws;var Os=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 Cs},e}(oa);const Ss=Os;var Ps=function(t){function e(e,o,r){t.call(this),this.from=e,this.to=o,this.series=r}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,o=this.to.box,r=[];if(t.isVertical){var i=t.aboveAxis?e.y1:e.y2;r.push([e.x1,i],[o.x2,i])}else{var n=t.aboveAxis?e.x2:e.x1;r.push([n,e.y1],[n,o.y2])}return r},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.series.line||{},o=D.drawing.Path.fromPoints(this.linePoints(),{stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType}});B(o),this.visual.append(o)},e}(fe);Bt(Ps,{animation:{type:zr,delay:Nr}});const As=Ps;var 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.render=function(){t.prototype.render.call(this),this.createSegments()},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,o=rn(e),r=!this.options.invertAxes,i=0;i<e.length;i++)for(var n=e[i],a=0,s=0,l=0;l<o;l++){var p=Ir.current.bindPoint(n,l),c=p.valueFields.value,h=p.fields.summary,u=a,f=void 0;h?"total"===h.toLowerCase()?(p.valueFields.value=a,u=0,f=a):(p.valueFields.value=s,f=u-s,s=0):z(c)&&(s+=c,f=a+=c),t(p,{category:this.categoryAxis.categoryAt(l),categoryIx:l,series:n,seriesIx:i,total:a,runningTotal:s,from:u,to:f,isVertical:r})}},e.prototype.updateRange=function(e,o){t.prototype.updateRange.call(this,{value:o.to},o)},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,o=this.segments=[],r=0;r<t.length;r++){var i=t[r],n=e[r];if(n)for(var a=void 0,s=0;s<n.length;s++){var l=n[s];if(l&&a){var p=new As(a,l,i);o.push(p),this.append(p)}a=l}}},e}(Qn);const Ts=ks;var js=[Zr,xi,yi,Si],Es=[si,Oi].concat(js),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.initFields=function(t){if(this.namedCategoryAxes={},this.namedValueAxes={},this.valueAxisRangeTracker=new Nn,t.length>0){this.invertAxes=ct(t[0].type,[Qr,ti,Oi,xi,Si,gi,ai,wi]);for(var e=0;e<t.length;e++){var o=t[e].stack;if(o&&"100%"===o.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 o=e.options.name;t.prototype.removeAxis.call(this,e),e instanceof No?delete this.namedCategoryAxes[o]:(this.valueAxisRangeTracker.reset(o),delete this.namedValueAxes[o]),e===this.categoryAxis&&delete this.categoryAxis,e===this.valueAxis&&delete this.valueAxis},e.prototype.createCharts=function(t){for(var e=this,o=this.groupSeriesByPane(),r=0;r<t.length;r++){var i=t[r],n=o[i.options.name||"default"]||[];e.addToLegend(n);var a=e.filterVisibleSeries(n);if(a)for(var s=e.groupSeriesByCategoryAxis(a),l=0;l<s.length;l++)e.createChartGroup(s[l],i)}},e.prototype.createChartGroup=function(t,e){this.createAreaChart(za(t,[Zr,xi]),e),this.createRangeAreaChart(za(t,[yi,Si]),e),this.createBarChart(za(t,[oi,Qr]),e),this.createRangeBarChart(za(t,[mi,gi]),e),this.createBulletChart(za(t,[ti,Ci]),e),this.createCandlestickChart(za(t,ei),e),this.createBoxPlotChart(za(t,[$r,wi]),e),this.createOHLCChart(za(t,li),e),this.createWaterfallChart(za(t,[Pi,ai]),e),this.createLineChart(za(t,[si,Oi]),e)},e.prototype.aggregateCategories=function(t){var e=this,o=this.srcSeries||this.series,r=[];this._currentPointsCache={},this._seriesPointsCache=this._seriesPointsCache||{};for(var i=0;i<o.length;i++){var n=o[i],a=e.seriesCategoryAxis(n),s=e.findPane(a.options.pane);n=(Na(a.options.type,h)||n.categoryField)&&ct(s,t)?e.aggregateSeries(n,a):e.filterSeries(n,a),r.push(n)}this._seriesPointsCache=this._currentPointsCache,this._currentPointsCache=null,this.srcSeries=o,this.series=r},e.prototype.filterSeries=function(t,e){var o=(t.data||{}).length;if(e._seriesMax=Math.max(e._seriesMax||0,o),!z(e.options.min)&&!z(e.options.max))return t;var r=e.currentRangeIndices(),i=ct(t.type,Es),n=X({},t);return n.data=(n.data||[]).slice(r.min,r.max+1),i&&Xa(n,r,o,(function(o){return{item:t.data[o],category:e.categoryAt(o,!0),categoryIx:o-r.min}}),(function(e){return xt(t.data[e])})),n},e.prototype.clearSeriesPointsCache=function(){this._seriesPointsCache={}},e.prototype.seriesSourcePoints=function(t,e){var o=t.index+";"+e.categoriesHash();if(this._seriesPointsCache[o])return this._currentPointsCache[o]=this._seriesPointsCache[o],this._seriesPointsCache[o];var r=e.options,i=r.srcCategories,n=Na(r.type,h),a=t.data,s=n?Va:Er,l=[];n||e.mapCategories();for(var p=0;p<a.length;p++){var c;if(c=t.categoryField?s(t.categoryField,a[p],this.chartService.intl):i[p],xt(c)&&null!==c){var u=e.totalIndex(c);l[u]=l[u]||{items:[],category:c},l[u].items.push(p)}}return this._currentPointsCache[o]=l,l},e.prototype.aggregateSeries=function(t,e){if(!t.data.length)return t;for(var o=this.seriesSourcePoints(t,e),r=X({},t),i=new os(X({},t),Ir.current,is.current),n=r.data=[],a=e.options.dataItems||[],s=e.currentRangeIndices(),l=function(t){var r=t-s.min,n=o[t];if(n||(n=o[t]={}),n.categoryIx=r,!n.item){var a=e.categoryAt(t,!0);n.category=a,n.item=i.aggregatePoints(n.items,a)}return n},p=s.min;p<=s.max;p++){var c=l(p);n[c.categoryIx]=c.item,c.items&&c.items.length&&(a[c.categoryIx]=c.item)}return ct(r.type,Es)&&Xa(r,s,e.totalCount(),l,(function(t){return o[t]})),e.options.dataItems=a,r},e.prototype.appendChart=function(e,o){var r=e.options.series,i=this.seriesCategoryAxis(r[0]),n=i.options.categories,a=Math.max(0,rn(r)-n.length);if(a>0)for(n=i.options.categories=i.options.categories.slice(0);a--;)n.push("");this.valueAxisRangeTracker.update(e.valueAxisRanges),t.prototype.appendChart.call(this,e,o)},e.prototype.seriesPaneName=function(t){var e=this.options,o=t.axis,r=at([].concat(e.valueAxis),(function(t){return t.name===o}))[0],i=((e.panes||[{}])[0]||{}).name||"default";return(r||{}).pane||i},e.prototype.seriesCategoryAxis=function(t){var e=t.categoryAxis,o=e?this.namedCategoryAxes[e]:this.categoryAxis;if(!o)throw new Error("Unable to locate category axis with name "+e);return o},e.prototype.stackableChartOptions=function(t,e){var o=t.stack;return{isStacked:o,isStacked100:o&&"100%"===o.type,clip:e.options.clip}},e.prototype.groupSeriesByCategoryAxis=function(t){for(var e=[],o={},r=0;r<t.length;r++){var i=t[r].categoryAxis||"$$default$$";o.hasOwnProperty(i)||(o[i]=!0,e.push(i))}for(var n=[],a=0;a<e.length;a++){var s=Ls(t,e[a],a);0!==s.length&&n.push(s)}return n},e.prototype.createBarChart=function(t,e){if(0!==t.length){var o=t[0],r=new Qn(this,Object.assign({series:t,invertAxes:this.invertAxes,gap:o.gap,spacing:o.spacing},this.stackableChartOptions(o,e)));this.appendChart(r,e)}},e.prototype.createRangeBarChart=function(t,e){if(0!==t.length){var o=t[0],r=new ls(this,{series:t,invertAxes:this.invertAxes,gap:o.gap,spacing:o.spacing});this.appendChart(r,e)}},e.prototype.createBulletChart=function(t,e){if(0!==t.length){var o=t[0],r=new Ca(this,{series:t,invertAxes:this.invertAxes,gap:o.gap,spacing:o.spacing,clip:e.options.clip});this.appendChart(r,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var o=t[0],r=new kn(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(o,e)));this.appendChart(r,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var o=t[0],r=new Dn(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(o,e)));this.appendChart(r,e)}},e.prototype.createRangeAreaChart=function(t,e){if(0!==t.length){var o=new xs(this,{invertAxes:this.invertAxes,series:t,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createOHLCChart=function(t,e){if(0!==t.length){var o=t[0],r=new Ss(this,{invertAxes:this.invertAxes,gap:o.gap,series:t,spacing:o.spacing,clip:e.options.clip});this.appendChart(r,e)}},e.prototype.createCandlestickChart=function(t,e){if(0!==t.length){var o=t[0],r=new oa(this,{invertAxes:this.invertAxes,gap:o.gap,series:t,spacing:o.spacing,clip:e.options.clip});this.appendChart(r,e)}},e.prototype.createBoxPlotChart=function(t,e){if(0!==t.length){var o=t[0],r=new la(this,{invertAxes:this.invertAxes,gap:o.gap,series:t,spacing:o.spacing,clip:e.options.clip});this.appendChart(r,e)}},e.prototype.createWaterfallChart=function(t,e){if(0!==t.length){var o=t[0],r=new Ts(this,{series:t,invertAxes:this.invertAxes,gap:o.gap,spacing:o.spacing});this.appendChart(r,e)}},e.prototype.axisRequiresRounding=function(t,e){for(var o=za(this.series,Ai),r=0;r<this.series.length;r++){var i=this.series[r];if(ct(i.type,js)){var n=i.line;n&&n.style===qr&&o.push(i)}}for(var a=0;a<o.length;a++){var s=o[a].categoryAxis||"";if(s===t||!s&&0===e)return!0}},e.prototype.aggregatedAxis=function(t,e){for(var o=this.series,r=0;r<o.length;r++){var i=o[r].categoryAxis||"";if((i===t||!i&&0===e)&&o[r].categoryField)return!0}},e.prototype.createCategoryAxesLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e]instanceof No&&t[e].createLabels()},e.prototype.createCategoryAxes=function(t){for(var e=this,o=this.invertAxes,r=[].concat(this.options.categoryAxis),i=[],n=0;n<r.length;n++){var a=r[n];if(ct(e.findPane(a.pane),t)){var s=a.name,l=a.categories;void 0===l&&(l=[]),a=X({vertical:o,reverse:!o&&e.chartService.rtl,axisCrossingValue:o?m:0},a),xt(a.justified)||(a.justified=e.isJustified()),e.axisRequiresRounding(s,n)&&(a.justified=!1);var p=void 0;if(p=Ha(a,l[0])?new Ko(a,e.chartService):new No(a,e.chartService),r[n].categories=p.options.srcCategories,s){if(e.namedCategoryAxes[s])throw new Error("Category axis with name "+s+" is already defined");e.namedCategoryAxes[s]=p}p.axisIndex=n,i.push(p),e.appendAxis(p)}}var c=this.categoryAxis||i[0];this.categoryAxis=c,o?this.axisY=c:this.axisX=c},e.prototype.isJustified=function(){for(var t=this.series,e=0;e<t.length;e++)if(!ct(t[e].type,js))return!1;return!0},e.prototype.createValueAxes=function(t){var e=this,o=this.valueAxisRangeTracker,r=o.query(),i=[].concat(this.options.valueAxis),n=this.invertAxes,a={vertical:!n,reverse:n&&this.chartService.rtl},s=[];this.stack100&&(a.roundToMajorUnit=!1,a.labels={format:"P0"});for(var l=0;l<i.length;l++){var p=i[l];if(ct(e.findPane(p.pane),t)){var c=p.name,h=Na(p.type,Wi)?{min:.1,max:1}:{min:0,max:1},u=o.query(c)||r||h;0===l&&u&&r&&(u.min=Math.min(u.min,r.min),u.max=Math.max(u.max,r.max));var f=new(Na(p.type,Wi)?sr:tr)(u.min,u.max,X({},a,p),e.chartService);if(c){if(e.namedValueAxes[c])throw new Error("Value axis with name "+c+" is already defined");e.namedValueAxes[c]=f}f.axisIndex=l,s.push(f),e.appendAxis(f)}}var d=this.valueAxis||s[0];this.valueAxis=d,n?this.axisX=d:this.axisY=d},e.prototype._dispatchEvent=function(t,e,o){var r=t._eventCoordinates(e),i=new ee(r.x,r.y),n=this.pointPane(i),a=[],s=[];if(n){for(var l=n.axes,p=0;p<l.length;p++){var c=l[p];c.getValue?Ra(s,c.getValue(i)):Ra(a,c.getCategory(i))}0===a.length&&Ra(a,this.categoryAxis.getCategory(i)),a.length>0&&s.length>0&&t.trigger(o,{element:Pt(e),originalEvent:e,category:Ua(a),value:Ua(s)})}},e.prototype.pointPane=function(t){for(var e=this.panes,o=0;o<e.length;o++){var r=e[o];if(r.contentBox.containsPoint(t))return r}},e.prototype.updateAxisOptions=function(t,e){Is(this.options,t,e),Is(this.originalOptions,t,e)},e}($a);function Is(t,e,o){X([].concat(e instanceof No?t.categoryAxis:t.valueAxis)[e.axisIndex],o)}function Ls(t,e,o){return at(t,(function(t){return 0===o&&!t.categoryAxis||t.categoryAxis===e}))}Bt(Ms,{categoryAxis:{},valueAxis:{}}),X(Ms.prototype,ts);const Rs=Ms;var Ds=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 o=[].concat(t);this.hide();for(var r=0;r<o.length;r++){var i=o[r];i&&i.toggleHighlight&&i.hasHighlight()&&(this.togglePointHighlight(i,!0,e),this._points.push(i))}},e.prototype.togglePointHighlight=function(t,e,o){var r=(t.options.highlight||{}).toggle;if(r){var i={category:t.category,series:t.series,dataItem:t.dataItem,value:t.value,stackValue:t.stackValue,preventDefault:Bs,visual:t.highlightVisual(),show:e};r(i),i._defaultPrevented||t.toggleHighlight(e,o)}else t.toggleHighlight(e,o)},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,o=0;o<e.length;o++)if(t===e[o])return!0;return!1},e}(D.Class);function Bs(){this._defaultPrevented=!0}const Ns=Ds;function zs(t,e){var o=(e||"").toLowerCase(),r=t.event;return"none"===o&&!(r.ctrlKey||r.shiftKey||r.altKey)||r[o+"Key"]}function Vs(t){for(var e={},o=0;o<t.length;o++){var r=t[o];r.axis.options.name&&(e[r.axis.options.name]={min:r.range.min,max:r.range.max})}return e}var Hs=function(t){function e(e,o){t.call(this),this.plotArea=e,this.options=X({},this.options,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.start=function(t){return this._active=zs(t,this.options.key),this._active},e.prototype.move=function(t){if(this._active){var e=this.axisRanges=this._panAxes(t,j).concat(this._panAxes(t,E));if(e.length)return this.axisRanges=e,Vs(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 o=0;o<e.length;o++){var r=e[o];t.updateAxisOptions(r.axis,r.range)}t.redraw(t.panes)}},e.prototype.destroy=function(){delete this.plotArea},e.prototype._panAxes=function(t,e){var o=this.plotArea,r=-t[e].delta,i=(this.options.lock||"").toLowerCase(),n=[];if(0!==r&&(i||"").toLowerCase()!==e)for(var a=o.axes,s=0;s<a.length;s++){var l=a[s];if(e===j&&!l.options.vertical||e===E&&l.options.vertical){var p=l.pan(r);p&&(p.limitRange=!0,n.push({axis:l,range:p}))}}return n},e}(D.Class);Hs.prototype.options={key:"none",lock:"none"};const Us=Hs;var Fs=function(t){function e(e,o){t.call(this),this.chart=e,this.options=X({},this.options,o),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){Q(this._marquee,t)},e.prototype.start=function(t){if(zs(t,this.options.key)){var e=this.chart,o=e._eventCoordinates(t),r=this._zoomPane=e._plotArea.paneByPoint(o),i=r?r.chartsBox().clone():null;if(r&&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=Q(t,["paddingLeft","paddingTop"]),o=e.paddingLeft,r=e.paddingTop,i=Ct(t);return{left:o+i.left,top:r+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(),o=this._selectionPosition(t);o.left-=e.left,o.top-=e.top;var r={x:o.left,y:o.top},i={x:o.left+o.width,y:o.top+o.height};return this._updateAxisRanges(r,i),this.removeElement(),delete this._zoomPane,Vs(this.axisRanges)}},e.prototype.zoom=function(){var t=this.axisRanges;if(t&&t.length){for(var e=this.chart._plotArea,o=0;o<t.length;o++){var r=t[o];e.updateAxisOptions(r.axis,r.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 o=(this.options.lock||"").toLowerCase(),r=[],i=this._zoomPane.axes,n=0;n<i.length;n++){var a=i[n],s=a.options.vertical;if((o!==j||s)&&(o!==E||!s)&&xt(a.axisIndex)){var l=a.pointsRange(t,e);l&&r.push({axis:a,range:l})}}this.axisRanges=r},e.prototype._selectionPosition=function(t){var e=this._zoomPaneClipBox,o={x:t.x.startLocation,y:t.y.startLocation},r=t.x.location,i=t.y.location,n=(this.options.lock||"").toLowerCase(),a=Math.min(o.x,r),s=Math.min(o.y,i),l=Math.abs(o.x-r),p=Math.abs(o.y-i);return n===j&&(a=e.x1,l=e.width()),n===E&&(s=e.y1,p=e.height()),r>e.x2&&(l=e.x2-o.x),r<e.x1&&(l=o.x-e.x1),i>e.y2&&(p=e.y2-o.y),i<e.y1&&(p=o.y-e.y1),{left:Math.max(a,e.x1),top:Math.max(s,e.y1),width:l,height:p}},e}(D.Class);Fs.prototype.options={key:"shift",lock:"none"};const Gs=Fs;var Ws=function(t){function e(e,o){t.call(this),this.chart=e,this.options=X({rate:.3},this.options,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.updateRanges=function(t,e){for(var o=(this.options.lock||"").toLowerCase(),r=[],i=this.chart._plotArea.axes,n=0;n<i.length;n++){var a=i[n],s=a.options.vertical;if((o!==j||s)&&(o!==E||!s)&&a.zoomRange){var l=Tt(this.options.rate,.01,.9),p=a.zoomRange(-t*l,e);p&&r.push({axis:a,range:p})}}return this.axisRanges=r,Vs(r)},e.prototype.zoom=function(){var t=this.axisRanges,e=this.chart._plotArea;if(t&&t.length&&e.updateAxisOptions){for(var o=0;o<t.length;o++){var r=t[o];e.updateAxisOptions(r.axis,r.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){delete this.chart},e}(D.Class);const Xs=Ws;var Ks=function(t){function e(e,o){t.call(this,e),this.chartService=o}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,o=e.vertical;this.visual=new D.drawing.Layout(null,{spacing:o?0:e.spacing,lineSpacing:o?e.spacing:0,orientation:o?"vertical":"horizontal",reverse:e.rtl,alignItems:o?"start":"center"});for(var r=0;r<t.length;r++){var i=t[r];i.reflow(new ie),i.renderVisual()}},e.prototype.reflow=function(t){this.visual.rect(t.toRect()),this.visual.reflow();var e=this.visual.clippedBBox();this.box=e?ke(e):new ie},e.prototype.renderVisual=function(){this.addVisual()},e.prototype.createVisual=function(){},e}(fe);const Ys=Ks;var qs=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 Oe({vertical:!1,wrap:!1,align:s,spacing:this.options.spacing}),this.append(this.container)},e.prototype.createMarker=function(){this.container.append(new ge(this.markerOptions()))},e.prototype.markerOptions=function(){var t=this.options,e=t.markerColor;return X({},t.markers,{background:e,border:{color:e}})},e.prototype.createLabel=function(){var t=this.options,e=X({},t.labels);this.container.append(new Ee(t.text,e))},e.prototype.renderComplete=function(){t.prototype.renderComplete.call(this);var e=this.options.cursor||{},o=this._itemOverlay=D.drawing.Path.fromRect(this.container.box.toRect(),{fill:{color:k,opacity:0},stroke:null,cursor:e.style||e});this.appendVisual(o)},e.prototype.click=function(t,e){var o=this.eventArgs(e);!t.trigger("legendItemClick",o)&&e&&"contextmenu"===e.type&&e.preventDefault()},e.prototype.over=function(t,e){var o=this.eventArgs(e);return t.trigger("legendItemHover",o)||t._legendItemHover(o.seriesIndex,o.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:Pt(t),text:e.text,series:e.series,seriesIndex:e.series.index,pointIndex:e.pointIndex}},e.prototype.renderVisual=function(){var e=this,o=this.options,r=o.visual;r?(this.visual=r({active:o.active,series:o.series,sender:this.getSender(),pointIndex:o.pointIndex,options:{markers:this.markerOptions(),labels:o.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}(ve);const Zs=qs;var Qs="horizontal",$s="custom",Js=function(t){function e(e,o){void 0===o&&(o={}),t.call(this,e),this.chartService=o,ct(this.options.position,[P,C,a,g,$s])||(this.options.position=C),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,o=t.align,r=e,i=s;e===$s?r=g:ct(e,[P,a])?(r="start"===o?g:"end"===o?C:s,i=e):o&&("start"===o?i=P:"end"===o&&(i=a)),this.container=new ve({margin:t.margin,padding:t.padding,background:t.background,border:t.border,vAlign:i,align:r,zIndex:t.zIndex,shrinkToFit:!0}),this.hasTitle()?this.itemsContainer=new ve({vAlign:i,align:r,zIndex:t.zIndex,shrinkToFit:!0}):this.itemsContainer=this.container,this.append(this.container)},e.prototype.createItems=function(){var t=this.getService(),e=this.options,o=this.isVertical(),r=new Ys({vertical:o,spacing:e.spacing,rtl:t.rtl},t),i=e.items;e.reverse&&(i=i.slice(0).reverse());for(var n=i.length,a=0;a<n;a++){var s=i[a];r.append(new Zs(X({},{markers:e.markers,labels:e.labels,rtl:t.rtl},e.item,s)))}r.render(),this.itemsContainer.append(r)},e.prototype.isVertical=function(){var t=this.options,e=t.orientation,o=t.position;return o===$s&&e!==Qs||(xt(e)?e!==Qs:ct(o,[g,C]))},e.prototype.hasItems=function(){return this.container.children[0].children.length>0},e.prototype.reflow=function(t){var e=this.options,o=t.clone();this.hasItems()?(e.position===$s?(this.containerCustomReflow(o),this.box=o):this.containerReflow(o),this.hasTitle()&&this.title.reflow(new ie(this.container.box.x1,this.title.box.y1,this.container.box.x2,this.title.box.y2))):this.box=o},e.prototype.containerReflow=function(t){var e=this.options,o=this.container,r=e.position,i=e.width,n=e.height,s=r===P||r===a?j:E,l=this.isVertical(),p=t.clone(),c=t.clone();r!==g&&r!==C||(c.y1=p.y1=0),l&&n?(c.y2=c.y1+n,c.align(p,E,o.options.vAlign)):!l&&i&&(c.x2=c.x1+i,c.align(p,j,o.options.align)),o.reflow(c);var h=(c=o.box).clone();(e.offsetX||e.offsetY)&&(c.translate(e.offsetX,e.offsetY),o.reflow(c)),h[s+1]=t[s+1],h[s+2]=t[s+2],this.box=h},e.prototype.containerCustomReflow=function(t){var e=this.options,o=this.container,r=e.offsetX,i=e.offsetY,n=e.width,a=e.height,s=this.isVertical(),l=t.clone();s&&a?l.y2=l.y1+a:!s&&n&&(l.x2=l.x1+n),o.reflow(l),l=o.box,o.reflow(new ie(r,i,r+l.width(),i+l.height()))},e.prototype.renderVisual=function(){this.hasItems()&&t.prototype.renderVisual.call(this)},e.prototype.createLegendTitle=function(t){var e=X({},{color:n,position:P,align:s},t),o=e.text;if(t&&!1!==t.visible){if(xt(e)&&e.visible){var r=ot(e);r?o=r({text:o}):e.format&&(o=this.chartService.format.auto(e.format,o))}this.title=new Ee(o,e),this.createTitleLayout(),this.appendTitleLayoutContent()}},e.prototype.createTitleLayout=function(){this.layout=new Oe({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===a?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))},e}(fe);Bt(Js,{position:C,items:[],offsetX:0,offsetY:0,margin:$(5),padding:$(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:g,vAlign:s}});const tl=Js;var el=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,o){for(var r,i=this._registry,n=i[0],a=0;a<i.length;a++){var s=i[a];if((r=za(t,s.seriesTypes)).length>0){n=s;break}}return new n.type(r,e,o)},e}(D.Class);el.current=new el;const ol=el;function rl(t){var e=document.createElement("div");return t&&(e.className=t),e}function il(t){for(var e=t;e&&!st(e,"k-handle");)e=e.parentNode;return e}var nl=function(t){function e(e,o,r,i){t.call(this);var n=e.element;this.options=X({},this.options,r),this.chart=e,this.observer=i,this.chartElement=n,this.categoryAxis=o,this._dateAxis=this.categoryAxis instanceof Ko,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=rl("k-selector k-pointer-events-none");Q(e,{top:t.offset.top,left:t.offset.left,width:t.width,height:t.height,direction:"ltr"});var o=this.selection=rl("k-selection k-pointer-events-none");this.leftMask=rl("k-mask k-pointer-events-none"),this.rightMask=rl("k-mask k-pointer-events-none"),e.appendChild(this.leftMask),e.appendChild(this.rightMask),e.appendChild(o);var r=this.body=rl("k-selection-bg k-pointer-events-none");o.appendChild(r);var i=this.leftHandle=rl("k-handle k-left-handle k-pointer-events-auto"),n=this.rightHandle=rl("k-handle k-right-handle k-pointer-events-auto");i.appendChild(rl()),n.appendChild(rl()),o.appendChild(i),o.appendChild(n),this.chartElement.appendChild(e);var a=Q(o,["borderLeftWidth","borderRightWidth","height"]),s=Q(i,"height").height,l=Q(n,"height").height;t.selection={border:{left:a.borderLeftWidth,right:a.borderRightWidth}},Q(i,{top:(a.height-s)/2}),Q(n,{top:(a.height-l)/2}),e.style.cssText=e.style.cssText},e.prototype.bindEvents=function(){var t;!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),_t(this.chartElement,((t={})[qi]=this._mousewheelHandler,t))),this._domEvents=$e.create(this.chartElement,{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(),o=this.chart.chartService.intl;this._dateAxis&&X(t,{min:Lo(o,t.min),max:Lo(o,t.max),from:Lo(o,t.from),to:Lo(o,t.to)});var r=Q(this.chartElement,["paddingLeft","paddingTop"]),i=r.paddingLeft,n=r.paddingTop;this.options=X({},{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&&(It(this.chartElement,((t={})[qi]=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._pointInPane=function(t,e){var o=this.categoryAxis.pane.box,r=this.chart._toModelCoordinates(t,e);return o.containsPoint(r)},e.prototype._start=function(t){var e=this.options,o=Pt(t);if(!this._state&&o){var r=St(t);if(this._pointInPane(r.x,r.y)){var i=il(o),n=this.body.getBoundingClientRect(),a=!i&&r.x>=n.x&&r.x<=n.x+n.width&&r.y>=n.y&&r.y<=n.y+n.height;this.chart._unsetActivePoint(),this._state={moveTarget:i,startLocation:t.x?t.x.location:0,inBody:a,range:{from:this._index(e.from),to:this._index(e.to)}};var s=this._rangeEventArgs({from:this._index(e.from),to:this._index(e.to)});this.trigger(Vi,s)&&(this._state=null)}}},e.prototype._press=function(t){var e;(e=this._state?this._state.moveTarget:il(Pt(t)))&&I(e,"k-handle-active")},e.prototype._move=function(t){if(this._state){var e=this,o=e._state,r=e.options,i=e.categoryAxis,n=o.range,a=o.moveTarget,s=i.options.reverse,l=this._index(r.from),p=this._index(r.to),c=this._index(r.min),h=this._index(r.max),u=o.startLocation-t.x.location,f=n.from,d=n.to,v=n.to-n.from,y=Q(this.wrapper,"width").width/(i.categoriesCount()-1),g=Math.round(u/y)*(s?-1:1);if(a||o.inBody){var m=a&&st(a,"k-left-handle"),b=a&&st(a,"k-right-handle");o.inBody?(n.from=Math.min(Math.max(c,l-g),h-v),n.to=Math.min(n.from+v,h)):m&&!s||b&&s?(n.from=Math.min(Math.max(c,l-g),h-1),n.to=Math.max(n.from+1,n.to)):(m&&s||b&&!s)&&(n.to=Math.min(Math.max(c+1,p-g),h),n.from=Math.min(n.to-1,n.from)),n.from===f&&n.to===d||(this.move(n.from,n.to),this.trigger(Hi,this._rangeEventArgs(n)))}}},e.prototype._end=function(){if(this._state){var t=this._state.moveTarget;t&&R(t,"k-handle-active");var e=this._state.range;this.set(e.from,e.to),this.trigger(Ui,this._rangeEventArgs(e)),delete this._state}},e.prototype._tap=function(t){var e=this.options,o=this.categoryAxis,r=this.chart._eventCoordinates(t),i=o.pointCategoryIndex(new ee(r.x,o.box.y1)),n=this._index(e.from),a=this._index(e.to),s=this._index(e.min),l=this._index(e.max),p=a-n,c=n+p/2,h={},u=3===t.event.which,f=Math.round(c-i);this._state||u||(this.chart._unsetActivePoint(),o.options.justified||f--,h.from=Math.min(Math.max(s,n-f),l-p),h.to=Math.min(h.from+p,l),this._start(t),this._state&&(this._state.range=h,this.trigger(Hi,this._rangeEventArgs(h)),this._end()))},e.prototype._mousewheel=function(t){var e=this,o=gt(t);if(this._start(t),this._state){var r=this._state.range;t.preventDefault(),t.stopPropagation(),Math.abs(o)>1&&(o*=3),this.options.mousewheel.reverse&&(o*=-1),this.expand(o)&&this.trigger(Hi,{axis:this.categoryAxis.options,delta:o,originalEvent:t,from:this._value(r.from),to:this._value(r.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._end()}),150)}},e.prototype._gesturestart=function(t){var e=this.options,o=t.touches[0];if(this._pointInPane(o.pageX,o.pageY)){this._state={range:{from:this._index(e.from),to:this._index(e.to)}};var r=this._rangeEventArgs(this._state.range);this.trigger(Vi,r)?this._state=null:t.preventDefault()}},e.prototype._gestureend=function(){this._state&&(this.trigger(Ui,this._rangeEventArgs(this._state.range)),delete this._state)},e.prototype._gesturechange=function(t){if(this._state){var e=this,o=e.chart,r=e._state,i=e.options,n=e.categoryAxis,a=r.range,s=o._toModelCoordinates(t.touches[0].x.location).x,l=o._toModelCoordinates(t.touches[1].x.location).x,p=Math.min(s,l),c=Math.max(s,l);t.preventDefault(),a.from=n.pointCategoryIndex(new ee(p))||i.min,a.to=n.pointCategoryIndex(new ee(c))||i.max,this.move(a.from,a.to),this.trigger(Hi,this._rangeEventArgs(a))}},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,o=this._index(t);return e.getSlot(o,o,!0)},e.prototype.move=function(t,e){var o=this.options,r=this.categoryAxis.options.reverse,i=o.offset,n=o.padding,a=o.selection.border,s=r?e:t,l=r?t:e,p="x"+(r?2:1),c=this._slot(s),h=Mt(c[p]-i.left+n.left);Q(this.leftMask,{width:h}),Q(this.selection,{left:h}),c=this._slot(l);var u=Mt(o.width-(c[p]-i.left+n.left));Q(this.rightMask,{width:u});var f=o.width-u;f!==o.width&&(f+=a.right),Q(this.rightMask,{left:f}),Q(this.selection,{width:Math.max(o.width-(h+u)-a.right,0)})},e.prototype.set=function(t,e){var o=this.options,r=this._index(o.min),i=this._index(o.max),n=Tt(this._index(t),r,i),a=Tt(this._index(e),n+1,i);o.visible&&this.move(n,a),o.from=this._value(n),o.to=this._value(a)},e.prototype.expand=function(t){var e=this.options,o=this._index(e.min),r=this._index(e.max),i=e.mousewheel.zoom,n=this._index(e.from),a=this._index(e.to),s={from:n,to:a},l=X({},s);if(this._state&&(s=this._state.range),i!==C&&(s.from=Tt(Tt(n-t,0,a-1),o,r)),i!==g&&(s.to=Tt(Tt(a+t,s.from+1,r),o,r)),s.from!==l.from||s.to!==l.to)return this.set(s.from,s.to),!0},e.prototype.zoom=function(t,e){var o=this.options,r=this._index(o.min),i=this._index(o.max),n=this._index(o.from),a=this._index(o.to),s={from:n,to:a},l=X({},s),p=this.categoryAxis.options.reverse,c=j+(p?"2":"1"),h=this.categoryAxis.lineBox(),u=Math.abs(h[c]-e[j]),f=h.width(),d=Mt(u/f,2),v=Mt(d*t),y=Mt((1-d)*t);if(this._state&&(s=this._state.range),s.from=Tt(Tt(n-v,0,a-1),r,i),s.to=Tt(Tt(a+y,s.from+1,i),r,i),s.from!==l.from||s.to!==l.to)return this.set(s.from,s.to),!0},e.prototype.trigger=function(t,e){return(this.observer||this.chart).trigger(t,e)},e}(D.Class);Bt(nl,{visible:!0,mousewheel:{zoom:"both"},min:b,max:m});const al=nl;var sl=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 o=X({},this.options,e.options.tooltip),r=e.tooltipAnchor();r?(this._current=e,t.prototype.show.call(this,{point:e,anchor:r},o,e)):this.hide()}},e.prototype.hide=function(){delete this._current,t.prototype.hide.call(this)},e}(Sa);const ll=sl;var pl=function(t){function e(e,o){t.call(this,e.chartService,o),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 o=at(t,(function(t){var e=t.series.tooltip;return!(e&&!1===e.visible)}));if(o.length>0){var r=o[0],i=this.plotArea.categoryAxis.getSlot(r.categoryIx),n=e?this._slotAnchor(e,i):this._defaultAnchor(r,i);this.show({anchor:n,shared:!0,points:t,category:r.category,categoryText:this.formatService.auto(this.options.categoryFormat,r.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 o=t.owner.pane.chartsBox(),r=this.plotArea.categoryAxis.options.vertical,i=o.center(),n=e.center();return{point:r?new ee(i.x,n.y):new ee(n.x,i.y),align:{horizontal:"center",vertical:"center"}}},e}(Sa);Bt(pl,{categoryFormat:"{0:d}"});const cl=pl;var hl=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 o=e.vertical?E:j,r=this.fromScale=new D.geometry.Point(1,1);r[o]=Hr,t.transform(D.geometry.transform().scale(r.x,r.y))}else this.abort()},e.prototype.step=function(t){var e=ht(this.fromScale.x,1,t),o=ht(this.fromScale.y,1,t);this.element.transform(D.geometry.transform().scale(e,o,this.origin))},e.prototype.abort=function(){t.prototype.abort.call(this),this.element.transform(null)},e}(D.drawing.Animation);Bt(hl,{duration:Nr}),D.drawing.AnimationFactory.current.register(Qr,hl);var 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.setup=function(){var t=this.center=this.element.bbox().center();this.element.transform(D.geometry.transform().scale(Hr,Hr,t))},e.prototype.step=function(t){this.element.transform(D.geometry.transform().scale(t,t,this.center))},e}(D.drawing.Animation);Bt(ul,{easing:"easeOutElastic"}),D.drawing.AnimationFactory.current.register(Jr,ul);var 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.setup=function(){this.fadeTo=this.element.opacity(),this.element.opacity(0)},e.prototype.step=function(t){this.element.opacity(t*this.fadeTo)},e}(D.drawing.Animation);Bt(fl,{duration:200,easing:"linear"}),D.drawing.AnimationFactory.current.register(zr,fl);var dl=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(D.geometry.transform().scale(Hr,Hr,this.options.center))},e.prototype.step=function(t){this.element.transform(D.geometry.transform().scale(t,t,this.options.center))},e}(D.drawing.Animation);Bt(dl,{easing:"easeOutElastic",duration:Nr}),D.drawing.AnimationFactory.current.register(pi,dl);const vl=dl;var yl=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,o){return new(e.style===Yr?_n:fn)(t,e,o)},e.prototype.animationPoints=function(){return t.prototype.animationPoints.call(this).concat(this._segments)},e.prototype.createMissingValue=function(t,e){if(e===Gr){var o={x:t.x,y:t.y};return ha(o.x)||(o.x=0),ha(o.y)||(o.y=0),o}},e}(fa);X(yl.prototype,wn);const gl=yl;var ml=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 Nn,this.yAxisRangeTracker=new Nn},e.prototype.render=function(t){var e=this;void 0===t&&(t=this.panes);for(var o=this.groupSeriesByPane(),r=0;r<t.length;r++){var i=t[r],n=o[i.options.name||"default"]||[];e.addToLegend(n);var a=e.filterVisibleSeries(n);a&&(e.createScatterChart(za(a,bi),i),e.createScatterLineChart(za(a,_i),i),e.createBubbleChart(za(a,Jr),i))}this.createAxes(t)},e.prototype.appendChart=function(e,o){this.xAxisRangeTracker.update(e.xAxisRanges),this.yAxisRangeTracker.update(e.yAxisRanges),t.prototype.appendChart.call(this,e,o)},e.prototype.removeAxis=function(e){var o=e.options.name;t.prototype.removeAxis.call(this,e),e.options.vertical?(this.yAxisRangeTracker.reset(o),delete this.namedYAxes[o]):(this.xAxisRangeTracker.reset(o),delete this.namedXAxes[o]),e===this.axisX&&delete this.axisX,e===this.axisY&&delete this.axisY},e.prototype.seriesPaneName=function(t){var e=this.options,o=t.xAxis,r=at([].concat(e.xAxis),(function(t){return t.name===o}))[0],i=t.yAxis,n=at([].concat(e.yAxis),(function(t){return t.name===i}))[0],a=(e.panes||[{}])[0].name||"default";return(r||{}).pane||(n||{}).pane||a},e.prototype.createScatterChart=function(t,e){t.length>0&&this.appendChart(new fa(this,{series:t,clip:e.options.clip}),e)},e.prototype.createScatterLineChart=function(t,e){t.length>0&&this.appendChart(new gl(this,{series:t,clip:e.options.clip}),e)},e.prototype.createBubbleChart=function(t,e){t.length>0&&this.appendChart(new ga(this,{series:t,clip:e.options.clip}),e)},e.prototype.createXYAxis=function(t,e,o){for(var r,i=t.name,n=e?this.namedYAxes:this.namedXAxes,a=e?this.yAxisRangeTracker:this.xAxisRangeTracker,s=X({reverse:!e&&this.chartService.rtl},t,{vertical:e}),l=Na(s.type,Wi),p=a.query(),c=l?{min:.1,max:1}:{min:0,max:1},u=a.query(i)||p||c,f=[s.min,s.max],d=this.series,v=0;v<d.length;v++){var y=d[v],g=y[e?"yAxis":"xAxis"];if(g===s.name||0===o&&!g){var m=Ir.current.bindPoint(y,0).valueFields;f.push(m[e?"y":"x"]);break}}0===o&&p&&(u.min=Math.min(u.min,p.min),u.max=Math.max(u.max,p.max));for(var b=0;b<f.length;b++)if(f[b]instanceof Date){r=!0;break}var _=new(Na(s.type,h)||!s.type&&r?or:l?sr:tr)(u.min,u.max,s,this.chartService);if(_.axisIndex=o,i){if(n[i])throw new Error((e?"Y":"X")+" axis with name "+i+" is already defined");n[i]=_}return this.appendAxis(_),_},e.prototype.createAxes=function(t){for(var e=this,o=this.options,r=[].concat(o.xAxis),i=[],n=[].concat(o.yAxis),a=[],s=0;s<r.length;s++)ct(e.findPane(r[s].pane),t)&&i.push(e.createXYAxis(r[s],!1,s));for(var l=0;l<n.length;l++)ct(e.findPane(n[l].pane),t)&&a.push(e.createXYAxis(n[l],!0,l));this.axisX=this.axisX||i[0],this.axisY=this.axisY||a[0]},e.prototype._dispatchEvent=function(t,e,o){for(var r=t._eventCoordinates(e),i=new ee(r.x,r.y),n=this.axes,a=n.length,s=[],l=[],p=0;p<a;p++){var c=n[p],h=c.options.vertical?l:s,u=c.getValue(i);null!==u&&h.push(u)}s.length>0&&l.length>0&&t.trigger(o,{element:Pt(e),originalEvent:e,x:Ua(s),y:Ua(l)})},e.prototype.updateAxisOptions=function(t,e){var o=t.options.vertical,r=this.groupAxes(this.panes),i=(o?r.y:r.x).indexOf(t);bl(this.options,i,o,e),bl(this.originalOptions,i,o,e)},e}($a);function bl(t,e,o,r){X([].concat(o?t.yAxis:t.xAxis)[e],r)}Bt(ml,{xAxis:{},yAxis:{}}),X(ml.prototype,ts);const _l=ml;var xl=function(t){function e(e,o,r){t.call(this,r),this.value=e,this.sector=o}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,o=this.value;if(!this._rendered&&!1!==this.visible){this._rendered=!0;var r=ot(t),i=this.pointData();if(r?o=r(i):t.format&&(o=e.format.auto(t.format,o)),t.visible&&(o||0===o)){if(t.position===s||t.position===Ki)t.color||(t.color=Gt(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 Ee(o,X({},t,{align:s,vAlign:"",animation:{type:zr,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,o=this.sector.clone(),r=t.distance,i=o.middle();if(e){var n,a=e.box.height(),l=e.box.width();if(t.position===s)o.radius=Math.abs((o.radius-a)/2)+a,n=o.point(i),e.reflow(new ie(n.x,n.y-a/2,n.x,n.y));else if(t.position===Ki)o.radius=o.radius-a/2,n=o.point(i),e.reflow(new ie(n.x,n.y-a/2,n.x,n.y));else{var p;(n=o.clone().expand(r).point(i)).x>=o.center.x?(p=n.x+l,e.orientation=C):(p=n.x-l,e.orientation=g),e.reflow(new ie(p,n.y-a,n.x,n.y))}}},e.prototype.createVisual=function(){var e=this,o=this.sector,r=this.options;if(t.prototype.createVisual.call(this),this.value)if(r.visual){var i=(o.startAngle+180)%360,n=r.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new D.geometry.Point(o.center.x,o.center.y),radius:o.radius,innerRadius:o.innerRadius,startAngle:i,endAngle:i+o.angle,options:r,sender:this.getSender(),createVisual:function(){var t=new D.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,o=this.options,r=o.border||{},i=r.width>0?{stroke:{color:r.color,width:r.width,opacity:r.opacity,dashType:r.dashType}}:{},n=o.color,a={color:n,opacity:o.opacity},s=this.createSegment(e,X({fill:a,stroke:{opacity:o.opacity},zIndex:o.zIndex},i));t.append(s),Hn(o)&&t.append(this.createGradientOverlay(s,{baseColor:n,fallbackFill:a},X({center:[e.center.x,e.center.y],innerRadius:e.innerRadius,radius:e.radius,userSpace:!0},o.overlay)))},e.prototype.createSegment=function(t,e){return e.singleSegment?new D.drawing.Circle(new D.geometry.Circle(new D.geometry.Point(t.center.x,t.center.y),t.radius),e):he.current.createRing(t,e)},e.prototype.createAnimation=function(){var e=this.options,o=this.sector.center;X(e,{animation:{center:[o.x,o.y],delay:this.animationDelay}}),t.prototype.createAnimation.call(this)},e.prototype.createHighlight=function(t){var e=this.options.highlight||{},o=e.border||{};return this.createSegment(this.sector,X({},t,{fill:{color:e.color,opacity:e.opacity},stroke:{opacity:o.opacity,width:o.width,color:o.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 D.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,e,o,r,i=this.sector.clone().expand(5),n=i.middle();return{point:i.point(n),align:(t=n+180,e=Et(t),o=Mt(Math.sin(e),f),r=Mt(Math.cos(e),f),{horizontal:Math.abs(o)>Cl?s:r<0?C:g,vertical:Math.abs(o)<wl?s:o<0?a:P})}},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}(fe),wl=Mt(Et(30),f),Cl=Mt(Et(60),f);Bt(xl,{color:k,overlay:{gradient:"roundedBevel"},border:{width:.5},labels:{visible:!1,distance:35,font:u,margin:$(.5),align:l,zIndex:1,position:Yi},animation:{type:pi},highlight:{visible:!0,border:{width:1}},visible:!0}),X(xl.prototype,ln);const Ol=xl,Sl={createLegendItem:function(t,e,o){var r=this.options.legend||{},i=r.labels||{},n=r.inactiveItems||{},a=n.labels||{};if(o&&!1!==o.visibleInLegend){var s,l,p=!1!==o.visible,c=p?ot(i):ot(a)||ot(i),h=o.category;c&&(h=c({text:h,series:o.series,dataItem:o.dataItem,percentage:o.percentage,value:t})),p?(s={},l=e.color):(s={color:a.color,font:a.font},l=(n.markers||{}).color),ha(h)&&""!==h&&this.legendItems.push({active:p,pointIndex:o.index,text:h,series:o.series,markerColor:l,labels:s})}}};var Pl=function(t){function e(e,o){t.call(this,o),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,o=this.plotArea.options.seriesColors;void 0===o&&(o=[]);for(var r=o.length,i=e.series,n=i.length,a=0;a<n;a++){var l=i[a],p=l.data,c=Ba(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=xt(l.startAngle)?l.startAngle:e.startAngle,a!==n-1&&l.labels.position===Yi&&(l.labels.position=s);for(var g=0;g<u.length;g++){var m=u[g];if(m){var b=m.fields,_=m.value,x=m.visible,w=0!==_?v||_*d:0,C=1!==p.length&&Boolean(b.explode);U(l.color)||(l.color=b.color||o[g%r]),t(_,new se(null,0,0,y,w),{owner:this,category:xt(b.category)?b.category:"",index:g,series:l,seriesIx:a,dataItem:p[g],percentage:0!==h?_/h:0,explode:C,visibleInLegend:b.visibleInLegend,visible:x,zIndex:n-a,animationDelay:this.animationDelay(g,a,n)}),!1!==x&&(y+=w)}}}},e.prototype.evalSegmentOptions=function(t,e,o){var r=o.series;on(t,{value:e,series:r,dataItem:o.dataItem,category:o.category,percentage:o.percentage},{defaults:r._defaults,excluded:["data","content","template","visual","toggle"]})},e.prototype.addValue=function(t,e,o){var r=X({},o.series,{index:o.index});if(this.evalSegmentOptions(r,t,o),this.createLegendItem(t,r,o),!1!==o.visible){var i=new Ol(t,e,r);Object.assign(i,o),this.append(i),this.points.push(i)}},e.prototype.reflow=function(t){var e=this,o=e.options,r=e.points,i=e.seriesConfigs;void 0===i&&(i=[]);var n=r.length,a=t.clone(),s=Math.min(a.width(),a.height()),l=s/2,p=s-.85*s,c=new ie(a.x1,a.y1,a.x1+s,a.y1+s),h=c.center(),u=a.center(),f=o.series.length,d=[],v=[],y=Lt(o.padding,p);this.targetBox=t,y=y>l-5?l-5:y,c.translate(u.x-h.x,u.y-h.y);for(var g=l-y,m=new ee(g+c.x1+y,g+c.y1+y),b=0;b<n;b++){var _=r[b],x=_.sector,w=_.seriesIx;if(x.radius=g,x.center=m,i.length){var O=i[w];x.innerRadius=O.innerRadius,x.radius=O.radius}w===f-1&&_.explode&&(x.center=x.clone().setRadius(.15*x.radius).point(x.middle())),_.reflow(c);var S=_.label;S&&S.options.position===Yi&&w===f-1&&(S.orientation===C?v.push(S):d.push(S))}d.length>0&&(d.sort(this.labelComparator(!0)),this.leftLabelsReflow(d)),v.length>0&&(v.sort(this.labelComparator(!1)),this.rightLabelsReflow(v)),this.box=c},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=kt(this.points),o=e.sector,r=t.length-1,i=o.radius+e.options.labels.distance,n=[],a=t[0].box,s=Mt(a.y1-(o.center.y-i-a.height()-a.height()/2));n.push(s);for(var l=0;l<r;l++){var p=t[l+1].box;a=t[l].box,s=Mt(p.y1-a.y2),n.push(s)}return s=Mt(o.center.y+i-t[r].box.y2-t[r].box.height()/2),n.push(s),n},e.prototype.distributeLabels=function(t,e){for(var o,r,i,n=t.length,a=0;a<n;a++)for(i=-t[a],o=r=a;i>0&&(o>=0||r<n);)i=this._takeDistance(t,a,--o,i),i=this._takeDistance(t,a,++r,i);this.reflowLabels(t,e)},e.prototype._takeDistance=function(t,e,o,r){var i=r;if(t[o]>0){var n=Math.min(t[o],i);i-=n,t[o]-=n,t[e]+=n}return i},e.prototype.reflowLabels=function(t,e){var o,r=kt(this.points),i=r.sector,n=r.options.labels,a=e.length,s=n.distance,p=i.center.y-(i.radius+s)-e[0].box.height();t[0]+=2;for(var c=0;c<a;c++){var h=e[c],u=h.box;p+=t[c],o=this.hAlignLabel(u.x2,i.clone().expand(s),p,p+u.height(),h.orientation===C),h.orientation===C?(n.align!==l&&(o=i.radius+i.center.x+s),h.reflow(new ie(o+u.width(),p,o,p))):(n.align!==l&&(o=i.center.x-i.radius-s),h.reflow(new ie(o-u.width(),p,o,p))),p+=u.height()}},e.prototype.createVisual=function(){var e=this,o=this.options.connectors,r=this.points,i=r.length;t.prototype.createVisual.call(this),this._connectorLines=[];for(var n=0;n<i;n++){var a=r[n],s=a.sector,l=a.label,p=s.middle(),c=(a.options.connectors||{}).color||o.color;if(l){var h=new D.drawing.Path({stroke:{color:c,width:o.width},animation:{type:zr,delay:a.animationDelay}});if(l.options.position===Yi){var u=l.box,f=s.center,d=s.point(p),v=new ee(u.x1,u.center().y),y=void 0,g=void 0,m=void 0;d=s.clone().expand(o.padding).point(p),h.moveTo(d.x,d.y),l.orientation===C?(m=Al(f,d,v,g=new ee(u.x1-o.padding,u.center().y)),v=new ee(g.x-4,g.y),(m=m||v).x=Math.min(m.x,v.x),e.pointInCircle(m,s.center,s.radius+4)||m.x<s.center.x?(y=s.center.x+s.radius+4,a.options.labels.align!==oi?y<v.x?h.lineTo(y,d.y):h.lineTo(d.x+8,d.y):h.lineTo(y,d.y),h.lineTo(v.x,g.y)):(m.y=g.y,h.lineTo(m.x,m.y))):(m=Al(f,d,v,g=new ee(u.x2+o.padding,u.center().y)),v=new ee(g.x+4,g.y),(m=m||v).x=Math.max(m.x,v.x),e.pointInCircle(m,s.center,s.radius+4)||m.x>s.center.x?(y=s.center.x-s.radius-4,a.options.labels.align!==oi?y>v.x?h.lineTo(y,d.y):h.lineTo(d.x-8,d.y):h.lineTo(y,d.y),h.lineTo(v.x,g.y)):(m.y=g.y,h.lineTo(m.x,m.y))),h.lineTo(g.x,g.y),e._connectorLines.push(h),e.visual.append(h)}}}},e.prototype.renderVisual=function(){if(t.prototype.renderVisual.call(this),zt(this.options.series,(function(t){return t.autoFit}))){var e=this.targetBox,o=this.box.center(),r=this.visual.bbox();if(!r)return;var i=r.bottomRight(),n=Math.min((o.y-e.y1)/(o.y-r.origin.y),(e.y2-o.y)/(i.y-o.y),(o.x-e.x1)/(o.x-r.origin.x),(e.x2-o.x)/(i.x-o.x));n<1&&this.visual.transform(D.geometry.transform().scale(n,n,[o.x,o.y]))}},e.prototype.labelComparator=function(t){var e=t?-1:1;return function(t,o){return((t.parent.sector.middle()+270)%360-(o.parent.sector.middle()+270)%360)*e}},e.prototype.hAlignLabel=function(t,e,o,r,i){var n=e.radius,a=e.center,s=a.x,l=a.y,p=Math.min(Math.abs(l-o),Math.abs(l-r));return p>n?t:s+Math.sqrt(n*n-p*p)*(i?1:-1)},e.prototype.pointInCircle=function(t,e,o){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<Math.pow(o,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}(fe);function Al(t,e,o,r){var i,n=(r.x-o.x)*(t.y-o.y)-(r.y-o.y)*(t.x-o.x),a=(r.y-o.y)*(e.x-t.x)-(r.x-o.x)*(e.y-t.y);if(0!==a){var s=n/a;i=new ee(t.x+s*(e.x-t.x),t.y+s*(e.y-t.y))}return i}Bt(Pl,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),X(Pl.prototype,Sl),Pl.prototype.isStackRoot=!0;const kl=Pl;var 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.render=function(){this.createPieChart(this.series)},e.prototype.createPieChart=function(t){var e=t[0],o=new kl(this,{series:t,padding:e.padding,startAngle:e.startAngle,connectors:e.connectors,legend:this.options.legend});this.appendChart(o)},e.prototype.appendChart=function(e,o){t.prototype.appendChart.call(this,e,o),bt(this.options.legend.items,e.legendItems)},e}($a);const jl=Tl;var El=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,o=this.label,r=this.sector.clone(),i=r.middle();if(o){var n=o.box.height();if(e.position===s){r.radius-=(r.radius-r.innerRadius)/2;var a=r.point(i);o.reflow(new ie(a.x,a.y-n/2,a.x,a.y))}else t.prototype.reflowLabel.call(this)}},e.prototype.createSegment=function(t,e){return he.current.createRing(t,e)},e}(Ol);Bt(El,{overlay:{gradient:"roundedGlass"},labels:{position:s},animation:{type:pi}}),X(El.prototype,ln);const Ml=El;var Il=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,o){var r=X({},o.series,{index:o.index});if(this.evalSegmentOptions(r,t,o),this.createLegendItem(t,r,o),!1!==o.visible){var i=new Ml(t,e,r);Object.assign(i,o),this.append(i),this.points.push(i)}},e.prototype.reflow=function(e){for(var o,r=this.options,i=e.clone(),n=Math.min(i.width(),i.height()),a=n/2,s=n-.85*n,l=r.series,p=l.length,c=Lt(r.padding,s),h=a-(c=c>a-5?a-5:c),u=0,f=0;f<p;f++){var d=l[f];0===f&&xt(d.holeSize)&&(o=d.holeSize,h-=d.holeSize),xt(d.size)?h-=d.size:u++,xt(d.margin)&&f!==p-1&&(h-=d.margin)}xt(o)||(h-=o=(a-c)/(p+.75)*.75);var v,y=o,g=0;this.seriesConfigs=[];for(var m=0;m<p;m++){var b=l[m];v=(y+=g)+Lt(b.size,h/u),this.seriesConfigs.push({innerRadius:y,radius:v}),g=b.margin||0,y=v}t.prototype.reflow.call(this,e)},e.prototype.animationDelay=function(t,e,o){return 50*t+Nr*(e+1)/(o+1)},e}(kl);Bt(Il,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}});const Ll=Il;var 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.render=function(){this.createDonutChart(this.series)},e.prototype.createDonutChart=function(t){var e=t[0],o=new Ll(this,{series:t,padding:e.padding,connectors:e.connectors,legend:this.options.legend});this.appendChart(o)},e}(jl);const Dl=Rl;var Bl=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 Nn},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(),o=t.options.reverse?e.max:e.min,r=t.getSlot(o),i=this.polarAxis.getSlot(0).center,n=t.box.translate(i.x-r.x1,i.y-r.y1);t.reflow(n)},e.prototype.createValueAxis=function(){var t,e,o=this.valueAxisRangeTracker,r=o.query(),i=this.valueAxisOptions({roundToMajorUnit:!1,zIndex:-1});i.type===Wi?(t=br,e={min:.1,max:1}):(t=gr,e={min:0,max:1});var n=o.query(name)||r||e;n&&r&&(n.min=Math.min(n.min,r.min),n.max=Math.max(n.max,r.max));var a=new t(n.min,n.max,i,this.chartService);this.valueAxis=a,this.appendAxis(a)},e.prototype.reflowAxes=function(){var t=this,e=t.options.plotArea,o=t.valueAxis,r=t.polarAxis,i=t.box,n=.15*Math.min(i.width(),i.height()),a=$(e.padding||{},n),l=i.clone().unpad(a),p=l.clone();p.y2=p.y1+Math.min(p.width(),p.height()),p.align(l,E,s);var c=p.clone().shrink(0,p.height()/2);r.reflow(p),o.reflow(c);var h=o.lineBox().height()-o.box.height();o.reflow(o.box.unpad({top:h})),this.axisBox=p,this.alignAxes(p)},e.prototype.backgroundBox=function(){return this.box},e.prototype.detachLabels=function(){},e}($a);const Nl=Bl;var 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.pointSlot=function(t,e){var o=t.center.y-e.y1,r=ee.onCircle(t.center,t.startAngle,o);return new ie(r.x,r.y,r.x,r.y)},e}(fa);Bt(zl,{clip:!1});const Vl=zl;var Hl=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}(gl);Hl.prototype.pointSlot=Vl.prototype.pointSlot,Bt(Hl,{clip:!1});const Ul=Hl;var 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.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(),o=new xr(!1),r=this.points();r.push(e),(t=this._strokeSegments=o.process(r)).pop()}return t},e}(Ln);const Gl=Fl;var 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.fillToAxes=function(t){var e=this.parent.plotArea.polarAxis.box.center(),o=new D.geometry.Segment([e.x,e.y]);t.segments.unshift(o),t.segments.push(o)},e}(jn);const Xl=Wl;var Kl=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,o){return(e.line||{}).style===Yr?new Gl(t,e,o):new Xl(t,e,o)},e.prototype.createMissingValue=function(t,e){var o;return ha(t.x)&&e!==Wr&&(o={x:t.x,y:t.y},e===Gr&&(o.y=0)),o},e.prototype.seriesMissingValues=function(t){return t.missingValues||Gr},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(Yl),this._hasMissingValuesGap())for(var e=0;e<t.length;e++){var o=t[e];o&&(ha(o.value.y)||"gap"!==this.seriesMissingValues(o.series)||delete t[e])}return t},e}(Ul);function Yl(t,e){return t.value.x-e.value.x}const ql=Kl;var 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.createPolarAxis=function(){var t=new ur(this.options.xAxis,this.chartService);this.polarAxis=t,this.axisX=t,this.appendAxis(t)},e.prototype.valueAxisOptions=function(t){return X(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),$a.prototype.appendChart.call(this,t,e)},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createLineChart(za(t,[hi]),e),this.createScatterChart(za(t,[ui]),e),this.createAreaChart(za(t,[ci]),e)},e.prototype.createLineChart=function(t,e){if(0!==t.length){var o=new Ul(this,{series:t});this.appendChart(o,e)}},e.prototype.createScatterChart=function(t,e){if(0!==t.length){var o=new Vl(this,{series:t});this.appendChart(o,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var o=new ql(this,{series:t});this.appendChart(o,e)}},e.prototype._dispatchEvent=function(t,e,o){var r=t._eventCoordinates(e),i=new ee(r.x,r.y),n=this.axisX.getValue(i),a=this.axisY.getValue(i);null!==n&&null!==a&&t.trigger(o,{element:Pt(e),x:n,y:a})},e.prototype.createCrosshairs=function(){},e}(Nl);Bt(Zl,{xAxis:{},yAxis:{}}),X(Zl.prototype,ts);const Ql=Zl;var $l=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 o=t.center.y-e.y1,r=ee.onCircle(t.center,t.middle(),o);return new ie(r.x,r.y,r.x,r.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=[],o=0;o<t.length;o++){var r=t[o];e[r.seriesIx]=e[r.seriesIx]||[],e[r.seriesIx].push(r)}return e}(this._segments),o=0;o<e.length;o++){var r=e[o];if(r&&r.length>1){var i=r[0].linePoints[0],n=kt(r),a=kt(n.linePoints),s=0===i.categoryIx,l=a.categoryIx===a.categoriesCount-1;s&&l&&kt(r).linePoints.push(i)}}},e.prototype.createSegment=function(t,e,o){var r=new(e.style===Yr?_n:fn)(t,e,o),i=this.seriesMissingValues(e);return t.length!==e.data.length&&i!==Wr||(r.options.closed=!0),r},e}(kn);Bt($l,{clip:!1,limitPoints:!1});const Jl=$l;var tp=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}(Ln);const ep=tp;var op=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}(jn);const rp=op;var ip=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,o,r){var i,n,a,s=this.options.isStacked,l=(e.line||{}).style;return s&&o>0&&r&&(n=r.linePoints.slice(0),i=r),l===Yr?(a=new ep(t,e,o,i,n)).options.closed=!0:(t.push(t[0]),a=new rp(t,e,o,i,n)),a},e.prototype.seriesMissingValues=function(t){return t.missingValues||Gr},e}(Jl);const np=ip;var ap=function(t){function e(e,o){t.call(this,e,null,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ml);Bt(ap,{overlay:{gradient:"none"},labels:{distance:10}});const sp=ap;var lp=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Wn:Gn}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,o=this.children,r=e.gap,i=e.spacing,n=o.length,a=n+r+i*(n-1),s=t.angle/a,l=t.startAngle+s*(r/2);this.forEach(o,(function(e){var o=t.clone();o.startAngle=l,o.angle=s,e.sector&&(o.radius=e.sector.radius),e.reflow(o),e.sector=o,l+=s+s*i}))},e}(fe);Bt(lp,{gap:1,spacing:0});const pp=lp;var 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.reflow=function(t){var e=this.options.reverse,o=this.children,r=o.length,i=e?r-1:0,n=e?-1:1;this.box=new ie;for(var a=i;a>=0&&a<r;a+=n){var s=o[a].sector;s.startAngle=t.startAngle,s.angle=t.angle}},e}(fe);const hp=cp;var up=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 sp},e.prototype.clusterType=function(){return pp},e.prototype.stackType=function(){return hp},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.pointSlot=function(t,e){var o=t.clone(),r=t.center.y;return o.radius=r-e.y1,o.innerRadius=r-e.y2,o},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}(Qn);up.prototype.reflow=an.prototype.reflow,Bt(up,{clip:!1,limitPoints:!1,animation:{type:"pie"}});const fp=up;var 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.createPolarAxis=function(){var t=new cr(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&&X(t,{majorGridLines:{type:i},minorGridLines:{type:i}}),this._isStacked100&&X(t,{roundToMajorUnit:!1,labels:{format:"P0"}}),X(t,this.options.valueAxis)},e.prototype.aggregateCategories=function(){Rs.prototype.aggregateCategories.call(this,this.panes)},e.prototype.createCategoryAxesLabels=function(){Rs.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(za(t,[fi]),e),this.createLineChart(za(t,[vi]),e),this.createBarChart(za(t,[di]),e)},e.prototype.chartOptions=function(t){var e={series:t},o=t[0];if(o){var r=this.filterVisibleSeries(t),i=o.stack;e.isStacked=i&&r.length>1,e.isStacked100=i&&"100%"===i.type&&r.length>1,e.isStacked100&&(this._isStacked100=!0)}return e},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var o=new np(this,this.chartOptions(t));this.appendChart(o,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var o=new Jl(this,this.chartOptions(t));this.appendChart(o,e)}},e.prototype.createBarChart=function(t,e){if(0!==t.length){var o=t[0],r=this.chartOptions(t);r.gap=o.gap,r.spacing=o.spacing;var i=new fp(this,r);this.appendChart(i,e),this._hasBarCharts=!0}},e.prototype.seriesCategoryAxis=function(){return this.categoryAxis},e.prototype._dispatchEvent=function(t,e,o){var r=t._eventCoordinates(e),i=new ee(r.x,r.y),n=this.categoryAxis.getCategory(i),a=this.valueAxis.getValue(i);null!==n&&null!==a&&t.trigger(o,{element:Pt(e),category:n,value:a})},e.prototype.createCrosshairs=function(){},e}(Nl);X(dp.prototype,ts,{appendChart:Rs.prototype.appendChart,aggregateSeries:Rs.prototype.aggregateSeries,seriesSourcePoints:Rs.prototype.seriesSourcePoints}),Bt(dp,{categoryAxis:{categories:[]},valueAxis:{}});const vp=dp;var yp=function(t){function e(e,o,r){t.call(this,o),this.value=e,this.options.index=r.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,o=this.children[0];this.box=new ie(e[0].x,e[0].y,e[1].x,e[2].y),o&&o.reflow(new ie(t.x1,e[0].y,t.x2,e[2].y))},e.prototype.createVisual=function(){var e,o=this,r=this.options;t.prototype.createVisual.call(this),(e=r.visual?r.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:r,sender:this.getSender(),createVisual:function(){return o.createPath()}}):this.createPath())&&this.visual.append(e)},e.prototype.createPath=function(){var t=this.options,e=t.border;return D.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 D.drawing.Path.fromPoints(this.points,t)},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=D.drawing.Path.fromPoints(this.points).close();return{options:this.options,path:t}},e.prototype.tooltipAnchor=function(){var t=this.box;return{point:new ee(t.center().x,t.y1),align:{horizontal:"center",vertical:"top"}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(fe);Bt(yp,{color:k,border:{width:1}}),X(yp.prototype,ln);const gp=yp;var mp=function(t){function e(e,o){t.call(this,o),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,e=this.options,o=this.plotArea.options.seriesColors;void 0===o&&(o=[]);var r=e.series[0],i=r.data;if(i)for(var n=Ba(r),a=n.total,s=n.points,l=0;l<s.length;l++){var p=s[l];if(p){var c=p.fields;U(r.color)||(r.color=c.color||o[l%o.length]),c=X({index:l,owner:t,series:r,dataItem:i[l],percentage:p.value/a},c,{visible:p.visible});var h=p.valueFields.value,u=t.createSegment(h,c),f=t.createLabel(h,c);u&&f&&u.append(f)}}},e.prototype.evalSegmentOptions=function(t,e,o){var r=o.series;on(t,{value:e,series:r,dataItem:o.dataItem,index:o.index},{defaults:r._defaults,excluded:["data","content","template","toggle","visual"]})},e.prototype.createSegment=function(t,e){var o=X({},e.series);if(this.evalSegmentOptions(o,t,e),this.createLegendItem(t,o,e),!1!==e.visible){var r=new gp(t,o,e);return Object.assign(r,e),this.append(r),this.points.push(r),r}},e.prototype.createLabel=function(t,e){var o=e.series,r=e.dataItem,i=X({},this.options.labels,o.labels),n=t;if(i.visible){var a=ot(i),s={dataItem:r,value:t,percentage:e.percentage,category:e.category,series:o};a?n=a(s):i.format&&(n=this.plotArea.chartService.format.auto(i.format,n)),i.color||(i.color=Gt(o.color),i.background||(i.background=o.color)),this.evalSegmentOptions(i,t,e);var l=new Ee(n,X({vAlign:i.position},i),s);return this.labels.push(l),l}},e.prototype.labelPadding=function(){for(var t=this.labels,e={left:0,right:0},o=0;o<t.length;o++){var r=t[o].options.align;if(r!==s){var i=t[o].box.width();r===g?e.left=Math.max(e.left,i):e.right=Math.max(e.right,i)}}return e},e.prototype.dynamicSlopeReflow=function(t,e,o){for(var r=this.options,i=this.points,n=i.length,a=i[0],s=a,l=0;l<i.length;l++)i[l].percentage>s.percentage&&(s=i[l]);for(var p=a.percentage/s.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=r.dynamicHeight?o*f:o/n,m=void 0;m=Tt(m=f?(e-p*(v/f))/2:v?0:e/2,0,e),y.push(new D.geometry.Point(t.x1+c,t.y1+h)),y.push(new D.geometry.Point(t.x1+e-c,t.y1+h)),y.push(new D.geometry.Point(t.x1+e-m,t.y1+g+h)),y.push(new D.geometry.Point(t.x1+m,t.y1+g+h)),c=m,h+=g+r.segmentSpacing,p=Tt(e-2*m,0,e)}},e.prototype.constantSlopeReflow=function(t,e,o){for(var r=this.options,i=this.points,n=i.length,a=r.neckRatio<=1,s=a?r.neckRatio*e:e,l=a?0:(e-e/r.neckRatio)/2,p=((a?e:e-2*l)-s)/2,c=0,h=0;h<n;h++){var u=i[h].points=[],f=i[h].percentage,d=r.dynamicHeight?p*f:p/n,v=r.dynamicHeight?o*f:o/n;u.push(new D.geometry.Point(t.x1+l,t.y1+c)),u.push(new D.geometry.Point(t.x1+e-l,t.y1+c)),u.push(new D.geometry.Point(t.x1+e-l-d,t.y1+v+c)),u.push(new D.geometry.Point(t.x1+l+d,t.y1+v+c)),l+=d,c+=v+r.segmentSpacing}},e.prototype.reflow=function(t){var e=this.points,o=e.length;if(o){var r=this.options,i=t.clone().unpad(this.labelPadding()),n=i.height()-r.segmentSpacing*(o-1),a=i.width();r.dynamicSlope?this.dynamicSlopeReflow(i,a,n):this.constantSlopeReflow(i,a,n);for(var s=0;s<o;s++)e[s].reflow(t)}},e}(fe);Bt(mp,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:s,position:s,zIndex:1}}),X(mp.prototype,Sl);const bp=mp;var _p=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],o=new bp(this,{series:t,legend:this.options.legend,neckRatio:e.neckRatio,dynamicHeight:e.dynamicHeight,dynamicSlope:e.dynamicSlope,segmentSpacing:e.segmentSpacing,highlight:e.highlight});this.appendChart(o)},e.prototype.appendChart=function(e,o){t.prototype.appendChart.call(this,e,o),bt(this.options.legend.items,e.legendItems)},e}($a);const xp=_p;var wp=function(t){function e(e,o){t.call(this),this.options=o,this.color=o.color||k,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,o=this.pointData(),r=ot(t),i=t.color;e=r?r(o):this.formatValue(t.format),i||(i=Gt(this.color)),this.label=new Ee(e,X({align:s,vAlign:s,margin:{left:5,right:5},zIndex:Lt(t.zIndex,this.series.zIndex)},t,{color:i}),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;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,o=this.box.toRect(),r=Lt(t.type,"rect")===O,i=Lt(e.width,r?1:0),n=Math.round(i/2);if(t.size){var a=o.center();o.size.width=o.size.height=t.size,o.origin.x=Math.round(a.x-o.size.width/2),o.origin.y=Math.round(a.y-o.size.height/2)}return o.size.width-=i,o.size.height-=i,o.origin.y+=n+.5,o.origin.x+=n+.5,ke(o)},e.prototype.markerBorder=function(){var t=this.options,e=t.markers.border,o=Lt(e.opacity,t.opacity);return{color:e.color||this.color,width:e.width,opacity:o,dashType:e.dashType}},e.prototype.createMarker=function(){var t=this.options,e=t.markers,o=new ge({type:Lt(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:Lt(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=o,this.append(o)},e.prototype.createHighlight=function(t){var e=this.options,o=this.options.highlight.markers||this.options.markers,r=new ge({type:Lt(o.type,"rect"),width:o.size,height:o.size,rotation:o.rotation,background:o.color||this.color,border:this.markerBorder(),borderRadius:o.borderRadius,opacity:this.series.opacity||e.opacity,zIndex:Lt(e.zIndex,this.series.zIndex)});r.reflow(this.markerBox());var i=r.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 ee(t,e),align:{horizontal:s,vertical:a}}},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}(fe);X(wp.prototype,ln),X(wp.prototype,pn),wp.prototype.defaults={markers:{type:"rect",borderRadius:4,border:{color:"transparent"}},padding:{top:1},labels:{visible:!1,padding:3},opacity:1,notes:{label:{}}};const Cp=wp;var Op=function(t){function e(e,o){t.call(this,o),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:m,max:b},this._evalSeries=[]},e.prototype.render=function(){this.setRange(),this.traverseDataPoints(this.addValue.bind(this))},e.prototype.setRange=function(){for(var t=this,e=this.options.series,o=0;o<e.length;o++)for(var r=e[o],i=0;i<r.data.length;i++){var n=t._bindPoint(r,o,i).valueFields;xt(n.value)&&null!==n.value&&(t.valueRange.min=Math.min(t.valueRange.min,n.value),t.valueRange.max=Math.max(t.valueRange.max,n.value))}},e.prototype.addValue=function(t,e){var o;t&&xt(t.value)&&null!==t.value&&(o=this.createPoint(t,e))&&Object.assign(o,e),this.points.push(o)},e.prototype.evalPointOptions=function(t,e,o){var r=o.series,i=o.seriesIx,n={defaults:r._defaults,excluded:["data","tooltip","content","template","visual","toggle","drilldownSeriesFactory"]},a=this._evalSeries[i];xt(a)||(this._evalSeries[i]=a=on(t,{},n,!0));var s=t;return a&&on(s=X({},t),{value:e,series:r,dataItem:o.dataItem,min:this.valueRange.min,max:this.valueRange.max},n),s},e.prototype.pointType=function(){return Cp},e.prototype.pointOptions=function(t,e){var o=this.seriesOptions[e];if(!o){var r=this.pointType().prototype.defaults;this.seriesOptions[e]=o=X({},r,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return o},e.prototype.createPoint=function(t,e){var o=e.series,r=this.pointOptions(o,e.seriesIx),i=e.color||o.color;r=this.evalPointOptions(r,t,e),U(o.color)?i=r.color:0!==this.valueRange.max&&(i=function(t,e){void 0===e&&(e=.05);var o=(0,D.parseColor)(t),r=1-e;return function(t){var e=o.toHSL(),i=100-e.l,n=r-t;return e.l+=Math.min(n*i,i),e.toCss()}}(i)(t.value/this.valueRange.max));var n=new Cp(t,r);return n.color=i,this.append(n),n},e.prototype.seriesAxes=function(t){var e=t.xAxis,o=t.yAxis,r=this.plotArea,i=e?r.namedXAxes[e]:r.axisX,n=o?r.namedYAxes[o]:r.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 "+o);return{xAxis:i,yAxis:n}},e.prototype.reflow=function(t){var e=this,o=this.points,r=!this.options.clip,i=0;this.traverseDataPoints((function(t,n){var a=o[i++],s=e.seriesAxes(n.series),l=s.xAxis,p=s.yAxis,c=l.categoryIndex(t.x),h=p.categoryIndex(t.y),u=l.getSlot(c,c,r),f=p.getSlot(h,h,r);if(a)if(u&&f){var d=e.pointSlot(u,f);a.reflow(d)}else a.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new ie(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this,o=this.options.series,r=0;r<o.length;r++)for(var i=o[r],n=e.seriesAxes(i),a=n.xAxis,s=n.yAxis,l=a.currentRangeIndices(),p=s.currentRangeIndices(),c=0;c<i.data.length;c++){var h=e._bindPoint(i,r,c),u=h.valueFields,f=h.fields,d=a.totalIndex(u.x),v=s.totalIndex(u.y),y=l.min<=d&&d<=l.max,g=p.min<=v&&v<=p.max;y&&g&&t(u,X({pointIx:c,series:i,seriesIx:r,dataItem:i.data[c],owner:e},f))}},e.prototype.formatPointValue=function(t,e){var o=t.value;return this.chartService.format.auto(e,o.x,o.y,o.value)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],o=0;o<t.length;o++)e.push((t[o]||{}).marker);return e},e}(fe);Bt(Op,{series:[],tooltip:{format:"{0}, {1}: {2}"},labels:{format:"{2}"},clip:!0}),X(Op.prototype,{_bindPoint:an.prototype._bindPoint});const Sp=Op;var 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.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 o=t[e],r=o.data||[],i=this.seriesAxes(o),n=i.xAxis,a=i.yAxis,s=Qt(n.categories||[]),l=Qt(a.categories||[]),p=0;p<r.length;p++){var c=Ir.current.bindPoint(o,p).valueFields,h=c.x,u=c.y;s.has(h)||s.add(h),l.has(u)||l.add(u)}n.categories=s.values(),a.categories=l.values()}},e.prototype.createCharts=function(t){for(var e=this,o=this.groupSeriesByPane(),r=0;r<t.length;r++){var i=t[r],n=o[i.options.name||"default"]||[];e.addToLegend(n);var a=e.filterVisibleSeries(n);a&&e.createHeatmapChart(za(a,[ni]),i)}},e.prototype.createHeatmapChart=function(t,e){var o=new Sp(this,{series:t});this.appendChart(o,e)},e.prototype.seriesPaneName=function(t){var e=this.options,o=t.xAxis,r=at([].concat(e.xAxis),(function(t){return t.name===o}))[0],i=t.yAxis,n=at([].concat(e.yAxis),(function(t){return t.name===i}))[0],a=(e.panes||[{}])[0].name||"default";return(r||{}).pane||(n||{}).pane||a},e.prototype.seriesAxes=function(t){var e,o,r=this.options,i=[].concat(r.xAxis),n=t.xAxis;e=n?i.find((function(t){return t.name===n})):i[0];var a=[].concat(r.yAxis),s=t.yAxis;if(o=s?a.find((function(t){return t.name===s})):a[0],!e)throw new Error("Unable to locate X axis with name "+n);if(!o)throw new Error("Unable to locate Y axis with name "+s);return{xAxis:e,yAxis:o}},e.prototype.createAxisLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e].createLabels()},e.prototype.createXYAxis=function(t,e,o){for(var r,i=t.name,n=e?this.namedYAxes:this.namedXAxes,a=Object.assign({axisCrossingValue:0},t,{vertical:e,reverse:e||this.chartService.rtl?!t.reverse:t.reverse,justified:!1}),s=a.categories?a.categories[0]:null,l=[a.min,a.max,s],p=this.series,c=0;c<p.length;c++){var u=p[c],f=u[e?"yAxis":"xAxis"];if(f===a.name||0===o&&!f){var d=Ir.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){r=!0;break}var y=new(Na(a.type,h)||!a.type&&r?Ko:No)(a,this.chartService);if(y.axisIndex=o,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,o=this.options,r=[].concat(o.xAxis),i=[],n=[].concat(o.yAxis),a=[],s=0;s<r.length;s++)ct(e.findPane(r[s].pane),t)&&i.push(e.createXYAxis(r[s],!1,s));for(var l=0;l<n.length;l++)ct(e.findPane(n[l].pane),t)&&a.push(e.createXYAxis(n[l],!0,l));this.axisX=this.axisX||i[0],this.axisY=this.axisY||a[0]},e.prototype.removeAxis=function(e){var o=e.options.name;t.prototype.removeAxis.call(this,e),e.options.vertical?delete this.namedYAxes[o]:delete this.namedXAxes[o],e===this.axisX&&delete this.axisX,e===this.axisY&&delete this.axisY},e.prototype._dispatchEvent=function(t,e,o){for(var r=t._eventCoordinates(e),i=new ee(r.x,r.y),n=this.axes,a=n.length,s=[],l=[],p=0;p<a;p++){var c=n[p];Ra(c.options.vertical?l:s,c.getCategory(i))}s.length>0&&l.length>0&&t.trigger(o,{element:Pt(e),originalEvent:e,x:Ua(s),y:Ua(l)})},e.prototype.updateAxisOptions=function(t,e){var o=t.options.vertical,r=this.groupAxes(this.panes),i=(o?r.y:r.x).indexOf(t);Ap(this.options,i,o,e),Ap(this.originalOptions,i,o,e)},e.prototype.crosshairOptions=function(t){return Object.assign({},t.options.crosshair,{zIndex:0})},e}($a);function Ap(t,e,o,r){X([].concat(o?t.yAxis:t.xAxis)[e],r)}Bt(Pp,{xAxis:{},yAxis:{}}),X(Pp.prototype,ts);const kp=Pp;var Tp="color",jp="first",Ep="max",Mp="min",Ip="noteText";ol.current.register(Rs,[Qr,oi,si,Oi,Zr,xi,ei,li,ti,Ci,$r,wi,mi,gi,Pi,ai,yi,Si]),ol.current.register(_l,[bi,_i,Jr]),ol.current.register(jl,[pi]),ol.current.register(Dl,[ri]),ol.current.register(xp,[ii]),ol.current.register(Ql,[ci,hi,ui]),ol.current.register(vp,[fi,di,vi]),ol.current.register(kp,[ni]),Ir.current.register([Qr,oi,si,Oi,Zr,xi],[A],[Xi,Tp,Ip,Ur,Fr,Zi]),Ir.current.register([mi,gi,yi,Si],["from","to"],[Xi,Tp,Ip,Zi]),Ir.current.register([Pi,ai],[A],[Xi,Tp,Ip,"summary",Zi]),Ir.current.register([ci,hi,ui],[j,E],[Tp,Zi]),Ir.current.register([fi,di,vi],[A],[Tp,Zi]),Ir.current.register([ii],[A],[Xi,Tp,"visibleInLegend","visible",Zi]),is.current.register([Qr,oi,si,Oi,Zr,xi,Pi,ai],{value:Ep,color:jp,noteText:jp,errorLow:Mp,errorHigh:Ep}),is.current.register([mi,gi,yi,Si],{from:Mp,to:Ep,color:jp,noteText:jp}),is.current.register([fi,di,vi],{value:Ep,color:jp}),Ir.current.register([bi,_i,Jr],[j,E],[Tp,Ip,"xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Ir.current.register([Jr],[j,E,"size"],[Tp,Xi,Ip]),Ir.current.register([ni],[j,E,A],[Tp,Ip]),Ir.current.register([ei,li],["open","high","low","close"],[Xi,Tp,"downColor",Ip]),is.current.register([ei,li],{open:Ep,high:Ep,low:Mp,close:Ep,color:jp,downColor:jp,noteText:jp}),Ir.current.register([$r,wi],["lower","q1","median","q3","upper","mean","outliers"],[Xi,Tp,Ip,Zi]),is.current.register([$r,wi],{lower:Ep,q1:Ep,median:Ep,q3:Ep,upper:Ep,mean:Ep,outliers:jp,color:jp,noteText:jp}),Ir.current.register([ti,Ci],["current","target"],[Xi,Tp,"visibleInLegend",Ip,Zi]),is.current.register([ti,Ci],{current:Ep,target:Ep,color:jp,noteText:jp}),Ir.current.register([pi,ri],[A],[Xi,Tp,"explode","visibleInLegend","visible",Zi]);var Lp=[Xi,A,j,E],Rp="mousemove",Dp="contextmenu",Bp="mouseleave",Np=function(t){function e(e,o,r,i){var n=this;void 0===i&&(i={}),t.call(this),this.observers=[],this.addObserver(i.observer),this.chartService=new qe(this,i),this.chartService.theme=r,this._initElement(e);var a=X({},this.options,o);this._originalOptions=X({},a),this._theme=r,this._initTheme(a,r),this._initHandlers(),this._initSurface(),this.bindCategories(),Dt.preloadFonts(o,(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){I(t,"k-chart")},e.prototype._initTheme=function(t,e){for(var o=[],r=t.series||[],i=0;i<r.length;i++)o.push(Object.assign({},r[i]));t.series=o,function(t){for(var e=Lp,o=0;o<e.length;o++){var r=e[o]+"Axes";t[r]&&(t[e[o]+"Axis"]=t[r],delete t[r])}}(t),this.applyDefaults(t,e),null===t.seriesColors&&delete t.seriesColors,this.options=X({},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(),o=this._size,r=e.width>0||e.height>0;t||r&&(!o||e.width!==o.width||e.height!==o.height)?(this._size=e,this._resize(e,t),this.trigger("resize",e)):r&&this._selections&&zt(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,o=e.findPane(t);e.redraw(o)}else this._redraw()},e.prototype.getAxis=function(t){return Or(t,this._plotArea.axes)},e.prototype.findAxisByName=function(t){return this.getAxis(t)},e.prototype.findPaneByName=function(t){for(var e=this._plotArea.panes,o=0;o<e.length;o++)if(e[o].options.name===t)return new Pr(e[o])},e.prototype.findPaneByIndex=function(t){var e=this._plotArea.panes;if(e[t])return new Pr(e[t])},e.prototype.plotArea=function(){return new Ar(this._plotArea)},e.prototype.toggleHighlight=function(t,e){var o,r,i,n=this._plotArea,a=(n.srcSeries||n.series||[])[0];U(e)?o=n.filterPoints(e):(K(e)?(r=e.series,i=e.category):r=i=e,o=a.type===ri?zp(n.pointsBySeriesName(r),i):a.type===pi||a.type===ii?zp((n.charts[0]||{}).points,i):n.pointsBySeriesName(r)),o&&this.togglePointsHighlight(t,o)},e.prototype.togglePointsHighlight=function(t,e){for(var o=this._highlight,r=0;r<e.length;r++)o.togglePointHighlight(e[r],t)},e.prototype.showTooltip=function(t){var e,o,r=this._sharedTooltip(),i=this._tooltip,n=this._plotArea;if(U(t)?(e=n.findPoint(t))&&r&&(o=e.categoryIx):r&&xt(t)&&(o=n.categoryAxis.categoryIndex(t)),r){if(o>=0){var a=this._plotArea.pointsByCategoryIndex(o);i.showAt(a)}}else e&&i.show(e)},e.prototype.hideTooltip=function(){this._tooltip.hide()},e.prototype._initSurface=function(){var t=this.surface,e=this._surfaceWrap(),o=this.options.chartArea||{};o.width&&Ot(e,{width:o.width}),o.height&&Ot(e,{height:o.height}),t&&t.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=D.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 Ns,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),Gp(this._plotArea.panes),this._navState||this._cancelDomEvents()},e.prototype.exportVisual=function(t){var e;if(t&&(t.width||t.height||t.options)){var o=this.options,r=X({},t.options,{chartArea:{width:t.width,height:t.height}});Fp(this._originalOptions,r),this.options=X({},this._originalOptions,r),this._initTheme(this.options,this._theme),this.bindCategories();var i=this._getModel();i.renderVisual(),Gp(i._plotArea.panes),e=i.visual,this.options=o}else e=this.surface.exportVisual();return e},e.prototype._sharedTooltip=function(){return this._plotArea instanceof Rs&&this.options.tooltip&&this.options.tooltip.shared},e.prototype._createPannable=function(){var t=this.options;!1!==t.pannable&&(this._pannable=new Us(this._plotArea,t.pannable))},e.prototype._createZoomSelection=function(){var t=this.options.zoomable,e=(t||{}).selection;!1!==t&&!1!==e&&(this._zoomSelection=new Gs(this,e))},e.prototype._createMousewheelZoom=function(){var t=this.options.zoomable,e=(t||{}).mousewheel;!1!==t&&!1!==e&&(this._mousewheelZoom=new Xs(this,e))},e.prototype._toggleDragZoomEvents=function(){var t=this.options.pannable,e=this.options.zoomable,o=(e||{}).selection,r=(e||{}).mousewheel,i=!(t||!1!==e&&!1!==o||this.requiresHandlers([Di,Li,Ri])),n=(!1===e||!1===r)&&!this.requiresHandlers([Bi,Ni,zi]),a=this.element;this._dragZoomEnabled&&i&&n?(a.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):this._dragZoomEnabled||i&&n||(a.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!i,!n)},e.prototype._toggleDomEvents=function(t,e){var o=this.domEvents;o&&(o.toggleDrag&&o.toggleDrag(t),o.toggleZoom&&o.toggleZoom(e))},e.prototype._createTooltip=function(){var t=this.options.tooltip;return this._sharedTooltip()?this._createSharedTooltip(t):new ll(this.chartService,t)},e.prototype._createSharedTooltip=function(t){return new cl(this._plotArea,t)},e.prototype.applyDefaults=function(t,e){!function(t,e){var o,r,i,n=(e||{}).axisDefaults||{};function a(t){var e=(t||{}).color||r.color,i=X({},n,n[o],r,r[o],{line:{color:e},labels:{color:e},title:{color:e}},t);return delete i[o],i}for(var s=0;s<Lp.length;s++)o=Lp[s]+"Axis",r=t.axisDefaults||{},i=(i=[].concat(t[o])).map(a),t[o]=i.length>1?i:i[0]}(t,e),function(t,e){var o=t.series,r=o.length,i=t.seriesDefaults,n=X({},t.seriesDefaults),a=e?X({},e.seriesDefaults):{},s=X({},a);Vp(n),Vp(s);for(var l=0;l<r;l++){var p=o[l].type||t.seriesDefaults.type,c=X({data:[]},s,a[p],{tooltip:t.tooltip},n,i[p]);o[l]._defaults=c,o[l]=X({},c,o[l]),o[l].data=o[l].data||[]}}(t,e)},e.prototype.applySeriesColors=function(){for(var t=this.options,e=t.series,o=t.seriesColors||[],r=0;r<e.length;r++){var i=e[r],n=o[r%o.length],a=i._defaults;i.color=i.color||n,a&&(a.color=a.color||n)}},e.prototype._getModel=function(){var t=this.options,e=this._createPlotArea(),o=new we(this._modelOptions());o.chart=this,o._plotArea=e;var r=Le.buildTitle(t.title),i=Le.buildTitle(t.subtitle,{align:t.title.align,position:t.title.position});return o.append.apply(o,Le.orderTitles([r,i])),t.legend&&t.legend.visible&&o.append(new tl(e.options.legend,this.chartService)),o.append(e),o.reflow(),o},e.prototype._modelOptions=function(){var t=this.options,e=this.getSize();return X({transitions:t.transitions,width:e.width||600,height:e.height||400},t.chartArea)},e.prototype._createPlotArea=function(t){var e=this.options;return ol.current.create(t?[]:e.series,e,this.chartService)},e.prototype._setupSelection=function(){for(var t=this._plotArea.axes,e=this._selections=[],o=0;o<t.length;o++){var r=t[o],i=r.options;if(r instanceof No&&i.select&&!i.vertical){var n=r.range(),a=new al(this,r,X({min:n.min,max:n.max},i.select));e.push(a)}}},e.prototype._selectStart=function(t){return this.trigger(Vi,t)},e.prototype._select=function(t){return this.trigger(Hi,t)},e.prototype._selectEnd=function(t){return this.trigger(Ui,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=(0,D.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,o=0;o<e.length;o++)if(e[o].requiresHandlers(t))return!0},e.prototype.trigger=function(t,e){void 0===e&&(e={}),e.sender=this,t===Fi?e.anchor.point=this._toDocumentCoordinates(e.anchor.point):t===ji?this._updateDrilldownPoint(e.point):t===Ei?this._resetDrilldownPoint():t===ki&&this._startDrilldown(e.point);for(var o=this.observers,r=!1,i=0;i<o.length;i++)o[i].trigger(t,e)&&(r=!0);return r},e.prototype._attachEvents=function(){var t,e,o=this.element;this._touchAction=o.style.touchAction,_t(o,((t={})[Dp]=this._clickHandler,t[qi]=this._mousewheelHandler,t[Bp]=this._mouseleaveHandler,t)),this._shouldAttachMouseMove()&&_t(o,((e={})[Rp]=this._mousemove,e)),this.domEvents=$e.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._plotAreaHovered&&(this._plotAreaHovered=!1,this.trigger(Ii))},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(zi,{}))},e.prototype._gesturechange=function(t){var e=this._mousewheelZoom;if(e&&!this._stopChartHandlers(t)){t.preventDefault();var o=this._gestureDistance,r=-t.distance/o+1;if(Math.abs(r)>=.1){r=Math.round(10*r),this._gestureDistance=t.distance;var i={delta:r,axisRanges:Hp(this._plotArea.axes),originalEvent:t};if(this._zooming||!this.trigger(Bi,i)){var n=this._eventCoordinates(t);this._zooming||(this._zooming=!0),(i.axisRanges=e.updateRanges(r,n))&&!this.trigger(Ni,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([Di,Li,Ri])&&this._startNavigation(t,e,Di),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(Bi,{axisRanges:Hp(this._plotArea.axes),originalEvent:t}))},e.prototype._move=function(t){var e=this._navState,o=this._pannable;if(!this._stopChartHandlers(t)){if(o){var r=o.move(t);r&&!this.trigger(Li,{axisRanges:r,originalEvent:t})&&o.pan()}else if(e){for(var i={},n=e.axes,a=0;a<n.length;a++){var s=n[a];if(s.options.name){var l=s.options.vertical?t.y:t.x,p=l.startLocation-l.location;0!==p&&(i[s.options.name]=s.translateRange(p))}}e.axisRanges=i,this.trigger(Li,{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(Ri,{axisRanges:Hp(this._plotArea.axes),originalEvent:t}),this._suppressHover=!1,this.chartService.panning=!1):this._endNavigation(t,Ri),this._zoomSelection){var o=this._zoomSelection.end(t);o&&!this.trigger(Ni,{axisRanges:o,originalEvent:t})&&(this._zoomSelection.zoom(),this.trigger(zi,{axisRanges:o,originalEvent:t}))}}},e.prototype._stopChartHandlers=function(t){var e=this._selections||[];if(!e.length)return!1;var o=this._eventCoordinates(t),r=this._plotArea.paneByPoint(o);if(r)for(var i=0;i<e.length;i++)if(e[i].onPane(r))return!0},e.prototype._mousewheelZoomRate=function(){var t=(this.options.zoomable||{}).mousewheel||{};return Lt(t.rate,.3)},e.prototype._mousewheel=function(t){var e=this,o=gt(t),r=this._mousewheelZoom,i=this._eventCoordinates(t);if(!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(i))if(r){var n={delta:o,axisRanges:Hp(this._plotArea.axes),originalEvent:t};!this._zooming&&this.trigger(Bi,n)||(t.preventDefault(),this._zooming||(this._unsetActivePoint(),this.surface.suspendTracking(),this._zooming=!0),this._mwTimeout&&clearTimeout(this._mwTimeout),n.axisRanges=r.updateRanges(o,i),n.axisRanges&&!this.trigger(Ni,n)&&r.zoom(),this._mwTimeout=setTimeout((function(){e.trigger(zi,n),e._zooming=!1,e.surface&&e.surface.resumeTracking()}),150))}else{var a=this._navState;if(a||this._startNavigation(t,i,Bi)||(a=this._navState),a){var s=a.totalDelta||o;a.totalDelta=s+o;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(-s*e._mousewheelZoomRate(),i))}this.trigger(Ni,{delta:o,axisRanges:p,originalEvent:t}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._endNavigation(t,zi)}),150)}}},e.prototype._startNavigation=function(t,e,o){var r=this._model._plotArea,i=r.findPointPane(e),n=r.axes.slice(0);if(i){var a=Hp(n);this.trigger(o,{axisRanges:a,originalEvent:t})?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:a,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 o=this.surface.eventTarget(t);if(o)return this._drawingChartElement(o,t,e)},e.prototype._drawingChartElement=function(t,e,o){for(var r,i=t;i&&!r;)r=i.chartElement,i=i.parent;if(r)return r.aliasFor&&(r=r.aliasFor(e,this._eventCoordinates(e))),o&&(r=r.closest(o))&&r.aliasFor&&(r=r.aliasFor()),r},e.prototype._eventCoordinates=function(t){var e=St(t);return this._toModelCoordinates(e.x,e.y)},e.prototype._elementPadding=function(){if(!this._padding){var t=Q(this.element,["paddingLeft","paddingTop"]),e=t.paddingLeft,o=t.paddingTop;this._padding={top:o,left:e}}return this._padding},e.prototype._toDocumentCoordinates=function(t){var e=this._elementPadding(),o=Ct(this.element);return{left:Mt(t.x+e.left+o.left),top:Mt(t.y+e.top+o.top)}},e.prototype._toModelCoordinates=function(t,e){var o=this.element,r=Ct(o),i=this._elementPadding(),n=Ft(o).invert(),a=new D.geometry.Point(t-r.left-i.left,e-r.top-i.top).transform(n);return new ee(a.x,a.y)},e.prototype._tap=function(t){var e=this,o=this.surface.eventTarget(t),r=this._drawingChartElement(o,t),i=this._sharedTooltip();this._startHover(o,t)||i||this._unsetActivePoint(),i&&this._trackSharedTooltip(this._eventCoordinates(t),t,!0),this._propagateClick(r,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 o=t;o;)o.click&&o.click(this,e),o=o.parent},e.prototype._startHover=function(t,e){if(this._suppressHover)return!1;var o=this._drawingChartElement(t,e,(function(t){return(t.hover||t.over)&&!(t instanceof $a)}));return this._showInactiveOpacity(o,e),o},e.prototype._displayTooltip=function(t){X({},this.options.tooltip,t.options.tooltip).visible&&this._tooltip.show(t)},e.prototype._displayInactiveOpacity=function(t,e,o){var r=this._activeChartInstance=this._chartInstanceFromPoint(t);if(r)if(e)this._updateSeriesOpacity(t),this._applySeriesOpacity(r.children,null,!0),this._applySeriesOpacity(r.children,t.series),this._highlight.show(o||t);else{var i;if(!r.supportsPointInactiveOpacity())return void this._highlight.show(t);(i=this._getInactivePoints(t,r))&&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 o=[],r=0;r<t.children.length;r++){var i=t.children[r];i.constructor===e?o.push(i):i.children&&i.children.length&&(o=o.concat(this._getAllPointsOfType(i,e)))}return o},e.prototype._updateHoveredPoint=function(t,e){var o=this._hoveredPoint;o&&o!==t&&(o.out(this,e),this._hoveredPoint=null),t&&o!==t&&t.over&&(this._hoveredPoint=t,t.over(this,e))},e.prototype._updateDrilldownPoint=function(t){t&&t.series&&Ir.current.bindPoint(t.series,null,t.dataItem).fields.drilldown&&(this._drilldownState={cursor:this.element.style.cursor},this.element.style.cursor="pointer")},e.prototype._resetDrilldownPoint=function(){this._drilldownState&&(this.element.style.cursor=this._drilldownState.cursor,this._drilldownState=null)},e.prototype._startDrilldown=function(t){if(t&&t.series){var e=t.series,o=Ir.current.bindPoint(e,null,t.dataItem).fields.drilldown;if(o){var r={series:e,point:t,value:o,sender:this};this.trigger("drilldown",r)}}},e.prototype._updateSeriesOpacity=function(t,e){for(var o=this._plotArea,r=o.series.length,i=0;i<r;i++){var n=o.series[i],a=this._getDefaultOpacityForSeries(n),s=this._getInactiveOpacityForSeries(n);e||n===t.series?(n.opacity=a,n.line&&(n.line.opacity=a)):(n.defaultOpacity=a,n.opacity=s,n.line&&(n.line.opacity=s))}},e.prototype._applySeriesOpacity=function(t,e,o,r){for(var i=0;i<t.length;i++){var n=t[i],a=n.series||r;if(a&&(a.highlight||{}).visible&&n.visual){var s=r?r.opacity:n.series.opacity;(a!==e||o)&&n.visual.opacity(o?1:s)}n.children&&n.children.length&&this._applySeriesOpacity(n.children,e,o,n.series)}},e.prototype._chartInstanceFromPoint=function(t){for(var e=t.parent;e&&!e.plotArea;)e=e.parent;return e},e.prototype._showInactiveOpacity=function(t,e){var o=this._activePoint,r=this._plotArea.series.length>1,i=this._hasInactiveOpacity();return this._updateHoveredPoint(t,e),t&&o!==t&&t.hover&&(this._activePoint=t,this._sharedTooltip()||t.hover(this,e)||(this._displayTooltip(t),i?this._displayInactiveOpacity(t,r):this._highlight.show(t))),t},e.prototype._hideInactiveOpacity=function(t){var e=this._plotArea.series.length>1;this._hasInactiveOpacity()&&(e&&this._activeChartInstance&&(this._updateSeriesOpacity(t,!0),this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._activeChartInstance=null),this._highlight&&this._highlight.hide(),this._activePoint=null)},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,o=this._startHover(t.element,t.originalEvent);o&&o.tooltipTracking&&!this._mouseMoveTrackHandler&&!this._sharedTooltip()&&(this._mouseMoveTrackHandler=this._mouseMoveTracking.bind(this),_t(document,((e={})[Rp]=this._mouseMoveTrackHandler,e)))},e.prototype._mouseMoveTracking=function(t){var e,o=this,r=o.options,i=o._tooltip,n=o._highlight,a=o._activePoint,s=this._eventCoordinates(t);if(this._plotArea.box.containsPoint(s)){if(a&&a.tooltipTracking&&a.series&&a.parent.getNearestPoint){var l=a.parent.getNearestPoint(s.x,s.y,a.seriesIx);l&&l!==a&&(this._activePoint=l,l.hover(this,t)||(X({},r.tooltip,l.options.tooltip).visible&&i.show(l),n.show(l)))}}else It(document,((e={})[Rp]=this._mouseMoveTrackHandler,e)),this._unsetActivePoint(),this._mouseMoveTrackHandler=null,this._hideInactiveOpacity(a)},e.prototype._mousemove=function(t){var e=this._eventCoordinates(t),o=this._plotArea;if(this._trackCrosshairs(e),o.hover){var r=o.backgroundContainsPoint(e);r?(this._plotAreaHovered=!0,this._plotArea.hover(this,t)):this._plotAreaHovered&&!r&&(this._plotAreaHovered=!1,this.trigger(Ii))}this._sharedTooltip()&&this._trackSharedTooltip(e,t)},e.prototype._trackCrosshairs=function(t){for(var e=this._plotArea.crosshairs,o=0;o<e.length;o++){var r=e[o];r.box.containsPoint(t)?r.showAt(t):r.hide()}},e.prototype._trackSharedTooltip=function(t,e,o){if(!this._suppressHover){var r=this,i=r.options.tooltip,n=r._plotArea,a=r._plotArea.categoryAxis,s=r._tooltip,l=r._highlight;if(n.backgroundContainsPoint(t)){var p=a.pointCategoryIndex(t);if(p!==this._tooltipCategoryIx||!this._sharedHighlight&&o){var c=n.pointsByCategoryIndex(p),h=c.map((function(t){return t.eventArgs(e)})),u=h[0]||{};u.categoryPoints=h,c.length>0&&!this.trigger(Ti,u)?(i.visible&&s.showAt(c,t),l.show(c),this._sharedHighlight=!0):s.hide(),this._tooltipCategoryIx=p}else o&&this._sharedHighlight&&(l.hide(),s.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(l.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,o=this._highlight;this._activePoint=null,this._hoveredPoint=null,!e||t&&t.keepTooltipOpen||e.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1,o&&o.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),o=0;o<e.length;o++){var r=e[o];!1!==r.autoBind&&this.bindCategoryAxisFromSeries(r,o)}},e.prototype.bindCategoryAxisFromSeries=function(t,e){for(var o,r=this.options.series,i=r.length,n=new pt,a=[],s=!1,l=0;l<i;l++){var p=r[l],c=p.categoryAxis===t.name||!p.categoryAxis&&0===e,h=p.data,u=h.length,f=p.categoryField&&c;if(s=f||s,f&&u>0)for(var d=(o=Ha(t,Er(p.categoryField,h[0])))?Va:Er,v=0;v<u;v++){var y=h[v],g=d(p.categoryField,y,this.chartService.intl);!o&&n.get(g)||(a.push([g,y]),o||n.set(g,!0))}}if(a.length>0){o&&(a=function(t,e){void 0===e&&(e=Ao);for(var o=function(t,e){void 0===e&&(e=Ao);for(var o=1,r=t.length;o<r;o++)if(e(t[o],t[o-1])<0){t.sort(e);break}return t}(t,e),r=o.length,i=r>0?[o[0]]:[],n=1;n<r;n++)0!==e(o[n],kt(i))&&i.push(o[n]);return i}(a,(function(t,e){return Ao(t[0],e[0])})));var m=function(t){for(var e=t.length,o=[],r=0;r<e;r++)for(var i=t[r],n=i.length,a=0;a<n;a++)o[a]=o[a]||[],o[a].push(i[a]);return o}(a);t.categories=m[0]}else s&&(t.categories=[])},e.prototype._isBindable=function(t){for(var e=Ir.current.valueFields(t),o=!0,r=0;r<e.length;r++){var i=e[r];if(i===A?i="field":i+="Field",!xt(t[i])){o=!1;break}}return o},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 o,r=this._plotArea,i=this._highlight,n=(r.srcSeries||r.series)[t];if(o=ct(n.type,[pi,ri,ii])?r.findPoint((function(o){return o.series.index===t&&o.index===e})):r.pointsBySeriesIndex(t),this._hasInactiveOpacity()&&n.visible&&o){var a=r.series.length>1,s=o.length?o[0]:o;this._displayInactiveOpacity(s,a,o)}else i.show(o)},e.prototype._shouldAttachMouseMove=function(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers([Mi,Ii])},e.prototype.updateMouseMoveHandler=function(){var t,e;It(this.element,((t={})[Rp]=this._mousemove,t)),this._shouldAttachMouseMove()&&_t(this.element,((e={})[Rp]=this._mousemove,e))},e.prototype.applyOptions=function(t,e){Fp(this._originalOptions,t),this._originalOptions=X(this._originalOptions,t),this.options=X({},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,It(this.element,((t={})[Dp]=this._clickHandler,t[qi]=this._mousewheelHandler,t[Rp]=this._mousemove,t[Bp]=this._mouseleaveHandler,t)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&It(document,((e={})[Rp]=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._resetDrilldownPoint(),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}(D.Class);function zp(t,e){if(t)for(var o=0;o<t.length;o++)if(t[o].category===e)return[t[o]]}function Vp(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 Hp(t){for(var e={},o=0;o<t.length;o++){var r=t[o],i=r.options.name;i&&(e[i]=r.range())}return e}var Up=["data","categories"];function Fp(t,e){for(var o in e)if(!ct(o,Up)&&e.hasOwnProperty(o)){var r=e[o],i=t[o];if(xt(i)){var n=null===r;n||!xt(r)?(delete t[o],n&&delete e[o]):i&&K(r)&&K(i)&&Fp(i,r)}}}function Gp(t){for(var e=0;e<t.length;e++)t[e].notifyRender()}Bt(Np,{renderAs:"",chartArea:{},legend:{visible:!0,labels:{}},categoryAxis:{},seriesDefaults:{type:oi,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});const Wp=Np;var 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._slotAnchor=function(t,e){var o=this.plotArea.categoryAxis.options.vertical,r=o?{horizontal:"left",vertical:"center"}:{horizontal:"center",vertical:"bottom"};return{point:o?new ee(this.plotArea.box.x2,e.center().y):new ee(e.center().x,-2),align:r}},e.prototype._defaultAnchor=function(t,e){return this._slotAnchor({},e)},e}(cl);const Kp=Xp;var Yp=[Qr,ti];function qp(t){for(var e=[],o=0;o<t.length;o++){var r=t[o];e[o]=r.style.display,r.style.display="none"}return e}function Zp(t,e){for(var o=0;o<t.length;o++)t[o].style.display=e[o]}function Qp(t){return z(t)?[t]:t}var $p=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){I(t,"k-sparkline")},e.prototype._initElement=function(e){t.prototype._initElement.call(this,e),this._initialWidth=Math.floor(Ot(e).width)},e.prototype._resize=function(){var e=this.element,o=qp(e.childNodes);this._initialWidth=Math.floor(Ot(e).width),Zp(e.childNodes,o),t.prototype._resize.call(this)},e.prototype._modelOptions=function(){var t=this.options,e=this._surfaceWrap(),o=qp(e.childNodes),r=document.createElement("span");r.innerHTML=" ",e.appendChild(r);var i=X({width:this._autoWidth,height:Ot(e).height,transitions:t.transitions},t.chartArea,{inline:!0,align:!1});return Ot(e,{width:i.width,height:i.height}),e.removeChild(r),Zp(e.childNodes,o),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 o=t.prototype._createPlotArea.call(this,e);return this._autoWidth=this._initialWidth||this._calculateWidth(o),o},e.prototype._calculateWidth=function(t){for(var e=this.options,o=$(e.chartArea.margin),r=t.charts,i=this._surfaceWrap(),n=0,a=0;a<r.length;a++){var s=r[a],l=(s.options.series||[])[0];if(l){if(l.type===Qr)return 150;if(l.type===ti)return 150;if(l.type===pi)return Ot(i).height;var p=s.categoryAxis;if(p){var c=p.categoriesCount()*(!s.options.isStacked&&ct(l.type,[oi,Ci])?s.seriesOptions.length:1);n=Math.max(n,c)}}}var h=n*e.pointWidth;return h>0&&(h+=o.left+o.right),h},e.prototype._createSharedTooltip=function(t){return new Kp(this._plotArea,t)},e.normalizeOptions=function(t){var e=Qp(t);return(e=M(e)?{seriesDefaults:{data:e}}:X({},e)).series||(e.series=[{data:Qp(e.data)}]),X(e,{seriesDefaults:{type:e.type}}),(ct(e.series[0].type,Yp)||ct(e.seriesDefaults.type,Yp))&&(e=X({},{categoryAxis:{crosshair:{visible:!1}}},e)),e},e}(Wp);Bt($p,{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}]});const Jp=$p;var tc=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(Q(this.element,"opacity").opacity)},e.prototype.step=function(t){Q(this.element,{opacity:String(ht(this._initialOpacity,0,t))})},e.prototype.abort=function(){t.prototype.abort.call(this),Q(this.element,{display:"none",opacity:String(this._initialOpacity)})},e.prototype.cancel=function(){t.prototype.abort.call(this),Q(this.element,{opacity:String(this._initialOpacity)})},e}(D.drawing.Animation);const ec=tc;function oc(t,e){var o=document.createElement("div");return o.className=t,e&&(o.style.cssText=e),o}var rc=function(t){function e(e,o,r){t.call(this),this.options=X({},this.options,r),this.container=e,this.chartService=o;var i=Q(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=oc("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),e=this.tooltip=oc("k-tooltip k-chart-tooltip"),o=this.scroll=oc("k-scroll");e.innerHTML=" ",t.appendChild(e),t.appendChild(o)},e.prototype.show=function(t,e,o){var r=this,i=r.element,n=r.options,a=r.scroll,s=r.tooltip,l=wo(To(t)+To(e-t)/2),p=.4*o.width(),c=o.center().x-p,h=(o.center().x-c)/(n.max-n.min),u=l-n.min,f=this.chartService.intl.format(n.format,t,e),d=ot(n);this.clearHideTimeout(),this._visible||(Q(i,{visibility:"hidden",display:"block"}),this._visible=!0),d&&(f=d({from:t,to:e})),s.innerHTML=f,Q(s,{left:o.center().x-s.offsetWidth/2,top:o.y1});var v=Q(s,["marginTop","borderTopWidth","height"]);Q(a,{width:p,left:c+u*h,top:o.y1+v.marginTop+v.borderTopWidth+v.height/2}),Q(i,{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 ec(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}(D.Class);Bt(rc,{format:"{0:d} - {1:d}",hideDelay:500});const ic=rc;var nc="_navigator",ac=nc,sc="_default",lc=function(t){function e(e){var o;t.call(this),this.chart=e;var r=this.options=X({},this.options,e.options.navigator),i=r.select;i&&(i.from=this.parseDate(i.from),i.to=this.parseDate(i.to)),xt(r.hint.visible)||(r.hint.visible=r.visible),this.chartObserver=new dt(this,((o={})[Li]="_drag",o[Ri]="_dragEnd",o[Ni]="_zoom",o[zi]="_zoomEnd",o)),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 Lo(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,o=this.options,r=this.mainAxis(),i=r.roundedRange(),n=i.min,a=i.max,s=o.select,l=s.from,p=s.to,c=s.mousewheel,h=(t=r,pc.prototype=t,new pc);0!==r.categoriesCount()&&(this.clean(),h.box=r.box,this.selection=new al(e,h,{min:n,max:a,from:l||n,to:p||a,mousewheel:Lt(c,{zoom:"left"}),visible:o.visible},new dt(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),o.hint.visible&&(this.hint=new ic(e.element,e.chartService,{min:n,max:a,template:ot(o.hint),format:o.hint.format})))},e.prototype.setRange=function(){var t=this.chart._createPlotArea(!0).namedCategoryAxes[ac].roundedRange(),e=t.min,o=t.max,r=this.options.select||{},i=r.from||e;i<e&&(i=e);var n=r.to||o;n>o&&(n=o),this.options.select=X({},r,{from:i,to:n}),this.filterAxes()},e.prototype._redrawSelf=function(t){var e=this.chart._plotArea;e&&e.redraw(kt(e.panes),t)},e.prototype.redrawSlaves=function(){var t=this.chart,e=t._plotArea,o=e.panes.filter((function(t){return t.options.name!==nc}));e.srcSeries=t.options.series,e.options.categoryAxis=t.options.categoryAxis,e.clearSeriesPointsCache(),e.redraw(o)},e.prototype._drag=function(t){var e,o=this.chart,r=this.selection,i=o._eventCoordinates(t.originalEvent),n=this.mainAxis(),a=n.roundedRange(),s=n.pane.box.containsPoint(i),l=o._plotArea.categoryAxis,p=t.axisRanges[l.options.name],c=this.options.select;if(p&&!s&&r){e=c.from&&c.to?To(c.to)-To(c.from):To(r.options.to)-To(r.options.from);var h=wo(Tt(To(p.min),a.min,To(a.max)-e)),u=wo(Tt(To(h)+e,To(a.min)+e,a.max));this.options.select={from:h,to:u},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),r.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,o=t.to,r=this.options.select;r.from=e,r.to=o},e.prototype.filterAxes=function(){var t=this.options.select;void 0===t&&(t={});for(var e=this.chart.options.categoryAxis,o=t.from,r=t.to,i=0;i<e.length;i++){var n=e[i];n.pane!==nc&&(n.min=o,n.max=r)}},e.prototype.filter=function(){var t=this.chart,e=this.options.select;if(t.requiresHandlers(["navigatorFilter"])){var o=this.mainAxis(),r={from:e.from,to:e.to};if("category"!==o.options.type){var i=new Ko(X({baseUnit:"fit"},t.options.categoryAxis[0],{categories:[e.from,e.to]}),t.chartService).options;r.from=Oo(i.min,-i.baseUnitStep,i.baseUnit),r.to=Oo(i.max,i.baseUnitStep,i.baseUnit)}this.chart.trigger("navigatorFilter",r)}},e.prototype._zoom=function(t){var e=this,o=e.chart._plotArea.categoryAxis,r=e.selection,i=e.options,n=i.select,a=i.liveDrag,s=this.mainAxis(),l=t.delta;if(r){var p=s.categoryIndex(r.options.from),c=s.categoryIndex(r.options.to),h=this.chart._eventCoordinates(t.originalEvent);t.originalEvent.preventDefault(),Math.abs(l)>1&&(l*=3),c-p>1?(r.zoom(l,h),this.readSelection()):(o.options.min=n.from,n.from=o.scaleRange(-t.delta*this.chart._mousewheelZoomRate(),h).min),a&&(this.filterAxes(),this.redrawSlaves()),r.set(n.from,n.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 o=this.chart._plotArea;this.hint&&this.hint.show(t,e,o.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[ac]},e.prototype.select=function(t,e){var o=this.options.select;return t&&e&&(o.from=this.parseDate(t),o.to=this.parseDate(e),this.filterAxes(),this.filter(),this.redrawSlaves(),this.selection.set(t,e)),{from:o.from,to:o.to}},e.setup=function(t,o){if(void 0===t&&(t={}),void 0===o&&(o={}),!t.__navi){t.__navi=!0;var r=X({},o.navigator,t.navigator),i=t.panes=[].concat(t.panes),n=X({},r.pane,{name:nc});r.visible||(n.visible=!1,n.height=.1),"top"!==t.navigator.position?i.push(n):i.unshift(n),i.forEach((function(t){return t.name=t.name||sc})),e.attachAxes(t,r),e.attachSeries(t,r,o)}},e.attachAxes=function(t,e){var o=e.series||[],r=t.categoryAxis=[].concat(t.categoryAxis),i=t.valueAxis=[].concat(t.valueAxis);r.concat(i).forEach((function(t){return t.pane=t.pane||sc}));var n=0===za(o,Ai).length,a=X({type:"date",pane:nc,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]}}),s=e.categoryAxis;r.push(X({},a,{maxDateGroups:200},s,{name:ac,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),X({},a,s,{name:ac+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),X({},a,s,{name:ac+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),i.push(X({name:ac,pane:nc,majorGridLines:{visible:!1},visible:!1},e.valueAxis))},e.attachSeries=function(t,e,o){for(var r=t.series=t.series||[],i=[].concat(e.series||[]),n=o.seriesColors,a=e.seriesDefaults,s=0;s<i.length;s++)r.push(X({color:n[s%n.length],categoryField:e.dateField,visibleInLegend:!1,tooltip:{visible:!1}},a,i[s],{axis:ac,categoryAxis:ac,autoBind:e.autoBindElements}))},e}(D.Class);function pc(){}const cc=lc;var hc=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,o){var r=Ot(this.element).width||600,i=o,n={seriesDefaults:{categoryField:e.dateField},axisDefaults:{categoryAxis:{name:"default",majorGridLines:{visible:!1},labels:{step:2},majorTicks:{visible:!1},maxDateGroups:Math.floor(r/28)}}};i&&(i=X({},i,n)),cc.setup(e,i),t.prototype.applyDefaults.call(this,e,i)},e.prototype._setElementClass=function(t){I(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=at([].concat(t.series,t.navigator.series),(function(t){return t&&t.visible})).length,o=this._seriesCount!==e;return this._seriesCount=e,o},e.prototype._fullRedraw=function(){var e=this.navigator;e||(e=this.navigator=new cc(this),this.trigger("navigatorCreated",{navigator:e})),e.clean(),e.setRange(),t.prototype._redraw.call(this),e.initSelection()},e.prototype._trackSharedTooltip=function(e){var o=this._plotArea.paneByPoint(e);o&&o.options.name===nc?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),o=0;o<e.length;o++){var r=e[o];r.name===ac?t=r.categories:t&&r.pane===nc&&(r.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 o=this._eventCoordinates(e),r=this._plotArea.paneByPoint(o);return t.prototype._stopChartHandlers.call(this,e)||r&&r.options.name===nc},e.prototype._toggleDragZoomEvents=function(){this._dragZoomEnabled||(this.element.style.touchAction="none",this._dragZoomEnabled=!0)},e}(Wp);Bt(hc,{dateField:"date",axisDefaults:{categoryAxis:{type:"date",baseUnit:"fit",justified:!0},valueAxis:{narrowRange:!0,labels:{format:"C"}}},navigator:{select:{},seriesDefaults:{markers:{visible:!1},tooltip:{visible:!1},highlight:{visible:!1},line:{width:2}},hint:{},visible:!0},tooltip:{visible:!0},legend:{visible:!1}});const uc=hc;var fc=150,dc="arrowPointer",vc="barPointer",yc=.5,gc=Math.PI/180,mc="inside",bc="linear",_c="outside",xc="radialPointer",wc="radialRangePointer";function Cc(t,e){var o=t.getOrigin(),r=t.getSize(),i=$(e);return t.setOrigin([o.x-i.left,o.y-i.top]),t.setSize([r.width+(i.left+i.right),r.height+(i.top+i.bottom)]),t}var Oc=D.drawing.Group,Sc=D.drawing.Path,Pc=D.drawing.Text;function Ac(t,e){var o=t.box,r=t.children[0].box,i=e.border||{},n=e.background||"",a=Sc.fromRect(new D.geometry.Rect([o.x1,o.y1],[o.width(),o.height()]),{stroke:{}}),s=new Pc(t.text,new D.geometry.Point(r.x1,r.y1),{font:e.font,fill:{color:e.color}}),l=Cc(s.bbox().clone(),e.padding),p=Sc.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 Oc;return c.append(a),c.append(p),c.append(s),c}function kc(t,e,o){var r=xt(t.from)?t.from:b,i=xt(t.to)?t.to:m;return t.from=Math.max(Math.min(i,r),e),t.to=Math.min(Math.max(i,r),o),t}function Tc(t,e){var o=$(e);return o.left=-o.left,o.top=-o.top,o.right=-o.right,o.bottom=-o.bottom,Cc(t,o)}var jc=D.drawing.Path,Ec=D.drawing.Surface,Mc=function(t){function e(e,o,r,i){void 0===i&&(i={}),t.call(this),this.element=e,this.theme=r,this.contextService=new qe(this,i),this._originalOptions=X({},this.options,o),this.options=X({},this._originalOptions),this._initTheme(r),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,o=[];if(0===arguments.length){for(var r=0;r<e.length;r++)o.push(e[r].value());return o}if(M(t))for(var i=0;i<t.length;i++)z(t[i])&&e[i].value(t[i]);this._setValueOptions(t)},e.prototype._setValueOptions=function(t){for(var e=[].concat(this.options.pointer),o=[].concat(t),r=0;r<o.length;r++)e[r].value=o[r]},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 D.geometry.Rect([0,0],[t.width,t.height]);this._initSurface(),this.gaugeArea=this._createGaugeArea(),this._createModel();var o=Tc(e.bbox(),this._gaugeAreaMargin);this.reflow(o)},e.prototype.setOptions=function(t,e){this._originalOptions=X(this._originalOptions,t),this.options=X({},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=X({},e,this.options);var o=this.options,r=o.pointer;if(M(r)){for(var i=[],n=0;n<r.length;n++)i.push(X({},e.pointer,r[n]));o.pointer=i}},e.prototype._createGaugeArea=function(){var t=this.options.gaugeArea,e=this.surface.size(),o=t.border||{},r=new D.geometry.Rect([0,0],[e.width,e.height]);return this._gaugeAreaMargin=t.margin||5,o.width>0&&(r=Tc(r,o.width)),jc.fromRect(r,{stroke:{color:o.width?o.color:"",width:o.width,dashType:o.dashType,lineJoin:"round",lineCap:"round"},fill:{color:t.background}})},e.prototype._initSurface=function(){var t=this.options,e=this.surface,o=this._surfaceElement(),r=this._surfaceSize();Ot(o,r),e&&e.options.type===t.renderAs?(this.surface.clear(),this.surface.resize()):(e&&e.destroy(),this.surface=Ec.create(o,{type:t.renderAs}))},e.prototype._surfaceSize=function(){var t=this.options,e=this._getSize();return t.gaugeArea&&X(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(),o=t.offsetWidth,r=t.offsetHeight;return o||(o=e.width),r||(r=e.height),{width:o,height:r}},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}(D.Class);Bt(Mc,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}});const Ic=Mc;var Lc=D.drawing.Path,Rc=D.drawing.Group,Dc=D.geometry.Point;function Bc(t,e){var o,r,i=t.position,n=t.tickX,a=t.tickY;return t.vertical?(o=new Dc(n,i),r=new Dc(n+e.size,i)):(o=new Dc(i,a),r=new Dc(i,a+e.size)),new Lc({stroke:{color:e.color,width:e.width}}).moveTo(o).lineTo(r)}function Nc(t,e,o,r){var i=e.length;if(r.visible)for(var n=o.mirror,a=o.lineBox,s=r.skip;s<i;s+=r.step)s%r.skipUnit!=0&&(o.tickX=n?a.x2:a.x2-r.size,o.tickY=n?a.y1-r.size:a.y1,o.position=e[s],t.append(Bc(o,r)))}var zc=function(t){function e(e,o){var r=e||{};!xt(r.reverse)&&!1===r.vertical&&(o||{}).rtl&&(r=Object.assign({},r,{reverse:!0})),t.call(this,0,1,r,o),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=X({},this.options,t);return(e=X({},e,{labels:{mirror:e.mirror}})).majorUnit=e.majorUnit||te(e.min,e.max),e},e.prototype.initFields=function(){},e.prototype.render=function(){var t=this.elements=new Rc,e=this.renderLabels(),o=this.renderLine(),r=this.renderTicks(),i=this.renderRanges();return t.append(o,e,r,i),t},e.prototype.renderRanges=function(){for(var t=this,e=this.options,o=e.min,r=e.max,i=e.vertical,n=e.labels.mirror,a=e.ranges||[],s=new Rc,l=a.length,p=e.rangeSize||e.minorTicks.size/2,c=0;c<l;c++){var h=kc(a[c],o,r),u=t.getSlot(h.from,h.to),f=i?t.lineBox():u,d=i?u:t.lineBox();i?f.x1-=p*(n?-1:1):d.y2+=p*(n?-1:1),s.append(Lc.fromRect(new D.geometry.Rect([f.x1,d.y1],[f.x2-f.x1,d.y2-d.y1]),{fill:{color:h.color,opacity:h.opacity},stroke:{}}))}return s},e.prototype.renderLabels=function(){for(var t=this.labels,e=this.options,o=new Rc,r=0;r<t.length;r++)o.append(Ac(t[r],e.labels));return o},e.prototype.renderLine=function(){var t=this.options.line,e=this.lineBox(),o=new Rc;if(t.width>0&&t.visible){var r=new Lc({stroke:{color:t.color,dashType:t.dashType,width:t.width}});r.moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),o.append(r)}return o},e.prototype.renderTicks=function(){var t=new Rc,e=this.options,o=e.majorTicks.visible?e.majorUnit:0,r={vertical:e.vertical,mirror:e.labels.mirror,lineBox:this.lineBox()};return Nc(t,this.getMajorTickPositions(),r,e.majorTicks),Nc(t,this.getMinorTickPositions(),r,X({},{skipUnit:o/e.minorUnit},e.minorTicks)),t},e}(tr);Bt(zc,{min:0,max:50,majorTicks:{size:15,align:mc,color:n,width:yc,visible:!0},minorTicks:{size:10,align:mc,color:n,width:yc,visible:!0},line:{width:yc},labels:{position:mc,padding:2},mirror:!1,_alignLines:!1});const Vc=zc;var Hc=function(t){function e(e,o){t.call(this);var r=e.options,i=r.min,n=r.max,a=this.options=X({},this.options,o);a.fill=a.color,this.scale=e,xt(a.value)?a.value=Tt(a.value,i,n):a.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,o=e.value;if(0===arguments.length)return o;var r=this.scale.options,i=r.min,n=r.max;e._oldValue=xt(e._oldValue)?e.value:i,e.value=Tt(t,i,n),this.elements&&this.repaint()},e}(D.Class);Bt(Hc,{color:n});const Uc=Hc;var Fc=function(t){function e(e,o){t.call(this,e,o),this.options=X({track:{visible:xt(o.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,o,r=this.options,i=this.scale,n=i.options,a=n.mirror,s=n.vertical,l=i.lineBox(),p=r.track.size||r.size,c=r.size/2,h=$(r.margin),u=s?h[a?"left":"right"]:h[a?"bottom":"top"];u=a?-u:u,s?(o=new ie(l.x1+u,l.y1,l.x1+u,l.y2),a?o.x1-=p:o.x2+=p,r.shape!==vc&&(t=e=new ie(l.x2+u,l.y1-c,l.x2+u,l.y2+c))):(o=new ie(l.x1,l.y1-u,l.x2,l.y1-u),a?o.y2+=p:o.y1-=p,r.shape!==vc&&(t=e=new ie(l.x1-c,l.y1-u,l.x2+c,l.y1-u))),this.trackBox=o,this.pointerRangeBox=e,this.box=t||o.clone().pad(r.border.width)},e.prototype.getElementOptions=function(){var t=this.options;return{fill:{color:t.color,opacity:t.opacity},stroke:xt(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,o=t.options,r=o.mirror,i=o.vertical,n=$(e.margin);return i?n[r?"left":"right"]:n[r?"bottom":"top"]},e}(Uc);Bt(Fc,{shape:vc,track:{border:{width:1}},color:n,border:{width:1},opacity:1,margin:$(3),animation:{type:vc},visible:!0});const Gc=Fc;var Wc=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,o=t.from,r=t.to,i=t.vertical,n=i?"x1":"y1";t.mirror===i?(o[n]-=e,r[n]-=e):(o[n]+=e,r[n]+=e);var a=this.fromScale=new D.geometry.Point(o.x1,o.y1),s=this.toScale=new D.geometry.Point(r.x1,r.y1);0!==t.duration&&(t.duration=Math.max(a.distanceTo(s)/t.duration*1e3,1))},e.prototype.step=function(t){var e=ht(this.fromScale.x,this.toScale.x,t),o=ht(this.fromScale.y,this.toScale.y,t);this.element.transform(D.geometry.transform().translate(e,o))},e}(D.drawing.Animation);Bt(Wc,{easing:bc,duration:250}),D.drawing.AnimationFactory.current.register(dc,Wc);const Xc=Wc;var Kc=D.geometry.Point,Yc=D.drawing.Path,qc=function(t){function e(e,o){t.call(this,e,o),xt(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,o=e/2,r=t.options.mirror?-1:1;return t.options.vertical?[new Kc(0,0-o),new Kc(0-r*e,0),new Kc(0,0+o)]:[new Kc(0-o,0),new Kc(0,0+r*e),new Kc(0+o,0)]},e.prototype.repaint=function(){var t=this.scale,e=this.options,o=new Xc(this.elements,X(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&&(o.options.duration=0),o.setup(),o.play()},e.prototype.render=function(){var t=this.scale,e=this.options,o=this.getElementOptions(),r=this.pointerShape(e.value);e.animation.type=dc;var i=new Yc({stroke:o.stroke,fill:o.fill}).moveTo(r[0]).lineTo(r[1]).lineTo(r[2]).close(),n=t.getSlot(e.value);return i.transform(D.geometry.transform().translate(n.x1,n.y1)),this.elements=i,i},e}(Gc);const Zc=qc;var Qc=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?E:j,o=this.to=t.newPoints[0][e],r=this.from=t.oldPoints[0][e];0!==t.duration&&(t.duration=Math.max(Math.abs(o-r)/t.speed*1e3,1)),this._set(r)},e.prototype.step=function(t){var e=ht(this.from,this.to,t);this._set(e)},e.prototype._set=function(t){var e="set"+this.axis.toUpperCase(),o=this.options.newPoints;o[0][e](t),o[1][e](t)},e}(D.drawing.Animation);Bt(Qc,{easing:bc,speed:250}),D.drawing.AnimationFactory.current.register(vc,Qc);const $c=Qc;var Jc=D.drawing.Group,th=D.drawing.Path,eh=function(t){function e(e,o){t.call(this,e,o),xt(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,o=this.options,r=e.options,i=r.mirror,n=r.vertical,a=i===n?-1:1,s=o.size*a,l=e.getSlot(e.options.min),p=e.getSlot(t),c=n?E:j,h=n?j:E,u=this._margin()*a,f=new D.geometry.Point;f[c]=l[c+"1"],f[h]=l[h+"1"];var d=new D.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(s,0),y.translate(s,0)):(v.translate(0,s),y.translate(0,s)),[f,d,v,y]},e.prototype.repaint=function(){var t=this.scale,e=this.options,o=this.pointerShape(e.value),r=this.pointerPath,i=this.pointerShape(e._oldValue);r.moveTo(o[0]).lineTo(o[1]).lineTo(o[2]).lineTo(o[3]).close();var n=new $c(r,X(e.animation,{reverse:t.options.reverse,vertical:t.options.vertical,oldPoints:[i[1],i[2]],newPoints:[o[1],o[2]]}));!1===e.animation.transitions&&(n.options.duration=0),n.setup(),n.play()},e.prototype.render=function(){var t=new Jc,e=this.getElementOptions();this.options.track.visible&&t.append(this.renderTrack());var o=this.pointerPath=new th({stroke:e.stroke,fill:e.fill});return t.append(o),this.elements=t,t},e.prototype.renderTrack=function(){var t=this.options.track,e=t.border||{},o=this.trackBox.clone().pad(e.width||0);return new th.fromRect(o.toRect(),{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.width?e.color||t.color:"",width:e.width,dashType:e.dashType}})},e}(Gc);const oh=eh;var rh=D.drawing.Group,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.reflow=function(t){var e=this.pointers,o=t.origin.x,r=t.origin.y,i=new ie(o,r,o+t.width(),r+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 rh,e=this.scale.render(),o=this.pointers;t.append(this.gaugeArea),t.append(e);for(var r=0;r<o.length;r++){var i=o[r];t.append(i.render()),i.value(i.options.value)}this._visuals=t},e.prototype._createModel=function(){var t=this.options,e=this.scale=new Vc(t.scale,this.contextService);this.pointers=[];var o=t.pointer;o=M(o)?o:[o];for(var r=0;r<o.length;r++){var i=X({},o[r],{animation:{transitions:t.transitions}}),n="arrow"===i.shape?Zc:oh;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,o=this.scale,r=this.pointers,i=t.center(),n=r[0].box.clone().wrap(o.box),a=0;a<r.length;a++)n.wrap(r[a].box.clone());return o.options.vertical?(e=n.width()/2,n=new ie(i.x-e,t.y1,i.x+e,t.y2)):(e=n.height()/2,n=new ie(t.x1,i.y-e,t.x2,i.y+e)),n},e.prototype._alignElements=function(){for(var t,e=this.scale,o=this.pointers,r=e.box,i=o[0].box.clone().wrap(e.box),n=this.bbox,a=0;a<o.length;a++)i.wrap(o[a].box.clone());e.options.vertical?(t=n.center().x-i.center().x,e.reflow(new ie(r.x1+t,n.y1,r.x2+t,n.y2))):(t=n.center().y-i.center().y,e.reflow(new ie(r.x1,r.y1+t,r.x2,r.y2+t)));for(var s=0;s<o.length;s++)o[s].reflow(this.bbox)},e.prototype._shrinkScaleWidth=function(t){var e=this.scale;if(!e.options.vertical){var o=e.contentBox().width()-t.width();o>0&&(e.box.shrink(o,0),e.box.alignTo(t,"center"),e.reflow(e.box))}},e.prototype._shrinkElements=function(){for(var t=this.scale,e=this.pointers,o=t.box.clone(),r=t.options.vertical?"y":"x",i=e[0].box,n=0;n<e.length;n++)i.wrap(e[n].box.clone());o[r+1]+=Math.max(o[r+1]-i[r+1],0),o[r+2]-=Math.max(i[r+2]-o[r+2],0),t.reflow(o);for(var a=0;a<e.length;a++)e[a].reflow(this.bbox)},e}(Ic);Bt(ih,{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}});const nh=ih;var ah=180,sh=D.drawing.Arc,lh=D.drawing.Path,ph=D.drawing.Group;function ch(t,e,o,r){var i=new ph,n=t.center,a=t.getRadiusX();if(r.visible)for(var s=0;s<e.length;s++){var l=t.pointAt(e[s]),p=new D.geometry.Point(n.x+a-r.size,n.y).rotate(e[s],n);i.append(new lh({stroke:{color:r.color,width:r.width}}).moveTo(l).lineTo(p))}return i}function hh(t,e,o,r){return{from:t,to:e,color:o,opacity:r}}var uh=function(t){function e(e,o){t.call(this,0,1,e,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=X({},this.options,t);return e.majorUnit=e.majorUnit||te(e.min,e.max),e.minorUnit=e.minorUnit||e.majorUnit/10,e},e.prototype.initFields=function(){},e.prototype.render=function(t,e){var o=this.renderArc(t,e);this.bbox=o.bbox(),this.labelElements=this.renderLabels(),this.ticks=this.renderTicks(),this.ranges=this.renderRanges()},e.prototype.reflow=function(t){var e=t.center(),o=Math.min(t.height(),t.width())/2;if(!xt(this.bbox))return this.render(e,o);this.bbox=this.arc.bbox(),this.radius(this.arc.getRadiusX()),this.repositionRanges(),this.renderLabels()},e.prototype.slotAngle=function(t){var e=this.options,o=e.min,r=e.max,i=e.reverse,n=e.startAngle,a=e.endAngle,s=a-n;return(i?a-(t-o)/(r-o)*s:(t-o)/(r-o)*s+n)+ah},e.prototype.hasRanges=function(){var t=this.options.ranges;return t&&t.length},e.prototype.ticksSize=function(){var t=this.options,e=t.majorTicks,o=t.minorTicks,r=0;return e.visible&&(r=e.size),o.visible&&(r=Math.max(o.size,r)),r},e.prototype.labelsCount=function(){var e=t.prototype.labelsCount.call(this),o=this.options;return o.endAngle-o.startAngle>=360&&o.max%o.majorUnit==0&&(e-=1),e},e.prototype.renderLabels=function(){var t=this,e=this.options,o=this.arc.clone(),r=o.getRadiusX(),i=this.tickAngles(o,e.majorUnit),n=e.rangeSize=e.rangeSize||.1*r,a=new ph,s=.05*r;xt(e.rangeDistance)?s=e.rangeDistance:e.rangeDistance=s;var l=e.labels,p=l.position===mc,c=xt(this.labelElements);p&&(r-=this.ticksSize(),this.hasRanges()&&!c&&(r-=n+s),o.setRadiusX(r).setRadiusY(r));for(var h=this.labels,u=h.length,f=$(l.padding),d=(f.left+f.right)/2,v=(f.top+f.bottom)/2,y=0;y<u;y++){var g=h[y],m=g.box.width()/2,b=g.box.height()/2,_=i[y],x=(_-ah)*gc,w=o.pointAt(_),C=w.x+Math.cos(x)*(m+d)*(p?1:-1),O=w.y+Math.sin(x)*(b+v)*(p?1:-1);g.reflow(new ie(C-m,O-b,C+m,O+b));var S=new D.geometry.Point(g.box.x1,g.box.y1),P=void 0;if(c){var A=(P=t.labelElements.children[y]).bbox().origin,k=P.transform()||D.geometry.transform();k.translate(S.x-A.x,S.y-A.y),P.transform(k)}else P=Ac(g,e.labels),a.append(P);t.bbox=D.geometry.Rect.union(t.bbox,P.bbox())}return a},e.prototype.repositionRanges=function(){var t=this.ranges.children;if(t.length>0){var e=this.options,o=e.rangeDistance,r=e.rangeSize,i=this.getRangeRadius();this.options.labels.position===mc&&(i+=r+o);for(var n=i+r/2,a=0;a<t.length;a++)t[a]._geometry.setRadiusX(n).setRadiusY(n);this.bbox=D.geometry.Rect.union(this.bbox,this.ranges.bbox())}},e.prototype.renderRanges=function(){var t=this,e=this.rangeSegments(),o=e.length,r=new ph;if(o){var i=this.options,n=i.rangeSize,a=i.reverse,s=i.rangeDistance,l=this.getRangeRadius();this.radius(this.radius()-n-s);for(var p=0;p<o;p++){var c=e[p],h=t.slotAngle(c[a?"to":"from"]),u=t.slotAngle(c[a?"from":"to"]);u-h!=0&&r.append(t.createRange(h,u,l,c))}}return r},e.prototype.createRange=function(t,e,o,r){var i=this.options.rangeSize,n=new D.geometry.Arc(this.arc.center,{radiusX:o+i/2,radiusY:o+i/2,startAngle:t,endAngle:e});return new sh(n,{stroke:{width:i,color:r.color,opacity:r.opacity,lineCap:r.lineCap}})},e.prototype.rangeSegments=function(){var t=this.options,e=t.ranges||[],o=e.length,r=[];if(o){var i=t.min,n=t.max,a=t.rangePlaceholderColor;r.push(hh(i,n,a));for(var s=0;s<o;s++)for(var l=kc(e[s],i,n),p=r.length,c=0;c<p;c++){var h=r[c];if(h.from<=l.from&&l.from<=h.to){r.push(hh(l.from,l.to,l.color,l.opacity)),h.from<=l.to&&l.to<=h.to&&r.push(hh(l.to,h.to,a,l.opacity)),h.to=l.from;break}}}return r},e.prototype.getRangeRadius=function(){var t=this.arc,e=this.options,o=e.rangeSize,r=e.rangeDistance,i=e.majorTicks.size;return e.labels.position===_c?t.getRadiusX()-i-r-o:t.getRadiusX()-o},e.prototype.renderArc=function(t,e){var o=this.options;return this.arc=new D.geometry.Arc(t,{radiusX:e,radiusY:e,startAngle:o.startAngle+ah,endAngle:o.endAngle+ah})},e.prototype.renderTicks=function(){var t=this.arc,e=this.options,o=t.clone();this.majorTickAngles=this.tickAngles(t,e.majorUnit),this.majorTicks=ch(o,this.majorTickAngles,e.majorUnit,e.majorTicks);var r=new ph;r.append(this.majorTicks);var i=e.majorTicks.size,n=e.minorTicks.size;if(this._tickDifference=i-n,e.labels.position===_c){var a=o.getRadiusX();o.setRadiusX(a-i+n).setRadiusY(a-i+n)}return this.minorTickAngles=this.normalizeTickAngles(this.tickAngles(t,e.minorUnit)),this.minorTicks=ch(o,this.minorTickAngles,e.minorUnit,e.minorTicks),r.append(this.minorTicks),r},e.prototype.normalizeTickAngles=function(t){for(var e=this.options,o=e.majorUnit/e.minorUnit,r=t.length-1;r>=0;r--)r%o==0&&t.splice(r,1);return t},e.prototype.tickAngles=function(t,e){var o=this.options,r=o.reverse,i=o.max-o.min,n=t.endAngle-t.startAngle,a=i/e,s=t.startAngle,l=n/a;r&&(s+=n,l=-l),n>=360&&o.max%e==0&&(a-=1);for(var c=[],h=0;h<a;h++)c.push(Mt(s,p)),s+=l;return Mt(s)<=t.endAngle&&c.push(s),c},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,o){var r=o&&this._tickDifference||0,i=this.arc,n=i.getRadiusX();o&&this.options.labels.position===_c&&0!==r&&(i=this.arc.clone()).setRadiusX(n-r).setRadiusY(n-r);for(var a=0;a<t.length;a++){var s=i.pointAt(e[a]),l=t[a].segments,p=s.x-l[0].anchor().x,c=s.y-l[0].anchor().y;t[a].transform((new D.geometry.transform).translate(p,c))}},e}(tr);Bt(uh,{min:0,max:100,majorTicks:{size:15,align:mc,color:n,width:yc,visible:!0},minorTicks:{size:10,align:mc,color:n,width:yc,visible:!0},startAngle:-30,endAngle:210,labels:{position:mc,padding:2}});const fh=uh;var dh=function(t){function e(e,o){t.call(this,e,o);var r=this.options;r.duration=Math.max(Math.abs(r.newAngle-r.oldAngle)/r.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,o=ht(e.oldAngle,e.newAngle,t);this.element.transform(D.geometry.transform().rotate(o,e.center))},e}(D.drawing.Animation);Bt(dh,{easing:bc,duration:fc}),D.drawing.AnimationFactory.current.register(xc,dh);const vh=dh;var yh=D.drawing.Circle,gh=D.drawing.Group,mh=D.drawing.Path,bh=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(D.geometry.transform().rotate(t,this.center))},e.prototype.repaint=function(){var t=this.scale,e=this.options,o=t.slotAngle(e._oldValue),r=t.slotAngle(e.value);!1===e.animation.transitions?this.setAngle(r):new vh(this.elements,X(e.animation,{oldAngle:o,newAngle:r})).play()},e.prototype.render=function(){var t=this.scale,e=this.options,o=new gh;return!1!==e.animation&&X(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),o.append(this._renderNeedle(),this._renderCap()),this.elements=o,this.setAngle(gc),o},e.prototype.reflow=function(t){var e=this.center=t.center,o=Tt(this.options.length||1,.1,1.5),r=this.radius=t.getRadiusX()*o,i=this.capSize=Math.round(r*this.options.cap.size);this.bbox=D.geometry.Rect.fromPoints(new D.geometry.Point(e.x-i,e.y-i),new D.geometry.Point(e.x+i,e.y+i))},e.prototype._renderNeedle=function(){var t=this.scale.options.minorTicks.size,e=this.center,o=this.options.color,r=new mh({fill:{color:o},stroke:{color:o,width:yc}});return r.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(),r},e.prototype._renderCap=function(){var t=this.options,e=t.cap.color||t.color,o=new D.geometry.Circle(this.center,this.capSize);return new yh(o,{fill:{color:e},stroke:{color:e}})},e}(Uc);Bt(bh,{cap:{size:.05},arrow:{width:16,height:14},animation:{type:xc,duration:fc}});const _h=bh;var xh=D.drawing.Group,wh=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,o=this.pointers;this.scale.reflow(t),this._initialPlotArea=this.scale.bbox;for(var r=0;r<o.length;r++)o[r].reflow(e.scale.arc),e._initialPlotArea=D.geometry.Rect.union(e._initialPlotArea,o[r].bbox);this.fitScale(t),this.alignScale(t),this._buildVisual(this.gaugeArea,o,this.scale),this._draw()},e.prototype._buildVisual=function(t,e,o){var r=this._visuals=new xh;r.append(t),r.append(o.ticks),r.append(o.ranges),this._buildPointers(e),r.append(o.labelElements)},e.prototype._buildPointers=function(t){for(var e=0;e<t.length;e++){var o=t[e];o.render(),this._visuals.append(o.elements),o.value(o.options.value)}},e.prototype.fitScale=function(t){for(var e,o,r,i,n,a=this,s=this.scale.arc,l=this._initialPlotArea,c=Math.abs(this.getDiff(l,t)),h=Mt(c,p),u=Mt(-c,p),f=0,d=0;!(!(d++<100)||(f=n===r?f+1:0)>5||h!==i&&0<=(e=a.getPlotBox(h,t,s))&&e<=2||u!==i&&0<=(r=a.getPlotBox(u,t,s))&&r<=2||(i=e>0&&r>0?2*h:e<0&&r<0?2*u:Mt((h+u)/2||1,p),0<=(o=a.getPlotBox(i,t,s))&&o<=2));)n=r,o>0?(u=i,r=o):(h=i,e=o)},e.prototype.getPlotBox=function(t,e,o){var r=this.scale,i=this.pointers,n=o.getRadiusX(),a=o.clone();a.setRadiusX(n+t).setRadiusY(n+t),r.arc=a,r.reflow(e),this.plotBbox=r.bbox;for(var s=0;s<i.length;s++)i[s].reflow(a),this.plotBbox=D.geometry.Rect.union(this.plotBbox,i[s].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(),o=t.center(),r=e.x-o.x,i=e.y-o.y,n=this.scale,a=this.pointers;n.arc.center.x-=r,n.arc.center.y-=i,n.reflow(t);for(var s=0;s<a.length;s++)a[s].reflow(n.arc),this.plotBbox=D.geometry.Rect.union(n.bbox,a[s].bbox)},e.prototype._createModel=function(){var t=this.options,e=t.pointer,o=this.scale=new fh(t.scale,this.contextService);this.pointers=[];for(var r=M(e)?e:[e],i=0;i<r.length;i++){var n=new _h(o,X({},r[i],{animation:{transitions:t.transitions}}));this.pointers.push(n)}},e}(Ic);Bt(wh,{transitions:!0,gaugeArea:{background:""}});const Ch=wh;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.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,o){var r=this.options.reverse,i=this.slotAngle(r?e:t),n=this.slotAngle(r?t:e),a=this.createRange(i,n,this.getRangeRadius(),o);return this.ranges.append(a),a},e}(fh);Bt(Oh,{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"});const Sh=Oh;var Ph=function(t){function e(e,o){t.call(this,e,o);var r=this.options,i=Math.abs(r.newAngle-r.oldAngle)/r.duration*1e3;r.duration=Tt(i,fc,800);var n=e.elements.options.get("stroke.color"),a=e.currentColor();n!==a&&(this.startColor=new D.Color(n),this.color=new D.Color(a))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this,o=e.options,r=e.startColor,i=e.color,n=ht(o.oldAngle,o.newAngle,t);if(this.element.angle(n),i){var a=Mt(ht(r.r,i.r,t)),s=Mt(ht(r.g,i.g,t)),l=Mt(ht(r.b,i.b,t));this.element.stroke(new D.Color(a,s,l).toHex())}},e}(D.drawing.Animation);Bt(Ph,{easing:bc,duration:fc}),D.drawing.AnimationFactory.current.register(wc,Ph);const Ah=Ph;var kh=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,o=t.slotAngle(e._oldValue),r=t.slotAngle(e.value);this.animation&&this.animation.abort(),!1===e.animation.transitions?(this.angle(r),this.stroke(this.currentColor())):(this.animation=new Ah(this,X(e.animation,{oldAngle:o,newAngle:r})),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&&X(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,o=t.max,r=this.options,i=r.colors,n=r.color,a=r.value,s=z(a)?a: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=o),h<=s&&s<=u)return c}return n},e.prototype.reflow=function(){this.render(),this.bbox=this.elements.bbox()},e}(Uc);Bt(kh,{animation:{type:wc,duration:fc}});const Th=kh;var jh=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 Sh(t.scale,this.contextService),o=new Th(e,X({},{colors:t.colors,color:t.color,value:t.value,opacity:t.opacity,animation:{transitions:t.transitions}}));this.pointers=[o]},e.prototype._buildPointers=function(t){for(var e=0;e<t.length;e++){var o=t[e];o.render(),o.value(o.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 o=this.getSize(),r=this.scale.arc.center,i=r.x-t/2,n=r.y-e/2;if(t<o.width){var a=i+t;i=Math.max(i,0),a>o.width&&(i-=a-o.width)}if(e<o.height){var s=this.scale.bbox,l=s.bottomRight().y,p=n+e;n=Math.max(n,s.origin.y),p>l&&(n-=p-l)}return{left:i,top:n}},e}(Ch);const Eh=jh;var Mh=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}(Eh);const Ih=Mh;var Lh=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,o){var r=xt(t)?String(t):t;return this.initValue(r,e,o),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}(D.Class);Bt(Lh,{quietZoneLength:10,addQuietZone:!0,addCheckSum:!0});var Rh=Object.assign,Dh=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),Rh(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,o=this.getWeightedSum(t,e,this.cCheckSumTotal)%this.checkSumMod;if(this.checksum=String(o),this.addPattern(this.characterMap[o]),++e>=this.kCheckSumMinLength){var r=(o+this.getWeightedSum(t,e,this.kCheckSumTotal))%this.checkSumMod;this.checksum+=r,this.addPattern(this.characterMap[r])}},e.prototype.getWeightedSum=function(t,e,o){for(var r=0,i=0;i<t.length;i++)r+=this.weightedValue(this.getValue(t.charAt(i)),e,i,o);return r},e.prototype.weightedValue=function(t,e,o,r){return((e-o)%r||r)*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),o=this.characterMap[e];this.addPattern(o)},e.prototype.addPattern=function(t){for(var e,o=0;o<t.length;o++)e=parseInt(t.charAt(o),10),this.pattern.push(e),this.totalUnits+=e},e}(Lh);Bt(Dh,{addCheckSum:!0});var Bh=Object.assign,Nh=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),Bh(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}(Lh),zh=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),Bh(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,o){this.width=e,this.height=o,this.value=t,this.dataLength=t.length,this.pattern=[],this.patternString=""},e.prototype.prepareValues=function(){var t,e=this.minBaseUnitLength,o=this.minRatio,r=Math.ceil(Math.max(.15*this.width,24)),i=this.maxRatio;if(this.height<r)throw new Error("Insufficient height for Code39 encoding: the current height is "+this.height+"px and the minimum height is "+r+"px.");for(t=this.getBaseUnit(i);t<e&&i>o;)i=parseFloat((i-.1).toFixed(1)),t=this.getBaseUnit(i);if(t<e){var n=Math.ceil(this.getBaseWidth(o)*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}(Nh);Bt(zh,{addCheckSum:!1});var Vh={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,o=this,r=0;r<this.extendedMappings.length;r++)if(e=o.extendedMappings[r].call(o,t)){for(var i=0;i<e.length;i++){var n=e[i];o.addBase(n)}return void(o.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,o,r=this;if(this.specialAsciiCodes[t]){e=[];for(var i=0;i<this.specialAsciiCodes[t].length;i++)e.push(r.characterMap[r.shiftCharacters[3]]),e.push(r.characterMap[r.specialAsciiCodes[t][i]])}else o=6*Math.floor(t/32)+(t-27)%32+64,e=[this.characterMap[this.shiftCharacters[3]],this.characterMap[String.fromCharCode(o)]];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"]},Hh=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),X(this,Vh,{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}(zh),Uh=Object.assign,Fh=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),Uh(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,o){this.value=t,this.width=e,this.height=o,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,o=this._getCheckValues();this.checksum=o.join("");for(var r=0;r<o.length;r++)t=e.characterMap[e._findCharacterByValue(o[r])],e.addPattern(t.pattern)},e.prototype._getCheckValues=function(){var t,e,o=this,r=this.values,i=r.length,n=0;for(e=i-1;e>=0;e--)n+=o.weightedValue(r[e],i-e,o.cCheckSumTotal);for(t=n%this.checkSumMod,n=this.weightedValue(t,1,this.kCheckSumTotal),e=i-1;e>=0;e--)n+=o.weightedValue(r[e],i-e+1,o.kCheckSumTotal);return[t,n%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,o){return(e%o||o)*t},e.prototype.addPattern=function(t){for(var e,o=0;o<t.length;o++)e=parseInt(t.charAt(o),10),this.pattern.push(e)},e}(Nh),Gh=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),X(this,Vh,{name:"Code 93 extended",pushCheckSum:function(){var t,e=this,o=this._getCheckValues();this.checksum=o.join("");for(var r=0;r<o.length;r++)if(t=o[r],e.shiftValuesAsciiCodes[t])e.addExtended(e.shiftValuesAsciiCodes[t]);else{var i=e._findCharacterByValue(t);e.addPattern(e.characterMap[i].pattern)}}})},e}(Fh),Wh=/^\d+$/,Xh=Object.assign,Kh=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),Xh(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,o){this.height=o,this.width=e,this.baseHeight=o/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(Wh.test(t)||this.invalidCharacterError(t.match(/[^0-9]/)[0]),!ct(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,o=this,r=0;r<t.length;r++)e=o.height-o.baseHeight*t.charAt(r),o.pattern.push({width:1,y1:e,y2:o.height}),o.pattern.push(1)},e}(Lh),Yh=/^\d+$/,qh=/^[a-z0-9]+$/i,Zh=Object.assign,Qh=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}(D.Class),$h=function(t){function e(e,o){t.call(this,e),this.states=o,this._initMoves(o)}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),X(this,{FNC4:"FNC4",SHIFT:98})},e.prototype.addStart=function(){this.encoding.addPattern(this.START)},e.prototype.is=function(t,e){var o=t.charCodeAt(e);return this.isCode(o)},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,o=this.states,r=t.value,i=r.length;if(ct("C",o)){var n=r.substr(t.index).match(/\d{4,}/g);n&&(i=r.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=[],ct(this.FNC4,t)&&this._moves.push(this._moveFNC),ct(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}(Qh),Jh={};Jh.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),Zh(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}($h),Jh.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),Zh(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}($h),Jh.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),Zh(this,{key:"C",MOVE:99,START:105})},e.prototype.addStart=function(){this.encoding.addPattern(this.START)},e.prototype.is=function(t,e){var o=au(t,e,4);return(e+4<=t.length||2===t.length)&&Yh.test(o)},e.prototype.move=function(){this.encoding.addPattern(this.MOVE)},e.prototype.pushState=function(t){for(var e;(e=au(t.value,t.index,2))&&Yh.test(e)&&2===e.length;)this.encoding.addPattern(parseInt(e,10)),t.index+=2},e.prototype.getValue=function(t){return t},e}(Qh),Jh.FNC4=function(t){function e(e,o){t.call(this,e),this._initSubStates(o)}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),Zh(this,{key:"FNC4",dependentStates:["A","B"]})},e.prototype.addStart=function(t){var e=t.value.charCodeAt(0)-128,o=this._getSubState(e);this.encoding[o].addStart()},e.prototype.is=function(t,e){var o=t.charCodeAt(e);return this.isCode(o)},e.prototype.isCode=function(t){return 128<=t&&t<256},e.prototype.pushState=function(t){var e,o=this._initSubState(t),r=this.encoding,i=o.value.length;if(t.index+=i,i<3)for(;o.index<i;o.index++)e=o.value.charCodeAt(o.index),o.state=this._getSubState(e),o.previousState!==o.state&&(o.previousState=o.state,r[o.state].move(o)),r.addPattern(r[o.state].MOVE),r.addPattern(r[o.state].getValue(e));else o.state!==o.previousState&&r[o.state].move(o),this._pushStart(o),r.pushData(o,this.subStates),t.index<t.value.length&&this._pushStart(o);t.fnc=!0,t.state=o.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++)ct(t[e],this.dependentStates)&&this.subStates.push(t[e])},e.prototype._getSubState=function(t){for(var e=this,o=0;o<this.subStates.length;o++)if(e.encoding[e.subStates[o]].isCode(t))return e.subStates[o]},e.prototype._getAll=function(t,e){for(var o,r="",i=e;(o=t.charCodeAt(i++))&&this.isCode(o);)r+=String.fromCharCode(o-128);return r},e}(Qh),Jh.FNC1=function(t){function e(e,o){t.call(this,e),this.states=o}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),Zh(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 ct(this.key,this.states)},e.prototype.pushState=function(t){var e,o,r,i=this,n=this.encoding,a=t.value.replace(/\s/g,""),s=new RegExp("["+this.startAI+this.endAI+"]","g"),l=t.index,p={state:this.startState};for(n.addPattern(this.START);;){if(p.index=0,(e=(r=a.charAt(l)===i.startAI?2:0)>0?i.getBySeparator(a,l):i.getByLength(a,l)).ai.length)o=l+r+e.id.length+e.ai.length;else if((o=a.indexOf(i.startAI,l+1))<0){if(l+e.ai.max+e.id.length+r<a.length)throw new Error("Separators are required after variable length identifiers");o=a.length}if(p.value=a.substring(l,o).replace(s,""),i.validate(e,p.value),n.pushData(p,i.dependentStates),o>=a.length)break;l=o,p.state!==i.startState&&(n[i.startState].move(p),p.state=i.startState),e.ai.length||n.addPattern(i.START)}t.index=t.value.length},e.prototype.validate=function(t,e){var o=e.substr(t.id.length),r=t.ai;if(!r.type&&!Yh.test(o))throw new Error("Application identifier "+t.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"===r.type&&!qh.test(o))throw new Error("Application identifier "+t.id+" is alphanumeric only but contains non alphanumeric character(s).");if(r.length&&r.length!==o.length)throw new Error("Application identifier "+t.id+" must be "+r.length+" characters long.");if(r.min&&r.min>o.length)throw new Error("Application identifier "+t.id+" must be at least "+r.min+" characters long.");if(r.max&&r.max<o.length)throw new Error("Application identifier "+t.id+" must be at most "+r.max+" characters long.")},e.prototype.getByLength=function(t,e){for(var o,r,i=2;i<=4;i++)if(o=au(t,e,i),r=this.getApplicationIdentifier(o)||this.getApplicationIdentifier(o.substring(0,o.length-1)))return{id:o,ai:r};this.unsupportedAIError(o)},e.prototype.unsupportedAIError=function(t){throw new Error("'"+t+"' is not a supported Application Identifier")},e.prototype.getBySeparator=function(t,e){var o=t.indexOf(this.startAI,e),r=t.indexOf(this.endAI,o),i=t.substring(o+1,r),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,o=e.multiKey;if(e[t])return e[t];for(var r=0;r<o.length;r++){if(o[r].ids&&ct(t,o[r].ids))return o[r].type;if(o[r].ranges)for(var i=o[r].ranges,n=0;n<i.length;n++)if(i[n][0]<=t&&t<=i[n][1])return o[r].type}},e}(Qh);var tu=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),Zh(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=this,e=0;e<this.states.length;e++)t[t.states[e]]=new Jh[t.states[e]](t,t.states)},e.prototype.initValue=function(t,e,o){this.pattern=[],this.value=t,this.width=e,this.height=o,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(var o=this;o[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=o.getNextState(t,e),o[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,o=this.characterMap[t].toString(),r=0;r<o.length;r++)e=parseInt(o.charAt(r),10),this.pattern.push(e),this.totalUnits+=e;this.checkSum+=t*this.position++},e.prototype.getNextState=function(t,e){for(var o=0;o<e.length;o++)if(this[e[o]].is(t.value,t.index))return e[o];this.invalidCharacterError(t.value.charAt(t.index))},e}(Lh),eu=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),Zh(this,{name:"Code 128 A",states:["A"]})},e}(tu),ou=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),Zh(this,{name:"Code 128 B",states:["B"]})},e}(tu),ru=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),Zh(this,{name:"Code 128 C",states:["C"]})},e}(tu),iu=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),Zh(this,{name:"Code 128",states:["C","B","A","FNC4"]})},e}(tu),nu=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),Zh(this,{name:"Code GS1-128",states:["FNC1","C","B"]})},e}(tu);function au(t,e,o){return t.substring(e,e+o)}var su=Object.assign,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.initProperties=function(){t.prototype.initProperties.call(this),su(this,{characterMap:["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221"],START:"21",STOP:"121",checkSumType:"",checkSums:fu})},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,e=this.checkSums[this.checkSumType].call(this.checkSums,this.value);this.checksum=e.join("");for(var o=0;o<e.length;o++)t.checkSumLength++,t.addPattern(t.characterMap[e[o]])},e}(Lh),pu=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),su(this,{name:"MSI Modulo10",checkSumType:"Modulo10"})},e}(lu),cu=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),su(this,{name:"MSI Modulo11",checkSumType:"Modulo11"})},e}(lu),hu=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),su(this,{name:"MSI Modulo10 Modulo10",checkSumType:"Modulo10Modulo10"})},e}(lu),uu=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),su(this,{name:"MSI Modulo11 Modulo10",checkSumType:"Modulo11Modulo10"})},e}(lu),fu={Modulo10:function(t){var e,o,r,i=[0,""],n=t.length%2;for(e=0;e<t.length;e++)i[(e+n)%2]+=parseInt(t.charAt(e),10);for(r=i[0],o=(2*i[1]).toString(),e=0;e<o.length;e++)r+=parseInt(o.charAt(e),10);return[(10-r%10)%10]},Modulo11:function(t){for(var e,o=0,r=t.length,i=0;i<r;i++)o+=(((r-i)%6||6)+1)*t.charAt(i);return 10!=(e=(11-o%11)%11)?[e]:[1,0]},Modulo11Modulo10:function(t){var e,o=this.Modulo11(t);return e=t+o[0],o.concat(this.Modulo10(e))},Modulo10Modulo10:function(t){var e,o=this.Modulo10(t);return e=t+o[0],o.concat(this.Modulo10(e))}},du=Object.assign,vu=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),du(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,o){var r=String(t);if(12!==r.length||/\D/.test(r))throw new Error('The value of the "EAN13" encoding should be 12 symbols');this.pattern=[],this.options.height=o,this.baseUnit=e/(95+this.quietZoneLength),this.value=r,this.checksum=this.calculateChecksum(),this.leftKey=r[0],this.leftPart=r.substr(1,6),this.rightPart=r.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 o=this,r=0;r<t.length;r++)e&&parseInt(o.keyTable[e].charAt(r),10)?o.addPieces(Array.prototype.slice.call(o.characterMap.digits[t.charAt(r)]).reverse(),!0):o.addPieces(o.characterMap.digits[t.charAt(r)],!0)},e.prototype.addPieces=function(t,e){for(var o=this,r=0;r<t.length;r++)e?o.pattern.push({y1:0,y2:.95*o.options.height,width:t[r]}):o.pattern.push(t[r])},e.prototype.calculateChecksum=function(){for(var t=0,e=0,o=this.value.split("").reverse().join(""),r=0;r<o.length;r++)r%2?e+=parseInt(o.charAt(r),10):t+=parseInt(o.charAt(r),10);return(10-(3*t+e)%10)%10},e}(Lh),yu=Object.assign,gu=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),yu(this,{name:"EAN 8"})},e.prototype.initValue=function(t,e,o){if(7!==t.length||/\D/.test(t))throw new Error("Invalid value provided");this.value=t,this.options.height=o,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}(vu),mu={code11:Dh,code39:zh,code39extended:Hh,code93:Fh,code93extended:Gh,code128:iu,code128a:eu,code128b:ou,code128c:ru};function bu(t,e){var o=t.style.display;"canvas"===e&&(t.style.display="block");var r={width:t.clientWidth,height:t.clientHeight};return t.style.display=o,r}mu["gs1-128"]=nu,mu.msimod10=pu,mu.msimod11=cu,mu.msimod1010=hu,mu.msimod1110=uu,mu.postnet=Kh,mu.ean8=gu,mu.ean13=vu;var _u=function(t){function e(e,o,r){void 0===r&&(r=$t),t.call(this),this.options=X({},this.options,o),this.element=e,this.onError=r,this._initElement(),this._initSurface(),this._setOptions(o),o&&xt(o.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(){I(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 D.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,o=this.options,r=o.value,i=o.text,n=$(i.margin),a=this._getSize(),s=o.border||{},l=this.encoding,p=new ie(0,0,a.width,a.height).unpad(s.width).unpad(o.padding),c=p.height(),h=new D.drawing.Group;this.contentBox=p,h.append(this._getBackground(a)),i.visible&&(c-=D.drawing.util.measureText(r,{font:i.font}).height+n.top+n.bottom);try{t=l.encode(r,p.width(),c)}catch(t){return this.onError(t),h}return i.visible&&(e=r,o.checksum&&xt(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=bu(this.element,this.options.renderAs),e=new D.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(!xt(t))return this.options.value;this.options.value=String(t),this.redraw()},e.prototype._getBands=function(t,e){for(var o,r,i=this.contentBox,n=i.x1,a=new D.drawing.Group,s=0;s<t.length;s++){if(o=(r=K(t[s])?t[s]:{width:t[s],y1:0,y2:this.barHeight}).width*e,s%2){var l=D.geometry.Rect.fromPoints(new D.geometry.Point(n,r.y1+i.y1),new D.geometry.Point(n+o,r.y2+i.y1)),p=D.drawing.Path.fromRect(l,{fill:{color:this.options.color},stroke:null});a.append(p)}n+=o}return a},e.prototype._getBackground=function(t){var e=this.options,o=e.border||{},r=new ie(0,0,t.width,t.height).unpad(o.width/2);return D.drawing.Path.fromRect(r.toRect(),{fill:{color:e.background},stroke:{color:o.width?o.color:"",width:o.width,dashType:o.dashType}})},e.prototype._getText=function(t){var e=this.options.text,o=this._textbox=new Ee(t,{font:e.font,color:e.color,align:"center",vAlign:"bottom",margin:e.margin});return o.reflow(this.contentBox),o.renderVisual(),o.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),!mu[this.type])throw new Error("Encoding '"+this.type+"' is not supported.");this.encoding=new mu[this.type],this.options=X({},this.options,t)},e}(D.Class);Bt(_u,{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}});const xu=_u;var wu={width:500,height:100};const Cu=function(t,e){if(void 0===e&&(e=wu),!t)throw new Error("Please specify barcode type to validate.");var o=t.toLowerCase(),r="";if("upca"===o?(o="ean13",r="0"):"upce"===o&&(o="ean8",r="0"),!mu[o])throw new Error("Encoding '"+t+"' is not supported.");return function(t,e,o){return function(r){try{t.encode(o+r,e.width,e.height)}catch(t){return{valid:!1,error:t}}return{valid:!0}}}(new mu[o],e,r)};var Ou=Object.assign;function Su(t,e){for(var o=[],r=0;r<t.length;)o.push(t.substring(r,r+e)),r+=e;return o}function Pu(t,e){var o=Number(t).toString(2);return o.length<e&&(o=new Array(e-o.length+1).join(0)+o),o}function Au(t){return parseInt(t,2)}var ku=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(var t=this;void 0!==this.matrix[this.row][this.column];)t.move(),(t.row<0||t.row>=t.matrix.length)&&(t.dir=-t.dir,t.startColumn-=8!==t.startColumn?2:3,t.column=t.startColumn,t.row=t.dir<0?t.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}(D.Class),Tu=function(t){function e(e,o){t.call(this),this.dataString=e,this.version=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(D.Class),ju=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 o=function(t){var e,o=[],r=0,i=t;for(o.push(yf(i,of,rf,nf,e)),e=o[0].mode,i=i.substr(o[0].modeString.length);i.length>0;){var n=yf(i,af,sf,lf,e);n.mode!==e?(e=n.mode,o.push(n),r++):o[r].modeString+=n.modeString,i=i.substr(n.modeString.length)}return o}(t),r=function(t){for(var e=0,o=0;o<t.length;o++)e+=Ru[t[o].mode].getStringBitsLength(t[o].modeString.length);return Math.ceil(e/8)}(o),i=gf(r,e),n=function(t,e){for(var o="",r=0;r<t.length;r++)o+=Ru[t[r].mode].encode(t[r].modeString,e);return o}(o,i);return new Tu(n,i)},e}(D.Class),Eu=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(){Ou(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+Pu(t,this.getBitsCharacterCount(e))},e.prototype.encode=function(){},e.prototype.getStringBitsLength=function(){},e.prototype.getValue=function(){},e}(D.Class),Mu=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),Ou(this,{bitsInCharacterCount:[10,12,14],modeIndicator:"0001"})},e.prototype.getValue=function(t){return parseInt(t,10)},e.prototype.encode=function(t,e){var o,r=Su(t,3),i=this.getModeCountString(t.length,e);for(o=0;o<r.length-1;o++)i+=Pu(r[o],10);return i+Pu(r[o],1+3*r[o].length)},e.prototype.getStringBitsLength=function(t,e){var o=t%3;return 4+this.getBitsCharacterCount(e)+10*Math.floor(t/3)+3*o+(0===o?0:1)},e}(Eu),Iu=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),Ou(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 o,r=Su(t,2),i=this.getModeCountString(t.length,e);for(o=0;o<r.length-1;o++)i+=Pu(45*this.getValue(r[o].charAt(0))+this.getValue(r[o].charAt(1)),11);return i+Pu(2===r[o].length?45*this.getValue(r[o].charAt(0))+this.getValue(r[o].charAt(1)):this.getValue(r[o].charAt(0)),1+5*r[o].length)},e.prototype.getStringBitsLength=function(t,e){return 4+this.getBitsCharacterCount(e)+11*Math.floor(t/2)+t%2*6},e}(Eu),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.initProperties=function(){t.prototype.initProperties.call(this),Ou(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 o=this.getModeCountString(t.length,e),r=0;r<t.length;r++)o+=Pu(this.getValue(t.charAt(r)),8);return o},e.prototype.getStringBitsLength=function(t,e){return 4+this.getBitsCharacterCount(e)+8*t},e}(Eu),Ru={};Ru.numeric=new Mu,Ru.alphanumeric=new Iu,Ru.byte=new Lu;var Du=function(t){function e(){t.call(this),this.initProperties(),this.mode=Ru[this.encodingMode]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){Ou(this,{encodingMode:"byte",utfBOM:"111011111011101110111111",initialModeCountStringLength:20,ranges:[128,2048,65536,2097152,67108864]})},e.prototype.getEncodingResult=function(t,e){var o=this.encode(t),r=gf(this.getDataCodewordsCount(o),e),i=this.mode.getModeCountString(o.length/8,r)+o;return new Tu(i,r)},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,o=0;o<t.length;o++)e+=this.encodeCharacter(t.charCodeAt(o));return e},e.prototype.encodeCharacter=function(t){var e=this.getBytesCount(t),o=e-1,r="";if(1===e)r=Pu(t,8);else{for(var i=8-e,n=0;n<o;n++)r=Pu(t>>6*n&63|128,8)+r;r=(t>>6*o|255>>i<<i).toString(2)+r}return r},e.prototype.getBytesCount=function(t){for(var e=this.ranges,o=0;o<e.length;o++)if(t<e[o])return o+1},e}(D.Class),Bu=[{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}}],Nu="0000",zu="numeric",Vu="alphanumeric",Hu="byte",Uu={1:0},Fu={0:1},Gu={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},Wu=[1,0,1,1,1],Xu=[1,0,1],Ku={L:"01",M:"00",Q:"11",H:"10"},Yu=["11101100","00010001"],qu=93,Zu=[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}],Qu=/^\d+/,$u="A-Z0-9 $%*+./:-",Ju=new RegExp("^[A-Z $%*+./:-]+"),tf=new RegExp("^["+$u+"]+"),ef=new RegExp("^[^"+$u+"]+"),of=8,rf=5,nf=8,af=17,sf=9,lf=16,pf=[[1,0],[1,25,0]];function cf(t,e,o,r){for(var i=0;i<t.length;i++)t[i][o][r]=e}function hf(t,e,o,r){for(var i=0;i<Zu.length;i++)t[i][o][r]=Zu[i](o,r)?1^e:parseInt(e,10)}function uf(t,e){for(var o=[],r=t.length-2;r>=0;r--)o[r]=t[r]^e[r];return o}function ff(t,e){for(var o=[],r=0;r<t.length;r++)for(var i=0;i<e.length;i++)void 0===o[r+i]?o[r+i]=(t[r]+(e[i]>=0?e[i]:0))%255:o[r+i]=Uu[Fu[o[r+i]]^Fu[(t[r]+e[i])%255]];return o}function df(t,e){var o=[],r=t.length-1;do{o[r]=Fu[(t[r]+e)%255],r--}while(void 0!==t[r]);return o}function vf(t,e){var o,r,i=pf[e-1],n=new Array(e).concat(t),a=new Array(n.length-i.length).concat(i),s=t.length,l=[];for(r=0;r<s;r++)o=df(a,Uu[n[n.length-1]]),a.splice(0,1),n=uf(o,n);for(r=n.length-1;r>=0;r--)l[e-1-r]=Pu(n[r],8);return l}function yf(t,e,o,r,i){var n,a,s=Qu.exec(t),l=s?s[0]:"",p=Ju.exec(t),c=p?p[0]:"",h=tf.exec(t),u=h?h[0]:"";return l&&(l.length>=e||t.length===l.length||l.length>=o&&!tf.test(t.charAt(l.length)))?(n=zu,a=l):u&&(t.length===u.length||u.length>=r||i===Vu)?(n=Vu,a=l||c):(n=Hu,a=u?u+ef.exec(t.substring(u.length))[0]:ef.exec(t)[0]),{mode:n,modeString:a}}function gf(t,e){var o=0,r=Bu.length-1,i=Math.floor(Bu.length/2);do{t<Bu[i][e].totalDataCodewords?r=i:o=i,i=o+Math.floor((r-o)/2)}while(r-o>1);return t<=Bu[o][e].totalDataCodewords?i+1:r+1}function mf(t,e,o){var r=Au(e),i=e.length-1,n=t<<i,a=Pu(t,o-i),s=function(t,e){var o=e.toString(2).length,r=t.toString(2).length,i=t;do{r=(i^=e<<r-o).toString(2).length}while(r>=o);return i}(n,r);return a+Pu(s,i)}function bf(t,e){return parseInt(t.charAt(e),10)}function _f(t,e){var o,r,i=t[0],n=0,a=e.length;for(o=0,r=8;o<=8;o++)6!==o&&cf(t,bf(e,a-1-n++),o,r);for(o=8,r=7;r>=0;r--)6!==r&&cf(t,bf(e,a-1-n++),o,r);for(n=0,r=i.length-1,o=8;r>=i.length-8;r--)cf(t,bf(e,a-1-n++),o,r);for(cf(t,1,i.length-8,8),o=i.length-7,r=8;o<i.length;o++)cf(t,bf(e,a-1-n++),o,r)}function xf(t,e){for(var o,r,i,n=t[0].length,a=n-11,s=n-11,l=0;l<e.length;l++)o=Math.floor(l/3),r=l%3,cf(t,i=bf(e,e.length-l-1),0+o,a+r),cf(t,i,s+r,0+o)}function wf(t,e,o,r){for(var i,n=e.length+2,a=e.length+1,s=0;s<e.length;s++)for(var l=s;l<n-s;l++)cf(t,i=e[s],o+l,r+s),cf(t,i,o+s,r+l),cf(t,i,o+a-l,r+a-s),cf(t,i,o+a-s,r+a-l)}function Cf(t,e,o,r){var i=o,n=r,a=t[0];do{cf(t,0,i,r),cf(t,0,o,n),i+=e[0],n+=e[1]}while(i>=0&&i<a.length)}function Of(t,e,o,r,i){e[t][r]=(e[t][r]<<1^i)%128,e[t][r]===qu&&(o[t]+=40)}function Sf(t,e,o,r,i,n){o[t][n]===r?i[t][n]++:(o[t][n]=r,i[t][n]>=5&&(e[t]+=3+i[t][n]-5),i[t][n]=1)}function Pf(t,e){var o=Math.floor(t/e*100),r=o%5,i=Math.abs(o-r-50),n=Math.abs(o+5-r-50);return 10*Math.min(i/5,n/5)}function Af(t,e,o){var r=function(t){return t&&t.toLowerCase().indexOf("utf_8")>=0?new Du:new ju}(o),i=r.getEncodingResult(t,e),n=i.version,a=Bu[n-1][e],s=function(t,e){for(var o,r,i,n,a,s=0,l=[],p=[],c=e.groups,h=0;h<c.length;h++){i=c[h][0];for(var u=0;u<i;u++){r=c[h][1],o=[],n=[];for(var f=1;f<=r;f++)a=t.substring(s,s+8),o.push(a),n[r-f]=Au(a),s+=8;l.push(o),p.push(vf(n,e.errorCodewordsPerBlock))}}return[l,p]}(function(t,e){for(var o=8*e,r=0,i=0,n=t;n.length<o&&r<4;)n+=Nu.charAt(r++);for(n.length%8!=0&&(n+=new Array(9-n.length%8).join("0"));n.length<o;)n+=Yu[i],i^=1;return n}(i.dataString,a.totalDataCodewords),a),l=function(t){for(var e=[],o=17+4*t,r=0;r<Zu.length;r++){e[r]=new Array(o);for(var i=0;i<o;i++)e[r][i]=new Array(o)}return e}(n);!function(t){var e=t[0].length;wf(t,Wu,0,0),Cf(t,[-1,-1],7,7),wf(t,Wu,e-7,0),Cf(t,[1,-1],e-8,7),wf(t,Wu,0,e-7),Cf(t,[-1,1],7,e-8)}(l),function(t,e){if(!(e<2)){var o,r,i=t[0],n=i.length,a=Math.floor(e/7),s=[6],l=0;for((o=Gu[e])?r=(n-13-o)/a:o=r=(n-13)/(a+1),s.push(s[l++]+o);s[l]+r<n;)s.push(s[l++]+r);for(var p=0;p<s.length;p++)for(var c=0;c<s.length;c++)void 0===i[s[p]][s[c]]&&wf(t,Xu,s[p]-2,s[c]-2)}}(l,n),function(t){for(var e=1,o=t[0].length,r=8;r<o-8;r++)cf(t,e,6,r),cf(t,e,r,6),e^=1}(l),n>=7&&xf(l,Pu(0,18)),_f(l,Pu(0,15)),function(t,e){for(var o,r,i,n=new ku(t[0]),a=0;a<e.length;a++)for(o=e[a],r=0;o.length>0;){for(var s=0;s<o.length;s++)for(var l=0;l<8;l++)i=n.getNextCell(),hf(t,o[s][r].charAt(l),i.row,i.column);for(r++;o[0]&&r===o[0].length;)o.splice(0,1)}for(;i=n.getNextRemainderCell();)hf(t,0,i.row,i.column)}(l,s);var p=function(t){var e,o,r=[],i=[],n=[],a=[],s=[],l=t[0].length;for(o=0;o<t.length;o++)r[o]=0,n[o]=0,s[o]=[0,0],a[o]=[0,0],i[o]=[];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]&&(r[h]+=3),Of(h,a,r,0,e[p][c]),Of(h,a,r,1,e[c][p]),Sf(h,r,i,e[p][c],s,0),Sf(h,r,i,e[c][p],s,1);var u,f=l*l,d=Number.MAX_VALUE;for(o=0;o<r.length;o++)r[o]+=Pf(n[o],f),r[o]<d&&(d=r[o],u=o);return u}(l),c=l[p];return n>=7&&xf([c],function(t){return mf(t,"1111100100101",18)}(n)),_f([c],function(t){var e,o="";if(0===Au(t))return"101010000010010";e=mf(Au(t),"10100110111",15);for(var r=0;r<e.length;r++)o+=e.charAt(r)^"101010000010010".charAt(r);return o}(Ku[e]+Pu(p,3))),c}!function(){var t,e;for(e=1;e<255;e++)(t=2*Fu[e-1])>255&&(t^=285),Fu[e]=t,Uu[t]=e;t=2*Fu[e-1]^285,Fu[e]=t,Fu[-1]=0}(),function(){for(var t=2;t<=68;t++){var e=pf[t-1],o=[t,0];pf[t]=ff(e,o)}}();var kf=Math.round,Tf=[[0,1],[1,1],[1,2],[2,2],[2,1],[3,1],[3,0],[2,0],[2,-1],[1,-1],[1,0]],jf=[[0,1],[1,1],[1,0]],Ef=function(t){function e(e,o,r){void 0===r&&(r=$t),t.call(this),this.options=X({},this.options,o),this.element=e,this.wrapper=this.element,this.onError=r,this._initElement(),this._initSurface(),this.setOptions(o)}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(){I(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 D.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,o=t.clientHeight,r={width:0,height:0};return e>0&&(r.width=e),o&&(r.height=o),r},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,o,r,i,n=this._value,a=this.options.border||{},s=this.options.padding||0,l=a.width||0;a.width=l;var p=new D.drawing.Group;try{n&&(o=Af(n,this.options.errorCorrection,this.options.encoding),i=(r=this._getSize())-2*(l+s),t=this._calculateBaseUnit(i,o.length),e=l+s+(i-o.length*t)/2,p.append(this._renderBackground(r,a)),p.append(this._renderMatrix(o,t,e)),this._hasCustomLogo()?p.append(this._renderLogo(r,t)):this._isSwiss()&&p.append(this._renderSwissCode(r,t)))}catch(t){this.onError(t)}return p},e.prototype._renderLogo=function(t,e){var o,r=kf(t/2),i=this._getLogoSize(7*e),n=this.options.overlay.imageUrl,a={x:r-i.width/2,y:r-i.height/2};return o=new D.geometry.Rect(new D.geometry.Point(a.x,a.y),new D.geometry.Size(i.width,i.height)),new D.drawing.Image(n,o)},e.prototype._renderSwissCode=function(t,e){var o=this._getLogoSize(7*e),r=(o=Math.max(o.width,o.height))/4,i=r/2,n=t/2,a={},s=new D.drawing.Group;return a.x=a.y=Math.ceil(n-e-o/2),s.append(this._renderShape(a,Math.ceil(o+2*e),jf,"#fff")),a.x=a.y=n-o/2,s.append(this._renderShape(a,o,jf,this.options.color)),a.x=n+i-o/2,a.y=n+i+r-o/2,s.append(this._renderShape(a,r,Tf,"#fff")),s},e.prototype._renderShape=function(t,e,o,r){var i=new D.drawing.MultiPath({fill:{color:r},stroke:null});i.moveTo(t.x,t.y);for(var n=0;n<o.length;n++)i.lineTo(t.x+e*o[n][0],t.y+e*o[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=bu(this.element,this.options.renderAs),o=Math.min(e.width,e.height);t=o>0?o:200}return t},e.prototype._calculateBaseUnit=function(t,e){var o=Math.floor(t/e);if(o<1){var r=Math.ceil(1*e);this.onError(new Error("Insufficient size for QR Code: the current size is "+t+"px and the minimum size is "+r+"px."))}else o*e>=t&&o-1>=1&&o--;return o},e.prototype._renderMatrix=function(t,e,o){for(var r=new D.drawing.MultiPath({fill:{color:this.options.color},stroke:null}),i=0;i<t.length;i++)for(var n=o+i*e,a=0;a<t.length;){for(;0===t[i][a]&&a<t.length;)a++;if(a<t.length){for(var s=a;1===t[i][a];)a++;var l=kf(o+s*e),p=kf(n),c=kf(o+a*e),h=kf(n+e);r.moveTo(l,p).lineTo(l,h).lineTo(c,h).lineTo(c,p).close()}}return r},e.prototype._renderBackground=function(t,e){var o=new ie(0,0,t,t).unpad(e.width/2);return D.drawing.Path.fromRect(o.toRect(),{fill:{color:this.options.background},stroke:{color:e.color,width:e.width}})},e.prototype.setOptions=function(t){var e=t||{};this.options=Ou(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,o=this.options.overlay.height;return e||o?e&&!o?o=e:!e&&o&&(e=o):e=o=t,{width:e,height:o}},e}(D.Class);Bt(Ef,{name:"QRCode",renderAs:"svg",encoding:"ISO_8859_1",value:"",errorCorrection:"L",background:"#fff",color:"#000",size:"",padding:0,border:{color:"",width:0},overlay:{type:"image",imageUrl:"",width:0,height:0}});const Mf=Ef,If=function(t){return void 0===t&&(t="ISO_8859_1"),function(e){try{Af(e,"L",t)}catch(t){return{valid:!1,error:t}}return{valid:!0}}};var Lf={WGS84:{a:6378137,b:6356752.314245179,f:.0033528106647474805,e:.08181919084262149}};function Rf(t){return t*t}var Df=Math,Bf=Df.abs,Nf=Df.atan,zf=Df.atan2,Vf=Df.cos,Hf=Df.sin,Uf=Df.tan,Ff=function(t){function e(e,o){t.call(this),this.initProperties(),1===arguments.length?(this.lat=e[0],this.lng=e[1]):(this.lat=e,this.lng=o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){X(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=Mt(this.lng,t),this.lat=Mt(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,o,r){var i=Et(o),n=r||Lf.WGS84,a=Et(this.lat),s=Et(this.lng),l=t/n.a,p=Df.asin(Hf(a)*Vf(l)+Vf(a)*Hf(l)*Vf(i)),c=s+zf(Hf(i)*Hf(l)*Vf(a),Vf(l)-Hf(a)*Hf(p));return new e(wt(p),wt(c))},e.prototype.greatCircleTo=function(t,o){var r=e.create(r),i=o||Lf.WGS84;if(!r||this.clone().round(8).equals(r.clone().round(8)))return{distance:0,azimuthFrom:0,azimuthTo:0};for(var n,a,s,l,p,c,h,u,f=i.a,d=i.b,v=i.f,y=Et(r.lng-this.lng),g=Nf((1-v)*Uf(Et(this.lat))),m=Hf(g),b=Vf(g),_=Nf((1-v)*Uf(Et(r.lat))),x=Hf(_),w=Vf(_),C=y,O=this.DISTANCE_ITERATIONS,S=!1;!S&&O-- >0;){a=Hf(C),s=Vf(C),l=Df.sqrt(Rf(w*a)+Rf(b*x-m*w*s)),u=zf(l,c=m*x+b*w*s);var P=b*w*a/l;h=0,0!=(p=1-Rf(P))&&(h=c-2*m*x/p),n=C;var A=v/16*p*(4+v*(4-3*p));C=y+(1-A)*v*P*(u+A*l*(h+A*c*(2*Rf(h)-1))),S=Bf(C-n)<=this.DISTANCE_CONVERGENCE}var k=p*(Rf(f)-Rf(d))/Rf(d),T=1+k/16384*(4096+k*(k*(320-175*k)-768)),j=k/1024*(256+k*(k*(74-47*k)-128)),E=j*l*(h+j/4*(c*(2*Rf(h)-1)-j/6*h*(4*Rf(l)-3)*(4*Rf(h)-3))),M=zf(w*a,b*x-m*w*s),I=zf(b*a,-m*w+b*x*s);return{distance:Mt(d*T*(u-E),this.DISTANCE_PRECISION),azimuthFrom:wt(M),azimuthTo:wt(I)}},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,o){if(xt(t))return t instanceof e?t.clone():1===arguments.length&&2===t.length?e.fromLatLng(t):new e(t,o)},e}(D.Class),Gf=Math,Wf=Gf.atan,Xf=Gf.exp,Kf=Gf.pow,Yf=Gf.sin,qf=Gf.log,Zf=Gf.tan,Qf=D.geometry.Point,$f=Gf.PI,Jf=$f/2,td=$f/4,ed=$f/180,od=Lf.WGS84,rd=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=X({},this.options,t)},e.prototype.initProperties=function(){X(this,{MAX_LNG:180,MAX_LAT:85.0840590501,INVERSE_ITERATIONS:15,INVERSE_CONVERGENCE:1e-12})},e.prototype.forward=function(t,e){var o=this,r=o.options,i=r.datum.a,n=r.centralMeridian,a=Tt(t.lat,-o.MAX_LAT,o.MAX_LAT),s=e?Tt(t.lng,-o.MAX_LNG,o.MAX_LNG):t.lng,l=Et(s-n)*i,p=o._projectLat(a);return new Qf(l,p)},e.prototype._projectLat=function(t){var e=this.options.datum,o=e.e,r=e.a,i=Et(t),n=Zf(td+i/2),a=o*Yf(i),s=Kf((1-a)/(1+a),o/2);return r*qf(n*s)},e.prototype.inverse=function(t,e){var o=this,r=o.options,i=r.datum.a,n=r.centralMeridian,a=t.x/(ed*i)+n,s=Tt(o._inverseY(t.y),-o.MAX_LAT,o.MAX_LAT);return e&&(a=Tt(a,-o.MAX_LNG,o.MAX_LNG)),new Ff(s,a)},e.prototype._inverseY=function(t){var e,o=this,r=o.options.datum,i=r.a,n=r.e,a=n/2,s=Xf(-t/i),l=Jf-2*Wf(s);for(e=0;e<=o.INVERSE_ITERATIONS;e++){var p=n*Yf(l),c=Kf((1-p)/(1+p),a),h=Jf-2*Wf(s*c)-l;if(l+=h,Gf.abs(h)<=o.INVERSE_CONVERGENCE)break}return wt(l)},e}(D.Class);Bt(rd,{centralMeridian:0,datum:od});var id=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),X(this,{MAX_LAT:85.0511287798})},e.prototype._projectLat=function(t){var e=this.options.datum.a,o=Et(t),r=Zf(td+o/2);return e*qf(r)},e.prototype._inverseY=function(t){var e=this.options.datum.a,o=Xf(-t/e);return wt(Jf-2*Wf(o))},e}(rd),nd=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 Qf(t.lng,t.lat)},e.prototype.inverse=function(t){return new Ff(t.y,t.x)},e}(D.Class),ad=function(t){function e(){t.call(this);var e=this._proj=new id,o=this.c=2*$f*e.options.datum.a;this._tm=D.geometry.transform().translate(.5,.5).scale(1/o,-1/o),this._itm=D.geometry.transform().scale(o,-o).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,o){return this._proj.forward(t,o).transform(this._tm).scale(e||1)},e.prototype.toLocation=function(t,e,o){var r=t.clone().scale(1/(e||1)).transform(this._itm);return this._proj.inverse(r,o)},e}(D.Class),sd=(function(t){function e(){t.call(this),this._proj=new rd}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)}}(D.Class),function(t){function e(){t.call(this),this._proj=new nd}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)}}(D.Class),Object.defineProperty),ld=(Object.assign,function(t){var e=document.createElement("div");return e.innerHTML=t,e.firstChild}),pd=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},cd=function(t,e){e.insertBefore(t,e.firstChild)},hd=function(t){return t.replace(/([a-z][A-Z])/g,(function(t){return t.charAt(0)+"-"+t.charAt(1).toLowerCase()}))},ud=function(t){return t&&String(t).endsWith("px")?t:String(t)+"px"},fd=function(t){var e,o=!1,r=[],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/},a={tablet:/playbook|ipad|fire/i},s={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)&&(r=t.match(i[l]))){if("windows"===l&&"plugins"in navigator)return!1;(o={}).device=l,o.tablet=dd(l,a,!1),o.browser=dd(t,s,"default"),o.name=dd(l,n),o[o.name]=!0,o.majorVersion=r[2],o.minorVersion=(r[3]||"0").replace("_","."),e=o.minorVersion.replace(".","").substr(0,2),o.flatVersion=o.majorVersion+e+new Array(3-(e.length<3?e.length:2)).join("0");break}return o};function dd(t,e,o){for(var r in e)if(e.hasOwnProperty(r)&&e[r].test(t))return r;return void 0!==o?o:t}var vd=function(){var t={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"},e=yd();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},yd=function(){var t=fd(navigator.userAgent),e=function(t){var e=!1,o=[],r={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 r)if(r.hasOwnProperty(i)&&(o=t.match(r[i]))){(e={})[i]=!0,e[o[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,e.version=parseInt(document.documentMode||o[2],10);break}return e}(navigator.userAgent),o=e.chrome,r=e.crios,i=e.mozilla,n=e.safari,a={};a.mobileOS=t,a.touch="ontouchstart"in window,a.pointers=!o&&!r&&!i&&!n&&window.PointerEvent,a.msPointers=!o&&window.MSPointerEvent,a.mouseAndTouchPresent=a.touch&&!(a.mobileOS.ios||a.mobileOS.android),a.eventCapture=document.documentElement.addEventListener;var s=document.createElement("table"),l=a.transitions=!1,p=a.transforms=!1,c="string";return["Moz","webkit","O","ms"].forEach((function(t){var e=typeof s.style[t+"Transition"]===c;if(e||typeof s.style[t+"Transform"]===c){var o=t.toLowerCase();return p={css:"ms"!==o?"-"+o+"-":"",prefix:t,event:"o"===o||"webkit"===o?o:""},e&&((l=p).event=l.event?l.event+"TransitionEnd":"transitionend"),!1}})),s=null,a.transforms=p,a.transitions=l,a.delayedClick=function(){if(a.touch){if(a.mobileOS.ios)return!0;if(a.mobileOS.android){if(!a.browser.chrome)return!0;if(a.browser.version<32)return!1;var t=document.querySelector("meta[name=viewport]");return!(t?t.getAttribute("content"):"").match(/user-scalable=no/i)}}return!1},a},gd=function(t,e){return t.bind(e)},md=function(t,e,o,r,i){bd(t,e,o,r,i)},bd=function(t,e,o,r,i){(M(e)?e:(e||"").split(" ")).forEach((function(e){_d(t,e,o,r,i)}))},_d=function(t,e,o,r,i){var n,a=r;o&&U(o)&&!r?a=o:o&&"string"==typeof o&&U(a)&&(n=o),t.addEventListener(e,(function(e){var o=e.target?e.target.closest(n):null;if(!n||n&&e.target&&o){var r=n?o:e.currentTarget;sd(e,"currentTarget",{value:r}),sd(e,"delegateTarget",{value:t}),a(e)}}),Boolean(i))},xd=function(t,e,o,r,i){wd(t,e,o,r,i)},wd=function(t,e,o,r){(M(e)?e:(e||"").split(" ")).forEach((function(e){Cd(t,e,o,r)}))},Cd=function(t,e,o,r){t.removeEventListener(e,o,Boolean(r))},Od=function(t){var e=vd(navigator.userAgent);return t.replace(/([^ ]+)/g,(function(t){return e[t]||t}))},Sd=function(t,e){var o=t.prototype;o.events?e.forEach((function(t){o.events.indexOf(t)<0&&o.events.push(t)})):o.events=e},Pd=function(){return Number(new Date)},Ad=function(){},kd=function(t){var e=[];if(t)for(var o=hd(t).split("-"),r=0;r<o.length;r++)e.push("k-pos-"+o[r]);return e.join(" ")},Td="string",jd="function",Ed=function(){this._defaultPrevented=!0},Md=function(){return!0===this._defaultPrevented},Id=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,o){var r,i,n,a,s=this,l=typeof t===Td?[t]:t||[],p=typeof e===jd;if(void 0===e){for(r in t)s.bind(r,t[r]);return s}var c=function(){var t=l[r];(a=p?e:e[t])&&(o&&(n=a,a=function(){s.unbind(t,a),n.apply(s,arguments)},a.original=n),(s._events[t]=s._events[t]||[]).push(a))};for(r=0,i=l.length;r<i;r++)c();return s},e.prototype.one=function(t,e){return this.bind(t,e,!0)},e.prototype.first=function(t,e){var o,r,i,n=this,a=typeof t===Td?[t]:t,s=typeof e===jd;for(o=0,r=a.length;o<r;o++){var l=a[o];(i=s?e:e[l])&&(n._events[l]=n._events[l]||[]).unshift(i)}return n},e.prototype.trigger=function(t,e){var o,r,i=this,n=i._events[t];if(n){var a=e||{};for(a.sender=i,a._defaultPrevented=!1,a.preventDefault=Ed,a.isDefaultPrevented=Md,o=0,r=(n=n.slice()).length;o<r;o++)n[o].call(i,a);return!0===a._defaultPrevented}return!1},e.prototype.unbind=function(t,e){var o,r=this,i=r._events[t];if(void 0===t)r._events={};else if(i)if(e)for(o=i.length-1;o>=0;o--)i[o]!==e&&i[o].original!==e||i.splice(o,1);else r._events[t]=[];return r},e.prototype._setEvents=function(t){for(var e=this,o=(this.events||[]).length,r=0;r<o;r++){var i=e.events[r];e.options[i]&&t[i]&&(e.unbind(i,e.options[i]),e._events&&e._events[i]&&delete e._events[i])}this.bind(this.events,t)},e}(D.Class),Ld=function(t){function e(e,o){t.call(this),this.element=e,this._initOptions(o),this.items=[],I(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=X({},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;xt(t)&&("string"==typeof t&&(e={text:t}),this.items.push(e),this._render())},e.prototype.remove=function(t){for(var e=[],o=0;o<this.items.length;o++){var r=this.items[o];r.text!==t&&e.push(r)}this.items=e,this._render()},e.prototype.clear=function(){this.items=[],pd(this.element)},e.prototype._render=function(){for(var t=[],e=0;e<this.items.length;e++){var o=this.items[e],r=this._itemText(o);""!==r&&t.push(r)}t.length>0?(pd(this.element),function(t,e){var o=document.createElement("div");for(o.innerHTML=t;o.childNodes.length>0;)e.appendChild(o.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="",o=this._inZoomLevel(t.minZoom,t.maxZoom),r=this._inArea(t.extent);return o&&r&&(e+=t.text),e},e.prototype._inZoomLevel=function(t,e){var o=Lt(t,-Number.MAX_VALUE),r=Lt(e,Number.MAX_VALUE);return this._zoom>o&&this._zoom<r},e.prototype._inArea=function(t){var e=!0;return t&&(e=t.contains(this._extent)),e},e}(Id);Bt(Ld,{name:"Attribution",separator:" | "});var Rd={up:{className:"k-navigator-n",iconClass:"k-i-caret-alt-up"},down:{className:"k-navigator-s",iconClass:"k-i-caret-alt-down"},right:{className:"k-navigator-e",iconClass:"k-i-caret-alt-right"},left:{className:"k-navigator-w",iconClass:"k-i-caret-alt-left"}};function Dd(t){var e='<button class="k-button k-button-square k-rounded-full k-button-flat k-button-flat-base k-icon-button '+Rd[t].className+'" aria-label="move '+t+'"><span class="k-icon '+Rd[t].iconClass+'" /></button>';return ld(e)}var Bd=function(t){function e(e,o){t.call(this),this.element=e,this._initOptions(o);var r=Dd("up"),i=Dd("right"),n=Dd("down"),a=Dd("left");this.element.appendChild(r),this.element.appendChild(i),this.element.appendChild(n),this.element.appendChild(a),I(this.element,"k-widget k-navigator"),md(this.element,"click",".k-button",gd(this._click,this));var s=this.element.parentNode.closest("[data-role]");this._keyroot=s||this.element,this._tabindex(this._keyroot),this._keydownHandler=gd(this._keydown,this),md(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(){xd(this._keyroot,"keydown",this._keydownHandler)},e.prototype._tabindex=function(t){var e=t||this.wrapper||this.element,o=this.element,r="tabindex",i=e.getAttribute(r)||o.getAttribute(r);o.removeAttribute(r),e.setAttribute(r,isNaN(i)?0:i)},e.prototype._initOptions=function(t){this.options=X({},this.options,t)},e.prototype._pan=function(t,e){var o=this.options.panStep;this.trigger("pan",{x:t*o,y:e*o})},e.prototype._click=function(t){var e=0,o=0,r=t.currentTarget;r.matches(".k-navigator-n")?o=1:r.matches(".k-navigator-s")?o=-1:r.matches(".k-navigator-e")?e=1:r.matches(".k-navigator-w")&&(e=-1),this._pan(e,o),t.preventDefault()},e.prototype._keydown=function(t){switch(t.which){case Jt.UP:this._pan(0,1),t.preventDefault();break;case Jt.DOWN:this._pan(0,-1),t.preventDefault();break;case Jt.RIGHT:this._pan(1,0),t.preventDefault();break;case Jt.LEFT:this._pan(-1,0),t.preventDefault()}},e}(Id);function Nd(t,e){return ld('<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>')}Bt(Bd,{name:"Navigator",panStep:1}),Sd(Bd,["pan"]);var zd="change",Vd=function(t){function e(e,o){t.call(this),this.element=e,this._initOptions(o);var r=Nd("in","k-i-plus"),i=Nd("out","k-i-minus");this.element.appendChild(r),this.element.appendChild(i),I(this.element,"k-widget k-zoom-control k-button-group k-group-horizontal"),this._clickHandler=this._click.bind(this),md(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),md(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&&xd(this.element,"click",this._clickHandler),this._keyroot&&xd(this._keyroot,"keydown",this._keydownHandler)},e.prototype._tabindex=function(t){var e=t||this.wrapper||this.element,o=this.element,r="tabindex",i=e.getAttribute(r)||o.getAttribute(r);o.removeAttribute(r),e.setAttribute(r,isNaN(i)?0:i)},e.prototype._initOptions=function(t){this.options=X({},this.options,t)},e.prototype._change=function(t){var e=this.options.zoomStep;this.trigger(zd,{delta:t*e})},e.prototype._click=function(t){var e=1;st(t.currentTarget,"k-zoom-out")&&(e=-1),this._change(e),t.preventDefault()},e.prototype._keydown=function(t){switch(t.which){case Jt.NUMPAD_PLUS:case 187:case 61:this._change(1);break;case Jt.NUMPAD_MINUS:case 189:case 173:this._change(-1)}},e}(Id);Bt(Vd,{name:"ZoomControl",zoomStep:1}),Sd(Vd,[zd]);var Hd=Math,Ud=Hd.max,Fd=Hd.min,Gd=function(t){function e(e,o){t.call(this);var r=Ff.create(e),i=Ff.create(o);r.lng+180>i.lng+180&&r.lat+90<i.lat+90?(this.se=r,this.nw=i):(this.se=i,this.nw=r)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={World:{configurable:!0}};return e.prototype.contains=function(t){var e=this.nw,o=this.se,r=Lt(t.lng,t[1]),i=Lt(t.lat,t[0]);return t&&r+180>=e.lng+180&&r+180<=o.lng+180&&i+90>=o.lat+90&&i+90<=e.lat+90},e.prototype.center=function(){var t=this.nw,e=this.se,o=t.lng+(e.lng-t.lng)/2,r=t.lat+(e.lat-t.lat)/2;return new Ff(r,o)},e.prototype.containsAny=function(t){for(var e=!1,o=0;o<t.length;o++)e=e||this.contains(t[o]);return e},e.prototype.include=function(t){var e=this.nw,o=this.se,r=Lt(t.lng,t[1]),i=Lt(t.lat,t[0]);e.lng=Fd(e.lng,r),e.lat=Ud(e.lat,i),o.lng=Ud(o.lng,r),o.lat=Fd(o.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 Ff(t.lat,e.lng),se:this.se,sw:new Ff(e.lat,t.lng)}},e.prototype.toArray=function(){var t=this.nw,e=this.se;return[t,new Ff(t.lat,e.lng),e,new Ff(e.lat,t.lng)]},e.prototype.overlaps=function(t){return this.containsAny(t.toArray())||t.containsAny(this.toArray())},e.create=function(t,o){return t instanceof e?t:t&&o?new e(t,o):t&&4===t.length&&!o?new e([t[0],t[1]],[t[2],t[3]]):void 0},o.World.get=function(){return new e([90,-180],[-90,180])},Object.defineProperties(e,o),e}(D.Class),Wd="centerChange",Xd=function(t){function e(e,o){t.call(this),this.widgetService=e,this.options=X({},this.options,o),this.offset={x:0,y:0}}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={anchor:{configurable:!0}};return e.prototype.show=function(t,e){this.location!==e.location&&(this.anchor=t,this.location=e.location,this.widgetService.notify("showTooltip",Object.assign({anchor:this.anchor},e)),this.visible=!0)},e.prototype.hide=function(){this.widgetService&&this.widgetService.notify("hideTooltip"),this.visible=!1,this.location=null},o.anchor.get=function(){return this._anchor},o.anchor.set=function(t){var e=this.widgetService.widget._toDocumentCoordinates({x:t.left-this.offset.x,y:t.top-this.offset.y});this._anchor={left:e.left,top:e.top}},e.prototype.destroy=function(){this.widgetService=null},Object.defineProperties(e.prototype,o),e}(D.Class);Bt(Xd,{border:{width:1},opacity:1});var Kd=function(t){function e(e,o){t.call(this),this.support=yd(),this._initOptions(o),this.map=e;var r=document.createElement("div");I(r,"k-layer"),r.style.zIndex=this.options.zIndex,r.style.opacity=this.options.opacity,this.element=r,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=X({},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(),o=!xt(t.minZoom)||e>=t.minZoom,r=!xt(t.maxZoom)||e<=t.maxZoom,i=Gd.create(t.extent),n=!i||i.overlaps(this.map.extent());this._setVisibility(o&&r&&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.prototype._layerIndex=function(){return(this.map.layers||[]).indexOf(this)},e}(D.Class),Yd=Math,qd=D.geometry.Point;function Zd(t){return U(t)?t:et.compile(t)}function Qd(t){return new qd(Mt(t.x),Mt(t.y))}function $d(t){var e=t;return"string"!=typeof t&&(e+="px"),e}var Jd=function(t){function e(e,o){t.call(this,e,o),"string"==typeof this.options.subdomains&&(this.options.subdomains=this.options.subdomains.split(""));var r=this._viewType();this._view=new r(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 tv},e.prototype._activate=function(){t.prototype._activate.call(this),this.support.mobileOS||(this._pan||(this._pan=(0,D.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,o=e.extent(),r={nw:e.locationToLayer(o.nw).round(),se:e.locationToLayer(o.se).round()};t.center(e.locationToLayer(e.center())),t.extent(r),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}(Kd);Bt(Jd,{tileSize:256,subdomains:["a","b","c"],urlTemplate:"",zIndex:1});var tv=function(t){function e(e,o){t.call(this),this.element=e,this._initOptions(o),this.pool=new ov}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initOptions=function(t){this.options=X({},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 qd(Yd.floor(t.x/this.options.tileSize),Yd.floor(t.y/this.options.tileSize))},e.prototype.tileCount=function(){var t=this.size(),e=this.pointToTileIndex(this._extent.nw),o=this._extent.nw,r=this.indexToPoint(e).translate(-o.x,-o.y);return{x:Yd.ceil((Yd.abs(r.x)+t.width)/this.options.tileSize),y:Yd.ceil((Yd.abs(r.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,o=t.y;return new qd(e*this.options.tileSize,o*this.options.tileSize)},e.prototype.subdomainText=function(){var t=this.options.subdomains;return t[this.subdomainIndex++%t.length]},e.prototype.destroy=function(){pd(this.element),this.pool.empty()},e.prototype.reset=function(){this.pool.reset(),this.subdomainIndex=0,this.render()},e.prototype.render=function(){var t,e,o,r=this.tileCount(),i=this.pointToTileIndex(this._extent.nw);for(e=0;e<r.x;e++)for(o=0;o<r.y;o++)(t=this.createTile({x:i.x+e,y:i.y+o})).visible||t.show()},e.prototype.createTile=function(t){var e=this.tileOptions(t),o=this.pool.get(this._center,e);return o.element.parentNode||this.element.append(o.element),o},e.prototype.tileOptions=function(t){var e=this.wrapIndex(t),o=this.indexToPoint(t),r=this._viewOrigin,i=o.clone().translate(-r.x,-r.y);return{index:e,currentIndex:t,point:o,offset:Qd(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=Yd.pow(2,this._zoom);return{x:this.wrapValue(t.x,e),y:Tt(t.y,0,e-1)}},e.prototype.wrapValue=function(t,e){var o=Yd.abs(t)%e;return t>=0?o:e-(0===o?e:o)},e}(D.Class),ev=function(t){function e(e,o){t.call(this),this.id=e,this.visible=!0,this._initOptions(o),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=X({},this.options,t)},e.prototype.createElement=function(){var t=document.createElement("img"),e=this.options.size+"px";t.style.position="absolute",t.style.display="block",t.style.width=t.style.maxWidth=e,t.style.height=t.style.maxHeight=e,this.element=t},e.prototype.show=function(){var t=this.element;t.style.top=$d(this.options.offset.y),t.style.left=$d(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 Zd(this.options.urlTemplate)(this.urlOptions())},e.prototype.errorUrl=function(){return Zd(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}(D.Class);Bt(ev,{urlTemplate:"",errorUrlTemplate:""});var ov=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,o=this._items,r=At(t.point.toString()+t.offset.toString()+t.zoom+t.urlTemplate),i=0;i<o.length;i++)if(o[i].id===r){e=o[i];break}return e?e.show():(e=new ev(r,t),this._items.push(e)),e},e.prototype._remove=function(t){for(var e=this._items,o=-1,r=-1,i=0;i<e.length;i++){var n=e[i].options.point.distanceTo(t);n>o&&!e[i].visible&&(r=i,o=n)}-1!==r&&(e[r].destroy(),e.splice(r,1))},e}(D.Class);Bt(ov,{maxSize:100});var rv=Object.assign,iv="change",nv=function(t){function e(e,o){t.call(this);var r=this,i=e[0]||e;r.capture=!1;var n=vd(navigator.userAgent);i.addEventListener?(n.down.split(" ").forEach((function(t){i.addEventListener(t,gd(r._press,r),!0)})),n.up.split(" ").forEach((function(t){i.addEventListener(t,gd(r._release,r),!0)}))):(n.down.split(" ").forEach((function(t){i.attachEvent(t,gd(r._press,r))})),n.up.split(" ").forEach((function(t){i.attachEvent(t,gd(r._release,r))}))),r.bind(["press","release"],o||{})}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){var e=this;e.trigger("release"),e.capture&&(t.preventDefault(),e.cancelCapture())},e}(Id),av=function(t){function e(e){t.call(this);var o=this;o.forcedEnabled=!1,rv(o,e),o.scale=1,o.horizontal?(o.measure="offsetWidth",o.scrollSize="scrollWidth",o.axis="x"):(o.measure="offsetHeight",o.scrollSize="scrollHeight",o.axis="y")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.makeVirtual=function(){rv(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,o=e.virtual?e._virtualMax:e.getTotal(),r=o*e.scale,i=e.getSize();(0!==o||e.forcedEnabled)&&(e.max=e.virtual?-e._virtualMin:0,e.size=i,e.total=r,e.min=Math.min(e.max,i-r),e.minScale=i/o,e.centerOffset=(r-i)/2,e.enabled=e.forcedEnabled||r>i,t||e.trigger(iv,e))},e}(Id),sv=function(t){function e(e){t.call(this);var o=this;o.x=new av(rv({horizontal:!0},e)),o.y=new av(rv({horizontal:!1},e)),o.container=e.container,o.forcedMinScale=e.minScale,o.maxScale=e.maxScale||100,o.bind(iv,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(){var t=this;t.x.update(),t.y.update(),t.enabled=t.x.enabled||t.y.enabled,t.minScale=t.forcedMinScale||Math.min(t.x.minScale,t.y.minScale),t.fitScale=Math.max(t.x.minScale,t.y.minScale),t.trigger(iv)},e}(Id),lv=function(t){function e(e){t.call(this),rv(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,o=e.dimension,r=e.axis,i=e.movable,n=i[r]+t;if(o.enabled){var a=t;(n<o.min&&t<0||n>o.max&&t>0)&&(a*=e.resistance),i.translateAxis(r,a),e.trigger(iv,e)}},e}(Id),pv=function(t){function e(e){t.call(this);var o,r,i,n,a=this;rv(a,{elastic:!0},e),i=a.elastic?.5:0,n=a.movable,a.x=o=new lv({axis:"x",dimension:a.dimensions.x,resistance:i,movable:n}),a.y=r=new lv({axis:"y",dimension:a.dimensions.y,resistance:i,movable:n}),a.userEvents.bind(["press","move","end","gesturestart","gesturechange"],{gesturestart:function(t){a.gesture=t,a.offset=Ct(a.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=a.gesture,s=i.center,l=t.center,p=t.distance/i.distance,c=a.dimensions.minScale,h=a.dimensions.maxScale;n.scale<=c&&p<1&&(p+=.8*(1-p)),n.scale*p>=h&&(p=h/n.scale);var u=n.x+a.offset.left,f=n.y+a.offset.top;e={x:(u-s.x)*p+l.x-u,y:(f-s.y)*p+l.y-f},n.scaleWith(p),o.dragMove(e.x),r.dragMove(e.y),a.dimensions.rescale(n.scale),a.gesture=t,t.preventDefault()},move:function(t){t.event.target.tagName.match(/textarea|input/i)||(o.dimension.enabled||r.dimension.enabled?(o.dragMove(t.x.delta),r.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}(D.Class),cv=function(t,e,o){return"translate3d("+t+"px,"+e+"px,0) scale("+o+")"},hv=function(t){function e(e){t.call(this);var o=this;o.support=yd(),this.transformStyle=this.support.transitions.prefix+"Transform",o.element=e,o.element.style.webkitTransformOrigin="left top",o.x=0,o.y=0,o.scale=1;var r=cv(o.x,o.y,o.scale);o.element.style[this.transformStyle]=r,o._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){rv(this,t),this.refresh()},e.prototype.refresh=function(){var t,e=this,o=e.x,r=e.y;e.round&&(o=Math.round(o),r=Math.round(r)),(t=cv(o,r,e.scale))!==e.coordinates&&(e.element.style[this.transformStyle]=t,e._saveCoordinates(t),e.trigger(iv))},e.prototype._saveCoordinates=function(t){this.coordinates=t},e}(Id),uv=D.drawing.Group,fv=function(t){function e(e,o){t.call(this,e,o),this._pan=gd(this._pan,this),this.surface=D.drawing.Surface.create(this.element,{width:e.scrollElement.clientWidth,height:e.scrollElement.clientHeight}),this._initRoot(),this.movable=new hv(this.surface.element),this._markers=[],this._click=this._handler("shapeClick"),this.surface.bind("click",this._click),this._mouseleave=this._handler("shapeMouseLeave"),this.surface.bind("mouseleave",this._mouseleave),this.surface.bind("mouseenter",this._mouseenter.bind(this))}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 uv,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 dv(this.map,this.options.style,this));for(var e=new uv,o=0;o<t.length;o++){var r=this._loader.parse(t[o]);r&&e.append(r)}this._root.clear(),this._root.append(e)},e.prototype.shapeCreated=function(t){var e=!1;if(t instanceof D.drawing.Circle&&this.map.options.renderPointsAsMarkers&&(e=xt(this._createMarker(t))),!e){var o={layer:this,shape:t};e=this.map.trigger("shapeCreated",o)}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._eventArgs=function(t){return{layer:this,layerIndex:this._layerIndex(),shape:t.element,shapeIndex:(this._data||[]).indexOf(t.element.dataItem),originalEvent:t.originalEvent}},e.prototype._handler=function(t){var e=this;return function(o){o.element&&e.map.trigger(t,e._eventArgs(o))}},e.prototype._mouseenter=function(t){if(t.element){this.map.trigger("shapeMouseEnter",this._eventArgs(t));var e=t.element,o=this._tooltipAnchor(t);this.map._tooltip.show(o,this._tooltipContext(e))}},e.prototype._tooltipContext=function(t){return{type:"shape",layerIndex:this._layerIndex(),className:"k-map-shape-tooltip",dataItem:t.dataItem,location:t.location}},e.prototype._tooltipAnchor=function(t){var e=this.map.eventOffset(t.originalEvent);return{top:e.y,left:e.x}},e.prototype._activate=function(){t.prototype._activate.call(this),this._panHandler=gd(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}(Kd);Bt(fv,{autoBind:!0,zIndex:100});var dv=function(t){function e(e,o,r){t.call(this),this.observer=r,this.locator=e,this.style=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){var e=new uv,o=!0;return"Feature"===t.type?(o=!1,this._loadGeometryTo(e,t.geometry,t),this._featureCreated(e,t)):this._loadGeometryTo(e,t,t),o&&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,o){var r,i,n=this,a=e.coordinates;switch(e.type){case"LineString":i=this._loadPolygon(t,[a],o),this._setLineFill(i);break;case"MultiLineString":for(r=0;r<a.length;r++)i=n._loadPolygon(t,[a[r]],o),n._setLineFill(i);break;case"Polygon":this._loadPolygon(t,a,o);break;case"MultiPolygon":for(r=0;r<a.length;r++)n._loadPolygon(t,a[r],o);break;case"Point":this._loadPoint(t,a,o);break;case"MultiPoint":for(r=0;r<a.length;r++)n._loadPoint(t,a[r],o)}},e.prototype._setLineFill=function(t){var e=t.segments;(e.length<4||!e[0].anchor().equals(kt(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,o){var r=this._buildPolygon(e);return r.dataItem=o,r.location=this.locator.viewToLocation(r.bbox().center()),this._loadShape(t,r)},e.prototype._buildPolygon=function(t){for(var e=new(t.length>1?D.drawing.MultiPath:D.drawing.Path)(this.style),o=0;o<t.length;o++)for(var r=0;r<t[o].length;r++){var i=this.locator.locationToView(Ff.fromLngLat(t[o][r]));0===r?e.moveTo(i.x,i.y):e.lineTo(i.x,i.y)}return e},e.prototype._loadPoint=function(t,e,o){var r=Ff.fromLngLat(e),i=this.locator.locationToView(r),n=new D.geometry.Circle(i,10),a=new D.drawing.Circle(n,this.style);return a.dataItem=o,a.location=r,this._loadShape(t,a)},e}(D.Class),vv=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){var e=this;if(this._data=t,this.surface.clear(),0!==t.length){var o=this.options,r=nt(o.valueField),i=t.slice(0);i.sort((function(t,e){return r(e)-r(t)}));for(var n,a=this._scaleType(),s=nt(this.options.locationField),l=0;l<i.length;l++){var p=i[l],c=s(p),h=r(p);if(xt(c)&&xt(h)){n||(n=new a([0,h],[o.minSize,o.maxSize])),c=Ff.create(c);var u=e.map.locationToView(c),f=n.map(h),d=e._createSymbol({center:u,size:f,style:o.style,dataItem:p,location:c});d.dataItem=p,d.location=c,d.value=h,e._drawSymbol(d)}}}},e.prototype._scaleType=function(){var t=this.options.scale;return U(t)?t:yv[t]},e.prototype._createSymbol=function(t){var e=this.options.symbol;return U(e)||(e=gv[e]),e(t)},e.prototype._drawSymbol=function(t){var e={layer:this,shape:t};this.map.trigger("shapeCreated",e)||this.surface.draw(t)},e.prototype._tooltipContext=function(t){return{type:"bubble",layerIndex:this._layerIndex(),className:"k-map-bubble-tooltip",dataItem:t.dataItem,location:t.location,value:t.value}},e.prototype._tooltipAnchor=function(t){var e=t.element.bbox().center();return{top:e.y,left:e.x}},e}(fv);Bt(vv,{locationField:"location",valueField:"value",minSize:0,maxSize:100,scale:"sqrt",symbol:"circle",zIndex:200});var yv={sqrt:function(t){function e(e,o){t.call(this),this._domain=e,this._range=o;var r=Math.sqrt(e[1])-Math.sqrt(e[0]),i=o[1]-o[0];this._ratio=i/r}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}(D.Class)},gv={circle:function(t){var e=new D.geometry.Circle(t.center,t.size/2);return new D.drawing.Circle(e,t.style)},square:function(t){var e=new D.drawing.Path(t.style),o=t.size/2,r=t.center;return e.moveTo(r.x-o,r.y-o).lineTo(r.x+o,r.y-o).lineTo(r.x+o,r.y+o).lineTo(r.x-o,r.y+o).close(),e}},mv="click",bv="mouseenter",_v="mouseleave",xv=Object.assign,wv="k-marker",Cv="."+wv,Ov=function(t){function e(e,o){t.call(this,e,o),this._markerClickHandler=gd(this._markerClick,this),md(this.element,mv,Cv,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),xd(this.element,mv,this._markerClickHandler),this.clear()},e.prototype.add=function(t){if(!M(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 o={marker:t,layer:this};this.map.trigger("markerActivate",o)}},e.prototype._reset=function(){t.prototype._reset.call(this);for(var e=this.items,o=0;o<e.length;o++)this.update(e[o])},e.prototype.bind=function(t,e){var o=Sv.create(t,this.options);o.dataItem=e;var r={marker:o,layer:this};if(!this.map.trigger("markerCreated",r))return this.add(o),o},e.prototype._addOne=function(t){var e=Sv.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=nt(this.options.locationField),o=nt(this.options.titleField),r=0;r<t.length;r++){var i=t[r];this.bind({location:e(i),title:o(i)},i)}},e.prototype._markerClick=function(t){var e=t.currentTarget._kendoNode,o={layer:this,layerIndex:this._layerIndex(),marker:e,markerIndex:(this.items||[]).indexOf(e),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 xv({},{layer:this,layerIndex:this._layerIndex(),marker:e,markerIndex:(this.items||[]).indexOf(e)},t)},e}(Kd);Bt(Ov,{zIndex:1e3,autoBind:!0,locationField:"location",titleField:"title",template:""});var Sv=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=Ff.create(t).toArray(),this.layer&&this.layer.update(this),this):Ff.create(this.options.location)},e.prototype.showAt=function(t){this.render(),this._anchor={left:Math.round(t.x),top:Math.round(t.y)},this.element.style.left=ud(this._anchor.left),this.element.style.top=ud(this._anchor.top)},e.prototype.hide=function(){this.element&&(this.element.remove(),this.element=null)},e.prototype.bindEvents=function(){this.element&&(this._mouseEnterHandler=gd(this._mouseEnter,this),md(this.element,bv,Cv,this._mouseEnterHandler),this._mouseLeaveHandler=gd(this._mouseLeave,this),md(this.element,_v,Cv,this._mouseLeaveHandler))},e.prototype.unbindEvents=function(){this.element&&(xd(this.element,bv,this._mouseEnterHandler),xd(this.element,_v,this._mouseLeaveHandler))},e.prototype.render=function(){if(!this.element){var t=this.options,e=this.layer,o=document.createElement("span");if(I(o,wv),this.options.template){var r=this._compileTemplate(this.options.template)(this.dataItem),i=ld(r);o.appendChild(i)}else I(o,"k-icon k-icon-xxl k-i-marker-"+hd(t.shape||"pin"));t.title&&o.setAttribute("title",t.title);var n=t.attributes||{};Object.keys(n).forEach((function(t){o.setAttribute(t,n[t])})),o._kendoNode=this,o.style.zIndex=t.zIndex,this.element=o,e&&e.element.appendChild(this.element),this.bindEvents()}},e.prototype._mouseEnter=function(t){var e=this._createEventArgs(t);this.layer._markerMouseEnter(e),this.layer.map._tooltip.show({top:this._anchor.top-this.element.offsetHeight,left:this._anchor.left},this._tooltipContext())},e.prototype._tooltipContext=function(){return{type:"marker",layerIndex:this.layer._layerIndex(),className:"k-map-marker-tooltip",dataItem:this.dataItem,title:this.options.title,location:this.location()}},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._compileTemplate=function(t){return et.compile(t,{paramName:"dataItem",useWithBlock:!1})},e.create=function(t,o){return t instanceof e?t:new e(X({},o,t))},e}(D.Class),Pv=Object.assign;function Av(t){window.requestAnimationFrame(t)}var kv=function(t){function e(){t.call(this);var e=this;e._tickProxy=gd(e._tick,e),e._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,Av(this._tickProxy)))},e.prototype.enabled=function(){return!0},e.prototype.cancel=function(){this._started=!1,this.onCancel()},e.prototype._tick=function(){var t=this;t._started&&(t.tick(),t.done()?(t._started=!1,t.onEnd()):Av(t._tickProxy))},e}(D.Class),Tv=function(t){function e(e){t.call(this),Pv(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,Pd()-this.startDate)},e.prototype.moveTo=function(t){var e=this,o=e.movable;e.initial=o[e.axis],e.delta=t.location-e.initial,e.duration="number"==typeof t.duration?t.duration:300,e.tick=e._easeProxy(t.ease),e.startDate=Pd(),e.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,o,r){return t===r?e+o:o*(1-Math.pow(2,-10*t/r))+e},e}(kv),jv=Object.assign,Ev=function(t){t.preventDefault()},Mv=800,Iv=0,Lv="press",Rv="hold",Dv="select",Bv="start",Nv="move",zv="end",Vv="cancel",Hv="tap",Uv="doubleTap",Fv="release",Gv="gesturechange",Wv="gestureend",Xv="gesturetap",Kv={api:0,touch:0,mouse:9,pointer:9};function Yv(t){var e,o,r,i=yd(),n=[],a=t.originalEvent||t,s=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=(o=a?a.changedTouches:[]).length;l<e;l++)r=o[l],n.push({location:r,event:t,target:r.target,currentTarget:s,id:r.identifier,type:"touch"});else i.pointers||i.msPointers?n.push({location:a,event:t,target:t.target,currentTarget:s,id:a.pointerId,type:"pointer"}):n.push({id:1,event:t,target:t.target,currentTarget:s,location:t,type:"mouse"});return n}var qv=function(t){function e(e,o){t.call(this);var r=this;r.support=yd(),r.invalidZeroEvents=this.support.mobileOS&&this.support.mobileOS.android,r.axis=e,r._updateLocationData(o),r.startLocation=r.location,r.velocity=r.delta=0,r.timeStamp=Pd()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.move=function(t){var e=this,o=t["page"+e.axis],r=Pd(),i=r-e.timeStamp||1;!o&&this.invalidZeroEvents||(e.delta=o-e.location,e._updateLocationData(t),e.initialDelta=o-e.startLocation,e.velocity=e.delta/i,e.timeStamp=r)},e.prototype._updateLocationData=function(t){var e=this,o=e.axis;e.location=t["page"+o],e.client=t["client"+o],e.screen=t["screen"+o]},e}(D.Class),Zv=function(t){function e(e,o,r){t.call(this),jv(this,{x:new qv("X",r.location),y:new qv("Y",r.location),type:r.type,useClickAsTap:e.useClickAsTap,threshold:e.threshold||Kv[r.type],userEvents:e,target:o,currentTarget:r.currentTarget,initialTouch:r.target,id:r.id,pressEvent:r,_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(gd(this._hold,this),this.userEvents.minHold),this._trigger(Lv,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(Hv,t):e._trigger(Uv,t),e.userEvents._clicks=0}),300))},e.prototype._hold=function(){this._trigger(Rv,this.pressEvent)},e.prototype.move=function(t){var e=this,o="api"!==t.type&&e.userEvents._shouldNotMove;if(!e._finished&&!o){if(e.x.move(t.location),e.y.move(t.location),!e._moved){if(e._withinIgnoreThreshold())return;if($v.current&&$v.current!==e.userEvents)return e.dispose();e._start(t)}e._finished||e._trigger(Nv,t)}},e.prototype.end=function(t){this.endTime=Pd(),this._finished||(this._finished=!0,this._trigger(Fv,t),this._moved?this._trigger(zv,t):this.useClickAsTap||(this.supportDoubleTap?this._tap(t):this._trigger(Hv,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=Pd(),this._moved=!0,this._trigger(Bv,t)},e.prototype._trigger=function(t,e){var o=this,r=e.event,i={touch:o,x:o.x,y:o.y,target:o.target,event:r};o.userEvents.notify(t,i)&&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}(D.Class);function Qv(t){for(var e=vd(navigator.userAgent).up.split(" "),o=0,r=e.length;o<r;o++)t(e[o])}var $v=function(t){function e(e,o){t.call(this);var r,i=this,n=yd();this.support=n,o=o||{},this.options=o,r=i.filter=o.filter,i.threshold=o.threshold||Iv,i.minHold=o.minHold||Mv,i.touches=[],i._maxTouches=o.multiTouch?2:1,i.allowSelection=o.allowSelection,i.captureUpIfMoved=o.captureUpIfMoved,i.useClickAsTap=!o.fastTap&&!n.delayedClick(),i._clicks=0,i.supportDoubleTap=o.supportDoubleTap;var a=!n.touch||n.mouseAndTouchPresent;if(jv(i,{element:e,surface:o.global&&a?e.ownerDocument.documentElement:o.surface||e,stopPropagation:o.stopPropagation,pressed:!1}),this._surfaceMoveHandler=gd(this._move,this),md(i.surface,Od("move"),this._surfaceMoveHandler),this._surfaceEndHandler=gd(this._end,this),md(i.surface,Od("up cancel"),this._surfaceEndHandler),this._elementStartHandler=gd(this._start,this),md(e,Od("down"),r,this._elementStartHandler),i.useClickAsTap&&(this._elementClickHandler=gd(this._click,this),md(e,Od("click"),r,this._elementClickHandler)),n.pointers||n.msPointers)if(n.browser.version<11){var s="pinch-zoom double-tap-zoom";e.style["-ms-touch-action"]=o.touchAction&&"none"!==o.touchAction?s+" "+o.touchAction:s}else e.style["touch-action"]=o.touchAction||"none";if(o.preventDragEvent&&(this._elementDragStartHandler=Ev,md(e,Od("dragstart"),this._elementDragStartHandler)),this._elementSelectHandler=gd(this._select,this),md(e,Od("mousedown"),r,this._elementSelectHandler),i.captureUpIfMoved&&n.eventCapture){var l=i.surface,p=gd(i.preventIfMoving,i);Qv((function(t){l.addEventListener(t,p,!0)}))}i.bind([Lv,Rv,Hv,Uv,Bv,Nv,zv,Fv,Vv,"gesturestart",Gv,Wv,Xv,Dv],o)}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,o=this.element;if(!t._destroyed){if(t._destroyed=!0,t.captureUpIfMoved&&this.support.eventCapture){var r=t.surface;Qv((function(e){r.removeEventListener(e,t.preventIfMoving)}))}xd(t.surface,Od("move"),this._surfaceMoveHandler),xd(t.surface,Od("up cancel"),this._surfaceEndHandler),xd(o,Od("down"),this._elementStartHandler),t.useClickAsTap&&xd(o,Od("click"),this._elementClickHandler),e.preventDragEvent&&xd(o,Od("dragstart"),this._elementDragStartHandler),xd(o,Od("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(Vv)},e.prototype.notify=function(t,e){var o,r,i,n,a,s,l,p,c=this.touches,h=t;if(this._isMultiTouch()){switch(h){case Nv:h=Gv;break;case zv:h=Wv;break;case Hv:h=Xv}jv(e,{touches:c},(o=c[0],r=c[1],i=o.x.location,n=o.y.location,l=i-(a=r.x.location),p=n-(s=r.y.location),{center:{x:(i+a)/2,y:(n+s)/2},distance:Math.sqrt(l*l+p*p)}))}return this.trigger(h,jv(e,{type:h}))},e.prototype.press=function(t,e,o){this._apiCall("_start",t,e,o)},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 at(this.touches,(function(t){return t.isMoved()})).length},e.prototype._select=function(t){this.allowSelection&&!this.trigger(Dv,{event:t})||t.preventDefault()},e.prototype._start=function(t){var o,r,i=this,n=0,a=i.filter,s=Yv(t),l=s.length,p=t.which;if(!(p&&p>1||i._maxTouchesReached()))for(e.current=null,i.currentTarget=t.currentTarget,i.stopPropagation&&t.stopPropagation();n<l&&!i._maxTouchesReached();n++)r=s[n],(o=a?r.currentTarget:i.element)&&0===o.length||(r=new Zv(i,o,r),i.touches.push(r),r.press(),i._isMultiTouch()&&i.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:Pd(),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 o,r,i,n,a={},s=Yv(e),l=this.touches;for(o=0;o<l.length;o++)a[(r=l[o]).id]=r;for(o=0;o<s.length;o++)(n=a[(i=s[o]).id])&&n[t](i)},e.prototype._apiCall=function(t,e,o,r){this[t]({api:!0,pageX:e,pageY:o,clientX:e,clientY:o,target:r||this.element,stopPropagation:Ad,preventDefault:Ad})},e.defaultThreshold=function(t){Iv=t},e.minHold=function(t){Mv=t},e}(Id),Jv=Object.assign,ty=Math.abs,ey="change",oy="scroll",ry=function(t){function e(e){t.call(this,e);var o=this;Jv(o,e),o.userEvents.bind("gestureend",o.start.bind(this)),o.tapCapture.bind("press",o.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}(kv),iy=function(t){function e(e){t.call(this);var o=this;Jv(o,e,{transition:new Tv({axis:e.axis,movable:e.movable,onEnd:function(){o._end()}})}),o.tapCapture.bind("press",(function(){o.cancel()})),o.userEvents.bind("end",gd(o.start,o)),o.userEvents.bind("gestureend",gd(o.start,o)),o.userEvents.bind("tap",gd(o.onEnd,o))}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(){var t=this;t.paneAxis.outOfBounds()?t._snapBack():t._end()},e.prototype.done=function(){return ty(this.velocity)<1},e.prototype.start=function(e){var o,r=this;r.dimension.enabled&&(r.paneAxis.outOfBounds()?r.transition._started?(r.transition.cancel(),r.velocity=Math.min(e.touch[r.axis].velocity*r.velocityMultiplier,55),t.prototype.start.call(this)):r._snapBack():(o=2===e.touch.id?0:e.touch[r.axis].velocity,r.velocity=Math.max(Math.min(o*r.velocityMultiplier,55),-55),r.tapCapture.captureNext(),t.prototype.start.call(this)))},e.prototype.tick=function(){var t=this,e=t.dimension,o=t.paneAxis.outOfBounds()?.5:t.friction,r=t.velocity*=o,i=t.movable[t.axis]+r;!t.elastic&&e.outOfBounds(i)&&(i=Math.max(Math.min(i,e.max),e.min),t.velocity=0),t.movable.moveAxis(t.axis,i)},e.prototype._end=function(){this.tapCapture.cancelCapture(),this.end()},e.prototype._snapBack=function(){var t=this,e=t.dimension,o=t.movable[t.axis]>e.max?e.max:e.min;t._moveTo(o)},e.prototype._moveTo=function(t){this.transition.moveTo({location:t,duration:500,ease:Tv.easeOutExpo})},e}(kv),ny=function(t){function e(e){t.call(this,e),Jv(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 ty(this.offset.y)<5&&ty(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&&U(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}(kv),ay=function(t){function e(e){t.call(this);var o=this,r="x"===e.axis,i=ld('<div class="km-touch-scrollbar km-'+(r?"horizontal":"vertical")+'-scrollbar" />');Jv(o,e,{element:i,elementSize:0,movable:new hv(i),scrollMovable:e.movable,alwaysVisible:e.alwaysVisible,size:r?"width":"height"}),o.scrollMovable.bind(ey,o.refresh.bind(o)),o.container.appendChild(i),e.alwaysVisible&&o.show()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.refresh=function(){var t=this,e=t.axis,o=t.dimension,r=o.size,i=t.scrollMovable,n=r/o.total,a=Math.round(-i[e]*n),s=Math.round(r*n);this.element.style.display=n>=1?"none":"",a+s>r?s=r-a:a<0&&(s+=a,a=0),t.elementSize!==s&&(t.element.style[t.size]=s+"px",t.elementSize=s),t.movable.moveAxis(e,a)},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}(D.Class),sy=function(t){function e(e,o){t.call(this);var r=this;this.element=e,this._initOptions(o);var i,n,a=(i=navigator.userAgent,(n=fd(i)).ios||n.android);r._native=r.options.useNative&&a;var s=ld('<div class="km-scroll-header"/>');if(r._native)return I(e,"km-native-scroller"),cd(s,e),void Jv(r,{scrollElement:e,fixedContainer:e.children[0]});e.style.overflow="hidden",I(e,"km-scroll-wrapper"),function(t,e){for(t.appendChild(e);t.firstChild!==e;)e.appendChild(t.firstChild)}(e,ld('<div class="km-scroll-container"/>')),cd(s,e);var l=e.children[1],p=new nv(e),c=new hv(l),h=new sv({element:l,container:e,forcedEnabled:r.options.zoom}),u=this.options.avoidScrolling,f=new $v(e,{touchAction:"pan-y",fastTap:!0,allowSelection:!0,preventDragEvent:!0,captureUpIfMoved:!0,multiTouch:r.options.zoom,supportDoubleTap:r.options.supportDoubleTap,start:function(t){h.refresh();var e=ty(t.x.velocity),o=ty(t.y.velocity),i=2*e>=o,n=function(t,e){return t===e||function(t,e){if(!e)return!1;for(var o=e.parentNode;null!==o;){if(o===t)return!0;o=o.parentNode}return!1}(t,e)}(r.fixedContainer,t.event.target),a=2*o>=e;!n&&!u(t)&&r.enabled&&(h.x.enabled&&i||h.y.enabled&&a)?f.capture():f.cancel()}}),d=new pv({movable:c,dimensions:h,userEvents:f,elastic:r.options.elastic}),v=new ry({movable:c,dimensions:h,userEvents:f,tapCapture:p}),y=new ny({moveTo:function(t){r.scrollTo(t.x,t.y)}});c.bind(ey,(function(){r.scrollTop=-c.y,r.scrollLeft=-c.x,r.trigger(oy,{scrollTop:r.scrollTop,scrollLeft:r.scrollLeft})})),r.options.mousewheelScrolling&&(this._wheelScrollHandler=this._wheelScroll.bind(this),md(e,"wheel",this._wheelScrollHandler)),Jv(r,{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]}),r._initAxis("x"),r._initAxis("y"),r._wheelEnd=function(){r._wheel=!1,r.userEvents.end(0,r._wheelY)},h.refresh(),r.options.pullToRefresh&&r._initPullToRefresh()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initOptions=function(t){this.options=X({},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,o=t.originalEvent||t,r=o.wheelDeltaY;return o.wheelDelta?(void 0===r||r)&&(e=o.wheelDelta):o.detail&&o.axis===o.VERTICAL_AXIS&&(e=10*-o.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(ty(t)),this.scrollElement.scrollTop(ty(e))):(this.dimensions.refresh(),this.movable.moveTo({x:t,y:e}))},e.prototype.animatedScrollTo=function(t,e,o){var r,i;this._native?this.scrollTo(t,e):(r={x:this.movable.x,y:this.movable.y},i={x:t,y:e},this.animatedScroller.setCoordinates(r,i),this.animatedScroller.setCallback(o),this.animatedScroller.start())},e.prototype.pullHandled=function(){},e.prototype.destroy=function(){var t=this.element;xd(t,"wheel",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,o=e.movable,r=e.dimensions[t],i=e.tapCapture,n=e.pane[t],a=new ay({axis:t,movable:o,dimension:r,container:e.element,alwaysVisible:e.options.visibleScrollHints});r.bind(ey,(function(){a.refresh()})),n.bind(ey,(function(){a.show()})),e[t+"inertia"]=new iy({axis:t,paneAxis:n,movable:o,tapCapture:i,userEvents:e.userEvents,dimension:r,elastic:e.options.elastic,friction:e.options.friction||.96,velocityMultiplier:e.options.velocityMultiplier||10,end:function(){a.hide(),e.trigger("scrollEnd",{axis:t,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft})}})},e}(Id);Bt(sy,{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"}}),Sd(sy,["pull",oy,"resize"]);var ly=function(t,e){void 0===e&&(e={}),this.sender=e.sender||t,this.widget=t,this.rtl=Boolean(e.rtl)};ly.prototype.notify=function(t,e){this.widget&&this.widget.trigger(t,e)};const py=ly;var cy=Math,hy=cy.min,uy=cy.pow,fy=D.geometry.Point,dy="marker",vy="location",yy="wheel",gy={bubble:vv,shape:fv,tile:Jd};gy[dy]=Ov;var my=function(t){function e(e,o,r,i){void 0===o&&(o={}),void 0===r&&(r={}),void 0===i&&(i={}),t.call(this),this._init(e,o,r,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._tooltip&&this._tooltip.destroy(),this.navigator&&this.navigator.destroy(),this.attribution&&this.attribution.destroy(),this.zoomControl&&this.zoomControl.destroy(),M(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();xd(this.element,yy,this._mousewheelHandler),t.prototype.destroy.call(this)},e.prototype._init=function(t,e,o,r){void 0===e&&(e={}),void 0===o&&(o={}),void 0===r&&(r={}),this.support=yd(),this.context=r,this.initObserver(r),this.initServices(r),this._notifyObserver("init"),this._initOptions(e),this._setEvents(e),this.crs=new ad,this._initElement(t),this._viewOrigin=this._getOrigin(),this._tooltip=this._createTooltip(),this._initScroller(),this._initMarkers(),this._initControls(),this._initLayers(),this._reset();var i=(0,D.throttle)(this._mousewheel.bind(this),50);this._mousewheelHandler=function(t){t.preventDefault(),i(t)},md(this.element,yy,this._mousewheelHandler)},e.prototype._initOptions=function(t){this.options=X({},this.options,t)},e.prototype._initElement=function(t){this.element=t,I(t,"k-map"),t.style.position="relative",t.setAttribute("data-role","map"),pd(t);var e=ld("<div />");this.element.appendChild(e)},e.prototype.initServices=function(t){void 0===t&&(t={}),this.widgetService=new py(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,o=0;o<e.length;o++)if(e[o].requiresHandlers(t))return!0},e.prototype.trigger=function(e,o){void 0===o&&(o={}),o.sender=this;for(var r=this.observers,i=!1,n=0;n<r.length;n++)r[n].trigger(e,o)&&(i=!0);return i||t.prototype.trigger.call(this,e,o),i},e.prototype._notifyObserver=function(t,e){void 0===e&&(e={}),e.sender=this;for(var o=this.observers,r=!1,i=0;i<o.length;i++)o[i].trigger(t,e)&&(r=!0);return r},e.prototype.zoom=function(t){var e,o=this.options;if(xt(t)){var r=cy.round(Tt(t,o.minZoom,o.maxZoom));o.zoom!==r&&(o.zoom=r,this.widgetService.notify("zoomChange",{zoom:o.zoom}),this._reset()),e=this}else e=o.zoom;return e},e.prototype.center=function(t){var e;if(t){var o=Ff.create(t),r=Ff.create(this.options.center);o.equals(r)||(this.options.center=o.toArray(),this.widgetService.notify(Wd,{center:this.options.center}),this._reset()),e=this}else e=Ff.create(this.options.center);return 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(),pd(e),this._init(e,t,{},this.context),this._reset()},e.prototype.locationToLayer=function(t,e){var o=!this.options.wraparound,r=Ff.create(t);return this.crs.toPoint(r,this._layerSize(e),o)},e.prototype.layerToLocation=function(t,e){var o=!this.options.wraparound,r=fy.create(t);return this.crs.toLocation(r,this._layerSize(e),o)},e.prototype.locationToView=function(t){var e=Ff.create(t),o=this.locationToLayer(this._viewOrigin);return this.locationToLayer(e).translateWith(o.scale(-1))},e.prototype.viewToLocation=function(t,e){var o=this.locationToLayer(this._getOrigin(),e),r=fy.create(t).clone().translateWith(o);return this.layerToLocation(r,e)},e.prototype.eventOffset=function(t){var e,o,r=Ct(this.element);if(t.x&&t.x[vy]||t.y&&t.y[vy])e=t.x[vy]-r.left,o=t.y[vy]-r.top;else{var i=t.originalEvent||t;e=Lt(i.pageX,i.clientX)-r.left,o=Lt(i.pageY,i.clientY)-r.top}return new D.geometry.Point(e,o)},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(),o=t.clientWidth;return this.options.wraparound||(o=hy(e,o)),{width:o,height:hy(e,t.clientHeight)}},e.prototype.exportVisual=function(){return this._reset(),!1},e.prototype.hideTooltip=function(){this._tooltip&&this._tooltip.hide()},e.prototype._setOrigin=function(t,e){var o,r=this.viewSize(),i=this._origin=Ff.create(t);return(o=this.locationToLayer(i,e)).x+=r.width/2,o.y+=r.height/2,this.options.center=this.layerToLocation(o,e).toArray(),this.widgetService.notify(Wd,{center:this.options.center}),this},e.prototype._getOrigin=function(t){var e,o=this.viewSize();return!t&&this._origin||((e=this.locationToLayer(this.center())).x-=o.width/2,e.y-=o.height/2,this._origin=this.layerToLocation(e)),this._origin},e.prototype._setExtent=function(t){var e=Gd.create(t),o=e.se.clone();this.options.wraparound&&o.lng<0&&t.nw.lng>0&&(o.lng=180+(180+o.lng));var r=new Gd(e.nw,o);this.center(r.center());var i,n=this.element.clientWidth,a=this.element.clientHeight;for(i=this.options.maxZoom;i>=this.options.minZoom;i--){var s=this.locationToLayer(r.nw,i),l=this.locationToLayer(r.se,i),p=cy.abs(l.x-s.x),c=cy.abs(l.y-s.y);if(p<=n&&c<=a)break}this.zoom(i)},e.prototype._getExtent=function(){var t=this._getOrigin(),e=this.locationToLayer(t),o=this.viewSize();e.x+=o.width,e.y+=o.height;var r=this.layerToLocation(e);return new Gd(t,r)},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 o=t.position||e,r="."+kd(o).replace(" ","."),i=this.element.querySelector(".k-map-controls"+r)||[];if(0===i.length){var n=document.createElement("div");I(n,"k-map-controls "+kd(o)),i=n,this.element.appendChild(i)}var a=document.createElement("div");return i.appendChild(a),a},e.prototype._createAttribution=function(t){var e=this._createControlElement(t,"bottomRight");this.attribution=new Ld(e,t)},e.prototype._createNavigator=function(t){var e=this._createControlElement(t,"topLeft"),o=this.navigator=new Bd(e,t);this._navigatorPan=this._navigatorPan.bind(this),o.bind("pan",this._navigatorPan),this._navigatorCenter=this._navigatorCenter.bind(this),o.bind("center",this._navigatorCenter)},e.prototype._navigatorPan=function(t){var e=this.scroller,o=e.scrollLeft+t.x,r=e.scrollTop-t.y,i=this._virtualSize,n=this.element.clientWidth,a=this.element.clientHeight;o=Tt(o,i.x.min,i.x.max-n),r=Tt(r,i.y.min,i.y.max-a),this.scroller.one("scroll",gd(this._scrollEnd,this)),this.scroller.scrollTo(-o,-r)},e.prototype._navigatorCenter=function(){this.center(this.options.center)},e.prototype._createZoomControl=function(t){var e=this._createControlElement(t,"topLeft"),o=this.zoomControl=new Vd(e,t);this._zoomControlChange=this._zoomControlChange.bind(this),o.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,o=this.scroller=new sy(this.element.children[0],{friction:t,velocityMultiplier:5,zoom:e,mousewheelScrolling:!1,supportDoubleTap:!0});o.bind("scroll",gd(this._scroll,this)),o.bind("scrollEnd",gd(this._scrollEnd,this)),o.userEvents.bind("gesturestart",gd(this._scaleStart,this)),o.userEvents.bind("gestureend",gd(this._scale,this)),o.userEvents.bind("doubleTap",gd(this._doubleTap,this)),o.userEvents.bind("tap",gd(this._tap,this)),this.scrollElement=o.scrollElement},e.prototype._initLayers=function(){for(var t=this.options.layers,e=this.layers=[],o=0;o<t.length;o++){var r=t[o],i=this._createLayer(r);e.push(i)}},e.prototype._createLayer=function(t){var e=t.type||"shape",o=this.options.layerDefaults[e],r=X({},e===dy?this.options.markerDefaults:o,t),i=new(0,gy[e])(this,r);return e===dy&&(this.markers=i),i},e.prototype._createTooltip=function(){return new Xd(this.widgetService,this.options.tooltip)},e.prototype._initMarkers=function(){(this.options.layers||[]).filter((function(t){return t&&t.type===dy})).length>0||(this.markers=new Ov(this,this.options.markerDefaults),this.markers.add(this.options.markers))},e.prototype._scroll=function(t){var e=this.locationToLayer(this._viewOrigin).round(),o=t.sender.movable,r=new D.geometry.Point(o.x,o.y).scale(-1).scale(1/o.scale);e.x+=r.x,e.y+=r.y,this._scrollOffset=r,this._tooltip.offset=r,this.hideTooltip(),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=Pd(),this.trigger("panEnd",{originalEvent:t,origin:this._getOrigin(),center:this.center()}))},e.prototype._panComplete=function(){return Pd()-(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,o=this._scaleToZoom(e),r=new D.geometry.Point(t.center.x,t.center.y),i=this.viewToLocation(r,o),n=this.locationToLayer(i,o).translate(-r.x,-r.y);this._zoomAround(n,o),this.trigger("zoomEnd",{originalEvent:t})},e.prototype._scaleToZoom=function(t){var e=this._layerSize()*t/this.options.minSize,o=cy.log(e)/cy.log(2);return cy.round(o)},e.prototype._reset=function(){this.attribution&&this.attribution.filter(this.center(),this.zoom()),this._viewOrigin=this._getOrigin(!0),this._resetScroller(),this.hideTooltip(),this.trigger("beforeReset"),this.trigger("reset")},e.prototype._resetScroller=function(){var t=this.scroller,e=t.dimensions.x,o=t.dimensions.y,r=this._layerSize(),i=this.extent().nw,n=this.locationToLayer(i).round();t.movable.round=!0,t.reset(),t.userEvents.cancel();var a=this.zoom();t.dimensions.forcedMinScale=uy(2,this.options.minZoom-a),t.dimensions.maxScale=uy(2,this.options.maxZoom-a);var s={min:-n.x,max:r-n.x},l={min:-n.y,max:r-n.y};if(this.options.wraparound&&(s.max=20*r,s.min=-s.max),!1===this.options.pannable){var p=this.viewSize();s.min=l.min=0,s.max=p.width,l.max=p.height}e.makeVirtual(),o.makeVirtual(),e.virtualSize(s.min,s.max),o.virtualSize(l.min,l.max),this._virtualSize={x:s,y:l}},e.prototype._renderLayers=function(){},e.prototype._layerSize=function(t){var e=Lt(t,this.options.zoom);return this.options.minSize*uy(2,e)},e.prototype._tap=function(t){if(this._panComplete()){var e=this.eventOffset(t);this.hideTooltip(),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,o=this.eventOffset(t),r=this.viewToLocation(o),i=this.locationToLayer(r,e).translate(-o.x,-o.y);this._zoomAround(i,e),this.trigger("zoomEnd",{originalEvent:t})}},e.prototype._mousewheel=function(t){var e=gt(t)>0?-1:1,o=this.options,r=this.zoom(),i=Tt(r+e,o.minZoom,o.maxZoom);if(!1!==o.zoomable&&i!==r&&!this.trigger("zoomStart",{originalEvent:t})){var n=this.eventOffset(t),a=this.viewToLocation(n),s=this.locationToLayer(a,i).translate(-n.x,-n.y);this._zoomAround(s,i),this.trigger("zoomEnd",{originalEvent:t})}},e.prototype._toDocumentCoordinates=function(t){var e=Ct(this.element);return{left:Mt(t.x+e.left),top:Mt(t.y+e.top)}},e}(Id);Bt(my,{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}),Sd(my,["beforeReset","click","markerActivate","markerClick","markerCreated","markerMouseEnter","markerMouseLeave","pan","panEnd","reset","shapeClick","shapeCreated","shapeFeatureCreated","shapeMouseEnter","shapeMouseLeave","zoomEnd","zoomStart"]);const by=my;var _y=1.5,xy=.4,wy="#000",Cy="Arial, Helvetica, sans-serif",Oy="11px "+Cy,Sy="12px "+Cy,Py="16px "+Cy,Ay="transparent",ky="#fff",Ty=function(){return{icon:{border:{width:1}},label:{font:Sy,padding:3},line:{length:10,width:2},visible:!0}},jy=function(){return{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:ky,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}}},Ey=function(){return{gap:_y,spacing:xy,target:{color:"#ff0000"}}},My=function(){return{gap:.5,line:{color:wy,width:1},spacing:xy}},Iy=function(t){return{visible:!0,labels:{font:Oy},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:_y,spacing:xy},boxPlot:jy(),bubble:{border:{width:0},labels:{background:Ay},opacity:.6},bullet:Ey(),candlestick:{border:{_brightness:.8,width:1},downColor:ky,gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:wy,width:1},spacing:.3},column:{gap:_y,spacing:xy},heatmap:{labels:{color:"",background:Ay,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:My(),line:{width:2},notes:Ty(),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:_y,spacing:xy},rangeColumn:{gap:_y,spacing:xy},scatterLine:{width:1},verticalArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalBoxPlot:jy(),verticalBullet:Ey(),verticalLine:{width:2},waterfall:My()}},Ly=function(t){return void 0===t&&(t={}),{axisDefaults:{labels:{font:Sy},notes:Ty(),title:{font:Py,margin:5}},categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:Iy(t),title:{font:Py},subtitle:{font:Sy},legend:{labels:{font:Sy}}}}},6201:(t,e,o)=>{o.r(e),o.d(e,{Popup:()=>st,PopupPropsContext:()=>at,PopupWithoutContext:()=>it});var r=o(3899),i=o(994),n=o(189),a=function(t){t.style.transitionDuration="",Array.from(t.classList).forEach((function(e){e.startsWith("k-slide-")&&t.classList.remove(e)}))},s="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),l=o(4006),p=o(7827),c=o(8259),h=o(8047);const u="bottom",f="center",d="middle",v="left",y="right",g="top",m="fit",b="flip",_="none";var x,w,C,O=function(t,e,o){var r=0;return t+e>o&&(r=o-(t+e)),t<0&&(r=-t),r},S=function(t){var e=t.offset,o=t.size,r=t.anchorSize,i=t.viewPortSize,n=t.anchorAlignPoint,a=t.elementAlignPoint,s=0,l=2*t.margin;if(a!==n&&a!==f&&a!==d&&n!==f&&n!==d){var p=n===g||n===v;e<0&&p?e+(s=o+r+l)+o>i&&(s=0):e>=0&&!p&&(e+o>i&&(s+=-(r+o+l)),e+s<0&&(s=0))}return s},P=(x=function(t){if(!A())return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var o=e.createElement("div");o.style.transform="matrix(10, 0, 0, 10, 0, 0)",o.innerHTML='<div style="position: fixed; top: 10px;">child</div>',e.body.appendChild(o);var r=10!==o.children[0].getBoundingClientRect().top;return e.body.removeChild(o),r},C=!1,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return C||(w=x.apply(void 0,t),C=!0),w}),A=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)};const k={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:P,canUseDOM:A};function T(t){return t.ownerDocument||t.document||t}const j=function(t){return T(t).defaultView},E=function(t){return T(t).documentElement};var M=0;function I(){if(!M&&"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),M=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return M}function L(t){var e=j(t),o=E(t),r={height:e.innerHeight,width:e.innerWidth};return o.scrollHeight-o.clientHeight>0&&(r.width-=I()),r}function R(t){var e=E(t),o=j(t);return{x:o.pageXOffset||e.scrollLeft||0,y:o.pageYOffset||e.scrollTop||0}}const D=function(t){var e=t.getBoundingClientRect(),o=e.left,r=e.top;return e.height||e.width||(e=function(t){var e=t.style,o=e.display,r=e.left,i=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var n=t.getBoundingClientRect();return t.style.display=o,t.style.left=r,t.style.position=i,n}(t)),{top:r,left:o,height:e.height,width:e.width}};function B(t){return t===(t.ownerDocument||{}).body?R(t):{x:t.scrollLeft,y:t.scrollTop}}const N=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||E(t)};function z(t,e){for(var o=[],r=t.parentNode;r&&(o.push(r),r!==e);)r=r.parentNode;return o}function V(t){for(var e=[],o=t.parentNode.firstElementChild;o;)o!==t&&e.push(o),o=o.nextElementSibling;return e}var H=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],U=function(){return k.canUseDOM()?window:null},F=/auto|scroll/,G=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)},W=function(t){if(!t||!k.hasRelativeStackingContext())return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},X=function(){return k.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},K={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,o=t.anchorAlign,r=t.elementRect,i=t.elementAlign,n=t.margin;void 0===n&&(n={});var a=o.horizontal,s=o.vertical,l=i.horizontal,p=i.vertical,c=n.horizontal||0,h=n.vertical||0,v=e.top,g=e.left;return s===u&&(v+=e.height),s!==f&&s!==d||(v+=Math.round(e.height/2)),p===u&&(v-=r.height,h*=-1),p!==f&&p!==d||(v-=Math.round(r.height/2),h*=-1),a===y&&(g+=e.width),a!==f&&a!==d||(g+=Math.round(e.width/2)),l===y&&(g-=r.width,c*=-1),l!==f&&l!==d||(g-=Math.round(r.width/2),c*=-1),{top:v+h,left:g+c}},boundingOffset:function(t){if(!t.getBoundingClientRect){var e=L(t);return{bottom:e.height,left:0,right:e.width,top:0}}var o=t.getBoundingClientRect();return{bottom:o.bottom,left:o.left,right:o.right,top:o.top}},getFontStyles:function(t){var e=U();if(!e||!t)return[];var o=e.getComputedStyle(t);return H.map((function(t){return{key:t,value:o[t]}}))},getWindow:U,hasOffsetParent:function(t){return!!t&&Boolean(t.offsetParent)},offset:function(t){return t?D(t):null},offsetAtPoint:function(t,e){if(!t)return null;var o=t.style,r=o.left,i=o.top,n=o.transition;t.style.transition="none",t.style.left=e.left+"px",t.style.top=e.top+"px";var a=D(t);return t.style.left=r,t.style.top=i,t.offsetHeight,t.style.transition=n,a},position:function(t,e,o){return t&&e?function(t,e,o){void 0===o&&(o=1);var r=e?N(e):null,i=function(t,e){var o=j(t),r=o.getComputedStyle(t),i=D(t),n=e||N(t),a=t.ownerDocument,s=n!==a.body&&n!==a.documentElement,l={top:0,left:0};if("fixed"!==r.position&&s){var p=o.getComputedStyle(n);(l=D(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,r),n=i.top,a=i.left,s=i.height,l=i.width,p=function(t,e){return t?B(t):function(t){var e=N(t);return e?B(e):{x:0,y:0}}(e)}(r,t),c=p.x,h=p.y,u=t.ownerDocument,f=r===u.body||r===u.documentElement?1:o;return{top:n+h*f,left:a+c*f,height:s,width:l}}(t,e,o||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,o=t.anchorAlign,r=t.elementRect,i=t.elementAlign,n=t.collisions,a=t.viewPort,s=t.margin;void 0===s&&(s={});var l=r.top,p=r.left,c=r.height,h=r.width,u=a.height,f=a.width,d=s.horizontal||0,v=s.vertical||0,y=0,g=0,_=n.vertical===m,x=n.horizontal===m,w=n.vertical===b,C=n.horizontal===b;_&&(g+=O(l,c,u)),x&&(y+=O(p,h,f)),w&&(g+=S({margin:v,offset:l,size:c,anchorSize:e.height,viewPortSize:u,anchorAlignPoint:o.vertical,elementAlignPoint:i.vertical})),C&&(y+=S({margin:d,offset:p,size:h,anchorSize:e.width,viewPortSize:f,anchorAlignPoint:o.horizontal,elementAlignPoint:i.horizontal}));var P=w&&0!==g,A=C&&0!==y,k=_&&0!==g,T=x&&0!==y;return{flipped:A||P,fitted:k||T,flip:{horizontal:A,vertical:P},fit:{horizontal:T,vertical:k},offset:{left:y,top:g}}},scrollPosition:R,scrollableParents:function(t){var e=[];if(!k.canUseDOM())return e;for(var o=t.parentElement;o;)(F.test(G(o))||o.hasAttribute("data-scrollable"))&&e.push(o),o=o.parentElement;return e.push(window),e},getRelativeContextElement:W,stackingElementOffset:function(t){var e=W(t);return e?D(e):null},stackingElementScroll:function(t){var e=W(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(t){var e=W(t);return e?{height:e.scrollHeight,width:e.scrollWidth}:null},useRelativePosition:function(t){return Boolean(W(t))},windowViewPort:L,zoomLevel:X,isZoomed:function(){return X()>1},zIndex:function(t,e){if(!t||!k.canUseDOM())return null;var o=function(t,e){for(var o,r,i=z(t),n=e;n&&(o=V(n),!(r=i.reduce((function(t,e){return t.concat(o.filter((function(t){return t===e})))}),[])[0]));)n=n.parentElement;return r}(t,e);if(!o)return null;var r=[t].concat(z(t,o)).reduce((function(t,e){var o=e.style.zIndex||window.getComputedStyle(e).zIndex,r=parseInt(o,10);return r>t?r:t}),0);return r?r+1:null}};const Y=K;const q=function(t){var e=t.anchor,o=t.element,r=t.anchorAlign,i=t.elementAlign,n=t.margin,a=t.offset,s=t.positionMode,l=t.scale||1,p="fixed"!==s&&Y.hasOffsetParent(o)?function(t,e,o,r){var i=k.eitherRect(Y.position(t,e,r),o);return k.scaleRect(i,r)}(e,o,a,l):function(t,e,o,r){var i=function(t,e){return t?{x:0,y:0}:Y.scrollPosition(e)}(t,e),n=k.eitherRect(Y.offset(t),o),a=2*r,s=Y.stackingElementScroll(e);1!==r&&s&&(s.x/=a,s.y/=a);var l=Y.stackingElementOffset(e);return 1!==r&&l&&(l.left/=a,l.top/=a),Y.removeScroll(Y.addScroll(k.removeStackingOffset(k.scaleRect(n,r),l),s),i)}(e,o,a,l),c=k.scaleRect(Y.offset(o),l);return Y.align({anchorAlign:r,anchorRect:p,elementAlign:i,elementRect:c,margin:n})};var Z,Q={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1687259995,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"},$=(Z=function(t,e){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},Z(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}Z(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),J=function(){return J=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},J.apply(this,arguments)};function tt(t,e){if(t===e)return!0;if(!!t!=!!e)return!1;var o=Object.getOwnPropertyNames(t),r=Object.getOwnPropertyNames(e);if(o.length!==r.length)return!1;for(var i=0;i<o.length;i++){var n=o[i];if(t[n]!==e[n])return!1}return!0}var et,ot={left:-1e3,top:0};!function(t){t.hiding="hiding",t.hidden="hidden",t.showing="showing",t.shown="shown",t.reposition="reposition"}(et||(et={}));var rt="k-animation-container-shown",it=function(t){function e(e){var o=t.call(this,e)||this;return o.context=0,o.state={current:et.hidden,previous:et.hidden,props:{}},o._popup=null,o.show=function(t){o.setPosition(t),o.animate(t.firstChild,"enter",o.onOpened),o.setState({current:et.shown,previous:o.state.current})},o.setPosition=function(t){var e=o.props,r=e.anchorAlign,i=e.popupAlign,n=e.collision,a=e.offset,s=e.anchor,l=e.margin,p=e.scale,c=e.positionMode,h=t.style,u=h.width,f=h.height;t.style.width=t.offsetWidth+"px",t.style.height=t.offsetHeight+"px";var d=function(t){var e=t.anchor,o=t.currentLocation,r=t.element,i=t.anchorAlign,n=t.elementAlign,a=t.collisions,s=t.margin,l=t.scale||1,p=Y.offsetAtPoint(r,o),c=k.scaleRect(p,l),h=k.scaleRect(Y.offset(e),l),u=k.eitherRect(h,o),f=t.viewPort||Y.windowViewPort(r);f.width=f.width/l,f.height=f.height/l;var d=Y.restrictToView({anchorAlign:i,anchorRect:u,collisions:a,elementAlign:n,elementRect:c,margin:s,viewPort:f}),v=Y.addOffset(o,d.offset);return{flip:d.flip,flipped:d.flipped,offset:v}}({anchor:s,anchorAlign:r,element:t,elementAlign:i,collisions:n,currentLocation:q({anchor:s,anchorAlign:r,element:t,elementAlign:i,offset:a,margin:l,positionMode:c,scale:p}),margin:o.props.margin});if(t.style.top=d.offset.top+"px",t.style.left=d.offset.left+"px",t.style.width=u,t.style.height=f,o._collisions={fit:d.fit,fitted:d.fitted,flip:d.flip,flipped:d.flipped},o.props.onPosition){var v={target:o,flipped:d.flipped,fitted:d.fitted};o.props.onPosition.call(void 0,v)}},o.onOpened=function(){var t=o._popup;t&&(o.props.show&&t.classList.add(rt),o.attachRepositionHandlers(t),o.props.onOpen&&o.props.onOpen.call(void 0,{target:o}))},o.animate=function(t,e,r){if(o.props.popupAlign){var i,n=o.props.popupAlign,l=n.horizontal,p=n.vertical;i="left"===l&&"center"===p?"right":"right"===l&&"center"===p?"left":"top"===p?"down":"up",o._collisions&&o._collisions.flipped&&(i={down:"up",up:"down",left:"right",right:"left"}[i]),function(t,e,o,r,i){if(0===o)return i();var n="k-slide-"+e+"-"+r,l=n+"-active",p=function(e){e.target===t&&(t.removeEventListener("transitionend",p),a(t),t.style.display="exit"===r?"none":"",i())};t.addEventListener("transitionend",p);var c=t.ownerDocument;if(c){var h=c.defaultView;if(h){var u=function(){a(t),t.classList.add(n),h.requestAnimationFrame((function(){t.style.transitionDuration=o+"ms",t.classList.add(l)}))};s?h.requestAnimationFrame(u):u()}}}(t,i,o.animationDuration[e],e,r)}},o.onClosing=function(t){o.props.show||t.classList.remove(rt),o.detachRepositionHandlers()},o.onClosed=function(){o.state.current===et.hiding&&o.state.previous===et.shown&&o.setState({current:et.hidden,previous:o.state.current}),o.props.onClose&&o.props.onClose.call(void 0,{target:o})},o.getCurrentZIndex=function(){return o.context?o.context+1:100},(0,l.s)(Q),o.reposition=function(t,e,o){var r,i,n,a;void 0===o&&(o={});var s=0;o=o||{};var l=function(){s=!1===o.leading?0:(new Date).getTime(),r=void 0,a=t.apply(i,n),r||(i=n=null)};return function(){var p=(new Date).getTime();s||!1!==o.leading||(s=p);var c=e-(p-s);return i=void 0,n=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=void 0),s=p,a=t.apply(i,n),r||(i=n=null)):r||!1===o.trailing||(r=window.setTimeout(l,c)),a}}(o.reposition.bind(o),16.666666666666668),o}return $(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this._popup},enumerable:!1,configurable:!0}),e.getDerivedStateFromProps=function(t,e){var o=t.show,r=t.anchor,i=t.anchorAlign,n=t.appendTo,a=t.collision,s=t.popupAlign,l=t.className,p=t.popupClass,c=t.style,h=t.offset,u=t.contentKey,f=J(J({},e),{props:{show:o,anchor:r,anchorAlign:i,appendTo:n,collision:a,popupAlign:s,className:l,popupClass:p,style:c,offset:h,contentKey:u}});return t.show?e.current===et.hidden||e.current===et.hiding?J(J({},f),{current:et.showing,previous:e.current}):e.current===et.showing?J(J({},f),{current:et.shown,previous:e.current}):e.current!==et.shown||tt(h,e.props.offset)&&tt(i,e.props.anchorAlign)&&tt(n,e.props.appendTo)&&tt(a,e.props.collision)&&tt(s,e.props.popupAlign)&&tt(c,e.props.style)&&r===e.props.anchor&&p===e.props.popupClass&&l===e.props.className?f:J(J({},f),{current:et.reposition,previous:e.current}):e.current===et.hiding||e.current===et.hidden?J(J({},f),{current:et.hidden,previous:e.current}):J(J({},f),{current:et.hiding,previous:e.current})},e.prototype.componentDidUpdate=function(t){this.state.current===et.showing&&this._popup?this.show(this._popup):this.state.current===et.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===et.reposition&&this.state.previous===et.shown?this.setState({current:et.shown,previous:this.state.current}):this.state.current===et.shown&&t.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},e.prototype.componentDidMount=function(){this.state.current===et.showing&&this._popup&&this.show(this._popup)},e.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},e.prototype.render=function(){var t=this,e=this.props,o=e.children,n=e.className,a=e.popupClass,s=e.show,l=e.id,u=e.positionMode,f=this.props.appendTo?this.props.appendTo:p.N?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===et.reposition&&this.state.previous===et.shown&&this._popup&&this.setPosition(this._popup);var d=Object.assign({},{position:u,top:0,left:-1e4},this.props.style||{}),v=this.state.current===et.hiding;if((s||v)&&f){var y=this.getCurrentZIndex(),g=r.createElement(c.$.Provider,{value:y},r.createElement("div",{className:(0,h.A)("k-animation-container","k-animation-container-relative",n),id:l,ref:function(e){return t._popup=e},style:J({zIndex:y},d)},r.createElement("div",{role:this.props.role,className:(0,h.A)("k-popup",a,"k-child-animation-container"),style:{transitionDelay:"0ms"}},o)));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,o=0;return t&&(!0===t?e=o=300:(e=t.openDuration||0,o=t.closeDuration||0)),{enter:e,exit:o}},enumerable:!1,configurable:!0}),e.prototype.attachRepositionHandlers=function(t){var e=this;this.detachRepositionHandlers(),this._scrollableParents=Y.scrollableParents(this.props.anchor||t),this._scrollableParents&&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:et.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([m,b,_]),vertical:n.oneOf([m,b,_])}),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:m,vertical:b},anchorAlign:{horizontal:v,vertical:u},popupAlign:{horizontal:v,vertical:g},offset:ot,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},e.contextType=c.$,e.displayName="PopupComponent",e}(r.Component),nt=function(){return nt=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},nt.apply(this,arguments)},at=r.createContext((function(t){return t})),st=r.forwardRef((function(t,e){var o=r.useContext(at).call(void 0,t);return r.createElement(it,nt({ref:e},o))}));st.displayName="Popup"},7827:(t,e,o)=>{o.d(e,{N:()=>r});var r=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},8047:(t,e,o)=>{o.d(e,{A:()=>r});var r=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var o={},r=function(t){return t.filter((function(t){return!0!==t&&!!t})).map((function(t){return Array.isArray(t)?r(t):function(t){return"object"==typeof t?Object.keys(t).forEach((function(e){o[e]=t[e]})):o[t]=!0}(t)}))};return r(t),Object.keys(o).map((function(t){return o[t]&&t||null})).filter((function(t){return null!==t})).join(" ")}},8259:(t,e,o)=>{o.d(e,{$:()=>i,u:()=>n});var r=o(3899),i=r.createContext(0),n=function(){return r.useContext(i)};i.displayName="KendoReactZIndexContext"},5410:(t,e,o)=>{o.r(e),o.d(e,{AsyncFocusBlur:()=>G,BrowserSupportService:()=>n,COLLECTION_ACTION:()=>Q,DragAndDrop:()=>Lt,Draggable:()=>Kt,Droppable:()=>qt,FOCUSABLE_ELEMENTS:()=>Jt,FormComponent:()=>y,Icon:()=>pt,IconWrap:()=>yt,IconsContext:()=>dt,Keys:()=>C,Navigation:()=>te,SvgIcon:()=>ut,Typography:()=>At,ZIndexContext:()=>r.$,canUseDOM:()=>a.N,canUseRef:()=>s,classNames:()=>l.A,clone:()=>h,cloneArray:()=>d,cloneDate:()=>c,cloneObject:()=>u,cloneValue:()=>f,createPropsContext:()=>K,dispatchEvent:()=>V,extendDataItem:()=>D,focusFirstFocusableChild:()=>v,getActiveElement:()=>ee,getItemPath:()=>B,getScrollbarWidth:()=>S,getTabIndex:()=>g,getter:()=>x,guid:()=>w,hasRelativeStackingContext:()=>z,kendoThemeMaps:()=>Zt,mapTree:()=>L,mapTreeItem:()=>R,memoizeOne:()=>$t,noop:()=>O,setScrollbarWidth:()=>P,setter:()=>T,svgIconPropType:()=>st,toIconClass:()=>at,toIconName:()=>nt,useAsyncFocusBlur:()=>U,useCollection:()=>tt,useCustomComponent:()=>J,useDir:()=>q,useDocument:()=>et,useDraggable:()=>Xt,useDroppable:()=>Yt,useMouse:()=>$,usePropsContext:()=>W,useRtl:()=>Z,useWindow:()=>ot,useZIndexContext:()=>r.u,validatePackage:()=>N.s,withPropsContext:()=>Y});var r=o(8259),i=function(){return"undefined"!=typeof document?document:{}},n=function(){function t(){this.scrollbar=0}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:!1,configurable:!0}),t}(),a=o(7827),s=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=o(8047),p=o(3899),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 o in t)if(t.hasOwnProperty(o)){var r=t[o];e[o]=f(r,e[o])}}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 o=e||{};return u(t,o),o}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,o){var r="string"==typeof t?parseInt(t,void 0):t;if(NaN!==r)return void 0!==r?r:e?o?void 0:-1:0},m=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function b(t){var e=[];return t.replace(m,(function(t,o,r,i){e.push(void 0!==o?o:r||i)})),e}var _={};function x(t){if(_[t])return _[t];var e=b(t);return _[t]=function(t){for(var o=t,r=0;r<e.length&&o;r++)o=o[e[r]];return o},_[t]}_.undefined=function(){};var w=function(){var t,e,o="";for(t=0;t<32;t++)e=16*Math.random()|0,8!==t&&12!==t&&16!==t&&20!==t||(o+="-"),o+=(12===t?4:16===t?3&e|8:e).toString(16);return o},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(){},S=function(){return!(!a.N||!document.body)&&(new n).scrollbarWidth},P=function(){if(!a.N||!document.body)return!1;var t=(new n).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width","".concat(t,"px"))},A={undefined:function(t){return t}},k=function(t,e){return e&&e.arrays&&!isNaN(Number(t))?[]:{}};function T(t){if(A[t])return A[t];var e=b(t);return A[t]=function(t,o,r){for(var i=t,n=e.length-1,a=0;a<n&&i;a++)i=i[e[a]]=i[e[a]]||k(e[a+1],r);i[e[n]]=o},A[t]}var j=function(){return j=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},j.apply(this,arguments)},E=function(t,e,o){if(o||2===arguments.length)for(var r,i=0,n=e.length;i<n;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function M(t,e,o){var r;return o?j(j({},t),((r={})[e]=o.length?E([],o,!0):void 0,r)):t&&t[e]?E([],t[e],!0):[]}function I(t,e,o){if(t[e]){var r=M(t,e).map((function(t){return I(t,e,o)}));return o(M(t,e,r))}return o(t)}var L=function(t,e,o){return E([],t.map((function(t){return I(t,e,o)})),!0)},R=function(t,e,o,r){for(var i=t,n=[],a=0;a<e.length;a++)i=i[e[a]],i=Array.isArray(i)?i:i[o],n.push(i);var s=n.length>1?n[n.length-2]:t,l=e[e.length-1],p=r(s[l]);s.splice(l,1,p)},D=function(t,e,o){var r;return Object.assign({},t,t[e]?((r={})[e]=t[e].slice(),r):{},o||{})},B=function(t,e,o){var r=[],i=E([],e,!0);if(i.length){var n=t[i.shift()||0];for(r.push(n);i.length&&o;)n=n[o][i.shift()||0],r.push(n)}return r},N=o(4006),z=function(t){if(!a.N)return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var o=e.createElement("div");o.style.transform="matrix(10, 0, 0, 10, 0, 0)";var r=e.createElement("div");r.appendChild(e.createTextNode("child")),r.style.position="fixed",r.style.top="10px",o.appendChild(r),e.body.appendChild(o);var i=10!==r.getBoundingClientRect().top;return e.body.removeChild(o),i};function V(t,e,o,r){if(t){var i={syntheticEvent:e,nativeEvent:e.nativeEvent,target:o};t.call(void 0,Object.assign(i,r))}}var H=function(t,e,o){if(o||2===arguments.length)for(var r,i=0,n=e.length;i<n;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function U(t){var e=t.onFocus,o=t.onBlur,r=t.onSyncFocus,i=t.onSyncBlur,n=p.useRef(!1),a=p.useRef(0),s=p.useCallback((function(t){clearTimeout(a.current),a.current=window.setTimeout((function(){return t()}))}),[a]),l=p.useCallback((function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];clearTimeout(a.current),r&&r.call(void 0,t[0]),n.current||(n.current=!0,e&&e.call.apply(e,H([void 0],t,!1)))}),[n,e,r]),c=p.useCallback((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];i&&i.call(void 0,t[0]),s((function(){n.current&&o&&(n.current=!1,o.call.apply(o,H([void 0],t,!1)))}))}),[n,s,o,i]);return p.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:l,onBlur:c}}var F=function(){return F=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},F.apply(this,arguments)},G=function(t){var e=t.children,o=U({onFocus:t.onFocus,onBlur:t.onBlur,onSyncFocus:t.onSyncFocus,onSyncBlur:t.onSyncBlur});return p.createElement(p.Fragment,null,e.call(void 0,F({},o)))},W=function(t,e){return p.useContext(t)(e)},X=function(){return X=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},X.apply(this,arguments)},K=function(){return p.createContext((function(t){return t}))},Y=function(t,e){return p.forwardRef((function(o,r){var i=W(t,o);return p.createElement(e,X({},i,{ref:r}))}))};function q(t,e,o){var r=p.useState(e),i=r[0],n=r[1];return p.useEffect((function(){if(!i&&window&&t.current){var e=window.getComputedStyle(t.current).direction;e&&n(e)}}),o),i}function Z(t,e,o){var r=p.useState(e),i=r[0],n=r[1];return p.useEffect((function(){if(!i&&window&&t.current){var e=window.getComputedStyle(t.current).direction;e&&n(e)}}),o),i}var Q,$=function(t,e,o){void 0===o&&(o={});var r=p.useCallback((function(r){o.onMouseDown&&o.onMouseDown.call(void 0,r),t.onMouseDown&&t.onMouseDown.call(void 0,{target:e.current,syntheticEvent:r})}),[o.onMouseDown,t.onMouseDown,e]),i=p.useCallback((function(r){o.onMouseUp&&o.onMouseUp.call(void 0,r),t.onMouseUp&&t.onMouseUp.call(void 0,{target:e.current,syntheticEvent:r})}),[o.onMouseUp,t.onMouseUp,e]);return{onClick:p.useCallback((function(r){o.onClick&&o.onClick.call(void 0,r),t.onClick&&t.onClick.call(void 0,{target:e.current,syntheticEvent:r})}),[o.onClick,t.onClick,e]),onMouseUp:i,onMouseDown:r,onDoubleClick:p.useCallback((function(r){o.onDoubleClick&&o.onDoubleClick.call(void 0,r),t.onDoubleClick&&t.onDoubleClick.call(void 0,{target:e.current,syntheticEvent:r})}),[o.onDoubleClick,t.onDoubleClick,e]),onMouseEnter:p.useCallback((function(r){o.onMouseEnter&&o.onMouseEnter.call(void 0,r),t.onMouseEnter&&t.onMouseEnter.call(void 0,{target:e.current,syntheticEvent:r})}),[o.onMouseEnter,t.onMouseEnter,e]),onMouseLeave:p.useCallback((function(r){o.onMouseLeave&&o.onMouseLeave.call(void 0,r),t.onMouseLeave&&t.onMouseLeave.call(void 0,{target:e.current,syntheticEvent:r})}),[o.onMouseLeave,t.onMouseLeave,e]),onMouseMove:p.useCallback((function(r){o.onMouseMove&&o.onMouseMove.call(void 0,r),t.onMouseMove&&t.onMouseMove.call(void 0,{target:e.current,syntheticEvent:r})}),[o.onMouseMove,t.onMouseMove,e]),onMouseOut:p.useCallback((function(r){o.onMouseOut&&o.onMouseOut.call(void 0,r),t.onMouseOut&&t.onMouseOut.call(void 0,{target:e.current,syntheticEvent:r})}),[o.onMouseOut,t.onMouseOut,e]),onMouseOver:p.useCallback((function(r){o.onMouseOver&&o.onMouseOver.call(void 0,r),t.onMouseOver&&t.onMouseOver.call(void 0,{target:e.current,syntheticEvent:r})}),[o.onMouseOver,t.onMouseOver,e])}},J=function(t){return[t,{}]};!function(t){t[t.add=0]="add",t[t.remove=1]="remove"}(Q||(Q={}));var tt=function(t){void 0===t&&(t=[]);var e=p.useRef(t),o=p.useCallback((function(t){switch(t.type){case Q.add:e.current.push(t.item);break;case Q.remove:var o=e.current.indexOf(t.item);e.current.splice(o,1)}}),[]);return[e.current,o]},et=function(t){var e=p.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]);return p.useCallback((function(){var t=e();return t&&t.ownerDocument||document}),[e])},ot=function(t){var e=et(t);return p.useCallback((function(){var t=e();return t&&t.defaultView||window}),[e])},rt=o(189),it={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl",xxlarge:"k-icon-xxl",xxxlarge:"k-icon-xxxl"},nt=function(t){return t.replace(/^k-i-/,"")},at=function(t){return"k-i-"+t},st=rt.shape({name:rt.string.isRequired,content:rt.string.isRequired,viewBox:rt.string.isRequired}),lt=function(){return lt=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},lt.apply(this,arguments)},pt=p.forwardRef((function(t,e){var o=t.className,r=t.name,i=t.themeColor,n=t.size,a=t.flip,s=t.style,c=t.id,h=t.tabIndex,u=function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o}(t,["className","name","themeColor","size","flip","style","id","tabIndex"]),f=p.useRef(null),d=p.useRef(null);p.useImperativeHandle(f,(function(){return{element:d.current}})),p.useImperativeHandle(e,(function(){return f.current}));var v=p.useMemo((function(){return n||ct.size}),[n]),y=p.useMemo((function(){return a||ct.flip}),[a]),g=p.useMemo((function(){var t;return(0,l.A)("k-icon",r&&at(r),((t={})["k-color-".concat(i)]=i,t["k-flip-h"]="horizontal"===y||"both"===y,t["k-flip-v"]="vertical"===y||"both"===y,t),it[v],o)}),[r,i,v,y,o]),m=$(t,f);return p.createElement("span",lt({ref:d},u,m,{className:g,id:c,tabIndex:h,style:s,role:"presentation"}))}));pt.propTypes={style:rt.object,classNames:rt.string,name:rt.string,themeColor:rt.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:rt.oneOf(["default","xsmall","small","medium","large","xlarge","xxlarge","xxxlarge"]),flip:rt.oneOf(["default","horizontal","vertical","both"])};var ct={size:"default",flip:"default"};pt.displayName="KendoIcon";var ht=function(){return ht=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ht.apply(this,arguments)},ut=p.forwardRef((function(t,e){var o=t.children,r=t.className,i=t.svgClassName,n=t.icon,a=t.flip,s=t.id,c=t.tabIndex,h=t.size,u=t.style,f=t.svgStyle,d=t.themeColor,v=t.viewBox,y=(t.name,function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o}(t,["children","className","svgClassName","icon","flip","id","tabIndex","size","style","svgStyle","themeColor","viewBox","name"])),g=p.useRef(null);p.useImperativeHandle(e,(function(){return{element:g.current}}));var m=p.useMemo((function(){return n?n.name:ft.icon}),[n]),b=p.useMemo((function(){return h||ft.size}),[h]),_=p.useMemo((function(){return a||ft.flip}),[a]),x=p.useMemo((function(){return v||ft.viewBox}),[v]),w=p.useMemo((function(){var t;return(0,l.A)("k-svg-icon","k-svg-i-"+m,((t={})["k-color-".concat(d)]=d,t["k-flip-h"]="horizontal"===_||"both"===_,t["k-flip-v"]="vertical"===_||"both"===_,t),it[b],r)}),[m,d,b,_,r]),C=p.useMemo((function(){return t.width&&t.height?ht({width:t.width,height:t.height},u):t.width?ht({width:t.width,height:t.width},u):t.height?ht({width:t.height,height:t.height},u):ht({},u)}),[t.width,t.height,u]);return p.createElement("span",{className:w,style:C,ref:g},p.createElement("svg",ht({id:s,className:i,style:f,"aria-hidden":!0,tabIndex:c,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:n?n.viewBox:x,dangerouslySetInnerHTML:n?{__html:n.content}:void 0},y),n?void 0:o))}));ut.propTypes={style:rt.object,classNames:rt.string,children:rt.any,icon:rt.object,themeColor:rt.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:rt.oneOf(["default","xsmall","small","medium","large","xlarge","xxlarge","xxxlarge"]),flip:rt.oneOf(["default","horizontal","vertical","both"])};var ft={size:"default",flip:"default",icon:"",viewBox:"0 0 24 24"};ut.displayName="KendoSvgIcon";var dt=p.createContext({type:"svg"});dt.displayName="KendoReactIconsContext";var vt=function(){return vt=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},vt.apply(this,arguments)},yt=p.forwardRef((function(t,e){var o,r=p.useContext(dt),i=r.type,n=r.icons,a=t.icon,s=function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o}(t,["icon"]),l=(null===(o=t.icon)||void 0===o?void 0:o.name)||t.name,c=l&&n&&n[l]&&"string"!=typeof n[l]?n[l]:a;return l=l&&n&&n[l]&&"string"==typeof n[l]?n[l]:l,"svg"===i&&c?p.createElement(ut,vt({},t,{icon:c,ref:e})):p.createElement(pt,vt({},s,{name:l,ref:e}))}));yt.displayName="KendoIconWrap";var gt={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},mt={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},bt={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"},_t={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},xt={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},wt={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},Ct={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},Ot={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"},St=function(){return St=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},St.apply(this,arguments)},Pt=function(t){var e=p.forwardRef((function(e,o){var r=e.id,i=e.style,n=e.className,a=e.fontSize,s=e.fontWeight,l=e.textAlign,c=e.textTransform,h=e.themeColor,u=e.margin,f=function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o}(e,["id","style","className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),d=p.useRef(null),v=p.useRef(null);p.useImperativeHandle(d,(function(){return{element:v.current,props:e}})),p.useImperativeHandle(o,(function(){return d.current}));var y=t;return p.createElement(y,St({id:r,ref:v,className:["k-".concat("p"===t?"paragraph":t),gt[a],mt[s],wt[l],Ct[c],Ot[h],function(){if(void 0!==u){if("string"==typeof u)return[bt[u]];if("number"==typeof u&&u>=0&&u<=24)return["k-m-".concat(u)];if("object"==typeof u){var t=[];return Object.keys(u).forEach((function(e){var o,r,i;null!==u[e]&&void 0!==u[e]&&t.push((o=e,i="string"==typeof(r=u[e])?_t[r]:r,"".concat(xt[o]).concat(i)))})),t.join(" ")}}}(),n].filter((function(t){return void 0!==t})).join(" "),style:i},f),e.children)}));return e.propTypes={style:rt.object,className:rt.string,fontSize:rt.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:rt.oneOf(["light","normal","bold"]),margin:rt.oneOfType([rt.number,rt.object,rt.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:rt.oneOf(["left","right","center","justify"]),textTransform:rt.oneOf(["lowercase","uppercase","capitalize"]),themeColor:rt.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},e.displayName="KendoReactTypography".concat(t.toUpperCase()),e},At={h1:Pt("h1"),h2:Pt("h2"),h3:Pt("h3"),h4:Pt("h4"),h5:Pt("h5"),h6:Pt("h6"),p:Pt("p"),code:Pt("code"),pre:Pt("pre")},kt=function(){return kt=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},kt.apply(this,arguments)},Tt=function(t,e,o){var r=p.useState(e||t),i=r[0],n=r[1];return[void 0!==e?e:i,p.useCallback((function(t,e){n(t),o&&o.call(void 0,kt(kt({},e),{value:t}))}),[o,n])]},jt=p.createContext([void 0,O]),Et=p.createContext([void 0,O]),Mt=p.createContext([[],O,O]),It=p.createContext([[],O,O]),Lt=function(t){var e=Tt(null,void 0),o=e[0],r=e[1],i=Tt(null,void 0),n=i[0],a=i[1],s=tt([]),l=s[0],c=s[1],h=tt([]),u=h[0],f=h[1];return p.createElement(jt.Provider,{value:[o,r]},p.createElement(Et.Provider,{value:[n,a]},p.createElement(Mt.Provider,{value:[l,function(t){c({type:Q.add,item:t})},function(t){c({type:Q.remove,item:t})}]},p.createElement(It.Provider,{value:[u,function(t){f({type:Q.add,item:t})},function(t){f({type:Q.remove,item:t})}]},t.children))))};Lt.displayName="KendoReactDragAndDrop";var Rt,Dt=function(){var t=window&&window.navigator.userAgent;if(!t)return!1;var e=!1,o=[],r={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 r)if(r.hasOwnProperty(i)&&(o=t.match(r[i]))){(e={})[i]=!0,e[o[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,e.version=parseInt(document.DOCUMENT_NODE||o[2],10);break}return e},Bt=function(t){return t&&t.ownerDocument||window.document},Nt=function(t){var e=Dt(),o=Bt(t);return e.edge||e.safari?o.body:o.documentElement},zt=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},Vt=function(t){var e=Nt(t);if(!t||t===document.body||t===document.documentElement)return e;for(var o=t;o&&o!==document.body&&o.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&o.nodeType!==Node.DOCUMENT_NODE&&!zt(o);)o=o.parentNode;return!o||o!==document.body&&o.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?o:e};!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"}(Rt||(Rt={}));var Ht=function(){},Ut=function(t,e,o){void 0===o&&(o={});var r,i,n,a,s,l=o.onIsPressedChange,p=void 0===l?Ht:l,c=o.onIsScrollingChange,h=void 0===c?Ht:c,u=o.onVelocityChange,f=void 0===u?Ht:u,d=o.onOffsetChange,v=void 0===d?Ht:d,y=o.onPageOffsetChange,g=void 0===y?Ht:y,m=o.onClientOffsetChange,b=void 0===m?Ht:m,_=o.onScrollOffsetChange,x=void 0===_?Ht:_,w=o.onInitialScrollOffsetChange,C=void 0===w?Ht:w,O=e.payload,S=O.element,P=O.hint,A=t.autoScrollDirection,k=t.scrollableParent,T=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(T.type){case Rt.POINTER_DOWN:if(T.type===Rt.POINTER_DOWN&&(!T.originalEvent.isPrimary||0!==T.originalEvent.button))break;case Rt.MOUSE_DOWN:if(T.type===Rt.MOUSE_DOWN&&T.originalEvent.which&&T.originalEvent.which>1||t.ignoreMouse)break;case Rt.TOUCH_START:if(T.type===Rt.TOUCH_START&&1!==T.originalEvent.touches.length)break;case Rt.START:var j=k||Vt(e.payload.element);C(j instanceof Window?{x:j.scrollX,y:j.scrollY}:{x:j.scrollLeft,y:j.scrollTop}),b({x:T.clientX,y:T.clientY}),g({x:T.pageX,y:T.pageY}),v({x:T.offsetX,y:T.offsetY}),p(!0),O.onPress&&O.onPress(T);break;case Rt.SCROLL:if(T.type===Rt.SCROLL&&!t.pressed)break;var E=k||Vt(S),M=E instanceof Window?{x:E.scrollX,y:E.scrollY}:{x:E.scrollLeft,y:E.scrollTop};T.scrollX=M.x-t.initialScrollOffset.x,T.scrollY=M.y-t.initialScrollOffset.y,x({x:T.scrollX,y:T.scrollY});case Rt.POINTER_MOVE:if(T.type===Rt.POINTER_MOVE&&!T.originalEvent.isPrimary)break;case Rt.MOUSE_MOVE:case Rt.TOUCH_MOVE:if(T.type===Rt.TOUCH_MOVE&&1!==T.originalEvent.touches.length)break;case Rt.MOVE:if(t.pressed){if(t.autoScroll&&"scroll"!==T.originalEvent.type&&S){var I=Bt(S),L=k||Vt(I.elementFromPoint(T.clientX,T.clientY)),R=(r=T.clientX,i=T.clientY,n=function(t,e){var o=Nt(t);if(t===o)return{top:o.scrollTop,left:o.scrollLeft,bottom:o.scrollTop+e.innerHeight,right:o.scrollLeft+e.innerWidth};var r=t.getBoundingClientRect();return{bottom:r.top+r.height,right:r.left+r.width,left:r.left,top:r.top}}(L,function(t){var e=Bt(t);return e&&e.defaultView||window}(S)),a={x:0,y:0},s=50,r-n.left<s?a.x=-(s-(r-n.left)):n.right-r<s&&(a.x=s-(n.right-r)),i-n.top<s?a.y=-(s-(i-n.top)):n.bottom-i<s&&(a.y=s-(n.bottom-i)),a);f({x:A&&!1===A.horizontal?0:R.x,y:A&&!1===A.vertical?0:R.y}),h(0!==R.y||0!==R.x)}!t.drag&&O.onDragStart&&O.onDragStart(T),O.onDrag&&O.onDrag(T);var D=function(t,e){var o=0,r=null;return e.forEach((function(e){if(e&&t){var i=function(t,e){var o=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=Math.max(r.top,o.top),n=Math.max(r.left,o.left),a=Math.min(r.left+r.width,o.left+o.width),s=Math.min(r.top+r.height,o.top+o.height),l=a-n,p=s-i;if(n<a&&i<s){var c=r.width*r.height,h=o.width*o.height,u=l*p;return Number((u/(c+h-u)).toFixed(4))}return 0}(t,e);i>o&&(o=i,r=e)}})),r}(P||S,t.drops.map((function(t){return t&&t.element})).filter((function(t){return t!==(P||S)}))),B=t.drops.find((function(t){return t.element===D}));B&&D&&function(t,e,o){var r=o.getBoundingClientRect();return r.top<=e&&r.left<=t&&e<=r.bottom&&t<=r.right}(T.clientX,T.clientY,k||Vt(D))&&D!==S?(t.drop&&t.drop.element)!==D?(t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(T),B.onDragEnter&&B.onDragEnter(T)):B.onDragOver&&B.onDragOver(T):t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(T)}b({x:T.clientX,y:T.clientY}),g({x:T.pageX,y:T.pageY});break;case Rt.POINTER_UP:if(T.type===Rt.POINTER_UP&&!T.originalEvent.isPrimary)break;case Rt.MOUSE_UP:case Rt.TOUCH_END:if(T.type===Rt.TOUCH_END&&1!==T.originalEvent.touches.length)break;case Rt.END:p(!1),h(!1),x({x:0,y:0}),O.onRelease&&O.onRelease(T),t.drop&&t.drop.onDrop&&t.drop.onDrop(T),t.drag&&O.onDragEnd&&O.onDragEnd(T);break;case Rt.POINTER_CANCEL:case Rt.CONTEXT_MENU:case Rt.TOUCH_CANCEL:case Rt.CANCEL:p(!1),h(!1),x({x:0,y:0}),O.onDragEnd&&O.onDragEnd(T),t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(T)}},Ft=function(t,e){if(t){var o,r;t===Nt(t)?(o=document.body.scrollHeight>window.innerHeight,r=document.body.scrollWidth>window.innerWidth):(o=t.offsetHeight<=t.scrollHeight,r=t.offsetWidth<=t.scrollWidth);var i=t.scrollTop+e.y,n=o&&i>0&&i<t.scrollHeight,a=t.scrollLeft+e.x,s=r&&a>0&&a<t.scrollWidth;n?t.scrollTop+=e.y:o&&i<0&&(t.scrollTop=0),s?t.scrollLeft+=e.x:r&&a<0&&(t.scrollLeft=0)}},Gt=function(t,e){var o=p.useContext(t),r=o[0],i=o[1],n=p.useState(e),a=n[0],s=n[1];return[void 0!==r?r:a,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];void 0!==r?i.apply(void 0,t):s(t[0])}]},Wt=2e3;function Xt(t,e,o){void 0===o&&(o={});var r=e.onPress,i=void 0===r?O:r,n=e.onRelease,a=void 0===n?O:n,s=e.onDragStart,l=void 0===s?O:s,c=e.onDrag,h=void 0===c?O:c,u=e.onDragEnd,f=void 0===u?O:u,d=o.hint,v=void 0===d?null:d,y=o.mouseOnly,g=void 0!==y&&y,m=o.autoScroll,b=void 0===m||m,_=o.scrollContainer,x=void 0===_?null:_,w=p.useState(!1),C=w[0],S=w[1],P=p.useState(!1),A=P[0],k=P[1],T=Gt(Et)[0],j=Gt(jt),E=j[0],M=j[1],I=p.useContext(It)[0],L=p.useContext(Mt),R=L[0],D=L[1],B=L[2],N=p.useRef({x:0,y:0}),z=p.useRef(),V=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}),X=p.useRef({x:0,y:0}),K=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 b&&b.boundaryElementRef&&b.boundaryElementRef.current&&b.boundaryElementRef.current.element?b.boundaryElementRef.current.element:"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current?b.boundaryElementRef.current:null}),[b]),ot=p.useRef(null);p.useImperativeHandle(ot,(function(){return{element:$(),hint:J(),onPress:vt,onDragStart:gt,onDrag:mt,onDragEnd:bt,onRelease:yt,data:t.current}}));var rt=p.useCallback((function(){var t=$();return t&&t.ownerDocument||document}),[$]),it=p.useCallback((function(){var t=rt();return t&&t.defaultView||window}),[rt]),nt=p.useCallback((function(){return{drag:E?E.current:null,drop:T?T.current:null,drags:R.map((function(t){return t.current})),drops:I.map((function(t){return t.current})),pressed:C,ignoreMouse:V.current,scrollOffset:Y.current,offset:G.current,pageOffset:W.current,initialScrollOffset:q.current,clientOffset:X.current,initialClientOffset:K.current,velocity:N.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:et(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:A}}),[E,T,R,I,C,b,et,A]),at=p.useCallback((function(t){S(t)}),[]),st=p.useCallback((function(t){k(t)}),[]),lt=p.useCallback((function(t){N.current=t}),[]),pt=p.useCallback((function(t){G.current=t}),[]),ct=p.useCallback((function(t){X.current=t}),[]),ht=p.useCallback((function(t){W.current=t}),[]),ut=p.useCallback((function(t){K.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){a(t)}),[a]),gt=p.useCallback((function(e){M(ot,{target:t.current,event:e}),l(e)}),[M,t,l]),mt=p.useCallback((function(t){h(t)}),[h]),bt=p.useCallback((function(e){F.current||(M(null,{target:t.current,event:e}),f(e))}),[f,M,t]),_t=p.useCallback((function(t){Ut(nt(),{event:t,payload:ot.current},{onVelocityChange:lt,onOffsetChange:pt,onClientOffsetChange:ct,onPageOffsetChange:ht,onInitialClientOffsetChange:ut,onScrollOffsetChange:ft,onInitialScrollOffsetChange:dt,onIsPressedChange:at,onIsScrollingChange:st})}),[nt,lt,pt,ht,ct,ut,dt,at,ft,st]),xt=p.useCallback((function(t){_t(t)}),[_t]),wt=p.useCallback((function(t){_t(t)}),[_t]),Ct=p.useCallback((function(t){_t(t)}),[_t]),Ot=p.useCallback((function(t){_t(t)}),[_t]),St=p.useCallback((function(t){_t(t)}),[_t]),Pt=p.useCallback((function(t){_t(t)}),[_t]),At=p.useCallback((function(t){_t(t)}),[_t]),kt=p.useCallback((function(t){t.preventDefault(),_t(t)}),[_t]),Tt=p.useCallback((function(t){t.preventDefault(),_t(t)}),[_t]),Lt=p.useCallback((function(t){t.preventDefault(),_t(t)}),[_t]),Rt=p.useCallback((function(t){if(0===t.touches.length&&1===t.changedTouches.length){var e=it();V.current=!0,H.current=e.setTimeout((function(){V.current=!1}),Wt)}_t(t)}),[_t,it]),Dt=p.useCallback((function(t){_t(t)}),[_t]),Bt=p.useCallback((function(){var t=$();if(t){var e=t.style.touchAction;return t.style.touchAction="none",function(){t.style.touchAction=e}}}),[$]),Nt=p.useCallback((function(){return D(ot),function(){B(ot)}}),[B,D]);p.useEffect((function(){var t=it();if(A){var e=tt()||Vt(document.elementFromPoint(X.current.x,X.current.y));t.clearInterval(z.current),z.current=t.setInterval((function(){Ft(e,{x:N.current.x,y:N.current.y})}),50)}return function(){t.clearInterval(z.current)}}),[$,tt,it,A]),p.useEffect(Bt,[Bt]),p.useEffect((function(){var t=it(),e=$(),o=rt();return Q?(e&&(U.current=Vt(e),U.current&&U.current.addEventListener("scroll",Dt,{passive:!0}),e.addEventListener("pointerdown",xt,{passive:!0})),C&&(o.addEventListener("pointermove",wt),o.addEventListener("pointerup",Ot,!0),o.addEventListener("contextmenu",kt),o.addEventListener("pointercancel",Ct,{passive:!0}))):(t.addEventListener("touchmove",O,{capture:!1,passive:!1}),e&&(e.addEventListener("mousedown",St,{passive:!0}),g||(e.addEventListener("touchstart",Tt,{passive:!0}),C&&(e.addEventListener("touchmove",Lt,{passive:!0}),e.addEventListener("touchend",Rt,{passive:!0})))),C&&(o.addEventListener("mousemove",Pt,{passive:!0}),o.addEventListener("mouseup",At,{passive:!0}))),function(){U.current&&U.current.removeEventListener("scroll",Dt),e&&(e.removeEventListener("pointerdown",xt),e.removeEventListener("mousedown",St),e.removeEventListener("touchstart",Tt),e.removeEventListener("touchmove",Lt),e.removeEventListener("touchend",Rt)),o.removeEventListener("pointermove",wt),o.removeEventListener("pointerup",Ot,!0),o.removeEventListener("contextmenu",kt),o.removeEventListener("pointercancel",Ct),o.removeEventListener("mousemove",Pt),o.removeEventListener("mouseup",At),t.removeEventListener("touchmove",O),t.clearTimeout(H.current)}}),[C,it,$,rt,g,Q,kt,St,Pt,At,Ct,xt,wt,Ot,Rt,Lt,Tt,Dt]),p.useEffect((function(){return F.current=!1,function(){F.current=!0}}),[]),p.useLayoutEffect(Nt,[Nt])}var Kt=p.forwardRef((function(t,e){var o=p.useRef(null),r=p.useRef(null),i=p.useCallback((function(){return o.current&&o.current.element?o.current.element:o.current}),[o]);p.useImperativeHandle(r,(function(){return{element:i()||null}})),p.useImperativeHandle(e,(function(){return r.current})),p.useImperativeHandle(t.childRef,(function(){return o.current}));var n=p.useCallback((function(e){t.onPress&&t.onPress({element:i(),target:r.current,event:e})}),[i,t.onPress]),a=p.useCallback((function(e){t.onRelease&&t.onRelease({element:i(),target:r.current,event:e})}),[i,t.onRelease]),s=p.useCallback((function(e){t.onDragStart&&t.onDragStart({element:i(),target:r.current,event:e})}),[t,i]),l=p.useCallback((function(e){t.onDrag&&t.onDrag({element:i(),target:r.current,event:e})}),[i,t.onDrag]),c=p.useCallback((function(e){t.onDragEnd&&t.onDragEnd({element:i(),target:r.current,event:e})}),[i,t.onDragEnd]);return Xt(o,{onPress:n,onRelease:a,onDragStart:s,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:o}):null}));function Yt(t,e){void 0===e&&(e={onDragEnter:O,onDragOver:O,onDragLeave:O,onDrop:O});var o=e.onDragEnter,r=void 0===o?O:o,i=e.onDragOver,n=void 0===i?O:i,a=e.onDragLeave,s=void 0===a?O:a,l=e.onDrop,c=void 0===l?O:l,h=Gt(Et)[1],u=p.useContext(It),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:b,onDrop:_,data:t.current}}));var g=p.useCallback((function(e){h(y,{target:t.current,event:e}),r(e)}),[h,t,r]),m=p.useCallback((function(t){n(t)}),[n]),b=p.useCallback((function(e){h(null,{target:t.current,event:e}),s(e)}),[h,t,s]),_=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])}Kt.displayName="KendoReactDraggable";var qt=p.forwardRef((function(t,e){var o=p.useRef(null),r=p.useRef(null),i=p.useCallback((function(){return o.current&&o.current.element?o.current.element:o.current}),[o]);p.useImperativeHandle(r,(function(){return{element:i()||void 0}})),p.useImperativeHandle(e,(function(){return r.current})),p.useImperativeHandle(t.childRef,(function(){return o.current}));var n=p.useCallback((function(e){t.onDragEnter&&t.onDragEnter({element:i(),target:r.current,event:e})}),[t.onDragEnter,i]),a=p.useCallback((function(e){t.onDragOver&&t.onDragOver({element:i(),target:r.current,event:e})}),[i,t.onDragOver]),s=p.useCallback((function(e){t.onDragLeave&&t.onDragLeave({element:i(),target:r.current,event:e})}),[t.onDragLeave,i]),l=p.useCallback((function(e){t.onDrop&&t.onDrop({element:i(),target:r.current,event:e})}),[t.onDrop,i]);return Yt(o,{onDragEnter:n,onDragOver:a,onDragLeave:s,onDrop:l}),t.children?p.cloneElement(p.Children.only(t.children),{ref:o}):null}));qt.displayName="KendoReactDroppable";var Zt={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}};function Qt(t,e){if(t.length!==e.length)return!1;for(var o=0;o<t.length;o++)if(!((r=t[o])===(i=e[o])||Number.isNaN(r)&&Number.isNaN(i)))return!1;var r,i;return!0}function $t(t,e){void 0===e&&(e=Qt);var o=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(o&&o.lastThis===this&&e(r,o.lastArgs))return o.lastResult;var n=t.apply(this,r);return o={lastResult:n,lastArgs:r,lastThis:this},n}return r.clear=function(){o=null},r}var Jt=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],te=function(){function t(t){var e=this;this.rovingTabIndex=!0,this.update=function(){},this.focusNextIndex=function(t,o){var r=e.elements,i=r.indexOf(t)+o;i=i<0?r.length-1:i,e.focusElement(r[i%r.length],t)},this.tabIndex=t.tabIndex||0,this.root=t.root,this.selectors=t.selectors,this.rovingTabIndex=void 0===t.rovingTabIndex||t.rovingTabIndex,this.mouseEvents=t.mouseEvents||{},this.keyboardEvents=t.keyboardEvents||{}}return Object.defineProperty(t.prototype,"elements",{get:function(){return this.root.current?Array.from(this.root.current.querySelectorAll(this.selectors.join(","))):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this.root.current&&this.root.current.querySelector(this.selectors.join(","))||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){var t=this.elements;return t[t.length-1]||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return this.elements.find((function(t){return t.matches(":focus")}))||null},enumerable:!1,configurable:!0}),t.prototype.focusNext=function(t){this.focusNextIndex(t,1)},t.prototype.focusPrevious=function(t){this.focusNextIndex(t,-1)},t.prototype.triggerKeyboardEvent=function(t){var e=t.target instanceof Element&&t.target.closest(this.selectors.join(",")),o=" "===t.key?"Space":t.key,r=t.nativeEvent.type;e&&this.keyboardEvents[r][o]&&this.keyboardEvents[r][o].call(void 0,e,this,t)},t.prototype.triggerMouseEvent=function(t){var e=t.target instanceof Element&&t.target.closest(this.selectors.join(",")),o=t.nativeEvent.type;e&&this.mouseEvents[o].call(void 0,e,this,t)},t.prototype.focusElement=function(t,e){t&&(e&&(this.rovingTabIndex&&e.removeAttribute("tabindex"),e.classList.remove("k-focus")),this.rovingTabIndex&&t.setAttribute("tabindex",String(this.tabIndex)),t.focus({preventScroll:!0}))},t}(),ee=function(t){if(t){var e=t.activeElement,o=null==e?void 0:e.shadowRoot;return o?o.activeElement:e}}},4006:(t,e,o)=>{o.d(e,{s:()=>i});var r=o(9302);function i(t){if(void 0!==r)r.validatePackage(t);else{var e="License activation failed for ".concat(t.name,"\n");e+="The @progress/kendo-licensing script is not loaded.\n",e+="See ".concat(t.licensingDocsUrl," for more information.\n"),console.warn(e)}}},4407:t=>{t.exports=r},9302:t=>{t.exports=i},499:t=>{t.exports=o},189:t=>{t.exports=e},3899:e=>{e.exports=t},994:t=>{t.exports=n}},s={};function l(t){var e=s[t];if(void 0!==e)return e.exports;var o=s[t]={exports:{}};return a[t].call(o.exports,o,o.exports,l),o.exports}return l.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return l.d(e,{a:e}),e},l.d=(t,e)=>{for(var o in e)l.o(e,o)&&!l.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},l.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),l.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l(468)})()}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("prop-types"),require("@progress/kendo-react-intl"),require("@progress/kendo-drawing"),require("@progress/kendo-licensing"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-react-intl","@progress/kendo-drawing","@progress/kendo-licensing","react-dom"],e):"object"==typeof exports?exports.KendoReactCharts=e(require("react"),require("prop-types"),require("@progress/kendo-react-intl"),require("@progress/kendo-drawing"),require("@progress/kendo-licensing"),require("react-dom")):t.KendoReactCharts=e(t.React,t.PropTypes,t.KendoReactIntl,t.KendoDrawing,t.KendoLicensing,t.ReactDOM)}(self,(function(t,e,o,r,i,n){return(()=>{"use strict";var a={2795:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__rest||function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseChart=void 0;var a=o(3899),s=o(189),l=o(499),p=o(3981),c=o(5410),h=o(9075),u=o(3758),f=o(2368),d=o(290),v=o(8803),y=o(3113),g=o(6600),m=o(9075);o(6410);var b=o(2461),_=o(9373),x=o(5201),w=o(5410),C=o(7363),O=function(t){function e(e){var o=t.call(this,e)||this;return o.chartInstance=null,o.surface=null,o._element=null,o.optionsStore={},o.optionsUnsubscriber=Function.prototype,o.themeStore={},o.themeUnsubscriber=Function.prototype,o.observersStore={},o.suppressTransitions=!1,o.onRender=function(t){null!==o.chartInstance&&(o.surface=t.sender.surface,o.trigger("render",t))},o.onLegendItemClick=function(t){if(null!==o.chartInstance)if(o.props.onLegendItemClick)o.trigger("legendItemClick",t);else{var e=o.optionsStore.getState().series;if(!e)return;var r={},i=t.seriesIndex,n=t.pointIndex,a=e[i];if(void 0===n)r=Object.assign({},a,{visible:(0,m.toggle)(a.visible)});else{var s=a.pointVisibility=a.pointVisibility||[];s[n]=(0,m.toggle)(s[n]),r=Object.assign({},a)}o.optionsStore.dispatch({chartCollectionIdxKey:"series_".concat(i),payload:r}),o.suppressTransitions=!0}},o.onWindowResize=function(){null!==o.chartInstance&&o.chartInstance.resize()},o.onChartMouseLeave=function(t){var e=(0,d.toDomEvent)(o,t);o.triggerDomEvent("onMouseLeave",e)?t.preventDefault():null!==o.chartInstance&&o.chartInstance.hideElements()},o.onChildMouseLeave=function(t){var e=t.syntheticEvent;return o.chartInstance&&!(0,h.hasParent)(e.relatedTarget,o.element)&&o.chartInstance.hideElements(),!1},(0,w.validatePackage)(C.packageMetadata),o.optionsStore=(0,y.default)(g.optionsReducer),o.observersStore=(0,y.default)(g.observersReducer),o.childrenObserver=new p.InstanceObserver(o,{onMouseLeave:"onChildMouseLeave"}),o.contextValue={optionsStore:o.optionsStore,observersStore:o.observersStore,childrenObserver:o.childrenObserver},o.themeStore=(0,y.default)(g.themeReducer),o.chartObserver=new p.InstanceObserver(o,{render:"onRender",legendItemClick:"onLegendItemClick"}),o}return i(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){var t,e=(null===(t=this._element)||void 0===t?void 0:t.ownerDocument)||document;(0,v.loadTheme)(this.themeStore,this.instantiateCoreChart.bind(this),e),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,o=e.dir,r=(e.children,n(e,["dir","children"]));if(null!==this.chartInstance){var i=(0,l.provideIntlService)(this),a=this.chartInstance.chartService,s=i.locale!==a._intlService.locale,p=Object.entries(t).filter((function(t){return"dir"!==t[0]&&"children"!==t[0]})).some((function(t){var e=t[0],o=t[1];return!(r.hasOwnProperty(e)&&r[e]===o)}));s&&(this.chartInstance.chartService._intlService=i,this.chartInstance.chartService.format._intlService=i,p||this.chartInstance.noTransitionsRedraw()),p&&this.refresh(),t.dir!==o&&this.chartInstance.setDirection(this.getDirection(o))}},e.prototype.render=function(){var t=this,e=this.props,o=e.style,r=void 0===o?{}:o,i=e.className,n=e.wrapper,s=e.children,l=Object.assign({},r,{position:"relative"}),p=a.createElement(n,{className:i,style:l,key:"chartElement"},a.createElement("div",{onMouseLeave:this.onChartMouseLeave,ref:function(e){return t._element=e},className:"k-chart-surface"},s));return a.createElement(x.ChartContext.Provider,{value:this.contextValue},a.createElement(b.SeriesTooltip,{key:"seriesTooltip"}),a.createElement(_.CrosshairTooltipContainer,{key:"crosshairTooltips"}),p)},e.prototype.getDirection=function(t){return"rtl"===(void 0!==t?t:c.canUseDOM&&window.getComputedStyle(this.element).direction||"ltr")},e.prototype.getChartOptions=function(){var t=this.props,e=t.renderAs,o=t.pannable,r=t.zoomable,i=t.paneDefaults,n=t.panes,a=t.transitions,s=t.seriesColors,l=t.seriesDefaults,p=t.axisDefaults,c=t.deriveOptionsFromParent,h={};return void 0!==e&&(h.renderAs=e),void 0!==o&&(h.pannable=o),void 0!==r&&(h.zoomable=r),void 0!==i&&(h.paneDefaults=i),void 0!==n&&(h.panes=n),void 0!==a&&(h.transitions=a),void 0!==s&&(h.seriesColors=s),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(),o=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=o,this.suppressTransitions=!1)}},e.prototype.instantiateCoreChart=function(){var t=this.props,e=t.dir,o=t.chartConstructor,r=this.getChartOptions();this.chartInstance=new o(this.element,r,this.themeStore.getState(),{rtl:this.getDirection(e),intlService:(0,l.provideIntlService)(this),observer:this.chartObserver,sender:this})},e.prototype.trigger=function(t,e){for(var o=this.props.getTarget(),r=(0,f.create)(t,e,o),i="on"+t.charAt(0).toUpperCase()+t.slice(1),n=this.observersStore.getState(),a=!1,s=0;s<n.length;s++)n[s].trigger(t,e)&&(a=!0);return!1===a&&r&&this.props.hasOwnProperty(i)?(this.props[i].call(void 0,r),r.isDefaultPrevented&&r.isDefaultPrevented()):a},e.prototype.requiresHandlers=function(t){for(var e=0;e<t.length;e++){var o=t[e],r="on"+o.charAt(0).toUpperCase()+o.slice(1);if(this.props.hasOwnProperty(r))return!0}return!1},e.prototype.triggerDomEvent=function(t,e){for(var o=this.observersStore.getState(),r=!1,i=0;i<o.length;i++)o[i].trigger(t,e)&&(r=!0);return r},e.propTypes={dir:s.string,renderAs:s.oneOf(["svg","canvas"])},e.defaultProps={renderAs:"svg"},e}(a.Component);e.BaseChart=O,(0,l.registerForIntl)(O),p.DomEventsBuilder.register(u.DomEventsBuilder)},8613:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)},a=this&&this.__rest||function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o};Object.defineProperty(e,"__esModule",{value:!0}),e.Chart=void 0;var s=o(3899),l=o(2795),p=o(5870),c=o(3981),h=o(5410),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._baseChart=null,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:!1,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return null!==this._baseChart?this._baseChart.surface:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return null!==this._baseChart?this._baseChart.element:null},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=this,e=this.props,o=e.donutCenterRender,r=e.children,i=e.className,u=a(e,["donutCenterRender","children","className"]);return s.createElement(l.BaseChart,n({},u,{ref:function(e){return t._baseChart=e},chartConstructor:c.Chart,getTarget:this.getTarget,wrapper:"div",className:(0,h.classNames)("k-chart k-widget",i)}),r,s.createElement(p.DonutCenter,{render:o}))},e}(s.Component);e.Chart=u},5201:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartContext=void 0;var r=o(3899);e.ChartContext=r.createContext(null),e.ChartContext.displayName="ChartContext"},4890:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Container=void 0;var o=function(t){return t.children};e.Container=o,o.displayName="Container"},5870:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.DonutCenter=void 0;var n=o(3899),a=o(3981),s=o(5201),l=function(t){function e(e,o){var r=t.call(this,e,o)||this;return r.context=null,r.state={donutCenterStyles:null},r.chartObserver=new a.InstanceObserver(r,{render:"onRender"}),o.observersStore.dispatch({type:"add",payload:r.chartObserver}),r}return i(e,t),e.prototype.render=function(){var t=this.props.render,e=this.state.donutCenterStyles,o=null;return t&&e&&(o=n.createElement("div",{className:"k-chart-donut-center",style:e},t())),o},e.prototype.onRender=function(t){var e,o=null===(e=this.context)||void 0===e?void 0:e.optionsStore.getState().series,r=Array.isArray(o)?o[0]:null,i=t.sender._plotArea.charts;if(r&&"donut"===r.type&&0!==i[0].points.length){var n=i[0].points[0].sector,a=n.innerRadius,s=n.center.y-a,l=n.center.x-a,p=2*a;this.setState({donutCenterStyles:{height:p,left:l,top:s,width:p}})}},e.contextType=s.ChartContext,e}(n.Component);e.DonutCenter=l},2170:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)},a=this&&this.__rest||function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o};Object.defineProperty(e,"__esModule",{value:!0}),e.Sparkline=void 0;var s=o(3899),l=o(2795),p=o(3981),c=o(5410),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._baseChart=null,e.deriveOptionsFromParent=function(t){var o=e.props,r=o.type,i=o.data,n=Object.assign({},t,{type:r,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:!1,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return null!==this._baseChart?this._baseChart.surface:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return null!==this._baseChart?this._baseChart.element:null},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=this,e=this.props,o=e.children,r=(e.type,e.className),i=a(e,["children","type","className"]);return s.createElement(l.BaseChart,n({},i,{ref:function(e){return t._baseChart=e},chartConstructor:p.Sparkline,getTarget:this.getTarget,wrapper:"span",deriveOptionsFromParent:this.deriveOptionsFromParent,className:(0,c.classNames)("k-sparkline k-widget",r)}),o)},e}(s.Component);e.Sparkline=h},5930:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)},a=this&&this.__rest||function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o};Object.defineProperty(e,"__esModule",{value:!0}),e.StockChart=void 0;var s=o(3899),l=o(2795),p=o(3981),c=o(5410),h={autoBindElements:!0,liveDrag:!1,partialRedraw:!0},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._baseChart=null,e.deriveOptionsFromParent=function(t){var e=Object.assign({},t.navigator||{},h);return Object.assign({},t,{navigator:e})},e.onRefresh=function(t,o,r){e.props.partialRedraw?(r.applyOptions(t),r.bindCategories(),r.navigator.redrawSlaves()):r.setOptions(t,o)},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:!1,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return null!==this._baseChart?this._baseChart.surface:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return null!==this._baseChart?this._baseChart.element:null},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=this,e=this.props,o=e.children,r=e.className,i=a(e,["children","className"]);return s.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:(0,c.classNames)("k-stockchart k-widget",r)}),o)},e}(s.Component);e.StockChart=u},1751:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},4449:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},6894:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ZoomStartEvent=e.ZoomEvent=e.ZoomEndEvent=e.SeriesHoverEvent=e.SeriesClickEvent=e.SelectStartEvent=e.SelectEvent=e.SelectEndEvent=e.RenderEvent=e.PlotAreaHoverEvent=e.PlotAreaClickEvent=e.NoteHoverEvent=e.NoteClickEvent=e.NavigatorFilterEvent=e.LegendItemHoverEvent=e.LegendItemClickEvent=e.DragStartEvent=e.DragEvent=e.DragEndEvent=e.AxisLabelClickEvent=void 0;var r=o(5161);Object.defineProperty(e,"AxisLabelClickEvent",{enumerable:!0,get:function(){return r.AxisLabelClickEvent}});var i=o(3803);Object.defineProperty(e,"DragEndEvent",{enumerable:!0,get:function(){return i.DragEndEvent}});var n=o(3251);Object.defineProperty(e,"DragEvent",{enumerable:!0,get:function(){return n.DragEvent}});var a=o(881);Object.defineProperty(e,"DragStartEvent",{enumerable:!0,get:function(){return a.DragStartEvent}});var s=o(8959);Object.defineProperty(e,"LegendItemClickEvent",{enumerable:!0,get:function(){return s.LegendItemClickEvent}});var l=o(6099);Object.defineProperty(e,"LegendItemHoverEvent",{enumerable:!0,get:function(){return l.LegendItemHoverEvent}});var p=o(8922);Object.defineProperty(e,"NavigatorFilterEvent",{enumerable:!0,get:function(){return p.NavigatorFilterEvent}});var c=o(8888);Object.defineProperty(e,"NoteClickEvent",{enumerable:!0,get:function(){return c.NoteClickEvent}});var h=o(8911);Object.defineProperty(e,"NoteHoverEvent",{enumerable:!0,get:function(){return h.NoteHoverEvent}});var u=o(4761);Object.defineProperty(e,"PlotAreaClickEvent",{enumerable:!0,get:function(){return u.PlotAreaClickEvent}});var f=o(4009);Object.defineProperty(e,"PlotAreaHoverEvent",{enumerable:!0,get:function(){return f.PlotAreaHoverEvent}});var d=o(6765);Object.defineProperty(e,"RenderEvent",{enumerable:!0,get:function(){return d.RenderEvent}});var v=o(2499);Object.defineProperty(e,"SelectEndEvent",{enumerable:!0,get:function(){return v.SelectEndEvent}});var y=o(2154);Object.defineProperty(e,"SelectEvent",{enumerable:!0,get:function(){return y.SelectEvent}});var g=o(3547);Object.defineProperty(e,"SelectStartEvent",{enumerable:!0,get:function(){return g.SelectStartEvent}});var m=o(1604);Object.defineProperty(e,"SeriesClickEvent",{enumerable:!0,get:function(){return m.SeriesClickEvent}});var b=o(5535);Object.defineProperty(e,"SeriesHoverEvent",{enumerable:!0,get:function(){return b.SeriesHoverEvent}});var _=o(2706);Object.defineProperty(e,"ZoomEndEvent",{enumerable:!0,get:function(){return _.ZoomEndEvent}});var x=o(8526);Object.defineProperty(e,"ZoomEvent",{enumerable:!0,get:function(){return x.ZoomEvent}});var w=o(8476);Object.defineProperty(e,"ZoomStartEvent",{enumerable:!0,get:function(){return w.ZoomStartEvent}})},5487:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WeekStartDay=void 0;var r=o(3203);Object.defineProperty(e,"WeekStartDay",{enumerable:!0,get:function(){return r.WeekStartDay}})},4011:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartAxisDefaults=void 0;var i=o(3899),n=o(8096);e.ChartAxisDefaults=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"axisDefaults"}))}},6688:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxis=void 0;var i=o(3899),n=o(1958),a=o(7889),s=o(9075),l=function(t){return i.createElement(n.CollectionConfigurationComponent,r({},t,{_chartKey:"categoryAxis"}))};e.ChartCategoryAxis=l,l.propTypes={children:function(t,e,o){return(0,s.validateChildren)(t,e,o,a.ChartCategoryAxisItem)}}},7889:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxisItem=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t))};e.ChartCategoryAxisItem=a,a.displayName="ChartCategoryAxisItem"},8916:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartArea=void 0;var i=o(3899),n=o(8096);e.ChartArea=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"chartArea"}))}},4349:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartLegend=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"legend"}))};e.ChartLegend=a,a.defaultProps={visible:!0}},4603:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigator=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"navigator"}))};e.ChartNavigator=a,a.defaultProps={visible:!0,position:"bottom"}},4209:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartPane=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t))};e.ChartPane=a,a.displayName="ChartPane"},9327:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartPaneDefaults=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"paneDefaults"}))};e.ChartPaneDefaults=a,a.displayName="ChartPaneDefaults"},3100:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartPanes=void 0;var i=o(3899),n=o(1958),a=o(4209),s=o(9075),l=function(t){return i.createElement(n.CollectionConfigurationComponent,r({},t,{_chartKey:"panes"}))};e.ChartPanes=l,l.propTypes={children:function(t,e,o){return(0,s.validateChildren)(t,e,o,a.ChartPane)}}},6007:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartPlotArea=void 0;var i=o(3899),n=o(8096);e.ChartPlotArea=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"plotArea"}))}},8689:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeries=void 0;var i=o(3899),n=o(1958),a=o(5083),s=o(9075),l=function(t){return i.createElement(n.CollectionConfigurationComponent,r({},t,{_chartKey:"series"}))};e.ChartSeries=l,l.propTypes={children:function(t,e,o){return(0,s.validateChildren)(t,e,o,a.ChartSeriesItem)}}},9448:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesDefaults=void 0;var i=o(3899),n=o(8096);e.ChartSeriesDefaults=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"seriesDefaults"}))}},5083:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesItem=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t))};e.ChartSeriesItem=a,a.displayName="ChartSeriesItem"},9717:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSubtitle=void 0;var i=o(3899),n=o(8096);e.ChartSubtitle=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"subtitle"}))}},2352:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartTitle=void 0;var i=o(3899),n=o(8096);e.ChartTitle=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))}},4171:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartTooltip=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"tooltip"}))};e.ChartTooltip=a,a.defaultProps={visible:!0}},2787:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartValueAxis=void 0;var i=o(3899),n=o(1958),a=o(3545),s=o(9075),l=function(t){return i.createElement(n.CollectionConfigurationComponent,r({},t,{_chartKey:"valueAxis"}))};e.ChartValueAxis=l,l.propTypes={children:function(t,e,o){return(0,s.validateChildren)(t,e,o,a.ChartValueAxisItem)}}},3545:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartValueAxisItem=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t))};e.ChartValueAxisItem=a,a.displayName="ChartValueAxisItem"},7819:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartXAxis=void 0;var i=o(3899),n=o(1958),a=o(7250),s=o(9075),l=function(t){return i.createElement(n.CollectionConfigurationComponent,r({},t,{_chartKey:"xAxis"}))};e.ChartXAxis=l,l.prototype={children:function(t,e,o){return(0,s.validateChildren)(t,e,o,a.ChartXAxisItem)}}},7250:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartXAxisItem=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t))};e.ChartXAxisItem=a,a.displayName="ChartXAxisItem"},8791:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartYAxis=void 0;var i=o(3899),n=o(1958),a=o(5876),s=o(9075),l=function(t){return i.createElement(n.CollectionConfigurationComponent,r({},t,{_chartKey:"yAxis"}))};e.ChartYAxis=l,l.propTypes={children:function(t,e,o){return(0,s.validateChildren)(t,e,o,a.ChartYAxisItem)}}},5876:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartYAxisItem=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t))};e.ChartYAxisItem=a,a.displayName="ChartYAxisItem"},2797:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartZoomable=void 0;var i=o(3899),n=o(8096);e.ChartZoomable=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"zoomable"}))}},7239:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartAxisDefaultsCrosshair=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"crosshair"}))};e.ChartAxisDefaultsCrosshair=a,a.defaultProps={visible:!0},a.displayName="ChartAxisDefaultsCrosshair"},6609:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartAxisDefaultsCrosshairTooltip=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"tooltip"}))};e.ChartAxisDefaultsCrosshairTooltip=a,a.defaultProps={visible:!0},a.displayName="ChartAxisDefaultsCrosshairTooltip"},6406:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartAxisDefaultsLabels=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"labels"}))};e.ChartAxisDefaultsLabels=a,a.displayName="ChartAxisDefaultsLabels"},8129:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartAxisDefaultsTitle=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))};e.ChartAxisDefaultsTitle=a,a.displayName="ChartAxisDefaultsTitle"},7725:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartAxisDefaultsCrosshairTooltip=e.ChartAxisDefaultsCrosshair=e.ChartAxisDefaultsLabels=e.ChartAxisDefaultsTitle=void 0;var r=o(8129);Object.defineProperty(e,"ChartAxisDefaultsTitle",{enumerable:!0,get:function(){return r.ChartAxisDefaultsTitle}});var i=o(6406);Object.defineProperty(e,"ChartAxisDefaultsLabels",{enumerable:!0,get:function(){return i.ChartAxisDefaultsLabels}});var n=o(7239);Object.defineProperty(e,"ChartAxisDefaultsCrosshair",{enumerable:!0,get:function(){return n.ChartAxisDefaultsCrosshair}});var a=o(6609);Object.defineProperty(e,"ChartAxisDefaultsCrosshairTooltip",{enumerable:!0,get:function(){return a.ChartAxisDefaultsCrosshairTooltip}})},1958:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.CollectionConfigurationComponent=void 0;var a=o(3899),s=o(5201),l=function(t){function e(e,o){var r=t.call(this,e,o)||this;return r.optionsStore=o.optionsStore,r}return i(e,t),e.prototype.renderChildren=function(t,e){var o=t.props.children,r=this.props,i=r._chartKey,s=r._parentStore,l=n(n({},t.props),{_chartCollectionIdxKey:"".concat(i,"_").concat(e),_parentStore:s});return a.cloneElement(t,l,o)},e.prototype.render=function(){var t=this,e=this.props,o=e._chartKey,r=e._parentStore,i=e.children;return(r||this.optionsStore).dispatch({chartKey:o,payload:[]}),a.Children.map(i,(function(e,o){return a.isValidElement(e)?t.renderChildren(e,o):e}))},e.contextType=s.ChartContext,e}(a.Component);e.CollectionConfigurationComponent=l},8096:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)},a=this&&this.__rest||function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o};Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationComponent=void 0;var s=o(3899),l=o(3113),p=o(6600),c=o(5201),h=function(t){function e(e,o){var r=t.call(this,e,o)||this;return r.optionsStore=o.optionsStore,r.childStore=(0,l.default)(p.optionsReducer),r}return i(e,t),e.prototype.render=function(){var t=this,e=this.props.children;return void 0!==e?s.Children.map(e,(function(e){return s.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,o=t._chartCollectionIdxKey,r=t._parentStore,i=(t.children,a(t,["_chartKey","_chartCollectionIdxKey","_parentStore","children"]));(r||this.optionsStore).dispatch({chartKey:e,chartCollectionIdxKey:o,payload:Object.assign({},i,this.childStore.getState())})},e.prototype.renderChildren=function(t){var e=t.props.children,o=n(n({},t.props),{_parentStore:this.childStore});return s.cloneElement(t,o,e)},e.contextType=c.ChartContext,e}(s.Component);e.ConfigurationComponent=h},6041:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxisCrosshair=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"crosshair"}))};e.ChartCategoryAxisCrosshair=a,a.defaultProps={visible:!0}},5460:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxisCrosshairTooltip=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"tooltip"}))};e.ChartCategoryAxisCrosshairTooltip=a,a.defaultProps={visible:!0}},8746:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxisLabels=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"labels"}))};e.ChartCategoryAxisLabels=a,a.defaultProps={visible:!0}},5021:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxisNotes=void 0;var i=o(3899),n=o(8096);e.ChartCategoryAxisNotes=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"notes"}))}},588:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxisNotesIcon=void 0;var i=o(3899),n=o(8096);e.ChartCategoryAxisNotesIcon=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"icon"}))}},80:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxisNotesLabel=void 0;var i=o(3899),n=o(8096);e.ChartCategoryAxisNotesLabel=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"label"}))}},4894:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxisRangeLabels=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"rangeLabels"}))};e.ChartCategoryAxisRangeLabels=a,a.defaultProps={visible:!0}},5150:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxisTitle=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))};e.ChartCategoryAxisTitle=a,a.displayName="ChartCategoryAxisTitle"},666:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartCategoryAxisRangeLabels=e.ChartCategoryAxisNotesLabel=e.ChartCategoryAxisNotesIcon=e.ChartCategoryAxisNotes=e.ChartCategoryAxisLabels=e.ChartCategoryAxisTitle=e.ChartCategoryAxisCrosshairTooltip=e.ChartCategoryAxisCrosshair=void 0;var r=o(6041);Object.defineProperty(e,"ChartCategoryAxisCrosshair",{enumerable:!0,get:function(){return r.ChartCategoryAxisCrosshair}});var i=o(5460);Object.defineProperty(e,"ChartCategoryAxisCrosshairTooltip",{enumerable:!0,get:function(){return i.ChartCategoryAxisCrosshairTooltip}});var n=o(5150);Object.defineProperty(e,"ChartCategoryAxisTitle",{enumerable:!0,get:function(){return n.ChartCategoryAxisTitle}});var a=o(8746);Object.defineProperty(e,"ChartCategoryAxisLabels",{enumerable:!0,get:function(){return a.ChartCategoryAxisLabels}});var s=o(5021);Object.defineProperty(e,"ChartCategoryAxisNotes",{enumerable:!0,get:function(){return s.ChartCategoryAxisNotes}});var l=o(588);Object.defineProperty(e,"ChartCategoryAxisNotesIcon",{enumerable:!0,get:function(){return l.ChartCategoryAxisNotesIcon}});var p=o(80);Object.defineProperty(e,"ChartCategoryAxisNotesLabel",{enumerable:!0,get:function(){return p.ChartCategoryAxisNotesLabel}});var c=o(4894);Object.defineProperty(e,"ChartCategoryAxisRangeLabels",{enumerable:!0,get:function(){return c.ChartCategoryAxisRangeLabels}})},158:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartLegendInactiveItems=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"inactiveItems"}))};e.ChartLegendInactiveItems=a,a.displayName="ChartLegendInactiveItems"},6212:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartLegendItem=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"item"}))};e.ChartLegendItem=a,a.displayName="ChartLegendItem"},4109:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartLegendTitle=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))};e.ChartLegendTitle=a,a.displayName="ChartLegendTitle"},8537:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartLegendInactiveItems=e.ChartLegendTitle=e.ChartLegendItem=void 0;var r=o(6212);Object.defineProperty(e,"ChartLegendItem",{enumerable:!0,get:function(){return r.ChartLegendItem}});var i=o(4109);Object.defineProperty(e,"ChartLegendTitle",{enumerable:!0,get:function(){return i.ChartLegendTitle}});var n=o(158);Object.defineProperty(e,"ChartLegendInactiveItems",{enumerable:!0,get:function(){return n.ChartLegendInactiveItems}})},5388:function(t,e,o){var r=this&&this.__createBinding||(Object.create?function(t,e,o,r){void 0===r&&(r=o);var i=Object.getOwnPropertyDescriptor(e,o);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[o]}}),Object.defineProperty(t,r,i)}:function(t,e,o,r){void 0===r&&(r=o),t[r]=e[o]}),i=this&&this.__exportStar||function(t,e){for(var o in t)"default"===o||Object.prototype.hasOwnProperty.call(e,o)||r(e,t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartZoomable=e.ChartYAxisItem=e.ChartYAxis=e.ChartXAxisItem=e.ChartXAxis=e.ChartValueAxisItem=e.ChartValueAxis=e.ChartTooltip=e.ChartTitle=e.ChartSubtitle=e.ChartSeriesItem=e.ChartSeriesDefaults=e.ChartSeries=e.ChartPlotArea=e.ChartPanes=e.ChartPaneDefaults=e.ChartPane=e.ChartNavigator=e.ChartLegend=e.ChartCategoryAxisItem=e.ChartCategoryAxis=e.ChartAxisDefaults=e.ChartArea=void 0;var n=o(8916);Object.defineProperty(e,"ChartArea",{enumerable:!0,get:function(){return n.ChartArea}});var a=o(4011);Object.defineProperty(e,"ChartAxisDefaults",{enumerable:!0,get:function(){return a.ChartAxisDefaults}});var s=o(6688);Object.defineProperty(e,"ChartCategoryAxis",{enumerable:!0,get:function(){return s.ChartCategoryAxis}});var l=o(7889);Object.defineProperty(e,"ChartCategoryAxisItem",{enumerable:!0,get:function(){return l.ChartCategoryAxisItem}});var p=o(4349);Object.defineProperty(e,"ChartLegend",{enumerable:!0,get:function(){return p.ChartLegend}});var c=o(4603);Object.defineProperty(e,"ChartNavigator",{enumerable:!0,get:function(){return c.ChartNavigator}});var h=o(4209);Object.defineProperty(e,"ChartPane",{enumerable:!0,get:function(){return h.ChartPane}});var u=o(9327);Object.defineProperty(e,"ChartPaneDefaults",{enumerable:!0,get:function(){return u.ChartPaneDefaults}});var f=o(3100);Object.defineProperty(e,"ChartPanes",{enumerable:!0,get:function(){return f.ChartPanes}});var d=o(6007);Object.defineProperty(e,"ChartPlotArea",{enumerable:!0,get:function(){return d.ChartPlotArea}});var v=o(8689);Object.defineProperty(e,"ChartSeries",{enumerable:!0,get:function(){return v.ChartSeries}});var y=o(9448);Object.defineProperty(e,"ChartSeriesDefaults",{enumerable:!0,get:function(){return y.ChartSeriesDefaults}});var g=o(5083);Object.defineProperty(e,"ChartSeriesItem",{enumerable:!0,get:function(){return g.ChartSeriesItem}});var m=o(9717);Object.defineProperty(e,"ChartSubtitle",{enumerable:!0,get:function(){return m.ChartSubtitle}});var b=o(2352);Object.defineProperty(e,"ChartTitle",{enumerable:!0,get:function(){return b.ChartTitle}});var _=o(4171);Object.defineProperty(e,"ChartTooltip",{enumerable:!0,get:function(){return _.ChartTooltip}});var x=o(2787);Object.defineProperty(e,"ChartValueAxis",{enumerable:!0,get:function(){return x.ChartValueAxis}});var w=o(3545);Object.defineProperty(e,"ChartValueAxisItem",{enumerable:!0,get:function(){return w.ChartValueAxisItem}});var C=o(7819);Object.defineProperty(e,"ChartXAxis",{enumerable:!0,get:function(){return C.ChartXAxis}});var O=o(7250);Object.defineProperty(e,"ChartXAxisItem",{enumerable:!0,get:function(){return O.ChartXAxisItem}});var S=o(8791);Object.defineProperty(e,"ChartYAxis",{enumerable:!0,get:function(){return S.ChartYAxis}});var P=o(5876);Object.defineProperty(e,"ChartYAxisItem",{enumerable:!0,get:function(){return P.ChartYAxisItem}});var A=o(2797);Object.defineProperty(e,"ChartZoomable",{enumerable:!0,get:function(){return A.ChartZoomable}}),i(o(7725),e),i(o(666),e),i(o(7606),e),i(o(2675),e),i(o(8537),e),i(o(2476),e),i(o(8672),e),i(o(7148),e),i(o(8089),e),i(o(3567),e),i(o(8568),e)},5837:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorCategoryAxis=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"categoryAxis"}))};e.ChartNavigatorCategoryAxis=a,a.displayName="ChartNavigatorCategoryAxis"},6437:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorHint=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorHint=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"hint"}))}},123:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorPane=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"pane"}))};e.ChartNavigatorPane=a,a.displayName="ChartNavigatorPane"},8400:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSelect=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSelect=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"select"}))}},4495:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeries=void 0;var i=o(3899),n=o(1958),a=o(8876),s=o(9075),l=function(t){return i.createElement(n.CollectionConfigurationComponent,r({},t,{_chartKey:"series"}))};e.ChartNavigatorSeries=l,l.propTypes={children:function(t,e,o){return(0,s.validateChildren)(t,e,o,a.ChartNavigatorSeriesItem)}}},8876:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesItem=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t))};e.ChartNavigatorSeriesItem=a,a.displayName="ChartNavigatorSeriesItem"},509:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorCategoryAxisCrosshair=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"crosshair"}))};e.ChartNavigatorCategoryAxisCrosshair=a,a.defaultProps={visible:!0}},9180:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorCategoryAxisCrosshairTooltip=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"tooltip"}))};e.ChartNavigatorCategoryAxisCrosshairTooltip=a,a.defaultProps={visible:!0}},8602:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorCategoryAxisLabels=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"labels"}))};e.ChartNavigatorCategoryAxisLabels=a,a.defaultProps={visible:!0}},3014:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorCategoryAxisNotes=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorCategoryAxisNotes=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"notes"}))}},228:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorCategoryAxisNotesIcon=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorCategoryAxisNotesIcon=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"icon"}))}},9398:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorCategoryAxisNotesLabel=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorCategoryAxisNotesLabel=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"label"}))}},1162:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorCategoryAxisTitle=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))};e.ChartNavigatorCategoryAxisTitle=a,a.displayName="ChartNavigatorCategoryAxisTitle"},2071:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorCategoryAxisNotesLabel=e.ChartNavigatorCategoryAxisNotesIcon=e.ChartNavigatorCategoryAxisNotes=e.ChartNavigatorCategoryAxisLabels=e.ChartNavigatorCategoryAxisTitle=e.ChartNavigatorCategoryAxisCrosshairTooltip=e.ChartNavigatorCategoryAxisCrosshair=void 0;var r=o(509);Object.defineProperty(e,"ChartNavigatorCategoryAxisCrosshair",{enumerable:!0,get:function(){return r.ChartNavigatorCategoryAxisCrosshair}});var i=o(9180);Object.defineProperty(e,"ChartNavigatorCategoryAxisCrosshairTooltip",{enumerable:!0,get:function(){return i.ChartNavigatorCategoryAxisCrosshairTooltip}});var n=o(1162);Object.defineProperty(e,"ChartNavigatorCategoryAxisTitle",{enumerable:!0,get:function(){return n.ChartNavigatorCategoryAxisTitle}});var a=o(8602);Object.defineProperty(e,"ChartNavigatorCategoryAxisLabels",{enumerable:!0,get:function(){return a.ChartNavigatorCategoryAxisLabels}});var s=o(3014);Object.defineProperty(e,"ChartNavigatorCategoryAxisNotes",{enumerable:!0,get:function(){return s.ChartNavigatorCategoryAxisNotes}});var l=o(228);Object.defineProperty(e,"ChartNavigatorCategoryAxisNotesIcon",{enumerable:!0,get:function(){return l.ChartNavigatorCategoryAxisNotesIcon}});var p=o(9398);Object.defineProperty(e,"ChartNavigatorCategoryAxisNotesLabel",{enumerable:!0,get:function(){return p.ChartNavigatorCategoryAxisNotesLabel}})},8568:function(t,e,o){var r=this&&this.__createBinding||(Object.create?function(t,e,o,r){void 0===r&&(r=o);var i=Object.getOwnPropertyDescriptor(e,o);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[o]}}),Object.defineProperty(t,r,i)}:function(t,e,o,r){void 0===r&&(r=o),t[r]=e[o]}),i=this&&this.__exportStar||function(t,e){for(var o in t)"default"===o||Object.prototype.hasOwnProperty.call(e,o)||r(e,t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesItem=e.ChartNavigatorSeries=e.ChartNavigatorSelect=e.ChartNavigatorPane=e.ChartNavigatorHint=e.ChartNavigatorCategoryAxis=void 0;var n=o(5837);Object.defineProperty(e,"ChartNavigatorCategoryAxis",{enumerable:!0,get:function(){return n.ChartNavigatorCategoryAxis}});var a=o(6437);Object.defineProperty(e,"ChartNavigatorHint",{enumerable:!0,get:function(){return a.ChartNavigatorHint}});var s=o(123);Object.defineProperty(e,"ChartNavigatorPane",{enumerable:!0,get:function(){return s.ChartNavigatorPane}});var l=o(8400);Object.defineProperty(e,"ChartNavigatorSelect",{enumerable:!0,get:function(){return l.ChartNavigatorSelect}});var p=o(4495);Object.defineProperty(e,"ChartNavigatorSeries",{enumerable:!0,get:function(){return p.ChartNavigatorSeries}});var c=o(8876);Object.defineProperty(e,"ChartNavigatorSeriesItem",{enumerable:!0,get:function(){return c.ChartNavigatorSeriesItem}}),i(o(2071),e),i(o(8163),e),i(o(9667),e)},5200:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorPaneTitle=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))};e.ChartNavigatorPaneTitle=a,a.displayName="ChartNavigatorPaneTitle"},8163:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorPaneTitle=void 0;var r=o(5200);Object.defineProperty(e,"ChartNavigatorPaneTitle",{enumerable:!0,get:function(){return r.ChartNavigatorPaneTitle}})},5794:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesErrorBars=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesErrorBars=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"errorBars"}))}},1873:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesExtremes=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesExtremes=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"extremes"}))}},2926:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesHighlight=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesHighlight=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"highlight"}))}},9444:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesLabels=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"labels"}))};e.ChartNavigatorSeriesLabels=a,a.defaultProps={visible:!0}},5718:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesLabelsFrom=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesLabelsFrom=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"from"}))}},9975:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesLabelsTo=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesLabelsTo=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"to"}))}},7851:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesMarkers=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesMarkers=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"markers"}))}},4330:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesNotes=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesNotes=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"notes"}))}},3835:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesNotesIcon=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesNotesIcon=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"icon"}))}},1793:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesNotesLabel=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesNotesLabel=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"label"}))}},9908:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesItemOutliers=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesItemOutliers=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"outliers"}))}},9098:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesItemTooltip=void 0;var i=o(3899),n=o(8096);e.ChartNavigatorSeriesItemTooltip=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"tooltip"}))}},9667:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartNavigatorSeriesNotesIcon=e.ChartNavigatorSeriesNotesLabel=e.ChartNavigatorSeriesLabelsTo=e.ChartNavigatorSeriesLabelsFrom=e.ChartNavigatorSeriesErrorBars=e.ChartNavigatorSeriesExtremes=e.ChartNavigatorSeriesHighlight=e.ChartNavigatorSeriesLabels=e.ChartNavigatorSeriesMarkers=e.ChartNavigatorSeriesNotes=e.ChartNavigatorSeriesItemOutliers=e.ChartNavigatorSeriesItemTooltip=void 0;var r=o(9098);Object.defineProperty(e,"ChartNavigatorSeriesItemTooltip",{enumerable:!0,get:function(){return r.ChartNavigatorSeriesItemTooltip}});var i=o(9908);Object.defineProperty(e,"ChartNavigatorSeriesItemOutliers",{enumerable:!0,get:function(){return i.ChartNavigatorSeriesItemOutliers}});var n=o(4330);Object.defineProperty(e,"ChartNavigatorSeriesNotes",{enumerable:!0,get:function(){return n.ChartNavigatorSeriesNotes}});var a=o(7851);Object.defineProperty(e,"ChartNavigatorSeriesMarkers",{enumerable:!0,get:function(){return a.ChartNavigatorSeriesMarkers}});var s=o(9444);Object.defineProperty(e,"ChartNavigatorSeriesLabels",{enumerable:!0,get:function(){return s.ChartNavigatorSeriesLabels}});var l=o(2926);Object.defineProperty(e,"ChartNavigatorSeriesHighlight",{enumerable:!0,get:function(){return l.ChartNavigatorSeriesHighlight}});var p=o(1873);Object.defineProperty(e,"ChartNavigatorSeriesExtremes",{enumerable:!0,get:function(){return p.ChartNavigatorSeriesExtremes}});var c=o(5794);Object.defineProperty(e,"ChartNavigatorSeriesErrorBars",{enumerable:!0,get:function(){return c.ChartNavigatorSeriesErrorBars}});var h=o(5718);Object.defineProperty(e,"ChartNavigatorSeriesLabelsFrom",{enumerable:!0,get:function(){return h.ChartNavigatorSeriesLabelsFrom}});var u=o(9975);Object.defineProperty(e,"ChartNavigatorSeriesLabelsTo",{enumerable:!0,get:function(){return u.ChartNavigatorSeriesLabelsTo}});var f=o(1793);Object.defineProperty(e,"ChartNavigatorSeriesNotesLabel",{enumerable:!0,get:function(){return f.ChartNavigatorSeriesNotesLabel}});var d=o(3835);Object.defineProperty(e,"ChartNavigatorSeriesNotesIcon",{enumerable:!0,get:function(){return d.ChartNavigatorSeriesNotesIcon}})},791:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartPaneDefaultsTitle=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))};e.ChartPaneDefaultsTitle=a,a.displayName="ChartPaneDefaultsTitle"},2675:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartPaneDefaultsTitle=void 0;var r=o(791);Object.defineProperty(e,"ChartPaneDefaultsTitle",{enumerable:!0,get:function(){return r.ChartPaneDefaultsTitle}})},3575:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartPaneTitle=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))};e.ChartPaneTitle=a,a.displayName="ChartPaneTitle"},7606:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartPaneTitle=void 0;var r=o(3575);Object.defineProperty(e,"ChartPaneTitle",{enumerable:!0,get:function(){return r.ChartPaneTitle}})},2106:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesDefaultsLabels=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"labels"}))};e.ChartSeriesDefaultsLabels=a,a.defaultProps={visible:!0}},999:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesDefaultsLabelsFrom=void 0;var i=o(3899),n=o(8096);e.ChartSeriesDefaultsLabelsFrom=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"from"}))}},7166:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesDefaultsLabelsTo=void 0;var i=o(3899),n=o(8096);e.ChartSeriesDefaultsLabelsTo=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"to"}))}},3633:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesDefaultsNotes=void 0;var i=o(3899),n=o(8096);e.ChartSeriesDefaultsNotes=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"notes"}))}},325:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesDefaultsNotesIcon=void 0;var i=o(3899),n=o(8096);e.ChartSeriesDefaultsNotesIcon=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"icon"}))}},644:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesDefaultsNotesLabel=void 0;var i=o(3899),n=o(8096);e.ChartSeriesDefaultsNotesLabel=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"label"}))}},9857:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesDefaultsItemTooltip=void 0;var i=o(3899),n=o(8096);e.ChartSeriesDefaultsItemTooltip=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"tooltip"}))}},2476:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesDefaultsNotesLabel=e.ChartSeriesDefaultsNotesIcon=e.ChartSeriesDefaultsNotes=e.ChartSeriesDefaultsLabelsTo=e.ChartSeriesDefaultsLabelsFrom=e.ChartSeriesDefaultsLabels=e.ChartSeriesDefaultsItemTooltip=void 0;var r=o(9857);Object.defineProperty(e,"ChartSeriesDefaultsItemTooltip",{enumerable:!0,get:function(){return r.ChartSeriesDefaultsItemTooltip}});var i=o(2106);Object.defineProperty(e,"ChartSeriesDefaultsLabels",{enumerable:!0,get:function(){return i.ChartSeriesDefaultsLabels}});var n=o(999);Object.defineProperty(e,"ChartSeriesDefaultsLabelsFrom",{enumerable:!0,get:function(){return n.ChartSeriesDefaultsLabelsFrom}});var a=o(7166);Object.defineProperty(e,"ChartSeriesDefaultsLabelsTo",{enumerable:!0,get:function(){return a.ChartSeriesDefaultsLabelsTo}});var s=o(3633);Object.defineProperty(e,"ChartSeriesDefaultsNotes",{enumerable:!0,get:function(){return s.ChartSeriesDefaultsNotes}});var l=o(325);Object.defineProperty(e,"ChartSeriesDefaultsNotesIcon",{enumerable:!0,get:function(){return l.ChartSeriesDefaultsNotesIcon}});var p=o(644);Object.defineProperty(e,"ChartSeriesDefaultsNotesLabel",{enumerable:!0,get:function(){return p.ChartSeriesDefaultsNotesLabel}})},9948:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesErrorBars=void 0;var i=o(3899),n=o(8096);e.ChartSeriesErrorBars=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"errorBars"}))}},1326:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesExtremes=void 0;var i=o(3899),n=o(8096);e.ChartSeriesExtremes=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"extremes"}))}},7287:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesHighlight=void 0;var i=o(3899),n=o(8096);e.ChartSeriesHighlight=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"highlight"}))}},8411:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesLabels=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"labels"}))};e.ChartSeriesLabels=a,a.defaultProps={visible:!0}},5532:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesLabelsFrom=void 0;var i=o(3899),n=o(8096);e.ChartSeriesLabelsFrom=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"from"}))}},8437:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesLabelsTo=void 0;var i=o(3899),n=o(8096);e.ChartSeriesLabelsTo=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"to"}))}},5048:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesMarkers=void 0;var i=o(3899),n=o(8096);e.ChartSeriesMarkers=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"markers"}))}},8378:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesNotes=void 0;var i=o(3899),n=o(8096);e.ChartSeriesNotes=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"notes"}))}},4788:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesNotesIcon=void 0;var i=o(3899),n=o(8096);e.ChartSeriesNotesIcon=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"icon"}))}},3825:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesNotesLabel=void 0;var i=o(3899),n=o(8096);e.ChartSeriesNotesLabel=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"label"}))}},4254:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesItemOutliers=void 0;var i=o(3899),n=o(8096);e.ChartSeriesItemOutliers=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"outliers"}))}},1229:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesItemTooltip=void 0;var i=o(3899),n=o(8096);e.ChartSeriesItemTooltip=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"tooltip"}))}},8672:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartSeriesNotesIcon=e.ChartSeriesNotesLabel=e.ChartSeriesLabelsTo=e.ChartSeriesLabelsFrom=e.ChartSeriesErrorBars=e.ChartSeriesExtremes=e.ChartSeriesHighlight=e.ChartSeriesLabels=e.ChartSeriesMarkers=e.ChartSeriesNotes=e.ChartSeriesItemOutliers=e.ChartSeriesItemTooltip=void 0;var r=o(1229);Object.defineProperty(e,"ChartSeriesItemTooltip",{enumerable:!0,get:function(){return r.ChartSeriesItemTooltip}});var i=o(4254);Object.defineProperty(e,"ChartSeriesItemOutliers",{enumerable:!0,get:function(){return i.ChartSeriesItemOutliers}});var n=o(8378);Object.defineProperty(e,"ChartSeriesNotes",{enumerable:!0,get:function(){return n.ChartSeriesNotes}});var a=o(5048);Object.defineProperty(e,"ChartSeriesMarkers",{enumerable:!0,get:function(){return a.ChartSeriesMarkers}});var s=o(8411);Object.defineProperty(e,"ChartSeriesLabels",{enumerable:!0,get:function(){return s.ChartSeriesLabels}});var l=o(7287);Object.defineProperty(e,"ChartSeriesHighlight",{enumerable:!0,get:function(){return l.ChartSeriesHighlight}});var p=o(1326);Object.defineProperty(e,"ChartSeriesExtremes",{enumerable:!0,get:function(){return p.ChartSeriesExtremes}});var c=o(9948);Object.defineProperty(e,"ChartSeriesErrorBars",{enumerable:!0,get:function(){return c.ChartSeriesErrorBars}});var h=o(5532);Object.defineProperty(e,"ChartSeriesLabelsFrom",{enumerable:!0,get:function(){return h.ChartSeriesLabelsFrom}});var u=o(8437);Object.defineProperty(e,"ChartSeriesLabelsTo",{enumerable:!0,get:function(){return u.ChartSeriesLabelsTo}});var f=o(3825);Object.defineProperty(e,"ChartSeriesNotesLabel",{enumerable:!0,get:function(){return f.ChartSeriesNotesLabel}});var d=o(4788);Object.defineProperty(e,"ChartSeriesNotesIcon",{enumerable:!0,get:function(){return d.ChartSeriesNotesIcon}})},6784:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartValueAxisCrosshair=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"crosshair"}))};e.ChartValueAxisCrosshair=a,a.defaultProps={visible:!0}},381:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartValueAxisCrosshairTooltip=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"tooltip"}))};e.ChartValueAxisCrosshairTooltip=a,a.defaultProps={visible:!0}},3094:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartValueAxisLabels=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"labels"}))};e.ChartValueAxisLabels=a,a.defaultProps={visible:!0}},2588:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartValueAxisNotes=void 0;var i=o(3899),n=o(8096);e.ChartValueAxisNotes=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"notes"}))}},5232:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartValueAxisNotesIcon=void 0;var i=o(3899),n=o(8096);e.ChartValueAxisNotesIcon=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"icon"}))}},5655:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartValueAxisNotesLabel=void 0;var i=o(3899),n=o(8096);e.ChartValueAxisNotesLabel=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"label"}))}},2339:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartValueAxisTitle=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))};e.ChartValueAxisTitle=a,a.displayName="ChartValueAxisTitle"},7148:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartValueAxisNotesLabel=e.ChartValueAxisNotesIcon=e.ChartValueAxisNotes=e.ChartValueAxisLabels=e.ChartValueAxisTitle=e.ChartValueAxisCrosshairTooltip=e.ChartValueAxisCrosshair=void 0;var r=o(6784);Object.defineProperty(e,"ChartValueAxisCrosshair",{enumerable:!0,get:function(){return r.ChartValueAxisCrosshair}});var i=o(381);Object.defineProperty(e,"ChartValueAxisCrosshairTooltip",{enumerable:!0,get:function(){return i.ChartValueAxisCrosshairTooltip}});var n=o(3094);Object.defineProperty(e,"ChartValueAxisLabels",{enumerable:!0,get:function(){return n.ChartValueAxisLabels}});var a=o(2588);Object.defineProperty(e,"ChartValueAxisNotes",{enumerable:!0,get:function(){return a.ChartValueAxisNotes}});var s=o(5232);Object.defineProperty(e,"ChartValueAxisNotesIcon",{enumerable:!0,get:function(){return s.ChartValueAxisNotesIcon}});var l=o(5655);Object.defineProperty(e,"ChartValueAxisNotesLabel",{enumerable:!0,get:function(){return l.ChartValueAxisNotesLabel}});var p=o(2339);Object.defineProperty(e,"ChartValueAxisTitle",{enumerable:!0,get:function(){return p.ChartValueAxisTitle}})},6595:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartXAxisCrosshair=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"crosshair"}))};e.ChartXAxisCrosshair=a,a.defaultProps={visible:!0}},4211:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartXAxisCrosshairTooltip=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"tooltip"}))};e.ChartXAxisCrosshairTooltip=a,a.defaultProps={visible:!0}},1741:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartXAxisLabels=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"labels"}))};e.ChartXAxisLabels=a,a.defaultProps={visible:!0}},190:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartXAxisNotes=void 0;var i=o(3899),n=o(8096);e.ChartXAxisNotes=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"notes"}))}},9431:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartXAxisNotesIcon=void 0;var i=o(3899),n=o(8096);e.ChartXAxisNotesIcon=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"icon"}))}},2141:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartXAxisNotesLabel=void 0;var i=o(3899),n=o(8096);e.ChartXAxisNotesLabel=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"label"}))}},1705:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartXAxisTitle=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))};e.ChartXAxisTitle=a,a.displayName="ChartXAxisTitle"},8089:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartXAxisNotesLabel=e.ChartXAxisNotesIcon=e.ChartXAxisNotes=e.ChartXAxisLabels=e.ChartXAxisTitle=e.ChartXAxisCrosshairTooltip=e.ChartXAxisCrosshair=void 0;var r=o(6595);Object.defineProperty(e,"ChartXAxisCrosshair",{enumerable:!0,get:function(){return r.ChartXAxisCrosshair}});var i=o(4211);Object.defineProperty(e,"ChartXAxisCrosshairTooltip",{enumerable:!0,get:function(){return i.ChartXAxisCrosshairTooltip}});var n=o(1741);Object.defineProperty(e,"ChartXAxisLabels",{enumerable:!0,get:function(){return n.ChartXAxisLabels}});var a=o(190);Object.defineProperty(e,"ChartXAxisNotes",{enumerable:!0,get:function(){return a.ChartXAxisNotes}});var s=o(9431);Object.defineProperty(e,"ChartXAxisNotesIcon",{enumerable:!0,get:function(){return s.ChartXAxisNotesIcon}});var l=o(2141);Object.defineProperty(e,"ChartXAxisNotesLabel",{enumerable:!0,get:function(){return l.ChartXAxisNotesLabel}});var p=o(1705);Object.defineProperty(e,"ChartXAxisTitle",{enumerable:!0,get:function(){return p.ChartXAxisTitle}})},1238:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartYAxisCrosshair=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"crosshair"}))};e.ChartYAxisCrosshair=a,a.defaultProps={visible:!0}},2834:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartYAxisCrosshairTooltip=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"tooltip"}))};e.ChartYAxisCrosshairTooltip=a,a.defaultProps={visible:!0}},5404:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartYAxisLabels=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"labels"}))};e.ChartYAxisLabels=a,a.defaultProps={visible:!0}},5566:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartYAxisNotes=void 0;var i=o(3899),n=o(8096);e.ChartYAxisNotes=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"notes"}))}},7477:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartYAxisNotesIcon=void 0;var i=o(3899),n=o(8096);e.ChartYAxisNotesIcon=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"icon"}))}},777:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartYAxisNotesLabel=void 0;var i=o(3899),n=o(8096);e.ChartYAxisNotesLabel=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"label"}))}},3312:function(t,e,o){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChartYAxisTitle=void 0;var i=o(3899),n=o(8096),a=function(t){return i.createElement(n.ConfigurationComponent,r({},t,{_chartKey:"title"}))};e.ChartYAxisTitle=a,a.displayName="ChartYAxisTitle"},3567:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChartYAxisNotesLabel=e.ChartYAxisNotesIcon=e.ChartYAxisNotes=e.ChartYAxisLabels=e.ChartYAxisTitle=e.ChartYAxisCrosshairTooltip=e.ChartYAxisCrosshair=void 0;var r=o(1238);Object.defineProperty(e,"ChartYAxisCrosshair",{enumerable:!0,get:function(){return r.ChartYAxisCrosshair}});var i=o(2834);Object.defineProperty(e,"ChartYAxisCrosshairTooltip",{enumerable:!0,get:function(){return i.ChartYAxisCrosshairTooltip}});var n=o(5404);Object.defineProperty(e,"ChartYAxisLabels",{enumerable:!0,get:function(){return n.ChartYAxisLabels}});var a=o(5566);Object.defineProperty(e,"ChartYAxisNotes",{enumerable:!0,get:function(){return a.ChartYAxisNotes}});var s=o(7477);Object.defineProperty(e,"ChartYAxisNotesIcon",{enumerable:!0,get:function(){return s.ChartYAxisNotesIcon}});var l=o(777);Object.defineProperty(e,"ChartYAxisNotesLabel",{enumerable:!0,get:function(){return l.ChartYAxisNotesLabel}});var p=o(3312);Object.defineProperty(e,"ChartYAxisTitle",{enumerable:!0,get:function(){return p.ChartYAxisTitle}})},6410:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=o(3981),i=r.DateCategoryAxis.prototype.options.labels.dateFormats,n=r.DateValueAxis.prototype.options.labels.dateFormats,a={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,a),Object.assign(n,a)},5161:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.AxisLabelClickEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.axis=e.axis,r.dataItem=e.dataItem,r.index=e.index,r.text=e.text,r.value=e.value,r}return i(e,t),e}(o(8874).BaseEvent);e.AxisLabelClickEvent=n},8874:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BaseEvent=void 0;e.BaseEvent=function(t){this.target=t}},2368:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.create=void 0;var r=o(5161),i=o(3251),n=o(3803),a=o(881),s=o(6099),l=o(8959),p=o(4846),c=o(8922),h=o(8888),u=o(8911),f=o(4761),d=o(4009),v=o(6765),y=o(2154),g=o(2499),m=o(3547),b=o(1604),_=o(5535),x=o(8526),w=o(2706),C=o(8476),O={axisLabelClick:r.AxisLabelClickEvent,drag:i.DragEvent,dragEnd:n.DragEndEvent,dragStart:a.DragStartEvent,legendItemHover:s.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:b.SeriesClickEvent,seriesHover:_.SeriesHoverEvent,zoom:x.ZoomEvent,zoomEnd:w.ZoomEndEvent,zoomStart:C.ZoomStartEvent};e.create=function(t,e,o){if(O[t])return new O[t](e,o)}},290:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toDomEvent=e.DomEvent=void 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)}},3758:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DomEventsBuilder=void 0;var r=o(7042),i=function(){function t(){}return t.create=function(t,e){if("undefined"!=typeof window){var o=window.Hammer;if(!o)return;var i=new o(t,{recognizers:[[o.Tap],[o.Pan],[o.Pinch],[o.Press,{time:0}]]});return new r.DomEvents(i,e)}},t}();e.DomEventsBuilder=i},7042:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DomEvents=void 0;var o=function(t){return{x:{location:t.pageX},y:{location:t.pageY}}};function r(t,e){for(var o=0;o<t.length;o++)if(e[t[o]])return!0;return!1}var i=[{end:"panend",move:"panmove",start:"panstart"},{gesturechange:"pinchmove",gestureend:"pinchend",gesturestart:"pinchstart"},{press:"press"},{tap:"tap"}],n=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,a=i.pageY,s=0;if(r.length>1){var l=r[0],p=r[1];s=Math.sqrt(Math.pow(l.pageX-p.pageX,2)+Math.pow(l.pageY-p.pageY,2))}return{distance:s,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?a-e.y.location:0,initialDelta:t.deltaY,location:a,startLocation:a-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<i.length;e++){var o=i[e],n=Object.keys(o);if(r(n,t))for(var a=0;a<n.length;a++){var s=o[n[a]];this.hammerInstance.on(s,this[s])}}},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=n},3803:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.DragEndEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.axisRanges=e.axisRanges,r.nativeEvent=e.originalEvent,r}return i(e,t),e}(o(8874).BaseEvent);e.DragEndEvent=n},3251:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.DragEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.axisRanges=e.axisRanges,r.nativeEvent=e.originalEvent,r}return i(e,t),e}(o(8619).PreventableEvent);e.DragEvent=n},881:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.DragStartEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.axisRanges=e.axisRanges,r.nativeEvent=e.originalEvent,r}return i(e,t),e}(o(8619).PreventableEvent);e.DragStartEvent=n},8959:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.LegendItemClickEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.series=e.series,r.seriesIndex=e.seriesIndex,r.pointIndex=e.pointIndex,r.text=e.text,r}return i(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(o(8619).PreventableEvent);e.LegendItemClickEvent=n},6099:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.LegendItemHoverEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.series=e.series,r.seriesIndex=e.seriesIndex,r.pointIndex=e.pointIndex,r.text=e.text,r}return i(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(o(8619).PreventableEvent);e.LegendItemHoverEvent=n},4846:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.LegendItemLeaveEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.series=e.series,r.seriesIndex=e.seriesIndex,r.pointIndex=e.pointIndex,r.text=e.text,r}return i(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(o(8619).PreventableEvent);e.LegendItemLeaveEvent=n},8922:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.NavigatorFilterEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.from=e.from,r.to=e.to,r}return i(e,t),e}(o(8874).BaseEvent);e.NavigatorFilterEvent=n},8888:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.NoteClickEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.category=e.category,r.dataItem=e.dataItem,r.series=e.series,r.value=e.value,r.visual=e.visual,r}return i(e,t),e}(o(8874).BaseEvent);e.NoteClickEvent=n},8911:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.NoteHoverEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.category=e.category,r.dataItem=e.dataItem,r.series=e.series,r.value=e.value,r.visual=e.visual,r}return i(e,t),e}(o(8874).BaseEvent);e.NoteHoverEvent=n},4761:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.PlotAreaClickEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.category=e.category,r.nativeEvent=e.originalEvent,r.value=e.value,r.x=e.x,r.y=e.y,r}return i(e,t),e}(o(8874).BaseEvent);e.PlotAreaClickEvent=n},4009:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.PlotAreaHoverEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.category=e.category,r.nativeEvent=e.originalEvent,r.value=e.value,r.x=e.x,r.y=e.y,r}return i(e,t),e}(o(8874).BaseEvent);e.PlotAreaHoverEvent=n},8619:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.PreventableEvent=void 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}(o(8874).BaseEvent);e.PreventableEvent=n},6765:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.RenderEvent=void 0;var n=function(t){function e(e,o){return t.call(this,o)||this}return i(e,t),e}(o(8874).BaseEvent);e.RenderEvent=n},2499:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.SelectEndEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.axis=e.axis,r.from=e.from,r.to=e.to,r}return i(e,t),e}(o(8874).BaseEvent);e.SelectEndEvent=n},2154:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.SelectEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.axis=e.axis,r.from=e.from,r.to=e.to,r}return i(e,t),e}(o(8619).PreventableEvent);e.SelectEvent=n},3547:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.SelectStartEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.axis=e.axis,r.from=e.from,r.to=e.to,r}return i(e,t),e}(o(8619).PreventableEvent);e.SelectStartEvent=n},1604:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.SeriesClickEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.category=e.category,r.dataItem=e.dataItem,r.nativeEvent=e.originalEvent,r.percentage=e.percentage,r.point=e.point,r.series=e.series,r.stackValue=e.stackValue,r.value=e.value,r}return i(e,t),e}(o(8874).BaseEvent);e.SeriesClickEvent=n},5535:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.SeriesHoverEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.category=e.category,r.categoryPoints=e.categoryPoints,r.dataItem=e.dataItem,r.nativeEvent=e.originalEvent,r.percentage=e.percentage,r.point=e.point,r.series=e.series,r.stackValue=e.stackValue,r.value=e.value,r}return i(e,t),e}(o(8619).PreventableEvent);e.SeriesHoverEvent=n},2706:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.ZoomEndEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.axisRanges=e.axisRanges,r.nativeEvent=e.originalEvent,r}return i(e,t),e}(o(8874).BaseEvent);e.ZoomEndEvent=n},8526:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.ZoomEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.axisRanges=e.axisRanges,r.delta=e.delta,r.nativeEvent=e.originalEvent,r}return i(e,t),e}(o(8619).PreventableEvent);e.ZoomEvent=n},8476:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.ZoomStartEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.axisRanges=e.axisRanges,r.nativeEvent=e.originalEvent,r}return i(e,t),e}(o(8619).PreventableEvent);e.ZoomStartEvent=n},3203:(t,e)=>{var o;Object.defineProperty(e,"__esModule",{value:!0}),e.WeekStartDay=void 0,(o=e.WeekStartDay||(e.WeekStartDay={}))[o.Sunday=0]="Sunday",o[o.Monday=1]="Monday",o[o.Tuesday=2]="Tuesday",o[o.Wednesday=3]="Wednesday",o[o.Thursday=4]="Thursday",o[o.Friday=5]="Friday",o[o.Saturday=6]="Saturday"},468:function(t,e,o){var r=this&&this.__createBinding||(Object.create?function(t,e,o,r){void 0===r&&(r=o);var i=Object.getOwnPropertyDescriptor(e,o);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[o]}}),Object.defineProperty(t,r,i)}:function(t,e,o,r){void 0===r&&(r=o),t[r]=e[o]}),i=this&&this.__exportStar||function(t,e){for(var o in t)"default"===o||Object.prototype.hasOwnProperty.call(e,o)||r(e,t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.CrosshairTooltipContainer=e.SharedTooltipContent=e.TooltipPopup=e.CrosshairTooltip=e.SeriesTooltip=e.TooltipPoint=e.DonutCenter=e.ConfigurationComponent=e.CollectionConfigurationComponent=e.StockChart=e.Sparkline=e.Chart=void 0;var n=o(8613);Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return n.Chart}});var a=o(2170);Object.defineProperty(e,"Sparkline",{enumerable:!0,get:function(){return a.Sparkline}});var s=o(5930);Object.defineProperty(e,"StockChart",{enumerable:!0,get:function(){return s.StockChart}});var l=o(1958);Object.defineProperty(e,"CollectionConfigurationComponent",{enumerable:!0,get:function(){return l.CollectionConfigurationComponent}});var p=o(8096);Object.defineProperty(e,"ConfigurationComponent",{enumerable:!0,get:function(){return p.ConfigurationComponent}});var c=o(5870);Object.defineProperty(e,"DonutCenter",{enumerable:!0,get:function(){return c.DonutCenter}});var h=o(9146);Object.defineProperty(e,"TooltipPoint",{enumerable:!0,get:function(){return h.TooltipPoint}});var u=o(2461);Object.defineProperty(e,"SeriesTooltip",{enumerable:!0,get:function(){return u.SeriesTooltip}});var f=o(8909);Object.defineProperty(e,"CrosshairTooltip",{enumerable:!0,get:function(){return f.CrosshairTooltip}});var d=o(2104);Object.defineProperty(e,"TooltipPopup",{enumerable:!0,get:function(){return d.TooltipPopup}});var v=o(8700);Object.defineProperty(e,"SharedTooltipContent",{enumerable:!0,get:function(){return v.SharedTooltipContent}});var y=o(9373);Object.defineProperty(e,"CrosshairTooltipContainer",{enumerable:!0,get:function(){return y.CrosshairTooltipContainer}}),i(o(6012),e),i(o(5388),e),i(o(1751),e),i(o(5487),e),i(o(6894),e),i(o(4449),e),i(o(8509),e)},8509:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.exportVisual=e.findPaneByName=e.findPaneByIndex=e.findAxisByName=void 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)}},7363:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata=void 0,e.packageMetadata={name:"@progress/kendo-react-charts",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1687870971,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"}},6600:function(t,e){var o=this&&this.__spreadArray||function(t,e,o){if(o||2===arguments.length)for(var r,i=0,n=e.length;i<n;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.observersReducer=e.themeReducer=e.optionsReducer=void 0,e.optionsReducer=function(t,e){return e.chartCollectionIdxKey?r.collectionConfigurationItem(t,e):e.chartKey?r.configurationItem(t,e):{}},e.themeReducer=function(t,e){if(!e.type)return{};switch(e.type){case"set":return r.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 o(o([],t,!0),[e.payload],!1);case"remove":return t.filter((function(t){return t!==e.payload}));default:return t}};var r={configurationItem:function(t,e){var o;return Object.assign(t,((o={})[e.chartKey]=e.payload,o))},collectionConfigurationItem:function(t,e){var o,r=!1,i=e.chartCollectionIdxKey.split("_"),n=i[0],a=i[1],s=t[n].map((function(t,o){return parseInt(a,10)===o?(r=!0,e.payload):t}));return!1===r&&s.splice(parseInt(a,10),0,e.payload),Object.assign(t,((o={})[n]=s,o))},themeItem:function(t,e){for(var o={},r=Object.assign(o,t),i=e.payload,n=i.field,a=i.value,s=n.split("."),l=s.shift();s.length>0;)o=o[l]=o[l]||{},l=s.shift();return o[l]=a,r}}},3113:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.THROTTLE_MS=void 0;var r=o(5410);e.THROTTLE_MS=1e3/60,e.default=function(t){var o,i,n=[],a=function(a){o=t(o,a),r.canUseDOM&&(window.clearTimeout(i),i=window.setTimeout((function(){return n.forEach((function(t){return t()}))}),e.THROTTLE_MS))};return a({}),{getState:function(){return o},dispatch:a,subscribe:function(t){return n.push(t),function(){return n=n.filter((function(e){return e!==t}))}}}}},8803:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.loadTheme=void 0;var r=o(3981),i=function(t){return"".concat(t.fontWeight," ").concat(t.fontSize," ").concat(t.fontFamily)},n=function(t){return window.getComputedStyle(t).backgroundColor},a='\n <div class="k-var--primary"></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 '.concat(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-'.concat(e+1,'"></div>');return t}(),"\n </div>\n"),s=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","primary"),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","primary"),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"),this.mapColor("subtitle.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")),o=i(this.queryStyle("chart-pane-title-font")),r=i(this.queryStyle("chart-label-font"));this.setStyle("axisDefaults.labels.font",r),this.setStyle("axisDefaults.notes.label.font",t),this.setStyle("axisDefaults.title.font",t),this.setStyle("legend.labels.font",t),this.setStyle("seriesDefaults.labels.font",r),this.setStyle("seriesDefaults.notes.label.font",t),this.setStyle("title.font",e),this.setStyle("subtitle.font",o),this.setStyle("paneDefaults.title.font",o)},t.prototype.setSeriesColors=function(){var t=this.element,e=[].slice.call(t.querySelectorAll(".k-var--series div")),o=n(t.querySelector(".k-var--series-unset")),r=e.reduce((function(t,e){var r=function(t){var e=t.match(/series-([a-z])$/);if(null!==e)return e[1].toLowerCase().charCodeAt(0)-"a".charCodeAt(0);var o=t.split("--series-")[1];return parseInt(o,10)-1}(e.className),i=n(e);return i!==o&&(t[r]=i),t}),[]);this.setStyle("seriesColors",r)},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--".concat(t)))},t.prototype.setInactiveOpacity=function(t,e){var o=this,r=parseFloat(this.queryStyle(e).opacity);!isNaN(r)&&r<1&&t.forEach((function(t){return o.setStyle("seriesDefaults.".concat(t,".highlight.inactiveOpacity"),r)}))},t}();e.loadTheme=function(t,e,o){var i=new s(t);if(void 0!==o){var n=i.element=o.createElement("div");n.style.display="none",n.innerHTML=a,o.body.appendChild(n);try{t.dispatch({type:"push",payload:(0,r.chartBaseTheme)()}),i.setColors(),i.setFonts(),i.setSeriesColors()}finally{o.body.removeChild(i.element),delete i.element,e()}}else t.dispatch({type:"push",payload:(0,r.chartBaseTheme)()})}},8909:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)},a=this&&this.__rest||function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o};Object.defineProperty(e,"__esModule",{value:!0}),e.CrosshairTooltip=void 0;var s=o(3899),l=o(5410),p=o(3981),c=o(2104),h=o(5201),u=function(t){function e(e,o){var r=t.call(this,e,o)||this;return r.context=null,r.state={popupShown:!1},r.chartObserver=new p.InstanceObserver(r,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),o.observersStore.dispatch({type:"add",payload:r.chartObserver}),r}return i(e,t),e.prototype.render=function(){var t,e=this.state,o=e.popupContend,r=e.className,i=a(e,["popupContend","className"]),p=this.state.popupShown?function(){return o}:Function.prototype,h=(0,l.classNames)(((t={})["k-chart-crosshair-tooltip"]=!0,t["k-chart-tooltip-inverse"]=!!r,t));return s.createElement(c.TooltipPopup,n({},i,{popupContent:p,className:h}))},e.prototype.componentWillUnmount=function(){var t;null===(t=this.context)||void 0===t||t.observersStore.dispatch({type:"remove",payload:this.chartObserver})},e.prototype.onShowTooltip=function(t){var e=t.anchor,o=t.style,r=t.className,i=t.crosshair,n=t.axisName,a=t.axisIndex,s=t.value,l=this.props,p=l.name,c=l.index;i&&n===p&&a===c&&this.setState({popupShown:!0,popupAlign:e.align,popupOffset:e.point,popupContend:s,popupStyles:o,className:r})},e.prototype.onHideTooltip=function(){this.setState({popupShown:!1,popupStyles:{},className:void 0})},e.contextType=h.ChartContext,e}(s.Component);e.CrosshairTooltip=u},9373:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.CrosshairTooltipContainer=void 0;var a=o(3899),s=o(4890),l=o(8909),p=o(5201),c=["categoryAxis","valueAxis","xAxis","yAxis"];function h(t){for(var e={},o=0;o<c.length;o++)for(var r=u(t,c[o]),i=0;i<r.length;i++){var n=r[i];e[n.name+n.index]=n}return e}function u(t,e){var o=[];if(t[e])for(var r=[].concat(t[e]),i=0;i<r.length;i++){var n=(r[i].crosshair||{}).tooltip;n&&n.visible&&o.push({index:i,name:e})}return o}var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.context=null,e.state={tooltips:{}},e.storeUnsubscriber=Function.prototype,e.subscriber=function(){var t;e.setState({tooltips:h(null===(t=e.context)||void 0===t?void 0:t.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 a.createElement(l.CrosshairTooltip,n({},t[e],{key:e}))}));return a.createElement(s.Container,null,e)},e.prototype.componentWillUnmount=function(){this.storeUnsubscriber()},e.contextType=p.ChartContext,e}(a.Component);e.CrosshairTooltipContainer=f},9146:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TooltipPoint=void 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:!1,configurable:!0}),t}();e.TooltipPoint=o},2104:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.TooltipPopup=void 0;var n=o(3899),a=o(3981),s=o(290),l=o(9075),p=o(6201),c=o(5201),h={horizontal:"fit",vertical:"fit"},u="k-chart-tooltip",f=function(t){function e(e,o){var r=t.call(this,e,o)||this;return r.context=null,r.element=null,r.onChartMouseLeave=function(t){var e=t.syntheticEvent;return!!(0,l.hasParent)(e.relatedTarget,r.element)},r.onMouseLeave=function(t){var e=(0,s.toDomEvent)(r,t);r.context.childrenObserver.trigger("onMouseLeave",e)&&t.preventDefault()},r.chartObserver=new a.InstanceObserver(r,{onMouseLeave:"onChartMouseLeave"}),o.observersStore.dispatch({type:"add",payload:r.chartObserver}),r}return i(e,t),e.prototype.render=function(){var t=this,e=this.props,o=e.popupShown,r=e.popupAlign,i=e.popupOffset,a=e.popupStyles,s=e.popupContent,l=e.className,c=[u,l].join(" ").trim();return n.createElement(p.Popup,{animate:!1,popupAlign:r,offset:i,show:o,collision:h,className:"k-chart-tooltip-wrapper"},n.createElement("div",{className:c,style:a,onMouseLeave:this.onMouseLeave,ref:function(e){return t.element=e}},s()))},e.prototype.componentWillUnmount=function(){this.context.observersStore.dispatch({type:"remove",payload:this.chartObserver})},e.contextType=c.ChartContext,e}(n.Component);e.TooltipPopup=f},2461:function(t,e,o){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)},a=this&&this.__rest||function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o};Object.defineProperty(e,"__esModule",{value:!0}),e.SeriesTooltip=void 0;var s=o(3899),l=o(5410),p=o(3981),c=o(9146),h=o(8700),u=o(2104),f=o(5201),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.context=null,e.state={popupShown:!1},e.chartObserver=null,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,o=this.state,r=o.popupContext,i=o.shared,p=o.className,c=a(o,["popupContext","shared","className"]),f=this.state.popupShown?function(){var t=e.findRenderFunction();if(i)return null!==t?t(r):s.createElement(h.SharedTooltipContent,n({},r));var o=r.point,a=e.findRenderFunctionByIndex(o.series.index);return null!==a?a(r):null!==t?t(r):s.createElement("span",{dangerouslySetInnerHTML:{__html:r.point.formattedValue}})}:Function.prototype,d=(0,l.classNames)(((t={})["k-chart-shared-tooltip"]=i,t["k-chart-tooltip-inverse"]=!!p,t));return s.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,o=t.anchor,r=t.style,i=t.shared,n=t.className;t.crosshair||(e=i?this.createSharedTooltipContext(t):this.createTooltipContext(t),this.setState({popupShown:!0,popupAlign:o.align,popupOffset:o.point,popupContext:e,popupStyles:r,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,o=t.categoryText,r=e.filter((function(t){return void 0!==t.series.name})).length>0,i=t.series.length>1,n=1;return r&&n++,i&&n++,{categoryText:o,colorMarker:i,colspan:n,nameColumn:r,points:t.points.map((function(e){return new c.TooltipPoint(e,t.format)}))}},e.prototype.createTooltipContext=function(t){var e=t.point,o=t.format;return{point:new c.TooltipPoint(e,o)}},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}(s.Component);e.SeriesTooltip=d},8700:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SharedTooltipContent=void 0;var r=o(3899);e.SharedTooltipContent=function(t){var e=t.categoryText,o=t.colorMarker,i=t.colspan,n=t.nameColumn,a=t.points;return r.createElement("table",null,r.createElement("thead",null,r.createElement("tr",null,r.createElement("th",{colSpan:i},e))),r.createElement("tbody",null,a.map((function(t,e){return r.createElement("tr",{key:e},o&&r.createElement("td",null,r.createElement("span",{className:"k-chart-shared-tooltip-marker",style:{backgroundColor:t.series.color}})),n&&r.createElement("td",null,t.series.name),r.createElement("td",{dangerouslySetInnerHTML:{__html:t.formattedValue}}))}))))}},6012:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TooltipPoint=void 0;var r=o(9146);Object.defineProperty(e,"TooltipPoint",{enumerable:!0,get:function(){return r.TooltipPoint}})},9075:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toggle=e.validateChildren=e.hasParent=void 0,e.hasParent=function(t,e){for(var o=t;o&&o!==e;)o=o.parentNode;return!!o},e.validateChildren=function(t,e,o,r){var i=t[e];if(i&&Array.isArray(i))for(var n=0,a=i;n<a.length;n++){var s=a[n];if(!s.type||s.type!==r)return new Error("".concat(o," children should be Array of type ").concat(r.displayName,"."))}return null},e.toggle=function(t){return void 0!==t&&!t}},3981:(t,e,o)=>{o.r(e),o.d(e,{Aggregates:()=>jr,ArcGauge:()=>Eh,ArcScale:()=>Sh,AreaChart:()=>Dn,AreaSegment:()=>jn,ArrowLinearPointer:()=>Zc,Axis:()=>oo,AxisGroupRangeTracker:()=>Nn,AxisLabel:()=>De,Bar:()=>Fn,BarChart:()=>Qn,BarLabel:()=>Vn,BarLinearPointer:()=>oh,Barcode:()=>xu,Box:()=>ie,BoxElement:()=>ve,BoxPlot:()=>ia,BoxPlotChart:()=>la,BubbleChart:()=>ga,Bullet:()=>xa,BulletChart:()=>Ca,Candlestick:()=>Jn,CandlestickChart:()=>oa,CategoricalChart:()=>an,CategoricalErrorBar:()=>tn,CategoricalPlotArea:()=>Rs,CategoryAxis:()=>No,Chart:()=>Wp,ChartAxis:()=>Cr,ChartContainer:()=>Ea,ChartElement:()=>fe,ChartPane:()=>Pr,ChartPlotArea:()=>Ar,ChartService:()=>qe,CircularGauge:()=>Ih,Class:()=>D.Class,ClipAnimation:()=>On,ClusterLayout:()=>Kn,Crosshair:()=>Ta,CrosshairTooltip:()=>Aa,CurveProcessor:()=>xr,DateCategoryAxis:()=>Ko,DateValueAxis:()=>or,DefaultAggregates:()=>is,DomEventsBuilder:()=>$e,DonutChart:()=>Ll,DonutPlotArea:()=>Dl,DonutSegment:()=>Ml,ErrorBarBase:()=>$i,ErrorRangeCalculator:()=>Dr,Extent:()=>Gd,FloatElement:()=>Oe,FontLoader:()=>Dt,FormatService:()=>Xe,Gauge:()=>Ic,Gradients:()=>be,HashMap:()=>pt,Highlight:()=>Ns,InstanceObserver:()=>dt,IntlService:()=>Ue,Legend:()=>tl,LegendItem:()=>Zs,LegendLayout:()=>Ys,LineChart:()=>kn,LinePoint:()=>hn,LineSegment:()=>fn,LinearGauge:()=>nh,LinearPointer:()=>Gc,LinearScale:()=>Vc,Location:()=>Ff,LogarithmicAxis:()=>sr,Map:()=>by,MousewheelZoom:()=>Xs,Navigator:()=>cc,NavigatorHint:()=>ic,Note:()=>Ne,NumericAxis:()=>tr,OHLCChart:()=>Ss,OHLCPoint:()=>Cs,Pane:()=>La,Pannable:()=>Us,PieAnimation:()=>vl,PieChart:()=>kl,PieChartMixin:()=>Sl,PiePlotArea:()=>jl,PieSegment:()=>Ol,PlotAreaBase:()=>$a,PlotAreaEventsMixin:()=>ts,PlotAreaFactory:()=>ol,Point:()=>ee,PointEventsMixin:()=>ln,PolarAxis:()=>ur,QRCode:()=>Mf,RadarCategoryAxis:()=>cr,RadarLogarithmicAxis:()=>br,RadarNumericAxis:()=>gr,RadialGauge:()=>Ch,RadialPointer:()=>_h,RadialScale:()=>fh,RangeAreaChart:()=>xs,RangeAreaPoint:()=>fs,RangeBar:()=>as,RangeBarChart:()=>ls,RangePointer:()=>Th,Ring:()=>se,RootElement:()=>we,ScatterChart:()=>fa,ScatterErrorBar:()=>ca,ScatterLineChart:()=>gl,Sector:()=>pe,Selection:()=>al,SeriesAggregator:()=>os,SeriesBinder:()=>Ir,ShapeBuilder:()=>he,ShapeElement:()=>ge,SharedTooltip:()=>cl,Sparkline:()=>Jp,SplineAreaSegment:()=>Ln,SplineSegment:()=>_n,StackWrap:()=>qn,StockChart:()=>uc,TemplateService:()=>et,Text:()=>Ae,TextBox:()=>Ee,Title:()=>Le,Tooltip:()=>ll,WaterfallChart:()=>Ts,WaterfallSegment:()=>As,XYPlotArea:()=>_l,ZoomSelection:()=>Gs,addClass:()=>I,alignPathToPixel:()=>B,anyHasZIndex:()=>Sn,append:()=>bt,appendIfNotNull:()=>Ra,areNumbers:()=>ta,autoMajorUnit:()=>te,autoTextColor:()=>Gt,barcodeValidator:()=>Cu,bindEvents:()=>_t,bindSegments:()=>Ba,categoriesCount:()=>rn,chartBaseTheme:()=>Ly,clockwise:()=>N,constants:()=>r,convertableToNumber:()=>H,countNumbers:()=>kr,createHashSet:()=>Qt,createOutOfRangePoints:()=>Xa,deepExtend:()=>X,defaultErrorHandler:()=>$t,defined:()=>xt,deg:()=>wt,elementOffset:()=>Ct,elementScale:()=>Ft,elementSize:()=>Ot,elementStyles:()=>Q,equalsIgnoreCase:()=>Na,evalOptions:()=>on,eventCoordinates:()=>St,eventElement:()=>Pt,filterSeriesByType:()=>za,find:()=>zt,findAxisByName:()=>Or,getDateField:()=>Va,getField:()=>Er,getSpacing:()=>$,getTemplate:()=>ot,getter:()=>nt,grep:()=>at,hasClasses:()=>st,hasGradientOverlay:()=>Hn,hasValue:()=>ha,hashKey:()=>At,inArray:()=>ct,interpolateValue:()=>ht,isArray:()=>M,isDateAxis:()=>Ha,isFunction:()=>U,isNumber:()=>z,isObject:()=>K,isString:()=>V,keys:()=>Jt,last:()=>kt,limitValue:()=>Tt,logToConsole:()=>D.logToConsole,map:()=>vt,mousewheelDelta:()=>gt,objectKey:()=>jt,qrcodeValidator:()=>If,rad:()=>Et,rectToBox:()=>ke,removeClass:()=>R,round:()=>Mt,segmentVisible:()=>Da,setDefaultOptions:()=>Bt,singleItemOrArray:()=>Ua,sparseArrayLimits:()=>Nt,styleValue:()=>Y,unbindEvents:()=>It,valueOrDefault:()=>Lt});var r={};o.r(r),o.d(r,{DEFAULT_PANE:()=>sc,NAVIGATOR_AXIS:()=>ac,NAVIGATOR_PANE:()=>nc});var i="arc",n="#000",a="bottom",s="center",l="circle",p=3,c="cross",h="date",u="12px sans-serif",f=10,d=/\{\d+:?/,v="height",y="inside",g="left",m=Number.MAX_VALUE,b=-Number.MAX_VALUE,_="none",x="object",w="outside",C="right",O="roundedRect",S="string",P="top",A="value",k="#fff",T="width",j="x",E="y";function M(t){return Array.isArray(t)}function I(t,e){for(var o=M(e)?e:[e],r=0;r<o.length;r++){var i=o[r];-1===t.className.indexOf(i)&&(t.className+=" "+i)}}var L=/\s+/g;function R(t,e){t&&t.className&&(t.className=t.className.replace(e,"").replace(L," "))}var D=o(4407);function B(t){var e=.5;t.options.stroke&&D.drawing.util.defined(t.options.stroke.width)&&t.options.stroke.width%2==0&&(e=0);for(var o=0;o<t.segments.length;o++)t.segments[o].anchor().round(0).translate(e,e);return t}function N(t,e){return-t.x*e.y+t.y*e.x<0}function z(t){return"number"==typeof t&&!isNaN(t)}function V(t){return typeof t===S}function H(t){return z(t)||V(t)&&isFinite(t)}function U(t){return"function"==typeof t}var F="object",G="undefined";function W(t,e){for(var o in e){var r,i=e[o],n=typeof i;if((r=n===F&&null!==i?i.constructor:null)&&r!==Array)if(i instanceof Date)t[o]=new Date(i.getTime());else if(U(i.clone))t[o]=i.clone();else{var a=t[o];t[o]=typeof a===F&&a||{},W(t[o],i)}else n!==G&&(t[o]=i)}return t}function X(t){for(var e=arguments,o=arguments.length,r=1;r<o;r++)W(t,e[r]);return t}function K(t){return"object"==typeof t}function Y(t){return z(t)?t+"px":t}var q=/width|height|top|left|bottom|right/i;function Z(t){return q.test(t)}function Q(t,e){var o=V(e)?[e]:e;if(M(o)){for(var r={},i=window.getComputedStyle(t),n=0;n<o.length;n++){var a=o[n];r[a]=Z(a)?parseFloat(i[a]):i[a]}return r}if(K(e))for(var s in e)t.style[s]=Y(e[s])}function $(t,e){void 0===e&&(e=0);var o={top:0,right:0,bottom:0,left:0};return"number"==typeof t?o[P]=o[C]=o[a]=o[g]=t:(o[P]=t[P]||e,o[C]=t[C]||e,o[a]=t[a]||e,o[g]=t[g]||e),o}var J={compile:function(t){return t}},tt=function(){};tt.register=function(t){J=t},tt.compile=function(t,e){return J.compile(t,e)};const et=tt;function ot(t){var e;return void 0===t&&(t={}),t.template?t.template=e=et.compile(t.template):U(t.content)&&(e=t.content),e}var rt=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,it={};function nt(t){if(it[t])return it[t];var e=[];return t.replace(rt,(function(t,o,r,i){e.push(D.drawing.util.defined(o)?o:r||i)})),it[t]=function(t){for(var o=t,r=0;r<e.length&&o;r++)o=o[e[r]];return o},it[t]}function at(t,e){for(var o=t.length,r=[],i=0;i<o;i++)e(t[i])&&r.push(t[i]);return r}function st(t,e){if(t.className)for(var o=e.split(" "),r=0;r<o.length;r++)if(t.className.indexOf&&-1!==t.className.indexOf(o[r]))return!0}it[void 0]=function(t){return t};var lt=function(){this._map={}};lt.prototype.get=function(t){return this._map[this._key(t)]},lt.prototype.set=function(t,e){this._map[this._key(t)]=e},lt.prototype._key=function(t){return t instanceof Date?t.getTime():t};const pt=lt;function ct(t,e){if(e)return-1!==e.indexOf(t)}function ht(t,e,o){return D.drawing.util.round(t+(e-t)*o,p)}var ut="trigger",ft=function(t,e){this.observer=t,this.handlerMap=X({},this.handlerMap,e)};ft.prototype.trigger=function(t,e){var o,r=this.observer,i=this.handlerMap;return i[t]?o=this.callObserver(i[t],e):r[ut]&&(o=this.callObserver(ut,t,e)),o},ft.prototype.callObserver=function(t){for(var e=[],o=arguments.length-1;o-- >0;)e[o]=arguments[o+1];return this.observer[t].apply(this.observer,e)},ft.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};const dt=ft;function vt(t,e){for(var o=t.length,r=[],i=0;i<o;i++){var n=e(t[i]);D.drawing.util.defined(n)&&r.push(n)}return r}var yt=D.support.browser||{};function gt(t){var e=0;return t.wheelDelta?(e=-t.wheelDelta/120,yt.webkit&&(e/=2*Math.max(window.devicePixelRatio,.625))):t.detail&&(e=t.detail/3),e>0?Math.ceil(e):Math.floor(e)}var mt=D.drawing.util,bt=mt.append,_t=mt.bindEvents,xt=mt.defined,wt=mt.deg,Ct=mt.elementOffset,Ot=mt.elementSize,St=mt.eventCoordinates,Pt=mt.eventElement,At=mt.hashKey,kt=mt.last,Tt=mt.limitValue,jt=mt.objectKey,Et=mt.rad,Mt=mt.round,It=mt.unbindEvents,Lt=mt.valueOrDefault,Rt=function(){};Rt.fetchFonts=function(t,e,o){void 0===o&&(o={depth:0}),!t||o.depth>5||!document.fonts||Object.keys(t).forEach((function(r){var i=t[r];"dataSource"!==r&&"$"!==r[0]&&i&&("font"===r?e.push(i):"object"==typeof i&&(o.depth++,Rt.fetchFonts(i,e,o),o.depth--))}))},Rt.loadFonts=function(t,e){var o=[];if(t.length>0&&document.fonts){try{o=t.map((function(t){return document.fonts.load(t)}))}catch(t){(0,D.logToConsole)(t)}Promise.all(o).then(e,e)}else e()},Rt.preloadFonts=function(t,e){var o=[];Rt.fetchFonts(t,o),Rt.loadFonts(o,e)};const Dt=Rt;function Bt(t,e){var o=t.prototype;o.options?o.options=X({},o.options,e):o.options=e}function Nt(t){for(var e=m,o=b,r=0,i=t.length;r<i;r++){var n=t[r];null!==n&&isFinite(n)&&(e=Math.min(e,n),o=Math.max(o,n))}return{min:e===m?void 0:e,max:o===b?void 0:o}}function zt(t,e){for(var o=0;o<t.length;o++){var r=t[o];if(e(r,o,t))return r}}var Vt=D.geometry.Matrix,Ht=/matrix\((.*)\)/;function Ut(t){var e=getComputedStyle(t).transform;return"none"===e?Vt.unit():function(t){var e=t.match(Ht);if(null===e||2!==e.length)return Vt.unit();var o=e[1].split(",").map((function(t){return parseFloat(t)}));return new(Function.prototype.bind.apply(Vt,[null].concat(o)))}(e)}function Ft(t){if(!t)return Vt.unit();for(var e=Ut(t),o=t.parentElement;o;){var r=Ut(o);e=e.multiplyCopy(r),o=o.parentElement}return e.b=e.c=e.e=e.f=0,e}const Gt=function(t){return new D.Color(t).isDark()?k:n};var Wt={},Xt=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},Kt={size:{configurable:!0}};Xt.prototype.values=function(){return this._values.filter((function(t){return t!==Wt}))},Xt.prototype.has=function(t){return void 0!==this._index[t]},Xt.prototype.add=function(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))},Xt.prototype.delete=function(t){var e=this._index[t];void 0!==e&&(this._values[e]=Wt,delete this._index[t])},Xt.prototype.clear=function(){this._index={},this._values=[]},Kt.size.get=function(){return this._values.length},Object.defineProperties(Xt.prototype,Kt);var Yt=function(t){this._set=new Set(t)},qt={size:{configurable:!0}};Yt.prototype.values=function(){return Array.from(this._set)},Yt.prototype.has=function(t){return this._set.has(t)},Yt.prototype.add=function(t){this._set.add(t)},Yt.prototype.delete=function(t){this._set.delete(t)},Yt.prototype.clear=function(){this._set.clear()},qt.size.get=function(){return this._set.size},Object.defineProperties(Yt.prototype,qt);var Zt=function(){var t=!1;return"function"==typeof Set&&(t=new Set([1]).has(1)),t};function Qt(t){return Zt()?new Yt(t):new Xt(t)}function $t(t){throw t}const Jt={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 te(t,e){var o=Mt(e-t,f-1);if(0===o){if(0===e)return.1;o=Math.abs(e)}var r=Math.pow(10,Math.floor(Math.log(o)/Math.log(10))),i=Mt(o/r,f);return Mt(r*(i<1.904762?.2:i<4.761904?.5:i<9.523809?1:2),f)}const ee=function(t){function e(e,o){t.call(this),this.x=e||0,this.y=o||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 o=Et(e),r=Math.cos(o),i=Math.sin(o),n=t.x,a=t.y,s=this.x,l=this.y;return this.x=Mt(n+(s-n)*r+(l-a)*i,p),this.y=Mt(a+(l-a)*r-(s-n)*i,p),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,o=this.y-t.y;return Math.sqrt(e*e+o*o)},e.onCircle=function(t,o,r){var i=Et(o);return new e(t.x-r*Math.cos(i),t.y-r*Math.sin(i))},e}(D.Class);var oe=function(t){function e(e,o,r,i){t.call(this),this.x1=e||0,this.y1=o||0,this.x2=r||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 o=this.height(),r=this.width();return xt(t)&&(this.x1=t,this.x2=this.x1+r),xt(e)&&(this.y1=e,this.y2=this.y1+o),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 o=M(t),r=o?t[0]:t.x,i=o?t[1]:t.y;return this.wrap(new e(r,i,r,i)),this},e.prototype.snapTo=function(t,e){return e!==j&&e||(this.x1=t.x1,this.x2=t.x2),e!==E&&e||(this.y1=t.y1,this.y2=t.y2),this},e.prototype.alignTo=function(t,e){var o=this.height(),r=this.width(),i=e===P||e===a?E:j,n=i===E?o:r;if(e===s){var l=t.center(),p=this.center();this.x1+=l.x-p.x,this.y1+=l.y-p.y}else this[i+1]=e===P||e===g?t[i+1]-n:t[i+2];return this.x2=this.x1+r,this.y2=this.y1+o,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=$(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=$(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 ee(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 ee(this.x1,this.y1),new ee(this.x2,this.y1),new ee(this.x2,this.y2),new ee(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(),o=this.height(),r=this.center(),i=r.x,n=r.y,a=re(0,0,i,n,t),s=re(e,0,i,n,t),l=re(e,o,i,n,t),p=re(0,o,i,n,t);return e=Math.max(a.x,s.x,l.x,p.x)-Math.min(a.x,s.x,l.x,p.x),o=Math.max(a.y,s.y,l.y,p.y)-Math.min(a.y,s.y,l.y,p.y),this.x2=this.x1+e,this.y2=this.y1+o,this},e.prototype.toRect=function(){return new D.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,o){var r=e+1,i=e+2,n=e===j?T:v,l=this[n]();ct(o,[g,P])?(this[r]=t[r],this[i]=this[r]+l):ct(o,[C,a])?(this[i]=t[i],this[r]=this[i]-l):o===s&&(this[r]=t[r]+(t[n]()-l)/2,this[i]=this[r]+l)},e}(D.Class);function re(t,e,o,r,i){var n=Et(i);return new ee(o+(t-o)*Math.cos(n)+(e-r)*Math.sin(n),r-(t-o)*Math.sin(n)+(e-r)*Math.cos(n))}const ie=oe;var ne=function(t){function e(e,o,r,i,n){t.call(this),this.center=e,this.innerRadius=o,this.radius=r,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 o=Et(t),r=Math.cos(o),i=Math.sin(o),n=e?this.innerRadius:this.radius,a=Mt(this.center.x-r*n,p),s=Mt(this.center.y-i*n,p);return new ee(a,s)},e.prototype.adjacentBox=function(t,e,o){var r=this.clone().expand(t),i=r.middle(),n=r.point(i),a=e/2,s=o/2,l=Math.sin(Et(i)),p=Math.cos(Et(i)),c=n.x-a,h=n.y-s;return Math.abs(l)<.9&&(c+=a*-p/Math.abs(p)),Math.abs(p)<.9&&(h+=s*-l/Math.abs(l)),new ie(c,h,c+e,h+o)},e.prototype.containsPoint=function(t){var e=this.center,o=this.innerRadius,r=this.radius,i=this.startAngle,n=this.startAngle+this.angle,a=t.x-e.x,s=t.y-e.y,l=new ee(a,s),c=this.point(i),h=new ee(c.x-e.x,c.y-e.y),u=this.point(n),f=new ee(u.x-e.x,u.y-e.y),d=Mt(a*a+s*s,p);return(h.equals(l)||N(h,l))&&!N(f,l)&&d>=o*o&&d<=r*r},e.prototype.getBBox=function(){var t,e=new ie(m,m,b,b),o=Mt(this.startAngle%360),r=Mt((o+this.angle)%360),i=this.innerRadius,n=[0,90,180,270,o,r].sort(ae),a=n.indexOf(o),s=n.indexOf(r);t=o===r?n:a<s?n.slice(a,s+1):[].concat(n.slice(0,s+1),n.slice(a,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}(D.Class);function ae(t,e){return t-e}const se=ne;var le=function(t){function e(e,o,r,i){t.call(this,e,0,o,r,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}(se);const pe=le;var ce=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 o=t.startAngle+180,r=t.angle+o;t.angle>0&&o===r&&(r+=.001);var i=new D.geometry.Point(t.center.x,t.center.y),n=Math.max(t.radius,0),a=Math.max(t.innerRadius,0),s=new D.geometry.Arc(i,{startAngle:o,endAngle:r,radiusX:n,radiusY:n}),l=D.drawing.Path.fromArc(s,e).close();if(a){s.radiusX=s.radiusY=a;var p=s.pointAt(r);l.lineTo(p.x,p.y),l.arc(r,o,a,a,!0)}else l.lineTo(i.x,i.y);return l},e}(D.Class);ce.current=new ce;const he=ce;var ue=function(t){function e(e){t.call(this),this.children=[],this.options=X({},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,o=this.children,r=0;r<o.length;r++){var i=o[r];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 o=this.children,r=o.length,i=0;i<r;i++)o[i].box.translate(t,e)},e.prototype.append=function(){for(var t=arguments,e=0;e<arguments.length;e++){var o=t[e];this.children.push(o),o.parent=this}},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,o=0;o<e;o++)t[o].renderVisual()},e.prototype.createVisual=function(){this.visual=new D.drawing.Group({zIndex:this.options.zIndex,visible:Lt(this.options.visible,!0)})},e.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=D.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):xt(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,o=t.options.zIndex||0,r=this.visual.children,i=r.length;for(e=0;e<i;e++){var n=r[e];if(Lt(n.options.zIndex,0)>o)break}this.visual.insert(e,t)},e.prototype.traverse=function(t){for(var e=this.children,o=e.length,r=0;r<o;r++){var i=e[r];t(i),i.traverse&&i.traverse(t)}},e.prototype.closest=function(t){for(var e=this,o=!1;e&&!o;)(o=t(e))||(e=e.parent);if(o)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 o=this,r=(this.options||{}).highlight||{},i=r.visual,n=this._highlight;if(!n){var a={fill:{color:k,opacity:e||.2},stroke:{color:k,width:1,opacity:e||.2}};if(i){if(!(n=this._highlight=i(Object.assign(this.highlightVisualArgs(),{createVisual:function(){return o.createHighlight(a)},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(a);xt(n.options.zIndex)||(n.options.zIndex=Lt(r.zIndex,this.options.zIndex)),this.appendVisual(n)}n.visible(t)},e.prototype.createGradientOverlay=function(t,e,o){var r=new D.drawing.Path(Object.assign({stroke:{color:"none"},fill:this.createGradient(o),closed:t.options.closed},e));return r.segments.elements(t.segments.elements()),r},e.prototype.createGradient=function(t){if(this.parent)return this.parent.createGradient(t)},e.prototype.supportsPointInactiveOpacity=function(){return!0},e}(D.Class);ue.prototype.options={};const fe=ue;var de=function(t){function e(e){t.call(this,e),this.options.margin=$(this.options.margin),this.options.padding=$(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 o,r=this,i=this.options,n=i.width,a=i.height,s=i.shrinkToFit,l=n&&a,p=i.margin,c=i.padding,h=i.border.width,u=function(){r.align(e,j,i.align),r.align(e,E,i.vAlign),r.paddingBox=o.clone().unpad(p).unpad(h)},f=e.clone();l&&(f.x2=f.x1+n,f.y2=f.y1+a),s&&f.unpad(p).unpad(h).unpad(c),t.prototype.reflow.call(this,f),o=l?this.box=new ie(0,0,n,a):this.box,s&&l?(u(),f=this.contentBox=this.paddingBox.clone().unpad(c)):(f=this.contentBox=o.clone(),o.pad(c).pad(h).pad(p),u()),this.translateChildren(o.x1-f.x1+p.left+h+c.left,o.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,o){this.box.align(t,e,o)},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(D.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:Lt(e.opacity,t.opacity),dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},cursor:t.cursor}},e}(fe);Bt(de,{align:g,vAlign:P,margin:{},padding:{},border:{color:n,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});const ve=de;var ye=function(t){function e(e,o){t.call(this,e),this.pointData=o}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,o=t.type,r=t.rotation,i=e.center(),n=e.width()/2,a=e.height()/2;if(!t.visible||!this.hasBox())return null;var s,h=this.visualStyle();if(o===l)s=new D.drawing.Circle(new D.geometry.Circle([Mt(e.x1+n,p),Mt(e.y1+a,p)],Math.min(n,a)),h);else if("triangle"===o)s=D.drawing.Path.fromPoints([[e.x1+n,e.y1],[e.x1,e.y2],[e.x2,e.y2]],h).close();else if(o===c)(s=new D.drawing.MultiPath(h)).moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),s.moveTo(e.x1,e.y2).lineTo(e.x2,e.y1);else{var u=e.toRect();if(o===O){var f=Lt(t.borderRadius,u.width()/5);u.setCornerRadius(f)}s=D.drawing.Path.fromRect(u,h)}return r&&s.transform(D.geometry.transform().rotate(-r,[i.x,i.y])),s.options.zIndex=t.zIndex,s},e.prototype.createElement=function(){var t=this,e=this.options.visual,o=this.pointData||{};return e?e({value:o.value,dataItem:o.dataItem,sender:this.getSender(),series:o.series,category:o.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}(ve);Bt(ye,{type:l,align:s,vAlign:s});const ge=ye;var me="radial";const be={glass:{type:"linear",rotation:0,stops:[{offset:0,color:k,opacity:0},{offset:.25,color:k,opacity:.3},{offset:1,color:k,opacity:0}]},sharpBevel:{type:me,stops:[{offset:0,color:k,opacity:.55},{offset:.65,color:k,opacity:0},{offset:.95,color:k,opacity:.25}]},roundedBevel:{type:me,stops:[{offset:.33,color:k,opacity:.06},{offset:.83,color:k,opacity:.2},{offset:.95,color:k,opacity:0}]},roundedGlass:{type:me,supportVML:!1,stops:[{offset:0,color:k,opacity:0},{offset:.5,color:k,opacity:.3},{offset:.99,color:k,opacity:0}]},sharpGlass:{type:me,supportVML:!1,stops:[{offset:0,color:k,opacity:.2},{offset:.15,color:k,opacity:.15},{offset:.17,color:k,opacity:.35},{offset:.85,color:k,opacity:.05},{offset:.87,color:k,opacity:.15},{offset:.99,color:k,opacity:0}]},bubbleShadow:{type:me,center:[.5,.5],radius:.5}};function _e(t,e){if(t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2)return e;var o=Math.min(t.x1,e.x1),r=Math.max(t.x1,e.x1),i=Math.min(t.x2,e.x2),n=Math.max(t.x2,e.x2),a=Math.min(t.y1,e.y1),s=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 ie(r,a,i,s),c[1]=new ie(o,s,r,l),c[2]=new ie(i,s,n,l),c[3]=new ie(r,l,i,p),t.x1===o&&t.y1===a||e.x1===o&&e.y1===a?(c[4]=new ie(o,a,r,s),c[5]=new ie(i,l,n,p)):(c[4]=new ie(i,a,n,s),c[5]=new ie(o,l,r,p)),at(c,(function(t){return t.height()>0&&t.width()>0}))[0]}var xe=function(t){function e(e){t.call(this,e);var o=this.options;o.width=parseInt(o.width,10),o.height=parseInt(o.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,o=new ie(0,0,t.width,t.height);this.box=o.unpad(t.margin);for(var r=0;r<e.length;r++)e[r].reflow(o),o=_e(o,e[r].box)||new ie},e.prototype.createVisual=function(){this.visual=new D.drawing.Group,this.createBackground()},e.prototype.createBackground=function(){var t=this.options,e=t.border||{},o=this.box.clone().pad(t.margin).unpad(e.width),r=D.drawing.Path.fromRect(o.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(r)},e.prototype.getRoot=function(){return this},e.prototype.createGradient=function(t){var e,o=this.gradients,r=jt(t),i=be[t.gradient];if(o[r])e=o[r];else{var n=Object.assign({},i,t);"linear"===i.type?e=new D.drawing.LinearGradient(n):(t.innerRadius&&(n.stops=function(t){for(var e=t.stops,o=t.innerRadius/t.radius*100,r=e.length,i=[],n=0;n<r;n++){var a=Object.assign({},e[n]);a.offset=(a.offset*(100-o)+o)/100,i.push(a)}return i}(n)),(e=new D.drawing.RadialGradient(n)).supportVML=!1!==i.supportVML),o[r]=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 ie(0,0,t.width,t.height)},e}(fe);Bt(xe,{width:600,height:400,background:k,border:{color:n,width:0},margin:$(5),zIndex:-2});const we=xe;var Ce=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=j,this.elementAxis=E,this.groupSizeField=T,this.elementSizeField=v,this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=E,this.elementAxis=j,this.groupSizeField=v,this.elementSizeField=T,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,e=this,o=e.box,r=e.elementAxis,i=e.groupAxis,n=e.elementSizeField,a=e.groupSizeField,s=this.groupOptions(),l=s.groups,p=s.groupsSize,c=s.maxGroupElementsSize,h=l.length,u=o[i+1]+this.alignStart(p,o[a]());if(h){for(var f=u,d=0;d<h;d++){for(var v=l[d],y=v.groupElements,g=o[r+1],m=y.length,b=0;b<m;b++){var _=y[b],x=t.elementSize(_),w=f+t.alignStart(x[a],v.groupSize),C=new ie;C[i+1]=w,C[i+2]=w+x[a],C[r+1]=g,C[r+2]=g+x[n],_.reflow(C),g+=x[n]+t.elementSpacing}f+=v.groupSize+t.groupSpacing}o[i+1]=u,o[i+2]=u+p,o[r+2]=o[r+1]+c}},e.prototype.alignStart=function(t,e){var o=0,r=this.options.align;return r===C||r===a?o=e-t:r===s&&(o=(e-t)/2),o},e.prototype.groupOptions=function(){for(var t=this,e=t.box,o=t.children,r=t.elementSizeField,i=t.groupSizeField,n=t.elementSpacing,a=t.groupSpacing,s=Mt(e[r]()),l=o.length,p=[],c=0,h=0,u=0,f=0,d=[],v=0;v<l;v++){var y=o[v];y.box||y.reflow(e);var g=this.elementSize(y);this.options.wrap&&Mt(h+n+g[r])>s&&(p.push({groupElements:d,groupSize:c,groupElementsSize:h}),f=Math.max(f,h),u+=a+c,c=0,h=0,d=[]),c=Math.max(c,g[i]),h>0&&(h+=n),h+=g[r],d.push(y)}return p.push({groupElements:d,groupSize:c,groupElementsSize:h}),{groups:p,groupsSize:u+=c,maxGroupElementsSize:f=Math.max(f,h)}},e.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},e.prototype.createVisual=function(){},e}(fe);Bt(Ce,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});const Oe=Ce;var Se=D.drawing.Text,Pe=function(t){function e(e,o){t.call(this,o),this.content=e,this.reflow(new ie)}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,o=e.size=D.drawing.util.measureText(this.content,{font:e.font});this.baseline=o.baseline,this.box=new ie(t.x1,t.y1,t.x1+o.width,t.y1+o.height)},e.prototype.createVisual=function(){var t=this.options,e=t.font,o=t.color,r=t.opacity,i=t.cursor;this.visual=new Se(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:o,opacity:r},cursor:i})},e}(fe);Bt(Pe,{font:u,color:n});const Ae=Pe;function ke(t){var e=t.origin,o=t.bottomRight();return new ie(e.x,e.y,o.x,o.y)}var Te=/\n/m,je=function(t){function e(e,o,r){t.call(this,o),this.content=e,this.data=r,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new ie)}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(Te),o=new Oe({vertical:!0,align:t.align,wrap:!1}),r=X({},t,{opacity:1,animation:null});this.container=o,this.append(o);for(var i=0;i<e.length;i++){var n=new Ae(e[i].trim(),r);o.append(n)}},e.prototype.reflow=function(e){var o=this.options,r=o.visual;if(this.container.options.align=o.align,r&&!this._boxReflow){var i=e;i.hasSize()||(this._boxReflow=!0,this.reflow(i),this._boxReflow=!1,i=this.box);var n=this.visual=r(this.visualContext(i));n&&(i=ke(n.clippedBBox()||new D.geometry.Rect),n.options.zIndex=o.zIndex),this.box=this.contentBox=this.paddingBox=i}else if(t.prototype.reflow.call(this,e),o.rotation){var a=$(o.margin),s=this.box.unpad(a);this.targetBox=e,this.normalBox=s.clone(),(s=this.rotate()).translate(a.left-a.right,a.top-a.bottom),this.rotatedBox=s.clone(),s.pad(a)}},e.prototype.createVisual=function(){var t=this.options;if(this.visual=new D.drawing.Group({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()){var e=D.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&&!xt(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,o={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(o,this.data),o},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,j,t.align),this.align(this.targetBox,E,t.vAlign),this.box},e.prototype.rotationTransform=function(){var t=this.options.rotation;if(!t)return null;var e=this.normalBox.center(),o=e.x,r=e.y,i=this.rotatedBox.center();return D.geometry.transform().translate(i.x-o,i.y-r).rotate(t,[o,r])},e}(ve);const Ee=je;var Me=function(t){function e(e){t.call(this,e),this._textBox=new Ee(this.options.text,Object.assign({},this.options,{vAlign:this.options.position})),this.append(this._textBox)}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,j)},e.buildTitle=function(t,o){var r,i=t;return"string"==typeof t&&(i={text:t}),(i=Object.assign({visible:!0},o,i))&&i.visible&&i.text&&(r=new e(i)),r},e.orderTitles=function(t){var e=[].concat(t),o=e.filter((function(t){return t&&t.options.position!==a})),r=e.filter((function(t){return t&&t.options.position===a}));return Ie(o),Ie(r),r.reverse(),o.concat(r)},e}(fe);function Ie(t){for(var e=1;e<t.length;e++){var o=t[e]._textBox,r=t[e-1]._textBox;r.options.margin=Object.assign($(r.options.margin),{bottom:0}),o.options.margin=Object.assign($(o.options.margin),{top:0})}}Bt(Me,{color:n,position:P,align:s,margin:$(5),padding:$(5)});const Le=Me;var Re=function(t){function e(e,o,r,i,n){t.call(this,o,n),this.text=o,this.value=e,this.index=r,this.dataItem=i,this.reflow(new ie)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.visualContext=function(e){var o=t.prototype.visualContext.call(this,e);return o.value=this.value,o.dataItem=this.dataItem,o.format=this.options.format,o.culture=this.options.culture,o},e.prototype.click=function(t,e){t.trigger("axisLabelClick",{element:Pt(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!==s){var e=this.normalBox.toRect(),o=this.rotationTransform();this.box=ke(e.bbox(o.matrix()))}else t.prototype.rotate.call(this);return this.box},e.prototype.rotationTransform=function(){var e=this.options,o=e.rotation;if(!o)return null;if(e.alignRotation===s)return t.prototype.rotationTransform.call(this);var r=D.geometry.transform().rotate(o).matrix(),i=this.normalBox.toRect(),n=this.targetBox.toRect(),l=e.rotationOrigin||P,p=l===P||l===a?j:E,c=l===P||l===a?E:j,h=l===P||l===g?n.origin:n.bottomRight(),u=i.topLeft().transformCopy(r),d=i.topRight().transformCopy(r),v=i.bottomRight().transformCopy(r),y=i.bottomLeft().transformCopy(r),m=D.geometry.Rect.fromPoints(u,d,v,y),b={};b[c]=n.origin[c]-m.origin[c];var _,x,w=Math.abs(u[c]+b[c]-h[c]),C=Math.abs(d[c]+b[c]-h[c]);Mt(w,f)===Mt(C,f)?(_=u,x=d):C<w?(_=d,x=v):(_=u,x=y);var O=_[p]+(x[p]-_[p])/2;return b[p]=n.center()[p]-O,D.geometry.transform().translate(b.x,b.y).rotate(o)},e}(Ee);Bt(Re,{_autoReflow:!1});const De=Re;var Be=function(t){function e(e,o,r){t.call(this,o),this.fields=e,this.chartService=r,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 o,r,i=e.label,n=e.icon,a=new ie,s=function(){return t},p=n.size,c=this.fields.text;if(xt(i)&&i.visible){var h=ot(i);h?c=h(this.fields):i.format&&(c=this.chartService.format.auto(i.format,c)),i.color||(i.color=i.position===y?"#fff":n.background),this.label=new Ee(c,X({},i)),this.label.aliasFor=s,i.position!==y||xt(p)||(n.type===l?p=Math.max(this.label.box.width(),this.label.box.height()):(o=this.label.box.width(),r=this.label.box.height()),a.wrap(this.label.box))}n.width=o||p||7,n.height=r||p||7;var u=new ge(X({},n));u.aliasFor=s,this.marker=u,this.append(u),this.label&&this.append(this.label),u.reflow(new ie),this.wrapperBox=a.wrap(u.box)}},e.prototype.reflow=function(t){var e,o,r,i=this,n=i.options,s=i.label,l=i.marker,p=i.wrapperBox,c=t.center(),h=n.line.length,u=n.position;n.visible&&(ct(u,[g,C])?u===g?(r=p.alignTo(t,u).translate(-h,t.center().y-p.center().y),n.line.visible&&(e=[t.x1,c.y],this.linePoints=[e,[r.x2,c.y]],o=r.clone().wrapPoint(e))):(r=p.alignTo(t,u).translate(h,t.center().y-p.center().y),n.line.visible&&(e=[t.x2,c.y],this.linePoints=[e,[r.x1,c.y]],o=r.clone().wrapPoint(e))):u===a?(r=p.alignTo(t,u).translate(t.center().x-p.center().x,h),n.line.visible&&(e=[c.x,t.y2],this.linePoints=[e,[c.x,r.y1]],o=r.clone().wrapPoint(e))):(r=p.alignTo(t,u).translate(t.center().x-p.center().x,-h),n.line.visible&&(e=[c.x,t.y1],this.linePoints=[e,[c.x,r.y2]],o=r.clone().wrapPoint(e))),l&&l.reflow(r),s&&(s.reflow(r),l&&(n.label.position===w&&s.box.alignTo(l.box,u),s.reflow(s.box))),this.contentBox=r,this.targetBox=t,this.box=o||r)},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,o=this.options,r=o.visual;o.visible&&r?(this.visual=r(Object.assign(this.fields,{sender:this.getSender(),rect:this.targetBox.toRect(),options:{background:o.background,border:o.background,icon:o.icon,label:o.label,line:o.line,position:o.position,visible:o.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=D.drawing.Path.fromPoints(this.linePoints,{stroke:{color:t.color,width:t.width,dashType:t.dashType}});B(e),this.visual.append(e)}},e.prototype.click=function(t,e){var o=this.eventArgs(e);t.trigger("noteClick",o)||e.preventDefault()},e.prototype.over=function(t,e){var o=this.eventArgs(e);t.trigger("noteHover",o)||e.preventDefault()},e.prototype.out=function(t,e){var o=this.eventArgs(e);t.trigger("noteLeave",o)},e.prototype.eventArgs=function(t){var e=this.options;return Object.assign(this.fields,{element:Pt(t),text:xt(e.label)?e.label.text:"",visual:this.visual})},e}(ve);Bt(Be,{icon:{visible:!0,type:l},label:{position:y,visible:!0,align:s,vAlign:s},line:{visible:!0},visible:!0,position:P,zIndex:2});const Ne=Be;var ze={format:function(t,e){return e},toString:function(t){return t},parseDate:function(t){return new Date(t)},firstDay:function(){return 0}},Ve=function(){},He={implementation:{configurable:!0}};Ve.register=function(t){ze=t},He.implementation.get=function(){return ze},Object.defineProperties(Ve,He);const Ue=Ve;var Fe=/\{(\d+)(:[^\}]+)?\}/g,Ge=function(t){this._intlService=t},We={intl:{configurable:!0}};We.intl.get=function(){return this._intlService||Ue.implementation},We.intl.set=function(t){this._intlService=t},Ge.prototype.auto=function(t){for(var e=[],o=arguments.length-1;o-- >0;)e[o]=arguments[o+1];var r=this.intl;return V(t)&&t.match(d)?r.format.apply(r,[t].concat(e)):r.toString(e[0],t)},Ge.prototype.localeAuto=function(t,e,o){var r=this.intl;return V(t)&&t.match(d)?t.replace(Fe,(function(t,i,n){var a=e[parseInt(i,10)];return r.toString(a,n?n.substring(1):"",o)})):r.toString(e[0],t,o)},Object.defineProperties(Ge.prototype,We);const Xe=Ge;var Ke=function(t,e){void 0===e&&(e={}),this._intlService=e.intlService,this.sender=e.sender||t,this.format=new Xe(e.intlService),this.chart=t,this.rtl=Boolean(e.rtl)},Ye={intl:{configurable:!0}};Ye.intl.get=function(){return this._intlService||Ue.implementation},Ye.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,Ye);const qe=Ke;var Ze,Qe=function(){};Qe.register=function(t){Ze=t},Qe.create=function(t,e){if(Ze)return Ze.create(t,e)};const $e=Qe;function Je(t,e){var o=t.tickX,r=t.tickY,i=t.position,n=new D.drawing.Path({stroke:{width:e.width,color:e.color}});return t.vertical?n.moveTo(o,i).lineTo(o+e.size,i):n.moveTo(i,r).lineTo(i,r+e.size),B(n),n}function to(t,e){var o=t.lineStart,r=t.lineEnd,i=t.position,n=new D.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});return t.vertical?n.moveTo(o,i).lineTo(r,i):n.moveTo(i,o).lineTo(i,r),B(n),n}var eo=function(t){function e(e,o){void 0===o&&(o=new qe),t.call(this,e),this.chartService=o,this.options.visible||(this.options=X({},this.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),this.options.minorTicks=X({},{color:this.options.line.color,width:this.options.line.width,visible:this.options.minorTickType!==_},this.options.minorTicks,{size:this.options.minorTickSize,align:this.options.minorTickType}),this.options.majorTicks=X({},{color:this.options.line.color,width:this.options.line.width,visible: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;K(e)&&(t.alignRotation=e.align,t.rotation=e.angle)},e.prototype.createLabels=function(){var t=this,e=this.options,o=e.vertical?C:s,r=X({},e.labels,{align:o,zIndex:e.zIndex}),i=Math.max(1,r.step);if(this.clearLabels(),r.visible){this.normalizeLabelRotation(r),"auto"===r.rotation&&(r.rotation=0,e.autoRotateLabels=!0);for(var n=this.labelsRange(),a=n.min;a<n.max;a+=i){var l={index:a,count:n.max},p=t.createAxisLabel(a,r,l);p&&(t.append(p),t.labels.push(p))}}},e.prototype.clearLabels=function(){this.children=at(this.children,(function(t){return!(t instanceof De)})),this.labels=[]},e.prototype.clearTitle=function(){var t=this;this.title&&(this.children=at(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,o=t.vertical,r=t.labels.mirror,i=r?e.x1:e.x2,n=r?e.y2:e.y1,a=t.line.width||0;return o?new ie(i,e.y1,i,e.y2-a):new ie(e.x1,n,e.x2-a,n)},e.prototype.createTitle=function(){var t=this.options,e=X({rotation:t.vertical?-90:0,text:"",zIndex:1,visualSize:!0},t.title);if(e.visible&&e.text){var o=new Ee(e.text,e);this.append(o),this.title=o}},e.prototype.createNotes=function(){var t=this,e=this.options,o=e.notes,r=o.data||[];this.notes=[];for(var i=0;i<r.length;i++){var n=X({},o,r[i]);n.value=t.parseNoteValue(n.value);var s=new Ne({value:n.value,text:n.label.text,dataItem:n},n,t.chartService);s.options.visible&&(xt(s.options.position)?e.vertical&&!ct(s.options.position,[g,C])?s.options.position=e.reverse?g:C:e.vertical||ct(s.options.position,[P,a])||(s.options.position=e.reverse?a:P):e.vertical?s.options.position=e.reverse?g:C:s.options.position=e.reverse?a:P,t.append(s),t.notes.push(s))}},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 D.drawing.Group({zIndex:-2}),this.appendVisual(this._gridLines)),t},e.prototype.createTicks=function(t){var e=this.options,o=this.lineBox(),r=e.labels.mirror,i=e.majorTicks.visible?e.majorUnit:0,n={vertical:e.vertical};function a(e,i,a){var s=e.length,l=Math.max(1,i.step);if(i.visible)for(var p=i.skip;p<s;p+=l)xt(a)&&p%a==0||(n.tickX=r?o.x2:o.x2-i.size,n.tickY=r?o.y1-i.size:o.y1,n.position=e[p],t.append(Je(n,i)))}a(this.getMajorTickPositions(),e.majorTicks),a(this.getMinorTickPositions(),e.minorTicks,i/e.minorUnit)},e.prototype.createLine=function(){var t=this.options,e=t.line,o=this.lineBox();if(e.width>0&&e.visible){var r=new D.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});r.moveTo(o.x1,o.y1).lineTo(o.x2,o.y2),t._alignLines&&B(r);var i=this._lineGroup=new D.drawing.Group;i.append(r),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,o=t.background;o&&(this._backgroundPath=D.drawing.Path.fromRect(e.toRect(),{fill:{color:o},stroke:null}),this.visual.append(this._backgroundPath))},e.prototype.createPlotBands=function(){var t=this,e=this.options,o=e.plotBands||[],r=e.vertical,i=this.plotArea;if(0!==o.length){for(var n=this._plotbandGroup=new D.drawing.Group({zIndex:-1}),a=at(this.pane.axes,(function(e){return e.options.vertical!==t.options.vertical}))[0],s=0;s<o.length;s++){var l=o[s],p=void 0,c=void 0,h=l.label,u=void 0;if(r?(p=(a||i.axisX).lineBox(),c=t.getSlot(l.from,l.to,!0)):(p=t.getSlot(l.from,l.to,!0),c=(a||i.axisY).lineBox()),h&&(h.vAlign=h.position||g,u=t.createPlotBandLabel(h,l,new ie(p.x1,c.y1,p.x2,c.y2))),0!==p.width()&&0!==c.height()){var f=new D.geometry.Rect([p.x1,c.y1],[p.width(),c.height()]),d=D.drawing.Path.fromRect(f,{fill:{color:l.color,opacity:l.opacity},stroke:null});n.append(d),u&&n.append(u)}}this.appendVisual(n)}},e.prototype.createPlotBandLabel=function(t,e,o){if(!1===t.visible)return null;var r,i=t.text;if(xt(t)&&t.visible){var n=ot(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(r=new Ee(i,t)).reflow(o),r.renderVisual(),r.visual},e.prototype.createGridLines=function(t){var e=this.options,o=e.minorGridLines,r=e.majorGridLines,i=e.minorUnit,n=e.vertical,a=t.options.line.visible,s=r.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,o){var r=t.length,i=Math.max(1,e.step);if(e.visible)for(var n=e.skip;n<r;n+=i){var s=Mt(t[n]);ct(s,h)||n%o==0||a&&p===s||(c.position=s,u.append(to(c,e)),h.push(s))}}return f(this.getMajorTickPositions(),r),f(this.getMinorTickPositions(),o,s/i),u.children},e.prototype.reflow=function(t){for(var e=this,o=e.options,r=e.labels,i=e.title,n=o.vertical,a=r.length,s=n?T:v,l=i?i.box[s]():0,p=this.getActualTickSize()+o.margin+l,c=((this.getRoot()||{}).box||t)[s](),h=0,u=0;u<a;u++){var f=r[u].box[s]();f+p<=c&&(h=Math.max(h,f))}this.box=n?new ie(t.x1,t.y1,t.x1+h+p,t.y2):new ie(t.x1,t.y1,t.x2,t.y1+h+p),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,o=this.labelsBetweenTicks(),r=t.vertical,i=t.labels.mirror,n=this.getLabelsTickPositions(),a=0;a<e.length;a++){var s=e[a],l=this.labelTickIndex(s),p=r?s.box.height():s.box.width(),c=n[l],h=n[l+1],u=void 0,f=void 0;r?f=u=o?c+(h-c)/2-p/2:c-p/2:o?(u=c,f=h):f=(u=c-p/2)+p,this.positionLabel(s,i,u,f)}},e.prototype.positionLabel=function(t,e,o,r){void 0===r&&(r=o);var i,n=this.options,s=n.vertical,l=this.lineBox(),p=this.getActualTickSize()+n.margin;if(s){var c=l.x2;e?(c+=p,t.options.rotationOrigin=g):(c-=p+t.box.width(),t.options.rotationOrigin=C),i=t.box.move(c,o)}else{var h=l.y1;e?(h-=p+t.box.height(),t.options.rotationOrigin=a):(h+=p,t.options.rotationOrigin=P),i=new ie(o,h,r,h+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,o=Math.min(e.length,t.length-1),r=0,i=0;i<o;i++){var n=Math.abs(t[i+1]-t[i]),a=e[i].box,s=this.autoRotateLabelAngle(a,n);if(0!==s&&(r=s),-90===r)break}if(0!==r){for(var l=0;l<e.length;l++)e[l].options.rotation=r,e[l].reflow(new ie);return!0}},e.prototype.arrangeTitle=function(){var t=this.options,e=this.title,o=t.labels.mirror,r=t.vertical;e&&(r?(e.options.align=o?C:g,e.options.vAlign=e.options.position):(e.options.align=e.options.position,e.options.vAlign=o?P:a),e.reflow(this.box))},e.prototype.arrangeNotes=function(){for(var t=this,e=0;e<this.notes.length;e++){var o=t.notes[e],r=o.options.value,i=void 0;xt(r)?(t.shouldRenderNote(r)?o.show():o.hide(),i=t.noteSlot(r)):o.hide(),o.reflow(i||t.lineBox())}},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.alignTo=function(t){var e=t.lineBox(),o=this.options.vertical,r=o?E:j;this.box.snapTo(e,r),o?this.box.shrink(0,this.lineBox().height()-e.height()):this.box.shrink(this.lineBox().width()-e.width(),0),this.box[r+1]-=this.lineBox()[r+1]-e[r+1],this.box[r+2]-=this.lineBox()[r+2]-e[r+2]},e.prototype.axisLabelText=function(t,e,o){var r=this,i=ot(e),n=function(){return e.format?r.chartService.format.localeAuto(e.format,[t],e.culture):t};return i?i(Object.assign({},o,{get text(){return n()},value:t,format:e.format,culture:e.culture})):n()},e.prototype.slot=function(t,e,o){var r=this.getSlot(t,e,o);if(r)return r.toRect()},e.prototype.contentBox=function(){var t=this.box.clone(),e=this.labels;if(e.length){var o=this.options.vertical?E:j;if(this.chartService.isPannable(o)){var r=this.maxLabelOffset();t[o+1]-=r.start,t[o+2]+=r.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,o=t.reverse,r=this.labelsBetweenTicks(),i=this.getLabelsTickPositions(),n=e?E:j,a=this.labels,s=o?1:0,l=o?0:1,p=0,c=0,h=0;h<a.length;h++){var u=a[h],f=this.labelTickIndex(u),d=void 0,v=void 0;r?(d=i[f+s],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,o,r,i){var n=this.options;if(t<o&&i<0&&(!xt(n.min)||n.min<=o)||r<e&&i>0&&(!xt(n.max)||r<=n.max))return null;if(e<o&&i>0||r<t&&i<0)return{min:t,max:e};var a=e-t,s=t,l=e;return t<o&&i<0?(s=Tt(t,o,r),l=Tt(t+a,o+a,r)):e>r&&i>0&&(l=Tt(e,o,r),s=Tt(e-a,o,r-a)),{min:s,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(),o=t?e.height():e.width(),r=t?E:j,i=this.lineDir(),n=r+(1===i?1:2).toString();return{axis:r,axisOrigin:n,axisDir:i,lineBox:e,lineSize:o,lineStart:e[n]}},e.prototype.pointOffset=function(t){var e=this.lineInfo(),o=e.axis,r=e.axisDir,i=e.axisOrigin,n=e.lineBox,a=e.lineSize;return(r>0?t[o]-n[i]:n[i]-t[o])/a},e.prototype.scaleToDelta=function(t,e){var o=Tt(t,-.999,.999);return o>0?e*Math.min(1,o):e-e/(1+o)},e.prototype.labelsBetweenTicks=function(){return!this.options.justified},e.prototype.prepareUserOptions=function(){},e}(fe);Bt(eo,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:n,visible:!0},title:{visible:!0,position:s},majorTicks:{align:w,size:4,skip:0,step:1},minorTicks:{align:w,size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:w,minorTickType:_,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});const oo=eo;var ro="milliseconds",io="seconds",no="minutes",ao="hours",so="days",lo="weeks",po="months",co="years",ho=1e3,uo=60*ho,fo=60*uo,vo=24*fo,yo=7*vo,go=31*vo,mo=365*vo,bo={years:mo,months:go,weeks:yo,days:vo,hours:fo,minutes:uo,seconds:ho,milliseconds:1};function _o(t,e){return t.getTime()-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*uo}function xo(t,e){return new Date(t.getTime()+e)}function wo(t){var e;return t instanceof Date?e=t:t&&(e=new Date(t)),e}function Co(t,e){return 0===e&&23===t.getHours()&&(t.setHours(t.getHours()+2),!0)}function Oo(t,e,o,r){var i=t;if(t){var n=wo(t),a=n.getHours();o===co?Co(i=new Date(n.getFullYear()+e,0,1),0):o===po?Co(i=new Date(n.getFullYear(),n.getMonth()+e,1),a):o===lo?(i=Oo(function(t,e){void 0===e&&(e=0);var o=0,r=t.getDay();if(!isNaN(r))for(;r!==e;)0===r?r=6:r--,o++;return xo(t,-o*vo)}(n,r),7*e,so),Co(i,a)):o===so?Co(i=new Date(n.getFullYear(),n.getMonth(),n.getDate()+e),a):o===ao?i=function(t,e){var o=new Date(t);o.setMinutes(0,0,0);var r=(t.getTimezoneOffset()-o.getTimezoneOffset())*uo;return xo(o,r+e*fo)}(n,e):o===no?(i=xo(n,e*uo)).getSeconds()>0&&i.setSeconds(0):o===io?i=xo(n,e*ho):o===ro&&(i=xo(n,e)),o!==ro&&i.getMilliseconds()>0&&i.setMilliseconds(0)}return i}function So(t,e,o){return Oo(wo(t),0,e,o)}function Po(t,e,o){var r=wo(t);return r&&So(r,e,o).getTime()===r.getTime()?r:Oo(r,1,e,o)}function Ao(t,e){return t&&e?t.getTime()-e.getTime():-1}function ko(t,e){return t.getTime()-e}function To(t){if(M(t)){for(var e=[],o=0;o<t.length;o++)e.push(To(t[o]));return e}if(t)return wo(t).getTime()}function jo(t,e){return t&&e?To(t)===To(e):t===e}function Eo(t,e,o){return _o(t,e)/bo[o]}function Mo(t,e,o,r){var i=wo(t),n=wo(e);return(o===po?i.getMonth()-n.getMonth()+12*(i.getFullYear()-n.getFullYear())+Eo(i,new Date(i.getFullYear(),i.getMonth()),so)/new Date(i.getFullYear(),i.getMonth()+1,0).getDate():o===co?i.getFullYear()-n.getFullYear()+Mo(i,new Date(i.getFullYear(),0),po,1)/12:o===so||o===lo?Eo(i,n,o):ko(i,e)/bo[o])/r}function Io(t,e,o){return o===co?e.getFullYear()-t.getFullYear():o===po?12*Io(t,e,co)+e.getMonth()-t.getMonth():o===so?Math.floor(ko(e,t)/vo):Math.floor(ko(e,t)/bo[o])}function Lo(t,e){return V(e)&&t.parseDate(e)||wo(e)}function Ro(t,e){if(M(e)){for(var o=[],r=0;r<e.length;r++)o.push(Lo(t,e[r]));return o}return Lo(t,e)}function Do(t,e){return z(t.weekStartDay)?t.weekStartDay:e&&e.firstDay?e.firstDay():0}var 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.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||[],o=xt(t.min),r=xt(t.max);if(t.srcCategories=t.categories=e,(o||r)&&e.length){var i,n=o?Math.floor(t.min):0;i=r?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:z(t.min)?t.min%1:0,max:z(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,o=this.options,r=z(o.min)?o.min:0;if(e=z(o.max)?o.max:z(o.min)?r+o.categories.length:this.totalRange().max||1,t){var i=this.totalRange();r=Tt(r,0,i.max),e=Tt(e,0,i.max)}return{min:r,max:e}},e.prototype.range=function(){var t=this.options;return{min:z(t.min)?t.min:0,max:z(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,o=t.max,r=this.lineBox();return{scale:(this.options.vertical?r.height():r.width())/(o-e||1)*(this.options.reverse?-1:1),box:r,min:e,max:o}},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 o=this.options.vertical?E:j,r=t[o+1],i=t[o+2],n=e[0],a=kt(e);(n.box[o+1]>i||n.box[o+2]<r)&&(n.options.visible=!1),(a.box[o+1]>i||a.box[o+2]<r)&&(a.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(),o=e.min,r=e.max,i=Math.ceil(r),n=Math.floor(o),a=[];n<=i;)a.push(n),n+=t;return a},e.prototype.getTickPositions=function(t){for(var e=this.options,o=e.vertical,r=e.reverse,i=this.scaleOptions(),n=i.scale,a=i.box,s=i.min,l=a[(o?E:j)+(r?2:1)],c=this.tickIndices(t),h=[],u=0;u<c.length;u++)h.push(l+Mt(n*(c[u]-s),p));return h},e.prototype.getTicks=function(){var t=this.options,e=this._ticks,o=this.rangeIndices(),r=this.lineBox(),i=r.getHash()+o.min+","+o.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,r),e.minorTicks=n?this.filterOutOfRangePositions(this.getTickPositions(.5),r):[]}return e},e.prototype.filterOutOfRangePositions=function(t,e){if(!t.length)return t;for(var o=this.options.vertical?E:j,r=function(t){return e[o+1]<=t&&t<=e[o+2]},i=t.length-1,n=0;!r(t[n])&&n<=i;)n++;for(var a=i;!r(t[a])&&a>=0;)a--;return t.slice(n,a+1)},e.prototype.lineInfo=function(){var t=this.options,e=t.vertical,o=t.reverse,r=this.lineBox(),i=e?r.height():r.width(),n=e?E:j,a=o?-1:1,s=n+(1===a?1:2).toString();return{axis:n,axisOrigin:s,axisDir:a,lineBox:r,lineSize:i,lineStart:r[s]}},e.prototype.lineDir=function(){return this.options.reverse?-1:1},e.prototype.getSlot=function(t,e,o){var r=this.options,i=r.reverse,n=r.justified,a=this.scaleOptions(),s=a.scale,l=a.box,p=a.min,c=this.lineInfo(),h=c.axis,u=c.lineStart,f=l.clone(),d=!xt(e),v=Lt(t,0),y=Lt(e,v);y=Math.max(y-1,v);var g=u+(v-p)*s,m=u+((y=Math.max(v,y))+1-p)*s;return d&&n&&(m=g),o&&(g=Tt(g,l[h+1],l[h+2]),m=Tt(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?E:j,o=this.lineBox(),r=t.clone();return r[e+1]=Tt(t[e+1],o[e+1],o[e+2]),r[e+2]=Tt(t[e+2],o[e+1],o[e+2]),r},e.prototype.slot=function(e,o,r){var i=Math.floor(this.options.min||0),n=e,a=o;return"string"==typeof n?n=this.categoryIndex(n):z(n)&&(n-=i),"string"==typeof a?a=this.categoryIndex(a):z(a)&&(a-=i),t.prototype.slot.call(this,n,a,r)},e.prototype.pointCategoryIndex=function(t){var e=this.options,o=e.reverse,r=e.justified,i=e.vertical?E:j,n=this.scaleOptions(),a=n.scale,s=n.box,l=n.min,p=n.max,c=o?p:l,h=s[i+1],u=s[i+2],f=t[i];if(f<h||f>u)return null;var d=c+(f-h)/a,v=d%1;return r?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 o=this.options;return(e?o.srcCategories:o.categories)[t]},e.prototype.categoriesCount=function(){return(this.options.categories||[]).length},e.prototype.translateRange=function(t){var e=this.options,o=this.lineBox(),r=e.vertical?o.height():o.width(),i=e.categories.length,n=Mt(t/(r/i),f);return{min:n,max:i+n}},e.prototype.scaleRange=function(t,e){var o=Math.abs(this.pointOffset(e)),r=this.totalRangeIndices(),i=r.max-r.min,n=this.scaleToDelta(t,i),a=o*n,s=(1-o)*n,l=r.min+a,p=r.max-s;return p-l<.1&&(p=l+.1),{min:l,max:p}},e.prototype.zoomRange=function(t,e){var o=this.totalRange(),r=o.min,i=o.max,n=this.scaleRange(t,e);return{min:Tt(n.min,r,i),max:Tt(n.max,r,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,o=t.labels,r=this.totalRangeIndices(!0),i=r.min,n=r.max,a=Math.floor(i);return e?(i=Math.ceil(i),n=Math.floor(n)):(i=Math.floor(i),n=Math.ceil(n)),{min:(i>o.skip?o.skip+o.step*Math.ceil((i-o.skip)/o.step):o.skip)-a,max:(t.categories.length?n+(e?1:0):0)-a}},e.prototype.createAxisLabel=function(t,e,o){var r=this.options,i=r.dataItems?r.dataItems[t]:null,n=Lt(r.categories[t],"");o.dataItem=i;var a=this.axisLabelText(n,e,o);return new De(n,a,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,o=t-Math.floor(e.min||0);return this.getSlot(o)},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 o=this.options.vertical?E:j,r=e[o+1],i=e[o+2],n=0;n<t.length;n++){var a=t[n];a.box&&(i<a.box[o+1]||a.box[o+2]<r)&&a.hide()}},e.prototype.pan=function(t){var e=this.totalRangeIndices(!0),o=this.scaleOptions().scale,r=Mt(t/o,f),i=this.totalRange(),n=e.min+r,a=e.max+r;return this.limitRange(n,a,0,i.max,r)},e.prototype.pointsRange=function(t,e){var o=this.options,r=o.reverse,i=o.vertical?E:j,n=this.totalRangeIndices(!0),a=this.scaleOptions(),s=a.scale,l=a.box[i+(r?2:1)],p=t[i]-l,c=e[i]-l,h=n.min+p/s,u=n.min+c/s,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,o=this._categoriesMap?this._categoriesMap.get(t):function(t,e){if(t instanceof Date){for(var o=e.length,r=0;r<o;r++)if(jo(e[r],t))return r;return-1}return e.indexOf(t)}(t,e.srcCategories);return o},e.prototype.currentRangeIndices=function(){var t=this.options,e=0;return z(t.min)&&(e=Math.floor(t.min)),{min:e,max:z(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 pt,e=this.options.srcCategories,o=0;o<e.length;o++)t.set(e[o],o)},e.prototype.totalCount=function(){return Math.max(this.options.srcCategories.length,this._seriesMax||0)},e}(oo);Bt(Bo,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:n},labels:{zIndex:1},justified:!1,_deferLabels:!0});const No=Bo;var zo={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"},Vo=[ro,io,no,ao,so,lo,po,co],Ho="fit";function Uo(t){var e=t._range;return e||((e=t._range=Nt(t)).min=wo(e.min),e.max=wo(e.max)),e}var Fo=function(t){this.options=t};Fo.prototype.displayIndices=function(){return{min:0,max:1}},Fo.prototype.displayRange=function(){return{}},Fo.prototype.total=function(){return{}},Fo.prototype.valueRange=function(){return{}},Fo.prototype.valueIndex=function(){return-1},Fo.prototype.values=function(){return[]},Fo.prototype.totalIndex=function(){return-1},Fo.prototype.valuesCount=function(){return 0},Fo.prototype.totalCount=function(){return 0},Fo.prototype.dateAt=function(){return null};var Go=function(t,e,o){this.options=o,o.baseUnitStep=o.baseUnitStep||1;var r=o.roundToBaseUnit,i=o.justified;this.start=Oo(t,0,o.baseUnit,o.weekStartDay);var n=this.roundToTotalStep(e),a=!i&&jo(e,n)&&!o.justifyEnd;this.end=this.roundToTotalStep(e,!i,a?1:0);var s=o.min||t;this.valueStart=this.roundToTotalStep(s),this.displayStart=r?this.valueStart:s;var l=o.max;if(l){var p=!i&&jo(l,this.roundToTotalStep(l))?-1:0;this.valueEnd=this.roundToTotalStep(l,!1,p),this.displayEnd=r?this.roundToTotalStep(l,!i):o.max}else this.valueEnd=n,this.displayEnd=r||a?this.end:e;this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))};function Wo(t,e,o){for(var r,i,n,a=Uo(t.categories),s=(t.max||a.max)-(t.min||a.min),l=t.autoBaseUnitSteps,p=t.maxDateGroups,c=t.baseUnit===Ho,h=e?Vo.indexOf(e):0,u=c?Vo[h++]:t.baseUnit,f=s/bo[u],d=f;!i||f>=p;){r=r||l[u].slice(0);do{n=r.shift()}while(n&&e===u&&n<o);if(n)f=d/(i=n);else{if(u===kt(Vo)){i=Math.ceil(d/p);break}if(!c){f>p&&(i=Math.ceil(d/p));break}u=Vo[h++]||kt(Vo),d=s/bo[u],r=null}}t.baseUnitStep=i,t.baseUnit=u}Go.prototype.displayRange=function(){return{min:this.displayStart,max:this.displayEnd}},Go.prototype.displayIndices=function(){if(!this._indices){var t=this.options,e=t.baseUnit,o=t.baseUnitStep,r=Mo(this.displayStart,this.valueStart,e,o),i=Mo(this.displayEnd,this.valueStart,e,o);this._indices={min:r,max:i}}return this._indices},Go.prototype.total=function(){return{min:this.start,max:this.end}},Go.prototype.totalCount=function(){return this.totalIndex(this.end)+(this.options.justified?1:0)},Go.prototype.valueRange=function(){return{min:this.valueStart,max:this.valueEnd}},Go.prototype.valueIndex=function(t){var e=this.options;return Math.floor(Mo(t,this.valueStart,e.baseUnit,e.baseUnitStep))},Go.prototype.totalIndex=function(t){var e=this.options;return Math.floor(Mo(t,this.start,e.baseUnit,e.baseUnitStep))},Go.prototype.dateIndex=function(t){var e=this.options;return Mo(t,this.valueStart,e.baseUnit,e.baseUnitStep)},Go.prototype.valuesCount=function(){return this.valueIndex(this.valueEnd)+1},Go.prototype.values=function(){var t=this._values;if(!t){var e=this.options,o=this.valueRange();this._values=t=[];for(var r=o.min;r<=o.max;)t.push(r),r=Oo(r,e.baseUnitStep,e.baseUnit,e.weekStartDay)}return t},Go.prototype.dateAt=function(t,e){var o=this.options;return Oo(e?this.start:this.valueStart,o.baseUnitStep*t,o.baseUnit,o.weekStartDay)},Go.prototype.roundToTotalStep=function(t,e,o){var r=this.options,i=r.baseUnit,n=r.baseUnitStep,a=r.weekStartDay,s=this.start,l=Mo(t,s,i,n),p=e?Math.ceil(l):Math.floor(l);return o&&(p+=o),Oo(s,p*n,i,a)};var Xo=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,o=e.intl,r=this.options,i=r.categories||[];if(i._parsed||((i=Ro(o,i))._parsed=!0),r=X({roundToBaseUnit:!0},r,{categories:i,min:Lo(o,r.min),max:Lo(o,r.max),weekStartDay:Do(r,o)}),e.panning&&e.isPannable(r.vertical?E:j)&&(r.roundToBaseUnit=!1),r.userSetBaseUnit=r.userSetBaseUnit||r.baseUnit,r.userSetBaseUnitStep=r.userSetBaseUnitStep||r.baseUnitStep,this.options=r,r.srcCategories=i,i.length>0){var n=Uo(i),a=r.maxDivisions;if(this.dataRange=new Go(n.min,n.max,function(t){var e=(t.baseUnit||"").toLowerCase();return e!==Ho&&!ct(e,Vo)&&function(t){for(var e,o,r=t.categories,i=xt(r)?r.length:0,n=m,a=0;a<i;a++){var s=r[a];if(s&&e){var l=_o(s,e);l>0&&(o=(n=Math.min(n,l))>=mo?co:n>=go-3*vo?po:n>=yo?lo:n>=vo?so:n>=fo?ao:n>=uo?no:io)}e=s}t.baseUnit=o||so}(t),e!==Ho&&"auto"!==t.baseUnitStep||Wo(t),t}(r)),a){var s=this.dataRange.displayRange(),l=Object.assign({},r,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:s.min,max:s.max,maxDateGroups:a}),p=this.dataRange.options;Wo(l,p.baseUnit,p.baseUnitStep),this.divisionRange=new Go(n.min,n.max,l)}else this.divisionRange=this.dataRange}else r.baseUnit=r.baseUnit||so,this.dataRange=this.divisionRange=new Fo(r);this.rangeLabels=[]},e.prototype.tickIndices=function(e){var o=this.dataRange,r=this.divisionRange,i=r.valuesCount();if(!this.options.maxDivisions||!i)return t.prototype.tickIndices.call(this,e);var n=[],a=r.values(),s=0;this.options.justified||(a=a.concat(r.dateAt(i)),s=.5);for(var l=0;l<a.length;l++)if(n.push(o.dateIndex(a[l])+s),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(),o=this.options.categories||[];return Ao(t,e.min)>=0&&Ao(t,e.max)<=0&&o.length},e.prototype.parseNoteValue=function(t){return Lo(this.chartService.intl,t)},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.translateRange=function(t){var e=this.options,o=e.baseUnit,r=e.weekStartDay,i=e.vertical,n=this.lineBox(),a=i?n.height():n.width(),s=this.range(),l=a/(s.max-s.min),p=Mt(t/l,f);if(s.min&&s.max){var c=xo(e.min||s.min,p),h=xo(e.max||s.max,p);s={min:Oo(c,0,o,r),max:Oo(h,0,o,r)}}return s},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,o=this.lineBox(),r=e.vertical?o.height():o.width(),i=this.dataRange.displayRange(),n=i.min,a=i.max,s=this.dataRange.total(),l=Mt(t/(r/(a-n)),f)*(e.reverse?-1:1),p=xo(n,l),c=xo(a,l),h=this.limitRange(To(p),To(c),To(s.min),To(s.max),l);return h?(h.min=wo(h.min),h.max=wo(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,o){if(this.isEmpty())return null;var r=t.prototype.pointsRange.call(this,e,o),i=this.dataRange.displayRange(),n=this.dataRange.displayIndices(),a=ko(i.max,i.min)/(n.max-n.min),s=this.options;return{min:xo(i.min,r.min*a),max:xo(i.min,r.max*a),baseUnit:s.userSetBaseUnit||s.baseUnit,baseUnitStep:s.userSetBaseUnitStep||s.baseUnitStep}},e.prototype.scaleRange=function(t,e){if(this.isEmpty())return{};var o=this.options,r=o.userSetBaseUnit===Ho,i=this.dataRange.total(),n=this.dataRange.displayRange(),a=n.min,s=n.max,l=Math.abs(this.pointOffset(e)),p=s-a,c=this.scaleToDelta(t,p),h=Math.round(l*c),u=Math.round((1-l)*c),f=this.dataRange.options.baseUnit,d=new Date(a.getTime()+h),v=new Date(s.getTime()-u);if(r){var y,g,m=o.autoBaseUnitSteps,b=o.maxDateGroups,_=kt(m[f])*b*bo[f],x=ko(s,a),w=ko(v,d),C=Vo.indexOf(f);if(w<bo[f]&&f!==ro)f=Vo[C-1],d=xo(a,g=(x-(b-1)*(y=kt(m[f]))*bo[f])/2),v=xo(s,-g);else if(w>_&&f!==co){var O=0;do{C++,f=Vo[C],O=0,g=2*bo[f];do{y=m[f][O],O++}while(O<m[f].length&&g*y<x)}while(f!==co&&g*y<x);(g=(g*y-x)/2)>0&&(d=xo(a,-g),v=xo(s,g),d=xo(d,Tt(v,i.min,i.max)-v),v=xo(v,Tt(d,i.min,i.max)-d))}}return d&&v&&ko(v,d)>0?{min:d,max:v,baseUnit:o.userSetBaseUnit||o.baseUnit,baseUnitStep:o.userSetBaseUnitStep||o.baseUnitStep}:void 0},e.prototype.zoomRange=function(t,e){var o=this.dataRange.total(),r=this.scaleRange(t,e);return r&&(r.min<o.min&&(r.min=o.min),r.max>o.max&&(r.max=o.max)),r},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 o=this.lineBox(),r=t.vertical,i=t.rangeLabels.mirror||t.labels.mirror,n=e[0];if(n){var a=r?o.y1-n.box.height()/2:o.x1;this.positionLabel(n,i,a)}var s=e[1];if(s){var l=r?o.y2-s.box.height()/2:o.x2;this.positionLabel(s,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 o=t[0];if(o&&o.options.visible)for(var r=0;r<e.length&&a(o,e[r]);r++);var i=t[1];if(i&&i.options.visible)for(var n=e.length-1;n>0&&a(i,e[n]);--n);}function a(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),o=this.rangeLabels,r=0;r<o.length;r++){var i=o[r];i.options.visible&&e.wrap(i.box)}return e},e.prototype.createAxisLabel=function(t,e,o){void 0===o&&(o={});var r=this.options,i=r.dataItems&&!r.maxDivisions?r.dataItems[t]:null,n=this.divisionRange.dateAt(t),a=e.dateFormats[this.divisionRange.options.baseUnit];e.format=e.format||a,o.dataItem=i;var s=this.axisLabelText(n,e,o);if(s)return new De(n,s,t,i,e)},e.prototype.createRangeLabels=function(){var t=this,e=this.divisionRange,o=e.displayStart,r=e.displayEnd,i=this.options,n=Object.assign({},i.labels,i.rangeLabels,{align:s,zIndex:i.zIndex});if(!0===n.visible){this.normalizeLabelRotation(n),n.alignRotation=s,"auto"===n.rotation&&(n.rotation=0,i.autoRotateRangeLabels=!0);var a=n.dateFormats[this.divisionRange.options.baseUnit];n.format=n.format||a;var l=function(e,o,r){if(r){var i=new De(o,r,e,null,n);t.append(i),t.rangeLabels.push(i)}};l(0,o,this.axisLabelText(o,n,{index:0,count:2})),l(1,r,this.axisLabelText(r,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 o=function(e,o,r){var i=2*Math.abs(o[r+1]-o[r]),n=t.autoRotateLabelAngle(e.box,i);0!==n&&(e.options.rotation=n,e.reflow(new ie))},r=this.getMajorTickPositions();o(e[0],r,0),o(e[1],r,r.length-2)}},e.prototype.categoryIndex=function(t){return this.dataRange.valueIndex(t)},e.prototype.slot=function(t,e,o){var r=this.dataRange,i=t,n=e;i instanceof Date&&(i=r.dateIndex(i)),n instanceof Date&&(n=r.dateIndex(n));var a=this.getSlot(i,n,o);if(a)return a.toRect()},e.prototype.getSlot=function(e,o,r){var i=e,n=o;return typeof i===x&&(i=this.categoryIndex(i)),typeof n===x&&(n=this.categoryIndex(n)),t.prototype.getSlot.call(this,i,n,r)},e.prototype.valueRange=function(){var t=Uo(this.options.srcCategories);return{min:wo(t.min),max:wo(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=Uo(t.srcCategories);return new Go(e.min,e.max,Object.assign({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:!1})).displayRange()},e}(No);Bt(Xo,{type:h,labels:{dateFormats:zo},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});const Ko=Xo;function Yo(t,e){return Mt(Math.floor(t/e)*e,f)}function qo(t,e){return Mt(Math.ceil(t/e)*e,f)}function Zo(t){return Math.max(Math.min(t,3e5),-3e5)}var Qo=Math.pow(10,1-f),$o=function(t){function e(e,o,r,i){t.call(this,Object.assign({},r,{seriesMin:e,seriesMax:o}),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,o){var r=o.narrowRange,i=function(t,e,o){if(!t&&!e)return 0;var r;if(t>=0&&e>=0){var i=t===e?0:t;if(!1===o||!o&&(e-i)/e>.2)return 0;r=Math.max(0,i-(e-i)/2)}else r=t;return r}(t,e,r),n=function(t,e,o){if(!t&&!e)return 1;var r;if(t<=0&&e<=0){var i=t===e?0:e,n=Math.abs((i-t)/i);if(!1===o||!o&&n>.2)return 0;r=Math.min(0,i-(t-i)/2)}else r=e;return r}(t,e,r),a=te(i,n),s={majorUnit:a};return!1!==o.roundToMajorUnit&&(i<0&&Jo(i,a,1/3)&&(i-=a),n>0&&Jo(n,a,1/3)&&(n+=a)),s.min=Yo(i,a),s.max=qo(n,a),s}(t.seriesMin,t.seriesMax,t);return this.totalOptions=function(t,e){return{min:xt(e.min)?Math.min(t.min,e.min):t.min,max:xt(e.max)?Math.max(t.max,e.max):t.max,majorUnit:t.majorUnit}}(e,t),function(t,e){var o,r,i=e;if(e){!function(t,e){for(var o=0;o<e.length;o++){var r=e[o];null===t[r]&&(t[r]=void 0)}}(e,["min","max"]),o=xt(e.min),r=xt(e.max);var n=o||r;n&&e.min===e.max&&(e.min>0?e.min=0:e.max=1),e.majorUnit?(t.min=Yo(t.min,e.majorUnit),t.max=qo(t.max,e.majorUnit)):n&&(i=X(t,e),t.majorUnit=te(i.min,i.max))}t.minorUnit=(i.majorUnit||t.majorUnit)/5;var a=X(t,i);return a.min>=a.max&&(o&&!r?a.max=a.min+a.majorUnit:!o&&r&&(a.min=a.max-a.majorUnit)),a}(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,o=e.max-e.min;return Math.floor(Mt(o/t,p))+1},e.prototype.getTickPositions=function(t,e){var o=this.options,r=this.lineInfo(),i=r.axisDir,n=r.axisOrigin,a=r.lineBox,s=t*(r.lineSize/(o.max-o.min)),l=this.getDivisions(t),c=[],h=a[n],u=0;e&&(u=e/t);for(var f=0;f<l;f++)f%u!=0&&c.push(Mt(h,p)),h+=s*i;return c},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,o){void 0===o&&(o=!1);var r=this.options,i=this.lineInfo(),n=i.axis,a=i.axisDir,s=i.lineBox,l=i.lineSize,p=i.lineStart,c=a*(l/(r.max-r.min)),h=Lt(t,e||0),u=Lt(e,t||0);o&&(h=Tt(h,r.min,r.max),u=Tt(u,r.min,r.max));var f=Math.min(h,u)-r.min,d=Math.max(h,u)-r.min,v=new ie(s.x1,s.y1,s.x1,s.y1);return v[n+1]=Zo(p+c*(a>0?f:d)),v[n+2]=Zo(p+c*(a>0?d:f)),v},e.prototype.getValue=function(t){var e=this.options,o=Number(e.max),r=Number(e.min),i=this.pointOffset(t);return i<0||i>1?null:Mt(r+i*(o-r),f)},e.prototype.translateRange=function(t){var e=this.options,o=e.vertical,r=e.reverse,i=e.max,n=e.min,a=this.lineInfo().lineSize,s=Mt(t/(a/(i-n)),f);return!o&&!r||o&&r||(s=-s),{min:n+s,max:i+s,offset:s}},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,o){var r=this.options,i=Mt(r.min+t*r.majorUnit,f),n=this.axisLabelText(i,e,o);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 o=this.getValue(t),r=this.getValue(e),i=Math.min(o,r),n=Math.max(o,r);if(this.isValidRange(i,n))return{min:i,max:n}},e.prototype.scaleRange=function(t,e){var o=Math.abs(this.pointOffset(e)),r=this.options.max-this.options.min,i=this.scaleToDelta(t,r),n=o*i,a=(1-o)*i,s=Mt(this.options.min+n,f),l=Mt(this.options.max-a,f);return l-s<Qo&&(l=s+Qo),{min:s,max:l}},e.prototype.zoomRange=function(t,e){var o=this.totalMin,r=this.totalMax,i=this.scaleRange(t,e);return{min:Tt(i.min,o,r),max:Tt(i.max,o,r),narrowRange:!1}},e.prototype.isValidRange=function(t,e){return e-t>Qo},e}(oo);function Jo(t,e,o){var r=Mt(Math.abs(t%e),f);return 0===r||r>e*(1-o)}Bt($o,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},labels:{format:"#.####################"},zIndex:1});const tr=$o;var er=function(t){function e(e,o,r,i){var n=wo(e),a=wo(o),s=i.intl,l=r||{};l=function(t,e,o){var r,i,n=o.min||t,a=o.max||e,s=o.baseUnit||(a&&n?(r=_o(a,n),i=ao,r>=mo?i=co:r>=go?i=po:r>=yo?i=lo:r>=vo&&(i=so),i):ao),l=bo[s],p=o.weekStartDay||0,c=So(To(n)-1,s,p)||wo(a),h=Po(To(a)+1,s,p),u=(o.majorUnit?o.majorUnit:void 0)||qo(te(c.getTime(),h.getTime()),l)/l,f=Io(c,h,s),d=qo(f,u)-f,v=Math.floor(d/2),y=d-v;return o.baseUnit||delete o.baseUnit,o.baseUnit=o.baseUnit||s,o.min=o.min||Oo(c,-v,s,p),o.max=o.max||Oo(h,y,s,p),o.minorUnit=o.minorUnit||u/5,o.majorUnit=u,o}(n,a,l=X(l||{},{min:Lo(s,l.min),max:Lo(s,l.max),axisCrossingValue:Ro(s,l.axisCrossingValues||l.axisCrossingValue),weekStartDay:Do(l,s)})),t.call(this,l,i),this.intlService=s,this.seriesMin=n,this.seriesMax=a;var p=l.weekStartDay||0;this.totalMin=To(So(To(n)-1,l.baseUnit,p)),this.totalMax=To(Po(To(a)+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(Io(e.min,e.max,e.baseUnit)/t+1)},e.prototype.getTickPositions=function(t){for(var e=this.options,o=this.lineInfo(),r=o.axisDir,i=o.lineSize,n=o.lineStart,a=this.getDivisions(t),s=i/ko(e.max,e.min),l=e.weekStartDay||0,c=[n],h=1;h<a;h++){var u=n+ko(Oo(e.min,h*t,e.baseUnit,l),e.min)*s*r;c.push(Mt(u,p))}return c},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,o){return tr.prototype.getSlot.call(this,Lo(this.intlService,t),Lo(this.intlService,e),o)},e.prototype.getValue=function(t){var e=tr.prototype.getValue.call(this,t);return null!==e?wo(e):null},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,o){var r=this.options,i=t*r.majorUnit,n=r.weekStartDay||0,a=r.min;i>0&&(a=Oo(a,i,r.baseUnit,n));var s=e.dateFormats[r.baseUnit];e.format=e.format||s;var l=this.axisLabelText(a,e,o);return new De(a,l,t,null,e)},e.prototype.translateRange=function(t){var e=this.options,o=this.lineBox(),r=e.vertical,i=e.reverse,n=r?o.height():o.width(),a=this.range(),s=n/ko(a.max,a.min),l=Mt(t/s,f);return!r&&!i||r&&i||(l=-l),{min:xo(e.min,l),max:xo(e.max,l),offset:l}},e.prototype.shouldRenderNote=function(t){var e=this.range();return Ao(t,e.min)>=0&&Ao(t,e.max)<=0},e.prototype.pan=function(t){var e=this.translateRange(t,!0),o=this.limitRange(To(e.min),To(e.max),this.totalMin,this.totalMax,e.offset);if(o)return{min:wo(o.min),max:wo(o.max)}},e.prototype.pointsRange=function(t,e){var o=this.getValue(t),r=this.getValue(e),i=Math.min(o,r),n=Math.max(o,r);return{min:wo(i),max:wo(n)}},e.prototype.scaleRange=function(t,e){var o=Math.abs(this.pointOffset(e)),r=this.options.max-this.options.min,i=this.scaleToDelta(t,r),n=o*i,a=(1-o)*i,s=wo(To(this.options.min)+n),l=wo(To(this.options.max)-a);return l-s<1e3&&(l=wo(To(s)+1e3)),{min:s,max:l}},e.prototype.zoomRange=function(t,e){var o=this.scaleRange(t,e);return{min:wo(Tt(To(o.min),this.totalMin,this.totalMax)),max:wo(Tt(To(o.max),this.totalMin,this.totalMax))}},e}(oo);Bt(er,{type:h,majorGridLines:{visible:!0,width:1,color:n},labels:{dateFormats:zo}});const or=er;var rr=1e-6,ir=function(t){function e(e,o,r,i){var n=X({majorUnit:10,min:e,max:o},r),a=n.majorUnit,s=function(t,e){var o=Mt(ar(t,e),f)%1;return t<=0?e:0!==o&&(o<.3||o>.9)?Math.pow(e,ar(t,e)+.2):Math.pow(e,Math.ceil(ar(t,e)))}(o,a),l=function(t,e,o){var r=o.majorUnit,i=t;return t<=0?i=e<=1?Math.pow(r,-2):1:o.narrowRange||(i=Math.pow(r,Math.floor(ar(t,r)))),i}(e,o,n),p=function(t,e,o,r){var i=o.min,n=o.max;return xt(o.axisCrossingValue)&&o.axisCrossingValue<=0&&nr(),xt(r.max)?r.max<=0&&nr():n=e,xt(r.min)?r.min<=0&&nr():i=t,{min:i,max:n}}(l,s,n,r);n.max=p.max,n.min=p.min,n.minorUnit=r.minorUnit||Mt(a-1,f),t.call(this,n,i),this.totalMin=xt(r.min)?Math.min(l,r.min):l,this.totalMax=xt(r.max)?Math.max(s,r.max):s,this.logMin=Mt(ar(p.min,a),f),this.logMax=Mt(ar(p.max,a),f),this.seriesMin=e,this.seriesMax=o,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,o){var r=this,i=r.options,n=r.logMin,a=r.logMax,s=i.majorUnit,l=i.min,p=i.max,c=this.lineInfo(),h=c.axis,u=c.axisDir,f=c.lineBox,d=c.lineSize,v=c.lineStart,y=u*(d/(a-n)),g=Lt(t,e||1),m=Lt(e,t||1);if(g<=0||m<=0)return null;o&&(g=Tt(g,l,p),m=Tt(m,l,p)),g=ar(g,s),m=ar(m,s);var b=Math.min(g,m)-n,_=Math.max(g,m)-n,x=new ie(f.x1,f.y1,f.x1,f.y1);return x[h+1]=Zo(v+y*(u>0?b:_)),x[h+2]=Zo(v+y*(u>0?_:b)),x},e.prototype.getValue=function(t){var e=this,o=e.options,r=e.logMin,i=e.logMax,n=o.majorUnit,a=this.lineInfo(),s=a.axis,l=a.axisDir,p=a.lineStart,c=a.lineSize,h=(i-r)/c,u=l*(t[s]-p);if(u<0||u>c)return null;var d=r+u*h;return Mt(Math.pow(n,d),f)},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.translateRange=function(t){var e=this,o=e.options,r=e.logMin,i=e.logMax,n=o.reverse,a=o.vertical,s=o.majorUnit,l=this.lineBox(),p=a?l.height():l.width(),c=Mt(t/(p/(i-r)),f);return!a&&!n||a&&n||(c=-c),{min:Math.pow(s,r+c),max:Math.pow(s,i+c),offset:c}},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,o=e.majorTicks,r=e.minorTicks,i=e.vertical,n=e.labels.mirror,a=this.lineBox(),s={vertical:i};function l(e,o){s.tickX=n?a.x2:a.x2-o.size,s.tickY=n?a.y1-o.size:a.y1,s.position=e,t.append(Je(s,o))}return o.visible&&this.traverseMajorTicksPositions(l,o),r.visible&&this.traverseMinorTicksPositions(l,r),[]},e.prototype.createGridLines=function(t){var e=this.options,o=e.minorGridLines,r=e.majorGridLines,i=e.vertical,n=t.lineBox(),a={lineStart:n[i?"x1":"y1"],lineEnd:n[i?"x2":"y2"],vertical:i},s=[],l=this.gridLinesVisual();function p(t,e){ct(t,s)||(a.position=t,l.append(to(a,e)),s.push(t))}return r.visible&&this.traverseMajorTicksPositions(p,r),o.visible&&this.traverseMinorTicksPositions(p,o),l.children},e.prototype.traverseMajorTicksPositions=function(t,e){for(var o=this.lineInfo(),r=o.lineStart,i=o.step,n=this.logMin,a=this.logMax,s=Math.ceil(n)+e.skip;s<=a;s+=e.step)t(Mt(r+i*(s-n),f),e)},e.prototype.traverseMinorTicksPositions=function(t,e){for(var o=this.options,r=o.min,i=o.max,n=o.minorUnit,a=o.majorUnit,s=this.lineInfo(),l=s.lineStart,p=s.step,c=this.logMin,h=this.logMax,u=Math.floor(c);u<h;u++)for(var d=this._minorIntervalOptions(u),v=e.skip;v<n;v+=e.step){var y=d.value+v*d.minorStep;if(y>i)break;y>=r&&t(Mt(l+p*(ar(y,a)-c),f),e)}},e.prototype.createAxisLabel=function(t,e,o){var r=Math.ceil(this.logMin+t),i=Math.pow(this.options.majorUnit,r),n=this.axisLabelText(i,e,o);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 o=this.getValue(t),r=this.getValue(e);return{min:Math.min(o,r),max:Math.max(o,r)}},e.prototype.scaleRange=function(t,e){var o=this.options.majorUnit,r=ar(this.options.min,o),i=ar(this.options.max,o),n=Math.abs(this.pointOffset(e)),a=i-r,s=this.scaleToDelta(t,a),l=Math.pow(o,r+n*s),p=Math.pow(o,i-(1-n)*s);return p-l<rr&&(p=l+rr),{min:l,max:p}},e.prototype.zoomRange=function(t,e){var o=this.scaleRange(t,e),r=this.totalMin,i=this.totalMax;return{min:Tt(o.min,r,i),max:Tt(o.max,r,i)}},e.prototype._minorIntervalOptions=function(t){var e=this.options,o=e.minorUnit,r=e.majorUnit,i=Math.pow(r,t);return{value:i,minorStep:(Math.pow(r,t+1)-i)/o}},e.prototype.lineInfo=function(){var e=t.prototype.lineInfo.call(this);return e.step=e.axisDir*(e.lineSize/(this.logMax-this.logMin)),e},e}(oo);function nr(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function ar(t,e){return Math.log(t)/Math.log(e)}Bt(ir,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},zIndex:1,_deferLabels:!0});const sr=ir,lr={createGridLines:function(t){var e,o,r=this.options,i=Math.abs(this.box.center().y-t.lineBox().y1),n=[],a=!1;return r.majorGridLines.visible&&(e=this.majorGridLineAngles(t),a=!0,n=this.renderMajorGridLines(e,i,r.majorGridLines)),r.minorGridLines.visible&&(o=this.minorGridLineAngles(t,a),bt(n,this.renderMinorGridLines(o,i,r.minorGridLines,t,a))),n},renderMajorGridLines:function(t,e,o){return this.renderGridLines(t,e,o)},renderMinorGridLines:function(t,e,o,r,i){var n=this.radiusCallback&&this.radiusCallback(e,r,i);return this.renderGridLines(t,e,o,n)},renderGridLines:function(t,e,o,r){for(var i={stroke:{width:o.width,color:o.color,dashType:o.dashType}},n=this.box.center(),a=new D.geometry.Circle([n.x,n.y],e),s=this.gridLinesVisual(),l=0;l<t.length;l++){var p=new D.drawing.Path(i);r&&(a.radius=r(t[l])),p.moveTo(a.center).lineTo(a.pointAt(t[l]+180)),s.append(p)}return s.children},gridLineAngles:function(t,e,o,r,i){var n=this,a=this.intervals(e,o,r,i),s=t.options,l=s.visible&&!1!==(s.line||{}).visible;return vt(a,(function(t){var e=n.intervalAngle(t);if(!l||90!==e)return e}))}};var pr=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,o=e.skip||0,r=e.step||1,i=new ie,n=0;n<t.length;n++){t[n].reflow(i);var a=t[n].box;t[n].reflow(this.getSlot(o+n*r).adjacentBox(0,a.width(),a.height()))}},e.prototype.intervals=function(t,e,o,r){void 0===r&&(r=!1);for(var i=this.options,n=i.categories.length/t||1,a=360/n,s=o||1,l=[],c=0,h=e||0;h<n;h+=s)c=i.reverse?360-h*a:h*a,c=Mt(c,p)%360,r&&ct(c,r)||l.push(c);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 vt(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 o=this.options,r=o.minorGridLines,i=o.majorGridLines,n=e?this.intervals(1,i.skip,i.step):null;return this.gridLineAngles(t,.5,r.skip,r.step,n)},e.prototype.radiusCallback=function(t,e,o){if(e.options.type!==i){var r=Et(360/(2*this.options.categories.length)),n=Math.cos(r)*t,a=this.majorAngles();return function(e){return!o&&ct(e,a)?t:n}}},e.prototype.createPlotBands=function(){for(var t=this.options.plotBands||[],e=this._plotbandGroup=new D.drawing.Group({zIndex:-1}),o=0;o<t.length;o++){var r=t[o],i=this.plotBandSlot(r),n=this.getSlot(r.from),a=r.from-Math.floor(r.from);i.startAngle+=a*n.angle;var s=Math.ceil(r.to)-r.to;i.angle-=(s+a)*n.angle;var l=he.current.createRing(i,{fill:{color:r.color,opacity:r.opacity},stroke:{opacity:r.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 o=this.options,r=o.justified,i=this.box,n=this.majorAngles(),a=n.length,s=360/a,l=t;o.reverse&&!r&&(l=(l+1)%a);var p=n[l=Tt(Math.floor(l),0,a-1)];r&&(p-=s/2)<0&&(p+=360);var c=s*(Tt(Math.ceil(e||l),l,a-1)-l+1);return new se(i.center(),0,i.height()/2,p,c)},e.prototype.slot=function(t,e){var o=this.getSlot(t,e),r=o.startAngle+180,i=r+o.angle;return new D.geometry.Arc([o.center.x,o.center.y],{startAngle:r,endAngle:i,radiusX:o.radius,radiusY:o.radius})},e.prototype.pointCategoryIndex=function(t){for(var e=this.options.categories.length,o=null,r=0;r<e;r++)if(this.getSlot(r).containsPoint(t)){o=r;break}return o},e}(No);Bt(pr,{startAngle:90,labels:{margin:$(10)},majorGridLines:{visible:!0},justified:!0}),X(pr.prototype,lr);const cr=pr;var hr=function(t){function e(e,o){t.call(this,e,o);var r=this.options;r.minorUnit=r.minorUnit||r.majorUnit/2}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDivisions=function(t){return tr.prototype.getDivisions.call(this,t)-1},e.prototype.reflow=function(t){this.box=t,this.reflowLabels()},e.prototype.reflowLabels=function(){for(var t=this,e=t.options,o=t.labels,r=t.options.labels,i=r.skip||0,n=r.step||1,a=new ie,s=this.intervals(e.majorUnit,i,n),l=0;l<o.length;l++){o[l].reflow(a);var p=o[l].box;o[l].reflow(this.getSlot(s[l]).adjacentBox(0,p.width(),p.height()))}},e.prototype.lineBox=function(){return this.box},e.prototype.intervals=function(t,e,o,r){void 0===r&&(r=!1);for(var i=this.options.min,n=this.getDivisions(t),a=[],s=o||1,l=e||0;l<n;l+=s){var p=(360+i+l*t)%360;r&&ct(p,r)||a.push(p)}return a},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 o=this.options,r=o.minorGridLines,i=o.majorGridLines,n=e?this.intervals(o.majorUnit,i.skip,i.step):null;return this.gridLineAngles(t,o.minorUnit,r.skip,r.step,n)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to)},e.prototype.getSlot=function(t,e){var o=this.options,r=this.box,i=o.startAngle,n=Tt(t,o.min,o.max),a=Tt(e||n,n,o.max);if(o.reverse&&(n*=-1,a*=-1),(a=(540-a-i)%360)<(n=(540-n-i)%360)){var s=n;n=a,a=s}return new se(r.center(),0,r.height()/2,n,a-n)},e.prototype.slot=function(t,e){void 0===e&&(e=t);var o,r,i=this.options,n=360-i.startAngle,a=this.getSlot(t,e),s=Math.min(t,e),l=Math.max(t,e);return i.reverse?(o=s,r=l):(o=360-l,r=360-s),o=(o+n)%360,r=(r+n)%360,new D.geometry.Arc([a.center.x,a.center.y],{startAngle:o,endAngle:r,radiusX:a.radius,radiusY:a.radius})},e.prototype.getValue=function(t){var e=this.options,o=this.box.center(),r=t.x-o.x,i=t.y-o.y,n=Math.round(wt(Math.atan2(i,r))),a=e.startAngle;return e.reverse||(n*=-1,a*=-1),(n+a+360)%360},e.prototype.valueRange=function(){return{min:0,max:2*Math.PI}},e}(oo);Bt(hr,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:$(10)},majorGridLines:{color:n,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),X(hr.prototype,lr,{createPlotBands:cr.prototype.createPlotBands,majorAngles:cr.prototype.majorAngles,range:tr.prototype.range,labelsCount:tr.prototype.labelsCount,createAxisLabel:tr.prototype.createAxisLabel});const ur=hr;var fr={options:{majorGridLines:{visible:!0}},createPlotBands:function(){var t=this.options,e=t.majorGridLines.type,o=t.plotBands;void 0===o&&(o=[]);for(var r=this.plotArea.polarAxis,n=r.majorAngles(),a=r.box.center(),s=this._plotbandGroup=new D.drawing.Group({zIndex:-1}),l=0;l<o.length;l++){var p,c=o[l],h={fill:{color:c.color,opacity:c.opacity},stroke:{opacity:c.opacity}},u=this.getSlot(c.from,c.to,!0),f=new se(a,a.y-u.y2,a.y-u.y1,0,360);p=e===i?he.current.createRing(f,h):D.drawing.Path.fromPoints(this.plotBandPoints(f,n),h).close(),s.append(p)}this.appendVisual(s)},plotBandPoints:function(t,e){for(var o=[],r=[],i=[t.center.x,t.center.y],n=new D.geometry.Circle(i,t.innerRadius),a=new D.geometry.Circle(i,t.radius),s=0;s<e.length;s++)o.push(n.pointAt(e[s]+180)),r.push(a.pointAt(e[s]+180));return o.reverse(),o.push(o[0]),r.push(r[0]),r.concat(o)},createGridLines:function(t){var e=this.options,o=this.radarMajorGridLinePositions(),r=t.majorAngles(),i=t.box.center(),n=[];if(e.majorGridLines.visible&&(n=this.renderGridLines(i,o,r,e.majorGridLines)),e.minorGridLines.visible){var a=this.radarMinorGridLinePositions();bt(n,this.renderGridLines(i,a,r,e.minorGridLines))}return n},renderGridLines:function(t,e,o,r){var n={stroke:{width:r.width,color:r.color,dashType:r.dashType}},a=r.skip;void 0===a&&(a=0);var s=r.step;void 0===s&&(s=0);for(var l=this.gridLinesVisual(),p=a;p<e.length;p+=s){var c=t.y-e[p];if(c>0){var h=new D.geometry.Circle([t.x,t.y],c);if(r.type===i)l.append(new D.drawing.Circle(h,n));else{for(var u=new D.drawing.Path(n),f=0;f<o.length;f++)u.lineTo(h.pointAt(o[f]+180));u.close(),l.append(u)}}}return l.children},getValue:function(t){var e=this.lineBox(),o=this.plotArea.polarAxis,r=o.majorAngles(),n=o.box.center(),a=t.distanceTo(n),s=a;if(this.options.majorGridLines.type!==i&&r.length>1){var l=t.x-n.x,p=t.y-n.y,c=(wt(Math.atan2(p,l))+540)%360;r.sort((function(t,e){return dr(t,c)-dr(e,c)}));var h=90-dr(r[0],r[1])/2,u=180-dr(c,r[0])-h;s=a*(Math.sin(Et(u))/Math.sin(Et(h)))}return this.axisType().prototype.getValue.call(this,new ee(e.x1,e.y2-s))}};function dr(t,e){return 180-Math.abs(Math.abs(t-e)-180)}const vr=fr;var yr=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}(tr);X(yr.prototype,vr);const gr=yr;var mr=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}(sr);X(mr.prototype,vr);const br=mr;function _r(t){return t<=0?-1:1}const xr=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),o=[],r=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 o;var n,a,s=e[0],l=e[1],p=e[2];for(o.push(new D.geometry.Segment(s));s.equals(e[i-1]);)r=!0,e.pop(),i--;if(2===i){var c=this.tangent(s,l,j,E);return kt(o).controlOut(this.firstControlPoint(c,s,l,j,E)),o.push(new D.geometry.Segment(l,this.secondControlPoint(c,s,l,j,E))),o}if(r){s=e[i-1],l=e[0],p=e[1];var h=this.controlPoints(s,l,p);n=h[1],a=h[0]}else{var u=this.tangent(s,l,j,E);n=this.firstControlPoint(u,s,l,j,E)}for(var f=n,d=0;d<=i-3;d++)if(this.removeDuplicates(d,e),d+3<=(i=e.length)){s=e[d],l=e[d+1],p=e[d+2];var v=this.controlPoints(s,l,p);kt(o).controlOut(f),f=v[1];var y=v[0];o.push(new D.geometry.Segment(l,y))}if(r){s=e[i-2],l=e[i-1],p=e[0];var g=this.controlPoints(s,l,p);kt(o).controlOut(f),o.push(new D.geometry.Segment(l,g[0])),kt(o).controlOut(g[1]),o.push(new D.geometry.Segment(p,a))}else{var m=this.tangent(l,p,j,E);kt(o).controlOut(f),o.push(new D.geometry.Segment(p,this.secondControlPoint(m,l,p,j,E)))}return o},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,o){var r=!1;if(t.x===e.x)r=!0;else if(e.x===o.x)(e.y<o.y&&t.y<=e.y||o.y<e.y&&e.y<=t.y)&&(r=!0);else{var i=this.lineFunction(t,e),n=this.calculateFunction(i,o.x);t.y<=e.y&&o.y<=n||e.y<=t.y&&o.y>=n||(r=!0)}return r},e.prototype.isLine=function(t,e,o){var r=this.lineFunction(t,e),i=this.calculateFunction(r,o.x);return t.x===e.x&&e.x===o.x||Mt(i,1)===Mt(o.y,1)},e.prototype.lineFunction=function(t,e){var o=(e.y-t.y)/(e.x-t.x);return[t.y-o*t.x,o]},e.prototype.controlPoints=function(t,e,o){var r,i=j,n=E,a=!1,s=!1;if(this.isLine(t,e,o))r=this.tangent(t,e,j,E);else{var l={x:this.isMonotonicByField(t,e,o,j),y:this.isMonotonicByField(t,e,o,E)};l.x&&l.y?(r=this.tangent(t,o,j,E),a=!0):(this.invertAxis(t,e,o)&&(i=E,n=j),l[i]?r=0:(r=.01*(o[n]<t[n]&&t[n]<=e[n]||t[n]<o[n]&&e[n]<=t[n]?_r((o[n]-t[n])*(e[i]-t[i])):-_r((o[i]-t[i])*(e[n]-t[n]))),s=!0))}var p=this.secondControlPoint(r,t,e,i,n);if(s){var c=i;i=n,n=c}var h=this.firstControlPoint(r,e,o,i,n);return a&&(this.restrictControlPoint(t,e,p,r),this.restrictControlPoint(e,o,h,r)),[p,h]},e.prototype.restrictControlPoint=function(t,e,o,r){t.y<e.y?e.y<o.y?(o.x=t.x+(e.y-t.y)/r,o.y=e.y):o.y<t.y&&(o.x=e.x-(e.y-t.y)/r,o.y=t.y):o.y<e.y?(o.x=t.x-(t.y-e.y)/r,o.y=e.y):t.y<o.y&&(o.x=e.x+(t.y-e.y)/r,o.y=t.y)},e.prototype.tangent=function(t,e,o,r){var i=e[o]-t[o],n=e[r]-t[r];return 0===i?0:n/i},e.prototype.isMonotonicByField=function(t,e,o,r){return o[r]>e[r]&&e[r]>t[r]||o[r]<e[r]&&e[r]<t[r]},e.prototype.firstControlPoint=function(t,e,o,r,i){var n=e[r],a=.333*(o[r]-n);return this.point(n+a,e[i]+a*t,r,i)},e.prototype.secondControlPoint=function(t,e,o,r,i){var n=e[r],a=o[r],s=.333*(a-n);return this.point(a-s,o[i]-s*t,r,i)},e.prototype.point=function(t,e,o,r){var i=new D.geometry.Point;return i[o]=t,i[r]=e,i},e.prototype.calculateFunction=function(t,e){for(var o=t.length,r=0,i=0;i<o;i++)r+=Math.pow(e,i)*t[i];return r},e}(D.Class);var wr=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;return e.getCategory?e.getCategory(t):e.getValue(t)},e.prototype.slot=function(t,e,o){return void 0===o&&(o=!0),this._axis.slot(t,e,o)},e.prototype.range=function(){return this._axis.range()},e.prototype.valueRange=function(){return this._axis.valueRange()},e}(D.Class);const Cr=wr;function Or(t,e){for(var o=0;o<e.length;o++)if(e[o].options.name===t)return e[o].prepareUserOptions(),new Cr(e[o])}var Sr=function(t){this.visual=t.visual,this.chartsVisual=t.chartContainer.visual,this._pane=t};Sr.prototype.findAxisByName=function(t){return Or(t,this._pane.axes)};const Pr=Sr,Ar=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}(D.Class);function kr(t){for(var e=t.length,o=0,r=0;r<e;r++)z(t[r])&&o++;return o}var Tr={min:function(t){for(var e=t.length,o=m,r=0;r<e;r++){var i=t[r];z(i)&&(o=Math.min(o,i))}return o===m?t[0]:o},max:function(t){for(var e=t.length,o=b,r=0;r<e;r++){var i=t[r];z(i)&&(o=Math.max(o,i))}return o===b?t[0]:o},sum:function(t){for(var e=t.length,o=0,r=0;r<e;r++){var i=t[r];z(i)&&(o+=i)}return o},sumOrNull:function(t){var e=null;return kr(t)&&(e=Tr.sum(t)),e},count:function(t){for(var e=t.length,o=0,r=0;r<e;r++){var i=t[r];null!==i&&xt(i)&&o++}return o},avg:function(t){var e=kr(t),o=t[0];return e>0&&(o=Tr.sum(t)/e),o},first:function(t){for(var e=t.length,o=0;o<e;o++){var r=t[o];if(null!==r&&xt(r))return r}return t[0]}};const jr=Tr;function Er(t,e){return null===e?e:nt(t)(e)}var Mr=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,o){var r=this;void 0===e&&(e=[A]),void 0===o&&(o={});for(var i=0;i<t.length;i++){var n=t[i];r._valueFields[n]=e,r._otherFields[n]=o,r._nullValue[n]=r._makeValue(e,null),r._undefinedValue[n]=r._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]||[A]},e.prototype.otherFields=function(t){return this._otherFields[t.type]||[A]},e.prototype.bindPoint=function(t,e,o){var r,i,n=t.data,a=xt(o)?o:n[e],s={valueFields:{value:a}},l=this.valueFields(t),p=this._otherFields[t.type];if(null===a)i=this._nullValue[t.type];else if(xt(a)){if(Array.isArray(a)){var c=a.slice(l.length);i=this._bindFromArray(a,l),r=this._bindFromArray(c,p)}else if("object"==typeof a){var h=this.sourceFields(t,l),u=this.sourceFields(t,p);i=this._bindFromObject(a,l,h),r=this._bindFromObject(a,p,u)}}else i=this._undefinedValue[t.type];return xt(i)&&(1===l.length?s.valueFields.value=i[l[0]]:s.valueFields=i),s.fields=r||{},s},e.prototype._makeValue=function(t,e){for(var o={},r=t.length,i=0;i<r;i++)o[t[i]]=e;return o},e.prototype._bindFromArray=function(t,e){var o={};if(e)for(var r=Math.min(e.length,t.length),i=0;i<r;i++)o[e[i]]=t[i];return o},e.prototype._bindFromObject=function(t,e,o){void 0===o&&(o=e);var r={};if(e)for(var i=e.length,n=0;n<i;n++){var a=e[n],s=o[n];null!==s&&(r[a]=Er(s,t))}return r},e.prototype.sourceFields=function(t,e){var o=[];if(e)for(var r=e.length,i=0;i<r;i++){var n=e[i],a=n===A?"field":n+"Field";o.push(null!==t[a]?t[a]||n:null)}return o},e}(D.Class);Mr.current=new Mr;const Ir=Mr;var Lr=/percent(?:\w*)\((\d+)\)/,Rr=new RegExp("^stddev(?:\\((\\d+(?:\\.\\d+)?)\\))?$");const Dr=function(t){function e(e,o,r){t.call(this),this.initGlobalRanges(e,o,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initGlobalRanges=function(t,e,o){var r=e.data,i=Rr.exec(t);if(i){this.valueGetter=this.createValueGetter(e,o);var n=this.getAverage(r),a=this.getStandardDeviation(r,n,!1),s=i[1]?parseFloat(i[1]):1,l={low:n.value-a*s,high:n.value+a*s};this.globalRange=function(){return l}}else if(t.indexOf&&t.indexOf("stderr")>=0){this.valueGetter=this.createValueGetter(e,o);var p=this.getStandardError(r,this.getAverage(r));this.globalRange=function(t){return{low:t-p,high:t+p}}}},e.prototype.createValueGetter=function(t,e){var o,r=t.data,i=Ir.current,n=i.valueFields(t),a=xt(r[0])?r[0]:{};return M(a)?o=nt("["+(e?n.indexOf(e):0)+"]"):z(a)?o=nt():typeof a===x&&(o=nt(i.sourceFields(t,n)[n.indexOf(e)])),o},e.prototype.getErrorRange=function(t,e){var o,r,i;if(!xt(e))return null;if(this.globalRange)return this.globalRange(t);if(M(e))o=t-e[0],r=t+e[1];else if(z(i=parseFloat(e)))o=t-i,r=t+i;else{if(!(i=Lr.exec(e)))throw new Error("Invalid ErrorBar value: "+e);var n=t*(parseFloat(i[1])/100);o=t-Math.abs(n),r=t+Math.abs(n)}return{low:o,high:r}},e.prototype.getStandardError=function(t,e){return this.getStandardDeviation(t,e,!0)/Math.sqrt(e.count)},e.prototype.getStandardDeviation=function(t,e,o){for(var r=t.length,i=o?e.count-1:e.count,n=0,a=0;a<r;a++){var s=this.valueGetter(t[a]);z(s)&&(n+=Math.pow(s-e.value,2))}return Math.sqrt(n/i)},e.prototype.getAverage=function(t){for(var e=t.length,o=0,r=0,i=0;i<e;i++){var n=this.valueGetter(t[i]);z(n)&&(o+=n,r++)}return{value:o/r,count:r}},e}(D.Class);var Br=D.support.browser||{},Nr=600,zr="fadeIn",Vr=.8,Hr=Br.msie?.001:0,Ur="errorLow",Fr="errorHigh",Gr="zero",Wr="interpolate",Xr="above",Kr="below",Yr="smooth",qr="step",Zr="area",Qr="bar",$r="boxPlot",Jr="bubble",ti="bullet",ei="candlestick",oi="column",ri="donut",ii="funnel",ni="heatmap",ai="horizontalWaterfall",si="line",li="ohlc",pi="pie",ci="polarArea",hi="polarLine",ui="polarScatter",fi="radarArea",di="radarColumn",vi="radarLine",yi="rangeArea",gi="rangeBar",mi="rangeColumn",bi="scatter",_i="scatterLine",xi="verticalArea",wi="verticalBoxPlot",Ci="verticalBullet",Oi="verticalLine",Si="verticalRangeArea",Pi="waterfall",Ai=[Qr,oi,li,ei,$r,wi,ti,mi,gi,Pi,ai],ki="seriesClick",Ti="seriesHover",ji="seriesOver",Ei="seriesLeave",Mi="plotAreaHover",Ii="plotAreaLeave",Li="drag",Ri="dragEnd",Di="dragStart",Bi="zoomStart",Ni="zoom",zi="zoomEnd",Vi="selectStart",Hi="select",Ui="selectEnd",Fi="showTooltip",Gi="hideTooltip",Wi="log",Xi="category",Ki="insideEnd",Yi="outsideEnd",qi="wheel",Zi="drilldown",Qi=function(t){function e(e,o,r,i,n,a){t.call(this,a),this.low=e,this.high=o,this.isVertical=r,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,o=this.options.endCaps,r=this.isVertical,i=this.getAxis().getSlot(this.low,this.high),n=t.center(),a=this.getCapsWidth(t,r),s=r?n.x:n.y,l=s-a,p=s+a;r?(e=[new ee(n.x,i.y1),new ee(n.x,i.y2)],o&&e.push(new ee(l,i.y1),new ee(p,i.y1),new ee(l,i.y2),new ee(p,i.y2)),this.box=new ie(l,i.y1,p,i.y2)):(e=[new ee(i.x1,n.y),new ee(i.x2,n.y)],o&&e.push(new ee(i.x1,l),new ee(i.x1,p),new ee(i.x2,l),new ee(i.x2,p)),this.box=new ie(i.x1,l,i.x2,p)),this.linePoints=e},e.prototype.getCapsWidth=function(t,e){var o=e?t.width():t.height();return Math.min(Math.floor(o/2),4)||4},e.prototype.createVisual=function(){var t=this,e=this.options,o=e.visual;o?this.visual=o({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,o=this.linePoints,r={stroke:{color:e.color,width:e.line.width,dashType:e.line.dashType}};t.prototype.createVisual.call(this);for(var i=0;i<o.length;i+=2){var n=new D.drawing.Path(r).moveTo(o[i].x,o[i].y).lineTo(o[i+1].x,o[i+1].y);B(n),this.visual.append(n)}},e}(fe);Bt(Qi,{animation:{type:zr,delay:Nr},endCaps:!0,line:{width:2},zIndex:1});const $i=Qi;var Ji=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}($i);const tn=Ji;var en=5;function on(t,e,o,r){void 0===o&&(o={}),void 0===r&&(r=!1);var i=o.defaults=o.defaults||{},n=o.depth=o.depth||0,a=!1;if(o.excluded=o.excluded||[],n>en)return null;for(var s in t)if(!ct(s,o.excluded)&&t.hasOwnProperty(s)){var l=t[s];U(l)?(a=!0,r||(t[s]=Lt(l(e),i[s]))):K(l)&&(r||(o.defaults=i[s]),o.depth++,a=on(l,e,o,r)||a,o.depth--)}return a}function rn(t){for(var e=t.length,o=0,r=0;r<e;r++)o=Math.max(o,t[r].data.length);return o}var nn=function(t){function e(e,o){t.call(this,o),this.plotArea=e,this.chartService=e.chartService,this.categoryAxis=e.seriesCategoryAxis(o.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 o=this.seriesOptions[e];if(!o){var r=this.pointType().prototype.defaults;this.seriesOptions[e]=o=X({},r,{vertical:!this.options.invertAxes},t)}return o},e.prototype.plotValue=function(t){if(!t)return 0;if(this.options.isStacked100&&z(t.value)){for(var e=t.categoryIx,o=this.categoryPoints[e],r=[],i=0,n=0;n<o.length;n++){var a=o[n];if(a){var s=t.series.stack,l=a.series.stack;if(s&&l&&s.group!==l.group)continue;z(a.value)&&(i+=Math.abs(a.value),r.push(Math.abs(a.value)))}}if(i>0)return t.value/i}return t.value},e.prototype.plotRange=function(t,e){void 0===e&&(e=0);var o=this.categoryPoints[t.categoryIx];if(this.options.isStacked){for(var r=this.plotValue(t),i=r>=0,n=e,a=!1,s=0;s<o.length;s++){var l=o[s];if(t===l)break;var p=t.series.stack,c=l.series.stack;if(p&&c){if(typeof p===S&&p!==c)continue;if(p.group&&p.group!==c.group)continue}var h=this.plotValue(l);(h>=0&&i||h<0&&!i)&&(n+=h,r+=h,a=!0,this.options.isStacked100&&(r=Math.min(r,1)))}return a&&(n-=e),[n,r]}var u=t.series,f=this.seriesValueAxis(u),d=this.categoryAxisCrossingValue(f);return[d,H(t.value)?t.value:d]},e.prototype.stackLimits=function(t,e){for(var o=m,r=b,i=0;i<this.categoryPoints.length;i++){var n=this.categoryPoints[i];if(n)for(var a=0;a<n.length;a++){var s=n[a];if(s&&(s.series.stack===e||s.series.axis===t)){var l=this.plotRange(s,0)[1];xt(l)&&isFinite(l)&&(r=Math.max(r,l),o=Math.min(o,l))}}}return{min:o,max:r}},e.prototype.updateStackRange=function(){var t=this,e=this.options,o=e.isStacked,r=e.series,i={};if(o)for(var n=0;n<r.length;n++){var a=r[n],s=a.axis,l=s+a.stack,p=i[l];if(!p){p=t.stackLimits(s,a.stack);var c=t.errorTotals;c&&(c.negative.length&&(p.min=Math.min(p.min,Nt(c.negative).min)),c.positive.length&&(p.max=Math.max(p.max,Nt(c.positive).max))),p.min!==m||p.max!==b?i[l]=p:p=null}p&&(t.valueAxisRanges[s]=p)}},e.prototype.addErrorBar=function(t,e,o){var r,i=t.value,n=t.series,a=t.seriesIx,s=t.options.errorBars,l=e.fields[Ur],p=e.fields[Fr];z(l)&&z(p)?r={low:l,high:p}:s&&xt(s.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[a]=this.seriesErrorRanges[a]||new Dr(s.value,n,A),r=this.seriesErrorRanges[a].getErrorRange(i,s.value)),r&&(t.low=r.low,t.high=r.high,this.addPointErrorBar(t,o))},e.prototype.addPointErrorBar=function(t,e){var o=!this.options.invertAxes,r=t.options.errorBars,i=t.series,n=t.low,a=t.high;if(this.options.isStacked){var s=this.stackedErrorRange(t,e);n=s.low,a=s.high}else{var l={categoryIx:e,series:i};this.updateRange({value:n},l),this.updateRange({value:a},l)}var p=new tn(n,a,o,this,i,r);t.errorBars=[p],t.append(p)},e.prototype.stackedErrorRange=function(t,e){var o=this.plotRange(t,0)[1]-t.value,r=t.low+o,i=t.high+o;return this.errorTotals=this.errorTotals||{positive:[],negative:[]},r<0&&(this.errorTotals.negative[e]=Math.min(this.errorTotals.negative[e]||0,r)),i>0&&(this.errorTotals.positive[e]=Math.max(this.errorTotals.positive[e]||0,i)),{low:r,high:i}},e.prototype.addValue=function(t,e){var o=e.categoryIx,r=e.series,i=e.seriesIx,n=this.categoryPoints[o];n||(this.categoryPoints[o]=n=[]);var a=this.seriesPoints[i];a||(this.seriesPoints[i]=a=[]);var s=this.createPoint(t,e);s&&(Object.assign(s,e),s.owner=this,s.noteText=t.fields.noteText,xt(s.dataItem)||(s.dataItem=r.data[o]),this.addErrorBar(s,t,o)),this.points.push(s),a.push(s),n.push(s),this.updateRange(t.valueFields,e)},e.prototype.evalPointOptions=function(t,e,o){var r=o.categoryIx,i=o.category,n=o.series,a=o.seriesIx,s={defaults:n._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint","drilldownSeriesFactory"]},l=this._evalSeries[a];xt(l)||(this._evalSeries[a]=l=on(t,{},s,!0));var p=t;return l&&on(p=X({},p),{value:e,category:i,index:r,series:n,dataItem:n.data[r]},s),p},e.prototype.updateRange=function(t,e){var o=e.series.axis,r=t.value,i=this.valueAxisRanges[o];isFinite(r)&&null!==r&&((i=this.valueAxisRanges[o]=i||{min:m,max:b}).min=Math.min(i.min,r),i.max=Math.max(i.max,r))},e.prototype.seriesValueAxis=function(t){var e=this.plotArea,o=t.axis,r=o?e.namedValueAxes[o]:e.valueAxis;if(!r)throw new Error("Unable to locate value axis with name "+o);return r},e.prototype.reflow=function(t){var e=this,o=this.categorySlots=[],r=this.points,i=this.categoryAxis,n=0;this.traverseDataPoints((function(t,a){var s=a.categoryIx,l=a.series,p=e.seriesValueAxis(l),c=r[n++],h=o[s];if(h||(o[s]=h=e.categorySlot(i,s,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(o),!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(kt(t)),o=0;o<e.length;o++)e[o]&&this.limitPoint(e[o])},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 o=this.categoryAxisCrossingValue(e),r=t.value;return e.options.reverse?r<o:r>=o},e.prototype.categoryAxisCrossingValue=function(t){var e=this.categoryAxis,o=t.options;return[].concat(o.axisCrossingValues||o.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 o=this.options.invertAxes,r=o?e:t,i=o?t:e;return new ie(r.x1,i.y1,r.x2,i.y2)},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.traverseDataPoints=function(t){for(var e=this,o=this.options.series,r=rn(o),i=o.length,n=0;n<i;n++)e._outOfRangeCallback(o[n],"_outOfRangeMinPoint",n,t);for(var a=0;a<r;a++)for(var s=0;s<i;s++){var l=o[s],p=e.categoryAxis.categoryAt(a);t(e._bindPoint(l,s,a),{category:p,categoryIx:a,categoriesCount:r,series:l,seriesIx:s})}for(var c=0;c<i;c++)e._outOfRangeCallback(o[c],"_outOfRangeMaxPoint",c,t)},e.prototype._outOfRangeCallback=function(t,e,o,r){var i=t[e];if(i){var n=i.categoryIx;r(this._bindPoint(t,o,n,i.item),{category:i.category,categoryIx:n,series:t,seriesIx:o,dataItem:i.item})}},e.prototype._bindPoint=function(t,e,o,r){this._bindCache||(this._bindCache=[]);var i=this._bindCache[e];i||(i=this._bindCache[e]=[]);var n=i[o];return n||(n=i[o]=Ir.current.bindPoint(t,o,r)),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}(fe);Bt(nn,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0});const an=nn;var sn={click:function(t,e){return t.trigger(ki,this.eventArgs(e))},hover:function(t,e){return t.trigger(Ti,this.eventArgs(e))},over:function(t,e){return t.trigger(ji,this.eventArgs(e))},out:function(t,e){return t.trigger(Ei,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:Pt(t),originalEvent:t,point:this}}};const ln=sn,pn={createNote:function(){var t=this.options.notes,e=this.noteText||t.label.text;!1!==t.visible&&xt(e)&&null!==e&&(this.note=new Ne({value:this.value,text:e,dataItem:this.dataItem,category:this.category,series:this.series},this.options.notes,this.owner.chartService),this.append(this.note))}};var cn=function(t){function e(e,o){t.call(this),this.value=e,this.options=o,this.aboveAxis=Lt(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,o=t.labels;if(!this._rendered){if(this._rendered=!0,e.visible&&e.size&&(this.marker=this.createMarker(),this.append(this.marker)),o.visible){var r=ot(o),i=this.pointData(),n=this.value;r?n=r(i):o.format&&(n=this.formatValue(o.format)),this.label=new Ee(n,X({align:s,vAlign:s,margin:{left:5,right:5},zIndex:Lt(o.zIndex,this.series.zIndex)},o),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,o=X({color:this.color},t.border);return xt(o.color)||(o.color=new D.Color(e).brightness(Vr).toHex()),o},e.prototype.createVisual=function(){},e.prototype.createMarker=function(){var t=this.options.markers;return new ge({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:Lt(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,o=this.aboveAxis,r=e.vertical;this.render(),this.box=t;var i=t.clone();if(r?o?i.y1-=i.height():i.y2+=i.height():o?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 a=this.markerBox();if(!e.markers.visible||!e.markers.size){var s=a.center();a=new ie(s.x,s.y,s.x,s.y)}this.note.reflow(a)}},e.prototype.reflowLabel=function(t){var e=this.options,o=this.label,r=e.labels.position;o&&(r=(r=r===Xr?P:r)===Kr?a:r,o.reflow(t),o.box.alignTo(this.markerBox(),r),o.reflow(o.box))},e.prototype.createHighlight=function(){var t=this.options.highlight.markers,e=this.markerBorder().color,o=this.options.markers,r=o.size+(o.border.width||0)+(t.border.width||0),i=new ge({type:o.type,width:r,height:r,rotation:o.rotation,background:t.color||e,border:{color:t.border.color,width:t.border.width,opacity:Lt(t.border.opacity,1)},opacity:Lt(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,o=this.marker;if(o)e=o.paddingBox.toRect(),t=o.visual;else{var r=this.options.markers.size,i=r/2,n=this.box.center();e=new D.geometry.Rect([n.x-i,n.y-i],[r,r])}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 o,r,i=t.x2+5,n=g;return this.aboveAxis?(o=t.y1,r=a):(o=t.y2,r=P),{point:new ee(i,o),align:{horizontal:n,vertical:r}}}},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}(fe);cn.prototype.defaults={vertical:!0,markers:{visible:!0,background:k,size:8,type:l,border:{width:2},opacity:1},labels:{visible:!1,position:Xr,margin:$(3),padding:$(4),animation:{type:zr,delay:Nr}},notes:{label:{}},highlight:{markers:{border:{color:"#fff",width:2}},zIndex:100},errorBars:{line:{width:1}}},X(cn.prototype,ln),X(cn.prototype,pn);const hn=cn;var un=function(t){function e(e,o,r){t.call(this),this.linePoints=e,this.series=o,this.seriesIx=r}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=[],o=0,r=t.length;o<r;o++)t[o]&&!1!==t[o].visible&&e.push(t[o]._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&&!xt(this.visual.options.zIndex)&&(this.visual.options.zIndex=this.series.zIndex)):this.segmentVisual()},e.prototype.segmentVisual=function(){var t=this.options,e=this.series,o=e.color,r=e._defaults;U(o)&&r&&(o=r.color);var i=D.drawing.Path.fromPoints(this.points(),{stroke:{color:o,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}(fe);Bt(un,{closed:!1});const fn=un;var dn={calculateStepPoints:function(t){for(var e=this.parent.plotArea.seriesCategoryAxis(this.series).options,o=e.justified,r=e.vertical,i=e.reverse,n=r?j:E,a=r?E:j,s=i?2:1,l=s,p=vn(t[0],n,s,a,l),c=[p],h=1;h<t.length;h++){var u=vn(t[h],n,s,a,l);if(p[n]!==u[n]){var f=new D.geometry.Point;f[n]=p[n],f[a]=u[a],c.push(f,u)}p=u}return o?p!==kt(c)&&c.push(p):c.push(vn(kt(t),n,s,a,i?1:2)),c}};function vn(t,e,o,r,i){var n=t.box,a=new D.geometry.Point;return a[e]=n[e+o],a[r]=n[r+i],a}const yn=dn;var 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.points=function(){return this.calculateStepPoints(this.linePoints)},e}(fn);X(gn.prototype,yn);const mn=gn;var 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.segmentVisual=function(){var t=this.series,e=t._defaults,o=t.color;U(o)&&e&&(o=e.color);var r=new xr(this.options.closed).process(this.points()),i=new D.drawing.Path({stroke:{color:o,width:t.width,opacity:t.opacity,dashType:t.dashType},zIndex:t.zIndex});i.segments.push.apply(i.segments,r),this.visual=i},e}(fn);const _n=bn;var xn={renderSegments:function(){var t,e=this,o=this.options,r=this.seriesPoints,i=o.series,n=r.length;this._segments=[];for(var a=0;a<n;a++){for(var s=i[a],l=e.sortPoints(r[a]),p=l.length,c=[],h=0;h<p;h++){var u=l[h];u?c.push(u):e.seriesMissingValues(s)!==Wr&&(c.length>1&&(t=e.createSegment(c,s,a,t),e._addSegment(t)),c=[])}c.length>1&&(t=e.createSegment(c,s,a,t),e._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?Gr:e||Wr},getNearestPoint:function(t,e,o){for(var r,i=new ee(t,e),n=this.seriesPoints[o],a=m,s=0;s<n.length;s++){var l=n[s];if(l&&xt(l.value)&&null!==l.value&&!1!==l.visible){var p=l.box.center().distanceTo(i);p<a&&(r=l,a=p)}}return r}};const wn=xn;var 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.setup=function(){this._setEnd(this.options.box.x1)},e.prototype.step=function(t){var e=this.options.box;this._setEnd(ht(e.x1,e.x2,t))},e.prototype._setEnd=function(t){var e=this.element,o=e.segments,r=o[1].anchor(),i=o[2].anchor();e.suspend(),r.setX(t),e.resume(),i.setX(t)},e}(D.drawing.Animation);Bt(Cn,{duration:Nr}),D.drawing.AnimationFactory.current.register("clip",Cn);const On=Cn;function Sn(t){for(var e=0;e<t.length;e++)if(xt(t[e].zIndex))return!0}const Pn={createAnimation:function(){var t=this.getRoot();if(t&&!1!==(t.options||{}).transitions){var e=t.size(),o=D.drawing.Path.fromRect(e.toRect());this.visual.clip(o),this.animation=new On(o,{box:e}),Sn(this.options.series)&&this._setChildrenAnimation(o)}},_setChildrenAnimation:function(t){for(var e=this.animationPoints(),o=0;o<e.length;o++){var r=e[o];r&&r.visual&&xt(r.visual.options.zIndex)&&r.visual.clip(t)}}};var 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.render=function(){t.prototype.render.call(this),this.updateStackRange(),this.renderSegments()},e.prototype.pointType=function(){return hn},e.prototype.createPoint=function(t,e){var o=e.series,r=e.seriesIx,i=this.seriesMissingValues(o),n=t.valueFields.value;if(!xt(n)||null===n){if(i!==Gr)return null;n=0}var a=this.pointOptions(o,r);a=this.evalPointOptions(a,n,e);var s=t.fields.color||o.color;U(o.color)&&(s=a.color);var l=new hn(n,a);return l.color=s,this.append(l),l},e.prototype.plotRange=function(t){var e=this.plotValue(t);if(this.options.isStacked)for(var o=t.categoryIx,r=this.categoryPoints[o],i=0;i<r.length;i++){var n=r[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,o){var r=e.style;return new(r===qr?mn:r===Yr?_n:fn)(t,e,o)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],o=0;o<t.length;o++)e.push((t[o]||{}).marker);return e.concat(this._segments)},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(an);X(An.prototype,wn,Pn);const kn=An;var Tn=function(t){function e(e,o,r,i,n){t.call(this,e,o,r),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,o=t.line||{},r=t.color;U(r)&&e&&(r=e.color),this.visual=new D.drawing.Group({zIndex:t.zIndex}),this.createFill({fill:{color:r,opacity:t.opacity},stroke:null}),o.width>0&&!1!==o.visible&&this.createStroke({stroke:X({color:r,opacity:t.opacity,lineCap:"butt"},o)})},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 D.geometry.Segment(t)}))},e.prototype.createStroke=function(t){var e=new D.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(),o=e.slice(0),r=this.hasStackSegment();if(r){var i=this.stackSegments();bt(o,i)}var n=new D.drawing.Path(t);n.segments.push.apply(n.segments,o),!r&&e.length>1&&this.fillToAxes(n),this.visual.append(n)},e.prototype.fillToAxes=function(t){var e=this.parent,o=e.options.invertAxes,r=e.seriesValueAxis(this.series),i=e.categoryAxisCrossingValue(r),n=r.getSlot(i,i,!0),a=this.strokeSegments(),s=a[0].anchor(),l=kt(a).anchor(),p=o?n.x1:n.y1;o?t.lineTo(p,l.y).lineTo(p,s.y):t.lineTo(l.x,p).lineTo(s.x,p)},e}(fn);const jn=Tn;var En=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}(jn);X(En.prototype,yn);const Mn=En;var In=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 xr(this.options.closed),e=this.points();return t.process(e)},e.prototype.createStackSegments=function(){for(var t=this.strokeSegments(),e=[],o=t.length-1;o>=0;o--){var r=t[o];e.push(new D.geometry.Segment(r.anchor(),r.controlOut(),r.controlIn()))}return e},e}(jn);const Ln=In;var 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.createSegment=function(t,e,o,r){var i,n,a=this.options.isStacked,s=(e.line||{}).style;return a&&o>0&&r&&("gap"!==this.seriesMissingValues(e)?(n=r.linePoints,i=r):n=this._gapStackPoints(t,o,s)),new(s===qr?Mn:s===Yr?Ln:jn)(t,e,o,i,n)},e.prototype.reflow=function(e){t.prototype.reflow.call(this,e);var o=this._stackPoints;if(o)for(var r=0;r<o.length;r++){var i=o[r],n=this.categoryAxis.getSlot(i.categoryIx);i.reflow(n)}},e.prototype._gapStackPoints=function(t,e,o){var r=this,i=this.seriesPoints,n=t[0].categoryIx,a=t.length;n<0&&(n=0,a--);var s=n+a,l=this.seriesOptions[0]._outOfRangeMinPoint?1:0,p=[];this._stackPoints=this._stackPoints||[];for(var c=n;c<s;c++){var h=c+l,u=e,f=void 0;do{f=i[--u][h]}while(u>0&&!f);if(f)o!==qr&&c>n&&!i[u][h-1]&&p.push(r._previousSegmentPoint(c,h,h-1,u)),p.push(f),o!==qr&&c+1<s&&!i[u][h+1]&&p.push(r._previousSegmentPoint(c,h,h+1,u));else{var d=r._createGapStackPoint(c);r._stackPoints.push(d),p.push(d)}}return p},e.prototype._previousSegmentPoint=function(t,e,o,r){for(var i,n=this.seriesPoints,a=r;a>0&&!i;)i=n[--a][o];return i?i=n[a][e]:(i=this._createGapStackPoint(t),this._stackPoints.push(i)),i},e.prototype._createGapStackPoint=function(t){var e=this.pointOptions({},0),o=new hn(0,e);return o.categoryIx=t,o.series={},o},e.prototype.seriesMissingValues=function(t){return t.missingValues||Gr},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(kn);const Dn=Rn;var Bn=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 o in t){var r=t[o],i=e[o];e[o]=i=i||{min:m,max:b},i.min=Math.min(i.min,r.min),i.max=Math.max(i.max,r.max)}},e.prototype.reset=function(t){this.axisRanges[t]=void 0},e.prototype.query=function(t){return this.axisRanges[t]},e}(D.Class);const Nn=Bn;var zn=function(t){function e(e,o,r){t.call(this,o),this.textBox=new Ee(e,this.options,r),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,o=e.vertical,r=e.aboveAxis,i=this.children[0],n=i.options,l=i.box,p=i.options.padding,c=t;n.align=o?s:g,n.vAlign=o?P:s,e.position===Ki?o?(n.vAlign=P,!r&&l.height()<t.height()&&(n.vAlign=a)):n.align=r?C:g:e.position===s?(n.vAlign=s,n.align=s):"insideBase"===e.position?o?n.vAlign=r?a:P:n.align=r?g:C:e.position===Yi&&(o?c=r?new ie(t.x1,t.y1-l.height(),t.x2,t.y1):new ie(t.x1,t.y2,t.x2,t.y2+l.height()):(n.align=s,c=r?new ie(t.x2,t.y1,t.x2+l.width(),t.y2):new ie(t.x1-l.width(),t.y1,t.x1,t.y2))),e.rotation||(o?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?E:j,o=e+"1",r=e+"2",i=this.children[0],n=this.parent.box;if(n[o]<t[o]||t[r]<n[r]){var a=i.paddingBox.clone();a[o]=Math.max(n[o],t[o]),a[r]=Math.min(n[r],t[r]),this.reflow(a)}},e}(fe);Bt(zn,{position:Yi,margin:$(3),padding:$(4),color:n,background:"",border:{width:1,color:""},aboveAxis:!0,vertical:!1,animation:{type:zr,delay:Nr},zIndex:2});const Vn=zn;function Hn(t){var e=t.overlay;return e&&e.gradient&&"none"!==e.gradient}var Un=function(t){function e(e,o){t.call(this),this.options=o,this.color=o.color||k,this.aboveAxis=Lt(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 o,r=this.pointData(),i=ot(e);o=i?i(r):this.formatValue(e.format),this.label=new Vn(o,X({vertical:t.vertical},e),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;if(this.box=t,e&&(e.options.aboveAxis=this.aboveAxis,e.reflow(t)),this.note&&this.note.reflow(t),this.errorBars)for(var o=0;o<this.errorBars.length;o++)this.errorBars[o].reflow(t)},e.prototype.createVisual=function(){var e=this,o=this.box,r=this.options,i=r.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:o.toRect(),createVisual:function(){var t=new D.drawing.Group;return e.createRect(t),t},options:r});n&&this.visual.append(n)}else o.width()>0&&o.height()>0&&this.createRect(this.visual)},e.prototype.createRect=function(t){var e=this.options,o=e.border,r=xt(o.opacity)?o.opacity:e.opacity,i=this.box.toRect();i.size.width=Math.round(i.size.width);var n=this.rectVisual=D.drawing.Path.fromRect(i,{fill:{color:this.color,opacity:e.opacity},stroke:{color:this.getBorderColor(),width:o.width,opacity:r,dashType:o.dashType}}),a=this.box.width(),s=this.box.height();if((e.vertical?a:s)>6&&(B(n),(a<1||s<1)&&(n.options.stroke.lineJoin="round")),t.append(n),Hn(e)){var l=this.createGradientOverlay(n,{baseColor:this.color},X({end:e.vertical?void 0:[0,1]},e.overlay));t.append(l)}},e.prototype.createHighlight=function(t){return B(D.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,o=e._brightness||Vr,r=e.color;return xt(r)||(r=new D.Color(t).brightness(o).toHex()),r},e.prototype.tooltipAnchor=function(){var t,e,o=this,r=o.options,i=o.box,n=o.aboveAxis,s=this.owner.pane.clipBox()||i,l=g,p=P;if(r.vertical)t=Math.min(i.x2,s.x2)+5,n?e=Math.max(i.y1,s.y1):(e=Math.min(i.y2,s.y2),p=a);else{var c=Math.max(i.x1,s.x1),h=Math.min(i.x2,s.x2);r.isStacked?(p=a,n?(l=C,t=h):t=c,e=Math.max(i.y1,s.y1)-5):(n?t=h+5:(t=c-5,l=C),e=Math.max(i.y1,s.y1))}return{point:new ee(t,e),align:{horizontal:l,vertical:p}}},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}(fe);X(Un.prototype,ln),X(Un.prototype,pn),Un.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};const Fn=Un;function Gn(t,e){t.forEach(e)}function Wn(t,e){for(var o=t.length,r=o-1;r>=0;r--)e(t[r],r-o-1)}var Xn=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Wn:Gn}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,o=e.vertical,r=e.gap,i=e.spacing,n=this.children,a=n.length,s=o?E:j,l=a+r+i*(a-1),p=(o?t.height():t.width())/l,c=t[s+1]+p*(r/2);this.forEach(n,(function(e,o){var r=(e.box||t).clone();r[s+1]=c,r[s+2]=c+p,e.reflow(r),o<a-1&&(c+=p*i),c+=p}))},e}(fe);Bt(Xn,{vertical:!1,gap:0,spacing:0});const Kn=Xn;var 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){for(var e=this.options.vertical?j:E,o=this.children,r=o.length,i=this.box=new ie,n=0;n<r;n++){var a=o[n];if(!1!==a.visible){var s=a.box.clone();s.snapTo(t,e),0===n&&(i=this.box=s.clone()),a.reflow(s),i.wrap(s)}}},e}(fe);Bt(Yn,{vertical:!0});const qn=Yn;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.render=function(){t.prototype.render.call(this),this.updateStackRange()},e.prototype.pointType=function(){return Fn},e.prototype.clusterType=function(){return Kn},e.prototype.stackType=function(){return qn},e.prototype.stackLimits=function(e,o){return t.prototype.stackLimits.call(this,e,o)},e.prototype.createPoint=function(t,e){var o=e.categoryIx,r=e.series,i=e.seriesIx,n=this.options,a=this.children,s=n.isStacked,l=this.pointValue(t),p=this.pointOptions(r,i),c=p.labels;s&&c.position===Yi&&(c.position=Ki),p.isStacked=s;var h=t.fields.color||r.color;l<0&&p.negativeColor&&(h=p.negativeColor),p=this.evalPointOptions(p,l,e),U(r.color)&&(h=p.color);var u=new(this.pointType())(l,p);u.color=h;var f=a[o];return f||(f=new(this.clusterType())({vertical:n.invertAxes,gap:n.gap,spacing:n.spacing,rtl:!n.invertAxes&&(this.chartService||{}).rtl}),this.append(f)),s?this.getStackWrap(r,f).append(u):f.append(u),u},e.prototype.getStackWrap=function(t,e){var o,r=t.stack,i=r&&r.group||r,n=e.children;if(typeof i===S){for(var a=0;a<n.length;a++)if(n[a]._stackGroup===i){o=n[a];break}}else o=n[0];return o||((o=new(this.stackType())({vertical:!this.options.invertAxes}))._stackGroup=i,e.append(o)),o},e.prototype.categorySlot=function(t,e,o){var r=this.options,i=t.getSlot(e),n=o.startValue();if(r.isStacked){var a=o.getSlot(n,n,!0),s=r.invertAxes?j:E;i[s+1]=i[s+2]=a[s+1]}return i},e.prototype.reflowCategories=function(t){for(var e=this.children,o=e.length,r=0;r<o;r++)e[r].reflow(t[r])},e.prototype.createAnimation=function(){this._setAnimationOptions(),t.prototype.createAnimation.call(this),Sn(this.options.series)&&this._setChildrenAnimation()},e.prototype._setChildrenAnimation=function(){for(var t=this.points,e=0;e<t.length;e++){var o=t[e],r=o.visual;r&&xt(r.options.zIndex)&&(o.options.animation=this.options.animation,o.createAnimation())}},e.prototype._setAnimationOptions=function(){var t,e=this.options,o=e.animation||{};if(e.isStacked){var r=this.seriesValueAxis(e.series[0]);t=r.getSlot(r.startValue())}else t=this.categoryAxis.getSlot(0);o.origin=new D.geometry.Point(t.x1,t.y1),o.vertical=!e.invertAxes},e}(an);Bt(Zn,{animation:{type:Qr}});const Qn=Zn;var $n=function(t){function e(e,o){t.call(this,o),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,o=e.options,r=e.value,i=e.owner.seriesValueAxis(o),n=i.getSlot(r.open,r.close),a=i.getSlot(r.low,r.high);n.x1=a.x1=t.x1,n.x2=a.x2=t.x2,this.realBody=n;var s=a.center().x,l=[];l.push([[s,a.y1],[s,n.y1]]),l.push([[s,n.y2],[s,a.y2]]),this.lines=l,this.box=a.clone().wrap(n),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 D.drawing.Group;return this.createBody(e,t),this.createLines(e,t),e},e.prototype.createBody=function(t,e){var o=D.drawing.Path.fromRect(this.realBody.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null});e.border.width>0&&o.options.set("stroke",{color:this.getBorderColor(),width:e.border.width,dashType:e.border.dashType,opacity:Lt(e.border.opacity,e.opacity)}),B(o),t.append(o),Hn(e)&&t.append(this.createGradientOverlay(o,{baseColor:this.color},X({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,o,r){if(o)for(var i={stroke:{color:r.color||this.color,opacity:Lt(r.opacity,e.opacity),width:r.width,dashType:r.dashType,lineCap:"butt"}},n=0;n<o.length;n++){var a=D.drawing.Path.fromPoints(o[n],i);B(a),t.append(a)}},e.prototype.getBorderColor=function(){var t=this.options.border,e=t.color;return xt(e)||(e=new D.Color(this.color).brightness(t._brightness).toHex()),e},e.prototype.createOverlay=function(){var t=D.drawing.Path.fromRect(this.box.toRect(),{fill:{color:k,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 o=this.mainVisual(X({},this.options,{line:{color:this.getBorderColor()}},t));return this.color=e,o},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 ee(t.x2+5,Math.max(t.y1,e.y1)+5),align:{horizontal:g,vertical:P}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e}(fe);Bt($n,{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:{}}}),X($n.prototype,ln),X($n.prototype,pn);const Jn=$n;function ta(t){return kr(t)===t.length}var 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.reflowCategories=function(t){for(var e=this.children,o=e.length,r=0;r<o;r++)e[r].reflow(t[r])},e.prototype.addValue=function(t,e){var o,r=e.categoryIx,i=e.category,n=e.series,a=e.seriesIx,s=this.children,l=this.options,p=t.valueFields,c=ta(this.splitValue(p)),h=n.data[r],u=this.categoryPoints[r];u||(this.categoryPoints[r]=u=[]),c&&(o=this.createPoint(t,e));var f=s[r];f||(f=new Kn({vertical:l.invertAxes,gap:l.gap,spacing:l.spacing,rtl:!l.invertAxes&&(this.chartService||{}).rtl}),this.append(f)),o&&(this.updateRange(p,e),f.append(o),o.categoryIx=r,o.category=i,o.series=n,o.seriesIx=a,o.owner=this,o.dataItem=h,o.noteText=t.fields.noteText),this.points.push(o),u.push(o)},e.prototype.pointType=function(){return Jn},e.prototype.createPoint=function(t,e){var o=e.series,r=this.pointType(),i=t.valueFields,n=X({},o),a=t.fields.color||o.color;n=this.evalPointOptions(n,i,e),o.type===ei&&i.open>i.close&&(a=t.fields.downColor||o.downColor||o.color),U(o.color)&&(a=n.color),n.vertical=!this.options.invertAxes;var s=new r(i,n);return s.color=a,s},e.prototype.splitValue=function(t){return[t.low,t.open,t.close,t.high]},e.prototype.updateRange=function(t,e){var o=e.series.axis,r=this.splitValue(t),i=this.valueAxisRanges[o];i=this.valueAxisRanges[o]=i||{min:m,max:b},i=this.valueAxisRanges[o]={min:Math.min.apply(Math,r.concat([i.min])),max:Math.max.apply(Math,r.concat([i.max]))}},e.prototype.formatPointValue=function(t,e){var o=t.value;return this.chartService.format.auto(e,o.open,o.high,o.low,o.close,t.category)},e.prototype.animationPoints=function(){return this.points},e}(an);X(ea.prototype,Pn);const oa=ea;var ra=function(t){function e(e,o){t.call(this,e,o),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,o,r=this,i=r.options,n=r.value,a=r.owner.seriesValueAxis(i);this.boxSlot=o=a.getSlot(n.q1,n.q3),this.realBody=o,this.reflowBoxSlot(t),this.whiskerSlot=e=a.getSlot(n.lower,n.upper),this.reflowWhiskerSlot(t);var s=a.getSlot(n.median);if(n.mean){var l=a.getSlot(n.mean);this.meanPoints=this.calcMeanPoints(t,l)}this.whiskerPoints=this.calcWhiskerPoints(o,e),this.medianPoints=this.calcMedianPoints(t,s),this.box=e.clone().wrap(o),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 o=e.center().x;return[[[o-5,e.y1],[o+5,e.y1],[o,e.y1],[o,t.y1]],[[o-5,e.y2],[o+5,e.y2],[o,e.y2],[o,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,o=e.outliers||[],r=3*Math.abs(e.q3-e.q1),i=[],n=t.markers||{},a=0;a<o.length;a++){var s=o[a],l=X({},(n=s<e.q3+r&&s>e.q1-r?t.outliers:t.extremes).border);xt(l.color)||(xt(this.color)?l.color=this.color:l.color=new D.Color(n.background).brightness(Vr).toHex());var p=new ge({type:n.type,width:n.size,height:n.size,rotation:n.rotation,background:n.background,border:l,opacity:n.opacity});p.value=s,i.push(p)}return this.reflowOutliers(i),i},e.prototype.reflowOutliers=function(t){for(var e=this,o=this.owner.seriesValueAxis(this.options),r=this.box.center(),i=0;i<t.length;i++){var n=t[i].value,a=o.getSlot(n);e.options.vertical?a.move(r.x):a.move(void 0,r.y),e.box=e.box.wrap(a),t[i].reflow(a)}},e.prototype.mainVisual=function(e){for(var o=t.prototype.mainVisual.call(this,e),r=this.renderOutliers(e),i=0;i<r.length;i++){var n=r[i].getElement();n&&o.append(n)}return o},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}(Jn);Bt(ra,{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:c,background:k,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:l,background:k,border:{width:2,opacity:1},opacity:0}}),X(ra.prototype,ln);const ia=ra;var na=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 o=e.center().y;return[[[e.x1,o-5],[e.x1,o+5],[e.x1,o],[t.x1,o]],[[e.x2,o-5],[e.x2,o+5],[e.x2,o],[t.x2,o]]]},e.prototype.calcMedianPoints=function(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]},e}(ia);const aa=na;var sa=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 o,r=e.categoryIx,i=e.category,n=e.series,a=e.seriesIx,s=this.children,l=this.options,p=t.valueFields,c=ta(this.splitValue(p)),h=n.data[r],u=this.categoryPoints[r];u||(this.categoryPoints[r]=u=[]),c&&(o=this.createPoint(t,e));var f=s[r];f||(f=new Kn({vertical:l.invertAxes,gap:l.gap,spacing:l.spacing,rtl:!l.invertAxes&&(this.chartService||{}).rtl}),this.append(f)),o&&(this.updateRange(p,e),f.append(o),o.categoryIx=r,o.category=i,o.series=n,o.seriesIx=a,o.owner=this,o.dataItem=h),this.points.push(o),u.push(o)},e.prototype.pointType=function(){return this.options.invertAxes?aa:ia},e.prototype.splitValue=function(t){return[t.lower,t.q1,t.median,t.q3,t.upper]},e.prototype.updateRange=function(t,e){var o=e.series.axis,r=this.valueAxisRanges[o],i=this.splitValue(t).concat(this.filterOutliers(t.outliers));xt(t.mean)&&(i=i.concat(t.mean)),r=this.valueAxisRanges[o]=r||{min:m,max:b},r=this.valueAxisRanges[o]={min:Math.min.apply(Math,i.concat([r.min])),max:Math.max.apply(Math,i.concat([r.max]))}},e.prototype.formatPointValue=function(t,e){var o=t.value;return this.chartService.format.auto(e,o.lower,o.q1,o.median,o.q3,o.upper,o.mean,t.category)},e.prototype.filterOutliers=function(t){for(var e=(t||[]).length,o=[],r=0;r<e;r++){var i=t[r];xt(i)&&null!==i&&o.push(i)}return o},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(oa);const la=sa;var pa=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}($i);const ca=pa;function ha(t){return xt(t)&&null!==t}var ua=function(t){function e(e,o){t.call(this,o),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,o){var r,i=t.value[e],n=e+"Value",a=e+"ErrorLow",s=e+"ErrorHigh",l=o.seriesIx,p=o.series,c=t.options.errorBars,h=o[a],u=o[s];z(i)&&(z(h)&&z(u)&&(r={low:h,high:u}),c&&xt(c[n])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[e][l]=this.seriesErrorRanges[e][l]||new Dr(c[n],p,e),r=this.seriesErrorRanges[e][l].getErrorRange(i,c[n])),r&&this.addPointErrorBar(r,t,e))},e.prototype.addPointErrorBar=function(t,e,o){var r=t.low,i=t.high,n=e.series,a=e.options.errorBars,s=o===E,l={};e[o+"Low"]=r,e[o+"High"]=i,e.errorBars=e.errorBars||[];var p=new ca(r,i,s,this,n,a);e.errorBars.push(p),e.append(p),l[o]=r,this.updateRange(l,n),l[o]=i,this.updateRange(l,n)},e.prototype.addValue=function(t,e){var o,r=t.x,i=t.y,n=e.seriesIx,a=this.options.series[n],s=this.seriesMissingValues(a),l=this.seriesPoints[n],p=t;ha(r)&&ha(i)||(p=this.createMissingValue(p,s)),p&&((o=this.createPoint(p,e))&&(Object.assign(o,e),this.addErrorBar(o,j,e),this.addErrorBar(o,E,e)),this.updateRange(p,e.series)),this.points.push(o),l.push(o)},e.prototype.seriesMissingValues=function(t){return t.missingValues},e.prototype.createMissingValue=function(){},e.prototype.updateRange=function(t,e){var o=this.chartService.intl,r=e.xAxis,i=e.yAxis,n=t.x,a=t.y,s=this.xAxisRanges[r],l=this.yAxisRanges[i];ha(n)&&(s=this.xAxisRanges[r]=s||{min:m,max:b},V(n)&&(n=Lo(o,n)),s.min=Math.min(s.min,n),s.max=Math.max(s.max,n)),ha(a)&&(l=this.yAxisRanges[i]=l||{min:m,max:b},V(a)&&(a=Lo(o,a)),l.min=Math.min(l.min,a),l.max=Math.max(l.max,a))},e.prototype.evalPointOptions=function(t,e,o){var r=o.series,i=o.seriesIx,n={defaults:r._defaults,excluded:["data","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint","drilldownSeriesFactory"]},a=this._evalSeries[i];xt(a)||(this._evalSeries[i]=a=on(t,{},n,!0));var s=t;return a&&on(s=X({},t),{value:e,series:r,dataItem:o.dataItem},n),s},e.prototype.pointType=function(){return hn},e.prototype.pointOptions=function(t,e){var o=this.seriesOptions[e];if(!o){var r=this.pointType().prototype.defaults;this.seriesOptions[e]=o=X({},r,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return o},e.prototype.createPoint=function(t,e){var o=e.series,r=this.pointOptions(o,e.seriesIx),i=e.color||o.color;r=this.evalPointOptions(r,t,e),U(o.color)&&(i=r.color);var n=new hn(t,r);return n.color=i,this.append(n),n},e.prototype.seriesAxes=function(t){var e=t.xAxis,o=t.yAxis,r=this.plotArea,i=e?r.namedXAxes[e]:r.axisX,n=o?r.namedYAxes[o]:r.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 "+o);return{x:i,y:n}},e.prototype.reflow=function(t){var e=this,o=this.points,r=!this.options.clip,i=0;this.traverseDataPoints((function(t,n){var a=o[i++],s=e.seriesAxes(n.series),l=s.x.getSlot(t.x,t.x,r),p=s.y.getSlot(t.y,t.y,r);if(a)if(l&&p){var c=e.pointSlot(l,p);a.reflow(c)}else a.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new ie(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,o=this.seriesPoints,r=0;r<e.length;r++){var i=e[r];o[r]||(o[r]=[]);for(var n=0;n<i.data.length;n++){var a=this._bindPoint(i,r,n),s=a.valueFields,l=a.fields;t(s,X({pointIx:n,series:i,seriesIx:r,dataItem:i.data[n],owner:this},l))}}},e.prototype.formatPointValue=function(t,e){var o=t.value;return this.chartService.format.auto(e,o.x,o.y)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],o=0;o<t.length;o++)e.push((t[o]||{}).marker);return e},e}(fe);Bt(ua,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),X(ua.prototype,Pn,{_bindPoint:an.prototype._bindPoint});const fa=ua;var da=function(t){function e(e,o){t.call(this,e,o),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,o=this.options.markers,r=this.box.center(),i=(o.size+o.border.width+e.width)/2,n=new D.drawing.Group,a=new D.drawing.Circle(new D.geometry.Circle([r.x,r.y+i/5+e.width/2],i+e.width/2),{stroke:{color:"none"},fill:this.createGradient({gradient:"bubbleShadow",color:o.background,stops:[{offset:0,color:o.background,opacity:.3},{offset:1,color:o.background,opacity:0}]})}),s=new D.drawing.Circle(new D.geometry.Circle([r.x,r.y],i),{stroke:{color:e.color||new D.Color(o.background).brightness(Vr).toHex(),width:e.width,opacity:e.opacity},fill:{color:o.background,opacity:t.opacity}});return n.append(a,s),n},e}(hn);da.prototype.defaults=X({},da.prototype.defaults,{labels:{position:s},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),da.prototype.defaults.highlight.zIndex=void 0;const va=da;var 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._initFields=function(){this._maxSize=b,t.prototype._initFields.call(this)},e.prototype.addValue=function(e,o){null!==e.size&&(e.size>0||e.size<0&&o.series.negativeValues.visible)?(this._maxSize=Math.max(this._maxSize,Math.abs(e.size)),t.prototype.addValue.call(this,e,o)):(this.points.push(null),this.seriesPoints[o.seriesIx].push(null))},e.prototype.reflow=function(e){this.updateBubblesSize(e),t.prototype.reflow.call(this,e)},e.prototype.pointType=function(){return va},e.prototype.createPoint=function(t,e){var o=e.series,r=o.data.length,i=e.pointIx*(Nr/r),n={delay:i,duration:Nr-i,type:Jr},a=e.color||o.color;t.size<0&&o.negativeValues.visible&&(a=Lt(o.negativeValues.color,a));var s=X({labels:{animation:{delay:i,duration:Nr-i}}},this.pointOptions(o,e.seriesIx),{markers:{type:l,border:o.border,opacity:o.opacity,animation:n}});s=this.evalPointOptions(s,t,e),U(o.color)&&(a=s.color),s.markers.background=a;var p=new va(t,s);return p.color=a,this.append(p),p},e.prototype.updateBubblesSize=function(t){for(var e=this.options.series,o=Math.min(t.width(),t.height()),r=0;r<e.length;r++)for(var i=e[r],n=this.seriesPoints[r],a=(i.minSize||Math.max(.02*o,10))/2,s=(i.maxSize||.2*o)/2,l=Math.PI*a*a,p=(Math.PI*s*s-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=Lt(h.options.zIndex,0)+(1-f/s);X(h.options,{zIndex:d,markers:{size:2*f,zIndex:d},labels:{zIndex:d+1}})}}},e.prototype.formatPointValue=function(t,e){var o=t.value;return this.chartService.format.auto(e,o.x,o.y,o.size,t.category)},e.prototype.createAnimation=function(){},e.prototype.createVisual=function(){},e}(fa);Bt(ya,{tooltip:{format:"{3}"},labels:{format:"{3}"}});const ga=ya;var ma=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}(ge);X(ma.prototype,ln);const ba=ma;var _a=function(t){function e(e,o){t.call(this,o),this.aboveAxis=this.options.aboveAxis,this.color=o.color||k,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,xt(this.value.target)&&(this.target=new ba({type:t.target.shape,background:t.target.color||this.color,opacity:t.opacity,zIndex:t.zIndex,border:t.target.border,vAlign:P,align:C}),this.target.value=this.value,this.target.dataItem=this.dataItem,this.target.series=this.series,this.append(this.target)),this.createLabel(),this.createNote())},e.prototype.createLabel=function(){var t=this.options.labels;if(t.visible){var e,o=this.pointData(),r=ot(t);e=r?r(o):this.formatValue(t.format),this.label=new Vn(e,t,o),this.append(this.label)}},e.prototype.reflow=function(t){this.render();var e=this,o=e.options,r=e.target,i=e.owner,n=o.invertAxes,a=i.seriesValueAxis(this.options),s=i.categorySlot(i.categoryAxis,o.categoryIx,a),l=a.getSlot(this.value.target),p=n?l:s,c=n?s:l;if(r){var h=new ie(p.x1,c.y1,p.x2,c.y2);r.options.height=n?h.height():o.target.line.width,r.options.width=n?o.target.line.width:h.width(),r.reflow(h)}var u=this.label;u&&(u.options.aboveAxis=this.aboveAxis,u.reflow(t)),this.note&&this.note.reflow(t),this.box=t},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options,o=D.drawing.Path.fromRect(this.box.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null});e.border.width>0&&o.options.set("stroke",{color:e.border.color||this.color,width:e.border.width,dashType:e.border.dashType,opacity:Lt(e.border.opacity,e.opacity)}),this.bodyVisual=o,B(o),this.visual.append(o)},e.prototype.createAnimation=function(){this.bodyVisual&&(this.animation=D.drawing.Animation.create(this.bodyVisual,this.options.animation))},e.prototype.createHighlight=function(t){return D.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.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e}(fe);_a.prototype.tooltipAnchor=Fn.prototype.tooltipAnchor,Bt(_a,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},labels:{visible:!1},tooltip:{format:"Current: {0}<br />Target: {1}"},notes:{label:{}}}),X(_a.prototype,ln),X(_a.prototype,pn);const xa=_a;var wa=function(t){function e(e,o){!function(t){for(var e=t.series,o=0;o<e.length;o++){var r=e[o],i=r.data;!i||M(i[0])||K(i[0])||(r.data=[i])}}(o),t.call(this,e,o)}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,o=e.length,r=0;r<o;r++)e[r].reflow(t[r])},e.prototype.plotRange=function(t){var e=t.series,o=this.seriesValueAxis(e),r=this.categoryAxisCrossingValue(o);return[r,t.value.current||r]},e.prototype.createPoint=function(t,e){var o=e.categoryIx,r=e.series,i=this.options,n=this.children,a=t.valueFields,s=X({vertical:!i.invertAxes,overlay:r.overlay,categoryIx:o,invertAxes:i.invertAxes},r),l=t.fields.color||r.color;s=this.evalPointOptions(s,a,e),U(r.color)&&(l=s.color);var p=new xa(a,s);p.color=l;var c=n[o];return c||(c=new Kn({vertical:i.invertAxes,gap:i.gap,spacing:i.spacing,rtl:!i.invertAxes&&(this.chartService||{}).rtl}),this.append(c)),c.append(p),p},e.prototype.updateRange=function(t,e){var o=t.current,r=t.target,i=e.series.axis,n=this.valueAxisRanges[i];xt(o)&&!isNaN(o)&&xt(r&&!isNaN(r))&&((n=this.valueAxisRanges[i]=n||{min:m,max:b}).min=Math.min(n.min,o,r),n.max=Math.max(n.max,o,r))},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 o=t[e];o.options.animation=this.options.animation,o.createAnimation()}},e}(an);wa.prototype._setAnimationOptions=Qn.prototype._setAnimationOptions,Bt(wa,{animation:{type:Qr}});const Ca=wa;var Oa=function(t){function e(e,o){t.call(this),this.chartService=e,this.options=X({},this.options,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getStyle=function(t,e){var o=t.background,r=t.border.color;if(e){var i=e.color||e.options.color;o=Lt(o,i),r=Lt(r,i)}var n=$(t.padding||{},"auto");return{backgroundColor:o,borderColor:r,font:t.font,color:t.color,opacity:t.opacity,borderWidth:Y(t.border.width),paddingTop:Y(n.top),paddingBottom:Y(n.bottom),paddingLeft:Y(n.left),paddingRight:Y(n.right)}},e.prototype.show=function(t,e,o){t.format=e.format;var r=this.getStyle(e,o);t.style=r;var i=new D.Color(r.backgroundColor);xt(e.color)||i.isDark()||(t.className="k-chart-tooltip-inverse"),this.chartService.notify(Fi,t),this.visible=!0},e.prototype.hide=function(){this.chartService&&this.chartService.notify(Gi),this.visible=!1},e.prototype.destroy=function(){delete this.chartService},e}(D.Class);Bt(Oa,{border:{width:1},opacity:1});const Sa=Oa;var Pa=function(t){function e(e,o,r){t.call(this,e,r),this.crosshair=o,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,o=this.options,r=e[o.stickyMode?"getCategory":"getValue"](t),i=r;o.format?i=this.formatService.auto(o.format,r):e.options.type===h&&(i=this.formatService.auto(e.options.labels.dateFormats[e.options.baseUnit],r)),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(Gi,{crosshair:this.crosshair,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex})},e.prototype.getAnchor=function(){var t,e,o,r=this.crosshair,i=this.options,n=i.position,l=i.padding,p=!r.axis.options.vertical,c=r.line.bbox();return p?(t=s,n===a?(e=P,o=c.bottomLeft().translate(0,l)):(e=a,o=c.topLeft().translate(0,-l))):(e=s,n===g?(t=C,o=c.topLeft().translate(-l,0)):(t=g,o=c.topRight().translate(l,0))),{point:o,align:{horizontal:t,vertical:e}}},e}(Sa);Bt(Pa,{padding:10});const Aa=Pa;var ka=function(t){function e(e,o,r){t.call(this,r),this.axis=o,this.stickyMode=o instanceof No;var i=this.options.tooltip;i.visible&&(this.tooltip=new Aa(e,this,X({},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,o=this.point,r=e.options.vertical,i=this.getBox(),n=r?E:j,a=new D.geometry.Point(i.x1,i.y1);if(t=r?new D.geometry.Point(i.x2,i.y1):new D.geometry.Point(i.x1,i.y2),o)if(this.stickyMode){var s=e.getSlot(e.pointCategoryIndex(o));a[n]=t[n]=s.center()[n]}else a[n]=t[n]=o[n];this.box=i,this.line.moveTo(a).lineTo(t)},e.prototype.getBox=function(){for(var t,e=this.axis,o=e.pane.axes,r=o.length,i=e.options.vertical,n=e.lineBox().clone(),a=i?j:E,s=0;s<r;s++){var l=o[s];l.options.vertical!==i&&(t?t.wrap(l.lineBox()):t=l.lineBox().clone())}return n[a+1]=t[a+1],n[a+2]=t[a+2],n},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options;this.line=new D.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}(fe);Bt(ka,{color:n,width:2,zIndex:-1,tooltip:{visible:!1}});const Ta=ka;var ja=function(t){function e(e,o){t.call(this,e),this.pane=o}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,o=0;o<e;o++)if(!0===t[o].options.clip)return!0;return!1},e.prototype._clipBox=function(){return this.pane.chartsBox()},e.prototype.createVisual=function(){if(this.visual=new D.drawing.Group({zIndex:0}),this.shouldClip()){var t=(this.clipBox=this._clipBox()).toRect(),e=D.drawing.Path.fromRect(t);B(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,o=0;o<t.length;o++)for(var r=t[o].points||{},i=r.length,n=0;n<i;n++){var a=r[n];if(a&&!1!==a.visible&&a.overlapsBox&&a.overlapsBox(e))if(a.unclipElements)a.unclipElements();else{var s=a.label,l=a.note;s&&s.options.visible&&(s.alignToClipBox&&s.alignToClipBox(e),s.options.noclip=!0),l&&l.options.visible&&(l.options.noclip=!0)}}},e.prototype.destroy=function(){t.prototype.destroy.call(this),delete this.parent},e}(fe);ja.prototype.isStackRoot=!0;const Ea=ja;var Ma=function(t){function e(e){t.call(this,e),this.id="pane"+Ia++,this.createTitle(),this.content=new fe,this.chartContainer=new Ea({},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;K(t)&&(t=X({},t,{align:t.position,position:P})),this.title=Le.buildTitle(t,e.prototype.options.title),this.title&&this.append(this.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 o=0;o<this.charts.length;o++)t.removeChart(this.charts[o])}this.axes=[],this.charts=[],this.content.destroy(),this.content.children=[],this.chartContainer.children=[]},e.prototype.reflow=function(e){var o;kt(this.children)===this.content&&(o=this.children.pop()),t.prototype.reflow.call(this,e),o&&this.children.push(o),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),o=[],r=[],i=0;i<t.length;i++)for(var n=t[i],a=n.options.vertical,s=a?o:r,l=0;l<e.length;l++)if(0===s.length){var p=e[l];a!==p.options.vertical&&bt(s,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,o=new ie,r=0;r<e;r++){var i=t[r],n=i.options.vertical?E:j,a=i.lineBox();o[n+1]=a[n+1],o[n+2]=a[n+2]}if(0===o.x2)for(var s=this.parent.axes,l=s.length,p=0;p<l;p++){var c=s[p];if(!c.options.vertical){var h=c.lineBox();o.x1=h.x1,o.x2=h.x2}}return o},e.prototype.clipBox=function(){return this.chartContainer.clipBox},e.prototype.notifyRender=function(){var t=this.getService();t&&t.notify("paneRender",{pane:new Pr(this),index:this.paneIndex,name:this.options.name})},e}(ve),Ia=1;Ma.prototype.isStackRoot=!0,Bt(Ma,{zIndex:-1,shrinkToFit:!0,title:{align:g},visible:!0});const La=Ma;function Ra(t,e){null!==e&&t.push(e)}function Da(t,e,o){var r=e.visible;if(xt(r))return r;var i=t.pointVisibility;return i?i[o]:void 0}function Ba(t){for(var e=t.data,o=[],r=0,i=0,n=0;n<e.length;n++){var a=Ir.current.bindPoint(t,n),s=a.valueFields.value;V(s)&&(s=parseFloat(s)),z(s)?(a.visible=!1!==Da(t,a.fields,n),a.value=Math.abs(s),o.push(a),a.visible&&(r+=a.value),0!==s&&i++):o.push(null)}return{total:r,points:o,count:i}}function Na(t,e){return t&&e?t.toLowerCase()===e.toLowerCase():t===e}function za(t,e){for(var o=[],r=[].concat(e),i=0;i<t.length;i++){var n=t[i];ct(n.type,r)&&o.push(n)}return o}function Va(t,e,o){if(null===e)return e;var r="_date_"+t,i=e[r];return i||(i=Lo(o,nt(t)(e)),e[r]=i),i}function Ha(t,e){var o=t.type,r=e instanceof Date;return!o&&r||Na(o,h)}function Ua(t){return 1===t.length?t[0]:t}var Fa=/area/i;function Ga(t,e){var o=Ir.current.bindPoint(t,null,e).valueFields;for(var r in o)if(H(o[r]))return!0}function Wa(t){var e,o,r=t.start,i=t.dir,n=t.min,a=t.max,s=t.getter,l=t.hasItem,p=t.series,c=r;do{l(c+=i)&&(e=Ga(p,(o=s(c)).item))}while(n<=c&&c<=a&&!e);if(e)return o}function Xa(t,e,o,r,i){var n=e.min,a=e.max,s=n>0&&n<o,l=a+1<o;if(s||l){var p,c,h,u=function(t){return t.missingValues?t.missingValues:Fa.test(t.type)||t.stack?Gr:Wr}(t);u!==Wr?(s&&(p=r(n-1)),l&&(c=r(a+1))):(s&&(p=Ga(t,(h=r(n-1)).item)?h:Wa({start:n,dir:-1,min:0,max:o-1,getter:r,hasItem:i,series:t})),l&&(c=Ga(t,(h=r(a+1)).item)?h:Wa({start:a,dir:1,min:0,max:o-1,getter:r,hasItem:i,series:t}))),p&&(t._outOfRangeMinPoint=p),c&&(t._outOfRangeMaxPoint=c)}}var Ka=function(t){function e(e,o,r){t.call(this,o),this.initFields(e,o),this.series=e,this.initSeries(),this.charts=[],this.options.legend=this.options.legend||{},this.options.legend.items=[],this.axes=[],this.crosshairs=[],this.chartService=r,this.originalOptions=o,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,o=this.options.panes||[],r=Math.max(o.length,1),i=[],n=X({title:{color:t.color}},e),a=0;a<r;a++){var s=X({},n,o[a]);V(s.title)&&(s.title=X({text:s.title},n.title));var l=new La(s);l.paneIndex=a,i.push(l),this.append(l)}this.panes=i},e.prototype.crosshairOptions=function(t){return t.options.crosshair},e.prototype.createCrosshairs=function(t){var e=this;void 0===t&&(t=this.panes);for(var o=0;o<t.length;o++)for(var r=t[o],i=0;i<r.axes.length;i++){var n=r.axes[i],a=e.crosshairOptions(n);if(a&&a.visible){var s=new Ta(e.chartService,n,a);e.crosshairs.push(s),r.content.append(s)}}},e.prototype.removeCrosshairs=function(t){for(var e=this.crosshairs,o=t.axes,r=e.length-1;r>=0;r--)for(var i=0;i<o.length;i++)if(e[r].axis===o[i]){e.splice(r,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,o=this.panes,r=0;r<o.length;r++)if(o[r].options.name===t){e=o[r];break}return e||o[0]},e.prototype.findPointPane=function(t){for(var e,o=this.panes,r=0;r<o.length;r++)if(o[r].box.containsPoint(t)){e=o[r];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=[],o=0;o<this.axes.length;o++){var r=this.axes[o];t!==r?e.push(r):r.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=[],o=0;o<this.charts.length;o++){var r=this.charts[o];r!==t?e.push(r):r.destroy()}this.charts=e},e.prototype.addToLegend=function(t){for(var e=t.length,o=this.options.legend,r=o.labels||{},i=o.inactiveItems||{},n=i.labels||{},a=[],s=0;s<e;s++){var l=t[s],p=!1!==l.visible;if(!1!==l.visibleInLegend){var c=l.name,h=p?ot(r):ot(n)||ot(r);h&&(c=h({text:ha(c)?c:"",series:l}));var u=l._defaults,f=l.color;U(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),ha(c)&&""!==c&&a.push({text:c,labels:d,markerColor:v,series:l,active:p})}}bt(o.items,a)},e.prototype.groupAxes=function(t){for(var e=[],o=[],r=0;r<t.length;r++)for(var i=t[r].axes,n=0;n<i.length;n++){var a=i[n];a.options.vertical?o.push(a):e.push(a)}return{x:e,y:o,any:e.concat(o)}},e.prototype.groupSeriesByPane=function(){for(var t=this.series,e={},o=0;o<t.length;o++){var r=t[o],i=this.seriesPaneName(r);e[i]?e[i].push(r):e[i]=[r]}return e},e.prototype.filterVisibleSeries=function(t){for(var e=[],o=0;o<t.length;o++){var r=t[o];!1!==r.visible&&e.push(r)}return e},e.prototype.reflow=function(t){var e=this.options.plotArea,o=this.panes,r=$(e.margin);this.box=t.clone().unpad(r),this.reflowPanes(),this.detachLabels(),this.reflowAxes(o),this.reflowCharts(o)},e.prototype.redraw=function(t){var e=[].concat(t);this.initSeries();var o=this.getRoot();o&&o.cleanGradients();for(var r=0;r<e.length;r++)this.removeCrosshairs(e[r]),e[r].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 o=t.options,r=[].concat(o.axisCrossingValues||o.axisCrossingValue),i=e.length-r.length,n=r[0]||0,a=0;a<i;a++)r.push(n);return r},e.prototype.alignAxisTo=function(t,e,o,r){var i=t.getSlot(o,o,!0),n=t.options.reverse?2:1,a=e.getSlot(r,r,!0),s=e.options.reverse?2:1,l=t.box.translate(a[j+s]-i[j+n],a[E+s]-i[E+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 o=this,r=t[0],i=e[0],n=this.axisCrossingValues(r,e),s=this.axisCrossingValues(i,t),l={},c={},h={},u={},f=0;f<e.length;f++){var d=e[f],v=d.pane,y=v.id,m=!1!==d.options.visible,b=Za(t,v)||r,_=n;b!==r&&(_=o.axisCrossingValues(b,e)),o.alignAxisTo(d,b,s[f],_[f]),d.options._overlap||(Mt(d.lineBox().x1)===Mt(b.lineBox().x1)&&(l[y]&&d.reflow(d.box.alignTo(l[y].box,g).translate(-d.options.margin,0)),m&&(l[y]=d)),Mt(d.lineBox().x2)===Mt(b.lineBox().x2)&&(d._mirrored||(d.options.labels.mirror=!d.options.labels.mirror,d._mirrored=!0),o.alignAxisTo(d,b,s[f],_[f]),c[y]&&d.reflow(d.box.alignTo(c[y].box,C).translate(d.options.margin,0)),m&&(c[y]=d)),0!==f&&i.pane===d.pane&&(d.alignTo(i),d.reflow(d.box)))}for(var x=0;x<t.length;x++){var w=t[x],O=w.pane,S=O.id,A=!1!==w.options.visible,k=Za(e,O)||i,T=s;k!==i&&(T=o.axisCrossingValues(k,t)),o.alignAxisTo(w,k,n[x],T[x]),w.options._overlap||(Mt(w.lineBox().y1)===Mt(k.lineBox().y1)&&(w._mirrored||(w.options.labels.mirror=!w.options.labels.mirror,w._mirrored=!0),o.alignAxisTo(w,k,n[x],T[x]),h[S]&&w.reflow(w.box.alignTo(h[S].box,P).translate(0,-w.options.margin)),A&&(h[S]=w)),Mt(w.lineBox().y2,p)===Mt(k.lineBox().y2,p)&&(u[S]&&w.reflow(w.box.alignTo(u[S].box,a).translate(0,w.options.margin)),A&&(u[S]=w)),0!==x&&(w.alignTo(r),w.reflow(w.box)))}},e.prototype.shrinkAxisWidth=function(t){for(var e=this.groupAxes(t).any,o=qa(e),r=0,i=0;i<t.length;i++){var n=t[i];n.axes.length>0&&(r=Math.max(r,o.width()-n.contentBox.width()))}if(0!==r)for(var a=0;a<e.length;a++){var s=e[a];s.options.vertical||s.reflow(s.box.shrink(r,0))}},e.prototype.shrinkAxisHeight=function(t){for(var e,o=0;o<t.length;o++){var r=t[o],i=r.axes,n=Math.max(0,qa(i).height()-r.contentBox.height());if(0!==n){for(var a=0;a<i.length;a++){var s=i[a];s.options.vertical&&s.reflow(s.box.shrink(0,n))}e=!0}}return e},e.prototype.fitAxes=function(t){for(var e=this.groupAxes(t).any,o=0,r=0;r<t.length;r++){var i=t[r],n=i.axes,a=i.contentBox;if(n.length>0){var s=qa(n),l=Math.max(a.y1-s.y1,a.y2-s.y2);o=Math.max(o,a.x1-s.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(o,0))}},e.prototype.reflowAxes=function(t){for(var e=this.groupAxes(t),o=0;o<t.length;o++)this.reflowPaneAxes(t[o]);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,o=this.panes,r=Qa(o),i=0;i<r.length;i++)r[i].autoRotateLabels()&&(e=!0);if(e){for(var n=0;n<o.length;n++)this.reflowPaneAxes(o[n]);t.x.length>0&&t.y.length>0&&(this.alignAxes(t.x,t.y),this.shrinkAxisWidth(o))}},e.prototype.reflowPaneAxes=function(t){var e=t.axes,o=e.length;if(o>0)for(var r=0;r<o;r++)e[r].reflow(t.contentBox)},e.prototype.reflowCharts=function(t){for(var e=this.charts,o=e.length,r=this.box,i=0;i<o;i++){var n=e[i].pane;n&&!ct(n,t)||e[i].reflow(r)}},e.prototype.reflowPanes=function(){for(var t=this.box,e=this.panes,o=e.length,r=t.height(),i=0,n=t.y1,a=0;a<o;a++){var s=e[a],l=s.options.height;if(s.options.width=t.width(),s.options.height){if(l.indexOf&&l.indexOf("%")){var p=parseInt(l,10)/100;s.options.height=p*t.height()}s.reflow(t.clone()),r-=s.options.height}else i++}for(var c=0;c<o;c++){var h=e[c];h.options.height||(h.options.height=r/i)}for(var u=0;u<o;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,o=e.length,r=0;r<o;r++)for(var i=e[r],n=0;n<o;n++){var a=e[n];if(i.options.vertical!==a.options.vertical){var s=i.lineBox().clone().wrap(a.lineBox());t=t?t.wrap(s):s}}return t||this.box},e.prototype.chartsBoxes=function(){for(var t=this.panes,e=[],o=0;o<t.length;o++)e.push(t[o].chartsBox());return e},e.prototype.addBackgroundPaths=function(t){for(var e=this.chartsBoxes(),o=0;o<e.length;o++)t.paths.push(D.drawing.Path.fromRect(e[o].toRect()))},e.prototype.backgroundContainsPoint=function(t){for(var e=this.chartsBoxes(),o=0;o<e.length;o++)if(e[o].containsPoint(t))return!0},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e,o=this.options.plotArea,r=o.opacity,i=o.background,n=o.border;void 0===n&&(n={}),""!==(e=i)&&null!==e&&"none"!==e&&"transparent"!==e&&xt(e)||(i=k,r=0);var a=this._bgVisual=new D.drawing.MultiPath({fill:{color:i,opacity:r},stroke:{color:n.width?n.color:"",width:n.width,dashType:n.dashType},zIndex:-1});this.addBackgroundPaths(a),this.appendVisual(a)},e.prototype.pointsByCategoryIndex=function(t){var e=this.charts,o=[];if(null!==t)for(var r=0;r<e.length;r++)if("_navigator"!==e[r].pane.options.name){var i=e[r].categoryPoints[t];if(i&&i.length)for(var n=0;n<i.length;n++){var a=i[n];a&&xt(a.value)&&null!==a.value&&o.push(a)}}return o},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,o=[],r=0;r<e.length;r++)for(var i=e[r].points,n=0;n<i.length;n++){var a=i[n];a&&!1!==a.visible&&t(a)&&o.push(a)}return o},e.prototype.findPoint=function(t){for(var e=this.charts,o=0;o<e.length;o++)for(var r=e[o].points,i=0;i<r.length;i++){var n=r[i];if(n&&!1!==n.visible&&t(n))return n}},e.prototype.paneByPoint=function(t){for(var e=this.panes,o=0;o<e.length;o++){var r=e[o];if(r.box.containsPoint(t))return r}},e.prototype.detachLabels=function(){var t=this.groupAxes(this.panes),e=t.x,o=t.y;this.detachAxisGroupLabels(o,e),this.detachAxisGroupLabels(e,o)},e.prototype.detachAxisGroupLabels=function(t,e){for(var o=0,r=0;r<t.length;r++){var i=t[r],n=i.pane,a=Za(e,n)||e[0],s=r+o,l=this.createLabelAxis(i,s,a);if(l){o++;var p=n.axes.indexOf(i)+o;n.appendAxisAt(l,p)}}},e.prototype.createLabelAxis=function(t,e,o){var r=t.options.labels,i=r.position,n="end"!==i&&"start"!==i,a=r.visible;if(n||!1===a)return null;var s=this.groupAxes(this.panes),l=o.options.vertical?s.x:s.y,p=this.axisCrossingValues(o,l),c="end"===i,h=o.range(),u=c?h.max:h.min;if(Tt(p[e],h.min,h.max)-u==0)return null;p.splice(e+1,0,u),o.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}(fe);function Ya(t){return!t.pane.axes.some((function(e){return e.options.vertical===t.options.vertical&&e!==t&&!1!==e.options.visible}))}function qa(t){for(var e,o=t.length,r=0;r<o;r++){var i=t[r],n=!1!==i.options.visible;if(n||Ya(i)){var a=n?i.contentBox():i.lineBox();e?e.wrap(a):e=a.clone()}}return e||new ie}function Za(t,e){for(var o=0;o<t.length;o++){var r=t[o];if(r&&r.pane===e)return r}}var Qa=function(t){return t.reduce((function(t,e){return t.concat(e.axes)}),[])};Bt(Ka,{series:[],plotArea:{margin:{}},background:"",border:{color:n,width:0},paneDefaults:{title:{}},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});const $a=Ka;var Ja={hover:function(t,e){this._dispatchEvent(t,e,Mi)},click:function(t,e){this._dispatchEvent(t,e,"plotAreaClick")}};const ts=Ja;function es(t,e,o){var r=e,i=t;if(t.indexOf(".")>-1){for(var n=t.split(".");n.length>1;)i=n.shift(),xt(r[i])||(r[i]={}),r=r[i];i=n.shift()}r[i]=o}const os=function(t){function e(e,o,r){t.call(this);var i=o.canonicalFields(e),n=o.valueFields(e),a=o.sourceFields(e,i),s=this._seriesFields=[],l=r.query(e.type),p=e.aggregate||l;this._series=e,this._binder=o;for(var c=0;c<i.length;c++){var h=i[c],u=void 0;if(K(p))u=p[h];else{if(0!==c&&!ct(h,n))break;u=p}u&&s.push({canonicalName:h,name:a[c],transform:U(u)?u:jr[u]})}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.aggregatePoints=function(t,e){var o=this._series,r=this._seriesFields,i=this._bindPoints(t||[]),n=i.dataItems[0],a={};if(n&&!z(n)&&!M(n)){var s=function(){};s.prototype=n,a=new s}for(var l=0;l<r.length;l++){var p=r[l],c=this._bindField(i.values,p.canonicalName),h=p.transform(c,o,i.dataItems,e);if(!(null===h||!K(h)||xt(h.length)||h instanceof Date)){a=h;break}xt(h)&&es(p.name,a,h)}return a},e.prototype._bindPoints=function(t){for(var e=this._binder,o=this._series,r=[],i=[],n=0;n<t.length;n++){var a=t[n];r.push(e.bindPoint(o,a)),i.push(o.data[a])}return{values:r,dataItems:i}},e.prototype._bindField=function(t,e){for(var o=[],r=t.length,i=0;i<r;i++){var n,a=t[i],s=a.valueFields;n=xt(s[e])?s[e]:a.fields[e],o.push(n)}return o},e}(D.Class);var rs=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 o=0;o<t.length;o++)this._defaults[t[o]]=e},e.prototype.query=function(t){return this._defaults[t]},e}(D.Class);rs.current=new rs;const is=rs;var 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.createLabel=function(){var t=this.options.labels,e=X({},t,t.from),o=X({},t,t.to);e.visible&&(this.labelFrom=this._createLabel(e),this.append(this.labelFrom)),o.visible&&(this.labelTo=this._createLabel(o),this.append(this.labelTo))},e.prototype._createLabel=function(t){var e,o=ot(t),r=this.pointData();return e=o?o(r):this.formatValue(t.format),new Vn(e,X({vertical:this.options.vertical},t),r)},e.prototype.reflow=function(t){this.render();var e=this,o=e.labelFrom,r=e.labelTo,i=e.value;this.box=t,o&&(o.options.aboveAxis=i.from>i.to,o.reflow(t)),r&&(r.options.aboveAxis=i.to>i.from,r.reflow(t)),this.note&&this.note.reflow(t)},e}(Fn);ns.prototype.defaults=X({},ns.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});const as=ns;var 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.pointType=function(){return as},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 o=e.series.axis,r=t.from,i=t.to,n=this.valueAxisRanges[o];null!==t&&z(r)&&z(i)&&((n=this.valueAxisRanges[o]=n||{min:m,max:b}).min=Math.min(n.min,r),n.max=Math.max(n.max,r),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}(Qn);ss.prototype.plotLimits=an.prototype.plotLimits;const ls=ss;var ps=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}(hn);const cs=ps;var hs="auto",us=function(t){function e(e,o){t.call(this),this.value=e,this.options=o,this.aboveAxis=Lt(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,o=t.labels,r=this.value,i=this.fromPoint=new cs(r,X({},this.options,{labels:o.from,markers:e.from})),n=this.toPoint=new cs(r,X({},this.options,{labels:o.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,o=t.to;this.positionLabels(e,o),this.fromPoint.reflow(e),this.toPoint.reflow(o),this.box=this.fromPoint.markerBox().clone().wrap(this.toPoint.markerBox())},e.prototype.createHighlight=function(){var t=new D.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,o,r,i=this.box,n=i.center(),l=g;return this.options.vertical?(e=n.x,o=i.y1-5,r=a):(e=i.x2+5,o=n.y,r=s),{point:new ee(e,o),align:{horizontal:l,vertical:r}}}},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 o,r,i=this.options,n=i.labels,a=i.vertical;n.position===hs&&(a?e.y1<=t.y1?(r=Xr,o=Kr):(r=Kr,o=Xr):e.x1<=t.x1?(r=g,o=C):(r=C,o=g),n.from&&n.from.position||(this.fromPoint.options.labels.position=o),n.to&&n.to.position||(this.toPoint.options.labels.position=r))},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}(fe);X(us.prototype,ln),X(us.prototype,pn),us.prototype.defaults={markers:{visible:!1,background:k,size:8,type:l,border:{width:2},opacity:1},labels:{visible:!1,margin:$(3),padding:$(4),animation:{type:zr,delay:Nr},position:hs},notes:{label:{}},highlight:{markers:{border:{color:k,width:2}},zIndex:100},tooltip:{format:"{0} - {1}"}};const fs=us;var 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.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 D.drawing.Path(t),o=new D.drawing.Path(t);e.segments.push.apply(e.segments,this.strokeSegments()),o.segments.push.apply(o.segments,this.stackSegments()),this.visual.append(e),this.visual.append(o)},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}(jn);const vs=ds;var ys=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 xr).process(this.toGeometryPoints(t))},e}(vs);const gs=ys;var 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.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}(vs);X(ms.prototype,yn);const bs=ms;var _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(){t.prototype.render.call(this),this.renderSegments()},e.prototype.pointType=function(){return fs},e.prototype.createPoint=function(t,e){var o=e.series,r=e.seriesIx,i=t.valueFields;if(!ha(i.from)&&!ha(i.to)){if(this.seriesMissingValues(o)!==Gr)return null;i={from:0,to:0}}var n=this.pointOptions(o,r);n=this.evalPointOptions(n,i,e);var a=t.fields.color||o.color;U(o.color)&&(a=n.color);var s=new fs(i,n);return s.color=a,this.append(s),s},e.prototype.createSegment=function(t,e,o){var r=(e.line||{}).style;return new("smooth"===r?gs:"step"===r?bs:vs)(t,e,o)},e.prototype.plotRange=function(t,e){return t?[t.value.from,t.value.to]:[e,e]},e.prototype.valueSlot=function(t,e){var o=t.getSlot(e[0],e[0],!this.options.clip),r=t.getSlot(e[1],e[1],!this.options.clip);if(o&&r)return{from:o,to:r}},e.prototype.pointSlot=function(t,e){var o,r,i=e.from,n=e.to;return this.options.invertAxes?(o=new ie(i.x1,t.y1,i.x2,t.y2),r=new ie(n.x1,t.y1,n.x2,t.y2)):(o=new ie(t.x1,i.y1,t.x2,i.y2),r=new ie(t.x1,n.y1,t.x2,n.y2)),{from:o,to:r}},e.prototype.addValue=function(e,o){var r=e.valueFields;z(r.from)||(r.from=r.to),z(r.to)||(r.to=r.from),t.prototype.addValue.call(this,e,o)},e.prototype.updateRange=function(t,e){if(null!==t&&z(t.from)&&z(t.to)){var o=e.series.axis,r=this.valueAxisRanges[o]=this.valueAxisRanges[o]||{min:m,max:b},i=t.from,n=t.to;r.min=Math.min(r.min,i,n),r.max=Math.max(r.max,i,n)}},e.prototype.formatPointValue=function(t,e){var o=t.value;return this.chartService.format.auto(e,o.from,o.to)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],o=0;o<t.length;o++){var r=t[o];r&&(e.push((r.fromPoint||{}).marker),e.push((r.toPoint||{}).marker))}return e.concat(this._segments)},e}(an);X(_s.prototype,wn,Pn);const xs=_s;var ws=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,o=e.options,r=e.value,i=e.owner.seriesValueAxis(o),n=[],a=[],s=[],l=i.getSlot(r.low,r.high),p=i.getSlot(r.open,r.open),c=i.getSlot(r.close,r.close);p.x1=c.x1=l.x1=t.x1,p.x2=c.x2=l.x2=t.x2;var h=l.center().x;n.push([p.x1,p.y1]),n.push([h,p.y1]),a.push([h,c.y1]),a.push([c.x2,c.y1]),s.push([h,l.y1]),s.push([h,l.y2]),this.lines=[n,a,s],this.box=l.clone().wrap(p.clone().wrap(c)),this.reflowNote()},e.prototype.createBody=function(){},e}(Jn);const Cs=ws;var Os=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 Cs},e}(oa);const Ss=Os;var Ps=function(t){function e(e,o,r){t.call(this),this.from=e,this.to=o,this.series=r}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,o=this.to.box,r=[];if(t.isVertical){var i=t.aboveAxis?e.y1:e.y2;r.push([e.x1,i],[o.x2,i])}else{var n=t.aboveAxis?e.x2:e.x1;r.push([n,e.y1],[n,o.y2])}return r},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.series.line||{},o=D.drawing.Path.fromPoints(this.linePoints(),{stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType}});B(o),this.visual.append(o)},e}(fe);Bt(Ps,{animation:{type:zr,delay:Nr}});const As=Ps;var 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.render=function(){t.prototype.render.call(this),this.createSegments()},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,o=rn(e),r=!this.options.invertAxes,i=0;i<e.length;i++)for(var n=e[i],a=0,s=0,l=0;l<o;l++){var p=Ir.current.bindPoint(n,l),c=p.valueFields.value,h=p.fields.summary,u=a,f=void 0;h?"total"===h.toLowerCase()?(p.valueFields.value=a,u=0,f=a):(p.valueFields.value=s,f=u-s,s=0):z(c)&&(s+=c,f=a+=c),t(p,{category:this.categoryAxis.categoryAt(l),categoryIx:l,series:n,seriesIx:i,total:a,runningTotal:s,from:u,to:f,isVertical:r})}},e.prototype.updateRange=function(e,o){t.prototype.updateRange.call(this,{value:o.to},o)},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,o=this.segments=[],r=0;r<t.length;r++){var i=t[r],n=e[r];if(n)for(var a=void 0,s=0;s<n.length;s++){var l=n[s];if(l&&a){var p=new As(a,l,i);o.push(p),this.append(p)}a=l}}},e}(Qn);const Ts=ks;var js=[Zr,xi,yi,Si],Es=[si,Oi].concat(js),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.initFields=function(t){if(this.namedCategoryAxes={},this.namedValueAxes={},this.valueAxisRangeTracker=new Nn,t.length>0){this.invertAxes=ct(t[0].type,[Qr,ti,Oi,xi,Si,gi,ai,wi]);for(var e=0;e<t.length;e++){var o=t[e].stack;if(o&&"100%"===o.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 o=e.options.name;t.prototype.removeAxis.call(this,e),e instanceof No?delete this.namedCategoryAxes[o]:(this.valueAxisRangeTracker.reset(o),delete this.namedValueAxes[o]),e===this.categoryAxis&&delete this.categoryAxis,e===this.valueAxis&&delete this.valueAxis},e.prototype.createCharts=function(t){for(var e=this,o=this.groupSeriesByPane(),r=0;r<t.length;r++){var i=t[r],n=o[i.options.name||"default"]||[];e.addToLegend(n);var a=e.filterVisibleSeries(n);if(a)for(var s=e.groupSeriesByCategoryAxis(a),l=0;l<s.length;l++)e.createChartGroup(s[l],i)}},e.prototype.createChartGroup=function(t,e){this.createAreaChart(za(t,[Zr,xi]),e),this.createRangeAreaChart(za(t,[yi,Si]),e),this.createBarChart(za(t,[oi,Qr]),e),this.createRangeBarChart(za(t,[mi,gi]),e),this.createBulletChart(za(t,[ti,Ci]),e),this.createCandlestickChart(za(t,ei),e),this.createBoxPlotChart(za(t,[$r,wi]),e),this.createOHLCChart(za(t,li),e),this.createWaterfallChart(za(t,[Pi,ai]),e),this.createLineChart(za(t,[si,Oi]),e)},e.prototype.aggregateCategories=function(t){var e=this,o=this.srcSeries||this.series,r=[];this._currentPointsCache={},this._seriesPointsCache=this._seriesPointsCache||{};for(var i=0;i<o.length;i++){var n=o[i],a=e.seriesCategoryAxis(n),s=e.findPane(a.options.pane);n=(Na(a.options.type,h)||n.categoryField)&&ct(s,t)?e.aggregateSeries(n,a):e.filterSeries(n,a),r.push(n)}this._seriesPointsCache=this._currentPointsCache,this._currentPointsCache=null,this.srcSeries=o,this.series=r},e.prototype.filterSeries=function(t,e){var o=(t.data||{}).length;if(e._seriesMax=Math.max(e._seriesMax||0,o),!z(e.options.min)&&!z(e.options.max))return t;var r=e.currentRangeIndices(),i=ct(t.type,Es),n=X({},t);return n.data=(n.data||[]).slice(r.min,r.max+1),i&&Xa(n,r,o,(function(o){return{item:t.data[o],category:e.categoryAt(o,!0),categoryIx:o-r.min}}),(function(e){return xt(t.data[e])})),n},e.prototype.clearSeriesPointsCache=function(){this._seriesPointsCache={}},e.prototype.seriesSourcePoints=function(t,e){var o=t.index+";"+e.categoriesHash();if(this._seriesPointsCache[o])return this._currentPointsCache[o]=this._seriesPointsCache[o],this._seriesPointsCache[o];var r=e.options,i=r.srcCategories,n=Na(r.type,h),a=t.data,s=n?Va:Er,l=[];n||e.mapCategories();for(var p=0;p<a.length;p++){var c;if(c=t.categoryField?s(t.categoryField,a[p],this.chartService.intl):i[p],xt(c)&&null!==c){var u=e.totalIndex(c);l[u]=l[u]||{items:[],category:c},l[u].items.push(p)}}return this._currentPointsCache[o]=l,l},e.prototype.aggregateSeries=function(t,e){if(!t.data.length)return t;for(var o=this.seriesSourcePoints(t,e),r=X({},t),i=new os(X({},t),Ir.current,is.current),n=r.data=[],a=e.options.dataItems||[],s=e.currentRangeIndices(),l=function(t){var r=t-s.min,n=o[t];if(n||(n=o[t]={}),n.categoryIx=r,!n.item){var a=e.categoryAt(t,!0);n.category=a,n.item=i.aggregatePoints(n.items,a)}return n},p=s.min;p<=s.max;p++){var c=l(p);n[c.categoryIx]=c.item,c.items&&c.items.length&&(a[c.categoryIx]=c.item)}return ct(r.type,Es)&&Xa(r,s,e.totalCount(),l,(function(t){return o[t]})),e.options.dataItems=a,r},e.prototype.appendChart=function(e,o){var r=e.options.series,i=this.seriesCategoryAxis(r[0]),n=i.options.categories,a=Math.max(0,rn(r)-n.length);if(a>0)for(n=i.options.categories=i.options.categories.slice(0);a--;)n.push("");this.valueAxisRangeTracker.update(e.valueAxisRanges),t.prototype.appendChart.call(this,e,o)},e.prototype.seriesPaneName=function(t){var e=this.options,o=t.axis,r=at([].concat(e.valueAxis),(function(t){return t.name===o}))[0],i=((e.panes||[{}])[0]||{}).name||"default";return(r||{}).pane||i},e.prototype.seriesCategoryAxis=function(t){var e=t.categoryAxis,o=e?this.namedCategoryAxes[e]:this.categoryAxis;if(!o)throw new Error("Unable to locate category axis with name "+e);return o},e.prototype.stackableChartOptions=function(t,e){var o=t.stack;return{isStacked:o,isStacked100:o&&"100%"===o.type,clip:e.options.clip}},e.prototype.groupSeriesByCategoryAxis=function(t){for(var e=[],o={},r=0;r<t.length;r++){var i=t[r].categoryAxis||"$$default$$";o.hasOwnProperty(i)||(o[i]=!0,e.push(i))}for(var n=[],a=0;a<e.length;a++){var s=Ls(t,e[a],a);0!==s.length&&n.push(s)}return n},e.prototype.createBarChart=function(t,e){if(0!==t.length){var o=t[0],r=new Qn(this,Object.assign({series:t,invertAxes:this.invertAxes,gap:o.gap,spacing:o.spacing},this.stackableChartOptions(o,e)));this.appendChart(r,e)}},e.prototype.createRangeBarChart=function(t,e){if(0!==t.length){var o=t[0],r=new ls(this,{series:t,invertAxes:this.invertAxes,gap:o.gap,spacing:o.spacing});this.appendChart(r,e)}},e.prototype.createBulletChart=function(t,e){if(0!==t.length){var o=t[0],r=new Ca(this,{series:t,invertAxes:this.invertAxes,gap:o.gap,spacing:o.spacing,clip:e.options.clip});this.appendChart(r,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var o=t[0],r=new kn(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(o,e)));this.appendChart(r,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var o=t[0],r=new Dn(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(o,e)));this.appendChart(r,e)}},e.prototype.createRangeAreaChart=function(t,e){if(0!==t.length){var o=new xs(this,{invertAxes:this.invertAxes,series:t,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createOHLCChart=function(t,e){if(0!==t.length){var o=t[0],r=new Ss(this,{invertAxes:this.invertAxes,gap:o.gap,series:t,spacing:o.spacing,clip:e.options.clip});this.appendChart(r,e)}},e.prototype.createCandlestickChart=function(t,e){if(0!==t.length){var o=t[0],r=new oa(this,{invertAxes:this.invertAxes,gap:o.gap,series:t,spacing:o.spacing,clip:e.options.clip});this.appendChart(r,e)}},e.prototype.createBoxPlotChart=function(t,e){if(0!==t.length){var o=t[0],r=new la(this,{invertAxes:this.invertAxes,gap:o.gap,series:t,spacing:o.spacing,clip:e.options.clip});this.appendChart(r,e)}},e.prototype.createWaterfallChart=function(t,e){if(0!==t.length){var o=t[0],r=new Ts(this,{series:t,invertAxes:this.invertAxes,gap:o.gap,spacing:o.spacing});this.appendChart(r,e)}},e.prototype.axisRequiresRounding=function(t,e){for(var o=za(this.series,Ai),r=0;r<this.series.length;r++){var i=this.series[r];if(ct(i.type,js)){var n=i.line;n&&n.style===qr&&o.push(i)}}for(var a=0;a<o.length;a++){var s=o[a].categoryAxis||"";if(s===t||!s&&0===e)return!0}},e.prototype.aggregatedAxis=function(t,e){for(var o=this.series,r=0;r<o.length;r++){var i=o[r].categoryAxis||"";if((i===t||!i&&0===e)&&o[r].categoryField)return!0}},e.prototype.createCategoryAxesLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e]instanceof No&&t[e].createLabels()},e.prototype.createCategoryAxes=function(t){for(var e=this,o=this.invertAxes,r=[].concat(this.options.categoryAxis),i=[],n=0;n<r.length;n++){var a=r[n];if(ct(e.findPane(a.pane),t)){var s=a.name,l=a.categories;void 0===l&&(l=[]),a=X({vertical:o,reverse:!o&&e.chartService.rtl,axisCrossingValue:o?m:0},a),xt(a.justified)||(a.justified=e.isJustified()),e.axisRequiresRounding(s,n)&&(a.justified=!1);var p=void 0;if(p=Ha(a,l[0])?new Ko(a,e.chartService):new No(a,e.chartService),r[n].categories=p.options.srcCategories,s){if(e.namedCategoryAxes[s])throw new Error("Category axis with name "+s+" is already defined");e.namedCategoryAxes[s]=p}p.axisIndex=n,i.push(p),e.appendAxis(p)}}var c=this.categoryAxis||i[0];this.categoryAxis=c,o?this.axisY=c:this.axisX=c},e.prototype.isJustified=function(){for(var t=this.series,e=0;e<t.length;e++)if(!ct(t[e].type,js))return!1;return!0},e.prototype.createValueAxes=function(t){var e=this,o=this.valueAxisRangeTracker,r=o.query(),i=[].concat(this.options.valueAxis),n=this.invertAxes,a={vertical:!n,reverse:n&&this.chartService.rtl},s=[];this.stack100&&(a.roundToMajorUnit=!1,a.labels={format:"P0"});for(var l=0;l<i.length;l++){var p=i[l];if(ct(e.findPane(p.pane),t)){var c=p.name,h=Na(p.type,Wi)?{min:.1,max:1}:{min:0,max:1},u=o.query(c)||r||h;0===l&&u&&r&&(u.min=Math.min(u.min,r.min),u.max=Math.max(u.max,r.max));var f=new(Na(p.type,Wi)?sr:tr)(u.min,u.max,X({},a,p),e.chartService);if(c){if(e.namedValueAxes[c])throw new Error("Value axis with name "+c+" is already defined");e.namedValueAxes[c]=f}f.axisIndex=l,s.push(f),e.appendAxis(f)}}var d=this.valueAxis||s[0];this.valueAxis=d,n?this.axisX=d:this.axisY=d},e.prototype._dispatchEvent=function(t,e,o){var r=t._eventCoordinates(e),i=new ee(r.x,r.y),n=this.pointPane(i),a=[],s=[];if(n){for(var l=n.axes,p=0;p<l.length;p++){var c=l[p];c.getValue?Ra(s,c.getValue(i)):Ra(a,c.getCategory(i))}0===a.length&&Ra(a,this.categoryAxis.getCategory(i)),a.length>0&&s.length>0&&t.trigger(o,{element:Pt(e),originalEvent:e,category:Ua(a),value:Ua(s)})}},e.prototype.pointPane=function(t){for(var e=this.panes,o=0;o<e.length;o++){var r=e[o];if(r.contentBox.containsPoint(t))return r}},e.prototype.updateAxisOptions=function(t,e){Is(this.options,t,e),Is(this.originalOptions,t,e)},e}($a);function Is(t,e,o){X([].concat(e instanceof No?t.categoryAxis:t.valueAxis)[e.axisIndex],o)}function Ls(t,e,o){return at(t,(function(t){return 0===o&&!t.categoryAxis||t.categoryAxis===e}))}Bt(Ms,{categoryAxis:{},valueAxis:{}}),X(Ms.prototype,ts);const Rs=Ms;var Ds=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 o=[].concat(t);this.hide();for(var r=0;r<o.length;r++){var i=o[r];i&&i.toggleHighlight&&i.hasHighlight()&&(this.togglePointHighlight(i,!0,e),this._points.push(i))}},e.prototype.togglePointHighlight=function(t,e,o){var r=(t.options.highlight||{}).toggle;if(r){var i={category:t.category,series:t.series,dataItem:t.dataItem,value:t.value,stackValue:t.stackValue,preventDefault:Bs,visual:t.highlightVisual(),show:e};r(i),i._defaultPrevented||t.toggleHighlight(e,o)}else t.toggleHighlight(e,o)},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,o=0;o<e.length;o++)if(t===e[o])return!0;return!1},e}(D.Class);function Bs(){this._defaultPrevented=!0}const Ns=Ds;function zs(t,e){var o=(e||"").toLowerCase(),r=t.event;return"none"===o&&!(r.ctrlKey||r.shiftKey||r.altKey)||r[o+"Key"]}function Vs(t){for(var e={},o=0;o<t.length;o++){var r=t[o];r.axis.options.name&&(e[r.axis.options.name]={min:r.range.min,max:r.range.max})}return e}var Hs=function(t){function e(e,o){t.call(this),this.plotArea=e,this.options=X({},this.options,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.start=function(t){return this._active=zs(t,this.options.key),this._active},e.prototype.move=function(t){if(this._active){var e=this.axisRanges=this._panAxes(t,j).concat(this._panAxes(t,E));if(e.length)return this.axisRanges=e,Vs(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 o=0;o<e.length;o++){var r=e[o];t.updateAxisOptions(r.axis,r.range)}t.redraw(t.panes)}},e.prototype.destroy=function(){delete this.plotArea},e.prototype._panAxes=function(t,e){var o=this.plotArea,r=-t[e].delta,i=(this.options.lock||"").toLowerCase(),n=[];if(0!==r&&(i||"").toLowerCase()!==e)for(var a=o.axes,s=0;s<a.length;s++){var l=a[s];if(e===j&&!l.options.vertical||e===E&&l.options.vertical){var p=l.pan(r);p&&(p.limitRange=!0,n.push({axis:l,range:p}))}}return n},e}(D.Class);Hs.prototype.options={key:"none",lock:"none"};const Us=Hs;var Fs=function(t){function e(e,o){t.call(this),this.chart=e,this.options=X({},this.options,o),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){Q(this._marquee,t)},e.prototype.start=function(t){if(zs(t,this.options.key)){var e=this.chart,o=e._eventCoordinates(t),r=this._zoomPane=e._plotArea.paneByPoint(o),i=r?r.chartsBox().clone():null;if(r&&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=Q(t,["paddingLeft","paddingTop"]),o=e.paddingLeft,r=e.paddingTop,i=Ct(t);return{left:o+i.left,top:r+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(),o=this._selectionPosition(t);o.left-=e.left,o.top-=e.top;var r={x:o.left,y:o.top},i={x:o.left+o.width,y:o.top+o.height};return this._updateAxisRanges(r,i),this.removeElement(),delete this._zoomPane,Vs(this.axisRanges)}},e.prototype.zoom=function(){var t=this.axisRanges;if(t&&t.length){for(var e=this.chart._plotArea,o=0;o<t.length;o++){var r=t[o];e.updateAxisOptions(r.axis,r.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 o=(this.options.lock||"").toLowerCase(),r=[],i=this._zoomPane.axes,n=0;n<i.length;n++){var a=i[n],s=a.options.vertical;if((o!==j||s)&&(o!==E||!s)&&xt(a.axisIndex)){var l=a.pointsRange(t,e);l&&r.push({axis:a,range:l})}}this.axisRanges=r},e.prototype._selectionPosition=function(t){var e=this._zoomPaneClipBox,o={x:t.x.startLocation,y:t.y.startLocation},r=t.x.location,i=t.y.location,n=(this.options.lock||"").toLowerCase(),a=Math.min(o.x,r),s=Math.min(o.y,i),l=Math.abs(o.x-r),p=Math.abs(o.y-i);return n===j&&(a=e.x1,l=e.width()),n===E&&(s=e.y1,p=e.height()),r>e.x2&&(l=e.x2-o.x),r<e.x1&&(l=o.x-e.x1),i>e.y2&&(p=e.y2-o.y),i<e.y1&&(p=o.y-e.y1),{left:Math.max(a,e.x1),top:Math.max(s,e.y1),width:l,height:p}},e}(D.Class);Fs.prototype.options={key:"shift",lock:"none"};const Gs=Fs;var Ws=function(t){function e(e,o){t.call(this),this.chart=e,this.options=X({rate:.3},this.options,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.updateRanges=function(t,e){for(var o=(this.options.lock||"").toLowerCase(),r=[],i=this.chart._plotArea.axes,n=0;n<i.length;n++){var a=i[n],s=a.options.vertical;if((o!==j||s)&&(o!==E||!s)&&a.zoomRange){var l=Tt(this.options.rate,.01,.9),p=a.zoomRange(-t*l,e);p&&r.push({axis:a,range:p})}}return this.axisRanges=r,Vs(r)},e.prototype.zoom=function(){var t=this.axisRanges,e=this.chart._plotArea;if(t&&t.length&&e.updateAxisOptions){for(var o=0;o<t.length;o++){var r=t[o];e.updateAxisOptions(r.axis,r.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){delete this.chart},e}(D.Class);const Xs=Ws;var Ks=function(t){function e(e,o){t.call(this,e),this.chartService=o}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,o=e.vertical;this.visual=new D.drawing.Layout(null,{spacing:o?0:e.spacing,lineSpacing:o?e.spacing:0,orientation:o?"vertical":"horizontal",reverse:e.rtl,alignItems:o?"start":"center"});for(var r=0;r<t.length;r++){var i=t[r];i.reflow(new ie),i.renderVisual()}},e.prototype.reflow=function(t){this.visual.rect(t.toRect()),this.visual.reflow();var e=this.visual.clippedBBox();this.box=e?ke(e):new ie},e.prototype.renderVisual=function(){this.addVisual()},e.prototype.createVisual=function(){},e}(fe);const Ys=Ks;var qs=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 Oe({vertical:!1,wrap:!1,align:s,spacing:this.options.spacing}),this.append(this.container)},e.prototype.createMarker=function(){this.container.append(new ge(this.markerOptions()))},e.prototype.markerOptions=function(){var t=this.options,e=t.markerColor;return X({},t.markers,{background:e,border:{color:e}})},e.prototype.createLabel=function(){var t=this.options,e=X({},t.labels);this.container.append(new Ee(t.text,e))},e.prototype.renderComplete=function(){t.prototype.renderComplete.call(this);var e=this.options.cursor||{},o=this._itemOverlay=D.drawing.Path.fromRect(this.container.box.toRect(),{fill:{color:k,opacity:0},stroke:null,cursor:e.style||e});this.appendVisual(o)},e.prototype.click=function(t,e){var o=this.eventArgs(e);!t.trigger("legendItemClick",o)&&e&&"contextmenu"===e.type&&e.preventDefault()},e.prototype.over=function(t,e){var o=this.eventArgs(e);return t.trigger("legendItemHover",o)||t._legendItemHover(o.seriesIndex,o.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:Pt(t),text:e.text,series:e.series,seriesIndex:e.series.index,pointIndex:e.pointIndex}},e.prototype.renderVisual=function(){var e=this,o=this.options,r=o.visual;r?(this.visual=r({active:o.active,series:o.series,sender:this.getSender(),pointIndex:o.pointIndex,options:{markers:this.markerOptions(),labels:o.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}(ve);const Zs=qs;var Qs="horizontal",$s="custom",Js=function(t){function e(e,o){void 0===o&&(o={}),t.call(this,e),this.chartService=o,ct(this.options.position,[P,C,a,g,$s])||(this.options.position=C),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,o=t.align,r=e,i=s;e===$s?r=g:ct(e,[P,a])?(r="start"===o?g:"end"===o?C:s,i=e):o&&("start"===o?i=P:"end"===o&&(i=a)),this.container=new ve({margin:t.margin,padding:t.padding,background:t.background,border:t.border,vAlign:i,align:r,zIndex:t.zIndex,shrinkToFit:!0}),this.hasTitle()?this.itemsContainer=new ve({vAlign:i,align:r,zIndex:t.zIndex,shrinkToFit:!0}):this.itemsContainer=this.container,this.append(this.container)},e.prototype.createItems=function(){var t=this.getService(),e=this.options,o=this.isVertical(),r=new Ys({vertical:o,spacing:e.spacing,rtl:t.rtl},t),i=e.items;e.reverse&&(i=i.slice(0).reverse());for(var n=i.length,a=0;a<n;a++){var s=i[a];r.append(new Zs(X({},{markers:e.markers,labels:e.labels,rtl:t.rtl},e.item,s)))}r.render(),this.itemsContainer.append(r)},e.prototype.isVertical=function(){var t=this.options,e=t.orientation,o=t.position;return o===$s&&e!==Qs||(xt(e)?e!==Qs:ct(o,[g,C]))},e.prototype.hasItems=function(){return this.container.children[0].children.length>0},e.prototype.reflow=function(t){var e=this.options,o=t.clone();this.hasItems()?(e.position===$s?(this.containerCustomReflow(o),this.box=o):this.containerReflow(o),this.hasTitle()&&this.title.reflow(new ie(this.container.box.x1,this.title.box.y1,this.container.box.x2,this.title.box.y2))):this.box=o},e.prototype.containerReflow=function(t){var e=this.options,o=this.container,r=e.position,i=e.width,n=e.height,s=r===P||r===a?j:E,l=this.isVertical(),p=t.clone(),c=t.clone();r!==g&&r!==C||(c.y1=p.y1=0),l&&n?(c.y2=c.y1+n,c.align(p,E,o.options.vAlign)):!l&&i&&(c.x2=c.x1+i,c.align(p,j,o.options.align)),o.reflow(c);var h=(c=o.box).clone();(e.offsetX||e.offsetY)&&(c.translate(e.offsetX,e.offsetY),o.reflow(c)),h[s+1]=t[s+1],h[s+2]=t[s+2],this.box=h},e.prototype.containerCustomReflow=function(t){var e=this.options,o=this.container,r=e.offsetX,i=e.offsetY,n=e.width,a=e.height,s=this.isVertical(),l=t.clone();s&&a?l.y2=l.y1+a:!s&&n&&(l.x2=l.x1+n),o.reflow(l),l=o.box,o.reflow(new ie(r,i,r+l.width(),i+l.height()))},e.prototype.renderVisual=function(){this.hasItems()&&t.prototype.renderVisual.call(this)},e.prototype.createLegendTitle=function(t){var e=X({},{color:n,position:P,align:s},t),o=e.text;if(t&&!1!==t.visible){if(xt(e)&&e.visible){var r=ot(e);r?o=r({text:o}):e.format&&(o=this.chartService.format.auto(e.format,o))}this.title=new Ee(o,e),this.createTitleLayout(),this.appendTitleLayoutContent()}},e.prototype.createTitleLayout=function(){this.layout=new Oe({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===a?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))},e}(fe);Bt(Js,{position:C,items:[],offsetX:0,offsetY:0,margin:$(5),padding:$(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:g,vAlign:s}});const tl=Js;var el=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,o){for(var r,i=this._registry,n=i[0],a=0;a<i.length;a++){var s=i[a];if((r=za(t,s.seriesTypes)).length>0){n=s;break}}return new n.type(r,e,o)},e}(D.Class);el.current=new el;const ol=el;function rl(t){var e=document.createElement("div");return t&&(e.className=t),e}function il(t){for(var e=t;e&&!st(e,"k-handle");)e=e.parentNode;return e}var nl=function(t){function e(e,o,r,i){t.call(this);var n=e.element;this.options=X({},this.options,r),this.chart=e,this.observer=i,this.chartElement=n,this.categoryAxis=o,this._dateAxis=this.categoryAxis instanceof Ko,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=rl("k-selector k-pointer-events-none");Q(e,{top:t.offset.top,left:t.offset.left,width:t.width,height:t.height,direction:"ltr"});var o=this.selection=rl("k-selection k-pointer-events-none");this.leftMask=rl("k-mask k-pointer-events-none"),this.rightMask=rl("k-mask k-pointer-events-none"),e.appendChild(this.leftMask),e.appendChild(this.rightMask),e.appendChild(o);var r=this.body=rl("k-selection-bg k-pointer-events-none");o.appendChild(r);var i=this.leftHandle=rl("k-handle k-left-handle k-pointer-events-auto"),n=this.rightHandle=rl("k-handle k-right-handle k-pointer-events-auto");i.appendChild(rl()),n.appendChild(rl()),o.appendChild(i),o.appendChild(n),this.chartElement.appendChild(e);var a=Q(o,["borderLeftWidth","borderRightWidth","height"]),s=Q(i,"height").height,l=Q(n,"height").height;t.selection={border:{left:a.borderLeftWidth,right:a.borderRightWidth}},Q(i,{top:(a.height-s)/2}),Q(n,{top:(a.height-l)/2}),e.style.cssText=e.style.cssText},e.prototype.bindEvents=function(){var t;!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),_t(this.chartElement,((t={})[qi]=this._mousewheelHandler,t))),this._domEvents=$e.create(this.chartElement,{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(),o=this.chart.chartService.intl;this._dateAxis&&X(t,{min:Lo(o,t.min),max:Lo(o,t.max),from:Lo(o,t.from),to:Lo(o,t.to)});var r=Q(this.chartElement,["paddingLeft","paddingTop"]),i=r.paddingLeft,n=r.paddingTop;this.options=X({},{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&&(It(this.chartElement,((t={})[qi]=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._pointInPane=function(t,e){var o=this.categoryAxis.pane.box,r=this.chart._toModelCoordinates(t,e);return o.containsPoint(r)},e.prototype._start=function(t){var e=this.options,o=Pt(t);if(!this._state&&o){var r=St(t);if(this._pointInPane(r.x,r.y)){var i=il(o),n=this.body.getBoundingClientRect(),a=!i&&r.x>=n.x&&r.x<=n.x+n.width&&r.y>=n.y&&r.y<=n.y+n.height;this.chart._unsetActivePoint(),this._state={moveTarget:i,startLocation:t.x?t.x.location:0,inBody:a,range:{from:this._index(e.from),to:this._index(e.to)}};var s=this._rangeEventArgs({from:this._index(e.from),to:this._index(e.to)});this.trigger(Vi,s)&&(this._state=null)}}},e.prototype._press=function(t){var e;(e=this._state?this._state.moveTarget:il(Pt(t)))&&I(e,"k-handle-active")},e.prototype._move=function(t){if(this._state){var e=this,o=e._state,r=e.options,i=e.categoryAxis,n=o.range,a=o.moveTarget,s=i.options.reverse,l=this._index(r.from),p=this._index(r.to),c=this._index(r.min),h=this._index(r.max),u=o.startLocation-t.x.location,f=n.from,d=n.to,v=n.to-n.from,y=Q(this.wrapper,"width").width/(i.categoriesCount()-1),g=Math.round(u/y)*(s?-1:1);if(a||o.inBody){var m=a&&st(a,"k-left-handle"),b=a&&st(a,"k-right-handle");o.inBody?(n.from=Math.min(Math.max(c,l-g),h-v),n.to=Math.min(n.from+v,h)):m&&!s||b&&s?(n.from=Math.min(Math.max(c,l-g),h-1),n.to=Math.max(n.from+1,n.to)):(m&&s||b&&!s)&&(n.to=Math.min(Math.max(c+1,p-g),h),n.from=Math.min(n.to-1,n.from)),n.from===f&&n.to===d||(this.move(n.from,n.to),this.trigger(Hi,this._rangeEventArgs(n)))}}},e.prototype._end=function(){if(this._state){var t=this._state.moveTarget;t&&R(t,"k-handle-active");var e=this._state.range;this.set(e.from,e.to),this.trigger(Ui,this._rangeEventArgs(e)),delete this._state}},e.prototype._tap=function(t){var e=this.options,o=this.categoryAxis,r=this.chart._eventCoordinates(t),i=o.pointCategoryIndex(new ee(r.x,o.box.y1)),n=this._index(e.from),a=this._index(e.to),s=this._index(e.min),l=this._index(e.max),p=a-n,c=n+p/2,h={},u=3===t.event.which,f=Math.round(c-i);this._state||u||(this.chart._unsetActivePoint(),o.options.justified||f--,h.from=Math.min(Math.max(s,n-f),l-p),h.to=Math.min(h.from+p,l),this._start(t),this._state&&(this._state.range=h,this.trigger(Hi,this._rangeEventArgs(h)),this._end()))},e.prototype._mousewheel=function(t){var e=this,o=gt(t);if(this._start(t),this._state){var r=this._state.range;t.preventDefault(),t.stopPropagation(),Math.abs(o)>1&&(o*=3),this.options.mousewheel.reverse&&(o*=-1),this.expand(o)&&this.trigger(Hi,{axis:this.categoryAxis.options,delta:o,originalEvent:t,from:this._value(r.from),to:this._value(r.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._end()}),150)}},e.prototype._gesturestart=function(t){var e=this.options,o=t.touches[0];if(this._pointInPane(o.pageX,o.pageY)){this._state={range:{from:this._index(e.from),to:this._index(e.to)}};var r=this._rangeEventArgs(this._state.range);this.trigger(Vi,r)?this._state=null:t.preventDefault()}},e.prototype._gestureend=function(){this._state&&(this.trigger(Ui,this._rangeEventArgs(this._state.range)),delete this._state)},e.prototype._gesturechange=function(t){if(this._state){var e=this,o=e.chart,r=e._state,i=e.options,n=e.categoryAxis,a=r.range,s=o._toModelCoordinates(t.touches[0].x.location).x,l=o._toModelCoordinates(t.touches[1].x.location).x,p=Math.min(s,l),c=Math.max(s,l);t.preventDefault(),a.from=n.pointCategoryIndex(new ee(p))||i.min,a.to=n.pointCategoryIndex(new ee(c))||i.max,this.move(a.from,a.to),this.trigger(Hi,this._rangeEventArgs(a))}},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,o=this._index(t);return e.getSlot(o,o,!0)},e.prototype.move=function(t,e){var o=this.options,r=this.categoryAxis.options.reverse,i=o.offset,n=o.padding,a=o.selection.border,s=r?e:t,l=r?t:e,p="x"+(r?2:1),c=this._slot(s),h=Mt(c[p]-i.left+n.left);Q(this.leftMask,{width:h}),Q(this.selection,{left:h}),c=this._slot(l);var u=Mt(o.width-(c[p]-i.left+n.left));Q(this.rightMask,{width:u});var f=o.width-u;f!==o.width&&(f+=a.right),Q(this.rightMask,{left:f}),Q(this.selection,{width:Math.max(o.width-(h+u)-a.right,0)})},e.prototype.set=function(t,e){var o=this.options,r=this._index(o.min),i=this._index(o.max),n=Tt(this._index(t),r,i),a=Tt(this._index(e),n+1,i);o.visible&&this.move(n,a),o.from=this._value(n),o.to=this._value(a)},e.prototype.expand=function(t){var e=this.options,o=this._index(e.min),r=this._index(e.max),i=e.mousewheel.zoom,n=this._index(e.from),a=this._index(e.to),s={from:n,to:a},l=X({},s);if(this._state&&(s=this._state.range),i!==C&&(s.from=Tt(Tt(n-t,0,a-1),o,r)),i!==g&&(s.to=Tt(Tt(a+t,s.from+1,r),o,r)),s.from!==l.from||s.to!==l.to)return this.set(s.from,s.to),!0},e.prototype.zoom=function(t,e){var o=this.options,r=this._index(o.min),i=this._index(o.max),n=this._index(o.from),a=this._index(o.to),s={from:n,to:a},l=X({},s),p=this.categoryAxis.options.reverse,c=j+(p?"2":"1"),h=this.categoryAxis.lineBox(),u=Math.abs(h[c]-e[j]),f=h.width(),d=Mt(u/f,2),v=Mt(d*t),y=Mt((1-d)*t);if(this._state&&(s=this._state.range),s.from=Tt(Tt(n-v,0,a-1),r,i),s.to=Tt(Tt(a+y,s.from+1,i),r,i),s.from!==l.from||s.to!==l.to)return this.set(s.from,s.to),!0},e.prototype.trigger=function(t,e){return(this.observer||this.chart).trigger(t,e)},e}(D.Class);Bt(nl,{visible:!0,mousewheel:{zoom:"both"},min:b,max:m});const al=nl;var sl=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 o=X({},this.options,e.options.tooltip),r=e.tooltipAnchor();r?(this._current=e,t.prototype.show.call(this,{point:e,anchor:r},o,e)):this.hide()}},e.prototype.hide=function(){delete this._current,t.prototype.hide.call(this)},e}(Sa);const ll=sl;var pl=function(t){function e(e,o){t.call(this,e.chartService,o),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 o=at(t,(function(t){var e=t.series.tooltip;return!(e&&!1===e.visible)}));if(o.length>0){var r=o[0],i=this.plotArea.categoryAxis.getSlot(r.categoryIx),n=e?this._slotAnchor(e,i):this._defaultAnchor(r,i);this.show({anchor:n,shared:!0,points:t,category:r.category,categoryText:this.formatService.auto(this.options.categoryFormat,r.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 o=t.owner.pane.chartsBox(),r=this.plotArea.categoryAxis.options.vertical,i=o.center(),n=e.center();return{point:r?new ee(i.x,n.y):new ee(n.x,i.y),align:{horizontal:"center",vertical:"center"}}},e}(Sa);Bt(pl,{categoryFormat:"{0:d}"});const cl=pl;var hl=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 o=e.vertical?E:j,r=this.fromScale=new D.geometry.Point(1,1);r[o]=Hr,t.transform(D.geometry.transform().scale(r.x,r.y))}else this.abort()},e.prototype.step=function(t){var e=ht(this.fromScale.x,1,t),o=ht(this.fromScale.y,1,t);this.element.transform(D.geometry.transform().scale(e,o,this.origin))},e.prototype.abort=function(){t.prototype.abort.call(this),this.element.transform(null)},e}(D.drawing.Animation);Bt(hl,{duration:Nr}),D.drawing.AnimationFactory.current.register(Qr,hl);var 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.setup=function(){var t=this.center=this.element.bbox().center();this.element.transform(D.geometry.transform().scale(Hr,Hr,t))},e.prototype.step=function(t){this.element.transform(D.geometry.transform().scale(t,t,this.center))},e}(D.drawing.Animation);Bt(ul,{easing:"easeOutElastic"}),D.drawing.AnimationFactory.current.register(Jr,ul);var 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.setup=function(){this.fadeTo=this.element.opacity(),this.element.opacity(0)},e.prototype.step=function(t){this.element.opacity(t*this.fadeTo)},e}(D.drawing.Animation);Bt(fl,{duration:200,easing:"linear"}),D.drawing.AnimationFactory.current.register(zr,fl);var dl=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(D.geometry.transform().scale(Hr,Hr,this.options.center))},e.prototype.step=function(t){this.element.transform(D.geometry.transform().scale(t,t,this.options.center))},e}(D.drawing.Animation);Bt(dl,{easing:"easeOutElastic",duration:Nr}),D.drawing.AnimationFactory.current.register(pi,dl);const vl=dl;var yl=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,o){return new(e.style===Yr?_n:fn)(t,e,o)},e.prototype.animationPoints=function(){return t.prototype.animationPoints.call(this).concat(this._segments)},e.prototype.createMissingValue=function(t,e){if(e===Gr){var o={x:t.x,y:t.y};return ha(o.x)||(o.x=0),ha(o.y)||(o.y=0),o}},e}(fa);X(yl.prototype,wn);const gl=yl;var ml=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 Nn,this.yAxisRangeTracker=new Nn},e.prototype.render=function(t){var e=this;void 0===t&&(t=this.panes);for(var o=this.groupSeriesByPane(),r=0;r<t.length;r++){var i=t[r],n=o[i.options.name||"default"]||[];e.addToLegend(n);var a=e.filterVisibleSeries(n);a&&(e.createScatterChart(za(a,bi),i),e.createScatterLineChart(za(a,_i),i),e.createBubbleChart(za(a,Jr),i))}this.createAxes(t)},e.prototype.appendChart=function(e,o){this.xAxisRangeTracker.update(e.xAxisRanges),this.yAxisRangeTracker.update(e.yAxisRanges),t.prototype.appendChart.call(this,e,o)},e.prototype.removeAxis=function(e){var o=e.options.name;t.prototype.removeAxis.call(this,e),e.options.vertical?(this.yAxisRangeTracker.reset(o),delete this.namedYAxes[o]):(this.xAxisRangeTracker.reset(o),delete this.namedXAxes[o]),e===this.axisX&&delete this.axisX,e===this.axisY&&delete this.axisY},e.prototype.seriesPaneName=function(t){var e=this.options,o=t.xAxis,r=at([].concat(e.xAxis),(function(t){return t.name===o}))[0],i=t.yAxis,n=at([].concat(e.yAxis),(function(t){return t.name===i}))[0],a=(e.panes||[{}])[0].name||"default";return(r||{}).pane||(n||{}).pane||a},e.prototype.createScatterChart=function(t,e){t.length>0&&this.appendChart(new fa(this,{series:t,clip:e.options.clip}),e)},e.prototype.createScatterLineChart=function(t,e){t.length>0&&this.appendChart(new gl(this,{series:t,clip:e.options.clip}),e)},e.prototype.createBubbleChart=function(t,e){t.length>0&&this.appendChart(new ga(this,{series:t,clip:e.options.clip}),e)},e.prototype.createXYAxis=function(t,e,o){for(var r,i=t.name,n=e?this.namedYAxes:this.namedXAxes,a=e?this.yAxisRangeTracker:this.xAxisRangeTracker,s=X({reverse:!e&&this.chartService.rtl},t,{vertical:e}),l=Na(s.type,Wi),p=a.query(),c=l?{min:.1,max:1}:{min:0,max:1},u=a.query(i)||p||c,f=[s.min,s.max],d=this.series,v=0;v<d.length;v++){var y=d[v],g=y[e?"yAxis":"xAxis"];if(g===s.name||0===o&&!g){var m=Ir.current.bindPoint(y,0).valueFields;f.push(m[e?"y":"x"]);break}}0===o&&p&&(u.min=Math.min(u.min,p.min),u.max=Math.max(u.max,p.max));for(var b=0;b<f.length;b++)if(f[b]instanceof Date){r=!0;break}var _=new(Na(s.type,h)||!s.type&&r?or:l?sr:tr)(u.min,u.max,s,this.chartService);if(_.axisIndex=o,i){if(n[i])throw new Error((e?"Y":"X")+" axis with name "+i+" is already defined");n[i]=_}return this.appendAxis(_),_},e.prototype.createAxes=function(t){for(var e=this,o=this.options,r=[].concat(o.xAxis),i=[],n=[].concat(o.yAxis),a=[],s=0;s<r.length;s++)ct(e.findPane(r[s].pane),t)&&i.push(e.createXYAxis(r[s],!1,s));for(var l=0;l<n.length;l++)ct(e.findPane(n[l].pane),t)&&a.push(e.createXYAxis(n[l],!0,l));this.axisX=this.axisX||i[0],this.axisY=this.axisY||a[0]},e.prototype._dispatchEvent=function(t,e,o){for(var r=t._eventCoordinates(e),i=new ee(r.x,r.y),n=this.axes,a=n.length,s=[],l=[],p=0;p<a;p++){var c=n[p],h=c.options.vertical?l:s,u=c.getValue(i);null!==u&&h.push(u)}s.length>0&&l.length>0&&t.trigger(o,{element:Pt(e),originalEvent:e,x:Ua(s),y:Ua(l)})},e.prototype.updateAxisOptions=function(t,e){var o=t.options.vertical,r=this.groupAxes(this.panes),i=(o?r.y:r.x).indexOf(t);bl(this.options,i,o,e),bl(this.originalOptions,i,o,e)},e}($a);function bl(t,e,o,r){X([].concat(o?t.yAxis:t.xAxis)[e],r)}Bt(ml,{xAxis:{},yAxis:{}}),X(ml.prototype,ts);const _l=ml;var xl=function(t){function e(e,o,r){t.call(this,r),this.value=e,this.sector=o}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,o=this.value;if(!this._rendered&&!1!==this.visible){this._rendered=!0;var r=ot(t),i=this.pointData();if(r?o=r(i):t.format&&(o=e.format.auto(t.format,o)),t.visible&&(o||0===o)){if(t.position===s||t.position===Ki)t.color||(t.color=Gt(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 Ee(o,X({},t,{align:s,vAlign:"",animation:{type:zr,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,o=this.sector.clone(),r=t.distance,i=o.middle();if(e){var n,a=e.box.height(),l=e.box.width();if(t.position===s)o.radius=Math.abs((o.radius-a)/2)+a,n=o.point(i),e.reflow(new ie(n.x,n.y-a/2,n.x,n.y));else if(t.position===Ki)o.radius=o.radius-a/2,n=o.point(i),e.reflow(new ie(n.x,n.y-a/2,n.x,n.y));else{var p;(n=o.clone().expand(r).point(i)).x>=o.center.x?(p=n.x+l,e.orientation=C):(p=n.x-l,e.orientation=g),e.reflow(new ie(p,n.y-a,n.x,n.y))}}},e.prototype.createVisual=function(){var e=this,o=this.sector,r=this.options;if(t.prototype.createVisual.call(this),this.value)if(r.visual){var i=(o.startAngle+180)%360,n=r.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new D.geometry.Point(o.center.x,o.center.y),radius:o.radius,innerRadius:o.innerRadius,startAngle:i,endAngle:i+o.angle,options:r,sender:this.getSender(),createVisual:function(){var t=new D.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,o=this.options,r=o.border||{},i=r.width>0?{stroke:{color:r.color,width:r.width,opacity:r.opacity,dashType:r.dashType}}:{},n=o.color,a={color:n,opacity:o.opacity},s=this.createSegment(e,X({fill:a,stroke:{opacity:o.opacity},zIndex:o.zIndex},i));t.append(s),Hn(o)&&t.append(this.createGradientOverlay(s,{baseColor:n,fallbackFill:a},X({center:[e.center.x,e.center.y],innerRadius:e.innerRadius,radius:e.radius,userSpace:!0},o.overlay)))},e.prototype.createSegment=function(t,e){return e.singleSegment?new D.drawing.Circle(new D.geometry.Circle(new D.geometry.Point(t.center.x,t.center.y),t.radius),e):he.current.createRing(t,e)},e.prototype.createAnimation=function(){var e=this.options,o=this.sector.center;X(e,{animation:{center:[o.x,o.y],delay:this.animationDelay}}),t.prototype.createAnimation.call(this)},e.prototype.createHighlight=function(t){var e=this.options.highlight||{},o=e.border||{};return this.createSegment(this.sector,X({},t,{fill:{color:e.color,opacity:e.opacity},stroke:{opacity:o.opacity,width:o.width,color:o.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 D.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,e,o,r,i=this.sector.clone().expand(5),n=i.middle();return{point:i.point(n),align:(t=n+180,e=Et(t),o=Mt(Math.sin(e),f),r=Mt(Math.cos(e),f),{horizontal:Math.abs(o)>Cl?s:r<0?C:g,vertical:Math.abs(o)<wl?s:o<0?a:P})}},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}(fe),wl=Mt(Et(30),f),Cl=Mt(Et(60),f);Bt(xl,{color:k,overlay:{gradient:"roundedBevel"},border:{width:.5},labels:{visible:!1,distance:35,font:u,margin:$(.5),align:l,zIndex:1,position:Yi},animation:{type:pi},highlight:{visible:!0,border:{width:1}},visible:!0}),X(xl.prototype,ln);const Ol=xl,Sl={createLegendItem:function(t,e,o){var r=this.options.legend||{},i=r.labels||{},n=r.inactiveItems||{},a=n.labels||{};if(o&&!1!==o.visibleInLegend){var s,l,p=!1!==o.visible,c=p?ot(i):ot(a)||ot(i),h=o.category;c&&(h=c({text:h,series:o.series,dataItem:o.dataItem,percentage:o.percentage,value:t})),p?(s={},l=e.color):(s={color:a.color,font:a.font},l=(n.markers||{}).color),ha(h)&&""!==h&&this.legendItems.push({active:p,pointIndex:o.index,text:h,series:o.series,markerColor:l,labels:s})}}};var Pl=function(t){function e(e,o){t.call(this,o),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,o=this.plotArea.options.seriesColors;void 0===o&&(o=[]);for(var r=o.length,i=e.series,n=i.length,a=0;a<n;a++){var l=i[a],p=l.data,c=Ba(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=xt(l.startAngle)?l.startAngle:e.startAngle,a!==n-1&&l.labels.position===Yi&&(l.labels.position=s);for(var g=0;g<u.length;g++){var m=u[g];if(m){var b=m.fields,_=m.value,x=m.visible,w=0!==_?v||_*d:0,C=1!==p.length&&Boolean(b.explode);U(l.color)||(l.color=b.color||o[g%r]),t(_,new se(null,0,0,y,w),{owner:this,category:xt(b.category)?b.category:"",index:g,series:l,seriesIx:a,dataItem:p[g],percentage:0!==h?_/h:0,explode:C,visibleInLegend:b.visibleInLegend,visible:x,zIndex:n-a,animationDelay:this.animationDelay(g,a,n)}),!1!==x&&(y+=w)}}}},e.prototype.evalSegmentOptions=function(t,e,o){var r=o.series;on(t,{value:e,series:r,dataItem:o.dataItem,category:o.category,percentage:o.percentage},{defaults:r._defaults,excluded:["data","content","template","visual","toggle"]})},e.prototype.addValue=function(t,e,o){var r=X({},o.series,{index:o.index});if(this.evalSegmentOptions(r,t,o),this.createLegendItem(t,r,o),!1!==o.visible){var i=new Ol(t,e,r);Object.assign(i,o),this.append(i),this.points.push(i)}},e.prototype.reflow=function(t){var e=this,o=e.options,r=e.points,i=e.seriesConfigs;void 0===i&&(i=[]);var n=r.length,a=t.clone(),s=Math.min(a.width(),a.height()),l=s/2,p=s-.85*s,c=new ie(a.x1,a.y1,a.x1+s,a.y1+s),h=c.center(),u=a.center(),f=o.series.length,d=[],v=[],y=Lt(o.padding,p);this.targetBox=t,y=y>l-5?l-5:y,c.translate(u.x-h.x,u.y-h.y);for(var g=l-y,m=new ee(g+c.x1+y,g+c.y1+y),b=0;b<n;b++){var _=r[b],x=_.sector,w=_.seriesIx;if(x.radius=g,x.center=m,i.length){var O=i[w];x.innerRadius=O.innerRadius,x.radius=O.radius}w===f-1&&_.explode&&(x.center=x.clone().setRadius(.15*x.radius).point(x.middle())),_.reflow(c);var S=_.label;S&&S.options.position===Yi&&w===f-1&&(S.orientation===C?v.push(S):d.push(S))}d.length>0&&(d.sort(this.labelComparator(!0)),this.leftLabelsReflow(d)),v.length>0&&(v.sort(this.labelComparator(!1)),this.rightLabelsReflow(v)),this.box=c},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=kt(this.points),o=e.sector,r=t.length-1,i=o.radius+e.options.labels.distance,n=[],a=t[0].box,s=Mt(a.y1-(o.center.y-i-a.height()-a.height()/2));n.push(s);for(var l=0;l<r;l++){var p=t[l+1].box;a=t[l].box,s=Mt(p.y1-a.y2),n.push(s)}return s=Mt(o.center.y+i-t[r].box.y2-t[r].box.height()/2),n.push(s),n},e.prototype.distributeLabels=function(t,e){for(var o,r,i,n=t.length,a=0;a<n;a++)for(i=-t[a],o=r=a;i>0&&(o>=0||r<n);)i=this._takeDistance(t,a,--o,i),i=this._takeDistance(t,a,++r,i);this.reflowLabels(t,e)},e.prototype._takeDistance=function(t,e,o,r){var i=r;if(t[o]>0){var n=Math.min(t[o],i);i-=n,t[o]-=n,t[e]+=n}return i},e.prototype.reflowLabels=function(t,e){var o,r=kt(this.points),i=r.sector,n=r.options.labels,a=e.length,s=n.distance,p=i.center.y-(i.radius+s)-e[0].box.height();t[0]+=2;for(var c=0;c<a;c++){var h=e[c],u=h.box;p+=t[c],o=this.hAlignLabel(u.x2,i.clone().expand(s),p,p+u.height(),h.orientation===C),h.orientation===C?(n.align!==l&&(o=i.radius+i.center.x+s),h.reflow(new ie(o+u.width(),p,o,p))):(n.align!==l&&(o=i.center.x-i.radius-s),h.reflow(new ie(o-u.width(),p,o,p))),p+=u.height()}},e.prototype.createVisual=function(){var e=this,o=this.options.connectors,r=this.points,i=r.length;t.prototype.createVisual.call(this),this._connectorLines=[];for(var n=0;n<i;n++){var a=r[n],s=a.sector,l=a.label,p=s.middle(),c=(a.options.connectors||{}).color||o.color;if(l){var h=new D.drawing.Path({stroke:{color:c,width:o.width},animation:{type:zr,delay:a.animationDelay}});if(l.options.position===Yi){var u=l.box,f=s.center,d=s.point(p),v=new ee(u.x1,u.center().y),y=void 0,g=void 0,m=void 0;d=s.clone().expand(o.padding).point(p),h.moveTo(d.x,d.y),l.orientation===C?(m=Al(f,d,v,g=new ee(u.x1-o.padding,u.center().y)),v=new ee(g.x-4,g.y),(m=m||v).x=Math.min(m.x,v.x),e.pointInCircle(m,s.center,s.radius+4)||m.x<s.center.x?(y=s.center.x+s.radius+4,a.options.labels.align!==oi?y<v.x?h.lineTo(y,d.y):h.lineTo(d.x+8,d.y):h.lineTo(y,d.y),h.lineTo(v.x,g.y)):(m.y=g.y,h.lineTo(m.x,m.y))):(m=Al(f,d,v,g=new ee(u.x2+o.padding,u.center().y)),v=new ee(g.x+4,g.y),(m=m||v).x=Math.max(m.x,v.x),e.pointInCircle(m,s.center,s.radius+4)||m.x>s.center.x?(y=s.center.x-s.radius-4,a.options.labels.align!==oi?y>v.x?h.lineTo(y,d.y):h.lineTo(d.x-8,d.y):h.lineTo(y,d.y),h.lineTo(v.x,g.y)):(m.y=g.y,h.lineTo(m.x,m.y))),h.lineTo(g.x,g.y),e._connectorLines.push(h),e.visual.append(h)}}}},e.prototype.renderVisual=function(){if(t.prototype.renderVisual.call(this),zt(this.options.series,(function(t){return t.autoFit}))){var e=this.targetBox,o=this.box.center(),r=this.visual.bbox();if(!r)return;var i=r.bottomRight(),n=Math.min((o.y-e.y1)/(o.y-r.origin.y),(e.y2-o.y)/(i.y-o.y),(o.x-e.x1)/(o.x-r.origin.x),(e.x2-o.x)/(i.x-o.x));n<1&&this.visual.transform(D.geometry.transform().scale(n,n,[o.x,o.y]))}},e.prototype.labelComparator=function(t){var e=t?-1:1;return function(t,o){return((t.parent.sector.middle()+270)%360-(o.parent.sector.middle()+270)%360)*e}},e.prototype.hAlignLabel=function(t,e,o,r,i){var n=e.radius,a=e.center,s=a.x,l=a.y,p=Math.min(Math.abs(l-o),Math.abs(l-r));return p>n?t:s+Math.sqrt(n*n-p*p)*(i?1:-1)},e.prototype.pointInCircle=function(t,e,o){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<Math.pow(o,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}(fe);function Al(t,e,o,r){var i,n=(r.x-o.x)*(t.y-o.y)-(r.y-o.y)*(t.x-o.x),a=(r.y-o.y)*(e.x-t.x)-(r.x-o.x)*(e.y-t.y);if(0!==a){var s=n/a;i=new ee(t.x+s*(e.x-t.x),t.y+s*(e.y-t.y))}return i}Bt(Pl,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),X(Pl.prototype,Sl),Pl.prototype.isStackRoot=!0;const kl=Pl;var 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.render=function(){this.createPieChart(this.series)},e.prototype.createPieChart=function(t){var e=t[0],o=new kl(this,{series:t,padding:e.padding,startAngle:e.startAngle,connectors:e.connectors,legend:this.options.legend});this.appendChart(o)},e.prototype.appendChart=function(e,o){t.prototype.appendChart.call(this,e,o),bt(this.options.legend.items,e.legendItems)},e}($a);const jl=Tl;var El=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,o=this.label,r=this.sector.clone(),i=r.middle();if(o){var n=o.box.height();if(e.position===s){r.radius-=(r.radius-r.innerRadius)/2;var a=r.point(i);o.reflow(new ie(a.x,a.y-n/2,a.x,a.y))}else t.prototype.reflowLabel.call(this)}},e.prototype.createSegment=function(t,e){return he.current.createRing(t,e)},e}(Ol);Bt(El,{overlay:{gradient:"roundedGlass"},labels:{position:s},animation:{type:pi}}),X(El.prototype,ln);const Ml=El;var Il=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,o){var r=X({},o.series,{index:o.index});if(this.evalSegmentOptions(r,t,o),this.createLegendItem(t,r,o),!1!==o.visible){var i=new Ml(t,e,r);Object.assign(i,o),this.append(i),this.points.push(i)}},e.prototype.reflow=function(e){for(var o,r=this.options,i=e.clone(),n=Math.min(i.width(),i.height()),a=n/2,s=n-.85*n,l=r.series,p=l.length,c=Lt(r.padding,s),h=a-(c=c>a-5?a-5:c),u=0,f=0;f<p;f++){var d=l[f];0===f&&xt(d.holeSize)&&(o=d.holeSize,h-=d.holeSize),xt(d.size)?h-=d.size:u++,xt(d.margin)&&f!==p-1&&(h-=d.margin)}xt(o)||(h-=o=(a-c)/(p+.75)*.75);var v,y=o,g=0;this.seriesConfigs=[];for(var m=0;m<p;m++){var b=l[m];v=(y+=g)+Lt(b.size,h/u),this.seriesConfigs.push({innerRadius:y,radius:v}),g=b.margin||0,y=v}t.prototype.reflow.call(this,e)},e.prototype.animationDelay=function(t,e,o){return 50*t+Nr*(e+1)/(o+1)},e}(kl);Bt(Il,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}});const Ll=Il;var 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.render=function(){this.createDonutChart(this.series)},e.prototype.createDonutChart=function(t){var e=t[0],o=new Ll(this,{series:t,padding:e.padding,connectors:e.connectors,legend:this.options.legend});this.appendChart(o)},e}(jl);const Dl=Rl;var Bl=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 Nn},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(),o=t.options.reverse?e.max:e.min,r=t.getSlot(o),i=this.polarAxis.getSlot(0).center,n=t.box.translate(i.x-r.x1,i.y-r.y1);t.reflow(n)},e.prototype.createValueAxis=function(){var t,e,o=this.valueAxisRangeTracker,r=o.query(),i=this.valueAxisOptions({roundToMajorUnit:!1,zIndex:-1});i.type===Wi?(t=br,e={min:.1,max:1}):(t=gr,e={min:0,max:1});var n=o.query(name)||r||e;n&&r&&(n.min=Math.min(n.min,r.min),n.max=Math.max(n.max,r.max));var a=new t(n.min,n.max,i,this.chartService);this.valueAxis=a,this.appendAxis(a)},e.prototype.reflowAxes=function(){var t=this,e=t.options.plotArea,o=t.valueAxis,r=t.polarAxis,i=t.box,n=.15*Math.min(i.width(),i.height()),a=$(e.padding||{},n),l=i.clone().unpad(a),p=l.clone();p.y2=p.y1+Math.min(p.width(),p.height()),p.align(l,E,s);var c=p.clone().shrink(0,p.height()/2);r.reflow(p),o.reflow(c);var h=o.lineBox().height()-o.box.height();o.reflow(o.box.unpad({top:h})),this.axisBox=p,this.alignAxes(p)},e.prototype.backgroundBox=function(){return this.box},e.prototype.detachLabels=function(){},e}($a);const Nl=Bl;var 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.pointSlot=function(t,e){var o=t.center.y-e.y1,r=ee.onCircle(t.center,t.startAngle,o);return new ie(r.x,r.y,r.x,r.y)},e}(fa);Bt(zl,{clip:!1});const Vl=zl;var Hl=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}(gl);Hl.prototype.pointSlot=Vl.prototype.pointSlot,Bt(Hl,{clip:!1});const Ul=Hl;var 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.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(),o=new xr(!1),r=this.points();r.push(e),(t=this._strokeSegments=o.process(r)).pop()}return t},e}(Ln);const Gl=Fl;var 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.fillToAxes=function(t){var e=this.parent.plotArea.polarAxis.box.center(),o=new D.geometry.Segment([e.x,e.y]);t.segments.unshift(o),t.segments.push(o)},e}(jn);const Xl=Wl;var Kl=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,o){return(e.line||{}).style===Yr?new Gl(t,e,o):new Xl(t,e,o)},e.prototype.createMissingValue=function(t,e){var o;return ha(t.x)&&e!==Wr&&(o={x:t.x,y:t.y},e===Gr&&(o.y=0)),o},e.prototype.seriesMissingValues=function(t){return t.missingValues||Gr},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(Yl),this._hasMissingValuesGap())for(var e=0;e<t.length;e++){var o=t[e];o&&(ha(o.value.y)||"gap"!==this.seriesMissingValues(o.series)||delete t[e])}return t},e}(Ul);function Yl(t,e){return t.value.x-e.value.x}const ql=Kl;var 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.createPolarAxis=function(){var t=new ur(this.options.xAxis,this.chartService);this.polarAxis=t,this.axisX=t,this.appendAxis(t)},e.prototype.valueAxisOptions=function(t){return X(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),$a.prototype.appendChart.call(this,t,e)},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createLineChart(za(t,[hi]),e),this.createScatterChart(za(t,[ui]),e),this.createAreaChart(za(t,[ci]),e)},e.prototype.createLineChart=function(t,e){if(0!==t.length){var o=new Ul(this,{series:t});this.appendChart(o,e)}},e.prototype.createScatterChart=function(t,e){if(0!==t.length){var o=new Vl(this,{series:t});this.appendChart(o,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var o=new ql(this,{series:t});this.appendChart(o,e)}},e.prototype._dispatchEvent=function(t,e,o){var r=t._eventCoordinates(e),i=new ee(r.x,r.y),n=this.axisX.getValue(i),a=this.axisY.getValue(i);null!==n&&null!==a&&t.trigger(o,{element:Pt(e),x:n,y:a})},e.prototype.createCrosshairs=function(){},e}(Nl);Bt(Zl,{xAxis:{},yAxis:{}}),X(Zl.prototype,ts);const Ql=Zl;var $l=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 o=t.center.y-e.y1,r=ee.onCircle(t.center,t.middle(),o);return new ie(r.x,r.y,r.x,r.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=[],o=0;o<t.length;o++){var r=t[o];e[r.seriesIx]=e[r.seriesIx]||[],e[r.seriesIx].push(r)}return e}(this._segments),o=0;o<e.length;o++){var r=e[o];if(r&&r.length>1){var i=r[0].linePoints[0],n=kt(r),a=kt(n.linePoints),s=0===i.categoryIx,l=a.categoryIx===a.categoriesCount-1;s&&l&&kt(r).linePoints.push(i)}}},e.prototype.createSegment=function(t,e,o){var r=new(e.style===Yr?_n:fn)(t,e,o),i=this.seriesMissingValues(e);return t.length!==e.data.length&&i!==Wr||(r.options.closed=!0),r},e}(kn);Bt($l,{clip:!1,limitPoints:!1});const Jl=$l;var tp=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}(Ln);const ep=tp;var op=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}(jn);const rp=op;var ip=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,o,r){var i,n,a,s=this.options.isStacked,l=(e.line||{}).style;return s&&o>0&&r&&(n=r.linePoints.slice(0),i=r),l===Yr?(a=new ep(t,e,o,i,n)).options.closed=!0:(t.push(t[0]),a=new rp(t,e,o,i,n)),a},e.prototype.seriesMissingValues=function(t){return t.missingValues||Gr},e}(Jl);const np=ip;var ap=function(t){function e(e,o){t.call(this,e,null,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ml);Bt(ap,{overlay:{gradient:"none"},labels:{distance:10}});const sp=ap;var lp=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Wn:Gn}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,o=this.children,r=e.gap,i=e.spacing,n=o.length,a=n+r+i*(n-1),s=t.angle/a,l=t.startAngle+s*(r/2);this.forEach(o,(function(e){var o=t.clone();o.startAngle=l,o.angle=s,e.sector&&(o.radius=e.sector.radius),e.reflow(o),e.sector=o,l+=s+s*i}))},e}(fe);Bt(lp,{gap:1,spacing:0});const pp=lp;var 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.reflow=function(t){var e=this.options.reverse,o=this.children,r=o.length,i=e?r-1:0,n=e?-1:1;this.box=new ie;for(var a=i;a>=0&&a<r;a+=n){var s=o[a].sector;s.startAngle=t.startAngle,s.angle=t.angle}},e}(fe);const hp=cp;var up=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 sp},e.prototype.clusterType=function(){return pp},e.prototype.stackType=function(){return hp},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.pointSlot=function(t,e){var o=t.clone(),r=t.center.y;return o.radius=r-e.y1,o.innerRadius=r-e.y2,o},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}(Qn);up.prototype.reflow=an.prototype.reflow,Bt(up,{clip:!1,limitPoints:!1,animation:{type:"pie"}});const fp=up;var 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.createPolarAxis=function(){var t=new cr(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&&X(t,{majorGridLines:{type:i},minorGridLines:{type:i}}),this._isStacked100&&X(t,{roundToMajorUnit:!1,labels:{format:"P0"}}),X(t,this.options.valueAxis)},e.prototype.aggregateCategories=function(){Rs.prototype.aggregateCategories.call(this,this.panes)},e.prototype.createCategoryAxesLabels=function(){Rs.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(za(t,[fi]),e),this.createLineChart(za(t,[vi]),e),this.createBarChart(za(t,[di]),e)},e.prototype.chartOptions=function(t){var e={series:t},o=t[0];if(o){var r=this.filterVisibleSeries(t),i=o.stack;e.isStacked=i&&r.length>1,e.isStacked100=i&&"100%"===i.type&&r.length>1,e.isStacked100&&(this._isStacked100=!0)}return e},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var o=new np(this,this.chartOptions(t));this.appendChart(o,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var o=new Jl(this,this.chartOptions(t));this.appendChart(o,e)}},e.prototype.createBarChart=function(t,e){if(0!==t.length){var o=t[0],r=this.chartOptions(t);r.gap=o.gap,r.spacing=o.spacing;var i=new fp(this,r);this.appendChart(i,e),this._hasBarCharts=!0}},e.prototype.seriesCategoryAxis=function(){return this.categoryAxis},e.prototype._dispatchEvent=function(t,e,o){var r=t._eventCoordinates(e),i=new ee(r.x,r.y),n=this.categoryAxis.getCategory(i),a=this.valueAxis.getValue(i);null!==n&&null!==a&&t.trigger(o,{element:Pt(e),category:n,value:a})},e.prototype.createCrosshairs=function(){},e}(Nl);X(dp.prototype,ts,{appendChart:Rs.prototype.appendChart,aggregateSeries:Rs.prototype.aggregateSeries,seriesSourcePoints:Rs.prototype.seriesSourcePoints}),Bt(dp,{categoryAxis:{categories:[]},valueAxis:{}});const vp=dp;var yp=function(t){function e(e,o,r){t.call(this,o),this.value=e,this.options.index=r.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,o=this.children[0];this.box=new ie(e[0].x,e[0].y,e[1].x,e[2].y),o&&o.reflow(new ie(t.x1,e[0].y,t.x2,e[2].y))},e.prototype.createVisual=function(){var e,o=this,r=this.options;t.prototype.createVisual.call(this),(e=r.visual?r.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:r,sender:this.getSender(),createVisual:function(){return o.createPath()}}):this.createPath())&&this.visual.append(e)},e.prototype.createPath=function(){var t=this.options,e=t.border;return D.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 D.drawing.Path.fromPoints(this.points,t)},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=D.drawing.Path.fromPoints(this.points).close();return{options:this.options,path:t}},e.prototype.tooltipAnchor=function(){var t=this.box;return{point:new ee(t.center().x,t.y1),align:{horizontal:"center",vertical:"top"}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(fe);Bt(yp,{color:k,border:{width:1}}),X(yp.prototype,ln);const gp=yp;var mp=function(t){function e(e,o){t.call(this,o),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,e=this.options,o=this.plotArea.options.seriesColors;void 0===o&&(o=[]);var r=e.series[0],i=r.data;if(i)for(var n=Ba(r),a=n.total,s=n.points,l=0;l<s.length;l++){var p=s[l];if(p){var c=p.fields;U(r.color)||(r.color=c.color||o[l%o.length]),c=X({index:l,owner:t,series:r,dataItem:i[l],percentage:p.value/a},c,{visible:p.visible});var h=p.valueFields.value,u=t.createSegment(h,c),f=t.createLabel(h,c);u&&f&&u.append(f)}}},e.prototype.evalSegmentOptions=function(t,e,o){var r=o.series;on(t,{value:e,series:r,dataItem:o.dataItem,index:o.index},{defaults:r._defaults,excluded:["data","content","template","toggle","visual"]})},e.prototype.createSegment=function(t,e){var o=X({},e.series);if(this.evalSegmentOptions(o,t,e),this.createLegendItem(t,o,e),!1!==e.visible){var r=new gp(t,o,e);return Object.assign(r,e),this.append(r),this.points.push(r),r}},e.prototype.createLabel=function(t,e){var o=e.series,r=e.dataItem,i=X({},this.options.labels,o.labels),n=t;if(i.visible){var a=ot(i),s={dataItem:r,value:t,percentage:e.percentage,category:e.category,series:o};a?n=a(s):i.format&&(n=this.plotArea.chartService.format.auto(i.format,n)),i.color||(i.color=Gt(o.color),i.background||(i.background=o.color)),this.evalSegmentOptions(i,t,e);var l=new Ee(n,X({vAlign:i.position},i),s);return this.labels.push(l),l}},e.prototype.labelPadding=function(){for(var t=this.labels,e={left:0,right:0},o=0;o<t.length;o++){var r=t[o].options.align;if(r!==s){var i=t[o].box.width();r===g?e.left=Math.max(e.left,i):e.right=Math.max(e.right,i)}}return e},e.prototype.dynamicSlopeReflow=function(t,e,o){for(var r=this.options,i=this.points,n=i.length,a=i[0],s=a,l=0;l<i.length;l++)i[l].percentage>s.percentage&&(s=i[l]);for(var p=a.percentage/s.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=r.dynamicHeight?o*f:o/n,m=void 0;m=Tt(m=f?(e-p*(v/f))/2:v?0:e/2,0,e),y.push(new D.geometry.Point(t.x1+c,t.y1+h)),y.push(new D.geometry.Point(t.x1+e-c,t.y1+h)),y.push(new D.geometry.Point(t.x1+e-m,t.y1+g+h)),y.push(new D.geometry.Point(t.x1+m,t.y1+g+h)),c=m,h+=g+r.segmentSpacing,p=Tt(e-2*m,0,e)}},e.prototype.constantSlopeReflow=function(t,e,o){for(var r=this.options,i=this.points,n=i.length,a=r.neckRatio<=1,s=a?r.neckRatio*e:e,l=a?0:(e-e/r.neckRatio)/2,p=((a?e:e-2*l)-s)/2,c=0,h=0;h<n;h++){var u=i[h].points=[],f=i[h].percentage,d=r.dynamicHeight?p*f:p/n,v=r.dynamicHeight?o*f:o/n;u.push(new D.geometry.Point(t.x1+l,t.y1+c)),u.push(new D.geometry.Point(t.x1+e-l,t.y1+c)),u.push(new D.geometry.Point(t.x1+e-l-d,t.y1+v+c)),u.push(new D.geometry.Point(t.x1+l+d,t.y1+v+c)),l+=d,c+=v+r.segmentSpacing}},e.prototype.reflow=function(t){var e=this.points,o=e.length;if(o){var r=this.options,i=t.clone().unpad(this.labelPadding()),n=i.height()-r.segmentSpacing*(o-1),a=i.width();r.dynamicSlope?this.dynamicSlopeReflow(i,a,n):this.constantSlopeReflow(i,a,n);for(var s=0;s<o;s++)e[s].reflow(t)}},e}(fe);Bt(mp,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:s,position:s,zIndex:1}}),X(mp.prototype,Sl);const bp=mp;var _p=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],o=new bp(this,{series:t,legend:this.options.legend,neckRatio:e.neckRatio,dynamicHeight:e.dynamicHeight,dynamicSlope:e.dynamicSlope,segmentSpacing:e.segmentSpacing,highlight:e.highlight});this.appendChart(o)},e.prototype.appendChart=function(e,o){t.prototype.appendChart.call(this,e,o),bt(this.options.legend.items,e.legendItems)},e}($a);const xp=_p;var wp=function(t){function e(e,o){t.call(this),this.options=o,this.color=o.color||k,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,o=this.pointData(),r=ot(t),i=t.color;e=r?r(o):this.formatValue(t.format),i||(i=Gt(this.color)),this.label=new Ee(e,X({align:s,vAlign:s,margin:{left:5,right:5},zIndex:Lt(t.zIndex,this.series.zIndex)},t,{color:i}),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;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,o=this.box.toRect(),r=Lt(t.type,"rect")===O,i=Lt(e.width,r?1:0),n=Math.round(i/2);if(t.size){var a=o.center();o.size.width=o.size.height=t.size,o.origin.x=Math.round(a.x-o.size.width/2),o.origin.y=Math.round(a.y-o.size.height/2)}return o.size.width-=i,o.size.height-=i,o.origin.y+=n+.5,o.origin.x+=n+.5,ke(o)},e.prototype.markerBorder=function(){var t=this.options,e=t.markers.border,o=Lt(e.opacity,t.opacity);return{color:e.color||this.color,width:e.width,opacity:o,dashType:e.dashType}},e.prototype.createMarker=function(){var t=this.options,e=t.markers,o=new ge({type:Lt(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:Lt(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=o,this.append(o)},e.prototype.createHighlight=function(t){var e=this.options,o=this.options.highlight.markers||this.options.markers,r=new ge({type:Lt(o.type,"rect"),width:o.size,height:o.size,rotation:o.rotation,background:o.color||this.color,border:this.markerBorder(),borderRadius:o.borderRadius,opacity:this.series.opacity||e.opacity,zIndex:Lt(e.zIndex,this.series.zIndex)});r.reflow(this.markerBox());var i=r.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 ee(t,e),align:{horizontal:s,vertical:a}}},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}(fe);X(wp.prototype,ln),X(wp.prototype,pn),wp.prototype.defaults={markers:{type:"rect",borderRadius:4,border:{color:"transparent"}},padding:{top:1},labels:{visible:!1,padding:3},opacity:1,notes:{label:{}}};const Cp=wp;var Op=function(t){function e(e,o){t.call(this,o),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:m,max:b},this._evalSeries=[]},e.prototype.render=function(){this.setRange(),this.traverseDataPoints(this.addValue.bind(this))},e.prototype.setRange=function(){for(var t=this,e=this.options.series,o=0;o<e.length;o++)for(var r=e[o],i=0;i<r.data.length;i++){var n=t._bindPoint(r,o,i).valueFields;xt(n.value)&&null!==n.value&&(t.valueRange.min=Math.min(t.valueRange.min,n.value),t.valueRange.max=Math.max(t.valueRange.max,n.value))}},e.prototype.addValue=function(t,e){var o;t&&xt(t.value)&&null!==t.value&&(o=this.createPoint(t,e))&&Object.assign(o,e),this.points.push(o)},e.prototype.evalPointOptions=function(t,e,o){var r=o.series,i=o.seriesIx,n={defaults:r._defaults,excluded:["data","tooltip","content","template","visual","toggle","drilldownSeriesFactory"]},a=this._evalSeries[i];xt(a)||(this._evalSeries[i]=a=on(t,{},n,!0));var s=t;return a&&on(s=X({},t),{value:e,series:r,dataItem:o.dataItem,min:this.valueRange.min,max:this.valueRange.max},n),s},e.prototype.pointType=function(){return Cp},e.prototype.pointOptions=function(t,e){var o=this.seriesOptions[e];if(!o){var r=this.pointType().prototype.defaults;this.seriesOptions[e]=o=X({},r,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return o},e.prototype.createPoint=function(t,e){var o=e.series,r=this.pointOptions(o,e.seriesIx),i=e.color||o.color;r=this.evalPointOptions(r,t,e),U(o.color)?i=r.color:0!==this.valueRange.max&&(i=function(t,e){void 0===e&&(e=.05);var o=(0,D.parseColor)(t),r=1-e;return function(t){var e=o.toHSL(),i=100-e.l,n=r-t;return e.l+=Math.min(n*i,i),e.toCss()}}(i)(t.value/this.valueRange.max));var n=new Cp(t,r);return n.color=i,this.append(n),n},e.prototype.seriesAxes=function(t){var e=t.xAxis,o=t.yAxis,r=this.plotArea,i=e?r.namedXAxes[e]:r.axisX,n=o?r.namedYAxes[o]:r.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 "+o);return{xAxis:i,yAxis:n}},e.prototype.reflow=function(t){var e=this,o=this.points,r=!this.options.clip,i=0;this.traverseDataPoints((function(t,n){var a=o[i++],s=e.seriesAxes(n.series),l=s.xAxis,p=s.yAxis,c=l.categoryIndex(t.x),h=p.categoryIndex(t.y),u=l.getSlot(c,c,r),f=p.getSlot(h,h,r);if(a)if(u&&f){var d=e.pointSlot(u,f);a.reflow(d)}else a.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new ie(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this,o=this.options.series,r=0;r<o.length;r++)for(var i=o[r],n=e.seriesAxes(i),a=n.xAxis,s=n.yAxis,l=a.currentRangeIndices(),p=s.currentRangeIndices(),c=0;c<i.data.length;c++){var h=e._bindPoint(i,r,c),u=h.valueFields,f=h.fields,d=a.totalIndex(u.x),v=s.totalIndex(u.y),y=l.min<=d&&d<=l.max,g=p.min<=v&&v<=p.max;y&&g&&t(u,X({pointIx:c,series:i,seriesIx:r,dataItem:i.data[c],owner:e},f))}},e.prototype.formatPointValue=function(t,e){var o=t.value;return this.chartService.format.auto(e,o.x,o.y,o.value)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],o=0;o<t.length;o++)e.push((t[o]||{}).marker);return e},e}(fe);Bt(Op,{series:[],tooltip:{format:"{0}, {1}: {2}"},labels:{format:"{2}"},clip:!0}),X(Op.prototype,{_bindPoint:an.prototype._bindPoint});const Sp=Op;var 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.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 o=t[e],r=o.data||[],i=this.seriesAxes(o),n=i.xAxis,a=i.yAxis,s=Qt(n.categories||[]),l=Qt(a.categories||[]),p=0;p<r.length;p++){var c=Ir.current.bindPoint(o,p).valueFields,h=c.x,u=c.y;s.has(h)||s.add(h),l.has(u)||l.add(u)}n.categories=s.values(),a.categories=l.values()}},e.prototype.createCharts=function(t){for(var e=this,o=this.groupSeriesByPane(),r=0;r<t.length;r++){var i=t[r],n=o[i.options.name||"default"]||[];e.addToLegend(n);var a=e.filterVisibleSeries(n);a&&e.createHeatmapChart(za(a,[ni]),i)}},e.prototype.createHeatmapChart=function(t,e){var o=new Sp(this,{series:t});this.appendChart(o,e)},e.prototype.seriesPaneName=function(t){var e=this.options,o=t.xAxis,r=at([].concat(e.xAxis),(function(t){return t.name===o}))[0],i=t.yAxis,n=at([].concat(e.yAxis),(function(t){return t.name===i}))[0],a=(e.panes||[{}])[0].name||"default";return(r||{}).pane||(n||{}).pane||a},e.prototype.seriesAxes=function(t){var e,o,r=this.options,i=[].concat(r.xAxis),n=t.xAxis;e=n?i.find((function(t){return t.name===n})):i[0];var a=[].concat(r.yAxis),s=t.yAxis;if(o=s?a.find((function(t){return t.name===s})):a[0],!e)throw new Error("Unable to locate X axis with name "+n);if(!o)throw new Error("Unable to locate Y axis with name "+s);return{xAxis:e,yAxis:o}},e.prototype.createAxisLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e].createLabels()},e.prototype.createXYAxis=function(t,e,o){for(var r,i=t.name,n=e?this.namedYAxes:this.namedXAxes,a=Object.assign({axisCrossingValue:0},t,{vertical:e,reverse:e||this.chartService.rtl?!t.reverse:t.reverse,justified:!1}),s=a.categories?a.categories[0]:null,l=[a.min,a.max,s],p=this.series,c=0;c<p.length;c++){var u=p[c],f=u[e?"yAxis":"xAxis"];if(f===a.name||0===o&&!f){var d=Ir.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){r=!0;break}var y=new(Na(a.type,h)||!a.type&&r?Ko:No)(a,this.chartService);if(y.axisIndex=o,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,o=this.options,r=[].concat(o.xAxis),i=[],n=[].concat(o.yAxis),a=[],s=0;s<r.length;s++)ct(e.findPane(r[s].pane),t)&&i.push(e.createXYAxis(r[s],!1,s));for(var l=0;l<n.length;l++)ct(e.findPane(n[l].pane),t)&&a.push(e.createXYAxis(n[l],!0,l));this.axisX=this.axisX||i[0],this.axisY=this.axisY||a[0]},e.prototype.removeAxis=function(e){var o=e.options.name;t.prototype.removeAxis.call(this,e),e.options.vertical?delete this.namedYAxes[o]:delete this.namedXAxes[o],e===this.axisX&&delete this.axisX,e===this.axisY&&delete this.axisY},e.prototype._dispatchEvent=function(t,e,o){for(var r=t._eventCoordinates(e),i=new ee(r.x,r.y),n=this.axes,a=n.length,s=[],l=[],p=0;p<a;p++){var c=n[p];Ra(c.options.vertical?l:s,c.getCategory(i))}s.length>0&&l.length>0&&t.trigger(o,{element:Pt(e),originalEvent:e,x:Ua(s),y:Ua(l)})},e.prototype.updateAxisOptions=function(t,e){var o=t.options.vertical,r=this.groupAxes(this.panes),i=(o?r.y:r.x).indexOf(t);Ap(this.options,i,o,e),Ap(this.originalOptions,i,o,e)},e.prototype.crosshairOptions=function(t){return Object.assign({},t.options.crosshair,{zIndex:0})},e}($a);function Ap(t,e,o,r){X([].concat(o?t.yAxis:t.xAxis)[e],r)}Bt(Pp,{xAxis:{},yAxis:{}}),X(Pp.prototype,ts);const kp=Pp;var Tp="color",jp="first",Ep="max",Mp="min",Ip="noteText";ol.current.register(Rs,[Qr,oi,si,Oi,Zr,xi,ei,li,ti,Ci,$r,wi,mi,gi,Pi,ai,yi,Si]),ol.current.register(_l,[bi,_i,Jr]),ol.current.register(jl,[pi]),ol.current.register(Dl,[ri]),ol.current.register(xp,[ii]),ol.current.register(Ql,[ci,hi,ui]),ol.current.register(vp,[fi,di,vi]),ol.current.register(kp,[ni]),Ir.current.register([Qr,oi,si,Oi,Zr,xi],[A],[Xi,Tp,Ip,Ur,Fr,Zi]),Ir.current.register([mi,gi,yi,Si],["from","to"],[Xi,Tp,Ip,Zi]),Ir.current.register([Pi,ai],[A],[Xi,Tp,Ip,"summary",Zi]),Ir.current.register([ci,hi,ui],[j,E],[Tp,Zi]),Ir.current.register([fi,di,vi],[A],[Tp,Zi]),Ir.current.register([ii],[A],[Xi,Tp,"visibleInLegend","visible",Zi]),is.current.register([Qr,oi,si,Oi,Zr,xi,Pi,ai],{value:Ep,color:jp,noteText:jp,errorLow:Mp,errorHigh:Ep}),is.current.register([mi,gi,yi,Si],{from:Mp,to:Ep,color:jp,noteText:jp}),is.current.register([fi,di,vi],{value:Ep,color:jp}),Ir.current.register([bi,_i,Jr],[j,E],[Tp,Ip,"xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Ir.current.register([Jr],[j,E,"size"],[Tp,Xi,Ip]),Ir.current.register([ni],[j,E,A],[Tp,Ip]),Ir.current.register([ei,li],["open","high","low","close"],[Xi,Tp,"downColor",Ip]),is.current.register([ei,li],{open:Ep,high:Ep,low:Mp,close:Ep,color:jp,downColor:jp,noteText:jp}),Ir.current.register([$r,wi],["lower","q1","median","q3","upper","mean","outliers"],[Xi,Tp,Ip,Zi]),is.current.register([$r,wi],{lower:Ep,q1:Ep,median:Ep,q3:Ep,upper:Ep,mean:Ep,outliers:jp,color:jp,noteText:jp}),Ir.current.register([ti,Ci],["current","target"],[Xi,Tp,"visibleInLegend",Ip,Zi]),is.current.register([ti,Ci],{current:Ep,target:Ep,color:jp,noteText:jp}),Ir.current.register([pi,ri],[A],[Xi,Tp,"explode","visibleInLegend","visible",Zi]);var Lp=[Xi,A,j,E],Rp="mousemove",Dp="contextmenu",Bp="mouseleave",Np=function(t){function e(e,o,r,i){var n=this;void 0===i&&(i={}),t.call(this),this.observers=[],this.addObserver(i.observer),this.chartService=new qe(this,i),this.chartService.theme=r,this._initElement(e);var a=X({},this.options,o);this._originalOptions=X({},a),this._theme=r,this._initTheme(a,r),this._initHandlers(),this._initSurface(),this.bindCategories(),Dt.preloadFonts(o,(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){I(t,"k-chart")},e.prototype._initTheme=function(t,e){for(var o=[],r=t.series||[],i=0;i<r.length;i++)o.push(Object.assign({},r[i]));t.series=o,function(t){for(var e=Lp,o=0;o<e.length;o++){var r=e[o]+"Axes";t[r]&&(t[e[o]+"Axis"]=t[r],delete t[r])}}(t),this.applyDefaults(t,e),null===t.seriesColors&&delete t.seriesColors,this.options=X({},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(),o=this._size,r=e.width>0||e.height>0;t||r&&(!o||e.width!==o.width||e.height!==o.height)?(this._size=e,this._resize(e,t),this.trigger("resize",e)):r&&this._selections&&zt(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,o=e.findPane(t);e.redraw(o)}else this._redraw()},e.prototype.getAxis=function(t){return Or(t,this._plotArea.axes)},e.prototype.findAxisByName=function(t){return this.getAxis(t)},e.prototype.findPaneByName=function(t){for(var e=this._plotArea.panes,o=0;o<e.length;o++)if(e[o].options.name===t)return new Pr(e[o])},e.prototype.findPaneByIndex=function(t){var e=this._plotArea.panes;if(e[t])return new Pr(e[t])},e.prototype.plotArea=function(){return new Ar(this._plotArea)},e.prototype.toggleHighlight=function(t,e){var o,r,i,n=this._plotArea,a=(n.srcSeries||n.series||[])[0];U(e)?o=n.filterPoints(e):(K(e)?(r=e.series,i=e.category):r=i=e,o=a.type===ri?zp(n.pointsBySeriesName(r),i):a.type===pi||a.type===ii?zp((n.charts[0]||{}).points,i):n.pointsBySeriesName(r)),o&&this.togglePointsHighlight(t,o)},e.prototype.togglePointsHighlight=function(t,e){for(var o=this._highlight,r=0;r<e.length;r++)o.togglePointHighlight(e[r],t)},e.prototype.showTooltip=function(t){var e,o,r=this._sharedTooltip(),i=this._tooltip,n=this._plotArea;if(U(t)?(e=n.findPoint(t))&&r&&(o=e.categoryIx):r&&xt(t)&&(o=n.categoryAxis.categoryIndex(t)),r){if(o>=0){var a=this._plotArea.pointsByCategoryIndex(o);i.showAt(a)}}else e&&i.show(e)},e.prototype.hideTooltip=function(){this._tooltip.hide()},e.prototype._initSurface=function(){var t=this.surface,e=this._surfaceWrap(),o=this.options.chartArea||{};o.width&&Ot(e,{width:o.width}),o.height&&Ot(e,{height:o.height}),t&&t.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=D.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 Ns,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),Gp(this._plotArea.panes),this._navState||this._cancelDomEvents()},e.prototype.exportVisual=function(t){var e;if(t&&(t.width||t.height||t.options)){var o=this.options,r=X({},t.options,{chartArea:{width:t.width,height:t.height}});Fp(this._originalOptions,r),this.options=X({},this._originalOptions,r),this._initTheme(this.options,this._theme),this.bindCategories();var i=this._getModel();i.renderVisual(),Gp(i._plotArea.panes),e=i.visual,this.options=o}else e=this.surface.exportVisual();return e},e.prototype._sharedTooltip=function(){return this._plotArea instanceof Rs&&this.options.tooltip&&this.options.tooltip.shared},e.prototype._createPannable=function(){var t=this.options;!1!==t.pannable&&(this._pannable=new Us(this._plotArea,t.pannable))},e.prototype._createZoomSelection=function(){var t=this.options.zoomable,e=(t||{}).selection;!1!==t&&!1!==e&&(this._zoomSelection=new Gs(this,e))},e.prototype._createMousewheelZoom=function(){var t=this.options.zoomable,e=(t||{}).mousewheel;!1!==t&&!1!==e&&(this._mousewheelZoom=new Xs(this,e))},e.prototype._toggleDragZoomEvents=function(){var t=this.options.pannable,e=this.options.zoomable,o=(e||{}).selection,r=(e||{}).mousewheel,i=!(t||!1!==e&&!1!==o||this.requiresHandlers([Di,Li,Ri])),n=(!1===e||!1===r)&&!this.requiresHandlers([Bi,Ni,zi]),a=this.element;this._dragZoomEnabled&&i&&n?(a.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):this._dragZoomEnabled||i&&n||(a.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!i,!n)},e.prototype._toggleDomEvents=function(t,e){var o=this.domEvents;o&&(o.toggleDrag&&o.toggleDrag(t),o.toggleZoom&&o.toggleZoom(e))},e.prototype._createTooltip=function(){var t=this.options.tooltip;return this._sharedTooltip()?this._createSharedTooltip(t):new ll(this.chartService,t)},e.prototype._createSharedTooltip=function(t){return new cl(this._plotArea,t)},e.prototype.applyDefaults=function(t,e){!function(t,e){var o,r,i,n=(e||{}).axisDefaults||{};function a(t){var e=(t||{}).color||r.color,i=X({},n,n[o],r,r[o],{line:{color:e},labels:{color:e},title:{color:e}},t);return delete i[o],i}for(var s=0;s<Lp.length;s++)o=Lp[s]+"Axis",r=t.axisDefaults||{},i=(i=[].concat(t[o])).map(a),t[o]=i.length>1?i:i[0]}(t,e),function(t,e){var o=t.series,r=o.length,i=t.seriesDefaults,n=X({},t.seriesDefaults),a=e?X({},e.seriesDefaults):{},s=X({},a);Vp(n),Vp(s);for(var l=0;l<r;l++){var p=o[l].type||t.seriesDefaults.type,c=X({data:[]},s,a[p],{tooltip:t.tooltip},n,i[p]);o[l]._defaults=c,o[l]=X({},c,o[l]),o[l].data=o[l].data||[]}}(t,e)},e.prototype.applySeriesColors=function(){for(var t=this.options,e=t.series,o=t.seriesColors||[],r=0;r<e.length;r++){var i=e[r],n=o[r%o.length],a=i._defaults;i.color=i.color||n,a&&(a.color=a.color||n)}},e.prototype._getModel=function(){var t=this.options,e=this._createPlotArea(),o=new we(this._modelOptions());o.chart=this,o._plotArea=e;var r=Le.buildTitle(t.title),i=Le.buildTitle(t.subtitle,{align:t.title.align,position:t.title.position});return o.append.apply(o,Le.orderTitles([r,i])),t.legend&&t.legend.visible&&o.append(new tl(e.options.legend,this.chartService)),o.append(e),o.reflow(),o},e.prototype._modelOptions=function(){var t=this.options,e=this.getSize();return X({transitions:t.transitions,width:e.width||600,height:e.height||400},t.chartArea)},e.prototype._createPlotArea=function(t){var e=this.options;return ol.current.create(t?[]:e.series,e,this.chartService)},e.prototype._setupSelection=function(){for(var t=this._plotArea.axes,e=this._selections=[],o=0;o<t.length;o++){var r=t[o],i=r.options;if(r instanceof No&&i.select&&!i.vertical){var n=r.range(),a=new al(this,r,X({min:n.min,max:n.max},i.select));e.push(a)}}},e.prototype._selectStart=function(t){return this.trigger(Vi,t)},e.prototype._select=function(t){return this.trigger(Hi,t)},e.prototype._selectEnd=function(t){return this.trigger(Ui,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=(0,D.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,o=0;o<e.length;o++)if(e[o].requiresHandlers(t))return!0},e.prototype.trigger=function(t,e){void 0===e&&(e={}),e.sender=this,t===Fi?e.anchor.point=this._toDocumentCoordinates(e.anchor.point):t===ji?this._updateDrilldownPoint(e.point):t===Ei?this._resetDrilldownPoint():t===ki&&this._startDrilldown(e.point);for(var o=this.observers,r=!1,i=0;i<o.length;i++)o[i].trigger(t,e)&&(r=!0);return r},e.prototype._attachEvents=function(){var t,e,o=this.element;this._touchAction=o.style.touchAction,_t(o,((t={})[Dp]=this._clickHandler,t[qi]=this._mousewheelHandler,t[Bp]=this._mouseleaveHandler,t)),this._shouldAttachMouseMove()&&_t(o,((e={})[Rp]=this._mousemove,e)),this.domEvents=$e.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._plotAreaHovered&&(this._plotAreaHovered=!1,this.trigger(Ii))},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(zi,{}))},e.prototype._gesturechange=function(t){var e=this._mousewheelZoom;if(e&&!this._stopChartHandlers(t)){t.preventDefault();var o=this._gestureDistance,r=-t.distance/o+1;if(Math.abs(r)>=.1){r=Math.round(10*r),this._gestureDistance=t.distance;var i={delta:r,axisRanges:Hp(this._plotArea.axes),originalEvent:t};if(this._zooming||!this.trigger(Bi,i)){var n=this._eventCoordinates(t);this._zooming||(this._zooming=!0),(i.axisRanges=e.updateRanges(r,n))&&!this.trigger(Ni,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([Di,Li,Ri])&&this._startNavigation(t,e,Di),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(Bi,{axisRanges:Hp(this._plotArea.axes),originalEvent:t}))},e.prototype._move=function(t){var e=this._navState,o=this._pannable;if(!this._stopChartHandlers(t)){if(o){var r=o.move(t);r&&!this.trigger(Li,{axisRanges:r,originalEvent:t})&&o.pan()}else if(e){for(var i={},n=e.axes,a=0;a<n.length;a++){var s=n[a];if(s.options.name){var l=s.options.vertical?t.y:t.x,p=l.startLocation-l.location;0!==p&&(i[s.options.name]=s.translateRange(p))}}e.axisRanges=i,this.trigger(Li,{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(Ri,{axisRanges:Hp(this._plotArea.axes),originalEvent:t}),this._suppressHover=!1,this.chartService.panning=!1):this._endNavigation(t,Ri),this._zoomSelection){var o=this._zoomSelection.end(t);o&&!this.trigger(Ni,{axisRanges:o,originalEvent:t})&&(this._zoomSelection.zoom(),this.trigger(zi,{axisRanges:o,originalEvent:t}))}}},e.prototype._stopChartHandlers=function(t){var e=this._selections||[];if(!e.length)return!1;var o=this._eventCoordinates(t),r=this._plotArea.paneByPoint(o);if(r)for(var i=0;i<e.length;i++)if(e[i].onPane(r))return!0},e.prototype._mousewheelZoomRate=function(){var t=(this.options.zoomable||{}).mousewheel||{};return Lt(t.rate,.3)},e.prototype._mousewheel=function(t){var e=this,o=gt(t),r=this._mousewheelZoom,i=this._eventCoordinates(t);if(!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(i))if(r){var n={delta:o,axisRanges:Hp(this._plotArea.axes),originalEvent:t};!this._zooming&&this.trigger(Bi,n)||(t.preventDefault(),this._zooming||(this._unsetActivePoint(),this.surface.suspendTracking(),this._zooming=!0),this._mwTimeout&&clearTimeout(this._mwTimeout),n.axisRanges=r.updateRanges(o,i),n.axisRanges&&!this.trigger(Ni,n)&&r.zoom(),this._mwTimeout=setTimeout((function(){e.trigger(zi,n),e._zooming=!1,e.surface&&e.surface.resumeTracking()}),150))}else{var a=this._navState;if(a||this._startNavigation(t,i,Bi)||(a=this._navState),a){var s=a.totalDelta||o;a.totalDelta=s+o;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(-s*e._mousewheelZoomRate(),i))}this.trigger(Ni,{delta:o,axisRanges:p,originalEvent:t}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._endNavigation(t,zi)}),150)}}},e.prototype._startNavigation=function(t,e,o){var r=this._model._plotArea,i=r.findPointPane(e),n=r.axes.slice(0);if(i){var a=Hp(n);this.trigger(o,{axisRanges:a,originalEvent:t})?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:a,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 o=this.surface.eventTarget(t);if(o)return this._drawingChartElement(o,t,e)},e.prototype._drawingChartElement=function(t,e,o){for(var r,i=t;i&&!r;)r=i.chartElement,i=i.parent;if(r)return r.aliasFor&&(r=r.aliasFor(e,this._eventCoordinates(e))),o&&(r=r.closest(o))&&r.aliasFor&&(r=r.aliasFor()),r},e.prototype._eventCoordinates=function(t){var e=St(t);return this._toModelCoordinates(e.x,e.y)},e.prototype._elementPadding=function(){if(!this._padding){var t=Q(this.element,["paddingLeft","paddingTop"]),e=t.paddingLeft,o=t.paddingTop;this._padding={top:o,left:e}}return this._padding},e.prototype._toDocumentCoordinates=function(t){var e=this._elementPadding(),o=Ct(this.element);return{left:Mt(t.x+e.left+o.left),top:Mt(t.y+e.top+o.top)}},e.prototype._toModelCoordinates=function(t,e){var o=this.element,r=Ct(o),i=this._elementPadding(),n=Ft(o).invert(),a=new D.geometry.Point(t-r.left-i.left,e-r.top-i.top).transform(n);return new ee(a.x,a.y)},e.prototype._tap=function(t){var e=this,o=this.surface.eventTarget(t),r=this._drawingChartElement(o,t),i=this._sharedTooltip();this._startHover(o,t)||i||this._unsetActivePoint(),i&&this._trackSharedTooltip(this._eventCoordinates(t),t,!0),this._propagateClick(r,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 o=t;o;)o.click&&o.click(this,e),o=o.parent},e.prototype._startHover=function(t,e){if(this._suppressHover)return!1;var o=this._drawingChartElement(t,e,(function(t){return(t.hover||t.over)&&!(t instanceof $a)}));return this._showInactiveOpacity(o,e),o},e.prototype._displayTooltip=function(t){X({},this.options.tooltip,t.options.tooltip).visible&&this._tooltip.show(t)},e.prototype._displayInactiveOpacity=function(t,e,o){var r=this._activeChartInstance=this._chartInstanceFromPoint(t);if(r)if(e)this._updateSeriesOpacity(t),this._applySeriesOpacity(r.children,null,!0),this._applySeriesOpacity(r.children,t.series),this._highlight.show(o||t);else{var i;if(!r.supportsPointInactiveOpacity())return void this._highlight.show(t);(i=this._getInactivePoints(t,r))&&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 o=[],r=0;r<t.children.length;r++){var i=t.children[r];i.constructor===e?o.push(i):i.children&&i.children.length&&(o=o.concat(this._getAllPointsOfType(i,e)))}return o},e.prototype._updateHoveredPoint=function(t,e){var o=this._hoveredPoint;o&&o!==t&&(o.out(this,e),this._hoveredPoint=null),t&&o!==t&&t.over&&(this._hoveredPoint=t,t.over(this,e))},e.prototype._updateDrilldownPoint=function(t){t&&t.series&&Ir.current.bindPoint(t.series,null,t.dataItem).fields.drilldown&&(this._drilldownState={cursor:this.element.style.cursor},this.element.style.cursor="pointer")},e.prototype._resetDrilldownPoint=function(){this._drilldownState&&(this.element.style.cursor=this._drilldownState.cursor,this._drilldownState=null)},e.prototype._startDrilldown=function(t){if(t&&t.series){var e=t.series,o=Ir.current.bindPoint(e,null,t.dataItem).fields.drilldown;if(o){var r={series:e,point:t,value:o,sender:this};this.trigger("drilldown",r)}}},e.prototype._updateSeriesOpacity=function(t,e){for(var o=this._plotArea,r=o.series.length,i=0;i<r;i++){var n=o.series[i],a=this._getDefaultOpacityForSeries(n),s=this._getInactiveOpacityForSeries(n);e||n===t.series?(n.opacity=a,n.line&&(n.line.opacity=a)):(n.defaultOpacity=a,n.opacity=s,n.line&&(n.line.opacity=s))}},e.prototype._applySeriesOpacity=function(t,e,o,r){for(var i=0;i<t.length;i++){var n=t[i],a=n.series||r;if(a&&(a.highlight||{}).visible&&n.visual){var s=r?r.opacity:n.series.opacity;(a!==e||o)&&n.visual.opacity(o?1:s)}n.children&&n.children.length&&this._applySeriesOpacity(n.children,e,o,n.series)}},e.prototype._chartInstanceFromPoint=function(t){for(var e=t.parent;e&&!e.plotArea;)e=e.parent;return e},e.prototype._showInactiveOpacity=function(t,e){var o=this._activePoint,r=this._plotArea.series.length>1,i=this._hasInactiveOpacity();return this._updateHoveredPoint(t,e),t&&o!==t&&t.hover&&(this._activePoint=t,this._sharedTooltip()||t.hover(this,e)||(this._displayTooltip(t),i?this._displayInactiveOpacity(t,r):this._highlight.show(t))),t},e.prototype._hideInactiveOpacity=function(t){var e=this._plotArea.series.length>1;this._hasInactiveOpacity()&&(e&&this._activeChartInstance&&(this._updateSeriesOpacity(t,!0),this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._activeChartInstance=null),this._highlight&&this._highlight.hide(),this._activePoint=null)},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,o=this._startHover(t.element,t.originalEvent);o&&o.tooltipTracking&&!this._mouseMoveTrackHandler&&!this._sharedTooltip()&&(this._mouseMoveTrackHandler=this._mouseMoveTracking.bind(this),_t(document,((e={})[Rp]=this._mouseMoveTrackHandler,e)))},e.prototype._mouseMoveTracking=function(t){var e,o=this,r=o.options,i=o._tooltip,n=o._highlight,a=o._activePoint,s=this._eventCoordinates(t);if(this._plotArea.box.containsPoint(s)){if(a&&a.tooltipTracking&&a.series&&a.parent.getNearestPoint){var l=a.parent.getNearestPoint(s.x,s.y,a.seriesIx);l&&l!==a&&(this._activePoint=l,l.hover(this,t)||(X({},r.tooltip,l.options.tooltip).visible&&i.show(l),n.show(l)))}}else It(document,((e={})[Rp]=this._mouseMoveTrackHandler,e)),this._unsetActivePoint(),this._mouseMoveTrackHandler=null,this._hideInactiveOpacity(a)},e.prototype._mousemove=function(t){var e=this._eventCoordinates(t),o=this._plotArea;if(this._trackCrosshairs(e),o.hover){var r=o.backgroundContainsPoint(e);r?(this._plotAreaHovered=!0,this._plotArea.hover(this,t)):this._plotAreaHovered&&!r&&(this._plotAreaHovered=!1,this.trigger(Ii))}this._sharedTooltip()&&this._trackSharedTooltip(e,t)},e.prototype._trackCrosshairs=function(t){for(var e=this._plotArea.crosshairs,o=0;o<e.length;o++){var r=e[o];r.box.containsPoint(t)?r.showAt(t):r.hide()}},e.prototype._trackSharedTooltip=function(t,e,o){if(!this._suppressHover){var r=this,i=r.options.tooltip,n=r._plotArea,a=r._plotArea.categoryAxis,s=r._tooltip,l=r._highlight;if(n.backgroundContainsPoint(t)){var p=a.pointCategoryIndex(t);if(p!==this._tooltipCategoryIx||!this._sharedHighlight&&o){var c=n.pointsByCategoryIndex(p),h=c.map((function(t){return t.eventArgs(e)})),u=h[0]||{};u.categoryPoints=h,c.length>0&&!this.trigger(Ti,u)?(i.visible&&s.showAt(c,t),l.show(c),this._sharedHighlight=!0):s.hide(),this._tooltipCategoryIx=p}else o&&this._sharedHighlight&&(l.hide(),s.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(l.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,o=this._highlight;this._activePoint=null,this._hoveredPoint=null,!e||t&&t.keepTooltipOpen||e.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1,o&&o.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),o=0;o<e.length;o++){var r=e[o];!1!==r.autoBind&&this.bindCategoryAxisFromSeries(r,o)}},e.prototype.bindCategoryAxisFromSeries=function(t,e){for(var o,r=this.options.series,i=r.length,n=new pt,a=[],s=!1,l=0;l<i;l++){var p=r[l],c=p.categoryAxis===t.name||!p.categoryAxis&&0===e,h=p.data,u=h.length,f=p.categoryField&&c;if(s=f||s,f&&u>0)for(var d=(o=Ha(t,Er(p.categoryField,h[0])))?Va:Er,v=0;v<u;v++){var y=h[v],g=d(p.categoryField,y,this.chartService.intl);!o&&n.get(g)||(a.push([g,y]),o||n.set(g,!0))}}if(a.length>0){o&&(a=function(t,e){void 0===e&&(e=Ao);for(var o=function(t,e){void 0===e&&(e=Ao);for(var o=1,r=t.length;o<r;o++)if(e(t[o],t[o-1])<0){t.sort(e);break}return t}(t,e),r=o.length,i=r>0?[o[0]]:[],n=1;n<r;n++)0!==e(o[n],kt(i))&&i.push(o[n]);return i}(a,(function(t,e){return Ao(t[0],e[0])})));var m=function(t){for(var e=t.length,o=[],r=0;r<e;r++)for(var i=t[r],n=i.length,a=0;a<n;a++)o[a]=o[a]||[],o[a].push(i[a]);return o}(a);t.categories=m[0]}else s&&(t.categories=[])},e.prototype._isBindable=function(t){for(var e=Ir.current.valueFields(t),o=!0,r=0;r<e.length;r++){var i=e[r];if(i===A?i="field":i+="Field",!xt(t[i])){o=!1;break}}return o},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 o,r=this._plotArea,i=this._highlight,n=(r.srcSeries||r.series)[t];if(o=ct(n.type,[pi,ri,ii])?r.findPoint((function(o){return o.series.index===t&&o.index===e})):r.pointsBySeriesIndex(t),this._hasInactiveOpacity()&&n.visible&&o){var a=r.series.length>1,s=o.length?o[0]:o;this._displayInactiveOpacity(s,a,o)}else i.show(o)},e.prototype._shouldAttachMouseMove=function(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers([Mi,Ii])},e.prototype.updateMouseMoveHandler=function(){var t,e;It(this.element,((t={})[Rp]=this._mousemove,t)),this._shouldAttachMouseMove()&&_t(this.element,((e={})[Rp]=this._mousemove,e))},e.prototype.applyOptions=function(t,e){Fp(this._originalOptions,t),this._originalOptions=X(this._originalOptions,t),this.options=X({},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,It(this.element,((t={})[Dp]=this._clickHandler,t[qi]=this._mousewheelHandler,t[Rp]=this._mousemove,t[Bp]=this._mouseleaveHandler,t)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&It(document,((e={})[Rp]=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._resetDrilldownPoint(),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}(D.Class);function zp(t,e){if(t)for(var o=0;o<t.length;o++)if(t[o].category===e)return[t[o]]}function Vp(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 Hp(t){for(var e={},o=0;o<t.length;o++){var r=t[o],i=r.options.name;i&&(e[i]=r.range())}return e}var Up=["data","categories"];function Fp(t,e){for(var o in e)if(!ct(o,Up)&&e.hasOwnProperty(o)){var r=e[o],i=t[o];if(xt(i)){var n=null===r;n||!xt(r)?(delete t[o],n&&delete e[o]):i&&K(r)&&K(i)&&Fp(i,r)}}}function Gp(t){for(var e=0;e<t.length;e++)t[e].notifyRender()}Bt(Np,{renderAs:"",chartArea:{},legend:{visible:!0,labels:{}},categoryAxis:{},seriesDefaults:{type:oi,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});const Wp=Np;var 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._slotAnchor=function(t,e){var o=this.plotArea.categoryAxis.options.vertical,r=o?{horizontal:"left",vertical:"center"}:{horizontal:"center",vertical:"bottom"};return{point:o?new ee(this.plotArea.box.x2,e.center().y):new ee(e.center().x,-2),align:r}},e.prototype._defaultAnchor=function(t,e){return this._slotAnchor({},e)},e}(cl);const Kp=Xp;var Yp=[Qr,ti];function qp(t){for(var e=[],o=0;o<t.length;o++){var r=t[o];e[o]=r.style.display,r.style.display="none"}return e}function Zp(t,e){for(var o=0;o<t.length;o++)t[o].style.display=e[o]}function Qp(t){return z(t)?[t]:t}var $p=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){I(t,"k-sparkline")},e.prototype._initElement=function(e){t.prototype._initElement.call(this,e),this._initialWidth=Math.floor(Ot(e).width)},e.prototype._resize=function(){var e=this.element,o=qp(e.childNodes);this._initialWidth=Math.floor(Ot(e).width),Zp(e.childNodes,o),t.prototype._resize.call(this)},e.prototype._modelOptions=function(){var t=this.options,e=this._surfaceWrap(),o=qp(e.childNodes),r=document.createElement("span");r.innerHTML=" ",e.appendChild(r);var i=X({width:this._autoWidth,height:Ot(e).height,transitions:t.transitions},t.chartArea,{inline:!0,align:!1});return Ot(e,{width:i.width,height:i.height}),e.removeChild(r),Zp(e.childNodes,o),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 o=t.prototype._createPlotArea.call(this,e);return this._autoWidth=this._initialWidth||this._calculateWidth(o),o},e.prototype._calculateWidth=function(t){for(var e=this.options,o=$(e.chartArea.margin),r=t.charts,i=this._surfaceWrap(),n=0,a=0;a<r.length;a++){var s=r[a],l=(s.options.series||[])[0];if(l){if(l.type===Qr)return 150;if(l.type===ti)return 150;if(l.type===pi)return Ot(i).height;var p=s.categoryAxis;if(p){var c=p.categoriesCount()*(!s.options.isStacked&&ct(l.type,[oi,Ci])?s.seriesOptions.length:1);n=Math.max(n,c)}}}var h=n*e.pointWidth;return h>0&&(h+=o.left+o.right),h},e.prototype._createSharedTooltip=function(t){return new Kp(this._plotArea,t)},e.normalizeOptions=function(t){var e=Qp(t);return(e=M(e)?{seriesDefaults:{data:e}}:X({},e)).series||(e.series=[{data:Qp(e.data)}]),X(e,{seriesDefaults:{type:e.type}}),(ct(e.series[0].type,Yp)||ct(e.seriesDefaults.type,Yp))&&(e=X({},{categoryAxis:{crosshair:{visible:!1}}},e)),e},e}(Wp);Bt($p,{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}]});const Jp=$p;var tc=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(Q(this.element,"opacity").opacity)},e.prototype.step=function(t){Q(this.element,{opacity:String(ht(this._initialOpacity,0,t))})},e.prototype.abort=function(){t.prototype.abort.call(this),Q(this.element,{display:"none",opacity:String(this._initialOpacity)})},e.prototype.cancel=function(){t.prototype.abort.call(this),Q(this.element,{opacity:String(this._initialOpacity)})},e}(D.drawing.Animation);const ec=tc;function oc(t,e){var o=document.createElement("div");return o.className=t,e&&(o.style.cssText=e),o}var rc=function(t){function e(e,o,r){t.call(this),this.options=X({},this.options,r),this.container=e,this.chartService=o;var i=Q(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=oc("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),e=this.tooltip=oc("k-tooltip k-chart-tooltip"),o=this.scroll=oc("k-scroll");e.innerHTML=" ",t.appendChild(e),t.appendChild(o)},e.prototype.show=function(t,e,o){var r=this,i=r.element,n=r.options,a=r.scroll,s=r.tooltip,l=wo(To(t)+To(e-t)/2),p=.4*o.width(),c=o.center().x-p,h=(o.center().x-c)/(n.max-n.min),u=l-n.min,f=this.chartService.intl.format(n.format,t,e),d=ot(n);this.clearHideTimeout(),this._visible||(Q(i,{visibility:"hidden",display:"block"}),this._visible=!0),d&&(f=d({from:t,to:e})),s.innerHTML=f,Q(s,{left:o.center().x-s.offsetWidth/2,top:o.y1});var v=Q(s,["marginTop","borderTopWidth","height"]);Q(a,{width:p,left:c+u*h,top:o.y1+v.marginTop+v.borderTopWidth+v.height/2}),Q(i,{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 ec(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}(D.Class);Bt(rc,{format:"{0:d} - {1:d}",hideDelay:500});const ic=rc;var nc="_navigator",ac=nc,sc="_default",lc=function(t){function e(e){var o;t.call(this),this.chart=e;var r=this.options=X({},this.options,e.options.navigator),i=r.select;i&&(i.from=this.parseDate(i.from),i.to=this.parseDate(i.to)),xt(r.hint.visible)||(r.hint.visible=r.visible),this.chartObserver=new dt(this,((o={})[Li]="_drag",o[Ri]="_dragEnd",o[Ni]="_zoom",o[zi]="_zoomEnd",o)),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 Lo(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,o=this.options,r=this.mainAxis(),i=r.roundedRange(),n=i.min,a=i.max,s=o.select,l=s.from,p=s.to,c=s.mousewheel,h=(t=r,pc.prototype=t,new pc);0!==r.categoriesCount()&&(this.clean(),h.box=r.box,this.selection=new al(e,h,{min:n,max:a,from:l||n,to:p||a,mousewheel:Lt(c,{zoom:"left"}),visible:o.visible},new dt(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),o.hint.visible&&(this.hint=new ic(e.element,e.chartService,{min:n,max:a,template:ot(o.hint),format:o.hint.format})))},e.prototype.setRange=function(){var t=this.chart._createPlotArea(!0).namedCategoryAxes[ac].roundedRange(),e=t.min,o=t.max,r=this.options.select||{},i=r.from||e;i<e&&(i=e);var n=r.to||o;n>o&&(n=o),this.options.select=X({},r,{from:i,to:n}),this.filterAxes()},e.prototype._redrawSelf=function(t){var e=this.chart._plotArea;e&&e.redraw(kt(e.panes),t)},e.prototype.redrawSlaves=function(){var t=this.chart,e=t._plotArea,o=e.panes.filter((function(t){return t.options.name!==nc}));e.srcSeries=t.options.series,e.options.categoryAxis=t.options.categoryAxis,e.clearSeriesPointsCache(),e.redraw(o)},e.prototype._drag=function(t){var e,o=this.chart,r=this.selection,i=o._eventCoordinates(t.originalEvent),n=this.mainAxis(),a=n.roundedRange(),s=n.pane.box.containsPoint(i),l=o._plotArea.categoryAxis,p=t.axisRanges[l.options.name],c=this.options.select;if(p&&!s&&r){e=c.from&&c.to?To(c.to)-To(c.from):To(r.options.to)-To(r.options.from);var h=wo(Tt(To(p.min),a.min,To(a.max)-e)),u=wo(Tt(To(h)+e,To(a.min)+e,a.max));this.options.select={from:h,to:u},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),r.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,o=t.to,r=this.options.select;r.from=e,r.to=o},e.prototype.filterAxes=function(){var t=this.options.select;void 0===t&&(t={});for(var e=this.chart.options.categoryAxis,o=t.from,r=t.to,i=0;i<e.length;i++){var n=e[i];n.pane!==nc&&(n.min=o,n.max=r)}},e.prototype.filter=function(){var t=this.chart,e=this.options.select;if(t.requiresHandlers(["navigatorFilter"])){var o=this.mainAxis(),r={from:e.from,to:e.to};if("category"!==o.options.type){var i=new Ko(X({baseUnit:"fit"},t.options.categoryAxis[0],{categories:[e.from,e.to]}),t.chartService).options;r.from=Oo(i.min,-i.baseUnitStep,i.baseUnit),r.to=Oo(i.max,i.baseUnitStep,i.baseUnit)}this.chart.trigger("navigatorFilter",r)}},e.prototype._zoom=function(t){var e=this,o=e.chart._plotArea.categoryAxis,r=e.selection,i=e.options,n=i.select,a=i.liveDrag,s=this.mainAxis(),l=t.delta;if(r){var p=s.categoryIndex(r.options.from),c=s.categoryIndex(r.options.to),h=this.chart._eventCoordinates(t.originalEvent);t.originalEvent.preventDefault(),Math.abs(l)>1&&(l*=3),c-p>1?(r.zoom(l,h),this.readSelection()):(o.options.min=n.from,n.from=o.scaleRange(-t.delta*this.chart._mousewheelZoomRate(),h).min),a&&(this.filterAxes(),this.redrawSlaves()),r.set(n.from,n.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 o=this.chart._plotArea;this.hint&&this.hint.show(t,e,o.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[ac]},e.prototype.select=function(t,e){var o=this.options.select;return t&&e&&(o.from=this.parseDate(t),o.to=this.parseDate(e),this.filterAxes(),this.filter(),this.redrawSlaves(),this.selection.set(t,e)),{from:o.from,to:o.to}},e.setup=function(t,o){if(void 0===t&&(t={}),void 0===o&&(o={}),!t.__navi){t.__navi=!0;var r=X({},o.navigator,t.navigator),i=t.panes=[].concat(t.panes),n=X({},r.pane,{name:nc});r.visible||(n.visible=!1,n.height=.1),"top"!==t.navigator.position?i.push(n):i.unshift(n),i.forEach((function(t){return t.name=t.name||sc})),e.attachAxes(t,r),e.attachSeries(t,r,o)}},e.attachAxes=function(t,e){var o=e.series||[],r=t.categoryAxis=[].concat(t.categoryAxis),i=t.valueAxis=[].concat(t.valueAxis);r.concat(i).forEach((function(t){return t.pane=t.pane||sc}));var n=0===za(o,Ai).length,a=X({type:"date",pane:nc,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]}}),s=e.categoryAxis;r.push(X({},a,{maxDateGroups:200},s,{name:ac,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),X({},a,s,{name:ac+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),X({},a,s,{name:ac+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),i.push(X({name:ac,pane:nc,majorGridLines:{visible:!1},visible:!1},e.valueAxis))},e.attachSeries=function(t,e,o){for(var r=t.series=t.series||[],i=[].concat(e.series||[]),n=o.seriesColors,a=e.seriesDefaults,s=0;s<i.length;s++)r.push(X({color:n[s%n.length],categoryField:e.dateField,visibleInLegend:!1,tooltip:{visible:!1}},a,i[s],{axis:ac,categoryAxis:ac,autoBind:e.autoBindElements}))},e}(D.Class);function pc(){}const cc=lc;var hc=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,o){var r=Ot(this.element).width||600,i=o,n={seriesDefaults:{categoryField:e.dateField},axisDefaults:{categoryAxis:{name:"default",majorGridLines:{visible:!1},labels:{step:2},majorTicks:{visible:!1},maxDateGroups:Math.floor(r/28)}}};i&&(i=X({},i,n)),cc.setup(e,i),t.prototype.applyDefaults.call(this,e,i)},e.prototype._setElementClass=function(t){I(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=at([].concat(t.series,t.navigator.series),(function(t){return t&&t.visible})).length,o=this._seriesCount!==e;return this._seriesCount=e,o},e.prototype._fullRedraw=function(){var e=this.navigator;e||(e=this.navigator=new cc(this),this.trigger("navigatorCreated",{navigator:e})),e.clean(),e.setRange(),t.prototype._redraw.call(this),e.initSelection()},e.prototype._trackSharedTooltip=function(e){var o=this._plotArea.paneByPoint(e);o&&o.options.name===nc?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),o=0;o<e.length;o++){var r=e[o];r.name===ac?t=r.categories:t&&r.pane===nc&&(r.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 o=this._eventCoordinates(e),r=this._plotArea.paneByPoint(o);return t.prototype._stopChartHandlers.call(this,e)||r&&r.options.name===nc},e.prototype._toggleDragZoomEvents=function(){this._dragZoomEnabled||(this.element.style.touchAction="none",this._dragZoomEnabled=!0)},e}(Wp);Bt(hc,{dateField:"date",axisDefaults:{categoryAxis:{type:"date",baseUnit:"fit",justified:!0},valueAxis:{narrowRange:!0,labels:{format:"C"}}},navigator:{select:{},seriesDefaults:{markers:{visible:!1},tooltip:{visible:!1},highlight:{visible:!1},line:{width:2}},hint:{},visible:!0},tooltip:{visible:!0},legend:{visible:!1}});const uc=hc;var fc=150,dc="arrowPointer",vc="barPointer",yc=.5,gc=Math.PI/180,mc="inside",bc="linear",_c="outside",xc="radialPointer",wc="radialRangePointer";function Cc(t,e){var o=t.getOrigin(),r=t.getSize(),i=$(e);return t.setOrigin([o.x-i.left,o.y-i.top]),t.setSize([r.width+(i.left+i.right),r.height+(i.top+i.bottom)]),t}var Oc=D.drawing.Group,Sc=D.drawing.Path,Pc=D.drawing.Text;function Ac(t,e){var o=t.box,r=t.children[0].box,i=e.border||{},n=e.background||"",a=Sc.fromRect(new D.geometry.Rect([o.x1,o.y1],[o.width(),o.height()]),{stroke:{}}),s=new Pc(t.text,new D.geometry.Point(r.x1,r.y1),{font:e.font,fill:{color:e.color}}),l=Cc(s.bbox().clone(),e.padding),p=Sc.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 Oc;return c.append(a),c.append(p),c.append(s),c}function kc(t,e,o){var r=xt(t.from)?t.from:b,i=xt(t.to)?t.to:m;return t.from=Math.max(Math.min(i,r),e),t.to=Math.min(Math.max(i,r),o),t}function Tc(t,e){var o=$(e);return o.left=-o.left,o.top=-o.top,o.right=-o.right,o.bottom=-o.bottom,Cc(t,o)}var jc=D.drawing.Path,Ec=D.drawing.Surface,Mc=function(t){function e(e,o,r,i){void 0===i&&(i={}),t.call(this),this.element=e,this.theme=r,this.contextService=new qe(this,i),this._originalOptions=X({},this.options,o),this.options=X({},this._originalOptions),this._initTheme(r),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,o=[];if(0===arguments.length){for(var r=0;r<e.length;r++)o.push(e[r].value());return o}if(M(t))for(var i=0;i<t.length;i++)z(t[i])&&e[i].value(t[i]);this._setValueOptions(t)},e.prototype._setValueOptions=function(t){for(var e=[].concat(this.options.pointer),o=[].concat(t),r=0;r<o.length;r++)e[r].value=o[r]},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 D.geometry.Rect([0,0],[t.width,t.height]);this._initSurface(),this.gaugeArea=this._createGaugeArea(),this._createModel();var o=Tc(e.bbox(),this._gaugeAreaMargin);this.reflow(o)},e.prototype.setOptions=function(t,e){this._originalOptions=X(this._originalOptions,t),this.options=X({},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=X({},e,this.options);var o=this.options,r=o.pointer;if(M(r)){for(var i=[],n=0;n<r.length;n++)i.push(X({},e.pointer,r[n]));o.pointer=i}},e.prototype._createGaugeArea=function(){var t=this.options.gaugeArea,e=this.surface.size(),o=t.border||{},r=new D.geometry.Rect([0,0],[e.width,e.height]);return this._gaugeAreaMargin=t.margin||5,o.width>0&&(r=Tc(r,o.width)),jc.fromRect(r,{stroke:{color:o.width?o.color:"",width:o.width,dashType:o.dashType,lineJoin:"round",lineCap:"round"},fill:{color:t.background}})},e.prototype._initSurface=function(){var t=this.options,e=this.surface,o=this._surfaceElement(),r=this._surfaceSize();Ot(o,r),e&&e.options.type===t.renderAs?(this.surface.clear(),this.surface.resize()):(e&&e.destroy(),this.surface=Ec.create(o,{type:t.renderAs}))},e.prototype._surfaceSize=function(){var t=this.options,e=this._getSize();return t.gaugeArea&&X(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(),o=t.offsetWidth,r=t.offsetHeight;return o||(o=e.width),r||(r=e.height),{width:o,height:r}},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}(D.Class);Bt(Mc,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}});const Ic=Mc;var Lc=D.drawing.Path,Rc=D.drawing.Group,Dc=D.geometry.Point;function Bc(t,e){var o,r,i=t.position,n=t.tickX,a=t.tickY;return t.vertical?(o=new Dc(n,i),r=new Dc(n+e.size,i)):(o=new Dc(i,a),r=new Dc(i,a+e.size)),new Lc({stroke:{color:e.color,width:e.width}}).moveTo(o).lineTo(r)}function Nc(t,e,o,r){var i=e.length;if(r.visible)for(var n=o.mirror,a=o.lineBox,s=r.skip;s<i;s+=r.step)s%r.skipUnit!=0&&(o.tickX=n?a.x2:a.x2-r.size,o.tickY=n?a.y1-r.size:a.y1,o.position=e[s],t.append(Bc(o,r)))}var zc=function(t){function e(e,o){var r=e||{};!xt(r.reverse)&&!1===r.vertical&&(o||{}).rtl&&(r=Object.assign({},r,{reverse:!0})),t.call(this,0,1,r,o),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=X({},this.options,t);return(e=X({},e,{labels:{mirror:e.mirror}})).majorUnit=e.majorUnit||te(e.min,e.max),e},e.prototype.initFields=function(){},e.prototype.render=function(){var t=this.elements=new Rc,e=this.renderLabels(),o=this.renderLine(),r=this.renderTicks(),i=this.renderRanges();return t.append(o,e,r,i),t},e.prototype.renderRanges=function(){for(var t=this,e=this.options,o=e.min,r=e.max,i=e.vertical,n=e.labels.mirror,a=e.ranges||[],s=new Rc,l=a.length,p=e.rangeSize||e.minorTicks.size/2,c=0;c<l;c++){var h=kc(a[c],o,r),u=t.getSlot(h.from,h.to),f=i?t.lineBox():u,d=i?u:t.lineBox();i?f.x1-=p*(n?-1:1):d.y2+=p*(n?-1:1),s.append(Lc.fromRect(new D.geometry.Rect([f.x1,d.y1],[f.x2-f.x1,d.y2-d.y1]),{fill:{color:h.color,opacity:h.opacity},stroke:{}}))}return s},e.prototype.renderLabels=function(){for(var t=this.labels,e=this.options,o=new Rc,r=0;r<t.length;r++)o.append(Ac(t[r],e.labels));return o},e.prototype.renderLine=function(){var t=this.options.line,e=this.lineBox(),o=new Rc;if(t.width>0&&t.visible){var r=new Lc({stroke:{color:t.color,dashType:t.dashType,width:t.width}});r.moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),o.append(r)}return o},e.prototype.renderTicks=function(){var t=new Rc,e=this.options,o=e.majorTicks.visible?e.majorUnit:0,r={vertical:e.vertical,mirror:e.labels.mirror,lineBox:this.lineBox()};return Nc(t,this.getMajorTickPositions(),r,e.majorTicks),Nc(t,this.getMinorTickPositions(),r,X({},{skipUnit:o/e.minorUnit},e.minorTicks)),t},e}(tr);Bt(zc,{min:0,max:50,majorTicks:{size:15,align:mc,color:n,width:yc,visible:!0},minorTicks:{size:10,align:mc,color:n,width:yc,visible:!0},line:{width:yc},labels:{position:mc,padding:2},mirror:!1,_alignLines:!1});const Vc=zc;var Hc=function(t){function e(e,o){t.call(this);var r=e.options,i=r.min,n=r.max,a=this.options=X({},this.options,o);a.fill=a.color,this.scale=e,xt(a.value)?a.value=Tt(a.value,i,n):a.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,o=e.value;if(0===arguments.length)return o;var r=this.scale.options,i=r.min,n=r.max;e._oldValue=xt(e._oldValue)?e.value:i,e.value=Tt(t,i,n),this.elements&&this.repaint()},e}(D.Class);Bt(Hc,{color:n});const Uc=Hc;var Fc=function(t){function e(e,o){t.call(this,e,o),this.options=X({track:{visible:xt(o.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,o,r=this.options,i=this.scale,n=i.options,a=n.mirror,s=n.vertical,l=i.lineBox(),p=r.track.size||r.size,c=r.size/2,h=$(r.margin),u=s?h[a?"left":"right"]:h[a?"bottom":"top"];u=a?-u:u,s?(o=new ie(l.x1+u,l.y1,l.x1+u,l.y2),a?o.x1-=p:o.x2+=p,r.shape!==vc&&(t=e=new ie(l.x2+u,l.y1-c,l.x2+u,l.y2+c))):(o=new ie(l.x1,l.y1-u,l.x2,l.y1-u),a?o.y2+=p:o.y1-=p,r.shape!==vc&&(t=e=new ie(l.x1-c,l.y1-u,l.x2+c,l.y1-u))),this.trackBox=o,this.pointerRangeBox=e,this.box=t||o.clone().pad(r.border.width)},e.prototype.getElementOptions=function(){var t=this.options;return{fill:{color:t.color,opacity:t.opacity},stroke:xt(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,o=t.options,r=o.mirror,i=o.vertical,n=$(e.margin);return i?n[r?"left":"right"]:n[r?"bottom":"top"]},e}(Uc);Bt(Fc,{shape:vc,track:{border:{width:1}},color:n,border:{width:1},opacity:1,margin:$(3),animation:{type:vc},visible:!0});const Gc=Fc;var Wc=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,o=t.from,r=t.to,i=t.vertical,n=i?"x1":"y1";t.mirror===i?(o[n]-=e,r[n]-=e):(o[n]+=e,r[n]+=e);var a=this.fromScale=new D.geometry.Point(o.x1,o.y1),s=this.toScale=new D.geometry.Point(r.x1,r.y1);0!==t.duration&&(t.duration=Math.max(a.distanceTo(s)/t.duration*1e3,1))},e.prototype.step=function(t){var e=ht(this.fromScale.x,this.toScale.x,t),o=ht(this.fromScale.y,this.toScale.y,t);this.element.transform(D.geometry.transform().translate(e,o))},e}(D.drawing.Animation);Bt(Wc,{easing:bc,duration:250}),D.drawing.AnimationFactory.current.register(dc,Wc);const Xc=Wc;var Kc=D.geometry.Point,Yc=D.drawing.Path,qc=function(t){function e(e,o){t.call(this,e,o),xt(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,o=e/2,r=t.options.mirror?-1:1;return t.options.vertical?[new Kc(0,0-o),new Kc(0-r*e,0),new Kc(0,0+o)]:[new Kc(0-o,0),new Kc(0,0+r*e),new Kc(0+o,0)]},e.prototype.repaint=function(){var t=this.scale,e=this.options,o=new Xc(this.elements,X(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&&(o.options.duration=0),o.setup(),o.play()},e.prototype.render=function(){var t=this.scale,e=this.options,o=this.getElementOptions(),r=this.pointerShape(e.value);e.animation.type=dc;var i=new Yc({stroke:o.stroke,fill:o.fill}).moveTo(r[0]).lineTo(r[1]).lineTo(r[2]).close(),n=t.getSlot(e.value);return i.transform(D.geometry.transform().translate(n.x1,n.y1)),this.elements=i,i},e}(Gc);const Zc=qc;var Qc=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?E:j,o=this.to=t.newPoints[0][e],r=this.from=t.oldPoints[0][e];0!==t.duration&&(t.duration=Math.max(Math.abs(o-r)/t.speed*1e3,1)),this._set(r)},e.prototype.step=function(t){var e=ht(this.from,this.to,t);this._set(e)},e.prototype._set=function(t){var e="set"+this.axis.toUpperCase(),o=this.options.newPoints;o[0][e](t),o[1][e](t)},e}(D.drawing.Animation);Bt(Qc,{easing:bc,speed:250}),D.drawing.AnimationFactory.current.register(vc,Qc);const $c=Qc;var Jc=D.drawing.Group,th=D.drawing.Path,eh=function(t){function e(e,o){t.call(this,e,o),xt(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,o=this.options,r=e.options,i=r.mirror,n=r.vertical,a=i===n?-1:1,s=o.size*a,l=e.getSlot(e.options.min),p=e.getSlot(t),c=n?E:j,h=n?j:E,u=this._margin()*a,f=new D.geometry.Point;f[c]=l[c+"1"],f[h]=l[h+"1"];var d=new D.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(s,0),y.translate(s,0)):(v.translate(0,s),y.translate(0,s)),[f,d,v,y]},e.prototype.repaint=function(){var t=this.scale,e=this.options,o=this.pointerShape(e.value),r=this.pointerPath,i=this.pointerShape(e._oldValue);r.moveTo(o[0]).lineTo(o[1]).lineTo(o[2]).lineTo(o[3]).close();var n=new $c(r,X(e.animation,{reverse:t.options.reverse,vertical:t.options.vertical,oldPoints:[i[1],i[2]],newPoints:[o[1],o[2]]}));!1===e.animation.transitions&&(n.options.duration=0),n.setup(),n.play()},e.prototype.render=function(){var t=new Jc,e=this.getElementOptions();this.options.track.visible&&t.append(this.renderTrack());var o=this.pointerPath=new th({stroke:e.stroke,fill:e.fill});return t.append(o),this.elements=t,t},e.prototype.renderTrack=function(){var t=this.options.track,e=t.border||{},o=this.trackBox.clone().pad(e.width||0);return new th.fromRect(o.toRect(),{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.width?e.color||t.color:"",width:e.width,dashType:e.dashType}})},e}(Gc);const oh=eh;var rh=D.drawing.Group,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.reflow=function(t){var e=this.pointers,o=t.origin.x,r=t.origin.y,i=new ie(o,r,o+t.width(),r+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 rh,e=this.scale.render(),o=this.pointers;t.append(this.gaugeArea),t.append(e);for(var r=0;r<o.length;r++){var i=o[r];t.append(i.render()),i.value(i.options.value)}this._visuals=t},e.prototype._createModel=function(){var t=this.options,e=this.scale=new Vc(t.scale,this.contextService);this.pointers=[];var o=t.pointer;o=M(o)?o:[o];for(var r=0;r<o.length;r++){var i=X({},o[r],{animation:{transitions:t.transitions}}),n="arrow"===i.shape?Zc:oh;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,o=this.scale,r=this.pointers,i=t.center(),n=r[0].box.clone().wrap(o.box),a=0;a<r.length;a++)n.wrap(r[a].box.clone());return o.options.vertical?(e=n.width()/2,n=new ie(i.x-e,t.y1,i.x+e,t.y2)):(e=n.height()/2,n=new ie(t.x1,i.y-e,t.x2,i.y+e)),n},e.prototype._alignElements=function(){for(var t,e=this.scale,o=this.pointers,r=e.box,i=o[0].box.clone().wrap(e.box),n=this.bbox,a=0;a<o.length;a++)i.wrap(o[a].box.clone());e.options.vertical?(t=n.center().x-i.center().x,e.reflow(new ie(r.x1+t,n.y1,r.x2+t,n.y2))):(t=n.center().y-i.center().y,e.reflow(new ie(r.x1,r.y1+t,r.x2,r.y2+t)));for(var s=0;s<o.length;s++)o[s].reflow(this.bbox)},e.prototype._shrinkScaleWidth=function(t){var e=this.scale;if(!e.options.vertical){var o=e.contentBox().width()-t.width();o>0&&(e.box.shrink(o,0),e.box.alignTo(t,"center"),e.reflow(e.box))}},e.prototype._shrinkElements=function(){for(var t=this.scale,e=this.pointers,o=t.box.clone(),r=t.options.vertical?"y":"x",i=e[0].box,n=0;n<e.length;n++)i.wrap(e[n].box.clone());o[r+1]+=Math.max(o[r+1]-i[r+1],0),o[r+2]-=Math.max(i[r+2]-o[r+2],0),t.reflow(o);for(var a=0;a<e.length;a++)e[a].reflow(this.bbox)},e}(Ic);Bt(ih,{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}});const nh=ih;var ah=180,sh=D.drawing.Arc,lh=D.drawing.Path,ph=D.drawing.Group;function ch(t,e,o,r){var i=new ph,n=t.center,a=t.getRadiusX();if(r.visible)for(var s=0;s<e.length;s++){var l=t.pointAt(e[s]),p=new D.geometry.Point(n.x+a-r.size,n.y).rotate(e[s],n);i.append(new lh({stroke:{color:r.color,width:r.width}}).moveTo(l).lineTo(p))}return i}function hh(t,e,o,r){return{from:t,to:e,color:o,opacity:r}}var uh=function(t){function e(e,o){t.call(this,0,1,e,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=X({},this.options,t);return e.majorUnit=e.majorUnit||te(e.min,e.max),e.minorUnit=e.minorUnit||e.majorUnit/10,e},e.prototype.initFields=function(){},e.prototype.render=function(t,e){var o=this.renderArc(t,e);this.bbox=o.bbox(),this.labelElements=this.renderLabels(),this.ticks=this.renderTicks(),this.ranges=this.renderRanges()},e.prototype.reflow=function(t){var e=t.center(),o=Math.min(t.height(),t.width())/2;if(!xt(this.bbox))return this.render(e,o);this.bbox=this.arc.bbox(),this.radius(this.arc.getRadiusX()),this.repositionRanges(),this.renderLabels()},e.prototype.slotAngle=function(t){var e=this.options,o=e.min,r=e.max,i=e.reverse,n=e.startAngle,a=e.endAngle,s=a-n;return(i?a-(t-o)/(r-o)*s:(t-o)/(r-o)*s+n)+ah},e.prototype.hasRanges=function(){var t=this.options.ranges;return t&&t.length},e.prototype.ticksSize=function(){var t=this.options,e=t.majorTicks,o=t.minorTicks,r=0;return e.visible&&(r=e.size),o.visible&&(r=Math.max(o.size,r)),r},e.prototype.labelsCount=function(){var e=t.prototype.labelsCount.call(this),o=this.options;return o.endAngle-o.startAngle>=360&&o.max%o.majorUnit==0&&(e-=1),e},e.prototype.renderLabels=function(){var t=this,e=this.options,o=this.arc.clone(),r=o.getRadiusX(),i=this.tickAngles(o,e.majorUnit),n=e.rangeSize=e.rangeSize||.1*r,a=new ph,s=.05*r;xt(e.rangeDistance)?s=e.rangeDistance:e.rangeDistance=s;var l=e.labels,p=l.position===mc,c=xt(this.labelElements);p&&(r-=this.ticksSize(),this.hasRanges()&&!c&&(r-=n+s),o.setRadiusX(r).setRadiusY(r));for(var h=this.labels,u=h.length,f=$(l.padding),d=(f.left+f.right)/2,v=(f.top+f.bottom)/2,y=0;y<u;y++){var g=h[y],m=g.box.width()/2,b=g.box.height()/2,_=i[y],x=(_-ah)*gc,w=o.pointAt(_),C=w.x+Math.cos(x)*(m+d)*(p?1:-1),O=w.y+Math.sin(x)*(b+v)*(p?1:-1);g.reflow(new ie(C-m,O-b,C+m,O+b));var S=new D.geometry.Point(g.box.x1,g.box.y1),P=void 0;if(c){var A=(P=t.labelElements.children[y]).bbox().origin,k=P.transform()||D.geometry.transform();k.translate(S.x-A.x,S.y-A.y),P.transform(k)}else P=Ac(g,e.labels),a.append(P);t.bbox=D.geometry.Rect.union(t.bbox,P.bbox())}return a},e.prototype.repositionRanges=function(){var t=this.ranges.children;if(t.length>0){var e=this.options,o=e.rangeDistance,r=e.rangeSize,i=this.getRangeRadius();this.options.labels.position===mc&&(i+=r+o);for(var n=i+r/2,a=0;a<t.length;a++)t[a]._geometry.setRadiusX(n).setRadiusY(n);this.bbox=D.geometry.Rect.union(this.bbox,this.ranges.bbox())}},e.prototype.renderRanges=function(){var t=this,e=this.rangeSegments(),o=e.length,r=new ph;if(o){var i=this.options,n=i.rangeSize,a=i.reverse,s=i.rangeDistance,l=this.getRangeRadius();this.radius(this.radius()-n-s);for(var p=0;p<o;p++){var c=e[p],h=t.slotAngle(c[a?"to":"from"]),u=t.slotAngle(c[a?"from":"to"]);u-h!=0&&r.append(t.createRange(h,u,l,c))}}return r},e.prototype.createRange=function(t,e,o,r){var i=this.options.rangeSize,n=new D.geometry.Arc(this.arc.center,{radiusX:o+i/2,radiusY:o+i/2,startAngle:t,endAngle:e});return new sh(n,{stroke:{width:i,color:r.color,opacity:r.opacity,lineCap:r.lineCap}})},e.prototype.rangeSegments=function(){var t=this.options,e=t.ranges||[],o=e.length,r=[];if(o){var i=t.min,n=t.max,a=t.rangePlaceholderColor;r.push(hh(i,n,a));for(var s=0;s<o;s++)for(var l=kc(e[s],i,n),p=r.length,c=0;c<p;c++){var h=r[c];if(h.from<=l.from&&l.from<=h.to){r.push(hh(l.from,l.to,l.color,l.opacity)),h.from<=l.to&&l.to<=h.to&&r.push(hh(l.to,h.to,a,l.opacity)),h.to=l.from;break}}}return r},e.prototype.getRangeRadius=function(){var t=this.arc,e=this.options,o=e.rangeSize,r=e.rangeDistance,i=e.majorTicks.size;return e.labels.position===_c?t.getRadiusX()-i-r-o:t.getRadiusX()-o},e.prototype.renderArc=function(t,e){var o=this.options;return this.arc=new D.geometry.Arc(t,{radiusX:e,radiusY:e,startAngle:o.startAngle+ah,endAngle:o.endAngle+ah})},e.prototype.renderTicks=function(){var t=this.arc,e=this.options,o=t.clone();this.majorTickAngles=this.tickAngles(t,e.majorUnit),this.majorTicks=ch(o,this.majorTickAngles,e.majorUnit,e.majorTicks);var r=new ph;r.append(this.majorTicks);var i=e.majorTicks.size,n=e.minorTicks.size;if(this._tickDifference=i-n,e.labels.position===_c){var a=o.getRadiusX();o.setRadiusX(a-i+n).setRadiusY(a-i+n)}return this.minorTickAngles=this.normalizeTickAngles(this.tickAngles(t,e.minorUnit)),this.minorTicks=ch(o,this.minorTickAngles,e.minorUnit,e.minorTicks),r.append(this.minorTicks),r},e.prototype.normalizeTickAngles=function(t){for(var e=this.options,o=e.majorUnit/e.minorUnit,r=t.length-1;r>=0;r--)r%o==0&&t.splice(r,1);return t},e.prototype.tickAngles=function(t,e){var o=this.options,r=o.reverse,i=o.max-o.min,n=t.endAngle-t.startAngle,a=i/e,s=t.startAngle,l=n/a;r&&(s+=n,l=-l),n>=360&&o.max%e==0&&(a-=1);for(var c=[],h=0;h<a;h++)c.push(Mt(s,p)),s+=l;return Mt(s)<=t.endAngle&&c.push(s),c},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,o){var r=o&&this._tickDifference||0,i=this.arc,n=i.getRadiusX();o&&this.options.labels.position===_c&&0!==r&&(i=this.arc.clone()).setRadiusX(n-r).setRadiusY(n-r);for(var a=0;a<t.length;a++){var s=i.pointAt(e[a]),l=t[a].segments,p=s.x-l[0].anchor().x,c=s.y-l[0].anchor().y;t[a].transform((new D.geometry.transform).translate(p,c))}},e}(tr);Bt(uh,{min:0,max:100,majorTicks:{size:15,align:mc,color:n,width:yc,visible:!0},minorTicks:{size:10,align:mc,color:n,width:yc,visible:!0},startAngle:-30,endAngle:210,labels:{position:mc,padding:2}});const fh=uh;var dh=function(t){function e(e,o){t.call(this,e,o);var r=this.options;r.duration=Math.max(Math.abs(r.newAngle-r.oldAngle)/r.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,o=ht(e.oldAngle,e.newAngle,t);this.element.transform(D.geometry.transform().rotate(o,e.center))},e}(D.drawing.Animation);Bt(dh,{easing:bc,duration:fc}),D.drawing.AnimationFactory.current.register(xc,dh);const vh=dh;var yh=D.drawing.Circle,gh=D.drawing.Group,mh=D.drawing.Path,bh=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(D.geometry.transform().rotate(t,this.center))},e.prototype.repaint=function(){var t=this.scale,e=this.options,o=t.slotAngle(e._oldValue),r=t.slotAngle(e.value);!1===e.animation.transitions?this.setAngle(r):new vh(this.elements,X(e.animation,{oldAngle:o,newAngle:r})).play()},e.prototype.render=function(){var t=this.scale,e=this.options,o=new gh;return!1!==e.animation&&X(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),o.append(this._renderNeedle(),this._renderCap()),this.elements=o,this.setAngle(gc),o},e.prototype.reflow=function(t){var e=this.center=t.center,o=Tt(this.options.length||1,.1,1.5),r=this.radius=t.getRadiusX()*o,i=this.capSize=Math.round(r*this.options.cap.size);this.bbox=D.geometry.Rect.fromPoints(new D.geometry.Point(e.x-i,e.y-i),new D.geometry.Point(e.x+i,e.y+i))},e.prototype._renderNeedle=function(){var t=this.scale.options.minorTicks.size,e=this.center,o=this.options.color,r=new mh({fill:{color:o},stroke:{color:o,width:yc}});return r.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(),r},e.prototype._renderCap=function(){var t=this.options,e=t.cap.color||t.color,o=new D.geometry.Circle(this.center,this.capSize);return new yh(o,{fill:{color:e},stroke:{color:e}})},e}(Uc);Bt(bh,{cap:{size:.05},arrow:{width:16,height:14},animation:{type:xc,duration:fc}});const _h=bh;var xh=D.drawing.Group,wh=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,o=this.pointers;this.scale.reflow(t),this._initialPlotArea=this.scale.bbox;for(var r=0;r<o.length;r++)o[r].reflow(e.scale.arc),e._initialPlotArea=D.geometry.Rect.union(e._initialPlotArea,o[r].bbox);this.fitScale(t),this.alignScale(t),this._buildVisual(this.gaugeArea,o,this.scale),this._draw()},e.prototype._buildVisual=function(t,e,o){var r=this._visuals=new xh;r.append(t),r.append(o.ticks),r.append(o.ranges),this._buildPointers(e),r.append(o.labelElements)},e.prototype._buildPointers=function(t){for(var e=0;e<t.length;e++){var o=t[e];o.render(),this._visuals.append(o.elements),o.value(o.options.value)}},e.prototype.fitScale=function(t){for(var e,o,r,i,n,a=this,s=this.scale.arc,l=this._initialPlotArea,c=Math.abs(this.getDiff(l,t)),h=Mt(c,p),u=Mt(-c,p),f=0,d=0;!(!(d++<100)||(f=n===r?f+1:0)>5||h!==i&&0<=(e=a.getPlotBox(h,t,s))&&e<=2||u!==i&&0<=(r=a.getPlotBox(u,t,s))&&r<=2||(i=e>0&&r>0?2*h:e<0&&r<0?2*u:Mt((h+u)/2||1,p),0<=(o=a.getPlotBox(i,t,s))&&o<=2));)n=r,o>0?(u=i,r=o):(h=i,e=o)},e.prototype.getPlotBox=function(t,e,o){var r=this.scale,i=this.pointers,n=o.getRadiusX(),a=o.clone();a.setRadiusX(n+t).setRadiusY(n+t),r.arc=a,r.reflow(e),this.plotBbox=r.bbox;for(var s=0;s<i.length;s++)i[s].reflow(a),this.plotBbox=D.geometry.Rect.union(this.plotBbox,i[s].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(),o=t.center(),r=e.x-o.x,i=e.y-o.y,n=this.scale,a=this.pointers;n.arc.center.x-=r,n.arc.center.y-=i,n.reflow(t);for(var s=0;s<a.length;s++)a[s].reflow(n.arc),this.plotBbox=D.geometry.Rect.union(n.bbox,a[s].bbox)},e.prototype._createModel=function(){var t=this.options,e=t.pointer,o=this.scale=new fh(t.scale,this.contextService);this.pointers=[];for(var r=M(e)?e:[e],i=0;i<r.length;i++){var n=new _h(o,X({},r[i],{animation:{transitions:t.transitions}}));this.pointers.push(n)}},e}(Ic);Bt(wh,{transitions:!0,gaugeArea:{background:""}});const Ch=wh;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.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,o){var r=this.options.reverse,i=this.slotAngle(r?e:t),n=this.slotAngle(r?t:e),a=this.createRange(i,n,this.getRangeRadius(),o);return this.ranges.append(a),a},e}(fh);Bt(Oh,{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"});const Sh=Oh;var Ph=function(t){function e(e,o){t.call(this,e,o);var r=this.options,i=Math.abs(r.newAngle-r.oldAngle)/r.duration*1e3;r.duration=Tt(i,fc,800);var n=e.elements.options.get("stroke.color"),a=e.currentColor();n!==a&&(this.startColor=new D.Color(n),this.color=new D.Color(a))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this,o=e.options,r=e.startColor,i=e.color,n=ht(o.oldAngle,o.newAngle,t);if(this.element.angle(n),i){var a=Mt(ht(r.r,i.r,t)),s=Mt(ht(r.g,i.g,t)),l=Mt(ht(r.b,i.b,t));this.element.stroke(new D.Color(a,s,l).toHex())}},e}(D.drawing.Animation);Bt(Ph,{easing:bc,duration:fc}),D.drawing.AnimationFactory.current.register(wc,Ph);const Ah=Ph;var kh=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,o=t.slotAngle(e._oldValue),r=t.slotAngle(e.value);this.animation&&this.animation.abort(),!1===e.animation.transitions?(this.angle(r),this.stroke(this.currentColor())):(this.animation=new Ah(this,X(e.animation,{oldAngle:o,newAngle:r})),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&&X(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,o=t.max,r=this.options,i=r.colors,n=r.color,a=r.value,s=z(a)?a: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=o),h<=s&&s<=u)return c}return n},e.prototype.reflow=function(){this.render(),this.bbox=this.elements.bbox()},e}(Uc);Bt(kh,{animation:{type:wc,duration:fc}});const Th=kh;var jh=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 Sh(t.scale,this.contextService),o=new Th(e,X({},{colors:t.colors,color:t.color,value:t.value,opacity:t.opacity,animation:{transitions:t.transitions}}));this.pointers=[o]},e.prototype._buildPointers=function(t){for(var e=0;e<t.length;e++){var o=t[e];o.render(),o.value(o.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 o=this.getSize(),r=this.scale.arc.center,i=r.x-t/2,n=r.y-e/2;if(t<o.width){var a=i+t;i=Math.max(i,0),a>o.width&&(i-=a-o.width)}if(e<o.height){var s=this.scale.bbox,l=s.bottomRight().y,p=n+e;n=Math.max(n,s.origin.y),p>l&&(n-=p-l)}return{left:i,top:n}},e}(Ch);const Eh=jh;var Mh=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}(Eh);const Ih=Mh;var Lh=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,o){var r=xt(t)?String(t):t;return this.initValue(r,e,o),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}(D.Class);Bt(Lh,{quietZoneLength:10,addQuietZone:!0,addCheckSum:!0});var Rh=Object.assign,Dh=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),Rh(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,o=this.getWeightedSum(t,e,this.cCheckSumTotal)%this.checkSumMod;if(this.checksum=String(o),this.addPattern(this.characterMap[o]),++e>=this.kCheckSumMinLength){var r=(o+this.getWeightedSum(t,e,this.kCheckSumTotal))%this.checkSumMod;this.checksum+=r,this.addPattern(this.characterMap[r])}},e.prototype.getWeightedSum=function(t,e,o){for(var r=0,i=0;i<t.length;i++)r+=this.weightedValue(this.getValue(t.charAt(i)),e,i,o);return r},e.prototype.weightedValue=function(t,e,o,r){return((e-o)%r||r)*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),o=this.characterMap[e];this.addPattern(o)},e.prototype.addPattern=function(t){for(var e,o=0;o<t.length;o++)e=parseInt(t.charAt(o),10),this.pattern.push(e),this.totalUnits+=e},e}(Lh);Bt(Dh,{addCheckSum:!0});var Bh=Object.assign,Nh=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),Bh(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}(Lh),zh=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),Bh(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,o){this.width=e,this.height=o,this.value=t,this.dataLength=t.length,this.pattern=[],this.patternString=""},e.prototype.prepareValues=function(){var t,e=this.minBaseUnitLength,o=this.minRatio,r=Math.ceil(Math.max(.15*this.width,24)),i=this.maxRatio;if(this.height<r)throw new Error("Insufficient height for Code39 encoding: the current height is "+this.height+"px and the minimum height is "+r+"px.");for(t=this.getBaseUnit(i);t<e&&i>o;)i=parseFloat((i-.1).toFixed(1)),t=this.getBaseUnit(i);if(t<e){var n=Math.ceil(this.getBaseWidth(o)*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}(Nh);Bt(zh,{addCheckSum:!1});var Vh={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,o=this,r=0;r<this.extendedMappings.length;r++)if(e=o.extendedMappings[r].call(o,t)){for(var i=0;i<e.length;i++){var n=e[i];o.addBase(n)}return void(o.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,o,r=this;if(this.specialAsciiCodes[t]){e=[];for(var i=0;i<this.specialAsciiCodes[t].length;i++)e.push(r.characterMap[r.shiftCharacters[3]]),e.push(r.characterMap[r.specialAsciiCodes[t][i]])}else o=6*Math.floor(t/32)+(t-27)%32+64,e=[this.characterMap[this.shiftCharacters[3]],this.characterMap[String.fromCharCode(o)]];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"]},Hh=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),X(this,Vh,{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}(zh),Uh=Object.assign,Fh=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),Uh(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,o){this.value=t,this.width=e,this.height=o,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,o=this._getCheckValues();this.checksum=o.join("");for(var r=0;r<o.length;r++)t=e.characterMap[e._findCharacterByValue(o[r])],e.addPattern(t.pattern)},e.prototype._getCheckValues=function(){var t,e,o=this,r=this.values,i=r.length,n=0;for(e=i-1;e>=0;e--)n+=o.weightedValue(r[e],i-e,o.cCheckSumTotal);for(t=n%this.checkSumMod,n=this.weightedValue(t,1,this.kCheckSumTotal),e=i-1;e>=0;e--)n+=o.weightedValue(r[e],i-e+1,o.kCheckSumTotal);return[t,n%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,o){return(e%o||o)*t},e.prototype.addPattern=function(t){for(var e,o=0;o<t.length;o++)e=parseInt(t.charAt(o),10),this.pattern.push(e)},e}(Nh),Gh=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),X(this,Vh,{name:"Code 93 extended",pushCheckSum:function(){var t,e=this,o=this._getCheckValues();this.checksum=o.join("");for(var r=0;r<o.length;r++)if(t=o[r],e.shiftValuesAsciiCodes[t])e.addExtended(e.shiftValuesAsciiCodes[t]);else{var i=e._findCharacterByValue(t);e.addPattern(e.characterMap[i].pattern)}}})},e}(Fh),Wh=/^\d+$/,Xh=Object.assign,Kh=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),Xh(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,o){this.height=o,this.width=e,this.baseHeight=o/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(Wh.test(t)||this.invalidCharacterError(t.match(/[^0-9]/)[0]),!ct(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,o=this,r=0;r<t.length;r++)e=o.height-o.baseHeight*t.charAt(r),o.pattern.push({width:1,y1:e,y2:o.height}),o.pattern.push(1)},e}(Lh),Yh=/^\d+$/,qh=/^[a-z0-9]+$/i,Zh=Object.assign,Qh=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}(D.Class),$h=function(t){function e(e,o){t.call(this,e),this.states=o,this._initMoves(o)}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),X(this,{FNC4:"FNC4",SHIFT:98})},e.prototype.addStart=function(){this.encoding.addPattern(this.START)},e.prototype.is=function(t,e){var o=t.charCodeAt(e);return this.isCode(o)},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,o=this.states,r=t.value,i=r.length;if(ct("C",o)){var n=r.substr(t.index).match(/\d{4,}/g);n&&(i=r.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=[],ct(this.FNC4,t)&&this._moves.push(this._moveFNC),ct(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}(Qh),Jh={};Jh.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),Zh(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}($h),Jh.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),Zh(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}($h),Jh.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),Zh(this,{key:"C",MOVE:99,START:105})},e.prototype.addStart=function(){this.encoding.addPattern(this.START)},e.prototype.is=function(t,e){var o=au(t,e,4);return(e+4<=t.length||2===t.length)&&Yh.test(o)},e.prototype.move=function(){this.encoding.addPattern(this.MOVE)},e.prototype.pushState=function(t){for(var e;(e=au(t.value,t.index,2))&&Yh.test(e)&&2===e.length;)this.encoding.addPattern(parseInt(e,10)),t.index+=2},e.prototype.getValue=function(t){return t},e}(Qh),Jh.FNC4=function(t){function e(e,o){t.call(this,e),this._initSubStates(o)}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),Zh(this,{key:"FNC4",dependentStates:["A","B"]})},e.prototype.addStart=function(t){var e=t.value.charCodeAt(0)-128,o=this._getSubState(e);this.encoding[o].addStart()},e.prototype.is=function(t,e){var o=t.charCodeAt(e);return this.isCode(o)},e.prototype.isCode=function(t){return 128<=t&&t<256},e.prototype.pushState=function(t){var e,o=this._initSubState(t),r=this.encoding,i=o.value.length;if(t.index+=i,i<3)for(;o.index<i;o.index++)e=o.value.charCodeAt(o.index),o.state=this._getSubState(e),o.previousState!==o.state&&(o.previousState=o.state,r[o.state].move(o)),r.addPattern(r[o.state].MOVE),r.addPattern(r[o.state].getValue(e));else o.state!==o.previousState&&r[o.state].move(o),this._pushStart(o),r.pushData(o,this.subStates),t.index<t.value.length&&this._pushStart(o);t.fnc=!0,t.state=o.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++)ct(t[e],this.dependentStates)&&this.subStates.push(t[e])},e.prototype._getSubState=function(t){for(var e=this,o=0;o<this.subStates.length;o++)if(e.encoding[e.subStates[o]].isCode(t))return e.subStates[o]},e.prototype._getAll=function(t,e){for(var o,r="",i=e;(o=t.charCodeAt(i++))&&this.isCode(o);)r+=String.fromCharCode(o-128);return r},e}(Qh),Jh.FNC1=function(t){function e(e,o){t.call(this,e),this.states=o}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),Zh(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 ct(this.key,this.states)},e.prototype.pushState=function(t){var e,o,r,i=this,n=this.encoding,a=t.value.replace(/\s/g,""),s=new RegExp("["+this.startAI+this.endAI+"]","g"),l=t.index,p={state:this.startState};for(n.addPattern(this.START);;){if(p.index=0,(e=(r=a.charAt(l)===i.startAI?2:0)>0?i.getBySeparator(a,l):i.getByLength(a,l)).ai.length)o=l+r+e.id.length+e.ai.length;else if((o=a.indexOf(i.startAI,l+1))<0){if(l+e.ai.max+e.id.length+r<a.length)throw new Error("Separators are required after variable length identifiers");o=a.length}if(p.value=a.substring(l,o).replace(s,""),i.validate(e,p.value),n.pushData(p,i.dependentStates),o>=a.length)break;l=o,p.state!==i.startState&&(n[i.startState].move(p),p.state=i.startState),e.ai.length||n.addPattern(i.START)}t.index=t.value.length},e.prototype.validate=function(t,e){var o=e.substr(t.id.length),r=t.ai;if(!r.type&&!Yh.test(o))throw new Error("Application identifier "+t.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"===r.type&&!qh.test(o))throw new Error("Application identifier "+t.id+" is alphanumeric only but contains non alphanumeric character(s).");if(r.length&&r.length!==o.length)throw new Error("Application identifier "+t.id+" must be "+r.length+" characters long.");if(r.min&&r.min>o.length)throw new Error("Application identifier "+t.id+" must be at least "+r.min+" characters long.");if(r.max&&r.max<o.length)throw new Error("Application identifier "+t.id+" must be at most "+r.max+" characters long.")},e.prototype.getByLength=function(t,e){for(var o,r,i=2;i<=4;i++)if(o=au(t,e,i),r=this.getApplicationIdentifier(o)||this.getApplicationIdentifier(o.substring(0,o.length-1)))return{id:o,ai:r};this.unsupportedAIError(o)},e.prototype.unsupportedAIError=function(t){throw new Error("'"+t+"' is not a supported Application Identifier")},e.prototype.getBySeparator=function(t,e){var o=t.indexOf(this.startAI,e),r=t.indexOf(this.endAI,o),i=t.substring(o+1,r),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,o=e.multiKey;if(e[t])return e[t];for(var r=0;r<o.length;r++){if(o[r].ids&&ct(t,o[r].ids))return o[r].type;if(o[r].ranges)for(var i=o[r].ranges,n=0;n<i.length;n++)if(i[n][0]<=t&&t<=i[n][1])return o[r].type}},e}(Qh);var tu=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),Zh(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=this,e=0;e<this.states.length;e++)t[t.states[e]]=new Jh[t.states[e]](t,t.states)},e.prototype.initValue=function(t,e,o){this.pattern=[],this.value=t,this.width=e,this.height=o,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(var o=this;o[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=o.getNextState(t,e),o[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,o=this.characterMap[t].toString(),r=0;r<o.length;r++)e=parseInt(o.charAt(r),10),this.pattern.push(e),this.totalUnits+=e;this.checkSum+=t*this.position++},e.prototype.getNextState=function(t,e){for(var o=0;o<e.length;o++)if(this[e[o]].is(t.value,t.index))return e[o];this.invalidCharacterError(t.value.charAt(t.index))},e}(Lh),eu=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),Zh(this,{name:"Code 128 A",states:["A"]})},e}(tu),ou=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),Zh(this,{name:"Code 128 B",states:["B"]})},e}(tu),ru=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),Zh(this,{name:"Code 128 C",states:["C"]})},e}(tu),iu=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),Zh(this,{name:"Code 128",states:["C","B","A","FNC4"]})},e}(tu),nu=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),Zh(this,{name:"Code GS1-128",states:["FNC1","C","B"]})},e}(tu);function au(t,e,o){return t.substring(e,e+o)}var su=Object.assign,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.initProperties=function(){t.prototype.initProperties.call(this),su(this,{characterMap:["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221"],START:"21",STOP:"121",checkSumType:"",checkSums:fu})},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,e=this.checkSums[this.checkSumType].call(this.checkSums,this.value);this.checksum=e.join("");for(var o=0;o<e.length;o++)t.checkSumLength++,t.addPattern(t.characterMap[e[o]])},e}(Lh),pu=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),su(this,{name:"MSI Modulo10",checkSumType:"Modulo10"})},e}(lu),cu=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),su(this,{name:"MSI Modulo11",checkSumType:"Modulo11"})},e}(lu),hu=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),su(this,{name:"MSI Modulo10 Modulo10",checkSumType:"Modulo10Modulo10"})},e}(lu),uu=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),su(this,{name:"MSI Modulo11 Modulo10",checkSumType:"Modulo11Modulo10"})},e}(lu),fu={Modulo10:function(t){var e,o,r,i=[0,""],n=t.length%2;for(e=0;e<t.length;e++)i[(e+n)%2]+=parseInt(t.charAt(e),10);for(r=i[0],o=(2*i[1]).toString(),e=0;e<o.length;e++)r+=parseInt(o.charAt(e),10);return[(10-r%10)%10]},Modulo11:function(t){for(var e,o=0,r=t.length,i=0;i<r;i++)o+=(((r-i)%6||6)+1)*t.charAt(i);return 10!=(e=(11-o%11)%11)?[e]:[1,0]},Modulo11Modulo10:function(t){var e,o=this.Modulo11(t);return e=t+o[0],o.concat(this.Modulo10(e))},Modulo10Modulo10:function(t){var e,o=this.Modulo10(t);return e=t+o[0],o.concat(this.Modulo10(e))}},du=Object.assign,vu=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),du(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,o){var r=String(t);if(12!==r.length||/\D/.test(r))throw new Error('The value of the "EAN13" encoding should be 12 symbols');this.pattern=[],this.options.height=o,this.baseUnit=e/(95+this.quietZoneLength),this.value=r,this.checksum=this.calculateChecksum(),this.leftKey=r[0],this.leftPart=r.substr(1,6),this.rightPart=r.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 o=this,r=0;r<t.length;r++)e&&parseInt(o.keyTable[e].charAt(r),10)?o.addPieces(Array.prototype.slice.call(o.characterMap.digits[t.charAt(r)]).reverse(),!0):o.addPieces(o.characterMap.digits[t.charAt(r)],!0)},e.prototype.addPieces=function(t,e){for(var o=this,r=0;r<t.length;r++)e?o.pattern.push({y1:0,y2:.95*o.options.height,width:t[r]}):o.pattern.push(t[r])},e.prototype.calculateChecksum=function(){for(var t=0,e=0,o=this.value.split("").reverse().join(""),r=0;r<o.length;r++)r%2?e+=parseInt(o.charAt(r),10):t+=parseInt(o.charAt(r),10);return(10-(3*t+e)%10)%10},e}(Lh),yu=Object.assign,gu=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),yu(this,{name:"EAN 8"})},e.prototype.initValue=function(t,e,o){if(7!==t.length||/\D/.test(t))throw new Error("Invalid value provided");this.value=t,this.options.height=o,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}(vu),mu={code11:Dh,code39:zh,code39extended:Hh,code93:Fh,code93extended:Gh,code128:iu,code128a:eu,code128b:ou,code128c:ru};function bu(t,e){var o=t.style.display;"canvas"===e&&(t.style.display="block");var r={width:t.clientWidth,height:t.clientHeight};return t.style.display=o,r}mu["gs1-128"]=nu,mu.msimod10=pu,mu.msimod11=cu,mu.msimod1010=hu,mu.msimod1110=uu,mu.postnet=Kh,mu.ean8=gu,mu.ean13=vu;var _u=function(t){function e(e,o,r){void 0===r&&(r=$t),t.call(this),this.options=X({},this.options,o),this.element=e,this.onError=r,this._initElement(),this._initSurface(),this._setOptions(o),o&&xt(o.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(){I(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 D.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,o=this.options,r=o.value,i=o.text,n=$(i.margin),a=this._getSize(),s=o.border||{},l=this.encoding,p=new ie(0,0,a.width,a.height).unpad(s.width).unpad(o.padding),c=p.height(),h=new D.drawing.Group;this.contentBox=p,h.append(this._getBackground(a)),i.visible&&(c-=D.drawing.util.measureText(r,{font:i.font}).height+n.top+n.bottom);try{t=l.encode(r,p.width(),c)}catch(t){return this.onError(t),h}return i.visible&&(e=r,o.checksum&&xt(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=bu(this.element,this.options.renderAs),e=new D.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(!xt(t))return this.options.value;this.options.value=String(t),this.redraw()},e.prototype._getBands=function(t,e){for(var o,r,i=this.contentBox,n=i.x1,a=new D.drawing.Group,s=0;s<t.length;s++){if(o=(r=K(t[s])?t[s]:{width:t[s],y1:0,y2:this.barHeight}).width*e,s%2){var l=D.geometry.Rect.fromPoints(new D.geometry.Point(n,r.y1+i.y1),new D.geometry.Point(n+o,r.y2+i.y1)),p=D.drawing.Path.fromRect(l,{fill:{color:this.options.color},stroke:null});a.append(p)}n+=o}return a},e.prototype._getBackground=function(t){var e=this.options,o=e.border||{},r=new ie(0,0,t.width,t.height).unpad(o.width/2);return D.drawing.Path.fromRect(r.toRect(),{fill:{color:e.background},stroke:{color:o.width?o.color:"",width:o.width,dashType:o.dashType}})},e.prototype._getText=function(t){var e=this.options.text,o=this._textbox=new Ee(t,{font:e.font,color:e.color,align:"center",vAlign:"bottom",margin:e.margin});return o.reflow(this.contentBox),o.renderVisual(),o.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),!mu[this.type])throw new Error("Encoding '"+this.type+"' is not supported.");this.encoding=new mu[this.type],this.options=X({},this.options,t)},e}(D.Class);Bt(_u,{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}});const xu=_u;var wu={width:500,height:100};const Cu=function(t,e){if(void 0===e&&(e=wu),!t)throw new Error("Please specify barcode type to validate.");var o=t.toLowerCase(),r="";if("upca"===o?(o="ean13",r="0"):"upce"===o&&(o="ean8",r="0"),!mu[o])throw new Error("Encoding '"+t+"' is not supported.");return function(t,e,o){return function(r){try{t.encode(o+r,e.width,e.height)}catch(t){return{valid:!1,error:t}}return{valid:!0}}}(new mu[o],e,r)};var Ou=Object.assign;function Su(t,e){for(var o=[],r=0;r<t.length;)o.push(t.substring(r,r+e)),r+=e;return o}function Pu(t,e){var o=Number(t).toString(2);return o.length<e&&(o=new Array(e-o.length+1).join(0)+o),o}function Au(t){return parseInt(t,2)}var ku=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(var t=this;void 0!==this.matrix[this.row][this.column];)t.move(),(t.row<0||t.row>=t.matrix.length)&&(t.dir=-t.dir,t.startColumn-=8!==t.startColumn?2:3,t.column=t.startColumn,t.row=t.dir<0?t.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}(D.Class),Tu=function(t){function e(e,o){t.call(this),this.dataString=e,this.version=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(D.Class),ju=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 o=function(t){var e,o=[],r=0,i=t;for(o.push(yf(i,of,rf,nf,e)),e=o[0].mode,i=i.substr(o[0].modeString.length);i.length>0;){var n=yf(i,af,sf,lf,e);n.mode!==e?(e=n.mode,o.push(n),r++):o[r].modeString+=n.modeString,i=i.substr(n.modeString.length)}return o}(t),r=function(t){for(var e=0,o=0;o<t.length;o++)e+=Ru[t[o].mode].getStringBitsLength(t[o].modeString.length);return Math.ceil(e/8)}(o),i=gf(r,e),n=function(t,e){for(var o="",r=0;r<t.length;r++)o+=Ru[t[r].mode].encode(t[r].modeString,e);return o}(o,i);return new Tu(n,i)},e}(D.Class),Eu=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(){Ou(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+Pu(t,this.getBitsCharacterCount(e))},e.prototype.encode=function(){},e.prototype.getStringBitsLength=function(){},e.prototype.getValue=function(){},e}(D.Class),Mu=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),Ou(this,{bitsInCharacterCount:[10,12,14],modeIndicator:"0001"})},e.prototype.getValue=function(t){return parseInt(t,10)},e.prototype.encode=function(t,e){var o,r=Su(t,3),i=this.getModeCountString(t.length,e);for(o=0;o<r.length-1;o++)i+=Pu(r[o],10);return i+Pu(r[o],1+3*r[o].length)},e.prototype.getStringBitsLength=function(t,e){var o=t%3;return 4+this.getBitsCharacterCount(e)+10*Math.floor(t/3)+3*o+(0===o?0:1)},e}(Eu),Iu=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),Ou(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 o,r=Su(t,2),i=this.getModeCountString(t.length,e);for(o=0;o<r.length-1;o++)i+=Pu(45*this.getValue(r[o].charAt(0))+this.getValue(r[o].charAt(1)),11);return i+Pu(2===r[o].length?45*this.getValue(r[o].charAt(0))+this.getValue(r[o].charAt(1)):this.getValue(r[o].charAt(0)),1+5*r[o].length)},e.prototype.getStringBitsLength=function(t,e){return 4+this.getBitsCharacterCount(e)+11*Math.floor(t/2)+t%2*6},e}(Eu),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.initProperties=function(){t.prototype.initProperties.call(this),Ou(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 o=this.getModeCountString(t.length,e),r=0;r<t.length;r++)o+=Pu(this.getValue(t.charAt(r)),8);return o},e.prototype.getStringBitsLength=function(t,e){return 4+this.getBitsCharacterCount(e)+8*t},e}(Eu),Ru={};Ru.numeric=new Mu,Ru.alphanumeric=new Iu,Ru.byte=new Lu;var Du=function(t){function e(){t.call(this),this.initProperties(),this.mode=Ru[this.encodingMode]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){Ou(this,{encodingMode:"byte",utfBOM:"111011111011101110111111",initialModeCountStringLength:20,ranges:[128,2048,65536,2097152,67108864]})},e.prototype.getEncodingResult=function(t,e){var o=this.encode(t),r=gf(this.getDataCodewordsCount(o),e),i=this.mode.getModeCountString(o.length/8,r)+o;return new Tu(i,r)},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,o=0;o<t.length;o++)e+=this.encodeCharacter(t.charCodeAt(o));return e},e.prototype.encodeCharacter=function(t){var e=this.getBytesCount(t),o=e-1,r="";if(1===e)r=Pu(t,8);else{for(var i=8-e,n=0;n<o;n++)r=Pu(t>>6*n&63|128,8)+r;r=(t>>6*o|255>>i<<i).toString(2)+r}return r},e.prototype.getBytesCount=function(t){for(var e=this.ranges,o=0;o<e.length;o++)if(t<e[o])return o+1},e}(D.Class),Bu=[{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}}],Nu="0000",zu="numeric",Vu="alphanumeric",Hu="byte",Uu={1:0},Fu={0:1},Gu={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},Wu=[1,0,1,1,1],Xu=[1,0,1],Ku={L:"01",M:"00",Q:"11",H:"10"},Yu=["11101100","00010001"],qu=93,Zu=[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}],Qu=/^\d+/,$u="A-Z0-9 $%*+./:-",Ju=new RegExp("^[A-Z $%*+./:-]+"),tf=new RegExp("^["+$u+"]+"),ef=new RegExp("^[^"+$u+"]+"),of=8,rf=5,nf=8,af=17,sf=9,lf=16,pf=[[1,0],[1,25,0]];function cf(t,e,o,r){for(var i=0;i<t.length;i++)t[i][o][r]=e}function hf(t,e,o,r){for(var i=0;i<Zu.length;i++)t[i][o][r]=Zu[i](o,r)?1^e:parseInt(e,10)}function uf(t,e){for(var o=[],r=t.length-2;r>=0;r--)o[r]=t[r]^e[r];return o}function ff(t,e){for(var o=[],r=0;r<t.length;r++)for(var i=0;i<e.length;i++)void 0===o[r+i]?o[r+i]=(t[r]+(e[i]>=0?e[i]:0))%255:o[r+i]=Uu[Fu[o[r+i]]^Fu[(t[r]+e[i])%255]];return o}function df(t,e){var o=[],r=t.length-1;do{o[r]=Fu[(t[r]+e)%255],r--}while(void 0!==t[r]);return o}function vf(t,e){var o,r,i=pf[e-1],n=new Array(e).concat(t),a=new Array(n.length-i.length).concat(i),s=t.length,l=[];for(r=0;r<s;r++)o=df(a,Uu[n[n.length-1]]),a.splice(0,1),n=uf(o,n);for(r=n.length-1;r>=0;r--)l[e-1-r]=Pu(n[r],8);return l}function yf(t,e,o,r,i){var n,a,s=Qu.exec(t),l=s?s[0]:"",p=Ju.exec(t),c=p?p[0]:"",h=tf.exec(t),u=h?h[0]:"";return l&&(l.length>=e||t.length===l.length||l.length>=o&&!tf.test(t.charAt(l.length)))?(n=zu,a=l):u&&(t.length===u.length||u.length>=r||i===Vu)?(n=Vu,a=l||c):(n=Hu,a=u?u+ef.exec(t.substring(u.length))[0]:ef.exec(t)[0]),{mode:n,modeString:a}}function gf(t,e){var o=0,r=Bu.length-1,i=Math.floor(Bu.length/2);do{t<Bu[i][e].totalDataCodewords?r=i:o=i,i=o+Math.floor((r-o)/2)}while(r-o>1);return t<=Bu[o][e].totalDataCodewords?i+1:r+1}function mf(t,e,o){var r=Au(e),i=e.length-1,n=t<<i,a=Pu(t,o-i),s=function(t,e){var o=e.toString(2).length,r=t.toString(2).length,i=t;do{r=(i^=e<<r-o).toString(2).length}while(r>=o);return i}(n,r);return a+Pu(s,i)}function bf(t,e){return parseInt(t.charAt(e),10)}function _f(t,e){var o,r,i=t[0],n=0,a=e.length;for(o=0,r=8;o<=8;o++)6!==o&&cf(t,bf(e,a-1-n++),o,r);for(o=8,r=7;r>=0;r--)6!==r&&cf(t,bf(e,a-1-n++),o,r);for(n=0,r=i.length-1,o=8;r>=i.length-8;r--)cf(t,bf(e,a-1-n++),o,r);for(cf(t,1,i.length-8,8),o=i.length-7,r=8;o<i.length;o++)cf(t,bf(e,a-1-n++),o,r)}function xf(t,e){for(var o,r,i,n=t[0].length,a=n-11,s=n-11,l=0;l<e.length;l++)o=Math.floor(l/3),r=l%3,cf(t,i=bf(e,e.length-l-1),0+o,a+r),cf(t,i,s+r,0+o)}function wf(t,e,o,r){for(var i,n=e.length+2,a=e.length+1,s=0;s<e.length;s++)for(var l=s;l<n-s;l++)cf(t,i=e[s],o+l,r+s),cf(t,i,o+s,r+l),cf(t,i,o+a-l,r+a-s),cf(t,i,o+a-s,r+a-l)}function Cf(t,e,o,r){var i=o,n=r,a=t[0];do{cf(t,0,i,r),cf(t,0,o,n),i+=e[0],n+=e[1]}while(i>=0&&i<a.length)}function Of(t,e,o,r,i){e[t][r]=(e[t][r]<<1^i)%128,e[t][r]===qu&&(o[t]+=40)}function Sf(t,e,o,r,i,n){o[t][n]===r?i[t][n]++:(o[t][n]=r,i[t][n]>=5&&(e[t]+=3+i[t][n]-5),i[t][n]=1)}function Pf(t,e){var o=Math.floor(t/e*100),r=o%5,i=Math.abs(o-r-50),n=Math.abs(o+5-r-50);return 10*Math.min(i/5,n/5)}function Af(t,e,o){var r=function(t){return t&&t.toLowerCase().indexOf("utf_8")>=0?new Du:new ju}(o),i=r.getEncodingResult(t,e),n=i.version,a=Bu[n-1][e],s=function(t,e){for(var o,r,i,n,a,s=0,l=[],p=[],c=e.groups,h=0;h<c.length;h++){i=c[h][0];for(var u=0;u<i;u++){r=c[h][1],o=[],n=[];for(var f=1;f<=r;f++)a=t.substring(s,s+8),o.push(a),n[r-f]=Au(a),s+=8;l.push(o),p.push(vf(n,e.errorCodewordsPerBlock))}}return[l,p]}(function(t,e){for(var o=8*e,r=0,i=0,n=t;n.length<o&&r<4;)n+=Nu.charAt(r++);for(n.length%8!=0&&(n+=new Array(9-n.length%8).join("0"));n.length<o;)n+=Yu[i],i^=1;return n}(i.dataString,a.totalDataCodewords),a),l=function(t){for(var e=[],o=17+4*t,r=0;r<Zu.length;r++){e[r]=new Array(o);for(var i=0;i<o;i++)e[r][i]=new Array(o)}return e}(n);!function(t){var e=t[0].length;wf(t,Wu,0,0),Cf(t,[-1,-1],7,7),wf(t,Wu,e-7,0),Cf(t,[1,-1],e-8,7),wf(t,Wu,0,e-7),Cf(t,[-1,1],7,e-8)}(l),function(t,e){if(!(e<2)){var o,r,i=t[0],n=i.length,a=Math.floor(e/7),s=[6],l=0;for((o=Gu[e])?r=(n-13-o)/a:o=r=(n-13)/(a+1),s.push(s[l++]+o);s[l]+r<n;)s.push(s[l++]+r);for(var p=0;p<s.length;p++)for(var c=0;c<s.length;c++)void 0===i[s[p]][s[c]]&&wf(t,Xu,s[p]-2,s[c]-2)}}(l,n),function(t){for(var e=1,o=t[0].length,r=8;r<o-8;r++)cf(t,e,6,r),cf(t,e,r,6),e^=1}(l),n>=7&&xf(l,Pu(0,18)),_f(l,Pu(0,15)),function(t,e){for(var o,r,i,n=new ku(t[0]),a=0;a<e.length;a++)for(o=e[a],r=0;o.length>0;){for(var s=0;s<o.length;s++)for(var l=0;l<8;l++)i=n.getNextCell(),hf(t,o[s][r].charAt(l),i.row,i.column);for(r++;o[0]&&r===o[0].length;)o.splice(0,1)}for(;i=n.getNextRemainderCell();)hf(t,0,i.row,i.column)}(l,s);var p=function(t){var e,o,r=[],i=[],n=[],a=[],s=[],l=t[0].length;for(o=0;o<t.length;o++)r[o]=0,n[o]=0,s[o]=[0,0],a[o]=[0,0],i[o]=[];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]&&(r[h]+=3),Of(h,a,r,0,e[p][c]),Of(h,a,r,1,e[c][p]),Sf(h,r,i,e[p][c],s,0),Sf(h,r,i,e[c][p],s,1);var u,f=l*l,d=Number.MAX_VALUE;for(o=0;o<r.length;o++)r[o]+=Pf(n[o],f),r[o]<d&&(d=r[o],u=o);return u}(l),c=l[p];return n>=7&&xf([c],function(t){return mf(t,"1111100100101",18)}(n)),_f([c],function(t){var e,o="";if(0===Au(t))return"101010000010010";e=mf(Au(t),"10100110111",15);for(var r=0;r<e.length;r++)o+=e.charAt(r)^"101010000010010".charAt(r);return o}(Ku[e]+Pu(p,3))),c}!function(){var t,e;for(e=1;e<255;e++)(t=2*Fu[e-1])>255&&(t^=285),Fu[e]=t,Uu[t]=e;t=2*Fu[e-1]^285,Fu[e]=t,Fu[-1]=0}(),function(){for(var t=2;t<=68;t++){var e=pf[t-1],o=[t,0];pf[t]=ff(e,o)}}();var kf=Math.round,Tf=[[0,1],[1,1],[1,2],[2,2],[2,1],[3,1],[3,0],[2,0],[2,-1],[1,-1],[1,0]],jf=[[0,1],[1,1],[1,0]],Ef=function(t){function e(e,o,r){void 0===r&&(r=$t),t.call(this),this.options=X({},this.options,o),this.element=e,this.wrapper=this.element,this.onError=r,this._initElement(),this._initSurface(),this.setOptions(o)}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(){I(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 D.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,o=t.clientHeight,r={width:0,height:0};return e>0&&(r.width=e),o&&(r.height=o),r},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,o,r,i,n=this._value,a=this.options.border||{},s=this.options.padding||0,l=a.width||0;a.width=l;var p=new D.drawing.Group;try{n&&(o=Af(n,this.options.errorCorrection,this.options.encoding),i=(r=this._getSize())-2*(l+s),t=this._calculateBaseUnit(i,o.length),e=l+s+(i-o.length*t)/2,p.append(this._renderBackground(r,a)),p.append(this._renderMatrix(o,t,e)),this._hasCustomLogo()?p.append(this._renderLogo(r,t)):this._isSwiss()&&p.append(this._renderSwissCode(r,t)))}catch(t){this.onError(t)}return p},e.prototype._renderLogo=function(t,e){var o,r=kf(t/2),i=this._getLogoSize(7*e),n=this.options.overlay.imageUrl,a={x:r-i.width/2,y:r-i.height/2};return o=new D.geometry.Rect(new D.geometry.Point(a.x,a.y),new D.geometry.Size(i.width,i.height)),new D.drawing.Image(n,o)},e.prototype._renderSwissCode=function(t,e){var o=this._getLogoSize(7*e),r=(o=Math.max(o.width,o.height))/4,i=r/2,n=t/2,a={},s=new D.drawing.Group;return a.x=a.y=Math.ceil(n-e-o/2),s.append(this._renderShape(a,Math.ceil(o+2*e),jf,"#fff")),a.x=a.y=n-o/2,s.append(this._renderShape(a,o,jf,this.options.color)),a.x=n+i-o/2,a.y=n+i+r-o/2,s.append(this._renderShape(a,r,Tf,"#fff")),s},e.prototype._renderShape=function(t,e,o,r){var i=new D.drawing.MultiPath({fill:{color:r},stroke:null});i.moveTo(t.x,t.y);for(var n=0;n<o.length;n++)i.lineTo(t.x+e*o[n][0],t.y+e*o[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=bu(this.element,this.options.renderAs),o=Math.min(e.width,e.height);t=o>0?o:200}return t},e.prototype._calculateBaseUnit=function(t,e){var o=Math.floor(t/e);if(o<1){var r=Math.ceil(1*e);this.onError(new Error("Insufficient size for QR Code: the current size is "+t+"px and the minimum size is "+r+"px."))}else o*e>=t&&o-1>=1&&o--;return o},e.prototype._renderMatrix=function(t,e,o){for(var r=new D.drawing.MultiPath({fill:{color:this.options.color},stroke:null}),i=0;i<t.length;i++)for(var n=o+i*e,a=0;a<t.length;){for(;0===t[i][a]&&a<t.length;)a++;if(a<t.length){for(var s=a;1===t[i][a];)a++;var l=kf(o+s*e),p=kf(n),c=kf(o+a*e),h=kf(n+e);r.moveTo(l,p).lineTo(l,h).lineTo(c,h).lineTo(c,p).close()}}return r},e.prototype._renderBackground=function(t,e){var o=new ie(0,0,t,t).unpad(e.width/2);return D.drawing.Path.fromRect(o.toRect(),{fill:{color:this.options.background},stroke:{color:e.color,width:e.width}})},e.prototype.setOptions=function(t){var e=t||{};this.options=Ou(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,o=this.options.overlay.height;return e||o?e&&!o?o=e:!e&&o&&(e=o):e=o=t,{width:e,height:o}},e}(D.Class);Bt(Ef,{name:"QRCode",renderAs:"svg",encoding:"ISO_8859_1",value:"",errorCorrection:"L",background:"#fff",color:"#000",size:"",padding:0,border:{color:"",width:0},overlay:{type:"image",imageUrl:"",width:0,height:0}});const Mf=Ef,If=function(t){return void 0===t&&(t="ISO_8859_1"),function(e){try{Af(e,"L",t)}catch(t){return{valid:!1,error:t}}return{valid:!0}}};var Lf={WGS84:{a:6378137,b:6356752.314245179,f:.0033528106647474805,e:.08181919084262149}};function Rf(t){return t*t}var Df=Math,Bf=Df.abs,Nf=Df.atan,zf=Df.atan2,Vf=Df.cos,Hf=Df.sin,Uf=Df.tan,Ff=function(t){function e(e,o){t.call(this),this.initProperties(),1===arguments.length?(this.lat=e[0],this.lng=e[1]):(this.lat=e,this.lng=o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){X(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=Mt(this.lng,t),this.lat=Mt(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,o,r){var i=Et(o),n=r||Lf.WGS84,a=Et(this.lat),s=Et(this.lng),l=t/n.a,p=Df.asin(Hf(a)*Vf(l)+Vf(a)*Hf(l)*Vf(i)),c=s+zf(Hf(i)*Hf(l)*Vf(a),Vf(l)-Hf(a)*Hf(p));return new e(wt(p),wt(c))},e.prototype.greatCircleTo=function(t,o){var r=e.create(r),i=o||Lf.WGS84;if(!r||this.clone().round(8).equals(r.clone().round(8)))return{distance:0,azimuthFrom:0,azimuthTo:0};for(var n,a,s,l,p,c,h,u,f=i.a,d=i.b,v=i.f,y=Et(r.lng-this.lng),g=Nf((1-v)*Uf(Et(this.lat))),m=Hf(g),b=Vf(g),_=Nf((1-v)*Uf(Et(r.lat))),x=Hf(_),w=Vf(_),C=y,O=this.DISTANCE_ITERATIONS,S=!1;!S&&O-- >0;){a=Hf(C),s=Vf(C),l=Df.sqrt(Rf(w*a)+Rf(b*x-m*w*s)),u=zf(l,c=m*x+b*w*s);var P=b*w*a/l;h=0,0!=(p=1-Rf(P))&&(h=c-2*m*x/p),n=C;var A=v/16*p*(4+v*(4-3*p));C=y+(1-A)*v*P*(u+A*l*(h+A*c*(2*Rf(h)-1))),S=Bf(C-n)<=this.DISTANCE_CONVERGENCE}var k=p*(Rf(f)-Rf(d))/Rf(d),T=1+k/16384*(4096+k*(k*(320-175*k)-768)),j=k/1024*(256+k*(k*(74-47*k)-128)),E=j*l*(h+j/4*(c*(2*Rf(h)-1)-j/6*h*(4*Rf(l)-3)*(4*Rf(h)-3))),M=zf(w*a,b*x-m*w*s),I=zf(b*a,-m*w+b*x*s);return{distance:Mt(d*T*(u-E),this.DISTANCE_PRECISION),azimuthFrom:wt(M),azimuthTo:wt(I)}},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,o){if(xt(t))return t instanceof e?t.clone():1===arguments.length&&2===t.length?e.fromLatLng(t):new e(t,o)},e}(D.Class),Gf=Math,Wf=Gf.atan,Xf=Gf.exp,Kf=Gf.pow,Yf=Gf.sin,qf=Gf.log,Zf=Gf.tan,Qf=D.geometry.Point,$f=Gf.PI,Jf=$f/2,td=$f/4,ed=$f/180,od=Lf.WGS84,rd=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=X({},this.options,t)},e.prototype.initProperties=function(){X(this,{MAX_LNG:180,MAX_LAT:85.0840590501,INVERSE_ITERATIONS:15,INVERSE_CONVERGENCE:1e-12})},e.prototype.forward=function(t,e){var o=this,r=o.options,i=r.datum.a,n=r.centralMeridian,a=Tt(t.lat,-o.MAX_LAT,o.MAX_LAT),s=e?Tt(t.lng,-o.MAX_LNG,o.MAX_LNG):t.lng,l=Et(s-n)*i,p=o._projectLat(a);return new Qf(l,p)},e.prototype._projectLat=function(t){var e=this.options.datum,o=e.e,r=e.a,i=Et(t),n=Zf(td+i/2),a=o*Yf(i),s=Kf((1-a)/(1+a),o/2);return r*qf(n*s)},e.prototype.inverse=function(t,e){var o=this,r=o.options,i=r.datum.a,n=r.centralMeridian,a=t.x/(ed*i)+n,s=Tt(o._inverseY(t.y),-o.MAX_LAT,o.MAX_LAT);return e&&(a=Tt(a,-o.MAX_LNG,o.MAX_LNG)),new Ff(s,a)},e.prototype._inverseY=function(t){var e,o=this,r=o.options.datum,i=r.a,n=r.e,a=n/2,s=Xf(-t/i),l=Jf-2*Wf(s);for(e=0;e<=o.INVERSE_ITERATIONS;e++){var p=n*Yf(l),c=Kf((1-p)/(1+p),a),h=Jf-2*Wf(s*c)-l;if(l+=h,Gf.abs(h)<=o.INVERSE_CONVERGENCE)break}return wt(l)},e}(D.Class);Bt(rd,{centralMeridian:0,datum:od});var id=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),X(this,{MAX_LAT:85.0511287798})},e.prototype._projectLat=function(t){var e=this.options.datum.a,o=Et(t),r=Zf(td+o/2);return e*qf(r)},e.prototype._inverseY=function(t){var e=this.options.datum.a,o=Xf(-t/e);return wt(Jf-2*Wf(o))},e}(rd),nd=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 Qf(t.lng,t.lat)},e.prototype.inverse=function(t){return new Ff(t.y,t.x)},e}(D.Class),ad=function(t){function e(){t.call(this);var e=this._proj=new id,o=this.c=2*$f*e.options.datum.a;this._tm=D.geometry.transform().translate(.5,.5).scale(1/o,-1/o),this._itm=D.geometry.transform().scale(o,-o).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,o){return this._proj.forward(t,o).transform(this._tm).scale(e||1)},e.prototype.toLocation=function(t,e,o){var r=t.clone().scale(1/(e||1)).transform(this._itm);return this._proj.inverse(r,o)},e}(D.Class),sd=(function(t){function e(){t.call(this),this._proj=new rd}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)}}(D.Class),function(t){function e(){t.call(this),this._proj=new nd}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)}}(D.Class),Object.defineProperty),ld=(Object.assign,function(t){var e=document.createElement("div");return e.innerHTML=t,e.firstChild}),pd=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},cd=function(t,e){e.insertBefore(t,e.firstChild)},hd=function(t){return t.replace(/([a-z][A-Z])/g,(function(t){return t.charAt(0)+"-"+t.charAt(1).toLowerCase()}))},ud=function(t){return t&&String(t).endsWith("px")?t:String(t)+"px"},fd=function(t){var e,o=!1,r=[],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/},a={tablet:/playbook|ipad|fire/i},s={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)&&(r=t.match(i[l]))){if("windows"===l&&"plugins"in navigator)return!1;(o={}).device=l,o.tablet=dd(l,a,!1),o.browser=dd(t,s,"default"),o.name=dd(l,n),o[o.name]=!0,o.majorVersion=r[2],o.minorVersion=(r[3]||"0").replace("_","."),e=o.minorVersion.replace(".","").substr(0,2),o.flatVersion=o.majorVersion+e+new Array(3-(e.length<3?e.length:2)).join("0");break}return o};function dd(t,e,o){for(var r in e)if(e.hasOwnProperty(r)&&e[r].test(t))return r;return void 0!==o?o:t}var vd=function(){var t={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"},e=yd();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},yd=function(){var t=fd(navigator.userAgent),e=function(t){var e=!1,o=[],r={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 r)if(r.hasOwnProperty(i)&&(o=t.match(r[i]))){(e={})[i]=!0,e[o[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,e.version=parseInt(document.documentMode||o[2],10);break}return e}(navigator.userAgent),o=e.chrome,r=e.crios,i=e.mozilla,n=e.safari,a={};a.mobileOS=t,a.touch="ontouchstart"in window,a.pointers=!o&&!r&&!i&&!n&&window.PointerEvent,a.msPointers=!o&&window.MSPointerEvent,a.mouseAndTouchPresent=a.touch&&!(a.mobileOS.ios||a.mobileOS.android),a.eventCapture=document.documentElement.addEventListener;var s=document.createElement("table"),l=a.transitions=!1,p=a.transforms=!1,c="string";return["Moz","webkit","O","ms"].forEach((function(t){var e=typeof s.style[t+"Transition"]===c;if(e||typeof s.style[t+"Transform"]===c){var o=t.toLowerCase();return p={css:"ms"!==o?"-"+o+"-":"",prefix:t,event:"o"===o||"webkit"===o?o:""},e&&((l=p).event=l.event?l.event+"TransitionEnd":"transitionend"),!1}})),s=null,a.transforms=p,a.transitions=l,a.delayedClick=function(){if(a.touch){if(a.mobileOS.ios)return!0;if(a.mobileOS.android){if(!a.browser.chrome)return!0;if(a.browser.version<32)return!1;var t=document.querySelector("meta[name=viewport]");return!(t?t.getAttribute("content"):"").match(/user-scalable=no/i)}}return!1},a},gd=function(t,e){return t.bind(e)},md=function(t,e,o,r,i){bd(t,e,o,r,i)},bd=function(t,e,o,r,i){(M(e)?e:(e||"").split(" ")).forEach((function(e){_d(t,e,o,r,i)}))},_d=function(t,e,o,r,i){var n,a=r;o&&U(o)&&!r?a=o:o&&"string"==typeof o&&U(a)&&(n=o),t.addEventListener(e,(function(e){var o=e.target?e.target.closest(n):null;if(!n||n&&e.target&&o){var r=n?o:e.currentTarget;sd(e,"currentTarget",{value:r}),sd(e,"delegateTarget",{value:t}),a(e)}}),Boolean(i))},xd=function(t,e,o,r,i){wd(t,e,o,r,i)},wd=function(t,e,o,r){(M(e)?e:(e||"").split(" ")).forEach((function(e){Cd(t,e,o,r)}))},Cd=function(t,e,o,r){t.removeEventListener(e,o,Boolean(r))},Od=function(t){var e=vd(navigator.userAgent);return t.replace(/([^ ]+)/g,(function(t){return e[t]||t}))},Sd=function(t,e){var o=t.prototype;o.events?e.forEach((function(t){o.events.indexOf(t)<0&&o.events.push(t)})):o.events=e},Pd=function(){return Number(new Date)},Ad=function(){},kd=function(t){var e=[];if(t)for(var o=hd(t).split("-"),r=0;r<o.length;r++)e.push("k-pos-"+o[r]);return e.join(" ")},Td="string",jd="function",Ed=function(){this._defaultPrevented=!0},Md=function(){return!0===this._defaultPrevented},Id=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,o){var r,i,n,a,s=this,l=typeof t===Td?[t]:t||[],p=typeof e===jd;if(void 0===e){for(r in t)s.bind(r,t[r]);return s}var c=function(){var t=l[r];(a=p?e:e[t])&&(o&&(n=a,a=function(){s.unbind(t,a),n.apply(s,arguments)},a.original=n),(s._events[t]=s._events[t]||[]).push(a))};for(r=0,i=l.length;r<i;r++)c();return s},e.prototype.one=function(t,e){return this.bind(t,e,!0)},e.prototype.first=function(t,e){var o,r,i,n=this,a=typeof t===Td?[t]:t,s=typeof e===jd;for(o=0,r=a.length;o<r;o++){var l=a[o];(i=s?e:e[l])&&(n._events[l]=n._events[l]||[]).unshift(i)}return n},e.prototype.trigger=function(t,e){var o,r,i=this,n=i._events[t];if(n){var a=e||{};for(a.sender=i,a._defaultPrevented=!1,a.preventDefault=Ed,a.isDefaultPrevented=Md,o=0,r=(n=n.slice()).length;o<r;o++)n[o].call(i,a);return!0===a._defaultPrevented}return!1},e.prototype.unbind=function(t,e){var o,r=this,i=r._events[t];if(void 0===t)r._events={};else if(i)if(e)for(o=i.length-1;o>=0;o--)i[o]!==e&&i[o].original!==e||i.splice(o,1);else r._events[t]=[];return r},e.prototype._setEvents=function(t){for(var e=this,o=(this.events||[]).length,r=0;r<o;r++){var i=e.events[r];e.options[i]&&t[i]&&(e.unbind(i,e.options[i]),e._events&&e._events[i]&&delete e._events[i])}this.bind(this.events,t)},e}(D.Class),Ld=function(t){function e(e,o){t.call(this),this.element=e,this._initOptions(o),this.items=[],I(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=X({},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;xt(t)&&("string"==typeof t&&(e={text:t}),this.items.push(e),this._render())},e.prototype.remove=function(t){for(var e=[],o=0;o<this.items.length;o++){var r=this.items[o];r.text!==t&&e.push(r)}this.items=e,this._render()},e.prototype.clear=function(){this.items=[],pd(this.element)},e.prototype._render=function(){for(var t=[],e=0;e<this.items.length;e++){var o=this.items[e],r=this._itemText(o);""!==r&&t.push(r)}t.length>0?(pd(this.element),function(t,e){var o=document.createElement("div");for(o.innerHTML=t;o.childNodes.length>0;)e.appendChild(o.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="",o=this._inZoomLevel(t.minZoom,t.maxZoom),r=this._inArea(t.extent);return o&&r&&(e+=t.text),e},e.prototype._inZoomLevel=function(t,e){var o=Lt(t,-Number.MAX_VALUE),r=Lt(e,Number.MAX_VALUE);return this._zoom>o&&this._zoom<r},e.prototype._inArea=function(t){var e=!0;return t&&(e=t.contains(this._extent)),e},e}(Id);Bt(Ld,{name:"Attribution",separator:" | "});var Rd={up:{className:"k-navigator-n",iconClass:"k-i-caret-alt-up"},down:{className:"k-navigator-s",iconClass:"k-i-caret-alt-down"},right:{className:"k-navigator-e",iconClass:"k-i-caret-alt-right"},left:{className:"k-navigator-w",iconClass:"k-i-caret-alt-left"}};function Dd(t){var e='<button class="k-button k-button-square k-rounded-full k-button-flat k-button-flat-base k-icon-button '+Rd[t].className+'" aria-label="move '+t+'"><span class="k-icon '+Rd[t].iconClass+'" /></button>';return ld(e)}var Bd=function(t){function e(e,o){t.call(this),this.element=e,this._initOptions(o);var r=Dd("up"),i=Dd("right"),n=Dd("down"),a=Dd("left");this.element.appendChild(r),this.element.appendChild(i),this.element.appendChild(n),this.element.appendChild(a),I(this.element,"k-widget k-navigator"),md(this.element,"click",".k-button",gd(this._click,this));var s=this.element.parentNode.closest("[data-role]");this._keyroot=s||this.element,this._tabindex(this._keyroot),this._keydownHandler=gd(this._keydown,this),md(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(){xd(this._keyroot,"keydown",this._keydownHandler)},e.prototype._tabindex=function(t){var e=t||this.wrapper||this.element,o=this.element,r="tabindex",i=e.getAttribute(r)||o.getAttribute(r);o.removeAttribute(r),e.setAttribute(r,isNaN(i)?0:i)},e.prototype._initOptions=function(t){this.options=X({},this.options,t)},e.prototype._pan=function(t,e){var o=this.options.panStep;this.trigger("pan",{x:t*o,y:e*o})},e.prototype._click=function(t){var e=0,o=0,r=t.currentTarget;r.matches(".k-navigator-n")?o=1:r.matches(".k-navigator-s")?o=-1:r.matches(".k-navigator-e")?e=1:r.matches(".k-navigator-w")&&(e=-1),this._pan(e,o),t.preventDefault()},e.prototype._keydown=function(t){switch(t.which){case Jt.UP:this._pan(0,1),t.preventDefault();break;case Jt.DOWN:this._pan(0,-1),t.preventDefault();break;case Jt.RIGHT:this._pan(1,0),t.preventDefault();break;case Jt.LEFT:this._pan(-1,0),t.preventDefault()}},e}(Id);function Nd(t,e){return ld('<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>')}Bt(Bd,{name:"Navigator",panStep:1}),Sd(Bd,["pan"]);var zd="change",Vd=function(t){function e(e,o){t.call(this),this.element=e,this._initOptions(o);var r=Nd("in","k-i-plus"),i=Nd("out","k-i-minus");this.element.appendChild(r),this.element.appendChild(i),I(this.element,"k-widget k-zoom-control k-button-group k-group-horizontal"),this._clickHandler=this._click.bind(this),md(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),md(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&&xd(this.element,"click",this._clickHandler),this._keyroot&&xd(this._keyroot,"keydown",this._keydownHandler)},e.prototype._tabindex=function(t){var e=t||this.wrapper||this.element,o=this.element,r="tabindex",i=e.getAttribute(r)||o.getAttribute(r);o.removeAttribute(r),e.setAttribute(r,isNaN(i)?0:i)},e.prototype._initOptions=function(t){this.options=X({},this.options,t)},e.prototype._change=function(t){var e=this.options.zoomStep;this.trigger(zd,{delta:t*e})},e.prototype._click=function(t){var e=1;st(t.currentTarget,"k-zoom-out")&&(e=-1),this._change(e),t.preventDefault()},e.prototype._keydown=function(t){switch(t.which){case Jt.NUMPAD_PLUS:case 187:case 61:this._change(1);break;case Jt.NUMPAD_MINUS:case 189:case 173:this._change(-1)}},e}(Id);Bt(Vd,{name:"ZoomControl",zoomStep:1}),Sd(Vd,[zd]);var Hd=Math,Ud=Hd.max,Fd=Hd.min,Gd=function(t){function e(e,o){t.call(this);var r=Ff.create(e),i=Ff.create(o);r.lng+180>i.lng+180&&r.lat+90<i.lat+90?(this.se=r,this.nw=i):(this.se=i,this.nw=r)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={World:{configurable:!0}};return e.prototype.contains=function(t){var e=this.nw,o=this.se,r=Lt(t.lng,t[1]),i=Lt(t.lat,t[0]);return t&&r+180>=e.lng+180&&r+180<=o.lng+180&&i+90>=o.lat+90&&i+90<=e.lat+90},e.prototype.center=function(){var t=this.nw,e=this.se,o=t.lng+(e.lng-t.lng)/2,r=t.lat+(e.lat-t.lat)/2;return new Ff(r,o)},e.prototype.containsAny=function(t){for(var e=!1,o=0;o<t.length;o++)e=e||this.contains(t[o]);return e},e.prototype.include=function(t){var e=this.nw,o=this.se,r=Lt(t.lng,t[1]),i=Lt(t.lat,t[0]);e.lng=Fd(e.lng,r),e.lat=Ud(e.lat,i),o.lng=Ud(o.lng,r),o.lat=Fd(o.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 Ff(t.lat,e.lng),se:this.se,sw:new Ff(e.lat,t.lng)}},e.prototype.toArray=function(){var t=this.nw,e=this.se;return[t,new Ff(t.lat,e.lng),e,new Ff(e.lat,t.lng)]},e.prototype.overlaps=function(t){return this.containsAny(t.toArray())||t.containsAny(this.toArray())},e.create=function(t,o){return t instanceof e?t:t&&o?new e(t,o):t&&4===t.length&&!o?new e([t[0],t[1]],[t[2],t[3]]):void 0},o.World.get=function(){return new e([90,-180],[-90,180])},Object.defineProperties(e,o),e}(D.Class),Wd="centerChange",Xd=function(t){function e(e,o){t.call(this),this.widgetService=e,this.options=X({},this.options,o),this.offset={x:0,y:0}}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={anchor:{configurable:!0}};return e.prototype.show=function(t,e){this.location!==e.location&&(this.anchor=t,this.location=e.location,this.widgetService.notify("showTooltip",Object.assign({anchor:this.anchor},e)),this.visible=!0)},e.prototype.hide=function(){this.widgetService&&this.widgetService.notify("hideTooltip"),this.visible=!1,this.location=null},o.anchor.get=function(){return this._anchor},o.anchor.set=function(t){var e=this.widgetService.widget._toDocumentCoordinates({x:t.left-this.offset.x,y:t.top-this.offset.y});this._anchor={left:e.left,top:e.top}},e.prototype.destroy=function(){this.widgetService=null},Object.defineProperties(e.prototype,o),e}(D.Class);Bt(Xd,{border:{width:1},opacity:1});var Kd=function(t){function e(e,o){t.call(this),this.support=yd(),this._initOptions(o),this.map=e;var r=document.createElement("div");I(r,"k-layer"),r.style.zIndex=this.options.zIndex,r.style.opacity=this.options.opacity,this.element=r,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=X({},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(),o=!xt(t.minZoom)||e>=t.minZoom,r=!xt(t.maxZoom)||e<=t.maxZoom,i=Gd.create(t.extent),n=!i||i.overlaps(this.map.extent());this._setVisibility(o&&r&&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.prototype._layerIndex=function(){return(this.map.layers||[]).indexOf(this)},e}(D.Class),Yd=Math,qd=D.geometry.Point;function Zd(t){return U(t)?t:et.compile(t)}function Qd(t){return new qd(Mt(t.x),Mt(t.y))}function $d(t){var e=t;return"string"!=typeof t&&(e+="px"),e}var Jd=function(t){function e(e,o){t.call(this,e,o),"string"==typeof this.options.subdomains&&(this.options.subdomains=this.options.subdomains.split(""));var r=this._viewType();this._view=new r(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 tv},e.prototype._activate=function(){t.prototype._activate.call(this),this.support.mobileOS||(this._pan||(this._pan=(0,D.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,o=e.extent(),r={nw:e.locationToLayer(o.nw).round(),se:e.locationToLayer(o.se).round()};t.center(e.locationToLayer(e.center())),t.extent(r),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}(Kd);Bt(Jd,{tileSize:256,subdomains:["a","b","c"],urlTemplate:"",zIndex:1});var tv=function(t){function e(e,o){t.call(this),this.element=e,this._initOptions(o),this.pool=new ov}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initOptions=function(t){this.options=X({},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 qd(Yd.floor(t.x/this.options.tileSize),Yd.floor(t.y/this.options.tileSize))},e.prototype.tileCount=function(){var t=this.size(),e=this.pointToTileIndex(this._extent.nw),o=this._extent.nw,r=this.indexToPoint(e).translate(-o.x,-o.y);return{x:Yd.ceil((Yd.abs(r.x)+t.width)/this.options.tileSize),y:Yd.ceil((Yd.abs(r.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,o=t.y;return new qd(e*this.options.tileSize,o*this.options.tileSize)},e.prototype.subdomainText=function(){var t=this.options.subdomains;return t[this.subdomainIndex++%t.length]},e.prototype.destroy=function(){pd(this.element),this.pool.empty()},e.prototype.reset=function(){this.pool.reset(),this.subdomainIndex=0,this.render()},e.prototype.render=function(){var t,e,o,r=this.tileCount(),i=this.pointToTileIndex(this._extent.nw);for(e=0;e<r.x;e++)for(o=0;o<r.y;o++)(t=this.createTile({x:i.x+e,y:i.y+o})).visible||t.show()},e.prototype.createTile=function(t){var e=this.tileOptions(t),o=this.pool.get(this._center,e);return o.element.parentNode||this.element.append(o.element),o},e.prototype.tileOptions=function(t){var e=this.wrapIndex(t),o=this.indexToPoint(t),r=this._viewOrigin,i=o.clone().translate(-r.x,-r.y);return{index:e,currentIndex:t,point:o,offset:Qd(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=Yd.pow(2,this._zoom);return{x:this.wrapValue(t.x,e),y:Tt(t.y,0,e-1)}},e.prototype.wrapValue=function(t,e){var o=Yd.abs(t)%e;return t>=0?o:e-(0===o?e:o)},e}(D.Class),ev=function(t){function e(e,o){t.call(this),this.id=e,this.visible=!0,this._initOptions(o),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=X({},this.options,t)},e.prototype.createElement=function(){var t=document.createElement("img"),e=this.options.size+"px";t.style.position="absolute",t.style.display="block",t.style.width=t.style.maxWidth=e,t.style.height=t.style.maxHeight=e,this.element=t},e.prototype.show=function(){var t=this.element;t.style.top=$d(this.options.offset.y),t.style.left=$d(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 Zd(this.options.urlTemplate)(this.urlOptions())},e.prototype.errorUrl=function(){return Zd(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}(D.Class);Bt(ev,{urlTemplate:"",errorUrlTemplate:""});var ov=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,o=this._items,r=At(t.point.toString()+t.offset.toString()+t.zoom+t.urlTemplate),i=0;i<o.length;i++)if(o[i].id===r){e=o[i];break}return e?e.show():(e=new ev(r,t),this._items.push(e)),e},e.prototype._remove=function(t){for(var e=this._items,o=-1,r=-1,i=0;i<e.length;i++){var n=e[i].options.point.distanceTo(t);n>o&&!e[i].visible&&(r=i,o=n)}-1!==r&&(e[r].destroy(),e.splice(r,1))},e}(D.Class);Bt(ov,{maxSize:100});var rv=Object.assign,iv="change",nv=function(t){function e(e,o){t.call(this);var r=this,i=e[0]||e;r.capture=!1;var n=vd(navigator.userAgent);i.addEventListener?(n.down.split(" ").forEach((function(t){i.addEventListener(t,gd(r._press,r),!0)})),n.up.split(" ").forEach((function(t){i.addEventListener(t,gd(r._release,r),!0)}))):(n.down.split(" ").forEach((function(t){i.attachEvent(t,gd(r._press,r))})),n.up.split(" ").forEach((function(t){i.attachEvent(t,gd(r._release,r))}))),r.bind(["press","release"],o||{})}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){var e=this;e.trigger("release"),e.capture&&(t.preventDefault(),e.cancelCapture())},e}(Id),av=function(t){function e(e){t.call(this);var o=this;o.forcedEnabled=!1,rv(o,e),o.scale=1,o.horizontal?(o.measure="offsetWidth",o.scrollSize="scrollWidth",o.axis="x"):(o.measure="offsetHeight",o.scrollSize="scrollHeight",o.axis="y")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.makeVirtual=function(){rv(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,o=e.virtual?e._virtualMax:e.getTotal(),r=o*e.scale,i=e.getSize();(0!==o||e.forcedEnabled)&&(e.max=e.virtual?-e._virtualMin:0,e.size=i,e.total=r,e.min=Math.min(e.max,i-r),e.minScale=i/o,e.centerOffset=(r-i)/2,e.enabled=e.forcedEnabled||r>i,t||e.trigger(iv,e))},e}(Id),sv=function(t){function e(e){t.call(this);var o=this;o.x=new av(rv({horizontal:!0},e)),o.y=new av(rv({horizontal:!1},e)),o.container=e.container,o.forcedMinScale=e.minScale,o.maxScale=e.maxScale||100,o.bind(iv,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(){var t=this;t.x.update(),t.y.update(),t.enabled=t.x.enabled||t.y.enabled,t.minScale=t.forcedMinScale||Math.min(t.x.minScale,t.y.minScale),t.fitScale=Math.max(t.x.minScale,t.y.minScale),t.trigger(iv)},e}(Id),lv=function(t){function e(e){t.call(this),rv(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,o=e.dimension,r=e.axis,i=e.movable,n=i[r]+t;if(o.enabled){var a=t;(n<o.min&&t<0||n>o.max&&t>0)&&(a*=e.resistance),i.translateAxis(r,a),e.trigger(iv,e)}},e}(Id),pv=function(t){function e(e){t.call(this);var o,r,i,n,a=this;rv(a,{elastic:!0},e),i=a.elastic?.5:0,n=a.movable,a.x=o=new lv({axis:"x",dimension:a.dimensions.x,resistance:i,movable:n}),a.y=r=new lv({axis:"y",dimension:a.dimensions.y,resistance:i,movable:n}),a.userEvents.bind(["press","move","end","gesturestart","gesturechange"],{gesturestart:function(t){a.gesture=t,a.offset=Ct(a.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=a.gesture,s=i.center,l=t.center,p=t.distance/i.distance,c=a.dimensions.minScale,h=a.dimensions.maxScale;n.scale<=c&&p<1&&(p+=.8*(1-p)),n.scale*p>=h&&(p=h/n.scale);var u=n.x+a.offset.left,f=n.y+a.offset.top;e={x:(u-s.x)*p+l.x-u,y:(f-s.y)*p+l.y-f},n.scaleWith(p),o.dragMove(e.x),r.dragMove(e.y),a.dimensions.rescale(n.scale),a.gesture=t,t.preventDefault()},move:function(t){t.event.target.tagName.match(/textarea|input/i)||(o.dimension.enabled||r.dimension.enabled?(o.dragMove(t.x.delta),r.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}(D.Class),cv=function(t,e,o){return"translate3d("+t+"px,"+e+"px,0) scale("+o+")"},hv=function(t){function e(e){t.call(this);var o=this;o.support=yd(),this.transformStyle=this.support.transitions.prefix+"Transform",o.element=e,o.element.style.webkitTransformOrigin="left top",o.x=0,o.y=0,o.scale=1;var r=cv(o.x,o.y,o.scale);o.element.style[this.transformStyle]=r,o._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){rv(this,t),this.refresh()},e.prototype.refresh=function(){var t,e=this,o=e.x,r=e.y;e.round&&(o=Math.round(o),r=Math.round(r)),(t=cv(o,r,e.scale))!==e.coordinates&&(e.element.style[this.transformStyle]=t,e._saveCoordinates(t),e.trigger(iv))},e.prototype._saveCoordinates=function(t){this.coordinates=t},e}(Id),uv=D.drawing.Group,fv=function(t){function e(e,o){t.call(this,e,o),this._pan=gd(this._pan,this),this.surface=D.drawing.Surface.create(this.element,{width:e.scrollElement.clientWidth,height:e.scrollElement.clientHeight}),this._initRoot(),this.movable=new hv(this.surface.element),this._markers=[],this._click=this._handler("shapeClick"),this.surface.bind("click",this._click),this._mouseleave=this._handler("shapeMouseLeave"),this.surface.bind("mouseleave",this._mouseleave),this.surface.bind("mouseenter",this._mouseenter.bind(this))}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 uv,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 dv(this.map,this.options.style,this));for(var e=new uv,o=0;o<t.length;o++){var r=this._loader.parse(t[o]);r&&e.append(r)}this._root.clear(),this._root.append(e)},e.prototype.shapeCreated=function(t){var e=!1;if(t instanceof D.drawing.Circle&&this.map.options.renderPointsAsMarkers&&(e=xt(this._createMarker(t))),!e){var o={layer:this,shape:t};e=this.map.trigger("shapeCreated",o)}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._eventArgs=function(t){return{layer:this,layerIndex:this._layerIndex(),shape:t.element,shapeIndex:(this._data||[]).indexOf(t.element.dataItem),originalEvent:t.originalEvent}},e.prototype._handler=function(t){var e=this;return function(o){o.element&&e.map.trigger(t,e._eventArgs(o))}},e.prototype._mouseenter=function(t){if(t.element){this.map.trigger("shapeMouseEnter",this._eventArgs(t));var e=t.element,o=this._tooltipAnchor(t);this.map._tooltip.show(o,this._tooltipContext(e))}},e.prototype._tooltipContext=function(t){return{type:"shape",layerIndex:this._layerIndex(),className:"k-map-shape-tooltip",dataItem:t.dataItem,location:t.location}},e.prototype._tooltipAnchor=function(t){var e=this.map.eventOffset(t.originalEvent);return{top:e.y,left:e.x}},e.prototype._activate=function(){t.prototype._activate.call(this),this._panHandler=gd(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}(Kd);Bt(fv,{autoBind:!0,zIndex:100});var dv=function(t){function e(e,o,r){t.call(this),this.observer=r,this.locator=e,this.style=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){var e=new uv,o=!0;return"Feature"===t.type?(o=!1,this._loadGeometryTo(e,t.geometry,t),this._featureCreated(e,t)):this._loadGeometryTo(e,t,t),o&&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,o){var r,i,n=this,a=e.coordinates;switch(e.type){case"LineString":i=this._loadPolygon(t,[a],o),this._setLineFill(i);break;case"MultiLineString":for(r=0;r<a.length;r++)i=n._loadPolygon(t,[a[r]],o),n._setLineFill(i);break;case"Polygon":this._loadPolygon(t,a,o);break;case"MultiPolygon":for(r=0;r<a.length;r++)n._loadPolygon(t,a[r],o);break;case"Point":this._loadPoint(t,a,o);break;case"MultiPoint":for(r=0;r<a.length;r++)n._loadPoint(t,a[r],o)}},e.prototype._setLineFill=function(t){var e=t.segments;(e.length<4||!e[0].anchor().equals(kt(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,o){var r=this._buildPolygon(e);return r.dataItem=o,r.location=this.locator.viewToLocation(r.bbox().center()),this._loadShape(t,r)},e.prototype._buildPolygon=function(t){for(var e=new(t.length>1?D.drawing.MultiPath:D.drawing.Path)(this.style),o=0;o<t.length;o++)for(var r=0;r<t[o].length;r++){var i=this.locator.locationToView(Ff.fromLngLat(t[o][r]));0===r?e.moveTo(i.x,i.y):e.lineTo(i.x,i.y)}return e},e.prototype._loadPoint=function(t,e,o){var r=Ff.fromLngLat(e),i=this.locator.locationToView(r),n=new D.geometry.Circle(i,10),a=new D.drawing.Circle(n,this.style);return a.dataItem=o,a.location=r,this._loadShape(t,a)},e}(D.Class),vv=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){var e=this;if(this._data=t,this.surface.clear(),0!==t.length){var o=this.options,r=nt(o.valueField),i=t.slice(0);i.sort((function(t,e){return r(e)-r(t)}));for(var n,a=this._scaleType(),s=nt(this.options.locationField),l=0;l<i.length;l++){var p=i[l],c=s(p),h=r(p);if(xt(c)&&xt(h)){n||(n=new a([0,h],[o.minSize,o.maxSize])),c=Ff.create(c);var u=e.map.locationToView(c),f=n.map(h),d=e._createSymbol({center:u,size:f,style:o.style,dataItem:p,location:c});d.dataItem=p,d.location=c,d.value=h,e._drawSymbol(d)}}}},e.prototype._scaleType=function(){var t=this.options.scale;return U(t)?t:yv[t]},e.prototype._createSymbol=function(t){var e=this.options.symbol;return U(e)||(e=gv[e]),e(t)},e.prototype._drawSymbol=function(t){var e={layer:this,shape:t};this.map.trigger("shapeCreated",e)||this.surface.draw(t)},e.prototype._tooltipContext=function(t){return{type:"bubble",layerIndex:this._layerIndex(),className:"k-map-bubble-tooltip",dataItem:t.dataItem,location:t.location,value:t.value}},e.prototype._tooltipAnchor=function(t){var e=t.element.bbox().center();return{top:e.y,left:e.x}},e}(fv);Bt(vv,{locationField:"location",valueField:"value",minSize:0,maxSize:100,scale:"sqrt",symbol:"circle",zIndex:200});var yv={sqrt:function(t){function e(e,o){t.call(this),this._domain=e,this._range=o;var r=Math.sqrt(e[1])-Math.sqrt(e[0]),i=o[1]-o[0];this._ratio=i/r}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}(D.Class)},gv={circle:function(t){var e=new D.geometry.Circle(t.center,t.size/2);return new D.drawing.Circle(e,t.style)},square:function(t){var e=new D.drawing.Path(t.style),o=t.size/2,r=t.center;return e.moveTo(r.x-o,r.y-o).lineTo(r.x+o,r.y-o).lineTo(r.x+o,r.y+o).lineTo(r.x-o,r.y+o).close(),e}},mv="click",bv="mouseenter",_v="mouseleave",xv=Object.assign,wv="k-marker",Cv="."+wv,Ov=function(t){function e(e,o){t.call(this,e,o),this._markerClickHandler=gd(this._markerClick,this),md(this.element,mv,Cv,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),xd(this.element,mv,this._markerClickHandler),this.clear()},e.prototype.add=function(t){if(!M(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 o={marker:t,layer:this};this.map.trigger("markerActivate",o)}},e.prototype._reset=function(){t.prototype._reset.call(this);for(var e=this.items,o=0;o<e.length;o++)this.update(e[o])},e.prototype.bind=function(t,e){var o=Sv.create(t,this.options);o.dataItem=e;var r={marker:o,layer:this};if(!this.map.trigger("markerCreated",r))return this.add(o),o},e.prototype._addOne=function(t){var e=Sv.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=nt(this.options.locationField),o=nt(this.options.titleField),r=0;r<t.length;r++){var i=t[r];this.bind({location:e(i),title:o(i)},i)}},e.prototype._markerClick=function(t){var e=t.currentTarget._kendoNode,o={layer:this,layerIndex:this._layerIndex(),marker:e,markerIndex:(this.items||[]).indexOf(e),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 xv({},{layer:this,layerIndex:this._layerIndex(),marker:e,markerIndex:(this.items||[]).indexOf(e)},t)},e}(Kd);Bt(Ov,{zIndex:1e3,autoBind:!0,locationField:"location",titleField:"title",template:""});var Sv=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=Ff.create(t).toArray(),this.layer&&this.layer.update(this),this):Ff.create(this.options.location)},e.prototype.showAt=function(t){this.render(),this._anchor={left:Math.round(t.x),top:Math.round(t.y)},this.element.style.left=ud(this._anchor.left),this.element.style.top=ud(this._anchor.top)},e.prototype.hide=function(){this.element&&(this.element.remove(),this.element=null)},e.prototype.bindEvents=function(){this.element&&(this._mouseEnterHandler=gd(this._mouseEnter,this),md(this.element,bv,Cv,this._mouseEnterHandler),this._mouseLeaveHandler=gd(this._mouseLeave,this),md(this.element,_v,Cv,this._mouseLeaveHandler))},e.prototype.unbindEvents=function(){this.element&&(xd(this.element,bv,this._mouseEnterHandler),xd(this.element,_v,this._mouseLeaveHandler))},e.prototype.render=function(){if(!this.element){var t=this.options,e=this.layer,o=document.createElement("span");if(I(o,wv),this.options.template){var r=this._compileTemplate(this.options.template)(this.dataItem),i=ld(r);o.appendChild(i)}else I(o,"k-icon k-icon-xxl k-i-marker-"+hd(t.shape||"pin"));t.title&&o.setAttribute("title",t.title);var n=t.attributes||{};Object.keys(n).forEach((function(t){o.setAttribute(t,n[t])})),o._kendoNode=this,o.style.zIndex=t.zIndex,this.element=o,e&&e.element.appendChild(this.element),this.bindEvents()}},e.prototype._mouseEnter=function(t){var e=this._createEventArgs(t);this.layer._markerMouseEnter(e),this.layer.map._tooltip.show({top:this._anchor.top-this.element.offsetHeight,left:this._anchor.left},this._tooltipContext())},e.prototype._tooltipContext=function(){return{type:"marker",layerIndex:this.layer._layerIndex(),className:"k-map-marker-tooltip",dataItem:this.dataItem,title:this.options.title,location:this.location()}},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._compileTemplate=function(t){return et.compile(t,{paramName:"dataItem",useWithBlock:!1})},e.create=function(t,o){return t instanceof e?t:new e(X({},o,t))},e}(D.Class),Pv=Object.assign;function Av(t){window.requestAnimationFrame(t)}var kv=function(t){function e(){t.call(this);var e=this;e._tickProxy=gd(e._tick,e),e._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,Av(this._tickProxy)))},e.prototype.enabled=function(){return!0},e.prototype.cancel=function(){this._started=!1,this.onCancel()},e.prototype._tick=function(){var t=this;t._started&&(t.tick(),t.done()?(t._started=!1,t.onEnd()):Av(t._tickProxy))},e}(D.Class),Tv=function(t){function e(e){t.call(this),Pv(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,Pd()-this.startDate)},e.prototype.moveTo=function(t){var e=this,o=e.movable;e.initial=o[e.axis],e.delta=t.location-e.initial,e.duration="number"==typeof t.duration?t.duration:300,e.tick=e._easeProxy(t.ease),e.startDate=Pd(),e.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,o,r){return t===r?e+o:o*(1-Math.pow(2,-10*t/r))+e},e}(kv),jv=Object.assign,Ev=function(t){t.preventDefault()},Mv=800,Iv=0,Lv="press",Rv="hold",Dv="select",Bv="start",Nv="move",zv="end",Vv="cancel",Hv="tap",Uv="doubleTap",Fv="release",Gv="gesturechange",Wv="gestureend",Xv="gesturetap",Kv={api:0,touch:0,mouse:9,pointer:9};function Yv(t){var e,o,r,i=yd(),n=[],a=t.originalEvent||t,s=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=(o=a?a.changedTouches:[]).length;l<e;l++)r=o[l],n.push({location:r,event:t,target:r.target,currentTarget:s,id:r.identifier,type:"touch"});else i.pointers||i.msPointers?n.push({location:a,event:t,target:t.target,currentTarget:s,id:a.pointerId,type:"pointer"}):n.push({id:1,event:t,target:t.target,currentTarget:s,location:t,type:"mouse"});return n}var qv=function(t){function e(e,o){t.call(this);var r=this;r.support=yd(),r.invalidZeroEvents=this.support.mobileOS&&this.support.mobileOS.android,r.axis=e,r._updateLocationData(o),r.startLocation=r.location,r.velocity=r.delta=0,r.timeStamp=Pd()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.move=function(t){var e=this,o=t["page"+e.axis],r=Pd(),i=r-e.timeStamp||1;!o&&this.invalidZeroEvents||(e.delta=o-e.location,e._updateLocationData(t),e.initialDelta=o-e.startLocation,e.velocity=e.delta/i,e.timeStamp=r)},e.prototype._updateLocationData=function(t){var e=this,o=e.axis;e.location=t["page"+o],e.client=t["client"+o],e.screen=t["screen"+o]},e}(D.Class),Zv=function(t){function e(e,o,r){t.call(this),jv(this,{x:new qv("X",r.location),y:new qv("Y",r.location),type:r.type,useClickAsTap:e.useClickAsTap,threshold:e.threshold||Kv[r.type],userEvents:e,target:o,currentTarget:r.currentTarget,initialTouch:r.target,id:r.id,pressEvent:r,_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(gd(this._hold,this),this.userEvents.minHold),this._trigger(Lv,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(Hv,t):e._trigger(Uv,t),e.userEvents._clicks=0}),300))},e.prototype._hold=function(){this._trigger(Rv,this.pressEvent)},e.prototype.move=function(t){var e=this,o="api"!==t.type&&e.userEvents._shouldNotMove;if(!e._finished&&!o){if(e.x.move(t.location),e.y.move(t.location),!e._moved){if(e._withinIgnoreThreshold())return;if($v.current&&$v.current!==e.userEvents)return e.dispose();e._start(t)}e._finished||e._trigger(Nv,t)}},e.prototype.end=function(t){this.endTime=Pd(),this._finished||(this._finished=!0,this._trigger(Fv,t),this._moved?this._trigger(zv,t):this.useClickAsTap||(this.supportDoubleTap?this._tap(t):this._trigger(Hv,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=Pd(),this._moved=!0,this._trigger(Bv,t)},e.prototype._trigger=function(t,e){var o=this,r=e.event,i={touch:o,x:o.x,y:o.y,target:o.target,event:r};o.userEvents.notify(t,i)&&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}(D.Class);function Qv(t){for(var e=vd(navigator.userAgent).up.split(" "),o=0,r=e.length;o<r;o++)t(e[o])}var $v=function(t){function e(e,o){t.call(this);var r,i=this,n=yd();this.support=n,o=o||{},this.options=o,r=i.filter=o.filter,i.threshold=o.threshold||Iv,i.minHold=o.minHold||Mv,i.touches=[],i._maxTouches=o.multiTouch?2:1,i.allowSelection=o.allowSelection,i.captureUpIfMoved=o.captureUpIfMoved,i.useClickAsTap=!o.fastTap&&!n.delayedClick(),i._clicks=0,i.supportDoubleTap=o.supportDoubleTap;var a=!n.touch||n.mouseAndTouchPresent;if(jv(i,{element:e,surface:o.global&&a?e.ownerDocument.documentElement:o.surface||e,stopPropagation:o.stopPropagation,pressed:!1}),this._surfaceMoveHandler=gd(this._move,this),md(i.surface,Od("move"),this._surfaceMoveHandler),this._surfaceEndHandler=gd(this._end,this),md(i.surface,Od("up cancel"),this._surfaceEndHandler),this._elementStartHandler=gd(this._start,this),md(e,Od("down"),r,this._elementStartHandler),i.useClickAsTap&&(this._elementClickHandler=gd(this._click,this),md(e,Od("click"),r,this._elementClickHandler)),n.pointers||n.msPointers)if(n.browser.version<11){var s="pinch-zoom double-tap-zoom";e.style["-ms-touch-action"]=o.touchAction&&"none"!==o.touchAction?s+" "+o.touchAction:s}else e.style["touch-action"]=o.touchAction||"none";if(o.preventDragEvent&&(this._elementDragStartHandler=Ev,md(e,Od("dragstart"),this._elementDragStartHandler)),this._elementSelectHandler=gd(this._select,this),md(e,Od("mousedown"),r,this._elementSelectHandler),i.captureUpIfMoved&&n.eventCapture){var l=i.surface,p=gd(i.preventIfMoving,i);Qv((function(t){l.addEventListener(t,p,!0)}))}i.bind([Lv,Rv,Hv,Uv,Bv,Nv,zv,Fv,Vv,"gesturestart",Gv,Wv,Xv,Dv],o)}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,o=this.element;if(!t._destroyed){if(t._destroyed=!0,t.captureUpIfMoved&&this.support.eventCapture){var r=t.surface;Qv((function(e){r.removeEventListener(e,t.preventIfMoving)}))}xd(t.surface,Od("move"),this._surfaceMoveHandler),xd(t.surface,Od("up cancel"),this._surfaceEndHandler),xd(o,Od("down"),this._elementStartHandler),t.useClickAsTap&&xd(o,Od("click"),this._elementClickHandler),e.preventDragEvent&&xd(o,Od("dragstart"),this._elementDragStartHandler),xd(o,Od("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(Vv)},e.prototype.notify=function(t,e){var o,r,i,n,a,s,l,p,c=this.touches,h=t;if(this._isMultiTouch()){switch(h){case Nv:h=Gv;break;case zv:h=Wv;break;case Hv:h=Xv}jv(e,{touches:c},(o=c[0],r=c[1],i=o.x.location,n=o.y.location,l=i-(a=r.x.location),p=n-(s=r.y.location),{center:{x:(i+a)/2,y:(n+s)/2},distance:Math.sqrt(l*l+p*p)}))}return this.trigger(h,jv(e,{type:h}))},e.prototype.press=function(t,e,o){this._apiCall("_start",t,e,o)},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 at(this.touches,(function(t){return t.isMoved()})).length},e.prototype._select=function(t){this.allowSelection&&!this.trigger(Dv,{event:t})||t.preventDefault()},e.prototype._start=function(t){var o,r,i=this,n=0,a=i.filter,s=Yv(t),l=s.length,p=t.which;if(!(p&&p>1||i._maxTouchesReached()))for(e.current=null,i.currentTarget=t.currentTarget,i.stopPropagation&&t.stopPropagation();n<l&&!i._maxTouchesReached();n++)r=s[n],(o=a?r.currentTarget:i.element)&&0===o.length||(r=new Zv(i,o,r),i.touches.push(r),r.press(),i._isMultiTouch()&&i.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:Pd(),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 o,r,i,n,a={},s=Yv(e),l=this.touches;for(o=0;o<l.length;o++)a[(r=l[o]).id]=r;for(o=0;o<s.length;o++)(n=a[(i=s[o]).id])&&n[t](i)},e.prototype._apiCall=function(t,e,o,r){this[t]({api:!0,pageX:e,pageY:o,clientX:e,clientY:o,target:r||this.element,stopPropagation:Ad,preventDefault:Ad})},e.defaultThreshold=function(t){Iv=t},e.minHold=function(t){Mv=t},e}(Id),Jv=Object.assign,ty=Math.abs,ey="change",oy="scroll",ry=function(t){function e(e){t.call(this,e);var o=this;Jv(o,e),o.userEvents.bind("gestureend",o.start.bind(this)),o.tapCapture.bind("press",o.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}(kv),iy=function(t){function e(e){t.call(this);var o=this;Jv(o,e,{transition:new Tv({axis:e.axis,movable:e.movable,onEnd:function(){o._end()}})}),o.tapCapture.bind("press",(function(){o.cancel()})),o.userEvents.bind("end",gd(o.start,o)),o.userEvents.bind("gestureend",gd(o.start,o)),o.userEvents.bind("tap",gd(o.onEnd,o))}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(){var t=this;t.paneAxis.outOfBounds()?t._snapBack():t._end()},e.prototype.done=function(){return ty(this.velocity)<1},e.prototype.start=function(e){var o,r=this;r.dimension.enabled&&(r.paneAxis.outOfBounds()?r.transition._started?(r.transition.cancel(),r.velocity=Math.min(e.touch[r.axis].velocity*r.velocityMultiplier,55),t.prototype.start.call(this)):r._snapBack():(o=2===e.touch.id?0:e.touch[r.axis].velocity,r.velocity=Math.max(Math.min(o*r.velocityMultiplier,55),-55),r.tapCapture.captureNext(),t.prototype.start.call(this)))},e.prototype.tick=function(){var t=this,e=t.dimension,o=t.paneAxis.outOfBounds()?.5:t.friction,r=t.velocity*=o,i=t.movable[t.axis]+r;!t.elastic&&e.outOfBounds(i)&&(i=Math.max(Math.min(i,e.max),e.min),t.velocity=0),t.movable.moveAxis(t.axis,i)},e.prototype._end=function(){this.tapCapture.cancelCapture(),this.end()},e.prototype._snapBack=function(){var t=this,e=t.dimension,o=t.movable[t.axis]>e.max?e.max:e.min;t._moveTo(o)},e.prototype._moveTo=function(t){this.transition.moveTo({location:t,duration:500,ease:Tv.easeOutExpo})},e}(kv),ny=function(t){function e(e){t.call(this,e),Jv(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 ty(this.offset.y)<5&&ty(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&&U(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}(kv),ay=function(t){function e(e){t.call(this);var o=this,r="x"===e.axis,i=ld('<div class="km-touch-scrollbar km-'+(r?"horizontal":"vertical")+'-scrollbar" />');Jv(o,e,{element:i,elementSize:0,movable:new hv(i),scrollMovable:e.movable,alwaysVisible:e.alwaysVisible,size:r?"width":"height"}),o.scrollMovable.bind(ey,o.refresh.bind(o)),o.container.appendChild(i),e.alwaysVisible&&o.show()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.refresh=function(){var t=this,e=t.axis,o=t.dimension,r=o.size,i=t.scrollMovable,n=r/o.total,a=Math.round(-i[e]*n),s=Math.round(r*n);this.element.style.display=n>=1?"none":"",a+s>r?s=r-a:a<0&&(s+=a,a=0),t.elementSize!==s&&(t.element.style[t.size]=s+"px",t.elementSize=s),t.movable.moveAxis(e,a)},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}(D.Class),sy=function(t){function e(e,o){t.call(this);var r=this;this.element=e,this._initOptions(o);var i,n,a=(i=navigator.userAgent,(n=fd(i)).ios||n.android);r._native=r.options.useNative&&a;var s=ld('<div class="km-scroll-header"/>');if(r._native)return I(e,"km-native-scroller"),cd(s,e),void Jv(r,{scrollElement:e,fixedContainer:e.children[0]});e.style.overflow="hidden",I(e,"km-scroll-wrapper"),function(t,e){for(t.appendChild(e);t.firstChild!==e;)e.appendChild(t.firstChild)}(e,ld('<div class="km-scroll-container"/>')),cd(s,e);var l=e.children[1],p=new nv(e),c=new hv(l),h=new sv({element:l,container:e,forcedEnabled:r.options.zoom}),u=this.options.avoidScrolling,f=new $v(e,{touchAction:"pan-y",fastTap:!0,allowSelection:!0,preventDragEvent:!0,captureUpIfMoved:!0,multiTouch:r.options.zoom,supportDoubleTap:r.options.supportDoubleTap,start:function(t){h.refresh();var e=ty(t.x.velocity),o=ty(t.y.velocity),i=2*e>=o,n=function(t,e){return t===e||function(t,e){if(!e)return!1;for(var o=e.parentNode;null!==o;){if(o===t)return!0;o=o.parentNode}return!1}(t,e)}(r.fixedContainer,t.event.target),a=2*o>=e;!n&&!u(t)&&r.enabled&&(h.x.enabled&&i||h.y.enabled&&a)?f.capture():f.cancel()}}),d=new pv({movable:c,dimensions:h,userEvents:f,elastic:r.options.elastic}),v=new ry({movable:c,dimensions:h,userEvents:f,tapCapture:p}),y=new ny({moveTo:function(t){r.scrollTo(t.x,t.y)}});c.bind(ey,(function(){r.scrollTop=-c.y,r.scrollLeft=-c.x,r.trigger(oy,{scrollTop:r.scrollTop,scrollLeft:r.scrollLeft})})),r.options.mousewheelScrolling&&(this._wheelScrollHandler=this._wheelScroll.bind(this),md(e,"wheel",this._wheelScrollHandler)),Jv(r,{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]}),r._initAxis("x"),r._initAxis("y"),r._wheelEnd=function(){r._wheel=!1,r.userEvents.end(0,r._wheelY)},h.refresh(),r.options.pullToRefresh&&r._initPullToRefresh()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initOptions=function(t){this.options=X({},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,o=t.originalEvent||t,r=o.wheelDeltaY;return o.wheelDelta?(void 0===r||r)&&(e=o.wheelDelta):o.detail&&o.axis===o.VERTICAL_AXIS&&(e=10*-o.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(ty(t)),this.scrollElement.scrollTop(ty(e))):(this.dimensions.refresh(),this.movable.moveTo({x:t,y:e}))},e.prototype.animatedScrollTo=function(t,e,o){var r,i;this._native?this.scrollTo(t,e):(r={x:this.movable.x,y:this.movable.y},i={x:t,y:e},this.animatedScroller.setCoordinates(r,i),this.animatedScroller.setCallback(o),this.animatedScroller.start())},e.prototype.pullHandled=function(){},e.prototype.destroy=function(){var t=this.element;xd(t,"wheel",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,o=e.movable,r=e.dimensions[t],i=e.tapCapture,n=e.pane[t],a=new ay({axis:t,movable:o,dimension:r,container:e.element,alwaysVisible:e.options.visibleScrollHints});r.bind(ey,(function(){a.refresh()})),n.bind(ey,(function(){a.show()})),e[t+"inertia"]=new iy({axis:t,paneAxis:n,movable:o,tapCapture:i,userEvents:e.userEvents,dimension:r,elastic:e.options.elastic,friction:e.options.friction||.96,velocityMultiplier:e.options.velocityMultiplier||10,end:function(){a.hide(),e.trigger("scrollEnd",{axis:t,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft})}})},e}(Id);Bt(sy,{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"}}),Sd(sy,["pull",oy,"resize"]);var ly=function(t,e){void 0===e&&(e={}),this.sender=e.sender||t,this.widget=t,this.rtl=Boolean(e.rtl)};ly.prototype.notify=function(t,e){this.widget&&this.widget.trigger(t,e)};const py=ly;var cy=Math,hy=cy.min,uy=cy.pow,fy=D.geometry.Point,dy="marker",vy="location",yy="wheel",gy={bubble:vv,shape:fv,tile:Jd};gy[dy]=Ov;var my=function(t){function e(e,o,r,i){void 0===o&&(o={}),void 0===r&&(r={}),void 0===i&&(i={}),t.call(this),this._init(e,o,r,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._tooltip&&this._tooltip.destroy(),this.navigator&&this.navigator.destroy(),this.attribution&&this.attribution.destroy(),this.zoomControl&&this.zoomControl.destroy(),M(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();xd(this.element,yy,this._mousewheelHandler),t.prototype.destroy.call(this)},e.prototype._init=function(t,e,o,r){void 0===e&&(e={}),void 0===o&&(o={}),void 0===r&&(r={}),this.support=yd(),this.context=r,this.initObserver(r),this.initServices(r),this._notifyObserver("init"),this._initOptions(e),this._setEvents(e),this.crs=new ad,this._initElement(t),this._viewOrigin=this._getOrigin(),this._tooltip=this._createTooltip(),this._initScroller(),this._initMarkers(),this._initControls(),this._initLayers(),this._reset();var i=(0,D.throttle)(this._mousewheel.bind(this),50);this._mousewheelHandler=function(t){t.preventDefault(),i(t)},md(this.element,yy,this._mousewheelHandler)},e.prototype._initOptions=function(t){this.options=X({},this.options,t)},e.prototype._initElement=function(t){this.element=t,I(t,"k-map"),t.style.position="relative",t.setAttribute("data-role","map"),pd(t);var e=ld("<div />");this.element.appendChild(e)},e.prototype.initServices=function(t){void 0===t&&(t={}),this.widgetService=new py(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,o=0;o<e.length;o++)if(e[o].requiresHandlers(t))return!0},e.prototype.trigger=function(e,o){void 0===o&&(o={}),o.sender=this;for(var r=this.observers,i=!1,n=0;n<r.length;n++)r[n].trigger(e,o)&&(i=!0);return i||t.prototype.trigger.call(this,e,o),i},e.prototype._notifyObserver=function(t,e){void 0===e&&(e={}),e.sender=this;for(var o=this.observers,r=!1,i=0;i<o.length;i++)o[i].trigger(t,e)&&(r=!0);return r},e.prototype.zoom=function(t){var e,o=this.options;if(xt(t)){var r=cy.round(Tt(t,o.minZoom,o.maxZoom));o.zoom!==r&&(o.zoom=r,this.widgetService.notify("zoomChange",{zoom:o.zoom}),this._reset()),e=this}else e=o.zoom;return e},e.prototype.center=function(t){var e;if(t){var o=Ff.create(t),r=Ff.create(this.options.center);o.equals(r)||(this.options.center=o.toArray(),this.widgetService.notify(Wd,{center:this.options.center}),this._reset()),e=this}else e=Ff.create(this.options.center);return 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(),pd(e),this._init(e,t,{},this.context),this._reset()},e.prototype.locationToLayer=function(t,e){var o=!this.options.wraparound,r=Ff.create(t);return this.crs.toPoint(r,this._layerSize(e),o)},e.prototype.layerToLocation=function(t,e){var o=!this.options.wraparound,r=fy.create(t);return this.crs.toLocation(r,this._layerSize(e),o)},e.prototype.locationToView=function(t){var e=Ff.create(t),o=this.locationToLayer(this._viewOrigin);return this.locationToLayer(e).translateWith(o.scale(-1))},e.prototype.viewToLocation=function(t,e){var o=this.locationToLayer(this._getOrigin(),e),r=fy.create(t).clone().translateWith(o);return this.layerToLocation(r,e)},e.prototype.eventOffset=function(t){var e,o,r=Ct(this.element);if(t.x&&t.x[vy]||t.y&&t.y[vy])e=t.x[vy]-r.left,o=t.y[vy]-r.top;else{var i=t.originalEvent||t;e=Lt(i.pageX,i.clientX)-r.left,o=Lt(i.pageY,i.clientY)-r.top}return new D.geometry.Point(e,o)},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(),o=t.clientWidth;return this.options.wraparound||(o=hy(e,o)),{width:o,height:hy(e,t.clientHeight)}},e.prototype.exportVisual=function(){return this._reset(),!1},e.prototype.hideTooltip=function(){this._tooltip&&this._tooltip.hide()},e.prototype._setOrigin=function(t,e){var o,r=this.viewSize(),i=this._origin=Ff.create(t);return(o=this.locationToLayer(i,e)).x+=r.width/2,o.y+=r.height/2,this.options.center=this.layerToLocation(o,e).toArray(),this.widgetService.notify(Wd,{center:this.options.center}),this},e.prototype._getOrigin=function(t){var e,o=this.viewSize();return!t&&this._origin||((e=this.locationToLayer(this.center())).x-=o.width/2,e.y-=o.height/2,this._origin=this.layerToLocation(e)),this._origin},e.prototype._setExtent=function(t){var e=Gd.create(t),o=e.se.clone();this.options.wraparound&&o.lng<0&&t.nw.lng>0&&(o.lng=180+(180+o.lng));var r=new Gd(e.nw,o);this.center(r.center());var i,n=this.element.clientWidth,a=this.element.clientHeight;for(i=this.options.maxZoom;i>=this.options.minZoom;i--){var s=this.locationToLayer(r.nw,i),l=this.locationToLayer(r.se,i),p=cy.abs(l.x-s.x),c=cy.abs(l.y-s.y);if(p<=n&&c<=a)break}this.zoom(i)},e.prototype._getExtent=function(){var t=this._getOrigin(),e=this.locationToLayer(t),o=this.viewSize();e.x+=o.width,e.y+=o.height;var r=this.layerToLocation(e);return new Gd(t,r)},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 o=t.position||e,r="."+kd(o).replace(" ","."),i=this.element.querySelector(".k-map-controls"+r)||[];if(0===i.length){var n=document.createElement("div");I(n,"k-map-controls "+kd(o)),i=n,this.element.appendChild(i)}var a=document.createElement("div");return i.appendChild(a),a},e.prototype._createAttribution=function(t){var e=this._createControlElement(t,"bottomRight");this.attribution=new Ld(e,t)},e.prototype._createNavigator=function(t){var e=this._createControlElement(t,"topLeft"),o=this.navigator=new Bd(e,t);this._navigatorPan=this._navigatorPan.bind(this),o.bind("pan",this._navigatorPan),this._navigatorCenter=this._navigatorCenter.bind(this),o.bind("center",this._navigatorCenter)},e.prototype._navigatorPan=function(t){var e=this.scroller,o=e.scrollLeft+t.x,r=e.scrollTop-t.y,i=this._virtualSize,n=this.element.clientWidth,a=this.element.clientHeight;o=Tt(o,i.x.min,i.x.max-n),r=Tt(r,i.y.min,i.y.max-a),this.scroller.one("scroll",gd(this._scrollEnd,this)),this.scroller.scrollTo(-o,-r)},e.prototype._navigatorCenter=function(){this.center(this.options.center)},e.prototype._createZoomControl=function(t){var e=this._createControlElement(t,"topLeft"),o=this.zoomControl=new Vd(e,t);this._zoomControlChange=this._zoomControlChange.bind(this),o.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,o=this.scroller=new sy(this.element.children[0],{friction:t,velocityMultiplier:5,zoom:e,mousewheelScrolling:!1,supportDoubleTap:!0});o.bind("scroll",gd(this._scroll,this)),o.bind("scrollEnd",gd(this._scrollEnd,this)),o.userEvents.bind("gesturestart",gd(this._scaleStart,this)),o.userEvents.bind("gestureend",gd(this._scale,this)),o.userEvents.bind("doubleTap",gd(this._doubleTap,this)),o.userEvents.bind("tap",gd(this._tap,this)),this.scrollElement=o.scrollElement},e.prototype._initLayers=function(){for(var t=this.options.layers,e=this.layers=[],o=0;o<t.length;o++){var r=t[o],i=this._createLayer(r);e.push(i)}},e.prototype._createLayer=function(t){var e=t.type||"shape",o=this.options.layerDefaults[e],r=X({},e===dy?this.options.markerDefaults:o,t),i=new(0,gy[e])(this,r);return e===dy&&(this.markers=i),i},e.prototype._createTooltip=function(){return new Xd(this.widgetService,this.options.tooltip)},e.prototype._initMarkers=function(){(this.options.layers||[]).filter((function(t){return t&&t.type===dy})).length>0||(this.markers=new Ov(this,this.options.markerDefaults),this.markers.add(this.options.markers))},e.prototype._scroll=function(t){var e=this.locationToLayer(this._viewOrigin).round(),o=t.sender.movable,r=new D.geometry.Point(o.x,o.y).scale(-1).scale(1/o.scale);e.x+=r.x,e.y+=r.y,this._scrollOffset=r,this._tooltip.offset=r,this.hideTooltip(),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=Pd(),this.trigger("panEnd",{originalEvent:t,origin:this._getOrigin(),center:this.center()}))},e.prototype._panComplete=function(){return Pd()-(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,o=this._scaleToZoom(e),r=new D.geometry.Point(t.center.x,t.center.y),i=this.viewToLocation(r,o),n=this.locationToLayer(i,o).translate(-r.x,-r.y);this._zoomAround(n,o),this.trigger("zoomEnd",{originalEvent:t})},e.prototype._scaleToZoom=function(t){var e=this._layerSize()*t/this.options.minSize,o=cy.log(e)/cy.log(2);return cy.round(o)},e.prototype._reset=function(){this.attribution&&this.attribution.filter(this.center(),this.zoom()),this._viewOrigin=this._getOrigin(!0),this._resetScroller(),this.hideTooltip(),this.trigger("beforeReset"),this.trigger("reset")},e.prototype._resetScroller=function(){var t=this.scroller,e=t.dimensions.x,o=t.dimensions.y,r=this._layerSize(),i=this.extent().nw,n=this.locationToLayer(i).round();t.movable.round=!0,t.reset(),t.userEvents.cancel();var a=this.zoom();t.dimensions.forcedMinScale=uy(2,this.options.minZoom-a),t.dimensions.maxScale=uy(2,this.options.maxZoom-a);var s={min:-n.x,max:r-n.x},l={min:-n.y,max:r-n.y};if(this.options.wraparound&&(s.max=20*r,s.min=-s.max),!1===this.options.pannable){var p=this.viewSize();s.min=l.min=0,s.max=p.width,l.max=p.height}e.makeVirtual(),o.makeVirtual(),e.virtualSize(s.min,s.max),o.virtualSize(l.min,l.max),this._virtualSize={x:s,y:l}},e.prototype._renderLayers=function(){},e.prototype._layerSize=function(t){var e=Lt(t,this.options.zoom);return this.options.minSize*uy(2,e)},e.prototype._tap=function(t){if(this._panComplete()){var e=this.eventOffset(t);this.hideTooltip(),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,o=this.eventOffset(t),r=this.viewToLocation(o),i=this.locationToLayer(r,e).translate(-o.x,-o.y);this._zoomAround(i,e),this.trigger("zoomEnd",{originalEvent:t})}},e.prototype._mousewheel=function(t){var e=gt(t)>0?-1:1,o=this.options,r=this.zoom(),i=Tt(r+e,o.minZoom,o.maxZoom);if(!1!==o.zoomable&&i!==r&&!this.trigger("zoomStart",{originalEvent:t})){var n=this.eventOffset(t),a=this.viewToLocation(n),s=this.locationToLayer(a,i).translate(-n.x,-n.y);this._zoomAround(s,i),this.trigger("zoomEnd",{originalEvent:t})}},e.prototype._toDocumentCoordinates=function(t){var e=Ct(this.element);return{left:Mt(t.x+e.left),top:Mt(t.y+e.top)}},e}(Id);Bt(my,{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}),Sd(my,["beforeReset","click","markerActivate","markerClick","markerCreated","markerMouseEnter","markerMouseLeave","pan","panEnd","reset","shapeClick","shapeCreated","shapeFeatureCreated","shapeMouseEnter","shapeMouseLeave","zoomEnd","zoomStart"]);const by=my;var _y=1.5,xy=.4,wy="#000",Cy="Arial, Helvetica, sans-serif",Oy="11px "+Cy,Sy="12px "+Cy,Py="16px "+Cy,Ay="transparent",ky="#fff",Ty=function(){return{icon:{border:{width:1}},label:{font:Sy,padding:3},line:{length:10,width:2},visible:!0}},jy=function(){return{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:ky,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}}},Ey=function(){return{gap:_y,spacing:xy,target:{color:"#ff0000"}}},My=function(){return{gap:.5,line:{color:wy,width:1},spacing:xy}},Iy=function(t){return{visible:!0,labels:{font:Oy},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:_y,spacing:xy},boxPlot:jy(),bubble:{border:{width:0},labels:{background:Ay},opacity:.6},bullet:Ey(),candlestick:{border:{_brightness:.8,width:1},downColor:ky,gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:wy,width:1},spacing:.3},column:{gap:_y,spacing:xy},heatmap:{labels:{color:"",background:Ay,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:My(),line:{width:2},notes:Ty(),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:_y,spacing:xy},rangeColumn:{gap:_y,spacing:xy},scatterLine:{width:1},verticalArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalBoxPlot:jy(),verticalBullet:Ey(),verticalLine:{width:2},waterfall:My()}},Ly=function(t){return void 0===t&&(t={}),{axisDefaults:{labels:{font:Sy},notes:Ty(),title:{font:Py,margin:5}},categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:Iy(t),title:{font:Py},subtitle:{font:Sy},legend:{labels:{font:Sy}}}}},6201:(t,e,o)=>{o.r(e),o.d(e,{Popup:()=>st,PopupPropsContext:()=>at,PopupWithoutContext:()=>it});var r=o(3899),i=o(994),n=o(189),a=function(t){t.style.transitionDuration="",Array.from(t.classList).forEach((function(e){e.startsWith("k-slide-")&&t.classList.remove(e)}))},s="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),l=o(4006),p=o(7827),c=o(8259),h=o(8047);const u="bottom",f="center",d="middle",v="left",y="right",g="top",m="fit",b="flip",_="none";var x,w,C,O=function(t,e,o){var r=0;return t+e>o&&(r=o-(t+e)),t<0&&(r=-t),r},S=function(t){var e=t.offset,o=t.size,r=t.anchorSize,i=t.viewPortSize,n=t.anchorAlignPoint,a=t.elementAlignPoint,s=0,l=2*t.margin;if(a!==n&&a!==f&&a!==d&&n!==f&&n!==d){var p=n===g||n===v;e<0&&p?e+(s=o+r+l)+o>i&&(s=0):e>=0&&!p&&(e+o>i&&(s+=-(r+o+l)),e+s<0&&(s=0))}return s},P=(x=function(t){if(!A())return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var o=e.createElement("div");o.style.transform="matrix(10, 0, 0, 10, 0, 0)",o.innerHTML='<div style="position: fixed; top: 10px;">child</div>',e.body.appendChild(o);var r=10!==o.children[0].getBoundingClientRect().top;return e.body.removeChild(o),r},C=!1,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return C||(w=x.apply(void 0,t),C=!0),w}),A=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)};const k={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:P,canUseDOM:A};function T(t){return t.ownerDocument||t.document||t}const j=function(t){return T(t).defaultView},E=function(t){return T(t).documentElement};var M=0;function I(){if(!M&&"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),M=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return M}function L(t){var e=j(t),o=E(t),r={height:e.innerHeight,width:e.innerWidth};return o.scrollHeight-o.clientHeight>0&&(r.width-=I()),r}function R(t){var e=E(t),o=j(t);return{x:o.pageXOffset||e.scrollLeft||0,y:o.pageYOffset||e.scrollTop||0}}const D=function(t){var e=t.getBoundingClientRect(),o=e.left,r=e.top;return e.height||e.width||(e=function(t){var e=t.style,o=e.display,r=e.left,i=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var n=t.getBoundingClientRect();return t.style.display=o,t.style.left=r,t.style.position=i,n}(t)),{top:r,left:o,height:e.height,width:e.width}};function B(t){return t===(t.ownerDocument||{}).body?R(t):{x:t.scrollLeft,y:t.scrollTop}}const N=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||E(t)};function z(t,e){for(var o=[],r=t.parentNode;r&&(o.push(r),r!==e);)r=r.parentNode;return o}function V(t){for(var e=[],o=t.parentNode.firstElementChild;o;)o!==t&&e.push(o),o=o.nextElementSibling;return e}var H=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],U=function(){return k.canUseDOM()?window:null},F=/auto|scroll/,G=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)},W=function(t){if(!t||!k.hasRelativeStackingContext())return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},X=function(){return k.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},K={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,o=t.anchorAlign,r=t.elementRect,i=t.elementAlign,n=t.margin;void 0===n&&(n={});var a=o.horizontal,s=o.vertical,l=i.horizontal,p=i.vertical,c=n.horizontal||0,h=n.vertical||0,v=e.top,g=e.left;return s===u&&(v+=e.height),s!==f&&s!==d||(v+=Math.round(e.height/2)),p===u&&(v-=r.height,h*=-1),p!==f&&p!==d||(v-=Math.round(r.height/2),h*=-1),a===y&&(g+=e.width),a!==f&&a!==d||(g+=Math.round(e.width/2)),l===y&&(g-=r.width,c*=-1),l!==f&&l!==d||(g-=Math.round(r.width/2),c*=-1),{top:v+h,left:g+c}},boundingOffset:function(t){if(!t.getBoundingClientRect){var e=L(t);return{bottom:e.height,left:0,right:e.width,top:0}}var o=t.getBoundingClientRect();return{bottom:o.bottom,left:o.left,right:o.right,top:o.top}},getFontStyles:function(t){var e=U();if(!e||!t)return[];var o=e.getComputedStyle(t);return H.map((function(t){return{key:t,value:o[t]}}))},getWindow:U,hasOffsetParent:function(t){return!!t&&Boolean(t.offsetParent)},offset:function(t){return t?D(t):null},offsetAtPoint:function(t,e){if(!t)return null;var o=t.style,r=o.left,i=o.top,n=o.transition;t.style.transition="none",t.style.left=e.left+"px",t.style.top=e.top+"px";var a=D(t);return t.style.left=r,t.style.top=i,t.offsetHeight,t.style.transition=n,a},position:function(t,e,o){return t&&e?function(t,e,o){void 0===o&&(o=1);var r=e?N(e):null,i=function(t,e){var o=j(t),r=o.getComputedStyle(t),i=D(t),n=e||N(t),a=t.ownerDocument,s=n!==a.body&&n!==a.documentElement,l={top:0,left:0};if("fixed"!==r.position&&s){var p=o.getComputedStyle(n);(l=D(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,r),n=i.top,a=i.left,s=i.height,l=i.width,p=function(t,e){return t?B(t):function(t){var e=N(t);return e?B(e):{x:0,y:0}}(e)}(r,t),c=p.x,h=p.y,u=t.ownerDocument,f=r===u.body||r===u.documentElement?1:o;return{top:n+h*f,left:a+c*f,height:s,width:l}}(t,e,o||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,o=t.anchorAlign,r=t.elementRect,i=t.elementAlign,n=t.collisions,a=t.viewPort,s=t.margin;void 0===s&&(s={});var l=r.top,p=r.left,c=r.height,h=r.width,u=a.height,f=a.width,d=s.horizontal||0,v=s.vertical||0,y=0,g=0,_=n.vertical===m,x=n.horizontal===m,w=n.vertical===b,C=n.horizontal===b;_&&(g+=O(l,c,u)),x&&(y+=O(p,h,f)),w&&(g+=S({margin:v,offset:l,size:c,anchorSize:e.height,viewPortSize:u,anchorAlignPoint:o.vertical,elementAlignPoint:i.vertical})),C&&(y+=S({margin:d,offset:p,size:h,anchorSize:e.width,viewPortSize:f,anchorAlignPoint:o.horizontal,elementAlignPoint:i.horizontal}));var P=w&&0!==g,A=C&&0!==y,k=_&&0!==g,T=x&&0!==y;return{flipped:A||P,fitted:k||T,flip:{horizontal:A,vertical:P},fit:{horizontal:T,vertical:k},offset:{left:y,top:g}}},scrollPosition:R,scrollableParents:function(t){var e=[];if(!k.canUseDOM())return e;for(var o=t.parentElement;o;)(F.test(G(o))||o.hasAttribute("data-scrollable"))&&e.push(o),o=o.parentElement;return e.push(window),e},getRelativeContextElement:W,stackingElementOffset:function(t){var e=W(t);return e?D(e):null},stackingElementScroll:function(t){var e=W(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(t){var e=W(t);return e?{height:e.scrollHeight,width:e.scrollWidth}:null},useRelativePosition:function(t){return Boolean(W(t))},windowViewPort:L,zoomLevel:X,isZoomed:function(){return X()>1},zIndex:function(t,e){if(!t||!k.canUseDOM())return null;var o=function(t,e){for(var o,r,i=z(t),n=e;n&&(o=V(n),!(r=i.reduce((function(t,e){return t.concat(o.filter((function(t){return t===e})))}),[])[0]));)n=n.parentElement;return r}(t,e);if(!o)return null;var r=[t].concat(z(t,o)).reduce((function(t,e){var o=e.style.zIndex||window.getComputedStyle(e).zIndex,r=parseInt(o,10);return r>t?r:t}),0);return r?r+1:null}};const Y=K;const q=function(t){var e=t.anchor,o=t.element,r=t.anchorAlign,i=t.elementAlign,n=t.margin,a=t.offset,s=t.positionMode,l=t.scale||1,p="fixed"!==s&&Y.hasOffsetParent(o)?function(t,e,o,r){var i=k.eitherRect(Y.position(t,e,r),o);return k.scaleRect(i,r)}(e,o,a,l):function(t,e,o,r){var i=function(t,e){return t?{x:0,y:0}:Y.scrollPosition(e)}(t,e),n=k.eitherRect(Y.offset(t),o),a=2*r,s=Y.stackingElementScroll(e);1!==r&&s&&(s.x/=a,s.y/=a);var l=Y.stackingElementOffset(e);return 1!==r&&l&&(l.left/=a,l.top/=a),Y.removeScroll(Y.addScroll(k.removeStackingOffset(k.scaleRect(n,r),l),s),i)}(e,o,a,l),c=k.scaleRect(Y.offset(o),l);return Y.align({anchorAlign:r,anchorRect:p,elementAlign:i,elementRect:c,margin:n})};var Z,Q={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1687870873,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"},$=(Z=function(t,e){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},Z(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}Z(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),J=function(){return J=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},J.apply(this,arguments)};function tt(t,e){if(t===e)return!0;if(!!t!=!!e)return!1;var o=Object.getOwnPropertyNames(t),r=Object.getOwnPropertyNames(e);if(o.length!==r.length)return!1;for(var i=0;i<o.length;i++){var n=o[i];if(t[n]!==e[n])return!1}return!0}var et,ot={left:-1e3,top:0};!function(t){t.hiding="hiding",t.hidden="hidden",t.showing="showing",t.shown="shown",t.reposition="reposition"}(et||(et={}));var rt="k-animation-container-shown",it=function(t){function e(e){var o=t.call(this,e)||this;return o.context=0,o.state={current:et.hidden,previous:et.hidden,props:{}},o._popup=null,o.show=function(t){o.setPosition(t),o.animate(t.firstChild,"enter",o.onOpened),o.setState({current:et.shown,previous:o.state.current})},o.setPosition=function(t){var e=o.props,r=e.anchorAlign,i=e.popupAlign,n=e.collision,a=e.offset,s=e.anchor,l=e.margin,p=e.scale,c=e.positionMode,h=t.style,u=h.width,f=h.height;t.style.width=t.offsetWidth+"px",t.style.height=t.offsetHeight+"px";var d=function(t){var e=t.anchor,o=t.currentLocation,r=t.element,i=t.anchorAlign,n=t.elementAlign,a=t.collisions,s=t.margin,l=t.scale||1,p=Y.offsetAtPoint(r,o),c=k.scaleRect(p,l),h=k.scaleRect(Y.offset(e),l),u=k.eitherRect(h,o),f=t.viewPort||Y.windowViewPort(r);f.width=f.width/l,f.height=f.height/l;var d=Y.restrictToView({anchorAlign:i,anchorRect:u,collisions:a,elementAlign:n,elementRect:c,margin:s,viewPort:f}),v=Y.addOffset(o,d.offset);return{flip:d.flip,flipped:d.flipped,offset:v}}({anchor:s,anchorAlign:r,element:t,elementAlign:i,collisions:n,currentLocation:q({anchor:s,anchorAlign:r,element:t,elementAlign:i,offset:a,margin:l,positionMode:c,scale:p}),margin:o.props.margin});if(t.style.top=d.offset.top+"px",t.style.left=d.offset.left+"px",t.style.width=u,t.style.height=f,o._collisions={fit:d.fit,fitted:d.fitted,flip:d.flip,flipped:d.flipped},o.props.onPosition){var v={target:o,flipped:d.flipped,fitted:d.fitted};o.props.onPosition.call(void 0,v)}},o.onOpened=function(){var t=o._popup;t&&(o.props.show&&t.classList.add(rt),o.attachRepositionHandlers(t),o.props.onOpen&&o.props.onOpen.call(void 0,{target:o}))},o.animate=function(t,e,r){if(o.props.popupAlign){var i,n=o.props.popupAlign,l=n.horizontal,p=n.vertical;i="left"===l&&"center"===p?"right":"right"===l&&"center"===p?"left":"top"===p?"down":"up",o._collisions&&o._collisions.flipped&&(i={down:"up",up:"down",left:"right",right:"left"}[i]),function(t,e,o,r,i){if(0===o)return i();var n="k-slide-"+e+"-"+r,l=n+"-active",p=function(e){e.target===t&&(t.removeEventListener("transitionend",p),a(t),t.style.display="exit"===r?"none":"",i())};t.addEventListener("transitionend",p);var c=t.ownerDocument;if(c){var h=c.defaultView;if(h){var u=function(){a(t),t.classList.add(n),h.requestAnimationFrame((function(){t.style.transitionDuration=o+"ms",t.classList.add(l)}))};s?h.requestAnimationFrame(u):u()}}}(t,i,o.animationDuration[e],e,r)}},o.onClosing=function(t){o.props.show||t.classList.remove(rt),o.detachRepositionHandlers()},o.onClosed=function(){o.state.current===et.hiding&&o.state.previous===et.shown&&o.setState({current:et.hidden,previous:o.state.current}),o.props.onClose&&o.props.onClose.call(void 0,{target:o})},o.getCurrentZIndex=function(){return o.context?o.context+1:100},(0,l.s)(Q),o.reposition=function(t,e,o){var r,i,n,a;void 0===o&&(o={});var s=0;o=o||{};var l=function(){s=!1===o.leading?0:(new Date).getTime(),r=void 0,a=t.apply(i,n),r||(i=n=null)};return function(){var p=(new Date).getTime();s||!1!==o.leading||(s=p);var c=e-(p-s);return i=void 0,n=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=void 0),s=p,a=t.apply(i,n),r||(i=n=null)):r||!1===o.trailing||(r=window.setTimeout(l,c)),a}}(o.reposition.bind(o),16.666666666666668),o}return $(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this._popup},enumerable:!1,configurable:!0}),e.getDerivedStateFromProps=function(t,e){var o=t.show,r=t.anchor,i=t.anchorAlign,n=t.appendTo,a=t.collision,s=t.popupAlign,l=t.className,p=t.popupClass,c=t.style,h=t.offset,u=t.contentKey,f=J(J({},e),{props:{show:o,anchor:r,anchorAlign:i,appendTo:n,collision:a,popupAlign:s,className:l,popupClass:p,style:c,offset:h,contentKey:u}});return t.show?e.current===et.hidden||e.current===et.hiding?J(J({},f),{current:et.showing,previous:e.current}):e.current===et.showing?J(J({},f),{current:et.shown,previous:e.current}):e.current!==et.shown||tt(h,e.props.offset)&&tt(i,e.props.anchorAlign)&&tt(n,e.props.appendTo)&&tt(a,e.props.collision)&&tt(s,e.props.popupAlign)&&tt(c,e.props.style)&&r===e.props.anchor&&p===e.props.popupClass&&l===e.props.className?f:J(J({},f),{current:et.reposition,previous:e.current}):e.current===et.hiding||e.current===et.hidden?J(J({},f),{current:et.hidden,previous:e.current}):J(J({},f),{current:et.hiding,previous:e.current})},e.prototype.componentDidUpdate=function(t){this.state.current===et.showing&&this._popup?this.show(this._popup):this.state.current===et.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===et.reposition&&this.state.previous===et.shown?this.setState({current:et.shown,previous:this.state.current}):this.state.current===et.shown&&t.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},e.prototype.componentDidMount=function(){this.state.current===et.showing&&this._popup&&this.show(this._popup)},e.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},e.prototype.render=function(){var t=this,e=this.props,o=e.children,n=e.className,a=e.popupClass,s=e.show,l=e.id,u=e.positionMode,f=this.props.appendTo?this.props.appendTo:p.N?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===et.reposition&&this.state.previous===et.shown&&this._popup&&this.setPosition(this._popup);var d=Object.assign({},{position:u,top:0,left:-1e4},this.props.style||{}),v=this.state.current===et.hiding;if((s||v)&&f){var y=this.getCurrentZIndex(),g=r.createElement(c.$.Provider,{value:y},r.createElement("div",{className:(0,h.A)("k-animation-container","k-animation-container-relative",n),id:l,ref:function(e){return t._popup=e},style:J({zIndex:y},d)},r.createElement("div",{role:this.props.role,className:(0,h.A)("k-popup",a,"k-child-animation-container"),style:{transitionDelay:"0ms"}},o)));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,o=0;return t&&(!0===t?e=o=300:(e=t.openDuration||0,o=t.closeDuration||0)),{enter:e,exit:o}},enumerable:!1,configurable:!0}),e.prototype.attachRepositionHandlers=function(t){var e=this;this.detachRepositionHandlers(),this._scrollableParents=Y.scrollableParents(this.props.anchor||t),this._scrollableParents&&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:et.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([m,b,_]),vertical:n.oneOf([m,b,_])}),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:m,vertical:b},anchorAlign:{horizontal:v,vertical:u},popupAlign:{horizontal:v,vertical:g},offset:ot,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},e.contextType=c.$,e.displayName="PopupComponent",e}(r.Component),nt=function(){return nt=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},nt.apply(this,arguments)},at=r.createContext((function(t){return t})),st=r.forwardRef((function(t,e){var o=r.useContext(at).call(void 0,t);return r.createElement(it,nt({ref:e},o))}));st.displayName="Popup"},7827:(t,e,o)=>{o.d(e,{N:()=>r});var r=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},8047:(t,e,o)=>{o.d(e,{A:()=>r});var r=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var o={},r=function(t){return t.filter((function(t){return!0!==t&&!!t})).map((function(t){return Array.isArray(t)?r(t):function(t){return"object"==typeof t?Object.keys(t).forEach((function(e){o[e]=t[e]})):o[t]=!0}(t)}))};return r(t),Object.keys(o).map((function(t){return o[t]&&t||null})).filter((function(t){return null!==t})).join(" ")}},8259:(t,e,o)=>{o.d(e,{$:()=>i,u:()=>n});var r=o(3899),i=r.createContext(0),n=function(){return r.useContext(i)};i.displayName="KendoReactZIndexContext"},5410:(t,e,o)=>{o.r(e),o.d(e,{AsyncFocusBlur:()=>G,BrowserSupportService:()=>n,COLLECTION_ACTION:()=>Q,DragAndDrop:()=>Lt,Draggable:()=>Kt,Droppable:()=>qt,FOCUSABLE_ELEMENTS:()=>Jt,FormComponent:()=>y,Icon:()=>pt,IconWrap:()=>yt,IconsContext:()=>dt,Keys:()=>C,Navigation:()=>te,SvgIcon:()=>ut,Typography:()=>At,ZIndexContext:()=>r.$,canUseDOM:()=>a.N,canUseRef:()=>s,classNames:()=>l.A,clone:()=>h,cloneArray:()=>d,cloneDate:()=>c,cloneObject:()=>u,cloneValue:()=>f,createPropsContext:()=>K,dispatchEvent:()=>V,extendDataItem:()=>D,focusFirstFocusableChild:()=>v,getActiveElement:()=>oe,getInnerActiveElement:()=>ee,getItemPath:()=>B,getScrollbarWidth:()=>S,getTabIndex:()=>g,getter:()=>x,guid:()=>w,hasRelativeStackingContext:()=>z,kendoThemeMaps:()=>Zt,mapTree:()=>L,mapTreeItem:()=>R,memoizeOne:()=>$t,noop:()=>O,setScrollbarWidth:()=>P,setter:()=>T,svgIconPropType:()=>st,toIconClass:()=>at,toIconName:()=>nt,useAsyncFocusBlur:()=>U,useCollection:()=>tt,useCustomComponent:()=>J,useDir:()=>q,useDocument:()=>et,useDraggable:()=>Xt,useDroppable:()=>Yt,useMouse:()=>$,usePropsContext:()=>W,useRtl:()=>Z,useWindow:()=>ot,useZIndexContext:()=>r.u,validatePackage:()=>N.s,withPropsContext:()=>Y});var r=o(8259),i=function(){return"undefined"!=typeof document?document:{}},n=function(){function t(){this.scrollbar=0}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:!1,configurable:!0}),t}(),a=o(7827),s=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=o(8047),p=o(3899),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 o in t)if(t.hasOwnProperty(o)){var r=t[o];e[o]=f(r,e[o])}}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 o=e||{};return u(t,o),o}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,o){var r="string"==typeof t?parseInt(t,void 0):t;if(NaN!==r)return void 0!==r?r:e?o?void 0:-1:0},m=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function b(t){var e=[];return t.replace(m,(function(t,o,r,i){e.push(void 0!==o?o:r||i)})),e}var _={};function x(t){if(_[t])return _[t];var e=b(t);return _[t]=function(t){for(var o=t,r=0;r<e.length&&o;r++)o=o[e[r]];return o},_[t]}_.undefined=function(){};var w=function(){var t,e,o="";for(t=0;t<32;t++)e=16*Math.random()|0,8!==t&&12!==t&&16!==t&&20!==t||(o+="-"),o+=(12===t?4:16===t?3&e|8:e).toString(16);return o},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(){},S=function(){return!(!a.N||!document.body)&&(new n).scrollbarWidth},P=function(){if(!a.N||!document.body)return!1;var t=(new n).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width","".concat(t,"px"))},A={undefined:function(t){return t}},k=function(t,e){return e&&e.arrays&&!isNaN(Number(t))?[]:{}};function T(t){if(A[t])return A[t];var e=b(t);return A[t]=function(t,o,r){for(var i=t,n=e.length-1,a=0;a<n&&i;a++)i=i[e[a]]=i[e[a]]||k(e[a+1],r);i[e[n]]=o},A[t]}var j=function(){return j=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},j.apply(this,arguments)},E=function(t,e,o){if(o||2===arguments.length)for(var r,i=0,n=e.length;i<n;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function M(t,e,o){var r;return o?j(j({},t),((r={})[e]=o.length?E([],o,!0):void 0,r)):t&&t[e]?E([],t[e],!0):[]}function I(t,e,o){if(t[e]){var r=M(t,e).map((function(t){return I(t,e,o)}));return o(M(t,e,r))}return o(t)}var L=function(t,e,o){return E([],t.map((function(t){return I(t,e,o)})),!0)},R=function(t,e,o,r){for(var i=t,n=[],a=0;a<e.length;a++)i=i[e[a]],i=Array.isArray(i)?i:i[o],n.push(i);var s=n.length>1?n[n.length-2]:t,l=e[e.length-1],p=r(s[l]);s.splice(l,1,p)},D=function(t,e,o){var r;return Object.assign({},t,t[e]?((r={})[e]=t[e].slice(),r):{},o||{})},B=function(t,e,o){var r=[],i=E([],e,!0);if(i.length){var n=t[i.shift()||0];for(r.push(n);i.length&&o;)n=n[o][i.shift()||0],r.push(n)}return r},N=o(4006),z=function(t){if(!a.N)return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var o=e.createElement("div");o.style.transform="matrix(10, 0, 0, 10, 0, 0)";var r=e.createElement("div");r.appendChild(e.createTextNode("child")),r.style.position="fixed",r.style.top="10px",o.appendChild(r),e.body.appendChild(o);var i=10!==r.getBoundingClientRect().top;return e.body.removeChild(o),i};function V(t,e,o,r){if(t){var i={syntheticEvent:e,nativeEvent:e.nativeEvent,target:o};t.call(void 0,Object.assign(i,r))}}var H=function(t,e,o){if(o||2===arguments.length)for(var r,i=0,n=e.length;i<n;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function U(t){var e=t.onFocus,o=t.onBlur,r=t.onSyncFocus,i=t.onSyncBlur,n=p.useRef(!1),a=p.useRef(0),s=p.useCallback((function(t){clearTimeout(a.current),a.current=window.setTimeout((function(){return t()}))}),[a]),l=p.useCallback((function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];clearTimeout(a.current),r&&r.call(void 0,t[0]),n.current||(n.current=!0,e&&e.call.apply(e,H([void 0],t,!1)))}),[n,e,r]),c=p.useCallback((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];i&&i.call(void 0,t[0]),s((function(){n.current&&o&&(n.current=!1,o.call.apply(o,H([void 0],t,!1)))}))}),[n,s,o,i]);return p.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:l,onBlur:c}}var F=function(){return F=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},F.apply(this,arguments)},G=function(t){var e=t.children,o=U({onFocus:t.onFocus,onBlur:t.onBlur,onSyncFocus:t.onSyncFocus,onSyncBlur:t.onSyncBlur});return p.createElement(p.Fragment,null,e.call(void 0,F({},o)))},W=function(t,e){return p.useContext(t)(e)},X=function(){return X=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},X.apply(this,arguments)},K=function(){return p.createContext((function(t){return t}))},Y=function(t,e){return p.forwardRef((function(o,r){var i=W(t,o);return p.createElement(e,X({},i,{ref:r}))}))};function q(t,e,o){var r=p.useState(e),i=r[0],n=r[1];return p.useEffect((function(){if(!i&&window&&t.current){var e=window.getComputedStyle(t.current).direction;e&&n(e)}}),o),i}function Z(t,e,o){var r=p.useState(e),i=r[0],n=r[1];return p.useEffect((function(){if(!i&&window&&t.current){var e=window.getComputedStyle(t.current).direction;e&&n(e)}}),o),i}var Q,$=function(t,e,o){void 0===o&&(o={});var r=p.useCallback((function(r){o.onMouseDown&&o.onMouseDown.call(void 0,r),t.onMouseDown&&t.onMouseDown.call(void 0,{target:e.current,syntheticEvent:r})}),[o.onMouseDown,t.onMouseDown,e]),i=p.useCallback((function(r){o.onMouseUp&&o.onMouseUp.call(void 0,r),t.onMouseUp&&t.onMouseUp.call(void 0,{target:e.current,syntheticEvent:r})}),[o.onMouseUp,t.onMouseUp,e]);return{onClick:p.useCallback((function(r){o.onClick&&o.onClick.call(void 0,r),t.onClick&&t.onClick.call(void 0,{target:e.current,syntheticEvent:r})}),[o.onClick,t.onClick,e]),onMouseUp:i,onMouseDown:r,onDoubleClick:p.useCallback((function(r){o.onDoubleClick&&o.onDoubleClick.call(void 0,r),t.onDoubleClick&&t.onDoubleClick.call(void 0,{target:e.current,syntheticEvent:r})}),[o.onDoubleClick,t.onDoubleClick,e]),onMouseEnter:p.useCallback((function(r){o.onMouseEnter&&o.onMouseEnter.call(void 0,r),t.onMouseEnter&&t.onMouseEnter.call(void 0,{target:e.current,syntheticEvent:r})}),[o.onMouseEnter,t.onMouseEnter,e]),onMouseLeave:p.useCallback((function(r){o.onMouseLeave&&o.onMouseLeave.call(void 0,r),t.onMouseLeave&&t.onMouseLeave.call(void 0,{target:e.current,syntheticEvent:r})}),[o.onMouseLeave,t.onMouseLeave,e]),onMouseMove:p.useCallback((function(r){o.onMouseMove&&o.onMouseMove.call(void 0,r),t.onMouseMove&&t.onMouseMove.call(void 0,{target:e.current,syntheticEvent:r})}),[o.onMouseMove,t.onMouseMove,e]),onMouseOut:p.useCallback((function(r){o.onMouseOut&&o.onMouseOut.call(void 0,r),t.onMouseOut&&t.onMouseOut.call(void 0,{target:e.current,syntheticEvent:r})}),[o.onMouseOut,t.onMouseOut,e]),onMouseOver:p.useCallback((function(r){o.onMouseOver&&o.onMouseOver.call(void 0,r),t.onMouseOver&&t.onMouseOver.call(void 0,{target:e.current,syntheticEvent:r})}),[o.onMouseOver,t.onMouseOver,e])}},J=function(t){return[t,{}]};!function(t){t[t.add=0]="add",t[t.remove=1]="remove"}(Q||(Q={}));var tt=function(t){void 0===t&&(t=[]);var e=p.useRef(t),o=p.useCallback((function(t){switch(t.type){case Q.add:e.current.push(t.item);break;case Q.remove:var o=e.current.indexOf(t.item);e.current.splice(o,1)}}),[]);return[e.current,o]},et=function(t){var e=p.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]);return p.useCallback((function(){var t=e();return t&&t.ownerDocument||document}),[e])},ot=function(t){var e=et(t);return p.useCallback((function(){var t=e();return t&&t.defaultView||window}),[e])},rt=o(189),it={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl",xxlarge:"k-icon-xxl",xxxlarge:"k-icon-xxxl"},nt=function(t){return t.replace(/^k-i-/,"")},at=function(t){return"k-i-"+t},st=rt.shape({name:rt.string.isRequired,content:rt.string.isRequired,viewBox:rt.string.isRequired}),lt=function(){return lt=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},lt.apply(this,arguments)},pt=p.forwardRef((function(t,e){var o=t.className,r=t.name,i=t.themeColor,n=t.size,a=t.flip,s=t.style,c=t.id,h=t.tabIndex,u=function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o}(t,["className","name","themeColor","size","flip","style","id","tabIndex"]),f=p.useRef(null),d=p.useRef(null);p.useImperativeHandle(f,(function(){return{element:d.current}})),p.useImperativeHandle(e,(function(){return f.current}));var v=p.useMemo((function(){return n||ct.size}),[n]),y=p.useMemo((function(){return a||ct.flip}),[a]),g=p.useMemo((function(){var t;return(0,l.A)("k-icon",r&&at(r),((t={})["k-color-".concat(i)]=i,t["k-flip-h"]="horizontal"===y||"both"===y,t["k-flip-v"]="vertical"===y||"both"===y,t),it[v],o)}),[r,i,v,y,o]),m=$(t,f);return p.createElement("span",lt({ref:d},u,m,{className:g,id:c,tabIndex:h,style:s,role:"presentation"}))}));pt.propTypes={style:rt.object,classNames:rt.string,name:rt.string,themeColor:rt.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:rt.oneOf(["default","xsmall","small","medium","large","xlarge","xxlarge","xxxlarge"]),flip:rt.oneOf(["default","horizontal","vertical","both"])};var ct={size:"default",flip:"default"};pt.displayName="KendoIcon";var ht=function(){return ht=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ht.apply(this,arguments)},ut=p.forwardRef((function(t,e){var o=t.children,r=t.className,i=t.svgClassName,n=t.icon,a=t.flip,s=t.id,c=t.tabIndex,h=t.size,u=t.style,f=t.svgStyle,d=t.themeColor,v=t.viewBox,y=(t.name,function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o}(t,["children","className","svgClassName","icon","flip","id","tabIndex","size","style","svgStyle","themeColor","viewBox","name"])),g=p.useRef(null);p.useImperativeHandle(e,(function(){return{element:g.current}}));var m=p.useMemo((function(){return n?n.name:ft.icon}),[n]),b=p.useMemo((function(){return h||ft.size}),[h]),_=p.useMemo((function(){return a||ft.flip}),[a]),x=p.useMemo((function(){return v||ft.viewBox}),[v]),w=p.useMemo((function(){var t;return(0,l.A)("k-svg-icon","k-svg-i-"+m,((t={})["k-color-".concat(d)]=d,t["k-flip-h"]="horizontal"===_||"both"===_,t["k-flip-v"]="vertical"===_||"both"===_,t),it[b],r)}),[m,d,b,_,r]),C=p.useMemo((function(){return t.width&&t.height?ht({width:t.width,height:t.height},u):t.width?ht({width:t.width,height:t.width},u):t.height?ht({width:t.height,height:t.height},u):ht({},u)}),[t.width,t.height,u]);return p.createElement("span",{className:w,style:C,ref:g},p.createElement("svg",ht({id:s,className:i,style:f,"aria-hidden":!0,tabIndex:c,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:n?n.viewBox:x,dangerouslySetInnerHTML:n?{__html:n.content}:void 0},y),n?void 0:o))}));ut.propTypes={style:rt.object,classNames:rt.string,children:rt.any,icon:rt.object,themeColor:rt.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:rt.oneOf(["default","xsmall","small","medium","large","xlarge","xxlarge","xxxlarge"]),flip:rt.oneOf(["default","horizontal","vertical","both"])};var ft={size:"default",flip:"default",icon:"",viewBox:"0 0 24 24"};ut.displayName="KendoSvgIcon";var dt=p.createContext({type:"svg"});dt.displayName="KendoReactIconsContext";var vt=function(){return vt=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},vt.apply(this,arguments)},yt=p.forwardRef((function(t,e){var o,r=p.useContext(dt),i=r.type,n=r.icons,a=t.icon,s=function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o}(t,["icon"]),l=(null===(o=t.icon)||void 0===o?void 0:o.name)||t.name,c=l&&n&&n[l]&&"string"!=typeof n[l]?n[l]:a;return l=l&&n&&n[l]&&"string"==typeof n[l]?n[l]:l,"svg"===i&&c?p.createElement(ut,vt({},t,{icon:c,ref:e})):p.createElement(pt,vt({},s,{name:l,ref:e}))}));yt.displayName="KendoIconWrap";var gt={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},mt={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},bt={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"},_t={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},xt={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},wt={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},Ct={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},Ot={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"},St=function(){return St=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},St.apply(this,arguments)},Pt=function(t){var e=p.forwardRef((function(e,o){var r=e.id,i=e.style,n=e.className,a=e.fontSize,s=e.fontWeight,l=e.textAlign,c=e.textTransform,h=e.themeColor,u=e.margin,f=function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(o[r[i]]=t[r[i]])}return o}(e,["id","style","className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),d=p.useRef(null),v=p.useRef(null);p.useImperativeHandle(d,(function(){return{element:v.current,props:e}})),p.useImperativeHandle(o,(function(){return d.current}));var y=t;return p.createElement(y,St({id:r,ref:v,className:["k-".concat("p"===t?"paragraph":t),gt[a],mt[s],wt[l],Ct[c],Ot[h],function(){if(void 0!==u){if("string"==typeof u)return[bt[u]];if("number"==typeof u&&u>=0&&u<=24)return["k-m-".concat(u)];if("object"==typeof u){var t=[];return Object.keys(u).forEach((function(e){var o,r,i;null!==u[e]&&void 0!==u[e]&&t.push((o=e,i="string"==typeof(r=u[e])?_t[r]:r,"".concat(xt[o]).concat(i)))})),t.join(" ")}}}(),n].filter((function(t){return void 0!==t})).join(" "),style:i},f),e.children)}));return e.propTypes={style:rt.object,className:rt.string,fontSize:rt.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:rt.oneOf(["light","normal","bold"]),margin:rt.oneOfType([rt.number,rt.object,rt.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:rt.oneOf(["left","right","center","justify"]),textTransform:rt.oneOf(["lowercase","uppercase","capitalize"]),themeColor:rt.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},e.displayName="KendoReactTypography".concat(t.toUpperCase()),e},At={h1:Pt("h1"),h2:Pt("h2"),h3:Pt("h3"),h4:Pt("h4"),h5:Pt("h5"),h6:Pt("h6"),p:Pt("p"),code:Pt("code"),pre:Pt("pre")},kt=function(){return kt=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},kt.apply(this,arguments)},Tt=function(t,e,o){var r=p.useState(e||t),i=r[0],n=r[1];return[void 0!==e?e:i,p.useCallback((function(t,e){n(t),o&&o.call(void 0,kt(kt({},e),{value:t}))}),[o,n])]},jt=p.createContext([void 0,O]),Et=p.createContext([void 0,O]),Mt=p.createContext([[],O,O]),It=p.createContext([[],O,O]),Lt=function(t){var e=Tt(null,void 0),o=e[0],r=e[1],i=Tt(null,void 0),n=i[0],a=i[1],s=tt([]),l=s[0],c=s[1],h=tt([]),u=h[0],f=h[1];return p.createElement(jt.Provider,{value:[o,r]},p.createElement(Et.Provider,{value:[n,a]},p.createElement(Mt.Provider,{value:[l,function(t){c({type:Q.add,item:t})},function(t){c({type:Q.remove,item:t})}]},p.createElement(It.Provider,{value:[u,function(t){f({type:Q.add,item:t})},function(t){f({type:Q.remove,item:t})}]},t.children))))};Lt.displayName="KendoReactDragAndDrop";var Rt,Dt=function(){var t=window&&window.navigator.userAgent;if(!t)return!1;var e=!1,o=[],r={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 r)if(r.hasOwnProperty(i)&&(o=t.match(r[i]))){(e={})[i]=!0,e[o[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,e.version=parseInt(document.DOCUMENT_NODE||o[2],10);break}return e},Bt=function(t){return t&&t.ownerDocument||window.document},Nt=function(t){var e=Dt(),o=Bt(t);return e.edge||e.safari?o.body:o.documentElement},zt=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},Vt=function(t){var e=Nt(t);if(!t||t===document.body||t===document.documentElement)return e;for(var o=t;o&&o!==document.body&&o.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&o.nodeType!==Node.DOCUMENT_NODE&&!zt(o);)o=o.parentNode;return!o||o!==document.body&&o.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?o:e};!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"}(Rt||(Rt={}));var Ht=function(){},Ut=function(t,e,o){void 0===o&&(o={});var r,i,n,a,s,l=o.onIsPressedChange,p=void 0===l?Ht:l,c=o.onIsScrollingChange,h=void 0===c?Ht:c,u=o.onVelocityChange,f=void 0===u?Ht:u,d=o.onOffsetChange,v=void 0===d?Ht:d,y=o.onPageOffsetChange,g=void 0===y?Ht:y,m=o.onClientOffsetChange,b=void 0===m?Ht:m,_=o.onScrollOffsetChange,x=void 0===_?Ht:_,w=o.onInitialScrollOffsetChange,C=void 0===w?Ht:w,O=e.payload,S=O.element,P=O.hint,A=t.autoScrollDirection,k=t.scrollableParent,T=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(T.type){case Rt.POINTER_DOWN:if(T.type===Rt.POINTER_DOWN&&(!T.originalEvent.isPrimary||0!==T.originalEvent.button))break;case Rt.MOUSE_DOWN:if(T.type===Rt.MOUSE_DOWN&&T.originalEvent.which&&T.originalEvent.which>1||t.ignoreMouse)break;case Rt.TOUCH_START:if(T.type===Rt.TOUCH_START&&1!==T.originalEvent.touches.length)break;case Rt.START:var j=k||Vt(e.payload.element);C(j instanceof Window?{x:j.scrollX,y:j.scrollY}:{x:j.scrollLeft,y:j.scrollTop}),b({x:T.clientX,y:T.clientY}),g({x:T.pageX,y:T.pageY}),v({x:T.offsetX,y:T.offsetY}),p(!0),O.onPress&&O.onPress(T);break;case Rt.SCROLL:if(T.type===Rt.SCROLL&&!t.pressed)break;var E=k||Vt(S),M=E instanceof Window?{x:E.scrollX,y:E.scrollY}:{x:E.scrollLeft,y:E.scrollTop};T.scrollX=M.x-t.initialScrollOffset.x,T.scrollY=M.y-t.initialScrollOffset.y,x({x:T.scrollX,y:T.scrollY});case Rt.POINTER_MOVE:if(T.type===Rt.POINTER_MOVE&&!T.originalEvent.isPrimary)break;case Rt.MOUSE_MOVE:case Rt.TOUCH_MOVE:if(T.type===Rt.TOUCH_MOVE&&1!==T.originalEvent.touches.length)break;case Rt.MOVE:if(t.pressed){if(t.autoScroll&&"scroll"!==T.originalEvent.type&&S){var I=Bt(S),L=k||Vt(I.elementFromPoint(T.clientX,T.clientY)),R=(r=T.clientX,i=T.clientY,n=function(t,e){var o=Nt(t);if(t===o)return{top:o.scrollTop,left:o.scrollLeft,bottom:o.scrollTop+e.innerHeight,right:o.scrollLeft+e.innerWidth};var r=t.getBoundingClientRect();return{bottom:r.top+r.height,right:r.left+r.width,left:r.left,top:r.top}}(L,function(t){var e=Bt(t);return e&&e.defaultView||window}(S)),a={x:0,y:0},s=50,r-n.left<s?a.x=-(s-(r-n.left)):n.right-r<s&&(a.x=s-(n.right-r)),i-n.top<s?a.y=-(s-(i-n.top)):n.bottom-i<s&&(a.y=s-(n.bottom-i)),a);f({x:A&&!1===A.horizontal?0:R.x,y:A&&!1===A.vertical?0:R.y}),h(0!==R.y||0!==R.x)}!t.drag&&O.onDragStart&&O.onDragStart(T),O.onDrag&&O.onDrag(T);var D=function(t,e){var o=0,r=null;return e.forEach((function(e){if(e&&t){var i=function(t,e){var o=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=Math.max(r.top,o.top),n=Math.max(r.left,o.left),a=Math.min(r.left+r.width,o.left+o.width),s=Math.min(r.top+r.height,o.top+o.height),l=a-n,p=s-i;if(n<a&&i<s){var c=r.width*r.height,h=o.width*o.height,u=l*p;return Number((u/(c+h-u)).toFixed(4))}return 0}(t,e);i>o&&(o=i,r=e)}})),r}(P||S,t.drops.map((function(t){return t&&t.element})).filter((function(t){return t!==(P||S)}))),B=t.drops.find((function(t){return t.element===D}));B&&D&&function(t,e,o){var r=o.getBoundingClientRect();return r.top<=e&&r.left<=t&&e<=r.bottom&&t<=r.right}(T.clientX,T.clientY,k||Vt(D))&&D!==S?(t.drop&&t.drop.element)!==D?(t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(T),B.onDragEnter&&B.onDragEnter(T)):B.onDragOver&&B.onDragOver(T):t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(T)}b({x:T.clientX,y:T.clientY}),g({x:T.pageX,y:T.pageY});break;case Rt.POINTER_UP:if(T.type===Rt.POINTER_UP&&!T.originalEvent.isPrimary)break;case Rt.MOUSE_UP:case Rt.TOUCH_END:if(T.type===Rt.TOUCH_END&&1!==T.originalEvent.touches.length)break;case Rt.END:p(!1),h(!1),x({x:0,y:0}),O.onRelease&&O.onRelease(T),t.drop&&t.drop.onDrop&&t.drop.onDrop(T),t.drag&&O.onDragEnd&&O.onDragEnd(T);break;case Rt.POINTER_CANCEL:case Rt.CONTEXT_MENU:case Rt.TOUCH_CANCEL:case Rt.CANCEL:p(!1),h(!1),x({x:0,y:0}),O.onDragEnd&&O.onDragEnd(T),t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(T)}},Ft=function(t,e){if(t){var o,r;t===Nt(t)?(o=document.body.scrollHeight>window.innerHeight,r=document.body.scrollWidth>window.innerWidth):(o=t.offsetHeight<=t.scrollHeight,r=t.offsetWidth<=t.scrollWidth);var i=t.scrollTop+e.y,n=o&&i>0&&i<t.scrollHeight,a=t.scrollLeft+e.x,s=r&&a>0&&a<t.scrollWidth;n?t.scrollTop+=e.y:o&&i<0&&(t.scrollTop=0),s?t.scrollLeft+=e.x:r&&a<0&&(t.scrollLeft=0)}},Gt=function(t,e){var o=p.useContext(t),r=o[0],i=o[1],n=p.useState(e),a=n[0],s=n[1];return[void 0!==r?r:a,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];void 0!==r?i.apply(void 0,t):s(t[0])}]},Wt=2e3;function Xt(t,e,o){void 0===o&&(o={});var r=e.onPress,i=void 0===r?O:r,n=e.onRelease,a=void 0===n?O:n,s=e.onDragStart,l=void 0===s?O:s,c=e.onDrag,h=void 0===c?O:c,u=e.onDragEnd,f=void 0===u?O:u,d=o.hint,v=void 0===d?null:d,y=o.mouseOnly,g=void 0!==y&&y,m=o.autoScroll,b=void 0===m||m,_=o.scrollContainer,x=void 0===_?null:_,w=p.useState(!1),C=w[0],S=w[1],P=p.useState(!1),A=P[0],k=P[1],T=Gt(Et)[0],j=Gt(jt),E=j[0],M=j[1],I=p.useContext(It)[0],L=p.useContext(Mt),R=L[0],D=L[1],B=L[2],N=p.useRef({x:0,y:0}),z=p.useRef(),V=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}),X=p.useRef({x:0,y:0}),K=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 b&&b.boundaryElementRef&&b.boundaryElementRef.current&&b.boundaryElementRef.current.element?b.boundaryElementRef.current.element:"object"==typeof b&&b.boundaryElementRef&&b.boundaryElementRef.current?b.boundaryElementRef.current:null}),[b]),ot=p.useRef(null);p.useImperativeHandle(ot,(function(){return{element:$(),hint:J(),onPress:vt,onDragStart:gt,onDrag:mt,onDragEnd:bt,onRelease:yt,data:t.current}}));var rt=p.useCallback((function(){var t=$();return t&&t.ownerDocument||document}),[$]),it=p.useCallback((function(){var t=rt();return t&&t.defaultView||window}),[rt]),nt=p.useCallback((function(){return{drag:E?E.current:null,drop:T?T.current:null,drags:R.map((function(t){return t.current})),drops:I.map((function(t){return t.current})),pressed:C,ignoreMouse:V.current,scrollOffset:Y.current,offset:G.current,pageOffset:W.current,initialScrollOffset:q.current,clientOffset:X.current,initialClientOffset:K.current,velocity:N.current,autoScroll:Boolean("object"==typeof b?!1!==b.enabled:b),scrollableParent:et(),autoScrollDirection:"object"==typeof b?b.direction:{horizontal:!0,vertical:!0},isScrolling:A}}),[E,T,R,I,C,b,et,A]),at=p.useCallback((function(t){S(t)}),[]),st=p.useCallback((function(t){k(t)}),[]),lt=p.useCallback((function(t){N.current=t}),[]),pt=p.useCallback((function(t){G.current=t}),[]),ct=p.useCallback((function(t){X.current=t}),[]),ht=p.useCallback((function(t){W.current=t}),[]),ut=p.useCallback((function(t){K.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){a(t)}),[a]),gt=p.useCallback((function(e){M(ot,{target:t.current,event:e}),l(e)}),[M,t,l]),mt=p.useCallback((function(t){h(t)}),[h]),bt=p.useCallback((function(e){F.current||(M(null,{target:t.current,event:e}),f(e))}),[f,M,t]),_t=p.useCallback((function(t){Ut(nt(),{event:t,payload:ot.current},{onVelocityChange:lt,onOffsetChange:pt,onClientOffsetChange:ct,onPageOffsetChange:ht,onInitialClientOffsetChange:ut,onScrollOffsetChange:ft,onInitialScrollOffsetChange:dt,onIsPressedChange:at,onIsScrollingChange:st})}),[nt,lt,pt,ht,ct,ut,dt,at,ft,st]),xt=p.useCallback((function(t){_t(t)}),[_t]),wt=p.useCallback((function(t){_t(t)}),[_t]),Ct=p.useCallback((function(t){_t(t)}),[_t]),Ot=p.useCallback((function(t){_t(t)}),[_t]),St=p.useCallback((function(t){_t(t)}),[_t]),Pt=p.useCallback((function(t){_t(t)}),[_t]),At=p.useCallback((function(t){_t(t)}),[_t]),kt=p.useCallback((function(t){t.preventDefault(),_t(t)}),[_t]),Tt=p.useCallback((function(t){t.preventDefault(),_t(t)}),[_t]),Lt=p.useCallback((function(t){t.preventDefault(),_t(t)}),[_t]),Rt=p.useCallback((function(t){if(0===t.touches.length&&1===t.changedTouches.length){var e=it();V.current=!0,H.current=e.setTimeout((function(){V.current=!1}),Wt)}_t(t)}),[_t,it]),Dt=p.useCallback((function(t){_t(t)}),[_t]),Bt=p.useCallback((function(){var t=$();if(t){var e=t.style.touchAction;return t.style.touchAction="none",function(){t.style.touchAction=e}}}),[$]),Nt=p.useCallback((function(){return D(ot),function(){B(ot)}}),[B,D]);p.useEffect((function(){var t=it();if(A){var e=tt()||Vt(document.elementFromPoint(X.current.x,X.current.y));t.clearInterval(z.current),z.current=t.setInterval((function(){Ft(e,{x:N.current.x,y:N.current.y})}),50)}return function(){t.clearInterval(z.current)}}),[$,tt,it,A]),p.useEffect(Bt,[Bt]),p.useEffect((function(){var t=it(),e=$(),o=rt();return Q?(e&&(U.current=Vt(e),U.current&&U.current.addEventListener("scroll",Dt,{passive:!0}),e.addEventListener("pointerdown",xt,{passive:!0})),C&&(o.addEventListener("pointermove",wt),o.addEventListener("pointerup",Ot,!0),o.addEventListener("contextmenu",kt),o.addEventListener("pointercancel",Ct,{passive:!0}))):(t.addEventListener("touchmove",O,{capture:!1,passive:!1}),e&&(e.addEventListener("mousedown",St,{passive:!0}),g||(e.addEventListener("touchstart",Tt,{passive:!0}),C&&(e.addEventListener("touchmove",Lt,{passive:!0}),e.addEventListener("touchend",Rt,{passive:!0})))),C&&(o.addEventListener("mousemove",Pt,{passive:!0}),o.addEventListener("mouseup",At,{passive:!0}))),function(){U.current&&U.current.removeEventListener("scroll",Dt),e&&(e.removeEventListener("pointerdown",xt),e.removeEventListener("mousedown",St),e.removeEventListener("touchstart",Tt),e.removeEventListener("touchmove",Lt),e.removeEventListener("touchend",Rt)),o.removeEventListener("pointermove",wt),o.removeEventListener("pointerup",Ot,!0),o.removeEventListener("contextmenu",kt),o.removeEventListener("pointercancel",Ct),o.removeEventListener("mousemove",Pt),o.removeEventListener("mouseup",At),t.removeEventListener("touchmove",O),t.clearTimeout(H.current)}}),[C,it,$,rt,g,Q,kt,St,Pt,At,Ct,xt,wt,Ot,Rt,Lt,Tt,Dt]),p.useEffect((function(){return F.current=!1,function(){F.current=!0}}),[]),p.useLayoutEffect(Nt,[Nt])}var Kt=p.forwardRef((function(t,e){var o=p.useRef(null),r=p.useRef(null),i=p.useCallback((function(){return o.current&&o.current.element?o.current.element:o.current}),[o]);p.useImperativeHandle(r,(function(){return{element:i()||null}})),p.useImperativeHandle(e,(function(){return r.current})),p.useImperativeHandle(t.childRef,(function(){return o.current}));var n=p.useCallback((function(e){t.onPress&&t.onPress({element:i(),target:r.current,event:e})}),[i,t.onPress]),a=p.useCallback((function(e){t.onRelease&&t.onRelease({element:i(),target:r.current,event:e})}),[i,t.onRelease]),s=p.useCallback((function(e){t.onDragStart&&t.onDragStart({element:i(),target:r.current,event:e})}),[t,i]),l=p.useCallback((function(e){t.onDrag&&t.onDrag({element:i(),target:r.current,event:e})}),[i,t.onDrag]),c=p.useCallback((function(e){t.onDragEnd&&t.onDragEnd({element:i(),target:r.current,event:e})}),[i,t.onDragEnd]);return Xt(o,{onPress:n,onRelease:a,onDragStart:s,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:o}):null}));function Yt(t,e){void 0===e&&(e={onDragEnter:O,onDragOver:O,onDragLeave:O,onDrop:O});var o=e.onDragEnter,r=void 0===o?O:o,i=e.onDragOver,n=void 0===i?O:i,a=e.onDragLeave,s=void 0===a?O:a,l=e.onDrop,c=void 0===l?O:l,h=Gt(Et)[1],u=p.useContext(It),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:b,onDrop:_,data:t.current}}));var g=p.useCallback((function(e){h(y,{target:t.current,event:e}),r(e)}),[h,t,r]),m=p.useCallback((function(t){n(t)}),[n]),b=p.useCallback((function(e){h(null,{target:t.current,event:e}),s(e)}),[h,t,s]),_=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])}Kt.displayName="KendoReactDraggable";var qt=p.forwardRef((function(t,e){var o=p.useRef(null),r=p.useRef(null),i=p.useCallback((function(){return o.current&&o.current.element?o.current.element:o.current}),[o]);p.useImperativeHandle(r,(function(){return{element:i()||void 0}})),p.useImperativeHandle(e,(function(){return r.current})),p.useImperativeHandle(t.childRef,(function(){return o.current}));var n=p.useCallback((function(e){t.onDragEnter&&t.onDragEnter({element:i(),target:r.current,event:e})}),[t.onDragEnter,i]),a=p.useCallback((function(e){t.onDragOver&&t.onDragOver({element:i(),target:r.current,event:e})}),[i,t.onDragOver]),s=p.useCallback((function(e){t.onDragLeave&&t.onDragLeave({element:i(),target:r.current,event:e})}),[t.onDragLeave,i]),l=p.useCallback((function(e){t.onDrop&&t.onDrop({element:i(),target:r.current,event:e})}),[t.onDrop,i]);return Yt(o,{onDragEnter:n,onDragOver:a,onDragLeave:s,onDrop:l}),t.children?p.cloneElement(p.Children.only(t.children),{ref:o}):null}));qt.displayName="KendoReactDroppable";var Zt={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}};function Qt(t,e){if(t.length!==e.length)return!1;for(var o=0;o<t.length;o++)if(!((r=t[o])===(i=e[o])||Number.isNaN(r)&&Number.isNaN(i)))return!1;var r,i;return!0}function $t(t,e){void 0===e&&(e=Qt);var o=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(o&&o.lastThis===this&&e(r,o.lastArgs))return o.lastResult;var n=t.apply(this,r);return o={lastResult:n,lastArgs:r,lastThis:this},n}return r.clear=function(){o=null},r}var Jt=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],te=function(){function t(t){var e=this;this.rovingTabIndex=!0,this.update=function(){},this.focusNextIndex=function(t,o){var r=e.elements,i=r.indexOf(t)+o;i=i<0?r.length-1:i,e.focusElement(r[i%r.length],t)},this.tabIndex=t.tabIndex||0,this.root=t.root,this.selectors=t.selectors,this.rovingTabIndex=void 0===t.rovingTabIndex||t.rovingTabIndex,this.mouseEvents=t.mouseEvents||{},this.keyboardEvents=t.keyboardEvents||{}}return Object.defineProperty(t.prototype,"elements",{get:function(){return this.root.current?Array.from(this.root.current.querySelectorAll(this.selectors.join(","))):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this.root.current&&this.root.current.querySelector(this.selectors.join(","))||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){var t=this.elements;return t[t.length-1]||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return this.elements.find((function(t){return t.matches(":focus")}))||null},enumerable:!1,configurable:!0}),t.prototype.focusNext=function(t){this.focusNextIndex(t,1)},t.prototype.focusPrevious=function(t){this.focusNextIndex(t,-1)},t.prototype.triggerKeyboardEvent=function(t){var e=t.target instanceof Element&&t.target.closest(this.selectors.join(",")),o=" "===t.key?"Space":t.key,r=t.nativeEvent.type;e&&this.keyboardEvents[r][o]&&this.keyboardEvents[r][o].call(void 0,e,this,t)},t.prototype.triggerMouseEvent=function(t){var e=t.target instanceof Element&&t.target.closest(this.selectors.join(",")),o=t.nativeEvent.type;e&&this.mouseEvents[o].call(void 0,e,this,t)},t.prototype.focusElement=function(t,e){t&&(e&&(this.rovingTabIndex&&e.removeAttribute("tabindex"),e.classList.remove("k-focus")),this.rovingTabIndex&&t.setAttribute("tabindex",String(this.tabIndex)),t.focus({preventScroll:!0}))},t}(),ee=function(t){var e=t.shadowRoot,o=t.contentDocument;return e&&e.activeElement?ee(e.activeElement):o&&o.activeElement?ee(o.activeElement):t},oe=function(t){if(t&&t.activeElement)return ee(t.activeElement)}},4006:(t,e,o)=>{o.d(e,{s:()=>i});var r=o(9302);function i(t){if(void 0!==r)r.validatePackage(t);else{var e="License activation failed for ".concat(t.name,"\n");e+="The @progress/kendo-licensing script is not loaded.\n",e+="See ".concat(t.licensingDocsUrl," for more information.\n"),console.warn(e)}}},4407:t=>{t.exports=r},9302:t=>{t.exports=i},499:t=>{t.exports=o},189:t=>{t.exports=e},3899:e=>{e.exports=t},994:t=>{t.exports=n}},s={};function l(t){var e=s[t];if(void 0!==e)return e.exports;var o=s[t]={exports:{}};return a[t].call(o.exports,o,o.exports,l),o.exports}return l.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return l.d(e,{a:e}),e},l.d=(t,e)=>{for(var o in e)l.o(e,o)&&!l.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},l.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),l.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l(468)})()}));
|