@progress/kendo-react-map 5.16.1-dev.202307261351 → 5.16.1
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("@progress/kendo-licensing"),require("react-dom"),require("prop-types"),require("@progress/kendo-drawing")):"function"==typeof define&&define.amd?define(["react","@progress/kendo-licensing","react-dom","prop-types","@progress/kendo-drawing"],e):"object"==typeof exports?exports.KendoReactMap=e(require("react"),require("@progress/kendo-licensing"),require("react-dom"),require("prop-types"),require("@progress/kendo-drawing")):t.KendoReactMap=e(t.React,t.KendoLicensing,t.ReactDOM,t.PropTypes,t.KendoDrawing)}(self,(function(t,e,o,r,i){return(()=>{"use strict";var n={4697: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.Map=void 0;var s=o(3899),a=o(189),p=o(3981),l=o(194),c=o(3113),h=o(6600);o(6410);var u=o(2636),d=o(2633),f=o(8338),v=o(7363),y=o(290),g=function(t){function e(e){var o=t.call(this,e)||this;return o.mapInstance=null,o._element=null,o.optionsStore={},o.optionsUnsubscriber=Function.prototype,o.observersStore={},o.onInit=function(t){o.mapInstance=t.sender},o.onRender=function(t){null!==o.mapInstance&&o.trigger("render",t)},o.onMapMouseLeave=function(t){var e=(0,y.toDomEvent)(o,t);o.triggerDomEvent("onMouseLeave",e)?t.preventDefault():null!==o.mapInstance&&o.mapInstance.hideTooltip()},(0,f.validatePackage)(v.packageMetadata),o.optionsStore=(0,c.default)(h.optionsReducer),o.observersStore=(0,c.default)(h.observersReducer),o.childrenObserver=new p.InstanceObserver(o,{onMouseLeave:"onChildMouseLeave"}),o.contextValue={optionsStore:o.optionsStore,observersStore:o.observersStore,childrenObserver:o.childrenObserver},o.mapObserver=new p.InstanceObserver(o,{init:"onInit"}),o}return i(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){this.instantiateCoreMap(),this.optionsUnsubscriber=this.optionsStore.subscribe(this.refresh.bind(this))},e.prototype.componentWillUnmount=function(){this.optionsUnsubscriber(),null!==this.mapInstance&&(this.mapInstance.destroy(),this.mapInstance=null)},e.prototype.componentDidUpdate=function(t){var e=this.props,o=(e.dir,e.children,n(e,["dir","children"]));null!==this.mapInstance&&(Object.entries(t).filter((function(t){return"dir"!==t[0]&&"children"!==t[0]})).some((function(t){var e=t[0],r=t[1];return!(o.hasOwnProperty(e)&&o[e]===r)}))&&this.refresh(),t.dir)},e.prototype.render=function(){var t=this,e=this.props,o=e.style,r=void 0===o?{}:o,i=e.className,n=e.children,a=Object.assign({},r,{position:"relative"}),p=s.createElement("div",{className:i,style:a,key:"mapElement"},s.createElement("div",{ref:function(e){return t._element=e},className:"k-map",onMouseLeave:this.onMapMouseLeave},n));return s.createElement(u.MapContext.Provider,{value:this.contextValue},s.createElement(d.MapTooltip,{key:"tooltip"}),p)},e.prototype.getMapOptions=function(){var t=this.props,e={center:t.center,controls:t.controls,minZoom:t.minZoom,maxZoom:t.maxZoom,minSize:t.minSize,pannable:t.pannable,wraparound:t.wraparound,zoom:t.zoom,zoomable:t.zoomable};return Object.assign(e,this.optionsStore.getState())},Object.defineProperty(e.prototype,"layers",{get:function(){var t;return null===(t=this.mapInstance)||void 0===t?void 0:t.layers},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extent",{get:function(){var t;return null===(t=this.mapInstance)||void 0===t?void 0:t.extent()},set:function(t){var e;null===(e=this.mapInstance)||void 0===e||e.extent(t)},enumerable:!1,configurable:!0}),e.prototype.resize=function(){},e.prototype.viewSize=function(){var t;return null===(t=this.mapInstance)||void 0===t?void 0:t.viewSize()},e.prototype.eventOffset=function(t){var e;return null===(e=this.mapInstance)||void 0===e?void 0:e.eventOffset(t)},e.prototype.eventToLayer=function(t){var e;return null===(e=this.mapInstance)||void 0===e?void 0:e.eventToLayer(t)},e.prototype.eventToLocation=function(t){var e;return null===(e=this.mapInstance)||void 0===e?void 0:e.eventToLocation(t)},e.prototype.eventToView=function(t){var e;return null===(e=this.mapInstance)||void 0===e?void 0:e.eventToView(t)},e.prototype.layerToLocation=function(t,e){var o;return null===(o=this.mapInstance)||void 0===o?void 0:o.layerToLocation(t,e)},e.prototype.locationToLayer=function(t,e){var o;return null===(o=this.mapInstance)||void 0===o?void 0:o.locationToLayer(t,e)},e.prototype.locationToView=function(t){var e;return null===(e=this.mapInstance)||void 0===e?void 0:e.locationToView(t)},e.prototype.viewToLocation=function(t,e){var o;return null===(o=this.mapInstance)||void 0===o?void 0:o.viewToLocation(t,e)},e.prototype.loadMarkers=function(t){var e=this.mapInstance.markers;e&&e._load(t)},e.prototype.refresh=function(){if(null!==this.mapInstance){var t=this.getMapOptions();this.props.onRefresh?this.props.onRefresh.call(void 0,t,this.mapInstance):this.mapInstance.setOptions(t)}},e.prototype.instantiateCoreMap=function(){var t=this.getMapOptions();this.mapInstance=new p.Map(this.element,t,{},{observer:this.mapObserver,sender:this})},e.prototype.trigger=function(t,e){for(var o="click"===t?"mapClick":t,r=(0,l.create)(o,e,this),i="on"+o.charAt(0).toUpperCase()+o.slice(1),n=this.observersStore.getState(),s=!1,a=0;a<n.length;a++)n[a].trigger(o,e)&&(s=!0);return!1===s&&r&&this.props.hasOwnProperty(i)?(this.props[i].call(void 0,r),r.isDefaultPrevented&&r.isDefaultPrevented()):s},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:a.string},e.defaultProps={},e}(s.Component);e.Map=g},2636:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MapContext=void 0;var r=o(3899);e.MapContext=r.createContext(null),e.MapContext.displayName="MapContext"},6894:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ZoomStartEvent=e.ZoomEndEvent=e.ShapeMouseLeaveEvent=e.ShapeMouseEnterEvent=e.ShapeFeatureCreatedEvent=e.ShapeCreatedEvent=e.ShapeClickEvent=e.ResetEvent=e.PanEvent=e.PanEndEvent=e.MarkerCreatedEvent=e.MarkerClickEvent=e.MarkerActivateEvent=e.MapClickEvent=e.BeforeResetEvent=void 0;var r=o(6662);Object.defineProperty(e,"BeforeResetEvent",{enumerable:!0,get:function(){return r.BeforeResetEvent}});var i=o(9921);Object.defineProperty(e,"MapClickEvent",{enumerable:!0,get:function(){return i.MapClickEvent}});var n=o(8606);Object.defineProperty(e,"MarkerActivateEvent",{enumerable:!0,get:function(){return n.MarkerActivateEvent}});var s=o(6236);Object.defineProperty(e,"MarkerClickEvent",{enumerable:!0,get:function(){return s.MarkerClickEvent}});var a=o(4904);Object.defineProperty(e,"MarkerCreatedEvent",{enumerable:!0,get:function(){return a.MarkerCreatedEvent}});var p=o(2982);Object.defineProperty(e,"PanEndEvent",{enumerable:!0,get:function(){return p.PanEndEvent}});var l=o(4719);Object.defineProperty(e,"PanEvent",{enumerable:!0,get:function(){return l.PanEvent}});var c=o(7843);Object.defineProperty(e,"ResetEvent",{enumerable:!0,get:function(){return c.ResetEvent}});var h=o(2139);Object.defineProperty(e,"ShapeClickEvent",{enumerable:!0,get:function(){return h.ShapeClickEvent}});var u=o(5861);Object.defineProperty(e,"ShapeCreatedEvent",{enumerable:!0,get:function(){return u.ShapeCreatedEvent}});var d=o(1737);Object.defineProperty(e,"ShapeFeatureCreatedEvent",{enumerable:!0,get:function(){return d.ShapeFeatureCreatedEvent}});var f=o(695);Object.defineProperty(e,"ShapeMouseEnterEvent",{enumerable:!0,get:function(){return f.ShapeMouseEnterEvent}});var v=o(3773);Object.defineProperty(e,"ShapeMouseLeaveEvent",{enumerable:!0,get:function(){return v.ShapeMouseLeaveEvent}});var y=o(2706);Object.defineProperty(e,"ZoomEndEvent",{enumerable:!0,get:function(){return y.ZoomEndEvent}});var g=o(8476);Object.defineProperty(e,"ZoomStartEvent",{enumerable:!0,get:function(){return g.ZoomStartEvent}})},9104:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Extent=e.Location=void 0;var r=o(3981);Object.defineProperty(e,"Location",{enumerable:!0,get:function(){return r.Location}}),Object.defineProperty(e,"Extent",{enumerable:!0,get:function(){return r.Extent}})},1752: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.MapBubbleLayer=void 0;var i=o(3899),n=o(9075),s=o(8096),a=o(3239),p=function(t){return i.createElement(s.default,r({type:"bubble"},t))};e.MapBubbleLayer=p,p.displayName="MapBubbleLayer",p.propTypes={children:function(t,e,o){return(0,n.validateChildren)(t,e,o,a.MapBubbleLayerTooltip)}}},3239: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.MapBubbleLayerTooltip=void 0;var i=o(3899),n=o(8096),s=function(t){return i.createElement(n.default,r({},t,{_mapKey:"tooltip"}))};e.MapBubbleLayerTooltip=s,s.defaultProps={}},7515: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.MapLayers=void 0;var i=o(3899),n=o(189),s=o(1958),a=function(t){return i.createElement(s.default,r({},t,{_mapKey:"layers"}))};e.MapLayers=a,a.propTypes={children:n.node}},9625: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.MapMarkerLayer=void 0;var i=o(3899),n=o(9075),s=o(8096),a=o(4979),p=function(t){return i.createElement(s.default,r({type:"marker"},t))};e.MapMarkerLayer=p,p.displayName="MapMarkerLayer",p.propTypes={children:function(t,e,o){return(0,n.validateChildren)(t,e,o,a.MapMarkerLayerTooltip)}}},4979: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.MapMarkerLayerTooltip=void 0;var i=o(3899),n=o(8096),s=function(t){return i.createElement(n.default,r({},t,{_mapKey:"tooltip"}))};e.MapMarkerLayerTooltip=s,s.defaultProps={}},1286: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.MapShapeLayer=void 0;var i=o(3899),n=o(9075),s=o(8096),a=o(4570),p=function(t){return i.createElement(s.default,r({type:"shape"},t))};e.MapShapeLayer=p,p.displayName="MapShapeLayer",p.propTypes={children:function(t,e,o){return(0,n.validateChildren)(t,e,o,a.MapShapeLayerTooltip)}}},4570: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.MapShapeLayerTooltip=void 0;var i=o(3899),n=o(8096),s=function(t){return i.createElement(n.default,r({},t,{_mapKey:"tooltip"}))};e.MapShapeLayerTooltip=s,s.defaultProps={}},6641: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.MapTileLayer=void 0;var i=o(3899),n=o(8096),s=function(t){return i.createElement(n.default,r({type:"tile"},t))};e.MapTileLayer=s,s.displayName="MapTileLayer"},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});var s=o(3899),a=o(2636),p=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._mapKey,a=r._parentStore,p=n(n({},t.props),{_mapCollectionIdxKey:"".concat(i,"_").concat(e),_parentStore:a});return s.cloneElement(t,p,o)},e.prototype.render=function(){var t=this,e=this.props,o=e._mapKey,r=e._parentStore,i=e.children;return(r||this.optionsStore).dispatch({mapKey:o,payload:[]}),s.Children.map(i,(function(e,o){return s.isValidElement(e)?t.renderChildren(e,o):e}))},e.contextType=a.MapContext,e}(s.Component);e.default=p},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)},s=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});var a=o(3899),p=o(3113),l=o(6600),c=o(2636),h=function(t){function e(e,o){var r=t.call(this,e,o)||this;return r.optionsStore=o.optionsStore,r.childStore=(0,p.default)(l.optionsReducer),r}return i(e,t),e.prototype.render=function(){var t=this,e=this.props.children;return void 0!==e?a.Children.map(e,(function(e){return a.isValidElement(e)?t.renderChildren(e):e})):null},e.prototype.componentDidMount=function(){this.dispatch()},e.prototype.componentDidUpdate=function(){this.dispatch()},e.prototype.dispatch=function(){var t=this.props,e=t._mapKey,o=t._mapCollectionIdxKey,r=t._parentStore,i=(t.children,s(t,["_mapKey","_mapCollectionIdxKey","_parentStore","children"]));(r||this.optionsStore).dispatch({mapKey:e,mapCollectionIdxKey: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 a.cloneElement(t,o,e)},e.contextType=c.MapContext,e}(a.Component);e.default=h},5388:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MapMarkerLayerTooltip=e.MapMarkerLayer=e.MapBubbleLayerTooltip=e.MapBubbleLayer=e.MapTileLayer=e.MapShapeLayerTooltip=e.MapShapeLayer=e.MapLayers=void 0;var r=o(7515);Object.defineProperty(e,"MapLayers",{enumerable:!0,get:function(){return r.MapLayers}});var i=o(1286);Object.defineProperty(e,"MapShapeLayer",{enumerable:!0,get:function(){return i.MapShapeLayer}});var n=o(4570);Object.defineProperty(e,"MapShapeLayerTooltip",{enumerable:!0,get:function(){return n.MapShapeLayerTooltip}});var s=o(6641);Object.defineProperty(e,"MapTileLayer",{enumerable:!0,get:function(){return s.MapTileLayer}});var a=o(1752);Object.defineProperty(e,"MapBubbleLayer",{enumerable:!0,get:function(){return a.MapBubbleLayer}});var p=o(3239);Object.defineProperty(e,"MapBubbleLayerTooltip",{enumerable:!0,get:function(){return p.MapBubbleLayerTooltip}});var l=o(9625);Object.defineProperty(e,"MapMarkerLayer",{enumerable:!0,get:function(){return l.MapMarkerLayer}});var c=o(4979);Object.defineProperty(e,"MapMarkerLayerTooltip",{enumerable:!0,get:function(){return c.MapMarkerLayerTooltip}})},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,s={milliseconds:"HH:mm:ss.SSS",seconds:{time:"medium"},minutes:{time:"short"},hours:{time:"short"},days:{skeleton:"Md"},weeks:{skeleton:"Md"},months:{skeleton:"yyMMM"},years:{skeleton:"y"}};Object.assign(i,s),Object.assign(n,s)},8874:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BaseEvent=void 0;e.BaseEvent=function(t){this.target=t}},6662: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.BeforeResetEvent=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.BeforeResetEvent=n},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)}},9921: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.MapClickEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.location=e.location,r.originalEvent=e.originalEvent,r}return i(e,t),e}(o(8874).BaseEvent);e.MapClickEvent=n},194:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.create=void 0;var r=o(6894),i={beforeReset:r.BeforeResetEvent,mapClick:r.MapClickEvent,markerActivate:r.MarkerActivateEvent,markerClick:r.MarkerClickEvent,markerCreated:r.MarkerCreatedEvent,panEnd:r.PanEndEvent,pan:r.PanEvent,reset:r.ResetEvent,shapeClick:r.ShapeClickEvent,shapeCreated:r.ShapeCreatedEvent,shapeFeatureCreated:r.ShapeFeatureCreatedEvent,shapeMouseEnter:r.ShapeMouseEnterEvent,shapeMouseLeave:r.ShapeMouseLeaveEvent,zoomEnd:r.ZoomEndEvent,zoomStart:r.ZoomStartEvent};e.create=function(t,e,o){if(i[t])return new i[t](e,o)}},8606: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.MarkerActivateEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.marker=e.marker,r.layer=e.layer,r}return i(e,t),e}(o(8874).BaseEvent);e.MarkerActivateEvent=n},6236: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.MarkerClickEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.marker=e.marker,r.layer=e.layer,r}return i(e,t),e}(o(8874).BaseEvent);e.MarkerClickEvent=n},4904: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.MarkerCreatedEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.marker=e.marker,r.layer=e.layer,r}return i(e,t),e}(o(8619).PreventableEvent);e.MarkerCreatedEvent=n},2982: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.PanEndEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.origin=e.origin,r.center=e.center,r.originalEvent=e.originalEvent,r}return i(e,t),e}(o(8874).BaseEvent);e.PanEndEvent=n},4719: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.PanEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.origin=e.origin,r.center=e.center,r.originalEvent=e.originalEvent,r}return i(e,t),e}(o(8874).BaseEvent);e.PanEvent=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},7843: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.ResetEvent=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.ResetEvent=n},2139: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.ShapeClickEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.layer=e.layer,r.shape=e.shape,r.originalEvent=e.originalEvent,r}return i(e,t),e}(o(8874).BaseEvent);e.ShapeClickEvent=n},5861: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.ShapeCreatedEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.layer=e.layer,r.shape=e.shape,r.location=null,e.shape&&(r.dataItem=e.shape.dataItem,r.location=e.shape.location),r}return i(e,t),e}(o(8874).BaseEvent);e.ShapeCreatedEvent=n},1737: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.ShapeFeatureCreatedEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.dataItem=e.dataItem,r.layer=e.layer,r.group=e.group,r.properties=e.properties,r}return i(e,t),e}(o(8874).BaseEvent);e.ShapeFeatureCreatedEvent=n},695: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.ShapeMouseEnterEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.layer=e.layer,r.shape=e.shape,r.originalEvent=e.originalEvent,r}return i(e,t),e}(o(8874).BaseEvent);e.ShapeMouseEnterEvent=n},3773: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.ShapeMouseLeaveEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.layer=e.layer,r.shape=e.shape,r.originalEvent=e.originalEvent,r}return i(e,t),e}(o(8874).BaseEvent);e.ShapeMouseLeaveEvent=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.originalEvent=e.originalEvent,r}return i(e,t),e}(o(8874).BaseEvent);e.ZoomEndEvent=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.originalEvent=e.originalEvent,r}return i(e,t),e}(o(8619).PreventableEvent);e.ZoomStartEvent=n},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.Map=e.ConfigurationComponent=e.CollectionConfigurationComponent=void 0;var n=o(1958);e.CollectionConfigurationComponent=n.default;var s=o(8096);e.ConfigurationComponent=s.default;var a=o(4697);Object.defineProperty(e,"Map",{enumerable:!0,get:function(){return a.Map}}),i(o(5388),e),i(o(9104),e),i(o(6894),e),i(o(6012),e)},7363:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata=void 0,e.packageMetadata={name:"@progress/kendo-react-map",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1690378311,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.optionsReducer=void 0,e.optionsReducer=function(t,e){return e.mapCollectionIdxKey?r.collectionConfigurationItem(t,e):e.mapKey?r.configurationItem(t,e):{}},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.mapKey]=e.payload,o))},collectionConfigurationItem:function(t,e){var o,r=!1,i=e.mapCollectionIdxKey.split("_"),n=i[0],s=i[1],a=t[n].map((function(t,o){return parseInt(s,10)===o?(r=!0,e.payload):t}));return!1===r&&a.splice(parseInt(s,10),0,e.payload),Object.assign(t,((o={})[n]=a,o))},themeItem:function(t,e){for(var o={},r=Object.assign(o,t),i=e.payload,n=i.field,s=i.value,a=n.split("."),p=a.shift();a.length>0;)o=o[p]=o[p]||{},p=a.shift();return o[p]=s,r}}},3113:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=o(8338);e.default=function(t){var e,o=[],i=function(i){e=t(e,i),r.canUseDOM&&o.forEach((function(t){return t()}))};return i({}),{getState:function(){return e},dispatch:i,subscribe:function(t){return o.push(t),function(){return o=o.filter((function(e){return e!==t}))}}}}},2633: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)},s=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.MapTooltip=void 0;var a=o(3899),p=o(3981),l=o(2104),c=o(2636),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.context=null,e.state={popupShown:!1},e}return i(e,t),e.prototype.componentDidMount=function(){this.mapObserver=new p.InstanceObserver(this,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),this.context.observersStore.dispatch({type:"add",payload:this.mapObserver})},e.prototype.render=function(){var t=this.state,e=t.popupContext,o=(t.shared,t.className,s(t,["popupContext","shared","className"]));if(!e||!this.state.popupShown)return null;var r=e.layerIndex,i=this.findRenderFunctionByLayer(r);if(!i)return null;var p="k-map-".concat(e.type,"-tooltip");return a.createElement(l.TooltipPopup,n({},o,{popupContent:function(){return a.createElement("div",{className:"k-tooltip-content"},i(e))},className:p}))},e.prototype.componentWillUnmount=function(){this.context.observersStore.dispatch({type:"remove",payload:this.mapObserver})},e.prototype.onShowTooltip=function(t){var e=t.anchor,o=t.className,r=this.createTooltipContext(t);this.setState({popupShown:!0,popupAlign:{vertical:"bottom",horizontal:"center"},popupOffset:e,popupContext:r,popupStyles:{position:"relative"},className:o})},e.prototype.onHideTooltip=function(){this.setState({popupShown:!1,popupStyles:{},className:void 0})},e.prototype.createTooltipContext=function(t){return t},e.prototype.findRenderFunctionByLayer=function(t){var e=this.context.optionsStore.getState().layers;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.contextType=c.MapContext,e}(a.Component);e.MapTooltip=h},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)}),n=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.TooltipPopup=void 0;var s=o(3899),a=o(3981),p=o(9075),l=o(6201),c=o(2636),h={horizontal:"fit",vertical:"fit"},u=["k-tooltip","k-map-tooltip"],d=function(t){function e(e,o){var r=t.call(this,e,o)||this;return r.context=null,r.element=null,r.onMapMouseLeave=function(t){var e=t.syntheticEvent;return!!(0,p.hasParent)(e.relatedTarget,r.element)},r.mapObserver=new a.InstanceObserver(r,{onMouseLeave:"onMapMouseLeave"}),o.observersStore.dispatch({type:"add",payload:r.mapObserver}),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,p=e.popupContent,c=e.className,d=n(n([],u,!0),[c],!1).join(" ").trim();return s.createElement(l.Popup,{animate:!0,popupAlign:r,offset:i,show:o,collision:h,className:"k-tooltip-wrapper"},s.createElement("div",{className:d,style:a,ref:function(e){return t.element=e}},p()))},e.prototype.componentWillUnmount=function(){this.context.observersStore.dispatch({type:"remove",payload:this.mapObserver})},e.contextType=c.MapContext,e}(s.Component);e.TooltipPopup=d},6012:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MapTooltip=void 0;var r=o(2633);Object.defineProperty(e,"MapTooltip",{enumerable:!0,get:function(){return r.MapTooltip}})},9075:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),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,s=i;n<s.length;n++){var a=s[n];if(!a.type||a.type!==r)return new Error("".concat(o," children should be Array of type ").concat(r.displayName,"."))}return null}},3981:(t,e,o)=>{o.r(e),o.d(e,{Aggregates:()=>Tr,ArcGauge:()=>Eh,ArcScale:()=>Sh,AreaChart:()=>In,AreaSegment:()=>Tn,ArrowLinearPointer:()=>Zc,Axis:()=>oo,AxisGroupRangeTracker:()=>zn,AxisLabel:()=>Ie,Bar:()=>Un,BarChart:()=>Kn,BarLabel:()=>Hn,BarLinearPointer:()=>oh,Barcode:()=>_u,Box:()=>ie,BoxElement:()=>ve,BoxPlot:()=>is,BoxPlotChart:()=>ps,BubbleChart:()=>gs,Bullet:()=>_s,BulletChart:()=>Cs,Candlestick:()=>$n,CandlestickChart:()=>os,CategoricalChart:()=>sn,CategoricalErrorBar:()=>tn,CategoricalPlotArea:()=>ja,CategoryAxis:()=>zo,Chart:()=>Wl,ChartAxis:()=>Cr,ChartContainer:()=>Es,ChartElement:()=>de,ChartPane:()=>Ar,ChartPlotArea:()=>Pr,ChartService:()=>Qe,CircularGauge:()=>Bh,Class:()=>I.Class,ClipAnimation:()=>kn,ClusterLayout:()=>Yn,Crosshair:()=>Ms,CrosshairTooltip:()=>Ps,CurveProcessor:()=>_r,DateCategoryAxis:()=>Yo,DateValueAxis:()=>or,DefaultAggregates:()=>ia,DomEventsBuilder:()=>Je,DonutChart:()=>Lp,DonutPlotArea:()=>Ip,DonutSegment:()=>Rp,ErrorBarBase:()=>Ji,ErrorRangeCalculator:()=>Ir,Extent:()=>Gf,FloatElement:()=>ke,FontLoader:()=>It,FormatService:()=>Xe,Gauge:()=>Bc,Gradients:()=>xe,HashMap:()=>lt,Highlight:()=>za,InstanceObserver:()=>ft,IntlService:()=>Fe,Legend:()=>tp,LegendItem:()=>Za,LegendLayout:()=>qa,LineChart:()=>On,LinePoint:()=>hn,LineSegment:()=>dn,LinearGauge:()=>nh,LinearPointer:()=>Gc,LinearScale:()=>Hc,Location:()=>Fd,LogarithmicAxis:()=>ar,Map:()=>xy,MousewheelZoom:()=>Xa,Navigator:()=>cc,NavigatorHint:()=>ic,Note:()=>ze,NumericAxis:()=>tr,OHLCChart:()=>Sa,OHLCPoint:()=>Ca,Pane:()=>Ls,Pannable:()=>Fa,PieAnimation:()=>vp,PieChart:()=>Op,PieChartMixin:()=>Sp,PiePlotArea:()=>Tp,PieSegment:()=>kp,PlotAreaBase:()=>Js,PlotAreaEventsMixin:()=>ta,PlotAreaFactory:()=>op,Point:()=>ee,PointEventsMixin:()=>pn,PolarAxis:()=>ur,QRCode:()=>Ed,RadarCategoryAxis:()=>cr,RadarLogarithmicAxis:()=>xr,RadarNumericAxis:()=>gr,RadialGauge:()=>Ch,RadialPointer:()=>bh,RadialScale:()=>dh,RangeAreaChart:()=>_a,RangeAreaPoint:()=>da,RangeBar:()=>sa,RangeBarChart:()=>pa,RangePointer:()=>Mh,Ring:()=>ae,RootElement:()=>we,ScatterChart:()=>ds,ScatterErrorBar:()=>cs,ScatterLineChart:()=>gp,Sector:()=>le,Selection:()=>sp,SeriesAggregator:()=>oa,SeriesBinder:()=>Br,ShapeBuilder:()=>he,ShapeElement:()=>ge,SharedTooltip:()=>cp,Sparkline:()=>$l,SplineAreaSegment:()=>Ln,SplineSegment:()=>bn,StackWrap:()=>Qn,StockChart:()=>uc,TemplateService:()=>et,Text:()=>Pe,TextBox:()=>Ee,Title:()=>Le,Tooltip:()=>pp,WaterfallChart:()=>Ma,WaterfallSegment:()=>Pa,XYPlotArea:()=>bp,ZoomSelection:()=>Ga,addClass:()=>B,alignPathToPixel:()=>D,anyHasZIndex:()=>Sn,append:()=>xt,appendIfNotNull:()=>js,areNumbers:()=>ts,autoMajorUnit:()=>te,autoTextColor:()=>Gt,barcodeValidator:()=>Cu,bindEvents:()=>bt,bindSegments:()=>Ds,categoriesCount:()=>rn,chartBaseTheme:()=>Ly,clockwise:()=>z,constants:()=>r,convertableToNumber:()=>N,countNumbers:()=>Or,createHashSet:()=>Kt,createOutOfRangePoints:()=>Xs,deepExtend:()=>X,defaultErrorHandler:()=>Jt,defined:()=>_t,deg:()=>wt,elementOffset:()=>Ct,elementScale:()=>Ut,elementSize:()=>kt,elementStyles:()=>K,equalsIgnoreCase:()=>zs,evalOptions:()=>on,eventCoordinates:()=>St,eventElement:()=>At,filterSeriesByType:()=>Vs,find:()=>Vt,findAxisByName:()=>kr,getDateField:()=>Hs,getField:()=>Er,getSpacing:()=>J,getTemplate:()=>ot,getter:()=>nt,grep:()=>st,hasClasses:()=>at,hasGradientOverlay:()=>Nn,hasValue:()=>hs,hashKey:()=>Pt,inArray:()=>ct,interpolateValue:()=>ht,isArray:()=>R,isDateAxis:()=>Ns,isFunction:()=>F,isNumber:()=>V,isObject:()=>Y,isString:()=>H,keys:()=>$t,last:()=>Ot,limitValue:()=>Mt,logToConsole:()=>I.logToConsole,map:()=>vt,mousewheelDelta:()=>gt,objectKey:()=>Tt,qrcodeValidator:()=>Rd,rad:()=>Et,rectToBox:()=>Oe,removeClass:()=>j,round:()=>Rt,segmentVisible:()=>Is,setDefaultOptions:()=>Dt,singleItemOrArray:()=>Fs,sparseArrayLimits:()=>zt,styleValue:()=>q,unbindEvents:()=>Bt,valueOrDefault:()=>Lt});var r={};o.r(r),o.d(r,{DEFAULT_PANE:()=>ac,NAVIGATOR_AXIS:()=>sc,NAVIGATOR_PANE:()=>nc});var i="arc",n="#000",s="bottom",a="center",p="circle",l=3,c="cross",h="date",u="12px sans-serif",d=10,f=/\{\d+:?/,v="height",y="inside",g="left",m=Number.MAX_VALUE,x=-Number.MAX_VALUE,b="none",_="object",w="outside",C="right",k="roundedRect",S="string",A="top",P="value",O="#fff",M="width",T="x",E="y";function R(t){return Array.isArray(t)}function B(t,e){for(var o=R(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 j(t,e){t&&t.className&&(t.className=t.className.replace(e,"").replace(L," "))}var I=o(4407);function D(t){var e=.5;t.options.stroke&&I.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 z(t,e){return-t.x*e.y+t.y*e.x<0}function V(t){return"number"==typeof t&&!isNaN(t)}function H(t){return typeof t===S}function N(t){return V(t)||H(t)&&isFinite(t)}function F(t){return"function"==typeof t}var U="object",G="undefined";function W(t,e){for(var o in e){var r,i=e[o],n=typeof i;if((r=n===U&&null!==i?i.constructor:null)&&r!==Array)if(i instanceof Date)t[o]=new Date(i.getTime());else if(F(i.clone))t[o]=i.clone();else{var s=t[o];t[o]=typeof s===U&&s||{},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 Y(t){return"object"==typeof t}function q(t){return V(t)?t+"px":t}var Q=/width|height|top|left|bottom|right/i;function Z(t){return Q.test(t)}function K(t,e){var o=H(e)?[e]:e;if(R(o)){for(var r={},i=window.getComputedStyle(t),n=0;n<o.length;n++){var s=o[n];r[s]=Z(s)?parseFloat(i[s]):i[s]}return r}if(Y(e))for(var a in e)t.style[a]=q(e[a])}function J(t,e){void 0===e&&(e=0);var o={top:0,right:0,bottom:0,left:0};return"number"==typeof t?o[A]=o[C]=o[s]=o[g]=t:(o[A]=t[A]||e,o[C]=t[C]||e,o[s]=t[s]||e,o[g]=t[g]||e),o}var $={compile:function(t){return t}},tt=function(){};tt.register=function(t){$=t},tt.compile=function(t,e){return $.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):F(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(I.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 st(t,e){for(var o=t.length,r=[],i=0;i<o;i++)e(t[i])&&r.push(t[i]);return r}function at(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 pt=function(){this._map={}};pt.prototype.get=function(t){return this._map[this._key(t)]},pt.prototype.set=function(t,e){this._map[this._key(t)]=e},pt.prototype._key=function(t){return t instanceof Date?t.getTime():t};const lt=pt;function ct(t,e){if(e)return-1!==e.indexOf(t)}function ht(t,e,o){return I.drawing.util.round(t+(e-t)*o,l)}var ut="trigger",dt=function(t,e){this.observer=t,this.handlerMap=X({},this.handlerMap,e)};dt.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},dt.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)},dt.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 ft=dt;function vt(t,e){for(var o=t.length,r=[],i=0;i<o;i++){var n=e(t[i]);I.drawing.util.defined(n)&&r.push(n)}return r}var yt=I.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=I.drawing.util,xt=mt.append,bt=mt.bindEvents,_t=mt.defined,wt=mt.deg,Ct=mt.elementOffset,kt=mt.elementSize,St=mt.eventCoordinates,At=mt.eventElement,Pt=mt.hashKey,Ot=mt.last,Mt=mt.limitValue,Tt=mt.objectKey,Et=mt.rad,Rt=mt.round,Bt=mt.unbindEvents,Lt=mt.valueOrDefault,jt=function(){};jt.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++,jt.fetchFonts(i,e,o),o.depth--))}))},jt.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,I.logToConsole)(t)}Promise.all(o).then(e,e)}else e()},jt.preloadFonts=function(t,e){var o=[];jt.fetchFonts(t,o),jt.loadFonts(o,e)};const It=jt;function Dt(t,e){var o=t.prototype;o.options?o.options=X({},o.options,e):o.options=e}function zt(t){for(var e=m,o=x,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===x?void 0:o}}function Vt(t,e){for(var o=0;o<t.length;o++){var r=t[o];if(e(r,o,t))return r}}var Ht=I.geometry.Matrix,Nt=/matrix\((.*)\)/;function Ft(t){var e=getComputedStyle(t).transform;return"none"===e?Ht.unit():function(t){var e=t.match(Nt);if(null===e||2!==e.length)return Ht.unit();var o=e[1].split(",").map((function(t){return parseFloat(t)}));return new(Function.prototype.bind.apply(Ht,[null].concat(o)))}(e)}function Ut(t){if(!t)return Ht.unit();for(var e=Ft(t),o=t.parentElement;o;){var r=Ft(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 I.Color(t).isDark()?O: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},Yt={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=[]},Yt.size.get=function(){return this._values.length},Object.defineProperties(Xt.prototype,Yt);var qt=function(t){this._set=new Set(t)},Qt={size:{configurable:!0}};qt.prototype.values=function(){return Array.from(this._set)},qt.prototype.has=function(t){return this._set.has(t)},qt.prototype.add=function(t){this._set.add(t)},qt.prototype.delete=function(t){this._set.delete(t)},qt.prototype.clear=function(){this._set.clear()},Qt.size.get=function(){return this._set.size},Object.defineProperties(qt.prototype,Qt);var Zt=function(){var t=!1;return"function"==typeof Set&&(t=new Set([1]).has(1)),t};function Kt(t){return Zt()?new qt(t):new Xt(t)}function Jt(t){throw t}const $t={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=Rt(e-t,d-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=Rt(o/r,d);return Rt(r*(i<1.904762?.2:i<4.761904?.5:i<9.523809?1:2),d)}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,s=t.y,a=this.x,p=this.y;return this.x=Rt(n+(a-n)*r+(p-s)*i,l),this.y=Rt(s+(p-s)*r-(a-n)*i,l),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}(I.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 _t(t)&&(this.x1=t,this.x2=this.x1+r),_t(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=R(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!==T&&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===A||e===s?E:T,n=i===E?o:r;if(e===a){var p=t.center(),l=this.center();this.x1+=p.x-l.x,this.y1+=p.y-l.y}else this[i+1]=e===A||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=J(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=J(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,s=re(0,0,i,n,t),a=re(e,0,i,n,t),p=re(e,o,i,n,t),l=re(0,o,i,n,t);return e=Math.max(s.x,a.x,p.x,l.x)-Math.min(s.x,a.x,p.x,l.x),o=Math.max(s.y,a.y,p.y,l.y)-Math.min(s.y,a.y,p.y,l.y),this.x2=this.x1+e,this.y2=this.y1+o,this},e.prototype.toRect=function(){return new I.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===T?M:v,p=this[n]();ct(o,[g,A])?(this[r]=t[r],this[i]=this[r]+p):ct(o,[C,s])?(this[i]=t[i],this[r]=this[i]-p):o===a&&(this[r]=t[r]+(t[n]()-p)/2,this[i]=this[r]+p)},e}(I.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,s=Rt(this.center.x-r*n,l),a=Rt(this.center.y-i*n,l);return new ee(s,a)},e.prototype.adjacentBox=function(t,e,o){var r=this.clone().expand(t),i=r.middle(),n=r.point(i),s=e/2,a=o/2,p=Math.sin(Et(i)),l=Math.cos(Et(i)),c=n.x-s,h=n.y-a;return Math.abs(p)<.9&&(c+=s*-l/Math.abs(l)),Math.abs(l)<.9&&(h+=a*-p/Math.abs(p)),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,s=t.x-e.x,a=t.y-e.y,p=new ee(s,a),c=this.point(i),h=new ee(c.x-e.x,c.y-e.y),u=this.point(n),d=new ee(u.x-e.x,u.y-e.y),f=Rt(s*s+a*a,l);return(h.equals(p)||z(h,p))&&!z(d,p)&&f>=o*o&&f<=r*r},e.prototype.getBBox=function(){var t,e=new ie(m,m,x,x),o=Rt(this.startAngle%360),r=Rt((o+this.angle)%360),i=this.innerRadius,n=[0,90,180,270,o,r].sort(se),s=n.indexOf(o),a=n.indexOf(r);t=o===r?n:s<a?n.slice(s,a+1):[].concat(n.slice(0,a+1),n.slice(s,n.length));for(var p=0;p<t.length;p++){var l=this.point(t[p]);e.wrapPoint(l),e.wrapPoint(l,i)}return i||e.wrapPoint(this.center),e},e.prototype.expand=function(t){return this.radius+=t,this},e}(I.Class);function se(t,e){return t-e}const ae=ne;var pe=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}(ae);const le=pe;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 I.geometry.Point(t.center.x,t.center.y),n=Math.max(t.radius,0),s=Math.max(t.innerRadius,0),a=new I.geometry.Arc(i,{startAngle:o,endAngle:r,radiusX:n,radiusY:n}),p=I.drawing.Path.fromArc(a,e).close();if(s){a.radiusX=a.radiusY=s;var l=a.pointAt(r);p.lineTo(l.x,l.y),p.arc(r,o,s,s,!0)}else p.lineTo(i.x,i.y);return p},e}(I.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 I.drawing.Group({zIndex:this.options.zIndex,visible:Lt(this.options.visible,!0)})},e.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=I.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):_t(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 s={fill:{color:O,opacity:e||.2},stroke:{color:O,width:1,opacity:e||.2}};if(i){if(!(n=this._highlight=i(Object.assign(this.highlightVisualArgs(),{createVisual:function(){return o.createHighlight(s)},sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total}))))return}else n=this._highlight=this.createHighlight(s);_t(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 I.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}(I.Class);ue.prototype.options={};const de=ue;var fe=function(t){function e(e){t.call(this,e),this.options.margin=J(this.options.margin),this.options.padding=J(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,s=i.height,a=i.shrinkToFit,p=n&&s,l=i.margin,c=i.padding,h=i.border.width,u=function(){r.align(e,T,i.align),r.align(e,E,i.vAlign),r.paddingBox=o.clone().unpad(l).unpad(h)},d=e.clone();p&&(d.x2=d.x1+n,d.y2=d.y1+s),a&&d.unpad(l).unpad(h).unpad(c),t.prototype.reflow.call(this,d),o=p?this.box=new ie(0,0,n,s):this.box,a&&p?(u(),d=this.contentBox=this.paddingBox.clone().unpad(c)):(d=this.contentBox=o.clone(),o.pad(c).pad(h).pad(l),u()),this.translateChildren(o.x1-d.x1+l.left+h+c.left,o.y1-d.y1+l.top+h+c.top);for(var f=this.children,v=0;v<f.length;v++){var y=f[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(I.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}(de);Dt(fe,{align:g,vAlign:A,margin:{},padding:{},border:{color:n,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});const ve=fe;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,s=e.height()/2;if(!t.visible||!this.hasBox())return null;var a,h=this.visualStyle();if(o===p)a=new I.drawing.Circle(new I.geometry.Circle([Rt(e.x1+n,l),Rt(e.y1+s,l)],Math.min(n,s)),h);else if("triangle"===o)a=I.drawing.Path.fromPoints([[e.x1+n,e.y1],[e.x1,e.y2],[e.x2,e.y2]],h).close();else if(o===c)(a=new I.drawing.MultiPath(h)).moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),a.moveTo(e.x1,e.y2).lineTo(e.x2,e.y1);else{var u=e.toRect();if(o===k){var d=Lt(t.borderRadius,u.width()/5);u.setCornerRadius(d)}a=I.drawing.Path.fromRect(u,h)}return r&&a.transform(I.geometry.transform().rotate(-r,[i.x,i.y])),a.options.zIndex=t.zIndex,a},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);Dt(ye,{type:p,align:a,vAlign:a});const ge=ye;var me="radial";const xe={glass:{type:"linear",rotation:0,stops:[{offset:0,color:O,opacity:0},{offset:.25,color:O,opacity:.3},{offset:1,color:O,opacity:0}]},sharpBevel:{type:me,stops:[{offset:0,color:O,opacity:.55},{offset:.65,color:O,opacity:0},{offset:.95,color:O,opacity:.25}]},roundedBevel:{type:me,stops:[{offset:.33,color:O,opacity:.06},{offset:.83,color:O,opacity:.2},{offset:.95,color:O,opacity:0}]},roundedGlass:{type:me,supportVML:!1,stops:[{offset:0,color:O,opacity:0},{offset:.5,color:O,opacity:.3},{offset:.99,color:O,opacity:0}]},sharpGlass:{type:me,supportVML:!1,stops:[{offset:0,color:O,opacity:.2},{offset:.15,color:O,opacity:.15},{offset:.17,color:O,opacity:.35},{offset:.85,color:O,opacity:.05},{offset:.87,color:O,opacity:.15},{offset:.99,color:O,opacity:0}]},bubbleShadow:{type:me,center:[.5,.5],radius:.5}};function be(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),s=Math.min(t.y1,e.y1),a=Math.max(t.y1,e.y1),p=Math.min(t.y2,e.y2),l=Math.max(t.y2,e.y2),c=[];return c[0]=new ie(r,s,i,a),c[1]=new ie(o,a,r,p),c[2]=new ie(i,a,n,p),c[3]=new ie(r,p,i,l),t.x1===o&&t.y1===s||e.x1===o&&e.y1===s?(c[4]=new ie(o,s,r,a),c[5]=new ie(i,p,n,l)):(c[4]=new ie(i,s,n,a),c[5]=new ie(o,p,r,l)),st(c,(function(t){return t.height()>0&&t.width()>0}))[0]}var _e=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=be(o,e[r].box)||new ie},e.prototype.createVisual=function(){this.visual=new I.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=I.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=Tt(t),i=xe[t.gradient];if(o[r])e=o[r];else{var n=Object.assign({},i,t);"linear"===i.type?e=new I.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 s=Object.assign({},e[n]);s.offset=(s.offset*(100-o)+o)/100,i.push(s)}return i}(n)),(e=new I.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}(de);Dt(_e,{width:600,height:400,background:O,border:{color:n,width:0},margin:J(5),zIndex:-2});const we=_e;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=T,this.elementAxis=E,this.groupSizeField=M,this.elementSizeField=v,this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=E,this.elementAxis=T,this.groupSizeField=v,this.elementSizeField=M,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,s=e.groupSizeField,a=this.groupOptions(),p=a.groups,l=a.groupsSize,c=a.maxGroupElementsSize,h=p.length,u=o[i+1]+this.alignStart(l,o[s]());if(h){for(var d=u,f=0;f<h;f++){for(var v=p[f],y=v.groupElements,g=o[r+1],m=y.length,x=0;x<m;x++){var b=y[x],_=t.elementSize(b),w=d+t.alignStart(_[s],v.groupSize),C=new ie;C[i+1]=w,C[i+2]=w+_[s],C[r+1]=g,C[r+2]=g+_[n],b.reflow(C),g+=_[n]+t.elementSpacing}d+=v.groupSize+t.groupSpacing}o[i+1]=u,o[i+2]=u+l,o[r+2]=o[r+1]+c}},e.prototype.alignStart=function(t,e){var o=0,r=this.options.align;return r===C||r===s?o=e-t:r===a&&(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,s=t.groupSpacing,a=Rt(e[r]()),p=o.length,l=[],c=0,h=0,u=0,d=0,f=[],v=0;v<p;v++){var y=o[v];y.box||y.reflow(e);var g=this.elementSize(y);this.options.wrap&&Rt(h+n+g[r])>a&&(l.push({groupElements:f,groupSize:c,groupElementsSize:h}),d=Math.max(d,h),u+=s+c,c=0,h=0,f=[]),c=Math.max(c,g[i]),h>0&&(h+=n),h+=g[r],f.push(y)}return l.push({groupElements:f,groupSize:c,groupElementsSize:h}),{groups:l,groupsSize:u+=c,maxGroupElementsSize:d=Math.max(d,h)}},e.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},e.prototype.createVisual=function(){},e}(de);Dt(Ce,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});const ke=Ce;var Se=I.drawing.Text,Ae=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=I.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}(de);Dt(Ae,{font:u,color:n});const Pe=Ae;function Oe(t){var e=t.origin,o=t.bottomRight();return new ie(e.x,e.y,o.x,o.y)}var Me=/\n/m,Te=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(Me),o=new ke({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 Pe(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=Oe(n.clippedBBox()||new I.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 s=J(o.margin),a=this.box.unpad(s);this.targetBox=e,this.normalBox=a.clone(),(a=this.rotate()).translate(s.left-s.right,s.top-s.bottom),this.rotatedBox=a.clone(),a.pad(s)}},e.prototype.createVisual=function(){var t=this.options;if(this.visual=new I.drawing.Group({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()){var e=I.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&&!_t(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,T,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 I.geometry.transform().translate(i.x-o,i.y-r).rotate(t,[o,r])},e}(ve);const Ee=Te;var Re=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,T)},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!==s})),r=e.filter((function(t){return t&&t.options.position===s}));return Be(o),Be(r),r.reverse(),o.concat(r)},e}(de);function Be(t){for(var e=1;e<t.length;e++){var o=t[e]._textBox,r=t[e-1]._textBox;r.options.margin=Object.assign(J(r.options.margin),{bottom:0}),o.options.margin=Object.assign(J(o.options.margin),{top:0})}}Dt(Re,{color:n,position:A,align:a,margin:J(5),padding:J(5)});const Le=Re;var je=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:At(e),value:this.value,text:this.text,index:this.index,dataItem:this.dataItem,axis:this.parent.options})},e.prototype.rotate=function(){if(this.options.alignRotation!==a){var e=this.normalBox.toRect(),o=this.rotationTransform();this.box=Oe(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===a)return t.prototype.rotationTransform.call(this);var r=I.geometry.transform().rotate(o).matrix(),i=this.normalBox.toRect(),n=this.targetBox.toRect(),p=e.rotationOrigin||A,l=p===A||p===s?T:E,c=p===A||p===s?E:T,h=p===A||p===g?n.origin:n.bottomRight(),u=i.topLeft().transformCopy(r),f=i.topRight().transformCopy(r),v=i.bottomRight().transformCopy(r),y=i.bottomLeft().transformCopy(r),m=I.geometry.Rect.fromPoints(u,f,v,y),x={};x[c]=n.origin[c]-m.origin[c];var b,_,w=Math.abs(u[c]+x[c]-h[c]),C=Math.abs(f[c]+x[c]-h[c]);Rt(w,d)===Rt(C,d)?(b=u,_=f):C<w?(b=f,_=v):(b=u,_=y);var k=b[l]+(_[l]-b[l])/2;return x[l]=n.center()[l]-k,I.geometry.transform().translate(x.x,x.y).rotate(o)},e}(Ee);Dt(je,{_autoReflow:!1});const Ie=je;var De=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,s=new ie,a=function(){return t},l=n.size,c=this.fields.text;if(_t(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=a,i.position!==y||_t(l)||(n.type===p?l=Math.max(this.label.box.width(),this.label.box.height()):(o=this.label.box.width(),r=this.label.box.height()),s.wrap(this.label.box))}n.width=o||l||7,n.height=r||l||7;var u=new ge(X({},n));u.aliasFor=a,this.marker=u,this.append(u),this.label&&this.append(this.label),u.reflow(new ie),this.wrapperBox=s.wrap(u.box)}},e.prototype.reflow=function(t){var e,o,r,i=this,n=i.options,a=i.label,p=i.marker,l=i.wrapperBox,c=t.center(),h=n.line.length,u=n.position;n.visible&&(ct(u,[g,C])?u===g?(r=l.alignTo(t,u).translate(-h,t.center().y-l.center().y),n.line.visible&&(e=[t.x1,c.y],this.linePoints=[e,[r.x2,c.y]],o=r.clone().wrapPoint(e))):(r=l.alignTo(t,u).translate(h,t.center().y-l.center().y),n.line.visible&&(e=[t.x2,c.y],this.linePoints=[e,[r.x1,c.y]],o=r.clone().wrapPoint(e))):u===s?(r=l.alignTo(t,u).translate(t.center().x-l.center().x,h),n.line.visible&&(e=[c.x,t.y2],this.linePoints=[e,[c.x,r.y1]],o=r.clone().wrapPoint(e))):(r=l.alignTo(t,u).translate(t.center().x-l.center().x,-h),n.line.visible&&(e=[c.x,t.y1],this.linePoints=[e,[c.x,r.y2]],o=r.clone().wrapPoint(e))),p&&p.reflow(r),a&&(a.reflow(r),p&&(n.label.position===w&&a.box.alignTo(p.box,u),a.reflow(a.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=I.drawing.Path.fromPoints(this.linePoints,{stroke:{color:t.color,width:t.width,dashType:t.dashType}});D(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:At(t),text:_t(e.label)?e.label.text:"",visual:this.visual})},e}(ve);Dt(De,{icon:{visible:!0,type:p},label:{position:y,visible:!0,align:a,vAlign:a},line:{visible:!0},visible:!0,position:A,zIndex:2});const ze=De;var Ve={format:function(t,e){return e},toString:function(t){return t},parseDate:function(t){return new Date(t)},firstDay:function(){return 0}},He=function(){},Ne={implementation:{configurable:!0}};He.register=function(t){Ve=t},Ne.implementation.get=function(){return Ve},Object.defineProperties(He,Ne);const Fe=He;var Ue=/\{(\d+)(:[^\}]+)?\}/g,Ge=function(t){this._intlService=t},We={intl:{configurable:!0}};We.intl.get=function(){return this._intlService||Fe.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 H(t)&&t.match(f)?r.format.apply(r,[t].concat(e)):r.toString(e[0],t)},Ge.prototype.localeAuto=function(t,e,o){var r=this.intl;return H(t)&&t.match(f)?t.replace(Ue,(function(t,i,n){var s=e[parseInt(i,10)];return r.toString(s,n?n.substring(1):"",o)})):r.toString(e[0],t,o)},Object.defineProperties(Ge.prototype,We);const Xe=Ge;var Ye=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)},qe={intl:{configurable:!0}};qe.intl.get=function(){return this._intlService||Fe.implementation},qe.intl.set=function(t){this._intlService=t,this.format.intl=t},Ye.prototype.notify=function(t,e){this.chart&&this.chart.trigger(t,e)},Ye.prototype.isPannable=function(t){var e=((this.chart||{}).options||{}).pannable;return e&&e.lock!==t},Object.defineProperties(Ye.prototype,qe);const Qe=Ye;var Ze,Ke=function(){};Ke.register=function(t){Ze=t},Ke.create=function(t,e){if(Ze)return Ze.create(t,e)};const Je=Ke;function $e(t,e){var o=t.tickX,r=t.tickY,i=t.position,n=new I.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),D(n),n}function to(t,e){var o=t.lineStart,r=t.lineEnd,i=t.position,n=new I.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),D(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!==b},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!==b},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;Y(e)&&(t.alignRotation=e.align,t.rotation=e.angle)},e.prototype.createLabels=function(){var t=this,e=this.options,o=e.vertical?C:a,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(),s=n.min;s<n.max;s+=i){var p={index:s,count:n.max},l=t.createAxisLabel(s,r,p);l&&(t.append(l),t.labels.push(l))}}},e.prototype.clearLabels=function(){this.children=st(this.children,(function(t){return!(t instanceof Ie)})),this.labels=[]},e.prototype.clearTitle=function(){var t=this;this.title&&(this.children=st(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,s=t.line.width||0;return o?new ie(i,e.y1,i,e.y2-s):new ie(e.x1,n,e.x2-s,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 a=new ze({value:n.value,text:n.label.text,dataItem:n},n,t.chartService);a.options.visible&&(_t(a.options.position)?e.vertical&&!ct(a.options.position,[g,C])?a.options.position=e.reverse?g:C:e.vertical||ct(a.options.position,[A,s])||(a.options.position=e.reverse?s:A):e.vertical?a.options.position=e.reverse?g:C:a.options.position=e.reverse?s:A,t.append(a),t.notes.push(a))}},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 I.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 s(e,i,s){var a=e.length,p=Math.max(1,i.step);if(i.visible)for(var l=i.skip;l<a;l+=p)_t(s)&&l%s==0||(n.tickX=r?o.x2:o.x2-i.size,n.tickY=r?o.y1-i.size:o.y1,n.position=e[l],t.append($e(n,i)))}s(this.getMajorTickPositions(),e.majorTicks),s(this.getMinorTickPositions(),e.minorTicks,i/e.minorUnit)},e.prototype.createLine=function(){var t=this.options,e=t.line,o=this.lineBox();if(e.width>0&&e.visible){var r=new I.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&&D(r);var i=this._lineGroup=new I.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=I.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 I.drawing.Group({zIndex:-1}),s=st(this.pane.axes,(function(e){return e.options.vertical!==t.options.vertical}))[0],a=0;a<o.length;a++){var p=o[a],l=void 0,c=void 0,h=p.label,u=void 0;if(r?(l=(s||i.axisX).lineBox(),c=t.getSlot(p.from,p.to,!0)):(l=t.getSlot(p.from,p.to,!0),c=(s||i.axisY).lineBox()),h&&(h.vAlign=h.position||g,u=t.createPlotBandLabel(h,p,new ie(l.x1,c.y1,l.x2,c.y2))),0!==l.width()&&0!==c.height()){var d=new I.geometry.Rect([l.x1,c.y1],[l.width(),c.height()]),f=I.drawing.Path.fromRect(d,{fill:{color:p.color,opacity:p.opacity},stroke:null});n.append(f),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(_t(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,s=t.options.line.visible,a=r.visible?e.majorUnit:0,p=t.lineBox(),l=p[n?"y1":"x1"],c={lineStart:p[n?"x1":"y1"],lineEnd:p[n?"x2":"y2"],vertical:n},h=[],u=this.gridLinesVisual();function d(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 a=Rt(t[n]);ct(a,h)||n%o==0||s&&l===a||(c.position=a,u.append(to(c,e)),h.push(a))}}return d(this.getMajorTickPositions(),r),d(this.getMinorTickPositions(),o,a/i),u.children},e.prototype.reflow=function(t){for(var e=this,o=e.options,r=e.labels,i=e.title,n=o.vertical,s=r.length,a=n?M:v,p=i?i.box[a]():0,l=this.getActualTickSize()+o.margin+p,c=((this.getRoot()||{}).box||t)[a](),h=0,u=0;u<s;u++){var d=r[u].box[a]();d+l<=c&&(h=Math.max(h,d))}this.box=n?new ie(t.x1,t.y1,t.x1+h+l,t.y2):new ie(t.x1,t.y1,t.x2,t.y1+h+l),this.arrangeTitle(),this.arrangeLabels(),this.arrangeNotes()},e.prototype.getLabelsTickPositions=function(){return this.getMajorTickPositions()},e.prototype.labelTickIndex=function(t){return t.index},e.prototype.arrangeLabels=function(){for(var t=this.options,e=this.labels,o=this.labelsBetweenTicks(),r=t.vertical,i=t.labels.mirror,n=this.getLabelsTickPositions(),s=0;s<e.length;s++){var a=e[s],p=this.labelTickIndex(a),l=r?a.box.height():a.box.width(),c=n[p],h=n[p+1],u=void 0,d=void 0;r?d=u=o?c+(h-c)/2-l/2:c-l/2:o?(u=c,d=h):d=(u=c-l/2)+l,this.positionLabel(a,i,u,d)}},e.prototype.positionLabel=function(t,e,o,r){void 0===r&&(r=o);var i,n=this.options,a=n.vertical,p=this.lineBox(),l=this.getActualTickSize()+n.margin;if(a){var c=p.x2;e?(c+=l,t.options.rotationOrigin=g):(c-=l+t.box.width(),t.options.rotationOrigin=C),i=t.box.move(c,o)}else{var h=p.y1;e?(h-=l+t.box.height(),t.options.rotationOrigin=s):(h+=l,t.options.rotationOrigin=A),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]),s=e[i].box,a=this.autoRotateLabelAngle(s,n);if(0!==a&&(r=a),-90===r)break}if(0!==r){for(var p=0;p<e.length;p++)e[p].options.rotation=r,e[p].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?A:s),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;_t(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:T;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:T;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:T,s=this.labels,a=o?1:0,p=o?0:1,l=0,c=0,h=0;h<s.length;h++){var u=s[h],d=this.labelTickIndex(u),f=void 0,v=void 0;r?(f=i[d+a],v=i[d+p]):f=v=i[d],l=Math.max(l,f-u.box[n+1]),c=Math.max(c,u.box[n+2]-v)}return{start:l,end:c}},e.prototype.limitRange=function(t,e,o,r,i){var n=this.options;if(t<o&&i<0&&(!_t(n.min)||n.min<=o)||r<e&&i>0&&(!_t(n.max)||r<=n.max))return null;if(e<o&&i>0||r<t&&i<0)return{min:t,max:e};var s=e-t,a=t,p=e;return t<o&&i<0?(a=Mt(t,o,r),p=Mt(t+s,o+s,r)):e>r&&i>0&&(p=Mt(e,o,r),a=Mt(e-s,o,r-s)),{min:a,max:p}},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:T,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,s=e.lineSize;return(r>0?t[o]-n[i]:n[i]-t[o])/s},e.prototype.scaleToDelta=function(t,e){var o=Mt(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}(de);Dt(eo,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:n,visible:!0},title:{visible:!0,position:a},majorTicks:{align:w,size:4,skip:0,step:1},minorTicks:{align:w,size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:w,minorTickType:b,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",so="hours",ao="days",po="weeks",lo="months",co="years",ho=1e3,uo=60*ho,fo=60*uo,vo=24*fo,yo=7*vo,go=31*vo,mo=365*vo,xo={years:mo,months:go,weeks:yo,days:vo,hours:fo,minutes:uo,seconds:ho,milliseconds:1};function bo(t,e){return t.getTime()-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*uo}function _o(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 ko(t,e,o,r){var i=t;if(t){var n=wo(t),s=n.getHours();o===co?Co(i=new Date(n.getFullYear()+e,0,1),0):o===lo?Co(i=new Date(n.getFullYear(),n.getMonth()+e,1),s):o===po?(i=ko(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 _o(t,-o*vo)}(n,r),7*e,ao),Co(i,s)):o===ao?Co(i=new Date(n.getFullYear(),n.getMonth(),n.getDate()+e),s):o===so?i=function(t,e){var o=new Date(t);o.setMinutes(0,0,0);var r=(t.getTimezoneOffset()-o.getTimezoneOffset())*uo;return _o(o,r+e*fo)}(n,e):o===no?(i=_o(n,e*uo)).getSeconds()>0&&i.setSeconds(0):o===io?i=_o(n,e*ho):o===ro&&(i=_o(n,e)),o!==ro&&i.getMilliseconds()>0&&i.setMilliseconds(0)}return i}function So(t,e,o){return ko(wo(t),0,e,o)}function Ao(t,e,o){var r=wo(t);return r&&So(r,e,o).getTime()===r.getTime()?r:ko(r,1,e,o)}function Po(t,e){return t&&e?t.getTime()-e.getTime():-1}function Oo(t,e){return t.getTime()-e}function Mo(t){if(R(t)){for(var e=[],o=0;o<t.length;o++)e.push(Mo(t[o]));return e}if(t)return wo(t).getTime()}function To(t,e){return t&&e?Mo(t)===Mo(e):t===e}function Eo(t,e,o){return bo(t,e)/xo[o]}function Ro(t,e,o,r){var i=wo(t),n=wo(e);return(o===lo?i.getMonth()-n.getMonth()+12*(i.getFullYear()-n.getFullYear())+Eo(i,new Date(i.getFullYear(),i.getMonth()),ao)/new Date(i.getFullYear(),i.getMonth()+1,0).getDate():o===co?i.getFullYear()-n.getFullYear()+Ro(i,new Date(i.getFullYear(),0),lo,1)/12:o===ao||o===po?Eo(i,n,o):Oo(i,e)/xo[o])/r}function Bo(t,e,o){return o===co?e.getFullYear()-t.getFullYear():o===lo?12*Bo(t,e,co)+e.getMonth()-t.getMonth():o===ao?Math.floor(Oo(e,t)/vo):Math.floor(Oo(e,t)/xo[o])}function Lo(t,e){return H(e)&&t.parseDate(e)||wo(e)}function jo(t,e){if(R(e)){for(var o=[],r=0;r<e.length;r++)o.push(Lo(t,e[r]));return o}return Lo(t,e)}function Io(t,e){return V(t.weekStartDay)?t.weekStartDay:e&&e.firstDay?e.firstDay():0}var Do=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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=_t(t.min),r=_t(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:V(t.min)?t.min%1:0,max:V(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=V(o.min)?o.min:0;if(e=V(o.max)?o.max:V(o.min)?r+o.categories.length:this.totalRange().max||1,t){var i=this.totalRange();r=Mt(r,0,i.max),e=Mt(e,0,i.max)}return{min:r,max:e}},e.prototype.range=function(){var t=this.options;return{min:V(t.min)?t.min:0,max:V(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:T,r=t[o+1],i=t[o+2],n=e[0],s=Ot(e);(n.box[o+1]>i||n.box[o+2]<r)&&(n.options.visible=!1),(s.box[o+1]>i||s.box[o+2]<r)&&(s.options.visible=!1)}},e.prototype.getMajorTickPositions=function(){return this.getTicks().majorTicks},e.prototype.getMinorTickPositions=function(){return this.getTicks().minorTicks},e.prototype.getLabelsTickPositions=function(){return this.getTicks().labelTicks},e.prototype.tickIndices=function(t){for(var e=this.rangeIndices(),o=e.min,r=e.max,i=Math.ceil(r),n=Math.floor(o),s=[];n<=i;)s.push(n),n+=t;return s},e.prototype.getTickPositions=function(t){for(var e=this.options,o=e.vertical,r=e.reverse,i=this.scaleOptions(),n=i.scale,s=i.box,a=i.min,p=s[(o?E:T)+(r?2:1)],c=this.tickIndices(t),h=[],u=0;u<c.length;u++)h.push(p+Rt(n*(c[u]-a),l));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:T,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 s=i;!r(t[s])&&s>=0;)s--;return t.slice(n,s+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:T,s=o?-1:1,a=n+(1===s?1:2).toString();return{axis:n,axisOrigin:a,axisDir:s,lineBox:r,lineSize:i,lineStart:r[a]}},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,s=this.scaleOptions(),a=s.scale,p=s.box,l=s.min,c=this.lineInfo(),h=c.axis,u=c.lineStart,d=p.clone(),f=!_t(e),v=Lt(t,0),y=Lt(e,v);y=Math.max(y-1,v);var g=u+(v-l)*a,m=u+((y=Math.max(v,y))+1-l)*a;return f&&n&&(m=g),o&&(g=Mt(g,p[h+1],p[h+2]),m=Mt(m,p[h+1],p[h+2])),d[h+1]=i?m:g,d[h+2]=i?g:m,d},e.prototype.limitSlot=function(t){var e=this.options.vertical?E:T,o=this.lineBox(),r=t.clone();return r[e+1]=Mt(t[e+1],o[e+1],o[e+2]),r[e+2]=Mt(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,s=o;return"string"==typeof n?n=this.categoryIndex(n):V(n)&&(n-=i),"string"==typeof s?s=this.categoryIndex(s):V(s)&&(s-=i),t.prototype.slot.call(this,n,s,r)},e.prototype.pointCategoryIndex=function(t){var e=this.options,o=e.reverse,r=e.justified,i=e.vertical?E:T,n=this.scaleOptions(),s=n.scale,a=n.box,p=n.min,l=n.max,c=o?l:p,h=a[i+1],u=a[i+2],d=t[i];if(d<h||d>u)return null;var f=c+(d-h)/s,v=f%1;return r?f=Math.round(f):0===v&&f>0&&f--,Math.floor(f)},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=Rt(t/(r/i),d);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),s=o*n,a=(1-o)*n,p=r.min+s,l=r.max-a;return l-p<.1&&(l=p+.1),{min:p,max:l}},e.prototype.zoomRange=function(t,e){var o=this.totalRange(),r=o.min,i=o.max,n=this.scaleRange(t,e);return{min:Mt(n.min,r,i),max:Mt(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,s=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)-s,max:(t.categories.length?n+(e?1:0):0)-s}},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 s=this.axisLabelText(n,e,o);return new Ie(n,s,t,i,e)},e.prototype.shouldRenderNote=function(t){var e=this.totalRangeIndices();return Math.floor(e.min)<=t&&t<=Math.ceil(e.max)},e.prototype.noteSlot=function(t){var e=this.options,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:T,r=e[o+1],i=e[o+2],n=0;n<t.length;n++){var s=t[n];s.box&&(i<s.box[o+1]||s.box[o+2]<r)&&s.hide()}},e.prototype.pan=function(t){var e=this.totalRangeIndices(!0),o=this.scaleOptions().scale,r=Rt(t/o,d),i=this.totalRange(),n=e.min+r,s=e.max+r;return this.limitRange(n,s,0,i.max,r)},e.prototype.pointsRange=function(t,e){var o=this.options,r=o.reverse,i=o.vertical?E:T,n=this.totalRangeIndices(!0),s=this.scaleOptions(),a=s.scale,p=s.box[i+(r?2:1)],l=t[i]-p,c=e[i]-p,h=n.min+l/a,u=n.min+c/a,d=Math.min(h,u),f=Math.max(h,u);if(f-d>=.01)return{min:d,max:f}},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(To(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 V(t.min)&&(e=Math.floor(t.min)),{min:e,max:V(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 lt,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);Dt(Do,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:n},labels:{zIndex:1},justified:!1,_deferLabels:!0});const zo=Do;var Vo={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"},Ho=[ro,io,no,so,ao,po,lo,co],No="fit";function Fo(t){var e=t._range;return e||((e=t._range=zt(t)).min=wo(e.min),e.max=wo(e.max)),e}var Uo=function(t){this.options=t};Uo.prototype.displayIndices=function(){return{min:0,max:1}},Uo.prototype.displayRange=function(){return{}},Uo.prototype.total=function(){return{}},Uo.prototype.valueRange=function(){return{}},Uo.prototype.valueIndex=function(){return-1},Uo.prototype.values=function(){return[]},Uo.prototype.totalIndex=function(){return-1},Uo.prototype.valuesCount=function(){return 0},Uo.prototype.totalCount=function(){return 0},Uo.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=ko(t,0,o.baseUnit,o.weekStartDay);var n=this.roundToTotalStep(e),s=!i&&To(e,n)&&!o.justifyEnd;this.end=this.roundToTotalStep(e,!i,s?1:0);var a=o.min||t;this.valueStart=this.roundToTotalStep(a),this.displayStart=r?this.valueStart:a;var p=o.max;if(p){var l=!i&&To(p,this.roundToTotalStep(p))?-1:0;this.valueEnd=this.roundToTotalStep(p,!1,l),this.displayEnd=r?this.roundToTotalStep(p,!i):o.max}else this.valueEnd=n,this.displayEnd=r||s?this.end:e;this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))};function Wo(t,e,o){for(var r,i,n,s=Fo(t.categories),a=(t.max||s.max)-(t.min||s.min),p=t.autoBaseUnitSteps,l=t.maxDateGroups,c=t.baseUnit===No,h=e?Ho.indexOf(e):0,u=c?Ho[h++]:t.baseUnit,d=a/xo[u],f=d;!i||d>=l;){r=r||p[u].slice(0);do{n=r.shift()}while(n&&e===u&&n<o);if(n)d=f/(i=n);else{if(u===Ot(Ho)){i=Math.ceil(f/l);break}if(!c){d>l&&(i=Math.ceil(f/l));break}u=Ho[h++]||Ot(Ho),f=a/xo[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=Ro(this.displayStart,this.valueStart,e,o),i=Ro(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(Ro(t,this.valueStart,e.baseUnit,e.baseUnitStep))},Go.prototype.totalIndex=function(t){var e=this.options;return Math.floor(Ro(t,this.start,e.baseUnit,e.baseUnitStep))},Go.prototype.dateIndex=function(t){var e=this.options;return Ro(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=ko(r,e.baseUnitStep,e.baseUnit,e.weekStartDay)}return t},Go.prototype.dateAt=function(t,e){var o=this.options;return ko(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,s=r.weekStartDay,a=this.start,p=Ro(t,a,i,n),l=e?Math.ceil(p):Math.floor(p);return o&&(l+=o),ko(a,l*n,i,s)};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=jo(o,i))._parsed=!0),r=X({roundToBaseUnit:!0},r,{categories:i,min:Lo(o,r.min),max:Lo(o,r.max),weekStartDay:Io(r,o)}),e.panning&&e.isPannable(r.vertical?E:T)&&(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=Fo(i),s=r.maxDivisions;if(this.dataRange=new Go(n.min,n.max,function(t){var e=(t.baseUnit||"").toLowerCase();return e!==No&&!ct(e,Ho)&&function(t){for(var e,o,r=t.categories,i=_t(r)?r.length:0,n=m,s=0;s<i;s++){var a=r[s];if(a&&e){var p=bo(a,e);p>0&&(o=(n=Math.min(n,p))>=mo?co:n>=go-3*vo?lo:n>=yo?po:n>=vo?ao:n>=fo?so:n>=uo?no:io)}e=a}t.baseUnit=o||ao}(t),e!==No&&"auto"!==t.baseUnitStep||Wo(t),t}(r)),s){var a=this.dataRange.displayRange(),p=Object.assign({},r,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:a.min,max:a.max,maxDateGroups:s}),l=this.dataRange.options;Wo(p,l.baseUnit,l.baseUnitStep),this.divisionRange=new Go(n.min,n.max,p)}else this.divisionRange=this.dataRange}else r.baseUnit=r.baseUnit||ao,this.dataRange=this.divisionRange=new Uo(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=[],s=r.values(),a=0;this.options.justified||(s=s.concat(r.dateAt(i)),a=.5);for(var p=0;p<s.length;p++)if(n.push(o.dateIndex(s[p])+a),1!==e&&p>=1){var l=n.length-1;n.splice(p,0,n[l-1]+(n[l]-n[l-1])*e)}return n},e.prototype.shouldRenderNote=function(t){var e=this.range(),o=this.options.categories||[];return Po(t,e.min)>=0&&Po(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(),s=i?n.height():n.width(),a=this.range(),p=s/(a.max-a.min),l=Rt(t/p,d);if(a.min&&a.max){var c=_o(e.min||a.min,l),h=_o(e.max||a.max,l);a={min:ko(c,0,o,r),max:ko(h,0,o,r)}}return a},e.prototype.labelsRange=function(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}},e.prototype.pan=function(t){if(this.isEmpty())return null;var e=this.options,o=this.lineBox(),r=e.vertical?o.height():o.width(),i=this.dataRange.displayRange(),n=i.min,s=i.max,a=this.dataRange.total(),p=Rt(t/(r/(s-n)),d)*(e.reverse?-1:1),l=_o(n,p),c=_o(s,p),h=this.limitRange(Mo(l),Mo(c),Mo(a.min),Mo(a.max),p);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(),s=Oo(i.max,i.min)/(n.max-n.min),a=this.options;return{min:_o(i.min,r.min*s),max:_o(i.min,r.max*s),baseUnit:a.userSetBaseUnit||a.baseUnit,baseUnitStep:a.userSetBaseUnitStep||a.baseUnitStep}},e.prototype.scaleRange=function(t,e){if(this.isEmpty())return{};var o=this.options,r=o.userSetBaseUnit===No,i=this.dataRange.total(),n=this.dataRange.displayRange(),s=n.min,a=n.max,p=Math.abs(this.pointOffset(e)),l=a-s,c=this.scaleToDelta(t,l),h=Math.round(p*c),u=Math.round((1-p)*c),d=this.dataRange.options.baseUnit,f=new Date(s.getTime()+h),v=new Date(a.getTime()-u);if(r){var y,g,m=o.autoBaseUnitSteps,x=o.maxDateGroups,b=Ot(m[d])*x*xo[d],_=Oo(a,s),w=Oo(v,f),C=Ho.indexOf(d);if(w<xo[d]&&d!==ro)d=Ho[C-1],f=_o(s,g=(_-(x-1)*(y=Ot(m[d]))*xo[d])/2),v=_o(a,-g);else if(w>b&&d!==co){var k=0;do{C++,d=Ho[C],k=0,g=2*xo[d];do{y=m[d][k],k++}while(k<m[d].length&&g*y<_)}while(d!==co&&g*y<_);(g=(g*y-_)/2)>0&&(f=_o(s,-g),v=_o(a,g),f=_o(f,Mt(v,i.min,i.max)-v),v=_o(v,Mt(f,i.min,i.max)-f))}}return f&&v&&Oo(v,f)>0?{min:f,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 s=r?o.y1-n.box.height()/2:o.x1;this.positionLabel(n,i,s)}var a=e[1];if(a){var p=r?o.y2-a.box.height()/2:o.x2;this.positionLabel(a,i,p)}}},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&&s(o,e[r]);r++);var i=t[1];if(i&&i.options.visible)for(var n=e.length-1;n>0&&s(i,e[n]);--n);}function s(t,e){return!(e.options.visible&&!e.box.overlaps(t.box)||(e.options.visible=!1,0))}},e.prototype.contentBox=function(){for(var e=t.prototype.contentBox.call(this),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),s=e.dateFormats[this.divisionRange.options.baseUnit];e.format=e.format||s,o.dataItem=i;var a=this.axisLabelText(n,e,o);if(a)return new Ie(n,a,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:a,zIndex:i.zIndex});if(!0===n.visible){this.normalizeLabelRotation(n),n.alignRotation=a,"auto"===n.rotation&&(n.rotation=0,i.autoRotateRangeLabels=!0);var s=n.dateFormats[this.divisionRange.options.baseUnit];n.format=n.format||s;var p=function(e,o,r){if(r){var i=new Ie(o,r,e,null,n);t.append(i),t.rangeLabels.push(i)}};p(0,o,this.axisLabelText(o,n,{index:0,count:2})),p(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 s=this.getSlot(i,n,o);if(s)return s.toRect()},e.prototype.getSlot=function(e,o,r){var i=e,n=o;return typeof i===_&&(i=this.categoryIndex(i)),typeof n===_&&(n=this.categoryIndex(n)),t.prototype.getSlot.call(this,i,n,r)},e.prototype.valueRange=function(){var t=Fo(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=Fo(t.srcCategories);return new Go(e.min,e.max,Object.assign({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:!1})).displayRange()},e}(zo);Dt(Xo,{type:h,labels:{dateFormats:Vo},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 Yo=Xo;function qo(t,e){return Rt(Math.floor(t/e)*e,d)}function Qo(t,e){return Rt(Math.ceil(t/e)*e,d)}function Zo(t){return Math.max(Math.min(t,3e5),-3e5)}var Ko=Math.pow(10,1-d),Jo=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),s=te(i,n),a={majorUnit:s};return!1!==o.roundToMajorUnit&&(i<0&&$o(i,s,1/3)&&(i-=s),n>0&&$o(n,s,1/3)&&(n+=s)),a.min=qo(i,s),a.max=Qo(n,s),a}(t.seriesMin,t.seriesMax,t);return this.totalOptions=function(t,e){return{min:_t(e.min)?Math.min(t.min,e.min):t.min,max:_t(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=_t(e.min),r=_t(e.max);var n=o||r;n&&e.min===e.max&&(e.min>0?e.min=0:e.max=1),e.majorUnit?(t.min=qo(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 s=X(t,i);return s.min>=s.max&&(o&&!r?s.max=s.min+s.majorUnit:!o&&r&&(s.min=s.max-s.majorUnit)),s}(e,t)},e.prototype.initFields=function(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax},e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.startValue=function(){return 0},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.getDivisions=function(t){if(0===t)return 1;var e=this.options,o=e.max-e.min;return Math.floor(Rt(o/t,l))+1},e.prototype.getTickPositions=function(t,e){var o=this.options,r=this.lineInfo(),i=r.axisDir,n=r.axisOrigin,s=r.lineBox,a=t*(r.lineSize/(o.max-o.min)),p=this.getDivisions(t),c=[],h=s[n],u=0;e&&(u=e/t);for(var d=0;d<p;d++)d%u!=0&&c.push(Rt(h,l)),h+=a*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,s=i.axisDir,a=i.lineBox,p=i.lineSize,l=i.lineStart,c=s*(p/(r.max-r.min)),h=Lt(t,e||0),u=Lt(e,t||0);o&&(h=Mt(h,r.min,r.max),u=Mt(u,r.min,r.max));var d=Math.min(h,u)-r.min,f=Math.max(h,u)-r.min,v=new ie(a.x1,a.y1,a.x1,a.y1);return v[n+1]=Zo(l+c*(s>0?d:f)),v[n+2]=Zo(l+c*(s>0?f:d)),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:Rt(r+i*(o-r),d)},e.prototype.translateRange=function(t){var e=this.options,o=e.vertical,r=e.reverse,i=e.max,n=e.min,s=this.lineInfo().lineSize,a=Rt(t/(s/(i-n)),d);return!o&&!r||o&&r||(a=-a),{min:n+a,max:i+a,offset:a}},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,o){var r=this.options,i=Rt(r.min+t*r.majorUnit,d),n=this.axisLabelText(i,e,o);return new Ie(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,s=(1-o)*i,a=Rt(this.options.min+n,d),p=Rt(this.options.max-s,d);return p-a<Ko&&(p=a+Ko),{min:a,max:p}},e.prototype.zoomRange=function(t,e){var o=this.totalMin,r=this.totalMax,i=this.scaleRange(t,e);return{min:Mt(i.min,o,r),max:Mt(i.max,o,r),narrowRange:!1}},e.prototype.isValidRange=function(t,e){return e-t>Ko},e}(oo);function $o(t,e,o){var r=Rt(Math.abs(t%e),d);return 0===r||r>e*(1-o)}Dt(Jo,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},labels:{format:"#.####################"},zIndex:1});const tr=Jo;var er=function(t){function e(e,o,r,i){var n=wo(e),s=wo(o),a=i.intl,p=r||{};p=function(t,e,o){var r,i,n=o.min||t,s=o.max||e,a=o.baseUnit||(s&&n?(r=bo(s,n),i=so,r>=mo?i=co:r>=go?i=lo:r>=yo?i=po:r>=vo&&(i=ao),i):so),p=xo[a],l=o.weekStartDay||0,c=So(Mo(n)-1,a,l)||wo(s),h=Ao(Mo(s)+1,a,l),u=(o.majorUnit?o.majorUnit:void 0)||Qo(te(c.getTime(),h.getTime()),p)/p,d=Bo(c,h,a),f=Qo(d,u)-d,v=Math.floor(f/2),y=f-v;return o.baseUnit||delete o.baseUnit,o.baseUnit=o.baseUnit||a,o.min=o.min||ko(c,-v,a,l),o.max=o.max||ko(h,y,a,l),o.minorUnit=o.minorUnit||u/5,o.majorUnit=u,o}(n,s,p=X(p||{},{min:Lo(a,p.min),max:Lo(a,p.max),axisCrossingValue:jo(a,p.axisCrossingValues||p.axisCrossingValue),weekStartDay:Io(p,a)})),t.call(this,p,i),this.intlService=a,this.seriesMin=n,this.seriesMax=s;var l=p.weekStartDay||0;this.totalMin=Mo(So(Mo(n)-1,p.baseUnit,l)),this.totalMax=Mo(Ao(Mo(s)+1,p.baseUnit,l))}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(Bo(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,s=this.getDivisions(t),a=i/Oo(e.max,e.min),p=e.weekStartDay||0,c=[n],h=1;h<s;h++){var u=n+Oo(ko(e.min,h*t,e.baseUnit,p),e.min)*a*r;c.push(Rt(u,l))}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,s=r.min;i>0&&(s=ko(s,i,r.baseUnit,n));var a=e.dateFormats[r.baseUnit];e.format=e.format||a;var p=this.axisLabelText(s,e,o);return new Ie(s,p,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(),s=this.range(),a=n/Oo(s.max,s.min),p=Rt(t/a,d);return!r&&!i||r&&i||(p=-p),{min:_o(e.min,p),max:_o(e.max,p),offset:p}},e.prototype.shouldRenderNote=function(t){var e=this.range();return Po(t,e.min)>=0&&Po(t,e.max)<=0},e.prototype.pan=function(t){var e=this.translateRange(t,!0),o=this.limitRange(Mo(e.min),Mo(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,s=(1-o)*i,a=wo(Mo(this.options.min)+n),p=wo(Mo(this.options.max)-s);return p-a<1e3&&(p=wo(Mo(a)+1e3)),{min:a,max:p}},e.prototype.zoomRange=function(t,e){var o=this.scaleRange(t,e);return{min:wo(Mt(Mo(o.min),this.totalMin,this.totalMax)),max:wo(Mt(Mo(o.max),this.totalMin,this.totalMax))}},e}(oo);Dt(er,{type:h,majorGridLines:{visible:!0,width:1,color:n},labels:{dateFormats:Vo}});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),s=n.majorUnit,a=function(t,e){var o=Rt(sr(t,e),d)%1;return t<=0?e:0!==o&&(o<.3||o>.9)?Math.pow(e,sr(t,e)+.2):Math.pow(e,Math.ceil(sr(t,e)))}(o,s),p=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(sr(t,r)))),i}(e,o,n),l=function(t,e,o,r){var i=o.min,n=o.max;return _t(o.axisCrossingValue)&&o.axisCrossingValue<=0&&nr(),_t(r.max)?r.max<=0&&nr():n=e,_t(r.min)?r.min<=0&&nr():i=t,{min:i,max:n}}(p,a,n,r);n.max=l.max,n.min=l.min,n.minorUnit=r.minorUnit||Rt(s-1,d),t.call(this,n,i),this.totalMin=_t(r.min)?Math.min(p,r.min):p,this.totalMax=_t(r.max)?Math.max(a,r.max):a,this.logMin=Rt(sr(l.min,s),d),this.logMax=Rt(sr(l.max,s),d),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,s=r.logMax,a=i.majorUnit,p=i.min,l=i.max,c=this.lineInfo(),h=c.axis,u=c.axisDir,d=c.lineBox,f=c.lineSize,v=c.lineStart,y=u*(f/(s-n)),g=Lt(t,e||1),m=Lt(e,t||1);if(g<=0||m<=0)return null;o&&(g=Mt(g,p,l),m=Mt(m,p,l)),g=sr(g,a),m=sr(m,a);var x=Math.min(g,m)-n,b=Math.max(g,m)-n,_=new ie(d.x1,d.y1,d.x1,d.y1);return _[h+1]=Zo(v+y*(u>0?x:b)),_[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,s=this.lineInfo(),a=s.axis,p=s.axisDir,l=s.lineStart,c=s.lineSize,h=(i-r)/c,u=p*(t[a]-l);if(u<0||u>c)return null;var f=r+u*h;return Rt(Math.pow(n,f),d)},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,s=o.vertical,a=o.majorUnit,p=this.lineBox(),l=s?p.height():p.width(),c=Rt(t/(l/(i-r)),d);return!s&&!n||s&&n||(c=-c),{min:Math.pow(a,r+c),max:Math.pow(a,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,s=this.lineBox(),a={vertical:i};function p(e,o){a.tickX=n?s.x2:s.x2-o.size,a.tickY=n?s.y1-o.size:s.y1,a.position=e,t.append($e(a,o))}return o.visible&&this.traverseMajorTicksPositions(p,o),r.visible&&this.traverseMinorTicksPositions(p,r),[]},e.prototype.createGridLines=function(t){var e=this.options,o=e.minorGridLines,r=e.majorGridLines,i=e.vertical,n=t.lineBox(),s={lineStart:n[i?"x1":"y1"],lineEnd:n[i?"x2":"y2"],vertical:i},a=[],p=this.gridLinesVisual();function l(t,e){ct(t,a)||(s.position=t,p.append(to(s,e)),a.push(t))}return r.visible&&this.traverseMajorTicksPositions(l,r),o.visible&&this.traverseMinorTicksPositions(l,o),p.children},e.prototype.traverseMajorTicksPositions=function(t,e){for(var o=this.lineInfo(),r=o.lineStart,i=o.step,n=this.logMin,s=this.logMax,a=Math.ceil(n)+e.skip;a<=s;a+=e.step)t(Rt(r+i*(a-n),d),e)},e.prototype.traverseMinorTicksPositions=function(t,e){for(var o=this.options,r=o.min,i=o.max,n=o.minorUnit,s=o.majorUnit,a=this.lineInfo(),p=a.lineStart,l=a.step,c=this.logMin,h=this.logMax,u=Math.floor(c);u<h;u++)for(var f=this._minorIntervalOptions(u),v=e.skip;v<n;v+=e.step){var y=f.value+v*f.minorStep;if(y>i)break;y>=r&&t(Rt(p+l*(sr(y,s)-c),d),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 Ie(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=sr(this.options.min,o),i=sr(this.options.max,o),n=Math.abs(this.pointOffset(e)),s=i-r,a=this.scaleToDelta(t,s),p=Math.pow(o,r+n*a),l=Math.pow(o,i-(1-n)*a);return l-p<rr&&(l=p+rr),{min:p,max:l}},e.prototype.zoomRange=function(t,e){var o=this.scaleRange(t,e),r=this.totalMin,i=this.totalMax;return{min:Mt(o.min,r,i),max:Mt(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 sr(t,e){return Math.log(t)/Math.log(e)}Dt(ir,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},zIndex:1,_deferLabels:!0});const ar=ir,pr={createGridLines:function(t){var e,o,r=this.options,i=Math.abs(this.box.center().y-t.lineBox().y1),n=[],s=!1;return r.majorGridLines.visible&&(e=this.majorGridLineAngles(t),s=!0,n=this.renderMajorGridLines(e,i,r.majorGridLines)),r.minorGridLines.visible&&(o=this.minorGridLineAngles(t,s),xt(n,this.renderMinorGridLines(o,i,r.minorGridLines,t,s))),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(),s=new I.geometry.Circle([n.x,n.y],e),a=this.gridLinesVisual(),p=0;p<t.length;p++){var l=new I.drawing.Path(i);r&&(s.radius=r(t[p])),l.moveTo(s.center).lineTo(s.pointAt(t[p]+180)),a.append(l)}return a.children},gridLineAngles:function(t,e,o,r,i){var n=this,s=this.intervals(e,o,r,i),a=t.options,p=a.visible&&!1!==(a.line||{}).visible;return vt(s,(function(t){var e=n.intervalAngle(t);if(!p||90!==e)return e}))}};var lr=function(t){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 s=t[n].box;t[n].reflow(this.getSlot(o+n*r).adjacentBox(0,s.width(),s.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,s=360/n,a=o||1,p=[],c=0,h=e||0;h<n;h+=a)c=i.reverse?360-h*s:h*s,c=Rt(c,l)%360,r&&ct(c,r)||p.push(c);return p},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,s=this.majorAngles();return function(e){return!o&&ct(e,s)?t:n}}},e.prototype.createPlotBands=function(){for(var t=this.options.plotBands||[],e=this._plotbandGroup=new I.drawing.Group({zIndex:-1}),o=0;o<t.length;o++){var r=t[o],i=this.plotBandSlot(r),n=this.getSlot(r.from),s=r.from-Math.floor(r.from);i.startAngle+=s*n.angle;var a=Math.ceil(r.to)-r.to;i.angle-=(a+s)*n.angle;var p=he.current.createRing(i,{fill:{color:r.color,opacity:r.opacity},stroke:{opacity:r.opacity}});e.append(p)}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(),s=n.length,a=360/s,p=t;o.reverse&&!r&&(p=(p+1)%s);var l=n[p=Mt(Math.floor(p),0,s-1)];r&&(l-=a/2)<0&&(l+=360);var c=a*(Mt(Math.ceil(e||p),p,s-1)-p+1);return new ae(i.center(),0,i.height()/2,l,c)},e.prototype.slot=function(t,e){var o=this.getSlot(t,e),r=o.startAngle+180,i=r+o.angle;return new I.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}(zo);Dt(lr,{startAngle:90,labels:{margin:J(10)},majorGridLines:{visible:!0},justified:!0}),X(lr.prototype,pr);const cr=lr;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,s=new ie,a=this.intervals(e.majorUnit,i,n),p=0;p<o.length;p++){o[p].reflow(s);var l=o[p].box;o[p].reflow(this.getSlot(a[p]).adjacentBox(0,l.width(),l.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),s=[],a=o||1,p=e||0;p<n;p+=a){var l=(360+i+p*t)%360;r&&ct(l,r)||s.push(l)}return s},e.prototype.majorIntervals=function(){return this.intervals(this.options.majorUnit)},e.prototype.minorIntervals=function(){return this.intervals(this.options.minorUnit)},e.prototype.intervalAngle=function(t){return(540-t-this.options.startAngle)%360},e.prototype.createLine=function(){return[]},e.prototype.majorGridLineAngles=function(t){var e=this.options.majorGridLines;return this.gridLineAngles(t,this.options.majorUnit,e.skip,e.step)},e.prototype.minorGridLineAngles=function(t,e){var 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=Mt(t,o.min,o.max),s=Mt(e||n,n,o.max);if(o.reverse&&(n*=-1,s*=-1),(s=(540-s-i)%360)<(n=(540-n-i)%360)){var a=n;n=s,s=a}return new ae(r.center(),0,r.height()/2,n,s-n)},e.prototype.slot=function(t,e){void 0===e&&(e=t);var o,r,i=this.options,n=360-i.startAngle,s=this.getSlot(t,e),a=Math.min(t,e),p=Math.max(t,e);return i.reverse?(o=a,r=p):(o=360-p,r=360-a),o=(o+n)%360,r=(r+n)%360,new I.geometry.Arc([s.center.x,s.center.y],{startAngle:o,endAngle:r,radiusX:s.radius,radiusY:s.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))),s=e.startAngle;return e.reverse||(n*=-1,s*=-1),(n+s+360)%360},e.prototype.valueRange=function(){return{min:0,max:2*Math.PI}},e}(oo);Dt(hr,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:J(10)},majorGridLines:{color:n,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),X(hr.prototype,pr,{createPlotBands:cr.prototype.createPlotBands,majorAngles:cr.prototype.majorAngles,range:tr.prototype.range,labelsCount:tr.prototype.labelsCount,createAxisLabel:tr.prototype.createAxisLabel});const ur=hr;var dr={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(),s=r.box.center(),a=this._plotbandGroup=new I.drawing.Group({zIndex:-1}),p=0;p<o.length;p++){var l,c=o[p],h={fill:{color:c.color,opacity:c.opacity},stroke:{opacity:c.opacity}},u=this.getSlot(c.from,c.to,!0),d=new ae(s,s.y-u.y2,s.y-u.y1,0,360);l=e===i?he.current.createRing(d,h):I.drawing.Path.fromPoints(this.plotBandPoints(d,n),h).close(),a.append(l)}this.appendVisual(a)},plotBandPoints:function(t,e){for(var o=[],r=[],i=[t.center.x,t.center.y],n=new I.geometry.Circle(i,t.innerRadius),s=new I.geometry.Circle(i,t.radius),a=0;a<e.length;a++)o.push(n.pointAt(e[a]+180)),r.push(s.pointAt(e[a]+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 s=this.radarMinorGridLinePositions();xt(n,this.renderGridLines(i,s,r,e.minorGridLines))}return n},renderGridLines:function(t,e,o,r){var n={stroke:{width:r.width,color:r.color,dashType:r.dashType}},s=r.skip;void 0===s&&(s=0);var a=r.step;void 0===a&&(a=0);for(var p=this.gridLinesVisual(),l=s;l<e.length;l+=a){var c=t.y-e[l];if(c>0){var h=new I.geometry.Circle([t.x,t.y],c);if(r.type===i)p.append(new I.drawing.Circle(h,n));else{for(var u=new I.drawing.Path(n),d=0;d<o.length;d++)u.lineTo(h.pointAt(o[d]+180));u.close(),p.append(u)}}}return p.children},getValue:function(t){var e=this.lineBox(),o=this.plotArea.polarAxis,r=o.majorAngles(),n=o.box.center(),s=t.distanceTo(n),a=s;if(this.options.majorGridLines.type!==i&&r.length>1){var p=t.x-n.x,l=t.y-n.y,c=(wt(Math.atan2(l,p))+540)%360;r.sort((function(t,e){return fr(t,c)-fr(e,c)}));var h=90-fr(r[0],r[1])/2,u=180-fr(c,r[0])-h;a=s*(Math.sin(Et(u))/Math.sin(Et(h)))}return this.axisType().prototype.getValue.call(this,new ee(e.x1,e.y2-a))}};function fr(t,e){return 180-Math.abs(Math.abs(t-e)-180)}const vr=dr;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}(ar);X(mr.prototype,vr);const xr=mr;function br(t){return t<=0?-1:1}const _r=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,s,a=e[0],p=e[1],l=e[2];for(o.push(new I.geometry.Segment(a));a.equals(e[i-1]);)r=!0,e.pop(),i--;if(2===i){var c=this.tangent(a,p,T,E);return Ot(o).controlOut(this.firstControlPoint(c,a,p,T,E)),o.push(new I.geometry.Segment(p,this.secondControlPoint(c,a,p,T,E))),o}if(r){a=e[i-1],p=e[0],l=e[1];var h=this.controlPoints(a,p,l);n=h[1],s=h[0]}else{var u=this.tangent(a,p,T,E);n=this.firstControlPoint(u,a,p,T,E)}for(var d=n,f=0;f<=i-3;f++)if(this.removeDuplicates(f,e),f+3<=(i=e.length)){a=e[f],p=e[f+1],l=e[f+2];var v=this.controlPoints(a,p,l);Ot(o).controlOut(d),d=v[1];var y=v[0];o.push(new I.geometry.Segment(p,y))}if(r){a=e[i-2],p=e[i-1],l=e[0];var g=this.controlPoints(a,p,l);Ot(o).controlOut(d),o.push(new I.geometry.Segment(p,g[0])),Ot(o).controlOut(g[1]),o.push(new I.geometry.Segment(l,s))}else{var m=this.tangent(p,l,T,E);Ot(o).controlOut(d),o.push(new I.geometry.Segment(l,this.secondControlPoint(m,p,l,T,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||Rt(i,1)===Rt(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=T,n=E,s=!1,a=!1;if(this.isLine(t,e,o))r=this.tangent(t,e,T,E);else{var p={x:this.isMonotonicByField(t,e,o,T),y:this.isMonotonicByField(t,e,o,E)};p.x&&p.y?(r=this.tangent(t,o,T,E),s=!0):(this.invertAxis(t,e,o)&&(i=E,n=T),p[i]?r=0:(r=.01*(o[n]<t[n]&&t[n]<=e[n]||t[n]<o[n]&&e[n]<=t[n]?br((o[n]-t[n])*(e[i]-t[i])):-br((o[i]-t[i])*(e[n]-t[n]))),a=!0))}var l=this.secondControlPoint(r,t,e,i,n);if(a){var c=i;i=n,n=c}var h=this.firstControlPoint(r,e,o,i,n);return s&&(this.restrictControlPoint(t,e,l,r),this.restrictControlPoint(e,o,h,r)),[l,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],s=.333*(o[r]-n);return this.point(n+s,e[i]+s*t,r,i)},e.prototype.secondControlPoint=function(t,e,o,r,i){var n=e[r],s=o[r],a=.333*(s-n);return this.point(s-a,o[i]-a*t,r,i)},e.prototype.point=function(t,e,o,r){var i=new I.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}(I.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}(I.Class);const Cr=wr;function kr(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 kr(t,this._pane.axes)};const Ar=Sr,Pr=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}(I.Class);function Or(t){for(var e=t.length,o=0,r=0;r<e;r++)V(t[r])&&o++;return o}var Mr={min:function(t){for(var e=t.length,o=m,r=0;r<e;r++){var i=t[r];V(i)&&(o=Math.min(o,i))}return o===m?t[0]:o},max:function(t){for(var e=t.length,o=x,r=0;r<e;r++){var i=t[r];V(i)&&(o=Math.max(o,i))}return o===x?t[0]:o},sum:function(t){for(var e=t.length,o=0,r=0;r<e;r++){var i=t[r];V(i)&&(o+=i)}return o},sumOrNull:function(t){var e=null;return Or(t)&&(e=Mr.sum(t)),e},count:function(t){for(var e=t.length,o=0,r=0;r<e;r++){var i=t[r];null!==i&&_t(i)&&o++}return o},avg:function(t){var e=Or(t),o=t[0];return e>0&&(o=Mr.sum(t)/e),o},first:function(t){for(var e=t.length,o=0;o<e;o++){var r=t[o];if(null!==r&&_t(r))return r}return t[0]}};const Tr=Mr;function Er(t,e){return null===e?e:nt(t)(e)}var Rr=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=[P]),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]||[P]},e.prototype.otherFields=function(t){return this._otherFields[t.type]||[P]},e.prototype.bindPoint=function(t,e,o){var r,i,n=t.data,s=_t(o)?o:n[e],a={valueFields:{value:s}},p=this.valueFields(t),l=this._otherFields[t.type];if(null===s)i=this._nullValue[t.type];else if(_t(s)){if(Array.isArray(s)){var c=s.slice(p.length);i=this._bindFromArray(s,p),r=this._bindFromArray(c,l)}else if("object"==typeof s){var h=this.sourceFields(t,p),u=this.sourceFields(t,l);i=this._bindFromObject(s,p,h),r=this._bindFromObject(s,l,u)}}else i=this._undefinedValue[t.type];return _t(i)&&(1===p.length?a.valueFields.value=i[p[0]]:a.valueFields=i),a.fields=r||{},a},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 s=e[n],a=o[n];null!==a&&(r[s]=Er(a,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],s=n===P?"field":n+"Field";o.push(null!==t[s]?t[s]||n:null)}return o},e}(I.Class);Rr.current=new Rr;const Br=Rr;var Lr=/percent(?:\w*)\((\d+)\)/,jr=new RegExp("^stddev(?:\\((\\d+(?:\\.\\d+)?)\\))?$");const Ir=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=jr.exec(t);if(i){this.valueGetter=this.createValueGetter(e,o);var n=this.getAverage(r),s=this.getStandardDeviation(r,n,!1),a=i[1]?parseFloat(i[1]):1,p={low:n.value-s*a,high:n.value+s*a};this.globalRange=function(){return p}}else if(t.indexOf&&t.indexOf("stderr")>=0){this.valueGetter=this.createValueGetter(e,o);var l=this.getStandardError(r,this.getAverage(r));this.globalRange=function(t){return{low:t-l,high:t+l}}}},e.prototype.createValueGetter=function(t,e){var o,r=t.data,i=Br.current,n=i.valueFields(t),s=_t(r[0])?r[0]:{};return R(s)?o=nt("["+(e?n.indexOf(e):0)+"]"):V(s)?o=nt():typeof s===_&&(o=nt(i.sourceFields(t,n)[n.indexOf(e)])),o},e.prototype.getErrorRange=function(t,e){var o,r,i;if(!_t(e))return null;if(this.globalRange)return this.globalRange(t);if(R(e))o=t-e[0],r=t+e[1];else if(V(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,s=0;s<r;s++){var a=this.valueGetter(t[s]);V(a)&&(n+=Math.pow(a-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]);V(n)&&(o+=n,r++)}return{value:o/r,count:r}},e}(I.Class);var Dr=I.support.browser||{},zr=600,Vr="fadeIn",Hr=.8,Nr=Dr.msie?.001:0,Fr="errorLow",Ur="errorHigh",Gr="zero",Wr="interpolate",Xr="above",Yr="below",qr="smooth",Qr="step",Zr="area",Kr="bar",Jr="boxPlot",$r="bubble",ti="bullet",ei="candlestick",oi="column",ri="donut",ii="funnel",ni="heatmap",si="horizontalWaterfall",ai="line",pi="ohlc",li="pie",ci="polarArea",hi="polarLine",ui="polarScatter",di="radarArea",fi="radarColumn",vi="radarLine",yi="rangeArea",gi="rangeBar",mi="rangeColumn",xi="scatter",bi="scatterLine",_i="verticalArea",wi="verticalBoxPlot",Ci="verticalBullet",ki="verticalLine",Si="verticalRangeArea",Ai="waterfall",Pi=[Kr,oi,pi,ei,Jr,wi,ti,mi,gi,Ai,si],Oi="seriesClick",Mi="seriesHover",Ti="seriesOver",Ei="seriesLeave",Ri="plotAreaHover",Bi="plotAreaLeave",Li="drag",ji="dragEnd",Ii="dragStart",Di="zoomStart",zi="zoom",Vi="zoomEnd",Hi="selectStart",Ni="select",Fi="selectEnd",Ui="showTooltip",Gi="hideTooltip",Wi="log",Xi="category",Yi="insideEnd",qi="outsideEnd",Qi="wheel",Zi="drilldown",Ki=function(t){function e(e,o,r,i,n,s){t.call(this,s),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(),s=this.getCapsWidth(t,r),a=r?n.x:n.y,p=a-s,l=a+s;r?(e=[new ee(n.x,i.y1),new ee(n.x,i.y2)],o&&e.push(new ee(p,i.y1),new ee(l,i.y1),new ee(p,i.y2),new ee(l,i.y2)),this.box=new ie(p,i.y1,l,i.y2)):(e=[new ee(i.x1,n.y),new ee(i.x2,n.y)],o&&e.push(new ee(i.x1,p),new ee(i.x1,l),new ee(i.x2,p),new ee(i.x2,l)),this.box=new ie(i.x1,p,i.x2,l)),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 I.drawing.Path(r).moveTo(o[i].x,o[i].y).lineTo(o[i+1].x,o[i+1].y);D(n),this.visual.append(n)}},e}(de);Dt(Ki,{animation:{type:Vr,delay:zr},endCaps:!0,line:{width:2},zIndex:1});const Ji=Ki;var $i=function(t){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}(Ji);const tn=$i;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,s=!1;if(o.excluded=o.excluded||[],n>en)return null;for(var a in t)if(!ct(a,o.excluded)&&t.hasOwnProperty(a)){var p=t[a];F(p)?(s=!0,r||(t[a]=Lt(p(e),i[a]))):Y(p)&&(r||(o.defaults=i[a]),o.depth++,s=on(p,e,o,r)||s,o.depth--)}return s}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&&V(t.value)){for(var e=t.categoryIx,o=this.categoryPoints[e],r=[],i=0,n=0;n<o.length;n++){var s=o[n];if(s){var a=t.series.stack,p=s.series.stack;if(a&&p&&a.group!==p.group)continue;V(s.value)&&(i+=Math.abs(s.value),r.push(Math.abs(s.value)))}}if(i>0)return t.value/i}return t.value},e.prototype.plotRange=function(t,e){void 0===e&&(e=0);var o=this.categoryPoints[t.categoryIx];if(this.options.isStacked){for(var r=this.plotValue(t),i=r>=0,n=e,s=!1,a=0;a<o.length;a++){var p=o[a];if(t===p)break;var l=t.series.stack,c=p.series.stack;if(l&&c){if(typeof l===S&&l!==c)continue;if(l.group&&l.group!==c.group)continue}var h=this.plotValue(p);(h>=0&&i||h<0&&!i)&&(n+=h,r+=h,s=!0,this.options.isStacked100&&(r=Math.min(r,1)))}return s&&(n-=e),[n,r]}var u=t.series,d=this.seriesValueAxis(u),f=this.categoryAxisCrossingValue(d);return[f,N(t.value)?t.value:f]},e.prototype.stackLimits=function(t,e){for(var o=m,r=x,i=0;i<this.categoryPoints.length;i++){var n=this.categoryPoints[i];if(n)for(var s=0;s<n.length;s++){var a=n[s];if(a&&(a.series.stack===e||a.series.axis===t)){var p=this.plotRange(a,0)[1];_t(p)&&isFinite(p)&&(r=Math.max(r,p),o=Math.min(o,p))}}}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 s=r[n],a=s.axis,p=a+s.stack,l=i[p];if(!l){l=t.stackLimits(a,s.stack);var c=t.errorTotals;c&&(c.negative.length&&(l.min=Math.min(l.min,zt(c.negative).min)),c.positive.length&&(l.max=Math.max(l.max,zt(c.positive).max))),l.min!==m||l.max!==x?i[p]=l:l=null}l&&(t.valueAxisRanges[a]=l)}},e.prototype.addErrorBar=function(t,e,o){var r,i=t.value,n=t.series,s=t.seriesIx,a=t.options.errorBars,p=e.fields[Fr],l=e.fields[Ur];V(p)&&V(l)?r={low:p,high:l}:a&&_t(a.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[s]=this.seriesErrorRanges[s]||new Ir(a.value,n,P),r=this.seriesErrorRanges[s].getErrorRange(i,a.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,s=t.high;if(this.options.isStacked){var a=this.stackedErrorRange(t,e);n=a.low,s=a.high}else{var p={categoryIx:e,series:i};this.updateRange({value:n},p),this.updateRange({value:s},p)}var l=new tn(n,s,o,this,i,r);t.errorBars=[l],t.append(l)},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 s=this.seriesPoints[i];s||(this.seriesPoints[i]=s=[]);var a=this.createPoint(t,e);a&&(Object.assign(a,e),a.owner=this,a.noteText=t.fields.noteText,_t(a.dataItem)||(a.dataItem=r.data[o]),this.addErrorBar(a,t,o)),this.points.push(a),s.push(a),n.push(a),this.updateRange(t.valueFields,e)},e.prototype.evalPointOptions=function(t,e,o){var r=o.categoryIx,i=o.category,n=o.series,s=o.seriesIx,a={defaults:n._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint","drilldownSeriesFactory"]},p=this._evalSeries[s];_t(p)||(this._evalSeries[s]=p=on(t,{},a,!0));var l=t;return p&&on(l=X({},l),{value:e,category:i,index:r,series:n,dataItem:n.data[r]},a),l},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:x}).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,s){var a=s.categoryIx,p=s.series,l=e.seriesValueAxis(p),c=r[n++],h=o[a];if(h||(o[a]=h=e.categorySlot(i,a,l)),c){var u=e.plotRange(c,l.startValue()),d=e.valueSlot(l,u);if(d){var f=e.pointSlot(h,d);c.aboveAxis=e.aboveAxis(c,l),c.stackValue=u[1],e.options.isStacked100&&(c.percentage=e.plotValue(c)),e.reflowPoint(c,f)}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(Ot(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 s=0;s<r;s++)for(var a=0;a<i;a++){var p=o[a],l=e.categoryAxis.categoryAt(s);t(e._bindPoint(p,a,s),{category:l,categoryIx:s,categoriesCount:r,series:p,seriesIx:a})}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]=Br.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}(de);Dt(nn,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0});const sn=nn;var an={click:function(t,e){return t.trigger(Oi,this.eventArgs(e))},hover:function(t,e){return t.trigger(Mi,this.eventArgs(e))},over:function(t,e){return t.trigger(Ti,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:At(t),originalEvent:t,point:this}}};const pn=an,ln={createNote:function(){var t=this.options.notes,e=this.noteText||t.label.text;!1!==t.visible&&_t(e)&&null!==e&&(this.note=new ze({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:a,vAlign:a,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 _t(o.color)||(o.color=new I.Color(e).brightness(Hr).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 s=this.markerBox();if(!e.markers.visible||!e.markers.size){var a=s.center();s=new ie(a.x,a.y,a.x,a.y)}this.note.reflow(s)}},e.prototype.reflowLabel=function(t){var e=this.options,o=this.label,r=e.labels.position;o&&(r=(r=r===Xr?A:r)===Yr?s: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 I.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=s):(o=t.y2,r=A),{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}(de);cn.prototype.defaults={vertical:!0,markers:{visible:!0,background:O,size:8,type:p,border:{width:2},opacity:1},labels:{visible:!1,position:Xr,margin:J(3),padding:J(4),animation:{type:Vr,delay:zr}},notes:{label:{}},highlight:{markers:{border:{color:"#fff",width:2}},zIndex:100},errorBars:{line:{width:1}}},X(cn.prototype,pn),X(cn.prototype,ln);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&&!_t(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;F(o)&&r&&(o=r.color);var i=I.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}(de);Dt(un,{closed:!1});const dn=un;var fn={calculateStepPoints:function(t){for(var e=this.parent.plotArea.seriesCategoryAxis(this.series).options,o=e.justified,r=e.vertical,i=e.reverse,n=r?T:E,s=r?E:T,a=i?2:1,p=a,l=vn(t[0],n,a,s,p),c=[l],h=1;h<t.length;h++){var u=vn(t[h],n,a,s,p);if(l[n]!==u[n]){var d=new I.geometry.Point;d[n]=l[n],d[s]=u[s],c.push(d,u)}l=u}return o?l!==Ot(c)&&c.push(l):c.push(vn(Ot(t),n,a,s,i?1:2)),c}};function vn(t,e,o,r,i){var n=t.box,s=new I.geometry.Point;return s[e]=n[e+o],s[r]=n[r+i],s}const yn=fn;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}(dn);X(gn.prototype,yn);const mn=gn;var xn=function(t){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;F(o)&&e&&(o=e.color);var r=new _r(this.options.closed).process(this.points()),i=new I.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}(dn);const bn=xn;var _n={renderSegments:function(){var t,e=this,o=this.options,r=this.seriesPoints,i=o.series,n=r.length;this._segments=[];for(var s=0;s<n;s++){for(var a=i[s],p=e.sortPoints(r[s]),l=p.length,c=[],h=0;h<l;h++){var u=p[h];u?c.push(u):e.seriesMissingValues(a)!==Wr&&(c.length>1&&(t=e.createSegment(c,a,s,t),e._addSegment(t)),c=[])}c.length>1&&(t=e.createSegment(c,a,s,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],s=m,a=0;a<n.length;a++){var p=n[a];if(p&&_t(p.value)&&null!==p.value&&!1!==p.visible){var l=p.box.center().distanceTo(i);l<s&&(r=p,s=l)}}return r}};const wn=_n;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}(I.drawing.Animation);Dt(Cn,{duration:zr}),I.drawing.AnimationFactory.current.register("clip",Cn);const kn=Cn;function Sn(t){for(var e=0;e<t.length;e++)if(_t(t[e].zIndex))return!0}const An={createAnimation:function(){var t=this.getRoot();if(t&&!1!==(t.options||{}).transitions){var e=t.size(),o=I.drawing.Path.fromRect(e.toRect());this.visual.clip(o),this.animation=new kn(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&&_t(r.visual.options.zIndex)&&r.visual.clip(t)}}};var Pn=function(t){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(!_t(n)||null===n){if(i!==Gr)return null;n=0}var s=this.pointOptions(o,r);s=this.evalPointOptions(s,n,e);var a=t.fields.color||o.color;F(o.color)&&(a=s.color);var p=new hn(n,s);return p.color=a,this.append(p),p},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===qr?bn:dn)(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}(sn);X(Pn.prototype,wn,An);const On=Pn;var Mn=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;F(r)&&e&&(r=e.color),this.visual=new I.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 I.geometry.Segment(t)}))},e.prototype.createStroke=function(t){var e=new I.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();xt(o,i)}var n=new I.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),s=this.strokeSegments(),a=s[0].anchor(),p=Ot(s).anchor(),l=o?n.x1:n.y1;o?t.lineTo(l,p.y).lineTo(l,a.y):t.lineTo(p.x,l).lineTo(a.x,l)},e}(dn);const Tn=Mn;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}(Tn);X(En.prototype,yn);const Rn=En;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.createStrokeSegments=function(){var t=new _r(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 I.geometry.Segment(r.anchor(),r.controlOut(),r.controlIn()))}return e},e}(Tn);const Ln=Bn;var jn=function(t){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,s=this.options.isStacked,a=(e.line||{}).style;return s&&o>0&&r&&("gap"!==this.seriesMissingValues(e)?(n=r.linePoints,i=r):n=this._gapStackPoints(t,o,a)),new(a===Qr?Rn:a===qr?Ln:Tn)(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,s=t.length;n<0&&(n=0,s--);var a=n+s,p=this.seriesOptions[0]._outOfRangeMinPoint?1:0,l=[];this._stackPoints=this._stackPoints||[];for(var c=n;c<a;c++){var h=c+p,u=e,d=void 0;do{d=i[--u][h]}while(u>0&&!d);if(d)o!==Qr&&c>n&&!i[u][h-1]&&l.push(r._previousSegmentPoint(c,h,h-1,u)),l.push(d),o!==Qr&&c+1<a&&!i[u][h+1]&&l.push(r._previousSegmentPoint(c,h,h+1,u));else{var f=r._createGapStackPoint(c);r._stackPoints.push(f),l.push(f)}}return l},e.prototype._previousSegmentPoint=function(t,e,o,r){for(var i,n=this.seriesPoints,s=r;s>0&&!i;)i=n[--s][o];return i?i=n[s][e]:(i=this._createGapStackPoint(t),this._stackPoints.push(i)),i},e.prototype._createGapStackPoint=function(t){var e=this.pointOptions({},0),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}(On);const In=jn;var Dn=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:x},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}(I.Class);const zn=Dn;var Vn=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,p=i.box,l=i.options.padding,c=t;n.align=o?a:g,n.vAlign=o?A:a,e.position===Yi?o?(n.vAlign=A,!r&&p.height()<t.height()&&(n.vAlign=s)):n.align=r?C:g:e.position===a?(n.vAlign=a,n.align=a):"insideBase"===e.position?o?n.vAlign=r?s:A:n.align=r?g:C:e.position===qi&&(o?c=r?new ie(t.x1,t.y1-p.height(),t.x2,t.y1):new ie(t.x1,t.y2,t.x2,t.y2+p.height()):(n.align=a,c=r?new ie(t.x2,t.y1,t.x2+p.width(),t.y2):new ie(t.x1-p.width(),t.y1,t.x1,t.y2))),e.rotation||(o?l.left=l.right=(c.width()-i.contentBox.width())/2:l.top=l.bottom=(c.height()-i.contentBox.height())/2),i.reflow(c)},e.prototype.alignToClipBox=function(t){var e=this.options.vertical?E:T,o=e+"1",r=e+"2",i=this.children[0],n=this.parent.box;if(n[o]<t[o]||t[r]<n[r]){var s=i.paddingBox.clone();s[o]=Math.max(n[o],t[o]),s[r]=Math.min(n[r],t[r]),this.reflow(s)}},e}(de);Dt(Vn,{position:qi,margin:J(3),padding:J(4),color:n,background:"",border:{width:1,color:""},aboveAxis:!0,vertical:!1,animation:{type:Vr,delay:zr},zIndex:2});const Hn=Vn;function Nn(t){var e=t.overlay;return e&&e.gradient&&"none"!==e.gradient}var Fn=function(t){function e(e,o){t.call(this),this.options=o,this.color=o.color||O,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 Hn(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 I.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=_t(o.opacity)?o.opacity:e.opacity,i=this.box.toRect();i.size.width=Math.round(i.size.width);var n=this.rectVisual=I.drawing.Path.fromRect(i,{fill:{color:this.color,opacity:e.opacity},stroke:{color:this.getBorderColor(),width:o.width,opacity:r,dashType:o.dashType}}),s=this.box.width(),a=this.box.height();if((e.vertical?s:a)>6&&(D(n),(s<1||a<1)&&(n.options.stroke.lineJoin="round")),t.append(n),Nn(e)){var p=this.createGradientOverlay(n,{baseColor:this.color},X({end:e.vertical?void 0:[0,1]},e.overlay));t.append(p)}},e.prototype.createHighlight=function(t){return D(I.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||Hr,r=e.color;return _t(r)||(r=new I.Color(t).brightness(o).toHex()),r},e.prototype.tooltipAnchor=function(){var t,e,o=this,r=o.options,i=o.box,n=o.aboveAxis,a=this.owner.pane.clipBox()||i,p=g,l=A;if(r.vertical)t=Math.min(i.x2,a.x2)+5,n?e=Math.max(i.y1,a.y1):(e=Math.min(i.y2,a.y2),l=s);else{var c=Math.max(i.x1,a.x1),h=Math.min(i.x2,a.x2);r.isStacked?(l=s,n?(p=C,t=h):t=c,e=Math.max(i.y1,a.y1)-5):(n?t=h+5:(t=c-5,p=C),e=Math.max(i.y1,a.y1))}return{point:new ee(t,e),align:{horizontal:p,vertical:l}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,series:this.series}},e}(de);X(Fn.prototype,pn),X(Fn.prototype,ln),Fn.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};const Un=Fn;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,s=n.length,a=o?E:T,p=s+r+i*(s-1),l=(o?t.height():t.width())/p,c=t[a+1]+l*(r/2);this.forEach(n,(function(e,o){var r=(e.box||t).clone();r[a+1]=c,r[a+2]=c+l,e.reflow(r),o<s-1&&(c+=l*i),c+=l}))},e}(de);Dt(Xn,{vertical:!1,gap:0,spacing:0});const Yn=Xn;var qn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){for(var e=this.options.vertical?T:E,o=this.children,r=o.length,i=this.box=new ie,n=0;n<r;n++){var s=o[n];if(!1!==s.visible){var a=s.box.clone();a.snapTo(t,e),0===n&&(i=this.box=a.clone()),s.reflow(a),i.wrap(a)}}},e}(de);Dt(qn,{vertical:!0});const Qn=qn;var Zn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange()},e.prototype.pointType=function(){return Un},e.prototype.clusterType=function(){return Yn},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,s=this.children,a=n.isStacked,p=this.pointValue(t),l=this.pointOptions(r,i),c=l.labels;a&&c.position===qi&&(c.position=Yi),l.isStacked=a;var h=t.fields.color||r.color;p<0&&l.negativeColor&&(h=l.negativeColor),l=this.evalPointOptions(l,p,e),F(r.color)&&(h=l.color);var u=new(this.pointType())(p,l);u.color=h;var d=s[o];return d||(d=new(this.clusterType())({vertical:n.invertAxes,gap:n.gap,spacing:n.spacing,rtl:!n.invertAxes&&(this.chartService||{}).rtl}),this.append(d)),a?this.getStackWrap(r,d).append(u):d.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 s=0;s<n.length;s++)if(n[s]._stackGroup===i){o=n[s];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 s=o.getSlot(n,n,!0),a=r.invertAxes?T:E;i[a+1]=i[a+2]=s[a+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&&_t(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 I.geometry.Point(t.x1,t.y1),o.vertical=!e.invertAxes},e}(sn);Dt(Zn,{animation:{type:Kr}});const Kn=Zn;var Jn=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),s=i.getSlot(r.low,r.high);n.x1=s.x1=t.x1,n.x2=s.x2=t.x2,this.realBody=n;var a=s.center().x,p=[];p.push([[a,s.y1],[a,n.y1]]),p.push([[a,n.y2],[a,s.y2]]),this.lines=p,this.box=s.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 I.drawing.Group;return this.createBody(e,t),this.createLines(e,t),e},e.prototype.createBody=function(t,e){var o=I.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)}),D(o),t.append(o),Nn(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 s=I.drawing.Path.fromPoints(o[n],i);D(s),t.append(s)}},e.prototype.getBorderColor=function(){var t=this.options.border,e=t.color;return _t(e)||(e=new I.Color(this.color).brightness(t._brightness).toHex()),e},e.prototype.createOverlay=function(){var t=I.drawing.Path.fromRect(this.box.toRect(),{fill:{color:O,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:A}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e}(de);Dt(Jn,{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(Jn.prototype,pn),X(Jn.prototype,ln);const $n=Jn;function ts(t){return Or(t)===t.length}var es=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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,s=e.seriesIx,a=this.children,p=this.options,l=t.valueFields,c=ts(this.splitValue(l)),h=n.data[r],u=this.categoryPoints[r];u||(this.categoryPoints[r]=u=[]),c&&(o=this.createPoint(t,e));var d=a[r];d||(d=new Yn({vertical:p.invertAxes,gap:p.gap,spacing:p.spacing,rtl:!p.invertAxes&&(this.chartService||{}).rtl}),this.append(d)),o&&(this.updateRange(l,e),d.append(o),o.categoryIx=r,o.category=i,o.series=n,o.seriesIx=s,o.owner=this,o.dataItem=h,o.noteText=t.fields.noteText),this.points.push(o),u.push(o)},e.prototype.pointType=function(){return $n},e.prototype.createPoint=function(t,e){var o=e.series,r=this.pointType(),i=t.valueFields,n=X({},o),s=t.fields.color||o.color;n=this.evalPointOptions(n,i,e),o.type===ei&&i.open>i.close&&(s=t.fields.downColor||o.downColor||o.color),F(o.color)&&(s=n.color),n.vertical=!this.options.invertAxes;var a=new r(i,n);return a.color=s,a},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:x},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}(sn);X(es.prototype,An);const os=es;var rs=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,s=r.owner.seriesValueAxis(i);this.boxSlot=o=s.getSlot(n.q1,n.q3),this.realBody=o,this.reflowBoxSlot(t),this.whiskerSlot=e=s.getSlot(n.lower,n.upper),this.reflowWhiskerSlot(t);var a=s.getSlot(n.median);if(n.mean){var p=s.getSlot(n.mean);this.meanPoints=this.calcMeanPoints(t,p)}this.whiskerPoints=this.calcWhiskerPoints(o,e),this.medianPoints=this.calcMedianPoints(t,a),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||{},s=0;s<o.length;s++){var a=o[s],p=X({},(n=a<e.q3+r&&a>e.q1-r?t.outliers:t.extremes).border);_t(p.color)||(_t(this.color)?p.color=this.color:p.color=new I.Color(n.background).brightness(Hr).toHex());var l=new ge({type:n.type,width:n.size,height:n.size,rotation:n.rotation,background:n.background,border:p,opacity:n.opacity});l.value=a,i.push(l)}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,s=o.getSlot(n);e.options.vertical?s.move(r.x):s.move(void 0,r.y),e.box=e.box.wrap(s),t[i].reflow(s)}},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}($n);Dt(rs,{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:O,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:p,background:O,border:{width:2,opacity:1},opacity:0}}),X(rs.prototype,pn);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.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}(is);const ss=ns;var as=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addValue=function(t,e){var o,r=e.categoryIx,i=e.category,n=e.series,s=e.seriesIx,a=this.children,p=this.options,l=t.valueFields,c=ts(this.splitValue(l)),h=n.data[r],u=this.categoryPoints[r];u||(this.categoryPoints[r]=u=[]),c&&(o=this.createPoint(t,e));var d=a[r];d||(d=new Yn({vertical:p.invertAxes,gap:p.gap,spacing:p.spacing,rtl:!p.invertAxes&&(this.chartService||{}).rtl}),this.append(d)),o&&(this.updateRange(l,e),d.append(o),o.categoryIx=r,o.category=i,o.series=n,o.seriesIx=s,o.owner=this,o.dataItem=h),this.points.push(o),u.push(o)},e.prototype.pointType=function(){return this.options.invertAxes?ss:is},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));_t(t.mean)&&(i=i.concat(t.mean)),r=this.valueAxisRanges[o]=r||{min:m,max:x},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];_t(i)&&null!==i&&o.push(i)}return o},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(os);const ps=as;var ls=function(t){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}(Ji);const cs=ls;function hs(t){return _t(t)&&null!==t}var us=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",s=e+"ErrorLow",a=e+"ErrorHigh",p=o.seriesIx,l=o.series,c=t.options.errorBars,h=o[s],u=o[a];V(i)&&(V(h)&&V(u)&&(r={low:h,high:u}),c&&_t(c[n])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[e][p]=this.seriesErrorRanges[e][p]||new Ir(c[n],l,e),r=this.seriesErrorRanges[e][p].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,s=e.options.errorBars,a=o===E,p={};e[o+"Low"]=r,e[o+"High"]=i,e.errorBars=e.errorBars||[];var l=new cs(r,i,a,this,n,s);e.errorBars.push(l),e.append(l),p[o]=r,this.updateRange(p,n),p[o]=i,this.updateRange(p,n)},e.prototype.addValue=function(t,e){var o,r=t.x,i=t.y,n=e.seriesIx,s=this.options.series[n],a=this.seriesMissingValues(s),p=this.seriesPoints[n],l=t;hs(r)&&hs(i)||(l=this.createMissingValue(l,a)),l&&((o=this.createPoint(l,e))&&(Object.assign(o,e),this.addErrorBar(o,T,e),this.addErrorBar(o,E,e)),this.updateRange(l,e.series)),this.points.push(o),p.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,s=t.y,a=this.xAxisRanges[r],p=this.yAxisRanges[i];hs(n)&&(a=this.xAxisRanges[r]=a||{min:m,max:x},H(n)&&(n=Lo(o,n)),a.min=Math.min(a.min,n),a.max=Math.max(a.max,n)),hs(s)&&(p=this.yAxisRanges[i]=p||{min:m,max:x},H(s)&&(s=Lo(o,s)),p.min=Math.min(p.min,s),p.max=Math.max(p.max,s))},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"]},s=this._evalSeries[i];_t(s)||(this._evalSeries[i]=s=on(t,{},n,!0));var a=t;return s&&on(a=X({},t),{value:e,series:r,dataItem:o.dataItem},n),a},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),F(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 s=o[i++],a=e.seriesAxes(n.series),p=a.x.getSlot(t.x,t.x,r),l=a.y.getSlot(t.y,t.y,r);if(s)if(p&&l){var c=e.pointSlot(p,l);s.reflow(c)}else s.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 s=this._bindPoint(i,r,n),a=s.valueFields,p=s.fields;t(a,X({pointIx:n,series:i,seriesIx:r,dataItem:i.data[n],owner:this},p))}}},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}(de);Dt(us,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),X(us.prototype,An,{_bindPoint:sn.prototype._bindPoint});const ds=us;var fs=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 I.drawing.Group,s=new I.drawing.Circle(new I.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}]})}),a=new I.drawing.Circle(new I.geometry.Circle([r.x,r.y],i),{stroke:{color:e.color||new I.Color(o.background).brightness(Hr).toHex(),width:e.width,opacity:e.opacity},fill:{color:o.background,opacity:t.opacity}});return n.append(s,a),n},e}(hn);fs.prototype.defaults=X({},fs.prototype.defaults,{labels:{position:a},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),fs.prototype.defaults.highlight.zIndex=void 0;const vs=fs;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._initFields=function(){this._maxSize=x,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 vs},e.prototype.createPoint=function(t,e){var o=e.series,r=o.data.length,i=e.pointIx*(zr/r),n={delay:i,duration:zr-i,type:$r},s=e.color||o.color;t.size<0&&o.negativeValues.visible&&(s=Lt(o.negativeValues.color,s));var a=X({labels:{animation:{delay:i,duration:zr-i}}},this.pointOptions(o,e.seriesIx),{markers:{type:p,border:o.border,opacity:o.opacity,animation:n}});a=this.evalPointOptions(a,t,e),F(o.color)&&(s=a.color),a.markers.background=s;var l=new vs(t,a);return l.color=s,this.append(l),l},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],s=(i.minSize||Math.max(.02*o,10))/2,a=(i.maxSize||.2*o)/2,p=Math.PI*s*s,l=(Math.PI*a*a-p)/this._maxSize,c=0;c<n.length;c++){var h=n[c];if(h){var u=Math.abs(h.value.size)*l,d=Math.sqrt((p+u)/Math.PI),f=Lt(h.options.zIndex,0)+(1-d/a);X(h.options,{zIndex:f,markers:{size:2*d,zIndex:f},labels:{zIndex:f+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}(ds);Dt(ys,{tooltip:{format:"{3}"},labels:{format:"{3}"}});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}(ge);X(ms.prototype,pn);const xs=ms;var bs=function(t){function e(e,o){t.call(this,o),this.aboveAxis=this.options.aboveAxis,this.color=o.color||O,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,_t(this.value.target)&&(this.target=new xs({type:t.target.shape,background:t.target.color||this.color,opacity:t.opacity,zIndex:t.zIndex,border:t.target.border,vAlign:A,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 Hn(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,s=i.seriesValueAxis(this.options),a=i.categorySlot(i.categoryAxis,o.categoryIx,s),p=s.getSlot(this.value.target),l=n?p:a,c=n?a:p;if(r){var h=new ie(l.x1,c.y1,l.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=I.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,D(o),this.visual.append(o)},e.prototype.createAnimation=function(){this.bodyVisual&&(this.animation=I.drawing.Animation.create(this.bodyVisual,this.options.animation))},e.prototype.createHighlight=function(t){return I.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}(de);bs.prototype.tooltipAnchor=Un.prototype.tooltipAnchor,Dt(bs,{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(bs.prototype,pn),X(bs.prototype,ln);const _s=bs;var ws=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||R(i[0])||Y(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,s=t.valueFields,a=X({vertical:!i.invertAxes,overlay:r.overlay,categoryIx:o,invertAxes:i.invertAxes},r),p=t.fields.color||r.color;a=this.evalPointOptions(a,s,e),F(r.color)&&(p=a.color);var l=new _s(s,a);l.color=p;var c=n[o];return c||(c=new Yn({vertical:i.invertAxes,gap:i.gap,spacing:i.spacing,rtl:!i.invertAxes&&(this.chartService||{}).rtl}),this.append(c)),c.append(l),l},e.prototype.updateRange=function(t,e){var o=t.current,r=t.target,i=e.series.axis,n=this.valueAxisRanges[i];_t(o)&&!isNaN(o)&&_t(r&&!isNaN(r))&&((n=this.valueAxisRanges[i]=n||{min:m,max:x}).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}(sn);ws.prototype._setAnimationOptions=Kn.prototype._setAnimationOptions,Dt(ws,{animation:{type:Kr}});const Cs=ws;var ks=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=J(t.padding||{},"auto");return{backgroundColor:o,borderColor:r,font:t.font,color:t.color,opacity:t.opacity,borderWidth:q(t.border.width),paddingTop:q(n.top),paddingBottom:q(n.bottom),paddingLeft:q(n.left),paddingRight:q(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 I.Color(r.backgroundColor);_t(e.color)||i.isDark()||(t.className="k-chart-tooltip-inverse"),this.chartService.notify(Ui,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}(I.Class);Dt(ks,{border:{width:1},opacity:1});const Ss=ks;var As=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,p=i.padding,l=!r.axis.options.vertical,c=r.line.bbox();return l?(t=a,n===s?(e=A,o=c.bottomLeft().translate(0,p)):(e=s,o=c.topLeft().translate(0,-p))):(e=a,n===g?(t=C,o=c.topLeft().translate(-p,0)):(t=g,o=c.topRight().translate(p,0))),{point:o,align:{horizontal:t,vertical:e}}},e}(Ss);Dt(As,{padding:10});const Ps=As;var Os=function(t){function e(e,o,r){t.call(this,r),this.axis=o,this.stickyMode=o instanceof zo;var i=this.options.tooltip;i.visible&&(this.tooltip=new Ps(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:T,s=new I.geometry.Point(i.x1,i.y1);if(t=r?new I.geometry.Point(i.x2,i.y1):new I.geometry.Point(i.x1,i.y2),o)if(this.stickyMode){var a=e.getSlot(e.pointCategoryIndex(o));s[n]=t[n]=a.center()[n]}else s[n]=t[n]=o[n];this.box=i,this.line.moveTo(s).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(),s=i?T:E,a=0;a<r;a++){var p=o[a];p.options.vertical!==i&&(t?t.wrap(p.lineBox()):t=p.lineBox().clone())}return n[s+1]=t[s+1],n[s+2]=t[s+2],n},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options;this.line=new I.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}(de);Dt(Os,{color:n,width:2,zIndex:-1,tooltip:{visible:!1}});const Ms=Os;var Ts=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 I.drawing.Group({zIndex:0}),this.shouldClip()){var t=(this.clipBox=this._clipBox()).toRect(),e=I.drawing.Path.fromRect(t);D(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 s=r[n];if(s&&!1!==s.visible&&s.overlapsBox&&s.overlapsBox(e))if(s.unclipElements)s.unclipElements();else{var a=s.label,p=s.note;a&&a.options.visible&&(a.alignToClipBox&&a.alignToClipBox(e),a.options.noclip=!0),p&&p.options.visible&&(p.options.noclip=!0)}}},e.prototype.destroy=function(){t.prototype.destroy.call(this),delete this.parent},e}(de);Ts.prototype.isStackRoot=!0;const Es=Ts;var Rs=function(t){function e(e){t.call(this,e),this.id="pane"+Bs++,this.createTitle(),this.content=new de,this.chartContainer=new Es({},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;Y(t)&&(t=X({},t,{align:t.position,position:A})),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;Ot(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],s=n.options.vertical,a=s?o:r,p=0;p<e.length;p++)if(0===a.length){var l=e[p];s!==l.options.vertical&&xt(a,n.createGridLines(l))}},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:T,s=i.lineBox();o[n+1]=s[n+1],o[n+2]=s[n+2]}if(0===o.x2)for(var a=this.parent.axes,p=a.length,l=0;l<p;l++){var c=a[l];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 Ar(this),index:this.paneIndex,name:this.options.name})},e}(ve),Bs=1;Rs.prototype.isStackRoot=!0,Dt(Rs,{zIndex:-1,shrinkToFit:!0,title:{align:g},visible:!0});const Ls=Rs;function js(t,e){null!==e&&t.push(e)}function Is(t,e,o){var r=e.visible;if(_t(r))return r;var i=t.pointVisibility;return i?i[o]:void 0}function Ds(t){for(var e=t.data,o=[],r=0,i=0,n=0;n<e.length;n++){var s=Br.current.bindPoint(t,n),a=s.valueFields.value;H(a)&&(a=parseFloat(a)),V(a)?(s.visible=!1!==Is(t,s.fields,n),s.value=Math.abs(a),o.push(s),s.visible&&(r+=s.value),0!==a&&i++):o.push(null)}return{total:r,points:o,count:i}}function zs(t,e){return t&&e?t.toLowerCase()===e.toLowerCase():t===e}function Vs(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 Hs(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 Ns(t,e){var o=t.type,r=e instanceof Date;return!o&&r||zs(o,h)}function Fs(t){return 1===t.length?t[0]:t}var Us=/area/i;function Gs(t,e){var o=Br.current.bindPoint(t,null,e).valueFields;for(var r in o)if(N(o[r]))return!0}function Ws(t){var e,o,r=t.start,i=t.dir,n=t.min,s=t.max,a=t.getter,p=t.hasItem,l=t.series,c=r;do{p(c+=i)&&(e=Gs(l,(o=a(c)).item))}while(n<=c&&c<=s&&!e);if(e)return o}function Xs(t,e,o,r,i){var n=e.min,s=e.max,a=n>0&&n<o,p=s+1<o;if(a||p){var l,c,h,u=function(t){return t.missingValues?t.missingValues:Us.test(t.type)||t.stack?Gr:Wr}(t);u!==Wr?(a&&(l=r(n-1)),p&&(c=r(s+1))):(a&&(l=Gs(t,(h=r(n-1)).item)?h:Ws({start:n,dir:-1,min:0,max:o-1,getter:r,hasItem:i,series:t})),p&&(c=Gs(t,(h=r(s+1)).item)?h:Ws({start:s,dir:1,min:0,max:o-1,getter:r,hasItem:i,series:t}))),l&&(t._outOfRangeMinPoint=l),c&&(t._outOfRangeMaxPoint=c)}}var Ys=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),s=0;s<r;s++){var a=X({},n,o[s]);H(a.title)&&(a.title=X({text:a.title},n.title));var p=new Ls(a);p.paneIndex=s,i.push(p),this.append(p)}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],s=e.crosshairOptions(n);if(s&&s.visible){var a=new Ms(e.chartService,n,s);e.crosshairs.push(a),r.content.append(a)}}},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||{},s=[],a=0;a<e;a++){var p=t[a],l=!1!==p.visible;if(!1!==p.visibleInLegend){var c=p.name,h=l?ot(r):ot(n)||ot(r);h&&(c=h({text:hs(c)?c:"",series:p}));var u=p._defaults,d=p.color;F(d)&&u&&(d=u.color);var f=void 0,v=void 0;l?(f={},v=d):(f={color:n.color,font:n.font},v=i.markers.color),hs(c)&&""!==c&&s.push({text:c,labels:f,markerColor:v,series:p,active:l})}}xt(o.items,s)},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 s=i[n];s.options.vertical?o.push(s):e.push(s)}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=J(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,s=0;s<i;s++)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,s=e.getSlot(r,r,!0),a=e.options.reverse?2:1,p=t.box.translate(s[T+a]-i[T+n],s[E+a]-i[E+n]);t.pane!==e.pane&&p.translate(0,t.pane.box.y1-e.pane.box.y1),t.reflow(p)},e.prototype.alignAxes=function(t,e){for(var o=this,r=t[0],i=e[0],n=this.axisCrossingValues(r,e),a=this.axisCrossingValues(i,t),p={},c={},h={},u={},d=0;d<e.length;d++){var f=e[d],v=f.pane,y=v.id,m=!1!==f.options.visible,x=Zs(t,v)||r,b=n;x!==r&&(b=o.axisCrossingValues(x,e)),o.alignAxisTo(f,x,a[d],b[d]),f.options._overlap||(Rt(f.lineBox().x1)===Rt(x.lineBox().x1)&&(p[y]&&f.reflow(f.box.alignTo(p[y].box,g).translate(-f.options.margin,0)),m&&(p[y]=f)),Rt(f.lineBox().x2)===Rt(x.lineBox().x2)&&(f._mirrored||(f.options.labels.mirror=!f.options.labels.mirror,f._mirrored=!0),o.alignAxisTo(f,x,a[d],b[d]),c[y]&&f.reflow(f.box.alignTo(c[y].box,C).translate(f.options.margin,0)),m&&(c[y]=f)),0!==d&&i.pane===f.pane&&(f.alignTo(i),f.reflow(f.box)))}for(var _=0;_<t.length;_++){var w=t[_],k=w.pane,S=k.id,P=!1!==w.options.visible,O=Zs(e,k)||i,M=a;O!==i&&(M=o.axisCrossingValues(O,t)),o.alignAxisTo(w,O,n[_],M[_]),w.options._overlap||(Rt(w.lineBox().y1)===Rt(O.lineBox().y1)&&(w._mirrored||(w.options.labels.mirror=!w.options.labels.mirror,w._mirrored=!0),o.alignAxisTo(w,O,n[_],M[_]),h[S]&&w.reflow(w.box.alignTo(h[S].box,A).translate(0,-w.options.margin)),P&&(h[S]=w)),Rt(w.lineBox().y2,l)===Rt(O.lineBox().y2,l)&&(u[S]&&w.reflow(w.box.alignTo(u[S].box,s).translate(0,w.options.margin)),P&&(u[S]=w)),0!==_&&(w.alignTo(r),w.reflow(w.box)))}},e.prototype.shrinkAxisWidth=function(t){for(var e=this.groupAxes(t).any,o=Qs(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 s=0;s<e.length;s++){var a=e[s];a.options.vertical||a.reflow(a.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,Qs(i).height()-r.contentBox.height());if(0!==n){for(var s=0;s<i.length;s++){var a=i[s];a.options.vertical&&a.reflow(a.box.shrink(0,n))}e=!0}}return e},e.prototype.fitAxes=function(t){for(var e=this.groupAxes(t).any,o=0,r=0;r<t.length;r++){var i=t[r],n=i.axes,s=i.contentBox;if(n.length>0){var a=Qs(n),p=Math.max(s.y1-a.y1,s.y2-a.y2);o=Math.max(o,s.x1-a.x1);for(var l=0;l<n.length;l++){var c=n[l];c.reflow(c.box.translate(0,p))}}}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=Ks(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,s=0;s<o;s++){var a=e[s],p=a.options.height;if(a.options.width=t.width(),a.options.height){if(p.indexOf&&p.indexOf("%")){var l=parseInt(p,10)/100;a.options.height=l*t.height()}a.reflow(t.clone()),r-=a.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 d=e[u],f=t.clone().move(t.x1,n);d.reflow(f),n+=d.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 s=e[n];if(i.options.vertical!==s.options.vertical){var a=i.lineBox().clone().wrap(s.lineBox());t=t?t.wrap(a):a}}return t||this.box},e.prototype.chartsBoxes=function(){for(var t=this.panes,e=[],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(I.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&&_t(e)||(i=O,r=0);var s=this._bgVisual=new I.drawing.MultiPath({fill:{color:i,opacity:r},stroke:{color:n.width?n.color:"",width:n.width,dashType:n.dashType},zIndex:-1});this.addBackgroundPaths(s),this.appendVisual(s)},e.prototype.pointsByCategoryIndex=function(t){var e=this.charts,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 s=i[n];s&&_t(s.value)&&null!==s.value&&o.push(s)}}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 s=i[n];s&&!1!==s.visible&&t(s)&&o.push(s)}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,s=Zs(e,n)||e[0],a=r+o,p=this.createLabelAxis(i,a,s);if(p){o++;var l=n.axes.indexOf(i)+o;n.appendAxisAt(p,l)}}},e.prototype.createLabelAxis=function(t,e,o){var r=t.options.labels,i=r.position,n="end"!==i&&"start"!==i,s=r.visible;if(n||!1===s)return null;var a=this.groupAxes(this.panes),p=o.options.vertical?a.x:a.y,l=this.axisCrossingValues(o,p),c="end"===i,h=o.range(),u=c?h.max:h.min;if(Mt(l[e],h.min,h.max)-u==0)return null;l.splice(e+1,0,u),o.options.axisCrossingValues=l;var d=t.clone();return t.clear(),d.options.name=void 0,d.options.line.visible=!1,d.options.crosshair=void 0,d.options.notes=void 0,d.options.plotBands=void 0,d},e}(de);function qs(t){return!t.pane.axes.some((function(e){return e.options.vertical===t.options.vertical&&e!==t&&!1!==e.options.visible}))}function Qs(t){for(var e,o=t.length,r=0;r<o;r++){var i=t[r],n=!1!==i.options.visible;if(n||qs(i)){var s=n?i.contentBox():i.lineBox();e?e.wrap(s):e=s.clone()}}return e||new ie}function Zs(t,e){for(var o=0;o<t.length;o++){var r=t[o];if(r&&r.pane===e)return r}}var Ks=function(t){return t.reduce((function(t,e){return t.concat(e.axes)}),[])};Dt(Ys,{series:[],plotArea:{margin:{}},background:"",border:{color:n,width:0},paneDefaults:{title:{}},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});const Js=Ys;var $s={hover:function(t,e){this._dispatchEvent(t,e,Ri)},click:function(t,e){this._dispatchEvent(t,e,"plotAreaClick")}};const ta=$s;function ea(t,e,o){var r=e,i=t;if(t.indexOf(".")>-1){for(var n=t.split(".");n.length>1;)i=n.shift(),_t(r[i])||(r[i]={}),r=r[i];i=n.shift()}r[i]=o}const oa=function(t){function e(e,o,r){t.call(this);var i=o.canonicalFields(e),n=o.valueFields(e),s=o.sourceFields(e,i),a=this._seriesFields=[],p=r.query(e.type),l=e.aggregate||p;this._series=e,this._binder=o;for(var c=0;c<i.length;c++){var h=i[c],u=void 0;if(Y(l))u=l[h];else{if(0!==c&&!ct(h,n))break;u=l}u&&a.push({canonicalName:h,name:s[c],transform:F(u)?u:Tr[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],s={};if(n&&!V(n)&&!R(n)){var a=function(){};a.prototype=n,s=new a}for(var p=0;p<r.length;p++){var l=r[p],c=this._bindField(i.values,l.canonicalName),h=l.transform(c,o,i.dataItems,e);if(!(null===h||!Y(h)||_t(h.length)||h instanceof Date)){s=h;break}_t(h)&&ea(l.name,s,h)}return s},e.prototype._bindPoints=function(t){for(var e=this._binder,o=this._series,r=[],i=[],n=0;n<t.length;n++){var s=t[n];r.push(e.bindPoint(o,s)),i.push(o.data[s])}return{values:r,dataItems:i}},e.prototype._bindField=function(t,e){for(var o=[],r=t.length,i=0;i<r;i++){var n,s=t[i],a=s.valueFields;n=_t(a[e])?a[e]:s.fields[e],o.push(n)}return o},e}(I.Class);var ra=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}(I.Class);ra.current=new ra;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.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 Hn(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}(Un);na.prototype.defaults=X({},na.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});const sa=na;var aa=function(t){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 sa},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&&V(r)&&V(i)&&((n=this.valueAxisRanges[o]=n||{min:m,max:x}).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}(Kn);aa.prototype.plotLimits=sn.prototype.plotLimits;const pa=aa;var la=function(t){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 ca=la;var ha="auto",ua=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 ca(r,X({},this.options,{labels:o.from,markers:e.from})),n=this.toPoint=new ca(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 I.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(),p=g;return this.options.vertical?(e=n.x,o=i.y1-5,r=s):(e=i.x2+5,o=n.y,r=a),{point:new ee(e,o),align:{horizontal:p,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,s=i.vertical;n.position===ha&&(s?e.y1<=t.y1?(r=Xr,o=Yr):(r=Yr,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}(de);X(ua.prototype,pn),X(ua.prototype,ln),ua.prototype.defaults={markers:{visible:!1,background:O,size:8,type:p,border:{width:2},opacity:1},labels:{visible:!1,margin:J(3),padding:J(4),animation:{type:Vr,delay:zr},position:ha},notes:{label:{}},highlight:{markers:{border:{color:O,width:2}},zIndex:100},tooltip:{format:"{0} - {1}"}};const da=ua;var fa=function(t){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 I.drawing.Path(t),o=new I.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}(Tn);const va=fa;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.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 _r).process(this.toGeometryPoints(t))},e}(va);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.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}(va);X(ma.prototype,yn);const xa=ma;var ba=function(t){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 da},e.prototype.createPoint=function(t,e){var o=e.series,r=e.seriesIx,i=t.valueFields;if(!hs(i.from)&&!hs(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 s=t.fields.color||o.color;F(o.color)&&(s=n.color);var a=new da(i,n);return a.color=s,this.append(a),a},e.prototype.createSegment=function(t,e,o){var r=(e.line||{}).style;return new("smooth"===r?ga:"step"===r?xa:va)(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;V(r.from)||(r.from=r.to),V(r.to)||(r.to=r.from),t.prototype.addValue.call(this,e,o)},e.prototype.updateRange=function(t,e){if(null!==t&&V(t.from)&&V(t.to)){var o=e.series.axis,r=this.valueAxisRanges[o]=this.valueAxisRanges[o]||{min:m,max:x},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}(sn);X(ba.prototype,wn,An);const _a=ba;var wa=function(t){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=[],s=[],a=[],p=i.getSlot(r.low,r.high),l=i.getSlot(r.open,r.open),c=i.getSlot(r.close,r.close);l.x1=c.x1=p.x1=t.x1,l.x2=c.x2=p.x2=t.x2;var h=p.center().x;n.push([l.x1,l.y1]),n.push([h,l.y1]),s.push([h,c.y1]),s.push([c.x2,c.y1]),a.push([h,p.y1]),a.push([h,p.y2]),this.lines=[n,s,a],this.box=p.clone().wrap(l.clone().wrap(c)),this.reflowNote()},e.prototype.createBody=function(){},e}($n);const Ca=wa;var ka=function(t){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 Ca},e}(os);const Sa=ka;var Aa=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=I.drawing.Path.fromPoints(this.linePoints(),{stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType}});D(o),this.visual.append(o)},e}(de);Dt(Aa,{animation:{type:Vr,delay:zr}});const Pa=Aa;var Oa=function(t){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],s=0,a=0,p=0;p<o;p++){var l=Br.current.bindPoint(n,p),c=l.valueFields.value,h=l.fields.summary,u=s,d=void 0;h?"total"===h.toLowerCase()?(l.valueFields.value=s,u=0,d=s):(l.valueFields.value=a,d=u-a,a=0):V(c)&&(a+=c,d=s+=c),t(l,{category:this.categoryAxis.categoryAt(p),categoryIx:p,series:n,seriesIx:i,total:s,runningTotal:a,from:u,to:d,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 s=void 0,a=0;a<n.length;a++){var p=n[a];if(p&&s){var l=new Pa(s,p,i);o.push(l),this.append(l)}s=p}}},e}(Kn);const Ma=Oa;var Ta=[Zr,_i,yi,Si],Ea=[ai,ki].concat(Ta),Ra=function(t){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 zn,t.length>0){this.invertAxes=ct(t[0].type,[Kr,ti,ki,_i,Si,gi,si,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 zo?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 s=e.filterVisibleSeries(n);if(s)for(var a=e.groupSeriesByCategoryAxis(s),p=0;p<a.length;p++)e.createChartGroup(a[p],i)}},e.prototype.createChartGroup=function(t,e){this.createAreaChart(Vs(t,[Zr,_i]),e),this.createRangeAreaChart(Vs(t,[yi,Si]),e),this.createBarChart(Vs(t,[oi,Kr]),e),this.createRangeBarChart(Vs(t,[mi,gi]),e),this.createBulletChart(Vs(t,[ti,Ci]),e),this.createCandlestickChart(Vs(t,ei),e),this.createBoxPlotChart(Vs(t,[Jr,wi]),e),this.createOHLCChart(Vs(t,pi),e),this.createWaterfallChart(Vs(t,[Ai,si]),e),this.createLineChart(Vs(t,[ai,ki]),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],s=e.seriesCategoryAxis(n),a=e.findPane(s.options.pane);n=(zs(s.options.type,h)||n.categoryField)&&ct(a,t)?e.aggregateSeries(n,s):e.filterSeries(n,s),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),!V(e.options.min)&&!V(e.options.max))return t;var r=e.currentRangeIndices(),i=ct(t.type,Ea),n=X({},t);return n.data=(n.data||[]).slice(r.min,r.max+1),i&&Xs(n,r,o,(function(o){return{item:t.data[o],category:e.categoryAt(o,!0),categoryIx:o-r.min}}),(function(e){return _t(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=zs(r.type,h),s=t.data,a=n?Hs:Er,p=[];n||e.mapCategories();for(var l=0;l<s.length;l++){var c;if(c=t.categoryField?a(t.categoryField,s[l],this.chartService.intl):i[l],_t(c)&&null!==c){var u=e.totalIndex(c);p[u]=p[u]||{items:[],category:c},p[u].items.push(l)}}return this._currentPointsCache[o]=p,p},e.prototype.aggregateSeries=function(t,e){if(!t.data.length)return t;for(var o=this.seriesSourcePoints(t,e),r=X({},t),i=new oa(X({},t),Br.current,ia.current),n=r.data=[],s=e.options.dataItems||[],a=e.currentRangeIndices(),p=function(t){var r=t-a.min,n=o[t];if(n||(n=o[t]={}),n.categoryIx=r,!n.item){var s=e.categoryAt(t,!0);n.category=s,n.item=i.aggregatePoints(n.items,s)}return n},l=a.min;l<=a.max;l++){var c=p(l);n[c.categoryIx]=c.item,c.items&&c.items.length&&(s[c.categoryIx]=c.item)}return ct(r.type,Ea)&&Xs(r,a,e.totalCount(),p,(function(t){return o[t]})),e.options.dataItems=s,r},e.prototype.appendChart=function(e,o){var r=e.options.series,i=this.seriesCategoryAxis(r[0]),n=i.options.categories,s=Math.max(0,rn(r)-n.length);if(s>0)for(n=i.options.categories=i.options.categories.slice(0);s--;)n.push("");this.valueAxisRangeTracker.update(e.valueAxisRanges),t.prototype.appendChart.call(this,e,o)},e.prototype.seriesPaneName=function(t){var e=this.options,o=t.axis,r=st([].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=[],s=0;s<e.length;s++){var a=La(t,e[s],s);0!==a.length&&n.push(a)}return n},e.prototype.createBarChart=function(t,e){if(0!==t.length){var o=t[0],r=new Kn(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 pa(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 Cs(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 On(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 In(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 _a(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 Sa(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 os(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 ps(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 Ma(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=Vs(this.series,Pi),r=0;r<this.series.length;r++){var i=this.series[r];if(ct(i.type,Ta)){var n=i.line;n&&n.style===Qr&&o.push(i)}}for(var s=0;s<o.length;s++){var a=o[s].categoryAxis||"";if(a===t||!a&&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 zo&&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 s=r[n];if(ct(e.findPane(s.pane),t)){var a=s.name,p=s.categories;void 0===p&&(p=[]),s=X({vertical:o,reverse:!o&&e.chartService.rtl,axisCrossingValue:o?m:0},s),_t(s.justified)||(s.justified=e.isJustified()),e.axisRequiresRounding(a,n)&&(s.justified=!1);var l=void 0;if(l=Ns(s,p[0])?new Yo(s,e.chartService):new zo(s,e.chartService),r[n].categories=l.options.srcCategories,a){if(e.namedCategoryAxes[a])throw new Error("Category axis with name "+a+" is already defined");e.namedCategoryAxes[a]=l}l.axisIndex=n,i.push(l),e.appendAxis(l)}}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,Ta))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,s={vertical:!n,reverse:n&&this.chartService.rtl},a=[];this.stack100&&(s.roundToMajorUnit=!1,s.labels={format:"P0"});for(var p=0;p<i.length;p++){var l=i[p];if(ct(e.findPane(l.pane),t)){var c=l.name,h=zs(l.type,Wi)?{min:.1,max:1}:{min:0,max:1},u=o.query(c)||r||h;0===p&&u&&r&&(u.min=Math.min(u.min,r.min),u.max=Math.max(u.max,r.max));var d=new(zs(l.type,Wi)?ar:tr)(u.min,u.max,X({},s,l),e.chartService);if(c){if(e.namedValueAxes[c])throw new Error("Value axis with name "+c+" is already defined");e.namedValueAxes[c]=d}d.axisIndex=p,a.push(d),e.appendAxis(d)}}var f=this.valueAxis||a[0];this.valueAxis=f,n?this.axisX=f:this.axisY=f},e.prototype._dispatchEvent=function(t,e,o){var r=t._eventCoordinates(e),i=new ee(r.x,r.y),n=this.pointPane(i),s=[],a=[];if(n){for(var p=n.axes,l=0;l<p.length;l++){var c=p[l];c.getValue?js(a,c.getValue(i)):js(s,c.getCategory(i))}0===s.length&&js(s,this.categoryAxis.getCategory(i)),s.length>0&&a.length>0&&t.trigger(o,{element:At(e),originalEvent:e,category:Fs(s),value:Fs(a)})}},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){Ba(this.options,t,e),Ba(this.originalOptions,t,e)},e}(Js);function Ba(t,e,o){X([].concat(e instanceof zo?t.categoryAxis:t.valueAxis)[e.axisIndex],o)}function La(t,e,o){return st(t,(function(t){return 0===o&&!t.categoryAxis||t.categoryAxis===e}))}Dt(Ra,{categoryAxis:{},valueAxis:{}}),X(Ra.prototype,ta);const ja=Ra;var Ia=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:Da,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}(I.Class);function Da(){this._defaultPrevented=!0}const za=Ia;function Va(t,e){var o=(e||"").toLowerCase(),r=t.event;return"none"===o&&!(r.ctrlKey||r.shiftKey||r.altKey)||r[o+"Key"]}function Ha(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 Na=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=Va(t,this.options.key),this._active},e.prototype.move=function(t){if(this._active){var e=this.axisRanges=this._panAxes(t,T).concat(this._panAxes(t,E));if(e.length)return this.axisRanges=e,Ha(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 s=o.axes,a=0;a<s.length;a++){var p=s[a];if(e===T&&!p.options.vertical||e===E&&p.options.vertical){var l=p.pan(r);l&&(l.limitRange=!0,n.push({axis:p,range:l}))}}return n},e}(I.Class);Na.prototype.options={key:"none",lock:"none"};const Fa=Na;var Ua=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){K(this._marquee,t)},e.prototype.start=function(t){if(Va(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=K(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,Ha(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 s=i[n],a=s.options.vertical;if((o!==T||a)&&(o!==E||!a)&&_t(s.axisIndex)){var p=s.pointsRange(t,e);p&&r.push({axis:s,range:p})}}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(),s=Math.min(o.x,r),a=Math.min(o.y,i),p=Math.abs(o.x-r),l=Math.abs(o.y-i);return n===T&&(s=e.x1,p=e.width()),n===E&&(a=e.y1,l=e.height()),r>e.x2&&(p=e.x2-o.x),r<e.x1&&(p=o.x-e.x1),i>e.y2&&(l=e.y2-o.y),i<e.y1&&(l=o.y-e.y1),{left:Math.max(s,e.x1),top:Math.max(a,e.y1),width:p,height:l}},e}(I.Class);Ua.prototype.options={key:"shift",lock:"none"};const Ga=Ua;var Wa=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 s=i[n],a=s.options.vertical;if((o!==T||a)&&(o!==E||!a)&&s.zoomRange){var p=Mt(this.options.rate,.01,.9),l=s.zoomRange(-t*p,e);l&&r.push({axis:s,range:l})}}return this.axisRanges=r,Ha(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}(I.Class);const Xa=Wa;var Ya=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 I.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?Oe(e):new ie},e.prototype.renderVisual=function(){this.addVisual()},e.prototype.createVisual=function(){},e}(de);const qa=Ya;var Qa=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 ke({vertical:!1,wrap:!1,align:a,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=I.drawing.Path.fromRect(this.container.box.toRect(),{fill:{color:O,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:At(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 Za=Qa;var Ka="horizontal",Ja="custom",$a=function(t){function e(e,o){void 0===o&&(o={}),t.call(this,e),this.chartService=o,ct(this.options.position,[A,C,s,g,Ja])||(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=a;e===Ja?r=g:ct(e,[A,s])?(r="start"===o?g:"end"===o?C:a,i=e):o&&("start"===o?i=A:"end"===o&&(i=s)),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 qa({vertical:o,spacing:e.spacing,rtl:t.rtl},t),i=e.items;e.reverse&&(i=i.slice(0).reverse());for(var n=i.length,s=0;s<n;s++){var a=i[s];r.append(new Za(X({},{markers:e.markers,labels:e.labels,rtl:t.rtl},e.item,a)))}r.render(),this.itemsContainer.append(r)},e.prototype.isVertical=function(){var t=this.options,e=t.orientation,o=t.position;return o===Ja&&e!==Ka||(_t(e)?e!==Ka: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===Ja?(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,a=r===A||r===s?T:E,p=this.isVertical(),l=t.clone(),c=t.clone();r!==g&&r!==C||(c.y1=l.y1=0),p&&n?(c.y2=c.y1+n,c.align(l,E,o.options.vAlign)):!p&&i&&(c.x2=c.x1+i,c.align(l,T,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[a+1]=t[a+1],h[a+2]=t[a+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,s=e.height,a=this.isVertical(),p=t.clone();a&&s?p.y2=p.y1+s:!a&&n&&(p.x2=p.x1+n),o.reflow(p),p=o.box,o.reflow(new ie(r,i,r+p.width(),i+p.height()))},e.prototype.renderVisual=function(){this.hasItems()&&t.prototype.renderVisual.call(this)},e.prototype.createLegendTitle=function(t){var e=X({},{color:n,position:A,align:a},t),o=e.text;if(t&&!1!==t.visible){if(_t(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 ke({vertical:!0,wrap:!1}),this.container.append(this.layout)},e.prototype.hasTitle=function(){return Boolean(this.options.title&&!1!==this.options.title.visible)},e.prototype.appendTitleLayoutContent=function(){this.options.title.position===s?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))},e}(de);Dt($a,{position:C,items:[],offsetX:0,offsetY:0,margin:J(5),padding:J(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:a}});const tp=$a;var ep=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],s=0;s<i.length;s++){var a=i[s];if((r=Vs(t,a.seriesTypes)).length>0){n=a;break}}return new n.type(r,e,o)},e}(I.Class);ep.current=new ep;const op=ep;function rp(t){var e=document.createElement("div");return t&&(e.className=t),e}function ip(t){for(var e=t;e&&!at(e,"k-handle");)e=e.parentNode;return e}var np=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 Yo,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=rp("k-selector k-pointer-events-none");K(e,{top:t.offset.top,left:t.offset.left,width:t.width,height:t.height,direction:"ltr"});var o=this.selection=rp("k-selection k-pointer-events-none");this.leftMask=rp("k-mask k-pointer-events-none"),this.rightMask=rp("k-mask k-pointer-events-none"),e.appendChild(this.leftMask),e.appendChild(this.rightMask),e.appendChild(o);var r=this.body=rp("k-selection-bg k-pointer-events-none");o.appendChild(r);var i=this.leftHandle=rp("k-handle k-left-handle k-pointer-events-auto"),n=this.rightHandle=rp("k-handle k-right-handle k-pointer-events-auto");i.appendChild(rp()),n.appendChild(rp()),o.appendChild(i),o.appendChild(n),this.chartElement.appendChild(e);var s=K(o,["borderLeftWidth","borderRightWidth","height"]),a=K(i,"height").height,p=K(n,"height").height;t.selection={border:{left:s.borderLeftWidth,right:s.borderRightWidth}},K(i,{top:(s.height-a)/2}),K(n,{top:(s.height-p)/2}),e.style.cssText=e.style.cssText},e.prototype.bindEvents=function(){var t;!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),bt(this.chartElement,((t={})[Qi]=this._mousewheelHandler,t))),this._domEvents=Je.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=K(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&&(Bt(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=At(t);if(!this._state&&o){var r=St(t);if(this._pointInPane(r.x,r.y)){var i=ip(o),n=this.body.getBoundingClientRect(),s=!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:s,range:{from:this._index(e.from),to:this._index(e.to)}};var a=this._rangeEventArgs({from:this._index(e.from),to:this._index(e.to)});this.trigger(Hi,a)&&(this._state=null)}}},e.prototype._press=function(t){var e;(e=this._state?this._state.moveTarget:ip(At(t)))&&B(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,s=o.moveTarget,a=i.options.reverse,p=this._index(r.from),l=this._index(r.to),c=this._index(r.min),h=this._index(r.max),u=o.startLocation-t.x.location,d=n.from,f=n.to,v=n.to-n.from,y=K(this.wrapper,"width").width/(i.categoriesCount()-1),g=Math.round(u/y)*(a?-1:1);if(s||o.inBody){var m=s&&at(s,"k-left-handle"),x=s&&at(s,"k-right-handle");o.inBody?(n.from=Math.min(Math.max(c,p-g),h-v),n.to=Math.min(n.from+v,h)):m&&!a||x&&a?(n.from=Math.min(Math.max(c,p-g),h-1),n.to=Math.max(n.from+1,n.to)):(m&&a||x&&!a)&&(n.to=Math.min(Math.max(c+1,l-g),h),n.from=Math.min(n.to-1,n.from)),n.from===d&&n.to===f||(this.move(n.from,n.to),this.trigger(Ni,this._rangeEventArgs(n)))}}},e.prototype._end=function(){if(this._state){var t=this._state.moveTarget;t&&j(t,"k-handle-active");var e=this._state.range;this.set(e.from,e.to),this.trigger(Fi,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),s=this._index(e.to),a=this._index(e.min),p=this._index(e.max),l=s-n,c=n+l/2,h={},u=3===t.event.which,d=Math.round(c-i);this._state||u||(this.chart._unsetActivePoint(),o.options.justified||d--,h.from=Math.min(Math.max(a,n-d),p-l),h.to=Math.min(h.from+l,p),this._start(t),this._state&&(this._state.range=h,this.trigger(Ni,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(Ni,{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(Hi,r)?this._state=null:t.preventDefault()}},e.prototype._gestureend=function(){this._state&&(this.trigger(Fi,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,s=r.range,a=o._toModelCoordinates(t.touches[0].x.location).x,p=o._toModelCoordinates(t.touches[1].x.location).x,l=Math.min(a,p),c=Math.max(a,p);t.preventDefault(),s.from=n.pointCategoryIndex(new ee(l))||i.min,s.to=n.pointCategoryIndex(new ee(c))||i.max,this.move(s.from,s.to),this.trigger(Ni,this._rangeEventArgs(s))}},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,s=o.selection.border,a=r?e:t,p=r?t:e,l="x"+(r?2:1),c=this._slot(a),h=Rt(c[l]-i.left+n.left);K(this.leftMask,{width:h}),K(this.selection,{left:h}),c=this._slot(p);var u=Rt(o.width-(c[l]-i.left+n.left));K(this.rightMask,{width:u});var d=o.width-u;d!==o.width&&(d+=s.right),K(this.rightMask,{left:d}),K(this.selection,{width:Math.max(o.width-(h+u)-s.right,0)})},e.prototype.set=function(t,e){var o=this.options,r=this._index(o.min),i=this._index(o.max),n=Mt(this._index(t),r,i),s=Mt(this._index(e),n+1,i);o.visible&&this.move(n,s),o.from=this._value(n),o.to=this._value(s)},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),s=this._index(e.to),a={from:n,to:s},p=X({},a);if(this._state&&(a=this._state.range),i!==C&&(a.from=Mt(Mt(n-t,0,s-1),o,r)),i!==g&&(a.to=Mt(Mt(s+t,a.from+1,r),o,r)),a.from!==p.from||a.to!==p.to)return this.set(a.from,a.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),s=this._index(o.to),a={from:n,to:s},p=X({},a),l=this.categoryAxis.options.reverse,c=T+(l?"2":"1"),h=this.categoryAxis.lineBox(),u=Math.abs(h[c]-e[T]),d=h.width(),f=Rt(u/d,2),v=Rt(f*t),y=Rt((1-f)*t);if(this._state&&(a=this._state.range),a.from=Mt(Mt(n-v,0,s-1),r,i),a.to=Mt(Mt(s+y,a.from+1,i),r,i),a.from!==p.from||a.to!==p.to)return this.set(a.from,a.to),!0},e.prototype.trigger=function(t,e){return(this.observer||this.chart).trigger(t,e)},e}(I.Class);Dt(np,{visible:!0,mousewheel:{zoom:"both"},min:x,max:m});const sp=np;var ap=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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}(Ss);const pp=ap;var lp=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=st(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}(Ss);Dt(lp,{categoryFormat:"{0:d}"});const cp=lp;var hp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.element,e=this.options;if(t.bbox()){this.origin=e.origin;var o=e.vertical?E:T,r=this.fromScale=new I.geometry.Point(1,1);r[o]=Nr,t.transform(I.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(I.geometry.transform().scale(e,o,this.origin))},e.prototype.abort=function(){t.prototype.abort.call(this),this.element.transform(null)},e}(I.drawing.Animation);Dt(hp,{duration:zr}),I.drawing.AnimationFactory.current.register(Kr,hp);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.setup=function(){var t=this.center=this.element.bbox().center();this.element.transform(I.geometry.transform().scale(Nr,Nr,t))},e.prototype.step=function(t){this.element.transform(I.geometry.transform().scale(t,t,this.center))},e}(I.drawing.Animation);Dt(up,{easing:"easeOutElastic"}),I.drawing.AnimationFactory.current.register($r,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.setup=function(){this.fadeTo=this.element.opacity(),this.element.opacity(0)},e.prototype.step=function(t){this.element.opacity(t*this.fadeTo)},e}(I.drawing.Animation);Dt(dp,{duration:200,easing:"linear"}),I.drawing.AnimationFactory.current.register(Vr,dp);var fp=function(t){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(I.geometry.transform().scale(Nr,Nr,this.options.center))},e.prototype.step=function(t){this.element.transform(I.geometry.transform().scale(t,t,this.options.center))},e}(I.drawing.Animation);Dt(fp,{easing:"easeOutElastic",duration:zr}),I.drawing.AnimationFactory.current.register(li,fp);const vp=fp;var yp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.createSegment=function(t,e,o){return new(e.style===qr?bn:dn)(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 hs(o.x)||(o.x=0),hs(o.y)||(o.y=0),o}},e}(ds);X(yp.prototype,wn);const gp=yp;var mp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new zn,this.yAxisRangeTracker=new zn},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 s=e.filterVisibleSeries(n);s&&(e.createScatterChart(Vs(s,xi),i),e.createScatterLineChart(Vs(s,bi),i),e.createBubbleChart(Vs(s,$r),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=st([].concat(e.xAxis),(function(t){return t.name===o}))[0],i=t.yAxis,n=st([].concat(e.yAxis),(function(t){return t.name===i}))[0],s=(e.panes||[{}])[0].name||"default";return(r||{}).pane||(n||{}).pane||s},e.prototype.createScatterChart=function(t,e){t.length>0&&this.appendChart(new ds(this,{series:t,clip:e.options.clip}),e)},e.prototype.createScatterLineChart=function(t,e){t.length>0&&this.appendChart(new gp(this,{series:t,clip:e.options.clip}),e)},e.prototype.createBubbleChart=function(t,e){t.length>0&&this.appendChart(new gs(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,s=e?this.yAxisRangeTracker:this.xAxisRangeTracker,a=X({reverse:!e&&this.chartService.rtl},t,{vertical:e}),p=zs(a.type,Wi),l=s.query(),c=p?{min:.1,max:1}:{min:0,max:1},u=s.query(i)||l||c,d=[a.min,a.max],f=this.series,v=0;v<f.length;v++){var y=f[v],g=y[e?"yAxis":"xAxis"];if(g===a.name||0===o&&!g){var m=Br.current.bindPoint(y,0).valueFields;d.push(m[e?"y":"x"]);break}}0===o&&l&&(u.min=Math.min(u.min,l.min),u.max=Math.max(u.max,l.max));for(var x=0;x<d.length;x++)if(d[x]instanceof Date){r=!0;break}var b=new(zs(a.type,h)||!a.type&&r?or:p?ar:tr)(u.min,u.max,a,this.chartService);if(b.axisIndex=o,i){if(n[i])throw new Error((e?"Y":"X")+" axis with name "+i+" is already defined");n[i]=b}return this.appendAxis(b),b},e.prototype.createAxes=function(t){for(var e=this,o=this.options,r=[].concat(o.xAxis),i=[],n=[].concat(o.yAxis),s=[],a=0;a<r.length;a++)ct(e.findPane(r[a].pane),t)&&i.push(e.createXYAxis(r[a],!1,a));for(var p=0;p<n.length;p++)ct(e.findPane(n[p].pane),t)&&s.push(e.createXYAxis(n[p],!0,p));this.axisX=this.axisX||i[0],this.axisY=this.axisY||s[0]},e.prototype._dispatchEvent=function(t,e,o){for(var r=t._eventCoordinates(e),i=new ee(r.x,r.y),n=this.axes,s=n.length,a=[],p=[],l=0;l<s;l++){var c=n[l],h=c.options.vertical?p:a,u=c.getValue(i);null!==u&&h.push(u)}a.length>0&&p.length>0&&t.trigger(o,{element:At(e),originalEvent:e,x:Fs(a),y:Fs(p)})},e.prototype.updateAxisOptions=function(t,e){var o=t.options.vertical,r=this.groupAxes(this.panes),i=(o?r.y:r.x).indexOf(t);xp(this.options,i,o,e),xp(this.originalOptions,i,o,e)},e}(Js);function xp(t,e,o,r){X([].concat(o?t.yAxis:t.xAxis)[e],r)}Dt(mp,{xAxis:{},yAxis:{}}),X(mp.prototype,ta);const bp=mp;var _p=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===a||t.position===Yi)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:a,vAlign:"",animation:{type:Vr,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,s=e.box.height(),p=e.box.width();if(t.position===a)o.radius=Math.abs((o.radius-s)/2)+s,n=o.point(i),e.reflow(new ie(n.x,n.y-s/2,n.x,n.y));else if(t.position===Yi)o.radius=o.radius-s/2,n=o.point(i),e.reflow(new ie(n.x,n.y-s/2,n.x,n.y));else{var l;(n=o.clone().expand(r).point(i)).x>=o.center.x?(l=n.x+p,e.orientation=C):(l=n.x-p,e.orientation=g),e.reflow(new ie(l,n.y-s,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 I.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 I.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,s={color:n,opacity:o.opacity},a=this.createSegment(e,X({fill:s,stroke:{opacity:o.opacity},zIndex:o.zIndex},i));t.append(a),Nn(o)&&t.append(this.createGradientOverlay(a,{baseColor:n,fallbackFill:s},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 I.drawing.Circle(new I.geometry.Circle(new I.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 I.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=Rt(Math.sin(e),d),r=Rt(Math.cos(e),d),{horizontal:Math.abs(o)>Cp?a:r<0?C:g,vertical:Math.abs(o)<wp?a:o<0?s:A})}},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}(de),wp=Rt(Et(30),d),Cp=Rt(Et(60),d);Dt(_p,{color:O,overlay:{gradient:"roundedBevel"},border:{width:.5},labels:{visible:!1,distance:35,font:u,margin:J(.5),align:p,zIndex:1,position:qi},animation:{type:li},highlight:{visible:!0,border:{width:1}},visible:!0}),X(_p.prototype,pn);const kp=_p,Sp={createLegendItem:function(t,e,o){var r=this.options.legend||{},i=r.labels||{},n=r.inactiveItems||{},s=n.labels||{};if(o&&!1!==o.visibleInLegend){var a,p,l=!1!==o.visible,c=l?ot(i):ot(s)||ot(i),h=o.category;c&&(h=c({text:h,series:o.series,dataItem:o.dataItem,percentage:o.percentage,value:t})),l?(a={},p=e.color):(a={color:s.color,font:s.font},p=(n.markers||{}).color),hs(h)&&""!==h&&this.legendItems.push({active:l,pointIndex:o.index,text:h,series:o.series,markerColor:p,labels:a})}}};var Ap=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,s=0;s<n;s++){var p=i[s],l=p.data,c=Ds(p),h=c.total,u=c.points,d=c.count,f=360/h,v=void 0;isFinite(f)||(v=360/d);var y=void 0;y=_t(p.startAngle)?p.startAngle:e.startAngle,s!==n-1&&p.labels.position===qi&&(p.labels.position=a);for(var g=0;g<u.length;g++){var m=u[g];if(m){var x=m.fields,b=m.value,_=m.visible,w=0!==b?v||b*f:0,C=1!==l.length&&Boolean(x.explode);F(p.color)||(p.color=x.color||o[g%r]),t(b,new ae(null,0,0,y,w),{owner:this,category:_t(x.category)?x.category:"",index:g,series:p,seriesIx:s,dataItem:l[g],percentage:0!==h?b/h:0,explode:C,visibleInLegend:x.visibleInLegend,visible:_,zIndex:n-s,animationDelay:this.animationDelay(g,s,n)}),!1!==_&&(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 kp(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,s=t.clone(),a=Math.min(s.width(),s.height()),p=a/2,l=a-.85*a,c=new ie(s.x1,s.y1,s.x1+a,s.y1+a),h=c.center(),u=s.center(),d=o.series.length,f=[],v=[],y=Lt(o.padding,l);this.targetBox=t,y=y>p-5?p-5:y,c.translate(u.x-h.x,u.y-h.y);for(var g=p-y,m=new ee(g+c.x1+y,g+c.y1+y),x=0;x<n;x++){var b=r[x],_=b.sector,w=b.seriesIx;if(_.radius=g,_.center=m,i.length){var k=i[w];_.innerRadius=k.innerRadius,_.radius=k.radius}w===d-1&&b.explode&&(_.center=_.clone().setRadius(.15*_.radius).point(_.middle())),b.reflow(c);var S=b.label;S&&S.options.position===qi&&w===d-1&&(S.orientation===C?v.push(S):f.push(S))}f.length>0&&(f.sort(this.labelComparator(!0)),this.leftLabelsReflow(f)),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=Ot(this.points),o=e.sector,r=t.length-1,i=o.radius+e.options.labels.distance,n=[],s=t[0].box,a=Rt(s.y1-(o.center.y-i-s.height()-s.height()/2));n.push(a);for(var p=0;p<r;p++){var l=t[p+1].box;s=t[p].box,a=Rt(l.y1-s.y2),n.push(a)}return a=Rt(o.center.y+i-t[r].box.y2-t[r].box.height()/2),n.push(a),n},e.prototype.distributeLabels=function(t,e){for(var o,r,i,n=t.length,s=0;s<n;s++)for(i=-t[s],o=r=s;i>0&&(o>=0||r<n);)i=this._takeDistance(t,s,--o,i),i=this._takeDistance(t,s,++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=Ot(this.points),i=r.sector,n=r.options.labels,s=e.length,a=n.distance,l=i.center.y-(i.radius+a)-e[0].box.height();t[0]+=2;for(var c=0;c<s;c++){var h=e[c],u=h.box;l+=t[c],o=this.hAlignLabel(u.x2,i.clone().expand(a),l,l+u.height(),h.orientation===C),h.orientation===C?(n.align!==p&&(o=i.radius+i.center.x+a),h.reflow(new ie(o+u.width(),l,o,l))):(n.align!==p&&(o=i.center.x-i.radius-a),h.reflow(new ie(o-u.width(),l,o,l))),l+=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 s=r[n],a=s.sector,p=s.label,l=a.middle(),c=(s.options.connectors||{}).color||o.color;if(p){var h=new I.drawing.Path({stroke:{color:c,width:o.width},animation:{type:Vr,delay:s.animationDelay}});if(p.options.position===qi){var u=p.box,d=a.center,f=a.point(l),v=new ee(u.x1,u.center().y),y=void 0,g=void 0,m=void 0;f=a.clone().expand(o.padding).point(l),h.moveTo(f.x,f.y),p.orientation===C?(m=Pp(d,f,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,a.center,a.radius+4)||m.x<a.center.x?(y=a.center.x+a.radius+4,s.options.labels.align!==oi?y<v.x?h.lineTo(y,f.y):h.lineTo(f.x+8,f.y):h.lineTo(y,f.y),h.lineTo(v.x,g.y)):(m.y=g.y,h.lineTo(m.x,m.y))):(m=Pp(d,f,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,a.center,a.radius+4)||m.x>a.center.x?(y=a.center.x-a.radius-4,s.options.labels.align!==oi?y>v.x?h.lineTo(y,f.y):h.lineTo(f.x-8,f.y):h.lineTo(y,f.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),Vt(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(I.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,s=e.center,a=s.x,p=s.y,l=Math.min(Math.abs(p-o),Math.abs(p-r));return l>n?t:a+Math.sqrt(n*n-l*l)*(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}(de);function Pp(t,e,o,r){var i,n=(r.x-o.x)*(t.y-o.y)-(r.y-o.y)*(t.x-o.x),s=(r.y-o.y)*(e.x-t.x)-(r.x-o.x)*(e.y-t.y);if(0!==s){var a=n/s;i=new ee(t.x+a*(e.x-t.x),t.y+a*(e.y-t.y))}return i}Dt(Ap,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),X(Ap.prototype,Sp),Ap.prototype.isStackRoot=!0;const Op=Ap;var Mp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createPieChart(this.series)},e.prototype.createPieChart=function(t){var e=t[0],o=new Op(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),xt(this.options.legend.items,e.legendItems)},e}(Js);const Tp=Mp;var Ep=function(t){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===a){r.radius-=(r.radius-r.innerRadius)/2;var s=r.point(i);o.reflow(new ie(s.x,s.y-n/2,s.x,s.y))}else t.prototype.reflowLabel.call(this)}},e.prototype.createSegment=function(t,e){return he.current.createRing(t,e)},e}(kp);Dt(Ep,{overlay:{gradient:"roundedGlass"},labels:{position:a},animation:{type:li}}),X(Ep.prototype,pn);const Rp=Ep;var Bp=function(t){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 Rp(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()),s=n/2,a=n-.85*n,p=r.series,l=p.length,c=Lt(r.padding,a),h=s-(c=c>s-5?s-5:c),u=0,d=0;d<l;d++){var f=p[d];0===d&&_t(f.holeSize)&&(o=f.holeSize,h-=f.holeSize),_t(f.size)?h-=f.size:u++,_t(f.margin)&&d!==l-1&&(h-=f.margin)}_t(o)||(h-=o=(s-c)/(l+.75)*.75);var v,y=o,g=0;this.seriesConfigs=[];for(var m=0;m<l;m++){var x=p[m];v=(y+=g)+Lt(x.size,h/u),this.seriesConfigs.push({innerRadius:y,radius:v}),g=x.margin||0,y=v}t.prototype.reflow.call(this,e)},e.prototype.animationDelay=function(t,e,o){return 50*t+zr*(e+1)/(o+1)},e}(Op);Dt(Bp,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}});const Lp=Bp;var jp=function(t){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 Lp(this,{series:t,padding:e.padding,connectors:e.connectors,legend:this.options.legend});this.appendChart(o)},e}(Tp);const Ip=jp;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.initFields=function(){this.valueAxisRangeTracker=new zn},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=xr,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 s=new t(n.min,n.max,i,this.chartService);this.valueAxis=s,this.appendAxis(s)},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()),s=J(e.padding||{},n),p=i.clone().unpad(s),l=p.clone();l.y2=l.y1+Math.min(l.width(),l.height()),l.align(p,E,a);var c=l.clone().shrink(0,l.height()/2);r.reflow(l),o.reflow(c);var h=o.lineBox().height()-o.box.height();o.reflow(o.box.unpad({top:h})),this.axisBox=l,this.alignAxes(l)},e.prototype.backgroundBox=function(){return this.box},e.prototype.detachLabels=function(){},e}(Js);const zp=Dp;var Vp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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}(ds);Dt(Vp,{clip:!1});const Hp=Vp;var Np=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(gp);Np.prototype.pointSlot=Hp.prototype.pointSlot,Dt(Np,{clip:!1});const Fp=Np;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.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 _r(!1),r=this.points();r.push(e),(t=this._strokeSegments=o.process(r)).pop()}return t},e}(Ln);const Gp=Up;var Wp=function(t){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 I.geometry.Segment([e.x,e.y]);t.segments.unshift(o),t.segments.push(o)},e}(Tn);const Xp=Wp;var Yp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,o){return(e.line||{}).style===qr?new Gp(t,e,o):new Xp(t,e,o)},e.prototype.createMissingValue=function(t,e){var o;return hs(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(qp),this._hasMissingValuesGap())for(var e=0;e<t.length;e++){var o=t[e];o&&(hs(o.value.y)||"gap"!==this.seriesMissingValues(o.series)||delete t[e])}return t},e}(Fp);function qp(t,e){return t.value.x-e.value.x}const Qp=Yp;var Zp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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),Js.prototype.appendChart.call(this,t,e)},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createLineChart(Vs(t,[hi]),e),this.createScatterChart(Vs(t,[ui]),e),this.createAreaChart(Vs(t,[ci]),e)},e.prototype.createLineChart=function(t,e){if(0!==t.length){var o=new Fp(this,{series:t});this.appendChart(o,e)}},e.prototype.createScatterChart=function(t,e){if(0!==t.length){var o=new Hp(this,{series:t});this.appendChart(o,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var o=new Qp(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),s=this.axisY.getValue(i);null!==n&&null!==s&&t.trigger(o,{element:At(e),x:n,y:s})},e.prototype.createCrosshairs=function(){},e}(zp);Dt(Zp,{xAxis:{},yAxis:{}}),X(Zp.prototype,ta);const Kp=Zp;var Jp=function(t){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=Ot(r),s=Ot(n.linePoints),a=0===i.categoryIx,p=s.categoryIx===s.categoriesCount-1;a&&p&&Ot(r).linePoints.push(i)}}},e.prototype.createSegment=function(t,e,o){var r=new(e.style===qr?bn:dn)(t,e,o),i=this.seriesMissingValues(e);return t.length!==e.data.length&&i!==Wr||(r.options.closed=!0),r},e}(On);Dt(Jp,{clip:!1,limitPoints:!1});const $p=Jp;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.fillToAxes=function(){},e}(Ln);const el=tl;var ol=function(t){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}(Tn);const rl=ol;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.createSegment=function(t,e,o,r){var i,n,s,a=this.options.isStacked,p=(e.line||{}).style;return a&&o>0&&r&&(n=r.linePoints.slice(0),i=r),p===qr?(s=new el(t,e,o,i,n)).options.closed=!0:(t.push(t[0]),s=new rl(t,e,o,i,n)),s},e.prototype.seriesMissingValues=function(t){return t.missingValues||Gr},e}($p);const nl=il;var sl=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}(Rp);Dt(sl,{overlay:{gradient:"none"},labels:{distance:10}});const al=sl;var pl=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,s=n+r+i*(n-1),a=t.angle/s,p=t.startAngle+a*(r/2);this.forEach(o,(function(e){var o=t.clone();o.startAngle=p,o.angle=a,e.sector&&(o.radius=e.sector.radius),e.reflow(o),e.sector=o,p+=a+a*i}))},e}(de);Dt(pl,{gap:1,spacing:0});const ll=pl;var cl=function(t){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 s=i;s>=0&&s<r;s+=n){var a=o[s].sector;a.startAngle=t.startAngle,a.angle=t.angle}},e}(de);const hl=cl;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.pointType=function(){return al},e.prototype.clusterType=function(){return ll},e.prototype.stackType=function(){return hl},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}(Kn);ul.prototype.reflow=sn.prototype.reflow,Dt(ul,{clip:!1,limitPoints:!1,animation:{type:"pie"}});const dl=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.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(){ja.prototype.aggregateCategories.call(this,this.panes)},e.prototype.createCategoryAxesLabels=function(){ja.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(Vs(t,[di]),e),this.createLineChart(Vs(t,[vi]),e),this.createBarChart(Vs(t,[fi]),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 nl(this,this.chartOptions(t));this.appendChart(o,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var o=new $p(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 dl(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),s=this.valueAxis.getValue(i);null!==n&&null!==s&&t.trigger(o,{element:At(e),category:n,value:s})},e.prototype.createCrosshairs=function(){},e}(zp);X(fl.prototype,ta,{appendChart:ja.prototype.appendChart,aggregateSeries:ja.prototype.aggregateSeries,seriesSourcePoints:ja.prototype.seriesSourcePoints}),Dt(fl,{categoryAxis:{categories:[]},valueAxis:{}});const vl=fl;var yl=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 I.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 I.drawing.Path.fromPoints(this.points,t)},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=I.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}(de);Dt(yl,{color:O,border:{width:1}}),X(yl.prototype,pn);const gl=yl;var ml=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=Ds(r),s=n.total,a=n.points,p=0;p<a.length;p++){var l=a[p];if(l){var c=l.fields;F(r.color)||(r.color=c.color||o[p%o.length]),c=X({index:p,owner:t,series:r,dataItem:i[p],percentage:l.value/s},c,{visible:l.visible});var h=l.valueFields.value,u=t.createSegment(h,c),d=t.createLabel(h,c);u&&d&&u.append(d)}}},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 gl(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 s=ot(i),a={dataItem:r,value:t,percentage:e.percentage,category:e.category,series:o};s?n=s(a):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 p=new Ee(n,X({vAlign:i.position},i),a);return this.labels.push(p),p}},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!==a){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,s=i[0],a=s,p=0;p<i.length;p++)i[p].percentage>a.percentage&&(a=i[p]);for(var l=s.percentage/a.percentage*e,c=(e-l)/2,h=0,u=0;u<n;u++){var d=i[u].percentage,f=i[u+1],v=f?f.percentage:d,y=i[u].points=[],g=r.dynamicHeight?o*d:o/n,m=void 0;m=Mt(m=d?(e-l*(v/d))/2:v?0:e/2,0,e),y.push(new I.geometry.Point(t.x1+c,t.y1+h)),y.push(new I.geometry.Point(t.x1+e-c,t.y1+h)),y.push(new I.geometry.Point(t.x1+e-m,t.y1+g+h)),y.push(new I.geometry.Point(t.x1+m,t.y1+g+h)),c=m,h+=g+r.segmentSpacing,l=Mt(e-2*m,0,e)}},e.prototype.constantSlopeReflow=function(t,e,o){for(var r=this.options,i=this.points,n=i.length,s=r.neckRatio<=1,a=s?r.neckRatio*e:e,p=s?0:(e-e/r.neckRatio)/2,l=((s?e:e-2*p)-a)/2,c=0,h=0;h<n;h++){var u=i[h].points=[],d=i[h].percentage,f=r.dynamicHeight?l*d:l/n,v=r.dynamicHeight?o*d:o/n;u.push(new I.geometry.Point(t.x1+p,t.y1+c)),u.push(new I.geometry.Point(t.x1+e-p,t.y1+c)),u.push(new I.geometry.Point(t.x1+e-p-f,t.y1+v+c)),u.push(new I.geometry.Point(t.x1+p+f,t.y1+v+c)),p+=f,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),s=i.width();r.dynamicSlope?this.dynamicSlopeReflow(i,s,n):this.constantSlopeReflow(i,s,n);for(var a=0;a<o;a++)e[a].reflow(t)}},e}(de);Dt(ml,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:a,position:a,zIndex:1}}),X(ml.prototype,Sp);const xl=ml;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.render=function(){this.createFunnelChart(this.series)},e.prototype.createFunnelChart=function(t){var e=t[0],o=new xl(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),xt(this.options.legend.items,e.legendItems)},e}(Js);const _l=bl;var wl=function(t){function e(e,o){t.call(this),this.options=o,this.color=o.color||O,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:a,vAlign:a,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")===k,i=Lt(e.width,r?1:0),n=Math.round(i/2);if(t.size){var s=o.center();o.size.width=o.size.height=t.size,o.origin.x=Math.round(s.x-o.size.width/2),o.origin.y=Math.round(s.y-o.size.height/2)}return o.size.width-=i,o.size.height-=i,o.origin.y+=n+.5,o.origin.x+=n+.5,Oe(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:a,vertical:s}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.unclipElements=function(){},e.prototype.pointData=function(){return{x:this.value.x,y:this.value.y,value:this.value.value,dataItem:this.dataItem,series:this.series}},e}(de);X(wl.prototype,pn),X(wl.prototype,ln),wl.prototype.defaults={markers:{type:"rect",borderRadius:4,border:{color:"transparent"}},padding:{top:1},labels:{visible:!1,padding:3},opacity:1,notes:{label:{}}};const Cl=wl;var kl=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:x},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;_t(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&&_t(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"]},s=this._evalSeries[i];_t(s)||(this._evalSeries[i]=s=on(t,{},n,!0));var a=t;return s&&on(a=X({},t),{value:e,series:r,dataItem:o.dataItem,min:this.valueRange.min,max:this.valueRange.max},n),a},e.prototype.pointType=function(){return Cl},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),F(o.color)?i=r.color:0!==this.valueRange.max&&(i=function(t,e){void 0===e&&(e=.05);var o=(0,I.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 Cl(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 s=o[i++],a=e.seriesAxes(n.series),p=a.xAxis,l=a.yAxis,c=p.categoryIndex(t.x),h=l.categoryIndex(t.y),u=p.getSlot(c,c,r),d=l.getSlot(h,h,r);if(s)if(u&&d){var f=e.pointSlot(u,d);s.reflow(f)}else s.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),s=n.xAxis,a=n.yAxis,p=s.currentRangeIndices(),l=a.currentRangeIndices(),c=0;c<i.data.length;c++){var h=e._bindPoint(i,r,c),u=h.valueFields,d=h.fields,f=s.totalIndex(u.x),v=a.totalIndex(u.y),y=p.min<=f&&f<=p.max,g=l.min<=v&&v<=l.max;y&&g&&t(u,X({pointIx:c,series:i,seriesIx:r,dataItem:i.data[c],owner:e},d))}},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}(de);Dt(kl,{series:[],tooltip:{format:"{0}, {1}: {2}"},labels:{format:"{2}"},clip:!0}),X(kl.prototype,{_bindPoint:sn.prototype._bindPoint});const Sl=kl;var Al=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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,s=i.yAxis,a=Kt(n.categories||[]),p=Kt(s.categories||[]),l=0;l<r.length;l++){var c=Br.current.bindPoint(o,l).valueFields,h=c.x,u=c.y;a.has(h)||a.add(h),p.has(u)||p.add(u)}n.categories=a.values(),s.categories=p.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 s=e.filterVisibleSeries(n);s&&e.createHeatmapChart(Vs(s,[ni]),i)}},e.prototype.createHeatmapChart=function(t,e){var o=new Sl(this,{series:t});this.appendChart(o,e)},e.prototype.seriesPaneName=function(t){var e=this.options,o=t.xAxis,r=st([].concat(e.xAxis),(function(t){return t.name===o}))[0],i=t.yAxis,n=st([].concat(e.yAxis),(function(t){return t.name===i}))[0],s=(e.panes||[{}])[0].name||"default";return(r||{}).pane||(n||{}).pane||s},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 s=[].concat(r.yAxis),a=t.yAxis;if(o=a?s.find((function(t){return t.name===a})):s[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 "+a);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,s=Object.assign({axisCrossingValue:0},t,{vertical:e,reverse:e||this.chartService.rtl?!t.reverse:t.reverse,justified:!1}),a=s.categories?s.categories[0]:null,p=[s.min,s.max,a],l=this.series,c=0;c<l.length;c++){var u=l[c],d=u[e?"yAxis":"xAxis"];if(d===s.name||0===o&&!d){var f=Br.current.bindPoint(u,0).valueFields;p.push(f[e?"y":"x"]);break}}for(var v=0;v<p.length;v++)if(p[v]instanceof Date){r=!0;break}var y=new(zs(s.type,h)||!s.type&&r?Yo:zo)(s,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),s=[],a=0;a<r.length;a++)ct(e.findPane(r[a].pane),t)&&i.push(e.createXYAxis(r[a],!1,a));for(var p=0;p<n.length;p++)ct(e.findPane(n[p].pane),t)&&s.push(e.createXYAxis(n[p],!0,p));this.axisX=this.axisX||i[0],this.axisY=this.axisY||s[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,s=n.length,a=[],p=[],l=0;l<s;l++){var c=n[l];js(c.options.vertical?p:a,c.getCategory(i))}a.length>0&&p.length>0&&t.trigger(o,{element:At(e),originalEvent:e,x:Fs(a),y:Fs(p)})},e.prototype.updateAxisOptions=function(t,e){var o=t.options.vertical,r=this.groupAxes(this.panes),i=(o?r.y:r.x).indexOf(t);Pl(this.options,i,o,e),Pl(this.originalOptions,i,o,e)},e.prototype.crosshairOptions=function(t){return Object.assign({},t.options.crosshair,{zIndex:0})},e}(Js);function Pl(t,e,o,r){X([].concat(o?t.yAxis:t.xAxis)[e],r)}Dt(Al,{xAxis:{},yAxis:{}}),X(Al.prototype,ta);const Ol=Al;var Ml="color",Tl="first",El="max",Rl="min",Bl="noteText";op.current.register(ja,[Kr,oi,ai,ki,Zr,_i,ei,pi,ti,Ci,Jr,wi,mi,gi,Ai,si,yi,Si]),op.current.register(bp,[xi,bi,$r]),op.current.register(Tp,[li]),op.current.register(Ip,[ri]),op.current.register(_l,[ii]),op.current.register(Kp,[ci,hi,ui]),op.current.register(vl,[di,fi,vi]),op.current.register(Ol,[ni]),Br.current.register([Kr,oi,ai,ki,Zr,_i],[P],[Xi,Ml,Bl,Fr,Ur,Zi]),Br.current.register([mi,gi,yi,Si],["from","to"],[Xi,Ml,Bl,Zi]),Br.current.register([Ai,si],[P],[Xi,Ml,Bl,"summary",Zi]),Br.current.register([ci,hi,ui],[T,E],[Ml,Zi]),Br.current.register([di,fi,vi],[P],[Ml,Zi]),Br.current.register([ii],[P],[Xi,Ml,"visibleInLegend","visible",Zi]),ia.current.register([Kr,oi,ai,ki,Zr,_i,Ai,si],{value:El,color:Tl,noteText:Tl,errorLow:Rl,errorHigh:El}),ia.current.register([mi,gi,yi,Si],{from:Rl,to:El,color:Tl,noteText:Tl}),ia.current.register([di,fi,vi],{value:El,color:Tl}),Br.current.register([xi,bi,$r],[T,E],[Ml,Bl,"xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Br.current.register([$r],[T,E,"size"],[Ml,Xi,Bl]),Br.current.register([ni],[T,E,P],[Ml,Bl]),Br.current.register([ei,pi],["open","high","low","close"],[Xi,Ml,"downColor",Bl]),ia.current.register([ei,pi],{open:El,high:El,low:Rl,close:El,color:Tl,downColor:Tl,noteText:Tl}),Br.current.register([Jr,wi],["lower","q1","median","q3","upper","mean","outliers"],[Xi,Ml,Bl,Zi]),ia.current.register([Jr,wi],{lower:El,q1:El,median:El,q3:El,upper:El,mean:El,outliers:Tl,color:Tl,noteText:Tl}),Br.current.register([ti,Ci],["current","target"],[Xi,Ml,"visibleInLegend",Bl,Zi]),ia.current.register([ti,Ci],{current:El,target:El,color:Tl,noteText:Tl}),Br.current.register([li,ri],[P],[Xi,Ml,"explode","visibleInLegend","visible",Zi]);var Ll=[Xi,P,T,E],jl="mousemove",Il="contextmenu",Dl="mouseleave",zl=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 s=X({},this.options,o);this._originalOptions=X({},s),this._theme=r,this._initTheme(s,r),this._initHandlers(),this._initSurface(),this.bindCategories(),It.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){B(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=Ll,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&&Vt(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 kr(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 Ar(e[o])},e.prototype.findPaneByIndex=function(t){var e=this._plotArea.panes;if(e[t])return new Ar(e[t])},e.prototype.plotArea=function(){return new Pr(this._plotArea)},e.prototype.toggleHighlight=function(t,e){var o,r,i,n=this._plotArea,s=(n.srcSeries||n.series||[])[0];F(e)?o=n.filterPoints(e):(Y(e)?(r=e.series,i=e.category):r=i=e,o=s.type===ri?Vl(n.pointsBySeriesName(r),i):s.type===li||s.type===ii?Vl((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(F(t)?(e=n.findPoint(t))&&r&&(o=e.categoryIx):r&&_t(t)&&(o=n.categoryAxis.categoryIndex(t)),r){if(o>=0){var s=this._plotArea.pointsByCategoryIndex(o);i.showAt(s)}}else e&&i.show(e)},e.prototype.hideTooltip=function(){this._tooltip.hide()},e.prototype._initSurface=function(){var t=this.surface,e=this._surfaceWrap(),o=this.options.chartArea||{};o.width&&kt(e,{width:o.width}),o.height&&kt(e,{height:o.height}),t&&t.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=I.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 za,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),Gl(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}});Ul(this._originalOptions,r),this.options=X({},this._originalOptions,r),this._initTheme(this.options,this._theme),this.bindCategories();var i=this._getModel();i.renderVisual(),Gl(i._plotArea.panes),e=i.visual,this.options=o}else e=this.surface.exportVisual();return e},e.prototype._sharedTooltip=function(){return this._plotArea instanceof ja&&this.options.tooltip&&this.options.tooltip.shared},e.prototype._createPannable=function(){var t=this.options;!1!==t.pannable&&(this._pannable=new Fa(this._plotArea,t.pannable))},e.prototype._createZoomSelection=function(){var t=this.options.zoomable,e=(t||{}).selection;!1!==t&&!1!==e&&(this._zoomSelection=new Ga(this,e))},e.prototype._createMousewheelZoom=function(){var t=this.options.zoomable,e=(t||{}).mousewheel;!1!==t&&!1!==e&&(this._mousewheelZoom=new Xa(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([Ii,Li,ji])),n=(!1===e||!1===r)&&!this.requiresHandlers([Di,zi,Vi]),s=this.element;this._dragZoomEnabled&&i&&n?(s.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):this._dragZoomEnabled||i&&n||(s.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!i,!n)},e.prototype._toggleDomEvents=function(t,e){var 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 pp(this.chartService,t)},e.prototype._createSharedTooltip=function(t){return new cp(this._plotArea,t)},e.prototype.applyDefaults=function(t,e){!function(t,e){var o,r,i,n=(e||{}).axisDefaults||{};function s(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 a=0;a<Ll.length;a++)o=Ll[a]+"Axis",r=t.axisDefaults||{},i=(i=[].concat(t[o])).map(s),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),s=e?X({},e.seriesDefaults):{},a=X({},s);Hl(n),Hl(a);for(var p=0;p<r;p++){var l=o[p].type||t.seriesDefaults.type,c=X({data:[]},a,s[l],{tooltip:t.tooltip},n,i[l]);o[p]._defaults=c,o[p]=X({},c,o[p]),o[p].data=o[p].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],s=i._defaults;i.color=i.color||n,s&&(s.color=s.color||n)}},e.prototype._getModel=function(){var t=this.options,e=this._createPlotArea(),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 tp(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 op.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 zo&&i.select&&!i.vertical){var n=r.range(),s=new sp(this,r,X({min:n.min,max:n.max},i.select));e.push(s)}}},e.prototype._selectStart=function(t){return this.trigger(Hi,t)},e.prototype._select=function(t){return this.trigger(Ni,t)},e.prototype._selectEnd=function(t){return this.trigger(Fi,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,I.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===Ui?e.anchor.point=this._toDocumentCoordinates(e.anchor.point):t===Ti?this._updateDrilldownPoint(e.point):t===Ei?this._resetDrilldownPoint():t===Oi&&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,bt(o,((t={})[Il]=this._clickHandler,t[Qi]=this._mousewheelHandler,t[Dl]=this._mouseleaveHandler,t)),this._shouldAttachMouseMove()&&bt(o,((e={})[jl]=this._mousemove,e)),this.domEvents=Je.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(Bi))},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(Vi,{}))},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:Nl(this._plotArea.axes),originalEvent:t};if(this._zooming||!this.trigger(Di,i)){var n=this._eventCoordinates(t);this._zooming||(this._zooming=!0),(i.axisRanges=e.updateRanges(r,n))&&!this.trigger(zi,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([Ii,Li,ji])&&this._startNavigation(t,e,Ii),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(Di,{axisRanges:Nl(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,s=0;s<n.length;s++){var a=n[s];if(a.options.name){var p=a.options.vertical?t.y:t.x,l=p.startLocation-p.location;0!==l&&(i[a.options.name]=a.translateRange(l))}}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(ji,{axisRanges:Nl(this._plotArea.axes),originalEvent:t}),this._suppressHover=!1,this.chartService.panning=!1):this._endNavigation(t,ji),this._zoomSelection){var o=this._zoomSelection.end(t);o&&!this.trigger(zi,{axisRanges:o,originalEvent:t})&&(this._zoomSelection.zoom(),this.trigger(Vi,{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:Nl(this._plotArea.axes),originalEvent:t};!this._zooming&&this.trigger(Di,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(zi,n)&&r.zoom(),this._mwTimeout=setTimeout((function(){e.trigger(Vi,n),e._zooming=!1,e.surface&&e.surface.resumeTracking()}),150))}else{var s=this._navState;if(s||this._startNavigation(t,i,Di)||(s=this._navState),s){var a=s.totalDelta||o;s.totalDelta=a+o;for(var p=this._navState.axes,l={},c=0;c<p.length;c++){var h=p[c],u=h.options.name;u&&(l[u]=h.scaleRange(-a*e._mousewheelZoomRate(),i))}this.trigger(zi,{delta:o,axisRanges:l,originalEvent:t}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._endNavigation(t,Vi)}),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 s=Nl(n);this.trigger(o,{axisRanges:s,originalEvent:t})?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:s,pane:i,axes:n})}},e.prototype._endNavigation=function(t,e){this._navState&&(this.trigger(e,{axisRanges:this._navState.axisRanges,originalEvent:t}),this._suppressHover=!1,this._navState=null)},e.prototype._getChartElement=function(t,e){var 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=K(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:Rt(t.x+e.left+o.left),top:Rt(t.y+e.top+o.top)}},e.prototype._toModelCoordinates=function(t,e){var o=this.element,r=Ct(o),i=this._elementPadding(),n=Ut(o).invert(),s=new I.geometry.Point(t-r.left-i.left,e-r.top-i.top).transform(n);return new ee(s.x,s.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 Js)}));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&&Br.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=Br.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],s=this._getDefaultOpacityForSeries(n),a=this._getInactiveOpacityForSeries(n);e||n===t.series?(n.opacity=s,n.line&&(n.line.opacity=s)):(n.defaultOpacity=s,n.opacity=a,n.line&&(n.line.opacity=a))}},e.prototype._applySeriesOpacity=function(t,e,o,r){for(var i=0;i<t.length;i++){var n=t[i],s=n.series||r;if(s&&(s.highlight||{}).visible&&n.visual){var a=r?r.opacity:n.series.opacity;(s!==e||o)&&n.visual.opacity(o?1:a)}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),bt(document,((e={})[jl]=this._mouseMoveTrackHandler,e)))},e.prototype._mouseMoveTracking=function(t){var e,o=this,r=o.options,i=o._tooltip,n=o._highlight,s=o._activePoint,a=this._eventCoordinates(t);if(this._plotArea.box.containsPoint(a)){if(s&&s.tooltipTracking&&s.series&&s.parent.getNearestPoint){var p=s.parent.getNearestPoint(a.x,a.y,s.seriesIx);p&&p!==s&&(this._activePoint=p,p.hover(this,t)||(X({},r.tooltip,p.options.tooltip).visible&&i.show(p),n.show(p)))}}else Bt(document,((e={})[jl]=this._mouseMoveTrackHandler,e)),this._unsetActivePoint(),this._mouseMoveTrackHandler=null,this._hideInactiveOpacity(s)},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(Bi))}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,s=r._plotArea.categoryAxis,a=r._tooltip,p=r._highlight;if(n.backgroundContainsPoint(t)){var l=s.pointCategoryIndex(t);if(l!==this._tooltipCategoryIx||!this._sharedHighlight&&o){var c=n.pointsByCategoryIndex(l),h=c.map((function(t){return t.eventArgs(e)})),u=h[0]||{};u.categoryPoints=h,c.length>0&&!this.trigger(Mi,u)?(i.visible&&a.showAt(c,t),p.show(c),this._sharedHighlight=!0):a.hide(),this._tooltipCategoryIx=l}else o&&this._sharedHighlight&&(p.hide(),a.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(p.hide(),a.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 lt,s=[],a=!1,p=0;p<i;p++){var l=r[p],c=l.categoryAxis===t.name||!l.categoryAxis&&0===e,h=l.data,u=h.length,d=l.categoryField&&c;if(a=d||a,d&&u>0)for(var f=(o=Ns(t,Er(l.categoryField,h[0])))?Hs:Er,v=0;v<u;v++){var y=h[v],g=f(l.categoryField,y,this.chartService.intl);!o&&n.get(g)||(s.push([g,y]),o||n.set(g,!0))}}if(s.length>0){o&&(s=function(t,e){void 0===e&&(e=Po);for(var o=function(t,e){void 0===e&&(e=Po);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],Ot(i))&&i.push(o[n]);return i}(s,(function(t,e){return Po(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,s=0;s<n;s++)o[s]=o[s]||[],o[s].push(i[s]);return o}(s);t.categories=m[0]}else a&&(t.categories=[])},e.prototype._isBindable=function(t){for(var e=Br.current.valueFields(t),o=!0,r=0;r<e.length;r++){var i=e[r];if(i===P?i="field":i+="Field",!_t(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,[li,ri,ii])?r.findPoint((function(o){return o.series.index===t&&o.index===e})):r.pointsBySeriesIndex(t),this._hasInactiveOpacity()&&n.visible&&o){var s=r.series.length>1,a=o.length?o[0]:o;this._displayInactiveOpacity(a,s,o)}else i.show(o)},e.prototype._shouldAttachMouseMove=function(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers([Ri,Bi])},e.prototype.updateMouseMoveHandler=function(){var t,e;Bt(this.element,((t={})[jl]=this._mousemove,t)),this._shouldAttachMouseMove()&&bt(this.element,((e={})[jl]=this._mousemove,e))},e.prototype.applyOptions=function(t,e){Ul(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,Bt(this.element,((t={})[Il]=this._clickHandler,t[Qi]=this._mousewheelHandler,t[jl]=this._mousemove,t[Dl]=this._mouseleaveHandler,t)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&Bt(document,((e={})[jl]=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}(I.Class);function Vl(t,e){if(t)for(var o=0;o<t.length;o++)if(t[o].category===e)return[t[o]]}function Hl(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 Nl(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 Fl=["data","categories"];function Ul(t,e){for(var o in e)if(!ct(o,Fl)&&e.hasOwnProperty(o)){var r=e[o],i=t[o];if(_t(i)){var n=null===r;n||!_t(r)?(delete t[o],n&&delete e[o]):i&&Y(r)&&Y(i)&&Ul(i,r)}}}function Gl(t){for(var e=0;e<t.length;e++)t[e].notifyRender()}Dt(zl,{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 Wl=zl;var Xl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._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}(cp);const Yl=Xl;var ql=[Kr,ti];function Ql(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 Zl(t,e){for(var o=0;o<t.length;o++)t[o].style.display=e[o]}function Kl(t){return V(t)?[t]:t}var Jl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._setElementClass=function(t){B(t,"k-sparkline")},e.prototype._initElement=function(e){t.prototype._initElement.call(this,e),this._initialWidth=Math.floor(kt(e).width)},e.prototype._resize=function(){var e=this.element,o=Ql(e.childNodes);this._initialWidth=Math.floor(kt(e).width),Zl(e.childNodes,o),t.prototype._resize.call(this)},e.prototype._modelOptions=function(){var t=this.options,e=this._surfaceWrap(),o=Ql(e.childNodes),r=document.createElement("span");r.innerHTML=" ",e.appendChild(r);var i=X({width:this._autoWidth,height:kt(e).height,transitions:t.transitions},t.chartArea,{inline:!0,align:!1});return kt(e,{width:i.width,height:i.height}),e.removeChild(r),Zl(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=J(e.chartArea.margin),r=t.charts,i=this._surfaceWrap(),n=0,s=0;s<r.length;s++){var a=r[s],p=(a.options.series||[])[0];if(p){if(p.type===Kr)return 150;if(p.type===ti)return 150;if(p.type===li)return kt(i).height;var l=a.categoryAxis;if(l){var c=l.categoriesCount()*(!a.options.isStacked&&ct(p.type,[oi,Ci])?a.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 Yl(this._plotArea,t)},e.normalizeOptions=function(t){var e=Kl(t);return(e=R(e)?{seriesDefaults:{data:e}}:X({},e)).series||(e.series=[{data:Kl(e.data)}]),X(e,{seriesDefaults:{type:e.type}}),(ct(e.series[0].type,ql)||ct(e.seriesDefaults.type,ql))&&(e=X({},{categoryAxis:{crosshair:{visible:!1}}},e)),e},e}(Wl);Dt(Jl,{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 $l=Jl;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(K(this.element,"opacity").opacity)},e.prototype.step=function(t){K(this.element,{opacity:String(ht(this._initialOpacity,0,t))})},e.prototype.abort=function(){t.prototype.abort.call(this),K(this.element,{display:"none",opacity:String(this._initialOpacity)})},e.prototype.cancel=function(){t.prototype.abort.call(this),K(this.element,{opacity:String(this._initialOpacity)})},e}(I.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=K(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,s=r.scroll,a=r.tooltip,p=wo(Mo(t)+Mo(e-t)/2),l=.4*o.width(),c=o.center().x-l,h=(o.center().x-c)/(n.max-n.min),u=p-n.min,d=this.chartService.intl.format(n.format,t,e),f=ot(n);this.clearHideTimeout(),this._visible||(K(i,{visibility:"hidden",display:"block"}),this._visible=!0),f&&(d=f({from:t,to:e})),a.innerHTML=d,K(a,{left:o.center().x-a.offsetWidth/2,top:o.y1});var v=K(a,["marginTop","borderTopWidth","height"]);K(s,{width:l,left:c+u*h,top:o.y1+v.marginTop+v.borderTopWidth+v.height/2}),K(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}(I.Class);Dt(rc,{format:"{0:d} - {1:d}",hideDelay:500});const ic=rc;var nc="_navigator",sc=nc,ac="_default",pc=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)),_t(r.hint.visible)||(r.hint.visible=r.visible),this.chartObserver=new ft(this,((o={})[Li]="_drag",o[ji]="_dragEnd",o[zi]="_zoom",o[Vi]="_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,s=i.max,a=o.select,p=a.from,l=a.to,c=a.mousewheel,h=(t=r,lc.prototype=t,new lc);0!==r.categoriesCount()&&(this.clean(),h.box=r.box,this.selection=new sp(e,h,{min:n,max:s,from:p||n,to:l||s,mousewheel:Lt(c,{zoom:"left"}),visible:o.visible},new ft(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),o.hint.visible&&(this.hint=new ic(e.element,e.chartService,{min:n,max:s,template:ot(o.hint),format:o.hint.format})))},e.prototype.setRange=function(){var t=this.chart._createPlotArea(!0).namedCategoryAxes[sc].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(Ot(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(),s=n.roundedRange(),a=n.pane.box.containsPoint(i),p=o._plotArea.categoryAxis,l=t.axisRanges[p.options.name],c=this.options.select;if(l&&!a&&r){e=c.from&&c.to?Mo(c.to)-Mo(c.from):Mo(r.options.to)-Mo(r.options.from);var h=wo(Mt(Mo(l.min),s.min,Mo(s.max)-e)),u=wo(Mt(Mo(h)+e,Mo(s.min)+e,s.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 Yo(X({baseUnit:"fit"},t.options.categoryAxis[0],{categories:[e.from,e.to]}),t.chartService).options;r.from=ko(i.min,-i.baseUnitStep,i.baseUnit),r.to=ko(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,s=i.liveDrag,a=this.mainAxis(),p=t.delta;if(r){var l=a.categoryIndex(r.options.from),c=a.categoryIndex(r.options.to),h=this.chart._eventCoordinates(t.originalEvent);t.originalEvent.preventDefault(),Math.abs(p)>1&&(p*=3),c-l>1?(r.zoom(p,h),this.readSelection()):(o.options.min=n.from,n.from=o.scaleRange(-t.delta*this.chart._mousewheelZoomRate(),h).min),s&&(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[sc]},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||ac})),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||ac}));var n=0===Vs(o,Pi).length,s=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]}}),a=e.categoryAxis;r.push(X({},s,{maxDateGroups:200},a,{name:sc,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),X({},s,a,{name:sc+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),X({},s,a,{name:sc+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),i.push(X({name:sc,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,s=e.seriesDefaults,a=0;a<i.length;a++)r.push(X({color:n[a%n.length],categoryField:e.dateField,visibleInLegend:!1,tooltip:{visible:!1}},s,i[a],{axis:sc,categoryAxis:sc,autoBind:e.autoBindElements}))},e}(I.Class);function lc(){}const cc=pc;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=kt(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){B(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=st([].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===sc?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}(Wl);Dt(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 dc=150,fc="arrowPointer",vc="barPointer",yc=.5,gc=Math.PI/180,mc="inside",xc="linear",bc="outside",_c="radialPointer",wc="radialRangePointer";function Cc(t,e){var o=t.getOrigin(),r=t.getSize(),i=J(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 kc=I.drawing.Group,Sc=I.drawing.Path,Ac=I.drawing.Text;function Pc(t,e){var o=t.box,r=t.children[0].box,i=e.border||{},n=e.background||"",s=Sc.fromRect(new I.geometry.Rect([o.x1,o.y1],[o.width(),o.height()]),{stroke:{}}),a=new Ac(t.text,new I.geometry.Point(r.x1,r.y1),{font:e.font,fill:{color:e.color}}),p=Cc(a.bbox().clone(),e.padding),l=Sc.fromRect(p,{stroke:{color:i.width?i.color:"",width:i.width,opacity:i.opacity,dashType:i.dashType,lineJoin:"round",lineCap:"round"},fill:{color:n}}),c=new kc;return c.append(s),c.append(l),c.append(a),c}function Oc(t,e,o){var r=_t(t.from)?t.from:x,i=_t(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 Mc(t,e){var o=J(e);return o.left=-o.left,o.top=-o.top,o.right=-o.right,o.bottom=-o.bottom,Cc(t,o)}var Tc=I.drawing.Path,Ec=I.drawing.Surface,Rc=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(R(t))for(var i=0;i<t.length;i++)V(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 I.geometry.Rect([0,0],[t.width,t.height]);this._initSurface(),this.gaugeArea=this._createGaugeArea(),this._createModel();var o=Mc(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(R(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 I.geometry.Rect([0,0],[e.width,e.height]);return this._gaugeAreaMargin=t.margin||5,o.width>0&&(r=Mc(r,o.width)),Tc.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();kt(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}(I.Class);Dt(Rc,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}});const Bc=Rc;var Lc=I.drawing.Path,jc=I.drawing.Group,Ic=I.geometry.Point;function Dc(t,e){var o,r,i=t.position,n=t.tickX,s=t.tickY;return t.vertical?(o=new Ic(n,i),r=new Ic(n+e.size,i)):(o=new Ic(i,s),r=new Ic(i,s+e.size)),new Lc({stroke:{color:e.color,width:e.width}}).moveTo(o).lineTo(r)}function zc(t,e,o,r){var i=e.length;if(r.visible)for(var n=o.mirror,s=o.lineBox,a=r.skip;a<i;a+=r.step)a%r.skipUnit!=0&&(o.tickX=n?s.x2:s.x2-r.size,o.tickY=n?s.y1-r.size:s.y1,o.position=e[a],t.append(Dc(o,r)))}var Vc=function(t){function e(e,o){var r=e||{};!_t(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 jc,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,s=e.ranges||[],a=new jc,p=s.length,l=e.rangeSize||e.minorTicks.size/2,c=0;c<p;c++){var h=Oc(s[c],o,r),u=t.getSlot(h.from,h.to),d=i?t.lineBox():u,f=i?u:t.lineBox();i?d.x1-=l*(n?-1:1):f.y2+=l*(n?-1:1),a.append(Lc.fromRect(new I.geometry.Rect([d.x1,f.y1],[d.x2-d.x1,f.y2-f.y1]),{fill:{color:h.color,opacity:h.opacity},stroke:{}}))}return a},e.prototype.renderLabels=function(){for(var t=this.labels,e=this.options,o=new jc,r=0;r<t.length;r++)o.append(Pc(t[r],e.labels));return o},e.prototype.renderLine=function(){var t=this.options.line,e=this.lineBox(),o=new jc;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 jc,e=this.options,o=e.majorTicks.visible?e.majorUnit:0,r={vertical:e.vertical,mirror:e.labels.mirror,lineBox:this.lineBox()};return zc(t,this.getMajorTickPositions(),r,e.majorTicks),zc(t,this.getMinorTickPositions(),r,X({},{skipUnit:o/e.minorUnit},e.minorTicks)),t},e}(tr);Dt(Vc,{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 Hc=Vc;var Nc=function(t){function e(e,o){t.call(this);var r=e.options,i=r.min,n=r.max,s=this.options=X({},this.options,o);s.fill=s.color,this.scale=e,_t(s.value)?s.value=Mt(s.value,i,n):s.value=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.value=function(t){var e=this.options,o=e.value;if(0===arguments.length)return o;var r=this.scale.options,i=r.min,n=r.max;e._oldValue=_t(e._oldValue)?e.value:i,e.value=Mt(t,i,n),this.elements&&this.repaint()},e}(I.Class);Dt(Nc,{color:n});const Fc=Nc;var Uc=function(t){function e(e,o){t.call(this,e,o),this.options=X({track:{visible:_t(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,s=n.mirror,a=n.vertical,p=i.lineBox(),l=r.track.size||r.size,c=r.size/2,h=J(r.margin),u=a?h[s?"left":"right"]:h[s?"bottom":"top"];u=s?-u:u,a?(o=new ie(p.x1+u,p.y1,p.x1+u,p.y2),s?o.x1-=l:o.x2+=l,r.shape!==vc&&(t=e=new ie(p.x2+u,p.y1-c,p.x2+u,p.y2+c))):(o=new ie(p.x1,p.y1-u,p.x2,p.y1-u),s?o.y2+=l:o.y1-=l,r.shape!==vc&&(t=e=new ie(p.x1-c,p.y1-u,p.x2+c,p.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:_t(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=J(e.margin);return i?n[r?"left":"right"]:n[r?"bottom":"top"]},e}(Fc);Dt(Uc,{shape:vc,track:{border:{width:1}},color:n,border:{width:1},opacity:1,margin:J(3),animation:{type:vc},visible:!0});const Gc=Uc;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 s=this.fromScale=new I.geometry.Point(o.x1,o.y1),a=this.toScale=new I.geometry.Point(r.x1,r.y1);0!==t.duration&&(t.duration=Math.max(s.distanceTo(a)/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(I.geometry.transform().translate(e,o))},e}(I.drawing.Animation);Dt(Wc,{easing:xc,duration:250}),I.drawing.AnimationFactory.current.register(fc,Wc);const Xc=Wc;var Yc=I.geometry.Point,qc=I.drawing.Path,Qc=function(t){function e(e,o){t.call(this,e,o),_t(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 Yc(0,0-o),new Yc(0-r*e,0),new Yc(0,0+o)]:[new Yc(0-o,0),new Yc(0,0+r*e),new Yc(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=fc;var i=new qc({stroke:o.stroke,fill:o.fill}).moveTo(r[0]).lineTo(r[1]).lineTo(r[2]).close(),n=t.getSlot(e.value);return i.transform(I.geometry.transform().translate(n.x1,n.y1)),this.elements=i,i},e}(Gc);const Zc=Qc;var Kc=function(t){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:T,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}(I.drawing.Animation);Dt(Kc,{easing:xc,speed:250}),I.drawing.AnimationFactory.current.register(vc,Kc);const Jc=Kc;var $c=I.drawing.Group,th=I.drawing.Path,eh=function(t){function e(e,o){t.call(this,e,o),_t(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,s=i===n?-1:1,a=o.size*s,p=e.getSlot(e.options.min),l=e.getSlot(t),c=n?E:T,h=n?T:E,u=this._margin()*s,d=new I.geometry.Point;d[c]=p[c+"1"],d[h]=p[h+"1"];var f=new I.geometry.Point;f[c]=l[c+"1"],f[h]=l[h+"1"],n?(d.translate(u,0),f.translate(u,0)):(d.translate(0,u),f.translate(0,u));var v=f.clone(),y=d.clone();return n?(v.translate(a,0),y.translate(a,0)):(v.translate(0,a),y.translate(0,a)),[d,f,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 Jc(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 $c,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=I.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 Hc(t.scale,this.contextService);this.pointers=[];var o=t.pointer;o=R(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),s=0;s<r.length;s++)n.wrap(r[s].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,s=0;s<o.length;s++)i.wrap(o[s].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 a=0;a<o.length;a++)o[a].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 s=0;s<e.length;s++)e[s].reflow(this.bbox)},e}(Bc);Dt(ih,{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}});const nh=ih;var sh=180,ah=I.drawing.Arc,ph=I.drawing.Path,lh=I.drawing.Group;function ch(t,e,o,r){var i=new lh,n=t.center,s=t.getRadiusX();if(r.visible)for(var a=0;a<e.length;a++){var p=t.pointAt(e[a]),l=new I.geometry.Point(n.x+s-r.size,n.y).rotate(e[a],n);i.append(new ph({stroke:{color:r.color,width:r.width}}).moveTo(p).lineTo(l))}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(!_t(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,s=e.endAngle,a=s-n;return(i?s-(t-o)/(r-o)*a:(t-o)/(r-o)*a+n)+sh},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,s=new lh,a=.05*r;_t(e.rangeDistance)?a=e.rangeDistance:e.rangeDistance=a;var p=e.labels,l=p.position===mc,c=_t(this.labelElements);l&&(r-=this.ticksSize(),this.hasRanges()&&!c&&(r-=n+a),o.setRadiusX(r).setRadiusY(r));for(var h=this.labels,u=h.length,d=J(p.padding),f=(d.left+d.right)/2,v=(d.top+d.bottom)/2,y=0;y<u;y++){var g=h[y],m=g.box.width()/2,x=g.box.height()/2,b=i[y],_=(b-sh)*gc,w=o.pointAt(b),C=w.x+Math.cos(_)*(m+f)*(l?1:-1),k=w.y+Math.sin(_)*(x+v)*(l?1:-1);g.reflow(new ie(C-m,k-x,C+m,k+x));var S=new I.geometry.Point(g.box.x1,g.box.y1),A=void 0;if(c){var P=(A=t.labelElements.children[y]).bbox().origin,O=A.transform()||I.geometry.transform();O.translate(S.x-P.x,S.y-P.y),A.transform(O)}else A=Pc(g,e.labels),s.append(A);t.bbox=I.geometry.Rect.union(t.bbox,A.bbox())}return s},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,s=0;s<t.length;s++)t[s]._geometry.setRadiusX(n).setRadiusY(n);this.bbox=I.geometry.Rect.union(this.bbox,this.ranges.bbox())}},e.prototype.renderRanges=function(){var t=this,e=this.rangeSegments(),o=e.length,r=new lh;if(o){var i=this.options,n=i.rangeSize,s=i.reverse,a=i.rangeDistance,p=this.getRangeRadius();this.radius(this.radius()-n-a);for(var l=0;l<o;l++){var c=e[l],h=t.slotAngle(c[s?"to":"from"]),u=t.slotAngle(c[s?"from":"to"]);u-h!=0&&r.append(t.createRange(h,u,p,c))}}return r},e.prototype.createRange=function(t,e,o,r){var i=this.options.rangeSize,n=new I.geometry.Arc(this.arc.center,{radiusX:o+i/2,radiusY:o+i/2,startAngle:t,endAngle:e});return new ah(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,s=t.rangePlaceholderColor;r.push(hh(i,n,s));for(var a=0;a<o;a++)for(var p=Oc(e[a],i,n),l=r.length,c=0;c<l;c++){var h=r[c];if(h.from<=p.from&&p.from<=h.to){r.push(hh(p.from,p.to,p.color,p.opacity)),h.from<=p.to&&p.to<=h.to&&r.push(hh(p.to,h.to,s,p.opacity)),h.to=p.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===bc?t.getRadiusX()-i-r-o:t.getRadiusX()-o},e.prototype.renderArc=function(t,e){var o=this.options;return this.arc=new I.geometry.Arc(t,{radiusX:e,radiusY:e,startAngle:o.startAngle+sh,endAngle:o.endAngle+sh})},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 lh;r.append(this.majorTicks);var i=e.majorTicks.size,n=e.minorTicks.size;if(this._tickDifference=i-n,e.labels.position===bc){var s=o.getRadiusX();o.setRadiusX(s-i+n).setRadiusY(s-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,s=i/e,a=t.startAngle,p=n/s;r&&(a+=n,p=-p),n>=360&&o.max%e==0&&(s-=1);for(var c=[],h=0;h<s;h++)c.push(Rt(a,l)),a+=p;return Rt(a)<=t.endAngle&&c.push(a),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===bc&&0!==r&&(i=this.arc.clone()).setRadiusX(n-r).setRadiusY(n-r);for(var s=0;s<t.length;s++){var a=i.pointAt(e[s]),p=t[s].segments,l=a.x-p[0].anchor().x,c=a.y-p[0].anchor().y;t[s].transform((new I.geometry.transform).translate(l,c))}},e}(tr);Dt(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 dh=uh;var fh=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(I.geometry.transform().rotate(o,e.center))},e}(I.drawing.Animation);Dt(fh,{easing:xc,duration:dc}),I.drawing.AnimationFactory.current.register(_c,fh);const vh=fh;var yh=I.drawing.Circle,gh=I.drawing.Group,mh=I.drawing.Path,xh=function(t){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(I.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=Mt(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=I.geometry.Rect.fromPoints(new I.geometry.Point(e.x-i,e.y-i),new I.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 I.geometry.Circle(this.center,this.capSize);return new yh(o,{fill:{color:e},stroke:{color:e}})},e}(Fc);Dt(xh,{cap:{size:.05},arrow:{width:16,height:14},animation:{type:_c,duration:dc}});const bh=xh;var _h=I.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=I.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 _h;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,s=this,a=this.scale.arc,p=this._initialPlotArea,c=Math.abs(this.getDiff(p,t)),h=Rt(c,l),u=Rt(-c,l),d=0,f=0;!(!(f++<100)||(d=n===r?d+1:0)>5||h!==i&&0<=(e=s.getPlotBox(h,t,a))&&e<=2||u!==i&&0<=(r=s.getPlotBox(u,t,a))&&r<=2||(i=e>0&&r>0?2*h:e<0&&r<0?2*u:Rt((h+u)/2||1,l),0<=(o=s.getPlotBox(i,t,a))&&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(),s=o.clone();s.setRadiusX(n+t).setRadiusY(n+t),r.arc=s,r.reflow(e),this.plotBbox=r.bbox;for(var a=0;a<i.length;a++)i[a].reflow(s),this.plotBbox=I.geometry.Rect.union(this.plotBbox,i[a].bbox);return this.getDiff(this.plotBbox,e)},e.prototype.getDiff=function(t,e){return Math.min(e.width()-t.width(),e.height()-t.height())},e.prototype.alignScale=function(t){var e=this.plotBbox.center(),o=t.center(),r=e.x-o.x,i=e.y-o.y,n=this.scale,s=this.pointers;n.arc.center.x-=r,n.arc.center.y-=i,n.reflow(t);for(var a=0;a<s.length;a++)s[a].reflow(n.arc),this.plotBbox=I.geometry.Rect.union(n.bbox,s[a].bbox)},e.prototype._createModel=function(){var t=this.options,e=t.pointer,o=this.scale=new dh(t.scale,this.contextService);this.pointers=[];for(var r=R(e)?e:[e],i=0;i<r.length;i++){var n=new bh(o,X({},r[i],{animation:{transitions:t.transitions}}));this.pointers.push(n)}},e}(Bc);Dt(wh,{transitions:!0,gaugeArea:{background:""}});const Ch=wh;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.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),s=this.createRange(i,n,this.getRangeRadius(),o);return this.ranges.append(s),s},e}(dh);Dt(kh,{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"});const Sh=kh;var Ah=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=Mt(i,dc,800);var n=e.elements.options.get("stroke.color"),s=e.currentColor();n!==s&&(this.startColor=new I.Color(n),this.color=new I.Color(s))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this,o=e.options,r=e.startColor,i=e.color,n=ht(o.oldAngle,o.newAngle,t);if(this.element.angle(n),i){var s=Rt(ht(r.r,i.r,t)),a=Rt(ht(r.g,i.g,t)),p=Rt(ht(r.b,i.b,t));this.element.stroke(new I.Color(s,a,p).toHex())}},e}(I.drawing.Animation);Dt(Ah,{easing:xc,duration:dc}),I.drawing.AnimationFactory.current.register(wc,Ah);const Ph=Ah;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.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 Ph(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,s=r.value,a=V(s)?s:e;if(i)for(var p=0;p<i.length;p++){var l=i[p],c=l.color,h=l.from;void 0===h&&(h=e);var u=l.to;if(void 0===u&&(u=o),h<=a&&a<=u)return c}return n},e.prototype.reflow=function(){this.render(),this.bbox=this.elements.bbox()},e}(Fc);Dt(Oh,{animation:{type:wc,duration:dc}});const Mh=Oh;var Th=function(t){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 Mh(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 s=i+t;i=Math.max(i,0),s>o.width&&(i-=s-o.width)}if(e<o.height){var a=this.scale.bbox,p=a.bottomRight().y,l=n+e;n=Math.max(n,a.origin.y),l>p&&(n-=l-p)}return{left:i,top:n}},e}(Ch);const Eh=Th;var Rh=function(t){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 Bh=Rh;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=_t(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}(I.Class);Dt(Lh,{quietZoneLength:10,addQuietZone:!0,addCheckSum:!0});var jh=Object.assign,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.initProperties=function(){t.prototype.initProperties.call(this),jh(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);Dt(Ih,{addCheckSum:!0});var Dh=Object.assign,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),Dh(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),Vh=function(t){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),Dh(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}(zh);Dt(Vh,{addCheckSum:!1});var Hh={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"]},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),X(this,Hh,{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}(Vh),Fh=Object.assign,Uh=function(t){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),Fh(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}(zh),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,Hh,{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}(Uh),Wh=/^\d+$/,Xh=Object.assign,Yh=function(t){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),qh=/^\d+$/,Qh=/^[a-z0-9]+$/i,Zh=Object.assign,Kh=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}(I.Class),Jh=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}(Kh),$h={};$h.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}(Jh),$h.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}(Jh),$h.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=su(t,e,4);return(e+4<=t.length||2===t.length)&&qh.test(o)},e.prototype.move=function(){this.encoding.addPattern(this.MOVE)},e.prototype.pushState=function(t){for(var e;(e=su(t.value,t.index,2))&&qh.test(e)&&2===e.length;)this.encoding.addPattern(parseInt(e,10)),t.index+=2},e.prototype.getValue=function(t){return t},e}(Kh),$h.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}(Kh),$h.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,s=t.value.replace(/\s/g,""),a=new RegExp("["+this.startAI+this.endAI+"]","g"),p=t.index,l={state:this.startState};for(n.addPattern(this.START);;){if(l.index=0,(e=(r=s.charAt(p)===i.startAI?2:0)>0?i.getBySeparator(s,p):i.getByLength(s,p)).ai.length)o=p+r+e.id.length+e.ai.length;else if((o=s.indexOf(i.startAI,p+1))<0){if(p+e.ai.max+e.id.length+r<s.length)throw new Error("Separators are required after variable length identifiers");o=s.length}if(l.value=s.substring(p,o).replace(a,""),i.validate(e,l.value),n.pushData(l,i.dependentStates),o>=s.length)break;p=o,l.state!==i.startState&&(n[i.startState].move(l),l.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&&!qh.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=su(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}(Kh);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 $h[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 su(t,e,o){return t.substring(e,e+o)}var au=Object.assign,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),au(this,{characterMap:["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221"],START:"21",STOP:"121",checkSumType:"",checkSums:du})},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),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),au(this,{name:"MSI Modulo10",checkSumType:"Modulo10"})},e}(pu),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),au(this,{name:"MSI Modulo11",checkSumType:"Modulo11"})},e}(pu),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),au(this,{name:"MSI Modulo10 Modulo10",checkSumType:"Modulo10Modulo10"})},e}(pu),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),au(this,{name:"MSI Modulo11 Modulo10",checkSumType:"Modulo11Modulo10"})},e}(pu),du={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))}},fu=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),fu(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:Ih,code39:Vh,code39extended:Nh,code93:Uh,code93extended:Gh,code128:iu,code128a:eu,code128b:ou,code128c:ru};function xu(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=lu,mu.msimod11=cu,mu.msimod1010=hu,mu.msimod1110=uu,mu.postnet=Yh,mu.ean8=gu,mu.ean13=vu;var bu=function(t){function e(e,o,r){void 0===r&&(r=Jt),t.call(this),this.options=X({},this.options,o),this.element=e,this.onError=r,this._initElement(),this._initSurface(),this._setOptions(o),o&&_t(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(){B(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 I.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=J(i.margin),s=this._getSize(),a=o.border||{},p=this.encoding,l=new ie(0,0,s.width,s.height).unpad(a.width).unpad(o.padding),c=l.height(),h=new I.drawing.Group;this.contentBox=l,h.append(this._getBackground(s)),i.visible&&(c-=I.drawing.util.measureText(r,{font:i.font}).height+n.top+n.bottom);try{t=p.encode(r,l.width(),c)}catch(t){return this.onError(t),h}return i.visible&&(e=r,o.checksum&&_t(p.checksum)&&(e+=" "+p.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=xu(this.element,this.options.renderAs),e=new I.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(!_t(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,s=new I.drawing.Group,a=0;a<t.length;a++){if(o=(r=Y(t[a])?t[a]:{width:t[a],y1:0,y2:this.barHeight}).width*e,a%2){var p=I.geometry.Rect.fromPoints(new I.geometry.Point(n,r.y1+i.y1),new I.geometry.Point(n+o,r.y2+i.y1)),l=I.drawing.Path.fromRect(p,{fill:{color:this.options.color},stroke:null});s.append(l)}n+=o}return s},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 I.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}(I.Class);Dt(bu,{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 _u=bu;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 ku=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 Au(t,e){var o=Number(t).toString(2);return o.length<e&&(o=new Array(e-o.length+1).join(0)+o),o}function Pu(t){return parseInt(t,2)}var Ou=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}(I.Class),Mu=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}(I.Class),Tu=function(t){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(vd(i,od,rd,id,e)),e=o[0].mode,i=i.substr(o[0].modeString.length);i.length>0;){var n=vd(i,nd,sd,ad,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+=ju[t[o].mode].getStringBitsLength(t[o].modeString.length);return Math.ceil(e/8)}(o),i=yd(r,e),n=function(t,e){for(var o="",r=0;r<t.length;r++)o+=ju[t[r].mode].encode(t[r].modeString,e);return o}(o,i);return new Mu(n,i)},e}(I.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(){ku(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+Au(t,this.getBitsCharacterCount(e))},e.prototype.encode=function(){},e.prototype.getStringBitsLength=function(){},e.prototype.getValue=function(){},e}(I.Class),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),ku(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+=Au(r[o],10);return i+Au(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),Bu=function(t){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),ku(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+=Au(45*this.getValue(r[o].charAt(0))+this.getValue(r[o].charAt(1)),11);return i+Au(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),ku(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+=Au(this.getValue(t.charAt(r)),8);return o},e.prototype.getStringBitsLength=function(t,e){return 4+this.getBitsCharacterCount(e)+8*t},e}(Eu),ju={};ju.numeric=new Ru,ju.alphanumeric=new Bu,ju.byte=new Lu;var Iu=function(t){function e(){t.call(this),this.initProperties(),this.mode=ju[this.encodingMode]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){ku(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=yd(this.getDataCodewordsCount(o),e),i=this.mode.getModeCountString(o.length/8,r)+o;return new Mu(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=Au(t,8);else{for(var i=8-e,n=0;n<o;n++)r=Au(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}(I.Class),Du=[{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}}],zu="0000",Vu="numeric",Hu="alphanumeric",Nu="byte",Fu={1:0},Uu={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],Yu={L:"01",M:"00",Q:"11",H:"10"},qu=["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}],Ku=/^\d+/,Ju="A-Z0-9 $%*+./:-",$u=new RegExp("^[A-Z $%*+./:-]+"),td=new RegExp("^["+Ju+"]+"),ed=new RegExp("^[^"+Ju+"]+"),od=8,rd=5,id=8,nd=17,sd=9,ad=16,pd=[[1,0],[1,25,0]];function ld(t,e,o,r){for(var i=0;i<t.length;i++)t[i][o][r]=e}function cd(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 hd(t,e){for(var o=[],r=t.length-2;r>=0;r--)o[r]=t[r]^e[r];return o}function ud(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]=Fu[Uu[o[r+i]]^Uu[(t[r]+e[i])%255]];return o}function dd(t,e){var o=[],r=t.length-1;do{o[r]=Uu[(t[r]+e)%255],r--}while(void 0!==t[r]);return o}function fd(t,e){var o,r,i=pd[e-1],n=new Array(e).concat(t),s=new Array(n.length-i.length).concat(i),a=t.length,p=[];for(r=0;r<a;r++)o=dd(s,Fu[n[n.length-1]]),s.splice(0,1),n=hd(o,n);for(r=n.length-1;r>=0;r--)p[e-1-r]=Au(n[r],8);return p}function vd(t,e,o,r,i){var n,s,a=Ku.exec(t),p=a?a[0]:"",l=$u.exec(t),c=l?l[0]:"",h=td.exec(t),u=h?h[0]:"";return p&&(p.length>=e||t.length===p.length||p.length>=o&&!td.test(t.charAt(p.length)))?(n=Vu,s=p):u&&(t.length===u.length||u.length>=r||i===Hu)?(n=Hu,s=p||c):(n=Nu,s=u?u+ed.exec(t.substring(u.length))[0]:ed.exec(t)[0]),{mode:n,modeString:s}}function yd(t,e){var o=0,r=Du.length-1,i=Math.floor(Du.length/2);do{t<Du[i][e].totalDataCodewords?r=i:o=i,i=o+Math.floor((r-o)/2)}while(r-o>1);return t<=Du[o][e].totalDataCodewords?i+1:r+1}function gd(t,e,o){var r=Pu(e),i=e.length-1,n=t<<i,s=Au(t,o-i),a=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 s+Au(a,i)}function md(t,e){return parseInt(t.charAt(e),10)}function xd(t,e){var o,r,i=t[0],n=0,s=e.length;for(o=0,r=8;o<=8;o++)6!==o&&ld(t,md(e,s-1-n++),o,r);for(o=8,r=7;r>=0;r--)6!==r&&ld(t,md(e,s-1-n++),o,r);for(n=0,r=i.length-1,o=8;r>=i.length-8;r--)ld(t,md(e,s-1-n++),o,r);for(ld(t,1,i.length-8,8),o=i.length-7,r=8;o<i.length;o++)ld(t,md(e,s-1-n++),o,r)}function bd(t,e){for(var o,r,i,n=t[0].length,s=n-11,a=n-11,p=0;p<e.length;p++)o=Math.floor(p/3),r=p%3,ld(t,i=md(e,e.length-p-1),0+o,s+r),ld(t,i,a+r,0+o)}function _d(t,e,o,r){for(var i,n=e.length+2,s=e.length+1,a=0;a<e.length;a++)for(var p=a;p<n-a;p++)ld(t,i=e[a],o+p,r+a),ld(t,i,o+a,r+p),ld(t,i,o+s-p,r+s-a),ld(t,i,o+s-a,r+s-p)}function wd(t,e,o,r){var i=o,n=r,s=t[0];do{ld(t,0,i,r),ld(t,0,o,n),i+=e[0],n+=e[1]}while(i>=0&&i<s.length)}function Cd(t,e,o,r,i){e[t][r]=(e[t][r]<<1^i)%128,e[t][r]===Qu&&(o[t]+=40)}function kd(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 Sd(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 Ad(t,e,o){var r=function(t){return t&&t.toLowerCase().indexOf("utf_8")>=0?new Iu:new Tu}(o),i=r.getEncodingResult(t,e),n=i.version,s=Du[n-1][e],a=function(t,e){for(var o,r,i,n,s,a=0,p=[],l=[],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 d=1;d<=r;d++)s=t.substring(a,a+8),o.push(s),n[r-d]=Pu(s),a+=8;p.push(o),l.push(fd(n,e.errorCodewordsPerBlock))}}return[p,l]}(function(t,e){for(var o=8*e,r=0,i=0,n=t;n.length<o&&r<4;)n+=zu.charAt(r++);for(n.length%8!=0&&(n+=new Array(9-n.length%8).join("0"));n.length<o;)n+=qu[i],i^=1;return n}(i.dataString,s.totalDataCodewords),s),p=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;_d(t,Wu,0,0),wd(t,[-1,-1],7,7),_d(t,Wu,e-7,0),wd(t,[1,-1],e-8,7),_d(t,Wu,0,e-7),wd(t,[-1,1],7,e-8)}(p),function(t,e){if(!(e<2)){var o,r,i=t[0],n=i.length,s=Math.floor(e/7),a=[6],p=0;for((o=Gu[e])?r=(n-13-o)/s:o=r=(n-13)/(s+1),a.push(a[p++]+o);a[p]+r<n;)a.push(a[p++]+r);for(var l=0;l<a.length;l++)for(var c=0;c<a.length;c++)void 0===i[a[l]][a[c]]&&_d(t,Xu,a[l]-2,a[c]-2)}}(p,n),function(t){for(var e=1,o=t[0].length,r=8;r<o-8;r++)ld(t,e,6,r),ld(t,e,r,6),e^=1}(p),n>=7&&bd(p,Au(0,18)),xd(p,Au(0,15)),function(t,e){for(var o,r,i,n=new Ou(t[0]),s=0;s<e.length;s++)for(o=e[s],r=0;o.length>0;){for(var a=0;a<o.length;a++)for(var p=0;p<8;p++)i=n.getNextCell(),cd(t,o[a][r].charAt(p),i.row,i.column);for(r++;o[0]&&r===o[0].length;)o.splice(0,1)}for(;i=n.getNextRemainderCell();)cd(t,0,i.row,i.column)}(p,a);var l=function(t){var e,o,r=[],i=[],n=[],s=[],a=[],p=t[0].length;for(o=0;o<t.length;o++)r[o]=0,n[o]=0,a[o]=[0,0],s[o]=[0,0],i[o]=[];for(var l=0;l<p;l++)for(var c=0;c<p;c++)for(var h=0;h<t.length;h++)e=t[h],n[h]+=parseInt(e[l][c],10),i[h][0]===e[l][c]&&l+1<p&&c-1>=0&&e[l+1][c]===i[h][0]&&e[l+1][c-1]===i[h][0]&&(r[h]+=3),Cd(h,s,r,0,e[l][c]),Cd(h,s,r,1,e[c][l]),kd(h,r,i,e[l][c],a,0),kd(h,r,i,e[c][l],a,1);var u,d=p*p,f=Number.MAX_VALUE;for(o=0;o<r.length;o++)r[o]+=Sd(n[o],d),r[o]<f&&(f=r[o],u=o);return u}(p),c=p[l];return n>=7&&bd([c],function(t){return gd(t,"1111100100101",18)}(n)),xd([c],function(t){var e,o="";if(0===Pu(t))return"101010000010010";e=gd(Pu(t),"10100110111",15);for(var r=0;r<e.length;r++)o+=e.charAt(r)^"101010000010010".charAt(r);return o}(Yu[e]+Au(l,3))),c}!function(){var t,e;for(e=1;e<255;e++)(t=2*Uu[e-1])>255&&(t^=285),Uu[e]=t,Fu[t]=e;t=2*Uu[e-1]^285,Uu[e]=t,Uu[-1]=0}(),function(){for(var t=2;t<=68;t++){var e=pd[t-1],o=[t,0];pd[t]=ud(e,o)}}();var Pd=Math.round,Od=[[0,1],[1,1],[1,2],[2,2],[2,1],[3,1],[3,0],[2,0],[2,-1],[1,-1],[1,0]],Md=[[0,1],[1,1],[1,0]],Td=function(t){function e(e,o,r){void 0===r&&(r=Jt),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(){B(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 I.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,s=this.options.border||{},a=this.options.padding||0,p=s.width||0;s.width=p;var l=new I.drawing.Group;try{n&&(o=Ad(n,this.options.errorCorrection,this.options.encoding),i=(r=this._getSize())-2*(p+a),t=this._calculateBaseUnit(i,o.length),e=p+a+(i-o.length*t)/2,l.append(this._renderBackground(r,s)),l.append(this._renderMatrix(o,t,e)),this._hasCustomLogo()?l.append(this._renderLogo(r,t)):this._isSwiss()&&l.append(this._renderSwissCode(r,t)))}catch(t){this.onError(t)}return l},e.prototype._renderLogo=function(t,e){var o,r=Pd(t/2),i=this._getLogoSize(7*e),n=this.options.overlay.imageUrl,s={x:r-i.width/2,y:r-i.height/2};return o=new I.geometry.Rect(new I.geometry.Point(s.x,s.y),new I.geometry.Size(i.width,i.height)),new I.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,s={},a=new I.drawing.Group;return s.x=s.y=Math.ceil(n-e-o/2),a.append(this._renderShape(s,Math.ceil(o+2*e),Md,"#fff")),s.x=s.y=n-o/2,a.append(this._renderShape(s,o,Md,this.options.color)),s.x=n+i-o/2,s.y=n+i+r-o/2,a.append(this._renderShape(s,r,Od,"#fff")),a},e.prototype._renderShape=function(t,e,o,r){var i=new I.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=xu(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 I.drawing.MultiPath({fill:{color:this.options.color},stroke:null}),i=0;i<t.length;i++)for(var n=o+i*e,s=0;s<t.length;){for(;0===t[i][s]&&s<t.length;)s++;if(s<t.length){for(var a=s;1===t[i][s];)s++;var p=Pd(o+a*e),l=Pd(n),c=Pd(o+s*e),h=Pd(n+e);r.moveTo(p,l).lineTo(p,h).lineTo(c,h).lineTo(c,l).close()}}return r},e.prototype._renderBackground=function(t,e){var o=new ie(0,0,t,t).unpad(e.width/2);return I.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=ku(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}(I.Class);Dt(Td,{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 Ed=Td,Rd=function(t){return void 0===t&&(t="ISO_8859_1"),function(e){try{Ad(e,"L",t)}catch(t){return{valid:!1,error:t}}return{valid:!0}}};var Bd={WGS84:{a:6378137,b:6356752.314245179,f:.0033528106647474805,e:.08181919084262149}};function Ld(t){return t*t}var jd=Math,Id=jd.abs,Dd=jd.atan,zd=jd.atan2,Vd=jd.cos,Hd=jd.sin,Nd=jd.tan,Fd=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=Rt(this.lng,t),this.lat=Rt(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||Bd.WGS84,s=Et(this.lat),a=Et(this.lng),p=t/n.a,l=jd.asin(Hd(s)*Vd(p)+Vd(s)*Hd(p)*Vd(i)),c=a+zd(Hd(i)*Hd(p)*Vd(s),Vd(p)-Hd(s)*Hd(l));return new e(wt(l),wt(c))},e.prototype.greatCircleTo=function(t,o){var r=e.create(r),i=o||Bd.WGS84;if(!r||this.clone().round(8).equals(r.clone().round(8)))return{distance:0,azimuthFrom:0,azimuthTo:0};for(var n,s,a,p,l,c,h,u,d=i.a,f=i.b,v=i.f,y=Et(r.lng-this.lng),g=Dd((1-v)*Nd(Et(this.lat))),m=Hd(g),x=Vd(g),b=Dd((1-v)*Nd(Et(r.lat))),_=Hd(b),w=Vd(b),C=y,k=this.DISTANCE_ITERATIONS,S=!1;!S&&k-- >0;){s=Hd(C),a=Vd(C),p=jd.sqrt(Ld(w*s)+Ld(x*_-m*w*a)),u=zd(p,c=m*_+x*w*a);var A=x*w*s/p;h=0,0!=(l=1-Ld(A))&&(h=c-2*m*_/l),n=C;var P=v/16*l*(4+v*(4-3*l));C=y+(1-P)*v*A*(u+P*p*(h+P*c*(2*Ld(h)-1))),S=Id(C-n)<=this.DISTANCE_CONVERGENCE}var O=l*(Ld(d)-Ld(f))/Ld(f),M=1+O/16384*(4096+O*(O*(320-175*O)-768)),T=O/1024*(256+O*(O*(74-47*O)-128)),E=T*p*(h+T/4*(c*(2*Ld(h)-1)-T/6*h*(4*Ld(p)-3)*(4*Ld(h)-3))),R=zd(w*s,x*_-m*w*a),B=zd(x*s,-m*w+x*_*a);return{distance:Rt(f*M*(u-E),this.DISTANCE_PRECISION),azimuthFrom:wt(R),azimuthTo:wt(B)}},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(_t(t))return t instanceof e?t.clone():1===arguments.length&&2===t.length?e.fromLatLng(t):new e(t,o)},e}(I.Class),Ud=Math,Gd=Ud.atan,Wd=Ud.exp,Xd=Ud.pow,Yd=Ud.sin,qd=Ud.log,Qd=Ud.tan,Zd=I.geometry.Point,Kd=Ud.PI,Jd=Kd/2,$d=Kd/4,tf=Kd/180,ef=Bd.WGS84,of=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,s=Mt(t.lat,-o.MAX_LAT,o.MAX_LAT),a=e?Mt(t.lng,-o.MAX_LNG,o.MAX_LNG):t.lng,p=Et(a-n)*i,l=o._projectLat(s);return new Zd(p,l)},e.prototype._projectLat=function(t){var e=this.options.datum,o=e.e,r=e.a,i=Et(t),n=Qd($d+i/2),s=o*Yd(i),a=Xd((1-s)/(1+s),o/2);return r*qd(n*a)},e.prototype.inverse=function(t,e){var o=this,r=o.options,i=r.datum.a,n=r.centralMeridian,s=t.x/(tf*i)+n,a=Mt(o._inverseY(t.y),-o.MAX_LAT,o.MAX_LAT);return e&&(s=Mt(s,-o.MAX_LNG,o.MAX_LNG)),new Fd(a,s)},e.prototype._inverseY=function(t){var e,o=this,r=o.options.datum,i=r.a,n=r.e,s=n/2,a=Wd(-t/i),p=Jd-2*Gd(a);for(e=0;e<=o.INVERSE_ITERATIONS;e++){var l=n*Yd(p),c=Xd((1-l)/(1+l),s),h=Jd-2*Gd(a*c)-p;if(p+=h,Ud.abs(h)<=o.INVERSE_CONVERGENCE)break}return wt(p)},e}(I.Class);Dt(of,{centralMeridian:0,datum:ef});var rf=function(t){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=Qd($d+o/2);return e*qd(r)},e.prototype._inverseY=function(t){var e=this.options.datum.a,o=Wd(-t/e);return wt(Jd-2*Gd(o))},e}(of),nf=function(t){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 Zd(t.lng,t.lat)},e.prototype.inverse=function(t){return new Fd(t.y,t.x)},e}(I.Class),sf=function(t){function e(){t.call(this);var e=this._proj=new rf,o=this.c=2*Kd*e.options.datum.a;this._tm=I.geometry.transform().translate(.5,.5).scale(1/o,-1/o),this._itm=I.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}(I.Class),af=(function(t){function e(){t.call(this),this._proj=new of}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)}}(I.Class),function(t){function e(){t.call(this),this._proj=new nf}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)}}(I.Class),Object.defineProperty),pf=(Object.assign,function(t){var e=document.createElement("div");return e.innerHTML=t,e.firstChild}),lf=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},cf=function(t,e){e.insertBefore(t,e.firstChild)},hf=function(t){return t.replace(/([a-z][A-Z])/g,(function(t){return t.charAt(0)+"-"+t.charAt(1).toLowerCase()}))},uf=function(t){return t&&String(t).endsWith("px")?t:String(t)+"px"},df=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/},s={tablet:/playbook|ipad|fire/i},a={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i};for(var p in i)if(i.hasOwnProperty(p)&&(r=t.match(i[p]))){if("windows"===p&&"plugins"in navigator)return!1;(o={}).device=p,o.tablet=ff(p,s,!1),o.browser=ff(t,a,"default"),o.name=ff(p,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 ff(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 vf=function(){var t={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"},e=yf();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},yf=function(){var t=df(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,s={};s.mobileOS=t,s.touch="ontouchstart"in window,s.pointers=!o&&!r&&!i&&!n&&window.PointerEvent,s.msPointers=!o&&window.MSPointerEvent,s.mouseAndTouchPresent=s.touch&&!(s.mobileOS.ios||s.mobileOS.android),s.eventCapture=document.documentElement.addEventListener;var a=document.createElement("table"),p=s.transitions=!1,l=s.transforms=!1,c="string";return["Moz","webkit","O","ms"].forEach((function(t){var e=typeof a.style[t+"Transition"]===c;if(e||typeof a.style[t+"Transform"]===c){var o=t.toLowerCase();return l={css:"ms"!==o?"-"+o+"-":"",prefix:t,event:"o"===o||"webkit"===o?o:""},e&&((p=l).event=p.event?p.event+"TransitionEnd":"transitionend"),!1}})),a=null,s.transforms=l,s.transitions=p,s.delayedClick=function(){if(s.touch){if(s.mobileOS.ios)return!0;if(s.mobileOS.android){if(!s.browser.chrome)return!0;if(s.browser.version<32)return!1;var t=document.querySelector("meta[name=viewport]");return!(t?t.getAttribute("content"):"").match(/user-scalable=no/i)}}return!1},s},gf=function(t,e){return t.bind(e)},mf=function(t,e,o,r,i){xf(t,e,o,r,i)},xf=function(t,e,o,r,i){(R(e)?e:(e||"").split(" ")).forEach((function(e){bf(t,e,o,r,i)}))},bf=function(t,e,o,r,i){var n,s=r;o&&F(o)&&!r?s=o:o&&"string"==typeof o&&F(s)&&(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;af(e,"currentTarget",{value:r}),af(e,"delegateTarget",{value:t}),s(e)}}),Boolean(i))},_f=function(t,e,o,r,i){wf(t,e,o,r,i)},wf=function(t,e,o,r){(R(e)?e:(e||"").split(" ")).forEach((function(e){Cf(t,e,o,r)}))},Cf=function(t,e,o,r){t.removeEventListener(e,o,Boolean(r))},kf=function(t){var e=vf(navigator.userAgent);return t.replace(/([^ ]+)/g,(function(t){return e[t]||t}))},Sf=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},Af=function(){return Number(new Date)},Pf=function(){},Of=function(t){var e=[];if(t)for(var o=hf(t).split("-"),r=0;r<o.length;r++)e.push("k-pos-"+o[r]);return e.join(" ")},Mf="string",Tf="function",Ef=function(){this._defaultPrevented=!0},Rf=function(){return!0===this._defaultPrevented},Bf=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,s,a=this,p=typeof t===Mf?[t]:t||[],l=typeof e===Tf;if(void 0===e){for(r in t)a.bind(r,t[r]);return a}var c=function(){var t=p[r];(s=l?e:e[t])&&(o&&(n=s,s=function(){a.unbind(t,s),n.apply(a,arguments)},s.original=n),(a._events[t]=a._events[t]||[]).push(s))};for(r=0,i=p.length;r<i;r++)c();return a},e.prototype.one=function(t,e){return this.bind(t,e,!0)},e.prototype.first=function(t,e){var o,r,i,n=this,s=typeof t===Mf?[t]:t,a=typeof e===Tf;for(o=0,r=s.length;o<r;o++){var p=s[o];(i=a?e:e[p])&&(n._events[p]=n._events[p]||[]).unshift(i)}return n},e.prototype.trigger=function(t,e){var o,r,i=this,n=i._events[t];if(n){var s=e||{};for(s.sender=i,s._defaultPrevented=!1,s.preventDefault=Ef,s.isDefaultPrevented=Rf,o=0,r=(n=n.slice()).length;o<r;o++)n[o].call(i,s);return!0===s._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}(I.Class),Lf=function(t){function e(e,o){t.call(this),this.element=e,this._initOptions(o),this.items=[],B(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;_t(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=[],lf(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?(lf(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}(Bf);Dt(Lf,{name:"Attribution",separator:" | "});var jf={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 If(t){var e='<button class="k-button k-button-square k-rounded-full k-button-flat k-button-flat-base k-icon-button '+jf[t].className+'" aria-label="move '+t+'"><span class="k-icon '+jf[t].iconClass+'" /></button>';return pf(e)}var Df=function(t){function e(e,o){t.call(this),this.element=e,this._initOptions(o);var r=If("up"),i=If("right"),n=If("down"),s=If("left");this.element.appendChild(r),this.element.appendChild(i),this.element.appendChild(n),this.element.appendChild(s),B(this.element,"k-widget k-navigator"),mf(this.element,"click",".k-button",gf(this._click,this));var a=this.element.parentNode.closest("[data-role]");this._keyroot=a||this.element,this._tabindex(this._keyroot),this._keydownHandler=gf(this._keydown,this),mf(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(){_f(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 $t.UP:this._pan(0,1),t.preventDefault();break;case $t.DOWN:this._pan(0,-1),t.preventDefault();break;case $t.RIGHT:this._pan(1,0),t.preventDefault();break;case $t.LEFT:this._pan(-1,0),t.preventDefault()}},e}(Bf);function zf(t,e){return pf('<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>')}Dt(Df,{name:"Navigator",panStep:1}),Sf(Df,["pan"]);var Vf="change",Hf=function(t){function e(e,o){t.call(this),this.element=e,this._initOptions(o);var r=zf("in","k-i-plus"),i=zf("out","k-i-minus");this.element.appendChild(r),this.element.appendChild(i),B(this.element,"k-widget k-zoom-control k-button-group k-group-horizontal"),this._clickHandler=this._click.bind(this),mf(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),mf(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&&_f(this.element,"click",this._clickHandler),this._keyroot&&_f(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(Vf,{delta:t*e})},e.prototype._click=function(t){var e=1;at(t.currentTarget,"k-zoom-out")&&(e=-1),this._change(e),t.preventDefault()},e.prototype._keydown=function(t){switch(t.which){case $t.NUMPAD_PLUS:case 187:case 61:this._change(1);break;case $t.NUMPAD_MINUS:case 189:case 173:this._change(-1)}},e}(Bf);Dt(Hf,{name:"ZoomControl",zoomStep:1}),Sf(Hf,[Vf]);var Nf=Math,Ff=Nf.max,Uf=Nf.min,Gf=function(t){function e(e,o){t.call(this);var r=Fd.create(e),i=Fd.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 Fd(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=Uf(e.lng,r),e.lat=Ff(e.lat,i),o.lng=Ff(o.lng,r),o.lat=Uf(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 Fd(t.lat,e.lng),se:this.se,sw:new Fd(e.lat,t.lng)}},e.prototype.toArray=function(){var t=this.nw,e=this.se;return[t,new Fd(t.lat,e.lng),e,new Fd(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}(I.Class),Wf="centerChange",Xf=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}(I.Class);Dt(Xf,{border:{width:1},opacity:1});var Yf=function(t){function e(e,o){t.call(this),this.support=yf(),this._initOptions(o),this.map=e;var r=document.createElement("div");B(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=!_t(t.minZoom)||e>=t.minZoom,r=!_t(t.maxZoom)||e<=t.maxZoom,i=Gf.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}(I.Class),qf=Math,Qf=I.geometry.Point;function Zf(t){return F(t)?t:et.compile(t)}function Kf(t){return new Qf(Rt(t.x),Rt(t.y))}function Jf(t){var e=t;return"string"!=typeof t&&(e+="px"),e}var $f=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,I.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}(Yf);Dt($f,{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 Qf(qf.floor(t.x/this.options.tileSize),qf.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:qf.ceil((qf.abs(r.x)+t.width)/this.options.tileSize),y:qf.ceil((qf.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 Qf(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(){lf(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:Kf(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=qf.pow(2,this._zoom);return{x:this.wrapValue(t.x,e),y:Mt(t.y,0,e-1)}},e.prototype.wrapValue=function(t,e){var o=qf.abs(t)%e;return t>=0?o:e-(0===o?e:o)},e}(I.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=Jf(this.options.offset.y),t.style.left=Jf(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 Zf(this.options.urlTemplate)(this.urlOptions())},e.prototype.errorUrl=function(){return Zf(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}(I.Class);Dt(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=Pt(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}(I.Class);Dt(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=vf(navigator.userAgent);i.addEventListener?(n.down.split(" ").forEach((function(t){i.addEventListener(t,gf(r._press,r),!0)})),n.up.split(" ").forEach((function(t){i.addEventListener(t,gf(r._release,r),!0)}))):(n.down.split(" ").forEach((function(t){i.attachEvent(t,gf(r._press,r))})),n.up.split(" ").forEach((function(t){i.attachEvent(t,gf(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}(Bf),sv=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}(Bf),av=function(t){function e(e){t.call(this);var o=this;o.x=new sv(rv({horizontal:!0},e)),o.y=new sv(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}(Bf),pv=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 s=t;(n<o.min&&t<0||n>o.max&&t>0)&&(s*=e.resistance),i.translateAxis(r,s),e.trigger(iv,e)}},e}(Bf),lv=function(t){function e(e){t.call(this);var o,r,i,n,s=this;rv(s,{elastic:!0},e),i=s.elastic?.5:0,n=s.movable,s.x=o=new pv({axis:"x",dimension:s.dimensions.x,resistance:i,movable:n}),s.y=r=new pv({axis:"y",dimension:s.dimensions.y,resistance:i,movable:n}),s.userEvents.bind(["press","move","end","gesturestart","gesturechange"],{gesturestart:function(t){s.gesture=t,s.offset=Ct(s.dimensions.container)},press:function(t){var e=t.event.target.closest("a");e&&e.matches("[data-navigate-on-press=true]")&&t.sender.cancel()},gesturechange:function(t){var e,i=s.gesture,a=i.center,p=t.center,l=t.distance/i.distance,c=s.dimensions.minScale,h=s.dimensions.maxScale;n.scale<=c&&l<1&&(l+=.8*(1-l)),n.scale*l>=h&&(l=h/n.scale);var u=n.x+s.offset.left,d=n.y+s.offset.top;e={x:(u-a.x)*l+p.x-u,y:(d-a.y)*l+p.y-d},n.scaleWith(l),o.dragMove(e.x),r.dragMove(e.y),s.dimensions.rescale(n.scale),s.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}(I.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=yf(),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}(Bf),uv=I.drawing.Group,dv=function(t){function e(e,o){t.call(this,e,o),this._pan=gf(this._pan,this),this.surface=I.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 fv(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 I.drawing.Circle&&this.map.options.renderPointsAsMarkers&&(e=_t(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=gf(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}(Yf);Dt(dv,{autoBind:!0,zIndex:100});var fv=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,s=e.coordinates;switch(e.type){case"LineString":i=this._loadPolygon(t,[s],o),this._setLineFill(i);break;case"MultiLineString":for(r=0;r<s.length;r++)i=n._loadPolygon(t,[s[r]],o),n._setLineFill(i);break;case"Polygon":this._loadPolygon(t,s,o);break;case"MultiPolygon":for(r=0;r<s.length;r++)n._loadPolygon(t,s[r],o);break;case"Point":this._loadPoint(t,s,o);break;case"MultiPoint":for(r=0;r<s.length;r++)n._loadPoint(t,s[r],o)}},e.prototype._setLineFill=function(t){var e=t.segments;(e.length<4||!e[0].anchor().equals(Ot(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?I.drawing.MultiPath:I.drawing.Path)(this.style),o=0;o<t.length;o++)for(var r=0;r<t[o].length;r++){var i=this.locator.locationToView(Fd.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=Fd.fromLngLat(e),i=this.locator.locationToView(r),n=new I.geometry.Circle(i,10),s=new I.drawing.Circle(n,this.style);return s.dataItem=o,s.location=r,this._loadShape(t,s)},e}(I.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,s=this._scaleType(),a=nt(this.options.locationField),p=0;p<i.length;p++){var l=i[p],c=a(l),h=r(l);if(_t(c)&&_t(h)){n||(n=new s([0,h],[o.minSize,o.maxSize])),c=Fd.create(c);var u=e.map.locationToView(c),d=n.map(h),f=e._createSymbol({center:u,size:d,style:o.style,dataItem:l,location:c});f.dataItem=l,f.location=c,f.value=h,e._drawSymbol(f)}}}},e.prototype._scaleType=function(){var t=this.options.scale;return F(t)?t:yv[t]},e.prototype._createSymbol=function(t){var e=this.options.symbol;return F(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}(dv);Dt(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}(I.Class)},gv={circle:function(t){var e=new I.geometry.Circle(t.center,t.size/2);return new I.drawing.Circle(e,t.style)},square:function(t){var e=new I.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",xv="mouseenter",bv="mouseleave",_v=Object.assign,wv="k-marker",Cv="."+wv,kv=function(t){function e(e,o){t.call(this,e,o),this._markerClickHandler=gf(this._markerClick,this),mf(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),_f(this.element,mv,this._markerClickHandler),this.clear()},e.prototype.add=function(t){if(!R(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 _v({},{layer:this,layerIndex:this._layerIndex(),marker:e,markerIndex:(this.items||[]).indexOf(e)},t)},e}(Yf);Dt(kv,{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=Fd.create(t).toArray(),this.layer&&this.layer.update(this),this):Fd.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=uf(this._anchor.left),this.element.style.top=uf(this._anchor.top)},e.prototype.hide=function(){this.element&&(this.element.remove(),this.element=null)},e.prototype.bindEvents=function(){this.element&&(this._mouseEnterHandler=gf(this._mouseEnter,this),mf(this.element,xv,Cv,this._mouseEnterHandler),this._mouseLeaveHandler=gf(this._mouseLeave,this),mf(this.element,bv,Cv,this._mouseLeaveHandler))},e.prototype.unbindEvents=function(){this.element&&(_f(this.element,xv,this._mouseEnterHandler),_f(this.element,bv,this._mouseLeaveHandler))},e.prototype.render=function(){if(!this.element){var t=this.options,e=this.layer,o=document.createElement("span");if(B(o,wv),this.options.template){var r=this._compileTemplate(this.options.template)(this.dataItem),i=pf(r);o.appendChild(i)}else B(o,"k-icon k-icon-xxl k-i-marker-"+hf(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}(I.Class),Av=Object.assign;function Pv(t){window.requestAnimationFrame(t)}var Ov=function(t){function e(){t.call(this);var e=this;e._tickProxy=gf(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,Pv(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()):Pv(t._tickProxy))},e}(I.Class),Mv=function(t){function e(e){t.call(this),Av(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,Af()-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=Af(),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}(Ov),Tv=Object.assign,Ev=function(t){t.preventDefault()},Rv=800,Bv=0,Lv="press",jv="hold",Iv="select",Dv="start",zv="move",Vv="end",Hv="cancel",Nv="tap",Fv="doubleTap",Uv="release",Gv="gesturechange",Wv="gestureend",Xv="gesturetap",Yv={api:0,touch:0,mouse:9,pointer:9};function qv(t){var e,o,r,i=yf(),n=[],s=t.originalEvent||t,a=t.currentTarget,p=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=s?s.changedTouches:[]).length;p<e;p++)r=o[p],n.push({location:r,event:t,target:r.target,currentTarget:a,id:r.identifier,type:"touch"});else i.pointers||i.msPointers?n.push({location:s,event:t,target:t.target,currentTarget:a,id:s.pointerId,type:"pointer"}):n.push({id:1,event:t,target:t.target,currentTarget:a,location:t,type:"mouse"});return n}var Qv=function(t){function e(e,o){t.call(this);var r=this;r.support=yf(),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=Af()}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=Af(),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}(I.Class),Zv=function(t){function e(e,o,r){t.call(this),Tv(this,{x:new Qv("X",r.location),y:new Qv("Y",r.location),type:r.type,useClickAsTap:e.useClickAsTap,threshold:e.threshold||Yv[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(gf(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(Nv,t):e._trigger(Fv,t),e.userEvents._clicks=0}),300))},e.prototype._hold=function(){this._trigger(jv,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(Jv.current&&Jv.current!==e.userEvents)return e.dispose();e._start(t)}e._finished||e._trigger(zv,t)}},e.prototype.end=function(t){this.endTime=Af(),this._finished||(this._finished=!0,this._trigger(Uv,t),this._moved?this._trigger(Vv,t):this.useClickAsTap||(this.supportDoubleTap?this._tap(t):this._trigger(Nv,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=Af(),this._moved=!0,this._trigger(Dv,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}(I.Class);function Kv(t){for(var e=vf(navigator.userAgent).up.split(" "),o=0,r=e.length;o<r;o++)t(e[o])}var Jv=function(t){function e(e,o){t.call(this);var r,i=this,n=yf();this.support=n,o=o||{},this.options=o,r=i.filter=o.filter,i.threshold=o.threshold||Bv,i.minHold=o.minHold||Rv,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 s=!n.touch||n.mouseAndTouchPresent;if(Tv(i,{element:e,surface:o.global&&s?e.ownerDocument.documentElement:o.surface||e,stopPropagation:o.stopPropagation,pressed:!1}),this._surfaceMoveHandler=gf(this._move,this),mf(i.surface,kf("move"),this._surfaceMoveHandler),this._surfaceEndHandler=gf(this._end,this),mf(i.surface,kf("up cancel"),this._surfaceEndHandler),this._elementStartHandler=gf(this._start,this),mf(e,kf("down"),r,this._elementStartHandler),i.useClickAsTap&&(this._elementClickHandler=gf(this._click,this),mf(e,kf("click"),r,this._elementClickHandler)),n.pointers||n.msPointers)if(n.browser.version<11){var a="pinch-zoom double-tap-zoom";e.style["-ms-touch-action"]=o.touchAction&&"none"!==o.touchAction?a+" "+o.touchAction:a}else e.style["touch-action"]=o.touchAction||"none";if(o.preventDragEvent&&(this._elementDragStartHandler=Ev,mf(e,kf("dragstart"),this._elementDragStartHandler)),this._elementSelectHandler=gf(this._select,this),mf(e,kf("mousedown"),r,this._elementSelectHandler),i.captureUpIfMoved&&n.eventCapture){var p=i.surface,l=gf(i.preventIfMoving,i);Kv((function(t){p.addEventListener(t,l,!0)}))}i.bind([Lv,jv,Nv,Fv,Dv,zv,Vv,Uv,Hv,"gesturestart",Gv,Wv,Xv,Iv],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;Kv((function(e){r.removeEventListener(e,t.preventIfMoving)}))}_f(t.surface,kf("move"),this._surfaceMoveHandler),_f(t.surface,kf("up cancel"),this._surfaceEndHandler),_f(o,kf("down"),this._elementStartHandler),t.useClickAsTap&&_f(o,kf("click"),this._elementClickHandler),e.preventDragEvent&&_f(o,kf("dragstart"),this._elementDragStartHandler),_f(o,kf("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(Hv)},e.prototype.notify=function(t,e){var o,r,i,n,s,a,p,l,c=this.touches,h=t;if(this._isMultiTouch()){switch(h){case zv:h=Gv;break;case Vv:h=Wv;break;case Nv:h=Xv}Tv(e,{touches:c},(o=c[0],r=c[1],i=o.x.location,n=o.y.location,p=i-(s=r.x.location),l=n-(a=r.y.location),{center:{x:(i+s)/2,y:(n+a)/2},distance:Math.sqrt(p*p+l*l)}))}return this.trigger(h,Tv(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 st(this.touches,(function(t){return t.isMoved()})).length},e.prototype._select=function(t){this.allowSelection&&!this.trigger(Iv,{event:t})||t.preventDefault()},e.prototype._start=function(t){var o,r,i=this,n=0,s=i.filter,a=qv(t),p=a.length,l=t.which;if(!(l&&l>1||i._maxTouchesReached()))for(e.current=null,i.currentTarget=t.currentTarget,i.stopPropagation&&t.stopPropagation();n<p&&!i._maxTouchesReached();n++)r=a[n],(o=s?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:Af(),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,s={},a=qv(e),p=this.touches;for(o=0;o<p.length;o++)s[(r=p[o]).id]=r;for(o=0;o<a.length;o++)(n=s[(i=a[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:Pf,preventDefault:Pf})},e.defaultThreshold=function(t){Bv=t},e.minHold=function(t){Rv=t},e}(Bf),$v=Object.assign,ty=Math.abs,ey="change",oy="scroll",ry=function(t){function e(e){t.call(this,e);var o=this;$v(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}(Ov),iy=function(t){function e(e){t.call(this);var o=this;$v(o,e,{transition:new Mv({axis:e.axis,movable:e.movable,onEnd:function(){o._end()}})}),o.tapCapture.bind("press",(function(){o.cancel()})),o.userEvents.bind("end",gf(o.start,o)),o.userEvents.bind("gestureend",gf(o.start,o)),o.userEvents.bind("tap",gf(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:Mv.easeOutExpo})},e}(Ov),ny=function(t){function e(e){t.call(this,e),$v(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&&F(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}(Ov),sy=function(t){function e(e){t.call(this);var o=this,r="x"===e.axis,i=pf('<div class="km-touch-scrollbar km-'+(r?"horizontal":"vertical")+'-scrollbar" />');$v(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,s=Math.round(-i[e]*n),a=Math.round(r*n);this.element.style.display=n>=1?"none":"",s+a>r?a=r-s:s<0&&(a+=s,s=0),t.elementSize!==a&&(t.element.style[t.size]=a+"px",t.elementSize=a),t.movable.moveAxis(e,s)},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}(I.Class),ay=function(t){function e(e,o){t.call(this);var r=this;this.element=e,this._initOptions(o);var i,n,s=(i=navigator.userAgent,(n=df(i)).ios||n.android);r._native=r.options.useNative&&s;var a=pf('<div class="km-scroll-header"/>');if(r._native)return B(e,"km-native-scroller"),cf(a,e),void $v(r,{scrollElement:e,fixedContainer:e.children[0]});e.style.overflow="hidden",B(e,"km-scroll-wrapper"),function(t,e){for(t.appendChild(e);t.firstChild!==e;)e.appendChild(t.firstChild)}(e,pf('<div class="km-scroll-container"/>')),cf(a,e);var p=e.children[1],l=new nv(e),c=new hv(p),h=new av({element:p,container:e,forcedEnabled:r.options.zoom}),u=this.options.avoidScrolling,d=new Jv(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),s=2*o>=e;!n&&!u(t)&&r.enabled&&(h.x.enabled&&i||h.y.enabled&&s)?d.capture():d.cancel()}}),f=new lv({movable:c,dimensions:h,userEvents:d,elastic:r.options.elastic}),v=new ry({movable:c,dimensions:h,userEvents:d,tapCapture:l}),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),mf(e,"wheel",this._wheelScrollHandler)),$v(r,{movable:c,dimensions:h,zoomSnapBack:v,animatedScroller:y,userEvents:d,pane:f,tapCapture:l,pulled:!1,enabled:!0,scrollElement:p,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;_f(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],s=new sy({axis:t,movable:o,dimension:r,container:e.element,alwaysVisible:e.options.visibleScrollHints});r.bind(ey,(function(){s.refresh()})),n.bind(ey,(function(){s.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(){s.hide(),e.trigger("scrollEnd",{axis:t,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft})}})},e}(Bf);Dt(ay,{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"}}),Sf(ay,["pull",oy,"resize"]);var py=function(t,e){void 0===e&&(e={}),this.sender=e.sender||t,this.widget=t,this.rtl=Boolean(e.rtl)};py.prototype.notify=function(t,e){this.widget&&this.widget.trigger(t,e)};const ly=py;var cy=Math,hy=cy.min,uy=cy.pow,dy=I.geometry.Point,fy="marker",vy="location",yy="wheel",gy={bubble:vv,shape:dv,tile:$f};gy[fy]=kv;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(),R(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();_f(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=yf(),this.context=r,this.initObserver(r),this.initServices(r),this._notifyObserver("init"),this._initOptions(e),this._setEvents(e),this.crs=new sf,this._initElement(t),this._viewOrigin=this._getOrigin(),this._tooltip=this._createTooltip(),this._initScroller(),this._initMarkers(),this._initControls(),this._initLayers(),this._reset();var i=(0,I.throttle)(this._mousewheel.bind(this),50);this._mousewheelHandler=function(t){t.preventDefault(),i(t)},mf(this.element,yy,this._mousewheelHandler)},e.prototype._initOptions=function(t){this.options=X({},this.options,t)},e.prototype._initElement=function(t){this.element=t,B(t,"k-map"),t.style.position="relative",t.setAttribute("data-role","map"),lf(t);var e=pf("<div />");this.element.appendChild(e)},e.prototype.initServices=function(t){void 0===t&&(t={}),this.widgetService=new ly(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(_t(t)){var r=cy.round(Mt(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=Fd.create(t),r=Fd.create(this.options.center);o.equals(r)||(this.options.center=o.toArray(),this.widgetService.notify(Wf,{center:this.options.center}),this._reset()),e=this}else e=Fd.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(),lf(e),this._init(e,t,{},this.context),this._reset()},e.prototype.locationToLayer=function(t,e){var o=!this.options.wraparound,r=Fd.create(t);return this.crs.toPoint(r,this._layerSize(e),o)},e.prototype.layerToLocation=function(t,e){var o=!this.options.wraparound,r=dy.create(t);return this.crs.toLocation(r,this._layerSize(e),o)},e.prototype.locationToView=function(t){var e=Fd.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=dy.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 I.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=Fd.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(Wf,{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=Gf.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 Gf(e.nw,o);this.center(r.center());var i,n=this.element.clientWidth,s=this.element.clientHeight;for(i=this.options.maxZoom;i>=this.options.minZoom;i--){var a=this.locationToLayer(r.nw,i),p=this.locationToLayer(r.se,i),l=cy.abs(p.x-a.x),c=cy.abs(p.y-a.y);if(l<=n&&c<=s)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 Gf(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="."+Of(o).replace(" ","."),i=this.element.querySelector(".k-map-controls"+r)||[];if(0===i.length){var n=document.createElement("div");B(n,"k-map-controls "+Of(o)),i=n,this.element.appendChild(i)}var s=document.createElement("div");return i.appendChild(s),s},e.prototype._createAttribution=function(t){var e=this._createControlElement(t,"bottomRight");this.attribution=new Lf(e,t)},e.prototype._createNavigator=function(t){var e=this._createControlElement(t,"topLeft"),o=this.navigator=new Df(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,s=this.element.clientHeight;o=Mt(o,i.x.min,i.x.max-n),r=Mt(r,i.y.min,i.y.max-s),this.scroller.one("scroll",gf(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 Hf(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 ay(this.element.children[0],{friction:t,velocityMultiplier:5,zoom:e,mousewheelScrolling:!1,supportDoubleTap:!0});o.bind("scroll",gf(this._scroll,this)),o.bind("scrollEnd",gf(this._scrollEnd,this)),o.userEvents.bind("gesturestart",gf(this._scaleStart,this)),o.userEvents.bind("gestureend",gf(this._scale,this)),o.userEvents.bind("doubleTap",gf(this._doubleTap,this)),o.userEvents.bind("tap",gf(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===fy?this.options.markerDefaults:o,t),i=new(0,gy[e])(this,r);return e===fy&&(this.markers=i),i},e.prototype._createTooltip=function(){return new Xf(this.widgetService,this.options.tooltip)},e.prototype._initMarkers=function(){(this.options.layers||[]).filter((function(t){return t&&t.type===fy})).length>0||(this.markers=new kv(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 I.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=Af(),this.trigger("panEnd",{originalEvent:t,origin:this._getOrigin(),center:this.center()}))},e.prototype._panComplete=function(){return Af()-(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 I.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 s=this.zoom();t.dimensions.forcedMinScale=uy(2,this.options.minZoom-s),t.dimensions.maxScale=uy(2,this.options.maxZoom-s);var a={min:-n.x,max:r-n.x},p={min:-n.y,max:r-n.y};if(this.options.wraparound&&(a.max=20*r,a.min=-a.max),!1===this.options.pannable){var l=this.viewSize();a.min=p.min=0,a.max=l.width,p.max=l.height}e.makeVirtual(),o.makeVirtual(),e.virtualSize(a.min,a.max),o.virtualSize(p.min,p.max),this._virtualSize={x:a,y:p}},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=Mt(r+e,o.minZoom,o.maxZoom);if(!1!==o.zoomable&&i!==r&&!this.trigger("zoomStart",{originalEvent:t})){var n=this.eventOffset(t),s=this.viewToLocation(n),a=this.locationToLayer(s,i).translate(-n.x,-n.y);this._zoomAround(a,i),this.trigger("zoomEnd",{originalEvent:t})}},e.prototype._toDocumentCoordinates=function(t){var e=Ct(this.element);return{left:Rt(t.x+e.left),top:Rt(t.y+e.top)}},e}(Bf);Dt(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}),Sf(my,["beforeReset","click","markerActivate","markerClick","markerCreated","markerMouseEnter","markerMouseLeave","pan","panEnd","reset","shapeClick","shapeCreated","shapeFeatureCreated","shapeMouseEnter","shapeMouseLeave","zoomEnd","zoomStart"]);const xy=my;var by=1.5,_y=.4,wy="#000",Cy="Arial, Helvetica, sans-serif",ky="11px "+Cy,Sy="12px "+Cy,Ay="16px "+Cy,Py="transparent",Oy="#fff",My=function(){return{icon:{border:{width:1}},label:{font:Sy,padding:3},line:{length:10,width:2},visible:!0}},Ty=function(){return{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:Oy,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:by,spacing:_y,target:{color:"#ff0000"}}},Ry=function(){return{gap:.5,line:{color:wy,width:1},spacing:_y}},By=function(t){return{visible:!0,labels:{font:ky},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:by,spacing:_y},boxPlot:Ty(),bubble:{border:{width:0},labels:{background:Py},opacity:.6},bullet:Ey(),candlestick:{border:{_brightness:.8,width:1},downColor:Oy,gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:wy,width:1},spacing:.3},column:{gap:by,spacing:_y},heatmap:{labels:{color:"",background:Py,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:Ry(),line:{width:2},notes:My(),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:by,spacing:_y},rangeColumn:{gap:by,spacing:_y},scatterLine:{width:1},verticalArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalBoxPlot:Ty(),verticalBullet:Ey(),verticalLine:{width:2},waterfall:Ry()}},Ly=function(t){return void 0===t&&(t={}),{axisDefaults:{labels:{font:Sy},notes:My(),title:{font:Ay,margin:5}},categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:By(t),title:{font:Ay},subtitle:{font:Sy},legend:{labels:{font:Sy}}}}},6201:(t,e,o)=>{o.r(e),o.d(e,{Popup:()=>at,PopupPropsContext:()=>st,PopupWithoutContext:()=>it});var r=o(3899),i=o(994),n=o(189),s=function(t){t.style.transitionDuration="",Array.from(t.classList).forEach((function(e){e.startsWith("k-slide-")&&t.classList.remove(e)}))},a="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),p=o(4006),l=o(7827),c=o(8259),h=o(8047);const u="bottom",d="center",f="middle",v="left",y="right",g="top",m="fit",x="flip",b="none";var _,w,C,k=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,s=t.elementAlignPoint,a=0,p=2*t.margin;if(s!==n&&s!==d&&s!==f&&n!==d&&n!==f){var l=n===g||n===v;e<0&&l?e+(a=o+r+p)+o>i&&(a=0):e>=0&&!l&&(e+o>i&&(a+=-(r+o+p)),e+a<0&&(a=0))}return a},A=(_=function(t){if(!P())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=_.apply(void 0,t),C=!0),w}),P=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)};const O={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:A,canUseDOM:P};function M(t){return t.ownerDocument||t.document||t}const T=function(t){return M(t).defaultView},E=function(t){return M(t).documentElement};var R=0;function B(){if(!R&&"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),R=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return R}function L(t){var e=T(t),o=E(t),r={height:e.innerHeight,width:e.innerWidth};return o.scrollHeight-o.clientHeight>0&&(r.width-=B()),r}function j(t){var e=E(t),o=T(t);return{x:o.pageXOffset||e.scrollLeft||0,y:o.pageYOffset||e.scrollTop||0}}const I=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 D(t){return t===(t.ownerDocument||{}).body?j(t):{x:t.scrollLeft,y:t.scrollTop}}const z=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||E(t)};function V(t,e){for(var o=[],r=t.parentNode;r&&(o.push(r),r!==e);)r=r.parentNode;return o}function H(t){for(var e=[],o=t.parentNode.firstElementChild;o;)o!==t&&e.push(o),o=o.nextElementSibling;return e}var N=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],F=function(){return O.canUseDOM()?window:null},U=/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||!O.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 O.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},Y={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 s=o.horizontal,a=o.vertical,p=i.horizontal,l=i.vertical,c=n.horizontal||0,h=n.vertical||0,v=e.top,g=e.left;return a===u&&(v+=e.height),a!==d&&a!==f||(v+=Math.round(e.height/2)),l===u&&(v-=r.height,h*=-1),l!==d&&l!==f||(v-=Math.round(r.height/2),h*=-1),s===y&&(g+=e.width),s!==d&&s!==f||(g+=Math.round(e.width/2)),p===y&&(g-=r.width,c*=-1),p!==d&&p!==f||(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=F();if(!e||!t)return[];var o=e.getComputedStyle(t);return N.map((function(t){return{key:t,value:o[t]}}))},getWindow:F,hasOffsetParent:function(t){return!!t&&Boolean(t.offsetParent)},offset:function(t){return t?I(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 s=I(t);return t.style.left=r,t.style.top=i,t.offsetHeight,t.style.transition=n,s},position:function(t,e,o){return t&&e?function(t,e,o){void 0===o&&(o=1);var r=e?z(e):null,i=function(t,e){var o=T(t),r=o.getComputedStyle(t),i=I(t),n=e||z(t),s=t.ownerDocument,a=n!==s.body&&n!==s.documentElement,p={top:0,left:0};if("fixed"!==r.position&&a){var l=o.getComputedStyle(n);(p=I(n)).top+=parseInt(l.borderTopWidth,10),p.left+=parseInt(l.borderLeftWidth,10)}return{top:i.top-p.top,left:i.left-p.left,height:i.height,width:i.width}}(t,r),n=i.top,s=i.left,a=i.height,p=i.width,l=function(t,e){return t?D(t):function(t){var e=z(t);return e?D(e):{x:0,y:0}}(e)}(r,t),c=l.x,h=l.y,u=t.ownerDocument,d=r===u.body||r===u.documentElement?1:o;return{top:n+h*d,left:s+c*d,height:a,width:p}}(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,s=t.viewPort,a=t.margin;void 0===a&&(a={});var p=r.top,l=r.left,c=r.height,h=r.width,u=s.height,d=s.width,f=a.horizontal||0,v=a.vertical||0,y=0,g=0,b=n.vertical===m,_=n.horizontal===m,w=n.vertical===x,C=n.horizontal===x;b&&(g+=k(p,c,u)),_&&(y+=k(l,h,d)),w&&(g+=S({margin:v,offset:p,size:c,anchorSize:e.height,viewPortSize:u,anchorAlignPoint:o.vertical,elementAlignPoint:i.vertical})),C&&(y+=S({margin:f,offset:l,size:h,anchorSize:e.width,viewPortSize:d,anchorAlignPoint:o.horizontal,elementAlignPoint:i.horizontal}));var A=w&&0!==g,P=C&&0!==y,O=b&&0!==g,M=_&&0!==y;return{flipped:P||A,fitted:O||M,flip:{horizontal:P,vertical:A},fit:{horizontal:M,vertical:O},offset:{left:y,top:g}}},scrollPosition:j,scrollableParents:function(t){var e=[];if(!O.canUseDOM())return e;for(var o=t.parentElement;o;)(U.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?I(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||!O.canUseDOM())return null;var o=function(t,e){for(var o,r,i=V(t),n=e;n&&(o=H(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(V(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 q=Y;const Q=function(t){var e=t.anchor,o=t.element,r=t.anchorAlign,i=t.elementAlign,n=t.margin,s=t.offset,a=t.positionMode,p=t.scale||1,l="fixed"!==a&&q.hasOffsetParent(o)?function(t,e,o,r){var i=O.eitherRect(q.position(t,e,r),o);return O.scaleRect(i,r)}(e,o,s,p):function(t,e,o,r){var i=function(t,e){return t?{x:0,y:0}:q.scrollPosition(e)}(t,e),n=O.eitherRect(q.offset(t),o),s=2*r,a=q.stackingElementScroll(e);1!==r&&a&&(a.x/=s,a.y/=s);var p=q.stackingElementOffset(e);return 1!==r&&p&&(p.left/=s,p.top/=s),q.removeScroll(q.addScroll(O.removeStackingOffset(O.scaleRect(n,r),p),a),i)}(e,o,s,p),c=O.scaleRect(q.offset(o),p);return q.align({anchorAlign:r,anchorRect:l,elementAlign:i,elementRect:c,margin:n})};var Z,K={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1690377243,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"},J=(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)}),$=function(){return $=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},$.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,s=e.offset,a=e.anchor,p=e.margin,l=e.scale,c=e.positionMode,h=t.style,u=h.width,d=h.height;t.style.width=t.offsetWidth+"px",t.style.height=t.offsetHeight+"px";var f=function(t){var e=t.anchor,o=t.currentLocation,r=t.element,i=t.anchorAlign,n=t.elementAlign,s=t.collisions,a=t.margin,p=t.scale||1,l=q.offsetAtPoint(r,o),c=O.scaleRect(l,p),h=O.scaleRect(q.offset(e),p),u=O.eitherRect(h,o),d=t.viewPort||q.windowViewPort(r);d.width=d.width/p,d.height=d.height/p;var f=q.restrictToView({anchorAlign:i,anchorRect:u,collisions:s,elementAlign:n,elementRect:c,margin:a,viewPort:d}),v=q.addOffset(o,f.offset);return{flip:f.flip,flipped:f.flipped,offset:v}}({anchor:a,anchorAlign:r,element:t,elementAlign:i,collisions:n,currentLocation:Q({anchor:a,anchorAlign:r,element:t,elementAlign:i,offset:s,margin:p,positionMode:c,scale:l}),margin:o.props.margin});if(t.style.top=f.offset.top+"px",t.style.left=f.offset.left+"px",t.style.width=u,t.style.height=d,o._collisions={fit:f.fit,fitted:f.fitted,flip:f.flip,flipped:f.flipped},o.props.onPosition){var v={target:o,flipped:f.flipped,fitted:f.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,p=n.horizontal,l=n.vertical;i="left"===p&&"center"===l?"right":"right"===p&&"center"===l?"left":"top"===l?"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,p=n+"-active",l=function(e){e.target===t&&(t.removeEventListener("transitionend",l),s(t),t.style.display="exit"===r?"none":"",i())};t.addEventListener("transitionend",l);var c=t.ownerDocument;if(c){var h=c.defaultView;if(h){var u=function(){s(t),t.classList.add(n),h.requestAnimationFrame((function(){t.style.transitionDuration=o+"ms",t.classList.add(p)}))};a?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,p.s)(K),o.reposition=function(t,e,o){var r,i,n,s;void 0===o&&(o={});var a=0;o=o||{};var p=function(){a=!1===o.leading?0:(new Date).getTime(),r=void 0,s=t.apply(i,n),r||(i=n=null)};return function(){var l=(new Date).getTime();a||!1!==o.leading||(a=l);var c=e-(l-a);return i=void 0,n=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=void 0),a=l,s=t.apply(i,n),r||(i=n=null)):r||!1===o.trailing||(r=window.setTimeout(p,c)),s}}(o.reposition.bind(o),16.666666666666668),o}return J(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,s=t.collision,a=t.popupAlign,p=t.className,l=t.popupClass,c=t.style,h=t.offset,u=t.contentKey,d=$($({},e),{props:{show:o,anchor:r,anchorAlign:i,appendTo:n,collision:s,popupAlign:a,className:p,popupClass:l,style:c,offset:h,contentKey:u}});return t.show?e.current===et.hidden||e.current===et.hiding?$($({},d),{current:et.showing,previous:e.current}):e.current===et.showing?$($({},d),{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(s,e.props.collision)&&tt(a,e.props.popupAlign)&&tt(c,e.props.style)&&r===e.props.anchor&&l===e.props.popupClass&&p===e.props.className?d:$($({},d),{current:et.reposition,previous:e.current}):e.current===et.hiding||e.current===et.hidden?$($({},d),{current:et.hidden,previous:e.current}):$($({},d),{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,s=e.popupClass,a=e.show,p=e.id,u=e.positionMode,d=this.props.appendTo?this.props.appendTo:l.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 f=Object.assign({},{position:u,top:0,left:-1e4},this.props.style||{}),v=this.state.current===et.hiding;if((a||v)&&d){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:p,ref:function(e){return t._popup=e},style:$({zIndex:y},f)},r.createElement("div",{role:this.props.role,className:(0,h.A)("k-popup",s,"k-child-animation-container"),style:{transitionDelay:"0ms"}},o)));return null!==this.props.appendTo?i.createPortal(g,d):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=q.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,x,b]),vertical:n.oneOf([m,x,b])}),anchorAlign:n.shape({horizontal:n.oneOf([v,d,y]),vertical:n.oneOf([g,d,u])}),popupAlign:n.shape({horizontal:n.oneOf([v,d,y]),vertical:n.oneOf([g,d,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:x},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)},st=r.createContext((function(t){return t})),at=r.forwardRef((function(t,e){var o=r.useContext(st).call(void 0,t);return r.createElement(it,nt({ref:e},o))}));at.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"},8338:(t,e,o)=>{o.r(e),o.d(e,{AsyncFocusBlur:()=>Y,BrowserSupportService:()=>n,COLLECTION_ACTION:()=>tt,DragAndDrop:()=>Dt,Draggable:()=>Zt,Droppable:()=>Jt,FOCUSABLE_ELEMENTS:()=>oe,FormComponent:()=>y,Icon:()=>ut,IconWrap:()=>xt,IconsContext:()=>gt,Keys:()=>C,Navigation:()=>re,SvgIcon:()=>vt,Typography:()=>Tt,WatermarkOverlay:()=>F,ZIndexContext:()=>r.$,canUseDOM:()=>s.N,canUseRef:()=>a,classNames:()=>p.A,clone:()=>h,cloneArray:()=>f,cloneDate:()=>c,cloneObject:()=>u,cloneValue:()=>d,createPropsContext:()=>Z,dispatchEvent:()=>U,extendDataItem:()=>I,focusFirstFocusableChild:()=>v,getActiveElement:()=>ne,getInnerActiveElement:()=>ie,getItemPath:()=>D,getScrollbarWidth:()=>S,getTabIndex:()=>g,getter:()=>_,guid:()=>w,hasRelativeStackingContext:()=>V,kendoThemeMaps:()=>$t,mapTree:()=>L,mapTreeItem:()=>j,memoizeOne:()=>ee,noop:()=>k,setScrollbarWidth:()=>A,setter:()=>M,shouldShowValidationUI:()=>z.G,svgIconPropType:()=>ct,toIconClass:()=>lt,toIconName:()=>pt,useAsyncFocusBlur:()=>W,useCollection:()=>rt,useCustomComponent:()=>ot,useDir:()=>J,useDocument:()=>it,useDraggable:()=>Qt,useDroppable:()=>Kt,useMouse:()=>et,usePropsContext:()=>q,useRtl:()=>$,useWindow:()=>nt,useZIndexContext:()=>r.u,validatePackage:()=>z.s,withPropsContext:()=>K});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}(),s=o(7827),a=function(t){return"string"!=typeof Comment&&(function(t){return Boolean("function"==typeof t&&!!t.prototype.isReactComponent)}(t)||function(t){return Boolean(t.$$typeof&&"function"==typeof t.render)}(t))},p=o(8047),l=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]=d(r,e[o])}}function d(t,e){if(Array.isArray(t))return f(t);if(t instanceof Date)return c(t);if(l.isValidElement(t))return l.cloneElement(t,t.props);if(t&&"object"==typeof t){var o=e||{};return u(t,o),o}return t}function f(t){return t.map((function(t){return d(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 x(t){var e=[];return t.replace(m,(function(t,o,r,i){e.push(void 0!==o?o:r||i)})),e}var b={};function _(t){if(b[t])return b[t];var e=x(t);return b[t]=function(t){for(var o=t,r=0;r<e.length&&o;r++)o=o[e[r]];return o},b[t]}b.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},k=function(){},S=function(){return!(!s.N||!document.body)&&(new n).scrollbarWidth},A=function(){if(!s.N||!document.body)return!1;var t=(new n).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width","".concat(t,"px"))},P={undefined:function(t){return t}},O=function(t,e){return e&&e.arrays&&!isNaN(Number(t))?[]:{}};function M(t){if(P[t])return P[t];var e=x(t);return P[t]=function(t,o,r){for(var i=t,n=e.length-1,s=0;s<n&&i;s++)i=i[e[s]]=i[e[s]]||O(e[s+1],r);i[e[n]]=o},P[t]}var T=function(){return T=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},T.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 R(t,e,o){var r;return o?T(T({},t),((r={})[e]=o.length?E([],o,!0):void 0,r)):t&&t[e]?E([],t[e],!0):[]}function B(t,e,o){if(t[e]){var r=R(t,e).map((function(t){return B(t,e,o)}));return o(R(t,e,r))}return o(t)}var L=function(t,e,o){return E([],t.map((function(t){return B(t,e,o)})),!0)},j=function(t,e,o,r){for(var i=t,n=[],s=0;s<e.length;s++)i=i[e[s]],i=Array.isArray(i)?i:i[o],n.push(i);var a=n.length>1?n[n.length-2]:t,p=e[e.length-1],l=r(a[p]);a.splice(p,1,l)},I=function(t,e,o){var r;return Object.assign({},t,t[e]?((r={})[e]=t[e].slice(),r):{},o||{})},D=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},z=o(4006),V=function(t){if(!s.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},H=o(994),N=!1,F=function(){var t=l.useState(!0),e=t[0],o=t[1],r=l.useState(!1),i=r[0],n=r[1];l.useEffect((function(){N||(n(!0),N=!0)}),[]);var s=l.createElement(l.Fragment,null,e&&l.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",position:"fixed",top:"16px",right:"16px",padding:"12px",borderRadius:"4px",boxShadow:"0px 4px 5px 0px rgba(0, 0, 0, 0.04), 0px 2px 4px 0px rgba(0, 0, 0, 0.03)",fontSize:"14px",fontWeight:400,lineHeight:"20px",backgroundColor:"#FFC000",color:"#1E1E1E",zIndex:999}},l.createElement("span",{style:{display:"flex",alignSelf:"center",marginRight:"8px"}},l.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 1L0 15H16L8 1ZM7 6V11H9V6H7ZM7 14V12H9V14H7Z",fill:"#1E1E1E"}))),l.createElement("span",null,"No license found for KendoReact. Learn how to activate your license."),l.createElement("div",{style:{display:"flex",alignItems:"center",marginLeft:"24px"}},l.createElement("a",{href:"https://www.telerik.com/kendo-react-ui/components/my-license/",style:{marginRight:"8px",display:"flex"}},l.createElement("button",{title:"Learn More",style:{display:"inline-flex",position:"relative",border:"none",borderRadius:"4px",padding:"5px",backgroundColor:"transparent",transition:"color 0.2s ease-in-out",outline:"none",cursor:"pointer"}},l.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},l.createElement("path",{d:"M15 8C15 11.8656 11.8656 15 8 15C4.13437 15 1 11.8656 1 8C1 4.13437 4.13437 1 8 1C11.8656 1 15 4.13437 15 8ZM14 8C14 4.6875 11.3125 2 8 2C4.6875 2 2 4.6875 2 8C2 11.3125 4.6875 14 8 14C11.3125 14 14 11.3125 14 8ZM11 6C11 7.4125 10.2687 8.05937 9.73125 8.53125C9.25937 8.94688 9 9.17813 9 10H7C7 8.275 7.84688 7.525 8.40938 7.03125C8.84062 6.65312 9 6.50938 9 6C9 5.45 8.55 5 8 5C7.45 5 7 5.45 7 6H5C5 4.34375 6.34375 3 8 3C9.65625 3 11 4.34375 11 6ZM9 13V11H7V13H9Z",fill:"#1E1E1E"})))),l.createElement("button",{title:"Close",style:{display:"inline-flex",position:"relative",border:"none",borderRadius:"4px",padding:"5px",backgroundColor:"transparent",transition:"color 0.2s ease-in-out",outline:"none",cursor:"pointer"},onClick:function(){o(!1)}},l.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},l.createElement("path",{d:"M13 4.41562L9.41563 8L13 11.5844L11.5844 13L8 9.41563L4.41562 13L3 11.5844L6.58437 8L3 4.41562L4.41562 3L8 6.58437L11.5844 3L13 4.41562Z",fill:"#1E1E1E"}))))));return l.createElement(l.Fragment,null,l.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,right:0,bottom:0,opacity:.2,zIndex:101,pointerEvents:"none",backgroundImage:"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABVxSURBVHgB7Z3tVRtJE4WL9zgANgLLGRCCnAGOADmCxRGgDFAGYiOADKQMIAGO9J8ji42g37mjqlUjBgOanpn+uM85sjC2sKzbVd1dVV0tQgghhBBCCCGEEEIIKRPn3Gn1GAlJmmN1pP558J6OX9540ejh4WGlX09OTk7+EZIclXYXlY43+vVflY7PH3wd9c+AY/Wvvcb9/b0bjUYOz/hBQpICmh1oOPrEa6l/4rTR337AhIMgTSqtzg+0m8gnof7p0mD8EzmGhkFwJiR6np6e7luLL9Q/RTDTBzF+7wfWg2CxWOCHjYVET6XTdLPZrFuLL9Q/NeCkoVUQ4/d+6Ijev1yof1rAUVMvQgjJHebrSRu+CEmWo/O8hISgCjStKpgiGoDWed4AUP/hwGf++Pi4hQYyFHgDzBP3T7A8b0uo/zD4+sMBy1CwWKR/YjF+fS/Uv2di0t/eEAdBT0QnvlD/PolR/xoOgu4JUd7bFdS/e6I1foODoFuqz3M2mUziFF+of5dEb/xGwyAYCwmCVuPNYv5MqX94Yl75NWKD4PLyEm92KqQoqH9Y8Bnis0zC+A14LbxxVqiVCfUPh678plxNFYQe5pjRgAgpDAv4IOAHJyCEkDJoiPaeCyG5UA1oRIYWHNivSSbV0wLq/zbQXz+bS8kV/AeZJ35NCcYPqH8zvv4VS8kVFou8phTjB9T/NcVt+zgI9rjQDRwTgPrvKcn5v4CDYIfT/vtFiS/UHxRr/AYHwQ4t9DiVwihZ/+KN36ATKJsS9U+utr9r/EGQdQSUNFKa/geZkImQ/2rHlznnQDG7oX9b9Xwl5AUl6G9oLcSSxl8Q/p4P13YJIaQMisvzEkJ2lJjnJyQY3lnoJGfNUvP8oUhZf7c70s2eCG1wL7uhRJ0iQnCveiDIhzf7t/f9IvP8IUhJfx/b9rErUkvgRVPIE1fv6xrvbzweu7OzM3d7e4v3OhfSilT092HMJzCxF4u43eWctfFvt1uHu9nxXvF1CWmtroldfx9W+HVErINAjX+M65ngAPxnOAJ1AiMhrUjBCdD4Oya2QYBlPwx8vV47WwFg+a+XZbrz83NzANz/ByBmJ0Dj74lYBgECfrbnt6U/DB/vC7388L2rqyu8vzshwYjRCdD4e8YfBLidVgYA0X7M9jB8PGazmbu5ualnfiz9dSAsufwPTwz6+5jjp/H3CD5ofPB9343u9v3u6+U+0jyY7eEA8Hx3d4c/QjvvMyGdMZT+TeA9wBHR+DPHUn3T6bRe7uMxn89tn18v/TH7O17gQEheYM9vEX7M9hbsg/FbHED3/IPPSISQgNhyE0au+7x7PPtOQFcB3PMTMjTYf4cyRN3zL2DgMHgs/7XU99acgDIWEgUh9W/4uWMh8QKBvCh8qxSR7fmxt0eEv8kJ6MzP8/2REFL/g59bp/o0xsMAb6xAnBB5Yr+6D3X9KOpBxP/ACWA0jFnoEw+h9D/4mYd5/pGQeAlRLFK95tJy+35578PDQ+0E9LAPi3wixAUsFmKRT6I0DIIPzdJuf6R3i+UeZnsz/nqjPx47/fMpZ/54OVb/g5/BZi4pY4Pgo8s2d3CkF0Z/cXFRL/+Xy2W9BdBUH4/5JsBn9W94PZu5pI77QzMOjepiNp/j71hO//fv31sr7qmtfT73i3xWjnvAZHhH/4nquXrLwB2bueSJ27Vmvodhq4df4BmzvQb3IPxWl/zgRl/DwZA4GrhdYFUHfbHE1y0enXsJ2FLfCnggvjqBejDoTI8o38ocgJAscNq8BY4fv/Uf+J46gjkdQcbA+19fXzs7zQfR8TWcgH+kFw/u+fMDKz/o3OQETk9PLcWLPSBbeeWELd91eb+CcTc5gXr6r9J8PNKbF/7S3z+6DYcvDasBOv6M0GUduNDfv+cEYPhjIVmA+I3Vc4gaOQzfHAECvb4joAPICCzlrIJP93h/dAIYDBQ/L8wBNC37rXUblv5CB5AfGvi5h6F7Ed9GJ2CZP0b780O1vreVnnhOAFsBOoCMscg/HMBbTsCO+grJFkvvHmYCSnYA/5MMcbsiH6TykNgfr9fry58/f0oltFxcXMj379+l+h42gBcnJyfr6iXfq1nhJ56FZIeuAq+fn59Xv379Oq0CgVJNBEIydAAavLv98ePHeSX4bfX1OQSv9noQ/a7y9A8HTuAcTqB63FSPZyE5Mq3GwOW3b99kNpu9+5e/fv2Kp3+FpAW8vB3cwbLOOvZYfl9LfGdW9KOn+mZCskZXhCuL9vtLfjvshd97hWArpn8TxGn5rhZzOL/gB19DYBzzxcEeTQEtGfArB7c7xbmyVu4YExoTuNcYEL6eCkkTxHYOmna4wzQfvq8z/+o949e940hIkjTp5/ZXjm/1+VQfr856UP/EcLtqr9s/OQENDl5+wPhH3nHQZK6mJjucNvNo2w+A+icC0jaY4a2LT5MT+Mye3+l58JSupiY7XIA2XtQ/IZw2f7D9v+X6D53AZ/f8LqGrqckOF7CNF/VPAF3Or6xvv53r951Amx5+DYOAXWEjxXXQxov6R4zTSzusht8OfABE+r3U39y1iPbbIODVX3ED4/Tagk8kENQ/QiyaC1Fg7PX6frm0Mk6/wUOQ8l799+j9I0cDwcF1ov4R4Xbde2vjxi92ogsPzPrY92szD7buJiQn3K6+v17q2yxvlV1u3+TRAn4jIYTkAfbymOWx1AcwfHMEXp5/JISQ9PEDd867ohvGbvt+cwRe6+5ee7ltNpuVf7yYdA8+68fHxy0+exkY6t8RGnSxJX19yAd7fWvhjEs7NOCHb2D9/+AGqO3HQGSeuD/8PD/GggwM9e8IBPCwr7ciHnzA6NrqtW5+4QRkIByLRXrDRXhXH/XvCKRccEuPX8mHD9jr7Vc7AV32D9rJh4Oge2I0foP6d8QHnADO9kdxYw8HQXfEbPwG9e+It5yAlvdG1beNgyA8KRi/Qf07oskJIEYQw8x/SMMgGAs5CmR0UjF+g/oHwh00YzAn0OZgT1/YINBU5VTIUeCzw2eYivEb1L8l7o1mDm7X220a48x/iNtVLE4dC5OOxu2794wlMaj/kbgAzRwIIQmS4p6PEBKIp6enexo/IYWCPdNms1nnbPxat7BwvH/+P7Dt08/kUjKH+hcOxGeeeI8f86lYSuZQ/8JhsciehoBv9rMi9VdcwZcucBCkVeEXmuL1dy0vbciBkgdBycZvFKs/8/x7ShwENP49xelP8V9T0iBgncdritGfxv82/iDIORJ+EAGfCKnJXn8a//to7fgy51y45sCX1P812erPZR8hBVMZ/Ax9+2j8hBSIHumcpXikkxBCBsXtz8QnUyXndvfz8Sx8AFLUnwTEveyKE32KyAK+7IYThqT0V88/o+cPBz7TVPLEJdb2d00y+pv4elHHTEgwUigWYaq3O6LXn56/e2IeBDT+7olWf4rfHzEOAurfH9HpT/H7J6ZBQP37Jxr9Kf5w+IMAt9PKQOB6NurfP4Prjyg/jX9Y8JnDAHE/vQwE/m0MQOrfP4PqX/3jp15Dj4kQQspCK5SK7OZDCCGEEBIfbneH4kgCoT9vLCQJguqPaD8CDdXzlZDogaEuFotgKSLL9uBnYmAJiZqg+vupPlzbJSR6YKSh8sSODVyTI5j+LO9NlxDFIqzzSJfW+jPPnz4Ng+DDGRvqnz5t9GeePxNsEHx2+U798+BY/e3FzPNnwLE6Uv88oI6EEEIIIYQQQgghhBBCCCGEEEIIIYQQQkiRoHyQxz/T51gdqX8evKfjlzdeNHp4eFjp15OTk5N/hCQHjoFWOt7o139VOj5/8HXUPwOO1f+/02ApXEhJmmnTzIP6p49r28wlRFMJMgwhmnlQ/3RB854g/RwaBgF7wkVOyGYe1D9N0L4vWDMXGwTaFHIsJGpgpF5TyIm0hPqnR6XTdLPZrF2oZi7aVIDePxFgqCH1ov6EEEIIITHRtl7jixBCkuToPH8ocGMQrihmiqh/8Jnjau6hrwen/sPQOs8fAgxA5on7xxcfBigDQf2HIUSdR6g3wmKRnolGfKH+QxCT/vaGOAh6Ijrxhfr3SYz613AQdE+04gv174Ng5b1dwUHQHTEbv0H9u6X6PGeTySTu69oaBsFYSCui9/we1L87tBpzFv1naoPg8vISA2AqpBX4DPFZxm78BvUn9awF8R07yrRGPf80pdmU+hNCyJHoYa4ZHSghhWEBXwT84ASEEFIGDdmec8mJ6j+EyNAiu/9YACC+fjaXkinU/21SSPW2BuIzT/waX/yKpWQK9W+mCOMHLBZ5TfbLPg/q/5pijN/gINhTnPhC/X1cwAauScFBUKbxG9R/h9P7F0rTv6bkQVCy8Rt0Aju00OtUSqTEQZBSbX/X0AmQF4Mg5wi4cRAJn0jhlKY/aUBrx5c558ANzYUvafx7StAfqxv0UKyer4QQUg5+zAfXdgkhpAxKqvMghHgUm+cPhdufhU/Oa+qRTp6Jb0HK+oOi8/whcC+74SSTIrJlH7vitCMl/RHcqx4I8uHN/u19v9w8f1swi6aWJ+aeLxyp6F+9r2u8v/F47M7Oztzt7S3e61xIe1IqFmGFX3hi19/tLuesjX+73brFYlG/V3xdQlq7F1JwAjT+7ohVfzX+Ma5ngwPwn+EI1AmMhLQnZidA4++e2PTHsh8Gvl6vna0AsPzXy1Ld+fm5OQDu/0MRoxOg8fdHLPoj4Gd7flv6w/DxvtDLD9+7urrC+7sTEhZ/EOB2WhkYE57G3w8x6I9oP2Z7GD4es9nM3dzc1DM/lv46FpZc/ncEBgEMD7XVMjB4DxiINP7+GEp/t7/voF7uI0WJ2R4OAM93d3f4I7TzPhNCSD5Yqm86ndbLfTzm87nt8+ulP2Z/x+vQCMkL7Pktwo/Z3oJ9MH6LA+ief/AVKSEkILbdgJHr3v4ez74T0FUA9/wxgP1XF0Lozx0LiZqQ+uuefwEDh8Fj+a+lvrfmBJSxkOGBEF4UNliKyFJ9usdjgCdSQupve37s7RHhb3ICOvPzfH8swDhD54kb8vwjIVESSn+/ug91/SjqQcT/wAlgNhiz0CcyQhaLsMgnPULoX73m0nL7fnnvw8ND7QT0sA+LfGKlYRB82ks7NnNIlmP1d/sjvVtsJTDbm/HXG/3x2OmfTznzR44NgmOX7Y7NHJLms/q7gyO9MPqLi4t6+b9cLustgKb6eMw3FdwfmjFggKg3X71l4I7NHJLmHf3PVPs5/o7l9H///r214p7a2udzv8hn5RgDShsN3Czg1SE4lom6xKO4heB2rdnvYdi6QljgGbO9BvfgOLa65Ac3+hpOBinjtHkDhMdv/Qe+p45gTkeQL7bUtwIeaK5OoJ4MdKZHlG9lDkBIPsDzQ/QmJ3B6emopHqwB2corQzDDX19fOzvNh7GAr+EE/CO9eHDPnxH+0t8/ugnBpWE1QOHzwpbvurxfwbibnEA9/VdpPh7pzQjs3yyfK2rkMHxzBAj0+I6ADiAvdFsHLvT37zkBGP5YSB6YA2ha9lvrJiz9hQ4gO7CVswo+jfH80QlgMqD2GaKC35unF88JYCtAB5AnGvi9h6F7GZ9GJ2CZP0b7M8XSO4eZADqAvLHIPxzAW07AjvpKYfxPCkBngevn5+fVr1+/TqtAoFQDQUieuF2RD1J5SOyP1+v15c+fP6Vy9HJxcSHfv3+X6nsIAF2cnJysq5d8r1YAP/EshVGEA6iYVkZ/+e3bN5nNZu/+5a9fv+LpXyHJocG72x8/fpxXDv+2+vocDr+K9cDp31UrvYcDJ3AOJ1A9bqrHs5D80BlhZdF+f8lvhz3we68QZMX0T3pglWcHd6Cjdeyx/L6W+M6s6EdP9c2ElIHbneJaWStnFIRoTOBe94D4eiokSZyW72oxl/MLfvA1jB6642CPpoCXDPhljO79RwffG6kj2OrzqT5e1Xo3vZ7EC2K7B0073GGaD9/XmX/1nvFT/4Rx2syjbT+AIW+gIZ/D7ao9b//kBDQ4ePkB46f+qeICtPFy2g8gpavJSwZpW8zw1sWnyQl8Zs9P/RPFBWzj5RK6mrxkTCfb/1uu/9AJfHbPT/0Tw3XQxqthELArcETocn5lffvtXL/vBNr08KP+CQFxvLbQEwmEDQJe/RQXTi/tsBp+O/AFEOn3Un9z1yLaT/0TQgNBwb20Zg/o/SPBsjkwShh7vb5fLq2M22/wEqS8V/+9sRBChsXtuvfWxo1f7EQnHpj1se/XZh5s3U1ITrhdfX+91LdZ3io73b7JqwX8RkIIyQPs5THLY6kPYPjmCLw8/0hI3iAd8/j4uN1sNisZGLwH/3gpCYcfuHPeFd0wdtv3myPwWnf32suR+veMn+fHBy8DA0fEPHF4NOhmS/r6kA/2+tbCHZd2aMAP38D6/8ENUNtP/XvERXhXn2OxSCcggId9vRXx4LNF12avdfsLJyADQf17IkbjNzgIwoOUK27p8Sv58Nl6vf1qJ6DL/kE7+VD/jonZ+A0OgvB8wAngbH8UN/ZQ/45IwfgNDoLwvOUEtLw3qr6N1D8wiOimYvxGwyAYC2lFkxNAjCCGmf8Q6h8QRHeR7knF+A0bBJqqmgr5NO6gGYc5gTYHe/qC+gfC7bv3jCUx3K5ibepYmPJp3BvNXNyut+M0xpn/EOpPyBG4AM1cCCEJkmLMhxASiKenp3saf4Fg2Vc9FsjpSuZo3hr/115r1lMAe+bNZrPO2fip/wH+nq9iKZkD8ZknLhfq79EQ8MneK7JYpGyov5JShV9oOAjKvnSjeP1LNn6j5EHgWl7akgPF6k/j31PiIGCef09x+jPP+5qSBgGd/2uKcgIHEdCJkBp/EOSaCaHxv00J+tdoDnRJ8V+jtePLHGshaPzvk7P+pGC47SOkYCqDn6FvH42fkAJxuyPdaN01FlIGbnc/37TkFE8o3L4nAmvHCyQ5/S3gw24oYXAvuyKxbLgwktK/xNr+rsFqKpU8sa78Zlz5hSMZ/Znq6Y4UikVMf72oYyYkGNHrT+PvnpgHAVd+3ROt/jT+/ohxEFD//ohOf4rfPzENAurfP1E5AVzPRPH7xx8EuJ1WBoDGPxyH+ruhjlTjbnR9AxMhvYLPHA4YGkjPIMpP4x+WIfUnhYMZx2voMRFCSFlohVqR3XwIIaQc3O5OtrGQJFC9RkKKRCsyRxICi/YuFgvs986ERA3Eh1ahUkT4GQg0Vc9XQqInqP6ODRyTA046VJ7Y1x/XdgmJnmD6M8+bLiGKRVjemy6t9WeeN30aBsGHI/bUP33a6M88bybYIPjs9o3658Gx+tuLmefNgGN1pP55QB0JIYQQQgghhBBCCJGy+T9ftRg+rVNPfAAAAABJRU5ErkJggg==')"}}),i&&H.createPortal(s,document.body))};function U(t,e,o,r){if(t){var i={syntheticEvent:e,nativeEvent:e.nativeEvent,target:o};t.call(void 0,Object.assign(i,r))}}var G=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 W(t){var e=t.onFocus,o=t.onBlur,r=t.onSyncFocus,i=t.onSyncBlur,n=l.useRef(!1),s=l.useRef(0),a=l.useCallback((function(t){clearTimeout(s.current),s.current=window.setTimeout((function(){return t()}))}),[s]),p=l.useCallback((function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];clearTimeout(s.current),r&&r.call(void 0,t[0]),n.current||(n.current=!0,e&&e.call.apply(e,G([void 0],t,!1)))}),[n,e,r]),c=l.useCallback((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];i&&i.call(void 0,t[0]),a((function(){n.current&&o&&(n.current=!1,o.call.apply(o,G([void 0],t,!1)))}))}),[n,a,o,i]);return l.useEffect((function(){return function(){clearTimeout(s.current)}}),[]),{onFocus:p,onBlur:c}}var 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)},Y=function(t){var e=t.children,o=W({onFocus:t.onFocus,onBlur:t.onBlur,onSyncFocus:t.onSyncFocus,onSyncBlur:t.onSyncBlur});return l.createElement(l.Fragment,null,e.call(void 0,X({},o)))},q=function(t,e){return l.useContext(t)(e)},Q=function(){return Q=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},Q.apply(this,arguments)},Z=function(){return l.createContext((function(t){return t}))},K=function(t,e){return l.forwardRef((function(o,r){var i=q(t,o);return l.createElement(e,Q({},i,{ref:r}))}))};function J(t,e,o){var r=l.useState(e),i=r[0],n=r[1];return l.useEffect((function(){if(!i&&window&&t.current){var e=window.getComputedStyle(t.current).direction;e&&n(e)}}),o),i}function $(t,e,o){var r=l.useState(e),i=r[0],n=r[1];return l.useEffect((function(){if(!i&&window&&t.current){var e=window.getComputedStyle(t.current).direction;e&&n(e)}}),o),i}var tt,et=function(t,e,o){void 0===o&&(o={});var r=l.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=l.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:l.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:l.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:l.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:l.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:l.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:l.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:l.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])}},ot=function(t){return[t,{}]};!function(t){t[t.add=0]="add",t[t.remove=1]="remove"}(tt||(tt={}));var rt=function(t){void 0===t&&(t=[]);var e=l.useRef(t),o=l.useCallback((function(t){switch(t.type){case tt.add:e.current.push(t.item);break;case tt.remove:var o=e.current.indexOf(t.item);e.current.splice(o,1)}}),[]);return[e.current,o]},it=function(t){var e=l.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]);return l.useCallback((function(){var t=e();return t&&t.ownerDocument||document}),[e])},nt=function(t){var e=it(t);return l.useCallback((function(){var t=e();return t&&t.defaultView||window}),[e])},st=o(189),at={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"},pt=function(t){return t.replace(/^k-i-/,"")},lt=function(t){return"k-i-"+t},ct=st.shape({name:st.string.isRequired,content:st.string.isRequired,viewBox:st.string.isRequired}),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=l.forwardRef((function(t,e){var o=t.className,r=t.name,i=t.themeColor,n=t.size,s=t.flip,a=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"]),d=l.useRef(null),f=l.useRef(null);l.useImperativeHandle(d,(function(){return{element:f.current}})),l.useImperativeHandle(e,(function(){return d.current}));var v=l.useMemo((function(){return n||dt.size}),[n]),y=l.useMemo((function(){return s||dt.flip}),[s]),g=l.useMemo((function(){var t;return(0,p.A)("k-icon",r&<(r),((t={})["k-color-".concat(i)]=i,t["k-flip-h"]="horizontal"===y||"both"===y,t["k-flip-v"]="vertical"===y||"both"===y,t),at[v],o)}),[r,i,v,y,o]),m=et(t,d);return l.createElement("span",ht({ref:f},u,m,{className:g,id:c,tabIndex:h,style:a,role:"presentation"}))}));ut.propTypes={style:st.object,classNames:st.string,name:st.string,themeColor:st.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:st.oneOf(["default","xsmall","small","medium","large","xlarge","xxlarge","xxxlarge"]),flip:st.oneOf(["default","horizontal","vertical","both"])};var dt={size:"default",flip:"default"};ut.displayName="KendoIcon";var ft=function(){return ft=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},ft.apply(this,arguments)},vt=l.forwardRef((function(t,e){var o=t.children,r=t.className,i=t.svgClassName,n=t.icon,s=t.flip,a=t.id,c=t.tabIndex,h=t.size,u=t.style,d=t.svgStyle,f=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=l.useRef(null);l.useImperativeHandle(e,(function(){return{element:g.current}}));var m=l.useMemo((function(){return n?n.name:yt.icon}),[n]),x=l.useMemo((function(){return h||yt.size}),[h]),b=l.useMemo((function(){return s||yt.flip}),[s]),_=l.useMemo((function(){return v||yt.viewBox}),[v]),w=l.useMemo((function(){var t;return(0,p.A)("k-svg-icon","k-svg-i-"+m,((t={})["k-color-".concat(f)]=f,t["k-flip-h"]="horizontal"===b||"both"===b,t["k-flip-v"]="vertical"===b||"both"===b,t),at[x],r)}),[m,f,x,b,r]),C=l.useMemo((function(){return t.width&&t.height?ft({width:t.width,height:t.height},u):t.width?ft({width:t.width,height:t.width},u):t.height?ft({width:t.height,height:t.height},u):ft({},u)}),[t.width,t.height,u]);return l.createElement("span",{className:w,style:C,ref:g},l.createElement("svg",ft({id:a,className:i,style:d,"aria-hidden":!0,tabIndex:c,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:n?n.viewBox:_,dangerouslySetInnerHTML:n?{__html:n.content}:void 0},y),n?void 0:o))}));vt.propTypes={style:st.object,classNames:st.string,children:st.any,icon:st.object,themeColor:st.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:st.oneOf(["default","xsmall","small","medium","large","xlarge","xxlarge","xxxlarge"]),flip:st.oneOf(["default","horizontal","vertical","both"])};var yt={size:"default",flip:"default",icon:"",viewBox:"0 0 24 24"};vt.displayName="KendoSvgIcon";var gt=l.createContext({type:"svg"});gt.displayName="KendoReactIconsContext";var mt=function(){return mt=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},mt.apply(this,arguments)},xt=l.forwardRef((function(t,e){var o,r=l.useContext(gt),i=r.type,n=r.icons,s=t.icon,a=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"]),p=(null===(o=t.icon)||void 0===o?void 0:o.name)||t.name,c=p&&n&&n[p]&&"string"!=typeof n[p]?n[p]:s;return p=p&&n&&n[p]&&"string"==typeof n[p]?n[p]:p,"svg"===i&&c?l.createElement(vt,mt({},t,{icon:c,ref:e})):l.createElement(ut,mt({},a,{name:p,ref:e}))}));xt.displayName="KendoIconWrap";var bt={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},_t={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},wt={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"},Ct={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},kt={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},St={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},At={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},Pt={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"},Ot=function(){return Ot=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},Ot.apply(this,arguments)},Mt=function(t){var e=l.forwardRef((function(e,o){var r=e.id,i=e.style,n=e.className,s=e.fontSize,a=e.fontWeight,p=e.textAlign,c=e.textTransform,h=e.themeColor,u=e.margin,d=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"]),f=l.useRef(null),v=l.useRef(null);l.useImperativeHandle(f,(function(){return{element:v.current,props:e}})),l.useImperativeHandle(o,(function(){return f.current}));var y=t;return l.createElement(y,Ot({id:r,ref:v,className:["k-".concat("p"===t?"paragraph":t),bt[s],_t[a],St[p],At[c],Pt[h],function(){if(void 0!==u){if("string"==typeof u)return[wt[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])?Ct[r]:r,"".concat(kt[o]).concat(i)))})),t.join(" ")}}}(),n].filter((function(t){return void 0!==t})).join(" "),style:i},d),e.children)}));return e.propTypes={style:st.object,className:st.string,fontSize:st.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:st.oneOf(["light","normal","bold"]),margin:st.oneOfType([st.number,st.object,st.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:st.oneOf(["left","right","center","justify"]),textTransform:st.oneOf(["lowercase","uppercase","capitalize"]),themeColor:st.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},e.displayName="KendoReactTypography".concat(t.toUpperCase()),e},Tt={h1:Mt("h1"),h2:Mt("h2"),h3:Mt("h3"),h4:Mt("h4"),h5:Mt("h5"),h6:Mt("h6"),p:Mt("p"),code:Mt("code"),pre:Mt("pre")},Et=function(){return Et=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},Et.apply(this,arguments)},Rt=function(t,e,o){var r=l.useState(e||t),i=r[0],n=r[1];return[void 0!==e?e:i,l.useCallback((function(t,e){n(t),o&&o.call(void 0,Et(Et({},e),{value:t}))}),[o,n])]},Bt=l.createContext([void 0,k]),Lt=l.createContext([void 0,k]),jt=l.createContext([[],k,k]),It=l.createContext([[],k,k]),Dt=function(t){var e=Rt(null,void 0),o=e[0],r=e[1],i=Rt(null,void 0),n=i[0],s=i[1],a=rt([]),p=a[0],c=a[1],h=rt([]),u=h[0],d=h[1];return l.createElement(Bt.Provider,{value:[o,r]},l.createElement(Lt.Provider,{value:[n,s]},l.createElement(jt.Provider,{value:[p,function(t){c({type:tt.add,item:t})},function(t){c({type:tt.remove,item:t})}]},l.createElement(It.Provider,{value:[u,function(t){d({type:tt.add,item:t})},function(t){d({type:tt.remove,item:t})}]},t.children))))};Dt.displayName="KendoReactDragAndDrop";var zt,Vt=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},Ht=function(t){return t&&t.ownerDocument||window.document},Nt=function(t){var e=Vt(),o=Ht(t);return e.edge||e.safari?o.body:o.documentElement},Ft=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},Ut=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&&!Ft(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"}(zt||(zt={}));var Gt=function(){},Wt=function(t,e,o){void 0===o&&(o={});var r,i,n,s,a,p=o.onIsPressedChange,l=void 0===p?Gt:p,c=o.onIsScrollingChange,h=void 0===c?Gt:c,u=o.onVelocityChange,d=void 0===u?Gt:u,f=o.onOffsetChange,v=void 0===f?Gt:f,y=o.onPageOffsetChange,g=void 0===y?Gt:y,m=o.onClientOffsetChange,x=void 0===m?Gt:m,b=o.onScrollOffsetChange,_=void 0===b?Gt:b,w=o.onInitialScrollOffsetChange,C=void 0===w?Gt:w,k=e.payload,S=k.element,A=k.hint,P=t.autoScrollDirection,O=t.scrollableParent,M=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(M.type){case zt.POINTER_DOWN:if(M.type===zt.POINTER_DOWN&&(!M.originalEvent.isPrimary||0!==M.originalEvent.button))break;case zt.MOUSE_DOWN:if(M.type===zt.MOUSE_DOWN&&M.originalEvent.which&&M.originalEvent.which>1||t.ignoreMouse)break;case zt.TOUCH_START:if(M.type===zt.TOUCH_START&&1!==M.originalEvent.touches.length)break;case zt.START:var T=O||Ut(e.payload.element);C(T instanceof Window?{x:T.scrollX,y:T.scrollY}:{x:T.scrollLeft,y:T.scrollTop}),x({x:M.clientX,y:M.clientY}),g({x:M.pageX,y:M.pageY}),v({x:M.offsetX,y:M.offsetY}),l(!0),k.onPress&&k.onPress(M);break;case zt.SCROLL:if(M.type===zt.SCROLL&&!t.pressed)break;var E=O||Ut(S),R=E instanceof Window?{x:E.scrollX,y:E.scrollY}:{x:E.scrollLeft,y:E.scrollTop};M.scrollX=R.x-t.initialScrollOffset.x,M.scrollY=R.y-t.initialScrollOffset.y,_({x:M.scrollX,y:M.scrollY});case zt.POINTER_MOVE:if(M.type===zt.POINTER_MOVE&&!M.originalEvent.isPrimary)break;case zt.MOUSE_MOVE:case zt.TOUCH_MOVE:if(M.type===zt.TOUCH_MOVE&&1!==M.originalEvent.touches.length)break;case zt.MOVE:if(t.pressed){if(t.autoScroll&&"scroll"!==M.originalEvent.type&&S){var B=Ht(S),L=O||Ut(B.elementFromPoint(M.clientX,M.clientY)),j=(r=M.clientX,i=M.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=Ht(t);return e&&e.defaultView||window}(S)),s={x:0,y:0},a=50,r-n.left<a?s.x=-(a-(r-n.left)):n.right-r<a&&(s.x=a-(n.right-r)),i-n.top<a?s.y=-(a-(i-n.top)):n.bottom-i<a&&(s.y=a-(n.bottom-i)),s);d({x:P&&!1===P.horizontal?0:j.x,y:P&&!1===P.vertical?0:j.y}),h(0!==j.y||0!==j.x)}!t.drag&&k.onDragStart&&k.onDragStart(M),k.onDrag&&k.onDrag(M);var I=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),s=Math.min(r.left+r.width,o.left+o.width),a=Math.min(r.top+r.height,o.top+o.height),p=s-n,l=a-i;if(n<s&&i<a){var c=r.width*r.height,h=o.width*o.height,u=p*l;return Number((u/(c+h-u)).toFixed(4))}return 0}(t,e);i>o&&(o=i,r=e)}})),r}(A||S,t.drops.map((function(t){return t&&t.element})).filter((function(t){return t!==(A||S)}))),D=t.drops.find((function(t){return t.element===I}));D&&I&&function(t,e,o){var r=o.getBoundingClientRect();return r.top<=e&&r.left<=t&&e<=r.bottom&&t<=r.right}(M.clientX,M.clientY,O||Ut(I))&&I!==S?(t.drop&&t.drop.element)!==I?(t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(M),D.onDragEnter&&D.onDragEnter(M)):D.onDragOver&&D.onDragOver(M):t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(M)}x({x:M.clientX,y:M.clientY}),g({x:M.pageX,y:M.pageY});break;case zt.POINTER_UP:if(M.type===zt.POINTER_UP&&!M.originalEvent.isPrimary)break;case zt.MOUSE_UP:case zt.TOUCH_END:if(M.type===zt.TOUCH_END&&1!==M.originalEvent.touches.length)break;case zt.END:l(!1),h(!1),_({x:0,y:0}),k.onRelease&&k.onRelease(M),t.drop&&t.drop.onDrop&&t.drop.onDrop(M),t.drag&&k.onDragEnd&&k.onDragEnd(M);break;case zt.POINTER_CANCEL:case zt.CONTEXT_MENU:case zt.TOUCH_CANCEL:case zt.CANCEL:l(!1),h(!1),_({x:0,y:0}),k.onDragEnd&&k.onDragEnd(M),t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(M)}},Xt=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,s=t.scrollLeft+e.x,a=r&&s>0&&s<t.scrollWidth;n?t.scrollTop+=e.y:o&&i<0&&(t.scrollTop=0),a?t.scrollLeft+=e.x:r&&s<0&&(t.scrollLeft=0)}},Yt=function(t,e){var o=l.useContext(t),r=o[0],i=o[1],n=l.useState(e),s=n[0],a=n[1];return[void 0!==r?r:s,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];void 0!==r?i.apply(void 0,t):a(t[0])}]},qt=2e3;function Qt(t,e,o){void 0===o&&(o={});var r=e.onPress,i=void 0===r?k:r,n=e.onRelease,s=void 0===n?k:n,a=e.onDragStart,p=void 0===a?k:a,c=e.onDrag,h=void 0===c?k:c,u=e.onDragEnd,d=void 0===u?k:u,f=o.hint,v=void 0===f?null:f,y=o.mouseOnly,g=void 0!==y&&y,m=o.autoScroll,x=void 0===m||m,b=o.scrollContainer,_=void 0===b?null:b,w=l.useState(!1),C=w[0],S=w[1],A=l.useState(!1),P=A[0],O=A[1],M=Yt(Lt)[0],T=Yt(Bt),E=T[0],R=T[1],B=l.useContext(It)[0],L=l.useContext(jt),j=L[0],I=L[1],D=L[2],z=l.useRef({x:0,y:0}),V=l.useRef(),H=l.useRef(!1),N=l.useRef(),F=l.useRef(null),U=l.useRef(!1),G=l.useRef({x:0,y:0}),W=l.useRef({x:0,y:0}),X=l.useRef({x:0,y:0}),Y=l.useRef({x:0,y:0}),q=l.useRef({x:0,y:0}),Q=l.useRef({x:0,y:0}),Z=Boolean("undefined"!=typeof window&&window.PointerEvent),K=!g&&Z,J=l.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]),$=l.useCallback((function(){return v&&v.current&&v.current.element?v.current.element:v?v.current:null}),[v]),tt=l.useCallback((function(){return _&&_.current&&_.current.element?_.current.element:_?_.current:null}),[_]),et=l.useCallback((function(){return"object"==typeof x&&x.boundaryElementRef&&x.boundaryElementRef.current&&x.boundaryElementRef.current.element?x.boundaryElementRef.current.element:"object"==typeof x&&x.boundaryElementRef&&x.boundaryElementRef.current?x.boundaryElementRef.current:null}),[x]),ot=l.useRef(null);l.useImperativeHandle(ot,(function(){return{element:J(),hint:$(),onPress:vt,onDragStart:gt,onDrag:mt,onDragEnd:xt,onRelease:yt,data:t.current}}));var rt=l.useCallback((function(){var t=J();return t&&t.ownerDocument||document}),[J]),it=l.useCallback((function(){var t=rt();return t&&t.defaultView||window}),[rt]),nt=l.useCallback((function(){return{drag:E?E.current:null,drop:M?M.current:null,drags:j.map((function(t){return t.current})),drops:B.map((function(t){return t.current})),pressed:C,ignoreMouse:H.current,scrollOffset:q.current,offset:G.current,pageOffset:W.current,initialScrollOffset:Q.current,clientOffset:X.current,initialClientOffset:Y.current,velocity:z.current,autoScroll:Boolean("object"==typeof x?!1!==x.enabled:x),scrollableParent:et(),autoScrollDirection:"object"==typeof x?x.direction:{horizontal:!0,vertical:!0},isScrolling:P}}),[E,M,j,B,C,x,et,P]),st=l.useCallback((function(t){S(t)}),[]),at=l.useCallback((function(t){O(t)}),[]),pt=l.useCallback((function(t){z.current=t}),[]),lt=l.useCallback((function(t){G.current=t}),[]),ct=l.useCallback((function(t){X.current=t}),[]),ht=l.useCallback((function(t){W.current=t}),[]),ut=l.useCallback((function(t){Y.current=t}),[]),dt=l.useCallback((function(t){q.current=t}),[]),ft=l.useCallback((function(t){Q.current=t}),[]),vt=l.useCallback((function(t){i(t)}),[i]),yt=l.useCallback((function(t){s(t)}),[s]),gt=l.useCallback((function(e){R(ot,{target:t.current,event:e}),p(e)}),[R,t,p]),mt=l.useCallback((function(t){h(t)}),[h]),xt=l.useCallback((function(e){U.current||(R(null,{target:t.current,event:e}),d(e))}),[d,R,t]),bt=l.useCallback((function(t){Wt(nt(),{event:t,payload:ot.current},{onVelocityChange:pt,onOffsetChange:lt,onClientOffsetChange:ct,onPageOffsetChange:ht,onInitialClientOffsetChange:ut,onScrollOffsetChange:dt,onInitialScrollOffsetChange:ft,onIsPressedChange:st,onIsScrollingChange:at})}),[nt,pt,lt,ht,ct,ut,ft,st,dt,at]),_t=l.useCallback((function(t){bt(t)}),[bt]),wt=l.useCallback((function(t){bt(t)}),[bt]),Ct=l.useCallback((function(t){bt(t)}),[bt]),kt=l.useCallback((function(t){bt(t)}),[bt]),St=l.useCallback((function(t){bt(t)}),[bt]),At=l.useCallback((function(t){bt(t)}),[bt]),Pt=l.useCallback((function(t){bt(t)}),[bt]),Ot=l.useCallback((function(t){t.preventDefault(),bt(t)}),[bt]),Mt=l.useCallback((function(t){t.preventDefault(),bt(t)}),[bt]),Tt=l.useCallback((function(t){t.preventDefault(),bt(t)}),[bt]),Et=l.useCallback((function(t){if(0===t.touches.length&&1===t.changedTouches.length){var e=it();H.current=!0,N.current=e.setTimeout((function(){H.current=!1}),qt)}bt(t)}),[bt,it]),Rt=l.useCallback((function(t){bt(t)}),[bt]),Dt=l.useCallback((function(){var t=J();if(t){var e=t.style.touchAction;return t.style.touchAction="none",function(){t.style.touchAction=e}}}),[J]),zt=l.useCallback((function(){return I(ot),function(){D(ot)}}),[D,I]);l.useEffect((function(){var t=it();if(P){var e=tt()||Ut(document.elementFromPoint(X.current.x,X.current.y));t.clearInterval(V.current),V.current=t.setInterval((function(){Xt(e,{x:z.current.x,y:z.current.y})}),50)}return function(){t.clearInterval(V.current)}}),[J,tt,it,P]),l.useEffect(Dt,[Dt]),l.useEffect((function(){var t=it(),e=J(),o=rt();return K?(e&&(F.current=Ut(e),F.current&&F.current.addEventListener("scroll",Rt,{passive:!0}),e.addEventListener("pointerdown",_t,{passive:!0})),C&&(o.addEventListener("pointermove",wt),o.addEventListener("pointerup",kt,!0),o.addEventListener("contextmenu",Ot),o.addEventListener("pointercancel",Ct,{passive:!0}))):(t.addEventListener("touchmove",k,{capture:!1,passive:!1}),e&&(e.addEventListener("mousedown",St,{passive:!0}),g||(e.addEventListener("touchstart",Mt,{passive:!0}),C&&(e.addEventListener("touchmove",Tt,{passive:!0}),e.addEventListener("touchend",Et,{passive:!0})))),C&&(o.addEventListener("mousemove",At,{passive:!0}),o.addEventListener("mouseup",Pt,{passive:!0}))),function(){F.current&&F.current.removeEventListener("scroll",Rt),e&&(e.removeEventListener("pointerdown",_t),e.removeEventListener("mousedown",St),e.removeEventListener("touchstart",Mt),e.removeEventListener("touchmove",Tt),e.removeEventListener("touchend",Et)),o.removeEventListener("pointermove",wt),o.removeEventListener("pointerup",kt,!0),o.removeEventListener("contextmenu",Ot),o.removeEventListener("pointercancel",Ct),o.removeEventListener("mousemove",At),o.removeEventListener("mouseup",Pt),t.removeEventListener("touchmove",k),t.clearTimeout(N.current)}}),[C,it,J,rt,g,K,Ot,St,At,Pt,Ct,_t,wt,kt,Et,Tt,Mt,Rt]),l.useEffect((function(){return U.current=!1,function(){U.current=!0}}),[]),l.useLayoutEffect(zt,[zt])}var Zt=l.forwardRef((function(t,e){var o=l.useRef(null),r=l.useRef(null),i=l.useCallback((function(){return o.current&&o.current.element?o.current.element:o.current}),[o]);l.useImperativeHandle(r,(function(){return{element:i()||null}})),l.useImperativeHandle(e,(function(){return r.current})),l.useImperativeHandle(t.childRef,(function(){return o.current}));var n=l.useCallback((function(e){t.onPress&&t.onPress({element:i(),target:r.current,event:e})}),[i,t.onPress]),s=l.useCallback((function(e){t.onRelease&&t.onRelease({element:i(),target:r.current,event:e})}),[i,t.onRelease]),a=l.useCallback((function(e){t.onDragStart&&t.onDragStart({element:i(),target:r.current,event:e})}),[t,i]),p=l.useCallback((function(e){t.onDrag&&t.onDrag({element:i(),target:r.current,event:e})}),[i,t.onDrag]),c=l.useCallback((function(e){t.onDragEnd&&t.onDragEnd({element:i(),target:r.current,event:e})}),[i,t.onDragEnd]);return Qt(o,{onPress:n,onRelease:s,onDragStart:a,onDrag:p,onDragEnd:c},{mouseOnly:t.mouseOnly,autoScroll:t.autoScroll,hint:t.hint,scrollContainer:t.scrollContainer}),t.children?l.cloneElement(l.Children.only(t.children),{ref:o}):null}));function Kt(t,e){void 0===e&&(e={onDragEnter:k,onDragOver:k,onDragLeave:k,onDrop:k});var o=e.onDragEnter,r=void 0===o?k:o,i=e.onDragOver,n=void 0===i?k:i,s=e.onDragLeave,a=void 0===s?k:s,p=e.onDrop,c=void 0===p?k:p,h=Yt(Lt)[1],u=l.useContext(It),d=u[1],f=u[2],v=l.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]),y=l.useRef(null);l.useImperativeHandle(y,(function(){return{element:v(),onDragEnter:g,onDragOver:m,onDragLeave:x,onDrop:b,data:t.current}}));var g=l.useCallback((function(e){h(y,{target:t.current,event:e}),r(e)}),[h,t,r]),m=l.useCallback((function(t){n(t)}),[n]),x=l.useCallback((function(e){h(null,{target:t.current,event:e}),a(e)}),[h,t,a]),b=l.useCallback((function(e){h(null,{target:t.current,event:e}),c(e)}),[h,t,c]),_=l.useCallback((function(){return d(y),function(){f(y)}}),[f,d]);l.useLayoutEffect(_,[_])}Zt.displayName="KendoReactDraggable";var Jt=l.forwardRef((function(t,e){var o=l.useRef(null),r=l.useRef(null),i=l.useCallback((function(){return o.current&&o.current.element?o.current.element:o.current}),[o]);l.useImperativeHandle(r,(function(){return{element:i()||void 0}})),l.useImperativeHandle(e,(function(){return r.current})),l.useImperativeHandle(t.childRef,(function(){return o.current}));var n=l.useCallback((function(e){t.onDragEnter&&t.onDragEnter({element:i(),target:r.current,event:e})}),[t.onDragEnter,i]),s=l.useCallback((function(e){t.onDragOver&&t.onDragOver({element:i(),target:r.current,event:e})}),[i,t.onDragOver]),a=l.useCallback((function(e){t.onDragLeave&&t.onDragLeave({element:i(),target:r.current,event:e})}),[t.onDragLeave,i]),p=l.useCallback((function(e){t.onDrop&&t.onDrop({element:i(),target:r.current,event:e})}),[t.onDrop,i]);return Kt(o,{onDragEnter:n,onDragOver:s,onDragLeave:a,onDrop:p}),t.children?l.cloneElement(l.Children.only(t.children),{ref:o}):null}));Jt.displayName="KendoReactDroppable";var $t={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}};function te(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 ee(t,e){void 0===e&&(e=te);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 oe=["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]"],re=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}(),ie=function(t){var e=t.shadowRoot,o=t.contentDocument;return e&&e.activeElement?ie(e.activeElement):o&&o.activeElement?ie(o.activeElement):t},ne=function(t){if(t&&t.activeElement)return ie(t.activeElement)}},4006:(t,e,o)=>{o.d(e,{s:()=>n,G:()=>s});var r=o(9302),i=["telerik.com","progress.com","stackblitz.io","csb.app"];function n(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)}}function s(t){return!i.some((function(t){var e;return null===(e=globalThis.document)||void 0===e?void 0:e.location.hostname.endsWith(t)}))&&!(null==r?void 0:r.validatePackage(t))}},4407:t=>{t.exports=i},9302:t=>{t.exports=e},189:t=>{t.exports=r},3899:e=>{e.exports=t},994:t=>{t.exports=o}},s={};function a(t){var e=s[t];if(void 0!==e)return e.exports;var o=s[t]={exports:{}};return n[t].call(o.exports,o,o.exports,a),o.exports}return a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var o in e)a.o(e,o)&&!a.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a(468)})()}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("@progress/kendo-licensing"),require("react-dom"),require("prop-types"),require("@progress/kendo-drawing")):"function"==typeof define&&define.amd?define(["react","@progress/kendo-licensing","react-dom","prop-types","@progress/kendo-drawing"],e):"object"==typeof exports?exports.KendoReactMap=e(require("react"),require("@progress/kendo-licensing"),require("react-dom"),require("prop-types"),require("@progress/kendo-drawing")):t.KendoReactMap=e(t.React,t.KendoLicensing,t.ReactDOM,t.PropTypes,t.KendoDrawing)}(self,(function(t,e,o,r,i){return(()=>{"use strict";var n={4697: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.Map=void 0;var s=o(3899),a=o(189),p=o(3981),l=o(194),c=o(3113),h=o(6600);o(6410);var u=o(2636),d=o(2633),f=o(8338),v=o(7363),y=o(290),g=function(t){function e(e){var o=t.call(this,e)||this;return o.mapInstance=null,o._element=null,o.optionsStore={},o.optionsUnsubscriber=Function.prototype,o.observersStore={},o.onInit=function(t){o.mapInstance=t.sender},o.onRender=function(t){null!==o.mapInstance&&o.trigger("render",t)},o.onMapMouseLeave=function(t){var e=(0,y.toDomEvent)(o,t);o.triggerDomEvent("onMouseLeave",e)?t.preventDefault():null!==o.mapInstance&&o.mapInstance.hideTooltip()},(0,f.validatePackage)(v.packageMetadata),o.optionsStore=(0,c.default)(h.optionsReducer),o.observersStore=(0,c.default)(h.observersReducer),o.childrenObserver=new p.InstanceObserver(o,{onMouseLeave:"onChildMouseLeave"}),o.contextValue={optionsStore:o.optionsStore,observersStore:o.observersStore,childrenObserver:o.childrenObserver},o.mapObserver=new p.InstanceObserver(o,{init:"onInit"}),o}return i(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){this.instantiateCoreMap(),this.optionsUnsubscriber=this.optionsStore.subscribe(this.refresh.bind(this))},e.prototype.componentWillUnmount=function(){this.optionsUnsubscriber(),null!==this.mapInstance&&(this.mapInstance.destroy(),this.mapInstance=null)},e.prototype.componentDidUpdate=function(t){var e=this.props,o=(e.dir,e.children,n(e,["dir","children"]));null!==this.mapInstance&&(Object.entries(t).filter((function(t){return"dir"!==t[0]&&"children"!==t[0]})).some((function(t){var e=t[0],r=t[1];return!(o.hasOwnProperty(e)&&o[e]===r)}))&&this.refresh(),t.dir)},e.prototype.render=function(){var t=this,e=this.props,o=e.style,r=void 0===o?{}:o,i=e.className,n=e.children,a=Object.assign({},r,{position:"relative"}),p=s.createElement("div",{className:i,style:a,key:"mapElement"},s.createElement("div",{ref:function(e){return t._element=e},className:"k-map",onMouseLeave:this.onMapMouseLeave},n));return s.createElement(u.MapContext.Provider,{value:this.contextValue},s.createElement(d.MapTooltip,{key:"tooltip"}),p)},e.prototype.getMapOptions=function(){var t=this.props,e={center:t.center,controls:t.controls,minZoom:t.minZoom,maxZoom:t.maxZoom,minSize:t.minSize,pannable:t.pannable,wraparound:t.wraparound,zoom:t.zoom,zoomable:t.zoomable};return Object.assign(e,this.optionsStore.getState())},Object.defineProperty(e.prototype,"layers",{get:function(){var t;return null===(t=this.mapInstance)||void 0===t?void 0:t.layers},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extent",{get:function(){var t;return null===(t=this.mapInstance)||void 0===t?void 0:t.extent()},set:function(t){var e;null===(e=this.mapInstance)||void 0===e||e.extent(t)},enumerable:!1,configurable:!0}),e.prototype.resize=function(){},e.prototype.viewSize=function(){var t;return null===(t=this.mapInstance)||void 0===t?void 0:t.viewSize()},e.prototype.eventOffset=function(t){var e;return null===(e=this.mapInstance)||void 0===e?void 0:e.eventOffset(t)},e.prototype.eventToLayer=function(t){var e;return null===(e=this.mapInstance)||void 0===e?void 0:e.eventToLayer(t)},e.prototype.eventToLocation=function(t){var e;return null===(e=this.mapInstance)||void 0===e?void 0:e.eventToLocation(t)},e.prototype.eventToView=function(t){var e;return null===(e=this.mapInstance)||void 0===e?void 0:e.eventToView(t)},e.prototype.layerToLocation=function(t,e){var o;return null===(o=this.mapInstance)||void 0===o?void 0:o.layerToLocation(t,e)},e.prototype.locationToLayer=function(t,e){var o;return null===(o=this.mapInstance)||void 0===o?void 0:o.locationToLayer(t,e)},e.prototype.locationToView=function(t){var e;return null===(e=this.mapInstance)||void 0===e?void 0:e.locationToView(t)},e.prototype.viewToLocation=function(t,e){var o;return null===(o=this.mapInstance)||void 0===o?void 0:o.viewToLocation(t,e)},e.prototype.loadMarkers=function(t){var e=this.mapInstance.markers;e&&e._load(t)},e.prototype.refresh=function(){if(null!==this.mapInstance){var t=this.getMapOptions();this.props.onRefresh?this.props.onRefresh.call(void 0,t,this.mapInstance):this.mapInstance.setOptions(t)}},e.prototype.instantiateCoreMap=function(){var t=this.getMapOptions();this.mapInstance=new p.Map(this.element,t,{},{observer:this.mapObserver,sender:this})},e.prototype.trigger=function(t,e){for(var o="click"===t?"mapClick":t,r=(0,l.create)(o,e,this),i="on"+o.charAt(0).toUpperCase()+o.slice(1),n=this.observersStore.getState(),s=!1,a=0;a<n.length;a++)n[a].trigger(o,e)&&(s=!0);return!1===s&&r&&this.props.hasOwnProperty(i)?(this.props[i].call(void 0,r),r.isDefaultPrevented&&r.isDefaultPrevented()):s},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:a.string},e.defaultProps={},e}(s.Component);e.Map=g},2636:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MapContext=void 0;var r=o(3899);e.MapContext=r.createContext(null),e.MapContext.displayName="MapContext"},6894:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ZoomStartEvent=e.ZoomEndEvent=e.ShapeMouseLeaveEvent=e.ShapeMouseEnterEvent=e.ShapeFeatureCreatedEvent=e.ShapeCreatedEvent=e.ShapeClickEvent=e.ResetEvent=e.PanEvent=e.PanEndEvent=e.MarkerCreatedEvent=e.MarkerClickEvent=e.MarkerActivateEvent=e.MapClickEvent=e.BeforeResetEvent=void 0;var r=o(6662);Object.defineProperty(e,"BeforeResetEvent",{enumerable:!0,get:function(){return r.BeforeResetEvent}});var i=o(9921);Object.defineProperty(e,"MapClickEvent",{enumerable:!0,get:function(){return i.MapClickEvent}});var n=o(8606);Object.defineProperty(e,"MarkerActivateEvent",{enumerable:!0,get:function(){return n.MarkerActivateEvent}});var s=o(6236);Object.defineProperty(e,"MarkerClickEvent",{enumerable:!0,get:function(){return s.MarkerClickEvent}});var a=o(4904);Object.defineProperty(e,"MarkerCreatedEvent",{enumerable:!0,get:function(){return a.MarkerCreatedEvent}});var p=o(2982);Object.defineProperty(e,"PanEndEvent",{enumerable:!0,get:function(){return p.PanEndEvent}});var l=o(4719);Object.defineProperty(e,"PanEvent",{enumerable:!0,get:function(){return l.PanEvent}});var c=o(7843);Object.defineProperty(e,"ResetEvent",{enumerable:!0,get:function(){return c.ResetEvent}});var h=o(2139);Object.defineProperty(e,"ShapeClickEvent",{enumerable:!0,get:function(){return h.ShapeClickEvent}});var u=o(5861);Object.defineProperty(e,"ShapeCreatedEvent",{enumerable:!0,get:function(){return u.ShapeCreatedEvent}});var d=o(1737);Object.defineProperty(e,"ShapeFeatureCreatedEvent",{enumerable:!0,get:function(){return d.ShapeFeatureCreatedEvent}});var f=o(695);Object.defineProperty(e,"ShapeMouseEnterEvent",{enumerable:!0,get:function(){return f.ShapeMouseEnterEvent}});var v=o(3773);Object.defineProperty(e,"ShapeMouseLeaveEvent",{enumerable:!0,get:function(){return v.ShapeMouseLeaveEvent}});var y=o(2706);Object.defineProperty(e,"ZoomEndEvent",{enumerable:!0,get:function(){return y.ZoomEndEvent}});var g=o(8476);Object.defineProperty(e,"ZoomStartEvent",{enumerable:!0,get:function(){return g.ZoomStartEvent}})},9104:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Extent=e.Location=void 0;var r=o(3981);Object.defineProperty(e,"Location",{enumerable:!0,get:function(){return r.Location}}),Object.defineProperty(e,"Extent",{enumerable:!0,get:function(){return r.Extent}})},1752: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.MapBubbleLayer=void 0;var i=o(3899),n=o(9075),s=o(8096),a=o(3239),p=function(t){return i.createElement(s.default,r({type:"bubble"},t))};e.MapBubbleLayer=p,p.displayName="MapBubbleLayer",p.propTypes={children:function(t,e,o){return(0,n.validateChildren)(t,e,o,a.MapBubbleLayerTooltip)}}},3239: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.MapBubbleLayerTooltip=void 0;var i=o(3899),n=o(8096),s=function(t){return i.createElement(n.default,r({},t,{_mapKey:"tooltip"}))};e.MapBubbleLayerTooltip=s,s.defaultProps={}},7515: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.MapLayers=void 0;var i=o(3899),n=o(189),s=o(1958),a=function(t){return i.createElement(s.default,r({},t,{_mapKey:"layers"}))};e.MapLayers=a,a.propTypes={children:n.node}},9625: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.MapMarkerLayer=void 0;var i=o(3899),n=o(9075),s=o(8096),a=o(4979),p=function(t){return i.createElement(s.default,r({type:"marker"},t))};e.MapMarkerLayer=p,p.displayName="MapMarkerLayer",p.propTypes={children:function(t,e,o){return(0,n.validateChildren)(t,e,o,a.MapMarkerLayerTooltip)}}},4979: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.MapMarkerLayerTooltip=void 0;var i=o(3899),n=o(8096),s=function(t){return i.createElement(n.default,r({},t,{_mapKey:"tooltip"}))};e.MapMarkerLayerTooltip=s,s.defaultProps={}},1286: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.MapShapeLayer=void 0;var i=o(3899),n=o(9075),s=o(8096),a=o(4570),p=function(t){return i.createElement(s.default,r({type:"shape"},t))};e.MapShapeLayer=p,p.displayName="MapShapeLayer",p.propTypes={children:function(t,e,o){return(0,n.validateChildren)(t,e,o,a.MapShapeLayerTooltip)}}},4570: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.MapShapeLayerTooltip=void 0;var i=o(3899),n=o(8096),s=function(t){return i.createElement(n.default,r({},t,{_mapKey:"tooltip"}))};e.MapShapeLayerTooltip=s,s.defaultProps={}},6641: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.MapTileLayer=void 0;var i=o(3899),n=o(8096),s=function(t){return i.createElement(n.default,r({type:"tile"},t))};e.MapTileLayer=s,s.displayName="MapTileLayer"},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});var s=o(3899),a=o(2636),p=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._mapKey,a=r._parentStore,p=n(n({},t.props),{_mapCollectionIdxKey:"".concat(i,"_").concat(e),_parentStore:a});return s.cloneElement(t,p,o)},e.prototype.render=function(){var t=this,e=this.props,o=e._mapKey,r=e._parentStore,i=e.children;return(r||this.optionsStore).dispatch({mapKey:o,payload:[]}),s.Children.map(i,(function(e,o){return s.isValidElement(e)?t.renderChildren(e,o):e}))},e.contextType=a.MapContext,e}(s.Component);e.default=p},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)},s=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});var a=o(3899),p=o(3113),l=o(6600),c=o(2636),h=function(t){function e(e,o){var r=t.call(this,e,o)||this;return r.optionsStore=o.optionsStore,r.childStore=(0,p.default)(l.optionsReducer),r}return i(e,t),e.prototype.render=function(){var t=this,e=this.props.children;return void 0!==e?a.Children.map(e,(function(e){return a.isValidElement(e)?t.renderChildren(e):e})):null},e.prototype.componentDidMount=function(){this.dispatch()},e.prototype.componentDidUpdate=function(){this.dispatch()},e.prototype.dispatch=function(){var t=this.props,e=t._mapKey,o=t._mapCollectionIdxKey,r=t._parentStore,i=(t.children,s(t,["_mapKey","_mapCollectionIdxKey","_parentStore","children"]));(r||this.optionsStore).dispatch({mapKey:e,mapCollectionIdxKey: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 a.cloneElement(t,o,e)},e.contextType=c.MapContext,e}(a.Component);e.default=h},5388:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MapMarkerLayerTooltip=e.MapMarkerLayer=e.MapBubbleLayerTooltip=e.MapBubbleLayer=e.MapTileLayer=e.MapShapeLayerTooltip=e.MapShapeLayer=e.MapLayers=void 0;var r=o(7515);Object.defineProperty(e,"MapLayers",{enumerable:!0,get:function(){return r.MapLayers}});var i=o(1286);Object.defineProperty(e,"MapShapeLayer",{enumerable:!0,get:function(){return i.MapShapeLayer}});var n=o(4570);Object.defineProperty(e,"MapShapeLayerTooltip",{enumerable:!0,get:function(){return n.MapShapeLayerTooltip}});var s=o(6641);Object.defineProperty(e,"MapTileLayer",{enumerable:!0,get:function(){return s.MapTileLayer}});var a=o(1752);Object.defineProperty(e,"MapBubbleLayer",{enumerable:!0,get:function(){return a.MapBubbleLayer}});var p=o(3239);Object.defineProperty(e,"MapBubbleLayerTooltip",{enumerable:!0,get:function(){return p.MapBubbleLayerTooltip}});var l=o(9625);Object.defineProperty(e,"MapMarkerLayer",{enumerable:!0,get:function(){return l.MapMarkerLayer}});var c=o(4979);Object.defineProperty(e,"MapMarkerLayerTooltip",{enumerable:!0,get:function(){return c.MapMarkerLayerTooltip}})},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,s={milliseconds:"HH:mm:ss.SSS",seconds:{time:"medium"},minutes:{time:"short"},hours:{time:"short"},days:{skeleton:"Md"},weeks:{skeleton:"Md"},months:{skeleton:"yyMMM"},years:{skeleton:"y"}};Object.assign(i,s),Object.assign(n,s)},8874:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BaseEvent=void 0;e.BaseEvent=function(t){this.target=t}},6662: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.BeforeResetEvent=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.BeforeResetEvent=n},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)}},9921: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.MapClickEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.location=e.location,r.originalEvent=e.originalEvent,r}return i(e,t),e}(o(8874).BaseEvent);e.MapClickEvent=n},194:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.create=void 0;var r=o(6894),i={beforeReset:r.BeforeResetEvent,mapClick:r.MapClickEvent,markerActivate:r.MarkerActivateEvent,markerClick:r.MarkerClickEvent,markerCreated:r.MarkerCreatedEvent,panEnd:r.PanEndEvent,pan:r.PanEvent,reset:r.ResetEvent,shapeClick:r.ShapeClickEvent,shapeCreated:r.ShapeCreatedEvent,shapeFeatureCreated:r.ShapeFeatureCreatedEvent,shapeMouseEnter:r.ShapeMouseEnterEvent,shapeMouseLeave:r.ShapeMouseLeaveEvent,zoomEnd:r.ZoomEndEvent,zoomStart:r.ZoomStartEvent};e.create=function(t,e,o){if(i[t])return new i[t](e,o)}},8606: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.MarkerActivateEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.marker=e.marker,r.layer=e.layer,r}return i(e,t),e}(o(8874).BaseEvent);e.MarkerActivateEvent=n},6236: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.MarkerClickEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.marker=e.marker,r.layer=e.layer,r}return i(e,t),e}(o(8874).BaseEvent);e.MarkerClickEvent=n},4904: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.MarkerCreatedEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.marker=e.marker,r.layer=e.layer,r}return i(e,t),e}(o(8619).PreventableEvent);e.MarkerCreatedEvent=n},2982: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.PanEndEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.origin=e.origin,r.center=e.center,r.originalEvent=e.originalEvent,r}return i(e,t),e}(o(8874).BaseEvent);e.PanEndEvent=n},4719: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.PanEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.origin=e.origin,r.center=e.center,r.originalEvent=e.originalEvent,r}return i(e,t),e}(o(8874).BaseEvent);e.PanEvent=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},7843: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.ResetEvent=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.ResetEvent=n},2139: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.ShapeClickEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.layer=e.layer,r.shape=e.shape,r.originalEvent=e.originalEvent,r}return i(e,t),e}(o(8874).BaseEvent);e.ShapeClickEvent=n},5861: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.ShapeCreatedEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.layer=e.layer,r.shape=e.shape,r.location=null,e.shape&&(r.dataItem=e.shape.dataItem,r.location=e.shape.location),r}return i(e,t),e}(o(8874).BaseEvent);e.ShapeCreatedEvent=n},1737: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.ShapeFeatureCreatedEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.dataItem=e.dataItem,r.layer=e.layer,r.group=e.group,r.properties=e.properties,r}return i(e,t),e}(o(8874).BaseEvent);e.ShapeFeatureCreatedEvent=n},695: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.ShapeMouseEnterEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.layer=e.layer,r.shape=e.shape,r.originalEvent=e.originalEvent,r}return i(e,t),e}(o(8874).BaseEvent);e.ShapeMouseEnterEvent=n},3773: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.ShapeMouseLeaveEvent=void 0;var n=function(t){function e(e,o){var r=t.call(this,o)||this;return r.layer=e.layer,r.shape=e.shape,r.originalEvent=e.originalEvent,r}return i(e,t),e}(o(8874).BaseEvent);e.ShapeMouseLeaveEvent=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.originalEvent=e.originalEvent,r}return i(e,t),e}(o(8874).BaseEvent);e.ZoomEndEvent=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.originalEvent=e.originalEvent,r}return i(e,t),e}(o(8619).PreventableEvent);e.ZoomStartEvent=n},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.Map=e.ConfigurationComponent=e.CollectionConfigurationComponent=void 0;var n=o(1958);e.CollectionConfigurationComponent=n.default;var s=o(8096);e.ConfigurationComponent=s.default;var a=o(4697);Object.defineProperty(e,"Map",{enumerable:!0,get:function(){return a.Map}}),i(o(5388),e),i(o(9104),e),i(o(6894),e),i(o(6012),e)},7363:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata=void 0,e.packageMetadata={name:"@progress/kendo-react-map",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1690381031,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.optionsReducer=void 0,e.optionsReducer=function(t,e){return e.mapCollectionIdxKey?r.collectionConfigurationItem(t,e):e.mapKey?r.configurationItem(t,e):{}},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.mapKey]=e.payload,o))},collectionConfigurationItem:function(t,e){var o,r=!1,i=e.mapCollectionIdxKey.split("_"),n=i[0],s=i[1],a=t[n].map((function(t,o){return parseInt(s,10)===o?(r=!0,e.payload):t}));return!1===r&&a.splice(parseInt(s,10),0,e.payload),Object.assign(t,((o={})[n]=a,o))},themeItem:function(t,e){for(var o={},r=Object.assign(o,t),i=e.payload,n=i.field,s=i.value,a=n.split("."),p=a.shift();a.length>0;)o=o[p]=o[p]||{},p=a.shift();return o[p]=s,r}}},3113:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=o(8338);e.default=function(t){var e,o=[],i=function(i){e=t(e,i),r.canUseDOM&&o.forEach((function(t){return t()}))};return i({}),{getState:function(){return e},dispatch:i,subscribe:function(t){return o.push(t),function(){return o=o.filter((function(e){return e!==t}))}}}}},2633: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)},s=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.MapTooltip=void 0;var a=o(3899),p=o(3981),l=o(2104),c=o(2636),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.context=null,e.state={popupShown:!1},e}return i(e,t),e.prototype.componentDidMount=function(){this.mapObserver=new p.InstanceObserver(this,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),this.context.observersStore.dispatch({type:"add",payload:this.mapObserver})},e.prototype.render=function(){var t=this.state,e=t.popupContext,o=(t.shared,t.className,s(t,["popupContext","shared","className"]));if(!e||!this.state.popupShown)return null;var r=e.layerIndex,i=this.findRenderFunctionByLayer(r);if(!i)return null;var p="k-map-".concat(e.type,"-tooltip");return a.createElement(l.TooltipPopup,n({},o,{popupContent:function(){return a.createElement("div",{className:"k-tooltip-content"},i(e))},className:p}))},e.prototype.componentWillUnmount=function(){this.context.observersStore.dispatch({type:"remove",payload:this.mapObserver})},e.prototype.onShowTooltip=function(t){var e=t.anchor,o=t.className,r=this.createTooltipContext(t);this.setState({popupShown:!0,popupAlign:{vertical:"bottom",horizontal:"center"},popupOffset:e,popupContext:r,popupStyles:{position:"relative"},className:o})},e.prototype.onHideTooltip=function(){this.setState({popupShown:!1,popupStyles:{},className:void 0})},e.prototype.createTooltipContext=function(t){return t},e.prototype.findRenderFunctionByLayer=function(t){var e=this.context.optionsStore.getState().layers;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.contextType=c.MapContext,e}(a.Component);e.MapTooltip=h},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)}),n=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.TooltipPopup=void 0;var s=o(3899),a=o(3981),p=o(9075),l=o(6201),c=o(2636),h={horizontal:"fit",vertical:"fit"},u=["k-tooltip","k-map-tooltip"],d=function(t){function e(e,o){var r=t.call(this,e,o)||this;return r.context=null,r.element=null,r.onMapMouseLeave=function(t){var e=t.syntheticEvent;return!!(0,p.hasParent)(e.relatedTarget,r.element)},r.mapObserver=new a.InstanceObserver(r,{onMouseLeave:"onMapMouseLeave"}),o.observersStore.dispatch({type:"add",payload:r.mapObserver}),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,p=e.popupContent,c=e.className,d=n(n([],u,!0),[c],!1).join(" ").trim();return s.createElement(l.Popup,{animate:!0,popupAlign:r,offset:i,show:o,collision:h,className:"k-tooltip-wrapper"},s.createElement("div",{className:d,style:a,ref:function(e){return t.element=e}},p()))},e.prototype.componentWillUnmount=function(){this.context.observersStore.dispatch({type:"remove",payload:this.mapObserver})},e.contextType=c.MapContext,e}(s.Component);e.TooltipPopup=d},6012:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MapTooltip=void 0;var r=o(2633);Object.defineProperty(e,"MapTooltip",{enumerable:!0,get:function(){return r.MapTooltip}})},9075:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),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,s=i;n<s.length;n++){var a=s[n];if(!a.type||a.type!==r)return new Error("".concat(o," children should be Array of type ").concat(r.displayName,"."))}return null}},3981:(t,e,o)=>{o.r(e),o.d(e,{Aggregates:()=>Tr,ArcGauge:()=>Eh,ArcScale:()=>Sh,AreaChart:()=>In,AreaSegment:()=>Tn,ArrowLinearPointer:()=>Zc,Axis:()=>oo,AxisGroupRangeTracker:()=>zn,AxisLabel:()=>Ie,Bar:()=>Un,BarChart:()=>Kn,BarLabel:()=>Hn,BarLinearPointer:()=>oh,Barcode:()=>_u,Box:()=>ie,BoxElement:()=>ve,BoxPlot:()=>is,BoxPlotChart:()=>ps,BubbleChart:()=>gs,Bullet:()=>_s,BulletChart:()=>Cs,Candlestick:()=>$n,CandlestickChart:()=>os,CategoricalChart:()=>sn,CategoricalErrorBar:()=>tn,CategoricalPlotArea:()=>ja,CategoryAxis:()=>zo,Chart:()=>Wl,ChartAxis:()=>Cr,ChartContainer:()=>Es,ChartElement:()=>de,ChartPane:()=>Ar,ChartPlotArea:()=>Pr,ChartService:()=>Qe,CircularGauge:()=>Bh,Class:()=>I.Class,ClipAnimation:()=>kn,ClusterLayout:()=>Yn,Crosshair:()=>Ms,CrosshairTooltip:()=>Ps,CurveProcessor:()=>_r,DateCategoryAxis:()=>Yo,DateValueAxis:()=>or,DefaultAggregates:()=>ia,DomEventsBuilder:()=>Je,DonutChart:()=>Lp,DonutPlotArea:()=>Ip,DonutSegment:()=>Rp,ErrorBarBase:()=>Ji,ErrorRangeCalculator:()=>Ir,Extent:()=>Gf,FloatElement:()=>ke,FontLoader:()=>It,FormatService:()=>Xe,Gauge:()=>Bc,Gradients:()=>xe,HashMap:()=>lt,Highlight:()=>za,InstanceObserver:()=>ft,IntlService:()=>Fe,Legend:()=>tp,LegendItem:()=>Za,LegendLayout:()=>qa,LineChart:()=>On,LinePoint:()=>hn,LineSegment:()=>dn,LinearGauge:()=>nh,LinearPointer:()=>Gc,LinearScale:()=>Hc,Location:()=>Fd,LogarithmicAxis:()=>ar,Map:()=>xy,MousewheelZoom:()=>Xa,Navigator:()=>cc,NavigatorHint:()=>ic,Note:()=>ze,NumericAxis:()=>tr,OHLCChart:()=>Sa,OHLCPoint:()=>Ca,Pane:()=>Ls,Pannable:()=>Fa,PieAnimation:()=>vp,PieChart:()=>Op,PieChartMixin:()=>Sp,PiePlotArea:()=>Tp,PieSegment:()=>kp,PlotAreaBase:()=>Js,PlotAreaEventsMixin:()=>ta,PlotAreaFactory:()=>op,Point:()=>ee,PointEventsMixin:()=>pn,PolarAxis:()=>ur,QRCode:()=>Ed,RadarCategoryAxis:()=>cr,RadarLogarithmicAxis:()=>xr,RadarNumericAxis:()=>gr,RadialGauge:()=>Ch,RadialPointer:()=>bh,RadialScale:()=>dh,RangeAreaChart:()=>_a,RangeAreaPoint:()=>da,RangeBar:()=>sa,RangeBarChart:()=>pa,RangePointer:()=>Mh,Ring:()=>ae,RootElement:()=>we,ScatterChart:()=>ds,ScatterErrorBar:()=>cs,ScatterLineChart:()=>gp,Sector:()=>le,Selection:()=>sp,SeriesAggregator:()=>oa,SeriesBinder:()=>Br,ShapeBuilder:()=>he,ShapeElement:()=>ge,SharedTooltip:()=>cp,Sparkline:()=>$l,SplineAreaSegment:()=>Ln,SplineSegment:()=>bn,StackWrap:()=>Qn,StockChart:()=>uc,TemplateService:()=>et,Text:()=>Pe,TextBox:()=>Ee,Title:()=>Le,Tooltip:()=>pp,WaterfallChart:()=>Ma,WaterfallSegment:()=>Pa,XYPlotArea:()=>bp,ZoomSelection:()=>Ga,addClass:()=>B,alignPathToPixel:()=>D,anyHasZIndex:()=>Sn,append:()=>xt,appendIfNotNull:()=>js,areNumbers:()=>ts,autoMajorUnit:()=>te,autoTextColor:()=>Gt,barcodeValidator:()=>Cu,bindEvents:()=>bt,bindSegments:()=>Ds,categoriesCount:()=>rn,chartBaseTheme:()=>Ly,clockwise:()=>z,constants:()=>r,convertableToNumber:()=>N,countNumbers:()=>Or,createHashSet:()=>Kt,createOutOfRangePoints:()=>Xs,deepExtend:()=>X,defaultErrorHandler:()=>Jt,defined:()=>_t,deg:()=>wt,elementOffset:()=>Ct,elementScale:()=>Ut,elementSize:()=>kt,elementStyles:()=>K,equalsIgnoreCase:()=>zs,evalOptions:()=>on,eventCoordinates:()=>St,eventElement:()=>At,filterSeriesByType:()=>Vs,find:()=>Vt,findAxisByName:()=>kr,getDateField:()=>Hs,getField:()=>Er,getSpacing:()=>J,getTemplate:()=>ot,getter:()=>nt,grep:()=>st,hasClasses:()=>at,hasGradientOverlay:()=>Nn,hasValue:()=>hs,hashKey:()=>Pt,inArray:()=>ct,interpolateValue:()=>ht,isArray:()=>R,isDateAxis:()=>Ns,isFunction:()=>F,isNumber:()=>V,isObject:()=>Y,isString:()=>H,keys:()=>$t,last:()=>Ot,limitValue:()=>Mt,logToConsole:()=>I.logToConsole,map:()=>vt,mousewheelDelta:()=>gt,objectKey:()=>Tt,qrcodeValidator:()=>Rd,rad:()=>Et,rectToBox:()=>Oe,removeClass:()=>j,round:()=>Rt,segmentVisible:()=>Is,setDefaultOptions:()=>Dt,singleItemOrArray:()=>Fs,sparseArrayLimits:()=>zt,styleValue:()=>q,unbindEvents:()=>Bt,valueOrDefault:()=>Lt});var r={};o.r(r),o.d(r,{DEFAULT_PANE:()=>ac,NAVIGATOR_AXIS:()=>sc,NAVIGATOR_PANE:()=>nc});var i="arc",n="#000",s="bottom",a="center",p="circle",l=3,c="cross",h="date",u="12px sans-serif",d=10,f=/\{\d+:?/,v="height",y="inside",g="left",m=Number.MAX_VALUE,x=-Number.MAX_VALUE,b="none",_="object",w="outside",C="right",k="roundedRect",S="string",A="top",P="value",O="#fff",M="width",T="x",E="y";function R(t){return Array.isArray(t)}function B(t,e){for(var o=R(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 j(t,e){t&&t.className&&(t.className=t.className.replace(e,"").replace(L," "))}var I=o(4407);function D(t){var e=.5;t.options.stroke&&I.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 z(t,e){return-t.x*e.y+t.y*e.x<0}function V(t){return"number"==typeof t&&!isNaN(t)}function H(t){return typeof t===S}function N(t){return V(t)||H(t)&&isFinite(t)}function F(t){return"function"==typeof t}var U="object",G="undefined";function W(t,e){for(var o in e){var r,i=e[o],n=typeof i;if((r=n===U&&null!==i?i.constructor:null)&&r!==Array)if(i instanceof Date)t[o]=new Date(i.getTime());else if(F(i.clone))t[o]=i.clone();else{var s=t[o];t[o]=typeof s===U&&s||{},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 Y(t){return"object"==typeof t}function q(t){return V(t)?t+"px":t}var Q=/width|height|top|left|bottom|right/i;function Z(t){return Q.test(t)}function K(t,e){var o=H(e)?[e]:e;if(R(o)){for(var r={},i=window.getComputedStyle(t),n=0;n<o.length;n++){var s=o[n];r[s]=Z(s)?parseFloat(i[s]):i[s]}return r}if(Y(e))for(var a in e)t.style[a]=q(e[a])}function J(t,e){void 0===e&&(e=0);var o={top:0,right:0,bottom:0,left:0};return"number"==typeof t?o[A]=o[C]=o[s]=o[g]=t:(o[A]=t[A]||e,o[C]=t[C]||e,o[s]=t[s]||e,o[g]=t[g]||e),o}var $={compile:function(t){return t}},tt=function(){};tt.register=function(t){$=t},tt.compile=function(t,e){return $.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):F(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(I.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 st(t,e){for(var o=t.length,r=[],i=0;i<o;i++)e(t[i])&&r.push(t[i]);return r}function at(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 pt=function(){this._map={}};pt.prototype.get=function(t){return this._map[this._key(t)]},pt.prototype.set=function(t,e){this._map[this._key(t)]=e},pt.prototype._key=function(t){return t instanceof Date?t.getTime():t};const lt=pt;function ct(t,e){if(e)return-1!==e.indexOf(t)}function ht(t,e,o){return I.drawing.util.round(t+(e-t)*o,l)}var ut="trigger",dt=function(t,e){this.observer=t,this.handlerMap=X({},this.handlerMap,e)};dt.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},dt.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)},dt.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 ft=dt;function vt(t,e){for(var o=t.length,r=[],i=0;i<o;i++){var n=e(t[i]);I.drawing.util.defined(n)&&r.push(n)}return r}var yt=I.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=I.drawing.util,xt=mt.append,bt=mt.bindEvents,_t=mt.defined,wt=mt.deg,Ct=mt.elementOffset,kt=mt.elementSize,St=mt.eventCoordinates,At=mt.eventElement,Pt=mt.hashKey,Ot=mt.last,Mt=mt.limitValue,Tt=mt.objectKey,Et=mt.rad,Rt=mt.round,Bt=mt.unbindEvents,Lt=mt.valueOrDefault,jt=function(){};jt.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++,jt.fetchFonts(i,e,o),o.depth--))}))},jt.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,I.logToConsole)(t)}Promise.all(o).then(e,e)}else e()},jt.preloadFonts=function(t,e){var o=[];jt.fetchFonts(t,o),jt.loadFonts(o,e)};const It=jt;function Dt(t,e){var o=t.prototype;o.options?o.options=X({},o.options,e):o.options=e}function zt(t){for(var e=m,o=x,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===x?void 0:o}}function Vt(t,e){for(var o=0;o<t.length;o++){var r=t[o];if(e(r,o,t))return r}}var Ht=I.geometry.Matrix,Nt=/matrix\((.*)\)/;function Ft(t){var e=getComputedStyle(t).transform;return"none"===e?Ht.unit():function(t){var e=t.match(Nt);if(null===e||2!==e.length)return Ht.unit();var o=e[1].split(",").map((function(t){return parseFloat(t)}));return new(Function.prototype.bind.apply(Ht,[null].concat(o)))}(e)}function Ut(t){if(!t)return Ht.unit();for(var e=Ft(t),o=t.parentElement;o;){var r=Ft(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 I.Color(t).isDark()?O: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},Yt={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=[]},Yt.size.get=function(){return this._values.length},Object.defineProperties(Xt.prototype,Yt);var qt=function(t){this._set=new Set(t)},Qt={size:{configurable:!0}};qt.prototype.values=function(){return Array.from(this._set)},qt.prototype.has=function(t){return this._set.has(t)},qt.prototype.add=function(t){this._set.add(t)},qt.prototype.delete=function(t){this._set.delete(t)},qt.prototype.clear=function(){this._set.clear()},Qt.size.get=function(){return this._set.size},Object.defineProperties(qt.prototype,Qt);var Zt=function(){var t=!1;return"function"==typeof Set&&(t=new Set([1]).has(1)),t};function Kt(t){return Zt()?new qt(t):new Xt(t)}function Jt(t){throw t}const $t={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=Rt(e-t,d-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=Rt(o/r,d);return Rt(r*(i<1.904762?.2:i<4.761904?.5:i<9.523809?1:2),d)}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,s=t.y,a=this.x,p=this.y;return this.x=Rt(n+(a-n)*r+(p-s)*i,l),this.y=Rt(s+(p-s)*r-(a-n)*i,l),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}(I.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 _t(t)&&(this.x1=t,this.x2=this.x1+r),_t(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=R(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!==T&&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===A||e===s?E:T,n=i===E?o:r;if(e===a){var p=t.center(),l=this.center();this.x1+=p.x-l.x,this.y1+=p.y-l.y}else this[i+1]=e===A||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=J(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=J(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,s=re(0,0,i,n,t),a=re(e,0,i,n,t),p=re(e,o,i,n,t),l=re(0,o,i,n,t);return e=Math.max(s.x,a.x,p.x,l.x)-Math.min(s.x,a.x,p.x,l.x),o=Math.max(s.y,a.y,p.y,l.y)-Math.min(s.y,a.y,p.y,l.y),this.x2=this.x1+e,this.y2=this.y1+o,this},e.prototype.toRect=function(){return new I.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===T?M:v,p=this[n]();ct(o,[g,A])?(this[r]=t[r],this[i]=this[r]+p):ct(o,[C,s])?(this[i]=t[i],this[r]=this[i]-p):o===a&&(this[r]=t[r]+(t[n]()-p)/2,this[i]=this[r]+p)},e}(I.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,s=Rt(this.center.x-r*n,l),a=Rt(this.center.y-i*n,l);return new ee(s,a)},e.prototype.adjacentBox=function(t,e,o){var r=this.clone().expand(t),i=r.middle(),n=r.point(i),s=e/2,a=o/2,p=Math.sin(Et(i)),l=Math.cos(Et(i)),c=n.x-s,h=n.y-a;return Math.abs(p)<.9&&(c+=s*-l/Math.abs(l)),Math.abs(l)<.9&&(h+=a*-p/Math.abs(p)),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,s=t.x-e.x,a=t.y-e.y,p=new ee(s,a),c=this.point(i),h=new ee(c.x-e.x,c.y-e.y),u=this.point(n),d=new ee(u.x-e.x,u.y-e.y),f=Rt(s*s+a*a,l);return(h.equals(p)||z(h,p))&&!z(d,p)&&f>=o*o&&f<=r*r},e.prototype.getBBox=function(){var t,e=new ie(m,m,x,x),o=Rt(this.startAngle%360),r=Rt((o+this.angle)%360),i=this.innerRadius,n=[0,90,180,270,o,r].sort(se),s=n.indexOf(o),a=n.indexOf(r);t=o===r?n:s<a?n.slice(s,a+1):[].concat(n.slice(0,a+1),n.slice(s,n.length));for(var p=0;p<t.length;p++){var l=this.point(t[p]);e.wrapPoint(l),e.wrapPoint(l,i)}return i||e.wrapPoint(this.center),e},e.prototype.expand=function(t){return this.radius+=t,this},e}(I.Class);function se(t,e){return t-e}const ae=ne;var pe=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}(ae);const le=pe;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 I.geometry.Point(t.center.x,t.center.y),n=Math.max(t.radius,0),s=Math.max(t.innerRadius,0),a=new I.geometry.Arc(i,{startAngle:o,endAngle:r,radiusX:n,radiusY:n}),p=I.drawing.Path.fromArc(a,e).close();if(s){a.radiusX=a.radiusY=s;var l=a.pointAt(r);p.lineTo(l.x,l.y),p.arc(r,o,s,s,!0)}else p.lineTo(i.x,i.y);return p},e}(I.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 I.drawing.Group({zIndex:this.options.zIndex,visible:Lt(this.options.visible,!0)})},e.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=I.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):_t(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 s={fill:{color:O,opacity:e||.2},stroke:{color:O,width:1,opacity:e||.2}};if(i){if(!(n=this._highlight=i(Object.assign(this.highlightVisualArgs(),{createVisual:function(){return o.createHighlight(s)},sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total}))))return}else n=this._highlight=this.createHighlight(s);_t(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 I.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}(I.Class);ue.prototype.options={};const de=ue;var fe=function(t){function e(e){t.call(this,e),this.options.margin=J(this.options.margin),this.options.padding=J(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,s=i.height,a=i.shrinkToFit,p=n&&s,l=i.margin,c=i.padding,h=i.border.width,u=function(){r.align(e,T,i.align),r.align(e,E,i.vAlign),r.paddingBox=o.clone().unpad(l).unpad(h)},d=e.clone();p&&(d.x2=d.x1+n,d.y2=d.y1+s),a&&d.unpad(l).unpad(h).unpad(c),t.prototype.reflow.call(this,d),o=p?this.box=new ie(0,0,n,s):this.box,a&&p?(u(),d=this.contentBox=this.paddingBox.clone().unpad(c)):(d=this.contentBox=o.clone(),o.pad(c).pad(h).pad(l),u()),this.translateChildren(o.x1-d.x1+l.left+h+c.left,o.y1-d.y1+l.top+h+c.top);for(var f=this.children,v=0;v<f.length;v++){var y=f[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(I.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}(de);Dt(fe,{align:g,vAlign:A,margin:{},padding:{},border:{color:n,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});const ve=fe;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,s=e.height()/2;if(!t.visible||!this.hasBox())return null;var a,h=this.visualStyle();if(o===p)a=new I.drawing.Circle(new I.geometry.Circle([Rt(e.x1+n,l),Rt(e.y1+s,l)],Math.min(n,s)),h);else if("triangle"===o)a=I.drawing.Path.fromPoints([[e.x1+n,e.y1],[e.x1,e.y2],[e.x2,e.y2]],h).close();else if(o===c)(a=new I.drawing.MultiPath(h)).moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),a.moveTo(e.x1,e.y2).lineTo(e.x2,e.y1);else{var u=e.toRect();if(o===k){var d=Lt(t.borderRadius,u.width()/5);u.setCornerRadius(d)}a=I.drawing.Path.fromRect(u,h)}return r&&a.transform(I.geometry.transform().rotate(-r,[i.x,i.y])),a.options.zIndex=t.zIndex,a},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);Dt(ye,{type:p,align:a,vAlign:a});const ge=ye;var me="radial";const xe={glass:{type:"linear",rotation:0,stops:[{offset:0,color:O,opacity:0},{offset:.25,color:O,opacity:.3},{offset:1,color:O,opacity:0}]},sharpBevel:{type:me,stops:[{offset:0,color:O,opacity:.55},{offset:.65,color:O,opacity:0},{offset:.95,color:O,opacity:.25}]},roundedBevel:{type:me,stops:[{offset:.33,color:O,opacity:.06},{offset:.83,color:O,opacity:.2},{offset:.95,color:O,opacity:0}]},roundedGlass:{type:me,supportVML:!1,stops:[{offset:0,color:O,opacity:0},{offset:.5,color:O,opacity:.3},{offset:.99,color:O,opacity:0}]},sharpGlass:{type:me,supportVML:!1,stops:[{offset:0,color:O,opacity:.2},{offset:.15,color:O,opacity:.15},{offset:.17,color:O,opacity:.35},{offset:.85,color:O,opacity:.05},{offset:.87,color:O,opacity:.15},{offset:.99,color:O,opacity:0}]},bubbleShadow:{type:me,center:[.5,.5],radius:.5}};function be(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),s=Math.min(t.y1,e.y1),a=Math.max(t.y1,e.y1),p=Math.min(t.y2,e.y2),l=Math.max(t.y2,e.y2),c=[];return c[0]=new ie(r,s,i,a),c[1]=new ie(o,a,r,p),c[2]=new ie(i,a,n,p),c[3]=new ie(r,p,i,l),t.x1===o&&t.y1===s||e.x1===o&&e.y1===s?(c[4]=new ie(o,s,r,a),c[5]=new ie(i,p,n,l)):(c[4]=new ie(i,s,n,a),c[5]=new ie(o,p,r,l)),st(c,(function(t){return t.height()>0&&t.width()>0}))[0]}var _e=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=be(o,e[r].box)||new ie},e.prototype.createVisual=function(){this.visual=new I.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=I.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=Tt(t),i=xe[t.gradient];if(o[r])e=o[r];else{var n=Object.assign({},i,t);"linear"===i.type?e=new I.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 s=Object.assign({},e[n]);s.offset=(s.offset*(100-o)+o)/100,i.push(s)}return i}(n)),(e=new I.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}(de);Dt(_e,{width:600,height:400,background:O,border:{color:n,width:0},margin:J(5),zIndex:-2});const we=_e;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=T,this.elementAxis=E,this.groupSizeField=M,this.elementSizeField=v,this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=E,this.elementAxis=T,this.groupSizeField=v,this.elementSizeField=M,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,s=e.groupSizeField,a=this.groupOptions(),p=a.groups,l=a.groupsSize,c=a.maxGroupElementsSize,h=p.length,u=o[i+1]+this.alignStart(l,o[s]());if(h){for(var d=u,f=0;f<h;f++){for(var v=p[f],y=v.groupElements,g=o[r+1],m=y.length,x=0;x<m;x++){var b=y[x],_=t.elementSize(b),w=d+t.alignStart(_[s],v.groupSize),C=new ie;C[i+1]=w,C[i+2]=w+_[s],C[r+1]=g,C[r+2]=g+_[n],b.reflow(C),g+=_[n]+t.elementSpacing}d+=v.groupSize+t.groupSpacing}o[i+1]=u,o[i+2]=u+l,o[r+2]=o[r+1]+c}},e.prototype.alignStart=function(t,e){var o=0,r=this.options.align;return r===C||r===s?o=e-t:r===a&&(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,s=t.groupSpacing,a=Rt(e[r]()),p=o.length,l=[],c=0,h=0,u=0,d=0,f=[],v=0;v<p;v++){var y=o[v];y.box||y.reflow(e);var g=this.elementSize(y);this.options.wrap&&Rt(h+n+g[r])>a&&(l.push({groupElements:f,groupSize:c,groupElementsSize:h}),d=Math.max(d,h),u+=s+c,c=0,h=0,f=[]),c=Math.max(c,g[i]),h>0&&(h+=n),h+=g[r],f.push(y)}return l.push({groupElements:f,groupSize:c,groupElementsSize:h}),{groups:l,groupsSize:u+=c,maxGroupElementsSize:d=Math.max(d,h)}},e.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},e.prototype.createVisual=function(){},e}(de);Dt(Ce,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});const ke=Ce;var Se=I.drawing.Text,Ae=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=I.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}(de);Dt(Ae,{font:u,color:n});const Pe=Ae;function Oe(t){var e=t.origin,o=t.bottomRight();return new ie(e.x,e.y,o.x,o.y)}var Me=/\n/m,Te=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(Me),o=new ke({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 Pe(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=Oe(n.clippedBBox()||new I.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 s=J(o.margin),a=this.box.unpad(s);this.targetBox=e,this.normalBox=a.clone(),(a=this.rotate()).translate(s.left-s.right,s.top-s.bottom),this.rotatedBox=a.clone(),a.pad(s)}},e.prototype.createVisual=function(){var t=this.options;if(this.visual=new I.drawing.Group({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()){var e=I.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&&!_t(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,T,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 I.geometry.transform().translate(i.x-o,i.y-r).rotate(t,[o,r])},e}(ve);const Ee=Te;var Re=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,T)},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!==s})),r=e.filter((function(t){return t&&t.options.position===s}));return Be(o),Be(r),r.reverse(),o.concat(r)},e}(de);function Be(t){for(var e=1;e<t.length;e++){var o=t[e]._textBox,r=t[e-1]._textBox;r.options.margin=Object.assign(J(r.options.margin),{bottom:0}),o.options.margin=Object.assign(J(o.options.margin),{top:0})}}Dt(Re,{color:n,position:A,align:a,margin:J(5),padding:J(5)});const Le=Re;var je=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:At(e),value:this.value,text:this.text,index:this.index,dataItem:this.dataItem,axis:this.parent.options})},e.prototype.rotate=function(){if(this.options.alignRotation!==a){var e=this.normalBox.toRect(),o=this.rotationTransform();this.box=Oe(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===a)return t.prototype.rotationTransform.call(this);var r=I.geometry.transform().rotate(o).matrix(),i=this.normalBox.toRect(),n=this.targetBox.toRect(),p=e.rotationOrigin||A,l=p===A||p===s?T:E,c=p===A||p===s?E:T,h=p===A||p===g?n.origin:n.bottomRight(),u=i.topLeft().transformCopy(r),f=i.topRight().transformCopy(r),v=i.bottomRight().transformCopy(r),y=i.bottomLeft().transformCopy(r),m=I.geometry.Rect.fromPoints(u,f,v,y),x={};x[c]=n.origin[c]-m.origin[c];var b,_,w=Math.abs(u[c]+x[c]-h[c]),C=Math.abs(f[c]+x[c]-h[c]);Rt(w,d)===Rt(C,d)?(b=u,_=f):C<w?(b=f,_=v):(b=u,_=y);var k=b[l]+(_[l]-b[l])/2;return x[l]=n.center()[l]-k,I.geometry.transform().translate(x.x,x.y).rotate(o)},e}(Ee);Dt(je,{_autoReflow:!1});const Ie=je;var De=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,s=new ie,a=function(){return t},l=n.size,c=this.fields.text;if(_t(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=a,i.position!==y||_t(l)||(n.type===p?l=Math.max(this.label.box.width(),this.label.box.height()):(o=this.label.box.width(),r=this.label.box.height()),s.wrap(this.label.box))}n.width=o||l||7,n.height=r||l||7;var u=new ge(X({},n));u.aliasFor=a,this.marker=u,this.append(u),this.label&&this.append(this.label),u.reflow(new ie),this.wrapperBox=s.wrap(u.box)}},e.prototype.reflow=function(t){var e,o,r,i=this,n=i.options,a=i.label,p=i.marker,l=i.wrapperBox,c=t.center(),h=n.line.length,u=n.position;n.visible&&(ct(u,[g,C])?u===g?(r=l.alignTo(t,u).translate(-h,t.center().y-l.center().y),n.line.visible&&(e=[t.x1,c.y],this.linePoints=[e,[r.x2,c.y]],o=r.clone().wrapPoint(e))):(r=l.alignTo(t,u).translate(h,t.center().y-l.center().y),n.line.visible&&(e=[t.x2,c.y],this.linePoints=[e,[r.x1,c.y]],o=r.clone().wrapPoint(e))):u===s?(r=l.alignTo(t,u).translate(t.center().x-l.center().x,h),n.line.visible&&(e=[c.x,t.y2],this.linePoints=[e,[c.x,r.y1]],o=r.clone().wrapPoint(e))):(r=l.alignTo(t,u).translate(t.center().x-l.center().x,-h),n.line.visible&&(e=[c.x,t.y1],this.linePoints=[e,[c.x,r.y2]],o=r.clone().wrapPoint(e))),p&&p.reflow(r),a&&(a.reflow(r),p&&(n.label.position===w&&a.box.alignTo(p.box,u),a.reflow(a.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=I.drawing.Path.fromPoints(this.linePoints,{stroke:{color:t.color,width:t.width,dashType:t.dashType}});D(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:At(t),text:_t(e.label)?e.label.text:"",visual:this.visual})},e}(ve);Dt(De,{icon:{visible:!0,type:p},label:{position:y,visible:!0,align:a,vAlign:a},line:{visible:!0},visible:!0,position:A,zIndex:2});const ze=De;var Ve={format:function(t,e){return e},toString:function(t){return t},parseDate:function(t){return new Date(t)},firstDay:function(){return 0}},He=function(){},Ne={implementation:{configurable:!0}};He.register=function(t){Ve=t},Ne.implementation.get=function(){return Ve},Object.defineProperties(He,Ne);const Fe=He;var Ue=/\{(\d+)(:[^\}]+)?\}/g,Ge=function(t){this._intlService=t},We={intl:{configurable:!0}};We.intl.get=function(){return this._intlService||Fe.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 H(t)&&t.match(f)?r.format.apply(r,[t].concat(e)):r.toString(e[0],t)},Ge.prototype.localeAuto=function(t,e,o){var r=this.intl;return H(t)&&t.match(f)?t.replace(Ue,(function(t,i,n){var s=e[parseInt(i,10)];return r.toString(s,n?n.substring(1):"",o)})):r.toString(e[0],t,o)},Object.defineProperties(Ge.prototype,We);const Xe=Ge;var Ye=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)},qe={intl:{configurable:!0}};qe.intl.get=function(){return this._intlService||Fe.implementation},qe.intl.set=function(t){this._intlService=t,this.format.intl=t},Ye.prototype.notify=function(t,e){this.chart&&this.chart.trigger(t,e)},Ye.prototype.isPannable=function(t){var e=((this.chart||{}).options||{}).pannable;return e&&e.lock!==t},Object.defineProperties(Ye.prototype,qe);const Qe=Ye;var Ze,Ke=function(){};Ke.register=function(t){Ze=t},Ke.create=function(t,e){if(Ze)return Ze.create(t,e)};const Je=Ke;function $e(t,e){var o=t.tickX,r=t.tickY,i=t.position,n=new I.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),D(n),n}function to(t,e){var o=t.lineStart,r=t.lineEnd,i=t.position,n=new I.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),D(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!==b},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!==b},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;Y(e)&&(t.alignRotation=e.align,t.rotation=e.angle)},e.prototype.createLabels=function(){var t=this,e=this.options,o=e.vertical?C:a,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(),s=n.min;s<n.max;s+=i){var p={index:s,count:n.max},l=t.createAxisLabel(s,r,p);l&&(t.append(l),t.labels.push(l))}}},e.prototype.clearLabels=function(){this.children=st(this.children,(function(t){return!(t instanceof Ie)})),this.labels=[]},e.prototype.clearTitle=function(){var t=this;this.title&&(this.children=st(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,s=t.line.width||0;return o?new ie(i,e.y1,i,e.y2-s):new ie(e.x1,n,e.x2-s,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 a=new ze({value:n.value,text:n.label.text,dataItem:n},n,t.chartService);a.options.visible&&(_t(a.options.position)?e.vertical&&!ct(a.options.position,[g,C])?a.options.position=e.reverse?g:C:e.vertical||ct(a.options.position,[A,s])||(a.options.position=e.reverse?s:A):e.vertical?a.options.position=e.reverse?g:C:a.options.position=e.reverse?s:A,t.append(a),t.notes.push(a))}},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 I.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 s(e,i,s){var a=e.length,p=Math.max(1,i.step);if(i.visible)for(var l=i.skip;l<a;l+=p)_t(s)&&l%s==0||(n.tickX=r?o.x2:o.x2-i.size,n.tickY=r?o.y1-i.size:o.y1,n.position=e[l],t.append($e(n,i)))}s(this.getMajorTickPositions(),e.majorTicks),s(this.getMinorTickPositions(),e.minorTicks,i/e.minorUnit)},e.prototype.createLine=function(){var t=this.options,e=t.line,o=this.lineBox();if(e.width>0&&e.visible){var r=new I.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&&D(r);var i=this._lineGroup=new I.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=I.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 I.drawing.Group({zIndex:-1}),s=st(this.pane.axes,(function(e){return e.options.vertical!==t.options.vertical}))[0],a=0;a<o.length;a++){var p=o[a],l=void 0,c=void 0,h=p.label,u=void 0;if(r?(l=(s||i.axisX).lineBox(),c=t.getSlot(p.from,p.to,!0)):(l=t.getSlot(p.from,p.to,!0),c=(s||i.axisY).lineBox()),h&&(h.vAlign=h.position||g,u=t.createPlotBandLabel(h,p,new ie(l.x1,c.y1,l.x2,c.y2))),0!==l.width()&&0!==c.height()){var d=new I.geometry.Rect([l.x1,c.y1],[l.width(),c.height()]),f=I.drawing.Path.fromRect(d,{fill:{color:p.color,opacity:p.opacity},stroke:null});n.append(f),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(_t(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,s=t.options.line.visible,a=r.visible?e.majorUnit:0,p=t.lineBox(),l=p[n?"y1":"x1"],c={lineStart:p[n?"x1":"y1"],lineEnd:p[n?"x2":"y2"],vertical:n},h=[],u=this.gridLinesVisual();function d(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 a=Rt(t[n]);ct(a,h)||n%o==0||s&&l===a||(c.position=a,u.append(to(c,e)),h.push(a))}}return d(this.getMajorTickPositions(),r),d(this.getMinorTickPositions(),o,a/i),u.children},e.prototype.reflow=function(t){for(var e=this,o=e.options,r=e.labels,i=e.title,n=o.vertical,s=r.length,a=n?M:v,p=i?i.box[a]():0,l=this.getActualTickSize()+o.margin+p,c=((this.getRoot()||{}).box||t)[a](),h=0,u=0;u<s;u++){var d=r[u].box[a]();d+l<=c&&(h=Math.max(h,d))}this.box=n?new ie(t.x1,t.y1,t.x1+h+l,t.y2):new ie(t.x1,t.y1,t.x2,t.y1+h+l),this.arrangeTitle(),this.arrangeLabels(),this.arrangeNotes()},e.prototype.getLabelsTickPositions=function(){return this.getMajorTickPositions()},e.prototype.labelTickIndex=function(t){return t.index},e.prototype.arrangeLabels=function(){for(var t=this.options,e=this.labels,o=this.labelsBetweenTicks(),r=t.vertical,i=t.labels.mirror,n=this.getLabelsTickPositions(),s=0;s<e.length;s++){var a=e[s],p=this.labelTickIndex(a),l=r?a.box.height():a.box.width(),c=n[p],h=n[p+1],u=void 0,d=void 0;r?d=u=o?c+(h-c)/2-l/2:c-l/2:o?(u=c,d=h):d=(u=c-l/2)+l,this.positionLabel(a,i,u,d)}},e.prototype.positionLabel=function(t,e,o,r){void 0===r&&(r=o);var i,n=this.options,a=n.vertical,p=this.lineBox(),l=this.getActualTickSize()+n.margin;if(a){var c=p.x2;e?(c+=l,t.options.rotationOrigin=g):(c-=l+t.box.width(),t.options.rotationOrigin=C),i=t.box.move(c,o)}else{var h=p.y1;e?(h-=l+t.box.height(),t.options.rotationOrigin=s):(h+=l,t.options.rotationOrigin=A),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]),s=e[i].box,a=this.autoRotateLabelAngle(s,n);if(0!==a&&(r=a),-90===r)break}if(0!==r){for(var p=0;p<e.length;p++)e[p].options.rotation=r,e[p].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?A:s),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;_t(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:T;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:T;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:T,s=this.labels,a=o?1:0,p=o?0:1,l=0,c=0,h=0;h<s.length;h++){var u=s[h],d=this.labelTickIndex(u),f=void 0,v=void 0;r?(f=i[d+a],v=i[d+p]):f=v=i[d],l=Math.max(l,f-u.box[n+1]),c=Math.max(c,u.box[n+2]-v)}return{start:l,end:c}},e.prototype.limitRange=function(t,e,o,r,i){var n=this.options;if(t<o&&i<0&&(!_t(n.min)||n.min<=o)||r<e&&i>0&&(!_t(n.max)||r<=n.max))return null;if(e<o&&i>0||r<t&&i<0)return{min:t,max:e};var s=e-t,a=t,p=e;return t<o&&i<0?(a=Mt(t,o,r),p=Mt(t+s,o+s,r)):e>r&&i>0&&(p=Mt(e,o,r),a=Mt(e-s,o,r-s)),{min:a,max:p}},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:T,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,s=e.lineSize;return(r>0?t[o]-n[i]:n[i]-t[o])/s},e.prototype.scaleToDelta=function(t,e){var o=Mt(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}(de);Dt(eo,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:n,visible:!0},title:{visible:!0,position:a},majorTicks:{align:w,size:4,skip:0,step:1},minorTicks:{align:w,size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:w,minorTickType:b,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",so="hours",ao="days",po="weeks",lo="months",co="years",ho=1e3,uo=60*ho,fo=60*uo,vo=24*fo,yo=7*vo,go=31*vo,mo=365*vo,xo={years:mo,months:go,weeks:yo,days:vo,hours:fo,minutes:uo,seconds:ho,milliseconds:1};function bo(t,e){return t.getTime()-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*uo}function _o(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 ko(t,e,o,r){var i=t;if(t){var n=wo(t),s=n.getHours();o===co?Co(i=new Date(n.getFullYear()+e,0,1),0):o===lo?Co(i=new Date(n.getFullYear(),n.getMonth()+e,1),s):o===po?(i=ko(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 _o(t,-o*vo)}(n,r),7*e,ao),Co(i,s)):o===ao?Co(i=new Date(n.getFullYear(),n.getMonth(),n.getDate()+e),s):o===so?i=function(t,e){var o=new Date(t);o.setMinutes(0,0,0);var r=(t.getTimezoneOffset()-o.getTimezoneOffset())*uo;return _o(o,r+e*fo)}(n,e):o===no?(i=_o(n,e*uo)).getSeconds()>0&&i.setSeconds(0):o===io?i=_o(n,e*ho):o===ro&&(i=_o(n,e)),o!==ro&&i.getMilliseconds()>0&&i.setMilliseconds(0)}return i}function So(t,e,o){return ko(wo(t),0,e,o)}function Ao(t,e,o){var r=wo(t);return r&&So(r,e,o).getTime()===r.getTime()?r:ko(r,1,e,o)}function Po(t,e){return t&&e?t.getTime()-e.getTime():-1}function Oo(t,e){return t.getTime()-e}function Mo(t){if(R(t)){for(var e=[],o=0;o<t.length;o++)e.push(Mo(t[o]));return e}if(t)return wo(t).getTime()}function To(t,e){return t&&e?Mo(t)===Mo(e):t===e}function Eo(t,e,o){return bo(t,e)/xo[o]}function Ro(t,e,o,r){var i=wo(t),n=wo(e);return(o===lo?i.getMonth()-n.getMonth()+12*(i.getFullYear()-n.getFullYear())+Eo(i,new Date(i.getFullYear(),i.getMonth()),ao)/new Date(i.getFullYear(),i.getMonth()+1,0).getDate():o===co?i.getFullYear()-n.getFullYear()+Ro(i,new Date(i.getFullYear(),0),lo,1)/12:o===ao||o===po?Eo(i,n,o):Oo(i,e)/xo[o])/r}function Bo(t,e,o){return o===co?e.getFullYear()-t.getFullYear():o===lo?12*Bo(t,e,co)+e.getMonth()-t.getMonth():o===ao?Math.floor(Oo(e,t)/vo):Math.floor(Oo(e,t)/xo[o])}function Lo(t,e){return H(e)&&t.parseDate(e)||wo(e)}function jo(t,e){if(R(e)){for(var o=[],r=0;r<e.length;r++)o.push(Lo(t,e[r]));return o}return Lo(t,e)}function Io(t,e){return V(t.weekStartDay)?t.weekStartDay:e&&e.firstDay?e.firstDay():0}var Do=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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=_t(t.min),r=_t(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:V(t.min)?t.min%1:0,max:V(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=V(o.min)?o.min:0;if(e=V(o.max)?o.max:V(o.min)?r+o.categories.length:this.totalRange().max||1,t){var i=this.totalRange();r=Mt(r,0,i.max),e=Mt(e,0,i.max)}return{min:r,max:e}},e.prototype.range=function(){var t=this.options;return{min:V(t.min)?t.min:0,max:V(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:T,r=t[o+1],i=t[o+2],n=e[0],s=Ot(e);(n.box[o+1]>i||n.box[o+2]<r)&&(n.options.visible=!1),(s.box[o+1]>i||s.box[o+2]<r)&&(s.options.visible=!1)}},e.prototype.getMajorTickPositions=function(){return this.getTicks().majorTicks},e.prototype.getMinorTickPositions=function(){return this.getTicks().minorTicks},e.prototype.getLabelsTickPositions=function(){return this.getTicks().labelTicks},e.prototype.tickIndices=function(t){for(var e=this.rangeIndices(),o=e.min,r=e.max,i=Math.ceil(r),n=Math.floor(o),s=[];n<=i;)s.push(n),n+=t;return s},e.prototype.getTickPositions=function(t){for(var e=this.options,o=e.vertical,r=e.reverse,i=this.scaleOptions(),n=i.scale,s=i.box,a=i.min,p=s[(o?E:T)+(r?2:1)],c=this.tickIndices(t),h=[],u=0;u<c.length;u++)h.push(p+Rt(n*(c[u]-a),l));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:T,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 s=i;!r(t[s])&&s>=0;)s--;return t.slice(n,s+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:T,s=o?-1:1,a=n+(1===s?1:2).toString();return{axis:n,axisOrigin:a,axisDir:s,lineBox:r,lineSize:i,lineStart:r[a]}},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,s=this.scaleOptions(),a=s.scale,p=s.box,l=s.min,c=this.lineInfo(),h=c.axis,u=c.lineStart,d=p.clone(),f=!_t(e),v=Lt(t,0),y=Lt(e,v);y=Math.max(y-1,v);var g=u+(v-l)*a,m=u+((y=Math.max(v,y))+1-l)*a;return f&&n&&(m=g),o&&(g=Mt(g,p[h+1],p[h+2]),m=Mt(m,p[h+1],p[h+2])),d[h+1]=i?m:g,d[h+2]=i?g:m,d},e.prototype.limitSlot=function(t){var e=this.options.vertical?E:T,o=this.lineBox(),r=t.clone();return r[e+1]=Mt(t[e+1],o[e+1],o[e+2]),r[e+2]=Mt(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,s=o;return"string"==typeof n?n=this.categoryIndex(n):V(n)&&(n-=i),"string"==typeof s?s=this.categoryIndex(s):V(s)&&(s-=i),t.prototype.slot.call(this,n,s,r)},e.prototype.pointCategoryIndex=function(t){var e=this.options,o=e.reverse,r=e.justified,i=e.vertical?E:T,n=this.scaleOptions(),s=n.scale,a=n.box,p=n.min,l=n.max,c=o?l:p,h=a[i+1],u=a[i+2],d=t[i];if(d<h||d>u)return null;var f=c+(d-h)/s,v=f%1;return r?f=Math.round(f):0===v&&f>0&&f--,Math.floor(f)},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=Rt(t/(r/i),d);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),s=o*n,a=(1-o)*n,p=r.min+s,l=r.max-a;return l-p<.1&&(l=p+.1),{min:p,max:l}},e.prototype.zoomRange=function(t,e){var o=this.totalRange(),r=o.min,i=o.max,n=this.scaleRange(t,e);return{min:Mt(n.min,r,i),max:Mt(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,s=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)-s,max:(t.categories.length?n+(e?1:0):0)-s}},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 s=this.axisLabelText(n,e,o);return new Ie(n,s,t,i,e)},e.prototype.shouldRenderNote=function(t){var e=this.totalRangeIndices();return Math.floor(e.min)<=t&&t<=Math.ceil(e.max)},e.prototype.noteSlot=function(t){var e=this.options,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:T,r=e[o+1],i=e[o+2],n=0;n<t.length;n++){var s=t[n];s.box&&(i<s.box[o+1]||s.box[o+2]<r)&&s.hide()}},e.prototype.pan=function(t){var e=this.totalRangeIndices(!0),o=this.scaleOptions().scale,r=Rt(t/o,d),i=this.totalRange(),n=e.min+r,s=e.max+r;return this.limitRange(n,s,0,i.max,r)},e.prototype.pointsRange=function(t,e){var o=this.options,r=o.reverse,i=o.vertical?E:T,n=this.totalRangeIndices(!0),s=this.scaleOptions(),a=s.scale,p=s.box[i+(r?2:1)],l=t[i]-p,c=e[i]-p,h=n.min+l/a,u=n.min+c/a,d=Math.min(h,u),f=Math.max(h,u);if(f-d>=.01)return{min:d,max:f}},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(To(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 V(t.min)&&(e=Math.floor(t.min)),{min:e,max:V(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 lt,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);Dt(Do,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:n},labels:{zIndex:1},justified:!1,_deferLabels:!0});const zo=Do;var Vo={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"},Ho=[ro,io,no,so,ao,po,lo,co],No="fit";function Fo(t){var e=t._range;return e||((e=t._range=zt(t)).min=wo(e.min),e.max=wo(e.max)),e}var Uo=function(t){this.options=t};Uo.prototype.displayIndices=function(){return{min:0,max:1}},Uo.prototype.displayRange=function(){return{}},Uo.prototype.total=function(){return{}},Uo.prototype.valueRange=function(){return{}},Uo.prototype.valueIndex=function(){return-1},Uo.prototype.values=function(){return[]},Uo.prototype.totalIndex=function(){return-1},Uo.prototype.valuesCount=function(){return 0},Uo.prototype.totalCount=function(){return 0},Uo.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=ko(t,0,o.baseUnit,o.weekStartDay);var n=this.roundToTotalStep(e),s=!i&&To(e,n)&&!o.justifyEnd;this.end=this.roundToTotalStep(e,!i,s?1:0);var a=o.min||t;this.valueStart=this.roundToTotalStep(a),this.displayStart=r?this.valueStart:a;var p=o.max;if(p){var l=!i&&To(p,this.roundToTotalStep(p))?-1:0;this.valueEnd=this.roundToTotalStep(p,!1,l),this.displayEnd=r?this.roundToTotalStep(p,!i):o.max}else this.valueEnd=n,this.displayEnd=r||s?this.end:e;this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))};function Wo(t,e,o){for(var r,i,n,s=Fo(t.categories),a=(t.max||s.max)-(t.min||s.min),p=t.autoBaseUnitSteps,l=t.maxDateGroups,c=t.baseUnit===No,h=e?Ho.indexOf(e):0,u=c?Ho[h++]:t.baseUnit,d=a/xo[u],f=d;!i||d>=l;){r=r||p[u].slice(0);do{n=r.shift()}while(n&&e===u&&n<o);if(n)d=f/(i=n);else{if(u===Ot(Ho)){i=Math.ceil(f/l);break}if(!c){d>l&&(i=Math.ceil(f/l));break}u=Ho[h++]||Ot(Ho),f=a/xo[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=Ro(this.displayStart,this.valueStart,e,o),i=Ro(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(Ro(t,this.valueStart,e.baseUnit,e.baseUnitStep))},Go.prototype.totalIndex=function(t){var e=this.options;return Math.floor(Ro(t,this.start,e.baseUnit,e.baseUnitStep))},Go.prototype.dateIndex=function(t){var e=this.options;return Ro(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=ko(r,e.baseUnitStep,e.baseUnit,e.weekStartDay)}return t},Go.prototype.dateAt=function(t,e){var o=this.options;return ko(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,s=r.weekStartDay,a=this.start,p=Ro(t,a,i,n),l=e?Math.ceil(p):Math.floor(p);return o&&(l+=o),ko(a,l*n,i,s)};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=jo(o,i))._parsed=!0),r=X({roundToBaseUnit:!0},r,{categories:i,min:Lo(o,r.min),max:Lo(o,r.max),weekStartDay:Io(r,o)}),e.panning&&e.isPannable(r.vertical?E:T)&&(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=Fo(i),s=r.maxDivisions;if(this.dataRange=new Go(n.min,n.max,function(t){var e=(t.baseUnit||"").toLowerCase();return e!==No&&!ct(e,Ho)&&function(t){for(var e,o,r=t.categories,i=_t(r)?r.length:0,n=m,s=0;s<i;s++){var a=r[s];if(a&&e){var p=bo(a,e);p>0&&(o=(n=Math.min(n,p))>=mo?co:n>=go-3*vo?lo:n>=yo?po:n>=vo?ao:n>=fo?so:n>=uo?no:io)}e=a}t.baseUnit=o||ao}(t),e!==No&&"auto"!==t.baseUnitStep||Wo(t),t}(r)),s){var a=this.dataRange.displayRange(),p=Object.assign({},r,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:a.min,max:a.max,maxDateGroups:s}),l=this.dataRange.options;Wo(p,l.baseUnit,l.baseUnitStep),this.divisionRange=new Go(n.min,n.max,p)}else this.divisionRange=this.dataRange}else r.baseUnit=r.baseUnit||ao,this.dataRange=this.divisionRange=new Uo(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=[],s=r.values(),a=0;this.options.justified||(s=s.concat(r.dateAt(i)),a=.5);for(var p=0;p<s.length;p++)if(n.push(o.dateIndex(s[p])+a),1!==e&&p>=1){var l=n.length-1;n.splice(p,0,n[l-1]+(n[l]-n[l-1])*e)}return n},e.prototype.shouldRenderNote=function(t){var e=this.range(),o=this.options.categories||[];return Po(t,e.min)>=0&&Po(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(),s=i?n.height():n.width(),a=this.range(),p=s/(a.max-a.min),l=Rt(t/p,d);if(a.min&&a.max){var c=_o(e.min||a.min,l),h=_o(e.max||a.max,l);a={min:ko(c,0,o,r),max:ko(h,0,o,r)}}return a},e.prototype.labelsRange=function(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}},e.prototype.pan=function(t){if(this.isEmpty())return null;var e=this.options,o=this.lineBox(),r=e.vertical?o.height():o.width(),i=this.dataRange.displayRange(),n=i.min,s=i.max,a=this.dataRange.total(),p=Rt(t/(r/(s-n)),d)*(e.reverse?-1:1),l=_o(n,p),c=_o(s,p),h=this.limitRange(Mo(l),Mo(c),Mo(a.min),Mo(a.max),p);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(),s=Oo(i.max,i.min)/(n.max-n.min),a=this.options;return{min:_o(i.min,r.min*s),max:_o(i.min,r.max*s),baseUnit:a.userSetBaseUnit||a.baseUnit,baseUnitStep:a.userSetBaseUnitStep||a.baseUnitStep}},e.prototype.scaleRange=function(t,e){if(this.isEmpty())return{};var o=this.options,r=o.userSetBaseUnit===No,i=this.dataRange.total(),n=this.dataRange.displayRange(),s=n.min,a=n.max,p=Math.abs(this.pointOffset(e)),l=a-s,c=this.scaleToDelta(t,l),h=Math.round(p*c),u=Math.round((1-p)*c),d=this.dataRange.options.baseUnit,f=new Date(s.getTime()+h),v=new Date(a.getTime()-u);if(r){var y,g,m=o.autoBaseUnitSteps,x=o.maxDateGroups,b=Ot(m[d])*x*xo[d],_=Oo(a,s),w=Oo(v,f),C=Ho.indexOf(d);if(w<xo[d]&&d!==ro)d=Ho[C-1],f=_o(s,g=(_-(x-1)*(y=Ot(m[d]))*xo[d])/2),v=_o(a,-g);else if(w>b&&d!==co){var k=0;do{C++,d=Ho[C],k=0,g=2*xo[d];do{y=m[d][k],k++}while(k<m[d].length&&g*y<_)}while(d!==co&&g*y<_);(g=(g*y-_)/2)>0&&(f=_o(s,-g),v=_o(a,g),f=_o(f,Mt(v,i.min,i.max)-v),v=_o(v,Mt(f,i.min,i.max)-f))}}return f&&v&&Oo(v,f)>0?{min:f,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 s=r?o.y1-n.box.height()/2:o.x1;this.positionLabel(n,i,s)}var a=e[1];if(a){var p=r?o.y2-a.box.height()/2:o.x2;this.positionLabel(a,i,p)}}},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&&s(o,e[r]);r++);var i=t[1];if(i&&i.options.visible)for(var n=e.length-1;n>0&&s(i,e[n]);--n);}function s(t,e){return!(e.options.visible&&!e.box.overlaps(t.box)||(e.options.visible=!1,0))}},e.prototype.contentBox=function(){for(var e=t.prototype.contentBox.call(this),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),s=e.dateFormats[this.divisionRange.options.baseUnit];e.format=e.format||s,o.dataItem=i;var a=this.axisLabelText(n,e,o);if(a)return new Ie(n,a,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:a,zIndex:i.zIndex});if(!0===n.visible){this.normalizeLabelRotation(n),n.alignRotation=a,"auto"===n.rotation&&(n.rotation=0,i.autoRotateRangeLabels=!0);var s=n.dateFormats[this.divisionRange.options.baseUnit];n.format=n.format||s;var p=function(e,o,r){if(r){var i=new Ie(o,r,e,null,n);t.append(i),t.rangeLabels.push(i)}};p(0,o,this.axisLabelText(o,n,{index:0,count:2})),p(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 s=this.getSlot(i,n,o);if(s)return s.toRect()},e.prototype.getSlot=function(e,o,r){var i=e,n=o;return typeof i===_&&(i=this.categoryIndex(i)),typeof n===_&&(n=this.categoryIndex(n)),t.prototype.getSlot.call(this,i,n,r)},e.prototype.valueRange=function(){var t=Fo(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=Fo(t.srcCategories);return new Go(e.min,e.max,Object.assign({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:!1})).displayRange()},e}(zo);Dt(Xo,{type:h,labels:{dateFormats:Vo},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 Yo=Xo;function qo(t,e){return Rt(Math.floor(t/e)*e,d)}function Qo(t,e){return Rt(Math.ceil(t/e)*e,d)}function Zo(t){return Math.max(Math.min(t,3e5),-3e5)}var Ko=Math.pow(10,1-d),Jo=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),s=te(i,n),a={majorUnit:s};return!1!==o.roundToMajorUnit&&(i<0&&$o(i,s,1/3)&&(i-=s),n>0&&$o(n,s,1/3)&&(n+=s)),a.min=qo(i,s),a.max=Qo(n,s),a}(t.seriesMin,t.seriesMax,t);return this.totalOptions=function(t,e){return{min:_t(e.min)?Math.min(t.min,e.min):t.min,max:_t(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=_t(e.min),r=_t(e.max);var n=o||r;n&&e.min===e.max&&(e.min>0?e.min=0:e.max=1),e.majorUnit?(t.min=qo(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 s=X(t,i);return s.min>=s.max&&(o&&!r?s.max=s.min+s.majorUnit:!o&&r&&(s.min=s.max-s.majorUnit)),s}(e,t)},e.prototype.initFields=function(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax},e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.startValue=function(){return 0},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.getDivisions=function(t){if(0===t)return 1;var e=this.options,o=e.max-e.min;return Math.floor(Rt(o/t,l))+1},e.prototype.getTickPositions=function(t,e){var o=this.options,r=this.lineInfo(),i=r.axisDir,n=r.axisOrigin,s=r.lineBox,a=t*(r.lineSize/(o.max-o.min)),p=this.getDivisions(t),c=[],h=s[n],u=0;e&&(u=e/t);for(var d=0;d<p;d++)d%u!=0&&c.push(Rt(h,l)),h+=a*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,s=i.axisDir,a=i.lineBox,p=i.lineSize,l=i.lineStart,c=s*(p/(r.max-r.min)),h=Lt(t,e||0),u=Lt(e,t||0);o&&(h=Mt(h,r.min,r.max),u=Mt(u,r.min,r.max));var d=Math.min(h,u)-r.min,f=Math.max(h,u)-r.min,v=new ie(a.x1,a.y1,a.x1,a.y1);return v[n+1]=Zo(l+c*(s>0?d:f)),v[n+2]=Zo(l+c*(s>0?f:d)),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:Rt(r+i*(o-r),d)},e.prototype.translateRange=function(t){var e=this.options,o=e.vertical,r=e.reverse,i=e.max,n=e.min,s=this.lineInfo().lineSize,a=Rt(t/(s/(i-n)),d);return!o&&!r||o&&r||(a=-a),{min:n+a,max:i+a,offset:a}},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,o){var r=this.options,i=Rt(r.min+t*r.majorUnit,d),n=this.axisLabelText(i,e,o);return new Ie(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,s=(1-o)*i,a=Rt(this.options.min+n,d),p=Rt(this.options.max-s,d);return p-a<Ko&&(p=a+Ko),{min:a,max:p}},e.prototype.zoomRange=function(t,e){var o=this.totalMin,r=this.totalMax,i=this.scaleRange(t,e);return{min:Mt(i.min,o,r),max:Mt(i.max,o,r),narrowRange:!1}},e.prototype.isValidRange=function(t,e){return e-t>Ko},e}(oo);function $o(t,e,o){var r=Rt(Math.abs(t%e),d);return 0===r||r>e*(1-o)}Dt(Jo,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},labels:{format:"#.####################"},zIndex:1});const tr=Jo;var er=function(t){function e(e,o,r,i){var n=wo(e),s=wo(o),a=i.intl,p=r||{};p=function(t,e,o){var r,i,n=o.min||t,s=o.max||e,a=o.baseUnit||(s&&n?(r=bo(s,n),i=so,r>=mo?i=co:r>=go?i=lo:r>=yo?i=po:r>=vo&&(i=ao),i):so),p=xo[a],l=o.weekStartDay||0,c=So(Mo(n)-1,a,l)||wo(s),h=Ao(Mo(s)+1,a,l),u=(o.majorUnit?o.majorUnit:void 0)||Qo(te(c.getTime(),h.getTime()),p)/p,d=Bo(c,h,a),f=Qo(d,u)-d,v=Math.floor(f/2),y=f-v;return o.baseUnit||delete o.baseUnit,o.baseUnit=o.baseUnit||a,o.min=o.min||ko(c,-v,a,l),o.max=o.max||ko(h,y,a,l),o.minorUnit=o.minorUnit||u/5,o.majorUnit=u,o}(n,s,p=X(p||{},{min:Lo(a,p.min),max:Lo(a,p.max),axisCrossingValue:jo(a,p.axisCrossingValues||p.axisCrossingValue),weekStartDay:Io(p,a)})),t.call(this,p,i),this.intlService=a,this.seriesMin=n,this.seriesMax=s;var l=p.weekStartDay||0;this.totalMin=Mo(So(Mo(n)-1,p.baseUnit,l)),this.totalMax=Mo(Ao(Mo(s)+1,p.baseUnit,l))}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(Bo(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,s=this.getDivisions(t),a=i/Oo(e.max,e.min),p=e.weekStartDay||0,c=[n],h=1;h<s;h++){var u=n+Oo(ko(e.min,h*t,e.baseUnit,p),e.min)*a*r;c.push(Rt(u,l))}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,s=r.min;i>0&&(s=ko(s,i,r.baseUnit,n));var a=e.dateFormats[r.baseUnit];e.format=e.format||a;var p=this.axisLabelText(s,e,o);return new Ie(s,p,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(),s=this.range(),a=n/Oo(s.max,s.min),p=Rt(t/a,d);return!r&&!i||r&&i||(p=-p),{min:_o(e.min,p),max:_o(e.max,p),offset:p}},e.prototype.shouldRenderNote=function(t){var e=this.range();return Po(t,e.min)>=0&&Po(t,e.max)<=0},e.prototype.pan=function(t){var e=this.translateRange(t,!0),o=this.limitRange(Mo(e.min),Mo(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,s=(1-o)*i,a=wo(Mo(this.options.min)+n),p=wo(Mo(this.options.max)-s);return p-a<1e3&&(p=wo(Mo(a)+1e3)),{min:a,max:p}},e.prototype.zoomRange=function(t,e){var o=this.scaleRange(t,e);return{min:wo(Mt(Mo(o.min),this.totalMin,this.totalMax)),max:wo(Mt(Mo(o.max),this.totalMin,this.totalMax))}},e}(oo);Dt(er,{type:h,majorGridLines:{visible:!0,width:1,color:n},labels:{dateFormats:Vo}});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),s=n.majorUnit,a=function(t,e){var o=Rt(sr(t,e),d)%1;return t<=0?e:0!==o&&(o<.3||o>.9)?Math.pow(e,sr(t,e)+.2):Math.pow(e,Math.ceil(sr(t,e)))}(o,s),p=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(sr(t,r)))),i}(e,o,n),l=function(t,e,o,r){var i=o.min,n=o.max;return _t(o.axisCrossingValue)&&o.axisCrossingValue<=0&&nr(),_t(r.max)?r.max<=0&&nr():n=e,_t(r.min)?r.min<=0&&nr():i=t,{min:i,max:n}}(p,a,n,r);n.max=l.max,n.min=l.min,n.minorUnit=r.minorUnit||Rt(s-1,d),t.call(this,n,i),this.totalMin=_t(r.min)?Math.min(p,r.min):p,this.totalMax=_t(r.max)?Math.max(a,r.max):a,this.logMin=Rt(sr(l.min,s),d),this.logMax=Rt(sr(l.max,s),d),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,s=r.logMax,a=i.majorUnit,p=i.min,l=i.max,c=this.lineInfo(),h=c.axis,u=c.axisDir,d=c.lineBox,f=c.lineSize,v=c.lineStart,y=u*(f/(s-n)),g=Lt(t,e||1),m=Lt(e,t||1);if(g<=0||m<=0)return null;o&&(g=Mt(g,p,l),m=Mt(m,p,l)),g=sr(g,a),m=sr(m,a);var x=Math.min(g,m)-n,b=Math.max(g,m)-n,_=new ie(d.x1,d.y1,d.x1,d.y1);return _[h+1]=Zo(v+y*(u>0?x:b)),_[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,s=this.lineInfo(),a=s.axis,p=s.axisDir,l=s.lineStart,c=s.lineSize,h=(i-r)/c,u=p*(t[a]-l);if(u<0||u>c)return null;var f=r+u*h;return Rt(Math.pow(n,f),d)},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,s=o.vertical,a=o.majorUnit,p=this.lineBox(),l=s?p.height():p.width(),c=Rt(t/(l/(i-r)),d);return!s&&!n||s&&n||(c=-c),{min:Math.pow(a,r+c),max:Math.pow(a,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,s=this.lineBox(),a={vertical:i};function p(e,o){a.tickX=n?s.x2:s.x2-o.size,a.tickY=n?s.y1-o.size:s.y1,a.position=e,t.append($e(a,o))}return o.visible&&this.traverseMajorTicksPositions(p,o),r.visible&&this.traverseMinorTicksPositions(p,r),[]},e.prototype.createGridLines=function(t){var e=this.options,o=e.minorGridLines,r=e.majorGridLines,i=e.vertical,n=t.lineBox(),s={lineStart:n[i?"x1":"y1"],lineEnd:n[i?"x2":"y2"],vertical:i},a=[],p=this.gridLinesVisual();function l(t,e){ct(t,a)||(s.position=t,p.append(to(s,e)),a.push(t))}return r.visible&&this.traverseMajorTicksPositions(l,r),o.visible&&this.traverseMinorTicksPositions(l,o),p.children},e.prototype.traverseMajorTicksPositions=function(t,e){for(var o=this.lineInfo(),r=o.lineStart,i=o.step,n=this.logMin,s=this.logMax,a=Math.ceil(n)+e.skip;a<=s;a+=e.step)t(Rt(r+i*(a-n),d),e)},e.prototype.traverseMinorTicksPositions=function(t,e){for(var o=this.options,r=o.min,i=o.max,n=o.minorUnit,s=o.majorUnit,a=this.lineInfo(),p=a.lineStart,l=a.step,c=this.logMin,h=this.logMax,u=Math.floor(c);u<h;u++)for(var f=this._minorIntervalOptions(u),v=e.skip;v<n;v+=e.step){var y=f.value+v*f.minorStep;if(y>i)break;y>=r&&t(Rt(p+l*(sr(y,s)-c),d),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 Ie(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=sr(this.options.min,o),i=sr(this.options.max,o),n=Math.abs(this.pointOffset(e)),s=i-r,a=this.scaleToDelta(t,s),p=Math.pow(o,r+n*a),l=Math.pow(o,i-(1-n)*a);return l-p<rr&&(l=p+rr),{min:p,max:l}},e.prototype.zoomRange=function(t,e){var o=this.scaleRange(t,e),r=this.totalMin,i=this.totalMax;return{min:Mt(o.min,r,i),max:Mt(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 sr(t,e){return Math.log(t)/Math.log(e)}Dt(ir,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},zIndex:1,_deferLabels:!0});const ar=ir,pr={createGridLines:function(t){var e,o,r=this.options,i=Math.abs(this.box.center().y-t.lineBox().y1),n=[],s=!1;return r.majorGridLines.visible&&(e=this.majorGridLineAngles(t),s=!0,n=this.renderMajorGridLines(e,i,r.majorGridLines)),r.minorGridLines.visible&&(o=this.minorGridLineAngles(t,s),xt(n,this.renderMinorGridLines(o,i,r.minorGridLines,t,s))),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(),s=new I.geometry.Circle([n.x,n.y],e),a=this.gridLinesVisual(),p=0;p<t.length;p++){var l=new I.drawing.Path(i);r&&(s.radius=r(t[p])),l.moveTo(s.center).lineTo(s.pointAt(t[p]+180)),a.append(l)}return a.children},gridLineAngles:function(t,e,o,r,i){var n=this,s=this.intervals(e,o,r,i),a=t.options,p=a.visible&&!1!==(a.line||{}).visible;return vt(s,(function(t){var e=n.intervalAngle(t);if(!p||90!==e)return e}))}};var lr=function(t){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 s=t[n].box;t[n].reflow(this.getSlot(o+n*r).adjacentBox(0,s.width(),s.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,s=360/n,a=o||1,p=[],c=0,h=e||0;h<n;h+=a)c=i.reverse?360-h*s:h*s,c=Rt(c,l)%360,r&&ct(c,r)||p.push(c);return p},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,s=this.majorAngles();return function(e){return!o&&ct(e,s)?t:n}}},e.prototype.createPlotBands=function(){for(var t=this.options.plotBands||[],e=this._plotbandGroup=new I.drawing.Group({zIndex:-1}),o=0;o<t.length;o++){var r=t[o],i=this.plotBandSlot(r),n=this.getSlot(r.from),s=r.from-Math.floor(r.from);i.startAngle+=s*n.angle;var a=Math.ceil(r.to)-r.to;i.angle-=(a+s)*n.angle;var p=he.current.createRing(i,{fill:{color:r.color,opacity:r.opacity},stroke:{opacity:r.opacity}});e.append(p)}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(),s=n.length,a=360/s,p=t;o.reverse&&!r&&(p=(p+1)%s);var l=n[p=Mt(Math.floor(p),0,s-1)];r&&(l-=a/2)<0&&(l+=360);var c=a*(Mt(Math.ceil(e||p),p,s-1)-p+1);return new ae(i.center(),0,i.height()/2,l,c)},e.prototype.slot=function(t,e){var o=this.getSlot(t,e),r=o.startAngle+180,i=r+o.angle;return new I.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}(zo);Dt(lr,{startAngle:90,labels:{margin:J(10)},majorGridLines:{visible:!0},justified:!0}),X(lr.prototype,pr);const cr=lr;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,s=new ie,a=this.intervals(e.majorUnit,i,n),p=0;p<o.length;p++){o[p].reflow(s);var l=o[p].box;o[p].reflow(this.getSlot(a[p]).adjacentBox(0,l.width(),l.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),s=[],a=o||1,p=e||0;p<n;p+=a){var l=(360+i+p*t)%360;r&&ct(l,r)||s.push(l)}return s},e.prototype.majorIntervals=function(){return this.intervals(this.options.majorUnit)},e.prototype.minorIntervals=function(){return this.intervals(this.options.minorUnit)},e.prototype.intervalAngle=function(t){return(540-t-this.options.startAngle)%360},e.prototype.createLine=function(){return[]},e.prototype.majorGridLineAngles=function(t){var e=this.options.majorGridLines;return this.gridLineAngles(t,this.options.majorUnit,e.skip,e.step)},e.prototype.minorGridLineAngles=function(t,e){var 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=Mt(t,o.min,o.max),s=Mt(e||n,n,o.max);if(o.reverse&&(n*=-1,s*=-1),(s=(540-s-i)%360)<(n=(540-n-i)%360)){var a=n;n=s,s=a}return new ae(r.center(),0,r.height()/2,n,s-n)},e.prototype.slot=function(t,e){void 0===e&&(e=t);var o,r,i=this.options,n=360-i.startAngle,s=this.getSlot(t,e),a=Math.min(t,e),p=Math.max(t,e);return i.reverse?(o=a,r=p):(o=360-p,r=360-a),o=(o+n)%360,r=(r+n)%360,new I.geometry.Arc([s.center.x,s.center.y],{startAngle:o,endAngle:r,radiusX:s.radius,radiusY:s.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))),s=e.startAngle;return e.reverse||(n*=-1,s*=-1),(n+s+360)%360},e.prototype.valueRange=function(){return{min:0,max:2*Math.PI}},e}(oo);Dt(hr,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:J(10)},majorGridLines:{color:n,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),X(hr.prototype,pr,{createPlotBands:cr.prototype.createPlotBands,majorAngles:cr.prototype.majorAngles,range:tr.prototype.range,labelsCount:tr.prototype.labelsCount,createAxisLabel:tr.prototype.createAxisLabel});const ur=hr;var dr={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(),s=r.box.center(),a=this._plotbandGroup=new I.drawing.Group({zIndex:-1}),p=0;p<o.length;p++){var l,c=o[p],h={fill:{color:c.color,opacity:c.opacity},stroke:{opacity:c.opacity}},u=this.getSlot(c.from,c.to,!0),d=new ae(s,s.y-u.y2,s.y-u.y1,0,360);l=e===i?he.current.createRing(d,h):I.drawing.Path.fromPoints(this.plotBandPoints(d,n),h).close(),a.append(l)}this.appendVisual(a)},plotBandPoints:function(t,e){for(var o=[],r=[],i=[t.center.x,t.center.y],n=new I.geometry.Circle(i,t.innerRadius),s=new I.geometry.Circle(i,t.radius),a=0;a<e.length;a++)o.push(n.pointAt(e[a]+180)),r.push(s.pointAt(e[a]+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 s=this.radarMinorGridLinePositions();xt(n,this.renderGridLines(i,s,r,e.minorGridLines))}return n},renderGridLines:function(t,e,o,r){var n={stroke:{width:r.width,color:r.color,dashType:r.dashType}},s=r.skip;void 0===s&&(s=0);var a=r.step;void 0===a&&(a=0);for(var p=this.gridLinesVisual(),l=s;l<e.length;l+=a){var c=t.y-e[l];if(c>0){var h=new I.geometry.Circle([t.x,t.y],c);if(r.type===i)p.append(new I.drawing.Circle(h,n));else{for(var u=new I.drawing.Path(n),d=0;d<o.length;d++)u.lineTo(h.pointAt(o[d]+180));u.close(),p.append(u)}}}return p.children},getValue:function(t){var e=this.lineBox(),o=this.plotArea.polarAxis,r=o.majorAngles(),n=o.box.center(),s=t.distanceTo(n),a=s;if(this.options.majorGridLines.type!==i&&r.length>1){var p=t.x-n.x,l=t.y-n.y,c=(wt(Math.atan2(l,p))+540)%360;r.sort((function(t,e){return fr(t,c)-fr(e,c)}));var h=90-fr(r[0],r[1])/2,u=180-fr(c,r[0])-h;a=s*(Math.sin(Et(u))/Math.sin(Et(h)))}return this.axisType().prototype.getValue.call(this,new ee(e.x1,e.y2-a))}};function fr(t,e){return 180-Math.abs(Math.abs(t-e)-180)}const vr=dr;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}(ar);X(mr.prototype,vr);const xr=mr;function br(t){return t<=0?-1:1}const _r=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,s,a=e[0],p=e[1],l=e[2];for(o.push(new I.geometry.Segment(a));a.equals(e[i-1]);)r=!0,e.pop(),i--;if(2===i){var c=this.tangent(a,p,T,E);return Ot(o).controlOut(this.firstControlPoint(c,a,p,T,E)),o.push(new I.geometry.Segment(p,this.secondControlPoint(c,a,p,T,E))),o}if(r){a=e[i-1],p=e[0],l=e[1];var h=this.controlPoints(a,p,l);n=h[1],s=h[0]}else{var u=this.tangent(a,p,T,E);n=this.firstControlPoint(u,a,p,T,E)}for(var d=n,f=0;f<=i-3;f++)if(this.removeDuplicates(f,e),f+3<=(i=e.length)){a=e[f],p=e[f+1],l=e[f+2];var v=this.controlPoints(a,p,l);Ot(o).controlOut(d),d=v[1];var y=v[0];o.push(new I.geometry.Segment(p,y))}if(r){a=e[i-2],p=e[i-1],l=e[0];var g=this.controlPoints(a,p,l);Ot(o).controlOut(d),o.push(new I.geometry.Segment(p,g[0])),Ot(o).controlOut(g[1]),o.push(new I.geometry.Segment(l,s))}else{var m=this.tangent(p,l,T,E);Ot(o).controlOut(d),o.push(new I.geometry.Segment(l,this.secondControlPoint(m,p,l,T,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||Rt(i,1)===Rt(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=T,n=E,s=!1,a=!1;if(this.isLine(t,e,o))r=this.tangent(t,e,T,E);else{var p={x:this.isMonotonicByField(t,e,o,T),y:this.isMonotonicByField(t,e,o,E)};p.x&&p.y?(r=this.tangent(t,o,T,E),s=!0):(this.invertAxis(t,e,o)&&(i=E,n=T),p[i]?r=0:(r=.01*(o[n]<t[n]&&t[n]<=e[n]||t[n]<o[n]&&e[n]<=t[n]?br((o[n]-t[n])*(e[i]-t[i])):-br((o[i]-t[i])*(e[n]-t[n]))),a=!0))}var l=this.secondControlPoint(r,t,e,i,n);if(a){var c=i;i=n,n=c}var h=this.firstControlPoint(r,e,o,i,n);return s&&(this.restrictControlPoint(t,e,l,r),this.restrictControlPoint(e,o,h,r)),[l,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],s=.333*(o[r]-n);return this.point(n+s,e[i]+s*t,r,i)},e.prototype.secondControlPoint=function(t,e,o,r,i){var n=e[r],s=o[r],a=.333*(s-n);return this.point(s-a,o[i]-a*t,r,i)},e.prototype.point=function(t,e,o,r){var i=new I.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}(I.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}(I.Class);const Cr=wr;function kr(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 kr(t,this._pane.axes)};const Ar=Sr,Pr=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}(I.Class);function Or(t){for(var e=t.length,o=0,r=0;r<e;r++)V(t[r])&&o++;return o}var Mr={min:function(t){for(var e=t.length,o=m,r=0;r<e;r++){var i=t[r];V(i)&&(o=Math.min(o,i))}return o===m?t[0]:o},max:function(t){for(var e=t.length,o=x,r=0;r<e;r++){var i=t[r];V(i)&&(o=Math.max(o,i))}return o===x?t[0]:o},sum:function(t){for(var e=t.length,o=0,r=0;r<e;r++){var i=t[r];V(i)&&(o+=i)}return o},sumOrNull:function(t){var e=null;return Or(t)&&(e=Mr.sum(t)),e},count:function(t){for(var e=t.length,o=0,r=0;r<e;r++){var i=t[r];null!==i&&_t(i)&&o++}return o},avg:function(t){var e=Or(t),o=t[0];return e>0&&(o=Mr.sum(t)/e),o},first:function(t){for(var e=t.length,o=0;o<e;o++){var r=t[o];if(null!==r&&_t(r))return r}return t[0]}};const Tr=Mr;function Er(t,e){return null===e?e:nt(t)(e)}var Rr=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=[P]),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]||[P]},e.prototype.otherFields=function(t){return this._otherFields[t.type]||[P]},e.prototype.bindPoint=function(t,e,o){var r,i,n=t.data,s=_t(o)?o:n[e],a={valueFields:{value:s}},p=this.valueFields(t),l=this._otherFields[t.type];if(null===s)i=this._nullValue[t.type];else if(_t(s)){if(Array.isArray(s)){var c=s.slice(p.length);i=this._bindFromArray(s,p),r=this._bindFromArray(c,l)}else if("object"==typeof s){var h=this.sourceFields(t,p),u=this.sourceFields(t,l);i=this._bindFromObject(s,p,h),r=this._bindFromObject(s,l,u)}}else i=this._undefinedValue[t.type];return _t(i)&&(1===p.length?a.valueFields.value=i[p[0]]:a.valueFields=i),a.fields=r||{},a},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 s=e[n],a=o[n];null!==a&&(r[s]=Er(a,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],s=n===P?"field":n+"Field";o.push(null!==t[s]?t[s]||n:null)}return o},e}(I.Class);Rr.current=new Rr;const Br=Rr;var Lr=/percent(?:\w*)\((\d+)\)/,jr=new RegExp("^stddev(?:\\((\\d+(?:\\.\\d+)?)\\))?$");const Ir=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=jr.exec(t);if(i){this.valueGetter=this.createValueGetter(e,o);var n=this.getAverage(r),s=this.getStandardDeviation(r,n,!1),a=i[1]?parseFloat(i[1]):1,p={low:n.value-s*a,high:n.value+s*a};this.globalRange=function(){return p}}else if(t.indexOf&&t.indexOf("stderr")>=0){this.valueGetter=this.createValueGetter(e,o);var l=this.getStandardError(r,this.getAverage(r));this.globalRange=function(t){return{low:t-l,high:t+l}}}},e.prototype.createValueGetter=function(t,e){var o,r=t.data,i=Br.current,n=i.valueFields(t),s=_t(r[0])?r[0]:{};return R(s)?o=nt("["+(e?n.indexOf(e):0)+"]"):V(s)?o=nt():typeof s===_&&(o=nt(i.sourceFields(t,n)[n.indexOf(e)])),o},e.prototype.getErrorRange=function(t,e){var o,r,i;if(!_t(e))return null;if(this.globalRange)return this.globalRange(t);if(R(e))o=t-e[0],r=t+e[1];else if(V(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,s=0;s<r;s++){var a=this.valueGetter(t[s]);V(a)&&(n+=Math.pow(a-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]);V(n)&&(o+=n,r++)}return{value:o/r,count:r}},e}(I.Class);var Dr=I.support.browser||{},zr=600,Vr="fadeIn",Hr=.8,Nr=Dr.msie?.001:0,Fr="errorLow",Ur="errorHigh",Gr="zero",Wr="interpolate",Xr="above",Yr="below",qr="smooth",Qr="step",Zr="area",Kr="bar",Jr="boxPlot",$r="bubble",ti="bullet",ei="candlestick",oi="column",ri="donut",ii="funnel",ni="heatmap",si="horizontalWaterfall",ai="line",pi="ohlc",li="pie",ci="polarArea",hi="polarLine",ui="polarScatter",di="radarArea",fi="radarColumn",vi="radarLine",yi="rangeArea",gi="rangeBar",mi="rangeColumn",xi="scatter",bi="scatterLine",_i="verticalArea",wi="verticalBoxPlot",Ci="verticalBullet",ki="verticalLine",Si="verticalRangeArea",Ai="waterfall",Pi=[Kr,oi,pi,ei,Jr,wi,ti,mi,gi,Ai,si],Oi="seriesClick",Mi="seriesHover",Ti="seriesOver",Ei="seriesLeave",Ri="plotAreaHover",Bi="plotAreaLeave",Li="drag",ji="dragEnd",Ii="dragStart",Di="zoomStart",zi="zoom",Vi="zoomEnd",Hi="selectStart",Ni="select",Fi="selectEnd",Ui="showTooltip",Gi="hideTooltip",Wi="log",Xi="category",Yi="insideEnd",qi="outsideEnd",Qi="wheel",Zi="drilldown",Ki=function(t){function e(e,o,r,i,n,s){t.call(this,s),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(),s=this.getCapsWidth(t,r),a=r?n.x:n.y,p=a-s,l=a+s;r?(e=[new ee(n.x,i.y1),new ee(n.x,i.y2)],o&&e.push(new ee(p,i.y1),new ee(l,i.y1),new ee(p,i.y2),new ee(l,i.y2)),this.box=new ie(p,i.y1,l,i.y2)):(e=[new ee(i.x1,n.y),new ee(i.x2,n.y)],o&&e.push(new ee(i.x1,p),new ee(i.x1,l),new ee(i.x2,p),new ee(i.x2,l)),this.box=new ie(i.x1,p,i.x2,l)),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 I.drawing.Path(r).moveTo(o[i].x,o[i].y).lineTo(o[i+1].x,o[i+1].y);D(n),this.visual.append(n)}},e}(de);Dt(Ki,{animation:{type:Vr,delay:zr},endCaps:!0,line:{width:2},zIndex:1});const Ji=Ki;var $i=function(t){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}(Ji);const tn=$i;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,s=!1;if(o.excluded=o.excluded||[],n>en)return null;for(var a in t)if(!ct(a,o.excluded)&&t.hasOwnProperty(a)){var p=t[a];F(p)?(s=!0,r||(t[a]=Lt(p(e),i[a]))):Y(p)&&(r||(o.defaults=i[a]),o.depth++,s=on(p,e,o,r)||s,o.depth--)}return s}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&&V(t.value)){for(var e=t.categoryIx,o=this.categoryPoints[e],r=[],i=0,n=0;n<o.length;n++){var s=o[n];if(s){var a=t.series.stack,p=s.series.stack;if(a&&p&&a.group!==p.group)continue;V(s.value)&&(i+=Math.abs(s.value),r.push(Math.abs(s.value)))}}if(i>0)return t.value/i}return t.value},e.prototype.plotRange=function(t,e){void 0===e&&(e=0);var o=this.categoryPoints[t.categoryIx];if(this.options.isStacked){for(var r=this.plotValue(t),i=r>=0,n=e,s=!1,a=0;a<o.length;a++){var p=o[a];if(t===p)break;var l=t.series.stack,c=p.series.stack;if(l&&c){if(typeof l===S&&l!==c)continue;if(l.group&&l.group!==c.group)continue}var h=this.plotValue(p);(h>=0&&i||h<0&&!i)&&(n+=h,r+=h,s=!0,this.options.isStacked100&&(r=Math.min(r,1)))}return s&&(n-=e),[n,r]}var u=t.series,d=this.seriesValueAxis(u),f=this.categoryAxisCrossingValue(d);return[f,N(t.value)?t.value:f]},e.prototype.stackLimits=function(t,e){for(var o=m,r=x,i=0;i<this.categoryPoints.length;i++){var n=this.categoryPoints[i];if(n)for(var s=0;s<n.length;s++){var a=n[s];if(a&&(a.series.stack===e||a.series.axis===t)){var p=this.plotRange(a,0)[1];_t(p)&&isFinite(p)&&(r=Math.max(r,p),o=Math.min(o,p))}}}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 s=r[n],a=s.axis,p=a+s.stack,l=i[p];if(!l){l=t.stackLimits(a,s.stack);var c=t.errorTotals;c&&(c.negative.length&&(l.min=Math.min(l.min,zt(c.negative).min)),c.positive.length&&(l.max=Math.max(l.max,zt(c.positive).max))),l.min!==m||l.max!==x?i[p]=l:l=null}l&&(t.valueAxisRanges[a]=l)}},e.prototype.addErrorBar=function(t,e,o){var r,i=t.value,n=t.series,s=t.seriesIx,a=t.options.errorBars,p=e.fields[Fr],l=e.fields[Ur];V(p)&&V(l)?r={low:p,high:l}:a&&_t(a.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[s]=this.seriesErrorRanges[s]||new Ir(a.value,n,P),r=this.seriesErrorRanges[s].getErrorRange(i,a.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,s=t.high;if(this.options.isStacked){var a=this.stackedErrorRange(t,e);n=a.low,s=a.high}else{var p={categoryIx:e,series:i};this.updateRange({value:n},p),this.updateRange({value:s},p)}var l=new tn(n,s,o,this,i,r);t.errorBars=[l],t.append(l)},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 s=this.seriesPoints[i];s||(this.seriesPoints[i]=s=[]);var a=this.createPoint(t,e);a&&(Object.assign(a,e),a.owner=this,a.noteText=t.fields.noteText,_t(a.dataItem)||(a.dataItem=r.data[o]),this.addErrorBar(a,t,o)),this.points.push(a),s.push(a),n.push(a),this.updateRange(t.valueFields,e)},e.prototype.evalPointOptions=function(t,e,o){var r=o.categoryIx,i=o.category,n=o.series,s=o.seriesIx,a={defaults:n._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint","drilldownSeriesFactory"]},p=this._evalSeries[s];_t(p)||(this._evalSeries[s]=p=on(t,{},a,!0));var l=t;return p&&on(l=X({},l),{value:e,category:i,index:r,series:n,dataItem:n.data[r]},a),l},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:x}).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,s){var a=s.categoryIx,p=s.series,l=e.seriesValueAxis(p),c=r[n++],h=o[a];if(h||(o[a]=h=e.categorySlot(i,a,l)),c){var u=e.plotRange(c,l.startValue()),d=e.valueSlot(l,u);if(d){var f=e.pointSlot(h,d);c.aboveAxis=e.aboveAxis(c,l),c.stackValue=u[1],e.options.isStacked100&&(c.percentage=e.plotValue(c)),e.reflowPoint(c,f)}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(Ot(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 s=0;s<r;s++)for(var a=0;a<i;a++){var p=o[a],l=e.categoryAxis.categoryAt(s);t(e._bindPoint(p,a,s),{category:l,categoryIx:s,categoriesCount:r,series:p,seriesIx:a})}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]=Br.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}(de);Dt(nn,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0});const sn=nn;var an={click:function(t,e){return t.trigger(Oi,this.eventArgs(e))},hover:function(t,e){return t.trigger(Mi,this.eventArgs(e))},over:function(t,e){return t.trigger(Ti,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:At(t),originalEvent:t,point:this}}};const pn=an,ln={createNote:function(){var t=this.options.notes,e=this.noteText||t.label.text;!1!==t.visible&&_t(e)&&null!==e&&(this.note=new ze({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:a,vAlign:a,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 _t(o.color)||(o.color=new I.Color(e).brightness(Hr).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 s=this.markerBox();if(!e.markers.visible||!e.markers.size){var a=s.center();s=new ie(a.x,a.y,a.x,a.y)}this.note.reflow(s)}},e.prototype.reflowLabel=function(t){var e=this.options,o=this.label,r=e.labels.position;o&&(r=(r=r===Xr?A:r)===Yr?s: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 I.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=s):(o=t.y2,r=A),{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}(de);cn.prototype.defaults={vertical:!0,markers:{visible:!0,background:O,size:8,type:p,border:{width:2},opacity:1},labels:{visible:!1,position:Xr,margin:J(3),padding:J(4),animation:{type:Vr,delay:zr}},notes:{label:{}},highlight:{markers:{border:{color:"#fff",width:2}},zIndex:100},errorBars:{line:{width:1}}},X(cn.prototype,pn),X(cn.prototype,ln);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&&!_t(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;F(o)&&r&&(o=r.color);var i=I.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}(de);Dt(un,{closed:!1});const dn=un;var fn={calculateStepPoints:function(t){for(var e=this.parent.plotArea.seriesCategoryAxis(this.series).options,o=e.justified,r=e.vertical,i=e.reverse,n=r?T:E,s=r?E:T,a=i?2:1,p=a,l=vn(t[0],n,a,s,p),c=[l],h=1;h<t.length;h++){var u=vn(t[h],n,a,s,p);if(l[n]!==u[n]){var d=new I.geometry.Point;d[n]=l[n],d[s]=u[s],c.push(d,u)}l=u}return o?l!==Ot(c)&&c.push(l):c.push(vn(Ot(t),n,a,s,i?1:2)),c}};function vn(t,e,o,r,i){var n=t.box,s=new I.geometry.Point;return s[e]=n[e+o],s[r]=n[r+i],s}const yn=fn;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}(dn);X(gn.prototype,yn);const mn=gn;var xn=function(t){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;F(o)&&e&&(o=e.color);var r=new _r(this.options.closed).process(this.points()),i=new I.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}(dn);const bn=xn;var _n={renderSegments:function(){var t,e=this,o=this.options,r=this.seriesPoints,i=o.series,n=r.length;this._segments=[];for(var s=0;s<n;s++){for(var a=i[s],p=e.sortPoints(r[s]),l=p.length,c=[],h=0;h<l;h++){var u=p[h];u?c.push(u):e.seriesMissingValues(a)!==Wr&&(c.length>1&&(t=e.createSegment(c,a,s,t),e._addSegment(t)),c=[])}c.length>1&&(t=e.createSegment(c,a,s,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],s=m,a=0;a<n.length;a++){var p=n[a];if(p&&_t(p.value)&&null!==p.value&&!1!==p.visible){var l=p.box.center().distanceTo(i);l<s&&(r=p,s=l)}}return r}};const wn=_n;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}(I.drawing.Animation);Dt(Cn,{duration:zr}),I.drawing.AnimationFactory.current.register("clip",Cn);const kn=Cn;function Sn(t){for(var e=0;e<t.length;e++)if(_t(t[e].zIndex))return!0}const An={createAnimation:function(){var t=this.getRoot();if(t&&!1!==(t.options||{}).transitions){var e=t.size(),o=I.drawing.Path.fromRect(e.toRect());this.visual.clip(o),this.animation=new kn(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&&_t(r.visual.options.zIndex)&&r.visual.clip(t)}}};var Pn=function(t){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(!_t(n)||null===n){if(i!==Gr)return null;n=0}var s=this.pointOptions(o,r);s=this.evalPointOptions(s,n,e);var a=t.fields.color||o.color;F(o.color)&&(a=s.color);var p=new hn(n,s);return p.color=a,this.append(p),p},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===qr?bn:dn)(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}(sn);X(Pn.prototype,wn,An);const On=Pn;var Mn=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;F(r)&&e&&(r=e.color),this.visual=new I.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 I.geometry.Segment(t)}))},e.prototype.createStroke=function(t){var e=new I.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();xt(o,i)}var n=new I.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),s=this.strokeSegments(),a=s[0].anchor(),p=Ot(s).anchor(),l=o?n.x1:n.y1;o?t.lineTo(l,p.y).lineTo(l,a.y):t.lineTo(p.x,l).lineTo(a.x,l)},e}(dn);const Tn=Mn;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}(Tn);X(En.prototype,yn);const Rn=En;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.createStrokeSegments=function(){var t=new _r(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 I.geometry.Segment(r.anchor(),r.controlOut(),r.controlIn()))}return e},e}(Tn);const Ln=Bn;var jn=function(t){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,s=this.options.isStacked,a=(e.line||{}).style;return s&&o>0&&r&&("gap"!==this.seriesMissingValues(e)?(n=r.linePoints,i=r):n=this._gapStackPoints(t,o,a)),new(a===Qr?Rn:a===qr?Ln:Tn)(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,s=t.length;n<0&&(n=0,s--);var a=n+s,p=this.seriesOptions[0]._outOfRangeMinPoint?1:0,l=[];this._stackPoints=this._stackPoints||[];for(var c=n;c<a;c++){var h=c+p,u=e,d=void 0;do{d=i[--u][h]}while(u>0&&!d);if(d)o!==Qr&&c>n&&!i[u][h-1]&&l.push(r._previousSegmentPoint(c,h,h-1,u)),l.push(d),o!==Qr&&c+1<a&&!i[u][h+1]&&l.push(r._previousSegmentPoint(c,h,h+1,u));else{var f=r._createGapStackPoint(c);r._stackPoints.push(f),l.push(f)}}return l},e.prototype._previousSegmentPoint=function(t,e,o,r){for(var i,n=this.seriesPoints,s=r;s>0&&!i;)i=n[--s][o];return i?i=n[s][e]:(i=this._createGapStackPoint(t),this._stackPoints.push(i)),i},e.prototype._createGapStackPoint=function(t){var e=this.pointOptions({},0),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}(On);const In=jn;var Dn=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:x},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}(I.Class);const zn=Dn;var Vn=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,p=i.box,l=i.options.padding,c=t;n.align=o?a:g,n.vAlign=o?A:a,e.position===Yi?o?(n.vAlign=A,!r&&p.height()<t.height()&&(n.vAlign=s)):n.align=r?C:g:e.position===a?(n.vAlign=a,n.align=a):"insideBase"===e.position?o?n.vAlign=r?s:A:n.align=r?g:C:e.position===qi&&(o?c=r?new ie(t.x1,t.y1-p.height(),t.x2,t.y1):new ie(t.x1,t.y2,t.x2,t.y2+p.height()):(n.align=a,c=r?new ie(t.x2,t.y1,t.x2+p.width(),t.y2):new ie(t.x1-p.width(),t.y1,t.x1,t.y2))),e.rotation||(o?l.left=l.right=(c.width()-i.contentBox.width())/2:l.top=l.bottom=(c.height()-i.contentBox.height())/2),i.reflow(c)},e.prototype.alignToClipBox=function(t){var e=this.options.vertical?E:T,o=e+"1",r=e+"2",i=this.children[0],n=this.parent.box;if(n[o]<t[o]||t[r]<n[r]){var s=i.paddingBox.clone();s[o]=Math.max(n[o],t[o]),s[r]=Math.min(n[r],t[r]),this.reflow(s)}},e}(de);Dt(Vn,{position:qi,margin:J(3),padding:J(4),color:n,background:"",border:{width:1,color:""},aboveAxis:!0,vertical:!1,animation:{type:Vr,delay:zr},zIndex:2});const Hn=Vn;function Nn(t){var e=t.overlay;return e&&e.gradient&&"none"!==e.gradient}var Fn=function(t){function e(e,o){t.call(this),this.options=o,this.color=o.color||O,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 Hn(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 I.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=_t(o.opacity)?o.opacity:e.opacity,i=this.box.toRect();i.size.width=Math.round(i.size.width);var n=this.rectVisual=I.drawing.Path.fromRect(i,{fill:{color:this.color,opacity:e.opacity},stroke:{color:this.getBorderColor(),width:o.width,opacity:r,dashType:o.dashType}}),s=this.box.width(),a=this.box.height();if((e.vertical?s:a)>6&&(D(n),(s<1||a<1)&&(n.options.stroke.lineJoin="round")),t.append(n),Nn(e)){var p=this.createGradientOverlay(n,{baseColor:this.color},X({end:e.vertical?void 0:[0,1]},e.overlay));t.append(p)}},e.prototype.createHighlight=function(t){return D(I.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||Hr,r=e.color;return _t(r)||(r=new I.Color(t).brightness(o).toHex()),r},e.prototype.tooltipAnchor=function(){var t,e,o=this,r=o.options,i=o.box,n=o.aboveAxis,a=this.owner.pane.clipBox()||i,p=g,l=A;if(r.vertical)t=Math.min(i.x2,a.x2)+5,n?e=Math.max(i.y1,a.y1):(e=Math.min(i.y2,a.y2),l=s);else{var c=Math.max(i.x1,a.x1),h=Math.min(i.x2,a.x2);r.isStacked?(l=s,n?(p=C,t=h):t=c,e=Math.max(i.y1,a.y1)-5):(n?t=h+5:(t=c-5,p=C),e=Math.max(i.y1,a.y1))}return{point:new ee(t,e),align:{horizontal:p,vertical:l}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,series:this.series}},e}(de);X(Fn.prototype,pn),X(Fn.prototype,ln),Fn.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};const Un=Fn;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,s=n.length,a=o?E:T,p=s+r+i*(s-1),l=(o?t.height():t.width())/p,c=t[a+1]+l*(r/2);this.forEach(n,(function(e,o){var r=(e.box||t).clone();r[a+1]=c,r[a+2]=c+l,e.reflow(r),o<s-1&&(c+=l*i),c+=l}))},e}(de);Dt(Xn,{vertical:!1,gap:0,spacing:0});const Yn=Xn;var qn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){for(var e=this.options.vertical?T:E,o=this.children,r=o.length,i=this.box=new ie,n=0;n<r;n++){var s=o[n];if(!1!==s.visible){var a=s.box.clone();a.snapTo(t,e),0===n&&(i=this.box=a.clone()),s.reflow(a),i.wrap(a)}}},e}(de);Dt(qn,{vertical:!0});const Qn=qn;var Zn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange()},e.prototype.pointType=function(){return Un},e.prototype.clusterType=function(){return Yn},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,s=this.children,a=n.isStacked,p=this.pointValue(t),l=this.pointOptions(r,i),c=l.labels;a&&c.position===qi&&(c.position=Yi),l.isStacked=a;var h=t.fields.color||r.color;p<0&&l.negativeColor&&(h=l.negativeColor),l=this.evalPointOptions(l,p,e),F(r.color)&&(h=l.color);var u=new(this.pointType())(p,l);u.color=h;var d=s[o];return d||(d=new(this.clusterType())({vertical:n.invertAxes,gap:n.gap,spacing:n.spacing,rtl:!n.invertAxes&&(this.chartService||{}).rtl}),this.append(d)),a?this.getStackWrap(r,d).append(u):d.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 s=0;s<n.length;s++)if(n[s]._stackGroup===i){o=n[s];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 s=o.getSlot(n,n,!0),a=r.invertAxes?T:E;i[a+1]=i[a+2]=s[a+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&&_t(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 I.geometry.Point(t.x1,t.y1),o.vertical=!e.invertAxes},e}(sn);Dt(Zn,{animation:{type:Kr}});const Kn=Zn;var Jn=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),s=i.getSlot(r.low,r.high);n.x1=s.x1=t.x1,n.x2=s.x2=t.x2,this.realBody=n;var a=s.center().x,p=[];p.push([[a,s.y1],[a,n.y1]]),p.push([[a,n.y2],[a,s.y2]]),this.lines=p,this.box=s.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 I.drawing.Group;return this.createBody(e,t),this.createLines(e,t),e},e.prototype.createBody=function(t,e){var o=I.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)}),D(o),t.append(o),Nn(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 s=I.drawing.Path.fromPoints(o[n],i);D(s),t.append(s)}},e.prototype.getBorderColor=function(){var t=this.options.border,e=t.color;return _t(e)||(e=new I.Color(this.color).brightness(t._brightness).toHex()),e},e.prototype.createOverlay=function(){var t=I.drawing.Path.fromRect(this.box.toRect(),{fill:{color:O,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:A}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e}(de);Dt(Jn,{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(Jn.prototype,pn),X(Jn.prototype,ln);const $n=Jn;function ts(t){return Or(t)===t.length}var es=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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,s=e.seriesIx,a=this.children,p=this.options,l=t.valueFields,c=ts(this.splitValue(l)),h=n.data[r],u=this.categoryPoints[r];u||(this.categoryPoints[r]=u=[]),c&&(o=this.createPoint(t,e));var d=a[r];d||(d=new Yn({vertical:p.invertAxes,gap:p.gap,spacing:p.spacing,rtl:!p.invertAxes&&(this.chartService||{}).rtl}),this.append(d)),o&&(this.updateRange(l,e),d.append(o),o.categoryIx=r,o.category=i,o.series=n,o.seriesIx=s,o.owner=this,o.dataItem=h,o.noteText=t.fields.noteText),this.points.push(o),u.push(o)},e.prototype.pointType=function(){return $n},e.prototype.createPoint=function(t,e){var o=e.series,r=this.pointType(),i=t.valueFields,n=X({},o),s=t.fields.color||o.color;n=this.evalPointOptions(n,i,e),o.type===ei&&i.open>i.close&&(s=t.fields.downColor||o.downColor||o.color),F(o.color)&&(s=n.color),n.vertical=!this.options.invertAxes;var a=new r(i,n);return a.color=s,a},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:x},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}(sn);X(es.prototype,An);const os=es;var rs=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,s=r.owner.seriesValueAxis(i);this.boxSlot=o=s.getSlot(n.q1,n.q3),this.realBody=o,this.reflowBoxSlot(t),this.whiskerSlot=e=s.getSlot(n.lower,n.upper),this.reflowWhiskerSlot(t);var a=s.getSlot(n.median);if(n.mean){var p=s.getSlot(n.mean);this.meanPoints=this.calcMeanPoints(t,p)}this.whiskerPoints=this.calcWhiskerPoints(o,e),this.medianPoints=this.calcMedianPoints(t,a),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||{},s=0;s<o.length;s++){var a=o[s],p=X({},(n=a<e.q3+r&&a>e.q1-r?t.outliers:t.extremes).border);_t(p.color)||(_t(this.color)?p.color=this.color:p.color=new I.Color(n.background).brightness(Hr).toHex());var l=new ge({type:n.type,width:n.size,height:n.size,rotation:n.rotation,background:n.background,border:p,opacity:n.opacity});l.value=a,i.push(l)}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,s=o.getSlot(n);e.options.vertical?s.move(r.x):s.move(void 0,r.y),e.box=e.box.wrap(s),t[i].reflow(s)}},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}($n);Dt(rs,{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:O,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:p,background:O,border:{width:2,opacity:1},opacity:0}}),X(rs.prototype,pn);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.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}(is);const ss=ns;var as=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addValue=function(t,e){var o,r=e.categoryIx,i=e.category,n=e.series,s=e.seriesIx,a=this.children,p=this.options,l=t.valueFields,c=ts(this.splitValue(l)),h=n.data[r],u=this.categoryPoints[r];u||(this.categoryPoints[r]=u=[]),c&&(o=this.createPoint(t,e));var d=a[r];d||(d=new Yn({vertical:p.invertAxes,gap:p.gap,spacing:p.spacing,rtl:!p.invertAxes&&(this.chartService||{}).rtl}),this.append(d)),o&&(this.updateRange(l,e),d.append(o),o.categoryIx=r,o.category=i,o.series=n,o.seriesIx=s,o.owner=this,o.dataItem=h),this.points.push(o),u.push(o)},e.prototype.pointType=function(){return this.options.invertAxes?ss:is},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));_t(t.mean)&&(i=i.concat(t.mean)),r=this.valueAxisRanges[o]=r||{min:m,max:x},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];_t(i)&&null!==i&&o.push(i)}return o},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(os);const ps=as;var ls=function(t){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}(Ji);const cs=ls;function hs(t){return _t(t)&&null!==t}var us=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",s=e+"ErrorLow",a=e+"ErrorHigh",p=o.seriesIx,l=o.series,c=t.options.errorBars,h=o[s],u=o[a];V(i)&&(V(h)&&V(u)&&(r={low:h,high:u}),c&&_t(c[n])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[e][p]=this.seriesErrorRanges[e][p]||new Ir(c[n],l,e),r=this.seriesErrorRanges[e][p].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,s=e.options.errorBars,a=o===E,p={};e[o+"Low"]=r,e[o+"High"]=i,e.errorBars=e.errorBars||[];var l=new cs(r,i,a,this,n,s);e.errorBars.push(l),e.append(l),p[o]=r,this.updateRange(p,n),p[o]=i,this.updateRange(p,n)},e.prototype.addValue=function(t,e){var o,r=t.x,i=t.y,n=e.seriesIx,s=this.options.series[n],a=this.seriesMissingValues(s),p=this.seriesPoints[n],l=t;hs(r)&&hs(i)||(l=this.createMissingValue(l,a)),l&&((o=this.createPoint(l,e))&&(Object.assign(o,e),this.addErrorBar(o,T,e),this.addErrorBar(o,E,e)),this.updateRange(l,e.series)),this.points.push(o),p.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,s=t.y,a=this.xAxisRanges[r],p=this.yAxisRanges[i];hs(n)&&(a=this.xAxisRanges[r]=a||{min:m,max:x},H(n)&&(n=Lo(o,n)),a.min=Math.min(a.min,n),a.max=Math.max(a.max,n)),hs(s)&&(p=this.yAxisRanges[i]=p||{min:m,max:x},H(s)&&(s=Lo(o,s)),p.min=Math.min(p.min,s),p.max=Math.max(p.max,s))},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"]},s=this._evalSeries[i];_t(s)||(this._evalSeries[i]=s=on(t,{},n,!0));var a=t;return s&&on(a=X({},t),{value:e,series:r,dataItem:o.dataItem},n),a},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),F(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 s=o[i++],a=e.seriesAxes(n.series),p=a.x.getSlot(t.x,t.x,r),l=a.y.getSlot(t.y,t.y,r);if(s)if(p&&l){var c=e.pointSlot(p,l);s.reflow(c)}else s.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 s=this._bindPoint(i,r,n),a=s.valueFields,p=s.fields;t(a,X({pointIx:n,series:i,seriesIx:r,dataItem:i.data[n],owner:this},p))}}},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}(de);Dt(us,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),X(us.prototype,An,{_bindPoint:sn.prototype._bindPoint});const ds=us;var fs=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 I.drawing.Group,s=new I.drawing.Circle(new I.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}]})}),a=new I.drawing.Circle(new I.geometry.Circle([r.x,r.y],i),{stroke:{color:e.color||new I.Color(o.background).brightness(Hr).toHex(),width:e.width,opacity:e.opacity},fill:{color:o.background,opacity:t.opacity}});return n.append(s,a),n},e}(hn);fs.prototype.defaults=X({},fs.prototype.defaults,{labels:{position:a},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),fs.prototype.defaults.highlight.zIndex=void 0;const vs=fs;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._initFields=function(){this._maxSize=x,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 vs},e.prototype.createPoint=function(t,e){var o=e.series,r=o.data.length,i=e.pointIx*(zr/r),n={delay:i,duration:zr-i,type:$r},s=e.color||o.color;t.size<0&&o.negativeValues.visible&&(s=Lt(o.negativeValues.color,s));var a=X({labels:{animation:{delay:i,duration:zr-i}}},this.pointOptions(o,e.seriesIx),{markers:{type:p,border:o.border,opacity:o.opacity,animation:n}});a=this.evalPointOptions(a,t,e),F(o.color)&&(s=a.color),a.markers.background=s;var l=new vs(t,a);return l.color=s,this.append(l),l},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],s=(i.minSize||Math.max(.02*o,10))/2,a=(i.maxSize||.2*o)/2,p=Math.PI*s*s,l=(Math.PI*a*a-p)/this._maxSize,c=0;c<n.length;c++){var h=n[c];if(h){var u=Math.abs(h.value.size)*l,d=Math.sqrt((p+u)/Math.PI),f=Lt(h.options.zIndex,0)+(1-d/a);X(h.options,{zIndex:f,markers:{size:2*d,zIndex:f},labels:{zIndex:f+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}(ds);Dt(ys,{tooltip:{format:"{3}"},labels:{format:"{3}"}});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}(ge);X(ms.prototype,pn);const xs=ms;var bs=function(t){function e(e,o){t.call(this,o),this.aboveAxis=this.options.aboveAxis,this.color=o.color||O,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,_t(this.value.target)&&(this.target=new xs({type:t.target.shape,background:t.target.color||this.color,opacity:t.opacity,zIndex:t.zIndex,border:t.target.border,vAlign:A,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 Hn(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,s=i.seriesValueAxis(this.options),a=i.categorySlot(i.categoryAxis,o.categoryIx,s),p=s.getSlot(this.value.target),l=n?p:a,c=n?a:p;if(r){var h=new ie(l.x1,c.y1,l.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=I.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,D(o),this.visual.append(o)},e.prototype.createAnimation=function(){this.bodyVisual&&(this.animation=I.drawing.Animation.create(this.bodyVisual,this.options.animation))},e.prototype.createHighlight=function(t){return I.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}(de);bs.prototype.tooltipAnchor=Un.prototype.tooltipAnchor,Dt(bs,{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(bs.prototype,pn),X(bs.prototype,ln);const _s=bs;var ws=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||R(i[0])||Y(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,s=t.valueFields,a=X({vertical:!i.invertAxes,overlay:r.overlay,categoryIx:o,invertAxes:i.invertAxes},r),p=t.fields.color||r.color;a=this.evalPointOptions(a,s,e),F(r.color)&&(p=a.color);var l=new _s(s,a);l.color=p;var c=n[o];return c||(c=new Yn({vertical:i.invertAxes,gap:i.gap,spacing:i.spacing,rtl:!i.invertAxes&&(this.chartService||{}).rtl}),this.append(c)),c.append(l),l},e.prototype.updateRange=function(t,e){var o=t.current,r=t.target,i=e.series.axis,n=this.valueAxisRanges[i];_t(o)&&!isNaN(o)&&_t(r&&!isNaN(r))&&((n=this.valueAxisRanges[i]=n||{min:m,max:x}).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}(sn);ws.prototype._setAnimationOptions=Kn.prototype._setAnimationOptions,Dt(ws,{animation:{type:Kr}});const Cs=ws;var ks=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=J(t.padding||{},"auto");return{backgroundColor:o,borderColor:r,font:t.font,color:t.color,opacity:t.opacity,borderWidth:q(t.border.width),paddingTop:q(n.top),paddingBottom:q(n.bottom),paddingLeft:q(n.left),paddingRight:q(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 I.Color(r.backgroundColor);_t(e.color)||i.isDark()||(t.className="k-chart-tooltip-inverse"),this.chartService.notify(Ui,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}(I.Class);Dt(ks,{border:{width:1},opacity:1});const Ss=ks;var As=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,p=i.padding,l=!r.axis.options.vertical,c=r.line.bbox();return l?(t=a,n===s?(e=A,o=c.bottomLeft().translate(0,p)):(e=s,o=c.topLeft().translate(0,-p))):(e=a,n===g?(t=C,o=c.topLeft().translate(-p,0)):(t=g,o=c.topRight().translate(p,0))),{point:o,align:{horizontal:t,vertical:e}}},e}(Ss);Dt(As,{padding:10});const Ps=As;var Os=function(t){function e(e,o,r){t.call(this,r),this.axis=o,this.stickyMode=o instanceof zo;var i=this.options.tooltip;i.visible&&(this.tooltip=new Ps(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:T,s=new I.geometry.Point(i.x1,i.y1);if(t=r?new I.geometry.Point(i.x2,i.y1):new I.geometry.Point(i.x1,i.y2),o)if(this.stickyMode){var a=e.getSlot(e.pointCategoryIndex(o));s[n]=t[n]=a.center()[n]}else s[n]=t[n]=o[n];this.box=i,this.line.moveTo(s).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(),s=i?T:E,a=0;a<r;a++){var p=o[a];p.options.vertical!==i&&(t?t.wrap(p.lineBox()):t=p.lineBox().clone())}return n[s+1]=t[s+1],n[s+2]=t[s+2],n},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options;this.line=new I.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}(de);Dt(Os,{color:n,width:2,zIndex:-1,tooltip:{visible:!1}});const Ms=Os;var Ts=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 I.drawing.Group({zIndex:0}),this.shouldClip()){var t=(this.clipBox=this._clipBox()).toRect(),e=I.drawing.Path.fromRect(t);D(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 s=r[n];if(s&&!1!==s.visible&&s.overlapsBox&&s.overlapsBox(e))if(s.unclipElements)s.unclipElements();else{var a=s.label,p=s.note;a&&a.options.visible&&(a.alignToClipBox&&a.alignToClipBox(e),a.options.noclip=!0),p&&p.options.visible&&(p.options.noclip=!0)}}},e.prototype.destroy=function(){t.prototype.destroy.call(this),delete this.parent},e}(de);Ts.prototype.isStackRoot=!0;const Es=Ts;var Rs=function(t){function e(e){t.call(this,e),this.id="pane"+Bs++,this.createTitle(),this.content=new de,this.chartContainer=new Es({},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;Y(t)&&(t=X({},t,{align:t.position,position:A})),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;Ot(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],s=n.options.vertical,a=s?o:r,p=0;p<e.length;p++)if(0===a.length){var l=e[p];s!==l.options.vertical&&xt(a,n.createGridLines(l))}},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:T,s=i.lineBox();o[n+1]=s[n+1],o[n+2]=s[n+2]}if(0===o.x2)for(var a=this.parent.axes,p=a.length,l=0;l<p;l++){var c=a[l];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 Ar(this),index:this.paneIndex,name:this.options.name})},e}(ve),Bs=1;Rs.prototype.isStackRoot=!0,Dt(Rs,{zIndex:-1,shrinkToFit:!0,title:{align:g},visible:!0});const Ls=Rs;function js(t,e){null!==e&&t.push(e)}function Is(t,e,o){var r=e.visible;if(_t(r))return r;var i=t.pointVisibility;return i?i[o]:void 0}function Ds(t){for(var e=t.data,o=[],r=0,i=0,n=0;n<e.length;n++){var s=Br.current.bindPoint(t,n),a=s.valueFields.value;H(a)&&(a=parseFloat(a)),V(a)?(s.visible=!1!==Is(t,s.fields,n),s.value=Math.abs(a),o.push(s),s.visible&&(r+=s.value),0!==a&&i++):o.push(null)}return{total:r,points:o,count:i}}function zs(t,e){return t&&e?t.toLowerCase()===e.toLowerCase():t===e}function Vs(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 Hs(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 Ns(t,e){var o=t.type,r=e instanceof Date;return!o&&r||zs(o,h)}function Fs(t){return 1===t.length?t[0]:t}var Us=/area/i;function Gs(t,e){var o=Br.current.bindPoint(t,null,e).valueFields;for(var r in o)if(N(o[r]))return!0}function Ws(t){var e,o,r=t.start,i=t.dir,n=t.min,s=t.max,a=t.getter,p=t.hasItem,l=t.series,c=r;do{p(c+=i)&&(e=Gs(l,(o=a(c)).item))}while(n<=c&&c<=s&&!e);if(e)return o}function Xs(t,e,o,r,i){var n=e.min,s=e.max,a=n>0&&n<o,p=s+1<o;if(a||p){var l,c,h,u=function(t){return t.missingValues?t.missingValues:Us.test(t.type)||t.stack?Gr:Wr}(t);u!==Wr?(a&&(l=r(n-1)),p&&(c=r(s+1))):(a&&(l=Gs(t,(h=r(n-1)).item)?h:Ws({start:n,dir:-1,min:0,max:o-1,getter:r,hasItem:i,series:t})),p&&(c=Gs(t,(h=r(s+1)).item)?h:Ws({start:s,dir:1,min:0,max:o-1,getter:r,hasItem:i,series:t}))),l&&(t._outOfRangeMinPoint=l),c&&(t._outOfRangeMaxPoint=c)}}var Ys=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),s=0;s<r;s++){var a=X({},n,o[s]);H(a.title)&&(a.title=X({text:a.title},n.title));var p=new Ls(a);p.paneIndex=s,i.push(p),this.append(p)}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],s=e.crosshairOptions(n);if(s&&s.visible){var a=new Ms(e.chartService,n,s);e.crosshairs.push(a),r.content.append(a)}}},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||{},s=[],a=0;a<e;a++){var p=t[a],l=!1!==p.visible;if(!1!==p.visibleInLegend){var c=p.name,h=l?ot(r):ot(n)||ot(r);h&&(c=h({text:hs(c)?c:"",series:p}));var u=p._defaults,d=p.color;F(d)&&u&&(d=u.color);var f=void 0,v=void 0;l?(f={},v=d):(f={color:n.color,font:n.font},v=i.markers.color),hs(c)&&""!==c&&s.push({text:c,labels:f,markerColor:v,series:p,active:l})}}xt(o.items,s)},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 s=i[n];s.options.vertical?o.push(s):e.push(s)}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=J(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,s=0;s<i;s++)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,s=e.getSlot(r,r,!0),a=e.options.reverse?2:1,p=t.box.translate(s[T+a]-i[T+n],s[E+a]-i[E+n]);t.pane!==e.pane&&p.translate(0,t.pane.box.y1-e.pane.box.y1),t.reflow(p)},e.prototype.alignAxes=function(t,e){for(var o=this,r=t[0],i=e[0],n=this.axisCrossingValues(r,e),a=this.axisCrossingValues(i,t),p={},c={},h={},u={},d=0;d<e.length;d++){var f=e[d],v=f.pane,y=v.id,m=!1!==f.options.visible,x=Zs(t,v)||r,b=n;x!==r&&(b=o.axisCrossingValues(x,e)),o.alignAxisTo(f,x,a[d],b[d]),f.options._overlap||(Rt(f.lineBox().x1)===Rt(x.lineBox().x1)&&(p[y]&&f.reflow(f.box.alignTo(p[y].box,g).translate(-f.options.margin,0)),m&&(p[y]=f)),Rt(f.lineBox().x2)===Rt(x.lineBox().x2)&&(f._mirrored||(f.options.labels.mirror=!f.options.labels.mirror,f._mirrored=!0),o.alignAxisTo(f,x,a[d],b[d]),c[y]&&f.reflow(f.box.alignTo(c[y].box,C).translate(f.options.margin,0)),m&&(c[y]=f)),0!==d&&i.pane===f.pane&&(f.alignTo(i),f.reflow(f.box)))}for(var _=0;_<t.length;_++){var w=t[_],k=w.pane,S=k.id,P=!1!==w.options.visible,O=Zs(e,k)||i,M=a;O!==i&&(M=o.axisCrossingValues(O,t)),o.alignAxisTo(w,O,n[_],M[_]),w.options._overlap||(Rt(w.lineBox().y1)===Rt(O.lineBox().y1)&&(w._mirrored||(w.options.labels.mirror=!w.options.labels.mirror,w._mirrored=!0),o.alignAxisTo(w,O,n[_],M[_]),h[S]&&w.reflow(w.box.alignTo(h[S].box,A).translate(0,-w.options.margin)),P&&(h[S]=w)),Rt(w.lineBox().y2,l)===Rt(O.lineBox().y2,l)&&(u[S]&&w.reflow(w.box.alignTo(u[S].box,s).translate(0,w.options.margin)),P&&(u[S]=w)),0!==_&&(w.alignTo(r),w.reflow(w.box)))}},e.prototype.shrinkAxisWidth=function(t){for(var e=this.groupAxes(t).any,o=Qs(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 s=0;s<e.length;s++){var a=e[s];a.options.vertical||a.reflow(a.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,Qs(i).height()-r.contentBox.height());if(0!==n){for(var s=0;s<i.length;s++){var a=i[s];a.options.vertical&&a.reflow(a.box.shrink(0,n))}e=!0}}return e},e.prototype.fitAxes=function(t){for(var e=this.groupAxes(t).any,o=0,r=0;r<t.length;r++){var i=t[r],n=i.axes,s=i.contentBox;if(n.length>0){var a=Qs(n),p=Math.max(s.y1-a.y1,s.y2-a.y2);o=Math.max(o,s.x1-a.x1);for(var l=0;l<n.length;l++){var c=n[l];c.reflow(c.box.translate(0,p))}}}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=Ks(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,s=0;s<o;s++){var a=e[s],p=a.options.height;if(a.options.width=t.width(),a.options.height){if(p.indexOf&&p.indexOf("%")){var l=parseInt(p,10)/100;a.options.height=l*t.height()}a.reflow(t.clone()),r-=a.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 d=e[u],f=t.clone().move(t.x1,n);d.reflow(f),n+=d.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 s=e[n];if(i.options.vertical!==s.options.vertical){var a=i.lineBox().clone().wrap(s.lineBox());t=t?t.wrap(a):a}}return t||this.box},e.prototype.chartsBoxes=function(){for(var t=this.panes,e=[],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(I.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&&_t(e)||(i=O,r=0);var s=this._bgVisual=new I.drawing.MultiPath({fill:{color:i,opacity:r},stroke:{color:n.width?n.color:"",width:n.width,dashType:n.dashType},zIndex:-1});this.addBackgroundPaths(s),this.appendVisual(s)},e.prototype.pointsByCategoryIndex=function(t){var e=this.charts,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 s=i[n];s&&_t(s.value)&&null!==s.value&&o.push(s)}}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 s=i[n];s&&!1!==s.visible&&t(s)&&o.push(s)}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,s=Zs(e,n)||e[0],a=r+o,p=this.createLabelAxis(i,a,s);if(p){o++;var l=n.axes.indexOf(i)+o;n.appendAxisAt(p,l)}}},e.prototype.createLabelAxis=function(t,e,o){var r=t.options.labels,i=r.position,n="end"!==i&&"start"!==i,s=r.visible;if(n||!1===s)return null;var a=this.groupAxes(this.panes),p=o.options.vertical?a.x:a.y,l=this.axisCrossingValues(o,p),c="end"===i,h=o.range(),u=c?h.max:h.min;if(Mt(l[e],h.min,h.max)-u==0)return null;l.splice(e+1,0,u),o.options.axisCrossingValues=l;var d=t.clone();return t.clear(),d.options.name=void 0,d.options.line.visible=!1,d.options.crosshair=void 0,d.options.notes=void 0,d.options.plotBands=void 0,d},e}(de);function qs(t){return!t.pane.axes.some((function(e){return e.options.vertical===t.options.vertical&&e!==t&&!1!==e.options.visible}))}function Qs(t){for(var e,o=t.length,r=0;r<o;r++){var i=t[r],n=!1!==i.options.visible;if(n||qs(i)){var s=n?i.contentBox():i.lineBox();e?e.wrap(s):e=s.clone()}}return e||new ie}function Zs(t,e){for(var o=0;o<t.length;o++){var r=t[o];if(r&&r.pane===e)return r}}var Ks=function(t){return t.reduce((function(t,e){return t.concat(e.axes)}),[])};Dt(Ys,{series:[],plotArea:{margin:{}},background:"",border:{color:n,width:0},paneDefaults:{title:{}},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});const Js=Ys;var $s={hover:function(t,e){this._dispatchEvent(t,e,Ri)},click:function(t,e){this._dispatchEvent(t,e,"plotAreaClick")}};const ta=$s;function ea(t,e,o){var r=e,i=t;if(t.indexOf(".")>-1){for(var n=t.split(".");n.length>1;)i=n.shift(),_t(r[i])||(r[i]={}),r=r[i];i=n.shift()}r[i]=o}const oa=function(t){function e(e,o,r){t.call(this);var i=o.canonicalFields(e),n=o.valueFields(e),s=o.sourceFields(e,i),a=this._seriesFields=[],p=r.query(e.type),l=e.aggregate||p;this._series=e,this._binder=o;for(var c=0;c<i.length;c++){var h=i[c],u=void 0;if(Y(l))u=l[h];else{if(0!==c&&!ct(h,n))break;u=l}u&&a.push({canonicalName:h,name:s[c],transform:F(u)?u:Tr[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],s={};if(n&&!V(n)&&!R(n)){var a=function(){};a.prototype=n,s=new a}for(var p=0;p<r.length;p++){var l=r[p],c=this._bindField(i.values,l.canonicalName),h=l.transform(c,o,i.dataItems,e);if(!(null===h||!Y(h)||_t(h.length)||h instanceof Date)){s=h;break}_t(h)&&ea(l.name,s,h)}return s},e.prototype._bindPoints=function(t){for(var e=this._binder,o=this._series,r=[],i=[],n=0;n<t.length;n++){var s=t[n];r.push(e.bindPoint(o,s)),i.push(o.data[s])}return{values:r,dataItems:i}},e.prototype._bindField=function(t,e){for(var o=[],r=t.length,i=0;i<r;i++){var n,s=t[i],a=s.valueFields;n=_t(a[e])?a[e]:s.fields[e],o.push(n)}return o},e}(I.Class);var ra=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}(I.Class);ra.current=new ra;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.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 Hn(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}(Un);na.prototype.defaults=X({},na.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});const sa=na;var aa=function(t){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 sa},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&&V(r)&&V(i)&&((n=this.valueAxisRanges[o]=n||{min:m,max:x}).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}(Kn);aa.prototype.plotLimits=sn.prototype.plotLimits;const pa=aa;var la=function(t){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 ca=la;var ha="auto",ua=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 ca(r,X({},this.options,{labels:o.from,markers:e.from})),n=this.toPoint=new ca(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 I.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(),p=g;return this.options.vertical?(e=n.x,o=i.y1-5,r=s):(e=i.x2+5,o=n.y,r=a),{point:new ee(e,o),align:{horizontal:p,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,s=i.vertical;n.position===ha&&(s?e.y1<=t.y1?(r=Xr,o=Yr):(r=Yr,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}(de);X(ua.prototype,pn),X(ua.prototype,ln),ua.prototype.defaults={markers:{visible:!1,background:O,size:8,type:p,border:{width:2},opacity:1},labels:{visible:!1,margin:J(3),padding:J(4),animation:{type:Vr,delay:zr},position:ha},notes:{label:{}},highlight:{markers:{border:{color:O,width:2}},zIndex:100},tooltip:{format:"{0} - {1}"}};const da=ua;var fa=function(t){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 I.drawing.Path(t),o=new I.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}(Tn);const va=fa;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.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 _r).process(this.toGeometryPoints(t))},e}(va);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.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}(va);X(ma.prototype,yn);const xa=ma;var ba=function(t){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 da},e.prototype.createPoint=function(t,e){var o=e.series,r=e.seriesIx,i=t.valueFields;if(!hs(i.from)&&!hs(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 s=t.fields.color||o.color;F(o.color)&&(s=n.color);var a=new da(i,n);return a.color=s,this.append(a),a},e.prototype.createSegment=function(t,e,o){var r=(e.line||{}).style;return new("smooth"===r?ga:"step"===r?xa:va)(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;V(r.from)||(r.from=r.to),V(r.to)||(r.to=r.from),t.prototype.addValue.call(this,e,o)},e.prototype.updateRange=function(t,e){if(null!==t&&V(t.from)&&V(t.to)){var o=e.series.axis,r=this.valueAxisRanges[o]=this.valueAxisRanges[o]||{min:m,max:x},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}(sn);X(ba.prototype,wn,An);const _a=ba;var wa=function(t){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=[],s=[],a=[],p=i.getSlot(r.low,r.high),l=i.getSlot(r.open,r.open),c=i.getSlot(r.close,r.close);l.x1=c.x1=p.x1=t.x1,l.x2=c.x2=p.x2=t.x2;var h=p.center().x;n.push([l.x1,l.y1]),n.push([h,l.y1]),s.push([h,c.y1]),s.push([c.x2,c.y1]),a.push([h,p.y1]),a.push([h,p.y2]),this.lines=[n,s,a],this.box=p.clone().wrap(l.clone().wrap(c)),this.reflowNote()},e.prototype.createBody=function(){},e}($n);const Ca=wa;var ka=function(t){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 Ca},e}(os);const Sa=ka;var Aa=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=I.drawing.Path.fromPoints(this.linePoints(),{stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType}});D(o),this.visual.append(o)},e}(de);Dt(Aa,{animation:{type:Vr,delay:zr}});const Pa=Aa;var Oa=function(t){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],s=0,a=0,p=0;p<o;p++){var l=Br.current.bindPoint(n,p),c=l.valueFields.value,h=l.fields.summary,u=s,d=void 0;h?"total"===h.toLowerCase()?(l.valueFields.value=s,u=0,d=s):(l.valueFields.value=a,d=u-a,a=0):V(c)&&(a+=c,d=s+=c),t(l,{category:this.categoryAxis.categoryAt(p),categoryIx:p,series:n,seriesIx:i,total:s,runningTotal:a,from:u,to:d,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 s=void 0,a=0;a<n.length;a++){var p=n[a];if(p&&s){var l=new Pa(s,p,i);o.push(l),this.append(l)}s=p}}},e}(Kn);const Ma=Oa;var Ta=[Zr,_i,yi,Si],Ea=[ai,ki].concat(Ta),Ra=function(t){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 zn,t.length>0){this.invertAxes=ct(t[0].type,[Kr,ti,ki,_i,Si,gi,si,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 zo?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 s=e.filterVisibleSeries(n);if(s)for(var a=e.groupSeriesByCategoryAxis(s),p=0;p<a.length;p++)e.createChartGroup(a[p],i)}},e.prototype.createChartGroup=function(t,e){this.createAreaChart(Vs(t,[Zr,_i]),e),this.createRangeAreaChart(Vs(t,[yi,Si]),e),this.createBarChart(Vs(t,[oi,Kr]),e),this.createRangeBarChart(Vs(t,[mi,gi]),e),this.createBulletChart(Vs(t,[ti,Ci]),e),this.createCandlestickChart(Vs(t,ei),e),this.createBoxPlotChart(Vs(t,[Jr,wi]),e),this.createOHLCChart(Vs(t,pi),e),this.createWaterfallChart(Vs(t,[Ai,si]),e),this.createLineChart(Vs(t,[ai,ki]),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],s=e.seriesCategoryAxis(n),a=e.findPane(s.options.pane);n=(zs(s.options.type,h)||n.categoryField)&&ct(a,t)?e.aggregateSeries(n,s):e.filterSeries(n,s),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),!V(e.options.min)&&!V(e.options.max))return t;var r=e.currentRangeIndices(),i=ct(t.type,Ea),n=X({},t);return n.data=(n.data||[]).slice(r.min,r.max+1),i&&Xs(n,r,o,(function(o){return{item:t.data[o],category:e.categoryAt(o,!0),categoryIx:o-r.min}}),(function(e){return _t(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=zs(r.type,h),s=t.data,a=n?Hs:Er,p=[];n||e.mapCategories();for(var l=0;l<s.length;l++){var c;if(c=t.categoryField?a(t.categoryField,s[l],this.chartService.intl):i[l],_t(c)&&null!==c){var u=e.totalIndex(c);p[u]=p[u]||{items:[],category:c},p[u].items.push(l)}}return this._currentPointsCache[o]=p,p},e.prototype.aggregateSeries=function(t,e){if(!t.data.length)return t;for(var o=this.seriesSourcePoints(t,e),r=X({},t),i=new oa(X({},t),Br.current,ia.current),n=r.data=[],s=e.options.dataItems||[],a=e.currentRangeIndices(),p=function(t){var r=t-a.min,n=o[t];if(n||(n=o[t]={}),n.categoryIx=r,!n.item){var s=e.categoryAt(t,!0);n.category=s,n.item=i.aggregatePoints(n.items,s)}return n},l=a.min;l<=a.max;l++){var c=p(l);n[c.categoryIx]=c.item,c.items&&c.items.length&&(s[c.categoryIx]=c.item)}return ct(r.type,Ea)&&Xs(r,a,e.totalCount(),p,(function(t){return o[t]})),e.options.dataItems=s,r},e.prototype.appendChart=function(e,o){var r=e.options.series,i=this.seriesCategoryAxis(r[0]),n=i.options.categories,s=Math.max(0,rn(r)-n.length);if(s>0)for(n=i.options.categories=i.options.categories.slice(0);s--;)n.push("");this.valueAxisRangeTracker.update(e.valueAxisRanges),t.prototype.appendChart.call(this,e,o)},e.prototype.seriesPaneName=function(t){var e=this.options,o=t.axis,r=st([].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=[],s=0;s<e.length;s++){var a=La(t,e[s],s);0!==a.length&&n.push(a)}return n},e.prototype.createBarChart=function(t,e){if(0!==t.length){var o=t[0],r=new Kn(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 pa(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 Cs(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 On(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 In(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 _a(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 Sa(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 os(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 ps(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 Ma(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=Vs(this.series,Pi),r=0;r<this.series.length;r++){var i=this.series[r];if(ct(i.type,Ta)){var n=i.line;n&&n.style===Qr&&o.push(i)}}for(var s=0;s<o.length;s++){var a=o[s].categoryAxis||"";if(a===t||!a&&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 zo&&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 s=r[n];if(ct(e.findPane(s.pane),t)){var a=s.name,p=s.categories;void 0===p&&(p=[]),s=X({vertical:o,reverse:!o&&e.chartService.rtl,axisCrossingValue:o?m:0},s),_t(s.justified)||(s.justified=e.isJustified()),e.axisRequiresRounding(a,n)&&(s.justified=!1);var l=void 0;if(l=Ns(s,p[0])?new Yo(s,e.chartService):new zo(s,e.chartService),r[n].categories=l.options.srcCategories,a){if(e.namedCategoryAxes[a])throw new Error("Category axis with name "+a+" is already defined");e.namedCategoryAxes[a]=l}l.axisIndex=n,i.push(l),e.appendAxis(l)}}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,Ta))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,s={vertical:!n,reverse:n&&this.chartService.rtl},a=[];this.stack100&&(s.roundToMajorUnit=!1,s.labels={format:"P0"});for(var p=0;p<i.length;p++){var l=i[p];if(ct(e.findPane(l.pane),t)){var c=l.name,h=zs(l.type,Wi)?{min:.1,max:1}:{min:0,max:1},u=o.query(c)||r||h;0===p&&u&&r&&(u.min=Math.min(u.min,r.min),u.max=Math.max(u.max,r.max));var d=new(zs(l.type,Wi)?ar:tr)(u.min,u.max,X({},s,l),e.chartService);if(c){if(e.namedValueAxes[c])throw new Error("Value axis with name "+c+" is already defined");e.namedValueAxes[c]=d}d.axisIndex=p,a.push(d),e.appendAxis(d)}}var f=this.valueAxis||a[0];this.valueAxis=f,n?this.axisX=f:this.axisY=f},e.prototype._dispatchEvent=function(t,e,o){var r=t._eventCoordinates(e),i=new ee(r.x,r.y),n=this.pointPane(i),s=[],a=[];if(n){for(var p=n.axes,l=0;l<p.length;l++){var c=p[l];c.getValue?js(a,c.getValue(i)):js(s,c.getCategory(i))}0===s.length&&js(s,this.categoryAxis.getCategory(i)),s.length>0&&a.length>0&&t.trigger(o,{element:At(e),originalEvent:e,category:Fs(s),value:Fs(a)})}},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){Ba(this.options,t,e),Ba(this.originalOptions,t,e)},e}(Js);function Ba(t,e,o){X([].concat(e instanceof zo?t.categoryAxis:t.valueAxis)[e.axisIndex],o)}function La(t,e,o){return st(t,(function(t){return 0===o&&!t.categoryAxis||t.categoryAxis===e}))}Dt(Ra,{categoryAxis:{},valueAxis:{}}),X(Ra.prototype,ta);const ja=Ra;var Ia=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:Da,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}(I.Class);function Da(){this._defaultPrevented=!0}const za=Ia;function Va(t,e){var o=(e||"").toLowerCase(),r=t.event;return"none"===o&&!(r.ctrlKey||r.shiftKey||r.altKey)||r[o+"Key"]}function Ha(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 Na=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=Va(t,this.options.key),this._active},e.prototype.move=function(t){if(this._active){var e=this.axisRanges=this._panAxes(t,T).concat(this._panAxes(t,E));if(e.length)return this.axisRanges=e,Ha(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 s=o.axes,a=0;a<s.length;a++){var p=s[a];if(e===T&&!p.options.vertical||e===E&&p.options.vertical){var l=p.pan(r);l&&(l.limitRange=!0,n.push({axis:p,range:l}))}}return n},e}(I.Class);Na.prototype.options={key:"none",lock:"none"};const Fa=Na;var Ua=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){K(this._marquee,t)},e.prototype.start=function(t){if(Va(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=K(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,Ha(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 s=i[n],a=s.options.vertical;if((o!==T||a)&&(o!==E||!a)&&_t(s.axisIndex)){var p=s.pointsRange(t,e);p&&r.push({axis:s,range:p})}}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(),s=Math.min(o.x,r),a=Math.min(o.y,i),p=Math.abs(o.x-r),l=Math.abs(o.y-i);return n===T&&(s=e.x1,p=e.width()),n===E&&(a=e.y1,l=e.height()),r>e.x2&&(p=e.x2-o.x),r<e.x1&&(p=o.x-e.x1),i>e.y2&&(l=e.y2-o.y),i<e.y1&&(l=o.y-e.y1),{left:Math.max(s,e.x1),top:Math.max(a,e.y1),width:p,height:l}},e}(I.Class);Ua.prototype.options={key:"shift",lock:"none"};const Ga=Ua;var Wa=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 s=i[n],a=s.options.vertical;if((o!==T||a)&&(o!==E||!a)&&s.zoomRange){var p=Mt(this.options.rate,.01,.9),l=s.zoomRange(-t*p,e);l&&r.push({axis:s,range:l})}}return this.axisRanges=r,Ha(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}(I.Class);const Xa=Wa;var Ya=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 I.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?Oe(e):new ie},e.prototype.renderVisual=function(){this.addVisual()},e.prototype.createVisual=function(){},e}(de);const qa=Ya;var Qa=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 ke({vertical:!1,wrap:!1,align:a,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=I.drawing.Path.fromRect(this.container.box.toRect(),{fill:{color:O,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:At(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 Za=Qa;var Ka="horizontal",Ja="custom",$a=function(t){function e(e,o){void 0===o&&(o={}),t.call(this,e),this.chartService=o,ct(this.options.position,[A,C,s,g,Ja])||(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=a;e===Ja?r=g:ct(e,[A,s])?(r="start"===o?g:"end"===o?C:a,i=e):o&&("start"===o?i=A:"end"===o&&(i=s)),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 qa({vertical:o,spacing:e.spacing,rtl:t.rtl},t),i=e.items;e.reverse&&(i=i.slice(0).reverse());for(var n=i.length,s=0;s<n;s++){var a=i[s];r.append(new Za(X({},{markers:e.markers,labels:e.labels,rtl:t.rtl},e.item,a)))}r.render(),this.itemsContainer.append(r)},e.prototype.isVertical=function(){var t=this.options,e=t.orientation,o=t.position;return o===Ja&&e!==Ka||(_t(e)?e!==Ka: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===Ja?(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,a=r===A||r===s?T:E,p=this.isVertical(),l=t.clone(),c=t.clone();r!==g&&r!==C||(c.y1=l.y1=0),p&&n?(c.y2=c.y1+n,c.align(l,E,o.options.vAlign)):!p&&i&&(c.x2=c.x1+i,c.align(l,T,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[a+1]=t[a+1],h[a+2]=t[a+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,s=e.height,a=this.isVertical(),p=t.clone();a&&s?p.y2=p.y1+s:!a&&n&&(p.x2=p.x1+n),o.reflow(p),p=o.box,o.reflow(new ie(r,i,r+p.width(),i+p.height()))},e.prototype.renderVisual=function(){this.hasItems()&&t.prototype.renderVisual.call(this)},e.prototype.createLegendTitle=function(t){var e=X({},{color:n,position:A,align:a},t),o=e.text;if(t&&!1!==t.visible){if(_t(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 ke({vertical:!0,wrap:!1}),this.container.append(this.layout)},e.prototype.hasTitle=function(){return Boolean(this.options.title&&!1!==this.options.title.visible)},e.prototype.appendTitleLayoutContent=function(){this.options.title.position===s?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))},e}(de);Dt($a,{position:C,items:[],offsetX:0,offsetY:0,margin:J(5),padding:J(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:a}});const tp=$a;var ep=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],s=0;s<i.length;s++){var a=i[s];if((r=Vs(t,a.seriesTypes)).length>0){n=a;break}}return new n.type(r,e,o)},e}(I.Class);ep.current=new ep;const op=ep;function rp(t){var e=document.createElement("div");return t&&(e.className=t),e}function ip(t){for(var e=t;e&&!at(e,"k-handle");)e=e.parentNode;return e}var np=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 Yo,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=rp("k-selector k-pointer-events-none");K(e,{top:t.offset.top,left:t.offset.left,width:t.width,height:t.height,direction:"ltr"});var o=this.selection=rp("k-selection k-pointer-events-none");this.leftMask=rp("k-mask k-pointer-events-none"),this.rightMask=rp("k-mask k-pointer-events-none"),e.appendChild(this.leftMask),e.appendChild(this.rightMask),e.appendChild(o);var r=this.body=rp("k-selection-bg k-pointer-events-none");o.appendChild(r);var i=this.leftHandle=rp("k-handle k-left-handle k-pointer-events-auto"),n=this.rightHandle=rp("k-handle k-right-handle k-pointer-events-auto");i.appendChild(rp()),n.appendChild(rp()),o.appendChild(i),o.appendChild(n),this.chartElement.appendChild(e);var s=K(o,["borderLeftWidth","borderRightWidth","height"]),a=K(i,"height").height,p=K(n,"height").height;t.selection={border:{left:s.borderLeftWidth,right:s.borderRightWidth}},K(i,{top:(s.height-a)/2}),K(n,{top:(s.height-p)/2}),e.style.cssText=e.style.cssText},e.prototype.bindEvents=function(){var t;!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),bt(this.chartElement,((t={})[Qi]=this._mousewheelHandler,t))),this._domEvents=Je.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=K(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&&(Bt(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=At(t);if(!this._state&&o){var r=St(t);if(this._pointInPane(r.x,r.y)){var i=ip(o),n=this.body.getBoundingClientRect(),s=!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:s,range:{from:this._index(e.from),to:this._index(e.to)}};var a=this._rangeEventArgs({from:this._index(e.from),to:this._index(e.to)});this.trigger(Hi,a)&&(this._state=null)}}},e.prototype._press=function(t){var e;(e=this._state?this._state.moveTarget:ip(At(t)))&&B(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,s=o.moveTarget,a=i.options.reverse,p=this._index(r.from),l=this._index(r.to),c=this._index(r.min),h=this._index(r.max),u=o.startLocation-t.x.location,d=n.from,f=n.to,v=n.to-n.from,y=K(this.wrapper,"width").width/(i.categoriesCount()-1),g=Math.round(u/y)*(a?-1:1);if(s||o.inBody){var m=s&&at(s,"k-left-handle"),x=s&&at(s,"k-right-handle");o.inBody?(n.from=Math.min(Math.max(c,p-g),h-v),n.to=Math.min(n.from+v,h)):m&&!a||x&&a?(n.from=Math.min(Math.max(c,p-g),h-1),n.to=Math.max(n.from+1,n.to)):(m&&a||x&&!a)&&(n.to=Math.min(Math.max(c+1,l-g),h),n.from=Math.min(n.to-1,n.from)),n.from===d&&n.to===f||(this.move(n.from,n.to),this.trigger(Ni,this._rangeEventArgs(n)))}}},e.prototype._end=function(){if(this._state){var t=this._state.moveTarget;t&&j(t,"k-handle-active");var e=this._state.range;this.set(e.from,e.to),this.trigger(Fi,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),s=this._index(e.to),a=this._index(e.min),p=this._index(e.max),l=s-n,c=n+l/2,h={},u=3===t.event.which,d=Math.round(c-i);this._state||u||(this.chart._unsetActivePoint(),o.options.justified||d--,h.from=Math.min(Math.max(a,n-d),p-l),h.to=Math.min(h.from+l,p),this._start(t),this._state&&(this._state.range=h,this.trigger(Ni,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(Ni,{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(Hi,r)?this._state=null:t.preventDefault()}},e.prototype._gestureend=function(){this._state&&(this.trigger(Fi,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,s=r.range,a=o._toModelCoordinates(t.touches[0].x.location).x,p=o._toModelCoordinates(t.touches[1].x.location).x,l=Math.min(a,p),c=Math.max(a,p);t.preventDefault(),s.from=n.pointCategoryIndex(new ee(l))||i.min,s.to=n.pointCategoryIndex(new ee(c))||i.max,this.move(s.from,s.to),this.trigger(Ni,this._rangeEventArgs(s))}},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,s=o.selection.border,a=r?e:t,p=r?t:e,l="x"+(r?2:1),c=this._slot(a),h=Rt(c[l]-i.left+n.left);K(this.leftMask,{width:h}),K(this.selection,{left:h}),c=this._slot(p);var u=Rt(o.width-(c[l]-i.left+n.left));K(this.rightMask,{width:u});var d=o.width-u;d!==o.width&&(d+=s.right),K(this.rightMask,{left:d}),K(this.selection,{width:Math.max(o.width-(h+u)-s.right,0)})},e.prototype.set=function(t,e){var o=this.options,r=this._index(o.min),i=this._index(o.max),n=Mt(this._index(t),r,i),s=Mt(this._index(e),n+1,i);o.visible&&this.move(n,s),o.from=this._value(n),o.to=this._value(s)},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),s=this._index(e.to),a={from:n,to:s},p=X({},a);if(this._state&&(a=this._state.range),i!==C&&(a.from=Mt(Mt(n-t,0,s-1),o,r)),i!==g&&(a.to=Mt(Mt(s+t,a.from+1,r),o,r)),a.from!==p.from||a.to!==p.to)return this.set(a.from,a.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),s=this._index(o.to),a={from:n,to:s},p=X({},a),l=this.categoryAxis.options.reverse,c=T+(l?"2":"1"),h=this.categoryAxis.lineBox(),u=Math.abs(h[c]-e[T]),d=h.width(),f=Rt(u/d,2),v=Rt(f*t),y=Rt((1-f)*t);if(this._state&&(a=this._state.range),a.from=Mt(Mt(n-v,0,s-1),r,i),a.to=Mt(Mt(s+y,a.from+1,i),r,i),a.from!==p.from||a.to!==p.to)return this.set(a.from,a.to),!0},e.prototype.trigger=function(t,e){return(this.observer||this.chart).trigger(t,e)},e}(I.Class);Dt(np,{visible:!0,mousewheel:{zoom:"both"},min:x,max:m});const sp=np;var ap=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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}(Ss);const pp=ap;var lp=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=st(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}(Ss);Dt(lp,{categoryFormat:"{0:d}"});const cp=lp;var hp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.element,e=this.options;if(t.bbox()){this.origin=e.origin;var o=e.vertical?E:T,r=this.fromScale=new I.geometry.Point(1,1);r[o]=Nr,t.transform(I.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(I.geometry.transform().scale(e,o,this.origin))},e.prototype.abort=function(){t.prototype.abort.call(this),this.element.transform(null)},e}(I.drawing.Animation);Dt(hp,{duration:zr}),I.drawing.AnimationFactory.current.register(Kr,hp);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.setup=function(){var t=this.center=this.element.bbox().center();this.element.transform(I.geometry.transform().scale(Nr,Nr,t))},e.prototype.step=function(t){this.element.transform(I.geometry.transform().scale(t,t,this.center))},e}(I.drawing.Animation);Dt(up,{easing:"easeOutElastic"}),I.drawing.AnimationFactory.current.register($r,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.setup=function(){this.fadeTo=this.element.opacity(),this.element.opacity(0)},e.prototype.step=function(t){this.element.opacity(t*this.fadeTo)},e}(I.drawing.Animation);Dt(dp,{duration:200,easing:"linear"}),I.drawing.AnimationFactory.current.register(Vr,dp);var fp=function(t){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(I.geometry.transform().scale(Nr,Nr,this.options.center))},e.prototype.step=function(t){this.element.transform(I.geometry.transform().scale(t,t,this.options.center))},e}(I.drawing.Animation);Dt(fp,{easing:"easeOutElastic",duration:zr}),I.drawing.AnimationFactory.current.register(li,fp);const vp=fp;var yp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.createSegment=function(t,e,o){return new(e.style===qr?bn:dn)(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 hs(o.x)||(o.x=0),hs(o.y)||(o.y=0),o}},e}(ds);X(yp.prototype,wn);const gp=yp;var mp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new zn,this.yAxisRangeTracker=new zn},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 s=e.filterVisibleSeries(n);s&&(e.createScatterChart(Vs(s,xi),i),e.createScatterLineChart(Vs(s,bi),i),e.createBubbleChart(Vs(s,$r),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=st([].concat(e.xAxis),(function(t){return t.name===o}))[0],i=t.yAxis,n=st([].concat(e.yAxis),(function(t){return t.name===i}))[0],s=(e.panes||[{}])[0].name||"default";return(r||{}).pane||(n||{}).pane||s},e.prototype.createScatterChart=function(t,e){t.length>0&&this.appendChart(new ds(this,{series:t,clip:e.options.clip}),e)},e.prototype.createScatterLineChart=function(t,e){t.length>0&&this.appendChart(new gp(this,{series:t,clip:e.options.clip}),e)},e.prototype.createBubbleChart=function(t,e){t.length>0&&this.appendChart(new gs(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,s=e?this.yAxisRangeTracker:this.xAxisRangeTracker,a=X({reverse:!e&&this.chartService.rtl},t,{vertical:e}),p=zs(a.type,Wi),l=s.query(),c=p?{min:.1,max:1}:{min:0,max:1},u=s.query(i)||l||c,d=[a.min,a.max],f=this.series,v=0;v<f.length;v++){var y=f[v],g=y[e?"yAxis":"xAxis"];if(g===a.name||0===o&&!g){var m=Br.current.bindPoint(y,0).valueFields;d.push(m[e?"y":"x"]);break}}0===o&&l&&(u.min=Math.min(u.min,l.min),u.max=Math.max(u.max,l.max));for(var x=0;x<d.length;x++)if(d[x]instanceof Date){r=!0;break}var b=new(zs(a.type,h)||!a.type&&r?or:p?ar:tr)(u.min,u.max,a,this.chartService);if(b.axisIndex=o,i){if(n[i])throw new Error((e?"Y":"X")+" axis with name "+i+" is already defined");n[i]=b}return this.appendAxis(b),b},e.prototype.createAxes=function(t){for(var e=this,o=this.options,r=[].concat(o.xAxis),i=[],n=[].concat(o.yAxis),s=[],a=0;a<r.length;a++)ct(e.findPane(r[a].pane),t)&&i.push(e.createXYAxis(r[a],!1,a));for(var p=0;p<n.length;p++)ct(e.findPane(n[p].pane),t)&&s.push(e.createXYAxis(n[p],!0,p));this.axisX=this.axisX||i[0],this.axisY=this.axisY||s[0]},e.prototype._dispatchEvent=function(t,e,o){for(var r=t._eventCoordinates(e),i=new ee(r.x,r.y),n=this.axes,s=n.length,a=[],p=[],l=0;l<s;l++){var c=n[l],h=c.options.vertical?p:a,u=c.getValue(i);null!==u&&h.push(u)}a.length>0&&p.length>0&&t.trigger(o,{element:At(e),originalEvent:e,x:Fs(a),y:Fs(p)})},e.prototype.updateAxisOptions=function(t,e){var o=t.options.vertical,r=this.groupAxes(this.panes),i=(o?r.y:r.x).indexOf(t);xp(this.options,i,o,e),xp(this.originalOptions,i,o,e)},e}(Js);function xp(t,e,o,r){X([].concat(o?t.yAxis:t.xAxis)[e],r)}Dt(mp,{xAxis:{},yAxis:{}}),X(mp.prototype,ta);const bp=mp;var _p=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===a||t.position===Yi)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:a,vAlign:"",animation:{type:Vr,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,s=e.box.height(),p=e.box.width();if(t.position===a)o.radius=Math.abs((o.radius-s)/2)+s,n=o.point(i),e.reflow(new ie(n.x,n.y-s/2,n.x,n.y));else if(t.position===Yi)o.radius=o.radius-s/2,n=o.point(i),e.reflow(new ie(n.x,n.y-s/2,n.x,n.y));else{var l;(n=o.clone().expand(r).point(i)).x>=o.center.x?(l=n.x+p,e.orientation=C):(l=n.x-p,e.orientation=g),e.reflow(new ie(l,n.y-s,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 I.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 I.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,s={color:n,opacity:o.opacity},a=this.createSegment(e,X({fill:s,stroke:{opacity:o.opacity},zIndex:o.zIndex},i));t.append(a),Nn(o)&&t.append(this.createGradientOverlay(a,{baseColor:n,fallbackFill:s},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 I.drawing.Circle(new I.geometry.Circle(new I.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 I.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=Rt(Math.sin(e),d),r=Rt(Math.cos(e),d),{horizontal:Math.abs(o)>Cp?a:r<0?C:g,vertical:Math.abs(o)<wp?a:o<0?s:A})}},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}(de),wp=Rt(Et(30),d),Cp=Rt(Et(60),d);Dt(_p,{color:O,overlay:{gradient:"roundedBevel"},border:{width:.5},labels:{visible:!1,distance:35,font:u,margin:J(.5),align:p,zIndex:1,position:qi},animation:{type:li},highlight:{visible:!0,border:{width:1}},visible:!0}),X(_p.prototype,pn);const kp=_p,Sp={createLegendItem:function(t,e,o){var r=this.options.legend||{},i=r.labels||{},n=r.inactiveItems||{},s=n.labels||{};if(o&&!1!==o.visibleInLegend){var a,p,l=!1!==o.visible,c=l?ot(i):ot(s)||ot(i),h=o.category;c&&(h=c({text:h,series:o.series,dataItem:o.dataItem,percentage:o.percentage,value:t})),l?(a={},p=e.color):(a={color:s.color,font:s.font},p=(n.markers||{}).color),hs(h)&&""!==h&&this.legendItems.push({active:l,pointIndex:o.index,text:h,series:o.series,markerColor:p,labels:a})}}};var Ap=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,s=0;s<n;s++){var p=i[s],l=p.data,c=Ds(p),h=c.total,u=c.points,d=c.count,f=360/h,v=void 0;isFinite(f)||(v=360/d);var y=void 0;y=_t(p.startAngle)?p.startAngle:e.startAngle,s!==n-1&&p.labels.position===qi&&(p.labels.position=a);for(var g=0;g<u.length;g++){var m=u[g];if(m){var x=m.fields,b=m.value,_=m.visible,w=0!==b?v||b*f:0,C=1!==l.length&&Boolean(x.explode);F(p.color)||(p.color=x.color||o[g%r]),t(b,new ae(null,0,0,y,w),{owner:this,category:_t(x.category)?x.category:"",index:g,series:p,seriesIx:s,dataItem:l[g],percentage:0!==h?b/h:0,explode:C,visibleInLegend:x.visibleInLegend,visible:_,zIndex:n-s,animationDelay:this.animationDelay(g,s,n)}),!1!==_&&(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 kp(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,s=t.clone(),a=Math.min(s.width(),s.height()),p=a/2,l=a-.85*a,c=new ie(s.x1,s.y1,s.x1+a,s.y1+a),h=c.center(),u=s.center(),d=o.series.length,f=[],v=[],y=Lt(o.padding,l);this.targetBox=t,y=y>p-5?p-5:y,c.translate(u.x-h.x,u.y-h.y);for(var g=p-y,m=new ee(g+c.x1+y,g+c.y1+y),x=0;x<n;x++){var b=r[x],_=b.sector,w=b.seriesIx;if(_.radius=g,_.center=m,i.length){var k=i[w];_.innerRadius=k.innerRadius,_.radius=k.radius}w===d-1&&b.explode&&(_.center=_.clone().setRadius(.15*_.radius).point(_.middle())),b.reflow(c);var S=b.label;S&&S.options.position===qi&&w===d-1&&(S.orientation===C?v.push(S):f.push(S))}f.length>0&&(f.sort(this.labelComparator(!0)),this.leftLabelsReflow(f)),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=Ot(this.points),o=e.sector,r=t.length-1,i=o.radius+e.options.labels.distance,n=[],s=t[0].box,a=Rt(s.y1-(o.center.y-i-s.height()-s.height()/2));n.push(a);for(var p=0;p<r;p++){var l=t[p+1].box;s=t[p].box,a=Rt(l.y1-s.y2),n.push(a)}return a=Rt(o.center.y+i-t[r].box.y2-t[r].box.height()/2),n.push(a),n},e.prototype.distributeLabels=function(t,e){for(var o,r,i,n=t.length,s=0;s<n;s++)for(i=-t[s],o=r=s;i>0&&(o>=0||r<n);)i=this._takeDistance(t,s,--o,i),i=this._takeDistance(t,s,++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=Ot(this.points),i=r.sector,n=r.options.labels,s=e.length,a=n.distance,l=i.center.y-(i.radius+a)-e[0].box.height();t[0]+=2;for(var c=0;c<s;c++){var h=e[c],u=h.box;l+=t[c],o=this.hAlignLabel(u.x2,i.clone().expand(a),l,l+u.height(),h.orientation===C),h.orientation===C?(n.align!==p&&(o=i.radius+i.center.x+a),h.reflow(new ie(o+u.width(),l,o,l))):(n.align!==p&&(o=i.center.x-i.radius-a),h.reflow(new ie(o-u.width(),l,o,l))),l+=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 s=r[n],a=s.sector,p=s.label,l=a.middle(),c=(s.options.connectors||{}).color||o.color;if(p){var h=new I.drawing.Path({stroke:{color:c,width:o.width},animation:{type:Vr,delay:s.animationDelay}});if(p.options.position===qi){var u=p.box,d=a.center,f=a.point(l),v=new ee(u.x1,u.center().y),y=void 0,g=void 0,m=void 0;f=a.clone().expand(o.padding).point(l),h.moveTo(f.x,f.y),p.orientation===C?(m=Pp(d,f,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,a.center,a.radius+4)||m.x<a.center.x?(y=a.center.x+a.radius+4,s.options.labels.align!==oi?y<v.x?h.lineTo(y,f.y):h.lineTo(f.x+8,f.y):h.lineTo(y,f.y),h.lineTo(v.x,g.y)):(m.y=g.y,h.lineTo(m.x,m.y))):(m=Pp(d,f,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,a.center,a.radius+4)||m.x>a.center.x?(y=a.center.x-a.radius-4,s.options.labels.align!==oi?y>v.x?h.lineTo(y,f.y):h.lineTo(f.x-8,f.y):h.lineTo(y,f.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),Vt(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(I.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,s=e.center,a=s.x,p=s.y,l=Math.min(Math.abs(p-o),Math.abs(p-r));return l>n?t:a+Math.sqrt(n*n-l*l)*(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}(de);function Pp(t,e,o,r){var i,n=(r.x-o.x)*(t.y-o.y)-(r.y-o.y)*(t.x-o.x),s=(r.y-o.y)*(e.x-t.x)-(r.x-o.x)*(e.y-t.y);if(0!==s){var a=n/s;i=new ee(t.x+a*(e.x-t.x),t.y+a*(e.y-t.y))}return i}Dt(Ap,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),X(Ap.prototype,Sp),Ap.prototype.isStackRoot=!0;const Op=Ap;var Mp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createPieChart(this.series)},e.prototype.createPieChart=function(t){var e=t[0],o=new Op(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),xt(this.options.legend.items,e.legendItems)},e}(Js);const Tp=Mp;var Ep=function(t){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===a){r.radius-=(r.radius-r.innerRadius)/2;var s=r.point(i);o.reflow(new ie(s.x,s.y-n/2,s.x,s.y))}else t.prototype.reflowLabel.call(this)}},e.prototype.createSegment=function(t,e){return he.current.createRing(t,e)},e}(kp);Dt(Ep,{overlay:{gradient:"roundedGlass"},labels:{position:a},animation:{type:li}}),X(Ep.prototype,pn);const Rp=Ep;var Bp=function(t){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 Rp(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()),s=n/2,a=n-.85*n,p=r.series,l=p.length,c=Lt(r.padding,a),h=s-(c=c>s-5?s-5:c),u=0,d=0;d<l;d++){var f=p[d];0===d&&_t(f.holeSize)&&(o=f.holeSize,h-=f.holeSize),_t(f.size)?h-=f.size:u++,_t(f.margin)&&d!==l-1&&(h-=f.margin)}_t(o)||(h-=o=(s-c)/(l+.75)*.75);var v,y=o,g=0;this.seriesConfigs=[];for(var m=0;m<l;m++){var x=p[m];v=(y+=g)+Lt(x.size,h/u),this.seriesConfigs.push({innerRadius:y,radius:v}),g=x.margin||0,y=v}t.prototype.reflow.call(this,e)},e.prototype.animationDelay=function(t,e,o){return 50*t+zr*(e+1)/(o+1)},e}(Op);Dt(Bp,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}});const Lp=Bp;var jp=function(t){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 Lp(this,{series:t,padding:e.padding,connectors:e.connectors,legend:this.options.legend});this.appendChart(o)},e}(Tp);const Ip=jp;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.initFields=function(){this.valueAxisRangeTracker=new zn},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=xr,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 s=new t(n.min,n.max,i,this.chartService);this.valueAxis=s,this.appendAxis(s)},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()),s=J(e.padding||{},n),p=i.clone().unpad(s),l=p.clone();l.y2=l.y1+Math.min(l.width(),l.height()),l.align(p,E,a);var c=l.clone().shrink(0,l.height()/2);r.reflow(l),o.reflow(c);var h=o.lineBox().height()-o.box.height();o.reflow(o.box.unpad({top:h})),this.axisBox=l,this.alignAxes(l)},e.prototype.backgroundBox=function(){return this.box},e.prototype.detachLabels=function(){},e}(Js);const zp=Dp;var Vp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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}(ds);Dt(Vp,{clip:!1});const Hp=Vp;var Np=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(gp);Np.prototype.pointSlot=Hp.prototype.pointSlot,Dt(Np,{clip:!1});const Fp=Np;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.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 _r(!1),r=this.points();r.push(e),(t=this._strokeSegments=o.process(r)).pop()}return t},e}(Ln);const Gp=Up;var Wp=function(t){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 I.geometry.Segment([e.x,e.y]);t.segments.unshift(o),t.segments.push(o)},e}(Tn);const Xp=Wp;var Yp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,o){return(e.line||{}).style===qr?new Gp(t,e,o):new Xp(t,e,o)},e.prototype.createMissingValue=function(t,e){var o;return hs(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(qp),this._hasMissingValuesGap())for(var e=0;e<t.length;e++){var o=t[e];o&&(hs(o.value.y)||"gap"!==this.seriesMissingValues(o.series)||delete t[e])}return t},e}(Fp);function qp(t,e){return t.value.x-e.value.x}const Qp=Yp;var Zp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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),Js.prototype.appendChart.call(this,t,e)},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createLineChart(Vs(t,[hi]),e),this.createScatterChart(Vs(t,[ui]),e),this.createAreaChart(Vs(t,[ci]),e)},e.prototype.createLineChart=function(t,e){if(0!==t.length){var o=new Fp(this,{series:t});this.appendChart(o,e)}},e.prototype.createScatterChart=function(t,e){if(0!==t.length){var o=new Hp(this,{series:t});this.appendChart(o,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var o=new Qp(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),s=this.axisY.getValue(i);null!==n&&null!==s&&t.trigger(o,{element:At(e),x:n,y:s})},e.prototype.createCrosshairs=function(){},e}(zp);Dt(Zp,{xAxis:{},yAxis:{}}),X(Zp.prototype,ta);const Kp=Zp;var Jp=function(t){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=Ot(r),s=Ot(n.linePoints),a=0===i.categoryIx,p=s.categoryIx===s.categoriesCount-1;a&&p&&Ot(r).linePoints.push(i)}}},e.prototype.createSegment=function(t,e,o){var r=new(e.style===qr?bn:dn)(t,e,o),i=this.seriesMissingValues(e);return t.length!==e.data.length&&i!==Wr||(r.options.closed=!0),r},e}(On);Dt(Jp,{clip:!1,limitPoints:!1});const $p=Jp;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.fillToAxes=function(){},e}(Ln);const el=tl;var ol=function(t){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}(Tn);const rl=ol;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.createSegment=function(t,e,o,r){var i,n,s,a=this.options.isStacked,p=(e.line||{}).style;return a&&o>0&&r&&(n=r.linePoints.slice(0),i=r),p===qr?(s=new el(t,e,o,i,n)).options.closed=!0:(t.push(t[0]),s=new rl(t,e,o,i,n)),s},e.prototype.seriesMissingValues=function(t){return t.missingValues||Gr},e}($p);const nl=il;var sl=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}(Rp);Dt(sl,{overlay:{gradient:"none"},labels:{distance:10}});const al=sl;var pl=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,s=n+r+i*(n-1),a=t.angle/s,p=t.startAngle+a*(r/2);this.forEach(o,(function(e){var o=t.clone();o.startAngle=p,o.angle=a,e.sector&&(o.radius=e.sector.radius),e.reflow(o),e.sector=o,p+=a+a*i}))},e}(de);Dt(pl,{gap:1,spacing:0});const ll=pl;var cl=function(t){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 s=i;s>=0&&s<r;s+=n){var a=o[s].sector;a.startAngle=t.startAngle,a.angle=t.angle}},e}(de);const hl=cl;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.pointType=function(){return al},e.prototype.clusterType=function(){return ll},e.prototype.stackType=function(){return hl},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}(Kn);ul.prototype.reflow=sn.prototype.reflow,Dt(ul,{clip:!1,limitPoints:!1,animation:{type:"pie"}});const dl=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.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(){ja.prototype.aggregateCategories.call(this,this.panes)},e.prototype.createCategoryAxesLabels=function(){ja.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(Vs(t,[di]),e),this.createLineChart(Vs(t,[vi]),e),this.createBarChart(Vs(t,[fi]),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 nl(this,this.chartOptions(t));this.appendChart(o,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var o=new $p(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 dl(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),s=this.valueAxis.getValue(i);null!==n&&null!==s&&t.trigger(o,{element:At(e),category:n,value:s})},e.prototype.createCrosshairs=function(){},e}(zp);X(fl.prototype,ta,{appendChart:ja.prototype.appendChart,aggregateSeries:ja.prototype.aggregateSeries,seriesSourcePoints:ja.prototype.seriesSourcePoints}),Dt(fl,{categoryAxis:{categories:[]},valueAxis:{}});const vl=fl;var yl=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 I.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 I.drawing.Path.fromPoints(this.points,t)},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=I.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}(de);Dt(yl,{color:O,border:{width:1}}),X(yl.prototype,pn);const gl=yl;var ml=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=Ds(r),s=n.total,a=n.points,p=0;p<a.length;p++){var l=a[p];if(l){var c=l.fields;F(r.color)||(r.color=c.color||o[p%o.length]),c=X({index:p,owner:t,series:r,dataItem:i[p],percentage:l.value/s},c,{visible:l.visible});var h=l.valueFields.value,u=t.createSegment(h,c),d=t.createLabel(h,c);u&&d&&u.append(d)}}},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 gl(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 s=ot(i),a={dataItem:r,value:t,percentage:e.percentage,category:e.category,series:o};s?n=s(a):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 p=new Ee(n,X({vAlign:i.position},i),a);return this.labels.push(p),p}},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!==a){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,s=i[0],a=s,p=0;p<i.length;p++)i[p].percentage>a.percentage&&(a=i[p]);for(var l=s.percentage/a.percentage*e,c=(e-l)/2,h=0,u=0;u<n;u++){var d=i[u].percentage,f=i[u+1],v=f?f.percentage:d,y=i[u].points=[],g=r.dynamicHeight?o*d:o/n,m=void 0;m=Mt(m=d?(e-l*(v/d))/2:v?0:e/2,0,e),y.push(new I.geometry.Point(t.x1+c,t.y1+h)),y.push(new I.geometry.Point(t.x1+e-c,t.y1+h)),y.push(new I.geometry.Point(t.x1+e-m,t.y1+g+h)),y.push(new I.geometry.Point(t.x1+m,t.y1+g+h)),c=m,h+=g+r.segmentSpacing,l=Mt(e-2*m,0,e)}},e.prototype.constantSlopeReflow=function(t,e,o){for(var r=this.options,i=this.points,n=i.length,s=r.neckRatio<=1,a=s?r.neckRatio*e:e,p=s?0:(e-e/r.neckRatio)/2,l=((s?e:e-2*p)-a)/2,c=0,h=0;h<n;h++){var u=i[h].points=[],d=i[h].percentage,f=r.dynamicHeight?l*d:l/n,v=r.dynamicHeight?o*d:o/n;u.push(new I.geometry.Point(t.x1+p,t.y1+c)),u.push(new I.geometry.Point(t.x1+e-p,t.y1+c)),u.push(new I.geometry.Point(t.x1+e-p-f,t.y1+v+c)),u.push(new I.geometry.Point(t.x1+p+f,t.y1+v+c)),p+=f,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),s=i.width();r.dynamicSlope?this.dynamicSlopeReflow(i,s,n):this.constantSlopeReflow(i,s,n);for(var a=0;a<o;a++)e[a].reflow(t)}},e}(de);Dt(ml,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:a,position:a,zIndex:1}}),X(ml.prototype,Sp);const xl=ml;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.render=function(){this.createFunnelChart(this.series)},e.prototype.createFunnelChart=function(t){var e=t[0],o=new xl(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),xt(this.options.legend.items,e.legendItems)},e}(Js);const _l=bl;var wl=function(t){function e(e,o){t.call(this),this.options=o,this.color=o.color||O,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:a,vAlign:a,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")===k,i=Lt(e.width,r?1:0),n=Math.round(i/2);if(t.size){var s=o.center();o.size.width=o.size.height=t.size,o.origin.x=Math.round(s.x-o.size.width/2),o.origin.y=Math.round(s.y-o.size.height/2)}return o.size.width-=i,o.size.height-=i,o.origin.y+=n+.5,o.origin.x+=n+.5,Oe(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:a,vertical:s}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.unclipElements=function(){},e.prototype.pointData=function(){return{x:this.value.x,y:this.value.y,value:this.value.value,dataItem:this.dataItem,series:this.series}},e}(de);X(wl.prototype,pn),X(wl.prototype,ln),wl.prototype.defaults={markers:{type:"rect",borderRadius:4,border:{color:"transparent"}},padding:{top:1},labels:{visible:!1,padding:3},opacity:1,notes:{label:{}}};const Cl=wl;var kl=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:x},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;_t(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&&_t(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"]},s=this._evalSeries[i];_t(s)||(this._evalSeries[i]=s=on(t,{},n,!0));var a=t;return s&&on(a=X({},t),{value:e,series:r,dataItem:o.dataItem,min:this.valueRange.min,max:this.valueRange.max},n),a},e.prototype.pointType=function(){return Cl},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),F(o.color)?i=r.color:0!==this.valueRange.max&&(i=function(t,e){void 0===e&&(e=.05);var o=(0,I.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 Cl(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 s=o[i++],a=e.seriesAxes(n.series),p=a.xAxis,l=a.yAxis,c=p.categoryIndex(t.x),h=l.categoryIndex(t.y),u=p.getSlot(c,c,r),d=l.getSlot(h,h,r);if(s)if(u&&d){var f=e.pointSlot(u,d);s.reflow(f)}else s.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),s=n.xAxis,a=n.yAxis,p=s.currentRangeIndices(),l=a.currentRangeIndices(),c=0;c<i.data.length;c++){var h=e._bindPoint(i,r,c),u=h.valueFields,d=h.fields,f=s.totalIndex(u.x),v=a.totalIndex(u.y),y=p.min<=f&&f<=p.max,g=l.min<=v&&v<=l.max;y&&g&&t(u,X({pointIx:c,series:i,seriesIx:r,dataItem:i.data[c],owner:e},d))}},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}(de);Dt(kl,{series:[],tooltip:{format:"{0}, {1}: {2}"},labels:{format:"{2}"},clip:!0}),X(kl.prototype,{_bindPoint:sn.prototype._bindPoint});const Sl=kl;var Al=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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,s=i.yAxis,a=Kt(n.categories||[]),p=Kt(s.categories||[]),l=0;l<r.length;l++){var c=Br.current.bindPoint(o,l).valueFields,h=c.x,u=c.y;a.has(h)||a.add(h),p.has(u)||p.add(u)}n.categories=a.values(),s.categories=p.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 s=e.filterVisibleSeries(n);s&&e.createHeatmapChart(Vs(s,[ni]),i)}},e.prototype.createHeatmapChart=function(t,e){var o=new Sl(this,{series:t});this.appendChart(o,e)},e.prototype.seriesPaneName=function(t){var e=this.options,o=t.xAxis,r=st([].concat(e.xAxis),(function(t){return t.name===o}))[0],i=t.yAxis,n=st([].concat(e.yAxis),(function(t){return t.name===i}))[0],s=(e.panes||[{}])[0].name||"default";return(r||{}).pane||(n||{}).pane||s},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 s=[].concat(r.yAxis),a=t.yAxis;if(o=a?s.find((function(t){return t.name===a})):s[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 "+a);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,s=Object.assign({axisCrossingValue:0},t,{vertical:e,reverse:e||this.chartService.rtl?!t.reverse:t.reverse,justified:!1}),a=s.categories?s.categories[0]:null,p=[s.min,s.max,a],l=this.series,c=0;c<l.length;c++){var u=l[c],d=u[e?"yAxis":"xAxis"];if(d===s.name||0===o&&!d){var f=Br.current.bindPoint(u,0).valueFields;p.push(f[e?"y":"x"]);break}}for(var v=0;v<p.length;v++)if(p[v]instanceof Date){r=!0;break}var y=new(zs(s.type,h)||!s.type&&r?Yo:zo)(s,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),s=[],a=0;a<r.length;a++)ct(e.findPane(r[a].pane),t)&&i.push(e.createXYAxis(r[a],!1,a));for(var p=0;p<n.length;p++)ct(e.findPane(n[p].pane),t)&&s.push(e.createXYAxis(n[p],!0,p));this.axisX=this.axisX||i[0],this.axisY=this.axisY||s[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,s=n.length,a=[],p=[],l=0;l<s;l++){var c=n[l];js(c.options.vertical?p:a,c.getCategory(i))}a.length>0&&p.length>0&&t.trigger(o,{element:At(e),originalEvent:e,x:Fs(a),y:Fs(p)})},e.prototype.updateAxisOptions=function(t,e){var o=t.options.vertical,r=this.groupAxes(this.panes),i=(o?r.y:r.x).indexOf(t);Pl(this.options,i,o,e),Pl(this.originalOptions,i,o,e)},e.prototype.crosshairOptions=function(t){return Object.assign({},t.options.crosshair,{zIndex:0})},e}(Js);function Pl(t,e,o,r){X([].concat(o?t.yAxis:t.xAxis)[e],r)}Dt(Al,{xAxis:{},yAxis:{}}),X(Al.prototype,ta);const Ol=Al;var Ml="color",Tl="first",El="max",Rl="min",Bl="noteText";op.current.register(ja,[Kr,oi,ai,ki,Zr,_i,ei,pi,ti,Ci,Jr,wi,mi,gi,Ai,si,yi,Si]),op.current.register(bp,[xi,bi,$r]),op.current.register(Tp,[li]),op.current.register(Ip,[ri]),op.current.register(_l,[ii]),op.current.register(Kp,[ci,hi,ui]),op.current.register(vl,[di,fi,vi]),op.current.register(Ol,[ni]),Br.current.register([Kr,oi,ai,ki,Zr,_i],[P],[Xi,Ml,Bl,Fr,Ur,Zi]),Br.current.register([mi,gi,yi,Si],["from","to"],[Xi,Ml,Bl,Zi]),Br.current.register([Ai,si],[P],[Xi,Ml,Bl,"summary",Zi]),Br.current.register([ci,hi,ui],[T,E],[Ml,Zi]),Br.current.register([di,fi,vi],[P],[Ml,Zi]),Br.current.register([ii],[P],[Xi,Ml,"visibleInLegend","visible",Zi]),ia.current.register([Kr,oi,ai,ki,Zr,_i,Ai,si],{value:El,color:Tl,noteText:Tl,errorLow:Rl,errorHigh:El}),ia.current.register([mi,gi,yi,Si],{from:Rl,to:El,color:Tl,noteText:Tl}),ia.current.register([di,fi,vi],{value:El,color:Tl}),Br.current.register([xi,bi,$r],[T,E],[Ml,Bl,"xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Br.current.register([$r],[T,E,"size"],[Ml,Xi,Bl]),Br.current.register([ni],[T,E,P],[Ml,Bl]),Br.current.register([ei,pi],["open","high","low","close"],[Xi,Ml,"downColor",Bl]),ia.current.register([ei,pi],{open:El,high:El,low:Rl,close:El,color:Tl,downColor:Tl,noteText:Tl}),Br.current.register([Jr,wi],["lower","q1","median","q3","upper","mean","outliers"],[Xi,Ml,Bl,Zi]),ia.current.register([Jr,wi],{lower:El,q1:El,median:El,q3:El,upper:El,mean:El,outliers:Tl,color:Tl,noteText:Tl}),Br.current.register([ti,Ci],["current","target"],[Xi,Ml,"visibleInLegend",Bl,Zi]),ia.current.register([ti,Ci],{current:El,target:El,color:Tl,noteText:Tl}),Br.current.register([li,ri],[P],[Xi,Ml,"explode","visibleInLegend","visible",Zi]);var Ll=[Xi,P,T,E],jl="mousemove",Il="contextmenu",Dl="mouseleave",zl=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 s=X({},this.options,o);this._originalOptions=X({},s),this._theme=r,this._initTheme(s,r),this._initHandlers(),this._initSurface(),this.bindCategories(),It.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){B(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=Ll,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&&Vt(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 kr(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 Ar(e[o])},e.prototype.findPaneByIndex=function(t){var e=this._plotArea.panes;if(e[t])return new Ar(e[t])},e.prototype.plotArea=function(){return new Pr(this._plotArea)},e.prototype.toggleHighlight=function(t,e){var o,r,i,n=this._plotArea,s=(n.srcSeries||n.series||[])[0];F(e)?o=n.filterPoints(e):(Y(e)?(r=e.series,i=e.category):r=i=e,o=s.type===ri?Vl(n.pointsBySeriesName(r),i):s.type===li||s.type===ii?Vl((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(F(t)?(e=n.findPoint(t))&&r&&(o=e.categoryIx):r&&_t(t)&&(o=n.categoryAxis.categoryIndex(t)),r){if(o>=0){var s=this._plotArea.pointsByCategoryIndex(o);i.showAt(s)}}else e&&i.show(e)},e.prototype.hideTooltip=function(){this._tooltip.hide()},e.prototype._initSurface=function(){var t=this.surface,e=this._surfaceWrap(),o=this.options.chartArea||{};o.width&&kt(e,{width:o.width}),o.height&&kt(e,{height:o.height}),t&&t.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=I.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 za,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),Gl(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}});Ul(this._originalOptions,r),this.options=X({},this._originalOptions,r),this._initTheme(this.options,this._theme),this.bindCategories();var i=this._getModel();i.renderVisual(),Gl(i._plotArea.panes),e=i.visual,this.options=o}else e=this.surface.exportVisual();return e},e.prototype._sharedTooltip=function(){return this._plotArea instanceof ja&&this.options.tooltip&&this.options.tooltip.shared},e.prototype._createPannable=function(){var t=this.options;!1!==t.pannable&&(this._pannable=new Fa(this._plotArea,t.pannable))},e.prototype._createZoomSelection=function(){var t=this.options.zoomable,e=(t||{}).selection;!1!==t&&!1!==e&&(this._zoomSelection=new Ga(this,e))},e.prototype._createMousewheelZoom=function(){var t=this.options.zoomable,e=(t||{}).mousewheel;!1!==t&&!1!==e&&(this._mousewheelZoom=new Xa(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([Ii,Li,ji])),n=(!1===e||!1===r)&&!this.requiresHandlers([Di,zi,Vi]),s=this.element;this._dragZoomEnabled&&i&&n?(s.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):this._dragZoomEnabled||i&&n||(s.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!i,!n)},e.prototype._toggleDomEvents=function(t,e){var 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 pp(this.chartService,t)},e.prototype._createSharedTooltip=function(t){return new cp(this._plotArea,t)},e.prototype.applyDefaults=function(t,e){!function(t,e){var o,r,i,n=(e||{}).axisDefaults||{};function s(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 a=0;a<Ll.length;a++)o=Ll[a]+"Axis",r=t.axisDefaults||{},i=(i=[].concat(t[o])).map(s),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),s=e?X({},e.seriesDefaults):{},a=X({},s);Hl(n),Hl(a);for(var p=0;p<r;p++){var l=o[p].type||t.seriesDefaults.type,c=X({data:[]},a,s[l],{tooltip:t.tooltip},n,i[l]);o[p]._defaults=c,o[p]=X({},c,o[p]),o[p].data=o[p].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],s=i._defaults;i.color=i.color||n,s&&(s.color=s.color||n)}},e.prototype._getModel=function(){var t=this.options,e=this._createPlotArea(),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 tp(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 op.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 zo&&i.select&&!i.vertical){var n=r.range(),s=new sp(this,r,X({min:n.min,max:n.max},i.select));e.push(s)}}},e.prototype._selectStart=function(t){return this.trigger(Hi,t)},e.prototype._select=function(t){return this.trigger(Ni,t)},e.prototype._selectEnd=function(t){return this.trigger(Fi,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,I.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===Ui?e.anchor.point=this._toDocumentCoordinates(e.anchor.point):t===Ti?this._updateDrilldownPoint(e.point):t===Ei?this._resetDrilldownPoint():t===Oi&&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,bt(o,((t={})[Il]=this._clickHandler,t[Qi]=this._mousewheelHandler,t[Dl]=this._mouseleaveHandler,t)),this._shouldAttachMouseMove()&&bt(o,((e={})[jl]=this._mousemove,e)),this.domEvents=Je.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(Bi))},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(Vi,{}))},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:Nl(this._plotArea.axes),originalEvent:t};if(this._zooming||!this.trigger(Di,i)){var n=this._eventCoordinates(t);this._zooming||(this._zooming=!0),(i.axisRanges=e.updateRanges(r,n))&&!this.trigger(zi,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([Ii,Li,ji])&&this._startNavigation(t,e,Ii),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(Di,{axisRanges:Nl(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,s=0;s<n.length;s++){var a=n[s];if(a.options.name){var p=a.options.vertical?t.y:t.x,l=p.startLocation-p.location;0!==l&&(i[a.options.name]=a.translateRange(l))}}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(ji,{axisRanges:Nl(this._plotArea.axes),originalEvent:t}),this._suppressHover=!1,this.chartService.panning=!1):this._endNavigation(t,ji),this._zoomSelection){var o=this._zoomSelection.end(t);o&&!this.trigger(zi,{axisRanges:o,originalEvent:t})&&(this._zoomSelection.zoom(),this.trigger(Vi,{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:Nl(this._plotArea.axes),originalEvent:t};!this._zooming&&this.trigger(Di,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(zi,n)&&r.zoom(),this._mwTimeout=setTimeout((function(){e.trigger(Vi,n),e._zooming=!1,e.surface&&e.surface.resumeTracking()}),150))}else{var s=this._navState;if(s||this._startNavigation(t,i,Di)||(s=this._navState),s){var a=s.totalDelta||o;s.totalDelta=a+o;for(var p=this._navState.axes,l={},c=0;c<p.length;c++){var h=p[c],u=h.options.name;u&&(l[u]=h.scaleRange(-a*e._mousewheelZoomRate(),i))}this.trigger(zi,{delta:o,axisRanges:l,originalEvent:t}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._endNavigation(t,Vi)}),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 s=Nl(n);this.trigger(o,{axisRanges:s,originalEvent:t})?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:s,pane:i,axes:n})}},e.prototype._endNavigation=function(t,e){this._navState&&(this.trigger(e,{axisRanges:this._navState.axisRanges,originalEvent:t}),this._suppressHover=!1,this._navState=null)},e.prototype._getChartElement=function(t,e){var 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=K(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:Rt(t.x+e.left+o.left),top:Rt(t.y+e.top+o.top)}},e.prototype._toModelCoordinates=function(t,e){var o=this.element,r=Ct(o),i=this._elementPadding(),n=Ut(o).invert(),s=new I.geometry.Point(t-r.left-i.left,e-r.top-i.top).transform(n);return new ee(s.x,s.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 Js)}));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&&Br.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=Br.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],s=this._getDefaultOpacityForSeries(n),a=this._getInactiveOpacityForSeries(n);e||n===t.series?(n.opacity=s,n.line&&(n.line.opacity=s)):(n.defaultOpacity=s,n.opacity=a,n.line&&(n.line.opacity=a))}},e.prototype._applySeriesOpacity=function(t,e,o,r){for(var i=0;i<t.length;i++){var n=t[i],s=n.series||r;if(s&&(s.highlight||{}).visible&&n.visual){var a=r?r.opacity:n.series.opacity;(s!==e||o)&&n.visual.opacity(o?1:a)}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),bt(document,((e={})[jl]=this._mouseMoveTrackHandler,e)))},e.prototype._mouseMoveTracking=function(t){var e,o=this,r=o.options,i=o._tooltip,n=o._highlight,s=o._activePoint,a=this._eventCoordinates(t);if(this._plotArea.box.containsPoint(a)){if(s&&s.tooltipTracking&&s.series&&s.parent.getNearestPoint){var p=s.parent.getNearestPoint(a.x,a.y,s.seriesIx);p&&p!==s&&(this._activePoint=p,p.hover(this,t)||(X({},r.tooltip,p.options.tooltip).visible&&i.show(p),n.show(p)))}}else Bt(document,((e={})[jl]=this._mouseMoveTrackHandler,e)),this._unsetActivePoint(),this._mouseMoveTrackHandler=null,this._hideInactiveOpacity(s)},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(Bi))}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,s=r._plotArea.categoryAxis,a=r._tooltip,p=r._highlight;if(n.backgroundContainsPoint(t)){var l=s.pointCategoryIndex(t);if(l!==this._tooltipCategoryIx||!this._sharedHighlight&&o){var c=n.pointsByCategoryIndex(l),h=c.map((function(t){return t.eventArgs(e)})),u=h[0]||{};u.categoryPoints=h,c.length>0&&!this.trigger(Mi,u)?(i.visible&&a.showAt(c,t),p.show(c),this._sharedHighlight=!0):a.hide(),this._tooltipCategoryIx=l}else o&&this._sharedHighlight&&(p.hide(),a.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(p.hide(),a.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 lt,s=[],a=!1,p=0;p<i;p++){var l=r[p],c=l.categoryAxis===t.name||!l.categoryAxis&&0===e,h=l.data,u=h.length,d=l.categoryField&&c;if(a=d||a,d&&u>0)for(var f=(o=Ns(t,Er(l.categoryField,h[0])))?Hs:Er,v=0;v<u;v++){var y=h[v],g=f(l.categoryField,y,this.chartService.intl);!o&&n.get(g)||(s.push([g,y]),o||n.set(g,!0))}}if(s.length>0){o&&(s=function(t,e){void 0===e&&(e=Po);for(var o=function(t,e){void 0===e&&(e=Po);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],Ot(i))&&i.push(o[n]);return i}(s,(function(t,e){return Po(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,s=0;s<n;s++)o[s]=o[s]||[],o[s].push(i[s]);return o}(s);t.categories=m[0]}else a&&(t.categories=[])},e.prototype._isBindable=function(t){for(var e=Br.current.valueFields(t),o=!0,r=0;r<e.length;r++){var i=e[r];if(i===P?i="field":i+="Field",!_t(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,[li,ri,ii])?r.findPoint((function(o){return o.series.index===t&&o.index===e})):r.pointsBySeriesIndex(t),this._hasInactiveOpacity()&&n.visible&&o){var s=r.series.length>1,a=o.length?o[0]:o;this._displayInactiveOpacity(a,s,o)}else i.show(o)},e.prototype._shouldAttachMouseMove=function(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers([Ri,Bi])},e.prototype.updateMouseMoveHandler=function(){var t,e;Bt(this.element,((t={})[jl]=this._mousemove,t)),this._shouldAttachMouseMove()&&bt(this.element,((e={})[jl]=this._mousemove,e))},e.prototype.applyOptions=function(t,e){Ul(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,Bt(this.element,((t={})[Il]=this._clickHandler,t[Qi]=this._mousewheelHandler,t[jl]=this._mousemove,t[Dl]=this._mouseleaveHandler,t)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&Bt(document,((e={})[jl]=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}(I.Class);function Vl(t,e){if(t)for(var o=0;o<t.length;o++)if(t[o].category===e)return[t[o]]}function Hl(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 Nl(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 Fl=["data","categories"];function Ul(t,e){for(var o in e)if(!ct(o,Fl)&&e.hasOwnProperty(o)){var r=e[o],i=t[o];if(_t(i)){var n=null===r;n||!_t(r)?(delete t[o],n&&delete e[o]):i&&Y(r)&&Y(i)&&Ul(i,r)}}}function Gl(t){for(var e=0;e<t.length;e++)t[e].notifyRender()}Dt(zl,{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 Wl=zl;var Xl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._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}(cp);const Yl=Xl;var ql=[Kr,ti];function Ql(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 Zl(t,e){for(var o=0;o<t.length;o++)t[o].style.display=e[o]}function Kl(t){return V(t)?[t]:t}var Jl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._setElementClass=function(t){B(t,"k-sparkline")},e.prototype._initElement=function(e){t.prototype._initElement.call(this,e),this._initialWidth=Math.floor(kt(e).width)},e.prototype._resize=function(){var e=this.element,o=Ql(e.childNodes);this._initialWidth=Math.floor(kt(e).width),Zl(e.childNodes,o),t.prototype._resize.call(this)},e.prototype._modelOptions=function(){var t=this.options,e=this._surfaceWrap(),o=Ql(e.childNodes),r=document.createElement("span");r.innerHTML=" ",e.appendChild(r);var i=X({width:this._autoWidth,height:kt(e).height,transitions:t.transitions},t.chartArea,{inline:!0,align:!1});return kt(e,{width:i.width,height:i.height}),e.removeChild(r),Zl(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=J(e.chartArea.margin),r=t.charts,i=this._surfaceWrap(),n=0,s=0;s<r.length;s++){var a=r[s],p=(a.options.series||[])[0];if(p){if(p.type===Kr)return 150;if(p.type===ti)return 150;if(p.type===li)return kt(i).height;var l=a.categoryAxis;if(l){var c=l.categoriesCount()*(!a.options.isStacked&&ct(p.type,[oi,Ci])?a.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 Yl(this._plotArea,t)},e.normalizeOptions=function(t){var e=Kl(t);return(e=R(e)?{seriesDefaults:{data:e}}:X({},e)).series||(e.series=[{data:Kl(e.data)}]),X(e,{seriesDefaults:{type:e.type}}),(ct(e.series[0].type,ql)||ct(e.seriesDefaults.type,ql))&&(e=X({},{categoryAxis:{crosshair:{visible:!1}}},e)),e},e}(Wl);Dt(Jl,{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 $l=Jl;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(K(this.element,"opacity").opacity)},e.prototype.step=function(t){K(this.element,{opacity:String(ht(this._initialOpacity,0,t))})},e.prototype.abort=function(){t.prototype.abort.call(this),K(this.element,{display:"none",opacity:String(this._initialOpacity)})},e.prototype.cancel=function(){t.prototype.abort.call(this),K(this.element,{opacity:String(this._initialOpacity)})},e}(I.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=K(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,s=r.scroll,a=r.tooltip,p=wo(Mo(t)+Mo(e-t)/2),l=.4*o.width(),c=o.center().x-l,h=(o.center().x-c)/(n.max-n.min),u=p-n.min,d=this.chartService.intl.format(n.format,t,e),f=ot(n);this.clearHideTimeout(),this._visible||(K(i,{visibility:"hidden",display:"block"}),this._visible=!0),f&&(d=f({from:t,to:e})),a.innerHTML=d,K(a,{left:o.center().x-a.offsetWidth/2,top:o.y1});var v=K(a,["marginTop","borderTopWidth","height"]);K(s,{width:l,left:c+u*h,top:o.y1+v.marginTop+v.borderTopWidth+v.height/2}),K(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}(I.Class);Dt(rc,{format:"{0:d} - {1:d}",hideDelay:500});const ic=rc;var nc="_navigator",sc=nc,ac="_default",pc=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)),_t(r.hint.visible)||(r.hint.visible=r.visible),this.chartObserver=new ft(this,((o={})[Li]="_drag",o[ji]="_dragEnd",o[zi]="_zoom",o[Vi]="_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,s=i.max,a=o.select,p=a.from,l=a.to,c=a.mousewheel,h=(t=r,lc.prototype=t,new lc);0!==r.categoriesCount()&&(this.clean(),h.box=r.box,this.selection=new sp(e,h,{min:n,max:s,from:p||n,to:l||s,mousewheel:Lt(c,{zoom:"left"}),visible:o.visible},new ft(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),o.hint.visible&&(this.hint=new ic(e.element,e.chartService,{min:n,max:s,template:ot(o.hint),format:o.hint.format})))},e.prototype.setRange=function(){var t=this.chart._createPlotArea(!0).namedCategoryAxes[sc].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(Ot(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(),s=n.roundedRange(),a=n.pane.box.containsPoint(i),p=o._plotArea.categoryAxis,l=t.axisRanges[p.options.name],c=this.options.select;if(l&&!a&&r){e=c.from&&c.to?Mo(c.to)-Mo(c.from):Mo(r.options.to)-Mo(r.options.from);var h=wo(Mt(Mo(l.min),s.min,Mo(s.max)-e)),u=wo(Mt(Mo(h)+e,Mo(s.min)+e,s.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 Yo(X({baseUnit:"fit"},t.options.categoryAxis[0],{categories:[e.from,e.to]}),t.chartService).options;r.from=ko(i.min,-i.baseUnitStep,i.baseUnit),r.to=ko(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,s=i.liveDrag,a=this.mainAxis(),p=t.delta;if(r){var l=a.categoryIndex(r.options.from),c=a.categoryIndex(r.options.to),h=this.chart._eventCoordinates(t.originalEvent);t.originalEvent.preventDefault(),Math.abs(p)>1&&(p*=3),c-l>1?(r.zoom(p,h),this.readSelection()):(o.options.min=n.from,n.from=o.scaleRange(-t.delta*this.chart._mousewheelZoomRate(),h).min),s&&(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[sc]},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||ac})),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||ac}));var n=0===Vs(o,Pi).length,s=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]}}),a=e.categoryAxis;r.push(X({},s,{maxDateGroups:200},a,{name:sc,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),X({},s,a,{name:sc+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),X({},s,a,{name:sc+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),i.push(X({name:sc,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,s=e.seriesDefaults,a=0;a<i.length;a++)r.push(X({color:n[a%n.length],categoryField:e.dateField,visibleInLegend:!1,tooltip:{visible:!1}},s,i[a],{axis:sc,categoryAxis:sc,autoBind:e.autoBindElements}))},e}(I.Class);function lc(){}const cc=pc;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=kt(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){B(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=st([].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===sc?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}(Wl);Dt(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 dc=150,fc="arrowPointer",vc="barPointer",yc=.5,gc=Math.PI/180,mc="inside",xc="linear",bc="outside",_c="radialPointer",wc="radialRangePointer";function Cc(t,e){var o=t.getOrigin(),r=t.getSize(),i=J(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 kc=I.drawing.Group,Sc=I.drawing.Path,Ac=I.drawing.Text;function Pc(t,e){var o=t.box,r=t.children[0].box,i=e.border||{},n=e.background||"",s=Sc.fromRect(new I.geometry.Rect([o.x1,o.y1],[o.width(),o.height()]),{stroke:{}}),a=new Ac(t.text,new I.geometry.Point(r.x1,r.y1),{font:e.font,fill:{color:e.color}}),p=Cc(a.bbox().clone(),e.padding),l=Sc.fromRect(p,{stroke:{color:i.width?i.color:"",width:i.width,opacity:i.opacity,dashType:i.dashType,lineJoin:"round",lineCap:"round"},fill:{color:n}}),c=new kc;return c.append(s),c.append(l),c.append(a),c}function Oc(t,e,o){var r=_t(t.from)?t.from:x,i=_t(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 Mc(t,e){var o=J(e);return o.left=-o.left,o.top=-o.top,o.right=-o.right,o.bottom=-o.bottom,Cc(t,o)}var Tc=I.drawing.Path,Ec=I.drawing.Surface,Rc=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(R(t))for(var i=0;i<t.length;i++)V(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 I.geometry.Rect([0,0],[t.width,t.height]);this._initSurface(),this.gaugeArea=this._createGaugeArea(),this._createModel();var o=Mc(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(R(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 I.geometry.Rect([0,0],[e.width,e.height]);return this._gaugeAreaMargin=t.margin||5,o.width>0&&(r=Mc(r,o.width)),Tc.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();kt(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}(I.Class);Dt(Rc,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}});const Bc=Rc;var Lc=I.drawing.Path,jc=I.drawing.Group,Ic=I.geometry.Point;function Dc(t,e){var o,r,i=t.position,n=t.tickX,s=t.tickY;return t.vertical?(o=new Ic(n,i),r=new Ic(n+e.size,i)):(o=new Ic(i,s),r=new Ic(i,s+e.size)),new Lc({stroke:{color:e.color,width:e.width}}).moveTo(o).lineTo(r)}function zc(t,e,o,r){var i=e.length;if(r.visible)for(var n=o.mirror,s=o.lineBox,a=r.skip;a<i;a+=r.step)a%r.skipUnit!=0&&(o.tickX=n?s.x2:s.x2-r.size,o.tickY=n?s.y1-r.size:s.y1,o.position=e[a],t.append(Dc(o,r)))}var Vc=function(t){function e(e,o){var r=e||{};!_t(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 jc,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,s=e.ranges||[],a=new jc,p=s.length,l=e.rangeSize||e.minorTicks.size/2,c=0;c<p;c++){var h=Oc(s[c],o,r),u=t.getSlot(h.from,h.to),d=i?t.lineBox():u,f=i?u:t.lineBox();i?d.x1-=l*(n?-1:1):f.y2+=l*(n?-1:1),a.append(Lc.fromRect(new I.geometry.Rect([d.x1,f.y1],[d.x2-d.x1,f.y2-f.y1]),{fill:{color:h.color,opacity:h.opacity},stroke:{}}))}return a},e.prototype.renderLabels=function(){for(var t=this.labels,e=this.options,o=new jc,r=0;r<t.length;r++)o.append(Pc(t[r],e.labels));return o},e.prototype.renderLine=function(){var t=this.options.line,e=this.lineBox(),o=new jc;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 jc,e=this.options,o=e.majorTicks.visible?e.majorUnit:0,r={vertical:e.vertical,mirror:e.labels.mirror,lineBox:this.lineBox()};return zc(t,this.getMajorTickPositions(),r,e.majorTicks),zc(t,this.getMinorTickPositions(),r,X({},{skipUnit:o/e.minorUnit},e.minorTicks)),t},e}(tr);Dt(Vc,{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 Hc=Vc;var Nc=function(t){function e(e,o){t.call(this);var r=e.options,i=r.min,n=r.max,s=this.options=X({},this.options,o);s.fill=s.color,this.scale=e,_t(s.value)?s.value=Mt(s.value,i,n):s.value=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.value=function(t){var e=this.options,o=e.value;if(0===arguments.length)return o;var r=this.scale.options,i=r.min,n=r.max;e._oldValue=_t(e._oldValue)?e.value:i,e.value=Mt(t,i,n),this.elements&&this.repaint()},e}(I.Class);Dt(Nc,{color:n});const Fc=Nc;var Uc=function(t){function e(e,o){t.call(this,e,o),this.options=X({track:{visible:_t(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,s=n.mirror,a=n.vertical,p=i.lineBox(),l=r.track.size||r.size,c=r.size/2,h=J(r.margin),u=a?h[s?"left":"right"]:h[s?"bottom":"top"];u=s?-u:u,a?(o=new ie(p.x1+u,p.y1,p.x1+u,p.y2),s?o.x1-=l:o.x2+=l,r.shape!==vc&&(t=e=new ie(p.x2+u,p.y1-c,p.x2+u,p.y2+c))):(o=new ie(p.x1,p.y1-u,p.x2,p.y1-u),s?o.y2+=l:o.y1-=l,r.shape!==vc&&(t=e=new ie(p.x1-c,p.y1-u,p.x2+c,p.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:_t(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=J(e.margin);return i?n[r?"left":"right"]:n[r?"bottom":"top"]},e}(Fc);Dt(Uc,{shape:vc,track:{border:{width:1}},color:n,border:{width:1},opacity:1,margin:J(3),animation:{type:vc},visible:!0});const Gc=Uc;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 s=this.fromScale=new I.geometry.Point(o.x1,o.y1),a=this.toScale=new I.geometry.Point(r.x1,r.y1);0!==t.duration&&(t.duration=Math.max(s.distanceTo(a)/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(I.geometry.transform().translate(e,o))},e}(I.drawing.Animation);Dt(Wc,{easing:xc,duration:250}),I.drawing.AnimationFactory.current.register(fc,Wc);const Xc=Wc;var Yc=I.geometry.Point,qc=I.drawing.Path,Qc=function(t){function e(e,o){t.call(this,e,o),_t(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 Yc(0,0-o),new Yc(0-r*e,0),new Yc(0,0+o)]:[new Yc(0-o,0),new Yc(0,0+r*e),new Yc(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=fc;var i=new qc({stroke:o.stroke,fill:o.fill}).moveTo(r[0]).lineTo(r[1]).lineTo(r[2]).close(),n=t.getSlot(e.value);return i.transform(I.geometry.transform().translate(n.x1,n.y1)),this.elements=i,i},e}(Gc);const Zc=Qc;var Kc=function(t){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:T,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}(I.drawing.Animation);Dt(Kc,{easing:xc,speed:250}),I.drawing.AnimationFactory.current.register(vc,Kc);const Jc=Kc;var $c=I.drawing.Group,th=I.drawing.Path,eh=function(t){function e(e,o){t.call(this,e,o),_t(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,s=i===n?-1:1,a=o.size*s,p=e.getSlot(e.options.min),l=e.getSlot(t),c=n?E:T,h=n?T:E,u=this._margin()*s,d=new I.geometry.Point;d[c]=p[c+"1"],d[h]=p[h+"1"];var f=new I.geometry.Point;f[c]=l[c+"1"],f[h]=l[h+"1"],n?(d.translate(u,0),f.translate(u,0)):(d.translate(0,u),f.translate(0,u));var v=f.clone(),y=d.clone();return n?(v.translate(a,0),y.translate(a,0)):(v.translate(0,a),y.translate(0,a)),[d,f,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 Jc(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 $c,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=I.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 Hc(t.scale,this.contextService);this.pointers=[];var o=t.pointer;o=R(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),s=0;s<r.length;s++)n.wrap(r[s].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,s=0;s<o.length;s++)i.wrap(o[s].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 a=0;a<o.length;a++)o[a].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 s=0;s<e.length;s++)e[s].reflow(this.bbox)},e}(Bc);Dt(ih,{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}});const nh=ih;var sh=180,ah=I.drawing.Arc,ph=I.drawing.Path,lh=I.drawing.Group;function ch(t,e,o,r){var i=new lh,n=t.center,s=t.getRadiusX();if(r.visible)for(var a=0;a<e.length;a++){var p=t.pointAt(e[a]),l=new I.geometry.Point(n.x+s-r.size,n.y).rotate(e[a],n);i.append(new ph({stroke:{color:r.color,width:r.width}}).moveTo(p).lineTo(l))}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(!_t(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,s=e.endAngle,a=s-n;return(i?s-(t-o)/(r-o)*a:(t-o)/(r-o)*a+n)+sh},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,s=new lh,a=.05*r;_t(e.rangeDistance)?a=e.rangeDistance:e.rangeDistance=a;var p=e.labels,l=p.position===mc,c=_t(this.labelElements);l&&(r-=this.ticksSize(),this.hasRanges()&&!c&&(r-=n+a),o.setRadiusX(r).setRadiusY(r));for(var h=this.labels,u=h.length,d=J(p.padding),f=(d.left+d.right)/2,v=(d.top+d.bottom)/2,y=0;y<u;y++){var g=h[y],m=g.box.width()/2,x=g.box.height()/2,b=i[y],_=(b-sh)*gc,w=o.pointAt(b),C=w.x+Math.cos(_)*(m+f)*(l?1:-1),k=w.y+Math.sin(_)*(x+v)*(l?1:-1);g.reflow(new ie(C-m,k-x,C+m,k+x));var S=new I.geometry.Point(g.box.x1,g.box.y1),A=void 0;if(c){var P=(A=t.labelElements.children[y]).bbox().origin,O=A.transform()||I.geometry.transform();O.translate(S.x-P.x,S.y-P.y),A.transform(O)}else A=Pc(g,e.labels),s.append(A);t.bbox=I.geometry.Rect.union(t.bbox,A.bbox())}return s},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,s=0;s<t.length;s++)t[s]._geometry.setRadiusX(n).setRadiusY(n);this.bbox=I.geometry.Rect.union(this.bbox,this.ranges.bbox())}},e.prototype.renderRanges=function(){var t=this,e=this.rangeSegments(),o=e.length,r=new lh;if(o){var i=this.options,n=i.rangeSize,s=i.reverse,a=i.rangeDistance,p=this.getRangeRadius();this.radius(this.radius()-n-a);for(var l=0;l<o;l++){var c=e[l],h=t.slotAngle(c[s?"to":"from"]),u=t.slotAngle(c[s?"from":"to"]);u-h!=0&&r.append(t.createRange(h,u,p,c))}}return r},e.prototype.createRange=function(t,e,o,r){var i=this.options.rangeSize,n=new I.geometry.Arc(this.arc.center,{radiusX:o+i/2,radiusY:o+i/2,startAngle:t,endAngle:e});return new ah(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,s=t.rangePlaceholderColor;r.push(hh(i,n,s));for(var a=0;a<o;a++)for(var p=Oc(e[a],i,n),l=r.length,c=0;c<l;c++){var h=r[c];if(h.from<=p.from&&p.from<=h.to){r.push(hh(p.from,p.to,p.color,p.opacity)),h.from<=p.to&&p.to<=h.to&&r.push(hh(p.to,h.to,s,p.opacity)),h.to=p.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===bc?t.getRadiusX()-i-r-o:t.getRadiusX()-o},e.prototype.renderArc=function(t,e){var o=this.options;return this.arc=new I.geometry.Arc(t,{radiusX:e,radiusY:e,startAngle:o.startAngle+sh,endAngle:o.endAngle+sh})},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 lh;r.append(this.majorTicks);var i=e.majorTicks.size,n=e.minorTicks.size;if(this._tickDifference=i-n,e.labels.position===bc){var s=o.getRadiusX();o.setRadiusX(s-i+n).setRadiusY(s-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,s=i/e,a=t.startAngle,p=n/s;r&&(a+=n,p=-p),n>=360&&o.max%e==0&&(s-=1);for(var c=[],h=0;h<s;h++)c.push(Rt(a,l)),a+=p;return Rt(a)<=t.endAngle&&c.push(a),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===bc&&0!==r&&(i=this.arc.clone()).setRadiusX(n-r).setRadiusY(n-r);for(var s=0;s<t.length;s++){var a=i.pointAt(e[s]),p=t[s].segments,l=a.x-p[0].anchor().x,c=a.y-p[0].anchor().y;t[s].transform((new I.geometry.transform).translate(l,c))}},e}(tr);Dt(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 dh=uh;var fh=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(I.geometry.transform().rotate(o,e.center))},e}(I.drawing.Animation);Dt(fh,{easing:xc,duration:dc}),I.drawing.AnimationFactory.current.register(_c,fh);const vh=fh;var yh=I.drawing.Circle,gh=I.drawing.Group,mh=I.drawing.Path,xh=function(t){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(I.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=Mt(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=I.geometry.Rect.fromPoints(new I.geometry.Point(e.x-i,e.y-i),new I.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 I.geometry.Circle(this.center,this.capSize);return new yh(o,{fill:{color:e},stroke:{color:e}})},e}(Fc);Dt(xh,{cap:{size:.05},arrow:{width:16,height:14},animation:{type:_c,duration:dc}});const bh=xh;var _h=I.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=I.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 _h;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,s=this,a=this.scale.arc,p=this._initialPlotArea,c=Math.abs(this.getDiff(p,t)),h=Rt(c,l),u=Rt(-c,l),d=0,f=0;!(!(f++<100)||(d=n===r?d+1:0)>5||h!==i&&0<=(e=s.getPlotBox(h,t,a))&&e<=2||u!==i&&0<=(r=s.getPlotBox(u,t,a))&&r<=2||(i=e>0&&r>0?2*h:e<0&&r<0?2*u:Rt((h+u)/2||1,l),0<=(o=s.getPlotBox(i,t,a))&&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(),s=o.clone();s.setRadiusX(n+t).setRadiusY(n+t),r.arc=s,r.reflow(e),this.plotBbox=r.bbox;for(var a=0;a<i.length;a++)i[a].reflow(s),this.plotBbox=I.geometry.Rect.union(this.plotBbox,i[a].bbox);return this.getDiff(this.plotBbox,e)},e.prototype.getDiff=function(t,e){return Math.min(e.width()-t.width(),e.height()-t.height())},e.prototype.alignScale=function(t){var e=this.plotBbox.center(),o=t.center(),r=e.x-o.x,i=e.y-o.y,n=this.scale,s=this.pointers;n.arc.center.x-=r,n.arc.center.y-=i,n.reflow(t);for(var a=0;a<s.length;a++)s[a].reflow(n.arc),this.plotBbox=I.geometry.Rect.union(n.bbox,s[a].bbox)},e.prototype._createModel=function(){var t=this.options,e=t.pointer,o=this.scale=new dh(t.scale,this.contextService);this.pointers=[];for(var r=R(e)?e:[e],i=0;i<r.length;i++){var n=new bh(o,X({},r[i],{animation:{transitions:t.transitions}}));this.pointers.push(n)}},e}(Bc);Dt(wh,{transitions:!0,gaugeArea:{background:""}});const Ch=wh;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.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),s=this.createRange(i,n,this.getRangeRadius(),o);return this.ranges.append(s),s},e}(dh);Dt(kh,{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"});const Sh=kh;var Ah=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=Mt(i,dc,800);var n=e.elements.options.get("stroke.color"),s=e.currentColor();n!==s&&(this.startColor=new I.Color(n),this.color=new I.Color(s))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this,o=e.options,r=e.startColor,i=e.color,n=ht(o.oldAngle,o.newAngle,t);if(this.element.angle(n),i){var s=Rt(ht(r.r,i.r,t)),a=Rt(ht(r.g,i.g,t)),p=Rt(ht(r.b,i.b,t));this.element.stroke(new I.Color(s,a,p).toHex())}},e}(I.drawing.Animation);Dt(Ah,{easing:xc,duration:dc}),I.drawing.AnimationFactory.current.register(wc,Ah);const Ph=Ah;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.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 Ph(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,s=r.value,a=V(s)?s:e;if(i)for(var p=0;p<i.length;p++){var l=i[p],c=l.color,h=l.from;void 0===h&&(h=e);var u=l.to;if(void 0===u&&(u=o),h<=a&&a<=u)return c}return n},e.prototype.reflow=function(){this.render(),this.bbox=this.elements.bbox()},e}(Fc);Dt(Oh,{animation:{type:wc,duration:dc}});const Mh=Oh;var Th=function(t){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 Mh(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 s=i+t;i=Math.max(i,0),s>o.width&&(i-=s-o.width)}if(e<o.height){var a=this.scale.bbox,p=a.bottomRight().y,l=n+e;n=Math.max(n,a.origin.y),l>p&&(n-=l-p)}return{left:i,top:n}},e}(Ch);const Eh=Th;var Rh=function(t){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 Bh=Rh;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=_t(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}(I.Class);Dt(Lh,{quietZoneLength:10,addQuietZone:!0,addCheckSum:!0});var jh=Object.assign,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.initProperties=function(){t.prototype.initProperties.call(this),jh(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);Dt(Ih,{addCheckSum:!0});var Dh=Object.assign,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),Dh(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),Vh=function(t){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),Dh(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}(zh);Dt(Vh,{addCheckSum:!1});var Hh={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"]},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),X(this,Hh,{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}(Vh),Fh=Object.assign,Uh=function(t){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),Fh(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}(zh),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,Hh,{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}(Uh),Wh=/^\d+$/,Xh=Object.assign,Yh=function(t){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),qh=/^\d+$/,Qh=/^[a-z0-9]+$/i,Zh=Object.assign,Kh=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}(I.Class),Jh=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}(Kh),$h={};$h.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}(Jh),$h.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}(Jh),$h.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=su(t,e,4);return(e+4<=t.length||2===t.length)&&qh.test(o)},e.prototype.move=function(){this.encoding.addPattern(this.MOVE)},e.prototype.pushState=function(t){for(var e;(e=su(t.value,t.index,2))&&qh.test(e)&&2===e.length;)this.encoding.addPattern(parseInt(e,10)),t.index+=2},e.prototype.getValue=function(t){return t},e}(Kh),$h.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}(Kh),$h.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,s=t.value.replace(/\s/g,""),a=new RegExp("["+this.startAI+this.endAI+"]","g"),p=t.index,l={state:this.startState};for(n.addPattern(this.START);;){if(l.index=0,(e=(r=s.charAt(p)===i.startAI?2:0)>0?i.getBySeparator(s,p):i.getByLength(s,p)).ai.length)o=p+r+e.id.length+e.ai.length;else if((o=s.indexOf(i.startAI,p+1))<0){if(p+e.ai.max+e.id.length+r<s.length)throw new Error("Separators are required after variable length identifiers");o=s.length}if(l.value=s.substring(p,o).replace(a,""),i.validate(e,l.value),n.pushData(l,i.dependentStates),o>=s.length)break;p=o,l.state!==i.startState&&(n[i.startState].move(l),l.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&&!qh.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=su(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}(Kh);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 $h[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 su(t,e,o){return t.substring(e,e+o)}var au=Object.assign,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),au(this,{characterMap:["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221"],START:"21",STOP:"121",checkSumType:"",checkSums:du})},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),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),au(this,{name:"MSI Modulo10",checkSumType:"Modulo10"})},e}(pu),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),au(this,{name:"MSI Modulo11",checkSumType:"Modulo11"})},e}(pu),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),au(this,{name:"MSI Modulo10 Modulo10",checkSumType:"Modulo10Modulo10"})},e}(pu),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),au(this,{name:"MSI Modulo11 Modulo10",checkSumType:"Modulo11Modulo10"})},e}(pu),du={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))}},fu=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),fu(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:Ih,code39:Vh,code39extended:Nh,code93:Uh,code93extended:Gh,code128:iu,code128a:eu,code128b:ou,code128c:ru};function xu(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=lu,mu.msimod11=cu,mu.msimod1010=hu,mu.msimod1110=uu,mu.postnet=Yh,mu.ean8=gu,mu.ean13=vu;var bu=function(t){function e(e,o,r){void 0===r&&(r=Jt),t.call(this),this.options=X({},this.options,o),this.element=e,this.onError=r,this._initElement(),this._initSurface(),this._setOptions(o),o&&_t(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(){B(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 I.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=J(i.margin),s=this._getSize(),a=o.border||{},p=this.encoding,l=new ie(0,0,s.width,s.height).unpad(a.width).unpad(o.padding),c=l.height(),h=new I.drawing.Group;this.contentBox=l,h.append(this._getBackground(s)),i.visible&&(c-=I.drawing.util.measureText(r,{font:i.font}).height+n.top+n.bottom);try{t=p.encode(r,l.width(),c)}catch(t){return this.onError(t),h}return i.visible&&(e=r,o.checksum&&_t(p.checksum)&&(e+=" "+p.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=xu(this.element,this.options.renderAs),e=new I.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(!_t(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,s=new I.drawing.Group,a=0;a<t.length;a++){if(o=(r=Y(t[a])?t[a]:{width:t[a],y1:0,y2:this.barHeight}).width*e,a%2){var p=I.geometry.Rect.fromPoints(new I.geometry.Point(n,r.y1+i.y1),new I.geometry.Point(n+o,r.y2+i.y1)),l=I.drawing.Path.fromRect(p,{fill:{color:this.options.color},stroke:null});s.append(l)}n+=o}return s},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 I.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}(I.Class);Dt(bu,{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 _u=bu;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 ku=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 Au(t,e){var o=Number(t).toString(2);return o.length<e&&(o=new Array(e-o.length+1).join(0)+o),o}function Pu(t){return parseInt(t,2)}var Ou=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}(I.Class),Mu=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}(I.Class),Tu=function(t){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(vd(i,od,rd,id,e)),e=o[0].mode,i=i.substr(o[0].modeString.length);i.length>0;){var n=vd(i,nd,sd,ad,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+=ju[t[o].mode].getStringBitsLength(t[o].modeString.length);return Math.ceil(e/8)}(o),i=yd(r,e),n=function(t,e){for(var o="",r=0;r<t.length;r++)o+=ju[t[r].mode].encode(t[r].modeString,e);return o}(o,i);return new Mu(n,i)},e}(I.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(){ku(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+Au(t,this.getBitsCharacterCount(e))},e.prototype.encode=function(){},e.prototype.getStringBitsLength=function(){},e.prototype.getValue=function(){},e}(I.Class),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),ku(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+=Au(r[o],10);return i+Au(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),Bu=function(t){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),ku(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+=Au(45*this.getValue(r[o].charAt(0))+this.getValue(r[o].charAt(1)),11);return i+Au(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),ku(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+=Au(this.getValue(t.charAt(r)),8);return o},e.prototype.getStringBitsLength=function(t,e){return 4+this.getBitsCharacterCount(e)+8*t},e}(Eu),ju={};ju.numeric=new Ru,ju.alphanumeric=new Bu,ju.byte=new Lu;var Iu=function(t){function e(){t.call(this),this.initProperties(),this.mode=ju[this.encodingMode]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){ku(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=yd(this.getDataCodewordsCount(o),e),i=this.mode.getModeCountString(o.length/8,r)+o;return new Mu(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=Au(t,8);else{for(var i=8-e,n=0;n<o;n++)r=Au(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}(I.Class),Du=[{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}}],zu="0000",Vu="numeric",Hu="alphanumeric",Nu="byte",Fu={1:0},Uu={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],Yu={L:"01",M:"00",Q:"11",H:"10"},qu=["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}],Ku=/^\d+/,Ju="A-Z0-9 $%*+./:-",$u=new RegExp("^[A-Z $%*+./:-]+"),td=new RegExp("^["+Ju+"]+"),ed=new RegExp("^[^"+Ju+"]+"),od=8,rd=5,id=8,nd=17,sd=9,ad=16,pd=[[1,0],[1,25,0]];function ld(t,e,o,r){for(var i=0;i<t.length;i++)t[i][o][r]=e}function cd(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 hd(t,e){for(var o=[],r=t.length-2;r>=0;r--)o[r]=t[r]^e[r];return o}function ud(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]=Fu[Uu[o[r+i]]^Uu[(t[r]+e[i])%255]];return o}function dd(t,e){var o=[],r=t.length-1;do{o[r]=Uu[(t[r]+e)%255],r--}while(void 0!==t[r]);return o}function fd(t,e){var o,r,i=pd[e-1],n=new Array(e).concat(t),s=new Array(n.length-i.length).concat(i),a=t.length,p=[];for(r=0;r<a;r++)o=dd(s,Fu[n[n.length-1]]),s.splice(0,1),n=hd(o,n);for(r=n.length-1;r>=0;r--)p[e-1-r]=Au(n[r],8);return p}function vd(t,e,o,r,i){var n,s,a=Ku.exec(t),p=a?a[0]:"",l=$u.exec(t),c=l?l[0]:"",h=td.exec(t),u=h?h[0]:"";return p&&(p.length>=e||t.length===p.length||p.length>=o&&!td.test(t.charAt(p.length)))?(n=Vu,s=p):u&&(t.length===u.length||u.length>=r||i===Hu)?(n=Hu,s=p||c):(n=Nu,s=u?u+ed.exec(t.substring(u.length))[0]:ed.exec(t)[0]),{mode:n,modeString:s}}function yd(t,e){var o=0,r=Du.length-1,i=Math.floor(Du.length/2);do{t<Du[i][e].totalDataCodewords?r=i:o=i,i=o+Math.floor((r-o)/2)}while(r-o>1);return t<=Du[o][e].totalDataCodewords?i+1:r+1}function gd(t,e,o){var r=Pu(e),i=e.length-1,n=t<<i,s=Au(t,o-i),a=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 s+Au(a,i)}function md(t,e){return parseInt(t.charAt(e),10)}function xd(t,e){var o,r,i=t[0],n=0,s=e.length;for(o=0,r=8;o<=8;o++)6!==o&&ld(t,md(e,s-1-n++),o,r);for(o=8,r=7;r>=0;r--)6!==r&&ld(t,md(e,s-1-n++),o,r);for(n=0,r=i.length-1,o=8;r>=i.length-8;r--)ld(t,md(e,s-1-n++),o,r);for(ld(t,1,i.length-8,8),o=i.length-7,r=8;o<i.length;o++)ld(t,md(e,s-1-n++),o,r)}function bd(t,e){for(var o,r,i,n=t[0].length,s=n-11,a=n-11,p=0;p<e.length;p++)o=Math.floor(p/3),r=p%3,ld(t,i=md(e,e.length-p-1),0+o,s+r),ld(t,i,a+r,0+o)}function _d(t,e,o,r){for(var i,n=e.length+2,s=e.length+1,a=0;a<e.length;a++)for(var p=a;p<n-a;p++)ld(t,i=e[a],o+p,r+a),ld(t,i,o+a,r+p),ld(t,i,o+s-p,r+s-a),ld(t,i,o+s-a,r+s-p)}function wd(t,e,o,r){var i=o,n=r,s=t[0];do{ld(t,0,i,r),ld(t,0,o,n),i+=e[0],n+=e[1]}while(i>=0&&i<s.length)}function Cd(t,e,o,r,i){e[t][r]=(e[t][r]<<1^i)%128,e[t][r]===Qu&&(o[t]+=40)}function kd(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 Sd(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 Ad(t,e,o){var r=function(t){return t&&t.toLowerCase().indexOf("utf_8")>=0?new Iu:new Tu}(o),i=r.getEncodingResult(t,e),n=i.version,s=Du[n-1][e],a=function(t,e){for(var o,r,i,n,s,a=0,p=[],l=[],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 d=1;d<=r;d++)s=t.substring(a,a+8),o.push(s),n[r-d]=Pu(s),a+=8;p.push(o),l.push(fd(n,e.errorCodewordsPerBlock))}}return[p,l]}(function(t,e){for(var o=8*e,r=0,i=0,n=t;n.length<o&&r<4;)n+=zu.charAt(r++);for(n.length%8!=0&&(n+=new Array(9-n.length%8).join("0"));n.length<o;)n+=qu[i],i^=1;return n}(i.dataString,s.totalDataCodewords),s),p=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;_d(t,Wu,0,0),wd(t,[-1,-1],7,7),_d(t,Wu,e-7,0),wd(t,[1,-1],e-8,7),_d(t,Wu,0,e-7),wd(t,[-1,1],7,e-8)}(p),function(t,e){if(!(e<2)){var o,r,i=t[0],n=i.length,s=Math.floor(e/7),a=[6],p=0;for((o=Gu[e])?r=(n-13-o)/s:o=r=(n-13)/(s+1),a.push(a[p++]+o);a[p]+r<n;)a.push(a[p++]+r);for(var l=0;l<a.length;l++)for(var c=0;c<a.length;c++)void 0===i[a[l]][a[c]]&&_d(t,Xu,a[l]-2,a[c]-2)}}(p,n),function(t){for(var e=1,o=t[0].length,r=8;r<o-8;r++)ld(t,e,6,r),ld(t,e,r,6),e^=1}(p),n>=7&&bd(p,Au(0,18)),xd(p,Au(0,15)),function(t,e){for(var o,r,i,n=new Ou(t[0]),s=0;s<e.length;s++)for(o=e[s],r=0;o.length>0;){for(var a=0;a<o.length;a++)for(var p=0;p<8;p++)i=n.getNextCell(),cd(t,o[a][r].charAt(p),i.row,i.column);for(r++;o[0]&&r===o[0].length;)o.splice(0,1)}for(;i=n.getNextRemainderCell();)cd(t,0,i.row,i.column)}(p,a);var l=function(t){var e,o,r=[],i=[],n=[],s=[],a=[],p=t[0].length;for(o=0;o<t.length;o++)r[o]=0,n[o]=0,a[o]=[0,0],s[o]=[0,0],i[o]=[];for(var l=0;l<p;l++)for(var c=0;c<p;c++)for(var h=0;h<t.length;h++)e=t[h],n[h]+=parseInt(e[l][c],10),i[h][0]===e[l][c]&&l+1<p&&c-1>=0&&e[l+1][c]===i[h][0]&&e[l+1][c-1]===i[h][0]&&(r[h]+=3),Cd(h,s,r,0,e[l][c]),Cd(h,s,r,1,e[c][l]),kd(h,r,i,e[l][c],a,0),kd(h,r,i,e[c][l],a,1);var u,d=p*p,f=Number.MAX_VALUE;for(o=0;o<r.length;o++)r[o]+=Sd(n[o],d),r[o]<f&&(f=r[o],u=o);return u}(p),c=p[l];return n>=7&&bd([c],function(t){return gd(t,"1111100100101",18)}(n)),xd([c],function(t){var e,o="";if(0===Pu(t))return"101010000010010";e=gd(Pu(t),"10100110111",15);for(var r=0;r<e.length;r++)o+=e.charAt(r)^"101010000010010".charAt(r);return o}(Yu[e]+Au(l,3))),c}!function(){var t,e;for(e=1;e<255;e++)(t=2*Uu[e-1])>255&&(t^=285),Uu[e]=t,Fu[t]=e;t=2*Uu[e-1]^285,Uu[e]=t,Uu[-1]=0}(),function(){for(var t=2;t<=68;t++){var e=pd[t-1],o=[t,0];pd[t]=ud(e,o)}}();var Pd=Math.round,Od=[[0,1],[1,1],[1,2],[2,2],[2,1],[3,1],[3,0],[2,0],[2,-1],[1,-1],[1,0]],Md=[[0,1],[1,1],[1,0]],Td=function(t){function e(e,o,r){void 0===r&&(r=Jt),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(){B(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 I.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,s=this.options.border||{},a=this.options.padding||0,p=s.width||0;s.width=p;var l=new I.drawing.Group;try{n&&(o=Ad(n,this.options.errorCorrection,this.options.encoding),i=(r=this._getSize())-2*(p+a),t=this._calculateBaseUnit(i,o.length),e=p+a+(i-o.length*t)/2,l.append(this._renderBackground(r,s)),l.append(this._renderMatrix(o,t,e)),this._hasCustomLogo()?l.append(this._renderLogo(r,t)):this._isSwiss()&&l.append(this._renderSwissCode(r,t)))}catch(t){this.onError(t)}return l},e.prototype._renderLogo=function(t,e){var o,r=Pd(t/2),i=this._getLogoSize(7*e),n=this.options.overlay.imageUrl,s={x:r-i.width/2,y:r-i.height/2};return o=new I.geometry.Rect(new I.geometry.Point(s.x,s.y),new I.geometry.Size(i.width,i.height)),new I.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,s={},a=new I.drawing.Group;return s.x=s.y=Math.ceil(n-e-o/2),a.append(this._renderShape(s,Math.ceil(o+2*e),Md,"#fff")),s.x=s.y=n-o/2,a.append(this._renderShape(s,o,Md,this.options.color)),s.x=n+i-o/2,s.y=n+i+r-o/2,a.append(this._renderShape(s,r,Od,"#fff")),a},e.prototype._renderShape=function(t,e,o,r){var i=new I.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=xu(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 I.drawing.MultiPath({fill:{color:this.options.color},stroke:null}),i=0;i<t.length;i++)for(var n=o+i*e,s=0;s<t.length;){for(;0===t[i][s]&&s<t.length;)s++;if(s<t.length){for(var a=s;1===t[i][s];)s++;var p=Pd(o+a*e),l=Pd(n),c=Pd(o+s*e),h=Pd(n+e);r.moveTo(p,l).lineTo(p,h).lineTo(c,h).lineTo(c,l).close()}}return r},e.prototype._renderBackground=function(t,e){var o=new ie(0,0,t,t).unpad(e.width/2);return I.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=ku(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}(I.Class);Dt(Td,{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 Ed=Td,Rd=function(t){return void 0===t&&(t="ISO_8859_1"),function(e){try{Ad(e,"L",t)}catch(t){return{valid:!1,error:t}}return{valid:!0}}};var Bd={WGS84:{a:6378137,b:6356752.314245179,f:.0033528106647474805,e:.08181919084262149}};function Ld(t){return t*t}var jd=Math,Id=jd.abs,Dd=jd.atan,zd=jd.atan2,Vd=jd.cos,Hd=jd.sin,Nd=jd.tan,Fd=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=Rt(this.lng,t),this.lat=Rt(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||Bd.WGS84,s=Et(this.lat),a=Et(this.lng),p=t/n.a,l=jd.asin(Hd(s)*Vd(p)+Vd(s)*Hd(p)*Vd(i)),c=a+zd(Hd(i)*Hd(p)*Vd(s),Vd(p)-Hd(s)*Hd(l));return new e(wt(l),wt(c))},e.prototype.greatCircleTo=function(t,o){var r=e.create(r),i=o||Bd.WGS84;if(!r||this.clone().round(8).equals(r.clone().round(8)))return{distance:0,azimuthFrom:0,azimuthTo:0};for(var n,s,a,p,l,c,h,u,d=i.a,f=i.b,v=i.f,y=Et(r.lng-this.lng),g=Dd((1-v)*Nd(Et(this.lat))),m=Hd(g),x=Vd(g),b=Dd((1-v)*Nd(Et(r.lat))),_=Hd(b),w=Vd(b),C=y,k=this.DISTANCE_ITERATIONS,S=!1;!S&&k-- >0;){s=Hd(C),a=Vd(C),p=jd.sqrt(Ld(w*s)+Ld(x*_-m*w*a)),u=zd(p,c=m*_+x*w*a);var A=x*w*s/p;h=0,0!=(l=1-Ld(A))&&(h=c-2*m*_/l),n=C;var P=v/16*l*(4+v*(4-3*l));C=y+(1-P)*v*A*(u+P*p*(h+P*c*(2*Ld(h)-1))),S=Id(C-n)<=this.DISTANCE_CONVERGENCE}var O=l*(Ld(d)-Ld(f))/Ld(f),M=1+O/16384*(4096+O*(O*(320-175*O)-768)),T=O/1024*(256+O*(O*(74-47*O)-128)),E=T*p*(h+T/4*(c*(2*Ld(h)-1)-T/6*h*(4*Ld(p)-3)*(4*Ld(h)-3))),R=zd(w*s,x*_-m*w*a),B=zd(x*s,-m*w+x*_*a);return{distance:Rt(f*M*(u-E),this.DISTANCE_PRECISION),azimuthFrom:wt(R),azimuthTo:wt(B)}},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(_t(t))return t instanceof e?t.clone():1===arguments.length&&2===t.length?e.fromLatLng(t):new e(t,o)},e}(I.Class),Ud=Math,Gd=Ud.atan,Wd=Ud.exp,Xd=Ud.pow,Yd=Ud.sin,qd=Ud.log,Qd=Ud.tan,Zd=I.geometry.Point,Kd=Ud.PI,Jd=Kd/2,$d=Kd/4,tf=Kd/180,ef=Bd.WGS84,of=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,s=Mt(t.lat,-o.MAX_LAT,o.MAX_LAT),a=e?Mt(t.lng,-o.MAX_LNG,o.MAX_LNG):t.lng,p=Et(a-n)*i,l=o._projectLat(s);return new Zd(p,l)},e.prototype._projectLat=function(t){var e=this.options.datum,o=e.e,r=e.a,i=Et(t),n=Qd($d+i/2),s=o*Yd(i),a=Xd((1-s)/(1+s),o/2);return r*qd(n*a)},e.prototype.inverse=function(t,e){var o=this,r=o.options,i=r.datum.a,n=r.centralMeridian,s=t.x/(tf*i)+n,a=Mt(o._inverseY(t.y),-o.MAX_LAT,o.MAX_LAT);return e&&(s=Mt(s,-o.MAX_LNG,o.MAX_LNG)),new Fd(a,s)},e.prototype._inverseY=function(t){var e,o=this,r=o.options.datum,i=r.a,n=r.e,s=n/2,a=Wd(-t/i),p=Jd-2*Gd(a);for(e=0;e<=o.INVERSE_ITERATIONS;e++){var l=n*Yd(p),c=Xd((1-l)/(1+l),s),h=Jd-2*Gd(a*c)-p;if(p+=h,Ud.abs(h)<=o.INVERSE_CONVERGENCE)break}return wt(p)},e}(I.Class);Dt(of,{centralMeridian:0,datum:ef});var rf=function(t){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=Qd($d+o/2);return e*qd(r)},e.prototype._inverseY=function(t){var e=this.options.datum.a,o=Wd(-t/e);return wt(Jd-2*Gd(o))},e}(of),nf=function(t){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 Zd(t.lng,t.lat)},e.prototype.inverse=function(t){return new Fd(t.y,t.x)},e}(I.Class),sf=function(t){function e(){t.call(this);var e=this._proj=new rf,o=this.c=2*Kd*e.options.datum.a;this._tm=I.geometry.transform().translate(.5,.5).scale(1/o,-1/o),this._itm=I.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}(I.Class),af=(function(t){function e(){t.call(this),this._proj=new of}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)}}(I.Class),function(t){function e(){t.call(this),this._proj=new nf}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)}}(I.Class),Object.defineProperty),pf=(Object.assign,function(t){var e=document.createElement("div");return e.innerHTML=t,e.firstChild}),lf=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},cf=function(t,e){e.insertBefore(t,e.firstChild)},hf=function(t){return t.replace(/([a-z][A-Z])/g,(function(t){return t.charAt(0)+"-"+t.charAt(1).toLowerCase()}))},uf=function(t){return t&&String(t).endsWith("px")?t:String(t)+"px"},df=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/},s={tablet:/playbook|ipad|fire/i},a={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i};for(var p in i)if(i.hasOwnProperty(p)&&(r=t.match(i[p]))){if("windows"===p&&"plugins"in navigator)return!1;(o={}).device=p,o.tablet=ff(p,s,!1),o.browser=ff(t,a,"default"),o.name=ff(p,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 ff(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 vf=function(){var t={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"},e=yf();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},yf=function(){var t=df(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,s={};s.mobileOS=t,s.touch="ontouchstart"in window,s.pointers=!o&&!r&&!i&&!n&&window.PointerEvent,s.msPointers=!o&&window.MSPointerEvent,s.mouseAndTouchPresent=s.touch&&!(s.mobileOS.ios||s.mobileOS.android),s.eventCapture=document.documentElement.addEventListener;var a=document.createElement("table"),p=s.transitions=!1,l=s.transforms=!1,c="string";return["Moz","webkit","O","ms"].forEach((function(t){var e=typeof a.style[t+"Transition"]===c;if(e||typeof a.style[t+"Transform"]===c){var o=t.toLowerCase();return l={css:"ms"!==o?"-"+o+"-":"",prefix:t,event:"o"===o||"webkit"===o?o:""},e&&((p=l).event=p.event?p.event+"TransitionEnd":"transitionend"),!1}})),a=null,s.transforms=l,s.transitions=p,s.delayedClick=function(){if(s.touch){if(s.mobileOS.ios)return!0;if(s.mobileOS.android){if(!s.browser.chrome)return!0;if(s.browser.version<32)return!1;var t=document.querySelector("meta[name=viewport]");return!(t?t.getAttribute("content"):"").match(/user-scalable=no/i)}}return!1},s},gf=function(t,e){return t.bind(e)},mf=function(t,e,o,r,i){xf(t,e,o,r,i)},xf=function(t,e,o,r,i){(R(e)?e:(e||"").split(" ")).forEach((function(e){bf(t,e,o,r,i)}))},bf=function(t,e,o,r,i){var n,s=r;o&&F(o)&&!r?s=o:o&&"string"==typeof o&&F(s)&&(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;af(e,"currentTarget",{value:r}),af(e,"delegateTarget",{value:t}),s(e)}}),Boolean(i))},_f=function(t,e,o,r,i){wf(t,e,o,r,i)},wf=function(t,e,o,r){(R(e)?e:(e||"").split(" ")).forEach((function(e){Cf(t,e,o,r)}))},Cf=function(t,e,o,r){t.removeEventListener(e,o,Boolean(r))},kf=function(t){var e=vf(navigator.userAgent);return t.replace(/([^ ]+)/g,(function(t){return e[t]||t}))},Sf=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},Af=function(){return Number(new Date)},Pf=function(){},Of=function(t){var e=[];if(t)for(var o=hf(t).split("-"),r=0;r<o.length;r++)e.push("k-pos-"+o[r]);return e.join(" ")},Mf="string",Tf="function",Ef=function(){this._defaultPrevented=!0},Rf=function(){return!0===this._defaultPrevented},Bf=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,s,a=this,p=typeof t===Mf?[t]:t||[],l=typeof e===Tf;if(void 0===e){for(r in t)a.bind(r,t[r]);return a}var c=function(){var t=p[r];(s=l?e:e[t])&&(o&&(n=s,s=function(){a.unbind(t,s),n.apply(a,arguments)},s.original=n),(a._events[t]=a._events[t]||[]).push(s))};for(r=0,i=p.length;r<i;r++)c();return a},e.prototype.one=function(t,e){return this.bind(t,e,!0)},e.prototype.first=function(t,e){var o,r,i,n=this,s=typeof t===Mf?[t]:t,a=typeof e===Tf;for(o=0,r=s.length;o<r;o++){var p=s[o];(i=a?e:e[p])&&(n._events[p]=n._events[p]||[]).unshift(i)}return n},e.prototype.trigger=function(t,e){var o,r,i=this,n=i._events[t];if(n){var s=e||{};for(s.sender=i,s._defaultPrevented=!1,s.preventDefault=Ef,s.isDefaultPrevented=Rf,o=0,r=(n=n.slice()).length;o<r;o++)n[o].call(i,s);return!0===s._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}(I.Class),Lf=function(t){function e(e,o){t.call(this),this.element=e,this._initOptions(o),this.items=[],B(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;_t(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=[],lf(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?(lf(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}(Bf);Dt(Lf,{name:"Attribution",separator:" | "});var jf={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 If(t){var e='<button class="k-button k-button-square k-rounded-full k-button-flat k-button-flat-base k-icon-button '+jf[t].className+'" aria-label="move '+t+'"><span class="k-icon '+jf[t].iconClass+'" /></button>';return pf(e)}var Df=function(t){function e(e,o){t.call(this),this.element=e,this._initOptions(o);var r=If("up"),i=If("right"),n=If("down"),s=If("left");this.element.appendChild(r),this.element.appendChild(i),this.element.appendChild(n),this.element.appendChild(s),B(this.element,"k-widget k-navigator"),mf(this.element,"click",".k-button",gf(this._click,this));var a=this.element.parentNode.closest("[data-role]");this._keyroot=a||this.element,this._tabindex(this._keyroot),this._keydownHandler=gf(this._keydown,this),mf(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(){_f(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 $t.UP:this._pan(0,1),t.preventDefault();break;case $t.DOWN:this._pan(0,-1),t.preventDefault();break;case $t.RIGHT:this._pan(1,0),t.preventDefault();break;case $t.LEFT:this._pan(-1,0),t.preventDefault()}},e}(Bf);function zf(t,e){return pf('<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>')}Dt(Df,{name:"Navigator",panStep:1}),Sf(Df,["pan"]);var Vf="change",Hf=function(t){function e(e,o){t.call(this),this.element=e,this._initOptions(o);var r=zf("in","k-i-plus"),i=zf("out","k-i-minus");this.element.appendChild(r),this.element.appendChild(i),B(this.element,"k-widget k-zoom-control k-button-group k-group-horizontal"),this._clickHandler=this._click.bind(this),mf(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),mf(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&&_f(this.element,"click",this._clickHandler),this._keyroot&&_f(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(Vf,{delta:t*e})},e.prototype._click=function(t){var e=1;at(t.currentTarget,"k-zoom-out")&&(e=-1),this._change(e),t.preventDefault()},e.prototype._keydown=function(t){switch(t.which){case $t.NUMPAD_PLUS:case 187:case 61:this._change(1);break;case $t.NUMPAD_MINUS:case 189:case 173:this._change(-1)}},e}(Bf);Dt(Hf,{name:"ZoomControl",zoomStep:1}),Sf(Hf,[Vf]);var Nf=Math,Ff=Nf.max,Uf=Nf.min,Gf=function(t){function e(e,o){t.call(this);var r=Fd.create(e),i=Fd.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 Fd(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=Uf(e.lng,r),e.lat=Ff(e.lat,i),o.lng=Ff(o.lng,r),o.lat=Uf(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 Fd(t.lat,e.lng),se:this.se,sw:new Fd(e.lat,t.lng)}},e.prototype.toArray=function(){var t=this.nw,e=this.se;return[t,new Fd(t.lat,e.lng),e,new Fd(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}(I.Class),Wf="centerChange",Xf=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}(I.Class);Dt(Xf,{border:{width:1},opacity:1});var Yf=function(t){function e(e,o){t.call(this),this.support=yf(),this._initOptions(o),this.map=e;var r=document.createElement("div");B(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=!_t(t.minZoom)||e>=t.minZoom,r=!_t(t.maxZoom)||e<=t.maxZoom,i=Gf.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}(I.Class),qf=Math,Qf=I.geometry.Point;function Zf(t){return F(t)?t:et.compile(t)}function Kf(t){return new Qf(Rt(t.x),Rt(t.y))}function Jf(t){var e=t;return"string"!=typeof t&&(e+="px"),e}var $f=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,I.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}(Yf);Dt($f,{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 Qf(qf.floor(t.x/this.options.tileSize),qf.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:qf.ceil((qf.abs(r.x)+t.width)/this.options.tileSize),y:qf.ceil((qf.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 Qf(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(){lf(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:Kf(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=qf.pow(2,this._zoom);return{x:this.wrapValue(t.x,e),y:Mt(t.y,0,e-1)}},e.prototype.wrapValue=function(t,e){var o=qf.abs(t)%e;return t>=0?o:e-(0===o?e:o)},e}(I.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=Jf(this.options.offset.y),t.style.left=Jf(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 Zf(this.options.urlTemplate)(this.urlOptions())},e.prototype.errorUrl=function(){return Zf(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}(I.Class);Dt(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=Pt(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}(I.Class);Dt(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=vf(navigator.userAgent);i.addEventListener?(n.down.split(" ").forEach((function(t){i.addEventListener(t,gf(r._press,r),!0)})),n.up.split(" ").forEach((function(t){i.addEventListener(t,gf(r._release,r),!0)}))):(n.down.split(" ").forEach((function(t){i.attachEvent(t,gf(r._press,r))})),n.up.split(" ").forEach((function(t){i.attachEvent(t,gf(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}(Bf),sv=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}(Bf),av=function(t){function e(e){t.call(this);var o=this;o.x=new sv(rv({horizontal:!0},e)),o.y=new sv(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}(Bf),pv=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 s=t;(n<o.min&&t<0||n>o.max&&t>0)&&(s*=e.resistance),i.translateAxis(r,s),e.trigger(iv,e)}},e}(Bf),lv=function(t){function e(e){t.call(this);var o,r,i,n,s=this;rv(s,{elastic:!0},e),i=s.elastic?.5:0,n=s.movable,s.x=o=new pv({axis:"x",dimension:s.dimensions.x,resistance:i,movable:n}),s.y=r=new pv({axis:"y",dimension:s.dimensions.y,resistance:i,movable:n}),s.userEvents.bind(["press","move","end","gesturestart","gesturechange"],{gesturestart:function(t){s.gesture=t,s.offset=Ct(s.dimensions.container)},press:function(t){var e=t.event.target.closest("a");e&&e.matches("[data-navigate-on-press=true]")&&t.sender.cancel()},gesturechange:function(t){var e,i=s.gesture,a=i.center,p=t.center,l=t.distance/i.distance,c=s.dimensions.minScale,h=s.dimensions.maxScale;n.scale<=c&&l<1&&(l+=.8*(1-l)),n.scale*l>=h&&(l=h/n.scale);var u=n.x+s.offset.left,d=n.y+s.offset.top;e={x:(u-a.x)*l+p.x-u,y:(d-a.y)*l+p.y-d},n.scaleWith(l),o.dragMove(e.x),r.dragMove(e.y),s.dimensions.rescale(n.scale),s.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}(I.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=yf(),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}(Bf),uv=I.drawing.Group,dv=function(t){function e(e,o){t.call(this,e,o),this._pan=gf(this._pan,this),this.surface=I.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 fv(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 I.drawing.Circle&&this.map.options.renderPointsAsMarkers&&(e=_t(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=gf(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}(Yf);Dt(dv,{autoBind:!0,zIndex:100});var fv=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,s=e.coordinates;switch(e.type){case"LineString":i=this._loadPolygon(t,[s],o),this._setLineFill(i);break;case"MultiLineString":for(r=0;r<s.length;r++)i=n._loadPolygon(t,[s[r]],o),n._setLineFill(i);break;case"Polygon":this._loadPolygon(t,s,o);break;case"MultiPolygon":for(r=0;r<s.length;r++)n._loadPolygon(t,s[r],o);break;case"Point":this._loadPoint(t,s,o);break;case"MultiPoint":for(r=0;r<s.length;r++)n._loadPoint(t,s[r],o)}},e.prototype._setLineFill=function(t){var e=t.segments;(e.length<4||!e[0].anchor().equals(Ot(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?I.drawing.MultiPath:I.drawing.Path)(this.style),o=0;o<t.length;o++)for(var r=0;r<t[o].length;r++){var i=this.locator.locationToView(Fd.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=Fd.fromLngLat(e),i=this.locator.locationToView(r),n=new I.geometry.Circle(i,10),s=new I.drawing.Circle(n,this.style);return s.dataItem=o,s.location=r,this._loadShape(t,s)},e}(I.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,s=this._scaleType(),a=nt(this.options.locationField),p=0;p<i.length;p++){var l=i[p],c=a(l),h=r(l);if(_t(c)&&_t(h)){n||(n=new s([0,h],[o.minSize,o.maxSize])),c=Fd.create(c);var u=e.map.locationToView(c),d=n.map(h),f=e._createSymbol({center:u,size:d,style:o.style,dataItem:l,location:c});f.dataItem=l,f.location=c,f.value=h,e._drawSymbol(f)}}}},e.prototype._scaleType=function(){var t=this.options.scale;return F(t)?t:yv[t]},e.prototype._createSymbol=function(t){var e=this.options.symbol;return F(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}(dv);Dt(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}(I.Class)},gv={circle:function(t){var e=new I.geometry.Circle(t.center,t.size/2);return new I.drawing.Circle(e,t.style)},square:function(t){var e=new I.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",xv="mouseenter",bv="mouseleave",_v=Object.assign,wv="k-marker",Cv="."+wv,kv=function(t){function e(e,o){t.call(this,e,o),this._markerClickHandler=gf(this._markerClick,this),mf(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),_f(this.element,mv,this._markerClickHandler),this.clear()},e.prototype.add=function(t){if(!R(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 _v({},{layer:this,layerIndex:this._layerIndex(),marker:e,markerIndex:(this.items||[]).indexOf(e)},t)},e}(Yf);Dt(kv,{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=Fd.create(t).toArray(),this.layer&&this.layer.update(this),this):Fd.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=uf(this._anchor.left),this.element.style.top=uf(this._anchor.top)},e.prototype.hide=function(){this.element&&(this.element.remove(),this.element=null)},e.prototype.bindEvents=function(){this.element&&(this._mouseEnterHandler=gf(this._mouseEnter,this),mf(this.element,xv,Cv,this._mouseEnterHandler),this._mouseLeaveHandler=gf(this._mouseLeave,this),mf(this.element,bv,Cv,this._mouseLeaveHandler))},e.prototype.unbindEvents=function(){this.element&&(_f(this.element,xv,this._mouseEnterHandler),_f(this.element,bv,this._mouseLeaveHandler))},e.prototype.render=function(){if(!this.element){var t=this.options,e=this.layer,o=document.createElement("span");if(B(o,wv),this.options.template){var r=this._compileTemplate(this.options.template)(this.dataItem),i=pf(r);o.appendChild(i)}else B(o,"k-icon k-icon-xxl k-i-marker-"+hf(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}(I.Class),Av=Object.assign;function Pv(t){window.requestAnimationFrame(t)}var Ov=function(t){function e(){t.call(this);var e=this;e._tickProxy=gf(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,Pv(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()):Pv(t._tickProxy))},e}(I.Class),Mv=function(t){function e(e){t.call(this),Av(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,Af()-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=Af(),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}(Ov),Tv=Object.assign,Ev=function(t){t.preventDefault()},Rv=800,Bv=0,Lv="press",jv="hold",Iv="select",Dv="start",zv="move",Vv="end",Hv="cancel",Nv="tap",Fv="doubleTap",Uv="release",Gv="gesturechange",Wv="gestureend",Xv="gesturetap",Yv={api:0,touch:0,mouse:9,pointer:9};function qv(t){var e,o,r,i=yf(),n=[],s=t.originalEvent||t,a=t.currentTarget,p=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=s?s.changedTouches:[]).length;p<e;p++)r=o[p],n.push({location:r,event:t,target:r.target,currentTarget:a,id:r.identifier,type:"touch"});else i.pointers||i.msPointers?n.push({location:s,event:t,target:t.target,currentTarget:a,id:s.pointerId,type:"pointer"}):n.push({id:1,event:t,target:t.target,currentTarget:a,location:t,type:"mouse"});return n}var Qv=function(t){function e(e,o){t.call(this);var r=this;r.support=yf(),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=Af()}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=Af(),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}(I.Class),Zv=function(t){function e(e,o,r){t.call(this),Tv(this,{x:new Qv("X",r.location),y:new Qv("Y",r.location),type:r.type,useClickAsTap:e.useClickAsTap,threshold:e.threshold||Yv[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(gf(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(Nv,t):e._trigger(Fv,t),e.userEvents._clicks=0}),300))},e.prototype._hold=function(){this._trigger(jv,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(Jv.current&&Jv.current!==e.userEvents)return e.dispose();e._start(t)}e._finished||e._trigger(zv,t)}},e.prototype.end=function(t){this.endTime=Af(),this._finished||(this._finished=!0,this._trigger(Uv,t),this._moved?this._trigger(Vv,t):this.useClickAsTap||(this.supportDoubleTap?this._tap(t):this._trigger(Nv,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=Af(),this._moved=!0,this._trigger(Dv,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}(I.Class);function Kv(t){for(var e=vf(navigator.userAgent).up.split(" "),o=0,r=e.length;o<r;o++)t(e[o])}var Jv=function(t){function e(e,o){t.call(this);var r,i=this,n=yf();this.support=n,o=o||{},this.options=o,r=i.filter=o.filter,i.threshold=o.threshold||Bv,i.minHold=o.minHold||Rv,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 s=!n.touch||n.mouseAndTouchPresent;if(Tv(i,{element:e,surface:o.global&&s?e.ownerDocument.documentElement:o.surface||e,stopPropagation:o.stopPropagation,pressed:!1}),this._surfaceMoveHandler=gf(this._move,this),mf(i.surface,kf("move"),this._surfaceMoveHandler),this._surfaceEndHandler=gf(this._end,this),mf(i.surface,kf("up cancel"),this._surfaceEndHandler),this._elementStartHandler=gf(this._start,this),mf(e,kf("down"),r,this._elementStartHandler),i.useClickAsTap&&(this._elementClickHandler=gf(this._click,this),mf(e,kf("click"),r,this._elementClickHandler)),n.pointers||n.msPointers)if(n.browser.version<11){var a="pinch-zoom double-tap-zoom";e.style["-ms-touch-action"]=o.touchAction&&"none"!==o.touchAction?a+" "+o.touchAction:a}else e.style["touch-action"]=o.touchAction||"none";if(o.preventDragEvent&&(this._elementDragStartHandler=Ev,mf(e,kf("dragstart"),this._elementDragStartHandler)),this._elementSelectHandler=gf(this._select,this),mf(e,kf("mousedown"),r,this._elementSelectHandler),i.captureUpIfMoved&&n.eventCapture){var p=i.surface,l=gf(i.preventIfMoving,i);Kv((function(t){p.addEventListener(t,l,!0)}))}i.bind([Lv,jv,Nv,Fv,Dv,zv,Vv,Uv,Hv,"gesturestart",Gv,Wv,Xv,Iv],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;Kv((function(e){r.removeEventListener(e,t.preventIfMoving)}))}_f(t.surface,kf("move"),this._surfaceMoveHandler),_f(t.surface,kf("up cancel"),this._surfaceEndHandler),_f(o,kf("down"),this._elementStartHandler),t.useClickAsTap&&_f(o,kf("click"),this._elementClickHandler),e.preventDragEvent&&_f(o,kf("dragstart"),this._elementDragStartHandler),_f(o,kf("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(Hv)},e.prototype.notify=function(t,e){var o,r,i,n,s,a,p,l,c=this.touches,h=t;if(this._isMultiTouch()){switch(h){case zv:h=Gv;break;case Vv:h=Wv;break;case Nv:h=Xv}Tv(e,{touches:c},(o=c[0],r=c[1],i=o.x.location,n=o.y.location,p=i-(s=r.x.location),l=n-(a=r.y.location),{center:{x:(i+s)/2,y:(n+a)/2},distance:Math.sqrt(p*p+l*l)}))}return this.trigger(h,Tv(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 st(this.touches,(function(t){return t.isMoved()})).length},e.prototype._select=function(t){this.allowSelection&&!this.trigger(Iv,{event:t})||t.preventDefault()},e.prototype._start=function(t){var o,r,i=this,n=0,s=i.filter,a=qv(t),p=a.length,l=t.which;if(!(l&&l>1||i._maxTouchesReached()))for(e.current=null,i.currentTarget=t.currentTarget,i.stopPropagation&&t.stopPropagation();n<p&&!i._maxTouchesReached();n++)r=a[n],(o=s?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:Af(),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,s={},a=qv(e),p=this.touches;for(o=0;o<p.length;o++)s[(r=p[o]).id]=r;for(o=0;o<a.length;o++)(n=s[(i=a[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:Pf,preventDefault:Pf})},e.defaultThreshold=function(t){Bv=t},e.minHold=function(t){Rv=t},e}(Bf),$v=Object.assign,ty=Math.abs,ey="change",oy="scroll",ry=function(t){function e(e){t.call(this,e);var o=this;$v(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}(Ov),iy=function(t){function e(e){t.call(this);var o=this;$v(o,e,{transition:new Mv({axis:e.axis,movable:e.movable,onEnd:function(){o._end()}})}),o.tapCapture.bind("press",(function(){o.cancel()})),o.userEvents.bind("end",gf(o.start,o)),o.userEvents.bind("gestureend",gf(o.start,o)),o.userEvents.bind("tap",gf(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:Mv.easeOutExpo})},e}(Ov),ny=function(t){function e(e){t.call(this,e),$v(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&&F(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}(Ov),sy=function(t){function e(e){t.call(this);var o=this,r="x"===e.axis,i=pf('<div class="km-touch-scrollbar km-'+(r?"horizontal":"vertical")+'-scrollbar" />');$v(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,s=Math.round(-i[e]*n),a=Math.round(r*n);this.element.style.display=n>=1?"none":"",s+a>r?a=r-s:s<0&&(a+=s,s=0),t.elementSize!==a&&(t.element.style[t.size]=a+"px",t.elementSize=a),t.movable.moveAxis(e,s)},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}(I.Class),ay=function(t){function e(e,o){t.call(this);var r=this;this.element=e,this._initOptions(o);var i,n,s=(i=navigator.userAgent,(n=df(i)).ios||n.android);r._native=r.options.useNative&&s;var a=pf('<div class="km-scroll-header"/>');if(r._native)return B(e,"km-native-scroller"),cf(a,e),void $v(r,{scrollElement:e,fixedContainer:e.children[0]});e.style.overflow="hidden",B(e,"km-scroll-wrapper"),function(t,e){for(t.appendChild(e);t.firstChild!==e;)e.appendChild(t.firstChild)}(e,pf('<div class="km-scroll-container"/>')),cf(a,e);var p=e.children[1],l=new nv(e),c=new hv(p),h=new av({element:p,container:e,forcedEnabled:r.options.zoom}),u=this.options.avoidScrolling,d=new Jv(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),s=2*o>=e;!n&&!u(t)&&r.enabled&&(h.x.enabled&&i||h.y.enabled&&s)?d.capture():d.cancel()}}),f=new lv({movable:c,dimensions:h,userEvents:d,elastic:r.options.elastic}),v=new ry({movable:c,dimensions:h,userEvents:d,tapCapture:l}),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),mf(e,"wheel",this._wheelScrollHandler)),$v(r,{movable:c,dimensions:h,zoomSnapBack:v,animatedScroller:y,userEvents:d,pane:f,tapCapture:l,pulled:!1,enabled:!0,scrollElement:p,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;_f(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],s=new sy({axis:t,movable:o,dimension:r,container:e.element,alwaysVisible:e.options.visibleScrollHints});r.bind(ey,(function(){s.refresh()})),n.bind(ey,(function(){s.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(){s.hide(),e.trigger("scrollEnd",{axis:t,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft})}})},e}(Bf);Dt(ay,{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"}}),Sf(ay,["pull",oy,"resize"]);var py=function(t,e){void 0===e&&(e={}),this.sender=e.sender||t,this.widget=t,this.rtl=Boolean(e.rtl)};py.prototype.notify=function(t,e){this.widget&&this.widget.trigger(t,e)};const ly=py;var cy=Math,hy=cy.min,uy=cy.pow,dy=I.geometry.Point,fy="marker",vy="location",yy="wheel",gy={bubble:vv,shape:dv,tile:$f};gy[fy]=kv;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(),R(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();_f(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=yf(),this.context=r,this.initObserver(r),this.initServices(r),this._notifyObserver("init"),this._initOptions(e),this._setEvents(e),this.crs=new sf,this._initElement(t),this._viewOrigin=this._getOrigin(),this._tooltip=this._createTooltip(),this._initScroller(),this._initMarkers(),this._initControls(),this._initLayers(),this._reset();var i=(0,I.throttle)(this._mousewheel.bind(this),50);this._mousewheelHandler=function(t){t.preventDefault(),i(t)},mf(this.element,yy,this._mousewheelHandler)},e.prototype._initOptions=function(t){this.options=X({},this.options,t)},e.prototype._initElement=function(t){this.element=t,B(t,"k-map"),t.style.position="relative",t.setAttribute("data-role","map"),lf(t);var e=pf("<div />");this.element.appendChild(e)},e.prototype.initServices=function(t){void 0===t&&(t={}),this.widgetService=new ly(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(_t(t)){var r=cy.round(Mt(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=Fd.create(t),r=Fd.create(this.options.center);o.equals(r)||(this.options.center=o.toArray(),this.widgetService.notify(Wf,{center:this.options.center}),this._reset()),e=this}else e=Fd.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(),lf(e),this._init(e,t,{},this.context),this._reset()},e.prototype.locationToLayer=function(t,e){var o=!this.options.wraparound,r=Fd.create(t);return this.crs.toPoint(r,this._layerSize(e),o)},e.prototype.layerToLocation=function(t,e){var o=!this.options.wraparound,r=dy.create(t);return this.crs.toLocation(r,this._layerSize(e),o)},e.prototype.locationToView=function(t){var e=Fd.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=dy.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 I.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=Fd.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(Wf,{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=Gf.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 Gf(e.nw,o);this.center(r.center());var i,n=this.element.clientWidth,s=this.element.clientHeight;for(i=this.options.maxZoom;i>=this.options.minZoom;i--){var a=this.locationToLayer(r.nw,i),p=this.locationToLayer(r.se,i),l=cy.abs(p.x-a.x),c=cy.abs(p.y-a.y);if(l<=n&&c<=s)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 Gf(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="."+Of(o).replace(" ","."),i=this.element.querySelector(".k-map-controls"+r)||[];if(0===i.length){var n=document.createElement("div");B(n,"k-map-controls "+Of(o)),i=n,this.element.appendChild(i)}var s=document.createElement("div");return i.appendChild(s),s},e.prototype._createAttribution=function(t){var e=this._createControlElement(t,"bottomRight");this.attribution=new Lf(e,t)},e.prototype._createNavigator=function(t){var e=this._createControlElement(t,"topLeft"),o=this.navigator=new Df(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,s=this.element.clientHeight;o=Mt(o,i.x.min,i.x.max-n),r=Mt(r,i.y.min,i.y.max-s),this.scroller.one("scroll",gf(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 Hf(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 ay(this.element.children[0],{friction:t,velocityMultiplier:5,zoom:e,mousewheelScrolling:!1,supportDoubleTap:!0});o.bind("scroll",gf(this._scroll,this)),o.bind("scrollEnd",gf(this._scrollEnd,this)),o.userEvents.bind("gesturestart",gf(this._scaleStart,this)),o.userEvents.bind("gestureend",gf(this._scale,this)),o.userEvents.bind("doubleTap",gf(this._doubleTap,this)),o.userEvents.bind("tap",gf(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===fy?this.options.markerDefaults:o,t),i=new(0,gy[e])(this,r);return e===fy&&(this.markers=i),i},e.prototype._createTooltip=function(){return new Xf(this.widgetService,this.options.tooltip)},e.prototype._initMarkers=function(){(this.options.layers||[]).filter((function(t){return t&&t.type===fy})).length>0||(this.markers=new kv(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 I.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=Af(),this.trigger("panEnd",{originalEvent:t,origin:this._getOrigin(),center:this.center()}))},e.prototype._panComplete=function(){return Af()-(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 I.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 s=this.zoom();t.dimensions.forcedMinScale=uy(2,this.options.minZoom-s),t.dimensions.maxScale=uy(2,this.options.maxZoom-s);var a={min:-n.x,max:r-n.x},p={min:-n.y,max:r-n.y};if(this.options.wraparound&&(a.max=20*r,a.min=-a.max),!1===this.options.pannable){var l=this.viewSize();a.min=p.min=0,a.max=l.width,p.max=l.height}e.makeVirtual(),o.makeVirtual(),e.virtualSize(a.min,a.max),o.virtualSize(p.min,p.max),this._virtualSize={x:a,y:p}},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=Mt(r+e,o.minZoom,o.maxZoom);if(!1!==o.zoomable&&i!==r&&!this.trigger("zoomStart",{originalEvent:t})){var n=this.eventOffset(t),s=this.viewToLocation(n),a=this.locationToLayer(s,i).translate(-n.x,-n.y);this._zoomAround(a,i),this.trigger("zoomEnd",{originalEvent:t})}},e.prototype._toDocumentCoordinates=function(t){var e=Ct(this.element);return{left:Rt(t.x+e.left),top:Rt(t.y+e.top)}},e}(Bf);Dt(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}),Sf(my,["beforeReset","click","markerActivate","markerClick","markerCreated","markerMouseEnter","markerMouseLeave","pan","panEnd","reset","shapeClick","shapeCreated","shapeFeatureCreated","shapeMouseEnter","shapeMouseLeave","zoomEnd","zoomStart"]);const xy=my;var by=1.5,_y=.4,wy="#000",Cy="Arial, Helvetica, sans-serif",ky="11px "+Cy,Sy="12px "+Cy,Ay="16px "+Cy,Py="transparent",Oy="#fff",My=function(){return{icon:{border:{width:1}},label:{font:Sy,padding:3},line:{length:10,width:2},visible:!0}},Ty=function(){return{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:Oy,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:by,spacing:_y,target:{color:"#ff0000"}}},Ry=function(){return{gap:.5,line:{color:wy,width:1},spacing:_y}},By=function(t){return{visible:!0,labels:{font:ky},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:by,spacing:_y},boxPlot:Ty(),bubble:{border:{width:0},labels:{background:Py},opacity:.6},bullet:Ey(),candlestick:{border:{_brightness:.8,width:1},downColor:Oy,gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:wy,width:1},spacing:.3},column:{gap:by,spacing:_y},heatmap:{labels:{color:"",background:Py,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:Ry(),line:{width:2},notes:My(),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:by,spacing:_y},rangeColumn:{gap:by,spacing:_y},scatterLine:{width:1},verticalArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalBoxPlot:Ty(),verticalBullet:Ey(),verticalLine:{width:2},waterfall:Ry()}},Ly=function(t){return void 0===t&&(t={}),{axisDefaults:{labels:{font:Sy},notes:My(),title:{font:Ay,margin:5}},categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:By(t),title:{font:Ay},subtitle:{font:Sy},legend:{labels:{font:Sy}}}}},6201:(t,e,o)=>{o.r(e),o.d(e,{Popup:()=>at,PopupPropsContext:()=>st,PopupWithoutContext:()=>it});var r=o(3899),i=o(994),n=o(189),s=function(t){t.style.transitionDuration="",Array.from(t.classList).forEach((function(e){e.startsWith("k-slide-")&&t.classList.remove(e)}))},a="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),p=o(4006),l=o(7827),c=o(8259),h=o(8047);const u="bottom",d="center",f="middle",v="left",y="right",g="top",m="fit",x="flip",b="none";var _,w,C,k=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,s=t.elementAlignPoint,a=0,p=2*t.margin;if(s!==n&&s!==d&&s!==f&&n!==d&&n!==f){var l=n===g||n===v;e<0&&l?e+(a=o+r+p)+o>i&&(a=0):e>=0&&!l&&(e+o>i&&(a+=-(r+o+p)),e+a<0&&(a=0))}return a},A=(_=function(t){if(!P())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=_.apply(void 0,t),C=!0),w}),P=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)};const O={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:A,canUseDOM:P};function M(t){return t.ownerDocument||t.document||t}const T=function(t){return M(t).defaultView},E=function(t){return M(t).documentElement};var R=0;function B(){if(!R&&"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),R=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return R}function L(t){var e=T(t),o=E(t),r={height:e.innerHeight,width:e.innerWidth};return o.scrollHeight-o.clientHeight>0&&(r.width-=B()),r}function j(t){var e=E(t),o=T(t);return{x:o.pageXOffset||e.scrollLeft||0,y:o.pageYOffset||e.scrollTop||0}}const I=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 D(t){return t===(t.ownerDocument||{}).body?j(t):{x:t.scrollLeft,y:t.scrollTop}}const z=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||E(t)};function V(t,e){for(var o=[],r=t.parentNode;r&&(o.push(r),r!==e);)r=r.parentNode;return o}function H(t){for(var e=[],o=t.parentNode.firstElementChild;o;)o!==t&&e.push(o),o=o.nextElementSibling;return e}var N=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],F=function(){return O.canUseDOM()?window:null},U=/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||!O.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 O.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},Y={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 s=o.horizontal,a=o.vertical,p=i.horizontal,l=i.vertical,c=n.horizontal||0,h=n.vertical||0,v=e.top,g=e.left;return a===u&&(v+=e.height),a!==d&&a!==f||(v+=Math.round(e.height/2)),l===u&&(v-=r.height,h*=-1),l!==d&&l!==f||(v-=Math.round(r.height/2),h*=-1),s===y&&(g+=e.width),s!==d&&s!==f||(g+=Math.round(e.width/2)),p===y&&(g-=r.width,c*=-1),p!==d&&p!==f||(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=F();if(!e||!t)return[];var o=e.getComputedStyle(t);return N.map((function(t){return{key:t,value:o[t]}}))},getWindow:F,hasOffsetParent:function(t){return!!t&&Boolean(t.offsetParent)},offset:function(t){return t?I(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 s=I(t);return t.style.left=r,t.style.top=i,t.offsetHeight,t.style.transition=n,s},position:function(t,e,o){return t&&e?function(t,e,o){void 0===o&&(o=1);var r=e?z(e):null,i=function(t,e){var o=T(t),r=o.getComputedStyle(t),i=I(t),n=e||z(t),s=t.ownerDocument,a=n!==s.body&&n!==s.documentElement,p={top:0,left:0};if("fixed"!==r.position&&a){var l=o.getComputedStyle(n);(p=I(n)).top+=parseInt(l.borderTopWidth,10),p.left+=parseInt(l.borderLeftWidth,10)}return{top:i.top-p.top,left:i.left-p.left,height:i.height,width:i.width}}(t,r),n=i.top,s=i.left,a=i.height,p=i.width,l=function(t,e){return t?D(t):function(t){var e=z(t);return e?D(e):{x:0,y:0}}(e)}(r,t),c=l.x,h=l.y,u=t.ownerDocument,d=r===u.body||r===u.documentElement?1:o;return{top:n+h*d,left:s+c*d,height:a,width:p}}(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,s=t.viewPort,a=t.margin;void 0===a&&(a={});var p=r.top,l=r.left,c=r.height,h=r.width,u=s.height,d=s.width,f=a.horizontal||0,v=a.vertical||0,y=0,g=0,b=n.vertical===m,_=n.horizontal===m,w=n.vertical===x,C=n.horizontal===x;b&&(g+=k(p,c,u)),_&&(y+=k(l,h,d)),w&&(g+=S({margin:v,offset:p,size:c,anchorSize:e.height,viewPortSize:u,anchorAlignPoint:o.vertical,elementAlignPoint:i.vertical})),C&&(y+=S({margin:f,offset:l,size:h,anchorSize:e.width,viewPortSize:d,anchorAlignPoint:o.horizontal,elementAlignPoint:i.horizontal}));var A=w&&0!==g,P=C&&0!==y,O=b&&0!==g,M=_&&0!==y;return{flipped:P||A,fitted:O||M,flip:{horizontal:P,vertical:A},fit:{horizontal:M,vertical:O},offset:{left:y,top:g}}},scrollPosition:j,scrollableParents:function(t){var e=[];if(!O.canUseDOM())return e;for(var o=t.parentElement;o;)(U.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?I(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||!O.canUseDOM())return null;var o=function(t,e){for(var o,r,i=V(t),n=e;n&&(o=H(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(V(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 q=Y;const Q=function(t){var e=t.anchor,o=t.element,r=t.anchorAlign,i=t.elementAlign,n=t.margin,s=t.offset,a=t.positionMode,p=t.scale||1,l="fixed"!==a&&q.hasOffsetParent(o)?function(t,e,o,r){var i=O.eitherRect(q.position(t,e,r),o);return O.scaleRect(i,r)}(e,o,s,p):function(t,e,o,r){var i=function(t,e){return t?{x:0,y:0}:q.scrollPosition(e)}(t,e),n=O.eitherRect(q.offset(t),o),s=2*r,a=q.stackingElementScroll(e);1!==r&&a&&(a.x/=s,a.y/=s);var p=q.stackingElementOffset(e);return 1!==r&&p&&(p.left/=s,p.top/=s),q.removeScroll(q.addScroll(O.removeStackingOffset(O.scaleRect(n,r),p),a),i)}(e,o,s,p),c=O.scaleRect(q.offset(o),p);return q.align({anchorAlign:r,anchorRect:l,elementAlign:i,elementRect:c,margin:n})};var Z,K={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1690379951,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"},J=(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)}),$=function(){return $=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},$.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,s=e.offset,a=e.anchor,p=e.margin,l=e.scale,c=e.positionMode,h=t.style,u=h.width,d=h.height;t.style.width=t.offsetWidth+"px",t.style.height=t.offsetHeight+"px";var f=function(t){var e=t.anchor,o=t.currentLocation,r=t.element,i=t.anchorAlign,n=t.elementAlign,s=t.collisions,a=t.margin,p=t.scale||1,l=q.offsetAtPoint(r,o),c=O.scaleRect(l,p),h=O.scaleRect(q.offset(e),p),u=O.eitherRect(h,o),d=t.viewPort||q.windowViewPort(r);d.width=d.width/p,d.height=d.height/p;var f=q.restrictToView({anchorAlign:i,anchorRect:u,collisions:s,elementAlign:n,elementRect:c,margin:a,viewPort:d}),v=q.addOffset(o,f.offset);return{flip:f.flip,flipped:f.flipped,offset:v}}({anchor:a,anchorAlign:r,element:t,elementAlign:i,collisions:n,currentLocation:Q({anchor:a,anchorAlign:r,element:t,elementAlign:i,offset:s,margin:p,positionMode:c,scale:l}),margin:o.props.margin});if(t.style.top=f.offset.top+"px",t.style.left=f.offset.left+"px",t.style.width=u,t.style.height=d,o._collisions={fit:f.fit,fitted:f.fitted,flip:f.flip,flipped:f.flipped},o.props.onPosition){var v={target:o,flipped:f.flipped,fitted:f.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,p=n.horizontal,l=n.vertical;i="left"===p&&"center"===l?"right":"right"===p&&"center"===l?"left":"top"===l?"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,p=n+"-active",l=function(e){e.target===t&&(t.removeEventListener("transitionend",l),s(t),t.style.display="exit"===r?"none":"",i())};t.addEventListener("transitionend",l);var c=t.ownerDocument;if(c){var h=c.defaultView;if(h){var u=function(){s(t),t.classList.add(n),h.requestAnimationFrame((function(){t.style.transitionDuration=o+"ms",t.classList.add(p)}))};a?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,p.s)(K),o.reposition=function(t,e,o){var r,i,n,s;void 0===o&&(o={});var a=0;o=o||{};var p=function(){a=!1===o.leading?0:(new Date).getTime(),r=void 0,s=t.apply(i,n),r||(i=n=null)};return function(){var l=(new Date).getTime();a||!1!==o.leading||(a=l);var c=e-(l-a);return i=void 0,n=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=void 0),a=l,s=t.apply(i,n),r||(i=n=null)):r||!1===o.trailing||(r=window.setTimeout(p,c)),s}}(o.reposition.bind(o),16.666666666666668),o}return J(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,s=t.collision,a=t.popupAlign,p=t.className,l=t.popupClass,c=t.style,h=t.offset,u=t.contentKey,d=$($({},e),{props:{show:o,anchor:r,anchorAlign:i,appendTo:n,collision:s,popupAlign:a,className:p,popupClass:l,style:c,offset:h,contentKey:u}});return t.show?e.current===et.hidden||e.current===et.hiding?$($({},d),{current:et.showing,previous:e.current}):e.current===et.showing?$($({},d),{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(s,e.props.collision)&&tt(a,e.props.popupAlign)&&tt(c,e.props.style)&&r===e.props.anchor&&l===e.props.popupClass&&p===e.props.className?d:$($({},d),{current:et.reposition,previous:e.current}):e.current===et.hiding||e.current===et.hidden?$($({},d),{current:et.hidden,previous:e.current}):$($({},d),{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,s=e.popupClass,a=e.show,p=e.id,u=e.positionMode,d=this.props.appendTo?this.props.appendTo:l.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 f=Object.assign({},{position:u,top:0,left:-1e4},this.props.style||{}),v=this.state.current===et.hiding;if((a||v)&&d){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:p,ref:function(e){return t._popup=e},style:$({zIndex:y},f)},r.createElement("div",{role:this.props.role,className:(0,h.A)("k-popup",s,"k-child-animation-container"),style:{transitionDelay:"0ms"}},o)));return null!==this.props.appendTo?i.createPortal(g,d):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=q.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,x,b]),vertical:n.oneOf([m,x,b])}),anchorAlign:n.shape({horizontal:n.oneOf([v,d,y]),vertical:n.oneOf([g,d,u])}),popupAlign:n.shape({horizontal:n.oneOf([v,d,y]),vertical:n.oneOf([g,d,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:x},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)},st=r.createContext((function(t){return t})),at=r.forwardRef((function(t,e){var o=r.useContext(st).call(void 0,t);return r.createElement(it,nt({ref:e},o))}));at.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"},8338:(t,e,o)=>{o.r(e),o.d(e,{AsyncFocusBlur:()=>Y,BrowserSupportService:()=>n,COLLECTION_ACTION:()=>tt,DragAndDrop:()=>Dt,Draggable:()=>Zt,Droppable:()=>Jt,FOCUSABLE_ELEMENTS:()=>oe,FormComponent:()=>y,Icon:()=>ut,IconWrap:()=>xt,IconsContext:()=>gt,Keys:()=>C,Navigation:()=>re,SvgIcon:()=>vt,Typography:()=>Tt,WatermarkOverlay:()=>F,ZIndexContext:()=>r.$,canUseDOM:()=>s.N,canUseRef:()=>a,classNames:()=>p.A,clone:()=>h,cloneArray:()=>f,cloneDate:()=>c,cloneObject:()=>u,cloneValue:()=>d,createPropsContext:()=>Z,dispatchEvent:()=>U,extendDataItem:()=>I,focusFirstFocusableChild:()=>v,getActiveElement:()=>ne,getInnerActiveElement:()=>ie,getItemPath:()=>D,getScrollbarWidth:()=>S,getTabIndex:()=>g,getter:()=>_,guid:()=>w,hasRelativeStackingContext:()=>V,kendoThemeMaps:()=>$t,mapTree:()=>L,mapTreeItem:()=>j,memoizeOne:()=>ee,noop:()=>k,setScrollbarWidth:()=>A,setter:()=>M,shouldShowValidationUI:()=>z.G,svgIconPropType:()=>ct,toIconClass:()=>lt,toIconName:()=>pt,useAsyncFocusBlur:()=>W,useCollection:()=>rt,useCustomComponent:()=>ot,useDir:()=>J,useDocument:()=>it,useDraggable:()=>Qt,useDroppable:()=>Kt,useMouse:()=>et,usePropsContext:()=>q,useRtl:()=>$,useWindow:()=>nt,useZIndexContext:()=>r.u,validatePackage:()=>z.s,withPropsContext:()=>K});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}(),s=o(7827),a=function(t){return"string"!=typeof Comment&&(function(t){return Boolean("function"==typeof t&&!!t.prototype.isReactComponent)}(t)||function(t){return Boolean(t.$$typeof&&"function"==typeof t.render)}(t))},p=o(8047),l=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]=d(r,e[o])}}function d(t,e){if(Array.isArray(t))return f(t);if(t instanceof Date)return c(t);if(l.isValidElement(t))return l.cloneElement(t,t.props);if(t&&"object"==typeof t){var o=e||{};return u(t,o),o}return t}function f(t){return t.map((function(t){return d(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 x(t){var e=[];return t.replace(m,(function(t,o,r,i){e.push(void 0!==o?o:r||i)})),e}var b={};function _(t){if(b[t])return b[t];var e=x(t);return b[t]=function(t){for(var o=t,r=0;r<e.length&&o;r++)o=o[e[r]];return o},b[t]}b.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},k=function(){},S=function(){return!(!s.N||!document.body)&&(new n).scrollbarWidth},A=function(){if(!s.N||!document.body)return!1;var t=(new n).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width","".concat(t,"px"))},P={undefined:function(t){return t}},O=function(t,e){return e&&e.arrays&&!isNaN(Number(t))?[]:{}};function M(t){if(P[t])return P[t];var e=x(t);return P[t]=function(t,o,r){for(var i=t,n=e.length-1,s=0;s<n&&i;s++)i=i[e[s]]=i[e[s]]||O(e[s+1],r);i[e[n]]=o},P[t]}var T=function(){return T=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},T.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 R(t,e,o){var r;return o?T(T({},t),((r={})[e]=o.length?E([],o,!0):void 0,r)):t&&t[e]?E([],t[e],!0):[]}function B(t,e,o){if(t[e]){var r=R(t,e).map((function(t){return B(t,e,o)}));return o(R(t,e,r))}return o(t)}var L=function(t,e,o){return E([],t.map((function(t){return B(t,e,o)})),!0)},j=function(t,e,o,r){for(var i=t,n=[],s=0;s<e.length;s++)i=i[e[s]],i=Array.isArray(i)?i:i[o],n.push(i);var a=n.length>1?n[n.length-2]:t,p=e[e.length-1],l=r(a[p]);a.splice(p,1,l)},I=function(t,e,o){var r;return Object.assign({},t,t[e]?((r={})[e]=t[e].slice(),r):{},o||{})},D=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},z=o(4006),V=function(t){if(!s.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},H=o(994),N=!1,F=function(){var t=l.useState(!0),e=t[0],o=t[1],r=l.useState(!1),i=r[0],n=r[1];l.useEffect((function(){N||(n(!0),N=!0)}),[]);var s=l.createElement(l.Fragment,null,e&&l.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",position:"fixed",top:"16px",right:"16px",padding:"12px",borderRadius:"4px",boxShadow:"0px 4px 5px 0px rgba(0, 0, 0, 0.04), 0px 2px 4px 0px rgba(0, 0, 0, 0.03)",fontSize:"14px",fontWeight:400,lineHeight:"20px",backgroundColor:"#FFC000",color:"#1E1E1E",zIndex:999}},l.createElement("span",{style:{display:"flex",alignSelf:"center",marginRight:"8px"}},l.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 1L0 15H16L8 1ZM7 6V11H9V6H7ZM7 14V12H9V14H7Z",fill:"#1E1E1E"}))),l.createElement("span",null,"No license found for KendoReact. Learn how to activate your license."),l.createElement("div",{style:{display:"flex",alignItems:"center",marginLeft:"24px"}},l.createElement("a",{href:"https://www.telerik.com/kendo-react-ui/components/my-license/",style:{marginRight:"8px",display:"flex"}},l.createElement("button",{title:"Learn More",style:{display:"inline-flex",position:"relative",border:"none",borderRadius:"4px",padding:"5px",backgroundColor:"transparent",transition:"color 0.2s ease-in-out",outline:"none",cursor:"pointer"}},l.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},l.createElement("path",{d:"M15 8C15 11.8656 11.8656 15 8 15C4.13437 15 1 11.8656 1 8C1 4.13437 4.13437 1 8 1C11.8656 1 15 4.13437 15 8ZM14 8C14 4.6875 11.3125 2 8 2C4.6875 2 2 4.6875 2 8C2 11.3125 4.6875 14 8 14C11.3125 14 14 11.3125 14 8ZM11 6C11 7.4125 10.2687 8.05937 9.73125 8.53125C9.25937 8.94688 9 9.17813 9 10H7C7 8.275 7.84688 7.525 8.40938 7.03125C8.84062 6.65312 9 6.50938 9 6C9 5.45 8.55 5 8 5C7.45 5 7 5.45 7 6H5C5 4.34375 6.34375 3 8 3C9.65625 3 11 4.34375 11 6ZM9 13V11H7V13H9Z",fill:"#1E1E1E"})))),l.createElement("button",{title:"Close",style:{display:"inline-flex",position:"relative",border:"none",borderRadius:"4px",padding:"5px",backgroundColor:"transparent",transition:"color 0.2s ease-in-out",outline:"none",cursor:"pointer"},onClick:function(){o(!1)}},l.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},l.createElement("path",{d:"M13 4.41562L9.41563 8L13 11.5844L11.5844 13L8 9.41563L4.41562 13L3 11.5844L6.58437 8L3 4.41562L4.41562 3L8 6.58437L11.5844 3L13 4.41562Z",fill:"#1E1E1E"}))))));return l.createElement(l.Fragment,null,l.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,right:0,bottom:0,opacity:.2,zIndex:101,pointerEvents:"none",backgroundImage:"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABVxSURBVHgB7Z3tVRtJE4WL9zgANgLLGRCCnAGOADmCxRGgDFAGYiOADKQMIAGO9J8ji42g37mjqlUjBgOanpn+uM85sjC2sKzbVd1dVV0tQgghhBBCCCGEEEIIKRPn3Gn1GAlJmmN1pP558J6OX9540ejh4WGlX09OTk7+EZIclXYXlY43+vVflY7PH3wd9c+AY/Wvvcb9/b0bjUYOz/hBQpICmh1oOPrEa6l/4rTR337AhIMgTSqtzg+0m8gnof7p0mD8EzmGhkFwJiR6np6e7luLL9Q/RTDTBzF+7wfWg2CxWOCHjYVET6XTdLPZrFuLL9Q/NeCkoVUQ4/d+6Ijev1yof1rAUVMvQgjJHebrSRu+CEmWo/O8hISgCjStKpgiGoDWed4AUP/hwGf++Pi4hQYyFHgDzBP3T7A8b0uo/zD4+sMBy1CwWKR/YjF+fS/Uv2di0t/eEAdBT0QnvlD/PolR/xoOgu4JUd7bFdS/e6I1foODoFuqz3M2mUziFF+of5dEb/xGwyAYCwmCVuPNYv5MqX94Yl75NWKD4PLyEm92KqQoqH9Y8Bnis0zC+A14LbxxVqiVCfUPh678plxNFYQe5pjRgAgpDAv4IOAHJyCEkDJoiPaeCyG5UA1oRIYWHNivSSbV0wLq/zbQXz+bS8kV/AeZJ35NCcYPqH8zvv4VS8kVFou8phTjB9T/NcVt+zgI9rjQDRwTgPrvKcn5v4CDYIfT/vtFiS/UHxRr/AYHwQ4t9DiVwihZ/+KN36ATKJsS9U+utr9r/EGQdQSUNFKa/geZkImQ/2rHlznnQDG7oX9b9Xwl5AUl6G9oLcSSxl8Q/p4P13YJIaQMisvzEkJ2lJjnJyQY3lnoJGfNUvP8oUhZf7c70s2eCG1wL7uhRJ0iQnCveiDIhzf7t/f9IvP8IUhJfx/b9rErUkvgRVPIE1fv6xrvbzweu7OzM3d7e4v3OhfSilT092HMJzCxF4u43eWctfFvt1uHu9nxXvF1CWmtroldfx9W+HVErINAjX+M65ngAPxnOAJ1AiMhrUjBCdD4Oya2QYBlPwx8vV47WwFg+a+XZbrz83NzANz/ByBmJ0Dj74lYBgECfrbnt6U/DB/vC7388L2rqyu8vzshwYjRCdD4e8YfBLidVgYA0X7M9jB8PGazmbu5ualnfiz9dSAsufwPTwz6+5jjp/H3CD5ofPB9343u9v3u6+U+0jyY7eEA8Hx3d4c/QjvvMyGdMZT+TeA9wBHR+DPHUn3T6bRe7uMxn89tn18v/TH7O17gQEheYM9vEX7M9hbsg/FbHED3/IPPSISQgNhyE0au+7x7PPtOQFcB3PMTMjTYf4cyRN3zL2DgMHgs/7XU99acgDIWEgUh9W/4uWMh8QKBvCh8qxSR7fmxt0eEv8kJ6MzP8/2REFL/g59bp/o0xsMAb6xAnBB5Yr+6D3X9KOpBxP/ACWA0jFnoEw+h9D/4mYd5/pGQeAlRLFK95tJy+35578PDQ+0E9LAPi3wixAUsFmKRT6I0DIIPzdJuf6R3i+UeZnsz/nqjPx47/fMpZ/54OVb/g5/BZi4pY4Pgo8s2d3CkF0Z/cXFRL/+Xy2W9BdBUH4/5JsBn9W94PZu5pI77QzMOjepiNp/j71hO//fv31sr7qmtfT73i3xWjnvAZHhH/4nquXrLwB2bueSJ27Vmvodhq4df4BmzvQb3IPxWl/zgRl/DwZA4GrhdYFUHfbHE1y0enXsJ2FLfCnggvjqBejDoTI8o38ocgJAscNq8BY4fv/Uf+J46gjkdQcbA+19fXzs7zQfR8TWcgH+kFw/u+fMDKz/o3OQETk9PLcWLPSBbeeWELd91eb+CcTc5gXr6r9J8PNKbF/7S3z+6DYcvDasBOv6M0GUduNDfv+cEYPhjIVmA+I3Vc4gaOQzfHAECvb4joAPICCzlrIJP93h/dAIYDBQ/L8wBNC37rXUblv5CB5AfGvi5h6F7Ed9GJ2CZP0b780O1vreVnnhOAFsBOoCMscg/HMBbTsCO+grJFkvvHmYCSnYA/5MMcbsiH6TykNgfr9fry58/f0oltFxcXMj379+l+h42gBcnJyfr6iXfq1nhJ56FZIeuAq+fn59Xv379Oq0CgVJNBEIydAAavLv98ePHeSX4bfX1OQSv9noQ/a7y9A8HTuAcTqB63FSPZyE5Mq3GwOW3b99kNpu9+5e/fv2Kp3+FpAW8vB3cwbLOOvZYfl9LfGdW9KOn+mZCskZXhCuL9vtLfjvshd97hWArpn8TxGn5rhZzOL/gB19DYBzzxcEeTQEtGfArB7c7xbmyVu4YExoTuNcYEL6eCkkTxHYOmna4wzQfvq8z/+o949e940hIkjTp5/ZXjm/1+VQfr856UP/EcLtqr9s/OQENDl5+wPhH3nHQZK6mJjucNvNo2w+A+icC0jaY4a2LT5MT+Mye3+l58JSupiY7XIA2XtQ/IZw2f7D9v+X6D53AZ/f8LqGrqckOF7CNF/VPAF3Or6xvv53r951Amx5+DYOAXWEjxXXQxov6R4zTSzusht8OfABE+r3U39y1iPbbIODVX3ED4/Tagk8kENQ/QiyaC1Fg7PX6frm0Mk6/wUOQ8l799+j9I0cDwcF1ov4R4Xbde2vjxi92ogsPzPrY92szD7buJiQn3K6+v17q2yxvlV1u3+TRAn4jIYTkAfbymOWx1AcwfHMEXp5/JISQ9PEDd867ohvGbvt+cwRe6+5ee7ltNpuVf7yYdA8+68fHxy0+exkY6t8RGnSxJX19yAd7fWvhjEs7NOCHb2D9/+AGqO3HQGSeuD/8PD/GggwM9e8IBPCwr7ciHnzA6NrqtW5+4QRkIByLRXrDRXhXH/XvCKRccEuPX8mHD9jr7Vc7AV32D9rJh4Oge2I0foP6d8QHnADO9kdxYw8HQXfEbPwG9e+It5yAlvdG1beNgyA8KRi/Qf07oskJIEYQw8x/SMMgGAs5CmR0UjF+g/oHwh00YzAn0OZgT1/YINBU5VTIUeCzw2eYivEb1L8l7o1mDm7X220a48x/iNtVLE4dC5OOxu2794wlMaj/kbgAzRwIIQmS4p6PEBKIp6enexo/IYWCPdNms1nnbPxat7BwvH/+P7Dt08/kUjKH+hcOxGeeeI8f86lYSuZQ/8JhsciehoBv9rMi9VdcwZcucBCkVeEXmuL1dy0vbciBkgdBycZvFKs/8/x7ShwENP49xelP8V9T0iBgncdritGfxv82/iDIORJ+EAGfCKnJXn8a//to7fgy51y45sCX1P812erPZR8hBVMZ/Ax9+2j8hBSIHumcpXikkxBCBsXtz8QnUyXndvfz8Sx8AFLUnwTEveyKE32KyAK+7IYThqT0V88/o+cPBz7TVPLEJdb2d00y+pv4elHHTEgwUigWYaq3O6LXn56/e2IeBDT+7olWf4rfHzEOAurfH9HpT/H7J6ZBQP37Jxr9Kf5w+IMAt9PKQOB6NurfP4Prjyg/jX9Y8JnDAHE/vQwE/m0MQOrfP4PqX/3jp15Dj4kQQspCK5SK7OZDCCGEEBIfbneH4kgCoT9vLCQJguqPaD8CDdXzlZDogaEuFotgKSLL9uBnYmAJiZqg+vupPlzbJSR6YKSh8sSODVyTI5j+LO9NlxDFIqzzSJfW+jPPnz4Ng+DDGRvqnz5t9GeePxNsEHx2+U798+BY/e3FzPNnwLE6Uv88oI6EEEIIIYQQQgghhBBCCCGEEEIIIYQQQkiRoHyQxz/T51gdqX8evKfjlzdeNHp4eFjp15OTk5N/hCQHjoFWOt7o139VOj5/8HXUPwOO1f+/02ApXEhJmmnTzIP6p49r28wlRFMJMgwhmnlQ/3RB854g/RwaBgF7wkVOyGYe1D9N0L4vWDMXGwTaFHIsJGpgpF5TyIm0hPqnR6XTdLPZrF2oZi7aVIDePxFgqCH1ov6EEEIIITHRtl7jixBCkuToPH8ocGMQrihmiqh/8Jnjau6hrwen/sPQOs8fAgxA5on7xxcfBigDQf2HIUSdR6g3wmKRnolGfKH+QxCT/vaGOAh6Ijrxhfr3SYz613AQdE+04gv174Ng5b1dwUHQHTEbv0H9u6X6PGeTySTu69oaBsFYSCui9/we1L87tBpzFv1naoPg8vISA2AqpBX4DPFZxm78BvUn9awF8R07yrRGPf80pdmU+hNCyJHoYa4ZHSghhWEBXwT84ASEEFIGDdmec8mJ6j+EyNAiu/9YACC+fjaXkinU/21SSPW2BuIzT/waX/yKpWQK9W+mCOMHLBZ5TfbLPg/q/5pijN/gINhTnPhC/X1cwAauScFBUKbxG9R/h9P7F0rTv6bkQVCy8Rt0Aju00OtUSqTEQZBSbX/X0AmQF4Mg5wi4cRAJn0jhlKY/aUBrx5c558ANzYUvafx7StAfqxv0UKyer4QQUg5+zAfXdgkhpAxKqvMghHgUm+cPhdufhU/Oa+qRTp6Jb0HK+oOi8/whcC+74SSTIrJlH7vitCMl/RHcqx4I8uHN/u19v9w8f1swi6aWJ+aeLxyp6F+9r2u8v/F47M7Oztzt7S3e61xIe1IqFmGFX3hi19/tLuesjX+73brFYlG/V3xdQlq7F1JwAjT+7ohVfzX+Ma5ngwPwn+EI1AmMhLQnZidA4++e2PTHsh8Gvl6vna0AsPzXy1Ld+fm5OQDu/0MRoxOg8fdHLPoj4Gd7flv6w/DxvtDLD9+7urrC+7sTEhZ/EOB2WhkYE57G3w8x6I9oP2Z7GD4es9nM3dzc1DM/lv46FpZc/ncEBgEMD7XVMjB4DxiINP7+GEp/t7/voF7uI0WJ2R4OAM93d3f4I7TzPhNCSD5Yqm86ndbLfTzm87nt8+ulP2Z/x+vQCMkL7Pktwo/Z3oJ9MH6LA+ief/AVKSEkILbdgJHr3v4ez74T0FUA9/wxgP1XF0Lozx0LiZqQ+uuefwEDh8Fj+a+lvrfmBJSxkOGBEF4UNliKyFJ9usdjgCdSQupve37s7RHhb3ICOvPzfH8swDhD54kb8vwjIVESSn+/ug91/SjqQcT/wAlgNhiz0CcyQhaLsMgnPULoX73m0nL7fnnvw8ND7QT0sA+LfGKlYRB82ks7NnNIlmP1d/sjvVtsJTDbm/HXG/3x2OmfTznzR44NgmOX7Y7NHJLms/q7gyO9MPqLi4t6+b9cLustgKb6eMw3FdwfmjFggKg3X71l4I7NHJLmHf3PVPs5/o7l9H///r214p7a2udzv8hn5RgDShsN3Czg1SE4lom6xKO4heB2rdnvYdi6QljgGbO9BvfgOLa65Ac3+hpOBinjtHkDhMdv/Qe+p45gTkeQL7bUtwIeaK5OoJ4MdKZHlG9lDkBIPsDzQ/QmJ3B6emopHqwB2corQzDDX19fOzvNh7GAr+EE/CO9eHDPnxH+0t8/ugnBpWE1QOHzwpbvurxfwbibnEA9/VdpPh7pzQjs3yyfK2rkMHxzBAj0+I6ADiAvdFsHLvT37zkBGP5YSB6YA2ha9lvrJiz9hQ4gO7CVswo+jfH80QlgMqD2GaKC35unF88JYCtAB5AnGvi9h6F7GZ9GJ2CZP0b7M8XSO4eZADqAvLHIPxzAW07AjvpKYfxPCkBngevn5+fVr1+/TqtAoFQDQUieuF2RD1J5SOyP1+v15c+fP6Vy9HJxcSHfv3+X6nsIAF2cnJysq5d8r1YAP/EshVGEA6iYVkZ/+e3bN5nNZu/+5a9fv+LpXyHJocG72x8/fpxXDv+2+vocDr+K9cDp31UrvYcDJ3AOJ1A9bqrHs5D80BlhZdF+f8lvhz3we68QZMX0T3pglWcHd6Cjdeyx/L6W+M6s6EdP9c2ElIHbneJaWStnFIRoTOBe94D4eiokSZyW72oxl/MLfvA1jB6642CPpoCXDPhljO79RwffG6kj2OrzqT5e1Xo3vZ7EC2K7B0073GGaD9/XmX/1nvFT/4Rx2syjbT+AIW+gIZ/D7ao9b//kBDQ4ePkB46f+qeICtPFy2g8gpavJSwZpW8zw1sWnyQl8Zs9P/RPFBWzj5RK6mrxkTCfb/1uu/9AJfHbPT/0Tw3XQxqthELArcETocn5lffvtXL/vBNr08KP+CQFxvLbQEwmEDQJe/RQXTi/tsBp+O/AFEOn3Un9z1yLaT/0TQgNBwb20Zg/o/SPBsjkwShh7vb5fLq2M22/wEqS8V/+9sRBChsXtuvfWxo1f7EQnHpj1se/XZh5s3U1ITrhdfX+91LdZ3io73b7JqwX8RkIIyQPs5THLY6kPYPjmCLw8/0hI3iAd8/j4uN1sNisZGLwH/3gpCYcfuHPeFd0wdtv3myPwWnf32suR+veMn+fHBy8DA0fEPHF4NOhmS/r6kA/2+tbCHZd2aMAP38D6/8ENUNtP/XvERXhXn2OxSCcggId9vRXx4LNF12avdfsLJyADQf17IkbjNzgIwoOUK27p8Sv58Nl6vf1qJ6DL/kE7+VD/jonZ+A0OgvB8wAngbH8UN/ZQ/45IwfgNDoLwvOUEtLw3qr6N1D8wiOimYvxGwyAYC2lFkxNAjCCGmf8Q6h8QRHeR7knF+A0bBJqqmgr5NO6gGYc5gTYHe/qC+gfC7bv3jCUx3K5ibepYmPJp3BvNXNyut+M0xpn/EOpPyBG4AM1cCCEJkmLMhxASiKenp3saf4Fg2Vc9FsjpSuZo3hr/115r1lMAe+bNZrPO2fip/wH+nq9iKZkD8ZknLhfq79EQ8MneK7JYpGyov5JShV9oOAjKvnSjeP1LNn6j5EHgWl7akgPF6k/j31PiIGCef09x+jPP+5qSBgGd/2uKcgIHEdCJkBp/EOSaCaHxv00J+tdoDnRJ8V+jtePLHGshaPzvk7P+pGC47SOkYCqDn6FvH42fkAJxuyPdaN01FlIGbnc/37TkFE8o3L4nAmvHCyQ5/S3gw24oYXAvuyKxbLgwktK/xNr+rsFqKpU8sa78Zlz5hSMZ/Znq6Y4UikVMf72oYyYkGNHrT+PvnpgHAVd+3ROt/jT+/ohxEFD//ohOf4rfPzENAurfP1E5AVzPRPH7xx8EuJ1WBoDGPxyH+ruhjlTjbnR9AxMhvYLPHA4YGkjPIMpP4x+WIfUnhYMZx2voMRFCSFlohVqR3XwIIaQc3O5OtrGQJFC9RkKKRCsyRxICi/YuFgvs986ERA3Eh1ahUkT4GQg0Vc9XQqInqP6ODRyTA046VJ7Y1x/XdgmJnmD6M8+bLiGKRVjemy6t9WeeN30aBsGHI/bUP33a6M88bybYIPjs9o3658Gx+tuLmefNgGN1pP55QB0JIYQQQgghhBBCCJGy+T9ftRg+rVNPfAAAAABJRU5ErkJggg==')"}}),i&&H.createPortal(s,document.body))};function U(t,e,o,r){if(t){var i={syntheticEvent:e,nativeEvent:e.nativeEvent,target:o};t.call(void 0,Object.assign(i,r))}}var G=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 W(t){var e=t.onFocus,o=t.onBlur,r=t.onSyncFocus,i=t.onSyncBlur,n=l.useRef(!1),s=l.useRef(0),a=l.useCallback((function(t){clearTimeout(s.current),s.current=window.setTimeout((function(){return t()}))}),[s]),p=l.useCallback((function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];clearTimeout(s.current),r&&r.call(void 0,t[0]),n.current||(n.current=!0,e&&e.call.apply(e,G([void 0],t,!1)))}),[n,e,r]),c=l.useCallback((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];i&&i.call(void 0,t[0]),a((function(){n.current&&o&&(n.current=!1,o.call.apply(o,G([void 0],t,!1)))}))}),[n,a,o,i]);return l.useEffect((function(){return function(){clearTimeout(s.current)}}),[]),{onFocus:p,onBlur:c}}var 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)},Y=function(t){var e=t.children,o=W({onFocus:t.onFocus,onBlur:t.onBlur,onSyncFocus:t.onSyncFocus,onSyncBlur:t.onSyncBlur});return l.createElement(l.Fragment,null,e.call(void 0,X({},o)))},q=function(t,e){return l.useContext(t)(e)},Q=function(){return Q=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},Q.apply(this,arguments)},Z=function(){return l.createContext((function(t){return t}))},K=function(t,e){return l.forwardRef((function(o,r){var i=q(t,o);return l.createElement(e,Q({},i,{ref:r}))}))};function J(t,e,o){var r=l.useState(e),i=r[0],n=r[1];return l.useEffect((function(){if(!i&&window&&t.current){var e=window.getComputedStyle(t.current).direction;e&&n(e)}}),o),i}function $(t,e,o){var r=l.useState(e),i=r[0],n=r[1];return l.useEffect((function(){if(!i&&window&&t.current){var e=window.getComputedStyle(t.current).direction;e&&n(e)}}),o),i}var tt,et=function(t,e,o){void 0===o&&(o={});var r=l.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=l.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:l.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:l.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:l.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:l.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:l.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:l.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:l.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])}},ot=function(t){return[t,{}]};!function(t){t[t.add=0]="add",t[t.remove=1]="remove"}(tt||(tt={}));var rt=function(t){void 0===t&&(t=[]);var e=l.useRef(t),o=l.useCallback((function(t){switch(t.type){case tt.add:e.current.push(t.item);break;case tt.remove:var o=e.current.indexOf(t.item);e.current.splice(o,1)}}),[]);return[e.current,o]},it=function(t){var e=l.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]);return l.useCallback((function(){var t=e();return t&&t.ownerDocument||document}),[e])},nt=function(t){var e=it(t);return l.useCallback((function(){var t=e();return t&&t.defaultView||window}),[e])},st=o(189),at={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"},pt=function(t){return t.replace(/^k-i-/,"")},lt=function(t){return"k-i-"+t},ct=st.shape({name:st.string.isRequired,content:st.string.isRequired,viewBox:st.string.isRequired}),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=l.forwardRef((function(t,e){var o=t.className,r=t.name,i=t.themeColor,n=t.size,s=t.flip,a=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"]),d=l.useRef(null),f=l.useRef(null);l.useImperativeHandle(d,(function(){return{element:f.current}})),l.useImperativeHandle(e,(function(){return d.current}));var v=l.useMemo((function(){return n||dt.size}),[n]),y=l.useMemo((function(){return s||dt.flip}),[s]),g=l.useMemo((function(){var t;return(0,p.A)("k-icon",r&<(r),((t={})["k-color-".concat(i)]=i,t["k-flip-h"]="horizontal"===y||"both"===y,t["k-flip-v"]="vertical"===y||"both"===y,t),at[v],o)}),[r,i,v,y,o]),m=et(t,d);return l.createElement("span",ht({ref:f},u,m,{className:g,id:c,tabIndex:h,style:a,role:"presentation"}))}));ut.propTypes={style:st.object,classNames:st.string,name:st.string,themeColor:st.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:st.oneOf(["default","xsmall","small","medium","large","xlarge","xxlarge","xxxlarge"]),flip:st.oneOf(["default","horizontal","vertical","both"])};var dt={size:"default",flip:"default"};ut.displayName="KendoIcon";var ft=function(){return ft=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},ft.apply(this,arguments)},vt=l.forwardRef((function(t,e){var o=t.children,r=t.className,i=t.svgClassName,n=t.icon,s=t.flip,a=t.id,c=t.tabIndex,h=t.size,u=t.style,d=t.svgStyle,f=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=l.useRef(null);l.useImperativeHandle(e,(function(){return{element:g.current}}));var m=l.useMemo((function(){return n?n.name:yt.icon}),[n]),x=l.useMemo((function(){return h||yt.size}),[h]),b=l.useMemo((function(){return s||yt.flip}),[s]),_=l.useMemo((function(){return v||yt.viewBox}),[v]),w=l.useMemo((function(){var t;return(0,p.A)("k-svg-icon","k-svg-i-"+m,((t={})["k-color-".concat(f)]=f,t["k-flip-h"]="horizontal"===b||"both"===b,t["k-flip-v"]="vertical"===b||"both"===b,t),at[x],r)}),[m,f,x,b,r]),C=l.useMemo((function(){return t.width&&t.height?ft({width:t.width,height:t.height},u):t.width?ft({width:t.width,height:t.width},u):t.height?ft({width:t.height,height:t.height},u):ft({},u)}),[t.width,t.height,u]);return l.createElement("span",{className:w,style:C,ref:g},l.createElement("svg",ft({id:a,className:i,style:d,"aria-hidden":!0,tabIndex:c,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:n?n.viewBox:_,dangerouslySetInnerHTML:n?{__html:n.content}:void 0},y),n?void 0:o))}));vt.propTypes={style:st.object,classNames:st.string,children:st.any,icon:st.object,themeColor:st.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:st.oneOf(["default","xsmall","small","medium","large","xlarge","xxlarge","xxxlarge"]),flip:st.oneOf(["default","horizontal","vertical","both"])};var yt={size:"default",flip:"default",icon:"",viewBox:"0 0 24 24"};vt.displayName="KendoSvgIcon";var gt=l.createContext({type:"svg"});gt.displayName="KendoReactIconsContext";var mt=function(){return mt=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},mt.apply(this,arguments)},xt=l.forwardRef((function(t,e){var o,r=l.useContext(gt),i=r.type,n=r.icons,s=t.icon,a=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"]),p=(null===(o=t.icon)||void 0===o?void 0:o.name)||t.name,c=p&&n&&n[p]&&"string"!=typeof n[p]?n[p]:s;return p=p&&n&&n[p]&&"string"==typeof n[p]?n[p]:p,"svg"===i&&c?l.createElement(vt,mt({},t,{icon:c,ref:e})):l.createElement(ut,mt({},a,{name:p,ref:e}))}));xt.displayName="KendoIconWrap";var bt={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},_t={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},wt={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"},Ct={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},kt={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},St={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},At={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},Pt={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"},Ot=function(){return Ot=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},Ot.apply(this,arguments)},Mt=function(t){var e=l.forwardRef((function(e,o){var r=e.id,i=e.style,n=e.className,s=e.fontSize,a=e.fontWeight,p=e.textAlign,c=e.textTransform,h=e.themeColor,u=e.margin,d=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"]),f=l.useRef(null),v=l.useRef(null);l.useImperativeHandle(f,(function(){return{element:v.current,props:e}})),l.useImperativeHandle(o,(function(){return f.current}));var y=t;return l.createElement(y,Ot({id:r,ref:v,className:["k-".concat("p"===t?"paragraph":t),bt[s],_t[a],St[p],At[c],Pt[h],function(){if(void 0!==u){if("string"==typeof u)return[wt[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])?Ct[r]:r,"".concat(kt[o]).concat(i)))})),t.join(" ")}}}(),n].filter((function(t){return void 0!==t})).join(" "),style:i},d),e.children)}));return e.propTypes={style:st.object,className:st.string,fontSize:st.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:st.oneOf(["light","normal","bold"]),margin:st.oneOfType([st.number,st.object,st.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:st.oneOf(["left","right","center","justify"]),textTransform:st.oneOf(["lowercase","uppercase","capitalize"]),themeColor:st.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},e.displayName="KendoReactTypography".concat(t.toUpperCase()),e},Tt={h1:Mt("h1"),h2:Mt("h2"),h3:Mt("h3"),h4:Mt("h4"),h5:Mt("h5"),h6:Mt("h6"),p:Mt("p"),code:Mt("code"),pre:Mt("pre")},Et=function(){return Et=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},Et.apply(this,arguments)},Rt=function(t,e,o){var r=l.useState(e||t),i=r[0],n=r[1];return[void 0!==e?e:i,l.useCallback((function(t,e){n(t),o&&o.call(void 0,Et(Et({},e),{value:t}))}),[o,n])]},Bt=l.createContext([void 0,k]),Lt=l.createContext([void 0,k]),jt=l.createContext([[],k,k]),It=l.createContext([[],k,k]),Dt=function(t){var e=Rt(null,void 0),o=e[0],r=e[1],i=Rt(null,void 0),n=i[0],s=i[1],a=rt([]),p=a[0],c=a[1],h=rt([]),u=h[0],d=h[1];return l.createElement(Bt.Provider,{value:[o,r]},l.createElement(Lt.Provider,{value:[n,s]},l.createElement(jt.Provider,{value:[p,function(t){c({type:tt.add,item:t})},function(t){c({type:tt.remove,item:t})}]},l.createElement(It.Provider,{value:[u,function(t){d({type:tt.add,item:t})},function(t){d({type:tt.remove,item:t})}]},t.children))))};Dt.displayName="KendoReactDragAndDrop";var zt,Vt=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},Ht=function(t){return t&&t.ownerDocument||window.document},Nt=function(t){var e=Vt(),o=Ht(t);return e.edge||e.safari?o.body:o.documentElement},Ft=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},Ut=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&&!Ft(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"}(zt||(zt={}));var Gt=function(){},Wt=function(t,e,o){void 0===o&&(o={});var r,i,n,s,a,p=o.onIsPressedChange,l=void 0===p?Gt:p,c=o.onIsScrollingChange,h=void 0===c?Gt:c,u=o.onVelocityChange,d=void 0===u?Gt:u,f=o.onOffsetChange,v=void 0===f?Gt:f,y=o.onPageOffsetChange,g=void 0===y?Gt:y,m=o.onClientOffsetChange,x=void 0===m?Gt:m,b=o.onScrollOffsetChange,_=void 0===b?Gt:b,w=o.onInitialScrollOffsetChange,C=void 0===w?Gt:w,k=e.payload,S=k.element,A=k.hint,P=t.autoScrollDirection,O=t.scrollableParent,M=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(M.type){case zt.POINTER_DOWN:if(M.type===zt.POINTER_DOWN&&(!M.originalEvent.isPrimary||0!==M.originalEvent.button))break;case zt.MOUSE_DOWN:if(M.type===zt.MOUSE_DOWN&&M.originalEvent.which&&M.originalEvent.which>1||t.ignoreMouse)break;case zt.TOUCH_START:if(M.type===zt.TOUCH_START&&1!==M.originalEvent.touches.length)break;case zt.START:var T=O||Ut(e.payload.element);C(T instanceof Window?{x:T.scrollX,y:T.scrollY}:{x:T.scrollLeft,y:T.scrollTop}),x({x:M.clientX,y:M.clientY}),g({x:M.pageX,y:M.pageY}),v({x:M.offsetX,y:M.offsetY}),l(!0),k.onPress&&k.onPress(M);break;case zt.SCROLL:if(M.type===zt.SCROLL&&!t.pressed)break;var E=O||Ut(S),R=E instanceof Window?{x:E.scrollX,y:E.scrollY}:{x:E.scrollLeft,y:E.scrollTop};M.scrollX=R.x-t.initialScrollOffset.x,M.scrollY=R.y-t.initialScrollOffset.y,_({x:M.scrollX,y:M.scrollY});case zt.POINTER_MOVE:if(M.type===zt.POINTER_MOVE&&!M.originalEvent.isPrimary)break;case zt.MOUSE_MOVE:case zt.TOUCH_MOVE:if(M.type===zt.TOUCH_MOVE&&1!==M.originalEvent.touches.length)break;case zt.MOVE:if(t.pressed){if(t.autoScroll&&"scroll"!==M.originalEvent.type&&S){var B=Ht(S),L=O||Ut(B.elementFromPoint(M.clientX,M.clientY)),j=(r=M.clientX,i=M.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=Ht(t);return e&&e.defaultView||window}(S)),s={x:0,y:0},a=50,r-n.left<a?s.x=-(a-(r-n.left)):n.right-r<a&&(s.x=a-(n.right-r)),i-n.top<a?s.y=-(a-(i-n.top)):n.bottom-i<a&&(s.y=a-(n.bottom-i)),s);d({x:P&&!1===P.horizontal?0:j.x,y:P&&!1===P.vertical?0:j.y}),h(0!==j.y||0!==j.x)}!t.drag&&k.onDragStart&&k.onDragStart(M),k.onDrag&&k.onDrag(M);var I=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),s=Math.min(r.left+r.width,o.left+o.width),a=Math.min(r.top+r.height,o.top+o.height),p=s-n,l=a-i;if(n<s&&i<a){var c=r.width*r.height,h=o.width*o.height,u=p*l;return Number((u/(c+h-u)).toFixed(4))}return 0}(t,e);i>o&&(o=i,r=e)}})),r}(A||S,t.drops.map((function(t){return t&&t.element})).filter((function(t){return t!==(A||S)}))),D=t.drops.find((function(t){return t.element===I}));D&&I&&function(t,e,o){var r=o.getBoundingClientRect();return r.top<=e&&r.left<=t&&e<=r.bottom&&t<=r.right}(M.clientX,M.clientY,O||Ut(I))&&I!==S?(t.drop&&t.drop.element)!==I?(t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(M),D.onDragEnter&&D.onDragEnter(M)):D.onDragOver&&D.onDragOver(M):t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(M)}x({x:M.clientX,y:M.clientY}),g({x:M.pageX,y:M.pageY});break;case zt.POINTER_UP:if(M.type===zt.POINTER_UP&&!M.originalEvent.isPrimary)break;case zt.MOUSE_UP:case zt.TOUCH_END:if(M.type===zt.TOUCH_END&&1!==M.originalEvent.touches.length)break;case zt.END:l(!1),h(!1),_({x:0,y:0}),k.onRelease&&k.onRelease(M),t.drop&&t.drop.onDrop&&t.drop.onDrop(M),t.drag&&k.onDragEnd&&k.onDragEnd(M);break;case zt.POINTER_CANCEL:case zt.CONTEXT_MENU:case zt.TOUCH_CANCEL:case zt.CANCEL:l(!1),h(!1),_({x:0,y:0}),k.onDragEnd&&k.onDragEnd(M),t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(M)}},Xt=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,s=t.scrollLeft+e.x,a=r&&s>0&&s<t.scrollWidth;n?t.scrollTop+=e.y:o&&i<0&&(t.scrollTop=0),a?t.scrollLeft+=e.x:r&&s<0&&(t.scrollLeft=0)}},Yt=function(t,e){var o=l.useContext(t),r=o[0],i=o[1],n=l.useState(e),s=n[0],a=n[1];return[void 0!==r?r:s,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];void 0!==r?i.apply(void 0,t):a(t[0])}]},qt=2e3;function Qt(t,e,o){void 0===o&&(o={});var r=e.onPress,i=void 0===r?k:r,n=e.onRelease,s=void 0===n?k:n,a=e.onDragStart,p=void 0===a?k:a,c=e.onDrag,h=void 0===c?k:c,u=e.onDragEnd,d=void 0===u?k:u,f=o.hint,v=void 0===f?null:f,y=o.mouseOnly,g=void 0!==y&&y,m=o.autoScroll,x=void 0===m||m,b=o.scrollContainer,_=void 0===b?null:b,w=l.useState(!1),C=w[0],S=w[1],A=l.useState(!1),P=A[0],O=A[1],M=Yt(Lt)[0],T=Yt(Bt),E=T[0],R=T[1],B=l.useContext(It)[0],L=l.useContext(jt),j=L[0],I=L[1],D=L[2],z=l.useRef({x:0,y:0}),V=l.useRef(),H=l.useRef(!1),N=l.useRef(),F=l.useRef(null),U=l.useRef(!1),G=l.useRef({x:0,y:0}),W=l.useRef({x:0,y:0}),X=l.useRef({x:0,y:0}),Y=l.useRef({x:0,y:0}),q=l.useRef({x:0,y:0}),Q=l.useRef({x:0,y:0}),Z=Boolean("undefined"!=typeof window&&window.PointerEvent),K=!g&&Z,J=l.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]),$=l.useCallback((function(){return v&&v.current&&v.current.element?v.current.element:v?v.current:null}),[v]),tt=l.useCallback((function(){return _&&_.current&&_.current.element?_.current.element:_?_.current:null}),[_]),et=l.useCallback((function(){return"object"==typeof x&&x.boundaryElementRef&&x.boundaryElementRef.current&&x.boundaryElementRef.current.element?x.boundaryElementRef.current.element:"object"==typeof x&&x.boundaryElementRef&&x.boundaryElementRef.current?x.boundaryElementRef.current:null}),[x]),ot=l.useRef(null);l.useImperativeHandle(ot,(function(){return{element:J(),hint:$(),onPress:vt,onDragStart:gt,onDrag:mt,onDragEnd:xt,onRelease:yt,data:t.current}}));var rt=l.useCallback((function(){var t=J();return t&&t.ownerDocument||document}),[J]),it=l.useCallback((function(){var t=rt();return t&&t.defaultView||window}),[rt]),nt=l.useCallback((function(){return{drag:E?E.current:null,drop:M?M.current:null,drags:j.map((function(t){return t.current})),drops:B.map((function(t){return t.current})),pressed:C,ignoreMouse:H.current,scrollOffset:q.current,offset:G.current,pageOffset:W.current,initialScrollOffset:Q.current,clientOffset:X.current,initialClientOffset:Y.current,velocity:z.current,autoScroll:Boolean("object"==typeof x?!1!==x.enabled:x),scrollableParent:et(),autoScrollDirection:"object"==typeof x?x.direction:{horizontal:!0,vertical:!0},isScrolling:P}}),[E,M,j,B,C,x,et,P]),st=l.useCallback((function(t){S(t)}),[]),at=l.useCallback((function(t){O(t)}),[]),pt=l.useCallback((function(t){z.current=t}),[]),lt=l.useCallback((function(t){G.current=t}),[]),ct=l.useCallback((function(t){X.current=t}),[]),ht=l.useCallback((function(t){W.current=t}),[]),ut=l.useCallback((function(t){Y.current=t}),[]),dt=l.useCallback((function(t){q.current=t}),[]),ft=l.useCallback((function(t){Q.current=t}),[]),vt=l.useCallback((function(t){i(t)}),[i]),yt=l.useCallback((function(t){s(t)}),[s]),gt=l.useCallback((function(e){R(ot,{target:t.current,event:e}),p(e)}),[R,t,p]),mt=l.useCallback((function(t){h(t)}),[h]),xt=l.useCallback((function(e){U.current||(R(null,{target:t.current,event:e}),d(e))}),[d,R,t]),bt=l.useCallback((function(t){Wt(nt(),{event:t,payload:ot.current},{onVelocityChange:pt,onOffsetChange:lt,onClientOffsetChange:ct,onPageOffsetChange:ht,onInitialClientOffsetChange:ut,onScrollOffsetChange:dt,onInitialScrollOffsetChange:ft,onIsPressedChange:st,onIsScrollingChange:at})}),[nt,pt,lt,ht,ct,ut,ft,st,dt,at]),_t=l.useCallback((function(t){bt(t)}),[bt]),wt=l.useCallback((function(t){bt(t)}),[bt]),Ct=l.useCallback((function(t){bt(t)}),[bt]),kt=l.useCallback((function(t){bt(t)}),[bt]),St=l.useCallback((function(t){bt(t)}),[bt]),At=l.useCallback((function(t){bt(t)}),[bt]),Pt=l.useCallback((function(t){bt(t)}),[bt]),Ot=l.useCallback((function(t){t.preventDefault(),bt(t)}),[bt]),Mt=l.useCallback((function(t){t.preventDefault(),bt(t)}),[bt]),Tt=l.useCallback((function(t){t.preventDefault(),bt(t)}),[bt]),Et=l.useCallback((function(t){if(0===t.touches.length&&1===t.changedTouches.length){var e=it();H.current=!0,N.current=e.setTimeout((function(){H.current=!1}),qt)}bt(t)}),[bt,it]),Rt=l.useCallback((function(t){bt(t)}),[bt]),Dt=l.useCallback((function(){var t=J();if(t){var e=t.style.touchAction;return t.style.touchAction="none",function(){t.style.touchAction=e}}}),[J]),zt=l.useCallback((function(){return I(ot),function(){D(ot)}}),[D,I]);l.useEffect((function(){var t=it();if(P){var e=tt()||Ut(document.elementFromPoint(X.current.x,X.current.y));t.clearInterval(V.current),V.current=t.setInterval((function(){Xt(e,{x:z.current.x,y:z.current.y})}),50)}return function(){t.clearInterval(V.current)}}),[J,tt,it,P]),l.useEffect(Dt,[Dt]),l.useEffect((function(){var t=it(),e=J(),o=rt();return K?(e&&(F.current=Ut(e),F.current&&F.current.addEventListener("scroll",Rt,{passive:!0}),e.addEventListener("pointerdown",_t,{passive:!0})),C&&(o.addEventListener("pointermove",wt),o.addEventListener("pointerup",kt,!0),o.addEventListener("contextmenu",Ot),o.addEventListener("pointercancel",Ct,{passive:!0}))):(t.addEventListener("touchmove",k,{capture:!1,passive:!1}),e&&(e.addEventListener("mousedown",St,{passive:!0}),g||(e.addEventListener("touchstart",Mt,{passive:!0}),C&&(e.addEventListener("touchmove",Tt,{passive:!0}),e.addEventListener("touchend",Et,{passive:!0})))),C&&(o.addEventListener("mousemove",At,{passive:!0}),o.addEventListener("mouseup",Pt,{passive:!0}))),function(){F.current&&F.current.removeEventListener("scroll",Rt),e&&(e.removeEventListener("pointerdown",_t),e.removeEventListener("mousedown",St),e.removeEventListener("touchstart",Mt),e.removeEventListener("touchmove",Tt),e.removeEventListener("touchend",Et)),o.removeEventListener("pointermove",wt),o.removeEventListener("pointerup",kt,!0),o.removeEventListener("contextmenu",Ot),o.removeEventListener("pointercancel",Ct),o.removeEventListener("mousemove",At),o.removeEventListener("mouseup",Pt),t.removeEventListener("touchmove",k),t.clearTimeout(N.current)}}),[C,it,J,rt,g,K,Ot,St,At,Pt,Ct,_t,wt,kt,Et,Tt,Mt,Rt]),l.useEffect((function(){return U.current=!1,function(){U.current=!0}}),[]),l.useLayoutEffect(zt,[zt])}var Zt=l.forwardRef((function(t,e){var o=l.useRef(null),r=l.useRef(null),i=l.useCallback((function(){return o.current&&o.current.element?o.current.element:o.current}),[o]);l.useImperativeHandle(r,(function(){return{element:i()||null}})),l.useImperativeHandle(e,(function(){return r.current})),l.useImperativeHandle(t.childRef,(function(){return o.current}));var n=l.useCallback((function(e){t.onPress&&t.onPress({element:i(),target:r.current,event:e})}),[i,t.onPress]),s=l.useCallback((function(e){t.onRelease&&t.onRelease({element:i(),target:r.current,event:e})}),[i,t.onRelease]),a=l.useCallback((function(e){t.onDragStart&&t.onDragStart({element:i(),target:r.current,event:e})}),[t,i]),p=l.useCallback((function(e){t.onDrag&&t.onDrag({element:i(),target:r.current,event:e})}),[i,t.onDrag]),c=l.useCallback((function(e){t.onDragEnd&&t.onDragEnd({element:i(),target:r.current,event:e})}),[i,t.onDragEnd]);return Qt(o,{onPress:n,onRelease:s,onDragStart:a,onDrag:p,onDragEnd:c},{mouseOnly:t.mouseOnly,autoScroll:t.autoScroll,hint:t.hint,scrollContainer:t.scrollContainer}),t.children?l.cloneElement(l.Children.only(t.children),{ref:o}):null}));function Kt(t,e){void 0===e&&(e={onDragEnter:k,onDragOver:k,onDragLeave:k,onDrop:k});var o=e.onDragEnter,r=void 0===o?k:o,i=e.onDragOver,n=void 0===i?k:i,s=e.onDragLeave,a=void 0===s?k:s,p=e.onDrop,c=void 0===p?k:p,h=Yt(Lt)[1],u=l.useContext(It),d=u[1],f=u[2],v=l.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]),y=l.useRef(null);l.useImperativeHandle(y,(function(){return{element:v(),onDragEnter:g,onDragOver:m,onDragLeave:x,onDrop:b,data:t.current}}));var g=l.useCallback((function(e){h(y,{target:t.current,event:e}),r(e)}),[h,t,r]),m=l.useCallback((function(t){n(t)}),[n]),x=l.useCallback((function(e){h(null,{target:t.current,event:e}),a(e)}),[h,t,a]),b=l.useCallback((function(e){h(null,{target:t.current,event:e}),c(e)}),[h,t,c]),_=l.useCallback((function(){return d(y),function(){f(y)}}),[f,d]);l.useLayoutEffect(_,[_])}Zt.displayName="KendoReactDraggable";var Jt=l.forwardRef((function(t,e){var o=l.useRef(null),r=l.useRef(null),i=l.useCallback((function(){return o.current&&o.current.element?o.current.element:o.current}),[o]);l.useImperativeHandle(r,(function(){return{element:i()||void 0}})),l.useImperativeHandle(e,(function(){return r.current})),l.useImperativeHandle(t.childRef,(function(){return o.current}));var n=l.useCallback((function(e){t.onDragEnter&&t.onDragEnter({element:i(),target:r.current,event:e})}),[t.onDragEnter,i]),s=l.useCallback((function(e){t.onDragOver&&t.onDragOver({element:i(),target:r.current,event:e})}),[i,t.onDragOver]),a=l.useCallback((function(e){t.onDragLeave&&t.onDragLeave({element:i(),target:r.current,event:e})}),[t.onDragLeave,i]),p=l.useCallback((function(e){t.onDrop&&t.onDrop({element:i(),target:r.current,event:e})}),[t.onDrop,i]);return Kt(o,{onDragEnter:n,onDragOver:s,onDragLeave:a,onDrop:p}),t.children?l.cloneElement(l.Children.only(t.children),{ref:o}):null}));Jt.displayName="KendoReactDroppable";var $t={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}};function te(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 ee(t,e){void 0===e&&(e=te);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 oe=["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]"],re=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}(),ie=function(t){var e=t.shadowRoot,o=t.contentDocument;return e&&e.activeElement?ie(e.activeElement):o&&o.activeElement?ie(o.activeElement):t},ne=function(t){if(t&&t.activeElement)return ie(t.activeElement)}},4006:(t,e,o)=>{o.d(e,{s:()=>n,G:()=>s});var r=o(9302),i=["telerik.com","progress.com","stackblitz.io","csb.app"];function n(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)}}function s(t){return!i.some((function(t){var e;return null===(e=globalThis.document)||void 0===e?void 0:e.location.hostname.endsWith(t)}))&&!(null==r?void 0:r.validatePackage(t))}},4407:t=>{t.exports=i},9302:t=>{t.exports=e},189:t=>{t.exports=r},3899:e=>{e.exports=t},994:t=>{t.exports=o}},s={};function a(t){var e=s[t];if(void 0!==e)return e.exports;var o=s[t]={exports:{}};return n[t].call(o.exports,o,o.exports,a),o.exports}return a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var o in e)a.o(e,o)&&!a.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a(468)})()}));
|