@progress/kendo-angular-charts 5.3.2 → 6.0.0-dev.202201191011
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.
- package/LICENSE.md +1 -1
- package/NOTICE.txt +119 -79
- package/README.md +1 -1
- package/dist/cdn/js/kendo-angular-charts.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/chart/title.component.js +1 -1
- package/dist/es/chart.component.js +2 -2
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/stock-chart/navigator.component.js +1 -1
- package/dist/es2015/chart/title.component.d.ts +1 -1
- package/dist/es2015/chart/title.component.js +1 -1
- package/dist/es2015/chart.component.d.ts +2 -2
- package/dist/es2015/chart.component.js +2 -2
- package/dist/es2015/field-types/mousewheel-zoom.interface.d.ts +8 -0
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/stock-chart/navigator.component.d.ts +1 -1
- package/dist/es2015/stock-chart/navigator.component.js +1 -1
- package/dist/fesm2015/index.js +5 -5
- package/dist/fesm5/index.js +5 -5
- package/dist/npm/chart/title.component.js +1 -1
- package/dist/npm/chart.component.js +2 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/stock-chart/navigator.component.js +1 -1
- package/dist/systemjs/kendo-angular-charts.js +1 -1
- package/package.json +7 -6
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@progress/kendo-drawing"),require("@angular/core"),require("rxjs"),require("@angular/common"),require("rxjs/operators"),require("@progress/kendo-angular-intl"),require("@progress/kendo-angular-l10n"),require("@angular/animations")):"function"==typeof define&&define.amd?define(["@progress/kendo-drawing","@angular/core","rxjs","@angular/common","rxjs/operators","@progress/kendo-angular-intl","@progress/kendo-angular-l10n","@angular/animations"],e):"object"==typeof exports?exports.KendoAngularCharts=e(require("@progress/kendo-drawing"),require("@angular/core"),require("rxjs"),require("@angular/common"),require("rxjs/operators"),require("@progress/kendo-angular-intl"),require("@progress/kendo-angular-l10n"),require("@angular/animations")):t.KendoAngularCharts=e(t["@progress/kendo-drawing"],t["@angular/core"],t.rxjs,t["@angular/common"],t["rxjs/operators"],t["@progress/kendo-angular-intl"],t["@progress/kendo-angular-l10n"],t["@angular/animations"])}(window,(function(t,e,o,i,n,
|
|
5
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@progress/kendo-drawing"),require("@angular/core"),require("rxjs"),require("@angular/common"),require("rxjs/operators"),require("@progress/kendo-angular-intl"),require("@progress/kendo-angular-l10n"),require("@angular/animations")):"function"==typeof define&&define.amd?define(["@progress/kendo-drawing","@angular/core","rxjs","@angular/common","rxjs/operators","@progress/kendo-angular-intl","@progress/kendo-angular-l10n","@angular/animations"],e):"object"==typeof exports?exports.KendoAngularCharts=e(require("@progress/kendo-drawing"),require("@angular/core"),require("rxjs"),require("@angular/common"),require("rxjs/operators"),require("@progress/kendo-angular-intl"),require("@progress/kendo-angular-l10n"),require("@angular/animations")):t.KendoAngularCharts=e(t["@progress/kendo-drawing"],t["@angular/core"],t.rxjs,t["@angular/common"],t["rxjs/operators"],t["@progress/kendo-angular-intl"],t["@progress/kendo-angular-l10n"],t["@angular/animations"])}(window,(function(t,e,o,i,r,n,a,s){return function(t){var e={};function o(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=t,o.c=e,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(i,r,function(e){return t[e]}.bind(null,r));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=99)}([function(t,e,o){"use strict";o.r(e),o.d(e,"__extends",(function(){return r})),o.d(e,"__assign",(function(){return n})),o.d(e,"__rest",(function(){return a})),o.d(e,"__decorate",(function(){return s})),o.d(e,"__param",(function(){return p})),o.d(e,"__metadata",(function(){return c})),o.d(e,"__awaiter",(function(){return l})),o.d(e,"__generator",(function(){return u})),o.d(e,"__createBinding",(function(){return h})),o.d(e,"__exportStar",(function(){return d})),o.d(e,"__values",(function(){return g})),o.d(e,"__read",(function(){return f})),o.d(e,"__spread",(function(){return v})),o.d(e,"__spreadArrays",(function(){return y})),o.d(e,"__await",(function(){return _})),o.d(e,"__asyncGenerator",(function(){return m})),o.d(e,"__asyncDelegator",(function(){return b})),o.d(e,"__asyncValues",(function(){return x})),o.d(e,"__makeTemplateObject",(function(){return C})),o.d(e,"__importStar",(function(){return S})),o.d(e,"__importDefault",(function(){return w})),o.d(e,"__classPrivateFieldGet",(function(){return A})),o.d(e,"__classPrivateFieldSet",(function(){return k}));
|
|
6
6
|
/*! *****************************************************************************
|
|
7
7
|
Copyright (c) Microsoft Corporation.
|
|
8
8
|
|
|
@@ -17,4 +17,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
17
17
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
18
18
|
PERFORMANCE OF THIS SOFTWARE.
|
|
19
19
|
***************************************************************************** */
|
|
20
|
-
var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)};function n(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var r=function(){return(r=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function a(t,e){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(o[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(o[i[n]]=t[i[n]])}return o}function s(t,e,o,i){var n,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(a=(r<3?n(a):r>3?n(e,o,a):n(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a}function p(t,e){return function(o,i){e(o,i,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,o,i){return new(o||(o=Promise))((function(n,r){function a(t){try{p(i.next(t))}catch(t){r(t)}}function s(t){try{p(i.throw(t))}catch(t){r(t)}}function p(t){var e;t.done?n(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(a,s)}p((i=i.apply(t,e||[])).next())}))}function u(t,e){var o,i,n,r,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(n=2&r[0]?i.return:r[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,r[1])).done)return n;switch(i=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){a.label=r[1];break}if(6===r[0]&&a.label<n[1]){a.label=n[1],n=r;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(r);break}n[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(t){r=[6,t],i=0}finally{o=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function h(t,e,o,i){void 0===i&&(i=o),t[i]=e[o]}function d(t,e){for(var o in t)"default"===o||e.hasOwnProperty(o)||(e[o]=t[o])}function f(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],i=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));return t}function y(){for(var t=0,e=0,o=arguments.length;e<o;e++)t+=arguments[e].length;var i=Array(t),n=0;for(e=0;e<o;e++)for(var r=arguments[e],a=0,s=r.length;a<s;a++,n++)i[n]=r[a];return i}function _(t){return this instanceof _?(this.v=t,this):new _(t)}function m(t,e,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,n=o.apply(t,e||[]),r=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){n[t]&&(i[t]=function(e){return new Promise((function(o,i){r.push([t,e,o,i])>1||s(t,e)}))})}function s(t,e){try{(o=n[t](e)).value instanceof _?Promise.resolve(o.value.v).then(p,c):l(r[0][2],o)}catch(t){l(r[0][3],t)}var o}function p(t){s("next",t)}function c(t){s("throw",t)}function l(t,e){t(e),r.shift(),r.length&&s(r[0][0],r[0][1])}}function b(t){var e,o;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,n){e[i]=t[i]?function(e){return(o=!o)?{value:_(t[i](e)),done:"return"===i}:n?n(e):e}:n}}function x(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,o=t[Symbol.asyncIterator];return o?o.call(t):(t=f(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(e){return new Promise((function(i,n){(function(t,e,o,i){Promise.resolve(i).then((function(e){t({value:e,done:o})}),e)})(i,n,(e=t[o](e)).done,e.value)}))}}}function S(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function C(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function w(t){return t&&t.__esModule?t:{default:t}}function A(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function O(t,e,o){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,o),o}},function(e,o){e.exports=t},function(t,o){t.exports=e},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(8),a=o(13);e.THROTTLE_MS=1e3/60;var s=function(t,e){this.key=t,this.value=e};e.Change=s;var p=function(){function t(t){this.ngZone=t,this.store={},this.source=new r.BehaviorSubject({}),this.initSource()}return t.prototype.initSource=function(){this.onFastChange$=this.source.asObservable(),this.onChange$=this.onFastChange$.pipe(a.auditTime(e.THROTTLE_MS))},t.prototype.push=function(t){this.store=t,this.next()},t.prototype.notify=function(t){this.set(t.key,t.value),this.next()},t.prototype.set=function(t,e){for(var o=this.store,i=t.split("."),n=i.shift();i.length>0;)o=o[n]=o[n]||{},n=i.shift();o[n]=e},t.prototype.next=function(){var t=this;this.ngZone.runOutsideAngular((function(){t.source.next(t.store)}))},t=i.__decorate([n.Injectable(),i.__metadata("design:paramtypes",[n.NgZone])],t)}();e.ConfigurationService=p},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(3),n=o(31),r=o(32),a=function(){function t(t,e){if(this.configKey=t,this.configurationService=e,this.store={},void 0===t)throw new Error("Configuration key not set")}return t.prototype.ngOnDestroy=function(){this.store=void 0,this.notify()},t.prototype.ngOnChanges=function(t){n.copyChanges(t,this.store),this.notify()},t.prototype.notifyChanges=function(t){this.ngOnChanges(r.toSimpleChanges(t))},t.prototype.markAsVisible=function(){this.store.visible=!0,this.notify()},t.prototype.notify=function(){this.configurationService.notify(new i.Change(this.configKey,this.store))},t}();e.SettingsComponent=a},function(t,e,o){"use strict";o.r(e),o.d(e,"ResizeService",(function(){return U})),o.d(e,"PreventableEvent",(function(){return et})),o.d(e,"DraggableDirective",(function(){return C})),o.d(e,"DraggableModule",(function(){return w})),o.d(e,"closestInScope",(function(){return A})),o.d(e,"closest",(function(){return O})),o.d(e,"contains",(function(){return I})),o.d(e,"findElement",(function(){return k})),o.d(e,"findFocusableChild",(function(){return E})),o.d(e,"findFocusable",(function(){return R})),o.d(e,"hasClasses",(function(){return L})),o.d(e,"isFocusableWithTabKey",(function(){return M})),o.d(e,"isFocusable",(function(){return j})),o.d(e,"isVisible",(function(){return T})),o.d(e,"matchesClasses",(function(){return B})),o.d(e,"matchesNodeName",(function(){return z})),o.d(e,"rtlScrollPosition",(function(){return N})),o.d(e,"EventsOutsideAngularDirective",(function(){return G})),o.d(e,"EventsModule",(function(){return H})),o.d(e,"ResizeSensorComponent",(function(){return $})),o.d(e,"ResizeBatchService",(function(){return Z})),o.d(e,"ResizeCompatService",(function(){return Y})),o.d(e,"ResizeObserverService",(function(){return K})),o.d(e,"ResizeSensorModule",(function(){return Q})),o.d(e,"KendoInput",(function(){return tt})),o.d(e,"isDocumentAvailable",(function(){return _})),o.d(e,"isChanged",(function(){return m})),o.d(e,"anyChanged",(function(){return b})),o.d(e,"hasObservers",(function(){return x})),o.d(e,"guid",(function(){return S})),o.d(e,"Keys",(function(){return F}));var i=o(0),n=o(2),r=function(t,e){return function(o){return e(t(o))}},a=function(t,e,o){return t.addEventListener&&t.addEventListener(e,o)},s=function(t,e,o){return t&&t.removeEventListener&&t.removeEventListener(e,o)},p=function(){},c=function(t){return t.preventDefault()},l=/touch/;function u(t){return t.type.match(l)?{pageX:t.changedTouches[0].pageX,pageY:t.changedTouches[0].pageY,clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,type:t.type,originalEvent:t,isTouch:!0}:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,offsetX:t.offsetX,offsetY:t.offsetY,type:t.type,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,originalEvent:t}}var h=function(t){var e=this,o=t.press;void 0===o&&(o=p);var i=t.drag;void 0===i&&(i=p);var n=t.release;void 0===n&&(n=p);var l=t.mouseOnly;void 0===l&&(l=!1),this._pressHandler=r(u,o),this._dragHandler=r(u,i),this._releaseHandler=r(u,n),this._ignoreMouse=!1,this._mouseOnly=l,this._touchstart=function(t){1===t.touches.length&&e._pressHandler(t)},this._touchmove=function(t){1===t.touches.length&&e._dragHandler(t)},this._touchend=function(t){0===t.touches.length&&1===t.changedTouches.length&&(e._releaseHandler(t),e._ignoreMouse=!0,setTimeout(e._restoreMouse,2e3))},this._restoreMouse=function(){e._ignoreMouse=!1},this._mousedown=function(t){var o=t.which;o&&o>1||e._ignoreMouse||(a(e.document,"mousemove",e._mousemove),a(e.document,"mouseup",e._mouseup),e._pressHandler(t))},this._mousemove=function(t){e._dragHandler(t)},this._mouseup=function(t){s(e.document,"mousemove",e._mousemove),s(e.document,"mouseup",e._mouseup),e._releaseHandler(t)},this._pointerdown=function(t){t.isPrimary&&0===t.button&&(a(e.document,"pointermove",e._pointermove),a(e.document,"pointerup",e._pointerup),a(e.document,"pointercancel",e._pointerup),a(e.document,"contextmenu",c),e._pressHandler(t))},this._pointermove=function(t){t.isPrimary&&e._dragHandler(t)},this._pointerup=function(t){t.isPrimary&&(s(e.document,"pointermove",e._pointermove),s(e.document,"pointerup",e._pointerup),s(e.document,"pointercancel",e._pointerup),s(e.document,"contextmenu",c),e._releaseHandler(t))}},d={document:{configurable:!0}};h.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},d.document.get=function(){return this._element?this._element.ownerDocument:document},h.prototype.bindTo=function(t){t!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=t,this._bindToCurrent())},h.prototype._bindToCurrent=function(){var t=this._element;this._usePointers()?a(t,"pointerdown",this._pointerdown):(a(t,"mousedown",this._mousedown),this._mouseOnly||(a(t,"touchstart",this._touchstart),a(t,"touchmove",this._touchmove),a(t,"touchend",this._touchend)))},h.prototype._unbindFromCurrent=function(){var t=this._element;if(this._usePointers())return s(t,"pointerdown",this._pointerdown),s(this.document,"pointermove",this._pointermove),s(this.document,"pointerup",this._pointerup),s(this.document,"contextmenu",c),void s(this.document,"pointercancel",this._pointerup);s(t,"mousedown",this._mousedown),this._mouseOnly||(s(t,"touchstart",this._touchstart),s(t,"touchmove",this._touchmove),s(t,"touchend",this._touchend))},h.prototype._usePointers=function(){return!this._mouseOnly&&h.supportPointerEvent()},h.prototype.update=function(t){var e=t.press;void 0===e&&(e=p);var o=t.drag;void 0===o&&(o=p);var i=t.release;void 0===i&&(i=p);var n=t.mouseOnly;void 0===n&&(n=!1),this._pressHandler=r(u,e),this._dragHandler=r(u,o),this._releaseHandler=r(u,i),this._mouseOnly=n},h.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(h.prototype,d),h.default=h;var f=h,g=o(12),v=o(13),y=o(8),_=function(){return"undefined"!=typeof document},m=function(t,e,o){return void 0===o&&(o=!0),!(void 0===e[t]||e[t].isFirstChange()&&o||e[t].previousValue===e[t].currentValue)},b=function(t,e,o){return void 0===o&&(o=!0),t.some((function(t){return m(t,e,o)}))},x=function(t){return t&&t.observers.length>0},S=function(){for(var t="",e=0;e<32;e++){var o=16*Math.random()|0;8!==e&&12!==e&&16!==e&&20!==e||(t+="-"),t+=(12===e?4:16===e?3&o|8:o).toString(16)}return t},C=function(){function t(t,e){this.element=t,this.ngZone=e,this.enableDrag=!0,this.kendoPress=new n.EventEmitter,this.kendoDrag=new n.EventEmitter,this.kendoRelease=new n.EventEmitter}return t.prototype.ngOnInit=function(){this.toggleDraggable()},t.prototype.ngOnChanges=function(t){m("enableDrag",t)&&this.toggleDraggable()},t.prototype.ngOnDestroy=function(){this.destroyDraggable()},t.prototype.toggleDraggable=function(){var t=this;_()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new f({drag:function(e){return t.kendoDrag.next(e)},press:function(e){return t.kendoPress.next(e)},release:function(e){return t.kendoRelease.next(e)}}),this.ngZone.runOutsideAngular((function(){return t.draggable.bindTo(t.element.nativeElement)}))))},t.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},Object(i.__decorate)([Object(n.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"enableDrag",void 0),Object(i.__decorate)([Object(n.Output)(),Object(i.__metadata)("design:type",n.EventEmitter)],t.prototype,"kendoPress",void 0),Object(i.__decorate)([Object(n.Output)(),Object(i.__metadata)("design:type",n.EventEmitter)],t.prototype,"kendoDrag",void 0),Object(i.__decorate)([Object(n.Output)(),Object(i.__metadata)("design:type",n.EventEmitter)],t.prototype,"kendoRelease",void 0),t=Object(i.__decorate)([Object(n.Directive)({selector:"[kendoDraggable]"}),Object(i.__metadata)("design:paramtypes",[n.ElementRef,n.NgZone])],t)}(),w=function(){function t(){}return t=Object(i.__decorate)([Object(n.NgModule)({declarations:[C],exports:[C],imports:[g.CommonModule]})],t)}(),A=function(t,e,o){for(;t&&t!==o&&!e(t);)t=t.parentNode;if(t!==o)return t},O=function(t,e){for(;t&&!e(t);)t=t.parentNode;return t},I=function(t,e,o){if(void 0===o&&(o=!1),!O(e,(function(e){return e===t})))return!1;var i=O(e,(function(t){return t===e}));return i&&(o||i!==t)},k=function(t,e,o){if(void 0===o&&(o=!0),t){if(o&&e(t))return t;for(t=t.firstChild;t;){if(1===t.nodeType){var i=k(t,e);if(i)return i}t=t.nextSibling}}},P=/^(?:a|input|select|option|textarea|button|object)$/i,j=function(t){if(!t.tagName)return!1;var e=t.tagName.toLowerCase(),o=Boolean(t.getAttribute("tabIndex"));return!t.disabled&&P.test(e)||o},T=function(t){var e=t.getBoundingClientRect(),o=e.width>0&&e.height>0,i=0!==e.x&&0!==e.y;return(o||i)&&"hidden"!==window.getComputedStyle(t).visibility},M=function(t,e){if(void 0===e&&(e=!0),!j(t))return!1;var o=t.getAttribute("tabIndex");return(!e||T(t))&&"-1"!==o},E=function(t,e){return void 0===e&&(e=!0),k(t,(function(t){return M(t,e)}),!1)},R=function(t,e){return void 0===e&&(e=!0),k(t,(function(t){return M(t,e)}))},D=function(t){return String(t).trim().split(" ")},L=function(t,e){var o=D(e);return Boolean(D(t.className).find((function(t){return o.indexOf(t)>=0})))},B=function(t){return function(e){return L(e,t)}},V={},z=function(t){return V[t]||(V[t]=function(e){return String(e.nodeName).toLowerCase()===t.toLowerCase()}),V[t]};function N(t,e,o){var i=t;return o<0?i=-t:o>0&&(i=e.scrollWidth-e.offsetWidth-t),i}var F,G=function(){function t(t,e,o){this.element=t,this.ngZone=e,this.renderer=o,this.events={}}return t.prototype.ngOnInit=function(){var t=this;if(this.element&&this.element.nativeElement){var e=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular((function(){for(var o in e)e.hasOwnProperty(o)&&t.subscriptions.push(t.renderer.listen(t.element.nativeElement,o,t.scope?e[o].bind(t.scope):e[o]))}))}},t.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var t=0;t<this.subscriptions.length;t++)this.subscriptions[t]();this.subscriptions=null}},Object(i.__decorate)([Object(n.Input)("kendoEventsOutsideAngular"),Object(i.__metadata)("design:type",Object)],t.prototype,"events",void 0),Object(i.__decorate)([Object(n.Input)(),Object(i.__metadata)("design:type",Object)],t.prototype,"scope",void 0),t=Object(i.__decorate)([Object(n.Directive)({selector:"[kendoEventsOutsideAngular]"}),Object(i.__metadata)("design:paramtypes",[n.ElementRef,n.NgZone,n.Renderer2])],t)}(),H=function(){function t(){}return t=Object(i.__decorate)([Object(n.NgModule)({declarations:[G],exports:[G]})],t)}(),U=function(){function t(t){this.resizeBatchService=t,this.resize=new n.EventEmitter,this.acceptedSize=!1,this.state=0}return t.prototype.acceptSize=function(t){void 0===t&&(t=this.measure()),this.lastWidth=t.width,this.lastHeight=t.height,this.acceptedSize=!0},t.prototype.checkChanges=function(){_()&&0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))},t.prototype.destroy=function(){this.resizeBatchService.cancel(this)},t.prototype.checkSize=function(){if(this.parentElement){var t=this.measure(),e=t.width,o=t.height;if(!(e===this.lastWidth&&o===this.lastHeight))return this.lastWidth=e,this.lastHeight=o,this.acceptedSize=!1,this.resize.emit(),!0}},t.prototype.initSize=function(){var t=this.measure();this.lastWidth=t.width,this.lastHeight=t.height},t.prototype.measure=function(){var t=0,e=0;return this.parentElement&&(e=this.parentElement.offsetHeight,t=this.parentElement.offsetWidth),{height:e,width:t}},t}(),W=function(t){var e=document.createElement("div");return e.style.cssText=t,e},X="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",Y=function(t){function e(e,o,i){var n=t.call(this,e)||this;return n.element=o,n.ngZone=i,n}return Object(i.__extends)(e,t),e.prototype.checkChanges=function(){2!==this.state?t.prototype.checkChanges.call(this):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)},e.prototype.destroy=function(){if(t.prototype.destroy.call(this),this.subscription&&this.subscription.unsubscribe(),this.expand){var e=this.element.nativeElement;e.removeChild(this.expand),e.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}},e.prototype.checkSize=function(){if(t.prototype.checkSize.call(this))return this.reset(),!0},e.prototype.init=function(){var t,e=this.parentElement=this.element.nativeElement.parentElement;"static"===(t="position",getComputedStyle(e,null).getPropertyValue(t))&&(e.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()},e.prototype.render=function(){var t=this.element.nativeElement;t.style.cssText=X,t.setAttribute("dir","ltr"),this.expand=W(X),this.expandChild=W("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),t.appendChild(this.expand),this.shrink=W(X);var e=W("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(e),t.appendChild(this.shrink)},e.prototype.reset=function(){var t=this.expandChild;t.style.width="100000px",t.style.height="100000px";var e=this.expand;e.scrollLeft=1e5,e.scrollTop=1e5;var o=this.shrink;o.scrollLeft=1e5,o.scrollTop=1e5},e.prototype.subscribe=function(){var t=this;this.ngZone.runOutsideAngular((function(){t.subscription=Object(y.merge)(Object(y.fromEvent)(t.shrink,"scroll"),Object(y.fromEvent)(t.expand,"scroll")).subscribe((function(){t.checkSize()}))}))},e}(U),q="undefined"!=typeof ResizeObserver,K=function(t){function e(e,o,i){var n=t.call(this,e)||this;return n.element=o,n.ngZone=i,n}return Object(i.__extends)(e,t),e.supported=function(){return q},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null},e.prototype.init=function(){var t=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular((function(){t.resizeObserver=new ResizeObserver((function(){t.checkSize()})),t.resizeObserver.observe(t.parentElement)}))},e}(U),Z=function(){function t(t){this.ngZone=t,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return t.prototype.schedule=function(t,e){var o=this;this.scheduled.push({instance:t,method:e}),this.subscription||this.ngZone.runOutsideAngular((function(){o.subscription=Object(y.from)(o.resolvedPromise).subscribe(o.flush)}))},t.prototype.isScheduled=function(t){return Boolean(this.scheduled.find((function(e){return e.instance===t})))},t.prototype.cancel=function(t){for(var e=this.scheduled,o=e.length,i=0;i<o;i++)if(e[i].instance===t)return e.splice(i,1),void(e.length||this.unsubscribe())},t.prototype.ngOnDestroy=function(){this.unsubscribe()},t.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},t.prototype.flush=function(){this.scheduled.forEach((function(t){t.method.call(t.instance)})),this.scheduled=[],this.unsubscribe()},t=Object(i.__decorate)([Object(n.Injectable)(),Object(i.__metadata)("design:paramtypes",[n.NgZone])],t)}(),$=function(){function t(t,e,o){var i=this;this.rateLimit=10,this.resize=new n.EventEmitter;var r=K.supported()?K:Y;this.resizeService=new r(t,e,o);var a=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(v.auditTime)(a)).subscribe((function(){i.resizeService.acceptedSize||i.resize.emit()}))}return t.prototype.ngAfterViewChecked=function(){this.resizeService.checkChanges()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.resizeService.destroy()},t.prototype.acceptSize=function(t){this.resizeService.acceptSize(t)},Object(i.__decorate)([Object(n.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"rateLimit",void 0),Object(i.__decorate)([Object(n.Output)(),Object(i.__metadata)("design:type",n.EventEmitter)],t.prototype,"resize",void 0),t=Object(i.__decorate)([Object(n.Component)({selector:"kendo-resize-sensor",template:""}),Object(i.__metadata)("design:paramtypes",[Z,n.ElementRef,n.NgZone])],t)}(),J=[$],Q=function(){function t(){}return t=Object(i.__decorate)([Object(n.NgModule)({declarations:[J],exports:[J],providers:[Z]})],t)}(),tt=function(){};!function(t){t[t.Alt=18]="Alt",t[t.ArrowDown=40]="ArrowDown",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowUp=38]="ArrowUp",t[t.Backspace=8]="Backspace",t[t.Control=17]="Control",t[t.Delete=46]="Delete",t[t.Digit0=48]="Digit0",t[t.Digit1=49]="Digit1",t[t.Digit2=50]="Digit2",t[t.Digit3=51]="Digit3",t[t.Digit4=52]="Digit4",t[t.Digit5=53]="Digit5",t[t.Digit6=54]="Digit6",t[t.Digit7=55]="Digit7",t[t.Digit8=56]="Digit8",t[t.Digit9=57]="Digit9",t[t.End=35]="End",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F10=121]="F10",t[t.Home=36]="Home",t[t.Insert=45]="Insert",t[t.KeyA=65]="KeyA",t[t.KeyB=66]="KeyB",t[t.KeyC=67]="KeyC",t[t.KeyD=68]="KeyD",t[t.KeyE=69]="KeyE",t[t.KeyF=70]="KeyF",t[t.KeyG=71]="KeyG",t[t.KeyH=72]="KeyH",t[t.KeyI=73]="KeyI",t[t.KeyJ=74]="KeyJ",t[t.KeyK=75]="KeyK",t[t.KeyL=76]="KeyL",t[t.KeyM=77]="KeyM",t[t.KeyN=78]="KeyN",t[t.KeyO=79]="KeyO",t[t.KeyP=80]="KeyP",t[t.KeyQ=81]="KeyQ",t[t.KeyR=82]="KeyR",t[t.KeyS=83]="KeyS",t[t.KeyT=84]="KeyT",t[t.KeyU=85]="KeyU",t[t.KeyV=86]="KeyV",t[t.KeyW=87]="KeyW",t[t.KeyX=88]="KeyX",t[t.KeyY=89]="KeyY",t[t.KeyZ=90]="KeyZ",t[t.NumpadDecimal=110]="NumpadDecimal",t[t.PageDown=34]="PageDown",t[t.PageUp=33]="PageUp",t[t.Shift=16]="Shift",t[t.Space=32]="Space",t[t.Tab=9]="Tab"}(F||(F={}));var et=function(){function t(){this.prevented=!1}return t.prototype.preventDefault=function(){this.prevented=!0},t.prototype.isDefaultPrevented=function(){return this.prevented},t}()},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(8),a=function(t,e){this.sender=t,this.options=e};e.ItemChange=a;var s=function(){function t(){this.source=new r.Subject,this.onItemChange$=this.source.asObservable()}return t.prototype.notify=function(t){this.source.next(t)},t=i.__decorate([n.Injectable(),i.__metadata("design:paramtypes",[])],t)}();e.CollectionService=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){this.sender=t};e.BaseEvent=i},function(t,e){t.exports=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.prevented=!1,e}return i.__extends(e,t),e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}(o(7).BaseEvent);e.PreventableEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(){function t(){}return t.prototype.setTemplate=function(t){this.template=t},t.prototype.getTemplate=function(t){return this.seriesTemplates&&this.seriesTemplates[t]?this.seriesTemplates[t]:this.template},t.prototype.setSeriesTemplates=function(t){this.seriesTemplates=t},t.prototype.setSharedTemplate=function(t){this.sharedTemplate=t},t.prototype.getSharedTemplate=function(){return this.sharedTemplate},t=i.__decorate([n.Injectable()],t)}();e.TooltipTemplateService=r},function(t,e,o){"use strict";o.r(e),o.d(e,"autoMajorUnit",(function(){return qt})),o.d(e,"Point",(function(){return Kt})),o.d(e,"Box",(function(){return $t})),o.d(e,"Ring",(function(){return Qt})),o.d(e,"Sector",(function(){return te})),o.d(e,"ShapeBuilder",(function(){return oe})),o.d(e,"ShapeElement",(function(){return pe})),o.d(e,"ChartElement",(function(){return ne})),o.d(e,"BoxElement",(function(){return ae})),o.d(e,"RootElement",(function(){return he})),o.d(e,"FloatElement",(function(){return fe})),o.d(e,"Text",(function(){return ye})),o.d(e,"TextBox",(function(){return be})),o.d(e,"Title",(function(){return Se})),o.d(e,"AxisLabel",(function(){return we})),o.d(e,"Axis",(function(){return je})),o.d(e,"Note",(function(){return Oe})),o.d(e,"CategoryAxis",(function(){return Je})),o.d(e,"DateCategoryAxis",(function(){return so})),o.d(e,"DateValueAxis",(function(){return yo})),o.d(e,"NumericAxis",(function(){return go})),o.d(e,"LogarithmicAxis",(function(){return xo})),o.d(e,"PolarAxis",(function(){return Oo})),o.d(e,"RadarCategoryAxis",(function(){return wo})),o.d(e,"RadarNumericAxis",(function(){return jo})),o.d(e,"RadarLogarithmicAxis",(function(){return Mo})),o.d(e,"CurveProcessor",(function(){return Ro})),o.d(e,"Gradients",(function(){return ce})),o.d(e,"rectToBox",(function(){return _e})),o.d(e,"ChartAxis",(function(){return Do})),o.d(e,"ChartPane",(function(){return Vo})),o.d(e,"ChartPlotArea",(function(){return zo})),o.d(e,"findAxisByName",(function(){return Lo})),o.d(e,"Aggregates",(function(){return Go})),o.d(e,"AreaChart",(function(){return Ri})),o.d(e,"AreaSegment",(function(){return ji})),o.d(e,"AxisGroupRangeTracker",(function(){return Di})),o.d(e,"Bar",(function(){return Ni})),o.d(e,"BarChart",(function(){return qi})),o.d(e,"BarLabel",(function(){return Bi})),o.d(e,"BoxPlotChart",(function(){return nn})),o.d(e,"BoxPlot",(function(){return en})),o.d(e,"BubbleChart",(function(){return hn})),o.d(e,"Bullet",(function(){return vn})),o.d(e,"BulletChart",(function(){return _n})),o.d(e,"CandlestickChart",(function(){return Qi})),o.d(e,"Candlestick",(function(){return Zi})),o.d(e,"CategoricalChart",(function(){return ui})),o.d(e,"CategoricalErrorBar",(function(){return si})),o.d(e,"CategoricalPlotArea",(function(){return Sr})),o.d(e,"Chart",(function(){return us})),o.d(e,"ChartContainer",(function(){return On})),o.d(e,"ClipAnimation",(function(){return Ai})),o.d(e,"ClusterLayout",(function(){return Ui})),o.d(e,"Crosshair",(function(){return wn})),o.d(e,"CrosshairTooltip",(function(){return Sn})),o.d(e,"DefaultAggregates",(function(){return Jn})),o.d(e,"DonutChart",(function(){return fa})),o.d(e,"DonutPlotArea",(function(){return ga})),o.d(e,"DonutSegment",(function(){return ha})),o.d(e,"ErrorBarBase",(function(){return ai})),o.d(e,"ErrorRangeCalculator",(function(){return qo})),o.d(e,"Highlight",(function(){return wr})),o.d(e,"SharedTooltip",(function(){return Ur})),o.d(e,"Legend",(function(){return Dr})),o.d(e,"LegendItem",(function(){return Er})),o.d(e,"LegendLayout",(function(){return Mr})),o.d(e,"LineChart",(function(){return Pi})),o.d(e,"LinePoint",(function(){return gi})),o.d(e,"LineSegment",(function(){return yi})),o.d(e,"Pane",(function(){return Pn})),o.d(e,"PieAnimation",(function(){return Kr})),o.d(e,"PieChart",(function(){return ca})),o.d(e,"PieChartMixin",(function(){return aa})),o.d(e,"PiePlotArea",(function(){return la})),o.d(e,"PieSegment",(function(){return ra})),o.d(e,"PlotAreaBase",(function(){return Yn})),o.d(e,"PlotAreaEventsMixin",(function(){return qn})),o.d(e,"PlotAreaFactory",(function(){return Br})),o.d(e,"PointEventsMixin",(function(){return hi})),o.d(e,"RangeBar",(function(){return tr})),o.d(e,"RangeBarChart",(function(){return or})),o.d(e,"RangeAreaPoint",(function(){return rr})),o.d(e,"RangeAreaChart",(function(){return ur})),o.d(e,"ScatterChart",(function(){return pn})),o.d(e,"ScatterErrorBar",(function(){return rn})),o.d(e,"ScatterLineChart",(function(){return $r})),o.d(e,"Selection",(function(){return Fr})),o.d(e,"SeriesAggregator",(function(){return Zn})),o.d(e,"SeriesBinder",(function(){return Wo})),o.d(e,"SplineSegment",(function(){return Si})),o.d(e,"SplineAreaSegment",(function(){return Ei})),o.d(e,"StackWrap",(function(){return Xi})),o.d(e,"Tooltip",(function(){return Gr})),o.d(e,"OHLCChart",(function(){return dr})),o.d(e,"OHLCPoint",(function(){return hr})),o.d(e,"WaterfallChart",(function(){return vr})),o.d(e,"WaterfallSegment",(function(){return gr})),o.d(e,"XYPlotArea",(function(){return ta})),o.d(e,"MousewheelZoom",(function(){return Tr})),o.d(e,"ZoomSelection",(function(){return jr})),o.d(e,"Pannable",(function(){return kr})),o.d(e,"anyHasZIndex",(function(){return Oi})),o.d(e,"appendIfNotNull",(function(){return jn})),o.d(e,"areNumbers",(function(){return $i})),o.d(e,"bindSegments",(function(){return Mn})),o.d(e,"categoriesCount",(function(){return ci})),o.d(e,"countNumbers",(function(){return No})),o.d(e,"equalsIgnoreCase",(function(){return En})),o.d(e,"evalOptions",(function(){return pi})),o.d(e,"filterSeriesByType",(function(){return Rn})),o.d(e,"getDateField",(function(){return Dn})),o.d(e,"getField",(function(){return Ho})),o.d(e,"hasGradientOverlay",(function(){return Vi})),o.d(e,"hasValue",(function(){return an})),o.d(e,"isDateAxis",(function(){return Ln})),o.d(e,"segmentVisible",(function(){return Tn})),o.d(e,"singleItemOrArray",(function(){return Bn})),o.d(e,"createOutOfRangePoints",(function(){return Fn})),o.d(e,"ChartService",(function(){return Z})),o.d(e,"DomEventsBuilder",(function(){return J})),o.d(e,"FormatService",(function(){return X})),o.d(e,"IntlService",(function(){return G})),o.d(e,"TemplateService",(function(){return et})),o.d(e,"Sparkline",(function(){return _s})),o.d(e,"Navigator",(function(){return Os})),o.d(e,"NavigatorHint",(function(){return Ss})),o.d(e,"StockChart",(function(){return ks})),o.d(e,"constants",(function(){return i})),o.d(e,"Gauge",(function(){return Ns})),o.d(e,"LinearGauge",(function(){return lp})),o.d(e,"LinearPointer",(function(){return $s})),o.d(e,"ArrowLinearPointer",(function(){return op})),o.d(e,"BarLinearPointer",(function(){return sp})),o.d(e,"LinearScale",(function(){return Ys})),o.d(e,"RadialGauge",(function(){return Ip})),o.d(e,"RadialPointer",(function(){return wp})),o.d(e,"RadialScale",(function(){return yp})),o.d(e,"ArcGauge",(function(){return Rp})),o.d(e,"RangePointer",(function(){return Ep})),o.d(e,"ArcScale",(function(){return Pp})),o.d(e,"CircularGauge",(function(){return Dp})),o.d(e,"Barcode",(function(){return Sc})),o.d(e,"addClass",(function(){return x})),o.d(e,"removeClass",(function(){return C})),o.d(e,"alignPathToPixel",(function(){return A})),o.d(e,"clockwise",(function(){return O})),o.d(e,"convertableToNumber",(function(){return P})),o.d(e,"deepExtend",(function(){return M})),o.d(e,"elementStyles",(function(){return B})),o.d(e,"getSpacing",(function(){return V})),o.d(e,"getTemplate",(function(){return ot})),o.d(e,"getter",(function(){return rt})),o.d(e,"grep",(function(){return at})),o.d(e,"hasClasses",(function(){return st})),o.d(e,"HashMap",(function(){return ct})),o.d(e,"inArray",(function(){return lt})),o.d(e,"interpolateValue",(function(){return ut})),o.d(e,"InstanceObserver",(function(){return dt})),o.d(e,"isArray",(function(){return b})),o.d(e,"isFunction",(function(){return j})),o.d(e,"isNumber",(function(){return I})),o.d(e,"isObject",(function(){return E})),o.d(e,"isString",(function(){return k})),o.d(e,"map",(function(){return ft})),o.d(e,"mousewheelDelta",(function(){return gt})),o.d(e,"FontLoader",(function(){return Et})),o.d(e,"setDefaultOptions",(function(){return Rt})),o.d(e,"sparseArrayLimits",(function(){return Dt})),o.d(e,"styleValue",(function(){return R})),o.d(e,"find",(function(){return Lt})),o.d(e,"elementScale",(function(){return Nt})),o.d(e,"autoTextColor",(function(){return Ft})),o.d(e,"createHashSet",(function(){return Yt})),o.d(e,"append",(function(){return yt})),o.d(e,"bindEvents",(function(){return _t})),o.d(e,"Class",(function(){return w.Class})),o.d(e,"defined",(function(){return mt})),o.d(e,"deg",(function(){return bt})),o.d(e,"elementOffset",(function(){return xt})),o.d(e,"elementSize",(function(){return St})),o.d(e,"eventElement",(function(){return Ct})),o.d(e,"eventCoordinates",(function(){return wt})),o.d(e,"last",(function(){return At})),o.d(e,"limitValue",(function(){return Ot})),o.d(e,"logToConsole",(function(){return w.logToConsole})),o.d(e,"objectKey",(function(){return It})),o.d(e,"rad",(function(){return kt})),o.d(e,"round",(function(){return Pt})),o.d(e,"unbindEvents",(function(){return jt})),o.d(e,"valueOrDefault",(function(){return Tt})),o.d(e,"chartBaseTheme",(function(){return kc}));var i={};o.r(i),o.d(i,"NAVIGATOR_AXIS",(function(){return ws})),o.d(i,"NAVIGATOR_PANE",(function(){return Cs}));var n="arc",r="#000",a="bottom",s="center",p="circle",c="date",l=/\{\d+:?/,u="left",h=Number.MAX_VALUE,d=-Number.MAX_VALUE,f="right",g="top",v="value",y="#fff",_="x",m="y";function b(t){return Array.isArray(t)}function x(t,e){for(var o=b(e)?e:[e],i=0;i<o.length;i++){var n=o[i];-1===t.className.indexOf(n)&&(t.className+=" "+n)}}var S=/\s+/g;function C(t,e){t&&t.className&&(t.className=t.className.replace(e,"").replace(S," "))}var w=o(1);function A(t){var e=.5;t.options.stroke&&w.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 O(t,e){return-t.x*e.y+t.y*e.x<0}function I(t){return"number"==typeof t&&!isNaN(t)}function k(t){return"string"==typeof t}function P(t){return I(t)||k(t)&&isFinite(t)}function j(t){return"function"==typeof t}function T(t,e){for(var o in e){var i=e[o],n=typeof i,r=void 0;if((r="object"===n&&null!==i?i.constructor:null)&&r!==Array)if(i instanceof Date)t[o]=new Date(i.getTime());else if(j(i.clone))t[o]=i.clone();else{var a=t[o];t[o]="object"==typeof a&&a||{},T(t[o],i)}else"undefined"!==n&&(t[o]=i)}return t}function M(t){for(var e=arguments,o=arguments.length,i=1;i<o;i++)T(t,e[i]);return t}function E(t){return"object"==typeof t}function R(t){return I(t)?t+"px":t}var D=/width|height|top|left|bottom|right/i;function L(t){return D.test(t)}function B(t,e){var o=k(e)?[e]:e;if(b(o)){for(var i={},n=window.getComputedStyle(t),r=0;r<o.length;r++){var a=o[r];i[a]=L(a)?parseFloat(n[a]):n[a]}return i}if(E(e))for(var s in e)t.style[s]=R(e[s])}function V(t,e){void 0===e&&(e=0);var o={top:0,right:0,bottom:0,left:0};return"number"==typeof t?o.top=o[f]=o[a]=o[u]=t:(o.top=t.top||e,o[f]=t[f]||e,o[a]=t[a]||e,o[u]=t[u]||e),o}var z={format:function(t,e){return e},toString:function(t){return t},parseDate:function(t){return new Date(t)},firstDay:function(){return 0}},N=function(){},F={implementation:{configurable:!0}};N.register=function(t){z=t},F.implementation.get=function(){return z},Object.defineProperties(N,F);var G=N,H=/\{(\d+)(:[^\}]+)?\}/g,U=function(t){this._intlService=t},W={intl:{configurable:!0}};W.intl.get=function(){return this._intlService||G.implementation},W.intl.set=function(t){this._intlService=t},U.prototype.auto=function(t){for(var e=[],o=arguments.length-1;o-- >0;)e[o]=arguments[o+1];var i=this.intl;return k(t)&&t.match(l)?i.format.apply(i,[t].concat(e)):i.toString(e[0],t)},U.prototype.localeAuto=function(t,e,o){var i=this.intl;return k(t)&&t.match(l)?t.replace(H,(function(t,n,r){var a=e[parseInt(n,10)];return i.toString(a,r?r.substring(1):"",o)})):i.toString(e[0],t,o)},Object.defineProperties(U.prototype,W);var X=U,Y=function(t,e){void 0===e&&(e={}),this._intlService=e.intlService,this.sender=e.sender||t,this.format=new X(e.intlService),this.chart=t,this.rtl=Boolean(e.rtl)},q={intl:{configurable:!0}};q.intl.get=function(){return this._intlService||G.implementation},q.intl.set=function(t){this._intlService=t,this.format.intl=t},Y.prototype.notify=function(t,e){this.chart&&this.chart.trigger(t,e)},Y.prototype.isPannable=function(t){var e=((this.chart||{}).options||{}).pannable;return e&&e.lock!==t},Object.defineProperties(Y.prototype,q);var K,Z=Y,$=function(){};$.register=function(t){K=t},$.create=function(t,e){if(K)return K.create(t,e)};var J=$,Q={compile:function(t){return t}},tt=function(){};tt.register=function(t){Q=t},tt.compile=function(t){return Q.compile(t)};var et=tt;function ot(t){var e;return void 0===t&&(t={}),t.template?t.template=e=et.compile(t.template):j(t.content)&&(e=t.content),e}var it=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,nt={};function rt(t){if(nt[t])return nt[t];var e=[];return t.replace(it,(function(t,o,i,n){e.push(w.drawing.util.defined(o)?o:i||n)})),nt[t]=function(t){for(var o=t,i=0;i<e.length&&o;i++)o=o[e[i]];return o},nt[t]}function at(t,e){for(var o=t.length,i=[],n=0;n<o;n++)e(t[n])&&i.push(t[n]);return i}function st(t,e){if(t.className)for(var o=e.split(" "),i=0;i<o.length;i++)if(-1!==t.className.indexOf(o[i]))return!0}nt[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};var ct=pt;function lt(t,e){if(e)return-1!==e.indexOf(t)}function ut(t,e,o){return w.drawing.util.round(t+(e-t)*o,3)}var ht=function(t,e){this.observer=t,this.handlerMap=M({},this.handlerMap,e)};ht.prototype.trigger=function(t,e){var o,i=this.observer,n=this.handlerMap;return n[t]?o=this.callObserver(n[t],e):i.trigger&&(o=this.callObserver("trigger",t,e)),o},ht.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)},ht.prototype.requiresHandlers=function(t){if(this.observer.requiresHandlers)return this.observer.requiresHandlers(t);for(var e=0;e<t.length;e++)if(this.handlerMap[t[e]])return!0};var dt=ht;function ft(t,e){for(var o=t.length,i=[],n=0;n<o;n++){var r=e(t[n]);w.drawing.util.defined(r)&&i.push(r)}return i}function gt(t){var e=0;return t.wheelDelta&&(e=(e=-t.wheelDelta/120)>0?Math.ceil(e):Math.floor(e)),t.detail&&(e=w.drawing.util.round(t.detail/3)),e}var vt=w.drawing.util,yt=vt.append,_t=vt.bindEvents,mt=vt.defined,bt=vt.deg,xt=vt.elementOffset,St=vt.elementSize,Ct=vt.eventElement,wt=vt.eventCoordinates,At=vt.last,Ot=vt.limitValue,It=vt.objectKey,kt=vt.rad,Pt=vt.round,jt=vt.unbindEvents,Tt=vt.valueOrDefault,Mt=function(){};Mt.fetchFonts=function(t,e,o){void 0===o&&(o={depth:0});!t||o.depth>5||!document.fonts||Object.keys(t).forEach((function(i){var n=t[i];"dataSource"!==i&&"$"!==i[0]&&n&&("font"===i?e.push(n):"object"==typeof n&&(o.depth++,Mt.fetchFonts(n,e,o),o.depth--))}))},Mt.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){Object(w.logToConsole)(t)}Promise.all(o).then(e,e)}else e()},Mt.preloadFonts=function(t,e){var o=[];Mt.fetchFonts(t,o),Mt.loadFonts(o,e)};var Et=Mt;function Rt(t,e){var o=t.prototype;o.options?o.options=M({},o.options,e):o.options=e}function Dt(t){for(var e=h,o=d,i=0,n=t.length;i<n;i++){var r=t[i];null!==r&&isFinite(r)&&(e=Math.min(e,r),o=Math.max(o,r))}return{min:e===h?void 0:e,max:o===d?void 0:o}}function Lt(t,e){for(var o=0;o<t.length;o++){var i=t[o];if(e(i,o,t))return i}}var Bt=w.geometry.Matrix,Vt=/matrix\((.*)\)/;function zt(t){var e=getComputedStyle(t).transform;return"none"===e?Bt.unit():function(t){var e=t.match(Vt);if(null===e||2!==e.length)return Bt.unit();var o=e[1].split(",").map((function(t){return parseFloat(t)}));return new(Function.prototype.bind.apply(Bt,[null].concat(o)))}(e)}function Nt(t){if(!t)return Bt.unit();for(var e=zt(t),o=t.parentElement;o;){var i=zt(o);e=e.multiplyCopy(i),o=o.parentElement}return e.b=e.c=e.e=e.f=0,e}var Ft=function(t){return new w.Color(t).isDark()?y:r},Gt={},Ht=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},Ut={size:{configurable:!0}};Ht.prototype.values=function(){return this._values.filter((function(t){return t!==Gt}))},Ht.prototype.has=function(t){return void 0!==this._index[t]},Ht.prototype.add=function(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))},Ht.prototype.delete=function(t){var e=this._index[t];void 0!==e&&(this._values[e]=Gt,delete this._index[t])},Ht.prototype.clear=function(){this._index={},this._values=[]},Ut.size.get=function(){return this._values.length},Object.defineProperties(Ht.prototype,Ut);var Wt=function(t){this._set=new Set(t)},Xt={size:{configurable:!0}};function Yt(t){return"function"==typeof Set?new Wt(t):new Ht(t)}function qt(t,e){var o=Pt(e-t,9);if(0===o){if(0===e)return.1;o=Math.abs(e)}var i=Math.pow(10,Math.floor(Math.log(o)/Math.log(10))),n=Pt(o/i,10);return Pt(i*(n<1.904762?.2:n<4.761904?.5:n<9.523809?1:2),10)}Wt.prototype.values=function(){return Array.from(this._set)},Wt.prototype.has=function(t){return this._set.has(t)},Wt.prototype.add=function(t){this._set.add(t)},Wt.prototype.delete=function(t){this._set.delete(t)},Wt.prototype.clear=function(){this._set.clear()},Xt.size.get=function(){return this._set.size},Object.defineProperties(Wt.prototype,Xt);var Kt=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=kt(e),i=Math.cos(o),n=Math.sin(o),r=t.x,a=t.y,s=this.x,p=this.y;return this.x=Pt(r+(s-r)*i+(p-a)*n,3),this.y=Pt(a+(p-a)*i-(s-r)*n,3),this},e.prototype.multiply=function(t){return this.x*=t,this.y*=t,this},e.prototype.distanceTo=function(t){var e=this.x-t.x,o=this.y-t.y;return Math.sqrt(e*e+o*o)},e.onCircle=function(t,o,i){var n=kt(o);return new e(t.x-i*Math.cos(n),t.y-i*Math.sin(n))},e}(w.Class);function Zt(t,e,o,i,n){var r=kt(n);return new Kt(o+(t-o)*Math.cos(r)+(e-i)*Math.sin(r),i-(t-o)*Math.sin(r)+(e-i)*Math.cos(r))}var $t=function(t){function e(e,o,i,n){t.call(this),this.x1=e||0,this.y1=o||0,this.x2=i||0,this.y2=n||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(),i=this.width();return mt(t)&&(this.x1=t,this.x2=this.x1+i),mt(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=b(t),i=o?t[0]:t.x,n=o?t[1]:t.y;return this.wrap(new e(i,n,i,n)),this},e.prototype.snapTo=function(t,e){return e!==_&&e||(this.x1=t.x1,this.x2=t.x2),e!==m&&e||(this.y1=t.y1,this.y2=t.y2),this},e.prototype.alignTo=function(t,e){var o=this.height(),i=this.width(),n=e===g||e===a?m:_,r=n===m?o:i;if(e===s){var p=t.center(),c=this.center();this.x1+=p.x-c.x,this.y1+=p.y-c.y}else this[n+1]=e===g||e===u?t[n+1]-r:t[n+2];return this.x2=this.x1+i,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=V(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=V(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 Kt(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 Kt(this.x1,this.y1),new Kt(this.x2,this.y1),new Kt(this.x2,this.y2),new Kt(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(),i=this.center(),n=i.x,r=i.y,a=Zt(0,0,n,r,t),s=Zt(e,0,n,r,t),p=Zt(e,o,n,r,t),c=Zt(0,o,n,r,t);return e=Math.max(a.x,s.x,p.x,c.x)-Math.min(a.x,s.x,p.x,c.x),o=Math.max(a.y,s.y,p.y,c.y)-Math.min(a.y,s.y,p.y,c.y),this.x2=this.x1+e,this.y2=this.y1+o,this},e.prototype.toRect=function(){return new w.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 i=e+1,n=e+2,r=e===_?"width":"height",p=this[r]();lt(o,[u,g])?(this[i]=t[i],this[n]=this[i]+p):lt(o,[f,a])?(this[n]=t[n],this[i]=this[n]-p):o===s&&(this[i]=t[i]+(t[r]()-p)/2,this[n]=this[i]+p)},e}(w.Class);function Jt(t,e){return t-e}var Qt=function(t){function e(e,o,i,n,r){t.call(this),this.center=e,this.innerRadius=o,this.radius=i,this.startAngle=n,this.angle=r}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=kt(t),i=Math.cos(o),n=Math.sin(o),r=e?this.innerRadius:this.radius,a=Pt(this.center.x-i*r,3),s=Pt(this.center.y-n*r,3);return new Kt(a,s)},e.prototype.adjacentBox=function(t,e,o){var i=this.clone().expand(t),n=i.middle(),r=i.point(n),a=e/2,s=o/2,p=Math.sin(kt(n)),c=Math.cos(kt(n)),l=r.x-a,u=r.y-s;return Math.abs(p)<.9&&(l+=a*-c/Math.abs(c)),Math.abs(c)<.9&&(u+=s*-p/Math.abs(p)),new $t(l,u,l+e,u+o)},e.prototype.containsPoint=function(t){var e=this.center,o=this.innerRadius,i=this.radius,n=this.startAngle,r=this.startAngle+this.angle,a=t.x-e.x,s=t.y-e.y,p=new Kt(a,s),c=this.point(n),l=new Kt(c.x-e.x,c.y-e.y),u=this.point(r),h=new Kt(u.x-e.x,u.y-e.y),d=Pt(a*a+s*s,3);return(l.equals(p)||O(l,p))&&!O(h,p)&&d>=o*o&&d<=i*i},e.prototype.getBBox=function(){var t,e=new $t(h,h,d,d),o=Pt(this.startAngle%360),i=Pt((o+this.angle)%360),n=this.innerRadius,r=[0,90,180,270,o,i].sort(Jt),a=r.indexOf(o),s=r.indexOf(i);t=o===i?r:a<s?r.slice(a,s+1):[].concat(r.slice(0,s+1),r.slice(a,r.length));for(var p=0;p<t.length;p++){var c=this.point(t[p]);e.wrapPoint(c),e.wrapPoint(c,n)}return n||e.wrapPoint(this.center),e},e.prototype.expand=function(t){return this.radius+=t,this},e}(w.Class),te=function(t){function e(e,o,i,n){t.call(this,e,0,o,i,n)}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}(Qt),ee=function(t){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,i=t.angle+o;t.angle>0&&o===i&&(i+=.001);var n=new w.geometry.Point(t.center.x,t.center.y),r=Math.max(t.radius,0),a=Math.max(t.innerRadius,0),s=new w.geometry.Arc(n,{startAngle:o,endAngle:i,radiusX:r,radiusY:r}),p=w.drawing.Path.fromArc(s,e).close();if(a){s.radiusX=s.radiusY=a;var c=s.pointAt(i);p.lineTo(c.x,c.y),p.arc(i,o,a,a,!0)}else p.lineTo(n.x,n.y);return p},e}(w.Class);ee.current=new ee;var oe=ee,ie=function(t){function e(e){t.call(this),this.children=[],this.options=M({},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,i=0;i<o.length;i++){var n=o[i];n.reflow(t),e=e?e.wrap(n.box):n.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,i=o.length,n=0;n<i;n++)o[n].box.translate(t,e)},e.prototype.append=function(){for(var t=arguments,e=this,o=0;o<arguments.length;o++){var i=t[o];e.children.push(i),i.parent=e}},e.prototype.renderVisual=function(){!1!==this.options.visible&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())},e.prototype.addVisual=function(){this.visual&&(this.visual.chartElement=this,this.parent&&this.parent.appendVisual(this.visual))},e.prototype.renderChildren=function(){for(var t=this.children,e=t.length,o=0;o<e;o++)t[o].renderVisual()},e.prototype.createVisual=function(){this.visual=new w.drawing.Group({zIndex:this.options.zIndex,visible:Tt(this.options.visible,!0)})},e.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=w.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):mt(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,i=this.visual.children,n=i.length;for(e=0;e<n;e++){var r=i[e];if(Tt(r.options.zIndex,0)>o)break}this.visual.insert(e,t)},e.prototype.traverse=function(t){for(var e=this.children,o=e.length,i=0;i<o;i++){var n=e[i];t(n),n.traverse&&n.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,i=(this.options||{}).highlight||{},n=i.visual,r=this._highlight;if(!r){var a={fill:{color:y,opacity:e||.2},stroke:{color:y,width:1,opacity:e||.2}};if(n){if(!(r=this._highlight=n(Object.assign(this.highlightVisualArgs(),{createVisual:function(){return o.createHighlight(a)},sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total}))))return}else r=this._highlight=this.createHighlight(a);mt(r.options.zIndex)||(r.options.zIndex=Tt(i.zIndex,this.options.zIndex)),this.appendVisual(r)}r.visible(t)},e.prototype.createGradientOverlay=function(t,e,o){var i=new w.drawing.Path(Object.assign({stroke:{color:"none"},fill:this.createGradient(o),closed:t.options.closed},e));return i.segments.elements(t.segments.elements()),i},e.prototype.createGradient=function(t){if(this.parent)return this.parent.createGradient(t)},e.prototype.supportsPointInactiveOpacity=function(){return!0},e}(w.Class);ie.prototype.options={};var ne=ie,re=function(t){function e(e){t.call(this,e),this.options.margin=V(this.options.margin),this.options.padding=V(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,i=this,n=this.options,r=n.width,a=n.height,s=n.shrinkToFit,p=r&&a,c=n.margin,l=n.padding,u=n.border.width,h=function(){i.align(e,_,n.align),i.align(e,m,n.vAlign),i.paddingBox=o.clone().unpad(c).unpad(u)},d=e.clone();p&&(d.x2=d.x1+r,d.y2=d.y1+a),s&&d.unpad(c).unpad(u).unpad(l),t.prototype.reflow.call(this,d),o=p?this.box=new $t(0,0,r,a):this.box,s&&p?(h(),d=this.contentBox=this.paddingBox.clone().unpad(l)):(d=this.contentBox=o.clone(),o.pad(l).pad(u).pad(c),h()),this.translateChildren(o.x1-d.x1+c.left+u+l.left,o.y1-d.y1+c.top+u+l.top);for(var f=this.children,g=0;g<f.length;g++){var v=f[g];v.reflow(v.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(w.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:Tt(e.opacity,t.opacity),dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},cursor:t.cursor}},e}(ne);Rt(re,{align:u,vAlign:g,margin:{},padding:{},border:{color:r,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});var ae=re,se=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,i=t.rotation,n=e.center(),r=e.width()/2,a=e.height()/2;if(!t.visible||!this.hasBox())return null;var s,c=this.visualStyle();if(o===p)s=new w.drawing.Circle(new w.geometry.Circle([Pt(e.x1+r,3),Pt(e.y1+a,3)],Math.min(r,a)),c);else if("triangle"===o)s=w.drawing.Path.fromPoints([[e.x1+r,e.y1],[e.x1,e.y2],[e.x2,e.y2]],c).close();else if("cross"===o)(s=new w.drawing.MultiPath(c)).moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),s.moveTo(e.x1,e.y2).lineTo(e.x2,e.y1);else{var l=e.toRect();if("roundedRect"===o){var u=Tt(t.borderRadius,l.width()/5);l.setCornerRadius(u)}s=w.drawing.Path.fromRect(l,c)}return i&&s.transform(w.geometry.transform().rotate(-i,[n.x,n.y])),s.options.zIndex=t.zIndex,s},e.prototype.createElement=function(){var t=this,e=this.options.visual,o=this.pointData||{};return e?e({value:o.value,dataItem:o.dataItem,sender:this.getSender(),series:o.series,category:o.category,rect:this.paddingBox.toRect(),options:this.visualOptions(),createVisual:function(){return t.getElement()}}):this.getElement()},e.prototype.visualOptions=function(){var t=this.options;return{background:t.background,border:t.border,margin:t.margin,padding:t.padding,type:t.type,size:t.width,visible:t.visible}},e.prototype.createVisual=function(){this.visual=this.createElement()},e}(ae);Rt(se,{type:p,align:s,vAlign:s});var pe=se,ce={glass:{type:"linear",rotation:0,stops:[{offset:0,color:y,opacity:0},{offset:.25,color:y,opacity:.3},{offset:1,color:y,opacity:0}]},sharpBevel:{type:"radial",stops:[{offset:0,color:y,opacity:.55},{offset:.65,color:y,opacity:0},{offset:.95,color:y,opacity:.25}]},roundedBevel:{type:"radial",stops:[{offset:.33,color:y,opacity:.06},{offset:.83,color:y,opacity:.2},{offset:.95,color:y,opacity:0}]},roundedGlass:{type:"radial",supportVML:!1,stops:[{offset:0,color:y,opacity:0},{offset:.5,color:y,opacity:.3},{offset:.99,color:y,opacity:0}]},sharpGlass:{type:"radial",supportVML:!1,stops:[{offset:0,color:y,opacity:.2},{offset:.15,color:y,opacity:.15},{offset:.17,color:y,opacity:.35},{offset:.85,color:y,opacity:.05},{offset:.87,color:y,opacity:.15},{offset:.99,color:y,opacity:0}]},bubbleShadow:{type:"radial",center:[.5,.5],radius:.5}};function le(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),i=Math.max(t.x1,e.x1),n=Math.min(t.x2,e.x2),r=Math.max(t.x2,e.x2),a=Math.min(t.y1,e.y1),s=Math.max(t.y1,e.y1),p=Math.min(t.y2,e.y2),c=Math.max(t.y2,e.y2),l=[];return l[0]=new $t(i,a,n,s),l[1]=new $t(o,s,i,p),l[2]=new $t(n,s,r,p),l[3]=new $t(i,p,n,c),t.x1===o&&t.y1===a||e.x1===o&&e.y1===a?(l[4]=new $t(o,a,i,s),l[5]=new $t(n,p,r,c)):(l[4]=new $t(n,a,r,s),l[5]=new $t(o,p,i,c)),at(l,(function(t){return t.height()>0&&t.width()>0}))[0]}var ue=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 $t(0,0,t.width,t.height);this.box=o.unpad(t.margin);for(var i=0;i<e.length;i++)e[i].reflow(o),o=le(o,e[i].box)||new $t},e.prototype.createVisual=function(){this.visual=new w.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),i=w.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(i)},e.prototype.getRoot=function(){return this},e.prototype.createGradient=function(t){var e,o=this.gradients,i=It(t),n=ce[t.gradient];if(o[i])e=o[i];else{var r=Object.assign({},n,t);"linear"===n.type?e=new w.drawing.LinearGradient(r):(t.innerRadius&&(r.stops=function(t){for(var e=t.stops,o=t.innerRadius/t.radius*100,i=e.length,n=[],r=0;r<i;r++){var a=Object.assign({},e[r]);a.offset=(a.offset*(100-o)+o)/100,n.push(a)}return n}(r)),(e=new w.drawing.RadialGradient(r)).supportVML=!1!==n.supportVML),o[i]=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 $t(0,0,t.width,t.height)},e}(ne);Rt(ue,{width:600,height:400,background:y,border:{color:r,width:0},margin:V(5),zIndex:-2});var he=ue,de=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=_,this.elementAxis=m,this.groupSizeField="width",this.elementSizeField="height",this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=m,this.elementAxis=_,this.groupSizeField="height",this.elementSizeField="width",this.groupSpacing=t.vSpacing,this.elementSpacing=t.spacing)},e.prototype.reflow=function(t){this.box=t.clone(),this.reflowChildren()},e.prototype.reflowChildren=function(){var t=this.box,e=this.elementAxis,o=this.groupAxis,i=this.elementSizeField,n=this.groupSizeField,r=this.groupOptions(),a=r.groups,s=r.groupsSize,p=r.maxGroupElementsSize,c=a.length,l=t[o+1]+this.alignStart(s,t[n]());if(c){for(var u=l,h=0;h<c;h++){for(var d=a[h],f=d.groupElements,g=t[e+1],v=f.length,y=0;y<v;y++){var _=f[y],m=this.elementSize(_),b=u+this.alignStart(m[n],d.groupSize),x=new $t;x[o+1]=b,x[o+2]=b+m[n],x[e+1]=g,x[e+2]=g+m[i],_.reflow(x),g+=m[i]+this.elementSpacing}u+=d.groupSize+this.groupSpacing}t[o+1]=l,t[o+2]=l+s,t[e+2]=t[e+1]+p}},e.prototype.alignStart=function(t,e){var o=0,i=this.options.align;return i===f||i===a?o=e-t:i===s&&(o=(e-t)/2),o},e.prototype.groupOptions=function(){for(var t=this.box,e=this.children,o=this.elementSizeField,i=this.groupSizeField,n=this.elementSpacing,r=this.groupSpacing,a=Pt(t[o]()),s=e.length,p=[],c=0,l=0,u=0,h=0,d=[],f=0;f<s;f++){var g=e[f];g.box||g.reflow(t);var v=this.elementSize(g);this.options.wrap&&Pt(l+n+v[o])>a&&(p.push({groupElements:d,groupSize:c,groupElementsSize:l}),h=Math.max(h,l),u+=r+c,c=0,l=0,d=[]),c=Math.max(c,v[i]),l>0&&(l+=n),l+=v[o],d.push(g)}return p.push({groupElements:d,groupSize:c,groupElementsSize:l}),{groups:p,groupsSize:u+=c,maxGroupElementsSize:h=Math.max(h,l)}},e.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},e.prototype.createVisual=function(){},e}(ne);Rt(de,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});var fe=de,ge=w.drawing.Text,ve=function(t){function e(e,o){t.call(this,o),this.content=e,this.reflow(new $t)}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=w.drawing.util.measureText(this.content,{font:e.font});this.baseline=o.baseline,this.box=new $t(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,i=t.opacity,n=t.cursor;this.visual=new ge(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:o,opacity:i},cursor:n})},e}(ne);Rt(ve,{font:"12px sans-serif",color:r});var ye=ve;function _e(t){var e=t.origin,o=t.bottomRight();return new $t(e.x,e.y,o.x,o.y)}var me=/\n/m,be=function(t){function e(e,o,i){t.call(this,o),this.content=e,this.data=i,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new $t)}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 fe({vertical:!0,align:t.align,wrap:!1}),i=M({},t,{opacity:1,animation:null});this.container=o,this.append(o);for(var n=0;n<e.length;n++){var r=new ye(e[n].trim(),i);o.append(r)}},e.prototype.reflow=function(e){var o=this.options,i=o.visual;if(this.container.options.align=o.align,i&&!this._boxReflow){var n=e;n.hasSize()||(this._boxReflow=!0,this.reflow(n),this._boxReflow=!1,n=this.box);var r=this.visual=i(this.visualContext(n));r&&(n=_e(r.clippedBBox()||new w.geometry.Rect),r.options.zIndex=o.zIndex),this.box=this.contentBox=this.paddingBox=n}else if(t.prototype.reflow.call(this,e),o.rotation){var a=V(o.margin),s=this.box.unpad(a);this.targetBox=e,this.normalBox=s.clone(),(s=this.rotate()).translate(a.left-a.right,a.top-a.bottom),this.rotatedBox=s.clone(),s.pad(a)}},e.prototype.createVisual=function(){var t=this.options;if(this.visual=new w.drawing.Group({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()){var e=w.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&&!mt(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.align),this.align(this.targetBox,m,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,i=e.y,n=this.rotatedBox.center();return w.geometry.transform().translate(n.x-o,n.y-i).rotate(t,[o,i])},e}(ae),xe=function(t){function e(e){t.call(this,e),this.append(new be(this.options.text,Object.assign({},this.options,{vAlign:this.options.position})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(e){t.prototype.reflow.call(this,e),this.box.snapTo(e,_)},e.buildTitle=function(t,o,i){var n,r=t;return"string"==typeof t&&(r={text:t}),(r=Object.assign({visible:!0},i,r))&&r.visible&&r.text&&(n=new e(r),o.append(n)),n},e}(ne);Rt(xe,{color:r,position:g,align:s,margin:V(5),padding:V(5)});var Se=xe,Ce=function(t){function e(e,o,i,n,r){t.call(this,o,r),this.text=o,this.value=e,this.index=i,this.dataItem=n,this.reflow(new $t)}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:Ct(e),value:this.value,text:this.text,index:this.index,dataItem:this.dataItem,axis:this.parent.options})},e.prototype.rotate=function(){if(this.options.alignRotation!==s){var e=this.normalBox.toRect(),o=this.rotationTransform();this.box=_e(e.bbox(o.matrix()))}else t.prototype.rotate.call(this);return this.box},e.prototype.rotationTransform=function(){var e=this.options,o=e.rotation;if(!o)return null;if(e.alignRotation===s)return t.prototype.rotationTransform.call(this);var i=w.geometry.transform().rotate(o).matrix(),n=this.normalBox.toRect(),r=this.targetBox.toRect(),p=e.rotationOrigin||g,c=p===g||p===a?_:m,l=p===g||p===a?m:_,h=p===g||p===u?r.origin:r.bottomRight(),d=n.topLeft().transformCopy(i),f=n.topRight().transformCopy(i),v=n.bottomRight().transformCopy(i),y=n.bottomLeft().transformCopy(i),b=w.geometry.Rect.fromPoints(d,f,v,y),x={};x[l]=r.origin[l]-b.origin[l];var S,C,A=Math.abs(d[l]+x[l]-h[l]),O=Math.abs(f[l]+x[l]-h[l]);Pt(A,10)===Pt(O,10)?(S=d,C=f):O<A?(S=f,C=v):(S=d,C=y);var I=S[c]+(C[c]-S[c])/2;return x[c]=r.center()[c]-I,w.geometry.transform().translate(x.x,x.y).rotate(o)},e}(be);Rt(Ce,{_autoReflow:!1});var we=Ce,Ae=function(t){function e(e,o,i){t.call(this,o),this.fields=e,this.chartService=i,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,i,n=e.label,r=e.icon,a=new $t,s=function(){return t},c=r.size,l=this.fields.text;if(mt(n)&&n.visible){var u=ot(n);u?l=u(this.fields):n.format&&(l=this.chartService.format.auto(n.format,l)),n.color||(n.color="inside"===n.position?"#fff":r.background),this.label=new be(l,M({},n)),this.label.aliasFor=s,"inside"!==n.position||mt(c)||(r.type===p?c=Math.max(this.label.box.width(),this.label.box.height()):(o=this.label.box.width(),i=this.label.box.height()),a.wrap(this.label.box))}r.width=o||c||7,r.height=i||c||7;var h=new pe(M({},r));h.aliasFor=s,this.marker=h,this.append(h),this.label&&this.append(this.label),h.reflow(new $t),this.wrapperBox=a.wrap(h.box)}},e.prototype.reflow=function(t){var e,o,i,n=this.options,r=this.label,s=this.marker,p=this.wrapperBox,c=t.center(),l=n.line.length,h=n.position;n.visible&&(lt(h,[u,f])?h===u?(i=p.alignTo(t,h).translate(-l,t.center().y-p.center().y),n.line.visible&&(e=[t.x1,c.y],this.linePoints=[e,[i.x2,c.y]],o=i.clone().wrapPoint(e))):(i=p.alignTo(t,h).translate(l,t.center().y-p.center().y),n.line.visible&&(e=[t.x2,c.y],this.linePoints=[e,[i.x1,c.y]],o=i.clone().wrapPoint(e))):h===a?(i=p.alignTo(t,h).translate(t.center().x-p.center().x,l),n.line.visible&&(e=[c.x,t.y2],this.linePoints=[e,[c.x,i.y1]],o=i.clone().wrapPoint(e))):(i=p.alignTo(t,h).translate(t.center().x-p.center().x,-l),n.line.visible&&(e=[c.x,t.y1],this.linePoints=[e,[c.x,i.y2]],o=i.clone().wrapPoint(e))),s&&s.reflow(i),r&&(r.reflow(i),s&&("outside"===n.label.position&&r.box.alignTo(s.box,h),r.reflow(r.box))),this.contentBox=i,this.targetBox=t,this.box=o||i)},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,i=o.visual;o.visible&&i?(this.visual=i(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=w.drawing.Path.fromPoints(this.linePoints,{stroke:{color:t.color,width:t.width,dashType:t.dashType}});A(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:Ct(t),text:mt(e.label)?e.label.text:"",visual:this.visual})},e}(ae);Rt(Ae,{icon:{visible:!0,type:p},label:{position:"inside",visible:!0,align:s,vAlign:s},line:{visible:!0},visible:!0,position:g,zIndex:2});var Oe=Ae;function Ie(t,e){var o=t.tickX,i=t.tickY,n=t.position,r=new w.drawing.Path({stroke:{width:e.width,color:e.color}});return t.vertical?r.moveTo(o,n).lineTo(o+e.size,n):r.moveTo(n,i).lineTo(n,i+e.size),A(r),r}function ke(t,e){var o=t.lineStart,i=t.lineEnd,n=t.position,r=new w.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});return t.vertical?r.moveTo(o,n).lineTo(i,n):r.moveTo(n,o).lineTo(n,i),A(r),r}var Pe=function(t){function e(e,o){void 0===o&&(o=new Z),t.call(this,e),this.chartService=o,this.options.visible||(this.options=M({},this.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),this.options.minorTicks=M({},{color:this.options.line.color,width:this.options.line.width,visible:"none"!==this.options.minorTickType},this.options.minorTicks,{size:this.options.minorTickSize,align:this.options.minorTickType}),this.options.majorTicks=M({},{color:this.options.line.color,width:this.options.line.width,visible:"none"!==this.options.majorTickType},this.options.majorTicks,{size:this.options.majorTickSize,align:this.options.majorTickType}),this.initFields(),this.options._deferLabels||this.createLabels(),this.createTitle(),this.createNotes()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){},e.prototype.labelsRange=function(){return{min:this.options.labels.skip,max:this.labelsCount()}},e.prototype.normalizeLabelRotation=function(t){var e=t.rotation;E(e)&&(t.alignRotation=e.align,t.rotation=e.angle)},e.prototype.createLabels=function(){var t=this.options,e=t.vertical?f:s,o=M({},t.labels,{align:e,zIndex:t.zIndex}),i=Math.max(1,o.step);if(this.clearLabels(),o.visible){this.normalizeLabelRotation(o),"auto"===o.rotation&&(o.rotation=0,t.autoRotateLabels=!0);for(var n=this.labelsRange(),r=n.min;r<n.max;r+=i){var a={index:r,count:n.max},p=this.createAxisLabel(r,o,a);p&&(this.append(p),this.labels.push(p))}}},e.prototype.clearLabels=function(){this.children=at(this.children,(function(t){return!(t instanceof we)})),this.labels=[]},e.prototype.clearTitle=function(){var t=this;this.title&&(this.children=at(this.children,(function(e){return e!==t.title})),this.title=void 0)},e.prototype.clear=function(){this.clearLabels(),this.clearTitle()},e.prototype.lineBox=function(){var t=this.options,e=this.box,o=t.vertical,i=t.labels.mirror,n=i?e.x1:e.x2,r=i?e.y2:e.y1,a=t.line.width||0;return o?new $t(n,e.y1,n,e.y2-a):new $t(e.x1,r,e.x2-a,r)},e.prototype.createTitle=function(){var t=this.options,e=M({rotation:t.vertical?-90:0,text:"",zIndex:1,visualSize:!0},t.title);if(e.visible&&e.text){var o=new be(e.text,e);this.append(o),this.title=o}},e.prototype.createNotes=function(){var t=this.options,e=t.notes,o=e.data||[];this.notes=[];for(var i=0;i<o.length;i++){var n=M({},e,o[i]);n.value=this.parseNoteValue(n.value);var r=new Oe({value:n.value,text:n.label.text,dataItem:n},n,this.chartService);r.options.visible&&(mt(r.options.position)?t.vertical&&!lt(r.options.position,[u,f])?r.options.position=t.reverse?u:f:t.vertical||lt(r.options.position,[g,a])||(r.options.position=t.reverse?a:g):t.vertical?r.options.position=t.reverse?u:f:r.options.position=t.reverse?a:g,this.append(r),this.notes.push(r))}},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 w.drawing.Group({zIndex:-2}),this.appendVisual(this._gridLines)),t},e.prototype.createTicks=function(t){var e=this.options,o=this.lineBox(),i=e.labels.mirror,n=e.majorTicks.visible?e.majorUnit:0,r={vertical:e.vertical};function a(e,n,a){var s=e.length,p=Math.max(1,n.step);if(n.visible)for(var c=n.skip;c<s;c+=p)mt(a)&&c%a==0||(r.tickX=i?o.x2:o.x2-n.size,r.tickY=i?o.y1-n.size:o.y1,r.position=e[c],t.append(Ie(r,n)))}a(this.getMajorTickPositions(),e.majorTicks),a(this.getMinorTickPositions(),e.minorTicks,n/e.minorUnit)},e.prototype.createLine=function(){var t=this.options,e=t.line,o=this.lineBox();if(e.width>0&&e.visible){var i=new w.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});i.moveTo(o.x1,o.y1).lineTo(o.x2,o.y2),t._alignLines&&A(i);var n=this._lineGroup=new w.drawing.Group;n.append(i),this.visual.append(n),this.createTicks(n)}},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=w.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||[],i=e.vertical,n=this.plotArea;if(0!==o.length){for(var r=this._plotbandGroup=new w.drawing.Group({zIndex:-1}),a=at(this.pane.axes,(function(e){return e.options.vertical!==t.options.vertical}))[0],s=0;s<o.length;s++){var p=o[s],c=void 0,l=void 0,h=p.label,d=void 0;if(i?(c=(a||n.axisX).lineBox(),l=t.getSlot(p.from,p.to,!0)):(c=t.getSlot(p.from,p.to,!0),l=(a||n.axisY).lineBox()),h&&(h.vAlign=h.position||u,d=t.createPlotBandLabel(h,p,new $t(c.x1,l.y1,c.x2,l.y2))),0!==c.width()&&0!==l.height()){var f=new w.geometry.Rect([c.x1,l.y1],[c.width(),l.height()]),g=w.drawing.Path.fromRect(f,{fill:{color:p.color,opacity:p.opacity},stroke:null});r.append(g),d&&r.append(d)}}this.appendVisual(r)}},e.prototype.createPlotBandLabel=function(t,e,o){if(!1===t.visible)return null;var i,n=t.text;if(mt(t)&&t.visible){var r=ot(t);r?n=r({text:n,item:e}):t.format&&(n=this.chartService.format.auto(t.format,n)),t.color||(t.color=this.options.labels.color)}return(i=new be(n,t)).reflow(o),i.renderVisual(),i.visual},e.prototype.createGridLines=function(t){var e=this.options,o=e.minorGridLines,i=e.majorGridLines,n=e.minorUnit,r=e.vertical,a=t.options.line.visible,s=i.visible?e.majorUnit:0,p=t.lineBox(),c=p[r?"y1":"x1"],l={lineStart:p[r?"x1":"y1"],lineEnd:p[r?"x2":"y2"],vertical:r},u=[],h=this.gridLinesVisual();function d(t,e,o){var i=t.length,n=Math.max(1,e.step);if(e.visible)for(var r=e.skip;r<i;r+=n){var s=Pt(t[r]);lt(s,u)||r%o==0||a&&c===s||(l.position=s,h.append(ke(l,e)),u.push(s))}}return d(this.getMajorTickPositions(),i),d(this.getMinorTickPositions(),o,s/n),h.children},e.prototype.reflow=function(t){for(var e=this.options,o=this.labels,i=this.title,n=e.vertical,r=o.length,a=n?"width":"height",s=i?i.box[a]():0,p=this.getActualTickSize()+e.margin+s,c=((this.getRoot()||{}).box||t)[a](),l=0,u=0;u<r;u++){var h=o[u].box[a]();h+p<=c&&(l=Math.max(l,h))}this.box=n?new $t(t.x1,t.y1,t.x1+l+p,t.y2):new $t(t.x1,t.y1,t.x2,t.y1+l+p),this.arrangeTitle(),this.arrangeLabels(),this.arrangeNotes()},e.prototype.getLabelsTickPositions=function(){return this.getMajorTickPositions()},e.prototype.labelTickIndex=function(t){return t.index},e.prototype.arrangeLabels=function(){for(var t=this.options,e=this.labels,o=this.labelsBetweenTicks(),i=t.vertical,n=t.labels.mirror,r=this.getLabelsTickPositions(),a=0;a<e.length;a++){var s=e[a],p=this.labelTickIndex(s),c=i?s.box.height():s.box.width(),l=r[p],u=r[p+1],h=void 0,d=void 0;if(i){if(o)h=l+(u-l)/2-c/2;else h=l-c/2;d=h}else o?(h=l,d=u):d=(h=l-c/2)+c;this.positionLabel(s,n,h,d)}},e.prototype.positionLabel=function(t,e,o,i){void 0===i&&(i=o);var n,r=this.options,s=r.vertical,p=this.lineBox(),c=this.getActualTickSize()+r.margin;if(s){var l=p.x2;e?(l+=c,t.options.rotationOrigin=u):(l-=c+t.box.width(),t.options.rotationOrigin=f),n=t.box.move(l,o)}else{var h=p.y1;e?(h-=c+t.box.height(),t.options.rotationOrigin=a):(h+=c,t.options.rotationOrigin=g),n=new $t(o,h,i,h+t.box.height())}t.reflow(n)},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),i=0,n=0;n<o;n++){var r=Math.abs(t[n+1]-t[n]),a=e[n].box,s=this.autoRotateLabelAngle(a,r);if(0!==s&&(i=s),-90===i)break}if(0!==i){for(var p=0;p<e.length;p++)e[p].options.rotation=i,e[p].reflow(new $t);return!0}},e.prototype.arrangeTitle=function(){var t=this.options,e=this.title,o=t.labels.mirror,i=t.vertical;e&&(i?(e.options.align=o?f:u,e.options.vAlign=e.options.position):(e.options.align=e.options.position,e.options.vAlign=o?g:a),e.reflow(this.box))},e.prototype.arrangeNotes=function(){for(var t=0;t<this.notes.length;t++){var e=this.notes[t],o=e.options.value,i=void 0;mt(o)?(this.shouldRenderNote(o)?e.show():e.hide(),i=this.noteSlot(o)):e.hide(),e.reflow(i||this.lineBox())}},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.alignTo=function(t){var e=t.lineBox(),o=this.options.vertical,i=o?m:_;this.box.snapTo(e,i),o?this.box.shrink(0,this.lineBox().height()-e.height()):this.box.shrink(this.lineBox().width()-e.width(),0),this.box[i+1]-=this.lineBox()[i+1]-e[i+1],this.box[i+2]-=this.lineBox()[i+2]-e[i+2]},e.prototype.axisLabelText=function(t,e,o){var i,n=this,r=ot(e),a=function(){return e.format?n.chartService.format.localeAuto(e.format,[t],e.culture):t};r?i=r(Object.assign({},o,{get text(){return a()},value:t,format:e.format,culture:e.culture})):i=a();return i},e.prototype.slot=function(t,e,o){var i=this.getSlot(t,e,o);if(i)return i.toRect()},e.prototype.contentBox=function(){var t=this.box.clone(),e=this.labels;if(e.length){var o=this.options.vertical?m:_;if(this.chartService.isPannable(o)){var i=this.maxLabelOffset();t[o+1]-=i.start,t[o+2]+=i.end}else{e[0].options.visible&&t.wrap(e[0].box);var n=e[e.length-1];n.options.visible&&t.wrap(n.box)}}return t},e.prototype.maxLabelOffset=function(){for(var t=this.options,e=t.vertical,o=t.reverse,i=this.labelsBetweenTicks(),n=this.getLabelsTickPositions(),r=e?m:_,a=this.labels,s=o?1:0,p=o?0:1,c=0,l=0,u=0;u<a.length;u++){var h=a[u],d=this.labelTickIndex(h),f=void 0,g=void 0;i?(f=n[d+s],g=n[d+p]):f=g=n[d],c=Math.max(c,f-h.box[r+1]),l=Math.max(l,h.box[r+2]-g)}return{start:c,end:l}},e.prototype.limitRange=function(t,e,o,i,n){var r=this.options;if(t<o&&n<0&&(!mt(r.min)||r.min<=o)||i<e&&n>0&&(!mt(r.max)||i<=r.max))return null;if(e<o&&n>0||i<t&&n<0)return{min:t,max:e};var a=e-t,s=t,p=e;return t<o&&n<0?(s=Ot(t,o,i),p=Ot(t+a,o+a,i)):e>i&&n>0&&(p=Ot(e,o,i),s=Ot(e-a,o,i-a)),{min:s,max:p}},e.prototype.valueRange=function(){return{min:this.seriesMin,max:this.seriesMax}},e.prototype.labelsBetweenTicks=function(){return!this.options.justified},e.prototype.prepareUserOptions=function(){},e}(ne);Rt(Pe,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:r,visible:!0},title:{visible:!0,position:s},majorTicks:{align:"outside",size:4,skip:0,step:1},minorTicks:{align:"outside",size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:"outside",minorTickType:"none",majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:r,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1});var je=Pe,Te="days",Me="years",Ee={years:31536e6,months:26784e5,weeks:6048e5,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1};function Re(t,e){return t.getTime()-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset())}function De(t,e){return new Date(t.getTime()+e)}function Le(t){var e;return t instanceof Date?e=t:t&&(e=new Date(t)),e}function Be(t,e){return 0===e&&23===t.getHours()&&(t.setHours(t.getHours()+2),!0)}function Ve(t,e,o,i){var n=t;if(t){var r=Le(t),a=r.getHours();o===Me?Be(n=new Date(r.getFullYear()+e,0,1),0):"months"===o?Be(n=new Date(r.getFullYear(),r.getMonth()+e,1),a):"weeks"===o?Be(n=Ve(function(t,e){void 0===e&&(e=0);var o=0,i=t.getDay();if(!isNaN(i))for(;i!==e;)0===i?i=6:i--,o++;return De(t,864e5*-o)}(r,i),7*e,Te),a):o===Te?Be(n=new Date(r.getFullYear(),r.getMonth(),r.getDate()+e),a):"hours"===o?n=function(t,e){var o=new Date(t);o.setMinutes(0,0,0);var i=6e4*(t.getTimezoneOffset()-o.getTimezoneOffset());return De(o,i+36e5*e)}(r,e):"minutes"===o?(n=De(r,6e4*e)).getSeconds()>0&&n.setSeconds(0):"seconds"===o?n=De(r,1e3*e):"milliseconds"===o&&(n=De(r,e)),"milliseconds"!==o&&n.getMilliseconds()>0&&n.setMilliseconds(0)}return n}function ze(t,e,o){return Ve(Le(t),0,e,o)}function Ne(t,e,o){var i=Le(t);return i&&ze(i,e,o).getTime()===i.getTime()?i:Ve(i,1,e,o)}function Fe(t,e){return t&&e?t.getTime()-e.getTime():-1}function Ge(t,e){return t.getTime()-e}function He(t){if(b(t)){for(var e=[],o=0;o<t.length;o++)e.push(He(t[o]));return e}if(t)return Le(t).getTime()}function Ue(t,e){return t&&e?He(t)===He(e):t===e}function We(t,e,o){return Re(t,e)/Ee[o]}function Xe(t,e,o,i){var n=Le(t),r=Le(e);return("months"===o?n.getMonth()-r.getMonth()+12*(n.getFullYear()-r.getFullYear())+We(n,new Date(n.getFullYear(),n.getMonth()),Te)/new Date(n.getFullYear(),n.getMonth()+1,0).getDate():o===Me?n.getFullYear()-r.getFullYear()+Xe(n,new Date(n.getFullYear(),0),"months",1)/12:o===Te||"weeks"===o?We(n,r,o):Ge(n,e)/Ee[o])/i}function Ye(t,e,o){return o===Me?e.getFullYear()-t.getFullYear():"months"===o?12*Ye(t,e,Me)+e.getMonth()-t.getMonth():o===Te?Math.floor(Ge(e,t)/864e5):Math.floor(Ge(e,t)/Ee[o])}function qe(t,e){return k(e)&&t.parseDate(e)||Le(e)}function Ke(t,e){if(b(e)){for(var o=[],i=0;i<e.length;i++)o.push(qe(t,e[i]));return o}return qe(t,e)}function Ze(t,e){return I(t.weekStartDay)?t.weekStartDay:e&&e.firstDay?e.firstDay():0}var $e=function(t){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=mt(t.min),i=mt(t.max);if(t.srcCategories=t.categories=e,(o||i)&&e.length){var n,r=o?Math.floor(t.min):0;n=i?t.justified?Math.floor(t.max)+1:Math.ceil(t.max):e.length,t.categories=t.categories.slice(r,n)}return t},e.prototype.rangeIndices=function(){var t=this.options,e=t.categories.length||1;return{min:I(t.min)?t.min%1:0,max:I(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,i=I(o.min)?o.min:0;if(e=I(o.max)?o.max:I(o.min)?i+o.categories.length:this.totalRange().max||1,t){var n=this.totalRange();i=Ot(i,0,n.max),e=Ot(e,0,n.max)}return{min:i,max:e}},e.prototype.range=function(){var t=this.options;return{min:I(t.min)?t.min:0,max:I(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,i=this.lineBox();return{scale:(this.options.vertical?i.height():i.width())/(o-e||1)*(this.options.reverse?-1:1),box:i,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?m:_,i=t[o+1],n=t[o+2],r=e[0],a=At(e);(r.box[o+1]>n||r.box[o+2]<i)&&(r.options.visible=!1),(a.box[o+1]>n||a.box[o+2]<i)&&(a.options.visible=!1)}},e.prototype.getMajorTickPositions=function(){return this.getTicks().majorTicks},e.prototype.getMinorTickPositions=function(){return this.getTicks().minorTicks},e.prototype.getLabelsTickPositions=function(){return this.getTicks().labelTicks},e.prototype.tickIndices=function(t){for(var e=this.rangeIndices(),o=e.min,i=e.max,n=Math.ceil(i),r=Math.floor(o),a=[];r<=n;)a.push(r),r+=t;return a},e.prototype.getTickPositions=function(t){for(var e=this.options,o=e.vertical,i=e.reverse,n=this.scaleOptions(),r=n.scale,a=n.box,s=n.min,p=a[(o?m:_)+(i?2:1)],c=this.tickIndices(t),l=[],u=0;u<c.length;u++)l.push(p+Pt(r*(c[u]-s),3));return l},e.prototype.getTicks=function(){var t=this.options,e=this._ticks,o=this.rangeIndices(),i=this.lineBox(),n=i.getHash()+o.min+","+o.max+t.reverse+t.justified;if(e._hash!==n){var r=t.minorTicks.visible||t.minorGridLines.visible;e._hash=n,e.labelTicks=this.getTickPositions(1),e.majorTicks=this.filterOutOfRangePositions(e.labelTicks,i),e.minorTicks=r?this.filterOutOfRangePositions(this.getTickPositions(.5),i):[]}return e},e.prototype.filterOutOfRangePositions=function(t,e){if(!t.length)return t;for(var o=this.options.vertical?m:_,i=function(t){return e[o+1]<=t&&t<=e[o+2]},n=t.length-1,r=0;!i(t[r])&&r<=n;)r++;for(var a=n;!i(t[a])&&a>=0;)a--;return t.slice(r,a+1)},e.prototype.getSlot=function(t,e,o){var i=this.options,n=i.reverse,r=i.justified,a=i.vertical,s=this.scaleOptions(),p=s.scale,c=s.box,l=s.min,u=a?m:_,h=c[u+(n?2:1)],d=c.clone(),f=!mt(e),g=Tt(t,0),v=Tt(e,g);v=Math.max(v-1,g);var y=h+(g-l)*p,b=h+((v=Math.max(g,v))+1-l)*p;return f&&r&&(b=y),o&&(y=Ot(y,c[u+1],c[u+2]),b=Ot(b,c[u+1],c[u+2])),d[u+1]=n?b:y,d[u+2]=n?y:b,d},e.prototype.limitSlot=function(t){var e=this.options.vertical?m:_,o=this.lineBox(),i=t.clone();return i[e+1]=Ot(t[e+1],o[e+1],o[e+2]),i[e+2]=Ot(t[e+2],o[e+1],o[e+2]),i},e.prototype.slot=function(e,o,i){var n=Math.floor(this.options.min||0),r=e,a=o;return"string"==typeof r?r=this.categoryIndex(r):I(r)&&(r-=n),"string"==typeof a?a=this.categoryIndex(a):I(a)&&(a-=n),t.prototype.slot.call(this,r,a,i)},e.prototype.pointCategoryIndex=function(t){var e=this.options,o=e.reverse,i=e.justified,n=e.vertical?m:_,r=this.scaleOptions(),a=r.scale,s=r.box,p=r.min,c=r.max,l=o?c:p,u=s[n+1],h=s[n+2],d=t[n];if(d<u||d>h)return null;var f=l+(d-u)/a,g=f%1;return i?f=Math.round(f):0===g&&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(),i=e.vertical?o.height():o.width(),n=e.categories.length,r=Pt(t/(i/n),10);return{min:r,max:n+r}},e.prototype.zoomRange=function(t){var e=this.totalRangeIndices(),o=this.totalRange(),i=o.min,n=o.max,r=Ot(e.min+t,i,n),a=Ot(e.max-t,i,n);if(a-r>0)return{min:r,max:a}},e.prototype.scaleRange=function(t){var e=this.options.categories.length,o=t*e;return{min:-o,max:e+o}},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,i=this.totalRangeIndices(!0),n=i.min,r=i.max,a=Math.floor(n);return e?(n=Math.ceil(n),r=Math.floor(r)):(n=Math.floor(n),r=Math.ceil(r)),{min:(n>o.skip?o.skip+o.step*Math.ceil((n-o.skip)/o.step):o.skip)-a,max:(t.categories.length?r+(e?1:0):0)-a}},e.prototype.createAxisLabel=function(t,e,o){var i=this.options,n=i.dataItems?i.dataItems[t]:null,r=Tt(i.categories[t],"");o.dataItem=n;var a=this.axisLabelText(r,e,o);return new we(r,a,t,n,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?m:_,i=e[o+1],n=e[o+2],r=0;r<t.length;r++){var a=t[r];a.box&&(n<a.box[o+1]||a.box[o+2]<i)&&a.hide()}},e.prototype.pan=function(t){var e=this.totalRangeIndices(!0),o=this.scaleOptions().scale,i=Pt(t/o,10),n=this.totalRange(),r=e.min+i,a=e.max+i;return this.limitRange(r,a,0,n.max,i)},e.prototype.pointsRange=function(t,e){var o=this.options,i=o.reverse,n=o.vertical?m:_,r=this.totalRangeIndices(!0),a=this.scaleOptions(),s=a.scale,p=a.box[n+(i?2:1)],c=t[n]-p,l=e[n]-p,u=r.min+c/s,h=r.min+l/s,d=Math.min(u,h),f=Math.max(u,h);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;return this._categoriesMap?this._categoriesMap.get(t):function(t,e){if(t instanceof Date){for(var o=e.length,i=0;i<o;i++)if(Ue(e[i],t))return i;return-1}return e.indexOf(t)}(t,e.srcCategories)},e.prototype.currentRangeIndices=function(){var t=this.options,e=0;return I(t.min)&&(e=Math.floor(t.min)),{min:e,max:I(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 ct,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}(je);Rt($e,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:r},labels:{zIndex:1},justified:!1,_deferLabels:!0});var Je=$e,Qe={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"},to=["milliseconds","seconds","minutes","hours",Te,"weeks","months",Me];function eo(t){var e=t._range;return e||((e=t._range=Dt(t)).min=Le(e.min),e.max=Le(e.max)),e}var oo=function(t){this.options=t};oo.prototype.displayIndices=function(){return{min:0,max:1}},oo.prototype.displayRange=function(){return{}},oo.prototype.total=function(){return{}},oo.prototype.valueRange=function(){return{}},oo.prototype.valueIndex=function(){return-1},oo.prototype.values=function(){return[]},oo.prototype.totalIndex=function(){return-1},oo.prototype.valuesCount=function(){return 0},oo.prototype.totalCount=function(){return 0},oo.prototype.dateAt=function(){return null};var io=function(t,e,o){this.options=o,o.baseUnitStep=o.baseUnitStep||1;var i=o.roundToBaseUnit,n=o.justified;this.start=Ve(t,0,o.baseUnit,o.weekStartDay);var r=this.roundToTotalStep(e),a=!n&&Ue(e,r)&&!o.justifyEnd;this.end=this.roundToTotalStep(e,!n,a?1:0);var s=o.min||t;this.valueStart=this.roundToTotalStep(s),this.displayStart=i?this.valueStart:s;var p=o.max;if(p){var c=!n&&Ue(p,this.roundToTotalStep(p))?-1:0;this.valueEnd=this.roundToTotalStep(p,!1,c),this.displayEnd=i?this.roundToTotalStep(p,!n):o.max}else this.valueEnd=r,this.displayEnd=i||a?this.end:e;this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))};function no(t,e,o){for(var i,n,r,a=eo(t.categories),s=(t.max||a.max)-(t.min||a.min),p=t.autoBaseUnitSteps,c=t.maxDateGroups,l="fit"===t.baseUnit,u=e?to.indexOf(e):0,h=l?to[u++]:t.baseUnit,d=s/Ee[h],f=d;!n||d>=c;){i=i||p[h].slice(0);do{r=i.shift()}while(r&&e===h&&r<o);if(r)d=f/(n=r);else{if(h===At(to)){n=Math.ceil(f/c);break}if(!l){d>c&&(n=Math.ceil(f/c));break}h=to[u++]||At(to),f=s/Ee[h],i=null}}t.baseUnitStep=n,t.baseUnit=h}function ro(t){var e=(t.baseUnit||"").toLowerCase();return"fit"!==e&&!lt(e,to)&&function(t){for(var e,o,i=t.categories,n=mt(i)?i.length:0,r=h,a=0;a<n;a++){var s=i[a];if(s&&e){var p=Re(s,e);p>0&&(o=(r=Math.min(r,p))>=31536e6?Me:r>=24192e5?"months":r>=6048e5?"weeks":r>=864e5?Te:r>=36e5?"hours":r>=6e4?"minutes":"seconds")}e=s}t.baseUnit=o||Te}(t),"fit"!==e&&"auto"!==t.baseUnitStep||no(t),t}io.prototype.displayRange=function(){return{min:this.displayStart,max:this.displayEnd}},io.prototype.displayIndices=function(){if(!this._indices){var t=this.options,e=t.baseUnit,o=t.baseUnitStep,i=Xe(this.displayStart,this.valueStart,e,o),n=Xe(this.displayEnd,this.valueStart,e,o);this._indices={min:i,max:n}}return this._indices},io.prototype.total=function(){return{min:this.start,max:this.end}},io.prototype.totalCount=function(){return this.totalIndex(this.end)+(this.options.justified?1:0)},io.prototype.valueRange=function(){return{min:this.valueStart,max:this.valueEnd}},io.prototype.valueIndex=function(t){var e=this.options;return Math.floor(Xe(t,this.valueStart,e.baseUnit,e.baseUnitStep))},io.prototype.totalIndex=function(t){var e=this.options;return Math.floor(Xe(t,this.start,e.baseUnit,e.baseUnitStep))},io.prototype.dateIndex=function(t){var e=this.options;return Xe(t,this.valueStart,e.baseUnit,e.baseUnitStep)},io.prototype.valuesCount=function(){return this.valueIndex(this.valueEnd)+1},io.prototype.values=function(){var t=this._values;if(!t){var e=this.options,o=this.valueRange();this._values=t=[];for(var i=o.min;i<=o.max;)t.push(i),i=Ve(i,e.baseUnitStep,e.baseUnit,e.weekStartDay)}return t},io.prototype.dateAt=function(t,e){var o=this.options;return Ve(e?this.start:this.valueStart,o.baseUnitStep*t,o.baseUnit,o.weekStartDay)},io.prototype.roundToTotalStep=function(t,e,o){var i=this.options,n=i.baseUnit,r=i.baseUnitStep,a=i.weekStartDay,s=this.start,p=Xe(t,s,n,r),c=e?Math.ceil(p):Math.floor(p);return o&&(c+=o),Ve(s,c*r,n,a)};var ao=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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,i=this.options,n=i.categories||[];if(n._parsed||((n=Ke(o,n))._parsed=!0),i=M({roundToBaseUnit:!0},i,{categories:n,min:qe(o,i.min),max:qe(o,i.max),weekStartDay:Ze(i,o)}),e.panning&&e.isPannable(i.vertical?m:_)&&(i.roundToBaseUnit=!1),i.userSetBaseUnit=i.userSetBaseUnit||i.baseUnit,i.userSetBaseUnitStep=i.userSetBaseUnitStep||i.baseUnitStep,this.options=i,i.srcCategories=n,n.length>0){var r=eo(n),a=i.maxDivisions;if(this.dataRange=new io(r.min,r.max,ro(i)),a){var s=this.dataRange.displayRange(),p=Object.assign({},i,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:s.min,max:s.max,maxDateGroups:a}),c=this.dataRange.options;no(p,c.baseUnit,c.baseUnitStep),this.divisionRange=new io(r.min,r.max,p)}else this.divisionRange=this.dataRange}else i.baseUnit=i.baseUnit||Te,this.dataRange=this.divisionRange=new oo(i);this.rangeLabels=[]},e.prototype.tickIndices=function(e){var o=this.dataRange,i=this.divisionRange,n=i.valuesCount();if(!this.options.maxDivisions||!n)return t.prototype.tickIndices.call(this,e);var r=[],a=i.values(),s=0;this.options.justified||(a=a.concat(i.dateAt(n)),s=.5);for(var p=0;p<a.length;p++)if(r.push(o.dateIndex(a[p])+s),1!==e&&p>=1){var c=r.length-1;r.splice(p,0,r[c-1]+(r[c]-r[c-1])*e)}return r},e.prototype.shouldRenderNote=function(t){var e=this.range(),o=this.options.categories||[];return Fe(t,e.min)>=0&&Fe(t,e.max)<=0&&o.length},e.prototype.parseNoteValue=function(t){return qe(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,i=e.weekStartDay,n=e.vertical,r=this.lineBox(),a=n?r.height():r.width(),s=this.range(),p=a/(s.max-s.min),c=Pt(t/p,10);if(s.min&&s.max){var l=De(e.min||s.min,c),u=De(e.max||s.max,c);s={min:Ve(l,0,o,i),max:Ve(u,0,o,i)}}return s},e.prototype.scaleRange=function(t){var e=Math.abs(t),o=this.range(),i=o.min,n=o.max;if(i&&n){for(;e--;){var r=Ge(i,n),a=Math.round(.1*r);t<0?(i=De(i,a),n=De(n,-a)):(i=De(i,-a),n=De(n,a))}o={min:i,max:n}}return o},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(),i=e.vertical?o.height():o.width(),n=this.dataRange.displayRange(),r=n.min,a=n.max,s=this.dataRange.total(),p=Pt(t/(i/(a-r)),10)*(e.reverse?-1:1),c=De(r,p),l=De(a,p),u=this.limitRange(He(c),He(l),He(s.min),He(s.max),p);return u?(u.min=Le(u.min),u.max=Le(u.max),u.baseUnit=e.baseUnit,u.baseUnitStep=e.baseUnitStep||1,u.userSetBaseUnit=e.userSetBaseUnit,u.userSetBaseUnitStep=e.userSetBaseUnitStep,u):void 0},e.prototype.pointsRange=function(e,o){if(this.isEmpty())return null;var i=t.prototype.pointsRange.call(this,e,o),n=this.dataRange.displayRange(),r=this.dataRange.displayIndices(),a=Ge(n.max,n.min)/(r.max-r.min),s=this.options;return{min:De(n.min,i.min*a),max:De(n.min,i.max*a),baseUnit:s.userSetBaseUnit||s.baseUnit,baseUnitStep:s.userSetBaseUnitStep||s.baseUnitStep}},e.prototype.zoomRange=function(t){if(this.isEmpty())return null;var e=this.options,o="fit"===e.userSetBaseUnit,i=this.dataRange.total(),n=this.dataRange.displayRange(),r=n.min,a=n.max,s=this.dataRange.options,p=s.weekStartDay,c=s.baseUnit,l=s.baseUnitStep,u=Ve(r,t*l,c,p),h=Ve(a,-t*l,c,p);if(o){var d,f,g=e.autoBaseUnitSteps,v=e.maxDateGroups,y=At(g[c])*v*Ee[c],_=Ge(a,r),m=Ge(h,u),b=to.indexOf(c);if(m<Ee[c]&&"milliseconds"!==c)c=to[b-1],u=De(r,f=(_-(v-1)*(d=At(g[c]))*Ee[c])/2),h=De(a,-f);else if(m>y&&c!==Me){var x=0;do{b++,c=to[b],x=0,f=2*Ee[c];do{d=g[c][x],x++}while(x<g[c].length&&f*d<_)}while(c!==Me&&f*d<_);(f=(f*d-_)/2)>0&&(u=De(r,-f),h=De(a,f),u=De(u,Ot(h,i.min,i.max)-h),h=De(h,Ot(u,i.min,i.max)-u))}}return u<i.min&&(u=i.min),h>i.max&&(h=i.max),u&&h&&Ge(h,u)>0?{min:u,max:h,baseUnit:e.userSetBaseUnit||e.baseUnit,baseUnitStep:e.userSetBaseUnitStep||e.baseUnitStep}:void 0},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(),i=t.vertical,n=t.rangeLabels.mirror||t.labels.mirror,r=e[0];if(r){var a=i?o.y1-r.box.height()/2:o.x1;this.positionLabel(r,n,a)}var s=e[1];if(s){var p=i?o.y2-s.box.height()/2:o.x2;this.positionLabel(s,n,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 i=0;i<e.length;i++){if(!a(o,e[i]))break}var n=t[1];if(n&&n.options.visible)for(var r=e.length-1;r>0;--r){if(!a(n,e[r]))break}}function a(t,e){return!(e.options.visible&&!e.box.overlaps(t.box))&&(e.options.visible=!1,!0)}},e.prototype.contentBox=function(){for(var e=t.prototype.contentBox.call(this),o=this.rangeLabels,i=0;i<o.length;i++){var n=o[i];n.options.visible&&e.wrap(n.box)}return e},e.prototype.createAxisLabel=function(t,e,o){void 0===o&&(o={});var i=this.options,n=i.dataItems&&!i.maxDivisions?i.dataItems[t]:null,r=this.divisionRange.dateAt(t),a=e.dateFormats[this.divisionRange.options.baseUnit];e.format=e.format||a,o.dataItem=n;var s=this.axisLabelText(r,e,o);if(s)return new we(r,s,t,n,e)},e.prototype.createRangeLabels=function(){var t=this,e=this.divisionRange,o=e.displayStart,i=e.displayEnd,n=this.options,r=Object.assign({},n.labels,n.rangeLabels,{align:s,zIndex:n.zIndex});if(!0===r.visible){this.normalizeLabelRotation(r),r.alignRotation=s,"auto"===r.rotation&&(r.rotation=0,n.autoRotateRangeLabels=!0);var a=r.dateFormats[this.divisionRange.options.baseUnit];r.format=r.format||a;var p=function(e,o,i){if(i){var n=new we(o,i,e,null,r);t.append(n),t.rangeLabels.push(n)}};p(0,o,this.axisLabelText(o,r,{index:0,count:2})),p(1,i,this.axisLabelText(i,r,{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,i){var n=2*Math.abs(o[i+1]-o[i]),r=t.autoRotateLabelAngle(e.box,n);0!==r&&(e.options.rotation=r,e.reflow(new $t))},i=this.getMajorTickPositions();o(e[0],i,0),o(e[1],i,i.length-2)}},e.prototype.categoryIndex=function(t){return this.dataRange.valueIndex(t)},e.prototype.slot=function(t,e,o){var i=this.dataRange,n=t,r=e;n instanceof Date&&(n=i.dateIndex(n)),r instanceof Date&&(r=i.dateIndex(r));var a=this.getSlot(n,r,o);if(a)return a.toRect()},e.prototype.getSlot=function(e,o,i){var n=e,r=o;return"object"==typeof n&&(n=this.categoryIndex(n)),"object"==typeof r&&(r=this.categoryIndex(r)),t.prototype.getSlot.call(this,n,r,i)},e.prototype.valueRange=function(){var t=eo(this.options.srcCategories);return{min:Le(t.min),max:Le(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=eo(t.srcCategories);return new io(e.min,e.max,Object.assign({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:t.justified})).displayRange()},e}(Je);Rt(ao,{type:c,labels:{dateFormats:Qe},rangeLabels:{visible:!1},autoBaseUnitSteps:{milliseconds:[1,10,100],seconds:[1,2,5,15,30],minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10});var so=ao;function po(t,e){return Pt(Math.floor(t/e)*e,10)}function co(t,e){return Pt(Math.ceil(t/e)*e,10)}function lo(t){return Math.max(Math.min(t,3e5),-3e5)}var uo=Math.pow(10,-9),ho=function(t){function e(e,o,i,n){t.call(this,Object.assign({},i,{seriesMin:e,seriesMax:o}),n)}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 i=o.narrowRange,n=function(t,e,o){if(!t&&!e)return 0;var i;if(t>=0&&e>=0){var n=t===e?0:t;if(!1===o||!o&&(e-n)/e>.2)return 0;i=Math.max(0,n-(e-n)/2)}else i=t;return i}(t,e,i),r=function(t,e,o){if(!t&&!e)return 1;var i;if(t<=0&&e<=0){var n=t===e?0:e,r=Math.abs((n-t)/n);if(!1===o||!o&&r>.2)return 0;i=Math.min(0,n-(t-n)/2)}else i=e;return i}(t,e,i),a=qt(n,r),s={majorUnit:a};!1!==o.roundToMajorUnit&&(n<0&&fo(n,a,1/3)&&(n-=a),r>0&&fo(r,a,1/3)&&(r+=a));return s.min=po(n,a),s.max=co(r,a),s}(t.seriesMin,t.seriesMax,t);return this.totalOptions=function(t,e){return{min:mt(e.min)?Math.min(t.min,e.min):t.min,max:mt(e.max)?Math.max(t.max,e.max):t.max,majorUnit:t.majorUnit}}(e,t),function(t,e){var o,i,n=e;if(e){!function(t,e){for(var o=0;o<e.length;o++){var i=e[o];null===t[i]&&(t[i]=void 0)}}(e,["min","max"]),o=mt(e.min),i=mt(e.max);var r=o||i;r&&e.min===e.max&&(e.min>0?e.min=0:e.max=1),e.majorUnit?(t.min=po(t.min,e.majorUnit),t.max=co(t.max,e.majorUnit)):r&&(n=M(t,e),t.majorUnit=qt(n.min,n.max))}t.minorUnit=(n.majorUnit||t.majorUnit)/5;var a=M(t,n);a.min>=a.max&&(o&&!i?a.max=a.min+a.majorUnit:!o&&i&&(a.min=a.max-a.majorUnit));return a}(e,t)},e.prototype.initFields=function(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax},e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.startValue=function(){return 0},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.getDivisions=function(t){if(0===t)return 1;var e=this.options,o=e.max-e.min;return Math.floor(Pt(o/t,3))+1},e.prototype.getTickPositions=function(t,e){var o=this.options,i=o.vertical,n=o.reverse,r=this.lineBox(),a=t*((i?r.height():r.width())/(o.max-o.min)),s=this.getDivisions(t),p=(i?-1:1)*(n?-1:1),c=[],l=r[(i?m:_)+(1===p?1:2)],u=0;e&&(u=e/t);for(var h=0;h<s;h++)h%u!=0&&c.push(Pt(l,3)),l+=a*p;return c},e.prototype.getMajorTickPositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.getMinorTickPositions=function(){return this.getTickPositions(this.options.minorUnit)},e.prototype.getSlot=function(t,e,o){void 0===o&&(o=!1);var i,n,r=this.options,a=r.vertical,s=r.reverse,p=a?m:_,c=this.lineBox(),l=c[p+(s?2:1)],u=(s?-1:1)*((a?c.height():c.width())/(r.max-r.min)),h=new $t(c.x1,c.y1,c.x1,c.y1),d=t,f=e;return mt(d)||(d=f||0),mt(f)||(f=d||0),o&&(d=Math.max(Math.min(d,r.max),r.min),f=Math.max(Math.min(f,r.max),r.min)),a?(i=r.max-Math.max(d,f),n=r.max-Math.min(d,f)):(i=Math.min(d,f)-r.min,n=Math.max(d,f)-r.min),h[p+1]=lo(l+u*(s?n:i)),h[p+2]=lo(l+u*(s?i:n)),h},e.prototype.getValue=function(t){var e=this.options,o=e.vertical,i=e.reverse,n=Number(e.max),r=Number(e.min),a=o?m:_,s=this.lineBox(),p=s[a+(i?2:1)],c=o?s.height():s.width(),l=(i?-1:1)*(t[a]-p),u=l*((n-r)/c);return l<0||l>c?null:Pt(o?n-u:r+u,10)},e.prototype.translateRange=function(t){var e=this.options,o=e.vertical,i=e.reverse,n=e.max,r=e.min,a=this.lineBox(),s=o?a.height():a.width(),p=Pt(t/(s/(n-r)),10);return!o&&!i||o&&i||(p=-p),{min:r+p,max:n+p,offset:p}},e.prototype.scaleRange=function(t){var e=this.options,o=-t*e.majorUnit;return{min:e.min-o,max:e.max+o}},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,o){var i=this.options,n=Pt(i.min+t*i.majorUnit,10),r=this.axisLabelText(n,e,o);return new we(n,r,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),i=this.getValue(e),n=Math.min(o,i),r=Math.max(o,i);if(this.isValidRange(n,r))return{min:n,max:r}},e.prototype.zoomRange=function(t){var e=this.totalMin,o=this.totalMax,i=this.scaleRange(t),n=Ot(i.min,e,o),r=Ot(i.max,e,o);if(this.isValidRange(n,r))return{min:n,max:r}},e.prototype.isValidRange=function(t,e){return e-t>uo},e}(je);function fo(t,e,o){var i=Pt(Math.abs(t%e),10);return 0===i||i>e*(1-o)}Rt(ho,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:r},labels:{format:"#.####################"},zIndex:1});var go=ho,vo=function(t){function e(e,o,i,n){var r=Le(e),a=Le(o),s=n.intl,p=i||{};p=function(t,e,o){var i=o.min||t,n=o.max||e,r=o.baseUnit||(n&&i?function(t){var e="hours";t>=31536e6?e=Me:t>=26784e5?e="months":t>=6048e5?e="weeks":t>=864e5&&(e=Te);return e}(Re(n,i)):"hours"),a=Ee[r],s=o.weekStartDay||0,p=ze(He(i)-1,r,s)||Le(n),c=Ne(He(n)+1,r,s),l=(o.majorUnit?o.majorUnit:void 0)||co(qt(p.getTime(),c.getTime()),a)/a,u=Ye(p,c,r),h=co(u,l)-u,d=Math.floor(h/2),f=h-d;o.baseUnit||delete o.baseUnit;return o.baseUnit=o.baseUnit||r,o.min=o.min||Ve(p,-d,r,s),o.max=o.max||Ve(c,f,r,s),o.minorUnit=o.minorUnit||l/5,o.majorUnit=l,o}(r,a,p=M(p||{},{min:qe(s,p.min),max:qe(s,p.max),axisCrossingValue:Ke(s,p.axisCrossingValues||p.axisCrossingValue),weekStartDay:Ze(p,s)})),t.call(this,p,n),this.intlService=s,this.seriesMin=r,this.seriesMax=a;var c=p.weekStartDay||0;this.totalMin=He(ze(He(r)-1,p.baseUnit,c)),this.totalMax=He(Ne(He(a)+1,p.baseUnit,c))}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(Ye(e.min,e.max,e.baseUnit)/t+1)},e.prototype.getTickPositions=function(t){for(var e=this.options,o=e.vertical,i=this.lineBox(),n=(o?-1:1)*(e.reverse?-1:1),r=i[(o?m:_)+(1===n?1:2)],a=this.getDivisions(t),s=Ge(e.max,e.min),p=(o?i.height():i.width())/s,c=e.weekStartDay||0,l=[r],u=1;u<a;u++){var h=r+Ge(Ve(e.min,u*t,e.baseUnit,c),e.min)*p*n;l.push(Pt(h,3))}return l},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 go.prototype.getSlot.call(this,qe(this.intlService,t),qe(this.intlService,e),o)},e.prototype.getValue=function(t){var e=go.prototype.getValue.call(this,t);return null!==e?Le(e):null},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,o){var i=this.options,n=t*i.majorUnit,r=i.weekStartDay||0,a=i.min;n>0&&(a=Ve(a,n,i.baseUnit,r));var s=e.dateFormats[i.baseUnit];e.format=e.format||s;var p=this.axisLabelText(a,e,o);return new we(a,p,t,null,e)},e.prototype.translateRange=function(t,e){var o=this.options,i=o.baseUnit,n=o.weekStartDay||0,r=this.lineBox(),a=o.vertical?r.height():r.width(),s=this.range(),p=a/Ge(s.max,s.min),c=Pt(t/p,10)*(o.reverse?-1:1),l=De(o.min,c),u=De(o.max,c);return e||(l=Ve(l,0,i,n),u=Ve(u,0,i,n)),{min:l,max:u,offset:c}},e.prototype.scaleRange=function(t){for(var e=this.options,o=e.min,i=e.max,n=Math.abs(t);n--;){var r=Ge(o,i),a=Math.round(.1*r);t<0?(o=De(o,a),i=De(i,-a)):(o=De(o,-a),i=De(i,a))}return{min:o,max:i}},e.prototype.shouldRenderNote=function(t){var e=this.range();return Fe(t,e.min)>=0&&Fe(t,e.max)<=0},e.prototype.pan=function(t){var e=this.translateRange(t,!0),o=this.limitRange(He(e.min),He(e.max),this.totalMin,this.totalMax,e.offset);if(o)return{min:Le(o.min),max:Le(o.max)}},e.prototype.pointsRange=function(t,e){var o=this.getValue(t),i=this.getValue(e),n=Math.min(o,i),r=Math.max(o,i);return{min:Le(n),max:Le(r)}},e.prototype.zoomRange=function(t){var e=this.scaleRange(t);return{min:Le(Ot(He(e.min),this.totalMin,this.totalMax)),max:Le(Ot(He(e.max),this.totalMin,this.totalMax))}},e}(je);Rt(vo,{type:c,majorGridLines:{visible:!0,width:1,color:r},labels:{dateFormats:Qe}});var yo=vo,_o=function(t){function e(e,o,i,n){var r=M({majorUnit:10,min:e,max:o},i),a=r.majorUnit,s=function(t,e){var o,i=Pt(bo(t,e),10)%1;o=t<=0?e:0!==i&&(i<.3||i>.9)?Math.pow(e,bo(t,e)+.2):Math.pow(e,Math.ceil(bo(t,e)));return o}(o,a),p=function(t,e,o){var i=o.majorUnit,n=t;t<=0?n=e<=1?Math.pow(i,-2):1:o.narrowRange||(n=Math.pow(i,Math.floor(bo(t,i))));return n}(e,o,r),c=function(t,e,o,i){var n=o.min,r=o.max;mt(o.axisCrossingValue)&&o.axisCrossingValue<=0&&mo();mt(i.max)?i.max<=0&&mo():r=e;mt(i.min)?i.min<=0&&mo():n=t;return{min:n,max:r}}(p,s,r,i);r.max=c.max,r.min=c.min,r.minorUnit=i.minorUnit||Pt(a-1,10),t.call(this,r,n),this.totalMin=mt(i.min)?Math.min(p,i.min):p,this.totalMax=mt(i.max)?Math.max(s,i.max):s,this.logMin=Pt(bo(c.min,a),10),this.logMax=Pt(bo(c.max,a),10),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 i,n,r=this.options,a=this.logMin,s=this.logMax,p=r.reverse,c=r.vertical,l=r.majorUnit,u=c?m:_,h=this.lineBox(),d=h[u+(p?2:1)],f=(p?-1:1)*((c?h.height():h.width())/(s-a)),g=new $t(h.x1,h.y1,h.x1,h.y1),v=t,y=e;return mt(v)||(v=y||1),mt(y)||(y=v||1),v<=0||y<=0?null:(o&&(v=Math.max(Math.min(v,r.max),r.min),y=Math.max(Math.min(y,r.max),r.min)),v=bo(v,l),y=bo(y,l),c?(i=s-Math.max(v,y),n=s-Math.min(v,y)):(i=Math.min(v,y)-a,n=Math.max(v,y)-a),g[u+1]=lo(d+f*(p?n:i)),g[u+2]=lo(d+f*(p?i:n)),g)},e.prototype.getValue=function(t){var e=this.options,o=this.logMin,i=this.logMax,n=e.reverse,r=e.vertical,a=e.majorUnit,s=this.lineBox(),p=r===n?1:-1,c=1===p?1:2,l=r?s.height():s.width(),u=(i-o)/l,h=r?m:_,d=s[h+c],f=p*(t[h]-d);if(f<0||f>l)return null;var g=o+f*u;return Pt(Math.pow(a,g),10)},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.scaleRange=function(t){var e=this.options.majorUnit,o=-t;return{min:Math.pow(e,this.logMin-o),max:Math.pow(e,this.logMax+o)}},e.prototype.translateRange=function(t){var e=this.options,o=this.logMin,i=this.logMax,n=e.reverse,r=e.vertical,a=e.majorUnit,s=this.lineBox(),p=r?s.height():s.width(),c=Pt(t/(p/(i-o)),10);return!r&&!n||r&&n||(c=-c),{min:Math.pow(a,o+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,i=e.minorTicks,n=e.vertical,r=e.labels.mirror,a=this.lineBox(),s={vertical:n};function p(e,o){s.tickX=r?a.x2:a.x2-o.size,s.tickY=r?a.y1-o.size:a.y1,s.position=e,t.append(Ie(s,o))}return o.visible&&this.traverseMajorTicksPositions(p,o),i.visible&&this.traverseMinorTicksPositions(p,i),[]},e.prototype.createGridLines=function(t){var e=this.options,o=e.minorGridLines,i=e.majorGridLines,n=e.vertical,r=t.lineBox(),a={lineStart:r[n?"x1":"y1"],lineEnd:r[n?"x2":"y2"],vertical:n},s=[],p=this.gridLinesVisual();function c(t,e){lt(t,s)||(a.position=t,p.append(ke(a,e)),s.push(t))}return i.visible&&this.traverseMajorTicksPositions(c,i),o.visible&&this.traverseMinorTicksPositions(c,o),p.children},e.prototype.traverseMajorTicksPositions=function(t,e){for(var o=this._lineOptions(),i=o.lineStart,n=o.step,r=this.logMin,a=this.logMax,s=Math.ceil(r)+e.skip;s<=a;s+=e.step){t(Pt(i+n*(s-r),10),e)}},e.prototype.traverseMinorTicksPositions=function(t,e){for(var o=this.options,i=o.min,n=o.max,r=o.minorUnit,a=o.majorUnit,s=this._lineOptions(),p=s.lineStart,c=s.step,l=this.logMin,u=this.logMax,h=Math.floor(l);h<u;h++)for(var d=this._minorIntervalOptions(h),f=e.skip;f<r;f+=e.step){var g=d.value+f*d.minorStep;if(g>n)break;if(g>=i)t(Pt(p+c*(bo(g,a)-l),10),e)}},e.prototype.createAxisLabel=function(t,e,o){var i=Math.ceil(this.logMin+t),n=Math.pow(this.options.majorUnit,i),r=this.axisLabelText(n,e,o);return new we(n,r,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),i=this.getValue(e);return{min:Math.min(o,i),max:Math.max(o,i)}},e.prototype.zoomRange=function(t){var e=this.options,o=this.totalMin,i=this.totalMax,n=this.scaleRange(t),r=Ot(n.min,o,i),a=Ot(n.max,o,i),s=e.majorUnit,p=a>r&&e.min&&e.max&&Pt(bo(e.max,s)-bo(e.min,s),10)<1,c=!(e.min===o&&e.max===i)&&Pt(bo(a,s)-bo(r,s),10)>=1;if(p||c)return{min:r,max:a}},e.prototype._minorIntervalOptions=function(t){var e=this.options,o=e.minorUnit,i=e.majorUnit,n=Math.pow(i,t);return{value:n,minorStep:(Math.pow(i,t+1)-n)/o}},e.prototype._lineOptions=function(){var t=this.options,e=t.reverse,o=t.vertical,i=o?m:_,n=this.lineBox(),r=o===e?1:-1,a=1===r?1:2;return{step:r*((o?n.height():n.width())/(this.logMax-this.logMin)),lineStart:n[i+a],lineBox:n}},e}(je);function mo(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function bo(t,e){return Math.log(t)/Math.log(e)}Rt(_o,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:r},zIndex:1,_deferLabels:!0});var xo=_o,So={createGridLines:function(t){var e,o,i=this.options,n=Math.abs(this.box.center().y-t.lineBox().y1),r=[],a=!1;return i.majorGridLines.visible&&(e=this.majorGridLineAngles(t),a=!0,r=this.renderMajorGridLines(e,n,i.majorGridLines)),i.minorGridLines.visible&&(o=this.minorGridLineAngles(t,a),yt(r,this.renderMinorGridLines(o,n,i.minorGridLines,t,a))),r},renderMajorGridLines:function(t,e,o){return this.renderGridLines(t,e,o)},renderMinorGridLines:function(t,e,o,i,n){var r=this.radiusCallback&&this.radiusCallback(e,i,n);return this.renderGridLines(t,e,o,r)},renderGridLines:function(t,e,o,i){for(var n={stroke:{width:o.width,color:o.color,dashType:o.dashType}},r=this.box.center(),a=new w.geometry.Circle([r.x,r.y],e),s=this.gridLinesVisual(),p=0;p<t.length;p++){var c=new w.drawing.Path(n);i&&(a.radius=i(t[p])),c.moveTo(a.center).lineTo(a.pointAt(t[p]+180)),s.append(c)}return s.children},gridLineAngles:function(t,e,o,i,n){var r=this,a=this.intervals(e,o,i,n),s=t.options,p=s.visible&&!1!==(s.line||{}).visible;return ft(a,(function(t){var e=r.intervalAngle(t);if(!p||90!==e)return e}))}},Co=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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,i=e.step||1,n=new $t,r=0;r<t.length;r++){t[r].reflow(n);var a=t[r].box;t[r].reflow(this.getSlot(o+r*i).adjacentBox(0,a.width(),a.height()))}},e.prototype.intervals=function(t,e,o,i){void 0===i&&(i=!1);for(var n=this.options,r=n.categories.length/t||1,a=360/r,s=o||1,p=[],c=0,l=e||0;l<r;l+=s)c=n.reverse?360-l*a:l*a,c=Pt(c,3)%360,i&<(c,i)||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 ft(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,i=o.minorGridLines,n=o.majorGridLines,r=e?this.intervals(1,n.skip,n.step):null;return this.gridLineAngles(t,.5,i.skip,i.step,r)},e.prototype.radiusCallback=function(t,e,o){if(e.options.type!==n){var i=kt(360/(2*this.options.categories.length)),r=Math.cos(i)*t,a=this.majorAngles(),s=function(e){return!o&<(e,a)?t:r};return s}},e.prototype.createPlotBands=function(){for(var t=this.options.plotBands||[],e=this._plotbandGroup=new w.drawing.Group({zIndex:-1}),o=0;o<t.length;o++){var i=t[o],n=this.plotBandSlot(i),r=this.getSlot(i.from),a=i.from-Math.floor(i.from);n.startAngle+=a*r.angle;var s=Math.ceil(i.to)-i.to;n.angle-=(s+a)*r.angle;var p=oe.current.createRing(n,{fill:{color:i.color,opacity:i.opacity},stroke:{opacity:i.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,i=o.justified,n=this.box,r=this.majorAngles(),a=r.length,s=360/a,p=t;o.reverse&&!i&&(p=(p+1)%a);var c=r[p=Ot(Math.floor(p),0,a-1)];i&&(c-=s/2)<0&&(c+=360);var l=s*(Ot(Math.ceil(e||p),p,a-1)-p+1);return new Qt(n.center(),0,n.height()/2,c,l)},e.prototype.slot=function(t,e){var o=this.getSlot(t,e),i=o.startAngle+180,n=i+o.angle;return new w.geometry.Arc([o.center.x,o.center.y],{startAngle:i,endAngle:n,radiusX:o.radius,radiusY:o.radius})},e.prototype.pointCategoryIndex=function(t){for(var e=this.options.categories.length,o=null,i=0;i<e;i++){if(this.getSlot(i).containsPoint(t)){o=i;break}}return o},e}(Je);Rt(Co,{startAngle:90,labels:{margin:V(10)},majorGridLines:{visible:!0},justified:!0}),M(Co.prototype,So);var wo=Co,Ao=function(t){function e(e,o){t.call(this,e,o);var i=this.options;i.minorUnit=i.minorUnit||i.majorUnit/2}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDivisions=function(t){return go.prototype.getDivisions.call(this,t)-1},e.prototype.reflow=function(t){this.box=t,this.reflowLabels()},e.prototype.reflowLabels=function(){for(var t=this.options,e=this.labels,o=this.options.labels,i=o.skip||0,n=o.step||1,r=new $t,a=this.intervals(t.majorUnit,i,n),s=0;s<e.length;s++){e[s].reflow(r);var p=e[s].box;e[s].reflow(this.getSlot(a[s]).adjacentBox(0,p.width(),p.height()))}},e.prototype.lineBox=function(){return this.box},e.prototype.intervals=function(t,e,o,i){void 0===i&&(i=!1);for(var n=this.options.min,r=this.getDivisions(t),a=[],s=o||1,p=e||0;p<r;p+=s){var c=(360+n+p*t)%360;i&<(c,i)||a.push(c)}return a},e.prototype.majorIntervals=function(){return this.intervals(this.options.majorUnit)},e.prototype.minorIntervals=function(){return this.intervals(this.options.minorUnit)},e.prototype.intervalAngle=function(t){return(540-t-this.options.startAngle)%360},e.prototype.createLine=function(){return[]},e.prototype.majorGridLineAngles=function(t){var e=this.options.majorGridLines;return this.gridLineAngles(t,this.options.majorUnit,e.skip,e.step)},e.prototype.minorGridLineAngles=function(t,e){var o=this.options,i=o.minorGridLines,n=o.majorGridLines,r=e?this.intervals(o.majorUnit,n.skip,n.step):null;return this.gridLineAngles(t,o.minorUnit,i.skip,i.step,r)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to)},e.prototype.getSlot=function(t,e){var o=this.options,i=this.box,n=o.startAngle,r=Ot(t,o.min,o.max),a=Ot(e||r,r,o.max);if(o.reverse&&(r*=-1,a*=-1),(a=(540-a-n)%360)<(r=(540-r-n)%360)){var s=r;r=a,a=s}return new Qt(i.center(),0,i.height()/2,r,a-r)},e.prototype.slot=function(t,e){void 0===e&&(e=t);var o,i,n=this.options,r=360-n.startAngle,a=this.getSlot(t,e),s=Math.min(t,e),p=Math.max(t,e);return n.reverse?(o=s,i=p):(o=360-p,i=360-s),o=(o+r)%360,i=(i+r)%360,new w.geometry.Arc([a.center.x,a.center.y],{startAngle:o,endAngle:i,radiusX:a.radius,radiusY:a.radius})},e.prototype.getValue=function(t){var e=this.options,o=this.box.center(),i=t.x-o.x,n=t.y-o.y,r=Math.round(bt(Math.atan2(n,i))),a=e.startAngle;return e.reverse||(r*=-1,a*=-1),(r+a+360)%360},e.prototype.valueRange=function(){return{min:0,max:2*Math.PI}},e}(je);Rt(Ao,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:V(10)},majorGridLines:{color:r,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),M(Ao.prototype,So,{createPlotBands:wo.prototype.createPlotBands,majorAngles:wo.prototype.majorAngles,range:go.prototype.range,labelsCount:go.prototype.labelsCount,createAxisLabel:go.prototype.createAxisLabel});var Oo=Ao;function Io(t,e){return 180-Math.abs(Math.abs(t-e)-180)}var ko={options:{majorGridLines:{visible:!0}},createPlotBands:function(){var t=this.options,e=t.majorGridLines.type,o=t.plotBands;void 0===o&&(o=[]);for(var i=this.plotArea.polarAxis,r=i.majorAngles(),a=i.box.center(),s=this._plotbandGroup=new w.drawing.Group({zIndex:-1}),p=0;p<o.length;p++){var c=o[p],l={fill:{color:c.color,opacity:c.opacity},stroke:{opacity:c.opacity}},u=this.getSlot(c.from,c.to,!0),h=new Qt(a,a.y-u.y2,a.y-u.y1,0,360),d=void 0;d=e===n?oe.current.createRing(h,l):w.drawing.Path.fromPoints(this.plotBandPoints(h,r),l).close(),s.append(d)}this.appendVisual(s)},plotBandPoints:function(t,e){for(var o=[],i=[],n=[t.center.x,t.center.y],r=new w.geometry.Circle(n,t.innerRadius),a=new w.geometry.Circle(n,t.radius),s=0;s<e.length;s++)o.push(r.pointAt(e[s]+180)),i.push(a.pointAt(e[s]+180));return o.reverse(),o.push(o[0]),i.push(i[0]),i.concat(o)},createGridLines:function(t){var e=this.options,o=this.radarMajorGridLinePositions(),i=t.majorAngles(),n=t.box.center(),r=[];if(e.majorGridLines.visible&&(r=this.renderGridLines(n,o,i,e.majorGridLines)),e.minorGridLines.visible){var a=this.radarMinorGridLinePositions();yt(r,this.renderGridLines(n,a,i,e.minorGridLines))}return r},renderGridLines:function(t,e,o,i){var r={stroke:{width:i.width,color:i.color,dashType:i.dashType}},a=i.skip;void 0===a&&(a=0);var s=i.step;void 0===s&&(s=0);for(var p=this.gridLinesVisual(),c=a;c<e.length;c+=s){var l=t.y-e[c];if(l>0){var u=new w.geometry.Circle([t.x,t.y],l);if(i.type===n)p.append(new w.drawing.Circle(u,r));else{for(var h=new w.drawing.Path(r),d=0;d<o.length;d++)h.lineTo(u.pointAt(o[d]+180));h.close(),p.append(h)}}}return p.children},getValue:function(t){var e=this.lineBox(),o=this.plotArea.polarAxis,i=o.majorAngles(),r=o.box.center(),a=t.distanceTo(r),s=a;if(this.options.majorGridLines.type!==n&&i.length>1){var p=t.x-r.x,c=t.y-r.y,l=(bt(Math.atan2(c,p))+540)%360;i.sort((function(t,e){return Io(t,l)-Io(e,l)}));var u=90-Io(i[0],i[1])/2,h=180-Io(l,i[0])-u;s=a*(Math.sin(kt(h))/Math.sin(kt(u)))}return this.axisType().prototype.getValue.call(this,new Kt(e.x1,e.y2-s))}},Po=function(t){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}(go);M(Po.prototype,ko);var jo=Po,To=function(t){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}(xo);M(To.prototype,ko);var Mo=To;function Eo(t){return t<=0?-1:1}var Ro=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=[],i=this.closed,n=e.length;if(n>2&&(this.removeDuplicates(0,e),n=e.length),n<2||2===n&&e[0].equals(e[1]))return o;var r,a,s=e[0],p=e[1],c=e[2];for(o.push(new w.geometry.Segment(s));s.equals(e[n-1]);)i=!0,e.pop(),n--;if(2===n){var l=this.tangent(s,p,_,m);return At(o).controlOut(this.firstControlPoint(l,s,p,_,m)),o.push(new w.geometry.Segment(p,this.secondControlPoint(l,s,p,_,m))),o}if(i){s=e[n-1],p=e[0],c=e[1];var u=this.controlPoints(s,p,c);r=u[1],a=u[0]}else{var h=this.tangent(s,p,_,m);r=this.firstControlPoint(h,s,p,_,m)}for(var d=r,f=0;f<=n-3;f++)if(this.removeDuplicates(f,e),f+3<=(n=e.length)){s=e[f],p=e[f+1],c=e[f+2];var g=this.controlPoints(s,p,c);At(o).controlOut(d),d=g[1];var v=g[0];o.push(new w.geometry.Segment(p,v))}if(i){s=e[n-2],p=e[n-1],c=e[0];var y=this.controlPoints(s,p,c);At(o).controlOut(d),o.push(new w.geometry.Segment(p,y[0])),At(o).controlOut(y[1]),o.push(new w.geometry.Segment(c,a))}else{var b=this.tangent(p,c,_,m);At(o).controlOut(d),o.push(new w.geometry.Segment(c,this.secondControlPoint(b,p,c,_,m)))}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 i=!1;if(t.x===e.x)i=!0;else if(e.x===o.x)(e.y<o.y&&t.y<=e.y||o.y<e.y&&e.y<=t.y)&&(i=!0);else{var n=this.lineFunction(t,e),r=this.calculateFunction(n,o.x);t.y<=e.y&&o.y<=r||e.y<=t.y&&o.y>=r||(i=!0)}return i},e.prototype.isLine=function(t,e,o){var i=this.lineFunction(t,e),n=this.calculateFunction(i,o.x);return t.x===e.x&&e.x===o.x||Pt(n,1)===Pt(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 i,n=_,r=m,a=!1,s=!1;if(this.isLine(t,e,o))i=this.tangent(t,e,_,m);else{var p={x:this.isMonotonicByField(t,e,o,_),y:this.isMonotonicByField(t,e,o,m)};if(p.x&&p.y)i=this.tangent(t,o,_,m),a=!0;else if(this.invertAxis(t,e,o)&&(n=m,r=_),p[n])i=0;else i=.01*(o[r]<t[r]&&t[r]<=e[r]||t[r]<o[r]&&e[r]<=t[r]?Eo((o[r]-t[r])*(e[n]-t[n])):-Eo((o[n]-t[n])*(e[r]-t[r]))),s=!0}var c=this.secondControlPoint(i,t,e,n,r);if(s){var l=n;n=r,r=l}var u=this.firstControlPoint(i,e,o,n,r);return a&&(this.restrictControlPoint(t,e,c,i),this.restrictControlPoint(e,o,u,i)),[c,u]},e.prototype.restrictControlPoint=function(t,e,o,i){t.y<e.y?e.y<o.y?(o.x=t.x+(e.y-t.y)/i,o.y=e.y):o.y<t.y&&(o.x=e.x-(e.y-t.y)/i,o.y=t.y):o.y<e.y?(o.x=t.x-(t.y-e.y)/i,o.y=e.y):t.y<o.y&&(o.x=e.x+(t.y-e.y)/i,o.y=t.y)},e.prototype.tangent=function(t,e,o,i){var n,r=e[o]-t[o],a=e[i]-t[i];return n=0===r?0:a/r,n},e.prototype.isMonotonicByField=function(t,e,o,i){return o[i]>e[i]&&e[i]>t[i]||o[i]<e[i]&&e[i]<t[i]},e.prototype.firstControlPoint=function(t,e,o,i,n){var r=e[i],a=.333*(o[i]-r);return this.point(r+a,e[n]+a*t,i,n)},e.prototype.secondControlPoint=function(t,e,o,i,n){var r=e[i],a=o[i],s=.333*(a-r);return this.point(a-s,o[n]-s*t,i,n)},e.prototype.point=function(t,e,o,i){var n=new w.geometry.Point;return n[o]=t,n[i]=e,n},e.prototype.calculateFunction=function(t,e){for(var o=t.length,i=0,n=0;n<o;n++)i+=Math.pow(e,n)*t[n];return i},e}(w.Class),Do=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,o=e.getCategory?e.getCategory(t):e.getValue(t);return o},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}(w.Class);function Lo(t,e){for(var o=0;o<e.length;o++)if(e[o].options.name===t)return e[o].prepareUserOptions(),new Do(e[o])}var Bo=function(t){this.visual=t.visual,this.chartsVisual=t.chartContainer.visual,this._pane=t};Bo.prototype.findAxisByName=function(t){return Lo(t,this._pane.axes)};var Vo=Bo,zo=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}(w.Class);function No(t){for(var e=t.length,o=0,i=0;i<e;i++){I(t[i])&&o++}return o}var Fo={min:function(t){for(var e=t.length,o=h,i=0;i<e;i++){var n=t[i];I(n)&&(o=Math.min(o,n))}return o===h?t[0]:o},max:function(t){for(var e=t.length,o=d,i=0;i<e;i++){var n=t[i];I(n)&&(o=Math.max(o,n))}return o===d?t[0]:o},sum:function(t){for(var e=t.length,o=0,i=0;i<e;i++){var n=t[i];I(n)&&(o+=n)}return o},sumOrNull:function(t){var e=null;return No(t)&&(e=Fo.sum(t)),e},count:function(t){for(var e=t.length,o=0,i=0;i<e;i++){var n=t[i];null!==n&&mt(n)&&o++}return o},avg:function(t){var e=No(t),o=t[0];return e>0&&(o=Fo.sum(t)/e),o},first:function(t){for(var e=t.length,o=0;o<e;o++){var i=t[o];if(null!==i&&mt(i))return i}return t[0]}},Go=Fo;function Ho(t,e){return null===e?e:rt(t)(e)}var Uo=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){void 0===e&&(e=[v]),void 0===o&&(o={});for(var i=0;i<t.length;i++){var n=t[i];this._valueFields[n]=e,this._otherFields[n]=o,this._nullValue[n]=this._makeValue(e,null),this._undefinedValue[n]=this._makeValue(e,void 0)}},e.prototype.canonicalFields=function(t){return this.valueFields(t).concat(this.otherFields(t))},e.prototype.valueFields=function(t){return this._valueFields[t.type]||[v]},e.prototype.otherFields=function(t){return this._otherFields[t.type]||[v]},e.prototype.bindPoint=function(t,e,o){var i,n,r=t.data,a=mt(o)?o:r[e],s={valueFields:{value:a}},p=this.valueFields(t),c=this._otherFields[t.type];if(null===a)n=this._nullValue[t.type];else if(mt(a)){if(Array.isArray(a)){var l=a.slice(p.length);n=this._bindFromArray(a,p),i=this._bindFromArray(l,c)}else if("object"==typeof a){var u=this.sourceFields(t,p),h=this.sourceFields(t,c);n=this._bindFromObject(a,p,u),i=this._bindFromObject(a,c,h)}}else n=this._undefinedValue[t.type];return mt(n)&&(1===p.length?s.valueFields.value=n[p[0]]:s.valueFields=n),s.fields=i||{},s},e.prototype._makeValue=function(t,e){for(var o={},i=t.length,n=0;n<i;n++){o[t[n]]=e}return o},e.prototype._bindFromArray=function(t,e){var o={};if(e)for(var i=Math.min(e.length,t.length),n=0;n<i;n++)o[e[n]]=t[n];return o},e.prototype._bindFromObject=function(t,e,o){void 0===o&&(o=e);var i={};if(e)for(var n=e.length,r=0;r<n;r++){var a=e[r],s=o[r];null!==s&&(i[a]=Ho(s,t))}return i},e.prototype.sourceFields=function(t,e){var o=[];if(e)for(var i=e.length,n=0;n<i;n++){var r=e[n],a=r===v?"field":r+"Field";o.push(null!==t[a]?t[a]||r:null)}return o},e}(w.Class);Uo.current=new Uo;var Wo=Uo,Xo=/percent(?:\w*)\((\d+)\)/,Yo=new RegExp("^stddev(?:\\((\\d+(?:\\.\\d+)?)\\))?$"),qo=function(t){function e(e,o,i){t.call(this),this.initGlobalRanges(e,o,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initGlobalRanges=function(t,e,o){var i=e.data,n=Yo.exec(t);if(n){this.valueGetter=this.createValueGetter(e,o);var r=this.getAverage(i),a=this.getStandardDeviation(i,r,!1),s=n[1]?parseFloat(n[1]):1,p={low:r.value-a*s,high:r.value+a*s};this.globalRange=function(){return p}}else if(t.indexOf&&t.indexOf("stderr")>=0){this.valueGetter=this.createValueGetter(e,o);var c=this.getStandardError(i,this.getAverage(i));this.globalRange=function(t){return{low:t-c,high:t+c}}}},e.prototype.createValueGetter=function(t,e){var o,i=t.data,n=Wo.current,r=n.valueFields(t),a=mt(i[0])?i[0]:{};if(b(a))o=rt("["+(e?r.indexOf(e):0)+"]");else if(I(a))o=rt();else if("object"==typeof a){o=rt(n.sourceFields(t,r)[r.indexOf(e)])}return o},e.prototype.getErrorRange=function(t,e){var o,i,n;if(!mt(e))return null;if(this.globalRange)return this.globalRange(t);if(b(e))o=t-e[0],i=t+e[1];else if(I(n=parseFloat(e)))o=t-n,i=t+n;else{if(!(n=Xo.exec(e)))throw new Error("Invalid ErrorBar value: "+e);var r=t*(parseFloat(n[1])/100);o=t-Math.abs(r),i=t+Math.abs(r)}return{low:o,high:i}},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 i=t.length,n=o?e.count-1:e.count,r=0,a=0;a<i;a++){var s=this.valueGetter(t[a]);I(s)&&(r+=Math.pow(s-e.value,2))}return Math.sqrt(r/n)},e.prototype.getAverage=function(t){for(var e=t.length,o=0,i=0,n=0;n<e;n++){var r=this.valueGetter(t[n]);I(r)&&(o+=r,i++)}return{value:o/i,count:i}},e}(w.Class),Ko=w.support.browser||{},Zo=Ko.msie?.001:0,$o="zero",Jo="bar",Qo="column",ti="line",ei="pie",oi="verticalLine",ii=[Jo,Qo,"ohlc","candlestick","boxPlot","verticalBoxPlot","bullet","rangeColumn","rangeBar","waterfall","horizontalWaterfall"],ni="DOMMouseScroll mousewheel",ri=function(t){function e(e,o,i,n,r,a){t.call(this,a),this.low=e,this.high=o,this.isVertical=i,this.chart=n,this.series=r}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,i=this.isVertical,n=this.getAxis().getSlot(this.low,this.high),r=t.center(),a=this.getCapsWidth(t,i),s=i?r.x:r.y,p=s-a,c=s+a;i?(e=[new Kt(r.x,n.y1),new Kt(r.x,n.y2)],o&&e.push(new Kt(p,n.y1),new Kt(c,n.y1),new Kt(p,n.y2),new Kt(c,n.y2)),this.box=new $t(p,n.y1,c,n.y2)):(e=[new Kt(n.x1,r.y),new Kt(n.x2,r.y)],o&&e.push(new Kt(n.x1,p),new Kt(n.x1,c),new Kt(n.x2,p),new Kt(n.x2,c)),this.box=new $t(n.x1,p,n.x2,c)),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,i={stroke:{color:e.color,width:e.line.width,dashType:e.line.dashType}};t.prototype.createVisual.call(this);for(var n=0;n<o.length;n+=2){var r=new w.drawing.Path(i).moveTo(o[n].x,o[n].y).lineTo(o[n+1].x,o[n+1].y);A(r),this.visual.append(r)}},e}(ne);Rt(ri,{animation:{type:"fadeIn",delay:600},endCaps:!0,line:{width:2},zIndex:1});var ai=ri,si=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getAxis=function(){return this.chart.seriesValueAxis(this.series)},e}(ai);function pi(t,e,o,i){void 0===o&&(o={}),void 0===i&&(i=!1);var n=o.defaults=o.defaults||{},r=o.depth=o.depth||0,a=!1;if(o.excluded=o.excluded||[],r>5)return null;for(var s in t)if(!lt(s,o.excluded)&&t.hasOwnProperty(s)){var p=t[s];j(p)?(a=!0,i||(t[s]=Tt(p(e),n[s]))):E(p)&&(i||(o.defaults=n[s]),o.depth++,a=pi(p,e,o,i)||a,o.depth--)}return a}function ci(t){for(var e=t.length,o=0,i=0;i<e;i++)o=Math.max(o,t[i].data.length);return o}var li=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 i=this.pointType().prototype.defaults;this.seriesOptions[e]=o=M({},i,{vertical:!this.options.invertAxes},t)}return o},e.prototype.plotValue=function(t){if(!t)return 0;if(this.options.isStacked100&&I(t.value)){for(var e=t.categoryIx,o=this.categoryPoints[e],i=[],n=0,r=0;r<o.length;r++){var a=o[r];if(a){var s=t.series.stack,p=a.series.stack;if(s&&p&&s.group!==p.group)continue;I(a.value)&&(n+=Math.abs(a.value),i.push(Math.abs(a.value)))}}if(n>0)return t.value/n}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 i=this.plotValue(t),n=i>=0,r=e,a=!1,s=0;s<o.length;s++){var p=o[s];if(t===p)break;var c=t.series.stack,l=p.series.stack;if(c&&l){if("string"==typeof c&&c!==l)continue;if(c.group&&c.group!==l.group)continue}var u=this.plotValue(p);(u>=0&&n||u<0&&!n)&&(r+=u,i+=u,a=!0,this.options.isStacked100&&(i=Math.min(i,1)))}return a&&(r-=e),[r,i]}var h=t.series,d=this.seriesValueAxis(h),f=this.categoryAxisCrossingValue(d);return[f,P(t.value)?t.value:f]},e.prototype.stackLimits=function(t,e){for(var o=h,i=d,n=0;n<this.categoryPoints.length;n++){var r=this.categoryPoints[n];if(r)for(var a=0;a<r.length;a++){var s=r[a];if(s&&(s.series.stack===e||s.series.axis===t)){var p=this.plotRange(s,0)[1];mt(p)&&isFinite(p)&&(i=Math.max(i,p),o=Math.min(o,p))}}}return{min:o,max:i}},e.prototype.updateStackRange=function(){var t=this.options,e=t.isStacked,o=t.series,i={};if(e)for(var n=0;n<o.length;n++){var r=o[n],a=r.axis,s=a+r.stack,p=i[s];if(!p){p=this.stackLimits(a,r.stack);var c=this.errorTotals;c&&(c.negative.length&&(p.min=Math.min(p.min,Dt(c.negative).min)),c.positive.length&&(p.max=Math.max(p.max,Dt(c.positive).max))),p.min!==h||p.max!==d?i[s]=p:p=null}p&&(this.valueAxisRanges[a]=p)}},e.prototype.addErrorBar=function(t,e,o){var i,n=t.value,r=t.series,a=t.seriesIx,s=t.options.errorBars,p=e.fields.errorLow,c=e.fields.errorHigh;I(p)&&I(c)?i={low:p,high:c}:s&&mt(s.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[a]=this.seriesErrorRanges[a]||new qo(s.value,r,v),i=this.seriesErrorRanges[a].getErrorRange(n,s.value)),i&&(t.low=i.low,t.high=i.high,this.addPointErrorBar(t,o))},e.prototype.addPointErrorBar=function(t,e){var o=!this.options.invertAxes,i=t.options.errorBars,n=t.series,r=t.low,a=t.high;if(this.options.isStacked){var s=this.stackedErrorRange(t,e);r=s.low,a=s.high}else{var p={categoryIx:e,series:n};this.updateRange({value:r},p),this.updateRange({value:a},p)}var c=new si(r,a,o,this,n,i);t.errorBars=[c],t.append(c)},e.prototype.stackedErrorRange=function(t,e){var o=this.plotRange(t,0)[1]-t.value,i=t.low+o,n=t.high+o;return this.errorTotals=this.errorTotals||{positive:[],negative:[]},i<0&&(this.errorTotals.negative[e]=Math.min(this.errorTotals.negative[e]||0,i)),n>0&&(this.errorTotals.positive[e]=Math.max(this.errorTotals.positive[e]||0,n)),{low:i,high:n}},e.prototype.addValue=function(t,e){var o=e.categoryIx,i=e.series,n=e.seriesIx,r=this.categoryPoints[o];r||(this.categoryPoints[o]=r=[]);var a=this.seriesPoints[n];a||(this.seriesPoints[n]=a=[]);var s=this.createPoint(t,e);s&&(Object.assign(s,e),s.owner=this,s.noteText=t.fields.noteText,mt(s.dataItem)||(s.dataItem=i.data[o]),this.addErrorBar(s,t,o)),this.points.push(s),a.push(s),r.push(s),this.updateRange(t.valueFields,e)},e.prototype.evalPointOptions=function(t,e,o,i,n,r){var a={defaults:n._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},s=this._evalSeries[r];mt(s)||(this._evalSeries[r]=s=pi(t,{},a,!0));var p=t;return s&&pi(p=M({},p),{value:e,category:o,index:i,series:n,dataItem:n.data[i]},a),p},e.prototype.updateRange=function(t,e){var o=e.series.axis,i=t.value,n=this.valueAxisRanges[o];isFinite(i)&&null!==i&&((n=this.valueAxisRanges[o]=n||{min:h,max:d}).min=Math.min(n.min,i),n.max=Math.max(n.max,i))},e.prototype.seriesValueAxis=function(t){var e=this.plotArea,o=t.axis,i=o?e.namedValueAxes[o]:e.valueAxis;if(!i)throw new Error("Unable to locate value axis with name "+o);return i},e.prototype.reflow=function(t){var e=this,o=this.categorySlots=[],i=this.points,n=this.categoryAxis,r=0;this.traverseDataPoints((function(t,a){var s=a.categoryIx,p=a.series,c=e.seriesValueAxis(p),l=i[r++],u=o[s];if(u||(o[s]=u=e.categorySlot(n,s,c)),l){var h=e.plotRange(l,c.startValue()),d=e.valueSlot(c,h);if(d){var f=e.pointSlot(u,d);l.aboveAxis=e.aboveAxis(l,c),l.stackValue=h[1],e.options.isStacked100&&(l.percentage=e.plotValue(l)),e.reflowPoint(l,f)}else l.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(At(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),i=t.value;return e.options.reverse?i<o:i>=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,i=o?e:t,n=o?t:e;return new $t(i.x1,n.y1,i.x2,n.y2)},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,o=ci(e),i=e.length,n=0;n<i;n++)this._outOfRangeCallback(e[n],"_outOfRangeMinPoint",n,t);for(var r=0;r<o;r++)for(var a=0;a<i;a++){var s=e[a],p=this.categoryAxis.categoryAt(r);t(this._bindPoint(s,a,r),{category:p,categoryIx:r,categoriesCount:o,series:s,seriesIx:a})}for(var c=0;c<i;c++)this._outOfRangeCallback(e[c],"_outOfRangeMaxPoint",c,t)},e.prototype._outOfRangeCallback=function(t,e,o,i){var n=t[e];if(n){var r=n.categoryIx;i(this._bindPoint(t,o,r,n.item),{category:n.category,categoryIx:r,series:t,seriesIx:o,dataItem:n.item})}},e.prototype._bindPoint=function(t,e,o,i){this._bindCache||(this._bindCache=[]);var n=this._bindCache[e];n||(n=this._bindCache[e]=[]);var r=n[o];return r||(r=n[o]=Wo.current.bindPoint(t,o,i)),r},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}(ne);Rt(li,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0});var ui=li,hi={click:function(t,e){return t.trigger("seriesClick",this.eventArgs(e))},hover:function(t,e){return t.trigger("seriesHover",this.eventArgs(e))},over:function(t,e){return t.trigger("seriesOver",this.eventArgs(e))},out:function(t,e){return t.trigger("seriesLeave",this.eventArgs(e))},eventArgs:function(t){return{value:this.value,percentage:this.percentage,stackValue:this.stackValue,category:this.category,series:this.series,dataItem:this.dataItem,runningTotal:this.runningTotal,total:this.total,element:Ct(t),originalEvent:t,point:this}}},di={createNote:function(){var t=this.options.notes,e=this.noteText||t.label.text;!1!==t.visible&&mt(e)&&null!==e&&(this.note=new Oe({value:this.value,text:e,dataItem:this.dataItem,category:this.category,series:this.series},this.options.notes,this.owner.chartService),this.append(this.note))}},fi=function(t){function e(e,o){t.call(this),this.value=e,this.options=o,this.aboveAxis=Tt(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 i=ot(o),n=this.pointData(),r=this.value;i?r=i(n):o.format&&(r=this.formatValue(o.format)),this.label=new be(r,M({align:s,vAlign:s,margin:{left:5,right:5},zIndex:Tt(o.zIndex,this.series.zIndex)},o),n),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=M({color:this.color},t.border);return mt(o.color)||(o.color=new w.Color(e).brightness(.8).toHex()),o},e.prototype.createVisual=function(){},e.prototype.createMarker=function(){var t=this.options.markers;return new pe({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:Tt(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,i=e.vertical;this.render(),this.box=t;var n=t.clone();if(i?o?n.y1-=n.height():n.y2+=n.height():o?n.x1+=n.width():n.x2-=n.width(),this._childBox=n,this.marker&&this.marker.reflow(n),this.reflowLabel(n),this.errorBars)for(var r=0;r<this.errorBars.length;r++)this.errorBars[r].reflow(n);if(this.note){var a=this.markerBox();if(!e.markers.visible||!e.markers.size){var s=a.center();a=new $t(s.x,s.y,s.x,s.y)}this.note.reflow(a)}},e.prototype.reflowLabel=function(t){var e=this.options,o=this.label,i=e.labels.position;o&&(i="below"===(i="above"===i?g:i)?a:i,o.reflow(t),o.box.alignTo(this.markerBox(),i),o.reflow(o.box))},e.prototype.createHighlight=function(){var t=this.options.highlight.markers,e=this.markerBorder().color,o=this.options.markers,i=o.size+(o.border.width||0)+(t.border.width||0),n=new pe({type:o.type,width:i,height:i,rotation:o.rotation,background:t.color||e,border:{color:t.border.color,width:t.border.width,opacity:Tt(t.border.opacity,1)},opacity:Tt(t.opacity,1)});return n.reflow(this._childBox),n.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 i=this.options.markers.size,n=i/2,r=this.box.center();e=new w.geometry.Rect([r.x-n,r.y-n],[i,i])}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,i,n=t.x2+5;return this.aboveAxis?(o=t.y1,i=a):(o=t.y2,i=g),{point:new Kt(n,o),align:{horizontal:"left",vertical:i}}}},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}(ne);fi.prototype.defaults={vertical:!0,markers:{visible:!0,background:y,size:8,type:p,border:{width:2},opacity:1},labels:{visible:!1,position:"above",margin:V(3),padding:V(4),animation:{type:"fadeIn",delay:600}},notes:{label:{}},highlight:{markers:{border:{color:"#fff",width:2}},zIndex:100},errorBars:{line:{width:1}}},M(fi.prototype,hi),M(fi.prototype,di);var gi=fi,vi=function(t){function e(e,o,i){t.call(this),this.linePoints=e,this.series=o,this.seriesIx=i}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,i=t.length;o<i;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&&!mt(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,i=e._defaults;j(o)&&i&&(o=i.color);var n=w.drawing.Path.fromPoints(this.points(),{stroke:{color:o,width:e.width,opacity:e.opacity,dashType:e.dashType},zIndex:e.zIndex});t.closed&&n.close(),this.visual=n},e.prototype.aliasFor=function(t,e){return this.parent.getNearestPoint(e.x,e.y,this.seriesIx)},e}(ne);Rt(vi,{closed:!1});var yi=vi;function _i(t,e,o,i,n){var r=t.box,a=new w.geometry.Point;return a[e]=r[e+o],a[i]=r[i+n],a}var mi={calculateStepPoints:function(t){for(var e=this.parent.plotArea.seriesCategoryAxis(this.series).options,o=e.justified,i=e.vertical,n=e.reverse,r=i?_:m,a=i?m:_,s=n?2:1,p=s,c=_i(t[0],r,s,a,p),l=[c],u=1;u<t.length;u++){var h=_i(t[u],r,s,a,p);if(c[r]!==h[r]){var d=new w.geometry.Point;d[r]=c[r],d[a]=h[a],l.push(d,h)}c=h}return o?c!==At(l)&&l.push(c):l.push(_i(At(t),r,s,a,n?1:2)),l}},bi=function(t){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}(yi);M(bi.prototype,mi);var xi=bi,Si=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.segmentVisual=function(){var t=this.series,e=t._defaults,o=t.color;j(o)&&e&&(o=e.color);var i=new Ro(this.options.closed).process(this.points()),n=new w.drawing.Path({stroke:{color:o,width:t.width,opacity:t.opacity,dashType:t.dashType},zIndex:t.zIndex});n.segments.push.apply(n.segments,i),this.visual=n},e}(yi),Ci={renderSegments:function(){var t,e=this.options,o=this.seriesPoints,i=e.series,n=o.length;this._segments=[];for(var r=0;r<n;r++){for(var a=i[r],s=this.sortPoints(o[r]),p=s.length,c=[],l=0;l<p;l++){var u=s[l];u?c.push(u):"interpolate"!==this.seriesMissingValues(a)&&(c.length>1&&(t=this.createSegment(c,a,r,t),this._addSegment(t)),c=[])}c.length>1&&(t=this.createSegment(c,a,r,t),this._addSegment(t))}this.children.unshift.apply(this.children,this._segments)},_addSegment:function(t){this._segments.push(t),t.parent=this},sortPoints:function(t){return t},seriesMissingValues:function(t){var e=t.missingValues;return!e&&this.options.isStacked?$o:e||"interpolate"},getNearestPoint:function(t,e,o){for(var i,n=new Kt(t,e),r=this.seriesPoints[o],a=h,s=0;s<r.length;s++){var p=r[s];if(p&&mt(p.value)&&null!==p.value&&!1!==p.visible){var c=p.box.center().distanceTo(n);c<a&&(i=p,a=c)}}return i}},wi=function(t){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(ut(e.x1,e.x2,t))},e.prototype._setEnd=function(t){var e=this.element,o=e.segments,i=o[1].anchor(),n=o[2].anchor();e.suspend(),i.setX(t),e.resume(),n.setX(t)},e}(w.drawing.Animation);Rt(wi,{duration:600}),w.drawing.AnimationFactory.current.register("clip",wi);var Ai=wi;function Oi(t){for(var e=0;e<t.length;e++)if(mt(t[e].zIndex))return!0}var Ii={createAnimation:function(){var t=this.getRoot();if(t&&!1!==(t.options||{}).transitions){var e=t.size(),o=w.drawing.Path.fromRect(e.toRect());this.visual.clip(o),this.animation=new Ai(o,{box:e}),Oi(this.options.series)&&this._setChildrenAnimation(o)}},_setChildrenAnimation:function(t){for(var e=this.animationPoints(),o=0;o<e.length;o++){var i=e[o];i&&i.visual&&mt(i.visual.options.zIndex)&&i.visual.clip(t)}}},ki=function(t){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 gi},e.prototype.createPoint=function(t,e){var o=e.categoryIx,i=e.category,n=e.series,r=e.seriesIx,a=this.seriesMissingValues(n),s=t.valueFields.value;if(!mt(s)||null===s){if(a!==$o)return null;s=0}var p=this.pointOptions(n,r);p=this.evalPointOptions(p,s,i,o,n,r);var c=t.fields.color||n.color;j(n.color)&&(c=p.color);var l=new gi(s,p);return l.color=c,this.append(l),l},e.prototype.plotRange=function(t){var e=this.plotValue(t);if(this.options.isStacked)for(var o=t.categoryIx,i=this.categoryPoints[o],n=0;n<i.length;n++){var r=i[n];if(t===r)break;e+=this.plotValue(r),this.options.isStacked100&&(e=Math.min(e,1))}return[e,e]},e.prototype.createSegment=function(t,e,o){var i=e.style;return new("step"===i?xi:"smooth"===i?Si:yi)(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}(ui);M(ki.prototype,Ci,Ii);var Pi=ki,ji=function(t){function e(e,o,i,n,r){t.call(this,e,o,i),this.prevSegment=n,this.stackPoints=r}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||{},i=t.color;j(i)&&e&&(i=e.color),this.visual=new w.drawing.Group({zIndex:t.zIndex}),this.createFill({fill:{color:i,opacity:t.opacity},stroke:null}),o.width>0&&!1!==o.visible&&this.createStroke({stroke:M({color:i,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 w.geometry.Segment(t)}))},e.prototype.createStroke=function(t){var e=new w.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),i=this.hasStackSegment();if(i){var n=this.stackSegments();yt(o,n)}var r=new w.drawing.Path(t);r.segments.push.apply(r.segments,o),!i&&e.length>1&&this.fillToAxes(r),this.visual.append(r)},e.prototype.fillToAxes=function(t){var e=this.parent,o=e.options.invertAxes,i=e.seriesValueAxis(this.series),n=e.categoryAxisCrossingValue(i),r=i.getSlot(n,n,!0),a=this.strokeSegments(),s=a[0].anchor(),p=At(a).anchor(),c=o?r.x1:r.y1;o?t.lineTo(c,p.y).lineTo(c,s.y):t.lineTo(p.x,c).lineTo(s.x,c)},e}(yi),Ti=function(t){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}(ji);M(Ti.prototype,mi);var Mi=Ti,Ei=function(t){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 Ro(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 i=t[o];e.push(new w.geometry.Segment(i.anchor(),i.controlOut(),i.controlIn()))}return e},e}(ji),Ri=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,o,i){var n,r,a=this.options.isStacked,s=(e.line||{}).style;a&&o>0&&i&&("gap"!==this.seriesMissingValues(e)?(r=i.linePoints,n=i):r=this._gapStackPoints(t,o,s));return new("step"===s?Mi:"smooth"===s?Ei:ji)(t,e,o,n,r)},e.prototype.reflow=function(e){t.prototype.reflow.call(this,e);var o=this._stackPoints;if(o)for(var i=0;i<o.length;i++){var n=o[i],r=this.categoryAxis.getSlot(n.categoryIx);n.reflow(r)}},e.prototype._gapStackPoints=function(t,e,o){var i=this.seriesPoints,n=t[0].categoryIx,r=t.length;n<0&&(n=0,r--);var a=n+r,s=this.seriesOptions[0]._outOfRangeMinPoint?1:0,p=[];this._stackPoints=this._stackPoints||[];for(var c=n;c<a;c++){var l=c+s,u=e,h=void 0;do{h=i[--u][l]}while(u>0&&!h);if(h)"step"!==o&&c>n&&!i[u][l-1]&&p.push(this._previousSegmentPoint(c,l,l-1,u)),p.push(h),"step"!==o&&c+1<a&&!i[u][l+1]&&p.push(this._previousSegmentPoint(c,l,l+1,u));else{var d=this._createGapStackPoint(c);this._stackPoints.push(d),p.push(d)}}return p},e.prototype._previousSegmentPoint=function(t,e,o,i){for(var n,r=this.seriesPoints,a=i;a>0&&!n;)n=r[--a][o];return n?n=r[a][e]:(n=this._createGapStackPoint(t),this._stackPoints.push(n)),n},e.prototype._createGapStackPoint=function(t){var e=this.pointOptions({},0),o=new gi(0,e);return o.categoryIx=t,o.series={},o},e.prototype.seriesMissingValues=function(t){return t.missingValues||$o},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(Pi),Di=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 i=t[o],n=e[o];e[o]=n=n||{min:h,max:d},n.min=Math.min(n.min,i.min),n.max=Math.max(n.max,i.max)}},e.prototype.reset=function(t){this.axisRanges[t]=void 0},e.prototype.query=function(t){return this.axisRanges[t]},e}(w.Class),Li=function(t){function e(e,o,i){t.call(this,o),this.textBox=new be(e,this.options,i),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,i=e.aboveAxis,n=this.children[0],r=n.options,p=n.box,c=n.options.padding,l=t;r.align=o?s:u,r.vAlign=o?g:s,"insideEnd"===e.position?o?(r.vAlign=g,!i&&p.height()<t.height()&&(r.vAlign=a)):r.align=i?f:u:e.position===s?(r.vAlign=s,r.align=s):"insideBase"===e.position?o?r.vAlign=i?a:g:r.align=i?u:f:"outsideEnd"===e.position&&(o?l=i?new $t(t.x1,t.y1-p.height(),t.x2,t.y1):new $t(t.x1,t.y2,t.x2,t.y2+p.height()):(r.align=s,l=i?new $t(t.x2,t.y1,t.x2+p.width(),t.y2):new $t(t.x1-p.width(),t.y1,t.x1,t.y2))),e.rotation||(o?c.left=c.right=(l.width()-n.contentBox.width())/2:c.top=c.bottom=(l.height()-n.contentBox.height())/2),n.reflow(l)},e.prototype.alignToClipBox=function(t){var e=this.options.vertical?m:_,o=e+"1",i=e+"2",n=this.children[0],r=this.parent.box;if(r[o]<t[o]||t[i]<r[i]){var a=n.paddingBox.clone();a[o]=Math.max(r[o],t[o]),a[i]=Math.min(r[i],t[i]),this.reflow(a)}},e}(ne);Rt(Li,{position:"outsideEnd",margin:V(3),padding:V(4),color:r,background:"",border:{width:1,color:""},aboveAxis:!0,vertical:!1,animation:{type:"fadeIn",delay:600},zIndex:2});var Bi=Li;function Vi(t){var e=t.overlay;return e&&e.gradient&&"none"!==e.gradient}var zi=function(t){function e(e,o){t.call(this),this.options=o,this.color=o.color||y,this.aboveAxis=Tt(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,i=this.pointData(),n=ot(e);o=n?n(i):this.formatValue(e.format),this.label=new Bi(o,M({vertical:t.vertical},e),i),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,i=this.options,n=i.visual;if(!1!==this.visible)if(t.prototype.createVisual.call(this),n){var r=this.rectVisual=n({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 w.drawing.Group;return e.createRect(t),t},options:i});r&&this.visual.append(r)}else o.width()>0&&o.height()>0&&this.createRect(this.visual)},e.prototype.createRect=function(t){var e=this.options,o=e.border,i=mt(o.opacity)?o.opacity:e.opacity,n=this.box.toRect();n.size.width=Math.round(n.size.width);var r=this.rectVisual=w.drawing.Path.fromRect(n,{fill:{color:this.color,opacity:e.opacity},stroke:{color:this.getBorderColor(),width:o.width,opacity:i,dashType:o.dashType}}),a=this.box.width(),s=this.box.height();if((e.vertical?a:s)>6&&(A(r),(a<1||s<1)&&(r.options.stroke.lineJoin="round")),t.append(r),Vi(e)){var p=this.createGradientOverlay(r,{baseColor:this.color},M({end:e.vertical?void 0:[0,1]},e.overlay));t.append(p)}},e.prototype.createHighlight=function(t){return A(w.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||.8,i=e.color;return mt(i)||(i=new w.Color(t).brightness(o).toHex()),i},e.prototype.tooltipAnchor=function(){var t,e,o=this.options,i=this.box,n=this.aboveAxis,r=this.owner.pane.clipBox()||i,s=u,p=g;if(o.vertical)t=Math.min(i.x2,r.x2)+5,n?e=Math.max(i.y1,r.y1):(e=Math.min(i.y2,r.y2),p=a);else{var c=Math.max(i.x1,r.x1),l=Math.min(i.x2,r.x2);o.isStacked?(p=a,n?(s=f,t=l):t=c,e=Math.max(i.y1,r.y1)-5):(n?t=l+5:(t=c-5,s=f),e=Math.max(i.y1,r.y1))}return{point:new Kt(t,e),align:{horizontal:s,vertical:p}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,series:this.series}},e}(ne);M(zi.prototype,hi),M(zi.prototype,di),zi.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};var Ni=zi;function Fi(t,e){t.forEach(e)}function Gi(t,e){for(var o=t.length,i=o-1;i>=0;i--)e(t[i],i-o-1)}var Hi=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Gi:Fi}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,i=e.gap,n=e.spacing,r=this.children,a=r.length,s=o?m:_,p=a+i+n*(a-1),c=(o?t.height():t.width())/p,l=t[s+1]+c*(i/2);this.forEach(r,(function(e,o){var i=(e.box||t).clone();i[s+1]=l,i[s+2]=l+c,e.reflow(i),o<a-1&&(l+=c*n),l+=c}))},e}(ne);Rt(Hi,{vertical:!1,gap:0,spacing:0});var Ui=Hi,Wi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){for(var e=this.options.vertical?_:m,o=this.children,i=o.length,n=this.box=new $t,r=0;r<i;r++){var a=o[r];if(!1!==a.visible){var s=a.box.clone();s.snapTo(t,e),0===r&&(n=this.box=s.clone()),a.reflow(s),n.wrap(s)}}},e}(ne);Rt(Wi,{vertical:!0});var Xi=Wi,Yi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange()},e.prototype.pointType=function(){return Ni},e.prototype.clusterType=function(){return Ui},e.prototype.stackType=function(){return Xi},e.prototype.stackLimits=function(e,o){return t.prototype.stackLimits.call(this,e,o)},e.prototype.createPoint=function(t,e){var o=e.categoryIx,i=e.category,n=e.series,r=e.seriesIx,a=this.options,s=this.children,p=a.isStacked,c=this.pointValue(t),l=this.pointOptions(n,r),u=l.labels;p&&"outsideEnd"===u.position&&(u.position="insideEnd"),l.isStacked=p;var h=t.fields.color||n.color;c<0&&l.negativeColor&&(h=l.negativeColor),l=this.evalPointOptions(l,c,i,o,n,r),j(n.color)&&(h=l.color);var d=new(this.pointType())(c,l);d.color=h;var f=s[o];f||(f=new(this.clusterType())({vertical:a.invertAxes,gap:a.gap,spacing:a.spacing,rtl:!a.invertAxes&&(this.chartService||{}).rtl}),this.append(f));p?this.getStackWrap(n,f).append(d):f.append(d);return d},e.prototype.getStackWrap=function(t,e){var o,i=t.stack,n=i&&i.group||i,r=e.children;if("string"==typeof n){for(var a=0;a<r.length;a++)if(r[a]._stackGroup===n){o=r[a];break}}else o=r[0];o||((o=new(this.stackType())({vertical:!this.options.invertAxes}))._stackGroup=n,e.append(o));return o},e.prototype.categorySlot=function(t,e,o){var i=this.options,n=t.getSlot(e),r=o.startValue();if(i.isStacked){var a=o.getSlot(r,r,!0),s=i.invertAxes?_:m;n[s+1]=n[s+2]=a[s+1]}return n},e.prototype.reflowCategories=function(t){for(var e=this.children,o=e.length,i=0;i<o;i++)e[i].reflow(t[i])},e.prototype.createAnimation=function(){this._setAnimationOptions(),t.prototype.createAnimation.call(this),Oi(this.options.series)&&this._setChildrenAnimation()},e.prototype._setChildrenAnimation=function(){for(var t=this.points,e=0;e<t.length;e++){var o=t[e],i=o.visual;i&&mt(i.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 i=this.seriesValueAxis(e.series[0]);t=i.getSlot(i.startValue())}else t=this.categoryAxis.getSlot(0);o.origin=new w.geometry.Point(t.x1,t.y1),o.vertical=!e.invertAxes},e}(ui);Rt(Yi,{animation:{type:Jo}});var qi=Yi,Ki=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.options,o=this.value,i=this.owner.seriesValueAxis(e),n=i.getSlot(o.open,o.close),r=i.getSlot(o.low,o.high);n.x1=r.x1=t.x1,n.x2=r.x2=t.x2,this.realBody=n;var a=r.center().x,s=[];s.push([[a,r.y1],[a,n.y1]]),s.push([[a,n.y2],[a,r.y2]]),this.lines=s,this.box=r.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 w.drawing.Group;return this.createBody(e,t),this.createLines(e,t),e},e.prototype.createBody=function(t,e){var o=w.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:Tt(e.border.opacity,e.opacity)}),A(o),t.append(o),Vi(e)&&t.append(this.createGradientOverlay(o,{baseColor:this.color},M({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,i){if(o)for(var n={stroke:{color:i.color||this.color,opacity:Tt(i.opacity,e.opacity),width:i.width,dashType:i.dashType,lineCap:"butt"}},r=0;r<o.length;r++){var a=w.drawing.Path.fromPoints(o[r],n);A(a),t.append(a)}},e.prototype.getBorderColor=function(){var t=this.options.border,e=t.color;return mt(e)||(e=new w.Color(this.color).brightness(t._brightness).toHex()),e},e.prototype.createOverlay=function(){var t=w.drawing.Path.fromRect(this.box.toRect(),{fill:{color:y,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(M({},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 Kt(t.x2+5,Math.max(t.y1,e.y1)+5),align:{horizontal:u,vertical:g}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e}(ne);Rt(Ki,{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:{}}}),M(Ki.prototype,hi),M(Ki.prototype,di);var Zi=Ki;function $i(t){return No(t)===t.length}var Ji=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowCategories=function(t){for(var e=this.children,o=e.length,i=0;i<o;i++)e[i].reflow(t[i])},e.prototype.addValue=function(t,e){var o,i=e.categoryIx,n=e.category,r=e.series,a=e.seriesIx,s=this.children,p=this.options,c=t.valueFields,l=$i(this.splitValue(c)),u=r.data[i],h=this.categoryPoints[i];h||(this.categoryPoints[i]=h=[]),l&&(o=this.createPoint(t,e));var d=s[i];d||(d=new Ui({vertical:p.invertAxes,gap:p.gap,spacing:p.spacing,rtl:!p.invertAxes&&(this.chartService||{}).rtl}),this.append(d)),o&&(this.updateRange(c,e),d.append(o),o.categoryIx=i,o.category=n,o.series=r,o.seriesIx=a,o.owner=this,o.dataItem=u,o.noteText=t.fields.noteText),this.points.push(o),h.push(o)},e.prototype.pointType=function(){return Zi},e.prototype.createPoint=function(t,e){var o=e.categoryIx,i=e.category,n=e.series,r=e.seriesIx,a=this.pointType(),s=t.valueFields,p=M({},n),c=t.fields.color||n.color;p=this.evalPointOptions(p,s,i,o,n,r),"candlestick"===n.type&&s.open>s.close&&(c=t.fields.downColor||n.downColor||n.color),j(n.color)&&(c=p.color),p.vertical=!this.options.invertAxes;var l=new a(s,p);return l.color=c,l},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,i=this.splitValue(t),n=this.valueAxisRanges[o];n=this.valueAxisRanges[o]=n||{min:h,max:d},n=this.valueAxisRanges[o]={min:Math.min.apply(Math,i.concat([n.min])),max:Math.max.apply(Math,i.concat([n.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}(ui);M(Ji.prototype,Ii);var Qi=Ji,tn=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,i=this.options,n=this.value,r=this.owner.seriesValueAxis(i);this.boxSlot=o=r.getSlot(n.q1,n.q3),this.realBody=o,this.reflowBoxSlot(t),this.whiskerSlot=e=r.getSlot(n.lower,n.upper),this.reflowWhiskerSlot(t);var a=r.getSlot(n.median);if(n.mean){var s=r.getSlot(n.mean);this.meanPoints=this.calcMeanPoints(t,s)}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||[],i=3*Math.abs(e.q3-e.q1),n=[],r=t.markers||{},a=0;a<o.length;a++){var s=o[a],p=M({},(r=s<e.q3+i&&s>e.q1-i?t.outliers:t.extremes).border);mt(p.color)||(mt(this.color)?p.color=this.color:p.color=new w.Color(r.background).brightness(.8).toHex());var c=new pe({type:r.type,width:r.size,height:r.size,rotation:r.rotation,background:r.background,border:p,opacity:r.opacity});c.value=s,n.push(c)}return this.reflowOutliers(n),n},e.prototype.reflowOutliers=function(t){for(var e=this.owner.seriesValueAxis(this.options),o=this.box.center(),i=0;i<t.length;i++){var n=t[i].value,r=e.getSlot(n);this.options.vertical?r.move(o.x):r.move(void 0,o.y),this.box=this.box.wrap(r),t[i].reflow(r)}},e.prototype.mainVisual=function(e){for(var o=t.prototype.mainVisual.call(this,e),i=this.renderOutliers(e),n=0;n<i.length;n++){var r=i[n].getElement();r&&o.append(r)}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}(Zi);Rt(tn,{border:{_brightness:.8},line:{width:2},median:{color:"#f6f6f6"},mean:{width:2,dashType:"dash",color:"#f6f6f6"},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{6:d}</th></tr><tr><td>Lower:</td><td>{0:C}</td></tr><tr><td>Q1:</td><td>{1:C}</td></tr><tr><td>Median:</td><td>{2:C}</td></tr><tr><td>Mean:</td><td>{5:C}</td></tr><tr><td>Q3:</td><td>{3:C}</td></tr><tr><td>Upper:</td><td>{4:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}},outliers:{visible:!0,size:8,type:"cross",background:y,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:p,background:y,border:{width:2,opacity:1},opacity:0}}),M(tn.prototype,hi);var en=tn,on=function(t){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}(en),nn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addValue=function(t,e){var o,i=e.categoryIx,n=e.category,r=e.series,a=e.seriesIx,s=this.children,p=this.options,c=t.valueFields,l=$i(this.splitValue(c)),u=r.data[i],h=this.categoryPoints[i];h||(this.categoryPoints[i]=h=[]),l&&(o=this.createPoint(t,e));var d=s[i];d||(d=new Ui({vertical:p.invertAxes,gap:p.gap,spacing:p.spacing,rtl:!p.invertAxes&&(this.chartService||{}).rtl}),this.append(d)),o&&(this.updateRange(c,e),d.append(o),o.categoryIx=i,o.category=n,o.series=r,o.seriesIx=a,o.owner=this,o.dataItem=u),this.points.push(o),h.push(o)},e.prototype.pointType=function(){return this.options.invertAxes?on:en},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,i=this.valueAxisRanges[o],n=this.splitValue(t).concat(this.filterOutliers(t.outliers));mt(t.mean)&&(n=n.concat(t.mean)),i=this.valueAxisRanges[o]=i||{min:h,max:d},i=this.valueAxisRanges[o]={min:Math.min.apply(Math,n.concat([i.min])),max:Math.max.apply(Math,n.concat([i.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=[],i=0;i<e;i++){var n=t[i];mt(n)&&null!==n&&o.push(n)}return o},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(Qi),rn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getAxis=function(){var t=this.chart.seriesAxes(this.series);return this.isVertical?t.y:t.x},e}(ai);function an(t){return mt(t)&&null!==t}var sn=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 i,n=t.value[e],r=e+"Value",a=e+"ErrorLow",s=e+"ErrorHigh",p=o.seriesIx,c=o.series,l=t.options.errorBars,u=o[a],h=o[s];I(n)&&(I(u)&&I(h)&&(i={low:u,high:h}),l&&mt(l[r])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[e][p]=this.seriesErrorRanges[e][p]||new qo(l[r],c,e),i=this.seriesErrorRanges[e][p].getErrorRange(n,l[r])),i&&this.addPointErrorBar(i,t,e))},e.prototype.addPointErrorBar=function(t,e,o){var i=t.low,n=t.high,r=e.series,a=e.options.errorBars,s=o===m,p={};e[o+"Low"]=i,e[o+"High"]=n,e.errorBars=e.errorBars||[];var c=new rn(i,n,s,this,r,a);e.errorBars.push(c),e.append(c),p[o]=i,this.updateRange(p,r),p[o]=n,this.updateRange(p,r)},e.prototype.addValue=function(t,e){var o,i=t.x,n=t.y,r=e.seriesIx,a=this.options.series[r],s=this.seriesMissingValues(a),p=this.seriesPoints[r],c=t;an(i)&&an(n)||(c=this.createMissingValue(c,s)),c&&((o=this.createPoint(c,e))&&(Object.assign(o,e),this.addErrorBar(o,_,e),this.addErrorBar(o,m,e)),this.updateRange(c,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,i=e.xAxis,n=e.yAxis,r=t.x,a=t.y,s=this.xAxisRanges[i],p=this.yAxisRanges[n];an(r)&&(s=this.xAxisRanges[i]=s||{min:h,max:d},k(r)&&(r=qe(o,r)),s.min=Math.min(s.min,r),s.max=Math.max(s.max,r)),an(a)&&(p=this.yAxisRanges[n]=p||{min:h,max:d},k(a)&&(a=qe(o,a)),p.min=Math.min(p.min,a),p.max=Math.max(p.max,a))},e.prototype.evalPointOptions=function(t,e,o){var i=o.series,n=o.seriesIx,r={defaults:i._defaults,excluded:["data","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},a=this._evalSeries[n];mt(a)||(this._evalSeries[n]=a=pi(t,{},r,!0));var s=t;return a&&pi(s=M({},t),{value:e,series:i,dataItem:o.dataItem},r),s},e.prototype.pointType=function(){return gi},e.prototype.pointOptions=function(t,e){var o=this.seriesOptions[e];if(!o){var i=this.pointType().prototype.defaults;this.seriesOptions[e]=o=M({},i,{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,i=this.pointOptions(o,e.seriesIx),n=e.color||o.color;i=this.evalPointOptions(i,t,e),j(o.color)&&(n=i.color);var r=new gi(t,i);return r.color=n,this.append(r),r},e.prototype.seriesAxes=function(t){var e=t.xAxis,o=t.yAxis,i=this.plotArea,n=e?i.namedXAxes[e]:i.axisX,r=o?i.namedYAxes[o]:i.axisY;if(!n)throw new Error("Unable to locate X axis with name "+e);if(!r)throw new Error("Unable to locate Y axis with name "+o);return{x:n,y:r}},e.prototype.reflow=function(t){var e=this,o=this.points,i=!this.options.clip,n=0;this.traverseDataPoints((function(t,r){var a=o[n++],s=e.seriesAxes(r.series),p=s.x.getSlot(t.x,t.x,i),c=s.y.getSlot(t.y,t.y,i);if(a)if(p&&c){var l=e.pointSlot(p,c);a.reflow(l)}else a.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new $t(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,o=this.seriesPoints,i=0;i<e.length;i++){var n=e[i];o[i]||(o[i]=[]);for(var r=0;r<n.data.length;r++){var a=this._bindPoint(n,i,r),s=a.valueFields,p=a.fields;t(s,M({pointIx:r,series:n,seriesIx:i,dataItem:n.data[r],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}(ne);Rt(sn,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),M(sn.prototype,Ii,{_bindPoint:ui.prototype._bindPoint});var pn=sn,cn=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,i=this.box.center(),n=(o.size+o.border.width+e.width)/2,r=new w.drawing.Group,a=new w.drawing.Circle(new w.geometry.Circle([i.x,i.y+n/5+e.width/2],n+e.width/2),{stroke:{color:"none"},fill:this.createGradient({gradient:"bubbleShadow",color:o.background,stops:[{offset:0,color:o.background,opacity:.3},{offset:1,color:o.background,opacity:0}]})}),s=new w.drawing.Circle(new w.geometry.Circle([i.x,i.y],n),{stroke:{color:e.color||new w.Color(o.background).brightness(.8).toHex(),width:e.width,opacity:e.opacity},fill:{color:o.background,opacity:t.opacity}});return r.append(a,s),r},e}(gi);cn.prototype.defaults=M({},cn.prototype.defaults,{labels:{position:s},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),cn.prototype.defaults.highlight.zIndex=void 0;var ln=cn,un=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this._maxSize=d,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 ln},e.prototype.createPoint=function(t,e){var o=e.series,i=o.data.length,n=e.pointIx*(600/i),r={delay:n,duration:600-n,type:"bubble"},a=e.color||o.color;t.size<0&&o.negativeValues.visible&&(a=Tt(o.negativeValues.color,a));var s=M({labels:{animation:{delay:n,duration:600-n}}},this.pointOptions(o,e.seriesIx),{markers:{type:p,border:o.border,opacity:o.opacity,animation:r}});s=this.evalPointOptions(s,t,e),j(o.color)&&(a=s.color),s.markers.background=a;var c=new ln(t,s);return c.color=a,this.append(c),c},e.prototype.updateBubblesSize=function(t){for(var e=this.options.series,o=Math.min(t.width(),t.height()),i=0;i<e.length;i++)for(var n=e[i],r=this.seriesPoints[i],a=(n.minSize||Math.max(.02*o,10))/2,s=(n.maxSize||.2*o)/2,p=Math.PI*a*a,c=(Math.PI*s*s-p)/this._maxSize,l=0;l<r.length;l++){var u=r[l];if(u){var h=Math.abs(u.value.size)*c,d=Math.sqrt((p+h)/Math.PI),f=Tt(u.options.zIndex,0)+(1-d/s);M(u.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}(pn);Rt(un,{tooltip:{format:"{3}"},labels:{format:"{3}"}});var hn=un,dn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(pe);M(dn.prototype,hi);var fn=dn,gn=function(t){function e(e,o){t.call(this,o),this.aboveAxis=this.options.aboveAxis,this.color=o.color||y,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,mt(this.value.target)&&(this.target=new fn({type:t.target.shape,background:t.target.color||this.color,opacity:t.opacity,zIndex:t.zIndex,border:t.target.border,vAlign:g,align:f}),this.target.value=this.value,this.target.dataItem=this.dataItem,this.target.series=this.series,this.append(this.target)),this.createNote())},e.prototype.reflow=function(t){this.render();var e=this.options,o=this.target,i=this.owner,n=e.invertAxes,r=i.seriesValueAxis(this.options),a=i.categorySlot(i.categoryAxis,e.categoryIx,r),s=r.getSlot(this.value.target),p=n?s:a,c=n?a:s;if(o){var l=new $t(p.x1,c.y1,p.x2,c.y2);o.options.height=n?l.height():e.target.line.width,o.options.width=n?e.target.line.width:l.width(),o.reflow(l)}this.note&&this.note.reflow(t),this.box=t},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options,o=w.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:Tt(e.border.opacity,e.opacity)}),this.bodyVisual=o,A(o),this.visual.append(o)},e.prototype.createAnimation=function(){this.bodyVisual&&(this.animation=w.drawing.Animation.create(this.bodyVisual,this.options.animation))},e.prototype.createHighlight=function(t){return w.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}(ne);gn.prototype.tooltipAnchor=Ni.prototype.tooltipAnchor,Rt(gn,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},tooltip:{format:"Current: {0}<br />Target: {1}"}}),M(gn.prototype,hi),M(gn.prototype,di);var vn=gn,yn=function(t){function e(e,o){!function(t){for(var e=t.series,o=0;o<e.length;o++){var i=e[o],n=i.data;!n||b(n[0])||E(n[0])||(i.data=[n])}}(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,i=0;i<o;i++)e[i].reflow(t[i])},e.prototype.plotRange=function(t){var e=t.series,o=this.seriesValueAxis(e),i=this.categoryAxisCrossingValue(o);return[i,t.value.current||i]},e.prototype.createPoint=function(t,e){var o=e.categoryIx,i=e.category,n=e.series,r=e.seriesIx,a=this.options,s=this.children,p=t.valueFields,c=M({vertical:!a.invertAxes,overlay:n.overlay,categoryIx:o,invertAxes:a.invertAxes},n),l=t.fields.color||n.color;c=this.evalPointOptions(c,p,i,o,n,r),j(n.color)&&(l=c.color);var u=new vn(p,c);u.color=l;var h=s[o];return h||(h=new Ui({vertical:a.invertAxes,gap:a.gap,spacing:a.spacing,rtl:!a.invertAxes&&(this.chartService||{}).rtl}),this.append(h)),h.append(u),u},e.prototype.updateRange=function(t,e){var o=t.current,i=t.target,n=e.series.axis,r=this.valueAxisRanges[n];mt(o)&&!isNaN(o)&&mt(i&&!isNaN(i))&&((r=this.valueAxisRanges[n]=r||{min:h,max:d}).min=Math.min(r.min,o,i),r.max=Math.max(r.max,o,i))},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}(ui);yn.prototype._setAnimationOptions=qi.prototype._setAnimationOptions,Rt(yn,{animation:{type:Jo}});var _n=yn,mn=function(t){function e(e,o){t.call(this),this.chartService=e,this.options=M({},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,i=t.border.color;if(e){var n=e.color||e.options.color;o=Tt(o,n),i=Tt(i,n)}var r=V(t.padding||{},"auto");return{backgroundColor:o,borderColor:i,font:t.font,color:t.color,opacity:t.opacity,borderWidth:R(t.border.width),paddingTop:R(r.top),paddingBottom:R(r.bottom),paddingLeft:R(r.left),paddingRight:R(r.right)}},e.prototype.show=function(t,e,o){t.format=e.format;var i=this.getStyle(e,o);t.style=i;var n=new w.Color(i.backgroundColor);mt(e.color)||n.isDark()||(t.className="k-chart-tooltip-inverse"),this.chartService.notify("showTooltip",t),this.visible=!0},e.prototype.hide=function(){this.chartService&&this.chartService.notify("hideTooltip"),this.visible=!1},e.prototype.destroy=function(){delete this.chartService},e}(w.Class);Rt(mn,{border:{width:1},opacity:1});var bn=mn,xn=function(t){function e(e,o,i){t.call(this,e,i),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,i=e[o.stickyMode?"getCategory":"getValue"](t),n=i;o.format?n=this.formatService.auto(o.format,i):e.options.type===c&&(n=this.formatService.auto(e.options.labels.dateFormats[e.options.baseUnit],i)),this.show({point:t,anchor:this.getAnchor(),crosshair:this.crosshair,value:n,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex},this.options)},e.prototype.hide=function(){this.chartService.notify("hideTooltip",{crosshair:this.crosshair,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex})},e.prototype.getAnchor=function(){var t,e,o,i=this.crosshair,n=this.options,r=n.position,p=n.padding,c=!i.axis.options.vertical,l=i.line.bbox();return c?(t=s,r===a?(e=g,o=l.bottomLeft().translate(0,p)):(e=a,o=l.topLeft().translate(0,-p))):(e=s,r===u?(t=f,o=l.topLeft().translate(-p,0)):(t=u,o=l.topRight().translate(p,0))),{point:o,align:{horizontal:t,vertical:e}}},e}(bn);Rt(xn,{padding:10});var Sn=xn,Cn=function(t){function e(e,o,i){t.call(this,i),this.axis=o,this.stickyMode=o instanceof Je;var n=this.options.tooltip;n.visible&&(this.tooltip=new Sn(e,this,M({},n,{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,i=e.options.vertical,n=this.getBox(),r=i?m:_,a=new w.geometry.Point(n.x1,n.y1);if(t=i?new w.geometry.Point(n.x2,n.y1):new w.geometry.Point(n.x1,n.y2),o)if(this.stickyMode){var s=e.getSlot(e.pointCategoryIndex(o));a[r]=t[r]=s.center()[r]}else a[r]=t[r]=o[r];this.box=n,this.line.moveTo(a).lineTo(t)},e.prototype.getBox=function(){for(var t,e=this.axis,o=e.pane.axes,i=o.length,n=e.options.vertical,r=e.lineBox().clone(),a=n?_:m,s=0;s<i;s++){var p=o[s];p.options.vertical!==n&&(t?t.wrap(p.lineBox()):t=p.lineBox().clone())}return r[a+1]=t[a+1],r[a+2]=t[a+2],r},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options;this.line=new w.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}(ne);Rt(Cn,{color:r,width:2,zIndex:-1,tooltip:{visible:!1}});var wn=Cn,An=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 w.drawing.Group({zIndex:0}),this.shouldClip()){var t=(this.clipBox=this._clipBox()).toRect(),e=w.drawing.Path.fromRect(t);A(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 i=t[o].points||{},n=i.length,r=0;r<n;r++){var a=i[r];if(a&&!1!==a.visible&&a.overlapsBox&&a.overlapsBox(e))if(a.unclipElements)a.unclipElements();else{var s=a.label,p=a.note;s&&s.options.visible&&(s.alignToClipBox&&s.alignToClipBox(e),s.options.noclip=!0),p&&p.options.visible&&(p.options.noclip=!0)}}},e.prototype.destroy=function(){t.prototype.destroy.call(this),delete this.parent},e}(ne);An.prototype.isStackRoot=!0;var On=An,In=function(t){function e(e){t.call(this,e),this.id="pane"+kn++,this.createTitle(),this.content=new ne,this.chartContainer=new On({},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;E(t)&&(t=M({},t,{align:t.position,position:g})),this.title=Se.buildTitle(t,this,e.prototype.options.title)},e.prototype.appendAxis=function(t){this.content.append(t),this.axes.push(t),t.pane=this},e.prototype.appendAxisAt=function(t,e){this.content.append(t),this.axes.splice(e,0,t),t.pane=this},e.prototype.appendChart=function(t){this.chartContainer.parent!==this.content&&this.content.append(this.chartContainer),this.charts.push(t),this.chartContainer.append(t),t.pane=this},e.prototype.empty=function(){var t=this.parent;if(t){for(var e=0;e<this.axes.length;e++)t.removeAxis(this.axes[e]);for(var 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;At(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=[],i=[],n=0;n<t.length;n++)for(var r=t[n],a=r.options.vertical,s=a?o:i,p=0;p<e.length;p++)if(0===s.length){var c=e[p];a!==c.options.vertical&&yt(s,r.createGridLines(c))}},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 $t,i=0;i<e;i++){var n=t[i],r=n.options.vertical?m:_,a=n.lineBox();o[r+1]=a[r+1],o[r+2]=a[r+2]}if(0===o.x2)for(var s=this.parent.axes,p=s.length,c=0;c<p;c++){var l=s[c];if(!l.options.vertical){var u=l.lineBox();o.x1=u.x1,o.x2=u.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 Vo(this),index:this.paneIndex,name:this.options.name})},e}(ae),kn=1;In.prototype.isStackRoot=!0,Rt(In,{zIndex:-1,shrinkToFit:!0,title:{align:u},visible:!0});var Pn=In;function jn(t,e){null!==e&&t.push(e)}function Tn(t,e,o){var i=e.visible;if(mt(i))return i;var n=t.pointVisibility;return n?n[o]:void 0}function Mn(t){for(var e=t.data,o=[],i=0,n=0,r=0;r<e.length;r++){var a=Wo.current.bindPoint(t,r),s=a.valueFields.value;k(s)&&(s=parseFloat(s)),I(s)?(a.visible=!1!==Tn(t,a.fields,r),a.value=Math.abs(s),o.push(a),a.visible&&(i+=a.value),0!==s&&n++):o.push(null)}return{total:i,points:o,count:n}}function En(t,e){return t&&e?t.toLowerCase()===e.toLowerCase():t===e}function Rn(t,e){for(var o=[],i=[].concat(e),n=0;n<t.length;n++){var r=t[n];lt(r.type,i)&&o.push(r)}return o}function Dn(t,e,o){if(null===e)return e;var i="_date_"+t,n=e[i];return n||(n=qe(o,rt(t)(e)),e[i]=n),n}function Ln(t,e){var o=t.type,i=e instanceof Date;return!o&&i||En(o,c)}function Bn(t){return 1===t.length?t[0]:t}var Vn=/area/i;function zn(t,e){var o=Wo.current.bindPoint(t,null,e).valueFields;for(var i in o)if(P(o[i]))return!0}function Nn(t){var e,o,i=t.start,n=t.dir,r=t.min,a=t.max,s=t.getter,p=t.hasItem,c=t.series,l=i;do{p(l+=n)&&(e=zn(c,(o=s(l)).item))}while(r<=l&&l<=a&&!e);if(e)return o}function Fn(t,e,o,i,n){var r=e.min,a=e.max,s=r>0&&r<o,p=a+1<o;if(s||p){var c,l,u;if("interpolate"!==function(t){return t.missingValues?t.missingValues:Vn.test(t.type)||t.stack?$o:"interpolate"}(t))s&&(c=i(r-1)),p&&(l=i(a+1));else s&&(c=zn(t,(u=i(r-1)).item)?u:Nn({start:r,dir:-1,min:0,max:o-1,getter:i,hasItem:n,series:t})),p&&(l=zn(t,(u=i(a+1)).item)?u:Nn({start:a,dir:1,min:0,max:o-1,getter:i,hasItem:n,series:t}));c&&(t._outOfRangeMinPoint=c),l&&(t._outOfRangeMaxPoint=l)}}var Gn=function(t){function e(e,o,i){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=i,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||[],i=Math.max(o.length,1),n=[],r=M({title:{color:t.color}},e),a=0;a<i;a++){var s=M({},r,o[a]);k(s.title)&&(s.title=M({text:s.title},r.title));var p=new Pn(s);p.paneIndex=a,n.push(p),this.append(p)}this.panes=n},e.prototype.crosshairOptions=function(t){return t.options.crosshair},e.prototype.createCrosshairs=function(t){void 0===t&&(t=this.panes);for(var e=0;e<t.length;e++)for(var o=t[e],i=0;i<o.axes.length;i++){var n=o.axes[i],r=this.crosshairOptions(n);if(r&&r.visible){var a=new wn(this.chartService,n,r);this.crosshairs.push(a),o.content.append(a)}}},e.prototype.removeCrosshairs=function(t){for(var e=this.crosshairs,o=t.axes,i=e.length-1;i>=0;i--)for(var n=0;n<o.length;n++)if(e[i].axis===o[n]){e.splice(i,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,i=0;i<o.length;i++)if(o[i].options.name===t){e=o[i];break}return e||o[0]},e.prototype.findPointPane=function(t){for(var e,o=this.panes,i=0;i<o.length;i++)if(o[i].box.containsPoint(t)){e=o[i];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 i=this.axes[o];t!==i?e.push(i):i.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 i=this.charts[o];i!==t?e.push(i):i.destroy()}this.charts=e},e.prototype.addToLegend=function(t){for(var e=t.length,o=this.options.legend,i=o.labels||{},n=o.inactiveItems||{},r=n.labels||{},a=[],s=0;s<e;s++){var p=t[s],c=!1!==p.visible;if(!1!==p.visibleInLegend){var l=p.name,u=c?ot(i):ot(r)||ot(i);u&&(l=u({text:an(l)?l:"",series:p}));var h=p._defaults,d=p.color;j(d)&&h&&(d=h.color);var f=void 0,g=void 0;c?(f={},g=d):(f={color:r.color,font:r.font},g=n.markers.color),an(l)&&""!==l&&a.push({text:l,labels:f,markerColor:g,series:p,active:c})}}yt(o.items,a)},e.prototype.groupAxes=function(t){for(var e=[],o=[],i=0;i<t.length;i++)for(var n=t[i].axes,r=0;r<n.length;r++){var a=n[r];a.options.vertical?o.push(a):e.push(a)}return{x:e,y:o,any:e.concat(o)}},e.prototype.groupSeriesByPane=function(){for(var t=this.series,e={},o=0;o<t.length;o++){var i=t[o],n=this.seriesPaneName(i);e[n]?e[n].push(i):e[n]=[i]}return e},e.prototype.filterVisibleSeries=function(t){for(var e=[],o=0;o<t.length;o++){var i=t[o];!1!==i.visible&&e.push(i)}return e},e.prototype.reflow=function(t){var e=this.options.plotArea,o=this.panes,i=V(e.margin);this.box=t.clone().unpad(i),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 i=0;i<e.length;i++)this.removeCrosshairs(e[i]),e[i].empty();this.render(e),this.detachLabels(),this.reflowAxes(this.panes),this.reflowCharts(e),this.createCrosshairs(e);for(var n=0;n<e.length;n++)e[n].refresh()},e.prototype.axisCrossingValues=function(t,e){for(var o=t.options,i=[].concat(o.axisCrossingValues||o.axisCrossingValue),n=e.length-i.length,r=i[0]||0,a=0;a<n;a++)i.push(r);return i},e.prototype.alignAxisTo=function(t,e,o,i){var n=t.getSlot(o,o,!0),r=t.options.reverse?2:1,a=e.getSlot(i,i,!0),s=e.options.reverse?2:1,p=t.box.translate(a[_+s]-n[_+r],a[m+s]-n[m+r]);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=t[0],i=e[0],n=this.axisCrossingValues(o,e),r=this.axisCrossingValues(i,t),s={},p={},c={},l={},h=0;h<e.length;h++){var d=e[h],v=d.pane,y=v.id,_=!1!==d.options.visible,m=Wn(t,v)||o,b=n;m!==o&&(b=this.axisCrossingValues(m,e)),this.alignAxisTo(d,m,r[h],b[h]),d.options._overlap||(Pt(d.lineBox().x1)===Pt(m.lineBox().x1)&&(s[y]&&d.reflow(d.box.alignTo(s[y].box,u).translate(-d.options.margin,0)),_&&(s[y]=d)),Pt(d.lineBox().x2)===Pt(m.lineBox().x2)&&(d._mirrored||(d.options.labels.mirror=!d.options.labels.mirror,d._mirrored=!0),this.alignAxisTo(d,m,r[h],b[h]),p[y]&&d.reflow(d.box.alignTo(p[y].box,f).translate(d.options.margin,0)),_&&(p[y]=d)),0!==h&&i.pane===d.pane&&(d.alignTo(i),d.reflow(d.box)))}for(var x=0;x<t.length;x++){var S=t[x],C=S.pane,w=C.id,A=!1!==S.options.visible,O=Wn(e,C)||i,I=r;O!==i&&(I=this.axisCrossingValues(O,t)),this.alignAxisTo(S,O,n[x],I[x]),S.options._overlap||(Pt(S.lineBox().y1)===Pt(O.lineBox().y1)&&(S._mirrored||(S.options.labels.mirror=!S.options.labels.mirror,S._mirrored=!0),this.alignAxisTo(S,O,n[x],I[x]),c[w]&&S.reflow(S.box.alignTo(c[w].box,g).translate(0,-S.options.margin)),A&&(c[w]=S)),Pt(S.lineBox().y2,3)===Pt(O.lineBox().y2,3)&&(l[w]&&S.reflow(S.box.alignTo(l[w].box,a).translate(0,S.options.margin)),A&&(l[w]=S)),0!==x&&(S.alignTo(o),S.reflow(S.box)))}},e.prototype.shrinkAxisWidth=function(t){for(var e=this.groupAxes(t).any,o=Un(e),i=0,n=0;n<t.length;n++){var r=t[n];r.axes.length>0&&(i=Math.max(i,o.width()-r.contentBox.width()))}if(0!==i)for(var a=0;a<e.length;a++){var s=e[a];s.options.vertical||s.reflow(s.box.shrink(i,0))}},e.prototype.shrinkAxisHeight=function(t){for(var e,o=0;o<t.length;o++){var i=t[o],n=i.axes,r=Math.max(0,Un(n).height()-i.contentBox.height());if(0!==r){for(var a=0;a<n.length;a++){var s=n[a];s.options.vertical&&s.reflow(s.box.shrink(0,r))}e=!0}}return e},e.prototype.fitAxes=function(t){for(var e=this.groupAxes(t).any,o=0,i=0;i<t.length;i++){var n=t[i],r=n.axes,a=n.contentBox;if(r.length>0){var s=Un(r),p=Math.max(a.y1-s.y1,a.y2-s.y2);o=Math.max(o,a.x1-s.x1);for(var c=0;c<r.length;c++){var l=r[c];l.reflow(l.box.translate(0,p))}}}for(var u=0;u<e.length;u++){var h=e[u];h.reflow(h.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,i=Xn(o),n=0;n<i.length;n++){i[n].autoRotateLabels()&&(e=!0)}if(e){for(var r=0;r<o.length;r++)this.reflowPaneAxes(o[r]);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 i=0;i<o;i++)e[i].reflow(t.contentBox)},e.prototype.reflowCharts=function(t){for(var e=this.charts,o=e.length,i=this.box,n=0;n<o;n++){var r=e[n].pane;r&&!lt(r,t)||e[n].reflow(i)}},e.prototype.reflowPanes=function(){for(var t=this.box,e=this.panes,o=e.length,i=t.height(),n=0,r=t.y1,a=0;a<o;a++){var s=e[a],p=s.options.height;if(s.options.width=t.width(),s.options.height){if(p.indexOf&&p.indexOf("%")){var c=parseInt(p,10)/100;s.options.height=c*t.height()}s.reflow(t.clone()),i-=s.options.height}else n++}for(var l=0;l<o;l++){var u=e[l];u.options.height||(u.options.height=i/n)}for(var h=0;h<o;h++){var d=e[h],f=t.clone().move(t.x1,r);d.reflow(f),r+=d.options.height}},e.prototype.backgroundBox=function(){for(var t,e=this.axes,o=e.length,i=0;i<o;i++)for(var n=e[i],r=0;r<o;r++){var a=e[r];if(n.options.vertical!==a.options.vertical){var s=n.lineBox().clone().wrap(a.lineBox());t=t?t.wrap(s):s}}return t||this.box},e.prototype.chartsBoxes=function(){for(var t=this.panes,e=[],o=0;o<t.length;o++)e.push(t[o].chartsBox());return e},e.prototype.addBackgroundPaths=function(t){for(var e=this.chartsBoxes(),o=0;o<e.length;o++)t.paths.push(w.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,i=o.opacity,n=o.background,r=o.border;void 0===r&&(r={}),""!==(e=n)&&null!==e&&"none"!==e&&"transparent"!==e&&mt(e)||(n=y,i=0);var a=this._bgVisual=new w.drawing.MultiPath({fill:{color:n,opacity:i},stroke:{color:r.width?r.color:"",width:r.width,dashType:r.dashType},zIndex:-1});this.addBackgroundPaths(a),this.appendVisual(a)},e.prototype.pointsByCategoryIndex=function(t){var e=this.charts,o=[];if(null!==t)for(var i=0;i<e.length;i++){if("_navigator"!==e[i].pane.options.name){var n=e[i].categoryPoints[t];if(n&&n.length)for(var r=0;r<n.length;r++){var a=n[r];a&&mt(a.value)&&null!==a.value&&o.push(a)}}}return o},e.prototype.pointsBySeriesIndex=function(t){return this.filterPoints((function(e){return e.series.index===t}))},e.prototype.pointsBySeriesName=function(t){return this.filterPoints((function(e){return e.series.name===t}))},e.prototype.filterPoints=function(t){for(var e=this.charts,o=[],i=0;i<e.length;i++)for(var n=e[i].points,r=0;r<n.length;r++){var a=n[r];a&&!1!==a.visible&&t(a)&&o.push(a)}return o},e.prototype.findPoint=function(t){for(var e=this.charts,o=0;o<e.length;o++)for(var i=e[o].points,n=0;n<i.length;n++){var r=i[n];if(r&&!1!==r.visible&&t(r))return r}},e.prototype.paneByPoint=function(t){for(var e=this.panes,o=0;o<e.length;o++){var i=e[o];if(i.box.containsPoint(t))return i}},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,i=0;i<t.length;i++){var n=t[i],r=n.pane,a=Wn(e,r)||e[0],s=i+o,p=this.createLabelAxis(n,s,a);if(p){o++;var c=r.axes.indexOf(n)+o;r.appendAxisAt(p,c)}}},e.prototype.createLabelAxis=function(t,e,o){var i=t.options.labels,n=i.position,r="end"!==n&&"start"!==n,a=i.visible;if(r||!1===a)return null;var s=this.groupAxes(this.panes),p=o.options.vertical?s.x:s.y,c=this.axisCrossingValues(o,p),l="end"===n,u=o.range(),h=l?u.max:u.min;if(Ot(c[e],u.min,u.max)-h==0)return null;c.splice(e+1,0,h),o.options.axisCrossingValues=c;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}(ne);function Hn(t){return!t.pane.axes.some((function(e){return e.options.vertical===t.options.vertical&&e!==t&&!1!==e.options.visible}))}function Un(t){for(var e,o=t.length,i=0;i<o;i++){var n=t[i],r=!1!==n.options.visible;if(r||Hn(n)){var a=r?n.contentBox():n.lineBox();e?e.wrap(a):e=a.clone()}}return e||new $t}function Wn(t,e){for(var o=0;o<t.length;o++){var i=t[o];if(i&&i.pane===e)return i}}var Xn=function(t){return t.reduce((function(t,e){return t.concat(e.axes)}),[])};Rt(Gn,{series:[],plotArea:{margin:{}},background:"",border:{color:r,width:0},paneDefaults:{title:{}},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});var Yn=Gn,qn={hover:function(t,e){this._dispatchEvent(t,e,"plotAreaHover")},click:function(t,e){this._dispatchEvent(t,e,"plotAreaClick")}};function Kn(t,e,o){var i=e,n=t;if(t.indexOf(".")>-1){for(var r=t.split(".");r.length>1;)n=r.shift(),mt(i[n])||(i[n]={}),i=i[n];n=r.shift()}i[n]=o}var Zn=function(t){function e(e,o,i){t.call(this);var n=o.canonicalFields(e),r=o.valueFields(e),a=o.sourceFields(e,n),s=this._seriesFields=[],p=i.query(e.type),c=e.aggregate||p;this._series=e,this._binder=o;for(var l=0;l<n.length;l++){var u=n[l],h=void 0;if(E(c))h=c[u];else{if(0!==l&&!lt(u,r))break;h=c}h&&s.push({canonicalName:u,name:a[l],transform:j(h)?h:Go[h]})}}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,i=this._seriesFields,n=this._bindPoints(t||[]),r=n.dataItems[0],a={};if(r&&!I(r)&&!b(r)){var s=function(){};s.prototype=r,a=new s}for(var p=0;p<i.length;p++){var c=i[p],l=this._bindField(n.values,c.canonicalName),u=c.transform(l,o,n.dataItems,e);if(!(null===u||!E(u)||mt(u.length)||u instanceof Date)){a=u;break}mt(u)&&Kn(c.name,a,u)}return a},e.prototype._bindPoints=function(t){for(var e=this._binder,o=this._series,i=[],n=[],r=0;r<t.length;r++){var a=t[r];i.push(e.bindPoint(o,a)),n.push(o.data[a])}return{values:i,dataItems:n}},e.prototype._bindField=function(t,e){for(var o=[],i=t.length,n=0;n<i;n++){var r=t[n],a=r.valueFields,s=void 0;s=mt(a[e])?a[e]:r.fields[e],o.push(s)}return o},e}(w.Class),$n=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}(w.Class);$n.current=new $n;var Jn=$n,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.createLabel=function(){var t=this.options.labels,e=M({},t,t.from),o=M({},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),i=this.pointData();return e=o?o(i):this.formatValue(t.format),new Bi(e,M({vertical:this.options.vertical},t),i)},e.prototype.reflow=function(t){this.render();var e=this.labelFrom,o=this.labelTo,i=this.value;this.box=t,e&&(e.options.aboveAxis=i.from>i.to,e.reflow(t)),o&&(o.options.aboveAxis=i.to>i.from,o.reflow(t)),this.note&&this.note.reflow(t)},e}(Ni);Qn.prototype.defaults=M({},Qn.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});var tr=Qn,er=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return tr},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,i=t.from,n=t.to,r=this.valueAxisRanges[o];null!==t&&I(i)&&I(n)&&((r=this.valueAxisRanges[o]=r||{min:h,max:d}).min=Math.min(r.min,i),r.max=Math.max(r.max,i),r.min=Math.min(r.min,n),r.max=Math.max(r.max,n))},e.prototype.aboveAxis=function(t){var e=t.value;return e.from<e.to},e}(qi);er.prototype.plotLimits=ui.prototype.plotLimits;var or=er,ir=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.aliasFor=function(){return this.parent},e}(gi),nr=function(t){function e(e,o){t.call(this),this.value=e,this.options=o,this.aboveAxis=Tt(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,i=this.value,n=this.fromPoint=new ir(i,M({},this.options,{labels:o.from,markers:e.from})),r=this.toPoint=new ir(i,M({},this.options,{labels:o.to,markers:e.to}));this.copyFields(n),this.copyFields(r),this.append(n),this.append(r)}},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 w.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,i,n=this.box,r=n.center();return this.options.vertical?(e=r.x,o=n.y1-5,i=a):(e=n.x2+5,o=r.y,i=s),{point:new Kt(e,o),align:{horizontal:"left",vertical:i}}}},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,i,n=this.options,r=n.labels,a=n.vertical;"auto"===r.position&&(a?e.y1<=t.y1?(i="above",o="below"):(i="below",o="above"):e.x1<=t.x1?(i=u,o=f):(i=f,o=u),r.from&&r.from.position||(this.fromPoint.options.labels.position=o),r.to&&r.to.position||(this.toPoint.options.labels.position=i))},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}(ne);M(nr.prototype,hi),M(nr.prototype,di),nr.prototype.defaults={markers:{visible:!1,background:y,size:8,type:p,border:{width:2},opacity:1},labels:{visible:!1,margin:V(3),padding:V(4),animation:{type:"fadeIn",delay:600},position:"auto"},notes:{label:{}},highlight:{markers:{border:{color:y,width:2}},zIndex:100},tooltip:{format:"{0} - {1}"}};var rr=nr,ar=function(t){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 w.drawing.Path(t),o=new w.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}(ji),sr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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 Ro).process(this.toGeometryPoints(t))},e}(ar),pr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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}(ar);M(pr.prototype,mi);var cr=pr,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.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.pointType=function(){return rr},e.prototype.createPoint=function(t,e){var o=e.categoryIx,i=e.category,n=e.series,r=e.seriesIx,a=t.valueFields;if(!an(a.from)&&!an(a.to)){if(this.seriesMissingValues(n)!==$o)return null;a={from:0,to:0}}var s=this.pointOptions(n,r);s=this.evalPointOptions(s,a,i,o,n,r);var p=t.fields.color||n.color;j(n.color)&&(p=s.color);var c=new rr(a,s);return c.color=p,this.append(c),c},e.prototype.createSegment=function(t,e,o){var i=(e.line||{}).style;return new("smooth"===i?sr:"step"===i?cr:ar)(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),i=t.getSlot(e[1],e[1],!this.options.clip);if(o&&i)return{from:o,to:i}},e.prototype.pointSlot=function(t,e){var o,i,n=e.from,r=e.to;return this.options.invertAxes?(o=new $t(n.x1,t.y1,n.x2,t.y2),i=new $t(r.x1,t.y1,r.x2,t.y2)):(o=new $t(t.x1,n.y1,t.x2,n.y2),i=new $t(t.x1,r.y1,t.x2,r.y2)),{from:o,to:i}},e.prototype.addValue=function(e,o){var i=e.valueFields;I(i.from)||(i.from=i.to),I(i.to)||(i.to=i.from),t.prototype.addValue.call(this,e,o)},e.prototype.updateRange=function(t,e){if(null!==t&&I(t.from)&&I(t.to)){var o=e.series.axis,i=this.valueAxisRanges[o]=this.valueAxisRanges[o]||{min:h,max:d},n=t.from,r=t.to;i.min=Math.min(i.min,n,r),i.max=Math.max(i.max,n,r)}},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 i=t[o];i&&(e.push((i.fromPoint||{}).marker),e.push((i.toPoint||{}).marker))}return e.concat(this._segments)},e}(ui);M(lr.prototype,Ci,Ii);var ur=lr,hr=function(t){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,o=this.value,i=this.owner.seriesValueAxis(e),n=[],r=[],a=[],s=i.getSlot(o.low,o.high),p=i.getSlot(o.open,o.open),c=i.getSlot(o.close,o.close);p.x1=c.x1=s.x1=t.x1,p.x2=c.x2=s.x2=t.x2;var l=s.center().x;n.push([p.x1,p.y1]),n.push([l,p.y1]),r.push([l,c.y1]),r.push([c.x2,c.y1]),a.push([l,s.y1]),a.push([l,s.y2]),this.lines=[n,r,a],this.box=s.clone().wrap(p.clone().wrap(c)),this.reflowNote()},e.prototype.createBody=function(){},e}(Zi),dr=function(t){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 hr},e}(Qi),fr=function(t){function e(e,o,i){t.call(this),this.from=e,this.to=o,this.series=i}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,i=[];if(t.isVertical){var n=t.aboveAxis?e.y1:e.y2;i.push([e.x1,n],[o.x2,n])}else{var r=t.aboveAxis?e.x2:e.x1;i.push([r,e.y1],[r,o.y2])}return i},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.series.line||{},o=w.drawing.Path.fromPoints(this.linePoints(),{stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType}});A(o),this.visual.append(o)},e}(ne);Rt(fr,{animation:{type:"fadeIn",delay:600}});var gr=fr,vr=function(t){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=ci(e),i=!this.options.invertAxes,n=0;n<e.length;n++)for(var r=e[n],a=0,s=0,p=0;p<o;p++){var c=Wo.current.bindPoint(r,p),l=c.valueFields.value,u=c.fields.summary,h=a,d=void 0;u?"total"===u.toLowerCase()?(c.valueFields.value=a,h=0,d=a):(c.valueFields.value=s,d=h-s,s=0):I(l)&&(s+=l,d=a+=l),t(c,{category:this.categoryAxis.categoryAt(p),categoryIx:p,series:r,seriesIx:n,total:a,runningTotal:s,from:h,to:d,isVertical:i})}},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=[],i=0;i<t.length;i++){var n=t[i],r=e[i];if(r)for(var a=void 0,s=0;s<r.length;s++){var p=r[s];if(p&&a){var c=new gr(a,p,n);o.push(c),this.append(c)}a=p}}},e}(qi),yr=["area","verticalArea","rangeArea","verticalRangeArea"],_r=[ti,oi].concat(yr),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.initFields=function(t){if(this.namedCategoryAxes={},this.namedValueAxes={},this.valueAxisRangeTracker=new Di,t.length>0){this.invertAxes=lt(t[0].type,[Jo,"bullet",oi,"verticalArea","verticalRangeArea","rangeBar","horizontalWaterfall","verticalBoxPlot"]);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 Je?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.groupSeriesByPane(),o=0;o<t.length;o++){var i=t[o],n=e[i.options.name||"default"]||[];this.addToLegend(n);var r=this.filterVisibleSeries(n);if(r)for(var a=this.groupSeriesByCategoryAxis(r),s=0;s<a.length;s++)this.createChartGroup(a[s],i)}},e.prototype.createChartGroup=function(t,e){this.createAreaChart(Rn(t,["area","verticalArea"]),e),this.createRangeAreaChart(Rn(t,["rangeArea","verticalRangeArea"]),e),this.createBarChart(Rn(t,[Qo,Jo]),e),this.createRangeBarChart(Rn(t,["rangeColumn","rangeBar"]),e),this.createBulletChart(Rn(t,["bullet","verticalBullet"]),e),this.createCandlestickChart(Rn(t,"candlestick"),e),this.createBoxPlotChart(Rn(t,["boxPlot","verticalBoxPlot"]),e),this.createOHLCChart(Rn(t,"ohlc"),e),this.createWaterfallChart(Rn(t,["waterfall","horizontalWaterfall"]),e),this.createLineChart(Rn(t,[ti,oi]),e)},e.prototype.aggregateCategories=function(t){var e=this.srcSeries||this.series,o=[];this._currentPointsCache={},this._seriesPointsCache=this._seriesPointsCache||{};for(var i=0;i<e.length;i++){var n=e[i],r=this.seriesCategoryAxis(n),a=this.findPane(r.options.pane);n=(En(r.options.type,c)||n.categoryField)&<(a,t)?this.aggregateSeries(n,r):this.filterSeries(n,r),o.push(n)}this._seriesPointsCache=this._currentPointsCache,this._currentPointsCache=null,this.srcSeries=e,this.series=o},e.prototype.filterSeries=function(t,e){var o=(t.data||{}).length;if(e._seriesMax=Math.max(e._seriesMax||0,o),!I(e.options.min)&&!I(e.options.max))return t;var i=e.currentRangeIndices(),n=lt(t.type,_r),r=M({},t);return r.data=(r.data||[]).slice(i.min,i.max+1),n&&Fn(r,i,o,(function(o){return{item:t.data[o],category:e.categoryAt(o,!0),categoryIx:o-i.min}}),(function(e){return mt(t.data[e])})),r},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 i=e.options,n=i.srcCategories,r=En(i.type,c),a=t.data,s=r?Dn:Ho,p=[];r||e.mapCategories();for(var l=0;l<a.length;l++){var u=void 0;if(u=t.categoryField?s(t.categoryField,a[l],this.chartService.intl):n[l],mt(u)&&null!==u){var h=e.totalIndex(u);p[h]=p[h]||{items:[],category:u},p[h].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),i=M({},t),n=new Zn(M({},t),Wo.current,Jn.current),r=i.data=[],a=e.options.dataItems||[],s=e.currentRangeIndices(),p=function(t){var i=t-s.min,r=o[t];if(r||(r=o[t]={}),r.categoryIx=i,!r.item){var a=e.categoryAt(t,!0);r.category=a,r.item=n.aggregatePoints(r.items,a)}return r},c=s.min;c<=s.max;c++){var l=p(c);r[l.categoryIx]=l.item,l.items&&l.items.length&&(a[l.categoryIx]=l.item)}return lt(i.type,_r)&&Fn(i,s,e.totalCount(),p,(function(t){return o[t]})),e.options.dataItems=a,i},e.prototype.appendChart=function(e,o){var i=e.options.series,n=this.seriesCategoryAxis(i[0]),r=n.options.categories,a=Math.max(0,ci(i)-r.length);if(a>0)for(r=n.options.categories=n.options.categories.slice(0);a--;)r.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,i=at([].concat(e.valueAxis),(function(t){return t.name===o}))[0],n=((e.panes||[{}])[0]||{}).name||"default";return(i||{}).pane||n},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={},i=0;i<t.length;i++){var n=t[i].categoryAxis||"$$default$$";o.hasOwnProperty(n)||(o[n]=!0,e.push(n))}for(var r=[],a=0;a<e.length;a++){var s=xr(t,e[a],a);0!==s.length&&r.push(s)}return r},e.prototype.createBarChart=function(t,e){if(0!==t.length){var o=t[0],i=new qi(this,Object.assign({series:t,invertAxes:this.invertAxes,gap:o.gap,spacing:o.spacing},this.stackableChartOptions(o,e)));this.appendChart(i,e)}},e.prototype.createRangeBarChart=function(t,e){if(0!==t.length){var o=t[0],i=new or(this,{series:t,invertAxes:this.invertAxes,gap:o.gap,spacing:o.spacing});this.appendChart(i,e)}},e.prototype.createBulletChart=function(t,e){if(0!==t.length){var o=t[0],i=new _n(this,{series:t,invertAxes:this.invertAxes,gap:o.gap,spacing:o.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var o=t[0],i=new Pi(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(o,e)));this.appendChart(i,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var o=t[0],i=new Ri(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(o,e)));this.appendChart(i,e)}},e.prototype.createRangeAreaChart=function(t,e){if(0!==t.length){var o=new ur(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],i=new dr(this,{invertAxes:this.invertAxes,gap:o.gap,series:t,spacing:o.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createCandlestickChart=function(t,e){if(0!==t.length){var o=t[0],i=new Qi(this,{invertAxes:this.invertAxes,gap:o.gap,series:t,spacing:o.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createBoxPlotChart=function(t,e){if(0!==t.length){var o=t[0],i=new nn(this,{invertAxes:this.invertAxes,gap:o.gap,series:t,spacing:o.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createWaterfallChart=function(t,e){if(0!==t.length){var o=t[0],i=new vr(this,{series:t,invertAxes:this.invertAxes,gap:o.gap,spacing:o.spacing});this.appendChart(i,e)}},e.prototype.axisRequiresRounding=function(t,e){for(var o=Rn(this.series,ii),i=0;i<this.series.length;i++){var n=this.series[i];if(lt(n.type,yr)){var r=n.line;r&&"step"===r.style&&o.push(n)}}for(var a=0;a<o.length;a++){var s=o[a].categoryAxis||"";if(s===t||!s&&0===e)return!0}},e.prototype.aggregatedAxis=function(t,e){for(var o=this.series,i=0;i<o.length;i++){var n=o[i].categoryAxis||"";if((n===t||!n&&0===e)&&o[i].categoryField)return!0}},e.prototype.createCategoryAxesLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e]instanceof Je&&t[e].createLabels()},e.prototype.createCategoryAxes=function(t){for(var e=this.invertAxes,o=[].concat(this.options.categoryAxis),i=[],n=0;n<o.length;n++){var r=o[n];if(lt(this.findPane(r.pane),t)){var a=r.name,s=r.categories;void 0===s&&(s=[]),r=M({vertical:e,reverse:!e&&this.chartService.rtl,axisCrossingValue:e?h:0},r),mt(r.justified)||(r.justified=this.isJustified()),this.axisRequiresRounding(a,n)&&(r.justified=!1);var p=void 0;if(p=Ln(r,s[0])?new so(r,this.chartService):new Je(r,this.chartService),o[n].categories=p.options.srcCategories,a){if(this.namedCategoryAxes[a])throw new Error("Category axis with name "+a+" is already defined");this.namedCategoryAxes[a]=p}p.axisIndex=n,i.push(p),this.appendAxis(p)}}var c=this.categoryAxis||i[0];this.categoryAxis=c,e?this.axisY=c:this.axisX=c},e.prototype.isJustified=function(){for(var t=this.series,e=0;e<t.length;e++){if(!lt(t[e].type,yr))return!1}return!0},e.prototype.createValueAxes=function(t){var e=this.valueAxisRangeTracker,o=e.query(),i=[].concat(this.options.valueAxis),n=this.invertAxes,r={vertical:!n,reverse:n&&this.chartService.rtl},a=[];this.stack100&&(r.roundToMajorUnit=!1,r.labels={format:"P0"});for(var s=0;s<i.length;s++){var p=i[s];if(lt(this.findPane(p.pane),t)){var c=p.name,l=En(p.type,"log")?{min:.1,max:1}:{min:0,max:1},u=e.query(c)||o||l;0===s&&u&&o&&(u.min=Math.min(u.min,o.min),u.max=Math.max(u.max,o.max));var h=new(En(p.type,"log")?xo:go)(u.min,u.max,M({},r,p),this.chartService);if(c){if(this.namedValueAxes[c])throw new Error("Value axis with name "+c+" is already defined");this.namedValueAxes[c]=h}h.axisIndex=s,a.push(h),this.appendAxis(h)}}var d=this.valueAxis||a[0];this.valueAxis=d,n?this.axisX=d:this.axisY=d},e.prototype._dispatchEvent=function(t,e,o){var i=t._eventCoordinates(e),n=new Kt(i.x,i.y),r=this.pointPane(n),a=[],s=[];if(r){for(var p=r.axes,c=0;c<p.length;c++){var l=p[c];l.getValue?jn(s,l.getValue(n)):jn(a,l.getCategory(n))}0===a.length&&jn(a,this.categoryAxis.getCategory(n)),a.length>0&&s.length>0&&t.trigger(o,{element:Ct(e),originalEvent:e,category:Bn(a),value:Bn(s)})}},e.prototype.pointPane=function(t){for(var e=this.panes,o=0;o<e.length;o++){var i=e[o];if(i.contentBox.containsPoint(t))return i}},e.prototype.updateAxisOptions=function(t,e){br(this.options,t,e),br(this.originalOptions,t,e)},e}(Yn);function br(t,e,o){M([].concat(e instanceof Je?t.categoryAxis:t.valueAxis)[e.axisIndex],o)}function xr(t,e,o){return at(t,(function(t){return 0===o&&!t.categoryAxis||t.categoryAxis===e}))}Rt(mr,{categoryAxis:{},valueAxis:{}}),M(mr.prototype,qn);var Sr=mr;function Cr(){this._defaultPrevented=!0}var wr=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 i=0;i<o.length;i++){var n=o[i];n&&n.toggleHighlight&&n.hasHighlight()&&(this.togglePointHighlight(n,!0,e),this._points.push(n))}},e.prototype.togglePointHighlight=function(t,e,o){var i=(t.options.highlight||{}).toggle;if(i){var n={category:t.category,series:t.series,dataItem:t.dataItem,value:t.value,stackValue:t.stackValue,preventDefault:Cr,visual:t.highlightVisual(),show:e};i(n),n._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}(w.Class);function Ar(t,e){var o=(e||"").toLowerCase(),i=t.event;return"none"===o&&!(i.ctrlKey||i.shiftKey||i.altKey)||i[o+"Key"]}function Or(t){for(var e={},o=0;o<t.length;o++){var i=t[o];i.axis.options.name&&(e[i.axis.options.name]={min:i.range.min,max:i.range.max})}return e}var Ir=function(t){function e(e,o){t.call(this),this.plotArea=e,this.options=M({},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=Ar(t,this.options.key),this._active},e.prototype.move=function(t){if(this._active){var e=this.axisRanges=this._panAxes(t,_).concat(this._panAxes(t,m));if(e.length)return this.axisRanges=e,Or(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 i=e[o];t.updateAxisOptions(i.axis,i.range)}t.redraw(t.panes)}},e.prototype.destroy=function(){delete this.plotArea},e.prototype._panAxes=function(t,e){var o=this.plotArea,i=-t[e].delta,n=(this.options.lock||"").toLowerCase(),r=[];if(0!==i&&(n||"").toLowerCase()!==e)for(var a=o.axes,s=0;s<a.length;s++){var p=a[s];if(e===_&&!p.options.vertical||e===m&&p.options.vertical){var c=p.pan(i);c&&(c.limitRange=!0,r.push({axis:p,range:c}))}}return r},e}(w.Class);Ir.prototype.options={key:"none",lock:"none"};var kr=Ir,Pr=function(t){function e(e,o){t.call(this),this.chart=e,this.options=M({},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){B(this._marquee,t)},e.prototype.start=function(t){if(Ar(t,this.options.key)){var e=this.chart,o=e._eventCoordinates(t),i=this._zoomPane=e._plotArea.paneByPoint(o),n=i?i.chartsBox().clone():null;if(i&&n){var r=this._elementOffset();return n.translate(r.left,r.top),this._zoomPaneClipBox=n,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=B(t,["paddingLeft","paddingTop"]),o=e.paddingLeft,i=e.paddingTop,n=xt(t);return{left:o+n.left,top:i+n.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 i={x:o.left,y:o.top},n={x:o.left+o.width,y:o.top+o.height};return this._updateAxisRanges(i,n),this.removeElement(),delete this._zoomPane,Or(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 i=t[o];e.updateAxisOptions(i.axis,i.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(),i=[],n=this._zoomPane.axes,r=0;r<n.length;r++){var a=n[r],s=a.options.vertical;if((o!==_||s)&&(o!==m||!s)&&mt(a.axisIndex)){var p=a.pointsRange(t,e);p&&i.push({axis:a,range:p})}}this.axisRanges=i},e.prototype._selectionPosition=function(t){var e=this._zoomPaneClipBox,o={x:t.x.startLocation,y:t.y.startLocation},i=t.x.location,n=t.y.location,r=(this.options.lock||"").toLowerCase(),a=Math.min(o.x,i),s=Math.min(o.y,n),p=Math.abs(o.x-i),c=Math.abs(o.y-n);return r===_&&(a=e.x1,p=e.width()),r===m&&(s=e.y1,c=e.height()),i>e.x2&&(p=e.x2-o.x),i<e.x1&&(p=o.x-e.x1),n>e.y2&&(c=e.y2-o.y),n<e.y1&&(c=o.y-e.y1),{left:Math.max(a,e.x1),top:Math.max(s,e.y1),width:p,height:c}},e}(w.Class);Pr.prototype.options={key:"shift",lock:"none"};var jr=Pr,Tr=function(t){function e(e,o){t.call(this),this.chart=e,this.options=M({},this.options,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.updateRanges=function(t){for(var e=(this.options.lock||"").toLowerCase(),o=[],i=this.chart._plotArea.axes,n=0;n<i.length;n++){var r=i[n],a=r.options.vertical;if((e!==_||a)&&(e!==m||!a)&&r.zoomRange){var s=r.zoomRange(-t);s&&o.push({axis:r,range:s})}}return this.axisRanges=o,Or(o)},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 i=t[o];e.updateAxisOptions(i.axis,i.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){delete this.chart},e}(w.Class),Mr=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 w.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 i=0;i<t.length;i++){var n=t[i];n.reflow(new $t),n.renderVisual()}},e.prototype.reflow=function(t){this.visual.rect(t.toRect()),this.visual.reflow();var e=this.visual.clippedBBox();this.box=e?_e(e):new $t},e.prototype.renderVisual=function(){this.addVisual()},e.prototype.createVisual=function(){},e}(ne),Er=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 fe({vertical:!1,wrap:!1,align:s,spacing:this.options.spacing}),this.append(this.container)},e.prototype.createMarker=function(){this.container.append(new pe(this.markerOptions()))},e.prototype.markerOptions=function(){var t=this.options,e=t.markerColor;return M({},t.markers,{background:e,border:{color:e}})},e.prototype.createLabel=function(){var t=this.options,e=M({},t.labels);this.container.append(new be(t.text,e))},e.prototype.renderComplete=function(){t.prototype.renderComplete.call(this);var e=this.options.cursor||{},o=this._itemOverlay=w.drawing.Path.fromRect(this.container.box.toRect(),{fill:{color:y,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:Ct(t),text:e.text,series:e.series,seriesIndex:e.series.index,pointIndex:e.pointIndex}},e.prototype.renderVisual=function(){var e=this,o=this.options,i=o.visual;i?(this.visual=i({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}(ae),Rr=function(t){function e(e,o){void 0===o&&(o={}),t.call(this,e),this.chartService=o,lt(this.options.position,[g,f,a,u,"custom"])||(this.options.position=f),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,i=e,n=s;"custom"===e?i=u:lt(e,[g,a])?(i="start"===o?u:"end"===o?f:s,n=e):o&&("start"===o?n=g:"end"===o&&(n=a)),this.container=new ae({margin:t.margin,padding:t.padding,background:t.background,border:t.border,vAlign:n,align:i,zIndex:t.zIndex,shrinkToFit:!0}),this.hasTitle()?this.itemsContainer=new ae({vAlign:n,align:i,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(),i=new Mr({vertical:o,spacing:e.spacing,rtl:t.rtl},t),n=e.items;e.reverse&&(n=n.slice(0).reverse());for(var r=n.length,a=0;a<r;a++){var s=n[a];i.append(new Er(M({},{markers:e.markers,labels:e.labels,rtl:t.rtl},e.item,s)))}i.render(),this.itemsContainer.append(i)},e.prototype.isVertical=function(){var t=this.options,e=t.orientation,o=t.position;return"custom"===o&&"horizontal"!==e||(mt(e)?"horizontal"!==e:lt(o,[u,f]))},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()?("custom"===e.position?(this.containerCustomReflow(o),this.box=o):this.containerReflow(o),this.hasTitle()&&this.title.reflow(new $t(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,i=e.position,n=e.width,r=e.height,s=i===g||i===a?_:m,p=this.isVertical(),c=t.clone(),l=t.clone();i!==u&&i!==f||(l.y1=c.y1=0),p&&r?(l.y2=l.y1+r,l.align(c,m,o.options.vAlign)):!p&&n&&(l.x2=l.x1+n,l.align(c,_,o.options.align)),o.reflow(l);var h=(l=o.box).clone();(e.offsetX||e.offsetY)&&(l.translate(e.offsetX,e.offsetY),o.reflow(l)),h[s+1]=t[s+1],h[s+2]=t[s+2],this.box=h},e.prototype.containerCustomReflow=function(t){var e=this.options,o=this.container,i=e.offsetX,n=e.offsetY,r=e.width,a=e.height,s=this.isVertical(),p=t.clone();s&&a?p.y2=p.y1+a:!s&&r&&(p.x2=p.x1+r),o.reflow(p),p=o.box,o.reflow(new $t(i,n,i+p.width(),n+p.height()))},e.prototype.renderVisual=function(){this.hasItems()&&t.prototype.renderVisual.call(this)},e.prototype.createLegendTitle=function(t){var e=M({},{color:r,position:g,align:s},t),o=e.text;if(t&&!1!==t.visible){if(mt(e)&&e.visible){var i=ot(e);i?o=i({text:o}):e.format&&(o=this.chartService.format.auto(e.format,o))}this.title=new be(o,e),this.createTitleLayout(),this.appendTitleLayoutContent()}},e.prototype.createTitleLayout=function(){this.layout=new fe({vertical:!0,wrap:!1}),this.container.append(this.layout)},e.prototype.hasTitle=function(){return Boolean(this.options.title&&!1!==this.options.title.visible)},e.prototype.appendTitleLayoutContent=function(){this.options.title.position===a?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))},e}(ne);Rt(Rr,{position:f,items:[],offsetX:0,offsetY:0,margin:V(5),padding:V(5),border:{color:r,width:0},item:{cursor:"pointer",spacing:6},spacing:6,background:"",zIndex:1,markers:{border:{width:0},width:15,height:3,type:"rect",align:u,vAlign:s}});var Dr=Rr,Lr=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 i,n=this._registry,r=n[0],a=0;a<n.length;a++){var s=n[a];if((i=Rn(t,s.seriesTypes)).length>0){r=s;break}}return new r.type(i,e,o)},e}(w.Class);Lr.current=new Lr;var Br=Lr;function Vr(t){var e=document.createElement("div");return t&&(e.className=t),e}function zr(t){for(var e=t;e&&!st(e,"k-handle");)e=e.parentNode;return e}var Nr=function(t){function e(e,o,i,n){t.call(this);var r=e.element;this.options=M({},this.options,i),this.chart=e,this.observer=n,this.chartElement=r,this.categoryAxis=o,this._dateAxis=this.categoryAxis instanceof so,this.initOptions(),this.visible=this.options.visible&&r.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=Vr("k-selector");B(e,{top:t.offset.top,left:t.offset.left,width:t.width,height:t.height,direction:"ltr"});var o=this.selection=Vr("k-selection");this.leftMask=Vr("k-mask"),this.rightMask=Vr("k-mask"),e.appendChild(this.leftMask),e.appendChild(this.rightMask),e.appendChild(o),o.appendChild(Vr("k-selection-bg"));var i=this.leftHandle=Vr("k-handle k-left-handle"),n=this.rightHandle=Vr("k-handle k-right-handle");i.appendChild(Vr()),n.appendChild(Vr()),o.appendChild(i),o.appendChild(n),this.chartElement.appendChild(e);var r=B(o,["borderLeftWidth","borderRightWidth","height"]),a=B(i,"height").height,s=B(n,"height").height;t.selection={border:{left:r.borderLeftWidth,right:r.borderRightWidth}},B(i,{top:(r.height-a)/2}),B(n,{top:(r.height-s)/2}),e.style.cssText=e.style.cssText},e.prototype.bindEvents=function(){var t;!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),_t(this.wrapper,((t={})[ni]=this._mousewheelHandler,t))),this._domEvents=J.create(this.wrapper,{stopPropagation:!0,start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),press:this._press.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)})},e.prototype.initOptions=function(){var t=this.options,e=this.categoryAxis.pane.chartsBox(),o=this.chart.chartService.intl;this._dateAxis&&M(t,{min:qe(o,t.min),max:qe(o,t.max),from:qe(o,t.from),to:qe(o,t.to)});var i=B(this.chartElement,["paddingLeft","paddingTop"]),n=i.paddingLeft,r=i.paddingTop;this.options=M({},{width:e.width(),height:e.height()+.1,padding:{left:n,top:r},offset:{left:e.x1+n,top:e.y1+r},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&&(jt(this.wrapper,((t={})[ni]=this._mousewheelHandler,t)),this._mousewheelHandler=null),this.chartElement.removeChild(this.wrapper),this.wrapper=null)},e.prototype._rangeEventArgs=function(t){return{axis:this.categoryAxis.options,from:this._value(t.from),to:this._value(t.to)}},e.prototype._start=function(t){var e=this.options,o=Ct(t);if(!this._state&&o){this.chart._unsetActivePoint(),this._state={moveTarget:zr(o)||o,startLocation:t.x?t.x.location:0,range:{from:this._index(e.from),to:this._index(e.to)}};var i=this._rangeEventArgs({from:this._index(e.from),to:this._index(e.to)});this.trigger("selectStart",i)&&(this._state=null)}},e.prototype._press=function(t){var e;(e=this._state?this._state.moveTarget:zr(Ct(t)))&&x(e,"k-handle-active")},e.prototype._move=function(t){if(this._state){var e=this._state,o=this.options,i=this.categoryAxis,n=e.range,r=e.moveTarget,a=i.options.reverse,s=this._index(o.from),p=this._index(o.to),c=this._index(o.min),l=this._index(o.max),u=e.startLocation-t.x.location,h=n.from,d=n.to,f=n.to-n.from,g=B(this.wrapper,"width").width/(i.categoriesCount()-1),v=Math.round(u/g)*(a?-1:1);if(r){var y=st(r,"k-left-handle"),_=st(r,"k-right-handle");st(r,"k-selection k-selection-bg")?(n.from=Math.min(Math.max(c,s-v),l-f),n.to=Math.min(n.from+f,l)):y&&!a||_&&a?(n.from=Math.min(Math.max(c,s-v),l-1),n.to=Math.max(n.from+1,n.to)):(y&&a||_&&!a)&&(n.to=Math.min(Math.max(c+1,p-v),l),n.from=Math.min(n.to-1,n.from)),n.from===h&&n.to===d||(this.move(n.from,n.to),this.trigger("select",this._rangeEventArgs(n)))}}},e.prototype._end=function(){if(this._state){var t=this._state.moveTarget;t&&C(t,"k-handle-active");var e=this._state.range;this.set(e.from,e.to),this.trigger("selectEnd",this._rangeEventArgs(e)),delete this._state}},e.prototype._tap=function(t){var e=this.options,o=this.categoryAxis,i=this.chart._eventCoordinates(t),n=o.pointCategoryIndex(new Kt(i.x,o.box.y1)),r=this._index(e.from),a=this._index(e.to),s=this._index(e.min),p=this._index(e.max),c=a-r,l=r+c/2,u={},h=3===t.event.which,d=Math.round(l-n);this._state||h||(this.chart._unsetActivePoint(),o.options.justified||d--,u.from=Math.min(Math.max(s,r-d),p-c),u.to=Math.min(u.from+c,p),this._start(t),this._state&&(this._state.range=u,this.trigger("select",this._rangeEventArgs(u)),this._end()))},e.prototype._mousewheel=function(t){var e=this,o=gt(t);if(this._start({target:this.selection}),this._state){var i=this._state.range;t.preventDefault(),t.stopPropagation(),Math.abs(o)>1&&(o*=3),this.options.mousewheel.reverse&&(o*=-1),this.expand(o)&&this.trigger("select",{axis:this.categoryAxis.options,delta:o,originalEvent:t,from:this._value(i.from),to:this._value(i.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._end()}),150)}},e.prototype._gesturestart=function(t){var e=this.options;this._state={range:{from:this._index(e.from),to:this._index(e.to)}};var o=this._rangeEventArgs(this._state.range);this.trigger("selectStart",o)?this._state=null:t.preventDefault()},e.prototype._gestureend=function(){this._state&&(this.trigger("selectEnd",this._rangeEventArgs(this._state.range)),delete this._state)},e.prototype._gesturechange=function(t){var e=this.chart,o=this._state,i=this.options,n=this.categoryAxis,r=o.range,a=e._toModelCoordinates(t.touches[0].x.location).x,s=e._toModelCoordinates(t.touches[1].x.location).x,p=Math.min(a,s),c=Math.max(a,s);t.preventDefault(),r.from=n.pointCategoryIndex(new Kt(p))||i.min,r.to=n.pointCategoryIndex(new Kt(c))||i.max,this.move(r.from,r.to),this.trigger("select",this._rangeEventArgs(r))},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,i=this.categoryAxis.options.reverse,n=o.offset,r=o.padding,a=o.selection.border,s=i?e:t,p=i?t:e,c="x"+(i?2:1),l=this._slot(s),u=Pt(l[c]-n.left+r.left);B(this.leftMask,{width:u}),B(this.selection,{left:u}),l=this._slot(p);var h=Pt(o.width-(l[c]-n.left+r.left));B(this.rightMask,{width:h});var d=o.width-h;d!==o.width&&(d+=a.right),B(this.rightMask,{left:d}),B(this.selection,{width:Math.max(o.width-(u+h)-a.right,0)})},e.prototype.set=function(t,e){var o=this.options,i=this._index(o.min),n=this._index(o.max),r=Ot(this._index(t),i,n),a=Ot(this._index(e),r+1,n);o.visible&&this.move(r,a),o.from=this._value(r),o.to=this._value(a)},e.prototype.expand=function(t){var e=this.options,o=this._index(e.min),i=this._index(e.max),n=e.mousewheel.zoom,r=this._index(e.from),a=this._index(e.to),s={from:r,to:a},p=M({},s);if(this._state&&(s=this._state.range),n!==f&&(s.from=Ot(Ot(r-t,0,a-1),o,i)),n!==u&&(s.to=Ot(Ot(a+t,s.from+1,i),o,i)),s.from!==p.from||s.to!==p.to)return this.set(s.from,s.to),!0},e.prototype.trigger=function(t,e){return(this.observer||this.chart).trigger(t,e)},e}(w.Class);Rt(Nr,{visible:!0,mousewheel:{zoom:"both"},min:d,max:h});var Fr=Nr,Gr=function(t){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=M({},this.options,e.options.tooltip),i=e.tooltipAnchor();i?(this._current=e,t.prototype.show.call(this,{point:e,anchor:i},o,e)):this.hide()}},e.prototype.hide=function(){delete this._current,t.prototype.hide.call(this)},e}(bn),Hr=function(t){function e(e,o){t.call(this,e.chartService,o),this.plotArea=e,this.formatService=e.chartService.format}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.showAt=function(t,e){var o=at(t,(function(t){var e=t.series.tooltip;return!(e&&!1===e.visible)}));if(o.length>0){var i=o[0],n=this.plotArea.categoryAxis.getSlot(i.categoryIx),r=e?this._slotAnchor(e,n):this._defaultAnchor(i,n);this.show({anchor:r,shared:!0,points:t,category:i.category,categoryText:this.formatService.auto(this.options.categoryFormat,i.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(),i=this.plotArea.categoryAxis.options.vertical,n=o.center(),r=e.center();return{point:i?new Kt(n.x,r.y):new Kt(r.x,n.y),align:{horizontal:"center",vertical:"center"}}},e}(bn);Rt(Hr,{categoryFormat:"{0:d}"});var Ur=Hr,Wr=function(t){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?m:_,i=this.fromScale=new w.geometry.Point(1,1);i[o]=Zo,t.transform(w.geometry.transform().scale(i.x,i.y))}else this.abort()},e.prototype.step=function(t){var e=ut(this.fromScale.x,1,t),o=ut(this.fromScale.y,1,t);this.element.transform(w.geometry.transform().scale(e,o,this.origin))},e.prototype.abort=function(){t.prototype.abort.call(this),this.element.transform(null)},e}(w.drawing.Animation);Rt(Wr,{duration:600}),w.drawing.AnimationFactory.current.register(Jo,Wr);var Xr=function(t){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(w.geometry.transform().scale(Zo,Zo,t))},e.prototype.step=function(t){this.element.transform(w.geometry.transform().scale(t,t,this.center))},e}(w.drawing.Animation);Rt(Xr,{easing:"easeOutElastic"}),w.drawing.AnimationFactory.current.register("bubble",Xr);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.setup=function(){this.fadeTo=this.element.opacity(),this.element.opacity(0)},e.prototype.step=function(t){this.element.opacity(t*this.fadeTo)},e}(w.drawing.Animation);Rt(Yr,{duration:200,easing:"linear"}),w.drawing.AnimationFactory.current.register("fadeIn",Yr);var qr=function(t){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(w.geometry.transform().scale(Zo,Zo,this.options.center))},e.prototype.step=function(t){this.element.transform(w.geometry.transform().scale(t,t,this.options.center))},e}(w.drawing.Animation);Rt(qr,{easing:"easeOutElastic",duration:600}),w.drawing.AnimationFactory.current.register(ei,qr);var Kr=qr,Zr=function(t){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("smooth"===e.style?Si:yi)(t,e,o)},e.prototype.animationPoints=function(){return t.prototype.animationPoints.call(this).concat(this._segments)},e.prototype.createMissingValue=function(t,e){if(e===$o){var o={x:t.x,y:t.y};return an(o.x)||(o.x=0),an(o.y)||(o.y=0),o}},e}(pn);M(Zr.prototype,Ci);var $r=Zr,Jr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new Di,this.yAxisRangeTracker=new Di},e.prototype.render=function(t){void 0===t&&(t=this.panes);for(var e=this.groupSeriesByPane(),o=0;o<t.length;o++){var i=t[o],n=e[i.options.name||"default"]||[];this.addToLegend(n);var r=this.filterVisibleSeries(n);r&&(this.createScatterChart(Rn(r,"scatter"),i),this.createScatterLineChart(Rn(r,"scatterLine"),i),this.createBubbleChart(Rn(r,"bubble"),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,i=at([].concat(e.xAxis),(function(t){return t.name===o}))[0],n=t.yAxis,r=at([].concat(e.yAxis),(function(t){return t.name===n}))[0],a=(e.panes||[{}])[0].name||"default";return(i||{}).pane||(r||{}).pane||a},e.prototype.createScatterChart=function(t,e){t.length>0&&this.appendChart(new pn(this,{series:t,clip:e.options.clip}),e)},e.prototype.createScatterLineChart=function(t,e){t.length>0&&this.appendChart(new $r(this,{series:t,clip:e.options.clip}),e)},e.prototype.createBubbleChart=function(t,e){t.length>0&&this.appendChart(new hn(this,{series:t,clip:e.options.clip}),e)},e.prototype.createXYAxis=function(t,e,o){for(var i,n=t.name,r=e?this.namedYAxes:this.namedXAxes,a=e?this.yAxisRangeTracker:this.xAxisRangeTracker,s=M({reverse:!e&&this.chartService.rtl},t,{vertical:e}),p=En(s.type,"log"),l=a.query(),u=p?{min:.1,max:1}:{min:0,max:1},h=a.query(n)||l||u,d=[s.min,s.max],f=this.series,g=0;g<f.length;g++){var v=f[g],y=v[e?"yAxis":"xAxis"];if(y===s.name||0===o&&!y){var _=Wo.current.bindPoint(v,0).valueFields;d.push(_[e?"y":"x"]);break}}0===o&&l&&(h.min=Math.min(h.min,l.min),h.max=Math.max(h.max,l.max));for(var m=0;m<d.length;m++)if(d[m]instanceof Date){i=!0;break}var b=new(En(s.type,c)||!s.type&&i?yo:p?xo:go)(h.min,h.max,s,this.chartService);if(b.axisIndex=o,n){if(r[n])throw new Error((e?"Y":"X")+" axis with name "+n+" is already defined");r[n]=b}return this.appendAxis(b),b},e.prototype.createAxes=function(t){for(var e=this.options,o=[].concat(e.xAxis),i=[],n=[].concat(e.yAxis),r=[],a=0;a<o.length;a++){lt(this.findPane(o[a].pane),t)&&i.push(this.createXYAxis(o[a],!1,a))}for(var s=0;s<n.length;s++){lt(this.findPane(n[s].pane),t)&&r.push(this.createXYAxis(n[s],!0,s))}this.axisX=this.axisX||i[0],this.axisY=this.axisY||r[0]},e.prototype._dispatchEvent=function(t,e,o){for(var i=t._eventCoordinates(e),n=new Kt(i.x,i.y),r=this.axes,a=r.length,s=[],p=[],c=0;c<a;c++){var l=r[c],u=l.options.vertical?p:s,h=l.getValue(n);null!==h&&u.push(h)}s.length>0&&p.length>0&&t.trigger(o,{element:Ct(e),originalEvent:e,x:Bn(s),y:Bn(p)})},e.prototype.updateAxisOptions=function(t,e){var o=t.options.vertical,i=this.groupAxes(this.panes),n=(o?i.y:i.x).indexOf(t);Qr(this.options,n,o,e),Qr(this.originalOptions,n,o,e)},e}(Yn);function Qr(t,e,o,i){M([].concat(o?t.yAxis:t.xAxis)[e],i)}Rt(Jr,{xAxis:{},yAxis:{}}),M(Jr.prototype,qn);var ta=Jr,ea=function(t){function e(e,o,i){t.call(this,i),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 i=ot(t),n=this.pointData();if(i?o=i(n):t.format&&(o=e.format.auto(t.format,o)),t.visible&&(o||0===o)){if(t.position===s||"insideEnd"===t.position)t.color||(t.color=Ft(this.options.color)),t.background||(t.background=this.options.color);else{var r=e.theme.seriesDefaults.labels;t.color=t.color||r.color,t.background=t.background||r.background}this.label=new be(o,M({},t,{align:s,vAlign:"",animation:{type:"fadeIn",delay:this.animationDelay}}),n),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(),i=t.distance,n=o.middle();if(e){var r,a=e.box.height(),p=e.box.width();if(t.position===s)o.radius=Math.abs((o.radius-a)/2)+a,r=o.point(n),e.reflow(new $t(r.x,r.y-a/2,r.x,r.y));else if("insideEnd"===t.position)o.radius=o.radius-a/2,r=o.point(n),e.reflow(new $t(r.x,r.y-a/2,r.x,r.y));else{var c;(r=o.clone().expand(i).point(n)).x>=o.center.x?(c=r.x+p,e.orientation=f):(c=r.x-p,e.orientation=u),e.reflow(new $t(c,r.y-a,r.x,r.y))}}},e.prototype.createVisual=function(){var e=this,o=this.sector,i=this.options;if(t.prototype.createVisual.call(this),this.value)if(i.visual){var n=(o.startAngle+180)%360,r=i.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new w.geometry.Point(o.center.x,o.center.y),radius:o.radius,innerRadius:o.innerRadius,startAngle:n,endAngle:n+o.angle,options:i,sender:this.getSender(),createVisual:function(){var t=new w.drawing.Group;return e.createSegmentVisual(t),t}});r&&this.visual.append(r)}else this.createSegmentVisual(this.visual)},e.prototype.createSegmentVisual=function(t){var e=this.sector,o=this.options,i=o.border||{},n=i.width>0?{stroke:{color:i.color,width:i.width,opacity:i.opacity,dashType:i.dashType}}:{},r=o.color,a={color:r,opacity:o.opacity},s=this.createSegment(e,M({fill:a,stroke:{opacity:o.opacity},zIndex:o.zIndex},n));t.append(s),Vi(o)&&t.append(this.createGradientOverlay(s,{baseColor:r,fallbackFill:a},M({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 w.drawing.Circle(new w.geometry.Circle(new w.geometry.Point(t.center.x,t.center.y),t.radius),e):oe.current.createRing(t,e)},e.prototype.createAnimation=function(){var e=this.options,o=this.sector.center;M(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,M({},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 w.geometry.Point(t.center.x,t.center.y),startAngle:t.startAngle,endAngle:t.angle+t.startAngle,visual:this.visual}},e.prototype.tooltipAnchor=function(){var t=this.sector.clone().expand(5),e=t.middle();return{point:t.point(e),align:na(e+180)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series,percentage:this.percentage}},e}(ne),oa=Pt(kt(30),10),ia=Pt(kt(60),10);function na(t){var e=kt(t),o=Pt(Math.sin(e),10),i=Pt(Math.cos(e),10);return{horizontal:Math.abs(o)>ia?s:i<0?f:u,vertical:Math.abs(o)<oa?s:o<0?a:g}}Rt(ea,{color:y,overlay:{gradient:"roundedBevel"},border:{width:.5},labels:{visible:!1,distance:35,font:"12px sans-serif",margin:V(.5),align:p,zIndex:1,position:"outsideEnd"},animation:{type:ei},highlight:{visible:!0,border:{width:1}},visible:!0}),M(ea.prototype,hi);var ra=ea,aa={createLegendItem:function(t,e,o){var i=this.options.legend||{},n=i.labels||{},r=i.inactiveItems||{},a=r.labels||{};if(o&&!1!==o.visibleInLegend){var s,p,c=!1!==o.visible,l=c?ot(n):ot(a)||ot(n),u=o.category;l&&(u=l({text:u,series:o.series,dataItem:o.dataItem,percentage:o.percentage,value:t})),c?(s={},p=e.color):(s={color:a.color,font:a.font},p=(r.markers||{}).color),an(u)&&""!==u&&this.legendItems.push({active:c,pointIndex:o.index,text:u,series:o.series,markerColor:p,labels:s})}}},sa=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 i=o.length,n=e.series,r=n.length,a=0;a<r;a++){var p=n[a],c=p.data,l=Mn(p),u=l.total,h=l.points,d=l.count,f=360/u,g=void 0;isFinite(f)||(g=360/d);var v=void 0;v=mt(p.startAngle)?p.startAngle:e.startAngle,a!==r-1&&"outsideEnd"===p.labels.position&&(p.labels.position=s);for(var y=0;y<h.length;y++){var _=h[y];if(_){var m=_.fields,b=_.value,x=_.visible,S=0!==b?g||b*f:0,C=1!==c.length&&Boolean(m.explode);j(p.color)||(p.color=m.color||o[y%i]),t(_.valueFields.value,new Qt(null,0,0,v,S),{owner:this,category:mt(m.category)?m.category:"",index:y,series:p,seriesIx:a,dataItem:c[y],percentage:0!==u?b/u:0,explode:C,visibleInLegend:m.visibleInLegend,visible:x,zIndex:r-a,animationDelay:this.animationDelay(y,a,r)}),!1!==x&&(v+=S)}}}},e.prototype.evalSegmentOptions=function(t,e,o){var i=o.series;pi(t,{value:e,series:i,dataItem:o.dataItem,category:o.category,percentage:o.percentage},{defaults:i._defaults,excluded:["data","content","template","visual","toggle"]})},e.prototype.addValue=function(t,e,o){var i=M({},o.series,{index:o.index});if(this.evalSegmentOptions(i,t,o),this.createLegendItem(t,i,o),!1!==o.visible){var n=new ra(t,e,i);Object.assign(n,o),this.append(n),this.points.push(n)}},e.prototype.reflow=function(t){var e=this.options,o=this.points,i=this.seriesConfigs;void 0===i&&(i=[]);var n=o.length,r=t.clone(),a=Math.min(r.width(),r.height()),s=a/2,p=a-.85*a,c=new $t(r.x1,r.y1,r.x1+a,r.y1+a),l=c.center(),u=r.center(),h=e.series.length,d=[],g=[],v=Tt(e.padding,p);this.targetBox=t,v=v>s-5?s-5:v,c.translate(u.x-l.x,u.y-l.y);for(var y=s-v,_=new Kt(y+c.x1+v,y+c.y1+v),m=0;m<n;m++){var b=o[m],x=b.sector,S=b.seriesIx;if(x.radius=y,x.center=_,i.length){var C=i[S];x.innerRadius=C.innerRadius,x.radius=C.radius}S===h-1&&b.explode&&(x.center=x.clone().setRadius(.15*x.radius).point(x.middle())),b.reflow(c);var w=b.label;w&&"outsideEnd"===w.options.position&&S===h-1&&(w.orientation===f?g.push(w):d.push(w))}d.length>0&&(d.sort(this.labelComparator(!0)),this.leftLabelsReflow(d)),g.length>0&&(g.sort(this.labelComparator(!1)),this.rightLabelsReflow(g)),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=At(this.points),o=e.sector,i=t.length-1,n=o.radius+e.options.labels.distance,r=[],a=t[0].box,s=Pt(a.y1-(o.center.y-n-a.height()-a.height()/2));r.push(s);for(var p=0;p<i;p++){var c=t[p+1].box;a=t[p].box,s=Pt(c.y1-a.y2),r.push(s)}return s=Pt(o.center.y+n-t[i].box.y2-t[i].box.height()/2),r.push(s),r},e.prototype.distributeLabels=function(t,e){for(var o,i,n,r=t.length,a=0;a<r;a++)for(n=-t[a],o=i=a;n>0&&(o>=0||i<r);)n=this._takeDistance(t,a,--o,n),n=this._takeDistance(t,a,++i,n);this.reflowLabels(t,e)},e.prototype._takeDistance=function(t,e,o,i){var n=i;if(t[o]>0){var r=Math.min(t[o],n);n-=r,t[o]-=r,t[e]+=r}return n},e.prototype.reflowLabels=function(t,e){var o,i=At(this.points),n=i.sector,r=i.options.labels,a=e.length,s=r.distance,c=n.center.y-(n.radius+s)-e[0].box.height();t[0]+=2;for(var l=0;l<a;l++){var u=e[l],h=u.box;c+=t[l],o=this.hAlignLabel(h.x2,n.clone().expand(s),c,c+h.height(),u.orientation===f),u.orientation===f?(r.align!==p&&(o=n.radius+n.center.x+s),u.reflow(new $t(o+h.width(),c,o,c))):(r.align!==p&&(o=n.center.x-n.radius-s),u.reflow(new $t(o-h.width(),c,o,c))),c+=h.height()}},e.prototype.createVisual=function(){var e=this.options.connectors,o=this.points,i=o.length;t.prototype.createVisual.call(this),this._connectorLines=[];for(var n=0;n<i;n++){var r=o[n],a=r.sector,s=r.label,p=a.middle(),c=(r.options.connectors||{}).color||e.color;if(s){var l=new w.drawing.Path({stroke:{color:c,width:e.width},animation:{type:"fadeIn",delay:r.animationDelay}});if("outsideEnd"===s.options.position){var u=s.box,h=a.center,d=a.point(p),g=new Kt(u.x1,u.center().y),v=void 0,y=void 0,_=void 0;d=a.clone().expand(e.padding).point(p),l.moveTo(d.x,d.y),s.orientation===f?(_=pa(h,d,g,y=new Kt(u.x1-e.padding,u.center().y)),g=new Kt(y.x-4,y.y),(_=_||g).x=Math.min(_.x,g.x),this.pointInCircle(_,a.center,a.radius+4)||_.x<a.center.x?(v=a.center.x+a.radius+4,r.options.labels.align!==Qo?v<g.x?l.lineTo(v,d.y):l.lineTo(d.x+8,d.y):l.lineTo(v,d.y),l.lineTo(g.x,y.y)):(_.y=y.y,l.lineTo(_.x,_.y))):(_=pa(h,d,g,y=new Kt(u.x2+e.padding,u.center().y)),g=new Kt(y.x+4,y.y),(_=_||g).x=Math.max(_.x,g.x),this.pointInCircle(_,a.center,a.radius+4)||_.x>a.center.x?(v=a.center.x-a.radius-4,r.options.labels.align!==Qo?v>g.x?l.lineTo(v,d.y):l.lineTo(d.x-8,d.y):l.lineTo(v,d.y),l.lineTo(g.x,y.y)):(_.y=y.y,l.lineTo(_.x,_.y))),l.lineTo(y.x,y.y),this._connectorLines.push(l),this.visual.append(l)}}}},e.prototype.renderVisual=function(){if(t.prototype.renderVisual.call(this),Lt(this.options.series,(function(t){return t.autoFit}))){var e=this.targetBox,o=this.box.center(),i=this.visual.bbox();if(!i)return;var n=i.bottomRight(),r=Math.min((o.y-e.y1)/(o.y-i.origin.y),(e.y2-o.y)/(n.y-o.y),(o.x-e.x1)/(o.x-i.origin.x),(e.x2-o.x)/(n.x-o.x));r<1&&this.visual.transform(w.geometry.transform().scale(r,r,[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,i,n){var r=e.radius,a=e.center,s=a.x,p=a.y,c=Math.min(Math.abs(p-o),Math.abs(p-i));return c>r?t:s+Math.sqrt(r*r-c*c)*(n?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}(ne);function pa(t,e,o,i){var n,r=(i.x-o.x)*(t.y-o.y)-(i.y-o.y)*(t.x-o.x),a=(i.y-o.y)*(e.x-t.x)-(i.x-o.x)*(e.y-t.y);if(0!==a){var s=r/a;n=new Kt(t.x+s*(e.x-t.x),t.y+s*(e.y-t.y))}return n}Rt(sa,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),M(sa.prototype,aa),sa.prototype.isStackRoot=!0;var ca=sa,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.render=function(){this.createPieChart(this.series)},e.prototype.createPieChart=function(t){var e=t[0],o=new ca(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),yt(this.options.legend.items,e.legendItems)},e}(Yn),ua=function(t){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,i=this.sector.clone(),n=i.middle();if(o){var r=o.box.height();if(e.position===s){i.radius-=(i.radius-i.innerRadius)/2;var a=i.point(n);o.reflow(new $t(a.x,a.y-r/2,a.x,a.y))}else t.prototype.reflowLabel.call(this)}},e.prototype.createSegment=function(t,e){return oe.current.createRing(t,e)},e}(ra);Rt(ua,{overlay:{gradient:"roundedGlass"},labels:{position:s},animation:{type:ei}}),M(ua.prototype,hi);var ha=ua,da=function(t){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 i=M({},o.series,{index:o.index});if(this.evalSegmentOptions(i,t,o),this.createLegendItem(t,i,o),t&&!1!==o.visible){var n=new ha(t,e,i);Object.assign(n,o),this.append(n),this.points.push(n)}},e.prototype.reflow=function(e){for(var o,i=this.options,n=e.clone(),r=Math.min(n.width(),n.height()),a=r/2,s=r-.85*r,p=i.series,c=p.length,l=Tt(i.padding,s),u=a-(l=l>a-5?a-5:l),h=0,d=0;d<c;d++){var f=p[d];0===d&&mt(f.holeSize)&&(o=f.holeSize,u-=f.holeSize),mt(f.size)?u-=f.size:h++,mt(f.margin)&&d!==c-1&&(u-=f.margin)}mt(o)||(u-=o=.75*((a-l)/(c+.75)));var g,v=o,y=0;this.seriesConfigs=[];for(var _=0;_<c;_++){var m=p[_];g=(v+=y)+Tt(m.size,u/h),this.seriesConfigs.push({innerRadius:v,radius:g}),y=m.margin||0,v=g}t.prototype.reflow.call(this,e)},e.prototype.animationDelay=function(t,e,o){return 50*t+600*(e+1)/(o+1)},e}(ca);Rt(da,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}});var fa=da,ga=function(t){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 fa(this,{series:t,padding:e.padding,connectors:e.connectors,legend:this.options.legend});this.appendChart(o)},e}(la),va=function(t){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 Di},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,i=t.getSlot(o),n=this.polarAxis.getSlot(0).center,r=t.box.translate(n.x-i.x1,n.y-i.y1);t.reflow(r)},e.prototype.createValueAxis=function(){var t,e,o=this.valueAxisRangeTracker,i=o.query(),n=this.valueAxisOptions({roundToMajorUnit:!1,zIndex:-1});"log"===n.type?(t=Mo,e={min:.1,max:1}):(t=jo,e={min:0,max:1});var r=o.query(name)||i||e;r&&i&&(r.min=Math.min(r.min,i.min),r.max=Math.max(r.max,i.max));var a=new t(r.min,r.max,n,this.chartService);this.valueAxis=a,this.appendAxis(a)},e.prototype.reflowAxes=function(){var t=this.options.plotArea,e=this.valueAxis,o=this.polarAxis,i=this.box,n=.15*Math.min(i.width(),i.height()),r=V(t.padding||{},n),a=i.clone().unpad(r),p=a.clone();p.y2=p.y1+Math.min(p.width(),p.height()),p.align(a,m,s);var c=p.clone().shrink(0,p.height()/2);o.reflow(p),e.reflow(c);var l=e.lineBox().height()-e.box.height();e.reflow(e.box.unpad({top:l})),this.axisBox=p,this.alignAxes(p)},e.prototype.backgroundBox=function(){return this.box},e.prototype.detachLabels=function(){},e}(Yn),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.pointSlot=function(t,e){var o=t.center.y-e.y1,i=Kt.onCircle(t.center,t.startAngle,o);return new $t(i.x,i.y,i.x,i.y)},e}(pn);Rt(ya,{clip:!1});var _a=ya,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}($r);ma.prototype.pointSlot=_a.prototype.pointSlot,Rt(ma,{clip:!1});var ba=ma,xa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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 Ro(!1),i=this.points();i.push(e),(t=this._strokeSegments=o.process(i)).pop()}return t},e}(Ei),Sa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(t){var e=this.parent.plotArea.polarAxis.box.center(),o=new w.geometry.Segment([e.x,e.y]);t.segments.unshift(o),t.segments.push(o)},e}(ji);function Ca(t,e){return t.value.x-e.value.x}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.createSegment=function(t,e,o){return"smooth"===(e.line||{}).style?new xa(t,e,o):new Sa(t,e,o)},e.prototype.createMissingValue=function(t,e){var o;return an(t.x)&&"interpolate"!==e&&(o={x:t.x,y:t.y},e===$o&&(o.y=0)),o},e.prototype.seriesMissingValues=function(t){return t.missingValues||$o},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(Ca),this._hasMissingValuesGap())for(var e=0;e<t.length;e++){var o=t[e];if(o)an(o.value.y)||"gap"!==this.seriesMissingValues(o.series)||delete t[e]}return t},e}(ba),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.createPolarAxis=function(){var t=new Oo(this.options.xAxis,this.chartService);this.polarAxis=t,this.axisX=t,this.appendAxis(t)},e.prototype.valueAxisOptions=function(t){return M(t,{majorGridLines:{type:n},minorGridLines:{type:n}},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),Yn.prototype.appendChart.call(this,t,e)},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createLineChart(Rn(t,["polarLine"]),e),this.createScatterChart(Rn(t,["polarScatter"]),e),this.createAreaChart(Rn(t,["polarArea"]),e)},e.prototype.createLineChart=function(t,e){if(0!==t.length){var o=new ba(this,{series:t});this.appendChart(o,e)}},e.prototype.createScatterChart=function(t,e){if(0!==t.length){var o=new _a(this,{series:t});this.appendChart(o,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var o=new wa(this,{series:t});this.appendChart(o,e)}},e.prototype._dispatchEvent=function(t,e,o){var i=t._eventCoordinates(e),n=new Kt(i.x,i.y),r=this.axisX.getValue(n),a=this.axisY.getValue(n);null!==r&&null!==a&&t.trigger(o,{element:Ct(e),x:r,y:a})},e.prototype.createCrosshairs=function(){},e}(va);Rt(Aa,{xAxis:{},yAxis:{}}),M(Aa.prototype,qn);var Oa=Aa;var Ia=function(t){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,i=Kt.onCircle(t.center,t.middle(),o);return new $t(i.x,i.y,i.x,i.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 i=t[o];e[i.seriesIx]=e[i.seriesIx]||[],e[i.seriesIx].push(i)}return e}(this._segments),o=0;o<e.length;o++){var i=e[o];if(i&&i.length>1){var n=i[0].linePoints[0],r=At(i),a=At(r.linePoints),s=0===n.categoryIx,p=a.categoryIx===a.categoriesCount-1;s&&p&&At(i).linePoints.push(n)}}},e.prototype.createSegment=function(t,e,o){var i=new("smooth"===e.style?Si:yi)(t,e,o),n=this.seriesMissingValues(e);return t.length!==e.data.length&&"interpolate"!==n||(i.options.closed=!0),i},e}(Pi);Rt(Ia,{clip:!1,limitPoints:!1});var ka=Ia,Pa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(){},e}(Ei),ja=function(t){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}(ji),Ta=function(t){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,i){var n,r,a,s=this.options.isStacked,p=(e.line||{}).style;return s&&o>0&&i&&(r=i.linePoints.slice(0),n=i),"smooth"===p?(a=new Pa(t,e,o,n,r)).options.closed=!0:(t.push(t[0]),a=new ja(t,e,o,n,r)),a},e.prototype.seriesMissingValues=function(t){return t.missingValues||$o},e}(ka),Ma=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}(ha);Rt(Ma,{overlay:{gradient:"none"},labels:{distance:10}});var Ea=Ma,Ra=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Gi:Fi}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,i=e.gap,n=e.spacing,r=o.length,a=r+i+n*(r-1),s=t.angle/a,p=t.startAngle+s*(i/2);this.forEach(o,(function(e){var o=t.clone();o.startAngle=p,o.angle=s,e.sector&&(o.radius=e.sector.radius),e.reflow(o),e.sector=o,p+=s+s*n}))},e}(ne);Rt(Ra,{gap:1,spacing:0});var Da=Ra,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.reflow=function(t){var e=this.options.reverse,o=this.children,i=o.length,n=e?i-1:0,r=e?-1:1;this.box=new $t;for(var a=n;a>=0&&a<i;a+=r){var s=o[a].sector;s.startAngle=t.startAngle,s.angle=t.angle}},e}(ne),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.pointType=function(){return Ea},e.prototype.clusterType=function(){return Da},e.prototype.stackType=function(){return La},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.pointSlot=function(t,e){var o=t.clone(),i=t.center.y;return o.radius=i-e.y1,o.innerRadius=i-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}(qi);Ba.prototype.reflow=ui.prototype.reflow,Rt(Ba,{clip:!1,limitPoints:!1,animation:{type:"pie"}});var Va=Ba,za=function(t){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 wo(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&&M(t,{majorGridLines:{type:n},minorGridLines:{type:n}}),this._isStacked100&&M(t,{roundToMajorUnit:!1,labels:{format:"P0"}}),M(t,this.options.valueAxis)},e.prototype.aggregateCategories=function(){Sr.prototype.aggregateCategories.call(this,this.panes)},e.prototype.createCategoryAxesLabels=function(){Sr.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(Rn(t,["radarArea"]),e),this.createLineChart(Rn(t,["radarLine"]),e),this.createBarChart(Rn(t,["radarColumn"]),e)},e.prototype.chartOptions=function(t){var e={series:t},o=t[0];if(o){var i=this.filterVisibleSeries(t),n=o.stack;e.isStacked=n&&i.length>1,e.isStacked100=n&&"100%"===n.type&&i.length>1,e.isStacked100&&(this._isStacked100=!0)}return e},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var o=new Ta(this,this.chartOptions(t));this.appendChart(o,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var o=new ka(this,this.chartOptions(t));this.appendChart(o,e)}},e.prototype.createBarChart=function(t,e){if(0!==t.length){var o=t[0],i=this.chartOptions(t);i.gap=o.gap,i.spacing=o.spacing;var n=new Va(this,i);this.appendChart(n,e),this._hasBarCharts=!0}},e.prototype.seriesCategoryAxis=function(){return this.categoryAxis},e.prototype._dispatchEvent=function(t,e,o){var i=t._eventCoordinates(e),n=new Kt(i.x,i.y),r=this.categoryAxis.getCategory(n),a=this.valueAxis.getValue(n);null!==r&&null!==a&&t.trigger(o,{element:Ct(e),category:r,value:a})},e.prototype.createCrosshairs=function(){},e}(va);M(za.prototype,qn,{appendChart:Sr.prototype.appendChart,aggregateSeries:Sr.prototype.aggregateSeries,seriesSourcePoints:Sr.prototype.seriesSourcePoints}),Rt(za,{categoryAxis:{categories:[]},valueAxis:{}});var Na=za,Fa=function(t){function e(e,o,i){t.call(this,o),this.value=e,this.options.index=i.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 $t(e[0].x,e[0].y,e[1].x,e[2].y),o&&o.reflow(new $t(t.x1,e[0].y,t.x2,e[2].y))},e.prototype.createVisual=function(){var e,o=this,i=this.options;t.prototype.createVisual.call(this),(e=i.visual?i.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:i,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 w.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 w.drawing.Path.fromPoints(this.points,t)},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=w.drawing.Path.fromPoints(this.points).close();return{options:this.options,path:t}},e.prototype.tooltipAnchor=function(){var t=this.box;return{point:new Kt(t.center().x,t.y1),align:{horizontal:"center",vertical:"top"}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(ne);Rt(Fa,{color:y,border:{width:1}}),M(Fa.prototype,hi);var Ga=Fa,Ha=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.options,e=this.plotArea.options.seriesColors;void 0===e&&(e=[]);var o=t.series[0],i=o.data;if(i)for(var n=Mn(o),r=n.total,a=n.points,s=0;s<a.length;s++){var p=a[s];if(p){var c=p.fields;j(o.color)||(o.color=c.color||e[s%e.length]),c=M({index:s,owner:this,series:o,dataItem:i[s],percentage:p.value/r},c,{visible:p.visible});var l=p.valueFields.value,u=this.createSegment(l,c),h=this.createLabel(l,c);u&&h&&u.append(h)}}},e.prototype.evalSegmentOptions=function(t,e,o){var i=o.series;pi(t,{value:e,series:i,dataItem:o.dataItem,index:o.index},{defaults:i._defaults,excluded:["data","content","template","toggle","visual"]})},e.prototype.createSegment=function(t,e){var o=M({},e.series);if(this.evalSegmentOptions(o,t,e),this.createLegendItem(t,o,e),!1!==e.visible){var i=new Ga(t,o,e);return Object.assign(i,e),this.append(i),this.points.push(i),i}},e.prototype.createLabel=function(t,e){var o=e.series,i=e.dataItem,n=M({},this.options.labels,o.labels),r=t;if(n.visible){var a=ot(n),s={dataItem:i,value:t,percentage:e.percentage,category:e.category,series:o};a?r=a(s):n.format&&(r=this.plotArea.chartService.format.auto(n.format,r)),n.color||(n.color=Ft(o.color),n.background||(n.background=o.color)),this.evalSegmentOptions(n,t,e);var p=new be(r,M({vAlign:n.position},n),s);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 i=t[o].options.align;if(i!==s){var n=t[o].box.width();i===u?e.left=Math.max(e.left,n):e.right=Math.max(e.right,n)}}return e},e.prototype.dynamicSlopeReflow=function(t,e,o){for(var i=this.options,n=this.points,r=n.length,a=n[0],s=a,p=0;p<n.length;p++)n[p].percentage>s.percentage&&(s=n[p]);for(var c=a.percentage/s.percentage*e,l=(e-c)/2,u=0,h=0;h<r;h++){var d=n[h].percentage,f=n[h+1],g=f?f.percentage:d,v=n[h].points=[],y=i.dynamicHeight?o*d:o/r,_=void 0;_=Ot(_=d?(e-c*(g/d))/2:g?0:e/2,0,e),v.push(new w.geometry.Point(t.x1+l,t.y1+u)),v.push(new w.geometry.Point(t.x1+e-l,t.y1+u)),v.push(new w.geometry.Point(t.x1+e-_,t.y1+y+u)),v.push(new w.geometry.Point(t.x1+_,t.y1+y+u)),l=_,u+=y+i.segmentSpacing,c=Ot(e-2*_,0,e)}},e.prototype.constantSlopeReflow=function(t,e,o){for(var i=this.options,n=this.points,r=n.length,a=i.neckRatio<=1,s=a?i.neckRatio*e:e,p=a?0:(e-e/i.neckRatio)/2,c=((a?e:e-2*p)-s)/2,l=0,u=0;u<r;u++){var h=n[u].points=[],d=n[u].percentage,f=i.dynamicHeight?c*d:c/r,g=i.dynamicHeight?o*d:o/r;h.push(new w.geometry.Point(t.x1+p,t.y1+l)),h.push(new w.geometry.Point(t.x1+e-p,t.y1+l)),h.push(new w.geometry.Point(t.x1+e-p-f,t.y1+g+l)),h.push(new w.geometry.Point(t.x1+p+f,t.y1+g+l)),p+=f,l+=g+i.segmentSpacing}},e.prototype.reflow=function(t){var e=this.points,o=e.length;if(o){var i=this.options,n=t.clone().unpad(this.labelPadding()),r=n.height()-i.segmentSpacing*(o-1),a=n.width();i.dynamicSlope?this.dynamicSlopeReflow(n,a,r):this.constantSlopeReflow(n,a,r);for(var s=0;s<o;s++)e[s].reflow(t)}},e}(ne);Rt(Ha,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:s,position:s,zIndex:1}}),M(Ha.prototype,aa);var Ua=Ha,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.render=function(){this.createFunnelChart(this.series)},e.prototype.createFunnelChart=function(t){var e=t[0],o=new Ua(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),yt(this.options.legend.items,e.legendItems)},e}(Yn),Xa=function(t,e){void 0===e&&(e=.05);var o=Object(w.parseColor)(t),i=1-e;return function(t){var e=o.toHSL(),n=100-e.l,r=i-t;return e.l+=Math.min(r*n,n),e.toCss()}},Ya=function(t){function e(e,o){t.call(this),this.options=o,this.color=o.color||y,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(),i=ot(t),n=t.color;e=i?i(o):this.formatValue(t.format),n||(n=Ft(this.color)),this.label=new be(e,M({align:s,vAlign:s,margin:{left:5,right:5},zIndex:Tt(t.zIndex,this.series.zIndex)},t,{color:n}),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(),i="roundedRect"===Tt(t.type,"rect"),n=Tt(e.width,i?1:0),r=Math.round(n/2);if(t.size){var a=o.center();o.size.width=o.size.height=t.size,o.origin.x=Math.round(a.x-o.size.width/2),o.origin.y=Math.round(a.y-o.size.height/2)}return o.size.width-=n,o.size.height-=n,o.origin.y+=r+.5,o.origin.x+=r+.5,_e(o)},e.prototype.markerBorder=function(){var t=this.options,e=t.markers.border,o=Tt(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 pe({type:Tt(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:Tt(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,i=new pe({type:Tt(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:Tt(e.zIndex,this.series.zIndex)});i.reflow(this.markerBox());var n=i.getElement();return n.options.fill=t.fill,n.options.stroke=t.stroke,n},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 Kt(t,e),align:{horizontal:s,vertical:a}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.unclipElements=function(){},e.prototype.pointData=function(){return{x:this.value.x,y:this.value.y,value:this.value.value,dataItem:this.dataItem,series:this.series}},e}(ne);M(Ya.prototype,hi),M(Ya.prototype,di),Ya.prototype.defaults={markers:{type:"rect",borderRadius:4,border:{color:"transparent"}},padding:{top:1},labels:{visible:!1,padding:3},opacity:1,notes:{label:{}}};var qa=Ya,Ka=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:h,max:d},this._evalSeries=[]},e.prototype.render=function(){this.setRange(),this.traverseDataPoints(this.addValue.bind(this))},e.prototype.setRange=function(){for(var t=this.options.series,e=0;e<t.length;e++)for(var o=t[e],i=0;i<o.data.length;i++){var n=this._bindPoint(o,e,i).valueFields;this.valueRange.min=Math.min(this.valueRange.min,n.value),this.valueRange.max=Math.max(this.valueRange.max,n.value)}},e.prototype.addValue=function(t,e){var o;t&&(o=this.createPoint(t,e))&&Object.assign(o,e),this.points.push(o)},e.prototype.evalPointOptions=function(t,e,o){var i=o.series,n=o.seriesIx,r={defaults:i._defaults,excluded:["data","tooltip","content","template","visual","toggle"]},a=this._evalSeries[n];mt(a)||(this._evalSeries[n]=a=pi(t,{},r,!0));var s=t;return a&&pi(s=M({},t),{value:e,series:i,dataItem:o.dataItem,min:this.valueRange.min,max:this.valueRange.max},r),s},e.prototype.pointType=function(){return qa},e.prototype.pointOptions=function(t,e){var o=this.seriesOptions[e];if(!o){var i=this.pointType().prototype.defaults;this.seriesOptions[e]=o=M({},i,{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,i=this.pointOptions(o,e.seriesIx),n=e.color||o.color;(i=this.evalPointOptions(i,t,e),j(o.color))?n=i.color:n=Xa(n)(t.value/this.valueRange.max);var r=new qa(t,i);return r.color=n,this.append(r),r},e.prototype.seriesAxes=function(t){var e=t.xAxis,o=t.yAxis,i=this.plotArea,n=e?i.namedXAxes[e]:i.axisX,r=o?i.namedYAxes[o]:i.axisY;if(!n)throw new Error("Unable to locate X axis with name "+e);if(!r)throw new Error("Unable to locate Y axis with name "+o);return{xAxis:n,yAxis:r}},e.prototype.reflow=function(t){var e=this,o=this.points,i=!this.options.clip,n=0;this.traverseDataPoints((function(t,r){var a=o[n++],s=e.seriesAxes(r.series),p=s.xAxis,c=s.yAxis,l=p.categoryIndex(t.x),u=c.categoryIndex(t.y),h=p.getSlot(l,l,i),d=c.getSlot(u,u,i);if(a)if(h&&d){var f=e.pointSlot(h,d);a.reflow(f)}else a.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new $t(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,o=0;o<e.length;o++)for(var i=e[o],n=this.seriesAxes(i),r=n.xAxis,a=n.yAxis,s=r.currentRangeIndices(),p=a.currentRangeIndices(),c=0;c<i.data.length;c++){var l=this._bindPoint(i,o,c),u=l.valueFields,h=l.fields,d=r.totalIndex(u.x),f=a.totalIndex(u.y),g=s.min<=d&&d<=s.max,v=p.min<=f&&f<=p.max;g&&v&&t(u,M({pointIx:c,series:i,seriesIx:o,dataItem:i.data[c],owner:this},h))}},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}(ne);Rt(Ka,{series:[],tooltip:{format:"{0}, {1}: {2}"},labels:{format:"{2}"},clip:!0}),M(Ka.prototype,{_bindPoint:ui.prototype._bindPoint});var Za=Ka,$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.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],i=o.data||[],n=this.seriesAxes(o),r=n.xAxis,a=n.yAxis,s=Yt(r.categories||[]),p=Yt(a.categories||[]),c=0;c<i.length;c++){var l=Wo.current.bindPoint(o,c).valueFields,u=l.x,h=l.y;s.has(u)||s.add(u),p.has(h)||p.add(h)}r.categories=s.values(),a.categories=p.values()}},e.prototype.createCharts=function(t){for(var e=this.groupSeriesByPane(),o=0;o<t.length;o++){var i=t[o],n=e[i.options.name||"default"]||[];this.addToLegend(n);var r=this.filterVisibleSeries(n);r&&this.createHeatmapChart(Rn(r,["heatmap"]),i)}},e.prototype.createHeatmapChart=function(t,e){var o=new Za(this,{series:t});this.appendChart(o,e)},e.prototype.seriesPaneName=function(t){var e=this.options,o=t.xAxis,i=at([].concat(e.xAxis),(function(t){return t.name===o}))[0],n=t.yAxis,r=at([].concat(e.yAxis),(function(t){return t.name===n}))[0],a=(e.panes||[{}])[0].name||"default";return(i||{}).pane||(r||{}).pane||a},e.prototype.seriesAxes=function(t){var e,o,i=this.options,n=[].concat(i.xAxis),r=t.xAxis;e=r?n.find((function(t){return t.name===r})):n[0];var a=[].concat(i.yAxis),s=t.yAxis;if(o=s?a.find((function(t){return t.name===s})):a[0],!e)throw new Error("Unable to locate X axis with name "+r);if(!o)throw new Error("Unable to locate Y axis with name "+s);return{xAxis:e,yAxis:o}},e.prototype.createAxisLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e].createLabels()},e.prototype.createXYAxis=function(t,e,o){for(var i,n=t.name,r=e?this.namedYAxes:this.namedXAxes,a=Object.assign({axisCrossingValue:0},t,{vertical:e,reverse:e||this.chartService.rtl?!t.reverse:t.reverse,justified:!1}),s=a.categories?a.categories[0]:null,p=[a.min,a.max,s],l=this.series,u=0;u<l.length;u++){var h=l[u],d=h[e?"yAxis":"xAxis"];if(d===a.name||0===o&&!d){var f=Wo.current.bindPoint(h,0).valueFields;p.push(f[e?"y":"x"]);break}}for(var g=0;g<p.length;g++)if(p[g]instanceof Date){i=!0;break}var v=new(En(a.type,c)||!a.type&&i?so:Je)(a,this.chartService);if(v.axisIndex=o,n){if(r[n])throw new Error((e?"Y":"X")+" axis with name "+n+" is already defined");r[n]=v}return this.appendAxis(v),v.mapCategories(),v},e.prototype.createAxes=function(t){for(var e=this.options,o=[].concat(e.xAxis),i=[],n=[].concat(e.yAxis),r=[],a=0;a<o.length;a++){lt(this.findPane(o[a].pane),t)&&i.push(this.createXYAxis(o[a],!1,a))}for(var s=0;s<n.length;s++){lt(this.findPane(n[s].pane),t)&&r.push(this.createXYAxis(n[s],!0,s))}this.axisX=this.axisX||i[0],this.axisY=this.axisY||r[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 i=t._eventCoordinates(e),n=new Kt(i.x,i.y),r=this.axes,a=r.length,s=[],p=[],c=0;c<a;c++){var l=r[c];jn(l.options.vertical?p:s,l.getCategory(n))}s.length>0&&p.length>0&&t.trigger(o,{element:Ct(e),originalEvent:e,x:Bn(s),y:Bn(p)})},e.prototype.updateAxisOptions=function(t,e){var o=t.options.vertical,i=this.groupAxes(this.panes),n=(o?i.y:i.x).indexOf(t);Ja(this.options,n,o,e),Ja(this.originalOptions,n,o,e)},e.prototype.crosshairOptions=function(t){return Object.assign({},t.options.crosshair,{zIndex:0})},e}(Yn);function Ja(t,e,o,i){M([].concat(o?t.yAxis:t.xAxis)[e],i)}Rt($a,{xAxis:{},yAxis:{}}),M($a.prototype,qn);var Qa=$a,ts="color",es="first",os="max";Br.current.register(Sr,[Jo,Qo,ti,oi,"area","verticalArea","candlestick","ohlc","bullet","verticalBullet","boxPlot","verticalBoxPlot","rangeColumn","rangeBar","waterfall","horizontalWaterfall","rangeArea","verticalRangeArea"]),Br.current.register(ta,["scatter","scatterLine","bubble"]),Br.current.register(la,[ei]),Br.current.register(ga,["donut"]),Br.current.register(Wa,["funnel"]),Br.current.register(Oa,["polarArea","polarLine","polarScatter"]),Br.current.register(Na,["radarArea","radarColumn","radarLine"]),Br.current.register(Qa,["heatmap"]),Wo.current.register([Jo,Qo,ti,oi,"area","verticalArea"],[v],["category",ts,"noteText","errorLow","errorHigh"]),Wo.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],["from","to"],["category",ts,"noteText"]),Wo.current.register(["waterfall","horizontalWaterfall"],[v],["category",ts,"noteText","summary"]),Wo.current.register(["polarArea","polarLine","polarScatter"],[_,m],[ts]),Wo.current.register(["radarArea","radarColumn","radarLine"],[v],[ts]),Wo.current.register(["funnel"],[v],["category",ts,"visibleInLegend","visible"]),Jn.current.register([Jo,Qo,ti,oi,"area","verticalArea","waterfall","horizontalWaterfall"],{value:os,color:es,noteText:es,errorLow:"min",errorHigh:os}),Jn.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],{from:"min",to:os,color:es,noteText:es}),Jn.current.register(["radarArea","radarColumn","radarLine"],{value:os,color:es}),Wo.current.register(["scatter","scatterLine","bubble"],[_,m],[ts,"noteText","xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Wo.current.register(["bubble"],[_,m,"size"],[ts,"category","noteText"]),Wo.current.register(["heatmap"],[_,m,v],[ts,"noteText"]),Wo.current.register(["candlestick","ohlc"],["open","high","low","close"],["category",ts,"downColor","noteText"]),Jn.current.register(["candlestick","ohlc"],{open:os,high:os,low:"min",close:os,color:es,downColor:es,noteText:es}),Wo.current.register(["boxPlot","verticalBoxPlot"],["lower","q1","median","q3","upper","mean","outliers"],["category",ts,"noteText"]),Jn.current.register(["boxPlot","verticalBoxPlot"],{lower:os,q1:os,median:os,q3:os,upper:os,mean:os,outliers:es,color:es,noteText:es}),Wo.current.register(["bullet","verticalBullet"],["current","target"],["category",ts,"visibleInLegend","noteText"]),Jn.current.register(["bullet","verticalBullet"],{current:os,target:os,color:es,noteText:es}),Wo.current.register([ei,"donut"],[v],["category",ts,"explode","visibleInLegend","visible"]);var is=["category",v,_,m],ns=function(t){function e(e,o,i,n){var r=this;void 0===n&&(n={}),t.call(this),this.observers=[],this.addObserver(n.observer),this.chartService=new Z(this,n),this.chartService.theme=i,this._initElement(e);var a=M({},this.options,o);this._originalOptions=M({},a),this._theme=i,this._initTheme(a,i),this._initHandlers(),this._initSurface(),this.bindCategories(),Et.preloadFonts(o,(function(){r.fontLoaded=!0,r._destroyed||(r.trigger("init"),r._redraw(),r._attachEvents())}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initElement=function(t){for(this._setElementClass(t),t.style.position="relative";t.firstChild;)t.removeChild(t.firstChild);this.element=t},e.prototype._setElementClass=function(t){x(t,"k-chart")},e.prototype._initTheme=function(t,e){for(var o=[],i=t.series||[],n=0;n<i.length;n++)o.push(Object.assign({},i[n]));t.series=o,function(t){for(var e=is,o=0;o<e.length;o++){var i=e[o]+"Axes";t[i]&&(t[e[o]+"Axis"]=t[i],delete t[i])}}(t),this.applyDefaults(t,e),null===t.seriesColors&&delete t.seriesColors,this.options=M({},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,i=e.width>0||e.height>0;t||i&&(!o||e.width!==o.width||e.height!==o.height)?(this._size=e,this._resize(e,t),this.trigger("resize",e)):i&&this._selections&&Lt(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 Lo(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 Vo(e[o])},e.prototype.findPaneByIndex=function(t){var e=this._plotArea.panes;if(e[t])return new Vo(e[t])},e.prototype.plotArea=function(){return new zo(this._plotArea)},e.prototype.toggleHighlight=function(t,e){var o,i,n,r=this._plotArea,a=(r.srcSeries||r.series||[])[0];j(e)?o=r.filterPoints(e):(E(e)?(i=e.series,n=e.category):i=n=e,o="donut"===a.type?rs(r.pointsBySeriesName(i),n):a.type===ei||"funnel"===a.type?rs((r.charts[0]||{}).points,n):r.pointsBySeriesName(i));o&&this.togglePointsHighlight(t,o)},e.prototype.togglePointsHighlight=function(t,e){for(var o=this._highlight,i=0;i<e.length;i++)o.togglePointHighlight(e[i],t)},e.prototype.showTooltip=function(t){var e,o,i=this._sharedTooltip(),n=this._tooltip,r=this._plotArea;if(j(t)?(e=r.findPoint(t))&&i&&(o=e.categoryIx):i&&mt(t)&&(o=r.categoryAxis.categoryIndex(t)),i){if(o>=0){var a=this._plotArea.pointsByCategoryIndex(o);n.showAt(a)}}else e&&n.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&&St(e,{width:o.width}),o.height&&St(e,{height:o.height}),t&&t.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=w.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 wr,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),ls(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,i=M({},t.options,{chartArea:{width:t.width,height:t.height}});cs(this._originalOptions,i),this.options=M({},this._originalOptions,i),this._initTheme(this.options,this._theme),this.bindCategories();var n=this._getModel();n.renderVisual(),ls(n._plotArea.panes),e=n.visual,this.options=o}else e=this.surface.exportVisual();return e},e.prototype._sharedTooltip=function(){return this._plotArea instanceof Sr&&this.options.tooltip&&this.options.tooltip.shared},e.prototype._createPannable=function(){var t=this.options;!1!==t.pannable&&(this._pannable=new kr(this._plotArea,t.pannable))},e.prototype._createZoomSelection=function(){var t=this.options.zoomable,e=(t||{}).selection;!1!==t&&!1!==e&&(this._zoomSelection=new jr(this,e))},e.prototype._createMousewheelZoom=function(){var t=this.options.zoomable,e=(t||{}).mousewheel;!1!==t&&!1!==e&&(this._mousewheelZoom=new Tr(this,e))},e.prototype._toggleDragZoomEvents=function(){var t=this.options.pannable,e=this.options.zoomable,o=(e||{}).selection,i=(e||{}).mousewheel,n=!(t||!1!==e&&!1!==o||this.requiresHandlers(["dragStart","drag","dragEnd"])),r=(!1===e||!1===i)&&!this.requiresHandlers(["zoomStart","zoom","zoomEnd"]),a=this.element;this._dragZoomEnabled&&n&&r?(a.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):this._dragZoomEnabled||n&&r||(a.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!n,!r)},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 Gr(this.chartService,t)},e.prototype._createSharedTooltip=function(t){return new Ur(this._plotArea,t)},e.prototype.applyDefaults=function(t,e){!function(t,e){var o,i,n,r=(e||{}).axisDefaults||{};function a(t){var e=(t||{}).color||i.color,n=M({},r,r[o],i,i[o],{line:{color:e},labels:{color:e},title:{color:e}},t);return delete n[o],n}for(var s=0;s<is.length;s++)o=is[s]+"Axis",i=t.axisDefaults||{},n=(n=[].concat(t[o])).map(a),t[o]=n.length>1?n:n[0]}(t,e),function(t,e){var o=t.series,i=o.length,n=t.seriesDefaults,r=M({},t.seriesDefaults),a=e?M({},e.seriesDefaults):{},s=M({},a);as(r),as(s);for(var p=0;p<i;p++){var c=o[p].type||t.seriesDefaults.type,l=M({data:[]},s,a[c],{tooltip:t.tooltip},r,n[c]);o[p]._defaults=l,o[p]=M({},l,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||[],i=0;i<e.length;i++){var n=e[i],r=o[i%o.length],a=n._defaults;n.color=n.color||r,a&&(a.color=a.color||r)}},e.prototype._getModel=function(){var t=this.options,e=this._createPlotArea(),o=new he(this._modelOptions());return o.chart=this,o._plotArea=e,Se.buildTitle(t.title,o),t.legend&&t.legend.visible&&o.append(new Dr(e.options.legend,this.chartService)),o.append(e),o.reflow(),o},e.prototype._modelOptions=function(){var t=this.options,e=this.getSize();return M({transitions:t.transitions,width:e.width||600,height:e.height||400},t.chartArea)},e.prototype._createPlotArea=function(t){var e=this.options;return Br.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 i=t[o],n=i.options;if(i instanceof Je&&n.select&&!n.vertical){var r=i.range(),a=new Fr(this,i,M({min:r.min,max:r.max},n.select));e.push(a)}}},e.prototype._selectStart=function(t){return this.trigger("selectStart",t)},e.prototype._select=function(t){return this.trigger("select",t)},e.prototype._selectEnd=function(t){return this.trigger("selectEnd",t)},e.prototype._initHandlers=function(){this._clickHandler=this._click.bind(this),this._mousewheelHandler=this._mousewheel.bind(this),this._mouseleaveHandler=this._mouseleave.bind(this),this._surfaceMouseenterHandler=this._mouseover.bind(this),this._surfaceMouseleaveHandler=this._mouseout.bind(this),this._mousemove=Object(w.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={}),"showTooltip"===t&&(e.anchor.point=this._toDocumentCoordinates(e.anchor.point)),e.sender=this;for(var o=this.observers,i=!1,n=0;n<o.length;n++)o[n].trigger(t,e)&&(i=!0);return i},e.prototype._attachEvents=function(){var t,e,o=this.element;this._touchAction=o.style.touchAction,_t(o,((t={}).contextmenu=this._clickHandler,t[ni]=this._mousewheelHandler,t.mouseleave=this._mouseleaveHandler,t)),this._shouldAttachMouseMove()&&_t(o,((e={}).mousemove=this._mousemove,e)),this.domEvents=J.create(this.element,{start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)}),this._toggleDragZoomEvents()},e.prototype._mouseleave=function(t){this._hoveredPoint&&(this._hoveredPoint.out(this,t),this._hoveredPoint=null),this._plotArea.hovered&&(this.trigger("plotAreaLeave"),this._plotArea.hovered=!1)},e.prototype._cancelDomEvents=function(){this.domEvents&&this.domEvents.cancel&&this.domEvents.cancel()},e.prototype._gesturestart=function(t){this._mousewheelZoom&&!this._stopChartHandlers(t)&&(this._gestureDistance=t.distance,this._unsetActivePoint(),this.surface.suspendTracking())},e.prototype._gestureend=function(t){this._zooming&&!this._stopChartHandlers(t)&&(this.surface&&this.surface.resumeTracking(),this._zooming=!1,this.trigger("zoomEnd",{}))},e.prototype._gesturechange=function(t){var e=this._mousewheelZoom;if(e&&!this._stopChartHandlers(t)){t.preventDefault();var o=this._gestureDistance,i=-t.distance/o+1;if(Math.abs(i)>=.1){i=Math.round(10*i),this._gestureDistance=t.distance;var n={delta:i,axisRanges:ss(this._plotArea.axes),originalEvent:t};if(this._zooming||!this.trigger("zoomStart",n))this._zooming||(this._zooming=!0),(n.axisRanges=e.updateRanges(i))&&!this.trigger("zoom",n)&&e.zoom()}}},e.prototype._mouseout=function(t){if(t.element){var e=this._drawingChartElement(t.element,t);e&&e.leave&&e.leave(this,t.originalEvent)}},e.prototype._start=function(t){var e=this._eventCoordinates(t);!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(e)&&(this.requiresHandlers(["dragStart","drag","dragEnd"])&&this._startNavigation(t,e,"dragStart"),this._pannable&&this._pannable.start(t)&&(this.surface.suspendTracking(),this._unsetActivePoint(),this._suppressHover=!0,this.chartService.panning=!0),this._zoomSelection&&this._zoomSelection.start(t)&&this.trigger("zoomStart",{axisRanges:ss(this._plotArea.axes),originalEvent:t}))},e.prototype._move=function(t){var e=this._navState,o=this._pannable;if(!this._stopChartHandlers(t)){if(o){var i=o.move(t);i&&!this.trigger("drag",{axisRanges:i,originalEvent:t})&&o.pan()}else if(e){for(var n={},r=e.axes,a=0;a<r.length;a++){var s=r[a];if(s.options.name){var p=s.options.vertical?t.y:t.x,c=p.startLocation-p.location;0!==c&&(n[s.options.name]=s.translateRange(c))}}e.axisRanges=n,this.trigger("drag",{axisRanges:n,originalEvent:t})}this._zoomSelection&&this._zoomSelection.move(t)}},e.prototype._end=function(t){if(!this._stopChartHandlers(t)){var e=this._pannable;if(e&&e.end(t)?(this.surface.resumeTracking(),this.trigger("dragEnd",{axisRanges:ss(this._plotArea.axes),originalEvent:t}),this._suppressHover=!1,this.chartService.panning=!1):this._endNavigation(t,"dragEnd"),this._zoomSelection){var o=this._zoomSelection.end(t);o&&!this.trigger("zoom",{axisRanges:o,originalEvent:t})&&(this._zoomSelection.zoom(),this.trigger("zoomEnd",{axisRanges:o,originalEvent:t}))}}},e.prototype._stopChartHandlers=function(t){var e=this._selections||[];if(!e.length)return!1;var o=this._eventCoordinates(t),i=this._plotArea.paneByPoint(o);if(i)for(var n=0;n<e.length;n++)if(e[n].onPane(i))return!0},e.prototype._mousewheel=function(t){var e=this,o=gt(t),i=this._mousewheelZoom,n=this._eventCoordinates(t);if(!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(n))if(i){var r={delta:o,axisRanges:ss(this._plotArea.axes),originalEvent:t};!this._zooming&&this.trigger("zoomStart",r)||(t.preventDefault(),this._zooming||(this._unsetActivePoint(),this.surface.suspendTracking(),this._zooming=!0),this._mwTimeout&&clearTimeout(this._mwTimeout),r.axisRanges=i.updateRanges(o),r.axisRanges&&!this.trigger("zoom",r)&&i.zoom(),this._mwTimeout=setTimeout((function(){e.trigger("zoomEnd",r),e._zooming=!1,e.surface&&e.surface.resumeTracking()}),150))}else{var a=this._navState;if(!a)this._startNavigation(t,n,"zoomStart")||(a=this._navState);if(a){var s=a.totalDelta||o;a.totalDelta=s+o;for(var p=this._navState.axes,c={},l=0;l<p.length;l++){var u=p[l],h=u.options.name;h&&(c[h]=u.scaleRange(-s))}this.trigger("zoom",{delta:o,axisRanges:c,originalEvent:t}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._endNavigation(t,"zoomEnd")}),150)}}},e.prototype._startNavigation=function(t,e,o){var i=this._model._plotArea,n=i.findPointPane(e),r=i.axes.slice(0);if(n){var a=ss(r);this.trigger(o,{axisRanges:a,originalEvent:t})?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:a,pane:n,axes:r})}},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 i,n=t;n&&!i;)i=n.chartElement,n=n.parent;if(i)return i.aliasFor&&(i=i.aliasFor(e,this._eventCoordinates(e))),o&&(i=i.closest(o))&&i.aliasFor&&(i=i.aliasFor()),i},e.prototype._eventCoordinates=function(t){var e=wt(t);return this._toModelCoordinates(e.x,e.y)},e.prototype._elementPadding=function(){if(!this._padding){var t=B(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=xt(this.element);return{left:Pt(t.x+e.left+o.left),top:Pt(t.y+e.top+o.top)}},e.prototype._toModelCoordinates=function(t,e){var o=this.element,i=xt(o),n=this._elementPadding(),r=Nt(o).invert(),a=new w.geometry.Point(t-i.left-n.left,e-i.top-n.top).transform(r);return new Kt(a.x,a.y)},e.prototype._tap=function(t){var e=this,o=this.surface.eventTarget(t),i=this._drawingChartElement(o,t),n=this._sharedTooltip();this._startHover(o,t)||n||this._unsetActivePoint(),n&&this._trackSharedTooltip(this._eventCoordinates(t),t,!0),this._propagateClick(i,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 Yn)})),i=this._activePoint,n=this._plotArea.series.length>1,r=this._hasInactiveOpacity();return this._updateHoveredPoint(o,e),o&&i!==o&&o.hover?(this._activePoint=o,this._sharedTooltip()||o.hover(this,e)||(this._displayTooltip(o),r?this._displayInactiveOpacity(o,n):this._highlight.show(o))):!o&&r&&(n&&this._activeChartInstance&&(this._updateSeriesOpacity(o,!0),this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._activeChartInstance=null),this._highlight&&this._highlight.hide(),this._activePoint=null),o},e.prototype._displayTooltip=function(t){M({},this.options.tooltip,t.options.tooltip).visible&&this._tooltip.show(t)},e.prototype._displayInactiveOpacity=function(t,e,o){var i=this._activeChartInstance=this._chartInstanceFromPoint(t);if(i)if(e)this._updateSeriesOpacity(t),this._applySeriesOpacity(i.children,null,!0),this._applySeriesOpacity(i.children,t.series),this._highlight.show(o||t);else{var n;if(!i.supportsPointInactiveOpacity())return void this._highlight.show(t);(n=this._getInactivePoints(t,i))&&n.length&&this._highlight.show(n,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=[],i=0;i<t.children.length;i++){var n=t.children[i];n.constructor===e?o.push(n):n.children&&n.children.length&&(o=o.concat(this._getAllPointsOfType(n,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._updateSeriesOpacity=function(t,e){for(var o=this._plotArea,i=o.series.length,n=0;n<i;n++){var r=o.series[n],a=this._getDefaultOpacityForSeries(r),s=this._getInactiveOpacityForSeries(r);e||r===t.series?(r.opacity=a,r.line&&(r.line.opacity=a)):(r.defaultOpacity=a,r.opacity=s,r.line&&(r.line.opacity=s))}},e.prototype._applySeriesOpacity=function(t,e,o,i){for(var n=0;n<t.length;n++){var r=t[n],a=r.series||i;if(a&&r.visual){var s=i?i.opacity:r.series.opacity;(a!==e||o)&&r.visual.opacity(o?1:s)}r.children&&r.children.length&&this._applySeriesOpacity(r.children,e,o,r.series)}},e.prototype._chartInstanceFromPoint=function(t){for(var e=t.parent;e&&!e.plotArea;)e=e.parent;return e},e.prototype._hasInactiveOpacity=function(){var t=void 0!==this.options.seriesDefaults.highlight.inactiveOpacity,e=this.options.series.filter((function(t){return void 0!==t.highlight.inactiveOpacity})).length>0;return t||e},e.prototype._getInactiveOpacityForSeries=function(t){var e=this.options.seriesDefaults.highlight.inactiveOpacity;return t.highlight.inactiveOpacity||e||t.opacity||1},e.prototype._getDefaultOpacityForSeries=function(t){return t.defaultOpacity||t.opacity||1},e.prototype._mouseover=function(t){var e,o=this._startHover(t.element,t.originalEvent);o&&o.tooltipTracking&&!this._mouseMoveTrackHandler&&!this._sharedTooltip()&&(this._mouseMoveTrackHandler=this._mouseMoveTracking.bind(this),_t(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)))},e.prototype._mouseMoveTracking=function(t){var e,o=this.options,i=this._tooltip,n=this._highlight,r=this._activePoint,a=this._eventCoordinates(t);if(this._plotArea.box.containsPoint(a)){if(r&&r.tooltipTracking&&r.series&&r.parent.getNearestPoint){var s=r.parent.getNearestPoint(a.x,a.y,r.seriesIx);if(s&&s!==r)if(this._activePoint=s,!s.hover(this,t))M({},o.tooltip,s.options.tooltip).visible&&i.show(s),n.show(s)}}else jt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)),this._unsetActivePoint(),this._mouseMoveTrackHandler=null},e.prototype._mousemove=function(t){var e=this._eventCoordinates(t),o=this._plotArea;if(this._trackCrosshairs(e),o.hover){var i=o.backgroundContainsPoint(e);i?(o.hovered=!0,this._plotArea.hover(this,t)):o.hovered&&!i&&(this.trigger("plotAreaLeave"),o.hovered=!1)}this._sharedTooltip()&&this._trackSharedTooltip(e,t)},e.prototype._trackCrosshairs=function(t){for(var e=this._plotArea.crosshairs,o=0;o<e.length;o++){var i=e[o];i.box.containsPoint(t)?i.showAt(t):i.hide()}},e.prototype._trackSharedTooltip=function(t,e,o){if(!this._suppressHover){var i=this.options.tooltip,n=this._plotArea,r=this._plotArea.categoryAxis,a=this._tooltip,s=this._highlight;if(n.backgroundContainsPoint(t)){var p=r.pointCategoryIndex(t);if(p!==this._tooltipCategoryIx||!this._sharedHighlight&&o){var c=n.pointsByCategoryIndex(p),l=c.map((function(t){return t.eventArgs(e)})),u=l[0]||{};u.categoryPoints=l,c.length>0&&!this.trigger("seriesHover",u)?(i.visible&&a.showAt(c,t),s.show(c),this._sharedHighlight=!0):a.hide(),this._tooltipCategoryIx=p}else o&&this._sharedHighlight&&(s.hide(),a.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(s.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 i=e[o];!1!==i.autoBind&&this.bindCategoryAxisFromSeries(i,o)}},e.prototype.bindCategoryAxisFromSeries=function(t,e){for(var o,i=this.options.series,n=i.length,r=new ct,a=[],s=!1,p=0;p<n;p++){var c=i[p],l=c.categoryAxis===t.name||!c.categoryAxis&&0===e,u=c.data,h=u.length,d=c.categoryField&&l;if(s=d||s,d&&h>0)for(var f=(o=Ln(t,Ho(c.categoryField,u[0])))?Dn:Ho,g=0;g<h;g++){var v=u[g],y=f(c.categoryField,v,this.chartService.intl);!o&&r.get(y)||(a.push([y,v]),o||r.set(y,!0))}}if(a.length>0){o&&(a=function(t,e){void 0===e&&(e=Fe);for(var o=function(t,e){void 0===e&&(e=Fe);for(var o=1,i=t.length;o<i;o++)if(e(t[o],t[o-1])<0){t.sort(e);break}return t}(t,e),i=o.length,n=i>0?[o[0]]:[],r=1;r<i;r++)0!==e(o[r],At(n))&&n.push(o[r]);return n}(a,(function(t,e){return Fe(t[0],e[0])})));var _=function(t){for(var e=t.length,o=[],i=0;i<e;i++)for(var n=t[i],r=n.length,a=0;a<r;a++)o[a]=o[a]||[],o[a].push(n[a]);return o}(a);t.categories=_[0]}else s&&(t.categories=[])},e.prototype._isBindable=function(t){for(var e=Wo.current.valueFields(t),o=!0,i=0;i<e.length;i++){var n=e[i];if(n===v?n="field":n+="Field",!mt(t[n])){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,i=this._plotArea,n=this._highlight,r=(i.srcSeries||i.series)[t];if(o=lt(r.type,[ei,"donut","funnel"])?i.findPoint((function(o){return o.series.index===t&&o.index===e})):i.pointsBySeriesIndex(t),this._hasInactiveOpacity()&&r.visible&&o){var a=i.series.length>1,s=o.length?o[0]:o;this._displayInactiveOpacity(s,a,o)}else n.show(o)},e.prototype._shouldAttachMouseMove=function(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers(["plotAreaHover","plotAreaLeave"])},e.prototype.updateMouseMoveHandler=function(){var t,e;jt(this.element,((t={}).mousemove=this._mousemove,t)),this._shouldAttachMouseMove()&&_t(this.element,((e={}).mousemove=this._mousemove,e))},e.prototype.applyOptions=function(t,e){cs(this._originalOptions,t),this._originalOptions=M(this._originalOptions,t),this.options=M({},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,jt(this.element,((t={}).contextmenu=this._clickHandler,t[ni]=this._mousewheelHandler,t.mousemove=this._mousemove,t.mouseleave=this._mouseleaveHandler,t)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&jt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)),this._destroyView(),this._destroySurface(),this._clearRedrawTimeout()},e.prototype._destroySurface=function(){var t=this.surface;t&&(t.unbind("mouseenter",this._surfaceMouseenterHandler),t.unbind("mouseleave",this._surfaceMouseleaveHandler),t.destroy(),this.surface=null)},e.prototype._destroySelections=function(){var t=this._selections;if(t)for(;t.length>0;)t.shift().destroy()},e.prototype._destroyView=function(){var t=this._model;t&&(t.destroy(),this._model=null),this._unsetActivePoint(),this._destroySelections(),this._tooltip&&this._tooltip.destroy(),this._highlight&&this._highlight.destroy(),this._zoomSelection&&(this._zoomSelection.destroy(),delete this._zoomSelection),this._pannable&&(this._pannable.destroy(),delete this._pannable),this._mousewheelZoom&&(this._mousewheelZoom.destroy(),delete this._mousewheelZoom)},e}(w.Class);function rs(t,e){if(t)for(var o=0;o<t.length;o++)if(t[o].category===e)return[t[o]]}function as(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 ss(t){for(var e={},o=0;o<t.length;o++){var i=t[o],n=i.options.name;n&&(e[n]=i.range())}return e}var ps=["data","categories"];function cs(t,e){for(var o in e)if(!lt(o,ps)&&e.hasOwnProperty(o)){var i=e[o],n=t[o];if(mt(n)){var r=null===i;r||!mt(i)?(delete t[o],r&&delete e[o]):n&&E(i)&&E(n)&&cs(n,i)}}}function ls(t){for(var e=0;e<t.length;e++)t[e].notifyRender()}Rt(ns,{renderAs:"",chartArea:{},legend:{visible:!0,labels:{}},categoryAxis:{},seriesDefaults:{type:Qo,data:[],highlight:{visible:!0},labels:{},negativeValues:{visible:!1}},series:[],seriesColors:null,tooltip:{visible:!1},transitions:!0,valueAxis:{},plotArea:{},title:{},xAxis:{},yAxis:{},panes:[{}],pannable:!1,zoomable:!1});var us=ns,hs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._slotAnchor=function(t,e){var o=this.plotArea.categoryAxis.options.vertical,i=o?{horizontal:"left",vertical:"center"}:{horizontal:"center",vertical:"bottom"};return{point:o?new Kt(this.plotArea.box.x2,e.center().y):new Kt(e.center().x,-2),align:i}},e.prototype._defaultAnchor=function(t,e){return this._slotAnchor({},e)},e}(Ur),ds=[Jo,"bullet"];function fs(t){for(var e=[],o=0;o<t.length;o++){var i=t[o];e[o]=i.style.display,i.style.display="none"}return e}function gs(t,e){for(var o=0;o<t.length;o++)t[o].style.display=e[o]}function vs(t){return I(t)?[t]:t}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._setElementClass=function(t){x(t,"k-sparkline")},e.prototype._initElement=function(e){t.prototype._initElement.call(this,e),this._initialWidth=Math.floor(St(e).width)},e.prototype._resize=function(){var e=this.element,o=fs(e.childNodes);this._initialWidth=Math.floor(St(e).width),gs(e.childNodes,o),t.prototype._resize.call(this)},e.prototype._modelOptions=function(){var t=this.options,e=this._surfaceWrap(),o=fs(e.childNodes),i=document.createElement("span");i.innerHTML=" ",e.appendChild(i);var n=M({width:this._autoWidth,height:St(e).height,transitions:t.transitions},t.chartArea,{inline:!0,align:!1});return St(e,{width:n.width,height:n.height}),e.removeChild(i),gs(e.childNodes,o),this.surface&&this.surface.resize(),n},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=V(e.chartArea.margin),i=t.charts,n=this._surfaceWrap(),r=0,a=0;a<i.length;a++){var s=i[a],p=(s.options.series||[])[0];if(p){if(p.type===Jo)return 150;if("bullet"===p.type)return 150;if(p.type===ei)return St(n).height;var c=s.categoryAxis;if(c){var l=c.categoriesCount()*(!s.options.isStacked&<(p.type,[Qo,"verticalBullet"])?s.seriesOptions.length:1);r=Math.max(r,l)}}}var u=r*e.pointWidth;return u>0&&(u+=o.left+o.right),u},e.prototype._createSharedTooltip=function(t){return new hs(this._plotArea,t)},e.normalizeOptions=function(t){var e=vs(t);return(e=b(e)?{seriesDefaults:{data:e}}:M({},e)).series||(e.series=[{data:vs(e.data)}]),M(e,{seriesDefaults:{type:e.type}}),(lt(e.series[0].type,ds)||lt(e.seriesDefaults.type,ds))&&(e=M({},{categoryAxis:{crosshair:{visible:!1}}},e)),e},e}(us);Rt(ys,{chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5,panes:[{clip:!1}]});var _s=ys,ms=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this._initialOpacity=parseFloat(B(this.element,"opacity").opacity)},e.prototype.step=function(t){B(this.element,{opacity:String(ut(this._initialOpacity,0,t))})},e.prototype.abort=function(){t.prototype.abort.call(this),B(this.element,{display:"none",opacity:String(this._initialOpacity)})},e.prototype.cancel=function(){t.prototype.abort.call(this),B(this.element,{opacity:String(this._initialOpacity)})},e}(w.drawing.Animation);function bs(t,e){var o=document.createElement("div");return o.className=t,e&&(o.style.cssText=e),o}var xs=function(t){function e(e,o,i){t.call(this),this.options=M({},this.options,i),this.container=e,this.chartService=o;var n=B(e,["paddingLeft","paddingTop"]);this.chartPadding={top:n.paddingTop,left:n.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=bs("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),e=this.tooltip=bs("k-tooltip k-chart-tooltip"),o=this.scroll=bs("k-scroll");e.innerHTML=" ",t.appendChild(e),t.appendChild(o)},e.prototype.show=function(t,e,o){var i=this.element,n=this.options,r=this.scroll,a=this.tooltip,s=Le(He(t)+He(e-t)/2),p=.4*o.width(),c=o.center().x-p,l=(o.center().x-c)/(n.max-n.min),u=s-n.min,h=this.chartService.intl.format(n.format,t,e),d=ot(n);this.clearHideTimeout(),this._visible||(B(i,{visibility:"hidden",display:"block"}),this._visible=!0),d&&(h=d({from:t,to:e})),a.innerHTML=h,B(a,{left:o.center().x-a.offsetWidth/2,top:o.y1});var f=B(a,["marginTop","borderTopWidth","height"]);B(r,{width:p,left:c+u*l,top:o.y1+f.marginTop+f.borderTopWidth+f.height/2}),B(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 ms(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}(w.Class);Rt(xs,{format:"{0:d} - {1:d}",hideDelay:500});var Ss=xs,Cs="_navigator",ws=Cs;function As(){}var Os=function(t){function e(e){var o;t.call(this),this.chart=e;var i=this.options=M({},this.options,e.options.navigator),n=i.select;n&&(n.from=this.parseDate(n.from),n.to=this.parseDate(n.to)),mt(i.hint.visible)||(i.hint.visible=i.visible),this.chartObserver=new dt(this,((o={}).drag="_drag",o.dragEnd="_dragEnd",o.zoom="_zoom",o.zoomEnd="_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 qe(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,i=this.mainAxis(),n=i.roundedRange(),r=n.min,a=n.max,s=o.select,p=s.from,c=s.to,l=s.mousewheel,u=(t=i,As.prototype=t,new As);0!==i.categoriesCount()&&(this.clean(),u.box=i.box,this.selection=new Fr(e,u,{min:r,max:a,from:p||r,to:c||a,mousewheel:Tt(l,{zoom:"left"}),visible:o.visible},new dt(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),o.hint.visible&&(this.hint=new Ss(e.element,e.chartService,{min:r,max:a,template:ot(o.hint),format:o.hint.format})))},e.prototype.setRange=function(){var t=this.chart._createPlotArea(!0).namedCategoryAxes[ws].roundedRange(),e=t.min,o=t.max,i=this.options.select||{},n=i.from||e;n<e&&(n=e);var r=i.to||o;r>o&&(r=o),this.options.select=M({},i,{from:n,to:r}),this.filterAxes()},e.prototype._redrawSelf=function(t){var e=this.chart._plotArea;e&&e.redraw(At(e.panes),t)},e.prototype.redrawSlaves=function(){var t=this.chart,e=t._plotArea,o=e.panes.slice(0,-1);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,i=this.selection,n=o._eventCoordinates(t.originalEvent),r=this.mainAxis(),a=r.roundedRange(),s=r.pane.box.containsPoint(n),p=o._plotArea.categoryAxis,c=t.axisRanges[p.options.name],l=this.options.select;if(c&&!s&&i){e=l.from&&l.to?He(l.to)-He(l.from):He(i.options.to)-He(i.options.from);var u=Le(Ot(He(c.min),a.min,He(a.max)-e)),h=Le(Ot(He(u)+e,He(a.min)+e,a.max));this.options.select={from:u,to:h},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),i.set(u,h),this.showHint(u,h)}},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,i=this.options.select;i.from=e,i.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,i=t.to,n=0;n<e.length;n++){var r=e[n];r.pane!==Cs&&(r.min=o,r.max=i)}},e.prototype.filter=function(){var t=this.chart,e=this.options.select;if(t.requiresHandlers(["navigatorFilter"])){var o=this.mainAxis(),i={from:e.from,to:e.to};if("category"!==o.options.type){var n=new so(M({baseUnit:"fit"},t.options.categoryAxis[0],{categories:[e.from,e.to]}),t.chartService).options;i.from=Ve(n.min,-n.baseUnitStep,n.baseUnit),i.to=Ve(n.max,n.baseUnitStep,n.baseUnit)}this.chart.trigger("navigatorFilter",i)}},e.prototype._zoom=function(t){var e=this.chart._plotArea.categoryAxis,o=this.selection,i=this.options,n=i.select,r=i.liveDrag,a=this.mainAxis(),s=t.delta;if(o){var p=a.categoryIndex(o.options.from),c=a.categoryIndex(o.options.to);t.originalEvent.preventDefault(),Math.abs(s)>1&&(s*=3),c-p>1?(o.expand(s),this.readSelection()):(e.options.min=n.from,n.from=e.scaleRange(-t.delta).min),r&&(this.filterAxes(),this.redrawSlaves()),o.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[ws]},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 i=M({},o.navigator,t.navigator),n=t.panes=[].concat(t.panes),r=M({},i.pane,{name:Cs});i.visible||(r.visible=!1,r.height=.1),n.push(r),e.attachAxes(t,i),e.attachSeries(t,i,o)}},e.attachAxes=function(t,e){var o=e.series||[],i=t.categoryAxis=[].concat(t.categoryAxis),n=t.valueAxis=[].concat(t.valueAxis),r=0===Rn(o,ii).length,a=M({type:"date",pane:Cs,roundToBaseUnit:!r,justified:r,_collapse:!1,majorTicks:{visible:!0},tooltip:{visible:!1},labels:{step:1},autoBind:e.autoBindElements,autoBaseUnitSteps:{minutes:[1],hours:[1,2],days:[1,2],weeks:[],months:[1],years:[1]}}),s=e.categoryAxis;i.push(M({},a,{maxDateGroups:200},s,{name:ws,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),M({},a,s,{name:ws+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),M({},a,s,{name:ws+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),n.push(M({name:ws,pane:Cs,majorGridLines:{visible:!1},visible:!1},e.valueAxis))},e.attachSeries=function(t,e,o){for(var i=t.series=t.series||[],n=[].concat(e.series||[]),r=o.seriesColors,a=e.seriesDefaults,s=0;s<n.length;s++)i.push(M({color:r[s%r.length],categoryField:e.dateField,visibleInLegend:!1,tooltip:{visible:!1}},a,n[s],{axis:ws,categoryAxis:ws,autoBind:e.autoBindElements}))},e}(w.Class),Is=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.applyDefaults=function(e,o){var i=St(this.element).width||600,n=o,r={seriesDefaults:{categoryField:e.dateField},axisDefaults:{categoryAxis:{name:"default",majorGridLines:{visible:!1},labels:{step:2},majorTicks:{visible:!1},maxDateGroups:Math.floor(i/28)}}};n&&(n=M({},n,r)),Os.setup(e,n),t.prototype.applyDefaults.call(this,e,n)},e.prototype._setElementClass=function(t){x(t,"k-chart k-stockchart")},e.prototype.setOptions=function(e){this.destroyNavigator(),t.prototype.setOptions.call(this,e)},e.prototype.noTransitionsRedraw=function(){var t=this.options.transitions;this.options.transitions=!1,this._fullRedraw(),this.options.transitions=t},e.prototype._resize=function(){this.noTransitionsRedraw()},e.prototype._redraw=function(){var t=this.navigator;!this._dirty()&&t&&t.options.partialRedraw?t.redrawSlaves():this._fullRedraw()},e.prototype._dirty=function(){var t=this.options,e=at([].concat(t.series,t.navigator.series),(function(t){return t&&t.visible})).length,o=this._seriesCount!==e;return this._seriesCount=e,o},e.prototype._fullRedraw=function(){var e=this.navigator;e||(e=this.navigator=new Os(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===Cs?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 i=e[o];i.name===ws?t=i.categories:t&&i.pane===Cs&&(i.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),i=this._plotArea.paneByPoint(o);return t.prototype._stopChartHandlers.call(this,e)||i&&i.options.name===Cs},e.prototype._toggleDragZoomEvents=function(){this._dragZoomEnabled||(this.element.style.touchAction="none",this._dragZoomEnabled=!0)},e}(us);Rt(Is,{dateField:"date",axisDefaults:{categoryAxis:{type:"date",baseUnit:"fit",justified:!0},valueAxis:{narrowRange:!0,labels:{format:"C"}}},navigator:{select:{},seriesDefaults:{markers:{visible:!1},tooltip:{visible:!0},line:{width:2}},hint:{},visible:!0},tooltip:{visible:!0},legend:{visible:!1}});var ks=Is,Ps=Math.PI/180;function js(t,e){var o=t.getOrigin(),i=t.getSize(),n=V(e);return t.setOrigin([o.x-n.left,o.y-n.top]),t.setSize([i.width+(n.left+n.right),i.height+(n.top+n.bottom)]),t}var Ts=w.drawing.Group,Ms=w.drawing.Path,Es=w.drawing.Text;function Rs(t,e){var o=t.box,i=t.children[0].box,n=e.border||{},r=e.background||"",a=Ms.fromRect(new w.geometry.Rect([o.x1,o.y1],[o.width(),o.height()]),{stroke:{}}),s=new Es(t.text,new w.geometry.Point(i.x1,i.y1),{font:e.font,fill:{color:e.color}}),p=js(s.bbox().clone(),e.padding),c=Ms.fromRect(p,{stroke:{color:n.width?n.color:"",width:n.width,opacity:n.opacity,dashType:n.dashType,lineJoin:"round",lineCap:"round"},fill:{color:r}}),l=new Ts;return l.append(a),l.append(c),l.append(s),l}function Ds(t,e,o){var i=mt(t.from)?t.from:d,n=mt(t.to)?t.to:h;return t.from=Math.max(Math.min(n,i),e),t.to=Math.min(Math.max(n,i),o),t}function Ls(t,e){var o=V(e);return o.left=-o.left,o.top=-o.top,o.right=-o.right,o.bottom=-o.bottom,js(t,o)}var Bs=w.drawing.Path,Vs=w.drawing.Surface,zs=function(t){function e(e,o,i,n){void 0===n&&(n={}),t.call(this),this.element=e,this.theme=i,this.contextService=new Z(this,n),this._originalOptions=M({},this.options,o),this.options=M({},this._originalOptions),this._initTheme(i),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 i=0;i<e.length;i++)o.push(e[i].value());return o}if(b(t))for(var n=0;n<t.length;n++)I(t[n])&&e[n].value(t[n]);this._setValueOptions(t)},e.prototype._setValueOptions=function(t){for(var e=[].concat(this.options.pointer),o=[].concat(t),i=0;i<o.length;i++)e[i].value=o[i]},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 w.geometry.Rect([0,0],[t.width,t.height]);this._initSurface(),this.gaugeArea=this._createGaugeArea(),this._createModel();var o=Ls(e.bbox(),this._gaugeAreaMargin);this.reflow(o)},e.prototype.setOptions=function(t,e){this._originalOptions=M(this._originalOptions,t),this.options=M({},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=M({},e,this.options);var o=this.options,i=o.pointer;if(b(i)){for(var n=[],r=0;r<i.length;r++)n.push(M({},e.pointer,i[r]));o.pointer=n}},e.prototype._createGaugeArea=function(){var t=this.options.gaugeArea,e=this.surface.size(),o=t.border||{},i=new w.geometry.Rect([0,0],[e.width,e.height]);return this._gaugeAreaMargin=t.margin||5,o.width>0&&(i=Ls(i,o.width)),Bs.fromRect(i,{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(),i=this._surfaceSize();St(o,i),e&&e.options.type===t.renderAs?(this.surface.clear(),this.surface.resize()):(e&&e.destroy(),this.surface=Vs.create(o,{type:t.renderAs}))},e.prototype._surfaceSize=function(){var t=this.options,e=this._getSize();return t.gaugeArea&&M(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,i=t.offsetHeight;return o||(o=e.width),i||(i=e.height),{width:o,height:i}},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}(w.Class);Rt(zs,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}});var Ns=zs,Fs=w.drawing.Path,Gs=w.drawing.Group,Hs=w.geometry.Point;function Us(t,e){var o,i,n=t.position,r=t.tickX,a=t.tickY;return t.vertical?(o=new Hs(r,n),i=new Hs(r+e.size,n)):(o=new Hs(n,a),i=new Hs(n,a+e.size)),new Fs({stroke:{color:e.color,width:e.width}}).moveTo(o).lineTo(i)}function Ws(t,e,o,i){var n=e.length;if(i.visible)for(var r=o.mirror,a=o.lineBox,s=i.skip;s<n;s+=i.step)s%i.skipUnit!=0&&(o.tickX=r?a.x2:a.x2-i.size,o.tickY=r?a.y1-i.size:a.y1,o.position=e[s],t.append(Us(o,i)))}var Xs=function(t){function e(e,o){var i=e||{};!mt(i.reverse)&&!1===i.vertical&&(o||{}).rtl&&(i=Object.assign({},i,{reverse:!0})),t.call(this,0,1,i,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=M({},this.options,t);return(e=M({},e,{labels:{mirror:e.mirror}})).majorUnit=e.majorUnit||qt(e.min,e.max),e},e.prototype.initFields=function(){},e.prototype.render=function(){var t=this.elements=new Gs,e=this.renderLabels(),o=this.renderLine(),i=this.renderTicks(),n=this.renderRanges();return t.append(o,e,i,n),t},e.prototype.renderRanges=function(){for(var t=this.options,e=t.min,o=t.max,i=t.vertical,n=t.labels.mirror,r=t.ranges||[],a=new Gs,s=r.length,p=t.rangeSize||t.minorTicks.size/2,c=0;c<s;c++){var l=Ds(r[c],e,o),u=this.getSlot(l.from,l.to),h=i?this.lineBox():u,d=i?u:this.lineBox();i?h.x1-=p*(n?-1:1):d.y2+=p*(n?-1:1),a.append(Fs.fromRect(new w.geometry.Rect([h.x1,d.y1],[h.x2-h.x1,d.y2-d.y1]),{fill:{color:l.color,opacity:l.opacity},stroke:{}}))}return a},e.prototype.renderLabels=function(){for(var t=this.labels,e=this.options,o=new Gs,i=0;i<t.length;i++)o.append(Rs(t[i],e.labels));return o},e.prototype.renderLine=function(){var t=this.options.line,e=this.lineBox(),o=new Gs;if(t.width>0&&t.visible){var i=new Fs({stroke:{color:t.color,dashType:t.dashType,width:t.width}});i.moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),o.append(i)}return o},e.prototype.renderTicks=function(){var t=new Gs,e=this.options,o=e.majorTicks.visible?e.majorUnit:0,i={vertical:e.vertical,mirror:e.labels.mirror,lineBox:this.lineBox()};return Ws(t,this.getMajorTickPositions(),i,e.majorTicks),Ws(t,this.getMinorTickPositions(),i,M({},{skipUnit:o/e.minorUnit},e.minorTicks)),t},e}(go);Rt(Xs,{min:0,max:50,majorTicks:{size:15,align:"inside",color:r,width:.5,visible:!0},minorTicks:{size:10,align:"inside",color:r,width:.5,visible:!0},line:{width:.5},labels:{position:"inside",padding:2},mirror:!1,_alignLines:!1});var Ys=Xs,qs=function(t){function e(e,o){t.call(this);var i=e.options,n=i.min,r=i.max,a=this.options=M({},this.options,o);a.fill=a.color,this.scale=e,mt(a.value)?a.value=Ot(a.value,n,r):a.value=n}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 i=this.scale.options,n=i.min,r=i.max;e._oldValue=mt(e._oldValue)?e.value:n,e.value=Ot(t,n,r),this.elements&&this.repaint()},e}(w.Class);Rt(qs,{color:r});var Ks=qs,Zs=function(t){function e(e,o){t.call(this,e,o),this.options=M({track:{visible:mt(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,i=this.options,n=this.scale,r=n.options,a=r.mirror,s=r.vertical,p=n.lineBox(),c=i.track.size||i.size,l=i.size/2,u=V(i.margin),h=s?u[a?"left":"right"]:u[a?"bottom":"top"];h=a?-h:h,s?(o=new $t(p.x1+h,p.y1,p.x1+h,p.y2),a?o.x1-=c:o.x2+=c,"barPointer"!==i.shape&&(t=e=new $t(p.x2+h,p.y1-l,p.x2+h,p.y2+l))):(o=new $t(p.x1,p.y1-h,p.x2,p.y1-h),a?o.y2+=c:o.y1-=c,"barPointer"!==i.shape&&(t=e=new $t(p.x1-l,p.y1-h,p.x2+l,p.y1-h))),this.trackBox=o,this.pointerRangeBox=e,this.box=t||o.clone().pad(i.border.width)},e.prototype.getElementOptions=function(){var t=this.options;return{fill:{color:t.color,opacity:t.opacity},stroke:mt(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,i=o.mirror,n=o.vertical,r=V(e.margin);return n?r[i?"left":"right"]:r[i?"bottom":"top"]},e}(Ks);Rt(Zs,{shape:"barPointer",track:{border:{width:1}},color:r,border:{width:1},opacity:1,margin:V(3),animation:{type:"barPointer"},visible:!0});var $s=Zs,Js=function(t){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,i=t.to,n=t.vertical,r=n?"x1":"y1";t.mirror===n?(o[r]-=e,i[r]-=e):(o[r]+=e,i[r]+=e);var a=this.fromScale=new w.geometry.Point(o.x1,o.y1),s=this.toScale=new w.geometry.Point(i.x1,i.y1);0!==t.duration&&(t.duration=Math.max(a.distanceTo(s)/t.duration*1e3,1))},e.prototype.step=function(t){var e=ut(this.fromScale.x,this.toScale.x,t),o=ut(this.fromScale.y,this.toScale.y,t);this.element.transform(w.geometry.transform().translate(e,o))},e}(w.drawing.Animation);Rt(Js,{easing:"linear",duration:250}),w.drawing.AnimationFactory.current.register("arrowPointer",Js);var Qs=Js,tp=w.geometry.Point,ep=w.drawing.Path,op=function(t){function e(e,o){t.call(this,e,o),mt(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,i=t.options.mirror?-1:1;return t.options.vertical?[new tp(0,0-o),new tp(0-i*e,0),new tp(0,0+o)]:[new tp(0-o,0),new tp(0,0+i*e),new tp(0+o,0)]},e.prototype.repaint=function(){var t=this.scale,e=this.options,o=new Qs(this.elements,M(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(),i=this.pointerShape(e.value);e.animation.type="arrowPointer";var n=new ep({stroke:o.stroke,fill:o.fill}).moveTo(i[0]).lineTo(i[1]).lineTo(i[2]).close(),r=t.getSlot(e.value);return n.transform(w.geometry.transform().translate(r.x1,r.y1)),this.elements=n,n},e}($s),ip=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.options,e=this.axis=t.vertical?m:_,o=this.to=t.newPoints[0][e],i=this.from=t.oldPoints[0][e];0!==t.duration&&(t.duration=Math.max(Math.abs(o-i)/t.speed*1e3,1)),this._set(i)},e.prototype.step=function(t){var e=ut(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}(w.drawing.Animation);Rt(ip,{easing:"linear",speed:250}),w.drawing.AnimationFactory.current.register("barPointer",ip);var np=ip,rp=w.drawing.Group,ap=w.drawing.Path,sp=function(t){function e(e,o){t.call(this,e,o),mt(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,i=e.options,n=i.mirror,r=i.vertical,a=n===r?-1:1,s=o.size*a,p=e.getSlot(e.options.min),c=e.getSlot(t),l=r?m:_,u=r?_:m,h=this._margin()*a,d=new w.geometry.Point;d[l]=p[l+"1"],d[u]=p[u+"1"];var f=new w.geometry.Point;f[l]=c[l+"1"],f[u]=c[u+"1"],r?(d.translate(h,0),f.translate(h,0)):(d.translate(0,h),f.translate(0,h));var g=f.clone(),v=d.clone();return r?(g.translate(s,0),v.translate(s,0)):(g.translate(0,s),v.translate(0,s)),[d,f,g,v]},e.prototype.repaint=function(){var t=this.scale,e=this.options,o=this.pointerShape(e.value),i=this.pointerPath,n=this.pointerShape(e._oldValue);i.moveTo(o[0]).lineTo(o[1]).lineTo(o[2]).lineTo(o[3]).close();var r=new np(i,M(e.animation,{reverse:t.options.reverse,vertical:t.options.vertical,oldPoints:[n[1],n[2]],newPoints:[o[1],o[2]]}));!1===e.animation.transitions&&(r.options.duration=0),r.setup(),r.play()},e.prototype.render=function(){var t=new rp,e=this.getElementOptions();this.options.track.visible&&t.append(this.renderTrack());var o=this.pointerPath=new ap({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 ap.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}($s),pp=w.drawing.Group,cp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.pointers,o=t.origin.x,i=t.origin.y,n=new $t(o,i,o+t.width(),i+t.height());this.scale.reflow(n),this._shrinkScaleWidth(n);for(var r=0;r<e.length;r++)e[r].reflow();this.bbox=this._getBox(n),this._alignElements(),this._shrinkElements(),this._buildVisual(),this._draw()},e.prototype._buildVisual=function(){var t=new pp,e=this.scale.render(),o=this.pointers;t.append(this.gaugeArea),t.append(e);for(var i=0;i<o.length;i++){var n=o[i];t.append(n.render()),n.value(n.options.value)}this._visuals=t},e.prototype._createModel=function(){var t=this.options,e=this.scale=new Ys(t.scale,this.contextService);this.pointers=[];var o=t.pointer;o=b(o)?o:[o];for(var i=0;i<o.length;i++){var n=M({},o[i],{animation:{transitions:t.transitions}}),r="arrow"===n.shape?op:sp;this.pointers.push(new r(e,n))}},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,i=this.pointers,n=t.center(),r=i[0].box.clone().wrap(o.box),a=0;a<i.length;a++)r.wrap(i[a].box.clone());return o.options.vertical?(e=r.width()/2,r=new $t(n.x-e,t.y1,n.x+e,t.y2)):(e=r.height()/2,r=new $t(t.x1,n.y-e,t.x2,n.y+e)),r},e.prototype._alignElements=function(){for(var t,e=this.scale,o=this.pointers,i=e.box,n=o[0].box.clone().wrap(e.box),r=this.bbox,a=0;a<o.length;a++)n.wrap(o[a].box.clone());e.options.vertical?(t=r.center().x-n.center().x,e.reflow(new $t(i.x1+t,r.y1,i.x2+t,r.y2))):(t=r.center().y-n.center().y,e.reflow(new $t(i.x1,i.y1+t,i.x2,i.y2+t)));for(var s=0;s<o.length;s++)o[s].reflow(this.bbox)},e.prototype._shrinkScaleWidth=function(t){var e=this.scale;if(!e.options.vertical){var o=e.contentBox().width()-t.width();o>0&&(e.box.shrink(o,0),e.box.alignTo(t,"center"),e.reflow(e.box))}},e.prototype._shrinkElements=function(){for(var t=this.scale,e=this.pointers,o=t.box.clone(),i=t.options.vertical?"y":"x",n=e[0].box,r=0;r<e.length;r++)n.wrap(e[r].box.clone());o[i+1]+=Math.max(o[i+1]-n[i+1],0),o[i+2]-=Math.max(n[i+2]-o[i+2],0),t.reflow(o);for(var a=0;a<e.length;a++)e[a].reflow(this.bbox)},e}(Ns);Rt(cp,{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}});var lp=cp,up=w.drawing.Arc,hp=w.drawing.Path,dp=w.drawing.Group;function fp(t,e,o,i){var n=new dp,r=t.center,a=t.getRadiusX();if(i.visible)for(var s=0;s<e.length;s++){var p=t.pointAt(e[s]),c=new w.geometry.Point(r.x+a-i.size,r.y).rotate(e[s],r);n.append(new hp({stroke:{color:i.color,width:i.width}}).moveTo(p).lineTo(c))}return n}function gp(t,e,o,i){return{from:t,to:e,color:o,opacity:i}}var vp=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=M({},this.options,t);return e.majorUnit=e.majorUnit||qt(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(!mt(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,i=e.max,n=e.reverse,r=e.startAngle,a=e.endAngle,s=a-r;return(n?a-(t-o)/(i-o)*s:(t-o)/(i-o)*s+r)+180},e.prototype.hasRanges=function(){var t=this.options.ranges;return t&&t.length},e.prototype.ticksSize=function(){var t=this.options,e=t.majorTicks,o=t.minorTicks,i=0;return e.visible&&(i=e.size),o.visible&&(i=Math.max(o.size,i)),i},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.options,e=this.arc.clone(),o=e.getRadiusX(),i=this.tickAngles(e,t.majorUnit),n=t.rangeSize=t.rangeSize||.1*o,r=new dp,a=.05*o;mt(t.rangeDistance)?a=t.rangeDistance:t.rangeDistance=a;var s=t.labels,p="inside"===s.position,c=mt(this.labelElements);p&&(o-=this.ticksSize(),this.hasRanges()&&!c&&(o-=n+a),e.setRadiusX(o).setRadiusY(o));for(var l=this.labels,u=l.length,h=V(s.padding),d=(h.left+h.right)/2,f=(h.top+h.bottom)/2,g=0;g<u;g++){var v=l[g],y=v.box.width()/2,_=v.box.height()/2,m=i[g],b=(m-180)*Ps,x=e.pointAt(m),S=x.x+Math.cos(b)*(y+d)*(p?1:-1),C=x.y+Math.sin(b)*(_+f)*(p?1:-1);v.reflow(new $t(S-y,C-_,S+y,C+_));var A=new w.geometry.Point(v.box.x1,v.box.y1),O=void 0;if(c){var I=(O=this.labelElements.children[g]).bbox().origin,k=O.transform()||w.geometry.transform();k.translate(A.x-I.x,A.y-I.y),O.transform(k)}else O=Rs(v,t.labels),r.append(O);this.bbox=w.geometry.Rect.union(this.bbox,O.bbox())}return r},e.prototype.repositionRanges=function(){var t=this.ranges.children;if(t.length>0){var e=this.options,o=e.rangeDistance,i=e.rangeSize,n=this.getRangeRadius();"inside"===this.options.labels.position&&(n+=i+o);for(var r=n+i/2,a=0;a<t.length;a++)t[a]._geometry.setRadiusX(r).setRadiusY(r);this.bbox=w.geometry.Rect.union(this.bbox,this.ranges.bbox())}},e.prototype.renderRanges=function(){var t=this.rangeSegments(),e=t.length,o=new dp;if(e){var i=this.options,n=i.rangeSize,r=i.reverse,a=i.rangeDistance,s=this.getRangeRadius();this.radius(this.radius()-n-a);for(var p=0;p<e;p++){var c=t[p],l=this.slotAngle(c[r?"to":"from"]),u=this.slotAngle(c[r?"from":"to"]);u-l!=0&&o.append(this.createRange(l,u,s,c))}}return o},e.prototype.createRange=function(t,e,o,i){var n=this.options.rangeSize,r=new w.geometry.Arc(this.arc.center,{radiusX:o+n/2,radiusY:o+n/2,startAngle:t,endAngle:e});return new up(r,{stroke:{width:n,color:i.color,opacity:i.opacity,lineCap:i.lineCap}})},e.prototype.rangeSegments=function(){var t=this.options,e=t.ranges||[],o=e.length,i=[];if(o){var n=t.min,r=t.max,a=t.rangePlaceholderColor;i.push(gp(n,r,a));for(var s=0;s<o;s++)for(var p=Ds(e[s],n,r),c=i.length,l=0;l<c;l++){var u=i[l];if(u.from<=p.from&&p.from<=u.to){i.push(gp(p.from,p.to,p.color,p.opacity)),u.from<=p.to&&p.to<=u.to&&i.push(gp(p.to,u.to,a,p.opacity)),u.to=p.from;break}}}return i},e.prototype.getRangeRadius=function(){var t=this.arc,e=this.options,o=e.rangeSize,i=e.rangeDistance,n=e.majorTicks.size;return"outside"===e.labels.position?t.getRadiusX()-n-i-o:t.getRadiusX()-o},e.prototype.renderArc=function(t,e){var o=this.options;return this.arc=new w.geometry.Arc(t,{radiusX:e,radiusY:e,startAngle:o.startAngle+180,endAngle:o.endAngle+180})},e.prototype.renderTicks=function(){var t=this.arc,e=this.options,o=t.clone();this.majorTickAngles=this.tickAngles(t,e.majorUnit),this.majorTicks=fp(o,this.majorTickAngles,e.majorUnit,e.majorTicks);var i=new dp;i.append(this.majorTicks);var n=e.majorTicks.size,r=e.minorTicks.size;if(this._tickDifference=n-r,"outside"===e.labels.position){var a=o.getRadiusX();o.setRadiusX(a-n+r).setRadiusY(a-n+r)}return this.minorTickAngles=this.normalizeTickAngles(this.tickAngles(t,e.minorUnit)),this.minorTicks=fp(o,this.minorTickAngles,e.minorUnit,e.minorTicks),i.append(this.minorTicks),i},e.prototype.normalizeTickAngles=function(t){for(var e=this.options,o=e.majorUnit/e.minorUnit,i=t.length-1;i>=0;i--)i%o==0&&t.splice(i,1);return t},e.prototype.tickAngles=function(t,e){var o=this.options,i=o.reverse,n=o.max-o.min,r=t.endAngle-t.startAngle,a=n/e,s=t.startAngle,p=r/a;i&&(s+=r,p=-p),r>=360&&o.max%e==0&&(a-=1);for(var c=[],l=0;l<a;l++)c.push(Pt(s,3)),s+=p;return Pt(s)<=t.endAngle&&c.push(s),c},e.prototype.radius=function(t){if(!t)return this.arc.getRadiusX();this.arc.setRadiusX(t).setRadiusY(t),this.repositionTicks(this.majorTicks.children,this.majorTickAngles),this.repositionTicks(this.minorTicks.children,this.minorTickAngles,!0)},e.prototype.repositionTicks=function(t,e,o){var i=o&&this._tickDifference||0,n=this.arc,r=n.getRadiusX();o&&"outside"===this.options.labels.position&&0!==i&&(n=this.arc.clone()).setRadiusX(r-i).setRadiusY(r-i);for(var a=0;a<t.length;a++){var s=n.pointAt(e[a]),p=t[a].segments,c=s.x-p[0].anchor().x,l=s.y-p[0].anchor().y;t[a].transform((new w.geometry.transform).translate(c,l))}},e}(go);Rt(vp,{min:0,max:100,majorTicks:{size:15,align:"inside",color:r,width:.5,visible:!0},minorTicks:{size:10,align:"inside",color:r,width:.5,visible:!0},startAngle:-30,endAngle:210,labels:{position:"inside",padding:2}});var yp=vp,_p=function(t){function e(e,o){t.call(this,e,o);var i=this.options;i.duration=Math.max(Math.abs(i.newAngle-i.oldAngle)/i.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=ut(e.oldAngle,e.newAngle,t);this.element.transform(w.geometry.transform().rotate(o,e.center))},e}(w.drawing.Animation);Rt(_p,{easing:"linear",duration:150}),w.drawing.AnimationFactory.current.register("radialPointer",_p);var mp=_p,bp=w.drawing.Circle,xp=w.drawing.Group,Sp=w.drawing.Path,Cp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setAngle=function(t){this.elements.transform(w.geometry.transform().rotate(t,this.center))},e.prototype.repaint=function(){var t=this.scale,e=this.options,o=t.slotAngle(e._oldValue),i=t.slotAngle(e.value);!1===e.animation.transitions?this.setAngle(i):new mp(this.elements,M(e.animation,{oldAngle:o,newAngle:i})).play()},e.prototype.render=function(){var t=this.scale,e=this.options,o=new xp;return!1!==e.animation&&M(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),o.append(this._renderNeedle(),this._renderCap()),this.elements=o,this.setAngle(Ps),o},e.prototype.reflow=function(t){var e=this.center=t.center,o=Ot(this.options.length||1,.1,1.5),i=this.radius=t.getRadiusX()*o,n=this.capSize=Math.round(i*this.options.cap.size);this.bbox=w.geometry.Rect.fromPoints(new w.geometry.Point(e.x-n,e.y-n),new w.geometry.Point(e.x+n,e.y+n))},e.prototype._renderNeedle=function(){var t=this.scale.options.minorTicks.size,e=this.center,o=this.options.color,i=new Sp({fill:{color:o},stroke:{color:o,width:.5}});return i.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(),i},e.prototype._renderCap=function(){var t=this.options,e=t.cap.color||t.color,o=new w.geometry.Circle(this.center,this.capSize);return new bp(o,{fill:{color:e},stroke:{color:e}})},e}(Ks);Rt(Cp,{cap:{size:.05},arrow:{width:16,height:14},animation:{type:"radialPointer",duration:150}});var wp=Cp,Ap=w.drawing.Group,Op=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.pointers;this.scale.reflow(t),this._initialPlotArea=this.scale.bbox;for(var o=0;o<e.length;o++)e[o].reflow(this.scale.arc),this._initialPlotArea=w.geometry.Rect.union(this._initialPlotArea,e[o].bbox);this.fitScale(t),this.alignScale(t),this._buildVisual(this.gaugeArea,e,this.scale),this._draw()},e.prototype._buildVisual=function(t,e,o){var i=this._visuals=new Ap;i.append(t),i.append(o.ticks),i.append(o.ranges),this._buildPointers(e),i.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,i,n,r,a=this.scale.arc,s=this._initialPlotArea,p=Math.abs(this.getDiff(s,t)),c=Pt(p,3),l=Pt(-p,3),u=0,h=0;!(!(h++<100)||(u=r===i?u+1:0)>5||c!==n&&0<=(e=this.getPlotBox(c,t,a))&&e<=2||l!==n&&0<=(i=this.getPlotBox(l,t,a))&&i<=2||(n=e>0&&i>0?2*c:e<0&&i<0?2*l:Pt((c+l)/2||1,3),0<=(o=this.getPlotBox(n,t,a))&&o<=2));)r=i,o>0?(l=n,i=o):(c=n,e=o)},e.prototype.getPlotBox=function(t,e,o){var i=this.scale,n=this.pointers,r=o.getRadiusX(),a=o.clone();a.setRadiusX(r+t).setRadiusY(r+t),i.arc=a,i.reflow(e),this.plotBbox=i.bbox;for(var s=0;s<n.length;s++)n[s].reflow(a),this.plotBbox=w.geometry.Rect.union(this.plotBbox,n[s].bbox);return this.getDiff(this.plotBbox,e)},e.prototype.getDiff=function(t,e){return Math.min(e.width()-t.width(),e.height()-t.height())},e.prototype.alignScale=function(t){var e=this.plotBbox.center(),o=t.center(),i=e.x-o.x,n=e.y-o.y,r=this.scale,a=this.pointers;r.arc.center.x-=i,r.arc.center.y-=n,r.reflow(t);for(var s=0;s<a.length;s++)a[s].reflow(r.arc),this.plotBbox=w.geometry.Rect.union(r.bbox,a[s].bbox)},e.prototype._createModel=function(){var t=this.options,e=t.pointer,o=this.scale=new yp(t.scale,this.contextService);this.pointers=[];for(var i=b(e)?e:[e],n=0;n<i.length;n++){var r=new wp(o,M({},i[n],{animation:{transitions:t.transitions}}));this.pointers.push(r)}},e}(Ns);Rt(Op,{transitions:!0,gaugeArea:{background:""}});var Ip=Op,kp=function(t){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 i=this.options.reverse,n=this.slotAngle(i?e:t),r=this.slotAngle(i?t:e),a=this.createRange(n,r,this.getRangeRadius(),o);return this.ranges.append(a),a},e}(yp);Rt(kp,{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"});var Pp=kp,jp=function(t){function e(e,o){t.call(this,e,o);var i=this.options,n=Math.abs(i.newAngle-i.oldAngle)/i.duration*1e3;i.duration=Ot(n,150,800);var r=e.elements.options.get("stroke.color"),a=e.currentColor();r!==a&&(this.startColor=new w.Color(r),this.color=new w.Color(a))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this.options,o=this.startColor,i=this.color,n=ut(e.oldAngle,e.newAngle,t);if(this.element.angle(n),i){var r=Pt(ut(o.r,i.r,t)),a=Pt(ut(o.g,i.g,t)),s=Pt(ut(o.b,i.b,t));this.element.stroke(new w.Color(r,a,s).toHex())}},e}(w.drawing.Animation);Rt(jp,{easing:"linear",duration:150}),w.drawing.AnimationFactory.current.register("radialRangePointer",jp);var Tp=jp,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.repaint=function(){var t=this.scale,e=this.options,o=t.slotAngle(e._oldValue),i=t.slotAngle(e.value);this.animation&&this.animation.abort(),!1===e.animation.transitions?(this.angle(i),this.stroke(this.currentColor())):(this.animation=new Tp(this,M(e.animation,{oldAngle:o,newAngle:i})),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&&M(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,i=this.options,n=i.colors,r=i.color,a=i.value,s=I(a)?a:e;if(n)for(var p=0;p<n.length;p++){var c=n[p],l=c.color,u=c.from;void 0===u&&(u=e);var h=c.to;if(void 0===h&&(h=o),u<=s&&s<=h)return l}return r},e.prototype.reflow=function(){this.render(),this.bbox=this.elements.bbox()},e}(Ks);Rt(Mp,{animation:{type:"radialRangePointer",duration:150}});var Ep=Mp,Rp=function(t){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 Pp(t.scale,this.contextService),o=new Ep(e,M({},{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(),i=this.scale.arc.center,n=i.x-t/2,r=i.y-e/2;if(t<o.width){var a=n+t;n=Math.max(n,0),a>o.width&&(n-=a-o.width)}if(e<o.height){var s=this.scale.bbox,p=s.bottomRight().y,c=r+e;r=Math.max(r,s.origin.y),c>p&&(r-=c-p)}return{left:n,top:r}},e}(Ip),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._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}(Rp),Lp=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 i=mt(t)?String(t):t;return this.initValue(i,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}(w.Class);Rt(Lp,{quietZoneLength:10,addQuietZone:!0,addCheckSum:!0});var Bp=Object.assign,Vp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Bp(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 i=(o+this.getWeightedSum(t,e,this.kCheckSumTotal))%this.checkSumMod;this.checksum+=i,this.addPattern(this.characterMap[i])}},e.prototype.getWeightedSum=function(t,e,o){for(var i=0,n=0;n<t.length;n++)i+=this.weightedValue(this.getValue(t.charAt(n)),e,n,o);return i},e.prototype.weightedValue=function(t,e,o,i){return((e-o)%i||i)*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}(Lp);Rt(Vp,{addCheckSum:!0});var zp=Object.assign,Np=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),zp(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}(Lp),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.initProperties=function(){t.prototype.initProperties.call(this),zp(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,i=Math.max(.15*this.width,24),n=this.maxRatio;if(this.height<i)throw new Error("Insufficient Height. The minimum height for value: "+this.value+" is: "+i);for(t=this.getBaseUnit(n);t<e&&n>o;)n=parseFloat((n-.1).toFixed(1)),t=this.getBaseUnit(n);if(t<e){var r=Math.ceil(this.getBaseWidth(o)*e);throw new Error("Insufficient width. The minimum width for value: "+this.value+" is: "+r)}this.ratio=n,this.baseUnit=t,this.patternString=this.patternString.substring(0,this.patternString.length-1),this.pattern=this.pattern.concat(this.patternString.replace(/ratio/g,n).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}(Np);Rt(Fp,{addCheckSum:!1});var Gp={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=0;o<this.extendedMappings.length;o++)if(e=this.extendedMappings[o].call(this,t)){for(var i=0;i<e.length;i++){var n=e[i];this.addBase(n)}return void(this.dataLength+=e.length-1)}},extendedMappings:[function(t){if(97<=t&&t<=122)return[this.characterMap[this.shiftCharacters[0]],this.characterMap[String.fromCharCode(t-32)]]},function(t){if(33<=t&&t<=58)return[this.characterMap[this.shiftCharacters[1]],this.characterMap[String.fromCharCode(t+32)]]},function(t){if(1<=t&&t<=26)return[this.characterMap[this.shiftCharacters[2]],this.characterMap[String.fromCharCode(t+64)]]},function(t){var e,o;if(this.specialAsciiCodes[t]){e=[];for(var i=0;i<this.specialAsciiCodes[t].length;i++)e.push(this.characterMap[this.shiftCharacters[3]]),e.push(this.characterMap[this.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"]},Hp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),M(this,Gp,{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}(Fp),Up=Object.assign,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.initProperties=function(){t.prototype.initProperties.call(this),Up(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.max(.15*this.width,24);if(this.height<t)throw new Error("Insufficient Height");if(this.setBaseUnit(),this.baseUnit<this.minBaseUnitLength)throw new Error("Insufficient Width")},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(9*(this.dataLength+2+2)+this.quietZoneLength+1)},e.prototype.addStart=function(){var t=this.characterMap.START.pattern;this.addPattern(t)},e.prototype.addStop=function(){this.addStart(),this.pattern.push(this.characterMap.TERMINATION_BAR)},e.prototype.addBase=function(t){this.addPattern(t.pattern),this.values.push(t.value)},e.prototype.pushCheckSum=function(){var t,e=this._getCheckValues();this.checksum=e.join("");for(var o=0;o<e.length;o++)t=this.characterMap[this._findCharacterByValue(e[o])],this.addPattern(t.pattern)},e.prototype._getCheckValues=function(){var t,e,o=this.values,i=o.length,n=0;for(e=i-1;e>=0;e--)n+=this.weightedValue(o[e],i-e,this.cCheckSumTotal);for(t=n%this.checkSumMod,n=this.weightedValue(t,1,this.kCheckSumTotal),e=i-1;e>=0;e--)n+=this.weightedValue(o[e],i-e+1,this.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}(Np),Xp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),M(this,Gp,{name:"Code 93 extended",pushCheckSum:function(){var t,e=this._getCheckValues();this.checksum=e.join("");for(var o=0;o<e.length;o++)if(t=e[o],this.shiftValuesAsciiCodes[t])this.addExtended(this.shiftValuesAsciiCodes[t]);else{var i=this._findCharacterByValue(t);this.addPattern(this.characterMap[i].pattern)}}})},e}(Wp),Yp=/^\d+$/,qp=Object.assign,Kp=function(t){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),qp(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(Yp.test(t)||this.invalidCharacterError(t.match(/[^0-9]/)[0]),!lt(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=0;o<t.length;o++)e=this.height-this.baseHeight*t.charAt(o),this.pattern.push({width:1,y1:e,y2:this.height}),this.pattern.push(1)},e}(Lp),Zp=/^\d+$/,$p=/^[a-z0-9]+$/i,Jp=Object.assign,Qp=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}(w.Class),tc=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),M(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,i=t.value,n=i.length;if(lt("C",o)){var r=i.substr(t.index).match(/\d{4,}/g);r&&(n=i.indexOf(r[0],t.index))}for(;(e=t.value.charCodeAt(t.index))>=0&&this.isCode(e)&&t.index<n;)this.encoding.addPattern(this.getValue(e)),t.index++},e.prototype._initMoves=function(t){this._moves=[],lt(this.FNC4,t)&&this._moves.push(this._moveFNC),lt(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}(Qp),ec={};ec.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),Jp(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}(tc),ec.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),Jp(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}(tc),ec.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),Jp(this,{key:"C",MOVE:99,START:105})},e.prototype.addStart=function(){this.encoding.addPattern(this.START)},e.prototype.is=function(t,e){var o=pc(t,e,4);return(e+4<=t.length||2===t.length)&&Zp.test(o)},e.prototype.move=function(){this.encoding.addPattern(this.MOVE)},e.prototype.pushState=function(t){for(var e;(e=pc(t.value,t.index,2))&&Zp.test(e)&&2===e.length;)this.encoding.addPattern(parseInt(e,10)),t.index+=2},e.prototype.getValue=function(t){return t},e}(Qp),ec.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),Jp(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),i=this.encoding,n=o.value.length;if(t.index+=n,n<3)for(;o.index<n;o.index++)e=o.value.charCodeAt(o.index),o.state=this._getSubState(e),o.previousState!==o.state&&(o.previousState=o.state,i[o.state].move(o)),i.addPattern(i[o.state].MOVE),i.addPattern(i[o.state].getValue(e));else o.state!==o.previousState&&i[o.state].move(o),this._pushStart(o),i.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++)lt(t[e],this.dependentStates)&&this.subStates.push(t[e])},e.prototype._getSubState=function(t){for(var e=0;e<this.subStates.length;e++)if(this.encoding[this.subStates[e]].isCode(t))return this.subStates[e]},e.prototype._getAll=function(t,e){for(var o,i="",n=e;(o=t.charCodeAt(n++))&&this.isCode(o);)i+=String.fromCharCode(o-128);return i},e}(Qp),ec.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),Jp(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 lt(this.key,this.states)},e.prototype.pushState=function(t){var e,o,i,n=this.encoding,r=t.value.replace(/\s/g,""),a=new RegExp("["+this.startAI+this.endAI+"]","g"),s=t.index,p={state:this.startState};n.addPattern(this.START);for(;;){if(p.index=0,(e=(i=r.charAt(s)===this.startAI?2:0)>0?this.getBySeparator(r,s):this.getByLength(r,s)).ai.length)o=s+i+e.id.length+e.ai.length;else if((o=r.indexOf(this.startAI,s+1))<0){if(s+e.ai.max+e.id.length+i<r.length)throw new Error("Separators are required after variable length identifiers");o=r.length}if(p.value=r.substring(s,o).replace(a,""),this.validate(e,p.value),n.pushData(p,this.dependentStates),o>=r.length)break;s=o,p.state!==this.startState&&(n[this.startState].move(p),p.state=this.startState),e.ai.length||n.addPattern(this.START)}t.index=t.value.length},e.prototype.validate=function(t,e){var o=e.substr(t.id.length),i=t.ai;if(!i.type&&!Zp.test(o))throw new Error("Application identifier "+t.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"===i.type&&!$p.test(o))throw new Error("Application identifier "+t.id+" is alphanumeric only but contains non alphanumeric character(s).");if(i.length&&i.length!==o.length)throw new Error("Application identifier "+t.id+" must be "+i.length+" characters long.");if(i.min&&i.min>o.length)throw new Error("Application identifier "+t.id+" must be at least "+i.min+" characters long.");if(i.max&&i.max<o.length)throw new Error("Application identifier "+t.id+" must be at most "+i.max+" characters long.")},e.prototype.getByLength=function(t,e){for(var o,i,n=2;n<=4;n++)if(o=pc(t,e,n),i=this.getApplicationIdentifier(o)||this.getApplicationIdentifier(o.substring(0,o.length-1)))return{id:o,ai:i};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),i=t.indexOf(this.endAI,o),n=t.substring(o+1,i),r=this.getApplicationIdentifier(n)||this.getApplicationIdentifier(n.substr(n.length-1));return r||this.unsupportedAIError(n),{ai:r,id:n}},e.prototype.getApplicationIdentifier=function(t){var e=this.applicationIdentifiers,o=e.multiKey;if(e[t])return e[t];for(var i=0;i<o.length;i++){if(o[i].ids&<(t,o[i].ids))return o[i].type;if(o[i].ranges)for(var n=o[i].ranges,r=0;r<n.length;r++)if(n[r][0]<=t&&t<=n[r][1])return o[i].type}},e}(Qp);var oc=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),Jp(this,{characterMap:[212222,222122,222221,121223,121322,131222,122213,122312,132212,221213,221312,231212,112232,122132,122231,113222,123122,123221,223211,221132,221231,213212,223112,312131,311222,321122,321221,312212,322112,322211,212123,212321,232121,111323,131123,131321,112313,132113,132311,211313,231113,231311,112133,112331,132131,113123,113321,133121,313121,211331,231131,213113,213311,213131,311123,311321,331121,312113,312311,332111,314111,221411,431111,111224,111422,121124,121421,141122,141221,112214,112412,122114,122411,142112,142211,241211,221114,413111,241112,134111,111242,121142,121241,114212,124112,124211,411212,421112,421211,212141,214121,412121,111143,111341,131141,114113,114311,411113,411311,113141,114131,311141,411131,211412,211214,211232,2331112],STOP:106})},e.prototype._initStates=function(){for(var t=0;t<this.states.length;t++)this[this.states[t]]=new ec[this.states[t]](this,this.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(;this[t.state].pushState(t),!(t.index>=t.value.length);)if(t.shifted){var o=t.state;t.state=t.previousState,t.previousState=o,t.shifted=!1}else t.previousState=t.state,t.state=this.getNextState(t,e),this[t.state].move(t)},e.prototype.addStart=function(t){this[t.state].addStart(t),this.position=1},e.prototype.addCheckSum=function(){this.checksum=this.checkSum%103,this.addPattern(this.checksum)},e.prototype.addStop=function(){this.addPattern(this.STOP)},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)},e.prototype.addPattern=function(t){for(var e,o=this.characterMap[t].toString(),i=0;i<o.length;i++)e=parseInt(o.charAt(i),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}(Lp),ic=function(t){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),Jp(this,{name:"Code 128 A",states:["A"]})},e}(oc),nc=function(t){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),Jp(this,{name:"Code 128 B",states:["B"]})},e}(oc),rc=function(t){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),Jp(this,{name:"Code 128 C",states:["C"]})},e}(oc),ac=function(t){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),Jp(this,{name:"Code 128",states:["C","B","A","FNC4"]})},e}(oc),sc=function(t){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),Jp(this,{name:"Code GS1-128",states:["FNC1","C","B"]})},e}(oc);function pc(t,e,o){return t.substring(e,e+o)}var cc=Object.assign,lc=function(t){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),cc(this,{characterMap:["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221"],START:"21",STOP:"121",checkSumType:"",checkSums:gc})},e.prototype.initValue=function(t,e){this.pattern=[],this.value=t,this.checkSumLength=0,this.width=e},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(12*(this.value.length+this.checkSumLength)+this.quietZoneLength+7)},e.prototype.addData=function(){var t=this.value;this.addPattern(this.START);for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.STOP),this.setBaseUnit()},e.prototype.addCharacter=function(t){var e=this.characterMap[t];e||this.invalidCharacterError(t),this.addPattern(e)},e.prototype.addPattern=function(t){for(var e=0;e<t.length;e++)this.pattern.push(parseInt(t.charAt(e),10))},e.prototype.addCheckSum=function(){var t=this.checkSums[this.checkSumType].call(this.checkSums,this.value);this.checksum=t.join("");for(var e=0;e<t.length;e++)this.checkSumLength++,this.addPattern(this.characterMap[t[e]])},e}(Lp),uc=function(t){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),cc(this,{name:"MSI Modulo10",checkSumType:"Modulo10"})},e}(lc),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.initProperties=function(){t.prototype.initProperties.call(this),cc(this,{name:"MSI Modulo11",checkSumType:"Modulo11"})},e}(lc),dc=function(t){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),cc(this,{name:"MSI Modulo10 Modulo10",checkSumType:"Modulo10Modulo10"})},e}(lc),fc=function(t){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),cc(this,{name:"MSI Modulo11 Modulo10",checkSumType:"Modulo11Modulo10"})},e}(lc),gc={Modulo10:function(t){var e,o,i,n=[0,""],r=t.length%2;for(e=0;e<t.length;e++)n[(e+r)%2]+=parseInt(t.charAt(e),10);for(i=n[0],o=(2*n[1]).toString(),e=0;e<o.length;e++)i+=parseInt(o.charAt(e),10);return[(10-i%10)%10]},Modulo11:function(t){for(var e,o=0,i=t.length,n=0;n<i;n++)o+=(((i-n)%6||6)+1)*t.charAt(n);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))}},vc=Object.assign,yc=function(t){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),vc(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 i=String(t);if(12!==i.length||/\D/.test(i))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=i,this.checksum=this.calculateChecksum(),this.leftKey=i[0],this.leftPart=i.substr(1,6),this.rightPart=i.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=0;o<t.length;o++)e&&parseInt(this.keyTable[e].charAt(o),10)?this.addPieces(Array.prototype.slice.call(this.characterMap.digits[t.charAt(o)]).reverse(),!0):this.addPieces(this.characterMap.digits[t.charAt(o)],!0)},e.prototype.addPieces=function(t,e){for(var o=0;o<t.length;o++)e?this.pattern.push({y1:0,y2:.95*this.options.height,width:t[o]}):this.pattern.push(t[o])},e.prototype.calculateChecksum=function(){for(var t=0,e=0,o=this.value.split("").reverse().join(""),i=0;i<o.length;i++)i%2?e+=parseInt(o.charAt(i),10):t+=parseInt(o.charAt(i),10);return(10-(3*t+e)%10)%10},e}(Lp),_c=Object.assign,mc=function(t){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),_c(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}(yc),bc={code11:Vp,code39:Fp,code39extended:Hp,code93:Wp,code93extended:Xp,code128:ac,code128a:ic,code128b:nc,code128c:rc};bc["gs1-128"]=sc,bc.msimod10=uc,bc.msimod11=hc,bc.msimod1010=dc,bc.msimod1110=fc,bc.postnet=Kp,bc.ean8=mc,bc.ean13=yc;var xc=function(t){function e(e,o){t.call(this),this.options=M({},this.options,o),this.element=e,this._initElement(),this._initSurface(),this._setOptions(o),o&&mt(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(){x(this.element,"k-barcode"),this.element.style.display="block"},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 w.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.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,i=o.value,n=o.text,r=V(n.margin),a=this._getSize(),s=o.border||{},p=this.encoding,c=new $t(0,0,a.width,a.height).unpad(s.width).unpad(o.padding),l=c.height(),u=new w.drawing.Group;return this.contentBox=c,u.append(this._getBackground(a)),n.visible&&(l-=w.drawing.util.measureText(i,{font:n.font}).height+r.top+r.bottom),t=p.encode(i,c.width(),l),n.visible&&(e=i,o.checksum&&mt(p.checksum)&&(e+=" "+p.checksum),u.append(this._getText(e))),this.barHeight=l,this._bandsGroup=this._getBands(t.pattern,t.baseUnit),u.append(this._bandsGroup),u},e.prototype.exportVisual=function(){return this._render()},e.prototype._getSize=function(){var t=this.element,e=t.clientWidth,o=t.clientHeight,i=new w.geometry.Size(300,100);return e>0&&(i.width=e),o&&(i.height=o),this.options.width&&(i.width=this.options.width),this.options.height&&(i.height=this.options.height),i},e.prototype.value=function(t){if(!mt(t))return this.options.value;this.options.value=String(t),this.redraw()},e.prototype._getBands=function(t,e){for(var o,i,n=this.contentBox,r=n.x1,a=new w.drawing.Group,s=0;s<t.length;s++){if(o=(i=E(t[s])?t[s]:{width:t[s],y1:0,y2:this.barHeight}).width*e,s%2){var p=w.geometry.Rect.fromPoints(new w.geometry.Point(r,i.y1+n.y1),new w.geometry.Point(r+o,i.y2+n.y1)),c=w.drawing.Path.fromRect(p,{fill:{color:this.options.color},stroke:null});a.append(c)}r+=o}return a},e.prototype._getBackground=function(t){var e=this.options,o=e.border||{},i=new $t(0,0,t.width,t.height).unpad(o.width/2);return w.drawing.Path.fromRect(i.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 be(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),!bc[this.type])throw new Error("Encoding "+this.type+" is not supported.");this.encoding=new bc[this.type],this.options=M({},this.options,t)},e}(w.Class);Rt(xc,{name:"Barcode",renderAs:"svg",value:"",type:"code39",checksum:!1,width:0,height:0,color:"black",background:"white",text:{visible:!0,font:"16px Consolas, Monaco, Sans Mono, monospace, sans-serif",color:"black",margin:{top:0,bottom:0,left:0,right:0}},border:{width:0,dashType:"solid",color:"black"},padding:{top:0,bottom:0,left:0,right:0}});var Sc=xc,Cc="Arial, Helvetica, sans-serif",wc="12px "+Cc,Ac="16px "+Cc,Oc=function(){return{icon:{border:{width:1}},label:{font:wc,padding:3},line:{length:10,width:2},visible:!0}},Ic=function(t){return{visible:!0,labels:{font:"11px Arial, Helvetica, sans-serif"},overlay:t.gradients?{}:{gradient:"none"},area:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},rangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalRangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},bar:{gap:1.5,spacing:.4},boxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},bubble:{border:{width:0},labels:{background:"transparent"},opacity:.6},bullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},candlestick:{border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:"#000",width:1},spacing:.3},column:{gap:1.5,spacing:.4},heatmap:{labels:{color:"",background:"transparent",visible:!0},highlight:{border:{width:0}}},pie:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},donut:{margin:1},funnel:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},horizontalWaterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4},line:{width:2},notes:Oc(),ohlc:{gap:1,highlight:{line:{opacity:1,width:3}},line:{width:1},spacing:.3},radarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},radarLine:{markers:{visible:!1},width:2},polarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},polarLine:{markers:{visible:!1},width:2},rangeBar:{gap:1.5,spacing:.4},rangeColumn:{gap:1.5,spacing:.4},scatterLine:{width:1},verticalArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalBoxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},verticalBullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},verticalLine:{width:2},waterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4}}},kc=function(t){return void 0===t&&(t={}),{axisDefaults:{labels:{font:wc},notes:Oc(),title:{font:Ac,margin:5}},categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:Ic(t),title:{font:Ac},legend:{labels:{font:wc}}}}},function(t,e){t.exports=i},function(t,e){t.exports=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(6),n=o(31),r=o(32),a=function(){function t(t,e){var o=this;this.configurationService=t,this.collectionService=e,this.options={},this.subscription=t.onFastChange$.subscribe((function(t){o.options=t,o.notify()}))}return t.prototype.ngOnChanges=function(t){var e=this.configurationService.store;n.copyChanges(t,e),this.configurationService.push(e)},t.prototype.notifyChanges=function(t){this.ngOnChanges(r.toSimpleChanges(t))},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.notify=function(){this.collectionService&&this.collectionService.notify(new i.ItemChange(this,this.options))},t}();e.CollectionItemComponent=a},function(t,e){t.exports=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(3),n=function(){function t(t,e,o){var i=this;this.configKey=t,this.configurationService=e,this.collectionService=o,this.items=[],this.subscription=o.onItemChange$.subscribe((function(t){return i.processChanges(t)}))}return t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.ngAfterContentInit=function(){var t=this;this.readItems(),this.children.changes.subscribe((function(){return t.readItems()}))},t.prototype.processChanges=function(t){if(this.children){var e=this.children.toArray().indexOf(t.sender);e<0||(this.items[e]=t.options,this.change())}},t.prototype.readItems=function(){this.items=this.children.map((function(t){return t.options})),this.change()},t.prototype.change=function(){this.configurationService.notify(new i.Change(this.configKey,0===this.items.length?void 0:this.items))},t}();e.CollectionComponent=n},function(t,e,o){"use strict";o.r(e),o.d(e,"AlignService",(function(){return $})),o.d(e,"AnimationService",(function(){return ot})),o.d(e,"DOMService",(function(){return K})),o.d(e,"PositionService",(function(){return J})),o.d(e,"ResizeService",(function(){return Q})),o.d(e,"ScrollableService",(function(){return tt})),o.d(e,"PopupService",(function(){return st})),o.d(e,"POPUP_CONTAINER",(function(){return at})),o.d(e,"PopupComponent",(function(){return rt})),o.d(e,"PopupModule",(function(){return ct})),o.d(e,"SCALE",(function(){return Z}));var i=o(0),n=o(2),r="bottom",a="center",s="middle",p="left",c="right",l="top",u=function(t){var e=t.anchorRect,o=t.anchorAlign,i=t.elementRect,n=t.elementAlign,p=t.margin;void 0===p&&(p={});var l=o.horizontal,u=o.vertical,h=n.horizontal,d=n.vertical,f=p.horizontal||0,g=p.vertical||0,v=e.top,y=e.left;return u===r&&(v+=e.height),u!==a&&u!==s||(v+=Math.round(e.height/2)),d===r&&(v-=i.height,g*=-1),d!==a&&d!==s||(v-=Math.round(i.height/2),g*=-1),l===c&&(y+=e.width),l!==a&&l!==s||(y+=Math.round(e.width/2)),h===c&&(y-=i.width,f*=-1),h!==a&&h!==s||(y-=Math.round(i.width/2),f*=-1),{top:v+g,left:y+f}};function h(t){return t.ownerDocument||t.document||t}var d=function(t){return h(t).defaultView},f=function(t){return h(t).documentElement},g=0;function v(){if(!g&&"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),g=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return g}function y(t){var e=d(t),o=f(t),i={height:e.innerHeight,width:e.innerWidth};return o.scrollHeight-o.clientHeight>0&&(i.width-=v()),i}var _=function(t){if(!t.getBoundingClientRect){var e=y(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}},m=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||f(t)},b=function(t){var e=t.getBoundingClientRect(),o=e.left,i=e.top;return e.height||e.width||(e=function(t){var e=t.style,o=e.display,i=e.left,n=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var r=t.getBoundingClientRect();return t.style.display=o,t.style.left=i,t.style.position=n,r}(t)),{top:i,left:o,height:e.height,width:e.width}},x=function(t,e){for(var o=[],i=t.parentNode;i&&(o.push(i),i!==e);)i=i.parentNode;return o};function S(t){var e=f(t),o=d(t);return{x:o.pageXOffset||e.scrollLeft||0,y:o.pageYOffset||e.scrollTop||0}}var C=function(t){return t===(t.ownerDocument||{}).body?S(t):{x:t.scrollLeft,y:t.scrollTop}};var w=function(t,e){var o=d(t),i=o.getComputedStyle(t),n=b(t),r=e||m(t),a=t.ownerDocument,s=r!==a.body&&r!==a.documentElement,p={top:0,left:0};if("fixed"!==i.position&&s){var c=o.getComputedStyle(r);(p=b(r)).top+=parseInt(c.borderTopWidth,10),p.left+=parseInt(c.borderLeftWidth,10)}return{top:n.top-p.top,left:n.left-p.left,height:n.height,width:n.width}},A=function(t,e){return t?C(t):function(t){var e=m(t);return e?C(e):{x:0,y:0}}(e)};var O="fit",I="flip",k=function(t,e,o){var i=0;return t+e>o&&(i=o-(t+e)),t<0&&(i=-t),i},P=function(t){var e=t.offset,o=t.size,i=t.anchorSize,n=t.viewPortSize,r=t.anchorAlignPoint,c=t.elementAlignPoint,u=0,h=2*t.margin;if(c!==r&&!(c===a||c===s)&&!(r===a||r===s)){var d=r===l||r===p;e<0&&d?e+(u=o+i+h)+o>n&&(u=0):e>=0&&!d&&(e+o>n&&(u+=-(i+o+h)),e+u<0&&(u=0))}return u},j=function(t){var e=t.anchorRect,o=t.anchorAlign,i=t.elementRect,n=t.elementAlign,r=t.collisions,a=t.viewPort,s=t.margin;void 0===s&&(s={});var p=i.top,c=i.left,l=i.height,u=i.width,h=a.height,d=a.width,f=s.horizontal||0,g=s.vertical||0,v=0,y=0,_=r.horizontal===I,m=r.vertical===I;r.vertical===O&&(y+=k(p,l,h)),r.horizontal===O&&(v+=k(c,u,d)),m&&(y+=P({margin:g,offset:p,size:l,anchorSize:e.height,viewPortSize:h,anchorAlignPoint:o.vertical,elementAlignPoint:n.vertical})),_&&(v+=P({margin:f,offset:c,size:u,anchorSize:e.width,viewPortSize:d,anchorAlignPoint:o.horizontal,elementAlignPoint:n.horizontal}));var b=_&&0!==v,x=m&&0!==y;return{flipped:b||x,flip:{horizontal:b,vertical:x},offset:{left:v,top:y}}},T=function(t){for(var e=[],o=t.parentNode.firstElementChild;o;)o!==t&&e.push(o),o=o.nextElementSibling;return e},M=function(t,e){for(var o,i,n=x(t),r=e;r&&(o=T(r),!(i=n.reduce((function(t,e){return t.concat(o.filter((function(t){return t===e})))}),[])[0]));)r=r.parentElement;return i};var E=o(5),R=o(8),D=o(13),L=o(20),B=o(19),V=o(12),z=function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},N=function(){return"undefined"!=typeof window},F=/auto|scroll/,G=function(t){return function(t){return""+t.style.overflow+t.style.overflowX+t.style.overflowY}(t)||function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY}(t)};var H,U,W,X=(H=function(){if(!Object(E.isDocumentAvailable)()&&null!==document.body)return!1;var t=document.createElement("div");t.style.transform="matrix(10, 0, 0, 10, 0, 0)",t.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(t);var e=10!==t.children[0].getBoundingClientRect().top;return document.body.removeChild(t),e},W=!1,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return W||(U=H.apply(void 0,t),W=!0),U}),Y=function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t},q=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],K=function(){function t(){}return t.prototype.addOffset=function(t,e){return{left:t.left+e.left,top:t.top+e.top}},t.prototype.addScroll=function(t,e){return function(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}(t,e)},t.prototype.align=function(t){return u(t)},t.prototype.boundingOffset=function(t){return _(this.nativeElement(t))},t.prototype.getFontStyles=function(t){var e=this.getWindow();if(!e||!t)return[];var o=e.getComputedStyle(this.nativeElement(t));return q.map((function(t){return{key:t,value:o[t]}}))},t.prototype.getWindow=function(){return N()?window:null},t.prototype.hasOffsetParent=function(t){return!!t&&!!this.nativeElement(t).offsetParent},t.prototype.offset=function(t){return t?b(this.nativeElement(t)):null},t.prototype.offsetAtPoint=function(t,e){if(!t)return null;var o=this.nativeElement(t),i=o.style,n=i.left,r=i.top,a=i.transition;o.style.transition="none",o.style.left=e.left+"px",o.style.top=e.top+"px";var s=b(o);return o.style.left=n,o.style.top=r,o.offsetHeight,o.style.transition=a,s},t.prototype.nativeElement=function(t){return t?t.nativeElement||t:null},t.prototype.position=function(t,e,o){return void 0===o&&(o=1),t&&e?function(t,e,o){void 0===o&&(o=1);var i=e?m(e):null,n=w(t,i),r=n.top,a=n.left,s=n.height,p=n.width,c=A(i,t),l=c.x,u=c.y,h=t.ownerDocument,d=i===h.body||i===h.documentElement?1:o;return{top:r+u*d,left:a+l*d,height:s,width:p}}(this.nativeElement(t),this.nativeElement(e),o):null},t.prototype.removeScroll=function(t,e){return function(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}(t,e)},t.prototype.restrictToView=function(t){return j(t)},t.prototype.scrollPosition=function(t){return S(this.nativeElement(t))},t.prototype.scrollableParents=function(t){return function(t){var e=[];if(!Object(E.isDocumentAvailable)()||!N())return e;for(var o=t.parentElement;o;)(F.test(G(o))||o.hasAttribute("data-scrollable"))&&e.push(o),o=o.parentElement;return e.push(window),e}(this.nativeElement(t))},t.prototype.stackingElementOffset=function(t){var e=this.getRelativeContextElement(t);return e?b(e):null},t.prototype.stackingElementScroll=function(t){var e=this.getRelativeContextElement(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},t.prototype.getRelativeContextElement=function(t){if(!t||!X())return null;for(var e=this.nativeElement(t).parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},t.prototype.useRelativePosition=function(t){return!!this.getRelativeContextElement(t)},t.prototype.windowViewPort=function(t){return y(this.nativeElement(t))},t.prototype.zIndex=function(t,e){return function(t,e){if(!t||!Object(E.isDocumentAvailable)()||!N())return null;var o=M(t,e);if(!o)return null;var i=[t].concat(x(t,o)).reduce((function(t,e){var o=e.style.zIndex||window.getComputedStyle(e).zIndex,i=parseInt(o,10);return i>t?i:t}),0);return i?i+1:null}(this.nativeElement(t),this.nativeElement(e))},t.prototype.zoomLevel=function(){return Object(E.isDocumentAvailable)()&&N()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},t.prototype.isZoomed=function(){return this.zoomLevel()>1},t=Object(i.__decorate)([Object(n.Injectable)()],t)}(),Z=new n.InjectionToken("Popup Document Scale"),$=function(){function t(t,e){void 0===e&&(e=1),this._dom=t,this.scale=e}return t.prototype.alignElement=function(t){var e=t.anchor,o=t.element,i=t.anchorAlign,n=t.elementAlign,r=t.margin,a=t.offset,s=t.positionMode,p=this.scale||1,c="fixed"===s||!this._dom.hasOffsetParent(o)?this.absoluteRect(e,o,a,p):this.relativeRect(e,o,a,p),l=Y(this._dom.offset(o),p);return this._dom.align({anchorAlign:i,anchorRect:c,elementAlign:n,elementRect:l,margin:r})},t.prototype.absoluteRect=function(t,e,o,i){var n=this.elementScrollPosition(t,e),r=z(this._dom.offset(t),o),a=2*i,s=this._dom.stackingElementScroll(e);1!==i&&s&&(s.x/=a,s.y/=a);var p=this._dom.stackingElementOffset(e);return 1!==i&&p&&(p.left/=a,p.top/=a),this._dom.removeScroll(this._dom.addScroll(function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t}(Y(r,i),p),s),n)},t.prototype.elementScrollPosition=function(t,e){return t?{x:0,y:0}:this._dom.scrollPosition(e)},t.prototype.relativeRect=function(t,e,o,i){var n=z(this._dom.position(t,e,i),o);return Y(n,i)},t=Object(i.__decorate)([Object(n.Injectable)(),Object(i.__param)(1,Object(n.Inject)(Z)),Object(i.__param)(1,Object(n.Optional)()),Object(i.__metadata)("design:paramtypes",[K,Number])],t)}(),J=function(){function t(t,e){void 0===e&&(e=1),this._dom=t,this.scale=e}return t.prototype.positionElement=function(t){var e=t.anchor,o=t.currentLocation,i=t.element,n=t.anchorAlign,r=t.elementAlign,a=t.collisions,s=t.margin,p=this._dom,c=this.scale||1,l=p.offsetAtPoint(i,o),u=Y(l,c),h=Y(p.offset(e),c),d=z(h,o),f=t.viewPort||p.windowViewPort(i);f.width=f.width/c,f.height=f.height/c;var g=p.restrictToView({anchorAlign:n,anchorRect:d,collisions:a,elementAlign:r,elementRect:u,margin:s,viewPort:f}),v=p.addOffset(o,g.offset);return{flip:g.flip,flipped:g.flipped,offset:v}},t=Object(i.__decorate)([Object(n.Injectable)(),Object(i.__param)(1,Object(n.Inject)(Z)),Object(i.__param)(1,Object(n.Optional)()),Object(i.__metadata)("design:paramtypes",[K,Number])],t)}(),Q=function(){function t(t,e){this._dom=t,this._zone=e}return t.prototype.subscribe=function(t){var e=this;Object(E.isDocumentAvailable)()&&this._zone.runOutsideAngular((function(){e.subscription=Object(R.fromEvent)(e._dom.getWindow(),"resize").pipe(Object(D.auditTime)(1e3/60)).subscribe((function(){return t()}))}))},t.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},t=Object(i.__decorate)([Object(n.Injectable)(),Object(i.__metadata)("design:paramtypes",[K,n.NgZone])],t)}(),tt=function(){function t(t,e){this._dom=t,this._zone=e}return t.prototype.forElement=function(t){return this.unsubscribe(),this.element=t,this},t.prototype.subscribe=function(t){var e=this;if(t&&Object(E.isDocumentAvailable)()&&this.element){var o=this._dom.nativeElement(this.element),i=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular((function(){var n=i.map((function(t){return Object(R.fromEvent)(t,"scroll").pipe(Object(D.auditTime)(1e3/60))}));e.subscription=R.merge.apply(void 0,n).subscribe((function(n){var r=n.target,a=i.filter((function(t){return t===r})).length>0,s=r===document,p=r===window;(a||s||p)&&t(e.isVisible(o,r))}))}))}},t.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.isVisible=function(t,e){var o=this._dom.boundingOffset(t),i=this._dom.boundingOffset(e);return!(1<i.top-o.bottom)&&(!(1<o.top-i.bottom)&&(!(1<o.left-i.right)&&!(1<i.left-o.right)))},t=Object(i.__decorate)([Object(n.Injectable)(),Object(i.__metadata)("design:paramtypes",[K,n.NgZone])],t)}(),et={expand:function(t){var e="up"===t||"down"===t?"scaleY":"scaleX";return{start:{transform:e+"(0)",transformOrigin:"down"===t?"top":"left"===t?"right":"right"===t?"left":"bottom"},end:{transform:e+"(1)"}}},slide:function(t){var e="left"===t||"right"===t?"translateX":"translateY";return{start:{transform:e+"("+("right"===t||"down"===t?-100:100)+"%)"},end:{transform:e+"(0%)"}}},fade:function(){return{start:{opacity:0},end:{opacity:1}}},zoom:function(){return{start:{transform:"scale(0)"},end:{transform:"scale(1)"}}}},ot=function(){function t(t){this.animationBuilder=t,this.start=new n.EventEmitter,this.end=new n.EventEmitter}return t.prototype.play=function(t,e,o){if(!this.flip||this.flip.horizontal!==o.horizontal||this.flip.vertical!==o.vertical){this.flip=o;var i=e.type||"slide",r=et[i];if(r){var a=r(this.getDirection(o,e));this.playStates(t,a,e)}else if(Object(n.isDevMode)())throw new Error('Unsupported animation type: "'+i+'". The supported types are slide, expand, fade and zoom.')}},t.prototype.ngOnDestroy=function(){this.stopPlayer()},t.prototype.playStates=function(t,e,o){var i=this;this.stopPlayer();var n=o.duration||100,r=this.animationBuilder.build([Object(L.style)(e.start),Object(L.animate)(n+"ms ease-in",Object(L.style)(e.end))]),a=this.player=r.create(t);a.onDone((function(){i.end.emit(),i.stopPlayer()})),this.start.emit(),a.play()},t.prototype.getDirection=function(t,e){var o=e.direction||"down";return t.horizontal&&("left"===o?o="right":"right"===o&&(o="left")),t.vertical&&("down"===o?o="up":"up"===o&&(o="down")),o},t.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},t=Object(i.__decorate)([Object(n.Injectable)(),Object(i.__metadata)("design:paramtypes",[L.AnimationBuilder])],t)}(),it={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635939378,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},nt={left:-1e4,top:0},rt=function(){function t(t,e,o,i,r,a,s,p,c){this.container=t,this._alignService=e,this.domService=o,this._positionService=i,this._resizeService=r,this._scrollableService=a,this.animationService=s,this._renderer=p,this._zone=c,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=nt,this.anchorViewportLeave=new n.EventEmitter,this.close=new n.EventEmitter,this.open=new n.EventEmitter,this.positionChange=new n.EventEmitter,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,Object(B.validatePackage)(it),this._renderer.addClass(t.nativeElement,"k-animation-container"),this.updateFixedClass()}return t.prototype.ngOnInit=function(){this.reposition=this.reposition.bind(this),this._resizeService.subscribe(this.reposition),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this)),this.currentOffset=nt,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass()},t.prototype.ngOnChanges=function(t){t.copyAnchorStyles&&this.copyFontStyles(),t.positionMode&&this.updateFixedClass()},t.prototype.ngAfterViewInit=function(){var t=this;this.reposition(),this.animate||this.resolvedPromise.then((function(){t.onAnimationEnd()}))},t.prototype.ngAfterViewChecked=function(){var t=this;this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular((function(){t.unsubscribeReposition(),t.repositionSubscription=Object(R.from)(t.resolvedPromise).subscribe(t.reposition)}))},t.prototype.ngOnDestroy=function(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()},t.prototype.onResize=function(){this.reposition()},t.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},t.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(t.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(t){this.setContainerStyle("left",t.left+"px"),this.setContainerStyle("top",t.top+"px"),this._currentOffset=t},enumerable:!0,configurable:!0}),t.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},t.prototype.reposition=function(){var t=this;if(Object(E.isDocumentAvailable)()){var e,o,i,n,r,a,s=this.position(),p=s.flip,c=s.offset;(!this.currentOffset||(e=this.currentOffset,o=c,i=e.left,n=e.top,r=o.left,a=o.top,Math.abs(i-r)>=1||Math.abs(n-a)>=1))&&(this.currentOffset=c,Object(E.hasObservers)(this.positionChange)&&this._zone.run((function(){return t.positionChange.emit({offset:c,flip:p})}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,p),this.resizeSensor.acceptSize()}},t.prototype.position=function(){var t=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:t,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},t.prototype.onScroll=function(t){var e=this,o=Object(E.hasObservers)(this.anchorViewportLeave);t||!o?this.reposition():o&&this._zone.run((function(){e.anchorViewportLeave.emit()}))},t.prototype.copyFontStyles=function(){var t=this;this.anchor&&this.copyAnchorStyles&&this.domService.getFontStyles(this.anchor).forEach((function(e){return t.setContainerStyle(e.key,e.value)}))},t.prototype.updateFixedClass=function(){var t="fixed"===this.positionMode?"addClass":"removeClass";this._renderer[t](this.container.nativeElement,"k-animation-container-fixed")},t.prototype.setContainerStyle=function(t,e){this._renderer.setStyle(this.container.nativeElement,t,e)},t.prototype.unsubscribeReposition=function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()},Object(i.__decorate)([Object(n.Input)(),Object(i.__metadata)("design:type",Object)],t.prototype,"animate",void 0),Object(i.__decorate)([Object(n.Input)(),Object(i.__metadata)("design:type",n.ElementRef)],t.prototype,"anchor",void 0),Object(i.__decorate)([Object(n.Input)(),Object(i.__metadata)("design:type",Object)],t.prototype,"anchorAlign",void 0),Object(i.__decorate)([Object(n.Input)(),Object(i.__metadata)("design:type",Object)],t.prototype,"collision",void 0),Object(i.__decorate)([Object(n.Input)(),Object(i.__metadata)("design:type",Object)],t.prototype,"popupAlign",void 0),Object(i.__decorate)([Object(n.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"copyAnchorStyles",void 0),Object(i.__decorate)([Object(n.Input)(),Object(i.__metadata)("design:type",Object)],t.prototype,"popupClass",void 0),Object(i.__decorate)([Object(n.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"positionMode",void 0),Object(i.__decorate)([Object(n.Input)(),Object(i.__metadata)("design:type",Object)],t.prototype,"offset",void 0),Object(i.__decorate)([Object(n.Input)(),Object(i.__metadata)("design:type",Object)],t.prototype,"margin",void 0),Object(i.__decorate)([Object(n.Output)(),Object(i.__metadata)("design:type",n.EventEmitter)],t.prototype,"anchorViewportLeave",void 0),Object(i.__decorate)([Object(n.Output)(),Object(i.__metadata)("design:type",n.EventEmitter)],t.prototype,"close",void 0),Object(i.__decorate)([Object(n.Output)(),Object(i.__metadata)("design:type",n.EventEmitter)],t.prototype,"open",void 0),Object(i.__decorate)([Object(n.Output)(),Object(i.__metadata)("design:type",n.EventEmitter)],t.prototype,"positionChange",void 0),Object(i.__decorate)([Object(n.ViewChild)("container",{static:!0}),Object(i.__metadata)("design:type",n.ElementRef)],t.prototype,"contentContainer",void 0),Object(i.__decorate)([Object(n.ViewChild)(E.ResizeSensorComponent,{static:!0}),Object(i.__metadata)("design:type",E.ResizeSensorComponent)],t.prototype,"resizeSensor",void 0),t=Object(i.__decorate)([Object(n.Component)({exportAs:"kendo-popup",providers:[$,ot,K,J,Q,tt],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" #container>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n <kendo-resize-sensor [rateLimit]="100" (resize)="onResize()">\n </kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[n.ElementRef,$,K,J,Q,tt,ot,n.Renderer2,n.NgZone])],t)}(),at=new n.InjectionToken("Popup Container"),st=function(){function t(t,e,o,i){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=o,this.container=i}return Object.defineProperty(t.prototype,"rootViewContainer",{get:function(){var t=this.applicationRef.components||[];if(t[0])return t[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!0,configurable:!0}),t.prototype.open=function(t){void 0===t&&(t={});var e=this.contentFrom(t.content),o=e.component,i=e.nodes,n=this.appendPopup(i,t.appendTo),r=n.instance;this.projectComponentInputs(n,t),n.changeDetectorRef.detectChanges(),o&&o.changeDetectorRef.detectChanges();var a=this.getComponentRootNode(n);return{close:function(){var t;o&&o.destroy(),n.destroy(),(t=a)&&t.parentNode&&t.parentNode.removeChild(t)},content:o,popup:n,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:a,popupOpen:r.open,popupPositionChange:r.positionChange}},t.prototype.appendPopup=function(t,e){var o=this.createComponent(rt,t,e);return e||this.rootViewContainerNode.appendChild(this.getComponentRootNode(o)),o},t.prototype.getComponentRootNode=function(t){return t.location.nativeElement},t.prototype.getComponentFactory=function(t){return this.componentFactoryResolver.resolveComponentFactory(t)},t.prototype.createComponent=function(t,e,o){var i=this.getComponentFactory(t);if(o)return o.createComponent(i,void 0,this.injector,e);var n=i.create(this.injector,e);return this.applicationRef.attachView(n.hostView),n},t.prototype.projectComponentInputs=function(t,e){return Object.getOwnPropertyNames(e).filter((function(t){return"content"!==t||e.content instanceof n.TemplateRef})).map((function(o){t.instance[o]=e[o]})),t},t.prototype.contentFrom=function(t){if(!t||t instanceof n.TemplateRef)return{component:null,nodes:[[]]};var e=this.createComponent(t);return{component:e,nodes:[e?[e.location.nativeElement]:[]]}},t=Object(i.__decorate)([Object(n.Injectable)(),Object(i.__param)(3,Object(n.Inject)(at)),Object(i.__param)(3,Object(n.Optional)()),Object(i.__metadata)("design:paramtypes",[n.ApplicationRef,n.ComponentFactoryResolver,n.Injector,n.ElementRef])],t)}(),pt=[rt],ct=function(){function t(){}return t=Object(i.__decorate)([Object(n.NgModule)({declarations:[pt],entryComponents:[pt],exports:[pt],imports:[V.CommonModule,E.ResizeSensorModule],providers:[st]})],t)}()},function(t,e){t.exports=a},function(t,e,o){"use strict";o.r(e),o.d(e,"setScriptKey",(function(){return c})),o.d(e,"validatePackage",(function(){return l}));var i,n,r=["EMfOwhq=","z3jVDxbfBMq=","B2jQzwn0","u2vLia==","BKDQzKK=","zNvUy3rPB24=","zgf0yq==","D1rPsKq=","z2v0","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DgLTzxn0yw1W","y29Kzq==","DhLWzq==","C2v0","DMvYC2LVBG==","ChjVzhvJDenVzgvZ","u3PgAeu=","BMfTzq==","sg94tgG=","zun0Beq=","z3jVDxa=","ChjVzhvJDhm=","CgfYC2u=","BfP2zKS=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","Cfj6wKC=","tM8GBgLJzw5ZzsbMB3vUzc4k","ChjVzhvJDe5HBwu=","uwrAy0q=","BefHr0m=","t3jquwq=","s1Ldrvi=","CNvlCgC=","AgfZ","zxHWAxj5rgf0zq==","CgfJA2fNzu5HBwu=","y3LqC08=","CMr1Aui=","CNvHzve=","zg9JC1vYBa==","uhjVz3jLC3mG","ChvIBgLZAerHDgu=","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","D2fYBG==","B3nTvxa=","swTrwfO=","CLfMrLm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","whv2wMO=","rLbJyLa=","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","C2nYAxb0s2v5","BgLJzw5ZAw5Nrg9JC1vYBa==","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","EfbArNi=","zMLUza==","Dw5KzwzPBMvK","Dg9mB2nHBgvtDhjPBMC=","BgvUz3rO"];i=r,n=131,function(t){for(;--t;)i.push(i.shift())}(++n);var a=function(t,e){var o=r[t-=0];if(void 0===a.eVebMg){a.JsjtEd=function(t){for(var e=function(t){for(var e,o,i=String(t).replace(/=+$/,""),n="",r=0,a=0;o=i.charAt(a++);~o&&(e=r%4?64*e+o:o,r++%4)?n+=String.fromCharCode(255&e>>(-2*r&6)):0)o="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(o);return n}(t),o=[],i=0,n=e.length;i<n;i++)o+="%"+("00"+e.charCodeAt(i).toString(16)).slice(-2);return decodeURIComponent(o)},a.rqrXoU={},a.eVebMg=!0}var i=a.rqrXoU[t];return void 0===i?(o=a.JsjtEd(o),a.rqrXoU[t]=o):o=i,o},s={data:' {"timestamp":1635163540,"products":[{"trial":false,"code":"KENDOUIREACT","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUICOMPLETE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIVUE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIANGULAR","licenseExpirationDate":1642770000}],"integrity":"Iq+/hmrfWBiuOSBY/c3zb/zGgBg="} '},p=new Map;function c(t){}function l(t){if(p[a("0x14")](t[a("0x4")])){if(a("0x35")==a("0x35"))return p[a("0x36")](t[a("0x4")])}var e,o=t[a("0x1")]?" v"+t[a("0x1")]:"",i=t[a("0x4")]+o,n=JSON[a("0x9")](s[a("0x34")]),r=!n[a("0x26")]&&!n[a("0x38")],c=n[a("0x26")]&&typeof KendoLicensing===a("0x2b"),l=function(t,e){var o=t[a("0x8")];if(!o||!o[a("0x2d")]){if(a("0x11")==a("0x11"))return null}var i=new Set(e);return o[a("0x2a")]((function(t){if(a("0xa")!==a("0x18"))return i[a("0x14")](t[a("0x39")])}))}(n,t[a("0x2")]);if(r||c)if(a("0x29")!=a("0x29")){}else e={type:0,packageName:i,docsUrl:t[a("0x27")]};else if(a("0xf")===a("0x24")){}else if(l){if(a("0x12")!=a("0x12")){}else if(l[a("0x37")]<t[a("0x1c")])if(a("0x21")===a("0x32")){}else e={type:2,packageName:i,publishDate:u(t[a("0x1c")]),expiryDate:u(l[a("0x37")]),docsUrl:t[a("0x27")]}}else if(a("0x6")!=a("0x6")){}else e={type:1,packageName:i,docsUrl:t[a("0x27")]};if(e&&typeof console===a("0x30"))if(a("0x5")===a("0x3")){}else{var h=a("0x1b")+t[a("0xe")],d=typeof console[a("0x7")]===a("0x33");if(d)if(a("0xc")!=a("0xc")){}else console[a("0x7")](h);else if(a("0x17")!=a("0x17")){}else console[a("0x1e")](h);if(console[a("0x1e")](function(t){var e=a("0x28")+t[a("0x16")]+"\n";if(2===t[a("0x3a")])if(a("0x20")!=a("0x20")){}else e+=a("0x25")+t[a("0x15")][a("0x2c")]()+a("0xb")+t[a("0x1c")][a("0x2c")]()+".\n";else if(0===t[a("0x3a")])if(a("0x13")!==a("0x10"))e+=a("0xd");else{}else if(1===t[a("0x3a")])if(a("0x2e")===a("0x23")){}else e+=a("0x1d");return e+=a("0x31")+t[a("0x1a")]+a("0x22")}(e)),d)if(a("0x1f")!==a("0x19"))console[a("0x2f")]();else{}}var f=!e;return p[a("0x0")](t[a("0x4")],f),f}function u(t){return new Date(1e3*t)}},function(t,e){t.exports=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(6),a=o(3),s=o(106),p=o(33),c=function(t){return void 0!==t&&!t},l=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),e.prototype.toggleVisibility=function(){this.options.visible=c(this.options.visible),this.notify()},e.prototype.togglePointVisibility=function(t){var e=this.options.pointVisibility=this.options.pointVisibility||{};e[t]=c(e[t]),this.notify()},Object.defineProperty(e.prototype,"seriesTooltipTemplateRef",{get:function(){if(this.seriesTooltip)return this.seriesTooltip.seriesTooltipTemplateRef},enumerable:!0,configurable:!0}),i.__decorate([n.ContentChild(p.SeriesTooltipComponent,{static:!1}),i.__metadata("design:type",p.SeriesTooltipComponent)],e.prototype,"seriesTooltip",void 0),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,providers:[a.ConfigurationService],selector:"kendo-chart-series-item",template:""}),i.__metadata("design:paramtypes",[a.ConfigurationService,r.CollectionService])],e)}(s.SeriesItemComponentGenerated);e.SeriesItemComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=o(11),s=o(108),p=o(5),c=function(t){return t.fontWeight+" "+t.fontSize+" "+t.fontFamily},l=function(t){return window.getComputedStyle(t).backgroundColor},u=function(t){function e(e){var o=t.call(this,e)||this;return o.loaded=!1,o}return i.__extends(e,t),e.prototype.loadTheme=function(){!this.loaded&&p.isDocumentAvailable()&&(this.readTheme()||this.readDefaultTheme(),this.loaded=!0,this.next())},e.prototype.readTheme=function(){this.createElement();var t=this.queryColor("accent")!==this.queryColor("accent-contrast");try{t&&(this.push(a.chartBaseTheme()),this.setColors(),this.setFonts(),this.setSeriesColors())}finally{this.destroyElement()}return t},e.prototype.readDefaultTheme=function(){this.push(s.chartDefaultTheme())},e.prototype.createElement=function(){var t=this.element=document.createElement("div");t.style.display="none",t.innerHTML='\n <div class="k-var--accent"></div>\n <div class="k-var--accent-contrast"></div>\n <div class="k-var--base"></div>\n <div class="k-var--background"></div>\n\n <div class="k-var--normal-background"></div>\n <div class="k-var--normal-text-color"></div>\n <div class="k-var--hover-background"></div>\n <div class="k-var--hover-text-color"></div>\n <div class="k-var--selected-background"></div>\n <div class="k-var--selected-text-color"></div>\n <div class="k-var--chart-error-bars-background"></div>\n <div class="k-var--chart-notes-background"></div>\n <div class="k-var--chart-notes-border"></div>\n <div class="k-var--chart-notes-lines"></div>\n <div class="k-var--chart-crosshair-background"></div>\n\n <div class="k-var--chart-inactive"></div>\n <div class="k-var--chart-major-lines"></div>\n <div class="k-var--chart-minor-lines"></div>\n <div class="k-var--chart-area-opacity"></div>\n <div class="k-var--chart-area-inactive-opacity"></div>\n <div class="k-var--chart-line-inactive-opacity"></div>\n\n <div class="k-widget k-chart">\n <div class="k-var--chart-font"></div>\n <div class="k-var--chart-title-font"></div>\n <div class="k-var--chart-pane-title-font"></div>\n <div class="k-var--chart-label-font"></div>\n </div>\n\n <div class="k-var--series-unset"></div>\n <div class="k-var--series">\n '+function(){for(var t='\n <div class="k-var--series-a"></div>\n <div class="k-var--series-b"></div>\n <div class="k-var--series-c"></div>\n <div class="k-var--series-d"></div>\n <div class="k-var--series-e"></div>\n <div class="k-var--series-f"></div>\n ',e=0;e<30;e++)t+='\n <div class="k-var--series-'+(e+1)+'"></div>';return t}()+"\n </div>\n",document.body.appendChild(t)},e.prototype.destroyElement=function(){this.element&&(document.body.removeChild(this.element),this.element=void 0)},e.prototype.setStyle=function(t,e){this.set(t,e)},e.prototype.setColors=function(){this.mapColor("axisDefaults.crosshair.color","chart-crosshair-background"),this.mapColor("axisDefaults.labels.color","normal-text-color"),this.mapColor("axisDefaults.line.color","chart-major-lines"),this.mapColor("axisDefaults.majorGridLines.color","chart-major-lines"),this.mapColor("axisDefaults.minorGridLines.color","chart-minor-lines"),this.mapColor("axisDefaults.notes.icon.background","chart-notes-background"),this.mapColor("axisDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("axisDefaults.notes.line.color","chart-notes-lines"),this.mapColor("axisDefaults.title.color","normal-text-color"),this.mapColor("chartArea.background","background"),this.mapColor("legend.inactiveItems.labels.color","chart-inactive"),this.mapColor("legend.inactiveItems.markers.color","chart-inactive"),this.mapColor("legend.labels.color","normal-text-color"),this.mapColor("seriesDefaults.boxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.boxPlot.mean.color","base"),this.mapColor("seriesDefaults.boxPlot.median.color","base"),this.mapColor("seriesDefaults.boxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.bullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.candlestick.downColor","normal-text-color"),this.mapColor("seriesDefaults.candlestick.line.color","normal-text-color"),this.mapColor("seriesDefaults.errorBars.color","chart-error-bars-background"),this.mapColor("seriesDefaults.horizontalWaterfall.line.color","chart-major-lines"),this.mapColor("seriesDefaults.icon.border.color","chart-major-lines"),this.mapColor("seriesDefaults.labels.background","background"),this.mapColor("seriesDefaults.labels.color","normal-text-color"),this.mapColor("seriesDefaults.notes.icon.background","chart-notes-background"),this.mapColor("seriesDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("seriesDefaults.notes.line.color","chart-notes-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.mean.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.median.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.verticalBullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.waterfall.line.color","chart-major-lines"),this.mapColor("title.color","normal-text-color");var t=parseFloat(this.queryStyle("chart-area-opacity").opacity);isNaN(t)||(this.setStyle("seriesDefaults.area.opacity",t),this.setStyle("seriesDefaults.radarArea.opacity",t),this.setStyle("seriesDefaults.verticalArea.opacity",t),this.setStyle("seriesDefaults.labels.opacity",t)),this.setInactiveOpacity(["area","verticalArea"],"chart-area-inactive-opacity"),this.setInactiveOpacity(["line","verticalLine"],"chart-line-inactive-opacity")},e.prototype.setInactiveOpacity=function(t,e){var o=this,i=parseFloat(this.queryStyle(e).opacity);!isNaN(i)&&i<1&&t.forEach((function(t){return o.setStyle("seriesDefaults."+t+".highlight.inactiveOpacity",i)}))},e.prototype.setFonts=function(){var t=c(this.queryStyle("chart-font")),e=c(this.queryStyle("chart-title-font")),o=c(this.queryStyle("chart-pane-title-font")),i=c(this.queryStyle("chart-label-font"));this.setStyle("axisDefaults.labels.font",i),this.setStyle("axisDefaults.notes.label.font",t),this.setStyle("axisDefaults.title.font",t),this.setStyle("legend.labels.font",t),this.setStyle("seriesDefaults.labels.font",i),this.setStyle("seriesDefaults.notes.label.font",t),this.setStyle("title.font",e),this.setStyle("paneDefaults.title.font",o)},e.prototype.setSeriesColors=function(){var t=this.element,e=[].slice.call(t.querySelectorAll(".k-var--series div")),o=l(t.querySelector(".k-var--series-unset")),i=e.reduce((function(t,e){var i=function(t){var e=t.match(/series-([a-z])$/);if(null!==e)return e[1].toLowerCase().charCodeAt(0)-"a".charCodeAt(0);var o=t.split("--series-")[1];return parseInt(o,10)-1}(e.className),n=l(e);return n!==o&&(t[i]=n),t}),[]);this.setStyle("seriesColors",i)},e.prototype.mapColor=function(t,e){this.setStyle(t,this.queryColor(e))},e.prototype.queryColor=function(t){return this.queryStyle(t).backgroundColor},e.prototype.queryStyle=function(t){var e=this.element.querySelector(".k-var--"+t);return window.getComputedStyle(e)},e=i.__decorate([n.Injectable(),i.__metadata("design:paramtypes",[n.NgZone])],e)}(r.ConfigurationService);e.ThemeService=u},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(12),a=o(17),s=o(5),p=o(22),c=o(42),l=function(){function t(){}return t=i.__decorate([n.NgModule({declarations:[c.CHART_DIRECTIVES],exports:[c.CHART_DIRECTIVES],imports:[r.CommonModule,a.PopupModule,s.ResizeSensorModule],providers:[p.ThemeService]})],t)}();e.ChartModule=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(2),a=o(2),s=o(2),p=o(8),c=o(13),l=o(19),u=o(25),h=o(100),d=o(3),f=o(43),g=o(27),v=o(62),y=o(21),_=o(22),m=o(109),b=o(10),x=o(34),S=o(37),C=o(64),w=o(29),A=o(15),O=o(11),I=o(1),k=o(18),P=o(5),j=o(31);o(111);var T=o(32);function M(t){return t.observers.length>0}var E=function(t){function e(e,o,i,n,r,a,p,c,h){var d=t.call(this,e)||this;return d.configurationService=e,d.themeService=o,d.element=i,d.intl=n,d.localizationService=r,d.ngZone=a,d.instanceEventService=p,d.changeDetector=c,d.renderer=h,d.legendItemClick=new s.EventEmitter,d.resizeRateLimit=10,d.theme=null,d.suppressTransitions=!1,d.rtl=!1,d.hostClasses=["k-chart","k-widget"],l.validatePackage(u.packageMetadata),d.themeService.loadTheme(),d.refreshWait(),d}return i.__extends(e,t),e.prototype.ngOnInit=function(){var t=this;this.element&&(this.hostClasses.forEach((function(e){t.renderer.addClass(t.element.nativeElement,e)})),this.renderer.setStyle(this.element.nativeElement,"position","relative"))},e.prototype.ngAfterViewInit=function(){var t=this;this.canRender&&this.ngZone.runOutsideAngular((function(){var e=t.renderer.listen(t.surfaceElement.nativeElement,"mouseleave",t.chartMouseleave.bind(t));t.domSubscriptions=function(){e()}})),this.setDirection(),this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.subscriptions.add(this.localizationService.changes.subscribe(this.rtlChange.bind(this)))},e.prototype.ngAfterViewChecked=function(){var t=this;this.instance&&this.autoResize&&this.ngZone.runOutsideAngular((function(){clearTimeout(t.resizeTimeout),t.resizeTimeout=setTimeout((function(){t.resize()}),0)}))},e.prototype.ngOnChanges=function(t){var e=this.configurationService.store;j.copyChanges(t,e),e.popupSettings=null,this.configurationService.push(e)},e.prototype.notifyChanges=function(t){this.ngOnChanges(T.toSimpleChanges(t))},e.prototype.ngOnDestroy=function(){this.destroyed=!0,this.subscription&&this.subscription.unsubscribe(),this.domSubscriptions&&(this.domSubscriptions(),this.domSubscriptions=null),this.instance&&(this.instance.destroy(),this.instance=null),this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.resizeTimeout),clearTimeout(this.redrawTimeout)},e.prototype.createInstance=function(t,e){this.instance=new O.Chart(t,this.options,this.theme,{intlService:this.intl,observer:e,rtl:this.rtl,sender:this})},e.prototype.exportImage=function(t){return void 0===t&&(t={}),I.exportImage(this.exportVisual(t),t)},e.prototype.exportSVG=function(t){return void 0===t&&(t={}),I.exportSVG(this.exportVisual(t),t)},e.prototype.exportVisual=function(t){return void 0===t&&(t={}),this.instance.exportVisual(t)},e.prototype.findAxisByName=function(t){if(this.instance)return this.instance.findAxisByName(t)},e.prototype.findPaneByIndex=function(t){if(this.instance)return this.instance.findPaneByIndex(t)},e.prototype.findPaneByName=function(t){if(this.instance)return this.instance.findPaneByName(t)},e.prototype.getPlotArea=function(){if(this.instance)return this.instance.plotArea()},e.prototype.toggleHighlight=function(t,e){this.instance&&this.instance.toggleHighlight(t,e)},e.prototype.hideTooltip=function(){this.instance&&this.instance.hideTooltip()},e.prototype.showTooltip=function(t){this.instance&&this.instance.showTooltip(t)},e.prototype.init=function(){if(this.canRender){var t=this.surfaceElement.nativeElement,e=new m.ChartInstanceObserver(this);this.createInstance(t,e)}},e.prototype.resize=function(){this.instance&&this.instance.resize()},e.prototype.onResize=function(t){this.autoResize&&this.resize()},e.prototype.onLegendItemClick=function(t){var e=this;this.run((function(){var o=new f.LegendItemClickEvent(t,e);if(e.legendItemClick.emit(o),!o.isDefaultPrevented()){var i=e.seriesComponents.toArray()[t.series.index];if(!i)return;void 0===t.pointIndex?i.toggleVisibility():i.togglePointVisibility(t.pointIndex),e.suppressTransitions=!0}}),M(this.legendItemClick),this.seriesComponents.length>0)},e.prototype.onInit=function(t){this.instance=t.sender},e.prototype.onRender=function(t){var e=this,o=this.getDonutCenterStyle();this.run((function(){var i=new w.RenderEvent(t,e);e.surface=t.sender.surface,e.render.emit(i),e.donutCenterStyle=o}),M(this.render),this.donutCenterStyle!==o)},e.prototype.onShowTooltip=function(t){var e=this;this.run((function(){t.crosshair?e.crossahirTooltips.show(t):e.tooltipInstance.show(t)}),!t.crosshair,!0)},e.prototype.onHideTooltip=function(t){t.crosshair?this.crossahirTooltips.active&&(this.crossahirTooltips.hide(),this.detectChanges()):this.tooltipInstance.active&&(this.tooltipInstance.hide(),this.detectChanges())},e.prototype.trigger=function(t,e){if("resize"!==t){var o=this.activeEmitter(t);if(o){var i=this.instanceEventService.create(t,e,this);return this.run((function(){o.emit(i)})),i.isDefaultPrevented&&i.isDefaultPrevented()}}},e.prototype.requiresHandlers=function(t){for(var e=0;e<t.length;e++)if(this.activeEmitter(t[e]))return!0;return!1},e.prototype.refresh=function(){if(clearTimeout(this.redrawTimeout),this.updateDirection(),this.crossahirTooltips.createCrosshairTooltips(this.options),this.setChartAreaSize(),this.instance){var t=this.options.transitions;this.suppressTransitions&&(this.options.transitions=!1),this.updateOptions(),this.suppressTransitions&&(this.options.transitions=t,this.suppressTransitions=!1)}else this.init()},e.prototype.setChartAreaSize=function(){if(this.element){var t=this.element.nativeElement,e=this.options.chartArea||{};e.width&&(t.style.width=e.width+"px"),e.height&&(t.style.height=e.height+"px")}},e.prototype.updateOptions=function(){this.instance.setOptions(this.options)},e.prototype.tooltipMouseleave=function(t){var e=t.relatedTarget,o=this.element.nativeElement;!this.instance||e&&C.hasParent(e,o)||this.instance.hideElements()},e.prototype.chartMouseleave=function(t){var e=t.relatedTarget,o=this.element.nativeElement;!this.instance||e&&(this.tooltipInstance.containsElement(e)||C.hasParent(e,o))||this.instance.handlingTap||this.instance.hideElements()},Object.defineProperty(e.prototype,"canRender",{get:function(){return P.isDocumentAvailable()&&Boolean(this.surfaceElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autoResize",{get:function(){return this.resizeRateLimit>0},enumerable:!0,configurable:!0}),e.prototype.activeEmitter=function(t){var e=this[t];if(e&&e.emit&&M(e))return e},e.prototype.getDonutCenterStyle=function(){if(this.instance&&this.options&&this.options.series){var t=this.options.series[0],e=this.instance._plotArea.charts;if(t&&"donut"===t.type&&e&&0!==e[0].points.length){var o=e[0].points[0],i=o.box.center(),n=o.sector.innerRadius,r=i.y-n,a=2*n;return{height:a+"px",left:i.x-n+"px",top:r+"px",width:a+"px"}}}},e.prototype.refreshWait=function(){var t=this;this.ngZone.runOutsideAngular((function(){t.subscription=p.combineLatest(t.configurationService.onChange$,t.themeService.onChange$).pipe(c.tap((function(e){t.options=e[0],t.theme=e[1]})),c.auditTime(d.THROTTLE_MS)).subscribe((function(){t.refresh()}))}))},e.prototype.run=function(t,e,o){void 0===e&&(e=!0),e?(o&&this.changeDetector.markForCheck(),this.ngZone.run(t)):(t(),o&&this.detectChanges())},e.prototype.detectChanges=function(){this.destroyed||this.changeDetector.detectChanges()},e.prototype.intlChange=function(){this.instance&&this.deferredRedraw()},e.prototype.rtlChange=function(){this.instance&&this.rtl!==this.isRTL&&this.deferredRedraw()},e.prototype.deferredRedraw=function(){var t=this;this.ngZone.runOutsideAngular((function(){clearTimeout(t.redrawTimeout),t.redrawTimeout=setTimeout((function(){t.updateDirection(),t.instance.noTransitionsRedraw()}),0)}))},e.prototype.updateDirection=function(){var t=this.isRTL;this.rtl!==t&&(this.setDirection(),this.instance&&this.instance.setDirection(t))},e.prototype.setDirection=function(){this.rtl=this.isRTL,this.element&&this.renderer.setAttribute(this.element.nativeElement,"dir",this.rtl?"rtl":"ltr")},Object.defineProperty(e.prototype,"isRTL",{get:function(){return Boolean(this.localizationService.rtl)},enumerable:!0,configurable:!0}),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],e.prototype,"legendItemClick",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Number)],e.prototype,"resizeRateLimit",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Object)],e.prototype,"popupSettings",void 0),i.__decorate([r.ContentChildren(y.SeriesItemComponent,{descendants:!0}),i.__metadata("design:type",r.QueryList)],e.prototype,"seriesComponents",void 0),i.__decorate([n.ContentChild(v.DonutCenterTemplateDirective,{static:!1}),i.__metadata("design:type",v.DonutCenterTemplateDirective)],e.prototype,"donutCenterTemplate",void 0),i.__decorate([r.ViewChild(x.TooltipPopupComponent,{static:!0}),i.__metadata("design:type",x.TooltipPopupComponent)],e.prototype,"tooltipInstance",void 0),i.__decorate([r.ViewChild(S.CrosshairTooltipsContainerComponent,{static:!0}),i.__metadata("design:type",S.CrosshairTooltipsContainerComponent)],e.prototype,"crossahirTooltips",void 0),i.__decorate([r.ViewChild("surface",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"surfaceElement",void 0),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,exportAs:"kendoChart",providers:[d.ConfigurationService,b.TooltipTemplateService,g.InstanceEventService,k.LocalizationService,{provide:k.L10N_PREFIX,useValue:"kendo.chart"}],selector:"kendo-chart",template:'\n <div #surface class="k-chart-surface"></div>\n <kendo-chart-crosshair-tooltips-container [popupSettings]="popupSettings">\n </kendo-chart-crosshair-tooltips-container>\n <kendo-chart-tooltip-popup (leave)="tooltipMouseleave($event)" [popupSettings]="popupSettings">\n </kendo-chart-tooltip-popup>\n <kendo-resize-sensor (resize)="onResize($event)" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n <div class="k-chart-donut-center" [ngStyle]="donutCenterStyle" *ngIf="donutCenterStyle && donutCenterTemplate">\n <ng-template [ngTemplateOutlet]="donutCenterTemplate.templateRef"></ng-template>\n </div>\n '}),i.__metadata("design:paramtypes",[d.ConfigurationService,_.ThemeService,a.ElementRef,A.IntlService,k.LocalizationService,n.NgZone,g.InstanceEventService,n.ChangeDetectorRef,n.Renderer2])],e)}(h.ChartComponentGenerated);e.ChartComponent=E},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-charts",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635940682,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(e,o){var i=t.call(this,o)||this;return i.series=e.series,i.seriesIndex=e.seriesIndex,i.pointIndex=e.pointIndex,i.text=e.text,i}return i.__extends(e,t),e}(o(9).PreventableEvent);e.LegendEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(44),n=o(45),r=o(46),a=o(47),s=o(48),p=o(101),c=o(49),l=o(50),u=o(102),h=o(51),d=o(52),f=o(53),g=o(103),v=o(29),y=o(54),_=o(55),m=o(56),b=o(57),x=o(58),S=o(104),C=o(105),w=o(59),A=o(60),O=o(61),I={axisLabelClick:i.AxisLabelClickEvent,drag:n.DragEvent,dragEnd:r.DragEndEvent,dragStart:a.DragStartEvent,legendItemHover:s.LegendItemHoverEvent,legendItemLeave:p.LegendItemLeaveEvent,noteClick:c.NoteClickEvent,noteHover:l.NoteHoverEvent,noteLeave:u.NoteLeaveEvent,paneRender:h.PaneRenderEvent,plotAreaClick:d.PlotAreaClickEvent,plotAreaHover:f.PlotAreaHoverEvent,plotAreaLeave:g.PlotAreaLeaveEvent,render:v.RenderEvent,select:y.SelectEvent,selectEnd:_.SelectEndEvent,selectStart:m.SelectStartEvent,seriesClick:b.SeriesClickEvent,seriesHover:x.SeriesHoverEvent,seriesOver:S.SeriesOverEvent,seriesLeave:C.SeriesLeaveEvent,zoom:w.ZoomEvent,zoomEnd:A.ZoomEndEvent,zoomStart:O.ZoomStartEvent},k=function(){function t(){}return t.prototype.create=function(t,e,o){if(I[t])return new I[t](e,o)},t}();e.InstanceEventService=k},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(e,o){var i=t.call(this,o)||this;return i.category=e.category,i.dataItem=e.dataItem,i.series=e.series,i.value=e.value,i.visual=e.visual,i}return i.__extends(e,t),e}(o(7).BaseEvent);e.NoteEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(e,o){return t.call(this,o)||this}return i.__extends(e,t),e}(o(7).BaseEvent);e.RenderEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(e,o){var i=t.call(this,o)||this;return i.category=e.category,i.dataItem=e.dataItem,i.originalEvent=e.originalEvent,i.percentage=e.percentage,i.point=e.point,i.series=e.series,i.stackValue=e.stackValue,i.value=e.value,i}return i.__extends(e,t),e}(o(9).PreventableEvent);e.SeriesEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.copyChanges=function(t,e){for(var o in t)if(t.hasOwnProperty(o)){var i=t[o].currentValue;void 0===i?delete e[o]:e[o]=i}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(2);e.toSimpleChanges=function(t){var e={};for(var o in t)t.hasOwnProperty(o)&&(e[o]=new i.SimpleChange(null,t[o],!1));return e}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),Object.defineProperty(e.prototype,"seriesTooltipTemplateRef",{get:function(){return this.seriesTooltipTemplate},enumerable:!0,configurable:!0}),i.__decorate([n.ContentChild(n.TemplateRef,{static:!1}),i.__metadata("design:type",n.TemplateRef)],e.prototype,"seriesTooltipTemplate",void 0),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-tooltip",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(107).SeriesTooltipComponentGenerated);e.SeriesTooltipComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(35),a=o(36),s=o(110),p=o(63),c=o(64),l=o(10),u=o(17),h=o(65),d=o(18),f=function(t){function e(e,o,i,r){var a=t.call(this,e,i)||this;return a.popupService=e,a.templateService=o,a.localizationService=i,a.ngZone=r,a.seriesTooltipContext={},a.seriesSharedTooltipContext={},a.animate=!0,a.wrapperClass="k-chart-tooltip-wrapper",a.leave=new n.EventEmitter,a.popupClasses={},a}return i.__extends(e,t),e.prototype.show=function(e){var o;this.shared=e.shared,this.popupClasses=Object.assign(((o={})["k-chart-shared-tooltip"]=e.shared,o["k-chart-tooltip"]=!0,o[e.className]=!!e.className,o),this.classNames),e.shared?(this.seriesSharedTooltipTemplateRef=this.templateService.getSharedTemplate()||this.defaultSharedTooltipTemplate.templateRef,this.seriesSharedTooltipContext=this.sharedTemplateContext(e)):(this.seriesTooltipContext=new s.TooltipTemplatePoint(e.point,e.format),this.seriesTooltipTemplateRef=this.pointTemplateRef(e.point)),t.prototype.show.call(this,e)},e.prototype.containsElement=function(t){if(this.popupRef)return c.hasParent(t,this.popupRef.popupElement)},e.prototype.sharedTemplateContext=function(t){var e=t.points.filter((function(t){return void 0!==t.series.name})).length>0,o=t.series.length>1,i=1;return e&&i++,o&&i++,{category:t.category,categoryText:t.categoryText,colorMarker:o,colspan:i,nameColumn:e,points:this.wrapPoints(t.points,t.format)}},e.prototype.pointTemplateRef=function(t){return this.templateService.getTemplate(t.series.index)||this.defaultSeriesTooltipTemplate.templateRef},e.prototype.wrapPoints=function(t,e){for(var o=[],i=0;i<t.length;i++){var n=t[i],r=this.pointTemplateRef(n),a=((n.options||{}).tooltip||{}).format||e;o.push(new s.TooltipTemplatePoint(n,a,r))}return o},e.prototype.onInit=function(){var t=this;this.ngZone.runOutsideAngular((function(){t.mouseleaveSubscription=t.popupRef.popupElement.addEventListener("mouseleave",(function(e){t.leave.emit(e)}))})),this.popupRef.popupElement.className+=" "+this.wrapperClass},e.prototype.hide=function(){this.mouseleaveSubscription&&(this.mouseleaveSubscription(),this.mouseleaveSubscription=null),t.prototype.hide.call(this)},i.__decorate([n.ViewChild(r.SeriesTooltipTemplateDirective,{static:!1}),i.__metadata("design:type",r.SeriesTooltipTemplateDirective)],e.prototype,"defaultSeriesTooltipTemplate",void 0),i.__decorate([n.ViewChild(a.SharedTooltipTemplateDirective,{static:!1}),i.__metadata("design:type",a.SharedTooltipTemplateDirective)],e.prototype,"defaultSharedTooltipTemplate",void 0),i.__decorate([n.ViewChild("content",{static:!0}),i.__metadata("design:type",n.TemplateRef)],e.prototype,"templateRef",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"animate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"classNames",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"popupSettings",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"wrapperClass",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],e.prototype,"leave",void 0),e=i.__decorate([n.Component({providers:[u.PopupService,{provide:u.POPUP_CONTAINER,useFactory:h.bodyFactory}],selector:"kendo-chart-tooltip-popup",template:'\n <ng-template #content>\n <div [ngClass]="popupClasses" [ngStyle]="style">\n <ng-template [ngTemplateOutlet]="seriesTooltipTemplateRef" *ngIf="!shared"\n [ngTemplateOutletContext]="seriesTooltipContext">\n </ng-template>\n <ng-template [ngTemplateOutlet]="seriesSharedTooltipTemplateRef" *ngIf="shared"\n [ngTemplateOutletContext]="seriesSharedTooltipContext">\n </ng-template>\n </div>\n </ng-template>\n\n <ng-template kendoChartSeriesTooltipTemplate let-formattedValue="formattedValue">\n <span [innerHTML]="formattedValue"></span>\n </ng-template>\n <ng-template kendoChartSharedTooltipTemplate let-points="points" let-categoryText="categoryText" let-colspan="colspan" let-colorMarker="colorMarker" let-nameColumn="nameColumn" >\n <table>\n <tr><th [attr.colspan]=\'colspan\'> {{ categoryText }} </th></tr>\n <tr *ngFor="let point of points">\n <td *ngIf="colorMarker"><span class=\'k-chart-shared-tooltip-marker\' [style.background-color]=\'point.series.color\'></span></td>\n <td *ngIf="nameColumn">\n <ng-container *ngIf="point.series.name !== undefined">{{ point.series.name }}</ng-container>\n <ng-container *ngIf="point.series.name === undefined"> </ng-container>\n </td>\n <td>\n <ng-template [ngTemplateOutlet]="point.template"\n [ngTemplateOutletContext]="point">\n </ng-template>\n </td>\n </tr>\n </table>\n </ng-template>\n '}),i.__metadata("design:paramtypes",[u.PopupService,l.TooltipTemplateService,d.LocalizationService,n.NgZone])],e)}(p.BaseTooltip);e.TooltipPopupComponent=f},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(){function t(t){this.templateRef=t}return t=i.__decorate([n.Directive({selector:"[kendoChartSeriesTooltipTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],t)}();e.SeriesTooltipTemplateDirective=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(){function t(t){this.templateRef=t}return t=i.__decorate([n.Directive({selector:"[kendoChartSharedTooltipTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],t)}();e.SharedTooltipTemplateDirective=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(66),a=["categoryAxis","valueAxis","xAxis","yAxis"],s=function(){function t(){this.tooltipKeys=[],this.tooltipsMap={}}return t.prototype.show=function(t){for(var e=this.crossahirTooltipComponents.toArray(),o=t.axisName,i=t.axisIndex,n=0;n<e.length;n++)if(e[n].key===o+i){e[n].show(t);break}},t.prototype.hide=function(){for(var t=this.crossahirTooltipComponents.toArray(),e=0;e<t.length;e++)t[e].hide()},Object.defineProperty(t.prototype,"active",{get:function(){return this.tooltipKeys.length>0},enumerable:!0,configurable:!0}),t.prototype.createCrosshairTooltips=function(t){var e=this.mapTooltips(t),o=this.tooltipsMap;for(var i in o)e[i]||(this.removeTooltip(i),delete o[i]);for(var i in e)o[i]||(o[i]=e[i],this.tooltipKeys.push(i))},t.prototype.removeTooltip=function(t){for(var e=this.tooltipKeys,o=0;o<e.length;o++)if(e[o]===t){e.splice(o,1);break}},t.prototype.mapTooltips=function(t){for(var e={},o=0;o<a.length;o++)for(var i=this.axesCrosshairTooltipOptions(t,a[o]),n=0;n<i.length;n++){var r=i[n];e[r.name+r.index]=r}return e},t.prototype.axesCrosshairTooltipOptions=function(t,e){var o=[];if(t[e])for(var i=[].concat(t[e]),n=0;n<i.length;n++){var r=(i[n].crosshair||{}).tooltip;r&&r.visible&&o.push({index:n,name:e})}return o},i.__decorate([n.Input(),i.__metadata("design:type",Object)],t.prototype,"popupSettings",void 0),i.__decorate([n.ViewChildren(r.CrosshairTooltipComponent),i.__metadata("design:type",n.QueryList)],t.prototype,"crossahirTooltipComponents",void 0),t=i.__decorate([n.Component({selector:"kendo-chart-crosshair-tooltips-container",template:'\n <kendo-chart-crosshair-tooltip *ngFor="let key of tooltipKeys" [key]="key" [popupSettings]="popupSettings">\n </kendo-chart-crosshair-tooltip>\n '})],t)}();e.CrosshairTooltipsContainerComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(15),a=o(6),s=o(3),p=function(t){function e(e,o,i,n){var r=t.call(this,e,o,i,n)||this;return r.configurationService=e,r.collectionService=o,r}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"rangeLabels",void 0),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,providers:[s.ConfigurationService],selector:"kendo-chart-category-axis-item",template:""}),i.__param(3,n.Inject(n.LOCALE_ID)),i.__metadata("design:paramtypes",[s.ConfigurationService,a.CollectionService,r.IntlService,String])],e)}(o(126).CategoryAxisItemComponentGenerated);e.CategoryAxisItemComponent=p},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(127);e.WeekStartDay=i.WeekStartDay},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,"labels",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"culture",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"dateFormats",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"mirror",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"rotation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"skip",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"step",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-category-axis-item-labels",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(4).SettingsComponent);e.CategoryAxisLabelsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=o(94);e.PREFIX=new n.InjectionToken("configuration prefix");var s=function(t){function o(e,o,i){var n=t.call(this,i)||this;return n.rootService=e,n.prefix=o,n}return i.__extends(o,t),o.prototype.push=function(t){this.rootService.notify(new r.Change(this.prefix,t))},o.prototype.notify=function(t){t.key=this.prefix+(t.key?"."+t.key:""),this.rootService.notify(t)},o=i.__decorate([n.Injectable(),i.__param(0,n.Inject(a.RootConfigurationService)),i.__param(1,n.Inject(e.PREFIX)),i.__metadata("design:paramtypes",[a.RootConfigurationService,String,n.NgZone])],o)}(r.ConfigurationService);e.PrefixConfigurationService=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(24);e.ChartComponent=i.ChartComponent;var n=o(35),r=o(36),a=o(66),s=o(37),p=o(62),c=o(34),l=o(114);e.AxisDefaultsComponent=l.AxisDefaultsComponent;var u=o(116);e.AxisDefaultsCrosshairComponent=u.AxisDefaultsCrosshairComponent;var h=o(118);e.AxisDefaultsCrosshairTooltipComponent=h.AxisDefaultsCrosshairTooltipComponent;var d=o(120);e.AxisDefaultsLabelsComponent=d.AxisDefaultsLabelsComponent;var f=o(122);e.AxisDefaultsTitleComponent=f.AxisDefaultsTitleComponent;var g=o(124);e.CategoryAxisComponent=g.CategoryAxisComponent;var v=o(67);e.CategoryAxisCrosshairComponent=v.CategoryAxisCrosshairComponent;var y=o(68);e.CategoryAxisCrosshairTooltipComponent=y.CategoryAxisCrosshairTooltipComponent;var _=o(38);e.CategoryAxisItemComponent=_.CategoryAxisItemComponent;var m=o(40);e.CategoryAxisLabelsComponent=m.CategoryAxisLabelsComponent;var b=o(130);e.CategoryAxisRangeLabelsComponent=b.CategoryAxisRangeLabelsComponent;var x=o(69);e.CategoryAxisNotesComponent=x.CategoryAxisNotesComponent;var S=o(70);e.CategoryAxisNotesIconComponent=S.CategoryAxisNotesIconComponent;var C=o(71);e.CategoryAxisNotesLabelComponent=C.CategoryAxisNotesLabelComponent;var w=o(72);e.CategoryAxisSelectComponent=w.CategoryAxisSelectComponent;var A=o(73);e.CategoryAxisTitleComponent=A.CategoryAxisTitleComponent;var O=o(136);e.ChartAreaComponent=O.ChartAreaComponent;var I=o(138);e.LegendComponent=I.LegendComponent;var k=o(140);e.LegendInactiveItemsComponent=k.LegendInactiveItemsComponent;var P=o(142);e.LegendItemComponent=P.LegendItemComponent;var j=o(74);e.PaneComponent=j.PaneComponent;var T=o(144);e.PaneDefaultsComponent=T.PaneDefaultsComponent;var M=o(145);e.PaneDefaultsTitleComponent=M.PaneDefaultsTitleComponent;var E=o(146);e.PanesComponent=E.PanesComponent;var R=o(76);e.PanesTitleComponent=R.PanesTitleComponent;var D=o(149);e.PlotAreaComponent=D.PlotAreaComponent;var L=o(77);e.SeriesComponent=L.SeriesComponent;var B=o(152);e.SeriesDefaultsComponent=B.SeriesDefaultsComponent;var V=o(154);e.SeriesDefaultsLabelsComponent=V.SeriesDefaultsLabelsComponent;var z=o(156);e.SeriesDefaultsLabelsFromComponent=z.SeriesDefaultsLabelsFromComponent;var N=o(158);e.SeriesDefaultsLabelsToComponent=N.SeriesDefaultsLabelsToComponent;var F=o(160);e.SeriesDefaultsNotesComponent=F.SeriesDefaultsNotesComponent;var G=o(162);e.SeriesDefaultsNotesIconComponent=G.SeriesDefaultsNotesIconComponent;var H=o(164);e.SeriesDefaultsNotesLabelComponent=H.SeriesDefaultsNotesLabelComponent;var U=o(166);e.SeriesDefaultsTooltipComponent=U.SeriesDefaultsTooltipComponent;var W=o(78);e.SeriesErrorBarsComponent=W.SeriesErrorBarsComponent;var X=o(79);e.SeriesExtremesComponent=X.SeriesExtremesComponent;var Y=o(80);e.SeriesHighlightComponent=Y.SeriesHighlightComponent;var q=o(21);e.SeriesItemComponent=q.SeriesItemComponent;var K=o(81);e.SeriesLabelsComponent=K.SeriesLabelsComponent;var Z=o(82);e.SeriesLabelsFromComponent=Z.SeriesLabelsFromComponent;var $=o(83);e.SeriesLabelsToComponent=$.SeriesLabelsToComponent;var J=o(84);e.SeriesMarkersComponent=J.SeriesMarkersComponent;var Q=o(85);e.SeriesNotesComponent=Q.SeriesNotesComponent;var tt=o(86);e.SeriesNotesIconComponent=tt.SeriesNotesIconComponent;var et=o(87);e.SeriesNotesLabelComponent=et.SeriesNotesLabelComponent;var ot=o(88);e.SeriesOutliersComponent=ot.SeriesOutliersComponent;var it=o(33);e.SeriesTooltipComponent=it.SeriesTooltipComponent;var nt=o(179);e.TitleComponent=nt.TitleComponent;var rt=o(181);e.TooltipComponent=rt.TooltipComponent;var at=o(183);e.ValueAxisComponent=at.ValueAxisComponent;var st=o(186);e.ValueAxisCrosshairComponent=st.ValueAxisCrosshairComponent;var pt=o(188);e.ValueAxisCrosshairTooltipComponent=pt.ValueAxisCrosshairTooltipComponent;var ct=o(89);e.ValueAxisItemComponent=ct.ValueAxisItemComponent;var lt=o(190);e.ValueAxisLabelsComponent=lt.ValueAxisLabelsComponent;var ut=o(192);e.ValueAxisNotesComponent=ut.ValueAxisNotesComponent;var ht=o(194);e.ValueAxisNotesIconComponent=ht.ValueAxisNotesIconComponent;var dt=o(196);e.ValueAxisNotesLabelComponent=dt.ValueAxisNotesLabelComponent;var ft=o(198);e.ValueAxisTitleComponent=ft.ValueAxisTitleComponent;var gt=o(200);e.XAxisComponent=gt.XAxisComponent;var vt=o(203);e.XAxisCrosshairComponent=vt.XAxisCrosshairComponent;var yt=o(205);e.XAxisCrosshairTooltipComponent=yt.XAxisCrosshairTooltipComponent;var _t=o(90);e.XAxisItemComponent=_t.XAxisItemComponent;var mt=o(207);e.XAxisLabelsComponent=mt.XAxisLabelsComponent;var bt=o(209);e.XAxisNotesComponent=bt.XAxisNotesComponent;var xt=o(211);e.XAxisNotesIconComponent=xt.XAxisNotesIconComponent;var St=o(213);e.XAxisNotesLabelComponent=St.XAxisNotesLabelComponent;var Ct=o(215);e.XAxisTitleComponent=Ct.XAxisTitleComponent;var wt=o(217);e.YAxisComponent=wt.YAxisComponent;var At=o(220);e.YAxisCrosshairComponent=At.YAxisCrosshairComponent;var Ot=o(222);e.YAxisCrosshairTooltipComponent=Ot.YAxisCrosshairTooltipComponent;var It=o(91);e.YAxisItemComponent=It.YAxisItemComponent;var kt=o(224);e.YAxisLabelsComponent=kt.YAxisLabelsComponent;var Pt=o(226);e.YAxisNotesComponent=Pt.YAxisNotesComponent;var jt=o(228);e.YAxisNotesIconComponent=jt.YAxisNotesIconComponent;var Tt=o(230);e.YAxisNotesLabelComponent=Tt.YAxisNotesLabelComponent;var Mt=o(232);e.YAxisTitleComponent=Mt.YAxisTitleComponent;var Et=o(234);e.ZoomableComponent=Et.ZoomableComponent,e.CHART_DIRECTIVES=[i.ChartComponent,c.TooltipPopupComponent,n.SeriesTooltipTemplateDirective,r.SharedTooltipTemplateDirective,s.CrosshairTooltipsContainerComponent,a.CrosshairTooltipComponent,p.DonutCenterTemplateDirective,l.AxisDefaultsComponent,u.AxisDefaultsCrosshairComponent,h.AxisDefaultsCrosshairTooltipComponent,d.AxisDefaultsLabelsComponent,f.AxisDefaultsTitleComponent,g.CategoryAxisComponent,v.CategoryAxisCrosshairComponent,y.CategoryAxisCrosshairTooltipComponent,_.CategoryAxisItemComponent,m.CategoryAxisLabelsComponent,b.CategoryAxisRangeLabelsComponent,x.CategoryAxisNotesComponent,S.CategoryAxisNotesIconComponent,C.CategoryAxisNotesLabelComponent,w.CategoryAxisSelectComponent,A.CategoryAxisTitleComponent,O.ChartAreaComponent,I.LegendComponent,k.LegendInactiveItemsComponent,P.LegendItemComponent,j.PaneComponent,T.PaneDefaultsComponent,M.PaneDefaultsTitleComponent,E.PanesComponent,R.PanesTitleComponent,D.PlotAreaComponent,L.SeriesComponent,B.SeriesDefaultsComponent,V.SeriesDefaultsLabelsComponent,z.SeriesDefaultsLabelsFromComponent,N.SeriesDefaultsLabelsToComponent,F.SeriesDefaultsNotesComponent,G.SeriesDefaultsNotesIconComponent,H.SeriesDefaultsNotesLabelComponent,U.SeriesDefaultsTooltipComponent,W.SeriesErrorBarsComponent,X.SeriesExtremesComponent,Y.SeriesHighlightComponent,q.SeriesItemComponent,K.SeriesLabelsComponent,Z.SeriesLabelsFromComponent,$.SeriesLabelsToComponent,J.SeriesMarkersComponent,Q.SeriesNotesComponent,tt.SeriesNotesIconComponent,et.SeriesNotesLabelComponent,ot.SeriesOutliersComponent,it.SeriesTooltipComponent,nt.TitleComponent,rt.TooltipComponent,at.ValueAxisComponent,st.ValueAxisCrosshairComponent,pt.ValueAxisCrosshairTooltipComponent,ct.ValueAxisItemComponent,lt.ValueAxisLabelsComponent,ut.ValueAxisNotesComponent,ht.ValueAxisNotesIconComponent,dt.ValueAxisNotesLabelComponent,ft.ValueAxisTitleComponent,gt.XAxisComponent,vt.XAxisCrosshairComponent,yt.XAxisCrosshairTooltipComponent,_t.XAxisItemComponent,mt.XAxisLabelsComponent,bt.XAxisNotesComponent,xt.XAxisNotesIconComponent,St.XAxisNotesLabelComponent,Ct.XAxisTitleComponent,wt.YAxisComponent,At.YAxisCrosshairComponent,Ot.YAxisCrosshairTooltipComponent,It.YAxisItemComponent,kt.YAxisLabelsComponent,Pt.YAxisNotesComponent,jt.YAxisNotesIconComponent,Tt.YAxisNotesLabelComponent,Mt.YAxisTitleComponent,Et.ZoomableComponent]},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(o(26).LegendEvent);e.LegendItemClickEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(e,o){var i=t.call(this,o)||this;return i.axis=e.axis,i.dataItem=e.dataItem,i.index=e.index,i.text=e.text,i.value=e.value,i}return i.__extends(e,t),e}(o(7).BaseEvent);e.AxisLabelClickEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(e,o){var i=t.call(this,o)||this;return i.axisRanges=e.axisRanges,i.originalEvent=e.originalEvent,i}return i.__extends(e,t),e}(o(9).PreventableEvent);e.DragEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(e,o){var i=t.call(this,o)||this;return i.axisRanges=e.axisRanges,i.originalEvent=e.originalEvent,i}return i.__extends(e,t),e}(o(7).BaseEvent);e.DragEndEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(e,o){var i=t.call(this,o)||this;return i.axisRanges=e.axisRanges,i.originalEvent=e.originalEvent,i}return i.__extends(e,t),e}(o(9).PreventableEvent);e.DragStartEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(o(26).LegendEvent);e.LegendItemHoverEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(o(28).NoteEvent);e.NoteClickEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(o(28).NoteEvent);e.NoteHoverEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(e,o){var i=t.call(this,o)||this;return Object.assign(i,e),i}return i.__extends(e,t),e}(o(7).BaseEvent);e.PaneRenderEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(e,o){var i=t.call(this,o)||this;return i.category=e.category,i.originalEvent=e.originalEvent,i.value=e.value,i.x=e.x,i.y=e.y,i}return i.__extends(e,t),e}(o(7).BaseEvent);e.PlotAreaClickEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(e,o){var i=t.call(this,o)||this;return i.category=e.category,i.originalEvent=e.originalEvent,i.value=e.value,i.x=e.x,i.y=e.y,i}return i.__extends(e,t),e}(o(7).BaseEvent);e.PlotAreaHoverEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(e,o){var i=t.call(this,o)||this;return i.axis=e.axis,i.from=e.from,i.to=e.to,i}return i.__extends(e,t),e}(o(9).PreventableEvent);e.SelectEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(e,o){var i=t.call(this,o)||this;return i.axis=e.axis,i.from=e.from,i.to=e.to,i}return i.__extends(e,t),e}(o(7).BaseEvent);e.SelectEndEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(e,o){var i=t.call(this,o)||this;return i.axis=e.axis,i.from=e.from,i.to=e.to,i}return i.__extends(e,t),e}(o(9).PreventableEvent);e.SelectStartEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(e,o){var i=t.call(this,o)||this;return i.category=e.category,i.dataItem=e.dataItem,i.originalEvent=e.originalEvent,i.percentage=e.percentage,i.point=e.point,i.series=e.series,i.stackValue=e.stackValue,i.value=e.value,i}return i.__extends(e,t),e}(o(7).BaseEvent);e.SeriesClickEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(o(30).SeriesEvent);e.SeriesHoverEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(e,o){var i=t.call(this,o)||this;return i.axisRanges=e.axisRanges,i.delta=e.delta,i.originalEvent=e.originalEvent,i}return i.__extends(e,t),e}(o(9).PreventableEvent);e.ZoomEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(e,o){var i=t.call(this,o)||this;return i.axisRanges=e.axisRanges,i.originalEvent=e.originalEvent,i}return i.__extends(e,t),e}(o(7).BaseEvent);e.ZoomEndEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(e,o){var i=t.call(this,o)||this;return i.axisRanges=e.axisRanges,i.originalEvent=e.originalEvent,i}return i.__extends(e,t),e}(o(9).PreventableEvent);e.ZoomStartEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(){function t(t){this.templateRef=t}return t=i.__decorate([n.Directive({selector:"[kendoChartDonutCenterTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],t)}();e.DonutCenterTemplateDirective=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={horizontal:"fit",vertical:"fit"},n=function(){function t(t,e){this.popupService=t,this.localizationService=e,this.style={},this.popupRef=null}return Object.defineProperty(t.prototype,"active",{get:function(){return null!==this.popupRef},enumerable:!0,configurable:!0}),t.prototype.show=function(t){var e=t.anchor.align,o=this.position(t.anchor.point);if(this.style=t.style,this.popupRef){var n=this.popupRef.popup.instance;n.offset=o,n.popupAlign=e}else this.popupRef=this.popupService.open(Object.assign({offset:o,popupAlign:e,animate:this.animate,content:this.templateRef,collision:i,positionMode:"absolute"},this.popupSettings)),this.localizationService.rtl&&this.popupRef.popupElement.setAttribute("dir","rtl"),this.onInit()},t.prototype.hide=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},t.prototype.onInit=function(){},t.prototype.ngOnDestroy=function(){this.hide()},t.prototype.position=function(t){if(!this.popupSettings||!this.popupSettings.appendTo)return t;var e=this.popupSettings.appendTo.element.nativeElement;console.log("appendTo",e);var o=e.getBoundingClientRect(),i=this.scrollOffset(e),n=i.scrollLeft,r=i.scrollTop;return{left:t.left-o.left-n,top:t.top-o.top-r}},t.prototype.scrollOffset=function(t){if(!t)return null;for(var e=t.scrollLeft,o=t.scrollTop,i=t.parentElement;i;)e+=i.scrollLeft,o+=i.scrollTop,i=i.parentElement;return{scrollLeft:e,scrollTop:o}},t}();e.BaseTooltip=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasParent=function(t,e){for(var o=t;o&&o!==e;)o=o.parentNode;return!!o}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(2),n=o(5);e.bodyFactory=function(){if(n.isDocumentAvailable())return new i.ElementRef(document.body)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(63),a=o(17),s=o(18),p=o(65),c=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.animate=!1,i}return i.__extends(e,t),e.prototype.show=function(e){t.prototype.show.call(this,e),this.value=e.value,this.popupRef.popup.changeDetectorRef.detectChanges()},i.__decorate([n.ViewChild("content",{static:!0}),i.__metadata("design:type",n.TemplateRef)],e.prototype,"templateRef",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"key",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"popupSettings",void 0),e=i.__decorate([n.Component({providers:[a.PopupService,{provide:a.POPUP_CONTAINER,useFactory:p.bodyFactory}],selector:"kendo-chart-crosshair-tooltip",template:'\n <ng-template #content>\n <div class="k-chart-tooltip k-chart-crosshair-tooltip" [ngStyle]="style">\n {{ value }}\n </div>\n </ng-template>\n '}),i.__metadata("design:paramtypes",[a.PopupService,s.LocalizationService])],e)}(r.BaseTooltip);e.CrosshairTooltipComponent=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-category-axis-item-crosshair",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(128).CategoryAxisCrosshairComponentGenerated);e.CategoryAxisCrosshairComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-category-axis-item-crosshair-tooltip",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(129).CategoryAxisCrosshairTooltipComponentGenerated);e.CategoryAxisCrosshairTooltipComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-category-axis-item-notes",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(131).CategoryAxisNotesComponentGenerated);e.CategoryAxisNotesComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-category-axis-item-notes-icon",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(132).CategoryAxisNotesIconComponentGenerated);e.CategoryAxisNotesIconComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-category-axis-item-notes-label",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(133).CategoryAxisNotesLabelComponentGenerated);e.CategoryAxisNotesLabelComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-category-axis-item-select",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(134).CategoryAxisSelectComponentGenerated);e.CategoryAxisSelectComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-category-axis-item-title",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(135).CategoryAxisTitleComponentGenerated);e.CategoryAxisTitleComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(6),a=o(3),s=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,providers:[a.ConfigurationService],selector:"kendo-chart-pane, kendo-chart-panes-item",template:""}),i.__metadata("design:paramtypes",[a.ConfigurationService,r.CollectionService])],e)}(o(75).PaneComponentGenerated);e.PaneComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clip",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"height",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"name",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"title",void 0),e}(o(14).CollectionItemComponent);e.PaneComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-pane-title",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(148).PanesTitleComponentGenerated);e.PanesTitleComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=o(6),s=o(10),p=function(t){function e(e,o,i){var n=t.call(this,e,o)||this;return n.configurationService=e,n.collectionService=o,n.tooltipTemplateService=i,n}return i.__extends(e,t),e.prototype.ngAfterContentChecked=function(){this.readTooltipTemplates()},e.prototype.readTooltipTemplates=function(){var t=this.children.map((function(t){return t.seriesTooltipTemplateRef}));this.tooltipTemplateService.setSeriesTemplates(t)},e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,providers:[a.CollectionService],selector:"kendo-chart-series",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService,a.CollectionService,s.TooltipTemplateService])],e)}(o(151).SeriesComponentGenerated);e.SeriesComponent=p},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-error-bars",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(168).SeriesErrorBarsComponentGenerated);e.SeriesErrorBarsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-extremes",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(169).SeriesExtremesComponentGenerated);e.SeriesExtremesComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-highlight",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(170).SeriesHighlightComponentGenerated);e.SeriesHighlightComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-labels",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(171).SeriesLabelsComponentGenerated);e.SeriesLabelsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-labels-from",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(172).SeriesLabelsFromComponentGenerated);e.SeriesLabelsFromComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-labels-to",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(173).SeriesLabelsToComponentGenerated);e.SeriesLabelsToComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-markers",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(174).SeriesMarkersComponentGenerated);e.SeriesMarkersComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-notes",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(175).SeriesNotesComponentGenerated);e.SeriesNotesComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-notes-icon",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(176).SeriesNotesIconComponentGenerated);e.SeriesNotesIconComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-notes-label",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(177).SeriesNotesLabelComponentGenerated);e.SeriesNotesLabelComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-outliers",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(178).SeriesOutliersComponentGenerated);e.SeriesOutliersComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(6),a=o(3),s=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,providers:[a.ConfigurationService],selector:"kendo-chart-value-axis-item",template:""}),i.__metadata("design:paramtypes",[a.ConfigurationService,r.CollectionService])],e)}(o(185).ValueAxisItemComponentGenerated);e.ValueAxisItemComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(15),a=o(6),s=o(3),p=function(t){function e(e,o,i,n){var r=t.call(this,e,o,i,n)||this;return r.configurationService=e,r.collectionService=o,r.intl=i,r}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Array)],e.prototype,"categories",void 0),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,providers:[s.ConfigurationService],selector:"kendo-chart-x-axis-item",template:""}),i.__param(3,n.Inject(n.LOCALE_ID)),i.__metadata("design:paramtypes",[s.ConfigurationService,a.CollectionService,r.IntlService,String])],e)}(o(202).XAxisItemComponentGenerated);e.XAxisItemComponent=p},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(6),a=o(3),s=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Array)],e.prototype,"categories",void 0),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,providers:[a.ConfigurationService],selector:"kendo-chart-y-axis-item",template:""}),i.__metadata("design:paramtypes",[a.ConfigurationService,r.CollectionService])],e)}(o(219).YAxisItemComponentGenerated);e.YAxisItemComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(e,o){var i=t.call(this,o)||this;return i.from=e.from,i.to=e.to,i}return i.__extends(e,t),e}(o(7).BaseEvent);e.NavigatorFilterEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(238);e.StockChartComponent=i.StockChartComponent;var n=o(240),r=o(241),a=o(242),s=o(243),p=o(244),c=o(245),l=o(246),u=o(247),h=o(248),d=o(249),f=o(250),g=o(251),v=o(252),y=o(253),_=o(254),m=o(95),b=o(255),x=o(256),S=o(257),C=o(258),w=o(259),A=o(260),O=o(261),I=o(262),k=o(263),P=o(264),j=o(265),T=o(266);e.STOCK_CHART_DIRECTIVES=[i.StockChartComponent,n.NavigatorComponent,r.NavigatorCategoryAxisComponent,a.NavigatorCategoryAxisCrosshairComponent,s.NavigatorCategoryAxisCrosshairTooltipComponent,p.NavigatorCategoryAxisLabelsComponent,c.NavigatorCategoryAxisNotesComponent,l.NavigatorCategoryAxisNotesIconComponent,u.NavigatorCategoryAxisNotesLabelComponent,h.NavigatorCategoryAxisSelectComponent,d.NavigatorCategoryAxisTitleComponent,f.NavigatorHintComponent,g.NavigatorPaneComponent,v.NavigatorPaneTitleComponent,y.NavigatorSelectComponent,_.NavigatorSeriesComponent,m.NavigatorSeriesItemComponent,b.NavigatorSeriesErrorBarsComponent,x.NavigatorSeriesExtremesComponent,S.NavigatorSeriesHighlightComponent,C.NavigatorSeriesLabelsComponent,w.NavigatorSeriesLabelsFromComponent,A.NavigatorSeriesLabelsToComponent,O.NavigatorSeriesMarkersComponent,I.NavigatorSeriesNotesComponent,k.NavigatorSeriesNotesIconComponent,P.NavigatorSeriesNotesLabelComponent,j.NavigatorSeriesOutliersComponent,T.NavigatorSeriesTooltipComponent]},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e=i.__decorate([n.Injectable()],e)}(o(3).ConfigurationService);e.RootConfigurationService=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(6),a=o(3),s=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,providers:[a.ConfigurationService],selector:"kendo-chart-navigator-series-item",template:""}),i.__metadata("design:paramtypes",[a.ConfigurationService,r.CollectionService])],e)}(o(21).SeriesItemComponent);e.NavigatorSeriesItemComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(267);e.SparklineComponent=i.SparklineComponent,e.SPARKLINE_DIRECTIVES=[i.SparklineComponent]},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(23),a=o(12),s=o(17),p=o(5),c=o(93),l=function(){function t(){}return t=i.__decorate([n.NgModule({declarations:[c.STOCK_CHART_DIRECTIVES],exports:[c.STOCK_CHART_DIRECTIVES,r.ChartModule],imports:[r.ChartModule,a.CommonModule,s.PopupModule,p.ResizeSensorModule]})],t)}();e.StockChartModule=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(23),a=o(96),s=o(12),p=o(17),c=o(5),l=function(){function t(){}return t=i.__decorate([n.NgModule({declarations:[a.SPARKLINE_DIRECTIVES],exports:[a.SPARKLINE_DIRECTIVES,r.ChartModule],imports:[r.ChartModule,s.CommonModule,p.PopupModule,c.ResizeSensorModule]})],t)}();e.SparklineModule=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0);i.__exportStar(o(42),e),i.__exportStar(o(236),e),i.__exportStar(o(39),e),i.__exportStar(o(237),e),i.__exportStar(o(93),e),i.__exportStar(o(96),e);var n=o(23);e.ChartModule=n.ChartModule;var r=o(97);e.StockChartModule=r.StockChartModule;var a=o(98);e.SparklineModule=a.SparklineModule;var s=o(268);e.ChartsModule=s.ChartsModule;var p=o(34);e.TooltipPopupComponent=p.TooltipPopupComponent;var c=o(37);e.CrosshairTooltipsContainerComponent=c.CrosshairTooltipsContainerComponent;var l=o(17);e.PopupComponent=l.PopupComponent;var u=o(5);e.ResizeSensorComponent=u.ResizeSensorComponent},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(2),a=function(){function t(t){this.configurationService=t,this.axisLabelClick=new r.EventEmitter,this.drag=new r.EventEmitter,this.dragEnd=new r.EventEmitter,this.dragStart=new r.EventEmitter,this.legendItemHover=new r.EventEmitter,this.legendItemLeave=new r.EventEmitter,this.noteClick=new r.EventEmitter,this.noteHover=new r.EventEmitter,this.noteLeave=new r.EventEmitter,this.paneRender=new r.EventEmitter,this.plotAreaClick=new r.EventEmitter,this.plotAreaHover=new r.EventEmitter,this.plotAreaLeave=new r.EventEmitter,this.render=new r.EventEmitter,this.select=new r.EventEmitter,this.selectEnd=new r.EventEmitter,this.selectStart=new r.EventEmitter,this.seriesClick=new r.EventEmitter,this.seriesHover=new r.EventEmitter,this.seriesOver=new r.EventEmitter,this.seriesLeave=new r.EventEmitter,this.zoom=new r.EventEmitter,this.zoomEnd=new r.EventEmitter,this.zoomStart=new r.EventEmitter}return i.__decorate([n.Input(),i.__metadata("design:type",Object)],t.prototype,"pannable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"renderAs",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Array)],t.prototype,"seriesColors",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],t.prototype,"title",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],t.prototype,"transitions",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],t.prototype,"zoomable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],t.prototype,"axisDefaults",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],t.prototype,"categoryAxis",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],t.prototype,"chartArea",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],t.prototype,"legend",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Array)],t.prototype,"panes",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],t.prototype,"paneDefaults",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],t.prototype,"plotArea",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Array)],t.prototype,"series",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],t.prototype,"seriesDefaults",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],t.prototype,"tooltip",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],t.prototype,"valueAxis",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],t.prototype,"xAxis",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],t.prototype,"yAxis",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"axisLabelClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"drag",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"dragEnd",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"dragStart",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"legendItemHover",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"legendItemLeave",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"noteClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"noteHover",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"noteLeave",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"paneRender",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"plotAreaClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"plotAreaHover",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"plotAreaLeave",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"render",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"select",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"selectEnd",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"selectStart",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"seriesClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"seriesHover",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"seriesOver",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"seriesLeave",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"zoom",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"zoomEnd",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"zoomStart",void 0),t}();e.ChartComponentGenerated=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.preventDefault=function(){},e.prototype.isDefaultPrevented=function(){return!1},e}(o(26).LegendEvent);e.LegendItemLeaveEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(o(28).NoteEvent);e.NoteLeaveEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(o(7).BaseEvent);e.PlotAreaLeaveEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(o(30).SeriesEvent);e.SeriesOverEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(o(30).SeriesEvent);e.SeriesLeaveEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"aggregate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"autoFit",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"axis",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"categoryAxis",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"categoryField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"closeField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"colorField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"connectors",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"currentField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"dashType",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Array)],e.prototype,"data",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"downColor",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"downColorField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"dynamicHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"dynamicSlope",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"errorHighField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"errorLowField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"explodeField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"field",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"fromField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"gap",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"highField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"holeSize",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"lowField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"lowerField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"maxSize",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"mean",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"meanField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"median",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"medianField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"minSize",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"missingValues",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"name",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"neckRatio",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"negativeColor",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"negativeValues",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"noteTextField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"opacity",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"openField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"outliersField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"overlay",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"q1Field",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"q3Field",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"segmentSpacing",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"size",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"sizeField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"spacing",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"stack",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"startAngle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"style",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"summaryField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"target",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"toField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"upperField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visibleInLegend",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"visibleInLegendField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"width",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"whiskers",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"xAxis",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"xErrorHighField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"xErrorLowField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"xField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"yAxis",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"yErrorHighField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"yErrorLowField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"yField",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"zIndex",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"errorBars",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"extremes",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"highlight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"labels",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"markers",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"notes",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"outliers",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"tooltip",void 0),e}(o(14).CollectionItemComponent);e.SeriesItemComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"tooltip",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.SeriesTooltipComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(11);e.chartDefaultTheme=function(){return Object.assign({},i.chartBaseTheme(),{axisDefaults:{crosshair:{color:"rgba(0, 0, 0, 0.5)"},labels:{color:"rgb(101, 101, 101)",font:"12px serif"},line:{color:"rgba(0, 0, 0, 0.08)"},majorGridLines:{color:"rgba(0, 0, 0, 0.08)"},minorGridLines:{color:"rgba(0, 0, 0, 0.04)"},notes:{icon:{background:"rgba(0, 0, 0, 0.5)",border:{color:"rgba(0, 0, 0, 0.5)"}},line:{color:"rgba(0, 0, 0, 0.5)"},label:{font:"14px serif"}},title:{color:"rgb(101, 101, 101)",font:"14px serif"}},chartArea:{background:"rgb(255, 255, 255)"},legend:{inactiveItems:{labels:{color:"rgba(102, 102, 102, 0.5)"},markers:{color:"rgba(102, 102, 102, 0.5)"}},labels:{color:"rgb(101, 101, 101)",font:"14px serif"}},seriesDefaults:{boxPlot:{downColor:"rgba(0, 0, 0, 0.08)",mean:{color:"rgb(246, 246, 246)"},median:{color:"rgb(246, 246, 246)"},whiskers:{color:"rgb(255, 99, 88)"}},bullet:{target:{color:"rgb(101, 101, 101)"}},candlestick:{downColor:"rgb(101, 101, 101)",line:{color:"rgb(101, 101, 101)"}},errorBars:{color:"rgba(0, 0, 0, 0.5)"},horizontalWaterfall:{line:{color:"rgba(0, 0, 0, 0.08)"}},icon:{border:{color:"rgba(0, 0, 0, 0.08)"}},labels:{background:"rgb(255, 255, 255)",color:"rgb(101, 101, 101)",opacity:.8,font:"12px serif"},notes:{icon:{background:"rgba(0, 0, 0, 0.5)",border:{color:"rgba(0, 0, 0, 0.5)"}},line:{color:"rgba(0, 0, 0, 0.5)"},label:{font:"14px serif"}},overlay:{gradient:"none"},verticalBoxPlot:{downColor:"rgba(0, 0, 0, 0.08)",mean:{color:"rgb(246, 246, 246)"},median:{color:"rgb(246, 246, 246)"},whiskers:{color:"rgb(255, 99, 88)"}},verticalBullet:{target:{color:"rgb(101, 101, 101)"}},waterfall:{line:{color:"rgba(0, 0, 0, 0.08)"}},area:{opacity:.8}},title:{color:"rgb(101, 101, 101)",font:"16px serif"},seriesColors:["rgb(255, 99, 88)","rgb(255, 210, 70)","rgb(120, 210, 55)","rgb(40, 180, 200)","rgb(45, 115, 245)","rgb(170, 70, 190)"]})}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=function(t){function e(e){var o=t.call(this,e)||this;return o.handlerMap={hideTooltip:"onHideTooltip",legendItemClick:"onLegendItemClick",render:"onRender",showTooltip:"onShowTooltip",init:"onInit"},o}return i.__extends(e,t),e}(o(11).InstanceObserver);e.ChartInstanceObserver=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e,o){this.value=t.value,this.category=t.category,this.categoryIndex=t.categoryIx,this.series=t.series,this.dataItem=t.dataItem,this.percentage=t.percentage,this.runningTotal=t.runningTotal,this.total=t.total,this.low=t.low,this.high=t.high,this.xLow=t.xLow,this.xHigh=t.xHigh,this.yLow=t.yLow,this.yHigh=t.yHigh,this.template=o,this.point=t,this.format=e}return Object.defineProperty(t.prototype,"formattedValue",{get:function(){return this.format?this.point.formatValue(this.format):String(this.value)},enumerable:!0,configurable:!0}),t}();e.TooltipTemplatePoint=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(112),n=o(11),r=n.DateCategoryAxis.prototype.options.labels.dateFormats,a=n.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(r,s),Object.assign(a,s),n.DomEventsBuilder.register(i.DomEventsBuilder)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(2),n=o(113),r=function(){function t(){}return t.create=function(t,e){if("undefined"!=typeof window){var o=window.Hammer;if(!o){if(i.isDevMode())throw new Error("Hammerjs is not loaded.Solution: http://www.telerik.com/kendo-angular-ui/components/charts/troubleshooting/#toc-hammerjs-is-not-loaded");return}var r=new o(t,{recognizers:[[o.Tap],[o.Pan],[o.Pinch],[o.Press,{time:0}]]});return new n.DomEvents(r,e)}},t}();e.DomEventsBuilder=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return{x:{location:t.pageX},y:{location:t.pageY}}};function n(t,e){for(var o=0;o<t.length;o++)if(e[t[o]])return!0;return!1}var r=[{end:"panend",move:"panmove",start:"panstart"},{gesturechange:"pinchmove",gestureend:"pinchend",gesturestart:"pinchstart"},{press:"press"},{tap:"tap"}],a=function(){function t(t,e){this.hammerInstance=t,this.eventHandlers={},this.tap=this.tap.bind(this),this.press=this.press.bind(this),this.panstart=this.panstart.bind(this),this.panmove=this.panmove.bind(this),this.panend=this.panend.bind(this),this.pinchstart=this.pinchstart.bind(this),this.pinchmove=this.pinchmove.bind(this),this.pinchend=this.pinchend.bind(this),e&&this.bind(e)}return t.prototype.tap=function(t){this.trigger("tap",t)},t.prototype.press=function(t){this.trigger("press",t)},t.prototype.panstart=function(t){delete this.previous,this.previous=this.trigger("start",t)},t.prototype.panmove=function(t){this.previous=this.trigger("move",t)},t.prototype.panend=function(t){this.trigger("end",t),delete this.previous},t.prototype.pinchstart=function(t){this.trigger("gesturestart",t)},t.prototype.pinchmove=function(t){this.trigger("gesturechange",t)},t.prototype.pinchend=function(t){this.trigger("gestureend",t)},t.prototype.trigger=function(t,e){var o=function(t,e){var o=t.pointers,n=o[0],r=n.pageX,a=n.pageY,s=0;if(o.length>1){var p=o[0],c=o[1];s=Math.sqrt(Math.pow(p.pageX-c.pageX,2)+Math.pow(p.pageY-c.pageY,2))}return{distance:s,event:t.srcEvent,preventDefault:function(){t.preventDefault()},target:t.target,touches:o.map(i),type:t.type,x:{delta:e?r-e.x.location:0,initialDelta:t.deltaX,location:r,startLocation:r-t.deltaX},y:{delta:e?a-e.y.location:0,initialDelta:t.deltaY,location:a,startLocation:a-t.deltaY}}}(e,this.previous);return this.eventHandlers[t]&&this.eventHandlers[t](o),o},t.prototype.bind=function(t){void 0===t&&(t={}),this.unbind(),this.eventHandlers=t;for(var e=0;e<r.length;e++){var o=r[e],i=Object.keys(o);if(n(i,t))for(var a=0;a<i.length;a++){var s=o[i[a]];this.hammerInstance.on(s,this[s])}}},t.prototype.unbind=function(){this.hammerInstance&&this.hammerInstance.off(),this.eventHandlers={}},t.prototype.destroy=function(){this.hammerInstance&&(this.hammerInstance.destroy(),delete this.hammerInstance),delete this.eventHandlers},t.prototype.toggleDrag=function(t){this.toggle("pan",t)},t.prototype.toggleZoom=function(t){this.toggle("pinch",t)},t.prototype.toggle=function(t,e){this.hammerInstance&&this.hammerInstance.get(t).set({enable:e})},t}();e.DomEvents=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-axis-defaults",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(115).AxisDefaultsComponentGenerated);e.AxisDefaultsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"axisDefaults",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"majorGridLines",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"majorTicks",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"minorGridLines",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"minorTicks",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"narrowRange",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"pane",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Array)],e.prototype,"plotBands",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"reverse",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"startAngle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"crosshair",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"labels",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"title",void 0),e}(o(4).SettingsComponent);e.AxisDefaultsComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-axis-defaults-crosshair",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(117).AxisDefaultsCrosshairComponentGenerated);e.AxisDefaultsCrosshairComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"axisDefaults.crosshair",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"dashType",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"opacity",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"width",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"tooltip",void 0),e}(o(4).SettingsComponent);e.AxisDefaultsCrosshairComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-axis-defaults-crosshair-tooltip",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(119).AxisDefaultsCrosshairTooltipComponentGenerated);e.AxisDefaultsCrosshairTooltipComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"axisDefaults.crosshair.tooltip",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.AxisDefaultsCrosshairTooltipComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-axis-defaults-labels",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(121).AxisDefaultsLabelsComponentGenerated);e.AxisDefaultsLabelsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"axisDefaults.labels",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"mirror",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"rotation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"skip",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"step",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.AxisDefaultsLabelsComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-axis-defaults-title",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(123).AxisDefaultsTitleComponentGenerated);e.AxisDefaultsTitleComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"axisDefaults.title",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"text",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.AxisDefaultsTitleComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=o(6),s=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,providers:[a.CollectionService],selector:"kendo-chart-category-axis",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService,a.CollectionService])],e)}(o(125).CategoryAxisComponentGenerated);e.CategoryAxisComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(16),a=o(38),s=function(t){function e(e,o){var i=t.call(this,"categoryAxis",e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([n.ContentChildren(a.CategoryAxisItemComponent),i.__metadata("design:type",n.QueryList)],e.prototype,"children",void 0),e}(r.CollectionComponent);e.CategoryAxisComponentGenerated=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(14),a=(o(39),function(t){function e(e,o,i,n){var r=t.call(this,e,o)||this;return r.configurationService=e,r.collectionService=o,r.notifyChanges({weekStartDay:i.firstDay(n)}),r}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"autoBaseUnitSteps",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"axisCrossingValue",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"baseUnit",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"baseUnitStep",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Array)],e.prototype,"categories",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"justified",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"majorGridLines",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"majorTicks",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"max",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"maxDateGroups",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"maxDivisions",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"min",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"minorGridLines",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"minorTicks",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"name",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"pane",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Array)],e.prototype,"plotBands",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"reverse",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"roundToBaseUnit",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"startAngle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"weekStartDay",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"crosshair",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"labels",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"notes",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"select",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"title",void 0),e}(r.CollectionItemComponent));e.CategoryAxisItemComponentGenerated=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday"}(e.WeekStartDay||(e.WeekStartDay={}))},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"crosshair",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"dashType",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"opacity",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"width",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"tooltip",void 0),e}(o(4).SettingsComponent);e.CategoryAxisCrosshairComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"crosshair.tooltip",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.CategoryAxisCrosshairTooltipComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.configKey="rangeLabels",o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-category-axis-item-range-labels",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(40).CategoryAxisLabelsComponent);e.CategoryAxisRangeLabelsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"notes",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Array)],e.prototype,"data",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"icon",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"label",void 0),e}(o(4).SettingsComponent);e.CategoryAxisNotesComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"notes.icon",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"size",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.CategoryAxisNotesIconComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"notes.label",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.CategoryAxisNotesLabelComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"select",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"from",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"max",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"min",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"mousewheel",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"to",void 0),e}(o(4).SettingsComponent);e.CategoryAxisSelectComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"title",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"text",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.CategoryAxisTitleComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-area",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(137).ChartAreaComponentGenerated);e.ChartAreaComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"chartArea",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"height",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"opacity",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"width",void 0),e}(o(4).SettingsComponent);e.ChartAreaComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-legend",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(139).LegendComponentGenerated);e.LegendComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"legend",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"align",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"height",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"labels",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"offsetX",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"offsetY",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"orientation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"reverse",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"width",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"markers",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"spacing",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"inactiveItems",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"item",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"title",void 0),e}(o(4).SettingsComponent);e.LegendComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-legend-inactive-items",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(141).LegendInactiveItemsComponentGenerated);e.LegendInactiveItemsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"legend.inactiveItems",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"labels",void 0),e}(o(4).SettingsComponent);e.LegendInactiveItemsComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-legend-item",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(143).LegendItemComponentGenerated);e.LegendItemComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"legend.item",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"cursor",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.LegendItemComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,"paneDefaults",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clip",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"height",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"title",void 0),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-pane-defaults",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(4).SettingsComponent);e.PaneDefaultsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,"paneDefaults.title",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-pane-defaults-title",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(4).SettingsComponent);e.PaneDefaultsTitleComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=o(6),s=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,providers:[a.CollectionService],selector:"kendo-chart-panes",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService,a.CollectionService])],e)}(o(147).PanesComponentGenerated);e.PanesComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(16),a=o(74),s=function(t){function e(e,o){var i=t.call(this,"panes",e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([n.ContentChildren(a.PaneComponent),i.__metadata("design:type",n.QueryList)],e.prototype,"children",void 0),e}(r.CollectionComponent);e.PanesComponentGenerated=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"title",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"text",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.PanesTitleComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-plot-area",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(150).PlotAreaComponentGenerated);e.PlotAreaComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"plotArea",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"opacity",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),e}(o(4).SettingsComponent);e.PlotAreaComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(16),a=o(21),s=function(t){function e(e,o){var i=t.call(this,"series",e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([n.ContentChildren(a.SeriesItemComponent),i.__metadata("design:type",n.QueryList)],e.prototype,"children",void 0),e}(r.CollectionComponent);e.SeriesComponentGenerated=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-defaults",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(153).SeriesDefaultsComponentGenerated);e.SeriesDefaultsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"seriesDefaults",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"gap",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"highlight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"overlay",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"spacing",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"stack",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"labels",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"notes",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"tooltip",void 0),e}(o(4).SettingsComponent);e.SeriesDefaultsComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-defaults-labels",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(155).SeriesDefaultsLabelsComponentGenerated);e.SeriesDefaultsLabelsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"seriesDefaults.labels",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"from",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"to",void 0),e}(o(4).SettingsComponent);e.SeriesDefaultsLabelsComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-defaults-labels-from",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(157).SeriesDefaultsLabelsFromComponentGenerated);e.SeriesDefaultsLabelsFromComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"seriesDefaults.labels.from",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.SeriesDefaultsLabelsFromComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-defaults-labels-to",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(159).SeriesDefaultsLabelsToComponentGenerated);e.SeriesDefaultsLabelsToComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"seriesDefaults.labels.to",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.SeriesDefaultsLabelsToComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-defaults-notes",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(161).SeriesDefaultsNotesComponentGenerated);e.SeriesDefaultsNotesComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"seriesDefaults.notes",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"icon",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"label",void 0),e}(o(4).SettingsComponent);e.SeriesDefaultsNotesComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-defaults-notes-icon",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(163).SeriesDefaultsNotesIconComponentGenerated);e.SeriesDefaultsNotesIconComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"seriesDefaults.notes.icon",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"size",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.SeriesDefaultsNotesIconComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-defaults-notes-label",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(165).SeriesDefaultsNotesLabelComponentGenerated);e.SeriesDefaultsNotesLabelComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"seriesDefaults.notes.label",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.SeriesDefaultsNotesLabelComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-defaults-tooltip",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(167).SeriesDefaultsTooltipComponentGenerated);e.SeriesDefaultsTooltipComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"seriesDefaults.tooltip",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.SeriesDefaultsTooltipComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"errorBars",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"endCaps",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"xValue",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"yValue",void 0),e}(o(4).SettingsComponent);e.SeriesErrorBarsComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"extremes",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"size",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),e}(o(4).SettingsComponent);e.SeriesExtremesComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"highlight",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"markers",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"opacity",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"toggle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.SeriesHighlightComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"labels",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"align",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"distance",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"from",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"to",void 0),e}(o(4).SettingsComponent);e.SeriesLabelsComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"labels.from",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.SeriesLabelsFromComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"labels.to",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.SeriesLabelsToComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"markers",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"size",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"from",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"to",void 0),e}(o(4).SettingsComponent);e.SeriesMarkersComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"notes",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"icon",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"label",void 0),e}(o(4).SettingsComponent);e.SeriesNotesComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"notes.icon",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"size",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.SeriesNotesIconComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"notes.label",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.SeriesNotesLabelComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"outliers",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"size",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),e}(o(4).SettingsComponent);e.SeriesOutliersComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-title",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(180).TitleComponentGenerated);e.TitleComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"title",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"align",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"text",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.TitleComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=o(182),s=o(35),p=o(36),c=o(10),l=function(t){function e(e,o){var i=t.call(this,e)||this;return i.configurationService=e,i.templateService=o,i.markAsVisible(),i}return i.__extends(e,t),e.prototype.ngAfterContentChecked=function(){this.templateService.setTemplate(this.seriesTooltipTemplate?this.seriesTooltipTemplate.templateRef:null),this.templateService.setSharedTemplate(this.sharedTooltipTemplate?this.sharedTooltipTemplate.templateRef:null)},i.__decorate([n.ContentChild(s.SeriesTooltipTemplateDirective,{static:!1}),i.__metadata("design:type",s.SeriesTooltipTemplateDirective)],e.prototype,"seriesTooltipTemplate",void 0),i.__decorate([n.ContentChild(p.SharedTooltipTemplateDirective,{static:!1}),i.__metadata("design:type",p.SharedTooltipTemplateDirective)],e.prototype,"sharedTooltipTemplate",void 0),e=i.__decorate([n.Component({selector:"kendo-chart-tooltip",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService,c.TooltipTemplateService])],e)}(a.TooltipComponentGenerated);e.TooltipComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"tooltip",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"opacity",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"shared",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.TooltipComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=o(6),s=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,providers:[a.CollectionService],selector:"kendo-chart-value-axis",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService,a.CollectionService])],e)}(o(184).ValueAxisComponentGenerated);e.ValueAxisComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(16),a=o(89),s=function(t){function e(e,o){var i=t.call(this,"valueAxis",e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([n.ContentChildren(a.ValueAxisItemComponent),i.__metadata("design:type",n.QueryList)],e.prototype,"children",void 0),e}(r.CollectionComponent);e.ValueAxisComponentGenerated=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"axisCrossingValue",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"majorGridLines",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"majorTicks",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"majorUnit",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"max",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"min",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"minorGridLines",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"minorTicks",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"minorUnit",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"name",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"narrowRange",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"pane",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Array)],e.prototype,"plotBands",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"reverse",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"crosshair",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"labels",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"notes",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"title",void 0),e}(o(14).CollectionItemComponent);e.ValueAxisItemComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-value-axis-item-crosshair",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(187).ValueAxisCrosshairComponentGenerated);e.ValueAxisCrosshairComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"crosshair",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"opacity",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"width",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"tooltip",void 0),e}(o(4).SettingsComponent);e.ValueAxisCrosshairComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-value-axis-item-crosshair-tooltip",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(189).ValueAxisCrosshairTooltipComponentGenerated);e.ValueAxisCrosshairTooltipComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"crosshair.tooltip",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.ValueAxisCrosshairTooltipComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-value-axis-item-labels",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(191).ValueAxisLabelsComponentGenerated);e.ValueAxisLabelsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"labels",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"mirror",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"rotation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"skip",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"step",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.ValueAxisLabelsComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-value-axis-item-notes",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(193).ValueAxisNotesComponentGenerated);e.ValueAxisNotesComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"notes",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Array)],e.prototype,"data",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"icon",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"label",void 0),e}(o(4).SettingsComponent);e.ValueAxisNotesComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-value-axis-item-notes-icon",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(195).ValueAxisNotesIconComponentGenerated);e.ValueAxisNotesIconComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"notes.icon",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"size",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.ValueAxisNotesIconComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-value-axis-item-notes-label",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(197).ValueAxisNotesLabelComponentGenerated);e.ValueAxisNotesLabelComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"notes.label",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.ValueAxisNotesLabelComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-value-axis-item-title",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(199).ValueAxisTitleComponentGenerated);e.ValueAxisTitleComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"title",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"text",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.ValueAxisTitleComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=o(6),s=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,providers:[a.CollectionService],selector:"kendo-chart-x-axis",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService,a.CollectionService])],e)}(o(201).XAxisComponentGenerated);e.XAxisComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(16),a=o(90),s=function(t){function e(e,o){var i=t.call(this,"xAxis",e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([n.ContentChildren(a.XAxisItemComponent),i.__metadata("design:type",n.QueryList)],e.prototype,"children",void 0),e}(r.CollectionComponent);e.XAxisComponentGenerated=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(14),a=(o(39),function(t){function e(e,o,i,n){var r=t.call(this,e,o)||this;return r.configurationService=e,r.collectionService=o,r.notifyChanges({weekStartDay:i.firstDay(n)}),r}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"axisCrossingValue",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"baseUnit",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"majorGridLines",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"majorTicks",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"majorUnit",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"max",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"min",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"minorGridLines",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"minorTicks",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"minorUnit",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"name",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"narrowRange",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"pane",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Array)],e.prototype,"plotBands",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"reverse",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"startAngle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"weekStartDay",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"crosshair",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"labels",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"notes",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"title",void 0),e}(r.CollectionItemComponent));e.XAxisItemComponentGenerated=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-x-axis-item-crosshair",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(204).XAxisCrosshairComponentGenerated);e.XAxisCrosshairComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"crosshair",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"opacity",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"width",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"tooltip",void 0),e}(o(4).SettingsComponent);e.XAxisCrosshairComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-x-axis-item-crosshair-tooltip",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(206).XAxisCrosshairTooltipComponentGenerated);e.XAxisCrosshairTooltipComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"crosshair.tooltip",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.XAxisCrosshairTooltipComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-x-axis-item-labels",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(208).XAxisLabelsComponentGenerated);e.XAxisLabelsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"labels",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"culture",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"dateFormats",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"mirror",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"rotation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"skip",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"step",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.XAxisLabelsComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-x-axis-item-notes",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(210).XAxisNotesComponentGenerated);e.XAxisNotesComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"notes",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Array)],e.prototype,"data",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"icon",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"label",void 0),e}(o(4).SettingsComponent);e.XAxisNotesComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-x-axis-item-notes-icon",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(212).XAxisNotesIconComponentGenerated);e.XAxisNotesIconComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"notes.icon",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"size",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.XAxisNotesIconComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-x-axis-item-notes-label",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(214).XAxisNotesLabelComponentGenerated);e.XAxisNotesLabelComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"notes.label",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.XAxisNotesLabelComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-x-axis-item-title",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(216).XAxisTitleComponentGenerated);e.XAxisTitleComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"title",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"text",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.XAxisTitleComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=o(6),s=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,providers:[a.CollectionService],selector:"kendo-chart-y-axis",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService,a.CollectionService])],e)}(o(218).YAxisComponentGenerated);e.YAxisComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(16),a=o(91),s=function(t){function e(e,o){var i=t.call(this,"yAxis",e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([n.ContentChildren(a.YAxisItemComponent),i.__metadata("design:type",n.QueryList)],e.prototype,"children",void 0),e}(r.CollectionComponent);e.YAxisComponentGenerated=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"axisCrossingValue",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"baseUnit",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"majorGridLines",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"majorTicks",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"majorUnit",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"max",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"min",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"minorGridLines",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"minorTicks",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"minorUnit",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"name",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"narrowRange",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"pane",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Array)],e.prototype,"plotBands",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"reverse",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"crosshair",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"labels",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"notes",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"title",void 0),e}(o(14).CollectionItemComponent);e.YAxisItemComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-y-axis-item-crosshair",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(221).YAxisCrosshairComponentGenerated);e.YAxisCrosshairComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"crosshair",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"opacity",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"width",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"tooltip",void 0),e}(o(4).SettingsComponent);e.YAxisCrosshairComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-y-axis-item-crosshair-tooltip",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(223).YAxisCrosshairTooltipComponentGenerated);e.YAxisCrosshairTooltipComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"crosshair.tooltip",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.YAxisCrosshairTooltipComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-y-axis-item-labels",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(225).YAxisLabelsComponentGenerated);e.YAxisLabelsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"labels",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"culture",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"dateFormats",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"mirror",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"rotation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"skip",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"step",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.YAxisLabelsComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-y-axis-item-notes",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(227).YAxisNotesComponentGenerated);e.YAxisNotesComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"notes",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Array)],e.prototype,"data",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"icon",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"label",void 0),e}(o(4).SettingsComponent);e.YAxisNotesComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-y-axis-item-notes-icon",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(229).YAxisNotesIconComponentGenerated);e.YAxisNotesIconComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"notes.icon",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"size",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.YAxisNotesIconComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-y-axis-item-notes-label",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(231).YAxisNotesLabelComponentGenerated);e.YAxisNotesLabelComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"notes.label",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.YAxisNotesLabelComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-y-axis-item-title",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(233).YAxisTitleComponentGenerated);e.YAxisTitleComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"title",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"text",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.YAxisTitleComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-zoomable",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(235).ZoomableComponentGenerated);e.ZoomableComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=function(t){function e(e){var o=t.call(this,"zoomable",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"mousewheel",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"selection",void 0),e}(o(4).SettingsComponent);e.ZoomableComponentGenerated=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(44);e.AxisLabelClickEvent=i.AxisLabelClickEvent;var n=o(46);e.DragEndEvent=n.DragEndEvent;var r=o(45);e.DragEvent=r.DragEvent;var a=o(47);e.DragStartEvent=a.DragStartEvent;var s=o(43);e.LegendItemClickEvent=s.LegendItemClickEvent;var p=o(48);e.LegendItemHoverEvent=p.LegendItemHoverEvent;var c=o(49);e.NoteClickEvent=c.NoteClickEvent;var l=o(50);e.NoteHoverEvent=l.NoteHoverEvent;var u=o(51);e.PaneRenderEvent=u.PaneRenderEvent;var h=o(52);e.PlotAreaClickEvent=h.PlotAreaClickEvent;var d=o(53);e.PlotAreaHoverEvent=d.PlotAreaHoverEvent;var f=o(29);e.RenderEvent=f.RenderEvent;var g=o(55);e.SelectEndEvent=g.SelectEndEvent;var v=o(54);e.SelectEvent=v.SelectEvent;var y=o(56);e.SelectStartEvent=y.SelectStartEvent;var _=o(57);e.SeriesClickEvent=_.SeriesClickEvent;var m=o(58);e.SeriesHoverEvent=m.SeriesHoverEvent;var b=o(60);e.ZoomEndEvent=b.ZoomEndEvent;var x=o(59);e.ZoomEvent=x.ZoomEvent;var S=o(61);e.ZoomStartEvent=S.ZoomStartEvent},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(92);e.NavigatorFilterEvent=i.NavigatorFilterEvent},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(2),a=o(3),s=o(94),p=o(10),c=o(24),l=o(22),u=o(15),h=o(239),d=o(11),f=o(18),g=o(19),v=o(25),y={autoBindElements:!0,liveDrag:!1,partialRedraw:!0},_=function(t){function e(e,o,i,r,a,s,p,c,l){var u=t.call(this,e,o,i,r,a,s,p,c,l)||this;return u.configurationService=e,u.themeService=o,u.element=i,u.intl=r,u.localizationService=a,u.ngZone=s,u.instanceEventService=p,u.changeDetector=c,u.renderer=l,u.navigatorFilter=new n.EventEmitter,u.redrawSlaves=!1,u.hostClasses=["k-chart","k-stockchart"],g.validatePackage(v.packageMetadata),u}return i.__extends(e,t),e.prototype.skipNavigatorRedraw=function(){this.redrawSlaves=!0},e.prototype.createInstance=function(t,e){if(this.applyNavigatorDefaults(),this.isDevMode()&&(this.options.zoomable||this.options.pannable))throw new Error("The pannable and zoomable options are not supported by the StockChart component.");this.instance=new d.StockChart(t,this.options,this.theme,{intlService:this.intl,observer:e,rtl:this.rtl,sender:this})},e.prototype.updateOptions=function(){this.applyNavigatorDefaults(),this.redrawSlaves?(this.instance.applyOptions(this.options),this.instance.bindCategories(),this.instance.navigator.redrawSlaves()):this.instance.setOptions(this.options),this.redrawSlaves=!1},e.prototype.applyNavigatorDefaults=function(){this.options.navigator=Object.assign({},this.options.navigator,y)},e.prototype.isDevMode=function(){return r.isDevMode()},i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"navigator",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"pannable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"zoomable",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],e.prototype,"navigatorFilter",void 0),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,exportAs:"kendoStockChart",providers:[a.ConfigurationService,p.TooltipTemplateService,{provide:s.RootConfigurationService,useExisting:a.ConfigurationService},h.StockInstanceEventService,f.LocalizationService,{provide:f.L10N_PREFIX,useValue:"kendo.chart"}],selector:"kendo-stockchart",template:'\n <div #surface class="k-chart-surface"></div>\n <kendo-chart-crosshair-tooltips-container [popupSettings]="popupSettings">\n </kendo-chart-crosshair-tooltips-container>\n <kendo-chart-tooltip-popup (leave)="tooltipMouseleave($event)" [popupSettings]="popupSettings">\n </kendo-chart-tooltip-popup>\n <kendo-resize-sensor (resize)="onResize($event)"></kendo-resize-sensor>\n '}),i.__metadata("design:paramtypes",[a.ConfigurationService,l.ThemeService,n.ElementRef,u.IntlService,f.LocalizationService,n.NgZone,h.StockInstanceEventService,n.ChangeDetectorRef,n.Renderer2])],e)}(c.ChartComponent);e.StockChartComponent=_},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(27),r={navigatorFilter:o(92).NavigatorFilterEvent},a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.create=function(e,o,i){return r[e]?new r[e](o,i):t.prototype.create.call(this,e,o,i)},e}(n.InstanceEventService);e.StockInstanceEventService=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=o(41),s=function(t){function e(e){var o=t.call(this,"",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"categoryAxis",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"hint",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"pane",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"select",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"series",void 0),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,providers:[{provide:a.PREFIX,useValue:"navigator"},{provide:r.ConfigurationService,useClass:a.PrefixConfigurationService}],selector:"kendo-chart-navigator",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(4).SettingsComponent);e.NavigatorComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(15),a=o(3),s=o(41),p=function(t){function e(e,o,i){var n=t.call(this,e,null,o,i)||this;return n.configurationService=e,n}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,providers:[{provide:s.PREFIX,useValue:"navigator.categoryAxis"},{provide:a.ConfigurationService,useClass:s.PrefixConfigurationService}],selector:"kendo-chart-navigator-category-axis",template:""}),i.__param(2,n.Inject(n.LOCALE_ID)),i.__metadata("design:paramtypes",[a.ConfigurationService,r.IntlService,String])],e)}(o(38).CategoryAxisItemComponent);e.NavigatorCategoryAxisComponent=p},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-category-axis-crosshair",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(67).CategoryAxisCrosshairComponent);e.NavigatorCategoryAxisCrosshairComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-category-axis-crosshair-tooltip",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(68).CategoryAxisCrosshairTooltipComponent);e.NavigatorCategoryAxisCrosshairTooltipComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-category-axis-labels",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(40).CategoryAxisLabelsComponent);e.NavigatorCategoryAxisLabelsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-category-axis-notes",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(69).CategoryAxisNotesComponent);e.NavigatorCategoryAxisNotesComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-category-axis-notes-icon",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(70).CategoryAxisNotesIconComponent);e.NavigatorCategoryAxisNotesIconComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-category-axis-notes-label",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(71).CategoryAxisNotesLabelComponent);e.NavigatorCategoryAxisNotesLabelComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-category-axis-select",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(72).CategoryAxisSelectComponent);e.NavigatorCategoryAxisSelectComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-category-axis-title",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(73).CategoryAxisTitleComponent);e.NavigatorCategoryAxisTitleComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,"hint",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-hint",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(4).SettingsComponent);e.NavigatorHintComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=o(41),s=function(t){function e(e){var o=t.call(this,e,null)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,providers:[{provide:a.PREFIX,useValue:"navigator.pane"},{provide:r.ConfigurationService,useClass:a.PrefixConfigurationService}],selector:"kendo-chart-navigator-pane",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(75).PaneComponentGenerated);e.NavigatorPaneComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-pane-title",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(76).PanesTitleComponent);e.NavigatorPaneTitleComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,"select",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([n.Input(),i.__metadata("design:type",Date)],e.prototype,"from",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Date)],e.prototype,"to",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"mousewheel",void 0),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-select",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(4).SettingsComponent);e.NavigatorSelectComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=o(6),s=o(10),p=o(77),c=o(95),l=function(t){function e(e,o,i){var n=t.call(this,e,o,i)||this;return n.configurationService=e,n.collectionService=o,n.tooltipTemplateService=i,n}return i.__extends(e,t),e.prototype.readTooltipTemplates=function(){},i.__decorate([n.ContentChildren(c.NavigatorSeriesItemComponent),i.__metadata("design:type",n.QueryList)],e.prototype,"children",void 0),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,providers:[a.CollectionService],selector:"kendo-chart-navigator-series",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService,a.CollectionService,s.TooltipTemplateService])],e)}(p.SeriesComponent);e.NavigatorSeriesComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-error-bars",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(78).SeriesErrorBarsComponent);e.NavigatorSeriesErrorBarsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-extremes",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(79).SeriesExtremesComponent);e.NavigatorSeriesExtremesComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-highlight",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(80).SeriesHighlightComponent);e.NavigatorSeriesHighlightComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-labels",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(81).SeriesLabelsComponent);e.NavigatorSeriesLabelsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-labels-from",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(82).SeriesLabelsFromComponent);e.NavigatorSeriesLabelsFromComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-labels-to",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(83).SeriesLabelsToComponent);e.NavigatorSeriesLabelsToComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-markers",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(84).SeriesMarkersComponent);e.NavigatorSeriesMarkersComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-notes",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(85).SeriesNotesComponent);e.NavigatorSeriesNotesComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-notes-icon",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(86).SeriesNotesIconComponent);e.NavigatorSeriesNotesIconComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-notes-label",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(87).SeriesNotesLabelComponent);e.NavigatorSeriesNotesLabelComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-outliers",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(88).SeriesOutliersComponent);e.NavigatorSeriesOutliersComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-tooltip",template:""}),i.__metadata("design:paramtypes",[r.ConfigurationService])],e)}(o(33).SeriesTooltipComponent);e.NavigatorSeriesTooltipComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(3),a=o(10),s=o(27),p=o(24),c=o(22),l=o(15),u=o(11),h=o(18),d=o(19),f=o(25),g=function(t){function e(e,o,i,n,r,a,s,p,c){var l=t.call(this,e,o,i,n,r,a,s,p,c)||this;return l.configurationService=e,l.themeService=o,l.element=i,l.intl=n,l.localizationService=r,l.ngZone=a,l.instanceEventService=s,l.changeDetector=p,l.renderer=c,l.tooltipWrapperClass="k-sparkline-tooltip-wrapper",l.tooltipContentClasses={"k-sparkline-tooltip":!0},l.hostClasses=["k-sparkline","k-widget"],d.validatePackage(f.packageMetadata),l}return i.__extends(e,t),e.prototype.createInstance=function(t,e){this.instance=new u.Sparkline(t,u.Sparkline.normalizeOptions(this.options),this.theme,{intlService:this.intl,observer:e,rtl:this.rtl,sender:this})},e.prototype.updateOptions=function(){this.instance.setOptions(u.Sparkline.normalizeOptions(this.options))},i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Array)],e.prototype,"data",void 0),e=i.__decorate([n.Component({changeDetection:n.ChangeDetectionStrategy.OnPush,exportAs:"kendoSparkline",providers:[r.ConfigurationService,a.TooltipTemplateService,s.InstanceEventService,h.LocalizationService,{provide:h.L10N_PREFIX,useValue:"kendo.chart"}],selector:"kendo-sparkline",template:'\n <span #surface class="k-chart-surface"></span>\n <kendo-chart-crosshair-tooltips-container [popupSettings]="popupSettings">\n </kendo-chart-crosshair-tooltips-container>\n <kendo-chart-tooltip-popup [animate]="false" [wrapperClass]="tooltipWrapperClass"\n [classNames]="tooltipContentClasses" (leave)="tooltipMouseleave($event)" [popupSettings]="popupSettings">\n </kendo-chart-tooltip-popup>\n <kendo-resize-sensor (resize)="onResize($event)"></kendo-resize-sensor>\n '}),i.__metadata("design:paramtypes",[r.ConfigurationService,c.ThemeService,n.ElementRef,l.IntlService,h.LocalizationService,n.NgZone,s.InstanceEventService,n.ChangeDetectorRef,n.Renderer2])],e)}(p.ChartComponent);e.SparklineComponent=g},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(23),a=o(97),s=o(98),p=function(){function t(){}return t=i.__decorate([n.NgModule({exports:[r.ChartModule,s.SparklineModule,a.StockChartModule]})],t)}();e.ChartsModule=p}])}));
|
|
20
|
+
var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)};function r(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var n=function(){return(n=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function a(t,e){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(o[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(o[i[r]]=t[i[r]])}return o}function s(t,e,o,i){var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a}function p(t,e){return function(o,i){e(o,i,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,o,i){return new(o||(o=Promise))((function(r,n){function a(t){try{p(i.next(t))}catch(t){n(t)}}function s(t){try{p(i.throw(t))}catch(t){n(t)}}function p(t){var e;t.done?r(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(a,s)}p((i=i.apply(t,e||[])).next())}))}function u(t,e){var o,i,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(r=2&n[0]?i.return:n[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;switch(i=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}}function h(t,e,o,i){void 0===i&&(i=o),t[i]=e[o]}function d(t,e){for(var o in t)"default"===o||e.hasOwnProperty(o)||(e[o]=t[o])}function g(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],i=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,r,n=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(f(arguments[e]));return t}function y(){for(var t=0,e=0,o=arguments.length;e<o;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<o;e++)for(var n=arguments[e],a=0,s=n.length;a<s;a++,r++)i[r]=n[a];return i}function _(t){return this instanceof _?(this.v=t,this):new _(t)}function m(t,e,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=o.apply(t,e||[]),n=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){r[t]&&(i[t]=function(e){return new Promise((function(o,i){n.push([t,e,o,i])>1||s(t,e)}))})}function s(t,e){try{(o=r[t](e)).value instanceof _?Promise.resolve(o.value.v).then(p,c):l(n[0][2],o)}catch(t){l(n[0][3],t)}var o}function p(t){s("next",t)}function c(t){s("throw",t)}function l(t,e){t(e),n.shift(),n.length&&s(n[0][0],n[0][1])}}function b(t){var e,o;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,r){e[i]=t[i]?function(e){return(o=!o)?{value:_(t[i](e)),done:"return"===i}:r?r(e):e}:r}}function x(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,o=t[Symbol.asyncIterator];return o?o.call(t):(t=g(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(e){return new Promise((function(i,r){(function(t,e,o,i){Promise.resolve(i).then((function(e){t({value:e,done:o})}),e)})(i,r,(e=t[o](e)).done,e.value)}))}}}function C(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function S(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function w(t){return t&&t.__esModule?t:{default:t}}function A(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function k(t,e,o){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,o),o}},function(e,o){e.exports=t},function(t,o){t.exports=e},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(8),a=o(13);e.THROTTLE_MS=1e3/60;var s=function(t,e){this.key=t,this.value=e};e.Change=s;var p=function(){function t(t){this.ngZone=t,this.store={},this.source=new n.BehaviorSubject({}),this.initSource()}return t.prototype.initSource=function(){this.onFastChange$=this.source.asObservable(),this.onChange$=this.onFastChange$.pipe(a.auditTime(e.THROTTLE_MS))},t.prototype.push=function(t){this.store=t,this.next()},t.prototype.notify=function(t){this.set(t.key,t.value),this.next()},t.prototype.set=function(t,e){for(var o=this.store,i=t.split("."),r=i.shift();i.length>0;)o=o[r]=o[r]||{},r=i.shift();o[r]=e},t.prototype.next=function(){var t=this;this.ngZone.runOutsideAngular((function(){t.source.next(t.store)}))},t=i.__decorate([r.Injectable(),i.__metadata("design:paramtypes",[r.NgZone])],t)}();e.ConfigurationService=p},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(3),r=o(31),n=o(32),a=function(){function t(t,e){if(this.configKey=t,this.configurationService=e,this.store={},void 0===t)throw new Error("Configuration key not set")}return t.prototype.ngOnDestroy=function(){this.store=void 0,this.notify()},t.prototype.ngOnChanges=function(t){r.copyChanges(t,this.store),this.notify()},t.prototype.notifyChanges=function(t){this.ngOnChanges(n.toSimpleChanges(t))},t.prototype.markAsVisible=function(){this.store.visible=!0,this.notify()},t.prototype.notify=function(){this.configurationService.notify(new i.Change(this.configKey,this.store))},t}();e.SettingsComponent=a},function(t,e,o){"use strict";o.r(e),o.d(e,"ResizeService",(function(){return U})),o.d(e,"PreventableEvent",(function(){return et})),o.d(e,"DraggableDirective",(function(){return S})),o.d(e,"DraggableModule",(function(){return w})),o.d(e,"closestInScope",(function(){return A})),o.d(e,"closest",(function(){return k})),o.d(e,"contains",(function(){return I})),o.d(e,"findElement",(function(){return O})),o.d(e,"findFocusableChild",(function(){return D})),o.d(e,"findFocusable",(function(){return E})),o.d(e,"hasClasses",(function(){return R})),o.d(e,"isFocusableWithTabKey",(function(){return M})),o.d(e,"isFocusable",(function(){return j})),o.d(e,"isVisible",(function(){return T})),o.d(e,"matchesClasses",(function(){return L})),o.d(e,"matchesNodeName",(function(){return z})),o.d(e,"rtlScrollPosition",(function(){return N})),o.d(e,"EventsOutsideAngularDirective",(function(){return G})),o.d(e,"EventsModule",(function(){return H})),o.d(e,"ResizeSensorComponent",(function(){return Q})),o.d(e,"ResizeBatchService",(function(){return K})),o.d(e,"ResizeCompatService",(function(){return Y})),o.d(e,"ResizeObserverService",(function(){return Z})),o.d(e,"ResizeSensorModule",(function(){return J})),o.d(e,"KendoInput",(function(){return tt})),o.d(e,"isDocumentAvailable",(function(){return _})),o.d(e,"isChanged",(function(){return m})),o.d(e,"anyChanged",(function(){return b})),o.d(e,"hasObservers",(function(){return x})),o.d(e,"guid",(function(){return C})),o.d(e,"Keys",(function(){return F}));var i=o(0),r=o(2),n=function(t,e){return function(o){return e(t(o))}},a=function(t,e,o){return t.addEventListener&&t.addEventListener(e,o)},s=function(t,e,o){return t&&t.removeEventListener&&t.removeEventListener(e,o)},p=function(){},c=function(t){return t.preventDefault()},l=/touch/;function u(t){return t.type.match(l)?{pageX:t.changedTouches[0].pageX,pageY:t.changedTouches[0].pageY,clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,type:t.type,originalEvent:t,isTouch:!0}:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,offsetX:t.offsetX,offsetY:t.offsetY,type:t.type,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,originalEvent:t}}var h=function(t){var e=this,o=t.press;void 0===o&&(o=p);var i=t.drag;void 0===i&&(i=p);var r=t.release;void 0===r&&(r=p);var l=t.mouseOnly;void 0===l&&(l=!1),this._pressHandler=n(u,o),this._dragHandler=n(u,i),this._releaseHandler=n(u,r),this._ignoreMouse=!1,this._mouseOnly=l,this._touchstart=function(t){1===t.touches.length&&e._pressHandler(t)},this._touchmove=function(t){1===t.touches.length&&e._dragHandler(t)},this._touchend=function(t){0===t.touches.length&&1===t.changedTouches.length&&(e._releaseHandler(t),e._ignoreMouse=!0,setTimeout(e._restoreMouse,2e3))},this._restoreMouse=function(){e._ignoreMouse=!1},this._mousedown=function(t){var o=t.which;o&&o>1||e._ignoreMouse||(a(e.document,"mousemove",e._mousemove),a(e.document,"mouseup",e._mouseup),e._pressHandler(t))},this._mousemove=function(t){e._dragHandler(t)},this._mouseup=function(t){s(e.document,"mousemove",e._mousemove),s(e.document,"mouseup",e._mouseup),e._releaseHandler(t)},this._pointerdown=function(t){t.isPrimary&&0===t.button&&(a(e.document,"pointermove",e._pointermove),a(e.document,"pointerup",e._pointerup),a(e.document,"pointercancel",e._pointerup),a(e.document,"contextmenu",c),e._pressHandler(t))},this._pointermove=function(t){t.isPrimary&&e._dragHandler(t)},this._pointerup=function(t){t.isPrimary&&(s(e.document,"pointermove",e._pointermove),s(e.document,"pointerup",e._pointerup),s(e.document,"pointercancel",e._pointerup),s(e.document,"contextmenu",c),e._releaseHandler(t))}},d={document:{configurable:!0}};h.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},d.document.get=function(){return this._element?this._element.ownerDocument:document},h.prototype.bindTo=function(t){t!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=t,this._bindToCurrent())},h.prototype._bindToCurrent=function(){var t=this._element;this._usePointers()?a(t,"pointerdown",this._pointerdown):(a(t,"mousedown",this._mousedown),this._mouseOnly||(a(t,"touchstart",this._touchstart),a(t,"touchmove",this._touchmove),a(t,"touchend",this._touchend)))},h.prototype._unbindFromCurrent=function(){var t=this._element;if(this._usePointers())return s(t,"pointerdown",this._pointerdown),s(this.document,"pointermove",this._pointermove),s(this.document,"pointerup",this._pointerup),s(this.document,"contextmenu",c),void s(this.document,"pointercancel",this._pointerup);s(t,"mousedown",this._mousedown),this._mouseOnly||(s(t,"touchstart",this._touchstart),s(t,"touchmove",this._touchmove),s(t,"touchend",this._touchend))},h.prototype._usePointers=function(){return!this._mouseOnly&&h.supportPointerEvent()},h.prototype.update=function(t){var e=t.press;void 0===e&&(e=p);var o=t.drag;void 0===o&&(o=p);var i=t.release;void 0===i&&(i=p);var r=t.mouseOnly;void 0===r&&(r=!1),this._pressHandler=n(u,e),this._dragHandler=n(u,o),this._releaseHandler=n(u,i),this._mouseOnly=r},h.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(h.prototype,d),h.default=h;var g=h,f=o(12),v=o(13),y=o(8),_=function(){return"undefined"!=typeof document},m=function(t,e,o){return void 0===o&&(o=!0),!(void 0===e[t]||e[t].isFirstChange()&&o||e[t].previousValue===e[t].currentValue)},b=function(t,e,o){return void 0===o&&(o=!0),t.some((function(t){return m(t,e,o)}))},x=function(t){return t&&t.observers.length>0},C=function(){for(var t="",e=0;e<32;e++){var o=16*Math.random()|0;8!==e&&12!==e&&16!==e&&20!==e||(t+="-"),t+=(12===e?4:16===e?3&o|8:o).toString(16)}return t},S=function(){function t(t,e){this.element=t,this.ngZone=e,this.enableDrag=!0,this.kendoPress=new r.EventEmitter,this.kendoDrag=new r.EventEmitter,this.kendoRelease=new r.EventEmitter}return t.prototype.ngOnInit=function(){this.toggleDraggable()},t.prototype.ngOnChanges=function(t){m("enableDrag",t)&&this.toggleDraggable()},t.prototype.ngOnDestroy=function(){this.destroyDraggable()},t.prototype.toggleDraggable=function(){var t=this;_()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new g({drag:function(e){return t.kendoDrag.next(e)},press:function(e){return t.kendoPress.next(e)},release:function(e){return t.kendoRelease.next(e)}}),this.ngZone.runOutsideAngular((function(){return t.draggable.bindTo(t.element.nativeElement)}))))},t.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"enableDrag",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],t.prototype,"kendoPress",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],t.prototype,"kendoDrag",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],t.prototype,"kendoRelease",void 0),t=Object(i.__decorate)([Object(r.Directive)({selector:"[kendoDraggable]"}),Object(i.__metadata)("design:paramtypes",[r.ElementRef,r.NgZone])],t)}(),w=function(){function t(){}return t=Object(i.__decorate)([Object(r.NgModule)({declarations:[S],exports:[S],imports:[f.CommonModule]})],t)}(),A=function(t,e,o){for(;t&&t!==o&&!e(t);)t=t.parentNode;if(t!==o)return t},k=function(t,e){for(;t&&!e(t);)t=t.parentNode;return t},I=function(t,e,o){if(void 0===o&&(o=!1),!k(e,(function(e){return e===t})))return!1;var i=k(e,(function(t){return t===e}));return i&&(o||i!==t)},O=function(t,e,o){if(void 0===o&&(o=!0),t){if(o&&e(t))return t;for(t=t.firstChild;t;){if(1===t.nodeType){var i=O(t,e);if(i)return i}t=t.nextSibling}}},P=/^(?:a|input|select|option|textarea|button|object)$/i,j=function(t){if(!t.tagName)return!1;var e=t.tagName.toLowerCase(),o=Boolean(t.getAttribute("tabIndex"));return!t.disabled&&P.test(e)||o},T=function(t){var e=t.getBoundingClientRect(),o=e.width>0&&e.height>0,i=0!==e.x&&0!==e.y;return(o||i)&&"hidden"!==window.getComputedStyle(t).visibility},M=function(t,e){if(void 0===e&&(e=!0),!j(t))return!1;var o=t.getAttribute("tabIndex");return(!e||T(t))&&"-1"!==o},D=function(t,e){return void 0===e&&(e=!0),O(t,(function(t){return M(t,e)}),!1)},E=function(t,e){return void 0===e&&(e=!0),O(t,(function(t){return M(t,e)}))},B=function(t){return String(t).trim().split(" ")},R=function(t,e){var o=B(e);return Boolean(B(t.className).find((function(t){return o.indexOf(t)>=0})))},L=function(t){return function(e){return R(e,t)}},V={},z=function(t){return V[t]||(V[t]=function(e){return String(e.nodeName).toLowerCase()===t.toLowerCase()}),V[t]};function N(t,e,o){var i=t;return o<0?i=-t:o>0&&(i=e.scrollWidth-e.offsetWidth-t),i}var F,G=function(){function t(t,e,o){this.element=t,this.ngZone=e,this.renderer=o,this.events={}}return t.prototype.ngOnInit=function(){var t=this;if(this.element&&this.element.nativeElement){var e=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular((function(){for(var o in e)e.hasOwnProperty(o)&&t.subscriptions.push(t.renderer.listen(t.element.nativeElement,o,t.scope?e[o].bind(t.scope):e[o]))}))}},t.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var t=0;t<this.subscriptions.length;t++)this.subscriptions[t]();this.subscriptions=null}},Object(i.__decorate)([Object(r.Input)("kendoEventsOutsideAngular"),Object(i.__metadata)("design:type",Object)],t.prototype,"events",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],t.prototype,"scope",void 0),t=Object(i.__decorate)([Object(r.Directive)({selector:"[kendoEventsOutsideAngular]"}),Object(i.__metadata)("design:paramtypes",[r.ElementRef,r.NgZone,r.Renderer2])],t)}(),H=function(){function t(){}return t=Object(i.__decorate)([Object(r.NgModule)({declarations:[G],exports:[G]})],t)}(),U=function(){function t(t){this.resizeBatchService=t,this.resize=new r.EventEmitter,this.acceptedSize=!1,this.state=0}return t.prototype.acceptSize=function(t){void 0===t&&(t=this.measure()),this.lastWidth=t.width,this.lastHeight=t.height,this.acceptedSize=!0},t.prototype.checkChanges=function(){_()&&0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))},t.prototype.destroy=function(){this.resizeBatchService.cancel(this)},t.prototype.checkSize=function(){if(this.parentElement){var t=this.measure(),e=t.width,o=t.height;if(!(e===this.lastWidth&&o===this.lastHeight))return this.lastWidth=e,this.lastHeight=o,this.acceptedSize=!1,this.resize.emit(),!0}},t.prototype.initSize=function(){var t=this.measure();this.lastWidth=t.width,this.lastHeight=t.height},t.prototype.measure=function(){var t=0,e=0;return this.parentElement&&(e=this.parentElement.offsetHeight,t=this.parentElement.offsetWidth),{height:e,width:t}},t}(),W=function(t){var e=document.createElement("div");return e.style.cssText=t,e},X="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",Y=function(t){function e(e,o,i){var r=t.call(this,e)||this;return r.element=o,r.ngZone=i,r}return Object(i.__extends)(e,t),e.prototype.checkChanges=function(){2!==this.state?t.prototype.checkChanges.call(this):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)},e.prototype.destroy=function(){if(t.prototype.destroy.call(this),this.subscription&&this.subscription.unsubscribe(),this.expand){var e=this.element.nativeElement;e.removeChild(this.expand),e.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}},e.prototype.checkSize=function(){if(t.prototype.checkSize.call(this))return this.reset(),!0},e.prototype.init=function(){var t,e=this.parentElement=this.element.nativeElement.parentElement;"static"===(t="position",getComputedStyle(e,null).getPropertyValue(t))&&(e.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()},e.prototype.render=function(){var t=this.element.nativeElement;t.style.cssText=X,t.setAttribute("dir","ltr"),this.expand=W(X),this.expandChild=W("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),t.appendChild(this.expand),this.shrink=W(X);var e=W("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(e),t.appendChild(this.shrink)},e.prototype.reset=function(){var t=this.expandChild;t.style.width="100000px",t.style.height="100000px";var e=this.expand;e.scrollLeft=1e5,e.scrollTop=1e5;var o=this.shrink;o.scrollLeft=1e5,o.scrollTop=1e5},e.prototype.subscribe=function(){var t=this;this.ngZone.runOutsideAngular((function(){t.subscription=Object(y.merge)(Object(y.fromEvent)(t.shrink,"scroll"),Object(y.fromEvent)(t.expand,"scroll")).subscribe((function(){t.checkSize()}))}))},e}(U),q="undefined"!=typeof ResizeObserver,Z=function(t){function e(e,o,i){var r=t.call(this,e)||this;return r.element=o,r.ngZone=i,r}return Object(i.__extends)(e,t),e.supported=function(){return q},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null},e.prototype.init=function(){var t=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular((function(){t.resizeObserver=new ResizeObserver((function(){t.checkSize()})),t.resizeObserver.observe(t.parentElement)}))},e}(U),K=function(){function t(t){this.ngZone=t,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return t.prototype.schedule=function(t,e){var o=this;this.scheduled.push({instance:t,method:e}),this.subscription||this.ngZone.runOutsideAngular((function(){o.subscription=Object(y.from)(o.resolvedPromise).subscribe(o.flush)}))},t.prototype.isScheduled=function(t){return Boolean(this.scheduled.find((function(e){return e.instance===t})))},t.prototype.cancel=function(t){for(var e=this.scheduled,o=e.length,i=0;i<o;i++)if(e[i].instance===t)return e.splice(i,1),void(e.length||this.unsubscribe())},t.prototype.ngOnDestroy=function(){this.unsubscribe()},t.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},t.prototype.flush=function(){this.scheduled.forEach((function(t){t.method.call(t.instance)})),this.scheduled=[],this.unsubscribe()},t=Object(i.__decorate)([Object(r.Injectable)(),Object(i.__metadata)("design:paramtypes",[r.NgZone])],t)}(),Q=function(){function t(t,e,o){var i=this;this.rateLimit=10,this.resize=new r.EventEmitter;var n=Z.supported()?Z:Y;this.resizeService=new n(t,e,o);var a=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(v.auditTime)(a)).subscribe((function(){i.resizeService.acceptedSize||i.resize.emit()}))}return t.prototype.ngAfterViewChecked=function(){this.resizeService.checkChanges()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.resizeService.destroy()},t.prototype.acceptSize=function(t){this.resizeService.acceptSize(t)},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"rateLimit",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],t.prototype,"resize",void 0),t=Object(i.__decorate)([Object(r.Component)({selector:"kendo-resize-sensor",template:""}),Object(i.__metadata)("design:paramtypes",[K,r.ElementRef,r.NgZone])],t)}(),$=[Q],J=function(){function t(){}return t=Object(i.__decorate)([Object(r.NgModule)({declarations:[$],exports:[$],providers:[K]})],t)}(),tt=function(){};!function(t){t[t.Alt=18]="Alt",t[t.ArrowDown=40]="ArrowDown",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowUp=38]="ArrowUp",t[t.Backspace=8]="Backspace",t[t.Control=17]="Control",t[t.Delete=46]="Delete",t[t.Digit0=48]="Digit0",t[t.Digit1=49]="Digit1",t[t.Digit2=50]="Digit2",t[t.Digit3=51]="Digit3",t[t.Digit4=52]="Digit4",t[t.Digit5=53]="Digit5",t[t.Digit6=54]="Digit6",t[t.Digit7=55]="Digit7",t[t.Digit8=56]="Digit8",t[t.Digit9=57]="Digit9",t[t.End=35]="End",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F10=121]="F10",t[t.Home=36]="Home",t[t.Insert=45]="Insert",t[t.KeyA=65]="KeyA",t[t.KeyB=66]="KeyB",t[t.KeyC=67]="KeyC",t[t.KeyD=68]="KeyD",t[t.KeyE=69]="KeyE",t[t.KeyF=70]="KeyF",t[t.KeyG=71]="KeyG",t[t.KeyH=72]="KeyH",t[t.KeyI=73]="KeyI",t[t.KeyJ=74]="KeyJ",t[t.KeyK=75]="KeyK",t[t.KeyL=76]="KeyL",t[t.KeyM=77]="KeyM",t[t.KeyN=78]="KeyN",t[t.KeyO=79]="KeyO",t[t.KeyP=80]="KeyP",t[t.KeyQ=81]="KeyQ",t[t.KeyR=82]="KeyR",t[t.KeyS=83]="KeyS",t[t.KeyT=84]="KeyT",t[t.KeyU=85]="KeyU",t[t.KeyV=86]="KeyV",t[t.KeyW=87]="KeyW",t[t.KeyX=88]="KeyX",t[t.KeyY=89]="KeyY",t[t.KeyZ=90]="KeyZ",t[t.NumpadDecimal=110]="NumpadDecimal",t[t.PageDown=34]="PageDown",t[t.PageUp=33]="PageUp",t[t.Shift=16]="Shift",t[t.Space=32]="Space",t[t.Tab=9]="Tab"}(F||(F={}));var et=function(){function t(){this.prevented=!1}return t.prototype.preventDefault=function(){this.prevented=!0},t.prototype.isDefaultPrevented=function(){return this.prevented},t}()},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(8),a=function(t,e){this.sender=t,this.options=e};e.ItemChange=a;var s=function(){function t(){this.source=new n.Subject,this.onItemChange$=this.source.asObservable()}return t.prototype.notify=function(t){this.source.next(t)},t=i.__decorate([r.Injectable(),i.__metadata("design:paramtypes",[])],t)}();e.CollectionService=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){this.sender=t};e.BaseEvent=i},function(t,e){t.exports=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.prevented=!1,e}return i.__extends(e,t),e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}(o(7).BaseEvent);e.PreventableEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(){function t(){}return t.prototype.setTemplate=function(t){this.template=t},t.prototype.getTemplate=function(t){return this.seriesTemplates&&this.seriesTemplates[t]?this.seriesTemplates[t]:this.template},t.prototype.setSeriesTemplates=function(t){this.seriesTemplates=t},t.prototype.setSharedTemplate=function(t){this.sharedTemplate=t},t.prototype.getSharedTemplate=function(){return this.sharedTemplate},t=i.__decorate([r.Injectable()],t)}();e.TooltipTemplateService=n},function(t,e,o){"use strict";o.r(e),o.d(e,"autoMajorUnit",(function(){return Rt})),o.d(e,"Point",(function(){return Lt})),o.d(e,"Box",(function(){return zt})),o.d(e,"Ring",(function(){return Ft})),o.d(e,"Sector",(function(){return Gt})),o.d(e,"ShapeBuilder",(function(){return Ut})),o.d(e,"ShapeElement",(function(){return Kt})),o.d(e,"ChartElement",(function(){return Xt})),o.d(e,"BoxElement",(function(){return qt})),o.d(e,"RootElement",(function(){return te})),o.d(e,"FloatElement",(function(){return oe})),o.d(e,"Text",(function(){return ne})),o.d(e,"TextBox",(function(){return pe})),o.d(e,"Title",(function(){return le})),o.d(e,"AxisLabel",(function(){return he})),o.d(e,"Axis",(function(){return Me})),o.d(e,"Note",(function(){return ge})),o.d(e,"CategoryAxis",(function(){return to})),o.d(e,"DateCategoryAxis",(function(){return co})),o.d(e,"DateValueAxis",(function(){return mo})),o.d(e,"NumericAxis",(function(){return yo})),o.d(e,"LogarithmicAxis",(function(){return So})),o.d(e,"PolarAxis",(function(){return Oo})),o.d(e,"RadarCategoryAxis",(function(){return ko})),o.d(e,"RadarNumericAxis",(function(){return Mo})),o.d(e,"RadarLogarithmicAxis",(function(){return Eo})),o.d(e,"CurveProcessor",(function(){return Ro})),o.d(e,"Gradients",(function(){return Qt})),o.d(e,"rectToBox",(function(){return ae})),o.d(e,"ChartAxis",(function(){return Lo})),o.d(e,"ChartPane",(function(){return No})),o.d(e,"ChartPlotArea",(function(){return Fo})),o.d(e,"findAxisByName",(function(){return Vo})),o.d(e,"Aggregates",(function(){return Uo})),o.d(e,"AreaChart",(function(){return Ri})),o.d(e,"AreaSegment",(function(){return Mi})),o.d(e,"AxisGroupRangeTracker",(function(){return Li})),o.d(e,"Bar",(function(){return Gi})),o.d(e,"BarChart",(function(){return Ki})),o.d(e,"BarLabel",(function(){return zi})),o.d(e,"BoxPlotChart",(function(){return nr})),o.d(e,"BoxPlot",(function(){return ir})),o.d(e,"BubbleChart",(function(){return dr})),o.d(e,"Bullet",(function(){return yr})),o.d(e,"BulletChart",(function(){return mr})),o.d(e,"CandlestickChart",(function(){return er})),o.d(e,"Candlestick",(function(){return $i})),o.d(e,"CategoricalChart",(function(){return di})),o.d(e,"CategoricalErrorBar",(function(){return ci})),o.d(e,"CategoricalPlotArea",(function(){return wn})),o.d(e,"Chart",(function(){return ds})),o.d(e,"ChartContainer",(function(){return Ir})),o.d(e,"ClipAnimation",(function(){return Ii})),o.d(e,"ClusterLayout",(function(){return Xi})),o.d(e,"Crosshair",(function(){return Ar})),o.d(e,"CrosshairTooltip",(function(){return Sr})),o.d(e,"DefaultAggregates",(function(){return Jr})),o.d(e,"DonutChart",(function(){return va})),o.d(e,"DonutPlotArea",(function(){return ya})),o.d(e,"DonutSegment",(function(){return ga})),o.d(e,"ErrorBarBase",(function(){return pi})),o.d(e,"ErrorRangeCalculator",(function(){return Ko})),o.d(e,"Highlight",(function(){return kn})),o.d(e,"SharedTooltip",(function(){return Xn})),o.d(e,"Legend",(function(){return Ln})),o.d(e,"LegendItem",(function(){return Bn})),o.d(e,"LegendLayout",(function(){return En})),o.d(e,"LineChart",(function(){return Ti})),o.d(e,"LinePoint",(function(){return yi})),o.d(e,"LineSegment",(function(){return mi})),o.d(e,"Pane",(function(){return jr})),o.d(e,"PieAnimation",(function(){return Qn})),o.d(e,"PieChart",(function(){return ua})),o.d(e,"PieChartMixin",(function(){return pa})),o.d(e,"PiePlotArea",(function(){return ha})),o.d(e,"PieSegment",(function(){return sa})),o.d(e,"PlotAreaBase",(function(){return qr})),o.d(e,"PlotAreaEventsMixin",(function(){return Zr})),o.d(e,"PlotAreaFactory",(function(){return zn})),o.d(e,"PointEventsMixin",(function(){return gi})),o.d(e,"RangeBar",(function(){return en})),o.d(e,"RangeBarChart",(function(){return rn})),o.d(e,"RangeAreaPoint",(function(){return sn})),o.d(e,"RangeAreaChart",(function(){return dn})),o.d(e,"ScatterChart",(function(){return cr})),o.d(e,"ScatterErrorBar",(function(){return ar})),o.d(e,"ScatterLineChart",(function(){return Jn})),o.d(e,"Selection",(function(){return Hn})),o.d(e,"SeriesAggregator",(function(){return Qr})),o.d(e,"SeriesBinder",(function(){return Yo})),o.d(e,"SplineSegment",(function(){return wi})),o.d(e,"SplineAreaSegment",(function(){return Bi})),o.d(e,"StackWrap",(function(){return qi})),o.d(e,"Tooltip",(function(){return Un})),o.d(e,"OHLCChart",(function(){return fn})),o.d(e,"OHLCPoint",(function(){return gn})),o.d(e,"WaterfallChart",(function(){return _n})),o.d(e,"WaterfallSegment",(function(){return yn})),o.d(e,"XYPlotArea",(function(){return oa})),o.d(e,"MousewheelZoom",(function(){return Dn})),o.d(e,"ZoomSelection",(function(){return Mn})),o.d(e,"Pannable",(function(){return jn})),o.d(e,"anyHasZIndex",(function(){return Oi})),o.d(e,"appendIfNotNull",(function(){return Tr})),o.d(e,"areNumbers",(function(){return Ji})),o.d(e,"bindSegments",(function(){return Dr})),o.d(e,"categoriesCount",(function(){return ui})),o.d(e,"countNumbers",(function(){return Go})),o.d(e,"equalsIgnoreCase",(function(){return Er})),o.d(e,"evalOptions",(function(){return li})),o.d(e,"filterSeriesByType",(function(){return Br})),o.d(e,"getDateField",(function(){return Rr})),o.d(e,"getField",(function(){return Wo})),o.d(e,"hasGradientOverlay",(function(){return Ni})),o.d(e,"hasValue",(function(){return sr})),o.d(e,"isDateAxis",(function(){return Lr})),o.d(e,"segmentVisible",(function(){return Mr})),o.d(e,"singleItemOrArray",(function(){return Vr})),o.d(e,"createOutOfRangePoints",(function(){return Gr})),o.d(e,"ChartService",(function(){return ke})),o.d(e,"DomEventsBuilder",(function(){return Oe})),o.d(e,"FormatService",(function(){return Ce})),o.d(e,"IntlService",(function(){return _e})),o.d(e,"TemplateService",(function(){return F})),o.d(e,"Sparkline",(function(){return bs})),o.d(e,"Navigator",(function(){return Os})),o.d(e,"NavigatorHint",(function(){return ws})),o.d(e,"StockChart",(function(){return js})),o.d(e,"constants",(function(){return i})),o.d(e,"Gauge",(function(){return Gs})),o.d(e,"LinearGauge",(function(){return hp})),o.d(e,"LinearPointer",(function(){return Js})),o.d(e,"ArrowLinearPointer",(function(){return rp})),o.d(e,"BarLinearPointer",(function(){return cp})),o.d(e,"LinearScale",(function(){return Zs})),o.d(e,"RadialGauge",(function(){return Pp})),o.d(e,"RadialPointer",(function(){return kp})),o.d(e,"RadialScale",(function(){return mp})),o.d(e,"ArcGauge",(function(){return Rp})),o.d(e,"RangePointer",(function(){return Bp})),o.d(e,"ArcScale",(function(){return Tp})),o.d(e,"CircularGauge",(function(){return Lp})),o.d(e,"Barcode",(function(){return wc})),o.d(e,"barcodeValidator",(function(){return kc})),o.d(e,"QRCode",(function(){return Ol})),o.d(e,"qrcodeValidator",(function(){return Pl})),o.d(e,"addClass",(function(){return x})),o.d(e,"removeClass",(function(){return S})),o.d(e,"alignPathToPixel",(function(){return A})),o.d(e,"clockwise",(function(){return k})),o.d(e,"convertableToNumber",(function(){return P})),o.d(e,"deepExtend",(function(){return M})),o.d(e,"elementStyles",(function(){return L})),o.d(e,"getSpacing",(function(){return V})),o.d(e,"getTemplate",(function(){return G})),o.d(e,"getter",(function(){return W})),o.d(e,"grep",(function(){return X})),o.d(e,"hasClasses",(function(){return Y})),o.d(e,"HashMap",(function(){return Z})),o.d(e,"inArray",(function(){return K})),o.d(e,"interpolateValue",(function(){return Q})),o.d(e,"InstanceObserver",(function(){return J})),o.d(e,"isArray",(function(){return b})),o.d(e,"isFunction",(function(){return j})),o.d(e,"isNumber",(function(){return I})),o.d(e,"isObject",(function(){return D})),o.d(e,"isString",(function(){return O})),o.d(e,"map",(function(){return tt})),o.d(e,"mousewheelDelta",(function(){return ot})),o.d(e,"FontLoader",(function(){return bt})),o.d(e,"setDefaultOptions",(function(){return xt})),o.d(e,"sparseArrayLimits",(function(){return Ct})),o.d(e,"styleValue",(function(){return E})),o.d(e,"find",(function(){return St})),o.d(e,"elementScale",(function(){return It})),o.d(e,"autoTextColor",(function(){return Ot})),o.d(e,"createHashSet",(function(){return Et})),o.d(e,"defaultErrorHandler",(function(){return Bt})),o.d(e,"append",(function(){return rt})),o.d(e,"bindEvents",(function(){return nt})),o.d(e,"Class",(function(){return w.Class})),o.d(e,"defined",(function(){return at})),o.d(e,"deg",(function(){return st})),o.d(e,"elementOffset",(function(){return pt})),o.d(e,"elementSize",(function(){return ct})),o.d(e,"eventElement",(function(){return lt})),o.d(e,"eventCoordinates",(function(){return ut})),o.d(e,"last",(function(){return ht})),o.d(e,"limitValue",(function(){return dt})),o.d(e,"logToConsole",(function(){return w.logToConsole})),o.d(e,"objectKey",(function(){return gt})),o.d(e,"rad",(function(){return ft})),o.d(e,"round",(function(){return vt})),o.d(e,"unbindEvents",(function(){return yt})),o.d(e,"valueOrDefault",(function(){return _t})),o.d(e,"chartBaseTheme",(function(){return Bl}));var i={};o.r(i),o.d(i,"NAVIGATOR_AXIS",(function(){return ks})),o.d(i,"NAVIGATOR_PANE",(function(){return As}));var r="arc",n="#000",a="bottom",s="center",p="circle",c="date",l=/\{\d+:?/,u="left",h=Number.MAX_VALUE,d=-Number.MAX_VALUE,g="right",f="top",v="value",y="#fff",_="x",m="y";function b(t){return Array.isArray(t)}function x(t,e){for(var o=b(e)?e:[e],i=0;i<o.length;i++){var r=o[i];-1===t.className.indexOf(r)&&(t.className+=" "+r)}}var C=/\s+/g;function S(t,e){t&&t.className&&(t.className=t.className.replace(e,"").replace(C," "))}var w=o(1);function A(t){var e=.5;t.options.stroke&&w.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 k(t,e){return-t.x*e.y+t.y*e.x<0}function I(t){return"number"==typeof t&&!isNaN(t)}function O(t){return"string"==typeof t}function P(t){return I(t)||O(t)&&isFinite(t)}function j(t){return"function"==typeof t}function T(t,e){for(var o in e){var i=e[o],r=typeof i,n=void 0;if((n="object"===r&&null!==i?i.constructor:null)&&n!==Array)if(i instanceof Date)t[o]=new Date(i.getTime());else if(j(i.clone))t[o]=i.clone();else{var a=t[o];t[o]="object"==typeof a&&a||{},T(t[o],i)}else"undefined"!==r&&(t[o]=i)}return t}function M(t){for(var e=arguments,o=arguments.length,i=1;i<o;i++)T(t,e[i]);return t}function D(t){return"object"==typeof t}function E(t){return I(t)?t+"px":t}var B=/width|height|top|left|bottom|right/i;function R(t){return B.test(t)}function L(t,e){var o=O(e)?[e]:e;if(b(o)){for(var i={},r=window.getComputedStyle(t),n=0;n<o.length;n++){var a=o[n];i[a]=R(a)?parseFloat(r[a]):r[a]}return i}if(D(e))for(var s in e)t.style[s]=E(e[s])}function V(t,e){void 0===e&&(e=0);var o={top:0,right:0,bottom:0,left:0};return"number"==typeof t?o.top=o[g]=o[a]=o[u]=t:(o.top=t.top||e,o[g]=t[g]||e,o[a]=t[a]||e,o[u]=t[u]||e),o}var z={compile:function(t){return t}},N=function(){};N.register=function(t){z=t},N.compile=function(t){return z.compile(t)};var F=N;function G(t){var e;return void 0===t&&(t={}),t.template?t.template=e=F.compile(t.template):j(t.content)&&(e=t.content),e}var H=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,U={};function W(t){if(U[t])return U[t];var e=[];return t.replace(H,(function(t,o,i,r){e.push(w.drawing.util.defined(o)?o:i||r)})),U[t]=function(t){for(var o=t,i=0;i<e.length&&o;i++)o=o[e[i]];return o},U[t]}function X(t,e){for(var o=t.length,i=[],r=0;r<o;r++)e(t[r])&&i.push(t[r]);return i}function Y(t,e){if(t.className)for(var o=e.split(" "),i=0;i<o.length;i++)if(-1!==t.className.indexOf(o[i]))return!0}U[void 0]=function(t){return t};var q=function(){this._map={}};q.prototype.get=function(t){return this._map[this._key(t)]},q.prototype.set=function(t,e){this._map[this._key(t)]=e},q.prototype._key=function(t){return t instanceof Date?t.getTime():t};var Z=q;function K(t,e){if(e)return-1!==e.indexOf(t)}function Q(t,e,o){return w.drawing.util.round(t+(e-t)*o,3)}var $=function(t,e){this.observer=t,this.handlerMap=M({},this.handlerMap,e)};$.prototype.trigger=function(t,e){var o,i=this.observer,r=this.handlerMap;return r[t]?o=this.callObserver(r[t],e):i.trigger&&(o=this.callObserver("trigger",t,e)),o},$.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)},$.prototype.requiresHandlers=function(t){if(this.observer.requiresHandlers)return this.observer.requiresHandlers(t);for(var e=0;e<t.length;e++)if(this.handlerMap[t[e]])return!0};var J=$;function tt(t,e){for(var o=t.length,i=[],r=0;r<o;r++){var n=e(t[r]);w.drawing.util.defined(n)&&i.push(n)}return i}var et=w.support.browser||{};function ot(t){var e=0;return t.wheelDelta?(e=-t.wheelDelta/120,et.webkit&&(e/=2*Math.max(window.devicePixelRatio,.625))):t.detail&&(e=t.detail/3),e=e>0?Math.ceil(e):Math.floor(e)}var it=w.drawing.util,rt=it.append,nt=it.bindEvents,at=it.defined,st=it.deg,pt=it.elementOffset,ct=it.elementSize,lt=it.eventElement,ut=it.eventCoordinates,ht=it.last,dt=it.limitValue,gt=it.objectKey,ft=it.rad,vt=it.round,yt=it.unbindEvents,_t=it.valueOrDefault,mt=function(){};mt.fetchFonts=function(t,e,o){void 0===o&&(o={depth:0});!t||o.depth>5||!document.fonts||Object.keys(t).forEach((function(i){var r=t[i];"dataSource"!==i&&"$"!==i[0]&&r&&("font"===i?e.push(r):"object"==typeof r&&(o.depth++,mt.fetchFonts(r,e,o),o.depth--))}))},mt.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){Object(w.logToConsole)(t)}Promise.all(o).then(e,e)}else e()},mt.preloadFonts=function(t,e){var o=[];mt.fetchFonts(t,o),mt.loadFonts(o,e)};var bt=mt;function xt(t,e){var o=t.prototype;o.options?o.options=M({},o.options,e):o.options=e}function Ct(t){for(var e=h,o=d,i=0,r=t.length;i<r;i++){var n=t[i];null!==n&&isFinite(n)&&(e=Math.min(e,n),o=Math.max(o,n))}return{min:e===h?void 0:e,max:o===d?void 0:o}}function St(t,e){for(var o=0;o<t.length;o++){var i=t[o];if(e(i,o,t))return i}}var wt=w.geometry.Matrix,At=/matrix\((.*)\)/;function kt(t){var e=getComputedStyle(t).transform;return"none"===e?wt.unit():function(t){var e=t.match(At);if(null===e||2!==e.length)return wt.unit();var o=e[1].split(",").map((function(t){return parseFloat(t)}));return new(Function.prototype.bind.apply(wt,[null].concat(o)))}(e)}function It(t){if(!t)return wt.unit();for(var e=kt(t),o=t.parentElement;o;){var i=kt(o);e=e.multiplyCopy(i),o=o.parentElement}return e.b=e.c=e.e=e.f=0,e}var Ot=function(t){return new w.Color(t).isDark()?y:n},Pt={},jt=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},Tt={size:{configurable:!0}};jt.prototype.values=function(){return this._values.filter((function(t){return t!==Pt}))},jt.prototype.has=function(t){return void 0!==this._index[t]},jt.prototype.add=function(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))},jt.prototype.delete=function(t){var e=this._index[t];void 0!==e&&(this._values[e]=Pt,delete this._index[t])},jt.prototype.clear=function(){this._index={},this._values=[]},Tt.size.get=function(){return this._values.length},Object.defineProperties(jt.prototype,Tt);var Mt=function(t){this._set=new Set(t)},Dt={size:{configurable:!0}};Mt.prototype.values=function(){return Array.from(this._set)},Mt.prototype.has=function(t){return this._set.has(t)},Mt.prototype.add=function(t){this._set.add(t)},Mt.prototype.delete=function(t){this._set.delete(t)},Mt.prototype.clear=function(){this._set.clear()},Dt.size.get=function(){return this._set.size},Object.defineProperties(Mt.prototype,Dt);function Et(t){return function(){var t=!1;"function"==typeof Set&&(t=new Set([1]).has(1));return t}()?new Mt(t):new jt(t)}function Bt(t){throw t}function Rt(t,e){var o=vt(e-t,9);if(0===o){if(0===e)return.1;o=Math.abs(e)}var i=Math.pow(10,Math.floor(Math.log(o)/Math.log(10))),r=vt(o/i,10);return vt(i*(r<1.904762?.2:r<4.761904?.5:r<9.523809?1:2),10)}var Lt=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=ft(e),i=Math.cos(o),r=Math.sin(o),n=t.x,a=t.y,s=this.x,p=this.y;return this.x=vt(n+(s-n)*i+(p-a)*r,3),this.y=vt(a+(p-a)*i-(s-n)*r,3),this},e.prototype.multiply=function(t){return this.x*=t,this.y*=t,this},e.prototype.distanceTo=function(t){var e=this.x-t.x,o=this.y-t.y;return Math.sqrt(e*e+o*o)},e.onCircle=function(t,o,i){var r=ft(o);return new e(t.x-i*Math.cos(r),t.y-i*Math.sin(r))},e}(w.Class);function Vt(t,e,o,i,r){var n=ft(r);return new Lt(o+(t-o)*Math.cos(n)+(e-i)*Math.sin(n),i-(t-o)*Math.sin(n)+(e-i)*Math.cos(n))}var zt=function(t){function e(e,o,i,r){t.call(this),this.x1=e||0,this.y1=o||0,this.x2=i||0,this.y2=r||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(),i=this.width();return at(t)&&(this.x1=t,this.x2=this.x1+i),at(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=b(t),i=o?t[0]:t.x,r=o?t[1]:t.y;return this.wrap(new e(i,r,i,r)),this},e.prototype.snapTo=function(t,e){return e!==_&&e||(this.x1=t.x1,this.x2=t.x2),e!==m&&e||(this.y1=t.y1,this.y2=t.y2),this},e.prototype.alignTo=function(t,e){var o=this.height(),i=this.width(),r=e===f||e===a?m:_,n=r===m?o:i;if(e===s){var p=t.center(),c=this.center();this.x1+=p.x-c.x,this.y1+=p.y-c.y}else this[r+1]=e===f||e===u?t[r+1]-n:t[r+2];return this.x2=this.x1+i,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=V(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=V(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 Lt(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 Lt(this.x1,this.y1),new Lt(this.x2,this.y1),new Lt(this.x2,this.y2),new Lt(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(),i=this.center(),r=i.x,n=i.y,a=Vt(0,0,r,n,t),s=Vt(e,0,r,n,t),p=Vt(e,o,r,n,t),c=Vt(0,o,r,n,t);return e=Math.max(a.x,s.x,p.x,c.x)-Math.min(a.x,s.x,p.x,c.x),o=Math.max(a.y,s.y,p.y,c.y)-Math.min(a.y,s.y,p.y,c.y),this.x2=this.x1+e,this.y2=this.y1+o,this},e.prototype.toRect=function(){return new w.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 i=e+1,r=e+2,n=e===_?"width":"height",p=this[n]();K(o,[u,f])?(this[i]=t[i],this[r]=this[i]+p):K(o,[g,a])?(this[r]=t[r],this[i]=this[r]-p):o===s&&(this[i]=t[i]+(t[n]()-p)/2,this[r]=this[i]+p)},e}(w.Class);function Nt(t,e){return t-e}var Ft=function(t){function e(e,o,i,r,n){t.call(this),this.center=e,this.innerRadius=o,this.radius=i,this.startAngle=r,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=ft(t),i=Math.cos(o),r=Math.sin(o),n=e?this.innerRadius:this.radius,a=vt(this.center.x-i*n,3),s=vt(this.center.y-r*n,3);return new Lt(a,s)},e.prototype.adjacentBox=function(t,e,o){var i=this.clone().expand(t),r=i.middle(),n=i.point(r),a=e/2,s=o/2,p=Math.sin(ft(r)),c=Math.cos(ft(r)),l=n.x-a,u=n.y-s;return Math.abs(p)<.9&&(l+=a*-c/Math.abs(c)),Math.abs(c)<.9&&(u+=s*-p/Math.abs(p)),new zt(l,u,l+e,u+o)},e.prototype.containsPoint=function(t){var e=this.center,o=this.innerRadius,i=this.radius,r=this.startAngle,n=this.startAngle+this.angle,a=t.x-e.x,s=t.y-e.y,p=new Lt(a,s),c=this.point(r),l=new Lt(c.x-e.x,c.y-e.y),u=this.point(n),h=new Lt(u.x-e.x,u.y-e.y),d=vt(a*a+s*s,3);return(l.equals(p)||k(l,p))&&!k(h,p)&&d>=o*o&&d<=i*i},e.prototype.getBBox=function(){var t,e=new zt(h,h,d,d),o=vt(this.startAngle%360),i=vt((o+this.angle)%360),r=this.innerRadius,n=[0,90,180,270,o,i].sort(Nt),a=n.indexOf(o),s=n.indexOf(i);t=o===i?n:a<s?n.slice(a,s+1):[].concat(n.slice(0,s+1),n.slice(a,n.length));for(var p=0;p<t.length;p++){var c=this.point(t[p]);e.wrapPoint(c),e.wrapPoint(c,r)}return r||e.wrapPoint(this.center),e},e.prototype.expand=function(t){return this.radius+=t,this},e}(w.Class),Gt=function(t){function e(e,o,i,r){t.call(this,e,0,o,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.expand=function(e){return t.prototype.expand.call(this,e)},e.prototype.clone=function(){return new e(this.center,this.radius,this.startAngle,this.angle)},e.prototype.setRadius=function(t){return this.radius=t,this},e}(Ft),Ht=function(t){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,i=t.angle+o;t.angle>0&&o===i&&(i+=.001);var r=new w.geometry.Point(t.center.x,t.center.y),n=Math.max(t.radius,0),a=Math.max(t.innerRadius,0),s=new w.geometry.Arc(r,{startAngle:o,endAngle:i,radiusX:n,radiusY:n}),p=w.drawing.Path.fromArc(s,e).close();if(a){s.radiusX=s.radiusY=a;var c=s.pointAt(i);p.lineTo(c.x,c.y),p.arc(i,o,a,a,!0)}else p.lineTo(r.x,r.y);return p},e}(w.Class);Ht.current=new Ht;var Ut=Ht,Wt=function(t){function e(e){t.call(this),this.children=[],this.options=M({},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,i=0;i<o.length;i++){var r=o[i];r.reflow(t),e=e?e.wrap(r.box):r.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,i=o.length,r=0;r<i;r++)o[r].box.translate(t,e)},e.prototype.append=function(){for(var t=arguments,e=this,o=0;o<arguments.length;o++){var i=t[o];e.children.push(i),i.parent=e}},e.prototype.renderVisual=function(){!1!==this.options.visible&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())},e.prototype.addVisual=function(){this.visual&&(this.visual.chartElement=this,this.parent&&this.parent.appendVisual(this.visual))},e.prototype.renderChildren=function(){for(var t=this.children,e=t.length,o=0;o<e;o++)t[o].renderVisual()},e.prototype.createVisual=function(){this.visual=new w.drawing.Group({zIndex:this.options.zIndex,visible:_t(this.options.visible,!0)})},e.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=w.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):at(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,i=this.visual.children,r=i.length;for(e=0;e<r;e++){var n=i[e];if(_t(n.options.zIndex,0)>o)break}this.visual.insert(e,t)},e.prototype.traverse=function(t){for(var e=this.children,o=e.length,i=0;i<o;i++){var r=e[i];t(r),r.traverse&&r.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,i=(this.options||{}).highlight||{},r=i.visual,n=this._highlight;if(!n){var a={fill:{color:y,opacity:e||.2},stroke:{color:y,width:1,opacity:e||.2}};if(r){if(!(n=this._highlight=r(Object.assign(this.highlightVisualArgs(),{createVisual:function(){return o.createHighlight(a)},sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total}))))return}else n=this._highlight=this.createHighlight(a);at(n.options.zIndex)||(n.options.zIndex=_t(i.zIndex,this.options.zIndex)),this.appendVisual(n)}n.visible(t)},e.prototype.createGradientOverlay=function(t,e,o){var i=new w.drawing.Path(Object.assign({stroke:{color:"none"},fill:this.createGradient(o),closed:t.options.closed},e));return i.segments.elements(t.segments.elements()),i},e.prototype.createGradient=function(t){if(this.parent)return this.parent.createGradient(t)},e.prototype.supportsPointInactiveOpacity=function(){return!0},e}(w.Class);Wt.prototype.options={};var Xt=Wt,Yt=function(t){function e(e){t.call(this,e),this.options.margin=V(this.options.margin),this.options.padding=V(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,i=this,r=this.options,n=r.width,a=r.height,s=r.shrinkToFit,p=n&&a,c=r.margin,l=r.padding,u=r.border.width,h=function(){i.align(e,_,r.align),i.align(e,m,r.vAlign),i.paddingBox=o.clone().unpad(c).unpad(u)},d=e.clone();p&&(d.x2=d.x1+n,d.y2=d.y1+a),s&&d.unpad(c).unpad(u).unpad(l),t.prototype.reflow.call(this,d),o=p?this.box=new zt(0,0,n,a):this.box,s&&p?(h(),d=this.contentBox=this.paddingBox.clone().unpad(l)):(d=this.contentBox=o.clone(),o.pad(l).pad(u).pad(c),h()),this.translateChildren(o.x1-d.x1+c.left+u+l.left,o.y1-d.y1+c.top+u+l.top);for(var g=this.children,f=0;f<g.length;f++){var v=g[f];v.reflow(v.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(w.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle()))},e.prototype.visualStyle=function(){var t=this.options,e=t.border||{};return{stroke:{width:e.width,color:e.color,opacity:_t(e.opacity,t.opacity),dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},cursor:t.cursor}},e}(Xt);xt(Yt,{align:u,vAlign:f,margin:{},padding:{},border:{color:n,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});var qt=Yt,Zt=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,i=t.rotation,r=e.center(),n=e.width()/2,a=e.height()/2;if(!t.visible||!this.hasBox())return null;var s,c=this.visualStyle();if(o===p)s=new w.drawing.Circle(new w.geometry.Circle([vt(e.x1+n,3),vt(e.y1+a,3)],Math.min(n,a)),c);else if("triangle"===o)s=w.drawing.Path.fromPoints([[e.x1+n,e.y1],[e.x1,e.y2],[e.x2,e.y2]],c).close();else if("cross"===o)(s=new w.drawing.MultiPath(c)).moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),s.moveTo(e.x1,e.y2).lineTo(e.x2,e.y1);else{var l=e.toRect();if("roundedRect"===o){var u=_t(t.borderRadius,l.width()/5);l.setCornerRadius(u)}s=w.drawing.Path.fromRect(l,c)}return i&&s.transform(w.geometry.transform().rotate(-i,[r.x,r.y])),s.options.zIndex=t.zIndex,s},e.prototype.createElement=function(){var t=this,e=this.options.visual,o=this.pointData||{};return e?e({value:o.value,dataItem:o.dataItem,sender:this.getSender(),series:o.series,category:o.category,rect:this.paddingBox.toRect(),options:this.visualOptions(),createVisual:function(){return t.getElement()}}):this.getElement()},e.prototype.visualOptions=function(){var t=this.options;return{background:t.background,border:t.border,margin:t.margin,padding:t.padding,type:t.type,size:t.width,visible:t.visible}},e.prototype.createVisual=function(){this.visual=this.createElement()},e}(qt);xt(Zt,{type:p,align:s,vAlign:s});var Kt=Zt,Qt={glass:{type:"linear",rotation:0,stops:[{offset:0,color:y,opacity:0},{offset:.25,color:y,opacity:.3},{offset:1,color:y,opacity:0}]},sharpBevel:{type:"radial",stops:[{offset:0,color:y,opacity:.55},{offset:.65,color:y,opacity:0},{offset:.95,color:y,opacity:.25}]},roundedBevel:{type:"radial",stops:[{offset:.33,color:y,opacity:.06},{offset:.83,color:y,opacity:.2},{offset:.95,color:y,opacity:0}]},roundedGlass:{type:"radial",supportVML:!1,stops:[{offset:0,color:y,opacity:0},{offset:.5,color:y,opacity:.3},{offset:.99,color:y,opacity:0}]},sharpGlass:{type:"radial",supportVML:!1,stops:[{offset:0,color:y,opacity:.2},{offset:.15,color:y,opacity:.15},{offset:.17,color:y,opacity:.35},{offset:.85,color:y,opacity:.05},{offset:.87,color:y,opacity:.15},{offset:.99,color:y,opacity:0}]},bubbleShadow:{type:"radial",center:[.5,.5],radius:.5}};function $t(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),i=Math.max(t.x1,e.x1),r=Math.min(t.x2,e.x2),n=Math.max(t.x2,e.x2),a=Math.min(t.y1,e.y1),s=Math.max(t.y1,e.y1),p=Math.min(t.y2,e.y2),c=Math.max(t.y2,e.y2),l=[];return l[0]=new zt(i,a,r,s),l[1]=new zt(o,s,i,p),l[2]=new zt(r,s,n,p),l[3]=new zt(i,p,r,c),t.x1===o&&t.y1===a||e.x1===o&&e.y1===a?(l[4]=new zt(o,a,i,s),l[5]=new zt(r,p,n,c)):(l[4]=new zt(r,a,n,s),l[5]=new zt(o,p,i,c)),X(l,(function(t){return t.height()>0&&t.width()>0}))[0]}var Jt=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 zt(0,0,t.width,t.height);this.box=o.unpad(t.margin);for(var i=0;i<e.length;i++)e[i].reflow(o),o=$t(o,e[i].box)||new zt},e.prototype.createVisual=function(){this.visual=new w.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),i=w.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(i)},e.prototype.getRoot=function(){return this},e.prototype.createGradient=function(t){var e,o=this.gradients,i=gt(t),r=Qt[t.gradient];if(o[i])e=o[i];else{var n=Object.assign({},r,t);"linear"===r.type?e=new w.drawing.LinearGradient(n):(t.innerRadius&&(n.stops=function(t){for(var e=t.stops,o=t.innerRadius/t.radius*100,i=e.length,r=[],n=0;n<i;n++){var a=Object.assign({},e[n]);a.offset=(a.offset*(100-o)+o)/100,r.push(a)}return r}(n)),(e=new w.drawing.RadialGradient(n)).supportVML=!1!==r.supportVML),o[i]=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 zt(0,0,t.width,t.height)},e}(Xt);xt(Jt,{width:600,height:400,background:y,border:{color:n,width:0},margin:V(5),zIndex:-2});var te=Jt,ee=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=_,this.elementAxis=m,this.groupSizeField="width",this.elementSizeField="height",this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=m,this.elementAxis=_,this.groupSizeField="height",this.elementSizeField="width",this.groupSpacing=t.vSpacing,this.elementSpacing=t.spacing)},e.prototype.reflow=function(t){this.box=t.clone(),this.reflowChildren()},e.prototype.reflowChildren=function(){var t=this.box,e=this.elementAxis,o=this.groupAxis,i=this.elementSizeField,r=this.groupSizeField,n=this.groupOptions(),a=n.groups,s=n.groupsSize,p=n.maxGroupElementsSize,c=a.length,l=t[o+1]+this.alignStart(s,t[r]());if(c){for(var u=l,h=0;h<c;h++){for(var d=a[h],g=d.groupElements,f=t[e+1],v=g.length,y=0;y<v;y++){var _=g[y],m=this.elementSize(_),b=u+this.alignStart(m[r],d.groupSize),x=new zt;x[o+1]=b,x[o+2]=b+m[r],x[e+1]=f,x[e+2]=f+m[i],_.reflow(x),f+=m[i]+this.elementSpacing}u+=d.groupSize+this.groupSpacing}t[o+1]=l,t[o+2]=l+s,t[e+2]=t[e+1]+p}},e.prototype.alignStart=function(t,e){var o=0,i=this.options.align;return i===g||i===a?o=e-t:i===s&&(o=(e-t)/2),o},e.prototype.groupOptions=function(){for(var t=this.box,e=this.children,o=this.elementSizeField,i=this.groupSizeField,r=this.elementSpacing,n=this.groupSpacing,a=vt(t[o]()),s=e.length,p=[],c=0,l=0,u=0,h=0,d=[],g=0;g<s;g++){var f=e[g];f.box||f.reflow(t);var v=this.elementSize(f);this.options.wrap&&vt(l+r+v[o])>a&&(p.push({groupElements:d,groupSize:c,groupElementsSize:l}),h=Math.max(h,l),u+=n+c,c=0,l=0,d=[]),c=Math.max(c,v[i]),l>0&&(l+=r),l+=v[o],d.push(f)}return p.push({groupElements:d,groupSize:c,groupElementsSize:l}),{groups:p,groupsSize:u+=c,maxGroupElementsSize:h=Math.max(h,l)}},e.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},e.prototype.createVisual=function(){},e}(Xt);xt(ee,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});var oe=ee,ie=w.drawing.Text,re=function(t){function e(e,o){t.call(this,o),this.content=e,this.reflow(new zt)}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=w.drawing.util.measureText(this.content,{font:e.font});this.baseline=o.baseline,this.box=new zt(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,i=t.opacity,r=t.cursor;this.visual=new ie(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:o,opacity:i},cursor:r})},e}(Xt);xt(re,{font:"12px sans-serif",color:n});var ne=re;function ae(t){var e=t.origin,o=t.bottomRight();return new zt(e.x,e.y,o.x,o.y)}var se=/\n/m,pe=function(t){function e(e,o,i){t.call(this,o),this.content=e,this.data=i,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new zt)}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(se),o=new oe({vertical:!0,align:t.align,wrap:!1}),i=M({},t,{opacity:1,animation:null});this.container=o,this.append(o);for(var r=0;r<e.length;r++){var n=new ne(e[r].trim(),i);o.append(n)}},e.prototype.reflow=function(e){var o=this.options,i=o.visual;if(this.container.options.align=o.align,i&&!this._boxReflow){var r=e;r.hasSize()||(this._boxReflow=!0,this.reflow(r),this._boxReflow=!1,r=this.box);var n=this.visual=i(this.visualContext(r));n&&(r=ae(n.clippedBBox()||new w.geometry.Rect),n.options.zIndex=o.zIndex),this.box=this.contentBox=this.paddingBox=r}else if(t.prototype.reflow.call(this,e),o.rotation){var a=V(o.margin),s=this.box.unpad(a);this.targetBox=e,this.normalBox=s.clone(),(s=this.rotate()).translate(a.left-a.right,a.top-a.bottom),this.rotatedBox=s.clone(),s.pad(a)}},e.prototype.createVisual=function(){var t=this.options;if(this.visual=new w.drawing.Group({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()){var e=w.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&&!at(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.align),this.align(this.targetBox,m,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,i=e.y,r=this.rotatedBox.center();return w.geometry.transform().translate(r.x-o,r.y-i).rotate(t,[o,i])},e}(qt),ce=function(t){function e(e){t.call(this,e),this.append(new pe(this.options.text,Object.assign({},this.options,{vAlign:this.options.position})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(e){t.prototype.reflow.call(this,e),this.box.snapTo(e,_)},e.buildTitle=function(t,o,i){var r,n=t;return"string"==typeof t&&(n={text:t}),(n=Object.assign({visible:!0},i,n))&&n.visible&&n.text&&(r=new e(n),o.append(r)),r},e}(Xt);xt(ce,{color:n,position:f,align:s,margin:V(5),padding:V(5)});var le=ce,ue=function(t){function e(e,o,i,r,n){t.call(this,o,n),this.text=o,this.value=e,this.index=i,this.dataItem=r,this.reflow(new zt)}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:lt(e),value:this.value,text:this.text,index:this.index,dataItem:this.dataItem,axis:this.parent.options})},e.prototype.rotate=function(){if(this.options.alignRotation!==s){var e=this.normalBox.toRect(),o=this.rotationTransform();this.box=ae(e.bbox(o.matrix()))}else t.prototype.rotate.call(this);return this.box},e.prototype.rotationTransform=function(){var e=this.options,o=e.rotation;if(!o)return null;if(e.alignRotation===s)return t.prototype.rotationTransform.call(this);var i=w.geometry.transform().rotate(o).matrix(),r=this.normalBox.toRect(),n=this.targetBox.toRect(),p=e.rotationOrigin||f,c=p===f||p===a?_:m,l=p===f||p===a?m:_,h=p===f||p===u?n.origin:n.bottomRight(),d=r.topLeft().transformCopy(i),g=r.topRight().transformCopy(i),v=r.bottomRight().transformCopy(i),y=r.bottomLeft().transformCopy(i),b=w.geometry.Rect.fromPoints(d,g,v,y),x={};x[l]=n.origin[l]-b.origin[l];var C,S,A=Math.abs(d[l]+x[l]-h[l]),k=Math.abs(g[l]+x[l]-h[l]);vt(A,10)===vt(k,10)?(C=d,S=g):k<A?(C=g,S=v):(C=d,S=y);var I=C[c]+(S[c]-C[c])/2;return x[c]=n.center()[c]-I,w.geometry.transform().translate(x.x,x.y).rotate(o)},e}(pe);xt(ue,{_autoReflow:!1});var he=ue,de=function(t){function e(e,o,i){t.call(this,o),this.fields=e,this.chartService=i,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,i,r=e.label,n=e.icon,a=new zt,s=function(){return t},c=n.size,l=this.fields.text;if(at(r)&&r.visible){var u=G(r);u?l=u(this.fields):r.format&&(l=this.chartService.format.auto(r.format,l)),r.color||(r.color="inside"===r.position?"#fff":n.background),this.label=new pe(l,M({},r)),this.label.aliasFor=s,"inside"!==r.position||at(c)||(n.type===p?c=Math.max(this.label.box.width(),this.label.box.height()):(o=this.label.box.width(),i=this.label.box.height()),a.wrap(this.label.box))}n.width=o||c||7,n.height=i||c||7;var h=new Kt(M({},n));h.aliasFor=s,this.marker=h,this.append(h),this.label&&this.append(this.label),h.reflow(new zt),this.wrapperBox=a.wrap(h.box)}},e.prototype.reflow=function(t){var e,o,i,r=this.options,n=this.label,s=this.marker,p=this.wrapperBox,c=t.center(),l=r.line.length,h=r.position;r.visible&&(K(h,[u,g])?h===u?(i=p.alignTo(t,h).translate(-l,t.center().y-p.center().y),r.line.visible&&(e=[t.x1,c.y],this.linePoints=[e,[i.x2,c.y]],o=i.clone().wrapPoint(e))):(i=p.alignTo(t,h).translate(l,t.center().y-p.center().y),r.line.visible&&(e=[t.x2,c.y],this.linePoints=[e,[i.x1,c.y]],o=i.clone().wrapPoint(e))):h===a?(i=p.alignTo(t,h).translate(t.center().x-p.center().x,l),r.line.visible&&(e=[c.x,t.y2],this.linePoints=[e,[c.x,i.y1]],o=i.clone().wrapPoint(e))):(i=p.alignTo(t,h).translate(t.center().x-p.center().x,-l),r.line.visible&&(e=[c.x,t.y1],this.linePoints=[e,[c.x,i.y2]],o=i.clone().wrapPoint(e))),s&&s.reflow(i),n&&(n.reflow(i),s&&("outside"===r.label.position&&n.box.alignTo(s.box,h),n.reflow(n.box))),this.contentBox=i,this.targetBox=t,this.box=o||i)},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,i=o.visual;o.visible&&i?(this.visual=i(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=w.drawing.Path.fromPoints(this.linePoints,{stroke:{color:t.color,width:t.width,dashType:t.dashType}});A(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:lt(t),text:at(e.label)?e.label.text:"",visual:this.visual})},e}(qt);xt(de,{icon:{visible:!0,type:p},label:{position:"inside",visible:!0,align:s,vAlign:s},line:{visible:!0},visible:!0,position:f,zIndex:2});var ge=de,fe={format:function(t,e){return e},toString:function(t){return t},parseDate:function(t){return new Date(t)},firstDay:function(){return 0}},ve=function(){},ye={implementation:{configurable:!0}};ve.register=function(t){fe=t},ye.implementation.get=function(){return fe},Object.defineProperties(ve,ye);var _e=ve,me=/\{(\d+)(:[^\}]+)?\}/g,be=function(t){this._intlService=t},xe={intl:{configurable:!0}};xe.intl.get=function(){return this._intlService||_e.implementation},xe.intl.set=function(t){this._intlService=t},be.prototype.auto=function(t){for(var e=[],o=arguments.length-1;o-- >0;)e[o]=arguments[o+1];var i=this.intl;return O(t)&&t.match(l)?i.format.apply(i,[t].concat(e)):i.toString(e[0],t)},be.prototype.localeAuto=function(t,e,o){var i=this.intl;return O(t)&&t.match(l)?t.replace(me,(function(t,r,n){var a=e[parseInt(r,10)];return i.toString(a,n?n.substring(1):"",o)})):i.toString(e[0],t,o)},Object.defineProperties(be.prototype,xe);var Ce=be,Se=function(t,e){void 0===e&&(e={}),this._intlService=e.intlService,this.sender=e.sender||t,this.format=new Ce(e.intlService),this.chart=t,this.rtl=Boolean(e.rtl)},we={intl:{configurable:!0}};we.intl.get=function(){return this._intlService||_e.implementation},we.intl.set=function(t){this._intlService=t,this.format.intl=t},Se.prototype.notify=function(t,e){this.chart&&this.chart.trigger(t,e)},Se.prototype.isPannable=function(t){var e=((this.chart||{}).options||{}).pannable;return e&&e.lock!==t},Object.defineProperties(Se.prototype,we);var Ae,ke=Se,Ie=function(){};Ie.register=function(t){Ae=t},Ie.create=function(t,e){if(Ae)return Ae.create(t,e)};var Oe=Ie;function Pe(t,e){var o=t.tickX,i=t.tickY,r=t.position,n=new w.drawing.Path({stroke:{width:e.width,color:e.color}});return t.vertical?n.moveTo(o,r).lineTo(o+e.size,r):n.moveTo(r,i).lineTo(r,i+e.size),A(n),n}function je(t,e){var o=t.lineStart,i=t.lineEnd,r=t.position,n=new w.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});return t.vertical?n.moveTo(o,r).lineTo(i,r):n.moveTo(r,o).lineTo(r,i),A(n),n}var Te=function(t){function e(e,o){void 0===o&&(o=new ke),t.call(this,e),this.chartService=o,this.options.visible||(this.options=M({},this.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),this.options.minorTicks=M({},{color:this.options.line.color,width:this.options.line.width,visible:"none"!==this.options.minorTickType},this.options.minorTicks,{size:this.options.minorTickSize,align:this.options.minorTickType}),this.options.majorTicks=M({},{color:this.options.line.color,width:this.options.line.width,visible:"none"!==this.options.majorTickType},this.options.majorTicks,{size:this.options.majorTickSize,align:this.options.majorTickType}),this.initFields(),this.options._deferLabels||this.createLabels(),this.createTitle(),this.createNotes()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){},e.prototype.labelsRange=function(){return{min:this.options.labels.skip,max:this.labelsCount()}},e.prototype.normalizeLabelRotation=function(t){var e=t.rotation;D(e)&&(t.alignRotation=e.align,t.rotation=e.angle)},e.prototype.createLabels=function(){var t=this.options,e=t.vertical?g:s,o=M({},t.labels,{align:e,zIndex:t.zIndex}),i=Math.max(1,o.step);if(this.clearLabels(),o.visible){this.normalizeLabelRotation(o),"auto"===o.rotation&&(o.rotation=0,t.autoRotateLabels=!0);for(var r=this.labelsRange(),n=r.min;n<r.max;n+=i){var a={index:n,count:r.max},p=this.createAxisLabel(n,o,a);p&&(this.append(p),this.labels.push(p))}}},e.prototype.clearLabels=function(){this.children=X(this.children,(function(t){return!(t instanceof he)})),this.labels=[]},e.prototype.clearTitle=function(){var t=this;this.title&&(this.children=X(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,i=t.labels.mirror,r=i?e.x1:e.x2,n=i?e.y2:e.y1,a=t.line.width||0;return o?new zt(r,e.y1,r,e.y2-a):new zt(e.x1,n,e.x2-a,n)},e.prototype.createTitle=function(){var t=this.options,e=M({rotation:t.vertical?-90:0,text:"",zIndex:1,visualSize:!0},t.title);if(e.visible&&e.text){var o=new pe(e.text,e);this.append(o),this.title=o}},e.prototype.createNotes=function(){var t=this.options,e=t.notes,o=e.data||[];this.notes=[];for(var i=0;i<o.length;i++){var r=M({},e,o[i]);r.value=this.parseNoteValue(r.value);var n=new ge({value:r.value,text:r.label.text,dataItem:r},r,this.chartService);n.options.visible&&(at(n.options.position)?t.vertical&&!K(n.options.position,[u,g])?n.options.position=t.reverse?u:g:t.vertical||K(n.options.position,[f,a])||(n.options.position=t.reverse?a:f):t.vertical?n.options.position=t.reverse?u:g:n.options.position=t.reverse?a:f,this.append(n),this.notes.push(n))}},e.prototype.parseNoteValue=function(t){return t},e.prototype.renderVisual=function(){t.prototype.renderVisual.call(this),this.createPlotBands()},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.createBackground(),this.createLine()},e.prototype.gridLinesVisual=function(){var t=this._gridLines;return t||(t=this._gridLines=new w.drawing.Group({zIndex:-2}),this.appendVisual(this._gridLines)),t},e.prototype.createTicks=function(t){var e=this.options,o=this.lineBox(),i=e.labels.mirror,r=e.majorTicks.visible?e.majorUnit:0,n={vertical:e.vertical};function a(e,r,a){var s=e.length,p=Math.max(1,r.step);if(r.visible)for(var c=r.skip;c<s;c+=p)at(a)&&c%a==0||(n.tickX=i?o.x2:o.x2-r.size,n.tickY=i?o.y1-r.size:o.y1,n.position=e[c],t.append(Pe(n,r)))}a(this.getMajorTickPositions(),e.majorTicks),a(this.getMinorTickPositions(),e.minorTicks,r/e.minorUnit)},e.prototype.createLine=function(){var t=this.options,e=t.line,o=this.lineBox();if(e.width>0&&e.visible){var i=new w.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});i.moveTo(o.x1,o.y1).lineTo(o.x2,o.y2),t._alignLines&&A(i);var r=this._lineGroup=new w.drawing.Group;r.append(i),this.visual.append(r),this.createTicks(r)}},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=w.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||[],i=e.vertical,r=this.plotArea;if(0!==o.length){for(var n=this._plotbandGroup=new w.drawing.Group({zIndex:-1}),a=X(this.pane.axes,(function(e){return e.options.vertical!==t.options.vertical}))[0],s=0;s<o.length;s++){var p=o[s],c=void 0,l=void 0,h=p.label,d=void 0;if(i?(c=(a||r.axisX).lineBox(),l=t.getSlot(p.from,p.to,!0)):(c=t.getSlot(p.from,p.to,!0),l=(a||r.axisY).lineBox()),h&&(h.vAlign=h.position||u,d=t.createPlotBandLabel(h,p,new zt(c.x1,l.y1,c.x2,l.y2))),0!==c.width()&&0!==l.height()){var g=new w.geometry.Rect([c.x1,l.y1],[c.width(),l.height()]),f=w.drawing.Path.fromRect(g,{fill:{color:p.color,opacity:p.opacity},stroke:null});n.append(f),d&&n.append(d)}}this.appendVisual(n)}},e.prototype.createPlotBandLabel=function(t,e,o){if(!1===t.visible)return null;var i,r=t.text;if(at(t)&&t.visible){var n=G(t);n?r=n({text:r,item:e}):t.format&&(r=this.chartService.format.auto(t.format,r)),t.color||(t.color=this.options.labels.color)}return(i=new pe(r,t)).reflow(o),i.renderVisual(),i.visual},e.prototype.createGridLines=function(t){var e=this.options,o=e.minorGridLines,i=e.majorGridLines,r=e.minorUnit,n=e.vertical,a=t.options.line.visible,s=i.visible?e.majorUnit:0,p=t.lineBox(),c=p[n?"y1":"x1"],l={lineStart:p[n?"x1":"y1"],lineEnd:p[n?"x2":"y2"],vertical:n},u=[],h=this.gridLinesVisual();function d(t,e,o){var i=t.length,r=Math.max(1,e.step);if(e.visible)for(var n=e.skip;n<i;n+=r){var s=vt(t[n]);K(s,u)||n%o==0||a&&c===s||(l.position=s,h.append(je(l,e)),u.push(s))}}return d(this.getMajorTickPositions(),i),d(this.getMinorTickPositions(),o,s/r),h.children},e.prototype.reflow=function(t){for(var e=this.options,o=this.labels,i=this.title,r=e.vertical,n=o.length,a=r?"width":"height",s=i?i.box[a]():0,p=this.getActualTickSize()+e.margin+s,c=((this.getRoot()||{}).box||t)[a](),l=0,u=0;u<n;u++){var h=o[u].box[a]();h+p<=c&&(l=Math.max(l,h))}this.box=r?new zt(t.x1,t.y1,t.x1+l+p,t.y2):new zt(t.x1,t.y1,t.x2,t.y1+l+p),this.arrangeTitle(),this.arrangeLabels(),this.arrangeNotes()},e.prototype.getLabelsTickPositions=function(){return this.getMajorTickPositions()},e.prototype.labelTickIndex=function(t){return t.index},e.prototype.arrangeLabels=function(){for(var t=this.options,e=this.labels,o=this.labelsBetweenTicks(),i=t.vertical,r=t.labels.mirror,n=this.getLabelsTickPositions(),a=0;a<e.length;a++){var s=e[a],p=this.labelTickIndex(s),c=i?s.box.height():s.box.width(),l=n[p],u=n[p+1],h=void 0,d=void 0;if(i){if(o)h=l+(u-l)/2-c/2;else h=l-c/2;d=h}else o?(h=l,d=u):d=(h=l-c/2)+c;this.positionLabel(s,r,h,d)}},e.prototype.positionLabel=function(t,e,o,i){void 0===i&&(i=o);var r,n=this.options,s=n.vertical,p=this.lineBox(),c=this.getActualTickSize()+n.margin;if(s){var l=p.x2;e?(l+=c,t.options.rotationOrigin=u):(l-=c+t.box.width(),t.options.rotationOrigin=g),r=t.box.move(l,o)}else{var h=p.y1;e?(h-=c+t.box.height(),t.options.rotationOrigin=a):(h+=c,t.options.rotationOrigin=f),r=new zt(o,h,i,h+t.box.height())}t.reflow(r)},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),i=0,r=0;r<o;r++){var n=Math.abs(t[r+1]-t[r]),a=e[r].box,s=this.autoRotateLabelAngle(a,n);if(0!==s&&(i=s),-90===i)break}if(0!==i){for(var p=0;p<e.length;p++)e[p].options.rotation=i,e[p].reflow(new zt);return!0}},e.prototype.arrangeTitle=function(){var t=this.options,e=this.title,o=t.labels.mirror,i=t.vertical;e&&(i?(e.options.align=o?g:u,e.options.vAlign=e.options.position):(e.options.align=e.options.position,e.options.vAlign=o?f:a),e.reflow(this.box))},e.prototype.arrangeNotes=function(){for(var t=0;t<this.notes.length;t++){var e=this.notes[t],o=e.options.value,i=void 0;at(o)?(this.shouldRenderNote(o)?e.show():e.hide(),i=this.noteSlot(o)):e.hide(),e.reflow(i||this.lineBox())}},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.alignTo=function(t){var e=t.lineBox(),o=this.options.vertical,i=o?m:_;this.box.snapTo(e,i),o?this.box.shrink(0,this.lineBox().height()-e.height()):this.box.shrink(this.lineBox().width()-e.width(),0),this.box[i+1]-=this.lineBox()[i+1]-e[i+1],this.box[i+2]-=this.lineBox()[i+2]-e[i+2]},e.prototype.axisLabelText=function(t,e,o){var i,r=this,n=G(e),a=function(){return e.format?r.chartService.format.localeAuto(e.format,[t],e.culture):t};n?i=n(Object.assign({},o,{get text(){return a()},value:t,format:e.format,culture:e.culture})):i=a();return i},e.prototype.slot=function(t,e,o){var i=this.getSlot(t,e,o);if(i)return i.toRect()},e.prototype.contentBox=function(){var t=this.box.clone(),e=this.labels;if(e.length){var o=this.options.vertical?m:_;if(this.chartService.isPannable(o)){var i=this.maxLabelOffset();t[o+1]-=i.start,t[o+2]+=i.end}else{e[0].options.visible&&t.wrap(e[0].box);var r=e[e.length-1];r.options.visible&&t.wrap(r.box)}}return t},e.prototype.maxLabelOffset=function(){for(var t=this.options,e=t.vertical,o=t.reverse,i=this.labelsBetweenTicks(),r=this.getLabelsTickPositions(),n=e?m:_,a=this.labels,s=o?1:0,p=o?0:1,c=0,l=0,u=0;u<a.length;u++){var h=a[u],d=this.labelTickIndex(h),g=void 0,f=void 0;i?(g=r[d+s],f=r[d+p]):g=f=r[d],c=Math.max(c,g-h.box[n+1]),l=Math.max(l,h.box[n+2]-f)}return{start:c,end:l}},e.prototype.limitRange=function(t,e,o,i,r){var n=this.options;if(t<o&&r<0&&(!at(n.min)||n.min<=o)||i<e&&r>0&&(!at(n.max)||i<=n.max))return null;if(e<o&&r>0||i<t&&r<0)return{min:t,max:e};var a=e-t,s=t,p=e;return t<o&&r<0?(s=dt(t,o,i),p=dt(t+a,o+a,i)):e>i&&r>0&&(p=dt(e,o,i),s=dt(e-a,o,i-a)),{min:s,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(),i=t?m:_,r=this.lineDir(),n=i+(1===r?1:2).toString();return{axis:i,axisOrigin:n,axisDir:r,lineBox:e,lineSize:o,lineStart:e[n]}},e.prototype.pointOffset=function(t){var e=this.lineInfo(),o=e.axis,i=e.axisDir,r=e.axisOrigin,n=e.lineBox,a=e.lineSize;return(i>0?t[o]-n[r]:n[r]-t[o])/a},e.prototype.scaleToDelta=function(t,e){var o=dt(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}(Xt);xt(Te,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:n,visible:!0},title:{visible:!0,position:s},majorTicks:{align:"outside",size:4,skip:0,step:1},minorTicks:{align:"outside",size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:"outside",minorTickType:"none",majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:n,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1});var Me=Te,De="days",Ee="years",Be={years:31536e6,months:26784e5,weeks:6048e5,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1};function Re(t,e){return t.getTime()-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset())}function Le(t,e){return new Date(t.getTime()+e)}function Ve(t){var e;return t instanceof Date?e=t:t&&(e=new Date(t)),e}function ze(t,e){return 0===e&&23===t.getHours()&&(t.setHours(t.getHours()+2),!0)}function Ne(t,e,o,i){var r=t;if(t){var n=Ve(t),a=n.getHours();o===Ee?ze(r=new Date(n.getFullYear()+e,0,1),0):"months"===o?ze(r=new Date(n.getFullYear(),n.getMonth()+e,1),a):"weeks"===o?ze(r=Ne(function(t,e){void 0===e&&(e=0);var o=0,i=t.getDay();if(!isNaN(i))for(;i!==e;)0===i?i=6:i--,o++;return Le(t,864e5*-o)}(n,i),7*e,De),a):o===De?ze(r=new Date(n.getFullYear(),n.getMonth(),n.getDate()+e),a):"hours"===o?r=function(t,e){var o=new Date(t);o.setMinutes(0,0,0);var i=6e4*(t.getTimezoneOffset()-o.getTimezoneOffset());return Le(o,i+36e5*e)}(n,e):"minutes"===o?(r=Le(n,6e4*e)).getSeconds()>0&&r.setSeconds(0):"seconds"===o?r=Le(n,1e3*e):"milliseconds"===o&&(r=Le(n,e)),"milliseconds"!==o&&r.getMilliseconds()>0&&r.setMilliseconds(0)}return r}function Fe(t,e,o){return Ne(Ve(t),0,e,o)}function Ge(t,e,o){var i=Ve(t);return i&&Fe(i,e,o).getTime()===i.getTime()?i:Ne(i,1,e,o)}function He(t,e){return t&&e?t.getTime()-e.getTime():-1}function Ue(t,e){return t.getTime()-e}function We(t){if(b(t)){for(var e=[],o=0;o<t.length;o++)e.push(We(t[o]));return e}if(t)return Ve(t).getTime()}function Xe(t,e){return t&&e?We(t)===We(e):t===e}function Ye(t,e,o){return Re(t,e)/Be[o]}function qe(t,e,o,i){var r=Ve(t),n=Ve(e);return("months"===o?r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())+Ye(r,new Date(r.getFullYear(),r.getMonth()),De)/new Date(r.getFullYear(),r.getMonth()+1,0).getDate():o===Ee?r.getFullYear()-n.getFullYear()+qe(r,new Date(r.getFullYear(),0),"months",1)/12:o===De||"weeks"===o?Ye(r,n,o):Ue(r,e)/Be[o])/i}function Ze(t,e,o){return o===Ee?e.getFullYear()-t.getFullYear():"months"===o?12*Ze(t,e,Ee)+e.getMonth()-t.getMonth():o===De?Math.floor(Ue(e,t)/864e5):Math.floor(Ue(e,t)/Be[o])}function Ke(t,e){return O(e)&&t.parseDate(e)||Ve(e)}function Qe(t,e){if(b(e)){for(var o=[],i=0;i<e.length;i++)o.push(Ke(t,e[i]));return o}return Ke(t,e)}function $e(t,e){return I(t.weekStartDay)?t.weekStartDay:e&&e.firstDay?e.firstDay():0}var Je=function(t){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=at(t.min),i=at(t.max);if(t.srcCategories=t.categories=e,(o||i)&&e.length){var r,n=o?Math.floor(t.min):0;r=i?t.justified?Math.floor(t.max)+1:Math.ceil(t.max):e.length,t.categories=t.categories.slice(n,r)}return t},e.prototype.rangeIndices=function(){var t=this.options,e=t.categories.length||1;return{min:I(t.min)?t.min%1:0,max:I(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,i=I(o.min)?o.min:0;if(e=I(o.max)?o.max:I(o.min)?i+o.categories.length:this.totalRange().max||1,t){var r=this.totalRange();i=dt(i,0,r.max),e=dt(e,0,r.max)}return{min:i,max:e}},e.prototype.range=function(){var t=this.options;return{min:I(t.min)?t.min:0,max:I(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,i=this.lineBox();return{scale:(this.options.vertical?i.height():i.width())/(o-e||1)*(this.options.reverse?-1:1),box:i,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?m:_,i=t[o+1],r=t[o+2],n=e[0],a=ht(e);(n.box[o+1]>r||n.box[o+2]<i)&&(n.options.visible=!1),(a.box[o+1]>r||a.box[o+2]<i)&&(a.options.visible=!1)}},e.prototype.getMajorTickPositions=function(){return this.getTicks().majorTicks},e.prototype.getMinorTickPositions=function(){return this.getTicks().minorTicks},e.prototype.getLabelsTickPositions=function(){return this.getTicks().labelTicks},e.prototype.tickIndices=function(t){for(var e=this.rangeIndices(),o=e.min,i=e.max,r=Math.ceil(i),n=Math.floor(o),a=[];n<=r;)a.push(n),n+=t;return a},e.prototype.getTickPositions=function(t){for(var e=this.options,o=e.vertical,i=e.reverse,r=this.scaleOptions(),n=r.scale,a=r.box,s=r.min,p=a[(o?m:_)+(i?2:1)],c=this.tickIndices(t),l=[],u=0;u<c.length;u++)l.push(p+vt(n*(c[u]-s),3));return l},e.prototype.getTicks=function(){var t=this.options,e=this._ticks,o=this.rangeIndices(),i=this.lineBox(),r=i.getHash()+o.min+","+o.max+t.reverse+t.justified;if(e._hash!==r){var n=t.minorTicks.visible||t.minorGridLines.visible;e._hash=r,e.labelTicks=this.getTickPositions(1),e.majorTicks=this.filterOutOfRangePositions(e.labelTicks,i),e.minorTicks=n?this.filterOutOfRangePositions(this.getTickPositions(.5),i):[]}return e},e.prototype.filterOutOfRangePositions=function(t,e){if(!t.length)return t;for(var o=this.options.vertical?m:_,i=function(t){return e[o+1]<=t&&t<=e[o+2]},r=t.length-1,n=0;!i(t[n])&&n<=r;)n++;for(var a=r;!i(t[a])&&a>=0;)a--;return t.slice(n,a+1)},e.prototype.lineInfo=function(){var t=this.options,e=t.vertical,o=t.reverse,i=this.lineBox(),r=e?i.height():i.width(),n=e?m:_,a=o?-1:1,s=n+(1===a?1:2).toString();return{axis:n,axisOrigin:s,axisDir:a,lineBox:i,lineSize:r,lineStart:i[s]}},e.prototype.lineDir=function(){return this.options.reverse?-1:1},e.prototype.getSlot=function(t,e,o){var i=this.options,r=i.reverse,n=i.justified,a=this.scaleOptions(),s=a.scale,p=a.box,c=a.min,l=this.lineInfo(),u=l.axis,h=l.lineStart,d=p.clone(),g=!at(e),f=_t(t,0),v=_t(e,f);v=Math.max(v-1,f);var y=h+(f-c)*s,_=h+((v=Math.max(f,v))+1-c)*s;return g&&n&&(_=y),o&&(y=dt(y,p[u+1],p[u+2]),_=dt(_,p[u+1],p[u+2])),d[u+1]=r?_:y,d[u+2]=r?y:_,d},e.prototype.limitSlot=function(t){var e=this.options.vertical?m:_,o=this.lineBox(),i=t.clone();return i[e+1]=dt(t[e+1],o[e+1],o[e+2]),i[e+2]=dt(t[e+2],o[e+1],o[e+2]),i},e.prototype.slot=function(e,o,i){var r=Math.floor(this.options.min||0),n=e,a=o;return"string"==typeof n?n=this.categoryIndex(n):I(n)&&(n-=r),"string"==typeof a?a=this.categoryIndex(a):I(a)&&(a-=r),t.prototype.slot.call(this,n,a,i)},e.prototype.pointCategoryIndex=function(t){var e=this.options,o=e.reverse,i=e.justified,r=e.vertical?m:_,n=this.scaleOptions(),a=n.scale,s=n.box,p=n.min,c=n.max,l=o?c:p,u=s[r+1],h=s[r+2],d=t[r];if(d<u||d>h)return null;var g=l+(d-u)/a,f=g%1;return i?g=Math.round(g):0===f&&g>0&&g--,Math.floor(g)},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(),i=e.vertical?o.height():o.width(),r=e.categories.length,n=vt(t/(i/r),10);return{min:n,max:r+n}},e.prototype.scaleRange=function(t,e){var o=Math.abs(this.pointOffset(e)),i=this.totalRangeIndices(),r=i.max-i.min,n=this.scaleToDelta(t,r),a=o*n,s=(1-o)*n,p=i.min+a,c=i.max-s;return c-p<.1&&(c=p+.1),{min:p,max:c}},e.prototype.zoomRange=function(t,e){var o=this.totalRange(),i=o.min,r=o.max,n=this.scaleRange(t,e);return{min:dt(n.min,i,r),max:dt(n.max,i,r)}},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,i=this.totalRangeIndices(!0),r=i.min,n=i.max,a=Math.floor(r);return e?(r=Math.ceil(r),n=Math.floor(n)):(r=Math.floor(r),n=Math.ceil(n)),{min:(r>o.skip?o.skip+o.step*Math.ceil((r-o.skip)/o.step):o.skip)-a,max:(t.categories.length?n+(e?1:0):0)-a}},e.prototype.createAxisLabel=function(t,e,o){var i=this.options,r=i.dataItems?i.dataItems[t]:null,n=_t(i.categories[t],"");o.dataItem=r;var a=this.axisLabelText(n,e,o);return new he(n,a,t,r,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?m:_,i=e[o+1],r=e[o+2],n=0;n<t.length;n++){var a=t[n];a.box&&(r<a.box[o+1]||a.box[o+2]<i)&&a.hide()}},e.prototype.pan=function(t){var e=this.totalRangeIndices(!0),o=this.scaleOptions().scale,i=vt(t/o,10),r=this.totalRange(),n=e.min+i,a=e.max+i;return this.limitRange(n,a,0,r.max,i)},e.prototype.pointsRange=function(t,e){var o=this.options,i=o.reverse,r=o.vertical?m:_,n=this.totalRangeIndices(!0),a=this.scaleOptions(),s=a.scale,p=a.box[r+(i?2:1)],c=t[r]-p,l=e[r]-p,u=n.min+c/s,h=n.min+l/s,d=Math.min(u,h),g=Math.max(u,h);if(g-d>=.01)return{min:d,max:g}},e.prototype.valueRange=function(){return this.range()},e.prototype.totalIndex=function(t){var e=this.options;return this._categoriesMap?this._categoriesMap.get(t):function(t,e){if(t instanceof Date){for(var o=e.length,i=0;i<o;i++)if(Xe(e[i],t))return i;return-1}return e.indexOf(t)}(t,e.srcCategories)},e.prototype.currentRangeIndices=function(){var t=this.options,e=0;return I(t.min)&&(e=Math.floor(t.min)),{min:e,max:I(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 Z,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}(Me);xt(Je,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:n},labels:{zIndex:1},justified:!1,_deferLabels:!0});var to=Je,eo={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"},oo=["milliseconds","seconds","minutes","hours",De,"weeks","months",Ee];function io(t){var e=t._range;return e||((e=t._range=Ct(t)).min=Ve(e.min),e.max=Ve(e.max)),e}var ro=function(t){this.options=t};ro.prototype.displayIndices=function(){return{min:0,max:1}},ro.prototype.displayRange=function(){return{}},ro.prototype.total=function(){return{}},ro.prototype.valueRange=function(){return{}},ro.prototype.valueIndex=function(){return-1},ro.prototype.values=function(){return[]},ro.prototype.totalIndex=function(){return-1},ro.prototype.valuesCount=function(){return 0},ro.prototype.totalCount=function(){return 0},ro.prototype.dateAt=function(){return null};var no=function(t,e,o){this.options=o,o.baseUnitStep=o.baseUnitStep||1;var i=o.roundToBaseUnit,r=o.justified;this.start=Ne(t,0,o.baseUnit,o.weekStartDay);var n=this.roundToTotalStep(e),a=!r&&Xe(e,n)&&!o.justifyEnd;this.end=this.roundToTotalStep(e,!r,a?1:0);var s=o.min||t;this.valueStart=this.roundToTotalStep(s),this.displayStart=i?this.valueStart:s;var p=o.max;if(p){var c=!r&&Xe(p,this.roundToTotalStep(p))?-1:0;this.valueEnd=this.roundToTotalStep(p,!1,c),this.displayEnd=i?this.roundToTotalStep(p,!r):o.max}else this.valueEnd=n,this.displayEnd=i||a?this.end:e;this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))};function ao(t,e,o){for(var i,r,n,a=io(t.categories),s=(t.max||a.max)-(t.min||a.min),p=t.autoBaseUnitSteps,c=t.maxDateGroups,l="fit"===t.baseUnit,u=e?oo.indexOf(e):0,h=l?oo[u++]:t.baseUnit,d=s/Be[h],g=d;!r||d>=c;){i=i||p[h].slice(0);do{n=i.shift()}while(n&&e===h&&n<o);if(n)d=g/(r=n);else{if(h===ht(oo)){r=Math.ceil(g/c);break}if(!l){d>c&&(r=Math.ceil(g/c));break}h=oo[u++]||ht(oo),g=s/Be[h],i=null}}t.baseUnitStep=r,t.baseUnit=h}function so(t){var e=(t.baseUnit||"").toLowerCase();return"fit"!==e&&!K(e,oo)&&function(t){for(var e,o,i=t.categories,r=at(i)?i.length:0,n=h,a=0;a<r;a++){var s=i[a];if(s&&e){var p=Re(s,e);p>0&&(o=(n=Math.min(n,p))>=31536e6?Ee:n>=24192e5?"months":n>=6048e5?"weeks":n>=864e5?De:n>=36e5?"hours":n>=6e4?"minutes":"seconds")}e=s}t.baseUnit=o||De}(t),"fit"!==e&&"auto"!==t.baseUnitStep||ao(t),t}no.prototype.displayRange=function(){return{min:this.displayStart,max:this.displayEnd}},no.prototype.displayIndices=function(){if(!this._indices){var t=this.options,e=t.baseUnit,o=t.baseUnitStep,i=qe(this.displayStart,this.valueStart,e,o),r=qe(this.displayEnd,this.valueStart,e,o);this._indices={min:i,max:r}}return this._indices},no.prototype.total=function(){return{min:this.start,max:this.end}},no.prototype.totalCount=function(){return this.totalIndex(this.end)+(this.options.justified?1:0)},no.prototype.valueRange=function(){return{min:this.valueStart,max:this.valueEnd}},no.prototype.valueIndex=function(t){var e=this.options;return Math.floor(qe(t,this.valueStart,e.baseUnit,e.baseUnitStep))},no.prototype.totalIndex=function(t){var e=this.options;return Math.floor(qe(t,this.start,e.baseUnit,e.baseUnitStep))},no.prototype.dateIndex=function(t){var e=this.options;return qe(t,this.valueStart,e.baseUnit,e.baseUnitStep)},no.prototype.valuesCount=function(){return this.valueIndex(this.valueEnd)+1},no.prototype.values=function(){var t=this._values;if(!t){var e=this.options,o=this.valueRange();this._values=t=[];for(var i=o.min;i<=o.max;)t.push(i),i=Ne(i,e.baseUnitStep,e.baseUnit,e.weekStartDay)}return t},no.prototype.dateAt=function(t,e){var o=this.options;return Ne(e?this.start:this.valueStart,o.baseUnitStep*t,o.baseUnit,o.weekStartDay)},no.prototype.roundToTotalStep=function(t,e,o){var i=this.options,r=i.baseUnit,n=i.baseUnitStep,a=i.weekStartDay,s=this.start,p=qe(t,s,r,n),c=e?Math.ceil(p):Math.floor(p);return o&&(c+=o),Ne(s,c*n,r,a)};var po=function(t){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,i=this.options,r=i.categories||[];if(r._parsed||((r=Qe(o,r))._parsed=!0),i=M({roundToBaseUnit:!0},i,{categories:r,min:Ke(o,i.min),max:Ke(o,i.max),weekStartDay:$e(i,o)}),e.panning&&e.isPannable(i.vertical?m:_)&&(i.roundToBaseUnit=!1),i.userSetBaseUnit=i.userSetBaseUnit||i.baseUnit,i.userSetBaseUnitStep=i.userSetBaseUnitStep||i.baseUnitStep,this.options=i,i.srcCategories=r,r.length>0){var n=io(r),a=i.maxDivisions;if(this.dataRange=new no(n.min,n.max,so(i)),a){var s=this.dataRange.displayRange(),p=Object.assign({},i,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:s.min,max:s.max,maxDateGroups:a}),c=this.dataRange.options;ao(p,c.baseUnit,c.baseUnitStep),this.divisionRange=new no(n.min,n.max,p)}else this.divisionRange=this.dataRange}else i.baseUnit=i.baseUnit||De,this.dataRange=this.divisionRange=new ro(i);this.rangeLabels=[]},e.prototype.tickIndices=function(e){var o=this.dataRange,i=this.divisionRange,r=i.valuesCount();if(!this.options.maxDivisions||!r)return t.prototype.tickIndices.call(this,e);var n=[],a=i.values(),s=0;this.options.justified||(a=a.concat(i.dateAt(r)),s=.5);for(var p=0;p<a.length;p++)if(n.push(o.dateIndex(a[p])+s),1!==e&&p>=1){var c=n.length-1;n.splice(p,0,n[c-1]+(n[c]-n[c-1])*e)}return n},e.prototype.shouldRenderNote=function(t){var e=this.range(),o=this.options.categories||[];return He(t,e.min)>=0&&He(t,e.max)<=0&&o.length},e.prototype.parseNoteValue=function(t){return Ke(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,i=e.weekStartDay,r=e.vertical,n=this.lineBox(),a=r?n.height():n.width(),s=this.range(),p=a/(s.max-s.min),c=vt(t/p,10);if(s.min&&s.max){var l=Le(e.min||s.min,c),u=Le(e.max||s.max,c);s={min:Ne(l,0,o,i),max:Ne(u,0,o,i)}}return s},e.prototype.labelsRange=function(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}},e.prototype.pan=function(t){if(this.isEmpty())return null;var e=this.options,o=this.lineBox(),i=e.vertical?o.height():o.width(),r=this.dataRange.displayRange(),n=r.min,a=r.max,s=this.dataRange.total(),p=vt(t/(i/(a-n)),10)*(e.reverse?-1:1),c=Le(n,p),l=Le(a,p),u=this.limitRange(We(c),We(l),We(s.min),We(s.max),p);return u?(u.min=Ve(u.min),u.max=Ve(u.max),u.baseUnit=e.baseUnit,u.baseUnitStep=e.baseUnitStep||1,u.userSetBaseUnit=e.userSetBaseUnit,u.userSetBaseUnitStep=e.userSetBaseUnitStep,u):void 0},e.prototype.pointsRange=function(e,o){if(this.isEmpty())return null;var i=t.prototype.pointsRange.call(this,e,o),r=this.dataRange.displayRange(),n=this.dataRange.displayIndices(),a=Ue(r.max,r.min)/(n.max-n.min),s=this.options;return{min:Le(r.min,i.min*a),max:Le(r.min,i.max*a),baseUnit:s.userSetBaseUnit||s.baseUnit,baseUnitStep:s.userSetBaseUnitStep||s.baseUnitStep}},e.prototype.scaleRange=function(t,e){if(this.isEmpty())return{};var o=this.options,i="fit"===o.userSetBaseUnit,r=this.dataRange.total(),n=this.dataRange.displayRange(),a=n.min,s=n.max,p=Math.abs(this.pointOffset(e)),c=s-a,l=this.scaleToDelta(t,c),u=Math.round(p*l),h=Math.round((1-p)*l),d=this.dataRange.options.baseUnit,g=new Date(a.getTime()+u),f=new Date(s.getTime()-h);if(i){var v,y,_=o.autoBaseUnitSteps,m=o.maxDateGroups,b=ht(_[d])*m*Be[d],x=Ue(s,a),C=Ue(f,g),S=oo.indexOf(d);if(C<Be[d]&&"milliseconds"!==d)d=oo[S-1],g=Le(a,y=(x-(m-1)*(v=ht(_[d]))*Be[d])/2),f=Le(s,-y);else if(C>b&&d!==Ee){var w=0;do{S++,d=oo[S],w=0,y=2*Be[d];do{v=_[d][w],w++}while(w<_[d].length&&y*v<x)}while(d!==Ee&&y*v<x);(y=(y*v-x)/2)>0&&(g=Le(a,-y),f=Le(s,y),g=Le(g,dt(f,r.min,r.max)-f),f=Le(f,dt(g,r.min,r.max)-g))}}return g&&f&&Ue(f,g)>0?{min:g,max:f,baseUnit:o.userSetBaseUnit||o.baseUnit,baseUnitStep:o.userSetBaseUnitStep||o.baseUnitStep}:void 0},e.prototype.zoomRange=function(t,e){var o=this.dataRange.total(),i=this.scaleRange(t,e);return i&&(i.min<o.min&&(i.min=o.min),i.max>o.max&&(i.max=o.max)),i},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(),i=t.vertical,r=t.rangeLabels.mirror||t.labels.mirror,n=e[0];if(n){var a=i?o.y1-n.box.height()/2:o.x1;this.positionLabel(n,r,a)}var s=e[1];if(s){var p=i?o.y2-s.box.height()/2:o.x2;this.positionLabel(s,r,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 i=0;i<e.length;i++){if(!a(o,e[i]))break}var r=t[1];if(r&&r.options.visible)for(var n=e.length-1;n>0;--n){if(!a(r,e[n]))break}}function a(t,e){return!(e.options.visible&&!e.box.overlaps(t.box))&&(e.options.visible=!1,!0)}},e.prototype.contentBox=function(){for(var e=t.prototype.contentBox.call(this),o=this.rangeLabels,i=0;i<o.length;i++){var r=o[i];r.options.visible&&e.wrap(r.box)}return e},e.prototype.createAxisLabel=function(t,e,o){void 0===o&&(o={});var i=this.options,r=i.dataItems&&!i.maxDivisions?i.dataItems[t]:null,n=this.divisionRange.dateAt(t),a=e.dateFormats[this.divisionRange.options.baseUnit];e.format=e.format||a,o.dataItem=r;var s=this.axisLabelText(n,e,o);if(s)return new he(n,s,t,r,e)},e.prototype.createRangeLabels=function(){var t=this,e=this.divisionRange,o=e.displayStart,i=e.displayEnd,r=this.options,n=Object.assign({},r.labels,r.rangeLabels,{align:s,zIndex:r.zIndex});if(!0===n.visible){this.normalizeLabelRotation(n),n.alignRotation=s,"auto"===n.rotation&&(n.rotation=0,r.autoRotateRangeLabels=!0);var a=n.dateFormats[this.divisionRange.options.baseUnit];n.format=n.format||a;var p=function(e,o,i){if(i){var r=new he(o,i,e,null,n);t.append(r),t.rangeLabels.push(r)}};p(0,o,this.axisLabelText(o,n,{index:0,count:2})),p(1,i,this.axisLabelText(i,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,i){var r=2*Math.abs(o[i+1]-o[i]),n=t.autoRotateLabelAngle(e.box,r);0!==n&&(e.options.rotation=n,e.reflow(new zt))},i=this.getMajorTickPositions();o(e[0],i,0),o(e[1],i,i.length-2)}},e.prototype.categoryIndex=function(t){return this.dataRange.valueIndex(t)},e.prototype.slot=function(t,e,o){var i=this.dataRange,r=t,n=e;r instanceof Date&&(r=i.dateIndex(r)),n instanceof Date&&(n=i.dateIndex(n));var a=this.getSlot(r,n,o);if(a)return a.toRect()},e.prototype.getSlot=function(e,o,i){var r=e,n=o;return"object"==typeof r&&(r=this.categoryIndex(r)),"object"==typeof n&&(n=this.categoryIndex(n)),t.prototype.getSlot.call(this,r,n,i)},e.prototype.valueRange=function(){var t=io(this.options.srcCategories);return{min:Ve(t.min),max:Ve(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=io(t.srcCategories);return new no(e.min,e.max,Object.assign({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:t.justified})).displayRange()},e}(to);xt(po,{type:c,labels:{dateFormats:eo},rangeLabels:{visible:!1},autoBaseUnitSteps:{milliseconds:[1,10,100],seconds:[1,2,5,15,30],minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10});var co=po;function lo(t,e){return vt(Math.floor(t/e)*e,10)}function uo(t,e){return vt(Math.ceil(t/e)*e,10)}function ho(t){return Math.max(Math.min(t,3e5),-3e5)}var go=Math.pow(10,-9),fo=function(t){function e(e,o,i,r){t.call(this,Object.assign({},i,{seriesMin:e,seriesMax:o}),r)}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 i=o.narrowRange,r=function(t,e,o){if(!t&&!e)return 0;var i;if(t>=0&&e>=0){var r=t===e?0:t;if(!1===o||!o&&(e-r)/e>.2)return 0;i=Math.max(0,r-(e-r)/2)}else i=t;return i}(t,e,i),n=function(t,e,o){if(!t&&!e)return 1;var i;if(t<=0&&e<=0){var r=t===e?0:e,n=Math.abs((r-t)/r);if(!1===o||!o&&n>.2)return 0;i=Math.min(0,r-(t-r)/2)}else i=e;return i}(t,e,i),a=Rt(r,n),s={majorUnit:a};!1!==o.roundToMajorUnit&&(r<0&&vo(r,a,1/3)&&(r-=a),n>0&&vo(n,a,1/3)&&(n+=a));return s.min=lo(r,a),s.max=uo(n,a),s}(t.seriesMin,t.seriesMax,t);return this.totalOptions=function(t,e){return{min:at(e.min)?Math.min(t.min,e.min):t.min,max:at(e.max)?Math.max(t.max,e.max):t.max,majorUnit:t.majorUnit}}(e,t),function(t,e){var o,i,r=e;if(e){!function(t,e){for(var o=0;o<e.length;o++){var i=e[o];null===t[i]&&(t[i]=void 0)}}(e,["min","max"]),o=at(e.min),i=at(e.max);var n=o||i;n&&e.min===e.max&&(e.min>0?e.min=0:e.max=1),e.majorUnit?(t.min=lo(t.min,e.majorUnit),t.max=uo(t.max,e.majorUnit)):n&&(r=M(t,e),t.majorUnit=Rt(r.min,r.max))}t.minorUnit=(r.majorUnit||t.majorUnit)/5;var a=M(t,r);a.min>=a.max&&(o&&!i?a.max=a.min+a.majorUnit:!o&&i&&(a.min=a.max-a.majorUnit));return a}(e,t)},e.prototype.initFields=function(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax},e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.startValue=function(){return 0},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.getDivisions=function(t){if(0===t)return 1;var e=this.options,o=e.max-e.min;return Math.floor(vt(o/t,3))+1},e.prototype.getTickPositions=function(t,e){var o=this.options,i=this.lineInfo(),r=i.axisDir,n=i.axisOrigin,a=i.lineBox,s=t*(i.lineSize/(o.max-o.min)),p=this.getDivisions(t),c=[],l=a[n],u=0;e&&(u=e/t);for(var h=0;h<p;h++)h%u!=0&&c.push(vt(l,3)),l+=s*r;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 i=this.options,r=this.lineInfo(),n=r.axis,a=r.axisDir,s=r.lineBox,p=r.lineSize,c=r.lineStart,l=a*(p/(i.max-i.min)),u=_t(t,e||0),h=_t(e,t||0);o&&(u=dt(u,i.min,i.max),h=dt(h,i.min,i.max));var d=Math.min(u,h)-i.min,g=Math.max(u,h)-i.min,f=new zt(s.x1,s.y1,s.x1,s.y1);return f[n+1]=ho(c+l*(a>0?d:g)),f[n+2]=ho(c+l*(a>0?g:d)),f},e.prototype.getValue=function(t){var e=this.options,o=Number(e.max),i=Number(e.min),r=this.pointOffset(t);return r<0||r>1?null:vt(i+r*(o-i),10)},e.prototype.translateRange=function(t){var e=this.options,o=e.vertical,i=e.reverse,r=e.max,n=e.min,a=this.lineInfo().lineSize,s=vt(t/(a/(r-n)),10);return!o&&!i||o&&i||(s=-s),{min:n+s,max:r+s,offset:s}},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,o){var i=this.options,r=vt(i.min+t*i.majorUnit,10),n=this.axisLabelText(r,e,o);return new he(r,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),i=this.getValue(e),r=Math.min(o,i),n=Math.max(o,i);if(this.isValidRange(r,n))return{min:r,max:n}},e.prototype.scaleRange=function(t,e){var o=Math.abs(this.pointOffset(e)),i=this.options.max-this.options.min,r=this.scaleToDelta(t,i),n=o*r,a=(1-o)*r,s=vt(this.options.min+n,10),p=vt(this.options.max-a,10);return p-s<go&&(p=s+go),{min:s,max:p}},e.prototype.zoomRange=function(t,e){var o=this.totalMin,i=this.totalMax,r=this.scaleRange(t,e);return{min:dt(r.min,o,i),max:dt(r.max,o,i)}},e.prototype.isValidRange=function(t,e){return e-t>go},e}(Me);function vo(t,e,o){var i=vt(Math.abs(t%e),10);return 0===i||i>e*(1-o)}xt(fo,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},labels:{format:"#.####################"},zIndex:1});var yo=fo,_o=function(t){function e(e,o,i,r){var n=Ve(e),a=Ve(o),s=r.intl,p=i||{};p=function(t,e,o){var i=o.min||t,r=o.max||e,n=o.baseUnit||(r&&i?function(t){var e="hours";t>=31536e6?e=Ee:t>=26784e5?e="months":t>=6048e5?e="weeks":t>=864e5&&(e=De);return e}(Re(r,i)):"hours"),a=Be[n],s=o.weekStartDay||0,p=Fe(We(i)-1,n,s)||Ve(r),c=Ge(We(r)+1,n,s),l=(o.majorUnit?o.majorUnit:void 0)||uo(Rt(p.getTime(),c.getTime()),a)/a,u=Ze(p,c,n),h=uo(u,l)-u,d=Math.floor(h/2),g=h-d;o.baseUnit||delete o.baseUnit;return o.baseUnit=o.baseUnit||n,o.min=o.min||Ne(p,-d,n,s),o.max=o.max||Ne(c,g,n,s),o.minorUnit=o.minorUnit||l/5,o.majorUnit=l,o}(n,a,p=M(p||{},{min:Ke(s,p.min),max:Ke(s,p.max),axisCrossingValue:Qe(s,p.axisCrossingValues||p.axisCrossingValue),weekStartDay:$e(p,s)})),t.call(this,p,r),this.intlService=s,this.seriesMin=n,this.seriesMax=a;var c=p.weekStartDay||0;this.totalMin=We(Fe(We(n)-1,p.baseUnit,c)),this.totalMax=We(Ge(We(a)+1,p.baseUnit,c))}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(Ze(e.min,e.max,e.baseUnit)/t+1)},e.prototype.getTickPositions=function(t){for(var e=this.options,o=this.lineInfo(),i=o.axisDir,r=o.lineSize,n=o.lineStart,a=this.getDivisions(t),s=r/Ue(e.max,e.min),p=e.weekStartDay||0,c=[n],l=1;l<a;l++){var u=n+Ue(Ne(e.min,l*t,e.baseUnit,p),e.min)*s*i;c.push(vt(u,3))}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 yo.prototype.getSlot.call(this,Ke(this.intlService,t),Ke(this.intlService,e),o)},e.prototype.getValue=function(t){var e=yo.prototype.getValue.call(this,t);return null!==e?Ve(e):null},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,o){var i=this.options,r=t*i.majorUnit,n=i.weekStartDay||0,a=i.min;r>0&&(a=Ne(a,r,i.baseUnit,n));var s=e.dateFormats[i.baseUnit];e.format=e.format||s;var p=this.axisLabelText(a,e,o);return new he(a,p,t,null,e)},e.prototype.translateRange=function(t){var e=this.options,o=this.lineBox(),i=e.vertical,r=e.reverse,n=i?o.height():o.width(),a=this.range(),s=n/Ue(a.max,a.min),p=vt(t/s,10);return!i&&!r||i&&r||(p=-p),{min:Le(e.min,p),max:Le(e.max,p),offset:p}},e.prototype.shouldRenderNote=function(t){var e=this.range();return He(t,e.min)>=0&&He(t,e.max)<=0},e.prototype.pan=function(t){var e=this.translateRange(t,!0),o=this.limitRange(We(e.min),We(e.max),this.totalMin,this.totalMax,e.offset);if(o)return{min:Ve(o.min),max:Ve(o.max)}},e.prototype.pointsRange=function(t,e){var o=this.getValue(t),i=this.getValue(e),r=Math.min(o,i),n=Math.max(o,i);return{min:Ve(r),max:Ve(n)}},e.prototype.scaleRange=function(t,e){var o=Math.abs(this.pointOffset(e)),i=this.options.max-this.options.min,r=this.scaleToDelta(t,i),n=o*r,a=(1-o)*r,s=Ve(We(this.options.min)+n),p=Ve(We(this.options.max)-a);return p-s<1e3&&(p=Ve(We(s)+1e3)),{min:s,max:p}},e.prototype.zoomRange=function(t,e){var o=this.scaleRange(t,e);return{min:Ve(dt(We(o.min),this.totalMin,this.totalMax)),max:Ve(dt(We(o.max),this.totalMin,this.totalMax))}},e}(Me);xt(_o,{type:c,majorGridLines:{visible:!0,width:1,color:n},labels:{dateFormats:eo}});var mo=_o,bo=function(t){function e(e,o,i,r){var n=M({majorUnit:10,min:e,max:o},i),a=n.majorUnit,s=function(t,e){var o,i=vt(Co(t,e),10)%1;o=t<=0?e:0!==i&&(i<.3||i>.9)?Math.pow(e,Co(t,e)+.2):Math.pow(e,Math.ceil(Co(t,e)));return o}(o,a),p=function(t,e,o){var i=o.majorUnit,r=t;t<=0?r=e<=1?Math.pow(i,-2):1:o.narrowRange||(r=Math.pow(i,Math.floor(Co(t,i))));return r}(e,o,n),c=function(t,e,o,i){var r=o.min,n=o.max;at(o.axisCrossingValue)&&o.axisCrossingValue<=0&&xo();at(i.max)?i.max<=0&&xo():n=e;at(i.min)?i.min<=0&&xo():r=t;return{min:r,max:n}}(p,s,n,i);n.max=c.max,n.min=c.min,n.minorUnit=i.minorUnit||vt(a-1,10),t.call(this,n,r),this.totalMin=at(i.min)?Math.min(p,i.min):p,this.totalMax=at(i.max)?Math.max(s,i.max):s,this.logMin=vt(Co(c.min,a),10),this.logMax=vt(Co(c.max,a),10),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 i=this.options,r=this.logMin,n=this.logMax,a=i.majorUnit,s=i.min,p=i.max,c=this.lineInfo(),l=c.axis,u=c.axisDir,h=c.lineBox,d=c.lineSize,g=c.lineStart,f=u*(d/(n-r)),v=_t(t,e||1),y=_t(e,t||1);if(v<=0||y<=0)return null;o&&(v=dt(v,s,p),y=dt(y,s,p)),v=Co(v,a),y=Co(y,a);var _=Math.min(v,y)-r,m=Math.max(v,y)-r,b=new zt(h.x1,h.y1,h.x1,h.y1);return b[l+1]=ho(g+f*(u>0?_:m)),b[l+2]=ho(g+f*(u>0?m:_)),b},e.prototype.getValue=function(t){var e=this.options,o=this.logMin,i=this.logMax,r=e.majorUnit,n=this.lineInfo(),a=n.axis,s=n.axisDir,p=n.lineStart,c=n.lineSize,l=(i-o)/c,u=s*(t[a]-p);if(u<0||u>c)return null;var h=o+u*l;return vt(Math.pow(r,h),10)},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.translateRange=function(t){var e=this.options,o=this.logMin,i=this.logMax,r=e.reverse,n=e.vertical,a=e.majorUnit,s=this.lineBox(),p=n?s.height():s.width(),c=vt(t/(p/(i-o)),10);return!n&&!r||n&&r||(c=-c),{min:Math.pow(a,o+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,i=e.minorTicks,r=e.vertical,n=e.labels.mirror,a=this.lineBox(),s={vertical:r};function p(e,o){s.tickX=n?a.x2:a.x2-o.size,s.tickY=n?a.y1-o.size:a.y1,s.position=e,t.append(Pe(s,o))}return o.visible&&this.traverseMajorTicksPositions(p,o),i.visible&&this.traverseMinorTicksPositions(p,i),[]},e.prototype.createGridLines=function(t){var e=this.options,o=e.minorGridLines,i=e.majorGridLines,r=e.vertical,n=t.lineBox(),a={lineStart:n[r?"x1":"y1"],lineEnd:n[r?"x2":"y2"],vertical:r},s=[],p=this.gridLinesVisual();function c(t,e){K(t,s)||(a.position=t,p.append(je(a,e)),s.push(t))}return i.visible&&this.traverseMajorTicksPositions(c,i),o.visible&&this.traverseMinorTicksPositions(c,o),p.children},e.prototype.traverseMajorTicksPositions=function(t,e){for(var o=this.lineInfo(),i=o.lineStart,r=o.step,n=this.logMin,a=this.logMax,s=Math.ceil(n)+e.skip;s<=a;s+=e.step){t(vt(i+r*(s-n),10),e)}},e.prototype.traverseMinorTicksPositions=function(t,e){for(var o=this.options,i=o.min,r=o.max,n=o.minorUnit,a=o.majorUnit,s=this.lineInfo(),p=s.lineStart,c=s.step,l=this.logMin,u=this.logMax,h=Math.floor(l);h<u;h++)for(var d=this._minorIntervalOptions(h),g=e.skip;g<n;g+=e.step){var f=d.value+g*d.minorStep;if(f>r)break;if(f>=i)t(vt(p+c*(Co(f,a)-l),10),e)}},e.prototype.createAxisLabel=function(t,e,o){var i=Math.ceil(this.logMin+t),r=Math.pow(this.options.majorUnit,i),n=this.axisLabelText(r,e,o);return new he(r,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),i=this.getValue(e);return{min:Math.min(o,i),max:Math.max(o,i)}},e.prototype.scaleRange=function(t,e){var o=this.options.majorUnit,i=Co(this.options.min,o),r=Co(this.options.max,o),n=Math.abs(this.pointOffset(e)),a=r-i,s=this.scaleToDelta(t,a),p=Math.pow(o,i+n*s),c=Math.pow(o,r-(1-n)*s);return c-p<1e-6&&(c=p+1e-6),{min:p,max:c}},e.prototype.zoomRange=function(t,e){var o=this.scaleRange(t,e),i=this.totalMin,r=this.totalMax;return{min:dt(o.min,i,r),max:dt(o.max,i,r)}},e.prototype._minorIntervalOptions=function(t){var e=this.options,o=e.minorUnit,i=e.majorUnit,r=Math.pow(i,t);return{value:r,minorStep:(Math.pow(i,t+1)-r)/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}(Me);function xo(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function Co(t,e){return Math.log(t)/Math.log(e)}xt(bo,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},zIndex:1,_deferLabels:!0});var So=bo,wo={createGridLines:function(t){var e,o,i=this.options,r=Math.abs(this.box.center().y-t.lineBox().y1),n=[],a=!1;return i.majorGridLines.visible&&(e=this.majorGridLineAngles(t),a=!0,n=this.renderMajorGridLines(e,r,i.majorGridLines)),i.minorGridLines.visible&&(o=this.minorGridLineAngles(t,a),rt(n,this.renderMinorGridLines(o,r,i.minorGridLines,t,a))),n},renderMajorGridLines:function(t,e,o){return this.renderGridLines(t,e,o)},renderMinorGridLines:function(t,e,o,i,r){var n=this.radiusCallback&&this.radiusCallback(e,i,r);return this.renderGridLines(t,e,o,n)},renderGridLines:function(t,e,o,i){for(var r={stroke:{width:o.width,color:o.color,dashType:o.dashType}},n=this.box.center(),a=new w.geometry.Circle([n.x,n.y],e),s=this.gridLinesVisual(),p=0;p<t.length;p++){var c=new w.drawing.Path(r);i&&(a.radius=i(t[p])),c.moveTo(a.center).lineTo(a.pointAt(t[p]+180)),s.append(c)}return s.children},gridLineAngles:function(t,e,o,i,r){var n=this,a=this.intervals(e,o,i,r),s=t.options,p=s.visible&&!1!==(s.line||{}).visible;return tt(a,(function(t){var e=n.intervalAngle(t);if(!p||90!==e)return e}))}},Ao=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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,i=e.step||1,r=new zt,n=0;n<t.length;n++){t[n].reflow(r);var a=t[n].box;t[n].reflow(this.getSlot(o+n*i).adjacentBox(0,a.width(),a.height()))}},e.prototype.intervals=function(t,e,o,i){void 0===i&&(i=!1);for(var r=this.options,n=r.categories.length/t||1,a=360/n,s=o||1,p=[],c=0,l=e||0;l<n;l+=s)c=r.reverse?360-l*a:l*a,c=vt(c,3)%360,i&&K(c,i)||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 tt(this.majorIntervals(),(function(e){return t.intervalAngle(e)}))},e.prototype.createLine=function(){return[]},e.prototype.majorGridLineAngles=function(t){var e=this.options.majorGridLines;return this.gridLineAngles(t,1,e.skip,e.step)},e.prototype.minorGridLineAngles=function(t,e){var o=this.options,i=o.minorGridLines,r=o.majorGridLines,n=e?this.intervals(1,r.skip,r.step):null;return this.gridLineAngles(t,.5,i.skip,i.step,n)},e.prototype.radiusCallback=function(t,e,o){if(e.options.type!==r){var i=ft(360/(2*this.options.categories.length)),n=Math.cos(i)*t,a=this.majorAngles(),s=function(e){return!o&&K(e,a)?t:n};return s}},e.prototype.createPlotBands=function(){for(var t=this.options.plotBands||[],e=this._plotbandGroup=new w.drawing.Group({zIndex:-1}),o=0;o<t.length;o++){var i=t[o],r=this.plotBandSlot(i),n=this.getSlot(i.from),a=i.from-Math.floor(i.from);r.startAngle+=a*n.angle;var s=Math.ceil(i.to)-i.to;r.angle-=(s+a)*n.angle;var p=Ut.current.createRing(r,{fill:{color:i.color,opacity:i.opacity},stroke:{opacity:i.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,i=o.justified,r=this.box,n=this.majorAngles(),a=n.length,s=360/a,p=t;o.reverse&&!i&&(p=(p+1)%a);var c=n[p=dt(Math.floor(p),0,a-1)];i&&(c-=s/2)<0&&(c+=360);var l=s*(dt(Math.ceil(e||p),p,a-1)-p+1);return new Ft(r.center(),0,r.height()/2,c,l)},e.prototype.slot=function(t,e){var o=this.getSlot(t,e),i=o.startAngle+180,r=i+o.angle;return new w.geometry.Arc([o.center.x,o.center.y],{startAngle:i,endAngle:r,radiusX:o.radius,radiusY:o.radius})},e.prototype.pointCategoryIndex=function(t){for(var e=this.options.categories.length,o=null,i=0;i<e;i++){if(this.getSlot(i).containsPoint(t)){o=i;break}}return o},e}(to);xt(Ao,{startAngle:90,labels:{margin:V(10)},majorGridLines:{visible:!0},justified:!0}),M(Ao.prototype,wo);var ko=Ao,Io=function(t){function e(e,o){t.call(this,e,o);var i=this.options;i.minorUnit=i.minorUnit||i.majorUnit/2}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDivisions=function(t){return yo.prototype.getDivisions.call(this,t)-1},e.prototype.reflow=function(t){this.box=t,this.reflowLabels()},e.prototype.reflowLabels=function(){for(var t=this.options,e=this.labels,o=this.options.labels,i=o.skip||0,r=o.step||1,n=new zt,a=this.intervals(t.majorUnit,i,r),s=0;s<e.length;s++){e[s].reflow(n);var p=e[s].box;e[s].reflow(this.getSlot(a[s]).adjacentBox(0,p.width(),p.height()))}},e.prototype.lineBox=function(){return this.box},e.prototype.intervals=function(t,e,o,i){void 0===i&&(i=!1);for(var r=this.options.min,n=this.getDivisions(t),a=[],s=o||1,p=e||0;p<n;p+=s){var c=(360+r+p*t)%360;i&&K(c,i)||a.push(c)}return a},e.prototype.majorIntervals=function(){return this.intervals(this.options.majorUnit)},e.prototype.minorIntervals=function(){return this.intervals(this.options.minorUnit)},e.prototype.intervalAngle=function(t){return(540-t-this.options.startAngle)%360},e.prototype.createLine=function(){return[]},e.prototype.majorGridLineAngles=function(t){var e=this.options.majorGridLines;return this.gridLineAngles(t,this.options.majorUnit,e.skip,e.step)},e.prototype.minorGridLineAngles=function(t,e){var o=this.options,i=o.minorGridLines,r=o.majorGridLines,n=e?this.intervals(o.majorUnit,r.skip,r.step):null;return this.gridLineAngles(t,o.minorUnit,i.skip,i.step,n)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to)},e.prototype.getSlot=function(t,e){var o=this.options,i=this.box,r=o.startAngle,n=dt(t,o.min,o.max),a=dt(e||n,n,o.max);if(o.reverse&&(n*=-1,a*=-1),(a=(540-a-r)%360)<(n=(540-n-r)%360)){var s=n;n=a,a=s}return new Ft(i.center(),0,i.height()/2,n,a-n)},e.prototype.slot=function(t,e){void 0===e&&(e=t);var o,i,r=this.options,n=360-r.startAngle,a=this.getSlot(t,e),s=Math.min(t,e),p=Math.max(t,e);return r.reverse?(o=s,i=p):(o=360-p,i=360-s),o=(o+n)%360,i=(i+n)%360,new w.geometry.Arc([a.center.x,a.center.y],{startAngle:o,endAngle:i,radiusX:a.radius,radiusY:a.radius})},e.prototype.getValue=function(t){var e=this.options,o=this.box.center(),i=t.x-o.x,r=t.y-o.y,n=Math.round(st(Math.atan2(r,i))),a=e.startAngle;return e.reverse||(n*=-1,a*=-1),(n+a+360)%360},e.prototype.valueRange=function(){return{min:0,max:2*Math.PI}},e}(Me);xt(Io,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:V(10)},majorGridLines:{color:n,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),M(Io.prototype,wo,{createPlotBands:ko.prototype.createPlotBands,majorAngles:ko.prototype.majorAngles,range:yo.prototype.range,labelsCount:yo.prototype.labelsCount,createAxisLabel:yo.prototype.createAxisLabel});var Oo=Io;function Po(t,e){return 180-Math.abs(Math.abs(t-e)-180)}var jo={options:{majorGridLines:{visible:!0}},createPlotBands:function(){var t=this.options,e=t.majorGridLines.type,o=t.plotBands;void 0===o&&(o=[]);for(var i=this.plotArea.polarAxis,n=i.majorAngles(),a=i.box.center(),s=this._plotbandGroup=new w.drawing.Group({zIndex:-1}),p=0;p<o.length;p++){var c=o[p],l={fill:{color:c.color,opacity:c.opacity},stroke:{opacity:c.opacity}},u=this.getSlot(c.from,c.to,!0),h=new Ft(a,a.y-u.y2,a.y-u.y1,0,360),d=void 0;d=e===r?Ut.current.createRing(h,l):w.drawing.Path.fromPoints(this.plotBandPoints(h,n),l).close(),s.append(d)}this.appendVisual(s)},plotBandPoints:function(t,e){for(var o=[],i=[],r=[t.center.x,t.center.y],n=new w.geometry.Circle(r,t.innerRadius),a=new w.geometry.Circle(r,t.radius),s=0;s<e.length;s++)o.push(n.pointAt(e[s]+180)),i.push(a.pointAt(e[s]+180));return o.reverse(),o.push(o[0]),i.push(i[0]),i.concat(o)},createGridLines:function(t){var e=this.options,o=this.radarMajorGridLinePositions(),i=t.majorAngles(),r=t.box.center(),n=[];if(e.majorGridLines.visible&&(n=this.renderGridLines(r,o,i,e.majorGridLines)),e.minorGridLines.visible){var a=this.radarMinorGridLinePositions();rt(n,this.renderGridLines(r,a,i,e.minorGridLines))}return n},renderGridLines:function(t,e,o,i){var n={stroke:{width:i.width,color:i.color,dashType:i.dashType}},a=i.skip;void 0===a&&(a=0);var s=i.step;void 0===s&&(s=0);for(var p=this.gridLinesVisual(),c=a;c<e.length;c+=s){var l=t.y-e[c];if(l>0){var u=new w.geometry.Circle([t.x,t.y],l);if(i.type===r)p.append(new w.drawing.Circle(u,n));else{for(var h=new w.drawing.Path(n),d=0;d<o.length;d++)h.lineTo(u.pointAt(o[d]+180));h.close(),p.append(h)}}}return p.children},getValue:function(t){var e=this.lineBox(),o=this.plotArea.polarAxis,i=o.majorAngles(),n=o.box.center(),a=t.distanceTo(n),s=a;if(this.options.majorGridLines.type!==r&&i.length>1){var p=t.x-n.x,c=t.y-n.y,l=(st(Math.atan2(c,p))+540)%360;i.sort((function(t,e){return Po(t,l)-Po(e,l)}));var u=90-Po(i[0],i[1])/2,h=180-Po(l,i[0])-u;s=a*(Math.sin(ft(h))/Math.sin(ft(u)))}return this.axisType().prototype.getValue.call(this,new Lt(e.x1,e.y2-s))}},To=function(t){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}(yo);M(To.prototype,jo);var Mo=To,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.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}(So);M(Do.prototype,jo);var Eo=Do;function Bo(t){return t<=0?-1:1}var Ro=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=[],i=this.closed,r=e.length;if(r>2&&(this.removeDuplicates(0,e),r=e.length),r<2||2===r&&e[0].equals(e[1]))return o;var n,a,s=e[0],p=e[1],c=e[2];for(o.push(new w.geometry.Segment(s));s.equals(e[r-1]);)i=!0,e.pop(),r--;if(2===r){var l=this.tangent(s,p,_,m);return ht(o).controlOut(this.firstControlPoint(l,s,p,_,m)),o.push(new w.geometry.Segment(p,this.secondControlPoint(l,s,p,_,m))),o}if(i){s=e[r-1],p=e[0],c=e[1];var u=this.controlPoints(s,p,c);n=u[1],a=u[0]}else{var h=this.tangent(s,p,_,m);n=this.firstControlPoint(h,s,p,_,m)}for(var d=n,g=0;g<=r-3;g++)if(this.removeDuplicates(g,e),g+3<=(r=e.length)){s=e[g],p=e[g+1],c=e[g+2];var f=this.controlPoints(s,p,c);ht(o).controlOut(d),d=f[1];var v=f[0];o.push(new w.geometry.Segment(p,v))}if(i){s=e[r-2],p=e[r-1],c=e[0];var y=this.controlPoints(s,p,c);ht(o).controlOut(d),o.push(new w.geometry.Segment(p,y[0])),ht(o).controlOut(y[1]),o.push(new w.geometry.Segment(c,a))}else{var b=this.tangent(p,c,_,m);ht(o).controlOut(d),o.push(new w.geometry.Segment(c,this.secondControlPoint(b,p,c,_,m)))}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 i=!1;if(t.x===e.x)i=!0;else if(e.x===o.x)(e.y<o.y&&t.y<=e.y||o.y<e.y&&e.y<=t.y)&&(i=!0);else{var r=this.lineFunction(t,e),n=this.calculateFunction(r,o.x);t.y<=e.y&&o.y<=n||e.y<=t.y&&o.y>=n||(i=!0)}return i},e.prototype.isLine=function(t,e,o){var i=this.lineFunction(t,e),r=this.calculateFunction(i,o.x);return t.x===e.x&&e.x===o.x||vt(r,1)===vt(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 i,r=_,n=m,a=!1,s=!1;if(this.isLine(t,e,o))i=this.tangent(t,e,_,m);else{var p={x:this.isMonotonicByField(t,e,o,_),y:this.isMonotonicByField(t,e,o,m)};if(p.x&&p.y)i=this.tangent(t,o,_,m),a=!0;else if(this.invertAxis(t,e,o)&&(r=m,n=_),p[r])i=0;else i=.01*(o[n]<t[n]&&t[n]<=e[n]||t[n]<o[n]&&e[n]<=t[n]?Bo((o[n]-t[n])*(e[r]-t[r])):-Bo((o[r]-t[r])*(e[n]-t[n]))),s=!0}var c=this.secondControlPoint(i,t,e,r,n);if(s){var l=r;r=n,n=l}var u=this.firstControlPoint(i,e,o,r,n);return a&&(this.restrictControlPoint(t,e,c,i),this.restrictControlPoint(e,o,u,i)),[c,u]},e.prototype.restrictControlPoint=function(t,e,o,i){t.y<e.y?e.y<o.y?(o.x=t.x+(e.y-t.y)/i,o.y=e.y):o.y<t.y&&(o.x=e.x-(e.y-t.y)/i,o.y=t.y):o.y<e.y?(o.x=t.x-(t.y-e.y)/i,o.y=e.y):t.y<o.y&&(o.x=e.x+(t.y-e.y)/i,o.y=t.y)},e.prototype.tangent=function(t,e,o,i){var r,n=e[o]-t[o],a=e[i]-t[i];return r=0===n?0:a/n,r},e.prototype.isMonotonicByField=function(t,e,o,i){return o[i]>e[i]&&e[i]>t[i]||o[i]<e[i]&&e[i]<t[i]},e.prototype.firstControlPoint=function(t,e,o,i,r){var n=e[i],a=.333*(o[i]-n);return this.point(n+a,e[r]+a*t,i,r)},e.prototype.secondControlPoint=function(t,e,o,i,r){var n=e[i],a=o[i],s=.333*(a-n);return this.point(a-s,o[r]-s*t,i,r)},e.prototype.point=function(t,e,o,i){var r=new w.geometry.Point;return r[o]=t,r[i]=e,r},e.prototype.calculateFunction=function(t,e){for(var o=t.length,i=0,r=0;r<o;r++)i+=Math.pow(e,r)*t[r];return i},e}(w.Class),Lo=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,o=e.getCategory?e.getCategory(t):e.getValue(t);return o},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}(w.Class);function Vo(t,e){for(var o=0;o<e.length;o++)if(e[o].options.name===t)return e[o].prepareUserOptions(),new Lo(e[o])}var zo=function(t){this.visual=t.visual,this.chartsVisual=t.chartContainer.visual,this._pane=t};zo.prototype.findAxisByName=function(t){return Vo(t,this._pane.axes)};var No=zo,Fo=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}(w.Class);function Go(t){for(var e=t.length,o=0,i=0;i<e;i++){I(t[i])&&o++}return o}var Ho={min:function(t){for(var e=t.length,o=h,i=0;i<e;i++){var r=t[i];I(r)&&(o=Math.min(o,r))}return o===h?t[0]:o},max:function(t){for(var e=t.length,o=d,i=0;i<e;i++){var r=t[i];I(r)&&(o=Math.max(o,r))}return o===d?t[0]:o},sum:function(t){for(var e=t.length,o=0,i=0;i<e;i++){var r=t[i];I(r)&&(o+=r)}return o},sumOrNull:function(t){var e=null;return Go(t)&&(e=Ho.sum(t)),e},count:function(t){for(var e=t.length,o=0,i=0;i<e;i++){var r=t[i];null!==r&&at(r)&&o++}return o},avg:function(t){var e=Go(t),o=t[0];return e>0&&(o=Ho.sum(t)/e),o},first:function(t){for(var e=t.length,o=0;o<e;o++){var i=t[o];if(null!==i&&at(i))return i}return t[0]}},Uo=Ho;function Wo(t,e){return null===e?e:W(t)(e)}var Xo=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){void 0===e&&(e=[v]),void 0===o&&(o={});for(var i=0;i<t.length;i++){var r=t[i];this._valueFields[r]=e,this._otherFields[r]=o,this._nullValue[r]=this._makeValue(e,null),this._undefinedValue[r]=this._makeValue(e,void 0)}},e.prototype.canonicalFields=function(t){return this.valueFields(t).concat(this.otherFields(t))},e.prototype.valueFields=function(t){return this._valueFields[t.type]||[v]},e.prototype.otherFields=function(t){return this._otherFields[t.type]||[v]},e.prototype.bindPoint=function(t,e,o){var i,r,n=t.data,a=at(o)?o:n[e],s={valueFields:{value:a}},p=this.valueFields(t),c=this._otherFields[t.type];if(null===a)r=this._nullValue[t.type];else if(at(a)){if(Array.isArray(a)){var l=a.slice(p.length);r=this._bindFromArray(a,p),i=this._bindFromArray(l,c)}else if("object"==typeof a){var u=this.sourceFields(t,p),h=this.sourceFields(t,c);r=this._bindFromObject(a,p,u),i=this._bindFromObject(a,c,h)}}else r=this._undefinedValue[t.type];return at(r)&&(1===p.length?s.valueFields.value=r[p[0]]:s.valueFields=r),s.fields=i||{},s},e.prototype._makeValue=function(t,e){for(var o={},i=t.length,r=0;r<i;r++){o[t[r]]=e}return o},e.prototype._bindFromArray=function(t,e){var o={};if(e)for(var i=Math.min(e.length,t.length),r=0;r<i;r++)o[e[r]]=t[r];return o},e.prototype._bindFromObject=function(t,e,o){void 0===o&&(o=e);var i={};if(e)for(var r=e.length,n=0;n<r;n++){var a=e[n],s=o[n];null!==s&&(i[a]=Wo(s,t))}return i},e.prototype.sourceFields=function(t,e){var o=[];if(e)for(var i=e.length,r=0;r<i;r++){var n=e[r],a=n===v?"field":n+"Field";o.push(null!==t[a]?t[a]||n:null)}return o},e}(w.Class);Xo.current=new Xo;var Yo=Xo,qo=/percent(?:\w*)\((\d+)\)/,Zo=new RegExp("^stddev(?:\\((\\d+(?:\\.\\d+)?)\\))?$"),Ko=function(t){function e(e,o,i){t.call(this),this.initGlobalRanges(e,o,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initGlobalRanges=function(t,e,o){var i=e.data,r=Zo.exec(t);if(r){this.valueGetter=this.createValueGetter(e,o);var n=this.getAverage(i),a=this.getStandardDeviation(i,n,!1),s=r[1]?parseFloat(r[1]):1,p={low:n.value-a*s,high:n.value+a*s};this.globalRange=function(){return p}}else if(t.indexOf&&t.indexOf("stderr")>=0){this.valueGetter=this.createValueGetter(e,o);var c=this.getStandardError(i,this.getAverage(i));this.globalRange=function(t){return{low:t-c,high:t+c}}}},e.prototype.createValueGetter=function(t,e){var o,i=t.data,r=Yo.current,n=r.valueFields(t),a=at(i[0])?i[0]:{};if(b(a))o=W("["+(e?n.indexOf(e):0)+"]");else if(I(a))o=W();else if("object"==typeof a){o=W(r.sourceFields(t,n)[n.indexOf(e)])}return o},e.prototype.getErrorRange=function(t,e){var o,i,r;if(!at(e))return null;if(this.globalRange)return this.globalRange(t);if(b(e))o=t-e[0],i=t+e[1];else if(I(r=parseFloat(e)))o=t-r,i=t+r;else{if(!(r=qo.exec(e)))throw new Error("Invalid ErrorBar value: "+e);var n=t*(parseFloat(r[1])/100);o=t-Math.abs(n),i=t+Math.abs(n)}return{low:o,high:i}},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 i=t.length,r=o?e.count-1:e.count,n=0,a=0;a<i;a++){var s=this.valueGetter(t[a]);I(s)&&(n+=Math.pow(s-e.value,2))}return Math.sqrt(n/r)},e.prototype.getAverage=function(t){for(var e=t.length,o=0,i=0,r=0;r<e;r++){var n=this.valueGetter(t[r]);I(n)&&(o+=n,i++)}return{value:o/i,count:i}},e}(w.Class),Qo=w.support.browser||{},$o=Qo.msie?.001:0,Jo="zero",ti="bar",ei="column",oi="line",ii="pie",ri="verticalLine",ni=[ti,ei,"ohlc","candlestick","boxPlot","verticalBoxPlot","bullet","rangeColumn","rangeBar","waterfall","horizontalWaterfall"],ai="DOMMouseScroll mousewheel",si=function(t){function e(e,o,i,r,n,a){t.call(this,a),this.low=e,this.high=o,this.isVertical=i,this.chart=r,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,i=this.isVertical,r=this.getAxis().getSlot(this.low,this.high),n=t.center(),a=this.getCapsWidth(t,i),s=i?n.x:n.y,p=s-a,c=s+a;i?(e=[new Lt(n.x,r.y1),new Lt(n.x,r.y2)],o&&e.push(new Lt(p,r.y1),new Lt(c,r.y1),new Lt(p,r.y2),new Lt(c,r.y2)),this.box=new zt(p,r.y1,c,r.y2)):(e=[new Lt(r.x1,n.y),new Lt(r.x2,n.y)],o&&e.push(new Lt(r.x1,p),new Lt(r.x1,c),new Lt(r.x2,p),new Lt(r.x2,c)),this.box=new zt(r.x1,p,r.x2,c)),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,i={stroke:{color:e.color,width:e.line.width,dashType:e.line.dashType}};t.prototype.createVisual.call(this);for(var r=0;r<o.length;r+=2){var n=new w.drawing.Path(i).moveTo(o[r].x,o[r].y).lineTo(o[r+1].x,o[r+1].y);A(n),this.visual.append(n)}},e}(Xt);xt(si,{animation:{type:"fadeIn",delay:600},endCaps:!0,line:{width:2},zIndex:1});var pi=si,ci=function(t){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}(pi);function li(t,e,o,i){void 0===o&&(o={}),void 0===i&&(i=!1);var r=o.defaults=o.defaults||{},n=o.depth=o.depth||0,a=!1;if(o.excluded=o.excluded||[],n>5)return null;for(var s in t)if(!K(s,o.excluded)&&t.hasOwnProperty(s)){var p=t[s];j(p)?(a=!0,i||(t[s]=_t(p(e),r[s]))):D(p)&&(i||(o.defaults=r[s]),o.depth++,a=li(p,e,o,i)||a,o.depth--)}return a}function ui(t){for(var e=t.length,o=0,i=0;i<e;i++)o=Math.max(o,t[i].data.length);return o}var hi=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 i=this.pointType().prototype.defaults;this.seriesOptions[e]=o=M({},i,{vertical:!this.options.invertAxes},t)}return o},e.prototype.plotValue=function(t){if(!t)return 0;if(this.options.isStacked100&&I(t.value)){for(var e=t.categoryIx,o=this.categoryPoints[e],i=[],r=0,n=0;n<o.length;n++){var a=o[n];if(a){var s=t.series.stack,p=a.series.stack;if(s&&p&&s.group!==p.group)continue;I(a.value)&&(r+=Math.abs(a.value),i.push(Math.abs(a.value)))}}if(r>0)return t.value/r}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 i=this.plotValue(t),r=i>=0,n=e,a=!1,s=0;s<o.length;s++){var p=o[s];if(t===p)break;var c=t.series.stack,l=p.series.stack;if(c&&l){if("string"==typeof c&&c!==l)continue;if(c.group&&c.group!==l.group)continue}var u=this.plotValue(p);(u>=0&&r||u<0&&!r)&&(n+=u,i+=u,a=!0,this.options.isStacked100&&(i=Math.min(i,1)))}return a&&(n-=e),[n,i]}var h=t.series,d=this.seriesValueAxis(h),g=this.categoryAxisCrossingValue(d);return[g,P(t.value)?t.value:g]},e.prototype.stackLimits=function(t,e){for(var o=h,i=d,r=0;r<this.categoryPoints.length;r++){var n=this.categoryPoints[r];if(n)for(var a=0;a<n.length;a++){var s=n[a];if(s&&(s.series.stack===e||s.series.axis===t)){var p=this.plotRange(s,0)[1];at(p)&&isFinite(p)&&(i=Math.max(i,p),o=Math.min(o,p))}}}return{min:o,max:i}},e.prototype.updateStackRange=function(){var t=this.options,e=t.isStacked,o=t.series,i={};if(e)for(var r=0;r<o.length;r++){var n=o[r],a=n.axis,s=a+n.stack,p=i[s];if(!p){p=this.stackLimits(a,n.stack);var c=this.errorTotals;c&&(c.negative.length&&(p.min=Math.min(p.min,Ct(c.negative).min)),c.positive.length&&(p.max=Math.max(p.max,Ct(c.positive).max))),p.min!==h||p.max!==d?i[s]=p:p=null}p&&(this.valueAxisRanges[a]=p)}},e.prototype.addErrorBar=function(t,e,o){var i,r=t.value,n=t.series,a=t.seriesIx,s=t.options.errorBars,p=e.fields.errorLow,c=e.fields.errorHigh;I(p)&&I(c)?i={low:p,high:c}:s&&at(s.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[a]=this.seriesErrorRanges[a]||new Ko(s.value,n,v),i=this.seriesErrorRanges[a].getErrorRange(r,s.value)),i&&(t.low=i.low,t.high=i.high,this.addPointErrorBar(t,o))},e.prototype.addPointErrorBar=function(t,e){var o=!this.options.invertAxes,i=t.options.errorBars,r=t.series,n=t.low,a=t.high;if(this.options.isStacked){var s=this.stackedErrorRange(t,e);n=s.low,a=s.high}else{var p={categoryIx:e,series:r};this.updateRange({value:n},p),this.updateRange({value:a},p)}var c=new ci(n,a,o,this,r,i);t.errorBars=[c],t.append(c)},e.prototype.stackedErrorRange=function(t,e){var o=this.plotRange(t,0)[1]-t.value,i=t.low+o,r=t.high+o;return this.errorTotals=this.errorTotals||{positive:[],negative:[]},i<0&&(this.errorTotals.negative[e]=Math.min(this.errorTotals.negative[e]||0,i)),r>0&&(this.errorTotals.positive[e]=Math.max(this.errorTotals.positive[e]||0,r)),{low:i,high:r}},e.prototype.addValue=function(t,e){var o=e.categoryIx,i=e.series,r=e.seriesIx,n=this.categoryPoints[o];n||(this.categoryPoints[o]=n=[]);var a=this.seriesPoints[r];a||(this.seriesPoints[r]=a=[]);var s=this.createPoint(t,e);s&&(Object.assign(s,e),s.owner=this,s.noteText=t.fields.noteText,at(s.dataItem)||(s.dataItem=i.data[o]),this.addErrorBar(s,t,o)),this.points.push(s),a.push(s),n.push(s),this.updateRange(t.valueFields,e)},e.prototype.evalPointOptions=function(t,e,o,i,r,n){var a={defaults:r._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},s=this._evalSeries[n];at(s)||(this._evalSeries[n]=s=li(t,{},a,!0));var p=t;return s&&li(p=M({},p),{value:e,category:o,index:i,series:r,dataItem:r.data[i]},a),p},e.prototype.updateRange=function(t,e){var o=e.series.axis,i=t.value,r=this.valueAxisRanges[o];isFinite(i)&&null!==i&&((r=this.valueAxisRanges[o]=r||{min:h,max:d}).min=Math.min(r.min,i),r.max=Math.max(r.max,i))},e.prototype.seriesValueAxis=function(t){var e=this.plotArea,o=t.axis,i=o?e.namedValueAxes[o]:e.valueAxis;if(!i)throw new Error("Unable to locate value axis with name "+o);return i},e.prototype.reflow=function(t){var e=this,o=this.categorySlots=[],i=this.points,r=this.categoryAxis,n=0;this.traverseDataPoints((function(t,a){var s=a.categoryIx,p=a.series,c=e.seriesValueAxis(p),l=i[n++],u=o[s];if(u||(o[s]=u=e.categorySlot(r,s,c)),l){var h=e.plotRange(l,c.startValue()),d=e.valueSlot(c,h);if(d){var g=e.pointSlot(u,d);l.aboveAxis=e.aboveAxis(l,c),l.stackValue=h[1],e.options.isStacked100&&(l.percentage=e.plotValue(l)),e.reflowPoint(l,g)}else l.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(ht(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),i=t.value;return e.options.reverse?i<o:i>=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,i=o?e:t,r=o?t:e;return new zt(i.x1,r.y1,i.x2,r.y2)},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,o=ui(e),i=e.length,r=0;r<i;r++)this._outOfRangeCallback(e[r],"_outOfRangeMinPoint",r,t);for(var n=0;n<o;n++)for(var a=0;a<i;a++){var s=e[a],p=this.categoryAxis.categoryAt(n);t(this._bindPoint(s,a,n),{category:p,categoryIx:n,categoriesCount:o,series:s,seriesIx:a})}for(var c=0;c<i;c++)this._outOfRangeCallback(e[c],"_outOfRangeMaxPoint",c,t)},e.prototype._outOfRangeCallback=function(t,e,o,i){var r=t[e];if(r){var n=r.categoryIx;i(this._bindPoint(t,o,n,r.item),{category:r.category,categoryIx:n,series:t,seriesIx:o,dataItem:r.item})}},e.prototype._bindPoint=function(t,e,o,i){this._bindCache||(this._bindCache=[]);var r=this._bindCache[e];r||(r=this._bindCache[e]=[]);var n=r[o];return n||(n=r[o]=Yo.current.bindPoint(t,o,i)),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}(Xt);xt(hi,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0});var di=hi,gi={click:function(t,e){return t.trigger("seriesClick",this.eventArgs(e))},hover:function(t,e){return t.trigger("seriesHover",this.eventArgs(e))},over:function(t,e){return t.trigger("seriesOver",this.eventArgs(e))},out:function(t,e){return t.trigger("seriesLeave",this.eventArgs(e))},eventArgs:function(t){return{value:this.value,percentage:this.percentage,stackValue:this.stackValue,category:this.category,series:this.series,dataItem:this.dataItem,runningTotal:this.runningTotal,total:this.total,element:lt(t),originalEvent:t,point:this}}},fi={createNote:function(){var t=this.options.notes,e=this.noteText||t.label.text;!1!==t.visible&&at(e)&&null!==e&&(this.note=new ge({value:this.value,text:e,dataItem:this.dataItem,category:this.category,series:this.series},this.options.notes,this.owner.chartService),this.append(this.note))}},vi=function(t){function e(e,o){t.call(this),this.value=e,this.options=o,this.aboveAxis=_t(this.options.aboveAxis,!0),this.tooltipTracking=!0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options,e=t.markers,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 i=G(o),r=this.pointData(),n=this.value;i?n=i(r):o.format&&(n=this.formatValue(o.format)),this.label=new pe(n,M({align:s,vAlign:s,margin:{left:5,right:5},zIndex:_t(o.zIndex,this.series.zIndex)},o),r),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=M({color:this.color},t.border);return at(o.color)||(o.color=new w.Color(e).brightness(.8).toHex()),o},e.prototype.createVisual=function(){},e.prototype.createMarker=function(){var t=this.options.markers;return new Kt({type:t.type,width:t.size,height:t.size,rotation:t.rotation,background:t.background,border:this.markerBorder(),opacity:this.series.opacity||t.opacity,zIndex:_t(t.zIndex,this.series.zIndex),animation:t.animation,visual:t.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category})},e.prototype.markerBox=function(){return this.marker||(this.marker=this.createMarker(),this.marker.reflow(this._childBox)),this.marker.box},e.prototype.reflow=function(t){var e=this.options,o=this.aboveAxis,i=e.vertical;this.render(),this.box=t;var r=t.clone();if(i?o?r.y1-=r.height():r.y2+=r.height():o?r.x1+=r.width():r.x2-=r.width(),this._childBox=r,this.marker&&this.marker.reflow(r),this.reflowLabel(r),this.errorBars)for(var n=0;n<this.errorBars.length;n++)this.errorBars[n].reflow(r);if(this.note){var a=this.markerBox();if(!e.markers.visible||!e.markers.size){var s=a.center();a=new zt(s.x,s.y,s.x,s.y)}this.note.reflow(a)}},e.prototype.reflowLabel=function(t){var e=this.options,o=this.label,i=e.labels.position;o&&(i="below"===(i="above"===i?f:i)?a:i,o.reflow(t),o.box.alignTo(this.markerBox(),i),o.reflow(o.box))},e.prototype.createHighlight=function(){var t=this.options.highlight.markers,e=this.markerBorder().color,o=this.options.markers,i=o.size+(o.border.width||0)+(t.border.width||0),r=new Kt({type:o.type,width:i,height:i,rotation:o.rotation,background:t.color||e,border:{color:t.border.color,width:t.border.width,opacity:_t(t.border.opacity,1)},opacity:_t(t.opacity,1)});return r.reflow(this._childBox),r.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 i=this.options.markers.size,r=i/2,n=this.box.center();e=new w.geometry.Rect([n.x-r,n.y-r],[i,i])}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,i,r=t.x2+5;return this.aboveAxis?(o=t.y1,i=a):(o=t.y2,i=f),{point:new Lt(r,o),align:{horizontal:"left",vertical:i}}}},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}(Xt);vi.prototype.defaults={vertical:!0,markers:{visible:!0,background:y,size:8,type:p,border:{width:2},opacity:1},labels:{visible:!1,position:"above",margin:V(3),padding:V(4),animation:{type:"fadeIn",delay:600}},notes:{label:{}},highlight:{markers:{border:{color:"#fff",width:2}},zIndex:100},errorBars:{line:{width:1}}},M(vi.prototype,gi),M(vi.prototype,fi);var yi=vi,_i=function(t){function e(e,o,i){t.call(this),this.linePoints=e,this.series=o,this.seriesIx=i}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,i=t.length;o<i;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&&!at(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,i=e._defaults;j(o)&&i&&(o=i.color);var r=w.drawing.Path.fromPoints(this.points(),{stroke:{color:o,width:e.width,opacity:e.opacity,dashType:e.dashType},zIndex:e.zIndex});t.closed&&r.close(),this.visual=r},e.prototype.aliasFor=function(t,e){return this.parent.getNearestPoint(e.x,e.y,this.seriesIx)},e}(Xt);xt(_i,{closed:!1});var mi=_i;function bi(t,e,o,i,r){var n=t.box,a=new w.geometry.Point;return a[e]=n[e+o],a[i]=n[i+r],a}var xi={calculateStepPoints:function(t){for(var e=this.parent.plotArea.seriesCategoryAxis(this.series).options,o=e.justified,i=e.vertical,r=e.reverse,n=i?_:m,a=i?m:_,s=r?2:1,p=s,c=bi(t[0],n,s,a,p),l=[c],u=1;u<t.length;u++){var h=bi(t[u],n,s,a,p);if(c[n]!==h[n]){var d=new w.geometry.Point;d[n]=c[n],d[a]=h[a],l.push(d,h)}c=h}return o?c!==ht(l)&&l.push(c):l.push(bi(ht(t),n,s,a,r?1:2)),l}},Ci=function(t){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}(mi);M(Ci.prototype,xi);var Si=Ci,wi=function(t){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;j(o)&&e&&(o=e.color);var i=new Ro(this.options.closed).process(this.points()),r=new w.drawing.Path({stroke:{color:o,width:t.width,opacity:t.opacity,dashType:t.dashType},zIndex:t.zIndex});r.segments.push.apply(r.segments,i),this.visual=r},e}(mi),Ai={renderSegments:function(){var t,e=this.options,o=this.seriesPoints,i=e.series,r=o.length;this._segments=[];for(var n=0;n<r;n++){for(var a=i[n],s=this.sortPoints(o[n]),p=s.length,c=[],l=0;l<p;l++){var u=s[l];u?c.push(u):"interpolate"!==this.seriesMissingValues(a)&&(c.length>1&&(t=this.createSegment(c,a,n,t),this._addSegment(t)),c=[])}c.length>1&&(t=this.createSegment(c,a,n,t),this._addSegment(t))}this.children.unshift.apply(this.children,this._segments)},_addSegment:function(t){this._segments.push(t),t.parent=this},sortPoints:function(t){return t},seriesMissingValues:function(t){var e=t.missingValues;return!e&&this.options.isStacked?Jo:e||"interpolate"},getNearestPoint:function(t,e,o){for(var i,r=new Lt(t,e),n=this.seriesPoints[o],a=h,s=0;s<n.length;s++){var p=n[s];if(p&&at(p.value)&&null!==p.value&&!1!==p.visible){var c=p.box.center().distanceTo(r);c<a&&(i=p,a=c)}}return i}},ki=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this._setEnd(this.options.box.x1)},e.prototype.step=function(t){var e=this.options.box;this._setEnd(Q(e.x1,e.x2,t))},e.prototype._setEnd=function(t){var e=this.element,o=e.segments,i=o[1].anchor(),r=o[2].anchor();e.suspend(),i.setX(t),e.resume(),r.setX(t)},e}(w.drawing.Animation);xt(ki,{duration:600}),w.drawing.AnimationFactory.current.register("clip",ki);var Ii=ki;function Oi(t){for(var e=0;e<t.length;e++)if(at(t[e].zIndex))return!0}var Pi={createAnimation:function(){var t=this.getRoot();if(t&&!1!==(t.options||{}).transitions){var e=t.size(),o=w.drawing.Path.fromRect(e.toRect());this.visual.clip(o),this.animation=new Ii(o,{box:e}),Oi(this.options.series)&&this._setChildrenAnimation(o)}},_setChildrenAnimation:function(t){for(var e=this.animationPoints(),o=0;o<e.length;o++){var i=e[o];i&&i.visual&&at(i.visual.options.zIndex)&&i.visual.clip(t)}}},ji=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange(),this.renderSegments()},e.prototype.pointType=function(){return yi},e.prototype.createPoint=function(t,e){var o=e.categoryIx,i=e.category,r=e.series,n=e.seriesIx,a=this.seriesMissingValues(r),s=t.valueFields.value;if(!at(s)||null===s){if(a!==Jo)return null;s=0}var p=this.pointOptions(r,n);p=this.evalPointOptions(p,s,i,o,r,n);var c=t.fields.color||r.color;j(r.color)&&(c=p.color);var l=new yi(s,p);return l.color=c,this.append(l),l},e.prototype.plotRange=function(t){var e=this.plotValue(t);if(this.options.isStacked)for(var o=t.categoryIx,i=this.categoryPoints[o],r=0;r<i.length;r++){var n=i[r];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 i=e.style;return new("step"===i?Si:"smooth"===i?wi:mi)(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}(di);M(ji.prototype,Ai,Pi);var Ti=ji,Mi=function(t){function e(e,o,i,r,n){t.call(this,e,o,i),this.prevSegment=r,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||{},i=t.color;j(i)&&e&&(i=e.color),this.visual=new w.drawing.Group({zIndex:t.zIndex}),this.createFill({fill:{color:i,opacity:t.opacity},stroke:null}),o.width>0&&!1!==o.visible&&this.createStroke({stroke:M({color:i,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 w.geometry.Segment(t)}))},e.prototype.createStroke=function(t){var e=new w.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),i=this.hasStackSegment();if(i){var r=this.stackSegments();rt(o,r)}var n=new w.drawing.Path(t);n.segments.push.apply(n.segments,o),!i&&e.length>1&&this.fillToAxes(n),this.visual.append(n)},e.prototype.fillToAxes=function(t){var e=this.parent,o=e.options.invertAxes,i=e.seriesValueAxis(this.series),r=e.categoryAxisCrossingValue(i),n=i.getSlot(r,r,!0),a=this.strokeSegments(),s=a[0].anchor(),p=ht(a).anchor(),c=o?n.x1:n.y1;o?t.lineTo(c,p.y).lineTo(c,s.y):t.lineTo(p.x,c).lineTo(s.x,c)},e}(mi),Di=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))},e.prototype.createStackSegments=function(t){return this.segmentsFromPoints(this.calculateStepPoints(t)).reverse()},e}(Mi);M(Di.prototype,xi);var Ei=Di,Bi=function(t){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 Ro(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 i=t[o];e.push(new w.geometry.Segment(i.anchor(),i.controlOut(),i.controlIn()))}return e},e}(Mi),Ri=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,o,i){var r,n,a=this.options.isStacked,s=(e.line||{}).style;a&&o>0&&i&&("gap"!==this.seriesMissingValues(e)?(n=i.linePoints,r=i):n=this._gapStackPoints(t,o,s));return new("step"===s?Ei:"smooth"===s?Bi:Mi)(t,e,o,r,n)},e.prototype.reflow=function(e){t.prototype.reflow.call(this,e);var o=this._stackPoints;if(o)for(var i=0;i<o.length;i++){var r=o[i],n=this.categoryAxis.getSlot(r.categoryIx);r.reflow(n)}},e.prototype._gapStackPoints=function(t,e,o){var i=this.seriesPoints,r=t[0].categoryIx,n=t.length;r<0&&(r=0,n--);var a=r+n,s=this.seriesOptions[0]._outOfRangeMinPoint?1:0,p=[];this._stackPoints=this._stackPoints||[];for(var c=r;c<a;c++){var l=c+s,u=e,h=void 0;do{h=i[--u][l]}while(u>0&&!h);if(h)"step"!==o&&c>r&&!i[u][l-1]&&p.push(this._previousSegmentPoint(c,l,l-1,u)),p.push(h),"step"!==o&&c+1<a&&!i[u][l+1]&&p.push(this._previousSegmentPoint(c,l,l+1,u));else{var d=this._createGapStackPoint(c);this._stackPoints.push(d),p.push(d)}}return p},e.prototype._previousSegmentPoint=function(t,e,o,i){for(var r,n=this.seriesPoints,a=i;a>0&&!r;)r=n[--a][o];return r?r=n[a][e]:(r=this._createGapStackPoint(t),this._stackPoints.push(r)),r},e.prototype._createGapStackPoint=function(t){var e=this.pointOptions({},0),o=new yi(0,e);return o.categoryIx=t,o.series={},o},e.prototype.seriesMissingValues=function(t){return t.missingValues||Jo},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(Ti),Li=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 i=t[o],r=e[o];e[o]=r=r||{min:h,max:d},r.min=Math.min(r.min,i.min),r.max=Math.max(r.max,i.max)}},e.prototype.reset=function(t){this.axisRanges[t]=void 0},e.prototype.query=function(t){return this.axisRanges[t]},e}(w.Class),Vi=function(t){function e(e,o,i){t.call(this,o),this.textBox=new pe(e,this.options,i),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,i=e.aboveAxis,r=this.children[0],n=r.options,p=r.box,c=r.options.padding,l=t;n.align=o?s:u,n.vAlign=o?f:s,"insideEnd"===e.position?o?(n.vAlign=f,!i&&p.height()<t.height()&&(n.vAlign=a)):n.align=i?g:u:e.position===s?(n.vAlign=s,n.align=s):"insideBase"===e.position?o?n.vAlign=i?a:f:n.align=i?u:g:"outsideEnd"===e.position&&(o?l=i?new zt(t.x1,t.y1-p.height(),t.x2,t.y1):new zt(t.x1,t.y2,t.x2,t.y2+p.height()):(n.align=s,l=i?new zt(t.x2,t.y1,t.x2+p.width(),t.y2):new zt(t.x1-p.width(),t.y1,t.x1,t.y2))),e.rotation||(o?c.left=c.right=(l.width()-r.contentBox.width())/2:c.top=c.bottom=(l.height()-r.contentBox.height())/2),r.reflow(l)},e.prototype.alignToClipBox=function(t){var e=this.options.vertical?m:_,o=e+"1",i=e+"2",r=this.children[0],n=this.parent.box;if(n[o]<t[o]||t[i]<n[i]){var a=r.paddingBox.clone();a[o]=Math.max(n[o],t[o]),a[i]=Math.min(n[i],t[i]),this.reflow(a)}},e}(Xt);xt(Vi,{position:"outsideEnd",margin:V(3),padding:V(4),color:n,background:"",border:{width:1,color:""},aboveAxis:!0,vertical:!1,animation:{type:"fadeIn",delay:600},zIndex:2});var zi=Vi;function Ni(t){var e=t.overlay;return e&&e.gradient&&"none"!==e.gradient}var Fi=function(t){function e(e,o){t.call(this),this.options=o,this.color=o.color||y,this.aboveAxis=_t(this.options.aboveAxis,!0),this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this._rendered||(this._rendered=!0,this.createLabel(),this.createNote(),this.errorBar&&this.append(this.errorBar))},e.prototype.createLabel=function(){var t=this.options,e=t.labels;if(e.visible){var o,i=this.pointData(),r=G(e);o=r?r(i):this.formatValue(e.format),this.label=new zi(o,M({vertical:t.vertical},e),i),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,i=this.options,r=i.visual;if(!1!==this.visible)if(t.prototype.createVisual.call(this),r){var n=this.rectVisual=r({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 w.drawing.Group;return e.createRect(t),t},options:i});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,i=at(o.opacity)?o.opacity:e.opacity,r=this.box.toRect();r.size.width=Math.round(r.size.width);var n=this.rectVisual=w.drawing.Path.fromRect(r,{fill:{color:this.color,opacity:e.opacity},stroke:{color:this.getBorderColor(),width:o.width,opacity:i,dashType:o.dashType}}),a=this.box.width(),s=this.box.height();if((e.vertical?a:s)>6&&(A(n),(a<1||s<1)&&(n.options.stroke.lineJoin="round")),t.append(n),Ni(e)){var p=this.createGradientOverlay(n,{baseColor:this.color},M({end:e.vertical?void 0:[0,1]},e.overlay));t.append(p)}},e.prototype.createHighlight=function(t){return A(w.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||.8,i=e.color;return at(i)||(i=new w.Color(t).brightness(o).toHex()),i},e.prototype.tooltipAnchor=function(){var t,e,o=this.options,i=this.box,r=this.aboveAxis,n=this.owner.pane.clipBox()||i,s=u,p=f;if(o.vertical)t=Math.min(i.x2,n.x2)+5,r?e=Math.max(i.y1,n.y1):(e=Math.min(i.y2,n.y2),p=a);else{var c=Math.max(i.x1,n.x1),l=Math.min(i.x2,n.x2);o.isStacked?(p=a,r?(s=g,t=l):t=c,e=Math.max(i.y1,n.y1)-5):(r?t=l+5:(t=c-5,s=g),e=Math.max(i.y1,n.y1))}return{point:new Lt(t,e),align:{horizontal:s,vertical:p}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,series:this.series}},e}(Xt);M(Fi.prototype,gi),M(Fi.prototype,fi),Fi.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};var Gi=Fi;function Hi(t,e){t.forEach(e)}function Ui(t,e){for(var o=t.length,i=o-1;i>=0;i--)e(t[i],i-o-1)}var Wi=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Ui:Hi}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,i=e.gap,r=e.spacing,n=this.children,a=n.length,s=o?m:_,p=a+i+r*(a-1),c=(o?t.height():t.width())/p,l=t[s+1]+c*(i/2);this.forEach(n,(function(e,o){var i=(e.box||t).clone();i[s+1]=l,i[s+2]=l+c,e.reflow(i),o<a-1&&(l+=c*r),l+=c}))},e}(Xt);xt(Wi,{vertical:!1,gap:0,spacing:0});var Xi=Wi,Yi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){for(var e=this.options.vertical?_:m,o=this.children,i=o.length,r=this.box=new zt,n=0;n<i;n++){var a=o[n];if(!1!==a.visible){var s=a.box.clone();s.snapTo(t,e),0===n&&(r=this.box=s.clone()),a.reflow(s),r.wrap(s)}}},e}(Xt);xt(Yi,{vertical:!0});var qi=Yi,Zi=function(t){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 Gi},e.prototype.clusterType=function(){return Xi},e.prototype.stackType=function(){return qi},e.prototype.stackLimits=function(e,o){return t.prototype.stackLimits.call(this,e,o)},e.prototype.createPoint=function(t,e){var o=e.categoryIx,i=e.category,r=e.series,n=e.seriesIx,a=this.options,s=this.children,p=a.isStacked,c=this.pointValue(t),l=this.pointOptions(r,n),u=l.labels;p&&"outsideEnd"===u.position&&(u.position="insideEnd"),l.isStacked=p;var h=t.fields.color||r.color;c<0&&l.negativeColor&&(h=l.negativeColor),l=this.evalPointOptions(l,c,i,o,r,n),j(r.color)&&(h=l.color);var d=new(this.pointType())(c,l);d.color=h;var g=s[o];g||(g=new(this.clusterType())({vertical:a.invertAxes,gap:a.gap,spacing:a.spacing,rtl:!a.invertAxes&&(this.chartService||{}).rtl}),this.append(g));p?this.getStackWrap(r,g).append(d):g.append(d);return d},e.prototype.getStackWrap=function(t,e){var o,i=t.stack,r=i&&i.group||i,n=e.children;if("string"==typeof r){for(var a=0;a<n.length;a++)if(n[a]._stackGroup===r){o=n[a];break}}else o=n[0];o||((o=new(this.stackType())({vertical:!this.options.invertAxes}))._stackGroup=r,e.append(o));return o},e.prototype.categorySlot=function(t,e,o){var i=this.options,r=t.getSlot(e),n=o.startValue();if(i.isStacked){var a=o.getSlot(n,n,!0),s=i.invertAxes?_:m;r[s+1]=r[s+2]=a[s+1]}return r},e.prototype.reflowCategories=function(t){for(var e=this.children,o=e.length,i=0;i<o;i++)e[i].reflow(t[i])},e.prototype.createAnimation=function(){this._setAnimationOptions(),t.prototype.createAnimation.call(this),Oi(this.options.series)&&this._setChildrenAnimation()},e.prototype._setChildrenAnimation=function(){for(var t=this.points,e=0;e<t.length;e++){var o=t[e],i=o.visual;i&&at(i.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 i=this.seriesValueAxis(e.series[0]);t=i.getSlot(i.startValue())}else t=this.categoryAxis.getSlot(0);o.origin=new w.geometry.Point(t.x1,t.y1),o.vertical=!e.invertAxes},e}(di);xt(Zi,{animation:{type:ti}});var Ki=Zi,Qi=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.options,o=this.value,i=this.owner.seriesValueAxis(e),r=i.getSlot(o.open,o.close),n=i.getSlot(o.low,o.high);r.x1=n.x1=t.x1,r.x2=n.x2=t.x2,this.realBody=r;var a=n.center().x,s=[];s.push([[a,n.y1],[a,r.y1]]),s.push([[a,r.y2],[a,n.y2]]),this.lines=s,this.box=n.clone().wrap(r),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 w.drawing.Group;return this.createBody(e,t),this.createLines(e,t),e},e.prototype.createBody=function(t,e){var o=w.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:_t(e.border.opacity,e.opacity)}),A(o),t.append(o),Ni(e)&&t.append(this.createGradientOverlay(o,{baseColor:this.color},M({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,i){if(o)for(var r={stroke:{color:i.color||this.color,opacity:_t(i.opacity,e.opacity),width:i.width,dashType:i.dashType,lineCap:"butt"}},n=0;n<o.length;n++){var a=w.drawing.Path.fromPoints(o[n],r);A(a),t.append(a)}},e.prototype.getBorderColor=function(){var t=this.options.border,e=t.color;return at(e)||(e=new w.Color(this.color).brightness(t._brightness).toHex()),e},e.prototype.createOverlay=function(){var t=w.drawing.Path.fromRect(this.box.toRect(),{fill:{color:y,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(M({},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 Lt(t.x2+5,Math.max(t.y1,e.y1)+5),align:{horizontal:u,vertical:f}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e}(Xt);xt(Qi,{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:{}}}),M(Qi.prototype,gi),M(Qi.prototype,fi);var $i=Qi;function Ji(t){return Go(t)===t.length}var tr=function(t){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,i=0;i<o;i++)e[i].reflow(t[i])},e.prototype.addValue=function(t,e){var o,i=e.categoryIx,r=e.category,n=e.series,a=e.seriesIx,s=this.children,p=this.options,c=t.valueFields,l=Ji(this.splitValue(c)),u=n.data[i],h=this.categoryPoints[i];h||(this.categoryPoints[i]=h=[]),l&&(o=this.createPoint(t,e));var d=s[i];d||(d=new Xi({vertical:p.invertAxes,gap:p.gap,spacing:p.spacing,rtl:!p.invertAxes&&(this.chartService||{}).rtl}),this.append(d)),o&&(this.updateRange(c,e),d.append(o),o.categoryIx=i,o.category=r,o.series=n,o.seriesIx=a,o.owner=this,o.dataItem=u,o.noteText=t.fields.noteText),this.points.push(o),h.push(o)},e.prototype.pointType=function(){return $i},e.prototype.createPoint=function(t,e){var o=e.categoryIx,i=e.category,r=e.series,n=e.seriesIx,a=this.pointType(),s=t.valueFields,p=M({},r),c=t.fields.color||r.color;p=this.evalPointOptions(p,s,i,o,r,n),"candlestick"===r.type&&s.open>s.close&&(c=t.fields.downColor||r.downColor||r.color),j(r.color)&&(c=p.color),p.vertical=!this.options.invertAxes;var l=new a(s,p);return l.color=c,l},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,i=this.splitValue(t),r=this.valueAxisRanges[o];r=this.valueAxisRanges[o]=r||{min:h,max:d},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.open,o.high,o.low,o.close,t.category)},e.prototype.animationPoints=function(){return this.points},e}(di);M(tr.prototype,Pi);var er=tr,or=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,i=this.options,r=this.value,n=this.owner.seriesValueAxis(i);this.boxSlot=o=n.getSlot(r.q1,r.q3),this.realBody=o,this.reflowBoxSlot(t),this.whiskerSlot=e=n.getSlot(r.lower,r.upper),this.reflowWhiskerSlot(t);var a=n.getSlot(r.median);if(r.mean){var s=n.getSlot(r.mean);this.meanPoints=this.calcMeanPoints(t,s)}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||[],i=3*Math.abs(e.q3-e.q1),r=[],n=t.markers||{},a=0;a<o.length;a++){var s=o[a],p=M({},(n=s<e.q3+i&&s>e.q1-i?t.outliers:t.extremes).border);at(p.color)||(at(this.color)?p.color=this.color:p.color=new w.Color(n.background).brightness(.8).toHex());var c=new Kt({type:n.type,width:n.size,height:n.size,rotation:n.rotation,background:n.background,border:p,opacity:n.opacity});c.value=s,r.push(c)}return this.reflowOutliers(r),r},e.prototype.reflowOutliers=function(t){for(var e=this.owner.seriesValueAxis(this.options),o=this.box.center(),i=0;i<t.length;i++){var r=t[i].value,n=e.getSlot(r);this.options.vertical?n.move(o.x):n.move(void 0,o.y),this.box=this.box.wrap(n),t[i].reflow(n)}},e.prototype.mainVisual=function(e){for(var o=t.prototype.mainVisual.call(this,e),i=this.renderOutliers(e),r=0;r<i.length;r++){var n=i[r].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}($i);xt(or,{border:{_brightness:.8},line:{width:2},median:{color:"#f6f6f6"},mean:{width:2,dashType:"dash",color:"#f6f6f6"},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{6:d}</th></tr><tr><td>Lower:</td><td>{0:C}</td></tr><tr><td>Q1:</td><td>{1:C}</td></tr><tr><td>Median:</td><td>{2:C}</td></tr><tr><td>Mean:</td><td>{5:C}</td></tr><tr><td>Q3:</td><td>{3:C}</td></tr><tr><td>Upper:</td><td>{4:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}},outliers:{visible:!0,size:8,type:"cross",background:y,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:p,background:y,border:{width:2,opacity:1},opacity:0}}),M(or.prototype,gi);var ir=or,rr=function(t){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}(ir),nr=function(t){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,i=e.categoryIx,r=e.category,n=e.series,a=e.seriesIx,s=this.children,p=this.options,c=t.valueFields,l=Ji(this.splitValue(c)),u=n.data[i],h=this.categoryPoints[i];h||(this.categoryPoints[i]=h=[]),l&&(o=this.createPoint(t,e));var d=s[i];d||(d=new Xi({vertical:p.invertAxes,gap:p.gap,spacing:p.spacing,rtl:!p.invertAxes&&(this.chartService||{}).rtl}),this.append(d)),o&&(this.updateRange(c,e),d.append(o),o.categoryIx=i,o.category=r,o.series=n,o.seriesIx=a,o.owner=this,o.dataItem=u),this.points.push(o),h.push(o)},e.prototype.pointType=function(){return this.options.invertAxes?rr:ir},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,i=this.valueAxisRanges[o],r=this.splitValue(t).concat(this.filterOutliers(t.outliers));at(t.mean)&&(r=r.concat(t.mean)),i=this.valueAxisRanges[o]=i||{min:h,max:d},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.lower,o.q1,o.median,o.q3,o.upper,o.mean,t.category)},e.prototype.filterOutliers=function(t){for(var e=(t||[]).length,o=[],i=0;i<e;i++){var r=t[i];at(r)&&null!==r&&o.push(r)}return o},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(er),ar=function(t){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}(pi);function sr(t){return at(t)&&null!==t}var pr=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 i,r=t.value[e],n=e+"Value",a=e+"ErrorLow",s=e+"ErrorHigh",p=o.seriesIx,c=o.series,l=t.options.errorBars,u=o[a],h=o[s];I(r)&&(I(u)&&I(h)&&(i={low:u,high:h}),l&&at(l[n])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[e][p]=this.seriesErrorRanges[e][p]||new Ko(l[n],c,e),i=this.seriesErrorRanges[e][p].getErrorRange(r,l[n])),i&&this.addPointErrorBar(i,t,e))},e.prototype.addPointErrorBar=function(t,e,o){var i=t.low,r=t.high,n=e.series,a=e.options.errorBars,s=o===m,p={};e[o+"Low"]=i,e[o+"High"]=r,e.errorBars=e.errorBars||[];var c=new ar(i,r,s,this,n,a);e.errorBars.push(c),e.append(c),p[o]=i,this.updateRange(p,n),p[o]=r,this.updateRange(p,n)},e.prototype.addValue=function(t,e){var o,i=t.x,r=t.y,n=e.seriesIx,a=this.options.series[n],s=this.seriesMissingValues(a),p=this.seriesPoints[n],c=t;sr(i)&&sr(r)||(c=this.createMissingValue(c,s)),c&&((o=this.createPoint(c,e))&&(Object.assign(o,e),this.addErrorBar(o,_,e),this.addErrorBar(o,m,e)),this.updateRange(c,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,i=e.xAxis,r=e.yAxis,n=t.x,a=t.y,s=this.xAxisRanges[i],p=this.yAxisRanges[r];sr(n)&&(s=this.xAxisRanges[i]=s||{min:h,max:d},O(n)&&(n=Ke(o,n)),s.min=Math.min(s.min,n),s.max=Math.max(s.max,n)),sr(a)&&(p=this.yAxisRanges[r]=p||{min:h,max:d},O(a)&&(a=Ke(o,a)),p.min=Math.min(p.min,a),p.max=Math.max(p.max,a))},e.prototype.evalPointOptions=function(t,e,o){var i=o.series,r=o.seriesIx,n={defaults:i._defaults,excluded:["data","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},a=this._evalSeries[r];at(a)||(this._evalSeries[r]=a=li(t,{},n,!0));var s=t;return a&&li(s=M({},t),{value:e,series:i,dataItem:o.dataItem},n),s},e.prototype.pointType=function(){return yi},e.prototype.pointOptions=function(t,e){var o=this.seriesOptions[e];if(!o){var i=this.pointType().prototype.defaults;this.seriesOptions[e]=o=M({},i,{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,i=this.pointOptions(o,e.seriesIx),r=e.color||o.color;i=this.evalPointOptions(i,t,e),j(o.color)&&(r=i.color);var n=new yi(t,i);return n.color=r,this.append(n),n},e.prototype.seriesAxes=function(t){var e=t.xAxis,o=t.yAxis,i=this.plotArea,r=e?i.namedXAxes[e]:i.axisX,n=o?i.namedYAxes[o]:i.axisY;if(!r)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:r,y:n}},e.prototype.reflow=function(t){var e=this,o=this.points,i=!this.options.clip,r=0;this.traverseDataPoints((function(t,n){var a=o[r++],s=e.seriesAxes(n.series),p=s.x.getSlot(t.x,t.x,i),c=s.y.getSlot(t.y,t.y,i);if(a)if(p&&c){var l=e.pointSlot(p,c);a.reflow(l)}else a.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new zt(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,o=this.seriesPoints,i=0;i<e.length;i++){var r=e[i];o[i]||(o[i]=[]);for(var n=0;n<r.data.length;n++){var a=this._bindPoint(r,i,n),s=a.valueFields,p=a.fields;t(s,M({pointIx:n,series:r,seriesIx:i,dataItem:r.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}(Xt);xt(pr,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),M(pr.prototype,Pi,{_bindPoint:di.prototype._bindPoint});var cr=pr,lr=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,i=this.box.center(),r=(o.size+o.border.width+e.width)/2,n=new w.drawing.Group,a=new w.drawing.Circle(new w.geometry.Circle([i.x,i.y+r/5+e.width/2],r+e.width/2),{stroke:{color:"none"},fill:this.createGradient({gradient:"bubbleShadow",color:o.background,stops:[{offset:0,color:o.background,opacity:.3},{offset:1,color:o.background,opacity:0}]})}),s=new w.drawing.Circle(new w.geometry.Circle([i.x,i.y],r),{stroke:{color:e.color||new w.Color(o.background).brightness(.8).toHex(),width:e.width,opacity:e.opacity},fill:{color:o.background,opacity:t.opacity}});return n.append(a,s),n},e}(yi);lr.prototype.defaults=M({},lr.prototype.defaults,{labels:{position:s},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),lr.prototype.defaults.highlight.zIndex=void 0;var ur=lr,hr=function(t){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=d,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 ur},e.prototype.createPoint=function(t,e){var o=e.series,i=o.data.length,r=e.pointIx*(600/i),n={delay:r,duration:600-r,type:"bubble"},a=e.color||o.color;t.size<0&&o.negativeValues.visible&&(a=_t(o.negativeValues.color,a));var s=M({labels:{animation:{delay:r,duration:600-r}}},this.pointOptions(o,e.seriesIx),{markers:{type:p,border:o.border,opacity:o.opacity,animation:n}});s=this.evalPointOptions(s,t,e),j(o.color)&&(a=s.color),s.markers.background=a;var c=new ur(t,s);return c.color=a,this.append(c),c},e.prototype.updateBubblesSize=function(t){for(var e=this.options.series,o=Math.min(t.width(),t.height()),i=0;i<e.length;i++)for(var r=e[i],n=this.seriesPoints[i],a=(r.minSize||Math.max(.02*o,10))/2,s=(r.maxSize||.2*o)/2,p=Math.PI*a*a,c=(Math.PI*s*s-p)/this._maxSize,l=0;l<n.length;l++){var u=n[l];if(u){var h=Math.abs(u.value.size)*c,d=Math.sqrt((p+h)/Math.PI),g=_t(u.options.zIndex,0)+(1-d/s);M(u.options,{zIndex:g,markers:{size:2*d,zIndex:g},labels:{zIndex:g+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}(cr);xt(hr,{tooltip:{format:"{3}"},labels:{format:"{3}"}});var dr=hr,gr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Kt);M(gr.prototype,gi);var fr=gr,vr=function(t){function e(e,o){t.call(this,o),this.aboveAxis=this.options.aboveAxis,this.color=o.color||y,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,at(this.value.target)&&(this.target=new fr({type:t.target.shape,background:t.target.color||this.color,opacity:t.opacity,zIndex:t.zIndex,border:t.target.border,vAlign:f,align:g}),this.target.value=this.value,this.target.dataItem=this.dataItem,this.target.series=this.series,this.append(this.target)),this.createNote())},e.prototype.reflow=function(t){this.render();var e=this.options,o=this.target,i=this.owner,r=e.invertAxes,n=i.seriesValueAxis(this.options),a=i.categorySlot(i.categoryAxis,e.categoryIx,n),s=n.getSlot(this.value.target),p=r?s:a,c=r?a:s;if(o){var l=new zt(p.x1,c.y1,p.x2,c.y2);o.options.height=r?l.height():e.target.line.width,o.options.width=r?e.target.line.width:l.width(),o.reflow(l)}this.note&&this.note.reflow(t),this.box=t},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options,o=w.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:_t(e.border.opacity,e.opacity)}),this.bodyVisual=o,A(o),this.visual.append(o)},e.prototype.createAnimation=function(){this.bodyVisual&&(this.animation=w.drawing.Animation.create(this.bodyVisual,this.options.animation))},e.prototype.createHighlight=function(t){return w.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}(Xt);vr.prototype.tooltipAnchor=Gi.prototype.tooltipAnchor,xt(vr,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},tooltip:{format:"Current: {0}<br />Target: {1}"}}),M(vr.prototype,gi),M(vr.prototype,fi);var yr=vr,_r=function(t){function e(e,o){!function(t){for(var e=t.series,o=0;o<e.length;o++){var i=e[o],r=i.data;!r||b(r[0])||D(r[0])||(i.data=[r])}}(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,i=0;i<o;i++)e[i].reflow(t[i])},e.prototype.plotRange=function(t){var e=t.series,o=this.seriesValueAxis(e),i=this.categoryAxisCrossingValue(o);return[i,t.value.current||i]},e.prototype.createPoint=function(t,e){var o=e.categoryIx,i=e.category,r=e.series,n=e.seriesIx,a=this.options,s=this.children,p=t.valueFields,c=M({vertical:!a.invertAxes,overlay:r.overlay,categoryIx:o,invertAxes:a.invertAxes},r),l=t.fields.color||r.color;c=this.evalPointOptions(c,p,i,o,r,n),j(r.color)&&(l=c.color);var u=new yr(p,c);u.color=l;var h=s[o];return h||(h=new Xi({vertical:a.invertAxes,gap:a.gap,spacing:a.spacing,rtl:!a.invertAxes&&(this.chartService||{}).rtl}),this.append(h)),h.append(u),u},e.prototype.updateRange=function(t,e){var o=t.current,i=t.target,r=e.series.axis,n=this.valueAxisRanges[r];at(o)&&!isNaN(o)&&at(i&&!isNaN(i))&&((n=this.valueAxisRanges[r]=n||{min:h,max:d}).min=Math.min(n.min,o,i),n.max=Math.max(n.max,o,i))},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}(di);_r.prototype._setAnimationOptions=Ki.prototype._setAnimationOptions,xt(_r,{animation:{type:ti}});var mr=_r,br=function(t){function e(e,o){t.call(this),this.chartService=e,this.options=M({},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,i=t.border.color;if(e){var r=e.color||e.options.color;o=_t(o,r),i=_t(i,r)}var n=V(t.padding||{},"auto");return{backgroundColor:o,borderColor:i,font:t.font,color:t.color,opacity:t.opacity,borderWidth:E(t.border.width),paddingTop:E(n.top),paddingBottom:E(n.bottom),paddingLeft:E(n.left),paddingRight:E(n.right)}},e.prototype.show=function(t,e,o){t.format=e.format;var i=this.getStyle(e,o);t.style=i;var r=new w.Color(i.backgroundColor);at(e.color)||r.isDark()||(t.className="k-chart-tooltip-inverse"),this.chartService.notify("showTooltip",t),this.visible=!0},e.prototype.hide=function(){this.chartService&&this.chartService.notify("hideTooltip"),this.visible=!1},e.prototype.destroy=function(){delete this.chartService},e}(w.Class);xt(br,{border:{width:1},opacity:1});var xr=br,Cr=function(t){function e(e,o,i){t.call(this,e,i),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,i=e[o.stickyMode?"getCategory":"getValue"](t),r=i;o.format?r=this.formatService.auto(o.format,i):e.options.type===c&&(r=this.formatService.auto(e.options.labels.dateFormats[e.options.baseUnit],i)),this.show({point:t,anchor:this.getAnchor(),crosshair:this.crosshair,value:r,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex},this.options)},e.prototype.hide=function(){this.chartService.notify("hideTooltip",{crosshair:this.crosshair,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex})},e.prototype.getAnchor=function(){var t,e,o,i=this.crosshair,r=this.options,n=r.position,p=r.padding,c=!i.axis.options.vertical,l=i.line.bbox();return c?(t=s,n===a?(e=f,o=l.bottomLeft().translate(0,p)):(e=a,o=l.topLeft().translate(0,-p))):(e=s,n===u?(t=g,o=l.topLeft().translate(-p,0)):(t=u,o=l.topRight().translate(p,0))),{point:o,align:{horizontal:t,vertical:e}}},e}(xr);xt(Cr,{padding:10});var Sr=Cr,wr=function(t){function e(e,o,i){t.call(this,i),this.axis=o,this.stickyMode=o instanceof to;var r=this.options.tooltip;r.visible&&(this.tooltip=new Sr(e,this,M({},r,{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,i=e.options.vertical,r=this.getBox(),n=i?m:_,a=new w.geometry.Point(r.x1,r.y1);if(t=i?new w.geometry.Point(r.x2,r.y1):new w.geometry.Point(r.x1,r.y2),o)if(this.stickyMode){var s=e.getSlot(e.pointCategoryIndex(o));a[n]=t[n]=s.center()[n]}else a[n]=t[n]=o[n];this.box=r,this.line.moveTo(a).lineTo(t)},e.prototype.getBox=function(){for(var t,e=this.axis,o=e.pane.axes,i=o.length,r=e.options.vertical,n=e.lineBox().clone(),a=r?_:m,s=0;s<i;s++){var p=o[s];p.options.vertical!==r&&(t?t.wrap(p.lineBox()):t=p.lineBox().clone())}return n[a+1]=t[a+1],n[a+2]=t[a+2],n},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options;this.line=new w.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}(Xt);xt(wr,{color:n,width:2,zIndex:-1,tooltip:{visible:!1}});var Ar=wr,kr=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 w.drawing.Group({zIndex:0}),this.shouldClip()){var t=(this.clipBox=this._clipBox()).toRect(),e=w.drawing.Path.fromRect(t);A(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 i=t[o].points||{},r=i.length,n=0;n<r;n++){var a=i[n];if(a&&!1!==a.visible&&a.overlapsBox&&a.overlapsBox(e))if(a.unclipElements)a.unclipElements();else{var s=a.label,p=a.note;s&&s.options.visible&&(s.alignToClipBox&&s.alignToClipBox(e),s.options.noclip=!0),p&&p.options.visible&&(p.options.noclip=!0)}}},e.prototype.destroy=function(){t.prototype.destroy.call(this),delete this.parent},e}(Xt);kr.prototype.isStackRoot=!0;var Ir=kr,Or=function(t){function e(e){t.call(this,e),this.id="pane"+Pr++,this.createTitle(),this.content=new Xt,this.chartContainer=new Ir({},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;D(t)&&(t=M({},t,{align:t.position,position:f})),this.title=le.buildTitle(t,this,e.prototype.options.title)},e.prototype.appendAxis=function(t){this.content.append(t),this.axes.push(t),t.pane=this},e.prototype.appendAxisAt=function(t,e){this.content.append(t),this.axes.splice(e,0,t),t.pane=this},e.prototype.appendChart=function(t){this.chartContainer.parent!==this.content&&this.content.append(this.chartContainer),this.charts.push(t),this.chartContainer.append(t),t.pane=this},e.prototype.empty=function(){var t=this.parent;if(t){for(var e=0;e<this.axes.length;e++)t.removeAxis(this.axes[e]);for(var 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;ht(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=[],i=[],r=0;r<t.length;r++)for(var n=t[r],a=n.options.vertical,s=a?o:i,p=0;p<e.length;p++)if(0===s.length){var c=e[p];a!==c.options.vertical&&rt(s,n.createGridLines(c))}},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 zt,i=0;i<e;i++){var r=t[i],n=r.options.vertical?m:_,a=r.lineBox();o[n+1]=a[n+1],o[n+2]=a[n+2]}if(0===o.x2)for(var s=this.parent.axes,p=s.length,c=0;c<p;c++){var l=s[c];if(!l.options.vertical){var u=l.lineBox();o.x1=u.x1,o.x2=u.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 No(this),index:this.paneIndex,name:this.options.name})},e}(qt),Pr=1;Or.prototype.isStackRoot=!0,xt(Or,{zIndex:-1,shrinkToFit:!0,title:{align:u},visible:!0});var jr=Or;function Tr(t,e){null!==e&&t.push(e)}function Mr(t,e,o){var i=e.visible;if(at(i))return i;var r=t.pointVisibility;return r?r[o]:void 0}function Dr(t){for(var e=t.data,o=[],i=0,r=0,n=0;n<e.length;n++){var a=Yo.current.bindPoint(t,n),s=a.valueFields.value;O(s)&&(s=parseFloat(s)),I(s)?(a.visible=!1!==Mr(t,a.fields,n),a.value=Math.abs(s),o.push(a),a.visible&&(i+=a.value),0!==s&&r++):o.push(null)}return{total:i,points:o,count:r}}function Er(t,e){return t&&e?t.toLowerCase()===e.toLowerCase():t===e}function Br(t,e){for(var o=[],i=[].concat(e),r=0;r<t.length;r++){var n=t[r];K(n.type,i)&&o.push(n)}return o}function Rr(t,e,o){if(null===e)return e;var i="_date_"+t,r=e[i];return r||(r=Ke(o,W(t)(e)),e[i]=r),r}function Lr(t,e){var o=t.type,i=e instanceof Date;return!o&&i||Er(o,c)}function Vr(t){return 1===t.length?t[0]:t}var zr=/area/i;function Nr(t,e){var o=Yo.current.bindPoint(t,null,e).valueFields;for(var i in o)if(P(o[i]))return!0}function Fr(t){var e,o,i=t.start,r=t.dir,n=t.min,a=t.max,s=t.getter,p=t.hasItem,c=t.series,l=i;do{p(l+=r)&&(e=Nr(c,(o=s(l)).item))}while(n<=l&&l<=a&&!e);if(e)return o}function Gr(t,e,o,i,r){var n=e.min,a=e.max,s=n>0&&n<o,p=a+1<o;if(s||p){var c,l,u;if("interpolate"!==function(t){return t.missingValues?t.missingValues:zr.test(t.type)||t.stack?Jo:"interpolate"}(t))s&&(c=i(n-1)),p&&(l=i(a+1));else s&&(c=Nr(t,(u=i(n-1)).item)?u:Fr({start:n,dir:-1,min:0,max:o-1,getter:i,hasItem:r,series:t})),p&&(l=Nr(t,(u=i(a+1)).item)?u:Fr({start:a,dir:1,min:0,max:o-1,getter:i,hasItem:r,series:t}));c&&(t._outOfRangeMinPoint=c),l&&(t._outOfRangeMaxPoint=l)}}var Hr=function(t){function e(e,o,i){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=i,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||[],i=Math.max(o.length,1),r=[],n=M({title:{color:t.color}},e),a=0;a<i;a++){var s=M({},n,o[a]);O(s.title)&&(s.title=M({text:s.title},n.title));var p=new jr(s);p.paneIndex=a,r.push(p),this.append(p)}this.panes=r},e.prototype.crosshairOptions=function(t){return t.options.crosshair},e.prototype.createCrosshairs=function(t){void 0===t&&(t=this.panes);for(var e=0;e<t.length;e++)for(var o=t[e],i=0;i<o.axes.length;i++){var r=o.axes[i],n=this.crosshairOptions(r);if(n&&n.visible){var a=new Ar(this.chartService,r,n);this.crosshairs.push(a),o.content.append(a)}}},e.prototype.removeCrosshairs=function(t){for(var e=this.crosshairs,o=t.axes,i=e.length-1;i>=0;i--)for(var r=0;r<o.length;r++)if(e[i].axis===o[r]){e.splice(i,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,i=0;i<o.length;i++)if(o[i].options.name===t){e=o[i];break}return e||o[0]},e.prototype.findPointPane=function(t){for(var e,o=this.panes,i=0;i<o.length;i++)if(o[i].box.containsPoint(t)){e=o[i];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 i=this.axes[o];t!==i?e.push(i):i.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 i=this.charts[o];i!==t?e.push(i):i.destroy()}this.charts=e},e.prototype.addToLegend=function(t){for(var e=t.length,o=this.options.legend,i=o.labels||{},r=o.inactiveItems||{},n=r.labels||{},a=[],s=0;s<e;s++){var p=t[s],c=!1!==p.visible;if(!1!==p.visibleInLegend){var l=p.name,u=c?G(i):G(n)||G(i);u&&(l=u({text:sr(l)?l:"",series:p}));var h=p._defaults,d=p.color;j(d)&&h&&(d=h.color);var g=void 0,f=void 0;c?(g={},f=d):(g={color:n.color,font:n.font},f=r.markers.color),sr(l)&&""!==l&&a.push({text:l,labels:g,markerColor:f,series:p,active:c})}}rt(o.items,a)},e.prototype.groupAxes=function(t){for(var e=[],o=[],i=0;i<t.length;i++)for(var r=t[i].axes,n=0;n<r.length;n++){var a=r[n];a.options.vertical?o.push(a):e.push(a)}return{x:e,y:o,any:e.concat(o)}},e.prototype.groupSeriesByPane=function(){for(var t=this.series,e={},o=0;o<t.length;o++){var i=t[o],r=this.seriesPaneName(i);e[r]?e[r].push(i):e[r]=[i]}return e},e.prototype.filterVisibleSeries=function(t){for(var e=[],o=0;o<t.length;o++){var i=t[o];!1!==i.visible&&e.push(i)}return e},e.prototype.reflow=function(t){var e=this.options.plotArea,o=this.panes,i=V(e.margin);this.box=t.clone().unpad(i),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 i=0;i<e.length;i++)this.removeCrosshairs(e[i]),e[i].empty();this.render(e),this.detachLabels(),this.reflowAxes(this.panes),this.reflowCharts(e),this.createCrosshairs(e);for(var r=0;r<e.length;r++)e[r].refresh()},e.prototype.axisCrossingValues=function(t,e){for(var o=t.options,i=[].concat(o.axisCrossingValues||o.axisCrossingValue),r=e.length-i.length,n=i[0]||0,a=0;a<r;a++)i.push(n);return i},e.prototype.alignAxisTo=function(t,e,o,i){var r=t.getSlot(o,o,!0),n=t.options.reverse?2:1,a=e.getSlot(i,i,!0),s=e.options.reverse?2:1,p=t.box.translate(a[_+s]-r[_+n],a[m+s]-r[m+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=t[0],i=e[0],r=this.axisCrossingValues(o,e),n=this.axisCrossingValues(i,t),s={},p={},c={},l={},h=0;h<e.length;h++){var d=e[h],v=d.pane,y=v.id,_=!1!==d.options.visible,m=Xr(t,v)||o,b=r;m!==o&&(b=this.axisCrossingValues(m,e)),this.alignAxisTo(d,m,n[h],b[h]),d.options._overlap||(vt(d.lineBox().x1)===vt(m.lineBox().x1)&&(s[y]&&d.reflow(d.box.alignTo(s[y].box,u).translate(-d.options.margin,0)),_&&(s[y]=d)),vt(d.lineBox().x2)===vt(m.lineBox().x2)&&(d._mirrored||(d.options.labels.mirror=!d.options.labels.mirror,d._mirrored=!0),this.alignAxisTo(d,m,n[h],b[h]),p[y]&&d.reflow(d.box.alignTo(p[y].box,g).translate(d.options.margin,0)),_&&(p[y]=d)),0!==h&&i.pane===d.pane&&(d.alignTo(i),d.reflow(d.box)))}for(var x=0;x<t.length;x++){var C=t[x],S=C.pane,w=S.id,A=!1!==C.options.visible,k=Xr(e,S)||i,I=n;k!==i&&(I=this.axisCrossingValues(k,t)),this.alignAxisTo(C,k,r[x],I[x]),C.options._overlap||(vt(C.lineBox().y1)===vt(k.lineBox().y1)&&(C._mirrored||(C.options.labels.mirror=!C.options.labels.mirror,C._mirrored=!0),this.alignAxisTo(C,k,r[x],I[x]),c[w]&&C.reflow(C.box.alignTo(c[w].box,f).translate(0,-C.options.margin)),A&&(c[w]=C)),vt(C.lineBox().y2,3)===vt(k.lineBox().y2,3)&&(l[w]&&C.reflow(C.box.alignTo(l[w].box,a).translate(0,C.options.margin)),A&&(l[w]=C)),0!==x&&(C.alignTo(o),C.reflow(C.box)))}},e.prototype.shrinkAxisWidth=function(t){for(var e=this.groupAxes(t).any,o=Wr(e),i=0,r=0;r<t.length;r++){var n=t[r];n.axes.length>0&&(i=Math.max(i,o.width()-n.contentBox.width()))}if(0!==i)for(var a=0;a<e.length;a++){var s=e[a];s.options.vertical||s.reflow(s.box.shrink(i,0))}},e.prototype.shrinkAxisHeight=function(t){for(var e,o=0;o<t.length;o++){var i=t[o],r=i.axes,n=Math.max(0,Wr(r).height()-i.contentBox.height());if(0!==n){for(var a=0;a<r.length;a++){var s=r[a];s.options.vertical&&s.reflow(s.box.shrink(0,n))}e=!0}}return e},e.prototype.fitAxes=function(t){for(var e=this.groupAxes(t).any,o=0,i=0;i<t.length;i++){var r=t[i],n=r.axes,a=r.contentBox;if(n.length>0){var s=Wr(n),p=Math.max(a.y1-s.y1,a.y2-s.y2);o=Math.max(o,a.x1-s.x1);for(var c=0;c<n.length;c++){var l=n[c];l.reflow(l.box.translate(0,p))}}}for(var u=0;u<e.length;u++){var h=e[u];h.reflow(h.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,i=Yr(o),r=0;r<i.length;r++){i[r].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 i=0;i<o;i++)e[i].reflow(t.contentBox)},e.prototype.reflowCharts=function(t){for(var e=this.charts,o=e.length,i=this.box,r=0;r<o;r++){var n=e[r].pane;n&&!K(n,t)||e[r].reflow(i)}},e.prototype.reflowPanes=function(){for(var t=this.box,e=this.panes,o=e.length,i=t.height(),r=0,n=t.y1,a=0;a<o;a++){var s=e[a],p=s.options.height;if(s.options.width=t.width(),s.options.height){if(p.indexOf&&p.indexOf("%")){var c=parseInt(p,10)/100;s.options.height=c*t.height()}s.reflow(t.clone()),i-=s.options.height}else r++}for(var l=0;l<o;l++){var u=e[l];u.options.height||(u.options.height=i/r)}for(var h=0;h<o;h++){var d=e[h],g=t.clone().move(t.x1,n);d.reflow(g),n+=d.options.height}},e.prototype.backgroundBox=function(){for(var t,e=this.axes,o=e.length,i=0;i<o;i++)for(var r=e[i],n=0;n<o;n++){var a=e[n];if(r.options.vertical!==a.options.vertical){var s=r.lineBox().clone().wrap(a.lineBox());t=t?t.wrap(s):s}}return t||this.box},e.prototype.chartsBoxes=function(){for(var t=this.panes,e=[],o=0;o<t.length;o++)e.push(t[o].chartsBox());return e},e.prototype.addBackgroundPaths=function(t){for(var e=this.chartsBoxes(),o=0;o<e.length;o++)t.paths.push(w.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,i=o.opacity,r=o.background,n=o.border;void 0===n&&(n={}),""!==(e=r)&&null!==e&&"none"!==e&&"transparent"!==e&&at(e)||(r=y,i=0);var a=this._bgVisual=new w.drawing.MultiPath({fill:{color:r,opacity:i},stroke:{color:n.width?n.color:"",width:n.width,dashType:n.dashType},zIndex:-1});this.addBackgroundPaths(a),this.appendVisual(a)},e.prototype.pointsByCategoryIndex=function(t){var e=this.charts,o=[];if(null!==t)for(var i=0;i<e.length;i++){if("_navigator"!==e[i].pane.options.name){var r=e[i].categoryPoints[t];if(r&&r.length)for(var n=0;n<r.length;n++){var a=r[n];a&&at(a.value)&&null!==a.value&&o.push(a)}}}return o},e.prototype.pointsBySeriesIndex=function(t){return this.filterPoints((function(e){return e.series.index===t}))},e.prototype.pointsBySeriesName=function(t){return this.filterPoints((function(e){return e.series.name===t}))},e.prototype.filterPoints=function(t){for(var e=this.charts,o=[],i=0;i<e.length;i++)for(var r=e[i].points,n=0;n<r.length;n++){var a=r[n];a&&!1!==a.visible&&t(a)&&o.push(a)}return o},e.prototype.findPoint=function(t){for(var e=this.charts,o=0;o<e.length;o++)for(var i=e[o].points,r=0;r<i.length;r++){var n=i[r];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 i=e[o];if(i.box.containsPoint(t))return i}},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,i=0;i<t.length;i++){var r=t[i],n=r.pane,a=Xr(e,n)||e[0],s=i+o,p=this.createLabelAxis(r,s,a);if(p){o++;var c=n.axes.indexOf(r)+o;n.appendAxisAt(p,c)}}},e.prototype.createLabelAxis=function(t,e,o){var i=t.options.labels,r=i.position,n="end"!==r&&"start"!==r,a=i.visible;if(n||!1===a)return null;var s=this.groupAxes(this.panes),p=o.options.vertical?s.x:s.y,c=this.axisCrossingValues(o,p),l="end"===r,u=o.range(),h=l?u.max:u.min;if(dt(c[e],u.min,u.max)-h==0)return null;c.splice(e+1,0,h),o.options.axisCrossingValues=c;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}(Xt);function Ur(t){return!t.pane.axes.some((function(e){return e.options.vertical===t.options.vertical&&e!==t&&!1!==e.options.visible}))}function Wr(t){for(var e,o=t.length,i=0;i<o;i++){var r=t[i],n=!1!==r.options.visible;if(n||Ur(r)){var a=n?r.contentBox():r.lineBox();e?e.wrap(a):e=a.clone()}}return e||new zt}function Xr(t,e){for(var o=0;o<t.length;o++){var i=t[o];if(i&&i.pane===e)return i}}var Yr=function(t){return t.reduce((function(t,e){return t.concat(e.axes)}),[])};xt(Hr,{series:[],plotArea:{margin:{}},background:"",border:{color:n,width:0},paneDefaults:{title:{}},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});var qr=Hr,Zr={hover:function(t,e){this._dispatchEvent(t,e,"plotAreaHover")},click:function(t,e){this._dispatchEvent(t,e,"plotAreaClick")}};function Kr(t,e,o){var i=e,r=t;if(t.indexOf(".")>-1){for(var n=t.split(".");n.length>1;)r=n.shift(),at(i[r])||(i[r]={}),i=i[r];r=n.shift()}i[r]=o}var Qr=function(t){function e(e,o,i){t.call(this);var r=o.canonicalFields(e),n=o.valueFields(e),a=o.sourceFields(e,r),s=this._seriesFields=[],p=i.query(e.type),c=e.aggregate||p;this._series=e,this._binder=o;for(var l=0;l<r.length;l++){var u=r[l],h=void 0;if(D(c))h=c[u];else{if(0!==l&&!K(u,n))break;h=c}h&&s.push({canonicalName:u,name:a[l],transform:j(h)?h:Uo[h]})}}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,i=this._seriesFields,r=this._bindPoints(t||[]),n=r.dataItems[0],a={};if(n&&!I(n)&&!b(n)){var s=function(){};s.prototype=n,a=new s}for(var p=0;p<i.length;p++){var c=i[p],l=this._bindField(r.values,c.canonicalName),u=c.transform(l,o,r.dataItems,e);if(!(null===u||!D(u)||at(u.length)||u instanceof Date)){a=u;break}at(u)&&Kr(c.name,a,u)}return a},e.prototype._bindPoints=function(t){for(var e=this._binder,o=this._series,i=[],r=[],n=0;n<t.length;n++){var a=t[n];i.push(e.bindPoint(o,a)),r.push(o.data[a])}return{values:i,dataItems:r}},e.prototype._bindField=function(t,e){for(var o=[],i=t.length,r=0;r<i;r++){var n=t[r],a=n.valueFields,s=void 0;s=at(a[e])?a[e]:n.fields[e],o.push(s)}return o},e}(w.Class),$r=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}(w.Class);$r.current=new $r;var Jr=$r,tn=function(t){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=M({},t,t.from),o=M({},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=G(t),i=this.pointData();return e=o?o(i):this.formatValue(t.format),new zi(e,M({vertical:this.options.vertical},t),i)},e.prototype.reflow=function(t){this.render();var e=this.labelFrom,o=this.labelTo,i=this.value;this.box=t,e&&(e.options.aboveAxis=i.from>i.to,e.reflow(t)),o&&(o.options.aboveAxis=i.to>i.from,o.reflow(t)),this.note&&this.note.reflow(t)},e}(Gi);tn.prototype.defaults=M({},tn.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});var en=tn,on=function(t){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 en},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,i=t.from,r=t.to,n=this.valueAxisRanges[o];null!==t&&I(i)&&I(r)&&((n=this.valueAxisRanges[o]=n||{min:h,max:d}).min=Math.min(n.min,i),n.max=Math.max(n.max,i),n.min=Math.min(n.min,r),n.max=Math.max(n.max,r))},e.prototype.aboveAxis=function(t){var e=t.value;return e.from<e.to},e}(Ki);on.prototype.plotLimits=di.prototype.plotLimits;var rn=on,nn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.aliasFor=function(){return this.parent},e}(yi),an=function(t){function e(e,o){t.call(this),this.value=e,this.options=o,this.aboveAxis=_t(this.options.aboveAxis,!0),this.tooltipTracking=!0,this.initLabelsFormat()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){if(!this._rendered){this._rendered=!0;var t=this.options,e=t.markers,o=t.labels,i=this.value,r=this.fromPoint=new nn(i,M({},this.options,{labels:o.from,markers:e.from})),n=this.toPoint=new nn(i,M({},this.options,{labels:o.to,markers:e.to}));this.copyFields(r),this.copyFields(n),this.append(r),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 w.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,i,r=this.box,n=r.center();return this.options.vertical?(e=n.x,o=r.y1-5,i=a):(e=r.x2+5,o=n.y,i=s),{point:new Lt(e,o),align:{horizontal:"left",vertical:i}}}},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,i,r=this.options,n=r.labels,a=r.vertical;"auto"===n.position&&(a?e.y1<=t.y1?(i="above",o="below"):(i="below",o="above"):e.x1<=t.x1?(i=u,o=g):(i=g,o=u),n.from&&n.from.position||(this.fromPoint.options.labels.position=o),n.to&&n.to.position||(this.toPoint.options.labels.position=i))},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}(Xt);M(an.prototype,gi),M(an.prototype,fi),an.prototype.defaults={markers:{visible:!1,background:y,size:8,type:p,border:{width:2},opacity:1},labels:{visible:!1,margin:V(3),padding:V(4),animation:{type:"fadeIn",delay:600},position:"auto"},notes:{label:{}},highlight:{markers:{border:{color:y,width:2}},zIndex:100},tooltip:{format:"{0} - {1}"}};var sn=an,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.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 w.drawing.Path(t),o=new w.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}(Mi),cn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.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 Ro).process(this.toGeometryPoints(t))},e}(pn),ln=function(t){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}(pn);M(ln.prototype,xi);var un=ln,hn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.pointType=function(){return sn},e.prototype.createPoint=function(t,e){var o=e.categoryIx,i=e.category,r=e.series,n=e.seriesIx,a=t.valueFields;if(!sr(a.from)&&!sr(a.to)){if(this.seriesMissingValues(r)!==Jo)return null;a={from:0,to:0}}var s=this.pointOptions(r,n);s=this.evalPointOptions(s,a,i,o,r,n);var p=t.fields.color||r.color;j(r.color)&&(p=s.color);var c=new sn(a,s);return c.color=p,this.append(c),c},e.prototype.createSegment=function(t,e,o){var i=(e.line||{}).style;return new("smooth"===i?cn:"step"===i?un:pn)(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),i=t.getSlot(e[1],e[1],!this.options.clip);if(o&&i)return{from:o,to:i}},e.prototype.pointSlot=function(t,e){var o,i,r=e.from,n=e.to;return this.options.invertAxes?(o=new zt(r.x1,t.y1,r.x2,t.y2),i=new zt(n.x1,t.y1,n.x2,t.y2)):(o=new zt(t.x1,r.y1,t.x2,r.y2),i=new zt(t.x1,n.y1,t.x2,n.y2)),{from:o,to:i}},e.prototype.addValue=function(e,o){var i=e.valueFields;I(i.from)||(i.from=i.to),I(i.to)||(i.to=i.from),t.prototype.addValue.call(this,e,o)},e.prototype.updateRange=function(t,e){if(null!==t&&I(t.from)&&I(t.to)){var o=e.series.axis,i=this.valueAxisRanges[o]=this.valueAxisRanges[o]||{min:h,max:d},r=t.from,n=t.to;i.min=Math.min(i.min,r,n),i.max=Math.max(i.max,r,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 i=t[o];i&&(e.push((i.fromPoint||{}).marker),e.push((i.toPoint||{}).marker))}return e.concat(this._segments)},e}(di);M(hn.prototype,Ai,Pi);var dn=hn,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.reflow=function(t){var e=this.options,o=this.value,i=this.owner.seriesValueAxis(e),r=[],n=[],a=[],s=i.getSlot(o.low,o.high),p=i.getSlot(o.open,o.open),c=i.getSlot(o.close,o.close);p.x1=c.x1=s.x1=t.x1,p.x2=c.x2=s.x2=t.x2;var l=s.center().x;r.push([p.x1,p.y1]),r.push([l,p.y1]),n.push([l,c.y1]),n.push([c.x2,c.y1]),a.push([l,s.y1]),a.push([l,s.y2]),this.lines=[r,n,a],this.box=s.clone().wrap(p.clone().wrap(c)),this.reflowNote()},e.prototype.createBody=function(){},e}($i),fn=function(t){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 gn},e}(er),vn=function(t){function e(e,o,i){t.call(this),this.from=e,this.to=o,this.series=i}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,i=[];if(t.isVertical){var r=t.aboveAxis?e.y1:e.y2;i.push([e.x1,r],[o.x2,r])}else{var n=t.aboveAxis?e.x2:e.x1;i.push([n,e.y1],[n,o.y2])}return i},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.series.line||{},o=w.drawing.Path.fromPoints(this.linePoints(),{stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType}});A(o),this.visual.append(o)},e}(Xt);xt(vn,{animation:{type:"fadeIn",delay:600}});var yn=vn,_n=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.createSegments()},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,o=ui(e),i=!this.options.invertAxes,r=0;r<e.length;r++)for(var n=e[r],a=0,s=0,p=0;p<o;p++){var c=Yo.current.bindPoint(n,p),l=c.valueFields.value,u=c.fields.summary,h=a,d=void 0;u?"total"===u.toLowerCase()?(c.valueFields.value=a,h=0,d=a):(c.valueFields.value=s,d=h-s,s=0):I(l)&&(s+=l,d=a+=l),t(c,{category:this.categoryAxis.categoryAt(p),categoryIx:p,series:n,seriesIx:r,total:a,runningTotal:s,from:h,to:d,isVertical:i})}},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=[],i=0;i<t.length;i++){var r=t[i],n=e[i];if(n)for(var a=void 0,s=0;s<n.length;s++){var p=n[s];if(p&&a){var c=new yn(a,p,r);o.push(c),this.append(c)}a=p}}},e}(Ki),mn=["area","verticalArea","rangeArea","verticalRangeArea"],bn=[oi,ri].concat(mn),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.initFields=function(t){if(this.namedCategoryAxes={},this.namedValueAxes={},this.valueAxisRangeTracker=new Li,t.length>0){this.invertAxes=K(t[0].type,[ti,"bullet",ri,"verticalArea","verticalRangeArea","rangeBar","horizontalWaterfall","verticalBoxPlot"]);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 to?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.groupSeriesByPane(),o=0;o<t.length;o++){var i=t[o],r=e[i.options.name||"default"]||[];this.addToLegend(r);var n=this.filterVisibleSeries(r);if(n)for(var a=this.groupSeriesByCategoryAxis(n),s=0;s<a.length;s++)this.createChartGroup(a[s],i)}},e.prototype.createChartGroup=function(t,e){this.createAreaChart(Br(t,["area","verticalArea"]),e),this.createRangeAreaChart(Br(t,["rangeArea","verticalRangeArea"]),e),this.createBarChart(Br(t,[ei,ti]),e),this.createRangeBarChart(Br(t,["rangeColumn","rangeBar"]),e),this.createBulletChart(Br(t,["bullet","verticalBullet"]),e),this.createCandlestickChart(Br(t,"candlestick"),e),this.createBoxPlotChart(Br(t,["boxPlot","verticalBoxPlot"]),e),this.createOHLCChart(Br(t,"ohlc"),e),this.createWaterfallChart(Br(t,["waterfall","horizontalWaterfall"]),e),this.createLineChart(Br(t,[oi,ri]),e)},e.prototype.aggregateCategories=function(t){var e=this.srcSeries||this.series,o=[];this._currentPointsCache={},this._seriesPointsCache=this._seriesPointsCache||{};for(var i=0;i<e.length;i++){var r=e[i],n=this.seriesCategoryAxis(r),a=this.findPane(n.options.pane);r=(Er(n.options.type,c)||r.categoryField)&&K(a,t)?this.aggregateSeries(r,n):this.filterSeries(r,n),o.push(r)}this._seriesPointsCache=this._currentPointsCache,this._currentPointsCache=null,this.srcSeries=e,this.series=o},e.prototype.filterSeries=function(t,e){var o=(t.data||{}).length;if(e._seriesMax=Math.max(e._seriesMax||0,o),!I(e.options.min)&&!I(e.options.max))return t;var i=e.currentRangeIndices(),r=K(t.type,bn),n=M({},t);return n.data=(n.data||[]).slice(i.min,i.max+1),r&&Gr(n,i,o,(function(o){return{item:t.data[o],category:e.categoryAt(o,!0),categoryIx:o-i.min}}),(function(e){return at(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 i=e.options,r=i.srcCategories,n=Er(i.type,c),a=t.data,s=n?Rr:Wo,p=[];n||e.mapCategories();for(var l=0;l<a.length;l++){var u=void 0;if(u=t.categoryField?s(t.categoryField,a[l],this.chartService.intl):r[l],at(u)&&null!==u){var h=e.totalIndex(u);p[h]=p[h]||{items:[],category:u},p[h].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),i=M({},t),r=new Qr(M({},t),Yo.current,Jr.current),n=i.data=[],a=e.options.dataItems||[],s=e.currentRangeIndices(),p=function(t){var i=t-s.min,n=o[t];if(n||(n=o[t]={}),n.categoryIx=i,!n.item){var a=e.categoryAt(t,!0);n.category=a,n.item=r.aggregatePoints(n.items,a)}return n},c=s.min;c<=s.max;c++){var l=p(c);n[l.categoryIx]=l.item,l.items&&l.items.length&&(a[l.categoryIx]=l.item)}return K(i.type,bn)&&Gr(i,s,e.totalCount(),p,(function(t){return o[t]})),e.options.dataItems=a,i},e.prototype.appendChart=function(e,o){var i=e.options.series,r=this.seriesCategoryAxis(i[0]),n=r.options.categories,a=Math.max(0,ui(i)-n.length);if(a>0)for(n=r.options.categories=r.options.categories.slice(0);a--;)n.push("");this.valueAxisRangeTracker.update(e.valueAxisRanges),t.prototype.appendChart.call(this,e,o)},e.prototype.seriesPaneName=function(t){var e=this.options,o=t.axis,i=X([].concat(e.valueAxis),(function(t){return t.name===o}))[0],r=((e.panes||[{}])[0]||{}).name||"default";return(i||{}).pane||r},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={},i=0;i<t.length;i++){var r=t[i].categoryAxis||"$$default$$";o.hasOwnProperty(r)||(o[r]=!0,e.push(r))}for(var n=[],a=0;a<e.length;a++){var s=Sn(t,e[a],a);0!==s.length&&n.push(s)}return n},e.prototype.createBarChart=function(t,e){if(0!==t.length){var o=t[0],i=new Ki(this,Object.assign({series:t,invertAxes:this.invertAxes,gap:o.gap,spacing:o.spacing},this.stackableChartOptions(o,e)));this.appendChart(i,e)}},e.prototype.createRangeBarChart=function(t,e){if(0!==t.length){var o=t[0],i=new rn(this,{series:t,invertAxes:this.invertAxes,gap:o.gap,spacing:o.spacing});this.appendChart(i,e)}},e.prototype.createBulletChart=function(t,e){if(0!==t.length){var o=t[0],i=new mr(this,{series:t,invertAxes:this.invertAxes,gap:o.gap,spacing:o.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var o=t[0],i=new Ti(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(o,e)));this.appendChart(i,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var o=t[0],i=new Ri(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(o,e)));this.appendChart(i,e)}},e.prototype.createRangeAreaChart=function(t,e){if(0!==t.length){var o=new dn(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],i=new fn(this,{invertAxes:this.invertAxes,gap:o.gap,series:t,spacing:o.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createCandlestickChart=function(t,e){if(0!==t.length){var o=t[0],i=new er(this,{invertAxes:this.invertAxes,gap:o.gap,series:t,spacing:o.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createBoxPlotChart=function(t,e){if(0!==t.length){var o=t[0],i=new nr(this,{invertAxes:this.invertAxes,gap:o.gap,series:t,spacing:o.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createWaterfallChart=function(t,e){if(0!==t.length){var o=t[0],i=new _n(this,{series:t,invertAxes:this.invertAxes,gap:o.gap,spacing:o.spacing});this.appendChart(i,e)}},e.prototype.axisRequiresRounding=function(t,e){for(var o=Br(this.series,ni),i=0;i<this.series.length;i++){var r=this.series[i];if(K(r.type,mn)){var n=r.line;n&&"step"===n.style&&o.push(r)}}for(var a=0;a<o.length;a++){var s=o[a].categoryAxis||"";if(s===t||!s&&0===e)return!0}},e.prototype.aggregatedAxis=function(t,e){for(var o=this.series,i=0;i<o.length;i++){var r=o[i].categoryAxis||"";if((r===t||!r&&0===e)&&o[i].categoryField)return!0}},e.prototype.createCategoryAxesLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e]instanceof to&&t[e].createLabels()},e.prototype.createCategoryAxes=function(t){for(var e=this.invertAxes,o=[].concat(this.options.categoryAxis),i=[],r=0;r<o.length;r++){var n=o[r];if(K(this.findPane(n.pane),t)){var a=n.name,s=n.categories;void 0===s&&(s=[]),n=M({vertical:e,reverse:!e&&this.chartService.rtl,axisCrossingValue:e?h:0},n),at(n.justified)||(n.justified=this.isJustified()),this.axisRequiresRounding(a,r)&&(n.justified=!1);var p=void 0;if(p=Lr(n,s[0])?new co(n,this.chartService):new to(n,this.chartService),o[r].categories=p.options.srcCategories,a){if(this.namedCategoryAxes[a])throw new Error("Category axis with name "+a+" is already defined");this.namedCategoryAxes[a]=p}p.axisIndex=r,i.push(p),this.appendAxis(p)}}var c=this.categoryAxis||i[0];this.categoryAxis=c,e?this.axisY=c:this.axisX=c},e.prototype.isJustified=function(){for(var t=this.series,e=0;e<t.length;e++){if(!K(t[e].type,mn))return!1}return!0},e.prototype.createValueAxes=function(t){var e=this.valueAxisRangeTracker,o=e.query(),i=[].concat(this.options.valueAxis),r=this.invertAxes,n={vertical:!r,reverse:r&&this.chartService.rtl},a=[];this.stack100&&(n.roundToMajorUnit=!1,n.labels={format:"P0"});for(var s=0;s<i.length;s++){var p=i[s];if(K(this.findPane(p.pane),t)){var c=p.name,l=Er(p.type,"log")?{min:.1,max:1}:{min:0,max:1},u=e.query(c)||o||l;0===s&&u&&o&&(u.min=Math.min(u.min,o.min),u.max=Math.max(u.max,o.max));var h=new(Er(p.type,"log")?So:yo)(u.min,u.max,M({},n,p),this.chartService);if(c){if(this.namedValueAxes[c])throw new Error("Value axis with name "+c+" is already defined");this.namedValueAxes[c]=h}h.axisIndex=s,a.push(h),this.appendAxis(h)}}var d=this.valueAxis||a[0];this.valueAxis=d,r?this.axisX=d:this.axisY=d},e.prototype._dispatchEvent=function(t,e,o){var i=t._eventCoordinates(e),r=new Lt(i.x,i.y),n=this.pointPane(r),a=[],s=[];if(n){for(var p=n.axes,c=0;c<p.length;c++){var l=p[c];l.getValue?Tr(s,l.getValue(r)):Tr(a,l.getCategory(r))}0===a.length&&Tr(a,this.categoryAxis.getCategory(r)),a.length>0&&s.length>0&&t.trigger(o,{element:lt(e),originalEvent:e,category:Vr(a),value:Vr(s)})}},e.prototype.pointPane=function(t){for(var e=this.panes,o=0;o<e.length;o++){var i=e[o];if(i.contentBox.containsPoint(t))return i}},e.prototype.updateAxisOptions=function(t,e){Cn(this.options,t,e),Cn(this.originalOptions,t,e)},e}(qr);function Cn(t,e,o){M([].concat(e instanceof to?t.categoryAxis:t.valueAxis)[e.axisIndex],o)}function Sn(t,e,o){return X(t,(function(t){return 0===o&&!t.categoryAxis||t.categoryAxis===e}))}xt(xn,{categoryAxis:{},valueAxis:{}}),M(xn.prototype,Zr);var wn=xn;function An(){this._defaultPrevented=!0}var kn=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 i=0;i<o.length;i++){var r=o[i];r&&r.toggleHighlight&&r.hasHighlight()&&(this.togglePointHighlight(r,!0,e),this._points.push(r))}},e.prototype.togglePointHighlight=function(t,e,o){var i=(t.options.highlight||{}).toggle;if(i){var r={category:t.category,series:t.series,dataItem:t.dataItem,value:t.value,stackValue:t.stackValue,preventDefault:An,visual:t.highlightVisual(),show:e};i(r),r._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}(w.Class);function In(t,e){var o=(e||"").toLowerCase(),i=t.event;return"none"===o&&!(i.ctrlKey||i.shiftKey||i.altKey)||i[o+"Key"]}function On(t){for(var e={},o=0;o<t.length;o++){var i=t[o];i.axis.options.name&&(e[i.axis.options.name]={min:i.range.min,max:i.range.max})}return e}var Pn=function(t){function e(e,o){t.call(this),this.plotArea=e,this.options=M({},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=In(t,this.options.key),this._active},e.prototype.move=function(t){if(this._active){var e=this.axisRanges=this._panAxes(t,_).concat(this._panAxes(t,m));if(e.length)return this.axisRanges=e,On(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 i=e[o];t.updateAxisOptions(i.axis,i.range)}t.redraw(t.panes)}},e.prototype.destroy=function(){delete this.plotArea},e.prototype._panAxes=function(t,e){var o=this.plotArea,i=-t[e].delta,r=(this.options.lock||"").toLowerCase(),n=[];if(0!==i&&(r||"").toLowerCase()!==e)for(var a=o.axes,s=0;s<a.length;s++){var p=a[s];if(e===_&&!p.options.vertical||e===m&&p.options.vertical){var c=p.pan(i);c&&(c.limitRange=!0,n.push({axis:p,range:c}))}}return n},e}(w.Class);Pn.prototype.options={key:"none",lock:"none"};var jn=Pn,Tn=function(t){function e(e,o){t.call(this),this.chart=e,this.options=M({},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){L(this._marquee,t)},e.prototype.start=function(t){if(In(t,this.options.key)){var e=this.chart,o=e._eventCoordinates(t),i=this._zoomPane=e._plotArea.paneByPoint(o),r=i?i.chartsBox().clone():null;if(i&&r){var n=this._elementOffset();return r.translate(n.left,n.top),this._zoomPaneClipBox=r,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=L(t,["paddingLeft","paddingTop"]),o=e.paddingLeft,i=e.paddingTop,r=pt(t);return{left:o+r.left,top:i+r.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 i={x:o.left,y:o.top},r={x:o.left+o.width,y:o.top+o.height};return this._updateAxisRanges(i,r),this.removeElement(),delete this._zoomPane,On(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 i=t[o];e.updateAxisOptions(i.axis,i.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(),i=[],r=this._zoomPane.axes,n=0;n<r.length;n++){var a=r[n],s=a.options.vertical;if((o!==_||s)&&(o!==m||!s)&&at(a.axisIndex)){var p=a.pointsRange(t,e);p&&i.push({axis:a,range:p})}}this.axisRanges=i},e.prototype._selectionPosition=function(t){var e=this._zoomPaneClipBox,o={x:t.x.startLocation,y:t.y.startLocation},i=t.x.location,r=t.y.location,n=(this.options.lock||"").toLowerCase(),a=Math.min(o.x,i),s=Math.min(o.y,r),p=Math.abs(o.x-i),c=Math.abs(o.y-r);return n===_&&(a=e.x1,p=e.width()),n===m&&(s=e.y1,c=e.height()),i>e.x2&&(p=e.x2-o.x),i<e.x1&&(p=o.x-e.x1),r>e.y2&&(c=e.y2-o.y),r<e.y1&&(c=o.y-e.y1),{left:Math.max(a,e.x1),top:Math.max(s,e.y1),width:p,height:c}},e}(w.Class);Tn.prototype.options={key:"shift",lock:"none"};var Mn=Tn,Dn=function(t){function e(e,o){t.call(this),this.chart=e,this.options=M({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(),i=[],r=this.chart._plotArea.axes,n=0;n<r.length;n++){var a=r[n],s=a.options.vertical;if((o!==_||s)&&(o!==m||!s)&&a.zoomRange){var p=dt(this.options.rate,.01,.9),c=a.zoomRange(-t*p,e);c&&i.push({axis:a,range:c})}}return this.axisRanges=i,On(i)},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 i=t[o];e.updateAxisOptions(i.axis,i.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){delete this.chart},e}(w.Class),En=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 w.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 i=0;i<t.length;i++){var r=t[i];r.reflow(new zt),r.renderVisual()}},e.prototype.reflow=function(t){this.visual.rect(t.toRect()),this.visual.reflow();var e=this.visual.clippedBBox();this.box=e?ae(e):new zt},e.prototype.renderVisual=function(){this.addVisual()},e.prototype.createVisual=function(){},e}(Xt),Bn=function(t){function e(e){t.call(this,e),this.createContainer(),e.rtl?(this.createLabel(),this.createMarker()):(this.createMarker(),this.createLabel())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createContainer=function(){this.container=new oe({vertical:!1,wrap:!1,align:s,spacing:this.options.spacing}),this.append(this.container)},e.prototype.createMarker=function(){this.container.append(new Kt(this.markerOptions()))},e.prototype.markerOptions=function(){var t=this.options,e=t.markerColor;return M({},t.markers,{background:e,border:{color:e}})},e.prototype.createLabel=function(){var t=this.options,e=M({},t.labels);this.container.append(new pe(t.text,e))},e.prototype.renderComplete=function(){t.prototype.renderComplete.call(this);var e=this.options.cursor||{},o=this._itemOverlay=w.drawing.Path.fromRect(this.container.box.toRect(),{fill:{color:y,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:lt(t),text:e.text,series:e.series,seriesIndex:e.series.index,pointIndex:e.pointIndex}},e.prototype.renderVisual=function(){var e=this,o=this.options,i=o.visual;i?(this.visual=i({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}(qt),Rn=function(t){function e(e,o){void 0===o&&(o={}),t.call(this,e),this.chartService=o,K(this.options.position,[f,g,a,u,"custom"])||(this.options.position=g),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,i=e,r=s;"custom"===e?i=u:K(e,[f,a])?(i="start"===o?u:"end"===o?g:s,r=e):o&&("start"===o?r=f:"end"===o&&(r=a)),this.container=new qt({margin:t.margin,padding:t.padding,background:t.background,border:t.border,vAlign:r,align:i,zIndex:t.zIndex,shrinkToFit:!0}),this.hasTitle()?this.itemsContainer=new qt({vAlign:r,align:i,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(),i=new En({vertical:o,spacing:e.spacing,rtl:t.rtl},t),r=e.items;e.reverse&&(r=r.slice(0).reverse());for(var n=r.length,a=0;a<n;a++){var s=r[a];i.append(new Bn(M({},{markers:e.markers,labels:e.labels,rtl:t.rtl},e.item,s)))}i.render(),this.itemsContainer.append(i)},e.prototype.isVertical=function(){var t=this.options,e=t.orientation,o=t.position;return"custom"===o&&"horizontal"!==e||(at(e)?"horizontal"!==e:K(o,[u,g]))},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()?("custom"===e.position?(this.containerCustomReflow(o),this.box=o):this.containerReflow(o),this.hasTitle()&&this.title.reflow(new zt(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,i=e.position,r=e.width,n=e.height,s=i===f||i===a?_:m,p=this.isVertical(),c=t.clone(),l=t.clone();i!==u&&i!==g||(l.y1=c.y1=0),p&&n?(l.y2=l.y1+n,l.align(c,m,o.options.vAlign)):!p&&r&&(l.x2=l.x1+r,l.align(c,_,o.options.align)),o.reflow(l);var h=(l=o.box).clone();(e.offsetX||e.offsetY)&&(l.translate(e.offsetX,e.offsetY),o.reflow(l)),h[s+1]=t[s+1],h[s+2]=t[s+2],this.box=h},e.prototype.containerCustomReflow=function(t){var e=this.options,o=this.container,i=e.offsetX,r=e.offsetY,n=e.width,a=e.height,s=this.isVertical(),p=t.clone();s&&a?p.y2=p.y1+a:!s&&n&&(p.x2=p.x1+n),o.reflow(p),p=o.box,o.reflow(new zt(i,r,i+p.width(),r+p.height()))},e.prototype.renderVisual=function(){this.hasItems()&&t.prototype.renderVisual.call(this)},e.prototype.createLegendTitle=function(t){var e=M({},{color:n,position:f,align:s},t),o=e.text;if(t&&!1!==t.visible){if(at(e)&&e.visible){var i=G(e);i?o=i({text:o}):e.format&&(o=this.chartService.format.auto(e.format,o))}this.title=new pe(o,e),this.createTitleLayout(),this.appendTitleLayoutContent()}},e.prototype.createTitleLayout=function(){this.layout=new oe({vertical:!0,wrap:!1}),this.container.append(this.layout)},e.prototype.hasTitle=function(){return Boolean(this.options.title&&!1!==this.options.title.visible)},e.prototype.appendTitleLayoutContent=function(){this.options.title.position===a?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))},e}(Xt);xt(Rn,{position:g,items:[],offsetX:0,offsetY:0,margin:V(5),padding:V(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:u,vAlign:s}});var Ln=Rn,Vn=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 i,r=this._registry,n=r[0],a=0;a<r.length;a++){var s=r[a];if((i=Br(t,s.seriesTypes)).length>0){n=s;break}}return new n.type(i,e,o)},e}(w.Class);Vn.current=new Vn;var zn=Vn;function Nn(t){var e=document.createElement("div");return t&&(e.className=t),e}function Fn(t){for(var e=t;e&&!Y(e,"k-handle");)e=e.parentNode;return e}var Gn=function(t){function e(e,o,i,r){t.call(this);var n=e.element;this.options=M({},this.options,i),this.chart=e,this.observer=r,this.chartElement=n,this.categoryAxis=o,this._dateAxis=this.categoryAxis instanceof co,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=Nn("k-selector");L(e,{top:t.offset.top,left:t.offset.left,width:t.width,height:t.height,direction:"ltr"});var o=this.selection=Nn("k-selection");this.leftMask=Nn("k-mask"),this.rightMask=Nn("k-mask"),e.appendChild(this.leftMask),e.appendChild(this.rightMask),e.appendChild(o),o.appendChild(Nn("k-selection-bg"));var i=this.leftHandle=Nn("k-handle k-left-handle"),r=this.rightHandle=Nn("k-handle k-right-handle");i.appendChild(Nn()),r.appendChild(Nn()),o.appendChild(i),o.appendChild(r),this.chartElement.appendChild(e);var n=L(o,["borderLeftWidth","borderRightWidth","height"]),a=L(i,"height").height,s=L(r,"height").height;t.selection={border:{left:n.borderLeftWidth,right:n.borderRightWidth}},L(i,{top:(n.height-a)/2}),L(r,{top:(n.height-s)/2}),e.style.cssText=e.style.cssText},e.prototype.bindEvents=function(){var t;!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),nt(this.wrapper,((t={})[ai]=this._mousewheelHandler,t))),this._domEvents=Oe.create(this.wrapper,{stopPropagation:!0,start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),press:this._press.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)})},e.prototype.initOptions=function(){var t=this.options,e=this.categoryAxis.pane.chartsBox(),o=this.chart.chartService.intl;this._dateAxis&&M(t,{min:Ke(o,t.min),max:Ke(o,t.max),from:Ke(o,t.from),to:Ke(o,t.to)});var i=L(this.chartElement,["paddingLeft","paddingTop"]),r=i.paddingLeft,n=i.paddingTop;this.options=M({},{width:e.width(),height:e.height()+.1,padding:{left:r,top:n},offset:{left:e.x1+r,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&&(yt(this.wrapper,((t={})[ai]=this._mousewheelHandler,t)),this._mousewheelHandler=null),this.chartElement.removeChild(this.wrapper),this.wrapper=null)},e.prototype._rangeEventArgs=function(t){return{axis:this.categoryAxis.options,from:this._value(t.from),to:this._value(t.to)}},e.prototype._start=function(t){var e=this.options,o=lt(t);if(!this._state&&o){this.chart._unsetActivePoint(),this._state={moveTarget:Fn(o)||o,startLocation:t.x?t.x.location:0,range:{from:this._index(e.from),to:this._index(e.to)}};var i=this._rangeEventArgs({from:this._index(e.from),to:this._index(e.to)});this.trigger("selectStart",i)&&(this._state=null)}},e.prototype._press=function(t){var e;(e=this._state?this._state.moveTarget:Fn(lt(t)))&&x(e,"k-handle-active")},e.prototype._move=function(t){if(this._state){var e=this._state,o=this.options,i=this.categoryAxis,r=e.range,n=e.moveTarget,a=i.options.reverse,s=this._index(o.from),p=this._index(o.to),c=this._index(o.min),l=this._index(o.max),u=e.startLocation-t.x.location,h=r.from,d=r.to,g=r.to-r.from,f=L(this.wrapper,"width").width/(i.categoriesCount()-1),v=Math.round(u/f)*(a?-1:1);if(n){var y=Y(n,"k-left-handle"),_=Y(n,"k-right-handle");Y(n,"k-selection k-selection-bg")?(r.from=Math.min(Math.max(c,s-v),l-g),r.to=Math.min(r.from+g,l)):y&&!a||_&&a?(r.from=Math.min(Math.max(c,s-v),l-1),r.to=Math.max(r.from+1,r.to)):(y&&a||_&&!a)&&(r.to=Math.min(Math.max(c+1,p-v),l),r.from=Math.min(r.to-1,r.from)),r.from===h&&r.to===d||(this.move(r.from,r.to),this.trigger("select",this._rangeEventArgs(r)))}}},e.prototype._end=function(){if(this._state){var t=this._state.moveTarget;t&&S(t,"k-handle-active");var e=this._state.range;this.set(e.from,e.to),this.trigger("selectEnd",this._rangeEventArgs(e)),delete this._state}},e.prototype._tap=function(t){var e=this.options,o=this.categoryAxis,i=this.chart._eventCoordinates(t),r=o.pointCategoryIndex(new Lt(i.x,o.box.y1)),n=this._index(e.from),a=this._index(e.to),s=this._index(e.min),p=this._index(e.max),c=a-n,l=n+c/2,u={},h=3===t.event.which,d=Math.round(l-r);this._state||h||(this.chart._unsetActivePoint(),o.options.justified||d--,u.from=Math.min(Math.max(s,n-d),p-c),u.to=Math.min(u.from+c,p),this._start(t),this._state&&(this._state.range=u,this.trigger("select",this._rangeEventArgs(u)),this._end()))},e.prototype._mousewheel=function(t){var e=this,o=ot(t);if(this._start({target:this.selection}),this._state){var i=this._state.range;t.preventDefault(),t.stopPropagation(),Math.abs(o)>1&&(o*=3),this.options.mousewheel.reverse&&(o*=-1),this.expand(o)&&this.trigger("select",{axis:this.categoryAxis.options,delta:o,originalEvent:t,from:this._value(i.from),to:this._value(i.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._end()}),150)}},e.prototype._gesturestart=function(t){var e=this.options;this._state={range:{from:this._index(e.from),to:this._index(e.to)}};var o=this._rangeEventArgs(this._state.range);this.trigger("selectStart",o)?this._state=null:t.preventDefault()},e.prototype._gestureend=function(){this._state&&(this.trigger("selectEnd",this._rangeEventArgs(this._state.range)),delete this._state)},e.prototype._gesturechange=function(t){var e=this.chart,o=this._state,i=this.options,r=this.categoryAxis,n=o.range,a=e._toModelCoordinates(t.touches[0].x.location).x,s=e._toModelCoordinates(t.touches[1].x.location).x,p=Math.min(a,s),c=Math.max(a,s);t.preventDefault(),n.from=r.pointCategoryIndex(new Lt(p))||i.min,n.to=r.pointCategoryIndex(new Lt(c))||i.max,this.move(n.from,n.to),this.trigger("select",this._rangeEventArgs(n))},e.prototype._index=function(t){var e=t;return t instanceof Date&&(e=this.categoryAxis.categoryIndex(t)),e},e.prototype._value=function(t){var e=t;return this._dateAxis&&(e=this.categoryAxis.categoryAt(t))>this.options.max&&(e=this.options.max),e},e.prototype._slot=function(t){var e=this.categoryAxis,o=this._index(t);return e.getSlot(o,o,!0)},e.prototype.move=function(t,e){var o=this.options,i=this.categoryAxis.options.reverse,r=o.offset,n=o.padding,a=o.selection.border,s=i?e:t,p=i?t:e,c="x"+(i?2:1),l=this._slot(s),u=vt(l[c]-r.left+n.left);L(this.leftMask,{width:u}),L(this.selection,{left:u}),l=this._slot(p);var h=vt(o.width-(l[c]-r.left+n.left));L(this.rightMask,{width:h});var d=o.width-h;d!==o.width&&(d+=a.right),L(this.rightMask,{left:d}),L(this.selection,{width:Math.max(o.width-(u+h)-a.right,0)})},e.prototype.set=function(t,e){var o=this.options,i=this._index(o.min),r=this._index(o.max),n=dt(this._index(t),i,r),a=dt(this._index(e),n+1,r);o.visible&&this.move(n,a),o.from=this._value(n),o.to=this._value(a)},e.prototype.expand=function(t){var e=this.options,o=this._index(e.min),i=this._index(e.max),r=e.mousewheel.zoom,n=this._index(e.from),a=this._index(e.to),s={from:n,to:a},p=M({},s);if(this._state&&(s=this._state.range),r!==g&&(s.from=dt(dt(n-t,0,a-1),o,i)),r!==u&&(s.to=dt(dt(a+t,s.from+1,i),o,i)),s.from!==p.from||s.to!==p.to)return this.set(s.from,s.to),!0},e.prototype.zoom=function(t,e){var o=this.options,i=this._index(o.min),r=this._index(o.max),n=this._index(o.from),a=this._index(o.to),s={from:n,to:a},p=M({},s),c=this.categoryAxis.options.reverse,l=_+(c?"2":"1"),u=this.categoryAxis.lineBox(),h=Math.abs(u[l]-e.x),d=u.width(),g=vt(h/d,2),f=vt(g*t),v=vt((1-g)*t);if(this._state&&(s=this._state.range),s.from=dt(dt(n-f,0,a-1),i,r),s.to=dt(dt(a+v,s.from+1,r),i,r),s.from!==p.from||s.to!==p.to)return this.set(s.from,s.to),!0},e.prototype.trigger=function(t,e){return(this.observer||this.chart).trigger(t,e)},e}(w.Class);xt(Gn,{visible:!0,mousewheel:{zoom:"both"},min:d,max:h});var Hn=Gn,Un=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.show=function(e){if(e&&e.tooltipAnchor&&(!this._current||this._current!==e)){var o=M({},this.options,e.options.tooltip),i=e.tooltipAnchor();i?(this._current=e,t.prototype.show.call(this,{point:e,anchor:i},o,e)):this.hide()}},e.prototype.hide=function(){delete this._current,t.prototype.hide.call(this)},e}(xr),Wn=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=X(t,(function(t){var e=t.series.tooltip;return!(e&&!1===e.visible)}));if(o.length>0){var i=o[0],r=this.plotArea.categoryAxis.getSlot(i.categoryIx),n=e?this._slotAnchor(e,r):this._defaultAnchor(i,r);this.show({anchor:n,shared:!0,points:t,category:i.category,categoryText:this.formatService.auto(this.options.categoryFormat,i.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(),i=this.plotArea.categoryAxis.options.vertical,r=o.center(),n=e.center();return{point:i?new Lt(r.x,n.y):new Lt(n.x,r.y),align:{horizontal:"center",vertical:"center"}}},e}(xr);xt(Wn,{categoryFormat:"{0:d}"});var Xn=Wn,Yn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.element,e=this.options;if(t.bbox()){this.origin=e.origin;var o=e.vertical?m:_,i=this.fromScale=new w.geometry.Point(1,1);i[o]=$o,t.transform(w.geometry.transform().scale(i.x,i.y))}else this.abort()},e.prototype.step=function(t){var e=Q(this.fromScale.x,1,t),o=Q(this.fromScale.y,1,t);this.element.transform(w.geometry.transform().scale(e,o,this.origin))},e.prototype.abort=function(){t.prototype.abort.call(this),this.element.transform(null)},e}(w.drawing.Animation);xt(Yn,{duration:600}),w.drawing.AnimationFactory.current.register(ti,Yn);var qn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.center=this.element.bbox().center();this.element.transform(w.geometry.transform().scale($o,$o,t))},e.prototype.step=function(t){this.element.transform(w.geometry.transform().scale(t,t,this.center))},e}(w.drawing.Animation);xt(qn,{easing:"easeOutElastic"}),w.drawing.AnimationFactory.current.register("bubble",qn);var Zn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this.fadeTo=this.element.opacity(),this.element.opacity(0)},e.prototype.step=function(t){this.element.opacity(t*this.fadeTo)},e}(w.drawing.Animation);xt(Zn,{duration:200,easing:"linear"}),w.drawing.AnimationFactory.current.register("fadeIn",Zn);var Kn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this.element.transform(w.geometry.transform().scale($o,$o,this.options.center))},e.prototype.step=function(t){this.element.transform(w.geometry.transform().scale(t,t,this.options.center))},e}(w.drawing.Animation);xt(Kn,{easing:"easeOutElastic",duration:600}),w.drawing.AnimationFactory.current.register(ii,Kn);var Qn=Kn,$n=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.createSegment=function(t,e,o){return new("smooth"===e.style?wi:mi)(t,e,o)},e.prototype.animationPoints=function(){return t.prototype.animationPoints.call(this).concat(this._segments)},e.prototype.createMissingValue=function(t,e){if(e===Jo){var o={x:t.x,y:t.y};return sr(o.x)||(o.x=0),sr(o.y)||(o.y=0),o}},e}(cr);M($n.prototype,Ai);var Jn=$n,ta=function(t){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 Li,this.yAxisRangeTracker=new Li},e.prototype.render=function(t){void 0===t&&(t=this.panes);for(var e=this.groupSeriesByPane(),o=0;o<t.length;o++){var i=t[o],r=e[i.options.name||"default"]||[];this.addToLegend(r);var n=this.filterVisibleSeries(r);n&&(this.createScatterChart(Br(n,"scatter"),i),this.createScatterLineChart(Br(n,"scatterLine"),i),this.createBubbleChart(Br(n,"bubble"),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,i=X([].concat(e.xAxis),(function(t){return t.name===o}))[0],r=t.yAxis,n=X([].concat(e.yAxis),(function(t){return t.name===r}))[0],a=(e.panes||[{}])[0].name||"default";return(i||{}).pane||(n||{}).pane||a},e.prototype.createScatterChart=function(t,e){t.length>0&&this.appendChart(new cr(this,{series:t,clip:e.options.clip}),e)},e.prototype.createScatterLineChart=function(t,e){t.length>0&&this.appendChart(new Jn(this,{series:t,clip:e.options.clip}),e)},e.prototype.createBubbleChart=function(t,e){t.length>0&&this.appendChart(new dr(this,{series:t,clip:e.options.clip}),e)},e.prototype.createXYAxis=function(t,e,o){for(var i,r=t.name,n=e?this.namedYAxes:this.namedXAxes,a=e?this.yAxisRangeTracker:this.xAxisRangeTracker,s=M({reverse:!e&&this.chartService.rtl},t,{vertical:e}),p=Er(s.type,"log"),l=a.query(),u=p?{min:.1,max:1}:{min:0,max:1},h=a.query(r)||l||u,d=[s.min,s.max],g=this.series,f=0;f<g.length;f++){var v=g[f],y=v[e?"yAxis":"xAxis"];if(y===s.name||0===o&&!y){var _=Yo.current.bindPoint(v,0).valueFields;d.push(_[e?"y":"x"]);break}}0===o&&l&&(h.min=Math.min(h.min,l.min),h.max=Math.max(h.max,l.max));for(var m=0;m<d.length;m++)if(d[m]instanceof Date){i=!0;break}var b=new(Er(s.type,c)||!s.type&&i?mo:p?So:yo)(h.min,h.max,s,this.chartService);if(b.axisIndex=o,r){if(n[r])throw new Error((e?"Y":"X")+" axis with name "+r+" is already defined");n[r]=b}return this.appendAxis(b),b},e.prototype.createAxes=function(t){for(var e=this.options,o=[].concat(e.xAxis),i=[],r=[].concat(e.yAxis),n=[],a=0;a<o.length;a++){K(this.findPane(o[a].pane),t)&&i.push(this.createXYAxis(o[a],!1,a))}for(var s=0;s<r.length;s++){K(this.findPane(r[s].pane),t)&&n.push(this.createXYAxis(r[s],!0,s))}this.axisX=this.axisX||i[0],this.axisY=this.axisY||n[0]},e.prototype._dispatchEvent=function(t,e,o){for(var i=t._eventCoordinates(e),r=new Lt(i.x,i.y),n=this.axes,a=n.length,s=[],p=[],c=0;c<a;c++){var l=n[c],u=l.options.vertical?p:s,h=l.getValue(r);null!==h&&u.push(h)}s.length>0&&p.length>0&&t.trigger(o,{element:lt(e),originalEvent:e,x:Vr(s),y:Vr(p)})},e.prototype.updateAxisOptions=function(t,e){var o=t.options.vertical,i=this.groupAxes(this.panes),r=(o?i.y:i.x).indexOf(t);ea(this.options,r,o,e),ea(this.originalOptions,r,o,e)},e}(qr);function ea(t,e,o,i){M([].concat(o?t.yAxis:t.xAxis)[e],i)}xt(ta,{xAxis:{},yAxis:{}}),M(ta.prototype,Zr);var oa=ta,ia=function(t){function e(e,o,i){t.call(this,i),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 i=G(t),r=this.pointData();if(i?o=i(r):t.format&&(o=e.format.auto(t.format,o)),t.visible&&(o||0===o)){if(t.position===s||"insideEnd"===t.position)t.color||(t.color=Ot(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 pe(o,M({},t,{align:s,vAlign:"",animation:{type:"fadeIn",delay:this.animationDelay}}),r),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(),i=t.distance,r=o.middle();if(e){var n,a=e.box.height(),p=e.box.width();if(t.position===s)o.radius=Math.abs((o.radius-a)/2)+a,n=o.point(r),e.reflow(new zt(n.x,n.y-a/2,n.x,n.y));else if("insideEnd"===t.position)o.radius=o.radius-a/2,n=o.point(r),e.reflow(new zt(n.x,n.y-a/2,n.x,n.y));else{var c;(n=o.clone().expand(i).point(r)).x>=o.center.x?(c=n.x+p,e.orientation=g):(c=n.x-p,e.orientation=u),e.reflow(new zt(c,n.y-a,n.x,n.y))}}},e.prototype.createVisual=function(){var e=this,o=this.sector,i=this.options;if(t.prototype.createVisual.call(this),this.value)if(i.visual){var r=(o.startAngle+180)%360,n=i.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new w.geometry.Point(o.center.x,o.center.y),radius:o.radius,innerRadius:o.innerRadius,startAngle:r,endAngle:r+o.angle,options:i,sender:this.getSender(),createVisual:function(){var t=new w.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,i=o.border||{},r=i.width>0?{stroke:{color:i.color,width:i.width,opacity:i.opacity,dashType:i.dashType}}:{},n=o.color,a={color:n,opacity:o.opacity},s=this.createSegment(e,M({fill:a,stroke:{opacity:o.opacity},zIndex:o.zIndex},r));t.append(s),Ni(o)&&t.append(this.createGradientOverlay(s,{baseColor:n,fallbackFill:a},M({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 w.drawing.Circle(new w.geometry.Circle(new w.geometry.Point(t.center.x,t.center.y),t.radius),e):Ut.current.createRing(t,e)},e.prototype.createAnimation=function(){var e=this.options,o=this.sector.center;M(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,M({},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 w.geometry.Point(t.center.x,t.center.y),startAngle:t.startAngle,endAngle:t.angle+t.startAngle,visual:this.visual}},e.prototype.tooltipAnchor=function(){var t=this.sector.clone().expand(5),e=t.middle();return{point:t.point(e),align:aa(e+180)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series,percentage:this.percentage}},e}(Xt),ra=vt(ft(30),10),na=vt(ft(60),10);function aa(t){var e=ft(t),o=vt(Math.sin(e),10),i=vt(Math.cos(e),10);return{horizontal:Math.abs(o)>na?s:i<0?g:u,vertical:Math.abs(o)<ra?s:o<0?a:f}}xt(ia,{color:y,overlay:{gradient:"roundedBevel"},border:{width:.5},labels:{visible:!1,distance:35,font:"12px sans-serif",margin:V(.5),align:p,zIndex:1,position:"outsideEnd"},animation:{type:ii},highlight:{visible:!0,border:{width:1}},visible:!0}),M(ia.prototype,gi);var sa=ia,pa={createLegendItem:function(t,e,o){var i=this.options.legend||{},r=i.labels||{},n=i.inactiveItems||{},a=n.labels||{};if(o&&!1!==o.visibleInLegend){var s,p,c=!1!==o.visible,l=c?G(r):G(a)||G(r),u=o.category;l&&(u=l({text:u,series:o.series,dataItem:o.dataItem,percentage:o.percentage,value:t})),c?(s={},p=e.color):(s={color:a.color,font:a.font},p=(n.markers||{}).color),sr(u)&&""!==u&&this.legendItems.push({active:c,pointIndex:o.index,text:u,series:o.series,markerColor:p,labels:s})}}},ca=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 i=o.length,r=e.series,n=r.length,a=0;a<n;a++){var p=r[a],c=p.data,l=Dr(p),u=l.total,h=l.points,d=l.count,g=360/u,f=void 0;isFinite(g)||(f=360/d);var v=void 0;v=at(p.startAngle)?p.startAngle:e.startAngle,a!==n-1&&"outsideEnd"===p.labels.position&&(p.labels.position=s);for(var y=0;y<h.length;y++){var _=h[y];if(_){var m=_.fields,b=_.value,x=_.visible,C=0!==b?f||b*g:0,S=1!==c.length&&Boolean(m.explode);j(p.color)||(p.color=m.color||o[y%i]),t(_.valueFields.value,new Ft(null,0,0,v,C),{owner:this,category:at(m.category)?m.category:"",index:y,series:p,seriesIx:a,dataItem:c[y],percentage:0!==u?b/u:0,explode:S,visibleInLegend:m.visibleInLegend,visible:x,zIndex:n-a,animationDelay:this.animationDelay(y,a,n)}),!1!==x&&(v+=C)}}}},e.prototype.evalSegmentOptions=function(t,e,o){var i=o.series;li(t,{value:e,series:i,dataItem:o.dataItem,category:o.category,percentage:o.percentage},{defaults:i._defaults,excluded:["data","content","template","visual","toggle"]})},e.prototype.addValue=function(t,e,o){var i=M({},o.series,{index:o.index});if(this.evalSegmentOptions(i,t,o),this.createLegendItem(t,i,o),!1!==o.visible){var r=new sa(t,e,i);Object.assign(r,o),this.append(r),this.points.push(r)}},e.prototype.reflow=function(t){var e=this.options,o=this.points,i=this.seriesConfigs;void 0===i&&(i=[]);var r=o.length,n=t.clone(),a=Math.min(n.width(),n.height()),s=a/2,p=a-.85*a,c=new zt(n.x1,n.y1,n.x1+a,n.y1+a),l=c.center(),u=n.center(),h=e.series.length,d=[],f=[],v=_t(e.padding,p);this.targetBox=t,v=v>s-5?s-5:v,c.translate(u.x-l.x,u.y-l.y);for(var y=s-v,_=new Lt(y+c.x1+v,y+c.y1+v),m=0;m<r;m++){var b=o[m],x=b.sector,C=b.seriesIx;if(x.radius=y,x.center=_,i.length){var S=i[C];x.innerRadius=S.innerRadius,x.radius=S.radius}C===h-1&&b.explode&&(x.center=x.clone().setRadius(.15*x.radius).point(x.middle())),b.reflow(c);var w=b.label;w&&"outsideEnd"===w.options.position&&C===h-1&&(w.orientation===g?f.push(w):d.push(w))}d.length>0&&(d.sort(this.labelComparator(!0)),this.leftLabelsReflow(d)),f.length>0&&(f.sort(this.labelComparator(!1)),this.rightLabelsReflow(f)),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=ht(this.points),o=e.sector,i=t.length-1,r=o.radius+e.options.labels.distance,n=[],a=t[0].box,s=vt(a.y1-(o.center.y-r-a.height()-a.height()/2));n.push(s);for(var p=0;p<i;p++){var c=t[p+1].box;a=t[p].box,s=vt(c.y1-a.y2),n.push(s)}return s=vt(o.center.y+r-t[i].box.y2-t[i].box.height()/2),n.push(s),n},e.prototype.distributeLabels=function(t,e){for(var o,i,r,n=t.length,a=0;a<n;a++)for(r=-t[a],o=i=a;r>0&&(o>=0||i<n);)r=this._takeDistance(t,a,--o,r),r=this._takeDistance(t,a,++i,r);this.reflowLabels(t,e)},e.prototype._takeDistance=function(t,e,o,i){var r=i;if(t[o]>0){var n=Math.min(t[o],r);r-=n,t[o]-=n,t[e]+=n}return r},e.prototype.reflowLabels=function(t,e){var o,i=ht(this.points),r=i.sector,n=i.options.labels,a=e.length,s=n.distance,c=r.center.y-(r.radius+s)-e[0].box.height();t[0]+=2;for(var l=0;l<a;l++){var u=e[l],h=u.box;c+=t[l],o=this.hAlignLabel(h.x2,r.clone().expand(s),c,c+h.height(),u.orientation===g),u.orientation===g?(n.align!==p&&(o=r.radius+r.center.x+s),u.reflow(new zt(o+h.width(),c,o,c))):(n.align!==p&&(o=r.center.x-r.radius-s),u.reflow(new zt(o-h.width(),c,o,c))),c+=h.height()}},e.prototype.createVisual=function(){var e=this.options.connectors,o=this.points,i=o.length;t.prototype.createVisual.call(this),this._connectorLines=[];for(var r=0;r<i;r++){var n=o[r],a=n.sector,s=n.label,p=a.middle(),c=(n.options.connectors||{}).color||e.color;if(s){var l=new w.drawing.Path({stroke:{color:c,width:e.width},animation:{type:"fadeIn",delay:n.animationDelay}});if("outsideEnd"===s.options.position){var u=s.box,h=a.center,d=a.point(p),f=new Lt(u.x1,u.center().y),v=void 0,y=void 0,_=void 0;d=a.clone().expand(e.padding).point(p),l.moveTo(d.x,d.y),s.orientation===g?(_=la(h,d,f,y=new Lt(u.x1-e.padding,u.center().y)),f=new Lt(y.x-4,y.y),(_=_||f).x=Math.min(_.x,f.x),this.pointInCircle(_,a.center,a.radius+4)||_.x<a.center.x?(v=a.center.x+a.radius+4,n.options.labels.align!==ei?v<f.x?l.lineTo(v,d.y):l.lineTo(d.x+8,d.y):l.lineTo(v,d.y),l.lineTo(f.x,y.y)):(_.y=y.y,l.lineTo(_.x,_.y))):(_=la(h,d,f,y=new Lt(u.x2+e.padding,u.center().y)),f=new Lt(y.x+4,y.y),(_=_||f).x=Math.max(_.x,f.x),this.pointInCircle(_,a.center,a.radius+4)||_.x>a.center.x?(v=a.center.x-a.radius-4,n.options.labels.align!==ei?v>f.x?l.lineTo(v,d.y):l.lineTo(d.x-8,d.y):l.lineTo(v,d.y),l.lineTo(f.x,y.y)):(_.y=y.y,l.lineTo(_.x,_.y))),l.lineTo(y.x,y.y),this._connectorLines.push(l),this.visual.append(l)}}}},e.prototype.renderVisual=function(){if(t.prototype.renderVisual.call(this),St(this.options.series,(function(t){return t.autoFit}))){var e=this.targetBox,o=this.box.center(),i=this.visual.bbox();if(!i)return;var r=i.bottomRight(),n=Math.min((o.y-e.y1)/(o.y-i.origin.y),(e.y2-o.y)/(r.y-o.y),(o.x-e.x1)/(o.x-i.origin.x),(e.x2-o.x)/(r.x-o.x));n<1&&this.visual.transform(w.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,i,r){var n=e.radius,a=e.center,s=a.x,p=a.y,c=Math.min(Math.abs(p-o),Math.abs(p-i));return c>n?t:s+Math.sqrt(n*n-c*c)*(r?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}(Xt);function la(t,e,o,i){var r,n=(i.x-o.x)*(t.y-o.y)-(i.y-o.y)*(t.x-o.x),a=(i.y-o.y)*(e.x-t.x)-(i.x-o.x)*(e.y-t.y);if(0!==a){var s=n/a;r=new Lt(t.x+s*(e.x-t.x),t.y+s*(e.y-t.y))}return r}xt(ca,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),M(ca.prototype,pa),ca.prototype.isStackRoot=!0;var ua=ca,ha=function(t){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 ua(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),rt(this.options.legend.items,e.legendItems)},e}(qr),da=function(t){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,i=this.sector.clone(),r=i.middle();if(o){var n=o.box.height();if(e.position===s){i.radius-=(i.radius-i.innerRadius)/2;var a=i.point(r);o.reflow(new zt(a.x,a.y-n/2,a.x,a.y))}else t.prototype.reflowLabel.call(this)}},e.prototype.createSegment=function(t,e){return Ut.current.createRing(t,e)},e}(sa);xt(da,{overlay:{gradient:"roundedGlass"},labels:{position:s},animation:{type:ii}}),M(da.prototype,gi);var ga=da,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.addValue=function(t,e,o){var i=M({},o.series,{index:o.index});if(this.evalSegmentOptions(i,t,o),this.createLegendItem(t,i,o),t&&!1!==o.visible){var r=new ga(t,e,i);Object.assign(r,o),this.append(r),this.points.push(r)}},e.prototype.reflow=function(e){for(var o,i=this.options,r=e.clone(),n=Math.min(r.width(),r.height()),a=n/2,s=n-.85*n,p=i.series,c=p.length,l=_t(i.padding,s),u=a-(l=l>a-5?a-5:l),h=0,d=0;d<c;d++){var g=p[d];0===d&&at(g.holeSize)&&(o=g.holeSize,u-=g.holeSize),at(g.size)?u-=g.size:h++,at(g.margin)&&d!==c-1&&(u-=g.margin)}at(o)||(u-=o=.75*((a-l)/(c+.75)));var f,v=o,y=0;this.seriesConfigs=[];for(var _=0;_<c;_++){var m=p[_];f=(v+=y)+_t(m.size,u/h),this.seriesConfigs.push({innerRadius:v,radius:f}),y=m.margin||0,v=f}t.prototype.reflow.call(this,e)},e.prototype.animationDelay=function(t,e,o){return 50*t+600*(e+1)/(o+1)},e}(ua);xt(fa,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}});var va=fa,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.render=function(){this.createDonutChart(this.series)},e.prototype.createDonutChart=function(t){var e=t[0],o=new va(this,{series:t,padding:e.padding,connectors:e.connectors,legend:this.options.legend});this.appendChart(o)},e}(ha),_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.initFields=function(){this.valueAxisRangeTracker=new Li},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,i=t.getSlot(o),r=this.polarAxis.getSlot(0).center,n=t.box.translate(r.x-i.x1,r.y-i.y1);t.reflow(n)},e.prototype.createValueAxis=function(){var t,e,o=this.valueAxisRangeTracker,i=o.query(),r=this.valueAxisOptions({roundToMajorUnit:!1,zIndex:-1});"log"===r.type?(t=Eo,e={min:.1,max:1}):(t=Mo,e={min:0,max:1});var n=o.query(name)||i||e;n&&i&&(n.min=Math.min(n.min,i.min),n.max=Math.max(n.max,i.max));var a=new t(n.min,n.max,r,this.chartService);this.valueAxis=a,this.appendAxis(a)},e.prototype.reflowAxes=function(){var t=this.options.plotArea,e=this.valueAxis,o=this.polarAxis,i=this.box,r=.15*Math.min(i.width(),i.height()),n=V(t.padding||{},r),a=i.clone().unpad(n),p=a.clone();p.y2=p.y1+Math.min(p.width(),p.height()),p.align(a,m,s);var c=p.clone().shrink(0,p.height()/2);o.reflow(p),e.reflow(c);var l=e.lineBox().height()-e.box.height();e.reflow(e.box.unpad({top:l})),this.axisBox=p,this.alignAxes(p)},e.prototype.backgroundBox=function(){return this.box},e.prototype.detachLabels=function(){},e}(qr),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.pointSlot=function(t,e){var o=t.center.y-e.y1,i=Lt.onCircle(t.center,t.startAngle,o);return new zt(i.x,i.y,i.x,i.y)},e}(cr);xt(ma,{clip:!1});var ba=ma,xa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Jn);xa.prototype.pointSlot=ba.prototype.pointSlot,xt(xa,{clip:!1});var Ca=xa,Sa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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 Ro(!1),i=this.points();i.push(e),(t=this._strokeSegments=o.process(i)).pop()}return t},e}(Bi),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.fillToAxes=function(t){var e=this.parent.plotArea.polarAxis.box.center(),o=new w.geometry.Segment([e.x,e.y]);t.segments.unshift(o),t.segments.push(o)},e}(Mi);function Aa(t,e){return t.value.x-e.value.x}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.createSegment=function(t,e,o){return"smooth"===(e.line||{}).style?new Sa(t,e,o):new wa(t,e,o)},e.prototype.createMissingValue=function(t,e){var o;return sr(t.x)&&"interpolate"!==e&&(o={x:t.x,y:t.y},e===Jo&&(o.y=0)),o},e.prototype.seriesMissingValues=function(t){return t.missingValues||Jo},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(Aa),this._hasMissingValuesGap())for(var e=0;e<t.length;e++){var o=t[e];if(o)sr(o.value.y)||"gap"!==this.seriesMissingValues(o.series)||delete t[e]}return t},e}(Ca),Ia=function(t){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 Oo(this.options.xAxis,this.chartService);this.polarAxis=t,this.axisX=t,this.appendAxis(t)},e.prototype.valueAxisOptions=function(t){return M(t,{majorGridLines:{type:r},minorGridLines:{type:r}},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),qr.prototype.appendChart.call(this,t,e)},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createLineChart(Br(t,["polarLine"]),e),this.createScatterChart(Br(t,["polarScatter"]),e),this.createAreaChart(Br(t,["polarArea"]),e)},e.prototype.createLineChart=function(t,e){if(0!==t.length){var o=new Ca(this,{series:t});this.appendChart(o,e)}},e.prototype.createScatterChart=function(t,e){if(0!==t.length){var o=new ba(this,{series:t});this.appendChart(o,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var o=new ka(this,{series:t});this.appendChart(o,e)}},e.prototype._dispatchEvent=function(t,e,o){var i=t._eventCoordinates(e),r=new Lt(i.x,i.y),n=this.axisX.getValue(r),a=this.axisY.getValue(r);null!==n&&null!==a&&t.trigger(o,{element:lt(e),x:n,y:a})},e.prototype.createCrosshairs=function(){},e}(_a);xt(Ia,{xAxis:{},yAxis:{}}),M(Ia.prototype,Zr);var Oa=Ia;var Pa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointSlot=function(t,e){var o=t.center.y-e.y1,i=Lt.onCircle(t.center,t.middle(),o);return new zt(i.x,i.y,i.x,i.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 i=t[o];e[i.seriesIx]=e[i.seriesIx]||[],e[i.seriesIx].push(i)}return e}(this._segments),o=0;o<e.length;o++){var i=e[o];if(i&&i.length>1){var r=i[0].linePoints[0],n=ht(i),a=ht(n.linePoints),s=0===r.categoryIx,p=a.categoryIx===a.categoriesCount-1;s&&p&&ht(i).linePoints.push(r)}}},e.prototype.createSegment=function(t,e,o){var i=new("smooth"===e.style?wi:mi)(t,e,o),r=this.seriesMissingValues(e);return t.length!==e.data.length&&"interpolate"!==r||(i.options.closed=!0),i},e}(Ti);xt(Pa,{clip:!1,limitPoints:!1});var ja=Pa,Ta=function(t){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}(Bi),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.fillToAxes=function(){},e}(Mi),Da=function(t){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,i){var r,n,a,s=this.options.isStacked,p=(e.line||{}).style;return s&&o>0&&i&&(n=i.linePoints.slice(0),r=i),"smooth"===p?(a=new Ta(t,e,o,r,n)).options.closed=!0:(t.push(t[0]),a=new Ma(t,e,o,r,n)),a},e.prototype.seriesMissingValues=function(t){return t.missingValues||Jo},e}(ja),Ea=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}(ga);xt(Ea,{overlay:{gradient:"none"},labels:{distance:10}});var Ba=Ea,Ra=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Ui:Hi}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,i=e.gap,r=e.spacing,n=o.length,a=n+i+r*(n-1),s=t.angle/a,p=t.startAngle+s*(i/2);this.forEach(o,(function(e){var o=t.clone();o.startAngle=p,o.angle=s,e.sector&&(o.radius=e.sector.radius),e.reflow(o),e.sector=o,p+=s+s*r}))},e}(Xt);xt(Ra,{gap:1,spacing:0});var La=Ra,Va=function(t){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,i=o.length,r=e?i-1:0,n=e?-1:1;this.box=new zt;for(var a=r;a>=0&&a<i;a+=n){var s=o[a].sector;s.startAngle=t.startAngle,s.angle=t.angle}},e}(Xt),za=function(t){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 Ba},e.prototype.clusterType=function(){return La},e.prototype.stackType=function(){return Va},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.pointSlot=function(t,e){var o=t.clone(),i=t.center.y;return o.radius=i-e.y1,o.innerRadius=i-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}(Ki);za.prototype.reflow=di.prototype.reflow,xt(za,{clip:!1,limitPoints:!1,animation:{type:"pie"}});var Na=za,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.createPolarAxis=function(){var t=new ko(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&&M(t,{majorGridLines:{type:r},minorGridLines:{type:r}}),this._isStacked100&&M(t,{roundToMajorUnit:!1,labels:{format:"P0"}}),M(t,this.options.valueAxis)},e.prototype.aggregateCategories=function(){wn.prototype.aggregateCategories.call(this,this.panes)},e.prototype.createCategoryAxesLabels=function(){wn.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(Br(t,["radarArea"]),e),this.createLineChart(Br(t,["radarLine"]),e),this.createBarChart(Br(t,["radarColumn"]),e)},e.prototype.chartOptions=function(t){var e={series:t},o=t[0];if(o){var i=this.filterVisibleSeries(t),r=o.stack;e.isStacked=r&&i.length>1,e.isStacked100=r&&"100%"===r.type&&i.length>1,e.isStacked100&&(this._isStacked100=!0)}return e},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var o=new Da(this,this.chartOptions(t));this.appendChart(o,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var o=new ja(this,this.chartOptions(t));this.appendChart(o,e)}},e.prototype.createBarChart=function(t,e){if(0!==t.length){var o=t[0],i=this.chartOptions(t);i.gap=o.gap,i.spacing=o.spacing;var r=new Na(this,i);this.appendChart(r,e),this._hasBarCharts=!0}},e.prototype.seriesCategoryAxis=function(){return this.categoryAxis},e.prototype._dispatchEvent=function(t,e,o){var i=t._eventCoordinates(e),r=new Lt(i.x,i.y),n=this.categoryAxis.getCategory(r),a=this.valueAxis.getValue(r);null!==n&&null!==a&&t.trigger(o,{element:lt(e),category:n,value:a})},e.prototype.createCrosshairs=function(){},e}(_a);M(Fa.prototype,Zr,{appendChart:wn.prototype.appendChart,aggregateSeries:wn.prototype.aggregateSeries,seriesSourcePoints:wn.prototype.seriesSourcePoints}),xt(Fa,{categoryAxis:{categories:[]},valueAxis:{}});var Ga=Fa,Ha=function(t){function e(e,o,i){t.call(this,o),this.value=e,this.options.index=i.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 zt(e[0].x,e[0].y,e[1].x,e[2].y),o&&o.reflow(new zt(t.x1,e[0].y,t.x2,e[2].y))},e.prototype.createVisual=function(){var e,o=this,i=this.options;t.prototype.createVisual.call(this),(e=i.visual?i.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:i,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 w.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 w.drawing.Path.fromPoints(this.points,t)},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=w.drawing.Path.fromPoints(this.points).close();return{options:this.options,path:t}},e.prototype.tooltipAnchor=function(){var t=this.box;return{point:new Lt(t.center().x,t.y1),align:{horizontal:"center",vertical:"top"}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(Xt);xt(Ha,{color:y,border:{width:1}}),M(Ha.prototype,gi);var Ua=Ha,Wa=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.options,e=this.plotArea.options.seriesColors;void 0===e&&(e=[]);var o=t.series[0],i=o.data;if(i)for(var r=Dr(o),n=r.total,a=r.points,s=0;s<a.length;s++){var p=a[s];if(p){var c=p.fields;j(o.color)||(o.color=c.color||e[s%e.length]),c=M({index:s,owner:this,series:o,dataItem:i[s],percentage:p.value/n},c,{visible:p.visible});var l=p.valueFields.value,u=this.createSegment(l,c),h=this.createLabel(l,c);u&&h&&u.append(h)}}},e.prototype.evalSegmentOptions=function(t,e,o){var i=o.series;li(t,{value:e,series:i,dataItem:o.dataItem,index:o.index},{defaults:i._defaults,excluded:["data","content","template","toggle","visual"]})},e.prototype.createSegment=function(t,e){var o=M({},e.series);if(this.evalSegmentOptions(o,t,e),this.createLegendItem(t,o,e),!1!==e.visible){var i=new Ua(t,o,e);return Object.assign(i,e),this.append(i),this.points.push(i),i}},e.prototype.createLabel=function(t,e){var o=e.series,i=e.dataItem,r=M({},this.options.labels,o.labels),n=t;if(r.visible){var a=G(r),s={dataItem:i,value:t,percentage:e.percentage,category:e.category,series:o};a?n=a(s):r.format&&(n=this.plotArea.chartService.format.auto(r.format,n)),r.color||(r.color=Ot(o.color),r.background||(r.background=o.color)),this.evalSegmentOptions(r,t,e);var p=new pe(n,M({vAlign:r.position},r),s);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 i=t[o].options.align;if(i!==s){var r=t[o].box.width();i===u?e.left=Math.max(e.left,r):e.right=Math.max(e.right,r)}}return e},e.prototype.dynamicSlopeReflow=function(t,e,o){for(var i=this.options,r=this.points,n=r.length,a=r[0],s=a,p=0;p<r.length;p++)r[p].percentage>s.percentage&&(s=r[p]);for(var c=a.percentage/s.percentage*e,l=(e-c)/2,u=0,h=0;h<n;h++){var d=r[h].percentage,g=r[h+1],f=g?g.percentage:d,v=r[h].points=[],y=i.dynamicHeight?o*d:o/n,_=void 0;_=dt(_=d?(e-c*(f/d))/2:f?0:e/2,0,e),v.push(new w.geometry.Point(t.x1+l,t.y1+u)),v.push(new w.geometry.Point(t.x1+e-l,t.y1+u)),v.push(new w.geometry.Point(t.x1+e-_,t.y1+y+u)),v.push(new w.geometry.Point(t.x1+_,t.y1+y+u)),l=_,u+=y+i.segmentSpacing,c=dt(e-2*_,0,e)}},e.prototype.constantSlopeReflow=function(t,e,o){for(var i=this.options,r=this.points,n=r.length,a=i.neckRatio<=1,s=a?i.neckRatio*e:e,p=a?0:(e-e/i.neckRatio)/2,c=((a?e:e-2*p)-s)/2,l=0,u=0;u<n;u++){var h=r[u].points=[],d=r[u].percentage,g=i.dynamicHeight?c*d:c/n,f=i.dynamicHeight?o*d:o/n;h.push(new w.geometry.Point(t.x1+p,t.y1+l)),h.push(new w.geometry.Point(t.x1+e-p,t.y1+l)),h.push(new w.geometry.Point(t.x1+e-p-g,t.y1+f+l)),h.push(new w.geometry.Point(t.x1+p+g,t.y1+f+l)),p+=g,l+=f+i.segmentSpacing}},e.prototype.reflow=function(t){var e=this.points,o=e.length;if(o){var i=this.options,r=t.clone().unpad(this.labelPadding()),n=r.height()-i.segmentSpacing*(o-1),a=r.width();i.dynamicSlope?this.dynamicSlopeReflow(r,a,n):this.constantSlopeReflow(r,a,n);for(var s=0;s<o;s++)e[s].reflow(t)}},e}(Xt);xt(Wa,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:s,position:s,zIndex:1}}),M(Wa.prototype,pa);var Xa=Wa,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.render=function(){this.createFunnelChart(this.series)},e.prototype.createFunnelChart=function(t){var e=t[0],o=new Xa(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),rt(this.options.legend.items,e.legendItems)},e}(qr),qa=function(t,e){void 0===e&&(e=.05);var o=Object(w.parseColor)(t),i=1-e;return function(t){var e=o.toHSL(),r=100-e.l,n=i-t;return e.l+=Math.min(n*r,r),e.toCss()}},Za=function(t){function e(e,o){t.call(this),this.options=o,this.color=o.color||y,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(),i=G(t),r=t.color;e=i?i(o):this.formatValue(t.format),r||(r=Ot(this.color)),this.label=new pe(e,M({align:s,vAlign:s,margin:{left:5,right:5},zIndex:_t(t.zIndex,this.series.zIndex)},t,{color:r}),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(),i="roundedRect"===_t(t.type,"rect"),r=_t(e.width,i?1:0),n=Math.round(r/2);if(t.size){var a=o.center();o.size.width=o.size.height=t.size,o.origin.x=Math.round(a.x-o.size.width/2),o.origin.y=Math.round(a.y-o.size.height/2)}return o.size.width-=r,o.size.height-=r,o.origin.y+=n+.5,o.origin.x+=n+.5,ae(o)},e.prototype.markerBorder=function(){var t=this.options,e=t.markers.border,o=_t(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 Kt({type:_t(e.type,"rect"),width:e.size,height:e.size,rotation:e.rotation,background:this.color,border:this.markerBorder(),borderRadius:e.borderRadius,opacity:this.series.opacity||t.opacity,zIndex:_t(t.zIndex,this.series.zIndex),animation:t.animation,visual:t.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category});this.marker=o,this.append(o)},e.prototype.createHighlight=function(t){var e=this.options,o=this.options.highlight.markers||this.options.markers,i=new Kt({type:_t(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:_t(e.zIndex,this.series.zIndex)});i.reflow(this.markerBox());var r=i.getElement();return r.options.fill=t.fill,r.options.stroke=t.stroke,r},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 Lt(t,e),align:{horizontal:s,vertical:a}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.unclipElements=function(){},e.prototype.pointData=function(){return{x:this.value.x,y:this.value.y,value:this.value.value,dataItem:this.dataItem,series:this.series}},e}(Xt);M(Za.prototype,gi),M(Za.prototype,fi),Za.prototype.defaults={markers:{type:"rect",borderRadius:4,border:{color:"transparent"}},padding:{top:1},labels:{visible:!1,padding:3},opacity:1,notes:{label:{}}};var Ka=Za,Qa=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:h,max:d},this._evalSeries=[]},e.prototype.render=function(){this.setRange(),this.traverseDataPoints(this.addValue.bind(this))},e.prototype.setRange=function(){for(var t=this.options.series,e=0;e<t.length;e++)for(var o=t[e],i=0;i<o.data.length;i++){var r=this._bindPoint(o,e,i).valueFields;this.valueRange.min=Math.min(this.valueRange.min,r.value),this.valueRange.max=Math.max(this.valueRange.max,r.value)}},e.prototype.addValue=function(t,e){var o;t&&(o=this.createPoint(t,e))&&Object.assign(o,e),this.points.push(o)},e.prototype.evalPointOptions=function(t,e,o){var i=o.series,r=o.seriesIx,n={defaults:i._defaults,excluded:["data","tooltip","content","template","visual","toggle"]},a=this._evalSeries[r];at(a)||(this._evalSeries[r]=a=li(t,{},n,!0));var s=t;return a&&li(s=M({},t),{value:e,series:i,dataItem:o.dataItem,min:this.valueRange.min,max:this.valueRange.max},n),s},e.prototype.pointType=function(){return Ka},e.prototype.pointOptions=function(t,e){var o=this.seriesOptions[e];if(!o){var i=this.pointType().prototype.defaults;this.seriesOptions[e]=o=M({},i,{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,i=this.pointOptions(o,e.seriesIx),r=e.color||o.color;(i=this.evalPointOptions(i,t,e),j(o.color))?r=i.color:r=qa(r)(t.value/this.valueRange.max);var n=new Ka(t,i);return n.color=r,this.append(n),n},e.prototype.seriesAxes=function(t){var e=t.xAxis,o=t.yAxis,i=this.plotArea,r=e?i.namedXAxes[e]:i.axisX,n=o?i.namedYAxes[o]:i.axisY;if(!r)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:r,yAxis:n}},e.prototype.reflow=function(t){var e=this,o=this.points,i=!this.options.clip,r=0;this.traverseDataPoints((function(t,n){var a=o[r++],s=e.seriesAxes(n.series),p=s.xAxis,c=s.yAxis,l=p.categoryIndex(t.x),u=c.categoryIndex(t.y),h=p.getSlot(l,l,i),d=c.getSlot(u,u,i);if(a)if(h&&d){var g=e.pointSlot(h,d);a.reflow(g)}else a.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new zt(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,o=0;o<e.length;o++)for(var i=e[o],r=this.seriesAxes(i),n=r.xAxis,a=r.yAxis,s=n.currentRangeIndices(),p=a.currentRangeIndices(),c=0;c<i.data.length;c++){var l=this._bindPoint(i,o,c),u=l.valueFields,h=l.fields,d=n.totalIndex(u.x),g=a.totalIndex(u.y),f=s.min<=d&&d<=s.max,v=p.min<=g&&g<=p.max;f&&v&&t(u,M({pointIx:c,series:i,seriesIx:o,dataItem:i.data[c],owner:this},h))}},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}(Xt);xt(Qa,{series:[],tooltip:{format:"{0}, {1}: {2}"},labels:{format:"{2}"},clip:!0}),M(Qa.prototype,{_bindPoint:di.prototype._bindPoint});var $a=Qa,Ja=function(t){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],i=o.data||[],r=this.seriesAxes(o),n=r.xAxis,a=r.yAxis,s=Et(n.categories||[]),p=Et(a.categories||[]),c=0;c<i.length;c++){var l=Yo.current.bindPoint(o,c).valueFields,u=l.x,h=l.y;s.has(u)||s.add(u),p.has(h)||p.add(h)}n.categories=s.values(),a.categories=p.values()}},e.prototype.createCharts=function(t){for(var e=this.groupSeriesByPane(),o=0;o<t.length;o++){var i=t[o],r=e[i.options.name||"default"]||[];this.addToLegend(r);var n=this.filterVisibleSeries(r);n&&this.createHeatmapChart(Br(n,["heatmap"]),i)}},e.prototype.createHeatmapChart=function(t,e){var o=new $a(this,{series:t});this.appendChart(o,e)},e.prototype.seriesPaneName=function(t){var e=this.options,o=t.xAxis,i=X([].concat(e.xAxis),(function(t){return t.name===o}))[0],r=t.yAxis,n=X([].concat(e.yAxis),(function(t){return t.name===r}))[0],a=(e.panes||[{}])[0].name||"default";return(i||{}).pane||(n||{}).pane||a},e.prototype.seriesAxes=function(t){var e,o,i=this.options,r=[].concat(i.xAxis),n=t.xAxis;e=n?r.find((function(t){return t.name===n})):r[0];var a=[].concat(i.yAxis),s=t.yAxis;if(o=s?a.find((function(t){return t.name===s})):a[0],!e)throw new Error("Unable to locate X axis with name "+n);if(!o)throw new Error("Unable to locate Y axis with name "+s);return{xAxis:e,yAxis:o}},e.prototype.createAxisLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e].createLabels()},e.prototype.createXYAxis=function(t,e,o){for(var i,r=t.name,n=e?this.namedYAxes:this.namedXAxes,a=Object.assign({axisCrossingValue:0},t,{vertical:e,reverse:e||this.chartService.rtl?!t.reverse:t.reverse,justified:!1}),s=a.categories?a.categories[0]:null,p=[a.min,a.max,s],l=this.series,u=0;u<l.length;u++){var h=l[u],d=h[e?"yAxis":"xAxis"];if(d===a.name||0===o&&!d){var g=Yo.current.bindPoint(h,0).valueFields;p.push(g[e?"y":"x"]);break}}for(var f=0;f<p.length;f++)if(p[f]instanceof Date){i=!0;break}var v=new(Er(a.type,c)||!a.type&&i?co:to)(a,this.chartService);if(v.axisIndex=o,r){if(n[r])throw new Error((e?"Y":"X")+" axis with name "+r+" is already defined");n[r]=v}return this.appendAxis(v),v.mapCategories(),v},e.prototype.createAxes=function(t){for(var e=this.options,o=[].concat(e.xAxis),i=[],r=[].concat(e.yAxis),n=[],a=0;a<o.length;a++){K(this.findPane(o[a].pane),t)&&i.push(this.createXYAxis(o[a],!1,a))}for(var s=0;s<r.length;s++){K(this.findPane(r[s].pane),t)&&n.push(this.createXYAxis(r[s],!0,s))}this.axisX=this.axisX||i[0],this.axisY=this.axisY||n[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 i=t._eventCoordinates(e),r=new Lt(i.x,i.y),n=this.axes,a=n.length,s=[],p=[],c=0;c<a;c++){var l=n[c];Tr(l.options.vertical?p:s,l.getCategory(r))}s.length>0&&p.length>0&&t.trigger(o,{element:lt(e),originalEvent:e,x:Vr(s),y:Vr(p)})},e.prototype.updateAxisOptions=function(t,e){var o=t.options.vertical,i=this.groupAxes(this.panes),r=(o?i.y:i.x).indexOf(t);ts(this.options,r,o,e),ts(this.originalOptions,r,o,e)},e.prototype.crosshairOptions=function(t){return Object.assign({},t.options.crosshair,{zIndex:0})},e}(qr);function ts(t,e,o,i){M([].concat(o?t.yAxis:t.xAxis)[e],i)}xt(Ja,{xAxis:{},yAxis:{}}),M(Ja.prototype,Zr);var es=Ja,os="color",is="first",rs="max";zn.current.register(wn,[ti,ei,oi,ri,"area","verticalArea","candlestick","ohlc","bullet","verticalBullet","boxPlot","verticalBoxPlot","rangeColumn","rangeBar","waterfall","horizontalWaterfall","rangeArea","verticalRangeArea"]),zn.current.register(oa,["scatter","scatterLine","bubble"]),zn.current.register(ha,[ii]),zn.current.register(ya,["donut"]),zn.current.register(Ya,["funnel"]),zn.current.register(Oa,["polarArea","polarLine","polarScatter"]),zn.current.register(Ga,["radarArea","radarColumn","radarLine"]),zn.current.register(es,["heatmap"]),Yo.current.register([ti,ei,oi,ri,"area","verticalArea"],[v],["category",os,"noteText","errorLow","errorHigh"]),Yo.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],["from","to"],["category",os,"noteText"]),Yo.current.register(["waterfall","horizontalWaterfall"],[v],["category",os,"noteText","summary"]),Yo.current.register(["polarArea","polarLine","polarScatter"],[_,m],[os]),Yo.current.register(["radarArea","radarColumn","radarLine"],[v],[os]),Yo.current.register(["funnel"],[v],["category",os,"visibleInLegend","visible"]),Jr.current.register([ti,ei,oi,ri,"area","verticalArea","waterfall","horizontalWaterfall"],{value:rs,color:is,noteText:is,errorLow:"min",errorHigh:rs}),Jr.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],{from:"min",to:rs,color:is,noteText:is}),Jr.current.register(["radarArea","radarColumn","radarLine"],{value:rs,color:is}),Yo.current.register(["scatter","scatterLine","bubble"],[_,m],[os,"noteText","xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Yo.current.register(["bubble"],[_,m,"size"],[os,"category","noteText"]),Yo.current.register(["heatmap"],[_,m,v],[os,"noteText"]),Yo.current.register(["candlestick","ohlc"],["open","high","low","close"],["category",os,"downColor","noteText"]),Jr.current.register(["candlestick","ohlc"],{open:rs,high:rs,low:"min",close:rs,color:is,downColor:is,noteText:is}),Yo.current.register(["boxPlot","verticalBoxPlot"],["lower","q1","median","q3","upper","mean","outliers"],["category",os,"noteText"]),Jr.current.register(["boxPlot","verticalBoxPlot"],{lower:rs,q1:rs,median:rs,q3:rs,upper:rs,mean:rs,outliers:is,color:is,noteText:is}),Yo.current.register(["bullet","verticalBullet"],["current","target"],["category",os,"visibleInLegend","noteText"]),Jr.current.register(["bullet","verticalBullet"],{current:rs,target:rs,color:is,noteText:is}),Yo.current.register([ii,"donut"],[v],["category",os,"explode","visibleInLegend","visible"]);var ns=["category",v,_,m],as=function(t){function e(e,o,i,r){var n=this;void 0===r&&(r={}),t.call(this),this.observers=[],this.addObserver(r.observer),this.chartService=new ke(this,r),this.chartService.theme=i,this._initElement(e);var a=M({},this.options,o);this._originalOptions=M({},a),this._theme=i,this._initTheme(a,i),this._initHandlers(),this._initSurface(),this.bindCategories(),bt.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){x(t,"k-chart")},e.prototype._initTheme=function(t,e){for(var o=[],i=t.series||[],r=0;r<i.length;r++)o.push(Object.assign({},i[r]));t.series=o,function(t){for(var e=ns,o=0;o<e.length;o++){var i=e[o]+"Axes";t[i]&&(t[e[o]+"Axis"]=t[i],delete t[i])}}(t),this.applyDefaults(t,e),null===t.seriesColors&&delete t.seriesColors,this.options=M({},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,i=e.width>0||e.height>0;t||i&&(!o||e.width!==o.width||e.height!==o.height)?(this._size=e,this._resize(e,t),this.trigger("resize",e)):i&&this._selections&&St(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 Vo(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 No(e[o])},e.prototype.findPaneByIndex=function(t){var e=this._plotArea.panes;if(e[t])return new No(e[t])},e.prototype.plotArea=function(){return new Fo(this._plotArea)},e.prototype.toggleHighlight=function(t,e){var o,i,r,n=this._plotArea,a=(n.srcSeries||n.series||[])[0];j(e)?o=n.filterPoints(e):(D(e)?(i=e.series,r=e.category):i=r=e,o="donut"===a.type?ss(n.pointsBySeriesName(i),r):a.type===ii||"funnel"===a.type?ss((n.charts[0]||{}).points,r):n.pointsBySeriesName(i));o&&this.togglePointsHighlight(t,o)},e.prototype.togglePointsHighlight=function(t,e){for(var o=this._highlight,i=0;i<e.length;i++)o.togglePointHighlight(e[i],t)},e.prototype.showTooltip=function(t){var e,o,i=this._sharedTooltip(),r=this._tooltip,n=this._plotArea;if(j(t)?(e=n.findPoint(t))&&i&&(o=e.categoryIx):i&&at(t)&&(o=n.categoryAxis.categoryIndex(t)),i){if(o>=0){var a=this._plotArea.pointsByCategoryIndex(o);r.showAt(a)}}else e&&r.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&&ct(e,{width:o.width}),o.height&&ct(e,{height:o.height}),t&&t.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=w.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 kn,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),hs(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,i=M({},t.options,{chartArea:{width:t.width,height:t.height}});us(this._originalOptions,i),this.options=M({},this._originalOptions,i),this._initTheme(this.options,this._theme),this.bindCategories();var r=this._getModel();r.renderVisual(),hs(r._plotArea.panes),e=r.visual,this.options=o}else e=this.surface.exportVisual();return e},e.prototype._sharedTooltip=function(){return this._plotArea instanceof wn&&this.options.tooltip&&this.options.tooltip.shared},e.prototype._createPannable=function(){var t=this.options;!1!==t.pannable&&(this._pannable=new jn(this._plotArea,t.pannable))},e.prototype._createZoomSelection=function(){var t=this.options.zoomable,e=(t||{}).selection;!1!==t&&!1!==e&&(this._zoomSelection=new Mn(this,e))},e.prototype._createMousewheelZoom=function(){var t=this.options.zoomable,e=(t||{}).mousewheel;!1!==t&&!1!==e&&(this._mousewheelZoom=new Dn(this,e))},e.prototype._toggleDragZoomEvents=function(){var t=this.options.pannable,e=this.options.zoomable,o=(e||{}).selection,i=(e||{}).mousewheel,r=!(t||!1!==e&&!1!==o||this.requiresHandlers(["dragStart","drag","dragEnd"])),n=(!1===e||!1===i)&&!this.requiresHandlers(["zoomStart","zoom","zoomEnd"]),a=this.element;this._dragZoomEnabled&&r&&n?(a.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):this._dragZoomEnabled||r&&n||(a.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!r,!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 Un(this.chartService,t)},e.prototype._createSharedTooltip=function(t){return new Xn(this._plotArea,t)},e.prototype.applyDefaults=function(t,e){!function(t,e){var o,i,r,n=(e||{}).axisDefaults||{};function a(t){var e=(t||{}).color||i.color,r=M({},n,n[o],i,i[o],{line:{color:e},labels:{color:e},title:{color:e}},t);return delete r[o],r}for(var s=0;s<ns.length;s++)o=ns[s]+"Axis",i=t.axisDefaults||{},r=(r=[].concat(t[o])).map(a),t[o]=r.length>1?r:r[0]}(t,e),function(t,e){var o=t.series,i=o.length,r=t.seriesDefaults,n=M({},t.seriesDefaults),a=e?M({},e.seriesDefaults):{},s=M({},a);ps(n),ps(s);for(var p=0;p<i;p++){var c=o[p].type||t.seriesDefaults.type,l=M({data:[]},s,a[c],{tooltip:t.tooltip},n,r[c]);o[p]._defaults=l,o[p]=M({},l,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||[],i=0;i<e.length;i++){var r=e[i],n=o[i%o.length],a=r._defaults;r.color=r.color||n,a&&(a.color=a.color||n)}},e.prototype._getModel=function(){var t=this.options,e=this._createPlotArea(),o=new te(this._modelOptions());return o.chart=this,o._plotArea=e,le.buildTitle(t.title,o),t.legend&&t.legend.visible&&o.append(new Ln(e.options.legend,this.chartService)),o.append(e),o.reflow(),o},e.prototype._modelOptions=function(){var t=this.options,e=this.getSize();return M({transitions:t.transitions,width:e.width||600,height:e.height||400},t.chartArea)},e.prototype._createPlotArea=function(t){var e=this.options;return zn.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 i=t[o],r=i.options;if(i instanceof to&&r.select&&!r.vertical){var n=i.range(),a=new Hn(this,i,M({min:n.min,max:n.max},r.select));e.push(a)}}},e.prototype._selectStart=function(t){return this.trigger("selectStart",t)},e.prototype._select=function(t){return this.trigger("select",t)},e.prototype._selectEnd=function(t){return this.trigger("selectEnd",t)},e.prototype._initHandlers=function(){this._clickHandler=this._click.bind(this),this._mousewheelHandler=this._mousewheel.bind(this),this._mouseleaveHandler=this._mouseleave.bind(this),this._surfaceMouseenterHandler=this._mouseover.bind(this),this._surfaceMouseleaveHandler=this._mouseout.bind(this),this._mousemove=Object(w.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={}),"showTooltip"===t&&(e.anchor.point=this._toDocumentCoordinates(e.anchor.point)),e.sender=this;for(var o=this.observers,i=!1,r=0;r<o.length;r++)o[r].trigger(t,e)&&(i=!0);return i},e.prototype._attachEvents=function(){var t,e,o=this.element;this._touchAction=o.style.touchAction,nt(o,((t={}).contextmenu=this._clickHandler,t[ai]=this._mousewheelHandler,t.mouseleave=this._mouseleaveHandler,t)),this._shouldAttachMouseMove()&&nt(o,((e={}).mousemove=this._mousemove,e)),this.domEvents=Oe.create(this.element,{start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)}),this._toggleDragZoomEvents()},e.prototype._mouseleave=function(t){this._hoveredPoint&&(this._hoveredPoint.out(this,t),this._hoveredPoint=null),this._plotArea.hovered&&(this.trigger("plotAreaLeave"),this._plotArea.hovered=!1)},e.prototype._cancelDomEvents=function(){this.domEvents&&this.domEvents.cancel&&this.domEvents.cancel()},e.prototype._gesturestart=function(t){this._mousewheelZoom&&!this._stopChartHandlers(t)&&(this._gestureDistance=t.distance,this._unsetActivePoint(),this.surface.suspendTracking())},e.prototype._gestureend=function(t){this._zooming&&!this._stopChartHandlers(t)&&(this.surface&&this.surface.resumeTracking(),this._zooming=!1,this.trigger("zoomEnd",{}))},e.prototype._gesturechange=function(t){var e=this._mousewheelZoom;if(e&&!this._stopChartHandlers(t)){t.preventDefault();var o=this._gestureDistance,i=-t.distance/o+1;if(Math.abs(i)>=.1){i=Math.round(10*i),this._gestureDistance=t.distance;var r={delta:i,axisRanges:cs(this._plotArea.axes),originalEvent:t};if(this._zooming||!this.trigger("zoomStart",r)){var n=this._eventCoordinates(t);this._zooming||(this._zooming=!0),(r.axisRanges=e.updateRanges(i,n))&&!this.trigger("zoom",r)&&e.zoom()}}}},e.prototype._mouseout=function(t){if(t.element){var e=this._drawingChartElement(t.element,t);e&&e.leave&&e.leave(this,t.originalEvent)}},e.prototype._start=function(t){var e=this._eventCoordinates(t);!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(e)&&(this.requiresHandlers(["dragStart","drag","dragEnd"])&&this._startNavigation(t,e,"dragStart"),this._pannable&&this._pannable.start(t)&&(this.surface.suspendTracking(),this._unsetActivePoint(),this._suppressHover=!0,this.chartService.panning=!0),this._zoomSelection&&this._zoomSelection.start(t)&&this.trigger("zoomStart",{axisRanges:cs(this._plotArea.axes),originalEvent:t}))},e.prototype._move=function(t){var e=this._navState,o=this._pannable;if(!this._stopChartHandlers(t)){if(o){var i=o.move(t);i&&!this.trigger("drag",{axisRanges:i,originalEvent:t})&&o.pan()}else if(e){for(var r={},n=e.axes,a=0;a<n.length;a++){var s=n[a];if(s.options.name){var p=s.options.vertical?t.y:t.x,c=p.startLocation-p.location;0!==c&&(r[s.options.name]=s.translateRange(c))}}e.axisRanges=r,this.trigger("drag",{axisRanges:r,originalEvent:t})}this._zoomSelection&&this._zoomSelection.move(t)}},e.prototype._end=function(t){if(!this._stopChartHandlers(t)){var e=this._pannable;if(e&&e.end(t)?(this.surface.resumeTracking(),this.trigger("dragEnd",{axisRanges:cs(this._plotArea.axes),originalEvent:t}),this._suppressHover=!1,this.chartService.panning=!1):this._endNavigation(t,"dragEnd"),this._zoomSelection){var o=this._zoomSelection.end(t);o&&!this.trigger("zoom",{axisRanges:o,originalEvent:t})&&(this._zoomSelection.zoom(),this.trigger("zoomEnd",{axisRanges:o,originalEvent:t}))}}},e.prototype._stopChartHandlers=function(t){var e=this._selections||[];if(!e.length)return!1;var o=this._eventCoordinates(t),i=this._plotArea.paneByPoint(o);if(i)for(var r=0;r<e.length;r++)if(e[r].onPane(i))return!0},e.prototype._mousewheelZoomRate=function(){var t=(this.options.zoomable||{}).mousewheel||{};return _t(t.rate,.3)},e.prototype._mousewheel=function(t){var e=this,o=ot(t),i=this._mousewheelZoom,r=this._eventCoordinates(t);if(!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(r))if(i){var n={delta:o,axisRanges:cs(this._plotArea.axes),originalEvent:t};!this._zooming&&this.trigger("zoomStart",n)||(t.preventDefault(),this._zooming||(this._unsetActivePoint(),this.surface.suspendTracking(),this._zooming=!0),this._mwTimeout&&clearTimeout(this._mwTimeout),n.axisRanges=i.updateRanges(o,r),n.axisRanges&&!this.trigger("zoom",n)&&i.zoom(),this._mwTimeout=setTimeout((function(){e.trigger("zoomEnd",n),e._zooming=!1,e.surface&&e.surface.resumeTracking()}),150))}else{var a=this._navState;if(!a)this._startNavigation(t,r,"zoomStart")||(a=this._navState);if(a){var s=a.totalDelta||o;a.totalDelta=s+o;for(var p=this._navState.axes,c={},l=0;l<p.length;l++){var u=p[l],h=u.options.name;h&&(c[h]=u.scaleRange(-s*e._mousewheelZoomRate(),r))}this.trigger("zoom",{delta:o,axisRanges:c,originalEvent:t}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._endNavigation(t,"zoomEnd")}),150)}}},e.prototype._startNavigation=function(t,e,o){var i=this._model._plotArea,r=i.findPointPane(e),n=i.axes.slice(0);if(r){var a=cs(n);this.trigger(o,{axisRanges:a,originalEvent:t})?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:a,pane:r,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 i,r=t;r&&!i;)i=r.chartElement,r=r.parent;if(i)return i.aliasFor&&(i=i.aliasFor(e,this._eventCoordinates(e))),o&&(i=i.closest(o))&&i.aliasFor&&(i=i.aliasFor()),i},e.prototype._eventCoordinates=function(t){var e=ut(t);return this._toModelCoordinates(e.x,e.y)},e.prototype._elementPadding=function(){if(!this._padding){var t=L(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=pt(this.element);return{left:vt(t.x+e.left+o.left),top:vt(t.y+e.top+o.top)}},e.prototype._toModelCoordinates=function(t,e){var o=this.element,i=pt(o),r=this._elementPadding(),n=It(o).invert(),a=new w.geometry.Point(t-i.left-r.left,e-i.top-r.top).transform(n);return new Lt(a.x,a.y)},e.prototype._tap=function(t){var e=this,o=this.surface.eventTarget(t),i=this._drawingChartElement(o,t),r=this._sharedTooltip();this._startHover(o,t)||r||this._unsetActivePoint(),r&&this._trackSharedTooltip(this._eventCoordinates(t),t,!0),this._propagateClick(i,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 qr)})),i=this._activePoint,r=this._plotArea.series.length>1,n=this._hasInactiveOpacity();return this._updateHoveredPoint(o,e),o&&i!==o&&o.hover?(this._activePoint=o,this._sharedTooltip()||o.hover(this,e)||(this._displayTooltip(o),n?this._displayInactiveOpacity(o,r):this._highlight.show(o))):!o&&n&&(r&&this._activeChartInstance&&(this._updateSeriesOpacity(o,!0),this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._activeChartInstance=null),this._highlight&&this._highlight.hide(),this._activePoint=null),o},e.prototype._displayTooltip=function(t){M({},this.options.tooltip,t.options.tooltip).visible&&this._tooltip.show(t)},e.prototype._displayInactiveOpacity=function(t,e,o){var i=this._activeChartInstance=this._chartInstanceFromPoint(t);if(i)if(e)this._updateSeriesOpacity(t),this._applySeriesOpacity(i.children,null,!0),this._applySeriesOpacity(i.children,t.series),this._highlight.show(o||t);else{var r;if(!i.supportsPointInactiveOpacity())return void this._highlight.show(t);(r=this._getInactivePoints(t,i))&&r.length&&this._highlight.show(r,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=[],i=0;i<t.children.length;i++){var r=t.children[i];r.constructor===e?o.push(r):r.children&&r.children.length&&(o=o.concat(this._getAllPointsOfType(r,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._updateSeriesOpacity=function(t,e){for(var o=this._plotArea,i=o.series.length,r=0;r<i;r++){var n=o.series[r],a=this._getDefaultOpacityForSeries(n),s=this._getInactiveOpacityForSeries(n);e||n===t.series?(n.opacity=a,n.line&&(n.line.opacity=a)):(n.defaultOpacity=a,n.opacity=s,n.line&&(n.line.opacity=s))}},e.prototype._applySeriesOpacity=function(t,e,o,i){for(var r=0;r<t.length;r++){var n=t[r],a=n.series||i;if(a&&(a.highlight||{}).visible&&n.visual){var s=i?i.opacity:n.series.opacity;(a!==e||o)&&n.visual.opacity(o?1:s)}n.children&&n.children.length&&this._applySeriesOpacity(n.children,e,o,n.series)}},e.prototype._chartInstanceFromPoint=function(t){for(var e=t.parent;e&&!e.plotArea;)e=e.parent;return e},e.prototype._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),nt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)))},e.prototype._mouseMoveTracking=function(t){var e,o=this.options,i=this._tooltip,r=this._highlight,n=this._activePoint,a=this._eventCoordinates(t);if(this._plotArea.box.containsPoint(a)){if(n&&n.tooltipTracking&&n.series&&n.parent.getNearestPoint){var s=n.parent.getNearestPoint(a.x,a.y,n.seriesIx);if(s&&s!==n)if(this._activePoint=s,!s.hover(this,t))M({},o.tooltip,s.options.tooltip).visible&&i.show(s),r.show(s)}}else yt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)),this._unsetActivePoint(),this._mouseMoveTrackHandler=null},e.prototype._mousemove=function(t){var e=this._eventCoordinates(t),o=this._plotArea;if(this._trackCrosshairs(e),o.hover){var i=o.backgroundContainsPoint(e);i?(o.hovered=!0,this._plotArea.hover(this,t)):o.hovered&&!i&&(this.trigger("plotAreaLeave"),o.hovered=!1)}this._sharedTooltip()&&this._trackSharedTooltip(e,t)},e.prototype._trackCrosshairs=function(t){for(var e=this._plotArea.crosshairs,o=0;o<e.length;o++){var i=e[o];i.box.containsPoint(t)?i.showAt(t):i.hide()}},e.prototype._trackSharedTooltip=function(t,e,o){if(!this._suppressHover){var i=this.options.tooltip,r=this._plotArea,n=this._plotArea.categoryAxis,a=this._tooltip,s=this._highlight;if(r.backgroundContainsPoint(t)){var p=n.pointCategoryIndex(t);if(p!==this._tooltipCategoryIx||!this._sharedHighlight&&o){var c=r.pointsByCategoryIndex(p),l=c.map((function(t){return t.eventArgs(e)})),u=l[0]||{};u.categoryPoints=l,c.length>0&&!this.trigger("seriesHover",u)?(i.visible&&a.showAt(c,t),s.show(c),this._sharedHighlight=!0):a.hide(),this._tooltipCategoryIx=p}else o&&this._sharedHighlight&&(s.hide(),a.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(s.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 i=e[o];!1!==i.autoBind&&this.bindCategoryAxisFromSeries(i,o)}},e.prototype.bindCategoryAxisFromSeries=function(t,e){for(var o,i=this.options.series,r=i.length,n=new Z,a=[],s=!1,p=0;p<r;p++){var c=i[p],l=c.categoryAxis===t.name||!c.categoryAxis&&0===e,u=c.data,h=u.length,d=c.categoryField&&l;if(s=d||s,d&&h>0)for(var g=(o=Lr(t,Wo(c.categoryField,u[0])))?Rr:Wo,f=0;f<h;f++){var v=u[f],y=g(c.categoryField,v,this.chartService.intl);!o&&n.get(y)||(a.push([y,v]),o||n.set(y,!0))}}if(a.length>0){o&&(a=function(t,e){void 0===e&&(e=He);for(var o=function(t,e){void 0===e&&(e=He);for(var o=1,i=t.length;o<i;o++)if(e(t[o],t[o-1])<0){t.sort(e);break}return t}(t,e),i=o.length,r=i>0?[o[0]]:[],n=1;n<i;n++)0!==e(o[n],ht(r))&&r.push(o[n]);return r}(a,(function(t,e){return He(t[0],e[0])})));var _=function(t){for(var e=t.length,o=[],i=0;i<e;i++)for(var r=t[i],n=r.length,a=0;a<n;a++)o[a]=o[a]||[],o[a].push(r[a]);return o}(a);t.categories=_[0]}else s&&(t.categories=[])},e.prototype._isBindable=function(t){for(var e=Yo.current.valueFields(t),o=!0,i=0;i<e.length;i++){var r=e[i];if(r===v?r="field":r+="Field",!at(t[r])){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,i=this._plotArea,r=this._highlight,n=(i.srcSeries||i.series)[t];if(o=K(n.type,[ii,"donut","funnel"])?i.findPoint((function(o){return o.series.index===t&&o.index===e})):i.pointsBySeriesIndex(t),this._hasInactiveOpacity()&&n.visible&&o){var a=i.series.length>1,s=o.length?o[0]:o;this._displayInactiveOpacity(s,a,o)}else r.show(o)},e.prototype._shouldAttachMouseMove=function(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers(["plotAreaHover","plotAreaLeave"])},e.prototype.updateMouseMoveHandler=function(){var t,e;yt(this.element,((t={}).mousemove=this._mousemove,t)),this._shouldAttachMouseMove()&&nt(this.element,((e={}).mousemove=this._mousemove,e))},e.prototype.applyOptions=function(t,e){us(this._originalOptions,t),this._originalOptions=M(this._originalOptions,t),this.options=M({},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,yt(this.element,((t={}).contextmenu=this._clickHandler,t[ai]=this._mousewheelHandler,t.mousemove=this._mousemove,t.mouseleave=this._mouseleaveHandler,t)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&yt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)),this._destroyView(),this._destroySurface(),this._clearRedrawTimeout()},e.prototype._destroySurface=function(){var t=this.surface;t&&(t.unbind("mouseenter",this._surfaceMouseenterHandler),t.unbind("mouseleave",this._surfaceMouseleaveHandler),t.destroy(),this.surface=null)},e.prototype._destroySelections=function(){var t=this._selections;if(t)for(;t.length>0;)t.shift().destroy()},e.prototype._destroyView=function(){var t=this._model;t&&(t.destroy(),this._model=null),this._unsetActivePoint(),this._destroySelections(),this._tooltip&&this._tooltip.destroy(),this._highlight&&this._highlight.destroy(),this._zoomSelection&&(this._zoomSelection.destroy(),delete this._zoomSelection),this._pannable&&(this._pannable.destroy(),delete this._pannable),this._mousewheelZoom&&(this._mousewheelZoom.destroy(),delete this._mousewheelZoom)},e}(w.Class);function ss(t,e){if(t)for(var o=0;o<t.length;o++)if(t[o].category===e)return[t[o]]}function ps(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 cs(t){for(var e={},o=0;o<t.length;o++){var i=t[o],r=i.options.name;r&&(e[r]=i.range())}return e}var ls=["data","categories"];function us(t,e){for(var o in e)if(!K(o,ls)&&e.hasOwnProperty(o)){var i=e[o],r=t[o];if(at(r)){var n=null===i;n||!at(i)?(delete t[o],n&&delete e[o]):r&&D(i)&&D(r)&&us(r,i)}}}function hs(t){for(var e=0;e<t.length;e++)t[e].notifyRender()}xt(as,{renderAs:"",chartArea:{},legend:{visible:!0,labels:{}},categoryAxis:{},seriesDefaults:{type:ei,data:[],highlight:{visible:!0},labels:{},negativeValues:{visible:!1}},series:[],seriesColors:null,tooltip:{visible:!1},transitions:!0,valueAxis:{},plotArea:{},title:{},xAxis:{},yAxis:{},panes:[{}],pannable:!1,zoomable:!1});var ds=as,gs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._slotAnchor=function(t,e){var o=this.plotArea.categoryAxis.options.vertical,i=o?{horizontal:"left",vertical:"center"}:{horizontal:"center",vertical:"bottom"};return{point:o?new Lt(this.plotArea.box.x2,e.center().y):new Lt(e.center().x,-2),align:i}},e.prototype._defaultAnchor=function(t,e){return this._slotAnchor({},e)},e}(Xn),fs=[ti,"bullet"];function vs(t){for(var e=[],o=0;o<t.length;o++){var i=t[o];e[o]=i.style.display,i.style.display="none"}return e}function ys(t,e){for(var o=0;o<t.length;o++)t[o].style.display=e[o]}function _s(t){return I(t)?[t]:t}var ms=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._setElementClass=function(t){x(t,"k-sparkline")},e.prototype._initElement=function(e){t.prototype._initElement.call(this,e),this._initialWidth=Math.floor(ct(e).width)},e.prototype._resize=function(){var e=this.element,o=vs(e.childNodes);this._initialWidth=Math.floor(ct(e).width),ys(e.childNodes,o),t.prototype._resize.call(this)},e.prototype._modelOptions=function(){var t=this.options,e=this._surfaceWrap(),o=vs(e.childNodes),i=document.createElement("span");i.innerHTML=" ",e.appendChild(i);var r=M({width:this._autoWidth,height:ct(e).height,transitions:t.transitions},t.chartArea,{inline:!0,align:!1});return ct(e,{width:r.width,height:r.height}),e.removeChild(i),ys(e.childNodes,o),this.surface&&this.surface.resize(),r},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=V(e.chartArea.margin),i=t.charts,r=this._surfaceWrap(),n=0,a=0;a<i.length;a++){var s=i[a],p=(s.options.series||[])[0];if(p){if(p.type===ti)return 150;if("bullet"===p.type)return 150;if(p.type===ii)return ct(r).height;var c=s.categoryAxis;if(c){var l=c.categoriesCount()*(!s.options.isStacked&&K(p.type,[ei,"verticalBullet"])?s.seriesOptions.length:1);n=Math.max(n,l)}}}var u=n*e.pointWidth;return u>0&&(u+=o.left+o.right),u},e.prototype._createSharedTooltip=function(t){return new gs(this._plotArea,t)},e.normalizeOptions=function(t){var e=_s(t);return(e=b(e)?{seriesDefaults:{data:e}}:M({},e)).series||(e.series=[{data:_s(e.data)}]),M(e,{seriesDefaults:{type:e.type}}),(K(e.series[0].type,fs)||K(e.seriesDefaults.type,fs))&&(e=M({},{categoryAxis:{crosshair:{visible:!1}}},e)),e},e}(ds);xt(ms,{chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5,panes:[{clip:!1}]});var bs=ms,xs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this._initialOpacity=parseFloat(L(this.element,"opacity").opacity)},e.prototype.step=function(t){L(this.element,{opacity:String(Q(this._initialOpacity,0,t))})},e.prototype.abort=function(){t.prototype.abort.call(this),L(this.element,{display:"none",opacity:String(this._initialOpacity)})},e.prototype.cancel=function(){t.prototype.abort.call(this),L(this.element,{opacity:String(this._initialOpacity)})},e}(w.drawing.Animation);function Cs(t,e){var o=document.createElement("div");return o.className=t,e&&(o.style.cssText=e),o}var Ss=function(t){function e(e,o,i){t.call(this),this.options=M({},this.options,i),this.container=e,this.chartService=o;var r=L(e,["paddingLeft","paddingTop"]);this.chartPadding={top:r.paddingTop,left:r.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=Cs("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),e=this.tooltip=Cs("k-tooltip k-chart-tooltip"),o=this.scroll=Cs("k-scroll");e.innerHTML=" ",t.appendChild(e),t.appendChild(o)},e.prototype.show=function(t,e,o){var i=this.element,r=this.options,n=this.scroll,a=this.tooltip,s=Ve(We(t)+We(e-t)/2),p=.4*o.width(),c=o.center().x-p,l=(o.center().x-c)/(r.max-r.min),u=s-r.min,h=this.chartService.intl.format(r.format,t,e),d=G(r);this.clearHideTimeout(),this._visible||(L(i,{visibility:"hidden",display:"block"}),this._visible=!0),d&&(h=d({from:t,to:e})),a.innerHTML=h,L(a,{left:o.center().x-a.offsetWidth/2,top:o.y1});var g=L(a,["marginTop","borderTopWidth","height"]);L(n,{width:p,left:c+u*l,top:o.y1+g.marginTop+g.borderTopWidth+g.height/2}),L(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 xs(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}(w.Class);xt(Ss,{format:"{0:d} - {1:d}",hideDelay:500});var ws=Ss,As="_navigator",ks=As;function Is(){}var Os=function(t){function e(e){var o;t.call(this),this.chart=e;var i=this.options=M({},this.options,e.options.navigator),r=i.select;r&&(r.from=this.parseDate(r.from),r.to=this.parseDate(r.to)),at(i.hint.visible)||(i.hint.visible=i.visible),this.chartObserver=new J(this,((o={}).drag="_drag",o.dragEnd="_dragEnd",o.zoom="_zoom",o.zoomEnd="_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 Ke(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,i=this.mainAxis(),r=i.roundedRange(),n=r.min,a=r.max,s=o.select,p=s.from,c=s.to,l=s.mousewheel,u=(t=i,Is.prototype=t,new Is);0!==i.categoriesCount()&&(this.clean(),u.box=i.box,this.selection=new Hn(e,u,{min:n,max:a,from:p||n,to:c||a,mousewheel:_t(l,{zoom:"left"}),visible:o.visible},new J(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),o.hint.visible&&(this.hint=new ws(e.element,e.chartService,{min:n,max:a,template:G(o.hint),format:o.hint.format})))},e.prototype.setRange=function(){var t=this.chart._createPlotArea(!0).namedCategoryAxes[ks].roundedRange(),e=t.min,o=t.max,i=this.options.select||{},r=i.from||e;r<e&&(r=e);var n=i.to||o;n>o&&(n=o),this.options.select=M({},i,{from:r,to:n}),this.filterAxes()},e.prototype._redrawSelf=function(t){var e=this.chart._plotArea;e&&e.redraw(ht(e.panes),t)},e.prototype.redrawSlaves=function(){var t=this.chart,e=t._plotArea,o=e.panes.slice(0,-1);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,i=this.selection,r=o._eventCoordinates(t.originalEvent),n=this.mainAxis(),a=n.roundedRange(),s=n.pane.box.containsPoint(r),p=o._plotArea.categoryAxis,c=t.axisRanges[p.options.name],l=this.options.select;if(c&&!s&&i){e=l.from&&l.to?We(l.to)-We(l.from):We(i.options.to)-We(i.options.from);var u=Ve(dt(We(c.min),a.min,We(a.max)-e)),h=Ve(dt(We(u)+e,We(a.min)+e,a.max));this.options.select={from:u,to:h},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),i.set(u,h),this.showHint(u,h)}},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,i=this.options.select;i.from=e,i.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,i=t.to,r=0;r<e.length;r++){var n=e[r];n.pane!==As&&(n.min=o,n.max=i)}},e.prototype.filter=function(){var t=this.chart,e=this.options.select;if(t.requiresHandlers(["navigatorFilter"])){var o=this.mainAxis(),i={from:e.from,to:e.to};if("category"!==o.options.type){var r=new co(M({baseUnit:"fit"},t.options.categoryAxis[0],{categories:[e.from,e.to]}),t.chartService).options;i.from=Ne(r.min,-r.baseUnitStep,r.baseUnit),i.to=Ne(r.max,r.baseUnitStep,r.baseUnit)}this.chart.trigger("navigatorFilter",i)}},e.prototype._zoom=function(t){var e=this.chart._plotArea.categoryAxis,o=this.selection,i=this.options,r=i.select,n=i.liveDrag,a=this.mainAxis(),s=t.delta;if(o){var p=a.categoryIndex(o.options.from),c=a.categoryIndex(o.options.to),l=this.chart._eventCoordinates(t.originalEvent);t.originalEvent.preventDefault(),Math.abs(s)>1&&(s*=3),c-p>1?(o.zoom(s,l),this.readSelection()):(e.options.min=r.from,r.from=e.scaleRange(-t.delta*this.chart._mousewheelZoomRate(),l).min),n&&(this.filterAxes(),this.redrawSlaves()),o.set(r.from,r.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[ks]},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 i=M({},o.navigator,t.navigator),r=t.panes=[].concat(t.panes),n=M({},i.pane,{name:As});i.visible||(n.visible=!1,n.height=.1),r.push(n),e.attachAxes(t,i),e.attachSeries(t,i,o)}},e.attachAxes=function(t,e){var o=e.series||[],i=t.categoryAxis=[].concat(t.categoryAxis),r=t.valueAxis=[].concat(t.valueAxis),n=0===Br(o,ni).length,a=M({type:"date",pane:As,roundToBaseUnit:!n,justified:n,_collapse:!1,majorTicks:{visible:!0},tooltip:{visible:!1},labels:{step:1},autoBind:e.autoBindElements,autoBaseUnitSteps:{minutes:[1],hours:[1,2],days:[1,2],weeks:[],months:[1],years:[1]}}),s=e.categoryAxis;i.push(M({},a,{maxDateGroups:200},s,{name:ks,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),M({},a,s,{name:ks+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),M({},a,s,{name:ks+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),r.push(M({name:ks,pane:As,majorGridLines:{visible:!1},visible:!1},e.valueAxis))},e.attachSeries=function(t,e,o){for(var i=t.series=t.series||[],r=[].concat(e.series||[]),n=o.seriesColors,a=e.seriesDefaults,s=0;s<r.length;s++)i.push(M({color:n[s%n.length],categoryField:e.dateField,visibleInLegend:!1,tooltip:{visible:!1}},a,r[s],{axis:ks,categoryAxis:ks,autoBind:e.autoBindElements}))},e}(w.Class),Ps=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.applyDefaults=function(e,o){var i=ct(this.element).width||600,r=o,n={seriesDefaults:{categoryField:e.dateField},axisDefaults:{categoryAxis:{name:"default",majorGridLines:{visible:!1},labels:{step:2},majorTicks:{visible:!1},maxDateGroups:Math.floor(i/28)}}};r&&(r=M({},r,n)),Os.setup(e,r),t.prototype.applyDefaults.call(this,e,r)},e.prototype._setElementClass=function(t){x(t,"k-chart k-stockchart")},e.prototype.setOptions=function(e){this.destroyNavigator(),t.prototype.setOptions.call(this,e)},e.prototype.noTransitionsRedraw=function(){var t=this.options.transitions;this.options.transitions=!1,this._fullRedraw(),this.options.transitions=t},e.prototype._resize=function(){this.noTransitionsRedraw()},e.prototype._redraw=function(){var t=this.navigator;!this._dirty()&&t&&t.options.partialRedraw?t.redrawSlaves():this._fullRedraw()},e.prototype._dirty=function(){var t=this.options,e=X([].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 Os(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===As?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 i=e[o];i.name===ks?t=i.categories:t&&i.pane===As&&(i.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),i=this._plotArea.paneByPoint(o);return t.prototype._stopChartHandlers.call(this,e)||i&&i.options.name===As},e.prototype._toggleDragZoomEvents=function(){this._dragZoomEnabled||(this.element.style.touchAction="none",this._dragZoomEnabled=!0)},e}(ds);xt(Ps,{dateField:"date",axisDefaults:{categoryAxis:{type:"date",baseUnit:"fit",justified:!0},valueAxis:{narrowRange:!0,labels:{format:"C"}}},navigator:{select:{},seriesDefaults:{markers:{visible:!1},tooltip:{visible:!0},line:{width:2}},hint:{},visible:!0},tooltip:{visible:!0},legend:{visible:!1}});var js=Ps,Ts=Math.PI/180;function Ms(t,e){var o=t.getOrigin(),i=t.getSize(),r=V(e);return t.setOrigin([o.x-r.left,o.y-r.top]),t.setSize([i.width+(r.left+r.right),i.height+(r.top+r.bottom)]),t}var Ds=w.drawing.Group,Es=w.drawing.Path,Bs=w.drawing.Text;function Rs(t,e){var o=t.box,i=t.children[0].box,r=e.border||{},n=e.background||"",a=Es.fromRect(new w.geometry.Rect([o.x1,o.y1],[o.width(),o.height()]),{stroke:{}}),s=new Bs(t.text,new w.geometry.Point(i.x1,i.y1),{font:e.font,fill:{color:e.color}}),p=Ms(s.bbox().clone(),e.padding),c=Es.fromRect(p,{stroke:{color:r.width?r.color:"",width:r.width,opacity:r.opacity,dashType:r.dashType,lineJoin:"round",lineCap:"round"},fill:{color:n}}),l=new Ds;return l.append(a),l.append(c),l.append(s),l}function Ls(t,e,o){var i=at(t.from)?t.from:d,r=at(t.to)?t.to:h;return t.from=Math.max(Math.min(r,i),e),t.to=Math.min(Math.max(r,i),o),t}function Vs(t,e){var o=V(e);return o.left=-o.left,o.top=-o.top,o.right=-o.right,o.bottom=-o.bottom,Ms(t,o)}var zs=w.drawing.Path,Ns=w.drawing.Surface,Fs=function(t){function e(e,o,i,r){void 0===r&&(r={}),t.call(this),this.element=e,this.theme=i,this.contextService=new ke(this,r),this._originalOptions=M({},this.options,o),this.options=M({},this._originalOptions),this._initTheme(i),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 i=0;i<e.length;i++)o.push(e[i].value());return o}if(b(t))for(var r=0;r<t.length;r++)I(t[r])&&e[r].value(t[r]);this._setValueOptions(t)},e.prototype._setValueOptions=function(t){for(var e=[].concat(this.options.pointer),o=[].concat(t),i=0;i<o.length;i++)e[i].value=o[i]},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 w.geometry.Rect([0,0],[t.width,t.height]);this._initSurface(),this.gaugeArea=this._createGaugeArea(),this._createModel();var o=Vs(e.bbox(),this._gaugeAreaMargin);this.reflow(o)},e.prototype.setOptions=function(t,e){this._originalOptions=M(this._originalOptions,t),this.options=M({},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=M({},e,this.options);var o=this.options,i=o.pointer;if(b(i)){for(var r=[],n=0;n<i.length;n++)r.push(M({},e.pointer,i[n]));o.pointer=r}},e.prototype._createGaugeArea=function(){var t=this.options.gaugeArea,e=this.surface.size(),o=t.border||{},i=new w.geometry.Rect([0,0],[e.width,e.height]);return this._gaugeAreaMargin=t.margin||5,o.width>0&&(i=Vs(i,o.width)),zs.fromRect(i,{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(),i=this._surfaceSize();ct(o,i),e&&e.options.type===t.renderAs?(this.surface.clear(),this.surface.resize()):(e&&e.destroy(),this.surface=Ns.create(o,{type:t.renderAs}))},e.prototype._surfaceSize=function(){var t=this.options,e=this._getSize();return t.gaugeArea&&M(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,i=t.offsetHeight;return o||(o=e.width),i||(i=e.height),{width:o,height:i}},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}(w.Class);xt(Fs,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}});var Gs=Fs,Hs=w.drawing.Path,Us=w.drawing.Group,Ws=w.geometry.Point;function Xs(t,e){var o,i,r=t.position,n=t.tickX,a=t.tickY;return t.vertical?(o=new Ws(n,r),i=new Ws(n+e.size,r)):(o=new Ws(r,a),i=new Ws(r,a+e.size)),new Hs({stroke:{color:e.color,width:e.width}}).moveTo(o).lineTo(i)}function Ys(t,e,o,i){var r=e.length;if(i.visible)for(var n=o.mirror,a=o.lineBox,s=i.skip;s<r;s+=i.step)s%i.skipUnit!=0&&(o.tickX=n?a.x2:a.x2-i.size,o.tickY=n?a.y1-i.size:a.y1,o.position=e[s],t.append(Xs(o,i)))}var qs=function(t){function e(e,o){var i=e||{};!at(i.reverse)&&!1===i.vertical&&(o||{}).rtl&&(i=Object.assign({},i,{reverse:!0})),t.call(this,0,1,i,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=M({},this.options,t);return(e=M({},e,{labels:{mirror:e.mirror}})).majorUnit=e.majorUnit||Rt(e.min,e.max),e},e.prototype.initFields=function(){},e.prototype.render=function(){var t=this.elements=new Us,e=this.renderLabels(),o=this.renderLine(),i=this.renderTicks(),r=this.renderRanges();return t.append(o,e,i,r),t},e.prototype.renderRanges=function(){for(var t=this.options,e=t.min,o=t.max,i=t.vertical,r=t.labels.mirror,n=t.ranges||[],a=new Us,s=n.length,p=t.rangeSize||t.minorTicks.size/2,c=0;c<s;c++){var l=Ls(n[c],e,o),u=this.getSlot(l.from,l.to),h=i?this.lineBox():u,d=i?u:this.lineBox();i?h.x1-=p*(r?-1:1):d.y2+=p*(r?-1:1),a.append(Hs.fromRect(new w.geometry.Rect([h.x1,d.y1],[h.x2-h.x1,d.y2-d.y1]),{fill:{color:l.color,opacity:l.opacity},stroke:{}}))}return a},e.prototype.renderLabels=function(){for(var t=this.labels,e=this.options,o=new Us,i=0;i<t.length;i++)o.append(Rs(t[i],e.labels));return o},e.prototype.renderLine=function(){var t=this.options.line,e=this.lineBox(),o=new Us;if(t.width>0&&t.visible){var i=new Hs({stroke:{color:t.color,dashType:t.dashType,width:t.width}});i.moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),o.append(i)}return o},e.prototype.renderTicks=function(){var t=new Us,e=this.options,o=e.majorTicks.visible?e.majorUnit:0,i={vertical:e.vertical,mirror:e.labels.mirror,lineBox:this.lineBox()};return Ys(t,this.getMajorTickPositions(),i,e.majorTicks),Ys(t,this.getMinorTickPositions(),i,M({},{skipUnit:o/e.minorUnit},e.minorTicks)),t},e}(yo);xt(qs,{min:0,max:50,majorTicks:{size:15,align:"inside",color:n,width:.5,visible:!0},minorTicks:{size:10,align:"inside",color:n,width:.5,visible:!0},line:{width:.5},labels:{position:"inside",padding:2},mirror:!1,_alignLines:!1});var Zs=qs,Ks=function(t){function e(e,o){t.call(this);var i=e.options,r=i.min,n=i.max,a=this.options=M({},this.options,o);a.fill=a.color,this.scale=e,at(a.value)?a.value=dt(a.value,r,n):a.value=r}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 i=this.scale.options,r=i.min,n=i.max;e._oldValue=at(e._oldValue)?e.value:r,e.value=dt(t,r,n),this.elements&&this.repaint()},e}(w.Class);xt(Ks,{color:n});var Qs=Ks,$s=function(t){function e(e,o){t.call(this,e,o),this.options=M({track:{visible:at(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,i=this.options,r=this.scale,n=r.options,a=n.mirror,s=n.vertical,p=r.lineBox(),c=i.track.size||i.size,l=i.size/2,u=V(i.margin),h=s?u[a?"left":"right"]:u[a?"bottom":"top"];h=a?-h:h,s?(o=new zt(p.x1+h,p.y1,p.x1+h,p.y2),a?o.x1-=c:o.x2+=c,"barPointer"!==i.shape&&(t=e=new zt(p.x2+h,p.y1-l,p.x2+h,p.y2+l))):(o=new zt(p.x1,p.y1-h,p.x2,p.y1-h),a?o.y2+=c:o.y1-=c,"barPointer"!==i.shape&&(t=e=new zt(p.x1-l,p.y1-h,p.x2+l,p.y1-h))),this.trackBox=o,this.pointerRangeBox=e,this.box=t||o.clone().pad(i.border.width)},e.prototype.getElementOptions=function(){var t=this.options;return{fill:{color:t.color,opacity:t.opacity},stroke:at(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,i=o.mirror,r=o.vertical,n=V(e.margin);return r?n[i?"left":"right"]:n[i?"bottom":"top"]},e}(Qs);xt($s,{shape:"barPointer",track:{border:{width:1}},color:n,border:{width:1},opacity:1,margin:V(3),animation:{type:"barPointer"},visible:!0});var Js=$s,tp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.options,e=t.margin,o=t.from,i=t.to,r=t.vertical,n=r?"x1":"y1";t.mirror===r?(o[n]-=e,i[n]-=e):(o[n]+=e,i[n]+=e);var a=this.fromScale=new w.geometry.Point(o.x1,o.y1),s=this.toScale=new w.geometry.Point(i.x1,i.y1);0!==t.duration&&(t.duration=Math.max(a.distanceTo(s)/t.duration*1e3,1))},e.prototype.step=function(t){var e=Q(this.fromScale.x,this.toScale.x,t),o=Q(this.fromScale.y,this.toScale.y,t);this.element.transform(w.geometry.transform().translate(e,o))},e}(w.drawing.Animation);xt(tp,{easing:"linear",duration:250}),w.drawing.AnimationFactory.current.register("arrowPointer",tp);var ep=tp,op=w.geometry.Point,ip=w.drawing.Path,rp=function(t){function e(e,o){t.call(this,e,o),at(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,i=t.options.mirror?-1:1;return t.options.vertical?[new op(0,0-o),new op(0-i*e,0),new op(0,0+o)]:[new op(0-o,0),new op(0,0+i*e),new op(0+o,0)]},e.prototype.repaint=function(){var t=this.scale,e=this.options,o=new ep(this.elements,M(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(),i=this.pointerShape(e.value);e.animation.type="arrowPointer";var r=new ip({stroke:o.stroke,fill:o.fill}).moveTo(i[0]).lineTo(i[1]).lineTo(i[2]).close(),n=t.getSlot(e.value);return r.transform(w.geometry.transform().translate(n.x1,n.y1)),this.elements=r,r},e}(Js),np=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.options,e=this.axis=t.vertical?m:_,o=this.to=t.newPoints[0][e],i=this.from=t.oldPoints[0][e];0!==t.duration&&(t.duration=Math.max(Math.abs(o-i)/t.speed*1e3,1)),this._set(i)},e.prototype.step=function(t){var e=Q(this.from,this.to,t);this._set(e)},e.prototype._set=function(t){var e="set"+this.axis.toUpperCase(),o=this.options.newPoints;o[0][e](t),o[1][e](t)},e}(w.drawing.Animation);xt(np,{easing:"linear",speed:250}),w.drawing.AnimationFactory.current.register("barPointer",np);var ap=np,sp=w.drawing.Group,pp=w.drawing.Path,cp=function(t){function e(e,o){t.call(this,e,o),at(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,i=e.options,r=i.mirror,n=i.vertical,a=r===n?-1:1,s=o.size*a,p=e.getSlot(e.options.min),c=e.getSlot(t),l=n?m:_,u=n?_:m,h=this._margin()*a,d=new w.geometry.Point;d[l]=p[l+"1"],d[u]=p[u+"1"];var g=new w.geometry.Point;g[l]=c[l+"1"],g[u]=c[u+"1"],n?(d.translate(h,0),g.translate(h,0)):(d.translate(0,h),g.translate(0,h));var f=g.clone(),v=d.clone();return n?(f.translate(s,0),v.translate(s,0)):(f.translate(0,s),v.translate(0,s)),[d,g,f,v]},e.prototype.repaint=function(){var t=this.scale,e=this.options,o=this.pointerShape(e.value),i=this.pointerPath,r=this.pointerShape(e._oldValue);i.moveTo(o[0]).lineTo(o[1]).lineTo(o[2]).lineTo(o[3]).close();var n=new ap(i,M(e.animation,{reverse:t.options.reverse,vertical:t.options.vertical,oldPoints:[r[1],r[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 sp,e=this.getElementOptions();this.options.track.visible&&t.append(this.renderTrack());var o=this.pointerPath=new pp({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 pp.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}(Js),lp=w.drawing.Group,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.reflow=function(t){var e=this.pointers,o=t.origin.x,i=t.origin.y,r=new zt(o,i,o+t.width(),i+t.height());this.scale.reflow(r),this._shrinkScaleWidth(r);for(var n=0;n<e.length;n++)e[n].reflow();this.bbox=this._getBox(r),this._alignElements(),this._shrinkElements(),this._buildVisual(),this._draw()},e.prototype._buildVisual=function(){var t=new lp,e=this.scale.render(),o=this.pointers;t.append(this.gaugeArea),t.append(e);for(var i=0;i<o.length;i++){var r=o[i];t.append(r.render()),r.value(r.options.value)}this._visuals=t},e.prototype._createModel=function(){var t=this.options,e=this.scale=new Zs(t.scale,this.contextService);this.pointers=[];var o=t.pointer;o=b(o)?o:[o];for(var i=0;i<o.length;i++){var r=M({},o[i],{animation:{transitions:t.transitions}}),n="arrow"===r.shape?rp:cp;this.pointers.push(new n(e,r))}},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,i=this.pointers,r=t.center(),n=i[0].box.clone().wrap(o.box),a=0;a<i.length;a++)n.wrap(i[a].box.clone());return o.options.vertical?(e=n.width()/2,n=new zt(r.x-e,t.y1,r.x+e,t.y2)):(e=n.height()/2,n=new zt(t.x1,r.y-e,t.x2,r.y+e)),n},e.prototype._alignElements=function(){for(var t,e=this.scale,o=this.pointers,i=e.box,r=o[0].box.clone().wrap(e.box),n=this.bbox,a=0;a<o.length;a++)r.wrap(o[a].box.clone());e.options.vertical?(t=n.center().x-r.center().x,e.reflow(new zt(i.x1+t,n.y1,i.x2+t,n.y2))):(t=n.center().y-r.center().y,e.reflow(new zt(i.x1,i.y1+t,i.x2,i.y2+t)));for(var s=0;s<o.length;s++)o[s].reflow(this.bbox)},e.prototype._shrinkScaleWidth=function(t){var e=this.scale;if(!e.options.vertical){var o=e.contentBox().width()-t.width();o>0&&(e.box.shrink(o,0),e.box.alignTo(t,"center"),e.reflow(e.box))}},e.prototype._shrinkElements=function(){for(var t=this.scale,e=this.pointers,o=t.box.clone(),i=t.options.vertical?"y":"x",r=e[0].box,n=0;n<e.length;n++)r.wrap(e[n].box.clone());o[i+1]+=Math.max(o[i+1]-r[i+1],0),o[i+2]-=Math.max(r[i+2]-o[i+2],0),t.reflow(o);for(var a=0;a<e.length;a++)e[a].reflow(this.bbox)},e}(Gs);xt(up,{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}});var hp=up,dp=w.drawing.Arc,gp=w.drawing.Path,fp=w.drawing.Group;function vp(t,e,o,i){var r=new fp,n=t.center,a=t.getRadiusX();if(i.visible)for(var s=0;s<e.length;s++){var p=t.pointAt(e[s]),c=new w.geometry.Point(n.x+a-i.size,n.y).rotate(e[s],n);r.append(new gp({stroke:{color:i.color,width:i.width}}).moveTo(p).lineTo(c))}return r}function yp(t,e,o,i){return{from:t,to:e,color:o,opacity:i}}var _p=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=M({},this.options,t);return e.majorUnit=e.majorUnit||Rt(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(!at(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,i=e.max,r=e.reverse,n=e.startAngle,a=e.endAngle,s=a-n;return(r?a-(t-o)/(i-o)*s:(t-o)/(i-o)*s+n)+180},e.prototype.hasRanges=function(){var t=this.options.ranges;return t&&t.length},e.prototype.ticksSize=function(){var t=this.options,e=t.majorTicks,o=t.minorTicks,i=0;return e.visible&&(i=e.size),o.visible&&(i=Math.max(o.size,i)),i},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.options,e=this.arc.clone(),o=e.getRadiusX(),i=this.tickAngles(e,t.majorUnit),r=t.rangeSize=t.rangeSize||.1*o,n=new fp,a=.05*o;at(t.rangeDistance)?a=t.rangeDistance:t.rangeDistance=a;var s=t.labels,p="inside"===s.position,c=at(this.labelElements);p&&(o-=this.ticksSize(),this.hasRanges()&&!c&&(o-=r+a),e.setRadiusX(o).setRadiusY(o));for(var l=this.labels,u=l.length,h=V(s.padding),d=(h.left+h.right)/2,g=(h.top+h.bottom)/2,f=0;f<u;f++){var v=l[f],y=v.box.width()/2,_=v.box.height()/2,m=i[f],b=(m-180)*Ts,x=e.pointAt(m),C=x.x+Math.cos(b)*(y+d)*(p?1:-1),S=x.y+Math.sin(b)*(_+g)*(p?1:-1);v.reflow(new zt(C-y,S-_,C+y,S+_));var A=new w.geometry.Point(v.box.x1,v.box.y1),k=void 0;if(c){var I=(k=this.labelElements.children[f]).bbox().origin,O=k.transform()||w.geometry.transform();O.translate(A.x-I.x,A.y-I.y),k.transform(O)}else k=Rs(v,t.labels),n.append(k);this.bbox=w.geometry.Rect.union(this.bbox,k.bbox())}return n},e.prototype.repositionRanges=function(){var t=this.ranges.children;if(t.length>0){var e=this.options,o=e.rangeDistance,i=e.rangeSize,r=this.getRangeRadius();"inside"===this.options.labels.position&&(r+=i+o);for(var n=r+i/2,a=0;a<t.length;a++)t[a]._geometry.setRadiusX(n).setRadiusY(n);this.bbox=w.geometry.Rect.union(this.bbox,this.ranges.bbox())}},e.prototype.renderRanges=function(){var t=this.rangeSegments(),e=t.length,o=new fp;if(e){var i=this.options,r=i.rangeSize,n=i.reverse,a=i.rangeDistance,s=this.getRangeRadius();this.radius(this.radius()-r-a);for(var p=0;p<e;p++){var c=t[p],l=this.slotAngle(c[n?"to":"from"]),u=this.slotAngle(c[n?"from":"to"]);u-l!=0&&o.append(this.createRange(l,u,s,c))}}return o},e.prototype.createRange=function(t,e,o,i){var r=this.options.rangeSize,n=new w.geometry.Arc(this.arc.center,{radiusX:o+r/2,radiusY:o+r/2,startAngle:t,endAngle:e});return new dp(n,{stroke:{width:r,color:i.color,opacity:i.opacity,lineCap:i.lineCap}})},e.prototype.rangeSegments=function(){var t=this.options,e=t.ranges||[],o=e.length,i=[];if(o){var r=t.min,n=t.max,a=t.rangePlaceholderColor;i.push(yp(r,n,a));for(var s=0;s<o;s++)for(var p=Ls(e[s],r,n),c=i.length,l=0;l<c;l++){var u=i[l];if(u.from<=p.from&&p.from<=u.to){i.push(yp(p.from,p.to,p.color,p.opacity)),u.from<=p.to&&p.to<=u.to&&i.push(yp(p.to,u.to,a,p.opacity)),u.to=p.from;break}}}return i},e.prototype.getRangeRadius=function(){var t=this.arc,e=this.options,o=e.rangeSize,i=e.rangeDistance,r=e.majorTicks.size;return"outside"===e.labels.position?t.getRadiusX()-r-i-o:t.getRadiusX()-o},e.prototype.renderArc=function(t,e){var o=this.options;return this.arc=new w.geometry.Arc(t,{radiusX:e,radiusY:e,startAngle:o.startAngle+180,endAngle:o.endAngle+180})},e.prototype.renderTicks=function(){var t=this.arc,e=this.options,o=t.clone();this.majorTickAngles=this.tickAngles(t,e.majorUnit),this.majorTicks=vp(o,this.majorTickAngles,e.majorUnit,e.majorTicks);var i=new fp;i.append(this.majorTicks);var r=e.majorTicks.size,n=e.minorTicks.size;if(this._tickDifference=r-n,"outside"===e.labels.position){var a=o.getRadiusX();o.setRadiusX(a-r+n).setRadiusY(a-r+n)}return this.minorTickAngles=this.normalizeTickAngles(this.tickAngles(t,e.minorUnit)),this.minorTicks=vp(o,this.minorTickAngles,e.minorUnit,e.minorTicks),i.append(this.minorTicks),i},e.prototype.normalizeTickAngles=function(t){for(var e=this.options,o=e.majorUnit/e.minorUnit,i=t.length-1;i>=0;i--)i%o==0&&t.splice(i,1);return t},e.prototype.tickAngles=function(t,e){var o=this.options,i=o.reverse,r=o.max-o.min,n=t.endAngle-t.startAngle,a=r/e,s=t.startAngle,p=n/a;i&&(s+=n,p=-p),n>=360&&o.max%e==0&&(a-=1);for(var c=[],l=0;l<a;l++)c.push(vt(s,3)),s+=p;return vt(s)<=t.endAngle&&c.push(s),c},e.prototype.radius=function(t){if(!t)return this.arc.getRadiusX();this.arc.setRadiusX(t).setRadiusY(t),this.repositionTicks(this.majorTicks.children,this.majorTickAngles),this.repositionTicks(this.minorTicks.children,this.minorTickAngles,!0)},e.prototype.repositionTicks=function(t,e,o){var i=o&&this._tickDifference||0,r=this.arc,n=r.getRadiusX();o&&"outside"===this.options.labels.position&&0!==i&&(r=this.arc.clone()).setRadiusX(n-i).setRadiusY(n-i);for(var a=0;a<t.length;a++){var s=r.pointAt(e[a]),p=t[a].segments,c=s.x-p[0].anchor().x,l=s.y-p[0].anchor().y;t[a].transform((new w.geometry.transform).translate(c,l))}},e}(yo);xt(_p,{min:0,max:100,majorTicks:{size:15,align:"inside",color:n,width:.5,visible:!0},minorTicks:{size:10,align:"inside",color:n,width:.5,visible:!0},startAngle:-30,endAngle:210,labels:{position:"inside",padding:2}});var mp=_p,bp=function(t){function e(e,o){t.call(this,e,o);var i=this.options;i.duration=Math.max(Math.abs(i.newAngle-i.oldAngle)/i.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=Q(e.oldAngle,e.newAngle,t);this.element.transform(w.geometry.transform().rotate(o,e.center))},e}(w.drawing.Animation);xt(bp,{easing:"linear",duration:150}),w.drawing.AnimationFactory.current.register("radialPointer",bp);var xp=bp,Cp=w.drawing.Circle,Sp=w.drawing.Group,wp=w.drawing.Path,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.setAngle=function(t){this.elements.transform(w.geometry.transform().rotate(t,this.center))},e.prototype.repaint=function(){var t=this.scale,e=this.options,o=t.slotAngle(e._oldValue),i=t.slotAngle(e.value);!1===e.animation.transitions?this.setAngle(i):new xp(this.elements,M(e.animation,{oldAngle:o,newAngle:i})).play()},e.prototype.render=function(){var t=this.scale,e=this.options,o=new Sp;return!1!==e.animation&&M(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),o.append(this._renderNeedle(),this._renderCap()),this.elements=o,this.setAngle(Ts),o},e.prototype.reflow=function(t){var e=this.center=t.center,o=dt(this.options.length||1,.1,1.5),i=this.radius=t.getRadiusX()*o,r=this.capSize=Math.round(i*this.options.cap.size);this.bbox=w.geometry.Rect.fromPoints(new w.geometry.Point(e.x-r,e.y-r),new w.geometry.Point(e.x+r,e.y+r))},e.prototype._renderNeedle=function(){var t=this.scale.options.minorTicks.size,e=this.center,o=this.options.color,i=new wp({fill:{color:o},stroke:{color:o,width:.5}});return i.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(),i},e.prototype._renderCap=function(){var t=this.options,e=t.cap.color||t.color,o=new w.geometry.Circle(this.center,this.capSize);return new Cp(o,{fill:{color:e},stroke:{color:e}})},e}(Qs);xt(Ap,{cap:{size:.05},arrow:{width:16,height:14},animation:{type:"radialPointer",duration:150}});var kp=Ap,Ip=w.drawing.Group,Op=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.pointers;this.scale.reflow(t),this._initialPlotArea=this.scale.bbox;for(var o=0;o<e.length;o++)e[o].reflow(this.scale.arc),this._initialPlotArea=w.geometry.Rect.union(this._initialPlotArea,e[o].bbox);this.fitScale(t),this.alignScale(t),this._buildVisual(this.gaugeArea,e,this.scale),this._draw()},e.prototype._buildVisual=function(t,e,o){var i=this._visuals=new Ip;i.append(t),i.append(o.ticks),i.append(o.ranges),this._buildPointers(e),i.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,i,r,n,a=this.scale.arc,s=this._initialPlotArea,p=Math.abs(this.getDiff(s,t)),c=vt(p,3),l=vt(-p,3),u=0,h=0;!(!(h++<100)||(u=n===i?u+1:0)>5||c!==r&&0<=(e=this.getPlotBox(c,t,a))&&e<=2||l!==r&&0<=(i=this.getPlotBox(l,t,a))&&i<=2||(r=e>0&&i>0?2*c:e<0&&i<0?2*l:vt((c+l)/2||1,3),0<=(o=this.getPlotBox(r,t,a))&&o<=2));)n=i,o>0?(l=r,i=o):(c=r,e=o)},e.prototype.getPlotBox=function(t,e,o){var i=this.scale,r=this.pointers,n=o.getRadiusX(),a=o.clone();a.setRadiusX(n+t).setRadiusY(n+t),i.arc=a,i.reflow(e),this.plotBbox=i.bbox;for(var s=0;s<r.length;s++)r[s].reflow(a),this.plotBbox=w.geometry.Rect.union(this.plotBbox,r[s].bbox);return this.getDiff(this.plotBbox,e)},e.prototype.getDiff=function(t,e){return Math.min(e.width()-t.width(),e.height()-t.height())},e.prototype.alignScale=function(t){var e=this.plotBbox.center(),o=t.center(),i=e.x-o.x,r=e.y-o.y,n=this.scale,a=this.pointers;n.arc.center.x-=i,n.arc.center.y-=r,n.reflow(t);for(var s=0;s<a.length;s++)a[s].reflow(n.arc),this.plotBbox=w.geometry.Rect.union(n.bbox,a[s].bbox)},e.prototype._createModel=function(){var t=this.options,e=t.pointer,o=this.scale=new mp(t.scale,this.contextService);this.pointers=[];for(var i=b(e)?e:[e],r=0;r<i.length;r++){var n=new kp(o,M({},i[r],{animation:{transitions:t.transitions}}));this.pointers.push(n)}},e}(Gs);xt(Op,{transitions:!0,gaugeArea:{background:""}});var Pp=Op,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.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 i=this.options.reverse,r=this.slotAngle(i?e:t),n=this.slotAngle(i?t:e),a=this.createRange(r,n,this.getRangeRadius(),o);return this.ranges.append(a),a},e}(mp);xt(jp,{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"});var Tp=jp,Mp=function(t){function e(e,o){t.call(this,e,o);var i=this.options,r=Math.abs(i.newAngle-i.oldAngle)/i.duration*1e3;i.duration=dt(r,150,800);var n=e.elements.options.get("stroke.color"),a=e.currentColor();n!==a&&(this.startColor=new w.Color(n),this.color=new w.Color(a))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this.options,o=this.startColor,i=this.color,r=Q(e.oldAngle,e.newAngle,t);if(this.element.angle(r),i){var n=vt(Q(o.r,i.r,t)),a=vt(Q(o.g,i.g,t)),s=vt(Q(o.b,i.b,t));this.element.stroke(new w.Color(n,a,s).toHex())}},e}(w.drawing.Animation);xt(Mp,{easing:"linear",duration:150}),w.drawing.AnimationFactory.current.register("radialRangePointer",Mp);var Dp=Mp,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.repaint=function(){var t=this.scale,e=this.options,o=t.slotAngle(e._oldValue),i=t.slotAngle(e.value);this.animation&&this.animation.abort(),!1===e.animation.transitions?(this.angle(i),this.stroke(this.currentColor())):(this.animation=new Dp(this,M(e.animation,{oldAngle:o,newAngle:i})),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&&M(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,i=this.options,r=i.colors,n=i.color,a=i.value,s=I(a)?a:e;if(r)for(var p=0;p<r.length;p++){var c=r[p],l=c.color,u=c.from;void 0===u&&(u=e);var h=c.to;if(void 0===h&&(h=o),u<=s&&s<=h)return l}return n},e.prototype.reflow=function(){this.render(),this.bbox=this.elements.bbox()},e}(Qs);xt(Ep,{animation:{type:"radialRangePointer",duration:150}});var Bp=Ep,Rp=function(t){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 Tp(t.scale,this.contextService),o=new Bp(e,M({},{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(),i=this.scale.arc.center,r=i.x-t/2,n=i.y-e/2;if(t<o.width){var a=r+t;r=Math.max(r,0),a>o.width&&(r-=a-o.width)}if(e<o.height){var s=this.scale.bbox,p=s.bottomRight().y,c=n+e;n=Math.max(n,s.origin.y),c>p&&(n-=c-p)}return{left:r,top:n}},e}(Pp),Lp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._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}(Rp),Vp=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 i=at(t)?String(t):t;return this.initValue(i,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}(w.Class);xt(Vp,{quietZoneLength:10,addQuietZone:!0,addCheckSum:!0});var zp=Object.assign,Np=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),zp(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 i=(o+this.getWeightedSum(t,e,this.kCheckSumTotal))%this.checkSumMod;this.checksum+=i,this.addPattern(this.characterMap[i])}},e.prototype.getWeightedSum=function(t,e,o){for(var i=0,r=0;r<t.length;r++)i+=this.weightedValue(this.getValue(t.charAt(r)),e,r,o);return i},e.prototype.weightedValue=function(t,e,o,i){return((e-o)%i||i)*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}(Vp);xt(Np,{addCheckSum:!0});var Fp=Object.assign,Gp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Fp(this,{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}(Vp),Hp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Fp(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,i=Math.ceil(Math.max(.15*this.width,24)),r=this.maxRatio;if(this.height<i)throw new Error("Insufficient height for Code39 encoding: the current height is "+this.height+"px and the minimum height is "+i+"px.");for(t=this.getBaseUnit(r);t<e&&r>o;)r=parseFloat((r-.1).toFixed(1)),t=this.getBaseUnit(r);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=r,this.baseUnit=t,this.patternString=this.patternString.substring(0,this.patternString.length-1),this.pattern=this.pattern.concat(this.patternString.replace(/ratio/g,r).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}(Gp);xt(Hp,{addCheckSum:!1});var Up={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=0;o<this.extendedMappings.length;o++)if(e=this.extendedMappings[o].call(this,t)){for(var i=0;i<e.length;i++){var r=e[i];this.addBase(r)}return void(this.dataLength+=e.length-1)}},extendedMappings:[function(t){if(97<=t&&t<=122)return[this.characterMap[this.shiftCharacters[0]],this.characterMap[String.fromCharCode(t-32)]]},function(t){if(33<=t&&t<=58)return[this.characterMap[this.shiftCharacters[1]],this.characterMap[String.fromCharCode(t+32)]]},function(t){if(1<=t&&t<=26)return[this.characterMap[this.shiftCharacters[2]],this.characterMap[String.fromCharCode(t+64)]]},function(t){var e,o;if(this.specialAsciiCodes[t]){e=[];for(var i=0;i<this.specialAsciiCodes[t].length;i++)e.push(this.characterMap[this.shiftCharacters[3]]),e.push(this.characterMap[this.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"]},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.initProperties=function(){t.prototype.initProperties.call(this),M(this,Up,{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}(Hp),Xp=Object.assign,Yp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Xp(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._getCheckValues();this.checksum=e.join("");for(var o=0;o<e.length;o++)t=this.characterMap[this._findCharacterByValue(e[o])],this.addPattern(t.pattern)},e.prototype._getCheckValues=function(){var t,e,o=this.values,i=o.length,r=0;for(e=i-1;e>=0;e--)r+=this.weightedValue(o[e],i-e,this.cCheckSumTotal);for(t=r%this.checkSumMod,r=this.weightedValue(t,1,this.kCheckSumTotal),e=i-1;e>=0;e--)r+=this.weightedValue(o[e],i-e+1,this.kCheckSumTotal);return[t,r%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}(Gp),qp=function(t){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),M(this,Up,{name:"Code 93 extended",pushCheckSum:function(){var t,e=this._getCheckValues();this.checksum=e.join("");for(var o=0;o<e.length;o++)if(t=e[o],this.shiftValuesAsciiCodes[t])this.addExtended(this.shiftValuesAsciiCodes[t]);else{var i=this._findCharacterByValue(t);this.addPattern(this.characterMap[i].pattern)}}})},e}(Yp),Zp=/^\d+$/,Kp=Object.assign,Qp=function(t){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),Kp(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(Zp.test(t)||this.invalidCharacterError(t.match(/[^0-9]/)[0]),!K(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=0;o<t.length;o++)e=this.height-this.baseHeight*t.charAt(o),this.pattern.push({width:1,y1:e,y2:this.height}),this.pattern.push(1)},e}(Vp),$p=/^\d+$/,Jp=/^[a-z0-9]+$/i,tc=Object.assign,ec=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}(w.Class),oc=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),M(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,i=t.value,r=i.length;if(K("C",o)){var n=i.substr(t.index).match(/\d{4,}/g);n&&(r=i.indexOf(n[0],t.index))}for(;(e=t.value.charCodeAt(t.index))>=0&&this.isCode(e)&&t.index<r;)this.encoding.addPattern(this.getValue(e)),t.index++},e.prototype._initMoves=function(t){this._moves=[],K(this.FNC4,t)&&this._moves.push(this._moveFNC),K(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}(ec),ic={};ic.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),tc(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}(oc),ic.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),tc(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}(oc),ic.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),tc(this,{key:"C",MOVE:99,START:105})},e.prototype.addStart=function(){this.encoding.addPattern(this.START)},e.prototype.is=function(t,e){var o=lc(t,e,4);return(e+4<=t.length||2===t.length)&&$p.test(o)},e.prototype.move=function(){this.encoding.addPattern(this.MOVE)},e.prototype.pushState=function(t){for(var e;(e=lc(t.value,t.index,2))&&$p.test(e)&&2===e.length;)this.encoding.addPattern(parseInt(e,10)),t.index+=2},e.prototype.getValue=function(t){return t},e}(ec),ic.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),tc(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),i=this.encoding,r=o.value.length;if(t.index+=r,r<3)for(;o.index<r;o.index++)e=o.value.charCodeAt(o.index),o.state=this._getSubState(e),o.previousState!==o.state&&(o.previousState=o.state,i[o.state].move(o)),i.addPattern(i[o.state].MOVE),i.addPattern(i[o.state].getValue(e));else o.state!==o.previousState&&i[o.state].move(o),this._pushStart(o),i.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++)K(t[e],this.dependentStates)&&this.subStates.push(t[e])},e.prototype._getSubState=function(t){for(var e=0;e<this.subStates.length;e++)if(this.encoding[this.subStates[e]].isCode(t))return this.subStates[e]},e.prototype._getAll=function(t,e){for(var o,i="",r=e;(o=t.charCodeAt(r++))&&this.isCode(o);)i+=String.fromCharCode(o-128);return i},e}(ec),ic.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),tc(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 K(this.key,this.states)},e.prototype.pushState=function(t){var e,o,i,r=this.encoding,n=t.value.replace(/\s/g,""),a=new RegExp("["+this.startAI+this.endAI+"]","g"),s=t.index,p={state:this.startState};r.addPattern(this.START);for(;;){if(p.index=0,(e=(i=n.charAt(s)===this.startAI?2:0)>0?this.getBySeparator(n,s):this.getByLength(n,s)).ai.length)o=s+i+e.id.length+e.ai.length;else if((o=n.indexOf(this.startAI,s+1))<0){if(s+e.ai.max+e.id.length+i<n.length)throw new Error("Separators are required after variable length identifiers");o=n.length}if(p.value=n.substring(s,o).replace(a,""),this.validate(e,p.value),r.pushData(p,this.dependentStates),o>=n.length)break;s=o,p.state!==this.startState&&(r[this.startState].move(p),p.state=this.startState),e.ai.length||r.addPattern(this.START)}t.index=t.value.length},e.prototype.validate=function(t,e){var o=e.substr(t.id.length),i=t.ai;if(!i.type&&!$p.test(o))throw new Error("Application identifier "+t.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"===i.type&&!Jp.test(o))throw new Error("Application identifier "+t.id+" is alphanumeric only but contains non alphanumeric character(s).");if(i.length&&i.length!==o.length)throw new Error("Application identifier "+t.id+" must be "+i.length+" characters long.");if(i.min&&i.min>o.length)throw new Error("Application identifier "+t.id+" must be at least "+i.min+" characters long.");if(i.max&&i.max<o.length)throw new Error("Application identifier "+t.id+" must be at most "+i.max+" characters long.")},e.prototype.getByLength=function(t,e){for(var o,i,r=2;r<=4;r++)if(o=lc(t,e,r),i=this.getApplicationIdentifier(o)||this.getApplicationIdentifier(o.substring(0,o.length-1)))return{id:o,ai:i};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),i=t.indexOf(this.endAI,o),r=t.substring(o+1,i),n=this.getApplicationIdentifier(r)||this.getApplicationIdentifier(r.substr(r.length-1));return n||this.unsupportedAIError(r),{ai:n,id:r}},e.prototype.getApplicationIdentifier=function(t){var e=this.applicationIdentifiers,o=e.multiKey;if(e[t])return e[t];for(var i=0;i<o.length;i++){if(o[i].ids&&K(t,o[i].ids))return o[i].type;if(o[i].ranges)for(var r=o[i].ranges,n=0;n<r.length;n++)if(r[n][0]<=t&&t<=r[n][1])return o[i].type}},e}(ec);var rc=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),tc(this,{characterMap:[212222,222122,222221,121223,121322,131222,122213,122312,132212,221213,221312,231212,112232,122132,122231,113222,123122,123221,223211,221132,221231,213212,223112,312131,311222,321122,321221,312212,322112,322211,212123,212321,232121,111323,131123,131321,112313,132113,132311,211313,231113,231311,112133,112331,132131,113123,113321,133121,313121,211331,231131,213113,213311,213131,311123,311321,331121,312113,312311,332111,314111,221411,431111,111224,111422,121124,121421,141122,141221,112214,112412,122114,122411,142112,142211,241211,221114,413111,241112,134111,111242,121142,121241,114212,124112,124211,411212,421112,421211,212141,214121,412121,111143,111341,131141,114113,114311,411113,411311,113141,114131,311141,411131,211412,211214,211232,2331112],STOP:106})},e.prototype._initStates=function(){for(var t=0;t<this.states.length;t++)this[this.states[t]]=new ic[this.states[t]](this,this.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(;this[t.state].pushState(t),!(t.index>=t.value.length);)if(t.shifted){var o=t.state;t.state=t.previousState,t.previousState=o,t.shifted=!1}else t.previousState=t.state,t.state=this.getNextState(t,e),this[t.state].move(t)},e.prototype.addStart=function(t){this[t.state].addStart(t),this.position=1},e.prototype.addCheckSum=function(){this.checksum=this.checkSum%103,this.addPattern(this.checksum)},e.prototype.addStop=function(){this.addPattern(this.STOP)},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)},e.prototype.addPattern=function(t){for(var e,o=this.characterMap[t].toString(),i=0;i<o.length;i++)e=parseInt(o.charAt(i),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}(Vp),nc=function(t){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),tc(this,{name:"Code 128 A",states:["A"]})},e}(rc),ac=function(t){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),tc(this,{name:"Code 128 B",states:["B"]})},e}(rc),sc=function(t){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),tc(this,{name:"Code 128 C",states:["C"]})},e}(rc),pc=function(t){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),tc(this,{name:"Code 128",states:["C","B","A","FNC4"]})},e}(rc),cc=function(t){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),tc(this,{name:"Code GS1-128",states:["FNC1","C","B"]})},e}(rc);function lc(t,e,o){return t.substring(e,e+o)}var uc=Object.assign,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.initProperties=function(){t.prototype.initProperties.call(this),uc(this,{characterMap:["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221"],START:"21",STOP:"121",checkSumType:"",checkSums:yc})},e.prototype.initValue=function(t,e){this.pattern=[],this.value=t,this.checkSumLength=0,this.width=e},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(12*(this.value.length+this.checkSumLength)+this.quietZoneLength+7)},e.prototype.addData=function(){var t=this.value;this.addPattern(this.START);for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.STOP),this.setBaseUnit()},e.prototype.addCharacter=function(t){var e=this.characterMap[t];e||this.invalidCharacterError(t),this.addPattern(e)},e.prototype.addPattern=function(t){for(var e=0;e<t.length;e++)this.pattern.push(parseInt(t.charAt(e),10))},e.prototype.addCheckSum=function(){var t=this.checkSums[this.checkSumType].call(this.checkSums,this.value);this.checksum=t.join("");for(var e=0;e<t.length;e++)this.checkSumLength++,this.addPattern(this.characterMap[t[e]])},e}(Vp),dc=function(t){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),uc(this,{name:"MSI Modulo10",checkSumType:"Modulo10"})},e}(hc),gc=function(t){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),uc(this,{name:"MSI Modulo11",checkSumType:"Modulo11"})},e}(hc),fc=function(t){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),uc(this,{name:"MSI Modulo10 Modulo10",checkSumType:"Modulo10Modulo10"})},e}(hc),vc=function(t){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),uc(this,{name:"MSI Modulo11 Modulo10",checkSumType:"Modulo11Modulo10"})},e}(hc),yc={Modulo10:function(t){var e,o,i,r=[0,""],n=t.length%2;for(e=0;e<t.length;e++)r[(e+n)%2]+=parseInt(t.charAt(e),10);for(i=r[0],o=(2*r[1]).toString(),e=0;e<o.length;e++)i+=parseInt(o.charAt(e),10);return[(10-i%10)%10]},Modulo11:function(t){for(var e,o=0,i=t.length,r=0;r<i;r++)o+=(((i-r)%6||6)+1)*t.charAt(r);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))}},_c=Object.assign,mc=function(t){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),_c(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 i=String(t);if(12!==i.length||/\D/.test(i))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=i,this.checksum=this.calculateChecksum(),this.leftKey=i[0],this.leftPart=i.substr(1,6),this.rightPart=i.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=0;o<t.length;o++)e&&parseInt(this.keyTable[e].charAt(o),10)?this.addPieces(Array.prototype.slice.call(this.characterMap.digits[t.charAt(o)]).reverse(),!0):this.addPieces(this.characterMap.digits[t.charAt(o)],!0)},e.prototype.addPieces=function(t,e){for(var o=0;o<t.length;o++)e?this.pattern.push({y1:0,y2:.95*this.options.height,width:t[o]}):this.pattern.push(t[o])},e.prototype.calculateChecksum=function(){for(var t=0,e=0,o=this.value.split("").reverse().join(""),i=0;i<o.length;i++)i%2?e+=parseInt(o.charAt(i),10):t+=parseInt(o.charAt(i),10);return(10-(3*t+e)%10)%10},e}(Vp),bc=Object.assign,xc=function(t){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),bc(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}(mc),Cc={code11:Np,code39:Hp,code39extended:Wp,code93:Yp,code93extended:qp,code128:pc,code128a:nc,code128b:ac,code128c:sc};Cc["gs1-128"]=cc,Cc.msimod10=dc,Cc.msimod11=gc,Cc.msimod1010=fc,Cc.msimod1110=vc,Cc.postnet=Qp,Cc.ean8=xc,Cc.ean13=mc;var Sc=function(t){function e(e,o,i){void 0===i&&(i=Bt),t.call(this),this.options=M({},this.options,o),this.element=e,this.onError=i,this._initElement(),this._initSurface(),this._setOptions(o),o&&at(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(){x(this.element,"k-barcode")},e.prototype._initSurface=function(){var t=this.options,e=this.surface;e&&e.options.type===t.renderAs||(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())},e.prototype._createSurface=function(){return w.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.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,i=o.value,r=o.text,n=V(r.margin),a=this._getSize(),s=o.border||{},p=this.encoding,c=new zt(0,0,a.width,a.height).unpad(s.width).unpad(o.padding),l=c.height(),u=new w.drawing.Group;this.contentBox=c,u.append(this._getBackground(a)),r.visible&&(l-=w.drawing.util.measureText(i,{font:r.font}).height+n.top+n.bottom);try{t=p.encode(i,c.width(),l)}catch(t){return this.onError(t),u}return r.visible&&(e=i,o.checksum&&at(p.checksum)&&(e+=" "+p.checksum),u.append(this._getText(e))),this.barHeight=l,this._bandsGroup=this._getBands(t.pattern,t.baseUnit),u.append(this._bandsGroup),u},e.prototype.exportVisual=function(){return this._render()},e.prototype._getSize=function(){var t=this.element,e=t.clientWidth,o=t.clientHeight,i=new w.geometry.Size(300,100);return e>0&&(i.width=e),o&&(i.height=o),this.options.width&&(i.width=this.options.width),this.options.height&&(i.height=this.options.height),i},e.prototype.value=function(t){if(!at(t))return this.options.value;this.options.value=String(t),this.redraw()},e.prototype._getBands=function(t,e){for(var o,i,r=this.contentBox,n=r.x1,a=new w.drawing.Group,s=0;s<t.length;s++){if(o=(i=D(t[s])?t[s]:{width:t[s],y1:0,y2:this.barHeight}).width*e,s%2){var p=w.geometry.Rect.fromPoints(new w.geometry.Point(n,i.y1+r.y1),new w.geometry.Point(n+o,i.y2+r.y1)),c=w.drawing.Path.fromRect(p,{fill:{color:this.options.color},stroke:null});a.append(c)}n+=o}return a},e.prototype._getBackground=function(t){var e=this.options,o=e.border||{},i=new zt(0,0,t.width,t.height).unpad(o.width/2);return w.drawing.Path.fromRect(i.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 pe(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),!Cc[this.type])throw new Error("Encoding '"+this.type+"' is not supported.");this.encoding=new Cc[this.type],this.options=M({},this.options,t)},e}(w.Class);xt(Sc,{name:"Barcode",renderAs:"svg",value:"",type:"code39",checksum:!1,width:0,height:0,color:"black",background:"white",text:{visible:!0,font:"16px Consolas, Monaco, Sans Mono, monospace, sans-serif",color:"black",margin:{top:0,bottom:0,left:0,right:0}},border:{width:0,dashType:"solid",color:"black"},padding:{top:0,bottom:0,left:0,right:0}});var wc=Sc,Ac={width:500,height:100};var kc=function(t,e){if(void 0===e&&(e=Ac),!t)throw new Error("Please specify barcode type to validate.");var o=t.toLowerCase(),i="";if("upca"===o?(o="ean13",i="0"):"upce"===o&&(o="ean8",i="0"),!Cc[o])throw new Error("Encoding '"+t+"' is not supported.");return function(t,e,o){return function(i){try{t.encode(o+i,e.width,e.height)}catch(t){return{valid:!1,error:t}}return{valid:!0}}}(new Cc[o],e,i)},Ic=Object.assign;function Oc(t,e){for(var o=[],i=0;i<t.length;)o.push(t.substring(i,i+e)),i+=e;return o}function Pc(t,e){var o=Number(t).toString(2);return o.length<e&&(o=new Array(e-o.length+1).join(0)+o),o}function jc(t){return parseInt(t,2)}var Tc=function(t){function e(e){t.call(this),this.matrix=e,this.row=e.length-1,this.column=e.length-1,this.startColumn=this.column,this.dir=-1,this.c=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.move=function(){this.row+=this.dir*this.c,this.c^=1,this.column=this.startColumn-this.c},e.prototype.getNextCell=function(){for(;void 0!==this.matrix[this.row][this.column];)this.move(),(this.row<0||this.row>=this.matrix.length)&&(this.dir=-this.dir,this.startColumn-=8!==this.startColumn?2:3,this.column=this.startColumn,this.row=this.dir<0?this.matrix.length-1:0);return{row:this.row,column:this.column}},e.prototype.getNextRemainderCell=function(){if(this.move(),void 0===this.matrix[this.row][this.column])return{row:this.row,column:this.column}},e}(w.Class),Mc=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}(w.Class),Dc=function(t){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=[],i=0,r=t;o.push(al(r,8,5,8,e)),e=o[0].mode,r=r.substr(o[0].modeString.length);for(;r.length>0;){var n=al(r,17,9,16,e);n.mode!==e?(e=n.mode,o.push(n),i++):o[i].modeString+=n.modeString,r=r.substr(n.modeString.length)}return o}(t),i=sl(function(t){for(var e,o=0,i=0;i<t.length;i++)e=Vc[t[i].mode],o+=e.getStringBitsLength(t[i].modeString.length);return Math.ceil(o/8)}(o),e),r=function(t,e){for(var o,i="",r=0;r<t.length;r++)o=Vc[t[r].mode],i+=o.encode(t[r].modeString,e);return i}(o,i);return new Mc(r,i)},e}(w.Class),Ec=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(){Ic(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+Pc(t,this.getBitsCharacterCount(e))},e.prototype.encode=function(){},e.prototype.getStringBitsLength=function(){},e.prototype.getValue=function(){},e}(w.Class),Bc=function(t){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),Ic(this,{bitsInCharacterCount:[10,12,14],modeIndicator:"0001"})},e.prototype.getValue=function(t){return parseInt(t,10)},e.prototype.encode=function(t,e){var o,i=Oc(t,3),r=this.getModeCountString(t.length,e);for(o=0;o<i.length-1;o++)r+=Pc(i[o],10);return r+Pc(i[o],1+3*i[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}(Ec),Rc=function(t){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),Ic(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,i=Oc(t,2),r=this.getModeCountString(t.length,e);for(o=0;o<i.length-1;o++)r+=Pc(45*this.getValue(i[o].charAt(0))+this.getValue(i[o].charAt(1)),11);return r+Pc(2===i[o].length?45*this.getValue(i[o].charAt(0))+this.getValue(i[o].charAt(1)):this.getValue(i[o].charAt(0)),1+5*i[o].length)},e.prototype.getStringBitsLength=function(t,e){return 4+this.getBitsCharacterCount(e)+11*Math.floor(t/2)+t%2*6},e}(Ec),Lc=function(t){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),Ic(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),i=0;i<t.length;i++)o+=Pc(this.getValue(t.charAt(i)),8);return o},e.prototype.getStringBitsLength=function(t,e){return 4+this.getBitsCharacterCount(e)+8*t},e}(Ec),Vc={};Vc.numeric=new Bc,Vc.alphanumeric=new Rc,Vc.byte=new Lc;var zc=function(t){function e(){t.call(this),this.initProperties(),this.mode=Vc[this.encodingMode]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){Ic(this,{encodingMode:"byte",utfBOM:"111011111011101110111111",initialModeCountStringLength:20,ranges:[128,2048,65536,2097152,67108864]})},e.prototype.getEncodingResult=function(t,e){var o=this.encode(t),i=sl(this.getDataCodewordsCount(o),e),r=this.mode.getModeCountString(o.length/8,i)+o;return new Mc(r,i)},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,i="";if(1===e)i=Pc(t,8);else{for(var r=8-e,n=0;n<o;n++)i=Pc(t>>6*n&63|128,8)+i;i=(t>>6*o|255>>r<<r).toString(2)+i}return i},e.prototype.getBytesCount=function(t){for(var e=this.ranges,o=0;o<e.length;o++)if(t<e[o])return o+1},e}(w.Class),Nc=[{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}}],Fc={1:0},Gc={0:1},Hc={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},Uc=[1,0,1,1,1],Wc=[1,0,1],Xc={L:"01",M:"00",Q:"11",H:"10"},Yc=["11101100","00010001"],qc=[function(t,e){return(t+e)%2==0},function(t){return t%2==0},function(t){return t%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}],Zc=/^\d+/,Kc=new RegExp("^[A-Z $%*+./:-]+"),Qc=new RegExp("^[A-Z0-9 $%*+./:-]+"),$c=new RegExp("^[^A-Z0-9 $%*+./:-]+"),Jc=[[1,0],[1,25,0]];function tl(t,e,o,i){for(var r=0;r<t.length;r++)t[r][o][i]=e}function el(t,e,o,i){for(var r=0;r<qc.length;r++)t[r][o][i]=qc[r](o,i)?1^e:parseInt(e,10)}function ol(t,e){for(var o=[],i=t.length-2;i>=0;i--)o[i]=t[i]^e[i];return o}function il(t,e){for(var o=[],i=0;i<t.length;i++)for(var r=0;r<e.length;r++)void 0===o[i+r]?o[i+r]=(t[i]+(e[r]>=0?e[r]:0))%255:o[i+r]=Fc[Gc[o[i+r]]^Gc[(t[i]+e[r])%255]];return o}function rl(t,e){var o=[],i=t.length-1;do{o[i]=Gc[(t[i]+e)%255],i--}while(void 0!==t[i]);return o}function nl(t,e){var o,i,r=Jc[e-1],n=new Array(e).concat(t),a=new Array(n.length-r.length).concat(r),s=t.length,p=[];for(i=0;i<s;i++)o=rl(a,Fc[n[n.length-1]]),a.splice(0,1),n=ol(o,n);for(i=n.length-1;i>=0;i--)p[e-1-i]=Pc(n[i],8);return p}function al(t,e,o,i,r){var n,a,s=Zc.exec(t),p=s?s[0]:"",c=Kc.exec(t),l=c?c[0]:"",u=Qc.exec(t),h=u?u[0]:"";return p&&(p.length>=e||t.length===p.length||p.length>=o&&!Qc.test(t.charAt(p.length)))?(n="numeric",a=p):h&&(t.length===h.length||h.length>=i||"alphanumeric"===r)?(n="alphanumeric",a=p||l):(n="byte",a=h?h+$c.exec(t.substring(h.length))[0]:$c.exec(t)[0]),{mode:n,modeString:a}}function sl(t,e){var o=0,i=Nc.length-1,r=Math.floor(Nc.length/2);do{t<Nc[r][e].totalDataCodewords?i=r:o=r,r=o+Math.floor((i-o)/2)}while(i-o>1);return t<=Nc[o][e].totalDataCodewords?r+1:i+1}function pl(t,e,o){var i=jc(e),r=e.length-1,n=t<<r,a=Pc(t,o-r),s=function(t,e){var o=e.toString(2).length,i=t.toString(2).length,r=t;do{i=(r^=e<<i-o).toString(2).length}while(i>=o);return r}(n,i);return s=a+Pc(s,r)}function cl(t,e){return parseInt(t.charAt(e),10)}function ll(t,e){var o,i,r=t[0],n=0,a=e.length;for(o=0,i=8;o<=8;o++)6!==o&&tl(t,cl(e,a-1-n++),o,i);for(o=8,i=7;i>=0;i--)6!==i&&tl(t,cl(e,a-1-n++),o,i);for(n=0,i=r.length-1,o=8;i>=r.length-8;i--)tl(t,cl(e,a-1-n++),o,i);for(tl(t,1,r.length-8,8),o=r.length-7,i=8;o<r.length;o++)tl(t,cl(e,a-1-n++),o,i)}function ul(t,e){for(var o,i,r,n=t[0].length,a=n-11,s=n-11,p=0;p<e.length;p++)o=Math.floor(p/3),i=p%3,tl(t,r=cl(e,e.length-p-1),0+o,a+i),tl(t,r,s+i,0+o)}function hl(t,e,o,i){for(var r,n=e.length+2,a=e.length+1,s=0;s<e.length;s++)for(var p=s;p<n-s;p++)tl(t,r=e[s],o+p,i+s),tl(t,r,o+s,i+p),tl(t,r,o+a-p,i+a-s),tl(t,r,o+a-s,i+a-p)}function dl(t,e,o,i){var r=o,n=i,a=t[0];do{tl(t,0,r,i),tl(t,0,o,n),r+=e[0],n+=e[1]}while(r>=0&&r<a.length)}function gl(t,e,o,i,r){e[t][i]=(e[t][i]<<1^r)%128,93===e[t][i]&&(o[t]+=40)}function fl(t,e,o,i,r,n){o[t][n]===i?r[t][n]++:(o[t][n]=i,r[t][n]>=5&&(e[t]+=3+r[t][n]-5),r[t][n]=1)}function vl(t,e){var o=Math.floor(t/e*100),i=o%5,r=Math.abs(o-i-50),n=Math.abs(o+5-i-50);return 10*Math.min(r/5,n/5)}function yl(t,e,o){var i=function(t){return t&&t.toLowerCase().indexOf("utf_8")>=0?new zc:new Dc}(o).getEncodingResult(t,e),r=i.version,n=Nc[r-1][e],a=function(t,e){for(var o,i,r,n,a,s=0,p=[],c=[],l=e.groups,u=0;u<l.length;u++){r=l[u][0];for(var h=0;h<r;h++){i=l[u][1],o=[],n=[];for(var d=1;d<=i;d++)a=t.substring(s,s+8),o.push(a),n[i-d]=jc(a),s+=8;p.push(o),c.push(nl(n,e.errorCodewordsPerBlock))}}return[p,c]}(function(t,e){for(var o=8*e,i=0,r=0,n=t;n.length<o&&i<"0000".length;)n+="0000".charAt(i++);for(n.length%8!=0&&(n+=new Array(9-n.length%8).join("0"));n.length<o;)n+=Yc[r],r^=1;return n}(i.dataString,n.totalDataCodewords),n),s=function(t){for(var e=[],o=17+4*t,i=0;i<qc.length;i++){e[i]=new Array(o);for(var r=0;r<o;r++)e[i][r]=new Array(o)}return e}(r);!function(t){var e=t[0].length;hl(t,Uc,0,0),dl(t,[-1,-1],7,7),hl(t,Uc,e-7,0),dl(t,[1,-1],e-8,7),hl(t,Uc,0,e-7),dl(t,[-1,1],7,e-8)}(s),function(t,e){if(!(e<2)){var o,i,r=t[0],n=r.length,a=Math.floor(e/7),s=[6],p=0;for((o=Hc[e])?i=(n-13-o)/a:o=i=(n-13)/(a+1),s.push(s[p++]+o);s[p]+i<n;)s.push(s[p++]+i);for(var c=0;c<s.length;c++)for(var l=0;l<s.length;l++)void 0===r[s[c]][s[l]]&&hl(t,Wc,s[c]-2,s[l]-2)}}(s,r),function(t){for(var e=1,o=t[0].length,i=8;i<o-8;i++)tl(t,e,6,i),tl(t,e,i,6),e^=1}(s),r>=7&&ul(s,Pc(0,18)),ll(s,Pc(0,15)),function(t,e){for(var o,i,r,n=new Tc(t[0]),a=0;a<e.length;a++)for(o=e[a],i=0;o.length>0;){for(var s=0;s<o.length;s++)for(var p=0;p<8;p++)r=n.getNextCell(),el(t,o[s][i].charAt(p),r.row,r.column);for(i++;o[0]&&i===o[0].length;)o.splice(0,1)}for(;r=n.getNextRemainderCell();)el(t,0,r.row,r.column)}(s,a);var p=function(t){var e,o,i=[],r=[],n=[],a=[],s=[],p=t[0].length;for(o=0;o<t.length;o++)i[o]=0,n[o]=0,s[o]=[0,0],a[o]=[0,0],r[o]=[];for(var c=0;c<p;c++)for(var l=0;l<p;l++)for(var u=0;u<t.length;u++)e=t[u],n[u]+=parseInt(e[c][l],10),r[u][0]===e[c][l]&&c+1<p&&l-1>=0&&e[c+1][l]===r[u][0]&&e[c+1][l-1]===r[u][0]&&(i[u]+=3),gl(u,a,i,0,e[c][l]),gl(u,a,i,1,e[l][c]),fl(u,i,r,e[c][l],s,0),fl(u,i,r,e[l][c],s,1);var h,d=p*p,g=Number.MAX_VALUE;for(o=0;o<i.length;o++)i[o]+=vl(n[o],d),i[o]<g&&(g=i[o],h=o);return h}(s),c=s[p];return r>=7&&ul([c],function(t){return pl(t,"1111100100101",18)}(r)),ll([c],function(t){var e,o="";if(0===jc(t))return"101010000010010";e=pl(jc(t),"10100110111",15);for(var i=0;i<e.length;i++)o+=e.charAt(i)^"101010000010010".charAt(i);return o}(Xc[e]+Pc(p,3))),c}!function(){var t,e;for(e=1;e<255;e++)(t=2*Gc[e-1])>255&&(t^=285),Gc[e]=t,Fc[t]=e;t=2*Gc[e-1]^285,Gc[e]=t,Gc[-1]=0}(),function(){for(var t=2;t<=68;t++){var e=Jc[t-1],o=[t,0];Jc[t]=il(e,o)}}();var _l=Math.round,ml=[[0,1],[1,1],[1,2],[2,2],[2,1],[3,1],[3,0],[2,0],[2,-1],[1,-1],[1,0]],bl=[[0,1],[1,1],[1,0]],xl=200,Cl="L",Sl="#fff",wl="#000",Al=1,kl=7,Il=function(t){function e(e,o,i){void 0===i&&(i=Bt),t.call(this),this.options=M({},this.options,o),this.element=e,this.wrapper=this.element,this.onError=i,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(){x(this.element,"k-qrcode")},e.prototype._initSurface=function(){var t=this.options,e=this.surface;e&&e.options.type===t.renderAs||(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())},e.prototype._createSurface=function(){return w.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,i={width:0,height:0};return e>0&&(i.width=e),o&&(i.height=o),i},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,i,r,n=this._value,a=this.options.border||{},s=this.options.padding||0,p=a.width||0;a.width=p;var c=new w.drawing.Group;try{n&&(o=yl(n,this.options.errorCorrection,this.options.encoding),r=(i=this._getSize())-2*(p+s),t=this._calculateBaseUnit(r,o.length),e=p+s+(r-o.length*t)/2,c.append(this._renderBackground(i,a)),c.append(this._renderMatrix(o,t,e)),this._hasCustomLogo()?c.append(this._renderLogo(i,t)):this._isSwiss()&&c.append(this._renderSwissCode(i,t)))}catch(t){this.onError(t)}return c},e.prototype._renderLogo=function(t,e){var o,i=_l(t/2),r=this._getLogoSize(e*kl),n=this.options.overlay.imageUrl,a={x:i-r.width/2,y:i-r.height/2};return o=new w.geometry.Rect(new w.geometry.Point(a.x,a.y),new w.geometry.Size(r.width,r.height)),new w.drawing.Image(n,o)},e.prototype._renderSwissCode=function(t,e){var o=this._getLogoSize(e*kl),i=(o=Math.max(o.width,o.height))/4,r=i/2,n=t/2,a={},s=new w.drawing.Group;return a.x=a.y=Math.ceil(n-e-o/2),s.append(this._renderShape(a,Math.ceil(o+2*e),bl,"#fff")),a.x=a.y=n-o/2,s.append(this._renderShape(a,o,bl,this.options.color)),a.x=n+r-o/2,a.y=n+r+i-o/2,s.append(this._renderShape(a,i,ml,"#fff")),s},e.prototype._renderShape=function(t,e,o,i){var r=new w.drawing.MultiPath({fill:{color:i},stroke:null});r.moveTo(t.x,t.y);for(var n=0;n<o.length;n++)r.lineTo(t.x+e*o[n][0],t.y+e*o[n][1]);return r.close(),r},e.prototype._getSize=function(){var t;if(this.options.size)t=parseInt(this.options.size,10);else{var e=this.element,o=Math.min(e.clientWidth,e.clientHeight);t=o>0?o:xl}return t},e.prototype._calculateBaseUnit=function(t,e){var o=Math.floor(t/e);if(o<Al){var i=Math.ceil(e*Al);this.onError(new Error("Insufficient size for QR Code: the current size is "+t+"px and the minimum size is "+i+"px."))}else o*e>=t&&o-1>=Al&&o--;return o},e.prototype._renderMatrix=function(t,e,o){for(var i=new w.drawing.MultiPath({fill:{color:this.options.color},stroke:null}),r=0;r<t.length;r++)for(var n=o+r*e,a=0;a<t.length;){for(;0===t[r][a]&&a<t.length;)a++;if(a<t.length){for(var s=a;1===t[r][a];)a++;var p=_l(o+s*e),c=_l(n),l=_l(o+a*e),u=_l(n+e);i.moveTo(p,c).lineTo(p,u).lineTo(l,u).lineTo(l,c).close()}}return i},e.prototype._renderBackground=function(t,e){var o=new zt(0,0,t,t).unpad(e.width/2);return w.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=Ic(this.options,e),void 0!==t.value&&(this._value=String(this.options.value)),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}(w.Class);xt(Il,{name:"QRCode",renderAs:"svg",encoding:"ISO_8859_1",value:"",errorCorrection:Cl,background:Sl,color:wl,size:"",padding:0,border:{color:"",width:0},overlay:{type:"image",imageUrl:"",width:0,height:0}});var Ol=Il;var Pl=function(t){return void 0===t&&(t="ISO_8859_1"),function(e){try{yl(e,"L",t)}catch(t){return{valid:!1,error:t}}return{valid:!0}}},jl="Arial, Helvetica, sans-serif",Tl="12px "+jl,Ml="16px "+jl,Dl=function(){return{icon:{border:{width:1}},label:{font:Tl,padding:3},line:{length:10,width:2},visible:!0}},El=function(t){return{visible:!0,labels:{font:"11px Arial, Helvetica, sans-serif"},overlay:t.gradients?{}:{gradient:"none"},area:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},rangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalRangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},bar:{gap:1.5,spacing:.4},boxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},bubble:{border:{width:0},labels:{background:"transparent"},opacity:.6},bullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},candlestick:{border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:"#000",width:1},spacing:.3},column:{gap:1.5,spacing:.4},heatmap:{labels:{color:"",background:"transparent",visible:!0},highlight:{border:{width:0}}},pie:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},donut:{margin:1},funnel:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},horizontalWaterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4},line:{width:2},notes:Dl(),ohlc:{gap:1,highlight:{line:{opacity:1,width:3}},line:{width:1},spacing:.3},radarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},radarLine:{markers:{visible:!1},width:2},polarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},polarLine:{markers:{visible:!1},width:2},rangeBar:{gap:1.5,spacing:.4},rangeColumn:{gap:1.5,spacing:.4},scatterLine:{width:1},verticalArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalBoxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},verticalBullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},verticalLine:{width:2},waterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4}}},Bl=function(t){return void 0===t&&(t={}),{axisDefaults:{labels:{font:Tl},notes:Dl(),title:{font:Ml,margin:5}},categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:El(t),title:{font:Ml},legend:{labels:{font:Tl}}}}},function(t,e){t.exports=i},function(t,e){t.exports=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(6),r=o(31),n=o(32),a=function(){function t(t,e){var o=this;this.configurationService=t,this.collectionService=e,this.options={},this.subscription=t.onFastChange$.subscribe((function(t){o.options=t,o.notify()}))}return t.prototype.ngOnChanges=function(t){var e=this.configurationService.store;r.copyChanges(t,e),this.configurationService.push(e)},t.prototype.notifyChanges=function(t){this.ngOnChanges(n.toSimpleChanges(t))},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.notify=function(){this.collectionService&&this.collectionService.notify(new i.ItemChange(this,this.options))},t}();e.CollectionItemComponent=a},function(t,e){t.exports=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(3),r=function(){function t(t,e,o){var i=this;this.configKey=t,this.configurationService=e,this.collectionService=o,this.items=[],this.subscription=o.onItemChange$.subscribe((function(t){return i.processChanges(t)}))}return t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.ngAfterContentInit=function(){var t=this;this.readItems(),this.children.changes.subscribe((function(){return t.readItems()}))},t.prototype.processChanges=function(t){if(this.children){var e=this.children.toArray().indexOf(t.sender);e<0||(this.items[e]=t.options,this.change())}},t.prototype.readItems=function(){this.items=this.children.map((function(t){return t.options})),this.change()},t.prototype.change=function(){this.configurationService.notify(new i.Change(this.configKey,0===this.items.length?void 0:this.items))},t}();e.CollectionComponent=r},function(t,e,o){"use strict";o.r(e),o.d(e,"AlignService",(function(){return et})),o.d(e,"AnimationService",(function(){return at})),o.d(e,"DOMService",(function(){return J})),o.d(e,"PositionService",(function(){return ot})),o.d(e,"ResizeService",(function(){return it})),o.d(e,"ScrollableService",(function(){return rt})),o.d(e,"PopupService",(function(){return ut})),o.d(e,"POPUP_CONTAINER",(function(){return lt})),o.d(e,"PopupComponent",(function(){return ct})),o.d(e,"PopupModule",(function(){return dt})),o.d(e,"SCALE",(function(){return tt}));var i=o(0),r=o(2),n="bottom",a="center",s="middle",p="left",c="right",l="top",u=function(t){var e=t.anchorRect,o=t.anchorAlign,i=t.elementRect,r=t.elementAlign,p=t.margin;void 0===p&&(p={});var l=o.horizontal,u=o.vertical,h=r.horizontal,d=r.vertical,g=p.horizontal||0,f=p.vertical||0,v=e.top,y=e.left;return u===n&&(v+=e.height),u!==a&&u!==s||(v+=Math.round(e.height/2)),d===n&&(v-=i.height,f*=-1),d!==a&&d!==s||(v-=Math.round(i.height/2),f*=-1),l===c&&(y+=e.width),l!==a&&l!==s||(y+=Math.round(e.width/2)),h===c&&(y-=i.width,g*=-1),h!==a&&h!==s||(y-=Math.round(i.width/2),g*=-1),{top:v+f,left:y+g}};function h(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}function d(t){return t.ownerDocument||t.document||t}var g=function(t){return d(t).defaultView},f=function(t){return d(t).documentElement},v=0;function y(){if(!v&&"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),v=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return v}function _(t){var e=g(t),o=f(t),i={height:e.innerHeight,width:e.innerWidth};return o.scrollHeight-o.clientHeight>0&&(i.width-=y()),i}var m=function(t){if(!t.getBoundingClientRect){var e=_(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}},b=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||f(t)},x=function(t){var e=t.getBoundingClientRect(),o=e.left,i=e.top;return e.height||e.width||(e=function(t){var e=t.style,o=e.display,i=e.left,r=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=i,t.style.position=r,n}(t)),{top:i,left:o,height:e.height,width:e.width}},C=function(t,e){for(var o=[],i=t.parentNode;i&&(o.push(i),i!==e);)i=i.parentNode;return o};function S(t){var e=f(t),o=g(t);return{x:o.pageXOffset||e.scrollLeft||0,y:o.pageYOffset||e.scrollTop||0}}var w=function(t){return t===(t.ownerDocument||{}).body?S(t):{x:t.scrollLeft,y:t.scrollTop}};var A=function(t,e){var o=g(t),i=o.getComputedStyle(t),r=x(t),n=e||b(t),a=t.ownerDocument,s=n!==a.body&&n!==a.documentElement,p={top:0,left:0};if("fixed"!==i.position&&s){var c=o.getComputedStyle(n);(p=x(n)).top+=parseInt(c.borderTopWidth,10),p.left+=parseInt(c.borderLeftWidth,10)}return{top:r.top-p.top,left:r.left-p.left,height:r.height,width:r.width}},k=function(t,e){return t?w(t):function(t){var e=b(t);return e?w(e):{x:0,y:0}}(e)},I=function(t,e,o){void 0===o&&(o=1);var i=e?b(e):null,r=A(t,i),n=r.top,a=r.left,s=r.height,p=r.width,c=k(i,t),l=c.x,u=c.y,h=t.ownerDocument,d=i===h.body||i===h.documentElement?1:o;return{top:n+u*d,left:a+l*d,height:s,width:p}};function O(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}var P="fit",j="flip",T=function(t,e,o){var i=0;return t+e>o&&(i=o-(t+e)),t<0&&(i=-t),i},M=function(t){var e=t.offset,o=t.size,i=t.anchorSize,r=t.viewPortSize,n=t.anchorAlignPoint,c=t.elementAlignPoint,u=0,h=2*t.margin;if(c!==n&&!(c===a||c===s)&&!(n===a||n===s)){var d=n===l||n===p;e<0&&d?e+(u=o+i+h)+o>r&&(u=0):e>=0&&!d&&(e+o>r&&(u+=-(i+o+h)),e+u<0&&(u=0))}return u},D=function(t){var e=t.anchorRect,o=t.anchorAlign,i=t.elementRect,r=t.elementAlign,n=t.collisions,a=t.viewPort,s=t.margin;void 0===s&&(s={});var p=i.top,c=i.left,l=i.height,u=i.width,h=a.height,d=a.width,g=s.horizontal||0,f=s.vertical||0,v=0,y=0,_=n.vertical===P,m=n.horizontal===P,b=n.vertical===j,x=n.horizontal===j;_&&(y+=T(p,l,h)),m&&(v+=T(c,u,d)),b&&(y+=M({margin:f,offset:p,size:l,anchorSize:e.height,viewPortSize:h,anchorAlignPoint:o.vertical,elementAlignPoint:r.vertical})),x&&(v+=M({margin:g,offset:c,size:u,anchorSize:e.width,viewPortSize:d,anchorAlignPoint:o.horizontal,elementAlignPoint:r.horizontal}));var C=b&&0!==y,S=x&&0!==v,w=_&&0!==y,A=m&&0!==v;return{flipped:S||C,fitted:w||A,flip:{horizontal:S,vertical:C},fit:{horizontal:A,vertical:w},offset:{left:v,top:y}}},E=function(t){for(var e=[],o=t.parentNode.firstElementChild;o;)o!==t&&e.push(o),o=o.nextElementSibling;return e},B=function(t,e){for(var o,i,r=C(t),n=e;n&&(o=E(n),!(i=r.reduce((function(t,e){return t.concat(o.filter((function(t){return t===e})))}),[])[0]));)n=n.parentElement;return i};R=function(t){if(!z())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 i=10!==o.children[0].getBoundingClientRect().top;return e.body.removeChild(o),i},V=!1;var R,L,V,z=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},N=o(5),F=o(8),G=o(13),H=o(20),U=o(19),W=o(12),X=function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},Y=function(){return"undefined"!=typeof window},q=/auto|scroll/,Z=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)};var K=function(t){var e,o=!1;return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];return o||(e=t.apply(void 0,i),o=!0),e}}((function(){if(!Object(N.isDocumentAvailable)()&&null!==document.body)return!1;var t=document.createElement("div");t.style.transform="matrix(10, 0, 0, 10, 0, 0)",t.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(t);var e=10!==t.children[0].getBoundingClientRect().top;return document.body.removeChild(t),e})),Q=function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t},$=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],J=function(){function t(){}return t.prototype.addOffset=function(t,e){return{left:t.left+e.left,top:t.top+e.top}},t.prototype.addScroll=function(t,e){return h(t,e)},t.prototype.align=function(t){return u(t)},t.prototype.boundingOffset=function(t){return m(this.nativeElement(t))},t.prototype.getFontStyles=function(t){var e=this.getWindow();if(!e||!t)return[];var o=e.getComputedStyle(this.nativeElement(t));return $.map((function(t){return{key:t,value:o[t]}}))},t.prototype.getWindow=function(){return Y()?window:null},t.prototype.hasOffsetParent=function(t){return!!t&&!!this.nativeElement(t).offsetParent},t.prototype.offset=function(t){return t?x(this.nativeElement(t)):null},t.prototype.offsetAtPoint=function(t,e){if(!t)return null;var o=this.nativeElement(t),i=o.style,r=i.left,n=i.top,a=i.transition;o.style.transition="none",o.style.left=e.left+"px",o.style.top=e.top+"px";var s=x(o);return o.style.left=r,o.style.top=n,o.offsetHeight,o.style.transition=a,s},t.prototype.nativeElement=function(t){return t?t.nativeElement||t:null},t.prototype.position=function(t,e,o){return void 0===o&&(o=1),t&&e?I(this.nativeElement(t),this.nativeElement(e),o):null},t.prototype.removeScroll=function(t,e){return O(t,e)},t.prototype.restrictToView=function(t){return D(t)},t.prototype.scrollPosition=function(t){return S(this.nativeElement(t))},t.prototype.scrollableParents=function(t){return function(t){var e=[];if(!Object(N.isDocumentAvailable)()||!Y())return e;for(var o=t.parentElement;o;)(q.test(Z(o))||o.hasAttribute("data-scrollable"))&&e.push(o),o=o.parentElement;return e.push(window),e}(this.nativeElement(t))},t.prototype.stackingElementOffset=function(t){var e=this.getRelativeContextElement(t);return e?x(e):null},t.prototype.stackingElementScroll=function(t){var e=this.getRelativeContextElement(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},t.prototype.getRelativeContextElement=function(t){if(!t||!K())return null;for(var e=this.nativeElement(t).parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},t.prototype.useRelativePosition=function(t){return!!this.getRelativeContextElement(t)},t.prototype.windowViewPort=function(t){return _(this.nativeElement(t))},t.prototype.zIndex=function(t,e){return function(t,e){if(!t||!Object(N.isDocumentAvailable)()||!Y())return null;var o=B(t,e);if(!o)return null;var i=[t].concat(C(t,o)).reduce((function(t,e){var o=e.style.zIndex||window.getComputedStyle(e).zIndex,i=parseInt(o,10);return i>t?i:t}),0);return i?i+1:null}(this.nativeElement(t),this.nativeElement(e))},t.prototype.zoomLevel=function(){return Object(N.isDocumentAvailable)()&&Y()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},t.prototype.isZoomed=function(){return this.zoomLevel()>1},t=Object(i.__decorate)([Object(r.Injectable)()],t)}(),tt=new r.InjectionToken("Popup Document Scale"),et=function(){function t(t,e){void 0===e&&(e=1),this._dom=t,this.scale=e}return t.prototype.alignElement=function(t){var e=t.anchor,o=t.element,i=t.anchorAlign,r=t.elementAlign,n=t.margin,a=t.offset,s=t.positionMode,p=this.scale||1,c="fixed"===s||!this._dom.hasOffsetParent(o)?this.absoluteRect(e,o,a,p):this.relativeRect(e,o,a,p),l=Q(this._dom.offset(o),p);return this._dom.align({anchorAlign:i,anchorRect:c,elementAlign:r,elementRect:l,margin:n})},t.prototype.absoluteRect=function(t,e,o,i){var r=this.elementScrollPosition(t,e),n=X(this._dom.offset(t),o),a=2*i,s=this._dom.stackingElementScroll(e);1!==i&&s&&(s.x/=a,s.y/=a);var p=this._dom.stackingElementOffset(e);return 1!==i&&p&&(p.left/=a,p.top/=a),this._dom.removeScroll(this._dom.addScroll(function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t}(Q(n,i),p),s),r)},t.prototype.elementScrollPosition=function(t,e){return t?{x:0,y:0}:this._dom.scrollPosition(e)},t.prototype.relativeRect=function(t,e,o,i){var r=X(this._dom.position(t,e,i),o);return Q(r,i)},t=Object(i.__decorate)([Object(r.Injectable)(),Object(i.__param)(1,Object(r.Inject)(tt)),Object(i.__param)(1,Object(r.Optional)()),Object(i.__metadata)("design:paramtypes",[J,Number])],t)}(),ot=function(){function t(t,e){void 0===e&&(e=1),this._dom=t,this.scale=e}return t.prototype.positionElement=function(t){var e=t.anchor,o=t.currentLocation,i=t.element,r=t.anchorAlign,n=t.elementAlign,a=t.collisions,s=t.margin,p=this._dom,c=this.scale||1,l=p.offsetAtPoint(i,o),u=Q(l,c),h=Q(p.offset(e),c),d=X(h,o),g=t.viewPort||p.windowViewPort(i);g.width=g.width/c,g.height=g.height/c;var f=p.restrictToView({anchorAlign:r,anchorRect:d,collisions:a,elementAlign:n,elementRect:u,margin:s,viewPort:g}),v=p.addOffset(o,f.offset);return{flip:f.flip,flipped:f.flipped,offset:v}},t=Object(i.__decorate)([Object(r.Injectable)(),Object(i.__param)(1,Object(r.Inject)(tt)),Object(i.__param)(1,Object(r.Optional)()),Object(i.__metadata)("design:paramtypes",[J,Number])],t)}(),it=function(){function t(t,e){this._dom=t,this._zone=e}return t.prototype.subscribe=function(t){var e=this;Object(N.isDocumentAvailable)()&&this._zone.runOutsideAngular((function(){e.subscription=Object(F.fromEvent)(e._dom.getWindow(),"resize").pipe(Object(G.auditTime)(1e3/60)).subscribe((function(){return t()}))}))},t.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},t=Object(i.__decorate)([Object(r.Injectable)(),Object(i.__metadata)("design:paramtypes",[J,r.NgZone])],t)}(),rt=function(){function t(t,e){this._dom=t,this._zone=e}return t.prototype.forElement=function(t){return this.unsubscribe(),this.element=t,this},t.prototype.subscribe=function(t){var e=this;if(t&&Object(N.isDocumentAvailable)()&&this.element){var o=this._dom.nativeElement(this.element),i=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular((function(){var r=i.map((function(t){return Object(F.fromEvent)(t,"scroll").pipe(Object(G.auditTime)(1e3/60))}));e.subscription=F.merge.apply(void 0,r).subscribe((function(r){var n=r.target,a=i.filter((function(t){return t===n})).length>0,s=n===document,p=n===window;(a||s||p)&&t(e.isVisible(o,n))}))}))}},t.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.isVisible=function(t,e){var o=this._dom.boundingOffset(t),i=this._dom.boundingOffset(e);return!(1<i.top-o.bottom)&&(!(1<o.top-i.bottom)&&(!(1<o.left-i.right)&&!(1<i.left-o.right)))},t=Object(i.__decorate)([Object(r.Injectable)(),Object(i.__metadata)("design:paramtypes",[J,r.NgZone])],t)}(),nt={expand:function(t){var e="up"===t||"down"===t?"scaleY":"scaleX";return{start:{transform:e+"(0)",transformOrigin:"down"===t?"top":"left"===t?"right":"right"===t?"left":"bottom"},end:{transform:e+"(1)"}}},slide:function(t){var e="left"===t||"right"===t?"translateX":"translateY";return{start:{transform:e+"("+("right"===t||"down"===t?-100:100)+"%)"},end:{transform:e+"(0%)"}}},fade:function(){return{start:{opacity:0},end:{opacity:1}}},zoom:function(){return{start:{transform:"scale(0)"},end:{transform:"scale(1)"}}}},at=function(){function t(t){this.animationBuilder=t,this.start=new r.EventEmitter,this.end=new r.EventEmitter}return t.prototype.play=function(t,e,o){if(!this.flip||this.flip.horizontal!==o.horizontal||this.flip.vertical!==o.vertical){this.flip=o;var i=e.type||"slide",n=nt[i];if(n){var a=n(this.getDirection(o,e));this.playStates(t,a,e)}else if(Object(r.isDevMode)())throw new Error('Unsupported animation type: "'+i+'". The supported types are slide, expand, fade and zoom.')}},t.prototype.ngOnDestroy=function(){this.stopPlayer()},t.prototype.playStates=function(t,e,o){var i=this;this.stopPlayer();var r=o.duration||100,n=this.animationBuilder.build([Object(H.style)(e.start),Object(H.animate)(r+"ms ease-in",Object(H.style)(e.end))]),a=this.player=n.create(t);a.onDone((function(){i.end.emit(),i.stopPlayer()})),this.start.emit(),a.play()},t.prototype.getDirection=function(t,e){var o=e.direction||"down";return t.horizontal&&("left"===o?o="right":"right"===o&&(o="left")),t.vertical&&("down"===o?o="up":"up"===o&&(o="down")),o},t.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},t=Object(i.__decorate)([Object(r.Injectable)(),Object(i.__metadata)("design:paramtypes",[H.AnimationBuilder])],t)}(),st={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642583997,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},pt={left:-1e4,top:0},ct=function(){function t(t,e,o,i,n,a,s,p,c){this.container=t,this._alignService=e,this.domService=o,this._positionService=i,this._resizeService=n,this._scrollableService=a,this.animationService=s,this._renderer=p,this._zone=c,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=pt,this.anchorViewportLeave=new r.EventEmitter,this.close=new r.EventEmitter,this.open=new r.EventEmitter,this.positionChange=new r.EventEmitter,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,Object(U.validatePackage)(st),this._renderer.addClass(t.nativeElement,"k-animation-container"),this.updateFixedClass()}return t.prototype.ngOnInit=function(){this.reposition=this.reposition.bind(this),this._resizeService.subscribe(this.reposition),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this)),this.currentOffset=pt,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass(),this.reposition()},t.prototype.ngOnChanges=function(t){t.copyAnchorStyles&&this.copyFontStyles(),t.positionMode&&this.updateFixedClass()},t.prototype.ngAfterViewInit=function(){var t=this;this.animate||this.resolvedPromise.then((function(){t.onAnimationEnd()}))},t.prototype.ngAfterViewChecked=function(){var t=this;this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular((function(){t.unsubscribeReposition(),t.repositionSubscription=Object(F.from)(t.resolvedPromise).subscribe(t.reposition)}))},t.prototype.ngOnDestroy=function(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()},t.prototype.onResize=function(){this.reposition()},t.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},t.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(t.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(t){this.setContainerStyle("left",t.left+"px"),this.setContainerStyle("top",t.top+"px"),this._currentOffset=t},enumerable:!0,configurable:!0}),t.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},t.prototype.reposition=function(){var t=this;if(Object(N.isDocumentAvailable)()){var e,o,i,r,n,a,s=this.position(),p=s.flip,c=s.offset;(!this.currentOffset||(e=this.currentOffset,o=c,i=e.left,r=e.top,n=o.left,a=o.top,Math.abs(i-n)>=1||Math.abs(r-a)>=1))&&(this.currentOffset=c,Object(N.hasObservers)(this.positionChange)&&this._zone.run((function(){return t.positionChange.emit({offset:c,flip:p})}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,p),this.resizeSensor.acceptSize()}},t.prototype.position=function(){var t=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:t,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},t.prototype.onScroll=function(t){var e=this,o=Object(N.hasObservers)(this.anchorViewportLeave);t||!o?this.reposition():o&&this._zone.run((function(){e.anchorViewportLeave.emit()}))},t.prototype.copyFontStyles=function(){var t=this;this.anchor&&this.copyAnchorStyles&&this.domService.getFontStyles(this.anchor).forEach((function(e){return t.setContainerStyle(e.key,e.value)}))},t.prototype.updateFixedClass=function(){var t="fixed"===this.positionMode?"addClass":"removeClass";this._renderer[t](this.container.nativeElement,"k-animation-container-fixed")},t.prototype.setContainerStyle=function(t,e){this._renderer.setStyle(this.container.nativeElement,t,e)},t.prototype.unsubscribeReposition=function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],t.prototype,"animate",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",r.ElementRef)],t.prototype,"anchor",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],t.prototype,"anchorAlign",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],t.prototype,"collision",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],t.prototype,"popupAlign",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"copyAnchorStyles",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],t.prototype,"popupClass",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"positionMode",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],t.prototype,"offset",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],t.prototype,"margin",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],t.prototype,"anchorViewportLeave",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],t.prototype,"close",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],t.prototype,"open",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],t.prototype,"positionChange",void 0),Object(i.__decorate)([Object(r.ViewChild)("container",{static:!0}),Object(i.__metadata)("design:type",r.ElementRef)],t.prototype,"contentContainer",void 0),Object(i.__decorate)([Object(r.ViewChild)(N.ResizeSensorComponent,{static:!0}),Object(i.__metadata)("design:type",N.ResizeSensorComponent)],t.prototype,"resizeSensor",void 0),t=Object(i.__decorate)([Object(r.Component)({exportAs:"kendo-popup",providers:[et,at,J,ot,it,rt],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" #container>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n <kendo-resize-sensor [rateLimit]="100" (resize)="onResize()">\n </kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[r.ElementRef,et,J,ot,it,rt,at,r.Renderer2,r.NgZone])],t)}(),lt=new r.InjectionToken("Popup Container"),ut=function(){function t(t,e,o,i){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=o,this.container=i}return Object.defineProperty(t.prototype,"rootViewContainer",{get:function(){var t=this.applicationRef.components||[];if(t[0])return t[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!0,configurable:!0}),t.prototype.open=function(t){void 0===t&&(t={});var e=this.contentFrom(t.content),o=e.component,i=e.nodes,r=this.appendPopup(i,t.appendTo),n=r.instance;this.projectComponentInputs(r,t),r.changeDetectorRef.detectChanges(),o&&o.changeDetectorRef.detectChanges();var a=this.getComponentRootNode(r);return{close:function(){var t;o&&o.destroy(),r.destroy(),(t=a)&&t.parentNode&&t.parentNode.removeChild(t)},content:o,popup:r,popupAnchorViewportLeave:n.anchorViewportLeave,popupClose:n.close,popupElement:a,popupOpen:n.open,popupPositionChange:n.positionChange}},t.prototype.appendPopup=function(t,e){var o=this.createComponent(ct,t,e);return e||this.rootViewContainerNode.appendChild(this.getComponentRootNode(o)),o},t.prototype.getComponentRootNode=function(t){return t.location.nativeElement},t.prototype.getComponentFactory=function(t){return this.componentFactoryResolver.resolveComponentFactory(t)},t.prototype.createComponent=function(t,e,o){var i=this.getComponentFactory(t);if(o)return o.createComponent(i,void 0,this.injector,e);var r=i.create(this.injector,e);return this.applicationRef.attachView(r.hostView),r},t.prototype.projectComponentInputs=function(t,e){return Object.getOwnPropertyNames(e).filter((function(t){return"content"!==t||e.content instanceof r.TemplateRef})).map((function(o){t.instance[o]=e[o]})),t},t.prototype.contentFrom=function(t){if(!t||t instanceof r.TemplateRef)return{component:null,nodes:[[]]};var e=this.createComponent(t);return{component:e,nodes:[e?[e.location.nativeElement]:[]]}},t=Object(i.__decorate)([Object(r.Injectable)(),Object(i.__param)(3,Object(r.Inject)(lt)),Object(i.__param)(3,Object(r.Optional)()),Object(i.__metadata)("design:paramtypes",[r.ApplicationRef,r.ComponentFactoryResolver,r.Injector,r.ElementRef])],t)}(),ht=[ct],dt=function(){function t(){}return t=Object(i.__decorate)([Object(r.NgModule)({declarations:[ht],entryComponents:[ht],exports:[ht],imports:[W.CommonModule,N.ResizeSensorModule],providers:[ut]})],t)}()},function(t,e){t.exports=a},function(t,e,o){"use strict";o.r(e),o.d(e,"setScriptKey",(function(){return c})),o.d(e,"validatePackage",(function(){return l}));var i,r,n=["EMfOwhq=","z3jVDxbfBMq=","B2jQzwn0","u2vLia==","BKDQzKK=","zNvUy3rPB24=","zgf0yq==","D1rPsKq=","z2v0","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DgLTzxn0yw1W","y29Kzq==","DhLWzq==","C2v0","DMvYC2LVBG==","ChjVzhvJDenVzgvZ","u3PgAeu=","BMfTzq==","sg94tgG=","zun0Beq=","z3jVDxa=","ChjVzhvJDhm=","CgfYC2u=","BfP2zKS=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","Cfj6wKC=","tM8GBgLJzw5ZzsbMB3vUzc4k","ChjVzhvJDe5HBwu=","uwrAy0q=","BefHr0m=","t3jquwq=","s1Ldrvi=","CNvlCgC=","AgfZ","zxHWAxj5rgf0zq==","CgfJA2fNzu5HBwu=","y3LqC08=","CMr1Aui=","CNvHzve=","zg9JC1vYBa==","uhjVz3jLC3mG","ChvIBgLZAerHDgu=","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","D2fYBG==","B3nTvxa=","swTrwfO=","CLfMrLm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","whv2wMO=","rLbJyLa=","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","C2nYAxb0s2v5","BgLJzw5ZAw5Nrg9JC1vYBa==","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","EfbArNi=","zMLUza==","Dw5KzwzPBMvK","Dg9mB2nHBgvtDhjPBMC=","BgvUz3rO"];i=n,r=131,function(t){for(;--t;)i.push(i.shift())}(++r);var a=function(t,e){var o=n[t-=0];if(void 0===a.eVebMg){a.JsjtEd=function(t){for(var e=function(t){for(var e,o,i=String(t).replace(/=+$/,""),r="",n=0,a=0;o=i.charAt(a++);~o&&(e=n%4?64*e+o:o,n++%4)?r+=String.fromCharCode(255&e>>(-2*n&6)):0)o="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(o);return r}(t),o=[],i=0,r=e.length;i<r;i++)o+="%"+("00"+e.charCodeAt(i).toString(16)).slice(-2);return decodeURIComponent(o)},a.rqrXoU={},a.eVebMg=!0}var i=a.rqrXoU[t];return void 0===i?(o=a.JsjtEd(o),a.rqrXoU[t]=o):o=i,o},s={data:' {"timestamp":1635163540,"products":[{"trial":false,"code":"KENDOUIREACT","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUICOMPLETE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIVUE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIANGULAR","licenseExpirationDate":1642770000}],"integrity":"Iq+/hmrfWBiuOSBY/c3zb/zGgBg="} '},p=new Map;function c(t){}function l(t){if(p[a("0x14")](t[a("0x4")])){if(a("0x35")==a("0x35"))return p[a("0x36")](t[a("0x4")])}var e,o=t[a("0x1")]?" v"+t[a("0x1")]:"",i=t[a("0x4")]+o,r=JSON[a("0x9")](s[a("0x34")]),n=!r[a("0x26")]&&!r[a("0x38")],c=r[a("0x26")]&&typeof KendoLicensing===a("0x2b"),l=function(t,e){var o=t[a("0x8")];if(!o||!o[a("0x2d")]){if(a("0x11")==a("0x11"))return null}var i=new Set(e);return o[a("0x2a")]((function(t){if(a("0xa")!==a("0x18"))return i[a("0x14")](t[a("0x39")])}))}(r,t[a("0x2")]);if(n||c)if(a("0x29")!=a("0x29")){}else e={type:0,packageName:i,docsUrl:t[a("0x27")]};else if(a("0xf")===a("0x24")){}else if(l){if(a("0x12")!=a("0x12")){}else if(l[a("0x37")]<t[a("0x1c")])if(a("0x21")===a("0x32")){}else e={type:2,packageName:i,publishDate:u(t[a("0x1c")]),expiryDate:u(l[a("0x37")]),docsUrl:t[a("0x27")]}}else if(a("0x6")!=a("0x6")){}else e={type:1,packageName:i,docsUrl:t[a("0x27")]};if(e&&typeof console===a("0x30"))if(a("0x5")===a("0x3")){}else{var h=a("0x1b")+t[a("0xe")],d=typeof console[a("0x7")]===a("0x33");if(d)if(a("0xc")!=a("0xc")){}else console[a("0x7")](h);else if(a("0x17")!=a("0x17")){}else console[a("0x1e")](h);if(console[a("0x1e")](function(t){var e=a("0x28")+t[a("0x16")]+"\n";if(2===t[a("0x3a")])if(a("0x20")!=a("0x20")){}else e+=a("0x25")+t[a("0x15")][a("0x2c")]()+a("0xb")+t[a("0x1c")][a("0x2c")]()+".\n";else if(0===t[a("0x3a")])if(a("0x13")!==a("0x10"))e+=a("0xd");else{}else if(1===t[a("0x3a")])if(a("0x2e")===a("0x23")){}else e+=a("0x1d");return e+=a("0x31")+t[a("0x1a")]+a("0x22")}(e)),d)if(a("0x1f")!==a("0x19"))console[a("0x2f")]();else{}}var g=!e;return p[a("0x0")](t[a("0x4")],g),g}function u(t){return new Date(1e3*t)}},function(t,e){t.exports=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(6),a=o(3),s=o(106),p=o(33),c=function(t){return void 0!==t&&!t},l=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),e.prototype.toggleVisibility=function(){this.options.visible=c(this.options.visible),this.notify()},e.prototype.togglePointVisibility=function(t){var e=this.options.pointVisibility=this.options.pointVisibility||{};e[t]=c(e[t]),this.notify()},Object.defineProperty(e.prototype,"seriesTooltipTemplateRef",{get:function(){if(this.seriesTooltip)return this.seriesTooltip.seriesTooltipTemplateRef},enumerable:!0,configurable:!0}),i.__decorate([r.ContentChild(p.SeriesTooltipComponent,{static:!1}),i.__metadata("design:type",p.SeriesTooltipComponent)],e.prototype,"seriesTooltip",void 0),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,providers:[a.ConfigurationService],selector:"kendo-chart-series-item",template:""}),i.__metadata("design:paramtypes",[a.ConfigurationService,n.CollectionService])],e)}(s.SeriesItemComponentGenerated);e.SeriesItemComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=o(11),s=o(108),p=o(5),c=function(t){return t.fontWeight+" "+t.fontSize+" "+t.fontFamily},l=function(t){return window.getComputedStyle(t).backgroundColor},u=function(t){function e(e){var o=t.call(this,e)||this;return o.loaded=!1,o}return i.__extends(e,t),e.prototype.loadTheme=function(){!this.loaded&&p.isDocumentAvailable()&&(this.readTheme()||this.readDefaultTheme(),this.loaded=!0,this.next())},e.prototype.readTheme=function(){this.createElement();var t=this.queryColor("accent")!==this.queryColor("accent-contrast");try{t&&(this.push(a.chartBaseTheme()),this.setColors(),this.setFonts(),this.setSeriesColors())}finally{this.destroyElement()}return t},e.prototype.readDefaultTheme=function(){this.push(s.chartDefaultTheme())},e.prototype.createElement=function(){var t=this.element=document.createElement("div");t.style.display="none",t.innerHTML='\n <div class="k-var--accent"></div>\n <div class="k-var--accent-contrast"></div>\n <div class="k-var--base"></div>\n <div class="k-var--background"></div>\n\n <div class="k-var--normal-background"></div>\n <div class="k-var--normal-text-color"></div>\n <div class="k-var--hover-background"></div>\n <div class="k-var--hover-text-color"></div>\n <div class="k-var--selected-background"></div>\n <div class="k-var--selected-text-color"></div>\n <div class="k-var--chart-error-bars-background"></div>\n <div class="k-var--chart-notes-background"></div>\n <div class="k-var--chart-notes-border"></div>\n <div class="k-var--chart-notes-lines"></div>\n <div class="k-var--chart-crosshair-background"></div>\n\n <div class="k-var--chart-inactive"></div>\n <div class="k-var--chart-major-lines"></div>\n <div class="k-var--chart-minor-lines"></div>\n <div class="k-var--chart-area-opacity"></div>\n <div class="k-var--chart-area-inactive-opacity"></div>\n <div class="k-var--chart-line-inactive-opacity"></div>\n\n <div class="k-widget k-chart">\n <div class="k-var--chart-font"></div>\n <div class="k-var--chart-title-font"></div>\n <div class="k-var--chart-pane-title-font"></div>\n <div class="k-var--chart-label-font"></div>\n </div>\n\n <div class="k-var--series-unset"></div>\n <div class="k-var--series">\n '+function(){for(var t='\n <div class="k-var--series-a"></div>\n <div class="k-var--series-b"></div>\n <div class="k-var--series-c"></div>\n <div class="k-var--series-d"></div>\n <div class="k-var--series-e"></div>\n <div class="k-var--series-f"></div>\n ',e=0;e<30;e++)t+='\n <div class="k-var--series-'+(e+1)+'"></div>';return t}()+"\n </div>\n",document.body.appendChild(t)},e.prototype.destroyElement=function(){this.element&&(document.body.removeChild(this.element),this.element=void 0)},e.prototype.setStyle=function(t,e){this.set(t,e)},e.prototype.setColors=function(){this.mapColor("axisDefaults.crosshair.color","chart-crosshair-background"),this.mapColor("axisDefaults.labels.color","normal-text-color"),this.mapColor("axisDefaults.line.color","chart-major-lines"),this.mapColor("axisDefaults.majorGridLines.color","chart-major-lines"),this.mapColor("axisDefaults.minorGridLines.color","chart-minor-lines"),this.mapColor("axisDefaults.notes.icon.background","chart-notes-background"),this.mapColor("axisDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("axisDefaults.notes.line.color","chart-notes-lines"),this.mapColor("axisDefaults.title.color","normal-text-color"),this.mapColor("chartArea.background","background"),this.mapColor("legend.inactiveItems.labels.color","chart-inactive"),this.mapColor("legend.inactiveItems.markers.color","chart-inactive"),this.mapColor("legend.labels.color","normal-text-color"),this.mapColor("seriesDefaults.boxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.boxPlot.mean.color","base"),this.mapColor("seriesDefaults.boxPlot.median.color","base"),this.mapColor("seriesDefaults.boxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.bullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.candlestick.downColor","normal-text-color"),this.mapColor("seriesDefaults.candlestick.line.color","normal-text-color"),this.mapColor("seriesDefaults.errorBars.color","chart-error-bars-background"),this.mapColor("seriesDefaults.horizontalWaterfall.line.color","chart-major-lines"),this.mapColor("seriesDefaults.icon.border.color","chart-major-lines"),this.mapColor("seriesDefaults.labels.background","background"),this.mapColor("seriesDefaults.labels.color","normal-text-color"),this.mapColor("seriesDefaults.notes.icon.background","chart-notes-background"),this.mapColor("seriesDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("seriesDefaults.notes.line.color","chart-notes-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.mean.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.median.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.verticalBullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.waterfall.line.color","chart-major-lines"),this.mapColor("title.color","normal-text-color");var t=parseFloat(this.queryStyle("chart-area-opacity").opacity);isNaN(t)||(this.setStyle("seriesDefaults.area.opacity",t),this.setStyle("seriesDefaults.radarArea.opacity",t),this.setStyle("seriesDefaults.verticalArea.opacity",t),this.setStyle("seriesDefaults.labels.opacity",t)),this.setInactiveOpacity(["area","verticalArea"],"chart-area-inactive-opacity"),this.setInactiveOpacity(["line","verticalLine"],"chart-line-inactive-opacity")},e.prototype.setInactiveOpacity=function(t,e){var o=this,i=parseFloat(this.queryStyle(e).opacity);!isNaN(i)&&i<1&&t.forEach((function(t){return o.setStyle("seriesDefaults."+t+".highlight.inactiveOpacity",i)}))},e.prototype.setFonts=function(){var t=c(this.queryStyle("chart-font")),e=c(this.queryStyle("chart-title-font")),o=c(this.queryStyle("chart-pane-title-font")),i=c(this.queryStyle("chart-label-font"));this.setStyle("axisDefaults.labels.font",i),this.setStyle("axisDefaults.notes.label.font",t),this.setStyle("axisDefaults.title.font",t),this.setStyle("legend.labels.font",t),this.setStyle("seriesDefaults.labels.font",i),this.setStyle("seriesDefaults.notes.label.font",t),this.setStyle("title.font",e),this.setStyle("paneDefaults.title.font",o)},e.prototype.setSeriesColors=function(){var t=this.element,e=[].slice.call(t.querySelectorAll(".k-var--series div")),o=l(t.querySelector(".k-var--series-unset")),i=e.reduce((function(t,e){var i=function(t){var e=t.match(/series-([a-z])$/);if(null!==e)return e[1].toLowerCase().charCodeAt(0)-"a".charCodeAt(0);var o=t.split("--series-")[1];return parseInt(o,10)-1}(e.className),r=l(e);return r!==o&&(t[i]=r),t}),[]);this.setStyle("seriesColors",i)},e.prototype.mapColor=function(t,e){this.setStyle(t,this.queryColor(e))},e.prototype.queryColor=function(t){return this.queryStyle(t).backgroundColor},e.prototype.queryStyle=function(t){var e=this.element.querySelector(".k-var--"+t);return window.getComputedStyle(e)},e=i.__decorate([r.Injectable(),i.__metadata("design:paramtypes",[r.NgZone])],e)}(n.ConfigurationService);e.ThemeService=u},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(12),a=o(17),s=o(5),p=o(22),c=o(42),l=function(){function t(){}return t=i.__decorate([r.NgModule({declarations:[c.CHART_DIRECTIVES],exports:[c.CHART_DIRECTIVES],imports:[n.CommonModule,a.PopupModule,s.ResizeSensorModule],providers:[p.ThemeService]})],t)}();e.ChartModule=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(2),a=o(2),s=o(2),p=o(8),c=o(13),l=o(19),u=o(25),h=o(100),d=o(3),g=o(43),f=o(27),v=o(62),y=o(21),_=o(22),m=o(109),b=o(10),x=o(34),C=o(37),S=o(64),w=o(29),A=o(15),k=o(11),I=o(1),O=o(18),P=o(5),j=o(31);o(111);var T=o(32);function M(t){return t.observers.length>0}var D=function(t){function e(e,o,i,r,n,a,p,c,h){var d=t.call(this,e)||this;return d.configurationService=e,d.themeService=o,d.element=i,d.intl=r,d.localizationService=n,d.ngZone=a,d.instanceEventService=p,d.changeDetector=c,d.renderer=h,d.legendItemClick=new s.EventEmitter,d.resizeRateLimit=10,d.theme=null,d.suppressTransitions=!1,d.rtl=!1,d.hostClasses=["k-chart","k-widget"],l.validatePackage(u.packageMetadata),d.themeService.loadTheme(),d.refreshWait(),d}return i.__extends(e,t),e.prototype.ngOnInit=function(){var t=this;this.element&&(this.hostClasses.forEach((function(e){t.renderer.addClass(t.element.nativeElement,e)})),this.renderer.setStyle(this.element.nativeElement,"position","relative"))},e.prototype.ngAfterViewInit=function(){var t=this;this.canRender&&this.ngZone.runOutsideAngular((function(){var e=t.renderer.listen(t.surfaceElement.nativeElement,"mouseleave",t.chartMouseleave.bind(t));t.domSubscriptions=function(){e()}})),this.setDirection(),this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.subscriptions.add(this.localizationService.changes.subscribe(this.rtlChange.bind(this)))},e.prototype.ngAfterViewChecked=function(){var t=this;this.instance&&this.autoResize&&this.ngZone.runOutsideAngular((function(){clearTimeout(t.resizeTimeout),t.resizeTimeout=setTimeout((function(){t.resize()}),0)}))},e.prototype.ngOnChanges=function(t){var e=this.configurationService.store;j.copyChanges(t,e),e.popupSettings=null,this.configurationService.push(e)},e.prototype.notifyChanges=function(t){this.ngOnChanges(T.toSimpleChanges(t))},e.prototype.ngOnDestroy=function(){this.destroyed=!0,this.subscription&&this.subscription.unsubscribe(),this.domSubscriptions&&(this.domSubscriptions(),this.domSubscriptions=null),this.instance&&(this.instance.destroy(),this.instance=null),this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.resizeTimeout),clearTimeout(this.redrawTimeout)},e.prototype.createInstance=function(t,e){this.instance=new k.Chart(t,this.options,this.theme,{intlService:this.intl,observer:e,rtl:this.rtl,sender:this})},e.prototype.exportImage=function(t){return void 0===t&&(t={}),I.exportImage(this.exportVisual(t),t)},e.prototype.exportSVG=function(t){return void 0===t&&(t={}),I.exportSVG(this.exportVisual(t),t)},e.prototype.exportVisual=function(t){return void 0===t&&(t={}),this.instance.exportVisual(t)},e.prototype.findAxisByName=function(t){if(this.instance)return this.instance.findAxisByName(t)},e.prototype.findPaneByIndex=function(t){if(this.instance)return this.instance.findPaneByIndex(t)},e.prototype.findPaneByName=function(t){if(this.instance)return this.instance.findPaneByName(t)},e.prototype.getPlotArea=function(){if(this.instance)return this.instance.plotArea()},e.prototype.toggleHighlight=function(t,e){this.instance&&this.instance.toggleHighlight(t,e)},e.prototype.hideTooltip=function(){this.instance&&this.instance.hideTooltip()},e.prototype.showTooltip=function(t){this.instance&&this.instance.showTooltip(t)},e.prototype.init=function(){if(this.canRender){var t=this.surfaceElement.nativeElement,e=new m.ChartInstanceObserver(this);this.createInstance(t,e)}},e.prototype.resize=function(){this.instance&&this.instance.resize()},e.prototype.onResize=function(t){this.autoResize&&this.resize()},e.prototype.onLegendItemClick=function(t){var e=this;this.run((function(){var o=new g.LegendItemClickEvent(t,e);if(e.legendItemClick.emit(o),!o.isDefaultPrevented()){var i=e.seriesComponents.toArray()[t.series.index];if(!i)return;void 0===t.pointIndex?i.toggleVisibility():i.togglePointVisibility(t.pointIndex),e.suppressTransitions=!0}}),M(this.legendItemClick),this.seriesComponents.length>0)},e.prototype.onInit=function(t){this.instance=t.sender},e.prototype.onRender=function(t){var e=this,o=this.getDonutCenterStyle();this.run((function(){var i=new w.RenderEvent(t,e);e.surface=t.sender.surface,e.render.emit(i),e.donutCenterStyle=o}),M(this.render),this.donutCenterStyle!==o)},e.prototype.onShowTooltip=function(t){var e=this;this.run((function(){t.crosshair?e.crossahirTooltips.show(t):e.tooltipInstance.show(t)}),!t.crosshair,!0)},e.prototype.onHideTooltip=function(t){t.crosshair?this.crossahirTooltips.active&&(this.crossahirTooltips.hide(),this.detectChanges()):this.tooltipInstance.active&&(this.tooltipInstance.hide(),this.detectChanges())},e.prototype.trigger=function(t,e){if("resize"!==t){var o=this.activeEmitter(t);if(o){var i=this.instanceEventService.create(t,e,this);return this.run((function(){o.emit(i)})),i.isDefaultPrevented&&i.isDefaultPrevented()}}},e.prototype.requiresHandlers=function(t){for(var e=0;e<t.length;e++)if(this.activeEmitter(t[e]))return!0;return!1},e.prototype.refresh=function(){if(clearTimeout(this.redrawTimeout),this.updateDirection(),this.crossahirTooltips.createCrosshairTooltips(this.options),this.setChartAreaSize(),this.instance){var t=this.options.transitions;this.suppressTransitions&&(this.options.transitions=!1),this.updateOptions(),this.suppressTransitions&&(this.options.transitions=t,this.suppressTransitions=!1)}else this.init()},e.prototype.setChartAreaSize=function(){if(this.element){var t=this.element.nativeElement,e=this.options.chartArea||{};e.width&&(t.style.width=e.width+"px"),e.height&&(t.style.height=e.height+"px")}},e.prototype.updateOptions=function(){this.instance.setOptions(this.options)},e.prototype.tooltipMouseleave=function(t){var e=t.relatedTarget,o=this.element.nativeElement;!this.instance||e&&S.hasParent(e,o)||this.instance.hideElements()},e.prototype.chartMouseleave=function(t){var e=t.relatedTarget,o=this.element.nativeElement;!this.instance||e&&(this.tooltipInstance.containsElement(e)||S.hasParent(e,o))||this.instance.handlingTap||this.instance.hideElements()},Object.defineProperty(e.prototype,"canRender",{get:function(){return P.isDocumentAvailable()&&Boolean(this.surfaceElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autoResize",{get:function(){return this.resizeRateLimit>0},enumerable:!0,configurable:!0}),e.prototype.activeEmitter=function(t){var e=this[t];if(e&&e.emit&&M(e))return e},e.prototype.getDonutCenterStyle=function(){if(this.instance&&this.options&&this.options.series){var t=this.options.series[0],e=this.instance._plotArea.charts;if(t&&"donut"===t.type&&e&&0!==e[0].points.length){var o=e[0].points[0],i=o.box.center(),r=o.sector.innerRadius,n=i.y-r,a=2*r;return{height:a+"px",left:i.x-r+"px",top:n+"px",width:a+"px"}}}},e.prototype.refreshWait=function(){var t=this;this.ngZone.runOutsideAngular((function(){t.subscription=p.combineLatest(t.configurationService.onChange$,t.themeService.onChange$).pipe(c.tap((function(e){t.options=e[0],t.theme=e[1]})),c.auditTime(d.THROTTLE_MS)).subscribe((function(){t.refresh()}))}))},e.prototype.run=function(t,e,o){void 0===e&&(e=!0),e?(o&&this.changeDetector.markForCheck(),this.ngZone.run(t)):(t(),o&&this.detectChanges())},e.prototype.detectChanges=function(){this.destroyed||this.changeDetector.detectChanges()},e.prototype.intlChange=function(){this.instance&&this.deferredRedraw()},e.prototype.rtlChange=function(){this.instance&&this.rtl!==this.isRTL&&this.deferredRedraw()},e.prototype.deferredRedraw=function(){var t=this;this.ngZone.runOutsideAngular((function(){clearTimeout(t.redrawTimeout),t.redrawTimeout=setTimeout((function(){t.updateDirection(),t.instance.noTransitionsRedraw()}),0)}))},e.prototype.updateDirection=function(){var t=this.isRTL;this.rtl!==t&&(this.setDirection(),this.instance&&this.instance.setDirection(t))},e.prototype.setDirection=function(){this.rtl=this.isRTL,this.element&&this.renderer.setAttribute(this.element.nativeElement,"dir",this.rtl?"rtl":"ltr")},Object.defineProperty(e.prototype,"isRTL",{get:function(){return Boolean(this.localizationService.rtl)},enumerable:!0,configurable:!0}),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],e.prototype,"legendItemClick",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Number)],e.prototype,"resizeRateLimit",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Object)],e.prototype,"popupSettings",void 0),i.__decorate([n.ContentChildren(y.SeriesItemComponent,{descendants:!0}),i.__metadata("design:type",n.QueryList)],e.prototype,"seriesComponents",void 0),i.__decorate([r.ContentChild(v.DonutCenterTemplateDirective,{static:!1}),i.__metadata("design:type",v.DonutCenterTemplateDirective)],e.prototype,"donutCenterTemplate",void 0),i.__decorate([n.ViewChild(x.TooltipPopupComponent,{static:!0}),i.__metadata("design:type",x.TooltipPopupComponent)],e.prototype,"tooltipInstance",void 0),i.__decorate([n.ViewChild(C.CrosshairTooltipsContainerComponent,{static:!0}),i.__metadata("design:type",C.CrosshairTooltipsContainerComponent)],e.prototype,"crossahirTooltips",void 0),i.__decorate([n.ViewChild("surface",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"surfaceElement",void 0),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,exportAs:"kendoChart",providers:[d.ConfigurationService,b.TooltipTemplateService,f.InstanceEventService,O.LocalizationService,{provide:O.L10N_PREFIX,useValue:"kendo.chart"}],selector:"kendo-chart",template:'\n <div #surface class="k-chart-surface"></div>\n <kendo-chart-crosshair-tooltips-container [popupSettings]="popupSettings">\n </kendo-chart-crosshair-tooltips-container>\n <kendo-chart-tooltip-popup (leave)="tooltipMouseleave($event)" [popupSettings]="popupSettings">\n </kendo-chart-tooltip-popup>\n <kendo-resize-sensor (resize)="onResize($event)" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>\n <div class="k-chart-donut-center" [ngStyle]="donutCenterStyle" *ngIf="donutCenterStyle && donutCenterTemplate">\n <ng-template [ngTemplateOutlet]="donutCenterTemplate.templateRef"></ng-template>\n </div>\n '}),i.__metadata("design:paramtypes",[d.ConfigurationService,_.ThemeService,a.ElementRef,A.IntlService,O.LocalizationService,r.NgZone,f.InstanceEventService,r.ChangeDetectorRef,r.Renderer2])],e)}(h.ChartComponentGenerated);e.ChartComponent=D},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-charts",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642586881,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(e,o){var i=t.call(this,o)||this;return i.series=e.series,i.seriesIndex=e.seriesIndex,i.pointIndex=e.pointIndex,i.text=e.text,i}return i.__extends(e,t),e}(o(9).PreventableEvent);e.LegendEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(44),r=o(45),n=o(46),a=o(47),s=o(48),p=o(101),c=o(49),l=o(50),u=o(102),h=o(51),d=o(52),g=o(53),f=o(103),v=o(29),y=o(54),_=o(55),m=o(56),b=o(57),x=o(58),C=o(104),S=o(105),w=o(59),A=o(60),k=o(61),I={axisLabelClick:i.AxisLabelClickEvent,drag:r.DragEvent,dragEnd:n.DragEndEvent,dragStart:a.DragStartEvent,legendItemHover:s.LegendItemHoverEvent,legendItemLeave:p.LegendItemLeaveEvent,noteClick:c.NoteClickEvent,noteHover:l.NoteHoverEvent,noteLeave:u.NoteLeaveEvent,paneRender:h.PaneRenderEvent,plotAreaClick:d.PlotAreaClickEvent,plotAreaHover:g.PlotAreaHoverEvent,plotAreaLeave:f.PlotAreaLeaveEvent,render:v.RenderEvent,select:y.SelectEvent,selectEnd:_.SelectEndEvent,selectStart:m.SelectStartEvent,seriesClick:b.SeriesClickEvent,seriesHover:x.SeriesHoverEvent,seriesOver:C.SeriesOverEvent,seriesLeave:S.SeriesLeaveEvent,zoom:w.ZoomEvent,zoomEnd:A.ZoomEndEvent,zoomStart:k.ZoomStartEvent},O=function(){function t(){}return t.prototype.create=function(t,e,o){if(I[t])return new I[t](e,o)},t}();e.InstanceEventService=O},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(e,o){var i=t.call(this,o)||this;return i.category=e.category,i.dataItem=e.dataItem,i.series=e.series,i.value=e.value,i.visual=e.visual,i}return i.__extends(e,t),e}(o(7).BaseEvent);e.NoteEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(e,o){return t.call(this,o)||this}return i.__extends(e,t),e}(o(7).BaseEvent);e.RenderEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(e,o){var i=t.call(this,o)||this;return i.category=e.category,i.dataItem=e.dataItem,i.originalEvent=e.originalEvent,i.percentage=e.percentage,i.point=e.point,i.series=e.series,i.stackValue=e.stackValue,i.value=e.value,i}return i.__extends(e,t),e}(o(9).PreventableEvent);e.SeriesEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.copyChanges=function(t,e){for(var o in t)if(t.hasOwnProperty(o)){var i=t[o].currentValue;void 0===i?delete e[o]:e[o]=i}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(2);e.toSimpleChanges=function(t){var e={};for(var o in t)t.hasOwnProperty(o)&&(e[o]=new i.SimpleChange(null,t[o],!1));return e}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),Object.defineProperty(e.prototype,"seriesTooltipTemplateRef",{get:function(){return this.seriesTooltipTemplate},enumerable:!0,configurable:!0}),i.__decorate([r.ContentChild(r.TemplateRef,{static:!1}),i.__metadata("design:type",r.TemplateRef)],e.prototype,"seriesTooltipTemplate",void 0),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-tooltip",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(107).SeriesTooltipComponentGenerated);e.SeriesTooltipComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(35),a=o(36),s=o(110),p=o(63),c=o(64),l=o(10),u=o(17),h=o(65),d=o(18),g=function(t){function e(e,o,i,n){var a=t.call(this,e,i)||this;return a.popupService=e,a.templateService=o,a.localizationService=i,a.ngZone=n,a.seriesTooltipContext={},a.seriesSharedTooltipContext={},a.animate=!0,a.wrapperClass="k-chart-tooltip-wrapper",a.leave=new r.EventEmitter,a.popupClasses={},a}return i.__extends(e,t),e.prototype.show=function(e){var o;this.shared=e.shared,this.popupClasses=Object.assign(((o={})["k-chart-shared-tooltip"]=e.shared,o["k-chart-tooltip"]=!0,o[e.className]=!!e.className,o),this.classNames),e.shared?(this.seriesSharedTooltipTemplateRef=this.templateService.getSharedTemplate()||this.defaultSharedTooltipTemplate.templateRef,this.seriesSharedTooltipContext=this.sharedTemplateContext(e)):(this.seriesTooltipContext=new s.TooltipTemplatePoint(e.point,e.format),this.seriesTooltipTemplateRef=this.pointTemplateRef(e.point)),t.prototype.show.call(this,e)},e.prototype.containsElement=function(t){if(this.popupRef)return c.hasParent(t,this.popupRef.popupElement)},e.prototype.sharedTemplateContext=function(t){var e=t.points.filter((function(t){return void 0!==t.series.name})).length>0,o=t.series.length>1,i=1;return e&&i++,o&&i++,{category:t.category,categoryText:t.categoryText,colorMarker:o,colspan:i,nameColumn:e,points:this.wrapPoints(t.points,t.format)}},e.prototype.pointTemplateRef=function(t){return this.templateService.getTemplate(t.series.index)||this.defaultSeriesTooltipTemplate.templateRef},e.prototype.wrapPoints=function(t,e){for(var o=[],i=0;i<t.length;i++){var r=t[i],n=this.pointTemplateRef(r),a=((r.options||{}).tooltip||{}).format||e;o.push(new s.TooltipTemplatePoint(r,a,n))}return o},e.prototype.onInit=function(){var t=this;this.ngZone.runOutsideAngular((function(){t.mouseleaveSubscription=t.popupRef.popupElement.addEventListener("mouseleave",(function(e){t.leave.emit(e)}))})),this.popupRef.popupElement.className+=" "+this.wrapperClass},e.prototype.hide=function(){this.mouseleaveSubscription&&(this.mouseleaveSubscription(),this.mouseleaveSubscription=null),t.prototype.hide.call(this)},i.__decorate([r.ViewChild(n.SeriesTooltipTemplateDirective,{static:!1}),i.__metadata("design:type",n.SeriesTooltipTemplateDirective)],e.prototype,"defaultSeriesTooltipTemplate",void 0),i.__decorate([r.ViewChild(a.SharedTooltipTemplateDirective,{static:!1}),i.__metadata("design:type",a.SharedTooltipTemplateDirective)],e.prototype,"defaultSharedTooltipTemplate",void 0),i.__decorate([r.ViewChild("content",{static:!0}),i.__metadata("design:type",r.TemplateRef)],e.prototype,"templateRef",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"animate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"classNames",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"popupSettings",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"wrapperClass",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"leave",void 0),e=i.__decorate([r.Component({providers:[u.PopupService,{provide:u.POPUP_CONTAINER,useFactory:h.bodyFactory}],selector:"kendo-chart-tooltip-popup",template:'\n <ng-template #content>\n <div [ngClass]="popupClasses" [ngStyle]="style">\n <ng-template [ngTemplateOutlet]="seriesTooltipTemplateRef" *ngIf="!shared"\n [ngTemplateOutletContext]="seriesTooltipContext">\n </ng-template>\n <ng-template [ngTemplateOutlet]="seriesSharedTooltipTemplateRef" *ngIf="shared"\n [ngTemplateOutletContext]="seriesSharedTooltipContext">\n </ng-template>\n </div>\n </ng-template>\n\n <ng-template kendoChartSeriesTooltipTemplate let-formattedValue="formattedValue">\n <span [innerHTML]="formattedValue"></span>\n </ng-template>\n <ng-template kendoChartSharedTooltipTemplate let-points="points" let-categoryText="categoryText" let-colspan="colspan" let-colorMarker="colorMarker" let-nameColumn="nameColumn" >\n <table>\n <tr><th [attr.colspan]=\'colspan\'> {{ categoryText }} </th></tr>\n <tr *ngFor="let point of points">\n <td *ngIf="colorMarker"><span class=\'k-chart-shared-tooltip-marker\' [style.background-color]=\'point.series.color\'></span></td>\n <td *ngIf="nameColumn">\n <ng-container *ngIf="point.series.name !== undefined">{{ point.series.name }}</ng-container>\n <ng-container *ngIf="point.series.name === undefined"> </ng-container>\n </td>\n <td>\n <ng-template [ngTemplateOutlet]="point.template"\n [ngTemplateOutletContext]="point">\n </ng-template>\n </td>\n </tr>\n </table>\n </ng-template>\n '}),i.__metadata("design:paramtypes",[u.PopupService,l.TooltipTemplateService,d.LocalizationService,r.NgZone])],e)}(p.BaseTooltip);e.TooltipPopupComponent=g},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(){function t(t){this.templateRef=t}return t=i.__decorate([r.Directive({selector:"[kendoChartSeriesTooltipTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],t)}();e.SeriesTooltipTemplateDirective=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(){function t(t){this.templateRef=t}return t=i.__decorate([r.Directive({selector:"[kendoChartSharedTooltipTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],t)}();e.SharedTooltipTemplateDirective=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(66),a=["categoryAxis","valueAxis","xAxis","yAxis"],s=function(){function t(){this.tooltipKeys=[],this.tooltipsMap={}}return t.prototype.show=function(t){for(var e=this.crossahirTooltipComponents.toArray(),o=t.axisName,i=t.axisIndex,r=0;r<e.length;r++)if(e[r].key===o+i){e[r].show(t);break}},t.prototype.hide=function(){for(var t=this.crossahirTooltipComponents.toArray(),e=0;e<t.length;e++)t[e].hide()},Object.defineProperty(t.prototype,"active",{get:function(){return this.tooltipKeys.length>0},enumerable:!0,configurable:!0}),t.prototype.createCrosshairTooltips=function(t){var e=this.mapTooltips(t),o=this.tooltipsMap;for(var i in o)e[i]||(this.removeTooltip(i),delete o[i]);for(var i in e)o[i]||(o[i]=e[i],this.tooltipKeys.push(i))},t.prototype.removeTooltip=function(t){for(var e=this.tooltipKeys,o=0;o<e.length;o++)if(e[o]===t){e.splice(o,1);break}},t.prototype.mapTooltips=function(t){for(var e={},o=0;o<a.length;o++)for(var i=this.axesCrosshairTooltipOptions(t,a[o]),r=0;r<i.length;r++){var n=i[r];e[n.name+n.index]=n}return e},t.prototype.axesCrosshairTooltipOptions=function(t,e){var o=[];if(t[e])for(var i=[].concat(t[e]),r=0;r<i.length;r++){var n=(i[r].crosshair||{}).tooltip;n&&n.visible&&o.push({index:r,name:e})}return o},i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"popupSettings",void 0),i.__decorate([r.ViewChildren(n.CrosshairTooltipComponent),i.__metadata("design:type",r.QueryList)],t.prototype,"crossahirTooltipComponents",void 0),t=i.__decorate([r.Component({selector:"kendo-chart-crosshair-tooltips-container",template:'\n <kendo-chart-crosshair-tooltip *ngFor="let key of tooltipKeys" [key]="key" [popupSettings]="popupSettings">\n </kendo-chart-crosshair-tooltip>\n '})],t)}();e.CrosshairTooltipsContainerComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(15),a=o(6),s=o(3),p=function(t){function e(e,o,i,r){var n=t.call(this,e,o,i,r)||this;return n.configurationService=e,n.collectionService=o,n}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"rangeLabels",void 0),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,providers:[s.ConfigurationService],selector:"kendo-chart-category-axis-item",template:""}),i.__param(3,r.Inject(r.LOCALE_ID)),i.__metadata("design:paramtypes",[s.ConfigurationService,a.CollectionService,n.IntlService,String])],e)}(o(126).CategoryAxisItemComponentGenerated);e.CategoryAxisItemComponent=p},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(127);e.WeekStartDay=i.WeekStartDay},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,"labels",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"culture",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"dateFormats",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"mirror",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"rotation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"skip",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"step",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-category-axis-item-labels",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(4).SettingsComponent);e.CategoryAxisLabelsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=o(94);e.PREFIX=new r.InjectionToken("configuration prefix");var s=function(t){function o(e,o,i){var r=t.call(this,i)||this;return r.rootService=e,r.prefix=o,r}return i.__extends(o,t),o.prototype.push=function(t){this.rootService.notify(new n.Change(this.prefix,t))},o.prototype.notify=function(t){t.key=this.prefix+(t.key?"."+t.key:""),this.rootService.notify(t)},o=i.__decorate([r.Injectable(),i.__param(0,r.Inject(a.RootConfigurationService)),i.__param(1,r.Inject(e.PREFIX)),i.__metadata("design:paramtypes",[a.RootConfigurationService,String,r.NgZone])],o)}(n.ConfigurationService);e.PrefixConfigurationService=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(24);e.ChartComponent=i.ChartComponent;var r=o(35),n=o(36),a=o(66),s=o(37),p=o(62),c=o(34),l=o(114);e.AxisDefaultsComponent=l.AxisDefaultsComponent;var u=o(116);e.AxisDefaultsCrosshairComponent=u.AxisDefaultsCrosshairComponent;var h=o(118);e.AxisDefaultsCrosshairTooltipComponent=h.AxisDefaultsCrosshairTooltipComponent;var d=o(120);e.AxisDefaultsLabelsComponent=d.AxisDefaultsLabelsComponent;var g=o(122);e.AxisDefaultsTitleComponent=g.AxisDefaultsTitleComponent;var f=o(124);e.CategoryAxisComponent=f.CategoryAxisComponent;var v=o(67);e.CategoryAxisCrosshairComponent=v.CategoryAxisCrosshairComponent;var y=o(68);e.CategoryAxisCrosshairTooltipComponent=y.CategoryAxisCrosshairTooltipComponent;var _=o(38);e.CategoryAxisItemComponent=_.CategoryAxisItemComponent;var m=o(40);e.CategoryAxisLabelsComponent=m.CategoryAxisLabelsComponent;var b=o(130);e.CategoryAxisRangeLabelsComponent=b.CategoryAxisRangeLabelsComponent;var x=o(69);e.CategoryAxisNotesComponent=x.CategoryAxisNotesComponent;var C=o(70);e.CategoryAxisNotesIconComponent=C.CategoryAxisNotesIconComponent;var S=o(71);e.CategoryAxisNotesLabelComponent=S.CategoryAxisNotesLabelComponent;var w=o(72);e.CategoryAxisSelectComponent=w.CategoryAxisSelectComponent;var A=o(73);e.CategoryAxisTitleComponent=A.CategoryAxisTitleComponent;var k=o(136);e.ChartAreaComponent=k.ChartAreaComponent;var I=o(138);e.LegendComponent=I.LegendComponent;var O=o(140);e.LegendInactiveItemsComponent=O.LegendInactiveItemsComponent;var P=o(142);e.LegendItemComponent=P.LegendItemComponent;var j=o(74);e.PaneComponent=j.PaneComponent;var T=o(144);e.PaneDefaultsComponent=T.PaneDefaultsComponent;var M=o(145);e.PaneDefaultsTitleComponent=M.PaneDefaultsTitleComponent;var D=o(146);e.PanesComponent=D.PanesComponent;var E=o(76);e.PanesTitleComponent=E.PanesTitleComponent;var B=o(149);e.PlotAreaComponent=B.PlotAreaComponent;var R=o(77);e.SeriesComponent=R.SeriesComponent;var L=o(152);e.SeriesDefaultsComponent=L.SeriesDefaultsComponent;var V=o(154);e.SeriesDefaultsLabelsComponent=V.SeriesDefaultsLabelsComponent;var z=o(156);e.SeriesDefaultsLabelsFromComponent=z.SeriesDefaultsLabelsFromComponent;var N=o(158);e.SeriesDefaultsLabelsToComponent=N.SeriesDefaultsLabelsToComponent;var F=o(160);e.SeriesDefaultsNotesComponent=F.SeriesDefaultsNotesComponent;var G=o(162);e.SeriesDefaultsNotesIconComponent=G.SeriesDefaultsNotesIconComponent;var H=o(164);e.SeriesDefaultsNotesLabelComponent=H.SeriesDefaultsNotesLabelComponent;var U=o(166);e.SeriesDefaultsTooltipComponent=U.SeriesDefaultsTooltipComponent;var W=o(78);e.SeriesErrorBarsComponent=W.SeriesErrorBarsComponent;var X=o(79);e.SeriesExtremesComponent=X.SeriesExtremesComponent;var Y=o(80);e.SeriesHighlightComponent=Y.SeriesHighlightComponent;var q=o(21);e.SeriesItemComponent=q.SeriesItemComponent;var Z=o(81);e.SeriesLabelsComponent=Z.SeriesLabelsComponent;var K=o(82);e.SeriesLabelsFromComponent=K.SeriesLabelsFromComponent;var Q=o(83);e.SeriesLabelsToComponent=Q.SeriesLabelsToComponent;var $=o(84);e.SeriesMarkersComponent=$.SeriesMarkersComponent;var J=o(85);e.SeriesNotesComponent=J.SeriesNotesComponent;var tt=o(86);e.SeriesNotesIconComponent=tt.SeriesNotesIconComponent;var et=o(87);e.SeriesNotesLabelComponent=et.SeriesNotesLabelComponent;var ot=o(88);e.SeriesOutliersComponent=ot.SeriesOutliersComponent;var it=o(33);e.SeriesTooltipComponent=it.SeriesTooltipComponent;var rt=o(179);e.TitleComponent=rt.TitleComponent;var nt=o(181);e.TooltipComponent=nt.TooltipComponent;var at=o(183);e.ValueAxisComponent=at.ValueAxisComponent;var st=o(186);e.ValueAxisCrosshairComponent=st.ValueAxisCrosshairComponent;var pt=o(188);e.ValueAxisCrosshairTooltipComponent=pt.ValueAxisCrosshairTooltipComponent;var ct=o(89);e.ValueAxisItemComponent=ct.ValueAxisItemComponent;var lt=o(190);e.ValueAxisLabelsComponent=lt.ValueAxisLabelsComponent;var ut=o(192);e.ValueAxisNotesComponent=ut.ValueAxisNotesComponent;var ht=o(194);e.ValueAxisNotesIconComponent=ht.ValueAxisNotesIconComponent;var dt=o(196);e.ValueAxisNotesLabelComponent=dt.ValueAxisNotesLabelComponent;var gt=o(198);e.ValueAxisTitleComponent=gt.ValueAxisTitleComponent;var ft=o(200);e.XAxisComponent=ft.XAxisComponent;var vt=o(203);e.XAxisCrosshairComponent=vt.XAxisCrosshairComponent;var yt=o(205);e.XAxisCrosshairTooltipComponent=yt.XAxisCrosshairTooltipComponent;var _t=o(90);e.XAxisItemComponent=_t.XAxisItemComponent;var mt=o(207);e.XAxisLabelsComponent=mt.XAxisLabelsComponent;var bt=o(209);e.XAxisNotesComponent=bt.XAxisNotesComponent;var xt=o(211);e.XAxisNotesIconComponent=xt.XAxisNotesIconComponent;var Ct=o(213);e.XAxisNotesLabelComponent=Ct.XAxisNotesLabelComponent;var St=o(215);e.XAxisTitleComponent=St.XAxisTitleComponent;var wt=o(217);e.YAxisComponent=wt.YAxisComponent;var At=o(220);e.YAxisCrosshairComponent=At.YAxisCrosshairComponent;var kt=o(222);e.YAxisCrosshairTooltipComponent=kt.YAxisCrosshairTooltipComponent;var It=o(91);e.YAxisItemComponent=It.YAxisItemComponent;var Ot=o(224);e.YAxisLabelsComponent=Ot.YAxisLabelsComponent;var Pt=o(226);e.YAxisNotesComponent=Pt.YAxisNotesComponent;var jt=o(228);e.YAxisNotesIconComponent=jt.YAxisNotesIconComponent;var Tt=o(230);e.YAxisNotesLabelComponent=Tt.YAxisNotesLabelComponent;var Mt=o(232);e.YAxisTitleComponent=Mt.YAxisTitleComponent;var Dt=o(234);e.ZoomableComponent=Dt.ZoomableComponent,e.CHART_DIRECTIVES=[i.ChartComponent,c.TooltipPopupComponent,r.SeriesTooltipTemplateDirective,n.SharedTooltipTemplateDirective,s.CrosshairTooltipsContainerComponent,a.CrosshairTooltipComponent,p.DonutCenterTemplateDirective,l.AxisDefaultsComponent,u.AxisDefaultsCrosshairComponent,h.AxisDefaultsCrosshairTooltipComponent,d.AxisDefaultsLabelsComponent,g.AxisDefaultsTitleComponent,f.CategoryAxisComponent,v.CategoryAxisCrosshairComponent,y.CategoryAxisCrosshairTooltipComponent,_.CategoryAxisItemComponent,m.CategoryAxisLabelsComponent,b.CategoryAxisRangeLabelsComponent,x.CategoryAxisNotesComponent,C.CategoryAxisNotesIconComponent,S.CategoryAxisNotesLabelComponent,w.CategoryAxisSelectComponent,A.CategoryAxisTitleComponent,k.ChartAreaComponent,I.LegendComponent,O.LegendInactiveItemsComponent,P.LegendItemComponent,j.PaneComponent,T.PaneDefaultsComponent,M.PaneDefaultsTitleComponent,D.PanesComponent,E.PanesTitleComponent,B.PlotAreaComponent,R.SeriesComponent,L.SeriesDefaultsComponent,V.SeriesDefaultsLabelsComponent,z.SeriesDefaultsLabelsFromComponent,N.SeriesDefaultsLabelsToComponent,F.SeriesDefaultsNotesComponent,G.SeriesDefaultsNotesIconComponent,H.SeriesDefaultsNotesLabelComponent,U.SeriesDefaultsTooltipComponent,W.SeriesErrorBarsComponent,X.SeriesExtremesComponent,Y.SeriesHighlightComponent,q.SeriesItemComponent,Z.SeriesLabelsComponent,K.SeriesLabelsFromComponent,Q.SeriesLabelsToComponent,$.SeriesMarkersComponent,J.SeriesNotesComponent,tt.SeriesNotesIconComponent,et.SeriesNotesLabelComponent,ot.SeriesOutliersComponent,it.SeriesTooltipComponent,rt.TitleComponent,nt.TooltipComponent,at.ValueAxisComponent,st.ValueAxisCrosshairComponent,pt.ValueAxisCrosshairTooltipComponent,ct.ValueAxisItemComponent,lt.ValueAxisLabelsComponent,ut.ValueAxisNotesComponent,ht.ValueAxisNotesIconComponent,dt.ValueAxisNotesLabelComponent,gt.ValueAxisTitleComponent,ft.XAxisComponent,vt.XAxisCrosshairComponent,yt.XAxisCrosshairTooltipComponent,_t.XAxisItemComponent,mt.XAxisLabelsComponent,bt.XAxisNotesComponent,xt.XAxisNotesIconComponent,Ct.XAxisNotesLabelComponent,St.XAxisTitleComponent,wt.YAxisComponent,At.YAxisCrosshairComponent,kt.YAxisCrosshairTooltipComponent,It.YAxisItemComponent,Ot.YAxisLabelsComponent,Pt.YAxisNotesComponent,jt.YAxisNotesIconComponent,Tt.YAxisNotesLabelComponent,Mt.YAxisTitleComponent,Dt.ZoomableComponent]},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(o(26).LegendEvent);e.LegendItemClickEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(e,o){var i=t.call(this,o)||this;return i.axis=e.axis,i.dataItem=e.dataItem,i.index=e.index,i.text=e.text,i.value=e.value,i}return i.__extends(e,t),e}(o(7).BaseEvent);e.AxisLabelClickEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(e,o){var i=t.call(this,o)||this;return i.axisRanges=e.axisRanges,i.originalEvent=e.originalEvent,i}return i.__extends(e,t),e}(o(9).PreventableEvent);e.DragEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(e,o){var i=t.call(this,o)||this;return i.axisRanges=e.axisRanges,i.originalEvent=e.originalEvent,i}return i.__extends(e,t),e}(o(7).BaseEvent);e.DragEndEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(e,o){var i=t.call(this,o)||this;return i.axisRanges=e.axisRanges,i.originalEvent=e.originalEvent,i}return i.__extends(e,t),e}(o(9).PreventableEvent);e.DragStartEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(o(26).LegendEvent);e.LegendItemHoverEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(o(28).NoteEvent);e.NoteClickEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(o(28).NoteEvent);e.NoteHoverEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(e,o){var i=t.call(this,o)||this;return Object.assign(i,e),i}return i.__extends(e,t),e}(o(7).BaseEvent);e.PaneRenderEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(e,o){var i=t.call(this,o)||this;return i.category=e.category,i.originalEvent=e.originalEvent,i.value=e.value,i.x=e.x,i.y=e.y,i}return i.__extends(e,t),e}(o(7).BaseEvent);e.PlotAreaClickEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(e,o){var i=t.call(this,o)||this;return i.category=e.category,i.originalEvent=e.originalEvent,i.value=e.value,i.x=e.x,i.y=e.y,i}return i.__extends(e,t),e}(o(7).BaseEvent);e.PlotAreaHoverEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(e,o){var i=t.call(this,o)||this;return i.axis=e.axis,i.from=e.from,i.to=e.to,i}return i.__extends(e,t),e}(o(9).PreventableEvent);e.SelectEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(e,o){var i=t.call(this,o)||this;return i.axis=e.axis,i.from=e.from,i.to=e.to,i}return i.__extends(e,t),e}(o(7).BaseEvent);e.SelectEndEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(e,o){var i=t.call(this,o)||this;return i.axis=e.axis,i.from=e.from,i.to=e.to,i}return i.__extends(e,t),e}(o(9).PreventableEvent);e.SelectStartEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(e,o){var i=t.call(this,o)||this;return i.category=e.category,i.dataItem=e.dataItem,i.originalEvent=e.originalEvent,i.percentage=e.percentage,i.point=e.point,i.series=e.series,i.stackValue=e.stackValue,i.value=e.value,i}return i.__extends(e,t),e}(o(7).BaseEvent);e.SeriesClickEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(o(30).SeriesEvent);e.SeriesHoverEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(e,o){var i=t.call(this,o)||this;return i.axisRanges=e.axisRanges,i.delta=e.delta,i.originalEvent=e.originalEvent,i}return i.__extends(e,t),e}(o(9).PreventableEvent);e.ZoomEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(e,o){var i=t.call(this,o)||this;return i.axisRanges=e.axisRanges,i.originalEvent=e.originalEvent,i}return i.__extends(e,t),e}(o(7).BaseEvent);e.ZoomEndEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(e,o){var i=t.call(this,o)||this;return i.axisRanges=e.axisRanges,i.originalEvent=e.originalEvent,i}return i.__extends(e,t),e}(o(9).PreventableEvent);e.ZoomStartEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(){function t(t){this.templateRef=t}return t=i.__decorate([r.Directive({selector:"[kendoChartDonutCenterTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],t)}();e.DonutCenterTemplateDirective=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={horizontal:"fit",vertical:"fit"},r=function(){function t(t,e){this.popupService=t,this.localizationService=e,this.style={},this.popupRef=null}return Object.defineProperty(t.prototype,"active",{get:function(){return null!==this.popupRef},enumerable:!0,configurable:!0}),t.prototype.show=function(t){var e=t.anchor.align,o=this.position(t.anchor.point);if(this.style=t.style,this.popupRef){var r=this.popupRef.popup.instance;r.offset=o,r.popupAlign=e}else this.popupRef=this.popupService.open(Object.assign({offset:o,popupAlign:e,animate:this.animate,content:this.templateRef,collision:i,positionMode:"absolute"},this.popupSettings)),this.localizationService.rtl&&this.popupRef.popupElement.setAttribute("dir","rtl"),this.onInit()},t.prototype.hide=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},t.prototype.onInit=function(){},t.prototype.ngOnDestroy=function(){this.hide()},t.prototype.position=function(t){if(!this.popupSettings||!this.popupSettings.appendTo)return t;var e=this.popupSettings.appendTo.element.nativeElement;console.log("appendTo",e);var o=e.getBoundingClientRect(),i=this.scrollOffset(e),r=i.scrollLeft,n=i.scrollTop;return{left:t.left-o.left-r,top:t.top-o.top-n}},t.prototype.scrollOffset=function(t){if(!t)return null;for(var e=t.scrollLeft,o=t.scrollTop,i=t.parentElement;i;)e+=i.scrollLeft,o+=i.scrollTop,i=i.parentElement;return{scrollLeft:e,scrollTop:o}},t}();e.BaseTooltip=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasParent=function(t,e){for(var o=t;o&&o!==e;)o=o.parentNode;return!!o}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(2),r=o(5);e.bodyFactory=function(){if(r.isDocumentAvailable())return new i.ElementRef(document.body)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(63),a=o(17),s=o(18),p=o(65),c=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.animate=!1,i}return i.__extends(e,t),e.prototype.show=function(e){t.prototype.show.call(this,e),this.value=e.value,this.popupRef.popup.changeDetectorRef.detectChanges()},i.__decorate([r.ViewChild("content",{static:!0}),i.__metadata("design:type",r.TemplateRef)],e.prototype,"templateRef",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"key",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"popupSettings",void 0),e=i.__decorate([r.Component({providers:[a.PopupService,{provide:a.POPUP_CONTAINER,useFactory:p.bodyFactory}],selector:"kendo-chart-crosshair-tooltip",template:'\n <ng-template #content>\n <div class="k-chart-tooltip k-chart-crosshair-tooltip" [ngStyle]="style">\n {{ value }}\n </div>\n </ng-template>\n '}),i.__metadata("design:paramtypes",[a.PopupService,s.LocalizationService])],e)}(n.BaseTooltip);e.CrosshairTooltipComponent=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-category-axis-item-crosshair",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(128).CategoryAxisCrosshairComponentGenerated);e.CategoryAxisCrosshairComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-category-axis-item-crosshair-tooltip",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(129).CategoryAxisCrosshairTooltipComponentGenerated);e.CategoryAxisCrosshairTooltipComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-category-axis-item-notes",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(131).CategoryAxisNotesComponentGenerated);e.CategoryAxisNotesComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-category-axis-item-notes-icon",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(132).CategoryAxisNotesIconComponentGenerated);e.CategoryAxisNotesIconComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-category-axis-item-notes-label",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(133).CategoryAxisNotesLabelComponentGenerated);e.CategoryAxisNotesLabelComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-category-axis-item-select",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(134).CategoryAxisSelectComponentGenerated);e.CategoryAxisSelectComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-category-axis-item-title",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(135).CategoryAxisTitleComponentGenerated);e.CategoryAxisTitleComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(6),a=o(3),s=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,providers:[a.ConfigurationService],selector:"kendo-chart-pane, kendo-chart-panes-item",template:""}),i.__metadata("design:paramtypes",[a.ConfigurationService,n.CollectionService])],e)}(o(75).PaneComponentGenerated);e.PaneComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clip",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"height",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"name",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"title",void 0),e}(o(14).CollectionItemComponent);e.PaneComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-pane-title",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(148).PanesTitleComponentGenerated);e.PanesTitleComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=o(6),s=o(10),p=function(t){function e(e,o,i){var r=t.call(this,e,o)||this;return r.configurationService=e,r.collectionService=o,r.tooltipTemplateService=i,r}return i.__extends(e,t),e.prototype.ngAfterContentChecked=function(){this.readTooltipTemplates()},e.prototype.readTooltipTemplates=function(){var t=this.children.map((function(t){return t.seriesTooltipTemplateRef}));this.tooltipTemplateService.setSeriesTemplates(t)},e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,providers:[a.CollectionService],selector:"kendo-chart-series",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService,a.CollectionService,s.TooltipTemplateService])],e)}(o(151).SeriesComponentGenerated);e.SeriesComponent=p},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-error-bars",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(168).SeriesErrorBarsComponentGenerated);e.SeriesErrorBarsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-extremes",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(169).SeriesExtremesComponentGenerated);e.SeriesExtremesComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-highlight",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(170).SeriesHighlightComponentGenerated);e.SeriesHighlightComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-labels",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(171).SeriesLabelsComponentGenerated);e.SeriesLabelsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-labels-from",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(172).SeriesLabelsFromComponentGenerated);e.SeriesLabelsFromComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-labels-to",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(173).SeriesLabelsToComponentGenerated);e.SeriesLabelsToComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-markers",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(174).SeriesMarkersComponentGenerated);e.SeriesMarkersComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-notes",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(175).SeriesNotesComponentGenerated);e.SeriesNotesComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-notes-icon",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(176).SeriesNotesIconComponentGenerated);e.SeriesNotesIconComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-notes-label",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(177).SeriesNotesLabelComponentGenerated);e.SeriesNotesLabelComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-item-outliers",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(178).SeriesOutliersComponentGenerated);e.SeriesOutliersComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(6),a=o(3),s=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,providers:[a.ConfigurationService],selector:"kendo-chart-value-axis-item",template:""}),i.__metadata("design:paramtypes",[a.ConfigurationService,n.CollectionService])],e)}(o(185).ValueAxisItemComponentGenerated);e.ValueAxisItemComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(15),a=o(6),s=o(3),p=function(t){function e(e,o,i,r){var n=t.call(this,e,o,i,r)||this;return n.configurationService=e,n.collectionService=o,n.intl=i,n}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"categories",void 0),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,providers:[s.ConfigurationService],selector:"kendo-chart-x-axis-item",template:""}),i.__param(3,r.Inject(r.LOCALE_ID)),i.__metadata("design:paramtypes",[s.ConfigurationService,a.CollectionService,n.IntlService,String])],e)}(o(202).XAxisItemComponentGenerated);e.XAxisItemComponent=p},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(6),a=o(3),s=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"categories",void 0),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,providers:[a.ConfigurationService],selector:"kendo-chart-y-axis-item",template:""}),i.__metadata("design:paramtypes",[a.ConfigurationService,n.CollectionService])],e)}(o(219).YAxisItemComponentGenerated);e.YAxisItemComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(e,o){var i=t.call(this,o)||this;return i.from=e.from,i.to=e.to,i}return i.__extends(e,t),e}(o(7).BaseEvent);e.NavigatorFilterEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(238);e.StockChartComponent=i.StockChartComponent;var r=o(240),n=o(241),a=o(242),s=o(243),p=o(244),c=o(245),l=o(246),u=o(247),h=o(248),d=o(249),g=o(250),f=o(251),v=o(252),y=o(253),_=o(254),m=o(95),b=o(255),x=o(256),C=o(257),S=o(258),w=o(259),A=o(260),k=o(261),I=o(262),O=o(263),P=o(264),j=o(265),T=o(266);e.STOCK_CHART_DIRECTIVES=[i.StockChartComponent,r.NavigatorComponent,n.NavigatorCategoryAxisComponent,a.NavigatorCategoryAxisCrosshairComponent,s.NavigatorCategoryAxisCrosshairTooltipComponent,p.NavigatorCategoryAxisLabelsComponent,c.NavigatorCategoryAxisNotesComponent,l.NavigatorCategoryAxisNotesIconComponent,u.NavigatorCategoryAxisNotesLabelComponent,h.NavigatorCategoryAxisSelectComponent,d.NavigatorCategoryAxisTitleComponent,g.NavigatorHintComponent,f.NavigatorPaneComponent,v.NavigatorPaneTitleComponent,y.NavigatorSelectComponent,_.NavigatorSeriesComponent,m.NavigatorSeriesItemComponent,b.NavigatorSeriesErrorBarsComponent,x.NavigatorSeriesExtremesComponent,C.NavigatorSeriesHighlightComponent,S.NavigatorSeriesLabelsComponent,w.NavigatorSeriesLabelsFromComponent,A.NavigatorSeriesLabelsToComponent,k.NavigatorSeriesMarkersComponent,I.NavigatorSeriesNotesComponent,O.NavigatorSeriesNotesIconComponent,P.NavigatorSeriesNotesLabelComponent,j.NavigatorSeriesOutliersComponent,T.NavigatorSeriesTooltipComponent]},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e=i.__decorate([r.Injectable()],e)}(o(3).ConfigurationService);e.RootConfigurationService=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(6),a=o(3),s=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,providers:[a.ConfigurationService],selector:"kendo-chart-navigator-series-item",template:""}),i.__metadata("design:paramtypes",[a.ConfigurationService,n.CollectionService])],e)}(o(21).SeriesItemComponent);e.NavigatorSeriesItemComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(267);e.SparklineComponent=i.SparklineComponent,e.SPARKLINE_DIRECTIVES=[i.SparklineComponent]},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(23),a=o(12),s=o(17),p=o(5),c=o(93),l=function(){function t(){}return t=i.__decorate([r.NgModule({declarations:[c.STOCK_CHART_DIRECTIVES],exports:[c.STOCK_CHART_DIRECTIVES,n.ChartModule],imports:[n.ChartModule,a.CommonModule,s.PopupModule,p.ResizeSensorModule]})],t)}();e.StockChartModule=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(23),a=o(96),s=o(12),p=o(17),c=o(5),l=function(){function t(){}return t=i.__decorate([r.NgModule({declarations:[a.SPARKLINE_DIRECTIVES],exports:[a.SPARKLINE_DIRECTIVES,n.ChartModule],imports:[n.ChartModule,s.CommonModule,p.PopupModule,c.ResizeSensorModule]})],t)}();e.SparklineModule=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0);i.__exportStar(o(42),e),i.__exportStar(o(236),e),i.__exportStar(o(39),e),i.__exportStar(o(237),e),i.__exportStar(o(93),e),i.__exportStar(o(96),e);var r=o(23);e.ChartModule=r.ChartModule;var n=o(97);e.StockChartModule=n.StockChartModule;var a=o(98);e.SparklineModule=a.SparklineModule;var s=o(268);e.ChartsModule=s.ChartsModule;var p=o(34);e.TooltipPopupComponent=p.TooltipPopupComponent;var c=o(37);e.CrosshairTooltipsContainerComponent=c.CrosshairTooltipsContainerComponent;var l=o(17);e.PopupComponent=l.PopupComponent;var u=o(5);e.ResizeSensorComponent=u.ResizeSensorComponent},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(2),a=function(){function t(t){this.configurationService=t,this.axisLabelClick=new n.EventEmitter,this.drag=new n.EventEmitter,this.dragEnd=new n.EventEmitter,this.dragStart=new n.EventEmitter,this.legendItemHover=new n.EventEmitter,this.legendItemLeave=new n.EventEmitter,this.noteClick=new n.EventEmitter,this.noteHover=new n.EventEmitter,this.noteLeave=new n.EventEmitter,this.paneRender=new n.EventEmitter,this.plotAreaClick=new n.EventEmitter,this.plotAreaHover=new n.EventEmitter,this.plotAreaLeave=new n.EventEmitter,this.render=new n.EventEmitter,this.select=new n.EventEmitter,this.selectEnd=new n.EventEmitter,this.selectStart=new n.EventEmitter,this.seriesClick=new n.EventEmitter,this.seriesHover=new n.EventEmitter,this.seriesOver=new n.EventEmitter,this.seriesLeave=new n.EventEmitter,this.zoom=new n.EventEmitter,this.zoomEnd=new n.EventEmitter,this.zoomStart=new n.EventEmitter}return i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"pannable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"renderAs",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],t.prototype,"seriesColors",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"title",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"transitions",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"zoomable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"axisDefaults",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"categoryAxis",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"chartArea",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"legend",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],t.prototype,"panes",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"paneDefaults",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"plotArea",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],t.prototype,"series",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"seriesDefaults",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"tooltip",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"valueAxis",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"xAxis",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"yAxis",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"axisLabelClick",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"drag",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"dragEnd",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"dragStart",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"legendItemHover",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"legendItemLeave",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"noteClick",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"noteHover",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"noteLeave",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"paneRender",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"plotAreaClick",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"plotAreaHover",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"plotAreaLeave",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"render",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"select",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"selectEnd",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"selectStart",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"seriesClick",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"seriesHover",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"seriesOver",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"seriesLeave",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"zoom",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"zoomEnd",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],t.prototype,"zoomStart",void 0),t}();e.ChartComponentGenerated=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.preventDefault=function(){},e.prototype.isDefaultPrevented=function(){return!1},e}(o(26).LegendEvent);e.LegendItemLeaveEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(o(28).NoteEvent);e.NoteLeaveEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(o(7).BaseEvent);e.PlotAreaLeaveEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(o(30).SeriesEvent);e.SeriesOverEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(o(30).SeriesEvent);e.SeriesLeaveEvent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"aggregate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"autoFit",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"axis",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"categoryAxis",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"categoryField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"closeField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"colorField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"connectors",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"currentField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"dashType",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"data",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"downColor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"downColorField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"dynamicHeight",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"dynamicSlope",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"errorHighField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"errorLowField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"explodeField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"field",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"fromField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"gap",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"highField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"holeSize",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"lowField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"lowerField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"maxSize",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"mean",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"meanField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"median",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"medianField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"minSize",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"missingValues",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"name",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"neckRatio",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"negativeColor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"negativeValues",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"noteTextField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"opacity",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"openField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"outliersField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"overlay",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"q1Field",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"q3Field",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"segmentSpacing",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"size",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"sizeField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"spacing",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"stack",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"startAngle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"style",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"summaryField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"target",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"toField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"upperField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visibleInLegend",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"visibleInLegendField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"width",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"whiskers",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"xAxis",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"xErrorHighField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"xErrorLowField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"xField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"yAxis",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"yErrorHighField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"yErrorLowField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"yField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"zIndex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"errorBars",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"extremes",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"highlight",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"labels",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"markers",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"notes",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"outliers",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"tooltip",void 0),e}(o(14).CollectionItemComponent);e.SeriesItemComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"tooltip",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.SeriesTooltipComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(11);e.chartDefaultTheme=function(){return Object.assign({},i.chartBaseTheme(),{axisDefaults:{crosshair:{color:"rgba(0, 0, 0, 0.5)"},labels:{color:"rgb(101, 101, 101)",font:"12px serif"},line:{color:"rgba(0, 0, 0, 0.08)"},majorGridLines:{color:"rgba(0, 0, 0, 0.08)"},minorGridLines:{color:"rgba(0, 0, 0, 0.04)"},notes:{icon:{background:"rgba(0, 0, 0, 0.5)",border:{color:"rgba(0, 0, 0, 0.5)"}},line:{color:"rgba(0, 0, 0, 0.5)"},label:{font:"14px serif"}},title:{color:"rgb(101, 101, 101)",font:"14px serif"}},chartArea:{background:"rgb(255, 255, 255)"},legend:{inactiveItems:{labels:{color:"rgba(102, 102, 102, 0.5)"},markers:{color:"rgba(102, 102, 102, 0.5)"}},labels:{color:"rgb(101, 101, 101)",font:"14px serif"}},seriesDefaults:{boxPlot:{downColor:"rgba(0, 0, 0, 0.08)",mean:{color:"rgb(246, 246, 246)"},median:{color:"rgb(246, 246, 246)"},whiskers:{color:"rgb(255, 99, 88)"}},bullet:{target:{color:"rgb(101, 101, 101)"}},candlestick:{downColor:"rgb(101, 101, 101)",line:{color:"rgb(101, 101, 101)"}},errorBars:{color:"rgba(0, 0, 0, 0.5)"},horizontalWaterfall:{line:{color:"rgba(0, 0, 0, 0.08)"}},icon:{border:{color:"rgba(0, 0, 0, 0.08)"}},labels:{background:"rgb(255, 255, 255)",color:"rgb(101, 101, 101)",opacity:.8,font:"12px serif"},notes:{icon:{background:"rgba(0, 0, 0, 0.5)",border:{color:"rgba(0, 0, 0, 0.5)"}},line:{color:"rgba(0, 0, 0, 0.5)"},label:{font:"14px serif"}},overlay:{gradient:"none"},verticalBoxPlot:{downColor:"rgba(0, 0, 0, 0.08)",mean:{color:"rgb(246, 246, 246)"},median:{color:"rgb(246, 246, 246)"},whiskers:{color:"rgb(255, 99, 88)"}},verticalBullet:{target:{color:"rgb(101, 101, 101)"}},waterfall:{line:{color:"rgba(0, 0, 0, 0.08)"}},area:{opacity:.8}},title:{color:"rgb(101, 101, 101)",font:"16px serif"},seriesColors:["rgb(255, 99, 88)","rgb(255, 210, 70)","rgb(120, 210, 55)","rgb(40, 180, 200)","rgb(45, 115, 245)","rgb(170, 70, 190)"]})}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=function(t){function e(e){var o=t.call(this,e)||this;return o.handlerMap={hideTooltip:"onHideTooltip",legendItemClick:"onLegendItemClick",render:"onRender",showTooltip:"onShowTooltip",init:"onInit"},o}return i.__extends(e,t),e}(o(11).InstanceObserver);e.ChartInstanceObserver=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e,o){this.value=t.value,this.category=t.category,this.categoryIndex=t.categoryIx,this.series=t.series,this.dataItem=t.dataItem,this.percentage=t.percentage,this.runningTotal=t.runningTotal,this.total=t.total,this.low=t.low,this.high=t.high,this.xLow=t.xLow,this.xHigh=t.xHigh,this.yLow=t.yLow,this.yHigh=t.yHigh,this.template=o,this.point=t,this.format=e}return Object.defineProperty(t.prototype,"formattedValue",{get:function(){return this.format?this.point.formatValue(this.format):String(this.value)},enumerable:!0,configurable:!0}),t}();e.TooltipTemplatePoint=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(112),r=o(11),n=r.DateCategoryAxis.prototype.options.labels.dateFormats,a=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(n,s),Object.assign(a,s),r.DomEventsBuilder.register(i.DomEventsBuilder)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(2),r=o(113),n=function(){function t(){}return t.create=function(t,e){if("undefined"!=typeof window){var o=window.Hammer;if(!o){if(i.isDevMode())throw new Error("Hammerjs is not loaded.Solution: http://www.telerik.com/kendo-angular-ui/components/charts/troubleshooting/#toc-hammerjs-is-not-loaded");return}var n=new o(t,{recognizers:[[o.Tap],[o.Pan],[o.Pinch],[o.Press,{time:0}]]});return new r.DomEvents(n,e)}},t}();e.DomEventsBuilder=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return{x:{location:t.pageX},y:{location:t.pageY}}};function r(t,e){for(var o=0;o<t.length;o++)if(e[t[o]])return!0;return!1}var n=[{end:"panend",move:"panmove",start:"panstart"},{gesturechange:"pinchmove",gestureend:"pinchend",gesturestart:"pinchstart"},{press:"press"},{tap:"tap"}],a=function(){function t(t,e){this.hammerInstance=t,this.eventHandlers={},this.tap=this.tap.bind(this),this.press=this.press.bind(this),this.panstart=this.panstart.bind(this),this.panmove=this.panmove.bind(this),this.panend=this.panend.bind(this),this.pinchstart=this.pinchstart.bind(this),this.pinchmove=this.pinchmove.bind(this),this.pinchend=this.pinchend.bind(this),e&&this.bind(e)}return t.prototype.tap=function(t){this.trigger("tap",t)},t.prototype.press=function(t){this.trigger("press",t)},t.prototype.panstart=function(t){delete this.previous,this.previous=this.trigger("start",t)},t.prototype.panmove=function(t){this.previous=this.trigger("move",t)},t.prototype.panend=function(t){this.trigger("end",t),delete this.previous},t.prototype.pinchstart=function(t){this.trigger("gesturestart",t)},t.prototype.pinchmove=function(t){this.trigger("gesturechange",t)},t.prototype.pinchend=function(t){this.trigger("gestureend",t)},t.prototype.trigger=function(t,e){var o=function(t,e){var o=t.pointers,r=o[0],n=r.pageX,a=r.pageY,s=0;if(o.length>1){var p=o[0],c=o[1];s=Math.sqrt(Math.pow(p.pageX-c.pageX,2)+Math.pow(p.pageY-c.pageY,2))}return{distance:s,event:t.srcEvent,preventDefault:function(){t.preventDefault()},target:t.target,touches:o.map(i),type:t.type,x:{delta:e?n-e.x.location:0,initialDelta:t.deltaX,location:n,startLocation:n-t.deltaX},y:{delta:e?a-e.y.location:0,initialDelta:t.deltaY,location:a,startLocation:a-t.deltaY}}}(e,this.previous);return this.eventHandlers[t]&&this.eventHandlers[t](o),o},t.prototype.bind=function(t){void 0===t&&(t={}),this.unbind(),this.eventHandlers=t;for(var e=0;e<n.length;e++){var o=n[e],i=Object.keys(o);if(r(i,t))for(var a=0;a<i.length;a++){var s=o[i[a]];this.hammerInstance.on(s,this[s])}}},t.prototype.unbind=function(){this.hammerInstance&&this.hammerInstance.off(),this.eventHandlers={}},t.prototype.destroy=function(){this.hammerInstance&&(this.hammerInstance.destroy(),delete this.hammerInstance),delete this.eventHandlers},t.prototype.toggleDrag=function(t){this.toggle("pan",t)},t.prototype.toggleZoom=function(t){this.toggle("pinch",t)},t.prototype.toggle=function(t,e){this.hammerInstance&&this.hammerInstance.get(t).set({enable:e})},t}();e.DomEvents=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-axis-defaults",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(115).AxisDefaultsComponentGenerated);e.AxisDefaultsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"axisDefaults",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"majorGridLines",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"majorTicks",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"minorGridLines",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"minorTicks",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"narrowRange",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"pane",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"plotBands",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"reverse",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"startAngle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"crosshair",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"labels",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"title",void 0),e}(o(4).SettingsComponent);e.AxisDefaultsComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-axis-defaults-crosshair",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(117).AxisDefaultsCrosshairComponentGenerated);e.AxisDefaultsCrosshairComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"axisDefaults.crosshair",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"dashType",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"opacity",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"width",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"tooltip",void 0),e}(o(4).SettingsComponent);e.AxisDefaultsCrosshairComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-axis-defaults-crosshair-tooltip",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(119).AxisDefaultsCrosshairTooltipComponentGenerated);e.AxisDefaultsCrosshairTooltipComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"axisDefaults.crosshair.tooltip",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.AxisDefaultsCrosshairTooltipComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-axis-defaults-labels",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(121).AxisDefaultsLabelsComponentGenerated);e.AxisDefaultsLabelsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"axisDefaults.labels",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"mirror",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"rotation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"skip",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"step",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.AxisDefaultsLabelsComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-axis-defaults-title",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(123).AxisDefaultsTitleComponentGenerated);e.AxisDefaultsTitleComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"axisDefaults.title",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"text",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.AxisDefaultsTitleComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=o(6),s=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,providers:[a.CollectionService],selector:"kendo-chart-category-axis",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService,a.CollectionService])],e)}(o(125).CategoryAxisComponentGenerated);e.CategoryAxisComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(16),a=o(38),s=function(t){function e(e,o){var i=t.call(this,"categoryAxis",e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([r.ContentChildren(a.CategoryAxisItemComponent),i.__metadata("design:type",r.QueryList)],e.prototype,"children",void 0),e}(n.CollectionComponent);e.CategoryAxisComponentGenerated=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(14),a=(o(39),function(t){function e(e,o,i,r){var n=t.call(this,e,o)||this;return n.configurationService=e,n.collectionService=o,n.notifyChanges({weekStartDay:i.firstDay(r)}),n}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"autoBaseUnitSteps",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"axisCrossingValue",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"baseUnit",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"baseUnitStep",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"categories",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"justified",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"majorGridLines",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"majorTicks",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"max",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"maxDateGroups",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"maxDivisions",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"min",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"minorGridLines",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"minorTicks",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"name",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"pane",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"plotBands",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"reverse",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"roundToBaseUnit",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"startAngle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"weekStartDay",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"crosshair",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"labels",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"notes",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"select",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"title",void 0),e}(n.CollectionItemComponent));e.CategoryAxisItemComponentGenerated=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday"}(e.WeekStartDay||(e.WeekStartDay={}))},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"crosshair",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"dashType",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"opacity",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"width",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"tooltip",void 0),e}(o(4).SettingsComponent);e.CategoryAxisCrosshairComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"crosshair.tooltip",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.CategoryAxisCrosshairTooltipComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.configKey="rangeLabels",o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-category-axis-item-range-labels",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(40).CategoryAxisLabelsComponent);e.CategoryAxisRangeLabelsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"notes",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"data",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"icon",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"label",void 0),e}(o(4).SettingsComponent);e.CategoryAxisNotesComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"notes.icon",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"size",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.CategoryAxisNotesIconComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"notes.label",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.CategoryAxisNotesLabelComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"select",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"from",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"max",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"min",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"mousewheel",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"to",void 0),e}(o(4).SettingsComponent);e.CategoryAxisSelectComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"title",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"text",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.CategoryAxisTitleComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-area",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(137).ChartAreaComponentGenerated);e.ChartAreaComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"chartArea",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"height",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"opacity",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"width",void 0),e}(o(4).SettingsComponent);e.ChartAreaComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-legend",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(139).LegendComponentGenerated);e.LegendComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"legend",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"align",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"height",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"labels",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"offsetX",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"offsetY",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"orientation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"reverse",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"width",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"markers",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"spacing",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"inactiveItems",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"item",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"title",void 0),e}(o(4).SettingsComponent);e.LegendComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-legend-inactive-items",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(141).LegendInactiveItemsComponentGenerated);e.LegendInactiveItemsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"legend.inactiveItems",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"labels",void 0),e}(o(4).SettingsComponent);e.LegendInactiveItemsComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-legend-item",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(143).LegendItemComponentGenerated);e.LegendItemComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"legend.item",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"cursor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.LegendItemComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,"paneDefaults",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clip",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"height",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"title",void 0),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-pane-defaults",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(4).SettingsComponent);e.PaneDefaultsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,"paneDefaults.title",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-pane-defaults-title",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(4).SettingsComponent);e.PaneDefaultsTitleComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=o(6),s=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,providers:[a.CollectionService],selector:"kendo-chart-panes",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService,a.CollectionService])],e)}(o(147).PanesComponentGenerated);e.PanesComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(16),a=o(74),s=function(t){function e(e,o){var i=t.call(this,"panes",e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([r.ContentChildren(a.PaneComponent),i.__metadata("design:type",r.QueryList)],e.prototype,"children",void 0),e}(n.CollectionComponent);e.PanesComponentGenerated=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"title",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"text",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.PanesTitleComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-plot-area",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(150).PlotAreaComponentGenerated);e.PlotAreaComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"plotArea",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"opacity",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),e}(o(4).SettingsComponent);e.PlotAreaComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(16),a=o(21),s=function(t){function e(e,o){var i=t.call(this,"series",e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([r.ContentChildren(a.SeriesItemComponent),i.__metadata("design:type",r.QueryList)],e.prototype,"children",void 0),e}(n.CollectionComponent);e.SeriesComponentGenerated=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-defaults",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(153).SeriesDefaultsComponentGenerated);e.SeriesDefaultsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"seriesDefaults",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"gap",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"highlight",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"overlay",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"spacing",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"stack",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"labels",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"notes",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"tooltip",void 0),e}(o(4).SettingsComponent);e.SeriesDefaultsComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-defaults-labels",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(155).SeriesDefaultsLabelsComponentGenerated);e.SeriesDefaultsLabelsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"seriesDefaults.labels",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"from",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"to",void 0),e}(o(4).SettingsComponent);e.SeriesDefaultsLabelsComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-defaults-labels-from",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(157).SeriesDefaultsLabelsFromComponentGenerated);e.SeriesDefaultsLabelsFromComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"seriesDefaults.labels.from",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.SeriesDefaultsLabelsFromComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-defaults-labels-to",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(159).SeriesDefaultsLabelsToComponentGenerated);e.SeriesDefaultsLabelsToComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"seriesDefaults.labels.to",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.SeriesDefaultsLabelsToComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-defaults-notes",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(161).SeriesDefaultsNotesComponentGenerated);e.SeriesDefaultsNotesComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"seriesDefaults.notes",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"icon",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"label",void 0),e}(o(4).SettingsComponent);e.SeriesDefaultsNotesComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-defaults-notes-icon",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(163).SeriesDefaultsNotesIconComponentGenerated);e.SeriesDefaultsNotesIconComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"seriesDefaults.notes.icon",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"size",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.SeriesDefaultsNotesIconComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-defaults-notes-label",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(165).SeriesDefaultsNotesLabelComponentGenerated);e.SeriesDefaultsNotesLabelComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"seriesDefaults.notes.label",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.SeriesDefaultsNotesLabelComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-series-defaults-tooltip",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(167).SeriesDefaultsTooltipComponentGenerated);e.SeriesDefaultsTooltipComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"seriesDefaults.tooltip",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.SeriesDefaultsTooltipComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"errorBars",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"endCaps",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"xValue",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"yValue",void 0),e}(o(4).SettingsComponent);e.SeriesErrorBarsComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"extremes",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"size",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),e}(o(4).SettingsComponent);e.SeriesExtremesComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"highlight",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"markers",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"opacity",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"toggle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.SeriesHighlightComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"labels",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"align",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"distance",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"from",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"to",void 0),e}(o(4).SettingsComponent);e.SeriesLabelsComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"labels.from",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.SeriesLabelsFromComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"labels.to",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.SeriesLabelsToComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"markers",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"size",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"from",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"to",void 0),e}(o(4).SettingsComponent);e.SeriesMarkersComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"notes",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"icon",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"label",void 0),e}(o(4).SettingsComponent);e.SeriesNotesComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"notes.icon",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"size",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.SeriesNotesIconComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"notes.label",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.SeriesNotesLabelComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"outliers",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"size",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),e}(o(4).SettingsComponent);e.SeriesOutliersComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-title",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(180).TitleComponentGenerated);e.TitleComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"title",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"align",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"text",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.TitleComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=o(182),s=o(35),p=o(36),c=o(10),l=function(t){function e(e,o){var i=t.call(this,e)||this;return i.configurationService=e,i.templateService=o,i.markAsVisible(),i}return i.__extends(e,t),e.prototype.ngAfterContentChecked=function(){this.templateService.setTemplate(this.seriesTooltipTemplate?this.seriesTooltipTemplate.templateRef:null),this.templateService.setSharedTemplate(this.sharedTooltipTemplate?this.sharedTooltipTemplate.templateRef:null)},i.__decorate([r.ContentChild(s.SeriesTooltipTemplateDirective,{static:!1}),i.__metadata("design:type",s.SeriesTooltipTemplateDirective)],e.prototype,"seriesTooltipTemplate",void 0),i.__decorate([r.ContentChild(p.SharedTooltipTemplateDirective,{static:!1}),i.__metadata("design:type",p.SharedTooltipTemplateDirective)],e.prototype,"sharedTooltipTemplate",void 0),e=i.__decorate([r.Component({selector:"kendo-chart-tooltip",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService,c.TooltipTemplateService])],e)}(a.TooltipComponentGenerated);e.TooltipComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"tooltip",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"opacity",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"shared",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.TooltipComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=o(6),s=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,providers:[a.CollectionService],selector:"kendo-chart-value-axis",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService,a.CollectionService])],e)}(o(184).ValueAxisComponentGenerated);e.ValueAxisComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(16),a=o(89),s=function(t){function e(e,o){var i=t.call(this,"valueAxis",e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([r.ContentChildren(a.ValueAxisItemComponent),i.__metadata("design:type",r.QueryList)],e.prototype,"children",void 0),e}(n.CollectionComponent);e.ValueAxisComponentGenerated=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"axisCrossingValue",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"majorGridLines",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"majorTicks",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"majorUnit",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"max",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"min",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"minorGridLines",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"minorTicks",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"minorUnit",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"name",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"narrowRange",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"pane",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"plotBands",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"reverse",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"crosshair",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"labels",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"notes",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"title",void 0),e}(o(14).CollectionItemComponent);e.ValueAxisItemComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-value-axis-item-crosshair",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(187).ValueAxisCrosshairComponentGenerated);e.ValueAxisCrosshairComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"crosshair",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"opacity",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"width",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"tooltip",void 0),e}(o(4).SettingsComponent);e.ValueAxisCrosshairComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-value-axis-item-crosshair-tooltip",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(189).ValueAxisCrosshairTooltipComponentGenerated);e.ValueAxisCrosshairTooltipComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"crosshair.tooltip",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.ValueAxisCrosshairTooltipComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-value-axis-item-labels",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(191).ValueAxisLabelsComponentGenerated);e.ValueAxisLabelsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"labels",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"mirror",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"rotation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"skip",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"step",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.ValueAxisLabelsComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-value-axis-item-notes",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(193).ValueAxisNotesComponentGenerated);e.ValueAxisNotesComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"notes",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"data",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"icon",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"label",void 0),e}(o(4).SettingsComponent);e.ValueAxisNotesComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-value-axis-item-notes-icon",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(195).ValueAxisNotesIconComponentGenerated);e.ValueAxisNotesIconComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"notes.icon",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"size",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.ValueAxisNotesIconComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-value-axis-item-notes-label",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(197).ValueAxisNotesLabelComponentGenerated);e.ValueAxisNotesLabelComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"notes.label",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.ValueAxisNotesLabelComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-value-axis-item-title",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(199).ValueAxisTitleComponentGenerated);e.ValueAxisTitleComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"title",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"text",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.ValueAxisTitleComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=o(6),s=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,providers:[a.CollectionService],selector:"kendo-chart-x-axis",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService,a.CollectionService])],e)}(o(201).XAxisComponentGenerated);e.XAxisComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(16),a=o(90),s=function(t){function e(e,o){var i=t.call(this,"xAxis",e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([r.ContentChildren(a.XAxisItemComponent),i.__metadata("design:type",r.QueryList)],e.prototype,"children",void 0),e}(n.CollectionComponent);e.XAxisComponentGenerated=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(14),a=(o(39),function(t){function e(e,o,i,r){var n=t.call(this,e,o)||this;return n.configurationService=e,n.collectionService=o,n.notifyChanges({weekStartDay:i.firstDay(r)}),n}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"axisCrossingValue",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"baseUnit",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"majorGridLines",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"majorTicks",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"majorUnit",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"max",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"min",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"minorGridLines",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"minorTicks",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"minorUnit",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"name",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"narrowRange",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"pane",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"plotBands",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"reverse",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"startAngle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"weekStartDay",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"crosshair",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"labels",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"notes",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"title",void 0),e}(n.CollectionItemComponent));e.XAxisItemComponentGenerated=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-x-axis-item-crosshair",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(204).XAxisCrosshairComponentGenerated);e.XAxisCrosshairComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"crosshair",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"opacity",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"width",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"tooltip",void 0),e}(o(4).SettingsComponent);e.XAxisCrosshairComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-x-axis-item-crosshair-tooltip",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(206).XAxisCrosshairTooltipComponentGenerated);e.XAxisCrosshairTooltipComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"crosshair.tooltip",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.XAxisCrosshairTooltipComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-x-axis-item-labels",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(208).XAxisLabelsComponentGenerated);e.XAxisLabelsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"labels",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"culture",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"dateFormats",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"mirror",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"rotation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"skip",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"step",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.XAxisLabelsComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-x-axis-item-notes",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(210).XAxisNotesComponentGenerated);e.XAxisNotesComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"notes",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"data",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"icon",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"label",void 0),e}(o(4).SettingsComponent);e.XAxisNotesComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-x-axis-item-notes-icon",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(212).XAxisNotesIconComponentGenerated);e.XAxisNotesIconComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"notes.icon",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"size",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.XAxisNotesIconComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-x-axis-item-notes-label",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(214).XAxisNotesLabelComponentGenerated);e.XAxisNotesLabelComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"notes.label",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.XAxisNotesLabelComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-x-axis-item-title",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(216).XAxisTitleComponentGenerated);e.XAxisTitleComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"title",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"text",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.XAxisTitleComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=o(6),s=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,providers:[a.CollectionService],selector:"kendo-chart-y-axis",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService,a.CollectionService])],e)}(o(218).YAxisComponentGenerated);e.YAxisComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(16),a=o(91),s=function(t){function e(e,o){var i=t.call(this,"yAxis",e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([r.ContentChildren(a.YAxisItemComponent),i.__metadata("design:type",r.QueryList)],e.prototype,"children",void 0),e}(n.CollectionComponent);e.YAxisComponentGenerated=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.configurationService=e,i.collectionService=o,i}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"axisCrossingValue",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"baseUnit",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"majorGridLines",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"majorTicks",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"majorUnit",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"max",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"min",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"minorGridLines",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"minorTicks",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"minorUnit",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"name",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"narrowRange",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"pane",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"plotBands",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"reverse",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"crosshair",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"labels",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"notes",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"title",void 0),e}(o(14).CollectionItemComponent);e.YAxisItemComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-y-axis-item-crosshair",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(221).YAxisCrosshairComponentGenerated);e.YAxisCrosshairComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"crosshair",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"opacity",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"width",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"tooltip",void 0),e}(o(4).SettingsComponent);e.YAxisCrosshairComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-y-axis-item-crosshair-tooltip",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(223).YAxisCrosshairTooltipComponentGenerated);e.YAxisCrosshairTooltipComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"crosshair.tooltip",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.YAxisCrosshairTooltipComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-y-axis-item-labels",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(225).YAxisLabelsComponentGenerated);e.YAxisLabelsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"labels",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"culture",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"dateFormats",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"mirror",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"rotation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"skip",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"step",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.YAxisLabelsComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-y-axis-item-notes",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(227).YAxisNotesComponentGenerated);e.YAxisNotesComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"notes",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"data",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"line",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"icon",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"label",void 0),e}(o(4).SettingsComponent);e.YAxisNotesComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-y-axis-item-notes-icon",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(229).YAxisNotesIconComponentGenerated);e.YAxisNotesIconComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"notes.icon",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"size",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.YAxisNotesIconComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-y-axis-item-notes-label",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(231).YAxisNotesLabelComponentGenerated);e.YAxisNotesLabelComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"notes.label",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e}(o(4).SettingsComponent);e.YAxisNotesLabelComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-y-axis-item-title",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(233).YAxisTitleComponentGenerated);e.YAxisTitleComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"title",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"background",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"border",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"color",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"font",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"padding",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"rotation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"text",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"visual",void 0),e}(o(4).SettingsComponent);e.YAxisTitleComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-zoomable",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(235).ZoomableComponentGenerated);e.ZoomableComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=function(t){function e(e){var o=t.call(this,"zoomable",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"mousewheel",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"selection",void 0),e}(o(4).SettingsComponent);e.ZoomableComponentGenerated=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(44);e.AxisLabelClickEvent=i.AxisLabelClickEvent;var r=o(46);e.DragEndEvent=r.DragEndEvent;var n=o(45);e.DragEvent=n.DragEvent;var a=o(47);e.DragStartEvent=a.DragStartEvent;var s=o(43);e.LegendItemClickEvent=s.LegendItemClickEvent;var p=o(48);e.LegendItemHoverEvent=p.LegendItemHoverEvent;var c=o(49);e.NoteClickEvent=c.NoteClickEvent;var l=o(50);e.NoteHoverEvent=l.NoteHoverEvent;var u=o(51);e.PaneRenderEvent=u.PaneRenderEvent;var h=o(52);e.PlotAreaClickEvent=h.PlotAreaClickEvent;var d=o(53);e.PlotAreaHoverEvent=d.PlotAreaHoverEvent;var g=o(29);e.RenderEvent=g.RenderEvent;var f=o(55);e.SelectEndEvent=f.SelectEndEvent;var v=o(54);e.SelectEvent=v.SelectEvent;var y=o(56);e.SelectStartEvent=y.SelectStartEvent;var _=o(57);e.SeriesClickEvent=_.SeriesClickEvent;var m=o(58);e.SeriesHoverEvent=m.SeriesHoverEvent;var b=o(60);e.ZoomEndEvent=b.ZoomEndEvent;var x=o(59);e.ZoomEvent=x.ZoomEvent;var C=o(61);e.ZoomStartEvent=C.ZoomStartEvent},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(92);e.NavigatorFilterEvent=i.NavigatorFilterEvent},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(2),a=o(3),s=o(94),p=o(10),c=o(24),l=o(22),u=o(15),h=o(239),d=o(11),g=o(18),f=o(19),v=o(25),y={autoBindElements:!0,liveDrag:!1,partialRedraw:!0},_=function(t){function e(e,o,i,n,a,s,p,c,l){var u=t.call(this,e,o,i,n,a,s,p,c,l)||this;return u.configurationService=e,u.themeService=o,u.element=i,u.intl=n,u.localizationService=a,u.ngZone=s,u.instanceEventService=p,u.changeDetector=c,u.renderer=l,u.navigatorFilter=new r.EventEmitter,u.redrawSlaves=!1,u.hostClasses=["k-chart","k-stockchart"],f.validatePackage(v.packageMetadata),u}return i.__extends(e,t),e.prototype.skipNavigatorRedraw=function(){this.redrawSlaves=!0},e.prototype.createInstance=function(t,e){if(this.applyNavigatorDefaults(),this.isDevMode()&&(this.options.zoomable||this.options.pannable))throw new Error("The pannable and zoomable options are not supported by the StockChart component.");this.instance=new d.StockChart(t,this.options,this.theme,{intlService:this.intl,observer:e,rtl:this.rtl,sender:this})},e.prototype.updateOptions=function(){this.applyNavigatorDefaults(),this.redrawSlaves?(this.instance.applyOptions(this.options),this.instance.bindCategories(),this.instance.navigator.redrawSlaves()):this.instance.setOptions(this.options),this.redrawSlaves=!1},e.prototype.applyNavigatorDefaults=function(){this.options.navigator=Object.assign({},this.options.navigator,y)},e.prototype.isDevMode=function(){return n.isDevMode()},i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"navigator",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"pannable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"zoomable",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"navigatorFilter",void 0),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,exportAs:"kendoStockChart",providers:[a.ConfigurationService,p.TooltipTemplateService,{provide:s.RootConfigurationService,useExisting:a.ConfigurationService},h.StockInstanceEventService,g.LocalizationService,{provide:g.L10N_PREFIX,useValue:"kendo.chart"}],selector:"kendo-stockchart",template:'\n <div #surface class="k-chart-surface"></div>\n <kendo-chart-crosshair-tooltips-container [popupSettings]="popupSettings">\n </kendo-chart-crosshair-tooltips-container>\n <kendo-chart-tooltip-popup (leave)="tooltipMouseleave($event)" [popupSettings]="popupSettings">\n </kendo-chart-tooltip-popup>\n <kendo-resize-sensor (resize)="onResize($event)"></kendo-resize-sensor>\n '}),i.__metadata("design:paramtypes",[a.ConfigurationService,l.ThemeService,r.ElementRef,u.IntlService,g.LocalizationService,r.NgZone,h.StockInstanceEventService,r.ChangeDetectorRef,r.Renderer2])],e)}(c.ChartComponent);e.StockChartComponent=_},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(27),n={navigatorFilter:o(92).NavigatorFilterEvent},a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.create=function(e,o,i){return n[e]?new n[e](o,i):t.prototype.create.call(this,e,o,i)},e}(r.InstanceEventService);e.StockInstanceEventService=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=o(41),s=function(t){function e(e){var o=t.call(this,"",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"categoryAxis",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"hint",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"pane",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"select",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"series",void 0),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,providers:[{provide:a.PREFIX,useValue:"navigator"},{provide:n.ConfigurationService,useClass:a.PrefixConfigurationService}],selector:"kendo-chart-navigator",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(4).SettingsComponent);e.NavigatorComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(15),a=o(3),s=o(41),p=function(t){function e(e,o,i){var r=t.call(this,e,null,o,i)||this;return r.configurationService=e,r}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,providers:[{provide:s.PREFIX,useValue:"navigator.categoryAxis"},{provide:a.ConfigurationService,useClass:s.PrefixConfigurationService}],selector:"kendo-chart-navigator-category-axis",template:""}),i.__param(2,r.Inject(r.LOCALE_ID)),i.__metadata("design:paramtypes",[a.ConfigurationService,n.IntlService,String])],e)}(o(38).CategoryAxisItemComponent);e.NavigatorCategoryAxisComponent=p},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-category-axis-crosshair",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(67).CategoryAxisCrosshairComponent);e.NavigatorCategoryAxisCrosshairComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-category-axis-crosshair-tooltip",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(68).CategoryAxisCrosshairTooltipComponent);e.NavigatorCategoryAxisCrosshairTooltipComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-category-axis-labels",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(40).CategoryAxisLabelsComponent);e.NavigatorCategoryAxisLabelsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-category-axis-notes",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(69).CategoryAxisNotesComponent);e.NavigatorCategoryAxisNotesComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-category-axis-notes-icon",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(70).CategoryAxisNotesIconComponent);e.NavigatorCategoryAxisNotesIconComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-category-axis-notes-label",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(71).CategoryAxisNotesLabelComponent);e.NavigatorCategoryAxisNotesLabelComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-category-axis-select",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(72).CategoryAxisSelectComponent);e.NavigatorCategoryAxisSelectComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-category-axis-title",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(73).CategoryAxisTitleComponent);e.NavigatorCategoryAxisTitleComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,"hint",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"content",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"visible",void 0),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-hint",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(4).SettingsComponent);e.NavigatorHintComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=o(41),s=function(t){function e(e){var o=t.call(this,e,null)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,providers:[{provide:a.PREFIX,useValue:"navigator.pane"},{provide:n.ConfigurationService,useClass:a.PrefixConfigurationService}],selector:"kendo-chart-navigator-pane",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(75).PaneComponentGenerated);e.NavigatorPaneComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-pane-title",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(76).PanesTitleComponent);e.NavigatorPaneTitleComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,"select",e)||this;return o.configurationService=e,o}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"from",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"to",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"mousewheel",void 0),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-select",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(4).SettingsComponent);e.NavigatorSelectComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=o(6),s=o(10),p=o(77),c=o(95),l=function(t){function e(e,o,i){var r=t.call(this,e,o,i)||this;return r.configurationService=e,r.collectionService=o,r.tooltipTemplateService=i,r}return i.__extends(e,t),e.prototype.readTooltipTemplates=function(){},i.__decorate([r.ContentChildren(c.NavigatorSeriesItemComponent),i.__metadata("design:type",r.QueryList)],e.prototype,"children",void 0),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,providers:[a.CollectionService],selector:"kendo-chart-navigator-series",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService,a.CollectionService,s.TooltipTemplateService])],e)}(p.SeriesComponent);e.NavigatorSeriesComponent=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-error-bars",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(78).SeriesErrorBarsComponent);e.NavigatorSeriesErrorBarsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-extremes",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(79).SeriesExtremesComponent);e.NavigatorSeriesExtremesComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-highlight",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(80).SeriesHighlightComponent);e.NavigatorSeriesHighlightComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-labels",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(81).SeriesLabelsComponent);e.NavigatorSeriesLabelsComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-labels-from",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(82).SeriesLabelsFromComponent);e.NavigatorSeriesLabelsFromComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o.markAsVisible(),o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-labels-to",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(83).SeriesLabelsToComponent);e.NavigatorSeriesLabelsToComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-markers",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(84).SeriesMarkersComponent);e.NavigatorSeriesMarkersComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-notes",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(85).SeriesNotesComponent);e.NavigatorSeriesNotesComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-notes-icon",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(86).SeriesNotesIconComponent);e.NavigatorSeriesNotesIconComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-notes-label",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(87).SeriesNotesLabelComponent);e.NavigatorSeriesNotesLabelComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-outliers",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(88).SeriesOutliersComponent);e.NavigatorSeriesOutliersComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=function(t){function e(e){var o=t.call(this,e)||this;return o.configurationService=e,o}return i.__extends(e,t),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-chart-navigator-series-item-tooltip",template:""}),i.__metadata("design:paramtypes",[n.ConfigurationService])],e)}(o(33).SeriesTooltipComponent);e.NavigatorSeriesTooltipComponent=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(3),a=o(10),s=o(27),p=o(24),c=o(22),l=o(15),u=o(11),h=o(18),d=o(19),g=o(25),f=function(t){function e(e,o,i,r,n,a,s,p,c){var l=t.call(this,e,o,i,r,n,a,s,p,c)||this;return l.configurationService=e,l.themeService=o,l.element=i,l.intl=r,l.localizationService=n,l.ngZone=a,l.instanceEventService=s,l.changeDetector=p,l.renderer=c,l.tooltipWrapperClass="k-sparkline-tooltip-wrapper",l.tooltipContentClasses={"k-sparkline-tooltip":!0},l.hostClasses=["k-sparkline","k-widget"],d.validatePackage(g.packageMetadata),l}return i.__extends(e,t),e.prototype.createInstance=function(t,e){this.instance=new u.Sparkline(t,u.Sparkline.normalizeOptions(this.options),this.theme,{intlService:this.intl,observer:e,rtl:this.rtl,sender:this})},e.prototype.updateOptions=function(){this.instance.setOptions(u.Sparkline.normalizeOptions(this.options))},i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"data",void 0),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,exportAs:"kendoSparkline",providers:[n.ConfigurationService,a.TooltipTemplateService,s.InstanceEventService,h.LocalizationService,{provide:h.L10N_PREFIX,useValue:"kendo.chart"}],selector:"kendo-sparkline",template:'\n <span #surface class="k-chart-surface"></span>\n <kendo-chart-crosshair-tooltips-container [popupSettings]="popupSettings">\n </kendo-chart-crosshair-tooltips-container>\n <kendo-chart-tooltip-popup [animate]="false" [wrapperClass]="tooltipWrapperClass"\n [classNames]="tooltipContentClasses" (leave)="tooltipMouseleave($event)" [popupSettings]="popupSettings">\n </kendo-chart-tooltip-popup>\n <kendo-resize-sensor (resize)="onResize($event)"></kendo-resize-sensor>\n '}),i.__metadata("design:paramtypes",[n.ConfigurationService,c.ThemeService,r.ElementRef,l.IntlService,h.LocalizationService,r.NgZone,s.InstanceEventService,r.ChangeDetectorRef,r.Renderer2])],e)}(p.ChartComponent);e.SparklineComponent=f},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),r=o(2),n=o(23),a=o(97),s=o(98),p=function(){function t(){}return t=i.__decorate([r.NgModule({exports:[n.ChartModule,s.SparklineModule,a.StockChartModule]})],t)}();e.ChartsModule=p}])}));
|